[03:09:44]OFD Sender: No OFD packet to send [03:09:49]OFD Sender: No OFD packet to send [03:09:54]OFD Sender: No OFD packet to send [03:09:59]OFD Sender: No OFD packet to send [03:10:04]OFD Sender: No OFD packet to send [03:10:09]OFD Sender: No OFD packet to send [03:10:14]OFD Sender: No OFD packet to send [03:10:19]OFD Sender: No OFD packet to send [03:10:24]OFD Sender: No OFD packet to send [03:10:29]OFD Sender: No OFD packet to send [03:10:34]OFD Sender: No OFD packet to send [03:10:39]OFD Sender: No OFD packet to send [03:10:44]OFD Sender: No OFD packet to send [03:10:49]OFD Sender: No OFD packet to send [03:10:54]OFD Sender: No OFD packet to send [03:10:59]OFD Sender: No OFD packet to send [03:11:04]OFD Sender: No OFD packet to send [03:11:09]OFD Sender: No OFD packet to send [03:11:14]OFD Sender: No OFD packet to send [03:11:19]OFD Sender: No OFD packet to send [03:11:24]OFD Sender: No OFD packet to send [03:11:29]OFD Sender: No OFD packet to send [03:11:34]OFD Sender: No OFD packet to send [03:11:39]OFD Sender: No OFD packet to send [03:11:44]OFD Sender: No OFD packet to send [03:11:49]OFD Sender: No OFD packet to send [03:11:55]OFD Sender: No OFD packet to send [03:12:00]OFD Sender: No OFD packet to send [03:12:05]OFD Sender: No OFD packet to send [03:12:10]OFD Sender: No OFD packet to send [03:12:15]OFD Sender: No OFD packet to send [03:12:20]OFD Sender: No OFD packet to send [03:12:25]OFD Sender: No OFD packet to send [03:12:30]OFD Sender: No OFD packet to send [03:12:35]OFD Sender: No OFD packet to send [03:12:40]OFD Sender: No OFD packet to send [03:12:45]OFD Sender: No OFD packet to send [03:12:50]OFD Sender: No OFD packet to send [03:12:55]OFD Sender: No OFD packet to send [03:13:00]OFD Sender: No OFD packet to send [03:13:05]OFD Sender: No OFD packet to send [03:13:10]OFD Sender: No OFD packet to send [03:13:15]OFD Sender: No OFD packet to send [03:13:20]OFD Sender: No OFD packet to send [03:13:25]OFD Sender: No OFD packet to send [03:13:30]OFD Sender: No OFD packet to send [03:13:35]OFD Sender: No OFD packet to send [03:13:40]OFD Sender: No OFD packet to send [03:13:45]OFD Sender: No OFD packet to send [03:13:49]accept exits with 7 [03:13:49]New connection [03:13:49]New thread 3066473828 created [03:13:49]Thread 3066617188 joined [03:13:49]Waiting for new connection... [03:13:49] Sock 7.Parse request [03:13:49]Sock 7.Check first char [03:13:49]Sock 7.First char is OK [03:13:49]request: POST /json_proto HTTP/1.0 [03:13:49]Method: POST [03:13:49]URL: /json_proto [03:13:49]Method is POST - this is cgi request [03:13:49]url: /json_proto [03:13:49]query_string will be loaded in cgi processing [03:13:49]execute_cgi json_proto POST (null) [03:13:49]execute_cgi path=json_proto method=POST [03:13:49]POST find Content-Length [03:13:49]Host: 172.17.55.133:8080 [03:13:49]Content-Length: 755 [03:13:49]Content-Type: application/json [03:13:49] [03:13:49]POST finish read [03:13:49]Found Content-Length = 755 [03:13:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30142675", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:13:49]execute_script... [03:13:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30142675", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:13:49]POST & json_proto [03:13:49]process_json_proto [03:13:49]json parsed OK: [03:13:49]protocol is kg_v1.0 [03:13:49]action value=close_receipt [03:13:49]process_action close_receipt [03:13:49]cmd_close_receipt [03:13:49]MH_GetDate [03:13:49]Write to MH i2c: F0 00 00 6F 46 A4 [03:13:49]Write i2c OK [03:13:49]MH_I2C_Read... [03:13:49]Read from MH i2c: F0 [03:13:49]MH_I2C_Read... [03:13:49]Read from MH i2c: F0 09 00 [03:13:49]MH_I2C_Read... [03:13:49]Read from MH i2c: F0 09 00 6F 46 00 F0 66 C1 66 34 48 D8 65 E3 [03:13:49]GetLastDocTimeStamp 1723950218 [03:13:49]current date 1723950832 [03:13:49]FM_GetShiftState [03:13:49]SAM_PROTO_GetShiftState [03:13:49]wFMCommunicate request_size=4 [03:13:49]MH_SAM_APDU [03:13:49]CAPDU: 80 13 01 00 [03:13:49]Write to MH i2c: E2 08 00 70 46 80 13 01 00 00 00 00 00 33 [03:13:49]Write i2c OK [03:13:49]MH_I2C_Read... [03:13:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:13:49]Read from MH i2c: E2 [03:13:49]MH_I2C_Read... [03:13:49]Read from MH i2c: E2 0E 00 [03:13:49]MH_I2C_Read... [03:13:49]Read from MH i2c: E2 0E 00 70 46 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 70 [03:13:49]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [03:13:49]wFMCommunicate OK [03:13:49]SAM_PROTO_GetShiftState done [03:13:49]FM_GetShiftState done [03:13:49]opened in 1723940556 [03:13:49]opened+sec_in_day 1724026956 [03:13:49]quantity*price = 0 [03:13:49]sum+1 = 1 [03:13:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 40 18.08.2024 03:13 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: ТК ГПНА Online 30142675 ФМ: 0000000000871820 ФД: 260482 ФПД: 273631828365966 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T031352&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260482&fm=273631828365966&tin=02508201610067®Number=0000000000091865&sum=0 [03:13:50]StoreToDocumentArchive [03:13:50]shift 449 fd 260482 [03:13:50]save to /storage/0449/doc_00260482 [03:13:50]save last doc name /storage/0449/doc_00260482 to /storage/kkm_last_doc_name [03:13:50]save OK [03:13:50]Clear old archive folders... [03:13:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:13:50]tlvbuf is 00365AC0 [03:13:50]SAM_PROTO_ClearQueue [03:13:50]wFMCommunicate request_size=4 [03:13:50]MH_SAM_APDU [03:13:50]CAPDU: 80 09 00 00 [03:13:50]Write to MH i2c: E2 08 00 7D 46 80 09 00 00 00 00 00 00 35 [03:13:50]Write i2c OK [03:13:50]MH_I2C_Read... [03:13:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:13:50]Read from MH i2c: E2 [03:13:50]MH_I2C_Read... [03:13:50]Read from MH i2c: E2 03 00 [03:13:50]MH_I2C_Read... [03:13:50]Read from MH i2c: E2 03 00 7D 46 00 90 00 37 [03:13:50]RAPDU: 90 00 [03:13:50]wFMCommunicate OK [03:13:50]SAM_PROTO_ClearQueue done [03:13:50]KKMCreateOFDPacket [03:13:50]OFDProtocolAddRootSTLVToBuf [03:13:50]FM_MakeSignedData [03:13:50]FM_MakeSignedData [03:13:50]SAM_PROTO_SignData [03:13:50]wFMCommunicate request_size=4 [03:13:50]MH_SAM_APDU [03:13:50]CAPDU: 80 0D 01 02 [03:13:50]Write to MH i2c: E2 08 00 7E 46 80 0D 01 02 00 00 00 00 3D [03:13:50]Write i2c OK [03:13:50]MH_I2C_Read... [03:13:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:13:50]Read from MH i2c: E2 [03:13:50]MH_I2C_Read... [03:13:50]Read from MH i2c: E2 03 00 [03:13:50]MH_I2C_Read... [03:13:50]Read from MH i2c: E2 03 00 7E 46 00 90 00 38 [03:13:50]RAPDU: 90 00 [03:13:50]wFMCommunicate OK [03:13:50]wFMCommunicate request_size=255 [03:13:50]MH_SAM_APDU [03:13:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 F0 66 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 82 F9 03 00 35 04 06 00 F8 [03:13:50]Write to MH i2c: E2 02 01 7F 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 F0 66 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 82 F9 03 00 35 04 06 00 F8 00 00 C7 [03:13:50]Write i2c OK [03:13:50]MH_I2C_Read... [03:13:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:13:51]Read from MH i2c: E2 [03:13:51]MH_I2C_Read... [03:13:51]Read from MH i2c: E2 03 00 [03:13:51]MH_I2C_Read... [03:13:51]Read from MH i2c: E2 03 00 7F 46 00 90 00 39 [03:13:51]RAPDU: 90 00 [03:13:51]wFMCommunicate OK [03:13:51]wFMCommunicate request_size=10 [03:13:51]MH_SAM_APDU [03:13:51]CAPDU: 80 0D 02 02 05 DD DF ED D2 8E [03:13:51]Write to MH i2c: E2 0D 00 80 46 80 0D 02 02 05 00 DD DF ED D2 8E 00 00 53 [03:13:51]Write i2c OK [03:13:51]MH_I2C_Read... [03:13:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:13:51]Read from MH i2c: E2 [03:13:51]MH_I2C_Read... [03:13:51]Read from MH i2c: E2 03 00 [03:13:51]MH_I2C_Read... [03:13:51]Read from MH i2c: E2 03 00 80 46 00 90 00 3A [03:13:51]RAPDU: 90 00 [03:13:51]wFMCommunicate OK [03:13:51]wFMCommunicate request_size=4 [03:13:51]MH_SAM_APDU [03:13:51]CAPDU: 80 0D 03 02 [03:13:51]Write to MH i2c: E2 08 00 81 46 80 0D 03 02 00 00 00 00 42 [03:13:51]Write i2c OK [03:13:51]MH_I2C_Read... [03:13:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:13:51]Read from MH i2c: E2 [03:13:51]MH_I2C_Read... [03:13:51]Read from MH i2c: E2 0B 00 [03:13:51]MH_I2C_Read... [03:13:51]Read from MH i2c: E2 0B 00 81 46 00 23 54 A8 9F 01 D5 BE EB 90 00 80 [03:13:51]RAPDU: 23 54 A8 9F 01 D5 BE EB 90 00 [03:13:51]wFMCommunicate OK [03:13:51]SAM_PROTO_SignData done [03:13:51]FM_MakeSignedData done [03:13:51]CreateOFDProtocolMessage [03:13:51]wFMCommunicate request_size=4 [03:13:51]MH_SAM_APDU [03:13:51]CAPDU: 80 11 00 00 [03:13:51]Write to MH i2c: E2 08 00 82 46 80 11 00 00 00 00 00 00 42 [03:13:51]Write i2c OK [03:13:51]MH_I2C_Read... [03:13:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:13:51]Read from MH i2c: E2 [03:13:51]MH_I2C_Read... [03:13:51]Read from MH i2c: E2 17 00 [03:13:51]MH_I2C_Read... [03:13:51]Read from MH i2c: E2 17 00 82 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 8F [03:13:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [03:13:51]wFMCommunicate OK [03:13:51]CreateOFDProtocolMessage done [03:13:51]OFDSenderStorePacket 260482 [03:13:51]StoreOFDPacket docnum=260482 [03:13:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 78 13 07 01 83 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 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 F0 66 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 82 F9 03 00 35 04 06 00 F8 DD DF ED D2 8E 23 54 A8 9F 01 D5 BE EB [03:13:51]CheckFolder [03:13:51]dirname=/storage/ofd_packets [03:13:51]CheckFolder done [03:13:51]ProducePacketName [03:13:51]name=ofd_packets/00260482 [03:13:51]NVStorageSaveData ofd_packets/00260482 [03:13:51]File name is /storage/ofd_packets/00260482 [03:13:51]Write 301 bytes [03:13:51]NVStorageSaveData done [03:13:51]OFDSenderStorePacket done [03:13:51]KKMCreateOFDPacket done [03:13:51]NVStorageSaveData kkm_last_timestamp [03:13:51]File name is /storage/kkm_last_timestamp [03:13:51]Write 4 bytes [03:13:51]NVStorageSaveData done [03:13:51]ExternCall_PrintAddStr [03:13:51]wPrintStart [03:13:51]Write to MH i2c: 01 00 00 83 46 C9 [03:13:51]Write i2c OK [03:13:51]MH_I2C_Read... [03:13:51]Read from MH i2c: 01 [03:13:51]MH_I2C_Read... [03:13:51]Read from MH i2c: 01 07 00 [03:13:51]MH_I2C_Read... [03:13:51]Read from MH i2c: 01 07 00 83 46 00 00 00 00 00 FF 0F DE [03:13:51]RasterBufferAndPrint [03:13:51]line Счет N : (1)1036025 [03:13:51]line ИНН: 02508201610067 [03:13:51]line Контрольно-Кассовый Чек [03:13:51]line ПРОДАЖА [03:13:51]line ТРК (МРК, ГНК) : 22 [03:13:51]line Товар: 2710124130 [03:13:51]line Аи-92-К-5 [03:13:51]line 30.000 * 0.00 [03:13:51]line = 0.00 [03:13:51]line НДС 12% НСП 1% [03:13:51]line > о реализуемом товаре [03:13:51]line ИТОГО: 0.00 [03:13:51]line НСП 1% : 0.00 [03:13:51]line НДС 12% : 0.00 [03:13:51]line Наличными: 0.00 [03:13:51]line Безнал.: 0.00 [03:13:51]line Место: АЗС № 94 "Партнер Нефть" [03:13:51]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [03:13:51]line СНО: Общий режим [03:13:51]line Чек 40 18.08.2024 03:13 [03:13:51]line Смена: 449 ФФД: 1.0 [03:13:51]line ЗНМ: 0300000099 [03:13:51]line РНМ: 0000000000091865 [03:13:51]line Версия ККМ: 001 [03:13:51]line Талоны: ТК ГПНА Online [03:13:51]line 30142675 [03:13:51]line ФМ: 0000000000871820 [03:13:51]line ФД: 260482 [03:13:51]line ФПД: 273631828365966 [03:13:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T031352&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260482&fm=273631828365966&tin=02508201610067®Number=0000000000091865&sum=0 [03:13:51]written 0, free lines is 4095 [03:13:51]OFD Sender: Processing packet 260482 [packets to send 192, broken 191] [03:13:51]ProducePacketName [03:13:51]name=ofd_packets/00260482 [03:13:51]OFD Sender: To server: pG, [03:13:51]CommunicateWithHost lk.salyk.kg:30040 [03:13:51]ConnectInit lk.salyk.kg [03:13:51]Connected sock=10 [03:13: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 30 0F 01 00 00 78 13 07 01 83 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 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 F0 66 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 82 F9 03 00 35 04 06 00 F8 DD DF ED D2 8E 23 54 A8 9F 01 D5 BE EB [03:13: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 30 4F 00 00 00 65 0B 47 00 52 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 30 10 04 04 00 82 F9 03 00 F4 03 04 00 46 10 C1 66 B6 04 01 00 00 BC 85 5C 74 1A 76 E4 CC [03:13:51]CommunicateWithHost err = 0 [03:13:51]CheckOFDResponse [03:13:51]1017 (14) - 77093643461234 [03:13:51]1041 (16) - 0000000000871820 [03:13:51]1040 (4) - 260482 [03:13:51]1012 (4) - 17.08.2024 21:04 [03:13:51]1206 (1) - 0 [03:13:51]OFD Sender: Remove packet 260482 [03:13:51]ProducePacketName [03:13:51]name=ofd_packets/00260482 [03:13:51]NVStorageDeleteData [03:13:51]Write to MH i2c: 01 00 00 AD 46 F3 [03:13:51]Write i2c OK [03:13:51]MH_I2C_Read... [03:13:51]Read from MH i2c: 01 [03:13:51]MH_I2C_Read... [03:13:51]Read from MH i2c: 01 07 00 [03:13:51]MH_I2C_Read... [03:13:51]Read from MH i2c: 01 07 00 AD 46 00 00 00 00 00 98 0C 9E [03:13:51]RasterBufferAndPrint [03:13:51]line [03:13:51]line [03:13:51]line [03:13:51]line [03:13:51]line [03:13:51]written 0, free lines is 3228 [03:13:51]MH_Cut [03:13:51]Write to MH i2c: D1 01 00 B4 46 01 CC [03:13:51]Write i2c OK [03:13:51]MH_I2C_Read... [03:13:51]Read from MH i2c: D1 [03:13:51]MH_I2C_Read... [03:13:51]Read from MH i2c: D1 01 00 [03:13:51]MH_I2C_Read... [03:13:51]Read from MH i2c: D1 01 00 B4 46 00 CB [03:13:51]Write to MH i2c: 01 00 00 B5 46 FB [03:13:51]Write i2c OK [03:13:51]MH_I2C_Read... [03:13:52]OFD Sender: No OFD packet to send [03:13:52]*** Cut start [03:13:52]*** Purtial cut [03:13:52]*** Stage 1: CUTSNS_PIN = 1 [03:13:54]Read from MH i2c: 01 [03:13:54]MH_I2C_Read... [03:13:54]*** Stop cut motor [03:13:54]*** Cut end [03:13:54]Read from MH i2c: 01 07 00 [03:13:54]MH_I2C_Read... [03:13:54]Read from MH i2c: 01 07 00 B5 46 00 00 00 00 00 FF 0F 10 [03:13:54]process_action close_receipt done [03:13:54]requested_data is exist [03:13:54]produce_requested_data [03:13:54]requested_item fm.sn is exist - process it [03:13:54]wFMCommunicate request_size=4 [03:13:54]MH_SAM_APDU [03:13:54]CAPDU: 80 11 00 00 [03:13:54]Write to MH i2c: E2 08 00 B6 46 80 11 00 00 00 00 00 00 76 [03:13:54]Write i2c OK [03:13:54]MH_I2C_Read... [03:13:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:13:54]Read from MH i2c: E2 [03:13:54]MH_I2C_Read... [03:13:54]Read from MH i2c: E2 17 00 [03:13:54]MH_I2C_Read... [03:13:54]Read from MH i2c: E2 17 00 B6 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C3 [03:13:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [03:13:54]wFMCommunicate OK [03:13:54]requested_item fd.num is exist - process it [03:13:54]SAM_PROTO_GetFieldsCounters [03:13:54]wFMCommunicate request_size=4 [03:13:54]MH_SAM_APDU [03:13:54]CAPDU: 80 13 00 00 [03:13:54]Write to MH i2c: E2 08 00 B7 46 80 13 00 00 00 00 00 00 79 [03:13:54]Write i2c OK [03:13:54]MH_I2C_Read... [03:13:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:13:55]Read from MH i2c: E2 [03:13:55]MH_I2C_Read... [03:13:55]Read from MH i2c: E2 62 00 [03:13:55]MH_I2C_Read... [03:13:55]Read from MH i2c: E2 62 00 B7 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 82 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [03: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 82 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:13:55]wFMCommunicate OK [03:13:55]SAM_PROTO_GetFieldsCounters done [03:13:55]requested_item shift.num is exist - process it [03:13:55]requested_item shift.opened is exist - process it [03:13:55]req_shift_opened [03:13:55]FM_GetShiftState [03:13:55]SAM_PROTO_GetShiftState [03:13:55]wFMCommunicate request_size=4 [03:13:55]MH_SAM_APDU [03:13:55]CAPDU: 80 13 01 00 [03:13:55]Write to MH i2c: E2 08 00 B8 46 80 13 01 00 00 00 00 00 7B [03:13:55]Write i2c OK [03:13:55]MH_I2C_Read... [03:13:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:13:55]Read from MH i2c: E2 [03:13:55]MH_I2C_Read... [03:13:55]Read from MH i2c: E2 0E 00 [03:13:55]MH_I2C_Read... [03:13:55]Read from MH i2c: E2 0E 00 B8 46 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B8 [03:13:55]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [03:13:55]wFMCommunicate OK [03:13:55]SAM_PROTO_GetShiftState done [03:13:55]FM_GetShiftState done [03:13:55]req_shift_opened done [03:13:55]requested_item shift.open_date is exist - process it [03:13:55]req_shift_open_date [03:13:55]req_shift_open_date done [03:13:55]produce_requested_data done [03:13:55]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260482,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [03:13:55]process_action_free close_receipt [03:13:55]json_value_free [03:13:55]json_value_free done [03:13:55]process_json_proto returns [03:13:55]Send response to host [03:13:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260482,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [03:13:55]free response buf [03:13:55]execute_script done [03:13:55]execute_script returns [03:13:55]free content buf [03:13:55]Sock 7.Close socket [03:13:55]Sock 7.Thread stoped [03:13:57]OFD Sender: No OFD packet to send [03:14:02]OFD Sender: No OFD packet to send [03:14:07]accept exits with 9 [03:14:07]New connection [03:14:07]New thread 3066617188 created [03:14:07]Thread 3066473828 joined [03:14:07]Waiting for new connection... [03:14:07] Sock 9.Parse request [03:14:07]Sock 9.Check first char [03:14:07]Sock 9.First char is OK [03:14:07]request: POST /json_proto HTTP/1.0 [03:14:07]Method: POST [03:14:07]URL: /json_proto [03:14:07]Method is POST - this is cgi request [03:14:07]url: /json_proto [03:14:07]query_string will be loaded in cgi processing [03:14:07]execute_cgi json_proto POST (null) [03:14:07]execute_cgi path=json_proto method=POST [03:14:07]POST find Content-Length [03:14:07]Host: 172.17.55.133:8080 [03:14:07]Content-Length: 678 [03:14:07]Content-Type: application/json [03:14:07] [03:14:07]POST finish read [03:14:07]Found Content-Length = 678 [03:14:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036026", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:14:07]execute_script... [03:14: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)1036026", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:14:07]POST & json_proto [03:14:07]process_json_proto [03:14:07]json parsed OK: [03:14:07]protocol is kg_v1.0 [03:14:07]action value=close_receipt [03:14:07]process_action close_receipt [03:14:07]cmd_close_receipt [03:14:07]MH_GetDate [03:14:07]Write to MH i2c: F0 00 00 B9 46 EE [03:14:07]Write i2c OK [03:14:07]MH_I2C_Read... [03:14:07]Read from MH i2c: F0 [03:14:07]MH_I2C_Read... [03:14:07]Read from MH i2c: F0 09 00 [03:14:07]MH_I2C_Read... [03:14:07]Read from MH i2c: F0 09 00 B9 46 00 01 67 C1 66 34 48 D8 65 3F [03:14:07]GetLastDocTimeStamp 1723950832 [03:14:07]current date 1723950849 [03:14:07]FM_GetShiftState [03:14:07]SAM_PROTO_GetShiftState [03:14:07]wFMCommunicate request_size=4 [03:14:07]MH_SAM_APDU [03:14:07]CAPDU: 80 13 01 00 [03:14:07]Write to MH i2c: E2 08 00 BA 46 80 13 01 00 00 00 00 00 7D [03:14:07]Write i2c OK [03:14:07]MH_I2C_Read... [03:14:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:14:07]Read from MH i2c: E2 [03:14:07]MH_I2C_Read... [03:14:07]Read from MH i2c: E2 0E 00 [03:14:07]MH_I2C_Read... [03:14:07]Read from MH i2c: E2 0E 00 BA 46 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 BA [03:14:07]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [03:14:07]wFMCommunicate OK [03:14:07]SAM_PROTO_GetShiftState done [03:14:07]FM_GetShiftState done [03:14:07]opened in 1723940556 [03:14:07]opened+sec_in_day 1724026956 [03:14:07]quantity*price = 50010 [03:14:07]sum+1 = 50012 [03:14:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 41 18.08.2024 03:14 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260483 ФПД: 228365109292634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T031409&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260483&fm=228365109292634&tin=02508201610067®Number=0000000000091865&sum=50000 [03:14:08]StoreToDocumentArchive [03:14:08]shift 449 fd 260483 [03:14:08]save to /storage/0449/doc_00260483 [03:14:08]save last doc name /storage/0449/doc_00260483 to /storage/kkm_last_doc_name [03:14:08]save OK [03:14:08]Clear old archive folders... [03:14:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:14:08]tlvbuf is 00348E30 [03:14:08]SAM_PROTO_ClearQueue [03:14:08]wFMCommunicate request_size=4 [03:14:08]MH_SAM_APDU [03:14:08]CAPDU: 80 09 00 00 [03:14:08]Write to MH i2c: E2 08 00 C7 46 80 09 00 00 00 00 00 00 7F [03:14:08]Write i2c OK [03:14:08]MH_I2C_Read... [03:14:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:14:08]Read from MH i2c: E2 [03:14:08]MH_I2C_Read... [03:14:08]Read from MH i2c: E2 03 00 [03:14:08]MH_I2C_Read... [03:14:08]Read from MH i2c: E2 03 00 C7 46 00 90 00 81 [03:14:08]RAPDU: 90 00 [03:14:08]wFMCommunicate OK [03:14:08]SAM_PROTO_ClearQueue done [03:14:08]KKMCreateOFDPacket [03:14:08]OFDProtocolAddRootSTLVToBuf [03:14:08]FM_MakeSignedData [03:14:08]FM_MakeSignedData [03:14:08]SAM_PROTO_SignData [03:14:08]wFMCommunicate request_size=4 [03:14:08]MH_SAM_APDU [03:14:08]CAPDU: 80 0D 01 02 [03:14:08]Write to MH i2c: E2 08 00 C8 46 80 0D 01 02 00 00 00 00 87 [03:14:08]Write i2c OK [03:14:08]MH_I2C_Read... [03:14:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:14:08]Read from MH i2c: E2 [03:14:08]MH_I2C_Read... [03:14:08]Read from MH i2c: E2 03 00 [03:14:08]MH_I2C_Read... [03:14:08]Read from MH i2c: E2 03 00 C8 46 00 90 00 82 [03:14:08]RAPDU: 90 00 [03:14:08]wFMCommunicate OK [03:14:08]wFMCommunicate request_size=255 [03:14:08]MH_SAM_APDU [03:14: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 01 67 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 83 F9 03 00 35 04 06 00 CF [03:14:08]Write to MH i2c: E2 02 01 C9 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 01 67 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 83 F9 03 00 35 04 06 00 CF 00 00 B4 [03:14:08]Write i2c OK [03:14:08]MH_I2C_Read... [03:14:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:14:08]Read from MH i2c: E2 [03:14:08]MH_I2C_Read... [03:14:08]Read from MH i2c: E2 03 00 [03:14:08]MH_I2C_Read... [03:14:08]Read from MH i2c: E2 03 00 C9 46 00 90 00 83 [03:14:08]RAPDU: 90 00 [03:14:08]wFMCommunicate OK [03:14:08]wFMCommunicate request_size=10 [03:14:08]MH_SAM_APDU [03:14:08]CAPDU: 80 0D 02 02 05 B2 65 37 EE 5A [03:14:08]Write to MH i2c: E2 0D 00 CA 46 80 0D 02 02 05 00 B2 65 37 EE 5A 00 00 2A [03:14:08]Write i2c OK [03:14:08]MH_I2C_Read... [03:14:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:14:08]Read from MH i2c: E2 [03:14:08]MH_I2C_Read... [03:14:08]Read from MH i2c: E2 03 00 [03:14:08]MH_I2C_Read... [03:14:08]Read from MH i2c: E2 03 00 CA 46 00 90 00 84 [03:14:08]RAPDU: 90 00 [03:14:08]wFMCommunicate OK [03:14:08]wFMCommunicate request_size=4 [03:14:08]MH_SAM_APDU [03:14:08]CAPDU: 80 0D 03 02 [03:14:08]Write to MH i2c: E2 08 00 CB 46 80 0D 03 02 00 00 00 00 8C [03:14:08]Write i2c OK [03:14:08]MH_I2C_Read... [03:14:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:14:08]Read from MH i2c: E2 [03:14:08]MH_I2C_Read... [03:14:08]Read from MH i2c: E2 0B 00 [03:14:08]MH_I2C_Read... [03:14:08]Read from MH i2c: E2 0B 00 CB 46 00 C0 9D B6 64 26 F9 BC 37 90 00 16 [03:14:08]RAPDU: C0 9D B6 64 26 F9 BC 37 90 00 [03:14:08]wFMCommunicate OK [03:14:08]SAM_PROTO_SignData done [03:14:08]FM_MakeSignedData done [03:14:08]CreateOFDProtocolMessage [03:14:08]wFMCommunicate request_size=4 [03:14:08]MH_SAM_APDU [03:14:08]CAPDU: 80 11 00 00 [03:14:08]Write to MH i2c: E2 08 00 CC 46 80 11 00 00 00 00 00 00 8C [03:14:08]Write i2c OK [03:14:08]MH_I2C_Read... [03:14:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:14:08]Read from MH i2c: E2 [03:14:08]MH_I2C_Read... [03:14:08]Read from MH i2c: E2 17 00 [03:14:08]MH_I2C_Read... [03:14:08]Read from MH i2c: E2 17 00 CC 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D9 [03:14:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [03:14:08]wFMCommunicate OK [03:14:08]CreateOFDProtocolMessage done [03:14:08]OFDSenderStorePacket 260483 [03:14:08]StoreOFDPacket docnum=260483 [03:14:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 0C 02 07 01 78 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 01 67 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 83 F9 03 00 35 04 06 00 CF B2 65 37 EE 5A C0 9D B6 64 26 F9 BC 37 [03:14:08]CheckFolder [03:14:08]dirname=/storage/ofd_packets [03:14:08]CheckFolder done [03:14:08]ProducePacketName [03:14:08]name=ofd_packets/00260483 [03:14:08]NVStorageSaveData ofd_packets/00260483 [03:14:08]File name is /storage/ofd_packets/00260483 [03:14:08]Write 301 bytes [03:14:08]NVStorageSaveData done [03:14:08]OFDSenderStorePacket done [03:14:08]KKMCreateOFDPacket done [03:14:08]NVStorageSaveData kkm_last_timestamp [03:14:08]File name is /storage/kkm_last_timestamp [03:14:08]Write 4 bytes [03:14:08]NVStorageSaveData done [03:14:08]OFD Sender: Processing packet 260483 [packets to send 192, broken 191] [03:14:08]ProducePacketName [03:14:08]name=ofd_packets/00260483 [03:14:08]OFD Sender: To server: pG, [03:14:08]CommunicateWithHost lk.salyk.kg:30040 [03:14:08]ConnectInit lk.salyk.kg [03:14:08]ExternCall_PrintAddStr [03:14:08]wPrintStart [03:14:08]Write to MH i2c: 01 00 00 CD 46 13 [03:14:08]Write i2c OK [03:14:08]MH_I2C_Read... [03:14:08]Read from MH i2c: 01 [03:14:08]MH_I2C_Read... [03:14:08]Read from MH i2c: 01 07 00 [03:14:08]MH_I2C_Read... [03:14:08]Read from MH i2c: 01 07 00 CD 46 00 00 00 00 00 FF 0F 28 [03:14:08]RasterBufferAndPrint [03:14:08]line Счет N : (1)1036026 [03:14:08]line ИНН: 02508201610067 [03:14:08]line Контрольно-Кассовый Чек [03:14:08]line ПРОДАЖА [03:14:08]line ТРК (МРК, ГНК) : 13 [03:14:08]line Товар: 2710124500 [03:14:08]line Аи-95-К-5 [03:14:08]line 6.740 * 74.20 [03:14:08]line = 500.11 [03:14:08]line НДС 12% НСП 1% [03:14:08]line > о реализуемом товаре [03:14:08]line ОКРУГЛЕНИЕ: -0.11 [03:14:08]line ИТОГО: 500.00 [03:14:08]line Внесено: 500.00 [03:14:08]line СДАЧА: 0.00 [03:14:08]line НСП 1% : 4.43 [03:14:08]line НДС 12% : 53.11 [03:14:08]line Наличными: 500.00 [03:14:08]line Безнал.: 0.00 [03:14:08]line Место: АЗС № 94 "Партнер Нефть" [03:14:08]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [03:14:08]line СНО: Общий режим [03:14:08]line Чек 41 18.08.2024 03:14 [03:14:08]line Смена: 449 ФФД: 1.0 [03:14:08]line ЗНМ: 0300000099 [03:14:08]line РНМ: 0000000000091865 [03:14:08]line Версия ККМ: 001 [03:14:08]line ФМ: 0000000000871820 [03:14:08]line ФД: 260483 [03:14:08]line ФПД: 228365109292634 [03:14:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T031409&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260483&fm=228365109292634&tin=02508201610067®Number=0000000000091865&sum=50000 [03:14:09]written 0, free lines is 4095 [03:14:09]Connected sock=11 [03:14: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 30 0F 01 00 00 0C 02 07 01 78 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 01 67 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 83 F9 03 00 35 04 06 00 CF B2 65 37 EE 5A C0 9D B6 64 26 F9 BC 37 [03:14: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 30 4F 00 00 00 30 5D 47 00 47 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 83 F9 03 00 F4 03 04 00 58 10 C1 66 B6 04 01 00 00 7C 1A 4A 02 7C A1 A6 AB [03:14:09]CommunicateWithHost err = 0 [03:14:09]CheckOFDResponse [03:14:09]1017 (14) - 77093643461234 [03:14:09]1041 (16) - 0000000000871820 [03:14:09]1040 (4) - 260483 [03:14:09]1012 (4) - 17.08.2024 21:04 [03:14:09]1206 (1) - 0 [03:14:09]OFD Sender: Remove packet 260483 [03:14:09]ProducePacketName [03:14:09]name=ofd_packets/00260483 [03:14:09]NVStorageDeleteData [03:14:09]Write to MH i2c: 01 00 00 F8 46 3E [03:14:09]Write i2c OK [03:14:09]MH_I2C_Read... [03:14:09]Read from MH i2c: 01 [03:14:09]MH_I2C_Read... [03:14:09]Read from MH i2c: 01 07 00 [03:14:09]MH_I2C_Read... [03:14:09]Read from MH i2c: 01 07 00 F8 46 00 00 00 00 00 76 0C C7 [03:14:09]RasterBufferAndPrint [03:14:09]line [03:14:09]line [03:14:09]line [03:14:09]line [03:14:09]line [03:14:09]written 0, free lines is 3192 [03:14:09]MH_Cut [03:14:09]Write to MH i2c: D1 01 00 FF 46 01 17 [03:14:09]Write i2c OK [03:14:09]MH_I2C_Read... [03:14:09]Read from MH i2c: D1 [03:14:09]MH_I2C_Read... [03:14:09]Read from MH i2c: D1 01 00 [03:14:09]MH_I2C_Read... [03:14:09]Read from MH i2c: D1 01 00 FF 46 00 16 [03:14:09]Write to MH i2c: 01 00 00 00 47 47 [03:14:09]Write i2c OK [03:14:09]MH_I2C_Read... [03:14:09]OFD Sender: No OFD packet to send [03:14:10]*** Cut start [03:14:10]*** Purtial cut [03:14:10]*** Stage 1: CUTSNS_PIN = 1 [03:14:12]Read from MH i2c: 01 [03:14:12]MH_I2C_Read... [03:14:12]*** Stop cut motor [03:14:12]*** Cut end [03:14:12]Read from MH i2c: 01 07 00 [03:14:12]MH_I2C_Read... [03:14:12]Read from MH i2c: 01 07 00 00 47 00 00 00 00 00 FF 0F 5C [03:14:12]process_action close_receipt done [03:14:12]requested_data is exist [03:14:12]produce_requested_data [03:14:12]requested_item fm.sn is exist - process it [03:14:12]wFMCommunicate request_size=4 [03:14:12]MH_SAM_APDU [03:14:12]CAPDU: 80 11 00 00 [03:14:12]Write to MH i2c: E2 08 00 01 47 80 11 00 00 00 00 00 00 C2 [03:14:12]Write i2c OK [03:14:12]MH_I2C_Read... [03:14:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:14:12]Read from MH i2c: E2 [03:14:12]MH_I2C_Read... [03:14:12]Read from MH i2c: E2 17 00 [03:14:12]MH_I2C_Read... [03:14:12]Read from MH i2c: E2 17 00 01 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 0F [03:14:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [03:14:12]wFMCommunicate OK [03:14:12]requested_item fd.num is exist - process it [03:14:12]SAM_PROTO_GetFieldsCounters [03:14:12]wFMCommunicate request_size=4 [03:14:12]MH_SAM_APDU [03:14:12]CAPDU: 80 13 00 00 [03:14:12]Write to MH i2c: E2 08 00 02 47 80 13 00 00 00 00 00 00 C5 [03:14:12]Write i2c OK [03:14:12]MH_I2C_Read... [03:14:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:14:12]Read from MH i2c: E2 [03:14:12]MH_I2C_Read... [03:14:12]Read from MH i2c: E2 62 00 [03:14:12]MH_I2C_Read... [03:14:12]Read from MH i2c: E2 62 00 02 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 83 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [03:14: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 83 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:14:12]wFMCommunicate OK [03:14:12]SAM_PROTO_GetFieldsCounters done [03:14:12]requested_item shift.num is exist - process it [03:14:12]requested_item shift.opened is exist - process it [03:14:12]req_shift_opened [03:14:12]FM_GetShiftState [03:14:12]SAM_PROTO_GetShiftState [03:14:12]wFMCommunicate request_size=4 [03:14:12]MH_SAM_APDU [03:14:12]CAPDU: 80 13 01 00 [03:14:12]Write to MH i2c: E2 08 00 03 47 80 13 01 00 00 00 00 00 C7 [03:14:12]Write i2c OK [03:14:12]MH_I2C_Read... [03:14:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:14:13]Read from MH i2c: E2 [03:14:13]MH_I2C_Read... [03:14:13]Read from MH i2c: E2 0E 00 [03:14:13]MH_I2C_Read... [03:14:13]Read from MH i2c: E2 0E 00 03 47 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 04 [03:14:13]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [03:14:13]wFMCommunicate OK [03:14:13]SAM_PROTO_GetShiftState done [03:14:13]FM_GetShiftState done [03:14:13]req_shift_opened done [03:14:13]requested_item shift.open_date is exist - process it [03:14:13]req_shift_open_date [03:14:13]req_shift_open_date done [03:14:13]produce_requested_data done [03:14:13]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260483,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [03:14:13]process_action_free close_receipt [03:14:13]json_value_free [03:14:13]json_value_free done [03:14:13]process_json_proto returns [03:14:13]Send response to host [03:14:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260483,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [03:14:13]free response buf [03:14:13]execute_script done [03:14:13]execute_script returns [03:14:13]free content buf [03:14:13]Sock 9.Close socket [03:14:13]Sock 9.Thread stoped [03:14:14]OFD Sender: No OFD packet to send [03:14:19]OFD Sender: No OFD packet to send [03:14:24]OFD Sender: No OFD packet to send [03:14:29]OFD Sender: No OFD packet to send [03:14:34]OFD Sender: No OFD packet to send [03:14:39]OFD Sender: No OFD packet to send [03:14:44]OFD Sender: No OFD packet to send [03:14:49]OFD Sender: No OFD packet to send [03:14:54]OFD Sender: No OFD packet to send [03:14:59]OFD Sender: No OFD packet to send [03:15:04]OFD Sender: No OFD packet to send [03:15:09]OFD Sender: No OFD packet to send [03:15:14]OFD Sender: No OFD packet to send [03:15:19]OFD Sender: No OFD packet to send [03:15:24]OFD Sender: No OFD packet to send [03:15:29]OFD Sender: No OFD packet to send [03:15:34]OFD Sender: No OFD packet to send [03:15:39]OFD Sender: No OFD packet to send [03:15:44]OFD Sender: No OFD packet to send [03:15:49]accept exits with 7 [03:15:49]New connection [03:15:49]New thread 3066473828 created [03:15:49]Thread 3066617188 joined [03:15:49]Waiting for new connection... [03:15:49] Sock 7.Parse request [03:15:49]Sock 7.Check first char [03:15:49]Sock 7.First char is OK [03:15:49]request: POST /json_proto HTTP/1.0 [03:15:49]Method: POST [03:15:49]URL: /json_proto [03:15:49]Method is POST - this is cgi request [03:15:49]url: /json_proto [03:15:49]query_string will be loaded in cgi processing [03:15:49]execute_cgi json_proto POST (null) [03:15:49]execute_cgi path=json_proto method=POST [03:15:49]POST find Content-Length [03:15:49]Host: 172.17.55.133:8080 [03:15:49]Content-Length: 678 [03:15:49]Content-Type: application/json [03:15:49] [03:15:49]POST finish read [03:15:49]Found Content-Length = 678 [03:15:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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" ] } } [03:15:49]execute_script... [03:15: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)1036027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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" ] } } [03:15:49]POST & json_proto [03:15:49]process_json_proto [03:15:49]json parsed OK: [03:15:49]protocol is kg_v1.0 [03:15:49]action value=close_receipt [03:15:49]process_action close_receipt [03:15:49]cmd_close_receipt [03:15:49]MH_GetDate [03:15:49]Write to MH i2c: F0 00 00 04 47 3A [03:15:49]Write i2c OK [03:15:49]MH_I2C_Read... [03:15:49]Read from MH i2c: F0 [03:15:49]MH_I2C_Read... [03:15:49]Read from MH i2c: F0 09 00 [03:15:49]MH_I2C_Read... [03:15:49]Read from MH i2c: F0 09 00 04 47 00 68 67 C1 66 34 48 D8 65 F2 [03:15:49]GetLastDocTimeStamp 1723950849 [03:15:49]current date 1723950952 [03:15:49]FM_GetShiftState [03:15:49]SAM_PROTO_GetShiftState [03:15:49]wFMCommunicate request_size=4 [03:15:49]MH_SAM_APDU [03:15:49]CAPDU: 80 13 01 00 [03:15:49]Write to MH i2c: E2 08 00 05 47 80 13 01 00 00 00 00 00 C9 [03:15:49]Write i2c OK [03:15:49]MH_I2C_Read... [03:15:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:15:49]Read from MH i2c: E2 [03:15:49]MH_I2C_Read... [03:15:49]Read from MH i2c: E2 0E 00 [03:15:49]MH_I2C_Read... [03:15:49]Read from MH i2c: E2 0E 00 05 47 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 06 [03:15:49]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [03:15:49]wFMCommunicate OK [03:15:49]SAM_PROTO_GetShiftState done [03:15:49]FM_GetShiftState done [03:15:49]opened in 1723940556 [03:15:49]opened+sec_in_day 1724026956 [03:15:49]quantity*price = 50036 [03:15:49]sum+1 = 50037 [03:15:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 42 18.08.2024 03:15 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260484 ФПД: 261321536121459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T031552&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260484&fm=261321536121459&tin=02508201610067®Number=0000000000091865&sum=50000 [03:15:50]StoreToDocumentArchive [03:15:50]shift 449 fd 260484 [03:15:50]save to /storage/0449/doc_00260484 [03:15:50]save last doc name /storage/0449/doc_00260484 to /storage/kkm_last_doc_name [03:15:50]save OK [03:15:50]Clear old archive folders... [03:15:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:15:50]tlvbuf is 0049FC50 [03:15:50]SAM_PROTO_ClearQueue [03:15:50]wFMCommunicate request_size=4 [03:15:50]MH_SAM_APDU [03:15:50]CAPDU: 80 09 00 00 [03:15:50]Write to MH i2c: E2 08 00 12 47 80 09 00 00 00 00 00 00 CB [03:15:50]Write i2c OK [03:15:50]MH_I2C_Read... [03:15:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:15:50]Read from MH i2c: E2 [03:15:50]MH_I2C_Read... [03:15:50]Read from MH i2c: E2 03 00 [03:15:50]MH_I2C_Read... [03:15:50]Read from MH i2c: E2 03 00 12 47 00 90 00 CD [03:15:50]RAPDU: 90 00 [03:15:50]wFMCommunicate OK [03:15:50]SAM_PROTO_ClearQueue done [03:15:50]KKMCreateOFDPacket [03:15:50]OFDProtocolAddRootSTLVToBuf [03:15:50]FM_MakeSignedData [03:15:50]FM_MakeSignedData [03:15:50]SAM_PROTO_SignData [03:15:50]wFMCommunicate request_size=4 [03:15:50]MH_SAM_APDU [03:15:50]CAPDU: 80 0D 01 02 [03:15:50]Write to MH i2c: E2 08 00 13 47 80 0D 01 02 00 00 00 00 D3 [03:15:50]Write i2c OK [03:15:50]MH_I2C_Read... [03:15:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:15:50]Read from MH i2c: E2 [03:15:50]MH_I2C_Read... [03:15:50]Read from MH i2c: E2 03 00 [03:15:50]MH_I2C_Read... [03:15:50]Read from MH i2c: E2 03 00 13 47 00 90 00 CE [03:15:50]RAPDU: 90 00 [03:15:50]wFMCommunicate OK [03:15:50]wFMCommunicate request_size=255 [03:15:50]MH_SAM_APDU [03:15:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2A 00 00 00 F4 03 04 00 68 67 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 84 F9 03 00 35 04 06 00 ED [03:15:50]Write to MH i2c: E2 02 01 14 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2A 00 00 00 F4 03 04 00 68 67 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 84 F9 03 00 35 04 06 00 ED 00 00 9F [03:15:50]Write i2c OK [03:15:50]MH_I2C_Read... [03:15:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:15:51]Read from MH i2c: E2 [03:15:51]MH_I2C_Read... [03:15:51]Read from MH i2c: E2 03 00 [03:15:51]MH_I2C_Read... [03:15:51]Read from MH i2c: E2 03 00 14 47 00 90 00 CF [03:15:51]RAPDU: 90 00 [03:15:51]wFMCommunicate OK [03:15:51]wFMCommunicate request_size=10 [03:15:51]MH_SAM_APDU [03:15:51]CAPDU: 80 0D 02 02 05 AB A9 55 2A 73 [03:15:51]Write to MH i2c: E2 0D 00 15 47 80 0D 02 02 05 00 AB A9 55 2A 73 00 00 26 [03:15:51]Write i2c OK [03:15:51]MH_I2C_Read... [03:15:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:15:51]Read from MH i2c: E2 [03:15:51]MH_I2C_Read... [03:15:51]Read from MH i2c: E2 03 00 [03:15:51]MH_I2C_Read... [03:15:51]Read from MH i2c: E2 03 00 15 47 00 90 00 D0 [03:15:51]RAPDU: 90 00 [03:15:51]wFMCommunicate OK [03:15:51]wFMCommunicate request_size=4 [03:15:51]MH_SAM_APDU [03:15:51]CAPDU: 80 0D 03 02 [03:15:51]Write to MH i2c: E2 08 00 16 47 80 0D 03 02 00 00 00 00 D8 [03:15:51]Write i2c OK [03:15:51]MH_I2C_Read... [03:15:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:15:51]Read from MH i2c: E2 [03:15:51]MH_I2C_Read... [03:15:51]Read from MH i2c: E2 0B 00 [03:15:51]MH_I2C_Read... [03:15:51]Read from MH i2c: E2 0B 00 16 47 00 A3 2E 15 48 B9 25 72 A2 90 00 F9 [03:15:51]RAPDU: A3 2E 15 48 B9 25 72 A2 90 00 [03:15:51]wFMCommunicate OK [03:15:51]SAM_PROTO_SignData done [03:15:51]FM_MakeSignedData done [03:15:51]CreateOFDProtocolMessage [03:15:51]wFMCommunicate request_size=4 [03:15:51]MH_SAM_APDU [03:15:51]CAPDU: 80 11 00 00 [03:15:51]Write to MH i2c: E2 08 00 17 47 80 11 00 00 00 00 00 00 D8 [03:15:51]Write i2c OK [03:15:51]MH_I2C_Read... [03:15:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:15:51]Read from MH i2c: E2 [03:15:51]MH_I2C_Read... [03:15:51]Read from MH i2c: E2 17 00 [03:15:51]MH_I2C_Read... [03:15:51]Read from MH i2c: E2 17 00 17 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 25 [03:15:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [03:15:51]wFMCommunicate OK [03:15:51]CreateOFDProtocolMessage done [03:15:51]OFDSenderStorePacket 260484 [03:15:51]StoreOFDPacket docnum=260484 [03:15:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 65 57 07 01 B3 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2A 00 00 00 F4 03 04 00 68 67 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 84 F9 03 00 35 04 06 00 ED AB A9 55 2A 73 A3 2E 15 48 B9 25 72 A2 [03:15:51]CheckFolder [03:15:51]dirname=/storage/ofd_packets [03:15:51]CheckFolder done [03:15:51]ProducePacketName [03:15:51]name=ofd_packets/00260484 [03:15:51]NVStorageSaveData ofd_packets/00260484 [03:15:51]File name is /storage/ofd_packets/00260484 [03:15:51]Write 301 bytes [03:15:51]NVStorageSaveData done [03:15:51]OFDSenderStorePacket done [03:15:51]KKMCreateOFDPacket done [03:15:51]NVStorageSaveData kkm_last_timestamp [03:15:51]File name is /storage/kkm_last_timestamp [03:15:51]Write 4 bytes [03:15:51]NVStorageSaveData done [03:15:51]ExternCall_PrintAddStr [03:15:51]wPrintStart [03:15:51]Write to MH i2c: 01 00 00 18 47 5F [03:15:51]Write i2c OK [03:15:51]MH_I2C_Read... [03:15:51]Read from MH i2c: 01 [03:15:51]MH_I2C_Read... [03:15:51]Read from MH i2c: 01 07 00 [03:15:51]MH_I2C_Read... [03:15:51]Read from MH i2c: 01 07 00 18 47 00 00 00 00 00 FF 0F 74 [03:15:51]RasterBufferAndPrint [03:15:51]line Счет N : (1)1036027 [03:15:51]line ИНН: 02508201610067 [03:15:51]line Контрольно-Кассовый Чек [03:15:51]line ПРОДАЖА [03:15:51]line ТРК (МРК, ГНК) : 42 [03:15:51]line Товар: 2710124130 [03:15:51]line Аи-92-К-5 [03:15:51]line 7.380 * 67.80 [03:15:51]line = 500.36 [03:15:51]line НДС 12% НСП 1% [03:15:51]line > о реализуемом товаре [03:15:51]line ОКРУГЛЕНИЕ: -0.36 [03:15:51]line ИТОГО: 500.00 [03:15:51]line Внесено: 500.00 [03:15:51]line СДАЧА: 0.00 [03:15:51]line НСП 1% : 4.43 [03:15:51]line НДС 12% : 53.14 [03:15:51]line Наличными: 500.00 [03:15:51]line Безнал.: 0.00 [03:15:51]line Место: АЗС № 94 "Партнер Нефть" [03:15:51]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [03:15:51]line СНО: Общий режим [03:15:51]line Чек 42 18.08.2024 03:15 [03:15:51]line Смена: 449 ФФД: 1.0 [03:15:51]line ЗНМ: 0300000099 [03:15:51]line РНМ: 0000000000091865 [03:15:51]line Версия ККМ: 001 [03:15:51]line ФМ: 0000000000871820 [03:15:51]line ФД: 260484 [03:15:51]line ФПД: 261321536121459 [03:15:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T031552&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260484&fm=261321536121459&tin=02508201610067®Number=0000000000091865&sum=50000 [03:15:51]OFD Sender: Processing packet 260484 [packets to send 192, broken 191] [03:15:51]ProducePacketName [03:15:51]name=ofd_packets/00260484 [03:15:51]OFD Sender: To server: pG, [03:15:51]CommunicateWithHost lk.salyk.kg:30040 [03:15:51]ConnectInit lk.salyk.kg [03:15:51]written 0, free lines is 4095 [03:15:51]Connected sock=10 [03:15: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 30 0F 01 00 00 65 57 07 01 B3 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2A 00 00 00 F4 03 04 00 68 67 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 84 F9 03 00 35 04 06 00 ED AB A9 55 2A 73 A3 2E 15 48 B9 25 72 A2 [03:15: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 30 4F 00 00 00 1C 27 47 00 15 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 30 10 04 04 00 84 F9 03 00 F4 03 04 00 BE 10 C1 66 B6 04 01 00 00 EF 02 B8 C0 59 BE 04 A2 [03:15:51]CommunicateWithHost err = 0 [03:15:51]CheckOFDResponse [03:15:51]1017 (14) - 77093643461234 [03:15:51]1041 (16) - 0000000000871820 [03:15:51]1040 (4) - 260484 [03:15:51]1012 (4) - 17.08.2024 21:06 [03:15:51]1206 (1) - 0 [03:15:51]OFD Sender: Remove packet 260484 [03:15:51]ProducePacketName [03:15:51]name=ofd_packets/00260484 [03:15:51]NVStorageDeleteData [03:15:52]Write to MH i2c: 01 00 00 43 47 8A [03:15:52]Write i2c OK [03:15:52]MH_I2C_Read... [03:15:52]Read from MH i2c: 01 [03:15:52]MH_I2C_Read... [03:15:52]Read from MH i2c: 01 07 00 [03:15:52]MH_I2C_Read... [03:15:52]Read from MH i2c: 01 07 00 43 47 00 00 00 00 00 74 0C 11 [03:15:52]RasterBufferAndPrint [03:15:52]line [03:15:52]line [03:15:52]line [03:15:52]line [03:15:52]line [03:15:52]written 0, free lines is 3191 [03:15:52]MH_Cut [03:15:52]Write to MH i2c: D1 01 00 4A 47 01 63 [03:15:52]Write i2c OK [03:15:52]MH_I2C_Read... [03:15:52]Read from MH i2c: D1 [03:15:52]MH_I2C_Read... [03:15:52]Read from MH i2c: D1 01 00 [03:15:52]MH_I2C_Read... [03:15:52]Read from MH i2c: D1 01 00 4A 47 00 62 [03:15:52]Write to MH i2c: 01 00 00 4B 47 92 [03:15:52]Write i2c OK [03:15:52]MH_I2C_Read... [03:15:52]OFD Sender: No OFD packet to send [03:15:53]*** Cut start [03:15:53]*** Purtial cut [03:15:53]*** Stage 1: CUTSNS_PIN = 1 [03:15:55]Read from MH i2c: 01 [03:15:55]MH_I2C_Read... [03:15:55]*** Stop cut motor [03:15:55]*** Cut end [03:15:55]Read from MH i2c: 01 07 00 [03:15:55]MH_I2C_Read... [03:15:55]Read from MH i2c: 01 07 00 4B 47 00 00 00 00 00 FF 0F A7 [03:15:55]process_action close_receipt done [03:15:55]requested_data is exist [03:15:55]produce_requested_data [03:15:55]requested_item fm.sn is exist - process it [03:15:55]wFMCommunicate request_size=4 [03:15:55]MH_SAM_APDU [03:15:55]CAPDU: 80 11 00 00 [03:15:55]Write to MH i2c: E2 08 00 4C 47 80 11 00 00 00 00 00 00 0D [03:15:55]Write i2c OK [03:15:55]MH_I2C_Read... [03:15:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:15:55]Read from MH i2c: E2 [03:15:55]MH_I2C_Read... [03:15:55]Read from MH i2c: E2 17 00 [03:15:55]MH_I2C_Read... [03:15:55]Read from MH i2c: E2 17 00 4C 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 5A [03:15:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [03:15:55]wFMCommunicate OK [03:15:55]requested_item fd.num is exist - process it [03:15:55]SAM_PROTO_GetFieldsCounters [03:15:55]wFMCommunicate request_size=4 [03:15:55]MH_SAM_APDU [03:15:55]CAPDU: 80 13 00 00 [03:15:55]Write to MH i2c: E2 08 00 4D 47 80 13 00 00 00 00 00 00 10 [03:15:55]Write i2c OK [03:15:55]MH_I2C_Read... [03:15:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:15:55]Read from MH i2c: E2 [03:15:55]MH_I2C_Read... [03:15:55]Read from MH i2c: E2 62 00 [03:15:55]MH_I2C_Read... [03:15:55]Read from MH i2c: E2 62 00 4D 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 84 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [03:15: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 84 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:15:55]wFMCommunicate OK [03:15:55]SAM_PROTO_GetFieldsCounters done [03:15:55]requested_item shift.num is exist - process it [03:15:55]requested_item shift.opened is exist - process it [03:15:55]req_shift_opened [03:15:55]FM_GetShiftState [03:15:55]SAM_PROTO_GetShiftState [03:15:55]wFMCommunicate request_size=4 [03:15:55]MH_SAM_APDU [03:15:55]CAPDU: 80 13 01 00 [03:15:55]Write to MH i2c: E2 08 00 4E 47 80 13 01 00 00 00 00 00 12 [03:15:55]Write i2c OK [03:15:55]MH_I2C_Read... [03:15:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:15:55]Read from MH i2c: E2 [03:15:55]MH_I2C_Read... [03:15:55]Read from MH i2c: E2 0E 00 [03:15:55]MH_I2C_Read... [03:15:55]Read from MH i2c: E2 0E 00 4E 47 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 4F [03:15:55]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [03:15:55]wFMCommunicate OK [03:15:55]SAM_PROTO_GetShiftState done [03:15:55]FM_GetShiftState done [03:15:55]req_shift_opened done [03:15:55]requested_item shift.open_date is exist - process it [03:15:55]req_shift_open_date [03:15:55]req_shift_open_date done [03:15:55]produce_requested_data done [03:15:55]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260484,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [03:15:55]process_action_free close_receipt [03:15:55]json_value_free [03:15:55]json_value_free done [03:15:55]process_json_proto returns [03:15:55]Send response to host [03:15:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260484,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [03:15:55]free response buf [03:15:55]execute_script done [03:15:55]execute_script returns [03:15:55]free content buf [03:15:55]Sock 7.Close socket [03:15:55]Sock 7.Thread stoped [03:15:57]OFD Sender: No OFD packet to send [03:16:02]OFD Sender: No OFD packet to send [03:16:07]OFD Sender: No OFD packet to send [03:16:12]OFD Sender: No OFD packet to send [03:16:17]OFD Sender: No OFD packet to send [03:16:22]OFD Sender: No OFD packet to send [03:16:27]OFD Sender: No OFD packet to send [03:16:32]OFD Sender: No OFD packet to send [03:16:37]OFD Sender: No OFD packet to send [03:16:42]OFD Sender: No OFD packet to send [03:16:47]OFD Sender: No OFD packet to send [03:16:52]OFD Sender: No OFD packet to send [03:16:57]OFD Sender: No OFD packet to send [03:17:02]OFD Sender: No OFD packet to send [03:17:07]OFD Sender: No OFD packet to send [03:17:12]OFD Sender: No OFD packet to send [03:17:17]OFD Sender: No OFD packet to send [03:17:22]OFD Sender: No OFD packet to send [03:17:27]OFD Sender: No OFD packet to send [03:17:32]OFD Sender: No OFD packet to send [03:17:37]OFD Sender: No OFD packet to send [03:17:42]OFD Sender: No OFD packet to send [03:17:47]OFD Sender: No OFD packet to send [03:17:52]OFD Sender: No OFD packet to send [03:17:57]OFD Sender: No OFD packet to send [03:18:02]OFD Sender: No OFD packet to send [03:18:07]OFD Sender: No OFD packet to send [03:18:12]OFD Sender: No OFD packet to send [03:18:17]OFD Sender: No OFD packet to send [03:18:22]OFD Sender: No OFD packet to send [03:18:27]OFD Sender: No OFD packet to send [03:18:32]OFD Sender: No OFD packet to send [03:18:37]OFD Sender: No OFD packet to send [03:18:42]OFD Sender: No OFD packet to send [03:18:47]OFD Sender: No OFD packet to send [03:18:52]OFD Sender: No OFD packet to send [03:18:57]OFD Sender: No OFD packet to send [03:19:02]OFD Sender: No OFD packet to send [03:19:07]OFD Sender: No OFD packet to send [03:19:12]OFD Sender: No OFD packet to send [03:19:17]OFD Sender: No OFD packet to send [03:19:22]OFD Sender: No OFD packet to send [03:19:27]OFD Sender: No OFD packet to send [03:19:32]OFD Sender: No OFD packet to send [03:19:37]OFD Sender: No OFD packet to send [03:19:42]OFD Sender: No OFD packet to send [03:19:47]OFD Sender: No OFD packet to send [03:19:52]OFD Sender: No OFD packet to send [03:19:57]OFD Sender: No OFD packet to send [03:20:02]OFD Sender: No OFD packet to send [03:20:07]OFD Sender: No OFD packet to send [03:20:12]OFD Sender: No OFD packet to send [03:20:17]OFD Sender: No OFD packet to send [03:20:22]OFD Sender: No OFD packet to send [03:20:27]OFD Sender: No OFD packet to send [03:20:32]OFD Sender: No OFD packet to send [03:20:37]OFD Sender: No OFD packet to send [03:20:42]OFD Sender: No OFD packet to send [03:20:47]OFD Sender: No OFD packet to send [03:20:52]OFD Sender: No OFD packet to send [03:20:57]OFD Sender: No OFD packet to send [03:21:02]OFD Sender: No OFD packet to send [03:21:07]OFD Sender: No OFD packet to send [03:21:12]OFD Sender: No OFD packet to send [03:21:17]OFD Sender: No OFD packet to send [03:21:22]OFD Sender: No OFD packet to send [03:21:27]OFD Sender: No OFD packet to send [03:21:32]OFD Sender: No OFD packet to send [03:21:37]OFD Sender: No OFD packet to send [03:21:42]OFD Sender: No OFD packet to send [03:21:47]OFD Sender: No OFD packet to send [03:21:52]OFD Sender: No OFD packet to send [03:21:57]OFD Sender: No OFD packet to send [03:22:02]OFD Sender: No OFD packet to send [03:22:08]OFD Sender: No OFD packet to send [03:22:13]OFD Sender: No OFD packet to send [03:22:18]OFD Sender: No OFD packet to send [03:22:23]OFD Sender: No OFD packet to send [03:22:28]OFD Sender: No OFD packet to send [03:22:33]OFD Sender: No OFD packet to send [03:22:38]OFD Sender: No OFD packet to send [03:22:43]OFD Sender: No OFD packet to send [03:22:48]OFD Sender: No OFD packet to send [03:22:53]OFD Sender: No OFD packet to send [03:22:58]OFD Sender: No OFD packet to send [03:23:03]OFD Sender: No OFD packet to send [03:23:08]OFD Sender: No OFD packet to send [03:23:13]OFD Sender: No OFD packet to send [03:23:18]OFD Sender: No OFD packet to send [03:23:23]OFD Sender: No OFD packet to send [03:23:28]OFD Sender: No OFD packet to send [03:23:33]OFD Sender: No OFD packet to send [03:23:38]OFD Sender: No OFD packet to send [03:23:43]OFD Sender: No OFD packet to send [03:23:48]OFD Sender: No OFD packet to send [03:23:53]OFD Sender: No OFD packet to send [03:23:58]OFD Sender: No OFD packet to send [03:24:03]OFD Sender: No OFD packet to send [03:24:08]OFD Sender: No OFD packet to send [03:24:13]OFD Sender: No OFD packet to send [03:24:18]OFD Sender: No OFD packet to send [03:24:23]OFD Sender: No OFD packet to send [03:24:28]OFD Sender: No OFD packet to send [03:24:33]OFD Sender: No OFD packet to send [03:24:38]OFD Sender: No OFD packet to send [03:24:43]OFD Sender: No OFD packet to send [03:24:48]OFD Sender: No OFD packet to send [03:24:53]OFD Sender: No OFD packet to send [03:24:58]OFD Sender: No OFD packet to send [03:25:03]OFD Sender: No OFD packet to send [03:25:08]OFD Sender: No OFD packet to send [03:25:13]OFD Sender: No OFD packet to send [03:25:18]OFD Sender: No OFD packet to send [03:25:23]OFD Sender: No OFD packet to send [03:25:28]OFD Sender: No OFD packet to send [03:25:33]OFD Sender: No OFD packet to send [03:25:38]OFD Sender: No OFD packet to send [03:25:43]OFD Sender: No OFD packet to send [03:25:48]OFD Sender: No OFD packet to send [03:25:51]accept exits with 9 [03:25:51]New connection [03:25:51]New thread 3066617188 created [03:25:51]Thread 3066473828 joined [03:25:51]Waiting for new connection... [03:25:51] Sock 9.Parse request [03:25:51]Sock 9.Check first char [03:25:51]Sock 9.First char is OK [03:25:51]request: POST /json_proto HTTP/1.0 [03:25:51]Method: POST [03:25:51]URL: /json_proto [03:25:51]Method is POST - this is cgi request [03:25:51]url: /json_proto [03:25:51]query_string will be loaded in cgi processing [03:25:51]execute_cgi json_proto POST (null) [03:25:51]execute_cgi path=json_proto method=POST [03:25:51]POST find Content-Length [03:25:51]Host: 172.17.55.133:8080 [03:25:51]Content-Length: 674 [03:25:51]Content-Type: application/json [03:25:51] [03:25:51]POST finish read [03:25:51]Found Content-Length = 674 [03:25:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 1.040, "sum" : 70.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 70.00, "total" : 70.00, "payments": [ { "type": 0, "sum" : 70.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:25:51]execute_script... [03:25: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)1036028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 1.040, "sum" : 70.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 70.00, "total" : 70.00, "payments": [ { "type": 0, "sum" : 70.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:25:51]POST & json_proto [03:25:51]process_json_proto [03:25:51]json parsed OK: [03:25:51]protocol is kg_v1.0 [03:25:51]action value=close_receipt [03:25:51]process_action close_receipt [03:25:51]cmd_close_receipt [03:25:51]MH_GetDate [03:25:51]Write to MH i2c: F0 00 00 4F 47 85 [03:25:51]Write i2c OK [03:25:51]MH_I2C_Read... [03:25:51]Read from MH i2c: F0 [03:25:51]MH_I2C_Read... [03:25:51]Read from MH i2c: F0 09 00 [03:25:51]MH_I2C_Read... [03:25:51]Read from MH i2c: F0 09 00 4F 47 00 C1 69 C1 66 34 48 D8 65 98 [03:25:51]GetLastDocTimeStamp 1723950952 [03:25:51]current date 1723951553 [03:25:51]FM_GetShiftState [03:25:51]SAM_PROTO_GetShiftState [03:25:51]wFMCommunicate request_size=4 [03:25:51]MH_SAM_APDU [03:25:51]CAPDU: 80 13 01 00 [03:25:51]Write to MH i2c: E2 08 00 50 47 80 13 01 00 00 00 00 00 14 [03:25:51]Write i2c OK [03:25:51]MH_I2C_Read... [03:25:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:25:51]Read from MH i2c: E2 [03:25:51]MH_I2C_Read... [03:25:51]Read from MH i2c: E2 0E 00 [03:25:51]MH_I2C_Read... [03:25:51]Read from MH i2c: E2 0E 00 50 47 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 51 [03:25:51]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [03:25:51]wFMCommunicate OK [03:25:51]SAM_PROTO_GetShiftState done [03:25:51]FM_GetShiftState done [03:25:51]opened in 1723940556 [03:25:51]opened+sec_in_day 1724026956 [03:25:51]quantity*price = 7051 [03:25:51]sum+1 = 7052 [03:25:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 70.00 Внесено: 70.00 СДАЧА: 0.00 НСП 1% : 0.62 НДС 12% : 7.49 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 43 18.08.2024 03:25 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260485 ФПД: 252017434506529 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T032553&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260485&fm=252017434506529&tin=02508201610067®Number=0000000000091865&sum=7000 [03:25:52]StoreToDocumentArchive [03:25:52]shift 449 fd 260485 [03:25:52]save to /storage/0449/doc_00260485 [03:25:52]save last doc name /storage/0449/doc_00260485 to /storage/kkm_last_doc_name [03:25:52]save OK [03:25:52]Clear old archive folders... [03:25:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:25:52]tlvbuf is 003BF670 [03:25:52]SAM_PROTO_ClearQueue [03:25:52]wFMCommunicate request_size=4 [03:25:52]MH_SAM_APDU [03:25:52]CAPDU: 80 09 00 00 [03:25:52]Write to MH i2c: E2 08 00 5D 47 80 09 00 00 00 00 00 00 16 [03:25:52]Write i2c OK [03:25:52]MH_I2C_Read... [03:25:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:25:52]Read from MH i2c: E2 [03:25:52]MH_I2C_Read... [03:25:52]Read from MH i2c: E2 03 00 [03:25:52]MH_I2C_Read... [03:25:52]Read from MH i2c: E2 03 00 5D 47 00 90 00 18 [03:25:52]RAPDU: 90 00 [03:25:52]wFMCommunicate OK [03:25:52]SAM_PROTO_ClearQueue done [03:25:52]KKMCreateOFDPacket [03:25:52]OFDProtocolAddRootSTLVToBuf [03:25:52]FM_MakeSignedData [03:25:52]FM_MakeSignedData [03:25:52]SAM_PROTO_SignData [03:25:52]wFMCommunicate request_size=4 [03:25:52]MH_SAM_APDU [03:25:52]CAPDU: 80 0D 01 02 [03:25:52]Write to MH i2c: E2 08 00 5E 47 80 0D 01 02 00 00 00 00 1E [03:25:52]Write i2c OK [03:25:52]MH_I2C_Read... [03:25:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:25:52]Read from MH i2c: E2 [03:25:52]MH_I2C_Read... [03:25:52]Read from MH i2c: E2 03 00 [03:25:52]MH_I2C_Read... [03:25:52]Read from MH i2c: E2 03 00 5E 47 00 90 00 19 [03:25:52]RAPDU: 90 00 [03:25:52]wFMCommunicate OK [03:25:52]wFMCommunicate request_size=255 [03:25:52]MH_SAM_APDU [03:25:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 04 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 8B 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 02 00 00 00 00 07 04 06 00 58 1B 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 C1 69 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 85 F9 03 00 35 04 06 00 E5 [03:25:52]Write to MH i2c: E2 02 01 5F 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 04 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 8B 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 02 00 00 00 00 07 04 06 00 58 1B 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 C1 69 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 85 F9 03 00 35 04 06 00 E5 00 00 2D [03:25:52]Write i2c OK [03:25:52]MH_I2C_Read... [03:25:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:25:52]Read from MH i2c: E2 [03:25:52]MH_I2C_Read... [03:25:52]Read from MH i2c: E2 03 00 [03:25:52]MH_I2C_Read... [03:25:52]Read from MH i2c: E2 03 00 5F 47 00 90 00 1A [03:25:52]RAPDU: 90 00 [03:25:52]wFMCommunicate OK [03:25:52]wFMCommunicate request_size=10 [03:25:52]MH_SAM_APDU [03:25:52]CAPDU: 80 0D 02 02 05 35 61 A9 35 21 [03:25:52]Write to MH i2c: E2 0D 00 60 47 80 0D 02 02 05 00 35 61 A9 35 21 00 00 C0 [03:25:52]Write i2c OK [03:25:52]MH_I2C_Read... [03:25:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:25:52]Read from MH i2c: E2 [03:25:52]MH_I2C_Read... [03:25:52]Read from MH i2c: E2 03 00 [03:25:52]MH_I2C_Read... [03:25:52]Read from MH i2c: E2 03 00 60 47 00 90 00 1B [03:25:52]RAPDU: 90 00 [03:25:52]wFMCommunicate OK [03:25:52]wFMCommunicate request_size=4 [03:25:52]MH_SAM_APDU [03:25:52]CAPDU: 80 0D 03 02 [03:25:52]Write to MH i2c: E2 08 00 61 47 80 0D 03 02 00 00 00 00 23 [03:25:52]Write i2c OK [03:25:52]MH_I2C_Read... [03:25:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:25:52]Read from MH i2c: E2 [03:25:52]MH_I2C_Read... [03:25:52]Read from MH i2c: E2 0B 00 [03:25:52]MH_I2C_Read... [03:25:52]Read from MH i2c: E2 0B 00 61 47 00 4D 72 87 4B 8A 3C 2D 57 90 00 FF [03:25:52]RAPDU: 4D 72 87 4B 8A 3C 2D 57 90 00 [03:25:52]wFMCommunicate OK [03:25:52]SAM_PROTO_SignData done [03:25:52]FM_MakeSignedData done [03:25:52]CreateOFDProtocolMessage [03:25:52]wFMCommunicate request_size=4 [03:25:52]MH_SAM_APDU [03:25:52]CAPDU: 80 11 00 00 [03:25:52]Write to MH i2c: E2 08 00 62 47 80 11 00 00 00 00 00 00 23 [03:25:52]Write i2c OK [03:25:52]MH_I2C_Read... [03:25:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:25:52]Read from MH i2c: E2 [03:25:52]MH_I2C_Read... [03:25:52]Read from MH i2c: E2 17 00 [03:25:52]MH_I2C_Read... [03:25:52]Read from MH i2c: E2 17 00 62 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 70 [03:25:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [03:25:52]wFMCommunicate OK [03:25:52]CreateOFDProtocolMessage done [03:25:52]OFDSenderStorePacket 260485 [03:25:52]StoreOFDPacket docnum=260485 [03:25:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 AC 46 07 01 C2 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 35 FF 03 08 00 03 10 04 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 8B 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 02 00 00 00 00 07 04 06 00 58 1B 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 C1 69 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 85 F9 03 00 35 04 06 00 E5 35 61 A9 35 21 4D 72 87 4B 8A 3C 2D 57 [03:25:52]CheckFolder [03:25:52]dirname=/storage/ofd_packets [03:25:52]CheckFolder done [03:25:52]ProducePacketName [03:25:52]name=ofd_packets/00260485 [03:25:52]NVStorageSaveData ofd_packets/00260485 [03:25:52]File name is /storage/ofd_packets/00260485 [03:25:52]Write 301 bytes [03:25:52]NVStorageSaveData done [03:25:52]OFDSenderStorePacket done [03:25:52]KKMCreateOFDPacket done [03:25:52]NVStorageSaveData kkm_last_timestamp [03:25:52]File name is /storage/kkm_last_timestamp [03:25:52]Write 4 bytes [03:25:52]NVStorageSaveData done [03:25:52]ExternCall_PrintAddStr [03:25:52]wPrintStart [03:25:52]Write to MH i2c: 01 00 00 63 47 AA [03:25:52]Write i2c OK [03:25:52]MH_I2C_Read... [03:25:52]Read from MH i2c: 01 [03:25:52]MH_I2C_Read... [03:25:52]Read from MH i2c: 01 07 00 [03:25:52]MH_I2C_Read... [03:25:52]Read from MH i2c: 01 07 00 63 47 00 00 00 00 00 FF 0F BF [03:25:52]RasterBufferAndPrint [03:25:52]line Счет N : (1)1036028 [03:25:52]line ИНН: 02508201610067 [03:25:52]line Контрольно-Кассовый Чек [03:25:52]line ПРОДАЖА [03:25:52]line ТРК (МРК, ГНК) : 12 [03:25:52]line Товар: 2710124130 [03:25:52]line Аи-92-К-5 [03:25:52]line 1.040 * 67.80 [03:25:52]line = 70.51 [03:25:52]line НДС 12% НСП 1% [03:25:52]line > о реализуемом товаре [03:25:52]line ОКРУГЛЕНИЕ: -0.51 [03:25:52]line ИТОГО: 70.00 [03:25:52]line Внесено: 70.00 [03:25:52]line СДАЧА: 0.00 [03:25:52]line НСП 1% : 0.62 [03:25:52]line НДС 12% : 7.49 [03:25:52]line Наличными: 70.00 [03:25:52]line Безнал.: 0.00 [03:25:52]line Место: АЗС № 94 "Партнер Нефть" [03:25:52]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [03:25:52]line СНО: Общий режим [03:25:52]line Чек 43 18.08.2024 03:25 [03:25:52]line Смена: 449 ФФД: 1.0 [03:25:52]line ЗНМ: 0300000099 [03:25:52]line РНМ: 0000000000091865 [03:25:52]line Версия ККМ: 001 [03:25:52]line ФМ: 0000000000871820 [03:25:52]line ФД: 260485 [03:25:52]line ФПД: 252017434506529 [03:25:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T032553&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260485&fm=252017434506529&tin=02508201610067®Number=0000000000091865&sum=7000 [03:25:53]written 0, free lines is 4095 [03:25:53]OFD Sender: Processing packet 260485 [packets to send 192, broken 191] [03:25:53]ProducePacketName [03:25:53]name=ofd_packets/00260485 [03:25:53]OFD Sender: To server: pG, [03:25:53]CommunicateWithHost lk.salyk.kg:30040 [03:25:53]ConnectInit lk.salyk.kg [03:25:53]Connected sock=10 [03:25: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 30 0F 01 00 00 AC 46 07 01 C2 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 35 FF 03 08 00 03 10 04 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 8B 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 02 00 00 00 00 07 04 06 00 58 1B 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 C1 69 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 85 F9 03 00 35 04 06 00 E5 35 61 A9 35 21 4D 72 87 4B 8A 3C 2D 57 [03:25: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 30 4F 00 00 00 90 1F 47 00 D3 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 85 F9 03 00 F4 03 04 00 18 13 C1 66 B6 04 01 00 00 09 91 9E 4F DE 5A 0D 78 [03:25:53]CommunicateWithHost err = 0 [03:25:53]CheckOFDResponse [03:25:53]1017 (14) - 77093643461234 [03:25:53]1041 (16) - 0000000000871820 [03:25:53]1040 (4) - 260485 [03:25:53]1012 (4) - 17.08.2024 21:16 [03:25:53]1206 (1) - 0 [03:25:53]OFD Sender: Remove packet 260485 [03:25:53]ProducePacketName [03:25:53]name=ofd_packets/00260485 [03:25:53]NVStorageDeleteData [03:25:53]Write to MH i2c: 01 00 00 8E 47 D5 [03:25:53]Write i2c OK [03:25:53]MH_I2C_Read... [03:25:53]Read from MH i2c: 01 [03:25:53]MH_I2C_Read... [03:25:53]Read from MH i2c: 01 07 00 [03:25:53]MH_I2C_Read... [03:25:53]Read from MH i2c: 01 07 00 8E 47 00 00 00 00 00 6F 0C 57 [03:25:53]RasterBufferAndPrint [03:25:53]line [03:25:53]line [03:25:53]line [03:25:53]line [03:25:53]line [03:25:53]written 0, free lines is 3186 [03:25:53]MH_Cut [03:25:53]Write to MH i2c: D1 01 00 95 47 01 AE [03:25:53]Write i2c OK [03:25:53]MH_I2C_Read... [03:25:53]Read from MH i2c: D1 [03:25:53]MH_I2C_Read... [03:25:53]Read from MH i2c: D1 01 00 [03:25:53]MH_I2C_Read... [03:25:53]Read from MH i2c: D1 01 00 95 47 00 AD [03:25:53]Write to MH i2c: 01 00 00 96 47 DD [03:25:53]Write i2c OK [03:25:53]MH_I2C_Read... [03:25:54]OFD Sender: No OFD packet to send [03:25:54]*** Cut start [03:25:54]*** Purtial cut [03:25:54]*** Stage 1: CUTSNS_PIN = 1 [03:25:56]Read from MH i2c: 01 [03:25:56]MH_I2C_Read... [03:25:56]*** Stop cut motor [03:25:56]*** Cut end [03:25:56]Read from MH i2c: 01 07 00 [03:25:56]MH_I2C_Read... [03:25:56]Read from MH i2c: 01 07 00 96 47 00 00 00 00 00 FF 0F F2 [03:25:56]process_action close_receipt done [03:25:56]requested_data is exist [03:25:56]produce_requested_data [03:25:56]requested_item fm.sn is exist - process it [03:25:56]wFMCommunicate request_size=4 [03:25:56]MH_SAM_APDU [03:25:56]CAPDU: 80 11 00 00 [03:25:56]Write to MH i2c: E2 08 00 97 47 80 11 00 00 00 00 00 00 58 [03:25:56]Write i2c OK [03:25:56]MH_I2C_Read... [03:25:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:25:56]Read from MH i2c: E2 [03:25:56]MH_I2C_Read... [03:25:56]Read from MH i2c: E2 17 00 [03:25:56]MH_I2C_Read... [03:25:56]Read from MH i2c: E2 17 00 97 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A5 [03:25:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [03:25:56]wFMCommunicate OK [03:25:56]requested_item fd.num is exist - process it [03:25:56]SAM_PROTO_GetFieldsCounters [03:25:56]wFMCommunicate request_size=4 [03:25:56]MH_SAM_APDU [03:25:56]CAPDU: 80 13 00 00 [03:25:56]Write to MH i2c: E2 08 00 98 47 80 13 00 00 00 00 00 00 5B [03:25:56]Write i2c OK [03:25:56]MH_I2C_Read... [03:25:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:25:57]Read from MH i2c: E2 [03:25:57]MH_I2C_Read... [03:25:57]Read from MH i2c: E2 62 00 [03:25:57]MH_I2C_Read... [03:25:57]Read from MH i2c: E2 62 00 98 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 85 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [03:25: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 85 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:25:57]wFMCommunicate OK [03:25:57]SAM_PROTO_GetFieldsCounters done [03:25:57]requested_item shift.num is exist - process it [03:25:57]requested_item shift.opened is exist - process it [03:25:57]req_shift_opened [03:25:57]FM_GetShiftState [03:25:57]SAM_PROTO_GetShiftState [03:25:57]wFMCommunicate request_size=4 [03:25:57]MH_SAM_APDU [03:25:57]CAPDU: 80 13 01 00 [03:25:57]Write to MH i2c: E2 08 00 99 47 80 13 01 00 00 00 00 00 5D [03:25:57]Write i2c OK [03:25:57]MH_I2C_Read... [03:25:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:25:57]Read from MH i2c: E2 [03:25:57]MH_I2C_Read... [03:25:57]Read from MH i2c: E2 0E 00 [03:25:57]MH_I2C_Read... [03:25:57]Read from MH i2c: E2 0E 00 99 47 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 9A [03:25:57]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [03:25:57]wFMCommunicate OK [03:25:57]SAM_PROTO_GetShiftState done [03:25:57]FM_GetShiftState done [03:25:57]req_shift_opened done [03:25:57]requested_item shift.open_date is exist - process it [03:25:57]req_shift_open_date [03:25:57]req_shift_open_date done [03:25:57]produce_requested_data done [03:25:57]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260485,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [03:25:57]process_action_free close_receipt [03:25:57]json_value_free [03:25:57]json_value_free done [03:25:57]process_json_proto returns [03:25:57]Send response to host [03:25:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260485,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [03:25:57]free response buf [03:25:57]execute_script done [03:25:57]execute_script returns [03:25:57]free content buf [03:25:57]Sock 9.Close socket [03:25:57]Sock 9.Thread stoped [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:49]OFD Sender: No OFD packet to send [03:26:54]OFD Sender: No OFD packet to send [03:26:59]OFD Sender: No OFD packet to send [03:27:04]OFD Sender: No OFD packet to send [03:27:09]OFD Sender: No OFD packet to send [03:27:14]OFD Sender: No OFD packet to send [03:27:19]OFD Sender: No OFD packet to send [03:27:24]OFD Sender: No OFD packet to send [03:27:29]OFD Sender: No OFD packet to send [03:27:34]OFD Sender: No OFD packet to send [03:27:39]OFD Sender: No OFD packet to send [03:27:44]OFD Sender: No OFD packet to send [03:27:49]OFD Sender: No OFD packet to send [03:27:54]OFD Sender: No OFD packet to send [03:27:59]OFD Sender: No OFD packet to send [03:28:04]OFD Sender: No OFD packet to send [03:28:09]OFD Sender: No OFD packet to send [03:28:14]OFD Sender: No OFD packet to send [03:28:19]OFD Sender: No OFD packet to send [03:28:24]OFD Sender: No OFD packet to send [03:28:29]OFD Sender: No OFD packet to send [03:28:34]OFD Sender: No OFD packet to send [03:28:39]OFD Sender: No OFD packet to send [03:28:44]OFD Sender: No OFD packet to send [03:28:49]OFD Sender: No OFD packet to send [03:28:54]OFD Sender: No OFD packet to send [03:28:59]OFD Sender: No OFD packet to send [03:29:04]OFD Sender: No OFD packet to send [03:29:09]OFD Sender: No OFD packet to send [03:29:14]OFD Sender: No OFD packet to send [03:29:19]OFD Sender: No OFD packet to send [03:29:24]OFD Sender: No OFD packet to send [03:29:29]OFD Sender: No OFD packet to send [03:29:34]OFD Sender: No OFD packet to send [03:29:39]OFD Sender: No OFD packet to send [03:29:44]OFD Sender: No OFD packet to send [03:29:49]OFD Sender: No OFD packet to send [03:29:54]OFD Sender: No OFD packet to send [03:29:59]OFD Sender: No OFD packet to send [03:30:04]OFD Sender: No OFD packet to send [03:30:09]OFD Sender: No OFD packet to send [03:30:14]OFD Sender: No OFD packet to send [03:30:19]OFD Sender: No OFD packet to send [03:30:24]OFD Sender: No OFD packet to send [03:30:29]OFD Sender: No OFD packet to send [03:30:34]OFD Sender: No OFD packet to send [03:30:39]OFD Sender: No OFD packet to send [03:30:44]OFD Sender: No OFD packet to send [03:30:49]OFD Sender: No OFD packet to send [03:30:54]OFD Sender: No OFD packet to send [03:30:59]OFD Sender: No OFD packet to send [03:31:04]OFD Sender: No OFD packet to send [03:31:09]OFD Sender: No OFD packet to send [03:31:14]OFD Sender: No OFD packet to send [03:31:19]OFD Sender: No OFD packet to send [03:31:24]OFD Sender: No OFD packet to send [03:31:29]OFD Sender: No OFD packet to send [03:31:34]OFD Sender: No OFD packet to send [03:31:39]OFD Sender: No OFD packet to send [03:31:44]OFD Sender: No OFD packet to send [03:31:49]OFD Sender: No OFD packet to send [03:31:54]OFD Sender: No OFD packet to send [03:31:59]OFD Sender: No OFD packet to send [03:32:04]OFD Sender: No OFD packet to send [03:32:09]OFD Sender: No OFD packet to send [03:32:14]OFD Sender: No OFD packet to send [03:32:19]OFD Sender: No OFD packet to send [03:32:24]OFD Sender: No OFD packet to send [03:32:29]OFD Sender: No OFD packet to send [03:32:34]OFD Sender: No OFD packet to send [03:32:39]OFD Sender: No OFD packet to send [03:32:44]OFD Sender: No OFD packet to send [03:32:49]OFD Sender: No OFD packet to send [03:32:54]OFD Sender: No OFD packet to send [03:32:59]OFD Sender: No OFD packet to send [03:33:04]OFD Sender: No OFD packet to send [03:33:09]OFD Sender: No OFD packet to send [03:33:14]OFD Sender: No OFD packet to send [03:33:19]OFD Sender: No OFD packet to send [03:33:24]OFD Sender: No OFD packet to send [03:33:29]OFD Sender: No OFD packet to send [03:33:34]OFD Sender: No OFD packet to send [03:33:39]OFD Sender: No OFD packet to send [03:33:44]OFD Sender: No OFD packet to send [03:33:49]OFD Sender: No OFD packet to send [03:33:54]OFD Sender: No OFD packet to send [03:33:59]OFD Sender: No OFD packet to send [03:34:04]OFD Sender: No OFD packet to send [03:34:09]OFD Sender: No OFD packet to send [03:34:14]OFD Sender: No OFD packet to send [03:34:19]OFD Sender: No OFD packet to send [03:34:24]OFD Sender: No OFD packet to send [03:34:29]OFD Sender: No OFD packet to send [03:34:34]OFD Sender: No OFD packet to send [03:34:39]OFD Sender: No OFD packet to send [03:34:44]OFD Sender: No OFD packet to send [03:34:49]OFD Sender: No OFD packet to send [03:34:54]OFD Sender: No OFD packet to send [03:34:59]OFD Sender: No OFD packet to send [03:35:04]OFD Sender: No OFD packet to send [03:35:09]OFD Sender: No OFD packet to send [03:35:14]OFD Sender: No OFD packet to send [03:35:19]OFD Sender: No OFD packet to send [03:35:24]OFD Sender: No OFD packet to send [03:35:29]OFD Sender: No OFD packet to send [03:35:34]OFD Sender: No OFD packet to send [03:35:39]OFD Sender: No OFD packet to send [03:35:44]OFD Sender: No OFD packet to send [03:35:49]OFD Sender: No OFD packet to send [03:35:54]OFD Sender: No OFD packet to send [03:35:59]OFD Sender: No OFD packet to send [03:36:04]OFD Sender: No OFD packet to send [03:36:09]OFD Sender: No OFD packet to send [03:36:14]OFD Sender: No OFD packet to send [03:36:19]OFD Sender: No OFD packet to send [03:36:24]OFD Sender: No OFD packet to send [03:36:29]OFD Sender: No OFD packet to send [03:36:34]OFD Sender: No OFD packet to send [03:36:39]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: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:10]OFD Sender: No OFD packet to send [03:39:15]OFD Sender: No OFD packet to send [03:39:20]OFD Sender: No OFD packet to send [03:39:25]OFD Sender: No OFD packet to send [03:39:30]OFD Sender: No OFD packet to send [03:39:35]OFD Sender: No OFD packet to send [03:39:40]OFD Sender: No OFD packet to send [03:39:45]OFD Sender: No OFD packet to send [03:39:50]OFD Sender: No OFD packet to send [03:39:55]OFD Sender: No OFD packet to send [03:40:00]OFD Sender: No OFD packet to send [03:40:05]OFD Sender: No OFD packet to send [03:40:10]OFD Sender: No OFD packet to send [03:40:15]OFD Sender: No OFD packet to send [03:40:20]OFD Sender: No OFD packet to send [03:40:25]OFD Sender: No OFD packet to send [03:40:30]OFD Sender: No OFD packet to send [03:40:35]OFD Sender: No OFD packet to send [03:40:40]OFD Sender: No OFD packet to send [03:40:45]OFD Sender: No OFD packet to send [03:40:50]OFD Sender: No OFD packet to send [03:40:55]OFD Sender: No OFD packet to send [03:41:00]OFD Sender: No OFD packet to send [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:05]OFD Sender: No OFD packet to send [03:44:09]accept exits with 7 [03:44:09]New connection [03:44:09]New thread 3066473828 created [03:44:09]Thread 3066617188 joined [03:44:09]Waiting for new connection... [03:44:09] Sock 7.Parse request [03:44:09]Sock 7.Check first char [03:44:09]Sock 7.First char is OK [03:44:09]request: POST /json_proto HTTP/1.0 [03:44:09]Method: POST [03:44:09]URL: /json_proto [03:44:09]Method is POST - this is cgi request [03:44:09]url: /json_proto [03:44:09]query_string will be loaded in cgi processing [03:44:09]execute_cgi json_proto POST (null) [03:44:09]execute_cgi path=json_proto method=POST [03:44:09]POST find Content-Length [03:44:09]Host: 172.17.55.133:8080 [03:44:09]Content-Length: 801 [03:44:09]Content-Type: application/json [03:44:09] [03:44:09]POST finish read [03:44:09]Found Content-Length = 801 [03:44:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.070, "sum" : 140.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" : 140.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:44:09]execute_script... [03:44: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)1036029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.070, "sum" : 140.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" : 140.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:44:09]POST & json_proto [03:44:09]process_json_proto [03:44:09]json parsed OK: [03:44:09]protocol is kg_v1.0 [03:44:09]action value=close_receipt [03:44:09]process_action close_receipt [03:44:09]cmd_close_receipt [03:44:09]MH_GetDate [03:44:09]Write to MH i2c: F0 00 00 9A 47 D0 [03:44:09]Write i2c OK [03:44:09]MH_I2C_Read... [03:44:09]Read from MH i2c: F0 [03:44:09]MH_I2C_Read... [03:44:09]Read from MH i2c: F0 09 00 [03:44:09]MH_I2C_Read... [03:44:09]Read from MH i2c: F0 09 00 9A 47 00 0B 6E C1 66 34 48 D8 65 32 [03:44:09]GetLastDocTimeStamp 1723951553 [03:44:09]current date 1723952651 [03:44:09]FM_GetShiftState [03:44:09]SAM_PROTO_GetShiftState [03:44:09]wFMCommunicate request_size=4 [03:44:09]MH_SAM_APDU [03:44:09]CAPDU: 80 13 01 00 [03:44:09]Write to MH i2c: E2 08 00 9B 47 80 13 01 00 00 00 00 00 5F [03:44:09]Write i2c OK [03:44:09]MH_I2C_Read... [03:44:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:44:09]Read from MH i2c: E2 [03:44:09]MH_I2C_Read... [03:44:09]Read from MH i2c: E2 0E 00 [03:44:09]MH_I2C_Read... [03:44:09]Read from MH i2c: E2 0E 00 9B 47 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 9C [03:44:09]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [03:44:09]wFMCommunicate OK [03:44:09]SAM_PROTO_GetShiftState done [03:44:09]FM_GetShiftState done [03:44:09]opened in 1723940556 [03:44:09]opened+sec_in_day 1724026956 [03:44:09]quantity*price = 14034 [03:44:09]sum+1 = 14036 [03:44:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.35 НСП 1% : 1.24 НДС 12% : 14.90 Наличными: 0.00 Безнал.: 140.35 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 44 18.08.2024 03:44 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260486 ФПД: 67960813042270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T034411&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260486&fm=67960813042270&tin=02508201610067®Number=0000000000091865&sum=14035 [03:44:10]StoreToDocumentArchive [03:44:10]shift 449 fd 260486 [03:44:10]save to /storage/0449/doc_00260486 [03:44:10]save last doc name /storage/0449/doc_00260486 to /storage/kkm_last_doc_name [03:44:10]save OK [03:44:10]Clear old archive folders... [03:44:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:44:10]tlvbuf is 004C86C0 [03:44:10]SAM_PROTO_ClearQueue [03:44:10]wFMCommunicate request_size=4 [03:44:10]MH_SAM_APDU [03:44:10]CAPDU: 80 09 00 00 [03:44:10]Write to MH i2c: E2 08 00 A8 47 80 09 00 00 00 00 00 00 61 [03:44:10]Write i2c OK [03:44:10]MH_I2C_Read... [03:44:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:44:10]Read from MH i2c: E2 [03:44:10]MH_I2C_Read... [03:44:10]Read from MH i2c: E2 03 00 [03:44:10]MH_I2C_Read... [03:44:10]Read from MH i2c: E2 03 00 A8 47 00 90 00 63 [03:44:10]RAPDU: 90 00 [03:44:10]wFMCommunicate OK [03:44:10]SAM_PROTO_ClearQueue done [03:44:10]KKMCreateOFDPacket [03:44:10]OFDProtocolAddRootSTLVToBuf [03:44:10]FM_MakeSignedData [03:44:10]FM_MakeSignedData [03:44:10]SAM_PROTO_SignData [03:44:10]wFMCommunicate request_size=4 [03:44:10]MH_SAM_APDU [03:44:10]CAPDU: 80 0D 01 02 [03:44:10]Write to MH i2c: E2 08 00 A9 47 80 0D 01 02 00 00 00 00 69 [03:44:10]Write i2c OK [03:44:10]MH_I2C_Read... [03:44:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:44:10]Read from MH i2c: E2 [03:44:10]MH_I2C_Read... [03:44:10]Read from MH i2c: E2 03 00 [03:44:10]MH_I2C_Read... [03:44:10]Read from MH i2c: E2 03 00 A9 47 00 90 00 64 [03:44:10]RAPDU: 90 00 [03:44:10]wFMCommunicate OK [03:44:10]wFMCommunicate request_size=255 [03:44:10]MH_SAM_APDU [03:44:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D3 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 0B 6E C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 86 F9 03 00 35 04 06 00 3D [03:44:10]Write to MH i2c: E2 02 01 AA 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D3 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 0B 6E C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 86 F9 03 00 35 04 06 00 3D 00 00 E0 [03:44:10]Write i2c OK [03:44:10]MH_I2C_Read... [03:44:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:44:10]Read from MH i2c: E2 [03:44:10]MH_I2C_Read... [03:44:10]Read from MH i2c: E2 03 00 [03:44:10]MH_I2C_Read... [03:44:10]Read from MH i2c: E2 03 00 AA 47 00 90 00 65 [03:44:10]RAPDU: 90 00 [03:44:10]wFMCommunicate OK [03:44:10]wFMCommunicate request_size=10 [03:44:10]MH_SAM_APDU [03:44:10]CAPDU: 80 0D 02 02 05 CF 5C 1E BA 5E [03:44:10]Write to MH i2c: E2 0D 00 AB 47 80 0D 02 02 05 00 CF 5C 1E BA 5E 00 00 D7 [03:44:10]Write i2c OK [03:44:10]MH_I2C_Read... [03:44:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:44:10]Read from MH i2c: E2 [03:44:10]MH_I2C_Read... [03:44:10]Read from MH i2c: E2 03 00 [03:44:10]MH_I2C_Read... [03:44:10]Read from MH i2c: E2 03 00 AB 47 00 90 00 66 [03:44:10]RAPDU: 90 00 [03:44:10]wFMCommunicate OK [03:44:10]wFMCommunicate request_size=4 [03:44:10]MH_SAM_APDU [03:44:10]CAPDU: 80 0D 03 02 [03:44:10]Write to MH i2c: E2 08 00 AC 47 80 0D 03 02 00 00 00 00 6E [03:44:10]Write i2c OK [03:44:10]MH_I2C_Read... [03:44:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:44:10]OFD Sender: No OFD packet to send [03:44:10]Read from MH i2c: E2 [03:44:10]MH_I2C_Read... [03:44:10]Read from MH i2c: E2 0B 00 [03:44:10]MH_I2C_Read... [03:44:10]Read from MH i2c: E2 0B 00 AC 47 00 45 02 97 AA 4E CC 20 DA 90 00 0B [03:44:10]RAPDU: 45 02 97 AA 4E CC 20 DA 90 00 [03:44:10]wFMCommunicate OK [03:44:10]SAM_PROTO_SignData done [03:44:10]FM_MakeSignedData done [03:44:10]CreateOFDProtocolMessage [03:44:10]wFMCommunicate request_size=4 [03:44:10]MH_SAM_APDU [03:44:10]CAPDU: 80 11 00 00 [03:44:10]Write to MH i2c: E2 08 00 AD 47 80 11 00 00 00 00 00 00 6E [03:44:10]Write i2c OK [03:44:10]MH_I2C_Read... [03:44:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:44:10]Read from MH i2c: E2 [03:44:10]MH_I2C_Read... [03:44:10]Read from MH i2c: E2 17 00 [03:44:10]MH_I2C_Read... [03:44:10]Read from MH i2c: E2 17 00 AD 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 BB [03:44:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [03:44:10]wFMCommunicate OK [03:44:10]CreateOFDProtocolMessage done [03:44:10]OFDSenderStorePacket 260486 [03:44:10]StoreOFDPacket docnum=260486 [03:44:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 86 D1 07 01 84 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D3 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 0B 6E C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 86 F9 03 00 35 04 06 00 3D CF 5C 1E BA 5E 45 02 97 AA 4E CC 20 DA [03:44:10]CheckFolder [03:44:10]dirname=/storage/ofd_packets [03:44:10]CheckFolder done [03:44:10]ProducePacketName [03:44:10]name=ofd_packets/00260486 [03:44:10]NVStorageSaveData ofd_packets/00260486 [03:44:10]File name is /storage/ofd_packets/00260486 [03:44:10]Write 301 bytes [03:44:10]NVStorageSaveData done [03:44:10]OFDSenderStorePacket done [03:44:10]KKMCreateOFDPacket done [03:44:10]NVStorageSaveData kkm_last_timestamp [03:44:10]File name is /storage/kkm_last_timestamp [03:44:10]Write 4 bytes [03:44:10]NVStorageSaveData done [03:44:10]ExternCall_PrintAddStr [03:44:10]wPrintStart [03:44:10]Write to MH i2c: 01 00 00 AE 47 F5 [03:44:10]Write i2c OK [03:44:10]MH_I2C_Read... [03:44:10]Read from MH i2c: 01 [03:44:10]MH_I2C_Read... [03:44:10]Read from MH i2c: 01 07 00 [03:44:10]MH_I2C_Read... [03:44:10]Read from MH i2c: 01 07 00 AE 47 00 00 00 00 00 FF 0F 0A [03:44:10]RasterBufferAndPrint [03:44:10]line Счет N : (1)1036029 [03:44:10]line ИНН: 02508201610067 [03:44:10]line Контрольно-Кассовый Чек [03:44:10]line ПРОДАЖА [03:44:10]line ТРК (МРК, ГНК) : 12 [03:44:10]line Товар: 2710124130 [03:44:10]line Аи-92-К-5 [03:44:10]line 2.070 * 67.80 [03:44:10]line = 140.35 [03:44:10]line НДС 12% НСП 1% [03:44:10]line > о реализуемом товаре [03:44:10]line ИТОГО: 140.35 [03:44:10]line НСП 1% : 1.24 [03:44:10]line НДС 12% : 14.90 [03:44:10]line Наличными: 0.00 [03:44:10]line Безнал.: 140.35 [03:44:10]line Место: АЗС № 94 "Партнер Нефть" [03:44:10]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [03:44:10]line СНО: Общий режим [03:44:10]line Чек 44 18.08.2024 03:44 [03:44:10]line Смена: 449 ФФД: 1.0 [03:44:10]line ЗНМ: 0300000099 [03:44:10]line РНМ: 0000000000091865 [03:44:10]line Версия ККМ: 001 [03:44:10]line Платежная система: O! деньги [03:44:10]line ФМ: 0000000000871820 [03:44:10]line ФД: 260486 [03:44:10]line ФПД: 67960813042270 [03:44:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T034411&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260486&fm=67960813042270&tin=02508201610067®Number=0000000000091865&sum=14035 [03:44:11]OFD Sender: Processing packet 260486 [packets to send 192, broken 191] [03:44:11]ProducePacketName [03:44:11]name=ofd_packets/00260486 [03:44:11]OFD Sender: To server: pG, [03:44:11]CommunicateWithHost lk.salyk.kg:30040 [03:44:11]ConnectInit lk.salyk.kg [03:44:11]written 0, free lines is 4095 [03:44:11]Connected sock=10 [03:44: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 30 0F 01 00 00 86 D1 07 01 84 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D3 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 0B 6E C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 86 F9 03 00 35 04 06 00 3D CF 5C 1E BA 5E 45 02 97 AA 4E CC 20 DA [03:44: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 30 4F 00 00 00 C6 C4 47 00 4C 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 30 10 04 04 00 86 F9 03 00 F4 03 04 00 62 17 C1 66 B6 04 01 00 00 D3 3D 0C 94 DA 87 48 51 [03:44:11]CommunicateWithHost err = 0 [03:44:11]CheckOFDResponse [03:44:11]1017 (14) - 77093643461234 [03:44:11]1041 (16) - 0000000000871820 [03:44:11]1040 (4) - 260486 [03:44:11]1012 (4) - 17.08.2024 21:34 [03:44:11]1206 (1) - 0 [03:44:11]OFD Sender: Remove packet 260486 [03:44:11]ProducePacketName [03:44:11]name=ofd_packets/00260486 [03:44:11]NVStorageDeleteData [03:44:11]Write to MH i2c: 01 00 00 D8 47 1F [03:44:11]Write i2c OK [03:44:11]MH_I2C_Read... [03:44:11]Read from MH i2c: 01 [03:44:11]MH_I2C_Read... [03:44:11]Read from MH i2c: 01 07 00 [03:44:11]MH_I2C_Read... [03:44:11]Read from MH i2c: 01 07 00 D8 47 00 00 00 00 00 87 0C B9 [03:44:11]RasterBufferAndPrint [03:44:11]line [03:44:11]line [03:44:11]line [03:44:11]line [03:44:11]line [03:44:11]written 0, free lines is 3210 [03:44:11]MH_Cut [03:44:11]Write to MH i2c: D1 01 00 DF 47 01 F8 [03:44:11]Write i2c OK [03:44:11]MH_I2C_Read... [03:44:11]Read from MH i2c: D1 [03:44:11]MH_I2C_Read... [03:44:11]Read from MH i2c: D1 01 00 [03:44:11]MH_I2C_Read... [03:44:11]Read from MH i2c: D1 01 00 DF 47 00 F7 [03:44:11]Write to MH i2c: 01 00 00 E0 47 27 [03:44:11]Write i2c OK [03:44:11]MH_I2C_Read... [03:44:11]OFD Sender: No OFD packet to send [03:44:12]*** Cut start [03:44:12]*** Purtial cut [03:44:12]*** Stage 1: CUTSNS_PIN = 1 [03:44:14]Read from MH i2c: 01 [03:44:14]MH_I2C_Read... [03:44:14]*** Stop cut motor [03:44:14]*** Cut end [03:44:14]Read from MH i2c: 01 07 00 [03:44:14]MH_I2C_Read... [03:44:14]Read from MH i2c: 01 07 00 E0 47 00 00 00 00 00 FF 0F 3C [03:44:14]process_action close_receipt done [03:44:14]requested_data is exist [03:44:14]produce_requested_data [03:44:14]requested_item fm.sn is exist - process it [03:44:14]wFMCommunicate request_size=4 [03:44:14]MH_SAM_APDU [03:44:14]CAPDU: 80 11 00 00 [03:44:14]Write to MH i2c: E2 08 00 E1 47 80 11 00 00 00 00 00 00 A2 [03:44:14]Write i2c OK [03:44:14]MH_I2C_Read... [03:44:14]Read from MH i2c: E2 [03:44:14]MH_I2C_Read... [03:44:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:44:14]Read from MH i2c: E2 17 00 [03:44:14]MH_I2C_Read... [03:44:14]Read from MH i2c: E2 17 00 E1 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 EF [03:44:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [03:44:14]wFMCommunicate OK [03:44:14]requested_item fd.num is exist - process it [03:44:14]SAM_PROTO_GetFieldsCounters [03:44:14]wFMCommunicate request_size=4 [03:44:14]MH_SAM_APDU [03:44:14]CAPDU: 80 13 00 00 [03:44:14]Write to MH i2c: E2 08 00 E2 47 80 13 00 00 00 00 00 00 A5 [03:44:14]Write i2c OK [03:44:14]MH_I2C_Read... [03:44:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:44:14]Read from MH i2c: E2 [03:44:14]MH_I2C_Read... [03:44:14]Read from MH i2c: E2 62 00 [03:44:14]MH_I2C_Read... [03:44:14]Read from MH i2c: E2 62 00 E2 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 86 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [03:44: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 86 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:44:14]wFMCommunicate OK [03:44:14]SAM_PROTO_GetFieldsCounters done [03:44:14]requested_item shift.num is exist - process it [03:44:14]requested_item shift.opened is exist - process it [03:44:14]req_shift_opened [03:44:14]FM_GetShiftState [03:44:14]SAM_PROTO_GetShiftState [03:44:14]wFMCommunicate request_size=4 [03:44:14]MH_SAM_APDU [03:44:14]CAPDU: 80 13 01 00 [03:44:14]Write to MH i2c: E2 08 00 E3 47 80 13 01 00 00 00 00 00 A7 [03:44:14]Write i2c OK [03:44:14]MH_I2C_Read... [03:44:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:44:14]Read from MH i2c: E2 [03:44:14]MH_I2C_Read... [03:44:14]Read from MH i2c: E2 0E 00 [03:44:14]MH_I2C_Read... [03:44:14]Read from MH i2c: E2 0E 00 E3 47 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E4 [03:44:14]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [03:44:14]wFMCommunicate OK [03:44:14]SAM_PROTO_GetShiftState done [03:44:14]FM_GetShiftState done [03:44:14]req_shift_opened done [03:44:14]requested_item shift.open_date is exist - process it [03:44:14]req_shift_open_date [03:44:14]req_shift_open_date done [03:44:14]produce_requested_data done [03:44:14]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260486,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [03:44:14]process_action_free close_receipt [03:44:14]json_value_free [03:44:14]json_value_free done [03:44:14]process_json_proto returns [03:44:14]Send response to host [03:44:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260486,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [03:44:14]free response buf [03:44:14]execute_script done [03:44:14]execute_script returns [03:44:14]free content buf [03:44:14]Sock 7.Close socket [03:44:14]Sock 7.Thread stoped [03:44:16]OFD Sender: No OFD packet to send [03:44:21]OFD Sender: No OFD packet to send [03:44:26]OFD Sender: No OFD packet to send [03:44:31]OFD Sender: No OFD packet to send [03:44:36]OFD Sender: No OFD packet to send [03:44:41]OFD Sender: No OFD packet to send [03:44:46]OFD Sender: No OFD packet to send [03:44:51]OFD Sender: No OFD packet to send [03:44:56]OFD Sender: No OFD packet to send [03:45:01]OFD Sender: No OFD packet to send [03:45:06]OFD Sender: No OFD packet to send [03:45:11]OFD Sender: No OFD packet to send [03:45:16]OFD Sender: No OFD packet to send [03:45:21]OFD Sender: No OFD packet to send [03:45:26]OFD Sender: No OFD packet to send [03:45:31]OFD Sender: No OFD packet to send [03:45:36]OFD Sender: No OFD packet to send [03:45:41]OFD Sender: No OFD packet to send [03:45:46]OFD Sender: No OFD packet to send [03:45:51]OFD Sender: No OFD packet to send [03:45:57]OFD Sender: No OFD packet to send [03:46:02]OFD Sender: No OFD packet to send [03:46:07]OFD Sender: No OFD packet to send [03:46:12]OFD Sender: No OFD packet to send [03:46:17]OFD Sender: No OFD packet to send [03:46:22]OFD Sender: No OFD packet to send [03:46:27]OFD Sender: No OFD packet to send [03:46:32]OFD Sender: No OFD packet to send [03:46:37]OFD Sender: No OFD packet to send [03:46:42]OFD Sender: No OFD packet to send [03:46:47]OFD Sender: No OFD packet to send [03:46:52]OFD Sender: No OFD packet to send [03:46:57]OFD Sender: No OFD packet to send [03:47:02]OFD Sender: No OFD packet to send [03:47:07]OFD Sender: No OFD packet to send [03:47:12]OFD Sender: No OFD packet to send [03:47:17]OFD Sender: No OFD packet to send [03:47:22]OFD Sender: No OFD packet to send [03:47:27]OFD Sender: No OFD packet to send [03:47:32]OFD Sender: No OFD packet to send [03:47:37]OFD Sender: No OFD packet to send [03:47:42]OFD Sender: No OFD packet to send [03:47:47]OFD Sender: No OFD packet to send [03:47:52]OFD Sender: No OFD packet to send [03:47:57]OFD Sender: No OFD packet to send [03:48:02]OFD Sender: No OFD packet to send [03:48:07]OFD Sender: No OFD packet to send [03:48:12]OFD Sender: No OFD packet to send [03:48:17]OFD Sender: No OFD packet to send [03:48:22]OFD Sender: No OFD packet to send [03:48:27]OFD Sender: No OFD packet to send [03:48:32]OFD Sender: No OFD packet to send [03:48:37]OFD Sender: No OFD packet to send [03:48:42]OFD Sender: No OFD packet to send [03:48:47]OFD Sender: No OFD packet to send [03:48:52]OFD Sender: No OFD packet to send [03:48:57]OFD Sender: No OFD packet to send [03:49:02]OFD Sender: No OFD packet to send [03:49:07]OFD Sender: No OFD packet to send [03:49:12]OFD Sender: No OFD packet to send [03:49:17]OFD Sender: No OFD packet to send [03:49:22]OFD Sender: No OFD packet to send [03:49:27]OFD Sender: No OFD packet to send [03:49:32]OFD Sender: No OFD packet to send [03:49:37]OFD Sender: No OFD packet to send [03:49:42]OFD Sender: No OFD packet to send [03:49:47]OFD Sender: No OFD packet to send [03:49:52]OFD Sender: No OFD packet to send [03:49:57]OFD Sender: No OFD packet to send [03:50:02]OFD Sender: No OFD packet to send [03:50:07]OFD Sender: No OFD packet to send [03:50:12]OFD Sender: No OFD packet to send [03:50:17]OFD Sender: No OFD packet to send [03:50:22]OFD Sender: No OFD packet to send [03:50:27]OFD Sender: No OFD packet to send [03:50:32]OFD Sender: No OFD packet to send [03:50:37]OFD Sender: No OFD packet to send [03:50:42]OFD Sender: No OFD packet to send [03:50:47]OFD Sender: No OFD packet to send [03:50:52]OFD Sender: No OFD packet to send [03:50:57]OFD Sender: No OFD packet to send [03:51:02]OFD Sender: No OFD packet to send [03:51:07]OFD Sender: No OFD packet to send [03:51:12]OFD Sender: No OFD packet to send [03:51:17]OFD Sender: No OFD packet to send [03:51:22]OFD Sender: No OFD packet to send [03:51:27]OFD Sender: No OFD packet to send [03:51:32]OFD Sender: No OFD packet to send [03:51:37]OFD Sender: No OFD packet to send [03:51:42]OFD Sender: No OFD packet to send [03:51:47]OFD Sender: No OFD packet to send [03:51:52]OFD Sender: No OFD packet to send [03:51:57]OFD Sender: No OFD packet to send [03:52:02]OFD Sender: No OFD packet to send [03:52:07]OFD Sender: No OFD packet to send [03:52:12]OFD Sender: No OFD packet to send [03:52:17]OFD Sender: No OFD packet to send [03:52:22]OFD Sender: No OFD packet to send [03:52:27]OFD Sender: No OFD packet to send [03:52:32]OFD Sender: No OFD packet to send [03:52:37]OFD Sender: No OFD packet to send [03:52:42]OFD Sender: No OFD packet to send [03:52:47]OFD Sender: No OFD packet to send [03:52:52]OFD Sender: No OFD packet to send [03:52:57]OFD Sender: No OFD packet to send [03:53:02]OFD Sender: No OFD packet to send [03:53:07]OFD Sender: No OFD packet to send [03:53:12]OFD Sender: No OFD packet to send [03:53:17]OFD Sender: No OFD packet to send [03:53:22]OFD Sender: No OFD packet to send [03:53:27]OFD Sender: No OFD packet to send [03:53:32]OFD Sender: No OFD packet to send [03:53:37]OFD Sender: No OFD packet to send [03:53:42]OFD Sender: No OFD packet to send [03:53:47]OFD Sender: No OFD packet to send [03:53:52]OFD Sender: No OFD packet to send [03:53:57]OFD Sender: No OFD packet to send [03:54:02]OFD Sender: No OFD packet to send [03:54:07]OFD Sender: No OFD packet to send [03:54:12]OFD Sender: No OFD packet to send [03:54:17]OFD Sender: No OFD packet to send [03:54:22]OFD Sender: No OFD packet to send [03:54:27]OFD Sender: No OFD packet to send [03:54:32]OFD Sender: No OFD packet to send [03:54:37]OFD Sender: No OFD packet to send [03:54:42]OFD Sender: No OFD packet to send [03:54:47]OFD Sender: No OFD packet to send [03:54:52]OFD Sender: No OFD packet to send [03:54:57]OFD Sender: No OFD packet to send [03:55:02]OFD Sender: No OFD packet to send [03:55:07]OFD Sender: No OFD packet to send [03:55:12]OFD Sender: No OFD packet to send [03:55:17]OFD Sender: No OFD packet to send [03:55:22]OFD Sender: No OFD packet to send [03:55:27]OFD Sender: No OFD packet to send [03:55:32]OFD Sender: No OFD packet to send [03:55:37]OFD Sender: No OFD packet to send [03:55:42]OFD Sender: No OFD packet to send [03:55:47]OFD Sender: No OFD packet to send [03:55:52]OFD Sender: No OFD packet to send [03:55:57]OFD Sender: No OFD packet to send [03:56:02]OFD Sender: No OFD packet to send [03:56:07]OFD Sender: No OFD packet to send [03:56:12]OFD Sender: No OFD packet to send [03:56:17]OFD Sender: No OFD packet to send [03:56:22]OFD Sender: No OFD packet to send [03:56:27]OFD Sender: No OFD packet to send [03:56:32]OFD Sender: No OFD packet to send [03:56:37]OFD Sender: No OFD packet to send [03:56:42]OFD Sender: No OFD packet to send [03:56:47]OFD Sender: No OFD packet to send [03:56:52]OFD Sender: No OFD packet to send [03:56:57]OFD Sender: No OFD packet to send [03:57:02]OFD Sender: No OFD packet to send [03:57:07]OFD Sender: No OFD packet to send [03:57:12]OFD Sender: No OFD packet to send [03:57:17]OFD Sender: No OFD packet to send [03:57:22]OFD Sender: No OFD packet to send [03:57:27]OFD Sender: No OFD packet to send [03:57:32]OFD Sender: No OFD packet to send [03:57:37]OFD Sender: No OFD packet to send [03:57:42]OFD Sender: No OFD packet to send [03:57:48]OFD Sender: No OFD packet to send [03:57:53]OFD Sender: No OFD packet to send [03:57:58]OFD Sender: No OFD packet to send [03:58:03]OFD Sender: No OFD packet to send [03:58:08]OFD Sender: No OFD packet to send [03:58:13]OFD Sender: No OFD packet to send [03:58:18]OFD Sender: No OFD packet to send [03:58:23]OFD Sender: No OFD packet to send [03:58:28]OFD Sender: No OFD packet to send [03:58:33]OFD Sender: No OFD packet to send [03:58:38]OFD Sender: No OFD packet to send [03:58:43]OFD Sender: No OFD packet to send [03:58:48]OFD Sender: No OFD packet to send [03:58:53]OFD Sender: No OFD packet to send [03:58:58]OFD Sender: No OFD packet to send [03:59:03]OFD Sender: No OFD packet to send [03:59:08]OFD Sender: No OFD packet to send [03:59:13]OFD Sender: No OFD packet to send [03:59:18]OFD Sender: No OFD packet to send [03:59:23]OFD Sender: No OFD packet to send [03:59:28]OFD Sender: No OFD packet to send [03:59:33]OFD Sender: No OFD packet to send [03:59:38]OFD Sender: No OFD packet to send [03:59:43]OFD Sender: No OFD packet to send [03:59:48]OFD Sender: No OFD packet to send [03:59:53]OFD Sender: No OFD packet to send [03:59:58]OFD Sender: No OFD packet to send [04:00:01]accept exits with 9 [04:00:01]New connection [04:00:01]New thread 3066617188 created [04:00:01]Thread 3066473828 joined [04:00:01]Waiting for new connection... [04:00:01] Sock 9.Parse request [04:00:01]Sock 9.Check first char [04:00:01]Sock 9.First char is OK [04:00:01]request: POST /json_proto HTTP/1.0 [04:00:01]Method: POST [04:00:01]URL: /json_proto [04:00:01]Method is POST - this is cgi request [04:00:01]url: /json_proto [04:00:01]query_string will be loaded in cgi processing [04:00:01]execute_cgi json_proto POST (null) [04:00:01]execute_cgi path=json_proto method=POST [04:00:01]POST find Content-Length [04:00:01]Host: 172.17.55.133:8080 [04:00:01]Content-Length: 678 [04:00:01]Content-Type: application/json [04:00:01] [04:00:01]POST finish read [04:00:01]Found Content-Length = 678 [04:00:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "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" ] } } [04:00:01]execute_script... [04:00: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)1036030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "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" ] } } [04:00:01]POST & json_proto [04:00:01]process_json_proto [04:00:01]json parsed OK: [04:00:01]protocol is kg_v1.0 [04:00:01]action value=close_receipt [04:00:01]process_action close_receipt [04:00:01]cmd_close_receipt [04:00:01]MH_GetDate [04:00:01]Write to MH i2c: F0 00 00 E4 47 1A [04:00:01]Write i2c OK [04:00:01]MH_I2C_Read... [04:00:01]Read from MH i2c: F0 [04:00:01]MH_I2C_Read... [04:00:01]Read from MH i2c: F0 09 00 [04:00:01]MH_I2C_Read... [04:00:01]Read from MH i2c: F0 09 00 E4 47 00 C3 71 C1 66 34 48 D8 65 37 [04:00:01]GetLastDocTimeStamp 1723952651 [04:00:01]current date 1723953603 [04:00:01]FM_GetShiftState [04:00:01]SAM_PROTO_GetShiftState [04:00:01]wFMCommunicate request_size=4 [04:00:01]MH_SAM_APDU [04:00:01]CAPDU: 80 13 01 00 [04:00:01]Write to MH i2c: E2 08 00 E5 47 80 13 01 00 00 00 00 00 A9 [04:00:01]Write i2c OK [04:00:01]MH_I2C_Read... [04:00:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:00:01]Read from MH i2c: E2 [04:00:01]MH_I2C_Read... [04:00:01]Read from MH i2c: E2 0E 00 [04:00:01]MH_I2C_Read... [04:00:01]Read from MH i2c: E2 0E 00 E5 47 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E6 [04:00:01]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [04:00:01]wFMCommunicate OK [04:00:01]SAM_PROTO_GetShiftState done [04:00:01]FM_GetShiftState done [04:00:01]opened in 1723940556 [04:00:01]opened+sec_in_day 1724026956 [04:00:01]quantity*price = 25018 [04:00:01]sum+1 = 25019 [04:00:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 45 18.08.2024 04:00 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260487 ФПД: 75139230153122 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T040003&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260487&fm=75139230153122&tin=02508201610067®Number=0000000000091865&sum=25000 [04:00:02]StoreToDocumentArchive [04:00:02]shift 449 fd 260487 [04:00:02]save to /storage/0449/doc_00260487 [04:00:02]save last doc name /storage/0449/doc_00260487 to /storage/kkm_last_doc_name [04:00:02]save OK [04:00:02]Clear old archive folders... [04:00:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:00:02]tlvbuf is 003A70E0 [04:00:02]SAM_PROTO_ClearQueue [04:00:02]wFMCommunicate request_size=4 [04:00:02]MH_SAM_APDU [04:00:02]CAPDU: 80 09 00 00 [04:00:02]Write to MH i2c: E2 08 00 F2 47 80 09 00 00 00 00 00 00 AB [04:00:02]Write i2c OK [04:00:02]MH_I2C_Read... [04:00:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:00:02]Read from MH i2c: E2 [04:00:02]MH_I2C_Read... [04:00:02]Read from MH i2c: E2 03 00 [04:00:02]MH_I2C_Read... [04:00:02]Read from MH i2c: E2 03 00 F2 47 00 90 00 AD [04:00:02]RAPDU: 90 00 [04:00:02]wFMCommunicate OK [04:00:02]SAM_PROTO_ClearQueue done [04:00:02]KKMCreateOFDPacket [04:00:02]OFDProtocolAddRootSTLVToBuf [04:00:02]FM_MakeSignedData [04:00:02]FM_MakeSignedData [04:00:02]SAM_PROTO_SignData [04:00:02]wFMCommunicate request_size=4 [04:00:02]MH_SAM_APDU [04:00:02]CAPDU: 80 0D 01 02 [04:00:02]Write to MH i2c: E2 08 00 F3 47 80 0D 01 02 00 00 00 00 B3 [04:00:02]Write i2c OK [04:00:02]MH_I2C_Read... [04:00:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:00:02]Read from MH i2c: E2 [04:00:02]MH_I2C_Read... [04:00:02]Read from MH i2c: E2 03 00 [04:00:02]MH_I2C_Read... [04:00:02]Read from MH i2c: E2 03 00 F3 47 00 90 00 AE [04:00:02]RAPDU: 90 00 [04:00:02]wFMCommunicate OK [04:00:02]wFMCommunicate request_size=255 [04:00:02]MH_SAM_APDU [04:00:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 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 2D 00 00 00 F4 03 04 00 C3 71 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 87 F9 03 00 35 04 06 00 44 [04:00:02]Write to MH i2c: E2 02 01 F4 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 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 2D 00 00 00 F4 03 04 00 C3 71 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 87 F9 03 00 35 04 06 00 44 00 00 4F [04:00:02]Write i2c OK [04:00:02]MH_I2C_Read... [04:00:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:00:02]Read from MH i2c: E2 [04:00:02]MH_I2C_Read... [04:00:02]Read from MH i2c: E2 03 00 [04:00:02]MH_I2C_Read... [04:00:02]Read from MH i2c: E2 03 00 F4 47 00 90 00 AF [04:00:02]RAPDU: 90 00 [04:00:02]wFMCommunicate OK [04:00:02]wFMCommunicate request_size=10 [04:00:02]MH_SAM_APDU [04:00:02]CAPDU: 80 0D 02 02 05 56 B7 1F 39 A2 [04:00:02]Write to MH i2c: E2 0D 00 F5 47 80 0D 02 02 05 00 56 B7 1F 39 A2 00 00 C7 [04:00:02]Write i2c OK [04:00:02]MH_I2C_Read... [04:00:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:00:02]Read from MH i2c: E2 [04:00:02]MH_I2C_Read... [04:00:02]Read from MH i2c: E2 03 00 [04:00:02]MH_I2C_Read... [04:00:02]Read from MH i2c: E2 03 00 F5 47 00 90 00 B0 [04:00:02]RAPDU: 90 00 [04:00:02]wFMCommunicate OK [04:00:02]wFMCommunicate request_size=4 [04:00:02]MH_SAM_APDU [04:00:02]CAPDU: 80 0D 03 02 [04:00:02]Write to MH i2c: E2 08 00 F6 47 80 0D 03 02 00 00 00 00 B8 [04:00:02]Write i2c OK [04:00:02]MH_I2C_Read... [04:00:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:00:02]Read from MH i2c: E2 [04:00:02]MH_I2C_Read... [04:00:02]Read from MH i2c: E2 0B 00 [04:00:02]MH_I2C_Read... [04:00:02]Read from MH i2c: E2 0B 00 F6 47 00 8B 05 78 5D 67 3D 5B D8 90 00 F5 [04:00:02]RAPDU: 8B 05 78 5D 67 3D 5B D8 90 00 [04:00:02]wFMCommunicate OK [04:00:02]SAM_PROTO_SignData done [04:00:02]FM_MakeSignedData done [04:00:02]CreateOFDProtocolMessage [04:00:02]wFMCommunicate request_size=4 [04:00:02]MH_SAM_APDU [04:00:02]CAPDU: 80 11 00 00 [04:00:02]Write to MH i2c: E2 08 00 F7 47 80 11 00 00 00 00 00 00 B8 [04:00:02]Write i2c OK [04:00:02]MH_I2C_Read... [04:00:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:00:02]Read from MH i2c: E2 [04:00:02]MH_I2C_Read... [04:00:02]Read from MH i2c: E2 17 00 [04:00:02]MH_I2C_Read... [04:00:02]Read from MH i2c: E2 17 00 F7 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 05 [04:00:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [04:00:02]wFMCommunicate OK [04:00:02]CreateOFDProtocolMessage done [04:00:02]OFDSenderStorePacket 260487 [04:00:02]StoreOFDPacket docnum=260487 [04:00:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 91 66 07 01 6C 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 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 2D 00 00 00 F4 03 04 00 C3 71 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 87 F9 03 00 35 04 06 00 44 56 B7 1F 39 A2 8B 05 78 5D 67 3D 5B D8 [04:00:02]CheckFolder [04:00:02]dirname=/storage/ofd_packets [04:00:02]CheckFolder done [04:00:02]ProducePacketName [04:00:02]name=ofd_packets/00260487 [04:00:02]NVStorageSaveData ofd_packets/00260487 [04:00:02]File name is /storage/ofd_packets/00260487 [04:00:02]Write 301 bytes [04:00:03]NVStorageSaveData done [04:00:03]OFDSenderStorePacket done [04:00:03]KKMCreateOFDPacket done [04:00:03]NVStorageSaveData kkm_last_timestamp [04:00:03]File name is /storage/kkm_last_timestamp [04:00:03]Write 4 bytes [04:00:03]NVStorageSaveData done [04:00:03]ExternCall_PrintAddStr [04:00:03]wPrintStart [04:00:03]Write to MH i2c: 01 00 00 F8 47 3F [04:00:03]Write i2c OK [04:00:03]MH_I2C_Read... [04:00:03]Read from MH i2c: 01 [04:00:03]MH_I2C_Read... [04:00:03]Read from MH i2c: 01 07 00 [04:00:03]MH_I2C_Read... [04:00:03]Read from MH i2c: 01 07 00 F8 47 00 00 00 00 00 FF 0F 54 [04:00:03]RasterBufferAndPrint [04:00:03]line Счет N : (1)1036030 [04:00:03]line ИНН: 02508201610067 [04:00:03]line Контрольно-Кассовый Чек [04:00:03]line ПРОДАЖА [04:00:03]line ТРК (МРК, ГНК) : 12 [04:00:03]line Товар: 2710124130 [04:00:03]line Аи-92-К-5 [04:00:03]line 3.690 * 67.80 [04:00:03]line = 250.18 [04:00:03]line НДС 12% НСП 1% [04:00:03]line > о реализуемом товаре [04:00:03]line ОКРУГЛЕНИЕ: -0.18 [04:00:03]line ИТОГО: 250.00 [04:00:03]line Внесено: 250.00 [04:00:03]line СДАЧА: 0.00 [04:00:03]line НСП 1% : 2.21 [04:00:03]line НДС 12% : 26.57 [04:00:03]line Наличными: 250.00 [04:00:03]line Безнал.: 0.00 [04:00:03]line Место: АЗС № 94 "Партнер Нефть" [04:00:03]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [04:00:03]line СНО: Общий режим [04:00:03]line Чек 45 18.08.2024 04:00 [04:00:03]line Смена: 449 ФФД: 1.0 [04:00:03]line ЗНМ: 0300000099 [04:00:03]line РНМ: 0000000000091865 [04:00:03]line Версия ККМ: 001 [04:00:03]line ФМ: 0000000000871820 [04:00:03]line ФД: 260487 [04:00:03]line ФПД: 75139230153122 [04:00:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T040003&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260487&fm=75139230153122&tin=02508201610067®Number=0000000000091865&sum=25000 [04:00:03]OFD Sender: Processing packet 260487 [packets to send 192, broken 191] [04:00:03]ProducePacketName [04:00:03]name=ofd_packets/00260487 [04:00:03]OFD Sender: To server: pG, [04:00:03]CommunicateWithHost lk.salyk.kg:30040 [04:00:03]ConnectInit lk.salyk.kg [04:00:03]written 0, free lines is 4095 [04:00:03]Connected sock=11 [04:00: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 30 0F 01 00 00 91 66 07 01 6C 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 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 2D 00 00 00 F4 03 04 00 C3 71 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 87 F9 03 00 35 04 06 00 44 56 B7 1F 39 A2 8B 05 78 5D 67 3D 5B D8 [04:00: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 30 4F 00 00 00 A6 F1 47 00 81 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 30 10 04 04 00 87 F9 03 00 F4 03 04 00 1A 1B C1 66 B6 04 01 00 00 5E 4A 77 C8 16 44 78 68 [04:00:03]CommunicateWithHost err = 0 [04:00:03]CheckOFDResponse [04:00:03]1017 (14) - 77093643461234 [04:00:03]1041 (16) - 0000000000871820 [04:00:03]1040 (4) - 260487 [04:00:03]1012 (4) - 17.08.2024 21:50 [04:00:03]1206 (1) - 0 [04:00:03]OFD Sender: Remove packet 260487 [04:00:03]ProducePacketName [04:00:03]name=ofd_packets/00260487 [04:00:03]NVStorageDeleteData [04:00:03]Write to MH i2c: 01 00 00 23 48 6B [04:00:03]Write i2c OK [04:00:03]MH_I2C_Read... [04:00:03]Read from MH i2c: 01 [04:00:03]MH_I2C_Read... [04:00:03]Read from MH i2c: 01 07 00 [04:00:03]MH_I2C_Read... [04:00:03]Read from MH i2c: 01 07 00 23 48 00 00 00 00 00 73 0C F1 [04:00:03]RasterBufferAndPrint [04:00:03]line [04:00:03]line [04:00:03]line [04:00:03]line [04:00:03]line [04:00:03]written 0, free lines is 3189 [04:00:03]MH_Cut [04:00:03]Write to MH i2c: D1 01 00 2A 48 01 44 [04:00:03]Write i2c OK [04:00:03]MH_I2C_Read... [04:00:03]Read from MH i2c: D1 [04:00:03]MH_I2C_Read... [04:00:03]Read from MH i2c: D1 01 00 [04:00:03]MH_I2C_Read... [04:00:03]Read from MH i2c: D1 01 00 2A 48 00 43 [04:00:03]Write to MH i2c: 01 00 00 2B 48 73 [04:00:03]Write i2c OK [04:00:03]MH_I2C_Read... [04:00:04]OFD Sender: No OFD packet to send [04:00:04]*** Cut start [04:00:04]*** Purtial cut [04:00:04]*** Stage 1: CUTSNS_PIN = 1 [04:00:06]Read from MH i2c: 01 [04:00:06]MH_I2C_Read... [04:00:06]*** Stop cut motor [04:00:06]*** Cut end [04:00:06]Read from MH i2c: 01 07 00 [04:00:06]MH_I2C_Read... [04:00:06]Read from MH i2c: 01 07 00 2B 48 00 00 00 00 00 FF 0F 88 [04:00:06]process_action close_receipt done [04:00:06]requested_data is exist [04:00:06]produce_requested_data [04:00:06]requested_item fm.sn is exist - process it [04:00:06]wFMCommunicate request_size=4 [04:00:06]MH_SAM_APDU [04:00:06]CAPDU: 80 11 00 00 [04:00:06]Write to MH i2c: E2 08 00 2C 48 80 11 00 00 00 00 00 00 EE [04:00:06]Write i2c OK [04:00:06]MH_I2C_Read... [04:00:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:00:06]Read from MH i2c: E2 [04:00:06]MH_I2C_Read... [04:00:06]Read from MH i2c: E2 17 00 [04:00:06]MH_I2C_Read... [04:00:06]Read from MH i2c: E2 17 00 2C 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 3B [04:00:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [04:00:06]wFMCommunicate OK [04:00:06]requested_item fd.num is exist - process it [04:00:06]SAM_PROTO_GetFieldsCounters [04:00:06]wFMCommunicate request_size=4 [04:00:06]MH_SAM_APDU [04:00:06]CAPDU: 80 13 00 00 [04:00:06]Write to MH i2c: E2 08 00 2D 48 80 13 00 00 00 00 00 00 F1 [04:00:06]Write i2c OK [04:00:06]MH_I2C_Read... [04:00:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:00:07]Read from MH i2c: E2 [04:00:07]MH_I2C_Read... [04:00:07]Read from MH i2c: E2 62 00 [04:00:07]MH_I2C_Read... [04:00:07]Read from MH i2c: E2 62 00 2D 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 87 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [04:00: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 87 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:00:07]wFMCommunicate OK [04:00:07]SAM_PROTO_GetFieldsCounters done [04:00:07]requested_item shift.num is exist - process it [04:00:07]requested_item shift.opened is exist - process it [04:00:07]req_shift_opened [04:00:07]FM_GetShiftState [04:00:07]SAM_PROTO_GetShiftState [04:00:07]wFMCommunicate request_size=4 [04:00:07]MH_SAM_APDU [04:00:07]CAPDU: 80 13 01 00 [04:00:07]Write to MH i2c: E2 08 00 2E 48 80 13 01 00 00 00 00 00 F3 [04:00:07]Write i2c OK [04:00:07]MH_I2C_Read... [04:00:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:00:07]Read from MH i2c: E2 [04:00:07]MH_I2C_Read... [04:00:07]Read from MH i2c: E2 0E 00 [04:00:07]MH_I2C_Read... [04:00:07]Read from MH i2c: E2 0E 00 2E 48 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 30 [04:00:07]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [04:00:07]wFMCommunicate OK [04:00:07]SAM_PROTO_GetShiftState done [04:00:07]FM_GetShiftState done [04:00:07]req_shift_opened done [04:00:07]requested_item shift.open_date is exist - process it [04:00:07]req_shift_open_date [04:00:07]req_shift_open_date done [04:00:07]produce_requested_data done [04:00:07]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260487,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [04:00:07]process_action_free close_receipt [04:00:07]json_value_free [04:00:07]json_value_free done [04:00:07]process_json_proto returns [04:00:07]Send response to host [04:00:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260487,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [04:00:07]free response buf [04:00:07]execute_script done [04:00:07]execute_script returns [04:00:07]free content buf [04:00:07]Sock 9.Close socket [04:00:07]Sock 9.Thread stoped [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: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:29]OFD Sender: No OFD packet to send [04:02:34]OFD Sender: No OFD packet to send [04:02:39]OFD Sender: No OFD packet to send [04:02:44]OFD Sender: No OFD packet to send [04:02:49]OFD Sender: No OFD packet to send [04:02:54]OFD Sender: No OFD packet to send [04:02:59]OFD Sender: No OFD packet to send [04:03:04]OFD Sender: No OFD packet to send [04:03:09]OFD Sender: No OFD packet to send [04:03:14]OFD Sender: No OFD packet to send [04:03:19]OFD Sender: No OFD packet to send [04:03:24]OFD Sender: No OFD packet to send [04:03:29]OFD Sender: No OFD packet to send [04:03:34]OFD Sender: No OFD packet to send [04:03:39]OFD Sender: No OFD packet to send [04:03:44]OFD Sender: No OFD packet to send [04:03:49]OFD Sender: No OFD packet to send [04:03:54]OFD Sender: No OFD packet to send [04:03:59]OFD Sender: No OFD packet to send [04:04:04]OFD Sender: No OFD packet to send [04:04:09]OFD Sender: No OFD packet to send [04:04:14]OFD Sender: No OFD packet to send [04:04:19]OFD Sender: No OFD packet to send [04:04:24]OFD Sender: No OFD packet to send [04:04:29]OFD Sender: No OFD packet to send [04:04:34]OFD Sender: No OFD packet to send [04:04:39]OFD Sender: No OFD packet to send [04:04:44]OFD Sender: No OFD packet to send [04:04:49]OFD Sender: No OFD packet to send [04:04:54]OFD Sender: No OFD packet to send [04:04:59]OFD Sender: No OFD packet to send [04:05:04]OFD Sender: No OFD packet to send [04:05:09]OFD Sender: No OFD packet to send [04:05:14]OFD Sender: No OFD packet to send [04:05:19]OFD Sender: No OFD packet to send [04:05:24]OFD Sender: No OFD packet to send [04:05:29]OFD Sender: No OFD packet to send [04:05:34]OFD Sender: No OFD packet to send [04:05:39]OFD Sender: No OFD packet to send [04:05:44]OFD Sender: No OFD packet to send [04:05:49]OFD Sender: No OFD packet to send [04:05:54]OFD Sender: No OFD packet to send [04:05:59]OFD Sender: No OFD packet to send [04:06:04]OFD Sender: No OFD packet to send [04:06:09]OFD Sender: No OFD packet to send [04:06:14]OFD Sender: No OFD packet to send [04:06:19]OFD Sender: No OFD packet to send [04:06:24]OFD Sender: No OFD packet to send [04:06:29]OFD Sender: No OFD packet to send [04:06:34]OFD Sender: No OFD packet to send [04:06:39]OFD Sender: No OFD packet to send [04:06:44]OFD Sender: No OFD packet to send [04:06:49]OFD Sender: No OFD packet to send [04:06:54]OFD Sender: No OFD packet to send [04:06:59]OFD Sender: No OFD packet to send [04:07:04]OFD Sender: No OFD packet to send [04:07:09]OFD Sender: No OFD packet to send [04:07:14]OFD Sender: No OFD packet to send [04:07:19]OFD Sender: No OFD packet to send [04:07:24]OFD Sender: No OFD packet to send [04:07:29]OFD Sender: No OFD packet to send [04:07:34]OFD Sender: No OFD packet to send [04:07:39]OFD Sender: No OFD packet to send [04:07:44]OFD Sender: No OFD packet to send [04:07:49]OFD Sender: No OFD packet to send [04:07:54]OFD Sender: No OFD packet to send [04:07:59]OFD Sender: No OFD packet to send [04:08:04]OFD Sender: No OFD packet to send [04:08:09]OFD Sender: No OFD packet to send [04:08:14]OFD Sender: No OFD packet to send [04:08:19]OFD Sender: No OFD packet to send [04:08:24]OFD Sender: No OFD packet to send [04:08:29]OFD Sender: No OFD packet to send [04:08:34]OFD Sender: No OFD packet to send [04:08:39]OFD Sender: No OFD packet to send [04:08:44]OFD Sender: No OFD packet to send [04:08:49]OFD Sender: No OFD packet to send [04:08:54]OFD Sender: No OFD packet to send [04:08:59]OFD Sender: No OFD packet to send [04:09:04]OFD Sender: No OFD packet to send [04:09:09]OFD Sender: No OFD packet to send [04:09:14]OFD Sender: No OFD packet to send [04:09:19]OFD Sender: No OFD packet to send [04:09:24]OFD Sender: No OFD packet to send [04:09:29]OFD Sender: No OFD packet to send [04:09:34]OFD Sender: No OFD packet to send [04:09:39]OFD Sender: No OFD packet to send [04:09:44]OFD Sender: No OFD packet to send [04:09:49]OFD Sender: No OFD packet to send [04:09:54]OFD Sender: No OFD packet to send [04:09:59]OFD Sender: No OFD packet to send [04:10:04]OFD Sender: No OFD packet to send [04:10:09]OFD Sender: No OFD packet to send [04:10:14]OFD Sender: No OFD packet to send [04:10:19]OFD Sender: No OFD packet to send [04:10:24]OFD Sender: No OFD packet to send [04:10:29]OFD Sender: No OFD packet to send [04:10:34]OFD Sender: No OFD packet to send [04:10:39]OFD Sender: No OFD packet to send [04:10:44]OFD Sender: No OFD packet to send [04:10: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:50]OFD Sender: No OFD packet to send [04:20:55]OFD Sender: No OFD packet to send [04:20:56]accept exits with 7 [04:20:56]New connection [04:20:56]New thread 3066473828 created [04:20:56]Thread 3066617188 joined [04:20:56]Waiting for new connection... [04:20:56] Sock 7.Parse request [04:20:56]Sock 7.Check first char [04:20:56]Sock 7.First char is OK [04:20:56]request: POST /json_proto HTTP/1.0 [04:20:56]Method: POST [04:20:56]URL: /json_proto [04:20:56]Method is POST - this is cgi request [04:20:56]url: /json_proto [04:20:56]query_string will be loaded in cgi processing [04:20:56]execute_cgi json_proto POST (null) [04:20:56]execute_cgi path=json_proto method=POST [04:20:56]POST find Content-Length [04:20:56]Host: 172.17.55.133:8080 [04:20:56]Content-Length: 678 [04:20:56]Content-Type: application/json [04:20:56] [04:20:56]POST finish read [04:20:56]Found Content-Length = 678 [04:20:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "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" ] } } [04:20:56]execute_script... [04:20:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "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" ] } } [04:20:56]POST & json_proto [04:20:56]process_json_proto [04:20:56]json parsed OK: [04:20:56]protocol is kg_v1.0 [04:20:56]action value=close_receipt [04:20:56]process_action close_receipt [04:20:56]cmd_close_receipt [04:20:56]MH_GetDate [04:20:56]Write to MH i2c: F0 00 00 2F 48 66 [04:20:56]Write i2c OK [04:20:56]MH_I2C_Read... [04:20:56]Read from MH i2c: F0 [04:20:56]MH_I2C_Read... [04:20:56]Read from MH i2c: F0 09 00 [04:20:56]MH_I2C_Read... [04:20:56]Read from MH i2c: F0 09 00 2F 48 00 AB 76 C1 66 34 48 D8 65 70 [04:20:56]GetLastDocTimeStamp 1723953603 [04:20:56]current date 1723954859 [04:20:56]FM_GetShiftState [04:20:56]SAM_PROTO_GetShiftState [04:20:56]wFMCommunicate request_size=4 [04:20:56]MH_SAM_APDU [04:20:56]CAPDU: 80 13 01 00 [04:20:56]Write to MH i2c: E2 08 00 30 48 80 13 01 00 00 00 00 00 F5 [04:20:56]Write i2c OK [04:20:56]MH_I2C_Read... [04:20:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:20:56]Read from MH i2c: E2 [04:20:56]MH_I2C_Read... [04:20:56]Read from MH i2c: E2 0E 00 [04:20:56]MH_I2C_Read... [04:20:56]Read from MH i2c: E2 0E 00 30 48 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 32 [04:20:56]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [04:20:56]wFMCommunicate OK [04:20:56]SAM_PROTO_GetShiftState done [04:20:56]FM_GetShiftState done [04:20:56]opened in 1723940556 [04:20:56]opened+sec_in_day 1724026956 [04:20:56]quantity*price = 35052 [04:20:56]sum+1 = 35054 [04:20:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 46 18.08.2024 04:20 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260488 ФПД: 94966594363939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T042059&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260488&fm=94966594363939&tin=02508201610067®Number=0000000000091865&sum=35000 [04:20:57]StoreToDocumentArchive [04:20:57]shift 449 fd 260488 [04:20:57]save to /storage/0449/doc_00260488 [04:20:57]save last doc name /storage/0449/doc_00260488 to /storage/kkm_last_doc_name [04:20:57]save OK [04:20:57]Clear old archive folders... [04:20:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:20:57]tlvbuf is 0037F3D0 [04:20:57]SAM_PROTO_ClearQueue [04:20:57]wFMCommunicate request_size=4 [04:20:57]MH_SAM_APDU [04:20:57]CAPDU: 80 09 00 00 [04:20:57]Write to MH i2c: E2 08 00 3D 48 80 09 00 00 00 00 00 00 F7 [04:20:57]Write i2c OK [04:20:57]MH_I2C_Read... [04:20:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:20:57]Read from MH i2c: E2 [04:20:57]MH_I2C_Read... [04:20:57]Read from MH i2c: E2 03 00 [04:20:57]MH_I2C_Read... [04:20:57]Read from MH i2c: E2 03 00 3D 48 00 90 00 F9 [04:20:57]RAPDU: 90 00 [04:20:57]wFMCommunicate OK [04:20:57]SAM_PROTO_ClearQueue done [04:20:57]KKMCreateOFDPacket [04:20:57]OFDProtocolAddRootSTLVToBuf [04:20:57]FM_MakeSignedData [04:20:57]FM_MakeSignedData [04:20:57]SAM_PROTO_SignData [04:20:57]wFMCommunicate request_size=4 [04:20:57]MH_SAM_APDU [04:20:57]CAPDU: 80 0D 01 02 [04:20:57]Write to MH i2c: E2 08 00 3E 48 80 0D 01 02 00 00 00 00 FF [04:20:57]Write i2c OK [04:20:57]MH_I2C_Read... [04:20:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:20:57]Read from MH i2c: E2 [04:20:57]MH_I2C_Read... [04:20:57]Read from MH i2c: E2 03 00 [04:20:57]MH_I2C_Read... [04:20:57]Read from MH i2c: E2 03 00 3E 48 00 90 00 FA [04:20:57]RAPDU: 90 00 [04:20:57]wFMCommunicate OK [04:20:57]wFMCommunicate request_size=255 [04:20:57]MH_SAM_APDU [04:20:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 2E 00 00 00 F4 03 04 00 AB 76 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 88 F9 03 00 35 04 06 00 56 [04:20:57]Write to MH i2c: E2 02 01 3F 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 2E 00 00 00 F4 03 04 00 AB 76 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 88 F9 03 00 35 04 06 00 56 00 00 B9 [04:20:57]Write i2c OK [04:20:57]MH_I2C_Read... [04:20:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:20:57]Read from MH i2c: E2 [04:20:57]MH_I2C_Read... [04:20:57]Read from MH i2c: E2 03 00 [04:20:57]MH_I2C_Read... [04:20:57]Read from MH i2c: E2 03 00 3F 48 00 90 00 FB [04:20:57]RAPDU: 90 00 [04:20:57]wFMCommunicate OK [04:20:57]wFMCommunicate request_size=10 [04:20:57]MH_SAM_APDU [04:20:57]CAPDU: 80 0D 02 02 05 5F 22 1F 62 23 [04:20:57]Write to MH i2c: E2 0D 00 40 48 80 0D 02 02 05 00 5F 22 1F 62 23 00 00 31 [04:20:57]Write i2c OK [04:20:57]MH_I2C_Read... [04:20:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:20:57]Read from MH i2c: E2 [04:20:57]MH_I2C_Read... [04:20:57]Read from MH i2c: E2 03 00 [04:20:57]MH_I2C_Read... [04:20:57]Read from MH i2c: E2 03 00 40 48 00 90 00 FC [04:20:57]RAPDU: 90 00 [04:20:57]wFMCommunicate OK [04:20:57]wFMCommunicate request_size=4 [04:20:57]MH_SAM_APDU [04:20:57]CAPDU: 80 0D 03 02 [04:20:57]Write to MH i2c: E2 08 00 41 48 80 0D 03 02 00 00 00 00 04 [04:20:57]Write i2c OK [04:20:57]MH_I2C_Read... [04:20:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:20:58]Read from MH i2c: E2 [04:20:58]MH_I2C_Read... [04:20:58]Read from MH i2c: E2 0B 00 [04:20:58]MH_I2C_Read... [04:20:58]Read from MH i2c: E2 0B 00 41 48 00 87 E2 E7 33 8C 3F A7 0D 90 00 07 [04:20:58]RAPDU: 87 E2 E7 33 8C 3F A7 0D 90 00 [04:20:58]wFMCommunicate OK [04:20:58]SAM_PROTO_SignData done [04:20:58]FM_MakeSignedData done [04:20:58]CreateOFDProtocolMessage [04:20:58]wFMCommunicate request_size=4 [04:20:58]MH_SAM_APDU [04:20:58]CAPDU: 80 11 00 00 [04:20:58]Write to MH i2c: E2 08 00 42 48 80 11 00 00 00 00 00 00 04 [04:20:58]Write i2c OK [04:20:58]MH_I2C_Read... [04:20:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:20:58]Read from MH i2c: E2 [04:20:58]MH_I2C_Read... [04:20:58]Read from MH i2c: E2 17 00 [04:20:58]MH_I2C_Read... [04:20:58]Read from MH i2c: E2 17 00 42 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 51 [04:20:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [04:20:58]wFMCommunicate OK [04:20:58]CreateOFDProtocolMessage done [04:20:58]OFDSenderStorePacket 260488 [04:20:58]StoreOFDPacket docnum=260488 [04:20:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 F5 29 07 01 D5 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 2E 00 00 00 F4 03 04 00 AB 76 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 88 F9 03 00 35 04 06 00 56 5F 22 1F 62 23 87 E2 E7 33 8C 3F A7 0D [04:20:58]CheckFolder [04:20:58]dirname=/storage/ofd_packets [04:20:58]CheckFolder done [04:20:58]ProducePacketName [04:20:58]name=ofd_packets/00260488 [04:20:58]NVStorageSaveData ofd_packets/00260488 [04:20:58]File name is /storage/ofd_packets/00260488 [04:20:58]Write 301 bytes [04:20:58]NVStorageSaveData done [04:20:58]OFDSenderStorePacket done [04:20:58]KKMCreateOFDPacket done [04:20:58]NVStorageSaveData kkm_last_timestamp [04:20:58]File name is /storage/kkm_last_timestamp [04:20:58]Write 4 bytes [04:20:58]NVStorageSaveData done [04:20:58]ExternCall_PrintAddStr [04:20:58]wPrintStart [04:20:58]Write to MH i2c: 01 00 00 43 48 8B [04:20:58]Write i2c OK [04:20:58]MH_I2C_Read... [04:20:58]Read from MH i2c: 01 [04:20:58]MH_I2C_Read... [04:20:58]Read from MH i2c: 01 07 00 [04:20:58]MH_I2C_Read... [04:20:58]Read from MH i2c: 01 07 00 43 48 00 00 00 00 00 FF 0F A0 [04:20:58]RasterBufferAndPrint [04:20:58]line Счет N : (1)1036031 [04:20:58]line ИНН: 02508201610067 [04:20:58]line Контрольно-Кассовый Чек [04:20:58]line ПРОДАЖА [04:20:58]line ТРК (МРК, ГНК) : 22 [04:20:58]line Товар: 2710124130 [04:20:58]line Аи-92-К-5 [04:20:58]line 5.170 * 67.80 [04:20:58]line = 350.53 [04:20:58]line НДС 12% НСП 1% [04:20:58]line > о реализуемом товаре [04:20:58]line ОКРУГЛЕНИЕ: -0.53 [04:20:58]line ИТОГО: 350.00 [04:20:58]line Внесено: 350.00 [04:20:58]line СДАЧА: 0.00 [04:20:58]line НСП 1% : 3.10 [04:20:58]line НДС 12% : 37.22 [04:20:58]line Наличными: 350.00 [04:20:58]line Безнал.: 0.00 [04:20:58]line Место: АЗС № 94 "Партнер Нефть" [04:20:58]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [04:20:58]line СНО: Общий режим [04:20:58]line Чек 46 18.08.2024 04:20 [04:20:58]line Смена: 449 ФФД: 1.0 [04:20:58]line ЗНМ: 0300000099 [04:20:58]line РНМ: 0000000000091865 [04:20:58]line Версия ККМ: 001 [04:20:58]line ФМ: 0000000000871820 [04:20:58]line ФД: 260488 [04:20:58]line ФПД: 94966594363939 [04:20:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T042059&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260488&fm=94966594363939&tin=02508201610067®Number=0000000000091865&sum=35000 [04:20:58]written 0, free lines is 4095 [04:20:58]OFD Sender: Processing packet 260488 [packets to send 192, broken 191] [04:20:58]ProducePacketName [04:20:58]name=ofd_packets/00260488 [04:20:58]OFD Sender: To server: pG, [04:20:58]CommunicateWithHost lk.salyk.kg:30040 [04:20:58]ConnectInit lk.salyk.kg [04:20:58]Connected sock=10 [04:20: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 30 0F 01 00 00 F5 29 07 01 D5 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 2E 00 00 00 F4 03 04 00 AB 76 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 88 F9 03 00 35 04 06 00 56 5F 22 1F 62 23 87 E2 E7 33 8C 3F A7 0D [04:20: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 30 4F 00 00 00 9A 10 47 00 C6 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 30 10 04 04 00 88 F9 03 00 F4 03 04 00 01 20 C1 66 B6 04 01 00 00 0C C6 87 6A 32 16 E4 38 [04:20:58]CommunicateWithHost err = 0 [04:20:58]CheckOFDResponse [04:20:58]1017 (14) - 77093643461234 [04:20:58]1041 (16) - 0000000000871820 [04:20:58]1040 (4) - 260488 [04:20:58]1012 (4) - 17.08.2024 22:11 [04:20:58]1206 (1) - 0 [04:20:58]OFD Sender: Remove packet 260488 [04:20:58]ProducePacketName [04:20:58]name=ofd_packets/00260488 [04:20:58]NVStorageDeleteData [04:20:58]Write to MH i2c: 01 00 00 6E 48 B6 [04:20:58]Write i2c OK [04:20:58]MH_I2C_Read... [04:20:58]Read from MH i2c: 01 [04:20:58]MH_I2C_Read... [04:20:58]Read from MH i2c: 01 07 00 [04:20:58]MH_I2C_Read... [04:20:58]Read from MH i2c: 01 07 00 6E 48 00 00 00 00 00 6E 0C 37 [04:20:58]RasterBufferAndPrint [04:20:58]line [04:20:58]line [04:20:58]line [04:20:58]line [04:20:58]line [04:20:58]written 0, free lines is 3185 [04:20:58]MH_Cut [04:20:58]Write to MH i2c: D1 01 00 75 48 01 8F [04:20:58]Write i2c OK [04:20:58]MH_I2C_Read... [04:20:58]Read from MH i2c: D1 [04:20:58]MH_I2C_Read... [04:20:58]Read from MH i2c: D1 01 00 [04:20:58]MH_I2C_Read... [04:20:58]Read from MH i2c: D1 01 00 75 48 00 8E [04:20:58]Write to MH i2c: 01 00 00 76 48 BE [04:20:58]Write i2c OK [04:20:58]MH_I2C_Read... [04:20:59]OFD Sender: No OFD packet to send [04:20:59]*** Cut start [04:20:59]*** Purtial cut [04:20:59]*** Stage 1: CUTSNS_PIN = 1 [04:21:01]Read from MH i2c: 01 [04:21:02]MH_I2C_Read... [04:21:02]*** Stop cut motor [04:21:02]*** Cut end [04:21:02]Read from MH i2c: 01 07 00 [04:21:02]MH_I2C_Read... [04:21:02]Read from MH i2c: 01 07 00 76 48 00 00 00 00 00 FF 0F D3 [04:21:02]process_action close_receipt done [04:21:02]requested_data is exist [04:21:02]produce_requested_data [04:21:02]requested_item fm.sn is exist - process it [04:21:02]wFMCommunicate request_size=4 [04:21:02]MH_SAM_APDU [04:21:02]CAPDU: 80 11 00 00 [04:21:02]Write to MH i2c: E2 08 00 77 48 80 11 00 00 00 00 00 00 39 [04:21:02]Write i2c OK [04:21:02]MH_I2C_Read... [04:21:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:21:02]Read from MH i2c: E2 [04:21:02]MH_I2C_Read... [04:21:02]Read from MH i2c: E2 17 00 [04:21:02]MH_I2C_Read... [04:21:02]Read from MH i2c: E2 17 00 77 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 86 [04:21:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [04:21:02]wFMCommunicate OK [04:21:02]requested_item fd.num is exist - process it [04:21:02]SAM_PROTO_GetFieldsCounters [04:21:02]wFMCommunicate request_size=4 [04:21:02]MH_SAM_APDU [04:21:02]CAPDU: 80 13 00 00 [04:21:02]Write to MH i2c: E2 08 00 78 48 80 13 00 00 00 00 00 00 3C [04:21:02]Write i2c OK [04:21:02]MH_I2C_Read... [04:21:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:21:02]Read from MH i2c: E2 [04:21:02]MH_I2C_Read... [04:21:02]Read from MH i2c: E2 62 00 [04:21:02]MH_I2C_Read... [04:21:02]Read from MH i2c: E2 62 00 78 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 88 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [04:21: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 88 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:21:02]wFMCommunicate OK [04:21:02]SAM_PROTO_GetFieldsCounters done [04:21:02]requested_item shift.num is exist - process it [04:21:02]requested_item shift.opened is exist - process it [04:21:02]req_shift_opened [04:21:02]FM_GetShiftState [04:21:02]SAM_PROTO_GetShiftState [04:21:02]wFMCommunicate request_size=4 [04:21:02]MH_SAM_APDU [04:21:02]CAPDU: 80 13 01 00 [04:21:02]Write to MH i2c: E2 08 00 79 48 80 13 01 00 00 00 00 00 3E [04:21:02]Write i2c OK [04:21:02]MH_I2C_Read... [04:21:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:21:02]Read from MH i2c: E2 [04:21:02]MH_I2C_Read... [04:21:02]Read from MH i2c: E2 0E 00 [04:21:02]MH_I2C_Read... [04:21:02]Read from MH i2c: E2 0E 00 79 48 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 7B [04:21:02]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [04:21:02]wFMCommunicate OK [04:21:02]SAM_PROTO_GetShiftState done [04:21:02]FM_GetShiftState done [04:21:02]req_shift_opened done [04:21:02]requested_item shift.open_date is exist - process it [04:21:02]req_shift_open_date [04:21:02]req_shift_open_date done [04:21:02]produce_requested_data done [04:21:02]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260488,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [04:21:02]process_action_free close_receipt [04:21:02]json_value_free [04:21:02]json_value_free done [04:21:02]process_json_proto returns [04:21:02]Send response to host [04:21:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260488,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [04:21:02]free response buf [04:21:02]execute_script done [04:21:02]execute_script returns [04:21:02]free content buf [04:21:02]Sock 7.Close socket [04:21:02]Sock 7.Thread stoped [04:21:04]OFD Sender: No OFD packet to send [04:21:09]OFD Sender: No OFD packet to send [04:21:14]OFD Sender: No OFD packet to send [04:21:19]OFD Sender: No OFD packet to send [04:21:24]OFD Sender: No OFD packet to send [04:21:29]OFD Sender: No OFD packet to send [04:21:34]OFD Sender: No OFD packet to send [04:21:39]OFD Sender: No OFD packet to send [04:21:44]OFD Sender: No OFD packet to send [04:21:49]OFD Sender: No OFD packet to send [04:21:54]OFD Sender: No OFD packet to send [04:21:59]OFD Sender: No OFD packet to send [04:22:04]OFD Sender: No OFD packet to send [04:22:09]OFD Sender: No OFD packet to send [04:22:14]OFD Sender: No OFD packet to send [04:22:19]OFD Sender: No OFD packet to send [04:22:24]OFD Sender: No OFD packet to send [04:22:29]OFD Sender: No OFD packet to send [04:22:34]OFD Sender: No OFD packet to send [04:22:39]OFD Sender: No OFD packet to send [04:22:44]OFD Sender: No OFD packet to send [04:22:49]OFD Sender: No OFD packet to send [04:22:54]OFD Sender: No OFD packet to send [04:22:59]OFD Sender: No OFD packet to send [04:23:04]OFD Sender: No OFD packet to send [04:23:09]OFD Sender: No OFD packet to send [04:23:14]OFD Sender: No OFD packet to send [04:23:19]OFD Sender: No OFD packet to send [04:23:24]OFD Sender: No OFD packet to send [04:23:29]OFD Sender: No OFD packet to send [04:23:34]OFD Sender: No OFD packet to send [04:23:39]OFD Sender: No OFD packet to send [04:23:44]OFD Sender: No OFD packet to send [04:23:49]OFD Sender: No OFD packet to send [04:23:54]OFD Sender: No OFD packet to send [04:23:59]OFD Sender: No OFD packet to send [04:24:04]OFD Sender: No OFD packet to send [04:24:09]OFD Sender: No OFD packet to send [04:24:14]OFD Sender: No OFD packet to send [04:24:19]OFD Sender: No OFD packet to send [04:24:24]OFD Sender: No OFD packet to send [04:24:29]OFD Sender: No OFD packet to send [04:24:34]OFD Sender: No OFD packet to send [04:24:39]OFD Sender: No OFD packet to send [04:24:44]OFD Sender: No OFD packet to send [04:24:49]OFD Sender: No OFD packet to send [04:24:54]OFD Sender: No OFD packet to send [04:24:59]OFD Sender: No OFD packet to send [04:25:04]OFD Sender: No OFD packet to send [04:25:09]OFD Sender: No OFD packet to send [04:25:14]OFD Sender: No OFD packet to send [04:25:19]OFD Sender: No OFD packet to send [04:25:24]OFD Sender: No OFD packet to send [04:25:29]OFD Sender: No OFD packet to send [04:25:34]OFD Sender: No OFD packet to send [04:25:39]OFD Sender: No OFD packet to send [04:25:44]OFD Sender: No OFD packet to send [04:25:49]OFD Sender: No OFD packet to send [04:25:54]OFD Sender: No OFD packet to send [04:25:59]OFD Sender: No OFD packet to send [04:26:04]OFD Sender: No OFD packet to send [04:26:09]OFD Sender: No OFD packet to send [04:26:14]OFD Sender: No OFD packet to send [04:26:19]OFD Sender: No OFD packet to send [04:26:24]OFD Sender: No OFD packet to send [04:26:29]OFD Sender: No OFD packet to send [04:26:34]OFD Sender: No OFD packet to send [04:26:39]OFD Sender: No OFD packet to send [04:26:44]OFD Sender: No OFD packet to send [04:26:49]OFD Sender: No OFD packet to send [04:26:54]OFD Sender: No OFD packet to send [04:26:59]OFD Sender: No OFD packet to send [04:27:04]OFD Sender: No OFD packet to send [04:27:09]OFD Sender: No OFD packet to send [04:27:14]OFD Sender: No OFD packet to send [04:27:19]OFD Sender: No OFD packet to send [04:27:24]OFD Sender: No OFD packet to send [04:27:29]OFD Sender: No OFD packet to send [04:27:34]OFD Sender: No OFD packet to send [04:27:39]OFD Sender: No OFD packet to send [04:27:44]OFD Sender: No OFD packet to send [04:27:49]OFD Sender: No OFD packet to send [04:27:54]OFD Sender: No OFD packet to send [04:27:59]OFD Sender: No OFD packet to send [04:28:04]OFD Sender: No OFD packet to send [04:28:09]OFD Sender: No OFD packet to send [04:28:14]OFD Sender: No OFD packet to send [04:28:19]OFD Sender: No OFD packet to send [04:28:24]OFD Sender: No OFD packet to send [04:28:29]OFD Sender: No OFD packet to send [04:28:34]OFD Sender: No OFD packet to send [04:28:39]OFD Sender: No OFD packet to send [04:28:44]OFD Sender: No OFD packet to send [04:28:49]OFD Sender: No OFD packet to send [04:28:54]OFD Sender: No OFD packet to send [04:28:59]OFD Sender: No OFD packet to send [04:29:04]OFD Sender: No OFD packet to send [04:29:09]OFD Sender: No OFD packet to send [04:29:14]OFD Sender: No OFD packet to send [04:29:19]OFD Sender: No OFD packet to send [04:29:24]OFD Sender: No OFD packet to send [04:29:29]OFD Sender: No OFD packet to send [04:29:34]OFD Sender: No OFD packet to send [04:29:39]OFD Sender: No OFD packet to send [04:29:44]OFD Sender: No OFD packet to send [04:29:49]OFD Sender: No OFD packet to send [04:29:55]OFD Sender: No OFD packet to send [04:30:00]OFD Sender: No OFD packet to send [04:30:05]OFD Sender: No OFD packet to send [04:30:10]OFD Sender: No OFD packet to send [04:30:15]OFD Sender: No OFD packet to send [04:30:20]OFD Sender: No OFD packet to send [04:30:25]OFD Sender: No OFD packet to send [04:30:30]OFD Sender: No OFD packet to send [04:30:35]OFD Sender: No OFD packet to send [04:30:40]OFD Sender: No OFD packet to send [04:30:45]OFD Sender: No OFD packet to send [04:30:50]OFD Sender: No OFD packet to send [04:30:55]OFD Sender: No OFD packet to send [04:31:00]OFD Sender: No OFD packet to send [04:31:05]OFD Sender: No OFD packet to send [04:31:10]OFD Sender: No OFD packet to send [04:31:15]OFD Sender: No OFD packet to send [04:31:20]OFD Sender: No OFD packet to send [04:31:25]OFD Sender: No OFD packet to send [04:31:30]OFD Sender: No OFD packet to send [04:31:35]OFD Sender: No OFD packet to send [04:31:40]OFD Sender: No OFD packet to send [04:31:45]OFD Sender: No OFD packet to send [04:31:50]OFD Sender: No OFD packet to send [04:31:55]OFD Sender: No OFD packet to send [04:32:00]OFD Sender: No OFD packet to send [04:32:05]OFD Sender: No OFD packet to send [04:32:10]OFD Sender: No OFD packet to send [04:32:15]OFD Sender: No OFD packet to send [04:32:20]OFD Sender: No OFD packet to send [04:32:25]OFD Sender: No OFD packet to send [04:32:30]OFD Sender: No OFD packet to send [04:32:35]OFD Sender: No OFD packet to send [04:32:40]OFD Sender: No OFD packet to send [04:32:45]OFD Sender: No OFD packet to send [04:32:50]OFD Sender: No OFD packet to send [04:32:55]OFD Sender: No OFD packet to send [04:33:00]OFD Sender: No OFD packet to send [04:33:05]OFD Sender: No OFD packet to send [04:33:10]OFD Sender: No OFD packet to send [04:33:15]OFD Sender: No OFD packet to send [04:33:20]OFD Sender: No OFD packet to send [04:33:25]OFD Sender: No OFD packet to send [04:33:30]OFD Sender: No OFD packet to send [04:33:35]OFD Sender: No OFD packet to send [04:33:40]OFD Sender: No OFD packet to send [04:33:45]OFD Sender: No OFD packet to send [04:33:50]OFD Sender: No OFD packet to send [04:33:55]OFD Sender: No OFD packet to send [04:34:00]OFD Sender: No OFD packet to send [04:34:05]OFD Sender: No OFD packet to send [04:34:10]OFD Sender: No OFD packet to send [04:34:15]OFD Sender: No OFD packet to send [04:34:20]OFD Sender: No OFD packet to send [04:34:25]OFD Sender: No OFD packet to send [04:34:30]OFD Sender: No OFD packet to send [04:34:35]OFD Sender: No OFD packet to send [04:34:40]OFD Sender: No OFD packet to send [04:34:45]OFD Sender: No OFD packet to send [04:34:50]OFD Sender: No OFD packet to send [04:34:55]OFD Sender: No OFD packet to send [04:35:00]OFD Sender: No OFD packet to send [04:35:05]OFD Sender: No OFD packet to send [04:35:10]OFD Sender: No OFD packet to send [04:35:15]OFD Sender: No OFD packet to send [04:35:20]OFD Sender: No OFD packet to send [04:35:25]OFD Sender: No OFD packet to send [04:35:30]OFD Sender: No OFD packet to send [04:35:35]OFD Sender: No OFD packet to send [04:35:40]OFD Sender: No OFD packet to send [04:35:45]OFD Sender: No OFD packet to send [04:35:50]OFD Sender: No OFD packet to send [04:35:55]OFD Sender: No OFD packet to send [04:36:00]OFD Sender: No OFD packet to send [04:36:05]OFD Sender: No OFD packet to send [04:36:10]OFD Sender: No OFD packet to send [04:36:15]OFD Sender: No OFD packet to send [04:36:20]OFD Sender: No OFD packet to send [04:36:25]OFD Sender: No OFD packet to send [04:36:30]OFD Sender: No OFD packet to send [04:36:35]OFD Sender: No OFD packet to send [04:36:40]OFD Sender: No OFD packet to send [04:36:45]OFD Sender: No OFD packet to send [04:36:50]OFD Sender: No OFD packet to send [04:36:55]OFD Sender: No OFD packet to send [04:37:00]OFD Sender: No OFD packet to send [04:37:05]OFD Sender: No OFD packet to send [04:37:10]OFD Sender: No OFD packet to send [04:37:15]OFD Sender: No OFD packet to send [04:37:20]OFD Sender: No OFD packet to send [04:37:25]OFD Sender: No OFD packet to send [04:37:30]OFD Sender: No OFD packet to send [04:37:35]OFD Sender: No OFD packet to send [04:37:40]OFD Sender: No OFD packet to send [04:37:45]OFD Sender: No OFD packet to send [04:37:50]OFD Sender: No OFD packet to send [04:37:55]OFD Sender: No OFD packet to send [04:38:00]OFD Sender: No OFD packet to send [04:38:05]OFD Sender: No OFD packet to send [04:38:10]OFD Sender: No OFD packet to send [04:38:15]OFD Sender: No OFD packet to send [04:38:20]OFD Sender: No OFD packet to send [04:38:25]OFD Sender: No OFD packet to send [04:38:30]OFD Sender: No OFD packet to send [04:38:35]OFD Sender: No OFD packet to send [04:38:40]OFD Sender: No OFD packet to send [04:38:43]accept exits with 9 [04:38:43]New connection [04:38:43]New thread 3066617188 created [04:38:43]Thread 3066473828 joined [04:38:43]Waiting for new connection... [04:38:43] Sock 9.Parse request [04:38:43]Sock 9.Check first char [04:38:43]Sock 9.First char is OK [04:38:43]request: POST /json_proto HTTP/1.0 [04:38:43]Method: POST [04:38:43]URL: /json_proto [04:38:43]Method is POST - this is cgi request [04:38:43]url: /json_proto [04:38:43]query_string will be loaded in cgi processing [04:38:43]execute_cgi json_proto POST (null) [04:38:43]execute_cgi path=json_proto method=POST [04:38:43]POST find Content-Length [04:38:43]Host: 172.17.55.133:8080 [04:38:43]Content-Length: 678 [04:38:43]Content-Type: application/json [04:38:43] [04:38:43]POST finish read [04:38:43]Found Content-Length = 678 [04:38:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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" ] } } [04:38:43]execute_script... [04:38: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)1036032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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" ] } } [04:38:43]POST & json_proto [04:38:43]process_json_proto [04:38:43]json parsed OK: [04:38:43]protocol is kg_v1.0 [04:38:43]action value=close_receipt [04:38:43]process_action close_receipt [04:38:43]cmd_close_receipt [04:38:43]MH_GetDate [04:38:43]Write to MH i2c: F0 00 00 7A 48 B1 [04:38:43]Write i2c OK [04:38:43]MH_I2C_Read... [04:38:43]Read from MH i2c: F0 [04:38:43]MH_I2C_Read... [04:38:43]Read from MH i2c: F0 09 00 [04:38:43]MH_I2C_Read... [04:38:43]Read from MH i2c: F0 09 00 7A 48 00 D6 7A C1 66 34 48 D8 65 EA [04:38:43]GetLastDocTimeStamp 1723954859 [04:38:43]current date 1723955926 [04:38:43]FM_GetShiftState [04:38:43]SAM_PROTO_GetShiftState [04:38:43]wFMCommunicate request_size=4 [04:38:43]MH_SAM_APDU [04:38:43]CAPDU: 80 13 01 00 [04:38:43]Write to MH i2c: E2 08 00 7B 48 80 13 01 00 00 00 00 00 40 [04:38:43]Write i2c OK [04:38:43]MH_I2C_Read... [04:38:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:38:43]Read from MH i2c: E2 [04:38:43]MH_I2C_Read... [04:38:43]Read from MH i2c: E2 0E 00 [04:38:43]MH_I2C_Read... [04:38:43]Read from MH i2c: E2 0E 00 7B 48 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 7D [04:38:43]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [04:38:43]wFMCommunicate OK [04:38:43]SAM_PROTO_GetShiftState done [04:38:43]FM_GetShiftState done [04:38:43]opened in 1723940556 [04:38:43]opened+sec_in_day 1724026956 [04:38:43]quantity*price = 20001 [04:38:43]sum+1 = 20002 [04:38:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 47 18.08.2024 04:38 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260489 ФПД: 148285229802932 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T043846&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260489&fm=148285229802932&tin=02508201610067®Number=0000000000091865&sum=20000 [04:38:44]StoreToDocumentArchive [04:38:44]shift 449 fd 260489 [04:38:44]save to /storage/0449/doc_00260489 [04:38:44]save last doc name /storage/0449/doc_00260489 to /storage/kkm_last_doc_name [04:38:44]save OK [04:38:44]Clear old archive folders... [04:38:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:38:44]tlvbuf is B6E88A30 [04:38:44]SAM_PROTO_ClearQueue [04:38:44]wFMCommunicate request_size=4 [04:38:44]MH_SAM_APDU [04:38:44]CAPDU: 80 09 00 00 [04:38:44]Write to MH i2c: E2 08 00 88 48 80 09 00 00 00 00 00 00 42 [04:38:44]Write i2c OK [04:38:44]MH_I2C_Read... [04:38:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:38:44]Read from MH i2c: E2 [04:38:44]MH_I2C_Read... [04:38:44]Read from MH i2c: E2 03 00 [04:38:44]MH_I2C_Read... [04:38:44]Read from MH i2c: E2 03 00 88 48 00 90 00 44 [04:38:44]RAPDU: 90 00 [04:38:44]wFMCommunicate OK [04:38:44]SAM_PROTO_ClearQueue done [04:38:44]KKMCreateOFDPacket [04:38:44]OFDProtocolAddRootSTLVToBuf [04:38:44]FM_MakeSignedData [04:38:44]FM_MakeSignedData [04:38:44]SAM_PROTO_SignData [04:38:44]wFMCommunicate request_size=4 [04:38:44]MH_SAM_APDU [04:38:44]CAPDU: 80 0D 01 02 [04:38:44]Write to MH i2c: E2 08 00 89 48 80 0D 01 02 00 00 00 00 4A [04:38:44]Write i2c OK [04:38:44]MH_I2C_Read... [04:38:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:38:44]Read from MH i2c: E2 [04:38:44]MH_I2C_Read... [04:38:44]Read from MH i2c: E2 03 00 [04:38:44]MH_I2C_Read... [04:38:44]Read from MH i2c: E2 03 00 89 48 00 90 00 45 [04:38:44]RAPDU: 90 00 [04:38:44]wFMCommunicate OK [04:38:44]wFMCommunicate request_size=255 [04:38:44]MH_SAM_APDU [04:38:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 D6 7A C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 89 F9 03 00 35 04 06 00 86 [04:38:44]Write to MH i2c: E2 02 01 8A 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 D6 7A C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 89 F9 03 00 35 04 06 00 86 00 00 3C [04:38:44]Write i2c OK [04:38:44]MH_I2C_Read... [04:38:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:38:45]Read from MH i2c: E2 [04:38:45]MH_I2C_Read... [04:38:45]Read from MH i2c: E2 03 00 [04:38:45]MH_I2C_Read... [04:38:45]Read from MH i2c: E2 03 00 8A 48 00 90 00 46 [04:38:45]RAPDU: 90 00 [04:38:45]wFMCommunicate OK [04:38:45]wFMCommunicate request_size=10 [04:38:45]MH_SAM_APDU [04:38:45]CAPDU: 80 0D 02 02 05 DD 58 72 A5 B4 [04:38:45]Write to MH i2c: E2 0D 00 8B 48 80 0D 02 02 05 00 DD 58 72 A5 B4 00 00 57 [04:38:45]Write i2c OK [04:38:45]MH_I2C_Read... [04:38:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:38:45]Read from MH i2c: E2 [04:38:45]MH_I2C_Read... [04:38:45]Read from MH i2c: E2 03 00 [04:38:45]MH_I2C_Read... [04:38:45]Read from MH i2c: E2 03 00 8B 48 00 90 00 47 [04:38:45]RAPDU: 90 00 [04:38:45]wFMCommunicate OK [04:38:45]wFMCommunicate request_size=4 [04:38:45]MH_SAM_APDU [04:38:45]CAPDU: 80 0D 03 02 [04:38:45]Write to MH i2c: E2 08 00 8C 48 80 0D 03 02 00 00 00 00 4F [04:38:45]Write i2c OK [04:38:45]MH_I2C_Read... [04:38:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:38:45]Read from MH i2c: E2 [04:38:45]MH_I2C_Read... [04:38:45]Read from MH i2c: E2 0B 00 [04:38:45]MH_I2C_Read... [04:38:45]Read from MH i2c: E2 0B 00 8C 48 00 5D 85 9D 82 81 00 EB B9 90 00 76 [04:38:45]RAPDU: 5D 85 9D 82 81 00 EB B9 90 00 [04:38:45]wFMCommunicate OK [04:38:45]SAM_PROTO_SignData done [04:38:45]FM_MakeSignedData done [04:38:45]CreateOFDProtocolMessage [04:38:45]wFMCommunicate request_size=4 [04:38:45]MH_SAM_APDU [04:38:45]CAPDU: 80 11 00 00 [04:38:45]Write to MH i2c: E2 08 00 8D 48 80 11 00 00 00 00 00 00 4F [04:38:45]Write i2c OK [04:38:45]MH_I2C_Read... [04:38:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:38:45]Read from MH i2c: E2 [04:38:45]MH_I2C_Read... [04:38:45]Read from MH i2c: E2 17 00 [04:38:45]MH_I2C_Read... [04:38:45]Read from MH i2c: E2 17 00 8D 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 9C [04:38:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [04:38:45]wFMCommunicate OK [04:38:45]CreateOFDProtocolMessage done [04:38:45]OFDSenderStorePacket 260489 [04:38:45]StoreOFDPacket docnum=260489 [04:38:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 5F 64 07 01 98 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 D6 7A C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 89 F9 03 00 35 04 06 00 86 DD 58 72 A5 B4 5D 85 9D 82 81 00 EB B9 [04:38:45]CheckFolder [04:38:45]dirname=/storage/ofd_packets [04:38:45]CheckFolder done [04:38:45]ProducePacketName [04:38:45]name=ofd_packets/00260489 [04:38:45]NVStorageSaveData ofd_packets/00260489 [04:38:45]File name is /storage/ofd_packets/00260489 [04:38:45]Write 301 bytes [04:38:45]NVStorageSaveData done [04:38:45]OFDSenderStorePacket done [04:38:45]KKMCreateOFDPacket done [04:38:45]NVStorageSaveData kkm_last_timestamp [04:38:45]File name is /storage/kkm_last_timestamp [04:38:45]Write 4 bytes [04:38:45]NVStorageSaveData done [04:38:45]ExternCall_PrintAddStr [04:38:45]wPrintStart [04:38:45]Write to MH i2c: 01 00 00 8E 48 D6 [04:38:45]Write i2c OK [04:38:45]MH_I2C_Read... [04:38:45]Read from MH i2c: 01 [04:38:45]MH_I2C_Read... [04:38:45]Read from MH i2c: 01 07 00 [04:38:45]MH_I2C_Read... [04:38:45]Read from MH i2c: 01 07 00 8E 48 00 00 00 00 00 FF 0F EB [04:38:45]RasterBufferAndPrint [04:38:45]line Счет N : (1)1036032 [04:38:45]line ИНН: 02508201610067 [04:38:45]line Контрольно-Кассовый Чек [04:38:45]line ПРОДАЖА [04:38:45]line ТРК (МРК, ГНК) : 12 [04:38:45]line Товар: 2710124130 [04:38:45]line Аи-92-К-5 [04:38:45]line 2.950 * 67.80 [04:38:45]line = 200.01 [04:38:45]line НДС 12% НСП 1% [04:38:45]line > о реализуемом товаре [04:38:45]line ОКРУГЛЕНИЕ: -0.01 [04:38:45]line ИТОГО: 200.00 [04:38:45]line Внесено: 200.00 [04:38:45]line СДАЧА: 0.00 [04:38:45]line НСП 1% : 1.77 [04:38:45]line НДС 12% : 21.24 [04:38:45]line Наличными: 200.00 [04:38:45]line Безнал.: 0.00 [04:38:45]line Место: АЗС № 94 "Партнер Нефть" [04:38:45]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [04:38:45]line СНО: Общий режим [04:38:45]line Чек 47 18.08.2024 04:38 [04:38:45]line Смена: 449 ФФД: 1.0 [04:38:45]line ЗНМ: 0300000099 [04:38:45]line РНМ: 0000000000091865 [04:38:45]line Версия ККМ: 001 [04:38:45]line ФМ: 0000000000871820 [04:38:45]line ФД: 260489 [04:38:45]line ФПД: 148285229802932 [04:38:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T043846&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260489&fm=148285229802932&tin=02508201610067®Number=0000000000091865&sum=20000 [04:38:45]written 0, free lines is 4095 [04:38:45]OFD Sender: Processing packet 260489 [packets to send 192, broken 191] [04:38:45]ProducePacketName [04:38:45]name=ofd_packets/00260489 [04:38:45]OFD Sender: To server: pG, [04:38:45]CommunicateWithHost lk.salyk.kg:30040 [04:38:45]ConnectInit lk.salyk.kg [04:38:45]Connected sock=10 [04:38: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 30 0F 01 00 00 5F 64 07 01 98 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 D6 7A C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 89 F9 03 00 35 04 06 00 86 DD 58 72 A5 B4 5D 85 9D 82 81 00 EB B9 [04:38:45]Write to MH i2c: 01 00 00 B9 48 01 [04:38:45]Write i2c OK [04:38:45]MH_I2C_Read... [04:38:45]Read from MH i2c: 01 [04:38:45]MH_I2C_Read... [04:38:45]Read from MH i2c: 01 07 00 [04:38:45]MH_I2C_Read... [04:38:45]Read from MH i2c: 01 07 00 B9 48 00 00 00 00 00 73 0C 87 [04:38:45]RasterBufferAndPrint [04:38:45]line [04:38:45]line [04:38:45]line [04:38:45]line [04:38:45]line [04:38:45]written 0, free lines is 3190 [04:38:45]MH_Cut [04:38:45]Write to MH i2c: D1 01 00 C0 48 01 DA [04:38:45]Write i2c OK [04:38:45]MH_I2C_Read... [04:38:45]Read from MH i2c: D1 [04:38:45]MH_I2C_Read... [04:38:45]Read from MH i2c: D1 01 00 [04:38:45]MH_I2C_Read... [04:38:45]Read from MH i2c: D1 01 00 C0 48 00 D9 [04:38:45]Write to MH i2c: 01 00 00 C1 48 09 [04:38:45]Write i2c OK [04:38:45]MH_I2C_Read... [04:38: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 30 4F 00 00 00 10 93 47 00 C1 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 30 10 04 04 00 89 F9 03 00 F4 03 04 00 2C 24 C1 66 B6 04 01 00 00 FA 5D 1C 33 DA D1 EC CA [04:38:45]CommunicateWithHost err = 0 [04:38:45]CheckOFDResponse [04:38:45]1017 (14) - 77093643461234 [04:38:45]1041 (16) - 0000000000871820 [04:38:45]1040 (4) - 260489 [04:38:45]1012 (4) - 17.08.2024 22:29 [04:38:45]1206 (1) - 0 [04:38:45]OFD Sender: Remove packet 260489 [04:38:45]ProducePacketName [04:38:45]name=ofd_packets/00260489 [04:38:45]NVStorageDeleteData [04:38:46]OFD Sender: No OFD packet to send [04:38:46]*** Cut start [04:38:46]*** Purtial cut [04:38:46]*** Stage 1: CUTSNS_PIN = 1 [04:38:48]Read from MH i2c: 01 [04:38:48]MH_I2C_Read... [04:38:48]*** Stop cut motor [04:38:48]*** Cut end [04:38:48]Read from MH i2c: 01 07 00 [04:38:48]MH_I2C_Read... [04:38:48]Read from MH i2c: 01 07 00 C1 48 00 00 00 00 00 FF 0F 1E [04:38:48]process_action close_receipt done [04:38:48]requested_data is exist [04:38:48]produce_requested_data [04:38:48]requested_item fm.sn is exist - process it [04:38:48]wFMCommunicate request_size=4 [04:38:48]MH_SAM_APDU [04:38:48]CAPDU: 80 11 00 00 [04:38:48]Write to MH i2c: E2 08 00 C2 48 80 11 00 00 00 00 00 00 84 [04:38:48]Write i2c OK [04:38:48]MH_I2C_Read... [04:38:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:38:48]Read from MH i2c: E2 [04:38:48]MH_I2C_Read... [04:38:48]Read from MH i2c: E2 17 00 [04:38:48]MH_I2C_Read... [04:38:48]Read from MH i2c: E2 17 00 C2 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D1 [04:38:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [04:38:48]wFMCommunicate OK [04:38:48]requested_item fd.num is exist - process it [04:38:48]SAM_PROTO_GetFieldsCounters [04:38:48]wFMCommunicate request_size=4 [04:38:48]MH_SAM_APDU [04:38:48]CAPDU: 80 13 00 00 [04:38:48]Write to MH i2c: E2 08 00 C3 48 80 13 00 00 00 00 00 00 87 [04:38:48]Write i2c OK [04:38:48]MH_I2C_Read... [04:38:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:38:49]Read from MH i2c: E2 [04:38:49]MH_I2C_Read... [04:38:49]Read from MH i2c: E2 62 00 [04:38:49]MH_I2C_Read... [04:38:49]Read from MH i2c: E2 62 00 C3 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 89 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [04:38: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 89 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:38:49]wFMCommunicate OK [04:38:49]SAM_PROTO_GetFieldsCounters done [04:38:49]requested_item shift.num is exist - process it [04:38:49]requested_item shift.opened is exist - process it [04:38:49]req_shift_opened [04:38:49]FM_GetShiftState [04:38:49]SAM_PROTO_GetShiftState [04:38:49]wFMCommunicate request_size=4 [04:38:49]MH_SAM_APDU [04:38:49]CAPDU: 80 13 01 00 [04:38:49]Write to MH i2c: E2 08 00 C4 48 80 13 01 00 00 00 00 00 89 [04:38:49]Write i2c OK [04:38:49]MH_I2C_Read... [04:38:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:38:49]Read from MH i2c: E2 [04:38:49]MH_I2C_Read... [04:38:49]Read from MH i2c: E2 0E 00 [04:38:49]MH_I2C_Read... [04:38:49]Read from MH i2c: E2 0E 00 C4 48 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C6 [04:38:49]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [04:38:49]wFMCommunicate OK [04:38:49]SAM_PROTO_GetShiftState done [04:38:49]FM_GetShiftState done [04:38:49]req_shift_opened done [04:38:49]requested_item shift.open_date is exist - process it [04:38:49]req_shift_open_date [04:38:49]req_shift_open_date done [04:38:49]produce_requested_data done [04:38:49]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260489,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [04:38:49]process_action_free close_receipt [04:38:49]json_value_free [04:38:49]json_value_free done [04:38:49]process_json_proto returns [04:38:49]Send response to host [04:38:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260489,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [04:38:49]free response buf [04:38:49]execute_script done [04:38:49]execute_script returns [04:38:49]free content buf [04:38:49]Sock 9.Close socket [04:38:49]Sock 9.Thread stoped [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:11]OFD Sender: No OFD packet to send [04:39:16]OFD Sender: No OFD packet to send [04:39:21]OFD Sender: No OFD packet to send [04:39:26]OFD Sender: No OFD packet to send [04:39:31]OFD Sender: No OFD packet to send [04:39:36]accept exits with 7 [04:39:36]New connection [04:39:36]New thread 3066473828 created [04:39:36]Thread 3066617188 joined [04:39:36]Waiting for new connection... [04:39:36] Sock 7.Parse request [04:39:36]Sock 7.Check first char [04:39:36]Sock 7.First char is OK [04:39:36]request: POST /json_proto HTTP/1.0 [04:39:36]Method: POST [04:39:36]URL: /json_proto [04:39:36]Method is POST - this is cgi request [04:39:36]url: /json_proto [04:39:36]query_string will be loaded in cgi processing [04:39:36]execute_cgi json_proto POST (null) [04:39:36]execute_cgi path=json_proto method=POST [04:39:36]POST find Content-Length [04:39:36]Host: 172.17.55.133:8080 [04:39:36]Content-Length: 817 [04:39:36]Content-Type: application/json [04:39:36] [04:39:36]POST finish read [04:39:36]Found Content-Length = 817 [04:39:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:39:36]execute_script... [04:39: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)1036033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:39:36]POST & json_proto [04:39:36]process_json_proto [04:39:36]json parsed OK: [04:39:36]protocol is kg_v1.0 [04:39:36]action value=close_receipt [04:39:36]process_action close_receipt [04:39:36]cmd_close_receipt [04:39:36]MH_GetDate [04:39:36]Write to MH i2c: F0 00 00 C5 48 FC [04:39:36]Write i2c OK [04:39:36]MH_I2C_Read... [04:39:36]Read from MH i2c: F0 [04:39:36]MH_I2C_Read... [04:39:36]Read from MH i2c: F0 09 00 [04:39:36]MH_I2C_Read... [04:39:36]Read from MH i2c: F0 09 00 C5 48 00 0B 7B C1 66 34 48 D8 65 6B [04:39:36]GetLastDocTimeStamp 1723955926 [04:39:36]current date 1723955979 [04:39:36]FM_GetShiftState [04:39:36]SAM_PROTO_GetShiftState [04:39:36]wFMCommunicate request_size=4 [04:39:36]MH_SAM_APDU [04:39:36]CAPDU: 80 13 01 00 [04:39:36]Write to MH i2c: E2 08 00 C6 48 80 13 01 00 00 00 00 00 8B [04:39:36]Write i2c OK [04:39:36]MH_I2C_Read... [04:39:36]OFD Sender: No OFD packet to send [04:39:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:39:36]Read from MH i2c: E2 [04:39:36]MH_I2C_Read... [04:39:36]Read from MH i2c: E2 0E 00 [04:39:36]MH_I2C_Read... [04:39:36]Read from MH i2c: E2 0E 00 C6 48 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C8 [04:39:36]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [04:39:36]wFMCommunicate OK [04:39:36]SAM_PROTO_GetShiftState done [04:39:36]FM_GetShiftState done [04:39:36]opened in 1723940556 [04:39:36]opened+sec_in_day 1724026956 [04:39:36]quantity*price = 50036 [04:39:36]sum+1 = 50037 [04:39:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 48 18.08.2024 04:39 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871820 ФД: 260490 ФПД: 89168670008248 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T043939&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260490&fm=89168670008248&tin=02508201610067®Number=0000000000091865&sum=50036 [04:39:37]StoreToDocumentArchive [04:39:37]shift 449 fd 260490 [04:39:37]save to /storage/0449/doc_00260490 [04:39:37]save last doc name /storage/0449/doc_00260490 to /storage/kkm_last_doc_name [04:39:37]save OK [04:39:37]Clear old archive folders... [04:39:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:39:37]tlvbuf is B6F037C0 [04:39:37]SAM_PROTO_ClearQueue [04:39:37]wFMCommunicate request_size=4 [04:39:37]MH_SAM_APDU [04:39:37]CAPDU: 80 09 00 00 [04:39:37]Write to MH i2c: E2 08 00 D3 48 80 09 00 00 00 00 00 00 8D [04:39:37]Write i2c OK [04:39:37]MH_I2C_Read... [04:39:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:39:37]Read from MH i2c: E2 [04:39:37]MH_I2C_Read... [04:39:37]Read from MH i2c: E2 03 00 [04:39:37]MH_I2C_Read... [04:39:37]Read from MH i2c: E2 03 00 D3 48 00 90 00 8F [04:39:37]RAPDU: 90 00 [04:39:37]wFMCommunicate OK [04:39:37]SAM_PROTO_ClearQueue done [04:39:37]KKMCreateOFDPacket [04:39:37]OFDProtocolAddRootSTLVToBuf [04:39:37]FM_MakeSignedData [04:39:37]FM_MakeSignedData [04:39:37]SAM_PROTO_SignData [04:39:37]wFMCommunicate request_size=4 [04:39:37]MH_SAM_APDU [04:39:37]CAPDU: 80 0D 01 02 [04:39:37]Write to MH i2c: E2 08 00 D4 48 80 0D 01 02 00 00 00 00 95 [04:39:37]Write i2c OK [04:39:37]MH_I2C_Read... [04:39:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:39:37]Read from MH i2c: E2 [04:39:37]MH_I2C_Read... [04:39:37]Read from MH i2c: E2 03 00 [04:39:37]MH_I2C_Read... [04:39:37]Read from MH i2c: E2 03 00 D4 48 00 90 00 90 [04:39:37]RAPDU: 90 00 [04:39:37]wFMCommunicate OK [04:39:37]wFMCommunicate request_size=255 [04:39:37]MH_SAM_APDU [04:39:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 0B 7B C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8A F9 03 00 35 04 06 00 51 [04:39:37]Write to MH i2c: E2 02 01 D5 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 0B 7B C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8A F9 03 00 35 04 06 00 51 00 00 D0 [04:39:37]Write i2c OK [04:39:37]MH_I2C_Read... [04:39:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:39:38]Read from MH i2c: E2 [04:39:38]MH_I2C_Read... [04:39:38]Read from MH i2c: E2 03 00 [04:39:38]MH_I2C_Read... [04:39:38]Read from MH i2c: E2 03 00 D5 48 00 90 00 91 [04:39:38]RAPDU: 90 00 [04:39:38]wFMCommunicate OK [04:39:38]wFMCommunicate request_size=10 [04:39:38]MH_SAM_APDU [04:39:38]CAPDU: 80 0D 02 02 05 19 32 E6 A3 B8 [04:39:38]Write to MH i2c: E2 0D 00 D6 48 80 0D 02 02 05 00 19 32 E6 A3 B8 00 00 2E [04:39:38]Write i2c OK [04:39:38]MH_I2C_Read... [04:39:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:39:38]Read from MH i2c: E2 [04:39:38]MH_I2C_Read... [04:39:38]Read from MH i2c: E2 03 00 [04:39:38]MH_I2C_Read... [04:39:38]Read from MH i2c: E2 03 00 D6 48 00 90 00 92 [04:39:38]RAPDU: 90 00 [04:39:38]wFMCommunicate OK [04:39:38]wFMCommunicate request_size=4 [04:39:38]MH_SAM_APDU [04:39:38]CAPDU: 80 0D 03 02 [04:39:38]Write to MH i2c: E2 08 00 D7 48 80 0D 03 02 00 00 00 00 9A [04:39:38]Write i2c OK [04:39:38]MH_I2C_Read... [04:39:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:39:38]Read from MH i2c: E2 [04:39:38]MH_I2C_Read... [04:39:38]Read from MH i2c: E2 0B 00 [04:39:38]MH_I2C_Read... [04:39:38]Read from MH i2c: E2 0B 00 D7 48 00 17 76 37 63 53 CA BD 26 90 00 C2 [04:39:38]RAPDU: 17 76 37 63 53 CA BD 26 90 00 [04:39:38]wFMCommunicate OK [04:39:38]SAM_PROTO_SignData done [04:39:38]FM_MakeSignedData done [04:39:38]CreateOFDProtocolMessage [04:39:38]wFMCommunicate request_size=4 [04:39:38]MH_SAM_APDU [04:39:38]CAPDU: 80 11 00 00 [04:39:38]Write to MH i2c: E2 08 00 D8 48 80 11 00 00 00 00 00 00 9A [04:39:38]Write i2c OK [04:39:38]MH_I2C_Read... [04:39:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:39:38]Read from MH i2c: E2 [04:39:38]MH_I2C_Read... [04:39:38]Read from MH i2c: E2 17 00 [04:39:38]MH_I2C_Read... [04:39:38]Read from MH i2c: E2 17 00 D8 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E7 [04:39:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [04:39:38]wFMCommunicate OK [04:39:38]CreateOFDProtocolMessage done [04:39:38]OFDSenderStorePacket 260490 [04:39:38]StoreOFDPacket docnum=260490 [04:39:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 E3 A0 07 01 3F 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 0B 7B C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8A F9 03 00 35 04 06 00 51 19 32 E6 A3 B8 17 76 37 63 53 CA BD 26 [04:39:38]CheckFolder [04:39:38]dirname=/storage/ofd_packets [04:39:38]CheckFolder done [04:39:38]ProducePacketName [04:39:38]name=ofd_packets/00260490 [04:39:38]NVStorageSaveData ofd_packets/00260490 [04:39:38]File name is /storage/ofd_packets/00260490 [04:39:38]Write 301 bytes [04:39:38]NVStorageSaveData done [04:39:38]OFDSenderStorePacket done [04:39:38]KKMCreateOFDPacket done [04:39:38]NVStorageSaveData kkm_last_timestamp [04:39:38]File name is /storage/kkm_last_timestamp [04:39:38]Write 4 bytes [04:39:38]NVStorageSaveData done [04:39:38]ExternCall_PrintAddStr [04:39:38]wPrintStart [04:39:38]Write to MH i2c: 01 00 00 D9 48 21 [04:39:38]Write i2c OK [04:39:38]MH_I2C_Read... [04:39:38]Read from MH i2c: 01 [04:39:38]MH_I2C_Read... [04:39:38]Read from MH i2c: 01 07 00 [04:39:38]MH_I2C_Read... [04:39:38]Read from MH i2c: 01 07 00 D9 48 00 00 00 00 00 FF 0F 36 [04:39:38]RasterBufferAndPrint [04:39:38]line Счет N : (1)1036033 [04:39:38]line ИНН: 02508201610067 [04:39:38]line Контрольно-Кассовый Чек [04:39:38]line ПРОДАЖА [04:39:38]line ТРК (МРК, ГНК) : 42 [04:39:38]line Товар: 2710124130 [04:39:38]line Аи-92-К-5 [04:39:38]line 7.380 * 67.80 [04:39:38]line = 500.36 [04:39:38]line НДС 12% НСП 1% [04:39:38]line > о реализуемом товаре [04:39:38]line ИТОГО: 500.36 [04:39:38]line НСП 1% : 4.43 [04:39:38]line НДС 12% : 53.14 [04:39:38]line Наличными: 0.00 [04:39:38]line Безнал.: 500.36 [04:39:38]line Место: АЗС № 94 "Партнер Нефть" [04:39:38]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [04:39:38]line СНО: Общий режим [04:39:38]line Чек 48 18.08.2024 04:39 [04:39:38]line Смена: 449 ФФД: 1.0 [04:39:38]line ЗНМ: 0300000099 [04:39:38]line РНМ: 0000000000091865 [04:39:38]line Версия ККМ: 001 [04:39:38]line Платежная система: Бакай Банк [04:39:38]line ФМ: 0000000000871820 [04:39:38]line ФД: 260490 [04:39:38]line ФПД: 89168670008248 [04:39:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T043939&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260490&fm=89168670008248&tin=02508201610067®Number=0000000000091865&sum=50036 [04:39:38]written 0, free lines is 4095 [04:39:38]OFD Sender: Processing packet 260490 [packets to send 192, broken 191] [04:39:38]ProducePacketName [04:39:38]name=ofd_packets/00260490 [04:39:38]OFD Sender: To server: pG, [04:39:38]CommunicateWithHost lk.salyk.kg:30040 [04:39:38]ConnectInit lk.salyk.kg [04:39:38]Connected sock=10 [04:39: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 30 0F 01 00 00 E3 A0 07 01 3F 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 0B 7B C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8A F9 03 00 35 04 06 00 51 19 32 E6 A3 B8 17 76 37 63 53 CA BD 26 [04:39:38]Write to MH i2c: 01 00 00 03 49 4C [04:39:38]Write i2c OK [04:39:38]MH_I2C_Read... [04:39:38]Read from MH i2c: 01 [04:39:38]MH_I2C_Read... [04:39:38]Read from MH i2c: 01 07 00 [04:39:38]MH_I2C_Read... [04:39:38]Read from MH i2c: 01 07 00 03 49 00 00 00 00 00 8C 0C EB [04:39:38]RasterBufferAndPrint [04:39:38]line [04:39:38]line [04:39:38]line [04:39:38]line [04:39:38]line [04:39:38]written 0, free lines is 3215 [04:39:38]MH_Cut [04:39:38]Write to MH i2c: D1 01 00 0A 49 01 25 [04:39:38]Write i2c OK [04:39:38]MH_I2C_Read... [04:39:38]Read from MH i2c: D1 [04:39:38]MH_I2C_Read... [04:39:38]Read from MH i2c: D1 01 00 [04:39:38]MH_I2C_Read... [04:39:38]Read from MH i2c: D1 01 00 0A 49 00 24 [04:39:38]Write to MH i2c: 01 00 00 0B 49 54 [04:39:38]Write i2c OK [04:39:38]MH_I2C_Read... [04:39: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 30 4F 00 00 00 33 61 47 00 D2 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 8A F9 03 00 F4 03 04 00 61 24 C1 66 B6 04 01 00 00 A2 16 50 CD 61 33 8A 51 [04:39:38]CommunicateWithHost err = 0 [04:39:38]CheckOFDResponse [04:39:38]1017 (14) - 77093643461234 [04:39:38]1041 (16) - 0000000000871820 [04:39:38]1040 (4) - 260490 [04:39:38]1012 (4) - 17.08.2024 22:29 [04:39:38]1206 (1) - 0 [04:39:38]OFD Sender: Remove packet 260490 [04:39:38]ProducePacketName [04:39:38]name=ofd_packets/00260490 [04:39:38]NVStorageDeleteData [04:39:39]OFD Sender: No OFD packet to send [04:39:39]*** Cut start [04:39:39]*** Purtial cut [04:39:39]*** Stage 1: CUTSNS_PIN = 1 [04:39:41]Read from MH i2c: 01 [04:39:41]MH_I2C_Read... [04:39:41]*** Stop cut motor [04:39:41]*** Cut end [04:39:41]Read from MH i2c: 01 07 00 [04:39:41]MH_I2C_Read... [04:39:41]Read from MH i2c: 01 07 00 0B 49 00 00 00 00 00 FF 0F 69 [04:39:41]process_action close_receipt done [04:39:41]requested_data is exist [04:39:41]produce_requested_data [04:39:41]requested_item fm.sn is exist - process it [04:39:41]wFMCommunicate request_size=4 [04:39:41]MH_SAM_APDU [04:39:41]CAPDU: 80 11 00 00 [04:39:41]Write to MH i2c: E2 08 00 0C 49 80 11 00 00 00 00 00 00 CF [04:39:41]Write i2c OK [04:39:41]MH_I2C_Read... [04:39:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:39:41]Read from MH i2c: E2 [04:39:41]MH_I2C_Read... [04:39:41]Read from MH i2c: E2 17 00 [04:39:41]MH_I2C_Read... [04:39:41]Read from MH i2c: E2 17 00 0C 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 1C [04:39:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [04:39:41]wFMCommunicate OK [04:39:41]requested_item fd.num is exist - process it [04:39:41]SAM_PROTO_GetFieldsCounters [04:39:41]wFMCommunicate request_size=4 [04:39:41]MH_SAM_APDU [04:39:41]CAPDU: 80 13 00 00 [04:39:41]Write to MH i2c: E2 08 00 0D 49 80 13 00 00 00 00 00 00 D2 [04:39:41]Write i2c OK [04:39:41]MH_I2C_Read... [04:39:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:39:41]Read from MH i2c: E2 [04:39:41]MH_I2C_Read... [04:39:41]Read from MH i2c: E2 62 00 [04:39:41]MH_I2C_Read... [04:39:41]Read from MH i2c: E2 62 00 0D 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 8A F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [04:39: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 8A F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:39:41]wFMCommunicate OK [04:39:41]SAM_PROTO_GetFieldsCounters done [04:39:41]requested_item shift.num is exist - process it [04:39:41]requested_item shift.opened is exist - process it [04:39:41]req_shift_opened [04:39:41]FM_GetShiftState [04:39:41]SAM_PROTO_GetShiftState [04:39:41]wFMCommunicate request_size=4 [04:39:41]MH_SAM_APDU [04:39:41]CAPDU: 80 13 01 00 [04:39:42]Write to MH i2c: E2 08 00 0E 49 80 13 01 00 00 00 00 00 D4 [04:39:42]Write i2c OK [04:39:42]MH_I2C_Read... [04:39:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:39:42]Read from MH i2c: E2 [04:39:42]MH_I2C_Read... [04:39:42]Read from MH i2c: E2 0E 00 [04:39:42]MH_I2C_Read... [04:39:42]Read from MH i2c: E2 0E 00 0E 49 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 11 [04:39:42]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [04:39:42]wFMCommunicate OK [04:39:42]SAM_PROTO_GetShiftState done [04:39:42]FM_GetShiftState done [04:39:42]req_shift_opened done [04:39:42]requested_item shift.open_date is exist - process it [04:39:42]req_shift_open_date [04:39:42]req_shift_open_date done [04:39:42]produce_requested_data done [04:39:42]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260490,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [04:39:42]process_action_free close_receipt [04:39:42]json_value_free [04:39:42]json_value_free done [04:39:42]process_json_proto returns [04:39:42]Send response to host [04:39:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260490,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [04:39:42]free response buf [04:39:42]execute_script done [04:39:42]execute_script returns [04:39:42]free content buf [04:39:42]Sock 7.Close socket [04:39:42]Sock 7.Thread stoped [04:39:44]OFD Sender: No OFD packet to send [04:39:49]OFD Sender: No OFD packet to send [04:39:54]OFD Sender: No OFD packet to send [04:39:59]OFD Sender: No OFD packet to send [04:40:04]OFD Sender: No OFD packet to send [04:40:09]OFD Sender: No OFD packet to send [04:40:14]OFD Sender: No OFD packet to send [04:40:19]OFD Sender: No OFD packet to send [04:40:24]OFD Sender: No OFD packet to send [04:40:29]OFD Sender: No OFD packet to send [04:40:34]OFD Sender: No OFD packet to send [04:40:39]OFD Sender: No OFD packet to send [04:40:44]OFD Sender: No OFD packet to send [04:40:49]OFD Sender: No OFD packet to send [04:40:54]OFD Sender: No OFD packet to send [04:40:59]OFD Sender: No OFD packet to send [04:41:04]OFD Sender: No OFD packet to send [04:41:09]OFD Sender: No OFD packet to send [04:41:14]OFD Sender: No OFD packet to send [04:41:19]OFD Sender: No OFD packet to send [04:41:24]OFD Sender: No OFD packet to send [04:41:29]OFD Sender: No OFD packet to send [04:41:34]OFD Sender: No OFD packet to send [04:41:39]OFD Sender: No OFD packet to send [04:41:44]OFD Sender: No OFD packet to send [04:41:49]OFD Sender: No OFD packet to send [04:41:54]OFD Sender: No OFD packet to send [04:41:59]OFD Sender: No OFD packet to send [04:42:04]OFD Sender: No OFD packet to send [04:42:09]OFD Sender: No OFD packet to send [04:42:14]OFD Sender: No OFD packet to send [04:42:19]OFD Sender: No OFD packet to send [04:42:24]OFD Sender: No OFD packet to send [04:42:29]OFD Sender: No OFD packet to send [04:42:34]OFD Sender: No OFD packet to send [04:42:39]OFD Sender: No OFD packet to send [04:42:44]OFD Sender: No OFD packet to send [04:42:49]OFD Sender: No OFD packet to send [04:42:54]OFD Sender: No OFD packet to send [04:42:59]OFD Sender: No OFD packet to send [04:43:04]OFD Sender: No OFD packet to send [04:43:09]OFD Sender: No OFD packet to send [04:43:14]OFD Sender: No OFD packet to send [04:43:19]OFD Sender: No OFD packet to send [04:43:24]OFD Sender: No OFD packet to send [04:43:29]OFD Sender: No OFD packet to send [04:43:34]OFD Sender: No OFD packet to send [04:43:39]OFD Sender: No OFD packet to send [04:43:44]OFD Sender: No OFD packet to send [04:43:49]OFD Sender: No OFD packet to send [04:43:54]OFD Sender: No OFD packet to send [04:43:59]OFD Sender: No OFD packet to send [04:44:04]OFD Sender: No OFD packet to send [04:44:09]OFD Sender: No OFD packet to send [04:44:14]OFD Sender: No OFD packet to send [04:44:19]OFD Sender: No OFD packet to send [04:44:24]OFD Sender: No OFD packet to send [04:44:29]OFD Sender: No OFD packet to send [04:44:34]OFD Sender: No OFD packet to send [04:44:39]OFD Sender: No OFD packet to send [04:44:44]OFD Sender: No OFD packet to send [04:44:49]OFD Sender: No OFD packet to send [04:44:54]OFD Sender: No OFD packet to send [04:44:59]OFD Sender: No OFD packet to send [04:45:04]OFD Sender: No OFD packet to send [04:45:09]OFD Sender: No OFD packet to send [04:45:14]OFD Sender: No OFD packet to send [04:45:19]OFD Sender: No OFD packet to send [04:45:24]OFD Sender: No OFD packet to send [04:45:29]OFD Sender: No OFD packet to send [04:45:34]OFD Sender: No OFD packet to send [04:45:39]OFD Sender: No OFD packet to send [04:45:44]OFD Sender: No OFD packet to send [04:45:49]OFD Sender: No OFD packet to send [04:45:54]OFD Sender: No OFD packet to send [04:45:59]OFD Sender: No OFD packet to send [04:46:04]OFD Sender: No OFD packet to send [04:46:09]OFD Sender: No OFD packet to send [04:46:14]OFD Sender: No OFD packet to send [04:46:19]OFD Sender: No OFD packet to send [04:46:24]OFD Sender: No OFD packet to send [04:46:29]OFD Sender: No OFD packet to send [04:46:34]OFD Sender: No OFD packet to send [04:46:39]OFD Sender: No OFD packet to send [04:46:44]OFD Sender: No OFD packet to send [04:46:49]OFD Sender: No OFD packet to send [04:46:54]OFD Sender: No OFD packet to send [04:46:59]OFD Sender: No OFD packet to send [04:47:04]OFD Sender: No OFD packet to send [04:47:09]OFD Sender: No OFD packet to send [04:47:14]OFD Sender: No OFD packet to send [04:47:19]OFD Sender: No OFD packet to send [04:47:24]OFD Sender: No OFD packet to send [04:47:30]OFD Sender: No OFD packet to send [04:47:35]OFD Sender: No OFD packet to send [04:47:40]OFD Sender: No OFD packet to send [04:47:45]OFD Sender: No OFD packet to send [04:47:45]accept exits with 9 [04:47:45]New connection [04:47:45]New thread 3066617188 created [04:47:45]Thread 3066473828 joined [04:47:45]Waiting for new connection... [04:47:45] Sock 9.Parse request [04:47:45]Sock 9.Check first char [04:47:45]Sock 9.First char is OK [04:47:45]request: POST /json_proto HTTP/1.0 [04:47:45]Method: POST [04:47:45]URL: /json_proto [04:47:45]Method is POST - this is cgi request [04:47:45]url: /json_proto [04:47:45]query_string will be loaded in cgi processing [04:47:45]execute_cgi json_proto POST (null) [04:47:45]execute_cgi path=json_proto method=POST [04:47:45]POST find Content-Length [04:47:45]Host: 172.17.55.133:8080 [04:47:45]Content-Length: 683 [04:47:45]Content-Type: application/json [04:47:45] [04:47:45]POST finish read [04:47:45]Found Content-Length = 683 [04:47:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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" ] } } [04:47:45]execute_script... [04: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)1036034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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" ] } } [04:47:45]POST & json_proto [04:47:45]process_json_proto [04:47:45]json parsed OK: [04:47:45]protocol is kg_v1.0 [04:47:45]action value=close_receipt [04:47:45]process_action close_receipt [04:47:45]cmd_close_receipt [04:47:45]MH_GetDate [04:47:45]Write to MH i2c: F0 00 00 0F 49 47 [04:47:45]Write i2c OK [04:47:45]MH_I2C_Read... [04:47:45]Read from MH i2c: F0 [04:47:45]MH_I2C_Read... [04:47:45]Read from MH i2c: F0 09 00 [04:47:45]MH_I2C_Read... [04:47:45]Read from MH i2c: F0 09 00 0F 49 00 F4 7C C1 66 34 48 D8 65 A0 [04:47:45]GetLastDocTimeStamp 1723955979 [04:47:45]current date 1723956468 [04:47:45]FM_GetShiftState [04:47:45]SAM_PROTO_GetShiftState [04:47:45]wFMCommunicate request_size=4 [04:47:45]MH_SAM_APDU [04:47:45]CAPDU: 80 13 01 00 [04:47:45]Write to MH i2c: E2 08 00 10 49 80 13 01 00 00 00 00 00 D6 [04:47:45]Write i2c OK [04:47:45]MH_I2C_Read... [04:47:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:47:45]Read from MH i2c: E2 [04:47:45]MH_I2C_Read... [04:47:45]Read from MH i2c: E2 0E 00 [04:47:45]MH_I2C_Read... [04:47:45]Read from MH i2c: E2 0E 00 10 49 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 13 [04:47:45]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [04:47:45]wFMCommunicate OK [04:47:45]SAM_PROTO_GetShiftState done [04:47:45]FM_GetShiftState done [04:47:45]opened in 1723940556 [04:47:45]opened+sec_in_day 1724026956 [04:47:45]quantity*price = 100005 [04:47:45]sum+1 = 100006 [04:47:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 49 18.08.2024 04:47 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260491 ФПД: 220259712775809 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T044748&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260491&fm=220259712775809&tin=02508201610067®Number=0000000000091865&sum=100000 [04:47:46]StoreToDocumentArchive [04:47:46]shift 449 fd 260491 [04:47:46]save to /storage/0449/doc_00260491 [04:47:46]save last doc name /storage/0449/doc_00260491 to /storage/kkm_last_doc_name [04:47:46]save OK [04:47:46]Clear old archive folders... [04:47:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:47:46]tlvbuf is 003BF630 [04:47:46]SAM_PROTO_ClearQueue [04:47:46]wFMCommunicate request_size=4 [04:47:46]MH_SAM_APDU [04:47:46]CAPDU: 80 09 00 00 [04:47:46]Write to MH i2c: E2 08 00 1D 49 80 09 00 00 00 00 00 00 D8 [04:47:46]Write i2c OK [04:47:46]MH_I2C_Read... [04:47:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:47:46]Read from MH i2c: E2 [04:47:46]MH_I2C_Read... [04:47:46]Read from MH i2c: E2 03 00 [04:47:46]MH_I2C_Read... [04:47:46]Read from MH i2c: E2 03 00 1D 49 00 90 00 DA [04:47:46]RAPDU: 90 00 [04:47:46]wFMCommunicate OK [04:47:46]SAM_PROTO_ClearQueue done [04:47:46]KKMCreateOFDPacket [04:47:46]OFDProtocolAddRootSTLVToBuf [04:47:46]FM_MakeSignedData [04:47:46]FM_MakeSignedData [04:47:46]SAM_PROTO_SignData [04:47:46]wFMCommunicate request_size=4 [04:47:46]MH_SAM_APDU [04:47:46]CAPDU: 80 0D 01 02 [04:47:46]Write to MH i2c: E2 08 00 1E 49 80 0D 01 02 00 00 00 00 E0 [04:47:46]Write i2c OK [04:47:46]MH_I2C_Read... [04:47:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:47:46]Read from MH i2c: E2 [04:47:46]MH_I2C_Read... [04:47:46]Read from MH i2c: E2 03 00 [04:47:46]MH_I2C_Read... [04:47:46]Read from MH i2c: E2 03 00 1E 49 00 90 00 DB [04:47:46]RAPDU: 90 00 [04:47:46]wFMCommunicate OK [04:47:46]wFMCommunicate request_size=255 [04:47:46]MH_SAM_APDU [04: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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 F4 7C C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8B F9 03 00 35 04 06 00 C8 [04:47:46]Write to MH i2c: E2 02 01 1F 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 F4 7C C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8B F9 03 00 35 04 06 00 C8 00 00 C5 [04:47:46]Write i2c OK [04:47:46]MH_I2C_Read... [04:47:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:47:47]Read from MH i2c: E2 [04:47:47]MH_I2C_Read... [04:47:47]Read from MH i2c: E2 03 00 [04:47:47]MH_I2C_Read... [04:47:47]Read from MH i2c: E2 03 00 1F 49 00 90 00 DC [04:47:47]RAPDU: 90 00 [04:47:47]wFMCommunicate OK [04:47:47]wFMCommunicate request_size=10 [04:47:47]MH_SAM_APDU [04:47:47]CAPDU: 80 0D 02 02 05 53 35 F0 36 81 [04:47:47]Write to MH i2c: E2 0D 00 20 49 80 0D 02 02 05 00 53 35 F0 36 81 00 00 1C [04:47:47]Write i2c OK [04:47:47]MH_I2C_Read... [04:47:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:47:47]Read from MH i2c: E2 [04:47:47]MH_I2C_Read... [04:47:47]Read from MH i2c: E2 03 00 [04:47:47]MH_I2C_Read... [04:47:47]Read from MH i2c: E2 03 00 20 49 00 90 00 DD [04:47:47]RAPDU: 90 00 [04:47:47]wFMCommunicate OK [04:47:47]wFMCommunicate request_size=4 [04:47:47]MH_SAM_APDU [04:47:47]CAPDU: 80 0D 03 02 [04:47:47]Write to MH i2c: E2 08 00 21 49 80 0D 03 02 00 00 00 00 E5 [04:47:47]Write i2c OK [04:47:47]MH_I2C_Read... [04:47:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:47:47]Read from MH i2c: E2 [04:47:47]MH_I2C_Read... [04:47:47]Read from MH i2c: E2 0B 00 [04:47:47]MH_I2C_Read... [04:47:47]Read from MH i2c: E2 0B 00 21 49 00 6E D0 C0 34 56 48 7F 5B 90 00 90 [04:47:47]RAPDU: 6E D0 C0 34 56 48 7F 5B 90 00 [04:47:47]wFMCommunicate OK [04:47:47]SAM_PROTO_SignData done [04:47:47]FM_MakeSignedData done [04:47:47]CreateOFDProtocolMessage [04:47:47]wFMCommunicate request_size=4 [04:47:47]MH_SAM_APDU [04:47:47]CAPDU: 80 11 00 00 [04:47:47]Write to MH i2c: E2 08 00 22 49 80 11 00 00 00 00 00 00 E5 [04:47:47]Write i2c OK [04:47:47]MH_I2C_Read... [04:47:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:47:47]Read from MH i2c: E2 [04:47:47]MH_I2C_Read... [04:47:47]Read from MH i2c: E2 17 00 [04:47:47]MH_I2C_Read... [04:47:47]Read from MH i2c: E2 17 00 22 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 32 [04:47:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [04:47:47]wFMCommunicate OK [04:47:47]CreateOFDProtocolMessage done [04:47:47]OFDSenderStorePacket 260491 [04:47:47]StoreOFDPacket docnum=260491 [04: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 30 0F 01 00 00 A4 F9 07 01 6C 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 F4 7C C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8B F9 03 00 35 04 06 00 C8 53 35 F0 36 81 6E D0 C0 34 56 48 7F 5B [04:47:47]CheckFolder [04:47:47]dirname=/storage/ofd_packets [04:47:47]CheckFolder done [04:47:47]ProducePacketName [04:47:47]name=ofd_packets/00260491 [04:47:47]NVStorageSaveData ofd_packets/00260491 [04:47:47]File name is /storage/ofd_packets/00260491 [04:47:47]Write 301 bytes [04:47:47]NVStorageSaveData done [04:47:47]OFDSenderStorePacket done [04:47:47]KKMCreateOFDPacket done [04:47:47]NVStorageSaveData kkm_last_timestamp [04:47:47]File name is /storage/kkm_last_timestamp [04:47:47]Write 4 bytes [04:47:47]NVStorageSaveData done [04:47:47]ExternCall_PrintAddStr [04:47:47]wPrintStart [04:47:47]Write to MH i2c: 01 00 00 23 49 6C [04:47:47]Write i2c OK [04:47:47]MH_I2C_Read... [04:47:47]Read from MH i2c: 01 [04:47:47]MH_I2C_Read... [04:47:47]Read from MH i2c: 01 07 00 [04:47:47]MH_I2C_Read... [04:47:47]Read from MH i2c: 01 07 00 23 49 00 00 00 00 00 FF 0F 81 [04:47:47]RasterBufferAndPrint [04:47:47]line Счет N : (1)1036034 [04:47:47]line ИНН: 02508201610067 [04:47:47]line Контрольно-Кассовый Чек [04:47:47]line ПРОДАЖА [04:47:47]line ТРК (МРК, ГНК) : 12 [04:47:47]line Товар: 2710124130 [04:47:47]line Аи-92-К-5 [04:47:47]line 14.750 * 67.80 [04:47:47]line = 1000.05 [04:47:47]line НДС 12% НСП 1% [04:47:47]line > о реализуемом товаре [04:47:47]line ОКРУГЛЕНИЕ: -0.05 [04:47:47]line ИТОГО: 1000.00 [04:47:47]line Внесено: 1000.00 [04:47:47]line СДАЧА: 0.00 [04:47:47]line НСП 1% : 8.85 [04:47:47]line НДС 12% : 106.20 [04:47:47]line Наличными: 1000.00 [04:47:47]line Безнал.: 0.00 [04:47:47]line Место: АЗС № 94 "Партнер Нефть" [04:47:47]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [04:47:47]line СНО: Общий режим [04:47:47]line Чек 49 18.08.2024 04:47 [04:47:47]line Смена: 449 ФФД: 1.0 [04:47:47]line ЗНМ: 0300000099 [04:47:47]line РНМ: 0000000000091865 [04:47:47]line Версия ККМ: 001 [04:47:47]line ФМ: 0000000000871820 [04:47:47]line ФД: 260491 [04:47:47]line ФПД: 220259712775809 [04:47:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T044748&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260491&fm=220259712775809&tin=02508201610067®Number=0000000000091865&sum=100000 [04:47:47]written 0, free lines is 4095 [04:47:47]OFD Sender: Processing packet 260491 [packets to send 192, broken 191] [04:47:47]ProducePacketName [04:47:47]name=ofd_packets/00260491 [04:47:47]OFD Sender: To server: pG, [04:47:47]CommunicateWithHost lk.salyk.kg:30040 [04:47:47]ConnectInit lk.salyk.kg [04:47:47]Write to MH i2c: 01 00 00 4E 49 97 [04:47:47]Write i2c OK [04:47:47]MH_I2C_Read... [04:47:47]Read from MH i2c: 01 [04:47:47]MH_I2C_Read... [04:47:47]Read from MH i2c: 01 07 00 [04:47:47]MH_I2C_Read... [04:47:47]Read from MH i2c: 01 07 00 4E 49 00 00 00 00 00 6D 0C 17 [04:47:47]RasterBufferAndPrint [04:47:47]line [04:47:47]line [04:47:47]line [04:47:47]line [04:47:47]line [04:47:47]written 0, free lines is 3184 [04:47:47]MH_Cut [04:47:47]Write to MH i2c: D1 01 00 55 49 01 70 [04:47:47]Write i2c OK [04:47:47]MH_I2C_Read... [04:47:47]Read from MH i2c: D1 [04:47:47]MH_I2C_Read... [04:47:47]Read from MH i2c: D1 01 00 [04:47:47]MH_I2C_Read... [04:47:47]Read from MH i2c: D1 01 00 55 49 00 6F [04:47:47]Write to MH i2c: 01 00 00 56 49 9F [04:47:47]Write i2c OK [04:47:47]MH_I2C_Read... [04:47:47]Connected sock=11 [04: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 30 0F 01 00 00 A4 F9 07 01 6C 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 F4 7C C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8B F9 03 00 35 04 06 00 C8 53 35 F0 36 81 6E D0 C0 34 56 48 7F 5B [04: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 30 4F 00 00 00 7C 09 47 00 7F 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 30 10 04 04 00 8B F9 03 00 F4 03 04 00 4A 26 C1 66 B6 04 01 00 00 76 E7 61 4D D4 39 47 44 [04:47:47]CommunicateWithHost err = 0 [04:47:47]CheckOFDResponse [04:47:47]1017 (14) - 77093643461234 [04:47:47]1041 (16) - 0000000000871820 [04:47:47]1040 (4) - 260491 [04:47:47]1012 (4) - 17.08.2024 22:38 [04:47:47]1206 (1) - 0 [04:47:47]OFD Sender: Remove packet 260491 [04:47:47]ProducePacketName [04:47:47]name=ofd_packets/00260491 [04:47:47]NVStorageDeleteData [04:47:48]OFD Sender: No OFD packet to send [04:47:48]*** Cut start [04:47:48]*** Purtial cut [04:47:48]*** Stage 1: CUTSNS_PIN = 1 [04:47:50]Read from MH i2c: 01 [04:47:50]MH_I2C_Read... [04:47:50]*** Stop cut motor [04:47:50]*** Cut end [04:47:50]Read from MH i2c: 01 07 00 [04:47:50]MH_I2C_Read... [04:47:50]Read from MH i2c: 01 07 00 56 49 00 00 00 00 00 FF 0F B4 [04:47:50]process_action close_receipt done [04:47:50]requested_data is exist [04:47:50]produce_requested_data [04:47:50]requested_item fm.sn is exist - process it [04:47:50]wFMCommunicate request_size=4 [04:47:50]MH_SAM_APDU [04:47:50]CAPDU: 80 11 00 00 [04:47:50]Write to MH i2c: E2 08 00 57 49 80 11 00 00 00 00 00 00 1A [04:47:50]Write i2c OK [04:47:50]MH_I2C_Read... [04:47:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:47:50]Read from MH i2c: E2 [04:47:50]MH_I2C_Read... [04:47:50]Read from MH i2c: E2 17 00 [04:47:50]MH_I2C_Read... [04:47:50]Read from MH i2c: E2 17 00 57 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 67 [04:47:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [04:47:50]wFMCommunicate OK [04:47:50]requested_item fd.num is exist - process it [04:47:50]SAM_PROTO_GetFieldsCounters [04:47:50]wFMCommunicate request_size=4 [04:47:50]MH_SAM_APDU [04:47:50]CAPDU: 80 13 00 00 [04:47:50]Write to MH i2c: E2 08 00 58 49 80 13 00 00 00 00 00 00 1D [04:47:50]Write i2c OK [04:47:50]MH_I2C_Read... [04:47:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:47:51]Read from MH i2c: E2 [04:47:51]MH_I2C_Read... [04:47:51]Read from MH i2c: E2 62 00 [04:47:51]MH_I2C_Read... [04:47:51]Read from MH i2c: E2 62 00 58 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 8B F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [04:47: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 8B F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:47:51]wFMCommunicate OK [04:47:51]SAM_PROTO_GetFieldsCounters done [04:47:51]requested_item shift.num is exist - process it [04:47:51]requested_item shift.opened is exist - process it [04:47:51]req_shift_opened [04:47:51]FM_GetShiftState [04:47:51]SAM_PROTO_GetShiftState [04:47:51]wFMCommunicate request_size=4 [04:47:51]MH_SAM_APDU [04:47:51]CAPDU: 80 13 01 00 [04:47:51]Write to MH i2c: E2 08 00 59 49 80 13 01 00 00 00 00 00 1F [04:47:51]Write i2c OK [04:47:51]MH_I2C_Read... [04:47:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:47:51]Read from MH i2c: E2 [04:47:51]MH_I2C_Read... [04:47:51]Read from MH i2c: E2 0E 00 [04:47:51]MH_I2C_Read... [04:47:51]Read from MH i2c: E2 0E 00 59 49 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 5C [04:47:51]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [04:47:51]wFMCommunicate OK [04:47:51]SAM_PROTO_GetShiftState done [04:47:51]FM_GetShiftState done [04:47:51]req_shift_opened done [04:47:51]requested_item shift.open_date is exist - process it [04:47:51]req_shift_open_date [04:47:51]req_shift_open_date done [04:47:51]produce_requested_data done [04:47:51]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260491,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [04:47:51]process_action_free close_receipt [04:47:51]json_value_free [04:47:51]json_value_free done [04:47:51]process_json_proto returns [04:47:51]Send response to host [04:47:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260491,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [04:47:51]free response buf [04:47:51]execute_script done [04:47:51]execute_script returns [04:47:51]free content buf [04:47:51]Sock 9.Close socket [04:47:51]Sock 9.Thread stoped [04:47:53]OFD Sender: No OFD packet to send [04:47:58]OFD Sender: No OFD packet to send [04:48:03]OFD Sender: No OFD packet to send [04:48:08]OFD Sender: No OFD packet to send [04:48:13]OFD Sender: No OFD packet to send [04:48:18]OFD Sender: No OFD packet to send [04:48:23]OFD Sender: No OFD packet to send [04:48:28]OFD Sender: No OFD packet to send [04:48:33]OFD Sender: No OFD packet to send [04:48:38]OFD Sender: No OFD packet to send [04:48:43]OFD Sender: No OFD packet to send [04:48:48]OFD Sender: No OFD packet to send [04:48:53]OFD Sender: No OFD packet to send [04:48:58]OFD Sender: No OFD packet to send [04:49:03]OFD Sender: No OFD packet to send [04:49:08]OFD Sender: No OFD packet to send [04:49:13]OFD Sender: No OFD packet to send [04:49:18]OFD Sender: No OFD packet to send [04:49:23]OFD Sender: No OFD packet to send [04:49:28]OFD Sender: No OFD packet to send [04:49:33]OFD Sender: No OFD packet to send [04:49:38]OFD Sender: No OFD packet to send [04:49:43]OFD Sender: No OFD packet to send [04:49:48]OFD Sender: No OFD packet to send [04:49:53]OFD Sender: No OFD packet to send [04:49:58]OFD Sender: No OFD packet to send [04:50:03]OFD Sender: No OFD packet to send [04:50:08]OFD Sender: No OFD packet to send [04:50:13]OFD Sender: No OFD packet to send [04:50:18]OFD Sender: No OFD packet to send [04:50:23]OFD Sender: No OFD packet to send [04:50:28]OFD Sender: No OFD packet to send [04:50:33]OFD Sender: No OFD packet to send [04:50:38]OFD Sender: No OFD packet to send [04:50:43]OFD Sender: No OFD packet to send [04:50:48]OFD Sender: No OFD packet to send [04:50:53]OFD Sender: No OFD packet to send [04:50:58]OFD Sender: No OFD packet to send [04:51:03]OFD Sender: No OFD packet to send [04:51:08]OFD Sender: No OFD packet to send [04:51:13]OFD Sender: No OFD packet to send [04:51:18]OFD Sender: No OFD packet to send [04:51:23]OFD Sender: No OFD packet to send [04:51:28]OFD Sender: No OFD packet to send [04:51:33]OFD Sender: No OFD packet to send [04:51:38]OFD Sender: No OFD packet to send [04:51:43]OFD Sender: No OFD packet to send [04:51:48]OFD Sender: No OFD packet to send [04:51:53]OFD Sender: No OFD packet to send [04:51:58]OFD Sender: No OFD packet to send [04:52:03]OFD Sender: No OFD packet to send [04:52:08]OFD Sender: No OFD packet to send [04:52:13]OFD Sender: No OFD packet to send [04:52:18]OFD Sender: No OFD packet to send [04:52:23]OFD Sender: No OFD packet to send [04:52:28]OFD Sender: No OFD packet to send [04:52:33]OFD Sender: No OFD packet to send [04:52:38]OFD Sender: No OFD packet to send [04:52:43]OFD Sender: No OFD packet to send [04:52:48]OFD Sender: No OFD packet to send [04:52:53]OFD Sender: No OFD packet to send [04:52:58]OFD Sender: No OFD packet to send [04:53:03]OFD Sender: No OFD packet to send [04:53:08]OFD Sender: No OFD packet to send [04:53:13]OFD Sender: No OFD packet to send [04:53:18]OFD Sender: No OFD packet to send [04:53:23]OFD Sender: No OFD packet to send [04:53:28]OFD Sender: No OFD packet to send [04:53:33]OFD Sender: No OFD packet to send [04:53:38]OFD Sender: No OFD packet to send [04:53:43]OFD Sender: No OFD packet to send [04:53:48]OFD Sender: No OFD packet to send [04:53:53]OFD Sender: No OFD packet to send [04:53:58]OFD Sender: No OFD packet to send [04:54:03]OFD Sender: No OFD packet to send [04:54:08]OFD Sender: No OFD packet to send [04:54:13]OFD Sender: No OFD packet to send [04:54:18]OFD Sender: No OFD packet to send [04:54:23]OFD Sender: No OFD packet to send [04:54:28]OFD Sender: No OFD packet to send [04:54:33]OFD Sender: No OFD packet to send [04:54:38]OFD Sender: No OFD packet to send [04:54:44]OFD Sender: No OFD packet to send [04:54:49]OFD Sender: No OFD packet to send [04:54:54]OFD Sender: No OFD packet to send [04:54:59]OFD Sender: No OFD packet to send [04:55:04]OFD Sender: No OFD packet to send [04:55:09]OFD Sender: No OFD packet to send [04:55:14]OFD Sender: No OFD packet to send [04:55:19]OFD Sender: No OFD packet to send [04:55:24]OFD Sender: No OFD packet to send [04:55:29]OFD Sender: No OFD packet to send [04:55:34]OFD Sender: No OFD packet to send [04:55:39]OFD Sender: No OFD packet to send [04:55:44]OFD Sender: No OFD packet to send [04:55:49]OFD Sender: No OFD packet to send [04:55:54]OFD Sender: No OFD packet to send [04:55:59]OFD Sender: No OFD packet to send [04:56:04]OFD Sender: No OFD packet to send [04:56:09]OFD Sender: No OFD packet to send [04:56:14]OFD Sender: No OFD packet to send [04:56:19]OFD Sender: No OFD packet to send [04:56:24]OFD Sender: No OFD packet to send [04:56:29]OFD Sender: No OFD packet to send [04:56:34]OFD Sender: No OFD packet to send [04:56:39]OFD Sender: No OFD packet to send [04:56:44]OFD Sender: No OFD packet to send [04:56:49]OFD Sender: No OFD packet to send [04:56:54]OFD Sender: No OFD packet to send [04:56:59]OFD Sender: No OFD packet to send [04:57:04]OFD Sender: No OFD packet to send [04:57:09]OFD Sender: No OFD packet to send [04:57:14]OFD Sender: No OFD packet to send [04:57:19]OFD Sender: No OFD packet to send [04:57:24]OFD Sender: No OFD packet to send [04:57:29]OFD Sender: No OFD packet to send [04:57:34]OFD Sender: No OFD packet to send [04:57:39]OFD Sender: No OFD packet to send [04:57:44]OFD Sender: No OFD packet to send [04:57:49]OFD Sender: No OFD packet to send [04:57:54]OFD Sender: No OFD packet to send [04:57:59]OFD Sender: No OFD packet to send [04:58:04]OFD Sender: No OFD packet to send [04:58:09]OFD Sender: No OFD packet to send [04:58:14]OFD Sender: No OFD packet to send [04:58:19]OFD Sender: No OFD packet to send [04:58:24]OFD Sender: No OFD packet to send [04:58:29]OFD Sender: No OFD packet to send [04:58:34]OFD Sender: No OFD packet to send [04:58:39]OFD Sender: No OFD packet to send [04:58:44]OFD Sender: No OFD packet to send [04:58:49]OFD Sender: No OFD packet to send [04:58:54]OFD Sender: No OFD packet to send [04:58:59]OFD Sender: No OFD packet to send [04:59:04]OFD Sender: No OFD packet to send [04:59:09]OFD Sender: No OFD packet to send [04:59:14]OFD Sender: No OFD packet to send [04:59:19]OFD Sender: No OFD packet to send [04:59:24]OFD Sender: No OFD packet to send [04:59:29]OFD Sender: No OFD packet to send [04:59:34]OFD Sender: No OFD packet to send [04:59:39]OFD Sender: No OFD packet to send [04:59:44]OFD Sender: No OFD packet to send [04:59:49]OFD Sender: No OFD packet to send [04:59:54]OFD Sender: No OFD packet to send [04:59:59]OFD Sender: No OFD packet to send [05:00:04]OFD Sender: No OFD packet to send [05:00:09]OFD Sender: No OFD packet to send [05:00:14]OFD Sender: No OFD packet to send [05:00:19]OFD Sender: No OFD packet to send [05:00:24]OFD Sender: No OFD packet to send [05:00:29]OFD Sender: No OFD packet to send [05:00:34]OFD Sender: No OFD packet to send [05:00:39]OFD Sender: No OFD packet to send [05:00:44]OFD Sender: No OFD packet to send [05:00:49]OFD Sender: No OFD packet to send [05:00:54]OFD Sender: No OFD packet to send [05:00:59]OFD Sender: No OFD packet to send [05:01:04]OFD Sender: No OFD packet to send [05:01:09]OFD Sender: No OFD packet to send [05:01:14]OFD Sender: No OFD packet to send [05:01:19]OFD Sender: No OFD packet to send [05:01:24]OFD Sender: No OFD packet to send [05:01:29]OFD Sender: No OFD packet to send [05:01:34]OFD Sender: No OFD packet to send [05:01:39]OFD Sender: No OFD packet to send [05:01:44]OFD Sender: No OFD packet to send [05:01:49]OFD Sender: No OFD packet to send [05:01:54]OFD Sender: No OFD packet to send [05:01:59]OFD Sender: No OFD packet to send [05:02:04]OFD Sender: No OFD packet to send [05:02:09]OFD Sender: No OFD packet to send [05:02:14]OFD Sender: No OFD packet to send [05:02:19]OFD Sender: No OFD packet to send [05:02:24]OFD Sender: No OFD packet to send [05:02:29]OFD Sender: No OFD packet to send [05:02:34]OFD Sender: No OFD packet to send [05:02:39]OFD Sender: No OFD packet to send [05:02:44]OFD Sender: No OFD packet to send [05:02:49]OFD Sender: No OFD packet to send [05:02:54]OFD Sender: No OFD packet to send [05:02:59]OFD Sender: No OFD packet to send [05:03:04]OFD Sender: No OFD packet to send [05:03:09]OFD Sender: No OFD packet to send [05:03:14]OFD Sender: No OFD packet to send [05:03:17]accept exits with 7 [05:03:17]New connection [05:03:17]New thread 3066473828 created [05:03:17]Thread 3066617188 joined [05:03:17]Waiting for new connection... [05:03:17] Sock 7.Parse request [05:03:17]Sock 7.Check first char [05:03:17]Sock 7.First char is OK [05:03:17]request: POST /json_proto HTTP/1.0 [05:03:17]Method: POST [05:03:17]URL: /json_proto [05:03:17]Method is POST - this is cgi request [05:03:17]url: /json_proto [05:03:17]query_string will be loaded in cgi processing [05:03:17]execute_cgi json_proto POST (null) [05:03:17]execute_cgi path=json_proto method=POST [05:03:17]POST find Content-Length [05:03:17]Host: 172.17.55.133:8080 [05:03:17]Content-Length: 683 [05:03:17]Content-Type: application/json [05:03:17] [05:03:17]POST finish read [05:03:17]Found Content-Length = 683 [05:03:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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" ] } } [05:03:17]execute_script... [05:03: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)1036035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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" ] } } [05:03:17]POST & json_proto [05:03:17]process_json_proto [05:03:17]json parsed OK: [05:03:17]protocol is kg_v1.0 [05:03:17]action value=close_receipt [05:03:17]process_action close_receipt [05:03:17]cmd_close_receipt [05:03:17]MH_GetDate [05:03:17]Write to MH i2c: F0 00 00 5A 49 92 [05:03:17]Write i2c OK [05:03:17]MH_I2C_Read... [05:03:17]Read from MH i2c: F0 [05:03:17]MH_I2C_Read... [05:03:17]Read from MH i2c: F0 09 00 [05:03:17]MH_I2C_Read... [05:03:17]Read from MH i2c: F0 09 00 5A 49 00 98 80 C1 66 34 48 D8 65 93 [05:03:17]GetLastDocTimeStamp 1723956468 [05:03:17]current date 1723957400 [05:03:17]FM_GetShiftState [05:03:17]SAM_PROTO_GetShiftState [05:03:17]wFMCommunicate request_size=4 [05:03:17]MH_SAM_APDU [05:03:17]CAPDU: 80 13 01 00 [05:03:17]Write to MH i2c: E2 08 00 5B 49 80 13 01 00 00 00 00 00 21 [05:03:17]Write i2c OK [05:03:17]MH_I2C_Read... [05:03:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:03:17]Read from MH i2c: E2 [05:03:17]MH_I2C_Read... [05:03:17]Read from MH i2c: E2 0E 00 [05:03:17]MH_I2C_Read... [05:03:17]Read from MH i2c: E2 0E 00 5B 49 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 5E [05:03:17]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [05:03:17]wFMCommunicate OK [05:03:17]SAM_PROTO_GetShiftState done [05:03:17]FM_GetShiftState done [05:03:17]opened in 1723940556 [05:03:17]opened+sec_in_day 1724026956 [05:03:17]quantity*price = 60045 [05:03:17]sum+1 = 60047 [05:03:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 50 18.08.2024 05:03 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260492 ФПД: 38258703585575 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T050320&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260492&fm=38258703585575&tin=02508201610067®Number=0000000000091865&sum=60000 [05:03:18]StoreToDocumentArchive [05:03:18]shift 449 fd 260492 [05:03:18]save to /storage/0449/doc_00260492 [05:03:18]save last doc name /storage/0449/doc_00260492 to /storage/kkm_last_doc_name [05:03:18]save OK [05:03:18]Clear old archive folders... [05:03:18]ProcessDocumentItem done err = 0, tmpTLVsize=252 [05:03:18]tlvbuf is 0038F500 [05:03:18]SAM_PROTO_ClearQueue [05:03:18]wFMCommunicate request_size=4 [05:03:18]MH_SAM_APDU [05:03:18]CAPDU: 80 09 00 00 [05:03:18]Write to MH i2c: E2 08 00 68 49 80 09 00 00 00 00 00 00 23 [05:03:18]Write i2c OK [05:03:18]MH_I2C_Read... [05:03:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:03:18]Read from MH i2c: E2 [05:03:18]MH_I2C_Read... [05:03:18]Read from MH i2c: E2 03 00 [05:03:18]MH_I2C_Read... [05:03:18]Read from MH i2c: E2 03 00 68 49 00 90 00 25 [05:03:18]RAPDU: 90 00 [05:03:18]wFMCommunicate OK [05:03:18]SAM_PROTO_ClearQueue done [05:03:18]KKMCreateOFDPacket [05:03:18]OFDProtocolAddRootSTLVToBuf [05:03:18]FM_MakeSignedData [05:03:18]FM_MakeSignedData [05:03:18]SAM_PROTO_SignData [05:03:18]wFMCommunicate request_size=4 [05:03:18]MH_SAM_APDU [05:03:18]CAPDU: 80 0D 01 02 [05:03:18]Write to MH i2c: E2 08 00 69 49 80 0D 01 02 00 00 00 00 2B [05:03:18]Write i2c OK [05:03:18]MH_I2C_Read... [05:03:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:03:18]Read from MH i2c: E2 [05:03:18]MH_I2C_Read... [05:03:18]Read from MH i2c: E2 03 00 [05:03:18]MH_I2C_Read... [05:03:18]Read from MH i2c: E2 03 00 69 49 00 90 00 26 [05:03:18]RAPDU: 90 00 [05:03:18]wFMCommunicate OK [05:03:18]wFMCommunicate request_size=255 [05:03:18]MH_SAM_APDU [05:03:18]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 98 80 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8C F9 03 00 35 04 06 00 [05:03:18]Write to MH i2c: E2 02 01 6A 49 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 98 80 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8C F9 03 00 35 04 06 00 00 00 11 [05:03:18]Write i2c OK [05:03:18]MH_I2C_Read... [05:03:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:03:19]Read from MH i2c: E2 [05:03:19]MH_I2C_Read... [05:03:19]Read from MH i2c: E2 03 00 [05:03:19]MH_I2C_Read... [05:03:19]Read from MH i2c: E2 03 00 6A 49 00 90 00 27 [05:03:19]RAPDU: 90 00 [05:03:19]wFMCommunicate OK [05:03:19]wFMCommunicate request_size=11 [05:03:19]MH_SAM_APDU [05:03:19]CAPDU: 80 0D 02 02 06 22 CB CC 6F D1 27 [05:03:19]Write to MH i2c: E2 0E 00 6B 49 80 0D 02 02 06 00 22 CB CC 6F D1 27 00 00 5A [05:03:19]Write i2c OK [05:03:19]MH_I2C_Read... [05:03:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:03:19]Read from MH i2c: E2 [05:03:19]MH_I2C_Read... [05:03:19]Read from MH i2c: E2 03 00 [05:03:19]MH_I2C_Read... [05:03:19]Read from MH i2c: E2 03 00 6B 49 00 90 00 28 [05:03:19]RAPDU: 90 00 [05:03:19]wFMCommunicate OK [05:03:19]wFMCommunicate request_size=4 [05:03:19]MH_SAM_APDU [05:03:19]CAPDU: 80 0D 03 02 [05:03:19]Write to MH i2c: E2 08 00 6C 49 80 0D 03 02 00 00 00 00 30 [05:03:19]Write i2c OK [05:03:19]MH_I2C_Read... [05:03:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:03:19]Read from MH i2c: E2 [05:03:19]MH_I2C_Read... [05:03:19]Read from MH i2c: E2 0B 00 [05:03:19]MH_I2C_Read... [05:03:19]Read from MH i2c: E2 0B 00 6C 49 00 99 F4 10 B5 F2 12 3E 5D 90 00 22 [05:03:19]RAPDU: 99 F4 10 B5 F2 12 3E 5D 90 00 [05:03:19]wFMCommunicate OK [05:03:19]SAM_PROTO_SignData done [05:03:19]FM_MakeSignedData done [05:03:19]CreateOFDProtocolMessage [05:03:19]wFMCommunicate request_size=4 [05:03:19]MH_SAM_APDU [05:03:19]CAPDU: 80 11 00 00 [05:03:19]Write to MH i2c: E2 08 00 6D 49 80 11 00 00 00 00 00 00 30 [05:03:19]Write i2c OK [05:03:19]MH_I2C_Read... [05:03:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:03:19]Read from MH i2c: E2 [05:03:19]MH_I2C_Read... [05:03:19]Read from MH i2c: E2 17 00 [05:03:19]MH_I2C_Read... [05:03:19]Read from MH i2c: E2 17 00 6D 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 7D [05:03:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [05:03:19]wFMCommunicate OK [05:03:19]CreateOFDProtocolMessage done [05:03:19]OFDSenderStorePacket 260492 [05:03:19]StoreOFDPacket docnum=260492 [05:03:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 9E 45 08 01 1D F7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 98 80 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8C F9 03 00 35 04 06 00 22 CB CC 6F D1 27 99 F4 10 B5 F2 12 3E 5D [05:03:19]CheckFolder [05:03:19]dirname=/storage/ofd_packets [05:03:19]CheckFolder done [05:03:19]ProducePacketName [05:03:19]name=ofd_packets/00260492 [05:03:19]NVStorageSaveData ofd_packets/00260492 [05:03:19]File name is /storage/ofd_packets/00260492 [05:03:19]Write 302 bytes [05:03:19]NVStorageSaveData done [05:03:19]OFDSenderStorePacket done [05:03:19]KKMCreateOFDPacket done [05:03:19]NVStorageSaveData kkm_last_timestamp [05:03:19]File name is /storage/kkm_last_timestamp [05:03:19]Write 4 bytes [05:03:19]NVStorageSaveData done [05:03:19]ExternCall_PrintAddStr [05:03:19]wPrintStart [05:03:19]Write to MH i2c: 01 00 00 6E 49 B7 [05:03:19]Write i2c OK [05:03:19]MH_I2C_Read... [05:03:19]Read from MH i2c: 01 [05:03:19]MH_I2C_Read... [05:03:19]Read from MH i2c: 01 07 00 [05:03:19]MH_I2C_Read... [05:03:19]Read from MH i2c: 01 07 00 6E 49 00 00 00 00 00 FF 0F CC [05:03:19]RasterBufferAndPrint [05:03:19]line Счет N : (1)1036035 [05:03:19]line ИНН: 02508201610067 [05:03:19]line Контрольно-Кассовый Чек [05:03:19]line ПРОДАЖА [05:03:19]line ТРК (МРК, ГНК) : 33 [05:03:19]line Товар: 2710194210 [05:03:19]line ДТ(л)-К-4 [05:03:19]line 7.880 * 76.20 [05:03:19]line = 600.46 [05:03:19]line НДС 12% НСП 1% [05:03:19]line > о реализуемом товаре [05:03:19]line ОКРУГЛЕНИЕ: -0.46 [05:03:19]line ИТОГО: 600.00 [05:03:19]line Внесено: 600.00 [05:03:19]line СДАЧА: 0.00 [05:03:19]line НСП 1% : 5.31 [05:03:19]line НДС 12% : 63.77 [05:03:19]line Наличными: 600.00 [05:03:19]line Безнал.: 0.00 [05:03:19]line Место: АЗС № 94 "Партнер Нефть" [05:03:19]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [05:03:19]line СНО: Общий режим [05:03:19]line Чек 50 18.08.2024 05:03 [05:03:19]line Смена: 449 ФФД: 1.0 [05:03:19]line ЗНМ: 0300000099 [05:03:19]line РНМ: 0000000000091865 [05:03:19]line Версия ККМ: 001 [05:03:19]line ФМ: 0000000000871820 [05:03:19]line ФД: 260492 [05:03:19]line ФПД: 38258703585575 [05:03:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T050320&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260492&fm=38258703585575&tin=02508201610067®Number=0000000000091865&sum=60000 [05:03:19]OFD Sender: Processing packet 260492 [packets to send 192, broken 191] [05:03:19]ProducePacketName [05:03:19]name=ofd_packets/00260492 [05:03:19]OFD Sender: To server: pG, [05:03:19]CommunicateWithHost lk.salyk.kg:30040 [05:03:19]ConnectInit lk.salyk.kg [05:03:19]written 0, free lines is 4095 [05:03:19]Connected sock=10 [05:03: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 30 10 01 00 00 9E 45 08 01 1D F7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 98 80 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8C F9 03 00 35 04 06 00 22 CB CC 6F D1 27 99 F4 10 B5 F2 12 3E 5D [05:03: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 30 4F 00 00 00 94 3F 47 00 14 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 30 10 04 04 00 8C F9 03 00 F4 03 04 00 EE 29 C1 66 B6 04 01 00 00 9A FB 08 DD 51 45 9E B0 [05:03:19]CommunicateWithHost err = 0 [05:03:19]CheckOFDResponse [05:03:19]1017 (14) - 77093643461234 [05:03:19]1041 (16) - 0000000000871820 [05:03:19]1040 (4) - 260492 [05:03:19]1012 (4) - 17.08.2024 22:53 [05:03:19]1206 (1) - 0 [05:03:19]OFD Sender: Remove packet 260492 [05:03:19]ProducePacketName [05:03:19]name=ofd_packets/00260492 [05:03:19]NVStorageDeleteData [05:03:20]Write to MH i2c: 01 00 00 99 49 E2 [05:03:20]Write i2c OK [05:03:20]MH_I2C_Read... [05:03:20]Read from MH i2c: 01 [05:03:20]MH_I2C_Read... [05:03:20]Read from MH i2c: 01 07 00 [05:03:20]MH_I2C_Read... [05:03:20]Read from MH i2c: 01 07 00 99 49 00 00 00 00 00 6D 0C 62 [05:03:20]RasterBufferAndPrint [05:03:20]line [05:03:20]line [05:03:20]line [05:03:20]line [05:03:20]line [05:03:20]written 0, free lines is 3184 [05:03:20]MH_Cut [05:03:20]Write to MH i2c: D1 01 00 A0 49 01 BB [05:03:20]Write i2c OK [05:03:20]MH_I2C_Read... [05:03:20]Read from MH i2c: D1 [05:03:20]MH_I2C_Read... [05:03:20]Read from MH i2c: D1 01 00 [05:03:20]MH_I2C_Read... [05:03:20]Read from MH i2c: D1 01 00 A0 49 00 BA [05:03:20]Write to MH i2c: 01 00 00 A1 49 EA [05:03:20]Write i2c OK [05:03:20]MH_I2C_Read... [05:03:20]OFD Sender: No OFD packet to send [05:03:21]*** Cut start [05:03:21]*** Purtial cut [05:03:21]*** Stage 1: CUTSNS_PIN = 1 [05:03:23]Read from MH i2c: 01 [05:03:23]MH_I2C_Read... [05:03:23]*** Stop cut motor [05:03:23]*** Cut end [05:03:23]Read from MH i2c: 01 07 00 [05:03:23]MH_I2C_Read... [05:03:23]Read from MH i2c: 01 07 00 A1 49 00 00 00 00 00 FF 0F FF [05:03:23]process_action close_receipt done [05:03:23]requested_data is exist [05:03:23]produce_requested_data [05:03:23]requested_item fm.sn is exist - process it [05:03:23]wFMCommunicate request_size=4 [05:03:23]MH_SAM_APDU [05:03:23]CAPDU: 80 11 00 00 [05:03:23]Write to MH i2c: E2 08 00 A2 49 80 11 00 00 00 00 00 00 65 [05:03:23]Write i2c OK [05:03:23]MH_I2C_Read... [05:03:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:03:23]Read from MH i2c: E2 [05:03:23]MH_I2C_Read... [05:03:23]Read from MH i2c: E2 17 00 [05:03:23]MH_I2C_Read... [05:03:23]Read from MH i2c: E2 17 00 A2 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B2 [05:03:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [05:03:23]wFMCommunicate OK [05:03:23]requested_item fd.num is exist - process it [05:03:23]SAM_PROTO_GetFieldsCounters [05:03:23]wFMCommunicate request_size=4 [05:03:23]MH_SAM_APDU [05:03:23]CAPDU: 80 13 00 00 [05:03:23]Write to MH i2c: E2 08 00 A3 49 80 13 00 00 00 00 00 00 68 [05:03:23]Write i2c OK [05:03:23]MH_I2C_Read... [05:03:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:03:23]Read from MH i2c: E2 [05:03:23]MH_I2C_Read... [05:03:23]Read from MH i2c: E2 62 00 [05:03:23]MH_I2C_Read... [05:03:23]Read from MH i2c: E2 62 00 A3 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 8C F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [05:03: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 8C F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:03:23]wFMCommunicate OK [05:03:23]SAM_PROTO_GetFieldsCounters done [05:03:23]requested_item shift.num is exist - process it [05:03:23]requested_item shift.opened is exist - process it [05:03:23]req_shift_opened [05:03:23]FM_GetShiftState [05:03:23]SAM_PROTO_GetShiftState [05:03:23]wFMCommunicate request_size=4 [05:03:23]MH_SAM_APDU [05:03:23]CAPDU: 80 13 01 00 [05:03:23]Write to MH i2c: E2 08 00 A4 49 80 13 01 00 00 00 00 00 6A [05:03:23]Write i2c OK [05:03:23]MH_I2C_Read... [05:03:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:03:23]Read from MH i2c: E2 [05:03:23]MH_I2C_Read... [05:03:23]Read from MH i2c: E2 0E 00 [05:03:23]MH_I2C_Read... [05:03:23]Read from MH i2c: E2 0E 00 A4 49 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A7 [05:03:23]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [05:03:23]wFMCommunicate OK [05:03:23]SAM_PROTO_GetShiftState done [05:03:23]FM_GetShiftState done [05:03:23]req_shift_opened done [05:03:23]requested_item shift.open_date is exist - process it [05:03:23]req_shift_open_date [05:03:23]req_shift_open_date done [05:03:23]produce_requested_data done [05:03:23]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260492,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [05:03:23]process_action_free close_receipt [05:03:23]json_value_free [05:03:23]json_value_free done [05:03:23]process_json_proto returns [05:03:23]Send response to host [05:03:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260492,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [05:03:23]free response buf [05:03:23]execute_script done [05:03:23]execute_script returns [05:03:23]free content buf [05:03:23]Sock 7.Close socket [05:03:23]Sock 7.Thread stoped [05:03:25]OFD Sender: No OFD packet to send [05:03:30]OFD Sender: No OFD packet to send [05:03:35]OFD Sender: No OFD packet to send [05:03:40]OFD Sender: No OFD packet to send [05:03:45]OFD Sender: No OFD packet to send [05:03:50]OFD Sender: No OFD packet to send [05:03:55]OFD Sender: No OFD packet to send [05:04:00]OFD Sender: No OFD packet to send [05:04:05]OFD Sender: No OFD packet to send [05:04:10]OFD Sender: No OFD packet to send [05:04:15]OFD Sender: No OFD packet to send [05:04:20]OFD Sender: No OFD packet to send [05:04:25]OFD Sender: No OFD packet to send [05:04:30]OFD Sender: No OFD packet to send [05:04:35]OFD Sender: No OFD packet to send [05:04:40]OFD Sender: No OFD packet to send [05:04:45]OFD Sender: No OFD packet to send [05:04:50]OFD Sender: No OFD packet to send [05:04:55]OFD Sender: No OFD packet to send [05:05:00]OFD Sender: No OFD packet to send [05:05:05]OFD Sender: No OFD packet to send [05:05:10]OFD Sender: No OFD packet to send [05:05:15]OFD Sender: No OFD packet to send [05:05:20]OFD Sender: No OFD packet to send [05:05:25]OFD Sender: No OFD packet to send [05:05:30]OFD Sender: No OFD packet to send [05:05:35]OFD Sender: No OFD packet to send [05:05:40]OFD Sender: No OFD packet to send [05:05:45]OFD Sender: No OFD packet to send [05:05:50]OFD Sender: No OFD packet to send [05:05:55]OFD Sender: No OFD packet to send [05:06:00]OFD Sender: No OFD packet to send [05:06:05]OFD Sender: No OFD packet to send [05:06:10]OFD Sender: No OFD packet to send [05:06:15]OFD Sender: No OFD packet to send [05:06:20]OFD Sender: No OFD packet to send [05:06:25]OFD Sender: No OFD packet to send [05:06:30]OFD Sender: No OFD packet to send [05:06:35]OFD Sender: No OFD packet to send [05:06:40]OFD Sender: No OFD packet to send [05:06:45]OFD Sender: No OFD packet to send [05:06:50]OFD Sender: No OFD packet to send [05:06:55]OFD Sender: No OFD packet to send [05:07:00]OFD Sender: No OFD packet to send [05:07:05]OFD Sender: No OFD packet to send [05:07:10]OFD Sender: No OFD packet to send [05:07:15]OFD Sender: No OFD packet to send [05:07:20]OFD Sender: No OFD packet to send [05:07:25]OFD Sender: No OFD packet to send [05:07:30]OFD Sender: No OFD packet to send [05:07:35]OFD Sender: No OFD packet to send [05:07:40]OFD Sender: No OFD packet to send [05:07:45]OFD Sender: No OFD packet to send [05:07:50]OFD Sender: No OFD packet to send [05:07:55]OFD Sender: No OFD packet to send [05:08:00]OFD Sender: No OFD packet to send [05:08:05]OFD Sender: No OFD packet to send [05:08:10]OFD Sender: No OFD packet to send [05:08:15]OFD Sender: No OFD packet to send [05:08:20]OFD Sender: No OFD packet to send [05:08:25]OFD Sender: No OFD packet to send [05:08:30]OFD Sender: No OFD packet to send [05:08:35]OFD Sender: No OFD packet to send [05:08:40]OFD Sender: No OFD packet to send [05:08:45]OFD Sender: No OFD packet to send [05:08:50]OFD Sender: No OFD packet to send [05:08:55]OFD Sender: No OFD packet to send [05:09:00]OFD Sender: No OFD packet to send [05:09:05]OFD Sender: No OFD packet to send [05:09:10]OFD Sender: No OFD packet to send [05:09:16]OFD Sender: No OFD packet to send [05:09:21]OFD Sender: No OFD packet to send [05:09:26]OFD Sender: No OFD packet to send [05:09:31]OFD Sender: No OFD packet to send [05:09:36]OFD Sender: No OFD packet to send [05:09:41]OFD Sender: No OFD packet to send [05:09:46]OFD Sender: No OFD packet to send [05:09:51]OFD Sender: No OFD packet to send [05:09:56]OFD Sender: No OFD packet to send [05:10:01]OFD Sender: No OFD packet to send [05:10:06]OFD Sender: No OFD packet to send [05:10:11]OFD Sender: No OFD packet to send [05:10:16]OFD Sender: No OFD packet to send [05:10:21]OFD Sender: No OFD packet to send [05:10:26]OFD Sender: No OFD packet to send [05:10:31]OFD Sender: No OFD packet to send [05:10:36]OFD Sender: No OFD packet to send [05:10:41]OFD Sender: No OFD packet to send [05:10:46]OFD Sender: No OFD packet to send [05:10:51]OFD Sender: No OFD packet to send [05:10:56]OFD Sender: No OFD packet to send [05:11:01]OFD Sender: No OFD packet to send [05:11:06]OFD Sender: No OFD packet to send [05:11:11]OFD Sender: No OFD packet to send [05:11:16]OFD Sender: No OFD packet to send [05:11:21]OFD Sender: No OFD packet to send [05:11:26]OFD Sender: No OFD packet to send [05:11:31]OFD Sender: No OFD packet to send [05:11:36]OFD Sender: No OFD packet to send [05:11:41]OFD Sender: No OFD packet to send [05:11:46]OFD Sender: No OFD packet to send [05:11:51]OFD Sender: No OFD packet to send [05:11:56]OFD Sender: No OFD packet to send [05:12:01]OFD Sender: No OFD packet to send [05:12:06]OFD Sender: No OFD packet to send [05:12:11]OFD Sender: No OFD packet to send [05:12:16]OFD Sender: No OFD packet to send [05:12:21]OFD Sender: No OFD packet to send [05:12:26]OFD Sender: No OFD packet to send [05:12:31]OFD Sender: No OFD packet to send [05:12:36]OFD Sender: No OFD packet to send [05:12:41]OFD Sender: No OFD packet to send [05:12:46]OFD Sender: No OFD packet to send [05:12:51]OFD Sender: No OFD packet to send [05:12:56]OFD Sender: No OFD packet to send [05:13:01]OFD Sender: No OFD packet to send [05:13:06]OFD Sender: No OFD packet to send [05:13:11]OFD Sender: No OFD packet to send [05:13:16]OFD Sender: No OFD packet to send [05:13:21]OFD Sender: No OFD packet to send [05:13:26]OFD Sender: No OFD packet to send [05:13:31]OFD Sender: No OFD packet to send [05:13:36]OFD Sender: No OFD packet to send [05:13:41]OFD Sender: No OFD packet to send [05:13:46]OFD Sender: No OFD packet to send [05:13:51]OFD Sender: No OFD packet to send [05:13:56]OFD Sender: No OFD packet to send [05:14:01]OFD Sender: No OFD packet to send [05:14:06]OFD Sender: No OFD packet to send [05:14:11]OFD Sender: No OFD packet to send [05:14:16]OFD Sender: No OFD packet to send [05:14:21]OFD Sender: No OFD packet to send [05:14:26]OFD Sender: No OFD packet to send [05:14:31]OFD Sender: No OFD packet to send [05:14:36]OFD Sender: No OFD packet to send [05:14:41]OFD Sender: No OFD packet to send [05:14:46]OFD Sender: No OFD packet to send [05:14:51]OFD Sender: No OFD packet to send [05:14:56]OFD Sender: No OFD packet to send [05:15:01]OFD Sender: No OFD packet to send [05:15:06]OFD Sender: No OFD packet to send [05:15:11]OFD Sender: No OFD packet to send [05:15:16]OFD Sender: No OFD packet to send [05:15:21]OFD Sender: No OFD packet to send [05:15:26]OFD Sender: No OFD packet to send [05:15:31]OFD Sender: No OFD packet to send [05:15:36]OFD Sender: No OFD packet to send [05:15:41]OFD Sender: No OFD packet to send [05:15:46]OFD Sender: No OFD packet to send [05:15:51]OFD Sender: No OFD packet to send [05:15:56]OFD Sender: No OFD packet to send [05:16:01]OFD Sender: No OFD packet to send [05:16:06]OFD Sender: No OFD packet to send [05:16:11]OFD Sender: No OFD packet to send [05:16:16]OFD Sender: No OFD packet to send [05:16:21]OFD Sender: No OFD packet to send [05:16:26]OFD Sender: No OFD packet to send [05:16:31]OFD Sender: No OFD packet to send [05:16:36]OFD Sender: No OFD packet to send [05:16:41]OFD Sender: No OFD packet to send [05:16:46]OFD Sender: No OFD packet to send [05:16:51]OFD Sender: No OFD packet to send [05:16:56]OFD Sender: No OFD packet to send [05:17:01]OFD Sender: No OFD packet to send [05:17:06]OFD Sender: No OFD packet to send [05:17:11]OFD Sender: No OFD packet to send [05:17:16]OFD Sender: No OFD packet to send [05:17:21]OFD Sender: No OFD packet to send [05:17:26]OFD Sender: No OFD packet to send [05:17:31]OFD Sender: No OFD packet to send [05:17:36]OFD Sender: No OFD packet to send [05:17:41]OFD Sender: No OFD packet to send [05:17:46]OFD Sender: No OFD packet to send [05:17:51]OFD Sender: No OFD packet to send [05:17:56]OFD Sender: No OFD packet to send [05:18:01]OFD Sender: No OFD packet to send [05:18:06]OFD Sender: No OFD packet to send [05:18:11]OFD Sender: No OFD packet to send [05:18:16]OFD Sender: No OFD packet to send [05:18:21]OFD Sender: No OFD packet to send [05:18:26]OFD Sender: No OFD packet to send [05:18:31]OFD Sender: No OFD packet to send [05:18:36]OFD Sender: No OFD packet to send [05:18:41]OFD Sender: No OFD packet to send [05:18:46]OFD Sender: No OFD packet to send [05:18:51]OFD Sender: No OFD packet to send [05:18:56]OFD Sender: No OFD packet to send [05:19:01]OFD Sender: No OFD packet to send [05:19:06]OFD Sender: No OFD packet to send [05:19:11]OFD Sender: No OFD packet to send [05:19:16]OFD Sender: No OFD packet to send [05:19:21]OFD Sender: No OFD packet to send [05:19:26]OFD Sender: No OFD packet to send [05:19:31]OFD Sender: No OFD packet to send [05:19:36]OFD Sender: No OFD packet to send [05:19:41]OFD Sender: No OFD packet to send [05:19:46]OFD Sender: No OFD packet to send [05:19:51]OFD Sender: No OFD packet to send [05:19:56]OFD Sender: No OFD packet to send [05:20:01]OFD Sender: No OFD packet to send [05:20:06]OFD Sender: No OFD packet to send [05:20:11]OFD Sender: No OFD packet to send [05:20:16]OFD Sender: No OFD packet to send [05:20:21]OFD Sender: No OFD packet to send [05:20:26]OFD Sender: No OFD packet to send [05:20:31]OFD Sender: No OFD packet to send [05:20:36]OFD Sender: No OFD packet to send [05:20:41]OFD Sender: No OFD packet to send [05:20:46]OFD Sender: No OFD packet to send [05:20:51]OFD Sender: No OFD packet to send [05:20:56]OFD Sender: No OFD packet to send [05:21:01]OFD Sender: No OFD packet to send [05:21:07]OFD Sender: No OFD packet to send [05:21:12]OFD Sender: No OFD packet to send [05:21:17]OFD Sender: No OFD packet to send [05:21:22]OFD Sender: No OFD packet to send [05:21:27]OFD Sender: No OFD packet to send [05:21:32]OFD Sender: No OFD packet to send [05:21:37]OFD Sender: No OFD packet to send [05:21:42]OFD Sender: No OFD packet to send [05:21:47]OFD Sender: No OFD packet to send [05:21:52]OFD Sender: No OFD packet to send [05:21:57]OFD Sender: No OFD packet to send [05:22:02]OFD Sender: No OFD packet to send [05:22:07]OFD Sender: No OFD packet to send [05:22:12]OFD Sender: No OFD packet to send [05:22:17]OFD Sender: No OFD packet to send [05:22:22]OFD Sender: No OFD packet to send [05:22:27]OFD Sender: No OFD packet to send [05:22:32]OFD Sender: No OFD packet to send [05:22:37]OFD Sender: No OFD packet to send [05:22:42]OFD Sender: No OFD packet to send [05:22:47]OFD Sender: No OFD packet to send [05:22:52]OFD Sender: No OFD packet to send [05:22:57]OFD Sender: No OFD packet to send [05:23:02]OFD Sender: No OFD packet to send [05:23:07]OFD Sender: No OFD packet to send [05:23:12]OFD Sender: No OFD packet to send [05:23:17]OFD Sender: No OFD packet to send [05:23:22]OFD Sender: No OFD packet to send [05:23:27]OFD Sender: No OFD packet to send [05:23:32]OFD Sender: No OFD packet to send [05:23:37]OFD Sender: No OFD packet to send [05:23:42]OFD Sender: No OFD packet to send [05:23:47]OFD Sender: No OFD packet to send [05:23:52]OFD Sender: No OFD packet to send [05:23:57]OFD Sender: No OFD packet to send [05:24:02]OFD Sender: No OFD packet to send [05:24:07]OFD Sender: No OFD packet to send [05:24:12]OFD Sender: No OFD packet to send [05:24:17]OFD Sender: No OFD packet to send [05:24:22]OFD Sender: No OFD packet to send [05:24:27]OFD Sender: No OFD packet to send [05:24:32]OFD Sender: No OFD packet to send [05:24:37]OFD Sender: No OFD packet to send [05:24:42]OFD Sender: No OFD packet to send [05:24:47]OFD Sender: No OFD packet to send [05:24:52]OFD Sender: No OFD packet to send [05:24:57]OFD Sender: No OFD packet to send [05:25:02]OFD Sender: No OFD packet to send [05:25:07]OFD Sender: No OFD packet to send [05:25:12]OFD Sender: No OFD packet to send [05:25:17]OFD Sender: No OFD packet to send [05:25:22]OFD Sender: No OFD packet to send [05:25:27]OFD Sender: No OFD packet to send [05:25:32]OFD Sender: No OFD packet to send [05:25:37]OFD Sender: No OFD packet to send [05:25:42]OFD Sender: No OFD packet to send [05:25:47]OFD Sender: No OFD packet to send [05:25:52]OFD Sender: No OFD packet to send [05:25:57]OFD Sender: No OFD packet to send [05:26:02]OFD Sender: No OFD packet to send [05:26:07]OFD Sender: No OFD packet to send [05:26:12]OFD Sender: No OFD packet to send [05:26:17]OFD Sender: No OFD packet to send [05:26:22]OFD Sender: No OFD packet to send [05:26:27]OFD Sender: No OFD packet to send [05:26:32]OFD Sender: No OFD packet to send [05:26:37]OFD Sender: No OFD packet to send [05:26:42]OFD Sender: No OFD packet to send [05:26:47]OFD Sender: No OFD packet to send [05:26:52]OFD Sender: No OFD packet to send [05:26:57]OFD Sender: No OFD packet to send [05:27:02]OFD Sender: No OFD packet to send [05:27:07]OFD Sender: No OFD packet to send [05:27:12]OFD Sender: No OFD packet to send [05:27:17]OFD Sender: No OFD packet to send [05:27:22]OFD Sender: No OFD packet to send [05:27:27]OFD Sender: No OFD packet to send [05:27:32]OFD Sender: No OFD packet to send [05:27:37]OFD Sender: No OFD packet to send [05:27:42]OFD Sender: No OFD packet to send [05:27:47]OFD Sender: No OFD packet to send [05:27:52]OFD Sender: No OFD packet to send [05:27:57]OFD Sender: No OFD packet to send [05:28:02]OFD Sender: No OFD packet to send [05:28:07]OFD Sender: No OFD packet to send [05:28:12]OFD Sender: No OFD packet to send [05:28:17]OFD Sender: No OFD packet to send [05:28:22]OFD Sender: No OFD packet to send [05:28:27]OFD Sender: No OFD packet to send [05:28:32]OFD Sender: No OFD packet to send [05:28:37]OFD Sender: No OFD packet to send [05:28:42]OFD Sender: No OFD packet to send [05:28:47]OFD Sender: No OFD packet to send [05:28:52]OFD Sender: No OFD packet to send [05:28:57]OFD Sender: No OFD packet to send [05:29:02]OFD Sender: No OFD packet to send [05:29:07]OFD Sender: No OFD packet to send [05:29:12]OFD Sender: No OFD packet to send [05:29:17]OFD Sender: No OFD packet to send [05:29:22]OFD Sender: No OFD packet to send [05:29:27]OFD Sender: No OFD packet to send [05:29:32]OFD Sender: No OFD packet to send [05:29:37]OFD Sender: No OFD packet to send [05:29:42]OFD Sender: No OFD packet to send [05:29:47]OFD Sender: No OFD packet to send [05:29:52]OFD Sender: No OFD packet to send [05:29:57]OFD Sender: No OFD packet to send [05:30:02]OFD Sender: No OFD packet to send [05:30:07]OFD Sender: No OFD packet to send [05:30:12]OFD Sender: No OFD packet to send [05:30:17]OFD Sender: No OFD packet to send [05:30:22]OFD Sender: No OFD packet to send [05:30:27]OFD Sender: No OFD packet to send [05:30:32]OFD Sender: No OFD packet to send [05:30:37]OFD Sender: No OFD packet to send [05:30:42]OFD Sender: No OFD packet to send [05:30:47]OFD Sender: No OFD packet to send [05:30:52]OFD Sender: No OFD packet to send [05:30:57]OFD Sender: No OFD packet to send [05:31:02]OFD Sender: No OFD packet to send [05:31:07]OFD Sender: No OFD packet to send [05:31:12]OFD Sender: No OFD packet to send [05:31:17]OFD Sender: No OFD packet to send [05:31:22]OFD Sender: No OFD packet to send [05:31:27]OFD Sender: No OFD packet to send [05:31:32]OFD Sender: No OFD packet to send [05:31:37]OFD Sender: No OFD packet to send [05:31:42]OFD Sender: No OFD packet to send [05:31:47]OFD Sender: No OFD packet to send [05:31:52]OFD Sender: No OFD packet to send [05:31:57]OFD Sender: No OFD packet to send [05:32:02]OFD Sender: No OFD packet to send [05:32:07]OFD Sender: No OFD packet to send [05:32:12]OFD Sender: No OFD packet to send [05:32:17]OFD Sender: No OFD packet to send [05:32:22]OFD Sender: No OFD packet to send [05:32:27]OFD Sender: No OFD packet to send [05:32:32]OFD Sender: No OFD packet to send [05:32:37]OFD Sender: No OFD packet to send [05:32:42]OFD Sender: No OFD packet to send [05:32:47]OFD Sender: No OFD packet to send [05:32:52]OFD Sender: No OFD packet to send [05:32:58]OFD Sender: No OFD packet to send [05:33:03]OFD Sender: No OFD packet to send [05:33:08]OFD Sender: No OFD packet to send [05:33:13]OFD Sender: No OFD packet to send [05:33:18]OFD Sender: No OFD packet to send [05:33:23]OFD Sender: No OFD packet to send [05:33:28]OFD Sender: No OFD packet to send [05:33:33]OFD Sender: No OFD packet to send [05:33:38]OFD Sender: No OFD packet to send [05:33:43]OFD Sender: No OFD packet to send [05:33:48]OFD Sender: No OFD packet to send [05:33:53]OFD Sender: No OFD packet to send [05:33:58]OFD Sender: No OFD packet to send [05:34:03]OFD Sender: No OFD packet to send [05:34:08]OFD Sender: No OFD packet to send [05:34:13]OFD Sender: No OFD packet to send [05:34:18]OFD Sender: No OFD packet to send [05:34:23]OFD Sender: No OFD packet to send [05:34:28]OFD Sender: No OFD packet to send [05:34:33]OFD Sender: No OFD packet to send [05:34:38]OFD Sender: No OFD packet to send [05:34:43]OFD Sender: No OFD packet to send [05:34:48]OFD Sender: No OFD packet to send [05:34:53]OFD Sender: No OFD packet to send [05:34:58]OFD Sender: No OFD packet to send [05:35:03]OFD Sender: No OFD packet to send [05:35:08]OFD Sender: No OFD packet to send [05:35:13]OFD Sender: No OFD packet to send [05:35:18]OFD Sender: No OFD packet to send [05:35:23]OFD Sender: No OFD packet to send [05:35:28]OFD Sender: No OFD packet to send [05:35:33]OFD Sender: No OFD packet to send [05:35:38]OFD Sender: No OFD packet to send [05:35:43]OFD Sender: No OFD packet to send [05:35:48]OFD Sender: No OFD packet to send [05:35:53]OFD Sender: No OFD packet to send [05:35:58]OFD Sender: No OFD packet to send [05:36:03]OFD Sender: No OFD packet to send [05:36:08]OFD Sender: No OFD packet to send [05:36:13]OFD Sender: No OFD packet to send [05:36:18]OFD Sender: No OFD packet to send [05:36:23]OFD Sender: No OFD packet to send [05:36:28]OFD Sender: No OFD packet to send [05:36:33]OFD Sender: No OFD packet to send [05:36:38]OFD Sender: No OFD packet to send [05:36:43]OFD Sender: No OFD packet to send [05:36:48]OFD Sender: No OFD packet to send [05:36:53]OFD Sender: No OFD packet to send [05:36:58]OFD Sender: No OFD packet to send [05:37:03]OFD Sender: No OFD packet to send [05:37:08]OFD Sender: No OFD packet to send [05:37:13]OFD Sender: No OFD packet to send [05:37:18]OFD Sender: No OFD packet to send [05:37:23]OFD Sender: No OFD packet to send [05:37:28]OFD Sender: No OFD packet to send [05:37:33]OFD Sender: No OFD packet to send [05:37:38]OFD Sender: No OFD packet to send [05:37:43]OFD Sender: No OFD packet to send [05:37:48]OFD Sender: No OFD packet to send [05:37:53]OFD Sender: No OFD packet to send [05:37:58]OFD Sender: No OFD packet to send [05:38:03]OFD Sender: No OFD packet to send [05:38:08]OFD Sender: No OFD packet to send [05:38:13]OFD Sender: No OFD packet to send [05:38:18]OFD Sender: No OFD packet to send [05:38:23]OFD Sender: No OFD packet to send [05:38:28]OFD Sender: No OFD packet to send [05:38:33]OFD Sender: No OFD packet to send [05:38:38]OFD Sender: No OFD packet to send [05:38:43]OFD Sender: No OFD packet to send [05:38:48]OFD Sender: No OFD packet to send [05:38:53]OFD Sender: No OFD packet to send [05:38:58]OFD Sender: No OFD packet to send [05:39:03]OFD Sender: No OFD packet to send [05:39:08]OFD Sender: No OFD packet to send [05:39:13]OFD Sender: No OFD packet to send [05:39:18]OFD Sender: No OFD packet to send [05:39:23]OFD Sender: No OFD packet to send [05:39:28]OFD Sender: No OFD packet to send [05:39:33]OFD Sender: No OFD packet to send [05:39:38]OFD Sender: No OFD packet to send [05:39:43]OFD Sender: No OFD packet to send [05:39:48]OFD Sender: No OFD packet to send [05:39:53]OFD Sender: No OFD packet to send [05:39:58]OFD Sender: No OFD packet to send [05:40:03]OFD Sender: No OFD packet to send [05:40:08]OFD Sender: No OFD packet to send [05:40:13]OFD Sender: No OFD packet to send [05:40:18]OFD Sender: No OFD packet to send [05:40:23]OFD Sender: No OFD packet to send [05:40:28]OFD Sender: No OFD packet to send [05:40:33]OFD Sender: No OFD packet to send [05:40:38]OFD Sender: No OFD packet to send [05:40:43]OFD Sender: No OFD packet to send [05:40:48]OFD Sender: No OFD packet to send [05:40:53]OFD Sender: No OFD packet to send [05:40:58]OFD Sender: No OFD packet to send [05:41:03]OFD Sender: No OFD packet to send [05:41:08]OFD Sender: No OFD packet to send [05:41:13]OFD Sender: No OFD packet to send [05:41:18]OFD Sender: No OFD packet to send [05:41:23]OFD Sender: No OFD packet to send [05:41:28]OFD Sender: No OFD packet to send [05:41:33]OFD Sender: No OFD packet to send [05:41:38]OFD Sender: No OFD packet to send [05:41:43]OFD Sender: No OFD packet to send [05:41:48]OFD Sender: No OFD packet to send [05:41:53]OFD Sender: No OFD packet to send [05:41:58]OFD Sender: No OFD packet to send [05:42:03]OFD Sender: No OFD packet to send [05:42:08]OFD Sender: No OFD packet to send [05:42:13]OFD Sender: No OFD packet to send [05:42:18]OFD Sender: No OFD packet to send [05:42:23]OFD Sender: No OFD packet to send [05:42:28]OFD Sender: No OFD packet to send [05:42:33]OFD Sender: No OFD packet to send [05:42:38]OFD Sender: No OFD packet to send [05:42:43]OFD Sender: No OFD packet to send [05:42:48]OFD Sender: No OFD packet to send [05:42:53]OFD Sender: No OFD packet to send [05:42:58]OFD Sender: No OFD packet to send [05:43:03]OFD Sender: No OFD packet to send [05:43:08]OFD Sender: No OFD packet to send [05:43:13]OFD Sender: No OFD packet to send [05:43:18]OFD Sender: No OFD packet to send [05:43:23]OFD Sender: No OFD packet to send [05:43:28]OFD Sender: No OFD packet to send [05:43:33]OFD Sender: No OFD packet to send [05:43:38]OFD Sender: No OFD packet to send [05:43:43]OFD Sender: No OFD packet to send [05:43:48]OFD Sender: No OFD packet to send [05:43:53]OFD Sender: No OFD packet to send [05:43:58]OFD Sender: No OFD packet to send [05:44:03]OFD Sender: No OFD packet to send [05:44:08]OFD Sender: No OFD packet to send [05:44:13]OFD Sender: No OFD packet to send [05:44:18]OFD Sender: No OFD packet to send [05:44:23]OFD Sender: No OFD packet to send [05:44:28]OFD Sender: No OFD packet to send [05:44:33]OFD Sender: No OFD packet to send [05:44:38]OFD Sender: No OFD packet to send [05:44:43]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:49]OFD Sender: No OFD packet to send [05:46:54]OFD Sender: No OFD packet to send [05:46:59]OFD Sender: No OFD packet to send [05:47:04]OFD Sender: No OFD packet to send [05:47:09]OFD Sender: No OFD packet to send [05:47:14]OFD Sender: No OFD packet to send [05:47:19]OFD Sender: No OFD packet to send [05:47:24]OFD Sender: No OFD packet to send [05:47:29]OFD Sender: No OFD packet to send [05:47:34]OFD Sender: No OFD packet to send [05:47:39]OFD Sender: No OFD packet to send [05:47:44]OFD Sender: No OFD packet to send [05:47:49]OFD Sender: No OFD packet to send [05:47:54]OFD Sender: No OFD packet to send [05:47:59]OFD Sender: No OFD packet to send [05:48:04]OFD Sender: No OFD packet to send [05:48:08]accept exits with 9 [05:48:08]New connection [05:48:08]New thread 3066617188 created [05:48:08]Thread 3066473828 joined [05:48:08]Waiting for new connection... [05:48:08] Sock 9.Parse request [05:48:08]Sock 9.Check first char [05:48:08]Sock 9.First char is OK [05:48:08]request: POST /json_proto HTTP/1.0 [05:48:08]Method: POST [05:48:08]URL: /json_proto [05:48:08]Method is POST - this is cgi request [05:48:08]url: /json_proto [05:48:08]query_string will be loaded in cgi processing [05:48:08]execute_cgi json_proto POST (null) [05:48:08]execute_cgi path=json_proto method=POST [05:48:08]POST find Content-Length [05:48:08]Host: 172.17.55.133:8080 [05:48:08]Content-Length: 688 [05:48:08]Content-Type: application/json [05:48:08] [05:48:08]POST finish read [05:48:08]Found Content-Length = 688 [05:48:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 18.380, "sum" : 1400.56, "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" ] } } [05:48:08]execute_script... [05:48: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)1036036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 18.380, "sum" : 1400.56, "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" ] } } [05:48:08]POST & json_proto [05:48:08]process_json_proto [05:48:08]json parsed OK: [05:48:08]protocol is kg_v1.0 [05:48:08]action value=close_receipt [05:48:08]process_action close_receipt [05:48:08]cmd_close_receipt [05:48:08]MH_GetDate [05:48:08]Write to MH i2c: F0 00 00 A5 49 DD [05:48:08]Write i2c OK [05:48:08]MH_I2C_Read... [05:48:08]Read from MH i2c: F0 [05:48:08]MH_I2C_Read... [05:48:08]Read from MH i2c: F0 09 00 [05:48:08]MH_I2C_Read... [05:48:08]Read from MH i2c: F0 09 00 A5 49 00 1B 8B C1 66 34 48 D8 65 6C [05:48:08]GetLastDocTimeStamp 1723957400 [05:48:08]current date 1723960091 [05:48:08]FM_GetShiftState [05:48:08]SAM_PROTO_GetShiftState [05:48:08]wFMCommunicate request_size=4 [05:48:08]MH_SAM_APDU [05:48:08]CAPDU: 80 13 01 00 [05:48:08]Write to MH i2c: E2 08 00 A6 49 80 13 01 00 00 00 00 00 6C [05:48:08]Write i2c OK [05:48:08]MH_I2C_Read... [05:48:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:48:08]Read from MH i2c: E2 [05:48:08]MH_I2C_Read... [05:48:08]Read from MH i2c: E2 0E 00 [05:48:08]MH_I2C_Read... [05:48:08]Read from MH i2c: E2 0E 00 A6 49 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A9 [05:48:08]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [05:48:08]wFMCommunicate OK [05:48:08]SAM_PROTO_GetShiftState done [05:48:08]FM_GetShiftState done [05:48:08]opened in 1723940556 [05:48:08]opened+sec_in_day 1724026956 [05:48:08]quantity*price = 140055 [05:48:08]sum+1 = 140057 [05:48:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.73 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 51 18.08.2024 05:48 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260493 ФПД: 222512655831768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T054811&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260493&fm=222512655831768&tin=02508201610067®Number=0000000000091865&sum=140000 [05:48:09]StoreToDocumentArchive [05:48:09]shift 449 fd 260493 [05:48:09]save to /storage/0449/doc_00260493 [05:48:09]save last doc name /storage/0449/doc_00260493 to /storage/kkm_last_doc_name [05:48:09]save OK [05:48:09]Clear old archive folders... [05:48:09]ProcessDocumentItem done err = 0, tmpTLVsize=252 [05:48:09]tlvbuf is 003F5390 [05:48:09]SAM_PROTO_ClearQueue [05:48:09]wFMCommunicate request_size=4 [05:48:09]MH_SAM_APDU [05:48:09]CAPDU: 80 09 00 00 [05:48:09]Write to MH i2c: E2 08 00 B3 49 80 09 00 00 00 00 00 00 6E [05:48:09]Write i2c OK [05:48:09]MH_I2C_Read... [05:48:09]Read from MH i2c: E2 [05:48:09]MH_I2C_Read... [05:48:09]Read from MH i2c: E2 03 00 [05:48:09]MH_I2C_Read... [05:48:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:48:09]Read from MH i2c: E2 03 00 B3 49 00 90 00 70 [05:48:09]RAPDU: 90 00 [05:48:09]wFMCommunicate OK [05:48:09]SAM_PROTO_ClearQueue done [05:48:09]KKMCreateOFDPacket [05:48:09]OFDProtocolAddRootSTLVToBuf [05:48:09]FM_MakeSignedData [05:48:09]FM_MakeSignedData [05:48:09]SAM_PROTO_SignData [05:48:09]wFMCommunicate request_size=4 [05:48:09]MH_SAM_APDU [05:48:09]CAPDU: 80 0D 01 02 [05:48:09]Write to MH i2c: E2 08 00 B4 49 80 0D 01 02 00 00 00 00 76 [05:48:09]Write i2c OK [05:48:09]MH_I2C_Read... [05:48:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:48:09]Read from MH i2c: E2 [05:48:09]MH_I2C_Read... [05:48:09]Read from MH i2c: E2 03 00 [05:48:09]MH_I2C_Read... [05:48:09]Read from MH i2c: E2 03 00 B4 49 00 90 00 71 [05:48:09]RAPDU: 90 00 [05:48:09]wFMCommunicate OK [05:48:09]wFMCommunicate request_size=255 [05:48:09]MH_SAM_APDU [05:48:09]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 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 19 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 33 00 00 00 F4 03 04 00 1B 8B C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8D F9 03 00 35 04 06 00 [05:48:09]Write to MH i2c: E2 02 01 B5 49 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 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 19 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 33 00 00 00 F4 03 04 00 1B 8B C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8D F9 03 00 35 04 06 00 00 00 6A [05:48:09]Write i2c OK [05:48:09]MH_I2C_Read... [05:48:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:48:10]Read from MH i2c: E2 [05:48:10]MH_I2C_Read... [05:48:10]Read from MH i2c: E2 03 00 [05:48:10]MH_I2C_Read... [05:48:10]Read from MH i2c: E2 03 00 B5 49 00 90 00 72 [05:48:10]RAPDU: 90 00 [05:48:10]wFMCommunicate OK [05:48:10]wFMCommunicate request_size=11 [05:48:10]MH_SAM_APDU [05:48:10]CAPDU: 80 0D 02 02 06 CA 5F C3 CF 12 D8 [05:48:10]Write to MH i2c: E2 0E 00 B6 49 80 0D 02 02 06 00 CA 5F C3 CF 12 D8 00 00 2A [05:48:10]Write i2c OK [05:48:10]MH_I2C_Read... [05:48:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:48:10]Read from MH i2c: E2 [05:48:10]MH_I2C_Read... [05:48:10]Read from MH i2c: E2 03 00 [05:48:10]MH_I2C_Read... [05:48:10]Read from MH i2c: E2 03 00 B6 49 00 90 00 73 [05:48:10]RAPDU: 90 00 [05:48:10]wFMCommunicate OK [05:48:10]wFMCommunicate request_size=4 [05:48:10]MH_SAM_APDU [05:48:10]CAPDU: 80 0D 03 02 [05:48:10]Write to MH i2c: E2 08 00 B7 49 80 0D 03 02 00 00 00 00 7B [05:48:10]Write i2c OK [05:48:10]MH_I2C_Read... [05:48:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:48:10]Read from MH i2c: E2 [05:48:10]MH_I2C_Read... [05:48:10]Read from MH i2c: E2 0B 00 [05:48:10]MH_I2C_Read... [05:48:10]Read from MH i2c: E2 0B 00 B7 49 00 31 B9 D3 E7 24 F8 4C 63 90 00 EB [05:48:10]RAPDU: 31 B9 D3 E7 24 F8 4C 63 90 00 [05:48:10]wFMCommunicate OK [05:48:10]SAM_PROTO_SignData done [05:48:10]FM_MakeSignedData done [05:48:10]CreateOFDProtocolMessage [05:48:10]wFMCommunicate request_size=4 [05:48:10]MH_SAM_APDU [05:48:10]CAPDU: 80 11 00 00 [05:48:10]Write to MH i2c: E2 08 00 B8 49 80 11 00 00 00 00 00 00 7B [05:48:10]Write i2c OK [05:48:10]MH_I2C_Read... [05:48:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:48:10]Read from MH i2c: E2 [05:48:10]MH_I2C_Read... [05:48:10]Read from MH i2c: E2 17 00 [05:48:10]MH_I2C_Read... [05:48:10]Read from MH i2c: E2 17 00 B8 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C8 [05:48:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [05:48:10]wFMCommunicate OK [05:48:10]CreateOFDProtocolMessage done [05:48:10]OFDSenderStorePacket 260493 [05:48:10]StoreOFDPacket docnum=260493 [05:48:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 2A B9 08 01 C6 D1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 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 19 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 33 00 00 00 F4 03 04 00 1B 8B C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8D F9 03 00 35 04 06 00 CA 5F C3 CF 12 D8 31 B9 D3 E7 24 F8 4C 63 [05:48:10]CheckFolder [05:48:10]dirname=/storage/ofd_packets [05:48:10]CheckFolder done [05:48:10]ProducePacketName [05:48:10]name=ofd_packets/00260493 [05:48:10]NVStorageSaveData ofd_packets/00260493 [05:48:10]File name is /storage/ofd_packets/00260493 [05:48:10]Write 302 bytes [05:48:10]NVStorageSaveData done [05:48:10]OFDSenderStorePacket done [05:48:10]KKMCreateOFDPacket done [05:48:10]NVStorageSaveData kkm_last_timestamp [05:48:10]File name is /storage/kkm_last_timestamp [05:48:10]Write 4 bytes [05:48:10]NVStorageSaveData done [05:48:10]ExternCall_PrintAddStr [05:48:10]wPrintStart [05:48:10]Write to MH i2c: 01 00 00 B9 49 02 [05:48:10]Write i2c OK [05:48:10]MH_I2C_Read... [05:48:10]Read from MH i2c: 01 [05:48:10]MH_I2C_Read... [05:48:10]Read from MH i2c: 01 07 00 [05:48:10]MH_I2C_Read... [05:48:10]Read from MH i2c: 01 07 00 B9 49 00 00 00 00 00 FF 0F 17 [05:48:10]RasterBufferAndPrint [05:48:10]line Счет N : (1)1036036 [05:48:10]line ИНН: 02508201610067 [05:48:10]line Контрольно-Кассовый Чек [05:48:10]line ПРОДАЖА [05:48:10]line ТРК (МРК, ГНК) : 43 [05:48:10]line Товар: 2710194210 [05:48:10]line ДТ(л)-К-4 [05:48:10]line 18.380 * 76.20 [05:48:10]line = 1400.56 [05:48:10]line НДС 12% НСП 1% [05:48:10]line > о реализуемом товаре [05:48:10]line ОКРУГЛЕНИЕ: -0.56 [05:48:10]line ИТОГО: 1400.00 [05:48:10]line Внесено: 1400.00 [05:48:10]line СДАЧА: 0.00 [05:48:10]line НСП 1% : 12.39 [05:48:10]line НДС 12% : 148.73 [05:48:10]line Наличными: 1400.00 [05:48:10]line Безнал.: 0.00 [05:48:10]line Место: АЗС № 94 "Партнер Нефть" [05:48:10]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [05:48:10]line СНО: Общий режим [05:48:10]line Чек 51 18.08.2024 05:48 [05:48:10]line Смена: 449 ФФД: 1.0 [05:48:10]line ЗНМ: 0300000099 [05:48:10]line РНМ: 0000000000091865 [05:48:10]line Версия ККМ: 001 [05:48:10]line ФМ: 0000000000871820 [05:48:10]line ФД: 260493 [05:48:10]line ФПД: 222512655831768 [05:48:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T054811&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260493&fm=222512655831768&tin=02508201610067®Number=0000000000091865&sum=140000 [05:48:10]OFD Sender: Processing packet 260493 [packets to send 192, broken 191] [05:48:10]ProducePacketName [05:48:10]name=ofd_packets/00260493 [05:48:10]OFD Sender: To server: pG, [05:48:10]CommunicateWithHost lk.salyk.kg:30040 [05:48:10]ConnectInit lk.salyk.kg [05:48:10]written 0, free lines is 4095 [05:48:10]Connected sock=10 [05:48: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 30 10 01 00 00 2A B9 08 01 C6 D1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 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 19 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 33 00 00 00 F4 03 04 00 1B 8B C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8D F9 03 00 35 04 06 00 CA 5F C3 CF 12 D8 31 B9 D3 E7 24 F8 4C 63 [05:48: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 30 4F 00 00 00 76 87 47 00 3A E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8D F9 03 00 F4 03 04 00 71 34 C1 66 B6 04 01 00 00 27 BC E5 1E 3D 8B 88 48 [05:48:10]CommunicateWithHost err = 0 [05:48:10]CheckOFDResponse [05:48:10]1017 (14) - 77093643461234 [05:48:10]1041 (16) - 0000000000871820 [05:48:10]1040 (4) - 260493 [05:48:10]1012 (4) - 17.08.2024 23:38 [05:48:10]1206 (1) - 0 [05:48:10]OFD Sender: Remove packet 260493 [05:48:10]ProducePacketName [05:48:10]name=ofd_packets/00260493 [05:48:10]NVStorageDeleteData [05:48:11]Write to MH i2c: 01 00 00 E4 49 2D [05:48:11]Write i2c OK [05:48:11]MH_I2C_Read... [05:48:11]Read from MH i2c: 01 [05:48:11]MH_I2C_Read... [05:48:11]Read from MH i2c: 01 07 00 [05:48:11]MH_I2C_Read... [05:48:11]Read from MH i2c: 01 07 00 E4 49 00 00 00 00 00 71 0C B1 [05:48:11]RasterBufferAndPrint [05:48:11]line [05:48:11]line [05:48:11]line [05:48:11]line [05:48:11]line [05:48:11]written 0, free lines is 3187 [05:48:11]MH_Cut [05:48:11]Write to MH i2c: D1 01 00 EB 49 01 06 [05:48:11]Write i2c OK [05:48:11]MH_I2C_Read... [05:48:11]Read from MH i2c: D1 [05:48:11]MH_I2C_Read... [05:48:11]Read from MH i2c: D1 01 00 [05:48:11]MH_I2C_Read... [05:48:11]Read from MH i2c: D1 01 00 EB 49 00 05 [05:48:11]Write to MH i2c: 01 00 00 EC 49 35 [05:48:11]Write i2c OK [05:48:11]MH_I2C_Read... [05:48:11]OFD Sender: No OFD packet to send [05:48:12]*** Cut start [05:48:12]*** Purtial cut [05:48:12]*** Stage 1: CUTSNS_PIN = 1 [05:48:14]Read from MH i2c: 01 [05:48:14]MH_I2C_Read... [05:48:14]*** Stop cut motor [05:48:14]*** Cut end [05:48:14]Read from MH i2c: 01 07 00 [05:48:14]MH_I2C_Read... [05:48:14]Read from MH i2c: 01 07 00 EC 49 00 00 00 00 00 FF 0F 4A [05:48:14]process_action close_receipt done [05:48:14]requested_data is exist [05:48:14]produce_requested_data [05:48:14]requested_item fm.sn is exist - process it [05:48:14]wFMCommunicate request_size=4 [05:48:14]MH_SAM_APDU [05:48:14]CAPDU: 80 11 00 00 [05:48:14]Write to MH i2c: E2 08 00 ED 49 80 11 00 00 00 00 00 00 B0 [05:48:14]Write i2c OK [05:48:14]MH_I2C_Read... [05:48:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:48:14]Read from MH i2c: E2 [05:48:14]MH_I2C_Read... [05:48:14]Read from MH i2c: E2 17 00 [05:48:14]MH_I2C_Read... [05:48:14]Read from MH i2c: E2 17 00 ED 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 FD [05:48:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [05:48:14]wFMCommunicate OK [05:48:14]requested_item fd.num is exist - process it [05:48:14]SAM_PROTO_GetFieldsCounters [05:48:14]wFMCommunicate request_size=4 [05:48:14]MH_SAM_APDU [05:48:14]CAPDU: 80 13 00 00 [05:48:14]Write to MH i2c: E2 08 00 EE 49 80 13 00 00 00 00 00 00 B3 [05:48:14]Write i2c OK [05:48:14]MH_I2C_Read... [05:48:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:48:14]Read from MH i2c: E2 [05:48:14]MH_I2C_Read... [05:48:14]Read from MH i2c: E2 62 00 [05:48:14]MH_I2C_Read... [05:48:14]Read from MH i2c: E2 62 00 EE 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 8D F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [05:48: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 8D F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:48:14]wFMCommunicate OK [05:48:14]SAM_PROTO_GetFieldsCounters done [05:48:14]requested_item shift.num is exist - process it [05:48:14]requested_item shift.opened is exist - process it [05:48:14]req_shift_opened [05:48:14]FM_GetShiftState [05:48:14]SAM_PROTO_GetShiftState [05:48:14]wFMCommunicate request_size=4 [05:48:14]MH_SAM_APDU [05:48:14]CAPDU: 80 13 01 00 [05:48:14]Write to MH i2c: E2 08 00 EF 49 80 13 01 00 00 00 00 00 B5 [05:48:14]Write i2c OK [05:48:14]MH_I2C_Read... [05:48:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:48:14]Read from MH i2c: E2 [05:48:14]MH_I2C_Read... [05:48:14]Read from MH i2c: E2 0E 00 [05:48:14]MH_I2C_Read... [05:48:14]Read from MH i2c: E2 0E 00 EF 49 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F2 [05:48:14]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [05:48:14]wFMCommunicate OK [05:48:14]SAM_PROTO_GetShiftState done [05:48:14]FM_GetShiftState done [05:48:14]req_shift_opened done [05:48:14]requested_item shift.open_date is exist - process it [05:48:14]req_shift_open_date [05:48:14]req_shift_open_date done [05:48:14]produce_requested_data done [05:48:14]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260493,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [05:48:14]process_action_free close_receipt [05:48:14]json_value_free [05:48:14]json_value_free done [05:48:14]process_json_proto returns [05:48:14]Send response to host [05:48:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260493,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [05:48:14]free response buf [05:48:14]execute_script done [05:48:14]execute_script returns [05:48:14]free content buf [05:48:14]Sock 9.Close socket [05:48:14]Sock 9.Thread stoped [05:48:16]OFD Sender: No OFD packet to send [05:48:21]OFD Sender: No OFD packet to send [05:48:26]OFD Sender: No OFD packet to send [05:48:31]OFD Sender: No OFD packet to send [05:48:36]OFD Sender: No OFD packet to send [05:48:41]OFD Sender: No OFD packet to send [05:48:46]OFD Sender: No OFD packet to send [05:48:51]OFD Sender: No OFD packet to send [05:48:56]OFD Sender: No OFD packet to send [05:49:01]OFD Sender: No OFD packet to send [05:49:06]OFD Sender: No OFD packet to send [05:49:11]OFD Sender: No OFD packet to send [05:49:16]OFD Sender: No OFD packet to send [05:49:21]OFD Sender: No OFD packet to send [05:49:26]OFD Sender: No OFD packet to send [05:49:31]OFD Sender: No OFD packet to send [05:49:36]OFD Sender: No OFD packet to send [05:49:41]OFD Sender: No OFD packet to send [05:49:46]OFD Sender: No OFD packet to send [05:49:51]OFD Sender: No OFD packet to send [05:49:56]OFD Sender: No OFD packet to send [05:50:01]OFD Sender: No OFD packet to send [05:50:06]OFD Sender: No OFD packet to send [05:50:11]OFD Sender: No OFD packet to send [05:50:16]OFD Sender: No OFD packet to send [05:50:21]OFD Sender: No OFD packet to send [05:50:26]OFD Sender: No OFD packet to send [05:50:31]OFD Sender: No OFD packet to send [05:50:36]OFD Sender: No OFD packet to send [05:50:41]OFD Sender: No OFD packet to send [05:50:46]OFD Sender: No OFD packet to send [05:50:51]OFD Sender: No OFD packet to send [05:50:56]OFD Sender: No OFD packet to send [05:51:01]OFD Sender: No OFD packet to send [05:51:06]OFD Sender: No OFD packet to send [05:51:11]OFD Sender: No OFD packet to send [05:51:16]OFD Sender: No OFD packet to send [05:51:21]OFD Sender: No OFD packet to send [05:51:26]OFD Sender: No OFD packet to send [05:51:31]OFD Sender: No OFD packet to send [05:51:36]OFD Sender: No OFD packet to send [05:51:41]OFD Sender: No OFD packet to send [05:51:46]OFD Sender: No OFD packet to send [05:51:51]OFD Sender: No OFD packet to send [05:51:56]OFD Sender: No OFD packet to send [05:52:01]OFD Sender: No OFD packet to send [05:52:06]OFD Sender: No OFD packet to send [05:52:11]OFD Sender: No OFD packet to send [05:52:16]OFD Sender: No OFD packet to send [05:52:21]OFD Sender: No OFD packet to send [05:52:22]accept exits with 7 [05:52:22]New connection [05:52:22]New thread 3066473828 created [05:52:22]Thread 3066617188 joined [05:52:22]Waiting for new connection... [05:52:22] Sock 7.Parse request [05:52:22]Sock 7.Check first char [05:52:22]Sock 7.First char is OK [05:52:22]request: POST /json_proto HTTP/1.0 [05:52:22]Method: POST [05:52:22]URL: /json_proto [05:52:22]Method is POST - this is cgi request [05:52:22]url: /json_proto [05:52:22]query_string will be loaded in cgi processing [05:52:22]execute_cgi json_proto POST (null) [05:52:22]execute_cgi path=json_proto method=POST [05:52:22]POST find Content-Length [05:52:22]Host: 172.17.55.133:8080 [05:52:22]Content-Length: 678 [05:52:22]Content-Type: application/json [05:52:22] [05:52:22]POST finish read [05:52:22]Found Content-Length = 678 [05:52:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [05:52:22]execute_script... [05:52: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)1036038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [05:52:22]POST & json_proto [05:52:22]process_json_proto [05:52:22]json parsed OK: [05:52:22]protocol is kg_v1.0 [05:52:22]action value=close_receipt [05:52:22]process_action close_receipt [05:52:22]cmd_close_receipt [05:52:22]MH_GetDate [05:52:22]Write to MH i2c: F0 00 00 F0 49 28 [05:52:22]Write i2c OK [05:52:22]MH_I2C_Read... [05:52:22]Read from MH i2c: F0 [05:52:22]MH_I2C_Read... [05:52:22]Read from MH i2c: F0 09 00 [05:52:22]MH_I2C_Read... [05:52:22]Read from MH i2c: F0 09 00 F0 49 00 19 8C C1 66 34 48 D8 65 B6 [05:52:22]GetLastDocTimeStamp 1723960091 [05:52:22]current date 1723960345 [05:52:22]FM_GetShiftState [05:52:22]SAM_PROTO_GetShiftState [05:52:22]wFMCommunicate request_size=4 [05:52:22]MH_SAM_APDU [05:52:22]CAPDU: 80 13 01 00 [05:52:22]Write to MH i2c: E2 08 00 F1 49 80 13 01 00 00 00 00 00 B7 [05:52:22]Write i2c OK [05:52:22]MH_I2C_Read... [05:52:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:52:22]Read from MH i2c: E2 [05:52:22]MH_I2C_Read... [05:52:22]Read from MH i2c: E2 0E 00 [05:52:22]MH_I2C_Read... [05:52:22]Read from MH i2c: E2 0E 00 F1 49 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F4 [05:52:22]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [05:52:22]wFMCommunicate OK [05:52:22]SAM_PROTO_GetShiftState done [05:52:22]FM_GetShiftState done [05:52:22]opened in 1723940556 [05:52:22]opened+sec_in_day 1724026956 [05:52:22]quantity*price = 40002 [05:52:22]sum+1 = 40003 [05:52:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 52 18.08.2024 05:52 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260494 ФПД: 102317907672660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T055225&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260494&fm=102317907672660&tin=02508201610067®Number=0000000000091865&sum=40000 [05:52:23]StoreToDocumentArchive [05:52:23]shift 449 fd 260494 [05:52:23]save to /storage/0449/doc_00260494 [05:52:23]save last doc name /storage/0449/doc_00260494 to /storage/kkm_last_doc_name [05:52:23]save OK [05:52:23]Clear old archive folders... [05:52:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:52:23]tlvbuf is 004F2FB0 [05:52:23]SAM_PROTO_ClearQueue [05:52:23]wFMCommunicate request_size=4 [05:52:23]MH_SAM_APDU [05:52:23]CAPDU: 80 09 00 00 [05:52:23]Write to MH i2c: E2 08 00 FE 49 80 09 00 00 00 00 00 00 B9 [05:52:23]Write i2c OK [05:52:23]MH_I2C_Read... [05:52:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:52:23]Read from MH i2c: E2 [05:52:23]MH_I2C_Read... [05:52:23]Read from MH i2c: E2 03 00 [05:52:23]MH_I2C_Read... [05:52:23]Read from MH i2c: E2 03 00 FE 49 00 90 00 BB [05:52:23]RAPDU: 90 00 [05:52:23]wFMCommunicate OK [05:52:23]SAM_PROTO_ClearQueue done [05:52:23]KKMCreateOFDPacket [05:52:23]OFDProtocolAddRootSTLVToBuf [05:52:23]FM_MakeSignedData [05:52:23]FM_MakeSignedData [05:52:23]SAM_PROTO_SignData [05:52:23]wFMCommunicate request_size=4 [05:52:23]MH_SAM_APDU [05:52:23]CAPDU: 80 0D 01 02 [05:52:23]Write to MH i2c: E2 08 00 FF 49 80 0D 01 02 00 00 00 00 C1 [05:52:23]Write i2c OK [05:52:23]MH_I2C_Read... [05:52:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:52:23]Read from MH i2c: E2 [05:52:23]MH_I2C_Read... [05:52:23]Read from MH i2c: E2 03 00 [05:52:23]MH_I2C_Read... [05:52:23]Read from MH i2c: E2 03 00 FF 49 00 90 00 BC [05:52:23]RAPDU: 90 00 [05:52:23]wFMCommunicate OK [05:52:23]wFMCommunicate request_size=255 [05:52:23]MH_SAM_APDU [05:52:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 19 8C C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8E F9 03 00 35 04 06 00 5D [05:52:23]Write to MH i2c: E2 02 01 00 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 19 8C C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8E F9 03 00 35 04 06 00 5D 00 00 CD [05:52:23]Write i2c OK [05:52:23]MH_I2C_Read... [05:52:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:52:24]Read from MH i2c: E2 [05:52:24]MH_I2C_Read... [05:52:24]Read from MH i2c: E2 03 00 [05:52:24]MH_I2C_Read... [05:52:24]Read from MH i2c: E2 03 00 00 4A 00 90 00 BE [05:52:24]RAPDU: 90 00 [05:52:24]wFMCommunicate OK [05:52:24]wFMCommunicate request_size=10 [05:52:24]MH_SAM_APDU [05:52:24]CAPDU: 80 0D 02 02 05 0E BE 8A 7E 54 [05:52:24]Write to MH i2c: E2 0D 00 01 4A 80 0D 02 02 05 00 0E BE 8A 7E 54 00 00 F7 [05:52:24]Write i2c OK [05:52:24]MH_I2C_Read... [05:52:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:52:24]Read from MH i2c: E2 [05:52:24]MH_I2C_Read... [05:52:24]Read from MH i2c: E2 03 00 [05:52:24]MH_I2C_Read... [05:52:24]Read from MH i2c: E2 03 00 01 4A 00 90 00 BF [05:52:24]RAPDU: 90 00 [05:52:24]wFMCommunicate OK [05:52:24]wFMCommunicate request_size=4 [05:52:24]MH_SAM_APDU [05:52:24]CAPDU: 80 0D 03 02 [05:52:24]Write to MH i2c: E2 08 00 02 4A 80 0D 03 02 00 00 00 00 C7 [05:52:24]Write i2c OK [05:52:24]MH_I2C_Read... [05:52:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:52:24]Read from MH i2c: E2 [05:52:24]MH_I2C_Read... [05:52:24]Read from MH i2c: E2 0B 00 [05:52:24]MH_I2C_Read... [05:52:24]Read from MH i2c: E2 0B 00 02 4A 00 8C 4E 09 45 10 99 92 23 90 00 4E [05:52:24]RAPDU: 8C 4E 09 45 10 99 92 23 90 00 [05:52:24]wFMCommunicate OK [05:52:24]SAM_PROTO_SignData done [05:52:24]FM_MakeSignedData done [05:52:24]CreateOFDProtocolMessage [05:52:24]wFMCommunicate request_size=4 [05:52:24]MH_SAM_APDU [05:52:24]CAPDU: 80 11 00 00 [05:52:24]Write to MH i2c: E2 08 00 03 4A 80 11 00 00 00 00 00 00 C7 [05:52:24]Write i2c OK [05:52:24]MH_I2C_Read... [05:52:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:52:24]Read from MH i2c: E2 [05:52:24]MH_I2C_Read... [05:52:24]Read from MH i2c: E2 17 00 [05:52:24]MH_I2C_Read... [05:52:24]Read from MH i2c: E2 17 00 03 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 14 [05:52:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [05:52:24]wFMCommunicate OK [05:52:24]CreateOFDProtocolMessage done [05:52:24]OFDSenderStorePacket 260494 [05:52:24]StoreOFDPacket docnum=260494 [05:52:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 15 7B 07 01 57 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 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 19 8C C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8E F9 03 00 35 04 06 00 5D 0E BE 8A 7E 54 8C 4E 09 45 10 99 92 23 [05:52:24]CheckFolder [05:52:24]dirname=/storage/ofd_packets [05:52:24]CheckFolder done [05:52:24]ProducePacketName [05:52:24]name=ofd_packets/00260494 [05:52:24]NVStorageSaveData ofd_packets/00260494 [05:52:24]File name is /storage/ofd_packets/00260494 [05:52:24]Write 301 bytes [05:52:24]NVStorageSaveData done [05:52:24]OFDSenderStorePacket done [05:52:24]KKMCreateOFDPacket done [05:52:24]NVStorageSaveData kkm_last_timestamp [05:52:24]File name is /storage/kkm_last_timestamp [05:52:24]Write 4 bytes [05:52:24]NVStorageSaveData done [05:52:24]ExternCall_PrintAddStr [05:52:24]wPrintStart [05:52:24]Write to MH i2c: 01 00 00 04 4A 4E [05:52:24]Write i2c OK [05:52:24]MH_I2C_Read... [05:52:24]Read from MH i2c: 01 [05:52:24]MH_I2C_Read... [05:52:24]Read from MH i2c: 01 07 00 [05:52:24]MH_I2C_Read... [05:52:24]Read from MH i2c: 01 07 00 04 4A 00 00 00 00 00 FF 0F 63 [05:52:24]RasterBufferAndPrint [05:52:24]line Счет N : (1)1036038 [05:52:24]line ИНН: 02508201610067 [05:52:24]line Контрольно-Кассовый Чек [05:52:24]line ПРОДАЖА [05:52:24]line ТРК (МРК, ГНК) : 42 [05:52:24]line Товар: 2710124130 [05:52:24]line Аи-92-К-5 [05:52:24]line 5.900 * 67.80 [05:52:24]line = 400.02 [05:52:24]line НДС 12% НСП 1% [05:52:24]line > о реализуемом товаре [05:52:24]line ОКРУГЛЕНИЕ: -0.02 [05:52:24]line ИТОГО: 400.00 [05:52:24]line Внесено: 400.00 [05:52:24]line СДАЧА: 0.00 [05:52:24]line НСП 1% : 3.54 [05:52:24]line НДС 12% : 42.48 [05:52:24]line Наличными: 400.00 [05:52:24]line Безнал.: 0.00 [05:52:24]line Место: АЗС № 94 "Партнер Нефть" [05:52:24]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [05:52:24]line СНО: Общий режим [05:52:24]line Чек 52 18.08.2024 05:52 [05:52:24]line Смена: 449 ФФД: 1.0 [05:52:24]line ЗНМ: 0300000099 [05:52:24]line РНМ: 0000000000091865 [05:52:24]line Версия ККМ: 001 [05:52:24]line ФМ: 0000000000871820 [05:52:24]line ФД: 260494 [05:52:24]line ФПД: 102317907672660 [05:52:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T055225&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260494&fm=102317907672660&tin=02508201610067®Number=0000000000091865&sum=40000 [05:52:24]written 0, free lines is 4095 [05:52:24]OFD Sender: Processing packet 260494 [packets to send 192, broken 191] [05:52:24]ProducePacketName [05:52:24]name=ofd_packets/00260494 [05:52:24]OFD Sender: To server: pG, [05:52:24]CommunicateWithHost lk.salyk.kg:30040 [05:52:24]ConnectInit lk.salyk.kg [05:52:24]Connected sock=10 [05:52: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 30 0F 01 00 00 15 7B 07 01 57 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 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 19 8C C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8E F9 03 00 35 04 06 00 5D 0E BE 8A 7E 54 8C 4E 09 45 10 99 92 23 [05:52: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 30 4F 00 00 00 E1 8C 47 00 6F 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 30 10 04 04 00 8E F9 03 00 F4 03 04 00 6F 35 C1 66 B6 04 01 00 00 9F E0 9D CE B8 4E DE 19 [05:52:24]CommunicateWithHost err = 0 [05:52:24]CheckOFDResponse [05:52:24]1017 (14) - 77093643461234 [05:52:24]1041 (16) - 0000000000871820 [05:52:24]1040 (4) - 260494 [05:52:24]1012 (4) - 17.08.2024 23:42 [05:52:24]1206 (1) - 0 [05:52:24]OFD Sender: Remove packet 260494 [05:52:24]ProducePacketName [05:52:24]name=ofd_packets/00260494 [05:52:24]NVStorageDeleteData [05:52:24]Write to MH i2c: 01 00 00 2F 4A 79 [05:52:24]Write i2c OK [05:52:24]MH_I2C_Read... [05:52:24]Read from MH i2c: 01 [05:52:24]MH_I2C_Read... [05:52:24]Read from MH i2c: 01 07 00 [05:52:24]MH_I2C_Read... [05:52:24]Read from MH i2c: 01 07 00 2F 4A 00 00 00 00 00 74 0C 00 [05:52:24]RasterBufferAndPrint [05:52:24]line [05:52:24]line [05:52:24]line [05:52:24]line [05:52:24]line [05:52:24]written 0, free lines is 3192 [05:52:24]MH_Cut [05:52:24]Write to MH i2c: D1 01 00 36 4A 01 52 [05:52:24]Write i2c OK [05:52:24]MH_I2C_Read... [05:52:24]Read from MH i2c: D1 [05:52:24]MH_I2C_Read... [05:52:24]Read from MH i2c: D1 01 00 [05:52:24]MH_I2C_Read... [05:52:24]Read from MH i2c: D1 01 00 36 4A 00 51 [05:52:24]Write to MH i2c: 01 00 00 37 4A 81 [05:52:24]Write i2c OK [05:52:24]MH_I2C_Read... [05:52:25]OFD Sender: No OFD packet to send [05:52:25]*** Cut start [05:52:25]*** Purtial cut [05:52:25]*** Stage 1: CUTSNS_PIN = 1 [05:52:27]Read from MH i2c: 01 [05:52:27]MH_I2C_Read... [05:52:27]*** Stop cut motor [05:52:27]*** Cut end [05:52:27]Read from MH i2c: 01 07 00 [05:52:27]MH_I2C_Read... [05:52:27]Read from MH i2c: 01 07 00 37 4A 00 00 00 00 00 FF 0F 96 [05:52:27]process_action close_receipt done [05:52:27]requested_data is exist [05:52:27]produce_requested_data [05:52:27]requested_item fm.sn is exist - process it [05:52:27]wFMCommunicate request_size=4 [05:52:27]MH_SAM_APDU [05:52:27]CAPDU: 80 11 00 00 [05:52:27]Write to MH i2c: E2 08 00 38 4A 80 11 00 00 00 00 00 00 FC [05:52:27]Write i2c OK [05:52:27]MH_I2C_Read... [05:52:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:52:27]Read from MH i2c: E2 [05:52:27]MH_I2C_Read... [05:52:27]Read from MH i2c: E2 17 00 [05:52:27]MH_I2C_Read... [05:52:27]Read from MH i2c: E2 17 00 38 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 49 [05:52:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [05:52:27]wFMCommunicate OK [05:52:27]requested_item fd.num is exist - process it [05:52:27]SAM_PROTO_GetFieldsCounters [05:52:27]wFMCommunicate request_size=4 [05:52:27]MH_SAM_APDU [05:52:27]CAPDU: 80 13 00 00 [05:52:27]Write to MH i2c: E2 08 00 39 4A 80 13 00 00 00 00 00 00 FF [05:52:27]Write i2c OK [05:52:27]MH_I2C_Read... [05:52:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:52:27]Read from MH i2c: E2 [05:52:27]MH_I2C_Read... [05:52:27]Read from MH i2c: E2 62 00 [05:52:27]MH_I2C_Read... [05:52:27]Read from MH i2c: E2 62 00 39 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 8E F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [05:52: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 8E F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:52:27]wFMCommunicate OK [05:52:27]SAM_PROTO_GetFieldsCounters done [05:52:27]requested_item shift.num is exist - process it [05:52:27]requested_item shift.opened is exist - process it [05:52:27]req_shift_opened [05:52:27]FM_GetShiftState [05:52:27]SAM_PROTO_GetShiftState [05:52:27]wFMCommunicate request_size=4 [05:52:27]MH_SAM_APDU [05:52:27]CAPDU: 80 13 01 00 [05:52:27]Write to MH i2c: E2 08 00 3A 4A 80 13 01 00 00 00 00 00 01 [05:52:27]Write i2c OK [05:52:27]MH_I2C_Read... [05:52:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:52:28]Read from MH i2c: E2 [05:52:28]MH_I2C_Read... [05:52:28]Read from MH i2c: E2 0E 00 [05:52:28]MH_I2C_Read... [05:52:28]Read from MH i2c: E2 0E 00 3A 4A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 3E [05:52:28]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [05:52:28]wFMCommunicate OK [05:52:28]SAM_PROTO_GetShiftState done [05:52:28]FM_GetShiftState done [05:52:28]req_shift_opened done [05:52:28]requested_item shift.open_date is exist - process it [05:52:28]req_shift_open_date [05:52:28]req_shift_open_date done [05:52:28]produce_requested_data done [05:52:28]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260494,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [05:52:28]process_action_free close_receipt [05:52:28]json_value_free [05:52:28]json_value_free done [05:52:28]process_json_proto returns [05:52:28]Send response to host [05:52:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260494,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [05:52:28]free response buf [05:52:28]execute_script done [05:52:28]execute_script returns [05:52:28]free content buf [05:52:28]Sock 7.Close socket [05:52:28]Sock 7.Thread stoped [05:52:30]OFD Sender: No OFD packet to send [05:52:30]accept exits with 9 [05:52:30]New connection [05:52:30]New thread 3066617188 created [05:52:30]Thread 3066473828 joined [05:52:30]Waiting for new connection... [05:52:30] Sock 9.Parse request [05:52:30]Sock 9.Check first char [05:52:30]Sock 9.First char is OK [05:52:30]request: POST /json_proto HTTP/1.0 [05:52:30]Method: POST [05:52:30]URL: /json_proto [05:52:30]Method is POST - this is cgi request [05:52:30]url: /json_proto [05:52:30]query_string will be loaded in cgi processing [05:52:30]execute_cgi json_proto POST (null) [05:52:30]execute_cgi path=json_proto method=POST [05:52:30]POST find Content-Length [05:52:30]Host: 172.17.55.133:8080 [05:52:30]Content-Length: 804 [05:52:30]Content-Type: application/json [05:52:30] [05:52:30]POST finish read [05:52:30]Found Content-Length = 804 [05:52:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036037", "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" : 74.20, "quantity" : 26.960, "sum" : 2000.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" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:52:30]execute_script... [05:52: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)1036037", "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" : 74.20, "quantity" : 26.960, "sum" : 2000.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" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:52:30]POST & json_proto [05:52:30]process_json_proto [05:52:30]json parsed OK: [05:52:30]protocol is kg_v1.0 [05:52:30]action value=close_receipt [05:52:30]process_action close_receipt [05:52:30]cmd_close_receipt [05:52:30]MH_GetDate [05:52:30]Write to MH i2c: F0 00 00 3B 4A 74 [05:52:30]Write i2c OK [05:52:30]MH_I2C_Read... [05:52:30]Read from MH i2c: F0 [05:52:30]MH_I2C_Read... [05:52:30]Read from MH i2c: F0 09 00 [05:52:30]MH_I2C_Read... [05:52:30]Read from MH i2c: F0 09 00 3B 4A 00 21 8C C1 66 34 48 D8 65 0A [05:52:30]GetLastDocTimeStamp 1723960345 [05:52:30]current date 1723960353 [05:52:30]FM_GetShiftState [05:52:30]SAM_PROTO_GetShiftState [05:52:30]wFMCommunicate request_size=4 [05:52:30]MH_SAM_APDU [05:52:30]CAPDU: 80 13 01 00 [05:52:30]Write to MH i2c: E2 08 00 3C 4A 80 13 01 00 00 00 00 00 03 [05:52:30]Write i2c OK [05:52:30]MH_I2C_Read... [05:52:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:52:30]Read from MH i2c: E2 [05:52:30]MH_I2C_Read... [05:52:30]Read from MH i2c: E2 0E 00 [05:52:30]MH_I2C_Read... [05:52:30]Read from MH i2c: E2 0E 00 3C 4A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 40 [05:52:30]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [05:52:30]wFMCommunicate OK [05:52:30]SAM_PROTO_GetShiftState done [05:52:30]FM_GetShiftState done [05:52:30]opened in 1723940556 [05:52:30]opened+sec_in_day 1724026956 [05:52:30]quantity*price = 200043 [05:52:30]sum+1 = 200044 [05:52:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 53 18.08.2024 05:52 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260495 ФПД: 10177740070133 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T055234&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260495&fm=10177740070133&tin=02508201610067®Number=0000000000091865&sum=200043 [05:52:32]StoreToDocumentArchive [05:52:32]shift 449 fd 260495 [05:52:32]save to /storage/0449/doc_00260495 [05:52:32]save last doc name /storage/0449/doc_00260495 to /storage/kkm_last_doc_name [05:52:32]save OK [05:52:32]Clear old archive folders... [05:52:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:52:32]tlvbuf is 0040E340 [05:52:32]SAM_PROTO_ClearQueue [05:52:32]wFMCommunicate request_size=4 [05:52:32]MH_SAM_APDU [05:52:32]CAPDU: 80 09 00 00 [05:52:32]Write to MH i2c: E2 08 00 49 4A 80 09 00 00 00 00 00 00 05 [05:52:32]Write i2c OK [05:52:32]MH_I2C_Read... [05:52:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:52:32]Read from MH i2c: E2 [05:52:32]MH_I2C_Read... [05:52:32]Read from MH i2c: E2 03 00 [05:52:32]MH_I2C_Read... [05:52:32]Read from MH i2c: E2 03 00 49 4A 00 90 00 07 [05:52:32]RAPDU: 90 00 [05:52:32]wFMCommunicate OK [05:52:32]SAM_PROTO_ClearQueue done [05:52:32]KKMCreateOFDPacket [05:52:32]OFDProtocolAddRootSTLVToBuf [05:52:32]FM_MakeSignedData [05:52:32]FM_MakeSignedData [05:52:32]SAM_PROTO_SignData [05:52:32]wFMCommunicate request_size=4 [05:52:32]MH_SAM_APDU [05:52:32]CAPDU: 80 0D 01 02 [05:52:32]Write to MH i2c: E2 08 00 4A 4A 80 0D 01 02 00 00 00 00 0D [05:52:32]Write i2c OK [05:52:32]MH_I2C_Read... [05:52:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:52:32]Read from MH i2c: E2 [05:52:32]MH_I2C_Read... [05:52:32]Read from MH i2c: E2 03 00 [05:52:32]MH_I2C_Read... [05:52:32]Read from MH i2c: E2 03 00 4A 4A 00 90 00 08 [05:52:32]RAPDU: 90 00 [05:52:32]wFMCommunicate OK [05:52:32]wFMCommunicate request_size=255 [05:52:32]MH_SAM_APDU [05:52: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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 22 8C C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8F F9 03 00 35 04 06 00 09 [05:52:32]Write to MH i2c: E2 02 01 4B 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 22 8C C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8F F9 03 00 35 04 06 00 09 00 00 F8 [05:52:32]Write i2c OK [05:52:32]MH_I2C_Read... [05:52:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:52:32]Read from MH i2c: E2 [05:52:32]MH_I2C_Read... [05:52:32]Read from MH i2c: E2 03 00 [05:52:32]MH_I2C_Read... [05:52:32]Read from MH i2c: E2 03 00 4B 4A 00 90 00 09 [05:52:32]RAPDU: 90 00 [05:52:32]wFMCommunicate OK [05:52:32]wFMCommunicate request_size=10 [05:52:32]MH_SAM_APDU [05:52:32]CAPDU: 80 0D 02 02 05 41 B0 94 DC F5 [05:52:32]Write to MH i2c: E2 0D 00 4C 4A 80 0D 02 02 05 00 41 B0 94 DC F5 00 00 70 [05:52:32]Write i2c OK [05:52:32]MH_I2C_Read... [05:52:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:52:32]Read from MH i2c: E2 [05:52:32]MH_I2C_Read... [05:52:32]Read from MH i2c: E2 03 00 [05:52:32]MH_I2C_Read... [05:52:32]Read from MH i2c: E2 03 00 4C 4A 00 90 00 0A [05:52:32]RAPDU: 90 00 [05:52:32]wFMCommunicate OK [05:52:32]wFMCommunicate request_size=4 [05:52:32]MH_SAM_APDU [05:52:32]CAPDU: 80 0D 03 02 [05:52:32]Write to MH i2c: E2 08 00 4D 4A 80 0D 03 02 00 00 00 00 12 [05:52:32]Write i2c OK [05:52:32]MH_I2C_Read... [05:52:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:52:32]Read from MH i2c: E2 [05:52:32]MH_I2C_Read... [05:52:32]Read from MH i2c: E2 0B 00 [05:52:32]MH_I2C_Read... [05:52:32]Read from MH i2c: E2 0B 00 4D 4A 00 C5 D0 11 44 41 C4 12 F5 90 00 09 [05:52:32]RAPDU: C5 D0 11 44 41 C4 12 F5 90 00 [05:52:32]wFMCommunicate OK [05:52:32]SAM_PROTO_SignData done [05:52:32]FM_MakeSignedData done [05:52:32]CreateOFDProtocolMessage [05:52:32]wFMCommunicate request_size=4 [05:52:32]MH_SAM_APDU [05:52:32]CAPDU: 80 11 00 00 [05:52:32]Write to MH i2c: E2 08 00 4E 4A 80 11 00 00 00 00 00 00 12 [05:52:32]Write i2c OK [05:52:32]MH_I2C_Read... [05:52:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:52:32]Read from MH i2c: E2 [05:52:32]MH_I2C_Read... [05:52:32]Read from MH i2c: E2 17 00 [05:52:32]MH_I2C_Read... [05:52:32]Read from MH i2c: E2 17 00 4E 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 5F [05:52:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [05:52:32]wFMCommunicate OK [05:52:32]CreateOFDProtocolMessage done [05:52:32]OFDSenderStorePacket 260495 [05:52:32]StoreOFDPacket docnum=260495 [05:52:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 09 73 07 01 EA 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 22 8C C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8F F9 03 00 35 04 06 00 09 41 B0 94 DC F5 C5 D0 11 44 41 C4 12 F5 [05:52:32]CheckFolder [05:52:32]dirname=/storage/ofd_packets [05:52:32]CheckFolder done [05:52:32]ProducePacketName [05:52:32]name=ofd_packets/00260495 [05:52:32]NVStorageSaveData ofd_packets/00260495 [05:52:32]File name is /storage/ofd_packets/00260495 [05:52:32]Write 301 bytes [05:52:32]NVStorageSaveData done [05:52:32]OFDSenderStorePacket done [05:52:32]KKMCreateOFDPacket done [05:52:32]NVStorageSaveData kkm_last_timestamp [05:52:32]File name is /storage/kkm_last_timestamp [05:52:32]Write 4 bytes [05:52:32]NVStorageSaveData done [05:52:32]ExternCall_PrintAddStr [05:52:32]wPrintStart [05:52:32]Write to MH i2c: 01 00 00 4F 4A 99 [05:52:32]Write i2c OK [05:52:32]MH_I2C_Read... [05:52:32]Read from MH i2c: 01 [05:52:32]MH_I2C_Read... [05:52:32]Read from MH i2c: 01 07 00 [05:52:32]MH_I2C_Read... [05:52:32]Read from MH i2c: 01 07 00 4F 4A 00 00 00 00 00 FF 0F AE [05:52:32]RasterBufferAndPrint [05:52:32]line Счет N : (1)1036037 [05:52:32]line ИНН: 02508201610067 [05:52:32]line Контрольно-Кассовый Чек [05:52:32]line ПРОДАЖА [05:52:32]line ТРК (МРК, ГНК) : 23 [05:52:32]line Товар: 2710124500 [05:52:32]line Аи-95-К-5 [05:52:32]line 26.960 * 74.20 [05:52:32]line = 2000.43 [05:52:32]line НДС 12% НСП 1% [05:52:32]line > о реализуемом товаре [05:52:32]line ИТОГО: 2000.43 [05:52:32]line НСП 1% : 17.70 [05:52:32]line НДС 12% : 212.43 [05:52:32]line Наличными: 0.00 [05:52:32]line Безнал.: 2000.43 [05:52:32]line Место: АЗС № 94 "Партнер Нефть" [05:52:32]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [05:52:32]line СНО: Общий режим [05:52:32]line Чек 53 18.08.2024 05:52 [05:52:32]line Смена: 449 ФФД: 1.0 [05:52:32]line ЗНМ: 0300000099 [05:52:32]line РНМ: 0000000000091865 [05:52:32]line Версия ККМ: 001 [05:52:32]line Платежная система: O! деньги [05:52:32]line ФМ: 0000000000871820 [05:52:32]line ФД: 260495 [05:52:32]line ФПД: 10177740070133 [05:52:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T055234&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260495&fm=10177740070133&tin=02508201610067®Number=0000000000091865&sum=200043 [05:52:32]OFD Sender: Processing packet 260495 [packets to send 192, broken 191] [05:52:32]ProducePacketName [05:52:32]name=ofd_packets/00260495 [05:52:32]OFD Sender: To server: pG, [05:52:32]CommunicateWithHost lk.salyk.kg:30040 [05:52:32]ConnectInit lk.salyk.kg [05:52:32]written 0, free lines is 4095 [05:52:32]Connected sock=11 [05:52: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 30 0F 01 00 00 09 73 07 01 EA 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 22 8C C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8F F9 03 00 35 04 06 00 09 41 B0 94 DC F5 C5 D0 11 44 41 C4 12 F5 [05:52: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 30 4F 00 00 00 E6 09 47 00 3E 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 30 10 04 04 00 8F F9 03 00 F4 03 04 00 77 35 C1 66 B6 04 01 00 00 18 08 FD C4 C7 4B 9B 3C [05:52:32]CommunicateWithHost err = 0 [05:52:32]CheckOFDResponse [05:52:32]1017 (14) - 77093643461234 [05:52:32]1041 (16) - 0000000000871820 [05:52:32]1040 (4) - 260495 [05:52:32]1012 (4) - 17.08.2024 23:42 [05:52:32]1206 (1) - 0 [05:52:32]OFD Sender: Remove packet 260495 [05:52:32]ProducePacketName [05:52:32]name=ofd_packets/00260495 [05:52:32]NVStorageDeleteData [05:52:33]Write to MH i2c: 01 00 00 79 4A C3 [05:52:33]Write i2c OK [05:52:33]MH_I2C_Read... [05:52:33]Read from MH i2c: 01 [05:52:33]MH_I2C_Read... [05:52:33]Read from MH i2c: 01 07 00 [05:52:33]MH_I2C_Read... [05:52:33]Read from MH i2c: 01 07 00 79 4A 00 00 00 00 00 92 0C 68 [05:52:33]RasterBufferAndPrint [05:52:33]line [05:52:33]line [05:52:33]line [05:52:33]line [05:52:33]line [05:52:33]written 0, free lines is 3223 [05:52:33]MH_Cut [05:52:33]Write to MH i2c: D1 01 00 80 4A 01 9C [05:52:33]Write i2c OK [05:52:33]MH_I2C_Read... [05:52:33]Read from MH i2c: D1 [05:52:33]MH_I2C_Read... [05:52:33]Read from MH i2c: D1 01 00 [05:52:33]MH_I2C_Read... [05:52:33]Read from MH i2c: D1 01 00 80 4A 00 9B [05:52:33]Write to MH i2c: 01 00 00 81 4A CB [05:52:33]Write i2c OK [05:52:33]MH_I2C_Read... [05:52:33]OFD Sender: No OFD packet to send [05:52:34]*** Cut start [05:52:34]*** Purtial cut [05:52:34]*** Stage 1: CUTSNS_PIN = 1 [05:52:36]Read from MH i2c: 01 [05:52:36]MH_I2C_Read... [05:52:36]*** Stop cut motor [05:52:36]*** Cut end [05:52:36]Read from MH i2c: 01 07 00 [05:52:36]MH_I2C_Read... [05:52:36]Read from MH i2c: 01 07 00 81 4A 00 00 00 00 00 FF 0F E0 [05:52:36]process_action close_receipt done [05:52:36]requested_data is exist [05:52:36]produce_requested_data [05:52:36]requested_item fm.sn is exist - process it [05:52:36]wFMCommunicate request_size=4 [05:52:36]MH_SAM_APDU [05:52:36]CAPDU: 80 11 00 00 [05:52:36]Write to MH i2c: E2 08 00 82 4A 80 11 00 00 00 00 00 00 46 [05:52:36]Write i2c OK [05:52:36]MH_I2C_Read... [05:52:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:52:36]Read from MH i2c: E2 [05:52:36]MH_I2C_Read... [05:52:36]Read from MH i2c: E2 17 00 [05:52:36]MH_I2C_Read... [05:52:36]Read from MH i2c: E2 17 00 82 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 93 [05:52:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [05:52:36]wFMCommunicate OK [05:52:36]requested_item fd.num is exist - process it [05:52:36]SAM_PROTO_GetFieldsCounters [05:52:36]wFMCommunicate request_size=4 [05:52:36]MH_SAM_APDU [05:52:36]CAPDU: 80 13 00 00 [05:52:36]Write to MH i2c: E2 08 00 83 4A 80 13 00 00 00 00 00 00 49 [05:52:36]Write i2c OK [05:52:36]MH_I2C_Read... [05:52:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:52:36]Read from MH i2c: E2 [05:52:36]MH_I2C_Read... [05:52:36]Read from MH i2c: E2 62 00 [05:52:36]MH_I2C_Read... [05:52:36]Read from MH i2c: E2 62 00 83 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 8F F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [05:52: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 8F F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:52:36]wFMCommunicate OK [05:52:36]SAM_PROTO_GetFieldsCounters done [05:52:36]requested_item shift.num is exist - process it [05:52:36]requested_item shift.opened is exist - process it [05:52:36]req_shift_opened [05:52:36]FM_GetShiftState [05:52:36]SAM_PROTO_GetShiftState [05:52:36]wFMCommunicate request_size=4 [05:52:36]MH_SAM_APDU [05:52:36]CAPDU: 80 13 01 00 [05:52:36]Write to MH i2c: E2 08 00 84 4A 80 13 01 00 00 00 00 00 4B [05:52:36]Write i2c OK [05:52:36]MH_I2C_Read... [05:52:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:52:36]Read from MH i2c: E2 [05:52:36]MH_I2C_Read... [05:52:36]Read from MH i2c: E2 0E 00 [05:52:36]MH_I2C_Read... [05:52:36]Read from MH i2c: E2 0E 00 84 4A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 88 [05:52:36]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [05:52:36]wFMCommunicate OK [05:52:36]SAM_PROTO_GetShiftState done [05:52:36]FM_GetShiftState done [05:52:36]req_shift_opened done [05:52:36]requested_item shift.open_date is exist - process it [05:52:36]req_shift_open_date [05:52:36]req_shift_open_date done [05:52:36]produce_requested_data done [05:52:36]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260495,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [05:52:36]process_action_free close_receipt [05:52:36]json_value_free [05:52:36]json_value_free done [05:52:36]process_json_proto returns [05:52:36]Send response to host [05:52:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260495,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [05:52:36]free response buf [05:52:36]execute_script done [05:52:36]execute_script returns [05:52:36]free content buf [05:52:36]Sock 9.Close socket [05:52:36]Sock 9.Thread stoped [05:52:38]OFD Sender: No OFD packet to send [05:52:43]OFD Sender: No OFD packet to send [05:52:48]OFD Sender: No OFD packet to send [05:52:53]OFD Sender: No OFD packet to send [05:52:58]OFD Sender: No OFD packet to send [05:53:03]OFD Sender: No OFD packet to send [05:53:08]OFD Sender: No OFD packet to send [05:53:13]OFD Sender: No OFD packet to send [05:53:18]OFD Sender: No OFD packet to send [05:53:23]OFD Sender: No OFD packet to send [05:53:28]OFD Sender: No OFD packet to send [05:53:33]OFD Sender: No OFD packet to send [05:53:38]OFD Sender: No OFD packet to send [05:53:43]OFD Sender: No OFD packet to send [05:53:48]OFD Sender: No OFD packet to send [05:53:53]OFD Sender: No OFD packet to send [05:53:58]OFD Sender: No OFD packet to send [05:54:03]OFD Sender: No OFD packet to send [05:54:08]OFD Sender: No OFD packet to send [05:54:13]OFD Sender: No OFD packet to send [05:54:18]OFD Sender: No OFD packet to send [05:54:23]OFD Sender: No OFD packet to send [05:54:28]OFD Sender: No OFD packet to send [05:54:33]OFD Sender: No OFD packet to send [05:54:38]OFD Sender: No OFD packet to send [05:54:43]OFD Sender: No OFD packet to send [05:54:48]OFD Sender: No OFD packet to send [05:54:53]OFD Sender: No OFD packet to send [05:54:58]OFD Sender: No OFD packet to send [05:55:03]OFD Sender: No OFD packet to send [05:55:08]OFD Sender: No OFD packet to send [05:55:13]OFD Sender: No OFD packet to send [05:55:18]OFD Sender: No OFD packet to send [05:55:23]OFD Sender: No OFD packet to send [05:55:28]OFD Sender: No OFD packet to send [05:55:33]OFD Sender: No OFD packet to send [05:55:38]OFD Sender: No OFD packet to send [05:55:43]OFD Sender: No OFD packet to send [05:55:48]OFD Sender: No OFD packet to send [05:55:53]OFD Sender: No OFD packet to send [05:55:58]OFD Sender: No OFD packet to send [05:56:03]OFD Sender: No OFD packet to send [05:56:08]OFD Sender: No OFD packet to send [05:56:13]OFD Sender: No OFD packet to send [05:56:18]OFD Sender: No OFD packet to send [05:56:23]OFD Sender: No OFD packet to send [05:56:28]OFD Sender: No OFD packet to send [05:56:33]OFD Sender: No OFD packet to send [05:56:38]OFD Sender: No OFD packet to send [05:56:43]OFD Sender: No OFD packet to send [05:56:48]OFD Sender: No OFD packet to send [05:56:53]OFD Sender: No OFD packet to send [05:56:58]OFD Sender: No OFD packet to send [05:57:03]OFD Sender: No OFD packet to send [05:57:08]OFD Sender: No OFD packet to send [05:57:13]OFD Sender: No OFD packet to send [05:57:18]OFD Sender: No OFD packet to send [05:57:23]OFD Sender: No OFD packet to send [05:57:28]OFD Sender: No OFD packet to send [05:57:33]OFD Sender: No OFD packet to send [05:57:38]OFD Sender: No OFD packet to send [05:57:43]OFD Sender: No OFD packet to send [05:57:48]OFD Sender: No OFD packet to send [05:57:53]OFD Sender: No OFD packet to send [05:57:58]OFD Sender: No OFD packet to send [05:58:03]OFD Sender: No OFD packet to send [05:58:08]OFD Sender: No OFD packet to send [05:58:13]OFD Sender: No OFD packet to send [05:58:18]OFD Sender: No OFD packet to send [05:58:23]OFD Sender: No OFD packet to send [05:58:29]OFD Sender: No OFD packet to send [05:58:34]OFD Sender: No OFD packet to send [05:58:37]accept exits with 7 [05:58:37]New connection [05:58:37]New thread 3066473828 created [05:58:37]Thread 3066617188 joined [05:58:37]Waiting for new connection... [05:58:37] Sock 7.Parse request [05:58:37]Sock 7.Check first char [05:58:37]Sock 7.First char is OK [05:58:37]request: POST /json_proto HTTP/1.0 [05:58:37]Method: POST [05:58:37]URL: /json_proto [05:58:37]Method is POST - this is cgi request [05:58:37]url: /json_proto [05:58:37]query_string will be loaded in cgi processing [05:58:37]execute_cgi json_proto POST (null) [05:58:37]execute_cgi path=json_proto method=POST [05:58:37]POST find Content-Length [05:58:37]Host: 172.17.55.133:8080 [05:58:37]Content-Length: 804 [05:58:37]Content-Type: application/json [05:58:37] [05:58:37]POST finish read [05:58:37]Found Content-Length = 804 [05:58:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036039", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:58:37]execute_script... [05:58: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)1036039", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:58:37]POST & json_proto [05:58:37]process_json_proto [05:58:37]json parsed OK: [05:58:37]protocol is kg_v1.0 [05:58:37]action value=close_receipt [05:58:37]process_action close_receipt [05:58:37]cmd_close_receipt [05:58:37]MH_GetDate [05:58:37]Write to MH i2c: F0 00 00 85 4A BE [05:58:37]Write i2c OK [05:58:37]MH_I2C_Read... [05:58:37]Read from MH i2c: F0 [05:58:37]MH_I2C_Read... [05:58:37]Read from MH i2c: F0 09 00 [05:58:37]MH_I2C_Read... [05:58:37]Read from MH i2c: F0 09 00 85 4A 00 90 8D C1 66 34 48 D8 65 C4 [05:58:37]GetLastDocTimeStamp 1723960354 [05:58:37]current date 1723960720 [05:58:37]FM_GetShiftState [05:58:37]SAM_PROTO_GetShiftState [05:58:37]wFMCommunicate request_size=4 [05:58:37]MH_SAM_APDU [05:58:37]CAPDU: 80 13 01 00 [05:58:37]Write to MH i2c: E2 08 00 86 4A 80 13 01 00 00 00 00 00 4D [05:58:37]Write i2c OK [05:58:37]MH_I2C_Read... [05:58:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:58:37]Read from MH i2c: E2 [05:58:37]MH_I2C_Read... [05:58:37]Read from MH i2c: E2 0E 00 [05:58:37]MH_I2C_Read... [05:58:37]Read from MH i2c: E2 0E 00 86 4A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 8A [05:58:37]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [05:58:37]wFMCommunicate OK [05:58:37]SAM_PROTO_GetShiftState done [05:58:37]FM_GetShiftState done [05:58:37]opened in 1723940556 [05:58:37]opened+sec_in_day 1724026956 [05:58:37]quantity*price = 100021 [05:58:37]sum+1 = 100023 [05:58:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 54 18.08.2024 05:58 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260496 ФПД: 278064743397625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T055840&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260496&fm=278064743397625&tin=02508201610067®Number=0000000000091865&sum=100022 [05:58:38]StoreToDocumentArchive [05:58:38]shift 449 fd 260496 [05:58:38]save to /storage/0449/doc_00260496 [05:58:38]save last doc name /storage/0449/doc_00260496 to /storage/kkm_last_doc_name [05:58:38]save OK [05:58:38]Clear old archive folders... [05:58:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:58:38]tlvbuf is 004E51A0 [05:58:38]SAM_PROTO_ClearQueue [05:58:38]wFMCommunicate request_size=4 [05:58:38]MH_SAM_APDU [05:58:38]CAPDU: 80 09 00 00 [05:58:38]Write to MH i2c: E2 08 00 93 4A 80 09 00 00 00 00 00 00 4F [05:58:38]Write i2c OK [05:58:38]MH_I2C_Read... [05:58:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:58:38]Read from MH i2c: E2 [05:58:38]MH_I2C_Read... [05:58:38]Read from MH i2c: E2 03 00 [05:58:38]MH_I2C_Read... [05:58:38]Read from MH i2c: E2 03 00 93 4A 00 90 00 51 [05:58:38]RAPDU: 90 00 [05:58:38]wFMCommunicate OK [05:58:38]SAM_PROTO_ClearQueue done [05:58:38]KKMCreateOFDPacket [05:58:38]OFDProtocolAddRootSTLVToBuf [05:58:38]FM_MakeSignedData [05:58:38]FM_MakeSignedData [05:58:38]SAM_PROTO_SignData [05:58:38]wFMCommunicate request_size=4 [05:58:38]MH_SAM_APDU [05:58:38]CAPDU: 80 0D 01 02 [05:58:38]Write to MH i2c: E2 08 00 94 4A 80 0D 01 02 00 00 00 00 57 [05:58:38]Write i2c OK [05:58:38]MH_I2C_Read... [05:58:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:58:38]Read from MH i2c: E2 [05:58:38]MH_I2C_Read... [05:58:38]Read from MH i2c: E2 03 00 [05:58:38]MH_I2C_Read... [05:58:38]Read from MH i2c: E2 03 00 94 4A 00 90 00 52 [05:58:38]RAPDU: 90 00 [05:58:38]wFMCommunicate OK [05:58:38]wFMCommunicate request_size=255 [05:58:38]MH_SAM_APDU [05:58: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 90 8D C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 90 F9 03 00 35 04 06 00 FC [05:58:38]Write to MH i2c: E2 02 01 95 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 90 8D C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 90 F9 03 00 35 04 06 00 FC 00 00 F1 [05:58:38]Write i2c OK [05:58:38]MH_I2C_Read... [05:58:39]OFD Sender: No OFD packet to send [05:58:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:58:39]Read from MH i2c: E2 [05:58:39]MH_I2C_Read... [05:58:39]Read from MH i2c: E2 03 00 [05:58:39]MH_I2C_Read... [05:58:39]Read from MH i2c: E2 03 00 95 4A 00 90 00 53 [05:58:39]RAPDU: 90 00 [05:58:39]wFMCommunicate OK [05:58:39]wFMCommunicate request_size=10 [05:58:39]MH_SAM_APDU [05:58:39]CAPDU: 80 0D 02 02 05 E5 FE 41 38 F9 [05:58:39]Write to MH i2c: E2 0D 00 96 4A 80 0D 02 02 05 00 E5 FE 41 38 F9 00 00 B9 [05:58:39]Write i2c OK [05:58:39]MH_I2C_Read... [05:58:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:58:39]Read from MH i2c: E2 [05:58:39]MH_I2C_Read... [05:58:39]Read from MH i2c: E2 03 00 [05:58:39]MH_I2C_Read... [05:58:39]Read from MH i2c: E2 03 00 96 4A 00 90 00 54 [05:58:39]RAPDU: 90 00 [05:58:39]wFMCommunicate OK [05:58:39]wFMCommunicate request_size=4 [05:58:39]MH_SAM_APDU [05:58:39]CAPDU: 80 0D 03 02 [05:58:39]Write to MH i2c: E2 08 00 97 4A 80 0D 03 02 00 00 00 00 5C [05:58:39]Write i2c OK [05:58:39]MH_I2C_Read... [05:58:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:58:39]Read from MH i2c: E2 [05:58:39]MH_I2C_Read... [05:58:39]Read from MH i2c: E2 0B 00 [05:58:39]MH_I2C_Read... [05:58:39]Read from MH i2c: E2 0B 00 97 4A 00 7F 21 B5 84 10 40 5E 01 90 00 E5 [05:58:39]RAPDU: 7F 21 B5 84 10 40 5E 01 90 00 [05:58:39]wFMCommunicate OK [05:58:39]SAM_PROTO_SignData done [05:58:39]FM_MakeSignedData done [05:58:39]CreateOFDProtocolMessage [05:58:39]wFMCommunicate request_size=4 [05:58:39]MH_SAM_APDU [05:58:39]CAPDU: 80 11 00 00 [05:58:39]Write to MH i2c: E2 08 00 98 4A 80 11 00 00 00 00 00 00 5C [05:58:39]Write i2c OK [05:58:39]MH_I2C_Read... [05:58:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:58:39]Read from MH i2c: E2 [05:58:39]MH_I2C_Read... [05:58:39]Read from MH i2c: E2 17 00 [05:58:39]MH_I2C_Read... [05:58:39]Read from MH i2c: E2 17 00 98 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A9 [05:58:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [05:58:39]wFMCommunicate OK [05:58:39]CreateOFDProtocolMessage done [05:58:39]OFDSenderStorePacket 260496 [05:58:39]StoreOFDPacket docnum=260496 [05:58:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 13 27 07 01 C6 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 90 8D C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 90 F9 03 00 35 04 06 00 FC E5 FE 41 38 F9 7F 21 B5 84 10 40 5E 01 [05:58:39]CheckFolder [05:58:39]dirname=/storage/ofd_packets [05:58:39]CheckFolder done [05:58:39]ProducePacketName [05:58:39]name=ofd_packets/00260496 [05:58:39]NVStorageSaveData ofd_packets/00260496 [05:58:39]File name is /storage/ofd_packets/00260496 [05:58:39]Write 301 bytes [05:58:39]NVStorageSaveData done [05:58:39]OFDSenderStorePacket done [05:58:39]KKMCreateOFDPacket done [05:58:39]NVStorageSaveData kkm_last_timestamp [05:58:39]File name is /storage/kkm_last_timestamp [05:58:39]Write 4 bytes [05:58:39]NVStorageSaveData done [05:58:39]ExternCall_PrintAddStr [05:58:39]wPrintStart [05:58:39]Write to MH i2c: 01 00 00 99 4A E3 [05:58:39]Write i2c OK [05:58:39]MH_I2C_Read... [05:58:39]Read from MH i2c: 01 [05:58:39]MH_I2C_Read... [05:58:39]Read from MH i2c: 01 07 00 [05:58:39]MH_I2C_Read... [05:58:39]Read from MH i2c: 01 07 00 99 4A 00 00 00 00 00 FF 0F F8 [05:58:39]RasterBufferAndPrint [05:58:39]line Счет N : (1)1036039 [05:58:39]line ИНН: 02508201610067 [05:58:39]line Контрольно-Кассовый Чек [05:58:39]line ПРОДАЖА [05:58:39]line ТРК (МРК, ГНК) : 13 [05:58:39]line Товар: 2710124500 [05:58:39]line Аи-95-К-5 [05:58:39]line 13.480 * 74.20 [05:58:39]line = 1000.22 [05:58:39]line НДС 12% НСП 1% [05:58:39]line > о реализуемом товаре [05:58:39]line ИТОГО: 1000.22 [05:58:39]line НСП 1% : 8.85 [05:58:39]line НДС 12% : 106.22 [05:58:39]line Наличными: 0.00 [05:58:39]line Безнал.: 1000.22 [05:58:39]line Место: АЗС № 94 "Партнер Нефть" [05:58:39]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [05:58:39]line СНО: Общий режим [05:58:39]line Чек 54 18.08.2024 05:58 [05:58:39]line Смена: 449 ФФД: 1.0 [05:58:39]line ЗНМ: 0300000099 [05:58:39]line РНМ: 0000000000091865 [05:58:39]line Версия ККМ: 001 [05:58:39]line Платежная система: O! деньги [05:58:39]line ФМ: 0000000000871820 [05:58:39]line ФД: 260496 [05:58:39]line ФПД: 278064743397625 [05:58:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T055840&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260496&fm=278064743397625&tin=02508201610067®Number=0000000000091865&sum=100022 [05:58:39]OFD Sender: Processing packet 260496 [packets to send 192, broken 191] [05:58:39]ProducePacketName [05:58:39]name=ofd_packets/00260496 [05:58:39]OFD Sender: To server: pG, [05:58:39]CommunicateWithHost lk.salyk.kg:30040 [05:58:39]ConnectInit lk.salyk.kg [05:58:39]written 0, free lines is 4095 [05:58:39]Connected sock=10 [05:58: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 30 0F 01 00 00 13 27 07 01 C6 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 90 8D C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 90 F9 03 00 35 04 06 00 FC E5 FE 41 38 F9 7F 21 B5 84 10 40 5E 01 [05:58: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 30 4F 00 00 00 FA 49 47 00 8E 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 30 10 04 04 00 90 F9 03 00 F4 03 04 00 E6 36 C1 66 B6 04 01 00 00 09 38 20 E4 17 BF 2E 46 [05:58:39]CommunicateWithHost err = 0 [05:58:39]CheckOFDResponse [05:58:39]1017 (14) - 77093643461234 [05:58:39]1041 (16) - 0000000000871820 [05:58:39]1040 (4) - 260496 [05:58:39]1012 (4) - 17.08.2024 23:48 [05:58:39]1206 (1) - 0 [05:58:39]OFD Sender: Remove packet 260496 [05:58:39]ProducePacketName [05:58:39]name=ofd_packets/00260496 [05:58:39]NVStorageDeleteData [05:58:39]Write to MH i2c: 01 00 00 C3 4A 0D [05:58:39]Write i2c OK [05:58:39]MH_I2C_Read... [05:58:39]Read from MH i2c: 01 [05:58:39]MH_I2C_Read... [05:58:39]Read from MH i2c: 01 07 00 [05:58:39]MH_I2C_Read... [05:58:39]Read from MH i2c: 01 07 00 C3 4A 00 00 00 00 00 8F 0C AF [05:58:39]RasterBufferAndPrint [05:58:39]line [05:58:39]line [05:58:39]line [05:58:39]line [05:58:39]line [05:58:39]written 0, free lines is 3218 [05:58:39]MH_Cut [05:58:39]Write to MH i2c: D1 01 00 CA 4A 01 E6 [05:58:39]Write i2c OK [05:58:39]MH_I2C_Read... [05:58:39]Read from MH i2c: D1 [05:58:39]MH_I2C_Read... [05:58:39]Read from MH i2c: D1 01 00 [05:58:39]MH_I2C_Read... [05:58:39]Read from MH i2c: D1 01 00 CA 4A 00 E5 [05:58:39]Write to MH i2c: 01 00 00 CB 4A 15 [05:58:39]Write i2c OK [05:58:39]MH_I2C_Read... [05:58:40]OFD Sender: No OFD packet to send [05:58:41]*** Cut start [05:58:41]*** Purtial cut [05:58:41]*** Stage 1: CUTSNS_PIN = 1 [05:58:43]Read from MH i2c: 01 [05:58:43]MH_I2C_Read... [05:58:43]*** Stop cut motor [05:58:43]*** Cut end [05:58:43]Read from MH i2c: 01 07 00 [05:58:43]MH_I2C_Read... [05:58:43]Read from MH i2c: 01 07 00 CB 4A 00 00 00 00 00 FF 0F 2A [05:58:43]process_action close_receipt done [05:58:43]requested_data is exist [05:58:43]produce_requested_data [05:58:43]requested_item fm.sn is exist - process it [05:58:43]wFMCommunicate request_size=4 [05:58:43]MH_SAM_APDU [05:58:43]CAPDU: 80 11 00 00 [05:58:43]Write to MH i2c: E2 08 00 CC 4A 80 11 00 00 00 00 00 00 90 [05:58:43]Write i2c OK [05:58:43]MH_I2C_Read... [05:58:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:58:43]Read from MH i2c: E2 [05:58:43]MH_I2C_Read... [05:58:43]Read from MH i2c: E2 17 00 [05:58:43]MH_I2C_Read... [05:58:43]Read from MH i2c: E2 17 00 CC 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 DD [05:58:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [05:58:43]wFMCommunicate OK [05:58:43]requested_item fd.num is exist - process it [05:58:43]SAM_PROTO_GetFieldsCounters [05:58:43]wFMCommunicate request_size=4 [05:58:43]MH_SAM_APDU [05:58:43]CAPDU: 80 13 00 00 [05:58:43]Write to MH i2c: E2 08 00 CD 4A 80 13 00 00 00 00 00 00 93 [05:58:43]Write i2c OK [05:58:43]MH_I2C_Read... [05:58:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:58:43]Read from MH i2c: E2 [05:58:43]MH_I2C_Read... [05:58:43]Read from MH i2c: E2 62 00 [05:58:43]MH_I2C_Read... [05:58:43]Read from MH i2c: E2 62 00 CD 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 90 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [05:58: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 90 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:58:43]wFMCommunicate OK [05:58:43]SAM_PROTO_GetFieldsCounters done [05:58:43]requested_item shift.num is exist - process it [05:58:43]requested_item shift.opened is exist - process it [05:58:43]req_shift_opened [05:58:43]FM_GetShiftState [05:58:43]SAM_PROTO_GetShiftState [05:58:43]wFMCommunicate request_size=4 [05:58:43]MH_SAM_APDU [05:58:43]CAPDU: 80 13 01 00 [05:58:43]Write to MH i2c: E2 08 00 CE 4A 80 13 01 00 00 00 00 00 95 [05:58:43]Write i2c OK [05:58:43]MH_I2C_Read... [05:58:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:58:43]Read from MH i2c: E2 [05:58:43]MH_I2C_Read... [05:58:43]Read from MH i2c: E2 0E 00 [05:58:43]MH_I2C_Read... [05:58:43]Read from MH i2c: E2 0E 00 CE 4A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D2 [05:58:43]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [05:58:43]wFMCommunicate OK [05:58:43]SAM_PROTO_GetShiftState done [05:58:43]FM_GetShiftState done [05:58:43]req_shift_opened done [05:58:43]requested_item shift.open_date is exist - process it [05:58:43]req_shift_open_date [05:58:43]req_shift_open_date done [05:58:43]produce_requested_data done [05:58:43]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260496,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [05:58:43]process_action_free close_receipt [05:58:43]json_value_free [05:58:43]json_value_free done [05:58:43]process_json_proto returns [05:58:43]Send response to host [05:58:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260496,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [05:58:43]free response buf [05:58:43]execute_script done [05:58:43]execute_script returns [05:58:43]free content buf [05:58:43]Sock 7.Close socket [05:58:43]Sock 7.Thread stoped [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:31]accept exits with 9 [06:00:31]New connection [06:00:31]New thread 3066617188 created [06:00:31]Thread 3066473828 joined [06:00:31]Waiting for new connection... [06:00:31] Sock 9.Parse request [06:00:31]Sock 9.Check first char [06:00:31]Sock 9.First char is OK [06:00:31]request: POST /json_proto HTTP/1.0 [06:00:31]Method: POST [06:00:31]URL: /json_proto [06:00:31]Method is POST - this is cgi request [06:00:31]url: /json_proto [06:00:31]query_string will be loaded in cgi processing [06:00:31]execute_cgi json_proto POST (null) [06:00:31]execute_cgi path=json_proto method=POST [06:00:31]POST find Content-Length [06:00:31]Host: 172.17.55.133:8080 [06:00:31]Content-Length: 801 [06:00:31]Content-Type: application/json [06:00:31] [06:00:31]POST finish read [06:00:31]Found Content-Length = 801 [06:00:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:00:31]execute_script... [06:00:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:00:31]POST & json_proto [06:00:31]process_json_proto [06:00:31]json parsed OK: [06:00:31]protocol is kg_v1.0 [06:00:31]action value=close_receipt [06:00:31]process_action close_receipt [06:00:31]cmd_close_receipt [06:00:31]MH_GetDate [06:00:31]Write to MH i2c: F0 00 00 CF 4A 08 [06:00:31]Write i2c OK [06:00:31]MH_I2C_Read... [06:00:31]Read from MH i2c: F0 [06:00:31]MH_I2C_Read... [06:00:31]Read from MH i2c: F0 09 00 [06:00:31]MH_I2C_Read... [06:00:31]Read from MH i2c: F0 09 00 CF 4A 00 02 8E C1 66 34 48 D8 65 81 [06:00:31]GetLastDocTimeStamp 1723960720 [06:00:31]current date 1723960834 [06:00:31]FM_GetShiftState [06:00:31]SAM_PROTO_GetShiftState [06:00:31]wFMCommunicate request_size=4 [06:00:31]MH_SAM_APDU [06:00:31]CAPDU: 80 13 01 00 [06:00:31]Write to MH i2c: E2 08 00 D0 4A 80 13 01 00 00 00 00 00 97 [06:00:31]Write i2c OK [06:00:31]MH_I2C_Read... [06:00:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:00:31]Read from MH i2c: E2 [06:00:31]MH_I2C_Read... [06:00:31]Read from MH i2c: E2 0E 00 [06:00:31]MH_I2C_Read... [06:00:31]Read from MH i2c: E2 0E 00 D0 4A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D4 [06:00:31]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [06:00:31]wFMCommunicate OK [06:00:31]SAM_PROTO_GetShiftState done [06:00:31]FM_GetShiftState done [06:00:31]opened in 1723940556 [06:00:31]opened+sec_in_day 1724026956 [06:00:31]quantity*price = 50036 [06:00:31]sum+1 = 50037 [06:00:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 55 18.08.2024 06:00 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260497 ФПД: 136588651868640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T060034&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260497&fm=136588651868640&tin=02508201610067®Number=0000000000091865&sum=50036 [06:00:32]StoreToDocumentArchive [06:00:32]shift 449 fd 260497 [06:00:32]save to /storage/0449/doc_00260497 [06:00:32]save last doc name /storage/0449/doc_00260497 to /storage/kkm_last_doc_name [06:00:32]save OK [06:00:32]Clear old archive folders... [06:00:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:00:32]tlvbuf is 003A03A0 [06:00:32]SAM_PROTO_ClearQueue [06:00:32]wFMCommunicate request_size=4 [06:00:32]MH_SAM_APDU [06:00:32]CAPDU: 80 09 00 00 [06:00:32]Write to MH i2c: E2 08 00 DD 4A 80 09 00 00 00 00 00 00 99 [06:00:32]Write i2c OK [06:00:32]MH_I2C_Read... [06:00:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:00:32]Read from MH i2c: E2 [06:00:32]MH_I2C_Read... [06:00:32]Read from MH i2c: E2 03 00 [06:00:32]MH_I2C_Read... [06:00:32]Read from MH i2c: E2 03 00 DD 4A 00 90 00 9B [06:00:32]RAPDU: 90 00 [06:00:32]wFMCommunicate OK [06:00:32]SAM_PROTO_ClearQueue done [06:00:32]KKMCreateOFDPacket [06:00:32]OFDProtocolAddRootSTLVToBuf [06:00:32]FM_MakeSignedData [06:00:32]FM_MakeSignedData [06:00:32]SAM_PROTO_SignData [06:00:32]wFMCommunicate request_size=4 [06:00:32]MH_SAM_APDU [06:00:32]CAPDU: 80 0D 01 02 [06:00:32]Write to MH i2c: E2 08 00 DE 4A 80 0D 01 02 00 00 00 00 A1 [06:00:32]Write i2c OK [06:00:32]MH_I2C_Read... [06:00:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:00:32]Read from MH i2c: E2 [06:00:32]MH_I2C_Read... [06:00:32]Read from MH i2c: E2 03 00 [06:00:32]MH_I2C_Read... [06:00:32]Read from MH i2c: E2 03 00 DE 4A 00 90 00 9C [06:00:32]RAPDU: 90 00 [06:00:32]wFMCommunicate OK [06:00:32]wFMCommunicate request_size=255 [06:00:32]MH_SAM_APDU [06: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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 02 8E C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 91 F9 03 00 35 04 06 00 7C [06:00:32]Write to MH i2c: E2 02 01 DF 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 02 8E C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 91 F9 03 00 35 04 06 00 7C 00 00 1F [06:00:32]Write i2c OK [06:00:32]MH_I2C_Read... [06:00:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:00:33]Read from MH i2c: E2 [06:00:33]MH_I2C_Read... [06:00:33]Read from MH i2c: E2 03 00 [06:00:33]MH_I2C_Read... [06:00:33]Read from MH i2c: E2 03 00 DF 4A 00 90 00 9D [06:00:33]RAPDU: 90 00 [06:00:33]wFMCommunicate OK [06:00:33]wFMCommunicate request_size=10 [06:00:33]MH_SAM_APDU [06:00:33]CAPDU: 80 0D 02 02 05 3A 06 13 31 E0 [06:00:33]Write to MH i2c: E2 0D 00 E0 4A 80 0D 02 02 05 00 3A 06 13 31 E0 00 00 12 [06:00:33]Write i2c OK [06:00:33]MH_I2C_Read... [06:00:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:00:33]Read from MH i2c: E2 [06:00:33]MH_I2C_Read... [06:00:33]Read from MH i2c: E2 03 00 [06:00:33]MH_I2C_Read... [06:00:33]Read from MH i2c: E2 03 00 E0 4A 00 90 00 9E [06:00:33]RAPDU: 90 00 [06:00:33]wFMCommunicate OK [06:00:33]wFMCommunicate request_size=4 [06:00:33]MH_SAM_APDU [06:00:33]CAPDU: 80 0D 03 02 [06:00:33]Write to MH i2c: E2 08 00 E1 4A 80 0D 03 02 00 00 00 00 A6 [06:00:33]Write i2c OK [06:00:33]MH_I2C_Read... [06:00:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:00:33]Read from MH i2c: E2 [06:00:33]MH_I2C_Read... [06:00:33]Read from MH i2c: E2 0B 00 [06:00:33]MH_I2C_Read... [06:00:33]Read from MH i2c: E2 0B 00 E1 4A 00 EA F5 C2 79 6D 23 8C 94 90 00 71 [06:00:33]RAPDU: EA F5 C2 79 6D 23 8C 94 90 00 [06:00:33]wFMCommunicate OK [06:00:33]SAM_PROTO_SignData done [06:00:33]FM_MakeSignedData done [06:00:33]CreateOFDProtocolMessage [06:00:33]wFMCommunicate request_size=4 [06:00:33]MH_SAM_APDU [06:00:33]CAPDU: 80 11 00 00 [06:00:33]Write to MH i2c: E2 08 00 E2 4A 80 11 00 00 00 00 00 00 A6 [06:00:33]Write i2c OK [06:00:33]MH_I2C_Read... [06:00:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:00:33]Read from MH i2c: E2 [06:00:33]MH_I2C_Read... [06:00:33]Read from MH i2c: E2 17 00 [06:00:33]MH_I2C_Read... [06:00:33]Read from MH i2c: E2 17 00 E2 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F3 [06:00:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [06:00:33]wFMCommunicate OK [06:00:33]CreateOFDProtocolMessage done [06:00:33]OFDSenderStorePacket 260497 [06:00:33]StoreOFDPacket docnum=260497 [06:00:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 69 4C 07 01 FB 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 02 8E C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 91 F9 03 00 35 04 06 00 7C 3A 06 13 31 E0 EA F5 C2 79 6D 23 8C 94 [06:00:33]CheckFolder [06:00:33]dirname=/storage/ofd_packets [06:00:33]CheckFolder done [06:00:33]ProducePacketName [06:00:33]name=ofd_packets/00260497 [06:00:33]NVStorageSaveData ofd_packets/00260497 [06:00:33]File name is /storage/ofd_packets/00260497 [06:00:33]Write 301 bytes [06:00:33]NVStorageSaveData done [06:00:33]OFDSenderStorePacket done [06:00:33]KKMCreateOFDPacket done [06:00:33]NVStorageSaveData kkm_last_timestamp [06:00:33]File name is /storage/kkm_last_timestamp [06:00:33]Write 4 bytes [06:00:33]NVStorageSaveData done [06:00:33]ExternCall_PrintAddStr [06:00:33]wPrintStart [06:00:33]Write to MH i2c: 01 00 00 E3 4A 2D [06:00:33]Write i2c OK [06:00:33]MH_I2C_Read... [06:00:33]Read from MH i2c: 01 [06:00:33]MH_I2C_Read... [06:00:33]Read from MH i2c: 01 07 00 [06:00:33]MH_I2C_Read... [06:00:33]Read from MH i2c: 01 07 00 E3 4A 00 00 00 00 00 FF 0F 42 [06:00:33]RasterBufferAndPrint [06:00:33]line Счет N : (1)1036040 [06:00:33]line ИНН: 02508201610067 [06:00:33]line Контрольно-Кассовый Чек [06:00:33]line ПРОДАЖА [06:00:33]line ТРК (МРК, ГНК) : 32 [06:00:33]line Товар: 2710124130 [06:00:33]line Аи-92-К-5 [06:00:33]line 7.380 * 67.80 [06:00:33]line = 500.36 [06:00:33]line НДС 12% НСП 1% [06:00:33]line > о реализуемом товаре [06:00:33]line ИТОГО: 500.36 [06:00:33]line НСП 1% : 4.43 [06:00:33]line НДС 12% : 53.14 [06:00:33]line Наличными: 0.00 [06:00:33]line Безнал.: 500.36 [06:00:33]line Место: АЗС № 94 "Партнер Нефть" [06:00:33]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [06:00:33]line СНО: Общий режим [06:00:33]line Чек 55 18.08.2024 06:00 [06:00:33]line Смена: 449 ФФД: 1.0 [06:00:33]line ЗНМ: 0300000099 [06:00:33]line РНМ: 0000000000091865 [06:00:33]line Версия ККМ: 001 [06:00:33]line Платежная система: O! деньги [06:00:33]line ФМ: 0000000000871820 [06:00:33]line ФД: 260497 [06:00:33]line ФПД: 136588651868640 [06:00:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T060034&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260497&fm=136588651868640&tin=02508201610067®Number=0000000000091865&sum=50036 [06:00:33]OFD Sender: Processing packet 260497 [packets to send 192, broken 191] [06:00:33]ProducePacketName [06:00:33]name=ofd_packets/00260497 [06:00:33]OFD Sender: To server: pG, [06:00:33]CommunicateWithHost lk.salyk.kg:30040 [06:00:33]ConnectInit lk.salyk.kg [06:00:33]written 0, free lines is 4095 [06:00:33]Connected sock=10 [06: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 30 0F 01 00 00 69 4C 07 01 FB 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 02 8E C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 91 F9 03 00 35 04 06 00 7C 3A 06 13 31 E0 EA F5 C2 79 6D 23 8C 94 [06: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 30 4F 00 00 00 ED B9 47 00 C8 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 91 F9 03 00 F4 03 04 00 58 37 C1 66 B6 04 01 00 00 0E 37 DE A8 DB AA 31 AC [06:00:33]CommunicateWithHost err = 0 [06:00:33]CheckOFDResponse [06:00:33]1017 (14) - 77093643461234 [06:00:33]1041 (16) - 0000000000871820 [06:00:33]1040 (4) - 260497 [06:00:33]1012 (4) - 17.08.2024 23:50 [06:00:33]1206 (1) - 0 [06:00:33]OFD Sender: Remove packet 260497 [06:00:33]ProducePacketName [06:00:33]name=ofd_packets/00260497 [06:00:33]NVStorageDeleteData [06:00:34]Write to MH i2c: 01 00 00 0D 4B 58 [06:00:34]Write i2c OK [06:00:34]MH_I2C_Read... [06:00:34]Read from MH i2c: 01 [06:00:34]MH_I2C_Read... [06:00:34]Read from MH i2c: 01 07 00 [06:00:34]MH_I2C_Read... [06:00:34]Read from MH i2c: 01 07 00 0D 4B 00 00 00 00 00 91 0C FC [06:00:34]RasterBufferAndPrint [06:00:34]line [06:00:34]line [06:00:34]line [06:00:34]line [06:00:34]line [06:00:34]written 0, free lines is 3220 [06:00:34]MH_Cut [06:00:34]Write to MH i2c: D1 01 00 14 4B 01 31 [06:00:34]Write i2c OK [06:00:34]MH_I2C_Read... [06:00:34]Read from MH i2c: D1 [06:00:34]MH_I2C_Read... [06:00:34]Read from MH i2c: D1 01 00 [06:00:34]MH_I2C_Read... [06:00:34]Read from MH i2c: D1 01 00 14 4B 00 30 [06:00:34]Write to MH i2c: 01 00 00 15 4B 60 [06:00:34]Write i2c OK [06:00:34]MH_I2C_Read... [06:00:34]OFD Sender: No OFD packet to send [06:00:35]*** Cut start [06:00:35]*** Purtial cut [06:00:35]*** Stage 1: CUTSNS_PIN = 1 [06:00:37]Read from MH i2c: 01 [06:00:37]MH_I2C_Read... [06:00:37]*** Stop cut motor [06:00:37]*** Cut end [06:00:37]Read from MH i2c: 01 07 00 [06:00:37]MH_I2C_Read... [06:00:37]Read from MH i2c: 01 07 00 15 4B 00 00 00 00 00 FF 0F 75 [06:00:37]process_action close_receipt done [06:00:37]requested_data is exist [06:00:37]produce_requested_data [06:00:37]requested_item fm.sn is exist - process it [06:00:37]wFMCommunicate request_size=4 [06:00:37]MH_SAM_APDU [06:00:37]CAPDU: 80 11 00 00 [06:00:37]Write to MH i2c: E2 08 00 16 4B 80 11 00 00 00 00 00 00 DB [06:00:37]Write i2c OK [06:00:37]MH_I2C_Read... [06:00:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:00:37]Read from MH i2c: E2 [06:00:37]MH_I2C_Read... [06:00:37]Read from MH i2c: E2 17 00 [06:00:37]MH_I2C_Read... [06:00:37]Read from MH i2c: E2 17 00 16 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 28 [06:00:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [06:00:37]wFMCommunicate OK [06:00:37]requested_item fd.num is exist - process it [06:00:37]SAM_PROTO_GetFieldsCounters [06:00:37]wFMCommunicate request_size=4 [06:00:37]MH_SAM_APDU [06:00:37]CAPDU: 80 13 00 00 [06:00:37]Write to MH i2c: E2 08 00 17 4B 80 13 00 00 00 00 00 00 DE [06:00:37]Write i2c OK [06:00:37]MH_I2C_Read... [06:00:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:00:37]Read from MH i2c: E2 [06:00:37]MH_I2C_Read... [06:00:37]Read from MH i2c: E2 62 00 [06:00:37]MH_I2C_Read... [06:00:37]Read from MH i2c: E2 62 00 17 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 91 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [06:00: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 91 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:00:37]wFMCommunicate OK [06:00:37]SAM_PROTO_GetFieldsCounters done [06:00:37]requested_item shift.num is exist - process it [06:00:37]requested_item shift.opened is exist - process it [06:00:37]req_shift_opened [06:00:37]FM_GetShiftState [06:00:37]SAM_PROTO_GetShiftState [06:00:37]wFMCommunicate request_size=4 [06:00:37]MH_SAM_APDU [06:00:37]CAPDU: 80 13 01 00 [06:00:37]Write to MH i2c: E2 08 00 18 4B 80 13 01 00 00 00 00 00 E0 [06:00:37]Write i2c OK [06:00:37]MH_I2C_Read... [06:00:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:00:37]Read from MH i2c: E2 [06:00:37]MH_I2C_Read... [06:00:37]Read from MH i2c: E2 0E 00 [06:00:37]MH_I2C_Read... [06:00:37]Read from MH i2c: E2 0E 00 18 4B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 1D [06:00:37]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [06:00:37]wFMCommunicate OK [06:00:37]SAM_PROTO_GetShiftState done [06:00:37]FM_GetShiftState done [06:00:37]req_shift_opened done [06:00:37]requested_item shift.open_date is exist - process it [06:00:37]req_shift_open_date [06:00:37]req_shift_open_date done [06:00:37]produce_requested_data done [06:00:37]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260497,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [06:00:37]process_action_free close_receipt [06:00:37]json_value_free [06:00:37]json_value_free done [06:00:37]process_json_proto returns [06:00:37]Send response to host [06:00:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260497,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [06:00:37]free response buf [06:00:37]execute_script done [06:00:37]execute_script returns [06:00:37]free content buf [06:00:37]Sock 9.Close socket [06:00:37]Sock 9.Thread stoped [06:00:39]OFD Sender: No OFD packet to send [06:00:44]OFD Sender: No OFD packet to send [06:00:49]OFD Sender: No OFD packet to send [06:00:54]OFD Sender: No OFD packet to send [06:00:59]OFD Sender: No OFD packet to send [06:01:04]OFD Sender: No OFD packet to send [06:01:09]OFD Sender: No OFD packet to send [06:01:14]OFD Sender: No OFD packet to send [06:01:19]OFD Sender: No OFD packet to send [06:01:24]OFD Sender: No OFD packet to send [06:01:29]OFD Sender: No OFD packet to send [06:01:34]OFD Sender: No OFD packet to send [06:01:39]OFD Sender: No OFD packet to send [06:01:44]OFD Sender: No OFD packet to send [06:01:49]OFD Sender: No OFD packet to send [06:01:54]OFD Sender: No OFD packet to send [06:01:59]OFD Sender: No OFD packet to send [06:02:04]OFD Sender: No OFD packet to send [06:02:09]OFD Sender: No OFD packet to send [06:02:14]OFD Sender: No OFD packet to send [06:02:19]OFD Sender: No OFD packet to send [06:02:24]OFD Sender: No OFD packet to send [06:02:29]OFD Sender: No OFD packet to send [06:02:34]OFD Sender: No OFD packet to send [06:02:39]OFD Sender: No OFD packet to send [06:02:44]OFD Sender: No OFD packet to send [06:02:49]OFD Sender: No OFD packet to send [06:02:54]OFD Sender: No OFD packet to send [06:02:59]OFD Sender: No OFD packet to send [06:03:04]OFD Sender: No OFD packet to send [06:03:09]OFD Sender: No OFD packet to send [06:03:14]OFD Sender: No OFD packet to send [06:03:19]OFD Sender: No OFD packet to send [06:03:24]OFD Sender: No OFD packet to send [06:03:29]OFD Sender: No OFD packet to send [06:03:34]OFD Sender: No OFD packet to send [06:03:39]OFD Sender: No OFD packet to send [06:03:44]OFD Sender: No OFD packet to send [06:03:49]OFD Sender: No OFD packet to send [06:03:54]OFD Sender: No OFD packet to send [06:03:59]OFD Sender: No OFD packet to send [06:04:04]OFD Sender: No OFD packet to send [06:04:09]OFD Sender: No OFD packet to send [06:04:14]OFD Sender: No OFD packet to send [06:04:19]OFD Sender: No OFD packet to send [06:04:24]OFD Sender: No OFD packet to send [06:04:29]OFD Sender: No OFD packet to send [06:04:34]OFD Sender: No OFD packet to send [06:04:39]OFD Sender: No OFD packet to send [06:04:44]OFD Sender: No OFD packet to send [06:04:49]OFD Sender: No OFD packet to send [06:04:54]OFD Sender: No OFD packet to send [06:04:59]OFD Sender: No OFD packet to send [06:05:04]OFD Sender: No OFD packet to send [06:05:09]OFD Sender: No OFD packet to send [06:05:14]OFD Sender: No OFD packet to send [06:05:19]OFD Sender: No OFD packet to send [06:05:24]OFD Sender: No OFD packet to send [06:05:29]OFD Sender: No OFD packet to send [06:05:34]OFD Sender: No OFD packet to send [06:05:39]OFD Sender: No OFD packet to send [06:05:44]OFD Sender: No OFD packet to send [06:05:49]OFD Sender: No OFD packet to send [06:05:54]OFD Sender: No OFD packet to send [06:05:59]OFD Sender: No OFD packet to send [06:06:04]OFD Sender: No OFD packet to send [06:06:09]OFD Sender: No OFD packet to send [06:06:14]OFD Sender: No OFD packet to send [06:06:19]OFD Sender: No OFD packet to send [06:06:24]OFD Sender: No OFD packet to send [06:06:29]OFD Sender: No OFD packet to send [06:06:34]OFD Sender: No OFD packet to send [06:06:39]OFD Sender: No OFD packet to send [06:06:44]OFD Sender: No OFD packet to send [06:06:49]OFD Sender: No OFD packet to send [06:06:54]OFD Sender: No OFD packet to send [06:06:59]OFD Sender: No OFD packet to send [06:07:04]OFD Sender: No OFD packet to send [06:07:09]OFD Sender: No OFD packet to send [06:07:14]OFD Sender: No OFD packet to send [06:07:19]OFD Sender: No OFD packet to send [06:07:24]OFD Sender: No OFD packet to send [06:07:29]OFD Sender: No OFD packet to send [06:07:35]OFD Sender: No OFD packet to send [06:07:40]OFD Sender: No OFD packet to send [06:07:45]OFD Sender: No OFD packet to send [06:07:50]OFD Sender: No OFD packet to send [06:07:55]OFD Sender: No OFD packet to send [06:08:00]OFD Sender: No OFD packet to send [06:08:05]OFD Sender: No OFD packet to send [06:08:10]OFD Sender: No OFD packet to send [06:08:15]OFD Sender: No OFD packet to send [06:08:20]OFD Sender: No OFD packet to send [06:08:25]OFD Sender: No OFD packet to send [06:08:30]OFD Sender: No OFD packet to send [06:08:35]OFD Sender: No OFD packet to send [06:08:40]OFD Sender: No OFD packet to send [06:08:45]OFD Sender: No OFD packet to send [06:08:50]OFD Sender: No OFD packet to send [06:08:55]OFD Sender: No OFD packet to send [06:09:00]OFD Sender: No OFD packet to send [06:09:05]OFD Sender: No OFD packet to send [06:09:10]OFD Sender: No OFD packet to send [06:09:15]OFD Sender: No OFD packet to send [06:09:20]OFD Sender: No OFD packet to send [06:09:25]OFD Sender: No OFD packet to send [06:09:30]OFD Sender: No OFD packet to send [06:09:35]OFD Sender: No OFD packet to send [06:09:40]OFD Sender: No OFD packet to send [06:09:45]OFD Sender: No OFD packet to send [06:09:50]OFD Sender: No OFD packet to send [06:09:55]OFD Sender: No OFD packet to send [06:10:00]OFD Sender: No OFD packet to send [06:10:05]OFD Sender: No OFD packet to send [06:10:10]OFD Sender: No OFD packet to send [06:10:12]accept exits with 7 [06:10:12]New connection [06:10:12]New thread 3066473828 created [06:10:12]Thread 3066617188 joined [06:10:12]Waiting for new connection... [06:10:12] Sock 7.Parse request [06:10:12]Sock 7.Check first char [06:10:12]Sock 7.First char is OK [06:10:12]request: POST /json_proto HTTP/1.0 [06:10:12]Method: POST [06:10:12]URL: /json_proto [06:10:12]Method is POST - this is cgi request [06:10:12]url: /json_proto [06:10:12]query_string will be loaded in cgi processing [06:10:12]execute_cgi json_proto POST (null) [06:10:12]execute_cgi path=json_proto method=POST [06:10:12]POST find Content-Length [06:10:12]Host: 172.17.55.133:8080 [06:10:12]Content-Length: 678 [06:10:12]Content-Type: application/json [06:10:12] [06:10:12]POST finish read [06:10:12]Found Content-Length = 678 [06:10:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 6.920, "sum" : 469.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 469.00, "payments": [ { "type": 0, "sum" : 469.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:10:12]execute_script... [06:10:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 6.920, "sum" : 469.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 469.00, "payments": [ { "type": 0, "sum" : 469.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:10:12]POST & json_proto [06:10:12]process_json_proto [06:10:12]json parsed OK: [06:10:12]protocol is kg_v1.0 [06:10:12]action value=close_receipt [06:10:12]process_action close_receipt [06:10:12]cmd_close_receipt [06:10:12]MH_GetDate [06:10:12]Write to MH i2c: F0 00 00 19 4B 53 [06:10:12]Write i2c OK [06:10:12]MH_I2C_Read... [06:10:12]Read from MH i2c: F0 [06:10:12]MH_I2C_Read... [06:10:12]Read from MH i2c: F0 09 00 [06:10:12]MH_I2C_Read... [06:10:12]Read from MH i2c: F0 09 00 19 4B 00 48 90 C1 66 34 48 D8 65 14 [06:10:12]GetLastDocTimeStamp 1723960834 [06:10:12]current date 1723961416 [06:10:12]FM_GetShiftState [06:10:12]SAM_PROTO_GetShiftState [06:10:12]wFMCommunicate request_size=4 [06:10:12]MH_SAM_APDU [06:10:12]CAPDU: 80 13 01 00 [06:10:12]Write to MH i2c: E2 08 00 1A 4B 80 13 01 00 00 00 00 00 E2 [06:10:12]Write i2c OK [06:10:12]MH_I2C_Read... [06:10:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:10:13]Read from MH i2c: E2 [06:10:13]MH_I2C_Read... [06:10:13]Read from MH i2c: E2 0E 00 [06:10:13]MH_I2C_Read... [06:10:13]Read from MH i2c: E2 0E 00 1A 4B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 1F [06:10:13]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [06:10:13]wFMCommunicate OK [06:10:13]SAM_PROTO_GetShiftState done [06:10:13]FM_GetShiftState done [06:10:13]opened in 1723940556 [06:10:13]opened+sec_in_day 1724026956 [06:10:13]quantity*price = 46917 [06:10:13]sum+1 = 46919 [06:10:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 469.00 Внесено: 800.00 СДАЧА: 331.00 НСП 1% : 4.15 НДС 12% : 49.82 Наличными: 469.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 56 18.08.2024 06:10 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260498 ФПД: 148150998194445 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T061016&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260498&fm=148150998194445&tin=02508201610067®Number=0000000000091865&sum=46900 [06:10:14]StoreToDocumentArchive [06:10:14]shift 449 fd 260498 [06:10:14]save to /storage/0449/doc_00260498 [06:10:14]save last doc name /storage/0449/doc_00260498 to /storage/kkm_last_doc_name [06:10:14]save OK [06:10:14]Clear old archive folders... [06:10:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:10:14]tlvbuf is 004F2D00 [06:10:14]SAM_PROTO_ClearQueue [06:10:14]wFMCommunicate request_size=4 [06:10:14]MH_SAM_APDU [06:10:14]CAPDU: 80 09 00 00 [06:10:14]Write to MH i2c: E2 08 00 27 4B 80 09 00 00 00 00 00 00 E4 [06:10:14]Write i2c OK [06:10:14]MH_I2C_Read... [06:10:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:10:14]Read from MH i2c: E2 [06:10:14]MH_I2C_Read... [06:10:14]Read from MH i2c: E2 03 00 [06:10:14]MH_I2C_Read... [06:10:14]Read from MH i2c: E2 03 00 27 4B 00 90 00 E6 [06:10:14]RAPDU: 90 00 [06:10:14]wFMCommunicate OK [06:10:14]SAM_PROTO_ClearQueue done [06:10:14]KKMCreateOFDPacket [06:10:14]OFDProtocolAddRootSTLVToBuf [06:10:14]FM_MakeSignedData [06:10:14]FM_MakeSignedData [06:10:14]SAM_PROTO_SignData [06:10:14]wFMCommunicate request_size=4 [06:10:14]MH_SAM_APDU [06:10:14]CAPDU: 80 0D 01 02 [06:10:14]Write to MH i2c: E2 08 00 28 4B 80 0D 01 02 00 00 00 00 EC [06:10:14]Write i2c OK [06:10:14]MH_I2C_Read... [06:10:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:10:14]Read from MH i2c: E2 [06:10:14]MH_I2C_Read... [06:10:14]Read from MH i2c: E2 03 00 [06:10:14]MH_I2C_Read... [06:10:14]Read from MH i2c: E2 03 00 28 4B 00 90 00 E7 [06:10:14]RAPDU: 90 00 [06:10:14]wFMCommunicate OK [06:10:14]wFMCommunicate request_size=255 [06:10:14]MH_SAM_APDU [06:10:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 08 1B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 46 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 13 00 00 00 00 07 04 06 00 34 B7 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 48 90 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 92 F9 03 00 35 04 06 00 86 [06:10:14]Write to MH i2c: E2 02 01 29 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 08 1B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 46 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 13 00 00 00 00 07 04 06 00 34 B7 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 48 90 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 92 F9 03 00 35 04 06 00 86 00 00 B6 [06:10:14]Write i2c OK [06:10:14]MH_I2C_Read... [06:10:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:10:14]Read from MH i2c: E2 [06:10:14]MH_I2C_Read... [06:10:14]Read from MH i2c: E2 03 00 [06:10:14]MH_I2C_Read... [06:10:14]Read from MH i2c: E2 03 00 29 4B 00 90 00 E8 [06:10:14]RAPDU: 90 00 [06:10:14]wFMCommunicate OK [06:10:14]wFMCommunicate request_size=10 [06:10:14]MH_SAM_APDU [06:10:14]CAPDU: 80 0D 02 02 05 BE 17 9E D9 0D [06:10:14]Write to MH i2c: E2 0D 00 2A 4B 80 0D 02 02 05 00 BE 17 9E D9 0D 00 00 52 [06:10:14]Write i2c OK [06:10:14]MH_I2C_Read... [06:10:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:10:14]Read from MH i2c: E2 [06:10:14]MH_I2C_Read... [06:10:14]Read from MH i2c: E2 03 00 [06:10:14]MH_I2C_Read... [06:10:14]Read from MH i2c: E2 03 00 2A 4B 00 90 00 E9 [06:10:14]RAPDU: 90 00 [06:10:14]wFMCommunicate OK [06:10:14]wFMCommunicate request_size=4 [06:10:14]MH_SAM_APDU [06:10:14]CAPDU: 80 0D 03 02 [06:10:14]Write to MH i2c: E2 08 00 2B 4B 80 0D 03 02 00 00 00 00 F1 [06:10:14]Write i2c OK [06:10:14]MH_I2C_Read... [06:10:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:10:14]Read from MH i2c: E2 [06:10:14]MH_I2C_Read... [06:10:14]Read from MH i2c: E2 0B 00 [06:10:14]MH_I2C_Read... [06:10:14]Read from MH i2c: E2 0B 00 2B 4B 00 BB DB 10 64 E5 DC 0F 6F 90 00 3B [06:10:14]RAPDU: BB DB 10 64 E5 DC 0F 6F 90 00 [06:10:14]wFMCommunicate OK [06:10:14]SAM_PROTO_SignData done [06:10:14]FM_MakeSignedData done [06:10:14]CreateOFDProtocolMessage [06:10:14]wFMCommunicate request_size=4 [06:10:14]MH_SAM_APDU [06:10:14]CAPDU: 80 11 00 00 [06:10:14]Write to MH i2c: E2 08 00 2C 4B 80 11 00 00 00 00 00 00 F1 [06:10:14]Write i2c OK [06:10:14]MH_I2C_Read... [06:10:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:10:14]Read from MH i2c: E2 [06:10:14]MH_I2C_Read... [06:10:14]Read from MH i2c: E2 17 00 [06:10:14]MH_I2C_Read... [06:10:14]Read from MH i2c: E2 17 00 2C 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 3E [06:10:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [06:10:14]wFMCommunicate OK [06:10:14]CreateOFDProtocolMessage done [06:10:14]OFDSenderStorePacket 260498 [06:10:14]StoreOFDPacket docnum=260498 [06:10:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 E2 F8 07 01 C9 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 08 1B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 46 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 13 00 00 00 00 07 04 06 00 34 B7 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 48 90 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 92 F9 03 00 35 04 06 00 86 BE 17 9E D9 0D BB DB 10 64 E5 DC 0F 6F [06:10:14]CheckFolder [06:10:14]dirname=/storage/ofd_packets [06:10:14]CheckFolder done [06:10:14]ProducePacketName [06:10:14]name=ofd_packets/00260498 [06:10:14]NVStorageSaveData ofd_packets/00260498 [06:10:14]File name is /storage/ofd_packets/00260498 [06:10:14]Write 301 bytes [06:10:14]NVStorageSaveData done [06:10:14]OFDSenderStorePacket done [06:10:14]KKMCreateOFDPacket done [06:10:14]NVStorageSaveData kkm_last_timestamp [06:10:14]File name is /storage/kkm_last_timestamp [06:10:14]Write 4 bytes [06:10:14]NVStorageSaveData done [06:10:14]ExternCall_PrintAddStr [06:10:14]wPrintStart [06:10:14]Write to MH i2c: 01 00 00 2D 4B 78 [06:10:14]Write i2c OK [06:10:14]MH_I2C_Read... [06:10:14]Read from MH i2c: 01 [06:10:14]MH_I2C_Read... [06:10:14]Read from MH i2c: 01 07 00 [06:10:14]MH_I2C_Read... [06:10:14]Read from MH i2c: 01 07 00 2D 4B 00 00 00 00 00 FF 0F 8D [06:10:14]RasterBufferAndPrint [06:10:14]line Счет N : (1)1036041 [06:10:14]line ИНН: 02508201610067 [06:10:14]line Контрольно-Кассовый Чек [06:10:14]line ПРОДАЖА [06:10:14]line ТРК (МРК, ГНК) : 42 [06:10:14]line Товар: 2710124130 [06:10:14]line Аи-92-К-5 [06:10:14]line 6.920 * 67.80 [06:10:14]line = 469.18 [06:10:14]line НДС 12% НСП 1% [06:10:14]line > о реализуемом товаре [06:10:14]line ОКРУГЛЕНИЕ: -0.18 [06:10:14]line ИТОГО: 469.00 [06:10:14]line Внесено: 800.00 [06:10:14]line СДАЧА: 331.00 [06:10:14]line НСП 1% : 4.15 [06:10:14]line НДС 12% : 49.82 [06:10:14]line Наличными: 469.00 [06:10:14]line Безнал.: 0.00 [06:10:14]line Место: АЗС № 94 "Партнер Нефть" [06:10:14]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [06:10:14]line СНО: Общий режим [06:10:14]line Чек 56 18.08.2024 06:10 [06:10:14]line Смена: 449 ФФД: 1.0 [06:10:14]line ЗНМ: 0300000099 [06:10:14]line РНМ: 0000000000091865 [06:10:14]line Версия ККМ: 001 [06:10:14]line ФМ: 0000000000871820 [06:10:14]line ФД: 260498 [06:10:14]line ФПД: 148150998194445 [06:10:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T061016&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260498&fm=148150998194445&tin=02508201610067®Number=0000000000091865&sum=46900 [06:10:15]written 0, free lines is 4095 [06:10:15]OFD Sender: Processing packet 260498 [packets to send 192, broken 191] [06:10:15]ProducePacketName [06:10:15]name=ofd_packets/00260498 [06:10:15]OFD Sender: To server: pG, [06:10:15]CommunicateWithHost lk.salyk.kg:30040 [06:10:15]ConnectInit lk.salyk.kg [06:10:15]Connected sock=10 [06:10: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 30 0F 01 00 00 E2 F8 07 01 C9 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 08 1B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 46 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 13 00 00 00 00 07 04 06 00 34 B7 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 48 90 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 92 F9 03 00 35 04 06 00 86 BE 17 9E D9 0D BB DB 10 64 E5 DC 0F 6F [06:10: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 30 4F 00 00 00 FC 13 47 00 E4 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 92 F9 03 00 F4 03 04 00 9E 39 C1 66 B6 04 01 00 00 01 D7 53 E6 C5 E9 4C 87 [06:10:15]CommunicateWithHost err = 0 [06:10:15]CheckOFDResponse [06:10:15]1017 (14) - 77093643461234 [06:10:15]1041 (16) - 0000000000871820 [06:10:15]1040 (4) - 260498 [06:10:15]1012 (4) - 18.08.2024 00:00 [06:10:15]1206 (1) - 0 [06:10:15]OFD Sender: Remove packet 260498 [06:10:15]ProducePacketName [06:10:15]name=ofd_packets/00260498 [06:10:15]NVStorageDeleteData [06:10:15]Write to MH i2c: 01 00 00 58 4B A3 [06:10:15]Write i2c OK [06:10:15]MH_I2C_Read... [06:10:15]Read from MH i2c: 01 [06:10:15]MH_I2C_Read... [06:10:15]Read from MH i2c: 01 07 00 [06:10:15]MH_I2C_Read... [06:10:15]Read from MH i2c: 01 07 00 58 4B 00 00 00 00 00 7D 0C 33 [06:10:15]RasterBufferAndPrint [06:10:15]line [06:10:15]line [06:10:15]line [06:10:15]line [06:10:15]line [06:10:15]written 0, free lines is 3200 [06:10:15]MH_Cut [06:10:15]Write to MH i2c: D1 01 00 5F 4B 01 7C [06:10:15]Write i2c OK [06:10:15]MH_I2C_Read... [06:10:15]Read from MH i2c: D1 [06:10:15]MH_I2C_Read... [06:10:15]Read from MH i2c: D1 01 00 [06:10:15]MH_I2C_Read... [06:10:15]Read from MH i2c: D1 01 00 5F 4B 00 7B [06:10:15]Write to MH i2c: 01 00 00 60 4B AB [06:10:15]Write i2c OK [06:10:15]MH_I2C_Read... [06:10:15]OFD Sender: No OFD packet to send [06:10:16]*** Cut start [06:10:16]*** Purtial cut [06:10:16]*** Stage 1: CUTSNS_PIN = 1 [06:10:18]Read from MH i2c: 01 [06:10:18]MH_I2C_Read... [06:10:18]*** Stop cut motor [06:10:18]*** Cut end [06:10:18]Read from MH i2c: 01 07 00 [06:10:18]MH_I2C_Read... [06:10:18]Read from MH i2c: 01 07 00 60 4B 00 00 00 00 00 FF 0F C0 [06:10:18]process_action close_receipt done [06:10:18]requested_data is exist [06:10:18]produce_requested_data [06:10:18]requested_item fm.sn is exist - process it [06:10:18]wFMCommunicate request_size=4 [06:10:18]MH_SAM_APDU [06:10:18]CAPDU: 80 11 00 00 [06:10:18]Write to MH i2c: E2 08 00 61 4B 80 11 00 00 00 00 00 00 26 [06:10:18]Write i2c OK [06:10:18]MH_I2C_Read... [06:10:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:10:18]Read from MH i2c: E2 [06:10:18]MH_I2C_Read... [06:10:18]Read from MH i2c: E2 17 00 [06:10:18]MH_I2C_Read... [06:10:18]Read from MH i2c: E2 17 00 61 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 73 [06:10:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [06:10:18]wFMCommunicate OK [06:10:18]requested_item fd.num is exist - process it [06:10:18]SAM_PROTO_GetFieldsCounters [06:10:18]wFMCommunicate request_size=4 [06:10:18]MH_SAM_APDU [06:10:18]CAPDU: 80 13 00 00 [06:10:18]Write to MH i2c: E2 08 00 62 4B 80 13 00 00 00 00 00 00 29 [06:10:18]Write i2c OK [06:10:18]MH_I2C_Read... [06:10:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:10:18]Read from MH i2c: E2 [06:10:18]MH_I2C_Read... [06:10:18]Read from MH i2c: E2 62 00 [06:10:18]MH_I2C_Read... [06:10:18]Read from MH i2c: E2 62 00 62 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 92 F9 03 00 0E 04 04 00 C1 01 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 40 [06:10: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 92 F9 03 00 0E 04 04 00 C1 01 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 [06:10:18]wFMCommunicate OK [06:10:18]SAM_PROTO_GetFieldsCounters done [06:10:18]requested_item shift.num is exist - process it [06:10:18]requested_item shift.opened is exist - process it [06:10:18]req_shift_opened [06:10:18]FM_GetShiftState [06:10:18]SAM_PROTO_GetShiftState [06:10:18]wFMCommunicate request_size=4 [06:10:18]MH_SAM_APDU [06:10:18]CAPDU: 80 13 01 00 [06:10:18]Write to MH i2c: E2 08 00 63 4B 80 13 01 00 00 00 00 00 2B [06:10:18]Write i2c OK [06:10:18]MH_I2C_Read... [06:10:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:10:18]Read from MH i2c: E2 [06:10:18]MH_I2C_Read... [06:10:18]Read from MH i2c: E2 0E 00 [06:10:18]MH_I2C_Read... [06:10:18]Read from MH i2c: E2 0E 00 63 4B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 68 [06:10:18]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [06:10:18]wFMCommunicate OK [06:10:18]SAM_PROTO_GetShiftState done [06:10:18]FM_GetShiftState done [06:10:18]req_shift_opened done [06:10:18]requested_item shift.open_date is exist - process it [06:10:18]req_shift_open_date [06:10:18]req_shift_open_date done [06:10:18]produce_requested_data done [06:10:18]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260498,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [06:10:18]process_action_free close_receipt [06:10:18]json_value_free [06:10:18]json_value_free done [06:10:18]process_json_proto returns [06:10:18]Send response to host [06:10:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260498,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [06:10:18]free response buf [06:10:18]execute_script done [06:10:18]execute_script returns [06:10:18]free content buf [06:10:18]Sock 7.Close socket [06:10:18]Sock 7.Thread stoped [06:10:20]OFD Sender: No OFD packet to send [06:10:25]OFD Sender: No OFD packet to send [06:10:30]OFD Sender: No OFD packet to send [06:10:35]OFD Sender: No OFD packet to send [06:10:40]OFD Sender: No OFD packet to send [06:10:45]OFD Sender: No OFD packet to send [06:10:50]OFD Sender: No OFD packet to send [06:10:55]OFD Sender: No OFD packet to send [06:11:00]OFD Sender: No OFD packet to send [06:11:05]OFD Sender: No OFD packet to send [06:11:10]OFD Sender: No OFD packet to send [06:11:15]OFD Sender: No OFD packet to send [06:11:20]OFD Sender: No OFD packet to send [06:11:25]OFD Sender: No OFD packet to send [06:11:30]OFD Sender: No OFD packet to send [06:11:36]OFD Sender: No OFD packet to send [06:11:41]OFD Sender: No OFD packet to send [06:11:46]OFD Sender: No OFD packet to send [06:11:51]OFD Sender: No OFD packet to send [06:11:56]OFD Sender: No OFD packet to send [06:12:01]OFD Sender: No OFD packet to send [06:12:06]OFD Sender: No OFD packet to send [06:12:11]OFD Sender: No OFD packet to send [06:12:16]OFD Sender: No OFD packet to send [06:12:21]OFD Sender: No OFD packet to send [06:12:26]OFD Sender: No OFD packet to send [06:12:31]OFD Sender: No OFD packet to send [06:12:36]OFD Sender: No OFD packet to send [06:12:41]OFD Sender: No OFD packet to send [06:12:46]OFD Sender: No OFD packet to send [06:12:51]OFD Sender: No OFD packet to send [06:12:56]OFD Sender: No OFD packet to send [06:13:01]OFD Sender: No OFD packet to send [06:13:06]OFD Sender: No OFD packet to send [06:13:11]OFD Sender: No OFD packet to send [06:13:16]OFD Sender: No OFD packet to send [06:13:21]OFD Sender: No OFD packet to send [06:13:26]OFD Sender: No OFD packet to send [06:13:31]OFD Sender: No OFD packet to send [06:13:36]OFD Sender: No OFD packet to send [06:13:41]OFD Sender: No OFD packet to send [06:13:46]OFD Sender: No OFD packet to send [06:13:51]OFD Sender: No OFD packet to send [06:13:56]OFD Sender: No OFD packet to send [06:14:01]OFD Sender: No OFD packet to send [06:14:06]OFD Sender: No OFD packet to send [06:14:11]OFD Sender: No OFD packet to send [06:14:16]OFD Sender: No OFD packet to send [06:14:21]OFD Sender: No OFD packet to send [06:14:26]OFD Sender: No OFD packet to send [06:14:31]OFD Sender: No OFD packet to send [06:14:36]OFD Sender: No OFD packet to send [06:14:41]OFD Sender: No OFD packet to send [06:14:46]OFD Sender: No OFD packet to send [06:14:51]OFD Sender: No OFD packet to send [06:14:56]OFD Sender: No OFD packet to send [06:15:01]OFD Sender: No OFD packet to send [06:15:06]OFD Sender: No OFD packet to send [06:15:11]OFD Sender: No OFD packet to send [06:15:16]OFD Sender: No OFD packet to send [06:15:21]OFD Sender: No OFD packet to send [06:15:26]OFD Sender: No OFD packet to send [06:15:31]OFD Sender: No OFD packet to send [06:15:36]OFD Sender: No OFD packet to send [06:15:41]OFD Sender: No OFD packet to send [06:15:46]OFD Sender: No OFD packet to send [06:15:51]OFD Sender: No OFD packet to send [06:15:56]OFD Sender: No OFD packet to send [06:16:01]OFD Sender: No OFD packet to send [06:16:06]OFD Sender: No OFD packet to send [06:16:11]OFD Sender: No OFD packet to send [06:16:16]OFD Sender: No OFD packet to send [06:16:21]OFD Sender: No OFD packet to send [06:16:26]OFD Sender: No OFD packet to send [06:16:31]OFD Sender: No OFD packet to send [06:16:36]OFD Sender: No OFD packet to send [06:16:41]OFD Sender: No OFD packet to send [06:16:46]OFD Sender: No OFD packet to send [06:16:51]OFD Sender: No OFD packet to send [06:16:56]OFD Sender: No OFD packet to send [06:17:01]OFD Sender: No OFD packet to send [06:17:06]OFD Sender: No OFD packet to send [06:17:11]OFD Sender: No OFD packet to send [06:17:16]OFD Sender: No OFD packet to send [06:17:21]OFD Sender: No OFD packet to send [06:17:26]OFD Sender: No OFD packet to send [06:17:31]OFD Sender: No OFD packet to send [06:17:36]OFD Sender: No OFD packet to send [06:17:41]OFD Sender: No OFD packet to send [06:17:46]OFD Sender: No OFD packet to send [06:17:51]OFD Sender: No OFD packet to send [06:17:56]OFD Sender: No OFD packet to send [06:18:01]OFD Sender: No OFD packet to send [06:18:06]OFD Sender: No OFD packet to send [06:18:11]OFD Sender: No OFD packet to send [06:18:16]OFD Sender: No OFD packet to send [06:18:21]OFD Sender: No OFD packet to send [06:18:26]OFD Sender: No OFD packet to send [06:18:31]OFD Sender: No OFD packet to send [06:18:36]OFD Sender: No OFD packet to send [06:18:41]OFD Sender: No OFD packet to send [06:18:46]OFD Sender: No OFD packet to send [06:18:51]OFD Sender: No OFD packet to send [06:18:56]OFD Sender: No OFD packet to send [06:19:01]OFD Sender: No OFD packet to send [06:19:06]OFD Sender: No OFD packet to send [06:19:11]OFD Sender: No OFD packet to send [06:19:16]OFD Sender: No OFD packet to send [06:19:21]OFD Sender: No OFD packet to send [06:19:26]OFD Sender: No OFD packet to send [06:19:31]OFD Sender: No OFD packet to send [06:19:36]OFD Sender: No OFD packet to send [06:19:41]OFD Sender: No OFD packet to send [06:19:46]OFD Sender: No OFD packet to send [06:19:51]OFD Sender: No OFD packet to send [06:19:56]OFD Sender: No OFD packet to send [06:20:01]OFD Sender: No OFD packet to send [06:20:06]OFD Sender: No OFD packet to send [06:20:11]OFD Sender: No OFD packet to send [06:20:16]OFD Sender: No OFD packet to send [06:20:21]OFD Sender: No OFD packet to send [06:20:26]OFD Sender: No OFD packet to send [06:20:31]OFD Sender: No OFD packet to send [06:20:36]OFD Sender: No OFD packet to send [06:20:41]OFD Sender: No OFD packet to send [06:20:46]OFD Sender: No OFD packet to send [06:20:51]OFD Sender: No OFD packet to send [06:20:56]OFD Sender: No OFD packet to send [06:21:01]OFD Sender: No OFD packet to send [06:21:06]OFD Sender: No OFD packet to send [06:21:11]OFD Sender: No OFD packet to send [06:21:16]OFD Sender: No OFD packet to send [06:21:21]OFD Sender: No OFD packet to send [06:21:26]OFD Sender: No OFD packet to send [06:21:31]OFD Sender: No OFD packet to send [06:21:36]OFD Sender: No OFD packet to send [06:21:41]OFD Sender: No OFD packet to send [06:21:46]OFD Sender: No OFD packet to send [06:21:51]OFD Sender: No OFD packet to send [06:21:56]OFD Sender: No OFD packet to send [06:22:01]OFD Sender: No OFD packet to send [06:22:06]OFD Sender: No OFD packet to send [06:22:11]OFD Sender: No OFD packet to send [06:22:16]OFD Sender: No OFD packet to send [06:22:21]OFD Sender: No OFD packet to send [06:22:26]OFD Sender: No OFD packet to send [06:22:31]OFD Sender: No OFD packet to send [06:22:36]OFD Sender: No OFD packet to send [06:22:41]OFD Sender: No OFD packet to send [06:22:46]OFD Sender: No OFD packet to send [06:22:51]OFD Sender: No OFD packet to send [06:22:56]OFD Sender: No OFD packet to send [06:23:01]OFD Sender: No OFD packet to send [06:23:06]OFD Sender: No OFD packet to send [06:23:11]OFD Sender: No OFD packet to send [06:23:16]OFD Sender: No OFD packet to send [06:23:21]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:12]OFD Sender: No OFD packet to send [06:34:17]OFD Sender: No OFD packet to send [06:34:22]OFD Sender: No OFD packet to send [06:34:27]OFD Sender: No OFD packet to send [06:34:32]OFD Sender: No OFD packet to send [06:34:37]OFD Sender: No OFD packet to send [06:34:42]OFD Sender: No OFD packet to send [06:34:47]OFD Sender: No OFD packet to send [06:34:52]OFD Sender: No OFD packet to send [06:34:57]OFD Sender: No OFD packet to send [06:35:02]OFD Sender: No OFD packet to send [06:35:07]OFD Sender: No OFD packet to send [06:35:12]OFD Sender: No OFD packet to send [06:35:17]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:55]accept exits with 9 [06:35:55]New connection [06:35:55]New thread 3066617188 created [06:35:55]Thread 3066473828 joined [06:35:55]Waiting for new connection... [06:35:55] Sock 9.Parse request [06:35:55]Sock 9.Check first char [06:35:55]Sock 9.First char is OK [06:35:55]request: POST /json_proto HTTP/1.0 [06:35:55]Method: POST [06:35:55]URL: /json_proto [06:35:55]Method is POST - this is cgi request [06:35:55]url: /json_proto [06:35:55]query_string will be loaded in cgi processing [06:35:55]execute_cgi json_proto POST (null) [06:35:55]execute_cgi path=json_proto method=POST [06:35:55]POST find Content-Length [06:35:55]Host: 172.17.55.133:8080 [06:35:55]Content-Length: 678 [06:35:55]Content-Type: application/json [06:35:55] [06:35:55]POST finish read [06:35:55]Found Content-Length = 678 [06:35:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:35:55]execute_script... [06:35: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)1036042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:35:55]POST & json_proto [06:35:55]process_json_proto [06:35:55]json parsed OK: [06:35:55]protocol is kg_v1.0 [06:35:55]action value=close_receipt [06:35:55]process_action close_receipt [06:35:55]cmd_close_receipt [06:35:55]MH_GetDate [06:35:55]Write to MH i2c: F0 00 00 64 4B 9E [06:35:55]Write i2c OK [06:35:55]MH_I2C_Read... [06:35:55]Read from MH i2c: F0 [06:35:55]MH_I2C_Read... [06:35:55]Read from MH i2c: F0 09 00 [06:35:55]MH_I2C_Read... [06:35:55]Read from MH i2c: F0 09 00 64 4B 00 4E 96 C1 66 34 48 D8 65 6B [06:35:55]GetLastDocTimeStamp 1723961416 [06:35:55]current date 1723962958 [06:35:55]FM_GetShiftState [06:35:55]SAM_PROTO_GetShiftState [06:35:55]wFMCommunicate request_size=4 [06:35:55]MH_SAM_APDU [06:35:55]CAPDU: 80 13 01 00 [06:35:55]Write to MH i2c: E2 08 00 65 4B 80 13 01 00 00 00 00 00 2D [06:35:55]Write i2c OK [06:35:55]MH_I2C_Read... [06:35:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:35:55]Read from MH i2c: E2 [06:35:55]MH_I2C_Read... [06:35:55]Read from MH i2c: E2 0E 00 [06:35:55]MH_I2C_Read... [06:35:55]Read from MH i2c: E2 0E 00 65 4B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 6A [06:35:55]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [06:35:55]wFMCommunicate OK [06:35:55]SAM_PROTO_GetShiftState done [06:35:55]FM_GetShiftState done [06:35:55]opened in 1723940556 [06:35:55]opened+sec_in_day 1724026956 [06:35:55]quantity*price = 50036 [06:35:55]sum+1 = 50037 [06:35:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 57 18.08.2024 06:35 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260499 ФПД: 31315240412636 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T063558&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260499&fm=31315240412636&tin=02508201610067®Number=0000000000091865&sum=50000 [06:35:56]StoreToDocumentArchive [06:35:56]shift 449 fd 260499 [06:35:56]save to /storage/0449/doc_00260499 [06:35:56]save last doc name /storage/0449/doc_00260499 to /storage/kkm_last_doc_name [06:35:56]save OK [06:35:56]Clear old archive folders... [06:35:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:35:56]tlvbuf is 0039C9A0 [06:35:56]SAM_PROTO_ClearQueue [06:35:56]wFMCommunicate request_size=4 [06:35:56]MH_SAM_APDU [06:35:56]CAPDU: 80 09 00 00 [06:35:56]Write to MH i2c: E2 08 00 72 4B 80 09 00 00 00 00 00 00 2F [06:35:56]Write i2c OK [06:35:56]MH_I2C_Read... [06:35:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:35:56]Read from MH i2c: E2 [06:35:56]MH_I2C_Read... [06:35:56]Read from MH i2c: E2 03 00 [06:35:56]MH_I2C_Read... [06:35:56]Read from MH i2c: E2 03 00 72 4B 00 90 00 31 [06:35:56]RAPDU: 90 00 [06:35:56]wFMCommunicate OK [06:35:56]SAM_PROTO_ClearQueue done [06:35:56]KKMCreateOFDPacket [06:35:56]OFDProtocolAddRootSTLVToBuf [06:35:56]FM_MakeSignedData [06:35:56]FM_MakeSignedData [06:35:56]SAM_PROTO_SignData [06:35:56]wFMCommunicate request_size=4 [06:35:56]MH_SAM_APDU [06:35:56]CAPDU: 80 0D 01 02 [06:35:56]Write to MH i2c: E2 08 00 73 4B 80 0D 01 02 00 00 00 00 37 [06:35:56]Write i2c OK [06:35:56]MH_I2C_Read... [06:35:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:35:56]Read from MH i2c: E2 [06:35:56]MH_I2C_Read... [06:35:56]Read from MH i2c: E2 03 00 [06:35:56]MH_I2C_Read... [06:35:56]Read from MH i2c: E2 03 00 73 4B 00 90 00 32 [06:35:56]RAPDU: 90 00 [06:35:56]wFMCommunicate OK [06:35:56]wFMCommunicate request_size=255 [06:35:56]MH_SAM_APDU [06:35:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 39 00 00 00 F4 03 04 00 4E 96 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 93 F9 03 00 35 04 06 00 1C [06:35:56]Write to MH i2c: E2 02 01 74 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 39 00 00 00 F4 03 04 00 4E 96 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 93 F9 03 00 35 04 06 00 1C 00 00 65 [06:35:56]Write i2c OK [06:35:56]MH_I2C_Read... [06:35:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:35:56]Read from MH i2c: E2 [06:35:56]MH_I2C_Read... [06:35:56]Read from MH i2c: E2 03 00 [06:35:56]MH_I2C_Read... [06:35:56]Read from MH i2c: E2 03 00 74 4B 00 90 00 33 [06:35:56]RAPDU: 90 00 [06:35:56]wFMCommunicate OK [06:35:56]wFMCommunicate request_size=10 [06:35:56]MH_SAM_APDU [06:35:56]CAPDU: 80 0D 02 02 05 7B 25 C7 E5 DC [06:35:56]Write to MH i2c: E2 0D 00 75 4B 80 0D 02 02 05 00 7B 25 C7 E5 DC 00 00 6C [06:35:56]Write i2c OK [06:35:56]MH_I2C_Read... [06:35:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:35:56]Read from MH i2c: E2 [06:35:56]MH_I2C_Read... [06:35:56]Read from MH i2c: E2 03 00 [06:35:56]MH_I2C_Read... [06:35:56]Read from MH i2c: E2 03 00 75 4B 00 90 00 34 [06:35:56]RAPDU: 90 00 [06:35:56]wFMCommunicate OK [06:35:56]wFMCommunicate request_size=4 [06:35:56]MH_SAM_APDU [06:35:56]CAPDU: 80 0D 03 02 [06:35:56]Write to MH i2c: E2 08 00 76 4B 80 0D 03 02 00 00 00 00 3C [06:35:56]Write i2c OK [06:35:56]MH_I2C_Read... [06:35:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:35:56]Read from MH i2c: E2 [06:35:56]MH_I2C_Read... [06:35:56]Read from MH i2c: E2 0B 00 [06:35:56]MH_I2C_Read... [06:35:56]Read from MH i2c: E2 0B 00 76 4B 00 C5 D1 C4 34 50 1D 9D DA 90 00 AF [06:35:56]RAPDU: C5 D1 C4 34 50 1D 9D DA 90 00 [06:35:56]wFMCommunicate OK [06:35:56]SAM_PROTO_SignData done [06:35:56]FM_MakeSignedData done [06:35:56]CreateOFDProtocolMessage [06:35:56]wFMCommunicate request_size=4 [06:35:56]MH_SAM_APDU [06:35:56]CAPDU: 80 11 00 00 [06:35:56]Write to MH i2c: E2 08 00 77 4B 80 11 00 00 00 00 00 00 3C [06:35:56]Write i2c OK [06:35:56]MH_I2C_Read... [06:35:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:35:57]Read from MH i2c: E2 [06:35:57]MH_I2C_Read... [06:35:57]Read from MH i2c: E2 17 00 [06:35:57]MH_I2C_Read... [06:35:57]Read from MH i2c: E2 17 00 77 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 89 [06:35:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [06:35:57]wFMCommunicate OK [06:35:57]CreateOFDProtocolMessage done [06:35:57]OFDSenderStorePacket 260499 [06:35:57]StoreOFDPacket docnum=260499 [06:35:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 FF 0E 07 01 43 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 39 00 00 00 F4 03 04 00 4E 96 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 93 F9 03 00 35 04 06 00 1C 7B 25 C7 E5 DC C5 D1 C4 34 50 1D 9D DA [06:35:57]CheckFolder [06:35:57]dirname=/storage/ofd_packets [06:35:57]CheckFolder done [06:35:57]ProducePacketName [06:35:57]name=ofd_packets/00260499 [06:35:57]NVStorageSaveData ofd_packets/00260499 [06:35:57]File name is /storage/ofd_packets/00260499 [06:35:57]Write 301 bytes [06:35:57]NVStorageSaveData done [06:35:57]OFDSenderStorePacket done [06:35:57]KKMCreateOFDPacket done [06:35:57]NVStorageSaveData kkm_last_timestamp [06:35:57]File name is /storage/kkm_last_timestamp [06:35:57]Write 4 bytes [06:35:57]NVStorageSaveData done [06:35:57]ExternCall_PrintAddStr [06:35:57]wPrintStart [06:35:57]Write to MH i2c: 01 00 00 78 4B C3 [06:35:57]Write i2c OK [06:35:57]MH_I2C_Read... [06:35:57]Read from MH i2c: 01 [06:35:57]MH_I2C_Read... [06:35:57]Read from MH i2c: 01 07 00 [06:35:57]MH_I2C_Read... [06:35:57]Read from MH i2c: 01 07 00 78 4B 00 00 00 00 00 FF 0F D8 [06:35:57]RasterBufferAndPrint [06:35:57]line Счет N : (1)1036042 [06:35:57]line ИНН: 02508201610067 [06:35:57]line Контрольно-Кассовый Чек [06:35:57]line ПРОДАЖА [06:35:57]line ТРК (МРК, ГНК) : 12 [06:35:57]line Товар: 2710124130 [06:35:57]line Аи-92-К-5 [06:35:57]line 7.380 * 67.80 [06:35:57]line = 500.36 [06:35:57]line НДС 12% НСП 1% [06:35:57]line > о реализуемом товаре [06:35:57]line ОКРУГЛЕНИЕ: -0.36 [06:35:57]line ИТОГО: 500.00 [06:35:57]line Внесено: 500.00 [06:35:57]line СДАЧА: 0.00 [06:35:57]line НСП 1% : 4.43 [06:35:57]line НДС 12% : 53.14 [06:35:57]line Наличными: 500.00 [06:35:57]line Безнал.: 0.00 [06:35:57]line Место: АЗС № 94 "Партнер Нефть" [06:35:57]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [06:35:57]line СНО: Общий режим [06:35:57]line Чек 57 18.08.2024 06:35 [06:35:57]line Смена: 449 ФФД: 1.0 [06:35:57]line ЗНМ: 0300000099 [06:35:57]line РНМ: 0000000000091865 [06:35:57]line Версия ККМ: 001 [06:35:57]line ФМ: 0000000000871820 [06:35:57]line ФД: 260499 [06:35:57]line ФПД: 31315240412636 [06:35:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T063558&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260499&fm=31315240412636&tin=02508201610067®Number=0000000000091865&sum=50000 [06:35:57]OFD Sender: Processing packet 260499 [packets to send 192, broken 191] [06:35:57]ProducePacketName [06:35:57]name=ofd_packets/00260499 [06:35:57]OFD Sender: To server: pG, [06:35:57]CommunicateWithHost lk.salyk.kg:30040 [06:35:57]ConnectInit lk.salyk.kg [06:35:57]written 0, free lines is 4095 [06:35:57]Connected sock=10 [06:35: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 30 0F 01 00 00 FF 0E 07 01 43 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 39 00 00 00 F4 03 04 00 4E 96 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 93 F9 03 00 35 04 06 00 1C 7B 25 C7 E5 DC C5 D1 C4 34 50 1D 9D DA [06:35: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 30 4F 00 00 00 01 1D 47 00 EA 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 30 10 04 04 00 93 F9 03 00 F4 03 04 00 A4 3F C1 66 B6 04 01 00 00 F7 6B E5 2A 07 C6 18 B5 [06:35:57]CommunicateWithHost err = 0 [06:35:57]CheckOFDResponse [06:35:57]1017 (14) - 77093643461234 [06:35:57]1041 (16) - 0000000000871820 [06:35:57]1040 (4) - 260499 [06:35:57]1012 (4) - 18.08.2024 00:26 [06:35:57]1206 (1) - 0 [06:35:57]OFD Sender: Remove packet 260499 [06:35:57]ProducePacketName [06:35:57]name=ofd_packets/00260499 [06:35:57]NVStorageDeleteData [06:35:57]Write to MH i2c: 01 00 00 A3 4B EE [06:35:57]Write i2c OK [06:35:57]MH_I2C_Read... [06:35:57]Read from MH i2c: 01 [06:35:57]MH_I2C_Read... [06:35:57]Read from MH i2c: 01 07 00 [06:35:57]MH_I2C_Read... [06:35:57]Read from MH i2c: 01 07 00 A3 4B 00 00 00 00 00 72 0C 73 [06:35:57]RasterBufferAndPrint [06:35:57]line [06:35:57]line [06:35:57]line [06:35:57]line [06:35:57]line [06:35:57]written 0, free lines is 3189 [06:35:57]MH_Cut [06:35:57]Write to MH i2c: D1 01 00 AA 4B 01 C7 [06:35:57]Write i2c OK [06:35:57]MH_I2C_Read... [06:35:57]Read from MH i2c: D1 [06:35:57]MH_I2C_Read... [06:35:57]Read from MH i2c: D1 01 00 [06:35:57]MH_I2C_Read... [06:35:57]Read from MH i2c: D1 01 00 AA 4B 00 C6 [06:35:57]Write to MH i2c: 01 00 00 AB 4B F6 [06:35:57]Write i2c OK [06:35:57]MH_I2C_Read... [06:35:58]OFD Sender: No OFD packet to send [06:35:58]*** Cut start [06:35:58]*** Purtial cut [06:35:58]*** Stage 1: CUTSNS_PIN = 1 [06:36:00]Read from MH i2c: 01 [06:36:00]MH_I2C_Read... [06:36:00]*** Stop cut motor [06:36:00]*** Cut end [06:36:00]Read from MH i2c: 01 07 00 [06:36:00]MH_I2C_Read... [06:36:00]Read from MH i2c: 01 07 00 AB 4B 00 00 00 00 00 FF 0F 0B [06:36:00]process_action close_receipt done [06:36:00]requested_data is exist [06:36:00]produce_requested_data [06:36:00]requested_item fm.sn is exist - process it [06:36:00]wFMCommunicate request_size=4 [06:36:00]MH_SAM_APDU [06:36:00]CAPDU: 80 11 00 00 [06:36:00]Write to MH i2c: E2 08 00 AC 4B 80 11 00 00 00 00 00 00 71 [06:36:00]Write i2c OK [06:36:00]MH_I2C_Read... [06:36:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:36:01]Read from MH i2c: E2 [06:36:01]MH_I2C_Read... [06:36:01]Read from MH i2c: E2 17 00 [06:36:01]MH_I2C_Read... [06:36:01]Read from MH i2c: E2 17 00 AC 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 BE [06:36:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [06:36:01]wFMCommunicate OK [06:36:01]requested_item fd.num is exist - process it [06:36:01]SAM_PROTO_GetFieldsCounters [06:36:01]wFMCommunicate request_size=4 [06:36:01]MH_SAM_APDU [06:36:01]CAPDU: 80 13 00 00 [06:36:01]Write to MH i2c: E2 08 00 AD 4B 80 13 00 00 00 00 00 00 74 [06:36:01]Write i2c OK [06:36:01]MH_I2C_Read... [06:36:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:36:01]Read from MH i2c: E2 [06:36:01]MH_I2C_Read... [06:36:01]Read from MH i2c: E2 62 00 [06:36:01]MH_I2C_Read... [06:36:01]Read from MH i2c: E2 62 00 AD 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 93 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [06:36: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 93 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:36:01]wFMCommunicate OK [06:36:01]SAM_PROTO_GetFieldsCounters done [06:36:01]requested_item shift.num is exist - process it [06:36:01]requested_item shift.opened is exist - process it [06:36:01]req_shift_opened [06:36:01]FM_GetShiftState [06:36:01]SAM_PROTO_GetShiftState [06:36:01]wFMCommunicate request_size=4 [06:36:01]MH_SAM_APDU [06:36:01]CAPDU: 80 13 01 00 [06:36:01]Write to MH i2c: E2 08 00 AE 4B 80 13 01 00 00 00 00 00 76 [06:36:01]Write i2c OK [06:36:01]MH_I2C_Read... [06:36:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:36:01]Read from MH i2c: E2 [06:36:01]MH_I2C_Read... [06:36:01]Read from MH i2c: E2 0E 00 [06:36:01]MH_I2C_Read... [06:36:01]Read from MH i2c: E2 0E 00 AE 4B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B3 [06:36:01]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [06:36:01]wFMCommunicate OK [06:36:01]SAM_PROTO_GetShiftState done [06:36:01]FM_GetShiftState done [06:36:01]req_shift_opened done [06:36:01]requested_item shift.open_date is exist - process it [06:36:01]req_shift_open_date [06:36:01]req_shift_open_date done [06:36:01]produce_requested_data done [06:36:01]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260499,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [06:36:01]process_action_free close_receipt [06:36:01]json_value_free [06:36:01]json_value_free done [06:36:01]process_json_proto returns [06:36:01]Send response to host [06:36:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260499,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [06:36:01]free response buf [06:36:01]execute_script done [06:36:01]execute_script returns [06:36:01]free content buf [06:36:01]Sock 9.Close socket [06:36:01]Sock 9.Thread stoped [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:14]accept exits with 7 [06:37:14]New connection [06:37:14]New thread 3066473828 created [06:37:14]Thread 3066617188 joined [06:37:14]Waiting for new connection... [06:37:14] Sock 7.Parse request [06:37:14]Sock 7.Check first char [06:37:14]Sock 7.First char is OK [06:37:14]request: POST /json_proto HTTP/1.0 [06:37:14]Method: POST [06:37:14]URL: /json_proto [06:37:14]Method is POST - this is cgi request [06:37:14]url: /json_proto [06:37:14]query_string will be loaded in cgi processing [06:37:14]execute_cgi json_proto POST (null) [06:37:14]execute_cgi path=json_proto method=POST [06:37:14]POST find Content-Length [06:37:14]Host: 172.17.55.133:8080 [06:37:14]Content-Length: 678 [06:37:14]Content-Type: application/json [06:37:14] [06:37:14]POST finish read [06:37:14]Found Content-Length = 678 [06:37:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:37:14]execute_script... [06:37: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)1036044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:37:14]POST & json_proto [06:37:14]process_json_proto [06:37:14]json parsed OK: [06:37:14]protocol is kg_v1.0 [06:37:14]action value=close_receipt [06:37:14]process_action close_receipt [06:37:14]cmd_close_receipt [06:37:14]MH_GetDate [06:37:14]Write to MH i2c: F0 00 00 AF 4B E9 [06:37:14]Write i2c OK [06:37:14]MH_I2C_Read... [06:37:14]Read from MH i2c: F0 [06:37:14]MH_I2C_Read... [06:37:14]Read from MH i2c: F0 09 00 [06:37:14]MH_I2C_Read... [06:37:14]Read from MH i2c: F0 09 00 AF 4B 00 9D 96 C1 66 34 48 D8 65 05 [06:37:14]GetLastDocTimeStamp 1723962958 [06:37:14]current date 1723963037 [06:37:14]FM_GetShiftState [06:37:14]SAM_PROTO_GetShiftState [06:37:14]wFMCommunicate request_size=4 [06:37:14]MH_SAM_APDU [06:37:14]CAPDU: 80 13 01 00 [06:37:14]Write to MH i2c: E2 08 00 B0 4B 80 13 01 00 00 00 00 00 78 [06:37:14]Write i2c OK [06:37:14]MH_I2C_Read... [06:37:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:37:14]Read from MH i2c: E2 [06:37:14]MH_I2C_Read... [06:37:14]Read from MH i2c: E2 0E 00 [06:37:14]MH_I2C_Read... [06:37:14]Read from MH i2c: E2 0E 00 B0 4B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B5 [06:37:14]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [06:37:14]wFMCommunicate OK [06:37:14]SAM_PROTO_GetShiftState done [06:37:14]FM_GetShiftState done [06:37:14]opened in 1723940556 [06:37:14]opened+sec_in_day 1724026956 [06:37:14]quantity*price = 50036 [06:37:14]sum+1 = 50037 [06:37:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 58 18.08.2024 06:37 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260500 ФПД: 264703347677333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T063717&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260500&fm=264703347677333&tin=02508201610067®Number=0000000000091865&sum=50000 [06:37:15]StoreToDocumentArchive [06:37:15]shift 449 fd 260500 [06:37:15]save to /storage/0449/doc_00260500 [06:37:15]save last doc name /storage/0449/doc_00260500 to /storage/kkm_last_doc_name [06:37:15]save OK [06:37:15]Clear old archive folders... [06:37:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:37:15]tlvbuf is 00417C40 [06:37:15]SAM_PROTO_ClearQueue [06:37:15]wFMCommunicate request_size=4 [06:37:15]MH_SAM_APDU [06:37:15]CAPDU: 80 09 00 00 [06:37:15]Write to MH i2c: E2 08 00 BD 4B 80 09 00 00 00 00 00 00 7A [06:37:15]Write i2c OK [06:37:15]MH_I2C_Read... [06:37:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:37:15]Read from MH i2c: E2 [06:37:15]MH_I2C_Read... [06:37:15]Read from MH i2c: E2 03 00 [06:37:15]MH_I2C_Read... [06:37:15]Read from MH i2c: E2 03 00 BD 4B 00 90 00 7C [06:37:15]RAPDU: 90 00 [06:37:15]wFMCommunicate OK [06:37:15]SAM_PROTO_ClearQueue done [06:37:15]KKMCreateOFDPacket [06:37:15]OFDProtocolAddRootSTLVToBuf [06:37:15]FM_MakeSignedData [06:37:15]FM_MakeSignedData [06:37:15]SAM_PROTO_SignData [06:37:15]wFMCommunicate request_size=4 [06:37:15]MH_SAM_APDU [06:37:15]CAPDU: 80 0D 01 02 [06:37:15]Write to MH i2c: E2 08 00 BE 4B 80 0D 01 02 00 00 00 00 82 [06:37:15]Write i2c OK [06:37:15]MH_I2C_Read... [06:37:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:37:15]Read from MH i2c: E2 [06:37:15]MH_I2C_Read... [06:37:15]Read from MH i2c: E2 03 00 [06:37:15]MH_I2C_Read... [06:37:15]Read from MH i2c: E2 03 00 BE 4B 00 90 00 7D [06:37:15]RAPDU: 90 00 [06:37:15]wFMCommunicate OK [06:37:15]wFMCommunicate request_size=255 [06:37:15]MH_SAM_APDU [06:37:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3A 00 00 00 F4 03 04 00 9D 96 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 94 F9 03 00 35 04 06 00 F0 [06:37:15]Write to MH i2c: E2 02 01 BF 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3A 00 00 00 F4 03 04 00 9D 96 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 94 F9 03 00 35 04 06 00 F0 00 00 D5 [06:37:15]Write i2c OK [06:37:15]MH_I2C_Read... [06:37:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:37:15]Read from MH i2c: E2 [06:37:15]MH_I2C_Read... [06:37:15]Read from MH i2c: E2 03 00 [06:37:15]MH_I2C_Read... [06:37:15]Read from MH i2c: E2 03 00 BF 4B 00 90 00 7E [06:37:15]RAPDU: 90 00 [06:37:15]wFMCommunicate OK [06:37:15]wFMCommunicate request_size=10 [06:37:15]MH_SAM_APDU [06:37:15]CAPDU: 80 0D 02 02 05 BF 0D 02 58 95 [06:37:15]Write to MH i2c: E2 0D 00 C0 4B 80 0D 02 02 05 00 BF 0D 02 58 95 00 00 4A [06:37:15]Write i2c OK [06:37:15]MH_I2C_Read... [06:37:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:37:15]Read from MH i2c: E2 [06:37:15]MH_I2C_Read... [06:37:15]Read from MH i2c: E2 03 00 [06:37:15]MH_I2C_Read... [06:37:15]Read from MH i2c: E2 03 00 C0 4B 00 90 00 7F [06:37:15]RAPDU: 90 00 [06:37:15]wFMCommunicate OK [06:37:15]wFMCommunicate request_size=4 [06:37:15]MH_SAM_APDU [06:37:15]CAPDU: 80 0D 03 02 [06:37:15]Write to MH i2c: E2 08 00 C1 4B 80 0D 03 02 00 00 00 00 87 [06:37:15]Write i2c OK [06:37:15]MH_I2C_Read... [06:37:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:37:15]Read from MH i2c: E2 [06:37:15]MH_I2C_Read... [06:37:15]Read from MH i2c: E2 0B 00 [06:37:15]MH_I2C_Read... [06:37:15]Read from MH i2c: E2 0B 00 C1 4B 00 7D 6E 22 FF 92 1B 99 CC 90 00 A6 [06:37:15]RAPDU: 7D 6E 22 FF 92 1B 99 CC 90 00 [06:37:15]wFMCommunicate OK [06:37:15]SAM_PROTO_SignData done [06:37:15]FM_MakeSignedData done [06:37:15]CreateOFDProtocolMessage [06:37:15]wFMCommunicate request_size=4 [06:37:15]MH_SAM_APDU [06:37:15]CAPDU: 80 11 00 00 [06:37:15]Write to MH i2c: E2 08 00 C2 4B 80 11 00 00 00 00 00 00 87 [06:37:15]Write i2c OK [06:37:15]MH_I2C_Read... [06:37:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:37:15]Read from MH i2c: E2 [06:37:15]MH_I2C_Read... [06:37:15]Read from MH i2c: E2 17 00 [06:37:15]MH_I2C_Read... [06:37:15]Read from MH i2c: E2 17 00 C2 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D4 [06:37:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [06:37:15]wFMCommunicate OK [06:37:15]CreateOFDProtocolMessage done [06:37:15]OFDSenderStorePacket 260500 [06:37:15]StoreOFDPacket docnum=260500 [06:37:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 D9 DD 07 01 3A CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3A 00 00 00 F4 03 04 00 9D 96 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 94 F9 03 00 35 04 06 00 F0 BF 0D 02 58 95 7D 6E 22 FF 92 1B 99 CC [06:37:15]CheckFolder [06:37:15]dirname=/storage/ofd_packets [06:37:15]CheckFolder done [06:37:15]ProducePacketName [06:37:15]name=ofd_packets/00260500 [06:37:15]NVStorageSaveData ofd_packets/00260500 [06:37:15]File name is /storage/ofd_packets/00260500 [06:37:15]Write 301 bytes [06:37:15]NVStorageSaveData done [06:37:15]OFDSenderStorePacket done [06:37:15]KKMCreateOFDPacket done [06:37:15]NVStorageSaveData kkm_last_timestamp [06:37:15]File name is /storage/kkm_last_timestamp [06:37:15]Write 4 bytes [06:37:15]NVStorageSaveData done [06:37:15]ExternCall_PrintAddStr [06:37:15]wPrintStart [06:37:15]Write to MH i2c: 01 00 00 C3 4B 0E [06:37:15]Write i2c OK [06:37:15]MH_I2C_Read... [06:37:15]Read from MH i2c: 01 [06:37:15]MH_I2C_Read... [06:37:15]Read from MH i2c: 01 07 00 [06:37:15]MH_I2C_Read... [06:37:15]Read from MH i2c: 01 07 00 C3 4B 00 00 00 00 00 FF 0F 23 [06:37:15]RasterBufferAndPrint [06:37:15]line Счет N : (1)1036044 [06:37:15]line ИНН: 02508201610067 [06:37:15]line Контрольно-Кассовый Чек [06:37:15]line ПРОДАЖА [06:37:15]line ТРК (МРК, ГНК) : 22 [06:37:15]line Товар: 2710124130 [06:37:15]line Аи-92-К-5 [06:37:15]line 7.380 * 67.80 [06:37:15]line = 500.36 [06:37:15]line НДС 12% НСП 1% [06:37:15]line > о реализуемом товаре [06:37:15]line ОКРУГЛЕНИЕ: -0.36 [06:37:15]line ИТОГО: 500.00 [06:37:15]line Внесено: 500.00 [06:37:15]line СДАЧА: 0.00 [06:37:15]line НСП 1% : 4.43 [06:37:15]line НДС 12% : 53.14 [06:37:15]line Наличными: 500.00 [06:37:15]line Безнал.: 0.00 [06:37:15]line Место: АЗС № 94 "Партнер Нефть" [06:37:15]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [06:37:15]line СНО: Общий режим [06:37:15]line Чек 58 18.08.2024 06:37 [06:37:15]line Смена: 449 ФФД: 1.0 [06:37:15]line ЗНМ: 0300000099 [06:37:15]line РНМ: 0000000000091865 [06:37:15]line Версия ККМ: 001 [06:37:15]line ФМ: 0000000000871820 [06:37:15]line ФД: 260500 [06:37:15]line ФПД: 264703347677333 [06:37:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T063717&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260500&fm=264703347677333&tin=02508201610067®Number=0000000000091865&sum=50000 [06:37:16]written 0, free lines is 4095 [06:37:16]OFD Sender: Processing packet 260500 [packets to send 192, broken 191] [06:37:16]ProducePacketName [06:37:16]name=ofd_packets/00260500 [06:37:16]OFD Sender: To server: pG, [06:37:16]CommunicateWithHost lk.salyk.kg:30040 [06:37:16]ConnectInit lk.salyk.kg [06:37:16]Connected sock=10 [06:37: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 30 0F 01 00 00 D9 DD 07 01 3A CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3A 00 00 00 F4 03 04 00 9D 96 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 94 F9 03 00 35 04 06 00 F0 BF 0D 02 58 95 7D 6E 22 FF 92 1B 99 CC [06:37: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 30 4F 00 00 00 4A FC 47 00 A9 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 30 10 04 04 00 94 F9 03 00 F4 03 04 00 F3 3F C1 66 B6 04 01 00 00 10 DE 56 8F AD C4 71 18 [06:37:16]CommunicateWithHost err = 0 [06:37:16]CheckOFDResponse [06:37:16]1017 (14) - 77093643461234 [06:37:16]1041 (16) - 0000000000871820 [06:37:16]1040 (4) - 260500 [06:37:16]1012 (4) - 18.08.2024 00:27 [06:37:16]1206 (1) - 0 [06:37:16]OFD Sender: Remove packet 260500 [06:37:16]ProducePacketName [06:37:16]name=ofd_packets/00260500 [06:37:16]NVStorageDeleteData [06:37:16]Write to MH i2c: 01 00 00 EE 4B 39 [06:37:16]Write i2c OK [06:37:16]MH_I2C_Read... [06:37:16]Read from MH i2c: 01 [06:37:16]MH_I2C_Read... [06:37:16]Read from MH i2c: 01 07 00 [06:37:16]MH_I2C_Read... [06:37:16]Read from MH i2c: 01 07 00 EE 4B 00 00 00 00 00 6E 0C BA [06:37:16]RasterBufferAndPrint [06:37:16]line [06:37:16]line [06:37:16]line [06:37:16]line [06:37:16]line [06:37:16]written 0, free lines is 3185 [06:37:16]MH_Cut [06:37:16]Write to MH i2c: D1 01 00 F5 4B 01 12 [06:37:16]Write i2c OK [06:37:16]MH_I2C_Read... [06:37:16]Read from MH i2c: D1 [06:37:16]MH_I2C_Read... [06:37:16]Read from MH i2c: D1 01 00 [06:37:16]MH_I2C_Read... [06:37:16]Read from MH i2c: D1 01 00 F5 4B 00 11 [06:37:16]Write to MH i2c: 01 00 00 F6 4B 41 [06:37:16]Write i2c OK [06:37:16]MH_I2C_Read... [06:37:16]OFD Sender: No OFD packet to send [06:37:17]*** Cut start [06:37:17]*** Purtial cut [06:37:17]*** Stage 1: CUTSNS_PIN = 1 [06:37:19]Read from MH i2c: 01 [06:37:19]MH_I2C_Read... [06:37:19]*** Stop cut motor [06:37:19]*** Cut end [06:37:19]Read from MH i2c: 01 07 00 [06:37:19]MH_I2C_Read... [06:37:19]Read from MH i2c: 01 07 00 F6 4B 00 00 00 00 00 FF 0F 56 [06:37:19]process_action close_receipt done [06:37:19]requested_data is exist [06:37:19]produce_requested_data [06:37:19]requested_item fm.sn is exist - process it [06:37:19]wFMCommunicate request_size=4 [06:37:19]MH_SAM_APDU [06:37:19]CAPDU: 80 11 00 00 [06:37:19]Write to MH i2c: E2 08 00 F7 4B 80 11 00 00 00 00 00 00 BC [06:37:19]Write i2c OK [06:37:19]MH_I2C_Read... [06:37:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:37:19]Read from MH i2c: E2 [06:37:19]MH_I2C_Read... [06:37:19]Read from MH i2c: E2 17 00 [06:37:19]MH_I2C_Read... [06:37:19]Read from MH i2c: E2 17 00 F7 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 09 [06:37:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [06:37:19]wFMCommunicate OK [06:37:19]requested_item fd.num is exist - process it [06:37:19]SAM_PROTO_GetFieldsCounters [06:37:19]wFMCommunicate request_size=4 [06:37:19]MH_SAM_APDU [06:37:19]CAPDU: 80 13 00 00 [06:37:19]Write to MH i2c: E2 08 00 F8 4B 80 13 00 00 00 00 00 00 BF [06:37:19]Write i2c OK [06:37:19]MH_I2C_Read... [06:37:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:37:19]Read from MH i2c: E2 [06:37:19]MH_I2C_Read... [06:37:19]Read from MH i2c: E2 62 00 [06:37:19]MH_I2C_Read... [06:37:19]Read from MH i2c: E2 62 00 F8 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 94 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [06:37: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 94 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:37:19]wFMCommunicate OK [06:37:19]SAM_PROTO_GetFieldsCounters done [06:37:19]requested_item shift.num is exist - process it [06:37:19]requested_item shift.opened is exist - process it [06:37:19]req_shift_opened [06:37:19]FM_GetShiftState [06:37:19]SAM_PROTO_GetShiftState [06:37:19]wFMCommunicate request_size=4 [06:37:19]MH_SAM_APDU [06:37:19]CAPDU: 80 13 01 00 [06:37:19]Write to MH i2c: E2 08 00 F9 4B 80 13 01 00 00 00 00 00 C1 [06:37:19]Write i2c OK [06:37:19]MH_I2C_Read... [06:37:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:37:19]Read from MH i2c: E2 [06:37:19]MH_I2C_Read... [06:37:19]Read from MH i2c: E2 0E 00 [06:37:19]MH_I2C_Read... [06:37:19]Read from MH i2c: E2 0E 00 F9 4B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 FE [06:37:19]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [06:37:19]wFMCommunicate OK [06:37:19]SAM_PROTO_GetShiftState done [06:37:19]FM_GetShiftState done [06:37:19]req_shift_opened done [06:37:19]requested_item shift.open_date is exist - process it [06:37:19]req_shift_open_date [06:37:19]req_shift_open_date done [06:37:19]produce_requested_data done [06:37:19]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260500,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [06:37:19]process_action_free close_receipt [06:37:19]json_value_free [06:37:19]json_value_free done [06:37:19]process_json_proto returns [06:37:19]Send response to host [06:37:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260500,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [06:37:19]free response buf [06:37:19]execute_script done [06:37:19]execute_script returns [06:37:19]free content buf [06:37:19]Sock 7.Close socket [06:37:19]Sock 7.Thread stoped [06:37:21]OFD Sender: No OFD packet to send [06:37:26]OFD Sender: No OFD packet to send [06:37:31]OFD Sender: No OFD packet to send [06:37:36]OFD Sender: No OFD packet to send [06:37:41]OFD Sender: No OFD packet to send [06:37:46]OFD Sender: No OFD packet to send [06:37:51]OFD Sender: No OFD packet to send [06:37:56]OFD Sender: No OFD packet to send [06:38:01]OFD Sender: No OFD packet to send [06:38:06]OFD Sender: No OFD packet to send [06:38:12]OFD Sender: No OFD packet to send [06:38:13]accept exits with 9 [06:38:13]New connection [06:38:13]New thread 3066617188 created [06:38:13]Thread 3066473828 joined [06:38:13]Waiting for new connection... [06:38:13] Sock 9.Parse request [06:38:13]Sock 9.Check first char [06:38:13]Sock 9.First char is OK [06:38:13]request: POST /json_proto HTTP/1.0 [06:38:13]Method: POST [06:38:13]URL: /json_proto [06:38:13]Method is POST - this is cgi request [06:38:13]url: /json_proto [06:38:13]query_string will be loaded in cgi processing [06:38:13]execute_cgi json_proto POST (null) [06:38:13]execute_cgi path=json_proto method=POST [06:38:13]POST find Content-Length [06:38:13]Host: 172.17.55.133:8080 [06:38:13]Content-Length: 755 [06:38:13]Content-Type: application/json [06:38:13] [06:38:13]POST finish read [06:38:13]Found Content-Length = 755 [06:38:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30075479", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:38:13]execute_script... [06:38:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30075479", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:38:13]POST & json_proto [06:38:13]process_json_proto [06:38:13]json parsed OK: [06:38:13]protocol is kg_v1.0 [06:38:13]action value=close_receipt [06:38:13]process_action close_receipt [06:38:13]cmd_close_receipt [06:38:13]MH_GetDate [06:38:13]Write to MH i2c: F0 00 00 FA 4B 34 [06:38:13]Write i2c OK [06:38:13]MH_I2C_Read... [06:38:13]Read from MH i2c: F0 [06:38:13]MH_I2C_Read... [06:38:13]Read from MH i2c: F0 09 00 [06:38:13]MH_I2C_Read... [06:38:13]Read from MH i2c: F0 09 00 FA 4B 00 D8 96 C1 66 34 48 D8 65 8B [06:38:13]GetLastDocTimeStamp 1723963037 [06:38:13]current date 1723963096 [06:38:13]FM_GetShiftState [06:38:13]SAM_PROTO_GetShiftState [06:38:13]wFMCommunicate request_size=4 [06:38:13]MH_SAM_APDU [06:38:13]CAPDU: 80 13 01 00 [06:38:13]Write to MH i2c: E2 08 00 FB 4B 80 13 01 00 00 00 00 00 C3 [06:38:13]Write i2c OK [06:38:13]MH_I2C_Read... [06:38:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:38:13]Read from MH i2c: E2 [06:38:13]MH_I2C_Read... [06:38:13]Read from MH i2c: E2 0E 00 [06:38:13]MH_I2C_Read... [06:38:13]Read from MH i2c: E2 0E 00 FB 4B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 00 [06:38:13]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [06:38:13]wFMCommunicate OK [06:38:13]SAM_PROTO_GetShiftState done [06:38:13]FM_GetShiftState done [06:38:13]opened in 1723940556 [06:38:13]opened+sec_in_day 1724026956 [06:38:13]quantity*price = 0 [06:38:13]sum+1 = 1 [06:38:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 59 18.08.2024 06:38 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: ТК ГПНА Online 30075479 ФМ: 0000000000871820 ФД: 260501 ФПД: 233232160788731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T063817&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260501&fm=233232160788731&tin=02508201610067®Number=0000000000091865&sum=0 [06:38:14]StoreToDocumentArchive [06:38:14]shift 449 fd 260501 [06:38:14]save to /storage/0449/doc_00260501 [06:38:14]save last doc name /storage/0449/doc_00260501 to /storage/kkm_last_doc_name [06:38:14]save OK [06:38:14]Clear old archive folders... [06:38:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:38:14]tlvbuf is 004F7780 [06:38:14]SAM_PROTO_ClearQueue [06:38:14]wFMCommunicate request_size=4 [06:38:14]MH_SAM_APDU [06:38:14]CAPDU: 80 09 00 00 [06:38:14]Write to MH i2c: E2 08 00 08 4C 80 09 00 00 00 00 00 00 C6 [06:38:14]Write i2c OK [06:38:14]MH_I2C_Read... [06:38:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:38:14]Read from MH i2c: E2 [06:38:14]MH_I2C_Read... [06:38:14]Read from MH i2c: E2 03 00 [06:38:14]MH_I2C_Read... [06:38:14]Read from MH i2c: E2 03 00 08 4C 00 90 00 C8 [06:38:14]RAPDU: 90 00 [06:38:14]wFMCommunicate OK [06:38:14]SAM_PROTO_ClearQueue done [06:38:14]KKMCreateOFDPacket [06:38:14]OFDProtocolAddRootSTLVToBuf [06:38:14]FM_MakeSignedData [06:38:14]FM_MakeSignedData [06:38:14]SAM_PROTO_SignData [06:38:14]wFMCommunicate request_size=4 [06:38:14]MH_SAM_APDU [06:38:14]CAPDU: 80 0D 01 02 [06:38:14]Write to MH i2c: E2 08 00 09 4C 80 0D 01 02 00 00 00 00 CE [06:38:14]Write i2c OK [06:38:14]MH_I2C_Read... [06:38:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:38:14]Read from MH i2c: E2 [06:38:14]MH_I2C_Read... [06:38:14]Read from MH i2c: E2 03 00 [06:38:14]MH_I2C_Read... [06:38:14]Read from MH i2c: E2 03 00 09 4C 00 90 00 C9 [06:38:14]RAPDU: 90 00 [06:38:14]wFMCommunicate OK [06:38:14]wFMCommunicate request_size=255 [06:38:14]MH_SAM_APDU [06:38:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 D9 96 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 95 F9 03 00 35 04 06 00 D4 [06:38:14]Write to MH i2c: E2 02 01 0A 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 D9 96 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 95 F9 03 00 35 04 06 00 D4 00 00 73 [06:38:14]Write i2c OK [06:38:14]MH_I2C_Read... [06:38:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:38:15]Read from MH i2c: E2 [06:38:15]MH_I2C_Read... [06:38:15]Read from MH i2c: E2 03 00 [06:38:15]MH_I2C_Read... [06:38:15]Read from MH i2c: E2 03 00 0A 4C 00 90 00 CA [06:38:15]RAPDU: 90 00 [06:38:15]wFMCommunicate OK [06:38:15]wFMCommunicate request_size=10 [06:38:15]MH_SAM_APDU [06:38:15]CAPDU: 80 0D 02 02 05 1F 98 18 10 FB [06:38:15]Write to MH i2c: E2 0D 00 0B 4C 80 0D 02 02 05 00 1F 98 18 10 FB 00 00 B5 [06:38:15]Write i2c OK [06:38:15]MH_I2C_Read... [06:38:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:38:15]Read from MH i2c: E2 [06:38:15]MH_I2C_Read... [06:38:15]Read from MH i2c: E2 03 00 [06:38:15]MH_I2C_Read... [06:38:15]Read from MH i2c: E2 03 00 0B 4C 00 90 00 CB [06:38:15]RAPDU: 90 00 [06:38:15]wFMCommunicate OK [06:38:15]wFMCommunicate request_size=4 [06:38:15]MH_SAM_APDU [06:38:15]CAPDU: 80 0D 03 02 [06:38:15]Write to MH i2c: E2 08 00 0C 4C 80 0D 03 02 00 00 00 00 D3 [06:38:15]Write i2c OK [06:38:15]MH_I2C_Read... [06:38:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:38:15]Read from MH i2c: E2 [06:38:15]MH_I2C_Read... [06:38:15]Read from MH i2c: E2 0B 00 [06:38:15]MH_I2C_Read... [06:38:15]Read from MH i2c: E2 0B 00 0C 4C 00 81 E5 0B 07 97 CB 55 18 90 00 1B [06:38:15]RAPDU: 81 E5 0B 07 97 CB 55 18 90 00 [06:38:15]wFMCommunicate OK [06:38:15]SAM_PROTO_SignData done [06:38:15]FM_MakeSignedData done [06:38:15]CreateOFDProtocolMessage [06:38:15]wFMCommunicate request_size=4 [06:38:15]MH_SAM_APDU [06:38:15]CAPDU: 80 11 00 00 [06:38:15]Write to MH i2c: E2 08 00 0D 4C 80 11 00 00 00 00 00 00 D3 [06:38:15]Write i2c OK [06:38:15]MH_I2C_Read... [06:38:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:38:15]Read from MH i2c: E2 [06:38:15]MH_I2C_Read... [06:38:15]Read from MH i2c: E2 17 00 [06:38:15]MH_I2C_Read... [06:38:15]Read from MH i2c: E2 17 00 0D 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 20 [06:38:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [06:38:15]wFMCommunicate OK [06:38:15]CreateOFDProtocolMessage done [06:38:15]OFDSenderStorePacket 260501 [06:38:15]StoreOFDPacket docnum=260501 [06:38:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 F7 14 07 01 B5 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 D9 96 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 95 F9 03 00 35 04 06 00 D4 1F 98 18 10 FB 81 E5 0B 07 97 CB 55 18 [06:38:15]CheckFolder [06:38:15]dirname=/storage/ofd_packets [06:38:15]CheckFolder done [06:38:15]ProducePacketName [06:38:15]name=ofd_packets/00260501 [06:38:15]NVStorageSaveData ofd_packets/00260501 [06:38:15]File name is /storage/ofd_packets/00260501 [06:38:15]Write 301 bytes [06:38:15]NVStorageSaveData done [06:38:15]OFDSenderStorePacket done [06:38:15]KKMCreateOFDPacket done [06:38:15]NVStorageSaveData kkm_last_timestamp [06:38:15]File name is /storage/kkm_last_timestamp [06:38:15]Write 4 bytes [06:38:15]NVStorageSaveData done [06:38:15]ExternCall_PrintAddStr [06:38:15]wPrintStart [06:38:15]Write to MH i2c: 01 00 00 0E 4C 5A [06:38:15]Write i2c OK [06:38:15]MH_I2C_Read... [06:38:15]Read from MH i2c: 01 [06:38:15]MH_I2C_Read... [06:38:15]Read from MH i2c: 01 07 00 [06:38:15]MH_I2C_Read... [06:38:15]Read from MH i2c: 01 07 00 0E 4C 00 00 00 00 00 FF 0F 6F [06:38:15]RasterBufferAndPrint [06:38:15]line Счет N : (1)1036043 [06:38:15]line ИНН: 02508201610067 [06:38:15]line Контрольно-Кассовый Чек [06:38:15]line ПРОДАЖА [06:38:15]line ТРК (МРК, ГНК) : 32 [06:38:15]line Товар: 2710124130 [06:38:15]line Аи-92-К-5 [06:38:15]line 30.000 * 0.00 [06:38:15]line = 0.00 [06:38:15]line НДС 12% НСП 1% [06:38:15]line > о реализуемом товаре [06:38:15]line ИТОГО: 0.00 [06:38:15]line НСП 1% : 0.00 [06:38:15]line НДС 12% : 0.00 [06:38:15]line Наличными: 0.00 [06:38:15]line Безнал.: 0.00 [06:38:15]line Место: АЗС № 94 "Партнер Нефть" [06:38:15]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [06:38:15]line СНО: Общий режим [06:38:15]line Чек 59 18.08.2024 06:38 [06:38:15]line Смена: 449 ФФД: 1.0 [06:38:15]line ЗНМ: 0300000099 [06:38:15]line РНМ: 0000000000091865 [06:38:15]line Версия ККМ: 001 [06:38:15]line Талоны: ТК ГПНА Online [06:38:15]line 30075479 [06:38:15]line ФМ: 0000000000871820 [06:38:15]line ФД: 260501 [06:38:15]line ФПД: 233232160788731 [06:38:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T063817&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260501&fm=233232160788731&tin=02508201610067®Number=0000000000091865&sum=0 [06:38:15]written 0, free lines is 4095 [06:38:15]OFD Sender: Processing packet 260501 [packets to send 192, broken 191] [06:38:15]ProducePacketName [06:38:15]name=ofd_packets/00260501 [06:38:15]OFD Sender: To server: pG, [06:38:15]CommunicateWithHost lk.salyk.kg:30040 [06:38:15]ConnectInit lk.salyk.kg [06:38:15]Connected sock=7 [06:38: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 30 0F 01 00 00 F7 14 07 01 B5 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 D9 96 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 95 F9 03 00 35 04 06 00 D4 1F 98 18 10 FB 81 E5 0B 07 97 CB 55 18 [06:38: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 30 4F 00 00 00 9D 81 47 00 DF 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 30 10 04 04 00 95 F9 03 00 F4 03 04 00 2E 40 C1 66 B6 04 01 00 00 C1 7A 52 33 23 3A 46 D5 [06:38:15]CommunicateWithHost err = 0 [06:38:15]CheckOFDResponse [06:38:15]1017 (14) - 77093643461234 [06:38:15]1041 (16) - 0000000000871820 [06:38:15]1040 (4) - 260501 [06:38:15]1012 (4) - 18.08.2024 00:28 [06:38:15]1206 (1) - 0 [06:38:15]OFD Sender: Remove packet 260501 [06:38:15]ProducePacketName [06:38:15]name=ofd_packets/00260501 [06:38:15]NVStorageDeleteData [06:38:15]Write to MH i2c: 01 00 00 38 4C 84 [06:38:15]Write i2c OK [06:38:15]MH_I2C_Read... [06:38:15]Read from MH i2c: 01 [06:38:15]MH_I2C_Read... [06:38:15]Read from MH i2c: 01 07 00 [06:38:15]MH_I2C_Read... [06:38:15]Read from MH i2c: 01 07 00 38 4C 00 00 00 00 00 97 0C 2E [06:38:15]RasterBufferAndPrint [06:38:15]line [06:38:15]line [06:38:15]line [06:38:15]line [06:38:15]line [06:38:15]written 0, free lines is 3227 [06:38:15]MH_Cut [06:38:15]Write to MH i2c: D1 01 00 3F 4C 01 5D [06:38:15]Write i2c OK [06:38:15]MH_I2C_Read... [06:38:15]Read from MH i2c: D1 [06:38:15]MH_I2C_Read... [06:38:15]Read from MH i2c: D1 01 00 [06:38:15]MH_I2C_Read... [06:38:15]Read from MH i2c: D1 01 00 3F 4C 00 5C [06:38:15]Write to MH i2c: 01 00 00 40 4C 8C [06:38:15]Write i2c OK [06:38:15]MH_I2C_Read... [06:38:16]OFD Sender: No OFD packet to send [06:38:16]*** Cut start [06:38:16]*** Purtial cut [06:38:16]*** Stage 1: CUTSNS_PIN = 1 [06:38:18]Read from MH i2c: 01 [06:38:18]MH_I2C_Read... [06:38:18]*** Stop cut motor [06:38:18]*** Cut end [06:38:18]Read from MH i2c: 01 07 00 [06:38:18]MH_I2C_Read... [06:38:18]Read from MH i2c: 01 07 00 40 4C 00 00 00 00 00 FF 0F A1 [06:38:18]process_action close_receipt done [06:38:18]requested_data is exist [06:38:18]produce_requested_data [06:38:18]requested_item fm.sn is exist - process it [06:38:18]wFMCommunicate request_size=4 [06:38:18]MH_SAM_APDU [06:38:18]CAPDU: 80 11 00 00 [06:38:18]Write to MH i2c: E2 08 00 41 4C 80 11 00 00 00 00 00 00 07 [06:38:18]Write i2c OK [06:38:18]MH_I2C_Read... [06:38:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:38:18]Read from MH i2c: E2 [06:38:18]MH_I2C_Read... [06:38:18]Read from MH i2c: E2 17 00 [06:38:18]MH_I2C_Read... [06:38:18]Read from MH i2c: E2 17 00 41 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 54 [06:38:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [06:38:18]wFMCommunicate OK [06:38:18]requested_item fd.num is exist - process it [06:38:18]SAM_PROTO_GetFieldsCounters [06:38:18]wFMCommunicate request_size=4 [06:38:18]MH_SAM_APDU [06:38:18]CAPDU: 80 13 00 00 [06:38:18]Write to MH i2c: E2 08 00 42 4C 80 13 00 00 00 00 00 00 0A [06:38:18]Write i2c OK [06:38:18]MH_I2C_Read... [06:38:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:38:19]Read from MH i2c: E2 [06:38:19]MH_I2C_Read... [06:38:19]Read from MH i2c: E2 62 00 [06:38:19]MH_I2C_Read... [06:38:19]Read from MH i2c: E2 62 00 42 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 95 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [06:38: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 95 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:38:19]wFMCommunicate OK [06:38:19]SAM_PROTO_GetFieldsCounters done [06:38:19]requested_item shift.num is exist - process it [06:38:19]requested_item shift.opened is exist - process it [06:38:19]req_shift_opened [06:38:19]FM_GetShiftState [06:38:19]SAM_PROTO_GetShiftState [06:38:19]wFMCommunicate request_size=4 [06:38:19]MH_SAM_APDU [06:38:19]CAPDU: 80 13 01 00 [06:38:19]Write to MH i2c: E2 08 00 43 4C 80 13 01 00 00 00 00 00 0C [06:38:19]Write i2c OK [06:38:19]MH_I2C_Read... [06:38:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:38:19]Read from MH i2c: E2 [06:38:19]MH_I2C_Read... [06:38:19]Read from MH i2c: E2 0E 00 [06:38:19]MH_I2C_Read... [06:38:19]Read from MH i2c: E2 0E 00 43 4C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 49 [06:38:19]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [06:38:19]wFMCommunicate OK [06:38:19]SAM_PROTO_GetShiftState done [06:38:19]FM_GetShiftState done [06:38:19]req_shift_opened done [06:38:19]requested_item shift.open_date is exist - process it [06:38:19]req_shift_open_date [06:38:19]req_shift_open_date done [06:38:19]produce_requested_data done [06:38:19]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260501,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [06:38:19]process_action_free close_receipt [06:38:19]json_value_free [06:38:19]json_value_free done [06:38:19]process_json_proto returns [06:38:19]Send response to host [06:38:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260501,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [06:38:19]free response buf [06:38:19]execute_script done [06:38:19]execute_script returns [06:38:19]free content buf [06:38:19]Sock 9.Close socket [06:38:19]Sock 9.Thread stoped [06:38:21]OFD Sender: No OFD packet to send [06:38:26]OFD Sender: No OFD packet to send [06:38:31]OFD Sender: No OFD packet to send [06:38:36]OFD Sender: No OFD packet to send [06:38:41]OFD Sender: No OFD packet to send [06:38:46]OFD Sender: No OFD packet to send [06:38:51]OFD Sender: No OFD packet to send [06:38:56]OFD Sender: No OFD packet to send [06:39:01]OFD Sender: No OFD packet to send [06:39:06]OFD Sender: No OFD packet to send [06:39:11]OFD Sender: No OFD packet to send [06:39:16]OFD Sender: No OFD packet to send [06:39:21]OFD Sender: No OFD packet to send [06:39:26]OFD Sender: No OFD packet to send [06:39:31]OFD Sender: No OFD packet to send [06:39:36]OFD Sender: No OFD packet to send [06:39:41]OFD Sender: No OFD packet to send [06:39:46]OFD Sender: No OFD packet to send [06:39:51]OFD Sender: No OFD packet to send [06:39:56]OFD Sender: No OFD packet to send [06:40:01]OFD Sender: No OFD packet to send [06:40:06]OFD Sender: No OFD packet to send [06:40:11]OFD Sender: No OFD packet to send [06:40:16]OFD Sender: No OFD packet to send [06:40:21]OFD Sender: No OFD packet to send [06:40:26]OFD Sender: No OFD packet to send [06:40:31]OFD Sender: No OFD packet to send [06:40:36]OFD Sender: No OFD packet to send [06:40:41]OFD Sender: No OFD packet to send [06:40:46]OFD Sender: No OFD packet to send [06:40:51]OFD Sender: No OFD packet to send [06:40:56]OFD Sender: No OFD packet to send [06:41:01]accept exits with 10 [06:41:01]New connection [06:41:01]New thread 3066473828 created [06:41:01]Thread 3066617188 joined [06:41:01]Waiting for new connection... [06:41:01] Sock 10.Parse request [06:41:01]Sock 10.Check first char [06:41:01]Sock 10.First char is OK [06:41:01]request: POST /json_proto HTTP/1.0 [06:41:01]Method: POST [06:41:01]URL: /json_proto [06:41:01]Method is POST - this is cgi request [06:41:01]url: /json_proto [06:41:01]query_string will be loaded in cgi processing [06:41:01]execute_cgi json_proto POST (null) [06:41:01]execute_cgi path=json_proto method=POST [06:41:01]POST find Content-Length [06:41:01]Host: 172.17.55.133:8080 [06:41:01]Content-Length: 678 [06:41:01]Content-Type: application/json [06:41:01] [06:41:01]POST finish read [06:41:01]Found Content-Length = 678 [06:41:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:41:01]execute_script... [06:41: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)1036045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:41:01]POST & json_proto [06:41:01]process_json_proto [06:41:01]json parsed OK: [06:41:01]protocol is kg_v1.0 [06:41:01]action value=close_receipt [06:41:01]process_action close_receipt [06:41:01]cmd_close_receipt [06:41:01]MH_GetDate [06:41:01]Write to MH i2c: F0 00 00 44 4C 7F [06:41:01]Write i2c OK [06:41:01]MH_I2C_Read... [06:41:01]Read from MH i2c: F0 [06:41:01]MH_I2C_Read... [06:41:01]Read from MH i2c: F0 09 00 [06:41:01]MH_I2C_Read... [06:41:01]Read from MH i2c: F0 09 00 44 4C 00 80 97 C1 66 34 48 D8 65 7F [06:41:01]GetLastDocTimeStamp 1723963097 [06:41:01]current date 1723963264 [06:41:01]FM_GetShiftState [06:41:01]SAM_PROTO_GetShiftState [06:41:01]wFMCommunicate request_size=4 [06:41:01]MH_SAM_APDU [06:41:01]CAPDU: 80 13 01 00 [06:41:01]Write to MH i2c: E2 08 00 45 4C 80 13 01 00 00 00 00 00 0E [06:41:01]Write i2c OK [06:41:01]MH_I2C_Read... [06:41:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:41:01]Read from MH i2c: E2 [06:41:01]MH_I2C_Read... [06:41:01]Read from MH i2c: E2 0E 00 [06:41:01]MH_I2C_Read... [06:41:01]Read from MH i2c: E2 0E 00 45 4C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 4B [06:41:01]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [06:41:01]wFMCommunicate OK [06:41:01]SAM_PROTO_GetShiftState done [06:41:01]FM_GetShiftState done [06:41:01]opened in 1723940556 [06:41:01]opened+sec_in_day 1724026956 [06:41:01]quantity*price = 50036 [06:41:01]sum+1 = 50037 [06:41:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 60 18.08.2024 06:41 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260502 ФПД: 203154886495473 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T064104&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260502&fm=203154886495473&tin=02508201610067®Number=0000000000091865&sum=50000 [06:41:02]StoreToDocumentArchive [06:41:02]shift 449 fd 260502 [06:41:02]save to /storage/0449/doc_00260502 [06:41:02]save last doc name /storage/0449/doc_00260502 to /storage/kkm_last_doc_name [06:41:02]save OK [06:41:02]Clear old archive folders... [06:41:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:41:02]tlvbuf is 0040C070 [06:41:02]SAM_PROTO_ClearQueue [06:41:02]wFMCommunicate request_size=4 [06:41:02]MH_SAM_APDU [06:41:02]CAPDU: 80 09 00 00 [06:41:02]Write to MH i2c: E2 08 00 52 4C 80 09 00 00 00 00 00 00 10 [06:41:02]Write i2c OK [06:41:02]MH_I2C_Read... [06:41:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:41:02]Read from MH i2c: E2 [06:41:02]MH_I2C_Read... [06:41:02]Read from MH i2c: E2 03 00 [06:41:02]MH_I2C_Read... [06:41:02]Read from MH i2c: E2 03 00 52 4C 00 90 00 12 [06:41:02]RAPDU: 90 00 [06:41:02]wFMCommunicate OK [06:41:02]SAM_PROTO_ClearQueue done [06:41:02]KKMCreateOFDPacket [06:41:02]OFDProtocolAddRootSTLVToBuf [06:41:02]FM_MakeSignedData [06:41:02]FM_MakeSignedData [06:41:02]SAM_PROTO_SignData [06:41:02]wFMCommunicate request_size=4 [06:41:02]MH_SAM_APDU [06:41:02]CAPDU: 80 0D 01 02 [06:41:02]Write to MH i2c: E2 08 00 53 4C 80 0D 01 02 00 00 00 00 18 [06:41:02]Write i2c OK [06:41:02]MH_I2C_Read... [06:41:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:41:02]Read from MH i2c: E2 [06:41:02]MH_I2C_Read... [06:41:02]Read from MH i2c: E2 03 00 [06:41:02]MH_I2C_Read... [06:41:02]Read from MH i2c: E2 03 00 53 4C 00 90 00 13 [06:41:02]RAPDU: 90 00 [06:41:02]wFMCommunicate OK [06:41:02]wFMCommunicate request_size=255 [06:41:02]MH_SAM_APDU [06:41:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3C 00 00 00 F4 03 04 00 80 97 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 96 F9 03 00 35 04 06 00 B8 [06:41:02]Write to MH i2c: E2 02 01 54 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3C 00 00 00 F4 03 04 00 80 97 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 96 F9 03 00 35 04 06 00 B8 00 00 1B [06:41:02]Write i2c OK [06:41:02]MH_I2C_Read... [06:41:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:41:02]Read from MH i2c: E2 [06:41:02]MH_I2C_Read... [06:41:02]Read from MH i2c: E2 03 00 [06:41:02]MH_I2C_Read... [06:41:02]Read from MH i2c: E2 03 00 54 4C 00 90 00 14 [06:41:02]RAPDU: 90 00 [06:41:02]wFMCommunicate OK [06:41:02]wFMCommunicate request_size=10 [06:41:02]MH_SAM_APDU [06:41:02]CAPDU: 80 0D 02 02 05 C4 AE D8 0C F1 [06:41:02]Write to MH i2c: E2 0D 00 55 4C 80 0D 02 02 05 00 C4 AE D8 0C F1 00 00 6C [06:41:02]Write i2c OK [06:41:02]MH_I2C_Read... [06:41:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:41:02]Read from MH i2c: E2 [06:41:02]MH_I2C_Read... [06:41:02]Read from MH i2c: E2 03 00 [06:41:02]MH_I2C_Read... [06:41:02]Read from MH i2c: E2 03 00 55 4C 00 90 00 15 [06:41:02]RAPDU: 90 00 [06:41:02]wFMCommunicate OK [06:41:02]wFMCommunicate request_size=4 [06:41:02]MH_SAM_APDU [06:41:02]CAPDU: 80 0D 03 02 [06:41:02]Write to MH i2c: E2 08 00 56 4C 80 0D 03 02 00 00 00 00 1D [06:41:02]Write i2c OK [06:41:02]MH_I2C_Read... [06:41:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:41:02]Read from MH i2c: E2 [06:41:02]MH_I2C_Read... [06:41:02]Read from MH i2c: E2 0B 00 [06:41:02]MH_I2C_Read... [06:41:02]Read from MH i2c: E2 0B 00 56 4C 00 B1 06 E5 49 3C 5A B4 CA 90 00 17 [06:41:02]RAPDU: B1 06 E5 49 3C 5A B4 CA 90 00 [06:41:02]wFMCommunicate OK [06:41:02]SAM_PROTO_SignData done [06:41:02]FM_MakeSignedData done [06:41:02]CreateOFDProtocolMessage [06:41:02]wFMCommunicate request_size=4 [06:41:02]MH_SAM_APDU [06:41:02]CAPDU: 80 11 00 00 [06:41:02]Write to MH i2c: E2 08 00 57 4C 80 11 00 00 00 00 00 00 1D [06:41:02]Write i2c OK [06:41:02]MH_I2C_Read... [06:41:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:41:02]Read from MH i2c: E2 [06:41:02]MH_I2C_Read... [06:41:02]Read from MH i2c: E2 17 00 [06:41:02]MH_I2C_Read... [06:41:02]Read from MH i2c: E2 17 00 57 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 6A [06:41:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [06:41:02]wFMCommunicate OK [06:41:02]CreateOFDProtocolMessage done [06:41:02]OFDSenderStorePacket 260502 [06:41:02]StoreOFDPacket docnum=260502 [06:41:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 98 F3 07 01 BB 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3C 00 00 00 F4 03 04 00 80 97 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 96 F9 03 00 35 04 06 00 B8 C4 AE D8 0C F1 B1 06 E5 49 3C 5A B4 CA [06:41:02]CheckFolder [06:41:02]dirname=/storage/ofd_packets [06:41:02]CheckFolder done [06:41:02]ProducePacketName [06:41:02]name=ofd_packets/00260502 [06:41:02]NVStorageSaveData ofd_packets/00260502 [06:41:02]File name is /storage/ofd_packets/00260502 [06:41:02]Write 301 bytes [06:41:02]NVStorageSaveData done [06:41:02]OFDSenderStorePacket done [06:41:02]KKMCreateOFDPacket done [06:41:02]NVStorageSaveData kkm_last_timestamp [06:41:02]File name is /storage/kkm_last_timestamp [06:41:02]Write 4 bytes [06:41:02]NVStorageSaveData done [06:41:02]ExternCall_PrintAddStr [06:41:02]wPrintStart [06:41:02]Write to MH i2c: 01 00 00 58 4C A4 [06:41:02]Write i2c OK [06:41:02]MH_I2C_Read... [06:41:02]Read from MH i2c: 01 [06:41:02]MH_I2C_Read... [06:41:02]Read from MH i2c: 01 07 00 [06:41:02]MH_I2C_Read... [06:41:02]Read from MH i2c: 01 07 00 58 4C 00 00 00 00 00 FF 0F B9 [06:41:02]RasterBufferAndPrint [06:41:02]line Счет N : (1)1036045 [06:41:02]line ИНН: 02508201610067 [06:41:02]line Контрольно-Кассовый Чек [06:41:02]line ПРОДАЖА [06:41:02]line ТРК (МРК, ГНК) : 12 [06:41:02]line Товар: 2710124130 [06:41:02]line Аи-92-К-5 [06:41:02]line 7.380 * 67.80 [06:41:02]line = 500.36 [06:41:02]line НДС 12% НСП 1% [06:41:02]line > о реализуемом товаре [06:41:02]line ОКРУГЛЕНИЕ: -0.36 [06:41:02]line ИТОГО: 500.00 [06:41:02]line Внесено: 500.00 [06:41:02]line СДАЧА: 0.00 [06:41:02]line НСП 1% : 4.43 [06:41:02]line НДС 12% : 53.14 [06:41:02]line Наличными: 500.00 [06:41:02]line Безнал.: 0.00 [06:41:02]line Место: АЗС № 94 "Партнер Нефть" [06:41:02]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [06:41:02]line СНО: Общий режим [06:41:02]line Чек 60 18.08.2024 06:41 [06:41:02]line Смена: 449 ФФД: 1.0 [06:41:02]line ЗНМ: 0300000099 [06:41:02]line РНМ: 0000000000091865 [06:41:02]line Версия ККМ: 001 [06:41:02]line ФМ: 0000000000871820 [06:41:02]line ФД: 260502 [06:41:03]line ФПД: 203154886495473 [06:41:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T064104&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260502&fm=203154886495473&tin=02508201610067®Number=0000000000091865&sum=50000 [06:41:03]OFD Sender: Processing packet 260502 [packets to send 192, broken 191] [06:41:03]ProducePacketName [06:41:03]name=ofd_packets/00260502 [06:41:03]OFD Sender: To server: pG, [06:41:03]CommunicateWithHost lk.salyk.kg:30040 [06:41:03]ConnectInit lk.salyk.kg [06:41:03]written 0, free lines is 4095 [06:41:03]Connected sock=9 [06:41: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 30 0F 01 00 00 98 F3 07 01 BB 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3C 00 00 00 F4 03 04 00 80 97 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 96 F9 03 00 35 04 06 00 B8 C4 AE D8 0C F1 B1 06 E5 49 3C 5A B4 CA [06:41: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 30 4F 00 00 00 86 BE 47 00 74 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 30 10 04 04 00 96 F9 03 00 F4 03 04 00 D6 40 C1 66 B6 04 01 00 00 06 64 A6 A5 7D A5 2C 99 [06:41:03]CommunicateWithHost err = 0 [06:41:03]CheckOFDResponse [06:41:03]1017 (14) - 77093643461234 [06:41:03]1041 (16) - 0000000000871820 [06:41:03]1040 (4) - 260502 [06:41:03]1012 (4) - 18.08.2024 00:31 [06:41:03]1206 (1) - 0 [06:41:03]OFD Sender: Remove packet 260502 [06:41:03]ProducePacketName [06:41:03]name=ofd_packets/00260502 [06:41:03]NVStorageDeleteData [06:41:03]Write to MH i2c: 01 00 00 83 4C CF [06:41:03]Write i2c OK [06:41:03]MH_I2C_Read... [06:41:03]Read from MH i2c: 01 [06:41:03]MH_I2C_Read... [06:41:03]Read from MH i2c: 01 07 00 [06:41:03]MH_I2C_Read... [06:41:03]Read from MH i2c: 01 07 00 83 4C 00 00 00 00 00 72 0C 54 [06:41:03]RasterBufferAndPrint [06:41:03]line [06:41:03]line [06:41:03]line [06:41:03]line [06:41:03]line [06:41:03]written 0, free lines is 3189 [06:41:03]MH_Cut [06:41:03]Write to MH i2c: D1 01 00 8A 4C 01 A8 [06:41:03]Write i2c OK [06:41:03]MH_I2C_Read... [06:41:03]Read from MH i2c: D1 [06:41:03]MH_I2C_Read... [06:41:03]Read from MH i2c: D1 01 00 [06:41:03]MH_I2C_Read... [06:41:03]Read from MH i2c: D1 01 00 8A 4C 00 A7 [06:41:03]Write to MH i2c: 01 00 00 8B 4C D7 [06:41:03]Write i2c OK [06:41:03]MH_I2C_Read... [06:41:03]OFD Sender: No OFD packet to send [06:41:04]*** Cut start [06:41:04]*** Purtial cut [06:41:04]*** Stage 1: CUTSNS_PIN = 1 [06:41:06]Read from MH i2c: 01 [06:41:06]MH_I2C_Read... [06:41:06]*** Stop cut motor [06:41:06]*** Cut end [06:41:06]Read from MH i2c: 01 07 00 [06:41:06]MH_I2C_Read... [06:41:06]Read from MH i2c: 01 07 00 8B 4C 00 00 00 00 00 FF 0F EC [06:41:06]process_action close_receipt done [06:41:06]requested_data is exist [06:41:06]produce_requested_data [06:41:06]requested_item fm.sn is exist - process it [06:41:06]wFMCommunicate request_size=4 [06:41:06]MH_SAM_APDU [06:41:06]CAPDU: 80 11 00 00 [06:41:06]Write to MH i2c: E2 08 00 8C 4C 80 11 00 00 00 00 00 00 52 [06:41:06]Write i2c OK [06:41:06]MH_I2C_Read... [06:41:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:41:06]Read from MH i2c: E2 [06:41:06]MH_I2C_Read... [06:41:06]Read from MH i2c: E2 17 00 [06:41:06]MH_I2C_Read... [06:41:06]Read from MH i2c: E2 17 00 8C 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 9F [06:41:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [06:41:06]wFMCommunicate OK [06:41:06]requested_item fd.num is exist - process it [06:41:06]SAM_PROTO_GetFieldsCounters [06:41:06]wFMCommunicate request_size=4 [06:41:06]MH_SAM_APDU [06:41:06]CAPDU: 80 13 00 00 [06:41:06]Write to MH i2c: E2 08 00 8D 4C 80 13 00 00 00 00 00 00 55 [06:41:06]Write i2c OK [06:41:06]MH_I2C_Read... [06:41:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:41:06]Read from MH i2c: E2 [06:41:06]MH_I2C_Read... [06:41:06]Read from MH i2c: E2 62 00 [06:41:06]MH_I2C_Read... [06:41:06]Read from MH i2c: E2 62 00 8D 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 96 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [06:41: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 96 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:41:06]wFMCommunicate OK [06:41:06]SAM_PROTO_GetFieldsCounters done [06:41:06]requested_item shift.num is exist - process it [06:41:06]requested_item shift.opened is exist - process it [06:41:06]req_shift_opened [06:41:06]FM_GetShiftState [06:41:06]SAM_PROTO_GetShiftState [06:41:06]wFMCommunicate request_size=4 [06:41:06]MH_SAM_APDU [06:41:06]CAPDU: 80 13 01 00 [06:41:06]Write to MH i2c: E2 08 00 8E 4C 80 13 01 00 00 00 00 00 57 [06:41:06]Write i2c OK [06:41:06]MH_I2C_Read... [06:41:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:41:06]Read from MH i2c: E2 [06:41:06]MH_I2C_Read... [06:41:06]Read from MH i2c: E2 0E 00 [06:41:06]MH_I2C_Read... [06:41:06]Read from MH i2c: E2 0E 00 8E 4C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 94 [06:41:06]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [06:41:06]wFMCommunicate OK [06:41:06]SAM_PROTO_GetShiftState done [06:41:06]FM_GetShiftState done [06:41:06]req_shift_opened done [06:41:06]requested_item shift.open_date is exist - process it [06:41:06]req_shift_open_date [06:41:06]req_shift_open_date done [06:41:06]produce_requested_data done [06:41:06]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260502,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [06:41:06]process_action_free close_receipt [06:41:06]json_value_free [06:41:06]json_value_free done [06:41:06]process_json_proto returns [06:41:06]Send response to host [06:41:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260502,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [06:41:06]free response buf [06:41:06]execute_script done [06:41:06]execute_script returns [06:41:06]free content buf [06:41:06]Sock 10.Close socket [06:41:06]Sock 10.Thread stoped [06:41:08]OFD Sender: No OFD packet to send [06:41:13]OFD Sender: No OFD packet to send [06:41:18]OFD Sender: No OFD packet to send [06:41:23]OFD Sender: No OFD packet to send [06:41:28]OFD Sender: No OFD packet to send [06:41:33]OFD Sender: No OFD packet to send [06:41:38]OFD Sender: No OFD packet to send [06:41:43]OFD Sender: No OFD packet to send [06:41:48]OFD Sender: No OFD packet to send [06:41:53]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:50]OFD Sender: No OFD packet to send [06:53:55]OFD Sender: No OFD packet to send [06:54:00]OFD Sender: No OFD packet to send [06:54:05]OFD Sender: No OFD packet to send [06:54:10]OFD Sender: No OFD packet to send [06:54:15]OFD Sender: No OFD packet to send [06:54:20]OFD Sender: No OFD packet to send [06:54:25]OFD Sender: No OFD packet to send [06:54:30]OFD Sender: No OFD packet to send [06:54:35]OFD Sender: No OFD packet to send [06:54:40]OFD Sender: No OFD packet to send [06:54:45]OFD Sender: No OFD packet to send [06:54:50]OFD Sender: No OFD packet to send [06:54:55]OFD Sender: No OFD packet to send [06:55:00]OFD Sender: No OFD packet to send [06:55:05]OFD Sender: No OFD packet to send [06:55:10]OFD Sender: No OFD packet to send [06:55:15]OFD Sender: No OFD packet to send [06:55:20]OFD Sender: No OFD packet to send [06:55:25]OFD Sender: No OFD packet to send [06:55:30]OFD Sender: No OFD packet to send [06:55:35]OFD Sender: No OFD packet to send [06:55:40]OFD Sender: No OFD packet to send [06:55:45]OFD Sender: No OFD packet to send [06:55:50]OFD Sender: No OFD packet to send [06:55:55]OFD Sender: No OFD packet to send [06:56:00]OFD Sender: No OFD packet to send [06:56:05]OFD Sender: No OFD packet to send [06:56:10]OFD Sender: No OFD packet to send [06:56:15]OFD Sender: No OFD packet to send [06:56:20]OFD Sender: No OFD packet to send [06:56:25]OFD Sender: No OFD packet to send [06:56:30]OFD Sender: No OFD packet to send [06:56:35]OFD Sender: No OFD packet to send [06:56:40]OFD Sender: No OFD packet to send [06:56:45]OFD Sender: No OFD packet to send [06:56:50]OFD Sender: No OFD packet to send [06:56:55]OFD Sender: No OFD packet to send [06:57:00]OFD Sender: No OFD packet to send [06:57:05]OFD Sender: No OFD packet to send [06:57:06]accept exits with 7 [06:57:06]New connection [06:57:06]New thread 3066617188 created [06:57:06]Thread 3066473828 joined [06:57:06]Waiting for new connection... [06:57:06] Sock 7.Parse request [06:57:06]Sock 7.Check first char [06:57:06]Sock 7.First char is OK [06:57:06]request: POST /json_proto HTTP/1.0 [06:57:06]Method: POST [06:57:06]URL: /json_proto [06:57:06]Method is POST - this is cgi request [06:57:06]url: /json_proto [06:57:06]query_string will be loaded in cgi processing [06:57:06]execute_cgi json_proto POST (null) [06:57:06]execute_cgi path=json_proto method=POST [06:57:06]POST find Content-Length [06:57:06]Host: 172.17.55.133:8080 [06:57:06]Content-Length: 678 [06:57:06]Content-Type: application/json [06:57:06] [06:57:06]POST finish read [06:57:06]Found Content-Length = 678 [06:57:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:57:06]execute_script... [06:57: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)1036046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:57:06]POST & json_proto [06:57:06]process_json_proto [06:57:06]json parsed OK: [06:57:06]protocol is kg_v1.0 [06:57:06]action value=close_receipt [06:57:06]process_action close_receipt [06:57:06]cmd_close_receipt [06:57:06]MH_GetDate [06:57:06]Write to MH i2c: F0 00 00 8F 4C CA [06:57:06]Write i2c OK [06:57:06]MH_I2C_Read... [06:57:06]Read from MH i2c: F0 [06:57:06]MH_I2C_Read... [06:57:06]Read from MH i2c: F0 09 00 [06:57:06]MH_I2C_Read... [06:57:06]Read from MH i2c: F0 09 00 8F 4C 00 46 9B C1 66 34 48 D8 65 94 [06:57:06]GetLastDocTimeStamp 1723963264 [06:57:06]current date 1723964230 [06:57:06]FM_GetShiftState [06:57:06]SAM_PROTO_GetShiftState [06:57:06]wFMCommunicate request_size=4 [06:57:06]MH_SAM_APDU [06:57:06]CAPDU: 80 13 01 00 [06:57:06]Write to MH i2c: E2 08 00 90 4C 80 13 01 00 00 00 00 00 59 [06:57:06]Write i2c OK [06:57:06]MH_I2C_Read... [06:57:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:57:06]Read from MH i2c: E2 [06:57:06]MH_I2C_Read... [06:57:06]Read from MH i2c: E2 0E 00 [06:57:06]MH_I2C_Read... [06:57:06]Read from MH i2c: E2 0E 00 90 4C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 96 [06:57:06]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [06:57:06]wFMCommunicate OK [06:57:06]SAM_PROTO_GetShiftState done [06:57:06]FM_GetShiftState done [06:57:06]opened in 1723940556 [06:57:06]opened+sec_in_day 1724026956 [06:57:06]quantity*price = 50036 [06:57:06]sum+1 = 50037 [06:57:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 61 18.08.2024 06:57 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260503 ФПД: 222079260181346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T065710&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260503&fm=222079260181346&tin=02508201610067®Number=0000000000091865&sum=50000 [06:57:07]StoreToDocumentArchive [06:57:07]shift 449 fd 260503 [06:57:07]save to /storage/0449/doc_00260503 [06:57:07]save last doc name /storage/0449/doc_00260503 to /storage/kkm_last_doc_name [06:57:07]save OK [06:57:07]Clear old archive folders... [06:57:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:57:07]tlvbuf is 004CDDE0 [06:57:07]SAM_PROTO_ClearQueue [06:57:07]wFMCommunicate request_size=4 [06:57:07]MH_SAM_APDU [06:57:07]CAPDU: 80 09 00 00 [06:57:07]Write to MH i2c: E2 08 00 9D 4C 80 09 00 00 00 00 00 00 5B [06:57:07]Write i2c OK [06:57:07]MH_I2C_Read... [06:57:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:57:07]Read from MH i2c: E2 [06:57:07]MH_I2C_Read... [06:57:07]Read from MH i2c: E2 03 00 [06:57:07]MH_I2C_Read... [06:57:07]Read from MH i2c: E2 03 00 9D 4C 00 90 00 5D [06:57:07]RAPDU: 90 00 [06:57:07]wFMCommunicate OK [06:57:07]SAM_PROTO_ClearQueue done [06:57:07]KKMCreateOFDPacket [06:57:07]OFDProtocolAddRootSTLVToBuf [06:57:07]FM_MakeSignedData [06:57:07]FM_MakeSignedData [06:57:07]SAM_PROTO_SignData [06:57:07]wFMCommunicate request_size=4 [06:57:07]MH_SAM_APDU [06:57:07]CAPDU: 80 0D 01 02 [06:57:07]Write to MH i2c: E2 08 00 9E 4C 80 0D 01 02 00 00 00 00 63 [06:57:07]Write i2c OK [06:57:07]MH_I2C_Read... [06:57:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:57:08]Read from MH i2c: E2 [06:57:08]MH_I2C_Read... [06:57:08]Read from MH i2c: E2 03 00 [06:57:08]MH_I2C_Read... [06:57:08]Read from MH i2c: E2 03 00 9E 4C 00 90 00 5E [06:57:08]RAPDU: 90 00 [06:57:08]wFMCommunicate OK [06:57:08]wFMCommunicate request_size=255 [06:57:08]MH_SAM_APDU [06:57:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3D 00 00 00 F4 03 04 00 46 9B C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 97 F9 03 00 35 04 06 00 C9 [06:57:08]Write to MH i2c: E2 02 01 9F 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3D 00 00 00 F4 03 04 00 46 9B C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 97 F9 03 00 35 04 06 00 C9 00 00 43 [06:57:08]Write i2c OK [06:57:08]MH_I2C_Read... [06:57:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:57:08]Read from MH i2c: E2 [06:57:08]MH_I2C_Read... [06:57:08]Read from MH i2c: E2 03 00 [06:57:08]MH_I2C_Read... [06:57:08]Read from MH i2c: E2 03 00 9F 4C 00 90 00 5F [06:57:08]RAPDU: 90 00 [06:57:08]wFMCommunicate OK [06:57:08]wFMCommunicate request_size=10 [06:57:08]MH_SAM_APDU [06:57:08]CAPDU: 80 0D 02 02 05 FA DB 6A 43 62 [06:57:08]Write to MH i2c: E2 0D 00 A0 4C 80 0D 02 02 05 00 FA DB 6A 43 62 00 00 54 [06:57:08]Write i2c OK [06:57:08]MH_I2C_Read... [06:57:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:57:08]Read from MH i2c: E2 [06:57:08]MH_I2C_Read... [06:57:08]Read from MH i2c: E2 03 00 [06:57:08]MH_I2C_Read... [06:57:08]Read from MH i2c: E2 03 00 A0 4C 00 90 00 60 [06:57:08]RAPDU: 90 00 [06:57:08]wFMCommunicate OK [06:57:08]wFMCommunicate request_size=4 [06:57:08]MH_SAM_APDU [06:57:08]CAPDU: 80 0D 03 02 [06:57:08]Write to MH i2c: E2 08 00 A1 4C 80 0D 03 02 00 00 00 00 68 [06:57:08]Write i2c OK [06:57:08]MH_I2C_Read... [06:57:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:57:08]Read from MH i2c: E2 [06:57:08]MH_I2C_Read... [06:57:08]Read from MH i2c: E2 0B 00 [06:57:08]MH_I2C_Read... [06:57:08]Read from MH i2c: E2 0B 00 A1 4C 00 3F 4A 76 DC A3 B9 43 3D 90 00 20 [06:57:08]RAPDU: 3F 4A 76 DC A3 B9 43 3D 90 00 [06:57:08]wFMCommunicate OK [06:57:08]SAM_PROTO_SignData done [06:57:08]FM_MakeSignedData done [06:57:08]CreateOFDProtocolMessage [06:57:08]wFMCommunicate request_size=4 [06:57:08]MH_SAM_APDU [06:57:08]CAPDU: 80 11 00 00 [06:57:08]Write to MH i2c: E2 08 00 A2 4C 80 11 00 00 00 00 00 00 68 [06:57:08]Write i2c OK [06:57:08]MH_I2C_Read... [06:57:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:57:08]Read from MH i2c: E2 [06:57:08]MH_I2C_Read... [06:57:08]Read from MH i2c: E2 17 00 [06:57:08]MH_I2C_Read... [06:57:08]Read from MH i2c: E2 17 00 A2 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B5 [06:57:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [06:57:08]wFMCommunicate OK [06:57:08]CreateOFDProtocolMessage done [06:57:08]OFDSenderStorePacket 260503 [06:57:08]StoreOFDPacket docnum=260503 [06:57:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 D6 5A 07 01 D5 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3D 00 00 00 F4 03 04 00 46 9B C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 97 F9 03 00 35 04 06 00 C9 FA DB 6A 43 62 3F 4A 76 DC A3 B9 43 3D [06:57:08]CheckFolder [06:57:08]dirname=/storage/ofd_packets [06:57:08]CheckFolder done [06:57:08]ProducePacketName [06:57:08]name=ofd_packets/00260503 [06:57:08]NVStorageSaveData ofd_packets/00260503 [06:57:08]File name is /storage/ofd_packets/00260503 [06:57:08]Write 301 bytes [06:57:08]NVStorageSaveData done [06:57:08]OFDSenderStorePacket done [06:57:08]KKMCreateOFDPacket done [06:57:08]NVStorageSaveData kkm_last_timestamp [06:57:08]File name is /storage/kkm_last_timestamp [06:57:08]Write 4 bytes [06:57:08]NVStorageSaveData done [06:57:08]ExternCall_PrintAddStr [06:57:08]wPrintStart [06:57:08]Write to MH i2c: 01 00 00 A3 4C EF [06:57:08]Write i2c OK [06:57:08]MH_I2C_Read... [06:57:08]Read from MH i2c: 01 [06:57:08]MH_I2C_Read... [06:57:08]Read from MH i2c: 01 07 00 [06:57:08]MH_I2C_Read... [06:57:08]Read from MH i2c: 01 07 00 A3 4C 00 00 00 00 00 FF 0F 04 [06:57:08]RasterBufferAndPrint [06:57:08]line Счет N : (1)1036046 [06:57:08]line ИНН: 02508201610067 [06:57:08]line Контрольно-Кассовый Чек [06:57:08]line ПРОДАЖА [06:57:08]line ТРК (МРК, ГНК) : 12 [06:57:08]line Товар: 2710124130 [06:57:08]line Аи-92-К-5 [06:57:08]line 7.380 * 67.80 [06:57:08]line = 500.36 [06:57:08]line НДС 12% НСП 1% [06:57:08]line > о реализуемом товаре [06:57:08]line ОКРУГЛЕНИЕ: -0.36 [06:57:08]line ИТОГО: 500.00 [06:57:08]line Внесено: 500.00 [06:57:08]line СДАЧА: 0.00 [06:57:08]line НСП 1% : 4.43 [06:57:08]line НДС 12% : 53.14 [06:57:08]line Наличными: 500.00 [06:57:08]line Безнал.: 0.00 [06:57:08]line Место: АЗС № 94 "Партнер Нефть" [06:57:08]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [06:57:08]line СНО: Общий режим [06:57:08]line Чек 61 18.08.2024 06:57 [06:57:08]line Смена: 449 ФФД: 1.0 [06:57:08]line ЗНМ: 0300000099 [06:57:08]line РНМ: 0000000000091865 [06:57:08]line Версия ККМ: 001 [06:57:08]line ФМ: 0000000000871820 [06:57:08]line ФД: 260503 [06:57:08]line ФПД: 222079260181346 [06:57:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T065710&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260503&fm=222079260181346&tin=02508201610067®Number=0000000000091865&sum=50000 [06:57:08]OFD Sender: Processing packet 260503 [packets to send 192, broken 191] [06:57:08]ProducePacketName [06:57:08]name=ofd_packets/00260503 [06:57:08]OFD Sender: To server: pG, [06:57:08]CommunicateWithHost lk.salyk.kg:30040 [06:57:08]ConnectInit lk.salyk.kg [06:57:08]written 0, free lines is 4095 [06:57:08]Connected sock=10 [06:57: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 30 0F 01 00 00 D6 5A 07 01 D5 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3D 00 00 00 F4 03 04 00 46 9B C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 97 F9 03 00 35 04 06 00 C9 FA DB 6A 43 62 3F 4A 76 DC A3 B9 43 3D [06:57: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 30 4F 00 00 00 AF 64 47 00 A2 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 30 10 04 04 00 97 F9 03 00 F4 03 04 00 9C 44 C1 66 B6 04 01 00 00 C6 16 A1 C7 0D A8 53 B5 [06:57:09]CommunicateWithHost err = 0 [06:57:09]CheckOFDResponse [06:57:09]1017 (14) - 77093643461234 [06:57:09]1041 (16) - 0000000000871820 [06:57:09]1040 (4) - 260503 [06:57:09]1012 (4) - 18.08.2024 00:47 [06:57:09]1206 (1) - 0 [06:57:09]OFD Sender: Remove packet 260503 [06:57:09]ProducePacketName [06:57:09]name=ofd_packets/00260503 [06:57:09]NVStorageDeleteData [06:57:09]Write to MH i2c: 01 00 00 CE 4C 1A [06:57:09]Write i2c OK [06:57:09]MH_I2C_Read... [06:57:09]Read from MH i2c: 01 [06:57:09]MH_I2C_Read... [06:57:09]Read from MH i2c: 01 07 00 [06:57:09]MH_I2C_Read... [06:57:09]Read from MH i2c: 01 07 00 CE 4C 00 00 00 00 00 71 0C 9E [06:57:09]RasterBufferAndPrint [06:57:09]line [06:57:09]line [06:57:09]line [06:57:09]line [06:57:09]line [06:57:09]written 0, free lines is 3188 [06:57:09]MH_Cut [06:57:09]Write to MH i2c: D1 01 00 D5 4C 01 F3 [06:57:09]Write i2c OK [06:57:09]MH_I2C_Read... [06:57:09]Read from MH i2c: D1 [06:57:09]MH_I2C_Read... [06:57:09]Read from MH i2c: D1 01 00 [06:57:09]MH_I2C_Read... [06:57:09]Read from MH i2c: D1 01 00 D5 4C 00 F2 [06:57:09]Write to MH i2c: 01 00 00 D6 4C 22 [06:57:09]Write i2c OK [06:57:09]MH_I2C_Read... [06:57:09]OFD Sender: No OFD packet to send [06:57:10]*** Cut start [06:57:10]*** Purtial cut [06:57:10]*** Stage 1: CUTSNS_PIN = 1 [06:57:12]Read from MH i2c: 01 [06:57:12]MH_I2C_Read... [06:57:12]*** Stop cut motor [06:57:12]*** Cut end [06:57:12]Read from MH i2c: 01 07 00 [06:57:12]MH_I2C_Read... [06:57:12]Read from MH i2c: 01 07 00 D6 4C 00 00 00 00 00 FF 0F 37 [06:57:12]process_action close_receipt done [06:57:12]requested_data is exist [06:57:12]produce_requested_data [06:57:12]requested_item fm.sn is exist - process it [06:57:12]wFMCommunicate request_size=4 [06:57:12]MH_SAM_APDU [06:57:12]CAPDU: 80 11 00 00 [06:57:12]Write to MH i2c: E2 08 00 D7 4C 80 11 00 00 00 00 00 00 9D [06:57:12]Write i2c OK [06:57:12]MH_I2C_Read... [06:57:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:57:12]Read from MH i2c: E2 [06:57:12]MH_I2C_Read... [06:57:12]Read from MH i2c: E2 17 00 [06:57:12]MH_I2C_Read... [06:57:12]Read from MH i2c: E2 17 00 D7 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 EA [06:57:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [06:57:12]wFMCommunicate OK [06:57:12]requested_item fd.num is exist - process it [06:57:12]SAM_PROTO_GetFieldsCounters [06:57:12]wFMCommunicate request_size=4 [06:57:12]MH_SAM_APDU [06:57:12]CAPDU: 80 13 00 00 [06:57:12]Write to MH i2c: E2 08 00 D8 4C 80 13 00 00 00 00 00 00 A0 [06:57:12]Write i2c OK [06:57:12]MH_I2C_Read... [06:57:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:57:12]Read from MH i2c: E2 [06:57:12]MH_I2C_Read... [06:57:12]Read from MH i2c: E2 62 00 [06:57:12]MH_I2C_Read... [06:57:12]Read from MH i2c: E2 62 00 D8 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 97 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [06:57: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 97 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:57:12]wFMCommunicate OK [06:57:12]SAM_PROTO_GetFieldsCounters done [06:57:12]requested_item shift.num is exist - process it [06:57:12]requested_item shift.opened is exist - process it [06:57:12]req_shift_opened [06:57:12]FM_GetShiftState [06:57:12]SAM_PROTO_GetShiftState [06:57:12]wFMCommunicate request_size=4 [06:57:12]MH_SAM_APDU [06:57:12]CAPDU: 80 13 01 00 [06:57:12]Write to MH i2c: E2 08 00 D9 4C 80 13 01 00 00 00 00 00 A2 [06:57:12]Write i2c OK [06:57:12]MH_I2C_Read... [06:57:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:57:12]Read from MH i2c: E2 [06:57:12]MH_I2C_Read... [06:57:12]Read from MH i2c: E2 0E 00 [06:57:12]MH_I2C_Read... [06:57:12]Read from MH i2c: E2 0E 00 D9 4C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 DF [06:57:12]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [06:57:12]wFMCommunicate OK [06:57:12]SAM_PROTO_GetShiftState done [06:57:12]FM_GetShiftState done [06:57:12]req_shift_opened done [06:57:12]requested_item shift.open_date is exist - process it [06:57:12]req_shift_open_date [06:57:12]req_shift_open_date done [06:57:12]produce_requested_data done [06:57:12]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260503,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [06:57:12]process_action_free close_receipt [06:57:12]json_value_free [06:57:12]json_value_free done [06:57:12]process_json_proto returns [06:57:12]Send response to host [06:57:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260503,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [06:57:12]free response buf [06:57:12]execute_script done [06:57:12]execute_script returns [06:57:12]free content buf [06:57:12]Sock 7.Close socket [06:57:12]Sock 7.Thread stoped [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:49]OFD Sender: No OFD packet to send [06:57:54]OFD Sender: No OFD packet to send [06:57:59]OFD Sender: No OFD packet to send [06:58:04]OFD Sender: No OFD packet to send [06:58:09]OFD Sender: No OFD packet to send [06:58:14]OFD Sender: No OFD packet to send [06:58:19]OFD Sender: No OFD packet to send [06:58:24]OFD Sender: No OFD packet to send [06:58:29]OFD Sender: No OFD packet to send [06:58:34]OFD Sender: No OFD packet to send [06:58:39]OFD Sender: No OFD packet to send [06:58:44]OFD Sender: No OFD packet to send [06:58:49]OFD Sender: No OFD packet to send [06:58:54]OFD Sender: No OFD packet to send [06:58:59]OFD Sender: No OFD packet to send [06:59:04]OFD Sender: No OFD packet to send [06:59:09]OFD Sender: No OFD packet to send [06:59:14]OFD Sender: No OFD packet to send [06:59:19]OFD Sender: No OFD packet to send [06:59:24]OFD Sender: No OFD packet to send [06:59:29]OFD Sender: No OFD packet to send [06:59:34]OFD Sender: No OFD packet to send [06:59:39]OFD Sender: No OFD packet to send [06:59:44]OFD Sender: No OFD packet to send [06:59:49]OFD Sender: No OFD packet to send [06:59:54]OFD Sender: No OFD packet to send [06:59:59]OFD Sender: No OFD packet to send [07:00:04]OFD Sender: No OFD packet to send [07:00:09]OFD Sender: No OFD packet to send [07:00:14]OFD Sender: No OFD packet to send [07:00:19]OFD Sender: No OFD packet to send [07:00:24]OFD Sender: No OFD packet to send [07:00:29]OFD Sender: No OFD packet to send [07:00:34]OFD Sender: No OFD packet to send [07:00:39]OFD Sender: No OFD packet to send [07:00:44]OFD Sender: No OFD packet to send [07:00:49]OFD Sender: No OFD packet to send [07:00:54]OFD Sender: No OFD packet to send [07:00:59]OFD Sender: No OFD packet to send [07:01:04]OFD Sender: No OFD packet to send [07:01:09]OFD Sender: No OFD packet to send [07:01:14]OFD Sender: No OFD packet to send [07:01:19]OFD Sender: No OFD packet to send [07:01:24]OFD Sender: No OFD packet to send [07:01:29]OFD Sender: No OFD packet to send [07:01:34]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:00]accept exits with 9 [07:03:00]New connection [07:03:00]New thread 3066473828 created [07:03:00]Thread 3066617188 joined [07:03:00]Waiting for new connection... [07:03:00] Sock 9.Parse request [07:03:00]Sock 9.Check first char [07:03:00]Sock 9.First char is OK [07:03:00]request: POST /json_proto HTTP/1.0 [07:03:00]Method: POST [07:03:00]URL: /json_proto [07:03:00]Method is POST - this is cgi request [07:03:00]url: /json_proto [07:03:00]query_string will be loaded in cgi processing [07:03:00]execute_cgi json_proto POST (null) [07:03:00]execute_cgi path=json_proto method=POST [07:03:00]POST find Content-Length [07:03:00]Host: 172.17.55.133:8080 [07:03:00]Content-Length: 678 [07:03:00]Content-Type: application/json [07:03:00] [07:03:00]POST finish read [07:03:00]Found Content-Length = 678 [07:03:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "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" ] } } [07:03:00]execute_script... [07:03: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)1036047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "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" ] } } [07:03:00]POST & json_proto [07:03:00]process_json_proto [07:03:00]json parsed OK: [07:03:00]protocol is kg_v1.0 [07:03:00]action value=close_receipt [07:03:00]process_action close_receipt [07:03:00]cmd_close_receipt [07:03:00]MH_GetDate [07:03:00]Write to MH i2c: F0 00 00 DA 4C 15 [07:03:00]Write i2c OK [07:03:00]MH_I2C_Read... [07:03:00]Read from MH i2c: F0 [07:03:00]MH_I2C_Read... [07:03:00]Read from MH i2c: F0 09 00 [07:03:00]MH_I2C_Read... [07:03:00]Read from MH i2c: F0 09 00 DA 4C 00 A7 9C C1 66 34 48 D8 65 41 [07:03:00]GetLastDocTimeStamp 1723964230 [07:03:00]current date 1723964583 [07:03:00]FM_GetShiftState [07:03:00]SAM_PROTO_GetShiftState [07:03:00]wFMCommunicate request_size=4 [07:03:00]MH_SAM_APDU [07:03:00]CAPDU: 80 13 01 00 [07:03:00]Write to MH i2c: E2 08 00 DB 4C 80 13 01 00 00 00 00 00 A4 [07:03:00]Write i2c OK [07:03:00]MH_I2C_Read... [07:03:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:03:00]Read from MH i2c: E2 [07:03:00]MH_I2C_Read... [07:03:00]Read from MH i2c: E2 0E 00 [07:03:00]MH_I2C_Read... [07:03:00]Read from MH i2c: E2 0E 00 DB 4C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E1 [07:03:00]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [07:03:00]wFMCommunicate OK [07:03:00]SAM_PROTO_GetShiftState done [07:03:00]FM_GetShiftState done [07:03:00]opened in 1723940556 [07:03:00]opened+sec_in_day 1724026956 [07:03:00]quantity*price = 35052 [07:03:00]sum+1 = 35054 [07:03:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 62 18.08.2024 07:03 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260504 ФПД: 276453099768818 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T070303&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260504&fm=276453099768818&tin=02508201610067®Number=0000000000091865&sum=35000 [07:03:01]StoreToDocumentArchive [07:03:01]shift 449 fd 260504 [07:03:01]save to /storage/0449/doc_00260504 [07:03:01]save last doc name /storage/0449/doc_00260504 to /storage/kkm_last_doc_name [07:03:01]save OK [07:03:01]Clear old archive folders... [07:03:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:03:01]tlvbuf is 0035C6E0 [07:03:01]SAM_PROTO_ClearQueue [07:03:01]wFMCommunicate request_size=4 [07:03:01]MH_SAM_APDU [07:03:01]CAPDU: 80 09 00 00 [07:03:01]Write to MH i2c: E2 08 00 E8 4C 80 09 00 00 00 00 00 00 A6 [07:03:01]Write i2c OK [07:03:01]MH_I2C_Read... [07:03:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:03:01]Read from MH i2c: E2 [07:03:01]MH_I2C_Read... [07:03:01]Read from MH i2c: E2 03 00 [07:03:01]MH_I2C_Read... [07:03:01]Read from MH i2c: E2 03 00 E8 4C 00 90 00 A8 [07:03:01]RAPDU: 90 00 [07:03:01]wFMCommunicate OK [07:03:01]SAM_PROTO_ClearQueue done [07:03:01]KKMCreateOFDPacket [07:03:01]OFDProtocolAddRootSTLVToBuf [07:03:01]FM_MakeSignedData [07:03:01]FM_MakeSignedData [07:03:01]SAM_PROTO_SignData [07:03:01]wFMCommunicate request_size=4 [07:03:01]MH_SAM_APDU [07:03:01]CAPDU: 80 0D 01 02 [07:03:01]Write to MH i2c: E2 08 00 E9 4C 80 0D 01 02 00 00 00 00 AE [07:03:01]Write i2c OK [07:03:01]MH_I2C_Read... [07:03:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:03:01]Read from MH i2c: E2 [07:03:01]MH_I2C_Read... [07:03:01]Read from MH i2c: E2 03 00 [07:03:01]MH_I2C_Read... [07:03:01]Read from MH i2c: E2 03 00 E9 4C 00 90 00 A9 [07:03:01]RAPDU: 90 00 [07:03:01]wFMCommunicate OK [07:03:01]wFMCommunicate request_size=255 [07:03:01]MH_SAM_APDU [07:03:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 3E 00 00 00 F4 03 04 00 A7 9C C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 98 F9 03 00 35 04 06 00 FB [07:03:01]Write to MH i2c: E2 02 01 EA 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 3E 00 00 00 F4 03 04 00 A7 9C C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 98 F9 03 00 35 04 06 00 FB 00 00 4F [07:03:01]Write i2c OK [07:03:01]MH_I2C_Read... [07:03:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:03:01]Read from MH i2c: E2 [07:03:01]MH_I2C_Read... [07:03:01]Read from MH i2c: E2 03 00 [07:03:01]MH_I2C_Read... [07:03:01]Read from MH i2c: E2 03 00 EA 4C 00 90 00 AA [07:03:01]RAPDU: 90 00 [07:03:01]wFMCommunicate OK [07:03:01]wFMCommunicate request_size=10 [07:03:01]MH_SAM_APDU [07:03:01]CAPDU: 80 0D 02 02 05 6E C0 CF 0B F2 [07:03:01]Write to MH i2c: E2 0D 00 EB 4C 80 0D 02 02 05 00 6E C0 CF 0B F2 00 00 B5 [07:03:01]Write i2c OK [07:03:01]MH_I2C_Read... [07:03:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:03:01]Read from MH i2c: E2 [07:03:01]MH_I2C_Read... [07:03:02]Read from MH i2c: E2 03 00 [07:03:02]MH_I2C_Read... [07:03:02]Read from MH i2c: E2 03 00 EB 4C 00 90 00 AB [07:03:02]RAPDU: 90 00 [07:03:02]wFMCommunicate OK [07:03:02]wFMCommunicate request_size=4 [07:03:02]MH_SAM_APDU [07:03:02]CAPDU: 80 0D 03 02 [07:03:02]Write to MH i2c: E2 08 00 EC 4C 80 0D 03 02 00 00 00 00 B3 [07:03:02]Write i2c OK [07:03:02]MH_I2C_Read... [07:03:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:03:02]Read from MH i2c: E2 [07:03:02]MH_I2C_Read... [07:03:02]Read from MH i2c: E2 0B 00 [07:03:02]MH_I2C_Read... [07:03:02]Read from MH i2c: E2 0B 00 EC 4C 00 69 C5 67 70 F9 2C 63 48 90 00 89 [07:03:02]RAPDU: 69 C5 67 70 F9 2C 63 48 90 00 [07:03:02]wFMCommunicate OK [07:03:02]SAM_PROTO_SignData done [07:03:02]FM_MakeSignedData done [07:03:02]CreateOFDProtocolMessage [07:03:02]wFMCommunicate request_size=4 [07:03:02]MH_SAM_APDU [07:03:02]CAPDU: 80 11 00 00 [07:03:02]Write to MH i2c: E2 08 00 ED 4C 80 11 00 00 00 00 00 00 B3 [07:03:02]Write i2c OK [07:03:02]MH_I2C_Read... [07:03:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:03:02]Read from MH i2c: E2 [07:03:02]MH_I2C_Read... [07:03:02]Read from MH i2c: E2 17 00 [07:03:02]MH_I2C_Read... [07:03:02]Read from MH i2c: E2 17 00 ED 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 00 [07:03:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [07:03:02]wFMCommunicate OK [07:03:02]CreateOFDProtocolMessage done [07:03:02]OFDSenderStorePacket 260504 [07:03:02]StoreOFDPacket docnum=260504 [07:03:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 22 C8 07 01 6E D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 3E 00 00 00 F4 03 04 00 A7 9C C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 98 F9 03 00 35 04 06 00 FB 6E C0 CF 0B F2 69 C5 67 70 F9 2C 63 48 [07:03:02]CheckFolder [07:03:02]dirname=/storage/ofd_packets [07:03:02]CheckFolder done [07:03:02]ProducePacketName [07:03:02]name=ofd_packets/00260504 [07:03:02]NVStorageSaveData ofd_packets/00260504 [07:03:02]File name is /storage/ofd_packets/00260504 [07:03:02]Write 301 bytes [07:03:02]NVStorageSaveData done [07:03:02]OFDSenderStorePacket done [07:03:02]KKMCreateOFDPacket done [07:03:02]NVStorageSaveData kkm_last_timestamp [07:03:02]File name is /storage/kkm_last_timestamp [07:03:02]Write 4 bytes [07:03:02]NVStorageSaveData done [07:03:02]ExternCall_PrintAddStr [07:03:02]wPrintStart [07:03:02]Write to MH i2c: 01 00 00 EE 4C 3A [07:03:02]Write i2c OK [07:03:02]MH_I2C_Read... [07:03:02]Read from MH i2c: 01 [07:03:02]MH_I2C_Read... [07:03:02]Read from MH i2c: 01 07 00 [07:03:02]MH_I2C_Read... [07:03:02]Read from MH i2c: 01 07 00 EE 4C 00 00 00 00 00 FF 0F 4F [07:03:02]RasterBufferAndPrint [07:03:02]line Счет N : (1)1036047 [07:03:02]line ИНН: 02508201610067 [07:03:02]line Контрольно-Кассовый Чек [07:03:02]line ПРОДАЖА [07:03:02]line ТРК (МРК, ГНК) : 32 [07:03:02]line Товар: 2710124130 [07:03:02]line Аи-92-К-5 [07:03:02]line 5.170 * 67.80 [07:03:02]line = 350.53 [07:03:02]line НДС 12% НСП 1% [07:03:02]line > о реализуемом товаре [07:03:02]line ОКРУГЛЕНИЕ: -0.53 [07:03:02]line ИТОГО: 350.00 [07:03:02]line Внесено: 350.00 [07:03:02]line СДАЧА: 0.00 [07:03:02]line НСП 1% : 3.10 [07:03:02]line НДС 12% : 37.22 [07:03:02]line Наличными: 350.00 [07:03:02]line Безнал.: 0.00 [07:03:02]line Место: АЗС № 94 "Партнер Нефть" [07:03:02]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [07:03:02]line СНО: Общий режим [07:03:02]line Чек 62 18.08.2024 07:03 [07:03:02]line Смена: 449 ФФД: 1.0 [07:03:02]line ЗНМ: 0300000099 [07:03:02]line РНМ: 0000000000091865 [07:03:02]line Версия ККМ: 001 [07:03:02]line ФМ: 0000000000871820 [07:03:02]line ФД: 260504 [07:03:02]line ФПД: 276453099768818 [07:03:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T070303&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260504&fm=276453099768818&tin=02508201610067®Number=0000000000091865&sum=35000 [07:03:02]written 0, free lines is 4095 [07:03:02]OFD Sender: Processing packet 260504 [packets to send 192, broken 191] [07:03:02]ProducePacketName [07:03:02]name=ofd_packets/00260504 [07:03:02]OFD Sender: To server: pG, [07:03:02]CommunicateWithHost lk.salyk.kg:30040 [07:03:02]ConnectInit lk.salyk.kg [07:03:02]Connected sock=10 [07:03: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 30 0F 01 00 00 22 C8 07 01 6E D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 3E 00 00 00 F4 03 04 00 A7 9C C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 98 F9 03 00 35 04 06 00 FB 6E C0 CF 0B F2 69 C5 67 70 F9 2C 63 48 [07:03: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 30 4F 00 00 00 18 85 47 00 76 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 30 10 04 04 00 98 F9 03 00 F4 03 04 00 FD 45 C1 66 B6 04 01 00 00 FC 40 9D 39 94 85 1B B7 [07:03:02]CommunicateWithHost err = 0 [07:03:02]CheckOFDResponse [07:03:02]1017 (14) - 77093643461234 [07:03:02]1041 (16) - 0000000000871820 [07:03:02]1040 (4) - 260504 [07:03:02]1012 (4) - 18.08.2024 00:53 [07:03:02]1206 (1) - 0 [07:03:02]OFD Sender: Remove packet 260504 [07:03:02]ProducePacketName [07:03:02]name=ofd_packets/00260504 [07:03:02]NVStorageDeleteData [07:03:02]Write to MH i2c: 01 00 00 19 4D 66 [07:03:02]Write i2c OK [07:03:02]MH_I2C_Read... [07:03:02]Read from MH i2c: 01 [07:03:02]MH_I2C_Read... [07:03:02]Read from MH i2c: 01 07 00 [07:03:02]MH_I2C_Read... [07:03:02]Read from MH i2c: 01 07 00 19 4D 00 00 00 00 00 68 0C E1 [07:03:02]RasterBufferAndPrint [07:03:02]line [07:03:02]line [07:03:02]line [07:03:02]line [07:03:02]line [07:03:02]written 0, free lines is 3179 [07:03:02]MH_Cut [07:03:02]Write to MH i2c: D1 01 00 20 4D 01 3F [07:03:02]Write i2c OK [07:03:02]MH_I2C_Read... [07:03:02]Read from MH i2c: D1 [07:03:02]MH_I2C_Read... [07:03:02]Read from MH i2c: D1 01 00 [07:03:02]MH_I2C_Read... [07:03:02]Read from MH i2c: D1 01 00 20 4D 00 3E [07:03:02]Write to MH i2c: 01 00 00 21 4D 6E [07:03:02]Write i2c OK [07:03:02]MH_I2C_Read... [07:03:03]OFD Sender: No OFD packet to send [07:03:04]*** Cut start [07:03:04]*** Purtial cut [07:03:04]*** Stage 1: CUTSNS_PIN = 1 [07:03:06]Read from MH i2c: 01 [07:03:06]MH_I2C_Read... [07:03:06]*** Stop cut motor [07:03:06]*** Cut end [07:03:06]Read from MH i2c: 01 07 00 [07:03:06]MH_I2C_Read... [07:03:06]Read from MH i2c: 01 07 00 21 4D 00 00 00 00 00 FF 0F 83 [07:03:06]process_action close_receipt done [07:03:06]requested_data is exist [07:03:06]produce_requested_data [07:03:06]requested_item fm.sn is exist - process it [07:03:06]wFMCommunicate request_size=4 [07:03:06]MH_SAM_APDU [07:03:06]CAPDU: 80 11 00 00 [07:03:06]Write to MH i2c: E2 08 00 22 4D 80 11 00 00 00 00 00 00 E9 [07:03:06]Write i2c OK [07:03:06]MH_I2C_Read... [07:03:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:03:06]Read from MH i2c: E2 [07:03:06]MH_I2C_Read... [07:03:06]Read from MH i2c: E2 17 00 [07:03:06]MH_I2C_Read... [07:03:06]Read from MH i2c: E2 17 00 22 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 36 [07:03:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [07:03:06]wFMCommunicate OK [07:03:06]requested_item fd.num is exist - process it [07:03:06]SAM_PROTO_GetFieldsCounters [07:03:06]wFMCommunicate request_size=4 [07:03:06]MH_SAM_APDU [07:03:06]CAPDU: 80 13 00 00 [07:03:06]Write to MH i2c: E2 08 00 23 4D 80 13 00 00 00 00 00 00 EC [07:03:06]Write i2c OK [07:03:06]MH_I2C_Read... [07:03:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:03:06]Read from MH i2c: E2 [07:03:06]MH_I2C_Read... [07:03:06]Read from MH i2c: E2 62 00 [07:03:06]MH_I2C_Read... [07:03:06]Read from MH i2c: E2 62 00 23 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 98 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [07:03: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 98 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:03:06]wFMCommunicate OK [07:03:06]SAM_PROTO_GetFieldsCounters done [07:03:06]requested_item shift.num is exist - process it [07:03:06]requested_item shift.opened is exist - process it [07:03:06]req_shift_opened [07:03:06]FM_GetShiftState [07:03:06]SAM_PROTO_GetShiftState [07:03:06]wFMCommunicate request_size=4 [07:03:06]MH_SAM_APDU [07:03:06]CAPDU: 80 13 01 00 [07:03:06]Write to MH i2c: E2 08 00 24 4D 80 13 01 00 00 00 00 00 EE [07:03:06]Write i2c OK [07:03:06]MH_I2C_Read... [07:03:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:03:06]Read from MH i2c: E2 [07:03:06]MH_I2C_Read... [07:03:06]Read from MH i2c: E2 0E 00 [07:03:06]MH_I2C_Read... [07:03:06]Read from MH i2c: E2 0E 00 24 4D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 2B [07:03:06]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [07:03:06]wFMCommunicate OK [07:03:06]SAM_PROTO_GetShiftState done [07:03:06]FM_GetShiftState done [07:03:06]req_shift_opened done [07:03:06]requested_item shift.open_date is exist - process it [07:03:06]req_shift_open_date [07:03:06]req_shift_open_date done [07:03:06]produce_requested_data done [07:03:06]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260504,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [07:03:06]process_action_free close_receipt [07:03:06]json_value_free [07:03:06]json_value_free done [07:03:06]process_json_proto returns [07:03:06]Send response to host [07:03:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260504,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [07:03:06]free response buf [07:03:06]execute_script done [07:03:06]execute_script returns [07:03:06]free content buf [07:03:06]Sock 9.Close socket [07:03:06]Sock 9.Thread stoped [07:03:08]OFD Sender: No OFD packet to send [07:03:13]OFD Sender: No OFD packet to send [07:03:18]OFD Sender: No OFD packet to send [07:03:23]OFD Sender: No OFD packet to send [07:03:28]OFD Sender: No OFD packet to send [07:03:33]OFD Sender: No OFD packet to send [07:03:38]OFD Sender: No OFD packet to send [07:03:43]OFD Sender: No OFD packet to send [07:03:48]OFD Sender: No OFD packet to send [07:03:53]OFD Sender: No OFD packet to send [07:03:58]OFD Sender: No OFD packet to send [07:04:03]OFD Sender: No OFD packet to send [07:04:08]OFD Sender: No OFD packet to send [07:04:13]OFD Sender: No OFD packet to send [07:04:18]OFD Sender: No OFD packet to send [07:04:23]OFD Sender: No OFD packet to send [07:04:28]OFD Sender: No OFD packet to send [07:04:33]OFD Sender: No OFD packet to send [07:04:38]OFD Sender: No OFD packet to send [07:04:43]OFD Sender: No OFD packet to send [07:04:48]OFD Sender: No OFD packet to send [07:04:53]OFD Sender: No OFD packet to send [07:04:58]OFD Sender: No OFD packet to send [07:05:03]OFD Sender: No OFD packet to send [07:05:08]OFD Sender: No OFD packet to send [07:05:13]OFD Sender: No OFD packet to send [07:05:18]OFD Sender: No OFD packet to send [07:05:23]OFD Sender: No OFD packet to send [07:05:28]OFD Sender: No OFD packet to send [07:05:33]OFD Sender: No OFD packet to send [07:05:38]OFD Sender: No OFD packet to send [07:05:43]OFD Sender: No OFD packet to send [07:05:48]OFD Sender: No OFD packet to send [07:05:53]OFD Sender: No OFD packet to send [07:05:58]OFD Sender: No OFD packet to send [07:06:03]OFD Sender: No OFD packet to send [07:06:08]OFD Sender: No OFD packet to send [07:06:13]OFD Sender: No OFD packet to send [07:06:18]OFD Sender: No OFD packet to send [07:06:23]OFD Sender: No OFD packet to send [07:06:28]OFD Sender: No OFD packet to send [07:06:33]OFD Sender: No OFD packet to send [07:06:38]OFD Sender: No OFD packet to send [07:06:43]OFD Sender: No OFD packet to send [07:06:48]OFD Sender: No OFD packet to send [07:06:53]OFD Sender: No OFD packet to send [07:06:58]OFD Sender: No OFD packet to send [07:07:03]OFD Sender: No OFD packet to send [07:07:08]OFD Sender: No OFD packet to send [07:07:13]OFD Sender: No OFD packet to send [07:07:18]OFD Sender: No OFD packet to send [07:07:23]OFD Sender: No OFD packet to send [07:07:28]OFD Sender: No OFD packet to send [07:07:33]OFD Sender: No OFD packet to send [07:07:38]OFD Sender: No OFD packet to send [07:07:43]OFD Sender: No OFD packet to send [07:07:48]OFD Sender: No OFD packet to send [07:07:53]OFD Sender: No OFD packet to send [07:07:58]OFD Sender: No OFD packet to send [07:08:03]OFD Sender: No OFD packet to send [07:08:08]OFD Sender: No OFD packet to send [07:08:13]OFD Sender: No OFD packet to send [07:08:18]OFD Sender: No OFD packet to send [07:08:23]OFD Sender: No OFD packet to send [07:08:28]OFD Sender: No OFD packet to send [07:08:33]OFD Sender: No OFD packet to send [07:08:38]OFD Sender: No OFD packet to send [07:08:43]OFD Sender: No OFD packet to send [07:08:48]OFD Sender: No OFD packet to send [07:08:53]OFD Sender: No OFD packet to send [07:08:58]OFD Sender: No OFD packet to send [07:09:03]OFD Sender: No OFD packet to send [07:09:08]OFD Sender: No OFD packet to send [07:09:13]OFD Sender: No OFD packet to send [07:09:18]OFD Sender: No OFD packet to send [07:09:23]OFD Sender: No OFD packet to send [07:09:28]OFD Sender: No OFD packet to send [07:09:33]OFD Sender: No OFD packet to send [07:09:38]OFD Sender: No OFD packet to send [07:09:43]OFD Sender: No OFD packet to send [07:09:48]OFD Sender: No OFD packet to send [07:09:53]OFD Sender: No OFD packet to send [07:09:58]OFD Sender: No OFD packet to send [07:10:03]OFD Sender: No OFD packet to send [07:10:05]accept exits with 7 [07:10:05]New connection [07:10:05]New thread 3066617188 created [07:10:05]Thread 3066473828 joined [07:10:05]Waiting for new connection... [07:10:05] Sock 7.Parse request [07:10:05]Sock 7.Check first char [07:10:05]Sock 7.First char is OK [07:10:05]request: POST /json_proto HTTP/1.0 [07:10:05]Method: POST [07:10:05]URL: /json_proto [07:10:05]Method is POST - this is cgi request [07:10:05]url: /json_proto [07:10:05]query_string will be loaded in cgi processing [07:10:05]execute_cgi json_proto POST (null) [07:10:05]execute_cgi path=json_proto method=POST [07:10:05]POST find Content-Length [07:10:05]Host: 172.17.55.133:8080 [07:10:05]Content-Length: 804 [07:10:05]Content-Type: application/json [07:10:05] [07:10:05]POST finish read [07:10:05]Found Content-Length = 804 [07:10:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036048", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:10:05]execute_script... [07:10: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)1036048", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:10:05]POST & json_proto [07:10:05]process_json_proto [07:10:05]json parsed OK: [07:10:05]protocol is kg_v1.0 [07:10:05]action value=close_receipt [07:10:05]process_action close_receipt [07:10:05]cmd_close_receipt [07:10:05]MH_GetDate [07:10:05]Write to MH i2c: F0 00 00 25 4D 61 [07:10:05]Write i2c OK [07:10:05]MH_I2C_Read... [07:10:05]Read from MH i2c: F0 [07:10:05]MH_I2C_Read... [07:10:05]Read from MH i2c: F0 09 00 [07:10:05]MH_I2C_Read... [07:10:05]Read from MH i2c: F0 09 00 25 4D 00 51 9E C1 66 34 48 D8 65 39 [07:10:05]GetLastDocTimeStamp 1723964583 [07:10:05]current date 1723965009 [07:10:05]FM_GetShiftState [07:10:05]SAM_PROTO_GetShiftState [07:10:05]wFMCommunicate request_size=4 [07:10:05]MH_SAM_APDU [07:10:05]CAPDU: 80 13 01 00 [07:10:05]Write to MH i2c: E2 08 00 26 4D 80 13 01 00 00 00 00 00 F0 [07:10:05]Write i2c OK [07:10:05]MH_I2C_Read... [07:10:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:10:05]Read from MH i2c: E2 [07:10:05]MH_I2C_Read... [07:10:05]Read from MH i2c: E2 0E 00 [07:10:05]MH_I2C_Read... [07:10:05]Read from MH i2c: E2 0E 00 26 4D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 2D [07:10:05]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [07:10:05]wFMCommunicate OK [07:10:05]SAM_PROTO_GetShiftState done [07:10:05]FM_GetShiftState done [07:10:05]opened in 1723940556 [07:10:05]opened+sec_in_day 1724026956 [07:10:05]quantity*price = 100021 [07:10:05]sum+1 = 100023 [07:10:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 63 18.08.2024 07:10 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260505 ФПД: 5367326376465 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T071009&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260505&fm=5367326376465&tin=02508201610067®Number=0000000000091865&sum=100022 [07:10:06]StoreToDocumentArchive [07:10:06]shift 449 fd 260505 [07:10:06]save to /storage/0449/doc_00260505 [07:10:06]save last doc name /storage/0449/doc_00260505 to /storage/kkm_last_doc_name [07:10:06]save OK [07:10:06]Clear old archive folders... [07:10:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:10:06]tlvbuf is 004CE1F0 [07:10:06]SAM_PROTO_ClearQueue [07:10:06]wFMCommunicate request_size=4 [07:10:06]MH_SAM_APDU [07:10:06]CAPDU: 80 09 00 00 [07:10:06]Write to MH i2c: E2 08 00 33 4D 80 09 00 00 00 00 00 00 F2 [07:10:06]Write i2c OK [07:10:06]MH_I2C_Read... [07:10:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:10:06]Read from MH i2c: E2 [07:10:06]MH_I2C_Read... [07:10:06]Read from MH i2c: E2 03 00 [07:10:06]MH_I2C_Read... [07:10:06]Read from MH i2c: E2 03 00 33 4D 00 90 00 F4 [07:10:06]RAPDU: 90 00 [07:10:06]wFMCommunicate OK [07:10:06]SAM_PROTO_ClearQueue done [07:10:06]KKMCreateOFDPacket [07:10:06]OFDProtocolAddRootSTLVToBuf [07:10:06]FM_MakeSignedData [07:10:06]FM_MakeSignedData [07:10:06]SAM_PROTO_SignData [07:10:06]wFMCommunicate request_size=4 [07:10:06]MH_SAM_APDU [07:10:06]CAPDU: 80 0D 01 02 [07:10:06]Write to MH i2c: E2 08 00 34 4D 80 0D 01 02 00 00 00 00 FA [07:10:06]Write i2c OK [07:10:06]MH_I2C_Read... [07:10:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:10:06]Read from MH i2c: E2 [07:10:06]MH_I2C_Read... [07:10:06]Read from MH i2c: E2 03 00 [07:10:06]MH_I2C_Read... [07:10:06]Read from MH i2c: E2 03 00 34 4D 00 90 00 F5 [07:10:06]RAPDU: 90 00 [07:10:06]wFMCommunicate OK [07:10:06]wFMCommunicate request_size=255 [07:10:06]MH_SAM_APDU [07: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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 51 9E C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 99 F9 03 00 35 04 06 00 04 [07:10:06]Write to MH i2c: E2 02 01 35 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 51 9E C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 99 F9 03 00 35 04 06 00 04 00 00 80 [07:10:06]Write i2c OK [07:10:06]MH_I2C_Read... [07:10:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:10:07]Read from MH i2c: E2 [07:10:07]MH_I2C_Read... [07:10:07]Read from MH i2c: E2 03 00 [07:10:07]MH_I2C_Read... [07:10:07]Read from MH i2c: E2 03 00 35 4D 00 90 00 F6 [07:10:07]RAPDU: 90 00 [07:10:07]wFMCommunicate OK [07:10:07]wFMCommunicate request_size=10 [07:10:07]MH_SAM_APDU [07:10:07]CAPDU: 80 0D 02 02 05 E1 AD 95 02 11 [07:10:07]Write to MH i2c: E2 0D 00 36 4D 80 0D 02 02 05 00 E1 AD 95 02 11 00 00 3D [07:10:07]Write i2c OK [07:10:07]MH_I2C_Read... [07:10:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:10:07]Read from MH i2c: E2 [07:10:07]MH_I2C_Read... [07:10:07]Read from MH i2c: E2 03 00 [07:10:07]MH_I2C_Read... [07:10:07]Read from MH i2c: E2 03 00 36 4D 00 90 00 F7 [07:10:07]RAPDU: 90 00 [07:10:07]wFMCommunicate OK [07:10:07]wFMCommunicate request_size=4 [07:10:07]MH_SAM_APDU [07:10:07]CAPDU: 80 0D 03 02 [07:10:07]Write to MH i2c: E2 08 00 37 4D 80 0D 03 02 00 00 00 00 FF [07:10:07]Write i2c OK [07:10:07]MH_I2C_Read... [07:10:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:10:07]Read from MH i2c: E2 [07:10:07]MH_I2C_Read... [07:10:07]Read from MH i2c: E2 0B 00 [07:10:07]MH_I2C_Read... [07:10:07]Read from MH i2c: E2 0B 00 37 4D 00 82 8E 01 C3 60 27 55 A1 90 00 51 [07:10:07]RAPDU: 82 8E 01 C3 60 27 55 A1 90 00 [07:10:07]wFMCommunicate OK [07:10:07]SAM_PROTO_SignData done [07:10:07]FM_MakeSignedData done [07:10:07]CreateOFDProtocolMessage [07:10:07]wFMCommunicate request_size=4 [07:10:07]MH_SAM_APDU [07:10:07]CAPDU: 80 11 00 00 [07:10:07]Write to MH i2c: E2 08 00 38 4D 80 11 00 00 00 00 00 00 FF [07:10:07]Write i2c OK [07:10:07]MH_I2C_Read... [07:10:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:10:07]Read from MH i2c: E2 [07:10:07]MH_I2C_Read... [07:10:07]Read from MH i2c: E2 17 00 [07:10:07]MH_I2C_Read... [07:10:07]Read from MH i2c: E2 17 00 38 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 4C [07:10:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [07:10:07]wFMCommunicate OK [07:10:07]CreateOFDProtocolMessage done [07:10:07]OFDSenderStorePacket 260505 [07:10:07]StoreOFDPacket docnum=260505 [07:10:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 67 42 07 01 8E 20 5A 03 01 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 51 9E C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 99 F9 03 00 35 04 06 00 04 E1 AD 95 02 11 82 8E 01 C3 60 27 55 A1 [07:10:07]CheckFolder [07:10:07]dirname=/storage/ofd_packets [07:10:07]CheckFolder done [07:10:07]ProducePacketName [07:10:07]name=ofd_packets/00260505 [07:10:07]NVStorageSaveData ofd_packets/00260505 [07:10:07]File name is /storage/ofd_packets/00260505 [07:10:07]Write 301 bytes [07:10:07]NVStorageSaveData done [07:10:07]OFDSenderStorePacket done [07:10:07]KKMCreateOFDPacket done [07:10:07]NVStorageSaveData kkm_last_timestamp [07:10:07]File name is /storage/kkm_last_timestamp [07:10:07]Write 4 bytes [07:10:07]NVStorageSaveData done [07:10:07]ExternCall_PrintAddStr [07:10:07]wPrintStart [07:10:07]Write to MH i2c: 01 00 00 39 4D 86 [07:10:07]Write i2c OK [07:10:07]MH_I2C_Read... [07:10:07]Read from MH i2c: 01 [07:10:07]MH_I2C_Read... [07:10:07]Read from MH i2c: 01 07 00 [07:10:07]MH_I2C_Read... [07:10:07]Read from MH i2c: 01 07 00 39 4D 00 00 00 00 00 FF 0F 9B [07:10:07]RasterBufferAndPrint [07:10:07]line Счет N : (1)1036048 [07:10:07]line ИНН: 02508201610067 [07:10:07]line Контрольно-Кассовый Чек [07:10:07]line ПРОДАЖА [07:10:07]line ТРК (МРК, ГНК) : 23 [07:10:07]line Товар: 2710124500 [07:10:07]line Аи-95-К-5 [07:10:07]line 13.480 * 74.20 [07:10:07]line = 1000.22 [07:10:07]line НДС 12% НСП 1% [07:10:07]line > о реализуемом товаре [07:10:07]line ИТОГО: 1000.22 [07:10:07]line НСП 1% : 8.85 [07:10:07]line НДС 12% : 106.22 [07:10:07]line Наличными: 0.00 [07:10:07]line Безнал.: 1000.22 [07:10:07]line Место: АЗС № 94 "Партнер Нефть" [07:10:07]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [07:10:07]line СНО: Общий режим [07:10:07]line Чек 63 18.08.2024 07:10 [07:10:07]line Смена: 449 ФФД: 1.0 [07:10:07]line ЗНМ: 0300000099 [07:10:07]line РНМ: 0000000000091865 [07:10:07]line Версия ККМ: 001 [07:10:07]line Платежная система: O! деньги [07:10:07]line ФМ: 0000000000871820 [07:10:07]line ФД: 260505 [07:10:07]line ФПД: 5367326376465 [07:10:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T071009&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260505&fm=5367326376465&tin=02508201610067®Number=0000000000091865&sum=100022 [07:10:07]written 0, free lines is 4095 [07:10:07]OFD Sender: Processing packet 260505 [packets to send 192, broken 191] [07:10:07]ProducePacketName [07:10:07]name=ofd_packets/00260505 [07:10:07]OFD Sender: To server: pG, [07:10:07]CommunicateWithHost lk.salyk.kg:30040 [07:10:07]ConnectInit lk.salyk.kg [07:10:07]Connected sock=10 [07:10: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 30 0F 01 00 00 67 42 07 01 8E 20 5A 03 01 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 51 9E C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 99 F9 03 00 35 04 06 00 04 E1 AD 95 02 11 82 8E 01 C3 60 27 55 A1 [07:10: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 30 4F 00 00 00 DF 77 47 00 1B 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 30 10 04 04 00 99 F9 03 00 F4 03 04 00 A6 47 C1 66 B6 04 01 00 00 9B CC CC D3 F4 BE 4B 64 [07:10:07]CommunicateWithHost err = 0 [07:10:07]CheckOFDResponse [07:10:07]1017 (14) - 77093643461234 [07:10:07]1041 (16) - 0000000000871820 [07:10:07]1040 (4) - 260505 [07:10:07]1012 (4) - 18.08.2024 01:00 [07:10:07]1206 (1) - 0 [07:10:07]OFD Sender: Remove packet 260505 [07:10:07]ProducePacketName [07:10:07]name=ofd_packets/00260505 [07:10:07]NVStorageDeleteData [07:10:07]Write to MH i2c: 01 00 00 63 4D B0 [07:10:07]Write i2c OK [07:10:07]MH_I2C_Read... [07:10:07]Read from MH i2c: 01 [07:10:07]MH_I2C_Read... [07:10:07]Read from MH i2c: 01 07 00 [07:10:07]MH_I2C_Read... [07:10:07]Read from MH i2c: 01 07 00 63 4D 00 00 00 00 00 87 0C 4A [07:10:07]RasterBufferAndPrint [07:10:07]line [07:10:07]line [07:10:07]line [07:10:07]line [07:10:07]line [07:10:07]written 0, free lines is 3210 [07:10:07]MH_Cut [07:10:07]Write to MH i2c: D1 01 00 6A 4D 01 89 [07:10:07]Write i2c OK [07:10:07]MH_I2C_Read... [07:10:07]Read from MH i2c: D1 [07:10:07]MH_I2C_Read... [07:10:07]Read from MH i2c: D1 01 00 [07:10:07]MH_I2C_Read... [07:10:07]Read from MH i2c: D1 01 00 6A 4D 00 88 [07:10:07]Write to MH i2c: 01 00 00 6B 4D B8 [07:10:07]Write i2c OK [07:10:07]MH_I2C_Read... [07:10:08]OFD Sender: No OFD packet to send [07:10:08]*** Cut start [07:10:08]*** Purtial cut [07:10:08]*** Stage 1: CUTSNS_PIN = 1 [07:10:10]Read from MH i2c: 01 [07:10:10]MH_I2C_Read... [07:10:10]*** Stop cut motor [07:10:10]*** Cut end [07:10:10]Read from MH i2c: 01 07 00 [07:10:10]MH_I2C_Read... [07:10:10]Read from MH i2c: 01 07 00 6B 4D 00 00 00 00 00 FF 0F CD [07:10:10]process_action close_receipt done [07:10:10]requested_data is exist [07:10:10]produce_requested_data [07:10:10]requested_item fm.sn is exist - process it [07:10:10]wFMCommunicate request_size=4 [07:10:10]MH_SAM_APDU [07:10:10]CAPDU: 80 11 00 00 [07:10:10]Write to MH i2c: E2 08 00 6C 4D 80 11 00 00 00 00 00 00 33 [07:10:10]Write i2c OK [07:10:10]MH_I2C_Read... [07:10:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:10:10]Read from MH i2c: E2 [07:10:10]MH_I2C_Read... [07:10:10]Read from MH i2c: E2 17 00 [07:10:10]MH_I2C_Read... [07:10:10]Read from MH i2c: E2 17 00 6C 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 80 [07:10:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [07:10:10]wFMCommunicate OK [07:10:10]requested_item fd.num is exist - process it [07:10:10]SAM_PROTO_GetFieldsCounters [07:10:10]wFMCommunicate request_size=4 [07:10:10]MH_SAM_APDU [07:10:10]CAPDU: 80 13 00 00 [07:10:10]Write to MH i2c: E2 08 00 6D 4D 80 13 00 00 00 00 00 00 36 [07:10:10]Write i2c OK [07:10:10]MH_I2C_Read... [07:10:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:10:11]Read from MH i2c: E2 [07:10:11]MH_I2C_Read... [07:10:11]Read from MH i2c: E2 62 00 [07:10:11]MH_I2C_Read... [07:10:11]Read from MH i2c: E2 62 00 6D 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 99 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [07:10: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 99 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:10:11]wFMCommunicate OK [07:10:11]SAM_PROTO_GetFieldsCounters done [07:10:11]requested_item shift.num is exist - process it [07:10:11]requested_item shift.opened is exist - process it [07:10:11]req_shift_opened [07:10:11]FM_GetShiftState [07:10:11]SAM_PROTO_GetShiftState [07:10:11]wFMCommunicate request_size=4 [07:10:11]MH_SAM_APDU [07:10:11]CAPDU: 80 13 01 00 [07:10:11]Write to MH i2c: E2 08 00 6E 4D 80 13 01 00 00 00 00 00 38 [07:10:11]Write i2c OK [07:10:11]MH_I2C_Read... [07:10:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:10:11]Read from MH i2c: E2 [07:10:11]MH_I2C_Read... [07:10:11]Read from MH i2c: E2 0E 00 [07:10:11]MH_I2C_Read... [07:10:11]Read from MH i2c: E2 0E 00 6E 4D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 75 [07:10:11]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [07:10:11]wFMCommunicate OK [07:10:11]SAM_PROTO_GetShiftState done [07:10:11]FM_GetShiftState done [07:10:11]req_shift_opened done [07:10:11]requested_item shift.open_date is exist - process it [07:10:11]req_shift_open_date [07:10:11]req_shift_open_date done [07:10:11]produce_requested_data done [07:10:11]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260505,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [07:10:11]process_action_free close_receipt [07:10:11]json_value_free [07:10:11]json_value_free done [07:10:11]process_json_proto returns [07:10:11]Send response to host [07:10:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260505,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [07:10:11]free response buf [07:10:11]execute_script done [07:10:11]execute_script returns [07:10:11]free content buf [07:10:11]Sock 7.Close socket [07:10:11]Sock 7.Thread stoped [07:10:13]OFD Sender: No OFD packet to send [07:10:18]OFD Sender: No OFD packet to send [07:10:23]OFD Sender: No OFD packet to send [07:10:28]OFD Sender: No OFD packet to send [07:10:33]OFD Sender: No OFD packet to send [07:10:38]OFD Sender: No OFD packet to send [07:10:43]OFD Sender: No OFD packet to send [07:10:48]OFD Sender: No OFD packet to send [07:10:53]OFD Sender: No OFD packet to send [07:10:58]OFD Sender: No OFD packet to send [07:11:03]OFD Sender: No OFD packet to send [07:11:08]OFD Sender: No OFD packet to send [07:11:13]OFD Sender: No OFD packet to send [07:11:18]OFD Sender: No OFD packet to send [07:11:23]OFD Sender: No OFD packet to send [07:11:28]OFD Sender: No OFD packet to send [07:11:33]OFD Sender: No OFD packet to send [07:11:38]OFD Sender: No OFD packet to send [07:11:43]OFD Sender: No OFD packet to send [07:11:48]OFD Sender: No OFD packet to send [07:11:53]OFD Sender: No OFD packet to send [07:11:58]OFD Sender: No OFD packet to send [07:12:03]OFD Sender: No OFD packet to send [07:12:08]OFD Sender: No OFD packet to send [07:12:13]OFD Sender: No OFD packet to send [07:12:18]OFD Sender: No OFD packet to send [07:12:23]OFD Sender: No OFD packet to send [07:12:28]OFD Sender: No OFD packet to send [07:12:33]OFD Sender: No OFD packet to send [07:12:38]OFD Sender: No OFD packet to send [07:12:43]OFD Sender: No OFD packet to send [07:12:48]OFD Sender: No OFD packet to send [07:12:53]OFD Sender: No OFD packet to send [07:12:58]OFD Sender: No OFD packet to send [07:13:03]OFD Sender: No OFD packet to send [07:13:08]OFD Sender: No OFD packet to send [07:13:13]OFD Sender: No OFD packet to send [07:13:18]OFD Sender: No OFD packet to send [07:13:23]OFD Sender: No OFD packet to send [07:13:28]OFD Sender: No OFD packet to send [07:13:33]OFD Sender: No OFD packet to send [07:13:38]OFD Sender: No OFD packet to send [07:13:43]OFD Sender: No OFD packet to send [07:13:48]OFD Sender: No OFD packet to send [07:13:53]OFD Sender: No OFD packet to send [07:13:58]OFD Sender: No OFD packet to send [07:14:03]OFD Sender: No OFD packet to send [07:14:08]OFD Sender: No OFD packet to send [07:14:13]OFD Sender: No OFD packet to send [07:14:18]OFD Sender: No OFD packet to send [07:14:23]OFD Sender: No OFD packet to send [07:14:28]OFD Sender: No OFD packet to send [07:14:33]OFD Sender: No OFD packet to send [07:14:38]OFD Sender: No OFD packet to send [07:14:43]OFD Sender: No OFD packet to send [07:14:48]OFD Sender: No OFD packet to send [07:14:53]OFD Sender: No OFD packet to send [07:14:58]OFD Sender: No OFD packet to send [07:15:03]OFD Sender: No OFD packet to send [07:15:08]OFD Sender: No OFD packet to send [07:15:13]OFD Sender: No OFD packet to send [07:15:18]OFD Sender: No OFD packet to send [07:15:23]OFD Sender: No OFD packet to send [07:15:28]OFD Sender: No OFD packet to send [07:15:33]OFD Sender: No OFD packet to send [07:15:38]OFD Sender: No OFD packet to send [07:15:43]OFD Sender: No OFD packet to send [07:15:48]OFD Sender: No OFD packet to send [07:15:53]OFD Sender: No OFD packet to send [07:15:58]OFD Sender: No OFD packet to send [07:16:03]OFD Sender: No OFD packet to send [07:16:08]OFD Sender: No OFD packet to send [07:16:13]OFD Sender: No OFD packet to send [07:16:18]OFD Sender: No OFD packet to send [07:16:23]OFD Sender: No OFD packet to send [07:16:28]OFD Sender: No OFD packet to send [07:16:33]OFD Sender: No OFD packet to send [07:16:38]OFD Sender: No OFD packet to send [07:16:43]OFD Sender: No OFD packet to send [07:16:48]OFD Sender: No OFD packet to send [07:16:53]OFD Sender: No OFD packet to send [07:16:58]OFD Sender: No OFD packet to send [07:17:03]OFD Sender: No OFD packet to send [07:17:08]OFD Sender: No OFD packet to send [07:17:13]OFD Sender: No OFD packet to send [07:17:18]OFD Sender: No OFD packet to send [07:17:23]OFD Sender: No OFD packet to send [07:17:28]OFD Sender: No OFD packet to send [07:17:33]OFD Sender: No OFD packet to send [07:17:38]OFD Sender: No OFD packet to send [07:17:43]OFD Sender: No OFD packet to send [07:17:48]OFD Sender: No OFD packet to send [07:17:53]OFD Sender: No OFD packet to send [07:17:58]OFD Sender: No OFD packet to send [07:18:03]OFD Sender: No OFD packet to send [07:18:08]OFD Sender: No OFD packet to send [07:18:13]OFD Sender: No OFD packet to send [07:18:18]OFD Sender: No OFD packet to send [07:18:23]OFD Sender: No OFD packet to send [07:18:28]OFD Sender: No OFD packet to send [07:18:33]OFD Sender: No OFD packet to send [07:18:38]OFD Sender: No OFD packet to send [07:18:43]OFD Sender: No OFD packet to send [07:18:48]OFD Sender: No OFD packet to send [07:18:53]OFD Sender: No OFD packet to send [07:18:58]OFD Sender: No OFD packet to send [07:19:03]OFD Sender: No OFD packet to send [07:19:08]OFD Sender: No OFD packet to send [07:19:13]OFD Sender: No OFD packet to send [07:19:14]accept exits with 9 [07:19:14]New connection [07:19:14]New thread 3066473828 created [07:19:14]Thread 3066617188 joined [07:19:14]Waiting for new connection... [07:19:14] Sock 9.Parse request [07:19:14]Sock 9.Check first char [07:19:14]Sock 9.First char is OK [07:19:14]request: POST /json_proto HTTP/1.0 [07:19:14]Method: POST [07:19:14]URL: /json_proto [07:19:14]Method is POST - this is cgi request [07:19:14]url: /json_proto [07:19:14]query_string will be loaded in cgi processing [07:19:14]execute_cgi json_proto POST (null) [07:19:14]execute_cgi path=json_proto method=POST [07:19:14]POST find Content-Length [07:19:14]Host: 172.17.55.133:8080 [07:19:14]Content-Length: 801 [07:19:14]Content-Type: application/json [07:19:14] [07:19:14]POST finish read [07:19:14]Found Content-Length = 801 [07:19:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:19:14]execute_script... [07:19: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)1036049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:19:14]POST & json_proto [07:19:14]process_json_proto [07:19:14]json parsed OK: [07:19:14]protocol is kg_v1.0 [07:19:14]action value=close_receipt [07:19:14]process_action close_receipt [07:19:14]cmd_close_receipt [07:19:14]MH_GetDate [07:19:14]Write to MH i2c: F0 00 00 6F 4D AB [07:19:14]Write i2c OK [07:19:14]MH_I2C_Read... [07:19:14]Read from MH i2c: F0 [07:19:14]MH_I2C_Read... [07:19:14]Read from MH i2c: F0 09 00 [07:19:14]MH_I2C_Read... [07:19:14]Read from MH i2c: F0 09 00 6F 4D 00 76 A0 C1 66 34 48 D8 65 AA [07:19:14]GetLastDocTimeStamp 1723965009 [07:19:14]current date 1723965558 [07:19:14]FM_GetShiftState [07:19:14]SAM_PROTO_GetShiftState [07:19:14]wFMCommunicate request_size=4 [07:19:14]MH_SAM_APDU [07:19:14]CAPDU: 80 13 01 00 [07:19:14]Write to MH i2c: E2 08 00 70 4D 80 13 01 00 00 00 00 00 3A [07:19:14]Write i2c OK [07:19:14]MH_I2C_Read... [07:19:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:19:14]Read from MH i2c: E2 [07:19:14]MH_I2C_Read... [07:19:14]Read from MH i2c: E2 0E 00 [07:19:14]MH_I2C_Read... [07:19:14]Read from MH i2c: E2 0E 00 70 4D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 77 [07:19:14]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [07:19:14]wFMCommunicate OK [07:19:14]SAM_PROTO_GetShiftState done [07:19:14]FM_GetShiftState done [07:19:14]opened in 1723940556 [07:19:14]opened+sec_in_day 1724026956 [07:19:14]quantity*price = 50036 [07:19:14]sum+1 = 50037 [07:19:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 64 18.08.2024 07:19 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260506 ФПД: 115281692940985 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T071918&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260506&fm=115281692940985&tin=02508201610067®Number=0000000000091865&sum=50036 [07:19:15]StoreToDocumentArchive [07:19:15]shift 449 fd 260506 [07:19:15]save to /storage/0449/doc_00260506 [07:19:15]save last doc name /storage/0449/doc_00260506 to /storage/kkm_last_doc_name [07:19:15]save OK [07:19:15]Clear old archive folders... [07:19:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:19:15]tlvbuf is 00489C00 [07:19:15]SAM_PROTO_ClearQueue [07:19:15]wFMCommunicate request_size=4 [07:19:15]MH_SAM_APDU [07:19:15]CAPDU: 80 09 00 00 [07:19:15]Write to MH i2c: E2 08 00 7D 4D 80 09 00 00 00 00 00 00 3C [07:19:15]Write i2c OK [07:19:15]MH_I2C_Read... [07:19:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:19:15]Read from MH i2c: E2 [07:19:15]MH_I2C_Read... [07:19:15]Read from MH i2c: E2 03 00 [07:19:15]MH_I2C_Read... [07:19:15]Read from MH i2c: E2 03 00 7D 4D 00 90 00 3E [07:19:15]RAPDU: 90 00 [07:19:15]wFMCommunicate OK [07:19:15]SAM_PROTO_ClearQueue done [07:19:15]KKMCreateOFDPacket [07:19:15]OFDProtocolAddRootSTLVToBuf [07:19:15]FM_MakeSignedData [07:19:15]FM_MakeSignedData [07:19:15]SAM_PROTO_SignData [07:19:15]wFMCommunicate request_size=4 [07:19:15]MH_SAM_APDU [07:19:15]CAPDU: 80 0D 01 02 [07:19:15]Write to MH i2c: E2 08 00 7E 4D 80 0D 01 02 00 00 00 00 44 [07:19:15]Write i2c OK [07:19:15]MH_I2C_Read... [07:19:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:19:16]Read from MH i2c: E2 [07:19:16]MH_I2C_Read... [07:19:16]Read from MH i2c: E2 03 00 [07:19:16]MH_I2C_Read... [07:19:16]Read from MH i2c: E2 03 00 7E 4D 00 90 00 3F [07:19:16]RAPDU: 90 00 [07:19:16]wFMCommunicate OK [07:19:16]wFMCommunicate request_size=255 [07:19:16]MH_SAM_APDU [07:19:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 76 A0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9A F9 03 00 35 04 06 00 68 [07:19:16]Write to MH i2c: E2 02 01 7F 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 76 A0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9A F9 03 00 35 04 06 00 68 00 00 46 [07:19:16]Write i2c OK [07:19:16]MH_I2C_Read... [07:19:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:19:16]Read from MH i2c: E2 [07:19:16]MH_I2C_Read... [07:19:16]Read from MH i2c: E2 03 00 [07:19:16]MH_I2C_Read... [07:19:16]Read from MH i2c: E2 03 00 7F 4D 00 90 00 40 [07:19:16]RAPDU: 90 00 [07:19:16]wFMCommunicate OK [07:19:16]wFMCommunicate request_size=10 [07:19:16]MH_SAM_APDU [07:19:16]CAPDU: 80 0D 02 02 05 D9 1C 5B 5A B9 [07:19:16]Write to MH i2c: E2 0D 00 80 4D 80 0D 02 02 05 00 D9 1C 5B 5A B9 00 00 B4 [07:19:16]Write i2c OK [07:19:16]MH_I2C_Read... [07:19:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:19:16]Read from MH i2c: E2 [07:19:16]MH_I2C_Read... [07:19:16]Read from MH i2c: E2 03 00 [07:19:16]MH_I2C_Read... [07:19:16]Read from MH i2c: E2 03 00 80 4D 00 90 00 41 [07:19:16]RAPDU: 90 00 [07:19:16]wFMCommunicate OK [07:19:16]wFMCommunicate request_size=4 [07:19:16]MH_SAM_APDU [07:19:16]CAPDU: 80 0D 03 02 [07:19:16]Write to MH i2c: E2 08 00 81 4D 80 0D 03 02 00 00 00 00 49 [07:19:16]Write i2c OK [07:19:16]MH_I2C_Read... [07:19:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:19:16]Read from MH i2c: E2 [07:19:16]MH_I2C_Read... [07:19:16]Read from MH i2c: E2 0B 00 [07:19:16]MH_I2C_Read... [07:19:16]Read from MH i2c: E2 0B 00 81 4D 00 83 B9 A3 8A 98 25 17 A5 90 00 2C [07:19:16]RAPDU: 83 B9 A3 8A 98 25 17 A5 90 00 [07:19:16]wFMCommunicate OK [07:19:16]SAM_PROTO_SignData done [07:19:16]FM_MakeSignedData done [07:19:16]CreateOFDProtocolMessage [07:19:16]wFMCommunicate request_size=4 [07:19:16]MH_SAM_APDU [07:19:16]CAPDU: 80 11 00 00 [07:19:16]Write to MH i2c: E2 08 00 82 4D 80 11 00 00 00 00 00 00 49 [07:19:16]Write i2c OK [07:19:16]MH_I2C_Read... [07:19:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:19:16]Read from MH i2c: E2 [07:19:16]MH_I2C_Read... [07:19:16]Read from MH i2c: E2 17 00 [07:19:16]MH_I2C_Read... [07:19:16]Read from MH i2c: E2 17 00 82 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 96 [07:19:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [07:19:16]wFMCommunicate OK [07:19:16]CreateOFDProtocolMessage done [07:19:16]OFDSenderStorePacket 260506 [07:19:16]StoreOFDPacket docnum=260506 [07:19:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 99 CE 07 01 A7 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 76 A0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9A F9 03 00 35 04 06 00 68 D9 1C 5B 5A B9 83 B9 A3 8A 98 25 17 A5 [07:19:16]CheckFolder [07:19:16]dirname=/storage/ofd_packets [07:19:16]CheckFolder done [07:19:16]ProducePacketName [07:19:16]name=ofd_packets/00260506 [07:19:16]NVStorageSaveData ofd_packets/00260506 [07:19:16]File name is /storage/ofd_packets/00260506 [07:19:16]Write 301 bytes [07:19:16]NVStorageSaveData done [07:19:16]OFDSenderStorePacket done [07:19:16]KKMCreateOFDPacket done [07:19:16]NVStorageSaveData kkm_last_timestamp [07:19:16]File name is /storage/kkm_last_timestamp [07:19:16]Write 4 bytes [07:19:16]NVStorageSaveData done [07:19:16]ExternCall_PrintAddStr [07:19:16]wPrintStart [07:19:16]Write to MH i2c: 01 00 00 83 4D D0 [07:19:16]Write i2c OK [07:19:16]MH_I2C_Read... [07:19:16]Read from MH i2c: 01 [07:19:16]MH_I2C_Read... [07:19:16]Read from MH i2c: 01 07 00 [07:19:16]MH_I2C_Read... [07:19:16]Read from MH i2c: 01 07 00 83 4D 00 00 00 00 00 FF 0F E5 [07:19:16]RasterBufferAndPrint [07:19:16]line Счет N : (1)1036049 [07:19:16]line ИНН: 02508201610067 [07:19:16]line Контрольно-Кассовый Чек [07:19:16]line ПРОДАЖА [07:19:16]line ТРК (МРК, ГНК) : 22 [07:19:16]line Товар: 2710124130 [07:19:16]line Аи-92-К-5 [07:19:16]line 7.380 * 67.80 [07:19:16]line = 500.36 [07:19:16]line НДС 12% НСП 1% [07:19:16]line > о реализуемом товаре [07:19:16]line ИТОГО: 500.36 [07:19:16]line НСП 1% : 4.43 [07:19:16]line НДС 12% : 53.14 [07:19:16]line Наличными: 0.00 [07:19:16]line Безнал.: 500.36 [07:19:16]line Место: АЗС № 94 "Партнер Нефть" [07:19:16]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [07:19:16]line СНО: Общий режим [07:19:16]line Чек 64 18.08.2024 07:19 [07:19:16]line Смена: 449 ФФД: 1.0 [07:19:16]line ЗНМ: 0300000099 [07:19:16]line РНМ: 0000000000091865 [07:19:16]line Версия ККМ: 001 [07:19:16]line Платежная система: O! деньги [07:19:16]line ФМ: 0000000000871820 [07:19:16]line ФД: 260506 [07:19:16]line ФПД: 115281692940985 [07:19:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T071918&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260506&fm=115281692940985&tin=02508201610067®Number=0000000000091865&sum=50036 [07:19:16]written 0, free lines is 4095 [07:19:16]OFD Sender: Processing packet 260506 [packets to send 192, broken 191] [07:19:16]ProducePacketName [07:19:16]name=ofd_packets/00260506 [07:19:16]OFD Sender: To server: pG, [07:19:16]CommunicateWithHost lk.salyk.kg:30040 [07:19:16]ConnectInit lk.salyk.kg [07:19:16]Connected sock=10 [07:19: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 30 0F 01 00 00 99 CE 07 01 A7 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 76 A0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9A F9 03 00 35 04 06 00 68 D9 1C 5B 5A B9 83 B9 A3 8A 98 25 17 A5 [07:19: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 30 4F 00 00 00 CC 4A 47 00 6C 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 30 10 04 04 00 9A F9 03 00 F4 03 04 00 CB 49 C1 66 B6 04 01 00 00 4F BE FF 0F 16 15 A6 C9 [07:19:16]CommunicateWithHost err = 0 [07:19:16]CheckOFDResponse [07:19:16]1017 (14) - 77093643461234 [07:19:16]1041 (16) - 0000000000871820 [07:19:16]1040 (4) - 260506 [07:19:16]1012 (4) - 18.08.2024 01:09 [07:19:16]1206 (1) - 0 [07:19:16]OFD Sender: Remove packet 260506 [07:19:16]ProducePacketName [07:19:16]name=ofd_packets/00260506 [07:19:16]NVStorageDeleteData [07:19:16]Write to MH i2c: 01 00 00 AD 4D FA [07:19:16]Write i2c OK [07:19:16]MH_I2C_Read... [07:19:16]Read from MH i2c: 01 [07:19:16]MH_I2C_Read... [07:19:16]Read from MH i2c: 01 07 00 [07:19:16]MH_I2C_Read... [07:19:16]Read from MH i2c: 01 07 00 AD 4D 00 00 00 00 00 83 0C 90 [07:19:16]RasterBufferAndPrint [07:19:16]line [07:19:16]line [07:19:16]line [07:19:16]line [07:19:16]line [07:19:16]written 0, free lines is 3207 [07:19:16]MH_Cut [07:19:16]Write to MH i2c: D1 01 00 B4 4D 01 D3 [07:19:16]Write i2c OK [07:19:16]MH_I2C_Read... [07:19:16]Read from MH i2c: D1 [07:19:16]MH_I2C_Read... [07:19:16]Read from MH i2c: D1 01 00 [07:19:16]MH_I2C_Read... [07:19:16]Read from MH i2c: D1 01 00 B4 4D 00 D2 [07:19:16]Write to MH i2c: 01 00 00 B5 4D 02 [07:19:16]Write i2c OK [07:19:16]MH_I2C_Read... [07:19:17]OFD Sender: No OFD packet to send [07:19:18]*** Cut start [07:19:18]*** Purtial cut [07:19:18]*** Stage 1: CUTSNS_PIN = 1 [07:19:20]Read from MH i2c: 01 [07:19:20]MH_I2C_Read... [07:19:20]*** Stop cut motor [07:19:20]*** Cut end [07:19:20]Read from MH i2c: 01 07 00 [07:19:20]MH_I2C_Read... [07:19:20]Read from MH i2c: 01 07 00 B5 4D 00 00 00 00 00 FF 0F 17 [07:19:20]process_action close_receipt done [07:19:20]requested_data is exist [07:19:20]produce_requested_data [07:19:20]requested_item fm.sn is exist - process it [07:19:20]wFMCommunicate request_size=4 [07:19:20]MH_SAM_APDU [07:19:20]CAPDU: 80 11 00 00 [07:19:20]Write to MH i2c: E2 08 00 B6 4D 80 11 00 00 00 00 00 00 7D [07:19:20]Write i2c OK [07:19:20]MH_I2C_Read... [07:19:20]Read from MH i2c: E2 [07:19:20]MH_I2C_Read... [07:19:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:19:20]Read from MH i2c: E2 17 00 [07:19:20]MH_I2C_Read... [07:19:20]Read from MH i2c: E2 17 00 B6 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 CA [07:19:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [07:19:20]wFMCommunicate OK [07:19:20]requested_item fd.num is exist - process it [07:19:20]SAM_PROTO_GetFieldsCounters [07:19:20]wFMCommunicate request_size=4 [07:19:20]MH_SAM_APDU [07:19:20]CAPDU: 80 13 00 00 [07:19:20]Write to MH i2c: E2 08 00 B7 4D 80 13 00 00 00 00 00 00 80 [07:19:20]Write i2c OK [07:19:20]MH_I2C_Read... [07:19:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:19:20]Read from MH i2c: E2 [07:19:20]MH_I2C_Read... [07:19:20]Read from MH i2c: E2 62 00 [07:19:20]MH_I2C_Read... [07:19:20]Read from MH i2c: E2 62 00 B7 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 9A F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [07:19:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 9A F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:19:20]wFMCommunicate OK [07:19:20]SAM_PROTO_GetFieldsCounters done [07:19:20]requested_item shift.num is exist - process it [07:19:20]requested_item shift.opened is exist - process it [07:19:20]req_shift_opened [07:19:20]FM_GetShiftState [07:19:20]SAM_PROTO_GetShiftState [07:19:20]wFMCommunicate request_size=4 [07:19:20]MH_SAM_APDU [07:19:20]CAPDU: 80 13 01 00 [07:19:20]Write to MH i2c: E2 08 00 B8 4D 80 13 01 00 00 00 00 00 82 [07:19:20]Write i2c OK [07:19:20]MH_I2C_Read... [07:19:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:19:20]Read from MH i2c: E2 [07:19:20]MH_I2C_Read... [07:19:20]Read from MH i2c: E2 0E 00 [07:19:20]MH_I2C_Read... [07:19:20]Read from MH i2c: E2 0E 00 B8 4D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 BF [07:19:20]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [07:19:20]wFMCommunicate OK [07:19:20]SAM_PROTO_GetShiftState done [07:19:20]FM_GetShiftState done [07:19:20]req_shift_opened done [07:19:20]requested_item shift.open_date is exist - process it [07:19:20]req_shift_open_date [07:19:20]req_shift_open_date done [07:19:20]produce_requested_data done [07:19:20]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260506,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [07:19:20]process_action_free close_receipt [07:19:20]json_value_free [07:19:20]json_value_free done [07:19:20]process_json_proto returns [07:19:20]Send response to host [07:19:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260506,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [07:19:20]free response buf [07:19:20]execute_script done [07:19:20]execute_script returns [07:19:20]free content buf [07:19:20]Sock 9.Close socket [07:19:20]Sock 9.Thread stoped [07:19:22]OFD Sender: No OFD packet to send [07:19:27]OFD Sender: No OFD packet to send [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:22]OFD Sender: No OFD packet to send [07:20:27]OFD Sender: No OFD packet to send [07:20:32]OFD Sender: No OFD packet to send [07:20:37]OFD Sender: No OFD packet to send [07:20:42]OFD Sender: No OFD packet to send [07:20:47]OFD Sender: No OFD packet to send [07:20:52]OFD Sender: No OFD packet to send [07:20:57]OFD Sender: No OFD packet to send [07:21:02]OFD Sender: No OFD packet to send [07:21:07]OFD Sender: No OFD packet to send [07:21:12]OFD Sender: No OFD packet to send [07:21:17]OFD Sender: No OFD packet to send [07:21:22]OFD Sender: No OFD packet to send [07:21:27]OFD Sender: No OFD packet to send [07:21:32]OFD Sender: No OFD packet to send [07:21:37]OFD Sender: No OFD packet to send [07:21:42]OFD Sender: No OFD packet to send [07:21:47]OFD Sender: No OFD packet to send [07:21:52]OFD Sender: No OFD packet to send [07:21:57]OFD Sender: No OFD packet to send [07:22:02]OFD Sender: No OFD packet to send [07:22:07]OFD Sender: No OFD packet to send [07:22:12]OFD Sender: No OFD packet to send [07:22:17]OFD Sender: No OFD packet to send [07:22:22]OFD Sender: No OFD packet to send [07:22:27]OFD Sender: No OFD packet to send [07:22:32]OFD Sender: No OFD packet to send [07:22:37]OFD Sender: No OFD packet to send [07:22:42]OFD Sender: No OFD packet to send [07:22:47]OFD Sender: No OFD packet to send [07:22:52]OFD Sender: No OFD packet to send [07:22:57]OFD Sender: No OFD packet to send [07:23:02]OFD Sender: No OFD packet to send [07:23:07]OFD Sender: No OFD packet to send [07:23:12]OFD Sender: No OFD packet to send [07:23:17]OFD Sender: No OFD packet to send [07:23:22]OFD Sender: No OFD packet to send [07:23:27]OFD Sender: No OFD packet to send [07:23:32]OFD Sender: No OFD packet to send [07:23:37]OFD Sender: No OFD packet to send [07:23:42]OFD Sender: No OFD packet to send [07:23:47]OFD Sender: No OFD packet to send [07:23:52]OFD Sender: No OFD packet to send [07:23:57]OFD Sender: No OFD packet to send [07:24:02]OFD Sender: No OFD packet to send [07:24:07]OFD Sender: No OFD packet to send [07:24:12]OFD Sender: No OFD packet to send [07:24:17]OFD Sender: No OFD packet to send [07:24:22]OFD Sender: No OFD packet to send [07:24:27]OFD Sender: No OFD packet to send [07:24:32]OFD Sender: No OFD packet to send [07:24:37]OFD Sender: No OFD packet to send [07:24:42]OFD Sender: No OFD packet to send [07:24:47]OFD Sender: No OFD packet to send [07:24:52]OFD Sender: No OFD packet to send [07:24:57]OFD Sender: No OFD packet to send [07:25:02]OFD Sender: No OFD packet to send [07:25:07]OFD Sender: No OFD packet to send [07:25:12]OFD Sender: No OFD packet to send [07:25:17]OFD Sender: No OFD packet to send [07:25:22]OFD Sender: No OFD packet to send [07:25:27]OFD Sender: No OFD packet to send [07:25:32]OFD Sender: No OFD packet to send [07:25:37]OFD Sender: No OFD packet to send [07:25:42]OFD Sender: No OFD packet to send [07:25:47]OFD Sender: No OFD packet to send [07:25:52]OFD Sender: No OFD packet to send [07:25:57]OFD Sender: No OFD packet to send [07:26:02]OFD Sender: No OFD packet to send [07:26:07]OFD Sender: No OFD packet to send [07:26:12]OFD Sender: No OFD packet to send [07:26:17]OFD Sender: No OFD packet to send [07:26:22]OFD Sender: No OFD packet to send [07:26:27]OFD Sender: No OFD packet to send [07:26:32]OFD Sender: No OFD packet to send [07:26:37]OFD Sender: No OFD packet to send [07:26:42]OFD Sender: No OFD packet to send [07:26:47]OFD Sender: No OFD packet to send [07:26:52]OFD Sender: No OFD packet to send [07:26:57]OFD Sender: No OFD packet to send [07:27:02]OFD Sender: No OFD packet to send [07:27:07]OFD Sender: No OFD packet to send [07:27:12]OFD Sender: No OFD packet to send [07:27:17]OFD Sender: No OFD packet to send [07:27:22]OFD Sender: No OFD packet to send [07:27:27]OFD Sender: No OFD packet to send [07:27:32]OFD Sender: No OFD packet to send [07:27:38]OFD Sender: No OFD packet to send [07:27:43]OFD Sender: No OFD packet to send [07:27:48]OFD Sender: No OFD packet to send [07:27:53]OFD Sender: No OFD packet to send [07:27:58]OFD Sender: No OFD packet to send [07:28:03]OFD Sender: No OFD packet to send [07:28:08]OFD Sender: No OFD packet to send [07:28:13]OFD Sender: No OFD packet to send [07:28:18]OFD Sender: No OFD packet to send [07:28:23]OFD Sender: No OFD packet to send [07:28:28]OFD Sender: No OFD packet to send [07:28:33]OFD Sender: No OFD packet to send [07:28:38]OFD Sender: No OFD packet to send [07:28:43]OFD Sender: No OFD packet to send [07:28:48]OFD Sender: No OFD packet to send [07:28:53]OFD Sender: No OFD packet to send [07:28:58]OFD Sender: No OFD packet to send [07:29:03]OFD Sender: No OFD packet to send [07:29:08]OFD Sender: No OFD packet to send [07:29:13]OFD Sender: No OFD packet to send [07:29:18]OFD Sender: No OFD packet to send [07:29:23]OFD Sender: No OFD packet to send [07:29:28]OFD Sender: No OFD packet to send [07:29:33]OFD Sender: No OFD packet to send [07:29:38]OFD Sender: No OFD packet to send [07:29:43]OFD Sender: No OFD packet to send [07:29:48]OFD Sender: No OFD packet to send [07:29:53]OFD Sender: No OFD packet to send [07:29:58]OFD Sender: No OFD packet to send [07:30:03]OFD Sender: No OFD packet to send [07:30:08]OFD Sender: No OFD packet to send [07:30:13]OFD Sender: No OFD packet to send [07:30:18]OFD Sender: No OFD packet to send [07:30:23]OFD Sender: No OFD packet to send [07:30:28]OFD Sender: No OFD packet to send [07:30:33]OFD Sender: No OFD packet to send [07:30:38]OFD Sender: No OFD packet to send [07:30:43]OFD Sender: No OFD packet to send [07:30:48]OFD Sender: No OFD packet to send [07:30:53]OFD Sender: No OFD packet to send [07:30:58]OFD Sender: No OFD packet to send [07:31:03]OFD Sender: No OFD packet to send [07:31:08]OFD Sender: No OFD packet to send [07:31:13]OFD Sender: No OFD packet to send [07:31:18]OFD Sender: No OFD packet to send [07:31:23]OFD Sender: No OFD packet to send [07:31:28]OFD Sender: No OFD packet to send [07:31:33]OFD Sender: No OFD packet to send [07:31:38]OFD Sender: No OFD packet to send [07:31:43]OFD Sender: No OFD packet to send [07:31:48]OFD Sender: No OFD packet to send [07:31:53]OFD Sender: No OFD packet to send [07:31:58]OFD Sender: No OFD packet to send [07:32:03]OFD Sender: No OFD packet to send [07:32:08]OFD Sender: No OFD packet to send [07:32:13]OFD Sender: No OFD packet to send [07:32:18]OFD Sender: No OFD packet to send [07:32:23]OFD Sender: No OFD packet to send [07:32:28]OFD Sender: No OFD packet to send [07:32:33]OFD Sender: No OFD packet to send [07:32:38]OFD Sender: No OFD packet to send [07:32:43]OFD Sender: No OFD packet to send [07:32:48]OFD Sender: No OFD packet to send [07:32:53]OFD Sender: No OFD packet to send [07:32:58]OFD Sender: No OFD packet to send [07:33:03]OFD Sender: No OFD packet to send [07:33:08]OFD Sender: No OFD packet to send [07:33:13]OFD Sender: No OFD packet to send [07:33:18]OFD Sender: No OFD packet to send [07:33:23]OFD Sender: No OFD packet to send [07:33:28]OFD Sender: No OFD packet to send [07:33:33]OFD Sender: No OFD packet to send [07:33:38]OFD Sender: No OFD packet to send [07:33:43]OFD Sender: No OFD packet to send [07:33:48]OFD Sender: No OFD packet to send [07:33:53]OFD Sender: No OFD packet to send [07:33:58]OFD Sender: No OFD packet to send [07:34:03]OFD Sender: No OFD packet to send [07:34:08]OFD Sender: No OFD packet to send [07:34:13]OFD Sender: No OFD packet to send [07:34:18]OFD Sender: No OFD packet to send [07:34:23]OFD Sender: No OFD packet to send [07:34:28]OFD Sender: No OFD packet to send [07:34:33]OFD Sender: No OFD packet to send [07:34:38]OFD Sender: No OFD packet to send [07:34:43]OFD Sender: No OFD packet to send [07:34:48]OFD Sender: No OFD packet to send [07:34:53]OFD Sender: No OFD packet to send [07:34:58]OFD Sender: No OFD packet to send [07:35:03]OFD Sender: No OFD packet to send [07:35:08]OFD Sender: No OFD packet to send [07:35:13]OFD Sender: No OFD packet to send [07:35:18]OFD Sender: No OFD packet to send [07:35:23]OFD Sender: No OFD packet to send [07:35:28]OFD Sender: No OFD packet to send [07:35:33]OFD Sender: No OFD packet to send [07:35:38]OFD Sender: No OFD packet to send [07:35:43]OFD Sender: No OFD packet to send [07:35:48]OFD Sender: No OFD packet to send [07:35:53]OFD Sender: No OFD packet to send [07:35:58]OFD Sender: No OFD packet to send [07:36:03]OFD Sender: No OFD packet to send [07:36:08]OFD Sender: No OFD packet to send [07:36:13]OFD Sender: No OFD packet to send [07:36:18]OFD Sender: No OFD packet to send [07:36:23]OFD Sender: No OFD packet to send [07:36:28]OFD Sender: No OFD packet to send [07:36:33]OFD Sender: No OFD packet to send [07:36:38]OFD Sender: No OFD packet to send [07:36:43]OFD Sender: No OFD packet to send [07:36:48]OFD Sender: No OFD packet to send [07:36:53]OFD Sender: No OFD packet to send [07:36:58]OFD Sender: No OFD packet to send [07:37:03]OFD Sender: No OFD packet to send [07:37:08]OFD Sender: No OFD packet to send [07:37:13]OFD Sender: No OFD packet to send [07:37:18]OFD Sender: No OFD packet to send [07:37:23]OFD Sender: No OFD packet to send [07:37:28]OFD Sender: No OFD packet to send [07:37:33]OFD Sender: No OFD packet to send [07:37:38]OFD Sender: No OFD packet to send [07:37:43]OFD Sender: No OFD packet to send [07:37:48]OFD Sender: No OFD packet to send [07:37:53]OFD Sender: No OFD packet to send [07:37:58]OFD Sender: No OFD packet to send [07:38:03]OFD Sender: No OFD packet to send [07:38:08]OFD Sender: No OFD packet to send [07:38:13]OFD Sender: No OFD packet to send [07:38:18]OFD Sender: No OFD packet to send [07:38:23]OFD Sender: No OFD packet to send [07:38:28]OFD Sender: No OFD packet to send [07:38:33]OFD Sender: No OFD packet to send [07:38:38]OFD Sender: No OFD packet to send [07:38:43]OFD Sender: No OFD packet to send [07:38:48]OFD Sender: No OFD packet to send [07:38:53]OFD Sender: No OFD packet to send [07:38:58]OFD Sender: No OFD packet to send [07:39:03]OFD Sender: No OFD packet to send [07:39:08]OFD Sender: No OFD packet to send [07:39:13]OFD Sender: No OFD packet to send [07:39:19]OFD Sender: No OFD packet to send [07:39:24]OFD Sender: No OFD packet to send [07:39:29]OFD Sender: No OFD packet to send [07:39:34]OFD Sender: No OFD packet to send [07:39:39]OFD Sender: No OFD packet to send [07:39:44]OFD Sender: No OFD packet to send [07:39:49]OFD Sender: No OFD packet to send [07:39:54]OFD Sender: No OFD packet to send [07:39:59]OFD Sender: No OFD packet to send [07:40:04]OFD Sender: No OFD packet to send [07:40:09]OFD Sender: No OFD packet to send [07:40:14]OFD Sender: No OFD packet to send [07:40:19]OFD Sender: No OFD packet to send [07:40:24]OFD Sender: No OFD packet to send [07:40:29]OFD Sender: No OFD packet to send [07:40:34]OFD Sender: No OFD packet to send [07:40:39]OFD Sender: No OFD packet to send [07:40:44]OFD Sender: No OFD packet to send [07:40:49]OFD Sender: No OFD packet to send [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:32]accept exits with 7 [07:41:32]New connection [07:41:32]New thread 3066617188 created [07:41:32]Thread 3066473828 joined [07:41:32]Waiting for new connection... [07:41:32] Sock 7.Parse request [07:41:32]Sock 7.Check first char [07:41:32]Sock 7.First char is OK [07:41:32]request: POST /json_proto HTTP/1.0 [07:41:32]Method: POST [07:41:32]URL: /json_proto [07:41:32]Method is POST - this is cgi request [07:41:32]url: /json_proto [07:41:32]query_string will be loaded in cgi processing [07:41:32]execute_cgi json_proto POST (null) [07:41:32]execute_cgi path=json_proto method=POST [07:41:32]POST find Content-Length [07:41:32]Host: 172.17.55.133:8080 [07:41:32]Content-Length: 678 [07:41:32]Content-Type: application/json [07:41:32] [07:41:32]POST finish read [07:41:32]Found Content-Length = 678 [07:41:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.840, "sum" : 260.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:41:32]execute_script... [07:41: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)1036050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.840, "sum" : 260.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:41:32]POST & json_proto [07:41:32]process_json_proto [07:41:32]json parsed OK: [07:41:32]protocol is kg_v1.0 [07:41:32]action value=close_receipt [07:41:32]process_action close_receipt [07:41:32]cmd_close_receipt [07:41:32]MH_GetDate [07:41:32]Write to MH i2c: F0 00 00 B9 4D F5 [07:41:32]Write i2c OK [07:41:32]MH_I2C_Read... [07:41:32]Read from MH i2c: F0 [07:41:32]MH_I2C_Read... [07:41:32]Read from MH i2c: F0 09 00 [07:41:32]MH_I2C_Read... [07:41:32]Read from MH i2c: F0 09 00 B9 4D 00 AF A5 C1 66 34 48 D8 65 32 [07:41:32]GetLastDocTimeStamp 1723965558 [07:41:32]current date 1723966895 [07:41:32]FM_GetShiftState [07:41:32]SAM_PROTO_GetShiftState [07:41:32]wFMCommunicate request_size=4 [07:41:32]MH_SAM_APDU [07:41:32]CAPDU: 80 13 01 00 [07:41:32]Write to MH i2c: E2 08 00 BA 4D 80 13 01 00 00 00 00 00 84 [07:41:32]Write i2c OK [07:41:32]MH_I2C_Read... [07:41:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:32]Read from MH i2c: E2 [07:41:32]MH_I2C_Read... [07:41:32]Read from MH i2c: E2 0E 00 [07:41:32]MH_I2C_Read... [07:41:32]Read from MH i2c: E2 0E 00 BA 4D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C1 [07:41:32]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [07:41:32]wFMCommunicate OK [07:41:32]SAM_PROTO_GetShiftState done [07:41:32]FM_GetShiftState done [07:41:32]opened in 1723940556 [07:41:32]opened+sec_in_day 1724026956 [07:41:32]quantity*price = 26035 [07:41:32]sum+1 = 26036 [07:41:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 260.00 Внесено: 260.00 СДАЧА: 0.00 НСП 1% : 2.30 НДС 12% : 27.65 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 65 18.08.2024 07:41 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260507 ФПД: 245025081027738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T074135&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260507&fm=245025081027738&tin=02508201610067®Number=0000000000091865&sum=26000 [07:41:33]StoreToDocumentArchive [07:41:33]shift 449 fd 260507 [07:41:33]save to /storage/0449/doc_00260507 [07:41:33]save last doc name /storage/0449/doc_00260507 to /storage/kkm_last_doc_name [07:41:33]save OK [07:41:33]Clear old archive folders... [07:41:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:41:33]tlvbuf is 003A08B0 [07:41:33]SAM_PROTO_ClearQueue [07:41:33]wFMCommunicate request_size=4 [07:41:33]MH_SAM_APDU [07:41:33]CAPDU: 80 09 00 00 [07:41:33]Write to MH i2c: E2 08 00 C7 4D 80 09 00 00 00 00 00 00 86 [07:41:33]Write i2c OK [07:41:33]MH_I2C_Read... [07:41:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:41:33]Read from MH i2c: E2 [07:41:33]MH_I2C_Read... [07:41:33]Read from MH i2c: E2 03 00 [07:41:33]MH_I2C_Read... [07:41:33]Read from MH i2c: E2 03 00 C7 4D 00 90 00 88 [07:41:33]RAPDU: 90 00 [07:41:33]wFMCommunicate OK [07:41:33]SAM_PROTO_ClearQueue done [07:41:33]KKMCreateOFDPacket [07:41:33]OFDProtocolAddRootSTLVToBuf [07:41:33]FM_MakeSignedData [07:41:33]FM_MakeSignedData [07:41:33]SAM_PROTO_SignData [07:41:33]wFMCommunicate request_size=4 [07:41:33]MH_SAM_APDU [07:41:33]CAPDU: 80 0D 01 02 [07:41:33]Write to MH i2c: E2 08 00 C8 4D 80 0D 01 02 00 00 00 00 8E [07:41:33]Write i2c OK [07:41:33]MH_I2C_Read... [07:41:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:41:33]Read from MH i2c: E2 [07:41:33]MH_I2C_Read... [07:41:33]Read from MH i2c: E2 03 00 [07:41:33]MH_I2C_Read... [07:41:33]Read from MH i2c: E2 03 00 C8 4D 00 90 00 89 [07:41:33]RAPDU: 90 00 [07:41:33]wFMCommunicate OK [07:41:33]wFMCommunicate request_size=255 [07:41:33]MH_SAM_APDU [07: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 35 FF 03 08 00 03 00 0F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B3 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 AF A5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9B F9 03 00 35 04 06 00 DE [07:41:33]Write to MH i2c: E2 02 01 C9 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 0F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B3 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 AF A5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9B F9 03 00 35 04 06 00 DE 00 00 ED [07:41:33]Write i2c OK [07:41:33]MH_I2C_Read... [07:41:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:33]Read from MH i2c: E2 [07:41:33]MH_I2C_Read... [07:41:33]Read from MH i2c: E2 03 00 [07:41:33]MH_I2C_Read... [07:41:33]Read from MH i2c: E2 03 00 C9 4D 00 90 00 8A [07:41:33]RAPDU: 90 00 [07:41:33]wFMCommunicate OK [07:41:33]wFMCommunicate request_size=10 [07:41:33]MH_SAM_APDU [07:41:33]CAPDU: 80 0D 02 02 05 D9 58 EA 6C 9A [07:41:33]Write to MH i2c: E2 0D 00 CA 4D 80 0D 02 02 05 00 D9 58 EA 6C 9A 00 00 BC [07:41:33]Write i2c OK [07:41:33]MH_I2C_Read... [07:41:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:33]Read from MH i2c: E2 [07:41:33]MH_I2C_Read... [07:41:33]Read from MH i2c: E2 03 00 [07:41:33]MH_I2C_Read... [07:41:33]Read from MH i2c: E2 03 00 CA 4D 00 90 00 8B [07:41:33]RAPDU: 90 00 [07:41:33]wFMCommunicate OK [07:41:33]wFMCommunicate request_size=4 [07:41:33]MH_SAM_APDU [07:41:33]CAPDU: 80 0D 03 02 [07:41:33]Write to MH i2c: E2 08 00 CB 4D 80 0D 03 02 00 00 00 00 93 [07:41:33]Write i2c OK [07:41:33]MH_I2C_Read... [07:41:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:41:33]Read from MH i2c: E2 [07:41:33]MH_I2C_Read... [07:41:33]Read from MH i2c: E2 0B 00 [07:41:33]MH_I2C_Read... [07:41:33]Read from MH i2c: E2 0B 00 CB 4D 00 ED A3 87 B5 D0 7D 6E 81 90 00 9C [07:41:33]RAPDU: ED A3 87 B5 D0 7D 6E 81 90 00 [07:41:33]wFMCommunicate OK [07:41:33]SAM_PROTO_SignData done [07:41:33]FM_MakeSignedData done [07:41:33]CreateOFDProtocolMessage [07:41:33]wFMCommunicate request_size=4 [07:41:33]MH_SAM_APDU [07:41:33]CAPDU: 80 11 00 00 [07:41:33]Write to MH i2c: E2 08 00 CC 4D 80 11 00 00 00 00 00 00 93 [07:41:33]Write i2c OK [07:41:33]MH_I2C_Read... [07:41:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:34]Read from MH i2c: E2 [07:41:34]MH_I2C_Read... [07:41:34]Read from MH i2c: E2 17 00 [07:41:34]MH_I2C_Read... [07:41:34]Read from MH i2c: E2 17 00 CC 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E0 [07:41:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [07:41:34]wFMCommunicate OK [07:41:34]CreateOFDProtocolMessage done [07:41:34]OFDSenderStorePacket 260507 [07:41:34]StoreOFDPacket docnum=260507 [07:41:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 84 01 07 01 AE 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 35 FF 03 08 00 03 00 0F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B3 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 AF A5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9B F9 03 00 35 04 06 00 DE D9 58 EA 6C 9A ED A3 87 B5 D0 7D 6E 81 [07:41:34]CheckFolder [07:41:34]dirname=/storage/ofd_packets [07:41:34]CheckFolder done [07:41:34]ProducePacketName [07:41:34]name=ofd_packets/00260507 [07:41:34]NVStorageSaveData ofd_packets/00260507 [07:41:34]File name is /storage/ofd_packets/00260507 [07:41:34]Write 301 bytes [07:41:34]NVStorageSaveData done [07:41:34]OFDSenderStorePacket done [07:41:34]KKMCreateOFDPacket done [07:41:34]NVStorageSaveData kkm_last_timestamp [07:41:34]File name is /storage/kkm_last_timestamp [07:41:34]Write 4 bytes [07:41:34]NVStorageSaveData done [07:41:34]ExternCall_PrintAddStr [07:41:34]wPrintStart [07:41:34]Write to MH i2c: 01 00 00 CD 4D 1A [07:41:34]Write i2c OK [07:41:34]MH_I2C_Read... [07:41:34]Read from MH i2c: 01 [07:41:34]MH_I2C_Read... [07:41:34]Read from MH i2c: 01 07 00 [07:41:34]MH_I2C_Read... [07:41:34]Read from MH i2c: 01 07 00 CD 4D 00 00 00 00 00 FF 0F 2F [07:41:34]RasterBufferAndPrint [07:41:34]line Счет N : (1)1036050 [07:41:34]line ИНН: 02508201610067 [07:41:34]line Контрольно-Кассовый Чек [07:41:34]line ПРОДАЖА [07:41:34]line ТРК (МРК, ГНК) : 12 [07:41:34]line Товар: 2710124130 [07:41:34]line Аи-92-К-5 [07:41:34]line 3.840 * 67.80 [07:41:34]line = 260.35 [07:41:34]line НДС 12% НСП 1% [07:41:34]line > о реализуемом товаре [07:41:34]line ОКРУГЛЕНИЕ: -0.35 [07:41:34]line ИТОГО: 260.00 [07:41:34]line Внесено: 260.00 [07:41:34]line СДАЧА: 0.00 [07:41:34]line НСП 1% : 2.30 [07:41:34]line НДС 12% : 27.65 [07:41:34]line Наличными: 260.00 [07:41:34]line Безнал.: 0.00 [07:41:34]line Место: АЗС № 94 "Партнер Нефть" [07:41:34]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [07:41:34]line СНО: Общий режим [07:41:34]line Чек 65 18.08.2024 07:41 [07:41:34]line Смена: 449 ФФД: 1.0 [07:41:34]line ЗНМ: 0300000099 [07:41:34]line РНМ: 0000000000091865 [07:41:34]line Версия ККМ: 001 [07:41:34]line ФМ: 0000000000871820 [07:41:34]line ФД: 260507 [07:41:34]line ФПД: 245025081027738 [07:41:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T074135&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260507&fm=245025081027738&tin=02508201610067®Number=0000000000091865&sum=26000 [07:41:34]written 0, free lines is 4095 [07:41:34]OFD Sender: Processing packet 260507 [packets to send 192, broken 191] [07:41:34]ProducePacketName [07:41:34]name=ofd_packets/00260507 [07:41:34]OFD Sender: To server: pG, [07:41:34]CommunicateWithHost lk.salyk.kg:30040 [07:41:34]ConnectInit lk.salyk.kg [07:41:34]Connected sock=10 [07: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 30 0F 01 00 00 84 01 07 01 AE 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 35 FF 03 08 00 03 00 0F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B3 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 AF A5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9B F9 03 00 35 04 06 00 DE D9 58 EA 6C 9A ED A3 87 B5 D0 7D 6E 81 [07: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 30 4F 00 00 00 75 C3 47 00 24 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9B F9 03 00 F4 03 04 00 05 4F C1 66 B6 04 01 00 00 40 95 08 C1 B7 A0 4B 43 [07:41:34]CommunicateWithHost err = 0 [07:41:34]CheckOFDResponse [07:41:34]1017 (14) - 77093643461234 [07:41:34]1041 (16) - 0000000000871820 [07:41:34]1040 (4) - 260507 [07:41:34]1012 (4) - 18.08.2024 01:31 [07:41:34]1206 (1) - 0 [07:41:34]OFD Sender: Remove packet 260507 [07:41:34]ProducePacketName [07:41:34]name=ofd_packets/00260507 [07:41:34]NVStorageDeleteData [07:41:34]Write to MH i2c: 01 00 00 F8 4D 45 [07:41:34]Write i2c OK [07:41:34]MH_I2C_Read... [07:41:34]Read from MH i2c: 01 [07:41:34]MH_I2C_Read... [07:41:34]Read from MH i2c: 01 07 00 [07:41:34]MH_I2C_Read... [07:41:34]Read from MH i2c: 01 07 00 F8 4D 00 00 00 00 00 70 0C C8 [07:41:34]RasterBufferAndPrint [07:41:34]line [07:41:34]line [07:41:34]line [07:41:34]line [07:41:34]line [07:41:34]written 0, free lines is 3187 [07:41:34]MH_Cut [07:41:34]Write to MH i2c: D1 01 00 FF 4D 01 1E [07:41:34]Write i2c OK [07:41:34]MH_I2C_Read... [07:41:34]Read from MH i2c: D1 [07:41:34]MH_I2C_Read... [07:41:34]Read from MH i2c: D1 01 00 [07:41:34]MH_I2C_Read... [07:41:34]Read from MH i2c: D1 01 00 FF 4D 00 1D [07:41:34]Write to MH i2c: 01 00 00 00 4E 4E [07:41:34]Write i2c OK [07:41:34]MH_I2C_Read... [07:41:34]OFD Sender: No OFD packet to send [07:41:35]*** Cut start [07:41:35]*** Purtial cut [07:41:35]*** Stage 1: CUTSNS_PIN = 1 [07:41:37]Read from MH i2c: 01 [07:41:37]MH_I2C_Read... [07:41:37]*** Stop cut motor [07:41:37]*** Cut end [07:41:37]Read from MH i2c: 01 07 00 [07:41:37]MH_I2C_Read... [07:41:37]Read from MH i2c: 01 07 00 00 4E 00 00 00 00 00 FF 0F 63 [07:41:37]process_action close_receipt done [07:41:37]requested_data is exist [07:41:37]produce_requested_data [07:41:37]requested_item fm.sn is exist - process it [07:41:37]wFMCommunicate request_size=4 [07:41:37]MH_SAM_APDU [07:41:37]CAPDU: 80 11 00 00 [07:41:37]Write to MH i2c: E2 08 00 01 4E 80 11 00 00 00 00 00 00 C9 [07:41:37]Write i2c OK [07:41:37]MH_I2C_Read... [07:41:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:37]Read from MH i2c: E2 [07:41:37]MH_I2C_Read... [07:41:37]Read from MH i2c: E2 17 00 [07:41:37]MH_I2C_Read... [07:41:37]Read from MH i2c: E2 17 00 01 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 16 [07:41:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [07:41:37]wFMCommunicate OK [07:41:37]requested_item fd.num is exist - process it [07:41:37]SAM_PROTO_GetFieldsCounters [07:41:37]wFMCommunicate request_size=4 [07:41:37]MH_SAM_APDU [07:41:37]CAPDU: 80 13 00 00 [07:41:37]Write to MH i2c: E2 08 00 02 4E 80 13 00 00 00 00 00 00 CC [07:41:37]Write i2c OK [07:41:37]MH_I2C_Read... [07:41:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:41:37]Read from MH i2c: E2 [07:41:37]MH_I2C_Read... [07:41:37]Read from MH i2c: E2 62 00 [07:41:37]MH_I2C_Read... [07:41:37]Read from MH i2c: E2 62 00 02 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 9B F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [07:41: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 9B F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:41:37]wFMCommunicate OK [07:41:37]SAM_PROTO_GetFieldsCounters done [07:41:37]requested_item shift.num is exist - process it [07:41:37]requested_item shift.opened is exist - process it [07:41:37]req_shift_opened [07:41:37]FM_GetShiftState [07:41:37]SAM_PROTO_GetShiftState [07:41:37]wFMCommunicate request_size=4 [07:41:37]MH_SAM_APDU [07:41:37]CAPDU: 80 13 01 00 [07:41:37]Write to MH i2c: E2 08 00 03 4E 80 13 01 00 00 00 00 00 CE [07:41:37]Write i2c OK [07:41:37]MH_I2C_Read... [07:41:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:37]Read from MH i2c: E2 [07:41:37]MH_I2C_Read... [07:41:37]Read from MH i2c: E2 0E 00 [07:41:37]MH_I2C_Read... [07:41:37]Read from MH i2c: E2 0E 00 03 4E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 0B [07:41:37]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [07:41:37]wFMCommunicate OK [07:41:37]SAM_PROTO_GetShiftState done [07:41:37]FM_GetShiftState done [07:41:37]req_shift_opened done [07:41:37]requested_item shift.open_date is exist - process it [07:41:37]req_shift_open_date [07:41:37]req_shift_open_date done [07:41:37]produce_requested_data done [07:41:37]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260507,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [07:41:37]process_action_free close_receipt [07:41:37]json_value_free [07:41:37]json_value_free done [07:41:37]process_json_proto returns [07:41:37]Send response to host [07:41:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260507,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [07:41:37]free response buf [07:41:37]execute_script done [07:41:37]execute_script returns [07:41:37]free content buf [07:41:37]Sock 7.Close socket [07:41:37]Sock 7.Thread stoped [07:41:39]OFD Sender: No OFD packet to send [07:41:44]OFD Sender: No OFD packet to send [07:41:49]OFD Sender: No OFD packet to send [07:41:54]OFD Sender: No OFD packet to send [07:41:59]OFD Sender: No OFD packet to send [07:42:04]OFD Sender: No OFD packet to send [07:42:09]OFD Sender: No OFD packet to send [07:42:14]OFD Sender: No OFD packet to send [07:42:19]OFD Sender: No OFD packet to send [07:42:24]OFD Sender: No OFD packet to send [07:42:29]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:44:55]accept exits with 9 [07:44:55]New connection [07:44:55]New thread 3066473828 created [07:44:55]Thread 3066617188 joined [07:44:55]Waiting for new connection... [07:44:55] Sock 9.Parse request [07:44:55]Sock 9.Check first char [07:44:55]Sock 9.First char is OK [07:44:55]request: POST /json_proto HTTP/1.0 [07:44:55]Method: POST [07:44:55]URL: /json_proto [07:44:55]Method is POST - this is cgi request [07:44:55]url: /json_proto [07:44:55]query_string will be loaded in cgi processing [07:44:55]execute_cgi json_proto POST (null) [07:44:55]execute_cgi path=json_proto method=POST [07:44:55]POST find Content-Length [07:44:55]Host: 172.17.55.133:8080 [07:44:55]Content-Length: 678 [07:44:55]Content-Type: application/json [07:44:55] [07:44:55]POST finish read [07:44:55]Found Content-Length = 678 [07:44:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036051", "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" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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:44:55]execute_script... [07:44: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)1036051", "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" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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:44:55]POST & json_proto [07:44:55]process_json_proto [07:44:55]json parsed OK: [07:44:55]protocol is kg_v1.0 [07:44:55]action value=close_receipt [07:44:55]process_action close_receipt [07:44:55]cmd_close_receipt [07:44:55]MH_GetDate [07:44:55]Write to MH i2c: F0 00 00 04 4E 41 [07:44:55]Write i2c OK [07:44:55]MH_I2C_Read... [07:44:55]Read from MH i2c: F0 [07:44:55]MH_I2C_Read... [07:44:55]Read from MH i2c: F0 09 00 [07:44:55]MH_I2C_Read... [07:44:55]Read from MH i2c: F0 09 00 04 4E 00 7B A6 C1 66 34 48 D8 65 4B [07:44:55]GetLastDocTimeStamp 1723966895 [07:44:55]current date 1723967099 [07:44:55]FM_GetShiftState [07:44:55]SAM_PROTO_GetShiftState [07:44:55]wFMCommunicate request_size=4 [07:44:55]MH_SAM_APDU [07:44:55]CAPDU: 80 13 01 00 [07:44:55]Write to MH i2c: E2 08 00 05 4E 80 13 01 00 00 00 00 00 D0 [07:44:55]Write i2c OK [07:44:55]MH_I2C_Read... [07:44:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:55]Read from MH i2c: E2 [07:44:55]MH_I2C_Read... [07:44:55]Read from MH i2c: E2 0E 00 [07:44:55]MH_I2C_Read... [07:44:55]Read from MH i2c: E2 0E 00 05 4E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 0D [07:44:55]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [07:44:55]wFMCommunicate OK [07:44:55]SAM_PROTO_GetShiftState done [07:44:55]FM_GetShiftState done [07:44:55]opened in 1723940556 [07:44:55]opened+sec_in_day 1724026956 [07:44:55]quantity*price = 60027 [07:44:55]sum+1 = 60029 [07:44:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 66 18.08.2024 07:44 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260508 ФПД: 153894670616107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T074459&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260508&fm=153894670616107&tin=02508201610067®Number=0000000000091865&sum=60000 [07:44:56]StoreToDocumentArchive [07:44:56]shift 449 fd 260508 [07:44:56]save to /storage/0449/doc_00260508 [07:44:56]save last doc name /storage/0449/doc_00260508 to /storage/kkm_last_doc_name [07:44:56]save OK [07:44:56]Clear old archive folders... [07:44:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:44:56]tlvbuf is 00433750 [07:44:56]SAM_PROTO_ClearQueue [07:44:56]wFMCommunicate request_size=4 [07:44:56]MH_SAM_APDU [07:44:56]CAPDU: 80 09 00 00 [07:44:56]Write to MH i2c: E2 08 00 12 4E 80 09 00 00 00 00 00 00 D2 [07:44:56]Write i2c OK [07:44:56]MH_I2C_Read... [07:44:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:44:56]Read from MH i2c: E2 [07:44:56]MH_I2C_Read... [07:44:56]Read from MH i2c: E2 03 00 [07:44:56]MH_I2C_Read... [07:44:56]Read from MH i2c: E2 03 00 12 4E 00 90 00 D4 [07:44:56]RAPDU: 90 00 [07:44:56]wFMCommunicate OK [07:44:56]SAM_PROTO_ClearQueue done [07:44:56]KKMCreateOFDPacket [07:44:56]OFDProtocolAddRootSTLVToBuf [07:44:56]FM_MakeSignedData [07:44:56]FM_MakeSignedData [07:44:56]SAM_PROTO_SignData [07:44:56]wFMCommunicate request_size=4 [07:44:56]MH_SAM_APDU [07:44:56]CAPDU: 80 0D 01 02 [07:44:56]Write to MH i2c: E2 08 00 13 4E 80 0D 01 02 00 00 00 00 DA [07:44:56]Write i2c OK [07:44:56]MH_I2C_Read... [07:44:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:44:56]Read from MH i2c: E2 [07:44:56]MH_I2C_Read... [07:44:56]Read from MH i2c: E2 03 00 [07:44:56]MH_I2C_Read... [07:44:56]Read from MH i2c: E2 03 00 13 4E 00 90 00 D5 [07:44:56]RAPDU: 90 00 [07:44:56]wFMCommunicate OK [07:44:56]wFMCommunicate request_size=255 [07:44:56]MH_SAM_APDU [07:44: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 7B A6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9C F9 03 00 35 04 06 00 8B [07:44:56]Write to MH i2c: E2 02 01 14 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 7B A6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9C F9 03 00 35 04 06 00 8B 00 00 34 [07:44:56]Write i2c OK [07:44:56]MH_I2C_Read... [07:44:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:57]Read from MH i2c: E2 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: E2 03 00 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: E2 03 00 14 4E 00 90 00 D6 [07:44:57]RAPDU: 90 00 [07:44:57]wFMCommunicate OK [07:44:57]wFMCommunicate request_size=10 [07:44:57]MH_SAM_APDU [07:44:57]CAPDU: 80 0D 02 02 05 F7 65 2C C6 2B [07:44:57]Write to MH i2c: E2 0D 00 15 4E 80 0D 02 02 05 00 F7 65 2C C6 2B 00 00 60 [07:44:57]Write i2c OK [07:44:57]MH_I2C_Read... [07:44:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:57]Read from MH i2c: E2 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: E2 03 00 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: E2 03 00 15 4E 00 90 00 D7 [07:44:57]RAPDU: 90 00 [07:44:57]wFMCommunicate OK [07:44:57]wFMCommunicate request_size=4 [07:44:57]MH_SAM_APDU [07:44:57]CAPDU: 80 0D 03 02 [07:44:57]Write to MH i2c: E2 08 00 16 4E 80 0D 03 02 00 00 00 00 DF [07:44:57]Write i2c OK [07:44:57]MH_I2C_Read... [07:44:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:44:57]Read from MH i2c: E2 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: E2 0B 00 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: E2 0B 00 16 4E 00 13 09 73 5A B0 A9 9E 88 90 00 48 [07:44:57]RAPDU: 13 09 73 5A B0 A9 9E 88 90 00 [07:44:57]wFMCommunicate OK [07:44:57]SAM_PROTO_SignData done [07:44:57]FM_MakeSignedData done [07:44:57]CreateOFDProtocolMessage [07:44:57]wFMCommunicate request_size=4 [07:44:57]MH_SAM_APDU [07:44:57]CAPDU: 80 11 00 00 [07:44:57]Write to MH i2c: E2 08 00 17 4E 80 11 00 00 00 00 00 00 DF [07:44:57]Write i2c OK [07:44:57]MH_I2C_Read... [07:44:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:57]Read from MH i2c: E2 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: E2 17 00 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: E2 17 00 17 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 2C [07:44:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [07:44:57]wFMCommunicate OK [07:44:57]CreateOFDProtocolMessage done [07:44:57]OFDSenderStorePacket 260508 [07:44:57]StoreOFDPacket docnum=260508 [07:44:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 1B E9 07 01 7E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 7B A6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9C F9 03 00 35 04 06 00 8B F7 65 2C C6 2B 13 09 73 5A B0 A9 9E 88 [07:44:57]CheckFolder [07:44:57]dirname=/storage/ofd_packets [07:44:57]CheckFolder done [07:44:57]ProducePacketName [07:44:57]name=ofd_packets/00260508 [07:44:57]NVStorageSaveData ofd_packets/00260508 [07:44:57]File name is /storage/ofd_packets/00260508 [07:44:57]Write 301 bytes [07:44:57]NVStorageSaveData done [07:44:57]OFDSenderStorePacket done [07:44:57]KKMCreateOFDPacket done [07:44:57]NVStorageSaveData kkm_last_timestamp [07:44:57]File name is /storage/kkm_last_timestamp [07:44:57]Write 4 bytes [07:44:57]NVStorageSaveData done [07:44:57]ExternCall_PrintAddStr [07:44:57]wPrintStart [07:44:57]Write to MH i2c: 01 00 00 18 4E 66 [07:44:57]Write i2c OK [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: 01 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: 01 07 00 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: 01 07 00 18 4E 00 00 00 00 00 FF 0F 7B [07:44:57]RasterBufferAndPrint [07:44:57]line Счет N : (1)1036051 [07:44:57]line ИНН: 02508201610067 [07:44:57]line Контрольно-Кассовый Чек [07:44:57]line ПРОДАЖА [07:44:57]line ТРК (МРК, ГНК) : 13 [07:44:57]line Товар: 2710124500 [07:44:57]line Аи-95-К-5 [07:44:57]line 8.090 * 74.20 [07:44:57]line = 600.28 [07:44:57]line НДС 12% НСП 1% [07:44:57]line > о реализуемом товаре [07:44:57]line ОКРУГЛЕНИЕ: -0.28 [07:44:57]line ИТОГО: 600.00 [07:44:57]line Внесено: 600.00 [07:44:57]line СДАЧА: 0.00 [07:44:57]line НСП 1% : 5.31 [07:44:57]line НДС 12% : 63.75 [07:44:57]line Наличными: 600.00 [07:44:57]line Безнал.: 0.00 [07:44:57]line Место: АЗС № 94 "Партнер Нефть" [07:44:57]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [07:44:57]line СНО: Общий режим [07:44:57]line Чек 66 18.08.2024 07:44 [07:44:57]line Смена: 449 ФФД: 1.0 [07:44:57]line ЗНМ: 0300000099 [07:44:57]line РНМ: 0000000000091865 [07:44:57]line Версия ККМ: 001 [07:44:57]line ФМ: 0000000000871820 [07:44:57]line ФД: 260508 [07:44:57]line ФПД: 153894670616107 [07:44:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T074459&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260508&fm=153894670616107&tin=02508201610067®Number=0000000000091865&sum=60000 [07:44:57]written 0, free lines is 4095 [07:44:57]OFD Sender: Processing packet 260508 [packets to send 192, broken 191] [07:44:57]ProducePacketName [07:44:57]name=ofd_packets/00260508 [07:44:57]OFD Sender: To server: pG, [07:44:57]CommunicateWithHost lk.salyk.kg:30040 [07:44:57]ConnectInit lk.salyk.kg [07:44:57]Connected sock=10 [07:44: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 30 0F 01 00 00 1B E9 07 01 7E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 7B A6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9C F9 03 00 35 04 06 00 8B F7 65 2C C6 2B 13 09 73 5A B0 A9 9E 88 [07:44: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 30 4F 00 00 00 D8 73 47 00 39 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 30 10 04 04 00 9C F9 03 00 F4 03 04 00 D0 4F C1 66 B6 04 01 00 00 53 38 84 89 91 07 B4 53 [07:44:57]CommunicateWithHost err = 0 [07:44:57]CheckOFDResponse [07:44:57]1017 (14) - 77093643461234 [07:44:57]1041 (16) - 0000000000871820 [07:44:57]1040 (4) - 260508 [07:44:57]1012 (4) - 18.08.2024 01:35 [07:44:57]1206 (1) - 0 [07:44:57]OFD Sender: Remove packet 260508 [07:44:57]ProducePacketName [07:44:57]name=ofd_packets/00260508 [07:44:57]NVStorageDeleteData [07:44:57]Write to MH i2c: 01 00 00 43 4E 91 [07:44:57]Write i2c OK [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: 01 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: 01 07 00 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: 01 07 00 43 4E 00 00 00 00 00 6F 0C 13 [07:44:57]RasterBufferAndPrint [07:44:57]line [07:44:57]line [07:44:57]line [07:44:57]line [07:44:57]line [07:44:57]written 0, free lines is 3186 [07:44:57]MH_Cut [07:44:57]Write to MH i2c: D1 01 00 4A 4E 01 6A [07:44:57]Write i2c OK [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: D1 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: D1 01 00 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: D1 01 00 4A 4E 00 69 [07:44:57]Write to MH i2c: 01 00 00 4B 4E 99 [07:44:57]Write i2c OK [07:44:57]MH_I2C_Read... [07:44:58]OFD Sender: No OFD packet to send [07:44:58]*** Cut start [07:44:58]*** Purtial cut [07:44:58]*** Stage 1: CUTSNS_PIN = 1 [07:45:00]Read from MH i2c: 01 [07:45:00]MH_I2C_Read... [07:45:00]*** Stop cut motor [07:45:00]*** Cut end [07:45:00]Read from MH i2c: 01 07 00 [07:45:00]MH_I2C_Read... [07:45:00]Read from MH i2c: 01 07 00 4B 4E 00 00 00 00 00 FF 0F AE [07:45:00]process_action close_receipt done [07:45:00]requested_data is exist [07:45:00]produce_requested_data [07:45:00]requested_item fm.sn is exist - process it [07:45:00]wFMCommunicate request_size=4 [07:45:00]MH_SAM_APDU [07:45:00]CAPDU: 80 11 00 00 [07:45:00]Write to MH i2c: E2 08 00 4C 4E 80 11 00 00 00 00 00 00 14 [07:45:00]Write i2c OK [07:45:00]MH_I2C_Read... [07:45:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:45:01]Read from MH i2c: E2 [07:45:01]MH_I2C_Read... [07:45:01]Read from MH i2c: E2 17 00 [07:45:01]MH_I2C_Read... [07:45:01]Read from MH i2c: E2 17 00 4C 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 61 [07:45:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [07:45:01]wFMCommunicate OK [07:45:01]requested_item fd.num is exist - process it [07:45:01]SAM_PROTO_GetFieldsCounters [07:45:01]wFMCommunicate request_size=4 [07:45:01]MH_SAM_APDU [07:45:01]CAPDU: 80 13 00 00 [07:45:01]Write to MH i2c: E2 08 00 4D 4E 80 13 00 00 00 00 00 00 17 [07:45:01]Write i2c OK [07:45:01]MH_I2C_Read... [07:45:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:45:01]Read from MH i2c: E2 [07:45:01]MH_I2C_Read... [07:45:01]Read from MH i2c: E2 62 00 [07:45:01]MH_I2C_Read... [07:45:01]Read from MH i2c: E2 62 00 4D 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 9C F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [07:45: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 9C F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:45:01]wFMCommunicate OK [07:45:01]SAM_PROTO_GetFieldsCounters done [07:45:01]requested_item shift.num is exist - process it [07:45:01]requested_item shift.opened is exist - process it [07:45:01]req_shift_opened [07:45:01]FM_GetShiftState [07:45:01]SAM_PROTO_GetShiftState [07:45:01]wFMCommunicate request_size=4 [07:45:01]MH_SAM_APDU [07:45:01]CAPDU: 80 13 01 00 [07:45:01]Write to MH i2c: E2 08 00 4E 4E 80 13 01 00 00 00 00 00 19 [07:45:01]Write i2c OK [07:45:01]MH_I2C_Read... [07:45:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:45:01]Read from MH i2c: E2 [07:45:01]MH_I2C_Read... [07:45:01]Read from MH i2c: E2 0E 00 [07:45:01]MH_I2C_Read... [07:45:01]Read from MH i2c: E2 0E 00 4E 4E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 56 [07:45:01]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [07:45:01]wFMCommunicate OK [07:45:01]SAM_PROTO_GetShiftState done [07:45:01]FM_GetShiftState done [07:45:01]req_shift_opened done [07:45:01]requested_item shift.open_date is exist - process it [07:45:01]req_shift_open_date [07:45:01]req_shift_open_date done [07:45:01]produce_requested_data done [07:45:01]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260508,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [07:45:01]process_action_free close_receipt [07:45:01]json_value_free [07:45:01]json_value_free done [07:45:01]process_json_proto returns [07:45:01]Send response to host [07:45:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260508,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [07:45:01]free response buf [07:45:01]execute_script done [07:45:01]execute_script returns [07:45:01]free content buf [07:45:01]Sock 9.Close socket [07:45:01]Sock 9.Thread stoped [07:45:03]OFD Sender: No OFD packet to send [07:45:08]OFD Sender: No OFD packet to send [07:45:13]OFD Sender: No OFD packet to send [07:45:18]OFD Sender: No OFD packet to send [07:45:23]OFD Sender: No OFD packet to send [07:45:28]OFD Sender: No OFD packet to send [07:45:33]OFD Sender: No OFD packet to send [07:45:38]OFD Sender: No OFD packet to send [07:45:43]OFD Sender: No OFD packet to send [07:45:48]OFD Sender: No OFD packet to send [07:45:53]OFD Sender: No OFD packet to send [07:45:58]OFD Sender: No OFD packet to send [07:46:03]OFD Sender: No OFD packet to send [07:46:08]OFD Sender: No OFD packet to send [07:46:13]OFD Sender: No OFD packet to send [07:46:18]OFD Sender: No OFD packet to send [07:46:23]OFD Sender: No OFD packet to send [07:46:28]OFD Sender: No OFD packet to send [07:46:33]OFD Sender: No OFD packet to send [07:46:38]OFD Sender: No OFD packet to send [07:46:43]OFD Sender: No OFD packet to send [07:46:48]OFD Sender: No OFD packet to send [07:46:53]OFD Sender: No OFD packet to send [07:46:58]OFD Sender: No OFD packet to send [07:47:03]OFD Sender: No OFD packet to send [07:47:08]OFD Sender: No OFD packet to send [07:47:13]OFD Sender: No OFD packet to send [07:47:18]OFD Sender: No OFD packet to send [07:47:23]OFD Sender: No OFD packet to send [07:47:28]OFD Sender: No OFD packet to send [07:47:33]OFD Sender: No OFD packet to send [07:47:38]OFD Sender: No OFD packet to send [07:47:43]OFD Sender: No OFD packet to send [07:47:48]OFD Sender: No OFD packet to send [07:47:53]OFD Sender: No OFD packet to send [07:47:58]OFD Sender: No OFD packet to send [07:48:03]OFD Sender: No OFD packet to send [07:48:08]OFD Sender: No OFD packet to send [07:48:13]OFD Sender: No OFD packet to send [07:48:18]OFD Sender: No OFD packet to send [07:48:22]accept exits with 7 [07:48:22]New connection [07:48:22]New thread 3066617188 created [07:48:22]Thread 3066473828 joined [07:48:22]Waiting for new connection... [07:48:22] Sock 7.Parse request [07:48:22]Sock 7.Check first char [07:48:22]Sock 7.First char is OK [07:48:22]request: POST /json_proto HTTP/1.0 [07:48:22]Method: POST [07:48:22]URL: /json_proto [07:48:22]Method is POST - this is cgi request [07:48:22]url: /json_proto [07:48:22]query_string will be loaded in cgi processing [07:48:22]execute_cgi json_proto POST (null) [07:48:22]execute_cgi path=json_proto method=POST [07:48:22]POST find Content-Length [07:48:22]Host: 172.17.55.133:8080 [07:48:22]Content-Length: 801 [07:48:22]Content-Type: application/json [07:48:22] [07:48:22]POST finish read [07:48:22]Found Content-Length = 801 [07:48:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 350.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:22]execute_script... [07:48: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)1036052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 350.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:22]POST & json_proto [07:48:22]process_json_proto [07:48:22]json parsed OK: [07:48:22]protocol is kg_v1.0 [07:48:22]action value=close_receipt [07:48:22]process_action close_receipt [07:48:22]cmd_close_receipt [07:48:22]MH_GetDate [07:48:22]Write to MH i2c: F0 00 00 4F 4E 8C [07:48:22]Write i2c OK [07:48:22]MH_I2C_Read... [07:48:22]Read from MH i2c: F0 [07:48:22]MH_I2C_Read... [07:48:22]Read from MH i2c: F0 09 00 [07:48:22]MH_I2C_Read... [07:48:22]Read from MH i2c: F0 09 00 4F 4E 00 49 A7 C1 66 34 48 D8 65 65 [07:48:22]GetLastDocTimeStamp 1723967099 [07:48:22]current date 1723967305 [07:48:22]FM_GetShiftState [07:48:22]SAM_PROTO_GetShiftState [07:48:22]wFMCommunicate request_size=4 [07:48:22]MH_SAM_APDU [07:48:22]CAPDU: 80 13 01 00 [07:48:22]Write to MH i2c: E2 08 00 50 4E 80 13 01 00 00 00 00 00 1B [07:48:22]Write i2c OK [07:48:22]MH_I2C_Read... [07:48:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:22]Read from MH i2c: E2 [07:48:22]MH_I2C_Read... [07:48:22]Read from MH i2c: E2 0E 00 [07:48:22]MH_I2C_Read... [07:48:22]Read from MH i2c: E2 0E 00 50 4E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 58 [07:48:22]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [07:48:22]wFMCommunicate OK [07:48:22]SAM_PROTO_GetShiftState done [07:48:22]FM_GetShiftState done [07:48:22]opened in 1723940556 [07:48:22]opened+sec_in_day 1724026956 [07:48:22]quantity*price = 35052 [07:48:22]sum+1 = 35054 [07:48:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 350.53 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 0.00 Безнал.: 350.53 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 67 18.08.2024 07:48 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260509 ФПД: 228288819092121 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T074825&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260509&fm=228288819092121&tin=02508201610067®Number=0000000000091865&sum=35053 [07:48:23]StoreToDocumentArchive [07:48:23]shift 449 fd 260509 [07:48:23]save to /storage/0449/doc_00260509 [07:48:23]save last doc name /storage/0449/doc_00260509 to /storage/kkm_last_doc_name [07:48:23]save OK [07:48:23]Clear old archive folders... [07:48:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:48:23]tlvbuf is 003A0990 [07:48:23]SAM_PROTO_ClearQueue [07:48:23]wFMCommunicate request_size=4 [07:48:23]MH_SAM_APDU [07:48:23]CAPDU: 80 09 00 00 [07:48:23]Write to MH i2c: E2 08 00 5D 4E 80 09 00 00 00 00 00 00 1D [07:48:23]Write i2c OK [07:48:23]MH_I2C_Read... [07:48:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:48:23]OFD Sender: No OFD packet to send [07:48:23]Read from MH i2c: E2 [07:48:23]MH_I2C_Read... [07:48:23]Read from MH i2c: E2 03 00 [07:48:23]MH_I2C_Read... [07:48:23]Read from MH i2c: E2 03 00 5D 4E 00 90 00 1F [07:48:23]RAPDU: 90 00 [07:48:23]wFMCommunicate OK [07:48:23]SAM_PROTO_ClearQueue done [07:48:23]KKMCreateOFDPacket [07:48:23]OFDProtocolAddRootSTLVToBuf [07:48:23]FM_MakeSignedData [07:48:23]FM_MakeSignedData [07:48:23]SAM_PROTO_SignData [07:48:23]wFMCommunicate request_size=4 [07:48:23]MH_SAM_APDU [07:48:23]CAPDU: 80 0D 01 02 [07:48:23]Write to MH i2c: E2 08 00 5E 4E 80 0D 01 02 00 00 00 00 25 [07:48:23]Write i2c OK [07:48:23]MH_I2C_Read... [07:48:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:48:23]Read from MH i2c: E2 [07:48:23]MH_I2C_Read... [07:48:23]Read from MH i2c: E2 03 00 [07:48:23]MH_I2C_Read... [07:48:23]Read from MH i2c: E2 03 00 5E 4E 00 90 00 20 [07:48:23]RAPDU: 90 00 [07:48:23]wFMCommunicate OK [07:48:23]wFMCommunicate request_size=255 [07:48:23]MH_SAM_APDU [07:48:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 ED 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 00 00 00 00 00 00 39 04 06 00 ED 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 49 A7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9D F9 03 00 35 04 06 00 CF [07:48:23]Write to MH i2c: E2 02 01 5F 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 ED 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 00 00 00 00 00 00 39 04 06 00 ED 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 49 A7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9D F9 03 00 35 04 06 00 CF 00 00 BB [07:48:23]Write i2c OK [07:48:23]MH_I2C_Read... [07:48:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:23]Read from MH i2c: E2 [07:48:23]MH_I2C_Read... [07:48:23]Read from MH i2c: E2 03 00 [07:48:23]MH_I2C_Read... [07:48:23]Read from MH i2c: E2 03 00 5F 4E 00 90 00 21 [07:48:23]RAPDU: 90 00 [07:48:23]wFMCommunicate OK [07:48:23]wFMCommunicate request_size=10 [07:48:23]MH_SAM_APDU [07:48:23]CAPDU: 80 0D 02 02 05 A0 A1 F7 DA 99 [07:48:23]Write to MH i2c: E2 0D 00 60 4E 80 0D 02 02 05 00 A0 A1 F7 DA 99 00 00 DD [07:48:23]Write i2c OK [07:48:23]MH_I2C_Read... [07:48:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:23]Read from MH i2c: E2 [07:48:23]MH_I2C_Read... [07:48:23]Read from MH i2c: E2 03 00 [07:48:23]MH_I2C_Read... [07:48:23]Read from MH i2c: E2 03 00 60 4E 00 90 00 22 [07:48:23]RAPDU: 90 00 [07:48:23]wFMCommunicate OK [07:48:23]wFMCommunicate request_size=4 [07:48:23]MH_SAM_APDU [07:48:23]CAPDU: 80 0D 03 02 [07:48:23]Write to MH i2c: E2 08 00 61 4E 80 0D 03 02 00 00 00 00 2A [07:48:23]Write i2c OK [07:48:23]MH_I2C_Read... [07:48:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:48:23]Read from MH i2c: E2 [07:48:23]MH_I2C_Read... [07:48:23]Read from MH i2c: E2 0B 00 [07:48:23]MH_I2C_Read... [07:48:23]Read from MH i2c: E2 0B 00 61 4E 00 86 B2 89 5F AE CC 41 A1 90 00 A7 [07:48:23]RAPDU: 86 B2 89 5F AE CC 41 A1 90 00 [07:48:23]wFMCommunicate OK [07:48:23]SAM_PROTO_SignData done [07:48:23]FM_MakeSignedData done [07:48:23]CreateOFDProtocolMessage [07:48:23]wFMCommunicate request_size=4 [07:48:23]MH_SAM_APDU [07:48:23]CAPDU: 80 11 00 00 [07:48:23]Write to MH i2c: E2 08 00 62 4E 80 11 00 00 00 00 00 00 2A [07:48:23]Write i2c OK [07:48:23]MH_I2C_Read... [07:48:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:23]Read from MH i2c: E2 [07:48:23]MH_I2C_Read... [07:48:23]Read from MH i2c: E2 17 00 [07:48:23]MH_I2C_Read... [07:48:23]Read from MH i2c: E2 17 00 62 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 77 [07:48:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [07:48:23]wFMCommunicate OK [07:48:23]CreateOFDProtocolMessage done [07:48:23]OFDSenderStorePacket 260509 [07:48:23]StoreOFDPacket docnum=260509 [07:48:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 DD 9B 07 01 5B DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 ED 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 00 00 00 00 00 00 39 04 06 00 ED 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 49 A7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9D F9 03 00 35 04 06 00 CF A0 A1 F7 DA 99 86 B2 89 5F AE CC 41 A1 [07:48:23]CheckFolder [07:48:23]dirname=/storage/ofd_packets [07:48:23]CheckFolder done [07:48:23]ProducePacketName [07:48:23]name=ofd_packets/00260509 [07:48:23]NVStorageSaveData ofd_packets/00260509 [07:48:23]File name is /storage/ofd_packets/00260509 [07:48:23]Write 301 bytes [07:48:23]NVStorageSaveData done [07:48:23]OFDSenderStorePacket done [07:48:23]KKMCreateOFDPacket done [07:48:23]NVStorageSaveData kkm_last_timestamp [07:48:23]File name is /storage/kkm_last_timestamp [07:48:23]Write 4 bytes [07:48:23]NVStorageSaveData done [07:48:23]ExternCall_PrintAddStr [07:48:23]wPrintStart [07:48:23]Write to MH i2c: 01 00 00 63 4E B1 [07:48:23]Write i2c OK [07:48:23]MH_I2C_Read... [07:48:23]Read from MH i2c: 01 [07:48:23]MH_I2C_Read... [07:48:23]Read from MH i2c: 01 07 00 [07:48:23]MH_I2C_Read... [07:48:23]Read from MH i2c: 01 07 00 63 4E 00 00 00 00 00 FF 0F C6 [07:48:23]RasterBufferAndPrint [07:48:23]line Счет N : (1)1036052 [07:48:23]line ИНН: 02508201610067 [07:48:23]line Контрольно-Кассовый Чек [07:48:23]line ПРОДАЖА [07:48:23]line ТРК (МРК, ГНК) : 32 [07:48:23]line Товар: 2710124130 [07:48:23]line Аи-92-К-5 [07:48:23]line 5.170 * 67.80 [07:48:23]line = 350.53 [07:48:23]line НДС 12% НСП 1% [07:48:23]line > о реализуемом товаре [07:48:23]line ИТОГО: 350.53 [07:48:23]line НСП 1% : 3.10 [07:48:23]line НДС 12% : 37.22 [07:48:23]line Наличными: 0.00 [07:48:23]line Безнал.: 350.53 [07:48:23]line Место: АЗС № 94 "Партнер Нефть" [07:48:23]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [07:48:23]line СНО: Общий режим [07:48:23]line Чек 67 18.08.2024 07:48 [07:48:23]line Смена: 449 ФФД: 1.0 [07:48:23]line ЗНМ: 0300000099 [07:48:23]line РНМ: 0000000000091865 [07:48:23]line Версия ККМ: 001 [07:48:23]line Платежная система: O! деньги [07:48:23]line ФМ: 0000000000871820 [07:48:23]line ФД: 260509 [07:48:23]line ФПД: 228288819092121 [07:48:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T074825&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260509&fm=228288819092121&tin=02508201610067®Number=0000000000091865&sum=35053 [07:48:23]written 0, free lines is 4095 [07:48:23]OFD Sender: Processing packet 260509 [packets to send 192, broken 191] [07:48:23]ProducePacketName [07:48:23]name=ofd_packets/00260509 [07:48:23]OFD Sender: To server: pG, [07:48:23]CommunicateWithHost lk.salyk.kg:30040 [07:48:23]ConnectInit lk.salyk.kg [07:48:24]Connected sock=10 [07:48: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 30 0F 01 00 00 DD 9B 07 01 5B DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 ED 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 00 00 00 00 00 00 39 04 06 00 ED 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 49 A7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9D F9 03 00 35 04 06 00 CF A0 A1 F7 DA 99 86 B2 89 5F AE CC 41 A1 [07:48: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 30 4F 00 00 00 D1 20 47 00 61 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 30 10 04 04 00 9D F9 03 00 F4 03 04 00 9F 50 C1 66 B6 04 01 00 00 F4 BF 78 F9 10 12 4F 45 [07:48:24]CommunicateWithHost err = 0 [07:48:24]CheckOFDResponse [07:48:24]1017 (14) - 77093643461234 [07:48:24]1041 (16) - 0000000000871820 [07:48:24]1040 (4) - 260509 [07:48:24]1012 (4) - 18.08.2024 01:38 [07:48:24]1206 (1) - 0 [07:48:24]OFD Sender: Remove packet 260509 [07:48:24]ProducePacketName [07:48:24]name=ofd_packets/00260509 [07:48:24]NVStorageDeleteData [07:48:24]Write to MH i2c: 01 00 00 8D 4E DB [07:48:24]Write i2c OK [07:48:24]MH_I2C_Read... [07:48:24]Read from MH i2c: 01 [07:48:24]MH_I2C_Read... [07:48:24]Read from MH i2c: 01 07 00 [07:48:24]MH_I2C_Read... [07:48:24]Read from MH i2c: 01 07 00 8D 4E 00 00 00 00 00 80 0C 6E [07:48:24]RasterBufferAndPrint [07:48:24]line [07:48:24]line [07:48:24]line [07:48:24]line [07:48:24]line [07:48:24]written 0, free lines is 3204 [07:48:24]MH_Cut [07:48:24]Write to MH i2c: D1 01 00 94 4E 01 B4 [07:48:24]Write i2c OK [07:48:24]MH_I2C_Read... [07:48:24]Read from MH i2c: D1 [07:48:24]MH_I2C_Read... [07:48:24]Read from MH i2c: D1 01 00 [07:48:24]MH_I2C_Read... [07:48:24]Read from MH i2c: D1 01 00 94 4E 00 B3 [07:48:24]Write to MH i2c: 01 00 00 95 4E E3 [07:48:24]Write i2c OK [07:48:24]MH_I2C_Read... [07:48:24]OFD Sender: No OFD packet to send [07:48:25]*** Cut start [07:48:25]*** Purtial cut [07:48:25]*** Stage 1: CUTSNS_PIN = 1 [07:48:27]Read from MH i2c: 01 [07:48:27]MH_I2C_Read... [07:48:27]*** Stop cut motor [07:48:27]*** Cut end [07:48:27]Read from MH i2c: 01 07 00 [07:48:27]MH_I2C_Read... [07:48:27]Read from MH i2c: 01 07 00 95 4E 00 00 00 00 00 FF 0F F8 [07:48:27]process_action close_receipt done [07:48:27]requested_data is exist [07:48:27]produce_requested_data [07:48:27]requested_item fm.sn is exist - process it [07:48:27]wFMCommunicate request_size=4 [07:48:27]MH_SAM_APDU [07:48:27]CAPDU: 80 11 00 00 [07:48:27]Write to MH i2c: E2 08 00 96 4E 80 11 00 00 00 00 00 00 5E [07:48:27]Write i2c OK [07:48:27]MH_I2C_Read... [07:48:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:27]Read from MH i2c: E2 [07:48:27]MH_I2C_Read... [07:48:27]Read from MH i2c: E2 17 00 [07:48:27]MH_I2C_Read... [07:48:27]Read from MH i2c: E2 17 00 96 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 AB [07:48:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [07:48:27]wFMCommunicate OK [07:48:27]requested_item fd.num is exist - process it [07:48:27]SAM_PROTO_GetFieldsCounters [07:48:27]wFMCommunicate request_size=4 [07:48:27]MH_SAM_APDU [07:48:27]CAPDU: 80 13 00 00 [07:48:27]Write to MH i2c: E2 08 00 97 4E 80 13 00 00 00 00 00 00 61 [07:48:27]Write i2c OK [07:48:27]MH_I2C_Read... [07:48:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:48:27]Read from MH i2c: E2 [07:48:27]MH_I2C_Read... [07:48:27]Read from MH i2c: E2 62 00 [07:48:27]MH_I2C_Read... [07:48:27]Read from MH i2c: E2 62 00 97 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 9D F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [07:48: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 9D F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:48:27]wFMCommunicate OK [07:48:27]SAM_PROTO_GetFieldsCounters done [07:48:27]requested_item shift.num is exist - process it [07:48:27]requested_item shift.opened is exist - process it [07:48:27]req_shift_opened [07:48:27]FM_GetShiftState [07:48:27]SAM_PROTO_GetShiftState [07:48:27]wFMCommunicate request_size=4 [07:48:27]MH_SAM_APDU [07:48:27]CAPDU: 80 13 01 00 [07:48:27]Write to MH i2c: E2 08 00 98 4E 80 13 01 00 00 00 00 00 63 [07:48:27]Write i2c OK [07:48:27]MH_I2C_Read... [07:48:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:27]Read from MH i2c: E2 [07:48:27]MH_I2C_Read... [07:48:27]Read from MH i2c: E2 0E 00 [07:48:27]MH_I2C_Read... [07:48:27]Read from MH i2c: E2 0E 00 98 4E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A0 [07:48:27]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [07:48:27]wFMCommunicate OK [07:48:27]SAM_PROTO_GetShiftState done [07:48:27]FM_GetShiftState done [07:48:27]req_shift_opened done [07:48:27]requested_item shift.open_date is exist - process it [07:48:27]req_shift_open_date [07:48:27]req_shift_open_date done [07:48:27]produce_requested_data done [07:48:27]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260509,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [07:48:27]process_action_free close_receipt [07:48:27]json_value_free [07:48:27]json_value_free done [07:48:27]process_json_proto returns [07:48:27]Send response to host [07:48:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260509,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [07:48:27]free response buf [07:48:27]execute_script done [07:48:27]execute_script returns [07:48:27]free content buf [07:48:27]Sock 7.Close socket [07:48:27]Sock 7.Thread stoped [07:48:29]OFD Sender: No OFD packet to send [07:48:34]OFD Sender: No OFD packet to send [07:48:39]OFD Sender: No OFD packet to send [07:48:44]OFD Sender: No OFD packet to send [07:48:49]OFD Sender: No OFD packet to send [07:48:54]OFD Sender: No OFD packet to send [07:48:59]OFD Sender: No OFD packet to send [07:49:04]OFD Sender: No OFD packet to send [07:49:09]OFD Sender: No OFD packet to send [07:49:14]OFD Sender: No OFD packet to send [07:49:19]OFD Sender: No OFD packet to send [07:49:24]OFD Sender: No OFD packet to send [07:49:29]OFD Sender: No OFD packet to send [07:49:31]accept exits with 9 [07:49:31]New connection [07:49:31]New thread 3066473828 created [07:49:31]Thread 3066617188 joined [07:49:31]Waiting for new connection... [07:49:31] Sock 9.Parse request [07:49:31]Sock 9.Check first char [07:49:31]Sock 9.First char is OK [07:49:31]request: POST /json_proto HTTP/1.0 [07:49:31]Method: POST [07:49:31]URL: /json_proto [07:49:31]Method is POST - this is cgi request [07:49:31]url: /json_proto [07:49:31]query_string will be loaded in cgi processing [07:49:31]execute_cgi json_proto POST (null) [07:49:31]execute_cgi path=json_proto method=POST [07:49:31]POST find Content-Length [07:49:31]Host: 172.17.55.133:8080 [07:49:31]Content-Length: 771 [07:49:31]Content-Type: application/json [07:49:31] [07:49:31]POST finish read [07:49:31]Found Content-Length = 771 [07:49:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: cash2u", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:49:31]execute_script... [07:49: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)1036053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: cash2u", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:49:31]POST & json_proto [07:49:31]process_json_proto [07:49:31]json parsed OK: [07:49:31]protocol is kg_v1.0 [07:49:31]action value=close_receipt [07:49:31]process_action close_receipt [07:49:31]cmd_close_receipt [07:49:31]MH_GetDate [07:49:31]Write to MH i2c: F0 00 00 99 4E D6 [07:49:31]Write i2c OK [07:49:31]MH_I2C_Read... [07:49:31]Read from MH i2c: F0 [07:49:31]MH_I2C_Read... [07:49:31]Read from MH i2c: F0 09 00 [07:49:31]MH_I2C_Read... [07:49:31]Read from MH i2c: F0 09 00 99 4E 00 8F A7 C1 66 34 48 D8 65 F5 [07:49:31]GetLastDocTimeStamp 1723967305 [07:49:31]current date 1723967375 [07:49:31]FM_GetShiftState [07:49:31]SAM_PROTO_GetShiftState [07:49:31]wFMCommunicate request_size=4 [07:49:31]MH_SAM_APDU [07:49:31]CAPDU: 80 13 01 00 [07:49:31]Write to MH i2c: E2 08 00 9A 4E 80 13 01 00 00 00 00 00 65 [07:49:31]Write i2c OK [07:49:31]MH_I2C_Read... [07:49:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:31]Read from MH i2c: E2 [07:49:31]MH_I2C_Read... [07:49:31]Read from MH i2c: E2 0E 00 [07:49:31]MH_I2C_Read... [07:49:31]Read from MH i2c: E2 0E 00 9A 4E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A2 [07:49:31]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [07:49:31]wFMCommunicate OK [07:49:31]SAM_PROTO_GetShiftState done [07:49:31]FM_GetShiftState done [07:49:31]opened in 1723940556 [07:49:31]opened+sec_in_day 1724026956 [07:49:31]quantity*price = 100005 [07:49:31]sum+1 = 100006 [07:49:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 68 18.08.2024 07:49 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: cash2u ФМ: 0000000000871820 ФД: 260510 ФПД: 169009460488350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T074935&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260510&fm=169009460488350&tin=02508201610067®Number=0000000000091865&sum=100005 [07:49:32]StoreToDocumentArchive [07:49:32]shift 449 fd 260510 [07:49:32]save to /storage/0449/doc_00260510 [07:49:32]save last doc name /storage/0449/doc_00260510 to /storage/kkm_last_doc_name [07:49:32]save OK [07:49:32]Clear old archive folders... [07:49:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:49:32]tlvbuf is 0049F720 [07:49:32]SAM_PROTO_ClearQueue [07:49:32]wFMCommunicate request_size=4 [07:49:32]MH_SAM_APDU [07:49:32]CAPDU: 80 09 00 00 [07:49:32]Write to MH i2c: E2 08 00 A7 4E 80 09 00 00 00 00 00 00 67 [07:49:32]Write i2c OK [07:49:32]MH_I2C_Read... [07:49:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:49:32]Read from MH i2c: E2 [07:49:32]MH_I2C_Read... [07:49:32]Read from MH i2c: E2 03 00 [07:49:32]MH_I2C_Read... [07:49:32]Read from MH i2c: E2 03 00 A7 4E 00 90 00 69 [07:49:32]RAPDU: 90 00 [07:49:32]wFMCommunicate OK [07:49:32]SAM_PROTO_ClearQueue done [07:49:32]KKMCreateOFDPacket [07:49:32]OFDProtocolAddRootSTLVToBuf [07:49:32]FM_MakeSignedData [07:49:32]FM_MakeSignedData [07:49:32]SAM_PROTO_SignData [07:49:32]wFMCommunicate request_size=4 [07:49:32]MH_SAM_APDU [07:49:32]CAPDU: 80 0D 01 02 [07:49:32]Write to MH i2c: E2 08 00 A8 4E 80 0D 01 02 00 00 00 00 6F [07:49:32]Write i2c OK [07:49:32]MH_I2C_Read... [07:49:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:49:32]Read from MH i2c: E2 [07:49:32]MH_I2C_Read... [07:49:32]Read from MH i2c: E2 03 00 [07:49:32]MH_I2C_Read... [07:49:32]Read from MH i2c: E2 03 00 A8 4E 00 90 00 6A [07:49:32]RAPDU: 90 00 [07:49:32]wFMCommunicate OK [07:49:32]wFMCommunicate request_size=255 [07:49:32]MH_SAM_APDU [07:49:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 8F A7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9E F9 03 00 35 04 06 00 99 [07:49:32]Write to MH i2c: E2 02 01 A9 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 8F A7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9E F9 03 00 35 04 06 00 99 00 00 1B [07:49:32]Write i2c OK [07:49:32]MH_I2C_Read... [07:49:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:33]Read from MH i2c: E2 [07:49:33]MH_I2C_Read... [07:49:33]Read from MH i2c: E2 03 00 [07:49:33]MH_I2C_Read... [07:49:33]Read from MH i2c: E2 03 00 A9 4E 00 90 00 6B [07:49:33]RAPDU: 90 00 [07:49:33]wFMCommunicate OK [07:49:33]wFMCommunicate request_size=10 [07:49:33]MH_SAM_APDU [07:49:33]CAPDU: 80 0D 02 02 05 B6 94 DB 28 9E [07:49:33]Write to MH i2c: E2 0D 00 AA 4E 80 0D 02 02 05 00 B6 94 DB 28 9E 00 00 67 [07:49:33]Write i2c OK [07:49:33]MH_I2C_Read... [07:49:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:33]Read from MH i2c: E2 [07:49:33]MH_I2C_Read... [07:49:33]Read from MH i2c: E2 03 00 [07:49:33]MH_I2C_Read... [07:49:33]Read from MH i2c: E2 03 00 AA 4E 00 90 00 6C [07:49:33]RAPDU: 90 00 [07:49:33]wFMCommunicate OK [07:49:33]wFMCommunicate request_size=4 [07:49:33]MH_SAM_APDU [07:49:33]CAPDU: 80 0D 03 02 [07:49:33]Write to MH i2c: E2 08 00 AB 4E 80 0D 03 02 00 00 00 00 74 [07:49:33]Write i2c OK [07:49:33]MH_I2C_Read... [07:49:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:49:33]Read from MH i2c: E2 [07:49:33]MH_I2C_Read... [07:49:33]Read from MH i2c: E2 0B 00 [07:49:33]MH_I2C_Read... [07:49:33]Read from MH i2c: E2 0B 00 AB 4E 00 73 AA 87 86 2A 08 95 CB 90 00 31 [07:49:33]RAPDU: 73 AA 87 86 2A 08 95 CB 90 00 [07:49:33]wFMCommunicate OK [07:49:33]SAM_PROTO_SignData done [07:49:33]FM_MakeSignedData done [07:49:33]CreateOFDProtocolMessage [07:49:33]wFMCommunicate request_size=4 [07:49:33]MH_SAM_APDU [07:49:33]CAPDU: 80 11 00 00 [07:49:33]Write to MH i2c: E2 08 00 AC 4E 80 11 00 00 00 00 00 00 74 [07:49:33]Write i2c OK [07:49:33]MH_I2C_Read... [07:49:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:33]Read from MH i2c: E2 [07:49:33]MH_I2C_Read... [07:49:33]Read from MH i2c: E2 17 00 [07:49:33]MH_I2C_Read... [07:49:33]Read from MH i2c: E2 17 00 AC 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C1 [07:49:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [07:49:33]wFMCommunicate OK [07:49:33]CreateOFDProtocolMessage done [07:49:33]OFDSenderStorePacket 260510 [07:49:33]StoreOFDPacket docnum=260510 [07:49:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 27 62 07 01 F8 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 8F A7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9E F9 03 00 35 04 06 00 99 B6 94 DB 28 9E 73 AA 87 86 2A 08 95 CB [07:49:33]CheckFolder [07:49:33]dirname=/storage/ofd_packets [07:49:33]CheckFolder done [07:49:33]ProducePacketName [07:49:33]name=ofd_packets/00260510 [07:49:33]NVStorageSaveData ofd_packets/00260510 [07:49:33]File name is /storage/ofd_packets/00260510 [07:49:33]Write 301 bytes [07:49:33]NVStorageSaveData done [07:49:33]OFDSenderStorePacket done [07:49:33]KKMCreateOFDPacket done [07:49:33]NVStorageSaveData kkm_last_timestamp [07:49:33]File name is /storage/kkm_last_timestamp [07:49:33]Write 4 bytes [07:49:33]NVStorageSaveData done [07:49:33]ExternCall_PrintAddStr [07:49:33]wPrintStart [07:49:33]Write to MH i2c: 01 00 00 AD 4E FB [07:49:33]Write i2c OK [07:49:33]MH_I2C_Read... [07:49:33]Read from MH i2c: 01 [07:49:33]MH_I2C_Read... [07:49:33]Read from MH i2c: 01 07 00 [07:49:33]MH_I2C_Read... [07:49:33]Read from MH i2c: 01 07 00 AD 4E 00 00 00 00 00 FF 0F 10 [07:49:33]RasterBufferAndPrint [07:49:33]line Счет N : (1)1036053 [07:49:33]line ИНН: 02508201610067 [07:49:33]line Контрольно-Кассовый Чек [07:49:33]line ПРОДАЖА [07:49:33]line ТРК (МРК, ГНК) : 12 [07:49:33]line Товар: 2710124130 [07:49:33]line Аи-92-К-5 [07:49:33]line 14.750 * 67.80 [07:49:33]line = 1000.05 [07:49:33]line НДС 12% НСП 1% [07:49:33]line > о реализуемом товаре [07:49:33]line ИТОГО: 1000.05 [07:49:33]line НСП 1% : 8.85 [07:49:33]line НДС 12% : 106.20 [07:49:33]line Наличными: 0.00 [07:49:33]line Безнал.: 1000.05 [07:49:33]line Место: АЗС № 94 "Партнер Нефть" [07:49:33]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [07:49:33]line СНО: Общий режим [07:49:33]line Чек 68 18.08.2024 07:49 [07:49:33]line Смена: 449 ФФД: 1.0 [07:49:33]line ЗНМ: 0300000099 [07:49:33]line РНМ: 0000000000091865 [07:49:33]line Версия ККМ: 001 [07:49:33]line Платежная система: cash2u [07:49:33]line ФМ: 0000000000871820 [07:49:33]line ФД: 260510 [07:49:33]line ФПД: 169009460488350 [07:49:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T074935&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260510&fm=169009460488350&tin=02508201610067®Number=0000000000091865&sum=100005 [07:49:33]written 0, free lines is 4095 [07:49:33]OFD Sender: Processing packet 260510 [packets to send 192, broken 191] [07:49:33]ProducePacketName [07:49:33]name=ofd_packets/00260510 [07:49:33]OFD Sender: To server: pG, [07:49:33]CommunicateWithHost lk.salyk.kg:30040 [07:49:33]ConnectInit lk.salyk.kg [07:49:33]Connected sock=10 [07:49: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 30 0F 01 00 00 27 62 07 01 F8 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 8F A7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9E F9 03 00 35 04 06 00 99 B6 94 DB 28 9E 73 AA 87 86 2A 08 95 CB [07:49: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 30 4F 00 00 00 8C 8D 47 00 73 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 30 10 04 04 00 9E F9 03 00 F4 03 04 00 E4 50 C1 66 B6 04 01 00 00 58 98 48 2A 93 E1 13 B1 [07:49:33]CommunicateWithHost err = 0 [07:49:33]CheckOFDResponse [07:49:33]1017 (14) - 77093643461234 [07:49:33]1041 (16) - 0000000000871820 [07:49:33]1040 (4) - 260510 [07:49:33]1012 (4) - 18.08.2024 01:39 [07:49:33]1206 (1) - 0 [07:49:33]OFD Sender: Remove packet 260510 [07:49:33]ProducePacketName [07:49:33]name=ofd_packets/00260510 [07:49:33]NVStorageDeleteData [07:49:33]Write to MH i2c: 01 00 00 D6 4E 24 [07:49:33]Write i2c OK [07:49:33]MH_I2C_Read... [07:49:33]Read from MH i2c: 01 [07:49:33]MH_I2C_Read... [07:49:33]Read from MH i2c: 01 07 00 [07:49:33]MH_I2C_Read... [07:49:33]Read from MH i2c: 01 07 00 D6 4E 00 00 00 00 00 A5 0C DC [07:49:33]RasterBufferAndPrint [07:49:33]line [07:49:33]line [07:49:33]line [07:49:33]line [07:49:33]line [07:49:33]written 0, free lines is 3244 [07:49:33]MH_Cut [07:49:33]Write to MH i2c: D1 01 00 DD 4E 01 FD [07:49:33]Write i2c OK [07:49:33]MH_I2C_Read... [07:49:33]Read from MH i2c: D1 [07:49:33]MH_I2C_Read... [07:49:33]Read from MH i2c: D1 01 00 [07:49:33]MH_I2C_Read... [07:49:33]Read from MH i2c: D1 01 00 DD 4E 00 FC [07:49:33]Write to MH i2c: 01 00 00 DE 4E 2C [07:49:33]Write i2c OK [07:49:33]MH_I2C_Read... [07:49:34]OFD Sender: No OFD packet to send [07:49:34]*** Cut start [07:49:34]*** Purtial cut [07:49:34]*** Stage 1: CUTSNS_PIN = 1 [07:49:36]Read from MH i2c: 01 [07:49:36]MH_I2C_Read... [07:49:36]*** Stop cut motor [07:49:36]*** Cut end [07:49:36]Read from MH i2c: 01 07 00 [07:49:36]MH_I2C_Read... [07:49:36]Read from MH i2c: 01 07 00 DE 4E 00 00 00 00 00 FF 0F 41 [07:49:36]process_action close_receipt done [07:49:36]requested_data is exist [07:49:36]produce_requested_data [07:49:36]requested_item fm.sn is exist - process it [07:49:36]wFMCommunicate request_size=4 [07:49:36]MH_SAM_APDU [07:49:36]CAPDU: 80 11 00 00 [07:49:36]Write to MH i2c: E2 08 00 DF 4E 80 11 00 00 00 00 00 00 A7 [07:49:36]Write i2c OK [07:49:36]MH_I2C_Read... [07:49:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:36]Read from MH i2c: E2 [07:49:36]MH_I2C_Read... [07:49:36]Read from MH i2c: E2 17 00 [07:49:36]MH_I2C_Read... [07:49:36]Read from MH i2c: E2 17 00 DF 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F4 [07:49:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [07:49:36]wFMCommunicate OK [07:49:36]requested_item fd.num is exist - process it [07:49:36]SAM_PROTO_GetFieldsCounters [07:49:36]wFMCommunicate request_size=4 [07:49:36]MH_SAM_APDU [07:49:36]CAPDU: 80 13 00 00 [07:49:36]Write to MH i2c: E2 08 00 E0 4E 80 13 00 00 00 00 00 00 AA [07:49:36]Write i2c OK [07:49:36]MH_I2C_Read... [07:49:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:49:37]Read from MH i2c: E2 [07:49:37]MH_I2C_Read... [07:49:37]Read from MH i2c: E2 62 00 [07:49:37]MH_I2C_Read... [07:49:37]Read from MH i2c: E2 62 00 E0 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 9E F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [07:49: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 9E F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:49:37]wFMCommunicate OK [07:49:37]SAM_PROTO_GetFieldsCounters done [07:49:37]requested_item shift.num is exist - process it [07:49:37]requested_item shift.opened is exist - process it [07:49:37]req_shift_opened [07:49:37]FM_GetShiftState [07:49:37]SAM_PROTO_GetShiftState [07:49:37]wFMCommunicate request_size=4 [07:49:37]MH_SAM_APDU [07:49:37]CAPDU: 80 13 01 00 [07:49:37]Write to MH i2c: E2 08 00 E1 4E 80 13 01 00 00 00 00 00 AC [07:49:37]Write i2c OK [07:49:37]MH_I2C_Read... [07:49:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:37]Read from MH i2c: E2 [07:49:37]MH_I2C_Read... [07:49:37]Read from MH i2c: E2 0E 00 [07:49:37]MH_I2C_Read... [07:49:37]Read from MH i2c: E2 0E 00 E1 4E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E9 [07:49:37]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [07:49:37]wFMCommunicate OK [07:49:37]SAM_PROTO_GetShiftState done [07:49:37]FM_GetShiftState done [07:49:37]req_shift_opened done [07:49:37]requested_item shift.open_date is exist - process it [07:49:37]req_shift_open_date [07:49:37]req_shift_open_date done [07:49:37]produce_requested_data done [07:49:37]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260510,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [07:49:37]process_action_free close_receipt [07:49:37]json_value_free [07:49:37]json_value_free done [07:49:37]process_json_proto returns [07:49:37]Send response to host [07:49:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260510,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [07:49:37]free response buf [07:49:37]execute_script done [07:49:37]execute_script returns [07:49:37]free content buf [07:49:37]Sock 9.Close socket [07:49:37]Sock 9.Thread stoped [07:49:39]OFD Sender: No OFD packet to send [07:49:44]OFD Sender: No OFD packet to send [07:49:49]OFD Sender: No OFD packet to send [07:49:54]OFD Sender: No OFD packet to send [07:49:59]OFD Sender: No OFD packet to send [07:50:04]OFD Sender: No OFD packet to send [07:50:09]OFD Sender: No OFD packet to send [07:50:14]OFD Sender: No OFD packet to send [07:50:19]OFD Sender: No OFD packet to send [07:50:24]OFD Sender: No OFD packet to send [07:50:29]OFD Sender: No OFD packet to send [07:50:34]OFD Sender: No OFD packet to send [07:50:39]OFD Sender: No OFD packet to send [07:50:44]OFD Sender: No OFD packet to send [07:50:49]OFD Sender: No OFD packet to send [07:50:54]OFD Sender: No OFD packet to send [07:50:59]OFD Sender: No OFD packet to send [07:51:04]OFD Sender: No OFD packet to send [07:51:09]OFD Sender: No OFD packet to send [07:51:14]OFD Sender: No OFD packet to send [07:51:19]OFD Sender: No OFD packet to send [07:51:24]OFD Sender: No OFD packet to send [07:51:29]OFD Sender: No OFD packet to send [07:51:34]OFD Sender: No OFD packet to send [07:51:39]OFD Sender: No OFD packet to send [07:51:44]OFD Sender: No OFD packet to send [07:51:49]OFD Sender: No OFD packet to send [07:51:54]OFD Sender: No OFD packet to send [07:51:59]OFD Sender: No OFD packet to send [07:52:04]OFD Sender: No OFD packet to send [07:52:09]OFD Sender: No OFD packet to send [07:52:14]OFD Sender: No OFD packet to send [07:52:19]OFD Sender: No OFD packet to send [07:52:24]OFD Sender: No OFD packet to send [07:52:29]OFD Sender: No OFD packet to send [07:52:34]OFD Sender: No OFD packet to send [07:52:39]OFD Sender: No OFD packet to send [07:52:44]OFD Sender: No OFD packet to send [07:52:49]OFD Sender: No OFD packet to send [07:52:54]OFD Sender: No OFD packet to send [07:52:59]OFD Sender: No OFD packet to send [07:53:04]OFD Sender: No OFD packet to send [07:53:05]accept exits with 7 [07:53:05]New connection [07:53:05]New thread 3066617188 created [07:53:05]Thread 3066473828 joined [07:53:05]Waiting for new connection... [07:53:05] Sock 7.Parse request [07:53:05]Sock 7.Check first char [07:53:05]Sock 7.First char is OK [07:53:05]request: POST /json_proto HTTP/1.0 [07:53:05]Method: POST [07:53:05]URL: /json_proto [07:53:05]Method is POST - this is cgi request [07:53:05]url: /json_proto [07:53:05]query_string will be loaded in cgi processing [07:53:05]execute_cgi json_proto POST (null) [07:53:05]execute_cgi path=json_proto method=POST [07:53:05]POST find Content-Length [07:53:05]Host: 172.17.55.133:8080 [07:53:05]Content-Length: 801 [07:53:05]Content-Type: application/json [07:53:05] [07:53:05]POST finish read [07:53:05]Found Content-Length = 801 [07:53:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:53:05]execute_script... [07:53:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:53:05]POST & json_proto [07:53:05]process_json_proto [07:53:05]json parsed OK: [07:53:05]protocol is kg_v1.0 [07:53:05]action value=close_receipt [07:53:05]process_action close_receipt [07:53:05]cmd_close_receipt [07:53:05]MH_GetDate [07:53:05]Write to MH i2c: F0 00 00 E2 4E 1F [07:53:05]Write i2c OK [07:53:05]MH_I2C_Read... [07:53:05]Read from MH i2c: F0 [07:53:05]MH_I2C_Read... [07:53:05]Read from MH i2c: F0 09 00 [07:53:05]MH_I2C_Read... [07:53:05]Read from MH i2c: F0 09 00 E2 4E 00 65 A8 C1 66 34 48 D8 65 15 [07:53:05]GetLastDocTimeStamp 1723967375 [07:53:05]current date 1723967589 [07:53:05]FM_GetShiftState [07:53:05]SAM_PROTO_GetShiftState [07:53:05]wFMCommunicate request_size=4 [07:53:05]MH_SAM_APDU [07:53:05]CAPDU: 80 13 01 00 [07:53:05]Write to MH i2c: E2 08 00 E3 4E 80 13 01 00 00 00 00 00 AE [07:53:05]Write i2c OK [07:53:05]MH_I2C_Read... [07:53:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:05]Read from MH i2c: E2 [07:53:05]MH_I2C_Read... [07:53:05]Read from MH i2c: E2 0E 00 [07:53:05]MH_I2C_Read... [07:53:05]Read from MH i2c: E2 0E 00 E3 4E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 EB [07:53:05]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [07:53:05]wFMCommunicate OK [07:53:05]SAM_PROTO_GetShiftState done [07:53:05]FM_GetShiftState done [07:53:05]opened in 1723940556 [07:53:05]opened+sec_in_day 1724026956 [07:53:05]quantity*price = 60003 [07:53:05]sum+1 = 60004 [07:53:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.03 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.03 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 69 18.08.2024 07:53 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260511 ФПД: 62693393358895 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T075309&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260511&fm=62693393358895&tin=02508201610067®Number=0000000000091865&sum=60003 [07:53:07]StoreToDocumentArchive [07:53:07]shift 449 fd 260511 [07:53:07]save to /storage/0449/doc_00260511 [07:53:07]save last doc name /storage/0449/doc_00260511 to /storage/kkm_last_doc_name [07:53:07]save OK [07:53:07]Clear old archive folders... [07:53:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:53:07]tlvbuf is 0044E910 [07:53:07]SAM_PROTO_ClearQueue [07:53:07]wFMCommunicate request_size=4 [07:53:07]MH_SAM_APDU [07:53:07]CAPDU: 80 09 00 00 [07:53:07]Write to MH i2c: E2 08 00 F0 4E 80 09 00 00 00 00 00 00 B0 [07:53:07]Write i2c OK [07:53:07]MH_I2C_Read... [07:53:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:53:07]Read from MH i2c: E2 [07:53:07]MH_I2C_Read... [07:53:07]Read from MH i2c: E2 03 00 [07:53:07]MH_I2C_Read... [07:53:07]Read from MH i2c: E2 03 00 F0 4E 00 90 00 B2 [07:53:07]RAPDU: 90 00 [07:53:07]wFMCommunicate OK [07:53:07]SAM_PROTO_ClearQueue done [07:53:07]KKMCreateOFDPacket [07:53:07]OFDProtocolAddRootSTLVToBuf [07:53:07]FM_MakeSignedData [07:53:07]FM_MakeSignedData [07:53:07]SAM_PROTO_SignData [07:53:07]wFMCommunicate request_size=4 [07:53:07]MH_SAM_APDU [07:53:07]CAPDU: 80 0D 01 02 [07:53:07]Write to MH i2c: E2 08 00 F1 4E 80 0D 01 02 00 00 00 00 B8 [07:53:07]Write i2c OK [07:53:07]MH_I2C_Read... [07:53:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:53:07]Read from MH i2c: E2 [07:53:07]MH_I2C_Read... [07:53:07]Read from MH i2c: E2 03 00 [07:53:07]MH_I2C_Read... [07:53:07]Read from MH i2c: E2 03 00 F1 4E 00 90 00 B3 [07:53:07]RAPDU: 90 00 [07:53:07]wFMCommunicate OK [07:53:07]wFMCommunicate request_size=255 [07:53:07]MH_SAM_APDU [07:53:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 65 A8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9F F9 03 00 35 04 06 00 39 [07:53:07]Write to MH i2c: E2 02 01 F2 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 65 A8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9F F9 03 00 35 04 06 00 39 00 00 11 [07:53:07]Write i2c OK [07:53:07]MH_I2C_Read... [07:53:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:07]Read from MH i2c: E2 [07:53:07]MH_I2C_Read... [07:53:07]Read from MH i2c: E2 03 00 [07:53:07]MH_I2C_Read... [07:53:07]Read from MH i2c: E2 03 00 F2 4E 00 90 00 B4 [07:53:07]RAPDU: 90 00 [07:53:07]wFMCommunicate OK [07:53:07]wFMCommunicate request_size=10 [07:53:07]MH_SAM_APDU [07:53:07]CAPDU: 80 0D 02 02 05 04 F1 70 E0 2F [07:53:07]Write to MH i2c: E2 0D 00 F3 4E 80 0D 02 02 05 00 04 F1 70 E0 2F 00 00 39 [07:53:07]Write i2c OK [07:53:07]MH_I2C_Read... [07:53:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:07]Read from MH i2c: E2 [07:53:07]MH_I2C_Read... [07:53:07]Read from MH i2c: E2 03 00 [07:53:07]MH_I2C_Read... [07:53:07]Read from MH i2c: E2 03 00 F3 4E 00 90 00 B5 [07:53:07]RAPDU: 90 00 [07:53:07]wFMCommunicate OK [07:53:07]wFMCommunicate request_size=4 [07:53:07]MH_SAM_APDU [07:53:07]CAPDU: 80 0D 03 02 [07:53:07]Write to MH i2c: E2 08 00 F4 4E 80 0D 03 02 00 00 00 00 BD [07:53:07]Write i2c OK [07:53:07]MH_I2C_Read... [07:53:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:53:07]Read from MH i2c: E2 [07:53:07]MH_I2C_Read... [07:53:07]Read from MH i2c: E2 0B 00 [07:53:07]MH_I2C_Read... [07:53:07]Read from MH i2c: E2 0B 00 F4 4E 00 15 6A 8D C2 45 34 F8 2D 90 00 2A [07:53:07]RAPDU: 15 6A 8D C2 45 34 F8 2D 90 00 [07:53:07]wFMCommunicate OK [07:53:07]SAM_PROTO_SignData done [07:53:07]FM_MakeSignedData done [07:53:07]CreateOFDProtocolMessage [07:53:07]wFMCommunicate request_size=4 [07:53:07]MH_SAM_APDU [07:53:07]CAPDU: 80 11 00 00 [07:53:07]Write to MH i2c: E2 08 00 F5 4E 80 11 00 00 00 00 00 00 BD [07:53:07]Write i2c OK [07:53:07]MH_I2C_Read... [07:53:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:07]Read from MH i2c: E2 [07:53:07]MH_I2C_Read... [07:53:07]Read from MH i2c: E2 17 00 [07:53:07]MH_I2C_Read... [07:53:07]Read from MH i2c: E2 17 00 F5 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 0A [07:53:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [07:53:07]wFMCommunicate OK [07:53:07]CreateOFDProtocolMessage done [07:53:07]OFDSenderStorePacket 260511 [07:53:07]StoreOFDPacket docnum=260511 [07:53:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 58 DE 07 01 96 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 65 A8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9F F9 03 00 35 04 06 00 39 04 F1 70 E0 2F 15 6A 8D C2 45 34 F8 2D [07:53:07]CheckFolder [07:53:07]dirname=/storage/ofd_packets [07:53:07]CheckFolder done [07:53:07]ProducePacketName [07:53:07]name=ofd_packets/00260511 [07:53:07]NVStorageSaveData ofd_packets/00260511 [07:53:07]File name is /storage/ofd_packets/00260511 [07:53:07]Write 301 bytes [07:53:07]NVStorageSaveData done [07:53:07]OFDSenderStorePacket done [07:53:07]KKMCreateOFDPacket done [07:53:07]NVStorageSaveData kkm_last_timestamp [07:53:07]File name is /storage/kkm_last_timestamp [07:53:07]Write 4 bytes [07:53:07]NVStorageSaveData done [07:53:07]ExternCall_PrintAddStr [07:53:07]wPrintStart [07:53:07]Write to MH i2c: 01 00 00 F6 4E 44 [07:53:07]Write i2c OK [07:53:07]MH_I2C_Read... [07:53:07]Read from MH i2c: 01 [07:53:07]MH_I2C_Read... [07:53:07]Read from MH i2c: 01 07 00 [07:53:07]MH_I2C_Read... [07:53:07]Read from MH i2c: 01 07 00 F6 4E 00 00 00 00 00 FF 0F 59 [07:53:07]RasterBufferAndPrint [07:53:07]line Счет N : (1)1036054 [07:53:07]line ИНН: 02508201610067 [07:53:07]line Контрольно-Кассовый Чек [07:53:07]line ПРОДАЖА [07:53:07]line ТРК (МРК, ГНК) : 12 [07:53:07]line Товар: 2710124130 [07:53:07]line Аи-92-К-5 [07:53:07]line 8.850 * 67.80 [07:53:07]line = 600.03 [07:53:07]line НДС 12% НСП 1% [07:53:07]line > о реализуемом товаре [07:53:07]line ИТОГО: 600.03 [07:53:07]line НСП 1% : 5.31 [07:53:07]line НДС 12% : 63.72 [07:53:07]line Наличными: 0.00 [07:53:07]line Безнал.: 600.03 [07:53:07]line Место: АЗС № 94 "Партнер Нефть" [07:53:07]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [07:53:07]line СНО: Общий режим [07:53:07]line Чек 69 18.08.2024 07:53 [07:53:07]line Смена: 449 ФФД: 1.0 [07:53:07]line ЗНМ: 0300000099 [07:53:07]line РНМ: 0000000000091865 [07:53:07]line Версия ККМ: 001 [07:53:07]line Платежная система: O! деньги [07:53:07]line ФМ: 0000000000871820 [07:53:07]line ФД: 260511 [07:53:07]line ФПД: 62693393358895 [07:53:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T075309&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260511&fm=62693393358895&tin=02508201610067®Number=0000000000091865&sum=60003 [07:53:07]written 0, free lines is 4095 [07:53:07]OFD Sender: Processing packet 260511 [packets to send 192, broken 191] [07:53:07]ProducePacketName [07:53:07]name=ofd_packets/00260511 [07:53:07]OFD Sender: To server: pG, [07:53:07]CommunicateWithHost lk.salyk.kg:30040 [07:53:07]ConnectInit lk.salyk.kg [07:53:07]Connected sock=10 [07: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 30 0F 01 00 00 58 DE 07 01 96 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 65 A8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9F F9 03 00 35 04 06 00 39 04 F1 70 E0 2F 15 6A 8D C2 45 34 F8 2D [07: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 30 4F 00 00 00 86 3F 47 00 62 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 30 10 04 04 00 9F F9 03 00 F4 03 04 00 BB 51 C1 66 B6 04 01 00 00 E4 C1 54 B3 86 10 03 74 [07:53:07]CommunicateWithHost err = 0 [07:53:07]CheckOFDResponse [07:53:07]1017 (14) - 77093643461234 [07:53:07]1041 (16) - 0000000000871820 [07:53:07]1040 (4) - 260511 [07:53:07]1012 (4) - 18.08.2024 01:43 [07:53:07]1206 (1) - 0 [07:53:07]OFD Sender: Remove packet 260511 [07:53:07]ProducePacketName [07:53:07]name=ofd_packets/00260511 [07:53:07]NVStorageDeleteData [07:53:08]Write to MH i2c: 01 00 00 20 4F 6F [07:53:08]Write i2c OK [07:53:08]MH_I2C_Read... [07:53:08]Read from MH i2c: 01 [07:53:08]MH_I2C_Read... [07:53:08]Read from MH i2c: 01 07 00 [07:53:08]MH_I2C_Read... [07:53:08]Read from MH i2c: 01 07 00 20 4F 00 00 00 00 00 88 0C 0A [07:53:08]RasterBufferAndPrint [07:53:08]line [07:53:08]line [07:53:08]line [07:53:08]line [07:53:08]line [07:53:08]written 0, free lines is 3212 [07:53:08]MH_Cut [07:53:08]Write to MH i2c: D1 01 00 27 4F 01 48 [07:53:08]Write i2c OK [07:53:08]MH_I2C_Read... [07:53:08]Read from MH i2c: D1 [07:53:08]MH_I2C_Read... [07:53:08]Read from MH i2c: D1 01 00 [07:53:08]MH_I2C_Read... [07:53:08]Read from MH i2c: D1 01 00 27 4F 00 47 [07:53:08]Write to MH i2c: 01 00 00 28 4F 77 [07:53:08]Write i2c OK [07:53:08]MH_I2C_Read... [07:53:08]OFD Sender: No OFD packet to send [07:53:09]*** Cut start [07:53:09]*** Purtial cut [07:53:09]*** Stage 1: CUTSNS_PIN = 1 [07:53:11]Read from MH i2c: 01 [07:53:11]MH_I2C_Read... [07:53:11]*** Stop cut motor [07:53:11]*** Cut end [07:53:11]Read from MH i2c: 01 07 00 [07:53:11]MH_I2C_Read... [07:53:11]Read from MH i2c: 01 07 00 28 4F 00 00 00 00 00 FF 0F 8C [07:53:11]process_action close_receipt done [07:53:11]requested_data is exist [07:53:11]produce_requested_data [07:53:11]requested_item fm.sn is exist - process it [07:53:11]wFMCommunicate request_size=4 [07:53:11]MH_SAM_APDU [07:53:11]CAPDU: 80 11 00 00 [07:53:11]Write to MH i2c: E2 08 00 29 4F 80 11 00 00 00 00 00 00 F2 [07:53:11]Write i2c OK [07:53:11]MH_I2C_Read... [07:53:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:11]Read from MH i2c: E2 [07:53:11]MH_I2C_Read... [07:53:11]Read from MH i2c: E2 17 00 [07:53:11]MH_I2C_Read... [07:53:11]Read from MH i2c: E2 17 00 29 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 3F [07:53:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [07:53:11]wFMCommunicate OK [07:53:11]requested_item fd.num is exist - process it [07:53:11]SAM_PROTO_GetFieldsCounters [07:53:11]wFMCommunicate request_size=4 [07:53:11]MH_SAM_APDU [07:53:11]CAPDU: 80 13 00 00 [07:53:11]Write to MH i2c: E2 08 00 2A 4F 80 13 00 00 00 00 00 00 F5 [07:53:11]Write i2c OK [07:53:11]MH_I2C_Read... [07:53:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:53:11]Read from MH i2c: E2 [07:53:11]MH_I2C_Read... [07:53:11]Read from MH i2c: E2 62 00 [07:53:11]MH_I2C_Read... [07:53:11]Read from MH i2c: E2 62 00 2A 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 9F F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [07:53: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 9F F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:53:11]wFMCommunicate OK [07:53:11]SAM_PROTO_GetFieldsCounters done [07:53:11]requested_item shift.num is exist - process it [07:53:11]requested_item shift.opened is exist - process it [07:53:11]req_shift_opened [07:53:11]FM_GetShiftState [07:53:11]SAM_PROTO_GetShiftState [07:53:11]wFMCommunicate request_size=4 [07:53:11]MH_SAM_APDU [07:53:11]CAPDU: 80 13 01 00 [07:53:11]Write to MH i2c: E2 08 00 2B 4F 80 13 01 00 00 00 00 00 F7 [07:53:11]Write i2c OK [07:53:11]MH_I2C_Read... [07:53:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:11]Read from MH i2c: E2 [07:53:11]MH_I2C_Read... [07:53:11]Read from MH i2c: E2 0E 00 [07:53:11]MH_I2C_Read... [07:53:11]Read from MH i2c: E2 0E 00 2B 4F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 34 [07:53:11]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [07:53:11]wFMCommunicate OK [07:53:11]SAM_PROTO_GetShiftState done [07:53:11]FM_GetShiftState done [07:53:11]req_shift_opened done [07:53:11]requested_item shift.open_date is exist - process it [07:53:11]req_shift_open_date [07:53:11]req_shift_open_date done [07:53:11]produce_requested_data done [07:53:11]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260511,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [07:53:11]process_action_free close_receipt [07:53:11]json_value_free [07:53:11]json_value_free done [07:53:11]process_json_proto returns [07:53:11]Send response to host [07:53:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260511,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [07:53:11]free response buf [07:53:11]execute_script done [07:53:11]execute_script returns [07:53:11]free content buf [07:53:11]Sock 7.Close socket [07:53:11]Sock 7.Thread stoped [07:53:13]OFD Sender: No OFD packet to send [07:53:18]OFD Sender: No OFD packet to send [07:53:23]OFD Sender: No OFD packet to send [07:53:28]OFD Sender: No OFD packet to send [07:53:33]OFD Sender: No OFD packet to send [07:53:38]OFD Sender: No OFD packet to send [07:53:43]OFD Sender: No OFD packet to send [07:53:48]OFD Sender: No OFD packet to send [07:53:53]OFD Sender: No OFD packet to send [07:53:58]OFD Sender: No OFD packet to send [07:54:03]OFD Sender: No OFD packet to send [07:54:08]OFD Sender: No OFD packet to send [07:54:12]accept exits with 9 [07:54:12]New connection [07:54:12]New thread 3066473828 created [07:54:12]Thread 3066617188 joined [07:54:12]Waiting for new connection... [07:54:12] Sock 9.Parse request [07:54:12]Sock 9.Check first char [07:54:12]Sock 9.First char is OK [07:54:12]request: POST /json_proto HTTP/1.0 [07:54:12]Method: POST [07:54:12]URL: /json_proto [07:54:12]Method is POST - this is cgi request [07:54:12]url: /json_proto [07:54:12]query_string will be loaded in cgi processing [07:54:12]execute_cgi json_proto POST (null) [07:54:12]execute_cgi path=json_proto method=POST [07:54:12]POST find Content-Length [07:54:12]Host: 172.17.55.133:8080 [07:54:12]Content-Length: 760 [07:54:12]Content-Type: application/json [07:54:12] [07:54:12]POST finish read [07:54:12]Found Content-Length = 760 [07:54:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30134144", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:12]execute_script... [07:54:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30134144", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:12]POST & json_proto [07:54:12]process_json_proto [07:54:12]json parsed OK: [07:54:12]protocol is kg_v1.0 [07:54:12]action value=close_receipt [07:54:12]process_action close_receipt [07:54:12]cmd_close_receipt [07:54:12]MH_GetDate [07:54:12]Write to MH i2c: F0 00 00 2C 4F 6A [07:54:12]Write i2c OK [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: F0 [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: F0 09 00 [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: F0 09 00 2C 4F 00 A8 A8 C1 66 34 48 D8 65 A3 [07:54:12]GetLastDocTimeStamp 1723967589 [07:54:12]current date 1723967656 [07:54:12]FM_GetShiftState [07:54:12]SAM_PROTO_GetShiftState [07:54:12]wFMCommunicate request_size=4 [07:54:12]MH_SAM_APDU [07:54:12]CAPDU: 80 13 01 00 [07:54:12]Write to MH i2c: E2 08 00 2D 4F 80 13 01 00 00 00 00 00 F9 [07:54:12]Write i2c OK [07:54:12]MH_I2C_Read... [07:54:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:12]Read from MH i2c: E2 [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: E2 0E 00 [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: E2 0E 00 2D 4F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 36 [07:54:12]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [07:54:12]wFMCommunicate OK [07:54:12]SAM_PROTO_GetShiftState done [07:54:12]FM_GetShiftState done [07:54:12]opened in 1723940556 [07:54:12]opened+sec_in_day 1724026956 [07:54:12]quantity*price = 0 [07:54:12]sum+1 = 1 [07:54:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 70 18.08.2024 07:54 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: ТК ГПНА Online 30134144 ФМ: 0000000000871820 ФД: 260512 ФПД: 233912553951144 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T075416&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260512&fm=233912553951144&tin=02508201610067®Number=0000000000091865&sum=0 [07:54:13]StoreToDocumentArchive [07:54:13]shift 449 fd 260512 [07:54:13]save to /storage/0449/doc_00260512 [07:54:13]save last doc name /storage/0449/doc_00260512 to /storage/kkm_last_doc_name [07:54:13]save OK [07:54:13]Clear old archive folders... [07:54:13]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:54:13]tlvbuf is 003E95D0 [07:54:13]SAM_PROTO_ClearQueue [07:54:13]wFMCommunicate request_size=4 [07:54:13]MH_SAM_APDU [07:54:13]CAPDU: 80 09 00 00 [07:54:13]Write to MH i2c: E2 08 00 3A 4F 80 09 00 00 00 00 00 00 FB [07:54:13]Write i2c OK [07:54:13]MH_I2C_Read... [07:54:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:54:13]Read from MH i2c: E2 [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: E2 03 00 [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: E2 03 00 3A 4F 00 90 00 FD [07:54:13]RAPDU: 90 00 [07:54:13]wFMCommunicate OK [07:54:13]SAM_PROTO_ClearQueue done [07:54:13]KKMCreateOFDPacket [07:54:13]OFDProtocolAddRootSTLVToBuf [07:54:13]FM_MakeSignedData [07:54:13]FM_MakeSignedData [07:54:13]SAM_PROTO_SignData [07:54:13]wFMCommunicate request_size=4 [07:54:13]MH_SAM_APDU [07:54:13]CAPDU: 80 0D 01 02 [07:54:13]Write to MH i2c: E2 08 00 3B 4F 80 0D 01 02 00 00 00 00 03 [07:54:13]Write i2c OK [07:54:13]MH_I2C_Read... [07:54:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:54:13]Read from MH i2c: E2 [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: E2 03 00 [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: E2 03 00 3B 4F 00 90 00 FE [07:54:13]RAPDU: 90 00 [07:54:13]wFMCommunicate OK [07:54:13]wFMCommunicate request_size=255 [07:54:13]MH_SAM_APDU [07:54:13]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 46 00 00 00 F4 03 04 00 A8 A8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A0 F9 03 00 35 04 06 00 [07:54:13]Write to MH i2c: E2 02 01 3C 4F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 46 00 00 00 F4 03 04 00 A8 A8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A0 F9 03 00 35 04 06 00 00 00 97 [07:54:13]Write i2c OK [07:54:13]MH_I2C_Read... [07:54:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:14]Read from MH i2c: E2 [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: E2 03 00 [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: E2 03 00 3C 4F 00 90 00 FF [07:54:14]RAPDU: 90 00 [07:54:14]wFMCommunicate OK [07:54:14]wFMCommunicate request_size=11 [07:54:14]MH_SAM_APDU [07:54:14]CAPDU: 80 0D 02 02 06 D4 BE 02 AF CF A8 [07:54:14]Write to MH i2c: E2 0E 00 3D 4F 80 0D 02 02 06 00 D4 BE 02 AF CF A8 00 00 CC [07:54:14]Write i2c OK [07:54:14]MH_I2C_Read... [07:54:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:14]Read from MH i2c: E2 [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: E2 03 00 [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: E2 03 00 3D 4F 00 90 00 00 [07:54:14]RAPDU: 90 00 [07:54:14]wFMCommunicate OK [07:54:14]wFMCommunicate request_size=4 [07:54:14]MH_SAM_APDU [07:54:14]CAPDU: 80 0D 03 02 [07:54:14]Write to MH i2c: E2 08 00 3E 4F 80 0D 03 02 00 00 00 00 08 [07:54:14]Write i2c OK [07:54:14]MH_I2C_Read... [07:54:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:54:14]Read from MH i2c: E2 [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: E2 0B 00 [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: E2 0B 00 3E 4F 00 BF 29 25 F6 EE 7C 74 77 90 00 61 [07:54:14]RAPDU: BF 29 25 F6 EE 7C 74 77 90 00 [07:54:14]wFMCommunicate OK [07:54:14]SAM_PROTO_SignData done [07:54:14]FM_MakeSignedData done [07:54:14]CreateOFDProtocolMessage [07:54:14]wFMCommunicate request_size=4 [07:54:14]MH_SAM_APDU [07:54:14]CAPDU: 80 11 00 00 [07:54:14]Write to MH i2c: E2 08 00 3F 4F 80 11 00 00 00 00 00 00 08 [07:54:14]Write i2c OK [07:54:14]MH_I2C_Read... [07:54:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:14]Read from MH i2c: E2 [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: E2 17 00 [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: E2 17 00 3F 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 55 [07:54:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [07:54:14]wFMCommunicate OK [07:54:14]CreateOFDProtocolMessage done [07:54:14]OFDSenderStorePacket 260512 [07:54:14]StoreOFDPacket docnum=260512 [07:54:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 A1 F1 08 01 61 2F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 46 00 00 00 F4 03 04 00 A8 A8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A0 F9 03 00 35 04 06 00 D4 BE 02 AF CF A8 BF 29 25 F6 EE 7C 74 77 [07:54:14]CheckFolder [07:54:14]dirname=/storage/ofd_packets [07:54:14]CheckFolder done [07:54:14]ProducePacketName [07:54:14]name=ofd_packets/00260512 [07:54:14]NVStorageSaveData ofd_packets/00260512 [07:54:14]File name is /storage/ofd_packets/00260512 [07:54:14]Write 302 bytes [07:54:14]NVStorageSaveData done [07:54:14]OFDSenderStorePacket done [07:54:14]KKMCreateOFDPacket done [07:54:14]NVStorageSaveData kkm_last_timestamp [07:54:14]File name is /storage/kkm_last_timestamp [07:54:14]Write 4 bytes [07:54:14]NVStorageSaveData done [07:54:14]ExternCall_PrintAddStr [07:54:14]wPrintStart [07:54:14]Write to MH i2c: 01 00 00 40 4F 8F [07:54:14]Write i2c OK [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: 01 [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: 01 07 00 [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: 01 07 00 40 4F 00 00 00 00 00 FF 0F A4 [07:54:14]RasterBufferAndPrint [07:54:14]line Счет N : (1)1036055 [07:54:14]line ИНН: 02508201610067 [07:54:14]line Контрольно-Кассовый Чек [07:54:14]line ПРОДАЖА [07:54:14]line ТРК (МРК, ГНК) : 43 [07:54:14]line Товар: 2710194210 [07:54:14]line ДТ(л)-К-4 [07:54:14]line 10.000 * 0.00 [07:54:14]line = 0.00 [07:54:14]line НДС 12% НСП 1% [07:54:14]line > о реализуемом товаре [07:54:14]line ИТОГО: 0.00 [07:54:14]line НСП 1% : 0.00 [07:54:14]line НДС 12% : 0.00 [07:54:14]line Наличными: 0.00 [07:54:14]line Безнал.: 0.00 [07:54:14]line Место: АЗС № 94 "Партнер Нефть" [07:54:14]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [07:54:14]line СНО: Общий режим [07:54:14]line Чек 70 18.08.2024 07:54 [07:54:14]line Смена: 449 ФФД: 1.0 [07:54:14]line ЗНМ: 0300000099 [07:54:14]line РНМ: 0000000000091865 [07:54:14]line Версия ККМ: 001 [07:54:14]line Талоны: ТК ГПНА Online [07:54:14]line 30134144 [07:54:14]line ФМ: 0000000000871820 [07:54:14]line ФД: 260512 [07:54:14]line ФПД: 233912553951144 [07:54:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T075416&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260512&fm=233912553951144&tin=02508201610067®Number=0000000000091865&sum=0 [07:54:14]written 0, free lines is 4095 [07:54:14]OFD Sender: Processing packet 260512 [packets to send 192, broken 191] [07:54:14]ProducePacketName [07:54:14]name=ofd_packets/00260512 [07:54:14]OFD Sender: To server: pG, [07:54:14]CommunicateWithHost lk.salyk.kg:30040 [07:54:14]ConnectInit lk.salyk.kg [07:54:14]Connected sock=10 [07:54: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 30 10 01 00 00 A1 F1 08 01 61 2F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 46 00 00 00 F4 03 04 00 A8 A8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A0 F9 03 00 35 04 06 00 D4 BE 02 AF CF A8 BF 29 25 F6 EE 7C 74 77 [07:54: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 30 4F 00 00 00 F6 34 47 00 88 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 30 10 04 04 00 A0 F9 03 00 F4 03 04 00 FD 51 C1 66 B6 04 01 00 00 88 23 89 7C 78 F9 DB FD [07:54:14]CommunicateWithHost err = 0 [07:54:14]CheckOFDResponse [07:54:14]1017 (14) - 77093643461234 [07:54:14]1041 (16) - 0000000000871820 [07:54:14]1040 (4) - 260512 [07:54:14]1012 (4) - 18.08.2024 01:44 [07:54:14]1206 (1) - 0 [07:54:14]OFD Sender: Remove packet 260512 [07:54:14]ProducePacketName [07:54:14]name=ofd_packets/00260512 [07:54:14]NVStorageDeleteData [07:54:14]Write to MH i2c: 01 00 00 6A 4F B9 [07:54:14]Write i2c OK [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: 01 [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: 01 07 00 [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: 01 07 00 6A 4F 00 00 00 00 00 8E 0C 5A [07:54:14]RasterBufferAndPrint [07:54:14]line [07:54:14]line [07:54:14]line [07:54:14]line [07:54:14]line [07:54:14]written 0, free lines is 3218 [07:54:14]MH_Cut [07:54:14]Write to MH i2c: D1 01 00 71 4F 01 92 [07:54:14]Write i2c OK [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: D1 [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: D1 01 00 [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: D1 01 00 71 4F 00 91 [07:54:14]Write to MH i2c: 01 00 00 72 4F C1 [07:54:14]Write i2c OK [07:54:14]MH_I2C_Read... [07:54:15]OFD Sender: No OFD packet to send [07:54:15]*** Cut start [07:54:15]*** Purtial cut [07:54:15]*** Stage 1: CUTSNS_PIN = 1 [07:54:17]Read from MH i2c: 01 [07:54:17]MH_I2C_Read... [07:54:17]*** Stop cut motor [07:54:17]*** Cut end [07:54:17]Read from MH i2c: 01 07 00 [07:54:17]MH_I2C_Read... [07:54:17]Read from MH i2c: 01 07 00 72 4F 00 00 00 00 00 FF 0F D6 [07:54:17]process_action close_receipt done [07:54:17]requested_data is exist [07:54:17]produce_requested_data [07:54:17]requested_item fm.sn is exist - process it [07:54:17]wFMCommunicate request_size=4 [07:54:17]MH_SAM_APDU [07:54:17]CAPDU: 80 11 00 00 [07:54:17]Write to MH i2c: E2 08 00 73 4F 80 11 00 00 00 00 00 00 3C [07:54:17]Write i2c OK [07:54:17]MH_I2C_Read... [07:54:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:17]Read from MH i2c: E2 [07:54:17]MH_I2C_Read... [07:54:17]Read from MH i2c: E2 17 00 [07:54:17]MH_I2C_Read... [07:54:17]Read from MH i2c: E2 17 00 73 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 89 [07:54:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [07:54:17]wFMCommunicate OK [07:54:17]requested_item fd.num is exist - process it [07:54:17]SAM_PROTO_GetFieldsCounters [07:54:17]wFMCommunicate request_size=4 [07:54:17]MH_SAM_APDU [07:54:17]CAPDU: 80 13 00 00 [07:54:17]Write to MH i2c: E2 08 00 74 4F 80 13 00 00 00 00 00 00 3F [07:54:17]Write i2c OK [07:54:17]MH_I2C_Read... [07:54:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:54:17]Read from MH i2c: E2 [07:54:17]MH_I2C_Read... [07:54:17]Read from MH i2c: E2 62 00 [07:54:17]MH_I2C_Read... [07:54:17]Read from MH i2c: E2 62 00 74 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A0 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [07:54: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A0 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:54:18]wFMCommunicate OK [07:54:18]SAM_PROTO_GetFieldsCounters done [07:54:18]requested_item shift.num is exist - process it [07:54:18]requested_item shift.opened is exist - process it [07:54:18]req_shift_opened [07:54:18]FM_GetShiftState [07:54:18]SAM_PROTO_GetShiftState [07:54:18]wFMCommunicate request_size=4 [07:54:18]MH_SAM_APDU [07:54:18]CAPDU: 80 13 01 00 [07:54:18]Write to MH i2c: E2 08 00 75 4F 80 13 01 00 00 00 00 00 41 [07:54:18]Write i2c OK [07:54:18]MH_I2C_Read... [07:54:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:18]Read from MH i2c: E2 [07:54:18]MH_I2C_Read... [07:54:18]Read from MH i2c: E2 0E 00 [07:54:18]MH_I2C_Read... [07:54:18]Read from MH i2c: E2 0E 00 75 4F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 7E [07:54:18]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [07:54:18]wFMCommunicate OK [07:54:18]SAM_PROTO_GetShiftState done [07:54:18]FM_GetShiftState done [07:54:18]req_shift_opened done [07:54:18]requested_item shift.open_date is exist - process it [07:54:18]req_shift_open_date [07:54:18]req_shift_open_date done [07:54:18]produce_requested_data done [07:54:18]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260512,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [07:54:18]process_action_free close_receipt [07:54:18]json_value_free [07:54:18]json_value_free done [07:54:18]process_json_proto returns [07:54:18]Send response to host [07:54:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260512,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [07:54:18]free response buf [07:54:18]execute_script done [07:54:18]execute_script returns [07:54:18]free content buf [07:54:18]Sock 9.Close socket [07:54:18]Sock 9.Thread stoped [07:54:20]OFD Sender: No OFD packet to send [07:54:25]OFD Sender: No OFD packet to send [07:54:29]accept exits with 7 [07:54:29]New connection [07:54:29]New thread 3066617188 created [07:54:29]Thread 3066473828 joined [07:54:29]Waiting for new connection... [07:54:29] Sock 7.Parse request [07:54:29]Sock 7.Check first char [07:54:29]Sock 7.First char is OK [07:54:29]request: POST /json_proto HTTP/1.0 [07:54:29]Method: POST [07:54:29]URL: /json_proto [07:54:29]Method is POST - this is cgi request [07:54:29]url: /json_proto [07:54:29]query_string will be loaded in cgi processing [07:54:29]execute_cgi json_proto POST (null) [07:54:29]execute_cgi path=json_proto method=POST [07:54:29]POST find Content-Length [07:54:29]Host: 172.17.55.133:8080 [07:54:29]Content-Length: 755 [07:54:29]Content-Type: application/json [07:54:29] [07:54:29]POST finish read [07:54:29]Found Content-Length = 755 [07:54:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106738", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:29]execute_script... [07:54: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)1036056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106738", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:29]POST & json_proto [07:54:29]process_json_proto [07:54:29]json parsed OK: [07:54:29]protocol is kg_v1.0 [07:54:29]action value=close_receipt [07:54:29]process_action close_receipt [07:54:29]cmd_close_receipt [07:54:29]MH_GetDate [07:54:29]Write to MH i2c: F0 00 00 76 4F B4 [07:54:29]Write i2c OK [07:54:29]MH_I2C_Read... [07:54:29]Read from MH i2c: F0 [07:54:29]MH_I2C_Read... [07:54:29]Read from MH i2c: F0 09 00 [07:54:29]MH_I2C_Read... [07:54:29]Read from MH i2c: F0 09 00 76 4F 00 B9 A8 C1 66 34 48 D8 65 FE [07:54:29]GetLastDocTimeStamp 1723967656 [07:54:29]current date 1723967673 [07:54:29]FM_GetShiftState [07:54:29]SAM_PROTO_GetShiftState [07:54:29]wFMCommunicate request_size=4 [07:54:29]MH_SAM_APDU [07:54:29]CAPDU: 80 13 01 00 [07:54:29]Write to MH i2c: E2 08 00 77 4F 80 13 01 00 00 00 00 00 43 [07:54:29]Write i2c OK [07:54:29]MH_I2C_Read... [07:54:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:29]Read from MH i2c: E2 [07:54:29]MH_I2C_Read... [07:54:29]Read from MH i2c: E2 0E 00 [07:54:29]MH_I2C_Read... [07:54:29]Read from MH i2c: E2 0E 00 77 4F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 80 [07:54:29]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [07:54:29]wFMCommunicate OK [07:54:29]SAM_PROTO_GetShiftState done [07:54:29]FM_GetShiftState done [07:54:29]opened in 1723940556 [07:54:29]opened+sec_in_day 1724026956 [07:54:29]quantity*price = 0 [07:54:29]sum+1 = 1 [07:54:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 71 18.08.2024 07:54 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: ТК ГПНА Online 30106738 ФМ: 0000000000871820 ФД: 260513 ФПД: 145289614051014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T075433&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260513&fm=145289614051014&tin=02508201610067®Number=0000000000091865&sum=0 [07:54:31]StoreToDocumentArchive [07:54:31]shift 449 fd 260513 [07:54:31]save to /storage/0449/doc_00260513 [07:54:31]save last doc name /storage/0449/doc_00260513 to /storage/kkm_last_doc_name [07:54:31]save OK [07:54:31]Clear old archive folders... [07:54:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:54:31]tlvbuf is 0037B360 [07:54:31]SAM_PROTO_ClearQueue [07:54:31]wFMCommunicate request_size=4 [07:54:31]MH_SAM_APDU [07:54:31]CAPDU: 80 09 00 00 [07:54:31]Write to MH i2c: E2 08 00 84 4F 80 09 00 00 00 00 00 00 45 [07:54:31]Write i2c OK [07:54:31]MH_I2C_Read... [07:54:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:54:31]Read from MH i2c: E2 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 03 00 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 03 00 84 4F 00 90 00 47 [07:54:31]RAPDU: 90 00 [07:54:31]wFMCommunicate OK [07:54:31]SAM_PROTO_ClearQueue done [07:54:31]KKMCreateOFDPacket [07:54:31]OFDProtocolAddRootSTLVToBuf [07:54:31]FM_MakeSignedData [07:54:31]FM_MakeSignedData [07:54:31]SAM_PROTO_SignData [07:54:31]wFMCommunicate request_size=4 [07:54:31]MH_SAM_APDU [07:54:31]CAPDU: 80 0D 01 02 [07:54:31]Write to MH i2c: E2 08 00 85 4F 80 0D 01 02 00 00 00 00 4D [07:54:31]Write i2c OK [07:54:31]MH_I2C_Read... [07:54:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:54:31]Read from MH i2c: E2 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 03 00 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 03 00 85 4F 00 90 00 48 [07:54:31]RAPDU: 90 00 [07:54:31]wFMCommunicate OK [07:54:31]wFMCommunicate request_size=255 [07:54:31]MH_SAM_APDU [07:54:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 47 00 00 00 F4 03 04 00 B9 A8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A1 F9 03 00 35 04 06 00 84 [07:54:31]Write to MH i2c: E2 02 01 86 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 B9 A8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A1 F9 03 00 35 04 06 00 84 00 00 3E [07:54:31]Write i2c OK [07:54:31]MH_I2C_Read... [07:54:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:31]Read from MH i2c: E2 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 03 00 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 03 00 86 4F 00 90 00 49 [07:54:31]RAPDU: 90 00 [07:54:31]wFMCommunicate OK [07:54:31]wFMCommunicate request_size=10 [07:54:31]MH_SAM_APDU [07:54:31]CAPDU: 80 0D 02 02 05 23 DF D5 C6 C6 [07:54:31]Write to MH i2c: E2 0D 00 87 4F 80 0D 02 02 05 00 23 DF D5 C6 C6 00 00 BD [07:54:31]Write i2c OK [07:54:31]MH_I2C_Read... [07:54:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:31]Read from MH i2c: E2 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 03 00 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 03 00 87 4F 00 90 00 4A [07:54:31]RAPDU: 90 00 [07:54:31]wFMCommunicate OK [07:54:31]wFMCommunicate request_size=4 [07:54:31]MH_SAM_APDU [07:54:31]CAPDU: 80 0D 03 02 [07:54:31]Write to MH i2c: E2 08 00 88 4F 80 0D 03 02 00 00 00 00 52 [07:54:31]Write i2c OK [07:54:31]MH_I2C_Read... [07:54:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:54:31]Read from MH i2c: E2 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 0B 00 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 0B 00 88 4F 00 4D 40 E4 23 73 5C A2 87 90 00 DF [07:54:31]RAPDU: 4D 40 E4 23 73 5C A2 87 90 00 [07:54:31]wFMCommunicate OK [07:54:31]SAM_PROTO_SignData done [07:54:31]FM_MakeSignedData done [07:54:31]CreateOFDProtocolMessage [07:54:31]wFMCommunicate request_size=4 [07:54:31]MH_SAM_APDU [07:54:31]CAPDU: 80 11 00 00 [07:54:31]Write to MH i2c: E2 08 00 89 4F 80 11 00 00 00 00 00 00 52 [07:54:31]Write i2c OK [07:54:31]MH_I2C_Read... [07:54:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:31]Read from MH i2c: E2 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 17 00 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 17 00 89 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 9F [07:54:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [07:54:31]wFMCommunicate OK [07:54:31]CreateOFDProtocolMessage done [07:54:31]OFDSenderStorePacket 260513 [07:54:31]StoreOFDPacket docnum=260513 [07:54:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 91 0A 07 01 F0 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 B9 A8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A1 F9 03 00 35 04 06 00 84 23 DF D5 C6 C6 4D 40 E4 23 73 5C A2 87 [07:54:31]CheckFolder [07:54:31]dirname=/storage/ofd_packets [07:54:31]CheckFolder done [07:54:31]ProducePacketName [07:54:31]name=ofd_packets/00260513 [07:54:31]NVStorageSaveData ofd_packets/00260513 [07:54:31]File name is /storage/ofd_packets/00260513 [07:54:31]Write 301 bytes [07:54:31]NVStorageSaveData done [07:54:31]OFDSenderStorePacket done [07:54:31]KKMCreateOFDPacket done [07:54:31]NVStorageSaveData kkm_last_timestamp [07:54:31]File name is /storage/kkm_last_timestamp [07:54:31]Write 4 bytes [07:54:31]NVStorageSaveData done [07:54:31]ExternCall_PrintAddStr [07:54:31]wPrintStart [07:54:31]Write to MH i2c: 01 00 00 8A 4F D9 [07:54:31]Write i2c OK [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: 01 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: 01 07 00 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: 01 07 00 8A 4F 00 00 00 00 00 FF 0F EE [07:54:31]RasterBufferAndPrint [07:54:31]line Счет N : (1)1036056 [07:54:31]line ИНН: 02508201610067 [07:54:31]line Контрольно-Кассовый Чек [07:54:31]line ПРОДАЖА [07:54:31]line ТРК (МРК, ГНК) : 32 [07:54:31]line Товар: 2710124130 [07:54:31]line Аи-92-К-5 [07:54:31]line 10.000 * 0.00 [07:54:31]line = 0.00 [07:54:31]line НДС 12% НСП 1% [07:54:31]line > о реализуемом товаре [07:54:31]line ИТОГО: 0.00 [07:54:31]line НСП 1% : 0.00 [07:54:31]line НДС 12% : 0.00 [07:54:31]line Наличными: 0.00 [07:54:31]line Безнал.: 0.00 [07:54:31]line Место: АЗС № 94 "Партнер Нефть" [07:54:31]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [07:54:31]line СНО: Общий режим [07:54:31]line Чек 71 18.08.2024 07:54 [07:54:31]line Смена: 449 ФФД: 1.0 [07:54:31]line ЗНМ: 0300000099 [07:54:31]line РНМ: 0000000000091865 [07:54:31]line Версия ККМ: 001 [07:54:31]line Талоны: ТК ГПНА Online [07:54:31]line 30106738 [07:54:31]line ФМ: 0000000000871820 [07:54:31]line ФД: 260513 [07:54:31]line ФПД: 145289614051014 [07:54:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T075433&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260513&fm=145289614051014&tin=02508201610067®Number=0000000000091865&sum=0 [07:54:31]written 0, free lines is 4095 [07:54:31]OFD Sender: Processing packet 260513 [packets to send 192, broken 191] [07:54:31]ProducePacketName [07:54:31]name=ofd_packets/00260513 [07:54:31]OFD Sender: To server: pG, [07:54:31]CommunicateWithHost lk.salyk.kg:30040 [07:54:31]ConnectInit lk.salyk.kg [07:54:32]Connected sock=10 [07:54: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 30 0F 01 00 00 91 0A 07 01 F0 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 B9 A8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A1 F9 03 00 35 04 06 00 84 23 DF D5 C6 C6 4D 40 E4 23 73 5C A2 87 [07:54:32]Write to MH i2c: 01 00 00 B4 4F 03 [07:54:32]Write i2c OK [07:54:32]MH_I2C_Read... [07:54:32]Read from MH i2c: 01 [07:54:32]MH_I2C_Read... [07:54:32]Read from MH i2c: 01 07 00 [07:54:32]MH_I2C_Read... [07:54:32]Read from MH i2c: 01 07 00 B4 4F 00 00 00 00 00 97 0C AD [07:54:32]RasterBufferAndPrint [07:54:32]line [07:54:32]line [07:54:32]line [07:54:32]line [07:54:32]line [07:54:32]written 0, free lines is 3227 [07:54:32]MH_Cut [07:54:32]Write to MH i2c: D1 01 00 BB 4F 01 DC [07:54:32]Write i2c OK [07:54:32]MH_I2C_Read... [07:54:32]Read from MH i2c: D1 [07:54:32]MH_I2C_Read... [07:54:32]Read from MH i2c: D1 01 00 [07:54:32]MH_I2C_Read... [07:54:32]Read from MH i2c: D1 01 00 BB 4F 00 DB [07:54:32]Write to MH i2c: 01 00 00 BC 4F 0B [07:54:32]Write i2c OK [07:54:32]MH_I2C_Read... [07:54: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 30 4F 00 00 00 D9 2E 47 00 C3 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 30 10 04 04 00 A1 F9 03 00 F4 03 04 00 0F 52 C1 66 B6 04 01 00 00 79 FF CE 34 1B 71 AB 2A [07:54:32]CommunicateWithHost err = 0 [07:54:32]CheckOFDResponse [07:54:32]1017 (14) - 77093643461234 [07:54:32]1041 (16) - 0000000000871820 [07:54:32]1040 (4) - 260513 [07:54:32]1012 (4) - 18.08.2024 01:44 [07:54:32]1206 (1) - 0 [07:54:32]OFD Sender: Remove packet 260513 [07:54:32]ProducePacketName [07:54:32]name=ofd_packets/00260513 [07:54:32]NVStorageDeleteData [07:54:32]OFD Sender: No OFD packet to send [07:54:33]*** Cut start [07:54:33]*** Purtial cut [07:54:33]*** Stage 1: CUTSNS_PIN = 1 [07:54:35]Read from MH i2c: 01 [07:54:35]MH_I2C_Read... [07:54:35]*** Stop cut motor [07:54:35]*** Cut end [07:54:35]Read from MH i2c: 01 07 00 [07:54:35]MH_I2C_Read... [07:54:35]Read from MH i2c: 01 07 00 BC 4F 00 00 00 00 00 FF 0F 20 [07:54:35]process_action close_receipt done [07:54:35]requested_data is exist [07:54:35]produce_requested_data [07:54:35]requested_item fm.sn is exist - process it [07:54:35]wFMCommunicate request_size=4 [07:54:35]MH_SAM_APDU [07:54:35]CAPDU: 80 11 00 00 [07:54:35]Write to MH i2c: E2 08 00 BD 4F 80 11 00 00 00 00 00 00 86 [07:54:35]Write i2c OK [07:54:35]MH_I2C_Read... [07:54:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:35]int [07:54:35]*** FLAG_PRN_PAP1 set [07:54:35]Read from MH i2c: E2 [07:54:35]MH_I2C_Read... [07:54:35]Read from MH i2c: E2 17 00 [07:54:35]MH_I2C_Read... [07:54:35]Read from MH i2c: E2 17 00 BD 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D3 [07:54:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [07:54:35]wFMCommunicate OK [07:54:35]requested_item fd.num is exist - process it [07:54:35]SAM_PROTO_GetFieldsCounters [07:54:35]wFMCommunicate request_size=4 [07:54:35]MH_SAM_APDU [07:54:35]CAPDU: 80 13 00 00 [07:54:35]Write to MH i2c: E2 08 00 BE 4F 80 13 00 00 00 00 00 00 89 [07:54:35]*** FLAG_PRN_PAP2 set [07:54:35]Write i2c OK [07:54:35]MH_I2C_Read... [07:54:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:54:35]Read from MH i2c: E2 [07:54:35]MH_I2C_Read... [07:54:35]Read from MH i2c: E2 62 00 [07:54:35]MH_I2C_Read... [07:54:35]Read from MH i2c: E2 62 00 BE 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A1 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [07:54: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A1 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:54:35]wFMCommunicate OK [07:54:35]SAM_PROTO_GetFieldsCounters done [07:54:35]requested_item shift.num is exist - process it [07:54:35]requested_item shift.opened is exist - process it [07:54:35]req_shift_opened [07:54:35]FM_GetShiftState [07:54:35]SAM_PROTO_GetShiftState [07:54:35]wFMCommunicate request_size=4 [07:54:35]MH_SAM_APDU [07:54:35]CAPDU: 80 13 01 00 [07:54:35]Write to MH i2c: 01 00 00 BF 4F 0E [07:54:35]Write i2c OK [07:54:35]MH_I2C_Read... [07:54:35]Read from MH i2c: 01 [07:54:35]MH_I2C_Read... [07:54:35]Read from MH i2c: 01 07 00 [07:54:35]MH_I2C_Read... [07:54:35]Read from MH i2c: 01 07 00 BF 4F 00 03 00 00 00 FF 0F 26 [07:54:35]state=0 [07:54:35]No paper [07:54:35]Cover opened [07:54:35]Write to MH i2c: E2 08 00 C0 4F 80 13 01 00 00 00 00 00 8C [07:54:35]Write i2c OK [07:54:35]MH_I2C_Read... [07:54:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:35]Read from MH i2c: E2 [07:54:35]MH_I2C_Read... [07:54:35]Read from MH i2c: E2 0E 00 [07:54:35]MH_I2C_Read... [07:54:35]Read from MH i2c: E2 0E 00 C0 4F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C9 [07:54:35]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [07:54:35]wFMCommunicate OK [07:54:35]SAM_PROTO_GetShiftState done [07:54:35]FM_GetShiftState done [07:54:35]req_shift_opened done [07:54:35]requested_item shift.open_date is exist - process it [07:54:35]req_shift_open_date [07:54:35]req_shift_open_date done [07:54:35]produce_requested_data done [07:54:35]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260513,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [07:54:35]process_action_free close_receipt [07:54:35]json_value_free [07:54:35]json_value_free done [07:54:35]process_json_proto returns [07:54:35]Send response to host [07:54:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260513,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [07:54:35]free response buf [07:54:35]execute_script done [07:54:35]execute_script returns [07:54:35]free content buf [07:54:35]Sock 7.Close socket [07:54:35]Sock 7.Thread stoped [07:54:37]OFD Sender: No OFD packet to send [07:54:38]int [07:54:38]Write to MH i2c: 01 00 00 C1 4F 10 [07:54:38]*** FLAG_PRN_PAP1 reset [07:54:38]*** FLAG_PRN_PAP2 reset [07:54:38]Write i2c OK [07:54:38]MH_I2C_Read... [07:54:38]Read from MH i2c: 01 [07:54:38]MH_I2C_Read... [07:54:38]Read from MH i2c: 01 07 00 [07:54:38]MH_I2C_Read... [07:54:38]Read from MH i2c: 01 07 00 C1 4F 00 00 00 00 00 FF 0F 25 [07:54:38]state=3 [07:54:38]Cover closed [07:54:42]OFD Sender: No OFD packet to send [07:54:47]OFD Sender: No OFD packet to send [07:54:52]OFD Sender: No OFD packet to send [07:54:57]OFD Sender: No OFD packet to send [07:55:02]OFD Sender: No OFD packet to send [07:55:07]OFD Sender: No OFD packet to send [07:55:12]OFD Sender: No OFD packet to send [07:55:17]OFD Sender: No OFD packet to send [07:55:22]OFD Sender: No OFD packet to send [07:55:27]OFD Sender: No OFD packet to send [07:55:32]OFD Sender: No OFD packet to send [07:55:37]OFD Sender: No OFD packet to send [07:55:42]OFD Sender: No OFD packet to send [07:55:47]OFD Sender: No OFD packet to send [07:55:52]OFD Sender: No OFD packet to send [07:55:54]accept exits with 9 [07:55:54]New connection [07:55:54]New thread 3066473828 created [07:55:54]Thread 3066617188 joined [07:55:54]Waiting for new connection... [07:55:54] Sock 9.Parse request [07:55:54]Sock 9.Check first char [07:55:54]Sock 9.First char is OK [07:55:54]request: POST /json_proto HTTP/1.0 [07:55:54]Method: POST [07:55:54]URL: /json_proto [07:55:54]Method is POST - this is cgi request [07:55:54]url: /json_proto [07:55:54]query_string will be loaded in cgi processing [07:55:54]execute_cgi json_proto POST (null) [07:55:54]execute_cgi path=json_proto method=POST [07:55:54]POST find Content-Length [07:55:54]Host: 172.17.55.133:8080 [07:55:54]Content-Length: 678 [07:55:54]Content-Type: application/json [07:55:54] [07:55:54]POST finish read [07:55:54]Found Content-Length = 678 [07:55:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:55:54]execute_script... [07:55: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)1036057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:55:54]POST & json_proto [07:55:54]process_json_proto [07:55:54]json parsed OK: [07:55:54]protocol is kg_v1.0 [07:55:54]action value=close_receipt [07:55:54]process_action close_receipt [07:55:54]cmd_close_receipt [07:55:54]MH_GetDate [07:55:54]Write to MH i2c: F0 00 00 C2 4F 00 [07:55:54]Write i2c OK [07:55:54]MH_I2C_Read... [07:55:54]Read from MH i2c: F0 [07:55:54]MH_I2C_Read... [07:55:54]Read from MH i2c: F0 09 00 [07:55:54]MH_I2C_Read... [07:55:54]Read from MH i2c: F0 09 00 C2 4F 00 0D A9 C1 66 34 48 D8 65 9F [07:55:54]GetLastDocTimeStamp 1723967673 [07:55:54]current date 1723967757 [07:55:54]FM_GetShiftState [07:55:54]SAM_PROTO_GetShiftState [07:55:54]wFMCommunicate request_size=4 [07:55:54]MH_SAM_APDU [07:55:54]CAPDU: 80 13 01 00 [07:55:54]Write to MH i2c: E2 08 00 C3 4F 80 13 01 00 00 00 00 00 8F [07:55:54]Write i2c OK [07:55:54]MH_I2C_Read... [07:55:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:54]Read from MH i2c: E2 [07:55:54]MH_I2C_Read... [07:55:54]Read from MH i2c: E2 0E 00 [07:55:54]MH_I2C_Read... [07:55:54]Read from MH i2c: E2 0E 00 C3 4F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 CC [07:55:54]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [07:55:54]wFMCommunicate OK [07:55:54]SAM_PROTO_GetShiftState done [07:55:54]FM_GetShiftState done [07:55:54]opened in 1723940556 [07:55:54]opened+sec_in_day 1724026956 [07:55:54]quantity*price = 30035 [07:55:54]sum+1 = 30036 [07:55:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 72 18.08.2024 07:55 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260514 ФПД: 1626661867122 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T075557&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260514&fm=1626661867122&tin=02508201610067®Number=0000000000091865&sum=30000 [07:55:55]StoreToDocumentArchive [07:55:55]shift 449 fd 260514 [07:55:55]save to /storage/0449/doc_00260514 [07:55:55]save last doc name /storage/0449/doc_00260514 to /storage/kkm_last_doc_name [07:55:55]save OK [07:55:55]Clear old archive folders... [07:55:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:55:55]tlvbuf is 00387A50 [07:55:55]SAM_PROTO_ClearQueue [07:55:55]wFMCommunicate request_size=4 [07:55:55]MH_SAM_APDU [07:55:55]CAPDU: 80 09 00 00 [07:55:55]Write to MH i2c: E2 08 00 D0 4F 80 09 00 00 00 00 00 00 91 [07:55:55]Write i2c OK [07:55:55]MH_I2C_Read... [07:55:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:55:55]Read from MH i2c: E2 [07:55:55]MH_I2C_Read... [07:55:55]Read from MH i2c: E2 03 00 [07:55:55]MH_I2C_Read... [07:55:55]Read from MH i2c: E2 03 00 D0 4F 00 90 00 93 [07:55:55]RAPDU: 90 00 [07:55:55]wFMCommunicate OK [07:55:55]SAM_PROTO_ClearQueue done [07:55:55]KKMCreateOFDPacket [07:55:55]OFDProtocolAddRootSTLVToBuf [07:55:55]FM_MakeSignedData [07:55:55]FM_MakeSignedData [07:55:55]SAM_PROTO_SignData [07:55:55]wFMCommunicate request_size=4 [07:55:55]MH_SAM_APDU [07:55:55]CAPDU: 80 0D 01 02 [07:55:55]Write to MH i2c: E2 08 00 D1 4F 80 0D 01 02 00 00 00 00 99 [07:55:55]Write i2c OK [07:55:55]MH_I2C_Read... [07:55:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:55:55]Read from MH i2c: E2 [07:55:55]MH_I2C_Read... [07:55:55]Read from MH i2c: E2 03 00 [07:55:55]MH_I2C_Read... [07:55:55]Read from MH i2c: E2 03 00 D1 4F 00 90 00 94 [07:55:55]RAPDU: 90 00 [07:55:55]wFMCommunicate OK [07:55:55]wFMCommunicate request_size=255 [07:55:55]MH_SAM_APDU [07:55:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 0D A9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A2 F9 03 00 35 04 06 00 01 [07:55:55]Write to MH i2c: E2 02 01 D2 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 0D A9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A2 F9 03 00 35 04 06 00 01 00 00 BB [07:55:55]Write i2c OK [07:55:55]MH_I2C_Read... [07:55:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:55]Read from MH i2c: E2 [07:55:55]MH_I2C_Read... [07:55:55]Read from MH i2c: E2 03 00 [07:55:55]MH_I2C_Read... [07:55:55]Read from MH i2c: E2 03 00 D2 4F 00 90 00 95 [07:55:55]RAPDU: 90 00 [07:55:55]wFMCommunicate OK [07:55:55]wFMCommunicate request_size=10 [07:55:55]MH_SAM_APDU [07:55:55]CAPDU: 80 0D 02 02 05 7A BC 9A 4E 72 [07:55:55]Write to MH i2c: E2 0D 00 D3 4F 80 0D 02 02 05 00 7A BC 9A 4E 72 00 00 36 [07:55:55]Write i2c OK [07:55:55]MH_I2C_Read... [07:55:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:55]Read from MH i2c: E2 [07:55:55]MH_I2C_Read... [07:55:55]Read from MH i2c: E2 03 00 [07:55:55]MH_I2C_Read... [07:55:55]Read from MH i2c: E2 03 00 D3 4F 00 90 00 96 [07:55:55]RAPDU: 90 00 [07:55:55]wFMCommunicate OK [07:55:55]wFMCommunicate request_size=4 [07:55:55]MH_SAM_APDU [07:55:55]CAPDU: 80 0D 03 02 [07:55:55]Write to MH i2c: E2 08 00 D4 4F 80 0D 03 02 00 00 00 00 9E [07:55:55]Write i2c OK [07:55:55]MH_I2C_Read... [07:55:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:55:55]Read from MH i2c: E2 [07:55:55]MH_I2C_Read... [07:55:55]Read from MH i2c: E2 0B 00 [07:55:55]MH_I2C_Read... [07:55:55]Read from MH i2c: E2 0B 00 D4 4F 00 64 4D B1 0B EB FE D2 76 90 00 3D [07:55:55]RAPDU: 64 4D B1 0B EB FE D2 76 90 00 [07:55:55]wFMCommunicate OK [07:55:55]SAM_PROTO_SignData done [07:55:55]FM_MakeSignedData done [07:55:55]CreateOFDProtocolMessage [07:55:55]wFMCommunicate request_size=4 [07:55:55]MH_SAM_APDU [07:55:55]CAPDU: 80 11 00 00 [07:55:55]Write to MH i2c: E2 08 00 D5 4F 80 11 00 00 00 00 00 00 9E [07:55:55]Write i2c OK [07:55:55]MH_I2C_Read... [07:55:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:55]Read from MH i2c: E2 [07:55:55]MH_I2C_Read... [07:55:55]Read from MH i2c: E2 17 00 [07:55:55]MH_I2C_Read... [07:55:55]Read from MH i2c: E2 17 00 D5 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 EB [07:55:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [07:55:55]wFMCommunicate OK [07:55:55]CreateOFDProtocolMessage done [07:55:55]OFDSenderStorePacket 260514 [07:55:55]StoreOFDPacket docnum=260514 [07:55:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 6F 4A 07 01 B8 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 0D A9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A2 F9 03 00 35 04 06 00 01 7A BC 9A 4E 72 64 4D B1 0B EB FE D2 76 [07:55:55]CheckFolder [07:55:55]dirname=/storage/ofd_packets [07:55:55]CheckFolder done [07:55:55]ProducePacketName [07:55:55]name=ofd_packets/00260514 [07:55:55]NVStorageSaveData ofd_packets/00260514 [07:55:55]File name is /storage/ofd_packets/00260514 [07:55:55]Write 301 bytes [07:55:55]NVStorageSaveData done [07:55:55]OFDSenderStorePacket done [07:55:55]KKMCreateOFDPacket done [07:55:55]NVStorageSaveData kkm_last_timestamp [07:55:55]File name is /storage/kkm_last_timestamp [07:55:55]Write 4 bytes [07:55:55]NVStorageSaveData done [07:55:55]OFD Sender: Processing packet 260514 [packets to send 192, broken 191] [07:55:55]ProducePacketName [07:55:55]name=ofd_packets/00260514 [07:55:55]OFD Sender: To server: pG, [07:55:55]CommunicateWithHost lk.salyk.kg:30040 [07:55:55]ConnectInit lk.salyk.kg [07:55:55]ExternCall_PrintAddStr [07:55:55]wPrintStart [07:55:55]Write to MH i2c: 01 00 00 D6 4F 25 [07:55:55]Write i2c OK [07:55:55]MH_I2C_Read... [07:55:55]Read from MH i2c: 01 [07:55:55]MH_I2C_Read... [07:55:55]Read from MH i2c: 01 07 00 [07:55:55]MH_I2C_Read... [07:55:55]Read from MH i2c: 01 07 00 D6 4F 00 00 00 00 00 FF 0F 3A [07:55:55]RasterBufferAndPrint [07:55:55]line Счет N : (1)1036057 [07:55:55]line ИНН: 02508201610067 [07:55:55]line Контрольно-Кассовый Чек [07:55:55]line ПРОДАЖА [07:55:55]line ТРК (МРК, ГНК) : 22 [07:55:55]line Товар: 2710124130 [07:55:55]line Аи-92-К-5 [07:55:55]line 4.430 * 67.80 [07:55:55]line = 300.35 [07:55:55]line НДС 12% НСП 1% [07:55:55]line > о реализуемом товаре [07:55:55]line ОКРУГЛЕНИЕ: -0.35 [07:55:55]line ИТОГО: 300.00 [07:55:55]line Внесено: 300.00 [07:55:55]line СДАЧА: 0.00 [07:55:55]line НСП 1% : 2.66 [07:55:55]line НДС 12% : 31.90 [07:55:55]line Наличными: 300.00 [07:55:55]line Безнал.: 0.00 [07:55:55]line Место: АЗС № 94 "Партнер Нефть" [07:55:55]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [07:55:55]line СНО: Общий режим [07:55:55]line Чек 72 18.08.2024 07:55 [07:55:55]line Смена: 449 ФФД: 1.0 [07:55:55]line ЗНМ: 0300000099 [07:55:55]line РНМ: 0000000000091865 [07:55:55]line Версия ККМ: 001 [07:55:55]line ФМ: 0000000000871820 [07:55:55]line ФД: 260514 [07:55:55]line ФПД: 1626661867122 [07:55:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T075557&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260514&fm=1626661867122&tin=02508201610067®Number=0000000000091865&sum=30000 [07:55:56]Connected sock=11 [07:55: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 30 0F 01 00 00 6F 4A 07 01 B8 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 0D A9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A2 F9 03 00 35 04 06 00 01 7A BC 9A 4E 72 64 4D B1 0B EB FE D2 76 [07:55:56]written 0, free lines is 4095 [07:55: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 30 4F 00 00 00 DC BD 47 00 99 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 30 10 04 04 00 A2 F9 03 00 F4 03 04 00 63 52 C1 66 B6 04 01 00 00 13 FD 01 0F 61 70 44 BC [07:55:56]CommunicateWithHost err = 0 [07:55:56]CheckOFDResponse [07:55:56]1017 (14) - 77093643461234 [07:55:56]1041 (16) - 0000000000871820 [07:55:56]1040 (4) - 260514 [07:55:56]1012 (4) - 18.08.2024 01:46 [07:55:56]1206 (1) - 0 [07:55:56]OFD Sender: Remove packet 260514 [07:55:56]ProducePacketName [07:55:56]name=ofd_packets/00260514 [07:55:56]NVStorageDeleteData [07:55:56]Write to MH i2c: 01 00 00 01 50 51 [07:55:56]Write i2c OK [07:55:56]MH_I2C_Read... [07:55:56]Read from MH i2c: 01 [07:55:56]MH_I2C_Read... [07:55:56]Read from MH i2c: 01 07 00 [07:55:56]MH_I2C_Read... [07:55:56]Read from MH i2c: 01 07 00 01 50 00 00 00 00 00 6C 0C D0 [07:55:56]RasterBufferAndPrint [07:55:56]line [07:55:56]line [07:55:56]line [07:55:56]line [07:55:56]line [07:55:56]written 0, free lines is 3184 [07:55:56]MH_Cut [07:55:56]Write to MH i2c: D1 01 00 08 50 01 2A [07:55:56]Write i2c OK [07:55:56]MH_I2C_Read... [07:55:56]Read from MH i2c: D1 [07:55:56]MH_I2C_Read... [07:55:56]Read from MH i2c: D1 01 00 [07:55:56]MH_I2C_Read... [07:55:56]Read from MH i2c: D1 01 00 08 50 00 29 [07:55:56]Write to MH i2c: 01 00 00 09 50 59 [07:55:56]Write i2c OK [07:55:56]MH_I2C_Read... [07:55:56]OFD Sender: No OFD packet to send [07:55:57]*** Cut start [07:55:57]*** Purtial cut [07:55:57]*** Stage 1: CUTSNS_PIN = 1 [07:55:59]Read from MH i2c: 01 [07:55:59]MH_I2C_Read... [07:55:59]*** Stop cut motor [07:55:59]*** Cut end [07:55:59]Read from MH i2c: 01 07 00 [07:55:59]MH_I2C_Read... [07:55:59]Read from MH i2c: 01 07 00 09 50 00 00 00 00 00 FF 0F 6E [07:55:59]process_action close_receipt done [07:55:59]requested_data is exist [07:55:59]produce_requested_data [07:55:59]requested_item fm.sn is exist - process it [07:55:59]wFMCommunicate request_size=4 [07:55:59]MH_SAM_APDU [07:55:59]CAPDU: 80 11 00 00 [07:55:59]Write to MH i2c: E2 08 00 0A 50 80 11 00 00 00 00 00 00 D4 [07:55:59]Write i2c OK [07:55:59]MH_I2C_Read... [07:55:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:59]Read from MH i2c: E2 [07:55:59]MH_I2C_Read... [07:55:59]Read from MH i2c: E2 17 00 [07:55:59]MH_I2C_Read... [07:55:59]Read from MH i2c: E2 17 00 0A 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 21 [07:55:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [07:55:59]wFMCommunicate OK [07:55:59]requested_item fd.num is exist - process it [07:55:59]SAM_PROTO_GetFieldsCounters [07:55:59]wFMCommunicate request_size=4 [07:55:59]MH_SAM_APDU [07:55:59]CAPDU: 80 13 00 00 [07:55:59]Write to MH i2c: E2 08 00 0B 50 80 13 00 00 00 00 00 00 D7 [07:55:59]Write i2c OK [07:55:59]MH_I2C_Read... [07:55:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:56:00]Read from MH i2c: E2 [07:56:00]MH_I2C_Read... [07:56:00]Read from MH i2c: E2 62 00 [07:56:00]MH_I2C_Read... [07:56:00]Read from MH i2c: E2 62 00 0B 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A2 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [07:56: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A2 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:56:00]wFMCommunicate OK [07:56:00]SAM_PROTO_GetFieldsCounters done [07:56:00]requested_item shift.num is exist - process it [07:56:00]requested_item shift.opened is exist - process it [07:56:00]req_shift_opened [07:56:00]FM_GetShiftState [07:56:00]SAM_PROTO_GetShiftState [07:56:00]wFMCommunicate request_size=4 [07:56:00]MH_SAM_APDU [07:56:00]CAPDU: 80 13 01 00 [07:56:00]Write to MH i2c: E2 08 00 0C 50 80 13 01 00 00 00 00 00 D9 [07:56:00]Write i2c OK [07:56:00]MH_I2C_Read... [07:56:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:00]Read from MH i2c: E2 [07:56:00]MH_I2C_Read... [07:56:00]Read from MH i2c: E2 0E 00 [07:56:00]MH_I2C_Read... [07:56:00]Read from MH i2c: E2 0E 00 0C 50 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 16 [07:56:00]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [07:56:00]wFMCommunicate OK [07:56:00]SAM_PROTO_GetShiftState done [07:56:00]FM_GetShiftState done [07:56:00]req_shift_opened done [07:56:00]requested_item shift.open_date is exist - process it [07:56:00]req_shift_open_date [07:56:00]req_shift_open_date done [07:56:00]produce_requested_data done [07:56:00]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260514,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [07:56:00]process_action_free close_receipt [07:56:00]json_value_free [07:56:00]json_value_free done [07:56:00]process_json_proto returns [07:56:00]Send response to host [07:56:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260514,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [07:56:00]free response buf [07:56:00]execute_script done [07:56:00]execute_script returns [07:56:00]free content buf [07:56:00]Sock 9.Close socket [07:56:00]Sock 9.Thread stoped [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:19]accept exits with 7 [07:56:19]New connection [07:56:19]New thread 3066617188 created [07:56:19]Thread 3066473828 joined [07:56:19]Waiting for new connection... [07:56:19] Sock 7.Parse request [07:56:19]Sock 7.Check first char [07:56:19]Sock 7.First char is OK [07:56:19]request: POST /json_proto HTTP/1.0 [07:56:19]Method: POST [07:56:19]URL: /json_proto [07:56:19]Method is POST - this is cgi request [07:56:19]url: /json_proto [07:56:19]query_string will be loaded in cgi processing [07:56:19]execute_cgi json_proto POST (null) [07:56:19]execute_cgi path=json_proto method=POST [07:56:19]POST find Content-Length [07:56:19]Host: 172.17.55.133:8080 [07:56:19]Content-Length: 771 [07:56:19]Content-Type: application/json [07:56:19] [07:56:19]POST finish read [07:56:19]Found Content-Length = 771 [07:56:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: cash2u", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:56:19]execute_script... [07:56: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)1036058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: cash2u", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:56:19]POST & json_proto [07:56:19]process_json_proto [07:56:19]json parsed OK: [07:56:19]protocol is kg_v1.0 [07:56:19]action value=close_receipt [07:56:19]process_action close_receipt [07:56:19]cmd_close_receipt [07:56:19]MH_GetDate [07:56:19]Write to MH i2c: F0 00 00 0D 50 4C [07:56:19]Write i2c OK [07:56:19]MH_I2C_Read... [07:56:19]Read from MH i2c: F0 [07:56:19]MH_I2C_Read... [07:56:19]Read from MH i2c: F0 09 00 [07:56:19]MH_I2C_Read... [07:56:19]Read from MH i2c: F0 09 00 0D 50 00 26 A9 C1 66 34 48 D8 65 04 [07:56:19]GetLastDocTimeStamp 1723967757 [07:56:19]current date 1723967782 [07:56:19]FM_GetShiftState [07:56:19]SAM_PROTO_GetShiftState [07:56:19]wFMCommunicate request_size=4 [07:56:19]MH_SAM_APDU [07:56:19]CAPDU: 80 13 01 00 [07:56:19]Write to MH i2c: E2 08 00 0E 50 80 13 01 00 00 00 00 00 DB [07:56:19]Write i2c OK [07:56:19]MH_I2C_Read... [07:56:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:19]Read from MH i2c: E2 [07:56:19]MH_I2C_Read... [07:56:19]Read from MH i2c: E2 0E 00 [07:56:19]MH_I2C_Read... [07:56:19]Read from MH i2c: E2 0E 00 0E 50 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 18 [07:56:19]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [07:56:19]wFMCommunicate OK [07:56:19]SAM_PROTO_GetShiftState done [07:56:19]FM_GetShiftState done [07:56:19]opened in 1723940556 [07:56:19]opened+sec_in_day 1724026956 [07:56:19]quantity*price = 100005 [07:56:19]sum+1 = 100006 [07:56:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 73 18.08.2024 07:56 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: cash2u ФМ: 0000000000871820 ФД: 260515 ФПД: 188150510491635 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T075622&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260515&fm=188150510491635&tin=02508201610067®Number=0000000000091865&sum=100005 [07:56:20]StoreToDocumentArchive [07:56:20]shift 449 fd 260515 [07:56:20]save to /storage/0449/doc_00260515 [07:56:20]save last doc name /storage/0449/doc_00260515 to /storage/kkm_last_doc_name [07:56:20]save OK [07:56:20]Clear old archive folders... [07:56:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:56:20]tlvbuf is 0035CB40 [07:56:20]SAM_PROTO_ClearQueue [07:56:20]wFMCommunicate request_size=4 [07:56:20]MH_SAM_APDU [07:56:20]CAPDU: 80 09 00 00 [07:56:20]Write to MH i2c: E2 08 00 1B 50 80 09 00 00 00 00 00 00 DD [07:56:20]Write i2c OK [07:56:20]MH_I2C_Read... [07:56:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:56:20]Read from MH i2c: E2 [07:56:20]MH_I2C_Read... [07:56:20]Read from MH i2c: E2 03 00 [07:56:20]MH_I2C_Read... [07:56:20]Read from MH i2c: E2 03 00 1B 50 00 90 00 DF [07:56:20]RAPDU: 90 00 [07:56:20]wFMCommunicate OK [07:56:20]SAM_PROTO_ClearQueue done [07:56:20]KKMCreateOFDPacket [07:56:20]OFDProtocolAddRootSTLVToBuf [07:56:20]FM_MakeSignedData [07:56:20]FM_MakeSignedData [07:56:20]SAM_PROTO_SignData [07:56:20]wFMCommunicate request_size=4 [07:56:20]MH_SAM_APDU [07:56:20]CAPDU: 80 0D 01 02 [07:56:20]Write to MH i2c: E2 08 00 1C 50 80 0D 01 02 00 00 00 00 E5 [07:56:20]Write i2c OK [07:56:20]MH_I2C_Read... [07:56:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:56:20]Read from MH i2c: E2 [07:56:20]MH_I2C_Read... [07:56:20]Read from MH i2c: E2 03 00 [07:56:20]MH_I2C_Read... [07:56:20]Read from MH i2c: E2 03 00 1C 50 00 90 00 E0 [07:56:20]RAPDU: 90 00 [07:56:20]wFMCommunicate OK [07:56:20]wFMCommunicate request_size=255 [07:56:20]MH_SAM_APDU [07:56:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 26 A9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A3 F9 03 00 35 04 06 00 AB [07:56:20]Write to MH i2c: E2 02 01 1D 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 26 A9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A3 F9 03 00 35 04 06 00 AB 00 00 46 [07:56:20]Write i2c OK [07:56:20]MH_I2C_Read... [07:56:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:20]Read from MH i2c: E2 [07:56:20]MH_I2C_Read... [07:56:20]Read from MH i2c: E2 03 00 [07:56:20]MH_I2C_Read... [07:56:20]Read from MH i2c: E2 03 00 1D 50 00 90 00 E1 [07:56:20]RAPDU: 90 00 [07:56:20]wFMCommunicate OK [07:56:20]wFMCommunicate request_size=10 [07:56:20]MH_SAM_APDU [07:56:20]CAPDU: 80 0D 02 02 05 1F 34 57 97 F3 [07:56:20]Write to MH i2c: E2 0D 00 1E 50 80 0D 02 02 05 00 1F 34 57 97 F3 00 00 26 [07:56:20]Write i2c OK [07:56:20]MH_I2C_Read... [07:56:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:20]Read from MH i2c: E2 [07:56:20]MH_I2C_Read... [07:56:20]Read from MH i2c: E2 03 00 [07:56:20]MH_I2C_Read... [07:56:20]Read from MH i2c: E2 03 00 1E 50 00 90 00 E2 [07:56:20]RAPDU: 90 00 [07:56:20]wFMCommunicate OK [07:56:20]wFMCommunicate request_size=4 [07:56:20]MH_SAM_APDU [07:56:20]CAPDU: 80 0D 03 02 [07:56:20]Write to MH i2c: E2 08 00 1F 50 80 0D 03 02 00 00 00 00 EA [07:56:20]Write i2c OK [07:56:20]MH_I2C_Read... [07:56:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:56:20]Read from MH i2c: E2 [07:56:20]MH_I2C_Read... [07:56:20]Read from MH i2c: E2 0B 00 [07:56:20]MH_I2C_Read... [07:56:20]Read from MH i2c: E2 0B 00 1F 50 00 60 41 F2 42 0C C9 F5 D5 90 00 5F [07:56:20]RAPDU: 60 41 F2 42 0C C9 F5 D5 90 00 [07:56:20]wFMCommunicate OK [07:56:20]SAM_PROTO_SignData done [07:56:20]FM_MakeSignedData done [07:56:20]CreateOFDProtocolMessage [07:56:20]wFMCommunicate request_size=4 [07:56:20]MH_SAM_APDU [07:56:20]CAPDU: 80 11 00 00 [07:56:20]Write to MH i2c: E2 08 00 20 50 80 11 00 00 00 00 00 00 EA [07:56:20]Write i2c OK [07:56:20]MH_I2C_Read... [07:56:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:21]Read from MH i2c: E2 [07:56:21]MH_I2C_Read... [07:56:21]Read from MH i2c: E2 17 00 [07:56:21]MH_I2C_Read... [07:56:21]Read from MH i2c: E2 17 00 20 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 37 [07:56:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [07:56:21]wFMCommunicate OK [07:56:21]CreateOFDProtocolMessage done [07:56:21]OFDSenderStorePacket 260515 [07:56:21]StoreOFDPacket docnum=260515 [07:56:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 71 31 07 01 4B 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 26 A9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A3 F9 03 00 35 04 06 00 AB 1F 34 57 97 F3 60 41 F2 42 0C C9 F5 D5 [07:56:21]CheckFolder [07:56:21]dirname=/storage/ofd_packets [07:56:21]CheckFolder done [07:56:21]ProducePacketName [07:56:21]name=ofd_packets/00260515 [07:56:21]NVStorageSaveData ofd_packets/00260515 [07:56:21]File name is /storage/ofd_packets/00260515 [07:56:21]Write 301 bytes [07:56:21]NVStorageSaveData done [07:56:21]OFDSenderStorePacket done [07:56:21]KKMCreateOFDPacket done [07:56:21]NVStorageSaveData kkm_last_timestamp [07:56:21]File name is /storage/kkm_last_timestamp [07:56:21]Write 4 bytes [07:56:21]NVStorageSaveData done [07:56:21]ExternCall_PrintAddStr [07:56:21]wPrintStart [07:56:21]Write to MH i2c: 01 00 00 21 50 71 [07:56:21]Write i2c OK [07:56:21]MH_I2C_Read... [07:56:21]Read from MH i2c: 01 [07:56:21]MH_I2C_Read... [07:56:21]Read from MH i2c: 01 07 00 [07:56:21]MH_I2C_Read... [07:56:21]Read from MH i2c: 01 07 00 21 50 00 00 00 00 00 FF 0F 86 [07:56:21]RasterBufferAndPrint [07:56:21]line Счет N : (1)1036058 [07:56:21]line ИНН: 02508201610067 [07:56:21]line Контрольно-Кассовый Чек [07:56:21]line ПРОДАЖА [07:56:21]line ТРК (МРК, ГНК) : 12 [07:56:21]line Товар: 2710124130 [07:56:21]line Аи-92-К-5 [07:56:21]line 14.750 * 67.80 [07:56:21]line = 1000.05 [07:56:21]line НДС 12% НСП 1% [07:56:21]line > о реализуемом товаре [07:56:21]line ИТОГО: 1000.05 [07:56:21]line НСП 1% : 8.85 [07:56:21]line НДС 12% : 106.20 [07:56:21]line Наличными: 0.00 [07:56:21]line Безнал.: 1000.05 [07:56:21]line Место: АЗС № 94 "Партнер Нефть" [07:56:21]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [07:56:21]line СНО: Общий режим [07:56:21]line Чек 73 18.08.2024 07:56 [07:56:21]line Смена: 449 ФФД: 1.0 [07:56:21]line ЗНМ: 0300000099 [07:56:21]line РНМ: 0000000000091865 [07:56:21]line Версия ККМ: 001 [07:56:21]line Платежная система: cash2u [07:56:21]line ФМ: 0000000000871820 [07:56:21]line ФД: 260515 [07:56:21]line ФПД: 188150510491635 [07:56:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T075622&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260515&fm=188150510491635&tin=02508201610067®Number=0000000000091865&sum=100005 [07:56:21]written 0, free lines is 4095 [07:56:21]OFD Sender: Processing packet 260515 [packets to send 192, broken 191] [07:56:21]ProducePacketName [07:56:21]name=ofd_packets/00260515 [07:56:21]OFD Sender: To server: pG, [07:56:21]CommunicateWithHost lk.salyk.kg:30040 [07:56:21]ConnectInit lk.salyk.kg [07:56:21]Connected sock=9 [07:56: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 30 0F 01 00 00 71 31 07 01 4B 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 26 A9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A3 F9 03 00 35 04 06 00 AB 1F 34 57 97 F3 60 41 F2 42 0C C9 F5 D5 [07:56:21]Write to MH i2c: 01 00 00 4A 50 9A [07:56:21]Write i2c OK [07:56:21]MH_I2C_Read... [07:56:21]Read from MH i2c: 01 [07:56:21]MH_I2C_Read... [07:56:21]Read from MH i2c: 01 07 00 [07:56:21]MH_I2C_Read... [07:56:21]Read from MH i2c: 01 07 00 4A 50 00 00 00 00 00 98 0C 45 [07:56:21]RasterBufferAndPrint [07:56:21]line [07:56:21]line [07:56:21]line [07:56:21]line [07:56:21]line [07:56:21]written 0, free lines is 3228 [07:56:21]MH_Cut [07:56:21]Write to MH i2c: D1 01 00 51 50 01 73 [07:56:21]Write i2c OK [07:56:21]MH_I2C_Read... [07:56:21]Read from MH i2c: D1 [07:56:21]MH_I2C_Read... [07:56:21]Read from MH i2c: D1 01 00 [07:56:21]MH_I2C_Read... [07:56:21]Read from MH i2c: D1 01 00 51 50 00 72 [07:56:21]Write to MH i2c: 01 00 00 52 50 A2 [07:56:21]Write i2c OK [07:56:21]MH_I2C_Read... [07:56: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 30 4F 00 00 00 19 FC 47 00 A8 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 30 10 04 04 00 A3 F9 03 00 F4 03 04 00 7C 52 C1 66 B6 04 01 00 00 65 69 32 F0 6F 79 FB 72 [07:56:21]CommunicateWithHost err = 0 [07:56:21]CheckOFDResponse [07:56:21]1017 (14) - 77093643461234 [07:56:21]1041 (16) - 0000000000871820 [07:56:21]1040 (4) - 260515 [07:56:21]1012 (4) - 18.08.2024 01:46 [07:56:21]1206 (1) - 0 [07:56:21]OFD Sender: Remove packet 260515 [07:56:21]ProducePacketName [07:56:21]name=ofd_packets/00260515 [07:56:21]NVStorageDeleteData [07:56:22]OFD Sender: No OFD packet to send [07:56:22]*** Cut start [07:56:22]*** Purtial cut [07:56:22]*** Stage 1: CUTSNS_PIN = 1 [07:56:24]Read from MH i2c: 01 [07:56:24]MH_I2C_Read... [07:56:24]*** Stop cut motor [07:56:24]*** Cut end [07:56:24]Read from MH i2c: 01 07 00 [07:56:24]MH_I2C_Read... [07:56:24]Read from MH i2c: 01 07 00 52 50 00 00 00 00 00 FF 0F B7 [07:56:24]process_action close_receipt done [07:56:24]requested_data is exist [07:56:24]produce_requested_data [07:56:24]requested_item fm.sn is exist - process it [07:56:24]wFMCommunicate request_size=4 [07:56:24]MH_SAM_APDU [07:56:24]CAPDU: 80 11 00 00 [07:56:24]Write to MH i2c: E2 08 00 53 50 80 11 00 00 00 00 00 00 1D [07:56:24]Write i2c OK [07:56:24]MH_I2C_Read... [07:56:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:24]Read from MH i2c: E2 [07:56:24]MH_I2C_Read... [07:56:24]Read from MH i2c: E2 17 00 [07:56:24]MH_I2C_Read... [07:56:24]Read from MH i2c: E2 17 00 53 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 6A [07:56:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [07:56:24]wFMCommunicate OK [07:56:24]requested_item fd.num is exist - process it [07:56:24]SAM_PROTO_GetFieldsCounters [07:56:24]wFMCommunicate request_size=4 [07:56:24]MH_SAM_APDU [07:56:24]CAPDU: 80 13 00 00 [07:56:24]Write to MH i2c: E2 08 00 54 50 80 13 00 00 00 00 00 00 20 [07:56:24]Write i2c OK [07:56:24]MH_I2C_Read... [07:56:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:56:24]Read from MH i2c: E2 [07:56:24]MH_I2C_Read... [07:56:24]Read from MH i2c: E2 62 00 [07:56:24]MH_I2C_Read... [07:56:24]Read from MH i2c: E2 62 00 54 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A3 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [07:56: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A3 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:56:24]wFMCommunicate OK [07:56:24]SAM_PROTO_GetFieldsCounters done [07:56:24]requested_item shift.num is exist - process it [07:56:24]requested_item shift.opened is exist - process it [07:56:24]req_shift_opened [07:56:24]FM_GetShiftState [07:56:24]SAM_PROTO_GetShiftState [07:56:24]wFMCommunicate request_size=4 [07:56:24]MH_SAM_APDU [07:56:24]CAPDU: 80 13 01 00 [07:56:24]Write to MH i2c: E2 08 00 55 50 80 13 01 00 00 00 00 00 22 [07:56:24]Write i2c OK [07:56:24]MH_I2C_Read... [07:56:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:24]Read from MH i2c: E2 [07:56:24]MH_I2C_Read... [07:56:24]Read from MH i2c: E2 0E 00 [07:56:24]MH_I2C_Read... [07:56:24]Read from MH i2c: E2 0E 00 55 50 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 5F [07:56:24]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [07:56:24]wFMCommunicate OK [07:56:24]SAM_PROTO_GetShiftState done [07:56:24]FM_GetShiftState done [07:56:24]req_shift_opened done [07:56:24]requested_item shift.open_date is exist - process it [07:56:24]req_shift_open_date [07:56:24]req_shift_open_date done [07:56:24]produce_requested_data done [07:56:24]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260515,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [07:56:24]process_action_free close_receipt [07:56:24]json_value_free [07:56:24]json_value_free done [07:56:24]process_json_proto returns [07:56:24]Send response to host [07:56:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260515,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [07:56:24]free response buf [07:56:24]execute_script done [07:56:24]execute_script returns [07:56:24]free content buf [07:56:24]Sock 7.Close socket [07:56:24]Sock 7.Thread stoped [07:56:27]OFD Sender: No OFD packet to send [07:56:32]OFD Sender: No OFD packet to send [07:56:37]OFD Sender: No OFD packet to send [07:56:42]OFD Sender: No OFD packet to send [07:56:47]OFD Sender: No OFD packet to send [07:56:52]OFD Sender: No OFD packet to send [07:56:57]OFD Sender: No OFD packet to send [07:57:02]OFD Sender: No OFD packet to send [07:57:07]OFD Sender: No OFD packet to send [07:57:12]OFD Sender: No OFD packet to send [07:57:17]OFD Sender: No OFD packet to send [07:57:22]OFD Sender: No OFD packet to send [07:57:27]OFD Sender: No OFD packet to send [07:57:32]OFD Sender: No OFD packet to send [07:57:37]OFD Sender: No OFD packet to send [07:57:42]OFD Sender: No OFD packet to send [07:57:47]OFD Sender: No OFD packet to send [07:57:52]OFD Sender: No OFD packet to send [07:57:57]OFD Sender: No OFD packet to send [07:58:02]OFD Sender: No OFD packet to send [07:58:07]OFD Sender: No OFD packet to send [07:58:12]OFD Sender: No OFD packet to send [07:58:17]OFD Sender: No OFD packet to send [07:58:22]OFD Sender: No OFD packet to send [07:58:24]accept exits with 10 [07:58:24]New connection [07:58:24]New thread 3066473828 created [07:58:24]Thread 3066617188 joined [07:58:24]Waiting for new connection... [07:58:24] Sock 10.Parse request [07:58:24]Sock 10.Check first char [07:58:24]Sock 10.First char is OK [07:58:24]request: POST /json_proto HTTP/1.0 [07:58:24]Method: POST [07:58:24]URL: /json_proto [07:58:24]Method is POST - this is cgi request [07:58:24]url: /json_proto [07:58:24]query_string will be loaded in cgi processing [07:58:24]execute_cgi json_proto POST (null) [07:58:24]execute_cgi path=json_proto method=POST [07:58:24]POST find Content-Length [07:58:24]Host: 172.17.55.133:8080 [07:58:24]Content-Length: 678 [07:58:24]Content-Type: application/json [07:58:24] [07:58:24]POST finish read [07:58:24]Found Content-Length = 678 [07:58:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:58:24]execute_script... [07:58: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)1036059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:58:24]POST & json_proto [07:58:24]process_json_proto [07:58:24]json parsed OK: [07:58:24]protocol is kg_v1.0 [07:58:24]action value=close_receipt [07:58:24]process_action close_receipt [07:58:24]cmd_close_receipt [07:58:24]MH_GetDate [07:58:24]Write to MH i2c: F0 00 00 56 50 95 [07:58:24]Write i2c OK [07:58:24]MH_I2C_Read... [07:58:24]Read from MH i2c: F0 [07:58:24]MH_I2C_Read... [07:58:24]Read from MH i2c: F0 09 00 [07:58:24]MH_I2C_Read... [07:58:24]Read from MH i2c: F0 09 00 56 50 00 A4 A9 C1 66 34 48 D8 65 CB [07:58:24]GetLastDocTimeStamp 1723967782 [07:58:24]current date 1723967908 [07:58:24]FM_GetShiftState [07:58:24]SAM_PROTO_GetShiftState [07:58:24]wFMCommunicate request_size=4 [07:58:24]MH_SAM_APDU [07:58:24]CAPDU: 80 13 01 00 [07:58:24]Write to MH i2c: E2 08 00 57 50 80 13 01 00 00 00 00 00 24 [07:58:24]Write i2c OK [07:58:24]MH_I2C_Read... [07:58:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:24]Read from MH i2c: E2 [07:58:24]MH_I2C_Read... [07:58:24]Read from MH i2c: E2 0E 00 [07:58:24]MH_I2C_Read... [07:58:24]Read from MH i2c: E2 0E 00 57 50 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 61 [07:58:24]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [07:58:24]wFMCommunicate OK [07:58:24]SAM_PROTO_GetShiftState done [07:58:24]FM_GetShiftState done [07:58:24]opened in 1723940556 [07:58:24]opened+sec_in_day 1724026956 [07:58:24]quantity*price = 50036 [07:58:24]sum+1 = 50037 [07:58:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 74 18.08.2024 07:58 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260516 ФПД: 87167468627238 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T075828&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260516&fm=87167468627238&tin=02508201610067®Number=0000000000091865&sum=50000 [07:58:25]StoreToDocumentArchive [07:58:25]shift 449 fd 260516 [07:58:25]save to /storage/0449/doc_00260516 [07:58:25]save last doc name /storage/0449/doc_00260516 to /storage/kkm_last_doc_name [07:58:25]save OK [07:58:25]Clear old archive folders... [07:58:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:58:25]tlvbuf is 003B7E10 [07:58:25]SAM_PROTO_ClearQueue [07:58:25]wFMCommunicate request_size=4 [07:58:25]MH_SAM_APDU [07:58:25]CAPDU: 80 09 00 00 [07:58:25]Write to MH i2c: E2 08 00 64 50 80 09 00 00 00 00 00 00 26 [07:58:25]Write i2c OK [07:58:25]MH_I2C_Read... [07:58:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:58:25]Read from MH i2c: E2 [07:58:25]MH_I2C_Read... [07:58:25]Read from MH i2c: E2 03 00 [07:58:25]MH_I2C_Read... [07:58:25]Read from MH i2c: E2 03 00 64 50 00 90 00 28 [07:58:25]RAPDU: 90 00 [07:58:25]wFMCommunicate OK [07:58:25]SAM_PROTO_ClearQueue done [07:58:25]KKMCreateOFDPacket [07:58:25]OFDProtocolAddRootSTLVToBuf [07:58:25]FM_MakeSignedData [07:58:25]FM_MakeSignedData [07:58:25]SAM_PROTO_SignData [07:58:25]wFMCommunicate request_size=4 [07:58:25]MH_SAM_APDU [07:58:25]CAPDU: 80 0D 01 02 [07:58:25]Write to MH i2c: E2 08 00 65 50 80 0D 01 02 00 00 00 00 2E [07:58:25]Write i2c OK [07:58:25]MH_I2C_Read... [07:58:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:58:25]Read from MH i2c: E2 [07:58:25]MH_I2C_Read... [07:58:25]Read from MH i2c: E2 03 00 [07:58:25]MH_I2C_Read... [07:58:25]Read from MH i2c: E2 03 00 65 50 00 90 00 29 [07:58:25]RAPDU: 90 00 [07:58:25]wFMCommunicate OK [07:58:25]wFMCommunicate request_size=255 [07:58:25]MH_SAM_APDU [07:58:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4A 00 00 00 F4 03 04 00 A4 A9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A4 F9 03 00 35 04 06 00 4F [07:58:25]Write to MH i2c: E2 02 01 66 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4A 00 00 00 F4 03 04 00 A4 A9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A4 F9 03 00 35 04 06 00 4F 00 00 1A [07:58:25]Write i2c OK [07:58:25]MH_I2C_Read... [07:58:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:26]Read from MH i2c: E2 [07:58:26]MH_I2C_Read... [07:58:26]Read from MH i2c: E2 03 00 [07:58:26]MH_I2C_Read... [07:58:26]Read from MH i2c: E2 03 00 66 50 00 90 00 2A [07:58:26]RAPDU: 90 00 [07:58:26]wFMCommunicate OK [07:58:26]wFMCommunicate request_size=10 [07:58:26]MH_SAM_APDU [07:58:26]CAPDU: 80 0D 02 02 05 47 42 00 E5 26 [07:58:26]Write to MH i2c: E2 0D 00 67 50 80 0D 02 02 05 00 47 42 00 E5 26 00 00 CF [07:58:26]Write i2c OK [07:58:26]MH_I2C_Read... [07:58:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:26]Read from MH i2c: E2 [07:58:26]MH_I2C_Read... [07:58:26]Read from MH i2c: E2 03 00 [07:58:26]MH_I2C_Read... [07:58:26]Read from MH i2c: E2 03 00 67 50 00 90 00 2B [07:58:26]RAPDU: 90 00 [07:58:26]wFMCommunicate OK [07:58:26]wFMCommunicate request_size=4 [07:58:26]MH_SAM_APDU [07:58:26]CAPDU: 80 0D 03 02 [07:58:26]Write to MH i2c: E2 08 00 68 50 80 0D 03 02 00 00 00 00 33 [07:58:26]Write i2c OK [07:58:26]MH_I2C_Read... [07:58:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:58:26]Read from MH i2c: E2 [07:58:26]MH_I2C_Read... [07:58:26]Read from MH i2c: E2 0B 00 [07:58:26]MH_I2C_Read... [07:58:26]Read from MH i2c: E2 0B 00 68 50 00 DD 1E 0D 16 46 F5 7F EE 90 00 FA [07:58:26]RAPDU: DD 1E 0D 16 46 F5 7F EE 90 00 [07:58:26]wFMCommunicate OK [07:58:26]SAM_PROTO_SignData done [07:58:26]FM_MakeSignedData done [07:58:26]CreateOFDProtocolMessage [07:58:26]wFMCommunicate request_size=4 [07:58:26]MH_SAM_APDU [07:58:26]CAPDU: 80 11 00 00 [07:58:26]Write to MH i2c: E2 08 00 69 50 80 11 00 00 00 00 00 00 33 [07:58:26]Write i2c OK [07:58:26]MH_I2C_Read... [07:58:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:26]Read from MH i2c: E2 [07:58:26]MH_I2C_Read... [07:58:26]Read from MH i2c: E2 17 00 [07:58:26]MH_I2C_Read... [07:58:26]Read from MH i2c: E2 17 00 69 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 80 [07:58:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [07:58:26]wFMCommunicate OK [07:58:26]CreateOFDProtocolMessage done [07:58:26]OFDSenderStorePacket 260516 [07:58:26]StoreOFDPacket docnum=260516 [07:58:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 8C 66 07 01 1A 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4A 00 00 00 F4 03 04 00 A4 A9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A4 F9 03 00 35 04 06 00 4F 47 42 00 E5 26 DD 1E 0D 16 46 F5 7F EE [07:58:26]CheckFolder [07:58:26]dirname=/storage/ofd_packets [07:58:26]CheckFolder done [07:58:26]ProducePacketName [07:58:26]name=ofd_packets/00260516 [07:58:26]NVStorageSaveData ofd_packets/00260516 [07:58:26]File name is /storage/ofd_packets/00260516 [07:58:26]Write 301 bytes [07:58:26]NVStorageSaveData done [07:58:26]OFDSenderStorePacket done [07:58:26]KKMCreateOFDPacket done [07:58:26]NVStorageSaveData kkm_last_timestamp [07:58:26]File name is /storage/kkm_last_timestamp [07:58:26]Write 4 bytes [07:58:26]NVStorageSaveData done [07:58:26]ExternCall_PrintAddStr [07:58:26]wPrintStart [07:58:26]Write to MH i2c: 01 00 00 6A 50 BA [07:58:26]Write i2c OK [07:58:26]MH_I2C_Read... [07:58:26]Read from MH i2c: 01 [07:58:26]MH_I2C_Read... [07:58:26]Read from MH i2c: 01 07 00 [07:58:26]MH_I2C_Read... [07:58:26]Read from MH i2c: 01 07 00 6A 50 00 00 00 00 00 FF 0F CF [07:58:26]RasterBufferAndPrint [07:58:26]line Счет N : (1)1036059 [07:58:26]line ИНН: 02508201610067 [07:58:26]line Контрольно-Кассовый Чек [07:58:26]line ПРОДАЖА [07:58:26]line ТРК (МРК, ГНК) : 32 [07:58:26]line Товар: 2710124130 [07:58:26]line Аи-92-К-5 [07:58:26]line 7.380 * 67.80 [07:58:26]line = 500.36 [07:58:26]line НДС 12% НСП 1% [07:58:26]line > о реализуемом товаре [07:58:26]line ОКРУГЛЕНИЕ: -0.36 [07:58:26]line ИТОГО: 500.00 [07:58:26]line Внесено: 500.00 [07:58:26]line СДАЧА: 0.00 [07:58:26]line НСП 1% : 4.43 [07:58:26]line НДС 12% : 53.14 [07:58:26]line Наличными: 500.00 [07:58:26]line Безнал.: 0.00 [07:58:26]line Место: АЗС № 94 "Партнер Нефть" [07:58:26]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [07:58:26]line СНО: Общий режим [07:58:26]line Чек 74 18.08.2024 07:58 [07:58:26]line Смена: 449 ФФД: 1.0 [07:58:26]line ЗНМ: 0300000099 [07:58:26]line РНМ: 0000000000091865 [07:58:26]line Версия ККМ: 001 [07:58:26]line ФМ: 0000000000871820 [07:58:26]line ФД: 260516 [07:58:26]line ФПД: 87167468627238 [07:58:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T075828&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260516&fm=87167468627238&tin=02508201610067®Number=0000000000091865&sum=50000 [07:58:26]OFD Sender: Processing packet 260516 [packets to send 192, broken 191] [07:58:26]ProducePacketName [07:58:26]name=ofd_packets/00260516 [07:58:26]OFD Sender: To server: pG, [07:58:26]CommunicateWithHost lk.salyk.kg:30040 [07:58:26]ConnectInit lk.salyk.kg [07:58:26]written 0, free lines is 4095 [07:58:26]Connected sock=9 [07:58: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 30 0F 01 00 00 8C 66 07 01 1A 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4A 00 00 00 F4 03 04 00 A4 A9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A4 F9 03 00 35 04 06 00 4F 47 42 00 E5 26 DD 1E 0D 16 46 F5 7F EE [07:58: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 30 4F 00 00 00 EA 0F 47 00 01 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 30 10 04 04 00 A4 F9 03 00 F4 03 04 00 FA 52 C1 66 B6 04 01 00 00 1F 4D 56 6D 61 08 69 16 [07:58:26]CommunicateWithHost err = 0 [07:58:26]CheckOFDResponse [07:58:26]1017 (14) - 77093643461234 [07:58:26]1041 (16) - 0000000000871820 [07:58:26]1040 (4) - 260516 [07:58:26]1012 (4) - 18.08.2024 01:48 [07:58:26]1206 (1) - 0 [07:58:26]OFD Sender: Remove packet 260516 [07:58:26]ProducePacketName [07:58:26]name=ofd_packets/00260516 [07:58:26]NVStorageDeleteData [07:58:27]Write to MH i2c: 01 00 00 95 50 E5 [07:58:27]Write i2c OK [07:58:27]MH_I2C_Read... [07:58:27]Read from MH i2c: 01 [07:58:27]MH_I2C_Read... [07:58:27]Read from MH i2c: 01 07 00 [07:58:27]MH_I2C_Read... [07:58:27]Read from MH i2c: 01 07 00 95 50 00 00 00 00 00 6A 0C 62 [07:58:27]RasterBufferAndPrint [07:58:27]line [07:58:27]line [07:58:27]line [07:58:27]line [07:58:27]line [07:58:27]written 0, free lines is 3181 [07:58:27]MH_Cut [07:58:27]Write to MH i2c: D1 01 00 9C 50 01 BE [07:58:27]Write i2c OK [07:58:27]MH_I2C_Read... [07:58:27]Read from MH i2c: D1 [07:58:27]MH_I2C_Read... [07:58:27]Read from MH i2c: D1 01 00 [07:58:27]MH_I2C_Read... [07:58:27]Read from MH i2c: D1 01 00 9C 50 00 BD [07:58:27]Write to MH i2c: 01 00 00 9D 50 ED [07:58:27]Write i2c OK [07:58:27]MH_I2C_Read... [07:58:27]OFD Sender: No OFD packet to send [07:58:28]*** Cut start [07:58:28]*** Purtial cut [07:58:28]*** Stage 1: CUTSNS_PIN = 1 [07:58:30]Read from MH i2c: 01 [07:58:30]MH_I2C_Read... [07:58:30]*** Stop cut motor [07:58:30]*** Cut end [07:58:30]Read from MH i2c: 01 07 00 [07:58:30]MH_I2C_Read... [07:58:30]Read from MH i2c: 01 07 00 9D 50 00 00 00 00 00 FF 0F 02 [07:58:30]process_action close_receipt done [07:58:30]requested_data is exist [07:58:30]produce_requested_data [07:58:30]requested_item fm.sn is exist - process it [07:58:30]wFMCommunicate request_size=4 [07:58:30]MH_SAM_APDU [07:58:30]CAPDU: 80 11 00 00 [07:58:30]Write to MH i2c: E2 08 00 9E 50 80 11 00 00 00 00 00 00 68 [07:58:30]Write i2c OK [07:58:30]MH_I2C_Read... [07:58:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:30]Read from MH i2c: E2 [07:58:30]MH_I2C_Read... [07:58:30]Read from MH i2c: E2 17 00 [07:58:30]MH_I2C_Read... [07:58:30]Read from MH i2c: E2 17 00 9E 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B5 [07:58:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [07:58:30]wFMCommunicate OK [07:58:30]requested_item fd.num is exist - process it [07:58:30]SAM_PROTO_GetFieldsCounters [07:58:30]wFMCommunicate request_size=4 [07:58:30]MH_SAM_APDU [07:58:30]CAPDU: 80 13 00 00 [07:58:30]Write to MH i2c: E2 08 00 9F 50 80 13 00 00 00 00 00 00 6B [07:58:30]Write i2c OK [07:58:30]MH_I2C_Read... [07:58:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:58:30]Read from MH i2c: E2 [07:58:30]MH_I2C_Read... [07:58:30]Read from MH i2c: E2 62 00 [07:58:30]MH_I2C_Read... [07:58:30]Read from MH i2c: E2 62 00 9F 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A4 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [07:58: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A4 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:58:30]wFMCommunicate OK [07:58:30]SAM_PROTO_GetFieldsCounters done [07:58:30]requested_item shift.num is exist - process it [07:58:30]requested_item shift.opened is exist - process it [07:58:30]req_shift_opened [07:58:30]FM_GetShiftState [07:58:30]SAM_PROTO_GetShiftState [07:58:30]wFMCommunicate request_size=4 [07:58:30]MH_SAM_APDU [07:58:30]CAPDU: 80 13 01 00 [07:58:30]Write to MH i2c: E2 08 00 A0 50 80 13 01 00 00 00 00 00 6D [07:58:30]Write i2c OK [07:58:30]MH_I2C_Read... [07:58:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:30]Read from MH i2c: E2 [07:58:30]MH_I2C_Read... [07:58:30]Read from MH i2c: E2 0E 00 [07:58:30]MH_I2C_Read... [07:58:30]Read from MH i2c: E2 0E 00 A0 50 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 AA [07:58:30]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [07:58:30]wFMCommunicate OK [07:58:30]SAM_PROTO_GetShiftState done [07:58:30]FM_GetShiftState done [07:58:30]req_shift_opened done [07:58:30]requested_item shift.open_date is exist - process it [07:58:30]req_shift_open_date [07:58:30]req_shift_open_date done [07:58:30]produce_requested_data done [07:58:30]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260516,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [07:58:30]process_action_free close_receipt [07:58:30]json_value_free [07:58:30]json_value_free done [07:58:30]process_json_proto returns [07:58:30]Send response to host [07:58:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260516,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [07:58:30]free response buf [07:58:30]execute_script done [07:58:30]execute_script returns [07:58:30]free content buf [07:58:30]Sock 10.Close socket [07:58:30]Sock 10.Thread stoped [07:58:30]accept exits with 7 [07:58:30]New connection [07:58:30]New thread 3066617188 created [07:58:30]Thread 3066473828 joined [07:58:30]Waiting for new connection... [07:58:30] Sock 7.Parse request [07:58:30]Sock 7.Check first char [07:58:30]Sock 7.First char is OK [07:58:30]request: POST /json_proto HTTP/1.0 [07:58:30]Method: POST [07:58:30]URL: /json_proto [07:58:30]Method is POST - this is cgi request [07:58:30]url: /json_proto [07:58:30]query_string will be loaded in cgi processing [07:58:30]execute_cgi json_proto POST (null) [07:58:30]execute_cgi path=json_proto method=POST [07:58:30]POST find Content-Length [07:58:30]Host: 172.17.55.133:8080 [07:58:30]Content-Length: 804 [07:58:30]Content-Type: application/json [07:58:30] [07:58:30]POST finish read [07:58:30]Found Content-Length = 804 [07:58:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036060", "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" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:58:30]execute_script... [07:58: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)1036060", "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" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:58:30]POST & json_proto [07:58:30]process_json_proto [07:58:30]json parsed OK: [07:58:30]protocol is kg_v1.0 [07:58:30]action value=close_receipt [07:58:30]process_action close_receipt [07:58:30]cmd_close_receipt [07:58:30]MH_GetDate [07:58:30]Write to MH i2c: F0 00 00 A1 50 E0 [07:58:30]Write i2c OK [07:58:30]MH_I2C_Read... [07:58:30]Read from MH i2c: F0 [07:58:30]MH_I2C_Read... [07:58:30]Read from MH i2c: F0 09 00 [07:58:30]MH_I2C_Read... [07:58:30]Read from MH i2c: F0 09 00 A1 50 00 AA A9 C1 66 34 48 D8 65 1C [07:58:30]GetLastDocTimeStamp 1723967908 [07:58:30]current date 1723967914 [07:58:30]FM_GetShiftState [07:58:30]SAM_PROTO_GetShiftState [07:58:30]wFMCommunicate request_size=4 [07:58:30]MH_SAM_APDU [07:58:30]CAPDU: 80 13 01 00 [07:58:30]Write to MH i2c: E2 08 00 A2 50 80 13 01 00 00 00 00 00 6F [07:58:30]Write i2c OK [07:58:30]MH_I2C_Read... [07:58:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:31]Read from MH i2c: E2 [07:58:31]MH_I2C_Read... [07:58:31]Read from MH i2c: E2 0E 00 [07:58:31]MH_I2C_Read... [07:58:31]Read from MH i2c: E2 0E 00 A2 50 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 AC [07:58:31]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [07:58:31]wFMCommunicate OK [07:58:31]SAM_PROTO_GetShiftState done [07:58:31]FM_GetShiftState done [07:58:31]opened in 1723940556 [07:58:31]opened+sec_in_day 1724026956 [07:58:31]quantity*price = 150032 [07:58:31]sum+1 = 150033 [07:58:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.32 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.32 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 75 18.08.2024 07:58 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260517 ФПД: 274312518549311 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T075834&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260517&fm=274312518549311&tin=02508201610067®Number=0000000000091865&sum=150032 [07:58:32]StoreToDocumentArchive [07:58:32]shift 449 fd 260517 [07:58:32]save to /storage/0449/doc_00260517 [07:58:32]save last doc name /storage/0449/doc_00260517 to /storage/kkm_last_doc_name [07:58:32]save OK [07:58:32]Clear old archive folders... [07:58:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:58:32]tlvbuf is 00519640 [07:58:32]SAM_PROTO_ClearQueue [07:58:32]wFMCommunicate request_size=4 [07:58:32]MH_SAM_APDU [07:58:32]CAPDU: 80 09 00 00 [07:58:32]Write to MH i2c: E2 08 00 AF 50 80 09 00 00 00 00 00 00 71 [07:58:32]Write i2c OK [07:58:32]MH_I2C_Read... [07:58:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:58:32]OFD Sender: No OFD packet to send [07:58:32]Read from MH i2c: E2 [07:58:32]MH_I2C_Read... [07:58:32]Read from MH i2c: E2 03 00 [07:58:32]MH_I2C_Read... [07:58:32]Read from MH i2c: E2 03 00 AF 50 00 90 00 73 [07:58:32]RAPDU: 90 00 [07:58:32]wFMCommunicate OK [07:58:32]SAM_PROTO_ClearQueue done [07:58:32]KKMCreateOFDPacket [07:58:32]OFDProtocolAddRootSTLVToBuf [07:58:32]FM_MakeSignedData [07:58:32]FM_MakeSignedData [07:58:32]SAM_PROTO_SignData [07:58:32]wFMCommunicate request_size=4 [07:58:32]MH_SAM_APDU [07:58:32]CAPDU: 80 0D 01 02 [07:58:32]Write to MH i2c: E2 08 00 B0 50 80 0D 01 02 00 00 00 00 79 [07:58:32]Write i2c OK [07:58:32]MH_I2C_Read... [07:58:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:58:32]Read from MH i2c: E2 [07:58:32]MH_I2C_Read... [07:58:32]Read from MH i2c: E2 03 00 [07:58:32]MH_I2C_Read... [07:58:32]Read from MH i2c: E2 03 00 B0 50 00 90 00 74 [07:58:32]RAPDU: 90 00 [07:58:32]wFMCommunicate OK [07:58:32]wFMCommunicate request_size=255 [07:58:32]MH_SAM_APDU [07:58: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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 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 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 AA A9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A5 F9 03 00 35 04 06 00 F9 [07:58:32]Write to MH i2c: E2 02 01 B1 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 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 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 AA A9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A5 F9 03 00 35 04 06 00 F9 00 00 CC [07:58:32]Write i2c OK [07:58:32]MH_I2C_Read... [07:58:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:32]Read from MH i2c: E2 [07:58:32]MH_I2C_Read... [07:58:32]Read from MH i2c: E2 03 00 [07:58:32]MH_I2C_Read... [07:58:32]Read from MH i2c: E2 03 00 B1 50 00 90 00 75 [07:58:32]RAPDU: 90 00 [07:58:32]wFMCommunicate OK [07:58:32]wFMCommunicate request_size=10 [07:58:32]MH_SAM_APDU [07:58:32]CAPDU: 80 0D 02 02 05 7C 5C 39 BF 3F [07:58:32]Write to MH i2c: E2 0D 00 B2 50 80 0D 02 02 05 00 7C 5C 39 BF 3F 00 00 95 [07:58:32]Write i2c OK [07:58:32]MH_I2C_Read... [07:58:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:32]Read from MH i2c: E2 [07:58:32]MH_I2C_Read... [07:58:32]Read from MH i2c: E2 03 00 [07:58:32]MH_I2C_Read... [07:58:32]Read from MH i2c: E2 03 00 B2 50 00 90 00 76 [07:58:32]RAPDU: 90 00 [07:58:32]wFMCommunicate OK [07:58:32]wFMCommunicate request_size=4 [07:58:32]MH_SAM_APDU [07:58:32]CAPDU: 80 0D 03 02 [07:58:32]Write to MH i2c: E2 08 00 B3 50 80 0D 03 02 00 00 00 00 7E [07:58:32]Write i2c OK [07:58:32]MH_I2C_Read... [07:58:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:58:32]Read from MH i2c: E2 [07:58:32]MH_I2C_Read... [07:58:32]Read from MH i2c: E2 0B 00 [07:58:32]MH_I2C_Read... [07:58:32]Read from MH i2c: E2 0B 00 B3 50 00 3A 1A 02 72 4A 15 E7 B1 90 00 3E [07:58:32]RAPDU: 3A 1A 02 72 4A 15 E7 B1 90 00 [07:58:32]wFMCommunicate OK [07:58:32]SAM_PROTO_SignData done [07:58:32]FM_MakeSignedData done [07:58:32]CreateOFDProtocolMessage [07:58:32]wFMCommunicate request_size=4 [07:58:32]MH_SAM_APDU [07:58:32]CAPDU: 80 11 00 00 [07:58:32]Write to MH i2c: E2 08 00 B4 50 80 11 00 00 00 00 00 00 7E [07:58:32]Write i2c OK [07:58:32]MH_I2C_Read... [07:58:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:32]Read from MH i2c: E2 [07:58:32]MH_I2C_Read... [07:58:32]Read from MH i2c: E2 17 00 [07:58:32]MH_I2C_Read... [07:58:33]Read from MH i2c: E2 17 00 B4 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 CB [07:58:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [07:58:33]wFMCommunicate OK [07:58:33]CreateOFDProtocolMessage done [07:58:33]OFDSenderStorePacket 260517 [07:58:33]StoreOFDPacket docnum=260517 [07:58:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 41 98 07 01 06 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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 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 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 AA A9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A5 F9 03 00 35 04 06 00 F9 7C 5C 39 BF 3F 3A 1A 02 72 4A 15 E7 B1 [07:58:33]CheckFolder [07:58:33]dirname=/storage/ofd_packets [07:58:33]CheckFolder done [07:58:33]ProducePacketName [07:58:33]name=ofd_packets/00260517 [07:58:33]NVStorageSaveData ofd_packets/00260517 [07:58:33]File name is /storage/ofd_packets/00260517 [07:58:33]Write 301 bytes [07:58:33]NVStorageSaveData done [07:58:33]OFDSenderStorePacket done [07:58:33]KKMCreateOFDPacket done [07:58:33]NVStorageSaveData kkm_last_timestamp [07:58:33]File name is /storage/kkm_last_timestamp [07:58:33]Write 4 bytes [07:58:33]NVStorageSaveData done [07:58:33]ExternCall_PrintAddStr [07:58:33]wPrintStart [07:58:33]Write to MH i2c: 01 00 00 B5 50 05 [07:58:33]Write i2c OK [07:58:33]MH_I2C_Read... [07:58:33]Read from MH i2c: 01 [07:58:33]MH_I2C_Read... [07:58:33]Read from MH i2c: 01 07 00 [07:58:33]MH_I2C_Read... [07:58:33]Read from MH i2c: 01 07 00 B5 50 00 00 00 00 00 FF 0F 1A [07:58:33]RasterBufferAndPrint [07:58:33]line Счет N : (1)1036060 [07:58:33]line ИНН: 02508201610067 [07:58:33]line Контрольно-Кассовый Чек [07:58:33]line ПРОДАЖА [07:58:33]line ТРК (МРК, ГНК) : 13 [07:58:33]line Товар: 2710124500 [07:58:33]line Аи-95-К-5 [07:58:33]line 20.220 * 74.20 [07:58:33]line = 1500.32 [07:58:33]line НДС 12% НСП 1% [07:58:33]line > о реализуемом товаре [07:58:33]line ИТОГО: 1500.32 [07:58:33]line НСП 1% : 13.28 [07:58:33]line НДС 12% : 159.33 [07:58:33]line Наличными: 0.00 [07:58:33]line Безнал.: 1500.32 [07:58:33]line Место: АЗС № 94 "Партнер Нефть" [07:58:33]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [07:58:33]line СНО: Общий режим [07:58:33]line Чек 75 18.08.2024 07:58 [07:58:33]line Смена: 449 ФФД: 1.0 [07:58:33]line ЗНМ: 0300000099 [07:58:33]line РНМ: 0000000000091865 [07:58:33]line Версия ККМ: 001 [07:58:33]line Платежная система: O! деньги [07:58:33]line ФМ: 0000000000871820 [07:58:33]line ФД: 260517 [07:58:33]line ФПД: 274312518549311 [07:58:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T075834&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260517&fm=274312518549311&tin=02508201610067®Number=0000000000091865&sum=150032 [07:58:33]OFD Sender: Processing packet 260517 [packets to send 192, broken 191] [07:58:33]ProducePacketName [07:58:33]name=ofd_packets/00260517 [07:58:33]OFD Sender: To server: pG, [07:58:33]CommunicateWithHost lk.salyk.kg:30040 [07:58:33]ConnectInit lk.salyk.kg [07:58:33]written 0, free lines is 4095 [07:58:33]Connected sock=10 [07:58: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 30 0F 01 00 00 41 98 07 01 06 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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 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 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 AA A9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A5 F9 03 00 35 04 06 00 F9 7C 5C 39 BF 3F 3A 1A 02 72 4A 15 E7 B1 [07:58: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 30 4F 00 00 00 74 2F 47 00 87 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A5 F9 03 00 F4 03 04 00 00 53 C1 66 B6 04 01 00 00 29 DA 0C 54 FC 58 C5 4F [07:58:33]CommunicateWithHost err = 0 [07:58:33]CheckOFDResponse [07:58:33]1017 (14) - 77093643461234 [07:58:33]1041 (16) - 0000000000871820 [07:58:33]1040 (4) - 260517 [07:58:33]1012 (4) - 18.08.2024 01:48 [07:58:33]1206 (1) - 0 [07:58:33]OFD Sender: Remove packet 260517 [07:58:33]ProducePacketName [07:58:33]name=ofd_packets/00260517 [07:58:33]NVStorageDeleteData [07:58:33]Write to MH i2c: 01 00 00 DF 50 2F [07:58:33]Write i2c OK [07:58:33]MH_I2C_Read... [07:58:33]Read from MH i2c: 01 [07:58:33]MH_I2C_Read... [07:58:33]Read from MH i2c: 01 07 00 [07:58:33]MH_I2C_Read... [07:58:33]Read from MH i2c: 01 07 00 DF 50 00 00 00 00 00 84 0C C6 [07:58:33]RasterBufferAndPrint [07:58:33]line [07:58:33]line [07:58:33]line [07:58:33]line [07:58:33]line [07:58:33]written 0, free lines is 3210 [07:58:33]MH_Cut [07:58:33]Write to MH i2c: D1 01 00 E6 50 01 08 [07:58:33]Write i2c OK [07:58:33]MH_I2C_Read... [07:58:33]Read from MH i2c: D1 [07:58:33]MH_I2C_Read... [07:58:33]Read from MH i2c: D1 01 00 [07:58:33]MH_I2C_Read... [07:58:33]Read from MH i2c: D1 01 00 E6 50 00 07 [07:58:33]Write to MH i2c: 01 00 00 E7 50 37 [07:58:33]Write i2c OK [07:58:33]MH_I2C_Read... [07:58:34]OFD Sender: No OFD packet to send [07:58:34]*** Cut start [07:58:34]*** Purtial cut [07:58:34]*** Stage 1: CUTSNS_PIN = 1 [07:58:36]Read from MH i2c: 01 [07:58:36]MH_I2C_Read... [07:58:36]*** Stop cut motor [07:58:36]*** Cut end [07:58:36]Read from MH i2c: 01 07 00 [07:58:36]MH_I2C_Read... [07:58:36]Read from MH i2c: 01 07 00 E7 50 00 00 00 00 00 FF 0F 4C [07:58:36]process_action close_receipt done [07:58:36]requested_data is exist [07:58:36]produce_requested_data [07:58:36]requested_item fm.sn is exist - process it [07:58:36]wFMCommunicate request_size=4 [07:58:36]MH_SAM_APDU [07:58:36]CAPDU: 80 11 00 00 [07:58:36]Write to MH i2c: E2 08 00 E8 50 80 11 00 00 00 00 00 00 B2 [07:58:37]Write i2c OK [07:58:37]MH_I2C_Read... [07:58:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:37]Read from MH i2c: E2 [07:58:37]MH_I2C_Read... [07:58:37]Read from MH i2c: E2 17 00 [07:58:37]MH_I2C_Read... [07:58:37]Read from MH i2c: E2 17 00 E8 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 FF [07:58:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [07:58:37]wFMCommunicate OK [07:58:37]requested_item fd.num is exist - process it [07:58:37]SAM_PROTO_GetFieldsCounters [07:58:37]wFMCommunicate request_size=4 [07:58:37]MH_SAM_APDU [07:58:37]CAPDU: 80 13 00 00 [07:58:37]Write to MH i2c: E2 08 00 E9 50 80 13 00 00 00 00 00 00 B5 [07:58:37]Write i2c OK [07:58:37]MH_I2C_Read... [07:58:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:58:37]Read from MH i2c: E2 [07:58:37]MH_I2C_Read... [07:58:37]Read from MH i2c: E2 62 00 [07:58:37]MH_I2C_Read... [07:58:37]Read from MH i2c: E2 62 00 E9 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A5 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [07: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A5 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:58:37]wFMCommunicate OK [07:58:37]SAM_PROTO_GetFieldsCounters done [07:58:37]requested_item shift.num is exist - process it [07:58:37]requested_item shift.opened is exist - process it [07:58:37]req_shift_opened [07:58:37]FM_GetShiftState [07:58:37]SAM_PROTO_GetShiftState [07:58:37]wFMCommunicate request_size=4 [07:58:37]MH_SAM_APDU [07:58:37]CAPDU: 80 13 01 00 [07:58:37]Write to MH i2c: E2 08 00 EA 50 80 13 01 00 00 00 00 00 B7 [07:58:37]Write i2c OK [07:58:37]MH_I2C_Read... [07:58:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:37]Read from MH i2c: E2 [07:58:37]MH_I2C_Read... [07:58:37]Read from MH i2c: E2 0E 00 [07:58:37]MH_I2C_Read... [07:58:37]Read from MH i2c: E2 0E 00 EA 50 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F4 [07:58:37]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [07:58:37]wFMCommunicate OK [07:58:37]SAM_PROTO_GetShiftState done [07:58:37]FM_GetShiftState done [07:58:37]req_shift_opened done [07:58:37]requested_item shift.open_date is exist - process it [07:58:37]req_shift_open_date [07:58:37]req_shift_open_date done [07:58:37]produce_requested_data done [07:58:37]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260517,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [07:58:37]process_action_free close_receipt [07:58:37]json_value_free [07:58:37]json_value_free done [07:58:37]process_json_proto returns [07:58:37]Send response to host [07:58:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260517,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [07:58:37]free response buf [07:58:37]execute_script done [07:58:37]execute_script returns [07:58:37]free content buf [07:58:37]Sock 7.Close socket [07:58:37]Sock 7.Thread stoped [07:58:39]OFD Sender: No OFD packet to send [07:58:44]OFD Sender: No OFD packet to send [07:58:49]OFD Sender: No OFD packet to send [07:58:54]OFD Sender: No OFD packet to send [07:58:59]OFD Sender: No OFD packet to send [07:59:04]OFD Sender: No OFD packet to send [07:59:06]accept exits with 9 [07:59:06]New connection [07:59:06]New thread 3066473828 created [07:59:06]Thread 3066617188 joined [07:59:06]Waiting for new connection... [07:59:06] Sock 9.Parse request [07:59:06]Sock 9.Check first char [07:59:06]Sock 9.First char is OK [07:59:06]request: POST /json_proto HTTP/1.0 [07:59:06]Method: POST [07:59:06]URL: /json_proto [07:59:06]Method is POST - this is cgi request [07:59:06]url: /json_proto [07:59:06]query_string will be loaded in cgi processing [07:59:06]execute_cgi json_proto POST (null) [07:59:06]execute_cgi path=json_proto method=POST [07:59:06]POST find Content-Length [07:59:06]Host: 172.17.55.133:8080 [07:59:06]Content-Length: 809 [07:59:06]Content-Type: application/json [07:59:06] [07:59:06]POST finish read [07:59:06]Found Content-Length = 809 [07:59:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:59:06]execute_script... [07:59: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)1036061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:59:06]POST & json_proto [07:59:06]process_json_proto [07:59:06]json parsed OK: [07:59:06]protocol is kg_v1.0 [07:59:06]action value=close_receipt [07:59:06]process_action close_receipt [07:59:06]cmd_close_receipt [07:59:06]MH_GetDate [07:59:06]Write to MH i2c: F0 00 00 EB 50 2A [07:59:06]Write i2c OK [07:59:06]MH_I2C_Read... [07:59:06]Read from MH i2c: F0 [07:59:06]MH_I2C_Read... [07:59:06]Read from MH i2c: F0 09 00 [07:59:06]MH_I2C_Read... [07:59:06]Read from MH i2c: F0 09 00 EB 50 00 CE A9 C1 66 34 48 D8 65 8A [07:59:06]GetLastDocTimeStamp 1723967914 [07:59:06]current date 1723967950 [07:59:06]FM_GetShiftState [07:59:06]SAM_PROTO_GetShiftState [07:59:06]wFMCommunicate request_size=4 [07:59:06]MH_SAM_APDU [07:59:06]CAPDU: 80 13 01 00 [07:59:06]Write to MH i2c: E2 08 00 EC 50 80 13 01 00 00 00 00 00 B9 [07:59:06]Write i2c OK [07:59:06]MH_I2C_Read... [07:59:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:06]Read from MH i2c: E2 [07:59:06]MH_I2C_Read... [07:59:06]Read from MH i2c: E2 0E 00 [07:59:06]MH_I2C_Read... [07:59:06]Read from MH i2c: E2 0E 00 EC 50 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F6 [07:59:06]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [07:59:06]wFMCommunicate OK [07:59:06]SAM_PROTO_GetShiftState done [07:59:06]FM_GetShiftState done [07:59:06]opened in 1723940556 [07:59:06]opened+sec_in_day 1724026956 [07:59:06]quantity*price = 100050 [07:59:06]sum+1 = 100052 [07:59:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 76 18.08.2024 07:59 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260518 ФПД: 252745175295641 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T075910&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260518&fm=252745175295641&tin=02508201610067®Number=0000000000091865&sum=100051 [07:59:07]StoreToDocumentArchive [07:59:07]shift 449 fd 260518 [07:59:07]save to /storage/0449/doc_00260518 [07:59:07]save last doc name /storage/0449/doc_00260518 to /storage/kkm_last_doc_name [07:59:07]save OK [07:59:07]Clear old archive folders... [07:59:07]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:59:07]tlvbuf is 00332AA0 [07:59:07]SAM_PROTO_ClearQueue [07:59:07]wFMCommunicate request_size=4 [07:59:07]MH_SAM_APDU [07:59:07]CAPDU: 80 09 00 00 [07:59:07]Write to MH i2c: E2 08 00 F9 50 80 09 00 00 00 00 00 00 BB [07:59:07]Write i2c OK [07:59:07]MH_I2C_Read... [07:59:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:59:07]Read from MH i2c: E2 [07:59:07]MH_I2C_Read... [07:59:07]Read from MH i2c: E2 03 00 [07:59:07]MH_I2C_Read... [07:59:07]Read from MH i2c: E2 03 00 F9 50 00 90 00 BD [07:59:07]RAPDU: 90 00 [07:59:07]wFMCommunicate OK [07:59:07]SAM_PROTO_ClearQueue done [07:59:07]KKMCreateOFDPacket [07:59:07]OFDProtocolAddRootSTLVToBuf [07:59:07]FM_MakeSignedData [07:59:07]FM_MakeSignedData [07:59:07]SAM_PROTO_SignData [07:59:07]wFMCommunicate request_size=4 [07:59:07]MH_SAM_APDU [07:59:07]CAPDU: 80 0D 01 02 [07:59:07]Write to MH i2c: E2 08 00 FA 50 80 0D 01 02 00 00 00 00 C3 [07:59:07]Write i2c OK [07:59:07]MH_I2C_Read... [07:59:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:59:07]Read from MH i2c: E2 [07:59:07]MH_I2C_Read... [07:59:07]Read from MH i2c: E2 03 00 [07:59:07]MH_I2C_Read... [07:59:07]Read from MH i2c: E2 03 00 FA 50 00 90 00 BE [07:59:07]RAPDU: 90 00 [07:59:07]wFMCommunicate OK [07:59:07]wFMCommunicate request_size=255 [07:59:07]MH_SAM_APDU [07:59:07]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 CE A9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A6 F9 03 00 35 04 06 00 [07:59:07]Write to MH i2c: E2 02 01 FB 50 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 CE A9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A6 F9 03 00 35 04 06 00 00 00 E1 [07:59:07]Write i2c OK [07:59:07]MH_I2C_Read... [07:59:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:07]Read from MH i2c: E2 [07:59:07]MH_I2C_Read... [07:59:07]Read from MH i2c: E2 03 00 [07:59:07]MH_I2C_Read... [07:59:07]Read from MH i2c: E2 03 00 FB 50 00 90 00 BF [07:59:07]RAPDU: 90 00 [07:59:07]wFMCommunicate OK [07:59:07]wFMCommunicate request_size=11 [07:59:07]MH_SAM_APDU [07:59:07]CAPDU: 80 0D 02 02 06 E5 DE D2 64 66 99 [07:59:07]Write to MH i2c: E2 0E 00 FC 50 80 0D 02 02 06 00 E5 DE D2 64 66 99 00 00 CA [07:59:07]Write i2c OK [07:59:07]MH_I2C_Read... [07:59:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:08]Read from MH i2c: E2 [07:59:08]MH_I2C_Read... [07:59:08]Read from MH i2c: E2 03 00 [07:59:08]MH_I2C_Read... [07:59:08]Read from MH i2c: E2 03 00 FC 50 00 90 00 C0 [07:59:08]RAPDU: 90 00 [07:59:08]wFMCommunicate OK [07:59:08]wFMCommunicate request_size=4 [07:59:08]MH_SAM_APDU [07:59:08]CAPDU: 80 0D 03 02 [07:59:08]Write to MH i2c: E2 08 00 FD 50 80 0D 03 02 00 00 00 00 C8 [07:59:08]Write i2c OK [07:59:08]MH_I2C_Read... [07:59:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:59:08]Read from MH i2c: E2 [07:59:08]MH_I2C_Read... [07:59:08]Read from MH i2c: E2 0B 00 [07:59:08]MH_I2C_Read... [07:59:08]Read from MH i2c: E2 0B 00 FD 50 00 73 0F 8E 70 E9 73 2B 3D 90 00 0D [07:59:08]RAPDU: 73 0F 8E 70 E9 73 2B 3D 90 00 [07:59:08]wFMCommunicate OK [07:59:08]SAM_PROTO_SignData done [07:59:08]FM_MakeSignedData done [07:59:08]CreateOFDProtocolMessage [07:59:08]wFMCommunicate request_size=4 [07:59:08]MH_SAM_APDU [07:59:08]CAPDU: 80 11 00 00 [07:59:08]Write to MH i2c: E2 08 00 FE 50 80 11 00 00 00 00 00 00 C8 [07:59:08]Write i2c OK [07:59:08]MH_I2C_Read... [07:59:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:08]Read from MH i2c: E2 [07:59:08]MH_I2C_Read... [07:59:08]Read from MH i2c: E2 17 00 [07:59:08]MH_I2C_Read... [07:59:08]Read from MH i2c: E2 17 00 FE 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 15 [07:59:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [07:59:08]wFMCommunicate OK [07:59:08]CreateOFDProtocolMessage done [07:59:08]OFDSenderStorePacket 260518 [07:59:08]StoreOFDPacket docnum=260518 [07:59:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 55 72 08 01 DE 00 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 CE A9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A6 F9 03 00 35 04 06 00 E5 DE D2 64 66 99 73 0F 8E 70 E9 73 2B 3D [07:59:08]CheckFolder [07:59:08]dirname=/storage/ofd_packets [07:59:08]CheckFolder done [07:59:08]ProducePacketName [07:59:08]name=ofd_packets/00260518 [07:59:08]NVStorageSaveData ofd_packets/00260518 [07:59:08]File name is /storage/ofd_packets/00260518 [07:59:08]Write 302 bytes [07:59:08]NVStorageSaveData done [07:59:08]OFDSenderStorePacket done [07:59:08]KKMCreateOFDPacket done [07:59:08]NVStorageSaveData kkm_last_timestamp [07:59:08]File name is /storage/kkm_last_timestamp [07:59:08]Write 4 bytes [07:59:08]NVStorageSaveData done [07:59:08]ExternCall_PrintAddStr [07:59:08]wPrintStart [07:59:08]Write to MH i2c: 01 00 00 FF 50 4F [07:59:08]Write i2c OK [07:59:08]MH_I2C_Read... [07:59:08]Read from MH i2c: 01 [07:59:08]MH_I2C_Read... [07:59:08]Read from MH i2c: 01 07 00 [07:59:08]MH_I2C_Read... [07:59:08]Read from MH i2c: 01 07 00 FF 50 00 00 00 00 00 FF 0F 64 [07:59:08]RasterBufferAndPrint [07:59:08]line Счет N : (1)1036061 [07:59:08]line ИНН: 02508201610067 [07:59:08]line Контрольно-Кассовый Чек [07:59:08]line ПРОДАЖА [07:59:08]line ТРК (МРК, ГНК) : 43 [07:59:08]line Товар: 2710194210 [07:59:08]line ДТ(л)-К-4 [07:59:08]line 13.130 * 76.20 [07:59:08]line = 1000.51 [07:59:08]line НДС 12% НСП 1% [07:59:08]line > о реализуемом товаре [07:59:08]line ИТОГО: 1000.51 [07:59:08]line НСП 1% : 8.85 [07:59:08]line НДС 12% : 106.25 [07:59:08]line Наличными: 0.00 [07:59:08]line Безнал.: 1000.51 [07:59:08]line Место: АЗС № 94 "Партнер Нефть" [07:59:08]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [07:59:08]line СНО: Общий режим [07:59:08]line Чек 76 18.08.2024 07:59 [07:59:08]line Смена: 449 ФФД: 1.0 [07:59:08]line ЗНМ: 0300000099 [07:59:08]line РНМ: 0000000000091865 [07:59:08]line Версия ККМ: 001 [07:59:08]line Платежная система: O! деньги [07:59:08]line ФМ: 0000000000871820 [07:59:08]line ФД: 260518 [07:59:08]line ФПД: 252745175295641 [07:59:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T075910&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260518&fm=252745175295641&tin=02508201610067®Number=0000000000091865&sum=100051 [07:59:08]OFD Sender: Processing packet 260518 [packets to send 192, broken 191] [07:59:08]ProducePacketName [07:59:08]name=ofd_packets/00260518 [07:59:08]OFD Sender: To server: pG, [07:59:08]CommunicateWithHost lk.salyk.kg:30040 [07:59:08]ConnectInit lk.salyk.kg [07:59:08]written 0, free lines is 4095 [07:59:08]Connected sock=10 [07:59: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 30 10 01 00 00 55 72 08 01 DE 00 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 CE A9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A6 F9 03 00 35 04 06 00 E5 DE D2 64 66 99 73 0F 8E 70 E9 73 2B 3D [07:59: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 30 4F 00 00 00 3F A2 47 00 24 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A6 F9 03 00 F4 03 04 00 23 53 C1 66 B6 04 01 00 00 E5 01 21 1B E5 4C 8C 6C [07:59:08]CommunicateWithHost err = 0 [07:59:08]CheckOFDResponse [07:59:08]1017 (14) - 77093643461234 [07:59:08]1041 (16) - 0000000000871820 [07:59:08]1040 (4) - 260518 [07:59:08]1012 (4) - 18.08.2024 01:49 [07:59:08]1206 (1) - 0 [07:59:08]OFD Sender: Remove packet 260518 [07:59:08]ProducePacketName [07:59:08]name=ofd_packets/00260518 [07:59:08]NVStorageDeleteData [07:59:08]Write to MH i2c: 01 00 00 29 51 7A [07:59:08]Write i2c OK [07:59:08]MH_I2C_Read... [07:59:08]Read from MH i2c: 01 [07:59:08]MH_I2C_Read... [07:59:08]Read from MH i2c: 01 07 00 [07:59:08]MH_I2C_Read... [07:59:08]Read from MH i2c: 01 07 00 29 51 00 00 00 00 00 84 0C 11 [07:59:08]RasterBufferAndPrint [07:59:08]line [07:59:08]line [07:59:08]line [07:59:08]line [07:59:08]line [07:59:08]written 0, free lines is 3208 [07:59:08]MH_Cut [07:59:08]Write to MH i2c: D1 01 00 30 51 01 53 [07:59:08]Write i2c OK [07:59:08]MH_I2C_Read... [07:59:08]Read from MH i2c: D1 [07:59:08]MH_I2C_Read... [07:59:08]Read from MH i2c: D1 01 00 [07:59:08]MH_I2C_Read... [07:59:08]Read from MH i2c: D1 01 00 30 51 00 52 [07:59:08]Write to MH i2c: 01 00 00 31 51 82 [07:59:08]Write i2c OK [07:59:08]MH_I2C_Read... [07:59:09]OFD Sender: No OFD packet to send [07:59:10]*** Cut start [07:59:10]*** Purtial cut [07:59:10]*** Stage 1: CUTSNS_PIN = 1 [07:59:12]Read from MH i2c: 01 [07:59:12]MH_I2C_Read... [07:59:12]*** Stop cut motor [07:59:12]*** Cut end [07:59:12]Read from MH i2c: 01 07 00 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: 01 07 00 31 51 00 00 00 00 00 FF 0F 97 [07:59:12]process_action close_receipt done [07:59:12]requested_data is exist [07:59:12]produce_requested_data [07:59:12]requested_item fm.sn is exist - process it [07:59:12]wFMCommunicate request_size=4 [07:59:12]MH_SAM_APDU [07:59:12]CAPDU: 80 11 00 00 [07:59:12]Write to MH i2c: E2 08 00 32 51 80 11 00 00 00 00 00 00 FD [07:59:12]Write i2c OK [07:59:12]MH_I2C_Read... [07:59:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:12]Read from MH i2c: E2 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: E2 17 00 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: E2 17 00 32 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 4A [07:59:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [07:59:12]wFMCommunicate OK [07:59:12]requested_item fd.num is exist - process it [07:59:12]SAM_PROTO_GetFieldsCounters [07:59:12]wFMCommunicate request_size=4 [07:59:12]MH_SAM_APDU [07:59:12]CAPDU: 80 13 00 00 [07:59:12]Write to MH i2c: E2 08 00 33 51 80 13 00 00 00 00 00 00 00 [07:59:12]Write i2c OK [07:59:12]MH_I2C_Read... [07:59:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:59:12]Read from MH i2c: E2 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: E2 62 00 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: E2 62 00 33 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A6 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [07:59: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A6 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:59:12]wFMCommunicate OK [07:59:12]SAM_PROTO_GetFieldsCounters done [07:59:12]requested_item shift.num is exist - process it [07:59:12]requested_item shift.opened is exist - process it [07:59:12]req_shift_opened [07:59:12]FM_GetShiftState [07:59:12]SAM_PROTO_GetShiftState [07:59:12]wFMCommunicate request_size=4 [07:59:12]MH_SAM_APDU [07:59:12]CAPDU: 80 13 01 00 [07:59:12]Write to MH i2c: E2 08 00 34 51 80 13 01 00 00 00 00 00 02 [07:59:12]Write i2c OK [07:59:12]MH_I2C_Read... [07:59:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:12]Read from MH i2c: E2 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: E2 0E 00 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: E2 0E 00 34 51 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 3F [07:59:12]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [07:59:12]wFMCommunicate OK [07:59:12]SAM_PROTO_GetShiftState done [07:59:12]FM_GetShiftState done [07:59:12]req_shift_opened done [07:59:12]requested_item shift.open_date is exist - process it [07:59:12]req_shift_open_date [07:59:12]req_shift_open_date done [07:59:12]produce_requested_data done [07:59:12]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260518,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [07:59:12]process_action_free close_receipt [07:59:12]json_value_free [07:59:12]json_value_free done [07:59:12]process_json_proto returns [07:59:12]Send response to host [07:59:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260518,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [07:59:12]free response buf [07:59:12]execute_script done [07:59:12]execute_script returns [07:59:12]free content buf [07:59:12]Sock 9.Close socket [07:59:12]Sock 9.Thread stoped [07:59:14]OFD Sender: No OFD packet to send [07:59:19]OFD Sender: No OFD packet to send [07:59:24]OFD Sender: No OFD packet to send [07:59:29]OFD Sender: No OFD packet to send [07:59:34]OFD Sender: No OFD packet to send [07:59:39]OFD Sender: No OFD packet to send [07:59:44]OFD Sender: No OFD packet to send [07:59:49]OFD Sender: No OFD packet to send [07:59:54]OFD Sender: No OFD packet to send [07:59:59]OFD Sender: No OFD packet to send [08:00:04]OFD Sender: No OFD packet to send [08:00:09]OFD Sender: No OFD packet to send [08:00:14]OFD Sender: No OFD packet to send [08:00:19]OFD Sender: No OFD packet to send [08:00:24]OFD Sender: No OFD packet to send [08:00:29]OFD Sender: No OFD packet to send [08:00:34]OFD Sender: No OFD packet to send [08:00:39]OFD Sender: No OFD packet to send [08:00:44]OFD Sender: No OFD packet to send [08:00:49]OFD Sender: No OFD packet to send [08:00:54]OFD Sender: No OFD packet to send [08:00:59]OFD Sender: No OFD packet to send [08:01:04]OFD Sender: No OFD packet to send [08:01:09]OFD Sender: No OFD packet to send [08:01:14]OFD Sender: No OFD packet to send [08:01:19]OFD Sender: No OFD packet to send [08:01:24]OFD Sender: No OFD packet to send [08:01:29]OFD Sender: No OFD packet to send [08:01:34]OFD Sender: No OFD packet to send [08:01:39]OFD Sender: No OFD packet to send [08:01:44]OFD Sender: No OFD packet to send [08:01:49]OFD Sender: No OFD packet to send [08:01:54]OFD Sender: No OFD packet to send [08:01:59]OFD Sender: No OFD packet to send [08:02:04]OFD Sender: No OFD packet to send [08:02:09]OFD Sender: No OFD packet to send [08:02:14]OFD Sender: No OFD packet to send [08:02:19]OFD Sender: No OFD packet to send [08:02:24]OFD Sender: No OFD packet to send [08:02:29]OFD Sender: No OFD packet to send [08:02:32]accept exits with 7 [08:02:32]New connection [08:02:32]New thread 3066617188 created [08:02:32]Thread 3066473828 joined [08:02:32]Waiting for new connection... [08:02:32] Sock 7.Parse request [08:02:32]Sock 7.Check first char [08:02:32]Sock 7.First char is OK [08:02:32]request: POST /json_proto HTTP/1.0 [08:02:32]Method: POST [08:02:32]URL: /json_proto [08:02:32]Method is POST - this is cgi request [08:02:32]url: /json_proto [08:02:32]query_string will be loaded in cgi processing [08:02:32]execute_cgi json_proto POST (null) [08:02:32]execute_cgi path=json_proto method=POST [08:02:32]POST find Content-Length [08:02:32]Host: 172.17.55.133:8080 [08:02:32]Content-Length: 678 [08:02:32]Content-Type: application/json [08:02:32] [08:02:32]POST finish read [08:02:32]Found Content-Length = 678 [08:02:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:02:32]execute_script... [08:02: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)1036062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:02:32]POST & json_proto [08:02:32]process_json_proto [08:02:32]json parsed OK: [08:02:32]protocol is kg_v1.0 [08:02:32]action value=close_receipt [08:02:32]process_action close_receipt [08:02:32]cmd_close_receipt [08:02:32]MH_GetDate [08:02:32]Write to MH i2c: F0 00 00 35 51 75 [08:02:32]Write i2c OK [08:02:32]MH_I2C_Read... [08:02:32]Read from MH i2c: F0 [08:02:32]MH_I2C_Read... [08:02:32]Read from MH i2c: F0 09 00 [08:02:32]MH_I2C_Read... [08:02:32]Read from MH i2c: F0 09 00 35 51 00 9B AA C1 66 34 48 D8 65 A3 [08:02:32]GetLastDocTimeStamp 1723967950 [08:02:32]current date 1723968155 [08:02:32]FM_GetShiftState [08:02:32]SAM_PROTO_GetShiftState [08:02:32]wFMCommunicate request_size=4 [08:02:32]MH_SAM_APDU [08:02:32]CAPDU: 80 13 01 00 [08:02:32]Write to MH i2c: E2 08 00 36 51 80 13 01 00 00 00 00 00 04 [08:02:32]Write i2c OK [08:02:32]MH_I2C_Read... [08:02:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:32]Read from MH i2c: E2 [08:02:32]MH_I2C_Read... [08:02:32]Read from MH i2c: E2 0E 00 [08:02:32]MH_I2C_Read... [08:02:32]Read from MH i2c: E2 0E 00 36 51 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 41 [08:02:32]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:02:32]wFMCommunicate OK [08:02:32]SAM_PROTO_GetShiftState done [08:02:32]FM_GetShiftState done [08:02:32]opened in 1723940556 [08:02:32]opened+sec_in_day 1724026956 [08:02:32]quantity*price = 50036 [08:02:32]sum+1 = 50037 [08:02:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 77 18.08.2024 08:02 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260519 ФПД: 143663716043770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T080235&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260519&fm=143663716043770&tin=02508201610067®Number=0000000000091865&sum=50000 [08:02:33]StoreToDocumentArchive [08:02:33]shift 449 fd 260519 [08:02:33]save to /storage/0449/doc_00260519 [08:02:33]save last doc name /storage/0449/doc_00260519 to /storage/kkm_last_doc_name [08:02:33]save OK [08:02:33]Clear old archive folders... [08:02:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:02:33]tlvbuf is 00385880 [08:02:33]SAM_PROTO_ClearQueue [08:02:33]wFMCommunicate request_size=4 [08:02:33]MH_SAM_APDU [08:02:33]CAPDU: 80 09 00 00 [08:02:33]Write to MH i2c: E2 08 00 43 51 80 09 00 00 00 00 00 00 06 [08:02:33]Write i2c OK [08:02:33]MH_I2C_Read... [08:02:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:02:33]Read from MH i2c: E2 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: E2 03 00 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: E2 03 00 43 51 00 90 00 08 [08:02:33]RAPDU: 90 00 [08:02:33]wFMCommunicate OK [08:02:33]SAM_PROTO_ClearQueue done [08:02:33]KKMCreateOFDPacket [08:02:33]OFDProtocolAddRootSTLVToBuf [08:02:33]FM_MakeSignedData [08:02:33]FM_MakeSignedData [08:02:33]SAM_PROTO_SignData [08:02:33]wFMCommunicate request_size=4 [08:02:33]MH_SAM_APDU [08:02:33]CAPDU: 80 0D 01 02 [08:02:33]Write to MH i2c: E2 08 00 44 51 80 0D 01 02 00 00 00 00 0E [08:02:33]Write i2c OK [08:02:33]MH_I2C_Read... [08:02:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:02:33]Read from MH i2c: E2 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: E2 03 00 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: E2 03 00 44 51 00 90 00 09 [08:02:33]RAPDU: 90 00 [08:02:33]wFMCommunicate OK [08:02:33]wFMCommunicate request_size=255 [08:02:33]MH_SAM_APDU [08:02:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4D 00 00 00 F4 03 04 00 9B AA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A7 F9 03 00 35 04 06 00 82 [08:02:33]Write to MH i2c: E2 02 01 45 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4D 00 00 00 F4 03 04 00 9B AA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A7 F9 03 00 35 04 06 00 82 00 00 2B [08:02:33]Write i2c OK [08:02:33]MH_I2C_Read... [08:02:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:33]Read from MH i2c: E2 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: E2 03 00 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: E2 03 00 45 51 00 90 00 0A [08:02:33]RAPDU: 90 00 [08:02:33]wFMCommunicate OK [08:02:33]wFMCommunicate request_size=10 [08:02:33]MH_SAM_APDU [08:02:33]CAPDU: 80 0D 02 02 05 A9 50 C3 0B FA [08:02:33]Write to MH i2c: E2 0D 00 46 51 80 0D 02 02 05 00 A9 50 C3 0B FA 00 00 DC [08:02:33]Write i2c OK [08:02:33]MH_I2C_Read... [08:02:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:33]Read from MH i2c: E2 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: E2 03 00 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: E2 03 00 46 51 00 90 00 0B [08:02:33]RAPDU: 90 00 [08:02:33]wFMCommunicate OK [08:02:33]wFMCommunicate request_size=4 [08:02:33]MH_SAM_APDU [08:02:33]CAPDU: 80 0D 03 02 [08:02:33]Write to MH i2c: E2 08 00 47 51 80 0D 03 02 00 00 00 00 13 [08:02:33]Write i2c OK [08:02:33]MH_I2C_Read... [08:02:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:02:33]Read from MH i2c: E2 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: E2 0B 00 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: E2 0B 00 47 51 00 81 D9 A6 5B 0E B9 1A AA 90 00 FA [08:02:33]RAPDU: 81 D9 A6 5B 0E B9 1A AA 90 00 [08:02:33]wFMCommunicate OK [08:02:33]SAM_PROTO_SignData done [08:02:33]FM_MakeSignedData done [08:02:33]CreateOFDProtocolMessage [08:02:33]wFMCommunicate request_size=4 [08:02:33]MH_SAM_APDU [08:02:33]CAPDU: 80 11 00 00 [08:02:33]Write to MH i2c: E2 08 00 48 51 80 11 00 00 00 00 00 00 13 [08:02:33]Write i2c OK [08:02:33]MH_I2C_Read... [08:02:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:33]Read from MH i2c: E2 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: E2 17 00 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: E2 17 00 48 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 60 [08:02:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:02:33]wFMCommunicate OK [08:02:33]CreateOFDProtocolMessage done [08:02:33]OFDSenderStorePacket 260519 [08:02:33]StoreOFDPacket docnum=260519 [08:02:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 A8 72 07 01 AB 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4D 00 00 00 F4 03 04 00 9B AA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A7 F9 03 00 35 04 06 00 82 A9 50 C3 0B FA 81 D9 A6 5B 0E B9 1A AA [08:02:33]CheckFolder [08:02:33]dirname=/storage/ofd_packets [08:02:33]CheckFolder done [08:02:33]ProducePacketName [08:02:33]name=ofd_packets/00260519 [08:02:33]NVStorageSaveData ofd_packets/00260519 [08:02:33]File name is /storage/ofd_packets/00260519 [08:02:33]Write 301 bytes [08:02:33]NVStorageSaveData done [08:02:33]OFDSenderStorePacket done [08:02:33]KKMCreateOFDPacket done [08:02:33]NVStorageSaveData kkm_last_timestamp [08:02:33]File name is /storage/kkm_last_timestamp [08:02:33]Write 4 bytes [08:02:33]NVStorageSaveData done [08:02:33]ExternCall_PrintAddStr [08:02:33]wPrintStart [08:02:33]Write to MH i2c: 01 00 00 49 51 9A [08:02:33]Write i2c OK [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: 01 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: 01 07 00 [08:02:33]MH_I2C_Read... [08:02:33]Read from MH i2c: 01 07 00 49 51 00 00 00 00 00 FF 0F AF [08:02:33]RasterBufferAndPrint [08:02:33]line Счет N : (1)1036062 [08:02:33]line ИНН: 02508201610067 [08:02:33]line Контрольно-Кассовый Чек [08:02:33]line ПРОДАЖА [08:02:33]line ТРК (МРК, ГНК) : 22 [08:02:33]line Товар: 2710124130 [08:02:33]line Аи-92-К-5 [08:02:33]line 7.380 * 67.80 [08:02:33]line = 500.36 [08:02:33]line НДС 12% НСП 1% [08:02:33]line > о реализуемом товаре [08:02:33]line ОКРУГЛЕНИЕ: -0.36 [08:02:33]line ИТОГО: 500.00 [08:02:33]line Внесено: 500.00 [08:02:33]line СДАЧА: 0.00 [08:02:33]line НСП 1% : 4.43 [08:02:33]line НДС 12% : 53.14 [08:02:33]line Наличными: 500.00 [08:02:33]line Безнал.: 0.00 [08:02:33]line Место: АЗС № 94 "Партнер Нефть" [08:02:33]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [08:02:33]line СНО: Общий режим [08:02:33]line Чек 77 18.08.2024 08:02 [08:02:33]line Смена: 449 ФФД: 1.0 [08:02:33]line ЗНМ: 0300000099 [08:02:33]line РНМ: 0000000000091865 [08:02:33]line Версия ККМ: 001 [08:02:33]line ФМ: 0000000000871820 [08:02:33]line ФД: 260519 [08:02:33]line ФПД: 143663716043770 [08:02:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T080235&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260519&fm=143663716043770&tin=02508201610067®Number=0000000000091865&sum=50000 [08:02:34]OFD Sender: Processing packet 260519 [packets to send 192, broken 191] [08:02:34]ProducePacketName [08:02:34]name=ofd_packets/00260519 [08:02:34]OFD Sender: To server: pG, [08:02:34]CommunicateWithHost lk.salyk.kg:30040 [08:02:34]ConnectInit lk.salyk.kg [08:02:34]written 0, free lines is 4095 [08:02:34]Connected sock=10 [08:02: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 30 0F 01 00 00 A8 72 07 01 AB 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4D 00 00 00 F4 03 04 00 9B AA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A7 F9 03 00 35 04 06 00 82 A9 50 C3 0B FA 81 D9 A6 5B 0E B9 1A AA [08:02: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 30 4F 00 00 00 2D DA 47 00 9F 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 30 10 04 04 00 A7 F9 03 00 F4 03 04 00 F1 53 C1 66 B6 04 01 00 00 A1 57 5A 4C 9E 60 ED 49 [08:02:34]CommunicateWithHost err = 0 [08:02:34]CheckOFDResponse [08:02:34]1017 (14) - 77093643461234 [08:02:34]1041 (16) - 0000000000871820 [08:02:34]1040 (4) - 260519 [08:02:34]1012 (4) - 18.08.2024 01:52 [08:02:34]1206 (1) - 0 [08:02:34]OFD Sender: Remove packet 260519 [08:02:34]ProducePacketName [08:02:34]name=ofd_packets/00260519 [08:02:34]NVStorageDeleteData [08:02:34]Write to MH i2c: 01 00 00 74 51 C5 [08:02:34]Write i2c OK [08:02:34]MH_I2C_Read... [08:02:34]Read from MH i2c: 01 [08:02:34]MH_I2C_Read... [08:02:34]Read from MH i2c: 01 07 00 [08:02:34]MH_I2C_Read... [08:02:34]Read from MH i2c: 01 07 00 74 51 00 00 00 00 00 6F 0C 47 [08:02:34]RasterBufferAndPrint [08:02:34]line [08:02:34]line [08:02:34]line [08:02:34]line [08:02:34]line [08:02:34]written 0, free lines is 3185 [08:02:34]MH_Cut [08:02:34]Write to MH i2c: D1 01 00 7B 51 01 9E [08:02:34]Write i2c OK [08:02:34]MH_I2C_Read... [08:02:34]Read from MH i2c: D1 [08:02:34]MH_I2C_Read... [08:02:34]Read from MH i2c: D1 01 00 [08:02:34]MH_I2C_Read... [08:02:34]Read from MH i2c: D1 01 00 7B 51 00 9D [08:02:34]Write to MH i2c: 01 00 00 7C 51 CD [08:02:34]Write i2c OK [08:02:34]MH_I2C_Read... [08:02:34]OFD Sender: No OFD packet to send [08:02:35]*** Cut start [08:02:35]*** Purtial cut [08:02:35]*** Stage 1: CUTSNS_PIN = 1 [08:02:37]Read from MH i2c: 01 [08:02:37]MH_I2C_Read... [08:02:37]*** Stop cut motor [08:02:37]*** Cut end [08:02:37]Read from MH i2c: 01 07 00 [08:02:37]MH_I2C_Read... [08:02:37]Read from MH i2c: 01 07 00 7C 51 00 00 00 00 00 FF 0F E2 [08:02:37]process_action close_receipt done [08:02:37]requested_data is exist [08:02:37]produce_requested_data [08:02:37]requested_item fm.sn is exist - process it [08:02:37]wFMCommunicate request_size=4 [08:02:37]MH_SAM_APDU [08:02:37]CAPDU: 80 11 00 00 [08:02:37]Write to MH i2c: E2 08 00 7D 51 80 11 00 00 00 00 00 00 48 [08:02:37]Write i2c OK [08:02:37]MH_I2C_Read... [08:02:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:37]Read from MH i2c: E2 [08:02:37]MH_I2C_Read... [08:02:37]Read from MH i2c: E2 17 00 [08:02:37]MH_I2C_Read... [08:02:37]Read from MH i2c: E2 17 00 7D 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 95 [08:02:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:02:37]wFMCommunicate OK [08:02:37]requested_item fd.num is exist - process it [08:02:37]SAM_PROTO_GetFieldsCounters [08:02:37]wFMCommunicate request_size=4 [08:02:37]MH_SAM_APDU [08:02:37]CAPDU: 80 13 00 00 [08:02:37]Write to MH i2c: E2 08 00 7E 51 80 13 00 00 00 00 00 00 4B [08:02:37]Write i2c OK [08:02:37]MH_I2C_Read... [08:02:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:02:37]Read from MH i2c: E2 [08:02:37]MH_I2C_Read... [08:02:37]Read from MH i2c: E2 62 00 [08:02:37]MH_I2C_Read... [08:02:37]Read from MH i2c: E2 62 00 7E 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A7 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [08:02: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A7 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:02:37]wFMCommunicate OK [08:02:37]SAM_PROTO_GetFieldsCounters done [08:02:37]requested_item shift.num is exist - process it [08:02:37]requested_item shift.opened is exist - process it [08:02:37]req_shift_opened [08:02:37]FM_GetShiftState [08:02:37]SAM_PROTO_GetShiftState [08:02:37]wFMCommunicate request_size=4 [08:02:37]MH_SAM_APDU [08:02:37]CAPDU: 80 13 01 00 [08:02:37]Write to MH i2c: E2 08 00 7F 51 80 13 01 00 00 00 00 00 4D [08:02:37]Write i2c OK [08:02:37]MH_I2C_Read... [08:02:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:37]Read from MH i2c: E2 [08:02:37]MH_I2C_Read... [08:02:37]Read from MH i2c: E2 0E 00 [08:02:37]MH_I2C_Read... [08:02:37]Read from MH i2c: E2 0E 00 7F 51 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 8A [08:02:37]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:02:37]wFMCommunicate OK [08:02:37]SAM_PROTO_GetShiftState done [08:02:37]FM_GetShiftState done [08:02:37]req_shift_opened done [08:02:37]requested_item shift.open_date is exist - process it [08:02:37]req_shift_open_date [08:02:37]req_shift_open_date done [08:02:37]produce_requested_data done [08:02:37]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260519,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [08:02:37]process_action_free close_receipt [08:02:37]json_value_free [08:02:37]json_value_free done [08:02:37]process_json_proto returns [08:02:37]Send response to host [08:02:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260519,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [08:02:37]free response buf [08:02:37]execute_script done [08:02:37]execute_script returns [08:02:37]free content buf [08:02:37]Sock 7.Close socket [08:02:37]Sock 7.Thread stoped [08:02:39]OFD Sender: No OFD packet to send [08:02:44]OFD Sender: No OFD packet to send [08:02:49]OFD Sender: No OFD packet to send [08:02:54]OFD Sender: No OFD packet to send [08:02:59]OFD Sender: No OFD packet to send [08:03:04]OFD Sender: No OFD packet to send [08:03:09]OFD Sender: No OFD packet to send [08:03:14]OFD Sender: No OFD packet to send [08:03:18]accept exits with 9 [08:03:18]New connection [08:03:18]New thread 3066473828 created [08:03:18]Thread 3066617188 joined [08:03:18]Waiting for new connection... [08:03:18] Sock 9.Parse request [08:03:18]Sock 9.Check first char [08:03:18]Sock 9.First char is OK [08:03:18]request: POST /json_proto HTTP/1.0 [08:03:18]Method: POST [08:03:18]URL: /json_proto [08:03:18]Method is POST - this is cgi request [08:03:18]url: /json_proto [08:03:18]query_string will be loaded in cgi processing [08:03:18]execute_cgi json_proto POST (null) [08:03:18]execute_cgi path=json_proto method=POST [08:03:18]POST find Content-Length [08:03:18]Host: 172.17.55.133:8080 [08:03:18]Content-Length: 678 [08:03:18]Content-Type: application/json [08:03:18] [08:03:18]POST finish read [08:03:18]Found Content-Length = 678 [08:03:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036064", "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" : 74.20, "quantity" : 5.400, "sum" : 400.68, "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:03:18]execute_script... [08:03:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036064", "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" : 74.20, "quantity" : 5.400, "sum" : 400.68, "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:03:18]POST & json_proto [08:03:18]process_json_proto [08:03:18]json parsed OK: [08:03:18]protocol is kg_v1.0 [08:03:18]action value=close_receipt [08:03:18]process_action close_receipt [08:03:18]cmd_close_receipt [08:03:18]MH_GetDate [08:03:18]Write to MH i2c: F0 00 00 80 51 C0 [08:03:18]Write i2c OK [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: F0 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: F0 09 00 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: F0 09 00 80 51 00 C9 AA C1 66 34 48 D8 65 1C [08:03:18]GetLastDocTimeStamp 1723968155 [08:03:18]current date 1723968201 [08:03:18]FM_GetShiftState [08:03:18]SAM_PROTO_GetShiftState [08:03:18]wFMCommunicate request_size=4 [08:03:18]MH_SAM_APDU [08:03:18]CAPDU: 80 13 01 00 [08:03:18]Write to MH i2c: E2 08 00 81 51 80 13 01 00 00 00 00 00 4F [08:03:18]Write i2c OK [08:03:18]MH_I2C_Read... [08:03:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:18]Read from MH i2c: E2 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: E2 0E 00 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: E2 0E 00 81 51 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 8C [08:03:18]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:03:18]wFMCommunicate OK [08:03:18]SAM_PROTO_GetShiftState done [08:03:18]FM_GetShiftState done [08:03:18]opened in 1723940556 [08:03:18]opened+sec_in_day 1724026956 [08:03:18]quantity*price = 40068 [08:03:18]sum+1 = 40069 [08:03:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 78 18.08.2024 08:03 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260520 ФПД: 129809623412386 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T080321&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260520&fm=129809623412386&tin=02508201610067®Number=0000000000091865&sum=40000 [08:03:19]StoreToDocumentArchive [08:03:19]shift 449 fd 260520 [08:03:19]save to /storage/0449/doc_00260520 [08:03:19]save last doc name /storage/0449/doc_00260520 to /storage/kkm_last_doc_name [08:03:19]save OK [08:03:19]Clear old archive folders... [08:03:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:03:19]tlvbuf is B6D56B80 [08:03:19]SAM_PROTO_ClearQueue [08:03:19]wFMCommunicate request_size=4 [08:03:19]MH_SAM_APDU [08:03:19]CAPDU: 80 09 00 00 [08:03:19]Write to MH i2c: E2 08 00 8E 51 80 09 00 00 00 00 00 00 51 [08:03:19]Write i2c OK [08:03:19]MH_I2C_Read... [08:03:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:03:19]Read from MH i2c: E2 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: E2 03 00 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: E2 03 00 8E 51 00 90 00 53 [08:03:19]RAPDU: 90 00 [08:03:19]wFMCommunicate OK [08:03:19]SAM_PROTO_ClearQueue done [08:03:19]KKMCreateOFDPacket [08:03:19]OFDProtocolAddRootSTLVToBuf [08:03:19]FM_MakeSignedData [08:03:19]FM_MakeSignedData [08:03:19]SAM_PROTO_SignData [08:03:19]wFMCommunicate request_size=4 [08:03:19]MH_SAM_APDU [08:03:19]CAPDU: 80 0D 01 02 [08:03:19]Write to MH i2c: E2 08 00 8F 51 80 0D 01 02 00 00 00 00 59 [08:03:19]Write i2c OK [08:03:19]MH_I2C_Read... [08:03:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:03:19]Read from MH i2c: E2 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: E2 03 00 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: E2 03 00 8F 51 00 90 00 54 [08:03:19]RAPDU: 90 00 [08:03:19]wFMCommunicate OK [08:03:19]wFMCommunicate request_size=255 [08:03:19]MH_SAM_APDU [08:03:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 4E 00 00 00 F4 03 04 00 C9 AA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A8 F9 03 00 35 04 06 00 76 [08:03:19]Write to MH i2c: E2 02 01 90 51 80 0D 02 02 FA 00 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 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 4E 00 00 00 F4 03 04 00 C9 AA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A8 F9 03 00 35 04 06 00 76 00 00 59 [08:03:19]Write i2c OK [08:03:19]MH_I2C_Read... [08:03:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:19]Read from MH i2c: E2 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: E2 03 00 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: E2 03 00 90 51 00 90 00 55 [08:03:19]RAPDU: 90 00 [08:03:19]wFMCommunicate OK [08:03:19]wFMCommunicate request_size=10 [08:03:19]MH_SAM_APDU [08:03:19]CAPDU: 80 0D 02 02 05 0F A8 7D EE A2 [08:03:19]Write to MH i2c: E2 0D 00 91 51 80 0D 02 02 05 00 0F A8 7D EE A2 00 00 2A [08:03:19]Write i2c OK [08:03:19]MH_I2C_Read... [08:03:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:19]Read from MH i2c: E2 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: E2 03 00 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: E2 03 00 91 51 00 90 00 56 [08:03:19]RAPDU: 90 00 [08:03:19]wFMCommunicate OK [08:03:19]wFMCommunicate request_size=4 [08:03:19]MH_SAM_APDU [08:03:19]CAPDU: 80 0D 03 02 [08:03:19]Write to MH i2c: E2 08 00 92 51 80 0D 03 02 00 00 00 00 5E [08:03:19]Write i2c OK [08:03:19]MH_I2C_Read... [08:03:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:03:19]Read from MH i2c: E2 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: E2 0B 00 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: E2 0B 00 92 51 00 46 8C 36 64 32 E5 9C 09 90 00 87 [08:03:19]RAPDU: 46 8C 36 64 32 E5 9C 09 90 00 [08:03:19]wFMCommunicate OK [08:03:19]SAM_PROTO_SignData done [08:03:19]FM_MakeSignedData done [08:03:19]CreateOFDProtocolMessage [08:03:19]wFMCommunicate request_size=4 [08:03:19]MH_SAM_APDU [08:03:19]CAPDU: 80 11 00 00 [08:03:19]Write to MH i2c: E2 08 00 93 51 80 11 00 00 00 00 00 00 5E [08:03:19]Write i2c OK [08:03:19]MH_I2C_Read... [08:03:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:19]Read from MH i2c: E2 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: E2 17 00 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: E2 17 00 93 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 AB [08:03:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:03:19]wFMCommunicate OK [08:03:19]CreateOFDProtocolMessage done [08:03:19]OFDSenderStorePacket 260520 [08:03:19]StoreOFDPacket docnum=260520 [08:03:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 6D 06 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 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 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 4E 00 00 00 F4 03 04 00 C9 AA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A8 F9 03 00 35 04 06 00 76 0F A8 7D EE A2 46 8C 36 64 32 E5 9C 09 [08:03:19]CheckFolder [08:03:19]dirname=/storage/ofd_packets [08:03:19]CheckFolder done [08:03:19]ProducePacketName [08:03:19]name=ofd_packets/00260520 [08:03:19]NVStorageSaveData ofd_packets/00260520 [08:03:19]File name is /storage/ofd_packets/00260520 [08:03:19]Write 301 bytes [08:03:19]NVStorageSaveData done [08:03:19]OFDSenderStorePacket done [08:03:19]KKMCreateOFDPacket done [08:03:19]NVStorageSaveData kkm_last_timestamp [08:03:19]File name is /storage/kkm_last_timestamp [08:03:19]Write 4 bytes [08:03:19]NVStorageSaveData done [08:03:19]ExternCall_PrintAddStr [08:03:19]wPrintStart [08:03:19]Write to MH i2c: 01 00 00 94 51 E5 [08:03:19]Write i2c OK [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: 01 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: 01 07 00 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: 01 07 00 94 51 00 00 00 00 00 FF 0F FA [08:03:19]RasterBufferAndPrint [08:03:19]line Счет N : (1)1036064 [08:03:19]line ИНН: 02508201610067 [08:03:19]line Контрольно-Кассовый Чек [08:03:19]line ПРОДАЖА [08:03:19]line ТРК (МРК, ГНК) : 13 [08:03:19]line Товар: 2710124500 [08:03:19]line Аи-95-К-5 [08:03:19]line 5.400 * 74.20 [08:03:19]line = 400.68 [08:03:19]line НДС 12% НСП 1% [08:03:19]line > о реализуемом товаре [08:03:19]line ОКРУГЛЕНИЕ: -0.68 [08:03:19]line ИТОГО: 400.00 [08:03:19]line Внесено: 400.00 [08:03:19]line СДАЧА: 0.00 [08:03:19]line НСП 1% : 3.55 [08:03:19]line НДС 12% : 42.55 [08:03:19]line Наличными: 400.00 [08:03:19]line Безнал.: 0.00 [08:03:19]line Место: АЗС № 94 "Партнер Нефть" [08:03:19]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [08:03:19]line СНО: Общий режим [08:03:19]line Чек 78 18.08.2024 08:03 [08:03:19]line Смена: 449 ФФД: 1.0 [08:03:19]line ЗНМ: 0300000099 [08:03:19]line РНМ: 0000000000091865 [08:03:19]line Версия ККМ: 001 [08:03:19]line ФМ: 0000000000871820 [08:03:19]line ФД: 260520 [08:03:19]line ФПД: 129809623412386 [08:03:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T080321&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260520&fm=129809623412386&tin=02508201610067®Number=0000000000091865&sum=40000 [08:03:19]written 0, free lines is 4095 [08:03:19]OFD Sender: Processing packet 260520 [packets to send 192, broken 191] [08:03:19]ProducePacketName [08:03:19]name=ofd_packets/00260520 [08:03:19]OFD Sender: To server: pG, [08:03:19]CommunicateWithHost lk.salyk.kg:30040 [08:03:19]ConnectInit lk.salyk.kg [08:03:20]Connected sock=10 [08:03: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 30 0F 01 00 00 6D 06 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 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 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 4E 00 00 00 F4 03 04 00 C9 AA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A8 F9 03 00 35 04 06 00 76 0F A8 7D EE A2 46 8C 36 64 32 E5 9C 09 [08:03: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 30 4F 00 00 00 08 E7 47 00 DD BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 A8 F9 03 00 F4 03 04 00 1F 54 C1 66 B6 04 01 00 00 2F 03 D1 18 E6 69 F6 FB [08:03:20]CommunicateWithHost err = 0 [08:03:20]CheckOFDResponse [08:03:20]1017 (14) - 77093643461234 [08:03:20]1041 (16) - 0000000000871820 [08:03:20]1040 (4) - 260520 [08:03:20]1012 (4) - 18.08.2024 01:53 [08:03:20]1206 (1) - 0 [08:03:20]OFD Sender: Remove packet 260520 [08:03:20]ProducePacketName [08:03:20]name=ofd_packets/00260520 [08:03:20]NVStorageDeleteData [08:03:20]Write to MH i2c: 01 00 00 BF 51 10 [08:03:20]Write i2c OK [08:03:20]MH_I2C_Read... [08:03:20]Read from MH i2c: 01 [08:03:20]MH_I2C_Read... [08:03:20]Read from MH i2c: 01 07 00 [08:03:20]MH_I2C_Read... [08:03:20]Read from MH i2c: 01 07 00 BF 51 00 00 00 00 00 71 0C 94 [08:03:20]RasterBufferAndPrint [08:03:20]line [08:03:20]line [08:03:20]line [08:03:20]line [08:03:20]line [08:03:20]written 0, free lines is 3187 [08:03:20]MH_Cut [08:03:20]Write to MH i2c: D1 01 00 C6 51 01 E9 [08:03:20]Write i2c OK [08:03:20]MH_I2C_Read... [08:03:20]Read from MH i2c: D1 [08:03:20]MH_I2C_Read... [08:03:20]Read from MH i2c: D1 01 00 [08:03:20]MH_I2C_Read... [08:03:20]Read from MH i2c: D1 01 00 C6 51 00 E8 [08:03:20]Write to MH i2c: 01 00 00 C7 51 18 [08:03:20]Write i2c OK [08:03:20]MH_I2C_Read... [08:03:20]OFD Sender: No OFD packet to send [08:03:21]*** Cut start [08:03:21]*** Purtial cut [08:03:21]*** Stage 1: CUTSNS_PIN = 1 [08:03:23]Read from MH i2c: 01 [08:03:23]MH_I2C_Read... [08:03:23]*** Stop cut motor [08:03:23]*** Cut end [08:03:23]Read from MH i2c: 01 07 00 [08:03:23]MH_I2C_Read... [08:03:23]Read from MH i2c: 01 07 00 C7 51 00 00 00 00 00 FF 0F 2D [08:03:23]process_action close_receipt done [08:03:23]requested_data is exist [08:03:23]produce_requested_data [08:03:23]requested_item fm.sn is exist - process it [08:03:23]wFMCommunicate request_size=4 [08:03:23]MH_SAM_APDU [08:03:23]CAPDU: 80 11 00 00 [08:03:23]Write to MH i2c: E2 08 00 C8 51 80 11 00 00 00 00 00 00 93 [08:03:23]Write i2c OK [08:03:23]MH_I2C_Read... [08:03:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:23]Read from MH i2c: E2 [08:03:23]MH_I2C_Read... [08:03:23]Read from MH i2c: E2 17 00 [08:03:23]MH_I2C_Read... [08:03:23]Read from MH i2c: E2 17 00 C8 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E0 [08:03:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:03:23]wFMCommunicate OK [08:03:23]requested_item fd.num is exist - process it [08:03:23]SAM_PROTO_GetFieldsCounters [08:03:23]wFMCommunicate request_size=4 [08:03:23]MH_SAM_APDU [08:03:23]CAPDU: 80 13 00 00 [08:03:23]Write to MH i2c: E2 08 00 C9 51 80 13 00 00 00 00 00 00 96 [08:03:23]Write i2c OK [08:03:23]MH_I2C_Read... [08:03:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:03:23]Read from MH i2c: E2 [08:03:23]MH_I2C_Read... [08:03:23]Read from MH i2c: E2 62 00 [08:03:23]MH_I2C_Read... [08:03:23]Read from MH i2c: E2 62 00 C9 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A8 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [08:03: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A8 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:03:23]wFMCommunicate OK [08:03:23]SAM_PROTO_GetFieldsCounters done [08:03:23]requested_item shift.num is exist - process it [08:03:23]requested_item shift.opened is exist - process it [08:03:23]req_shift_opened [08:03:23]FM_GetShiftState [08:03:23]SAM_PROTO_GetShiftState [08:03:23]wFMCommunicate request_size=4 [08:03:23]MH_SAM_APDU [08:03:23]CAPDU: 80 13 01 00 [08:03:23]Write to MH i2c: E2 08 00 CA 51 80 13 01 00 00 00 00 00 98 [08:03:23]Write i2c OK [08:03:23]MH_I2C_Read... [08:03:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:23]Read from MH i2c: E2 [08:03:23]MH_I2C_Read... [08:03:23]Read from MH i2c: E2 0E 00 [08:03:23]MH_I2C_Read... [08:03:23]Read from MH i2c: E2 0E 00 CA 51 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D5 [08:03:23]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:03:23]wFMCommunicate OK [08:03:23]SAM_PROTO_GetShiftState done [08:03:23]FM_GetShiftState done [08:03:23]req_shift_opened done [08:03:23]requested_item shift.open_date is exist - process it [08:03:23]req_shift_open_date [08:03:23]req_shift_open_date done [08:03:23]produce_requested_data done [08:03:23]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260520,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [08:03:23]process_action_free close_receipt [08:03:23]json_value_free [08:03:23]json_value_free done [08:03:23]process_json_proto returns [08:03:23]Send response to host [08:03:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260520,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [08:03:23]free response buf [08:03:23]execute_script done [08:03:23]execute_script returns [08:03:23]free content buf [08:03:23]Sock 9.Close socket [08:03:23]Sock 9.Thread stoped [08:03:24]accept exits with 7 [08:03:24]New connection [08:03:24]New thread 3066617188 created [08:03:24]Thread 3066473828 joined [08:03:24]Waiting for new connection... [08:03:24] Sock 7.Parse request [08:03:24]Sock 7.Check first char [08:03:24]Sock 7.First char is OK [08:03:24]request: POST /json_proto HTTP/1.0 [08:03:24]Method: POST [08:03:24]URL: /json_proto [08:03:24]Method is POST - this is cgi request [08:03:24]url: /json_proto [08:03:24]query_string will be loaded in cgi processing [08:03:24]execute_cgi json_proto POST (null) [08:03:24]execute_cgi path=json_proto method=POST [08:03:24]POST find Content-Length [08:03:24]Host: 172.17.55.133:8080 [08:03:24]Content-Length: 801 [08:03:24]Content-Type: application/json [08:03:24] [08:03:24]POST finish read [08:03:24]Found Content-Length = 801 [08:03:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:24]execute_script... [08:03: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)1036063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:24]POST & json_proto [08:03:24]process_json_proto [08:03:24]json parsed OK: [08:03:24]protocol is kg_v1.0 [08:03:24]action value=close_receipt [08:03:24]process_action close_receipt [08:03:24]cmd_close_receipt [08:03:24]MH_GetDate [08:03:24]Write to MH i2c: F0 00 00 CB 51 0B [08:03:24]Write i2c OK [08:03:24]MH_I2C_Read... [08:03:24]Read from MH i2c: F0 [08:03:24]MH_I2C_Read... [08:03:24]Read from MH i2c: F0 09 00 [08:03:24]MH_I2C_Read... [08:03:24]Read from MH i2c: F0 09 00 CB 51 00 CF AA C1 66 34 48 D8 65 6D [08:03:24]GetLastDocTimeStamp 1723968201 [08:03:24]current date 1723968207 [08:03:24]FM_GetShiftState [08:03:24]SAM_PROTO_GetShiftState [08:03:24]wFMCommunicate request_size=4 [08:03:24]MH_SAM_APDU [08:03:24]CAPDU: 80 13 01 00 [08:03:24]Write to MH i2c: E2 08 00 CC 51 80 13 01 00 00 00 00 00 9A [08:03:24]Write i2c OK [08:03:24]MH_I2C_Read... [08:03:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:24]Read from MH i2c: E2 [08:03:24]MH_I2C_Read... [08:03:24]Read from MH i2c: E2 0E 00 [08:03:24]MH_I2C_Read... [08:03:24]Read from MH i2c: E2 0E 00 CC 51 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D7 [08:03:24]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:03:24]wFMCommunicate OK [08:03:24]SAM_PROTO_GetShiftState done [08:03:24]FM_GetShiftState done [08:03:24]opened in 1723940556 [08:03:24]opened+sec_in_day 1724026956 [08:03:24]quantity*price = 50036 [08:03:24]sum+1 = 50037 [08:03:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 79 18.08.2024 08:03 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260521 ФПД: 39217115881104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T080327&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260521&fm=39217115881104&tin=02508201610067®Number=0000000000091865&sum=50036 [08:03:25]StoreToDocumentArchive [08:03:25]shift 449 fd 260521 [08:03:25]save to /storage/0449/doc_00260521 [08:03:25]save last doc name /storage/0449/doc_00260521 to /storage/kkm_last_doc_name [08:03:25]save OK [08:03:25]Clear old archive folders... [08:03:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:03:25]tlvbuf is 00385560 [08:03:25]SAM_PROTO_ClearQueue [08:03:25]wFMCommunicate request_size=4 [08:03:25]MH_SAM_APDU [08:03:25]CAPDU: 80 09 00 00 [08:03:25]Write to MH i2c: E2 08 00 D9 51 80 09 00 00 00 00 00 00 9C [08:03:25]Write i2c OK [08:03:25]MH_I2C_Read... [08:03:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:03:25]Read from MH i2c: E2 [08:03:25]MH_I2C_Read... [08:03:25]Read from MH i2c: E2 03 00 [08:03:25]MH_I2C_Read... [08:03:25]Read from MH i2c: E2 03 00 D9 51 00 90 00 9E [08:03:25]RAPDU: 90 00 [08:03:25]wFMCommunicate OK [08:03:25]SAM_PROTO_ClearQueue done [08:03:25]KKMCreateOFDPacket [08:03:25]OFDProtocolAddRootSTLVToBuf [08:03:25]FM_MakeSignedData [08:03:25]FM_MakeSignedData [08:03:25]SAM_PROTO_SignData [08:03:25]wFMCommunicate request_size=4 [08:03:25]MH_SAM_APDU [08:03:25]CAPDU: 80 0D 01 02 [08:03:25]Write to MH i2c: E2 08 00 DA 51 80 0D 01 02 00 00 00 00 A4 [08:03:25]Write i2c OK [08:03:25]MH_I2C_Read... [08:03:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:03:25]Read from MH i2c: E2 [08:03:25]MH_I2C_Read... [08:03:25]Read from MH i2c: E2 03 00 [08:03:25]MH_I2C_Read... [08:03:25]Read from MH i2c: E2 03 00 DA 51 00 90 00 9F [08:03:25]RAPDU: 90 00 [08:03:25]wFMCommunicate OK [08:03:25]wFMCommunicate request_size=255 [08:03:25]MH_SAM_APDU [08:03:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 CF AA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A9 F9 03 00 35 04 06 00 23 [08:03:25]Write to MH i2c: E2 02 01 DB 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 CF AA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A9 F9 03 00 35 04 06 00 23 00 00 E2 [08:03:25]Write i2c OK [08:03:25]MH_I2C_Read... [08:03:25]OFD Sender: No OFD packet to send [08:03:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:25]Read from MH i2c: E2 [08:03:25]MH_I2C_Read... [08:03:25]Read from MH i2c: E2 03 00 [08:03:25]MH_I2C_Read... [08:03:25]Read from MH i2c: E2 03 00 DB 51 00 90 00 A0 [08:03:25]RAPDU: 90 00 [08:03:25]wFMCommunicate OK [08:03:25]wFMCommunicate request_size=10 [08:03:25]MH_SAM_APDU [08:03:25]CAPDU: 80 0D 02 02 05 AA F2 42 DE 90 [08:03:25]Write to MH i2c: E2 0D 00 DC 51 80 0D 02 02 05 00 AA F2 42 DE 90 00 00 FD [08:03:26]Write i2c OK [08:03:26]MH_I2C_Read... [08:03:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:26]Read from MH i2c: E2 [08:03:26]MH_I2C_Read... [08:03:26]Read from MH i2c: E2 03 00 [08:03:26]MH_I2C_Read... [08:03:26]Read from MH i2c: E2 03 00 DC 51 00 90 00 A1 [08:03:26]RAPDU: 90 00 [08:03:26]wFMCommunicate OK [08:03:26]wFMCommunicate request_size=4 [08:03:26]MH_SAM_APDU [08:03:26]CAPDU: 80 0D 03 02 [08:03:26]Write to MH i2c: E2 08 00 DD 51 80 0D 03 02 00 00 00 00 A9 [08:03:26]Write i2c OK [08:03:26]MH_I2C_Read... [08:03:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:03:26]Read from MH i2c: E2 [08:03:26]MH_I2C_Read... [08:03:26]Read from MH i2c: E2 0B 00 [08:03:26]MH_I2C_Read... [08:03:26]Read from MH i2c: E2 0B 00 DD 51 00 53 F1 A3 F8 B9 43 1E EE 90 00 91 [08:03:26]RAPDU: 53 F1 A3 F8 B9 43 1E EE 90 00 [08:03:26]wFMCommunicate OK [08:03:26]SAM_PROTO_SignData done [08:03:26]FM_MakeSignedData done [08:03:26]CreateOFDProtocolMessage [08:03:26]wFMCommunicate request_size=4 [08:03:26]MH_SAM_APDU [08:03:26]CAPDU: 80 11 00 00 [08:03:26]Write to MH i2c: E2 08 00 DE 51 80 11 00 00 00 00 00 00 A9 [08:03:26]Write i2c OK [08:03:26]MH_I2C_Read... [08:03:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:26]Read from MH i2c: E2 [08:03:26]MH_I2C_Read... [08:03:26]Read from MH i2c: E2 17 00 [08:03:26]MH_I2C_Read... [08:03:26]Read from MH i2c: E2 17 00 DE 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F6 [08:03:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:03:26]wFMCommunicate OK [08:03:26]CreateOFDProtocolMessage done [08:03:26]OFDSenderStorePacket 260521 [08:03:26]StoreOFDPacket docnum=260521 [08:03:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 35 F7 07 01 26 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 CF AA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A9 F9 03 00 35 04 06 00 23 AA F2 42 DE 90 53 F1 A3 F8 B9 43 1E EE [08:03:26]CheckFolder [08:03:26]dirname=/storage/ofd_packets [08:03:26]CheckFolder done [08:03:26]ProducePacketName [08:03:26]name=ofd_packets/00260521 [08:03:26]NVStorageSaveData ofd_packets/00260521 [08:03:26]File name is /storage/ofd_packets/00260521 [08:03:26]Write 301 bytes [08:03:26]NVStorageSaveData done [08:03:26]OFDSenderStorePacket done [08:03:26]KKMCreateOFDPacket done [08:03:26]NVStorageSaveData kkm_last_timestamp [08:03:26]File name is /storage/kkm_last_timestamp [08:03:26]Write 4 bytes [08:03:26]NVStorageSaveData done [08:03:26]ExternCall_PrintAddStr [08:03:26]wPrintStart [08:03:26]Write to MH i2c: 01 00 00 DF 51 30 [08:03:26]Write i2c OK [08:03:26]MH_I2C_Read... [08:03:26]Read from MH i2c: 01 [08:03:26]MH_I2C_Read... [08:03:26]Read from MH i2c: 01 07 00 [08:03:26]MH_I2C_Read... [08:03:26]Read from MH i2c: 01 07 00 DF 51 00 00 00 00 00 FF 0F 45 [08:03:26]RasterBufferAndPrint [08:03:26]line Счет N : (1)1036063 [08:03:26]line ИНН: 02508201610067 [08:03:26]line Контрольно-Кассовый Чек [08:03:26]line ПРОДАЖА [08:03:26]line ТРК (МРК, ГНК) : 42 [08:03:26]line Товар: 2710124130 [08:03:26]line Аи-92-К-5 [08:03:26]line 7.380 * 67.80 [08:03:26]line = 500.36 [08:03:26]line НДС 12% НСП 1% [08:03:26]line > о реализуемом товаре [08:03:26]line ИТОГО: 500.36 [08:03:26]line НСП 1% : 4.43 [08:03:26]line НДС 12% : 53.14 [08:03:26]line Наличными: 0.00 [08:03:26]line Безнал.: 500.36 [08:03:26]line Место: АЗС № 94 "Партнер Нефть" [08:03:26]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [08:03:26]line СНО: Общий режим [08:03:26]line Чек 79 18.08.2024 08:03 [08:03:26]line Смена: 449 ФФД: 1.0 [08:03:26]line ЗНМ: 0300000099 [08:03:26]line РНМ: 0000000000091865 [08:03:26]line Версия ККМ: 001 [08:03:26]line Платежная система: O! деньги [08:03:26]line ФМ: 0000000000871820 [08:03:26]line ФД: 260521 [08:03:26]line ФПД: 39217115881104 [08:03:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T080327&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260521&fm=39217115881104&tin=02508201610067®Number=0000000000091865&sum=50036 [08:03:26]OFD Sender: Processing packet 260521 [packets to send 192, broken 191] [08:03:26]ProducePacketName [08:03:26]name=ofd_packets/00260521 [08:03:26]OFD Sender: To server: pG, [08:03:26]CommunicateWithHost lk.salyk.kg:30040 [08:03:26]ConnectInit lk.salyk.kg [08:03:26]written 0, free lines is 4095 [08:03:26]Connected sock=10 [08:03: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 30 0F 01 00 00 35 F7 07 01 26 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 CF AA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A9 F9 03 00 35 04 06 00 23 AA F2 42 DE 90 53 F1 A3 F8 B9 43 1E EE [08:03: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 30 4F 00 00 00 33 EC 47 00 99 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 30 10 04 04 00 A9 F9 03 00 F4 03 04 00 26 54 C1 66 B6 04 01 00 00 63 78 53 13 B3 EE B3 86 [08:03:26]CommunicateWithHost err = 0 [08:03:26]CheckOFDResponse [08:03:26]1017 (14) - 77093643461234 [08:03:26]1041 (16) - 0000000000871820 [08:03:26]1040 (4) - 260521 [08:03:26]1012 (4) - 18.08.2024 01:53 [08:03:26]1206 (1) - 0 [08:03:26]OFD Sender: Remove packet 260521 [08:03:26]ProducePacketName [08:03:26]name=ofd_packets/00260521 [08:03:26]NVStorageDeleteData [08:03:26]Write to MH i2c: 01 00 00 09 52 5B [08:03:26]Write i2c OK [08:03:26]MH_I2C_Read... [08:03:26]Read from MH i2c: 01 [08:03:26]MH_I2C_Read... [08:03:26]Read from MH i2c: 01 07 00 [08:03:26]MH_I2C_Read... [08:03:26]Read from MH i2c: 01 07 00 09 52 00 00 00 00 00 8C 0C FA [08:03:26]RasterBufferAndPrint [08:03:26]line [08:03:26]line [08:03:26]line [08:03:26]line [08:03:26]line [08:03:26]written 0, free lines is 3217 [08:03:26]MH_Cut [08:03:26]Write to MH i2c: D1 01 00 10 52 01 34 [08:03:26]Write i2c OK [08:03:26]MH_I2C_Read... [08:03:26]Read from MH i2c: D1 [08:03:26]MH_I2C_Read... [08:03:26]Read from MH i2c: D1 01 00 [08:03:26]MH_I2C_Read... [08:03:26]Read from MH i2c: D1 01 00 10 52 00 33 [08:03:26]Write to MH i2c: 01 00 00 11 52 63 [08:03:26]Write i2c OK [08:03:26]MH_I2C_Read... [08:03:27]OFD Sender: No OFD packet to send [08:03:28]*** Cut start [08:03:28]*** Purtial cut [08:03:28]*** Stage 1: CUTSNS_PIN = 1 [08:03:30]Read from MH i2c: 01 [08:03:30]MH_I2C_Read... [08:03:30]*** Stop cut motor [08:03:30]*** Cut end [08:03:30]Read from MH i2c: 01 07 00 [08:03:30]MH_I2C_Read... [08:03:30]Read from MH i2c: 01 07 00 11 52 00 00 00 00 00 FF 0F 78 [08:03:30]process_action close_receipt done [08:03:30]requested_data is exist [08:03:30]produce_requested_data [08:03:30]requested_item fm.sn is exist - process it [08:03:30]wFMCommunicate request_size=4 [08:03:30]MH_SAM_APDU [08:03:30]CAPDU: 80 11 00 00 [08:03:30]Write to MH i2c: E2 08 00 12 52 80 11 00 00 00 00 00 00 DE [08:03:30]Write i2c OK [08:03:30]MH_I2C_Read... [08:03:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:30]Read from MH i2c: E2 [08:03:30]MH_I2C_Read... [08:03:30]Read from MH i2c: E2 17 00 [08:03:30]MH_I2C_Read... [08:03:30]Read from MH i2c: E2 17 00 12 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 2B [08:03:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:03:30]wFMCommunicate OK [08:03:30]requested_item fd.num is exist - process it [08:03:30]SAM_PROTO_GetFieldsCounters [08:03:30]wFMCommunicate request_size=4 [08:03:30]MH_SAM_APDU [08:03:30]CAPDU: 80 13 00 00 [08:03:30]Write to MH i2c: E2 08 00 13 52 80 13 00 00 00 00 00 00 E1 [08:03:30]Write i2c OK [08:03:30]MH_I2C_Read... [08:03:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:03:30]Read from MH i2c: E2 [08:03:30]MH_I2C_Read... [08:03:30]Read from MH i2c: E2 62 00 [08:03:30]MH_I2C_Read... [08:03:30]Read from MH i2c: E2 62 00 13 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A9 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [08:03: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A9 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:03:30]wFMCommunicate OK [08:03:30]SAM_PROTO_GetFieldsCounters done [08:03:30]requested_item shift.num is exist - process it [08:03:30]requested_item shift.opened is exist - process it [08:03:30]req_shift_opened [08:03:30]FM_GetShiftState [08:03:30]SAM_PROTO_GetShiftState [08:03:30]wFMCommunicate request_size=4 [08:03:30]MH_SAM_APDU [08:03:30]CAPDU: 80 13 01 00 [08:03:30]Write to MH i2c: E2 08 00 14 52 80 13 01 00 00 00 00 00 E3 [08:03:30]Write i2c OK [08:03:30]MH_I2C_Read... [08:03:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:30]Read from MH i2c: E2 [08:03:30]MH_I2C_Read... [08:03:30]Read from MH i2c: E2 0E 00 [08:03:30]MH_I2C_Read... [08:03:30]Read from MH i2c: E2 0E 00 14 52 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 20 [08:03:30]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:03:30]wFMCommunicate OK [08:03:30]SAM_PROTO_GetShiftState done [08:03:30]FM_GetShiftState done [08:03:30]req_shift_opened done [08:03:30]requested_item shift.open_date is exist - process it [08:03:30]req_shift_open_date [08:03:30]req_shift_open_date done [08:03:30]produce_requested_data done [08:03:30]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260521,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [08:03:30]process_action_free close_receipt [08:03:30]json_value_free [08:03:30]json_value_free done [08:03:30]process_json_proto returns [08:03:30]Send response to host [08:03:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260521,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [08:03:30]free response buf [08:03:30]execute_script done [08:03:30]execute_script returns [08:03:30]free content buf [08:03:30]Sock 7.Close socket [08:03:30]Sock 7.Thread stoped [08:03:32]OFD Sender: No OFD packet to send [08:03:37]OFD Sender: No OFD packet to send [08:03:42]OFD Sender: No OFD packet to send [08:03:47]OFD Sender: No OFD packet to send [08:03:52]OFD Sender: No OFD packet to send [08:03:57]OFD Sender: No OFD packet to send [08:04:02]OFD Sender: No OFD packet to send [08:04:07]OFD Sender: No OFD packet to send [08:04:12]OFD Sender: No OFD packet to send [08:04:17]OFD Sender: No OFD packet to send [08:04:22]OFD Sender: No OFD packet to send [08:04:27]OFD Sender: No OFD packet to send [08:04:32]OFD Sender: No OFD packet to send [08:04:37]OFD Sender: No OFD packet to send [08:04:42]OFD Sender: No OFD packet to send [08:04:47]OFD Sender: No OFD packet to send [08:04:52]OFD Sender: No OFD packet to send [08:04:57]OFD Sender: No OFD packet to send [08:05:02]OFD Sender: No OFD packet to send [08:05:07]OFD Sender: No OFD packet to send [08:05:12]OFD Sender: No OFD packet to send [08:05:17]OFD Sender: No OFD packet to send [08:05:22]OFD Sender: No OFD packet to send [08:05:27]OFD Sender: No OFD packet to send [08:05:32]OFD Sender: No OFD packet to send [08:05:37]OFD Sender: No OFD packet to send [08:05:42]OFD Sender: No OFD packet to send [08:05:47]OFD Sender: No OFD packet to send [08:05:52]OFD Sender: No OFD packet to send [08:05:57]OFD Sender: No OFD packet to send [08:06:02]OFD Sender: No OFD packet to send [08:06:07]OFD Sender: No OFD packet to send [08:06:12]OFD Sender: No OFD packet to send [08:06:17]OFD Sender: No OFD packet to send [08:06:22]OFD Sender: No OFD packet to send [08:06:27]OFD Sender: No OFD packet to send [08:06:32]OFD Sender: No OFD packet to send [08:06:37]OFD Sender: No OFD packet to send [08:06:42]OFD Sender: No OFD packet to send [08:06:47]OFD Sender: No OFD packet to send [08:06:52]OFD Sender: No OFD packet to send [08:06:57]OFD Sender: No OFD packet to send [08:07:02]OFD Sender: No OFD packet to send [08:07:07]OFD Sender: No OFD packet to send [08:07:12]OFD Sender: No OFD packet to send [08:07:17]OFD Sender: No OFD packet to send [08:07:22]OFD Sender: No OFD packet to send [08:07:27]OFD Sender: No OFD packet to send [08:07:32]OFD Sender: No OFD packet to send [08:07:37]OFD Sender: No OFD packet to send [08:07:42]OFD Sender: No OFD packet to send [08:07:47]OFD Sender: No OFD packet to send [08:07:52]OFD Sender: No OFD packet to send [08:07:57]OFD Sender: No OFD packet to send [08:08:02]OFD Sender: No OFD packet to send [08:08:07]OFD Sender: No OFD packet to send [08:08:12]OFD Sender: No OFD packet to send [08:08:17]OFD Sender: No OFD packet to send [08:08:22]OFD Sender: No OFD packet to send [08:08:27]OFD Sender: No OFD packet to send [08:08:32]OFD Sender: No OFD packet to send [08:08:35]accept exits with 9 [08:08:35]New connection [08:08:35]New thread 3066473828 created [08:08:35]Thread 3066617188 joined [08:08:35]Waiting for new connection... [08:08:35] Sock 9.Parse request [08:08:35]Sock 9.Check first char [08:08:35]Sock 9.First char is OK [08:08:35]request: POST /json_proto HTTP/1.0 [08:08:35]Method: POST [08:08:35]URL: /json_proto [08:08:35]Method is POST - this is cgi request [08:08:35]url: /json_proto [08:08:35]query_string will be loaded in cgi processing [08:08:35]execute_cgi json_proto POST (null) [08:08:35]execute_cgi path=json_proto method=POST [08:08:35]POST find Content-Length [08:08:35]Host: 172.17.55.133:8080 [08:08:35]Content-Length: 804 [08:08:35]Content-Type: application/json [08:08:35] [08:08:35]POST finish read [08:08:35]Found Content-Length = 804 [08:08:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:08:35]execute_script... [08:08: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)1036065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:08:35]POST & json_proto [08:08:35]process_json_proto [08:08:35]json parsed OK: [08:08:35]protocol is kg_v1.0 [08:08:35]action value=close_receipt [08:08:35]process_action close_receipt [08:08:35]cmd_close_receipt [08:08:35]MH_GetDate [08:08:35]Write to MH i2c: F0 00 00 15 52 56 [08:08:35]Write i2c OK [08:08:35]MH_I2C_Read... [08:08:35]Read from MH i2c: F0 [08:08:35]MH_I2C_Read... [08:08:35]Read from MH i2c: F0 09 00 [08:08:35]MH_I2C_Read... [08:08:35]Read from MH i2c: F0 09 00 15 52 00 06 AC C1 66 34 48 D8 65 F1 [08:08:35]GetLastDocTimeStamp 1723968207 [08:08:35]current date 1723968518 [08:08:35]FM_GetShiftState [08:08:35]SAM_PROTO_GetShiftState [08:08:35]wFMCommunicate request_size=4 [08:08:35]MH_SAM_APDU [08:08:35]CAPDU: 80 13 01 00 [08:08:35]Write to MH i2c: E2 08 00 16 52 80 13 01 00 00 00 00 00 E5 [08:08:35]Write i2c OK [08:08:35]MH_I2C_Read... [08:08:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:35]Read from MH i2c: E2 [08:08:35]MH_I2C_Read... [08:08:35]Read from MH i2c: E2 0E 00 [08:08:35]MH_I2C_Read... [08:08:35]Read from MH i2c: E2 0E 00 16 52 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 22 [08:08:35]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:08:35]wFMCommunicate OK [08:08:35]SAM_PROTO_GetShiftState done [08:08:35]FM_GetShiftState done [08:08:35]opened in 1723940556 [08:08:35]opened+sec_in_day 1724026956 [08:08:35]quantity*price = 200010 [08:08:35]sum+1 = 200011 [08:08:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.10 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.10 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 80 18.08.2024 08:08 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260522 ФПД: 38264656621603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T080838&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260522&fm=38264656621603&tin=02508201610067®Number=0000000000091865&sum=200010 [08:08:36]StoreToDocumentArchive [08:08:36]shift 449 fd 260522 [08:08:36]save to /storage/0449/doc_00260522 [08:08:36]save last doc name /storage/0449/doc_00260522 to /storage/kkm_last_doc_name [08:08:36]save OK [08:08:36]Clear old archive folders... [08:08:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:08:36]tlvbuf is 004D7AC0 [08:08:36]SAM_PROTO_ClearQueue [08:08:36]wFMCommunicate request_size=4 [08:08:36]MH_SAM_APDU [08:08:36]CAPDU: 80 09 00 00 [08:08:36]Write to MH i2c: E2 08 00 23 52 80 09 00 00 00 00 00 00 E7 [08:08:36]Write i2c OK [08:08:36]MH_I2C_Read... [08:08:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:08:36]Read from MH i2c: E2 [08:08:36]MH_I2C_Read... [08:08:36]Read from MH i2c: E2 03 00 [08:08:36]MH_I2C_Read... [08:08:36]Read from MH i2c: E2 03 00 23 52 00 90 00 E9 [08:08:36]RAPDU: 90 00 [08:08:36]wFMCommunicate OK [08:08:36]SAM_PROTO_ClearQueue done [08:08:36]KKMCreateOFDPacket [08:08:36]OFDProtocolAddRootSTLVToBuf [08:08:36]FM_MakeSignedData [08:08:36]FM_MakeSignedData [08:08:36]SAM_PROTO_SignData [08:08:36]wFMCommunicate request_size=4 [08:08:36]MH_SAM_APDU [08:08:36]CAPDU: 80 0D 01 02 [08:08:36]Write to MH i2c: E2 08 00 24 52 80 0D 01 02 00 00 00 00 EF [08:08:36]Write i2c OK [08:08:36]MH_I2C_Read... [08:08:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:08:36]Read from MH i2c: E2 [08:08:36]MH_I2C_Read... [08:08:36]Read from MH i2c: E2 03 00 [08:08:36]MH_I2C_Read... [08:08:36]Read from MH i2c: E2 03 00 24 52 00 90 00 EA [08:08:36]RAPDU: 90 00 [08:08:36]wFMCommunicate OK [08:08:36]wFMCommunicate request_size=255 [08:08:36]MH_SAM_APDU [08:08:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 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 4A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 06 AC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AA F9 03 00 35 04 06 00 22 [08:08:36]Write to MH i2c: E2 02 01 25 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 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 4A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 06 AC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AA F9 03 00 35 04 06 00 22 00 00 37 [08:08:36]Write i2c OK [08:08:36]MH_I2C_Read... [08:08:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:36]Read from MH i2c: E2 [08:08:36]MH_I2C_Read... [08:08:36]Read from MH i2c: E2 03 00 [08:08:36]MH_I2C_Read... [08:08:36]Read from MH i2c: E2 03 00 25 52 00 90 00 EB [08:08:36]RAPDU: 90 00 [08:08:36]wFMCommunicate OK [08:08:36]wFMCommunicate request_size=10 [08:08:36]MH_SAM_APDU [08:08:36]CAPDU: 80 0D 02 02 05 CD 2F 43 F0 23 [08:08:36]Write to MH i2c: E2 0D 00 26 52 80 0D 02 02 05 00 CD 2F 43 F0 23 00 00 4E [08:08:36]Write i2c OK [08:08:36]MH_I2C_Read... [08:08:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:36]Read from MH i2c: E2 [08:08:36]MH_I2C_Read... [08:08:36]Read from MH i2c: E2 03 00 [08:08:36]MH_I2C_Read... [08:08:36]Read from MH i2c: E2 03 00 26 52 00 90 00 EC [08:08:36]RAPDU: 90 00 [08:08:36]wFMCommunicate OK [08:08:36]wFMCommunicate request_size=4 [08:08:36]MH_SAM_APDU [08:08:36]CAPDU: 80 0D 03 02 [08:08:36]Write to MH i2c: E2 08 00 27 52 80 0D 03 02 00 00 00 00 F4 [08:08:36]Write i2c OK [08:08:36]MH_I2C_Read... [08:08:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:08:36]Read from MH i2c: E2 [08:08:36]MH_I2C_Read... [08:08:36]Read from MH i2c: E2 0B 00 [08:08:36]MH_I2C_Read... [08:08:36]Read from MH i2c: E2 0B 00 27 52 00 98 30 5D E7 FA FC 8D D6 90 00 5A [08:08:36]RAPDU: 98 30 5D E7 FA FC 8D D6 90 00 [08:08:36]wFMCommunicate OK [08:08:36]SAM_PROTO_SignData done [08:08:36]FM_MakeSignedData done [08:08:36]CreateOFDProtocolMessage [08:08:36]wFMCommunicate request_size=4 [08:08:36]MH_SAM_APDU [08:08:36]CAPDU: 80 11 00 00 [08:08:36]Write to MH i2c: E2 08 00 28 52 80 11 00 00 00 00 00 00 F4 [08:08:36]Write i2c OK [08:08:36]MH_I2C_Read... [08:08:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:36]Read from MH i2c: E2 [08:08:36]MH_I2C_Read... [08:08:36]Read from MH i2c: E2 17 00 [08:08:36]MH_I2C_Read... [08:08:36]Read from MH i2c: E2 17 00 28 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 41 [08:08:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:08:36]wFMCommunicate OK [08:08:36]CreateOFDProtocolMessage done [08:08:36]OFDSenderStorePacket 260522 [08:08:36]StoreOFDPacket docnum=260522 [08:08:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 EA D8 07 01 25 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 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 4A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 06 AC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AA F9 03 00 35 04 06 00 22 CD 2F 43 F0 23 98 30 5D E7 FA FC 8D D6 [08:08:36]CheckFolder [08:08:36]dirname=/storage/ofd_packets [08:08:36]CheckFolder done [08:08:36]ProducePacketName [08:08:36]name=ofd_packets/00260522 [08:08:36]NVStorageSaveData ofd_packets/00260522 [08:08:36]File name is /storage/ofd_packets/00260522 [08:08:36]Write 301 bytes [08:08:36]NVStorageSaveData done [08:08:36]OFDSenderStorePacket done [08:08:36]KKMCreateOFDPacket done [08:08:36]NVStorageSaveData kkm_last_timestamp [08:08:36]File name is /storage/kkm_last_timestamp [08:08:36]Write 4 bytes [08:08:36]NVStorageSaveData done [08:08:36]ExternCall_PrintAddStr [08:08:36]wPrintStart [08:08:36]Write to MH i2c: 01 00 00 29 52 7B [08:08:36]Write i2c OK [08:08:36]MH_I2C_Read... [08:08:36]Read from MH i2c: 01 [08:08:36]MH_I2C_Read... [08:08:36]Read from MH i2c: 01 07 00 [08:08:36]MH_I2C_Read... [08:08:36]Read from MH i2c: 01 07 00 29 52 00 00 00 00 00 FF 0F 90 [08:08:36]RasterBufferAndPrint [08:08:36]line Счет N : (1)1036065 [08:08:36]line ИНН: 02508201610067 [08:08:36]line Контрольно-Кассовый Чек [08:08:36]line ПРОДАЖА [08:08:36]line ТРК (МРК, ГНК) : 12 [08:08:36]line Товар: 2710124130 [08:08:36]line Аи-92-К-5 [08:08:36]line 29.500 * 67.80 [08:08:36]line = 2000.10 [08:08:36]line НДС 12% НСП 1% [08:08:36]line > о реализуемом товаре [08:08:36]line ИТОГО: 2000.10 [08:08:36]line НСП 1% : 17.70 [08:08:36]line НДС 12% : 212.40 [08:08:36]line Наличными: 0.00 [08:08:36]line Безнал.: 2000.10 [08:08:36]line Место: АЗС № 94 "Партнер Нефть" [08:08:36]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [08:08:36]line СНО: Общий режим [08:08:36]line Чек 80 18.08.2024 08:08 [08:08:36]line Смена: 449 ФФД: 1.0 [08:08:36]line ЗНМ: 0300000099 [08:08:36]line РНМ: 0000000000091865 [08:08:36]line Версия ККМ: 001 [08:08:36]line Платежная система: O! деньги [08:08:36]line ФМ: 0000000000871820 [08:08:36]line ФД: 260522 [08:08:36]line ФПД: 38264656621603 [08:08:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T080838&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260522&fm=38264656621603&tin=02508201610067®Number=0000000000091865&sum=200010 [08:08:37]OFD Sender: Processing packet 260522 [packets to send 192, broken 191] [08:08:37]ProducePacketName [08:08:37]name=ofd_packets/00260522 [08:08:37]OFD Sender: To server: pG, [08:08:37]CommunicateWithHost lk.salyk.kg:30040 [08:08:37]ConnectInit lk.salyk.kg [08:08:37]written 0, free lines is 4095 [08:08:37]Connected sock=10 [08:08: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 30 0F 01 00 00 EA D8 07 01 25 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 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 4A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 06 AC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AA F9 03 00 35 04 06 00 22 CD 2F 43 F0 23 98 30 5D E7 FA FC 8D D6 [08:08: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 30 4F 00 00 00 46 17 47 00 05 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 30 10 04 04 00 AA F9 03 00 F4 03 04 00 5C 55 C1 66 B6 04 01 00 00 16 5C 6D CA F6 CD 68 5D [08:08:37]CommunicateWithHost err = 0 [08:08:37]CheckOFDResponse [08:08:37]1017 (14) - 77093643461234 [08:08:37]1041 (16) - 0000000000871820 [08:08:37]1040 (4) - 260522 [08:08:37]1012 (4) - 18.08.2024 01:58 [08:08:37]1206 (1) - 0 [08:08:37]OFD Sender: Remove packet 260522 [08:08:37]ProducePacketName [08:08:37]name=ofd_packets/00260522 [08:08:37]NVStorageDeleteData [08:08:37]Write to MH i2c: 01 00 00 53 52 A5 [08:08:37]Write i2c OK [08:08:37]MH_I2C_Read... [08:08:37]Read from MH i2c: 01 [08:08:37]MH_I2C_Read... [08:08:37]Read from MH i2c: 01 07 00 [08:08:37]MH_I2C_Read... [08:08:37]Read from MH i2c: 01 07 00 53 52 00 00 00 00 00 82 0C 3A [08:08:37]RasterBufferAndPrint [08:08:37]line [08:08:37]line [08:08:37]line [08:08:37]line [08:08:37]line [08:08:37]written 0, free lines is 3206 [08:08:37]MH_Cut [08:08:37]Write to MH i2c: D1 01 00 5A 52 01 7E [08:08:37]Write i2c OK [08:08:37]MH_I2C_Read... [08:08:37]Read from MH i2c: D1 [08:08:37]MH_I2C_Read... [08:08:37]Read from MH i2c: D1 01 00 [08:08:37]MH_I2C_Read... [08:08:37]Read from MH i2c: D1 01 00 5A 52 00 7D [08:08:37]Write to MH i2c: 01 00 00 5B 52 AD [08:08:37]Write i2c OK [08:08:37]MH_I2C_Read... [08:08:38]OFD Sender: No OFD packet to send [08:08:38]*** Cut start [08:08:38]*** Purtial cut [08:08:38]*** Stage 1: CUTSNS_PIN = 1 [08:08:40]Read from MH i2c: 01 [08:08:40]MH_I2C_Read... [08:08:40]*** Stop cut motor [08:08:40]*** Cut end [08:08:40]Read from MH i2c: 01 07 00 [08:08:40]MH_I2C_Read... [08:08:40]Read from MH i2c: 01 07 00 5B 52 00 00 00 00 00 FF 0F C2 [08:08:40]process_action close_receipt done [08:08:40]requested_data is exist [08:08:40]produce_requested_data [08:08:40]requested_item fm.sn is exist - process it [08:08:40]wFMCommunicate request_size=4 [08:08:40]MH_SAM_APDU [08:08:40]CAPDU: 80 11 00 00 [08:08:40]Write to MH i2c: E2 08 00 5C 52 80 11 00 00 00 00 00 00 28 [08:08:40]Write i2c OK [08:08:40]MH_I2C_Read... [08:08:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:41]Read from MH i2c: E2 [08:08:41]MH_I2C_Read... [08:08:41]Read from MH i2c: E2 17 00 [08:08:41]MH_I2C_Read... [08:08:41]Read from MH i2c: E2 17 00 5C 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 75 [08:08:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:08:41]wFMCommunicate OK [08:08:41]requested_item fd.num is exist - process it [08:08:41]SAM_PROTO_GetFieldsCounters [08:08:41]wFMCommunicate request_size=4 [08:08:41]MH_SAM_APDU [08:08:41]CAPDU: 80 13 00 00 [08:08:41]Write to MH i2c: E2 08 00 5D 52 80 13 00 00 00 00 00 00 2B [08:08:41]Write i2c OK [08:08:41]MH_I2C_Read... [08:08:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:08:41]Read from MH i2c: E2 [08:08:41]MH_I2C_Read... [08:08:41]Read from MH i2c: E2 62 00 [08:08:41]MH_I2C_Read... [08:08:41]Read from MH i2c: E2 62 00 5D 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 AA F9 03 00 0E 04 04 00 C1 01 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 A2 [08:08: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 AA F9 03 00 0E 04 04 00 C1 01 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 [08:08:41]wFMCommunicate OK [08:08:41]SAM_PROTO_GetFieldsCounters done [08:08:41]requested_item shift.num is exist - process it [08:08:41]requested_item shift.opened is exist - process it [08:08:41]req_shift_opened [08:08:41]FM_GetShiftState [08:08:41]SAM_PROTO_GetShiftState [08:08:41]wFMCommunicate request_size=4 [08:08:41]MH_SAM_APDU [08:08:41]CAPDU: 80 13 01 00 [08:08:41]Write to MH i2c: E2 08 00 5E 52 80 13 01 00 00 00 00 00 2D [08:08:41]Write i2c OK [08:08:41]MH_I2C_Read... [08:08:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:41]Read from MH i2c: E2 [08:08:41]MH_I2C_Read... [08:08:41]Read from MH i2c: E2 0E 00 [08:08:41]MH_I2C_Read... [08:08:41]Read from MH i2c: E2 0E 00 5E 52 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 6A [08:08:41]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:08:41]wFMCommunicate OK [08:08:41]SAM_PROTO_GetShiftState done [08:08:41]FM_GetShiftState done [08:08:41]req_shift_opened done [08:08:41]requested_item shift.open_date is exist - process it [08:08:41]req_shift_open_date [08:08:41]req_shift_open_date done [08:08:41]produce_requested_data done [08:08:41]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260522,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [08:08:41]process_action_free close_receipt [08:08:41]json_value_free [08:08:41]json_value_free done [08:08:41]process_json_proto returns [08:08:41]Send response to host [08:08:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260522,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [08:08:41]free response buf [08:08:41]execute_script done [08:08:41]execute_script returns [08:08:41]free content buf [08:08:41]Sock 9.Close socket [08:08:41]Sock 9.Thread stoped [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:10]accept exits with 7 [08:09:10]New connection [08:09:10]New thread 3066617188 created [08:09:10]Thread 3066473828 joined [08:09:10]Waiting for new connection... [08:09:10] Sock 7.Parse request [08:09:10]Sock 7.Check first char [08:09:10]Sock 7.First char is OK [08:09:10]request: POST /json_proto HTTP/1.0 [08:09:10]Method: POST [08:09:10]URL: /json_proto [08:09:10]Method is POST - this is cgi request [08:09:10]url: /json_proto [08:09:10]query_string will be loaded in cgi processing [08:09:10]execute_cgi json_proto POST (null) [08:09:10]execute_cgi path=json_proto method=POST [08:09:10]POST find Content-Length [08:09:10]Host: 172.17.55.133:8080 [08:09:10]Content-Length: 804 [08:09:10]Content-Type: application/json [08:09:10] [08:09:10]POST finish read [08:09:10]Found Content-Length = 804 [08:09:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:10]execute_script... [08:09: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)1036067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:10]POST & json_proto [08:09:10]process_json_proto [08:09:10]json parsed OK: [08:09:10]protocol is kg_v1.0 [08:09:10]action value=close_receipt [08:09:10]process_action close_receipt [08:09:10]cmd_close_receipt [08:09:10]MH_GetDate [08:09:10]Write to MH i2c: F0 00 00 5F 52 A0 [08:09:10]Write i2c OK [08:09:10]MH_I2C_Read... [08:09:10]Read from MH i2c: F0 [08:09:10]MH_I2C_Read... [08:09:10]Read from MH i2c: F0 09 00 [08:09:10]MH_I2C_Read... [08:09:10]Read from MH i2c: F0 09 00 5F 52 00 2A AC C1 66 34 48 D8 65 5F [08:09:10]GetLastDocTimeStamp 1723968518 [08:09:10]current date 1723968554 [08:09:10]FM_GetShiftState [08:09:10]SAM_PROTO_GetShiftState [08:09:10]wFMCommunicate request_size=4 [08:09:10]MH_SAM_APDU [08:09:10]CAPDU: 80 13 01 00 [08:09:10]Write to MH i2c: E2 08 00 60 52 80 13 01 00 00 00 00 00 2F [08:09:10]Write i2c OK [08:09:10]MH_I2C_Read... [08:09:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:10]Read from MH i2c: E2 [08:09:10]MH_I2C_Read... [08:09:10]Read from MH i2c: E2 0E 00 [08:09:10]MH_I2C_Read... [08:09:10]Read from MH i2c: E2 0E 00 60 52 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 6C [08:09:10]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:09:10]wFMCommunicate OK [08:09:10]SAM_PROTO_GetShiftState done [08:09:10]FM_GetShiftState done [08:09:10]opened in 1723940556 [08:09:10]opened+sec_in_day 1724026956 [08:09:10]quantity*price = 100005 [08:09:10]sum+1 = 100006 [08:09:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 81 18.08.2024 08:09 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260523 ФПД: 98283582100908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T080914&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260523&fm=98283582100908&tin=02508201610067®Number=0000000000091865&sum=100005 [08:09:11]StoreToDocumentArchive [08:09:11]shift 449 fd 260523 [08:09:11]save to /storage/0449/doc_00260523 [08:09:11]save last doc name /storage/0449/doc_00260523 to /storage/kkm_last_doc_name [08:09:11]save OK [08:09:11]Clear old archive folders... [08:09:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:09:11]tlvbuf is 0035CF80 [08:09:11]SAM_PROTO_ClearQueue [08:09:11]wFMCommunicate request_size=4 [08:09:11]MH_SAM_APDU [08:09:11]CAPDU: 80 09 00 00 [08:09:11]Write to MH i2c: E2 08 00 6D 52 80 09 00 00 00 00 00 00 31 [08:09:11]Write i2c OK [08:09:11]MH_I2C_Read... [08:09:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:09:12]Read from MH i2c: E2 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: E2 03 00 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: E2 03 00 6D 52 00 90 00 33 [08:09:12]RAPDU: 90 00 [08:09:12]wFMCommunicate OK [08:09:12]SAM_PROTO_ClearQueue done [08:09:12]KKMCreateOFDPacket [08:09:12]OFDProtocolAddRootSTLVToBuf [08:09:12]FM_MakeSignedData [08:09:12]FM_MakeSignedData [08:09:12]SAM_PROTO_SignData [08:09:12]wFMCommunicate request_size=4 [08:09:12]MH_SAM_APDU [08:09:12]CAPDU: 80 0D 01 02 [08:09:12]Write to MH i2c: E2 08 00 6E 52 80 0D 01 02 00 00 00 00 39 [08:09:12]Write i2c OK [08:09:12]MH_I2C_Read... [08:09:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:09:12]Read from MH i2c: E2 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: E2 03 00 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: E2 03 00 6E 52 00 90 00 34 [08:09:12]RAPDU: 90 00 [08:09:12]wFMCommunicate OK [08:09:12]wFMCommunicate request_size=255 [08:09:12]MH_SAM_APDU [08:09:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 2A AC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AB F9 03 00 35 04 06 00 59 [08:09:12]Write to MH i2c: E2 02 01 6F 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 2A AC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AB F9 03 00 35 04 06 00 59 00 00 5F [08:09:12]Write i2c OK [08:09:12]MH_I2C_Read... [08:09:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:12]Read from MH i2c: E2 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: E2 03 00 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: E2 03 00 6F 52 00 90 00 35 [08:09:12]RAPDU: 90 00 [08:09:12]wFMCommunicate OK [08:09:12]wFMCommunicate request_size=10 [08:09:12]MH_SAM_APDU [08:09:12]CAPDU: 80 0D 02 02 05 63 6D FF 95 AC [08:09:12]Write to MH i2c: E2 0D 00 70 52 80 0D 02 02 05 00 63 6D FF 95 AC 00 00 56 [08:09:12]Write i2c OK [08:09:12]MH_I2C_Read... [08:09:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:12]Read from MH i2c: E2 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: E2 03 00 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: E2 03 00 70 52 00 90 00 36 [08:09:12]RAPDU: 90 00 [08:09:12]wFMCommunicate OK [08:09:12]wFMCommunicate request_size=4 [08:09:12]MH_SAM_APDU [08:09:12]CAPDU: 80 0D 03 02 [08:09:12]Write to MH i2c: E2 08 00 71 52 80 0D 03 02 00 00 00 00 3E [08:09:12]Write i2c OK [08:09:12]MH_I2C_Read... [08:09:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:09:12]Read from MH i2c: E2 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: E2 0B 00 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: E2 0B 00 71 52 00 4C 57 C5 C0 7B 7D 7B C0 90 00 9A [08:09:12]RAPDU: 4C 57 C5 C0 7B 7D 7B C0 90 00 [08:09:12]wFMCommunicate OK [08:09:12]SAM_PROTO_SignData done [08:09:12]FM_MakeSignedData done [08:09:12]CreateOFDProtocolMessage [08:09:12]wFMCommunicate request_size=4 [08:09:12]MH_SAM_APDU [08:09:12]CAPDU: 80 11 00 00 [08:09:12]Write to MH i2c: E2 08 00 72 52 80 11 00 00 00 00 00 00 3E [08:09:12]Write i2c OK [08:09:12]MH_I2C_Read... [08:09:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:12]Read from MH i2c: E2 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: E2 17 00 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: E2 17 00 72 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 8B [08:09:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:09:12]wFMCommunicate OK [08:09:12]CreateOFDProtocolMessage done [08:09:12]OFDSenderStorePacket 260523 [08:09:12]StoreOFDPacket docnum=260523 [08:09:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 7E 37 07 01 72 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 2A AC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AB F9 03 00 35 04 06 00 59 63 6D FF 95 AC 4C 57 C5 C0 7B 7D 7B C0 [08:09:12]CheckFolder [08:09:12]dirname=/storage/ofd_packets [08:09:12]CheckFolder done [08:09:12]ProducePacketName [08:09:12]name=ofd_packets/00260523 [08:09:12]NVStorageSaveData ofd_packets/00260523 [08:09:12]File name is /storage/ofd_packets/00260523 [08:09:12]Write 301 bytes [08:09:12]NVStorageSaveData done [08:09:12]OFDSenderStorePacket done [08:09:12]KKMCreateOFDPacket done [08:09:12]NVStorageSaveData kkm_last_timestamp [08:09:12]File name is /storage/kkm_last_timestamp [08:09:12]Write 4 bytes [08:09:12]NVStorageSaveData done [08:09:12]ExternCall_PrintAddStr [08:09:12]wPrintStart [08:09:12]Write to MH i2c: 01 00 00 73 52 C5 [08:09:12]Write i2c OK [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: 01 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: 01 07 00 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: 01 07 00 73 52 00 00 00 00 00 FF 0F DA [08:09:12]RasterBufferAndPrint [08:09:12]line Счет N : (1)1036067 [08:09:12]line ИНН: 02508201610067 [08:09:12]line Контрольно-Кассовый Чек [08:09:12]line ПРОДАЖА [08:09:12]line ТРК (МРК, ГНК) : 32 [08:09:12]line Товар: 2710124130 [08:09:12]line Аи-92-К-5 [08:09:12]line 14.750 * 67.80 [08:09:12]line = 1000.05 [08:09:12]line НДС 12% НСП 1% [08:09:12]line > о реализуемом товаре [08:09:12]line ИТОГО: 1000.05 [08:09:12]line НСП 1% : 8.85 [08:09:12]line НДС 12% : 106.20 [08:09:12]line Наличными: 0.00 [08:09:12]line Безнал.: 1000.05 [08:09:12]line Место: АЗС № 94 "Партнер Нефть" [08:09:12]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [08:09:12]line СНО: Общий режим [08:09:12]line Чек 81 18.08.2024 08:09 [08:09:12]line Смена: 449 ФФД: 1.0 [08:09:12]line ЗНМ: 0300000099 [08:09:12]line РНМ: 0000000000091865 [08:09:12]line Версия ККМ: 001 [08:09:12]line Платежная система: O! деньги [08:09:12]line ФМ: 0000000000871820 [08:09:12]line ФД: 260523 [08:09:12]line ФПД: 98283582100908 [08:09:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T080914&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260523&fm=98283582100908&tin=02508201610067®Number=0000000000091865&sum=100005 [08:09:12]written 0, free lines is 4095 [08:09:12]OFD Sender: Processing packet 260523 [packets to send 192, broken 191] [08:09:12]ProducePacketName [08:09:12]name=ofd_packets/00260523 [08:09:12]OFD Sender: To server: pG, [08:09:12]CommunicateWithHost lk.salyk.kg:30040 [08:09:12]ConnectInit lk.salyk.kg [08:09:12]Connected sock=10 [08:09: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 30 0F 01 00 00 7E 37 07 01 72 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 2A AC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AB F9 03 00 35 04 06 00 59 63 6D FF 95 AC 4C 57 C5 C0 7B 7D 7B C0 [08:09: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 30 4F 00 00 00 44 BC 47 00 29 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AB F9 03 00 F4 03 04 00 80 55 C1 66 B6 04 01 00 00 40 A4 07 30 39 BC BE 1F [08:09:12]CommunicateWithHost err = 0 [08:09:12]CheckOFDResponse [08:09:12]1017 (14) - 77093643461234 [08:09:12]1041 (16) - 0000000000871820 [08:09:12]1040 (4) - 260523 [08:09:12]1012 (4) - 18.08.2024 01:59 [08:09:12]1206 (1) - 0 [08:09:12]OFD Sender: Remove packet 260523 [08:09:12]ProducePacketName [08:09:12]name=ofd_packets/00260523 [08:09:12]NVStorageDeleteData [08:09:12]Write to MH i2c: 01 00 00 9D 52 EF [08:09:12]Write i2c OK [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: 01 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: 01 07 00 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: 01 07 00 9D 52 00 00 00 00 00 86 0C 88 [08:09:12]RasterBufferAndPrint [08:09:12]line [08:09:12]line [08:09:12]line [08:09:12]line [08:09:12]line [08:09:12]written 0, free lines is 3209 [08:09:12]MH_Cut [08:09:12]Write to MH i2c: D1 01 00 A4 52 01 C8 [08:09:12]Write i2c OK [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: D1 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: D1 01 00 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: D1 01 00 A4 52 00 C7 [08:09:12]Write to MH i2c: 01 00 00 A5 52 F7 [08:09:12]Write i2c OK [08:09:12]MH_I2C_Read... [08:09:13]OFD Sender: No OFD packet to send [08:09:14]*** Cut start [08:09:14]*** Purtial cut [08:09:14]*** Stage 1: CUTSNS_PIN = 1 [08:09:16]Read from MH i2c: 01 [08:09:16]MH_I2C_Read... [08:09:16]*** Stop cut motor [08:09:16]*** Cut end [08:09:16]Read from MH i2c: 01 07 00 [08:09:16]MH_I2C_Read... [08:09:16]Read from MH i2c: 01 07 00 A5 52 00 00 00 00 00 FF 0F 0C [08:09:16]process_action close_receipt done [08:09:16]requested_data is exist [08:09:16]produce_requested_data [08:09:16]requested_item fm.sn is exist - process it [08:09:16]wFMCommunicate request_size=4 [08:09:16]MH_SAM_APDU [08:09:16]CAPDU: 80 11 00 00 [08:09:16]Write to MH i2c: E2 08 00 A6 52 80 11 00 00 00 00 00 00 72 [08:09:16]Write i2c OK [08:09:16]MH_I2C_Read... [08:09:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:16]Read from MH i2c: E2 [08:09:16]MH_I2C_Read... [08:09:16]Read from MH i2c: E2 17 00 [08:09:16]MH_I2C_Read... [08:09:16]Read from MH i2c: E2 17 00 A6 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 BF [08:09:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:09:16]wFMCommunicate OK [08:09:16]requested_item fd.num is exist - process it [08:09:16]SAM_PROTO_GetFieldsCounters [08:09:16]wFMCommunicate request_size=4 [08:09:16]MH_SAM_APDU [08:09:16]CAPDU: 80 13 00 00 [08:09:16]Write to MH i2c: E2 08 00 A7 52 80 13 00 00 00 00 00 00 75 [08:09:16]Write i2c OK [08:09:16]MH_I2C_Read... [08:09:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:09:16]Read from MH i2c: E2 [08:09:16]MH_I2C_Read... [08:09:16]Read from MH i2c: E2 62 00 [08:09:16]MH_I2C_Read... [08:09:16]Read from MH i2c: E2 62 00 A7 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 AB F9 03 00 0E 04 04 00 C1 01 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 F0 [08:09:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 AB F9 03 00 0E 04 04 00 C1 01 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 [08:09:16]wFMCommunicate OK [08:09:16]SAM_PROTO_GetFieldsCounters done [08:09:16]requested_item shift.num is exist - process it [08:09:16]requested_item shift.opened is exist - process it [08:09:16]req_shift_opened [08:09:16]FM_GetShiftState [08:09:16]SAM_PROTO_GetShiftState [08:09:16]wFMCommunicate request_size=4 [08:09:16]MH_SAM_APDU [08:09:16]CAPDU: 80 13 01 00 [08:09:16]Write to MH i2c: E2 08 00 A8 52 80 13 01 00 00 00 00 00 77 [08:09:16]Write i2c OK [08:09:16]MH_I2C_Read... [08:09:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:16]Read from MH i2c: E2 [08:09:16]MH_I2C_Read... [08:09:16]Read from MH i2c: E2 0E 00 [08:09:16]MH_I2C_Read... [08:09:16]Read from MH i2c: E2 0E 00 A8 52 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B4 [08:09:16]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:09:16]wFMCommunicate OK [08:09:16]SAM_PROTO_GetShiftState done [08:09:16]FM_GetShiftState done [08:09:16]req_shift_opened done [08:09:16]requested_item shift.open_date is exist - process it [08:09:16]req_shift_open_date [08:09:16]req_shift_open_date done [08:09:16]produce_requested_data done [08:09:16]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260523,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [08:09:16]process_action_free close_receipt [08:09:16]json_value_free [08:09:16]json_value_free done [08:09:16]process_json_proto returns [08:09:16]Send response to host [08:09:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260523,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [08:09:16]free response buf [08:09:16]execute_script done [08:09:16]execute_script returns [08:09:16]free content buf [08:09:16]Sock 7.Close socket [08:09:16]Sock 7.Thread stoped [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:13]OFD Sender: No OFD packet to send [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:31]accept exits with 9 [08:11:31]New connection [08:11:31]New thread 3066473828 created [08:11:31]Thread 3066617188 joined [08:11:31]Waiting for new connection... [08:11:31] Sock 9.Parse request [08:11:31]Sock 9.Check first char [08:11:31]Sock 9.First char is OK [08:11:31]request: POST /json_proto HTTP/1.0 [08:11:31]Method: POST [08:11:31]URL: /json_proto [08:11:31]Method is POST - this is cgi request [08:11:31]url: /json_proto [08:11:31]query_string will be loaded in cgi processing [08:11:31]execute_cgi json_proto POST (null) [08:11:31]execute_cgi path=json_proto method=POST [08:11:31]POST find Content-Length [08:11:31]Host: 172.17.55.133:8080 [08:11:31]Content-Length: 809 [08:11:31]Content-Type: application/json [08:11:31] [08:11:31]POST finish read [08:11:31]Found Content-Length = 809 [08:11:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:31]execute_script... [08:11: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)1036068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:31]POST & json_proto [08:11:31]process_json_proto [08:11:31]json parsed OK: [08:11:31]protocol is kg_v1.0 [08:11:31]action value=close_receipt [08:11:31]process_action close_receipt [08:11:31]cmd_close_receipt [08:11:31]MH_GetDate [08:11:31]Write to MH i2c: F0 00 00 A9 52 EA [08:11:31]Write i2c OK [08:11:31]MH_I2C_Read... [08:11:31]Read from MH i2c: F0 [08:11:31]MH_I2C_Read... [08:11:31]Read from MH i2c: F0 09 00 [08:11:31]MH_I2C_Read... [08:11:31]Read from MH i2c: F0 09 00 A9 52 00 B6 AC C1 66 34 48 D8 65 35 [08:11:31]GetLastDocTimeStamp 1723968554 [08:11:31]current date 1723968694 [08:11:31]FM_GetShiftState [08:11:31]SAM_PROTO_GetShiftState [08:11:31]wFMCommunicate request_size=4 [08:11:31]MH_SAM_APDU [08:11:31]CAPDU: 80 13 01 00 [08:11:31]Write to MH i2c: E2 08 00 AA 52 80 13 01 00 00 00 00 00 79 [08:11:31]Write i2c OK [08:11:31]MH_I2C_Read... [08:11:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:31]Read from MH i2c: E2 [08:11:31]MH_I2C_Read... [08:11:31]Read from MH i2c: E2 0E 00 [08:11:31]MH_I2C_Read... [08:11:31]Read from MH i2c: E2 0E 00 AA 52 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B6 [08:11:31]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:11:31]wFMCommunicate OK [08:11:31]SAM_PROTO_GetShiftState done [08:11:31]FM_GetShiftState done [08:11:31]opened in 1723940556 [08:11:31]opened+sec_in_day 1724026956 [08:11:31]quantity*price = 150037 [08:11:31]sum+1 = 150039 [08:11:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.38 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.38 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 82 18.08.2024 08:11 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260524 ФПД: 133396323298506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T081134&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260524&fm=133396323298506&tin=02508201610067®Number=0000000000091865&sum=150038 [08:11:32]StoreToDocumentArchive [08:11:32]shift 449 fd 260524 [08:11:32]save to /storage/0449/doc_00260524 [08:11:32]save last doc name /storage/0449/doc_00260524 to /storage/kkm_last_doc_name [08:11:32]save OK [08:11:32]Clear old archive folders... [08:11:32]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:11:32]tlvbuf is 0035C890 [08:11:32]SAM_PROTO_ClearQueue [08:11:32]wFMCommunicate request_size=4 [08:11:32]MH_SAM_APDU [08:11:32]CAPDU: 80 09 00 00 [08:11:32]Write to MH i2c: E2 08 00 B7 52 80 09 00 00 00 00 00 00 7B [08:11:32]Write i2c OK [08:11:32]MH_I2C_Read... [08:11:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:11:32]Read from MH i2c: E2 [08:11:32]MH_I2C_Read... [08:11:32]Read from MH i2c: E2 03 00 [08:11:32]MH_I2C_Read... [08:11:32]Read from MH i2c: E2 03 00 B7 52 00 90 00 7D [08:11:32]RAPDU: 90 00 [08:11:32]wFMCommunicate OK [08:11:32]SAM_PROTO_ClearQueue done [08:11:32]KKMCreateOFDPacket [08:11:32]OFDProtocolAddRootSTLVToBuf [08:11:32]FM_MakeSignedData [08:11:32]FM_MakeSignedData [08:11:32]SAM_PROTO_SignData [08:11:32]wFMCommunicate request_size=4 [08:11:32]MH_SAM_APDU [08:11:32]CAPDU: 80 0D 01 02 [08:11:32]Write to MH i2c: E2 08 00 B8 52 80 0D 01 02 00 00 00 00 83 [08:11:32]Write i2c OK [08:11:32]MH_I2C_Read... [08:11:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:11:32]Read from MH i2c: E2 [08:11:32]MH_I2C_Read... [08:11:32]Read from MH i2c: E2 03 00 [08:11:32]MH_I2C_Read... [08:11:32]Read from MH i2c: E2 03 00 B8 52 00 90 00 7E [08:11:32]RAPDU: 90 00 [08:11:32]wFMCommunicate OK [08:11:32]wFMCommunicate request_size=255 [08:11:32]MH_SAM_APDU [08:11:32]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 B6 AC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AC F9 03 00 35 04 06 00 [08:11:32]Write to MH i2c: E2 02 01 B9 52 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 B6 AC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AC F9 03 00 35 04 06 00 00 00 F7 [08:11:32]Write i2c OK [08:11:32]MH_I2C_Read... [08:11:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:32]Read from MH i2c: E2 [08:11:32]MH_I2C_Read... [08:11:32]Read from MH i2c: E2 03 00 [08:11:32]MH_I2C_Read... [08:11:32]Read from MH i2c: E2 03 00 B9 52 00 90 00 7F [08:11:32]RAPDU: 90 00 [08:11:32]wFMCommunicate OK [08:11:32]wFMCommunicate request_size=11 [08:11:32]MH_SAM_APDU [08:11:32]CAPDU: 80 0D 02 02 06 79 52 C0 76 EC CA [08:11:32]Write to MH i2c: E2 0E 00 BA 52 80 0D 02 02 06 00 79 52 C0 76 EC CA 00 00 49 [08:11:32]Write i2c OK [08:11:32]MH_I2C_Read... [08:11:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:32]Read from MH i2c: E2 [08:11:32]MH_I2C_Read... [08:11:32]Read from MH i2c: E2 03 00 [08:11:32]MH_I2C_Read... [08:11:32]Read from MH i2c: E2 03 00 BA 52 00 90 00 80 [08:11:32]RAPDU: 90 00 [08:11:32]wFMCommunicate OK [08:11:32]wFMCommunicate request_size=4 [08:11:32]MH_SAM_APDU [08:11:32]CAPDU: 80 0D 03 02 [08:11:32]Write to MH i2c: E2 08 00 BB 52 80 0D 03 02 00 00 00 00 88 [08:11:32]Write i2c OK [08:11:32]MH_I2C_Read... [08:11:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:11:32]Read from MH i2c: E2 [08:11:32]MH_I2C_Read... [08:11:32]Read from MH i2c: E2 0B 00 [08:11:32]MH_I2C_Read... [08:11:32]Read from MH i2c: E2 0B 00 BB 52 00 84 96 4D F0 99 15 11 30 90 00 CF [08:11:32]RAPDU: 84 96 4D F0 99 15 11 30 90 00 [08:11:32]wFMCommunicate OK [08:11:32]SAM_PROTO_SignData done [08:11:32]FM_MakeSignedData done [08:11:32]CreateOFDProtocolMessage [08:11:32]wFMCommunicate request_size=4 [08:11:32]MH_SAM_APDU [08:11:32]CAPDU: 80 11 00 00 [08:11:32]Write to MH i2c: E2 08 00 BC 52 80 11 00 00 00 00 00 00 88 [08:11:32]Write i2c OK [08:11:32]MH_I2C_Read... [08:11:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:32]Read from MH i2c: E2 [08:11:32]MH_I2C_Read... [08:11:32]Read from MH i2c: E2 17 00 [08:11:32]MH_I2C_Read... [08:11:32]Read from MH i2c: E2 17 00 BC 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D5 [08:11:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:11:32]wFMCommunicate OK [08:11:32]CreateOFDProtocolMessage done [08:11:32]OFDSenderStorePacket 260524 [08:11:32]StoreOFDPacket docnum=260524 [08:11:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 9D 9B 08 01 39 34 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 B6 AC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AC F9 03 00 35 04 06 00 79 52 C0 76 EC CA 84 96 4D F0 99 15 11 30 [08:11:32]CheckFolder [08:11:32]dirname=/storage/ofd_packets [08:11:32]CheckFolder done [08:11:32]ProducePacketName [08:11:32]name=ofd_packets/00260524 [08:11:32]NVStorageSaveData ofd_packets/00260524 [08:11:32]File name is /storage/ofd_packets/00260524 [08:11:32]Write 302 bytes [08:11:32]NVStorageSaveData done [08:11:32]OFDSenderStorePacket done [08:11:32]KKMCreateOFDPacket done [08:11:32]NVStorageSaveData kkm_last_timestamp [08:11:32]File name is /storage/kkm_last_timestamp [08:11:32]Write 4 bytes [08:11:32]NVStorageSaveData done [08:11:32]ExternCall_PrintAddStr [08:11:32]wPrintStart [08:11:32]Write to MH i2c: 01 00 00 BD 52 0F [08:11:32]Write i2c OK [08:11:32]MH_I2C_Read... [08:11:32]Read from MH i2c: 01 [08:11:32]MH_I2C_Read... [08:11:32]Read from MH i2c: 01 07 00 [08:11:32]MH_I2C_Read... [08:11:32]Read from MH i2c: 01 07 00 BD 52 00 00 00 00 00 FF 0F 24 [08:11:32]RasterBufferAndPrint [08:11:32]line Счет N : (1)1036068 [08:11:32]line ИНН: 02508201610067 [08:11:32]line Контрольно-Кассовый Чек [08:11:32]line ПРОДАЖА [08:11:32]line ТРК (МРК, ГНК) : 43 [08:11:32]line Товар: 2710194210 [08:11:32]line ДТ(л)-К-4 [08:11:32]line 19.690 * 76.20 [08:11:32]line = 1500.38 [08:11:32]line НДС 12% НСП 1% [08:11:32]line > о реализуемом товаре [08:11:32]line ИТОГО: 1500.38 [08:11:32]line НСП 1% : 13.28 [08:11:32]line НДС 12% : 159.33 [08:11:32]line Наличными: 0.00 [08:11:32]line Безнал.: 1500.38 [08:11:32]line Место: АЗС № 94 "Партнер Нефть" [08:11:32]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [08:11:32]line СНО: Общий режим [08:11:32]line Чек 82 18.08.2024 08:11 [08:11:32]line Смена: 449 ФФД: 1.0 [08:11:32]line ЗНМ: 0300000099 [08:11:32]line РНМ: 0000000000091865 [08:11:32]line Версия ККМ: 001 [08:11:32]line Платежная система: O! деньги [08:11:32]line ФМ: 0000000000871820 [08:11:32]line ФД: 260524 [08:11:32]line ФПД: 133396323298506 [08:11:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T081134&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260524&fm=133396323298506&tin=02508201610067®Number=0000000000091865&sum=150038 [08:11:33]written 0, free lines is 4095 [08:11:33]OFD Sender: Processing packet 260524 [packets to send 192, broken 191] [08:11:33]ProducePacketName [08:11:33]name=ofd_packets/00260524 [08:11:33]OFD Sender: To server: pG, [08:11:33]CommunicateWithHost lk.salyk.kg:30040 [08:11:33]ConnectInit lk.salyk.kg [08:11:33]Connected sock=10 [08:11: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 30 10 01 00 00 9D 9B 08 01 39 34 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 B6 AC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AC F9 03 00 35 04 06 00 79 52 C0 76 EC CA 84 96 4D F0 99 15 11 30 [08:11: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 30 4F 00 00 00 69 CB 47 00 35 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AC F9 03 00 F4 03 04 00 0C 56 C1 66 B6 04 01 00 00 9D 42 42 0D 0F A9 49 EB [08:11:33]CommunicateWithHost err = 0 [08:11:33]CheckOFDResponse [08:11:33]1017 (14) - 77093643461234 [08:11:33]1041 (16) - 0000000000871820 [08:11:33]1040 (4) - 260524 [08:11:33]1012 (4) - 18.08.2024 02:01 [08:11:33]1206 (1) - 0 [08:11:33]OFD Sender: Remove packet 260524 [08:11:33]ProducePacketName [08:11:33]name=ofd_packets/00260524 [08:11:33]NVStorageDeleteData [08:11:33]Write to MH i2c: 01 00 00 E7 52 39 [08:11:33]Write i2c OK [08:11:33]MH_I2C_Read... [08:11:33]Read from MH i2c: 01 [08:11:33]MH_I2C_Read... [08:11:33]Read from MH i2c: 01 07 00 [08:11:33]MH_I2C_Read... [08:11:33]Read from MH i2c: 01 07 00 E7 52 00 00 00 00 00 80 0C CC [08:11:33]RasterBufferAndPrint [08:11:33]line [08:11:33]line [08:11:33]line [08:11:33]line [08:11:33]line [08:11:33]written 0, free lines is 3204 [08:11:33]MH_Cut [08:11:33]Write to MH i2c: D1 01 00 EE 52 01 12 [08:11:33]Write i2c OK [08:11:33]MH_I2C_Read... [08:11:33]Read from MH i2c: D1 [08:11:33]MH_I2C_Read... [08:11:33]Read from MH i2c: D1 01 00 [08:11:33]MH_I2C_Read... [08:11:33]Read from MH i2c: D1 01 00 EE 52 00 11 [08:11:33]Write to MH i2c: 01 00 00 EF 52 41 [08:11:33]Write i2c OK [08:11:33]MH_I2C_Read... [08:11:34]OFD Sender: No OFD packet to send [08:11:34]*** Cut start [08:11:34]*** Purtial cut [08:11:34]*** Stage 1: CUTSNS_PIN = 1 [08:11:36]Read from MH i2c: 01 [08:11:36]MH_I2C_Read... [08:11:36]*** Stop cut motor [08:11:36]*** Cut end [08:11:36]Read from MH i2c: 01 07 00 [08:11:36]MH_I2C_Read... [08:11:36]Read from MH i2c: 01 07 00 EF 52 00 00 00 00 00 FF 0F 56 [08:11:36]process_action close_receipt done [08:11:36]requested_data is exist [08:11:36]produce_requested_data [08:11:36]requested_item fm.sn is exist - process it [08:11:36]wFMCommunicate request_size=4 [08:11:36]MH_SAM_APDU [08:11:36]CAPDU: 80 11 00 00 [08:11:36]Write to MH i2c: E2 08 00 F0 52 80 11 00 00 00 00 00 00 BC [08:11:36]Write i2c OK [08:11:36]MH_I2C_Read... [08:11:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:37]Read from MH i2c: E2 [08:11:37]MH_I2C_Read... [08:11:37]Read from MH i2c: E2 17 00 [08:11:37]MH_I2C_Read... [08:11:37]Read from MH i2c: E2 17 00 F0 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 09 [08:11:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:11:37]wFMCommunicate OK [08:11:37]requested_item fd.num is exist - process it [08:11:37]SAM_PROTO_GetFieldsCounters [08:11:37]wFMCommunicate request_size=4 [08:11:37]MH_SAM_APDU [08:11:37]CAPDU: 80 13 00 00 [08:11:37]Write to MH i2c: E2 08 00 F1 52 80 13 00 00 00 00 00 00 BF [08:11:37]Write i2c OK [08:11:37]MH_I2C_Read... [08:11:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:11:37]Read from MH i2c: E2 [08:11:37]MH_I2C_Read... [08:11:37]Read from MH i2c: E2 62 00 [08:11:37]MH_I2C_Read... [08:11:37]Read from MH i2c: E2 62 00 F1 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 AC F9 03 00 0E 04 04 00 C1 01 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 3E [08:11: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 AC F9 03 00 0E 04 04 00 C1 01 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 [08:11:37]wFMCommunicate OK [08:11:37]SAM_PROTO_GetFieldsCounters done [08:11:37]requested_item shift.num is exist - process it [08:11:37]requested_item shift.opened is exist - process it [08:11:37]req_shift_opened [08:11:37]FM_GetShiftState [08:11:37]SAM_PROTO_GetShiftState [08:11:37]wFMCommunicate request_size=4 [08:11:37]MH_SAM_APDU [08:11:37]CAPDU: 80 13 01 00 [08:11:37]Write to MH i2c: E2 08 00 F2 52 80 13 01 00 00 00 00 00 C1 [08:11:37]Write i2c OK [08:11:37]MH_I2C_Read... [08:11:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:37]Read from MH i2c: E2 [08:11:37]MH_I2C_Read... [08:11:37]Read from MH i2c: E2 0E 00 [08:11:37]MH_I2C_Read... [08:11:37]Read from MH i2c: E2 0E 00 F2 52 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 FE [08:11:37]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:11:37]wFMCommunicate OK [08:11:37]SAM_PROTO_GetShiftState done [08:11:37]FM_GetShiftState done [08:11:37]req_shift_opened done [08:11:37]requested_item shift.open_date is exist - process it [08:11:37]req_shift_open_date [08:11:37]req_shift_open_date done [08:11:37]produce_requested_data done [08:11:37]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260524,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [08:11:37]process_action_free close_receipt [08:11:37]json_value_free [08:11:37]json_value_free done [08:11:37]process_json_proto returns [08:11:37]Send response to host [08:11:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260524,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [08:11:37]free response buf [08:11:37]execute_script done [08:11:37]execute_script returns [08:11:37]free content buf [08:11:37]Sock 9.Close socket [08:11:37]Sock 9.Thread stoped [08:11:39]OFD Sender: No OFD packet to send [08:11:44]OFD Sender: No OFD packet to send [08:11:49]OFD Sender: No OFD packet to send [08:11:54]OFD Sender: No OFD packet to send [08:11:59]OFD Sender: No OFD packet to send [08:12:04]OFD Sender: No OFD packet to send [08:12:09]OFD Sender: No OFD packet to send [08:12:14]OFD Sender: No OFD packet to send [08:12:19]OFD Sender: No OFD packet to send [08:12:24]OFD Sender: No OFD packet to send [08:12:29]OFD Sender: No OFD packet to send [08:12:34]OFD Sender: No OFD packet to send [08:12:39]OFD Sender: No OFD packet to send [08:12:42]accept exits with 7 [08:12:42]New connection [08:12:42]New thread 3066617188 created [08:12:42]Thread 3066473828 joined [08:12:42]Waiting for new connection... [08:12:42] Sock 7.Parse request [08:12:42]Sock 7.Check first char [08:12:42]Sock 7.First char is OK [08:12:42]request: POST /json_proto HTTP/1.0 [08:12:42]Method: POST [08:12:42]URL: /json_proto [08:12:42]Method is POST - this is cgi request [08:12:42]url: /json_proto [08:12:42]query_string will be loaded in cgi processing [08:12:42]execute_cgi json_proto POST (null) [08:12:42]execute_cgi path=json_proto method=POST [08:12:42]POST find Content-Length [08:12:42]Host: 172.17.55.133:8080 [08:12:42]Content-Length: 679 [08:12:42]Content-Type: application/json [08:12:42] [08:12:42]POST finish read [08:12:42]Found Content-Length = 679 [08:12:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "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" ] } } [08:12:42]execute_script... [08:12: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)1036069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "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" ] } } [08:12:42]POST & json_proto [08:12:42]process_json_proto [08:12:42]json parsed OK: [08:12:42]protocol is kg_v1.0 [08:12:42]action value=close_receipt [08:12:42]process_action close_receipt [08:12:42]cmd_close_receipt [08:12:42]MH_GetDate [08:12:42]Write to MH i2c: F0 00 00 F3 52 34 [08:12:42]Write i2c OK [08:12:42]MH_I2C_Read... [08:12:42]Read from MH i2c: F0 [08:12:42]MH_I2C_Read... [08:12:42]Read from MH i2c: F0 09 00 [08:12:42]MH_I2C_Read... [08:12:42]Read from MH i2c: F0 09 00 F3 52 00 FD AC C1 66 34 48 D8 65 C6 [08:12:42]GetLastDocTimeStamp 1723968694 [08:12:42]current date 1723968765 [08:12:42]FM_GetShiftState [08:12:42]SAM_PROTO_GetShiftState [08:12:42]wFMCommunicate request_size=4 [08:12:42]MH_SAM_APDU [08:12:42]CAPDU: 80 13 01 00 [08:12:42]Write to MH i2c: E2 08 00 F4 52 80 13 01 00 00 00 00 00 C3 [08:12:42]Write i2c OK [08:12:42]MH_I2C_Read... [08:12:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:42]Read from MH i2c: E2 [08:12:42]MH_I2C_Read... [08:12:42]Read from MH i2c: E2 0E 00 [08:12:42]MH_I2C_Read... [08:12:42]Read from MH i2c: E2 0E 00 F4 52 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 00 [08:12:42]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:12:42]wFMCommunicate OK [08:12:42]SAM_PROTO_GetShiftState done [08:12:42]FM_GetShiftState done [08:12:42]opened in 1723940556 [08:12:42]opened+sec_in_day 1724026956 [08:12:42]quantity*price = 80004 [08:12:42]sum+1 = 80005 [08:12:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 83 18.08.2024 08:12 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260525 ФПД: 5557527390531 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T081245&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260525&fm=5557527390531&tin=02508201610067®Number=0000000000091865&sum=80000 [08:12:43]StoreToDocumentArchive [08:12:43]shift 449 fd 260525 [08:12:43]save to /storage/0449/doc_00260525 [08:12:43]save last doc name /storage/0449/doc_00260525 to /storage/kkm_last_doc_name [08:12:43]save OK [08:12:43]Clear old archive folders... [08:12:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:12:43]tlvbuf is 00409DA0 [08:12:43]SAM_PROTO_ClearQueue [08:12:43]wFMCommunicate request_size=4 [08:12:43]MH_SAM_APDU [08:12:43]CAPDU: 80 09 00 00 [08:12:43]Write to MH i2c: E2 08 00 01 53 80 09 00 00 00 00 00 00 C6 [08:12:43]Write i2c OK [08:12:43]MH_I2C_Read... [08:12:43]Read from MH i2c: E2 [08:12:43]MH_I2C_Read... [08:12:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:12:43]Read from MH i2c: E2 03 00 [08:12:43]MH_I2C_Read... [08:12:43]Read from MH i2c: E2 03 00 01 53 00 90 00 C8 [08:12:43]RAPDU: 90 00 [08:12:43]wFMCommunicate OK [08:12:43]SAM_PROTO_ClearQueue done [08:12:43]KKMCreateOFDPacket [08:12:43]OFDProtocolAddRootSTLVToBuf [08:12:43]FM_MakeSignedData [08:12:43]FM_MakeSignedData [08:12:43]SAM_PROTO_SignData [08:12:43]wFMCommunicate request_size=4 [08:12:43]MH_SAM_APDU [08:12:43]CAPDU: 80 0D 01 02 [08:12:43]Write to MH i2c: E2 08 00 02 53 80 0D 01 02 00 00 00 00 CE [08:12:43]Write i2c OK [08:12:43]MH_I2C_Read... [08:12:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:12:43]Read from MH i2c: E2 [08:12:43]MH_I2C_Read... [08:12:43]Read from MH i2c: E2 03 00 [08:12:43]MH_I2C_Read... [08:12:43]Read from MH i2c: E2 03 00 02 53 00 90 00 C9 [08:12:43]RAPDU: 90 00 [08:12:43]wFMCommunicate OK [08:12:43]wFMCommunicate request_size=255 [08:12:43]MH_SAM_APDU [08:12:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 53 00 00 00 F4 03 04 00 FD AC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AD F9 03 00 35 04 06 00 05 [08:12:43]Write to MH i2c: E2 02 01 03 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 53 00 00 00 F4 03 04 00 FD AC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AD F9 03 00 35 04 06 00 05 00 00 8B [08:12:43]Write i2c OK [08:12:43]MH_I2C_Read... [08:12:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:43]Read from MH i2c: E2 [08:12:43]MH_I2C_Read... [08:12:43]Read from MH i2c: E2 03 00 [08:12:43]MH_I2C_Read... [08:12:43]Read from MH i2c: E2 03 00 03 53 00 90 00 CA [08:12:43]RAPDU: 90 00 [08:12:43]wFMCommunicate OK [08:12:43]wFMCommunicate request_size=10 [08:12:43]MH_SAM_APDU [08:12:43]CAPDU: 80 0D 02 02 05 0D F6 72 29 43 [08:12:43]Write to MH i2c: E2 0D 00 04 53 80 0D 02 02 05 00 0D F6 72 29 43 00 00 BC [08:12:43]Write i2c OK [08:12:43]MH_I2C_Read... [08:12:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:43]Read from MH i2c: E2 [08:12:43]MH_I2C_Read... [08:12:43]Read from MH i2c: E2 03 00 [08:12:43]MH_I2C_Read... [08:12:43]Read from MH i2c: E2 03 00 04 53 00 90 00 CB [08:12:43]RAPDU: 90 00 [08:12:43]wFMCommunicate OK [08:12:43]wFMCommunicate request_size=4 [08:12:43]MH_SAM_APDU [08:12:43]CAPDU: 80 0D 03 02 [08:12:43]Write to MH i2c: E2 08 00 05 53 80 0D 03 02 00 00 00 00 D3 [08:12:43]Write i2c OK [08:12:43]MH_I2C_Read... [08:12:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:12:43]Read from MH i2c: E2 [08:12:43]MH_I2C_Read... [08:12:43]Read from MH i2c: E2 0B 00 [08:12:43]MH_I2C_Read... [08:12:43]Read from MH i2c: E2 0B 00 05 53 00 26 6F 3B B9 0D AC CE 45 90 00 29 [08:12:43]RAPDU: 26 6F 3B B9 0D AC CE 45 90 00 [08:12:43]wFMCommunicate OK [08:12:43]SAM_PROTO_SignData done [08:12:43]FM_MakeSignedData done [08:12:43]CreateOFDProtocolMessage [08:12:43]wFMCommunicate request_size=4 [08:12:43]MH_SAM_APDU [08:12:43]CAPDU: 80 11 00 00 [08:12:43]Write to MH i2c: E2 08 00 06 53 80 11 00 00 00 00 00 00 D3 [08:12:43]Write i2c OK [08:12:43]MH_I2C_Read... [08:12:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:43]Read from MH i2c: E2 [08:12:43]MH_I2C_Read... [08:12:43]Read from MH i2c: E2 17 00 [08:12:43]MH_I2C_Read... [08:12:43]Read from MH i2c: E2 17 00 06 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 20 [08:12:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:12:43]wFMCommunicate OK [08:12:43]CreateOFDProtocolMessage done [08:12:43]OFDSenderStorePacket 260525 [08:12:43]StoreOFDPacket docnum=260525 [08:12:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 C9 08 07 01 C6 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 53 00 00 00 F4 03 04 00 FD AC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AD F9 03 00 35 04 06 00 05 0D F6 72 29 43 26 6F 3B B9 0D AC CE 45 [08:12:43]CheckFolder [08:12:43]dirname=/storage/ofd_packets [08:12:43]CheckFolder done [08:12:43]ProducePacketName [08:12:43]name=ofd_packets/00260525 [08:12:43]NVStorageSaveData ofd_packets/00260525 [08:12:43]File name is /storage/ofd_packets/00260525 [08:12:43]Write 301 bytes [08:12:43]NVStorageSaveData done [08:12:43]OFDSenderStorePacket done [08:12:43]KKMCreateOFDPacket done [08:12:43]NVStorageSaveData kkm_last_timestamp [08:12:43]File name is /storage/kkm_last_timestamp [08:12:43]Write 4 bytes [08:12:43]NVStorageSaveData done [08:12:43]ExternCall_PrintAddStr [08:12:43]wPrintStart [08:12:43]Write to MH i2c: 01 00 00 07 53 5A [08:12:43]Write i2c OK [08:12:43]MH_I2C_Read... [08:12:43]Read from MH i2c: 01 [08:12:43]MH_I2C_Read... [08:12:43]Read from MH i2c: 01 07 00 [08:12:43]MH_I2C_Read... [08:12:43]Read from MH i2c: 01 07 00 07 53 00 00 00 00 00 FF 0F 6F [08:12:43]RasterBufferAndPrint [08:12:43]line Счет N : (1)1036069 [08:12:43]line ИНН: 02508201610067 [08:12:43]line Контрольно-Кассовый Чек [08:12:43]line ПРОДАЖА [08:12:43]line ТРК (МРК, ГНК) : 22 [08:12:43]line Товар: 2710124130 [08:12:43]line Аи-92-К-5 [08:12:43]line 11.800 * 67.80 [08:12:43]line = 800.04 [08:12:43]line НДС 12% НСП 1% [08:12:43]line > о реализуемом товаре [08:12:43]line ОКРУГЛЕНИЕ: -0.04 [08:12:43]line ИТОГО: 800.00 [08:12:43]line Внесено: 800.00 [08:12:43]line СДАЧА: 0.00 [08:12:43]line НСП 1% : 7.08 [08:12:43]line НДС 12% : 84.96 [08:12:43]line Наличными: 800.00 [08:12:43]line Безнал.: 0.00 [08:12:43]line Место: АЗС № 94 "Партнер Нефть" [08:12:43]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [08:12:43]line СНО: Общий режим [08:12:43]line Чек 83 18.08.2024 08:12 [08:12:43]line Смена: 449 ФФД: 1.0 [08:12:43]line ЗНМ: 0300000099 [08:12:43]line РНМ: 0000000000091865 [08:12:43]line Версия ККМ: 001 [08:12:43]line ФМ: 0000000000871820 [08:12:43]line ФД: 260525 [08:12:43]line ФПД: 5557527390531 [08:12:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T081245&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260525&fm=5557527390531&tin=02508201610067®Number=0000000000091865&sum=80000 [08:12:44]OFD Sender: Processing packet 260525 [packets to send 192, broken 191] [08:12:44]ProducePacketName [08:12:44]name=ofd_packets/00260525 [08:12:44]OFD Sender: To server: pG, [08:12:44]CommunicateWithHost lk.salyk.kg:30040 [08:12:44]ConnectInit lk.salyk.kg [08:12:44]written 0, free lines is 4095 [08:12:44]Connected sock=10 [08:12: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 30 0F 01 00 00 C9 08 07 01 C6 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 53 00 00 00 F4 03 04 00 FD AC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AD F9 03 00 35 04 06 00 05 0D F6 72 29 43 26 6F 3B B9 0D AC CE 45 [08:12: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 30 4F 00 00 00 AC C2 47 00 E3 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 30 10 04 04 00 AD F9 03 00 F4 03 04 00 53 56 C1 66 B6 04 01 00 00 B1 7E 09 B2 AF B5 5C 64 [08:12:44]CommunicateWithHost err = 0 [08:12:44]CheckOFDResponse [08:12:44]1017 (14) - 77093643461234 [08:12:44]1041 (16) - 0000000000871820 [08:12:44]1040 (4) - 260525 [08:12:44]1012 (4) - 18.08.2024 02:02 [08:12:44]1206 (1) - 0 [08:12:44]OFD Sender: Remove packet 260525 [08:12:44]ProducePacketName [08:12:44]name=ofd_packets/00260525 [08:12:44]NVStorageDeleteData [08:12:44]Write to MH i2c: 01 00 00 32 53 85 [08:12:44]Write i2c OK [08:12:44]MH_I2C_Read... [08:12:44]Read from MH i2c: 01 [08:12:44]MH_I2C_Read... [08:12:44]Read from MH i2c: 01 07 00 [08:12:44]MH_I2C_Read... [08:12:44]Read from MH i2c: 01 07 00 32 53 00 00 00 00 00 6C 0C 04 [08:12:44]RasterBufferAndPrint [08:12:44]line [08:12:44]line [08:12:44]line [08:12:44]line [08:12:44]line [08:12:44]written 0, free lines is 3183 [08:12:44]MH_Cut [08:12:44]Write to MH i2c: D1 01 00 39 53 01 5E [08:12:44]Write i2c OK [08:12:44]MH_I2C_Read... [08:12:44]Read from MH i2c: D1 [08:12:44]MH_I2C_Read... [08:12:44]Read from MH i2c: D1 01 00 [08:12:44]MH_I2C_Read... [08:12:44]Read from MH i2c: D1 01 00 39 53 00 5D [08:12:44]Write to MH i2c: 01 00 00 3A 53 8D [08:12:44]Write i2c OK [08:12:44]MH_I2C_Read... [08:12:45]OFD Sender: No OFD packet to send [08:12:45]*** Cut start [08:12:45]*** Purtial cut [08:12:45]*** Stage 1: CUTSNS_PIN = 1 [08:12:47]Read from MH i2c: 01 [08:12:47]MH_I2C_Read... [08:12:47]*** Stop cut motor [08:12:47]*** Cut end [08:12:47]Read from MH i2c: 01 07 00 [08:12:47]MH_I2C_Read... [08:12:47]Read from MH i2c: 01 07 00 3A 53 00 00 00 00 00 FF 0F A2 [08:12:47]process_action close_receipt done [08:12:47]requested_data is exist [08:12:47]produce_requested_data [08:12:47]requested_item fm.sn is exist - process it [08:12:47]wFMCommunicate request_size=4 [08:12:47]MH_SAM_APDU [08:12:47]CAPDU: 80 11 00 00 [08:12:47]Write to MH i2c: E2 08 00 3B 53 80 11 00 00 00 00 00 00 08 [08:12:47]Write i2c OK [08:12:47]MH_I2C_Read... [08:12:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:47]Read from MH i2c: E2 [08:12:47]MH_I2C_Read... [08:12:47]Read from MH i2c: E2 17 00 [08:12:47]MH_I2C_Read... [08:12:47]Read from MH i2c: E2 17 00 3B 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 55 [08:12:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:12:47]wFMCommunicate OK [08:12:47]requested_item fd.num is exist - process it [08:12:47]SAM_PROTO_GetFieldsCounters [08:12:47]wFMCommunicate request_size=4 [08:12:47]MH_SAM_APDU [08:12:47]CAPDU: 80 13 00 00 [08:12:47]Write to MH i2c: E2 08 00 3C 53 80 13 00 00 00 00 00 00 0B [08:12:47]Write i2c OK [08:12:47]MH_I2C_Read... [08:12:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:12:48]Read from MH i2c: E2 [08:12:48]MH_I2C_Read... [08:12:48]Read from MH i2c: E2 62 00 [08:12:48]MH_I2C_Read... [08:12:48]Read from MH i2c: E2 62 00 3C 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 AD F9 03 00 0E 04 04 00 C1 01 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 8E [08:12: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 AD F9 03 00 0E 04 04 00 C1 01 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 [08:12:48]wFMCommunicate OK [08:12:48]SAM_PROTO_GetFieldsCounters done [08:12:48]requested_item shift.num is exist - process it [08:12:48]requested_item shift.opened is exist - process it [08:12:48]req_shift_opened [08:12:48]FM_GetShiftState [08:12:48]SAM_PROTO_GetShiftState [08:12:48]wFMCommunicate request_size=4 [08:12:48]MH_SAM_APDU [08:12:48]CAPDU: 80 13 01 00 [08:12:48]Write to MH i2c: E2 08 00 3D 53 80 13 01 00 00 00 00 00 0D [08:12:48]Write i2c OK [08:12:48]MH_I2C_Read... [08:12:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:48]Read from MH i2c: E2 [08:12:48]MH_I2C_Read... [08:12:48]Read from MH i2c: E2 0E 00 [08:12:48]MH_I2C_Read... [08:12:48]Read from MH i2c: E2 0E 00 3D 53 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 4A [08:12:48]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:12:48]wFMCommunicate OK [08:12:48]SAM_PROTO_GetShiftState done [08:12:48]FM_GetShiftState done [08:12:48]req_shift_opened done [08:12:48]requested_item shift.open_date is exist - process it [08:12:48]req_shift_open_date [08:12:48]req_shift_open_date done [08:12:48]produce_requested_data done [08:12:48]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260525,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [08:12:48]process_action_free close_receipt [08:12:48]json_value_free [08:12:48]json_value_free done [08:12:48]process_json_proto returns [08:12:48]Send response to host [08:12:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260525,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [08:12:48]free response buf [08:12:48]execute_script done [08:12:48]execute_script returns [08:12:48]free content buf [08:12:48]Sock 7.Close socket [08:12:48]Sock 7.Thread stoped [08:12:50]OFD Sender: No OFD packet to send [08:12:55]OFD Sender: No OFD packet to send [08:13:00]OFD Sender: No OFD packet to send [08:13:05]OFD Sender: No OFD packet to send [08:13:10]OFD Sender: No OFD packet to send [08:13:15]OFD Sender: No OFD packet to send [08:13:20]OFD Sender: No OFD packet to send [08:13:25]OFD Sender: No OFD packet to send [08:13:30]OFD Sender: No OFD packet to send [08:13:35]OFD Sender: No OFD packet to send [08:13:40]OFD Sender: No OFD packet to send [08:13:45]OFD Sender: No OFD packet to send [08:13:50]OFD Sender: No OFD packet to send [08:13:55]OFD Sender: No OFD packet to send [08:14:00]OFD Sender: No OFD packet to send [08:14:05]OFD Sender: No OFD packet to send [08:14:10]OFD Sender: No OFD packet to send [08:14:15]OFD Sender: No OFD packet to send [08:14:20]OFD Sender: No OFD packet to send [08:14:25]OFD Sender: No OFD packet to send [08:14:30]OFD Sender: No OFD packet to send [08:14:35]OFD Sender: No OFD packet to send [08:14:37]accept exits with 9 [08:14:37]New connection [08:14:37]New thread 3066473828 created [08:14:37]Thread 3066617188 joined [08:14:37]Waiting for new connection... [08:14:37] Sock 9.Parse request [08:14:37]Sock 9.Check first char [08:14:37]Sock 9.First char is OK [08:14:37]request: POST /json_proto HTTP/1.0 [08:14:37]Method: POST [08:14:37]URL: /json_proto [08:14:37]Method is POST - this is cgi request [08:14:37]url: /json_proto [08:14:37]query_string will be loaded in cgi processing [08:14:37]execute_cgi json_proto POST (null) [08:14:37]execute_cgi path=json_proto method=POST [08:14:37]POST find Content-Length [08:14:37]Host: 172.17.55.133:8080 [08:14:37]Content-Length: 809 [08:14:37]Content-Type: application/json [08:14:37] [08:14:37]POST finish read [08:14:37]Found Content-Length = 809 [08:14:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:14:37]execute_script... [08:14: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)1036070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:14:37]POST & json_proto [08:14:37]process_json_proto [08:14:37]json parsed OK: [08:14:37]protocol is kg_v1.0 [08:14:37]action value=close_receipt [08:14:37]process_action close_receipt [08:14:37]cmd_close_receipt [08:14:37]MH_GetDate [08:14:37]Write to MH i2c: F0 00 00 3E 53 80 [08:14:37]Write i2c OK [08:14:37]MH_I2C_Read... [08:14:37]Read from MH i2c: F0 [08:14:37]MH_I2C_Read... [08:14:37]Read from MH i2c: F0 09 00 [08:14:37]MH_I2C_Read... [08:14:37]Read from MH i2c: F0 09 00 3E 53 00 71 AD C1 66 34 48 D8 65 87 [08:14:37]GetLastDocTimeStamp 1723968765 [08:14:37]current date 1723968881 [08:14:37]FM_GetShiftState [08:14:37]SAM_PROTO_GetShiftState [08:14:37]wFMCommunicate request_size=4 [08:14:37]MH_SAM_APDU [08:14:37]CAPDU: 80 13 01 00 [08:14:37]Write to MH i2c: E2 08 00 3F 53 80 13 01 00 00 00 00 00 0F [08:14:37]Write i2c OK [08:14:37]MH_I2C_Read... [08:14:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:37]Read from MH i2c: E2 [08:14:37]MH_I2C_Read... [08:14:37]Read from MH i2c: E2 0E 00 [08:14:37]MH_I2C_Read... [08:14:37]Read from MH i2c: E2 0E 00 3F 53 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 4C [08:14:37]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:14:37]wFMCommunicate OK [08:14:37]SAM_PROTO_GetShiftState done [08:14:37]FM_GetShiftState done [08:14:37]opened in 1723940556 [08:14:37]opened+sec_in_day 1724026956 [08:14:37]quantity*price = 150037 [08:14:37]sum+1 = 150039 [08:14:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.38 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.38 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 84 18.08.2024 08:14 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260526 ФПД: 60756566293822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T081441&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260526&fm=60756566293822&tin=02508201610067®Number=0000000000091865&sum=150038 [08:14:38]StoreToDocumentArchive [08:14:38]shift 449 fd 260526 [08:14:38]save to /storage/0449/doc_00260526 [08:14:38]save last doc name /storage/0449/doc_00260526 to /storage/kkm_last_doc_name [08:14:38]save OK [08:14:38]Clear old archive folders... [08:14:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:14:38]tlvbuf is 003FC4E0 [08:14:38]SAM_PROTO_ClearQueue [08:14:38]wFMCommunicate request_size=4 [08:14:38]MH_SAM_APDU [08:14:38]CAPDU: 80 09 00 00 [08:14:38]Write to MH i2c: E2 08 00 4C 53 80 09 00 00 00 00 00 00 11 [08:14:38]Write i2c OK [08:14:38]MH_I2C_Read... [08:14:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:14:38]Read from MH i2c: E2 [08:14:38]MH_I2C_Read... [08:14:38]Read from MH i2c: E2 03 00 [08:14:38]MH_I2C_Read... [08:14:38]Read from MH i2c: E2 03 00 4C 53 00 90 00 13 [08:14:38]RAPDU: 90 00 [08:14:38]wFMCommunicate OK [08:14:38]SAM_PROTO_ClearQueue done [08:14:38]KKMCreateOFDPacket [08:14:38]OFDProtocolAddRootSTLVToBuf [08:14:38]FM_MakeSignedData [08:14:38]FM_MakeSignedData [08:14:38]SAM_PROTO_SignData [08:14:38]wFMCommunicate request_size=4 [08:14:38]MH_SAM_APDU [08:14:38]CAPDU: 80 0D 01 02 [08:14:38]Write to MH i2c: E2 08 00 4D 53 80 0D 01 02 00 00 00 00 19 [08:14:38]Write i2c OK [08:14:38]MH_I2C_Read... [08:14:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:14:38]Read from MH i2c: E2 [08:14:38]MH_I2C_Read... [08:14:38]Read from MH i2c: E2 03 00 [08:14:38]MH_I2C_Read... [08:14:38]Read from MH i2c: E2 03 00 4D 53 00 90 00 14 [08:14:38]RAPDU: 90 00 [08:14:38]wFMCommunicate OK [08:14:38]wFMCommunicate request_size=255 [08:14:38]MH_SAM_APDU [08:14:38]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 71 AD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AE F9 03 00 35 04 06 00 [08:14:38]Write to MH i2c: E2 02 01 4E 53 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 71 AD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AE F9 03 00 35 04 06 00 00 00 4D [08:14:38]Write i2c OK [08:14:38]MH_I2C_Read... [08:14:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:39]Read from MH i2c: E2 [08:14:39]MH_I2C_Read... [08:14:39]Read from MH i2c: E2 03 00 [08:14:39]MH_I2C_Read... [08:14:39]Read from MH i2c: E2 03 00 4E 53 00 90 00 15 [08:14:39]RAPDU: 90 00 [08:14:39]wFMCommunicate OK [08:14:39]wFMCommunicate request_size=11 [08:14:39]MH_SAM_APDU [08:14:39]CAPDU: 80 0D 02 02 06 37 41 FD 8D 3D 3E [08:14:39]Write to MH i2c: E2 0E 00 4F 53 80 0D 02 02 06 00 37 41 FD 8D 3D 3E 00 00 A5 [08:14:39]Write i2c OK [08:14:39]MH_I2C_Read... [08:14:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:39]Read from MH i2c: E2 [08:14:39]MH_I2C_Read... [08:14:39]Read from MH i2c: E2 03 00 [08:14:39]MH_I2C_Read... [08:14:39]Read from MH i2c: E2 03 00 4F 53 00 90 00 16 [08:14:39]RAPDU: 90 00 [08:14:39]wFMCommunicate OK [08:14:39]wFMCommunicate request_size=4 [08:14:39]MH_SAM_APDU [08:14:39]CAPDU: 80 0D 03 02 [08:14:39]Write to MH i2c: E2 08 00 50 53 80 0D 03 02 00 00 00 00 1E [08:14:39]Write i2c OK [08:14:39]MH_I2C_Read... [08:14:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:14:39]Read from MH i2c: E2 [08:14:39]MH_I2C_Read... [08:14:39]Read from MH i2c: E2 0B 00 [08:14:39]MH_I2C_Read... [08:14:39]Read from MH i2c: E2 0B 00 50 53 00 BE 63 53 18 8F C5 B2 DA 90 00 8B [08:14:39]RAPDU: BE 63 53 18 8F C5 B2 DA 90 00 [08:14:39]wFMCommunicate OK [08:14:39]SAM_PROTO_SignData done [08:14:39]FM_MakeSignedData done [08:14:39]CreateOFDProtocolMessage [08:14:39]wFMCommunicate request_size=4 [08:14:39]MH_SAM_APDU [08:14:39]CAPDU: 80 11 00 00 [08:14:39]Write to MH i2c: E2 08 00 51 53 80 11 00 00 00 00 00 00 1E [08:14:39]Write i2c OK [08:14:39]MH_I2C_Read... [08:14:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:39]Read from MH i2c: E2 [08:14:39]MH_I2C_Read... [08:14:39]Read from MH i2c: E2 17 00 [08:14:39]MH_I2C_Read... [08:14:39]Read from MH i2c: E2 17 00 51 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 6B [08:14:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:14:39]wFMCommunicate OK [08:14:39]CreateOFDProtocolMessage done [08:14:39]OFDSenderStorePacket 260526 [08:14:39]StoreOFDPacket docnum=260526 [08:14:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 DE BD 08 01 0F 92 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 71 AD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AE F9 03 00 35 04 06 00 37 41 FD 8D 3D 3E BE 63 53 18 8F C5 B2 DA [08:14:39]CheckFolder [08:14:39]dirname=/storage/ofd_packets [08:14:39]CheckFolder done [08:14:39]ProducePacketName [08:14:39]name=ofd_packets/00260526 [08:14:39]NVStorageSaveData ofd_packets/00260526 [08:14:39]File name is /storage/ofd_packets/00260526 [08:14:39]Write 302 bytes [08:14:39]NVStorageSaveData done [08:14:39]OFDSenderStorePacket done [08:14:39]KKMCreateOFDPacket done [08:14:39]NVStorageSaveData kkm_last_timestamp [08:14:39]File name is /storage/kkm_last_timestamp [08:14:39]Write 4 bytes [08:14:39]NVStorageSaveData done [08:14:39]ExternCall_PrintAddStr [08:14:39]wPrintStart [08:14:39]Write to MH i2c: 01 00 00 52 53 A5 [08:14:39]Write i2c OK [08:14:39]MH_I2C_Read... [08:14:39]Read from MH i2c: 01 [08:14:39]MH_I2C_Read... [08:14:39]Read from MH i2c: 01 07 00 [08:14:39]MH_I2C_Read... [08:14:39]Read from MH i2c: 01 07 00 52 53 00 00 00 00 00 FF 0F BA [08:14:39]RasterBufferAndPrint [08:14:39]line Счет N : (1)1036070 [08:14:39]line ИНН: 02508201610067 [08:14:39]line Контрольно-Кассовый Чек [08:14:39]line ПРОДАЖА [08:14:39]line ТРК (МРК, ГНК) : 43 [08:14:39]line Товар: 2710194210 [08:14:39]line ДТ(л)-К-4 [08:14:39]line 19.690 * 76.20 [08:14:39]line = 1500.38 [08:14:39]line НДС 12% НСП 1% [08:14:39]line > о реализуемом товаре [08:14:39]line ИТОГО: 1500.38 [08:14:39]line НСП 1% : 13.28 [08:14:39]line НДС 12% : 159.33 [08:14:39]line Наличными: 0.00 [08:14:39]line Безнал.: 1500.38 [08:14:39]line Место: АЗС № 94 "Партнер Нефть" [08:14:39]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [08:14:39]line СНО: Общий режим [08:14:39]line Чек 84 18.08.2024 08:14 [08:14:39]line Смена: 449 ФФД: 1.0 [08:14:39]line ЗНМ: 0300000099 [08:14:39]line РНМ: 0000000000091865 [08:14:39]line Версия ККМ: 001 [08:14:39]line Платежная система: O! деньги [08:14:39]line ФМ: 0000000000871820 [08:14:39]line ФД: 260526 [08:14:39]line ФПД: 60756566293822 [08:14:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T081441&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260526&fm=60756566293822&tin=02508201610067®Number=0000000000091865&sum=150038 [08:14:39]written 0, free lines is 4095 [08:14:39]OFD Sender: Processing packet 260526 [packets to send 192, broken 191] [08:14:39]ProducePacketName [08:14:39]name=ofd_packets/00260526 [08:14:39]OFD Sender: To server: pG, [08:14:39]CommunicateWithHost lk.salyk.kg:30040 [08:14:39]ConnectInit lk.salyk.kg [08:14:39]Connected sock=11 [08:14: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 30 10 01 00 00 DE BD 08 01 0F 92 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 71 AD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AE F9 03 00 35 04 06 00 37 41 FD 8D 3D 3E BE 63 53 18 8F C5 B2 DA [08:14: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 30 4F 00 00 00 CC 29 47 00 40 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AE F9 03 00 F4 03 04 00 C6 56 C1 66 B6 04 01 00 00 50 2A FF 41 D6 A9 6B 97 [08:14:39]CommunicateWithHost err = 0 [08:14:39]CheckOFDResponse [08:14:39]1017 (14) - 77093643461234 [08:14:39]1041 (16) - 0000000000871820 [08:14:39]1040 (4) - 260526 [08:14:39]1012 (4) - 18.08.2024 02:04 [08:14:39]1206 (1) - 0 [08:14:39]OFD Sender: Remove packet 260526 [08:14:39]ProducePacketName [08:14:39]name=ofd_packets/00260526 [08:14:39]NVStorageDeleteData [08:14:39]Write to MH i2c: 01 00 00 7C 53 CF [08:14:39]Write i2c OK [08:14:39]MH_I2C_Read... [08:14:39]Read from MH i2c: 01 [08:14:39]MH_I2C_Read... [08:14:39]Read from MH i2c: 01 07 00 [08:14:39]MH_I2C_Read... [08:14:39]Read from MH i2c: 01 07 00 7C 53 00 00 00 00 00 80 0C 62 [08:14:39]RasterBufferAndPrint [08:14:39]line [08:14:39]line [08:14:39]line [08:14:39]line [08:14:39]line [08:14:39]written 0, free lines is 3203 [08:14:39]MH_Cut [08:14:39]Write to MH i2c: D1 01 00 83 53 01 A8 [08:14:39]Write i2c OK [08:14:39]MH_I2C_Read... [08:14:39]Read from MH i2c: D1 [08:14:39]MH_I2C_Read... [08:14:39]Read from MH i2c: D1 01 00 [08:14:39]MH_I2C_Read... [08:14:39]Read from MH i2c: D1 01 00 83 53 00 A7 [08:14:39]Write to MH i2c: 01 00 00 84 53 D7 [08:14:39]Write i2c OK [08:14:39]MH_I2C_Read... [08:14:40]OFD Sender: No OFD packet to send [08:14:40]*** Cut start [08:14:40]*** Purtial cut [08:14:40]*** Stage 1: CUTSNS_PIN = 1 [08:14:42]Read from MH i2c: 01 [08:14:42]MH_I2C_Read... [08:14:42]*** Stop cut motor [08:14:42]*** Cut end [08:14:42]Read from MH i2c: 01 07 00 [08:14:42]MH_I2C_Read... [08:14:42]Read from MH i2c: 01 07 00 84 53 00 00 00 00 00 FF 0F EC [08:14:42]process_action close_receipt done [08:14:42]requested_data is exist [08:14:42]produce_requested_data [08:14:42]requested_item fm.sn is exist - process it [08:14:42]wFMCommunicate request_size=4 [08:14:42]MH_SAM_APDU [08:14:42]CAPDU: 80 11 00 00 [08:14:42]Write to MH i2c: E2 08 00 85 53 80 11 00 00 00 00 00 00 52 [08:14:42]Write i2c OK [08:14:42]MH_I2C_Read... [08:14:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:42]Read from MH i2c: E2 [08:14:42]MH_I2C_Read... [08:14:42]Read from MH i2c: E2 17 00 [08:14:42]MH_I2C_Read... [08:14:42]Read from MH i2c: E2 17 00 85 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 9F [08:14:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:14:42]wFMCommunicate OK [08:14:42]requested_item fd.num is exist - process it [08:14:42]SAM_PROTO_GetFieldsCounters [08:14:42]wFMCommunicate request_size=4 [08:14:42]MH_SAM_APDU [08:14:42]CAPDU: 80 13 00 00 [08:14:42]Write to MH i2c: E2 08 00 86 53 80 13 00 00 00 00 00 00 55 [08:14:42]Write i2c OK [08:14:42]MH_I2C_Read... [08:14:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:14:43]Read from MH i2c: E2 [08:14:43]MH_I2C_Read... [08:14:43]Read from MH i2c: E2 62 00 [08:14:43]MH_I2C_Read... [08:14:43]Read from MH i2c: E2 62 00 86 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 AE F9 03 00 0E 04 04 00 C1 01 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 DC [08: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 AE F9 03 00 0E 04 04 00 C1 01 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 [08:14:43]wFMCommunicate OK [08:14:43]SAM_PROTO_GetFieldsCounters done [08:14:43]requested_item shift.num is exist - process it [08:14:43]requested_item shift.opened is exist - process it [08:14:43]req_shift_opened [08:14:43]FM_GetShiftState [08:14:43]SAM_PROTO_GetShiftState [08:14:43]wFMCommunicate request_size=4 [08:14:43]MH_SAM_APDU [08:14:43]CAPDU: 80 13 01 00 [08:14:43]Write to MH i2c: E2 08 00 87 53 80 13 01 00 00 00 00 00 57 [08:14:43]Write i2c OK [08:14:43]MH_I2C_Read... [08:14:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:43]Read from MH i2c: E2 [08:14:43]MH_I2C_Read... [08:14:43]Read from MH i2c: E2 0E 00 [08:14:43]MH_I2C_Read... [08:14:43]Read from MH i2c: E2 0E 00 87 53 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 94 [08:14:43]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:14:43]wFMCommunicate OK [08:14:43]SAM_PROTO_GetShiftState done [08:14:43]FM_GetShiftState done [08:14:43]req_shift_opened done [08:14:43]requested_item shift.open_date is exist - process it [08:14:43]req_shift_open_date [08:14:43]req_shift_open_date done [08:14:43]produce_requested_data done [08:14:43]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260526,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [08:14:43]process_action_free close_receipt [08:14:43]json_value_free [08:14:43]json_value_free done [08:14:43]process_json_proto returns [08:14:43]Send response to host [08:14:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260526,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [08:14:43]free response buf [08:14:43]execute_script done [08:14:43]execute_script returns [08:14:43]free content buf [08:14:43]Sock 9.Close socket [08:14:43]Sock 9.Thread stoped [08:14:45]OFD Sender: No OFD packet to send [08:14:50]OFD Sender: No OFD packet to send [08:14:55]OFD Sender: No OFD packet to send [08:15:00]OFD Sender: No OFD packet to send [08:15:02]accept exits with 7 [08:15:02]New connection [08:15:02]New thread 3066617188 created [08:15:02]Thread 3066473828 joined [08:15:02]Waiting for new connection... [08:15:02] Sock 7.Parse request [08:15:02]Sock 7.Check first char [08:15:02]Sock 7.First char is OK [08:15:02]request: POST /json_proto HTTP/1.0 [08:15:02]Method: POST [08:15:02]URL: /json_proto [08:15:02]Method is POST - this is cgi request [08:15:02]url: /json_proto [08:15:02]query_string will be loaded in cgi processing [08:15:02]execute_cgi json_proto POST (null) [08:15:02]execute_cgi path=json_proto method=POST [08:15:02]POST find Content-Length [08:15:02]Host: 172.17.55.133:8080 [08:15:02]Content-Length: 804 [08:15:02]Content-Type: application/json [08:15:02] [08:15:02]POST finish read [08:15:02]Found Content-Length = 804 [08:15:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:15:02]execute_script... [08:15: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)1036071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:15:02]POST & json_proto [08:15:02]process_json_proto [08:15:02]json parsed OK: [08:15:02]protocol is kg_v1.0 [08:15:02]action value=close_receipt [08:15:02]process_action close_receipt [08:15:02]cmd_close_receipt [08:15:02]MH_GetDate [08:15:02]Write to MH i2c: F0 00 00 88 53 CA [08:15:02]Write i2c OK [08:15:02]MH_I2C_Read... [08:15:02]Read from MH i2c: F0 [08:15:02]MH_I2C_Read... [08:15:02]Read from MH i2c: F0 09 00 [08:15:02]MH_I2C_Read... [08:15:02]Read from MH i2c: F0 09 00 88 53 00 89 AD C1 66 34 48 D8 65 E9 [08:15:02]GetLastDocTimeStamp 1723968881 [08:15:02]current date 1723968905 [08:15:02]FM_GetShiftState [08:15:02]SAM_PROTO_GetShiftState [08:15:02]wFMCommunicate request_size=4 [08:15:02]MH_SAM_APDU [08:15:02]CAPDU: 80 13 01 00 [08:15:02]Write to MH i2c: E2 08 00 89 53 80 13 01 00 00 00 00 00 59 [08:15:02]Write i2c OK [08:15:02]MH_I2C_Read... [08:15:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:02]Read from MH i2c: E2 [08:15:02]MH_I2C_Read... [08:15:02]Read from MH i2c: E2 0E 00 [08:15:02]MH_I2C_Read... [08:15:02]Read from MH i2c: E2 0E 00 89 53 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 96 [08:15:02]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:15:02]wFMCommunicate OK [08:15:02]SAM_PROTO_GetShiftState done [08:15:02]FM_GetShiftState done [08:15:02]opened in 1723940556 [08:15:02]opened+sec_in_day 1724026956 [08:15:02]quantity*price = 100005 [08:15:02]sum+1 = 100006 [08:15:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 85 18.08.2024 08:15 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260527 ФПД: 245235340132956 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T081505&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260527&fm=245235340132956&tin=02508201610067®Number=0000000000091865&sum=100005 [08:15:03]StoreToDocumentArchive [08:15:03]shift 449 fd 260527 [08:15:03]save to /storage/0449/doc_00260527 [08:15:03]save last doc name /storage/0449/doc_00260527 to /storage/kkm_last_doc_name [08:15:03]save OK [08:15:03]Clear old archive folders... [08:15:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:15:03]tlvbuf is 0033C460 [08:15:03]SAM_PROTO_ClearQueue [08:15:03]wFMCommunicate request_size=4 [08:15:03]MH_SAM_APDU [08:15:03]CAPDU: 80 09 00 00 [08:15:03]Write to MH i2c: E2 08 00 96 53 80 09 00 00 00 00 00 00 5B [08:15:03]Write i2c OK [08:15:03]MH_I2C_Read... [08:15:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:15:03]Read from MH i2c: E2 [08:15:03]MH_I2C_Read... [08:15:03]Read from MH i2c: E2 03 00 [08:15:03]MH_I2C_Read... [08:15:03]Read from MH i2c: E2 03 00 96 53 00 90 00 5D [08:15:03]RAPDU: 90 00 [08:15:03]wFMCommunicate OK [08:15:03]SAM_PROTO_ClearQueue done [08:15:03]KKMCreateOFDPacket [08:15:03]OFDProtocolAddRootSTLVToBuf [08:15:03]FM_MakeSignedData [08:15:03]FM_MakeSignedData [08:15:03]SAM_PROTO_SignData [08:15:03]wFMCommunicate request_size=4 [08:15:03]MH_SAM_APDU [08:15:03]CAPDU: 80 0D 01 02 [08:15:03]Write to MH i2c: E2 08 00 97 53 80 0D 01 02 00 00 00 00 63 [08:15:03]Write i2c OK [08:15:03]MH_I2C_Read... [08:15:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:15:03]Read from MH i2c: E2 [08:15:03]MH_I2C_Read... [08:15:03]Read from MH i2c: E2 03 00 [08:15:03]MH_I2C_Read... [08:15:03]Read from MH i2c: E2 03 00 97 53 00 90 00 5E [08:15:03]RAPDU: 90 00 [08:15:03]wFMCommunicate OK [08:15:03]wFMCommunicate request_size=255 [08:15:03]MH_SAM_APDU [08:15:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 89 AD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AF F9 03 00 35 04 06 00 DF [08:15:03]Write to MH i2c: E2 02 01 98 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 89 AD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AF F9 03 00 35 04 06 00 DF 00 00 77 [08:15:03]Write i2c OK [08:15:03]MH_I2C_Read... [08:15:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:03]Read from MH i2c: E2 [08:15:03]MH_I2C_Read... [08:15:03]Read from MH i2c: E2 03 00 [08:15:03]MH_I2C_Read... [08:15:03]Read from MH i2c: E2 03 00 98 53 00 90 00 5F [08:15:03]RAPDU: 90 00 [08:15:03]wFMCommunicate OK [08:15:03]wFMCommunicate request_size=10 [08:15:03]MH_SAM_APDU [08:15:03]CAPDU: 80 0D 02 02 05 0A 4D 55 C2 5C [08:15:03]Write to MH i2c: E2 0D 00 99 53 80 0D 02 02 05 00 0A 4D 55 C2 5C 00 00 3A [08:15:03]Write i2c OK [08:15:03]MH_I2C_Read... [08:15:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:03]Read from MH i2c: E2 [08:15:03]MH_I2C_Read... [08:15:03]Read from MH i2c: E2 03 00 [08:15:03]MH_I2C_Read... [08:15:03]Read from MH i2c: E2 03 00 99 53 00 90 00 60 [08:15:03]RAPDU: 90 00 [08:15:03]wFMCommunicate OK [08:15:03]wFMCommunicate request_size=4 [08:15:03]MH_SAM_APDU [08:15:03]CAPDU: 80 0D 03 02 [08:15:03]Write to MH i2c: E2 08 00 9A 53 80 0D 03 02 00 00 00 00 68 [08:15:03]Write i2c OK [08:15:03]MH_I2C_Read... [08:15:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:15:03]Read from MH i2c: E2 [08:15:03]MH_I2C_Read... [08:15:03]Read from MH i2c: E2 0B 00 [08:15:03]MH_I2C_Read... [08:15:03]Read from MH i2c: E2 0B 00 9A 53 00 4A 74 D9 09 EC A5 C4 0D 90 00 6B [08:15:03]RAPDU: 4A 74 D9 09 EC A5 C4 0D 90 00 [08:15:03]wFMCommunicate OK [08:15:03]SAM_PROTO_SignData done [08:15:03]FM_MakeSignedData done [08:15:03]CreateOFDProtocolMessage [08:15:03]wFMCommunicate request_size=4 [08:15:03]MH_SAM_APDU [08:15:03]CAPDU: 80 11 00 00 [08:15:03]Write to MH i2c: E2 08 00 9B 53 80 11 00 00 00 00 00 00 68 [08:15:03]Write i2c OK [08:15:03]MH_I2C_Read... [08:15:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:03]Read from MH i2c: E2 [08:15:03]MH_I2C_Read... [08:15:03]Read from MH i2c: E2 17 00 [08:15:03]MH_I2C_Read... [08:15:03]Read from MH i2c: E2 17 00 9B 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B5 [08:15:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:15:03]wFMCommunicate OK [08:15:03]CreateOFDProtocolMessage done [08:15:03]OFDSenderStorePacket 260527 [08:15:03]StoreOFDPacket docnum=260527 [08:15:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 21 62 07 01 87 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 89 AD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AF F9 03 00 35 04 06 00 DF 0A 4D 55 C2 5C 4A 74 D9 09 EC A5 C4 0D [08:15:03]CheckFolder [08:15:03]dirname=/storage/ofd_packets [08:15:03]CheckFolder done [08:15:03]ProducePacketName [08:15:03]name=ofd_packets/00260527 [08:15:03]NVStorageSaveData ofd_packets/00260527 [08:15:03]File name is /storage/ofd_packets/00260527 [08:15:03]Write 301 bytes [08:15:03]NVStorageSaveData done [08:15:03]OFDSenderStorePacket done [08:15:03]KKMCreateOFDPacket done [08:15:03]NVStorageSaveData kkm_last_timestamp [08:15:03]File name is /storage/kkm_last_timestamp [08:15:03]Write 4 bytes [08:15:03]NVStorageSaveData done [08:15:03]ExternCall_PrintAddStr [08:15:03]wPrintStart [08:15:03]Write to MH i2c: 01 00 00 9C 53 EF [08:15:03]Write i2c OK [08:15:03]MH_I2C_Read... [08:15:03]Read from MH i2c: 01 [08:15:03]MH_I2C_Read... [08:15:03]Read from MH i2c: 01 07 00 [08:15:03]MH_I2C_Read... [08:15:03]Read from MH i2c: 01 07 00 9C 53 00 00 00 00 00 FF 0F 04 [08:15:03]RasterBufferAndPrint [08:15:03]line Счет N : (1)1036071 [08:15:03]line ИНН: 02508201610067 [08:15:03]line Контрольно-Кассовый Чек [08:15:03]line ПРОДАЖА [08:15:03]line ТРК (МРК, ГНК) : 12 [08:15:03]line Товар: 2710124130 [08:15:03]line Аи-92-К-5 [08:15:03]line 14.750 * 67.80 [08:15:03]line = 1000.05 [08:15:03]line НДС 12% НСП 1% [08:15:03]line > о реализуемом товаре [08:15:03]line ИТОГО: 1000.05 [08:15:03]line НСП 1% : 8.85 [08:15:03]line НДС 12% : 106.20 [08:15:03]line Наличными: 0.00 [08:15:03]line Безнал.: 1000.05 [08:15:03]line Место: АЗС № 94 "Партнер Нефть" [08:15:03]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [08:15:03]line СНО: Общий режим [08:15:03]line Чек 85 18.08.2024 08:15 [08:15:03]line Смена: 449 ФФД: 1.0 [08:15:03]line ЗНМ: 0300000099 [08:15:03]line РНМ: 0000000000091865 [08:15:03]line Версия ККМ: 001 [08:15:03]line Платежная система: O! деньги [08:15:03]line ФМ: 0000000000871820 [08:15:03]line ФД: 260527 [08:15:03]line ФПД: 245235340132956 [08:15:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T081505&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260527&fm=245235340132956&tin=02508201610067®Number=0000000000091865&sum=100005 [08:15:03]written 0, free lines is 4095 [08:15:03]OFD Sender: Processing packet 260527 [packets to send 192, broken 191] [08:15:03]ProducePacketName [08:15:03]name=ofd_packets/00260527 [08:15:04]OFD Sender: To server: pG, [08:15:04]CommunicateWithHost lk.salyk.kg:30040 [08:15:04]ConnectInit lk.salyk.kg [08:15:04]Connected sock=10 [08:15: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 30 0F 01 00 00 21 62 07 01 87 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 89 AD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AF F9 03 00 35 04 06 00 DF 0A 4D 55 C2 5C 4A 74 D9 09 EC A5 C4 0D [08:15:04]Write to MH i2c: 01 00 00 C6 53 19 [08:15:04]Write i2c OK [08:15:04]MH_I2C_Read... [08:15:04]Read from MH i2c: 01 [08:15:04]MH_I2C_Read... [08:15:04]Read from MH i2c: 01 07 00 [08:15:04]MH_I2C_Read... [08:15:04]Read from MH i2c: 01 07 00 C6 53 00 00 00 00 00 86 0C B2 [08:15:04]RasterBufferAndPrint [08:15:04]line [08:15:04]line [08:15:04]line [08:15:04]line [08:15:04]line [08:15:04]written 0, free lines is 3209 [08:15:04]MH_Cut [08:15:04]Write to MH i2c: D1 01 00 CD 53 01 F2 [08:15:04]Write i2c OK [08:15:04]MH_I2C_Read... [08:15:04]Read from MH i2c: D1 [08:15:04]MH_I2C_Read... [08:15:04]Read from MH i2c: D1 01 00 [08:15:04]MH_I2C_Read... [08:15:04]Read from MH i2c: D1 01 00 CD 53 00 F1 [08:15:04]Write to MH i2c: 01 00 00 CE 53 21 [08:15:04]Write i2c OK [08:15:04]MH_I2C_Read... [08:15: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 30 4F 00 00 00 E2 80 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 30 10 04 04 00 AF F9 03 00 F4 03 04 00 DF 56 C1 66 B6 04 01 00 00 04 2E C3 C0 74 41 46 5A [08:15:04]CommunicateWithHost err = 0 [08:15:04]CheckOFDResponse [08:15:04]1017 (14) - 77093643461234 [08:15:04]1041 (16) - 0000000000871820 [08:15:04]1040 (4) - 260527 [08:15:04]1012 (4) - 18.08.2024 02:05 [08:15:04]1206 (1) - 0 [08:15:04]OFD Sender: Remove packet 260527 [08:15:04]ProducePacketName [08:15:04]name=ofd_packets/00260527 [08:15:04]NVStorageDeleteData [08:15:04]OFD Sender: No OFD packet to send [08:15:05]*** Cut start [08:15:05]*** Purtial cut [08:15:05]*** Stage 1: CUTSNS_PIN = 1 [08:15:07]Read from MH i2c: 01 [08:15:07]MH_I2C_Read... [08:15:07]*** Stop cut motor [08:15:07]*** Cut end [08:15:07]Read from MH i2c: 01 07 00 [08:15:07]MH_I2C_Read... [08:15:07]Read from MH i2c: 01 07 00 CE 53 00 00 00 00 00 FF 0F 36 [08:15:07]process_action close_receipt done [08:15:07]requested_data is exist [08:15:07]produce_requested_data [08:15:07]requested_item fm.sn is exist - process it [08:15:07]wFMCommunicate request_size=4 [08:15:07]MH_SAM_APDU [08:15:07]CAPDU: 80 11 00 00 [08:15:07]Write to MH i2c: E2 08 00 CF 53 80 11 00 00 00 00 00 00 9C [08:15:07]Write i2c OK [08:15:07]MH_I2C_Read... [08:15:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:07]Read from MH i2c: E2 [08:15:07]MH_I2C_Read... [08:15:07]Read from MH i2c: E2 17 00 [08:15:07]MH_I2C_Read... [08:15:07]Read from MH i2c: E2 17 00 CF 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E9 [08:15:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:15:07]wFMCommunicate OK [08:15:07]requested_item fd.num is exist - process it [08:15:07]SAM_PROTO_GetFieldsCounters [08:15:07]wFMCommunicate request_size=4 [08:15:07]MH_SAM_APDU [08:15:07]CAPDU: 80 13 00 00 [08:15:07]Write to MH i2c: E2 08 00 D0 53 80 13 00 00 00 00 00 00 9F [08:15:07]Write i2c OK [08:15:07]MH_I2C_Read... [08:15:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:15:07]Read from MH i2c: E2 [08:15:07]MH_I2C_Read... [08:15:07]Read from MH i2c: E2 62 00 [08:15:07]MH_I2C_Read... [08:15:07]Read from MH i2c: E2 62 00 D0 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 AF F9 03 00 0E 04 04 00 C1 01 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 2A [08:15: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 AF F9 03 00 0E 04 04 00 C1 01 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 [08:15:07]wFMCommunicate OK [08:15:07]SAM_PROTO_GetFieldsCounters done [08:15:07]requested_item shift.num is exist - process it [08:15:07]requested_item shift.opened is exist - process it [08:15:07]req_shift_opened [08:15:07]FM_GetShiftState [08:15:07]SAM_PROTO_GetShiftState [08:15:07]wFMCommunicate request_size=4 [08:15:07]MH_SAM_APDU [08:15:07]CAPDU: 80 13 01 00 [08:15:07]Write to MH i2c: E2 08 00 D1 53 80 13 01 00 00 00 00 00 A1 [08:15:07]Write i2c OK [08:15:07]MH_I2C_Read... [08:15:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:07]Read from MH i2c: E2 [08:15:07]MH_I2C_Read... [08:15:07]Read from MH i2c: E2 0E 00 [08:15:07]MH_I2C_Read... [08:15:07]Read from MH i2c: E2 0E 00 D1 53 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 DE [08:15:07]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:15:07]wFMCommunicate OK [08:15:07]SAM_PROTO_GetShiftState done [08:15:07]FM_GetShiftState done [08:15:07]req_shift_opened done [08:15:07]requested_item shift.open_date is exist - process it [08:15:07]req_shift_open_date [08:15:07]req_shift_open_date done [08:15:07]produce_requested_data done [08:15:07]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260527,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [08:15:07]process_action_free close_receipt [08:15:07]json_value_free [08:15:07]json_value_free done [08:15:07]process_json_proto returns [08:15:07]Send response to host [08:15:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260527,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [08:15:07]free response buf [08:15:07]execute_script done [08:15:07]execute_script returns [08:15:07]free content buf [08:15:07]Sock 7.Close socket [08:15:07]Sock 7.Thread stoped [08:15:09]OFD Sender: No OFD packet to send [08:15:14]OFD Sender: No OFD packet to send [08:15:19]OFD Sender: No OFD packet to send [08:15:24]OFD Sender: No OFD packet to send [08:15:29]OFD Sender: No OFD packet to send [08:15:34]OFD Sender: No OFD packet to send [08:15:39]OFD Sender: No OFD packet to send [08:15:44]OFD Sender: No OFD packet to send [08:15:50]OFD Sender: No OFD packet to send [08:15:55]OFD Sender: No OFD packet to send [08:16:00]OFD Sender: No OFD packet to send [08:16:05]OFD Sender: No OFD packet to send [08:16:10]OFD Sender: No OFD packet to send [08:16:15]OFD Sender: No OFD packet to send [08:16:20]OFD Sender: No OFD packet to send [08:16:25]OFD Sender: No OFD packet to send [08:16:30]OFD Sender: No OFD packet to send [08:16:35]OFD Sender: No OFD packet to send [08:16:35]accept exits with 9 [08:16:35]New connection [08:16:35]New thread 3066473828 created [08:16:35]Thread 3066617188 joined [08:16:35]Waiting for new connection... [08:16:35] Sock 9.Parse request [08:16:35]Sock 9.Check first char [08:16:35]Sock 9.First char is OK [08:16:35]request: POST /json_proto HTTP/1.0 [08:16:35]Method: POST [08:16:35]URL: /json_proto [08:16:35]Method is POST - this is cgi request [08:16:35]url: /json_proto [08:16:35]query_string will be loaded in cgi processing [08:16:35]execute_cgi json_proto POST (null) [08:16:35]execute_cgi path=json_proto method=POST [08:16:35]POST find Content-Length [08:16:35]Host: 172.17.55.133:8080 [08:16:35]Content-Length: 804 [08:16:35]Content-Type: application/json [08:16:35] [08:16:35]POST finish read [08:16:35]Found Content-Length = 804 [08:16:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:35]execute_script... [08:16: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)1036072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:35]POST & json_proto [08:16:35]process_json_proto [08:16:35]json parsed OK: [08:16:35]protocol is kg_v1.0 [08:16:35]action value=close_receipt [08:16:35]process_action close_receipt [08:16:35]cmd_close_receipt [08:16:35]MH_GetDate [08:16:35]Write to MH i2c: F0 00 00 D2 53 14 [08:16:35]Write i2c OK [08:16:35]MH_I2C_Read... [08:16:35]Read from MH i2c: F0 [08:16:35]MH_I2C_Read... [08:16:35]Read from MH i2c: F0 09 00 [08:16:35]MH_I2C_Read... [08:16:35]Read from MH i2c: F0 09 00 D2 53 00 E7 AD C1 66 34 48 D8 65 91 [08:16:35]GetLastDocTimeStamp 1723968905 [08:16:35]current date 1723968999 [08:16:35]FM_GetShiftState [08:16:35]SAM_PROTO_GetShiftState [08:16:35]wFMCommunicate request_size=4 [08:16:35]MH_SAM_APDU [08:16:35]CAPDU: 80 13 01 00 [08:16:35]Write to MH i2c: E2 08 00 D3 53 80 13 01 00 00 00 00 00 A3 [08:16:35]Write i2c OK [08:16:35]MH_I2C_Read... [08:16:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:35]Read from MH i2c: E2 [08:16:35]MH_I2C_Read... [08:16:35]Read from MH i2c: E2 0E 00 [08:16:35]MH_I2C_Read... [08:16:35]Read from MH i2c: E2 0E 00 D3 53 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E0 [08:16:35]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:16:35]wFMCommunicate OK [08:16:35]SAM_PROTO_GetShiftState done [08:16:35]FM_GetShiftState done [08:16:35]opened in 1723940556 [08:16:35]opened+sec_in_day 1724026956 [08:16:35]quantity*price = 100005 [08:16:35]sum+1 = 100006 [08:16:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 86 18.08.2024 08:16 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260528 ФПД: 35266616743952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T081639&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260528&fm=35266616743952&tin=02508201610067®Number=0000000000091865&sum=100005 [08:16:36]StoreToDocumentArchive [08:16:36]shift 449 fd 260528 [08:16:36]save to /storage/0449/doc_00260528 [08:16:36]save last doc name /storage/0449/doc_00260528 to /storage/kkm_last_doc_name [08:16:36]save OK [08:16:36]Clear old archive folders... [08:16:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:16:36]tlvbuf is 00346D90 [08:16:36]SAM_PROTO_ClearQueue [08:16:36]wFMCommunicate request_size=4 [08:16:36]MH_SAM_APDU [08:16:36]CAPDU: 80 09 00 00 [08:16:36]Write to MH i2c: E2 08 00 E0 53 80 09 00 00 00 00 00 00 A5 [08:16:36]Write i2c OK [08:16:36]MH_I2C_Read... [08:16:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:16:36]Read from MH i2c: E2 [08:16:36]MH_I2C_Read... [08:16:36]Read from MH i2c: E2 03 00 [08:16:36]MH_I2C_Read... [08:16:36]Read from MH i2c: E2 03 00 E0 53 00 90 00 A7 [08:16:36]RAPDU: 90 00 [08:16:36]wFMCommunicate OK [08:16:36]SAM_PROTO_ClearQueue done [08:16:36]KKMCreateOFDPacket [08:16:36]OFDProtocolAddRootSTLVToBuf [08:16:36]FM_MakeSignedData [08:16:36]FM_MakeSignedData [08:16:36]SAM_PROTO_SignData [08:16:36]wFMCommunicate request_size=4 [08:16:36]MH_SAM_APDU [08:16:36]CAPDU: 80 0D 01 02 [08:16:36]Write to MH i2c: E2 08 00 E1 53 80 0D 01 02 00 00 00 00 AD [08:16:36]Write i2c OK [08:16:36]MH_I2C_Read... [08:16:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:16:37]Read from MH i2c: E2 [08:16:37]MH_I2C_Read... [08:16:37]Read from MH i2c: E2 03 00 [08:16:37]MH_I2C_Read... [08:16:37]Read from MH i2c: E2 03 00 E1 53 00 90 00 A8 [08:16:37]RAPDU: 90 00 [08:16:37]wFMCommunicate OK [08:16:37]wFMCommunicate request_size=255 [08:16:37]MH_SAM_APDU [08:16:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 E7 AD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B0 F9 03 00 35 04 06 00 20 [08:16:37]Write to MH i2c: E2 02 01 E2 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 E7 AD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B0 F9 03 00 35 04 06 00 20 00 00 62 [08:16:37]Write i2c OK [08:16:37]MH_I2C_Read... [08:16:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:37]Read from MH i2c: E2 [08:16:37]MH_I2C_Read... [08:16:37]Read from MH i2c: E2 03 00 [08:16:37]MH_I2C_Read... [08:16:37]Read from MH i2c: E2 03 00 E2 53 00 90 00 A9 [08:16:37]RAPDU: 90 00 [08:16:37]wFMCommunicate OK [08:16:37]wFMCommunicate request_size=10 [08:16:37]MH_SAM_APDU [08:16:37]CAPDU: 80 0D 02 02 05 13 26 29 D8 10 [08:16:37]Write to MH i2c: E2 0D 00 E3 53 80 0D 02 02 05 00 13 26 29 D8 10 00 00 04 [08:16:37]Write i2c OK [08:16:37]MH_I2C_Read... [08:16:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:37]Read from MH i2c: E2 [08:16:37]MH_I2C_Read... [08:16:37]Read from MH i2c: E2 03 00 [08:16:37]MH_I2C_Read... [08:16:37]Read from MH i2c: E2 03 00 E3 53 00 90 00 AA [08:16:37]RAPDU: 90 00 [08:16:37]wFMCommunicate OK [08:16:37]wFMCommunicate request_size=4 [08:16:37]MH_SAM_APDU [08:16:37]CAPDU: 80 0D 03 02 [08:16:37]Write to MH i2c: E2 08 00 E4 53 80 0D 03 02 00 00 00 00 B2 [08:16:37]Write i2c OK [08:16:37]MH_I2C_Read... [08:16:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:16:37]Read from MH i2c: E2 [08:16:37]MH_I2C_Read... [08:16:37]Read from MH i2c: E2 0B 00 [08:16:37]MH_I2C_Read... [08:16:37]Read from MH i2c: E2 0B 00 E4 53 00 C2 0B 91 93 6B F2 F2 C6 90 00 B9 [08:16:37]RAPDU: C2 0B 91 93 6B F2 F2 C6 90 00 [08:16:37]wFMCommunicate OK [08:16:37]SAM_PROTO_SignData done [08:16:37]FM_MakeSignedData done [08:16:37]CreateOFDProtocolMessage [08:16:37]wFMCommunicate request_size=4 [08:16:37]MH_SAM_APDU [08:16:37]CAPDU: 80 11 00 00 [08:16:37]Write to MH i2c: E2 08 00 E5 53 80 11 00 00 00 00 00 00 B2 [08:16:37]Write i2c OK [08:16:37]MH_I2C_Read... [08:16:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:37]Read from MH i2c: E2 [08:16:37]MH_I2C_Read... [08:16:37]Read from MH i2c: E2 17 00 [08:16:37]MH_I2C_Read... [08:16:37]Read from MH i2c: E2 17 00 E5 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 FF [08:16:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:16:37]wFMCommunicate OK [08:16:37]CreateOFDProtocolMessage done [08:16:37]OFDSenderStorePacket 260528 [08:16:37]StoreOFDPacket docnum=260528 [08:16:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 F9 8C 07 01 73 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 E7 AD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B0 F9 03 00 35 04 06 00 20 13 26 29 D8 10 C2 0B 91 93 6B F2 F2 C6 [08:16:37]CheckFolder [08:16:37]dirname=/storage/ofd_packets [08:16:37]CheckFolder done [08:16:37]ProducePacketName [08:16:37]name=ofd_packets/00260528 [08:16:37]NVStorageSaveData ofd_packets/00260528 [08:16:37]File name is /storage/ofd_packets/00260528 [08:16:37]Write 301 bytes [08:16:37]NVStorageSaveData done [08:16:37]OFDSenderStorePacket done [08:16:37]KKMCreateOFDPacket done [08:16:37]NVStorageSaveData kkm_last_timestamp [08:16:37]File name is /storage/kkm_last_timestamp [08:16:37]Write 4 bytes [08:16:37]NVStorageSaveData done [08:16:37]ExternCall_PrintAddStr [08:16:37]wPrintStart [08:16:37]Write to MH i2c: 01 00 00 E6 53 39 [08:16:37]Write i2c OK [08:16:37]MH_I2C_Read... [08:16:37]Read from MH i2c: 01 [08:16:37]MH_I2C_Read... [08:16:37]Read from MH i2c: 01 07 00 [08:16:37]MH_I2C_Read... [08:16:37]Read from MH i2c: 01 07 00 E6 53 00 00 00 00 00 FF 0F 4E [08:16:37]RasterBufferAndPrint [08:16:37]line Счет N : (1)1036072 [08:16:37]line ИНН: 02508201610067 [08:16:37]line Контрольно-Кассовый Чек [08:16:37]line ПРОДАЖА [08:16:37]line ТРК (МРК, ГНК) : 22 [08:16:37]line Товар: 2710124130 [08:16:37]line Аи-92-К-5 [08:16:37]line 14.750 * 67.80 [08:16:37]line = 1000.05 [08:16:37]line НДС 12% НСП 1% [08:16:37]line > о реализуемом товаре [08:16:37]line ИТОГО: 1000.05 [08:16:37]line НСП 1% : 8.85 [08:16:37]line НДС 12% : 106.20 [08:16:37]line Наличными: 0.00 [08:16:37]line Безнал.: 1000.05 [08:16:37]line Место: АЗС № 94 "Партнер Нефть" [08:16:37]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [08:16:37]line СНО: Общий режим [08:16:37]line Чек 86 18.08.2024 08:16 [08:16:37]line Смена: 449 ФФД: 1.0 [08:16:37]line ЗНМ: 0300000099 [08:16:37]line РНМ: 0000000000091865 [08:16:37]line Версия ККМ: 001 [08:16:37]line Платежная система: O! деньги [08:16:37]line ФМ: 0000000000871820 [08:16:37]line ФД: 260528 [08:16:37]line ФПД: 35266616743952 [08:16:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T081639&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260528&fm=35266616743952&tin=02508201610067®Number=0000000000091865&sum=100005 [08:16:37]written 0, free lines is 4095 [08:16:37]OFD Sender: Processing packet 260528 [packets to send 192, broken 191] [08:16:37]ProducePacketName [08:16:37]name=ofd_packets/00260528 [08:16:37]OFD Sender: To server: pG, [08:16:37]CommunicateWithHost lk.salyk.kg:30040 [08:16:37]ConnectInit lk.salyk.kg [08:16:37]Connected sock=10 [08:16: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 30 0F 01 00 00 F9 8C 07 01 73 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 E7 AD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B0 F9 03 00 35 04 06 00 20 13 26 29 D8 10 C2 0B 91 93 6B F2 F2 C6 [08:16: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 30 4F 00 00 00 87 76 47 00 96 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B0 F9 03 00 F4 03 04 00 3D 57 C1 66 B6 04 01 00 00 AD 31 1B AA F2 50 DD 6C [08:16:37]CommunicateWithHost err = 0 [08:16:37]CheckOFDResponse [08:16:37]1017 (14) - 77093643461234 [08:16:37]1041 (16) - 0000000000871820 [08:16:37]1040 (4) - 260528 [08:16:37]1012 (4) - 18.08.2024 02:06 [08:16:37]1206 (1) - 0 [08:16:37]OFD Sender: Remove packet 260528 [08:16:37]ProducePacketName [08:16:37]name=ofd_packets/00260528 [08:16:37]NVStorageDeleteData [08:16:37]Write to MH i2c: 01 00 00 10 54 64 [08:16:37]Write i2c OK [08:16:37]MH_I2C_Read... [08:16:37]Read from MH i2c: 01 [08:16:37]MH_I2C_Read... [08:16:37]Read from MH i2c: 01 07 00 [08:16:37]MH_I2C_Read... [08:16:37]Read from MH i2c: 01 07 00 10 54 00 00 00 00 00 7C 0C F3 [08:16:37]RasterBufferAndPrint [08:16:37]line [08:16:37]line [08:16:37]line [08:16:37]line [08:16:37]line [08:16:37]written 0, free lines is 3200 [08:16:37]MH_Cut [08:16:37]Write to MH i2c: D1 01 00 17 54 01 3D [08:16:37]Write i2c OK [08:16:37]MH_I2C_Read... [08:16:37]Read from MH i2c: D1 [08:16:37]MH_I2C_Read... [08:16:37]Read from MH i2c: D1 01 00 [08:16:37]MH_I2C_Read... [08:16:37]Read from MH i2c: D1 01 00 17 54 00 3C [08:16:37]Write to MH i2c: 01 00 00 18 54 6C [08:16:37]Write i2c OK [08:16:37]MH_I2C_Read... [08:16:38]OFD Sender: No OFD packet to send [08:16:39]*** Cut start [08:16:39]*** Purtial cut [08:16:39]*** Stage 1: CUTSNS_PIN = 1 [08:16:41]Read from MH i2c: 01 [08:16:41]MH_I2C_Read... [08:16:41]*** Stop cut motor [08:16:41]*** Cut end [08:16:41]Read from MH i2c: 01 07 00 [08:16:41]MH_I2C_Read... [08:16:41]Read from MH i2c: 01 07 00 18 54 00 00 00 00 00 FF 0F 81 [08:16:41]process_action close_receipt done [08:16:41]requested_data is exist [08:16:41]produce_requested_data [08:16:41]requested_item fm.sn is exist - process it [08:16:41]wFMCommunicate request_size=4 [08:16:41]MH_SAM_APDU [08:16:41]CAPDU: 80 11 00 00 [08:16:41]Write to MH i2c: E2 08 00 19 54 80 11 00 00 00 00 00 00 E7 [08:16:41]Write i2c OK [08:16:41]MH_I2C_Read... [08:16:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:41]Read from MH i2c: E2 [08:16:41]MH_I2C_Read... [08:16:41]Read from MH i2c: E2 17 00 [08:16:41]MH_I2C_Read... [08:16:41]Read from MH i2c: E2 17 00 19 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 34 [08:16:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:16:41]wFMCommunicate OK [08:16:41]requested_item fd.num is exist - process it [08:16:41]SAM_PROTO_GetFieldsCounters [08:16:41]wFMCommunicate request_size=4 [08:16:41]MH_SAM_APDU [08:16:41]CAPDU: 80 13 00 00 [08:16:41]Write to MH i2c: E2 08 00 1A 54 80 13 00 00 00 00 00 00 EA [08:16:41]Write i2c OK [08:16:41]MH_I2C_Read... [08:16:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:16:41]Read from MH i2c: E2 [08:16:41]MH_I2C_Read... [08:16:41]Read from MH i2c: E2 62 00 [08:16:41]MH_I2C_Read... [08:16:41]Read from MH i2c: E2 62 00 1A 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B0 F9 03 00 0E 04 04 00 C1 01 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 79 [08:16: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B0 F9 03 00 0E 04 04 00 C1 01 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 [08:16:41]wFMCommunicate OK [08:16:41]SAM_PROTO_GetFieldsCounters done [08:16:41]requested_item shift.num is exist - process it [08:16:41]requested_item shift.opened is exist - process it [08:16:41]req_shift_opened [08:16:41]FM_GetShiftState [08:16:41]SAM_PROTO_GetShiftState [08:16:41]wFMCommunicate request_size=4 [08:16:41]MH_SAM_APDU [08:16:41]CAPDU: 80 13 01 00 [08:16:41]Write to MH i2c: E2 08 00 1B 54 80 13 01 00 00 00 00 00 EC [08:16:41]Write i2c OK [08:16:41]MH_I2C_Read... [08:16:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:41]Read from MH i2c: E2 [08:16:41]MH_I2C_Read... [08:16:41]Read from MH i2c: E2 0E 00 [08:16:41]MH_I2C_Read... [08:16:41]Read from MH i2c: E2 0E 00 1B 54 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 29 [08:16:41]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:16:41]wFMCommunicate OK [08:16:41]SAM_PROTO_GetShiftState done [08:16:41]FM_GetShiftState done [08:16:41]req_shift_opened done [08:16:41]requested_item shift.open_date is exist - process it [08:16:41]req_shift_open_date [08:16:41]req_shift_open_date done [08:16:41]produce_requested_data done [08:16:41]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260528,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [08:16:41]process_action_free close_receipt [08:16:41]json_value_free [08:16:41]json_value_free done [08:16:41]process_json_proto returns [08:16:41]Send response to host [08:16:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260528,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [08:16:41]free response buf [08:16:41]execute_script done [08:16:41]execute_script returns [08:16:41]free content buf [08:16:41]Sock 9.Close socket [08:16:41]Sock 9.Thread stoped [08:16:43]OFD Sender: No OFD packet to send [08:16:48]OFD Sender: No OFD packet to send [08:16:53]OFD Sender: No OFD packet to send [08:16:58]OFD Sender: No OFD packet to send [08:17:03]OFD Sender: No OFD packet to send [08:17:08]OFD Sender: No OFD packet to send [08:17:13]OFD Sender: No OFD packet to send [08:17:18]OFD Sender: No OFD packet to send [08:17:23]OFD Sender: No OFD packet to send [08:17:28]OFD Sender: No OFD packet to send [08:17:33]OFD Sender: No OFD packet to send [08:17:38]OFD Sender: No OFD packet to send [08:17:43]OFD Sender: No OFD packet to send [08:17:48]OFD Sender: No OFD packet to send [08:17:53]OFD Sender: No OFD packet to send [08:17:58]OFD Sender: No OFD packet to send [08:18:03]OFD Sender: No OFD packet to send [08:18:08]OFD Sender: No OFD packet to send [08:18:13]OFD Sender: No OFD packet to send [08:18:18]OFD Sender: No OFD packet to send [08:18:23]OFD Sender: No OFD packet to send [08:18:28]OFD Sender: No OFD packet to send [08:18:33]OFD Sender: No OFD packet to send [08:18:38]OFD Sender: No OFD packet to send [08:18:39]accept exits with 7 [08:18:39]New connection [08:18:39]New thread 3066617188 created [08:18:39]Thread 3066473828 joined [08:18:39]Waiting for new connection... [08:18:39] Sock 7.Parse request [08:18:39]Sock 7.Check first char [08:18:39]Sock 7.First char is OK [08:18:39]request: POST /json_proto HTTP/1.0 [08:18:39]Method: POST [08:18:39]URL: /json_proto [08:18:39]Method is POST - this is cgi request [08:18:39]url: /json_proto [08:18:39]query_string will be loaded in cgi processing [08:18:39]execute_cgi json_proto POST (null) [08:18:39]execute_cgi path=json_proto method=POST [08:18:39]POST find Content-Length [08:18:39]Host: 172.17.55.133:8080 [08:18:39]Content-Length: 804 [08:18:39]Content-Type: application/json [08:18:39] [08:18:39]POST finish read [08:18:39]Found Content-Length = 804 [08:18:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036073", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:39]execute_script... [08:18: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)1036073", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:39]POST & json_proto [08:18:39]process_json_proto [08:18:39]json parsed OK: [08:18:39]protocol is kg_v1.0 [08:18:39]action value=close_receipt [08:18:39]process_action close_receipt [08:18:39]cmd_close_receipt [08:18:39]MH_GetDate [08:18:39]Write to MH i2c: F0 00 00 1C 54 5F [08:18:39]Write i2c OK [08:18:39]MH_I2C_Read... [08:18:39]Read from MH i2c: F0 [08:18:39]MH_I2C_Read... [08:18:39]Read from MH i2c: F0 09 00 [08:18:39]MH_I2C_Read... [08:18:39]Read from MH i2c: F0 09 00 1C 54 00 63 AE C1 66 34 48 D8 65 59 [08:18:39]GetLastDocTimeStamp 1723968999 [08:18:39]current date 1723969123 [08:18:39]FM_GetShiftState [08:18:39]SAM_PROTO_GetShiftState [08:18:39]wFMCommunicate request_size=4 [08:18:39]MH_SAM_APDU [08:18:39]CAPDU: 80 13 01 00 [08:18:39]Write to MH i2c: E2 08 00 1D 54 80 13 01 00 00 00 00 00 EE [08:18:39]Write i2c OK [08:18:39]MH_I2C_Read... [08:18:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:39]Read from MH i2c: E2 [08:18:39]MH_I2C_Read... [08:18:39]Read from MH i2c: E2 0E 00 [08:18:39]MH_I2C_Read... [08:18:39]Read from MH i2c: E2 0E 00 1D 54 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 2B [08:18:39]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:18:39]wFMCommunicate OK [08:18:39]SAM_PROTO_GetShiftState done [08:18:39]FM_GetShiftState done [08:18:39]opened in 1723940556 [08:18:39]opened+sec_in_day 1724026956 [08:18:39]quantity*price = 100021 [08:18:39]sum+1 = 100023 [08:18:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 87 18.08.2024 08:18 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260529 ФПД: 112830657034322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T081843&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260529&fm=112830657034322&tin=02508201610067®Number=0000000000091865&sum=100022 [08:18:41]StoreToDocumentArchive [08:18:41]shift 449 fd 260529 [08:18:41]save to /storage/0449/doc_00260529 [08:18:41]save last doc name /storage/0449/doc_00260529 to /storage/kkm_last_doc_name [08:18:41]save OK [08:18:41]Clear old archive folders... [08:18:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:18:41]tlvbuf is 004CE340 [08:18:41]SAM_PROTO_ClearQueue [08:18:41]wFMCommunicate request_size=4 [08:18:41]MH_SAM_APDU [08:18:41]CAPDU: 80 09 00 00 [08:18:41]Write to MH i2c: E2 08 00 2A 54 80 09 00 00 00 00 00 00 F0 [08:18:41]Write i2c OK [08:18:41]MH_I2C_Read... [08:18:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:18:41]Read from MH i2c: E2 [08:18:41]MH_I2C_Read... [08:18:41]Read from MH i2c: E2 03 00 [08:18:41]MH_I2C_Read... [08:18:41]Read from MH i2c: E2 03 00 2A 54 00 90 00 F2 [08:18:41]RAPDU: 90 00 [08:18:41]wFMCommunicate OK [08:18:41]SAM_PROTO_ClearQueue done [08:18:41]KKMCreateOFDPacket [08:18:41]OFDProtocolAddRootSTLVToBuf [08:18:41]FM_MakeSignedData [08:18:41]FM_MakeSignedData [08:18:41]SAM_PROTO_SignData [08:18:41]wFMCommunicate request_size=4 [08:18:41]MH_SAM_APDU [08:18:41]CAPDU: 80 0D 01 02 [08:18:41]Write to MH i2c: E2 08 00 2B 54 80 0D 01 02 00 00 00 00 F8 [08:18:41]Write i2c OK [08:18:41]MH_I2C_Read... [08:18:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:18:41]Read from MH i2c: E2 [08:18:41]MH_I2C_Read... [08:18:41]Read from MH i2c: E2 03 00 [08:18:41]MH_I2C_Read... [08:18:41]Read from MH i2c: E2 03 00 2B 54 00 90 00 F3 [08:18:41]RAPDU: 90 00 [08:18:41]wFMCommunicate OK [08:18:41]wFMCommunicate request_size=255 [08:18:41]MH_SAM_APDU [08:18: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 63 AE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B1 F9 03 00 35 04 06 00 66 [08:18:41]Write to MH i2c: E2 02 01 2C 54 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 63 AE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B1 F9 03 00 35 04 06 00 66 00 00 32 [08:18:41]Write i2c OK [08:18:41]MH_I2C_Read... [08:18:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:41]Read from MH i2c: E2 [08:18:41]MH_I2C_Read... [08:18:41]Read from MH i2c: E2 03 00 [08:18:41]MH_I2C_Read... [08:18:41]Read from MH i2c: E2 03 00 2C 54 00 90 00 F4 [08:18:41]RAPDU: 90 00 [08:18:41]wFMCommunicate OK [08:18:41]wFMCommunicate request_size=10 [08:18:41]MH_SAM_APDU [08:18:41]CAPDU: 80 0D 02 02 05 9E 6F 3B 78 52 [08:18:41]Write to MH i2c: E2 0D 00 2D 54 80 0D 02 02 05 00 9E 6F 3B 78 52 00 00 17 [08:18:41]Write i2c OK [08:18:41]MH_I2C_Read... [08:18:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:41]Read from MH i2c: E2 [08:18:41]MH_I2C_Read... [08:18:41]Read from MH i2c: E2 03 00 [08:18:41]MH_I2C_Read... [08:18:41]Read from MH i2c: E2 03 00 2D 54 00 90 00 F5 [08:18:41]RAPDU: 90 00 [08:18:41]wFMCommunicate OK [08:18:41]wFMCommunicate request_size=4 [08:18:41]MH_SAM_APDU [08:18:41]CAPDU: 80 0D 03 02 [08:18:41]Write to MH i2c: E2 08 00 2E 54 80 0D 03 02 00 00 00 00 FD [08:18:41]Write i2c OK [08:18:41]MH_I2C_Read... [08:18:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:18:41]Read from MH i2c: E2 [08:18:41]MH_I2C_Read... [08:18:41]Read from MH i2c: E2 0B 00 [08:18:41]MH_I2C_Read... [08:18:41]Read from MH i2c: E2 0B 00 2E 54 00 3F 4B E0 E3 41 06 1D E1 90 00 90 [08:18:41]RAPDU: 3F 4B E0 E3 41 06 1D E1 90 00 [08:18:41]wFMCommunicate OK [08:18:41]SAM_PROTO_SignData done [08:18:41]FM_MakeSignedData done [08:18:41]CreateOFDProtocolMessage [08:18:41]wFMCommunicate request_size=4 [08:18:41]MH_SAM_APDU [08:18:41]CAPDU: 80 11 00 00 [08:18:41]Write to MH i2c: E2 08 00 2F 54 80 11 00 00 00 00 00 00 FD [08:18:41]Write i2c OK [08:18:41]MH_I2C_Read... [08:18:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:41]Read from MH i2c: E2 [08:18:41]MH_I2C_Read... [08:18:41]Read from MH i2c: E2 17 00 [08:18:41]MH_I2C_Read... [08:18:41]Read from MH i2c: E2 17 00 2F 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 4A [08:18:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:18:41]wFMCommunicate OK [08:18:41]CreateOFDProtocolMessage done [08:18:41]OFDSenderStorePacket 260529 [08:18:41]StoreOFDPacket docnum=260529 [08:18:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 C2 90 07 01 03 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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 63 AE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B1 F9 03 00 35 04 06 00 66 9E 6F 3B 78 52 3F 4B E0 E3 41 06 1D E1 [08:18:41]CheckFolder [08:18:41]dirname=/storage/ofd_packets [08:18:41]CheckFolder done [08:18:41]ProducePacketName [08:18:41]name=ofd_packets/00260529 [08:18:41]NVStorageSaveData ofd_packets/00260529 [08:18:41]File name is /storage/ofd_packets/00260529 [08:18:41]Write 301 bytes [08:18:41]NVStorageSaveData done [08:18:41]OFDSenderStorePacket done [08:18:41]KKMCreateOFDPacket done [08:18:41]NVStorageSaveData kkm_last_timestamp [08:18:41]File name is /storage/kkm_last_timestamp [08:18:41]Write 4 bytes [08:18:41]NVStorageSaveData done [08:18:41]ExternCall_PrintAddStr [08:18:41]wPrintStart [08:18:41]Write to MH i2c: 01 00 00 30 54 84 [08:18:41]Write i2c OK [08:18:41]MH_I2C_Read... [08:18:41]Read from MH i2c: 01 [08:18:41]MH_I2C_Read... [08:18:41]Read from MH i2c: 01 07 00 [08:18:41]MH_I2C_Read... [08:18:41]Read from MH i2c: 01 07 00 30 54 00 00 00 00 00 FF 0F 99 [08:18:41]RasterBufferAndPrint [08:18:41]line Счет N : (1)1036073 [08:18:41]line ИНН: 02508201610067 [08:18:41]line Контрольно-Кассовый Чек [08:18:41]line ПРОДАЖА [08:18:41]line ТРК (МРК, ГНК) : 13 [08:18:41]line Товар: 2710124500 [08:18:41]line Аи-95-К-5 [08:18:41]line 13.480 * 74.20 [08:18:41]line = 1000.22 [08:18:41]line НДС 12% НСП 1% [08:18:41]line > о реализуемом товаре [08:18:41]line ИТОГО: 1000.22 [08:18:41]line НСП 1% : 8.85 [08:18:41]line НДС 12% : 106.22 [08:18:41]line Наличными: 0.00 [08:18:41]line Безнал.: 1000.22 [08:18:41]line Место: АЗС № 94 "Партнер Нефть" [08:18:41]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [08:18:41]line СНО: Общий режим [08:18:41]line Чек 87 18.08.2024 08:18 [08:18:41]line Смена: 449 ФФД: 1.0 [08:18:41]line ЗНМ: 0300000099 [08:18:41]line РНМ: 0000000000091865 [08:18:41]line Версия ККМ: 001 [08:18:41]line Платежная система: O! деньги [08:18:41]line ФМ: 0000000000871820 [08:18:41]line ФД: 260529 [08:18:41]line ФПД: 112830657034322 [08:18:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T081843&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260529&fm=112830657034322&tin=02508201610067®Number=0000000000091865&sum=100022 [08:18:41]written 0, free lines is 4095 [08:18:41]OFD Sender: Processing packet 260529 [packets to send 192, broken 191] [08:18:41]ProducePacketName [08:18:41]name=ofd_packets/00260529 [08:18:41]OFD Sender: To server: pG, [08:18:41]CommunicateWithHost lk.salyk.kg:30040 [08:18:41]ConnectInit lk.salyk.kg [08:18:41]Connected sock=11 [08:18: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 30 0F 01 00 00 C2 90 07 01 03 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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 63 AE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B1 F9 03 00 35 04 06 00 66 9E 6F 3B 78 52 3F 4B E0 E3 41 06 1D E1 [08:18: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 30 4F 00 00 00 74 64 47 00 F1 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B1 F9 03 00 F4 03 04 00 B9 57 C1 66 B6 04 01 00 00 9B ED B7 88 04 BA D8 8E [08:18:41]CommunicateWithHost err = 0 [08:18:41]CheckOFDResponse [08:18:41]1017 (14) - 77093643461234 [08:18:41]1041 (16) - 0000000000871820 [08:18:41]1040 (4) - 260529 [08:18:41]1012 (4) - 18.08.2024 02:08 [08:18:41]1206 (1) - 0 [08:18:41]OFD Sender: Remove packet 260529 [08:18:41]ProducePacketName [08:18:41]name=ofd_packets/00260529 [08:18:41]NVStorageDeleteData [08:18:42]Write to MH i2c: 01 00 00 5A 54 AE [08:18:42]Write i2c OK [08:18:42]MH_I2C_Read... [08:18:42]Read from MH i2c: 01 [08:18:42]MH_I2C_Read... [08:18:42]Read from MH i2c: 01 07 00 [08:18:42]MH_I2C_Read... [08:18:42]Read from MH i2c: 01 07 00 5A 54 00 00 00 00 00 88 0C 49 [08:18:42]RasterBufferAndPrint [08:18:42]line [08:18:42]line [08:18:42]line [08:18:42]line [08:18:42]line [08:18:42]written 0, free lines is 3211 [08:18:42]MH_Cut [08:18:42]Write to MH i2c: D1 01 00 61 54 01 87 [08:18:42]Write i2c OK [08:18:42]MH_I2C_Read... [08:18:42]Read from MH i2c: D1 [08:18:42]MH_I2C_Read... [08:18:42]Read from MH i2c: D1 01 00 [08:18:42]MH_I2C_Read... [08:18:42]Read from MH i2c: D1 01 00 61 54 00 86 [08:18:42]Write to MH i2c: 01 00 00 62 54 B6 [08:18:42]Write i2c OK [08:18:42]MH_I2C_Read... [08:18:42]OFD Sender: No OFD packet to send [08:18:43]*** Cut start [08:18:43]*** Purtial cut [08:18:43]*** Stage 1: CUTSNS_PIN = 1 [08:18:45]Read from MH i2c: 01 [08:18:45]MH_I2C_Read... [08:18:45]*** Stop cut motor [08:18:45]*** Cut end [08:18:45]Read from MH i2c: 01 07 00 [08:18:45]MH_I2C_Read... [08:18:45]Read from MH i2c: 01 07 00 62 54 00 00 00 00 00 FF 0F CB [08:18:45]process_action close_receipt done [08:18:45]requested_data is exist [08:18:45]produce_requested_data [08:18:45]requested_item fm.sn is exist - process it [08:18:45]wFMCommunicate request_size=4 [08:18:45]MH_SAM_APDU [08:18:45]CAPDU: 80 11 00 00 [08:18:45]Write to MH i2c: E2 08 00 63 54 80 11 00 00 00 00 00 00 31 [08:18:45]Write i2c OK [08:18:45]MH_I2C_Read... [08:18:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:45]Read from MH i2c: E2 [08:18:45]MH_I2C_Read... [08:18:45]Read from MH i2c: E2 17 00 [08:18:45]MH_I2C_Read... [08:18:45]Read from MH i2c: E2 17 00 63 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 7E [08:18:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:18:45]wFMCommunicate OK [08:18:45]requested_item fd.num is exist - process it [08:18:45]SAM_PROTO_GetFieldsCounters [08:18:45]wFMCommunicate request_size=4 [08:18:45]MH_SAM_APDU [08:18:45]CAPDU: 80 13 00 00 [08:18:45]Write to MH i2c: E2 08 00 64 54 80 13 00 00 00 00 00 00 34 [08:18:45]Write i2c OK [08:18:45]MH_I2C_Read... [08:18:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:18:45]Read from MH i2c: E2 [08:18:45]MH_I2C_Read... [08:18:45]Read from MH i2c: E2 62 00 [08:18:45]MH_I2C_Read... [08:18:45]Read from MH i2c: E2 62 00 64 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B1 F9 03 00 0E 04 04 00 C1 01 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 C7 [08:18: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B1 F9 03 00 0E 04 04 00 C1 01 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 [08:18:45]wFMCommunicate OK [08:18:45]SAM_PROTO_GetFieldsCounters done [08:18:45]requested_item shift.num is exist - process it [08:18:45]requested_item shift.opened is exist - process it [08:18:45]req_shift_opened [08:18:45]FM_GetShiftState [08:18:45]SAM_PROTO_GetShiftState [08:18:45]wFMCommunicate request_size=4 [08:18:45]MH_SAM_APDU [08:18:45]CAPDU: 80 13 01 00 [08:18:45]Write to MH i2c: E2 08 00 65 54 80 13 01 00 00 00 00 00 36 [08:18:45]Write i2c OK [08:18:45]MH_I2C_Read... [08:18:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:45]Read from MH i2c: E2 [08:18:45]MH_I2C_Read... [08:18:45]Read from MH i2c: E2 0E 00 [08:18:45]MH_I2C_Read... [08:18:45]Read from MH i2c: E2 0E 00 65 54 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 73 [08:18:45]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:18:45]wFMCommunicate OK [08:18:45]SAM_PROTO_GetShiftState done [08:18:45]FM_GetShiftState done [08:18:45]req_shift_opened done [08:18:45]requested_item shift.open_date is exist - process it [08:18:45]req_shift_open_date [08:18:45]req_shift_open_date done [08:18:45]produce_requested_data done [08:18:45]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260529,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [08:18:45]process_action_free close_receipt [08:18:45]json_value_free [08:18:45]json_value_free done [08:18:45]process_json_proto returns [08:18:45]Send response to host [08:18:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260529,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [08:18:45]free response buf [08:18:45]execute_script done [08:18:45]execute_script returns [08:18:45]free content buf [08:18:45]Sock 7.Close socket [08:18:45]Sock 7.Thread stoped [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:43]accept exits with 9 [08:19:43]New connection [08:19:43]New thread 3066473828 created [08:19:43]Thread 3066617188 joined [08:19:43]Waiting for new connection... [08:19:43] Sock 9.Parse request [08:19:43]Sock 9.Check first char [08:19:43]Sock 9.First char is OK [08:19:43]request: POST /json_proto HTTP/1.0 [08:19:43]Method: POST [08:19:43]URL: /json_proto [08:19:43]Method is POST - this is cgi request [08:19:43]url: /json_proto [08:19:43]query_string will be loaded in cgi processing [08:19:43]execute_cgi json_proto POST (null) [08:19:43]execute_cgi path=json_proto method=POST [08:19:43]POST find Content-Length [08:19:43]Host: 172.17.55.133:8080 [08:19:43]Content-Length: 809 [08:19:43]Content-Type: application/json [08:19:43] [08:19:43]POST finish read [08:19:43]Found Content-Length = 809 [08:19:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:43]execute_script... [08:19: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)1036074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:43]POST & json_proto [08:19:43]process_json_proto [08:19:43]json parsed OK: [08:19:43]protocol is kg_v1.0 [08:19:43]action value=close_receipt [08:19:43]process_action close_receipt [08:19:43]cmd_close_receipt [08:19:43]MH_GetDate [08:19:43]Write to MH i2c: F0 00 00 66 54 A9 [08:19:43]Write i2c OK [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: F0 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: F0 09 00 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: F0 09 00 66 54 00 A3 AE C1 66 34 48 D8 65 E3 [08:19:43]GetLastDocTimeStamp 1723969123 [08:19:43]current date 1723969187 [08:19:43]FM_GetShiftState [08:19:43]SAM_PROTO_GetShiftState [08:19:43]wFMCommunicate request_size=4 [08:19:43]MH_SAM_APDU [08:19:43]CAPDU: 80 13 01 00 [08:19:43]Write to MH i2c: E2 08 00 67 54 80 13 01 00 00 00 00 00 38 [08:19:43]Write i2c OK [08:19:43]MH_I2C_Read... [08:19:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:43]Read from MH i2c: E2 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: E2 0E 00 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: E2 0E 00 67 54 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 75 [08:19:43]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:19:43]wFMCommunicate OK [08:19:43]SAM_PROTO_GetShiftState done [08:19:43]FM_GetShiftState done [08:19:43]opened in 1723940556 [08:19:43]opened+sec_in_day 1724026956 [08:19:43]quantity*price = 150037 [08:19:43]sum+1 = 150039 [08:19:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.38 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.38 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 88 18.08.2024 08:19 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260530 ФПД: 194997148618977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T081947&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260530&fm=194997148618977&tin=02508201610067®Number=0000000000091865&sum=150038 [08:19:45]StoreToDocumentArchive [08:19:45]shift 449 fd 260530 [08:19:45]save to /storage/0449/doc_00260530 [08:19:45]save last doc name /storage/0449/doc_00260530 to /storage/kkm_last_doc_name [08:19:45]save OK [08:19:45]Clear old archive folders... [08:19:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:19:45]tlvbuf is 003D0CD0 [08:19:45]SAM_PROTO_ClearQueue [08:19:45]wFMCommunicate request_size=4 [08:19:45]MH_SAM_APDU [08:19:45]CAPDU: 80 09 00 00 [08:19:45]Write to MH i2c: E2 08 00 74 54 80 09 00 00 00 00 00 00 3A [08:19:45]Write i2c OK [08:19:45]MH_I2C_Read... [08:19:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:19:45]Read from MH i2c: E2 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: E2 03 00 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: E2 03 00 74 54 00 90 00 3C [08:19:45]RAPDU: 90 00 [08:19:45]wFMCommunicate OK [08:19:45]SAM_PROTO_ClearQueue done [08:19:45]KKMCreateOFDPacket [08:19:45]OFDProtocolAddRootSTLVToBuf [08:19:45]FM_MakeSignedData [08:19:45]FM_MakeSignedData [08:19:45]SAM_PROTO_SignData [08:19:45]wFMCommunicate request_size=4 [08:19:45]MH_SAM_APDU [08:19:45]CAPDU: 80 0D 01 02 [08:19:45]Write to MH i2c: E2 08 00 75 54 80 0D 01 02 00 00 00 00 42 [08:19:45]Write i2c OK [08:19:45]MH_I2C_Read... [08:19:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:19:45]Read from MH i2c: E2 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: E2 03 00 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: E2 03 00 75 54 00 90 00 3D [08:19:45]RAPDU: 90 00 [08:19:45]wFMCommunicate OK [08:19:45]wFMCommunicate request_size=255 [08:19:45]MH_SAM_APDU [08:19:45]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 A3 AE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B2 F9 03 00 35 04 06 00 [08:19:45]Write to MH i2c: E2 02 01 76 54 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 A3 AE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B2 F9 03 00 35 04 06 00 00 00 B1 [08:19:45]Write i2c OK [08:19:45]MH_I2C_Read... [08:19:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:45]Read from MH i2c: E2 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: E2 03 00 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: E2 03 00 76 54 00 90 00 3E [08:19:45]RAPDU: 90 00 [08:19:45]wFMCommunicate OK [08:19:45]wFMCommunicate request_size=11 [08:19:45]MH_SAM_APDU [08:19:45]CAPDU: 80 0D 02 02 06 B1 59 4F C6 90 E1 [08:19:45]Write to MH i2c: E2 0E 00 77 54 80 0D 02 02 06 00 B1 59 4F C6 90 E1 00 00 E1 [08:19:45]Write i2c OK [08:19:45]MH_I2C_Read... [08:19:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:45]Read from MH i2c: E2 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: E2 03 00 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: E2 03 00 77 54 00 90 00 3F [08:19:45]RAPDU: 90 00 [08:19:45]wFMCommunicate OK [08:19:45]wFMCommunicate request_size=4 [08:19:45]MH_SAM_APDU [08:19:45]CAPDU: 80 0D 03 02 [08:19:45]Write to MH i2c: E2 08 00 78 54 80 0D 03 02 00 00 00 00 47 [08:19:45]Write i2c OK [08:19:45]MH_I2C_Read... [08:19:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:19:45]Read from MH i2c: E2 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: E2 0B 00 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: E2 0B 00 78 54 00 FB 57 E5 58 72 61 9A 06 90 00 4A [08:19:45]RAPDU: FB 57 E5 58 72 61 9A 06 90 00 [08:19:45]wFMCommunicate OK [08:19:45]SAM_PROTO_SignData done [08:19:45]FM_MakeSignedData done [08:19:45]CreateOFDProtocolMessage [08:19:45]wFMCommunicate request_size=4 [08:19:45]MH_SAM_APDU [08:19:45]CAPDU: 80 11 00 00 [08:19:45]Write to MH i2c: E2 08 00 79 54 80 11 00 00 00 00 00 00 47 [08:19:45]Write i2c OK [08:19:45]MH_I2C_Read... [08:19:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:45]Read from MH i2c: E2 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: E2 17 00 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: E2 17 00 79 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 94 [08:19:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:19:45]wFMCommunicate OK [08:19:45]CreateOFDProtocolMessage done [08:19:45]OFDSenderStorePacket 260530 [08:19:45]StoreOFDPacket docnum=260530 [08:19:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 D0 F7 08 01 A7 01 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 A3 AE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B2 F9 03 00 35 04 06 00 B1 59 4F C6 90 E1 FB 57 E5 58 72 61 9A 06 [08:19:45]CheckFolder [08:19:45]dirname=/storage/ofd_packets [08:19:45]CheckFolder done [08:19:45]ProducePacketName [08:19:45]name=ofd_packets/00260530 [08:19:45]NVStorageSaveData ofd_packets/00260530 [08:19:45]File name is /storage/ofd_packets/00260530 [08:19:45]Write 302 bytes [08:19:45]NVStorageSaveData done [08:19:45]OFDSenderStorePacket done [08:19:45]KKMCreateOFDPacket done [08:19:45]NVStorageSaveData kkm_last_timestamp [08:19:45]File name is /storage/kkm_last_timestamp [08:19:45]Write 4 bytes [08:19:45]NVStorageSaveData done [08:19:45]ExternCall_PrintAddStr [08:19:45]wPrintStart [08:19:45]Write to MH i2c: 01 00 00 7A 54 CE [08:19:45]Write i2c OK [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: 01 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: 01 07 00 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: 01 07 00 7A 54 00 00 00 00 00 FF 0F E3 [08:19:45]RasterBufferAndPrint [08:19:45]line Счет N : (1)1036074 [08:19:45]line ИНН: 02508201610067 [08:19:45]line Контрольно-Кассовый Чек [08:19:45]line ПРОДАЖА [08:19:45]line ТРК (МРК, ГНК) : 43 [08:19:45]line Товар: 2710194210 [08:19:45]line ДТ(л)-К-4 [08:19:45]line 19.690 * 76.20 [08:19:45]line = 1500.38 [08:19:45]line НДС 12% НСП 1% [08:19:45]line > о реализуемом товаре [08:19:45]line ИТОГО: 1500.38 [08:19:45]line НСП 1% : 13.28 [08:19:45]line НДС 12% : 159.33 [08:19:45]line Наличными: 0.00 [08:19:45]line Безнал.: 1500.38 [08:19:45]line Место: АЗС № 94 "Партнер Нефть" [08:19:45]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [08:19:45]line СНО: Общий режим [08:19:45]line Чек 88 18.08.2024 08:19 [08:19:45]line Смена: 449 ФФД: 1.0 [08:19:45]line ЗНМ: 0300000099 [08:19:45]line РНМ: 0000000000091865 [08:19:45]line Версия ККМ: 001 [08:19:45]line Платежная система: O! деньги [08:19:45]line ФМ: 0000000000871820 [08:19:45]line ФД: 260530 [08:19:45]line ФПД: 194997148618977 [08:19:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T081947&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260530&fm=194997148618977&tin=02508201610067®Number=0000000000091865&sum=150038 [08:19:45]OFD Sender: Processing packet 260530 [packets to send 192, broken 191] [08:19:45]ProducePacketName [08:19:45]name=ofd_packets/00260530 [08:19:45]OFD Sender: To server: pG, [08:19:45]CommunicateWithHost lk.salyk.kg:30040 [08:19:45]ConnectInit lk.salyk.kg [08:19:45]written 0, free lines is 4095 [08:19:45]Connected sock=10 [08:19: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 30 10 01 00 00 D0 F7 08 01 A7 01 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 A3 AE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B2 F9 03 00 35 04 06 00 B1 59 4F C6 90 E1 FB 57 E5 58 72 61 9A 06 [08:19: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 30 4F 00 00 00 8A 4E 47 00 5C 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B2 F9 03 00 F4 03 04 00 F9 57 C1 66 B6 04 01 00 00 F7 3D 40 1A 63 A8 66 5D [08:19:46]CommunicateWithHost err = 0 [08:19:46]CheckOFDResponse [08:19:46]1017 (14) - 77093643461234 [08:19:46]1041 (16) - 0000000000871820 [08:19:46]1040 (4) - 260530 [08:19:46]1012 (4) - 18.08.2024 02:10 [08:19:46]1206 (1) - 0 [08:19:46]OFD Sender: Remove packet 260530 [08:19:46]ProducePacketName [08:19:46]name=ofd_packets/00260530 [08:19:46]NVStorageDeleteData [08:19:46]Write to MH i2c: 01 00 00 A4 54 F8 [08:19:46]Write i2c OK [08:19:46]MH_I2C_Read... [08:19:46]Read from MH i2c: 01 [08:19:46]MH_I2C_Read... [08:19:46]Read from MH i2c: 01 07 00 [08:19:46]MH_I2C_Read... [08:19:46]Read from MH i2c: 01 07 00 A4 54 00 00 00 00 00 7C 0C 87 [08:19:46]RasterBufferAndPrint [08:19:46]line [08:19:46]line [08:19:46]line [08:19:46]line [08:19:46]line [08:19:46]written 0, free lines is 3199 [08:19:46]MH_Cut [08:19:46]Write to MH i2c: D1 01 00 AB 54 01 D1 [08:19:46]Write i2c OK [08:19:46]MH_I2C_Read... [08:19:46]Read from MH i2c: D1 [08:19:46]MH_I2C_Read... [08:19:46]Read from MH i2c: D1 01 00 [08:19:46]MH_I2C_Read... [08:19:46]Read from MH i2c: D1 01 00 AB 54 00 D0 [08:19:46]Write to MH i2c: 01 00 00 AC 54 00 [08:19:46]Write i2c OK [08:19:46]MH_I2C_Read... [08:19:46]OFD Sender: No OFD packet to send [08:19:47]*** Cut start [08:19:47]*** Purtial cut [08:19:47]*** Stage 1: CUTSNS_PIN = 1 [08:19:49]Read from MH i2c: 01 [08:19:49]MH_I2C_Read... [08:19:49]*** Stop cut motor [08:19:49]*** Cut end [08:19:49]Read from MH i2c: 01 07 00 [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: 01 07 00 AC 54 00 00 00 00 00 FF 0F 15 [08:19:49]process_action close_receipt done [08:19:49]requested_data is exist [08:19:49]produce_requested_data [08:19:49]requested_item fm.sn is exist - process it [08:19:49]wFMCommunicate request_size=4 [08:19:49]MH_SAM_APDU [08:19:49]CAPDU: 80 11 00 00 [08:19:49]Write to MH i2c: E2 08 00 AD 54 80 11 00 00 00 00 00 00 7B [08:19:49]Write i2c OK [08:19:49]MH_I2C_Read... [08:19:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:49]Read from MH i2c: E2 [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: E2 17 00 [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: E2 17 00 AD 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C8 [08:19:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:19:49]wFMCommunicate OK [08:19:49]requested_item fd.num is exist - process it [08:19:49]SAM_PROTO_GetFieldsCounters [08:19:49]wFMCommunicate request_size=4 [08:19:49]MH_SAM_APDU [08:19:49]CAPDU: 80 13 00 00 [08:19:49]Write to MH i2c: E2 08 00 AE 54 80 13 00 00 00 00 00 00 7E [08:19:49]Write i2c OK [08:19:49]MH_I2C_Read... [08:19:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:49]Read from MH i2c: E2 [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: E2 62 00 [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: E2 62 00 AE 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B2 F9 03 00 0E 04 04 00 C1 01 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 15 [08:19: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B2 F9 03 00 0E 04 04 00 C1 01 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 [08:19:49]wFMCommunicate OK [08:19:49]SAM_PROTO_GetFieldsCounters done [08:19:49]requested_item shift.num is exist - process it [08:19:49]requested_item shift.opened is exist - process it [08:19:49]req_shift_opened [08:19:49]FM_GetShiftState [08:19:49]SAM_PROTO_GetShiftState [08:19:49]wFMCommunicate request_size=4 [08:19:49]MH_SAM_APDU [08:19:49]CAPDU: 80 13 01 00 [08:19:49]Write to MH i2c: E2 08 00 AF 54 80 13 01 00 00 00 00 00 80 [08:19:49]Write i2c OK [08:19:49]MH_I2C_Read... [08:19:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:49]Read from MH i2c: E2 [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: E2 0E 00 [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: E2 0E 00 AF 54 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 BD [08:19:49]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:19:49]wFMCommunicate OK [08:19:49]SAM_PROTO_GetShiftState done [08:19:49]FM_GetShiftState done [08:19:49]req_shift_opened done [08:19:49]requested_item shift.open_date is exist - process it [08:19:49]req_shift_open_date [08:19:49]req_shift_open_date done [08:19:49]produce_requested_data done [08:19:49]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260530,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [08:19:49]process_action_free close_receipt [08:19:49]json_value_free [08:19:49]json_value_free done [08:19:49]process_json_proto returns [08:19:49]Send response to host [08:19:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260530,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [08:19:49]free response buf [08:19:49]execute_script done [08:19:49]execute_script returns [08:19:49]free content buf [08:19:49]Sock 9.Close socket [08:19:49]Sock 9.Thread stoped [08:19:51]OFD Sender: No OFD packet to send [08:19:56]OFD Sender: No OFD packet to send [08:20:01]OFD Sender: No OFD packet to send [08:20:06]OFD Sender: No OFD packet to send [08:20:11]OFD Sender: No OFD packet to send [08:20:16]OFD Sender: No OFD packet to send [08:20:21]OFD Sender: No OFD packet to send [08:20:26]OFD Sender: No OFD packet to send [08:20:31]OFD Sender: No OFD packet to send [08:20:36]OFD Sender: No OFD packet to send [08:20:41]OFD Sender: No OFD packet to send [08:20:46]OFD Sender: No OFD packet to send [08:20:51]OFD Sender: No OFD packet to send [08:20:56]OFD Sender: No OFD packet to send [08:21:01]OFD Sender: No OFD packet to send [08:21:06]OFD Sender: No OFD packet to send [08:21:11]OFD Sender: No OFD packet to send [08:21:16]OFD Sender: No OFD packet to send [08:21:21]OFD Sender: No OFD packet to send [08:21:26]OFD Sender: No OFD packet to send [08:21:31]OFD Sender: No OFD packet to send [08:21:36]OFD Sender: No OFD packet to send [08:21:41]OFD Sender: No OFD packet to send [08:21:46]OFD Sender: No OFD packet to send [08:21:51]OFD Sender: No OFD packet to send [08:21:53]accept exits with 7 [08:21:53]New connection [08:21:53]New thread 3066617188 created [08:21:53]Thread 3066473828 joined [08:21:53]Waiting for new connection... [08:21:53] Sock 7.Parse request [08:21:53]Sock 7.Check first char [08:21:53]Sock 7.First char is OK [08:21:53]request: POST /json_proto HTTP/1.0 [08:21:53]Method: POST [08:21:53]URL: /json_proto [08:21:53]Method is POST - this is cgi request [08:21:53]url: /json_proto [08:21:53]query_string will be loaded in cgi processing [08:21:53]execute_cgi json_proto POST (null) [08:21:53]execute_cgi path=json_proto method=POST [08:21:53]POST find Content-Length [08:21:53]Host: 172.17.55.133:8080 [08:21:53]Content-Length: 801 [08:21:53]Content-Type: application/json [08:21:53] [08:21:53]POST finish read [08:21:53]Found Content-Length = 801 [08:21:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4203292", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:21:53]execute_script... [08:21: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)1036075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4203292", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:21:53]POST & json_proto [08:21:53]process_json_proto [08:21:53]json parsed OK: [08:21:53]protocol is kg_v1.0 [08:21:53]action value=close_receipt [08:21:53]process_action close_receipt [08:21:53]cmd_close_receipt [08:21:53]MH_GetDate [08:21:53]Write to MH i2c: F0 00 00 B0 54 F3 [08:21:53]Write i2c OK [08:21:53]MH_I2C_Read... [08:21:53]Read from MH i2c: F0 [08:21:53]MH_I2C_Read... [08:21:53]Read from MH i2c: F0 09 00 [08:21:53]MH_I2C_Read... [08:21:53]Read from MH i2c: F0 09 00 B0 54 00 24 AF C1 66 34 48 D8 65 AF [08:21:53]GetLastDocTimeStamp 1723969187 [08:21:53]current date 1723969316 [08:21:53]FM_GetShiftState [08:21:53]SAM_PROTO_GetShiftState [08:21:53]wFMCommunicate request_size=4 [08:21:53]MH_SAM_APDU [08:21:53]CAPDU: 80 13 01 00 [08:21:53]Write to MH i2c: E2 08 00 B1 54 80 13 01 00 00 00 00 00 82 [08:21:53]Write i2c OK [08:21:53]MH_I2C_Read... [08:21:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:53]Read from MH i2c: E2 [08:21:53]MH_I2C_Read... [08:21:53]Read from MH i2c: E2 0E 00 [08:21:53]MH_I2C_Read... [08:21:53]Read from MH i2c: E2 0E 00 B1 54 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 BF [08:21:53]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:21:53]wFMCommunicate OK [08:21:53]SAM_PROTO_GetShiftState done [08:21:53]FM_GetShiftState done [08:21:53]opened in 1723940556 [08:21:53]opened+sec_in_day 1724026956 [08:21:53]quantity*price = 0 [08:21:53]sum+1 = 1 [08:21:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 89 18.08.2024 08:21 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: Топливные Талоны 4203292 ФМ: 0000000000871820 ФД: 260531 ФПД: 147257443146620 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T082156&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260531&fm=147257443146620&tin=02508201610067®Number=0000000000091865&sum=0 [08:21:54]StoreToDocumentArchive [08:21:54]shift 449 fd 260531 [08:21:54]save to /storage/0449/doc_00260531 [08:21:54]save last doc name /storage/0449/doc_00260531 to /storage/kkm_last_doc_name [08:21:54]save OK [08:21:54]Clear old archive folders... [08:21:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:21:54]tlvbuf is 003A03A0 [08:21:54]SAM_PROTO_ClearQueue [08:21:54]wFMCommunicate request_size=4 [08:21:54]MH_SAM_APDU [08:21:54]CAPDU: 80 09 00 00 [08:21:54]Write to MH i2c: E2 08 00 BE 54 80 09 00 00 00 00 00 00 84 [08:21:54]Write i2c OK [08:21:54]MH_I2C_Read... [08:21:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:21:54]Read from MH i2c: E2 [08:21:54]MH_I2C_Read... [08:21:54]Read from MH i2c: E2 03 00 [08:21:54]MH_I2C_Read... [08:21:54]Read from MH i2c: E2 03 00 BE 54 00 90 00 86 [08:21:54]RAPDU: 90 00 [08:21:54]wFMCommunicate OK [08:21:54]SAM_PROTO_ClearQueue done [08:21:54]KKMCreateOFDPacket [08:21:54]OFDProtocolAddRootSTLVToBuf [08:21:54]FM_MakeSignedData [08:21:54]FM_MakeSignedData [08:21:54]SAM_PROTO_SignData [08:21:54]wFMCommunicate request_size=4 [08:21:54]MH_SAM_APDU [08:21:54]CAPDU: 80 0D 01 02 [08:21:54]Write to MH i2c: E2 08 00 BF 54 80 0D 01 02 00 00 00 00 8C [08:21:54]Write i2c OK [08:21:54]MH_I2C_Read... [08:21:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:21:54]Read from MH i2c: E2 [08:21:54]MH_I2C_Read... [08:21:54]Read from MH i2c: E2 03 00 [08:21:54]MH_I2C_Read... [08:21:54]Read from MH i2c: E2 03 00 BF 54 00 90 00 87 [08:21:54]RAPDU: 90 00 [08:21:54]wFMCommunicate OK [08:21:54]wFMCommunicate request_size=255 [08:21:54]MH_SAM_APDU [08:21:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 59 00 00 00 F4 03 04 00 24 AF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B3 F9 03 00 35 04 06 00 85 [08:21:54]Write to MH i2c: E2 02 01 C0 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 24 AF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B3 F9 03 00 35 04 06 00 85 00 00 14 [08:21:54]Write i2c OK [08:21:54]MH_I2C_Read... [08:21:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:54]Read from MH i2c: E2 [08:21:54]MH_I2C_Read... [08:21:54]Read from MH i2c: E2 03 00 [08:21:54]MH_I2C_Read... [08:21:54]Read from MH i2c: E2 03 00 C0 54 00 90 00 88 [08:21:54]RAPDU: 90 00 [08:21:54]wFMCommunicate OK [08:21:54]wFMCommunicate request_size=10 [08:21:54]MH_SAM_APDU [08:21:54]CAPDU: 80 0D 02 02 05 EE 0B 96 DB 7C [08:21:54]Write to MH i2c: E2 0D 00 C1 54 80 0D 02 02 05 00 EE 0B 96 DB 7C 00 00 7F [08:21:54]Write i2c OK [08:21:54]MH_I2C_Read... [08:21:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:54]Read from MH i2c: E2 [08:21:54]MH_I2C_Read... [08:21:54]Read from MH i2c: E2 03 00 [08:21:54]MH_I2C_Read... [08:21:54]Read from MH i2c: E2 03 00 C1 54 00 90 00 89 [08:21:54]RAPDU: 90 00 [08:21:54]wFMCommunicate OK [08:21:54]wFMCommunicate request_size=4 [08:21:54]MH_SAM_APDU [08:21:54]CAPDU: 80 0D 03 02 [08:21:54]Write to MH i2c: E2 08 00 C2 54 80 0D 03 02 00 00 00 00 91 [08:21:54]Write i2c OK [08:21:54]MH_I2C_Read... [08:21:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:21:54]Read from MH i2c: E2 [08:21:54]MH_I2C_Read... [08:21:54]Read from MH i2c: E2 0B 00 [08:21:54]MH_I2C_Read... [08:21:54]Read from MH i2c: E2 0B 00 C2 54 00 91 F9 93 DE 22 0D B1 3C 90 00 A9 [08:21:54]RAPDU: 91 F9 93 DE 22 0D B1 3C 90 00 [08:21:54]wFMCommunicate OK [08:21:54]SAM_PROTO_SignData done [08:21:54]FM_MakeSignedData done [08:21:54]CreateOFDProtocolMessage [08:21:54]wFMCommunicate request_size=4 [08:21:54]MH_SAM_APDU [08:21:54]CAPDU: 80 11 00 00 [08:21:54]Write to MH i2c: E2 08 00 C3 54 80 11 00 00 00 00 00 00 91 [08:21:54]Write i2c OK [08:21:54]MH_I2C_Read... [08:21:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:54]Read from MH i2c: E2 [08:21:54]MH_I2C_Read... [08:21:54]Read from MH i2c: E2 17 00 [08:21:54]MH_I2C_Read... [08:21:54]Read from MH i2c: E2 17 00 C3 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 DE [08:21:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:21:54]wFMCommunicate OK [08:21:54]CreateOFDProtocolMessage done [08:21:54]OFDSenderStorePacket 260531 [08:21:54]StoreOFDPacket docnum=260531 [08:21:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 B7 A8 07 01 18 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 59 00 00 00 F4 03 04 00 24 AF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B3 F9 03 00 35 04 06 00 85 EE 0B 96 DB 7C 91 F9 93 DE 22 0D B1 3C [08:21:54]CheckFolder [08:21:54]dirname=/storage/ofd_packets [08:21:54]CheckFolder done [08:21:54]ProducePacketName [08:21:54]name=ofd_packets/00260531 [08:21:54]NVStorageSaveData ofd_packets/00260531 [08:21:54]File name is /storage/ofd_packets/00260531 [08:21:54]Write 301 bytes [08:21:54]NVStorageSaveData done [08:21:54]OFDSenderStorePacket done [08:21:54]KKMCreateOFDPacket done [08:21:54]NVStorageSaveData kkm_last_timestamp [08:21:54]File name is /storage/kkm_last_timestamp [08:21:54]Write 4 bytes [08:21:54]NVStorageSaveData done [08:21:54]OFD Sender: Processing packet 260531 [packets to send 192, broken 191] [08:21:54]ProducePacketName [08:21:54]name=ofd_packets/00260531 [08:21:54]OFD Sender: To server: pG, [08:21:54]CommunicateWithHost lk.salyk.kg:30040 [08:21:54]ConnectInit lk.salyk.kg [08:21:54]ExternCall_PrintAddStr [08:21:54]wPrintStart [08:21:54]Write to MH i2c: 01 00 00 C4 54 18 [08:21:54]Write i2c OK [08:21:54]MH_I2C_Read... [08:21:54]Read from MH i2c: 01 [08:21:54]MH_I2C_Read... [08:21:54]Read from MH i2c: 01 07 00 [08:21:54]MH_I2C_Read... [08:21:54]Read from MH i2c: 01 07 00 C4 54 00 00 00 00 00 FF 0F 2D [08:21:54]RasterBufferAndPrint [08:21:54]line Счет N : (1)1036075 [08:21:54]line ИНН: 02508201610067 [08:21:54]line Контрольно-Кассовый Чек [08:21:54]line ПРОДАЖА [08:21:54]line ТРК (МРК, ГНК) : 22 [08:21:54]line Товар: 2710124130 [08:21:54]line Аи-92-К-5 [08:21:54]line 10.000 * 0.00 [08:21:54]line = 0.00 [08:21:54]line НДС 12% НСП 1% [08:21:54]line > о реализуемом товаре [08:21:54]line ИТОГО: 0.00 [08:21:54]line НСП 1% : 0.00 [08:21:54]line НДС 12% : 0.00 [08:21:54]line Наличными: 0.00 [08:21:54]line Безнал.: 0.00 [08:21:54]line Место: АЗС № 94 "Партнер Нефть" [08:21:54]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [08:21:54]line СНО: Общий режим [08:21:54]line Чек 89 18.08.2024 08:21 [08:21:54]line Смена: 449 ФФД: 1.0 [08:21:54]line ЗНМ: 0300000099 [08:21:54]line РНМ: 0000000000091865 [08:21:54]line Версия ККМ: 001 [08:21:54]line Талоны: Топливные Талоны [08:21:54]line 4203292 [08:21:54]line ФМ: 0000000000871820 [08:21:54]line ФД: 260531 [08:21:54]line ФПД: 147257443146620 [08:21:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T082156&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260531&fm=147257443146620&tin=02508201610067®Number=0000000000091865&sum=0 [08:21:55]Connected sock=11 [08:21: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 30 0F 01 00 00 B7 A8 07 written 0, free lines is 4095 [08:21:55]01 18 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 59 00 00 00 F4 03 04 00 24 AF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B3 F9 03 00 35 04 06 00 85 EE 0B 96 DB 7C 91 F9 93 DE 22 0D B1 3C [08:21: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 30 4F 00 00 00 48 34 47 00 A9 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 30 10 04 04 00 B3 F9 03 00 F4 03 04 00 7A 58 C1 66 B6 04 01 00 00 5C 8A 42 BF C6 29 E1 B5 [08:21:55]CommunicateWithHost err = 0 [08:21:55]CheckOFDResponse [08:21:55]1017 (14) - 77093643461234 [08:21:55]1041 (16) - 0000000000871820 [08:21:55]1040 (4) - 260531 [08:21:55]1012 (4) - 18.08.2024 02:12 [08:21:55]1206 (1) - 0 [08:21:55]OFD Sender: Remove packet 260531 [08:21:55]ProducePacketName [08:21:55]name=ofd_packets/00260531 [08:21:55]NVStorageDeleteData [08:21:55]Write to MH i2c: 01 00 00 EE 54 42 [08:21:55]Write i2c OK [08:21:55]MH_I2C_Read... [08:21:55]Read from MH i2c: 01 [08:21:55]MH_I2C_Read... [08:21:55]Read from MH i2c: 01 07 00 [08:21:55]MH_I2C_Read... [08:21:55]Read from MH i2c: 01 07 00 EE 54 00 00 00 00 00 84 0C D9 [08:21:55]RasterBufferAndPrint [08:21:55]line [08:21:55]line [08:21:55]line [08:21:55]line [08:21:55]line [08:21:55]written 0, free lines is 3209 [08:21:55]MH_Cut [08:21:55]Write to MH i2c: D1 01 00 F5 54 01 1B [08:21:55]Write i2c OK [08:21:55]MH_I2C_Read... [08:21:55]Read from MH i2c: D1 [08:21:55]MH_I2C_Read... [08:21:55]Read from MH i2c: D1 01 00 [08:21:55]MH_I2C_Read... [08:21:55]Read from MH i2c: D1 01 00 F5 54 00 1A [08:21:55]Write to MH i2c: 01 00 00 F6 54 4A [08:21:55]Write i2c OK [08:21:55]MH_I2C_Read... [08:21:55]OFD Sender: No OFD packet to send [08:21:56]*** Cut start [08:21:56]*** Purtial cut [08:21:56]*** Stage 1: CUTSNS_PIN = 1 [08:21:58]Read from MH i2c: 01 [08:21:58]MH_I2C_Read... [08:21:58]*** Stop cut motor [08:21:58]*** Cut end [08:21:58]Read from MH i2c: 01 07 00 [08:21:58]MH_I2C_Read... [08:21:58]Read from MH i2c: 01 07 00 F6 54 00 00 00 00 00 FF 0F 5F [08:21:58]process_action close_receipt done [08:21:58]requested_data is exist [08:21:58]produce_requested_data [08:21:58]requested_item fm.sn is exist - process it [08:21:58]wFMCommunicate request_size=4 [08:21:58]MH_SAM_APDU [08:21:58]CAPDU: 80 11 00 00 [08:21:58]Write to MH i2c: E2 08 00 F7 54 80 11 00 00 00 00 00 00 C5 [08:21:58]Write i2c OK [08:21:58]MH_I2C_Read... [08:21:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:58]Read from MH i2c: E2 [08:21:58]MH_I2C_Read... [08:21:58]Read from MH i2c: E2 17 00 [08:21:58]MH_I2C_Read... [08:21:58]Read from MH i2c: E2 17 00 F7 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 12 [08:21:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:21:58]wFMCommunicate OK [08:21:58]requested_item fd.num is exist - process it [08:21:58]SAM_PROTO_GetFieldsCounters [08:21:58]wFMCommunicate request_size=4 [08:21:58]MH_SAM_APDU [08:21:58]CAPDU: 80 13 00 00 [08:21:58]Write to MH i2c: E2 08 00 F8 54 80 13 00 00 00 00 00 00 C8 [08:21:58]Write i2c OK [08:21:58]MH_I2C_Read... [08:21:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:21:59]Read from MH i2c: E2 [08:21:59]MH_I2C_Read... [08:21:59]Read from MH i2c: E2 62 00 [08:21:59]MH_I2C_Read... [08:21:59]Read from MH i2c: E2 62 00 F8 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B3 F9 03 00 0E 04 04 00 C1 01 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 63 [08:21: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B3 F9 03 00 0E 04 04 00 C1 01 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 [08:21:59]wFMCommunicate OK [08:21:59]SAM_PROTO_GetFieldsCounters done [08:21:59]requested_item shift.num is exist - process it [08:21:59]requested_item shift.opened is exist - process it [08:21:59]req_shift_opened [08:21:59]FM_GetShiftState [08:21:59]SAM_PROTO_GetShiftState [08:21:59]wFMCommunicate request_size=4 [08:21:59]MH_SAM_APDU [08:21:59]CAPDU: 80 13 01 00 [08:21:59]Write to MH i2c: E2 08 00 F9 54 80 13 01 00 00 00 00 00 CA [08:21:59]Write i2c OK [08:21:59]MH_I2C_Read... [08:21:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:59]Read from MH i2c: E2 [08:21:59]MH_I2C_Read... [08:21:59]Read from MH i2c: E2 0E 00 [08:21:59]MH_I2C_Read... [08:21:59]Read from MH i2c: E2 0E 00 F9 54 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 07 [08:21:59]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:21:59]wFMCommunicate OK [08:21:59]SAM_PROTO_GetShiftState done [08:21:59]FM_GetShiftState done [08:21:59]req_shift_opened done [08:21:59]requested_item shift.open_date is exist - process it [08:21:59]req_shift_open_date [08:21:59]req_shift_open_date done [08:21:59]produce_requested_data done [08:21:59]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260531,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [08:21:59]process_action_free close_receipt [08:21:59]json_value_free [08:21:59]json_value_free done [08:21:59]process_json_proto returns [08:21:59]Send response to host [08:21:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260531,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [08:21:59]free response buf [08:21:59]execute_script done [08:21:59]execute_script returns [08:21:59]free content buf [08:21:59]Sock 7.Close socket [08:21:59]Sock 7.Thread stoped [08:22:00]OFD Sender: No OFD packet to send [08:22:05]OFD Sender: No OFD packet to send [08:22:11]OFD Sender: No OFD packet to send [08:22:16]OFD Sender: No OFD packet to send [08:22:21]OFD Sender: No OFD packet to send [08:22:26]OFD Sender: No OFD packet to send [08:22:31]OFD Sender: No OFD packet to send [08:22:36]OFD Sender: No OFD packet to send [08:22:40]accept exits with 9 [08:22:40]New connection [08:22:40]New thread 3066473828 created [08:22:40]Thread 3066617188 joined [08:22:40]Waiting for new connection... [08:22:40] Sock 9.Parse request [08:22:40]Sock 9.Check first char [08:22:40]Sock 9.First char is OK [08:22:40]request: POST /json_proto HTTP/1.0 [08:22:40]Method: POST [08:22:40]URL: /json_proto [08:22:40]Method is POST - this is cgi request [08:22:40]url: /json_proto [08:22:40]query_string will be loaded in cgi processing [08:22:40]execute_cgi json_proto POST (null) [08:22:40]execute_cgi path=json_proto method=POST [08:22:40]POST find Content-Length [08:22:40]Host: 172.17.55.133:8080 [08:22:40]Content-Length: 678 [08:22:40]Content-Type: application/json [08:22:40] [08:22:40]POST finish read [08:22:40]Found Content-Length = 678 [08:22:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:40]execute_script... [08:22: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)1036076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:40]POST & json_proto [08:22:40]process_json_proto [08:22:40]json parsed OK: [08:22:40]protocol is kg_v1.0 [08:22:40]action value=close_receipt [08:22:40]process_action close_receipt [08:22:40]cmd_close_receipt [08:22:40]MH_GetDate [08:22:40]Write to MH i2c: F0 00 00 FA 54 3D [08:22:40]Write i2c OK [08:22:40]MH_I2C_Read... [08:22:40]Read from MH i2c: F0 [08:22:40]MH_I2C_Read... [08:22:40]Read from MH i2c: F0 09 00 [08:22:40]MH_I2C_Read... [08:22:40]Read from MH i2c: F0 09 00 FA 54 00 54 AF C1 66 34 48 D8 65 29 [08:22:40]GetLastDocTimeStamp 1723969316 [08:22:40]current date 1723969364 [08:22:40]FM_GetShiftState [08:22:40]SAM_PROTO_GetShiftState [08:22:40]wFMCommunicate request_size=4 [08:22:40]MH_SAM_APDU [08:22:40]CAPDU: 80 13 01 00 [08:22:40]Write to MH i2c: E2 08 00 FB 54 80 13 01 00 00 00 00 00 CC [08:22:40]Write i2c OK [08:22:40]MH_I2C_Read... [08:22:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:40]Read from MH i2c: E2 [08:22:40]MH_I2C_Read... [08:22:40]Read from MH i2c: E2 0E 00 [08:22:40]MH_I2C_Read... [08:22:40]Read from MH i2c: E2 0E 00 FB 54 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 09 [08:22:40]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:22:40]wFMCommunicate OK [08:22:40]SAM_PROTO_GetShiftState done [08:22:40]FM_GetShiftState done [08:22:40]opened in 1723940556 [08:22:40]opened+sec_in_day 1724026956 [08:22:40]quantity*price = 50036 [08:22:40]sum+1 = 50037 [08:22:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 90 18.08.2024 08:22 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260532 ФПД: 135040976412733 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T082244&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260532&fm=135040976412733&tin=02508201610067®Number=0000000000091865&sum=50000 [08:22:41]StoreToDocumentArchive [08:22:41]shift 449 fd 260532 [08:22:41]save to /storage/0449/doc_00260532 [08:22:41]save last doc name /storage/0449/doc_00260532 to /storage/kkm_last_doc_name [08:22:41]save OK [08:22:41]Clear old archive folders... [08:22:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:22:41]tlvbuf is 00382E30 [08:22:41]SAM_PROTO_ClearQueue [08:22:41]wFMCommunicate request_size=4 [08:22:41]MH_SAM_APDU [08:22:41]CAPDU: 80 09 00 00 [08:22:41]Write to MH i2c: E2 08 00 08 55 80 09 00 00 00 00 00 00 CF [08:22:41]Write i2c OK [08:22:41]MH_I2C_Read... [08:22:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:22:41]Read from MH i2c: E2 [08:22:41]MH_I2C_Read... [08:22:41]Read from MH i2c: E2 03 00 [08:22:41]MH_I2C_Read... [08:22:41]Read from MH i2c: E2 03 00 08 55 00 90 00 D1 [08:22:41]RAPDU: 90 00 [08:22:41]wFMCommunicate OK [08:22:41]SAM_PROTO_ClearQueue done [08:22:41]KKMCreateOFDPacket [08:22:41]OFDProtocolAddRootSTLVToBuf [08:22:41]FM_MakeSignedData [08:22:41]FM_MakeSignedData [08:22:41]SAM_PROTO_SignData [08:22:41]wFMCommunicate request_size=4 [08:22:41]MH_SAM_APDU [08:22:41]CAPDU: 80 0D 01 02 [08:22:41]Write to MH i2c: E2 08 00 09 55 80 0D 01 02 00 00 00 00 D7 [08:22:41]Write i2c OK [08:22:41]MH_I2C_Read... [08:22:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:22:41]Read from MH i2c: E2 [08:22:41]MH_I2C_Read... [08:22:41]Read from MH i2c: E2 03 00 [08:22:41]MH_I2C_Read... [08:22:41]Read from MH i2c: E2 03 00 09 55 00 90 00 D2 [08:22:41]RAPDU: 90 00 [08:22:41]wFMCommunicate OK [08:22:41]wFMCommunicate request_size=255 [08:22:41]MH_SAM_APDU [08:22:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5A 00 00 00 F4 03 04 00 54 AF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B4 F9 03 00 35 04 06 00 7A [08:22:41]Write to MH i2c: E2 02 01 0A 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5A 00 00 00 F4 03 04 00 54 AF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B4 F9 03 00 35 04 06 00 7A 00 00 C4 [08:22:41]Write i2c OK [08:22:41]MH_I2C_Read... [08:22:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:42]Read from MH i2c: E2 [08:22:42]MH_I2C_Read... [08:22:42]Read from MH i2c: E2 03 00 [08:22:42]MH_I2C_Read... [08:22:42]Read from MH i2c: E2 03 00 0A 55 00 90 00 D3 [08:22:42]RAPDU: 90 00 [08:22:42]wFMCommunicate OK [08:22:42]wFMCommunicate request_size=10 [08:22:42]MH_SAM_APDU [08:22:42]CAPDU: 80 0D 02 02 05 D1 AD 6D E0 3D [08:22:42]Write to MH i2c: E2 0D 00 0B 55 80 0D 02 02 05 00 D1 AD 6D E0 3D 00 00 EC [08:22:42]Write i2c OK [08:22:42]MH_I2C_Read... [08:22:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:42]Read from MH i2c: E2 [08:22:42]MH_I2C_Read... [08:22:42]Read from MH i2c: E2 03 00 [08:22:42]MH_I2C_Read... [08:22:42]Read from MH i2c: E2 03 00 0B 55 00 90 00 D4 [08:22:42]RAPDU: 90 00 [08:22:42]wFMCommunicate OK [08:22:42]wFMCommunicate request_size=4 [08:22:42]MH_SAM_APDU [08:22:42]CAPDU: 80 0D 03 02 [08:22:42]Write to MH i2c: E2 08 00 0C 55 80 0D 03 02 00 00 00 00 DC [08:22:42]Write i2c OK [08:22:42]MH_I2C_Read... [08:22:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:22:42]Read from MH i2c: E2 [08:22:42]MH_I2C_Read... [08:22:42]Read from MH i2c: E2 0B 00 [08:22:42]MH_I2C_Read... [08:22:42]Read from MH i2c: E2 0B 00 0C 55 00 19 C9 93 13 68 08 B6 00 90 00 8B [08:22:42]RAPDU: 19 C9 93 13 68 08 B6 00 90 00 [08:22:42]wFMCommunicate OK [08:22:42]SAM_PROTO_SignData done [08:22:42]FM_MakeSignedData done [08:22:42]CreateOFDProtocolMessage [08:22:42]wFMCommunicate request_size=4 [08:22:42]MH_SAM_APDU [08:22:42]CAPDU: 80 11 00 00 [08:22:42]Write to MH i2c: E2 08 00 0D 55 80 11 00 00 00 00 00 00 DC [08:22:42]Write i2c OK [08:22:42]MH_I2C_Read... [08:22:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:42]Read from MH i2c: E2 [08:22:42]MH_I2C_Read... [08:22:42]Read from MH i2c: E2 17 00 [08:22:42]MH_I2C_Read... [08:22:42]Read from MH i2c: E2 17 00 0D 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 29 [08:22:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:22:42]wFMCommunicate OK [08:22:42]CreateOFDProtocolMessage done [08:22:42]OFDSenderStorePacket 260532 [08:22:42]StoreOFDPacket docnum=260532 [08:22:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 A0 AD 07 01 CD 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5A 00 00 00 F4 03 04 00 54 AF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B4 F9 03 00 35 04 06 00 7A D1 AD 6D E0 3D 19 C9 93 13 68 08 B6 00 [08:22:42]CheckFolder [08:22:42]dirname=/storage/ofd_packets [08:22:42]CheckFolder done [08:22:42]ProducePacketName [08:22:42]name=ofd_packets/00260532 [08:22:42]NVStorageSaveData ofd_packets/00260532 [08:22:42]File name is /storage/ofd_packets/00260532 [08:22:42]Write 301 bytes [08:22:42]NVStorageSaveData done [08:22:42]OFDSenderStorePacket done [08:22:42]KKMCreateOFDPacket done [08:22:42]NVStorageSaveData kkm_last_timestamp [08:22:42]File name is /storage/kkm_last_timestamp [08:22:42]Write 4 bytes [08:22:42]NVStorageSaveData done [08:22:42]ExternCall_PrintAddStr [08:22:42]wPrintStart [08:22:42]Write to MH i2c: 01 00 00 0E 55 63 [08:22:42]Write i2c OK [08:22:42]MH_I2C_Read... [08:22:42]Read from MH i2c: 01 [08:22:42]MH_I2C_Read... [08:22:42]Read from MH i2c: 01 07 00 [08:22:42]MH_I2C_Read... [08:22:42]Read from MH i2c: 01 07 00 0E 55 00 00 00 00 00 FF 0F 78 [08:22:42]RasterBufferAndPrint [08:22:42]line Счет N : (1)1036076 [08:22:42]line ИНН: 02508201610067 [08:22:42]line Контрольно-Кассовый Чек [08:22:42]line ПРОДАЖА [08:22:42]line ТРК (МРК, ГНК) : 42 [08:22:42]line Товар: 2710124130 [08:22:42]line Аи-92-К-5 [08:22:42]line 7.380 * 67.80 [08:22:42]line = 500.36 [08:22:42]line НДС 12% НСП 1% [08:22:42]line > о реализуемом товаре [08:22:42]line ОКРУГЛЕНИЕ: -0.36 [08:22:42]line ИТОГО: 500.00 [08:22:42]line Внесено: 500.00 [08:22:42]line СДАЧА: 0.00 [08:22:42]line НСП 1% : 4.43 [08:22:42]line НДС 12% : 53.14 [08:22:42]line Наличными: 500.00 [08:22:42]line Безнал.: 0.00 [08:22:42]line Место: АЗС № 94 "Партнер Нефть" [08:22:42]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [08:22:42]line СНО: Общий режим [08:22:42]line Чек 90 18.08.2024 08:22 [08:22:42]line Смена: 449 ФФД: 1.0 [08:22:42]line ЗНМ: 0300000099 [08:22:42]line РНМ: 0000000000091865 [08:22:42]line Версия ККМ: 001 [08:22:42]line ФМ: 0000000000871820 [08:22:42]line ФД: 260532 [08:22:42]line ФПД: 135040976412733 [08:22:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T082244&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260532&fm=135040976412733&tin=02508201610067®Number=0000000000091865&sum=50000 [08:22:42]written 0, free lines is 4095 [08:22:42]OFD Sender: Processing packet 260532 [packets to send 192, broken 191] [08:22:42]ProducePacketName [08:22:42]name=ofd_packets/00260532 [08:22:42]OFD Sender: To server: pG, [08:22:42]CommunicateWithHost lk.salyk.kg:30040 [08:22:42]ConnectInit lk.salyk.kg [08:22:42]Connected sock=10 [08:22: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 30 0F 01 00 00 A0 AD 07 01 CD 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5A 00 00 00 F4 03 04 00 54 AF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B4 F9 03 00 35 04 06 00 7A D1 AD 6D E0 3D 19 C9 93 13 68 08 B6 00 [08:22: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 30 4F 00 00 00 41 E5 47 00 30 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B4 F9 03 00 F4 03 04 00 A9 58 C1 66 B6 04 01 00 00 DB E1 F7 82 C3 7D 58 E4 [08:22:42]CommunicateWithHost err = 0 [08:22:42]CheckOFDResponse [08:22:42]1017 (14) - 77093643461234 [08:22:42]1041 (16) - 0000000000871820 [08:22:42]1040 (4) - 260532 [08:22:42]1012 (4) - 18.08.2024 02:12 [08:22:42]1206 (1) - 0 [08:22:42]OFD Sender: Remove packet 260532 [08:22:42]ProducePacketName [08:22:42]name=ofd_packets/00260532 [08:22:42]NVStorageDeleteData [08:22:42]Write to MH i2c: 01 00 00 39 55 8E [08:22:42]Write i2c OK [08:22:42]MH_I2C_Read... [08:22:42]Read from MH i2c: 01 [08:22:42]MH_I2C_Read... [08:22:42]Read from MH i2c: 01 07 00 [08:22:42]MH_I2C_Read... [08:22:42]Read from MH i2c: 01 07 00 39 55 00 00 00 00 00 67 0C 08 [08:22:42]RasterBufferAndPrint [08:22:42]line [08:22:42]line [08:22:42]line [08:22:42]line [08:22:42]line [08:22:42]written 0, free lines is 3179 [08:22:42]MH_Cut [08:22:42]Write to MH i2c: D1 01 00 40 55 01 67 [08:22:42]Write i2c OK [08:22:42]MH_I2C_Read... [08:22:42]Read from MH i2c: D1 [08:22:42]MH_I2C_Read... [08:22:42]Read from MH i2c: D1 01 00 [08:22:42]MH_I2C_Read... [08:22:42]Read from MH i2c: D1 01 00 40 55 00 66 [08:22:42]Write to MH i2c: 01 00 00 41 55 96 [08:22:42]Write i2c OK [08:22:42]MH_I2C_Read... [08:22:43]OFD Sender: No OFD packet to send [08:22:43]*** Cut start [08:22:43]*** Purtial cut [08:22:43]*** Stage 1: CUTSNS_PIN = 1 [08:22:45]Read from MH i2c: 01 [08:22:45]MH_I2C_Read... [08:22:45]*** Stop cut motor [08:22:45]*** Cut end [08:22:45]Read from MH i2c: 01 07 00 [08:22:45]MH_I2C_Read... [08:22:45]Read from MH i2c: 01 07 00 41 55 00 00 00 00 00 FF 0F AB [08:22:45]process_action close_receipt done [08:22:45]requested_data is exist [08:22:45]produce_requested_data [08:22:45]requested_item fm.sn is exist - process it [08:22:45]wFMCommunicate request_size=4 [08:22:45]MH_SAM_APDU [08:22:45]CAPDU: 80 11 00 00 [08:22:45]Write to MH i2c: E2 08 00 42 55 80 11 00 00 00 00 00 00 11 [08:22:45]Write i2c OK [08:22:45]MH_I2C_Read... [08:22:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:45]Read from MH i2c: E2 [08:22:45]MH_I2C_Read... [08:22:45]Read from MH i2c: E2 17 00 [08:22:45]MH_I2C_Read... [08:22:45]Read from MH i2c: E2 17 00 42 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 5E [08:22:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:22:45]wFMCommunicate OK [08:22:45]requested_item fd.num is exist - process it [08:22:45]SAM_PROTO_GetFieldsCounters [08:22:45]wFMCommunicate request_size=4 [08:22:45]MH_SAM_APDU [08:22:45]CAPDU: 80 13 00 00 [08:22:45]Write to MH i2c: E2 08 00 43 55 80 13 00 00 00 00 00 00 14 [08:22:45]Write i2c OK [08:22:45]MH_I2C_Read... [08:22:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:22:46]Read from MH i2c: E2 [08:22:46]MH_I2C_Read... [08:22:46]Read from MH i2c: E2 62 00 [08:22:46]MH_I2C_Read... [08:22:46]Read from MH i2c: E2 62 00 43 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B4 F9 03 00 0E 04 04 00 C1 01 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 B3 [08:22: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B4 F9 03 00 0E 04 04 00 C1 01 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 [08:22:46]wFMCommunicate OK [08:22:46]SAM_PROTO_GetFieldsCounters done [08:22:46]requested_item shift.num is exist - process it [08:22:46]requested_item shift.opened is exist - process it [08:22:46]req_shift_opened [08:22:46]FM_GetShiftState [08:22:46]SAM_PROTO_GetShiftState [08:22:46]wFMCommunicate request_size=4 [08:22:46]MH_SAM_APDU [08:22:46]CAPDU: 80 13 01 00 [08:22:46]Write to MH i2c: E2 08 00 44 55 80 13 01 00 00 00 00 00 16 [08:22:46]Write i2c OK [08:22:46]MH_I2C_Read... [08:22:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:46]Read from MH i2c: E2 [08:22:46]MH_I2C_Read... [08:22:46]Read from MH i2c: E2 0E 00 [08:22:46]MH_I2C_Read... [08:22:46]Read from MH i2c: E2 0E 00 44 55 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 53 [08:22:46]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:22:46]wFMCommunicate OK [08:22:46]SAM_PROTO_GetShiftState done [08:22:46]FM_GetShiftState done [08:22:46]req_shift_opened done [08:22:46]requested_item shift.open_date is exist - process it [08:22:46]req_shift_open_date [08:22:46]req_shift_open_date done [08:22:46]produce_requested_data done [08:22:46]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260532,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [08:22:46]process_action_free close_receipt [08:22:46]json_value_free [08:22:46]json_value_free done [08:22:46]process_json_proto returns [08:22:46]Send response to host [08:22:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260532,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [08:22:46]free response buf [08:22:46]execute_script done [08:22:46]execute_script returns [08:22:46]free content buf [08:22:46]Sock 9.Close socket [08:22:46]Sock 9.Thread stoped [08:22:48]OFD Sender: No OFD packet to send [08:22:52]accept exits with 7 [08:22:52]New connection [08:22:52]New thread 3066617188 created [08:22:52]Thread 3066473828 joined [08:22:52]Waiting for new connection... [08:22:52] Sock 7.Parse request [08:22:52]Sock 7.Check first char [08:22:52]Sock 7.First char is OK [08:22:52]request: POST /json_proto HTTP/1.0 [08:22:52]Method: POST [08:22:52]URL: /json_proto [08:22:52]Method is POST - this is cgi request [08:22:52]url: /json_proto [08:22:52]query_string will be loaded in cgi processing [08:22:52]execute_cgi json_proto POST (null) [08:22:52]execute_cgi path=json_proto method=POST [08:22:52]POST find Content-Length [08:22:52]Host: 172.17.55.133:8080 [08:22:52]Content-Length: 683 [08:22:52]Content-Type: application/json [08:22:52] [08:22:52]POST finish read [08:22:52]Found Content-Length = 683 [08:22:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 16.060, "sum" : 1088.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1088.00, "payments": [ { "type": 0, "sum" : 1088.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:52]execute_script... [08:22: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)1036077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 16.060, "sum" : 1088.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1088.00, "payments": [ { "type": 0, "sum" : 1088.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:52]POST & json_proto [08:22:52]process_json_proto [08:22:52]json parsed OK: [08:22:52]protocol is kg_v1.0 [08:22:52]action value=close_receipt [08:22:52]process_action close_receipt [08:22:52]cmd_close_receipt [08:22:52]MH_GetDate [08:22:52]Write to MH i2c: F0 00 00 45 55 89 [08:22:52]Write i2c OK [08:22:52]MH_I2C_Read... [08:22:52]Read from MH i2c: F0 [08:22:52]MH_I2C_Read... [08:22:52]Read from MH i2c: F0 09 00 [08:22:52]MH_I2C_Read... [08:22:52]Read from MH i2c: F0 09 00 45 55 00 5F AF C1 66 34 48 D8 65 80 [08:22:52]GetLastDocTimeStamp 1723969364 [08:22:52]current date 1723969375 [08:22:52]FM_GetShiftState [08:22:52]SAM_PROTO_GetShiftState [08:22:52]wFMCommunicate request_size=4 [08:22:52]MH_SAM_APDU [08:22:52]CAPDU: 80 13 01 00 [08:22:52]Write to MH i2c: E2 08 00 46 55 80 13 01 00 00 00 00 00 18 [08:22:52]Write i2c OK [08:22:52]MH_I2C_Read... [08:22:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:52]Read from MH i2c: E2 [08:22:52]MH_I2C_Read... [08:22:52]Read from MH i2c: E2 0E 00 [08:22:52]MH_I2C_Read... [08:22:52]Read from MH i2c: E2 0E 00 46 55 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 55 [08:22:52]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:22:52]wFMCommunicate OK [08:22:52]SAM_PROTO_GetShiftState done [08:22:52]FM_GetShiftState done [08:22:52]opened in 1723940556 [08:22:52]opened+sec_in_day 1724026956 [08:22:52]quantity*price = 108886 [08:22:52]sum+1 = 108888 [08:22:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.87 ИТОГО: 1088.00 Внесено: 2000.00 СДАЧА: 912.00 НСП 1% : 9.64 НДС 12% : 115.63 Наличными: 1088.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 91 18.08.2024 08:22 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260533 ФПД: 110479956929278 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T082256&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260533&fm=110479956929278&tin=02508201610067®Number=0000000000091865&sum=108800 [08:22:53]StoreToDocumentArchive [08:22:53]shift 449 fd 260533 [08:22:53]save to /storage/0449/doc_00260533 [08:22:53]save last doc name /storage/0449/doc_00260533 to /storage/kkm_last_doc_name [08:22:53]save OK [08:22:53]Clear old archive folders... [08:22:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:22:53]tlvbuf is 0038F320 [08:22:53]SAM_PROTO_ClearQueue [08:22:53]wFMCommunicate request_size=4 [08:22:53]MH_SAM_APDU [08:22:53]CAPDU: 80 09 00 00 [08:22:53]Write to MH i2c: E2 08 00 53 55 80 09 00 00 00 00 00 00 1A [08:22:53]Write i2c OK [08:22:53]MH_I2C_Read... [08:22:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:22:53]Read from MH i2c: E2 [08:22:53]MH_I2C_Read... [08:22:53]Read from MH i2c: E2 03 00 [08:22:53]MH_I2C_Read... [08:22:53]Read from MH i2c: E2 03 00 53 55 00 90 00 1C [08:22:53]RAPDU: 90 00 [08:22:53]wFMCommunicate OK [08:22:53]SAM_PROTO_ClearQueue done [08:22:53]KKMCreateOFDPacket [08:22:53]OFDProtocolAddRootSTLVToBuf [08:22:53]FM_MakeSignedData [08:22:53]FM_MakeSignedData [08:22:53]SAM_PROTO_SignData [08:22:53]wFMCommunicate request_size=4 [08:22:53]MH_SAM_APDU [08:22:53]CAPDU: 80 0D 01 02 [08:22:53]Write to MH i2c: E2 08 00 54 55 80 0D 01 02 00 00 00 00 22 [08:22:53]Write i2c OK [08:22:53]MH_I2C_Read... [08:22:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:22:53]Read from MH i2c: E2 [08:22:53]MH_I2C_Read... [08:22:53]Read from MH i2c: E2 03 00 [08:22:53]MH_I2C_Read... [08:22:53]Read from MH i2c: E2 03 00 54 55 00 90 00 1D [08:22:53]RAPDU: 90 00 [08:22:53]wFMCommunicate OK [08:22:53]wFMCommunicate request_size=255 [08:22:53]MH_SAM_APDU [08:22:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 3E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 57 A9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 A9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 2D 00 00 00 00 07 04 06 00 00 A9 01 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 60 AF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B5 F9 03 00 35 04 06 00 64 [08:22:53]Write to MH i2c: E2 02 01 55 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 3E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 57 A9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 A9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 2D 00 00 00 00 07 04 06 00 00 A9 01 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 60 AF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B5 F9 03 00 35 04 06 00 64 00 00 96 [08:22:53]Write i2c OK [08:22:53]MH_I2C_Read... [08:22:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:53]Read from MH i2c: E2 [08:22:53]MH_I2C_Read... [08:22:53]Read from MH i2c: E2 03 00 [08:22:53]MH_I2C_Read... [08:22:53]Read from MH i2c: E2 03 00 55 55 00 90 00 1E [08:22:53]RAPDU: 90 00 [08:22:53]wFMCommunicate OK [08:22:53]wFMCommunicate request_size=10 [08:22:53]MH_SAM_APDU [08:22:53]CAPDU: 80 0D 02 02 05 7B 1E 96 6A FE [08:22:53]Write to MH i2c: E2 0D 00 56 55 80 0D 02 02 05 00 7B 1E 96 6A FE 00 00 C6 [08:22:53]Write i2c OK [08:22:53]MH_I2C_Read... [08:22:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:53]Read from MH i2c: E2 [08:22:53]MH_I2C_Read... [08:22:53]Read from MH i2c: E2 03 00 [08:22:53]MH_I2C_Read... [08:22:53]Read from MH i2c: E2 03 00 56 55 00 90 00 1F [08:22:53]RAPDU: 90 00 [08:22:53]wFMCommunicate OK [08:22:53]wFMCommunicate request_size=4 [08:22:53]MH_SAM_APDU [08:22:53]CAPDU: 80 0D 03 02 [08:22:53]Write to MH i2c: E2 08 00 57 55 80 0D 03 02 00 00 00 00 27 [08:22:53]Write i2c OK [08:22:53]MH_I2C_Read... [08:22:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:22:53]Read from MH i2c: E2 [08:22:53]MH_I2C_Read... [08:22:53]Read from MH i2c: E2 0B 00 [08:22:53]MH_I2C_Read... [08:22:53]Read from MH i2c: E2 0B 00 57 55 00 4B 65 EF A6 9A F0 8A 8A 90 00 0B [08:22:53]RAPDU: 4B 65 EF A6 9A F0 8A 8A 90 00 [08:22:53]wFMCommunicate OK [08:22:53]SAM_PROTO_SignData done [08:22:53]FM_MakeSignedData done [08:22:53]CreateOFDProtocolMessage [08:22:53]wFMCommunicate request_size=4 [08:22:53]MH_SAM_APDU [08:22:53]CAPDU: 80 11 00 00 [08:22:53]Write to MH i2c: E2 08 00 58 55 80 11 00 00 00 00 00 00 27 [08:22:53]Write i2c OK [08:22:53]MH_I2C_Read... [08:22:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:53]Read from MH i2c: E2 [08:22:53]MH_I2C_Read... [08:22:53]Read from MH i2c: E2 17 00 [08:22:53]MH_I2C_Read... [08:22:53]Read from MH i2c: E2 17 00 58 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 74 [08:22:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:22:53]wFMCommunicate OK [08:22:53]CreateOFDProtocolMessage done [08:22:53]OFDSenderStorePacket 260533 [08:22:53]StoreOFDPacket docnum=260533 [08:22:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 8B BC 07 01 5B 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 3E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 57 A9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 A9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 2D 00 00 00 00 07 04 06 00 00 A9 01 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 60 AF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B5 F9 03 00 35 04 06 00 64 7B 1E 96 6A FE 4B 65 EF A6 9A F0 8A 8A [08:22:53]CheckFolder [08:22:53]dirname=/storage/ofd_packets [08:22:53]CheckFolder done [08:22:53]ProducePacketName [08:22:53]name=ofd_packets/00260533 [08:22:53]NVStorageSaveData ofd_packets/00260533 [08:22:53]File name is /storage/ofd_packets/00260533 [08:22:53]Write 301 bytes [08:22:53]NVStorageSaveData done [08:22:53]OFDSenderStorePacket done [08:22:53]KKMCreateOFDPacket done [08:22:53]NVStorageSaveData kkm_last_timestamp [08:22:53]File name is /storage/kkm_last_timestamp [08:22:53]Write 4 bytes [08:22:53]NVStorageSaveData done [08:22:53]ExternCall_PrintAddStr [08:22:53]wPrintStart [08:22:53]Write to MH i2c: 01 00 00 59 55 AE [08:22:53]Write i2c OK [08:22:53]MH_I2C_Read... [08:22:53]Read from MH i2c: 01 [08:22:53]MH_I2C_Read... [08:22:53]Read from MH i2c: 01 07 00 [08:22:53]MH_I2C_Read... [08:22:53]Read from MH i2c: 01 07 00 59 55 00 00 00 00 00 FF 0F C3 [08:22:53]RasterBufferAndPrint [08:22:53]line Счет N : (1)1036077 [08:22:53]line ИНН: 02508201610067 [08:22:53]line Контрольно-Кассовый Чек [08:22:53]line ПРОДАЖА [08:22:53]line ТРК (МРК, ГНК) : 22 [08:22:53]line Товар: 2710124130 [08:22:54]line Аи-92-К-5 [08:22:54]line 16.060 * 67.80 [08:22:54]line = 1088.87 [08:22:54]line НДС 12% НСП 1% [08:22:54]line > о реализуемом товаре [08:22:54]line ОКРУГЛЕНИЕ: -0.87 [08:22:54]line ИТОГО: 1088.00 [08:22:54]line Внесено: 2000.00 [08:22:54]line СДАЧА: 912.00 [08:22:54]line НСП 1% : 9.64 [08:22:54]line НДС 12% : 115.63 [08:22:54]line Наличными: 1088.00 [08:22:54]line Безнал.: 0.00 [08:22:54]line Место: АЗС № 94 "Партнер Нефть" [08:22:54]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [08:22:54]line СНО: Общий режим [08:22:54]line Чек 91 18.08.2024 08:22 [08:22:54]line Смена: 449 ФФД: 1.0 [08:22:54]line ЗНМ: 0300000099 [08:22:54]line РНМ: 0000000000091865 [08:22:54]line Версия ККМ: 001 [08:22:54]line ФМ: 0000000000871820 [08:22:54]line ФД: 260533 [08:22:54]line ФПД: 110479956929278 [08:22:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T082256&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260533&fm=110479956929278&tin=02508201610067®Number=0000000000091865&sum=108800 [08:22:54]OFD Sender: Processing packet 260533 [packets to send 192, broken 191] [08:22:54]ProducePacketName [08:22:54]name=ofd_packets/00260533 [08:22:54]OFD Sender: To server: pG, [08:22:54]CommunicateWithHost lk.salyk.kg:30040 [08:22:54]ConnectInit lk.salyk.kg [08:22:54]written 0, free lines is 4095 [08:22:54]Connected sock=11 [08:22:54]Data 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 30 0F 01 00 00 8B BC 07 01 5B 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 3E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 57 A9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 A9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 2D 00 00 00 00 07 04 06 00 00 A9 01 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 60 AF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B5 F9 03 00 35 04 06 00 64 7B 1E 96 6A FE 4B 65 EF A6 9A F0 8A 8A [08:22:54]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 30 4F 00 00 00 F6 40 47 00 5E 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 30 10 04 04 00 B5 F9 03 00 F4 03 04 00 B5 58 C1 66 B6 04 01 00 00 F1 C3 EF EE 3D 92 AD B1 [08:22:54]CommunicateWithHost err = 0 [08:22:54]CheckOFDResponse [08:22:54]1017 (14) - 77093643461234 [08:22:54]1041 (16) - 0000000000871820 [08:22:54]1040 (4) - 260533 [08:22:54]1012 (4) - 18.08.2024 02:13 [08:22:54]1206 (1) - 0 [08:22:54]OFD Sender: Remove packet 260533 [08:22:54]ProducePacketName [08:22:54]name=ofd_packets/00260533 [08:22:54]NVStorageDeleteData [08:22:54]Write to MH i2c: 01 00 00 84 55 D9 [08:22:54]Write i2c OK [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: 01 [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: 01 07 00 [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: 01 07 00 84 55 00 00 00 00 00 71 0C 5D [08:22:54]RasterBufferAndPrint [08:22:54]line [08:22:54]line [08:22:54]line [08:22:54]line [08:22:54]line [08:22:54]written 0, free lines is 3188 [08:22:54]MH_Cut [08:22:54]Write to MH i2c: D1 01 00 8B 55 01 B2 [08:22:54]Write i2c OK [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: D1 [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: D1 01 00 [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: D1 01 00 8B 55 00 B1 [08:22:54]Write to MH i2c: 01 00 00 8C 55 E1 [08:22:54]Write i2c OK [08:22:54]MH_I2C_Read... [08:22:54]OFD Sender: No OFD packet to send [08:22:55]*** Cut start [08:22:55]*** Purtial cut [08:22:55]*** Stage 1: CUTSNS_PIN = 1 [08:22:57]Read from MH i2c: 01 [08:22:57]MH_I2C_Read... [08:22:57]*** Stop cut motor [08:22:57]*** Cut end [08:22:57]Read from MH i2c: 01 07 00 [08:22:57]MH_I2C_Read... [08:22:57]Read from MH i2c: 01 07 00 8C 55 00 00 00 00 00 FF 0F F6 [08:22:57]process_action close_receipt done [08:22:57]requested_data is exist [08:22:57]produce_requested_data [08:22:57]requested_item fm.sn is exist - process it [08:22:57]wFMCommunicate request_size=4 [08:22:57]MH_SAM_APDU [08:22:57]CAPDU: 80 11 00 00 [08:22:57]Write to MH i2c: E2 08 00 8D 55 80 11 00 00 00 00 00 00 5C [08:22:57]Write i2c OK [08:22:57]MH_I2C_Read... [08:22:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:57]Read from MH i2c: E2 [08:22:57]MH_I2C_Read... [08:22:57]Read from MH i2c: E2 17 00 [08:22:57]MH_I2C_Read... [08:22:57]Read from MH i2c: E2 17 00 8D 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A9 [08:22:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:22:57]wFMCommunicate OK [08:22:57]requested_item fd.num is exist - process it [08:22:57]SAM_PROTO_GetFieldsCounters [08:22:57]wFMCommunicate request_size=4 [08:22:57]MH_SAM_APDU [08:22:57]CAPDU: 80 13 00 00 [08:22:57]Write to MH i2c: E2 08 00 8E 55 80 13 00 00 00 00 00 00 5F [08:22:57]Write i2c OK [08:22:57]MH_I2C_Read... [08:22:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:22:57]Read from MH i2c: E2 [08:22:57]MH_I2C_Read... [08:22:57]Read from MH i2c: E2 62 00 [08:22:57]MH_I2C_Read... [08:22:57]Read from MH i2c: E2 62 00 8E 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B5 F9 03 00 0E 04 04 00 C1 01 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 02 [08:22: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B5 F9 03 00 0E 04 04 00 C1 01 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 [08:22:57]wFMCommunicate OK [08:22:57]SAM_PROTO_GetFieldsCounters done [08:22:57]requested_item shift.num is exist - process it [08:22:57]requested_item shift.opened is exist - process it [08:22:57]req_shift_opened [08:22:57]FM_GetShiftState [08:22:57]SAM_PROTO_GetShiftState [08:22:57]wFMCommunicate request_size=4 [08:22:57]MH_SAM_APDU [08:22:57]CAPDU: 80 13 01 00 [08:22:57]Write to MH i2c: E2 08 00 8F 55 80 13 01 00 00 00 00 00 61 [08:22:57]Write i2c OK [08:22:57]MH_I2C_Read... [08:22:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:57]Read from MH i2c: E2 [08:22:57]MH_I2C_Read... [08:22:57]Read from MH i2c: E2 0E 00 [08:22:57]MH_I2C_Read... [08:22:57]Read from MH i2c: E2 0E 00 8F 55 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 9E [08:22:57]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:22:57]wFMCommunicate OK [08:22:57]SAM_PROTO_GetShiftState done [08:22:57]FM_GetShiftState done [08:22:57]req_shift_opened done [08:22:57]requested_item shift.open_date is exist - process it [08:22:57]req_shift_open_date [08:22:57]req_shift_open_date done [08:22:57]produce_requested_data done [08:22:57]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260533,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [08:22:57]process_action_free close_receipt [08:22:57]json_value_free [08:22:57]json_value_free done [08:22:57]process_json_proto returns [08:22:57]Send response to host [08:22:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260533,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [08:22:57]free response buf [08:22:57]execute_script done [08:22:57]execute_script returns [08:22:57]free content buf [08:22:57]Sock 7.Close socket [08:22:57]Sock 7.Thread stoped [08:22:59]OFD Sender: No OFD packet to send [08:23:04]OFD Sender: No OFD packet to send [08:23:09]OFD Sender: No OFD packet to send [08:23:14]OFD Sender: No OFD packet to send [08:23:19]OFD Sender: No OFD packet to send [08:23:24]OFD Sender: No OFD packet to send [08:23:29]OFD Sender: No OFD packet to send [08:23:34]OFD Sender: No OFD packet to send [08:23:39]OFD Sender: No OFD packet to send [08:23:44]OFD Sender: No OFD packet to send [08:23:49]OFD Sender: No OFD packet to send [08:23:54]OFD Sender: No OFD packet to send [08:23:59]OFD Sender: No OFD packet to send [08:24:04]OFD Sender: No OFD packet to send [08:24:09]OFD Sender: No OFD packet to send [08:24:14]OFD Sender: No OFD packet to send [08:24:19]OFD Sender: No OFD packet to send [08:24:24]OFD Sender: No OFD packet to send [08:24:29]OFD Sender: No OFD packet to send [08:24:34]OFD Sender: No OFD packet to send [08:24:39]OFD Sender: No OFD packet to send [08:24:44]OFD Sender: No OFD packet to send [08:24:49]OFD Sender: No OFD packet to send [08:24:54]OFD Sender: No OFD packet to send [08:24:59]OFD Sender: No OFD packet to send [08:25:04]OFD Sender: No OFD packet to send [08:25:09]OFD Sender: No OFD packet to send [08:25:15]OFD Sender: No OFD packet to send [08:25:20]OFD Sender: No OFD packet to send [08:25:25]OFD Sender: No OFD packet to send [08:25:30]OFD Sender: No OFD packet to send [08:25:35]OFD Sender: No OFD packet to send [08:25:40]OFD Sender: No OFD packet to send [08:25:45]OFD Sender: No OFD packet to send [08:25:50]OFD Sender: No OFD packet to send [08:25:55]OFD Sender: No OFD packet to send [08:26:00]OFD Sender: No OFD packet to send [08:26:05]OFD Sender: No OFD packet to send [08:26:10]OFD Sender: No OFD packet to send [08:26:15]OFD Sender: No OFD packet to send [08:26:20]OFD Sender: No OFD packet to send [08:26:25]OFD Sender: No OFD packet to send [08:26:30]OFD Sender: No OFD packet to send [08:26:35]OFD Sender: No OFD packet to send [08:26:40]OFD Sender: No OFD packet to send [08:26:45]OFD Sender: No OFD packet to send [08:26:50]OFD Sender: No OFD packet to send [08:26:55]OFD Sender: No OFD packet to send [08:27:00]OFD Sender: No OFD packet to send [08:27:05]OFD Sender: No OFD packet to send [08:27:10]OFD Sender: No OFD packet to send [08:27:15]OFD Sender: No OFD packet to send [08:27:20]OFD Sender: No OFD packet to send [08:27:25]OFD Sender: No OFD packet to send [08:27:30]OFD Sender: No OFD packet to send [08:27:35]OFD Sender: No OFD packet to send [08:27:40]OFD Sender: No OFD packet to send [08:27:45]OFD Sender: No OFD packet to send [08:27:50]OFD Sender: No OFD packet to send [08:27:55]OFD Sender: No OFD packet to send [08:28:00]OFD Sender: No OFD packet to send [08:28:05]OFD Sender: No OFD packet to send [08:28:10]OFD Sender: No OFD packet to send [08:28:15]OFD Sender: No OFD packet to send [08:28:15]accept exits with 9 [08:28:15]New connection [08:28:15]New thread 3066473828 created [08:28:15]Thread 3066617188 joined [08:28:15]Waiting for new connection... [08:28:15] Sock 9.Parse request [08:28:15]Sock 9.Check first char [08:28:15]Sock 9.First char is OK [08:28:15]request: POST /json_proto HTTP/1.0 [08:28:15]Method: POST [08:28:15]URL: /json_proto [08:28:15]Method is POST - this is cgi request [08:28:15]url: /json_proto [08:28:15]query_string will be loaded in cgi processing [08:28:15]execute_cgi json_proto POST (null) [08:28:15]execute_cgi path=json_proto method=POST [08:28:15]POST find Content-Length [08:28:15]Host: 172.17.55.133:8080 [08:28:15]Content-Length: 683 [08:28:15]Content-Type: application/json [08:28:15] [08:28:15]POST finish read [08:28:15]Found Content-Length = 683 [08:28:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:15]execute_script... [08:28: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)1036078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:15]POST & json_proto [08:28:15]process_json_proto [08:28:15]json parsed OK: [08:28:15]protocol is kg_v1.0 [08:28:15]action value=close_receipt [08:28:15]process_action close_receipt [08:28:15]cmd_close_receipt [08:28:15]MH_GetDate [08:28:15]Write to MH i2c: F0 00 00 90 55 D4 [08:28:15]Write i2c OK [08:28:15]MH_I2C_Read... [08:28:15]Read from MH i2c: F0 [08:28:15]MH_I2C_Read... [08:28:15]Read from MH i2c: F0 09 00 [08:28:15]MH_I2C_Read... [08:28:15]Read from MH i2c: F0 09 00 90 55 00 A3 B0 C1 66 34 48 D8 65 10 [08:28:15]GetLastDocTimeStamp 1723969376 [08:28:15]current date 1723969699 [08:28:15]FM_GetShiftState [08:28:15]SAM_PROTO_GetShiftState [08:28:15]wFMCommunicate request_size=4 [08:28:15]MH_SAM_APDU [08:28:15]CAPDU: 80 13 01 00 [08:28:15]Write to MH i2c: E2 08 00 91 55 80 13 01 00 00 00 00 00 63 [08:28:15]Write i2c OK [08:28:15]MH_I2C_Read... [08:28:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:15]Read from MH i2c: E2 [08:28:15]MH_I2C_Read... [08:28:15]Read from MH i2c: E2 0E 00 [08:28:15]MH_I2C_Read... [08:28:15]Read from MH i2c: E2 0E 00 91 55 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A0 [08:28:15]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:28:15]wFMCommunicate OK [08:28:15]SAM_PROTO_GetShiftState done [08:28:15]FM_GetShiftState done [08:28:15]opened in 1723940556 [08:28:15]opened+sec_in_day 1724026956 [08:28:15]quantity*price = 100005 [08:28:15]sum+1 = 100006 [08:28:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 92 18.08.2024 08:28 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260534 ФПД: 91917125814845 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T082819&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260534&fm=91917125814845&tin=02508201610067®Number=0000000000091865&sum=100000 [08:28:17]StoreToDocumentArchive [08:28:17]shift 449 fd 260534 [08:28:17]save to /storage/0449/doc_00260534 [08:28:17]save last doc name /storage/0449/doc_00260534 to /storage/kkm_last_doc_name [08:28:17]save OK [08:28:17]Clear old archive folders... [08:28:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:28:17]tlvbuf is 00382FF0 [08:28:17]SAM_PROTO_ClearQueue [08:28:17]wFMCommunicate request_size=4 [08:28:17]MH_SAM_APDU [08:28:17]CAPDU: 80 09 00 00 [08:28:17]Write to MH i2c: E2 08 00 9E 55 80 09 00 00 00 00 00 00 65 [08:28:17]Write i2c OK [08:28:17]MH_I2C_Read... [08:28:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:28:17]Read from MH i2c: E2 [08:28:17]MH_I2C_Read... [08:28:17]Read from MH i2c: E2 03 00 [08:28:17]MH_I2C_Read... [08:28:17]Read from MH i2c: E2 03 00 9E 55 00 90 00 67 [08:28:17]RAPDU: 90 00 [08:28:17]wFMCommunicate OK [08:28:17]SAM_PROTO_ClearQueue done [08:28:17]KKMCreateOFDPacket [08:28:17]OFDProtocolAddRootSTLVToBuf [08:28:17]FM_MakeSignedData [08:28:17]FM_MakeSignedData [08:28:17]SAM_PROTO_SignData [08:28:17]wFMCommunicate request_size=4 [08:28:17]MH_SAM_APDU [08:28:17]CAPDU: 80 0D 01 02 [08:28:17]Write to MH i2c: E2 08 00 9F 55 80 0D 01 02 00 00 00 00 6D [08:28:17]Write i2c OK [08:28:17]MH_I2C_Read... [08:28:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:28:17]Read from MH i2c: E2 [08:28:17]MH_I2C_Read... [08:28:17]Read from MH i2c: E2 03 00 [08:28:17]MH_I2C_Read... [08:28:17]Read from MH i2c: E2 03 00 9F 55 00 90 00 68 [08:28:17]RAPDU: 90 00 [08:28:17]wFMCommunicate OK [08:28:17]wFMCommunicate request_size=255 [08:28:17]MH_SAM_APDU [08:28:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 A3 B0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B6 F9 03 00 35 04 06 00 53 [08:28:17]Write to MH i2c: E2 02 01 A0 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 A3 B0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B6 F9 03 00 35 04 06 00 53 00 00 16 [08:28:17]Write i2c OK [08:28:17]MH_I2C_Read... [08:28:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:17]Read from MH i2c: E2 [08:28:17]MH_I2C_Read... [08:28:17]Read from MH i2c: E2 03 00 [08:28:17]MH_I2C_Read... [08:28:17]Read from MH i2c: E2 03 00 A0 55 00 90 00 69 [08:28:17]RAPDU: 90 00 [08:28:17]wFMCommunicate OK [08:28:17]wFMCommunicate request_size=10 [08:28:17]MH_SAM_APDU [08:28:17]CAPDU: 80 0D 02 02 05 99 1F A2 0A 3D [08:28:17]Write to MH i2c: E2 0D 00 A1 55 80 0D 02 02 05 00 99 1F A2 0A 3D 00 00 1B [08:28:17]Write i2c OK [08:28:17]MH_I2C_Read... [08:28:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:17]Read from MH i2c: E2 [08:28:17]MH_I2C_Read... [08:28:17]Read from MH i2c: E2 03 00 [08:28:17]MH_I2C_Read... [08:28:17]Read from MH i2c: E2 03 00 A1 55 00 90 00 6A [08:28:17]RAPDU: 90 00 [08:28:17]wFMCommunicate OK [08:28:17]wFMCommunicate request_size=4 [08:28:17]MH_SAM_APDU [08:28:17]CAPDU: 80 0D 03 02 [08:28:17]Write to MH i2c: E2 08 00 A2 55 80 0D 03 02 00 00 00 00 72 [08:28:17]Write i2c OK [08:28:17]MH_I2C_Read... [08:28:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:28:17]Read from MH i2c: E2 [08:28:17]MH_I2C_Read... [08:28:17]Read from MH i2c: E2 0B 00 [08:28:17]MH_I2C_Read... [08:28:17]Read from MH i2c: E2 0B 00 A2 55 00 50 AC 19 69 1E E0 52 83 90 00 C4 [08:28:17]RAPDU: 50 AC 19 69 1E E0 52 83 90 00 [08:28:17]wFMCommunicate OK [08:28:17]SAM_PROTO_SignData done [08:28:17]FM_MakeSignedData done [08:28:17]CreateOFDProtocolMessage [08:28:17]wFMCommunicate request_size=4 [08:28:17]MH_SAM_APDU [08:28:17]CAPDU: 80 11 00 00 [08:28:17]Write to MH i2c: E2 08 00 A3 55 80 11 00 00 00 00 00 00 72 [08:28:17]Write i2c OK [08:28:17]MH_I2C_Read... [08:28:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:17]Read from MH i2c: E2 [08:28:17]MH_I2C_Read... [08:28:17]Read from MH i2c: E2 17 00 [08:28:17]MH_I2C_Read... [08:28:17]Read from MH i2c: E2 17 00 A3 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 BF [08:28:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:28:17]wFMCommunicate OK [08:28:17]CreateOFDProtocolMessage done [08:28:17]OFDSenderStorePacket 260534 [08:28:17]StoreOFDPacket docnum=260534 [08:28:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 F0 25 07 01 05 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 A3 B0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B6 F9 03 00 35 04 06 00 53 99 1F A2 0A 3D 50 AC 19 69 1E E0 52 83 [08:28:17]CheckFolder [08:28:17]dirname=/storage/ofd_packets [08:28:17]CheckFolder done [08:28:17]ProducePacketName [08:28:17]name=ofd_packets/00260534 [08:28:17]NVStorageSaveData ofd_packets/00260534 [08:28:17]File name is /storage/ofd_packets/00260534 [08:28:17]Write 301 bytes [08:28:17]NVStorageSaveData done [08:28:17]OFDSenderStorePacket done [08:28:17]KKMCreateOFDPacket done [08:28:17]NVStorageSaveData kkm_last_timestamp [08:28:17]File name is /storage/kkm_last_timestamp [08:28:17]Write 4 bytes [08:28:17]NVStorageSaveData done [08:28:17]ExternCall_PrintAddStr [08:28:17]wPrintStart [08:28:17]Write to MH i2c: 01 00 00 A4 55 F9 [08:28:17]Write i2c OK [08:28:17]MH_I2C_Read... [08:28:17]Read from MH i2c: 01 [08:28:17]MH_I2C_Read... [08:28:17]Read from MH i2c: 01 07 00 [08:28:17]MH_I2C_Read... [08:28:17]Read from MH i2c: 01 07 00 A4 55 00 00 00 00 00 FF 0F 0E [08:28:17]RasterBufferAndPrint [08:28:17]line Счет N : (1)1036078 [08:28:17]line ИНН: 02508201610067 [08:28:17]line Контрольно-Кассовый Чек [08:28:17]line ПРОДАЖА [08:28:17]line ТРК (МРК, ГНК) : 22 [08:28:17]line Товар: 2710124130 [08:28:17]line Аи-92-К-5 [08:28:17]line 14.750 * 67.80 [08:28:17]line = 1000.05 [08:28:17]line НДС 12% НСП 1% [08:28:17]line > о реализуемом товаре [08:28:17]line ОКРУГЛЕНИЕ: -0.05 [08:28:17]line ИТОГО: 1000.00 [08:28:17]line Внесено: 1000.00 [08:28:17]line СДАЧА: 0.00 [08:28:17]line НСП 1% : 8.85 [08:28:17]line НДС 12% : 106.20 [08:28:17]line Наличными: 1000.00 [08:28:17]line Безнал.: 0.00 [08:28:17]line Место: АЗС № 94 "Партнер Нефть" [08:28:17]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [08:28:17]line СНО: Общий режим [08:28:17]line Чек 92 18.08.2024 08:28 [08:28:17]line Смена: 449 ФФД: 1.0 [08:28:17]line ЗНМ: 0300000099 [08:28:17]line РНМ: 0000000000091865 [08:28:17]line Версия ККМ: 001 [08:28:17]line ФМ: 0000000000871820 [08:28:17]line ФД: 260534 [08:28:17]line ФПД: 91917125814845 [08:28:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T082819&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260534&fm=91917125814845&tin=02508201610067®Number=0000000000091865&sum=100000 [08:28:17]OFD Sender: Processing packet 260534 [packets to send 192, broken 191] [08:28:17]ProducePacketName [08:28:17]name=ofd_packets/00260534 [08:28:17]OFD Sender: To server: pG, [08:28:17]CommunicateWithHost lk.salyk.kg:30040 [08:28:17]ConnectInit lk.salyk.kg [08:28:17]written 0, free lines is 4095 [08:28:17]Connected sock=10 [08:28: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 30 0F 01 00 00 F0 25 07 01 05 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 A3 B0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B6 F9 03 00 35 04 06 00 53 99 1F A2 0A 3D 50 AC 19 69 1E E0 52 83 [08:28: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 30 4F 00 00 00 8C 6F 47 00 6A 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 30 10 04 04 00 B6 F9 03 00 F4 03 04 00 F9 59 C1 66 B6 04 01 00 00 40 D5 DF AF 66 D3 7E 46 [08:28:18]CommunicateWithHost err = 0 [08:28:18]CheckOFDResponse [08:28:18]1017 (14) - 77093643461234 [08:28:18]1041 (16) - 0000000000871820 [08:28:18]1040 (4) - 260534 [08:28:18]1012 (4) - 18.08.2024 02:18 [08:28:18]1206 (1) - 0 [08:28:18]OFD Sender: Remove packet 260534 [08:28:18]ProducePacketName [08:28:18]name=ofd_packets/00260534 [08:28:18]NVStorageDeleteData [08:28:18]Write to MH i2c: 01 00 00 CF 55 24 [08:28:18]Write i2c OK [08:28:18]MH_I2C_Read... [08:28:18]Read from MH i2c: 01 [08:28:18]MH_I2C_Read... [08:28:18]Read from MH i2c: 01 07 00 [08:28:18]MH_I2C_Read... [08:28:18]Read from MH i2c: 01 07 00 CF 55 00 00 00 00 00 6D 0C A4 [08:28:18]RasterBufferAndPrint [08:28:18]line [08:28:18]line [08:28:18]line [08:28:18]line [08:28:18]line [08:28:18]written 0, free lines is 3184 [08:28:18]MH_Cut [08:28:18]Write to MH i2c: D1 01 00 D6 55 01 FD [08:28:18]Write i2c OK [08:28:18]MH_I2C_Read... [08:28:18]Read from MH i2c: D1 [08:28:18]MH_I2C_Read... [08:28:18]Read from MH i2c: D1 01 00 [08:28:18]MH_I2C_Read... [08:28:18]Read from MH i2c: D1 01 00 D6 55 00 FC [08:28:18]Write to MH i2c: 01 00 00 D7 55 2C [08:28:18]Write i2c OK [08:28:18]MH_I2C_Read... [08:28:18]OFD Sender: No OFD packet to send [08:28:19]*** Cut start [08:28:19]*** Purtial cut [08:28:19]*** Stage 1: CUTSNS_PIN = 1 [08:28:21]Read from MH i2c: 01 [08:28:21]MH_I2C_Read... [08:28:21]*** Stop cut motor [08:28:21]*** Cut end [08:28:21]Read from MH i2c: 01 07 00 [08:28:21]MH_I2C_Read... [08:28:21]Read from MH i2c: 01 07 00 D7 55 00 00 00 00 00 FF 0F 41 [08:28:21]process_action close_receipt done [08:28:21]requested_data is exist [08:28:21]produce_requested_data [08:28:21]requested_item fm.sn is exist - process it [08:28:21]wFMCommunicate request_size=4 [08:28:21]MH_SAM_APDU [08:28:21]CAPDU: 80 11 00 00 [08:28:21]Write to MH i2c: E2 08 00 D8 55 80 11 00 00 00 00 00 00 A7 [08:28:21]Write i2c OK [08:28:21]MH_I2C_Read... [08:28:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:21]Read from MH i2c: E2 [08:28:21]MH_I2C_Read... [08:28:21]Read from MH i2c: E2 17 00 [08:28:21]MH_I2C_Read... [08:28:21]Read from MH i2c: E2 17 00 D8 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F4 [08:28:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:28:21]wFMCommunicate OK [08:28:21]requested_item fd.num is exist - process it [08:28:21]SAM_PROTO_GetFieldsCounters [08:28:21]wFMCommunicate request_size=4 [08:28:21]MH_SAM_APDU [08:28:21]CAPDU: 80 13 00 00 [08:28:21]Write to MH i2c: E2 08 00 D9 55 80 13 00 00 00 00 00 00 AA [08:28:21]Write i2c OK [08:28:21]MH_I2C_Read... [08:28:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:28:21]Read from MH i2c: E2 [08:28:21]MH_I2C_Read... [08:28:21]Read from MH i2c: E2 62 00 [08:28:21]MH_I2C_Read... [08:28:21]Read from MH i2c: E2 62 00 D9 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B6 F9 03 00 0E 04 04 00 C1 01 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 51 [08: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B6 F9 03 00 0E 04 04 00 C1 01 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 [08:28:21]wFMCommunicate OK [08:28:21]SAM_PROTO_GetFieldsCounters done [08:28:21]requested_item shift.num is exist - process it [08:28:21]requested_item shift.opened is exist - process it [08:28:21]req_shift_opened [08:28:21]FM_GetShiftState [08:28:21]SAM_PROTO_GetShiftState [08:28:21]wFMCommunicate request_size=4 [08:28:21]MH_SAM_APDU [08:28:21]CAPDU: 80 13 01 00 [08:28:21]Write to MH i2c: E2 08 00 DA 55 80 13 01 00 00 00 00 00 AC [08:28:21]Write i2c OK [08:28:21]MH_I2C_Read... [08:28:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:21]Read from MH i2c: E2 [08:28:21]MH_I2C_Read... [08:28:21]Read from MH i2c: E2 0E 00 [08:28:21]MH_I2C_Read... [08:28:21]Read from MH i2c: E2 0E 00 DA 55 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E9 [08:28:21]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:28:21]wFMCommunicate OK [08:28:21]SAM_PROTO_GetShiftState done [08:28:21]FM_GetShiftState done [08:28:21]req_shift_opened done [08:28:21]requested_item shift.open_date is exist - process it [08:28:21]req_shift_open_date [08:28:21]req_shift_open_date done [08:28:21]produce_requested_data done [08:28:21]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260534,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [08:28:21]process_action_free close_receipt [08:28:21]json_value_free [08:28:21]json_value_free done [08:28:21]process_json_proto returns [08:28:21]Send response to host [08:28:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260534,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [08:28:21]free response buf [08:28:21]execute_script done [08:28:21]execute_script returns [08:28:21]free content buf [08:28:21]Sock 9.Close socket [08:28:21]Sock 9.Thread stoped [08:28:23]OFD Sender: No OFD packet to send [08:28:28]OFD Sender: No OFD packet to send [08:28:33]OFD Sender: No OFD packet to send [08:28:38]OFD Sender: No OFD packet to send [08:28:43]OFD Sender: No OFD packet to send [08:28:48]OFD Sender: No OFD packet to send [08:28:53]OFD Sender: No OFD packet to send [08:28:58]OFD Sender: No OFD packet to send [08:29:03]OFD Sender: No OFD packet to send [08:29:08]OFD Sender: No OFD packet to send [08:29:13]OFD Sender: No OFD packet to send [08:29:18]OFD Sender: No OFD packet to send [08:29:23]OFD Sender: No OFD packet to send [08:29:28]OFD Sender: No OFD packet to send [08:29:33]OFD Sender: No OFD packet to send [08:29:38]OFD Sender: No OFD packet to send [08:29:43]OFD Sender: No OFD packet to send [08:29:48]OFD Sender: No OFD packet to send [08:29:53]OFD Sender: No OFD packet to send [08:29:58]OFD Sender: No OFD packet to send [08:30:03]OFD Sender: No OFD packet to send [08:30:08]OFD Sender: No OFD packet to send [08:30:13]OFD Sender: No OFD packet to send [08:30:18]OFD Sender: No OFD packet to send [08:30:23]OFD Sender: No OFD packet to send [08:30:25]accept exits with 7 [08:30:25]New connection [08:30:25]New thread 3066617188 created [08:30:25]Thread 3066473828 joined [08:30:25]Waiting for new connection... [08:30:25] Sock 7.Parse request [08:30:25]Sock 7.Check first char [08:30:25]Sock 7.First char is OK [08:30:25]request: POST /json_proto HTTP/1.0 [08:30:25]Method: POST [08:30:25]URL: /json_proto [08:30:25]Method is POST - this is cgi request [08:30:25]url: /json_proto [08:30:25]query_string will be loaded in cgi processing [08:30:25]execute_cgi json_proto POST (null) [08:30:25]execute_cgi path=json_proto method=POST [08:30:25]POST find Content-Length [08:30:25]Host: 172.17.55.133:8080 [08:30:25]Content-Length: 804 [08:30:25]Content-Type: application/json [08:30:25] [08:30:25]POST finish read [08:30:25]Found Content-Length = 804 [08:30:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036079", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:25]execute_script... [08:30: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)1036079", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:25]POST & json_proto [08:30:25]process_json_proto [08:30:25]json parsed OK: [08:30:25]protocol is kg_v1.0 [08:30:25]action value=close_receipt [08:30:25]process_action close_receipt [08:30:25]cmd_close_receipt [08:30:25]MH_GetDate [08:30:25]Write to MH i2c: F0 00 00 DB 55 1F [08:30:25]Write i2c OK [08:30:25]MH_I2C_Read... [08:30:25]Read from MH i2c: F0 [08:30:25]MH_I2C_Read... [08:30:25]Read from MH i2c: F0 09 00 [08:30:25]MH_I2C_Read... [08:30:25]Read from MH i2c: F0 09 00 DB 55 00 25 B1 C1 66 34 48 D8 65 DE [08:30:25]GetLastDocTimeStamp 1723969699 [08:30:25]current date 1723969829 [08:30:25]FM_GetShiftState [08:30:25]SAM_PROTO_GetShiftState [08:30:25]wFMCommunicate request_size=4 [08:30:25]MH_SAM_APDU [08:30:25]CAPDU: 80 13 01 00 [08:30:25]Write to MH i2c: E2 08 00 DC 55 80 13 01 00 00 00 00 00 AE [08:30:25]Write i2c OK [08:30:25]MH_I2C_Read... [08:30:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:25]Read from MH i2c: E2 [08:30:25]MH_I2C_Read... [08:30:25]Read from MH i2c: E2 0E 00 [08:30:25]MH_I2C_Read... [08:30:25]Read from MH i2c: E2 0E 00 DC 55 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 EB [08:30:25]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:30:25]wFMCommunicate OK [08:30:25]SAM_PROTO_GetShiftState done [08:30:25]FM_GetShiftState done [08:30:25]opened in 1723940556 [08:30:25]opened+sec_in_day 1724026956 [08:30:25]quantity*price = 100021 [08:30:25]sum+1 = 100023 [08:30:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 93 18.08.2024 08:30 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260535 ФПД: 7034302216140 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T083029&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260535&fm=7034302216140&tin=02508201610067®Number=0000000000091865&sum=100022 [08:30:26]StoreToDocumentArchive [08:30:26]shift 449 fd 260535 [08:30:26]save to /storage/0449/doc_00260535 [08:30:26]save last doc name /storage/0449/doc_00260535 to /storage/kkm_last_doc_name [08:30:26]save OK [08:30:26]Clear old archive folders... [08:30:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:30:26]tlvbuf is 003D0D80 [08:30:26]SAM_PROTO_ClearQueue [08:30:26]wFMCommunicate request_size=4 [08:30:26]MH_SAM_APDU [08:30:26]CAPDU: 80 09 00 00 [08:30:26]Write to MH i2c: E2 08 00 E9 55 80 09 00 00 00 00 00 00 B0 [08:30:26]Write i2c OK [08:30:26]MH_I2C_Read... [08:30:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:30:26]Read from MH i2c: E2 [08:30:26]MH_I2C_Read... [08:30:26]Read from MH i2c: E2 03 00 [08:30:26]MH_I2C_Read... [08:30:26]Read from MH i2c: E2 03 00 E9 55 00 90 00 B2 [08:30:26]RAPDU: 90 00 [08:30:26]wFMCommunicate OK [08:30:26]SAM_PROTO_ClearQueue done [08:30:26]KKMCreateOFDPacket [08:30:26]OFDProtocolAddRootSTLVToBuf [08:30:26]FM_MakeSignedData [08:30:26]FM_MakeSignedData [08:30:26]SAM_PROTO_SignData [08:30:26]wFMCommunicate request_size=4 [08:30:26]MH_SAM_APDU [08:30:26]CAPDU: 80 0D 01 02 [08:30:26]Write to MH i2c: E2 08 00 EA 55 80 0D 01 02 00 00 00 00 B8 [08:30:26]Write i2c OK [08:30:26]MH_I2C_Read... [08:30:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:30:26]Read from MH i2c: E2 [08:30:26]MH_I2C_Read... [08:30:26]Read from MH i2c: E2 03 00 [08:30:26]MH_I2C_Read... [08:30:26]Read from MH i2c: E2 03 00 EA 55 00 90 00 B3 [08:30:26]RAPDU: 90 00 [08:30:26]wFMCommunicate OK [08:30:26]wFMCommunicate request_size=255 [08:30:26]MH_SAM_APDU [08:30:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 25 B1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B7 F9 03 00 35 04 06 00 06 [08:30:26]Write to MH i2c: E2 02 01 EB 55 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 25 B1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B7 F9 03 00 35 04 06 00 06 00 00 63 [08:30:26]Write i2c OK [08:30:26]MH_I2C_Read... [08:30:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:26]Read from MH i2c: E2 [08:30:26]MH_I2C_Read... [08:30:26]Read from MH i2c: E2 03 00 [08:30:26]MH_I2C_Read... [08:30:26]Read from MH i2c: E2 03 00 EB 55 00 90 00 B4 [08:30:26]RAPDU: 90 00 [08:30:26]wFMCommunicate OK [08:30:26]wFMCommunicate request_size=10 [08:30:26]MH_SAM_APDU [08:30:26]CAPDU: 80 0D 02 02 05 65 CD 15 B7 CC [08:30:26]Write to MH i2c: E2 0D 00 EC 55 80 0D 02 02 05 00 65 CD 15 B7 CC 00 00 8F [08:30:26]Write i2c OK [08:30:26]MH_I2C_Read... [08:30:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:27]Read from MH i2c: E2 [08:30:27]MH_I2C_Read... [08:30:27]Read from MH i2c: E2 03 00 [08:30:27]MH_I2C_Read... [08:30:27]Read from MH i2c: E2 03 00 EC 55 00 90 00 B5 [08:30:27]RAPDU: 90 00 [08:30:27]wFMCommunicate OK [08:30:27]wFMCommunicate request_size=4 [08:30:27]MH_SAM_APDU [08:30:27]CAPDU: 80 0D 03 02 [08:30:27]Write to MH i2c: E2 08 00 ED 55 80 0D 03 02 00 00 00 00 BD [08:30:27]Write i2c OK [08:30:27]MH_I2C_Read... [08:30:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:30:27]Read from MH i2c: E2 [08:30:27]MH_I2C_Read... [08:30:27]Read from MH i2c: E2 0B 00 [08:30:27]MH_I2C_Read... [08:30:27]Read from MH i2c: E2 0B 00 ED 55 00 43 65 28 BB E9 9B 12 CC 90 00 AB [08:30:27]RAPDU: 43 65 28 BB E9 9B 12 CC 90 00 [08:30:27]wFMCommunicate OK [08:30:27]SAM_PROTO_SignData done [08:30:27]FM_MakeSignedData done [08:30:27]CreateOFDProtocolMessage [08:30:27]wFMCommunicate request_size=4 [08:30:27]MH_SAM_APDU [08:30:27]CAPDU: 80 11 00 00 [08:30:27]Write to MH i2c: E2 08 00 EE 55 80 11 00 00 00 00 00 00 BD [08:30:27]Write i2c OK [08:30:27]MH_I2C_Read... [08:30:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:27]Read from MH i2c: E2 [08:30:27]MH_I2C_Read... [08:30:27]Read from MH i2c: E2 17 00 [08:30:27]MH_I2C_Read... [08:30:27]Read from MH i2c: E2 17 00 EE 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 0A [08:30:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:30:27]wFMCommunicate OK [08:30:27]CreateOFDProtocolMessage done [08:30:27]OFDSenderStorePacket 260535 [08:30:27]StoreOFDPacket docnum=260535 [08:30:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 E0 88 07 01 1E D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 25 B1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B7 F9 03 00 35 04 06 00 06 65 CD 15 B7 CC 43 65 28 BB E9 9B 12 CC [08:30:27]CheckFolder [08:30:27]dirname=/storage/ofd_packets [08:30:27]CheckFolder done [08:30:27]ProducePacketName [08:30:27]name=ofd_packets/00260535 [08:30:27]NVStorageSaveData ofd_packets/00260535 [08:30:27]File name is /storage/ofd_packets/00260535 [08:30:27]Write 301 bytes [08:30:27]NVStorageSaveData done [08:30:27]OFDSenderStorePacket done [08:30:27]KKMCreateOFDPacket done [08:30:27]NVStorageSaveData kkm_last_timestamp [08:30:27]File name is /storage/kkm_last_timestamp [08:30:27]Write 4 bytes [08:30:27]NVStorageSaveData done [08:30:27]ExternCall_PrintAddStr [08:30:27]wPrintStart [08:30:27]Write to MH i2c: 01 00 00 EF 55 44 [08:30:27]Write i2c OK [08:30:27]MH_I2C_Read... [08:30:27]Read from MH i2c: 01 [08:30:27]MH_I2C_Read... [08:30:27]Read from MH i2c: 01 07 00 [08:30:27]MH_I2C_Read... [08:30:27]Read from MH i2c: 01 07 00 EF 55 00 00 00 00 00 FF 0F 59 [08:30:27]RasterBufferAndPrint [08:30:27]line Счет N : (1)1036079 [08:30:27]line ИНН: 02508201610067 [08:30:27]line Контрольно-Кассовый Чек [08:30:27]line ПРОДАЖА [08:30:27]line ТРК (МРК, ГНК) : 13 [08:30:27]line Товар: 2710124500 [08:30:27]line Аи-95-К-5 [08:30:27]line 13.480 * 74.20 [08:30:27]line = 1000.22 [08:30:27]line НДС 12% НСП 1% [08:30:27]line > о реализуемом товаре [08:30:27]line ИТОГО: 1000.22 [08:30:27]line НСП 1% : 8.85 [08:30:27]line НДС 12% : 106.22 [08:30:27]line Наличными: 0.00 [08:30:27]line Безнал.: 1000.22 [08:30:27]line Место: АЗС № 94 "Партнер Нефть" [08:30:27]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [08:30:27]line СНО: Общий режим [08:30:27]line Чек 93 18.08.2024 08:30 [08:30:27]line Смена: 449 ФФД: 1.0 [08:30:27]line ЗНМ: 0300000099 [08:30:27]line РНМ: 0000000000091865 [08:30:27]line Версия ККМ: 001 [08:30:27]line Платежная система: O! деньги [08:30:27]line ФМ: 0000000000871820 [08:30:27]line ФД: 260535 [08:30:27]line ФПД: 7034302216140 [08:30:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T083029&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260535&fm=7034302216140&tin=02508201610067®Number=0000000000091865&sum=100022 [08:30:27]written 0, free lines is 4095 [08:30:27]OFD Sender: Processing packet 260535 [packets to send 192, broken 191] [08:30:27]ProducePacketName [08:30:27]name=ofd_packets/00260535 [08:30:27]OFD Sender: To server: pG, [08:30:27]CommunicateWithHost lk.salyk.kg:30040 [08:30:27]ConnectInit lk.salyk.kg [08:30:27]Connected sock=10 [08:30: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 30 0F 01 00 00 E0 88 07 01 1E D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 25 B1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B7 F9 03 00 35 04 06 00 06 65 CD 15 B7 CC 43 65 28 BB E9 9B 12 CC [08:30: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 30 4F 00 00 00 91 FC 47 00 BC 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B7 F9 03 00 F4 03 04 00 7A 5A C1 66 B6 04 01 00 00 A0 96 80 08 DF 79 7A C0 [08:30:27]CommunicateWithHost err = 0 [08:30:27]CheckOFDResponse [08:30:27]1017 (14) - 77093643461234 [08:30:27]1041 (16) - 0000000000871820 [08:30:27]1040 (4) - 260535 [08:30:27]1012 (4) - 18.08.2024 02:20 [08:30:27]1206 (1) - 0 [08:30:27]OFD Sender: Remove packet 260535 [08:30:27]ProducePacketName [08:30:27]name=ofd_packets/00260535 [08:30:27]NVStorageDeleteData [08:30:27]Write to MH i2c: 01 00 00 19 56 6F [08:30:27]Write i2c OK [08:30:27]MH_I2C_Read... [08:30:27]Read from MH i2c: 01 [08:30:27]MH_I2C_Read... [08:30:27]Read from MH i2c: 01 07 00 [08:30:27]MH_I2C_Read... [08:30:27]Read from MH i2c: 01 07 00 19 56 00 00 00 00 00 83 0C 05 [08:30:27]RasterBufferAndPrint [08:30:27]line [08:30:27]line [08:30:27]line [08:30:27]line [08:30:27]line [08:30:27]written 0, free lines is 3207 [08:30:27]MH_Cut [08:30:27]Write to MH i2c: D1 01 00 20 56 01 48 [08:30:27]Write i2c OK [08:30:27]MH_I2C_Read... [08:30:27]Read from MH i2c: D1 [08:30:27]MH_I2C_Read... [08:30:27]Read from MH i2c: D1 01 00 [08:30:27]MH_I2C_Read... [08:30:27]Read from MH i2c: D1 01 00 20 56 00 47 [08:30:27]Write to MH i2c: 01 00 00 21 56 77 [08:30:27]Write i2c OK [08:30:27]MH_I2C_Read... [08:30:28]OFD Sender: No OFD packet to send [08:30:28]*** Cut start [08:30:28]*** Purtial cut [08:30:28]*** Stage 1: CUTSNS_PIN = 1 [08:30:30]Read from MH i2c: 01 [08:30:30]MH_I2C_Read... [08:30:30]*** Stop cut motor [08:30:30]*** Cut end [08:30:30]Read from MH i2c: 01 07 00 [08:30:30]MH_I2C_Read... [08:30:30]Read from MH i2c: 01 07 00 21 56 00 00 00 00 00 FF 0F 8C [08:30:30]process_action close_receipt done [08:30:30]requested_data is exist [08:30:30]produce_requested_data [08:30:30]requested_item fm.sn is exist - process it [08:30:30]wFMCommunicate request_size=4 [08:30:30]MH_SAM_APDU [08:30:30]CAPDU: 80 11 00 00 [08:30:30]Write to MH i2c: E2 08 00 22 56 80 11 00 00 00 00 00 00 F2 [08:30:30]Write i2c OK [08:30:30]MH_I2C_Read... [08:30:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:30]Read from MH i2c: E2 [08:30:30]MH_I2C_Read... [08:30:30]Read from MH i2c: E2 17 00 [08:30:30]MH_I2C_Read... [08:30:30]Read from MH i2c: E2 17 00 22 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 3F [08:30:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:30:30]wFMCommunicate OK [08:30:30]requested_item fd.num is exist - process it [08:30:30]SAM_PROTO_GetFieldsCounters [08:30:30]wFMCommunicate request_size=4 [08:30:30]MH_SAM_APDU [08:30:30]CAPDU: 80 13 00 00 [08:30:30]Write to MH i2c: E2 08 00 23 56 80 13 00 00 00 00 00 00 F5 [08:30:30]Write i2c OK [08:30:30]MH_I2C_Read... [08:30:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:30:30]Read from MH i2c: E2 [08:30:30]MH_I2C_Read... [08:30:30]Read from MH i2c: E2 62 00 [08:30:30]MH_I2C_Read... [08:30:30]Read from MH i2c: E2 62 00 23 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B7 F9 03 00 0E 04 04 00 C1 01 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 A0 [08:30: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B7 F9 03 00 0E 04 04 00 C1 01 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 [08:30:30]wFMCommunicate OK [08:30:30]SAM_PROTO_GetFieldsCounters done [08:30:30]requested_item shift.num is exist - process it [08:30:30]requested_item shift.opened is exist - process it [08:30:30]req_shift_opened [08:30:30]FM_GetShiftState [08:30:30]SAM_PROTO_GetShiftState [08:30:30]wFMCommunicate request_size=4 [08:30:30]MH_SAM_APDU [08:30:30]CAPDU: 80 13 01 00 [08:30:30]Write to MH i2c: E2 08 00 24 56 80 13 01 00 00 00 00 00 F7 [08:30:30]Write i2c OK [08:30:30]MH_I2C_Read... [08:30:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:30]Read from MH i2c: E2 [08:30:30]MH_I2C_Read... [08:30:30]Read from MH i2c: E2 0E 00 [08:30:30]MH_I2C_Read... [08:30:30]Read from MH i2c: E2 0E 00 24 56 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 34 [08:30:30]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:30:30]wFMCommunicate OK [08:30:30]SAM_PROTO_GetShiftState done [08:30:30]FM_GetShiftState done [08:30:30]req_shift_opened done [08:30:30]requested_item shift.open_date is exist - process it [08:30:30]req_shift_open_date [08:30:30]req_shift_open_date done [08:30:30]produce_requested_data done [08:30:30]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260535,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [08:30:30]process_action_free close_receipt [08:30:30]json_value_free [08:30:30]json_value_free done [08:30:30]process_json_proto returns [08:30:30]Send response to host [08:30:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260535,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [08:30:30]free response buf [08:30:30]execute_script done [08:30:30]execute_script returns [08:30:30]free content buf [08:30:30]Sock 7.Close socket [08:30:30]Sock 7.Thread stoped [08:30:33]OFD Sender: No OFD packet to send [08:30:38]OFD Sender: No OFD packet to send [08:30:43]OFD Sender: No OFD packet to send [08:30:48]OFD Sender: No OFD packet to send [08:30:53]OFD Sender: No OFD packet to send [08:30:58]OFD Sender: No OFD packet to send [08:31:03]OFD Sender: No OFD packet to send [08:31:08]OFD Sender: No OFD packet to send [08:31:13]OFD Sender: No OFD packet to send [08:31:15]accept exits with 9 [08:31:15]New connection [08:31:15]New thread 3066473828 created [08:31:15]Thread 3066617188 joined [08:31:15]Waiting for new connection... [08:31:15] Sock 9.Parse request [08:31:15]Sock 9.Check first char [08:31:15]Sock 9.First char is OK [08:31:15]request: POST /json_proto HTTP/1.0 [08:31:15]Method: POST [08:31:15]URL: /json_proto [08:31:15]Method is POST - this is cgi request [08:31:15]url: /json_proto [08:31:15]query_string will be loaded in cgi processing [08:31:15]execute_cgi json_proto POST (null) [08:31:15]execute_cgi path=json_proto method=POST [08:31:15]POST find Content-Length [08:31:15]Host: 172.17.55.133:8080 [08:31:15]Content-Length: 678 [08:31:15]Content-Type: application/json [08:31:15] [08:31:15]POST finish read [08:31:15]Found Content-Length = 678 [08:31:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:15]execute_script... [08:31: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)1036080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:15]POST & json_proto [08:31:15]process_json_proto [08:31:15]json parsed OK: [08:31:15]protocol is kg_v1.0 [08:31:15]action value=close_receipt [08:31:15]process_action close_receipt [08:31:15]cmd_close_receipt [08:31:15]MH_GetDate [08:31:15]Write to MH i2c: F0 00 00 25 56 6A [08:31:15]Write i2c OK [08:31:15]MH_I2C_Read... [08:31:15]Read from MH i2c: F0 [08:31:15]MH_I2C_Read... [08:31:15]Read from MH i2c: F0 09 00 [08:31:15]MH_I2C_Read... [08:31:15]Read from MH i2c: F0 09 00 25 56 00 57 B1 C1 66 34 48 D8 65 5B [08:31:15]GetLastDocTimeStamp 1723969829 [08:31:15]current date 1723969879 [08:31:15]FM_GetShiftState [08:31:15]SAM_PROTO_GetShiftState [08:31:15]wFMCommunicate request_size=4 [08:31:15]MH_SAM_APDU [08:31:15]CAPDU: 80 13 01 00 [08:31:15]Write to MH i2c: E2 08 00 26 56 80 13 01 00 00 00 00 00 F9 [08:31:15]Write i2c OK [08:31:15]MH_I2C_Read... [08:31:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:15]Read from MH i2c: E2 [08:31:15]MH_I2C_Read... [08:31:15]Read from MH i2c: E2 0E 00 [08:31:15]MH_I2C_Read... [08:31:15]Read from MH i2c: E2 0E 00 26 56 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 36 [08:31:15]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:31:15]wFMCommunicate OK [08:31:15]SAM_PROTO_GetShiftState done [08:31:15]FM_GetShiftState done [08:31:15]opened in 1723940556 [08:31:15]opened+sec_in_day 1724026956 [08:31:15]quantity*price = 30035 [08:31:15]sum+1 = 30036 [08:31:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 94 18.08.2024 08:31 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260536 ФПД: 91137509340841 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T083119&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260536&fm=91137509340841&tin=02508201610067®Number=0000000000091865&sum=30000 [08:31:16]StoreToDocumentArchive [08:31:16]shift 449 fd 260536 [08:31:16]save to /storage/0449/doc_00260536 [08:31:16]save last doc name /storage/0449/doc_00260536 to /storage/kkm_last_doc_name [08:31:16]save OK [08:31:16]Clear old archive folders... [08:31:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:31:16]tlvbuf is 00453480 [08:31:16]SAM_PROTO_ClearQueue [08:31:16]wFMCommunicate request_size=4 [08:31:16]MH_SAM_APDU [08:31:16]CAPDU: 80 09 00 00 [08:31:16]Write to MH i2c: E2 08 00 33 56 80 09 00 00 00 00 00 00 FB [08:31:16]Write i2c OK [08:31:16]MH_I2C_Read... [08:31:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:16]Read from MH i2c: E2 [08:31:16]MH_I2C_Read... [08:31:16]Read from MH i2c: E2 03 00 [08:31:16]MH_I2C_Read... [08:31:16]Read from MH i2c: E2 03 00 33 56 00 90 00 FD [08:31:16]RAPDU: 90 00 [08:31:16]wFMCommunicate OK [08:31:16]SAM_PROTO_ClearQueue done [08:31:16]KKMCreateOFDPacket [08:31:16]OFDProtocolAddRootSTLVToBuf [08:31:16]FM_MakeSignedData [08:31:16]FM_MakeSignedData [08:31:16]SAM_PROTO_SignData [08:31:16]wFMCommunicate request_size=4 [08:31:16]MH_SAM_APDU [08:31:16]CAPDU: 80 0D 01 02 [08:31:16]Write to MH i2c: E2 08 00 34 56 80 0D 01 02 00 00 00 00 03 [08:31:16]Write i2c OK [08:31:16]MH_I2C_Read... [08:31:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:16]Read from MH i2c: E2 [08:31:16]MH_I2C_Read... [08:31:16]Read from MH i2c: E2 03 00 [08:31:16]MH_I2C_Read... [08:31:16]Read from MH i2c: E2 03 00 34 56 00 90 00 FE [08:31:16]RAPDU: 90 00 [08:31:16]wFMCommunicate OK [08:31:16]wFMCommunicate request_size=255 [08:31:16]MH_SAM_APDU [08:31:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 57 B1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B8 F9 03 00 35 04 06 00 52 [08:31:16]Write to MH i2c: E2 02 01 35 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 57 B1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B8 F9 03 00 35 04 06 00 52 00 00 F4 [08:31:16]Write i2c OK [08:31:16]MH_I2C_Read... [08:31:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:17]Read from MH i2c: E2 [08:31:17]MH_I2C_Read... [08:31:17]Read from MH i2c: E2 03 00 [08:31:17]MH_I2C_Read... [08:31:17]Read from MH i2c: E2 03 00 35 56 00 90 00 FF [08:31:17]RAPDU: 90 00 [08:31:17]wFMCommunicate OK [08:31:17]wFMCommunicate request_size=10 [08:31:17]MH_SAM_APDU [08:31:17]CAPDU: 80 0D 02 02 05 E3 9A DE B6 A9 [08:31:17]Write to MH i2c: E2 0D 00 36 56 80 0D 02 02 05 00 E3 9A DE B6 A9 00 00 CA [08:31:17]Write i2c OK [08:31:17]MH_I2C_Read... [08:31:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:17]Read from MH i2c: E2 [08:31:17]MH_I2C_Read... [08:31:17]Read from MH i2c: E2 03 00 [08:31:17]MH_I2C_Read... [08:31:17]Read from MH i2c: E2 03 00 36 56 00 90 00 00 [08:31:17]RAPDU: 90 00 [08:31:17]wFMCommunicate OK [08:31:17]wFMCommunicate request_size=4 [08:31:17]MH_SAM_APDU [08:31:17]CAPDU: 80 0D 03 02 [08:31:17]Write to MH i2c: E2 08 00 37 56 80 0D 03 02 00 00 00 00 08 [08:31:17]Write i2c OK [08:31:17]MH_I2C_Read... [08:31:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:17]Read from MH i2c: E2 [08:31:17]MH_I2C_Read... [08:31:17]Read from MH i2c: E2 0B 00 [08:31:17]MH_I2C_Read... [08:31:17]Read from MH i2c: E2 0B 00 37 56 00 A4 D9 56 06 33 31 A7 46 90 00 33 [08:31:17]RAPDU: A4 D9 56 06 33 31 A7 46 90 00 [08:31:17]wFMCommunicate OK [08:31:17]SAM_PROTO_SignData done [08:31:17]FM_MakeSignedData done [08:31:17]CreateOFDProtocolMessage [08:31:17]wFMCommunicate request_size=4 [08:31:17]MH_SAM_APDU [08:31:17]CAPDU: 80 11 00 00 [08:31:17]Write to MH i2c: E2 08 00 38 56 80 11 00 00 00 00 00 00 08 [08:31:17]Write i2c OK [08:31:17]MH_I2C_Read... [08:31:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:17]Read from MH i2c: E2 [08:31:17]MH_I2C_Read... [08:31:17]Read from MH i2c: E2 17 00 [08:31:17]MH_I2C_Read... [08:31:17]Read from MH i2c: E2 17 00 38 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 55 [08:31:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:31:17]wFMCommunicate OK [08:31:17]CreateOFDProtocolMessage done [08:31:17]OFDSenderStorePacket 260536 [08:31:17]StoreOFDPacket docnum=260536 [08:31:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 34 C3 07 01 CB 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 57 B1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B8 F9 03 00 35 04 06 00 52 E3 9A DE B6 A9 A4 D9 56 06 33 31 A7 46 [08:31:17]CheckFolder [08:31:17]dirname=/storage/ofd_packets [08:31:17]CheckFolder done [08:31:17]ProducePacketName [08:31:17]name=ofd_packets/00260536 [08:31:17]NVStorageSaveData ofd_packets/00260536 [08:31:17]File name is /storage/ofd_packets/00260536 [08:31:17]Write 301 bytes [08:31:17]NVStorageSaveData done [08:31:17]OFDSenderStorePacket done [08:31:17]KKMCreateOFDPacket done [08:31:17]NVStorageSaveData kkm_last_timestamp [08:31:17]File name is /storage/kkm_last_timestamp [08:31:17]Write 4 bytes [08:31:17]NVStorageSaveData done [08:31:17]ExternCall_PrintAddStr [08:31:17]wPrintStart [08:31:17]Write to MH i2c: 01 00 00 39 56 8F [08:31:17]Write i2c OK [08:31:17]MH_I2C_Read... [08:31:17]Read from MH i2c: 01 [08:31:17]MH_I2C_Read... [08:31:17]Read from MH i2c: 01 07 00 [08:31:17]MH_I2C_Read... [08:31:17]Read from MH i2c: 01 07 00 39 56 00 00 00 00 00 FF 0F A4 [08:31:17]RasterBufferAndPrint [08:31:17]line Счет N : (1)1036080 [08:31:17]line ИНН: 02508201610067 [08:31:17]line Контрольно-Кассовый Чек [08:31:17]line ПРОДАЖА [08:31:17]line ТРК (МРК, ГНК) : 22 [08:31:17]line Товар: 2710124130 [08:31:17]line Аи-92-К-5 [08:31:17]line 4.430 * 67.80 [08:31:17]line = 300.35 [08:31:17]line НДС 12% НСП 1% [08:31:17]line > о реализуемом товаре [08:31:17]line ОКРУГЛЕНИЕ: -0.35 [08:31:17]line ИТОГО: 300.00 [08:31:17]line Внесено: 300.00 [08:31:17]line СДАЧА: 0.00 [08:31:17]line НСП 1% : 2.66 [08:31:17]line НДС 12% : 31.90 [08:31:17]line Наличными: 300.00 [08:31:17]line Безнал.: 0.00 [08:31:17]line Место: АЗС № 94 "Партнер Нефть" [08:31:17]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [08:31:17]line СНО: Общий режим [08:31:17]line Чек 94 18.08.2024 08:31 [08:31:17]line Смена: 449 ФФД: 1.0 [08:31:17]line ЗНМ: 0300000099 [08:31:17]line РНМ: 0000000000091865 [08:31:17]line Версия ККМ: 001 [08:31:17]line ФМ: 0000000000871820 [08:31:17]line ФД: 260536 [08:31:17]line ФПД: 91137509340841 [08:31:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T083119&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260536&fm=91137509340841&tin=02508201610067®Number=0000000000091865&sum=30000 [08:31:17]written 0, free lines is 4095 [08:31:17]OFD Sender: Processing packet 260536 [packets to send 192, broken 191] [08:31:17]ProducePacketName [08:31:17]name=ofd_packets/00260536 [08:31:17]OFD Sender: To server: pG, [08:31:17]CommunicateWithHost lk.salyk.kg:30040 [08:31:17]ConnectInit lk.salyk.kg [08:31:17]Connected sock=10 [08:31: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 30 0F 01 00 00 34 C3 07 01 CB 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 57 B1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B8 F9 03 00 35 04 06 00 52 E3 9A DE B6 A9 A4 D9 56 06 33 31 A7 46 [08:31: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 30 4F 00 00 00 D3 71 47 00 41 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B8 F9 03 00 F4 03 04 00 AD 5A C1 66 B6 04 01 00 00 AD 20 88 DA 6C AD D0 CB [08:31:17]CommunicateWithHost err = 0 [08:31:17]CheckOFDResponse [08:31:17]1017 (14) - 77093643461234 [08:31:17]1041 (16) - 0000000000871820 [08:31:17]1040 (4) - 260536 [08:31:17]1012 (4) - 18.08.2024 02:21 [08:31:17]1206 (1) - 0 [08:31:17]OFD Sender: Remove packet 260536 [08:31:17]ProducePacketName [08:31:17]name=ofd_packets/00260536 [08:31:17]NVStorageDeleteData [08:31:18]Write to MH i2c: 01 00 00 64 56 BA [08:31:18]Write i2c OK [08:31:18]MH_I2C_Read... [08:31:18]Read from MH i2c: 01 [08:31:18]MH_I2C_Read... [08:31:18]Read from MH i2c: 01 07 00 [08:31:18]MH_I2C_Read... [08:31:18]Read from MH i2c: 01 07 00 64 56 00 00 00 00 00 6C 0C 39 [08:31:18]RasterBufferAndPrint [08:31:18]line [08:31:18]line [08:31:18]line [08:31:18]line [08:31:18]line [08:31:18]written 0, free lines is 3183 [08:31:18]MH_Cut [08:31:18]Write to MH i2c: D1 01 00 6B 56 01 93 [08:31:18]Write i2c OK [08:31:18]MH_I2C_Read... [08:31:18]Read from MH i2c: D1 [08:31:18]MH_I2C_Read... [08:31:18]Read from MH i2c: D1 01 00 [08:31:18]MH_I2C_Read... [08:31:18]Read from MH i2c: D1 01 00 6B 56 00 92 [08:31:18]Write to MH i2c: 01 00 00 6C 56 C2 [08:31:18]Write i2c OK [08:31:18]MH_I2C_Read... [08:31:18]OFD Sender: No OFD packet to send [08:31:19]*** Cut start [08:31:19]*** Purtial cut [08:31:19]*** Stage 1: CUTSNS_PIN = 1 [08:31:21]Read from MH i2c: 01 [08:31:21]MH_I2C_Read... [08:31:21]*** Stop cut motor [08:31:21]*** Cut end [08:31:21]Read from MH i2c: 01 07 00 [08:31:21]MH_I2C_Read... [08:31:21]Read from MH i2c: 01 07 00 6C 56 00 00 00 00 00 FF 0F D7 [08:31:21]process_action close_receipt done [08:31:21]requested_data is exist [08:31:21]produce_requested_data [08:31:21]requested_item fm.sn is exist - process it [08:31:21]wFMCommunicate request_size=4 [08:31:21]MH_SAM_APDU [08:31:21]CAPDU: 80 11 00 00 [08:31:21]Write to MH i2c: E2 08 00 6D 56 80 11 00 00 00 00 00 00 3D [08:31:21]Write i2c OK [08:31:21]MH_I2C_Read... [08:31:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:21]Read from MH i2c: E2 [08:31:21]MH_I2C_Read... [08:31:21]Read from MH i2c: E2 17 00 [08:31:21]MH_I2C_Read... [08:31:21]Read from MH i2c: E2 17 00 6D 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 8A [08:31:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:31:21]wFMCommunicate OK [08:31:21]requested_item fd.num is exist - process it [08:31:21]SAM_PROTO_GetFieldsCounters [08:31:21]wFMCommunicate request_size=4 [08:31:21]MH_SAM_APDU [08:31:21]CAPDU: 80 13 00 00 [08:31:21]Write to MH i2c: E2 08 00 6E 56 80 13 00 00 00 00 00 00 40 [08:31:21]Write i2c OK [08:31:21]MH_I2C_Read... [08:31:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:21]Read from MH i2c: E2 [08:31:21]MH_I2C_Read... [08:31:21]Read from MH i2c: E2 62 00 [08:31:21]MH_I2C_Read... [08:31:21]Read from MH i2c: E2 62 00 6E 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B8 F9 03 00 0E 04 04 00 C1 01 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 EF [08:31: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B8 F9 03 00 0E 04 04 00 C1 01 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 [08:31:21]wFMCommunicate OK [08:31:21]SAM_PROTO_GetFieldsCounters done [08:31:21]requested_item shift.num is exist - process it [08:31:21]requested_item shift.opened is exist - process it [08:31:21]req_shift_opened [08:31:21]FM_GetShiftState [08:31:21]SAM_PROTO_GetShiftState [08:31:21]wFMCommunicate request_size=4 [08:31:21]MH_SAM_APDU [08:31:21]CAPDU: 80 13 01 00 [08:31:21]Write to MH i2c: E2 08 00 6F 56 80 13 01 00 00 00 00 00 42 [08:31:21]Write i2c OK [08:31:21]MH_I2C_Read... [08:31:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:21]Read from MH i2c: E2 [08:31:21]MH_I2C_Read... [08:31:21]Read from MH i2c: E2 0E 00 [08:31:21]MH_I2C_Read... [08:31:21]Read from MH i2c: E2 0E 00 6F 56 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 7F [08:31:21]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:31:21]wFMCommunicate OK [08:31:21]SAM_PROTO_GetShiftState done [08:31:21]FM_GetShiftState done [08:31:21]req_shift_opened done [08:31:21]requested_item shift.open_date is exist - process it [08:31:21]req_shift_open_date [08:31:21]req_shift_open_date done [08:31:21]produce_requested_data done [08:31:21]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260536,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [08:31:21]process_action_free close_receipt [08:31:21]json_value_free [08:31:21]json_value_free done [08:31:21]process_json_proto returns [08:31:21]Send response to host [08:31:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260536,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [08:31:21]free response buf [08:31:21]execute_script done [08:31:21]execute_script returns [08:31:21]free content buf [08:31:21]Sock 9.Close socket [08:31:21]Sock 9.Thread stoped [08:31:23]OFD Sender: No OFD packet to send [08:31:28]OFD Sender: No OFD packet to send [08:31:33]OFD Sender: No OFD packet to send [08:31:38]OFD Sender: No OFD packet to send [08:31:43]OFD Sender: No OFD packet to send [08:31:48]OFD Sender: No OFD packet to send [08:31:53]OFD Sender: No OFD packet to send [08:31:58]OFD Sender: No OFD packet to send [08:32:03]OFD Sender: No OFD packet to send [08:32:08]OFD Sender: No OFD packet to send [08:32:13]OFD Sender: No OFD packet to send [08:32:18]OFD Sender: No OFD packet to send [08:32:23]OFD Sender: No OFD packet to send [08:32:28]OFD Sender: No OFD packet to send [08:32:32]accept exits with 7 [08:32:32]New connection [08:32:32]New thread 3066617188 created [08:32:32]Thread 3066473828 joined [08:32:32]Waiting for new connection... [08:32:32] Sock 7.Parse request [08:32:32]Sock 7.Check first char [08:32:32]Sock 7.First char is OK [08:32:32]request: POST /json_proto HTTP/1.0 [08:32:32]Method: POST [08:32:32]URL: /json_proto [08:32:32]Method is POST - this is cgi request [08:32:32]url: /json_proto [08:32:32]query_string will be loaded in cgi processing [08:32:32]execute_cgi json_proto POST (null) [08:32:32]execute_cgi path=json_proto method=POST [08:32:32]POST find Content-Length [08:32:32]Host: 172.17.55.133:8080 [08:32:32]Content-Length: 817 [08:32:32]Content-Type: application/json [08:32:32] [08:32:32]POST finish read [08:32:32]Found Content-Length = 817 [08:32:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036081", "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" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:32]execute_script... [08:32: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)1036081", "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" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:32]POST & json_proto [08:32:32]process_json_proto [08:32:32]json parsed OK: [08:32:32]protocol is kg_v1.0 [08:32:32]action value=close_receipt [08:32:32]process_action close_receipt [08:32:32]cmd_close_receipt [08:32:32]MH_GetDate [08:32:32]Write to MH i2c: F0 00 00 70 56 B5 [08:32:32]Write i2c OK [08:32:32]MH_I2C_Read... [08:32:32]Read from MH i2c: F0 [08:32:32]MH_I2C_Read... [08:32:32]Read from MH i2c: F0 09 00 [08:32:32]MH_I2C_Read... [08:32:32]Read from MH i2c: F0 09 00 70 56 00 A4 B1 C1 66 34 48 D8 65 F3 [08:32:32]GetLastDocTimeStamp 1723969879 [08:32:32]current date 1723969956 [08:32:32]FM_GetShiftState [08:32:32]SAM_PROTO_GetShiftState [08:32:32]wFMCommunicate request_size=4 [08:32:32]MH_SAM_APDU [08:32:32]CAPDU: 80 13 01 00 [08:32:32]Write to MH i2c: E2 08 00 71 56 80 13 01 00 00 00 00 00 44 [08:32:32]Write i2c OK [08:32:32]MH_I2C_Read... [08:32:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:32]Read from MH i2c: E2 [08:32:32]MH_I2C_Read... [08:32:32]Read from MH i2c: E2 0E 00 [08:32:32]MH_I2C_Read... [08:32:32]Read from MH i2c: E2 0E 00 71 56 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 81 [08:32:32]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:32:32]wFMCommunicate OK [08:32:32]SAM_PROTO_GetShiftState done [08:32:32]FM_GetShiftState done [08:32:32]opened in 1723940556 [08:32:32]opened+sec_in_day 1724026956 [08:32:32]quantity*price = 60027 [08:32:32]sum+1 = 60029 [08:32:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.28 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 0.00 Безнал.: 600.28 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 95 18.08.2024 08:32 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871820 ФД: 260537 ФПД: 130886844012700 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T083236&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260537&fm=130886844012700&tin=02508201610067®Number=0000000000091865&sum=60028 [08:32:33]StoreToDocumentArchive [08:32:33]shift 449 fd 260537 [08:32:33]save to /storage/0449/doc_00260537 [08:32:33]save last doc name /storage/0449/doc_00260537 to /storage/kkm_last_doc_name [08:32:33]save OK [08:32:33]Clear old archive folders... [08:32:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:32:33]tlvbuf is 0052B100 [08:32:33]SAM_PROTO_ClearQueue [08:32:33]wFMCommunicate request_size=4 [08:32:33]MH_SAM_APDU [08:32:33]CAPDU: 80 09 00 00 [08:32:33]Write to MH i2c: E2 08 00 7E 56 80 09 00 00 00 00 00 00 46 [08:32:33]Write i2c OK [08:32:33]MH_I2C_Read... [08:32:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:32:33]Read from MH i2c: E2 [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: E2 03 00 [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: E2 03 00 7E 56 00 90 00 48 [08:32:33]RAPDU: 90 00 [08:32:33]wFMCommunicate OK [08:32:33]SAM_PROTO_ClearQueue done [08:32:33]KKMCreateOFDPacket [08:32:33]OFDProtocolAddRootSTLVToBuf [08:32:33]FM_MakeSignedData [08:32:33]FM_MakeSignedData [08:32:33]SAM_PROTO_SignData [08:32:33]wFMCommunicate request_size=4 [08:32:33]MH_SAM_APDU [08:32:33]CAPDU: 80 0D 01 02 [08:32:33]Write to MH i2c: E2 08 00 7F 56 80 0D 01 02 00 00 00 00 4E [08:32:33]Write i2c OK [08:32:33]MH_I2C_Read... [08:32:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:32:33]Read from MH i2c: E2 [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: E2 03 00 [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: E2 03 00 7F 56 00 90 00 49 [08:32:33]RAPDU: 90 00 [08:32:33]wFMCommunicate OK [08:32:33]wFMCommunicate request_size=255 [08:32:33]MH_SAM_APDU [08:32: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 E7 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 A4 B1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B9 F9 03 00 35 04 06 00 77 [08:32:33]Write to MH i2c: E2 02 01 80 56 80 0D 02 02 FA 00 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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 E7 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 A4 B1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B9 F9 03 00 35 04 06 00 77 00 00 3A [08:32:33]Write i2c OK [08:32:33]MH_I2C_Read... [08:32:33]OFD Sender: No OFD packet to send [08:32:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:33]Read from MH i2c: E2 [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: E2 03 00 [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: E2 03 00 80 56 00 90 00 4A [08:32:33]RAPDU: 90 00 [08:32:33]wFMCommunicate OK [08:32:33]wFMCommunicate request_size=10 [08:32:33]MH_SAM_APDU [08:32:33]CAPDU: 80 0D 02 02 05 0A 77 D7 D8 9C [08:32:33]Write to MH i2c: E2 0D 00 81 56 80 0D 02 02 05 00 0A 77 D7 D8 9C 00 00 27 [08:32:33]Write i2c OK [08:32:33]MH_I2C_Read... [08:32:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:33]Read from MH i2c: E2 [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: E2 03 00 [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: E2 03 00 81 56 00 90 00 4B [08:32:33]RAPDU: 90 00 [08:32:33]wFMCommunicate OK [08:32:33]wFMCommunicate request_size=4 [08:32:33]MH_SAM_APDU [08:32:33]CAPDU: 80 0D 03 02 [08:32:33]Write to MH i2c: E2 08 00 82 56 80 0D 03 02 00 00 00 00 53 [08:32:33]Write i2c OK [08:32:33]MH_I2C_Read... [08:32:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:32:33]Read from MH i2c: E2 [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: E2 0B 00 [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: E2 0B 00 82 56 00 C6 5A 87 CD 81 CF B0 85 90 00 4D [08:32:33]RAPDU: C6 5A 87 CD 81 CF B0 85 90 00 [08:32:33]wFMCommunicate OK [08:32:33]SAM_PROTO_SignData done [08:32:33]FM_MakeSignedData done [08:32:33]CreateOFDProtocolMessage [08:32:33]wFMCommunicate request_size=4 [08:32:33]MH_SAM_APDU [08:32:33]CAPDU: 80 11 00 00 [08:32:33]Write to MH i2c: E2 08 00 83 56 80 11 00 00 00 00 00 00 53 [08:32:33]Write i2c OK [08:32:33]MH_I2C_Read... [08:32:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:33]Read from MH i2c: E2 [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: E2 17 00 [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: E2 17 00 83 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A0 [08:32:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:32:33]wFMCommunicate OK [08:32:33]CreateOFDProtocolMessage done [08:32:33]OFDSenderStorePacket 260537 [08:32:33]StoreOFDPacket docnum=260537 [08:32:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 C8 FA 07 01 22 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 E7 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 A4 B1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B9 F9 03 00 35 04 06 00 77 0A 77 D7 D8 9C C6 5A 87 CD 81 CF B0 85 [08:32:33]CheckFolder [08:32:33]dirname=/storage/ofd_packets [08:32:33]CheckFolder done [08:32:33]ProducePacketName [08:32:33]name=ofd_packets/00260537 [08:32:33]NVStorageSaveData ofd_packets/00260537 [08:32:33]File name is /storage/ofd_packets/00260537 [08:32:33]Write 301 bytes [08:32:33]NVStorageSaveData done [08:32:33]OFDSenderStorePacket done [08:32:33]KKMCreateOFDPacket done [08:32:33]NVStorageSaveData kkm_last_timestamp [08:32:33]File name is /storage/kkm_last_timestamp [08:32:33]Write 4 bytes [08:32:33]NVStorageSaveData done [08:32:33]ExternCall_PrintAddStr [08:32:33]wPrintStart [08:32:33]Write to MH i2c: 01 00 00 84 56 DA [08:32:33]Write i2c OK [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: 01 [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: 01 07 00 [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: 01 07 00 84 56 00 00 00 00 00 FF 0F EF [08:32:33]RasterBufferAndPrint [08:32:33]line Счет N : (1)1036081 [08:32:33]line ИНН: 02508201610067 [08:32:33]line Контрольно-Кассовый Чек [08:32:33]line ПРОДАЖА [08:32:33]line ТРК (МРК, ГНК) : 13 [08:32:33]line Товар: 2710124500 [08:32:33]line Аи-95-К-5 [08:32:33]line 8.090 * 74.20 [08:32:33]line = 600.28 [08:32:33]line НДС 12% НСП 1% [08:32:33]line > о реализуемом товаре [08:32:33]line ИТОГО: 600.28 [08:32:33]line НСП 1% : 5.31 [08:32:33]line НДС 12% : 63.75 [08:32:33]line Наличными: 0.00 [08:32:33]line Безнал.: 600.28 [08:32:33]line Место: АЗС № 94 "Партнер Нефть" [08:32:33]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [08:32:33]line СНО: Общий режим [08:32:33]line Чек 95 18.08.2024 08:32 [08:32:33]line Смена: 449 ФФД: 1.0 [08:32:33]line ЗНМ: 0300000099 [08:32:33]line РНМ: 0000000000091865 [08:32:33]line Версия ККМ: 001 [08:32:33]line Платежная система: Бакай Банк [08:32:33]line ФМ: 0000000000871820 [08:32:33]line ФД: 260537 [08:32:33]line ФПД: 130886844012700 [08:32:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T083236&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260537&fm=130886844012700&tin=02508201610067®Number=0000000000091865&sum=60028 [08:32:34]OFD Sender: Processing packet 260537 [packets to send 192, broken 191] [08:32:34]ProducePacketName [08:32:34]name=ofd_packets/00260537 [08:32:34]OFD Sender: To server: pG, [08:32:34]CommunicateWithHost lk.salyk.kg:30040 [08:32:34]ConnectInit lk.salyk.kg [08:32:34]written 0, free lines is 4095 [08:32:34]Connected sock=10 [08:32: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 30 0F 01 00 00 C8 FA 07 01 22 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 E7 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 A4 B1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B9 F9 03 00 35 04 06 00 77 0A 77 D7 D8 9C C6 5A 87 CD 81 CF B0 85 [08:32: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 30 4F 00 00 00 6C 6B 47 00 B1 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 30 10 04 04 00 B9 F9 03 00 F4 03 04 00 F9 5A C1 66 B6 04 01 00 00 E4 B7 57 AB 88 3C 59 ED [08:32:34]CommunicateWithHost err = 0 [08:32:34]CheckOFDResponse [08:32:34]1017 (14) - 77093643461234 [08:32:34]1041 (16) - 0000000000871820 [08:32:34]1040 (4) - 260537 [08:32:34]1012 (4) - 18.08.2024 02:22 [08:32:34]1206 (1) - 0 [08:32:34]OFD Sender: Remove packet 260537 [08:32:34]ProducePacketName [08:32:34]name=ofd_packets/00260537 [08:32:34]NVStorageDeleteData [08:32:34]Write to MH i2c: 01 00 00 AE 56 04 [08:32:34]Write i2c OK [08:32:34]MH_I2C_Read... [08:32:34]Read from MH i2c: 01 [08:32:34]MH_I2C_Read... [08:32:34]Read from MH i2c: 01 07 00 [08:32:34]MH_I2C_Read... [08:32:34]Read from MH i2c: 01 07 00 AE 56 00 00 00 00 00 83 0C 9A [08:32:34]RasterBufferAndPrint [08:32:34]line [08:32:34]line [08:32:34]line [08:32:34]line [08:32:34]line [08:32:34]written 0, free lines is 3207 [08:32:34]MH_Cut [08:32:34]Write to MH i2c: D1 01 00 B5 56 01 DD [08:32:34]Write i2c OK [08:32:34]MH_I2C_Read... [08:32:34]Read from MH i2c: D1 [08:32:34]MH_I2C_Read... [08:32:34]Read from MH i2c: D1 01 00 [08:32:34]MH_I2C_Read... [08:32:34]Read from MH i2c: D1 01 00 B5 56 00 DC [08:32:34]Write to MH i2c: 01 00 00 B6 56 0C [08:32:34]Write i2c OK [08:32:34]MH_I2C_Read... [08:32:35]OFD Sender: No OFD packet to send [08:32:35]*** Cut start [08:32:35]*** Purtial cut [08:32:35]*** Stage 1: CUTSNS_PIN = 1 [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 B6 56 00 00 00 00 00 FF 0F 21 [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 B7 56 80 11 00 00 00 00 00 00 87 [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 B7 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D4 [08:32:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 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 B8 56 80 13 00 00 00 00 00 00 8A [08:32:37]Write i2c OK [08:32:37]MH_I2C_Read... [08:32:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:32:38]Read from MH i2c: E2 [08:32:38]MH_I2C_Read... [08:32:38]Read from MH i2c: E2 62 00 [08:32:38]MH_I2C_Read... [08:32:38]Read from MH i2c: E2 62 00 B8 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B9 F9 03 00 0E 04 04 00 C1 01 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 3D [08:32: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B9 F9 03 00 0E 04 04 00 C1 01 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 [08:32:38]wFMCommunicate OK [08:32:38]SAM_PROTO_GetFieldsCounters done [08:32:38]requested_item shift.num is exist - process it [08:32:38]requested_item shift.opened is exist - process it [08:32:38]req_shift_opened [08:32:38]FM_GetShiftState [08:32:38]SAM_PROTO_GetShiftState [08:32:38]wFMCommunicate request_size=4 [08:32:38]MH_SAM_APDU [08:32:38]CAPDU: 80 13 01 00 [08:32:38]Write to MH i2c: E2 08 00 B9 56 80 13 01 00 00 00 00 00 8C [08:32:38]Write i2c OK [08:32:38]MH_I2C_Read... [08:32:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:38]Read from MH i2c: E2 [08:32:38]MH_I2C_Read... [08:32:38]Read from MH i2c: E2 0E 00 [08:32:38]MH_I2C_Read... [08:32:38]Read from MH i2c: E2 0E 00 B9 56 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C9 [08:32:38]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:32:38]wFMCommunicate OK [08:32:38]SAM_PROTO_GetShiftState done [08:32:38]FM_GetShiftState done [08:32:38]req_shift_opened done [08:32:38]requested_item shift.open_date is exist - process it [08:32:38]req_shift_open_date [08:32:38]req_shift_open_date done [08:32:38]produce_requested_data done [08:32:38]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260537,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [08:32:38]process_action_free close_receipt [08:32:38]json_value_free [08:32:38]json_value_free done [08:32:38]process_json_proto returns [08:32:38]Send response to host [08:32:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260537,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [08:32:38]free response buf [08:32:38]execute_script done [08:32:38]execute_script returns [08:32:38]free content buf [08:32:38]Sock 7.Close socket [08:32:38]Sock 7.Thread stoped [08:32:40]OFD Sender: No OFD packet to send [08:32:45]OFD Sender: No OFD packet to send [08:32:50]OFD Sender: No OFD packet to send [08:32:55]OFD Sender: No OFD packet to send [08:33:00]OFD Sender: No OFD packet to send [08:33:05]OFD Sender: No OFD packet to send [08:33:10]OFD Sender: No OFD packet to send [08:33:15]OFD Sender: No OFD packet to send [08:33:20]OFD Sender: No OFD packet to send [08:33:25]OFD Sender: No OFD packet to send [08:33:30]OFD Sender: No OFD packet to send [08:33:35]OFD Sender: No OFD packet to send [08:33:40]OFD Sender: No OFD packet to send [08:33:45]OFD Sender: No OFD packet to send [08:33:50]OFD Sender: No OFD packet to send [08:33:50]accept exits with 9 [08:33:50]New connection [08:33:50]New thread 3066473828 created [08:33:50]Thread 3066617188 joined [08:33:50]Waiting for new connection... [08:33:50] Sock 9.Parse request [08:33:50]Sock 9.Check first char [08:33:50]Sock 9.First char is OK [08:33:50]request: POST /json_proto HTTP/1.0 [08:33:50]Method: POST [08:33:50]URL: /json_proto [08:33:50]Method is POST - this is cgi request [08:33:50]url: /json_proto [08:33:50]query_string will be loaded in cgi processing [08:33:50]execute_cgi json_proto POST (null) [08:33:50]execute_cgi path=json_proto method=POST [08:33:50]POST find Content-Length [08:33:50]Host: 172.17.55.133:8080 [08:33:50]Content-Length: 678 [08:33:50]Content-Type: application/json [08:33:50] [08:33:50]POST finish read [08:33:50]Found Content-Length = 678 [08:33:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:33:50]execute_script... [08:33:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:33:50]POST & json_proto [08:33:50]process_json_proto [08:33:50]json parsed OK: [08:33:50]protocol is kg_v1.0 [08:33:50]action value=close_receipt [08:33:50]process_action close_receipt [08:33:50]cmd_close_receipt [08:33:50]MH_GetDate [08:33:50]Write to MH i2c: F0 00 00 BA 56 FF [08:33:50]Write i2c OK [08:33:50]MH_I2C_Read... [08:33:50]Read from MH i2c: F0 [08:33:50]MH_I2C_Read... [08:33:50]Read from MH i2c: F0 09 00 [08:33:50]MH_I2C_Read... [08:33:50]Read from MH i2c: F0 09 00 BA 56 00 F2 B1 C1 66 34 48 D8 65 8B [08:33:50]GetLastDocTimeStamp 1723969956 [08:33:50]current date 1723970034 [08:33:50]FM_GetShiftState [08:33:50]SAM_PROTO_GetShiftState [08:33:50]wFMCommunicate request_size=4 [08:33:50]MH_SAM_APDU [08:33:50]CAPDU: 80 13 01 00 [08:33:50]Write to MH i2c: E2 08 00 BB 56 80 13 01 00 00 00 00 00 8E [08:33:50]Write i2c OK [08:33:50]MH_I2C_Read... [08:33:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:50]Read from MH i2c: E2 [08:33:50]MH_I2C_Read... [08:33:50]Read from MH i2c: E2 0E 00 [08:33:50]MH_I2C_Read... [08:33:50]Read from MH i2c: E2 0E 00 BB 56 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 CB [08:33:50]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:33:50]wFMCommunicate OK [08:33:50]SAM_PROTO_GetShiftState done [08:33:50]FM_GetShiftState done [08:33:50]opened in 1723940556 [08:33:50]opened+sec_in_day 1724026956 [08:33:50]quantity*price = 40002 [08:33:50]sum+1 = 40003 [08:33:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 96 18.08.2024 08:33 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260538 ФПД: 239670546044463 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T083354&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260538&fm=239670546044463&tin=02508201610067®Number=0000000000091865&sum=40000 [08:33:51]StoreToDocumentArchive [08:33:51]shift 449 fd 260538 [08:33:51]save to /storage/0449/doc_00260538 [08:33:51]save last doc name /storage/0449/doc_00260538 to /storage/kkm_last_doc_name [08:33:51]save OK [08:33:51]Clear old archive folders... [08:33:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:33:51]tlvbuf is 0052AB50 [08:33:51]SAM_PROTO_ClearQueue [08:33:51]wFMCommunicate request_size=4 [08:33:51]MH_SAM_APDU [08:33:51]CAPDU: 80 09 00 00 [08:33:51]Write to MH i2c: E2 08 00 C8 56 80 09 00 00 00 00 00 00 90 [08:33:51]Write i2c OK [08:33:51]MH_I2C_Read... [08:33:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:33:52]Read from MH i2c: E2 [08:33:52]MH_I2C_Read... [08:33:52]Read from MH i2c: E2 03 00 [08:33:52]MH_I2C_Read... [08:33:52]Read from MH i2c: E2 03 00 C8 56 00 90 00 92 [08:33:52]RAPDU: 90 00 [08:33:52]wFMCommunicate OK [08:33:52]SAM_PROTO_ClearQueue done [08:33:52]KKMCreateOFDPacket [08:33:52]OFDProtocolAddRootSTLVToBuf [08:33:52]FM_MakeSignedData [08:33:52]FM_MakeSignedData [08:33:52]SAM_PROTO_SignData [08:33:52]wFMCommunicate request_size=4 [08:33:52]MH_SAM_APDU [08:33:52]CAPDU: 80 0D 01 02 [08:33:52]Write to MH i2c: E2 08 00 C9 56 80 0D 01 02 00 00 00 00 98 [08:33:52]Write i2c OK [08:33:52]MH_I2C_Read... [08:33:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:33:52]Read from MH i2c: E2 [08:33:52]MH_I2C_Read... [08:33:52]Read from MH i2c: E2 03 00 [08:33:52]MH_I2C_Read... [08:33:52]Read from MH i2c: E2 03 00 C9 56 00 90 00 93 [08:33:52]RAPDU: 90 00 [08:33:52]wFMCommunicate OK [08:33:52]wFMCommunicate request_size=255 [08:33:52]MH_SAM_APDU [08:33:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 F2 B1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BA F9 03 00 35 04 06 00 D9 [08:33:52]Write to MH i2c: E2 02 01 CA 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 F2 B1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BA F9 03 00 35 04 06 00 D9 00 00 75 [08:33:52]Write i2c OK [08:33:52]MH_I2C_Read... [08:33:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:52]Read from MH i2c: E2 [08:33:52]MH_I2C_Read... [08:33:52]Read from MH i2c: E2 03 00 [08:33:52]MH_I2C_Read... [08:33:52]Read from MH i2c: E2 03 00 CA 56 00 90 00 94 [08:33:52]RAPDU: 90 00 [08:33:52]wFMCommunicate OK [08:33:52]wFMCommunicate request_size=10 [08:33:52]MH_SAM_APDU [08:33:52]CAPDU: 80 0D 02 02 05 FA A5 C2 96 2F [08:33:52]Write to MH i2c: E2 0D 00 CB 56 80 0D 02 02 05 00 FA A5 C2 96 2F 00 00 CB [08:33:52]Write i2c OK [08:33:52]MH_I2C_Read... [08:33:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:52]Read from MH i2c: E2 [08:33:52]MH_I2C_Read... [08:33:52]Read from MH i2c: E2 03 00 [08:33:52]MH_I2C_Read... [08:33:52]Read from MH i2c: E2 03 00 CB 56 00 90 00 95 [08:33:52]RAPDU: 90 00 [08:33:52]wFMCommunicate OK [08:33:52]wFMCommunicate request_size=4 [08:33:52]MH_SAM_APDU [08:33:52]CAPDU: 80 0D 03 02 [08:33:52]Write to MH i2c: E2 08 00 CC 56 80 0D 03 02 00 00 00 00 9D [08:33:52]Write i2c OK [08:33:52]MH_I2C_Read... [08:33:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:33:52]Read from MH i2c: E2 [08:33:52]MH_I2C_Read... [08:33:52]Read from MH i2c: E2 0B 00 [08:33:52]MH_I2C_Read... [08:33:52]Read from MH i2c: E2 0B 00 CC 56 00 A1 EF 56 74 C7 B0 C1 85 90 00 B5 [08:33:52]RAPDU: A1 EF 56 74 C7 B0 C1 85 90 00 [08:33:52]wFMCommunicate OK [08:33:52]SAM_PROTO_SignData done [08:33:52]FM_MakeSignedData done [08:33:52]CreateOFDProtocolMessage [08:33:52]wFMCommunicate request_size=4 [08:33:52]MH_SAM_APDU [08:33:52]CAPDU: 80 11 00 00 [08:33:52]Write to MH i2c: E2 08 00 CD 56 80 11 00 00 00 00 00 00 9D [08:33:52]Write i2c OK [08:33:52]MH_I2C_Read... [08:33:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:52]Read from MH i2c: E2 [08:33:52]MH_I2C_Read... [08:33:52]Read from MH i2c: E2 17 00 [08:33:52]MH_I2C_Read... [08:33:52]Read from MH i2c: E2 17 00 CD 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 EA [08:33:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:33:52]wFMCommunicate OK [08:33:52]CreateOFDProtocolMessage done [08:33:52]OFDSenderStorePacket 260538 [08:33:52]StoreOFDPacket docnum=260538 [08:33:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 DC FA 07 01 A9 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 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 F2 B1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BA F9 03 00 35 04 06 00 D9 FA A5 C2 96 2F A1 EF 56 74 C7 B0 C1 85 [08:33:52]CheckFolder [08:33:52]dirname=/storage/ofd_packets [08:33:52]CheckFolder done [08:33:52]ProducePacketName [08:33:52]name=ofd_packets/00260538 [08:33:52]NVStorageSaveData ofd_packets/00260538 [08:33:52]File name is /storage/ofd_packets/00260538 [08:33:52]Write 301 bytes [08:33:52]NVStorageSaveData done [08:33:52]OFDSenderStorePacket done [08:33:52]KKMCreateOFDPacket done [08:33:52]NVStorageSaveData kkm_last_timestamp [08:33:52]File name is /storage/kkm_last_timestamp [08:33:52]Write 4 bytes [08:33:52]NVStorageSaveData done [08:33:52]ExternCall_PrintAddStr [08:33:52]wPrintStart [08:33:52]Write to MH i2c: 01 00 00 CE 56 24 [08:33:52]Write i2c OK [08:33:52]MH_I2C_Read... [08:33:52]Read from MH i2c: 01 [08:33:52]MH_I2C_Read... [08:33:52]Read from MH i2c: 01 07 00 [08:33:52]MH_I2C_Read... [08:33:52]Read from MH i2c: 01 07 00 CE 56 00 00 00 00 00 FF 0F 39 [08:33:52]RasterBufferAndPrint [08:33:52]line Счет N : (1)1036084 [08:33:52]line ИНН: 02508201610067 [08:33:52]line Контрольно-Кассовый Чек [08:33:52]line ПРОДАЖА [08:33:52]line ТРК (МРК, ГНК) : 22 [08:33:52]line Товар: 2710124130 [08:33:52]line Аи-92-К-5 [08:33:52]line 5.900 * 67.80 [08:33:52]line = 400.02 [08:33:52]line НДС 12% НСП 1% [08:33:52]line > о реализуемом товаре [08:33:52]line ОКРУГЛЕНИЕ: -0.02 [08:33:52]line ИТОГО: 400.00 [08:33:52]line Внесено: 400.00 [08:33:52]line СДАЧА: 0.00 [08:33:52]line НСП 1% : 3.54 [08:33:52]line НДС 12% : 42.48 [08:33:52]line Наличными: 400.00 [08:33:52]line Безнал.: 0.00 [08:33:52]line Место: АЗС № 94 "Партнер Нефть" [08:33:52]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [08:33:52]line СНО: Общий режим [08:33:52]line Чек 96 18.08.2024 08:33 [08:33:52]line Смена: 449 ФФД: 1.0 [08:33:52]line ЗНМ: 0300000099 [08:33:52]line РНМ: 0000000000091865 [08:33:52]line Версия ККМ: 001 [08:33:52]line ФМ: 0000000000871820 [08:33:52]line ФД: 260538 [08:33:52]line ФПД: 239670546044463 [08:33:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T083354&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260538&fm=239670546044463&tin=02508201610067®Number=0000000000091865&sum=40000 [08:33:52]OFD Sender: Processing packet 260538 [packets to send 192, broken 191] [08:33:52]ProducePacketName [08:33:52]name=ofd_packets/00260538 [08:33:52]OFD Sender: To server: pG, [08:33:52]CommunicateWithHost lk.salyk.kg:30040 [08:33:52]ConnectInit lk.salyk.kg [08:33:52]written 0, free lines is 4095 [08:33:52]Connected sock=10 [08:33: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 30 0F 01 00 00 DC FA 07 01 A9 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 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 F2 B1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BA F9 03 00 35 04 06 00 D9 FA A5 C2 96 2F A1 EF 56 74 C7 B0 C1 85 [08:33: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 30 4F 00 00 00 9D E2 47 00 B5 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 30 10 04 04 00 BA F9 03 00 F4 03 04 00 48 5B C1 66 B6 04 01 00 00 14 96 CD F8 C1 9D 62 A8 [08:33:53]CommunicateWithHost err = 0 [08:33:53]CheckOFDResponse [08:33:53]1017 (14) - 77093643461234 [08:33:53]1041 (16) - 0000000000871820 [08:33:53]1040 (4) - 260538 [08:33:53]1012 (4) - 18.08.2024 02:24 [08:33:53]1206 (1) - 0 [08:33:53]OFD Sender: Remove packet 260538 [08:33:53]ProducePacketName [08:33:53]name=ofd_packets/00260538 [08:33:53]NVStorageDeleteData [08:33:53]Write to MH i2c: 01 00 00 F9 56 4F [08:33:53]Write i2c OK [08:33:53]MH_I2C_Read... [08:33:53]Read from MH i2c: 01 [08:33:53]MH_I2C_Read... [08:33:53]Read from MH i2c: 01 07 00 [08:33:53]MH_I2C_Read... [08:33:53]Read from MH i2c: 01 07 00 F9 56 00 00 00 00 00 6C 0C CE [08:33:53]RasterBufferAndPrint [08:33:53]line [08:33:53]line [08:33:53]line [08:33:53]line [08:33:53]line [08:33:53]written 0, free lines is 3183 [08:33:53]MH_Cut [08:33:53]Write to MH i2c: D1 01 00 00 57 01 29 [08:33:53]Write i2c OK [08:33:53]MH_I2C_Read... [08:33:53]Read from MH i2c: D1 [08:33:53]MH_I2C_Read... [08:33:53]Read from MH i2c: D1 01 00 [08:33:53]MH_I2C_Read... [08:33:53]Read from MH i2c: D1 01 00 00 57 00 28 [08:33:53]Write to MH i2c: 01 00 00 01 57 58 [08:33:53]Write i2c OK [08:33:53]MH_I2C_Read... [08:33:53]OFD Sender: No OFD packet to send [08:33:54]*** Cut start [08:33:54]*** Purtial cut [08:33:54]*** Stage 1: CUTSNS_PIN = 1 [08:33:56]Read from MH i2c: 01 [08:33:56]MH_I2C_Read... [08:33:56]*** Stop cut motor [08:33:56]*** Cut end [08:33:56]Read from MH i2c: 01 07 00 [08:33:56]MH_I2C_Read... [08:33:56]Read from MH i2c: 01 07 00 01 57 00 00 00 00 00 FF 0F 6D [08:33:56]process_action close_receipt done [08:33:56]requested_data is exist [08:33:56]produce_requested_data [08:33:56]requested_item fm.sn is exist - process it [08:33:56]wFMCommunicate request_size=4 [08:33:56]MH_SAM_APDU [08:33:56]CAPDU: 80 11 00 00 [08:33:56]Write to MH i2c: E2 08 00 02 57 80 11 00 00 00 00 00 00 D3 [08:33:56]Write i2c OK [08:33:56]MH_I2C_Read... [08:33:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:56]Read from MH i2c: E2 [08:33:56]MH_I2C_Read... [08:33:56]Read from MH i2c: E2 17 00 [08:33:56]MH_I2C_Read... [08:33:56]Read from MH i2c: E2 17 00 02 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 20 [08:33:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:33:56]wFMCommunicate OK [08:33:56]requested_item fd.num is exist - process it [08:33:56]SAM_PROTO_GetFieldsCounters [08:33:56]wFMCommunicate request_size=4 [08:33:56]MH_SAM_APDU [08:33:56]CAPDU: 80 13 00 00 [08:33:56]Write to MH i2c: E2 08 00 03 57 80 13 00 00 00 00 00 00 D6 [08:33:56]Write i2c OK [08:33:56]MH_I2C_Read... [08:33:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:33:56]Read from MH i2c: E2 [08:33:56]MH_I2C_Read... [08:33:56]Read from MH i2c: E2 62 00 [08:33:56]MH_I2C_Read... [08:33:56]Read from MH i2c: E2 62 00 03 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 BA F9 03 00 0E 04 04 00 C1 01 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 8D [08: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 BA F9 03 00 0E 04 04 00 C1 01 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 [08:33:56]wFMCommunicate OK [08:33:56]SAM_PROTO_GetFieldsCounters done [08:33:56]requested_item shift.num is exist - process it [08:33:56]requested_item shift.opened is exist - process it [08:33:56]req_shift_opened [08:33:56]FM_GetShiftState [08:33:56]SAM_PROTO_GetShiftState [08:33:56]wFMCommunicate request_size=4 [08:33:56]MH_SAM_APDU [08:33:56]CAPDU: 80 13 01 00 [08:33:56]Write to MH i2c: E2 08 00 04 57 80 13 01 00 00 00 00 00 D8 [08:33:56]Write i2c OK [08:33:56]MH_I2C_Read... [08:33:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:56]Read from MH i2c: E2 [08:33:56]MH_I2C_Read... [08:33:56]Read from MH i2c: E2 0E 00 [08:33:56]MH_I2C_Read... [08:33:56]Read from MH i2c: E2 0E 00 04 57 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 15 [08:33:56]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:33:56]wFMCommunicate OK [08:33:56]SAM_PROTO_GetShiftState done [08:33:56]FM_GetShiftState done [08:33:56]req_shift_opened done [08:33:56]requested_item shift.open_date is exist - process it [08:33:56]req_shift_open_date [08:33:56]req_shift_open_date done [08:33:56]produce_requested_data done [08:33:56]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260538,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [08:33:56]process_action_free close_receipt [08:33:56]json_value_free [08:33:56]json_value_free done [08:33:56]process_json_proto returns [08:33:56]Send response to host [08:33:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260538,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [08:33:56]free response buf [08:33:56]execute_script done [08:33:56]execute_script returns [08:33:56]free content buf [08:33:56]Sock 9.Close socket [08:33:56]Sock 9.Thread stoped [08:33:57]accept exits with 7 [08:33:57]New connection [08:33:57]New thread 3066617188 created [08:33:57]Thread 3066473828 joined [08:33:57]Waiting for new connection... [08:33:57] Sock 7.Parse request [08:33:57]Sock 7.Check first char [08:33:57]Sock 7.First char is OK [08:33:57]request: POST /json_proto HTTP/1.0 [08:33:57]Method: POST [08:33:57]URL: /json_proto [08:33:57]Method is POST - this is cgi request [08:33:57]url: /json_proto [08:33:57]query_string will be loaded in cgi processing [08:33:57]execute_cgi json_proto POST (null) [08:33:57]execute_cgi path=json_proto method=POST [08:33:57]POST find Content-Length [08:33:57]Host: 172.17.55.133:8080 [08:33:57]Content-Length: 679 [08:33:57]Content-Type: application/json [08:33:57] [08:33:57]POST finish read [08:33:57]Found Content-Length = 679 [08:33:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:57]execute_script... [08:33: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)1036083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:57]POST & json_proto [08:33:57]process_json_proto [08:33:57]json parsed OK: [08:33:57]protocol is kg_v1.0 [08:33:57]action value=close_receipt [08:33:57]process_action close_receipt [08:33:57]cmd_close_receipt [08:33:57]MH_GetDate [08:33:57]Write to MH i2c: F0 00 00 05 57 4B [08:33:57]Write i2c OK [08:33:57]MH_I2C_Read... [08:33:57]Read from MH i2c: F0 [08:33:57]MH_I2C_Read... [08:33:57]Read from MH i2c: F0 09 00 [08:33:57]MH_I2C_Read... [08:33:57]Read from MH i2c: F0 09 00 05 57 00 F8 B1 C1 66 34 48 D8 65 DD [08:33:57]GetLastDocTimeStamp 1723970034 [08:33:57]current date 1723970040 [08:33:57]FM_GetShiftState [08:33:57]SAM_PROTO_GetShiftState [08:33:57]wFMCommunicate request_size=4 [08:33:57]MH_SAM_APDU [08:33:57]CAPDU: 80 13 01 00 [08:33:57]Write to MH i2c: E2 08 00 06 57 80 13 01 00 00 00 00 00 DA [08:33:57]Write i2c OK [08:33:57]MH_I2C_Read... [08:33:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:57]Read from MH i2c: E2 [08:33:57]MH_I2C_Read... [08:33:57]Read from MH i2c: E2 0E 00 [08:33:57]MH_I2C_Read... [08:33:57]Read from MH i2c: E2 0E 00 06 57 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 17 [08:33:57]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:33:57]wFMCommunicate OK [08:33:57]SAM_PROTO_GetShiftState done [08:33:57]FM_GetShiftState done [08:33:57]opened in 1723940556 [08:33:57]opened+sec_in_day 1724026956 [08:33:57]quantity*price = 70037 [08:33:57]sum+1 = 70038 [08:33:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 97 18.08.2024 08:34 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260539 ФПД: 22228101846856 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T083400&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260539&fm=22228101846856&tin=02508201610067®Number=0000000000091865&sum=70000 [08:33:58]StoreToDocumentArchive [08:33:58]shift 449 fd 260539 [08:33:58]save to /storage/0449/doc_00260539 [08:33:58]save last doc name /storage/0449/doc_00260539 to /storage/kkm_last_doc_name [08:33:58]save OK [08:33:58]Clear old archive folders... [08:33:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:33:58]tlvbuf is 00346FB0 [08:33:58]SAM_PROTO_ClearQueue [08:33:58]wFMCommunicate request_size=4 [08:33:58]MH_SAM_APDU [08:33:58]CAPDU: 80 09 00 00 [08:33:58]Write to MH i2c: E2 08 00 13 57 80 09 00 00 00 00 00 00 DC [08:33:58]Write i2c OK [08:33:58]MH_I2C_Read... [08:33:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:33:58]Read from MH i2c: E2 [08:33:58]MH_I2C_Read... [08:33:58]Read from MH i2c: E2 03 00 [08:33:58]MH_I2C_Read... [08:33:58]Read from MH i2c: E2 03 00 13 57 00 90 00 DE [08:33:58]RAPDU: 90 00 [08:33:58]wFMCommunicate OK [08:33:58]SAM_PROTO_ClearQueue done [08:33:58]KKMCreateOFDPacket [08:33:58]OFDProtocolAddRootSTLVToBuf [08:33:58]FM_MakeSignedData [08:33:58]FM_MakeSignedData [08:33:58]SAM_PROTO_SignData [08:33:58]wFMCommunicate request_size=4 [08:33:58]MH_SAM_APDU [08:33:58]CAPDU: 80 0D 01 02 [08:33:58]Write to MH i2c: E2 08 00 14 57 80 0D 01 02 00 00 00 00 E4 [08:33:58]Write i2c OK [08:33:58]MH_I2C_Read... [08:33:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:33:58]Read from MH i2c: E2 [08:33:58]MH_I2C_Read... [08:33:58]Read from MH i2c: E2 03 00 [08:33:58]MH_I2C_Read... [08:33:58]Read from MH i2c: E2 03 00 14 57 00 90 00 DF [08:33:58]RAPDU: 90 00 [08:33:58]wFMCommunicate OK [08:33:58]wFMCommunicate request_size=255 [08:33:58]MH_SAM_APDU [08:33:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 61 00 00 00 F4 03 04 00 F8 B1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BB F9 03 00 35 04 06 00 14 [08:33:58]Write to MH i2c: E2 02 01 15 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 61 00 00 00 F4 03 04 00 F8 B1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BB F9 03 00 35 04 06 00 14 00 00 06 [08:33:58]Write i2c OK [08:33:58]MH_I2C_Read... [08:33:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:58]Read from MH i2c: E2 [08:33:58]MH_I2C_Read... [08:33:58]OFD Sender: No OFD packet to send [08:33:58]Read from MH i2c: E2 03 00 [08:33:58]MH_I2C_Read... [08:33:58]Read from MH i2c: E2 03 00 15 57 00 90 00 E0 [08:33:58]RAPDU: 90 00 [08:33:58]wFMCommunicate OK [08:33:58]wFMCommunicate request_size=10 [08:33:58]MH_SAM_APDU [08:33:58]CAPDU: 80 0D 02 02 05 37 62 1D 57 48 [08:33:58]Write to MH i2c: E2 0D 00 16 57 80 0D 02 02 05 00 37 62 1D 57 48 00 00 46 [08:33:58]Write i2c OK [08:33:58]MH_I2C_Read... [08:33:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:58]Read from MH i2c: E2 [08:33:58]MH_I2C_Read... [08:33:58]Read from MH i2c: E2 03 00 [08:33:58]MH_I2C_Read... [08:33:58]Read from MH i2c: E2 03 00 16 57 00 90 00 E1 [08:33:58]RAPDU: 90 00 [08:33:58]wFMCommunicate OK [08:33:58]wFMCommunicate request_size=4 [08:33:58]MH_SAM_APDU [08:33:58]CAPDU: 80 0D 03 02 [08:33:58]Write to MH i2c: E2 08 00 17 57 80 0D 03 02 00 00 00 00 E9 [08:33:58]Write i2c OK [08:33:58]MH_I2C_Read... [08:33:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:33:59]Read from MH i2c: E2 [08:33:59]MH_I2C_Read... [08:33:59]Read from MH i2c: E2 0B 00 [08:33:59]MH_I2C_Read... [08:33:59]Read from MH i2c: E2 0B 00 17 57 00 42 B1 05 93 CA 92 9F 37 90 00 A7 [08:33:59]RAPDU: 42 B1 05 93 CA 92 9F 37 90 00 [08:33:59]wFMCommunicate OK [08:33:59]SAM_PROTO_SignData done [08:33:59]FM_MakeSignedData done [08:33:59]CreateOFDProtocolMessage [08:33:59]wFMCommunicate request_size=4 [08:33:59]MH_SAM_APDU [08:33:59]CAPDU: 80 11 00 00 [08:33:59]Write to MH i2c: E2 08 00 18 57 80 11 00 00 00 00 00 00 E9 [08:33:59]Write i2c OK [08:33:59]MH_I2C_Read... [08:33:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:59]Read from MH i2c: E2 [08:33:59]MH_I2C_Read... [08:33:59]Read from MH i2c: E2 17 00 [08:33:59]MH_I2C_Read... [08:33:59]Read from MH i2c: E2 17 00 18 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 36 [08:33:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:33:59]wFMCommunicate OK [08:33:59]CreateOFDProtocolMessage done [08:33:59]OFDSenderStorePacket 260539 [08:33:59]StoreOFDPacket docnum=260539 [08:33:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 47 F4 07 01 62 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 61 00 00 00 F4 03 04 00 F8 B1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BB F9 03 00 35 04 06 00 14 37 62 1D 57 48 42 B1 05 93 CA 92 9F 37 [08:33:59]CheckFolder [08:33:59]dirname=/storage/ofd_packets [08:33:59]CheckFolder done [08:33:59]ProducePacketName [08:33:59]name=ofd_packets/00260539 [08:33:59]NVStorageSaveData ofd_packets/00260539 [08:33:59]File name is /storage/ofd_packets/00260539 [08:33:59]Write 301 bytes [08:33:59]NVStorageSaveData done [08:33:59]OFDSenderStorePacket done [08:33:59]KKMCreateOFDPacket done [08:33:59]NVStorageSaveData kkm_last_timestamp [08:33:59]File name is /storage/kkm_last_timestamp [08:33:59]Write 4 bytes [08:33:59]NVStorageSaveData done [08:33:59]ExternCall_PrintAddStr [08:33:59]wPrintStart [08:33:59]Write to MH i2c: 01 00 00 19 57 70 [08:33:59]Write i2c OK [08:33:59]MH_I2C_Read... [08:33:59]Read from MH i2c: 01 [08:33:59]MH_I2C_Read... [08:33:59]Read from MH i2c: 01 07 00 [08:33:59]MH_I2C_Read... [08:33:59]Read from MH i2c: 01 07 00 19 57 00 00 00 00 00 FF 0F 85 [08:33:59]RasterBufferAndPrint [08:33:59]line Счет N : (1)1036083 [08:33:59]line ИНН: 02508201610067 [08:33:59]line Контрольно-Кассовый Чек [08:33:59]line ПРОДАЖА [08:33:59]line ТРК (МРК, ГНК) : 42 [08:33:59]line Товар: 2710124130 [08:33:59]line Аи-92-К-5 [08:33:59]line 10.330 * 67.80 [08:33:59]line = 700.37 [08:33:59]line НДС 12% НСП 1% [08:33:59]line > о реализуемом товаре [08:33:59]line ОКРУГЛЕНИЕ: -0.37 [08:33:59]line ИТОГО: 700.00 [08:33:59]line Внесено: 700.00 [08:33:59]line СДАЧА: 0.00 [08:33:59]line НСП 1% : 6.20 [08:33:59]line НДС 12% : 74.38 [08:33:59]line Наличными: 700.00 [08:33:59]line Безнал.: 0.00 [08:33:59]line Место: АЗС № 94 "Партнер Нефть" [08:33:59]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [08:33:59]line СНО: Общий режим [08:33:59]line Чек 97 18.08.2024 08:34 [08:33:59]line Смена: 449 ФФД: 1.0 [08:33:59]line ЗНМ: 0300000099 [08:33:59]line РНМ: 0000000000091865 [08:33:59]line Версия ККМ: 001 [08:33:59]line ФМ: 0000000000871820 [08:33:59]line ФД: 260539 [08:33:59]line ФПД: 22228101846856 [08:33:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T083400&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260539&fm=22228101846856&tin=02508201610067®Number=0000000000091865&sum=70000 [08:33:59]written 0, free lines is 4095 [08:33:59]OFD Sender: Processing packet 260539 [packets to send 192, broken 191] [08:33:59]ProducePacketName [08:33:59]name=ofd_packets/00260539 [08:33:59]OFD Sender: To server: pG, [08:33:59]CommunicateWithHost lk.salyk.kg:30040 [08:33:59]ConnectInit lk.salyk.kg [08:33:59]Connected sock=10 [08:33: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 30 0F 01 00 00 47 F4 07 01 62 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 61 00 00 00 F4 03 04 00 F8 B1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BB F9 03 00 35 04 06 00 14 37 62 1D 57 48 42 B1 05 93 CA 92 9F 37 [08:33: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 30 4F 00 00 00 24 43 47 00 84 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 30 10 04 04 00 BB F9 03 00 F4 03 04 00 4E 5B C1 66 B6 04 01 00 00 56 4C 98 7B AE DF DC 3A [08:33:59]CommunicateWithHost err = 0 [08:33:59]CheckOFDResponse [08:33:59]1017 (14) - 77093643461234 [08:33:59]1041 (16) - 0000000000871820 [08:33:59]1040 (4) - 260539 [08:33:59]1012 (4) - 18.08.2024 02:24 [08:33:59]1206 (1) - 0 [08:33:59]OFD Sender: Remove packet 260539 [08:33:59]ProducePacketName [08:33:59]name=ofd_packets/00260539 [08:33:59]NVStorageDeleteData [08:33:59]Write to MH i2c: 01 00 00 44 57 9B [08:33:59]Write i2c OK [08:33:59]MH_I2C_Read... [08:33:59]Read from MH i2c: 01 [08:33:59]MH_I2C_Read... [08:33:59]Read from MH i2c: 01 07 00 [08:33:59]MH_I2C_Read... [08:33:59]Read from MH i2c: 01 07 00 44 57 00 00 00 00 00 6B 0C 19 [08:33:59]RasterBufferAndPrint [08:33:59]line [08:33:59]line [08:33:59]line [08:33:59]line [08:33:59]line [08:33:59]written 0, free lines is 3185 [08:33:59]MH_Cut [08:33:59]Write to MH i2c: D1 01 00 4B 57 01 74 [08:33:59]Write i2c OK [08:33:59]MH_I2C_Read... [08:33:59]Read from MH i2c: D1 [08:33:59]MH_I2C_Read... [08:33:59]Read from MH i2c: D1 01 00 [08:33:59]MH_I2C_Read... [08:33:59]Read from MH i2c: D1 01 00 4B 57 00 73 [08:33:59]Write to MH i2c: 01 00 00 4C 57 A3 [08:33:59]Write i2c OK [08:33:59]MH_I2C_Read... [08:34:00]OFD Sender: No OFD packet to send [08:34:00]*** Cut start [08:34:00]*** Purtial cut [08:34:00]*** Stage 1: CUTSNS_PIN = 1 [08:34:03]Read from MH i2c: 01 [08:34:03]MH_I2C_Read... [08:34:03]*** Stop cut motor [08:34:03]*** Cut end [08:34:03]Read from MH i2c: 01 07 00 [08:34:03]MH_I2C_Read... [08:34:03]Read from MH i2c: 01 07 00 4C 57 00 00 00 00 00 FF 0F B8 [08:34:03]process_action close_receipt done [08:34:03]requested_data is exist [08:34:03]produce_requested_data [08:34:03]requested_item fm.sn is exist - process it [08:34:03]wFMCommunicate request_size=4 [08:34:03]MH_SAM_APDU [08:34:03]CAPDU: 80 11 00 00 [08:34:03]Write to MH i2c: E2 08 00 4D 57 80 11 00 00 00 00 00 00 1E [08:34:03]Write i2c OK [08:34:03]MH_I2C_Read... [08:34:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:03]Read from MH i2c: E2 [08:34:03]MH_I2C_Read... [08:34:03]Read from MH i2c: E2 17 00 [08:34:03]MH_I2C_Read... [08:34:03]Read from MH i2c: E2 17 00 4D 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 6B [08:34:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:34:03]wFMCommunicate OK [08:34:03]requested_item fd.num is exist - process it [08:34:03]SAM_PROTO_GetFieldsCounters [08:34:03]wFMCommunicate request_size=4 [08:34:03]MH_SAM_APDU [08:34:03]CAPDU: 80 13 00 00 [08:34:03]Write to MH i2c: E2 08 00 4E 57 80 13 00 00 00 00 00 00 21 [08:34:03]Write i2c OK [08:34:03]MH_I2C_Read... [08:34:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:03]Read from MH i2c: E2 [08:34:03]MH_I2C_Read... [08:34:03]Read from MH i2c: E2 62 00 [08:34:03]MH_I2C_Read... [08:34:03]Read from MH i2c: E2 62 00 4E 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 BB F9 03 00 0E 04 04 00 C1 01 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 DC [08:34: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 BB F9 03 00 0E 04 04 00 C1 01 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 [08:34:03]wFMCommunicate OK [08:34:03]SAM_PROTO_GetFieldsCounters done [08:34:03]requested_item shift.num is exist - process it [08:34:03]requested_item shift.opened is exist - process it [08:34:03]req_shift_opened [08:34:03]FM_GetShiftState [08:34:03]SAM_PROTO_GetShiftState [08:34:03]wFMCommunicate request_size=4 [08:34:03]MH_SAM_APDU [08:34:03]CAPDU: 80 13 01 00 [08:34:03]Write to MH i2c: E2 08 00 4F 57 80 13 01 00 00 00 00 00 23 [08:34:03]Write i2c OK [08:34:03]MH_I2C_Read... [08:34:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:03]Read from MH i2c: E2 [08:34:03]MH_I2C_Read... [08:34:03]Read from MH i2c: E2 0E 00 [08:34:03]MH_I2C_Read... [08:34:03]Read from MH i2c: E2 0E 00 4F 57 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 60 [08:34:03]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:34:03]wFMCommunicate OK [08:34:03]SAM_PROTO_GetShiftState done [08:34:03]FM_GetShiftState done [08:34:03]req_shift_opened done [08:34:03]requested_item shift.open_date is exist - process it [08:34:03]req_shift_open_date [08:34:03]req_shift_open_date done [08:34:03]produce_requested_data done [08:34:03]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260539,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [08:34:03]process_action_free close_receipt [08:34:03]json_value_free [08:34:03]json_value_free done [08:34:03]process_json_proto returns [08:34:03]Send response to host [08:34:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260539,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [08:34:03]free response buf [08:34:03]execute_script done [08:34:03]execute_script returns [08:34:03]free content buf [08:34:03]Sock 7.Close socket [08:34:03]Sock 7.Thread stoped [08:34:03]accept exits with 9 [08:34:03]New connection [08:34:03]New thread 3066473828 created [08:34:03]Thread 3066617188 joined [08:34:03]Waiting for new connection... [08:34:03] Sock 9.Parse request [08:34:03]Sock 9.Check first char [08:34:03]Sock 9.First char is OK [08:34:03]request: POST /json_proto HTTP/1.0 [08:34:03]Method: POST [08:34:03]URL: /json_proto [08:34:03]Method is POST - this is cgi request [08:34:03]url: /json_proto [08:34:03]query_string will be loaded in cgi processing [08:34:03]execute_cgi json_proto POST (null) [08:34:03]execute_cgi path=json_proto method=POST [08:34:03]POST find Content-Length [08:34:03]Host: 172.17.55.133:8080 [08:34:03]Content-Length: 809 [08:34:03]Content-Type: application/json [08:34:03] [08:34:03]POST finish read [08:34:03]Found Content-Length = 809 [08:34:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:03]execute_script... [08:34: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)1036082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:03]POST & json_proto [08:34:03]process_json_proto [08:34:03]json parsed OK: [08:34:03]protocol is kg_v1.0 [08:34:03]action value=close_receipt [08:34:03]process_action close_receipt [08:34:03]cmd_close_receipt [08:34:03]MH_GetDate [08:34:03]Write to MH i2c: F0 00 00 50 57 96 [08:34:03]Write i2c OK [08:34:03]MH_I2C_Read... [08:34:03]Read from MH i2c: F0 [08:34:03]MH_I2C_Read... [08:34:03]Read from MH i2c: F0 09 00 [08:34:03]MH_I2C_Read... [08:34:03]Read from MH i2c: F0 09 00 50 57 00 FF B1 C1 66 34 48 D8 65 2F [08:34:03]GetLastDocTimeStamp 1723970040 [08:34:03]current date 1723970047 [08:34:03]FM_GetShiftState [08:34:03]SAM_PROTO_GetShiftState [08:34:03]wFMCommunicate request_size=4 [08:34:03]MH_SAM_APDU [08:34:03]CAPDU: 80 13 01 00 [08:34:03]Write to MH i2c: E2 08 00 51 57 80 13 01 00 00 00 00 00 25 [08:34:03]Write i2c OK [08:34:03]MH_I2C_Read... [08:34:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:03]Read from MH i2c: E2 [08:34:03]MH_I2C_Read... [08:34:03]Read from MH i2c: E2 0E 00 [08:34:03]MH_I2C_Read... [08:34:03]Read from MH i2c: E2 0E 00 51 57 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 62 [08:34:03]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:34:03]wFMCommunicate OK [08:34:03]SAM_PROTO_GetShiftState done [08:34:03]FM_GetShiftState done [08:34:03]opened in 1723940556 [08:34:03]opened+sec_in_day 1724026956 [08:34:03]quantity*price = 200025 [08:34:03]sum+1 = 200026 [08:34:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 98 18.08.2024 08:34 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260540 ФПД: 43634830207774 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T083407&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260540&fm=43634830207774&tin=02508201610067®Number=0000000000091865&sum=200025 [08:34:04]StoreToDocumentArchive [08:34:04]shift 449 fd 260540 [08:34:04]save to /storage/0449/doc_00260540 [08:34:04]save last doc name /storage/0449/doc_00260540 to /storage/kkm_last_doc_name [08:34:04]save OK [08:34:04]Clear old archive folders... [08:34:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:34:04]tlvbuf is 00346D40 [08:34:04]SAM_PROTO_ClearQueue [08:34:04]wFMCommunicate request_size=4 [08:34:04]MH_SAM_APDU [08:34:04]CAPDU: 80 09 00 00 [08:34:04]Write to MH i2c: E2 08 00 5E 57 80 09 00 00 00 00 00 00 27 [08:34:04]Write i2c OK [08:34:04]MH_I2C_Read... [08:34:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:34:05]Read from MH i2c: E2 [08:34:05]MH_I2C_Read... [08:34:05]Read from MH i2c: E2 03 00 [08:34:05]MH_I2C_Read... [08:34:05]Read from MH i2c: E2 03 00 5E 57 00 90 00 29 [08:34:05]RAPDU: 90 00 [08:34:05]wFMCommunicate OK [08:34:05]SAM_PROTO_ClearQueue done [08:34:05]KKMCreateOFDPacket [08:34:05]OFDProtocolAddRootSTLVToBuf [08:34:05]FM_MakeSignedData [08:34:05]FM_MakeSignedData [08:34:05]SAM_PROTO_SignData [08:34:05]wFMCommunicate request_size=4 [08:34:05]MH_SAM_APDU [08:34:05]CAPDU: 80 0D 01 02 [08:34:05]Write to MH i2c: E2 08 00 5F 57 80 0D 01 02 00 00 00 00 2F [08:34:05]Write i2c OK [08:34:05]MH_I2C_Read... [08:34:05]OFD Sender: No OFD packet to send [08:34:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:34:05]Read from MH i2c: E2 [08:34:05]MH_I2C_Read... [08:34:05]Read from MH i2c: E2 03 00 [08:34:05]MH_I2C_Read... [08:34:05]Read from MH i2c: E2 03 00 5F 57 00 90 00 2A [08:34:05]RAPDU: 90 00 [08:34:05]wFMCommunicate OK [08:34:05]wFMCommunicate request_size=255 [08:34:05]MH_SAM_APDU [08:34:05]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 FF B1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BC F9 03 00 35 04 06 00 [08:34:05]Write to MH i2c: E2 02 01 60 57 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 FF B1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BC F9 03 00 35 04 06 00 00 00 6C [08:34:05]Write i2c OK [08:34:05]MH_I2C_Read... [08:34:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:05]Read from MH i2c: E2 [08:34:05]MH_I2C_Read... [08:34:05]Read from MH i2c: E2 03 00 [08:34:05]MH_I2C_Read... [08:34:05]Read from MH i2c: E2 03 00 60 57 00 90 00 2B [08:34:05]RAPDU: 90 00 [08:34:05]wFMCommunicate OK [08:34:05]wFMCommunicate request_size=11 [08:34:05]MH_SAM_APDU [08:34:05]CAPDU: 80 0D 02 02 06 27 AF 86 8D EB 1E [08:34:05]Write to MH i2c: E2 0E 00 61 57 80 0D 02 02 06 00 27 AF 86 8D EB 1E 00 00 30 [08:34:05]Write i2c OK [08:34:05]MH_I2C_Read... [08:34:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:05]Read from MH i2c: E2 [08:34:05]MH_I2C_Read... [08:34:05]Read from MH i2c: E2 03 00 [08:34:05]MH_I2C_Read... [08:34:05]Read from MH i2c: E2 03 00 61 57 00 90 00 2C [08:34:05]RAPDU: 90 00 [08:34:05]wFMCommunicate OK [08:34:05]wFMCommunicate request_size=4 [08:34:05]MH_SAM_APDU [08:34:05]CAPDU: 80 0D 03 02 [08:34:05]Write to MH i2c: E2 08 00 62 57 80 0D 03 02 00 00 00 00 34 [08:34:05]Write i2c OK [08:34:05]MH_I2C_Read... [08:34:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:34:05]Read from MH i2c: E2 [08:34:05]MH_I2C_Read... [08:34:05]Read from MH i2c: E2 0B 00 [08:34:05]MH_I2C_Read... [08:34:05]Read from MH i2c: E2 0B 00 62 57 00 0D 05 E0 36 48 CB A0 44 90 00 54 [08:34:05]RAPDU: 0D 05 E0 36 48 CB A0 44 90 00 [08:34:05]wFMCommunicate OK [08:34:05]SAM_PROTO_SignData done [08:34:05]FM_MakeSignedData done [08:34:05]CreateOFDProtocolMessage [08:34:05]wFMCommunicate request_size=4 [08:34:05]MH_SAM_APDU [08:34:05]CAPDU: 80 11 00 00 [08:34:05]Write to MH i2c: E2 08 00 63 57 80 11 00 00 00 00 00 00 34 [08:34:05]Write i2c OK [08:34:05]MH_I2C_Read... [08:34:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:05]Read from MH i2c: E2 [08:34:05]MH_I2C_Read... [08:34:05]Read from MH i2c: E2 17 00 [08:34:05]MH_I2C_Read... [08:34:05]Read from MH i2c: E2 17 00 63 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 81 [08:34:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:34:05]wFMCommunicate OK [08:34:05]CreateOFDProtocolMessage done [08:34:05]OFDSenderStorePacket 260540 [08:34:05]StoreOFDPacket docnum=260540 [08:34:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 4C C8 08 01 0B 24 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 FF B1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BC F9 03 00 35 04 06 00 27 AF 86 8D EB 1E 0D 05 E0 36 48 CB A0 44 [08:34:05]CheckFolder [08:34:05]dirname=/storage/ofd_packets [08:34:05]CheckFolder done [08:34:05]ProducePacketName [08:34:05]name=ofd_packets/00260540 [08:34:05]NVStorageSaveData ofd_packets/00260540 [08:34:05]File name is /storage/ofd_packets/00260540 [08:34:05]Write 302 bytes [08:34:05]NVStorageSaveData done [08:34:05]OFDSenderStorePacket done [08:34:05]KKMCreateOFDPacket done [08:34:05]NVStorageSaveData kkm_last_timestamp [08:34:05]File name is /storage/kkm_last_timestamp [08:34:05]Write 4 bytes [08:34:05]NVStorageSaveData done [08:34:05]ExternCall_PrintAddStr [08:34:05]wPrintStart [08:34:05]Write to MH i2c: 01 00 00 64 57 BB [08:34:05]Write i2c OK [08:34:05]MH_I2C_Read... [08:34:05]Read from MH i2c: 01 [08:34:05]MH_I2C_Read... [08:34:05]Read from MH i2c: 01 07 00 [08:34:05]MH_I2C_Read... [08:34:05]Read from MH i2c: 01 07 00 64 57 00 00 00 00 00 FF 0F D0 [08:34:05]RasterBufferAndPrint [08:34:05]line Счет N : (1)1036082 [08:34:05]line ИНН: 02508201610067 [08:34:05]line Контрольно-Кассовый Чек [08:34:05]line ПРОДАЖА [08:34:05]line ТРК (МРК, ГНК) : 33 [08:34:05]line Товар: 2710194210 [08:34:05]line ДТ(л)-К-4 [08:34:05]line 26.250 * 76.20 [08:34:05]line = 2000.25 [08:34:05]line НДС 12% НСП 1% [08:34:05]line > о реализуемом товаре [08:34:05]line ИТОГО: 2000.25 [08:34:05]line НСП 1% : 17.70 [08:34:05]line НДС 12% : 212.42 [08:34:05]line Наличными: 0.00 [08:34:05]line Безнал.: 2000.25 [08:34:05]line Место: АЗС № 94 "Партнер Нефть" [08:34:05]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [08:34:05]line СНО: Общий режим [08:34:05]line Чек 98 18.08.2024 08:34 [08:34:05]line Смена: 449 ФФД: 1.0 [08:34:05]line ЗНМ: 0300000099 [08:34:05]line РНМ: 0000000000091865 [08:34:05]line Версия ККМ: 001 [08:34:05]line Платежная система: O! деньги [08:34:05]line ФМ: 0000000000871820 [08:34:05]line ФД: 260540 [08:34:05]line ФПД: 43634830207774 [08:34:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T083407&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260540&fm=43634830207774&tin=02508201610067®Number=0000000000091865&sum=200025 [08:34:05]OFD Sender: Processing packet 260540 [packets to send 192, broken 191] [08:34:05]ProducePacketName [08:34:05]name=ofd_packets/00260540 [08:34:05]OFD Sender: To server: pG, [08:34:05]CommunicateWithHost lk.salyk.kg:30040 [08:34:05]ConnectInit lk.salyk.kg [08:34:05]written 0, free lines is 4095 [08:34:06]Connected sock=10 [08:34: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 30 10 01 00 00 4C C8 08 01 0B 24 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 FF B1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BC F9 03 00 35 04 06 00 27 AF 86 8D EB 1E 0D 05 E0 36 48 CB A0 44 [08:34: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 30 4F 00 00 00 5E 6C 47 00 B0 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BC F9 03 00 F4 03 04 00 55 5B C1 66 B6 04 01 00 00 99 34 13 9A F1 73 4D EB [08:34:06]CommunicateWithHost err = 0 [08:34:06]CheckOFDResponse [08:34:06]1017 (14) - 77093643461234 [08:34:06]1041 (16) - 0000000000871820 [08:34:06]1040 (4) - 260540 [08:34:06]1012 (4) - 18.08.2024 02:24 [08:34:06]1206 (1) - 0 [08:34:06]OFD Sender: Remove packet 260540 [08:34:06]ProducePacketName [08:34:06]name=ofd_packets/00260540 [08:34:06]NVStorageDeleteData [08:34:06]Write to MH i2c: 01 00 00 8E 57 E5 [08:34:06]Write i2c OK [08:34:06]MH_I2C_Read... [08:34:06]Read from MH i2c: 01 [08:34:06]MH_I2C_Read... [08:34:06]Read from MH i2c: 01 07 00 [08:34:06]MH_I2C_Read... [08:34:06]Read from MH i2c: 01 07 00 8E 57 00 00 00 00 00 88 0C 80 [08:34:06]RasterBufferAndPrint [08:34:06]line [08:34:06]line [08:34:06]line [08:34:06]line [08:34:06]line [08:34:06]written 0, free lines is 3217 [08:34:06]MH_Cut [08:34:06]Write to MH i2c: D1 01 00 95 57 01 BE [08:34:06]Write i2c OK [08:34:06]MH_I2C_Read... [08:34:06]Read from MH i2c: D1 [08:34:06]MH_I2C_Read... [08:34:06]Read from MH i2c: D1 01 00 [08:34:06]MH_I2C_Read... [08:34:06]Read from MH i2c: D1 01 00 95 57 00 BD [08:34:06]Write to MH i2c: 01 00 00 96 57 ED [08:34:06]Write i2c OK [08:34:06]MH_I2C_Read... [08:34:06]OFD Sender: No OFD packet to send [08:34:07]*** Cut start [08:34:07]*** Purtial cut [08:34:07]*** Stage 1: CUTSNS_PIN = 1 [08:34:09]Read from MH i2c: 01 [08:34:09]MH_I2C_Read... [08:34:09]*** Stop cut motor [08:34:09]*** Cut end [08:34:09]Read from MH i2c: 01 07 00 [08:34:09]MH_I2C_Read... [08:34:09]Read from MH i2c: 01 07 00 96 57 00 00 00 00 00 FF 0F 02 [08:34:09]process_action close_receipt done [08:34:09]requested_data is exist [08:34:09]produce_requested_data [08:34:09]requested_item fm.sn is exist - process it [08:34:09]wFMCommunicate request_size=4 [08:34:09]MH_SAM_APDU [08:34:09]CAPDU: 80 11 00 00 [08:34:09]Write to MH i2c: E2 08 00 97 57 80 11 00 00 00 00 00 00 68 [08:34:09]Write i2c OK [08:34:09]MH_I2C_Read... [08:34:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:09]Read from MH i2c: E2 [08:34:09]MH_I2C_Read... [08:34:09]Read from MH i2c: E2 17 00 [08:34:09]MH_I2C_Read... [08:34:09]Read from MH i2c: E2 17 00 97 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B5 [08:34:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:34:09]wFMCommunicate OK [08:34:09]requested_item fd.num is exist - process it [08:34:09]SAM_PROTO_GetFieldsCounters [08:34:09]wFMCommunicate request_size=4 [08:34:09]MH_SAM_APDU [08:34:09]CAPDU: 80 13 00 00 [08:34:09]Write to MH i2c: E2 08 00 98 57 80 13 00 00 00 00 00 00 6B [08:34:09]Write i2c OK [08:34:09]MH_I2C_Read... [08:34:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:09]Read from MH i2c: E2 [08:34:09]MH_I2C_Read... [08:34:09]Read from MH i2c: E2 62 00 [08:34:09]MH_I2C_Read... [08:34:09]Read from MH i2c: E2 62 00 98 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 BC F9 03 00 0E 04 04 00 C1 01 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 2A [08:34: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 BC F9 03 00 0E 04 04 00 C1 01 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 [08:34:09]wFMCommunicate OK [08:34:09]SAM_PROTO_GetFieldsCounters done [08:34:09]requested_item shift.num is exist - process it [08:34:09]requested_item shift.opened is exist - process it [08:34:09]req_shift_opened [08:34:09]FM_GetShiftState [08:34:09]SAM_PROTO_GetShiftState [08:34:09]wFMCommunicate request_size=4 [08:34:09]MH_SAM_APDU [08:34:09]CAPDU: 80 13 01 00 [08:34:09]Write to MH i2c: E2 08 00 99 57 80 13 01 00 00 00 00 00 6D [08:34:09]Write i2c OK [08:34:09]MH_I2C_Read... [08:34:09]Read from MH i2c: E2 [08:34:09]MH_I2C_Read... [08:34:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:09]Read from MH i2c: E2 0E 00 [08:34:09]MH_I2C_Read... [08:34:09]Read from MH i2c: E2 0E 00 99 57 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 AA [08:34:09]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:34:09]wFMCommunicate OK [08:34:09]SAM_PROTO_GetShiftState done [08:34:09]FM_GetShiftState done [08:34:09]req_shift_opened done [08:34:09]requested_item shift.open_date is exist - process it [08:34:09]req_shift_open_date [08:34:09]req_shift_open_date done [08:34:09]produce_requested_data done [08:34:09]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260540,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [08:34:09]process_action_free close_receipt [08:34:09]json_value_free [08:34:09]json_value_free done [08:34:09]process_json_proto returns [08:34:09]Send response to host [08:34:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260540,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [08:34:09]free response buf [08:34:09]execute_script done [08:34:09]execute_script returns [08:34:09]free content buf [08:34:09]Sock 9.Close socket [08:34:09]Sock 9.Thread stoped [08:34:11]OFD Sender: No OFD packet to send [08:34:16]OFD Sender: No OFD packet to send [08:34:21]OFD Sender: No OFD packet to send [08:34:26]OFD Sender: No OFD packet to send [08:34:31]OFD Sender: No OFD packet to send [08:34:36]OFD Sender: No OFD packet to send [08:34:41]OFD Sender: No OFD packet to send [08:34:46]OFD Sender: No OFD packet to send [08:34:51]OFD Sender: No OFD packet to send [08:34:56]OFD Sender: No OFD packet to send [08:35:01]OFD Sender: No OFD packet to send [08:35:06]OFD Sender: No OFD packet to send [08:35:11]OFD Sender: No OFD packet to send [08:35:16]OFD Sender: No OFD packet to send [08:35:21]OFD Sender: No OFD packet to send [08:35:26]OFD Sender: No OFD packet to send [08:35:31]OFD Sender: No OFD packet to send [08:35:36]OFD Sender: No OFD packet to send [08:35:41]OFD Sender: No OFD packet to send [08:35:46]OFD Sender: No OFD packet to send [08:35:51]OFD Sender: No OFD packet to send [08:35:56]OFD Sender: No OFD packet to send [08:36:00]accept exits with 7 [08:36:00]New connection [08:36:00]New thread 3066617188 created [08:36:00]Thread 3066473828 joined [08:36:00]Waiting for new connection... [08:36:00] Sock 7.Parse request [08:36:00]Sock 7.Check first char [08:36:00]Sock 7.First char is OK [08:36:00]request: POST /json_proto HTTP/1.0 [08:36:00]Method: POST [08:36:00]URL: /json_proto [08:36:00]Method is POST - this is cgi request [08:36:00]url: /json_proto [08:36:00]query_string will be loaded in cgi processing [08:36:00]execute_cgi json_proto POST (null) [08:36:00]execute_cgi path=json_proto method=POST [08:36:00]POST find Content-Length [08:36:00]Host: 172.17.55.133:8080 [08:36:00]Content-Length: 683 [08:36:00]Content-Type: application/json [08:36:00] [08:36:00]POST finish read [08:36:00]Found Content-Length = 683 [08:36:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036085", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:00]execute_script... [08:36: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)1036085", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:00]POST & json_proto [08:36:00]process_json_proto [08:36:00]json parsed OK: [08:36:00]protocol is kg_v1.0 [08:36:00]action value=close_receipt [08:36:00]process_action close_receipt [08:36:00]cmd_close_receipt [08:36:00]MH_GetDate [08:36:00]Write to MH i2c: F0 00 00 9A 57 E0 [08:36:00]Write i2c OK [08:36:00]MH_I2C_Read... [08:36:00]Read from MH i2c: F0 [08:36:00]MH_I2C_Read... [08:36:00]Read from MH i2c: F0 09 00 [08:36:00]MH_I2C_Read... [08:36:00]Read from MH i2c: F0 09 00 9A 57 00 74 B2 C1 66 34 48 D8 65 EF [08:36:00]GetLastDocTimeStamp 1723970047 [08:36:00]current date 1723970164 [08:36:00]FM_GetShiftState [08:36:00]SAM_PROTO_GetShiftState [08:36:00]wFMCommunicate request_size=4 [08:36:00]MH_SAM_APDU [08:36:00]CAPDU: 80 13 01 00 [08:36:00]Write to MH i2c: E2 08 00 9B 57 80 13 01 00 00 00 00 00 6F [08:36:00]Write i2c OK [08:36:00]MH_I2C_Read... [08:36:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:00]Read from MH i2c: E2 [08:36:00]MH_I2C_Read... [08:36:00]Read from MH i2c: E2 0E 00 [08:36:00]MH_I2C_Read... [08:36:00]Read from MH i2c: E2 0E 00 9B 57 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 AC [08:36:00]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:36:00]wFMCommunicate OK [08:36:00]SAM_PROTO_GetShiftState done [08:36:00]FM_GetShiftState done [08:36:00]opened in 1723940556 [08:36:00]opened+sec_in_day 1724026956 [08:36:00]quantity*price = 100021 [08:36:00]sum+1 = 100023 [08:36:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 99 18.08.2024 08:36 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260541 ФПД: 180131774677768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T083604&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260541&fm=180131774677768&tin=02508201610067®Number=0000000000091865&sum=100000 [08:36:01]StoreToDocumentArchive [08:36:01]shift 449 fd 260541 [08:36:01]save to /storage/0449/doc_00260541 [08:36:01]save last doc name /storage/0449/doc_00260541 to /storage/kkm_last_doc_name [08:36:01]save OK [08:36:01]Clear old archive folders... [08:36:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:36:01]tlvbuf is 003A03A0 [08:36:01]SAM_PROTO_ClearQueue [08:36:01]wFMCommunicate request_size=4 [08:36:01]MH_SAM_APDU [08:36:01]CAPDU: 80 09 00 00 [08:36:01]Write to MH i2c: E2 08 00 A8 57 80 09 00 00 00 00 00 00 71 [08:36:01]Write i2c OK [08:36:01]MH_I2C_Read... [08:36:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:36:01]Read from MH i2c: E2 [08:36:01]MH_I2C_Read... [08:36:01]Read from MH i2c: E2 03 00 [08:36:01]MH_I2C_Read... [08:36:01]Read from MH i2c: E2 03 00 A8 57 00 90 00 73 [08:36:01]RAPDU: 90 00 [08:36:01]wFMCommunicate OK [08:36:01]SAM_PROTO_ClearQueue done [08:36:01]KKMCreateOFDPacket [08:36:01]OFDProtocolAddRootSTLVToBuf [08:36:01]FM_MakeSignedData [08:36:01]FM_MakeSignedData [08:36:01]SAM_PROTO_SignData [08:36:01]wFMCommunicate request_size=4 [08:36:01]MH_SAM_APDU [08:36:01]CAPDU: 80 0D 01 02 [08:36:01]Write to MH i2c: E2 08 00 A9 57 80 0D 01 02 00 00 00 00 79 [08:36:01]Write i2c OK [08:36:01]MH_I2C_Read... [08:36:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:36:01]Read from MH i2c: E2 [08:36:01]MH_I2C_Read... [08:36:01]Read from MH i2c: E2 03 00 [08:36:01]MH_I2C_Read... [08:36:01]Read from MH i2c: E2 03 00 A9 57 00 90 00 74 [08:36:01]RAPDU: 90 00 [08:36:01]wFMCommunicate OK [08:36:01]wFMCommunicate request_size=255 [08:36:01]MH_SAM_APDU [08:36: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 74 B2 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BD F9 03 00 35 04 06 00 A3 [08:36:01]Write to MH i2c: E2 02 01 AA 57 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 74 B2 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BD F9 03 00 35 04 06 00 A3 00 00 F1 [08:36:01]Write i2c OK [08:36:01]MH_I2C_Read... [08:36:02]OFD Sender: No OFD packet to send [08:36:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:02]Read from MH i2c: E2 [08:36:02]MH_I2C_Read... [08:36:02]Read from MH i2c: E2 03 00 [08:36:02]MH_I2C_Read... [08:36:02]Read from MH i2c: E2 03 00 AA 57 00 90 00 75 [08:36:02]RAPDU: 90 00 [08:36:02]wFMCommunicate OK [08:36:02]wFMCommunicate request_size=10 [08:36:02]MH_SAM_APDU [08:36:02]CAPDU: 80 0D 02 02 05 D4 32 71 43 08 [08:36:02]Write to MH i2c: E2 0D 00 AB 57 80 0D 02 02 05 00 D4 32 71 43 08 00 00 48 [08:36:02]Write i2c OK [08:36:02]MH_I2C_Read... [08:36:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:02]Read from MH i2c: E2 [08:36:02]MH_I2C_Read... [08:36:02]Read from MH i2c: E2 03 00 [08:36:02]MH_I2C_Read... [08:36:02]Read from MH i2c: E2 03 00 AB 57 00 90 00 76 [08:36:02]RAPDU: 90 00 [08:36:02]wFMCommunicate OK [08:36:02]wFMCommunicate request_size=4 [08:36:02]MH_SAM_APDU [08:36:02]CAPDU: 80 0D 03 02 [08:36:02]Write to MH i2c: E2 08 00 AC 57 80 0D 03 02 00 00 00 00 7E [08:36:02]Write i2c OK [08:36:02]MH_I2C_Read... [08:36:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:36:02]Read from MH i2c: E2 [08:36:02]MH_I2C_Read... [08:36:02]Read from MH i2c: E2 0B 00 [08:36:02]MH_I2C_Read... [08:36:02]Read from MH i2c: E2 0B 00 AC 57 00 DA 98 79 7D 4C 73 DD CD 90 00 50 [08:36:02]RAPDU: DA 98 79 7D 4C 73 DD CD 90 00 [08:36:02]wFMCommunicate OK [08:36:02]SAM_PROTO_SignData done [08:36:02]FM_MakeSignedData done [08:36:02]CreateOFDProtocolMessage [08:36:02]wFMCommunicate request_size=4 [08:36:02]MH_SAM_APDU [08:36:02]CAPDU: 80 11 00 00 [08:36:02]Write to MH i2c: E2 08 00 AD 57 80 11 00 00 00 00 00 00 7E [08:36:02]Write i2c OK [08:36:02]MH_I2C_Read... [08:36:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:02]Read from MH i2c: E2 [08:36:02]MH_I2C_Read... [08:36:02]Read from MH i2c: E2 17 00 [08:36:02]MH_I2C_Read... [08:36:02]Read from MH i2c: E2 17 00 AD 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 CB [08:36:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:36:02]wFMCommunicate OK [08:36:02]CreateOFDProtocolMessage done [08:36:02]OFDSenderStorePacket 260541 [08:36:02]StoreOFDPacket docnum=260541 [08:36:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 82 B9 07 01 84 C2 5A 03 01 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 74 B2 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BD F9 03 00 35 04 06 00 A3 D4 32 71 43 08 DA 98 79 7D 4C 73 DD CD [08:36:02]CheckFolder [08:36:02]dirname=/storage/ofd_packets [08:36:02]CheckFolder done [08:36:02]ProducePacketName [08:36:02]name=ofd_packets/00260541 [08:36:02]NVStorageSaveData ofd_packets/00260541 [08:36:02]File name is /storage/ofd_packets/00260541 [08:36:02]Write 301 bytes [08:36:02]NVStorageSaveData done [08:36:02]OFDSenderStorePacket done [08:36:02]KKMCreateOFDPacket done [08:36:02]NVStorageSaveData kkm_last_timestamp [08:36:02]File name is /storage/kkm_last_timestamp [08:36:02]Write 4 bytes [08:36:02]NVStorageSaveData done [08:36:02]ExternCall_PrintAddStr [08:36:02]wPrintStart [08:36:02]Write to MH i2c: 01 00 00 AE 57 05 [08:36:02]Write i2c OK [08:36:02]MH_I2C_Read... [08:36:02]Read from MH i2c: 01 [08:36:02]MH_I2C_Read... [08:36:02]Read from MH i2c: 01 07 00 [08:36:02]MH_I2C_Read... [08:36:02]Read from MH i2c: 01 07 00 AE 57 00 00 00 00 00 FF 0F 1A [08:36:02]RasterBufferAndPrint [08:36:02]line Счет N : (1)1036085 [08:36:02]line ИНН: 02508201610067 [08:36:02]line Контрольно-Кассовый Чек [08:36:02]line ПРОДАЖА [08:36:02]line ТРК (МРК, ГНК) : 13 [08:36:02]line Товар: 2710124500 [08:36:02]line Аи-95-К-5 [08:36:02]line 13.480 * 74.20 [08:36:02]line = 1000.22 [08:36:02]line НДС 12% НСП 1% [08:36:02]line > о реализуемом товаре [08:36:02]line ОКРУГЛЕНИЕ: -0.22 [08:36:02]line ИТОГО: 1000.00 [08:36:02]line Внесено: 1000.00 [08:36:02]line СДАЧА: 0.00 [08:36:02]line НСП 1% : 8.85 [08:36:02]line НДС 12% : 106.22 [08:36:02]line Наличными: 1000.00 [08:36:02]line Безнал.: 0.00 [08:36:02]line Место: АЗС № 94 "Партнер Нефть" [08:36:02]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [08:36:02]line СНО: Общий режим [08:36:02]line Чек 99 18.08.2024 08:36 [08:36:02]line Смена: 449 ФФД: 1.0 [08:36:02]line ЗНМ: 0300000099 [08:36:02]line РНМ: 0000000000091865 [08:36:02]line Версия ККМ: 001 [08:36:02]line ФМ: 0000000000871820 [08:36:02]line ФД: 260541 [08:36:02]line ФПД: 180131774677768 [08:36:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T083604&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260541&fm=180131774677768&tin=02508201610067®Number=0000000000091865&sum=100000 [08:36:02]OFD Sender: Processing packet 260541 [packets to send 192, broken 191] [08:36:02]ProducePacketName [08:36:02]name=ofd_packets/00260541 [08:36:02]OFD Sender: To server: pG, [08:36:02]CommunicateWithHost lk.salyk.kg:30040 [08:36:02]ConnectInit lk.salyk.kg [08:36:02]written 0, free lines is 4095 [08:36:02]Connected sock=10 [08:36: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 30 0F 01 00 00 82 B9 07 01 84 C2 5A 03 01 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 74 B2 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BD F9 03 00 35 04 06 00 A3 D4 32 71 43 08 DA 98 79 7D 4C 73 DD CD [08:36: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 30 4F 00 00 00 04 27 47 00 99 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 30 10 04 04 00 BD F9 03 00 F4 03 04 00 CA 5B C1 66 B6 04 01 00 00 AB 57 00 1F 4F AF BF DE [08:36:02]CommunicateWithHost err = 0 [08:36:02]CheckOFDResponse [08:36:02]1017 (14) - 77093643461234 [08:36:02]1041 (16) - 0000000000871820 [08:36:02]1040 (4) - 260541 [08:36:02]1012 (4) - 18.08.2024 02:26 [08:36:02]1206 (1) - 0 [08:36:02]OFD Sender: Remove packet 260541 [08:36:02]ProducePacketName [08:36:02]name=ofd_packets/00260541 [08:36:02]NVStorageDeleteData [08:36:03]Write to MH i2c: 01 00 00 D9 57 30 [08:36:03]Write i2c OK [08:36:03]MH_I2C_Read... [08:36:03]Read from MH i2c: 01 [08:36:03]MH_I2C_Read... [08:36:03]Read from MH i2c: 01 07 00 [08:36:03]MH_I2C_Read... [08:36:03]Read from MH i2c: 01 07 00 D9 57 00 00 00 00 00 77 0C BA [08:36:03]RasterBufferAndPrint [08:36:03]line [08:36:03]line [08:36:03]line [08:36:03]line [08:36:03]line [08:36:03]written 0, free lines is 3194 [08:36:03]MH_Cut [08:36:03]Write to MH i2c: D1 01 00 E0 57 01 09 [08:36:03]Write i2c OK [08:36:03]MH_I2C_Read... [08:36:03]Read from MH i2c: D1 [08:36:03]MH_I2C_Read... [08:36:03]Read from MH i2c: D1 01 00 [08:36:03]MH_I2C_Read... [08:36:03]Read from MH i2c: D1 01 00 E0 57 00 08 [08:36:03]Write to MH i2c: 01 00 00 E1 57 38 [08:36:03]Write i2c OK [08:36:03]MH_I2C_Read... [08:36:03]OFD Sender: No OFD packet to send [08:36:04]*** Cut start [08:36:04]*** Purtial cut [08:36:04]*** Stage 1: CUTSNS_PIN = 1 [08:36:06]Read from MH i2c: 01 [08:36:06]MH_I2C_Read... [08:36:06]*** Stop cut motor [08:36:06]*** Cut end [08:36:06]Read from MH i2c: 01 07 00 [08:36:06]MH_I2C_Read... [08:36:06]Read from MH i2c: 01 07 00 E1 57 00 00 00 00 00 FF 0F 4D [08:36:06]process_action close_receipt done [08:36:06]requested_data is exist [08:36:06]produce_requested_data [08:36:06]requested_item fm.sn is exist - process it [08:36:06]wFMCommunicate request_size=4 [08:36:06]MH_SAM_APDU [08:36:06]CAPDU: 80 11 00 00 [08:36:06]Write to MH i2c: E2 08 00 E2 57 80 11 00 00 00 00 00 00 B3 [08:36:06]Write i2c OK [08:36:06]MH_I2C_Read... [08:36:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:06]Read from MH i2c: E2 [08:36:06]MH_I2C_Read... [08:36:06]Read from MH i2c: E2 17 00 [08:36:06]MH_I2C_Read... [08:36:06]Read from MH i2c: E2 17 00 E2 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 00 [08:36:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:36:06]wFMCommunicate OK [08:36:06]requested_item fd.num is exist - process it [08:36:06]SAM_PROTO_GetFieldsCounters [08:36:06]wFMCommunicate request_size=4 [08:36:06]MH_SAM_APDU [08:36:06]CAPDU: 80 13 00 00 [08:36:06]Write to MH i2c: E2 08 00 E3 57 80 13 00 00 00 00 00 00 B6 [08:36:06]Write i2c OK [08:36:06]MH_I2C_Read... [08:36:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:36:06]Read from MH i2c: E2 [08:36:06]MH_I2C_Read... [08:36:06]Read from MH i2c: E2 62 00 [08:36:06]MH_I2C_Read... [08:36:06]Read from MH i2c: E2 62 00 E3 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 BD F9 03 00 0E 04 04 00 C1 01 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 79 [08:36: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 BD F9 03 00 0E 04 04 00 C1 01 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 [08:36:06]wFMCommunicate OK [08:36:06]SAM_PROTO_GetFieldsCounters done [08:36:06]requested_item shift.num is exist - process it [08:36:06]requested_item shift.opened is exist - process it [08:36:06]req_shift_opened [08:36:06]FM_GetShiftState [08:36:06]SAM_PROTO_GetShiftState [08:36:06]wFMCommunicate request_size=4 [08:36:06]MH_SAM_APDU [08:36:06]CAPDU: 80 13 01 00 [08:36:06]Write to MH i2c: E2 08 00 E4 57 80 13 01 00 00 00 00 00 B8 [08:36:06]Write i2c OK [08:36:06]MH_I2C_Read... [08:36:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:06]Read from MH i2c: E2 [08:36:06]MH_I2C_Read... [08:36:06]Read from MH i2c: E2 0E 00 [08:36:06]MH_I2C_Read... [08:36:06]Read from MH i2c: E2 0E 00 E4 57 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F5 [08:36:06]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:36:06]wFMCommunicate OK [08:36:06]SAM_PROTO_GetShiftState done [08:36:06]FM_GetShiftState done [08:36:06]req_shift_opened done [08:36:06]requested_item shift.open_date is exist - process it [08:36:06]req_shift_open_date [08:36:06]req_shift_open_date done [08:36:06]produce_requested_data done [08:36:06]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260541,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [08:36:06]process_action_free close_receipt [08:36:06]json_value_free [08:36:06]json_value_free done [08:36:06]process_json_proto returns [08:36:06]Send response to host [08:36:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260541,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [08:36:06]free response buf [08:36:06]execute_script done [08:36:06]execute_script returns [08:36:06]free content buf [08:36:06]Sock 7.Close socket [08:36:06]Sock 7.Thread stoped [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:58]OFD Sender: No OFD packet to send [08:39:03]OFD Sender: No OFD packet to send [08:39:08]OFD Sender: No OFD packet to send [08:39:13]OFD Sender: No OFD packet to send [08:39:18]OFD Sender: No OFD packet to send [08:39:23]OFD Sender: No OFD packet to send [08:39:28]OFD Sender: No OFD packet to send [08:39:33]OFD Sender: No OFD packet to send [08:39:38]OFD Sender: No OFD packet to send [08:39:43]OFD Sender: No OFD packet to send [08:39:48]OFD Sender: No OFD packet to send [08:39:53]OFD Sender: No OFD packet to send [08:39:58]OFD Sender: No OFD packet to send [08:40:03]OFD Sender: No OFD packet to send [08:40:08]OFD Sender: No OFD packet to send [08:40:13]OFD Sender: No OFD packet to send [08:40:18]OFD Sender: No OFD packet to send [08:40:23]OFD Sender: No OFD packet to send [08:40:28]OFD Sender: No OFD packet to send [08:40:33]OFD Sender: No OFD packet to send [08:40:38]OFD Sender: No OFD packet to send [08:40:43]OFD Sender: No OFD packet to send [08:40:48]OFD Sender: No OFD packet to send [08:40:53]OFD Sender: No OFD packet to send [08:40:58]OFD Sender: No OFD packet to send [08:41:03]OFD Sender: No OFD packet to send [08:41:08]OFD Sender: No OFD packet to send [08:41:13]accept exits with 9 [08:41:13]New connection [08:41:13]New thread 3066473828 created [08:41:13]Thread 3066617188 joined [08:41:13]Waiting for new connection... [08:41:13] Sock 9.Parse request [08:41:13]Sock 9.Check first char [08:41:13]Sock 9.First char is OK [08:41:13]request: POST /json_proto HTTP/1.0 [08:41:13]Method: POST [08:41:13]URL: /json_proto [08:41:13]Method is POST - this is cgi request [08:41:13]url: /json_proto [08:41:13]query_string will be loaded in cgi processing [08:41:13]execute_cgi json_proto POST (null) [08:41:13]execute_cgi path=json_proto method=POST [08:41:13]POST find Content-Length [08:41:13]Host: 172.17.55.133:8080 [08:41:13]Content-Length: 809 [08:41:13]Content-Type: application/json [08:41:13] [08:41:13]POST finish read [08:41:13]Found Content-Length = 809 [08:41:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 30.190, "sum" : 2300.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2300.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:13]execute_script... [08:41:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 30.190, "sum" : 2300.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2300.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:13]POST & json_proto [08:41:13]process_json_proto [08:41:13]json parsed OK: [08:41:13]protocol is kg_v1.0 [08:41:13]action value=close_receipt [08:41:13]process_action close_receipt [08:41:13]cmd_close_receipt [08:41:13]MH_GetDate [08:41:13]Write to MH i2c: F0 00 00 E5 57 2B [08:41:13]Write i2c OK [08:41:13]MH_I2C_Read... [08:41:13]Read from MH i2c: F0 [08:41:13]MH_I2C_Read... [08:41:13]Read from MH i2c: F0 09 00 [08:41:13]MH_I2C_Read... [08:41:13]Read from MH i2c: F0 09 00 E5 57 00 AD B3 C1 66 34 48 D8 65 74 [08:41:13]GetLastDocTimeStamp 1723970164 [08:41:13]current date 1723970477 [08:41:13]FM_GetShiftState [08:41:13]SAM_PROTO_GetShiftState [08:41:13]wFMCommunicate request_size=4 [08:41:13]MH_SAM_APDU [08:41:13]CAPDU: 80 13 01 00 [08:41:13]Write to MH i2c: E2 08 00 E6 57 80 13 01 00 00 00 00 00 BA [08:41:13]Write i2c OK [08:41:13]MH_I2C_Read... [08:41:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:13]Read from MH i2c: E2 [08:41:13]MH_I2C_Read... [08:41:13]Read from MH i2c: E2 0E 00 [08:41:13]MH_I2C_Read... [08:41:13]Read from MH i2c: E2 0E 00 E6 57 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F7 [08:41:13]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:41:13]wFMCommunicate OK [08:41:13]SAM_PROTO_GetShiftState done [08:41:13]FM_GetShiftState done [08:41:13]opened in 1723940556 [08:41:13]opened+sec_in_day 1724026956 [08:41:13]quantity*price = 230047 [08:41:13]sum+1 = 230049 [08:41:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2300.48 НСП 1% : 20.36 НДС 12% : 244.30 Наличными: 0.00 Безнал.: 2300.48 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 100 18.08.2024 08:41 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260542 ФПД: 135131283382104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T084117&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260542&fm=135131283382104&tin=02508201610067®Number=0000000000091865&sum=230048 [08:41:14]StoreToDocumentArchive [08:41:14]shift 449 fd 260542 [08:41:14]save to /storage/0449/doc_00260542 [08:41:14]save last doc name /storage/0449/doc_00260542 to /storage/kkm_last_doc_name [08:41:14]save OK [08:41:14]Clear old archive folders... [08:41:14]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:41:14]tlvbuf is 003958A0 [08:41:14]SAM_PROTO_ClearQueue [08:41:14]wFMCommunicate request_size=4 [08:41:14]MH_SAM_APDU [08:41:14]CAPDU: 80 09 00 00 [08:41:14]Write to MH i2c: E2 08 00 F3 57 80 09 00 00 00 00 00 00 BC [08:41:14]Write i2c OK [08:41:14]MH_I2C_Read... [08:41:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:41:14]Read from MH i2c: E2 [08:41:14]MH_I2C_Read... [08:41:14]Read from MH i2c: E2 03 00 [08:41:14]MH_I2C_Read... [08:41:14]Read from MH i2c: E2 03 00 F3 57 00 90 00 BE [08:41:14]RAPDU: 90 00 [08:41:14]wFMCommunicate OK [08:41:14]SAM_PROTO_ClearQueue done [08:41:14]KKMCreateOFDPacket [08:41:14]OFDProtocolAddRootSTLVToBuf [08:41:14]FM_MakeSignedData [08:41:14]FM_MakeSignedData [08:41:14]SAM_PROTO_SignData [08:41:14]wFMCommunicate request_size=4 [08:41:14]MH_SAM_APDU [08:41:14]CAPDU: 80 0D 01 02 [08:41:14]Write to MH i2c: E2 08 00 F4 57 80 0D 01 02 00 00 00 00 C4 [08:41:14]Write i2c OK [08:41:14]MH_I2C_Read... [08:41:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:41:14]Read from MH i2c: E2 [08:41:14]MH_I2C_Read... [08:41:14]Read from MH i2c: E2 03 00 [08:41:14]MH_I2C_Read... [08:41:14]Read from MH i2c: E2 03 00 F4 57 00 90 00 BF [08:41:14]RAPDU: 90 00 [08:41:14]wFMCommunicate OK [08:41:14]wFMCommunicate request_size=255 [08:41:14]MH_SAM_APDU [08:41:14]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EE 75 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 82 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 AD B3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BE F9 03 00 35 04 06 00 [08:41:14]Write to MH i2c: E2 02 01 F5 57 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EE 75 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 82 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 AD B3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BE F9 03 00 35 04 06 00 00 00 E8 [08:41:14]Write i2c OK [08:41:14]MH_I2C_Read... [08:41:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:14]Read from MH i2c: E2 [08:41:14]MH_I2C_Read... [08:41:14]Read from MH i2c: E2 03 00 [08:41:14]MH_I2C_Read... [08:41:14]Read from MH i2c: E2 03 00 F5 57 00 90 00 C0 [08:41:14]RAPDU: 90 00 [08:41:14]wFMCommunicate OK [08:41:14]wFMCommunicate request_size=11 [08:41:14]MH_SAM_APDU [08:41:14]CAPDU: 80 0D 02 02 06 7A E6 B4 24 DF 58 [08:41:14]Write to MH i2c: E2 0E 00 F6 57 80 0D 02 02 06 00 7A E6 B4 24 DF 58 00 00 42 [08:41:14]Write i2c OK [08:41:14]MH_I2C_Read... [08:41:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:14]Read from MH i2c: E2 [08:41:14]MH_I2C_Read... [08:41:14]Read from MH i2c: E2 03 00 [08:41:14]MH_I2C_Read... [08:41:14]Read from MH i2c: E2 03 00 F6 57 00 90 00 C1 [08:41:14]RAPDU: 90 00 [08:41:14]wFMCommunicate OK [08:41:14]wFMCommunicate request_size=4 [08:41:14]MH_SAM_APDU [08:41:14]CAPDU: 80 0D 03 02 [08:41:14]Write to MH i2c: E2 08 00 F7 57 80 0D 03 02 00 00 00 00 C9 [08:41:14]Write i2c OK [08:41:14]MH_I2C_Read... [08:41:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:41:14]Read from MH i2c: E2 [08:41:14]MH_I2C_Read... [08:41:14]Read from MH i2c: E2 0B 00 [08:41:14]MH_I2C_Read... [08:41:14]Read from MH i2c: E2 0B 00 F7 57 00 86 D3 ED 44 10 06 7B FD 90 00 E2 [08:41:14]RAPDU: 86 D3 ED 44 10 06 7B FD 90 00 [08:41:14]wFMCommunicate OK [08:41:14]SAM_PROTO_SignData done [08:41:14]FM_MakeSignedData done [08:41:14]CreateOFDProtocolMessage [08:41:14]wFMCommunicate request_size=4 [08:41:14]MH_SAM_APDU [08:41:14]CAPDU: 80 11 00 00 [08:41:14]Write to MH i2c: E2 08 00 F8 57 80 11 00 00 00 00 00 00 C9 [08:41:14]Write i2c OK [08:41:14]MH_I2C_Read... [08:41:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:14]Read from MH i2c: E2 [08:41:14]MH_I2C_Read... [08:41:14]Read from MH i2c: E2 17 00 [08:41:14]MH_I2C_Read... [08:41:14]Read from MH i2c: E2 17 00 F8 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 16 [08:41:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:41:14]wFMCommunicate OK [08:41:14]CreateOFDProtocolMessage done [08:41:14]OFDSenderStorePacket 260542 [08:41:14]StoreOFDPacket docnum=260542 [08:41:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 28 56 08 01 23 0E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EE 75 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 82 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 AD B3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BE F9 03 00 35 04 06 00 7A E6 B4 24 DF 58 86 D3 ED 44 10 06 7B FD [08:41:14]CheckFolder [08:41:14]dirname=/storage/ofd_packets [08:41:14]CheckFolder done [08:41:14]ProducePacketName [08:41:14]name=ofd_packets/00260542 [08:41:14]NVStorageSaveData ofd_packets/00260542 [08:41:14]File name is /storage/ofd_packets/00260542 [08:41:14]Write 302 bytes [08:41:14]NVStorageSaveData done [08:41:14]OFDSenderStorePacket done [08:41:14]KKMCreateOFDPacket done [08:41:14]NVStorageSaveData kkm_last_timestamp [08:41:14]File name is /storage/kkm_last_timestamp [08:41:14]Write 4 bytes [08:41:14]NVStorageSaveData done [08:41:14]ExternCall_PrintAddStr [08:41:14]wPrintStart [08:41:14]Write to MH i2c: 01 00 00 F9 57 50 [08:41:14]Write i2c OK [08:41:14]MH_I2C_Read... [08:41:14]Read from MH i2c: 01 [08:41:14]MH_I2C_Read... [08:41:14]Read from MH i2c: 01 07 00 [08:41:14]MH_I2C_Read... [08:41:14]Read from MH i2c: 01 07 00 F9 57 00 00 00 00 00 FF 0F 65 [08:41:14]RasterBufferAndPrint [08:41:14]line Счет N : (1)1036086 [08:41:14]line ИНН: 02508201610067 [08:41:14]line Контрольно-Кассовый Чек [08:41:14]line ПРОДАЖА [08:41:14]line ТРК (МРК, ГНК) : 33 [08:41:14]line Товар: 2710194210 [08:41:14]line ДТ(л)-К-4 [08:41:14]line 30.190 * 76.20 [08:41:14]line = 2300.48 [08:41:14]line НДС 12% НСП 1% [08:41:14]line > о реализуемом товаре [08:41:14]line ИТОГО: 2300.48 [08:41:14]line НСП 1% : 20.36 [08:41:14]line НДС 12% : 244.30 [08:41:14]line Наличными: 0.00 [08:41:14]line Безнал.: 2300.48 [08:41:14]line Место: АЗС № 94 "Партнер Нефть" [08:41:14]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [08:41:14]line СНО: Общий режим [08:41:14]line Чек 100 18.08.2024 08:41 [08:41:14]line Смена: 449 ФФД: 1.0 [08:41:14]line ЗНМ: 0300000099 [08:41:14]line РНМ: 0000000000091865 [08:41:14]line Версия ККМ: 001 [08:41:14]line Платежная система: O! деньги [08:41:14]line ФМ: 0000000000871820 [08:41:14]line ФД: 260542 [08:41:15]line ФПД: 135131283382104 [08:41:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T084117&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260542&fm=135131283382104&tin=02508201610067®Number=0000000000091865&sum=230048 [08:41:15]OFD Sender: Processing packet 260542 [packets to send 192, broken 191] [08:41:15]ProducePacketName [08:41:15]name=ofd_packets/00260542 [08:41:15]OFD Sender: To server: pG, [08:41:15]CommunicateWithHost lk.salyk.kg:30040 [08:41:15]ConnectInit lk.salyk.kg [08:41:15]written 0, free lines is 4095 [08:41:15]Connected sock=10 [08:41: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 30 10 01 00 00 28 56 08 01 23 0E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EE 75 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 82 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 AD B3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BE F9 03 00 35 04 06 00 7A E6 B4 24 DF 58 86 D3 ED 44 10 06 7B FD [08:41: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 30 4F 00 00 00 B0 50 47 00 43 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 30 10 04 04 00 BE F9 03 00 F4 03 04 00 02 5D C1 66 B6 04 01 00 00 46 04 09 6E 22 42 AE 3A [08:41:15]CommunicateWithHost err = 0 [08:41:15]CheckOFDResponse [08:41:15]1017 (14) - 77093643461234 [08:41:15]1041 (16) - 0000000000871820 [08:41:15]1040 (4) - 260542 [08:41:15]1012 (4) - 18.08.2024 02:31 [08:41:15]1206 (1) - 0 [08:41:15]OFD Sender: Remove packet 260542 [08:41:15]ProducePacketName [08:41:15]name=ofd_packets/00260542 [08:41:15]NVStorageDeleteData [08:41:15]Write to MH i2c: 01 00 00 23 58 7B [08:41:15]Write i2c OK [08:41:15]MH_I2C_Read... [08:41:15]Read from MH i2c: 01 [08:41:15]MH_I2C_Read... [08:41:15]Read from MH i2c: 01 07 00 [08:41:15]MH_I2C_Read... [08:41:15]Read from MH i2c: 01 07 00 23 58 00 00 00 00 00 7E 0C 0C [08:41:15]RasterBufferAndPrint [08:41:15]line [08:41:15]line [08:41:15]line [08:41:15]line [08:41:15]line [08:41:15]written 0, free lines is 3202 [08:41:15]MH_Cut [08:41:15]Write to MH i2c: D1 01 00 2A 58 01 54 [08:41:15]Write i2c OK [08:41:15]MH_I2C_Read... [08:41:15]Read from MH i2c: D1 [08:41:15]MH_I2C_Read... [08:41:15]Read from MH i2c: D1 01 00 [08:41:15]MH_I2C_Read... [08:41:15]Read from MH i2c: D1 01 00 2A 58 00 53 [08:41:15]Write to MH i2c: 01 00 00 2B 58 83 [08:41:15]Write i2c OK [08:41:15]MH_I2C_Read... [08:41:16]OFD Sender: No OFD packet to send [08:41:16]*** Cut start [08:41:16]*** Purtial cut [08:41:16]*** Stage 1: CUTSNS_PIN = 1 [08:41:18]Read from MH i2c: 01 [08:41:18]MH_I2C_Read... [08:41:18]*** Stop cut motor [08:41:18]*** Cut end [08:41:18]Read from MH i2c: 01 07 00 [08:41:18]MH_I2C_Read... [08:41:18]Read from MH i2c: 01 07 00 2B 58 00 00 00 00 00 FF 0F 98 [08:41:18]process_action close_receipt done [08:41:18]requested_data is exist [08:41:18]produce_requested_data [08:41:18]requested_item fm.sn is exist - process it [08:41:18]wFMCommunicate request_size=4 [08:41:18]MH_SAM_APDU [08:41:18]CAPDU: 80 11 00 00 [08:41:18]Write to MH i2c: E2 08 00 2C 58 80 11 00 00 00 00 00 00 FE [08:41:18]Write i2c OK [08:41:18]MH_I2C_Read... [08:41:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:18]Read from MH i2c: E2 [08:41:18]MH_I2C_Read... [08:41:18]Read from MH i2c: E2 17 00 [08:41:18]MH_I2C_Read... [08:41:18]Read from MH i2c: E2 17 00 2C 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 4B [08:41:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:41:18]wFMCommunicate OK [08:41:18]requested_item fd.num is exist - process it [08:41:18]SAM_PROTO_GetFieldsCounters [08:41:18]wFMCommunicate request_size=4 [08:41:18]MH_SAM_APDU [08:41:18]CAPDU: 80 13 00 00 [08:41:18]Write to MH i2c: E2 08 00 2D 58 80 13 00 00 00 00 00 00 01 [08:41:18]Write i2c OK [08:41:18]MH_I2C_Read... [08:41:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:41:19]Read from MH i2c: E2 [08:41:19]MH_I2C_Read... [08:41:19]Read from MH i2c: E2 62 00 [08:41:19]MH_I2C_Read... [08:41:19]Read from MH i2c: E2 62 00 2D 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 BE F9 03 00 0E 04 04 00 C1 01 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 C8 [08:41: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 BE F9 03 00 0E 04 04 00 C1 01 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 [08:41:19]wFMCommunicate OK [08:41:19]SAM_PROTO_GetFieldsCounters done [08:41:19]requested_item shift.num is exist - process it [08:41:19]requested_item shift.opened is exist - process it [08:41:19]req_shift_opened [08:41:19]FM_GetShiftState [08:41:19]SAM_PROTO_GetShiftState [08:41:19]wFMCommunicate request_size=4 [08:41:19]MH_SAM_APDU [08:41:19]CAPDU: 80 13 01 00 [08:41:19]Write to MH i2c: E2 08 00 2E 58 80 13 01 00 00 00 00 00 03 [08:41:19]Write i2c OK [08:41:19]MH_I2C_Read... [08:41:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:19]Read from MH i2c: E2 [08:41:19]MH_I2C_Read... [08:41:19]Read from MH i2c: E2 0E 00 [08:41:19]MH_I2C_Read... [08:41:19]Read from MH i2c: E2 0E 00 2E 58 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 40 [08:41:19]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:41:19]wFMCommunicate OK [08:41:19]SAM_PROTO_GetShiftState done [08:41:19]FM_GetShiftState done [08:41:19]req_shift_opened done [08:41:19]requested_item shift.open_date is exist - process it [08:41:19]req_shift_open_date [08:41:19]req_shift_open_date done [08:41:19]produce_requested_data done [08:41:19]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260542,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [08:41:19]process_action_free close_receipt [08:41:19]json_value_free [08:41:19]json_value_free done [08:41:19]process_json_proto returns [08:41:19]Send response to host [08:41:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260542,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [08:41:19]free response buf [08:41:19]execute_script done [08:41:19]execute_script returns [08:41:19]free content buf [08:41:19]Sock 9.Close socket [08:41:19]Sock 9.Thread stoped [08:41:21]OFD Sender: No OFD packet to send [08:41:26]OFD Sender: No OFD packet to send [08:41:27]accept exits with 7 [08:41:27]New connection [08:41:27]New thread 3066617188 created [08:41:27]Thread 3066473828 joined [08:41:27]Waiting for new connection... [08:41:27] Sock 7.Parse request [08:41:27]Sock 7.Check first char [08:41:27]Sock 7.First char is OK [08:41:27]request: POST /json_proto HTTP/1.0 [08:41:27]Method: POST [08:41:27]URL: /json_proto [08:41:27]Method is POST - this is cgi request [08:41:27]url: /json_proto [08:41:27]query_string will be loaded in cgi processing [08:41:27]execute_cgi json_proto POST (null) [08:41:27]execute_cgi path=json_proto method=POST [08:41:27]POST find Content-Length [08:41:27]Host: 172.17.55.133:8080 [08:41:27]Content-Length: 804 [08:41:27]Content-Type: application/json [08:41:27] [08:41:27]POST finish read [08:41:27]Found Content-Length = 804 [08:41:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036087", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:27]execute_script... [08:41: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)1036087", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:27]POST & json_proto [08:41:27]process_json_proto [08:41:27]json parsed OK: [08:41:27]protocol is kg_v1.0 [08:41:27]action value=close_receipt [08:41:27]process_action close_receipt [08:41:27]cmd_close_receipt [08:41:27]MH_GetDate [08:41:27]Write to MH i2c: F0 00 00 2F 58 76 [08:41:27]Write i2c OK [08:41:27]MH_I2C_Read... [08:41:27]Read from MH i2c: F0 [08:41:27]MH_I2C_Read... [08:41:27]Read from MH i2c: F0 09 00 [08:41:27]MH_I2C_Read... [08:41:27]Read from MH i2c: F0 09 00 2F 58 00 BA B3 C1 66 34 48 D8 65 CC [08:41:27]GetLastDocTimeStamp 1723970477 [08:41:27]current date 1723970490 [08:41:27]FM_GetShiftState [08:41:27]SAM_PROTO_GetShiftState [08:41:27]wFMCommunicate request_size=4 [08:41:27]MH_SAM_APDU [08:41:27]CAPDU: 80 13 01 00 [08:41:27]Write to MH i2c: E2 08 00 30 58 80 13 01 00 00 00 00 00 05 [08:41:27]Write i2c OK [08:41:27]MH_I2C_Read... [08:41:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:27]Read from MH i2c: E2 [08:41:27]MH_I2C_Read... [08:41:27]Read from MH i2c: E2 0E 00 [08:41:27]MH_I2C_Read... [08:41:27]Read from MH i2c: E2 0E 00 30 58 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 42 [08:41:27]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:41:27]wFMCommunicate OK [08:41:27]SAM_PROTO_GetShiftState done [08:41:27]FM_GetShiftState done [08:41:27]opened in 1723940556 [08:41:27]opened+sec_in_day 1724026956 [08:41:27]quantity*price = 100021 [08:41:27]sum+1 = 100023 [08:41:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 101 18.08.2024 08:41 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260543 ФПД: 167169498362076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T084130&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260543&fm=167169498362076&tin=02508201610067®Number=0000000000091865&sum=100022 [08:41:28]StoreToDocumentArchive [08:41:28]shift 449 fd 260543 [08:41:28]save to /storage/0449/doc_00260543 [08:41:28]save last doc name /storage/0449/doc_00260543 to /storage/kkm_last_doc_name [08:41:28]save OK [08:41:28]Clear old archive folders... [08:41:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:41:28]tlvbuf is 00358850 [08:41:28]SAM_PROTO_ClearQueue [08:41:28]wFMCommunicate request_size=4 [08:41:28]MH_SAM_APDU [08:41:28]CAPDU: 80 09 00 00 [08:41:28]Write to MH i2c: E2 08 00 3D 58 80 09 00 00 00 00 00 00 07 [08:41:28]Write i2c OK [08:41:28]MH_I2C_Read... [08:41:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:41:28]Read from MH i2c: E2 [08:41:28]MH_I2C_Read... [08:41:28]Read from MH i2c: E2 03 00 [08:41:28]MH_I2C_Read... [08:41:28]Read from MH i2c: E2 03 00 3D 58 00 90 00 09 [08:41:28]RAPDU: 90 00 [08:41:28]wFMCommunicate OK [08:41:28]SAM_PROTO_ClearQueue done [08:41:28]KKMCreateOFDPacket [08:41:28]OFDProtocolAddRootSTLVToBuf [08:41:28]FM_MakeSignedData [08:41:28]FM_MakeSignedData [08:41:28]SAM_PROTO_SignData [08:41:28]wFMCommunicate request_size=4 [08:41:28]MH_SAM_APDU [08:41:28]CAPDU: 80 0D 01 02 [08:41:28]Write to MH i2c: E2 08 00 3E 58 80 0D 01 02 00 00 00 00 0F [08:41:28]Write i2c OK [08:41:28]MH_I2C_Read... [08:41:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:41:28]Read from MH i2c: E2 [08:41:28]MH_I2C_Read... [08:41:28]Read from MH i2c: E2 03 00 [08:41:28]MH_I2C_Read... [08:41:28]Read from MH i2c: E2 03 00 3E 58 00 90 00 0A [08:41:28]RAPDU: 90 00 [08:41:28]wFMCommunicate OK [08:41:28]wFMCommunicate request_size=255 [08:41:28]MH_SAM_APDU [08:41: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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 BA B3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BF F9 03 00 35 04 06 00 98 [08:41:28]Write to MH i2c: E2 02 01 3F 58 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 BA B3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BF F9 03 00 35 04 06 00 98 00 00 F3 [08:41:28]Write i2c OK [08:41:28]MH_I2C_Read... [08:41:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:28]Read from MH i2c: E2 [08:41:28]MH_I2C_Read... [08:41:28]Read from MH i2c: E2 03 00 [08:41:28]MH_I2C_Read... [08:41:28]Read from MH i2c: E2 03 00 3F 58 00 90 00 0B [08:41:28]RAPDU: 90 00 [08:41:28]wFMCommunicate OK [08:41:28]wFMCommunicate request_size=10 [08:41:28]MH_SAM_APDU [08:41:28]CAPDU: 80 0D 02 02 05 0A 2E 91 30 DC [08:41:28]Write to MH i2c: E2 0D 00 40 58 80 0D 02 02 05 00 0A 2E 91 30 DC 00 00 F1 [08:41:28]Write i2c OK [08:41:28]MH_I2C_Read... [08:41:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:28]Read from MH i2c: E2 [08:41:28]MH_I2C_Read... [08:41:28]Read from MH i2c: E2 03 00 [08:41:28]MH_I2C_Read... [08:41:28]Read from MH i2c: E2 03 00 40 58 00 90 00 0C [08:41:28]RAPDU: 90 00 [08:41:28]wFMCommunicate OK [08:41:28]wFMCommunicate request_size=4 [08:41:28]MH_SAM_APDU [08:41:28]CAPDU: 80 0D 03 02 [08:41:28]Write to MH i2c: E2 08 00 41 58 80 0D 03 02 00 00 00 00 14 [08:41:28]Write i2c OK [08:41:28]MH_I2C_Read... [08:41:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:41:28]Read from MH i2c: E2 [08:41:28]MH_I2C_Read... [08:41:28]Read from MH i2c: E2 0B 00 [08:41:28]MH_I2C_Read... [08:41:28]Read from MH i2c: E2 0B 00 41 58 00 56 2E FE 71 5B 16 FD B6 90 00 2C [08:41:28]RAPDU: 56 2E FE 71 5B 16 FD B6 90 00 [08:41:28]wFMCommunicate OK [08:41:28]SAM_PROTO_SignData done [08:41:28]FM_MakeSignedData done [08:41:28]CreateOFDProtocolMessage [08:41:28]wFMCommunicate request_size=4 [08:41:28]MH_SAM_APDU [08:41:28]CAPDU: 80 11 00 00 [08:41:28]Write to MH i2c: E2 08 00 42 58 80 11 00 00 00 00 00 00 14 [08:41:28]Write i2c OK [08:41:28]MH_I2C_Read... [08:41:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:28]Read from MH i2c: E2 [08:41:28]MH_I2C_Read... [08:41:28]Read from MH i2c: E2 17 00 [08:41:28]MH_I2C_Read... [08:41:28]Read from MH i2c: E2 17 00 42 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 61 [08:41:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:41:28]wFMCommunicate OK [08:41:28]CreateOFDProtocolMessage done [08:41:28]OFDSenderStorePacket 260543 [08:41:28]StoreOFDPacket docnum=260543 [08:41:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 B5 DE 07 01 74 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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 BA B3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BF F9 03 00 35 04 06 00 98 0A 2E 91 30 DC 56 2E FE 71 5B 16 FD B6 [08:41:28]CheckFolder [08:41:28]dirname=/storage/ofd_packets [08:41:28]CheckFolder done [08:41:28]ProducePacketName [08:41:28]name=ofd_packets/00260543 [08:41:28]NVStorageSaveData ofd_packets/00260543 [08:41:28]File name is /storage/ofd_packets/00260543 [08:41:28]Write 301 bytes [08:41:28]NVStorageSaveData done [08:41:28]OFDSenderStorePacket done [08:41:28]KKMCreateOFDPacket done [08:41:28]NVStorageSaveData kkm_last_timestamp [08:41:28]File name is /storage/kkm_last_timestamp [08:41:28]Write 4 bytes [08:41:28]NVStorageSaveData done [08:41:28]ExternCall_PrintAddStr [08:41:28]wPrintStart [08:41:28]Write to MH i2c: 01 00 00 43 58 9B [08:41:28]Write i2c OK [08:41:28]MH_I2C_Read... [08:41:28]Read from MH i2c: 01 [08:41:28]MH_I2C_Read... [08:41:28]Read from MH i2c: 01 07 00 [08:41:28]MH_I2C_Read... [08:41:28]Read from MH i2c: 01 07 00 43 58 00 00 00 00 00 FF 0F B0 [08:41:28]RasterBufferAndPrint [08:41:28]line Счет N : (1)1036087 [08:41:28]line ИНН: 02508201610067 [08:41:28]line Контрольно-Кассовый Чек [08:41:28]line ПРОДАЖА [08:41:28]line ТРК (МРК, ГНК) : 13 [08:41:28]line Товар: 2710124500 [08:41:28]line Аи-95-К-5 [08:41:28]line 13.480 * 74.20 [08:41:28]line = 1000.22 [08:41:28]line НДС 12% НСП 1% [08:41:28]line > о реализуемом товаре [08:41:28]line ИТОГО: 1000.22 [08:41:28]line НСП 1% : 8.85 [08:41:28]line НДС 12% : 106.22 [08:41:28]line Наличными: 0.00 [08:41:28]line Безнал.: 1000.22 [08:41:28]line Место: АЗС № 94 "Партнер Нефть" [08:41:28]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [08:41:28]line СНО: Общий режим [08:41:28]line Чек 101 18.08.2024 08:41 [08:41:28]line Смена: 449 ФФД: 1.0 [08:41:28]line ЗНМ: 0300000099 [08:41:28]line РНМ: 0000000000091865 [08:41:28]line Версия ККМ: 001 [08:41:28]line Платежная система: O! деньги [08:41:28]line ФМ: 0000000000871820 [08:41:28]line ФД: 260543 [08:41:28]line ФПД: 167169498362076 [08:41:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T084130&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260543&fm=167169498362076&tin=02508201610067®Number=0000000000091865&sum=100022 [08:41:28]written 0, free lines is 4095 [08:41:28]OFD Sender: Processing packet 260543 [packets to send 192, broken 191] [08:41:28]ProducePacketName [08:41:28]name=ofd_packets/00260543 [08:41:28]OFD Sender: To server: pG, [08:41:28]CommunicateWithHost lk.salyk.kg:30040 [08:41:28]ConnectInit lk.salyk.kg [08:41:28]Connected sock=10 [08:41: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 30 0F 01 00 00 B5 DE 07 01 74 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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 BA B3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BF F9 03 00 35 04 06 00 98 0A 2E 91 30 DC 56 2E FE 71 5B 16 FD B6 [08:41: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 30 4F 00 00 00 3E 1E 47 00 56 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 30 10 04 04 00 BF F9 03 00 F4 03 04 00 10 5D C1 66 B6 04 01 00 00 CC A8 AF 55 6A 28 37 F5 [08:41:29]CommunicateWithHost err = 0 [08:41:29]CheckOFDResponse [08:41:29]1017 (14) - 77093643461234 [08:41:29]1041 (16) - 0000000000871820 [08:41:29]1040 (4) - 260543 [08:41:29]1012 (4) - 18.08.2024 02:31 [08:41:29]1206 (1) - 0 [08:41:29]OFD Sender: Remove packet 260543 [08:41:29]ProducePacketName [08:41:29]name=ofd_packets/00260543 [08:41:29]NVStorageDeleteData [08:41:29]Write to MH i2c: 01 00 00 6D 58 C5 [08:41:29]Write i2c OK [08:41:29]MH_I2C_Read... [08:41:29]Read from MH i2c: 01 [08:41:29]MH_I2C_Read... [08:41:29]Read from MH i2c: 01 07 00 [08:41:29]MH_I2C_Read... [08:41:29]Read from MH i2c: 01 07 00 6D 58 00 00 00 00 00 8D 0C 65 [08:41:29]RasterBufferAndPrint [08:41:29]line [08:41:29]line [08:41:29]line [08:41:29]line [08:41:29]line [08:41:29]written 0, free lines is 3216 [08:41:29]MH_Cut [08:41:29]Write to MH i2c: D1 01 00 74 58 01 9E [08:41:29]Write i2c OK [08:41:29]MH_I2C_Read... [08:41:29]Read from MH i2c: D1 [08:41:29]MH_I2C_Read... [08:41:29]Read from MH i2c: D1 01 00 [08:41:29]MH_I2C_Read... [08:41:29]Read from MH i2c: D1 01 00 74 58 00 9D [08:41:29]Write to MH i2c: 01 00 00 75 58 CD [08:41:29]Write i2c OK [08:41:29]MH_I2C_Read... [08:41:29]OFD Sender: No OFD packet to send [08:41:30]*** Cut start [08:41:30]*** Purtial cut [08:41:30]*** Stage 1: CUTSNS_PIN = 1 [08:41:32]Read from MH i2c: 01 [08:41:32]MH_I2C_Read... [08:41:32]*** Stop cut motor [08:41:32]*** Cut end [08:41:32]Read from MH i2c: 01 07 00 [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: 01 07 00 75 58 00 00 00 00 00 FF 0F E2 [08:41:32]process_action close_receipt done [08:41:32]requested_data is exist [08:41:32]produce_requested_data [08:41:32]requested_item fm.sn is exist - process it [08:41:32]wFMCommunicate request_size=4 [08:41:32]MH_SAM_APDU [08:41:32]CAPDU: 80 11 00 00 [08:41:32]Write to MH i2c: E2 08 00 76 58 80 11 00 00 00 00 00 00 48 [08:41:32]Write i2c OK [08:41:32]MH_I2C_Read... [08:41:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:32]Read from MH i2c: E2 [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: E2 17 00 [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: E2 17 00 76 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 95 [08:41:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:41:32]wFMCommunicate OK [08:41:32]requested_item fd.num is exist - process it [08:41:32]SAM_PROTO_GetFieldsCounters [08:41:32]wFMCommunicate request_size=4 [08:41:32]MH_SAM_APDU [08:41:32]CAPDU: 80 13 00 00 [08:41:32]Write to MH i2c: E2 08 00 77 58 80 13 00 00 00 00 00 00 4B [08:41:32]Write i2c OK [08:41:32]MH_I2C_Read... [08:41:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:41:32]Read from MH i2c: E2 [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: E2 62 00 [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: E2 62 00 77 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 BF F9 03 00 0E 04 04 00 C1 01 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 16 [08:41: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 BF F9 03 00 0E 04 04 00 C1 01 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 [08:41:32]wFMCommunicate OK [08:41:32]SAM_PROTO_GetFieldsCounters done [08:41:32]requested_item shift.num is exist - process it [08:41:32]requested_item shift.opened is exist - process it [08:41:32]req_shift_opened [08:41:32]FM_GetShiftState [08:41:32]SAM_PROTO_GetShiftState [08:41:32]wFMCommunicate request_size=4 [08:41:32]MH_SAM_APDU [08:41:32]CAPDU: 80 13 01 00 [08:41:32]Write to MH i2c: E2 08 00 78 58 80 13 01 00 00 00 00 00 4D [08:41:32]Write i2c OK [08:41:32]MH_I2C_Read... [08:41:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:32]Read from MH i2c: E2 [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: E2 0E 00 [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: E2 0E 00 78 58 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 8A [08:41:32]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:41:32]wFMCommunicate OK [08:41:32]SAM_PROTO_GetShiftState done [08:41:32]FM_GetShiftState done [08:41:32]req_shift_opened done [08:41:32]requested_item shift.open_date is exist - process it [08:41:32]req_shift_open_date [08:41:32]req_shift_open_date done [08:41:32]produce_requested_data done [08:41:32]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260543,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [08:41:32]process_action_free close_receipt [08:41:32]json_value_free [08:41:32]json_value_free done [08:41:32]process_json_proto returns [08:41:32]Send response to host [08:41:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260543,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [08:41:32]free response buf [08:41:32]execute_script done [08:41:32]execute_script returns [08:41:32]free content buf [08:41:32]Sock 7.Close socket [08:41:32]Sock 7.Thread stoped [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:29]OFD Sender: No OFD packet to send [08:44:34]OFD Sender: No OFD packet to send [08:44:39]OFD Sender: No OFD packet to send [08:44:44]OFD Sender: No OFD packet to send [08:44:49]OFD Sender: No OFD packet to send [08:44:54]OFD Sender: No OFD packet to send [08:45:00]OFD Sender: No OFD packet to send [08:45:05]OFD Sender: No OFD packet to send [08:45:10]OFD Sender: No OFD packet to send [08:45:15]OFD Sender: No OFD packet to send [08:45:20]OFD Sender: No OFD packet to send [08:45:25]OFD Sender: No OFD packet to send [08:45:30]OFD Sender: No OFD packet to send [08:45:35]OFD Sender: No OFD packet to send [08:45:40]OFD Sender: No OFD packet to send [08:45:45]OFD Sender: No OFD packet to send [08:45:50]OFD Sender: No OFD packet to send [08:45:55]OFD Sender: No OFD packet to send [08:46:00]OFD Sender: No OFD packet to send [08:46:05]OFD Sender: No OFD packet to send [08:46:10]OFD Sender: No OFD packet to send [08:46:15]OFD Sender: No OFD packet to send [08:46:20]OFD Sender: No OFD packet to send [08:46:25]OFD Sender: No OFD packet to send [08:46:30]OFD Sender: No OFD packet to send [08:46:35]OFD Sender: No OFD packet to send [08:46:40]OFD Sender: No OFD packet to send [08:46:45]OFD Sender: No OFD packet to send [08:46:50]OFD Sender: No OFD packet to send [08:46:55]OFD Sender: No OFD packet to send [08:47:00]OFD Sender: No OFD packet to send [08:47:05]OFD Sender: No OFD packet to send [08:47:10]OFD Sender: No OFD packet to send [08:47:15]OFD Sender: No OFD packet to send [08:47:20]OFD Sender: No OFD packet to send [08:47:25]OFD Sender: No OFD packet to send [08:47:30]OFD Sender: No OFD packet to send [08:47:35]OFD Sender: No OFD packet to send [08:47:40]OFD Sender: No OFD packet to send [08:47:45]OFD Sender: No OFD packet to send [08:47:50]OFD Sender: No OFD packet to send [08:47:55]OFD Sender: No OFD packet to send [08:48:00]OFD Sender: No OFD packet to send [08:48:05]OFD Sender: No OFD packet to send [08:48:10]OFD Sender: No OFD packet to send [08:48:15]OFD Sender: No OFD packet to send [08:48:20]OFD Sender: No OFD packet to send [08:48:25]OFD Sender: No OFD packet to send [08:48:30]OFD Sender: No OFD packet to send [08:48:35]OFD Sender: No OFD packet to send [08:48:40]OFD Sender: No OFD packet to send [08:48:45]OFD Sender: No OFD packet to send [08:48:50]OFD Sender: No OFD packet to send [08:48:55]OFD Sender: No OFD packet to send [08:48:56]accept exits with 9 [08:48:56]New connection [08:48:56]New thread 3066473828 created [08:48:56]Thread 3066617188 joined [08:48:56]Waiting for new connection... [08:48:56] Sock 9.Parse request [08:48:56]Sock 9.Check first char [08:48:56]Sock 9.First char is OK [08:48:56]request: POST /json_proto HTTP/1.0 [08:48:56]Method: POST [08:48:56]URL: /json_proto [08:48:56]Method is POST - this is cgi request [08:48:56]url: /json_proto [08:48:56]query_string will be loaded in cgi processing [08:48:56]execute_cgi json_proto POST (null) [08:48:56]execute_cgi path=json_proto method=POST [08:48:56]POST find Content-Length [08:48:56]Host: 172.17.55.133:8080 [08:48:56]Content-Length: 678 [08:48:56]Content-Type: application/json [08:48:56] [08:48:56]POST finish read [08:48:56]Found Content-Length = 678 [08:48:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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" ] } } [08:48:56]execute_script... [08:48: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)1036088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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" ] } } [08:48:56]POST & json_proto [08:48:56]process_json_proto [08:48:56]json parsed OK: [08:48:56]protocol is kg_v1.0 [08:48:56]action value=close_receipt [08:48:56]process_action close_receipt [08:48:56]cmd_close_receipt [08:48:56]MH_GetDate [08:48:56]Write to MH i2c: F0 00 00 79 58 C0 [08:48:56]Write i2c OK [08:48:56]MH_I2C_Read... [08:48:56]Read from MH i2c: F0 [08:48:56]MH_I2C_Read... [08:48:56]Read from MH i2c: F0 09 00 [08:48:56]MH_I2C_Read... [08:48:56]Read from MH i2c: F0 09 00 79 58 00 7C B5 C1 66 34 48 D8 65 DA [08:48:56]GetLastDocTimeStamp 1723970490 [08:48:56]current date 1723970940 [08:48:56]FM_GetShiftState [08:48:56]SAM_PROTO_GetShiftState [08:48:56]wFMCommunicate request_size=4 [08:48:56]MH_SAM_APDU [08:48:56]CAPDU: 80 13 01 00 [08:48:56]Write to MH i2c: E2 08 00 7A 58 80 13 01 00 00 00 00 00 4F [08:48:56]Write i2c OK [08:48:56]MH_I2C_Read... [08:48:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:56]Read from MH i2c: E2 [08:48:56]MH_I2C_Read... [08:48:56]Read from MH i2c: E2 0E 00 [08:48:56]MH_I2C_Read... [08:48:56]Read from MH i2c: E2 0E 00 7A 58 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 8C [08:48:56]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:48:56]wFMCommunicate OK [08:48:56]SAM_PROTO_GetShiftState done [08:48:56]FM_GetShiftState done [08:48:56]opened in 1723940556 [08:48:56]opened+sec_in_day 1724026956 [08:48:56]quantity*price = 20001 [08:48:56]sum+1 = 20002 [08:48:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 102 18.08.2024 08:49 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260544 ФПД: 92182646407331 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T084900&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260544&fm=92182646407331&tin=02508201610067®Number=0000000000091865&sum=20000 [08:48:57]StoreToDocumentArchive [08:48:57]shift 449 fd 260544 [08:48:57]save to /storage/0449/doc_00260544 [08:48:57]save last doc name /storage/0449/doc_00260544 to /storage/kkm_last_doc_name [08:48:57]save OK [08:48:57]Clear old archive folders... [08:48:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:48:57]tlvbuf is 003D0780 [08:48:57]SAM_PROTO_ClearQueue [08:48:57]wFMCommunicate request_size=4 [08:48:57]MH_SAM_APDU [08:48:57]CAPDU: 80 09 00 00 [08:48:57]Write to MH i2c: E2 08 00 87 58 80 09 00 00 00 00 00 00 51 [08:48:57]Write i2c OK [08:48:57]MH_I2C_Read... [08:48:57]Read from MH i2c: E2 [08:48:57]MH_I2C_Read... [08:48:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:57]Read from MH i2c: E2 03 00 [08:48:57]MH_I2C_Read... [08:48:57]Read from MH i2c: E2 03 00 87 58 00 90 00 53 [08:48:57]RAPDU: 90 00 [08:48:57]wFMCommunicate OK [08:48:57]SAM_PROTO_ClearQueue done [08:48:57]KKMCreateOFDPacket [08:48:57]OFDProtocolAddRootSTLVToBuf [08:48:57]FM_MakeSignedData [08:48:57]FM_MakeSignedData [08:48:57]SAM_PROTO_SignData [08:48:57]wFMCommunicate request_size=4 [08:48:57]MH_SAM_APDU [08:48:57]CAPDU: 80 0D 01 02 [08:48:57]Write to MH i2c: E2 08 00 88 58 80 0D 01 02 00 00 00 00 59 [08:48:57]Write i2c OK [08:48:57]MH_I2C_Read... [08:48:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:57]Read from MH i2c: E2 [08:48:57]MH_I2C_Read... [08:48:57]Read from MH i2c: E2 03 00 [08:48:57]MH_I2C_Read... [08:48:57]Read from MH i2c: E2 03 00 88 58 00 90 00 54 [08:48:57]RAPDU: 90 00 [08:48:57]wFMCommunicate OK [08:48:57]wFMCommunicate request_size=255 [08:48:57]MH_SAM_APDU [08:48:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 7C B5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C0 F9 03 00 35 04 06 00 53 [08:48:57]Write to MH i2c: E2 02 01 89 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 7C B5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C0 F9 03 00 35 04 06 00 53 00 00 67 [08:48:58]Write i2c OK [08:48:58]MH_I2C_Read... [08:48:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:58]Read from MH i2c: E2 [08:48:58]MH_I2C_Read... [08:48:58]Read from MH i2c: E2 03 00 [08:48:58]MH_I2C_Read... [08:48:58]Read from MH i2c: E2 03 00 89 58 00 90 00 55 [08:48:58]RAPDU: 90 00 [08:48:58]wFMCommunicate OK [08:48:58]wFMCommunicate request_size=10 [08:48:58]MH_SAM_APDU [08:48:58]CAPDU: 80 0D 02 02 05 D6 F1 E4 C0 A3 [08:48:58]Write to MH i2c: E2 0D 00 8A 58 80 0D 02 02 05 00 D6 F1 E4 C0 A3 00 00 74 [08:48:58]Write i2c OK [08:48:58]MH_I2C_Read... [08:48:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:58]Read from MH i2c: E2 [08:48:58]MH_I2C_Read... [08:48:58]Read from MH i2c: E2 03 00 [08:48:58]MH_I2C_Read... [08:48:58]Read from MH i2c: E2 03 00 8A 58 00 90 00 56 [08:48:58]RAPDU: 90 00 [08:48:58]wFMCommunicate OK [08:48:58]wFMCommunicate request_size=4 [08:48:58]MH_SAM_APDU [08:48:58]CAPDU: 80 0D 03 02 [08:48:58]Write to MH i2c: E2 08 00 8B 58 80 0D 03 02 00 00 00 00 5E [08:48:58]Write i2c OK [08:48:58]MH_I2C_Read... [08:48:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:58]Read from MH i2c: E2 [08:48:58]MH_I2C_Read... [08:48:58]Read from MH i2c: E2 0B 00 [08:48:58]MH_I2C_Read... [08:48:58]Read from MH i2c: E2 0B 00 8B 58 00 43 AD 3D 87 AE 7B CB CE 90 00 D5 [08:48:58]RAPDU: 43 AD 3D 87 AE 7B CB CE 90 00 [08:48:58]wFMCommunicate OK [08:48:58]SAM_PROTO_SignData done [08:48:58]FM_MakeSignedData done [08:48:58]CreateOFDProtocolMessage [08:48:58]wFMCommunicate request_size=4 [08:48:58]MH_SAM_APDU [08:48:58]CAPDU: 80 11 00 00 [08:48:58]Write to MH i2c: E2 08 00 8C 58 80 11 00 00 00 00 00 00 5E [08:48:58]Write i2c OK [08:48:58]MH_I2C_Read... [08:48:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:58]Read from MH i2c: E2 [08:48:58]MH_I2C_Read... [08:48:58]Read from MH i2c: E2 17 00 [08:48:58]MH_I2C_Read... [08:48:58]Read from MH i2c: E2 17 00 8C 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 AB [08:48:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:48:58]wFMCommunicate OK [08:48:58]CreateOFDProtocolMessage done [08:48:58]OFDSenderStorePacket 260544 [08:48:58]StoreOFDPacket docnum=260544 [08:48:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 61 F6 07 01 77 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 7C B5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C0 F9 03 00 35 04 06 00 53 D6 F1 E4 C0 A3 43 AD 3D 87 AE 7B CB CE [08:48:58]CheckFolder [08:48:58]dirname=/storage/ofd_packets [08:48:58]CheckFolder done [08:48:58]ProducePacketName [08:48:58]name=ofd_packets/00260544 [08:48:58]NVStorageSaveData ofd_packets/00260544 [08:48:58]File name is /storage/ofd_packets/00260544 [08:48:58]Write 301 bytes [08:48:58]NVStorageSaveData done [08:48:58]OFDSenderStorePacket done [08:48:58]KKMCreateOFDPacket done [08:48:58]NVStorageSaveData kkm_last_timestamp [08:48:58]File name is /storage/kkm_last_timestamp [08:48:58]Write 4 bytes [08:48:58]NVStorageSaveData done [08:48:58]ExternCall_PrintAddStr [08:48:58]wPrintStart [08:48:58]Write to MH i2c: 01 00 00 8D 58 E5 [08:48:58]Write i2c OK [08:48:58]MH_I2C_Read... [08:48:58]Read from MH i2c: 01 [08:48:58]MH_I2C_Read... [08:48:58]Read from MH i2c: 01 07 00 [08:48:58]MH_I2C_Read... [08:48:58]Read from MH i2c: 01 07 00 8D 58 00 00 00 00 00 FF 0F FA [08:48:58]RasterBufferAndPrint [08:48:58]line Счет N : (1)1036088 [08:48:58]line ИНН: 02508201610067 [08:48:58]line Контрольно-Кассовый Чек [08:48:58]line ПРОДАЖА [08:48:58]line ТРК (МРК, ГНК) : 32 [08:48:58]line Товар: 2710124130 [08:48:58]line Аи-92-К-5 [08:48:58]line 2.950 * 67.80 [08:48:58]line = 200.01 [08:48:58]line НДС 12% НСП 1% [08:48:58]line > о реализуемом товаре [08:48:58]line ОКРУГЛЕНИЕ: -0.01 [08:48:58]line ИТОГО: 200.00 [08:48:58]line Внесено: 200.00 [08:48:58]line СДАЧА: 0.00 [08:48:58]line НСП 1% : 1.77 [08:48:58]line НДС 12% : 21.24 [08:48:58]line Наличными: 200.00 [08:48:58]line Безнал.: 0.00 [08:48:58]line Место: АЗС № 94 "Партнер Нефть" [08:48:58]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [08:48:58]line СНО: Общий режим [08:48:58]line Чек 102 18.08.2024 08:49 [08:48:58]line Смена: 449 ФФД: 1.0 [08:48:58]line ЗНМ: 0300000099 [08:48:58]line РНМ: 0000000000091865 [08:48:58]line Версия ККМ: 001 [08:48:58]line ФМ: 0000000000871820 [08:48:58]line ФД: 260544 [08:48:58]line ФПД: 92182646407331 [08:48:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T084900&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260544&fm=92182646407331&tin=02508201610067®Number=0000000000091865&sum=20000 [08:48:58]OFD Sender: Processing packet 260544 [packets to send 192, broken 191] [08:48:58]ProducePacketName [08:48:58]name=ofd_packets/00260544 [08:48:58]OFD Sender: To server: pG, [08:48:58]CommunicateWithHost lk.salyk.kg:30040 [08:48:58]ConnectInit lk.salyk.kg [08:48:58]written 0, free lines is 4095 [08:48:58]Connected sock=10 [08:48: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 30 0F 01 00 00 61 F6 07 01 77 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 7C B5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C0 F9 03 00 35 04 06 00 53 D6 F1 E4 C0 A3 43 AD 3D 87 AE 7B CB CE [08:48: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 30 4F 00 00 00 1B D5 47 00 45 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 30 10 04 04 00 C0 F9 03 00 F4 03 04 00 D2 5E C1 66 B6 04 01 00 00 76 44 45 0D A7 90 DA 89 [08:48:59]CommunicateWithHost err = 0 [08:48:59]CheckOFDResponse [08:48:59]1017 (14) - 77093643461234 [08:48:59]1041 (16) - 0000000000871820 [08:48:59]1040 (4) - 260544 [08:48:59]1012 (4) - 18.08.2024 02:39 [08:48:59]1206 (1) - 0 [08:48:59]OFD Sender: Remove packet 260544 [08:48:59]ProducePacketName [08:48:59]name=ofd_packets/00260544 [08:48:59]NVStorageDeleteData [08:48:59]Write to MH i2c: 01 00 00 B8 58 10 [08:48:59]Write i2c OK [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: 01 [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: 01 07 00 [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: 01 07 00 B8 58 00 00 00 00 00 68 0C 8B [08:48:59]RasterBufferAndPrint [08:48:59]line [08:48:59]line [08:48:59]line [08:48:59]line [08:48:59]line [08:48:59]written 0, free lines is 3179 [08:48:59]MH_Cut [08:48:59]Write to MH i2c: D1 01 00 BF 58 01 E9 [08:48:59]Write i2c OK [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: D1 [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: D1 01 00 [08:48:59]MH_I2C_Read... [08:48:59]Read from MH i2c: D1 01 00 BF 58 00 E8 [08:48:59]Write to MH i2c: 01 00 00 C0 58 18 [08:48:59]Write i2c OK [08:48:59]MH_I2C_Read... [08:48:59]OFD Sender: No OFD packet to send [08:49:00]*** Cut start [08:49:00]*** Purtial cut [08:49:00]*** Stage 1: CUTSNS_PIN = 1 [08:49:02]Read from MH i2c: 01 [08:49:02]MH_I2C_Read... [08:49:02]*** Stop cut motor [08:49:02]*** Cut end [08:49:02]Read from MH i2c: 01 07 00 [08:49:02]MH_I2C_Read... [08:49:02]Read from MH i2c: 01 07 00 C0 58 00 00 00 00 00 FF 0F 2D [08:49:02]process_action close_receipt done [08:49:02]requested_data is exist [08:49:02]produce_requested_data [08:49:02]requested_item fm.sn is exist - process it [08:49:02]wFMCommunicate request_size=4 [08:49:02]MH_SAM_APDU [08:49:02]CAPDU: 80 11 00 00 [08:49:02]Write to MH i2c: E2 08 00 C1 58 80 11 00 00 00 00 00 00 93 [08:49:02]Write i2c OK [08:49:02]MH_I2C_Read... [08:49:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:02]Read from MH i2c: E2 [08:49:02]MH_I2C_Read... [08:49:02]Read from MH i2c: E2 17 00 [08:49:02]MH_I2C_Read... [08:49:02]Read from MH i2c: E2 17 00 C1 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E0 [08:49:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:49:02]wFMCommunicate OK [08:49:02]requested_item fd.num is exist - process it [08:49:02]SAM_PROTO_GetFieldsCounters [08:49:02]wFMCommunicate request_size=4 [08:49:02]MH_SAM_APDU [08:49:02]CAPDU: 80 13 00 00 [08:49:02]Write to MH i2c: E2 08 00 C2 58 80 13 00 00 00 00 00 00 96 [08:49:02]Write i2c OK [08:49:02]MH_I2C_Read... [08:49:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:49:02]Read from MH i2c: E2 [08:49:02]MH_I2C_Read... [08:49:02]Read from MH i2c: E2 62 00 [08:49:02]MH_I2C_Read... [08:49:02]Read from MH i2c: E2 62 00 C2 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C0 F9 03 00 0E 04 04 00 C1 01 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 65 [08:49: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C0 F9 03 00 0E 04 04 00 C1 01 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 [08:49:02]wFMCommunicate OK [08:49:02]SAM_PROTO_GetFieldsCounters done [08:49:02]requested_item shift.num is exist - process it [08:49:02]requested_item shift.opened is exist - process it [08:49:02]req_shift_opened [08:49:02]FM_GetShiftState [08:49:02]SAM_PROTO_GetShiftState [08:49:02]wFMCommunicate request_size=4 [08:49:02]MH_SAM_APDU [08:49:02]CAPDU: 80 13 01 00 [08:49:02]Write to MH i2c: E2 08 00 C3 58 80 13 01 00 00 00 00 00 98 [08:49:02]Write i2c OK [08:49:02]MH_I2C_Read... [08:49:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:02]Read from MH i2c: E2 [08:49:02]MH_I2C_Read... [08:49:02]Read from MH i2c: E2 0E 00 [08:49:02]MH_I2C_Read... [08:49:02]Read from MH i2c: E2 0E 00 C3 58 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D5 [08:49:02]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:49:02]wFMCommunicate OK [08:49:02]SAM_PROTO_GetShiftState done [08:49:02]FM_GetShiftState done [08:49:02]req_shift_opened done [08:49:02]requested_item shift.open_date is exist - process it [08:49:02]req_shift_open_date [08:49:02]req_shift_open_date done [08:49:02]produce_requested_data done [08:49:02]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260544,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [08:49:02]process_action_free close_receipt [08:49:02]json_value_free [08:49:02]json_value_free done [08:49:02]process_json_proto returns [08:49:02]Send response to host [08:49:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260544,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [08:49:02]free response buf [08:49:02]execute_script done [08:49:02]execute_script returns [08:49:02]free content buf [08:49:02]Sock 9.Close socket [08:49:02]Sock 9.Thread stoped [08:49:04]OFD Sender: No OFD packet to send [08:49:09]OFD Sender: No OFD packet to send [08:49:14]OFD Sender: No OFD packet to send [08:49:19]OFD Sender: No OFD packet to send [08:49:24]OFD Sender: No OFD packet to send [08:49:29]OFD Sender: No OFD packet to send [08:49:31]accept exits with 7 [08:49:31]New connection [08:49:31]New thread 3066617188 created [08:49:31]Thread 3066473828 joined [08:49:31]Waiting for new connection... [08:49:31] Sock 7.Parse request [08:49:31]Sock 7.Check first char [08:49:31]Sock 7.First char is OK [08:49:31]request: POST /json_proto HTTP/1.0 [08:49:31]Method: POST [08:49:31]URL: /json_proto [08:49:31]Method is POST - this is cgi request [08:49:31]url: /json_proto [08:49:31]query_string will be loaded in cgi processing [08:49:31]execute_cgi json_proto POST (null) [08:49:31]execute_cgi path=json_proto method=POST [08:49:31]POST find Content-Length [08:49:31]Host: 172.17.55.133:8080 [08:49:31]Content-Length: 678 [08:49:31]Content-Type: application/json [08:49:31] [08:49:31]POST finish read [08:49:31]Found Content-Length = 678 [08:49:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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" ] } } [08:49:31]execute_script... [08:49: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)1036089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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" ] } } [08:49:31]POST & json_proto [08:49:31]process_json_proto [08:49:31]json parsed OK: [08:49:31]protocol is kg_v1.0 [08:49:31]action value=close_receipt [08:49:31]process_action close_receipt [08:49:31]cmd_close_receipt [08:49:31]MH_GetDate [08:49:31]Write to MH i2c: F0 00 00 C4 58 0B [08:49:31]Write i2c OK [08:49:31]MH_I2C_Read... [08:49:31]Read from MH i2c: F0 [08:49:31]MH_I2C_Read... [08:49:31]Read from MH i2c: F0 09 00 [08:49:31]MH_I2C_Read... [08:49:31]Read from MH i2c: F0 09 00 C4 58 00 9F B5 C1 66 34 48 D8 65 48 [08:49:31]GetLastDocTimeStamp 1723970940 [08:49:31]current date 1723970975 [08:49:31]FM_GetShiftState [08:49:31]SAM_PROTO_GetShiftState [08:49:31]wFMCommunicate request_size=4 [08:49:31]MH_SAM_APDU [08:49:31]CAPDU: 80 13 01 00 [08:49:31]Write to MH i2c: E2 08 00 C5 58 80 13 01 00 00 00 00 00 9A [08:49:31]Write i2c OK [08:49:31]MH_I2C_Read... [08:49:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:31]Read from MH i2c: E2 [08:49:31]MH_I2C_Read... [08:49:31]Read from MH i2c: E2 0E 00 [08:49:31]MH_I2C_Read... [08:49:31]Read from MH i2c: E2 0E 00 C5 58 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D7 [08:49:31]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:49:31]wFMCommunicate OK [08:49:31]SAM_PROTO_GetShiftState done [08:49:31]FM_GetShiftState done [08:49:31]opened in 1723940556 [08:49:31]opened+sec_in_day 1724026956 [08:49:31]quantity*price = 20001 [08:49:31]sum+1 = 20002 [08:49:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 103 18.08.2024 08:49 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260545 ФПД: 104737836125340 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T084935&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260545&fm=104737836125340&tin=02508201610067®Number=0000000000091865&sum=20000 [08:49:32]StoreToDocumentArchive [08:49:32]shift 449 fd 260545 [08:49:32]save to /storage/0449/doc_00260545 [08:49:32]save last doc name /storage/0449/doc_00260545 to /storage/kkm_last_doc_name [08:49:32]save OK [08:49:32]Clear old archive folders... [08:49:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:49:32]tlvbuf is 00540720 [08:49:32]SAM_PROTO_ClearQueue [08:49:32]wFMCommunicate request_size=4 [08:49:32]MH_SAM_APDU [08:49:32]CAPDU: 80 09 00 00 [08:49:32]Write to MH i2c: E2 08 00 D2 58 80 09 00 00 00 00 00 00 9C [08:49:32]Write i2c OK [08:49:32]MH_I2C_Read... [08:49:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:49:32]Read from MH i2c: E2 [08:49:32]MH_I2C_Read... [08:49:32]Read from MH i2c: E2 03 00 [08:49:32]MH_I2C_Read... [08:49:32]Read from MH i2c: E2 03 00 D2 58 00 90 00 9E [08:49:32]RAPDU: 90 00 [08:49:32]wFMCommunicate OK [08:49:32]SAM_PROTO_ClearQueue done [08:49:32]KKMCreateOFDPacket [08:49:32]OFDProtocolAddRootSTLVToBuf [08:49:32]FM_MakeSignedData [08:49:32]FM_MakeSignedData [08:49:32]SAM_PROTO_SignData [08:49:32]wFMCommunicate request_size=4 [08:49:32]MH_SAM_APDU [08:49:32]CAPDU: 80 0D 01 02 [08:49:32]Write to MH i2c: E2 08 00 D3 58 80 0D 01 02 00 00 00 00 A4 [08:49:32]Write i2c OK [08:49:32]MH_I2C_Read... [08:49:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:49:32]Read from MH i2c: E2 [08:49:32]MH_I2C_Read... [08:49:32]Read from MH i2c: E2 03 00 [08:49:32]MH_I2C_Read... [08:49:32]Read from MH i2c: E2 03 00 D3 58 00 90 00 9F [08:49:32]RAPDU: 90 00 [08:49:32]wFMCommunicate OK [08:49:32]wFMCommunicate request_size=255 [08:49:32]MH_SAM_APDU [08:49:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 9F B5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C1 F9 03 00 35 04 06 00 5F [08:49:32]Write to MH i2c: E2 02 01 D4 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 9F B5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C1 F9 03 00 35 04 06 00 5F 00 00 E3 [08:49:32]Write i2c OK [08:49:32]MH_I2C_Read... [08:49:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:32]Read from MH i2c: E2 [08:49:32]MH_I2C_Read... [08:49:32]Read from MH i2c: E2 03 00 [08:49:32]MH_I2C_Read... [08:49:32]Read from MH i2c: E2 03 00 D4 58 00 90 00 A0 [08:49:32]RAPDU: 90 00 [08:49:32]wFMCommunicate OK [08:49:32]wFMCommunicate request_size=10 [08:49:32]MH_SAM_APDU [08:49:32]CAPDU: 80 0D 02 02 05 42 2D 84 4C 9C [08:49:32]Write to MH i2c: E2 0D 00 D5 58 80 0D 02 02 05 00 42 2D 84 4C 9C 00 00 8C [08:49:32]Write i2c OK [08:49:32]MH_I2C_Read... [08:49:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:32]Read from MH i2c: E2 [08:49:32]MH_I2C_Read... [08:49:32]Read from MH i2c: E2 03 00 [08:49:32]MH_I2C_Read... [08:49:32]Read from MH i2c: E2 03 00 D5 58 00 90 00 A1 [08:49:32]RAPDU: 90 00 [08:49:32]wFMCommunicate OK [08:49:32]wFMCommunicate request_size=4 [08:49:32]MH_SAM_APDU [08:49:32]CAPDU: 80 0D 03 02 [08:49:32]Write to MH i2c: E2 08 00 D6 58 80 0D 03 02 00 00 00 00 A9 [08:49:32]Write i2c OK [08:49:32]MH_I2C_Read... [08:49:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:49:33]Read from MH i2c: E2 [08:49:33]MH_I2C_Read... [08:49:33]Read from MH i2c: E2 0B 00 [08:49:33]MH_I2C_Read... [08:49:33]Read from MH i2c: E2 0B 00 D6 58 00 A7 FA 10 5C 35 56 BB 50 90 00 4D [08:49:33]RAPDU: A7 FA 10 5C 35 56 BB 50 90 00 [08:49:33]wFMCommunicate OK [08:49:33]SAM_PROTO_SignData done [08:49:33]FM_MakeSignedData done [08:49:33]CreateOFDProtocolMessage [08:49:33]wFMCommunicate request_size=4 [08:49:33]MH_SAM_APDU [08:49:33]CAPDU: 80 11 00 00 [08:49:33]Write to MH i2c: E2 08 00 D7 58 80 11 00 00 00 00 00 00 A9 [08:49:33]Write i2c OK [08:49:33]MH_I2C_Read... [08:49:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:33]Read from MH i2c: E2 [08:49:33]MH_I2C_Read... [08:49:33]Read from MH i2c: E2 17 00 [08:49:33]MH_I2C_Read... [08:49:33]Read from MH i2c: E2 17 00 D7 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F6 [08:49:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:49:33]wFMCommunicate OK [08:49:33]CreateOFDProtocolMessage done [08:49:33]OFDSenderStorePacket 260545 [08:49:33]StoreOFDPacket docnum=260545 [08:49:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 C0 C2 07 01 66 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 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 9F B5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C1 F9 03 00 35 04 06 00 5F 42 2D 84 4C 9C A7 FA 10 5C 35 56 BB 50 [08:49:33]CheckFolder [08:49:33]dirname=/storage/ofd_packets [08:49:33]CheckFolder done [08:49:33]ProducePacketName [08:49:33]name=ofd_packets/00260545 [08:49:33]NVStorageSaveData ofd_packets/00260545 [08:49:33]File name is /storage/ofd_packets/00260545 [08:49:33]Write 301 bytes [08:49:33]NVStorageSaveData done [08:49:33]OFDSenderStorePacket done [08:49:33]KKMCreateOFDPacket done [08:49:33]NVStorageSaveData kkm_last_timestamp [08:49:33]File name is /storage/kkm_last_timestamp [08:49:33]Write 4 bytes [08:49:33]NVStorageSaveData done [08:49:33]ExternCall_PrintAddStr [08:49:33]wPrintStart [08:49:33]Write to MH i2c: 01 00 00 D8 58 30 [08:49:33]Write i2c OK [08:49:33]MH_I2C_Read... [08:49:33]Read from MH i2c: 01 [08:49:33]MH_I2C_Read... [08:49:33]Read from MH i2c: 01 07 00 [08:49:33]MH_I2C_Read... [08:49:33]Read from MH i2c: 01 07 00 D8 58 00 00 00 00 00 FF 0F 45 [08:49:33]RasterBufferAndPrint [08:49:33]line Счет N : (1)1036089 [08:49:33]line ИНН: 02508201610067 [08:49:33]line Контрольно-Кассовый Чек [08:49:33]line ПРОДАЖА [08:49:33]line ТРК (МРК, ГНК) : 42 [08:49:33]line Товар: 2710124130 [08:49:33]line Аи-92-К-5 [08:49:33]line 2.950 * 67.80 [08:49:33]line = 200.01 [08:49:33]line НДС 12% НСП 1% [08:49:33]line > о реализуемом товаре [08:49:33]line ОКРУГЛЕНИЕ: -0.01 [08:49:33]line ИТОГО: 200.00 [08:49:33]line Внесено: 200.00 [08:49:33]line СДАЧА: 0.00 [08:49:33]line НСП 1% : 1.77 [08:49:33]line НДС 12% : 21.24 [08:49:33]line Наличными: 200.00 [08:49:33]line Безнал.: 0.00 [08:49:33]line Место: АЗС № 94 "Партнер Нефть" [08:49:33]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [08:49:33]line СНО: Общий режим [08:49:33]line Чек 103 18.08.2024 08:49 [08:49:33]line Смена: 449 ФФД: 1.0 [08:49:33]line ЗНМ: 0300000099 [08:49:33]line РНМ: 0000000000091865 [08:49:33]line Версия ККМ: 001 [08:49:33]line ФМ: 0000000000871820 [08:49:33]line ФД: 260545 [08:49:33]line ФПД: 104737836125340 [08:49:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T084935&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260545&fm=104737836125340&tin=02508201610067®Number=0000000000091865&sum=20000 [08:49:33]written 0, free lines is 4095 [08:49:33]OFD Sender: Processing packet 260545 [packets to send 192, broken 191] [08:49:33]ProducePacketName [08:49:33]name=ofd_packets/00260545 [08:49:33]OFD Sender: To server: pG, [08:49:33]CommunicateWithHost lk.salyk.kg:30040 [08:49:33]ConnectInit lk.salyk.kg [08:49:33]Connected sock=10 [08:49: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 30 0F 01 00 00 C0 C2 07 01 66 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 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 9F B5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C1 F9 03 00 35 04 06 00 5F 42 2D 84 4C 9C A7 FA 10 5C 35 56 BB 50 [08:49: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 30 4F 00 00 00 A1 AA 47 00 9D 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 30 10 04 04 00 C1 F9 03 00 F4 03 04 00 F4 5E C1 66 B6 04 01 00 00 E8 88 F4 64 12 2A E1 BB [08:49:33]CommunicateWithHost err = 0 [08:49:33]CheckOFDResponse [08:49:33]1017 (14) - 77093643461234 [08:49:33]1041 (16) - 0000000000871820 [08:49:33]1040 (4) - 260545 [08:49:33]1012 (4) - 18.08.2024 02:39 [08:49:33]1206 (1) - 0 [08:49:33]OFD Sender: Remove packet 260545 [08:49:33]ProducePacketName [08:49:33]name=ofd_packets/00260545 [08:49:33]NVStorageDeleteData [08:49:33]Write to MH i2c: 01 00 00 03 59 5C [08:49:33]Write i2c OK [08:49:33]MH_I2C_Read... [08:49:33]Read from MH i2c: 01 [08:49:33]MH_I2C_Read... [08:49:33]Read from MH i2c: 01 07 00 [08:49:33]MH_I2C_Read... [08:49:33]Read from MH i2c: 01 07 00 03 59 00 00 00 00 00 68 0C D7 [08:49:33]RasterBufferAndPrint [08:49:33]line [08:49:33]line [08:49:33]line [08:49:33]line [08:49:33]line [08:49:33]written 0, free lines is 3180 [08:49:33]MH_Cut [08:49:33]Write to MH i2c: D1 01 00 0A 59 01 35 [08:49:33]Write i2c OK [08:49:33]MH_I2C_Read... [08:49:33]Read from MH i2c: D1 [08:49:33]MH_I2C_Read... [08:49:33]Read from MH i2c: D1 01 00 [08:49:33]MH_I2C_Read... [08:49:33]Read from MH i2c: D1 01 00 0A 59 00 34 [08:49:33]Write to MH i2c: 01 00 00 0B 59 64 [08:49:33]Write i2c OK [08:49:33]MH_I2C_Read... [08:49:33]OFD Sender: No OFD packet to send [08:49:34]*** Cut start [08:49:34]*** Purtial cut [08:49:34]*** Stage 1: CUTSNS_PIN = 1 [08:49:36]Read from MH i2c: 01 [08:49:36]MH_I2C_Read... [08:49:36]*** Stop cut motor [08:49:36]*** Cut end [08:49:36]Read from MH i2c: 01 07 00 [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: 01 07 00 0B 59 00 00 00 00 00 FF 0F 79 [08:49:36]process_action close_receipt done [08:49:36]requested_data is exist [08:49:36]produce_requested_data [08:49:36]requested_item fm.sn is exist - process it [08:49:36]wFMCommunicate request_size=4 [08:49:36]MH_SAM_APDU [08:49:36]CAPDU: 80 11 00 00 [08:49:36]Write to MH i2c: E2 08 00 0C 59 80 11 00 00 00 00 00 00 DF [08:49:36]Write i2c OK [08:49:36]MH_I2C_Read... [08:49:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:36]Read from MH i2c: E2 [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: E2 17 00 [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: E2 17 00 0C 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 2C [08:49:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:49:36]wFMCommunicate OK [08:49:36]requested_item fd.num is exist - process it [08:49:36]SAM_PROTO_GetFieldsCounters [08:49:36]wFMCommunicate request_size=4 [08:49:36]MH_SAM_APDU [08:49:36]CAPDU: 80 13 00 00 [08:49:36]Write to MH i2c: E2 08 00 0D 59 80 13 00 00 00 00 00 00 E2 [08:49:36]Write i2c OK [08:49:36]MH_I2C_Read... [08:49:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:49:36]Read from MH i2c: E2 [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: E2 62 00 [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: E2 62 00 0D 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C1 F9 03 00 0E 04 04 00 C1 01 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 B5 [08:49: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C1 F9 03 00 0E 04 04 00 C1 01 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 [08:49:36]wFMCommunicate OK [08:49:36]SAM_PROTO_GetFieldsCounters done [08:49:36]requested_item shift.num is exist - process it [08:49:36]requested_item shift.opened is exist - process it [08:49:36]req_shift_opened [08:49:36]FM_GetShiftState [08:49:36]SAM_PROTO_GetShiftState [08:49:36]wFMCommunicate request_size=4 [08:49:36]MH_SAM_APDU [08:49:36]CAPDU: 80 13 01 00 [08:49:36]Write to MH i2c: E2 08 00 0E 59 80 13 01 00 00 00 00 00 E4 [08:49:36]Write i2c OK [08:49:36]MH_I2C_Read... [08:49:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:37]Read from MH i2c: E2 [08:49:37]MH_I2C_Read... [08:49:37]Read from MH i2c: E2 0E 00 [08:49:37]MH_I2C_Read... [08:49:37]Read from MH i2c: E2 0E 00 0E 59 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 21 [08:49:37]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:49:37]wFMCommunicate OK [08:49:37]SAM_PROTO_GetShiftState done [08:49:37]FM_GetShiftState done [08:49:37]req_shift_opened done [08:49:37]requested_item shift.open_date is exist - process it [08:49:37]req_shift_open_date [08:49:37]req_shift_open_date done [08:49:37]produce_requested_data done [08:49:37]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260545,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [08:49:37]process_action_free close_receipt [08:49:37]json_value_free [08:49:37]json_value_free done [08:49:37]process_json_proto returns [08:49:37]Send response to host [08:49:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260545,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [08:49:37]free response buf [08:49:37]execute_script done [08:49:37]execute_script returns [08:49:37]free content buf [08:49:37]Sock 7.Close socket [08:49:37]Sock 7.Thread stoped [08:49:38]OFD Sender: No OFD packet to send [08:49:43]OFD Sender: No OFD packet to send [08:49:48]OFD Sender: No OFD packet to send [08:49:53]OFD Sender: No OFD packet to send [08:49:58]OFD Sender: No OFD packet to send [08:50:03]OFD Sender: No OFD packet to send [08:50:08]OFD Sender: No OFD packet to send [08:50:13]OFD Sender: No OFD packet to send [08:50:18]OFD Sender: No OFD packet to send [08:50:23]OFD Sender: No OFD packet to send [08:50:28]OFD Sender: No OFD packet to send [08:50:32]accept exits with 9 [08:50:32]New connection [08:50:32]New thread 3066473828 created [08:50:32]Thread 3066617188 joined [08:50:32]Waiting for new connection... [08:50:32] Sock 9.Parse request [08:50:32]Sock 9.Check first char [08:50:32]Sock 9.First char is OK [08:50:32]request: POST /json_proto HTTP/1.0 [08:50:32]Method: POST [08:50:32]URL: /json_proto [08:50:32]Method is POST - this is cgi request [08:50:32]url: /json_proto [08:50:32]query_string will be loaded in cgi processing [08:50:32]execute_cgi json_proto POST (null) [08:50:32]execute_cgi path=json_proto method=POST [08:50:32]POST find Content-Length [08:50:32]Host: 172.17.55.133:8080 [08:50:32]Content-Length: 804 [08:50:32]Content-Type: application/json [08:50:32] [08:50:32]POST finish read [08:50:32]Found Content-Length = 804 [08:50:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036090", "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" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:32]execute_script... [08:50: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)1036090", "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" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:32]POST & json_proto [08:50:32]process_json_proto [08:50:32]json parsed OK: [08:50:32]protocol is kg_v1.0 [08:50:32]action value=close_receipt [08:50:32]process_action close_receipt [08:50:32]cmd_close_receipt [08:50:32]MH_GetDate [08:50:32]Write to MH i2c: F0 00 00 0F 59 57 [08:50:32]Write i2c OK [08:50:32]MH_I2C_Read... [08:50:32]Read from MH i2c: F0 [08:50:32]MH_I2C_Read... [08:50:32]Read from MH i2c: F0 09 00 [08:50:32]MH_I2C_Read... [08:50:32]Read from MH i2c: F0 09 00 0F 59 00 DC B5 C1 66 34 48 D8 65 D1 [08:50:32]GetLastDocTimeStamp 1723970975 [08:50:32]current date 1723971036 [08:50:32]FM_GetShiftState [08:50:32]SAM_PROTO_GetShiftState [08:50:32]wFMCommunicate request_size=4 [08:50:32]MH_SAM_APDU [08:50:32]CAPDU: 80 13 01 00 [08:50:32]Write to MH i2c: E2 08 00 10 59 80 13 01 00 00 00 00 00 E6 [08:50:32]Write i2c OK [08:50:32]MH_I2C_Read... [08:50:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:32]Read from MH i2c: E2 [08:50:32]MH_I2C_Read... [08:50:32]Read from MH i2c: E2 0E 00 [08:50:32]MH_I2C_Read... [08:50:32]Read from MH i2c: E2 0E 00 10 59 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 23 [08:50:32]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:50:32]wFMCommunicate OK [08:50:32]SAM_PROTO_GetShiftState done [08:50:32]FM_GetShiftState done [08:50:32]opened in 1723940556 [08:50:32]opened+sec_in_day 1724026956 [08:50:32]quantity*price = 300064 [08:50:32]sum+1 = 300066 [08:50:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.65 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 0.00 Безнал.: 3000.65 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 104 18.08.2024 08:50 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260546 ФПД: 88729395261548 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T085036&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260546&fm=88729395261548&tin=02508201610067®Number=0000000000091865&sum=300065 [08:50:33]StoreToDocumentArchive [08:50:33]shift 449 fd 260546 [08:50:33]save to /storage/0449/doc_00260546 [08:50:33]save last doc name /storage/0449/doc_00260546 to /storage/kkm_last_doc_name [08:50:33]save OK [08:50:33]Clear old archive folders... [08:50:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:50:33]tlvbuf is 004535D0 [08:50:33]SAM_PROTO_ClearQueue [08:50:33]wFMCommunicate request_size=4 [08:50:33]MH_SAM_APDU [08:50:33]CAPDU: 80 09 00 00 [08:50:33]Write to MH i2c: E2 08 00 1D 59 80 09 00 00 00 00 00 00 E8 [08:50:33]Write i2c OK [08:50:33]MH_I2C_Read... [08:50:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:50:33]Read from MH i2c: E2 [08:50:33]MH_I2C_Read... [08:50:33]Read from MH i2c: E2 03 00 [08:50:33]MH_I2C_Read... [08:50:33]Read from MH i2c: E2 03 00 1D 59 00 90 00 EA [08:50:33]RAPDU: 90 00 [08:50:33]wFMCommunicate OK [08:50:33]SAM_PROTO_ClearQueue done [08:50:33]KKMCreateOFDPacket [08:50:33]OFDProtocolAddRootSTLVToBuf [08:50:33]FM_MakeSignedData [08:50:33]FM_MakeSignedData [08:50:33]SAM_PROTO_SignData [08:50:33]wFMCommunicate request_size=4 [08:50:33]MH_SAM_APDU [08:50:33]CAPDU: 80 0D 01 02 [08:50:33]Write to MH i2c: E2 08 00 1E 59 80 0D 01 02 00 00 00 00 F0 [08:50:33]Write i2c OK [08:50:33]MH_I2C_Read... [08:50:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:50:33]Read from MH i2c: E2 [08:50:33]MH_I2C_Read... [08:50:33]Read from MH i2c: E2 03 00 [08:50:33]MH_I2C_Read... [08:50:33]Read from MH i2c: E2 03 00 1E 59 00 90 00 EB [08:50:33]RAPDU: 90 00 [08:50:33]wFMCommunicate OK [08:50:33]wFMCommunicate request_size=255 [08:50:33]MH_SAM_APDU [08:50: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 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 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 DC B5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C2 F9 03 00 35 04 06 00 50 [08:50:33]Write to MH i2c: E2 02 01 1F 59 80 0D 02 02 FA 00 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 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 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 DC B5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C2 F9 03 00 35 04 06 00 50 00 00 22 [08:50:33]Write i2c OK [08:50:33]MH_I2C_Read... [08:50:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:33]Read from MH i2c: E2 [08:50:33]MH_I2C_Read... [08:50:33]Read from MH i2c: E2 03 00 [08:50:33]MH_I2C_Read... [08:50:33]Read from MH i2c: E2 03 00 1F 59 00 90 00 EC [08:50:33]RAPDU: 90 00 [08:50:33]wFMCommunicate OK [08:50:33]wFMCommunicate request_size=10 [08:50:33]MH_SAM_APDU [08:50:33]CAPDU: 80 0D 02 02 05 B2 EC 15 F0 6C [08:50:33]Write to MH i2c: E2 0D 00 20 59 80 0D 02 02 05 00 B2 EC 15 F0 6C 00 00 0C [08:50:33]Write i2c OK [08:50:33]MH_I2C_Read... [08:50:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:33]Read from MH i2c: E2 [08:50:33]MH_I2C_Read... [08:50:33]Read from MH i2c: E2 03 00 [08:50:33]MH_I2C_Read... [08:50:33]Read from MH i2c: E2 03 00 20 59 00 90 00 ED [08:50:33]RAPDU: 90 00 [08:50:33]wFMCommunicate OK [08:50:33]wFMCommunicate request_size=4 [08:50:33]MH_SAM_APDU [08:50:33]CAPDU: 80 0D 03 02 [08:50:33]Write to MH i2c: E2 08 00 21 59 80 0D 03 02 00 00 00 00 F5 [08:50:33]Write i2c OK [08:50:33]MH_I2C_Read... [08:50:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:50:33]Read from MH i2c: E2 [08:50:33]MH_I2C_Read... [08:50:33]Read from MH i2c: E2 0B 00 [08:50:33]MH_I2C_Read... [08:50:33]Read from MH i2c: E2 0B 00 21 59 00 04 61 62 EF 08 41 59 78 90 00 C6 [08:50:33]RAPDU: 04 61 62 EF 08 41 59 78 90 00 [08:50:33]wFMCommunicate OK [08:50:33]SAM_PROTO_SignData done [08:50:33]FM_MakeSignedData done [08:50:33]CreateOFDProtocolMessage [08:50:33]wFMCommunicate request_size=4 [08:50:33]MH_SAM_APDU [08:50:33]CAPDU: 80 11 00 00 [08:50:33]Write to MH i2c: E2 08 00 22 59 80 11 00 00 00 00 00 00 F5 [08:50:33]Write i2c OK [08:50:33]MH_I2C_Read... [08:50:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:33]Read from MH i2c: E2 [08:50:33]MH_I2C_Read... [08:50:33]Read from MH i2c: E2 17 00 [08:50:33]MH_I2C_Read... [08:50:33]Read from MH i2c: E2 17 00 22 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 42 [08:50:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:50:33]wFMCommunicate OK [08:50:33]CreateOFDProtocolMessage done [08:50:33]OFDSenderStorePacket 260546 [08:50:33]StoreOFDPacket docnum=260546 [08:50:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 5E F6 07 01 B4 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 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 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 DC B5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C2 F9 03 00 35 04 06 00 50 B2 EC 15 F0 6C 04 61 62 EF 08 41 59 78 [08:50:33]CheckFolder [08:50:33]dirname=/storage/ofd_packets [08:50:33]CheckFolder done [08:50:33]ProducePacketName [08:50:33]name=ofd_packets/00260546 [08:50:33]NVStorageSaveData ofd_packets/00260546 [08:50:33]File name is /storage/ofd_packets/00260546 [08:50:33]Write 301 bytes [08:50:33]NVStorageSaveData done [08:50:33]OFDSenderStorePacket done [08:50:33]KKMCreateOFDPacket done [08:50:33]NVStorageSaveData kkm_last_timestamp [08:50:33]File name is /storage/kkm_last_timestamp [08:50:33]Write 4 bytes [08:50:33]NVStorageSaveData done [08:50:33]ExternCall_PrintAddStr [08:50:33]wPrintStart [08:50:33]Write to MH i2c: 01 00 00 23 59 7C [08:50:33]Write i2c OK [08:50:33]MH_I2C_Read... [08:50:33]Read from MH i2c: 01 [08:50:33]MH_I2C_Read... [08:50:33]Read from MH i2c: 01 07 00 [08:50:33]MH_I2C_Read... [08:50:33]Read from MH i2c: 01 07 00 23 59 00 00 00 00 00 FF 0F 91 [08:50:33]RasterBufferAndPrint [08:50:33]line Счет N : (1)1036090 [08:50:33]line ИНН: 02508201610067 [08:50:33]line Контрольно-Кассовый Чек [08:50:33]line ПРОДАЖА [08:50:33]line ТРК (МРК, ГНК) : 23 [08:50:33]line Товар: 2710124500 [08:50:33]line Аи-95-К-5 [08:50:33]line 40.440 * 74.20 [08:50:33]line = 3000.65 [08:50:33]line НДС 12% НСП 1% [08:50:33]line > о реализуемом товаре [08:50:33]line ИТОГО: 3000.65 [08:50:33]line НСП 1% : 26.55 [08:50:33]line НДС 12% : 318.65 [08:50:33]line Наличными: 0.00 [08:50:33]line Безнал.: 3000.65 [08:50:33]line Место: АЗС № 94 "Партнер Нефть" [08:50:33]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [08:50:33]line СНО: Общий режим [08:50:33]line Чек 104 18.08.2024 08:50 [08:50:33]line Смена: 449 ФФД: 1.0 [08:50:33]line ЗНМ: 0300000099 [08:50:33]line РНМ: 0000000000091865 [08:50:33]line Версия ККМ: 001 [08:50:33]line Платежная система: O! деньги [08:50:33]line ФМ: 0000000000871820 [08:50:33]line ФД: 260546 [08:50:33]line ФПД: 88729395261548 [08:50:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T085036&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260546&fm=88729395261548&tin=02508201610067®Number=0000000000091865&sum=300065 [08:50:34]written 0, free lines is 4095 [08:50:34]OFD Sender: Processing packet 260546 [packets to send 192, broken 191] [08:50:34]ProducePacketName [08:50:34]name=ofd_packets/00260546 [08:50:34]OFD Sender: To server: pG, [08:50:34]CommunicateWithHost lk.salyk.kg:30040 [08:50:34]ConnectInit lk.salyk.kg [08:50:34]Connected sock=7 [08:50: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 30 0F 01 00 00 5E F6 07 01 B4 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 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 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 DC B5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C2 F9 03 00 35 04 06 00 50 B2 EC 15 F0 6C 04 61 62 EF 08 41 59 78 [08:50: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 30 4F 00 00 00 E0 96 47 00 BE 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 30 10 04 04 00 C2 F9 03 00 F4 03 04 00 31 5F C1 66 B6 04 01 00 00 AF CB CD B5 47 62 7C DE [08:50:34]CommunicateWithHost err = 0 [08:50:34]CheckOFDResponse [08:50:34]1017 (14) - 77093643461234 [08:50:34]1041 (16) - 0000000000871820 [08:50:34]1040 (4) - 260546 [08:50:34]1012 (4) - 18.08.2024 02:40 [08:50:34]1206 (1) - 0 [08:50:34]OFD Sender: Remove packet 260546 [08:50:34]ProducePacketName [08:50:34]name=ofd_packets/00260546 [08:50:34]NVStorageDeleteData [08:50:34]Write to MH i2c: 01 00 00 4D 59 A6 [08:50:34]Write i2c OK [08:50:34]MH_I2C_Read... [08:50:34]Read from MH i2c: 01 [08:50:34]MH_I2C_Read... [08:50:34]Read from MH i2c: 01 07 00 [08:50:34]MH_I2C_Read... [08:50:34]Read from MH i2c: 01 07 00 4D 59 00 00 00 00 00 84 0C 3D [08:50:34]RasterBufferAndPrint [08:50:34]line [08:50:34]line [08:50:34]line [08:50:34]line [08:50:34]line [08:50:34]written 0, free lines is 3208 [08:50:34]MH_Cut [08:50:34]Write to MH i2c: D1 01 00 54 59 01 7F [08:50:34]Write i2c OK [08:50:34]MH_I2C_Read... [08:50:34]Read from MH i2c: D1 [08:50:34]MH_I2C_Read... [08:50:34]Read from MH i2c: D1 01 00 [08:50:34]MH_I2C_Read... [08:50:34]Read from MH i2c: D1 01 00 54 59 00 7E [08:50:34]Write to MH i2c: 01 00 00 55 59 AE [08:50:34]Write i2c OK [08:50:34]MH_I2C_Read... [08:50:34]OFD Sender: No OFD packet to send [08:50:35]*** Cut start [08:50:35]*** Purtial cut [08:50:35]*** Stage 1: CUTSNS_PIN = 1 [08:50:37]Read from MH i2c: 01 [08:50:37]MH_I2C_Read... [08:50:37]*** Stop cut motor [08:50:37]*** Cut end [08:50:37]Read from MH i2c: 01 07 00 [08:50:37]MH_I2C_Read... [08:50:37]Read from MH i2c: 01 07 00 55 59 00 00 00 00 00 FF 0F C3 [08:50:37]process_action close_receipt done [08:50:37]requested_data is exist [08:50:37]produce_requested_data [08:50:37]requested_item fm.sn is exist - process it [08:50:37]wFMCommunicate request_size=4 [08:50:37]MH_SAM_APDU [08:50:37]CAPDU: 80 11 00 00 [08:50:37]Write to MH i2c: E2 08 00 56 59 80 11 00 00 00 00 00 00 29 [08:50:37]Write i2c OK [08:50:37]MH_I2C_Read... [08:50:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:37]Read from MH i2c: E2 [08:50:37]MH_I2C_Read... [08:50:37]Read from MH i2c: E2 17 00 [08:50:37]MH_I2C_Read... [08:50:37]Read from MH i2c: E2 17 00 56 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 76 [08:50:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:50:37]wFMCommunicate OK [08:50:37]requested_item fd.num is exist - process it [08:50:37]SAM_PROTO_GetFieldsCounters [08:50:37]wFMCommunicate request_size=4 [08:50:37]MH_SAM_APDU [08:50:37]CAPDU: 80 13 00 00 [08:50:37]Write to MH i2c: E2 08 00 57 59 80 13 00 00 00 00 00 00 2C [08:50:37]Write i2c OK [08:50:37]MH_I2C_Read... [08:50:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:37]Read from MH i2c: E2 [08:50:37]MH_I2C_Read... [08:50:37]Read from MH i2c: E2 62 00 [08:50:37]MH_I2C_Read... [08:50:37]Read from MH i2c: E2 62 00 57 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C2 F9 03 00 0E 04 04 00 C1 01 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 03 [08:50:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C2 F9 03 00 0E 04 04 00 C1 01 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 [08:50:37]wFMCommunicate OK [08:50:37]SAM_PROTO_GetFieldsCounters done [08:50:37]requested_item shift.num is exist - process it [08:50:37]requested_item shift.opened is exist - process it [08:50:37]req_shift_opened [08:50:37]FM_GetShiftState [08:50:37]SAM_PROTO_GetShiftState [08:50:37]wFMCommunicate request_size=4 [08:50:37]MH_SAM_APDU [08:50:37]CAPDU: 80 13 01 00 [08:50:37]Write to MH i2c: E2 08 00 58 59 80 13 01 00 00 00 00 00 2E [08:50:37]Write i2c OK [08:50:37]MH_I2C_Read... [08:50:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:37]Read from MH i2c: E2 [08:50:37]MH_I2C_Read... [08:50:37]Read from MH i2c: E2 0E 00 [08:50:37]MH_I2C_Read... [08:50:37]Read from MH i2c: E2 0E 00 58 59 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 6B [08:50:37]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:50:37]wFMCommunicate OK [08:50:37]SAM_PROTO_GetShiftState done [08:50:37]FM_GetShiftState done [08:50:37]req_shift_opened done [08:50:37]requested_item shift.open_date is exist - process it [08:50:37]req_shift_open_date [08:50:37]req_shift_open_date done [08:50:37]produce_requested_data done [08:50:37]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260546,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [08:50:37]process_action_free close_receipt [08:50:37]json_value_free [08:50:37]json_value_free done [08:50:37]process_json_proto returns [08:50:37]Send response to host [08:50:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260546,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [08:50:37]free response buf [08:50:37]execute_script done [08:50:37]execute_script returns [08:50:37]free content buf [08:50:37]Sock 9.Close socket [08:50:37]Sock 9.Thread stoped [08:50:39]OFD Sender: No OFD packet to send [08:50:44]OFD Sender: No OFD packet to send [08:50:49]OFD Sender: No OFD packet to send [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:40]OFD Sender: No OFD packet to send [08:52:45]OFD Sender: No OFD packet to send [08:52:50]OFD Sender: No OFD packet to send [08:52:55]OFD Sender: No OFD packet to send [08:53:00]OFD Sender: No OFD packet to send [08:53:05]OFD Sender: No OFD packet to send [08:53:10]OFD Sender: No OFD packet to send [08:53:15]OFD Sender: No OFD packet to send [08:53:20]OFD Sender: No OFD packet to send [08:53:25]OFD Sender: No OFD packet to send [08:53:30]OFD Sender: No OFD packet to send [08:53:35]OFD Sender: No OFD packet to send [08:53:40]OFD Sender: No OFD packet to send [08:53:45]OFD Sender: No OFD packet to send [08:53:50]OFD Sender: No OFD packet to send [08:53:55]OFD Sender: No OFD packet to send [08:54:00]OFD Sender: No OFD packet to send [08:54:05]OFD Sender: No OFD packet to send [08:54:10]OFD Sender: No OFD packet to send [08:54:15]OFD Sender: No OFD packet to send [08:54:20]OFD Sender: No OFD packet to send [08:54:25]OFD Sender: No OFD packet to send [08:54:30]OFD Sender: No OFD packet to send [08:54:35]OFD Sender: No OFD packet to send [08:54:40]OFD Sender: No OFD packet to send [08:54:45]OFD Sender: No OFD packet to send [08:54:50]OFD Sender: No OFD packet to send [08:54:55]OFD Sender: No OFD packet to send [08:55:00]OFD Sender: No OFD packet to send [08:55:05]OFD Sender: No OFD packet to send [08:55:10]OFD Sender: No OFD packet to send [08:55:15]OFD Sender: No OFD packet to send [08:55:20]OFD Sender: No OFD packet to send [08:55:25]OFD Sender: No OFD packet to send [08:55:30]OFD Sender: No OFD packet to send [08:55:35]OFD Sender: No OFD packet to send [08:55:40]OFD Sender: No OFD packet to send [08:55:45]OFD Sender: No OFD packet to send [08:55:50]OFD Sender: No OFD packet to send [08:55:55]accept exits with 10 [08:55:55]New connection [08:55:55]New thread 3066617188 created [08:55:55]Thread 3066473828 joined [08:55:55]Waiting for new connection... [08:55:55] Sock 10.Parse request [08:55:55]Sock 10.Check first char [08:55:55]Sock 10.First char is OK [08:55:55]request: POST /json_proto HTTP/1.0 [08:55:55]Method: POST [08:55:55]URL: /json_proto [08:55:55]Method is POST - this is cgi request [08:55:55]url: /json_proto [08:55:55]query_string will be loaded in cgi processing [08:55:55]execute_cgi json_proto POST (null) [08:55:55]execute_cgi path=json_proto method=POST [08:55:55]POST find Content-Length [08:55:55]Host: 172.17.55.133:8080 [08:55:55]Content-Length: 809 [08:55:55]Content-Type: application/json [08:55:55] [08:55:55]POST finish read [08:55:55]Found Content-Length = 809 [08:55:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 30.190, "sum" : 2300.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2300.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:55]execute_script... [08:55:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 30.190, "sum" : 2300.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2300.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:55]POST & json_proto [08:55:55]process_json_proto [08:55:55]json parsed OK: [08:55:55]protocol is kg_v1.0 [08:55:55]action value=close_receipt [08:55:55]process_action close_receipt [08:55:55]cmd_close_receipt [08:55:55]MH_GetDate [08:55:55]Write to MH i2c: F0 00 00 59 59 A1 [08:55:55]Write i2c OK [08:55:55]MH_I2C_Read... [08:55:55]Read from MH i2c: F0 [08:55:55]MH_I2C_Read... [08:55:55]Read from MH i2c: F0 09 00 [08:55:55]MH_I2C_Read... [08:55:55]Read from MH i2c: F0 09 00 59 59 00 1E B7 C1 66 34 48 D8 65 5F [08:55:55]GetLastDocTimeStamp 1723971036 [08:55:55]current date 1723971358 [08:55:55]FM_GetShiftState [08:55:55]SAM_PROTO_GetShiftState [08:55:55]wFMCommunicate request_size=4 [08:55:55]MH_SAM_APDU [08:55:55]CAPDU: 80 13 01 00 [08:55:55]Write to MH i2c: E2 08 00 5A 59 80 13 01 00 00 00 00 00 30 [08:55:55]Write i2c OK [08:55:55]MH_I2C_Read... [08:55:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:55]Read from MH i2c: E2 [08:55:55]MH_I2C_Read... [08:55:55]Read from MH i2c: E2 0E 00 [08:55:55]MH_I2C_Read... [08:55:55]Read from MH i2c: E2 0E 00 5A 59 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 6D [08:55:55]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:55:55]wFMCommunicate OK [08:55:55]SAM_PROTO_GetShiftState done [08:55:55]FM_GetShiftState done [08:55:55]opened in 1723940556 [08:55:55]opened+sec_in_day 1724026956 [08:55:55]quantity*price = 230047 [08:55:55]sum+1 = 230049 [08:55:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2300.48 НСП 1% : 20.36 НДС 12% : 244.30 Наличными: 0.00 Безнал.: 2300.48 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 105 18.08.2024 08:55 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260547 ФПД: 134367857688089 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T085558&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260547&fm=134367857688089&tin=02508201610067®Number=0000000000091865&sum=230048 [08:55:56]StoreToDocumentArchive [08:55:56]shift 449 fd 260547 [08:55:56]save to /storage/0449/doc_00260547 [08:55:56]save last doc name /storage/0449/doc_00260547 to /storage/kkm_last_doc_name [08:55:56]save OK [08:55:56]Clear old archive folders... [08:55:56]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:55:56]tlvbuf is 003E2AE0 [08:55:56]SAM_PROTO_ClearQueue [08:55:56]wFMCommunicate request_size=4 [08:55:56]MH_SAM_APDU [08:55:56]CAPDU: 80 09 00 00 [08:55:56]Write to MH i2c: E2 08 00 67 59 80 09 00 00 00 00 00 00 32 [08:55:56]Write i2c OK [08:55:56]MH_I2C_Read... [08:55:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:56]Read from MH i2c: E2 [08:55:56]MH_I2C_Read... [08:55:56]Read from MH i2c: E2 03 00 [08:55:56]MH_I2C_Read... [08:55:56]Read from MH i2c: E2 03 00 67 59 00 90 00 34 [08:55:56]RAPDU: 90 00 [08:55:56]wFMCommunicate OK [08:55:56]SAM_PROTO_ClearQueue done [08:55:56]KKMCreateOFDPacket [08:55:56]OFDProtocolAddRootSTLVToBuf [08:55:56]FM_MakeSignedData [08:55:56]FM_MakeSignedData [08:55:56]SAM_PROTO_SignData [08:55:56]wFMCommunicate request_size=4 [08:55:56]MH_SAM_APDU [08:55:56]CAPDU: 80 0D 01 02 [08:55:56]Write to MH i2c: E2 08 00 68 59 80 0D 01 02 00 00 00 00 3A [08:55:56]Write i2c OK [08:55:56]MH_I2C_Read... [08:55:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:56]Read from MH i2c: E2 [08:55:56]MH_I2C_Read... [08:55:56]Read from MH i2c: E2 03 00 [08:55:56]MH_I2C_Read... [08:55:56]Read from MH i2c: E2 03 00 68 59 00 90 00 35 [08:55:56]RAPDU: 90 00 [08:55:56]wFMCommunicate OK [08:55:56]wFMCommunicate request_size=255 [08:55:56]MH_SAM_APDU [08:55:56]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EE 75 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 82 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 1E B7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C3 F9 03 00 35 04 06 00 [08:55:56]Write to MH i2c: E2 02 01 69 59 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EE 75 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 82 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 1E B7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C3 F9 03 00 35 04 06 00 00 00 DD [08:55:56]Write i2c OK [08:55:56]MH_I2C_Read... [08:55:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:56]Read from MH i2c: E2 [08:55:56]MH_I2C_Read... [08:55:56]Read from MH i2c: E2 03 00 [08:55:56]MH_I2C_Read... [08:55:56]Read from MH i2c: E2 03 00 69 59 00 90 00 36 [08:55:56]RAPDU: 90 00 [08:55:56]wFMCommunicate OK [08:55:56]wFMCommunicate request_size=11 [08:55:56]MH_SAM_APDU [08:55:56]CAPDU: 80 0D 02 02 06 7A 34 F4 6D 3E 19 [08:55:56]Write to MH i2c: E2 0E 00 6A 59 80 0D 02 02 06 00 7A 34 F4 6D 3E 19 00 00 AF [08:55:56]Write i2c OK [08:55:56]MH_I2C_Read... [08:55:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:56]Read from MH i2c: E2 [08:55:56]MH_I2C_Read... [08:55:56]Read from MH i2c: E2 03 00 [08:55:56]MH_I2C_Read... [08:55:56]Read from MH i2c: E2 03 00 6A 59 00 90 00 37 [08:55:56]RAPDU: 90 00 [08:55:56]wFMCommunicate OK [08:55:56]wFMCommunicate request_size=4 [08:55:56]MH_SAM_APDU [08:55:56]CAPDU: 80 0D 03 02 [08:55:56]Write to MH i2c: E2 08 00 6B 59 80 0D 03 02 00 00 00 00 3F [08:55:56]Write i2c OK [08:55:56]MH_I2C_Read... [08:55:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:56]Read from MH i2c: E2 [08:55:56]MH_I2C_Read... [08:55:56]Read from MH i2c: E2 0B 00 [08:55:56]MH_I2C_Read... [08:55:56]Read from MH i2c: E2 0B 00 6B 59 00 EF 84 52 83 BE 7A 0D 86 90 00 53 [08:55:56]RAPDU: EF 84 52 83 BE 7A 0D 86 90 00 [08:55:56]wFMCommunicate OK [08:55:56]SAM_PROTO_SignData done [08:55:56]FM_MakeSignedData done [08:55:56]CreateOFDProtocolMessage [08:55:56]wFMCommunicate request_size=4 [08:55:56]MH_SAM_APDU [08:55:56]CAPDU: 80 11 00 00 [08:55:56]Write to MH i2c: E2 08 00 6C 59 80 11 00 00 00 00 00 00 3F [08:55:56]Write i2c OK [08:55:56]MH_I2C_Read... [08:55:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:56]Read from MH i2c: E2 [08:55:56]MH_I2C_Read... [08:55:56]Read from MH i2c: E2 17 00 [08:55:56]MH_I2C_Read... [08:55:56]Read from MH i2c: E2 17 00 6C 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 8C [08:55:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:55:56]wFMCommunicate OK [08:55:56]CreateOFDProtocolMessage done [08:55:56]OFDSenderStorePacket 260547 [08:55:56]StoreOFDPacket docnum=260547 [08:55:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 3B 04 08 01 21 40 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EE 75 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 82 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 1E B7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C3 F9 03 00 35 04 06 00 7A 34 F4 6D 3E 19 EF 84 52 83 BE 7A 0D 86 [08:55:56]CheckFolder [08:55:56]dirname=/storage/ofd_packets [08:55:56]CheckFolder done [08:55:56]ProducePacketName [08:55:56]name=ofd_packets/00260547 [08:55:56]NVStorageSaveData ofd_packets/00260547 [08:55:56]File name is /storage/ofd_packets/00260547 [08:55:56]Write 302 bytes [08:55:56]NVStorageSaveData done [08:55:56]OFDSenderStorePacket done [08:55:56]KKMCreateOFDPacket done [08:55:56]NVStorageSaveData kkm_last_timestamp [08:55:56]File name is /storage/kkm_last_timestamp [08:55:56]Write 4 bytes [08:55:56]NVStorageSaveData done [08:55:56]ExternCall_PrintAddStr [08:55:56]wPrintStart [08:55:56]Write to MH i2c: 01 00 00 6D 59 C6 [08:55:56]Write i2c OK [08:55:56]MH_I2C_Read... [08:55:56]Read from MH i2c: 01 [08:55:56]MH_I2C_Read... [08:55:56]Read from MH i2c: 01 07 00 [08:55:56]MH_I2C_Read... [08:55:56]Read from MH i2c: 01 07 00 6D 59 00 00 00 00 00 FF 0F DB [08:55:56]RasterBufferAndPrint [08:55:56]line Счет N : (1)1036091 [08:55:56]line ИНН: 02508201610067 [08:55:56]line Контрольно-Кассовый Чек [08:55:56]line ПРОДАЖА [08:55:56]line ТРК (МРК, ГНК) : 33 [08:55:56]line Товар: 2710194210 [08:55:56]line ДТ(л)-К-4 [08:55:56]line 30.190 * 76.20 [08:55:56]line = 2300.48 [08:55:56]line НДС 12% НСП 1% [08:55:56]line > о реализуемом товаре [08:55:56]line ИТОГО: 2300.48 [08:55:56]line НСП 1% : 20.36 [08:55:56]line НДС 12% : 244.30 [08:55:56]line Наличными: 0.00 [08:55:56]line Безнал.: 2300.48 [08:55:56]line Место: АЗС № 94 "Партнер Нефть" [08:55:56]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [08:55:56]line СНО: Общий режим [08:55:56]line Чек 105 18.08.2024 08:55 [08:55:56]line Смена: 449 ФФД: 1.0 [08:55:56]line ЗНМ: 0300000099 [08:55:56]line РНМ: 0000000000091865 [08:55:56]line Версия ККМ: 001 [08:55:56]line Платежная система: O! деньги [08:55:56]line ФМ: 0000000000871820 [08:55:56]line ФД: 260547 [08:55:56]line ФПД: 134367857688089 [08:55:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T085558&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260547&fm=134367857688089&tin=02508201610067®Number=0000000000091865&sum=230048 [08:55:57]OFD Sender: Processing packet 260547 [packets to send 192, broken 191] [08:55:57]ProducePacketName [08:55:57]name=ofd_packets/00260547 [08:55:57]OFD Sender: To server: pG, [08:55:57]CommunicateWithHost lk.salyk.kg:30040 [08:55:57]ConnectInit lk.salyk.kg [08:55:57]written 0, free lines is 4095 [08:55:57]Connected sock=9 [08:55: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 30 10 01 00 00 3B 04 08 01 21 40 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EE 75 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 82 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 1E B7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C3 F9 03 00 35 04 06 00 7A 34 F4 6D 3E 19 EF 84 52 83 BE 7A 0D 86 [08:55: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 30 4F 00 00 00 B4 2C 47 00 2B D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 C3 F9 03 00 F4 03 04 00 74 60 C1 66 B6 04 01 00 00 83 3D 25 8A AF 69 E0 81 [08:55:57]CommunicateWithHost err = 0 [08:55:57]CheckOFDResponse [08:55:57]1017 (14) - 77093643461234 [08:55:57]1041 (16) - 0000000000871820 [08:55:57]1040 (4) - 260547 [08:55:57]1012 (4) - 18.08.2024 02:46 [08:55:57]1206 (1) - 0 [08:55:57]OFD Sender: Remove packet 260547 [08:55:57]ProducePacketName [08:55:57]name=ofd_packets/00260547 [08:55:57]NVStorageDeleteData [08:55:57]Write to MH i2c: 01 00 00 97 59 F0 [08:55:57]Write i2c OK [08:55:57]MH_I2C_Read... [08:55:57]Read from MH i2c: 01 [08:55:57]MH_I2C_Read... [08:55:57]Read from MH i2c: 01 07 00 [08:55:57]MH_I2C_Read... [08:55:57]Read from MH i2c: 01 07 00 97 59 00 00 00 00 00 86 0C 89 [08:55:57]RasterBufferAndPrint [08:55:57]line [08:55:57]line [08:55:57]line [08:55:57]line [08:55:57]line [08:55:57]written 0, free lines is 3210 [08:55:57]MH_Cut [08:55:57]Write to MH i2c: D1 01 00 9E 59 01 C9 [08:55:57]Write i2c OK [08:55:57]MH_I2C_Read... [08:55:57]Read from MH i2c: D1 [08:55:57]MH_I2C_Read... [08:55:57]Read from MH i2c: D1 01 00 [08:55:57]MH_I2C_Read... [08:55:57]Read from MH i2c: D1 01 00 9E 59 00 C8 [08:55:57]Write to MH i2c: 01 00 00 9F 59 F8 [08:55:57]Write i2c OK [08:55:57]MH_I2C_Read... [08:55:57]OFD Sender: No OFD packet to send [08:55:58]*** Cut start [08:55:58]*** Purtial cut [08:55:58]*** Stage 1: CUTSNS_PIN = 1 [08:56:00]Read from MH i2c: 01 [08:56:00]MH_I2C_Read... [08:56:00]*** Stop cut motor [08:56:00]*** Cut end [08:56:00]Read from MH i2c: 01 07 00 [08:56:00]MH_I2C_Read... [08:56:00]Read from MH i2c: 01 07 00 9F 59 00 00 00 00 00 FF 0F 0D [08:56:00]process_action close_receipt done [08:56:00]requested_data is exist [08:56:00]produce_requested_data [08:56:00]requested_item fm.sn is exist - process it [08:56:00]wFMCommunicate request_size=4 [08:56:00]MH_SAM_APDU [08:56:00]CAPDU: 80 11 00 00 [08:56:00]Write to MH i2c: E2 08 00 A0 59 80 11 00 00 00 00 00 00 73 [08:56:00]Write i2c OK [08:56:00]MH_I2C_Read... [08:56:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:00]Read from MH i2c: E2 [08:56:00]MH_I2C_Read... [08:56:00]Read from MH i2c: E2 17 00 [08:56:00]MH_I2C_Read... [08:56:00]Read from MH i2c: E2 17 00 A0 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C0 [08:56:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:56:00]wFMCommunicate OK [08:56:00]requested_item fd.num is exist - process it [08:56:00]SAM_PROTO_GetFieldsCounters [08:56:00]wFMCommunicate request_size=4 [08:56:00]MH_SAM_APDU [08:56:00]CAPDU: 80 13 00 00 [08:56:00]Write to MH i2c: E2 08 00 A1 59 80 13 00 00 00 00 00 00 76 [08:56:00]Write i2c OK [08:56:00]MH_I2C_Read... [08:56:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:56:00]Read from MH i2c: E2 [08:56:00]MH_I2C_Read... [08:56:00]Read from MH i2c: E2 62 00 [08:56:00]MH_I2C_Read... [08:56:00]Read from MH i2c: E2 62 00 A1 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C3 F9 03 00 0E 04 04 00 C1 01 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 51 [08:56: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C3 F9 03 00 0E 04 04 00 C1 01 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 [08:56:00]wFMCommunicate OK [08:56:00]SAM_PROTO_GetFieldsCounters done [08:56:00]requested_item shift.num is exist - process it [08:56:00]requested_item shift.opened is exist - process it [08:56:00]req_shift_opened [08:56:00]FM_GetShiftState [08:56:00]SAM_PROTO_GetShiftState [08:56:00]wFMCommunicate request_size=4 [08:56:00]MH_SAM_APDU [08:56:00]CAPDU: 80 13 01 00 [08:56:00]Write to MH i2c: E2 08 00 A2 59 80 13 01 00 00 00 00 00 78 [08:56:00]Write i2c OK [08:56:00]MH_I2C_Read... [08:56:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:00]Read from MH i2c: E2 [08:56:00]MH_I2C_Read... [08:56:00]Read from MH i2c: E2 0E 00 [08:56:00]MH_I2C_Read... [08:56:00]Read from MH i2c: E2 0E 00 A2 59 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B5 [08:56:00]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:56:00]wFMCommunicate OK [08:56:00]SAM_PROTO_GetShiftState done [08:56:00]FM_GetShiftState done [08:56:00]req_shift_opened done [08:56:00]requested_item shift.open_date is exist - process it [08:56:00]req_shift_open_date [08:56:00]req_shift_open_date done [08:56:00]produce_requested_data done [08:56:00]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260547,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [08:56:00]process_action_free close_receipt [08:56:00]json_value_free [08:56:00]json_value_free done [08:56:00]process_json_proto returns [08:56:00]Send response to host [08:56:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260547,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [08:56:00]free response buf [08:56:00]execute_script done [08:56:00]execute_script returns [08:56:00]free content buf [08:56:00]Sock 10.Close socket [08:56:00]Sock 10.Thread stoped [08:56:02]OFD Sender: No OFD packet to send [08:56:07]OFD Sender: No OFD packet to send [08:56:12]OFD Sender: No OFD packet to send [08:56:17]OFD Sender: No OFD packet to send [08:56:22]OFD Sender: No OFD packet to send [08:56:27]OFD Sender: No OFD packet to send [08:56:32]OFD Sender: No OFD packet to send [08:56:37]OFD Sender: No OFD packet to send [08:56:42]OFD Sender: No OFD packet to send [08:56:47]OFD Sender: No OFD packet to send [08:56:52]OFD Sender: No OFD packet to send [08:56:57]OFD Sender: No OFD packet to send [08:57:02]OFD Sender: No OFD packet to send [08:57:07]OFD Sender: No OFD packet to send [08:57:12]OFD Sender: No OFD packet to send [08:57:17]OFD Sender: No OFD packet to send [08:57:22]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:31]accept exits with 7 [08:58:31]New connection [08:58:31]New thread 3066473828 created [08:58:31]Thread 3066617188 joined [08:58:31]Waiting for new connection... [08:58:31] Sock 7.Parse request [08:58:31]Sock 7.Check first char [08:58:31]Sock 7.First char is OK [08:58:31]request: POST /json_proto HTTP/1.0 [08:58:31]Method: POST [08:58:31]URL: /json_proto [08:58:31]Method is POST - this is cgi request [08:58:31]url: /json_proto [08:58:31]query_string will be loaded in cgi processing [08:58:31]execute_cgi json_proto POST (null) [08:58:31]execute_cgi path=json_proto method=POST [08:58:31]POST find Content-Length [08:58:31]Host: 172.17.55.133:8080 [08:58:31]Content-Length: 688 [08:58:31]Content-Type: application/json [08:58:31] [08:58:31]POST finish read [08:58:31]Found Content-Length = 688 [08:58:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:31]execute_script... [08:58: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)1036092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:31]POST & json_proto [08:58:31]process_json_proto [08:58:31]json parsed OK: [08:58:31]protocol is kg_v1.0 [08:58:31]action value=close_receipt [08:58:31]process_action close_receipt [08:58:31]cmd_close_receipt [08:58:31]MH_GetDate [08:58:31]Write to MH i2c: F0 00 00 A3 59 EB [08:58:31]Write i2c OK [08:58:31]MH_I2C_Read... [08:58:31]Read from MH i2c: F0 [08:58:31]MH_I2C_Read... [08:58:31]Read from MH i2c: F0 09 00 [08:58:31]MH_I2C_Read... [08:58:31]Read from MH i2c: F0 09 00 A3 59 00 BB B7 C1 66 34 48 D8 65 46 [08:58:31]GetLastDocTimeStamp 1723971358 [08:58:31]current date 1723971515 [08:58:31]FM_GetShiftState [08:58:31]SAM_PROTO_GetShiftState [08:58:31]wFMCommunicate request_size=4 [08:58:31]MH_SAM_APDU [08:58:31]CAPDU: 80 13 01 00 [08:58:31]Write to MH i2c: E2 08 00 A4 59 80 13 01 00 00 00 00 00 7A [08:58:31]Write i2c OK [08:58:31]MH_I2C_Read... [08:58:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:31]Read from MH i2c: E2 [08:58:31]MH_I2C_Read... [08:58:31]Read from MH i2c: E2 0E 00 [08:58:31]MH_I2C_Read... [08:58:31]Read from MH i2c: E2 0E 00 A4 59 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B7 [08:58:31]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:58:31]wFMCommunicate OK [08:58:31]SAM_PROTO_GetShiftState done [08:58:31]FM_GetShiftState done [08:58:31]opened in 1723940556 [08:58:31]opened+sec_in_day 1724026956 [08:58:31]quantity*price = 100050 [08:58:31]sum+1 = 100052 [08:58:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 106 18.08.2024 08:58 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260548 ФПД: 9770355625438 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T085835&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260548&fm=9770355625438&tin=02508201610067®Number=0000000000091865&sum=100000 [08:58:33]StoreToDocumentArchive [08:58:33]shift 449 fd 260548 [08:58:33]save to /storage/0449/doc_00260548 [08:58:33]save last doc name /storage/0449/doc_00260548 to /storage/kkm_last_doc_name [08:58:33]save OK [08:58:33]Clear old archive folders... [08:58:33]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:58:33]tlvbuf is B6F036A0 [08:58:33]SAM_PROTO_ClearQueue [08:58:33]wFMCommunicate request_size=4 [08:58:33]MH_SAM_APDU [08:58:33]CAPDU: 80 09 00 00 [08:58:33]Write to MH i2c: E2 08 00 B1 59 80 09 00 00 00 00 00 00 7C [08:58:33]Write i2c OK [08:58:33]MH_I2C_Read... [08:58:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:58:33]Read from MH i2c: E2 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 03 00 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 03 00 B1 59 00 90 00 7E [08:58:33]RAPDU: 90 00 [08:58:33]wFMCommunicate OK [08:58:33]SAM_PROTO_ClearQueue done [08:58:33]KKMCreateOFDPacket [08:58:33]OFDProtocolAddRootSTLVToBuf [08:58:33]FM_MakeSignedData [08:58:33]FM_MakeSignedData [08:58:33]SAM_PROTO_SignData [08:58:33]wFMCommunicate request_size=4 [08:58:33]MH_SAM_APDU [08:58:33]CAPDU: 80 0D 01 02 [08:58:33]Write to MH i2c: E2 08 00 B2 59 80 0D 01 02 00 00 00 00 84 [08:58:33]Write i2c OK [08:58:33]MH_I2C_Read... [08:58:33]OFD Sender: No OFD packet to send [08:58:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:58:33]Read from MH i2c: E2 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 03 00 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 03 00 B2 59 00 90 00 7F [08:58:33]RAPDU: 90 00 [08:58:33]wFMCommunicate OK [08:58:33]wFMCommunicate request_size=255 [08:58:33]MH_SAM_APDU [08:58:33]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 BB B7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C4 F9 03 00 35 04 06 00 [08:58:33]Write to MH i2c: E2 02 01 B3 59 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 BB B7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C4 F9 03 00 35 04 06 00 00 00 73 [08:58:33]Write i2c OK [08:58:33]MH_I2C_Read... [08:58:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:33]Read from MH i2c: E2 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 03 00 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 03 00 B3 59 00 90 00 80 [08:58:33]RAPDU: 90 00 [08:58:33]wFMCommunicate OK [08:58:33]wFMCommunicate request_size=11 [08:58:33]MH_SAM_APDU [08:58:33]CAPDU: 80 0D 02 02 06 08 E2 D6 93 8D DE [08:58:33]Write to MH i2c: E2 0E 00 B4 59 80 0D 02 02 06 00 08 E2 D6 93 8D DE 00 00 51 [08:58:33]Write i2c OK [08:58:33]MH_I2C_Read... [08:58:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:33]Read from MH i2c: E2 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 03 00 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 03 00 B4 59 00 90 00 81 [08:58:33]RAPDU: 90 00 [08:58:33]wFMCommunicate OK [08:58:33]wFMCommunicate request_size=4 [08:58:33]MH_SAM_APDU [08:58:33]CAPDU: 80 0D 03 02 [08:58:33]Write to MH i2c: E2 08 00 B5 59 80 0D 03 02 00 00 00 00 89 [08:58:33]Write i2c OK [08:58:33]MH_I2C_Read... [08:58:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:58:33]Read from MH i2c: E2 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 0B 00 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 0B 00 B5 59 00 0D 96 59 66 9E 27 92 52 90 00 95 [08:58:33]RAPDU: 0D 96 59 66 9E 27 92 52 90 00 [08:58:33]wFMCommunicate OK [08:58:33]SAM_PROTO_SignData done [08:58:33]FM_MakeSignedData done [08:58:33]CreateOFDProtocolMessage [08:58:33]wFMCommunicate request_size=4 [08:58:33]MH_SAM_APDU [08:58:33]CAPDU: 80 11 00 00 [08:58:33]Write to MH i2c: E2 08 00 B6 59 80 11 00 00 00 00 00 00 89 [08:58:33]Write i2c OK [08:58:33]MH_I2C_Read... [08:58:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:33]Read from MH i2c: E2 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 17 00 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 17 00 B6 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D6 [08:58:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:58:33]wFMCommunicate OK [08:58:33]CreateOFDProtocolMessage done [08:58:33]OFDSenderStorePacket 260548 [08:58:33]StoreOFDPacket docnum=260548 [08:58:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 97 31 08 01 D1 CF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 BB B7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C4 F9 03 00 35 04 06 00 08 E2 D6 93 8D DE 0D 96 59 66 9E 27 92 52 [08:58:33]CheckFolder [08:58:33]dirname=/storage/ofd_packets [08:58:33]CheckFolder done [08:58:33]ProducePacketName [08:58:33]name=ofd_packets/00260548 [08:58:33]NVStorageSaveData ofd_packets/00260548 [08:58:33]File name is /storage/ofd_packets/00260548 [08:58:33]Write 302 bytes [08:58:33]NVStorageSaveData done [08:58:33]OFDSenderStorePacket done [08:58:33]KKMCreateOFDPacket done [08:58:33]NVStorageSaveData kkm_last_timestamp [08:58:33]File name is /storage/kkm_last_timestamp [08:58:33]Write 4 bytes [08:58:33]NVStorageSaveData done [08:58:33]ExternCall_PrintAddStr [08:58:33]wPrintStart [08:58:33]Write to MH i2c: 01 00 00 B7 59 10 [08:58:33]Write i2c OK [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: 01 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: 01 07 00 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: 01 07 00 B7 59 00 00 00 00 00 FF 0F 25 [08:58:33]RasterBufferAndPrint [08:58:33]line Счет N : (1)1036092 [08:58:33]line ИНН: 02508201610067 [08:58:33]line Контрольно-Кассовый Чек [08:58:33]line ПРОДАЖА [08:58:33]line ТРК (МРК, ГНК) : 43 [08:58:33]line Товар: 2710194210 [08:58:33]line ДТ(л)-К-4 [08:58:33]line 13.130 * 76.20 [08:58:33]line = 1000.51 [08:58:33]line НДС 12% НСП 1% [08:58:33]line > о реализуемом товаре [08:58:33]line ОКРУГЛЕНИЕ: -0.51 [08:58:33]line ИТОГО: 1000.00 [08:58:33]line Внесено: 1000.00 [08:58:33]line СДАЧА: 0.00 [08:58:33]line НСП 1% : 8.85 [08:58:33]line НДС 12% : 106.25 [08:58:33]line Наличными: 1000.00 [08:58:33]line Безнал.: 0.00 [08:58:33]line Место: АЗС № 94 "Партнер Нефть" [08:58:33]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [08:58:33]line СНО: Общий режим [08:58:33]line Чек 106 18.08.2024 08:58 [08:58:33]line Смена: 449 ФФД: 1.0 [08:58:33]line ЗНМ: 0300000099 [08:58:33]line РНМ: 0000000000091865 [08:58:33]line Версия ККМ: 001 [08:58:33]line ФМ: 0000000000871820 [08:58:33]line ФД: 260548 [08:58:33]line ФПД: 9770355625438 [08:58:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T085835&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260548&fm=9770355625438&tin=02508201610067®Number=0000000000091865&sum=100000 [08:58:33]OFD Sender: Processing packet 260548 [packets to send 192, broken 191] [08:58:33]ProducePacketName [08:58:33]name=ofd_packets/00260548 [08:58:33]OFD Sender: To server: pG, [08:58:33]CommunicateWithHost lk.salyk.kg:30040 [08:58:33]ConnectInit lk.salyk.kg [08:58:33]written 0, free lines is 4095 [08:58:33]Connected sock=10 [08:58: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 30 10 01 00 00 97 31 08 01 D1 CF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 BB B7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C4 F9 03 00 35 04 06 00 08 E2 D6 93 8D DE 0D 96 59 66 9E 27 92 52 [08:58: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 30 4F 00 00 00 07 78 47 00 03 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 30 10 04 04 00 C4 F9 03 00 F4 03 04 00 11 61 C1 66 B6 04 01 00 00 1C 95 82 B9 CA E6 B1 53 [08:58:34]CommunicateWithHost err = 0 [08:58:34]CheckOFDResponse [08:58:34]1017 (14) - 77093643461234 [08:58:34]1041 (16) - 0000000000871820 [08:58:34]1040 (4) - 260548 [08:58:34]1012 (4) - 18.08.2024 02:48 [08:58:34]1206 (1) - 0 [08:58:34]OFD Sender: Remove packet 260548 [08:58:34]ProducePacketName [08:58:34]name=ofd_packets/00260548 [08:58:34]NVStorageDeleteData [08:58:34]Write to MH i2c: 01 00 00 E2 59 3B [08:58:34]Write i2c OK [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: 01 [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: 01 07 00 [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: 01 07 00 E2 59 00 00 00 00 00 6C 0C BA [08:58:34]RasterBufferAndPrint [08:58:34]line [08:58:34]line [08:58:34]line [08:58:34]line [08:58:34]line [08:58:34]written 0, free lines is 3184 [08:58:34]MH_Cut [08:58:34]Write to MH i2c: D1 01 00 E9 59 01 14 [08:58:34]Write i2c OK [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: D1 [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: D1 01 00 [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: D1 01 00 E9 59 00 13 [08:58:34]Write to MH i2c: 01 00 00 EA 59 43 [08:58:34]Write i2c OK [08:58:34]MH_I2C_Read... [08:58:34]OFD Sender: No OFD packet to send [08:58:35]*** Cut start [08:58:35]*** Purtial cut [08:58:35]*** Stage 1: CUTSNS_PIN = 1 [08:58:37]Read from MH i2c: 01 [08:58:37]MH_I2C_Read... [08:58:37]*** Stop cut motor [08:58:37]*** Cut end [08:58:37]Read from MH i2c: 01 07 00 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: 01 07 00 EA 59 00 00 00 00 00 FF 0F 58 [08:58:37]process_action close_receipt done [08:58:37]requested_data is exist [08:58:37]produce_requested_data [08:58:37]requested_item fm.sn is exist - process it [08:58:37]wFMCommunicate request_size=4 [08:58:37]MH_SAM_APDU [08:58:37]CAPDU: 80 11 00 00 [08:58:37]Write to MH i2c: E2 08 00 EB 59 80 11 00 00 00 00 00 00 BE [08:58:37]Write i2c OK [08:58:37]MH_I2C_Read... [08:58:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:37]Read from MH i2c: E2 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 17 00 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 17 00 EB 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 0B [08:58:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:58:37]wFMCommunicate OK [08:58:37]requested_item fd.num is exist - process it [08:58:37]SAM_PROTO_GetFieldsCounters [08:58:37]wFMCommunicate request_size=4 [08:58:37]MH_SAM_APDU [08:58:37]CAPDU: 80 13 00 00 [08:58:37]Write to MH i2c: E2 08 00 EC 59 80 13 00 00 00 00 00 00 C1 [08:58:37]Write i2c OK [08:58:37]MH_I2C_Read... [08:58:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:58:37]Read from MH i2c: E2 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 62 00 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 62 00 EC 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C4 F9 03 00 0E 04 04 00 C1 01 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 A0 [08: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C4 F9 03 00 0E 04 04 00 C1 01 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 [08:58:37]wFMCommunicate OK [08:58:37]SAM_PROTO_GetFieldsCounters done [08:58:37]requested_item shift.num is exist - process it [08:58:37]requested_item shift.opened is exist - process it [08:58:37]req_shift_opened [08:58:37]FM_GetShiftState [08:58:37]SAM_PROTO_GetShiftState [08:58:37]wFMCommunicate request_size=4 [08:58:37]MH_SAM_APDU [08:58:37]CAPDU: 80 13 01 00 [08:58:37]Write to MH i2c: E2 08 00 ED 59 80 13 01 00 00 00 00 00 C3 [08:58:37]Write i2c OK [08:58:37]MH_I2C_Read... [08:58:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:37]Read from MH i2c: E2 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 0E 00 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 0E 00 ED 59 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 00 [08:58:37]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:58:37]wFMCommunicate OK [08:58:37]SAM_PROTO_GetShiftState done [08:58:37]FM_GetShiftState done [08:58:37]req_shift_opened done [08:58:37]requested_item shift.open_date is exist - process it [08:58:37]req_shift_open_date [08:58:37]req_shift_open_date done [08:58:37]produce_requested_data done [08:58:37]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260548,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [08:58:37]process_action_free close_receipt [08:58:37]json_value_free [08:58:37]json_value_free done [08:58:37]process_json_proto returns [08:58:37]Send response to host [08:58:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260548,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [08:58:37]free response buf [08:58:37]execute_script done [08:58:37]execute_script returns [08:58:37]free content buf [08:58:37]Sock 7.Close socket [08:58:37]Sock 7.Thread stoped [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:02]accept exits with 9 [08:59:02]New connection [08:59:02]New thread 3066617188 created [08:59:02]Thread 3066473828 joined [08:59:02]Waiting for new connection... [08:59:02] Sock 9.Parse request [08:59:02]Sock 9.Check first char [08:59:02]Sock 9.First char is OK [08:59:02]request: POST /json_proto HTTP/1.0 [08:59:02]Method: POST [08:59:02]URL: /json_proto [08:59:02]Method is POST - this is cgi request [08:59:02]url: /json_proto [08:59:02]query_string will be loaded in cgi processing [08:59:02]execute_cgi json_proto POST (null) [08:59:02]execute_cgi path=json_proto method=POST [08:59:02]POST find Content-Length [08:59:02]Host: 172.17.55.133:8080 [08:59:02]Content-Length: 683 [08:59:02]Content-Type: application/json [08:59:02] [08:59:02]POST finish read [08:59:02]Found Content-Length = 683 [08:59:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:59:02]execute_script... [08:59: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)1036093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:59:02]POST & json_proto [08:59:02]process_json_proto [08:59:02]json parsed OK: [08:59:02]protocol is kg_v1.0 [08:59:02]action value=close_receipt [08:59:02]process_action close_receipt [08:59:02]cmd_close_receipt [08:59:02]MH_GetDate [08:59:02]Write to MH i2c: F0 00 00 EE 59 36 [08:59:02]Write i2c OK [08:59:02]MH_I2C_Read... [08:59:02]Read from MH i2c: F0 [08:59:02]MH_I2C_Read... [08:59:02]Read from MH i2c: F0 09 00 [08:59:02]MH_I2C_Read... [08:59:02]Read from MH i2c: F0 09 00 EE 59 00 DA B7 C1 66 34 48 D8 65 B0 [08:59:02]GetLastDocTimeStamp 1723971515 [08:59:02]current date 1723971546 [08:59:02]FM_GetShiftState [08:59:02]SAM_PROTO_GetShiftState [08:59:02]wFMCommunicate request_size=4 [08:59:02]MH_SAM_APDU [08:59:02]CAPDU: 80 13 01 00 [08:59:02]Write to MH i2c: E2 08 00 EF 59 80 13 01 00 00 00 00 00 C5 [08:59:02]Write i2c OK [08:59:02]MH_I2C_Read... [08:59:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:02]Read from MH i2c: E2 [08:59:02]MH_I2C_Read... [08:59:02]Read from MH i2c: E2 0E 00 [08:59:02]MH_I2C_Read... [08:59:02]Read from MH i2c: E2 0E 00 EF 59 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 02 [08:59:02]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:59:02]wFMCommunicate OK [08:59:02]SAM_PROTO_GetShiftState done [08:59:02]FM_GetShiftState done [08:59:02]opened in 1723940556 [08:59:02]opened+sec_in_day 1724026956 [08:59:02]quantity*price = 100005 [08:59:02]sum+1 = 100006 [08:59:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 107 18.08.2024 08:59 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260549 ФПД: 150649448657349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T085906&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260549&fm=150649448657349&tin=02508201610067®Number=0000000000091865&sum=100000 [08:59:03]StoreToDocumentArchive [08:59:03]shift 449 fd 260549 [08:59:03]save to /storage/0449/doc_00260549 [08:59:03]save last doc name /storage/0449/doc_00260549 to /storage/kkm_last_doc_name [08:59:03]save OK [08:59:03]Clear old archive folders... [08:59:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:59:03]tlvbuf is 003E2B10 [08:59:03]SAM_PROTO_ClearQueue [08:59:03]wFMCommunicate request_size=4 [08:59:03]MH_SAM_APDU [08:59:03]CAPDU: 80 09 00 00 [08:59:03]Write to MH i2c: E2 08 00 FC 59 80 09 00 00 00 00 00 00 C7 [08:59:03]Write i2c OK [08:59:03]MH_I2C_Read... [08:59:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:03]Read from MH i2c: E2 [08:59:03]MH_I2C_Read... [08:59:03]Read from MH i2c: E2 03 00 [08:59:03]MH_I2C_Read... [08:59:03]Read from MH i2c: E2 03 00 FC 59 00 90 00 C9 [08:59:03]RAPDU: 90 00 [08:59:03]wFMCommunicate OK [08:59:03]SAM_PROTO_ClearQueue done [08:59:03]KKMCreateOFDPacket [08:59:03]OFDProtocolAddRootSTLVToBuf [08:59:03]FM_MakeSignedData [08:59:03]FM_MakeSignedData [08:59:03]SAM_PROTO_SignData [08:59:03]wFMCommunicate request_size=4 [08:59:03]MH_SAM_APDU [08:59:03]CAPDU: 80 0D 01 02 [08:59:03]Write to MH i2c: E2 08 00 FD 59 80 0D 01 02 00 00 00 00 CF [08:59:03]Write i2c OK [08:59:03]MH_I2C_Read... [08:59:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:03]Read from MH i2c: E2 [08:59:03]MH_I2C_Read... [08:59:03]Read from MH i2c: E2 03 00 [08:59:03]MH_I2C_Read... [08:59:03]Read from MH i2c: E2 03 00 FD 59 00 90 00 CA [08:59:03]RAPDU: 90 00 [08:59:03]wFMCommunicate OK [08:59:03]wFMCommunicate request_size=255 [08:59:03]MH_SAM_APDU [08:59:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 DA B7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C5 F9 03 00 35 04 06 00 89 [08:59:03]Write to MH i2c: E2 02 01 FE 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 DA B7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C5 F9 03 00 35 04 06 00 89 00 00 0A [08:59:03]Write i2c OK [08:59:03]MH_I2C_Read... [08:59:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:03]Read from MH i2c: E2 [08:59:03]MH_I2C_Read... [08:59:03]Read from MH i2c: E2 03 00 [08:59:03]MH_I2C_Read... [08:59:03]Read from MH i2c: E2 03 00 FE 59 00 90 00 CB [08:59:03]RAPDU: 90 00 [08:59:03]wFMCommunicate OK [08:59:03]wFMCommunicate request_size=10 [08:59:03]MH_SAM_APDU [08:59:03]CAPDU: 80 0D 02 02 05 03 CE DF 71 C5 [08:59:03]Write to MH i2c: E2 0D 00 FF 59 80 0D 02 02 05 00 03 CE DF 71 C5 00 00 C2 [08:59:03]Write i2c OK [08:59:03]MH_I2C_Read... [08:59:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:03]Read from MH i2c: E2 [08:59:03]MH_I2C_Read... [08:59:03]Read from MH i2c: E2 03 00 [08:59:03]MH_I2C_Read... [08:59:03]Read from MH i2c: E2 03 00 FF 59 00 90 00 CC [08:59:03]RAPDU: 90 00 [08:59:03]wFMCommunicate OK [08:59:03]wFMCommunicate request_size=4 [08:59:03]MH_SAM_APDU [08:59:03]CAPDU: 80 0D 03 02 [08:59:03]Write to MH i2c: E2 08 00 00 5A 80 0D 03 02 00 00 00 00 D5 [08:59:03]Write i2c OK [08:59:03]MH_I2C_Read... [08:59:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:03]Read from MH i2c: E2 [08:59:03]MH_I2C_Read... [08:59:03]Read from MH i2c: E2 0B 00 [08:59:03]MH_I2C_Read... [08:59:03]Read from MH i2c: E2 0B 00 00 5A 00 66 57 C5 9C 9A 16 48 A4 90 00 90 [08:59:03]RAPDU: 66 57 C5 9C 9A 16 48 A4 90 00 [08:59:03]wFMCommunicate OK [08:59:03]SAM_PROTO_SignData done [08:59:03]FM_MakeSignedData done [08:59:03]CreateOFDProtocolMessage [08:59:03]wFMCommunicate request_size=4 [08:59:03]MH_SAM_APDU [08:59:03]CAPDU: 80 11 00 00 [08:59:03]Write to MH i2c: E2 08 00 01 5A 80 11 00 00 00 00 00 00 D5 [08:59:03]Write i2c OK [08:59:03]MH_I2C_Read... [08:59:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:04]Read from MH i2c: E2 [08:59:04]MH_I2C_Read... [08:59:04]Read from MH i2c: E2 17 00 [08:59:04]MH_I2C_Read... [08:59:04]Read from MH i2c: E2 17 00 01 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 22 [08:59:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:59:04]wFMCommunicate OK [08:59:04]CreateOFDProtocolMessage done [08:59:04]OFDSenderStorePacket 260549 [08:59:04]StoreOFDPacket docnum=260549 [08:59:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 5F FB 07 01 5D DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 DA B7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C5 F9 03 00 35 04 06 00 89 03 CE DF 71 C5 66 57 C5 9C 9A 16 48 A4 [08:59:04]CheckFolder [08:59:04]dirname=/storage/ofd_packets [08:59:04]CheckFolder done [08:59:04]ProducePacketName [08:59:04]name=ofd_packets/00260549 [08:59:04]NVStorageSaveData ofd_packets/00260549 [08:59:04]File name is /storage/ofd_packets/00260549 [08:59:04]Write 301 bytes [08:59:04]NVStorageSaveData done [08:59:04]OFDSenderStorePacket done [08:59:04]KKMCreateOFDPacket done [08:59:04]NVStorageSaveData kkm_last_timestamp [08:59:04]File name is /storage/kkm_last_timestamp [08:59:04]Write 4 bytes [08:59:04]NVStorageSaveData done [08:59:04]ExternCall_PrintAddStr [08:59:04]wPrintStart [08:59:04]Write to MH i2c: 01 00 00 02 5A 5C [08:59:04]Write i2c OK [08:59:04]MH_I2C_Read... [08:59:04]Read from MH i2c: 01 [08:59:04]MH_I2C_Read... [08:59:04]Read from MH i2c: 01 07 00 [08:59:04]MH_I2C_Read... [08:59:04]Read from MH i2c: 01 07 00 02 5A 00 00 00 00 00 FF 0F 71 [08:59:04]RasterBufferAndPrint [08:59:04]line Счет N : (1)1036093 [08:59:04]line ИНН: 02508201610067 [08:59:04]line Контрольно-Кассовый Чек [08:59:04]line ПРОДАЖА [08:59:04]line ТРК (МРК, ГНК) : 22 [08:59:04]line Товар: 2710124130 [08:59:04]line Аи-92-К-5 [08:59:04]line 14.750 * 67.80 [08:59:04]line = 1000.05 [08:59:04]line НДС 12% НСП 1% [08:59:04]line > о реализуемом товаре [08:59:04]line ОКРУГЛЕНИЕ: -0.05 [08:59:04]line ИТОГО: 1000.00 [08:59:04]line Внесено: 1000.00 [08:59:04]line СДАЧА: 0.00 [08:59:04]line НСП 1% : 8.85 [08:59:04]line НДС 12% : 106.20 [08:59:04]line Наличными: 1000.00 [08:59:04]line Безнал.: 0.00 [08:59:04]line Место: АЗС № 94 "Партнер Нефть" [08:59:04]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [08:59:04]line СНО: Общий режим [08:59:04]line Чек 107 18.08.2024 08:59 [08:59:04]line Смена: 449 ФФД: 1.0 [08:59:04]line ЗНМ: 0300000099 [08:59:04]line РНМ: 0000000000091865 [08:59:04]line Версия ККМ: 001 [08:59:04]line ФМ: 0000000000871820 [08:59:04]line ФД: 260549 [08:59:04]line ФПД: 150649448657349 [08:59:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T085906&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260549&fm=150649448657349&tin=02508201610067®Number=0000000000091865&sum=100000 [08:59:04]written 0, free lines is 4095 [08:59:04]OFD Sender: Processing packet 260549 [packets to send 192, broken 191] [08:59:04]ProducePacketName [08:59:04]name=ofd_packets/00260549 [08:59:04]OFD Sender: To server: pG, [08:59:04]CommunicateWithHost lk.salyk.kg:30040 [08:59:04]ConnectInit lk.salyk.kg [08:59:04]Connected sock=10 [08:59: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 30 0F 01 00 00 5F FB 07 01 5D DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 DA B7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C5 F9 03 00 35 04 06 00 89 03 CE DF 71 C5 66 57 C5 9C 9A 16 48 A4 [08:59: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 30 4F 00 00 00 EF 4E 47 00 68 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 30 10 04 04 00 C5 F9 03 00 F4 03 04 00 2F 61 C1 66 B6 04 01 00 00 63 8C 7C 88 B8 C9 13 18 [08:59:04]CommunicateWithHost err = 0 [08:59:04]CheckOFDResponse [08:59:04]1017 (14) - 77093643461234 [08:59:04]1041 (16) - 0000000000871820 [08:59:04]1040 (4) - 260549 [08:59:04]1012 (4) - 18.08.2024 02:49 [08:59:04]1206 (1) - 0 [08:59:04]OFD Sender: Remove packet 260549 [08:59:04]ProducePacketName [08:59:04]name=ofd_packets/00260549 [08:59:04]NVStorageDeleteData [08:59:04]Write to MH i2c: 01 00 00 2D 5A 87 [08:59:04]Write i2c OK [08:59:04]MH_I2C_Read... [08:59:04]Read from MH i2c: 01 [08:59:04]MH_I2C_Read... [08:59:04]Read from MH i2c: 01 07 00 [08:59:04]MH_I2C_Read... [08:59:04]Read from MH i2c: 01 07 00 2D 5A 00 00 00 00 00 68 0C 02 [08:59:04]RasterBufferAndPrint [08:59:04]line [08:59:04]line [08:59:04]line [08:59:04]line [08:59:04]line [08:59:04]written 0, free lines is 3180 [08:59:04]MH_Cut [08:59:04]Write to MH i2c: D1 01 00 34 5A 01 60 [08:59:04]Write i2c OK [08:59:04]MH_I2C_Read... [08:59:04]Read from MH i2c: D1 [08:59:04]MH_I2C_Read... [08:59:04]Read from MH i2c: D1 01 00 [08:59:04]MH_I2C_Read... [08:59:04]Read from MH i2c: D1 01 00 34 5A 00 5F [08:59:04]Write to MH i2c: 01 00 00 35 5A 8F [08:59:04]Write i2c OK [08:59:04]MH_I2C_Read... [08:59:05]OFD Sender: No OFD packet to send [08:59:05]*** Cut start [08:59:05]*** Purtial cut [08:59:05]*** Stage 1: CUTSNS_PIN = 1 [08:59:07]Read from MH i2c: 01 [08:59:08]MH_I2C_Read... [08:59:08]*** Stop cut motor [08:59:08]*** Cut end [08:59:08]Read from MH i2c: 01 07 00 [08:59:08]MH_I2C_Read... [08:59:08]Read from MH i2c: 01 07 00 35 5A 00 00 00 00 00 FF 0F A4 [08:59:08]process_action close_receipt done [08:59:08]requested_data is exist [08:59:08]produce_requested_data [08:59:08]requested_item fm.sn is exist - process it [08:59:08]wFMCommunicate request_size=4 [08:59:08]MH_SAM_APDU [08:59:08]CAPDU: 80 11 00 00 [08:59:08]Write to MH i2c: E2 08 00 36 5A 80 11 00 00 00 00 00 00 0A [08:59:08]Write i2c OK [08:59:08]MH_I2C_Read... [08:59:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:08]Read from MH i2c: E2 [08:59:08]MH_I2C_Read... [08:59:08]Read from MH i2c: E2 17 00 [08:59:08]MH_I2C_Read... [08:59:08]Read from MH i2c: E2 17 00 36 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 57 [08:59:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [08:59:08]wFMCommunicate OK [08:59:08]requested_item fd.num is exist - process it [08:59:08]SAM_PROTO_GetFieldsCounters [08:59:08]wFMCommunicate request_size=4 [08:59:08]MH_SAM_APDU [08:59:08]CAPDU: 80 13 00 00 [08:59:08]Write to MH i2c: E2 08 00 37 5A 80 13 00 00 00 00 00 00 0D [08:59:08]Write i2c OK [08:59:08]MH_I2C_Read... [08:59:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:08]Read from MH i2c: E2 [08:59:08]MH_I2C_Read... [08:59:08]Read from MH i2c: E2 62 00 [08:59:08]MH_I2C_Read... [08:59:08]Read from MH i2c: E2 62 00 37 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C5 F9 03 00 0E 04 04 00 C1 01 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 F0 [08: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C5 F9 03 00 0E 04 04 00 C1 01 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 [08:59:08]wFMCommunicate OK [08:59:08]SAM_PROTO_GetFieldsCounters done [08:59:08]requested_item shift.num is exist - process it [08:59:08]requested_item shift.opened is exist - process it [08:59:08]req_shift_opened [08:59:08]FM_GetShiftState [08:59:08]SAM_PROTO_GetShiftState [08:59:08]wFMCommunicate request_size=4 [08:59:08]MH_SAM_APDU [08:59:08]CAPDU: 80 13 01 00 [08:59:08]Write to MH i2c: E2 08 00 38 5A 80 13 01 00 00 00 00 00 0F [08:59:08]Write i2c OK [08:59:08]MH_I2C_Read... [08:59:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:08]Read from MH i2c: E2 [08:59:08]MH_I2C_Read... [08:59:08]Read from MH i2c: E2 0E 00 [08:59:08]MH_I2C_Read... [08:59:08]Read from MH i2c: E2 0E 00 38 5A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 4C [08:59:08]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [08:59:08]wFMCommunicate OK [08:59:08]SAM_PROTO_GetShiftState done [08:59:08]FM_GetShiftState done [08:59:08]req_shift_opened done [08:59:08]requested_item shift.open_date is exist - process it [08:59:08]req_shift_open_date [08:59:08]req_shift_open_date done [08:59:08]produce_requested_data done [08:59:08]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260549,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [08:59:08]process_action_free close_receipt [08:59:08]json_value_free [08:59:08]json_value_free done [08:59:08]process_json_proto returns [08:59:08]Send response to host [08:59:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260549,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [08:59:08]free response buf [08:59:08]execute_script done [08:59:08]execute_script returns [08:59:08]free content buf [08:59:08]Sock 9.Close socket [08:59:08]Sock 9.Thread stoped [08:59:10]OFD Sender: No OFD packet to send [08:59:15]OFD Sender: No OFD packet to send [08:59:20]OFD Sender: No OFD packet to send [08:59:25]OFD Sender: No OFD packet to send [08:59:30]OFD Sender: No OFD packet to send [08:59:35]OFD Sender: No OFD packet to send [08:59:40]OFD Sender: No OFD packet to send [08:59:45]OFD Sender: No OFD packet to send [08:59:50]OFD Sender: No OFD packet to send [08:59:55]OFD Sender: No OFD packet to send [09:00:00]OFD Sender: No OFD packet to send [09:00:05]OFD Sender: No OFD packet to send [09:00:10]OFD Sender: No OFD packet to send [09:00:15]OFD Sender: No OFD packet to send [09:00:20]OFD Sender: No OFD packet to send [09:00:25]OFD Sender: No OFD packet to send [09:00:30]OFD Sender: No OFD packet to send [09:00:35]OFD Sender: No OFD packet to send [09:00:40]OFD Sender: No OFD packet to send [09:00:45]OFD Sender: No OFD packet to send [09:00:50]OFD Sender: No OFD packet to send [09:00:55]OFD Sender: No OFD packet to send [09:01:00]OFD Sender: No OFD packet to send [09:01:05]OFD Sender: No OFD packet to send [09:01:10]OFD Sender: No OFD packet to send [09:01:15]OFD Sender: No OFD packet to send [09:01:20]OFD Sender: No OFD packet to send [09:01:21]accept exits with 7 [09:01:21]New connection [09:01:21]New thread 3066473828 created [09:01:21]Thread 3066617188 joined [09:01:21]Waiting for new connection... [09:01:21] Sock 7.Parse request [09:01:21]Sock 7.Check first char [09:01:21]Sock 7.First char is OK [09:01:21]request: POST /json_proto HTTP/1.0 [09:01:21]Method: POST [09:01:21]URL: /json_proto [09:01:21]Method is POST - this is cgi request [09:01:21]url: /json_proto [09:01:21]query_string will be loaded in cgi processing [09:01:21]execute_cgi json_proto POST (null) [09:01:21]execute_cgi path=json_proto method=POST [09:01:21]POST find Content-Length [09:01:21]Host: 172.17.55.133:8080 [09:01:21]Content-Length: 678 [09:01:21]Content-Type: application/json [09:01:21] [09:01:21]POST finish read [09:01:21]Found Content-Length = 678 [09:01:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:21]execute_script... [09:01: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)1036094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:21]POST & json_proto [09:01:21]process_json_proto [09:01:21]json parsed OK: [09:01:21]protocol is kg_v1.0 [09:01:21]action value=close_receipt [09:01:21]process_action close_receipt [09:01:21]cmd_close_receipt [09:01:21]MH_GetDate [09:01:21]Write to MH i2c: F0 00 00 39 5A 82 [09:01:21]Write i2c OK [09:01:21]MH_I2C_Read... [09:01:21]Read from MH i2c: F0 [09:01:21]MH_I2C_Read... [09:01:21]Read from MH i2c: F0 09 00 [09:01:21]MH_I2C_Read... [09:01:21]Read from MH i2c: F0 09 00 39 5A 00 65 B8 C1 66 34 48 D8 65 88 [09:01:21]GetLastDocTimeStamp 1723971546 [09:01:21]current date 1723971685 [09:01:21]FM_GetShiftState [09:01:21]SAM_PROTO_GetShiftState [09:01:21]wFMCommunicate request_size=4 [09:01:21]MH_SAM_APDU [09:01:21]CAPDU: 80 13 01 00 [09:01:21]Write to MH i2c: E2 08 00 3A 5A 80 13 01 00 00 00 00 00 11 [09:01:21]Write i2c OK [09:01:21]MH_I2C_Read... [09:01:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:21]Read from MH i2c: E2 [09:01:21]MH_I2C_Read... [09:01:21]Read from MH i2c: E2 0E 00 [09:01:21]MH_I2C_Read... [09:01:21]Read from MH i2c: E2 0E 00 3A 5A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 4E [09:01:21]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:01:21]wFMCommunicate OK [09:01:21]SAM_PROTO_GetShiftState done [09:01:21]FM_GetShiftState done [09:01:21]opened in 1723940556 [09:01:21]opened+sec_in_day 1724026956 [09:01:21]quantity*price = 30035 [09:01:21]sum+1 = 30036 [09:01:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 108 18.08.2024 09:01 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260550 ФПД: 97304407562212 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T090125&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260550&fm=97304407562212&tin=02508201610067®Number=0000000000091865&sum=30000 [09:01:22]StoreToDocumentArchive [09:01:22]shift 449 fd 260550 [09:01:22]save to /storage/0449/doc_00260550 [09:01:22]save last doc name /storage/0449/doc_00260550 to /storage/kkm_last_doc_name [09:01:22]save OK [09:01:22]Clear old archive folders... [09:01:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:01:22]tlvbuf is 003E2780 [09:01:22]SAM_PROTO_ClearQueue [09:01:22]wFMCommunicate request_size=4 [09:01:22]MH_SAM_APDU [09:01:22]CAPDU: 80 09 00 00 [09:01:22]Write to MH i2c: E2 08 00 47 5A 80 09 00 00 00 00 00 00 13 [09:01:22]Write i2c OK [09:01:22]MH_I2C_Read... [09:01:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:01:22]Read from MH i2c: E2 [09:01:22]MH_I2C_Read... [09:01:22]Read from MH i2c: E2 03 00 [09:01:22]MH_I2C_Read... [09:01:22]Read from MH i2c: E2 03 00 47 5A 00 90 00 15 [09:01:22]RAPDU: 90 00 [09:01:22]wFMCommunicate OK [09:01:22]SAM_PROTO_ClearQueue done [09:01:22]KKMCreateOFDPacket [09:01:22]OFDProtocolAddRootSTLVToBuf [09:01:22]FM_MakeSignedData [09:01:22]FM_MakeSignedData [09:01:22]SAM_PROTO_SignData [09:01:22]wFMCommunicate request_size=4 [09:01:22]MH_SAM_APDU [09:01:22]CAPDU: 80 0D 01 02 [09:01:22]Write to MH i2c: E2 08 00 48 5A 80 0D 01 02 00 00 00 00 1B [09:01:22]Write i2c OK [09:01:22]MH_I2C_Read... [09:01:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:01:22]Read from MH i2c: E2 [09:01:22]MH_I2C_Read... [09:01:22]Read from MH i2c: E2 03 00 [09:01:22]MH_I2C_Read... [09:01:22]Read from MH i2c: E2 03 00 48 5A 00 90 00 16 [09:01:22]RAPDU: 90 00 [09:01:22]wFMCommunicate OK [09:01:22]wFMCommunicate request_size=255 [09:01:22]MH_SAM_APDU [09:01:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 65 B8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C6 F9 03 00 35 04 06 00 58 [09:01:22]Write to MH i2c: E2 02 01 49 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 65 B8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C6 F9 03 00 35 04 06 00 58 00 00 43 [09:01:22]Write i2c OK [09:01:22]MH_I2C_Read... [09:01:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:23]Read from MH i2c: E2 [09:01:23]MH_I2C_Read... [09:01:23]Read from MH i2c: E2 03 00 [09:01:23]MH_I2C_Read... [09:01:23]Read from MH i2c: E2 03 00 49 5A 00 90 00 17 [09:01:23]RAPDU: 90 00 [09:01:23]wFMCommunicate OK [09:01:23]wFMCommunicate request_size=10 [09:01:23]MH_SAM_APDU [09:01:23]CAPDU: 80 0D 02 02 05 7F 72 A5 D7 E4 [09:01:23]Write to MH i2c: E2 0D 00 4A 5A 80 0D 02 02 05 00 7F 72 A5 D7 E4 00 00 79 [09:01:23]Write i2c OK [09:01:23]MH_I2C_Read... [09:01:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:23]Read from MH i2c: E2 [09:01:23]MH_I2C_Read... [09:01:23]Read from MH i2c: E2 03 00 [09:01:23]MH_I2C_Read... [09:01:23]Read from MH i2c: E2 03 00 4A 5A 00 90 00 18 [09:01:23]RAPDU: 90 00 [09:01:23]wFMCommunicate OK [09:01:23]wFMCommunicate request_size=4 [09:01:23]MH_SAM_APDU [09:01:23]CAPDU: 80 0D 03 02 [09:01:23]Write to MH i2c: E2 08 00 4B 5A 80 0D 03 02 00 00 00 00 20 [09:01:23]Write i2c OK [09:01:23]MH_I2C_Read... [09:01:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:01:23]Read from MH i2c: E2 [09:01:23]MH_I2C_Read... [09:01:23]Read from MH i2c: E2 0B 00 [09:01:23]MH_I2C_Read... [09:01:23]Read from MH i2c: E2 0B 00 4B 5A 00 8B 9C 55 09 10 65 38 5A 90 00 AD [09:01:23]RAPDU: 8B 9C 55 09 10 65 38 5A 90 00 [09:01:23]wFMCommunicate OK [09:01:23]SAM_PROTO_SignData done [09:01:23]FM_MakeSignedData done [09:01:23]CreateOFDProtocolMessage [09:01:23]wFMCommunicate request_size=4 [09:01:23]MH_SAM_APDU [09:01:23]CAPDU: 80 11 00 00 [09:01:23]Write to MH i2c: E2 08 00 4C 5A 80 11 00 00 00 00 00 00 20 [09:01:23]Write i2c OK [09:01:23]MH_I2C_Read... [09:01:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:23]Read from MH i2c: E2 [09:01:23]MH_I2C_Read... [09:01:23]Read from MH i2c: E2 17 00 [09:01:23]MH_I2C_Read... [09:01:23]Read from MH i2c: E2 17 00 4C 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 6D [09:01:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:01:23]wFMCommunicate OK [09:01:23]CreateOFDProtocolMessage done [09:01:23]OFDSenderStorePacket 260550 [09:01:23]StoreOFDPacket docnum=260550 [09:01:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 34 D1 07 01 8C 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 65 B8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C6 F9 03 00 35 04 06 00 58 7F 72 A5 D7 E4 8B 9C 55 09 10 65 38 5A [09:01:23]CheckFolder [09:01:23]dirname=/storage/ofd_packets [09:01:23]CheckFolder done [09:01:23]ProducePacketName [09:01:23]name=ofd_packets/00260550 [09:01:23]NVStorageSaveData ofd_packets/00260550 [09:01:23]File name is /storage/ofd_packets/00260550 [09:01:23]Write 301 bytes [09:01:23]NVStorageSaveData done [09:01:23]OFDSenderStorePacket done [09:01:23]KKMCreateOFDPacket done [09:01:23]NVStorageSaveData kkm_last_timestamp [09:01:23]File name is /storage/kkm_last_timestamp [09:01:23]Write 4 bytes [09:01:23]NVStorageSaveData done [09:01:23]ExternCall_PrintAddStr [09:01:23]wPrintStart [09:01:23]Write to MH i2c: 01 00 00 4D 5A A7 [09:01:23]Write i2c OK [09:01:23]MH_I2C_Read... [09:01:23]Read from MH i2c: 01 [09:01:23]MH_I2C_Read... [09:01:23]Read from MH i2c: 01 07 00 [09:01:23]MH_I2C_Read... [09:01:23]Read from MH i2c: 01 07 00 4D 5A 00 00 00 00 00 FF 0F BC [09:01:23]RasterBufferAndPrint [09:01:23]line Счет N : (1)1036094 [09:01:23]line ИНН: 02508201610067 [09:01:23]line Контрольно-Кассовый Чек [09:01:23]line ПРОДАЖА [09:01:23]line ТРК (МРК, ГНК) : 22 [09:01:23]line Товар: 2710124130 [09:01:23]line Аи-92-К-5 [09:01:23]line 4.430 * 67.80 [09:01:23]line = 300.35 [09:01:23]line НДС 12% НСП 1% [09:01:23]line > о реализуемом товаре [09:01:23]line ОКРУГЛЕНИЕ: -0.35 [09:01:23]line ИТОГО: 300.00 [09:01:23]line Внесено: 300.00 [09:01:23]line СДАЧА: 0.00 [09:01:23]line НСП 1% : 2.66 [09:01:23]line НДС 12% : 31.90 [09:01:23]line Наличными: 300.00 [09:01:23]line Безнал.: 0.00 [09:01:23]line Место: АЗС № 94 "Партнер Нефть" [09:01:23]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [09:01:23]line СНО: Общий режим [09:01:23]line Чек 108 18.08.2024 09:01 [09:01:23]line Смена: 449 ФФД: 1.0 [09:01:23]line ЗНМ: 0300000099 [09:01:23]line РНМ: 0000000000091865 [09:01:23]line Версия ККМ: 001 [09:01:23]line ФМ: 0000000000871820 [09:01:23]line ФД: 260550 [09:01:23]line ФПД: 97304407562212 [09:01:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T090125&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260550&fm=97304407562212&tin=02508201610067®Number=0000000000091865&sum=30000 [09:01:23]written 0, free lines is 4095 [09:01:23]OFD Sender: Processing packet 260550 [packets to send 192, broken 191] [09:01:23]ProducePacketName [09:01:23]name=ofd_packets/00260550 [09:01:23]OFD Sender: To server: pG, [09:01:23]CommunicateWithHost lk.salyk.kg:30040 [09:01:23]ConnectInit lk.salyk.kg [09:01:23]Connected sock=10 [09:01: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 30 0F 01 00 00 34 D1 07 01 8C 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 65 B8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C6 F9 03 00 35 04 06 00 58 7F 72 A5 D7 E4 8B 9C 55 09 10 65 38 5A [09:01: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 30 4F 00 00 00 BB 3D 47 00 4A 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C6 F9 03 00 F4 03 04 00 BA 61 C1 66 B6 04 01 00 00 8E BA 04 35 07 1C 95 68 [09:01:23]CommunicateWithHost err = 0 [09:01:23]CheckOFDResponse [09:01:23]1017 (14) - 77093643461234 [09:01:23]1041 (16) - 0000000000871820 [09:01:23]1040 (4) - 260550 [09:01:23]1012 (4) - 18.08.2024 02:51 [09:01:23]1206 (1) - 0 [09:01:23]OFD Sender: Remove packet 260550 [09:01:23]ProducePacketName [09:01:23]name=ofd_packets/00260550 [09:01:23]NVStorageDeleteData [09:01:23]Write to MH i2c: 01 00 00 78 5A D2 [09:01:23]Write i2c OK [09:01:23]MH_I2C_Read... [09:01:23]Read from MH i2c: 01 [09:01:23]MH_I2C_Read... [09:01:23]Read from MH i2c: 01 07 00 [09:01:23]MH_I2C_Read... [09:01:23]Read from MH i2c: 01 07 00 78 5A 00 00 00 00 00 72 0C 57 [09:01:23]RasterBufferAndPrint [09:01:23]line [09:01:23]line [09:01:23]line [09:01:23]line [09:01:23]line [09:01:23]written 0, free lines is 3188 [09:01:23]MH_Cut [09:01:23]Write to MH i2c: D1 01 00 7F 5A 01 AB [09:01:23]Write i2c OK [09:01:23]MH_I2C_Read... [09:01:23]Read from MH i2c: D1 [09:01:23]MH_I2C_Read... [09:01:23]Read from MH i2c: D1 01 00 [09:01:23]MH_I2C_Read... [09:01:23]Read from MH i2c: D1 01 00 7F 5A 00 AA [09:01:23]Write to MH i2c: 01 00 00 80 5A DA [09:01:23]Write i2c OK [09:01:23]MH_I2C_Read... [09:01:24]OFD Sender: No OFD packet to send [09:01:24]*** Cut start [09:01:24]*** Purtial cut [09:01:24]*** Stage 1: CUTSNS_PIN = 1 [09:01:26]Read from MH i2c: 01 [09:01:26]MH_I2C_Read... [09:01:26]*** Stop cut motor [09:01:26]*** Cut end [09:01:26]Read from MH i2c: 01 07 00 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: 01 07 00 80 5A 00 00 00 00 00 FF 0F EF [09:01:26]process_action close_receipt done [09:01:26]requested_data is exist [09:01:26]produce_requested_data [09:01:26]requested_item fm.sn is exist - process it [09:01:26]wFMCommunicate request_size=4 [09:01:26]MH_SAM_APDU [09:01:26]CAPDU: 80 11 00 00 [09:01:26]Write to MH i2c: E2 08 00 81 5A 80 11 00 00 00 00 00 00 55 [09:01:26]Write i2c OK [09:01:26]MH_I2C_Read... [09:01:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:26]Read from MH i2c: E2 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 17 00 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 17 00 81 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A2 [09:01:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:01:26]wFMCommunicate OK [09:01:26]requested_item fd.num is exist - process it [09:01:26]SAM_PROTO_GetFieldsCounters [09:01:26]wFMCommunicate request_size=4 [09:01:26]MH_SAM_APDU [09:01:26]CAPDU: 80 13 00 00 [09:01:26]Write to MH i2c: E2 08 00 82 5A 80 13 00 00 00 00 00 00 58 [09:01:26]Write i2c OK [09:01:26]MH_I2C_Read... [09:01:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:27]Read from MH i2c: E2 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 62 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 62 00 82 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C6 F9 03 00 0E 04 04 00 C1 01 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 3F [09:01: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C6 F9 03 00 0E 04 04 00 C1 01 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 [09:01:27]wFMCommunicate OK [09:01:27]SAM_PROTO_GetFieldsCounters done [09:01:27]requested_item shift.num is exist - process it [09:01:27]requested_item shift.opened is exist - process it [09:01:27]req_shift_opened [09:01:27]FM_GetShiftState [09:01:27]SAM_PROTO_GetShiftState [09:01:27]wFMCommunicate request_size=4 [09:01:27]MH_SAM_APDU [09:01:27]CAPDU: 80 13 01 00 [09:01:27]Write to MH i2c: E2 08 00 83 5A 80 13 01 00 00 00 00 00 5A [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:27]Read from MH i2c: E2 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 0E 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 0E 00 83 5A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 97 [09:01:27]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:01:27]wFMCommunicate OK [09:01:27]SAM_PROTO_GetShiftState done [09:01:27]FM_GetShiftState done [09:01:27]req_shift_opened done [09:01:27]requested_item shift.open_date is exist - process it [09:01:27]req_shift_open_date [09:01:27]req_shift_open_date done [09:01:27]produce_requested_data done [09:01:27]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260550,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [09:01:27]process_action_free close_receipt [09:01:27]json_value_free [09:01:27]json_value_free done [09:01:27]process_json_proto returns [09:01:27]Send response to host [09:01:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260550,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [09:01:27]free response buf [09:01:27]execute_script done [09:01:27]execute_script returns [09:01:27]free content buf [09:01:27]Sock 7.Close socket [09:01:27]Sock 7.Thread stoped [09:01:27]accept exits with 9 [09:01:27]New connection [09:01:27]New thread 3066617188 created [09:01:27]Thread 3066473828 joined [09:01:27]Waiting for new connection... [09:01:27] Sock 9.Parse request [09:01:27]Sock 9.Check first char [09:01:27]Sock 9.First char is OK [09:01:27]request: POST /json_proto HTTP/1.0 [09:01:27]Method: POST [09:01:27]URL: /json_proto [09:01:27]Method is POST - this is cgi request [09:01:27]url: /json_proto [09:01:27]query_string will be loaded in cgi processing [09:01:27]execute_cgi json_proto POST (null) [09:01:27]execute_cgi path=json_proto method=POST [09:01:27]POST find Content-Length [09:01:27]Host: 172.17.55.133:8080 [09:01:27]Content-Length: 678 [09:01:27]Content-Type: application/json [09:01:27] [09:01:27]POST finish read [09:01:27]Found Content-Length = 678 [09:01:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:27]execute_script... [09:01: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)1036095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:27]POST & json_proto [09:01:27]process_json_proto [09:01:27]json parsed OK: [09:01:27]protocol is kg_v1.0 [09:01:27]action value=close_receipt [09:01:27]process_action close_receipt [09:01:27]cmd_close_receipt [09:01:27]MH_GetDate [09:01:27]Write to MH i2c: F0 00 00 84 5A CD [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: F0 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: F0 09 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: F0 09 00 84 5A 00 6B B8 C1 66 34 48 D8 65 D9 [09:01:27]GetLastDocTimeStamp 1723971685 [09:01:27]current date 1723971691 [09:01:27]FM_GetShiftState [09:01:27]SAM_PROTO_GetShiftState [09:01:27]wFMCommunicate request_size=4 [09:01:27]MH_SAM_APDU [09:01:27]CAPDU: 80 13 01 00 [09:01:27]Write to MH i2c: E2 08 00 85 5A 80 13 01 00 00 00 00 00 5C [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:27]Read from MH i2c: E2 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 0E 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 0E 00 85 5A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 99 [09:01:27]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:01:27]wFMCommunicate OK [09:01:27]SAM_PROTO_GetShiftState done [09:01:27]FM_GetShiftState done [09:01:27]opened in 1723940556 [09:01:27]opened+sec_in_day 1724026956 [09:01:27]quantity*price = 20001 [09:01:27]sum+1 = 20002 [09:01:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 109 18.08.2024 09:01 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260551 ФПД: 134379223339247 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T090131&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260551&fm=134379223339247&tin=02508201610067®Number=0000000000091865&sum=20000 [09:01:29]StoreToDocumentArchive [09:01:29]shift 449 fd 260551 [09:01:29]save to /storage/0449/doc_00260551 [09:01:29]save last doc name /storage/0449/doc_00260551 to /storage/kkm_last_doc_name [09:01:29]save OK [09:01:29]Clear old archive folders... [09:01:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:01:29]tlvbuf is 0033E770 [09:01:29]SAM_PROTO_ClearQueue [09:01:29]wFMCommunicate request_size=4 [09:01:29]MH_SAM_APDU [09:01:29]CAPDU: 80 09 00 00 [09:01:29]Write to MH i2c: E2 08 00 92 5A 80 09 00 00 00 00 00 00 5E [09:01:29]Write i2c OK [09:01:29]MH_I2C_Read... [09:01:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:01:29]Read from MH i2c: E2 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 03 00 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 03 00 92 5A 00 90 00 60 [09:01:29]RAPDU: 90 00 [09:01:29]wFMCommunicate OK [09:01:29]SAM_PROTO_ClearQueue done [09:01:29]KKMCreateOFDPacket [09:01:29]OFDProtocolAddRootSTLVToBuf [09:01:29]FM_MakeSignedData [09:01:29]FM_MakeSignedData [09:01:29]SAM_PROTO_SignData [09:01:29]wFMCommunicate request_size=4 [09:01:29]MH_SAM_APDU [09:01:29]CAPDU: 80 0D 01 02 [09:01:29]Write to MH i2c: E2 08 00 93 5A 80 0D 01 02 00 00 00 00 66 [09:01:29]Write i2c OK [09:01:29]MH_I2C_Read... [09:01:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:01:29]Read from MH i2c: E2 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 03 00 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 03 00 93 5A 00 90 00 61 [09:01:29]RAPDU: 90 00 [09:01:29]wFMCommunicate OK [09:01:29]wFMCommunicate request_size=255 [09:01:29]MH_SAM_APDU [09:01:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 6B B8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C7 F9 03 00 35 04 06 00 7A [09:01:29]Write to MH i2c: E2 02 01 94 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 6B B8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C7 F9 03 00 35 04 06 00 7A 00 00 9B [09:01:29]Write i2c OK [09:01:29]MH_I2C_Read... [09:01:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:29]Read from MH i2c: E2 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 03 00 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 03 00 94 5A 00 90 00 62 [09:01:29]RAPDU: 90 00 [09:01:29]wFMCommunicate OK [09:01:29]wFMCommunicate request_size=10 [09:01:29]MH_SAM_APDU [09:01:29]CAPDU: 80 0D 02 02 05 37 99 DF 50 EF [09:01:29]Write to MH i2c: E2 0D 00 95 5A 80 0D 02 02 05 00 37 99 DF 50 EF 00 00 61 [09:01:29]Write i2c OK [09:01:29]MH_I2C_Read... [09:01:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:29]Read from MH i2c: E2 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 03 00 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 03 00 95 5A 00 90 00 63 [09:01:29]RAPDU: 90 00 [09:01:29]wFMCommunicate OK [09:01:29]wFMCommunicate request_size=4 [09:01:29]MH_SAM_APDU [09:01:29]CAPDU: 80 0D 03 02 [09:01:29]Write to MH i2c: E2 08 00 96 5A 80 0D 03 02 00 00 00 00 6B [09:01:29]Write i2c OK [09:01:29]MH_I2C_Read... [09:01:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:01:29]Read from MH i2c: E2 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 0B 00 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 0B 00 96 5A 00 39 EC 78 94 05 59 7F 30 90 00 AA [09:01:29]RAPDU: 39 EC 78 94 05 59 7F 30 90 00 [09:01:29]wFMCommunicate OK [09:01:29]SAM_PROTO_SignData done [09:01:29]FM_MakeSignedData done [09:01:29]CreateOFDProtocolMessage [09:01:29]wFMCommunicate request_size=4 [09:01:29]MH_SAM_APDU [09:01:29]CAPDU: 80 11 00 00 [09:01:29]Write to MH i2c: E2 08 00 97 5A 80 11 00 00 00 00 00 00 6B [09:01:29]Write i2c OK [09:01:29]MH_I2C_Read... [09:01:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:29]Read from MH i2c: E2 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 17 00 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 17 00 97 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B8 [09:01:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:01:29]wFMCommunicate OK [09:01:29]CreateOFDProtocolMessage done [09:01:29]OFDSenderStorePacket 260551 [09:01:29]StoreOFDPacket docnum=260551 [09:01:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 67 FF 07 01 F9 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 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 6B B8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C7 F9 03 00 35 04 06 00 7A 37 99 DF 50 EF 39 EC 78 94 05 59 7F 30 [09:01:29]CheckFolder [09:01:29]dirname=/storage/ofd_packets [09:01:29]CheckFolder done [09:01:29]ProducePacketName [09:01:29]name=ofd_packets/00260551 [09:01:29]NVStorageSaveData ofd_packets/00260551 [09:01:29]File name is /storage/ofd_packets/00260551 [09:01:29]Write 301 bytes [09:01:29]NVStorageSaveData done [09:01:29]OFDSenderStorePacket done [09:01:29]KKMCreateOFDPacket done [09:01:29]NVStorageSaveData kkm_last_timestamp [09:01:29]File name is /storage/kkm_last_timestamp [09:01:29]Write 4 bytes [09:01:29]NVStorageSaveData done [09:01:29]ExternCall_PrintAddStr [09:01:29]wPrintStart [09:01:29]Write to MH i2c: 01 00 00 98 5A F2 [09:01:29]Write i2c OK [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: 01 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: 01 07 00 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: 01 07 00 98 5A 00 00 00 00 00 FF 0F 07 [09:01:29]RasterBufferAndPrint [09:01:29]line Счет N : (1)1036095 [09:01:29]line ИНН: 02508201610067 [09:01:29]line Контрольно-Кассовый Чек [09:01:29]line ПРОДАЖА [09:01:29]line ТРК (МРК, ГНК) : 42 [09:01:29]line Товар: 2710124130 [09:01:29]line Аи-92-К-5 [09:01:29]line 2.950 * 67.80 [09:01:29]line = 200.01 [09:01:29]line НДС 12% НСП 1% [09:01:29]line > о реализуемом товаре [09:01:29]line ОКРУГЛЕНИЕ: -0.01 [09:01:29]line ИТОГО: 200.00 [09:01:29]line Внесено: 200.00 [09:01:29]line СДАЧА: 0.00 [09:01:29]line НСП 1% : 1.77 [09:01:29]line НДС 12% : 21.24 [09:01:29]line Наличными: 200.00 [09:01:29]line Безнал.: 0.00 [09:01:29]line Место: АЗС № 94 "Партнер Нефть" [09:01:29]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [09:01:29]line СНО: Общий режим [09:01:29]line Чек 109 18.08.2024 09:01 [09:01:29]line Смена: 449 ФФД: 1.0 [09:01:29]line ЗНМ: 0300000099 [09:01:29]line РНМ: 0000000000091865 [09:01:29]line Версия ККМ: 001 [09:01:29]line ФМ: 0000000000871820 [09:01:29]line ФД: 260551 [09:01:29]line ФПД: 134379223339247 [09:01:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T090131&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260551&fm=134379223339247&tin=02508201610067®Number=0000000000091865&sum=20000 [09:01:29]written 0, free lines is 4095 [09:01:30]OFD Sender: Processing packet 260551 [packets to send 192, broken 191] [09:01:30]ProducePacketName [09:01:30]name=ofd_packets/00260551 [09:01:30]OFD Sender: To server: pG, [09:01:30]CommunicateWithHost lk.salyk.kg:30040 [09:01:30]ConnectInit lk.salyk.kg [09:01:30]Connected sock=10 [09:01: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 30 0F 01 00 00 67 FF 07 01 F9 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 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 6B B8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C7 F9 03 00 35 04 06 00 7A 37 99 DF 50 EF 39 EC 78 94 05 59 7F 30 [09:01: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 30 4F 00 00 00 8D AB 47 00 D5 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C7 F9 03 00 F4 03 04 00 C1 61 C1 66 B6 04 01 00 00 5A 98 7E B0 6C B7 D5 D1 [09:01:30]CommunicateWithHost err = 0 [09:01:30]CheckOFDResponse [09:01:30]1017 (14) - 77093643461234 [09:01:30]1041 (16) - 0000000000871820 [09:01:30]1040 (4) - 260551 [09:01:30]1012 (4) - 18.08.2024 02:51 [09:01:30]1206 (1) - 0 [09:01:30]OFD Sender: Remove packet 260551 [09:01:30]ProducePacketName [09:01:30]name=ofd_packets/00260551 [09:01:30]NVStorageDeleteData [09:01:30]Write to MH i2c: 01 00 00 C3 5A 1D [09:01:30]Write i2c OK [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: 01 [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: 01 07 00 [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: 01 07 00 C3 5A 00 00 00 00 00 73 0C A3 [09:01:30]RasterBufferAndPrint [09:01:30]line [09:01:30]line [09:01:30]line [09:01:30]line [09:01:30]line [09:01:30]written 0, free lines is 3194 [09:01:30]MH_Cut [09:01:30]Write to MH i2c: D1 01 00 CA 5A 01 F6 [09:01:30]Write i2c OK [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: D1 [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: D1 01 00 [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: D1 01 00 CA 5A 00 F5 [09:01:30]Write to MH i2c: 01 00 00 CB 5A 25 [09:01:30]Write i2c OK [09:01:30]MH_I2C_Read... [09:01:30]OFD Sender: No OFD packet to send [09:01:31]*** Cut start [09:01:31]*** Purtial cut [09:01:31]*** Stage 1: CUTSNS_PIN = 1 [09:01:33]Read from MH i2c: 01 [09:01:33]MH_I2C_Read... [09:01:33]*** Stop cut motor [09:01:33]*** Cut end [09:01:33]Read from MH i2c: 01 07 00 [09:01:33]MH_I2C_Read... [09:01:33]Read from MH i2c: 01 07 00 CB 5A 00 00 00 00 00 FF 0F 3A [09:01:33]process_action close_receipt done [09:01:33]requested_data is exist [09:01:33]produce_requested_data [09:01:33]requested_item fm.sn is exist - process it [09:01:33]wFMCommunicate request_size=4 [09:01:33]MH_SAM_APDU [09:01:33]CAPDU: 80 11 00 00 [09:01:33]Write to MH i2c: E2 08 00 CC 5A 80 11 00 00 00 00 00 00 A0 [09:01:33]Write i2c OK [09:01:33]MH_I2C_Read... [09:01:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:33]Read from MH i2c: E2 [09:01:33]MH_I2C_Read... [09:01:33]Read from MH i2c: E2 17 00 [09:01:33]MH_I2C_Read... [09:01:33]Read from MH i2c: E2 17 00 CC 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 ED [09:01:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:01:33]wFMCommunicate OK [09:01:33]requested_item fd.num is exist - process it [09:01:33]SAM_PROTO_GetFieldsCounters [09:01:33]wFMCommunicate request_size=4 [09:01:33]MH_SAM_APDU [09:01:33]CAPDU: 80 13 00 00 [09:01:33]Write to MH i2c: E2 08 00 CD 5A 80 13 00 00 00 00 00 00 A3 [09:01:33]Write i2c OK [09:01:33]MH_I2C_Read... [09:01:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:33]Read from MH i2c: E2 [09:01:33]MH_I2C_Read... [09:01:33]Read from MH i2c: E2 62 00 [09:01:33]MH_I2C_Read... [09:01:33]Read from MH i2c: E2 62 00 CD 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C7 F9 03 00 0E 04 04 00 C1 01 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 8E [09:01: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C7 F9 03 00 0E 04 04 00 C1 01 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 [09:01:33]wFMCommunicate OK [09:01:33]SAM_PROTO_GetFieldsCounters done [09:01:33]requested_item shift.num is exist - process it [09:01:33]requested_item shift.opened is exist - process it [09:01:33]req_shift_opened [09:01:33]FM_GetShiftState [09:01:33]SAM_PROTO_GetShiftState [09:01:33]wFMCommunicate request_size=4 [09:01:33]MH_SAM_APDU [09:01:33]CAPDU: 80 13 01 00 [09:01:33]Write to MH i2c: E2 08 00 CE 5A 80 13 01 00 00 00 00 00 A5 [09:01:33]Write i2c OK [09:01:33]MH_I2C_Read... [09:01:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:33]Read from MH i2c: E2 [09:01:33]MH_I2C_Read... [09:01:33]Read from MH i2c: E2 0E 00 [09:01:33]MH_I2C_Read... [09:01:33]Read from MH i2c: E2 0E 00 CE 5A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E2 [09:01:33]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:01:33]wFMCommunicate OK [09:01:33]SAM_PROTO_GetShiftState done [09:01:33]FM_GetShiftState done [09:01:33]req_shift_opened done [09:01:33]requested_item shift.open_date is exist - process it [09:01:33]req_shift_open_date [09:01:33]req_shift_open_date done [09:01:33]produce_requested_data done [09:01:33]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260551,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [09:01:33]process_action_free close_receipt [09:01:33]json_value_free [09:01:33]json_value_free done [09:01:33]process_json_proto returns [09:01:33]Send response to host [09:01:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260551,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [09:01:33]free response buf [09:01:33]execute_script done [09:01:33]execute_script returns [09:01:33]free content buf [09:01:33]Sock 9.Close socket [09:01:33]Sock 9.Thread stoped [09:01:35]OFD Sender: No OFD packet to send [09:01:40]OFD Sender: No OFD packet to send [09:01:45]OFD Sender: No OFD packet to send [09:01:50]OFD Sender: No OFD packet to send [09:01:55]OFD Sender: No OFD packet to send [09:02:00]OFD Sender: No OFD packet to send [09:02:05]OFD Sender: No OFD packet to send [09:02:10]OFD Sender: No OFD packet to send [09:02:15]OFD Sender: No OFD packet to send [09:02:20]OFD Sender: No OFD packet to send [09:02:25]OFD Sender: No OFD packet to send [09:02:30]OFD Sender: No OFD packet to send [09:02:35]OFD Sender: No OFD packet to send [09:02:40]OFD Sender: No OFD packet to send [09:02:45]OFD Sender: No OFD packet to send [09:02:51]OFD Sender: No OFD packet to send [09:02:56]OFD Sender: No OFD packet to send [09:03:01]OFD Sender: No OFD packet to send [09:03:06]OFD Sender: No OFD packet to send [09:03:11]OFD Sender: No OFD packet to send [09:03:16]OFD Sender: No OFD packet to send [09:03:21]OFD Sender: No OFD packet to send [09:03:26]OFD Sender: No OFD packet to send [09:03:31]OFD Sender: No OFD packet to send [09:03:36]OFD Sender: No OFD packet to send [09:03:41]OFD Sender: No OFD packet to send [09:03:46]OFD Sender: No OFD packet to send [09:03:51]OFD Sender: No OFD packet to send [09:03:52]accept exits with 7 [09:03:52]New connection [09:03:52]New thread 3066473828 created [09:03:52]Thread 3066617188 joined [09:03:52]Waiting for new connection... [09:03:52] Sock 7.Parse request [09:03:52]Sock 7.Check first char [09:03:52]Sock 7.First char is OK [09:03:52]request: POST /json_proto HTTP/1.0 [09:03:52]Method: POST [09:03:52]URL: /json_proto [09:03:52]Method is POST - this is cgi request [09:03:52]url: /json_proto [09:03:52]query_string will be loaded in cgi processing [09:03:52]execute_cgi json_proto POST (null) [09:03:52]execute_cgi path=json_proto method=POST [09:03:52]POST find Content-Length [09:03:52]Host: 172.17.55.133:8080 [09:03:52]Content-Length: 804 [09:03:52]Content-Type: application/json [09:03:52] [09:03:52]POST finish read [09:03:52]Found Content-Length = 804 [09:03:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036096", "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" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:52]execute_script... [09: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)1036096", "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" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:52]POST & json_proto [09:03:52]process_json_proto [09:03:52]json parsed OK: [09:03:52]protocol is kg_v1.0 [09:03:52]action value=close_receipt [09:03:52]process_action close_receipt [09:03:52]cmd_close_receipt [09:03:52]MH_GetDate [09:03:52]Write to MH i2c: F0 00 00 CF 5A 18 [09:03:52]Write i2c OK [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: F0 [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: F0 09 00 [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: F0 09 00 CF 5A 00 FC B8 C1 66 34 48 D8 65 B5 [09:03:52]GetLastDocTimeStamp 1723971691 [09:03:52]current date 1723971836 [09:03:52]FM_GetShiftState [09:03:52]SAM_PROTO_GetShiftState [09:03:52]wFMCommunicate request_size=4 [09:03:52]MH_SAM_APDU [09:03:52]CAPDU: 80 13 01 00 [09:03:52]Write to MH i2c: E2 08 00 D0 5A 80 13 01 00 00 00 00 00 A7 [09:03:52]Write i2c OK [09:03:52]MH_I2C_Read... [09:03:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:52]Read from MH i2c: E2 [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: E2 0E 00 [09:03:52]MH_I2C_Read... [09:03:52]Read from MH i2c: E2 0E 00 D0 5A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E4 [09:03:52]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:03:52]wFMCommunicate OK [09:03:52]SAM_PROTO_GetShiftState done [09:03:52]FM_GetShiftState done [09:03:52]opened in 1723940556 [09:03:52]opened+sec_in_day 1724026956 [09:03:52]quantity*price = 300064 [09:03:52]sum+1 = 300066 [09:03:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.65 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 0.00 Безнал.: 3000.65 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 110 18.08.2024 09:03 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260552 ФПД: 191787441477893 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T090356&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260552&fm=191787441477893&tin=02508201610067®Number=0000000000091865&sum=300065 [09:03:53]StoreToDocumentArchive [09:03:53]shift 449 fd 260552 [09:03:53]save to /storage/0449/doc_00260552 [09:03:53]save last doc name /storage/0449/doc_00260552 to /storage/kkm_last_doc_name [09:03:53]save OK [09:03:53]Clear old archive folders... [09:03:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:03:53]tlvbuf is 0041FA70 [09:03:53]SAM_PROTO_ClearQueue [09:03:53]wFMCommunicate request_size=4 [09:03:53]MH_SAM_APDU [09:03:53]CAPDU: 80 09 00 00 [09:03:53]Write to MH i2c: E2 08 00 DD 5A 80 09 00 00 00 00 00 00 A9 [09:03:53]Write i2c OK [09:03:53]MH_I2C_Read... [09:03:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:53]Read from MH i2c: E2 [09:03:53]MH_I2C_Read... [09:03:53]Read from MH i2c: E2 03 00 [09:03:53]MH_I2C_Read... [09:03:53]Read from MH i2c: E2 03 00 DD 5A 00 90 00 AB [09:03:53]RAPDU: 90 00 [09:03:53]wFMCommunicate OK [09:03:53]SAM_PROTO_ClearQueue done [09:03:53]KKMCreateOFDPacket [09:03:53]OFDProtocolAddRootSTLVToBuf [09:03:53]FM_MakeSignedData [09:03:53]FM_MakeSignedData [09:03:53]SAM_PROTO_SignData [09:03:53]wFMCommunicate request_size=4 [09:03:53]MH_SAM_APDU [09:03:53]CAPDU: 80 0D 01 02 [09:03:53]Write to MH i2c: E2 08 00 DE 5A 80 0D 01 02 00 00 00 00 B1 [09:03:53]Write i2c OK [09:03:53]MH_I2C_Read... [09:03:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:53]Read from MH i2c: E2 [09:03:53]MH_I2C_Read... [09:03:53]Read from MH i2c: E2 03 00 [09:03:53]MH_I2C_Read... [09:03:53]Read from MH i2c: E2 03 00 DE 5A 00 90 00 AC [09:03:53]RAPDU: 90 00 [09:03:53]wFMCommunicate OK [09:03:53]wFMCommunicate request_size=255 [09:03:53]MH_SAM_APDU [09: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 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 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 FC B8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C8 F9 03 00 35 04 06 00 AE [09:03:53]Write to MH i2c: E2 02 01 DF 5A 80 0D 02 02 FA 00 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 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 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 FC B8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C8 F9 03 00 35 04 06 00 AE 00 00 70 [09:03:53]Write i2c OK [09:03:53]MH_I2C_Read... [09:03:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:53]Read from MH i2c: E2 [09:03:53]MH_I2C_Read... [09:03:53]Read from MH i2c: E2 03 00 [09:03:53]MH_I2C_Read... [09:03:53]Read from MH i2c: E2 03 00 DF 5A 00 90 00 AD [09:03:53]RAPDU: 90 00 [09:03:53]wFMCommunicate OK [09:03:53]wFMCommunicate request_size=10 [09:03:53]MH_SAM_APDU [09:03:53]CAPDU: 80 0D 02 02 05 6D FE 52 59 05 [09:03:53]Write to MH i2c: E2 0D 00 E0 5A 80 0D 02 02 05 00 6D FE 52 59 05 00 00 D9 [09:03:53]Write i2c OK [09:03:53]MH_I2C_Read... [09:03:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:53]Read from MH i2c: E2 [09:03:53]MH_I2C_Read... [09:03:53]Read from MH i2c: E2 03 00 [09:03:53]MH_I2C_Read... [09:03:53]Read from MH i2c: E2 03 00 E0 5A 00 90 00 AE [09:03:53]RAPDU: 90 00 [09:03:53]wFMCommunicate OK [09:03:53]wFMCommunicate request_size=4 [09:03:53]MH_SAM_APDU [09:03:53]CAPDU: 80 0D 03 02 [09:03:53]Write to MH i2c: E2 08 00 E1 5A 80 0D 03 02 00 00 00 00 B6 [09:03:53]Write i2c OK [09:03:53]MH_I2C_Read... [09:03:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:53]Read from MH i2c: E2 [09:03:53]MH_I2C_Read... [09:03:53]Read from MH i2c: E2 0B 00 [09:03:53]MH_I2C_Read... [09:03:53]Read from MH i2c: E2 0B 00 E1 5A 00 E1 1D 3A 14 80 C7 97 A1 90 00 82 [09:03:53]RAPDU: E1 1D 3A 14 80 C7 97 A1 90 00 [09:03:53]wFMCommunicate OK [09:03:53]SAM_PROTO_SignData done [09:03:53]FM_MakeSignedData done [09:03:53]CreateOFDProtocolMessage [09:03:53]wFMCommunicate request_size=4 [09:03:53]MH_SAM_APDU [09:03:53]CAPDU: 80 11 00 00 [09:03:53]Write to MH i2c: E2 08 00 E2 5A 80 11 00 00 00 00 00 00 B6 [09:03:53]Write i2c OK [09:03:53]MH_I2C_Read... [09:03:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:54]Read from MH i2c: E2 [09:03:54]MH_I2C_Read... [09:03:54]Read from MH i2c: E2 17 00 [09:03:54]MH_I2C_Read... [09:03:54]Read from MH i2c: E2 17 00 E2 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 03 [09:03:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:03:54]wFMCommunicate OK [09:03:54]CreateOFDProtocolMessage done [09:03:54]OFDSenderStorePacket 260552 [09:03:54]StoreOFDPacket docnum=260552 [09:03:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 E8 D6 07 01 AE 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 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 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 FC B8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C8 F9 03 00 35 04 06 00 AE 6D FE 52 59 05 E1 1D 3A 14 80 C7 97 A1 [09:03:54]CheckFolder [09:03:54]dirname=/storage/ofd_packets [09:03:54]CheckFolder done [09:03:54]ProducePacketName [09:03:54]name=ofd_packets/00260552 [09:03:54]NVStorageSaveData ofd_packets/00260552 [09:03:54]File name is /storage/ofd_packets/00260552 [09:03:54]Write 301 bytes [09:03:54]NVStorageSaveData done [09:03:54]OFDSenderStorePacket done [09:03:54]KKMCreateOFDPacket done [09:03:54]NVStorageSaveData kkm_last_timestamp [09:03:54]File name is /storage/kkm_last_timestamp [09:03:54]Write 4 bytes [09:03:54]NVStorageSaveData done [09:03:54]ExternCall_PrintAddStr [09:03:54]wPrintStart [09:03:54]Write to MH i2c: 01 00 00 E3 5A 3D [09:03:54]Write i2c OK [09:03:54]MH_I2C_Read... [09:03:54]Read from MH i2c: 01 [09:03:54]MH_I2C_Read... [09:03:54]Read from MH i2c: 01 07 00 [09:03:54]MH_I2C_Read... [09:03:54]Read from MH i2c: 01 07 00 E3 5A 00 00 00 00 00 FF 0F 52 [09:03:54]RasterBufferAndPrint [09:03:54]line Счет N : (1)1036096 [09:03:54]line ИНН: 02508201610067 [09:03:54]line Контрольно-Кассовый Чек [09:03:54]line ПРОДАЖА [09:03:54]line ТРК (МРК, ГНК) : 13 [09:03:54]line Товар: 2710124500 [09:03:54]line Аи-95-К-5 [09:03:54]line 40.440 * 74.20 [09:03:54]line = 3000.65 [09:03:54]line НДС 12% НСП 1% [09:03:54]line > о реализуемом товаре [09:03:54]line ИТОГО: 3000.65 [09:03:54]line НСП 1% : 26.55 [09:03:54]line НДС 12% : 318.65 [09:03:54]line Наличными: 0.00 [09:03:54]line Безнал.: 3000.65 [09:03:54]line Место: АЗС № 94 "Партнер Нефть" [09:03:54]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [09:03:54]line СНО: Общий режим [09:03:54]line Чек 110 18.08.2024 09:03 [09:03:54]line Смена: 449 ФФД: 1.0 [09:03:54]line ЗНМ: 0300000099 [09:03:54]line РНМ: 0000000000091865 [09:03:54]line Версия ККМ: 001 [09:03:54]line Платежная система: O! деньги [09:03:54]line ФМ: 0000000000871820 [09:03:54]line ФД: 260552 [09:03:54]line ФПД: 191787441477893 [09:03:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T090356&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260552&fm=191787441477893&tin=02508201610067®Number=0000000000091865&sum=300065 [09:03:54]written 0, free lines is 4095 [09:03:54]OFD Sender: Processing packet 260552 [packets to send 192, broken 191] [09:03:54]ProducePacketName [09:03:54]name=ofd_packets/00260552 [09:03:54]OFD Sender: To server: pG, [09:03:54]CommunicateWithHost lk.salyk.kg:30040 [09:03:54]ConnectInit lk.salyk.kg [09:03:54]Connected sock=10 [09:03:54]Data 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 30 0F 01 00 00 E8 D6 07 01 AE 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 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 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 FC B8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C8 F9 03 00 35 04 06 00 AE 6D FE 52 59 05 E1 1D 3A 14 80 C7 97 A1 [09:03:54]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 30 4F 00 00 00 A8 D1 47 00 BC 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 30 10 04 04 00 C8 F9 03 00 F4 03 04 00 51 62 C1 66 B6 04 01 00 00 60 5B 77 57 A8 72 27 02 [09:03:54]CommunicateWithHost err = 0 [09:03:54]CheckOFDResponse [09:03:54]1017 (14) - 77093643461234 [09:03:54]1041 (16) - 0000000000871820 [09:03:54]1040 (4) - 260552 [09:03:54]1012 (4) - 18.08.2024 02:54 [09:03:54]1206 (1) - 0 [09:03:54]OFD Sender: Remove packet 260552 [09:03:54]ProducePacketName [09:03:54]name=ofd_packets/00260552 [09:03:54]NVStorageDeleteData [09:03:54]Write to MH i2c: 01 00 00 0D 5B 68 [09:03:54]Write i2c OK [09:03:54]MH_I2C_Read... [09:03:54]Read from MH i2c: 01 [09:03:54]MH_I2C_Read... [09:03:54]Read from MH i2c: 01 07 00 [09:03:54]MH_I2C_Read... [09:03:54]Read from MH i2c: 01 07 00 0D 5B 00 00 00 00 00 7F 0C FA [09:03:54]RasterBufferAndPrint [09:03:54]line [09:03:54]line [09:03:54]line [09:03:54]line [09:03:54]line [09:03:54]written 0, free lines is 3203 [09:03:54]MH_Cut [09:03:54]Write to MH i2c: D1 01 00 14 5B 01 41 [09:03:54]Write i2c OK [09:03:54]MH_I2C_Read... [09:03:54]Read from MH i2c: D1 [09:03:54]MH_I2C_Read... [09:03:54]Read from MH i2c: D1 01 00 [09:03:54]MH_I2C_Read... [09:03:54]Read from MH i2c: D1 01 00 14 5B 00 40 [09:03:54]Write to MH i2c: 01 00 00 15 5B 70 [09:03:54]Write i2c OK [09:03:54]MH_I2C_Read... [09:03:55]OFD Sender: No OFD packet to send [09:03:55]*** Cut start [09:03:55]*** Purtial cut [09:03:55]*** Stage 1: CUTSNS_PIN = 1 [09:03:57]Read from MH i2c: 01 [09:03:57]MH_I2C_Read... [09:03:57]*** Stop cut motor [09:03:57]*** Cut end [09:03:57]Read from MH i2c: 01 07 00 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: 01 07 00 15 5B 00 00 00 00 00 FF 0F 85 [09:03:57]process_action close_receipt done [09:03:57]requested_data is exist [09:03:57]produce_requested_data [09:03:57]requested_item fm.sn is exist - process it [09:03:57]wFMCommunicate request_size=4 [09:03:57]MH_SAM_APDU [09:03:57]CAPDU: 80 11 00 00 [09:03:57]Write to MH i2c: E2 08 00 16 5B 80 11 00 00 00 00 00 00 EB [09:03:57]Write i2c OK [09:03:57]MH_I2C_Read... [09:03:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:58]Read from MH i2c: E2 [09:03:58]MH_I2C_Read... [09:03:58]Read from MH i2c: E2 17 00 [09:03:58]MH_I2C_Read... [09:03:58]Read from MH i2c: E2 17 00 16 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 38 [09:03:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:03:58]wFMCommunicate OK [09:03:58]requested_item fd.num is exist - process it [09:03:58]SAM_PROTO_GetFieldsCounters [09:03:58]wFMCommunicate request_size=4 [09:03:58]MH_SAM_APDU [09:03:58]CAPDU: 80 13 00 00 [09:03:58]Write to MH i2c: E2 08 00 17 5B 80 13 00 00 00 00 00 00 EE [09:03:58]Write i2c OK [09:03:58]MH_I2C_Read... [09:03:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:58]Read from MH i2c: E2 [09:03:58]MH_I2C_Read... [09:03:58]Read from MH i2c: E2 62 00 [09:03:58]MH_I2C_Read... [09:03:58]Read from MH i2c: E2 62 00 17 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C8 F9 03 00 0E 04 04 00 C1 01 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 DD [09:03: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C8 F9 03 00 0E 04 04 00 C1 01 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 [09:03:58]wFMCommunicate OK [09:03:58]SAM_PROTO_GetFieldsCounters done [09:03:58]requested_item shift.num is exist - process it [09:03:58]requested_item shift.opened is exist - process it [09:03:58]req_shift_opened [09:03:58]FM_GetShiftState [09:03:58]SAM_PROTO_GetShiftState [09:03:58]wFMCommunicate request_size=4 [09:03:58]MH_SAM_APDU [09:03:58]CAPDU: 80 13 01 00 [09:03:58]Write to MH i2c: E2 08 00 18 5B 80 13 01 00 00 00 00 00 F0 [09:03:58]Write i2c OK [09:03:58]MH_I2C_Read... [09:03:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:58]Read from MH i2c: E2 [09:03:58]MH_I2C_Read... [09:03:58]Read from MH i2c: E2 0E 00 [09:03:58]MH_I2C_Read... [09:03:58]Read from MH i2c: E2 0E 00 18 5B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 2D [09:03:58]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:03:58]wFMCommunicate OK [09:03:58]SAM_PROTO_GetShiftState done [09:03:58]FM_GetShiftState done [09:03:58]req_shift_opened done [09:03:58]requested_item shift.open_date is exist - process it [09:03:58]req_shift_open_date [09:03:58]req_shift_open_date done [09:03:58]produce_requested_data done [09:03:58]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260552,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [09:03:58]process_action_free close_receipt [09:03:58]json_value_free [09:03:58]json_value_free done [09:03:58]process_json_proto returns [09:03:58]Send response to host [09:03:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260552,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [09:03:58]free response buf [09:03:58]execute_script done [09:03:58]execute_script returns [09:03:58]free content buf [09:03:58]Sock 7.Close socket [09:03:58]Sock 7.Thread stoped [09:04:00]OFD Sender: No OFD packet to send [09:04:05]OFD Sender: No OFD packet to send [09:04:10]OFD Sender: No OFD packet to send [09:04:15]OFD Sender: No OFD packet to send [09:04:20]OFD Sender: No OFD packet to send [09:04:25]OFD Sender: No OFD packet to send [09:04:30]OFD Sender: No OFD packet to send [09:04:35]OFD Sender: No OFD packet to send [09:04:40]OFD Sender: No OFD packet to send [09:04:45]OFD Sender: No OFD packet to send [09:04:50]OFD Sender: No OFD packet to send [09:04:55]OFD Sender: No OFD packet to send [09:04:59]accept exits with 9 [09:04:59]New connection [09:04:59]New thread 3066617188 created [09:04:59]Thread 3066473828 joined [09:04:59]Waiting for new connection... [09:04:59] Sock 9.Parse request [09:04:59]Sock 9.Check first char [09:04:59]Sock 9.First char is OK [09:04:59]request: POST /json_proto HTTP/1.0 [09:04:59]Method: POST [09:04:59]URL: /json_proto [09:04:59]Method is POST - this is cgi request [09:04:59]url: /json_proto [09:04:59]query_string will be loaded in cgi processing [09:04:59]execute_cgi json_proto POST (null) [09:04:59]execute_cgi path=json_proto method=POST [09:04:59]POST find Content-Length [09:04:59]Host: 172.17.55.133:8080 [09:04:59]Content-Length: 683 [09:04:59]Content-Type: application/json [09:04:59] [09:04:59]POST finish read [09:04:59]Found Content-Length = 683 [09:04:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:04:59]execute_script... [09:04: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)1036097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:04:59]POST & json_proto [09:04:59]process_json_proto [09:04:59]json parsed OK: [09:04:59]protocol is kg_v1.0 [09:04:59]action value=close_receipt [09:04:59]process_action close_receipt [09:04:59]cmd_close_receipt [09:04:59]MH_GetDate [09:04:59]Write to MH i2c: F0 00 00 19 5B 63 [09:04:59]Write i2c OK [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: F0 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: F0 09 00 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: F0 09 00 19 5B 00 3F B9 C1 66 34 48 D8 65 44 [09:04:59]GetLastDocTimeStamp 1723971836 [09:04:59]current date 1723971903 [09:04:59]FM_GetShiftState [09:04:59]SAM_PROTO_GetShiftState [09:04:59]wFMCommunicate request_size=4 [09:04:59]MH_SAM_APDU [09:04:59]CAPDU: 80 13 01 00 [09:04:59]Write to MH i2c: E2 08 00 1A 5B 80 13 01 00 00 00 00 00 F2 [09:04:59]Write i2c OK [09:04:59]MH_I2C_Read... [09:04:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:59]Read from MH i2c: E2 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 0E 00 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 0E 00 1A 5B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 2F [09:04:59]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:04:59]wFMCommunicate OK [09:04:59]SAM_PROTO_GetShiftState done [09:04:59]FM_GetShiftState done [09:04:59]opened in 1723940556 [09:04:59]opened+sec_in_day 1724026956 [09:04:59]quantity*price = 100005 [09:04:59]sum+1 = 100006 [09:04:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 111 18.08.2024 09:05 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260553 ФПД: 44140506998925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T090503&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260553&fm=44140506998925&tin=02508201610067®Number=0000000000091865&sum=100000 [09:05:00]StoreToDocumentArchive [09:05:00]shift 449 fd 260553 [09:05:00]save to /storage/0449/doc_00260553 [09:05:00]save last doc name /storage/0449/doc_00260553 to /storage/kkm_last_doc_name [09:05:00]save OK [09:05:00]Clear old archive folders... [09:05:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:05:00]tlvbuf is 00433360 [09:05:00]SAM_PROTO_ClearQueue [09:05:00]wFMCommunicate request_size=4 [09:05:00]MH_SAM_APDU [09:05:00]CAPDU: 80 09 00 00 [09:05:00]Write to MH i2c: E2 08 00 27 5B 80 09 00 00 00 00 00 00 F4 [09:05:00]Write i2c OK [09:05:00]MH_I2C_Read... [09:05:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:05:00]Read from MH i2c: E2 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: E2 03 00 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: E2 03 00 27 5B 00 90 00 F6 [09:05:00]RAPDU: 90 00 [09:05:00]wFMCommunicate OK [09:05:00]SAM_PROTO_ClearQueue done [09:05:00]KKMCreateOFDPacket [09:05:00]OFDProtocolAddRootSTLVToBuf [09:05:00]FM_MakeSignedData [09:05:00]FM_MakeSignedData [09:05:00]SAM_PROTO_SignData [09:05:00]wFMCommunicate request_size=4 [09:05:00]MH_SAM_APDU [09:05:00]CAPDU: 80 0D 01 02 [09:05:00]Write to MH i2c: E2 08 00 28 5B 80 0D 01 02 00 00 00 00 FC [09:05:00]Write i2c OK [09:05:00]MH_I2C_Read... [09:05:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:05:00]Read from MH i2c: E2 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: E2 03 00 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: E2 03 00 28 5B 00 90 00 F7 [09:05:00]RAPDU: 90 00 [09:05:00]wFMCommunicate OK [09:05:00]wFMCommunicate request_size=255 [09:05:00]MH_SAM_APDU [09:05:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 3F B9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C9 F9 03 00 35 04 06 00 28 [09:05:00]Write to MH i2c: E2 02 01 29 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 3F B9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C9 F9 03 00 35 04 06 00 28 00 00 45 [09:05:00]Write i2c OK [09:05:00]MH_I2C_Read... [09:05:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:01]Read from MH i2c: E2 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: E2 03 00 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: E2 03 00 29 5B 00 90 00 F8 [09:05:01]RAPDU: 90 00 [09:05:01]wFMCommunicate OK [09:05:01]wFMCommunicate request_size=10 [09:05:01]MH_SAM_APDU [09:05:01]CAPDU: 80 0D 02 02 05 25 43 3D 68 8D [09:05:01]Write to MH i2c: E2 0D 00 2A 5B 80 0D 02 02 05 00 25 43 3D 68 8D 00 00 A3 [09:05:01]Write i2c OK [09:05:01]MH_I2C_Read... [09:05:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:01]Read from MH i2c: E2 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: E2 03 00 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: E2 03 00 2A 5B 00 90 00 F9 [09:05:01]RAPDU: 90 00 [09:05:01]wFMCommunicate OK [09:05:01]wFMCommunicate request_size=4 [09:05:01]MH_SAM_APDU [09:05:01]CAPDU: 80 0D 03 02 [09:05:01]Write to MH i2c: E2 08 00 2B 5B 80 0D 03 02 00 00 00 00 01 [09:05:01]Write i2c OK [09:05:01]MH_I2C_Read... [09:05:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:05:01]Read from MH i2c: E2 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: E2 0B 00 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: E2 0B 00 2B 5B 00 FB 7F 12 18 37 39 84 86 90 00 20 [09:05:01]RAPDU: FB 7F 12 18 37 39 84 86 90 00 [09:05:01]wFMCommunicate OK [09:05:01]SAM_PROTO_SignData done [09:05:01]FM_MakeSignedData done [09:05:01]CreateOFDProtocolMessage [09:05:01]wFMCommunicate request_size=4 [09:05:01]MH_SAM_APDU [09:05:01]CAPDU: 80 11 00 00 [09:05:01]Write to MH i2c: E2 08 00 2C 5B 80 11 00 00 00 00 00 00 01 [09:05:01]Write i2c OK [09:05:01]MH_I2C_Read... [09:05:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:01]Read from MH i2c: E2 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: E2 17 00 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: E2 17 00 2C 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 4E [09:05:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:05:01]wFMCommunicate OK [09:05:01]CreateOFDProtocolMessage done [09:05:01]OFDSenderStorePacket 260553 [09:05:01]StoreOFDPacket docnum=260553 [09:05:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 9B DE 07 01 B8 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 3F B9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C9 F9 03 00 35 04 06 00 28 25 43 3D 68 8D FB 7F 12 18 37 39 84 86 [09:05:01]CheckFolder [09:05:01]dirname=/storage/ofd_packets [09:05:01]CheckFolder done [09:05:01]ProducePacketName [09:05:01]name=ofd_packets/00260553 [09:05:01]NVStorageSaveData ofd_packets/00260553 [09:05:01]File name is /storage/ofd_packets/00260553 [09:05:01]Write 301 bytes [09:05:01]NVStorageSaveData done [09:05:01]OFDSenderStorePacket done [09:05:01]KKMCreateOFDPacket done [09:05:01]NVStorageSaveData kkm_last_timestamp [09:05:01]File name is /storage/kkm_last_timestamp [09:05:01]Write 4 bytes [09:05:01]NVStorageSaveData done [09:05:01]ExternCall_PrintAddStr [09:05:01]wPrintStart [09:05:01]Write to MH i2c: 01 00 00 2D 5B 88 [09:05:01]Write i2c OK [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: 01 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: 01 07 00 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: 01 07 00 2D 5B 00 00 00 00 00 FF 0F 9D [09:05:01]RasterBufferAndPrint [09:05:01]line Счет N : (1)1036097 [09:05:01]line ИНН: 02508201610067 [09:05:01]line Контрольно-Кассовый Чек [09:05:01]line ПРОДАЖА [09:05:01]line ТРК (МРК, ГНК) : 32 [09:05:01]line Товар: 2710124130 [09:05:01]line Аи-92-К-5 [09:05:01]line 14.750 * 67.80 [09:05:01]line = 1000.05 [09:05:01]line НДС 12% НСП 1% [09:05:01]line > о реализуемом товаре [09:05:01]line ОКРУГЛЕНИЕ: -0.05 [09:05:01]line ИТОГО: 1000.00 [09:05:01]line Внесено: 1000.00 [09:05:01]line СДАЧА: 0.00 [09:05:01]line НСП 1% : 8.85 [09:05:01]line НДС 12% : 106.20 [09:05:01]line Наличными: 1000.00 [09:05:01]line Безнал.: 0.00 [09:05:01]line Место: АЗС № 94 "Партнер Нефть" [09:05:01]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [09:05:01]line СНО: Общий режим [09:05:01]line Чек 111 18.08.2024 09:05 [09:05:01]line Смена: 449 ФФД: 1.0 [09:05:01]line ЗНМ: 0300000099 [09:05:01]line РНМ: 0000000000091865 [09:05:01]line Версия ККМ: 001 [09:05:01]line ФМ: 0000000000871820 [09:05:01]line ФД: 260553 [09:05:01]line ФПД: 44140506998925 [09:05:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T090503&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260553&fm=44140506998925&tin=02508201610067®Number=0000000000091865&sum=100000 [09:05:01]written 0, free lines is 4095 [09:05:01]OFD Sender: Processing packet 260553 [packets to send 192, broken 191] [09:05:01]ProducePacketName [09:05:01]name=ofd_packets/00260553 [09:05:01]OFD Sender: To server: pG, [09:05:01]CommunicateWithHost lk.salyk.kg:30040 [09:05:01]ConnectInit lk.salyk.kg [09:05:01]Connected sock=10 [09:05: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 30 0F 01 00 00 9B DE 07 01 B8 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 3F B9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C9 F9 03 00 35 04 06 00 28 25 43 3D 68 8D FB 7F 12 18 37 39 84 86 [09:05: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 30 4F 00 00 00 AB CA 47 00 9C 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C9 F9 03 00 F4 03 04 00 94 62 C1 66 B6 04 01 00 00 C5 AE B0 1C 8D 45 64 78 [09:05:01]CommunicateWithHost err = 0 [09:05:01]CheckOFDResponse [09:05:01]1017 (14) - 77093643461234 [09:05:01]1041 (16) - 0000000000871820 [09:05:01]1040 (4) - 260553 [09:05:01]1012 (4) - 18.08.2024 02:55 [09:05:01]1206 (1) - 0 [09:05:01]OFD Sender: Remove packet 260553 [09:05:01]ProducePacketName [09:05:01]name=ofd_packets/00260553 [09:05:01]NVStorageDeleteData [09:05:01]Write to MH i2c: 01 00 00 58 5B B3 [09:05:01]Write i2c OK [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: 01 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: 01 07 00 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: 01 07 00 58 5B 00 00 00 00 00 71 0C 37 [09:05:01]RasterBufferAndPrint [09:05:01]line [09:05:01]line [09:05:01]line [09:05:01]line [09:05:01]line [09:05:01]written 0, free lines is 3187 [09:05:01]MH_Cut [09:05:01]Write to MH i2c: D1 01 00 5F 5B 01 8C [09:05:01]Write i2c OK [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: D1 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: D1 01 00 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: D1 01 00 5F 5B 00 8B [09:05:01]Write to MH i2c: 01 00 00 60 5B BB [09:05:01]Write i2c OK [09:05:01]MH_I2C_Read... [09:05:02]OFD Sender: No OFD packet to send [09:05:02]*** Cut start [09:05:02]*** Purtial cut [09:05:02]*** Stage 1: CUTSNS_PIN = 1 [09:05:04]Read from MH i2c: 01 [09:05:04]MH_I2C_Read... [09:05:04]*** Stop cut motor [09:05:04]*** Cut end [09:05:04]Read from MH i2c: 01 07 00 [09:05:04]MH_I2C_Read... [09:05:04]Read from MH i2c: 01 07 00 60 5B 00 00 00 00 00 FF 0F D0 [09:05:04]process_action close_receipt done [09:05:04]requested_data is exist [09:05:04]produce_requested_data [09:05:04]requested_item fm.sn is exist - process it [09:05:04]wFMCommunicate request_size=4 [09:05:04]MH_SAM_APDU [09:05:04]CAPDU: 80 11 00 00 [09:05:04]Write to MH i2c: E2 08 00 61 5B 80 11 00 00 00 00 00 00 36 [09:05:04]Write i2c OK [09:05:04]MH_I2C_Read... [09:05:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:04]Read from MH i2c: E2 [09:05:04]MH_I2C_Read... [09:05:04]Read from MH i2c: E2 17 00 [09:05:04]MH_I2C_Read... [09:05:04]Read from MH i2c: E2 17 00 61 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 83 [09:05:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:05:04]wFMCommunicate OK [09:05:04]requested_item fd.num is exist - process it [09:05:04]SAM_PROTO_GetFieldsCounters [09:05:04]wFMCommunicate request_size=4 [09:05:04]MH_SAM_APDU [09:05:04]CAPDU: 80 13 00 00 [09:05:04]Write to MH i2c: E2 08 00 62 5B 80 13 00 00 00 00 00 00 39 [09:05:04]Write i2c OK [09:05:04]MH_I2C_Read... [09:05:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:05:05]Read from MH i2c: E2 [09:05:05]MH_I2C_Read... [09:05:05]Read from MH i2c: E2 62 00 [09:05:05]MH_I2C_Read... [09:05:05]Read from MH i2c: E2 62 00 62 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C9 F9 03 00 0E 04 04 00 C1 01 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 2C [09:05:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C9 F9 03 00 0E 04 04 00 C1 01 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 [09:05:05]wFMCommunicate OK [09:05:05]SAM_PROTO_GetFieldsCounters done [09:05:05]requested_item shift.num is exist - process it [09:05:05]requested_item shift.opened is exist - process it [09:05:05]req_shift_opened [09:05:05]FM_GetShiftState [09:05:05]SAM_PROTO_GetShiftState [09:05:05]wFMCommunicate request_size=4 [09:05:05]MH_SAM_APDU [09:05:05]CAPDU: 80 13 01 00 [09:05:05]Write to MH i2c: E2 08 00 63 5B 80 13 01 00 00 00 00 00 3B [09:05:05]Write i2c OK [09:05:05]MH_I2C_Read... [09:05:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:05]Read from MH i2c: E2 [09:05:05]MH_I2C_Read... [09:05:05]Read from MH i2c: E2 0E 00 [09:05:05]MH_I2C_Read... [09:05:05]Read from MH i2c: E2 0E 00 63 5B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 78 [09:05:05]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:05:05]wFMCommunicate OK [09:05:05]SAM_PROTO_GetShiftState done [09:05:05]FM_GetShiftState done [09:05:05]req_shift_opened done [09:05:05]requested_item shift.open_date is exist - process it [09:05:05]req_shift_open_date [09:05:05]req_shift_open_date done [09:05:05]produce_requested_data done [09:05:05]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260553,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [09:05:05]process_action_free close_receipt [09:05:05]json_value_free [09:05:05]json_value_free done [09:05:05]process_json_proto returns [09:05:05]Send response to host [09:05:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260553,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [09:05:05]free response buf [09:05:05]execute_script done [09:05:05]execute_script returns [09:05:05]free content buf [09:05:05]Sock 9.Close socket [09:05:05]Sock 9.Thread stoped [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:02]accept exits with 7 [09:06:02]New connection [09:06:02]New thread 3066473828 created [09:06:02]Thread 3066617188 joined [09:06:02]Waiting for new connection... [09:06:02] Sock 7.Parse request [09:06:02]Sock 7.Check first char [09:06:02]Sock 7.First char is OK [09:06:02]request: POST /json_proto HTTP/1.0 [09:06:02]Method: POST [09:06:02]URL: /json_proto [09:06:02]Method is POST - this is cgi request [09:06:02]url: /json_proto [09:06:02]query_string will be loaded in cgi processing [09:06:02]execute_cgi json_proto POST (null) [09:06:02]execute_cgi path=json_proto method=POST [09:06:02]POST find Content-Length [09:06:02]Host: 172.17.55.133:8080 [09:06:02]Content-Length: 817 [09:06:02]Content-Type: application/json [09:06:02] [09:06:02]POST finish read [09:06:02]Found Content-Length = 817 [09:06:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:02]execute_script... [09:06: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)1036098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:02]POST & json_proto [09:06:02]process_json_proto [09:06:02]json parsed OK: [09:06:02]protocol is kg_v1.0 [09:06:02]action value=close_receipt [09:06:02]process_action close_receipt [09:06:02]cmd_close_receipt [09:06:02]MH_GetDate [09:06:02]Write to MH i2c: F0 00 00 64 5B AE [09:06:02]Write i2c OK [09:06:02]MH_I2C_Read... [09:06:02]Read from MH i2c: F0 [09:06:02]MH_I2C_Read... [09:06:02]Read from MH i2c: F0 09 00 [09:06:02]MH_I2C_Read... [09:06:02]Read from MH i2c: F0 09 00 64 5B 00 7E B9 C1 66 34 48 D8 65 CE [09:06:02]GetLastDocTimeStamp 1723971903 [09:06:02]current date 1723971966 [09:06:02]FM_GetShiftState [09:06:02]SAM_PROTO_GetShiftState [09:06:02]wFMCommunicate request_size=4 [09:06:02]MH_SAM_APDU [09:06:02]CAPDU: 80 13 01 00 [09:06:02]Write to MH i2c: E2 08 00 65 5B 80 13 01 00 00 00 00 00 3D [09:06:02]Write i2c OK [09:06:02]MH_I2C_Read... [09:06:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:02]Read from MH i2c: E2 [09:06:02]MH_I2C_Read... [09:06:02]Read from MH i2c: E2 0E 00 [09:06:02]MH_I2C_Read... [09:06:02]Read from MH i2c: E2 0E 00 65 5B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 7A [09:06:02]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:06:02]wFMCommunicate OK [09:06:02]SAM_PROTO_GetShiftState done [09:06:02]FM_GetShiftState done [09:06:02]opened in 1723940556 [09:06:02]opened+sec_in_day 1724026956 [09:06:02]quantity*price = 50036 [09:06:02]sum+1 = 50037 [09:06:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 112 18.08.2024 09:06 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871820 ФД: 260554 ФПД: 89902843428248 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T090606&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260554&fm=89902843428248&tin=02508201610067®Number=0000000000091865&sum=50036 [09:06:04]StoreToDocumentArchive [09:06:04]shift 449 fd 260554 [09:06:04]save to /storage/0449/doc_00260554 [09:06:04]save last doc name /storage/0449/doc_00260554 to /storage/kkm_last_doc_name [09:06:04]save OK [09:06:04]Clear old archive folders... [09:06:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:06:04]tlvbuf is 004536C0 [09:06:04]SAM_PROTO_ClearQueue [09:06:04]wFMCommunicate request_size=4 [09:06:04]MH_SAM_APDU [09:06:04]CAPDU: 80 09 00 00 [09:06:04]Write to MH i2c: E2 08 00 72 5B 80 09 00 00 00 00 00 00 3F [09:06:04]Write i2c OK [09:06:04]MH_I2C_Read... [09:06:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:04]Read from MH i2c: E2 [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: E2 03 00 [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: E2 03 00 72 5B 00 90 00 41 [09:06:04]RAPDU: 90 00 [09:06:04]wFMCommunicate OK [09:06:04]SAM_PROTO_ClearQueue done [09:06:04]KKMCreateOFDPacket [09:06:04]OFDProtocolAddRootSTLVToBuf [09:06:04]FM_MakeSignedData [09:06:04]FM_MakeSignedData [09:06:04]SAM_PROTO_SignData [09:06:04]wFMCommunicate request_size=4 [09:06:04]MH_SAM_APDU [09:06:04]CAPDU: 80 0D 01 02 [09:06:04]Write to MH i2c: E2 08 00 73 5B 80 0D 01 02 00 00 00 00 47 [09:06:04]Write i2c OK [09:06:04]MH_I2C_Read... [09:06:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:04]Read from MH i2c: E2 [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: E2 03 00 [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: E2 03 00 73 5B 00 90 00 42 [09:06:04]RAPDU: 90 00 [09:06:04]wFMCommunicate OK [09:06:04]wFMCommunicate request_size=255 [09:06:04]MH_SAM_APDU [09: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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 7E B9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CA F9 03 00 35 04 06 00 51 [09:06:04]Write to MH i2c: E2 02 01 74 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 7E B9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CA F9 03 00 35 04 06 00 51 00 00 B3 [09:06:04]Write i2c OK [09:06:04]MH_I2C_Read... [09:06:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:04]Read from MH i2c: E2 [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: E2 03 00 [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: E2 03 00 74 5B 00 90 00 43 [09:06:04]RAPDU: 90 00 [09:06:04]wFMCommunicate OK [09:06:04]wFMCommunicate request_size=10 [09:06:04]MH_SAM_APDU [09:06:04]CAPDU: 80 0D 02 02 05 C4 23 0B FD 98 [09:06:04]Write to MH i2c: E2 0D 00 75 5B 80 0D 02 02 05 00 C4 23 0B FD 98 00 00 DB [09:06:04]Write i2c OK [09:06:04]MH_I2C_Read... [09:06:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:04]Read from MH i2c: E2 [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: E2 03 00 [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: E2 03 00 75 5B 00 90 00 44 [09:06:04]RAPDU: 90 00 [09:06:04]wFMCommunicate OK [09:06:04]wFMCommunicate request_size=4 [09:06:04]MH_SAM_APDU [09:06:04]CAPDU: 80 0D 03 02 [09:06:04]Write to MH i2c: E2 08 00 76 5B 80 0D 03 02 00 00 00 00 4C [09:06:04]Write i2c OK [09:06:04]MH_I2C_Read... [09:06:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:04]Read from MH i2c: E2 [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: E2 0B 00 [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: E2 0B 00 76 5B 00 89 D6 A2 0B 19 3B 39 70 90 00 56 [09:06:04]RAPDU: 89 D6 A2 0B 19 3B 39 70 90 00 [09:06:04]wFMCommunicate OK [09:06:04]SAM_PROTO_SignData done [09:06:04]FM_MakeSignedData done [09:06:04]CreateOFDProtocolMessage [09:06:04]wFMCommunicate request_size=4 [09:06:04]MH_SAM_APDU [09:06:04]CAPDU: 80 11 00 00 [09:06:04]Write to MH i2c: E2 08 00 77 5B 80 11 00 00 00 00 00 00 4C [09:06:04]Write i2c OK [09:06:04]MH_I2C_Read... [09:06:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:04]Read from MH i2c: E2 [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: E2 17 00 [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: E2 17 00 77 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 99 [09:06:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:06:04]wFMCommunicate OK [09:06:04]CreateOFDProtocolMessage done [09:06:04]OFDSenderStorePacket 260554 [09:06:04]StoreOFDPacket docnum=260554 [09:06:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 1E 73 07 01 1D 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 7E B9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CA F9 03 00 35 04 06 00 51 C4 23 0B FD 98 89 D6 A2 0B 19 3B 39 70 [09:06:04]CheckFolder [09:06:04]dirname=/storage/ofd_packets [09:06:04]CheckFolder done [09:06:04]ProducePacketName [09:06:04]name=ofd_packets/00260554 [09:06:04]NVStorageSaveData ofd_packets/00260554 [09:06:04]File name is /storage/ofd_packets/00260554 [09:06:04]Write 301 bytes [09:06:04]NVStorageSaveData done [09:06:04]OFDSenderStorePacket done [09:06:04]KKMCreateOFDPacket done [09:06:04]NVStorageSaveData kkm_last_timestamp [09:06:04]File name is /storage/kkm_last_timestamp [09:06:04]Write 4 bytes [09:06:04]NVStorageSaveData done [09:06:04]ExternCall_PrintAddStr [09:06:04]wPrintStart [09:06:04]Write to MH i2c: 01 00 00 78 5B D3 [09:06:04]Write i2c OK [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: 01 [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: 01 07 00 [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: 01 07 00 78 5B 00 00 00 00 00 FF 0F E8 [09:06:04]RasterBufferAndPrint [09:06:04]line Счет N : (1)1036098 [09:06:04]line ИНН: 02508201610067 [09:06:04]line Контрольно-Кассовый Чек [09:06:04]line ПРОДАЖА [09:06:04]line ТРК (МРК, ГНК) : 12 [09:06:04]line Товар: 2710124130 [09:06:04]line Аи-92-К-5 [09:06:04]line 7.380 * 67.80 [09:06:04]line = 500.36 [09:06:04]line НДС 12% НСП 1% [09:06:04]line > о реализуемом товаре [09:06:04]line ИТОГО: 500.36 [09:06:04]line НСП 1% : 4.43 [09:06:04]line НДС 12% : 53.14 [09:06:04]line Наличными: 0.00 [09:06:04]line Безнал.: 500.36 [09:06:04]line Место: АЗС № 94 "Партнер Нефть" [09:06:04]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [09:06:04]line СНО: Общий режим [09:06:04]line Чек 112 18.08.2024 09:06 [09:06:04]line Смена: 449 ФФД: 1.0 [09:06:04]line ЗНМ: 0300000099 [09:06:04]line РНМ: 0000000000091865 [09:06:04]line Версия ККМ: 001 [09:06:04]line Платежная система: Бакай Банк [09:06:04]line ФМ: 0000000000871820 [09:06:04]line ФД: 260554 [09:06:04]line ФПД: 89902843428248 [09:06:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T090606&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260554&fm=89902843428248&tin=02508201610067®Number=0000000000091865&sum=50036 [09:06:04]written 0, free lines is 4095 [09:06:04]OFD Sender: Processing packet 260554 [packets to send 192, broken 191] [09:06:04]ProducePacketName [09:06:04]name=ofd_packets/00260554 [09:06:04]OFD Sender: To server: pG, [09:06:04]CommunicateWithHost lk.salyk.kg:30040 [09:06:04]ConnectInit lk.salyk.kg [09:06:04]Connected sock=10 [09:06: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 30 0F 01 00 00 1E 73 07 01 1D 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 7E B9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CA F9 03 00 35 04 06 00 51 C4 23 0B FD 98 89 D6 A2 0B 19 3B 39 70 [09: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 30 4F 00 00 00 99 6B 47 00 5B DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CA F9 03 00 F4 03 04 00 D4 62 C1 66 B6 04 01 00 00 AC 45 3E 26 82 1E DD 39 [09:06:05]CommunicateWithHost err = 0 [09:06:05]CheckOFDResponse [09:06:05]1017 (14) - 77093643461234 [09:06:05]1041 (16) - 0000000000871820 [09:06:05]1040 (4) - 260554 [09:06:05]1012 (4) - 18.08.2024 02:56 [09:06:05]1206 (1) - 0 [09:06:05]OFD Sender: Remove packet 260554 [09:06:05]ProducePacketName [09:06:05]name=ofd_packets/00260554 [09:06:05]NVStorageDeleteData [09:06:05]Write to MH i2c: 01 00 00 A2 5B FD [09:06:05]Write i2c OK [09:06:05]MH_I2C_Read... [09:06:05]Read from MH i2c: 01 [09:06:05]MH_I2C_Read... [09:06:05]Read from MH i2c: 01 07 00 [09:06:05]MH_I2C_Read... [09:06:05]Read from MH i2c: 01 07 00 A2 5B 00 00 00 00 00 88 0C 98 [09:06:05]RasterBufferAndPrint [09:06:05]line [09:06:05]line [09:06:05]line [09:06:05]line [09:06:05]line [09:06:05]written 0, free lines is 3211 [09:06:05]MH_Cut [09:06:05]Write to MH i2c: D1 01 00 A9 5B 01 D6 [09:06:05]Write i2c OK [09:06:05]MH_I2C_Read... [09:06:05]Read from MH i2c: D1 [09:06:05]MH_I2C_Read... [09:06:05]Read from MH i2c: D1 01 00 [09:06:05]MH_I2C_Read... [09:06:05]Read from MH i2c: D1 01 00 A9 5B 00 D5 [09:06:05]Write to MH i2c: 01 00 00 AA 5B 05 [09:06:05]Write i2c OK [09:06:05]MH_I2C_Read... [09:06:05]OFD Sender: No OFD packet to send [09:06:06]*** Cut start [09:06:06]*** Purtial cut [09:06:06]*** Stage 1: CUTSNS_PIN = 1 [09:06:08]Read from MH i2c: 01 [09:06:08]MH_I2C_Read... [09:06:08]*** Stop cut motor [09:06:08]*** Cut end [09:06:08]Read from MH i2c: 01 07 00 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: 01 07 00 AA 5B 00 00 00 00 00 FF 0F 1A [09:06:08]process_action close_receipt done [09:06:08]requested_data is exist [09:06:08]produce_requested_data [09:06:08]requested_item fm.sn is exist - process it [09:06:08]wFMCommunicate request_size=4 [09:06:08]MH_SAM_APDU [09:06:08]CAPDU: 80 11 00 00 [09:06:08]Write to MH i2c: E2 08 00 AB 5B 80 11 00 00 00 00 00 00 80 [09:06:08]Write i2c OK [09:06:08]MH_I2C_Read... [09:06:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:08]Read from MH i2c: E2 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: E2 17 00 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: E2 17 00 AB 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 CD [09:06:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:06:08]wFMCommunicate OK [09:06:08]requested_item fd.num is exist - process it [09:06:08]SAM_PROTO_GetFieldsCounters [09:06:08]wFMCommunicate request_size=4 [09:06:08]MH_SAM_APDU [09:06:08]CAPDU: 80 13 00 00 [09:06:08]Write to MH i2c: E2 08 00 AC 5B 80 13 00 00 00 00 00 00 83 [09:06:08]Write i2c OK [09:06:08]MH_I2C_Read... [09:06:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:08]Read from MH i2c: E2 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: E2 62 00 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: E2 62 00 AC 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 CA F9 03 00 0E 04 04 00 C1 01 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 7A [09:06: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 CA F9 03 00 0E 04 04 00 C1 01 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 [09:06:08]wFMCommunicate OK [09:06:08]SAM_PROTO_GetFieldsCounters done [09:06:08]requested_item shift.num is exist - process it [09:06:08]requested_item shift.opened is exist - process it [09:06:08]req_shift_opened [09:06:08]FM_GetShiftState [09:06:08]SAM_PROTO_GetShiftState [09:06:08]wFMCommunicate request_size=4 [09:06:08]MH_SAM_APDU [09:06:08]CAPDU: 80 13 01 00 [09:06:08]Write to MH i2c: E2 08 00 AD 5B 80 13 01 00 00 00 00 00 85 [09:06:08]Write i2c OK [09:06:08]MH_I2C_Read... [09:06:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:08]Read from MH i2c: E2 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: E2 0E 00 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: E2 0E 00 AD 5B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C2 [09:06:08]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:06:08]wFMCommunicate OK [09:06:08]SAM_PROTO_GetShiftState done [09:06:08]FM_GetShiftState done [09:06:08]req_shift_opened done [09:06:08]requested_item shift.open_date is exist - process it [09:06:08]req_shift_open_date [09:06:08]req_shift_open_date done [09:06:08]produce_requested_data done [09:06:08]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260554,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [09:06:08]process_action_free close_receipt [09:06:08]json_value_free [09:06:08]json_value_free done [09:06:08]process_json_proto returns [09:06:08]Send response to host [09:06:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260554,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [09:06:08]free response buf [09:06:08]execute_script done [09:06:08]execute_script returns [09:06:08]free content buf [09:06:08]Sock 7.Close socket [09:06:08]Sock 7.Thread stoped [09:06:10]OFD Sender: No OFD packet to send [09:06:15]OFD Sender: No OFD packet to send [09:06:20]OFD Sender: No OFD packet to send [09:06:25]OFD Sender: No OFD packet to send [09:06:30]OFD Sender: No OFD packet to send [09:06:35]OFD Sender: No OFD packet to send [09:06:40]OFD Sender: No OFD packet to send [09:06:45]OFD Sender: No OFD packet to send [09:06:50]OFD Sender: No OFD packet to send [09:06:55]OFD Sender: No OFD packet to send [09:07:00]OFD Sender: No OFD packet to send [09:07:05]OFD Sender: No OFD packet to send [09:07:10]OFD Sender: No OFD packet to send [09:07:15]OFD Sender: No OFD packet to send [09:07:20]OFD Sender: No OFD packet to send [09:07:25]OFD Sender: No OFD packet to send [09:07:30]OFD Sender: No OFD packet to send [09:07:35]OFD Sender: No OFD packet to send [09:07:40]OFD Sender: No OFD packet to send [09:07:45]OFD Sender: No OFD packet to send [09:07:50]OFD Sender: No OFD packet to send [09:07:55]OFD Sender: No OFD packet to send [09:08:00]OFD Sender: No OFD packet to send [09:08:05]OFD Sender: No OFD packet to send [09:08:10]OFD Sender: No OFD packet to send [09:08:15]OFD Sender: No OFD packet to send [09:08:20]OFD Sender: No OFD packet to send [09:08:25]OFD Sender: No OFD packet to send [09:08:30]OFD Sender: No OFD packet to send [09:08:35]OFD Sender: No OFD packet to send [09:08:40]OFD Sender: No OFD packet to send [09:08:45]OFD Sender: No OFD packet to send [09:08:50]OFD Sender: No OFD packet to send [09:08:55]OFD Sender: No OFD packet to send [09:09:00]OFD Sender: No OFD packet to send [09:09:05]OFD Sender: No OFD packet to send [09:09:10]OFD Sender: No OFD packet to send [09:09:15]OFD Sender: No OFD packet to send [09:09:20]OFD Sender: No OFD packet to send [09:09:25]OFD Sender: No OFD packet to send [09:09:30]OFD Sender: No OFD packet to send [09:09:35]OFD Sender: No OFD packet to send [09:09:40]OFD Sender: No OFD packet to send [09:09:45]OFD Sender: No OFD packet to send [09:09:50]OFD Sender: No OFD packet to send [09:09:55]OFD Sender: No OFD packet to send [09:10:00]OFD Sender: No OFD packet to send [09:10:05]OFD Sender: No OFD packet to send [09:10:10]OFD Sender: No OFD packet to send [09:10:15]OFD Sender: No OFD packet to send [09:10:20]OFD Sender: No OFD packet to send [09:10:25]OFD Sender: No OFD packet to send [09:10:30]OFD Sender: No OFD packet to send [09:10:35]OFD Sender: No OFD packet to send [09:10:40]OFD Sender: No OFD packet to send [09:10:45]OFD Sender: No OFD packet to send [09:10:50]OFD Sender: No OFD packet to send [09:10:55]OFD Sender: No OFD packet to send [09:11:00]OFD Sender: No OFD packet to send [09:11:05]OFD Sender: No OFD packet to send [09:11:10]OFD Sender: No OFD packet to send [09:11:15]OFD Sender: No OFD packet to send [09:11:20]OFD Sender: No OFD packet to send [09:11:25]OFD Sender: No OFD packet to send [09:11:30]OFD Sender: No OFD packet to send [09:11:35]OFD Sender: No OFD packet to send [09:11:40]OFD Sender: No OFD packet to send [09:11:46]OFD Sender: No OFD packet to send [09:11:51]OFD Sender: No OFD packet to send [09:11:56]OFD Sender: No OFD packet to send [09:12:01]OFD Sender: No OFD packet to send [09:12:06]OFD Sender: No OFD packet to send [09:12:11]OFD Sender: No OFD packet to send [09:12:16]OFD Sender: No OFD packet to send [09:12:21]OFD Sender: No OFD packet to send [09:12:26]OFD Sender: No OFD packet to send [09:12:31]OFD Sender: No OFD packet to send [09:12:36]OFD Sender: No OFD packet to send [09:12:41]OFD Sender: No OFD packet to send [09:12:46]OFD Sender: No OFD packet to send [09:12:51]OFD Sender: No OFD packet to send [09:12:56]OFD Sender: No OFD packet to send [09:13:01]OFD Sender: No OFD packet to send [09:13:06]OFD Sender: No OFD packet to send [09:13:11]OFD Sender: No OFD packet to send [09:13:16]OFD Sender: No OFD packet to send [09:13:21]OFD Sender: No OFD packet to send [09:13:26]OFD Sender: No OFD packet to send [09:13:31]OFD Sender: No OFD packet to send [09:13:36]OFD Sender: No OFD packet to send [09:13:41]OFD Sender: No OFD packet to send [09:13:46]OFD Sender: No OFD packet to send [09:13:51]OFD Sender: No OFD packet to send [09:13:56]OFD Sender: No OFD packet to send [09:14:01]OFD Sender: No OFD packet to send [09:14:06]OFD Sender: No OFD packet to send [09:14:11]OFD Sender: No OFD packet to send [09:14:16]OFD Sender: No OFD packet to send [09:14:21]OFD Sender: No OFD packet to send [09:14:26]OFD Sender: No OFD packet to send [09:14:31]OFD Sender: No OFD packet to send [09:14:36]OFD Sender: No OFD packet to send [09:14:41]OFD Sender: No OFD packet to send [09:14:46]OFD Sender: No OFD packet to send [09:14:51]OFD Sender: No OFD packet to send [09:14:51]accept exits with 9 [09:14:51]New connection [09:14:51]New thread 3066617188 created [09:14:51]Thread 3066473828 joined [09:14:51]Waiting for new connection... [09:14:51] Sock 9.Parse request [09:14:51]Sock 9.Check first char [09:14:51]Sock 9.First char is OK [09:14:51]request: POST /json_proto HTTP/1.0 [09:14:51]Method: POST [09:14:51]URL: /json_proto [09:14:51]Method is POST - this is cgi request [09:14:51]url: /json_proto [09:14:51]query_string will be loaded in cgi processing [09:14:51]execute_cgi json_proto POST (null) [09:14:51]execute_cgi path=json_proto method=POST [09:14:51]POST find Content-Length [09:14:51]Host: 172.17.55.133:8080 [09:14:51]Content-Length: 806 [09:14:51]Content-Type: application/json [09:14:51] [09:14:51]POST finish read [09:14:51]Found Content-Length = 806 [09:14:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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\u000A4081675", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:51]execute_script... [09:14: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)1036100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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\u000A4081675", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:51]POST & json_proto [09:14:51]process_json_proto [09:14:51]json parsed OK: [09:14:51]protocol is kg_v1.0 [09:14:51]action value=close_receipt [09:14:51]process_action close_receipt [09:14:51]cmd_close_receipt [09:14:51]MH_GetDate [09:14:51]Write to MH i2c: F0 00 00 AE 5B F8 [09:14:51]Write i2c OK [09:14:51]MH_I2C_Read... [09:14:51]Read from MH i2c: F0 [09:14:51]MH_I2C_Read... [09:14:51]Read from MH i2c: F0 09 00 [09:14:51]MH_I2C_Read... [09:14:51]Read from MH i2c: F0 09 00 AE 5B 00 8F BB C1 66 34 48 D8 65 2B [09:14:51]GetLastDocTimeStamp 1723971966 [09:14:51]current date 1723972495 [09:14:51]FM_GetShiftState [09:14:51]SAM_PROTO_GetShiftState [09:14:51]wFMCommunicate request_size=4 [09:14:51]MH_SAM_APDU [09:14:51]CAPDU: 80 13 01 00 [09:14:51]Write to MH i2c: E2 08 00 AF 5B 80 13 01 00 00 00 00 00 87 [09:14:51]Write i2c OK [09:14:51]MH_I2C_Read... [09:14:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:51]Read from MH i2c: E2 [09:14:51]MH_I2C_Read... [09:14:51]Read from MH i2c: E2 0E 00 [09:14:51]MH_I2C_Read... [09:14:51]Read from MH i2c: E2 0E 00 AF 5B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C4 [09:14:51]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:14:51]wFMCommunicate OK [09:14:51]SAM_PROTO_GetShiftState done [09:14:51]FM_GetShiftState done [09:14:51]opened in 1723940556 [09:14:51]opened+sec_in_day 1724026956 [09:14:51]quantity*price = 0 [09:14:51]sum+1 = 1 [09:14:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 113 18.08.2024 09:14 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: Топливные Талоны 4081675 ФМ: 0000000000871820 ФД: 260555 ФПД: 231939451424066 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T091455&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260555&fm=231939451424066&tin=02508201610067®Number=0000000000091865&sum=0 [09:14:52]StoreToDocumentArchive [09:14:52]shift 449 fd 260555 [09:14:52]save to /storage/0449/doc_00260555 [09:14:52]save last doc name /storage/0449/doc_00260555 to /storage/kkm_last_doc_name [09:14:52]save OK [09:14:52]Clear old archive folders... [09:14:52]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:14:52]tlvbuf is 003A03A0 [09:14:52]SAM_PROTO_ClearQueue [09:14:52]wFMCommunicate request_size=4 [09:14:52]MH_SAM_APDU [09:14:52]CAPDU: 80 09 00 00 [09:14:52]Write to MH i2c: E2 08 00 BC 5B 80 09 00 00 00 00 00 00 89 [09:14:52]Write i2c OK [09:14:52]MH_I2C_Read... [09:14:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:14:52]Read from MH i2c: E2 [09:14:52]MH_I2C_Read... [09:14:52]Read from MH i2c: E2 03 00 [09:14:52]MH_I2C_Read... [09:14:52]Read from MH i2c: E2 03 00 BC 5B 00 90 00 8B [09:14:52]RAPDU: 90 00 [09:14:52]wFMCommunicate OK [09:14:52]SAM_PROTO_ClearQueue done [09:14:52]KKMCreateOFDPacket [09:14:52]OFDProtocolAddRootSTLVToBuf [09:14:52]FM_MakeSignedData [09:14:52]FM_MakeSignedData [09:14:52]SAM_PROTO_SignData [09:14:52]wFMCommunicate request_size=4 [09:14:52]MH_SAM_APDU [09:14:52]CAPDU: 80 0D 01 02 [09:14:52]Write to MH i2c: E2 08 00 BD 5B 80 0D 01 02 00 00 00 00 91 [09:14:52]Write i2c OK [09:14:52]MH_I2C_Read... [09:14:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:14:52]Read from MH i2c: E2 [09:14:52]MH_I2C_Read... [09:14:52]Read from MH i2c: E2 03 00 [09:14:52]MH_I2C_Read... [09:14:52]Read from MH i2c: E2 03 00 BD 5B 00 90 00 8C [09:14:52]RAPDU: 90 00 [09:14:52]wFMCommunicate OK [09:14:52]wFMCommunicate request_size=255 [09:14:52]MH_SAM_APDU [09:14:52]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 71 00 00 00 F4 03 04 00 8F BB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CB F9 03 00 35 04 06 00 [09:14:52]Write to MH i2c: E2 02 01 BE 5B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 71 00 00 00 F4 03 04 00 8F BB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CB F9 03 00 35 04 06 00 00 00 AC [09:14:52]Write i2c OK [09:14:52]MH_I2C_Read... [09:14:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:53]Read from MH i2c: E2 [09:14:53]MH_I2C_Read... [09:14:53]Read from MH i2c: E2 03 00 [09:14:53]MH_I2C_Read... [09:14:53]Read from MH i2c: E2 03 00 BE 5B 00 90 00 8D [09:14:53]RAPDU: 90 00 [09:14:53]wFMCommunicate OK [09:14:53]wFMCommunicate request_size=11 [09:14:53]MH_SAM_APDU [09:14:53]CAPDU: 80 0D 02 02 06 D2 F2 9C 9C 8D 42 [09:14:53]Write to MH i2c: E2 0E 00 BF 5B 80 0D 02 02 06 00 D2 F2 9C 9C 8D 42 00 00 6B [09:14:53]Write i2c OK [09:14:53]MH_I2C_Read... [09:14:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:53]Read from MH i2c: E2 [09:14:53]MH_I2C_Read... [09:14:53]Read from MH i2c: E2 03 00 [09:14:53]MH_I2C_Read... [09:14:53]Read from MH i2c: E2 03 00 BF 5B 00 90 00 8E [09:14:53]RAPDU: 90 00 [09:14:53]wFMCommunicate OK [09:14:53]wFMCommunicate request_size=4 [09:14:53]MH_SAM_APDU [09:14:53]CAPDU: 80 0D 03 02 [09:14:53]Write to MH i2c: E2 08 00 C0 5B 80 0D 03 02 00 00 00 00 96 [09:14:53]Write i2c OK [09:14:53]MH_I2C_Read... [09:14:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:14:53]Read from MH i2c: E2 [09:14:53]MH_I2C_Read... [09:14:53]Read from MH i2c: E2 0B 00 [09:14:53]MH_I2C_Read... [09:14:53]Read from MH i2c: E2 0B 00 C0 5B 00 1C 79 58 DD 7C 33 E3 0C 90 00 FF [09:14:53]RAPDU: 1C 79 58 DD 7C 33 E3 0C 90 00 [09:14:53]wFMCommunicate OK [09:14:53]SAM_PROTO_SignData done [09:14:53]FM_MakeSignedData done [09:14:53]CreateOFDProtocolMessage [09:14:53]wFMCommunicate request_size=4 [09:14:53]MH_SAM_APDU [09:14:53]CAPDU: 80 11 00 00 [09:14:53]Write to MH i2c: E2 08 00 C1 5B 80 11 00 00 00 00 00 00 96 [09:14:53]Write i2c OK [09:14:53]MH_I2C_Read... [09:14:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:53]Read from MH i2c: E2 [09:14:53]MH_I2C_Read... [09:14:53]Read from MH i2c: E2 17 00 [09:14:53]MH_I2C_Read... [09:14:53]Read from MH i2c: E2 17 00 C1 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E3 [09:14:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:14:53]wFMCommunicate OK [09:14:53]CreateOFDProtocolMessage done [09:14:53]OFDSenderStorePacket 260555 [09:14:53]StoreOFDPacket docnum=260555 [09:14:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 04 E9 08 01 2B 0D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 71 00 00 00 F4 03 04 00 8F BB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CB F9 03 00 35 04 06 00 D2 F2 9C 9C 8D 42 1C 79 58 DD 7C 33 E3 0C [09:14:53]CheckFolder [09:14:53]dirname=/storage/ofd_packets [09:14:53]CheckFolder done [09:14:53]ProducePacketName [09:14:53]name=ofd_packets/00260555 [09:14:53]NVStorageSaveData ofd_packets/00260555 [09:14:53]File name is /storage/ofd_packets/00260555 [09:14:53]Write 302 bytes [09:14:53]NVStorageSaveData done [09:14:53]OFDSenderStorePacket done [09:14:53]KKMCreateOFDPacket done [09:14:53]NVStorageSaveData kkm_last_timestamp [09:14:53]File name is /storage/kkm_last_timestamp [09:14:53]Write 4 bytes [09:14:53]NVStorageSaveData done [09:14:53]ExternCall_PrintAddStr [09:14:53]wPrintStart [09:14:53]Write to MH i2c: 01 00 00 C2 5B 1D [09:14:53]Write i2c OK [09:14:53]MH_I2C_Read... [09:14:53]Read from MH i2c: 01 [09:14:53]MH_I2C_Read... [09:14:53]Read from MH i2c: 01 07 00 [09:14:53]MH_I2C_Read... [09:14:53]Read from MH i2c: 01 07 00 C2 5B 00 00 00 00 00 FF 0F 32 [09:14:53]RasterBufferAndPrint [09:14:53]line Счет N : (1)1036100 [09:14:53]line ИНН: 02508201610067 [09:14:53]line Контрольно-Кассовый Чек [09:14:53]line ПРОДАЖА [09:14:53]line ТРК (МРК, ГНК) : 33 [09:14:53]line Товар: 2710194210 [09:14:53]line ДТ(л)-К-4 [09:14:53]line 20.000 * 0.00 [09:14:53]line = 0.00 [09:14:53]line НДС 12% НСП 1% [09:14:53]line > о реализуемом товаре [09:14:53]line ИТОГО: 0.00 [09:14:53]line НСП 1% : 0.00 [09:14:53]line НДС 12% : 0.00 [09:14:53]line Наличными: 0.00 [09:14:53]line Безнал.: 0.00 [09:14:53]line Место: АЗС № 94 "Партнер Нефть" [09:14:53]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [09:14:53]line СНО: Общий режим [09:14:53]line Чек 113 18.08.2024 09:14 [09:14:53]line Смена: 449 ФФД: 1.0 [09:14:53]line ЗНМ: 0300000099 [09:14:53]line РНМ: 0000000000091865 [09:14:53]line Версия ККМ: 001 [09:14:53]line Талоны: Топливные Талоны [09:14:53]line 4081675 [09:14:53]line ФМ: 0000000000871820 [09:14:53]line ФД: 260555 [09:14:53]line ФПД: 231939451424066 [09:14:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T091455&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260555&fm=231939451424066&tin=02508201610067®Number=0000000000091865&sum=0 [09:14:53]written 0, free lines is 4095 [09:14:53]OFD Sender: Processing packet 260555 [packets to send 192, broken 191] [09:14:53]ProducePacketName [09:14:53]name=ofd_packets/00260555 [09:14:53]OFD Sender: To server: pG, [09:14:53]CommunicateWithHost lk.salyk.kg:30040 [09:14:53]ConnectInit lk.salyk.kg [09:14:53]Connected sock=7 [09:14: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 30 10 01 00 00 04 E9 08 01 2B 0D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 71 00 00 00 F4 03 04 00 8F BB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CB F9 03 00 35 04 06 00 D2 F2 9C 9C 8D 42 1C 79 58 DD 7C 33 E3 0C [09:14: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 30 4F 00 00 00 33 76 47 00 6E 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 30 10 04 04 00 CB F9 03 00 F4 03 04 00 E4 64 C1 66 B6 04 01 00 00 6E 90 B0 01 04 F3 19 2D [09:14:53]CommunicateWithHost err = 0 [09:14:53]CheckOFDResponse [09:14:53]1017 (14) - 77093643461234 [09:14:53]1041 (16) - 0000000000871820 [09:14:53]1040 (4) - 260555 [09:14:53]1012 (4) - 18.08.2024 03:05 [09:14:53]1206 (1) - 0 [09:14:53]OFD Sender: Remove packet 260555 [09:14:53]ProducePacketName [09:14:53]name=ofd_packets/00260555 [09:14:53]NVStorageDeleteData [09:14:53]Write to MH i2c: 01 00 00 EC 5B 47 [09:14:53]Write i2c OK [09:14:53]MH_I2C_Read... [09:14:53]Read from MH i2c: 01 [09:14:53]MH_I2C_Read... [09:14:53]Read from MH i2c: 01 07 00 [09:14:53]MH_I2C_Read... [09:14:53]Read from MH i2c: 01 07 00 EC 5B 00 00 00 00 00 82 0C DC [09:14:53]RasterBufferAndPrint [09:14:53]line [09:14:53]line [09:14:53]line [09:14:53]line [09:14:53]line [09:14:53]written 0, free lines is 3206 [09:14:53]MH_Cut [09:14:53]Write to MH i2c: D1 01 00 F3 5B 01 20 [09:14:53]Write i2c OK [09:14:53]MH_I2C_Read... [09:14:53]Read from MH i2c: D1 [09:14:53]MH_I2C_Read... [09:14:53]Read from MH i2c: D1 01 00 [09:14:53]MH_I2C_Read... [09:14:53]Read from MH i2c: D1 01 00 F3 5B 00 1F [09:14:53]Write to MH i2c: 01 00 00 F4 5B 4F [09:14:53]Write i2c OK [09:14:53]MH_I2C_Read... [09:14:54]OFD Sender: No OFD packet to send [09:14:54]*** Cut start [09:14:54]*** Purtial cut [09:14:54]*** Stage 1: CUTSNS_PIN = 1 [09:14:56]Read from MH i2c: 01 [09:14:56]MH_I2C_Read... [09:14:56]*** Stop cut motor [09:14:56]*** Cut end [09:14:56]Read from MH i2c: 01 07 00 [09:14:56]MH_I2C_Read... [09:14:56]Read from MH i2c: 01 07 00 F4 5B 00 00 00 00 00 FF 0F 64 [09:14:56]process_action close_receipt done [09:14:56]requested_data is exist [09:14:56]produce_requested_data [09:14:56]requested_item fm.sn is exist - process it [09:14:56]wFMCommunicate request_size=4 [09:14:56]MH_SAM_APDU [09:14:56]CAPDU: 80 11 00 00 [09:14:56]Write to MH i2c: E2 08 00 F5 5B 80 11 00 00 00 00 00 00 CA [09:14:56]Write i2c OK [09:14:56]MH_I2C_Read... [09:14:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:56]Read from MH i2c: E2 [09:14:56]MH_I2C_Read... [09:14:56]Read from MH i2c: E2 17 00 [09:14:56]MH_I2C_Read... [09:14:56]Read from MH i2c: E2 17 00 F5 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 17 [09:14:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:14:56]wFMCommunicate OK [09:14:56]requested_item fd.num is exist - process it [09:14:56]SAM_PROTO_GetFieldsCounters [09:14:56]wFMCommunicate request_size=4 [09:14:56]MH_SAM_APDU [09:14:56]CAPDU: 80 13 00 00 [09:14:56]Write to MH i2c: E2 08 00 F6 5B 80 13 00 00 00 00 00 00 CD [09:14:56]Write i2c OK [09:14:56]MH_I2C_Read... [09:14:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:14:57]Read from MH i2c: E2 [09:14:57]MH_I2C_Read... [09:14:57]Read from MH i2c: E2 62 00 [09:14:57]MH_I2C_Read... [09:14:57]Read from MH i2c: E2 62 00 F6 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 CB F9 03 00 0E 04 04 00 C1 01 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 C8 [09:14: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 CB F9 03 00 0E 04 04 00 C1 01 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 [09:14:57]wFMCommunicate OK [09:14:57]SAM_PROTO_GetFieldsCounters done [09:14:57]requested_item shift.num is exist - process it [09:14:57]requested_item shift.opened is exist - process it [09:14:57]req_shift_opened [09:14:57]FM_GetShiftState [09:14:57]SAM_PROTO_GetShiftState [09:14:57]wFMCommunicate request_size=4 [09:14:57]MH_SAM_APDU [09:14:57]CAPDU: 80 13 01 00 [09:14:57]Write to MH i2c: E2 08 00 F7 5B 80 13 01 00 00 00 00 00 CF [09:14:57]Write i2c OK [09:14:57]MH_I2C_Read... [09:14:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:57]Read from MH i2c: E2 [09:14:57]MH_I2C_Read... [09:14:57]Read from MH i2c: E2 0E 00 [09:14:57]MH_I2C_Read... [09:14:57]Read from MH i2c: E2 0E 00 F7 5B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 0C [09:14:57]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:14:57]wFMCommunicate OK [09:14:57]SAM_PROTO_GetShiftState done [09:14:57]FM_GetShiftState done [09:14:57]req_shift_opened done [09:14:57]requested_item shift.open_date is exist - process it [09:14:57]req_shift_open_date [09:14:57]req_shift_open_date done [09:14:57]produce_requested_data done [09:14:57]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260555,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [09:14:57]process_action_free close_receipt [09:14:57]json_value_free [09:14:57]json_value_free done [09:14:57]process_json_proto returns [09:14:57]Send response to host [09:14:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260555,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [09:14:57]free response buf [09:14:57]execute_script done [09:14:57]execute_script returns [09:14:57]free content buf [09:14:57]Sock 9.Close socket [09:14:57]Sock 9.Thread stoped [09:14:59]OFD Sender: No OFD packet to send [09:14:59]accept exits with 10 [09:14:59]New connection [09:14:59]New thread 3066473828 created [09:14:59]Thread 3066617188 joined [09:14:59]Waiting for new connection... [09:14:59] Sock 10.Parse request [09:14:59]Sock 10.Check first char [09:14:59]Sock 10.First char is OK [09:14:59]request: POST /json_proto HTTP/1.0 [09:14:59]Method: POST [09:14:59]URL: /json_proto [09:14:59]Method is POST - this is cgi request [09:14:59]url: /json_proto [09:14:59]query_string will be loaded in cgi processing [09:14:59]execute_cgi json_proto POST (null) [09:14:59]execute_cgi path=json_proto method=POST [09:14:59]POST find Content-Length [09:14:59]Host: 172.17.55.133:8080 [09:14:59]Content-Length: 799 [09:14:59]Content-Type: application/json [09:14:59] [09:14:59]POST finish read [09:14:59]Found Content-Length = 799 [09:14:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 0.00, "quantity" : 118.120, "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\u000A11637", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:59]execute_script... [09:14: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)1036099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 0.00, "quantity" : 118.120, "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\u000A11637", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:59]POST & json_proto [09:14:59]process_json_proto [09:14:59]json parsed OK: [09:14:59]protocol is kg_v1.0 [09:14:59]action value=close_receipt [09:14:59]process_action close_receipt [09:14:59]cmd_close_receipt [09:14:59]MH_GetDate [09:14:59]Write to MH i2c: F0 00 00 F8 5B 42 [09:14:59]Write i2c OK [09:14:59]MH_I2C_Read... [09:14:59]Read from MH i2c: F0 [09:14:59]MH_I2C_Read... [09:14:59]Read from MH i2c: F0 09 00 [09:14:59]MH_I2C_Read... [09:14:59]Read from MH i2c: F0 09 00 F8 5B 00 97 BB C1 66 34 48 D8 65 7D [09:14:59]GetLastDocTimeStamp 1723972495 [09:14:59]current date 1723972503 [09:14:59]FM_GetShiftState [09:14:59]SAM_PROTO_GetShiftState [09:14:59]wFMCommunicate request_size=4 [09:14:59]MH_SAM_APDU [09:14:59]CAPDU: 80 13 01 00 [09:14:59]Write to MH i2c: E2 08 00 F9 5B 80 13 01 00 00 00 00 00 D1 [09:14:59]Write i2c OK [09:14:59]MH_I2C_Read... [09:14:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:59]Read from MH i2c: E2 [09:14:59]MH_I2C_Read... [09:14:59]Read from MH i2c: E2 0E 00 [09:14:59]MH_I2C_Read... [09:14:59]Read from MH i2c: E2 0E 00 F9 5B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 0E [09:14:59]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:14:59]wFMCommunicate OK [09:14:59]SAM_PROTO_GetShiftState done [09:14:59]FM_GetShiftState done [09:14:59]opened in 1723940556 [09:14:59]opened+sec_in_day 1724026956 [09:14:59]quantity*price = 0 [09:14:59]sum+1 = 1 [09:14:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 114 18.08.2024 09:15 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: Топливная Карта 11637 ФМ: 0000000000871820 ФД: 260556 ФПД: 121916053107845 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T091503&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260556&fm=121916053107845&tin=02508201610067®Number=0000000000091865&sum=0 [09:15:00]StoreToDocumentArchive [09:15:00]shift 449 fd 260556 [09:15:00]save to /storage/0449/doc_00260556 [09:15:00]save last doc name /storage/0449/doc_00260556 to /storage/kkm_last_doc_name [09:15:00]save OK [09:15:00]Clear old archive folders... [09:15:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:15:00]tlvbuf is 0032BFE0 [09:15:00]SAM_PROTO_ClearQueue [09:15:00]wFMCommunicate request_size=4 [09:15:00]MH_SAM_APDU [09:15:00]CAPDU: 80 09 00 00 [09:15:00]Write to MH i2c: E2 08 00 06 5C 80 09 00 00 00 00 00 00 D4 [09:15:00]Write i2c OK [09:15:00]MH_I2C_Read... [09:15:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:00]Read from MH i2c: E2 [09:15:00]MH_I2C_Read... [09:15:00]Read from MH i2c: E2 03 00 [09:15:00]MH_I2C_Read... [09:15:00]Read from MH i2c: E2 03 00 06 5C 00 90 00 D6 [09:15:00]RAPDU: 90 00 [09:15:00]wFMCommunicate OK [09:15:00]SAM_PROTO_ClearQueue done [09:15:00]KKMCreateOFDPacket [09:15:00]OFDProtocolAddRootSTLVToBuf [09:15:00]FM_MakeSignedData [09:15:00]FM_MakeSignedData [09:15:00]SAM_PROTO_SignData [09:15:00]wFMCommunicate request_size=4 [09:15:00]MH_SAM_APDU [09:15:00]CAPDU: 80 0D 01 02 [09:15:00]Write to MH i2c: E2 08 00 07 5C 80 0D 01 02 00 00 00 00 DC [09:15:00]Write i2c OK [09:15:00]MH_I2C_Read... [09:15:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:01]Read from MH i2c: E2 [09:15:01]MH_I2C_Read... [09:15:01]Read from MH i2c: E2 03 00 [09:15:01]MH_I2C_Read... [09:15:01]Read from MH i2c: E2 03 00 07 5C 00 90 00 D7 [09:15:01]RAPDU: 90 00 [09:15:01]wFMCommunicate OK [09:15:01]wFMCommunicate request_size=255 [09:15:01]MH_SAM_APDU [09:15:01]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 97 BB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CC F9 03 00 35 04 06 00 [09:15:01]Write to MH i2c: E2 02 01 08 5C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 97 BB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CC F9 03 00 35 04 06 00 00 00 C9 [09:15:01]Write i2c OK [09:15:01]MH_I2C_Read... [09:15:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:01]Read from MH i2c: E2 [09:15:01]MH_I2C_Read... [09:15:01]Read from MH i2c: E2 03 00 [09:15:01]MH_I2C_Read... [09:15:01]Read from MH i2c: E2 03 00 08 5C 00 90 00 D8 [09:15:01]RAPDU: 90 00 [09:15:01]wFMCommunicate OK [09:15:01]wFMCommunicate request_size=11 [09:15:01]MH_SAM_APDU [09:15:01]CAPDU: 80 0D 02 02 06 6E E1 CB 09 B4 85 [09:15:01]Write to MH i2c: E2 0E 00 09 5C 80 0D 02 02 06 00 6E E1 CB 09 B4 85 00 00 47 [09:15:01]Write i2c OK [09:15:01]MH_I2C_Read... [09:15:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:01]Read from MH i2c: E2 [09:15:01]MH_I2C_Read... [09:15:01]Read from MH i2c: E2 03 00 [09:15:01]MH_I2C_Read... [09:15:01]Read from MH i2c: E2 03 00 09 5C 00 90 00 D9 [09:15:01]RAPDU: 90 00 [09:15:01]wFMCommunicate OK [09:15:01]wFMCommunicate request_size=4 [09:15:01]MH_SAM_APDU [09:15:01]CAPDU: 80 0D 03 02 [09:15:01]Write to MH i2c: E2 08 00 0A 5C 80 0D 03 02 00 00 00 00 E1 [09:15:01]Write i2c OK [09:15:01]MH_I2C_Read... [09:15:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:01]Read from MH i2c: E2 [09:15:01]MH_I2C_Read... [09:15:01]Read from MH i2c: E2 0B 00 [09:15:01]MH_I2C_Read... [09:15:01]Read from MH i2c: E2 0B 00 0A 5C 00 83 6D AD DE 8B 7C 55 1A 90 00 D3 [09:15:01]RAPDU: 83 6D AD DE 8B 7C 55 1A 90 00 [09:15:01]wFMCommunicate OK [09:15:01]SAM_PROTO_SignData done [09:15:01]FM_MakeSignedData done [09:15:01]CreateOFDProtocolMessage [09:15:01]wFMCommunicate request_size=4 [09:15:01]MH_SAM_APDU [09:15:01]CAPDU: 80 11 00 00 [09:15:01]Write to MH i2c: E2 08 00 0B 5C 80 11 00 00 00 00 00 00 E1 [09:15:01]Write i2c OK [09:15:01]MH_I2C_Read... [09:15:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:01]Read from MH i2c: E2 [09:15:01]MH_I2C_Read... [09:15:01]Read from MH i2c: E2 17 00 [09:15:01]MH_I2C_Read... [09:15:01]Read from MH i2c: E2 17 00 0B 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 2E [09:15:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:15:01]wFMCommunicate OK [09:15:01]CreateOFDProtocolMessage done [09:15:01]OFDSenderStorePacket 260556 [09:15:01]StoreOFDPacket docnum=260556 [09:15:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 D4 72 08 01 28 71 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 97 BB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CC F9 03 00 35 04 06 00 6E E1 CB 09 B4 85 83 6D AD DE 8B 7C 55 1A [09:15:01]CheckFolder [09:15:01]dirname=/storage/ofd_packets [09:15:01]CheckFolder done [09:15:01]ProducePacketName [09:15:01]name=ofd_packets/00260556 [09:15:01]NVStorageSaveData ofd_packets/00260556 [09:15:01]File name is /storage/ofd_packets/00260556 [09:15:01]Write 302 bytes [09:15:01]NVStorageSaveData done [09:15:01]OFDSenderStorePacket done [09:15:01]KKMCreateOFDPacket done [09:15:01]NVStorageSaveData kkm_last_timestamp [09:15:01]File name is /storage/kkm_last_timestamp [09:15:01]Write 4 bytes [09:15:01]NVStorageSaveData done [09:15:01]ExternCall_PrintAddStr [09:15:01]wPrintStart [09:15:01]Write to MH i2c: 01 00 00 0C 5C 68 [09:15:01]Write i2c OK [09:15:01]MH_I2C_Read... [09:15:01]Read from MH i2c: 01 [09:15:01]MH_I2C_Read... [09:15:01]Read from MH i2c: 01 07 00 [09:15:01]MH_I2C_Read... [09:15:01]Read from MH i2c: 01 07 00 0C 5C 00 00 00 00 00 FF 0F 7D [09:15:01]RasterBufferAndPrint [09:15:01]line Счет N : (1)1036099 [09:15:01]line ИНН: 02508201610067 [09:15:01]line Контрольно-Кассовый Чек [09:15:01]line ПРОДАЖА [09:15:01]line ТРК (МРК, ГНК) : 43 [09:15:01]line Товар: 2710194210 [09:15:01]line ДТ(л)-К-4 [09:15:01]line 118.120 * 0.00 [09:15:01]line = 0.00 [09:15:01]line НДС 12% НСП 1% [09:15:01]line > о реализуемом товаре [09:15:01]line ИТОГО: 0.00 [09:15:01]line НСП 1% : 0.00 [09:15:01]line НДС 12% : 0.00 [09:15:01]line Наличными: 0.00 [09:15:01]line Безнал.: 0.00 [09:15:01]line Место: АЗС № 94 "Партнер Нефть" [09:15:01]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [09:15:01]line СНО: Общий режим [09:15:01]line Чек 114 18.08.2024 09:15 [09:15:01]line Смена: 449 ФФД: 1.0 [09:15:01]line ЗНМ: 0300000099 [09:15:01]line РНМ: 0000000000091865 [09:15:01]line Версия ККМ: 001 [09:15:01]line Талоны: Топливная Карта [09:15:01]line 11637 [09:15:01]line ФМ: 0000000000871820 [09:15:01]line ФД: 260556 [09:15:01]line ФПД: 121916053107845 [09:15:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T091503&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260556&fm=121916053107845&tin=02508201610067®Number=0000000000091865&sum=0 [09:15:01]written 0, free lines is 4095 [09:15:01]OFD Sender: Processing packet 260556 [packets to send 192, broken 191] [09:15:01]ProducePacketName [09:15:01]name=ofd_packets/00260556 [09:15:01]OFD Sender: To server: pG, [09:15:01]CommunicateWithHost lk.salyk.kg:30040 [09:15:01]ConnectInit lk.salyk.kg [09:15:01]Connected sock=9 [09:15: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 30 10 01 00 00 D4 72 08 01 28 71 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 97 BB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CC F9 03 00 35 04 06 00 6E E1 CB 09 B4 85 83 6D AD DE 8B 7C 55 1A [09:15: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 30 4F 00 00 00 31 7B 47 00 84 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CC F9 03 00 F4 03 04 00 ED 64 C1 66 B6 04 01 00 00 7A B6 F3 EC 8B 6E B5 B0 [09:15:01]CommunicateWithHost err = 0 [09:15:01]CheckOFDResponse [09:15:01]1017 (14) - 77093643461234 [09:15:01]1041 (16) - 0000000000871820 [09:15:01]1040 (4) - 260556 [09:15:01]1012 (4) - 18.08.2024 03:05 [09:15:01]1206 (1) - 0 [09:15:01]OFD Sender: Remove packet 260556 [09:15:01]ProducePacketName [09:15:01]name=ofd_packets/00260556 [09:15:01]NVStorageDeleteData [09:15:01]Write to MH i2c: 01 00 00 36 5C 92 [09:15:01]Write i2c OK [09:15:01]MH_I2C_Read... [09:15:01]Read from MH i2c: 01 [09:15:01]MH_I2C_Read... [09:15:01]Read from MH i2c: 01 07 00 [09:15:01]MH_I2C_Read... [09:15:01]Read from MH i2c: 01 07 00 36 5C 00 00 00 00 00 86 0C 2B [09:15:01]RasterBufferAndPrint [09:15:01]line [09:15:01]line [09:15:01]line [09:15:01]line [09:15:01]line [09:15:01]written 0, free lines is 3215 [09:15:01]MH_Cut [09:15:01]Write to MH i2c: D1 01 00 3D 5C 01 6B [09:15:01]Write i2c OK [09:15:01]MH_I2C_Read... [09:15:01]Read from MH i2c: D1 [09:15:01]MH_I2C_Read... [09:15:01]Read from MH i2c: D1 01 00 [09:15:01]MH_I2C_Read... [09:15:01]Read from MH i2c: D1 01 00 3D 5C 00 6A [09:15:01]Write to MH i2c: 01 00 00 3E 5C 9A [09:15:01]Write i2c OK [09:15:01]MH_I2C_Read... [09:15:02]OFD Sender: No OFD packet to send [09:15:03]*** Cut start [09:15:03]*** Purtial cut [09:15:03]*** Stage 1: CUTSNS_PIN = 1 [09:15:05]Read from MH i2c: 01 [09:15:05]MH_I2C_Read... [09:15:05]*** Stop cut motor [09:15:05]*** Cut end [09:15:05]Read from MH i2c: 01 07 00 [09:15:05]MH_I2C_Read... [09:15:05]Read from MH i2c: 01 07 00 3E 5C 00 00 00 00 00 FF 0F AF [09:15:05]process_action close_receipt done [09:15:05]requested_data is exist [09:15:05]produce_requested_data [09:15:05]requested_item fm.sn is exist - process it [09:15:05]wFMCommunicate request_size=4 [09:15:05]MH_SAM_APDU [09:15:05]CAPDU: 80 11 00 00 [09:15:05]Write to MH i2c: E2 08 00 3F 5C 80 11 00 00 00 00 00 00 15 [09:15:05]Write i2c OK [09:15:05]MH_I2C_Read... [09:15:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:05]Read from MH i2c: E2 [09:15:05]MH_I2C_Read... [09:15:05]Read from MH i2c: E2 17 00 [09:15:05]MH_I2C_Read... [09:15:05]Read from MH i2c: E2 17 00 3F 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 62 [09:15:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:15:05]wFMCommunicate OK [09:15:05]requested_item fd.num is exist - process it [09:15:05]SAM_PROTO_GetFieldsCounters [09:15:05]wFMCommunicate request_size=4 [09:15:05]MH_SAM_APDU [09:15:05]CAPDU: 80 13 00 00 [09:15:05]Write to MH i2c: E2 08 00 40 5C 80 13 00 00 00 00 00 00 18 [09:15:05]Write i2c OK [09:15:05]MH_I2C_Read... [09:15:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:05]Read from MH i2c: E2 [09:15:05]MH_I2C_Read... [09:15:05]Read from MH i2c: E2 62 00 [09:15:05]MH_I2C_Read... [09:15:05]Read from MH i2c: E2 62 00 40 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 CC F9 03 00 0E 04 04 00 C1 01 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 17 [09:15: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 CC F9 03 00 0E 04 04 00 C1 01 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 [09:15:05]wFMCommunicate OK [09:15:05]SAM_PROTO_GetFieldsCounters done [09:15:05]requested_item shift.num is exist - process it [09:15:05]requested_item shift.opened is exist - process it [09:15:05]req_shift_opened [09:15:05]FM_GetShiftState [09:15:05]SAM_PROTO_GetShiftState [09:15:05]wFMCommunicate request_size=4 [09:15:05]MH_SAM_APDU [09:15:05]CAPDU: 80 13 01 00 [09:15:05]Write to MH i2c: E2 08 00 41 5C 80 13 01 00 00 00 00 00 1A [09:15:05]Write i2c OK [09:15:05]MH_I2C_Read... [09:15:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:05]Read from MH i2c: E2 [09:15:05]MH_I2C_Read... [09:15:05]Read from MH i2c: E2 0E 00 [09:15:05]MH_I2C_Read... [09:15:05]Read from MH i2c: E2 0E 00 41 5C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 57 [09:15:05]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:15:05]wFMCommunicate OK [09:15:05]SAM_PROTO_GetShiftState done [09:15:05]FM_GetShiftState done [09:15:05]req_shift_opened done [09:15:05]requested_item shift.open_date is exist - process it [09:15:05]req_shift_open_date [09:15:05]req_shift_open_date done [09:15:05]produce_requested_data done [09:15:05]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260556,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [09:15:05]process_action_free close_receipt [09:15:05]json_value_free [09:15:05]json_value_free done [09:15:05]process_json_proto returns [09:15:05]Send response to host [09:15:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260556,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [09:15:05]free response buf [09:15:05]execute_script done [09:15:05]execute_script returns [09:15:05]free content buf [09:15:05]Sock 10.Close socket [09:15:05]Sock 10.Thread stoped [09:15:07]OFD Sender: No OFD packet to send [09:15:12]OFD Sender: No OFD packet to send [09:15:17]OFD Sender: No OFD packet to send [09:15:22]OFD Sender: No OFD packet to send [09:15:27]OFD Sender: No OFD packet to send [09:15:32]OFD Sender: No OFD packet to send [09:15:37]OFD Sender: No OFD packet to send [09:15:42]OFD Sender: No OFD packet to send [09:15:47]OFD Sender: No OFD packet to send [09:15:52]OFD Sender: No OFD packet to send [09:15:57]OFD Sender: No OFD packet to send [09:16:02]OFD Sender: No OFD packet to send [09:16:07]OFD Sender: No OFD packet to send [09:16:12]OFD Sender: No OFD packet to send [09:16:17]OFD Sender: No OFD packet to send [09:16:22]OFD Sender: No OFD packet to send [09:16:27]OFD Sender: No OFD packet to send [09:16:32]OFD Sender: No OFD packet to send [09:16:37]OFD Sender: No OFD packet to send [09:16:42]OFD Sender: No OFD packet to send [09:16:47]OFD Sender: No OFD packet to send [09:16:52]OFD Sender: No OFD packet to send [09:16:57]OFD Sender: No OFD packet to send [09:17:02]OFD Sender: No OFD packet to send [09:17:07]OFD Sender: No OFD packet to send [09:17:12]OFD Sender: No OFD packet to send [09:17:17]OFD Sender: No OFD packet to send [09:17:22]OFD Sender: No OFD packet to send [09:17:27]OFD Sender: No OFD packet to send [09:17:32]OFD Sender: No OFD packet to send [09:17:37]OFD Sender: No OFD packet to send [09:17:42]OFD Sender: No OFD packet to send [09:17:47]OFD Sender: No OFD packet to send [09:17:52]OFD Sender: No OFD packet to send [09:17:57]OFD Sender: No OFD packet to send [09:18:02]OFD Sender: No OFD packet to send [09:18:07]OFD Sender: No OFD packet to send [09:18:12]OFD Sender: No OFD packet to send [09:18:17]OFD Sender: No OFD packet to send [09:18:20]accept exits with 7 [09:18:20]New connection [09:18:20]New thread 3066617188 created [09:18:20]Thread 3066473828 joined [09:18:20]Waiting for new connection... [09:18:20] Sock 7.Parse request [09:18:20]Sock 7.Check first char [09:18:20]Sock 7.First char is OK [09:18:20]request: POST /json_proto HTTP/1.0 [09:18:20]Method: POST [09:18:20]URL: /json_proto [09:18:20]Method is POST - this is cgi request [09:18:20]url: /json_proto [09:18:20]query_string will be loaded in cgi processing [09:18:20]execute_cgi json_proto POST (null) [09:18:20]execute_cgi path=json_proto method=POST [09:18:20]POST find Content-Length [09:18:20]Host: 172.17.55.133:8080 [09:18:20]Content-Length: 793 [09:18:20]Content-Type: application/json [09:18:20] [09:18:20]POST finish read [09:18:20]Found Content-Length = 793 [09:18:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.750, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A90798", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:20]execute_script... [09: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)1036102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.750, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A90798", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:20]POST & json_proto [09:18:20]process_json_proto [09:18:20]json parsed OK: [09:18:20]protocol is kg_v1.0 [09:18:20]action value=close_receipt [09:18:20]process_action close_receipt [09:18:20]cmd_close_receipt [09:18:20]MH_GetDate [09:18:20]Write to MH i2c: F0 00 00 42 5C 8D [09:18:20]Write i2c OK [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: F0 [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: F0 09 00 [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: F0 09 00 42 5C 00 60 BC C1 66 34 48 D8 65 92 [09:18:20]GetLastDocTimeStamp 1723972503 [09:18:20]current date 1723972704 [09:18:20]FM_GetShiftState [09:18:20]SAM_PROTO_GetShiftState [09:18:20]wFMCommunicate request_size=4 [09:18:20]MH_SAM_APDU [09:18:20]CAPDU: 80 13 01 00 [09:18:20]Write to MH i2c: E2 08 00 43 5C 80 13 01 00 00 00 00 00 1C [09:18:20]Write i2c OK [09:18:20]MH_I2C_Read... [09:18:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:20]Read from MH i2c: E2 [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: E2 0E 00 [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: E2 0E 00 43 5C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 59 [09:18:20]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:18:20]wFMCommunicate OK [09:18:20]SAM_PROTO_GetShiftState done [09:18:20]FM_GetShiftState done [09:18:20]opened in 1723940556 [09:18:20]opened+sec_in_day 1724026956 [09:18:20]quantity*price = 0 [09:18:20]sum+1 = 1 [09:18:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 115 18.08.2024 09:18 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: Топливная Карта 90798 ФМ: 0000000000871820 ФД: 260557 ФПД: 6665741369634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T091824&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260557&fm=6665741369634&tin=02508201610067®Number=0000000000091865&sum=0 [09:18:21]StoreToDocumentArchive [09:18:21]shift 449 fd 260557 [09:18:21]save to /storage/0449/doc_00260557 [09:18:21]save last doc name /storage/0449/doc_00260557 to /storage/kkm_last_doc_name [09:18:21]save OK [09:18:21]Clear old archive folders... [09:18:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:18:21]tlvbuf is 00453720 [09:18:21]SAM_PROTO_ClearQueue [09:18:21]wFMCommunicate request_size=4 [09:18:21]MH_SAM_APDU [09:18:21]CAPDU: 80 09 00 00 [09:18:21]Write to MH i2c: E2 08 00 50 5C 80 09 00 00 00 00 00 00 1E [09:18:21]Write i2c OK [09:18:21]MH_I2C_Read... [09:18:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:18:21]Read from MH i2c: E2 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: E2 03 00 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: E2 03 00 50 5C 00 90 00 20 [09:18:21]RAPDU: 90 00 [09:18:21]wFMCommunicate OK [09:18:21]SAM_PROTO_ClearQueue done [09:18:21]KKMCreateOFDPacket [09:18:21]OFDProtocolAddRootSTLVToBuf [09:18:21]FM_MakeSignedData [09:18:21]FM_MakeSignedData [09:18:21]SAM_PROTO_SignData [09:18:21]wFMCommunicate request_size=4 [09:18:21]MH_SAM_APDU [09:18:21]CAPDU: 80 0D 01 02 [09:18:21]Write to MH i2c: E2 08 00 51 5C 80 0D 01 02 00 00 00 00 26 [09:18:21]Write i2c OK [09:18:21]MH_I2C_Read... [09:18:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:18:21]Read from MH i2c: E2 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: E2 03 00 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: E2 03 00 51 5C 00 90 00 21 [09:18:21]RAPDU: 90 00 [09:18:21]wFMCommunicate OK [09:18:21]wFMCommunicate request_size=255 [09:18:21]MH_SAM_APDU [09:18:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 60 BC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CD F9 03 00 35 04 06 00 06 [09:18:21]Write to MH i2c: E2 02 01 52 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 60 BC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CD F9 03 00 35 04 06 00 06 00 00 4C [09:18:21]Write i2c OK [09:18:21]MH_I2C_Read... [09:18:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:21]Read from MH i2c: E2 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: E2 03 00 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: E2 03 00 52 5C 00 90 00 22 [09:18:21]RAPDU: 90 00 [09:18:21]wFMCommunicate OK [09:18:21]wFMCommunicate request_size=10 [09:18:21]MH_SAM_APDU [09:18:21]CAPDU: 80 0D 02 02 05 0F FD 25 81 22 [09:18:21]Write to MH i2c: E2 0D 00 53 5C 80 0D 02 02 05 00 0F FD 25 81 22 00 00 07 [09:18:21]Write i2c OK [09:18:21]MH_I2C_Read... [09:18:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:21]Read from MH i2c: E2 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: E2 03 00 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: E2 03 00 53 5C 00 90 00 23 [09:18:21]RAPDU: 90 00 [09:18:21]wFMCommunicate OK [09:18:21]wFMCommunicate request_size=4 [09:18:21]MH_SAM_APDU [09:18:21]CAPDU: 80 0D 03 02 [09:18:21]Write to MH i2c: E2 08 00 54 5C 80 0D 03 02 00 00 00 00 2B [09:18:21]Write i2c OK [09:18:21]MH_I2C_Read... [09:18:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:18:21]Read from MH i2c: E2 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: E2 0B 00 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: E2 0B 00 54 5C 00 81 0F 06 A4 2C 9A 0F 91 90 00 CC [09:18:21]RAPDU: 81 0F 06 A4 2C 9A 0F 91 90 00 [09:18:21]wFMCommunicate OK [09:18:21]SAM_PROTO_SignData done [09:18:21]FM_MakeSignedData done [09:18:21]CreateOFDProtocolMessage [09:18:21]wFMCommunicate request_size=4 [09:18:21]MH_SAM_APDU [09:18:21]CAPDU: 80 11 00 00 [09:18:21]Write to MH i2c: E2 08 00 55 5C 80 11 00 00 00 00 00 00 2B [09:18:21]Write i2c OK [09:18:21]MH_I2C_Read... [09:18:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:21]Read from MH i2c: E2 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: E2 17 00 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: E2 17 00 55 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 78 [09:18:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:18:21]wFMCommunicate OK [09:18:21]CreateOFDProtocolMessage done [09:18:21]OFDSenderStorePacket 260557 [09:18:21]StoreOFDPacket docnum=260557 [09:18:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 63 15 07 01 31 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 60 BC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CD F9 03 00 35 04 06 00 06 0F FD 25 81 22 81 0F 06 A4 2C 9A 0F 91 [09:18:21]CheckFolder [09:18:21]dirname=/storage/ofd_packets [09:18:21]CheckFolder done [09:18:21]ProducePacketName [09:18:21]name=ofd_packets/00260557 [09:18:21]NVStorageSaveData ofd_packets/00260557 [09:18:21]File name is /storage/ofd_packets/00260557 [09:18:21]Write 301 bytes [09:18:21]NVStorageSaveData done [09:18:21]OFDSenderStorePacket done [09:18:21]KKMCreateOFDPacket done [09:18:21]NVStorageSaveData kkm_last_timestamp [09:18:21]File name is /storage/kkm_last_timestamp [09:18:21]Write 4 bytes [09:18:21]NVStorageSaveData done [09:18:21]ExternCall_PrintAddStr [09:18:21]wPrintStart [09:18:21]Write to MH i2c: 01 00 00 56 5C B2 [09:18:21]Write i2c OK [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: 01 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: 01 07 00 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: 01 07 00 56 5C 00 00 00 00 00 FF 0F C7 [09:18:21]RasterBufferAndPrint [09:18:21]line Счет N : (1)1036102 [09:18:21]line ИНН: 02508201610067 [09:18:21]line Контрольно-Кассовый Чек [09:18:21]line ПРОДАЖА [09:18:21]line ТРК (МРК, ГНК) : 12 [09:18:21]line Товар: 2710124130 [09:18:21]line Аи-92-К-5 [09:18:21]line 14.750 * 0.00 [09:18:21]line = 0.00 [09:18:21]line НДС 12% НСП 1% [09:18:21]line > о реализуемом товаре [09:18:21]line ИТОГО: 0.00 [09:18:21]line НСП 1% : 0.00 [09:18:21]line НДС 12% : 0.00 [09:18:21]line Наличными: 0.00 [09:18:21]line Безнал.: 0.00 [09:18:21]line Место: АЗС № 94 "Партнер Нефть" [09:18:21]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [09:18:21]line СНО: Общий режим [09:18:21]line Чек 115 18.08.2024 09:18 [09:18:21]line Смена: 449 ФФД: 1.0 [09:18:21]line ЗНМ: 0300000099 [09:18:21]line РНМ: 0000000000091865 [09:18:21]line Версия ККМ: 001 [09:18:21]line Талоны: Топливная Карта [09:18:21]line 90798 [09:18:21]line ФМ: 0000000000871820 [09:18:21]line ФД: 260557 [09:18:21]line ФПД: 6665741369634 [09:18:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T091824&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260557&fm=6665741369634&tin=02508201610067®Number=0000000000091865&sum=0 [09:18:21]written 0, free lines is 4095 [09:18:22]OFD Sender: Processing packet 260557 [packets to send 192, broken 191] [09:18:22]ProducePacketName [09:18:22]name=ofd_packets/00260557 [09:18:22]OFD Sender: To server: pG, [09:18:22]CommunicateWithHost lk.salyk.kg:30040 [09:18:22]ConnectInit lk.salyk.kg [09:18:22]Write to MH i2c: 01 00 00 80 5C DC [09:18:22]Write i2c OK [09:18:22]MH_I2C_Read... [09:18:22]Read from MH i2c: 01 [09:18:22]MH_I2C_Read... [09:18:22]Read from MH i2c: 01 07 00 [09:18:22]MH_I2C_Read... [09:18:22]Read from MH i2c: 01 07 00 80 5C 00 00 00 00 00 80 0C 6F [09:18:22]RasterBufferAndPrint [09:18:22]line [09:18:22]line [09:18:22]line [09:18:22]line [09:18:22]line [09:18:22]written 0, free lines is 3203 [09:18:22]MH_Cut [09:18:22]Write to MH i2c: D1 01 00 87 5C 01 B5 [09:18:22]Write i2c OK [09:18:22]MH_I2C_Read... [09:18:22]Read from MH i2c: D1 [09:18:22]MH_I2C_Read... [09:18:22]Read from MH i2c: D1 01 00 [09:18:22]MH_I2C_Read... [09:18:22]Read from MH i2c: D1 01 00 87 5C 00 B4 [09:18:22]Write to MH i2c: 01 00 00 88 5C E4 [09:18:22]Write i2c OK [09:18:22]MH_I2C_Read... [09:18:23]*** Cut start [09:18:23]*** Purtial cut [09:18:23]*** Stage 1: CUTSNS_PIN = 1 [09:18:25]Read from MH i2c: 01 [09:18:25]MH_I2C_Read... [09:18:25]*** Stop cut motor [09:18:25]*** Cut end [09:18:25]Read from MH i2c: 01 07 00 [09:18:25]MH_I2C_Read... [09:18:25]Read from MH i2c: 01 07 00 88 5C 00 00 00 00 00 FF 0F F9 [09:18:25]process_action close_receipt done [09:18:25]requested_data is exist [09:18:25]produce_requested_data [09:18:25]requested_item fm.sn is exist - process it [09:18:25]wFMCommunicate request_size=4 [09:18:25]MH_SAM_APDU [09:18:25]CAPDU: 80 11 00 00 [09:18:25]Write to MH i2c: E2 08 00 89 5C 80 11 00 00 00 00 00 00 5F [09:18:25]Write i2c OK [09:18:25]MH_I2C_Read... [09:18:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:25]Read from MH i2c: E2 [09:18:25]MH_I2C_Read... [09:18:25]Read from MH i2c: E2 17 00 [09:18:25]MH_I2C_Read... [09:18:25]Read from MH i2c: E2 17 00 89 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 AC [09:18:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:18:25]wFMCommunicate OK [09:18:25]requested_item fd.num is exist - process it [09:18:25]SAM_PROTO_GetFieldsCounters [09:18:25]wFMCommunicate request_size=4 [09:18:25]MH_SAM_APDU [09:18:25]CAPDU: 80 13 00 00 [09:18:25]Write to MH i2c: E2 08 00 8A 5C 80 13 00 00 00 00 00 00 62 [09:18:25]Write i2c OK [09:18:25]MH_I2C_Read... [09:18:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:25]Read from MH i2c: E2 [09:18:25]MH_I2C_Read... [09:18:25]Read from MH i2c: E2 62 00 [09:18:25]MH_I2C_Read... [09:18:25]Read from MH i2c: E2 62 00 8A 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 CD F9 03 00 0E 04 04 00 C1 01 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 65 [09:18: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 CD F9 03 00 0E 04 04 00 C1 01 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 [09:18:25]wFMCommunicate OK [09:18:25]SAM_PROTO_GetFieldsCounters done [09:18:25]requested_item shift.num is exist - process it [09:18:25]requested_item shift.opened is exist - process it [09:18:25]req_shift_opened [09:18:25]FM_GetShiftState [09:18:25]SAM_PROTO_GetShiftState [09:18:25]wFMCommunicate request_size=4 [09:18:25]MH_SAM_APDU [09:18:25]CAPDU: 80 13 01 00 [09:18:25]Write to MH i2c: E2 08 00 8B 5C 80 13 01 00 00 00 00 00 64 [09:18:25]Write i2c OK [09:18:25]MH_I2C_Read... [09:18:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:25]Read from MH i2c: E2 [09:18:25]MH_I2C_Read... [09:18:25]Read from MH i2c: E2 0E 00 [09:18:25]MH_I2C_Read... [09:18:25]Read from MH i2c: E2 0E 00 8B 5C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A1 [09:18:25]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:18:25]wFMCommunicate OK [09:18:25]SAM_PROTO_GetShiftState done [09:18:25]FM_GetShiftState done [09:18:25]req_shift_opened done [09:18:25]requested_item shift.open_date is exist - process it [09:18:25]req_shift_open_date [09:18:25]req_shift_open_date done [09:18:25]produce_requested_data done [09:18:25]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260557,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [09:18:25]process_action_free close_receipt [09:18:25]json_value_free [09:18:25]json_value_free done [09:18:25]process_json_proto returns [09:18:25]Send response to host [09:18:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260557,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [09:18:25]free response buf [09:18:25]execute_script done [09:18:25]execute_script returns [09:18:25]free content buf [09:18:25]Sock 7.Close socket [09:18:25]Sock 7.Thread stoped [09:20:31]ConnectInit Can't connect to host [09:20:31]CommunicateWithHost connect error [09:20:31]CommunicateWithHost err = -1 [09:20:31]OFD Sender: Server communicate error [09:20:32]accept exits with 9 [09:20:32]New connection [09:20:32]New thread 3066473828 created [09:20:32]Thread 3066617188 joined [09:20:32]Waiting for new connection... [09:20:32] Sock 9.Parse request [09:20:32]Sock 9.Check first char [09:20:32]Sock 9.First char is OK [09:20:32]request: POST /json_proto HTTP/1.0 [09:20:32]Method: POST [09:20:32]URL: /json_proto [09:20:32]Method is POST - this is cgi request [09:20:32]url: /json_proto [09:20:32]query_string will be loaded in cgi processing [09:20:32]execute_cgi json_proto POST (null) [09:20:32]execute_cgi path=json_proto method=POST [09:20:32]POST find Content-Length [09:20:32]Host: 172.17.55.133:8080 [09:20:32]Content-Length: 799 [09:20:32]Content-Type: application/json [09:20:32] [09:20:32]POST finish read [09:20:32]Found Content-Length = 799 [09:20:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 0.00, "quantity" : 118.120, "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\u000A11637", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:32]execute_script... [09:20: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)1036101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 0.00, "quantity" : 118.120, "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\u000A11637", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:32]POST & json_proto [09:20:32]process_json_proto [09:20:32]json parsed OK: [09:20:32]protocol is kg_v1.0 [09:20:32]action value=close_receipt [09:20:32]process_action close_receipt [09:20:32]cmd_close_receipt [09:20:32]MH_GetDate [09:20:32]Write to MH i2c: F0 00 00 8C 5C D7 [09:20:32]Write i2c OK [09:20:32]MH_I2C_Read... [09:20:32]Read from MH i2c: F0 [09:20:32]MH_I2C_Read... [09:20:32]Read from MH i2c: F0 09 00 [09:20:32]MH_I2C_Read... [09:20:32]Read from MH i2c: F0 09 00 8C 5C 00 E4 BC C1 66 34 48 D8 65 60 [09:20:32]GetLastDocTimeStamp 1723972704 [09:20:32]current date 1723972836 [09:20:32]FM_GetShiftState [09:20:32]SAM_PROTO_GetShiftState [09:20:32]wFMCommunicate request_size=4 [09:20:32]MH_SAM_APDU [09:20:32]CAPDU: 80 13 01 00 [09:20:32]Write to MH i2c: E2 08 00 8D 5C 80 13 01 00 00 00 00 00 66 [09:20:32]Write i2c OK [09:20:32]MH_I2C_Read... [09:20:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:32]Read from MH i2c: E2 [09:20:32]MH_I2C_Read... [09:20:32]Read from MH i2c: E2 0E 00 [09:20:32]MH_I2C_Read... [09:20:32]Read from MH i2c: E2 0E 00 8D 5C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A3 [09:20:32]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:20:32]wFMCommunicate OK [09:20:32]SAM_PROTO_GetShiftState done [09:20:32]FM_GetShiftState done [09:20:32]opened in 1723940556 [09:20:32]opened+sec_in_day 1724026956 [09:20:32]quantity*price = 0 [09:20:32]sum+1 = 1 [09:20:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 116 18.08.2024 09:20 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: Топливная Карта 11637 ФМ: 0000000000871820 ФД: 260558 ФПД: 229213381647589 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T092036&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260558&fm=229213381647589&tin=02508201610067®Number=0000000000091865&sum=0 [09:20:33]StoreToDocumentArchive [09:20:33]shift 449 fd 260558 [09:20:33]save to /storage/0449/doc_00260558 [09:20:33]save last doc name /storage/0449/doc_00260558 to /storage/kkm_last_doc_name [09:20:33]save OK [09:20:33]Clear old archive folders... [09:20:33]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:20:33]tlvbuf is 00540890 [09:20:33]SAM_PROTO_ClearQueue [09:20:33]wFMCommunicate request_size=4 [09:20:33]MH_SAM_APDU [09:20:33]CAPDU: 80 09 00 00 [09:20:33]Write to MH i2c: E2 08 00 9A 5C 80 09 00 00 00 00 00 00 68 [09:20:33]Write i2c OK [09:20:33]MH_I2C_Read... [09:20:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:20:33]Read from MH i2c: E2 [09:20:33]MH_I2C_Read... [09:20:33]Read from MH i2c: E2 03 00 [09:20:33]MH_I2C_Read... [09:20:33]Read from MH i2c: E2 03 00 9A 5C 00 90 00 6A [09:20:33]RAPDU: 90 00 [09:20:33]wFMCommunicate OK [09:20:33]SAM_PROTO_ClearQueue done [09:20:33]KKMCreateOFDPacket [09:20:33]OFDProtocolAddRootSTLVToBuf [09:20:33]FM_MakeSignedData [09:20:33]FM_MakeSignedData [09:20:33]SAM_PROTO_SignData [09:20:33]wFMCommunicate request_size=4 [09:20:33]MH_SAM_APDU [09:20:33]CAPDU: 80 0D 01 02 [09:20:33]Write to MH i2c: E2 08 00 9B 5C 80 0D 01 02 00 00 00 00 70 [09:20:33]Write i2c OK [09:20:33]MH_I2C_Read... [09:20:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:20:34]Read from MH i2c: E2 [09:20:34]MH_I2C_Read... [09:20:34]Read from MH i2c: E2 03 00 [09:20:34]MH_I2C_Read... [09:20:34]Read from MH i2c: E2 03 00 9B 5C 00 90 00 6B [09:20:34]RAPDU: 90 00 [09:20:34]wFMCommunicate OK [09:20:34]wFMCommunicate request_size=255 [09:20:34]MH_SAM_APDU [09:20:34]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 E4 BC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CE F9 03 00 35 04 06 00 [09:20:34]Write to MH i2c: E2 02 01 9C 5C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 E4 BC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CE F9 03 00 35 04 06 00 00 00 AF [09:20:34]Write i2c OK [09:20:34]MH_I2C_Read... [09:20:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:34]Read from MH i2c: E2 [09:20:34]MH_I2C_Read... [09:20:34]Read from MH i2c: E2 03 00 [09:20:34]MH_I2C_Read... [09:20:34]Read from MH i2c: E2 03 00 9C 5C 00 90 00 6C [09:20:34]RAPDU: 90 00 [09:20:34]wFMCommunicate OK [09:20:34]wFMCommunicate request_size=11 [09:20:34]MH_SAM_APDU [09:20:34]CAPDU: 80 0D 02 02 06 D0 77 E6 30 DC E5 [09:20:34]Write to MH i2c: E2 0E 00 9D 5C 80 0D 02 02 06 00 D0 77 E6 30 DC E5 00 00 9D [09:20:34]Write i2c OK [09:20:34]MH_I2C_Read... [09:20:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:34]Read from MH i2c: E2 [09:20:34]MH_I2C_Read... [09:20:34]Read from MH i2c: E2 03 00 [09:20:34]MH_I2C_Read... [09:20:34]Read from MH i2c: E2 03 00 9D 5C 00 90 00 6D [09:20:34]RAPDU: 90 00 [09:20:34]wFMCommunicate OK [09:20:34]wFMCommunicate request_size=4 [09:20:34]MH_SAM_APDU [09:20:34]CAPDU: 80 0D 03 02 [09:20:34]Write to MH i2c: E2 08 00 9E 5C 80 0D 03 02 00 00 00 00 75 [09:20:34]Write i2c OK [09:20:34]MH_I2C_Read... [09:20:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:20:34]Read from MH i2c: E2 [09:20:34]MH_I2C_Read... [09:20:34]Read from MH i2c: E2 0B 00 [09:20:34]MH_I2C_Read... [09:20:34]Read from MH i2c: E2 0B 00 9E 5C 00 72 62 EE 4D F5 38 61 8E 90 00 A1 [09:20:34]RAPDU: 72 62 EE 4D F5 38 61 8E 90 00 [09:20:34]wFMCommunicate OK [09:20:34]SAM_PROTO_SignData done [09:20:34]FM_MakeSignedData done [09:20:34]CreateOFDProtocolMessage [09:20:34]wFMCommunicate request_size=4 [09:20:34]MH_SAM_APDU [09:20:34]CAPDU: 80 11 00 00 [09:20:34]Write to MH i2c: E2 08 00 9F 5C 80 11 00 00 00 00 00 00 75 [09:20:34]Write i2c OK [09:20:34]MH_I2C_Read... [09:20:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:34]Read from MH i2c: E2 [09:20:34]MH_I2C_Read... [09:20:34]Read from MH i2c: E2 17 00 [09:20:34]MH_I2C_Read... [09:20:34]Read from MH i2c: E2 17 00 9F 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C2 [09:20:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:20:34]wFMCommunicate OK [09:20:34]CreateOFDProtocolMessage done [09:20:34]OFDSenderStorePacket 260558 [09:20:34]StoreOFDPacket docnum=260558 [09:20:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 29 20 08 01 86 C2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 E4 BC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CE F9 03 00 35 04 06 00 D0 77 E6 30 DC E5 72 62 EE 4D F5 38 61 8E [09:20:34]CheckFolder [09:20:34]dirname=/storage/ofd_packets [09:20:34]CheckFolder done [09:20:34]ProducePacketName [09:20:34]name=ofd_packets/00260558 [09:20:34]NVStorageSaveData ofd_packets/00260558 [09:20:34]File name is /storage/ofd_packets/00260558 [09:20:34]Write 302 bytes [09:20:34]NVStorageSaveData done [09:20:34]OFDSenderStorePacket done [09:20:34]KKMCreateOFDPacket done [09:20:34]NVStorageSaveData kkm_last_timestamp [09:20:34]File name is /storage/kkm_last_timestamp [09:20:34]Write 4 bytes [09:20:34]NVStorageSaveData done [09:20:34]ExternCall_PrintAddStr [09:20:34]wPrintStart [09:20:34]Write to MH i2c: 01 00 00 A0 5C FC [09:20:34]Write i2c OK [09:20:34]MH_I2C_Read... [09:20:34]Read from MH i2c: 01 [09:20:34]MH_I2C_Read... [09:20:34]Read from MH i2c: 01 07 00 [09:20:34]MH_I2C_Read... [09:20:34]Read from MH i2c: 01 07 00 A0 5C 00 00 00 00 00 FF 0F 11 [09:20:34]RasterBufferAndPrint [09:20:34]line Счет N : (1)1036101 [09:20:34]line ИНН: 02508201610067 [09:20:34]line Контрольно-Кассовый Чек [09:20:34]line ПРОДАЖА [09:20:34]line ТРК (МРК, ГНК) : 43 [09:20:34]line Товар: 2710194210 [09:20:34]line ДТ(л)-К-4 [09:20:34]line 118.120 * 0.00 [09:20:34]line = 0.00 [09:20:34]line НДС 12% НСП 1% [09:20:34]line > о реализуемом товаре [09:20:34]line ИТОГО: 0.00 [09:20:34]line НСП 1% : 0.00 [09:20:34]line НДС 12% : 0.00 [09:20:34]line Наличными: 0.00 [09:20:34]line Безнал.: 0.00 [09:20:34]line Место: АЗС № 94 "Партнер Нефть" [09:20:34]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [09:20:34]line СНО: Общий режим [09:20:34]line Чек 116 18.08.2024 09:20 [09:20:34]line Смена: 449 ФФД: 1.0 [09:20:34]line ЗНМ: 0300000099 [09:20:34]line РНМ: 0000000000091865 [09:20:34]line Версия ККМ: 001 [09:20:34]line Талоны: Топливная Карта [09:20:34]line 11637 [09:20:34]line ФМ: 0000000000871820 [09:20:34]line ФД: 260558 [09:20:34]line ФПД: 229213381647589 [09:20:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T092036&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260558&fm=229213381647589&tin=02508201610067®Number=0000000000091865&sum=0 [09:20:34]written 0, free lines is 4095 [09:20:34]OFD Sender: Processing packet 260557 [packets to send 193, broken 191] [09:20:34]ProducePacketName [09:20:34]name=ofd_packets/00260557 [09:20:34]OFD Sender: To server: pG, [09:20:34]CommunicateWithHost lk.salyk.kg:30040 [09:20:34]ConnectInit lk.salyk.kg [09:20:34]Connected sock=10 [09:20: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 30 0F 01 00 00 63 15 07 01 31 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 60 BC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CD F9 03 00 35 04 06 00 06 0F FD 25 81 22 81 0F 06 A4 2C 9A 0F 91 [09:20: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 30 4F 00 00 00 FE 56 47 00 AF A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CD F9 03 00 F4 03 04 00 3A 66 C1 66 B6 04 01 00 00 08 02 2A 03 21 CE 23 18 [09:20:35]CommunicateWithHost err = 0 [09:20:35]CheckOFDResponse [09:20:35]1017 (14) - 77093643461234 [09:20:35]1041 (16) - 0000000000871820 [09:20:35]1040 (4) - 260557 [09:20:35]1012 (4) - 18.08.2024 03:10 [09:20:35]1206 (1) - 0 [09:20:35]OFD Sender: Remove packet 260557 [09:20:35]ProducePacketName [09:20:35]name=ofd_packets/00260557 [09:20:35]NVStorageDeleteData [09:20:35]Write to MH i2c: 01 00 00 CA 5C 26 [09:20:35]Write i2c OK [09:20:35]MH_I2C_Read... [09:20:35]Read from MH i2c: 01 [09:20:35]MH_I2C_Read... [09:20:35]Read from MH i2c: 01 07 00 [09:20:35]MH_I2C_Read... [09:20:35]Read from MH i2c: 01 07 00 CA 5C 00 00 00 00 00 7B 0C B4 [09:20:35]RasterBufferAndPrint [09:20:35]line [09:20:35]line [09:20:35]line [09:20:35]line [09:20:35]line [09:20:35]written 0, free lines is 3199 [09:20:35]MH_Cut [09:20:35]Write to MH i2c: D1 01 00 D1 5C 01 FF [09:20:35]Write i2c OK [09:20:35]MH_I2C_Read... [09:20:35]Read from MH i2c: D1 [09:20:35]MH_I2C_Read... [09:20:35]Read from MH i2c: D1 01 00 [09:20:35]MH_I2C_Read... [09:20:35]Read from MH i2c: D1 01 00 D1 5C 00 FE [09:20:35]Write to MH i2c: 01 00 00 D2 5C 2E [09:20:35]Write i2c OK [09:20:35]MH_I2C_Read... [09:20:35]OFD Sender: Processing packet 260558 [packets to send 192, broken 191] [09:20:35]ProducePacketName [09:20:35]name=ofd_packets/00260558 [09:20:35]OFD Sender: To server: pG, [09:20:35]CommunicateWithHost lk.salyk.kg:30040 [09:20:35]ConnectInit lk.salyk.kg [09:20:35]Connected sock=10 [09:20: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 30 10 01 00 00 29 20 08 01 86 C2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 E4 BC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CE F9 03 00 35 04 06 00 D0 77 E6 30 DC E5 72 62 EE 4D F5 38 61 8E [09:20: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 30 4F 00 00 00 8B 73 47 00 5D 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 30 10 04 04 00 CE F9 03 00 F4 03 04 00 3B 66 C1 66 B6 04 01 00 00 76 DC 3C 9A 11 22 42 D2 [09:20:35]CommunicateWithHost err = 0 [09:20:35]CheckOFDResponse [09:20:35]1017 (14) - 77093643461234 [09:20:35]1041 (16) - 0000000000871820 [09:20:35]1040 (4) - 260558 [09:20:35]1012 (4) - 18.08.2024 03:10 [09:20:35]1206 (1) - 0 [09:20:35]OFD Sender: Remove packet 260558 [09:20:35]ProducePacketName [09:20:35]name=ofd_packets/00260558 [09:20:35]NVStorageDeleteData [09:20:36]OFD Sender: No OFD packet to send [09:20:36]*** Cut start [09:20:36]*** Purtial cut [09:20:36]*** Stage 1: CUTSNS_PIN = 1 [09:20:38]Read from MH i2c: 01 [09:20:38]MH_I2C_Read... [09:20:38]*** Stop cut motor [09:20:38]*** Cut end [09:20:38]Read from MH i2c: 01 07 00 [09:20:38]MH_I2C_Read... [09:20:38]Read from MH i2c: 01 07 00 D2 5C 00 00 00 00 00 FF 0F 43 [09:20:38]process_action close_receipt done [09:20:38]requested_data is exist [09:20:38]produce_requested_data [09:20:38]requested_item fm.sn is exist - process it [09:20:38]wFMCommunicate request_size=4 [09:20:38]MH_SAM_APDU [09:20:38]CAPDU: 80 11 00 00 [09:20:38]Write to MH i2c: E2 08 00 D3 5C 80 11 00 00 00 00 00 00 A9 [09:20:38]Write i2c OK [09:20:38]MH_I2C_Read... [09:20:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:38]Read from MH i2c: E2 [09:20:38]MH_I2C_Read... [09:20:38]Read from MH i2c: E2 17 00 [09:20:38]MH_I2C_Read... [09:20:38]Read from MH i2c: E2 17 00 D3 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F6 [09:20:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:20:38]wFMCommunicate OK [09:20:38]requested_item fd.num is exist - process it [09:20:38]SAM_PROTO_GetFieldsCounters [09:20:38]wFMCommunicate request_size=4 [09:20:38]MH_SAM_APDU [09:20:38]CAPDU: 80 13 00 00 [09:20:38]Write to MH i2c: E2 08 00 D4 5C 80 13 00 00 00 00 00 00 AC [09:20:38]Write i2c OK [09:20:38]MH_I2C_Read... [09:20:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:38]Read from MH i2c: E2 [09:20:38]MH_I2C_Read... [09:20:38]Read from MH i2c: E2 62 00 [09:20:38]MH_I2C_Read... [09:20:38]Read from MH i2c: E2 62 00 D4 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 CE F9 03 00 0E 04 04 00 C1 01 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 B3 [09:20: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 CE F9 03 00 0E 04 04 00 C1 01 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 [09:20:38]wFMCommunicate OK [09:20:38]SAM_PROTO_GetFieldsCounters done [09:20:38]requested_item shift.num is exist - process it [09:20:38]requested_item shift.opened is exist - process it [09:20:38]req_shift_opened [09:20:38]FM_GetShiftState [09:20:38]SAM_PROTO_GetShiftState [09:20:38]wFMCommunicate request_size=4 [09:20:38]MH_SAM_APDU [09:20:38]CAPDU: 80 13 01 00 [09:20:38]Write to MH i2c: E2 08 00 D5 5C 80 13 01 00 00 00 00 00 AE [09:20:38]Write i2c OK [09:20:38]MH_I2C_Read... [09:20:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:38]Read from MH i2c: E2 [09:20:38]MH_I2C_Read... [09:20:38]Read from MH i2c: E2 0E 00 [09:20:38]MH_I2C_Read... [09:20:38]Read from MH i2c: E2 0E 00 D5 5C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 EB [09:20:38]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:20:38]wFMCommunicate OK [09:20:38]SAM_PROTO_GetShiftState done [09:20:38]FM_GetShiftState done [09:20:38]req_shift_opened done [09:20:38]requested_item shift.open_date is exist - process it [09:20:38]req_shift_open_date [09:20:38]req_shift_open_date done [09:20:38]produce_requested_data done [09:20:38]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260558,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [09:20:38]process_action_free close_receipt [09:20:38]json_value_free [09:20:38]json_value_free done [09:20:38]process_json_proto returns [09:20:38]Send response to host [09:20:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260558,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [09:20:38]free response buf [09:20:38]execute_script done [09:20:38]execute_script returns [09:20:38]free content buf [09:20:38]Sock 9.Close socket [09:20:38]Sock 9.Thread stoped [09:20:41]OFD Sender: No OFD packet to send [09:20:46]OFD Sender: No OFD packet to send [09:20:51]OFD Sender: No OFD packet to send [09:20:56]OFD Sender: No OFD packet to send [09:21:01]OFD Sender: No OFD packet to send [09:21:06]OFD Sender: No OFD packet to send [09:21:11]OFD Sender: No OFD packet to send [09:21:16]OFD Sender: No OFD packet to send [09:21:21]OFD Sender: No OFD packet to send [09:21:26]OFD Sender: No OFD packet to send [09:21:31]OFD Sender: No OFD packet to send [09:21:36]OFD Sender: No OFD packet to send [09:21:41]OFD Sender: No OFD packet to send [09:21:46]OFD Sender: No OFD packet to send [09:21:51]OFD Sender: No OFD packet to send [09:21:56]OFD Sender: No OFD packet to send [09:22:01]OFD Sender: No OFD packet to send [09:22:06]OFD Sender: No OFD packet to send [09:22:11]OFD Sender: No OFD packet to send [09:22:16]OFD Sender: No OFD packet to send [09:22:21]OFD Sender: No OFD packet to send [09:22:26]OFD Sender: No OFD packet to send [09:22:31]OFD Sender: No OFD packet to send [09:22:36]OFD Sender: No OFD packet to send [09:22:41]OFD Sender: No OFD packet to send [09:22:46]OFD Sender: No OFD packet to send [09:22:51]OFD Sender: No OFD packet to send [09:22:56]OFD Sender: No OFD packet to send [09:23:01]OFD Sender: No OFD packet to send [09:23:06]OFD Sender: No OFD packet to send [09:23:11]OFD Sender: No OFD packet to send [09:23:16]OFD Sender: No OFD packet to send [09:23:21]OFD Sender: No OFD packet to send [09:23:23]accept exits with 7 [09:23:23]New connection [09:23:23]New thread 3066617188 created [09:23:23]Thread 3066473828 joined [09:23:23]Waiting for new connection... [09:23:23] Sock 7.Parse request [09:23:23]Sock 7.Check first char [09:23:23]Sock 7.First char is OK [09:23:23]request: POST /json_proto HTTP/1.0 [09:23:23]Method: POST [09:23:23]URL: /json_proto [09:23:23]Method is POST - this is cgi request [09:23:23]url: /json_proto [09:23:23]query_string will be loaded in cgi processing [09:23:23]execute_cgi json_proto POST (null) [09:23:23]execute_cgi path=json_proto method=POST [09:23:23]POST find Content-Length [09:23:23]Host: 172.17.55.133:8080 [09:23:23]Content-Length: 688 [09:23:23]Content-Type: application/json [09:23:23] [09:23:23]POST finish read [09:23:23]Found Content-Length = 688 [09:23:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:23]execute_script... [09:23: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)1036103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:23]POST & json_proto [09:23:23]process_json_proto [09:23:23]json parsed OK: [09:23:23]protocol is kg_v1.0 [09:23:23]action value=close_receipt [09:23:23]process_action close_receipt [09:23:23]cmd_close_receipt [09:23:23]MH_GetDate [09:23:23]Write to MH i2c: F0 00 00 D6 5C 21 [09:23:23]Write i2c OK [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: F0 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: F0 09 00 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: F0 09 00 D6 5C 00 8F BD C1 66 34 48 D8 65 56 [09:23:23]GetLastDocTimeStamp 1723972836 [09:23:23]current date 1723973007 [09:23:23]FM_GetShiftState [09:23:23]SAM_PROTO_GetShiftState [09:23:23]wFMCommunicate request_size=4 [09:23:23]MH_SAM_APDU [09:23:23]CAPDU: 80 13 01 00 [09:23:23]Write to MH i2c: E2 08 00 D7 5C 80 13 01 00 00 00 00 00 B0 [09:23:23]Write i2c OK [09:23:23]MH_I2C_Read... [09:23:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:23]Read from MH i2c: E2 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: E2 0E 00 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: E2 0E 00 D7 5C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 ED [09:23:23]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:23:23]wFMCommunicate OK [09:23:23]SAM_PROTO_GetShiftState done [09:23:23]FM_GetShiftState done [09:23:23]opened in 1723940556 [09:23:23]opened+sec_in_day 1724026956 [09:23:23]quantity*price = 100050 [09:23:23]sum+1 = 100052 [09:23:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 117 18.08.2024 09:23 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260559 ФПД: 7248373691778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T092327&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260559&fm=7248373691778&tin=02508201610067®Number=0000000000091865&sum=100000 [09:23:25]StoreToDocumentArchive [09:23:25]shift 449 fd 260559 [09:23:25]save to /storage/0449/doc_00260559 [09:23:25]save last doc name /storage/0449/doc_00260559 to /storage/kkm_last_doc_name [09:23:25]save OK [09:23:25]Clear old archive folders... [09:23:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:23:25]tlvbuf is 00336680 [09:23:25]SAM_PROTO_ClearQueue [09:23:25]wFMCommunicate request_size=4 [09:23:25]MH_SAM_APDU [09:23:25]CAPDU: 80 09 00 00 [09:23:25]Write to MH i2c: E2 08 00 E4 5C 80 09 00 00 00 00 00 00 B2 [09:23:25]Write i2c OK [09:23:25]MH_I2C_Read... [09:23:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:25]Read from MH i2c: E2 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: E2 03 00 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: E2 03 00 E4 5C 00 90 00 B4 [09:23:25]RAPDU: 90 00 [09:23:25]wFMCommunicate OK [09:23:25]SAM_PROTO_ClearQueue done [09:23:25]KKMCreateOFDPacket [09:23:25]OFDProtocolAddRootSTLVToBuf [09:23:25]FM_MakeSignedData [09:23:25]FM_MakeSignedData [09:23:25]SAM_PROTO_SignData [09:23:25]wFMCommunicate request_size=4 [09:23:25]MH_SAM_APDU [09:23:25]CAPDU: 80 0D 01 02 [09:23:25]Write to MH i2c: E2 08 00 E5 5C 80 0D 01 02 00 00 00 00 BA [09:23:25]Write i2c OK [09:23:25]MH_I2C_Read... [09:23:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:25]Read from MH i2c: E2 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: E2 03 00 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: E2 03 00 E5 5C 00 90 00 B5 [09:23:25]RAPDU: 90 00 [09:23:25]wFMCommunicate OK [09:23:25]wFMCommunicate request_size=255 [09:23:25]MH_SAM_APDU [09:23:25]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 8F BD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CF F9 03 00 35 04 06 00 [09:23:25]Write to MH i2c: E2 02 01 E6 5C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 8F BD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CF F9 03 00 35 04 06 00 00 00 99 [09:23:25]Write i2c OK [09:23:25]MH_I2C_Read... [09:23:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:25]Read from MH i2c: E2 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: E2 03 00 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: E2 03 00 E6 5C 00 90 00 B6 [09:23:25]RAPDU: 90 00 [09:23:25]wFMCommunicate OK [09:23:25]wFMCommunicate request_size=11 [09:23:25]MH_SAM_APDU [09:23:25]CAPDU: 80 0D 02 02 06 06 97 A4 BD 35 82 [09:23:25]Write to MH i2c: E2 0E 00 E7 5C 80 0D 02 02 06 00 06 97 A4 BD 35 82 00 00 7E [09:23:25]Write i2c OK [09:23:25]MH_I2C_Read... [09:23:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:25]Read from MH i2c: E2 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: E2 03 00 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: E2 03 00 E7 5C 00 90 00 B7 [09:23:25]RAPDU: 90 00 [09:23:25]wFMCommunicate OK [09:23:25]wFMCommunicate request_size=4 [09:23:25]MH_SAM_APDU [09:23:25]CAPDU: 80 0D 03 02 [09:23:25]Write to MH i2c: E2 08 00 E8 5C 80 0D 03 02 00 00 00 00 BF [09:23:25]Write i2c OK [09:23:25]MH_I2C_Read... [09:23:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:25]Read from MH i2c: E2 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: E2 0B 00 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: E2 0B 00 E8 5C 00 D6 E9 21 FD 9C 37 F4 0A 90 00 6E [09:23:25]RAPDU: D6 E9 21 FD 9C 37 F4 0A 90 00 [09:23:25]wFMCommunicate OK [09:23:25]SAM_PROTO_SignData done [09:23:25]FM_MakeSignedData done [09:23:25]CreateOFDProtocolMessage [09:23:25]wFMCommunicate request_size=4 [09:23:25]MH_SAM_APDU [09:23:25]CAPDU: 80 11 00 00 [09:23:25]Write to MH i2c: E2 08 00 E9 5C 80 11 00 00 00 00 00 00 BF [09:23:25]Write i2c OK [09:23:25]MH_I2C_Read... [09:23:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:25]Read from MH i2c: E2 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: E2 17 00 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: E2 17 00 E9 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 0C [09:23:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:23:25]wFMCommunicate OK [09:23:25]CreateOFDProtocolMessage done [09:23:25]OFDSenderStorePacket 260559 [09:23:25]StoreOFDPacket docnum=260559 [09:23:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 9C 7E 08 01 4E 53 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 8F BD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CF F9 03 00 35 04 06 00 06 97 A4 BD 35 82 D6 E9 21 FD 9C 37 F4 0A [09:23:25]CheckFolder [09:23:25]dirname=/storage/ofd_packets [09:23:25]CheckFolder done [09:23:25]ProducePacketName [09:23:25]name=ofd_packets/00260559 [09:23:25]NVStorageSaveData ofd_packets/00260559 [09:23:25]File name is /storage/ofd_packets/00260559 [09:23:25]Write 302 bytes [09:23:25]NVStorageSaveData done [09:23:25]OFDSenderStorePacket done [09:23:25]KKMCreateOFDPacket done [09:23:25]NVStorageSaveData kkm_last_timestamp [09:23:25]File name is /storage/kkm_last_timestamp [09:23:25]Write 4 bytes [09:23:25]NVStorageSaveData done [09:23:25]ExternCall_PrintAddStr [09:23:25]wPrintStart [09:23:25]Write to MH i2c: 01 00 00 EA 5C 46 [09:23:25]Write i2c OK [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: 01 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: 01 07 00 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: 01 07 00 EA 5C 00 00 00 00 00 FF 0F 5B [09:23:25]RasterBufferAndPrint [09:23:25]line Счет N : (1)1036103 [09:23:25]line ИНН: 02508201610067 [09:23:25]line Контрольно-Кассовый Чек [09:23:25]line ПРОДАЖА [09:23:25]line ТРК (МРК, ГНК) : 33 [09:23:25]line Товар: 2710194210 [09:23:25]line ДТ(л)-К-4 [09:23:25]line 13.130 * 76.20 [09:23:25]line = 1000.51 [09:23:25]line НДС 12% НСП 1% [09:23:25]line > о реализуемом товаре [09:23:25]line ОКРУГЛЕНИЕ: -0.51 [09:23:25]line ИТОГО: 1000.00 [09:23:25]line Внесено: 1000.00 [09:23:25]line СДАЧА: 0.00 [09:23:25]line НСП 1% : 8.85 [09:23:25]line НДС 12% : 106.25 [09:23:25]line Наличными: 1000.00 [09:23:25]line Безнал.: 0.00 [09:23:25]line Место: АЗС № 94 "Партнер Нефть" [09:23:25]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [09:23:25]line СНО: Общий режим [09:23:25]line Чек 117 18.08.2024 09:23 [09:23:25]line Смена: 449 ФФД: 1.0 [09:23:25]line ЗНМ: 0300000099 [09:23:25]line РНМ: 0000000000091865 [09:23:25]line Версия ККМ: 001 [09:23:25]line ФМ: 0000000000871820 [09:23:25]line ФД: 260559 [09:23:25]line ФПД: 7248373691778 [09:23:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T092327&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260559&fm=7248373691778&tin=02508201610067®Number=0000000000091865&sum=100000 [09:23:25]OFD Sender: Processing packet 260559 [packets to send 192, broken 191] [09:23:25]ProducePacketName [09:23:25]name=ofd_packets/00260559 [09:23:25]OFD Sender: To server: pG, [09:23:25]CommunicateWithHost lk.salyk.kg:30040 [09:23:25]ConnectInit lk.salyk.kg [09:23:25]written 0, free lines is 4095 [09:23:26]Connected sock=10 [09:23: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 30 10 01 00 00 9C 7E 08 01 4E 53 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 8F BD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CF F9 03 00 35 04 06 00 06 97 A4 BD 35 82 D6 E9 21 FD 9C 37 F4 0A [09:23: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 30 4F 00 00 00 A0 F4 47 00 F6 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CF F9 03 00 F4 03 04 00 E5 66 C1 66 B6 04 01 00 00 50 E3 A6 86 77 95 D4 08 [09:23:26]CommunicateWithHost err = 0 [09:23:26]CheckOFDResponse [09:23:26]1017 (14) - 77093643461234 [09:23:26]1041 (16) - 0000000000871820 [09:23:26]1040 (4) - 260559 [09:23:26]1012 (4) - 18.08.2024 03:13 [09:23:26]1206 (1) - 0 [09:23:26]OFD Sender: Remove packet 260559 [09:23:26]ProducePacketName [09:23:26]name=ofd_packets/00260559 [09:23:26]NVStorageDeleteData [09:23:26]Write to MH i2c: 01 00 00 15 5D 72 [09:23:26]Write i2c OK [09:23:26]MH_I2C_Read... [09:23:26]Read from MH i2c: 01 [09:23:26]MH_I2C_Read... [09:23:26]Read from MH i2c: 01 07 00 [09:23:26]MH_I2C_Read... [09:23:26]Read from MH i2c: 01 07 00 15 5D 00 00 00 00 00 5D 0C E2 [09:23:26]RasterBufferAndPrint [09:23:26]line [09:23:26]line [09:23:26]line [09:23:26]line [09:23:26]line [09:23:26]written 0, free lines is 3169 [09:23:26]MH_Cut [09:23:26]Write to MH i2c: D1 01 00 1C 5D 01 4B [09:23:26]Write i2c OK [09:23:26]MH_I2C_Read... [09:23:26]Read from MH i2c: D1 [09:23:26]MH_I2C_Read... [09:23:26]Read from MH i2c: D1 01 00 [09:23:26]MH_I2C_Read... [09:23:26]Read from MH i2c: D1 01 00 1C 5D 00 4A [09:23:26]Write to MH i2c: 01 00 00 1D 5D 7A [09:23:26]Write i2c OK [09:23:26]MH_I2C_Read... [09:23:26]OFD Sender: No OFD packet to send [09:23:27]*** Cut start [09:23:27]*** Purtial cut [09:23:27]*** Stage 1: CUTSNS_PIN = 1 [09:23:29]Read from MH i2c: 01 [09:23:29]MH_I2C_Read... [09:23:29]*** Stop cut motor [09:23:29]*** Cut end [09:23:29]Read from MH i2c: 01 07 00 [09:23:29]MH_I2C_Read... [09:23:29]Read from MH i2c: 01 07 00 1D 5D 00 00 00 00 00 FF 0F 8F [09:23:29]process_action close_receipt done [09:23:29]requested_data is exist [09:23:29]produce_requested_data [09:23:29]requested_item fm.sn is exist - process it [09:23:29]wFMCommunicate request_size=4 [09:23:29]MH_SAM_APDU [09:23:29]CAPDU: 80 11 00 00 [09:23:29]Write to MH i2c: E2 08 00 1E 5D 80 11 00 00 00 00 00 00 F5 [09:23:29]Write i2c OK [09:23:29]MH_I2C_Read... [09:23:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:29]Read from MH i2c: E2 [09:23:29]MH_I2C_Read... [09:23:29]Read from MH i2c: E2 17 00 [09:23:29]MH_I2C_Read... [09:23:29]Read from MH i2c: E2 17 00 1E 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 42 [09:23:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:23:29]wFMCommunicate OK [09:23:29]requested_item fd.num is exist - process it [09:23:29]SAM_PROTO_GetFieldsCounters [09:23:29]wFMCommunicate request_size=4 [09:23:29]MH_SAM_APDU [09:23:29]CAPDU: 80 13 00 00 [09:23:29]Write to MH i2c: E2 08 00 1F 5D 80 13 00 00 00 00 00 00 F8 [09:23:29]Write i2c OK [09:23:29]MH_I2C_Read... [09:23:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:29]Read from MH i2c: E2 [09:23:29]MH_I2C_Read... [09:23:29]Read from MH i2c: E2 62 00 [09:23:29]MH_I2C_Read... [09:23:29]Read from MH i2c: E2 62 00 1F 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 CF F9 03 00 0E 04 04 00 C1 01 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 03 [09:23: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 CF F9 03 00 0E 04 04 00 C1 01 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 [09:23:29]wFMCommunicate OK [09:23:29]SAM_PROTO_GetFieldsCounters done [09:23:29]requested_item shift.num is exist - process it [09:23:29]requested_item shift.opened is exist - process it [09:23:29]req_shift_opened [09:23:29]FM_GetShiftState [09:23:29]SAM_PROTO_GetShiftState [09:23:29]wFMCommunicate request_size=4 [09:23:29]MH_SAM_APDU [09:23:29]CAPDU: 80 13 01 00 [09:23:29]Write to MH i2c: E2 08 00 20 5D 80 13 01 00 00 00 00 00 FA [09:23:29]Write i2c OK [09:23:29]MH_I2C_Read... [09:23:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:29]Read from MH i2c: E2 [09:23:29]MH_I2C_Read... [09:23:29]Read from MH i2c: E2 0E 00 [09:23:29]MH_I2C_Read... [09:23:29]Read from MH i2c: E2 0E 00 20 5D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 37 [09:23:29]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:23:29]wFMCommunicate OK [09:23:29]SAM_PROTO_GetShiftState done [09:23:29]FM_GetShiftState done [09:23:29]req_shift_opened done [09:23:29]requested_item shift.open_date is exist - process it [09:23:29]req_shift_open_date [09:23:29]req_shift_open_date done [09:23:29]produce_requested_data done [09:23:29]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260559,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [09:23:29]process_action_free close_receipt [09:23:29]json_value_free [09:23:29]json_value_free done [09:23:29]process_json_proto returns [09:23:29]Send response to host [09:23:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260559,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [09:23:29]free response buf [09:23:29]execute_script done [09:23:29]execute_script returns [09:23:29]free content buf [09:23:29]Sock 7.Close socket [09:23:29]Sock 7.Thread stoped [09:23:31]OFD Sender: No OFD packet to send [09:23:36]OFD Sender: No OFD packet to send [09:23:41]OFD Sender: No OFD packet to send [09:23:46]OFD Sender: No OFD packet to send [09:23:51]OFD Sender: No OFD packet to send [09:23:56]OFD Sender: No OFD packet to send [09:24:01]OFD Sender: No OFD packet to send [09:24:06]OFD Sender: No OFD packet to send [09:24:11]OFD Sender: No OFD packet to send [09:24:16]OFD Sender: No OFD packet to send [09:24:20]accept exits with 9 [09:24:20]New connection [09:24:20]New thread 3066473828 created [09:24:20]Thread 3066617188 joined [09:24:20]Waiting for new connection... [09:24:20] Sock 9.Parse request [09:24:20]Sock 9.Check first char [09:24:20]Sock 9.First char is OK [09:24:20]request: POST /json_proto HTTP/1.0 [09:24:20]Method: POST [09:24:20]URL: /json_proto [09:24:20]Method is POST - this is cgi request [09:24:20]url: /json_proto [09:24:20]query_string will be loaded in cgi processing [09:24:20]execute_cgi json_proto POST (null) [09:24:20]execute_cgi path=json_proto method=POST [09:24:20]POST find Content-Length [09:24:20]Host: 172.17.55.133:8080 [09:24:20]Content-Length: 804 [09:24:20]Content-Type: application/json [09:24:20] [09:24:20]POST finish read [09:24:20]Found Content-Length = 804 [09:24:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:20]execute_script... [09:24: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)1036104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:20]POST & json_proto [09:24:20]process_json_proto [09:24:20]json parsed OK: [09:24:20]protocol is kg_v1.0 [09:24:20]action value=close_receipt [09:24:20]process_action close_receipt [09:24:20]cmd_close_receipt [09:24:20]MH_GetDate [09:24:20]Write to MH i2c: F0 00 00 21 5D 6D [09:24:20]Write i2c OK [09:24:20]MH_I2C_Read... [09:24:20]Read from MH i2c: F0 [09:24:20]MH_I2C_Read... [09:24:20]Read from MH i2c: F0 09 00 [09:24:20]MH_I2C_Read... [09:24:20]Read from MH i2c: F0 09 00 21 5D 00 C8 BD C1 66 34 48 D8 65 DB [09:24:20]GetLastDocTimeStamp 1723973007 [09:24:20]current date 1723973064 [09:24:20]FM_GetShiftState [09:24:20]SAM_PROTO_GetShiftState [09:24:20]wFMCommunicate request_size=4 [09:24:20]MH_SAM_APDU [09:24:20]CAPDU: 80 13 01 00 [09:24:20]Write to MH i2c: E2 08 00 22 5D 80 13 01 00 00 00 00 00 FC [09:24:20]Write i2c OK [09:24:20]MH_I2C_Read... [09:24:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:20]Read from MH i2c: E2 [09:24:20]MH_I2C_Read... [09:24:20]Read from MH i2c: E2 0E 00 [09:24:20]MH_I2C_Read... [09:24:20]Read from MH i2c: E2 0E 00 22 5D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 39 [09:24:20]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:24:20]wFMCommunicate OK [09:24:20]SAM_PROTO_GetShiftState done [09:24:20]FM_GetShiftState done [09:24:20]opened in 1723940556 [09:24:20]opened+sec_in_day 1724026956 [09:24:20]quantity*price = 100005 [09:24:20]sum+1 = 100006 [09:24:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 118 18.08.2024 09:24 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260560 ФПД: 39379135464752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T092424&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260560&fm=39379135464752&tin=02508201610067®Number=0000000000091865&sum=100005 [09:24:21]StoreToDocumentArchive [09:24:21]shift 449 fd 260560 [09:24:21]save to /storage/0449/doc_00260560 [09:24:21]save last doc name /storage/0449/doc_00260560 to /storage/kkm_last_doc_name [09:24:21]save OK [09:24:21]Clear old archive folders... [09:24:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:24:21]tlvbuf is 00489EF0 [09:24:21]SAM_PROTO_ClearQueue [09:24:21]wFMCommunicate request_size=4 [09:24:21]MH_SAM_APDU [09:24:21]CAPDU: 80 09 00 00 [09:24:21]Write to MH i2c: E2 08 00 2F 5D 80 09 00 00 00 00 00 00 FE [09:24:21]Write i2c OK [09:24:21]MH_I2C_Read... [09:24:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:24:21]Read from MH i2c: E2 [09:24:21]MH_I2C_Read... [09:24:21]Read from MH i2c: E2 03 00 [09:24:21]MH_I2C_Read... [09:24:21]Read from MH i2c: E2 03 00 2F 5D 00 90 00 00 [09:24:21]RAPDU: 90 00 [09:24:21]wFMCommunicate OK [09:24:21]SAM_PROTO_ClearQueue done [09:24:21]KKMCreateOFDPacket [09:24:21]OFDProtocolAddRootSTLVToBuf [09:24:21]FM_MakeSignedData [09:24:21]FM_MakeSignedData [09:24:21]SAM_PROTO_SignData [09:24:21]wFMCommunicate request_size=4 [09:24:21]MH_SAM_APDU [09:24:21]CAPDU: 80 0D 01 02 [09:24:21]Write to MH i2c: E2 08 00 30 5D 80 0D 01 02 00 00 00 00 06 [09:24:21]Write i2c OK [09:24:21]MH_I2C_Read... [09:24:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:24:21]Read from MH i2c: E2 [09:24:21]MH_I2C_Read... [09:24:21]Read from MH i2c: E2 03 00 [09:24:21]MH_I2C_Read... [09:24:21]Read from MH i2c: E2 03 00 30 5D 00 90 00 01 [09:24:21]RAPDU: 90 00 [09:24:21]wFMCommunicate OK [09:24:21]wFMCommunicate request_size=255 [09:24:21]MH_SAM_APDU [09:24:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 C8 BD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D0 F9 03 00 35 04 06 00 23 [09:24:21]Write to MH i2c: E2 02 01 31 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 C8 BD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D0 F9 03 00 35 04 06 00 23 00 00 EF [09:24:21]Write i2c OK [09:24:21]MH_I2C_Read... [09:24:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:21]Read from MH i2c: E2 [09:24:21]MH_I2C_Read... [09:24:21]Read from MH i2c: E2 03 00 [09:24:21]MH_I2C_Read... [09:24:21]Read from MH i2c: E2 03 00 31 5D 00 90 00 02 [09:24:21]RAPDU: 90 00 [09:24:21]wFMCommunicate OK [09:24:21]wFMCommunicate request_size=10 [09:24:21]MH_SAM_APDU [09:24:21]CAPDU: 80 0D 02 02 05 D0 AB 61 85 30 [09:24:21]Write to MH i2c: E2 0D 00 32 5D 80 0D 02 02 05 00 D0 AB 61 85 30 00 00 A4 [09:24:21]Write i2c OK [09:24:21]MH_I2C_Read... [09:24:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:21]Read from MH i2c: E2 [09:24:21]MH_I2C_Read... [09:24:21]Read from MH i2c: E2 03 00 [09:24:21]MH_I2C_Read... [09:24:21]Read from MH i2c: E2 03 00 32 5D 00 90 00 03 [09:24:21]RAPDU: 90 00 [09:24:21]wFMCommunicate OK [09:24:21]wFMCommunicate request_size=4 [09:24:21]MH_SAM_APDU [09:24:21]CAPDU: 80 0D 03 02 [09:24:21]Write to MH i2c: E2 08 00 33 5D 80 0D 03 02 00 00 00 00 0B [09:24:21]Write i2c OK [09:24:21]MH_I2C_Read... [09:24:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:24:21]Read from MH i2c: E2 [09:24:21]MH_I2C_Read... [09:24:21]Read from MH i2c: E2 0B 00 [09:24:21]MH_I2C_Read... [09:24:21]Read from MH i2c: E2 0B 00 33 5D 00 0E 26 3B D6 E8 EC 71 B7 90 00 4D [09:24:21]RAPDU: 0E 26 3B D6 E8 EC 71 B7 90 00 [09:24:21]wFMCommunicate OK [09:24:21]SAM_PROTO_SignData done [09:24:21]FM_MakeSignedData done [09:24:21]CreateOFDProtocolMessage [09:24:21]wFMCommunicate request_size=4 [09:24:21]MH_SAM_APDU [09:24:21]CAPDU: 80 11 00 00 [09:24:21]Write to MH i2c: E2 08 00 34 5D 80 11 00 00 00 00 00 00 0B [09:24:21]Write i2c OK [09:24:21]MH_I2C_Read... [09:24:21]OFD Sender: No OFD packet to send [09:24:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:21]Read from MH i2c: E2 [09:24:21]MH_I2C_Read... [09:24:21]Read from MH i2c: E2 17 00 [09:24:21]MH_I2C_Read... [09:24:21]Read from MH i2c: E2 17 00 34 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 58 [09:24:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:24:21]wFMCommunicate OK [09:24:21]CreateOFDProtocolMessage done [09:24:21]OFDSenderStorePacket 260560 [09:24:21]StoreOFDPacket docnum=260560 [09:24:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 80 06 07 01 2C 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 C8 BD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D0 F9 03 00 35 04 06 00 23 D0 AB 61 85 30 0E 26 3B D6 E8 EC 71 B7 [09:24:21]CheckFolder [09:24:21]dirname=/storage/ofd_packets [09:24:21]CheckFolder done [09:24:21]ProducePacketName [09:24:21]name=ofd_packets/00260560 [09:24:21]NVStorageSaveData ofd_packets/00260560 [09:24:21]File name is /storage/ofd_packets/00260560 [09:24:21]Write 301 bytes [09:24:21]NVStorageSaveData done [09:24:21]OFDSenderStorePacket done [09:24:21]KKMCreateOFDPacket done [09:24:21]NVStorageSaveData kkm_last_timestamp [09:24:21]File name is /storage/kkm_last_timestamp [09:24:21]Write 4 bytes [09:24:21]NVStorageSaveData done [09:24:21]ExternCall_PrintAddStr [09:24:21]wPrintStart [09:24:21]Write to MH i2c: 01 00 00 35 5D 92 [09:24:21]Write i2c OK [09:24:21]MH_I2C_Read... [09:24:21]Read from MH i2c: 01 [09:24:21]MH_I2C_Read... [09:24:21]Read from MH i2c: 01 07 00 [09:24:21]MH_I2C_Read... [09:24:21]Read from MH i2c: 01 07 00 35 5D 00 00 00 00 00 FF 0F A7 [09:24:21]RasterBufferAndPrint [09:24:21]line Счет N : (1)1036104 [09:24:21]line ИНН: 02508201610067 [09:24:21]line Контрольно-Кассовый Чек [09:24:21]line ПРОДАЖА [09:24:21]line ТРК (МРК, ГНК) : 12 [09:24:21]line Товар: 2710124130 [09:24:21]line Аи-92-К-5 [09:24:21]line 14.750 * 67.80 [09:24:21]line = 1000.05 [09:24:21]line НДС 12% НСП 1% [09:24:21]line > о реализуемом товаре [09:24:21]line ИТОГО: 1000.05 [09:24:21]line НСП 1% : 8.85 [09:24:21]line НДС 12% : 106.20 [09:24:21]line Наличными: 0.00 [09:24:21]line Безнал.: 1000.05 [09:24:21]line Место: АЗС № 94 "Партнер Нефть" [09:24:21]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [09:24:21]line СНО: Общий режим [09:24:21]line Чек 118 18.08.2024 09:24 [09:24:21]line Смена: 449 ФФД: 1.0 [09:24:21]line ЗНМ: 0300000099 [09:24:21]line РНМ: 0000000000091865 [09:24:21]line Версия ККМ: 001 [09:24:21]line Платежная система: O! деньги [09:24:21]line ФМ: 0000000000871820 [09:24:21]line ФД: 260560 [09:24:21]line ФПД: 39379135464752 [09:24:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T092424&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260560&fm=39379135464752&tin=02508201610067®Number=0000000000091865&sum=100005 [09:24:22]OFD Sender: Processing packet 260560 [packets to send 192, broken 191] [09:24:22]ProducePacketName [09:24:22]name=ofd_packets/00260560 [09:24:22]OFD Sender: To server: pG, [09:24:22]CommunicateWithHost lk.salyk.kg:30040 [09:24:22]ConnectInit lk.salyk.kg [09:24:22]written 0, free lines is 4095 [09:24:22]Connected sock=10 [09:24: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 30 0F 01 00 00 80 06 07 01 2C 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 C8 BD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D0 F9 03 00 35 04 06 00 23 D0 AB 61 85 30 0E 26 3B D6 E8 EC 71 B7 [09:24: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 30 4F 00 00 00 F5 6B 47 00 12 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 30 10 04 04 00 D0 F9 03 00 F4 03 04 00 1D 67 C1 66 B6 04 01 00 00 B9 7F DC F8 B1 08 66 69 [09:24:22]CommunicateWithHost err = 0 [09:24:22]CheckOFDResponse [09:24:22]1017 (14) - 77093643461234 [09:24:22]1041 (16) - 0000000000871820 [09:24:22]1040 (4) - 260560 [09:24:22]1012 (4) - 18.08.2024 03:14 [09:24:22]1206 (1) - 0 [09:24:22]OFD Sender: Remove packet 260560 [09:24:22]ProducePacketName [09:24:22]name=ofd_packets/00260560 [09:24:22]NVStorageDeleteData [09:24:22]Write to MH i2c: 01 00 00 5F 5D BC [09:24:22]Write i2c OK [09:24:22]MH_I2C_Read... [09:24:22]Read from MH i2c: 01 [09:24:22]MH_I2C_Read... [09:24:22]Read from MH i2c: 01 07 00 [09:24:22]MH_I2C_Read... [09:24:22]Read from MH i2c: 01 07 00 5F 5D 00 00 00 00 00 7A 0C 49 [09:24:22]RasterBufferAndPrint [09:24:22]line [09:24:22]line [09:24:22]line [09:24:22]line [09:24:22]line [09:24:22]written 0, free lines is 3198 [09:24:22]MH_Cut [09:24:22]Write to MH i2c: D1 01 00 66 5D 01 95 [09:24:22]Write i2c OK [09:24:22]MH_I2C_Read... [09:24:22]Read from MH i2c: D1 [09:24:22]MH_I2C_Read... [09:24:22]Read from MH i2c: D1 01 00 [09:24:22]MH_I2C_Read... [09:24:22]Read from MH i2c: D1 01 00 66 5D 00 94 [09:24:22]Write to MH i2c: 01 00 00 67 5D C4 [09:24:22]Write i2c OK [09:24:22]MH_I2C_Read... [09:24:23]OFD Sender: No OFD packet to send [09:24:23]*** Cut start [09:24:23]*** Purtial cut [09:24:23]*** Stage 1: CUTSNS_PIN = 1 [09:24:25]Read from MH i2c: 01 [09:24:25]*** Stop cut motor [09:24:25]*** Cut end [09:24:25]MH_I2C_Read... [09:24:25]Read from MH i2c: 01 07 00 [09:24:25]MH_I2C_Read... [09:24:25]Read from MH i2c: 01 07 00 67 5D 00 00 00 00 00 FF 0F D9 [09:24:25]process_action close_receipt done [09:24:25]requested_data is exist [09:24:25]produce_requested_data [09:24:25]requested_item fm.sn is exist - process it [09:24:25]wFMCommunicate request_size=4 [09:24:25]MH_SAM_APDU [09:24:25]CAPDU: 80 11 00 00 [09:24:25]Write to MH i2c: E2 08 00 68 5D 80 11 00 00 00 00 00 00 3F [09:24:25]Write i2c OK [09:24:25]MH_I2C_Read... [09:24:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:25]Read from MH i2c: E2 [09:24:25]MH_I2C_Read... [09:24:25]Read from MH i2c: E2 17 00 [09:24:25]MH_I2C_Read... [09:24:25]Read from MH i2c: E2 17 00 68 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 8C [09:24:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:24:25]wFMCommunicate OK [09:24:25]requested_item fd.num is exist - process it [09:24:25]SAM_PROTO_GetFieldsCounters [09:24:25]wFMCommunicate request_size=4 [09:24:25]MH_SAM_APDU [09:24:25]CAPDU: 80 13 00 00 [09:24:25]Write to MH i2c: E2 08 00 69 5D 80 13 00 00 00 00 00 00 42 [09:24:25]Write i2c OK [09:24:25]MH_I2C_Read... [09:24:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:24:26]Read from MH i2c: E2 [09:24:26]MH_I2C_Read... [09:24:26]Read from MH i2c: E2 62 00 [09:24:26]MH_I2C_Read... [09:24:26]Read from MH i2c: E2 62 00 69 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D0 F9 03 00 0E 04 04 00 C1 01 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 51 [09:24: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D0 F9 03 00 0E 04 04 00 C1 01 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 [09:24:26]wFMCommunicate OK [09:24:26]SAM_PROTO_GetFieldsCounters done [09:24:26]requested_item shift.num is exist - process it [09:24:26]requested_item shift.opened is exist - process it [09:24:26]req_shift_opened [09:24:26]FM_GetShiftState [09:24:26]SAM_PROTO_GetShiftState [09:24:26]wFMCommunicate request_size=4 [09:24:26]MH_SAM_APDU [09:24:26]CAPDU: 80 13 01 00 [09:24:26]Write to MH i2c: E2 08 00 6A 5D 80 13 01 00 00 00 00 00 44 [09:24:26]Write i2c OK [09:24:26]MH_I2C_Read... [09:24:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:26]Read from MH i2c: E2 [09:24:26]MH_I2C_Read... [09:24:26]Read from MH i2c: E2 0E 00 [09:24:26]MH_I2C_Read... [09:24:26]Read from MH i2c: E2 0E 00 6A 5D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 81 [09:24:26]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:24:26]wFMCommunicate OK [09:24:26]SAM_PROTO_GetShiftState done [09:24:26]FM_GetShiftState done [09:24:26]req_shift_opened done [09:24:26]requested_item shift.open_date is exist - process it [09:24:26]req_shift_open_date [09:24:26]req_shift_open_date done [09:24:26]produce_requested_data done [09:24:26]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260560,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [09:24:26]process_action_free close_receipt [09:24:26]json_value_free [09:24:26]json_value_free done [09:24:26]process_json_proto returns [09:24:26]Send response to host [09:24:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260560,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [09:24:26]free response buf [09:24:26]execute_script done [09:24:26]execute_script returns [09:24:26]free content buf [09:24:26]Sock 9.Close socket [09:24:26]Sock 9.Thread stoped [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:08]accept exits with 7 [09:26:08]New connection [09:26:08]New thread 3066617188 created [09:26:08]Thread 3066473828 joined [09:26:08]Waiting for new connection... [09:26:08] Sock 7.Parse request [09:26:08]Sock 7.Check first char [09:26:08]Sock 7.First char is OK [09:26:08]request: POST /json_proto HTTP/1.0 [09:26:08]Method: POST [09:26:08]URL: /json_proto [09:26:08]Method is POST - this is cgi request [09:26:08]url: /json_proto [09:26:08]query_string will be loaded in cgi processing [09:26:08]execute_cgi json_proto POST (null) [09:26:08]execute_cgi path=json_proto method=POST [09:26:08]POST find Content-Length [09:26:08]Host: 172.17.55.133:8080 [09:26:08]Content-Length: 678 [09:26:08]Content-Type: application/json [09:26:08] [09:26:08]POST finish read [09:26:08]Found Content-Length = 678 [09:26:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:08]execute_script... [09:26:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:08]POST & json_proto [09:26:08]process_json_proto [09:26:08]json parsed OK: [09:26:08]protocol is kg_v1.0 [09:26:08]action value=close_receipt [09:26:08]process_action close_receipt [09:26:08]cmd_close_receipt [09:26:08]MH_GetDate [09:26:08]Write to MH i2c: F0 00 00 6B 5D B7 [09:26:08]Write i2c OK [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: F0 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: F0 09 00 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: F0 09 00 6B 5D 00 34 BE C1 66 34 48 D8 65 92 [09:26:08]GetLastDocTimeStamp 1723973064 [09:26:08]current date 1723973172 [09:26:08]FM_GetShiftState [09:26:08]SAM_PROTO_GetShiftState [09:26:08]wFMCommunicate request_size=4 [09:26:08]MH_SAM_APDU [09:26:08]CAPDU: 80 13 01 00 [09:26:08]Write to MH i2c: E2 08 00 6C 5D 80 13 01 00 00 00 00 00 46 [09:26:08]Write i2c OK [09:26:08]MH_I2C_Read... [09:26:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:08]Read from MH i2c: E2 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: E2 0E 00 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: E2 0E 00 6C 5D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 83 [09:26:08]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:26:08]wFMCommunicate OK [09:26:08]SAM_PROTO_GetShiftState done [09:26:08]FM_GetShiftState done [09:26:08]opened in 1723940556 [09:26:08]opened+sec_in_day 1724026956 [09:26:08]quantity*price = 60003 [09:26:08]sum+1 = 60004 [09:26:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 119 18.08.2024 09:26 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260561 ФПД: 105166858379013 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T092612&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260561&fm=105166858379013&tin=02508201610067®Number=0000000000091865&sum=60000 [09:26:09]StoreToDocumentArchive [09:26:09]shift 449 fd 260561 [09:26:09]save to /storage/0449/doc_00260561 [09:26:09]save last doc name /storage/0449/doc_00260561 to /storage/kkm_last_doc_name [09:26:09]save OK [09:26:09]Clear old archive folders... [09:26:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:26:09]tlvbuf is 00382E90 [09:26:09]SAM_PROTO_ClearQueue [09:26:09]wFMCommunicate request_size=4 [09:26:09]MH_SAM_APDU [09:26:09]CAPDU: 80 09 00 00 [09:26:09]Write to MH i2c: E2 08 00 79 5D 80 09 00 00 00 00 00 00 48 [09:26:09]Write i2c OK [09:26:09]MH_I2C_Read... [09:26:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:09]Read from MH i2c: E2 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: E2 03 00 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: E2 03 00 79 5D 00 90 00 4A [09:26:09]RAPDU: 90 00 [09:26:09]wFMCommunicate OK [09:26:09]SAM_PROTO_ClearQueue done [09:26:09]KKMCreateOFDPacket [09:26:09]OFDProtocolAddRootSTLVToBuf [09:26:09]FM_MakeSignedData [09:26:09]FM_MakeSignedData [09:26:09]SAM_PROTO_SignData [09:26:09]wFMCommunicate request_size=4 [09:26:09]MH_SAM_APDU [09:26:09]CAPDU: 80 0D 01 02 [09:26:09]Write to MH i2c: E2 08 00 7A 5D 80 0D 01 02 00 00 00 00 50 [09:26:09]Write i2c OK [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: E2 [09:26:09]MH_I2C_Read... [09:26:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:09]Read from MH i2c: E2 03 00 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: E2 03 00 7A 5D 00 90 00 4B [09:26:09]RAPDU: 90 00 [09:26:09]wFMCommunicate OK [09:26:09]wFMCommunicate request_size=255 [09:26:09]MH_SAM_APDU [09:26:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 34 BE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D1 F9 03 00 35 04 06 00 5F [09:26:09]Write to MH i2c: E2 02 01 7B 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 34 BE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D1 F9 03 00 35 04 06 00 5F 00 00 12 [09:26:09]Write i2c OK [09:26:09]MH_I2C_Read... [09:26:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:09]Read from MH i2c: E2 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: E2 03 00 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: E2 03 00 7B 5D 00 90 00 4C [09:26:09]RAPDU: 90 00 [09:26:09]wFMCommunicate OK [09:26:09]wFMCommunicate request_size=10 [09:26:09]MH_SAM_APDU [09:26:09]CAPDU: 80 0D 02 02 05 A6 11 3C 5F 05 [09:26:09]Write to MH i2c: E2 0D 00 7C 5D 80 0D 02 02 05 00 A6 11 3C 5F 05 00 00 B4 [09:26:09]Write i2c OK [09:26:09]MH_I2C_Read... [09:26:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:09]Read from MH i2c: E2 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: E2 03 00 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: E2 03 00 7C 5D 00 90 00 4D [09:26:09]RAPDU: 90 00 [09:26:09]wFMCommunicate OK [09:26:09]wFMCommunicate request_size=4 [09:26:09]MH_SAM_APDU [09:26:09]CAPDU: 80 0D 03 02 [09:26:09]Write to MH i2c: E2 08 00 7D 5D 80 0D 03 02 00 00 00 00 55 [09:26:09]Write i2c OK [09:26:09]MH_I2C_Read... [09:26:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:09]Read from MH i2c: E2 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: E2 0B 00 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: E2 0B 00 7D 5D 00 D1 88 4C E2 35 2C 17 7A 90 00 CF [09:26:09]RAPDU: D1 88 4C E2 35 2C 17 7A 90 00 [09:26:09]wFMCommunicate OK [09:26:09]SAM_PROTO_SignData done [09:26:09]FM_MakeSignedData done [09:26:09]CreateOFDProtocolMessage [09:26:09]wFMCommunicate request_size=4 [09:26:09]MH_SAM_APDU [09:26:09]CAPDU: 80 11 00 00 [09:26:09]Write to MH i2c: E2 08 00 7E 5D 80 11 00 00 00 00 00 00 55 [09:26:09]Write i2c OK [09:26:09]MH_I2C_Read... [09:26:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:10]Read from MH i2c: E2 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: E2 17 00 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: E2 17 00 7E 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A2 [09:26:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:26:10]wFMCommunicate OK [09:26:10]CreateOFDProtocolMessage done [09:26:10]OFDSenderStorePacket 260561 [09:26:10]StoreOFDPacket docnum=260561 [09:26:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 14 3B 07 01 09 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 34 BE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D1 F9 03 00 35 04 06 00 5F A6 11 3C 5F 05 D1 88 4C E2 35 2C 17 7A [09:26:10]CheckFolder [09:26:10]dirname=/storage/ofd_packets [09:26:10]CheckFolder done [09:26:10]ProducePacketName [09:26:10]name=ofd_packets/00260561 [09:26:10]NVStorageSaveData ofd_packets/00260561 [09:26:10]File name is /storage/ofd_packets/00260561 [09:26:10]Write 301 bytes [09:26:10]NVStorageSaveData done [09:26:10]OFDSenderStorePacket done [09:26:10]KKMCreateOFDPacket done [09:26:10]NVStorageSaveData kkm_last_timestamp [09:26:10]File name is /storage/kkm_last_timestamp [09:26:10]Write 4 bytes [09:26:10]NVStorageSaveData done [09:26:10]ExternCall_PrintAddStr [09:26:10]wPrintStart [09:26:10]Write to MH i2c: 01 00 00 7F 5D DC [09:26:10]Write i2c OK [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: 01 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: 01 07 00 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: 01 07 00 7F 5D 00 00 00 00 00 FF 0F F1 [09:26:10]RasterBufferAndPrint [09:26:10]line Счет N : (1)1036105 [09:26:10]line ИНН: 02508201610067 [09:26:10]line Контрольно-Кассовый Чек [09:26:10]line ПРОДАЖА [09:26:10]line ТРК (МРК, ГНК) : 12 [09:26:10]line Товар: 2710124130 [09:26:10]line Аи-92-К-5 [09:26:10]line 8.850 * 67.80 [09:26:10]line = 600.03 [09:26:10]line НДС 12% НСП 1% [09:26:10]line > о реализуемом товаре [09:26:10]line ОКРУГЛЕНИЕ: -0.03 [09:26:10]line ИТОГО: 600.00 [09:26:10]line Внесено: 600.00 [09:26:10]line СДАЧА: 0.00 [09:26:10]line НСП 1% : 5.31 [09:26:10]line НДС 12% : 63.72 [09:26:10]line Наличными: 600.00 [09:26:10]line Безнал.: 0.00 [09:26:10]line Место: АЗС № 94 "Партнер Нефть" [09:26:10]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [09:26:10]line СНО: Общий режим [09:26:10]line Чек 119 18.08.2024 09:26 [09:26:10]line Смена: 449 ФФД: 1.0 [09:26:10]line ЗНМ: 0300000099 [09:26:10]line РНМ: 0000000000091865 [09:26:10]line Версия ККМ: 001 [09:26:10]line ФМ: 0000000000871820 [09:26:10]line ФД: 260561 [09:26:10]line ФПД: 105166858379013 [09:26:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T092612&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260561&fm=105166858379013&tin=02508201610067®Number=0000000000091865&sum=60000 [09:26:10]OFD Sender: Processing packet 260561 [packets to send 192, broken 191] [09:26:10]ProducePacketName [09:26:10]name=ofd_packets/00260561 [09:26:10]OFD Sender: To server: pG, [09:26:10]CommunicateWithHost lk.salyk.kg:30040 [09:26:10]ConnectInit lk.salyk.kg [09:26:10]written 0, free lines is 4095 [09:26:10]Connected sock=10 [09:26: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 30 0F 01 00 00 14 3B 07 01 09 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 34 BE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D1 F9 03 00 35 04 06 00 5F A6 11 3C 5F 05 D1 88 4C E2 35 2C 17 7A [09:26: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 30 4F 00 00 00 8D 79 47 00 E6 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 30 10 04 04 00 D1 F9 03 00 F4 03 04 00 89 67 C1 66 B6 04 01 00 00 56 68 2A E0 E9 F5 4F 8D [09:26:10]CommunicateWithHost err = 0 [09:26:10]CheckOFDResponse [09:26:10]1017 (14) - 77093643461234 [09:26:10]1041 (16) - 0000000000871820 [09:26:10]1040 (4) - 260561 [09:26:10]1012 (4) - 18.08.2024 03:16 [09:26:10]1206 (1) - 0 [09:26:10]OFD Sender: Remove packet 260561 [09:26:10]ProducePacketName [09:26:10]name=ofd_packets/00260561 [09:26:10]NVStorageDeleteData [09:26:10]Write to MH i2c: 01 00 00 AA 5D 07 [09:26:10]Write i2c OK [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: 01 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: 01 07 00 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: 01 07 00 AA 5D 00 00 00 00 00 6C 0C 86 [09:26:10]RasterBufferAndPrint [09:26:10]line [09:26:10]line [09:26:10]line [09:26:10]line [09:26:10]line [09:26:10]written 0, free lines is 3183 [09:26:10]MH_Cut [09:26:10]Write to MH i2c: D1 01 00 B1 5D 01 E0 [09:26:10]Write i2c OK [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: D1 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: D1 01 00 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: D1 01 00 B1 5D 00 DF [09:26:10]Write to MH i2c: 01 00 00 B2 5D 0F [09:26:10]Write i2c OK [09:26:10]MH_I2C_Read... [09:26:11]OFD Sender: No OFD packet to send [09:26:11]*** Cut start [09:26:11]*** Purtial cut [09:26:11]*** Stage 1: CUTSNS_PIN = 1 [09:26:13]Read from MH i2c: 01 [09:26:13]MH_I2C_Read... [09:26:13]*** Stop cut motor [09:26:13]*** Cut end [09:26:13]Read from MH i2c: 01 07 00 [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: 01 07 00 B2 5D 00 00 00 00 00 FF 0F 24 [09:26:13]process_action close_receipt done [09:26:13]requested_data is exist [09:26:13]produce_requested_data [09:26:13]requested_item fm.sn is exist - process it [09:26:13]wFMCommunicate request_size=4 [09:26:13]MH_SAM_APDU [09:26:13]CAPDU: 80 11 00 00 [09:26:13]Write to MH i2c: E2 08 00 B3 5D 80 11 00 00 00 00 00 00 8A [09:26:13]Write i2c OK [09:26:13]MH_I2C_Read... [09:26:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:14]Read from MH i2c: E2 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 17 00 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 17 00 B3 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D7 [09:26:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:26:14]wFMCommunicate OK [09:26:14]requested_item fd.num is exist - process it [09:26:14]SAM_PROTO_GetFieldsCounters [09:26:14]wFMCommunicate request_size=4 [09:26:14]MH_SAM_APDU [09:26:14]CAPDU: 80 13 00 00 [09:26:14]Write to MH i2c: E2 08 00 B4 5D 80 13 00 00 00 00 00 00 8D [09:26:14]Write i2c OK [09:26:14]MH_I2C_Read... [09:26:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:14]Read from MH i2c: E2 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 62 00 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 62 00 B4 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D1 F9 03 00 0E 04 04 00 C1 01 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 A0 [09:26: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D1 F9 03 00 0E 04 04 00 C1 01 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 [09:26:14]wFMCommunicate OK [09:26:14]SAM_PROTO_GetFieldsCounters done [09:26:14]requested_item shift.num is exist - process it [09:26:14]requested_item shift.opened is exist - process it [09:26:14]req_shift_opened [09:26:14]FM_GetShiftState [09:26:14]SAM_PROTO_GetShiftState [09:26:14]wFMCommunicate request_size=4 [09:26:14]MH_SAM_APDU [09:26:14]CAPDU: 80 13 01 00 [09:26:14]Write to MH i2c: E2 08 00 B5 5D 80 13 01 00 00 00 00 00 8F [09:26:14]Write i2c OK [09:26:14]MH_I2C_Read... [09:26:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:14]Read from MH i2c: E2 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 0E 00 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 0E 00 B5 5D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 CC [09:26:14]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:26:14]wFMCommunicate OK [09:26:14]SAM_PROTO_GetShiftState done [09:26:14]FM_GetShiftState done [09:26:14]req_shift_opened done [09:26:14]requested_item shift.open_date is exist - process it [09:26:14]req_shift_open_date [09:26:14]req_shift_open_date done [09:26:14]produce_requested_data done [09:26:14]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260561,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [09:26:14]process_action_free close_receipt [09:26:14]json_value_free [09:26:14]json_value_free done [09:26:14]process_json_proto returns [09:26:14]Send response to host [09:26:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260561,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [09:26:14]free response buf [09:26:14]execute_script done [09:26:14]execute_script returns [09:26:14]free content buf [09:26:14]Sock 7.Close socket [09:26:14]Sock 7.Thread stoped [09:26:16]OFD Sender: No OFD packet to send [09:26:21]OFD Sender: No OFD packet to send [09:26:26]OFD Sender: No OFD packet to send [09:26:31]OFD Sender: No OFD packet to send [09:26:36]OFD Sender: No OFD packet to send [09:26:41]OFD Sender: No OFD packet to send [09:26:46]OFD Sender: No OFD packet to send [09:26:51]OFD Sender: No OFD packet to send [09:26:56]OFD Sender: No OFD packet to send [09:27:01]OFD Sender: No OFD packet to send [09:27:06]OFD Sender: No OFD packet to send [09:27:11]OFD Sender: No OFD packet to send [09:27:16]OFD Sender: No OFD packet to send [09:27:21]OFD Sender: No OFD packet to send [09:27:26]OFD Sender: No OFD packet to send [09:27:31]OFD Sender: No OFD packet to send [09:27:36]OFD Sender: No OFD packet to send [09:27:41]OFD Sender: No OFD packet to send [09:27:46]OFD Sender: No OFD packet to send [09:27:51]OFD Sender: No OFD packet to send [09:27:56]OFD Sender: No OFD packet to send [09:28:01]OFD Sender: No OFD packet to send [09:28:06]OFD Sender: No OFD packet to send [09:28:11]OFD Sender: No OFD packet to send [09:28:16]OFD Sender: No OFD packet to send [09:28:21]OFD Sender: No OFD packet to send [09:28:26]OFD Sender: No OFD packet to send [09:28:31]OFD Sender: No OFD packet to send [09:28:36]OFD Sender: No OFD packet to send [09:28:41]OFD Sender: No OFD packet to send [09:28:46]OFD Sender: No OFD packet to send [09:28:51]OFD Sender: No OFD packet to send [09:28:56]OFD Sender: No OFD packet to send [09:29:01]OFD Sender: No OFD packet to send [09:29:06]OFD Sender: No OFD packet to send [09:29:11]OFD Sender: No OFD packet to send [09:29:16]OFD Sender: No OFD packet to send [09:29:21]OFD Sender: No OFD packet to send [09:29:26]OFD Sender: No OFD packet to send [09:29:31]OFD Sender: No OFD packet to send [09:29:36]OFD Sender: No OFD packet to send [09:29:41]OFD Sender: No OFD packet to send [09:29:46]OFD Sender: No OFD packet to send [09:29:51]OFD Sender: No OFD packet to send [09:29:56]OFD Sender: No OFD packet to send [09:30:01]OFD Sender: No OFD packet to send [09:30:06]OFD Sender: No OFD packet to send [09:30:11]OFD Sender: No OFD packet to send [09:30:16]OFD Sender: No OFD packet to send [09:30:21]OFD Sender: No OFD packet to send [09:30:26]OFD Sender: No OFD packet to send [09:30:31]OFD Sender: No OFD packet to send [09:30:36]OFD Sender: No OFD packet to send [09:30:41]OFD Sender: No OFD packet to send [09:30:46]OFD Sender: No OFD packet to send [09:30:51]OFD Sender: No OFD packet to send [09:30:56]OFD Sender: No OFD packet to send [09:31:01]OFD Sender: No OFD packet to send [09:31:06]OFD Sender: No OFD packet to send [09:31:11]OFD Sender: No OFD packet to send [09:31:16]OFD Sender: No OFD packet to send [09:31:21]OFD Sender: No OFD packet to send [09:31:26]OFD Sender: No OFD packet to send [09:31:31]OFD Sender: No OFD packet to send [09:31:36]OFD Sender: No OFD packet to send [09:31:41]OFD Sender: No OFD packet to send [09:31:46]OFD Sender: No OFD packet to send [09:31:51]OFD Sender: No OFD packet to send [09:31:56]OFD Sender: No OFD packet to send [09:32:01]OFD Sender: No OFD packet to send [09:32:06]OFD Sender: No OFD packet to send [09:32:11]OFD Sender: No OFD packet to send [09:32:16]OFD Sender: No OFD packet to send [09:32:21]OFD Sender: No OFD packet to send [09:32:26]OFD Sender: No OFD packet to send [09:32:31]OFD Sender: No OFD packet to send [09:32:36]OFD Sender: No OFD packet to send [09:32:41]OFD Sender: No OFD packet to send [09:32:46]OFD Sender: No OFD packet to send [09:32:51]OFD Sender: No OFD packet to send [09:32:56]OFD Sender: No OFD packet to send [09:33:01]OFD Sender: No OFD packet to send [09:33:06]OFD Sender: No OFD packet to send [09:33:11]OFD Sender: No OFD packet to send [09:33:16]OFD Sender: No OFD packet to send [09:33:21]OFD Sender: No OFD packet to send [09:33:26]OFD Sender: No OFD packet to send [09:33:31]OFD Sender: No OFD packet to send [09:33:36]OFD Sender: No OFD packet to send [09:33:41]OFD Sender: No OFD packet to send [09:33:46]OFD Sender: No OFD packet to send [09:33:51]OFD Sender: No OFD packet to send [09:33:56]OFD Sender: No OFD packet to send [09:34:01]OFD Sender: No OFD packet to send [09:34:06]accept exits with 9 [09:34:06]New connection [09:34:06]New thread 3066473828 created [09:34:06]Thread 3066617188 joined [09:34:06]Waiting for new connection... [09:34:06] Sock 9.Parse request [09:34:06]Sock 9.Check first char [09:34:06]Sock 9.First char is OK [09:34:06]request: POST /json_proto HTTP/1.0 [09:34:06]Method: POST [09:34:06]URL: /json_proto [09:34:06]Method is POST - this is cgi request [09:34:06]url: /json_proto [09:34:06]query_string will be loaded in cgi processing [09:34:06]execute_cgi json_proto POST (null) [09:34:06]execute_cgi path=json_proto method=POST [09:34:06]POST find Content-Length [09:34:06]Host: 172.17.55.133:8080 [09:34:06]Content-Length: 679 [09:34:06]Content-Type: application/json [09:34:06] [09:34:06]POST finish read [09:34:06]Found Content-Length = 679 [09:34:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 13.280, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:06]execute_script... [09: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)1036106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 13.280, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:06]POST & json_proto [09:34:06]process_json_proto [09:34:06]json parsed OK: [09:34:06]protocol is kg_v1.0 [09:34:06]action value=close_receipt [09:34:06]process_action close_receipt [09:34:06]cmd_close_receipt [09:34:06]MH_GetDate [09:34:06]Write to MH i2c: F0 00 00 B6 5D 02 [09:34:06]Write i2c OK [09:34:06]MH_I2C_Read... [09:34:06]Read from MH i2c: F0 [09:34:06]MH_I2C_Read... [09:34:06]Read from MH i2c: F0 09 00 [09:34:06]MH_I2C_Read... [09:34:06]Read from MH i2c: F0 09 00 B6 5D 00 12 C0 C1 66 34 48 D8 65 BD [09:34:06]GetLastDocTimeStamp 1723973172 [09:34:06]current date 1723973650 [09:34:06]FM_GetShiftState [09:34:06]SAM_PROTO_GetShiftState [09:34:06]wFMCommunicate request_size=4 [09:34:06]MH_SAM_APDU [09:34:06]CAPDU: 80 13 01 00 [09:34:06]Write to MH i2c: E2 08 00 B7 5D 80 13 01 00 00 00 00 00 91 [09:34:06]Write i2c OK [09:34:06]MH_I2C_Read... [09:34:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:06]Read from MH i2c: E2 [09:34:06]MH_I2C_Read... [09:34:06]Read from MH i2c: E2 0E 00 [09:34:06]MH_I2C_Read... [09:34:06]Read from MH i2c: E2 0E 00 B7 5D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 CE [09:34:06]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:34:06]wFMCommunicate OK [09:34:06]SAM_PROTO_GetShiftState done [09:34:06]FM_GetShiftState done [09:34:06]opened in 1723940556 [09:34:06]opened+sec_in_day 1724026956 [09:34:06]quantity*price = 90038 [09:34:06]sum+1 = 90039 [09:34:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 120 18.08.2024 09:34 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260562 ФПД: 19168374444834 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T093410&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260562&fm=19168374444834&tin=02508201610067®Number=0000000000091865&sum=90000 [09:34:07]StoreToDocumentArchive [09:34:07]shift 449 fd 260562 [09:34:07]save to /storage/0449/doc_00260562 [09:34:07]save last doc name /storage/0449/doc_00260562 to /storage/kkm_last_doc_name [09:34:07]save OK [09:34:07]Clear old archive folders... [09:34:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:34:07]tlvbuf is 00387F00 [09:34:07]SAM_PROTO_ClearQueue [09:34:07]wFMCommunicate request_size=4 [09:34:07]MH_SAM_APDU [09:34:07]CAPDU: 80 09 00 00 [09:34:07]Write to MH i2c: E2 08 00 C4 5D 80 09 00 00 00 00 00 00 93 [09:34:07]Write i2c OK [09:34:07]MH_I2C_Read... [09:34:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:34:07]Read from MH i2c: E2 [09:34:07]MH_I2C_Read... [09:34:07]Read from MH i2c: E2 03 00 [09:34:07]MH_I2C_Read... [09:34:07]Read from MH i2c: E2 03 00 C4 5D 00 90 00 95 [09:34:07]RAPDU: 90 00 [09:34:07]wFMCommunicate OK [09:34:07]SAM_PROTO_ClearQueue done [09:34:07]KKMCreateOFDPacket [09:34:07]OFDProtocolAddRootSTLVToBuf [09:34:07]FM_MakeSignedData [09:34:07]FM_MakeSignedData [09:34:07]SAM_PROTO_SignData [09:34:07]wFMCommunicate request_size=4 [09:34:07]MH_SAM_APDU [09:34:07]CAPDU: 80 0D 01 02 [09:34:07]Write to MH i2c: E2 08 00 C5 5D 80 0D 01 02 00 00 00 00 9B [09:34:07]Write i2c OK [09:34:07]MH_I2C_Read... [09:34:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:34:07]Read from MH i2c: E2 [09:34:07]MH_I2C_Read... [09:34:07]Read from MH i2c: E2 03 00 [09:34:07]MH_I2C_Read... [09:34:07]Read from MH i2c: E2 03 00 C5 5D 00 90 00 96 [09:34:07]RAPDU: 90 00 [09:34:07]wFMCommunicate OK [09:34:07]wFMCommunicate request_size=255 [09:34:07]MH_SAM_APDU [09:34:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 12 C0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D2 F9 03 00 35 04 06 00 11 [09:34:07]Write to MH i2c: E2 02 01 C6 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 12 C0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D2 F9 03 00 35 04 06 00 11 00 00 F3 [09:34:07]Write i2c OK [09:34:07]MH_I2C_Read... [09:34:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:07]Read from MH i2c: E2 [09:34:07]MH_I2C_Read... [09:34:07]Read from MH i2c: E2 03 00 [09:34:07]MH_I2C_Read... [09:34:07]Read from MH i2c: E2 03 00 C6 5D 00 90 00 97 [09:34:07]RAPDU: 90 00 [09:34:07]wFMCommunicate OK [09:34:07]wFMCommunicate request_size=10 [09:34:07]MH_SAM_APDU [09:34:07]CAPDU: 80 0D 02 02 05 6E FC 26 53 22 [09:34:07]Write to MH i2c: E2 0D 00 C7 5D 80 0D 02 02 05 00 6E FC 26 53 22 00 00 AD [09:34:07]Write i2c OK [09:34:07]MH_I2C_Read... [09:34:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:07]Read from MH i2c: E2 [09:34:07]MH_I2C_Read... [09:34:07]Read from MH i2c: E2 03 00 [09:34:07]MH_I2C_Read... [09:34:07]Read from MH i2c: E2 03 00 C7 5D 00 90 00 98 [09:34:07]RAPDU: 90 00 [09:34:07]wFMCommunicate OK [09:34:07]wFMCommunicate request_size=4 [09:34:07]MH_SAM_APDU [09:34:07]CAPDU: 80 0D 03 02 [09:34:07]Write to MH i2c: E2 08 00 C8 5D 80 0D 03 02 00 00 00 00 A0 [09:34:07]Write i2c OK [09:34:07]MH_I2C_Read... [09:34:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:34:07]Read from MH i2c: E2 [09:34:07]MH_I2C_Read... [09:34:07]Read from MH i2c: E2 0B 00 [09:34:07]MH_I2C_Read... [09:34:07]Read from MH i2c: E2 0B 00 C8 5D 00 C4 57 98 5D 66 2D DD DF 90 00 00 [09:34:07]RAPDU: C4 57 98 5D 66 2D DD DF 90 00 [09:34:07]wFMCommunicate OK [09:34:07]SAM_PROTO_SignData done [09:34:07]FM_MakeSignedData done [09:34:07]CreateOFDProtocolMessage [09:34:07]wFMCommunicate request_size=4 [09:34:07]MH_SAM_APDU [09:34:07]CAPDU: 80 11 00 00 [09:34:07]Write to MH i2c: E2 08 00 C9 5D 80 11 00 00 00 00 00 00 A0 [09:34:07]Write i2c OK [09:34:07]MH_I2C_Read... [09:34:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:07]Read from MH i2c: E2 [09:34:07]MH_I2C_Read... [09:34:07]Read from MH i2c: E2 17 00 [09:34:07]MH_I2C_Read... [09:34:07]Read from MH i2c: E2 17 00 C9 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 ED [09:34:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:34:07]wFMCommunicate OK [09:34:07]CreateOFDProtocolMessage done [09:34:07]OFDSenderStorePacket 260562 [09:34:07]StoreOFDPacket docnum=260562 [09: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 30 0F 01 00 00 E1 B0 07 01 A7 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 12 C0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D2 F9 03 00 35 04 06 00 11 6E FC 26 53 22 C4 57 98 5D 66 2D DD DF [09:34:07]CheckFolder [09:34:07]dirname=/storage/ofd_packets [09:34:07]CheckFolder done [09:34:07]ProducePacketName [09:34:07]name=ofd_packets/00260562 [09:34:07]NVStorageSaveData ofd_packets/00260562 [09:34:07]File name is /storage/ofd_packets/00260562 [09:34:07]Write 301 bytes [09:34:07]NVStorageSaveData done [09:34:07]OFDSenderStorePacket done [09:34:07]KKMCreateOFDPacket done [09:34:07]NVStorageSaveData kkm_last_timestamp [09:34:07]File name is /storage/kkm_last_timestamp [09:34:07]Write 4 bytes [09:34:07]NVStorageSaveData done [09:34:07]ExternCall_PrintAddStr [09:34:07]wPrintStart [09:34:07]Write to MH i2c: 01 00 00 CA 5D 27 [09:34:07]Write i2c OK [09:34:07]MH_I2C_Read... [09:34:07]Read from MH i2c: 01 [09:34:07]MH_I2C_Read... [09:34:07]Read from MH i2c: 01 07 00 [09:34:07]MH_I2C_Read... [09:34:07]Read from MH i2c: 01 07 00 CA 5D 00 00 00 00 00 FF 0F 3C [09:34:07]RasterBufferAndPrint [09:34:07]line Счет N : (1)1036106 [09:34:07]line ИНН: 02508201610067 [09:34:07]line Контрольно-Кассовый Чек [09:34:07]line ПРОДАЖА [09:34:07]line ТРК (МРК, ГНК) : 22 [09:34:07]line Товар: 2710124130 [09:34:07]line Аи-92-К-5 [09:34:07]line 13.280 * 67.80 [09:34:07]line = 900.38 [09:34:07]line НДС 12% НСП 1% [09:34:07]line > о реализуемом товаре [09:34:07]line ОКРУГЛЕНИЕ: -0.38 [09:34:07]line ИТОГО: 900.00 [09:34:07]line Внесено: 900.00 [09:34:07]line СДАЧА: 0.00 [09:34:07]line НСП 1% : 7.97 [09:34:07]line НДС 12% : 95.62 [09:34:07]line Наличными: 900.00 [09:34:07]line Безнал.: 0.00 [09:34:07]line Место: АЗС № 94 "Партнер Нефть" [09:34:07]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [09:34:07]line СНО: Общий режим [09:34:07]line Чек 120 18.08.2024 09:34 [09:34:07]line Смена: 449 ФФД: 1.0 [09:34:07]line ЗНМ: 0300000099 [09:34:07]line РНМ: 0000000000091865 [09:34:07]line Версия ККМ: 001 [09:34:07]line ФМ: 0000000000871820 [09:34:07]line ФД: 260562 [09:34:07]line ФПД: 19168374444834 [09:34:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T093410&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260562&fm=19168374444834&tin=02508201610067®Number=0000000000091865&sum=90000 [09:34:08]written 0, free lines is 4095 [09:34:08]OFD Sender: Processing packet 260562 [packets to send 192, broken 191] [09:34:08]ProducePacketName [09:34:08]name=ofd_packets/00260562 [09:34:08]OFD Sender: To server: pG, [09:34:08]CommunicateWithHost lk.salyk.kg:30040 [09:34:08]ConnectInit lk.salyk.kg [09:34:08]Connected sock=10 [09: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 30 0F 01 00 00 E1 B0 07 01 A7 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 12 C0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D2 F9 03 00 35 04 06 00 11 6E FC 26 53 22 C4 57 98 5D 66 2D DD DF [09: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 30 4F 00 00 00 90 1F 47 00 F0 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 30 10 04 04 00 D2 F9 03 00 F4 03 04 00 67 69 C1 66 B6 04 01 00 00 F1 1D E1 50 77 12 55 40 [09:34:08]CommunicateWithHost err = 0 [09:34:08]CheckOFDResponse [09:34:08]1017 (14) - 77093643461234 [09:34:08]1041 (16) - 0000000000871820 [09:34:08]1040 (4) - 260562 [09:34:08]1012 (4) - 18.08.2024 03:24 [09:34:08]1206 (1) - 0 [09:34:08]OFD Sender: Remove packet 260562 [09:34:08]ProducePacketName [09:34:08]name=ofd_packets/00260562 [09:34:08]NVStorageDeleteData [09:34:08]Write to MH i2c: 01 00 00 F5 5D 52 [09:34:08]Write i2c OK [09:34:08]MH_I2C_Read... [09:34:08]Read from MH i2c: 01 [09:34:08]MH_I2C_Read... [09:34:08]Read from MH i2c: 01 07 00 [09:34:08]MH_I2C_Read... [09:34:08]Read from MH i2c: 01 07 00 F5 5D 00 00 00 00 00 5F 0C C4 [09:34:08]RasterBufferAndPrint [09:34:08]line [09:34:08]line [09:34:08]line [09:34:08]line [09:34:08]line [09:34:08]written 0, free lines is 3170 [09:34:08]MH_Cut [09:34:08]Write to MH i2c: D1 01 00 FC 5D 01 2B [09:34:08]Write i2c OK [09:34:08]MH_I2C_Read... [09:34:08]Read from MH i2c: D1 [09:34:08]MH_I2C_Read... [09:34:08]Read from MH i2c: D1 01 00 [09:34:08]MH_I2C_Read... [09:34:08]Read from MH i2c: D1 01 00 FC 5D 00 2A [09:34:08]Write to MH i2c: 01 00 00 FD 5D 5A [09:34:08]Write i2c OK [09:34:08]MH_I2C_Read... [09:34:08]OFD Sender: No OFD packet to send [09:34:09]*** Cut start [09:34:09]*** Purtial cut [09:34:09]*** Stage 1: CUTSNS_PIN = 1 [09:34:11]Read from MH i2c: 01 [09:34:11]MH_I2C_Read... [09:34:11]*** Stop cut motor [09:34:11]*** Cut end [09:34:11]Read from MH i2c: 01 07 00 [09:34:11]MH_I2C_Read... [09:34:11]Read from MH i2c: 01 07 00 FD 5D 00 00 00 00 00 FF 0F 6F [09:34:11]process_action close_receipt done [09:34:11]requested_data is exist [09:34:11]produce_requested_data [09:34:11]requested_item fm.sn is exist - process it [09:34:11]wFMCommunicate request_size=4 [09:34:11]MH_SAM_APDU [09:34:11]CAPDU: 80 11 00 00 [09:34:11]Write to MH i2c: E2 08 00 FE 5D 80 11 00 00 00 00 00 00 D5 [09:34:11]Write i2c OK [09:34:11]MH_I2C_Read... [09:34:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:11]Read from MH i2c: E2 [09:34:11]MH_I2C_Read... [09:34:11]Read from MH i2c: E2 17 00 [09:34:11]MH_I2C_Read... [09:34:11]Read from MH i2c: E2 17 00 FE 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 22 [09:34:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:34:11]wFMCommunicate OK [09:34:11]requested_item fd.num is exist - process it [09:34:11]SAM_PROTO_GetFieldsCounters [09:34:11]wFMCommunicate request_size=4 [09:34:11]MH_SAM_APDU [09:34:11]CAPDU: 80 13 00 00 [09:34:11]Write to MH i2c: E2 08 00 FF 5D 80 13 00 00 00 00 00 00 D8 [09:34:11]Write i2c OK [09:34:11]MH_I2C_Read... [09:34:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:34:11]Read from MH i2c: E2 [09:34:11]MH_I2C_Read... [09:34:11]Read from MH i2c: E2 62 00 [09:34:11]MH_I2C_Read... [09:34:11]Read from MH i2c: E2 62 00 FF 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D2 F9 03 00 0E 04 04 00 C1 01 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 EF [09:34: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D2 F9 03 00 0E 04 04 00 C1 01 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 [09:34:11]wFMCommunicate OK [09:34:11]SAM_PROTO_GetFieldsCounters done [09:34:11]requested_item shift.num is exist - process it [09:34:11]requested_item shift.opened is exist - process it [09:34:11]req_shift_opened [09:34:11]FM_GetShiftState [09:34:11]SAM_PROTO_GetShiftState [09:34:11]wFMCommunicate request_size=4 [09:34:11]MH_SAM_APDU [09:34:11]CAPDU: 80 13 01 00 [09:34:11]Write to MH i2c: E2 08 00 00 5E 80 13 01 00 00 00 00 00 DB [09:34:11]Write i2c OK [09:34:11]MH_I2C_Read... [09:34:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:11]Read from MH i2c: E2 [09:34:11]MH_I2C_Read... [09:34:11]Read from MH i2c: E2 0E 00 [09:34:11]MH_I2C_Read... [09:34:11]Read from MH i2c: E2 0E 00 00 5E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 18 [09:34:11]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:34:11]wFMCommunicate OK [09:34:11]SAM_PROTO_GetShiftState done [09:34:11]FM_GetShiftState done [09:34:11]req_shift_opened done [09:34:11]requested_item shift.open_date is exist - process it [09:34:11]req_shift_open_date [09:34:11]req_shift_open_date done [09:34:11]produce_requested_data done [09:34:11]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260562,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [09:34:11]process_action_free close_receipt [09:34:11]json_value_free [09:34:11]json_value_free done [09:34:11]process_json_proto returns [09:34:11]Send response to host [09:34:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260562,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [09:34:11]free response buf [09:34:11]execute_script done [09:34:11]execute_script returns [09:34:11]free content buf [09:34:11]Sock 9.Close socket [09:34:11]Sock 9.Thread stoped [09:34:13]OFD Sender: No OFD packet to send [09:34:18]OFD Sender: No OFD packet to send [09:34:19]accept exits with 7 [09:34:19]New connection [09:34:19]New thread 3066617188 created [09:34:19]Thread 3066473828 joined [09:34:19]Waiting for new connection... [09:34:19] Sock 7.Parse request [09:34:19]Sock 7.Check first char [09:34:19]Sock 7.First char is OK [09:34:19]request: POST /json_proto HTTP/1.0 [09:34:19]Method: POST [09:34:19]URL: /json_proto [09:34:19]Method is POST - this is cgi request [09:34:19]url: /json_proto [09:34:19]query_string will be loaded in cgi processing [09:34:19]execute_cgi json_proto POST (null) [09:34:19]execute_cgi path=json_proto method=POST [09:34:19]POST find Content-Length [09:34:19]Host: 172.17.55.133:8080 [09:34:19]Content-Length: 678 [09:34:19]Content-Type: application/json [09:34:19] [09:34:19]POST finish read [09:34:19]Found Content-Length = 678 [09:34:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:19]execute_script... [09:34: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)1036107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:19]POST & json_proto [09:34:19]process_json_proto [09:34:19]json parsed OK: [09:34:19]protocol is kg_v1.0 [09:34:19]action value=close_receipt [09:34:19]process_action close_receipt [09:34:19]cmd_close_receipt [09:34:19]MH_GetDate [09:34:19]Write to MH i2c: F0 00 00 01 5E 4E [09:34:19]Write i2c OK [09:34:19]MH_I2C_Read... [09:34:19]Read from MH i2c: F0 [09:34:19]MH_I2C_Read... [09:34:19]Read from MH i2c: F0 09 00 [09:34:19]MH_I2C_Read... [09:34:19]Read from MH i2c: F0 09 00 01 5E 00 1F C0 C1 66 34 48 D8 65 16 [09:34:19]GetLastDocTimeStamp 1723973650 [09:34:19]current date 1723973663 [09:34:19]FM_GetShiftState [09:34:19]SAM_PROTO_GetShiftState [09:34:19]wFMCommunicate request_size=4 [09:34:19]MH_SAM_APDU [09:34:19]CAPDU: 80 13 01 00 [09:34:19]Write to MH i2c: E2 08 00 02 5E 80 13 01 00 00 00 00 00 DD [09:34:19]Write i2c OK [09:34:19]MH_I2C_Read... [09:34:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:19]Read from MH i2c: E2 [09:34:19]MH_I2C_Read... [09:34:19]Read from MH i2c: E2 0E 00 [09:34:19]MH_I2C_Read... [09:34:19]Read from MH i2c: E2 0E 00 02 5E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 1A [09:34:19]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:34:19]wFMCommunicate OK [09:34:19]SAM_PROTO_GetShiftState done [09:34:19]FM_GetShiftState done [09:34:19]opened in 1723940556 [09:34:19]opened+sec_in_day 1724026956 [09:34:19]quantity*price = 30035 [09:34:19]sum+1 = 30036 [09:34:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 121 18.08.2024 09:34 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260563 ФПД: 9052217555090 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T093423&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260563&fm=9052217555090&tin=02508201610067®Number=0000000000091865&sum=30000 [09:34:20]StoreToDocumentArchive [09:34:20]shift 449 fd 260563 [09:34:20]save to /storage/0449/doc_00260563 [09:34:20]save last doc name /storage/0449/doc_00260563 to /storage/kkm_last_doc_name [09:34:20]save OK [09:34:20]Clear old archive folders... [09:34:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:34:20]tlvbuf is 00387B20 [09:34:20]SAM_PROTO_ClearQueue [09:34:20]wFMCommunicate request_size=4 [09:34:20]MH_SAM_APDU [09:34:20]CAPDU: 80 09 00 00 [09:34:20]Write to MH i2c: E2 08 00 0F 5E 80 09 00 00 00 00 00 00 DF [09:34:20]Write i2c OK [09:34:20]MH_I2C_Read... [09:34:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:34:20]Read from MH i2c: E2 [09:34:20]MH_I2C_Read... [09:34:20]Read from MH i2c: E2 03 00 [09:34:20]MH_I2C_Read... [09:34:20]Read from MH i2c: E2 03 00 0F 5E 00 90 00 E1 [09:34:20]RAPDU: 90 00 [09:34:20]wFMCommunicate OK [09:34:20]SAM_PROTO_ClearQueue done [09:34:20]KKMCreateOFDPacket [09:34:20]OFDProtocolAddRootSTLVToBuf [09:34:20]FM_MakeSignedData [09:34:20]FM_MakeSignedData [09:34:20]SAM_PROTO_SignData [09:34:20]wFMCommunicate request_size=4 [09:34:20]MH_SAM_APDU [09:34:20]CAPDU: 80 0D 01 02 [09:34:20]Write to MH i2c: E2 08 00 10 5E 80 0D 01 02 00 00 00 00 E7 [09:34:20]Write i2c OK [09:34:20]MH_I2C_Read... [09:34:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:34:20]Read from MH i2c: E2 [09:34:20]MH_I2C_Read... [09:34:20]Read from MH i2c: E2 03 00 [09:34:20]MH_I2C_Read... [09:34:20]Read from MH i2c: E2 03 00 10 5E 00 90 00 E2 [09:34:20]RAPDU: 90 00 [09:34:20]wFMCommunicate OK [09:34:20]wFMCommunicate request_size=255 [09:34:20]MH_SAM_APDU [09:34:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 1F C0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D3 F9 03 00 35 04 06 00 08 [09:34:20]Write to MH i2c: E2 02 01 11 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 1F C0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D3 F9 03 00 35 04 06 00 08 00 00 9B [09:34:20]Write i2c OK [09:34:20]MH_I2C_Read... [09:34:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:20]Read from MH i2c: E2 [09:34:20]MH_I2C_Read... [09:34:20]Read from MH i2c: E2 03 00 [09:34:20]MH_I2C_Read... [09:34:20]Read from MH i2c: E2 03 00 11 5E 00 90 00 E3 [09:34:20]RAPDU: 90 00 [09:34:20]wFMCommunicate OK [09:34:20]wFMCommunicate request_size=10 [09:34:20]MH_SAM_APDU [09:34:20]CAPDU: 80 0D 02 02 05 3B A2 36 38 92 [09:34:20]Write to MH i2c: E2 0D 00 12 5E 80 0D 02 02 05 00 3B A2 36 38 92 00 00 D1 [09:34:20]Write i2c OK [09:34:20]MH_I2C_Read... [09:34:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:20]Read from MH i2c: E2 [09:34:20]MH_I2C_Read... [09:34:20]Read from MH i2c: E2 03 00 [09:34:20]MH_I2C_Read... [09:34:20]Read from MH i2c: E2 03 00 12 5E 00 90 00 E4 [09:34:20]RAPDU: 90 00 [09:34:20]wFMCommunicate OK [09:34:20]wFMCommunicate request_size=4 [09:34:20]MH_SAM_APDU [09:34:20]CAPDU: 80 0D 03 02 [09:34:20]Write to MH i2c: E2 08 00 13 5E 80 0D 03 02 00 00 00 00 EC [09:34:20]Write i2c OK [09:34:20]MH_I2C_Read... [09:34:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:34:20]Read from MH i2c: E2 [09:34:20]MH_I2C_Read... [09:34:20]Read from MH i2c: E2 0B 00 [09:34:20]MH_I2C_Read... [09:34:20]Read from MH i2c: E2 0B 00 13 5E 00 7E 0F 02 AF DB C9 61 DF 90 00 0F [09:34:20]RAPDU: 7E 0F 02 AF DB C9 61 DF 90 00 [09:34:20]wFMCommunicate OK [09:34:20]SAM_PROTO_SignData done [09:34:20]FM_MakeSignedData done [09:34:20]CreateOFDProtocolMessage [09:34:20]wFMCommunicate request_size=4 [09:34:20]MH_SAM_APDU [09:34:20]CAPDU: 80 11 00 00 [09:34:20]Write to MH i2c: E2 08 00 14 5E 80 11 00 00 00 00 00 00 EC [09:34:20]Write i2c OK [09:34:20]MH_I2C_Read... [09:34:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:20]Read from MH i2c: E2 [09:34:20]MH_I2C_Read... [09:34:20]Read from MH i2c: E2 17 00 [09:34:20]MH_I2C_Read... [09:34:20]Read from MH i2c: E2 17 00 14 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 39 [09:34:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:34:20]wFMCommunicate OK [09:34:20]CreateOFDProtocolMessage done [09:34:20]OFDSenderStorePacket 260563 [09:34:20]StoreOFDPacket docnum=260563 [09:34:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 D3 5C 07 01 6D 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 1F C0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D3 F9 03 00 35 04 06 00 08 3B A2 36 38 92 7E 0F 02 AF DB C9 61 DF [09:34:20]CheckFolder [09:34:20]dirname=/storage/ofd_packets [09:34:20]CheckFolder done [09:34:20]ProducePacketName [09:34:20]name=ofd_packets/00260563 [09:34:20]NVStorageSaveData ofd_packets/00260563 [09:34:20]File name is /storage/ofd_packets/00260563 [09:34:20]Write 301 bytes [09:34:20]NVStorageSaveData done [09:34:20]OFDSenderStorePacket done [09:34:20]KKMCreateOFDPacket done [09:34:20]NVStorageSaveData kkm_last_timestamp [09:34:20]File name is /storage/kkm_last_timestamp [09:34:20]Write 4 bytes [09:34:20]NVStorageSaveData done [09:34:20]ExternCall_PrintAddStr [09:34:20]wPrintStart [09:34:20]Write to MH i2c: 01 00 00 15 5E 73 [09:34:20]Write i2c OK [09:34:20]MH_I2C_Read... [09:34:20]Read from MH i2c: 01 [09:34:20]MH_I2C_Read... [09:34:20]Read from MH i2c: 01 07 00 [09:34:20]MH_I2C_Read... [09:34:20]Read from MH i2c: 01 07 00 15 5E 00 00 00 00 00 FF 0F 88 [09:34:20]RasterBufferAndPrint [09:34:20]line Счет N : (1)1036107 [09:34:20]line ИНН: 02508201610067 [09:34:21]line Контрольно-Кассовый Чек [09:34:21]line ПРОДАЖА [09:34:21]line ТРК (МРК, ГНК) : 32 [09:34:21]line Товар: 2710124130 [09:34:21]line Аи-92-К-5 [09:34:21]line 4.430 * 67.80 [09:34:21]line = 300.35 [09:34:21]line НДС 12% НСП 1% [09:34:21]line > о реализуемом товаре [09:34:21]line ОКРУГЛЕНИЕ: -0.35 [09:34:21]line ИТОГО: 300.00 [09:34:21]line Внесено: 300.00 [09:34:21]line СДАЧА: 0.00 [09:34:21]line НСП 1% : 2.66 [09:34:21]line НДС 12% : 31.90 [09:34:21]line Наличными: 300.00 [09:34:21]line Безнал.: 0.00 [09:34:21]line Место: АЗС № 94 "Партнер Нефть" [09:34:21]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [09:34:21]line СНО: Общий режим [09:34:21]line Чек 121 18.08.2024 09:34 [09:34:21]line Смена: 449 ФФД: 1.0 [09:34:21]line ЗНМ: 0300000099 [09:34:21]line РНМ: 0000000000091865 [09:34:21]line Версия ККМ: 001 [09:34:21]line ФМ: 0000000000871820 [09:34:21]line ФД: 260563 [09:34:21]line ФПД: 9052217555090 [09:34:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T093423&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260563&fm=9052217555090&tin=02508201610067®Number=0000000000091865&sum=30000 [09:34:21]written 0, free lines is 4095 [09:34:21]OFD Sender: Processing packet 260563 [packets to send 192, broken 191] [09:34:21]ProducePacketName [09:34:21]name=ofd_packets/00260563 [09:34:21]OFD Sender: To server: pG, [09:34:21]CommunicateWithHost lk.salyk.kg:30040 [09:34:21]ConnectInit lk.salyk.kg [09:34:21]Connected sock=10 [09:34: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 30 0F 01 00 00 D3 5C 07 01 6D 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 1F C0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D3 F9 03 00 35 04 06 00 08 3B A2 36 38 92 7E 0F 02 AF DB C9 61 DF [09:34: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 30 4F 00 00 00 2E E6 47 00 4C 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 30 10 04 04 00 D3 F9 03 00 F4 03 04 00 74 69 C1 66 B6 04 01 00 00 FA C1 3A EC B7 7F 57 79 [09:34:21]CommunicateWithHost err = 0 [09:34:21]CheckOFDResponse [09:34:21]1017 (14) - 77093643461234 [09:34:21]1041 (16) - 0000000000871820 [09:34:21]1040 (4) - 260563 [09:34:21]1012 (4) - 18.08.2024 03:24 [09:34:21]1206 (1) - 0 [09:34:21]OFD Sender: Remove packet 260563 [09:34:21]ProducePacketName [09:34:21]name=ofd_packets/00260563 [09:34:21]NVStorageDeleteData [09:34:21]Write to MH i2c: 01 00 00 40 5E 9E [09:34:21]Write i2c OK [09:34:21]MH_I2C_Read... [09:34:21]Read from MH i2c: 01 [09:34:21]MH_I2C_Read... [09:34:21]Read from MH i2c: 01 07 00 [09:34:21]MH_I2C_Read... [09:34:21]Read from MH i2c: 01 07 00 40 5E 00 00 00 00 00 6C 0C 1D [09:34:21]RasterBufferAndPrint [09:34:21]line [09:34:21]line [09:34:21]line [09:34:21]line [09:34:21]line [09:34:21]written 0, free lines is 3184 [09:34:21]MH_Cut [09:34:21]Write to MH i2c: D1 01 00 47 5E 01 77 [09:34:21]Write i2c OK [09:34:21]MH_I2C_Read... [09:34:21]Read from MH i2c: D1 [09:34:21]MH_I2C_Read... [09:34:21]Read from MH i2c: D1 01 00 [09:34:21]MH_I2C_Read... [09:34:21]Read from MH i2c: D1 01 00 47 5E 00 76 [09:34:21]Write to MH i2c: 01 00 00 48 5E A6 [09:34:21]Write i2c OK [09:34:21]MH_I2C_Read... [09:34:21]OFD Sender: No OFD packet to send [09:34:22]*** Cut start [09:34:22]*** Purtial cut [09:34:22]*** Stage 1: CUTSNS_PIN = 1 [09:34:24]Read from MH i2c: 01 [09:34:24]MH_I2C_Read... [09:34:24]*** Stop cut motor [09:34:24]*** Cut end [09:34:24]Read from MH i2c: 01 07 00 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: 01 07 00 48 5E 00 00 00 00 00 FF 0F BB [09:34:24]process_action close_receipt done [09:34:24]requested_data is exist [09:34:24]produce_requested_data [09:34:24]requested_item fm.sn is exist - process it [09:34:24]wFMCommunicate request_size=4 [09:34:24]MH_SAM_APDU [09:34:24]CAPDU: 80 11 00 00 [09:34:24]Write to MH i2c: E2 08 00 49 5E 80 11 00 00 00 00 00 00 21 [09:34:24]Write i2c OK [09:34:24]MH_I2C_Read... [09:34:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:24]Read from MH i2c: E2 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 17 00 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 17 00 49 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 6E [09:34:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:34:24]wFMCommunicate OK [09:34:24]requested_item fd.num is exist - process it [09:34:24]SAM_PROTO_GetFieldsCounters [09:34:24]wFMCommunicate request_size=4 [09:34:24]MH_SAM_APDU [09:34:24]CAPDU: 80 13 00 00 [09:34:24]Write to MH i2c: E2 08 00 4A 5E 80 13 00 00 00 00 00 00 24 [09:34:24]Write i2c OK [09:34:24]MH_I2C_Read... [09:34:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:34:24]Read from MH i2c: E2 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 62 00 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 62 00 4A 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D3 F9 03 00 0E 04 04 00 C1 01 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 3F [09:34: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D3 F9 03 00 0E 04 04 00 C1 01 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 [09:34:24]wFMCommunicate OK [09:34:24]SAM_PROTO_GetFieldsCounters done [09:34:24]requested_item shift.num is exist - process it [09:34:24]requested_item shift.opened is exist - process it [09:34:24]req_shift_opened [09:34:24]FM_GetShiftState [09:34:24]SAM_PROTO_GetShiftState [09:34:24]wFMCommunicate request_size=4 [09:34:24]MH_SAM_APDU [09:34:24]CAPDU: 80 13 01 00 [09:34:24]Write to MH i2c: E2 08 00 4B 5E 80 13 01 00 00 00 00 00 26 [09:34:24]Write i2c OK [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 [09:34:24]MH_I2C_Read... [09:34:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:24]Read from MH i2c: E2 0E 00 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 0E 00 4B 5E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 63 [09:34:24]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:34:24]wFMCommunicate OK [09:34:24]SAM_PROTO_GetShiftState done [09:34:24]FM_GetShiftState done [09:34:24]req_shift_opened done [09:34:24]requested_item shift.open_date is exist - process it [09:34:24]req_shift_open_date [09:34:24]req_shift_open_date done [09:34:24]produce_requested_data done [09:34:24]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260563,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [09:34:24]process_action_free close_receipt [09:34:24]json_value_free [09:34:24]json_value_free done [09:34:24]process_json_proto returns [09:34:24]Send response to host [09:34:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260563,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [09:34:24]free response buf [09:34:24]execute_script done [09:34:24]execute_script returns [09:34:24]free content buf [09:34:24]Sock 7.Close socket [09:34:24]Sock 7.Thread stoped [09:34:26]OFD Sender: No OFD packet to send [09:34:31]OFD Sender: No OFD packet to send [09:34:36]OFD Sender: No OFD packet to send [09:34:41]OFD Sender: No OFD packet to send [09:34:46]OFD Sender: No OFD packet to send [09:34:51]OFD Sender: No OFD packet to send [09:34:56]accept exits with 9 [09:34:56]New connection [09:34:56]New thread 3066473828 created [09:34:56]Thread 3066617188 joined [09:34:56]Waiting for new connection... [09:34:56] Sock 9.Parse request [09:34:56]Sock 9.Check first char [09:34:56]Sock 9.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.55.133:8080 [09:34:56]Content-Length: 801 [09:34:56]Content-Type: application/json [09:34:56] [09:34:56]POST finish read [09:34:56]Found Content-Length = 801 [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)1036108", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.11 } ] } , "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)1036108", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.11 } ] } , "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 4C 5E 99 [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 4C 5E 00 44 C0 C1 66 34 48 D8 65 86 [09:34:56]GetLastDocTimeStamp 1723973663 [09:34:56]current date 1723973700 [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 4D 5E 80 13 01 00 00 00 00 00 28 [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 4D 5E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 65 [09:34:56]RAPDU: 09 00 01 CC 3E C1 66 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 1723940556 [09:34:56]opened+sec_in_day 1724026956 [09:34:56]quantity*price = 50010 [09:34:56]sum+1 = 50012 [09:34:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 122 18.08.2024 09:35 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260564 ФПД: 210080837153324 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T093500&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260564&fm=210080837153324&tin=02508201610067®Number=0000000000091865&sum=50011 [09:34:57]StoreToDocumentArchive [09:34:57]shift 449 fd 260564 [09:34:57]save to /storage/0449/doc_00260564 [09:34:57]save last doc name /storage/0449/doc_00260564 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 003D0B00 [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 5A 5E 80 09 00 00 00 00 00 00 2A [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 5A 5E 00 90 00 2C [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 5B 5E 80 0D 01 02 00 00 00 00 32 [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 5B 5E 00 90 00 2D [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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 44 C0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D4 F9 03 00 35 04 06 00 BF [09:34:57]Write to MH i2c: E2 02 01 5C 5E 80 0D 02 02 FA 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 44 C0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D4 F9 03 00 35 04 06 00 BF 00 00 A3 [09:34:57]Write i2c OK [09:34:57]MH_I2C_Read... [09:34:57]*** iso7816_exchange 80 0D 02 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 5C 5E 00 90 00 2E [09:34:57]RAPDU: 90 00 [09:34:57]wFMCommunicate OK [09:34:57]wFMCommunicate request_size=10 [09:34:57]MH_SAM_APDU [09:34:57]CAPDU: 80 0D 02 02 05 11 41 AC 32 2C [09:34:57]Write to MH i2c: E2 0D 00 5D 5E 80 0D 02 02 05 00 11 41 AC 32 2C 00 00 9B [09:34:57]Write i2c OK [09:34:57]MH_I2C_Read... [09:34:57]*** iso7816_exchange 80 0D 02 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 5D 5E 00 90 00 2F [09:34:57]RAPDU: 90 00 [09:34:57]wFMCommunicate OK [09:34:57]wFMCommunicate request_size=4 [09:34:57]MH_SAM_APDU [09:34:57]CAPDU: 80 0D 03 02 [09:34:57]Write to MH i2c: E2 08 00 5E 5E 80 0D 03 02 00 00 00 00 37 [09:34:57]Write i2c OK [09:34:57]MH_I2C_Read... [09:34:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:34:57]Read from MH i2c: E2 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: E2 0B 00 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: E2 0B 00 5E 5E 00 77 52 AE 79 5D 50 C1 EF 90 00 85 [09:34:57]RAPDU: 77 52 AE 79 5D 50 C1 EF 90 00 [09:34:57]wFMCommunicate OK [09:34:57]SAM_PROTO_SignData done [09:34:57]FM_MakeSignedData done [09:34:57]CreateOFDProtocolMessage [09:34:57]wFMCommunicate request_size=4 [09:34:57]MH_SAM_APDU [09:34:57]CAPDU: 80 11 00 00 [09:34:57]Write to MH i2c: E2 08 00 5F 5E 80 11 00 00 00 00 00 00 37 [09:34:57]Write i2c OK [09:34:57]MH_I2C_Read... [09:34:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:57]Read from MH i2c: E2 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: E2 17 00 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: E2 17 00 5F 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 84 [09:34:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:34:57]wFMCommunicate OK [09:34:57]CreateOFDProtocolMessage done [09:34:57]OFDSenderStorePacket 260564 [09:34:57]StoreOFDPacket docnum=260564 [09:34:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 AB C0 07 01 6D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 44 C0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D4 F9 03 00 35 04 06 00 BF 11 41 AC 32 2C 77 52 AE 79 5D 50 C1 EF [09:34:57]CheckFolder [09:34:57]dirname=/storage/ofd_packets [09:34:57]CheckFolder done [09:34:57]ProducePacketName [09:34:57]name=ofd_packets/00260564 [09:34:57]NVStorageSaveData ofd_packets/00260564 [09:34:57]File name is /storage/ofd_packets/00260564 [09:34:57]Write 301 bytes [09:34:57]NVStorageSaveData done [09:34:57]OFDSenderStorePacket done [09:34:57]KKMCreateOFDPacket done [09:34:57]NVStorageSaveData kkm_last_timestamp [09:34:57]File name is /storage/kkm_last_timestamp [09:34:57]Write 4 bytes [09:34:57]NVStorageSaveData done [09:34:57]ExternCall_PrintAddStr [09:34:57]wPrintStart [09:34:57]Write to MH i2c: 01 00 00 60 5E BE [09:34:57]Write i2c OK [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: 01 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: 01 07 00 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: 01 07 00 60 5E 00 00 00 00 00 FF 0F D3 [09:34:57]RasterBufferAndPrint [09:34:57]line Счет N : (1)1036108 [09:34:57]line ИНН: 02508201610067 [09:34:57]line Контрольно-Кассовый Чек [09:34:57]line ПРОДАЖА [09:34:57]line ТРК (МРК, ГНК) : 13 [09:34:57]line Товар: 2710124500 [09:34:57]line Аи-95-К-5 [09:34:57]line 6.740 * 74.20 [09:34:57]line = 500.11 [09:34:57]line НДС 12% НСП 1% [09:34:57]line > о реализуемом товаре [09:34:57]line ИТОГО: 500.11 [09:34:57]line НСП 1% : 4.43 [09:34:57]line НДС 12% : 53.11 [09:34:57]line Наличными: 0.00 [09:34:57]line Безнал.: 500.11 [09:34:57]line Место: АЗС № 94 "Партнер Нефть" [09:34:57]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [09:34:57]line СНО: Общий режим [09:34:57]line Чек 122 18.08.2024 09:35 [09:34:57]line Смена: 449 ФФД: 1.0 [09:34:57]line ЗНМ: 0300000099 [09:34:57]line РНМ: 0000000000091865 [09:34:57]line Версия ККМ: 001 [09:34:57]line Платежная система: O! деньги [09:34:57]line ФМ: 0000000000871820 [09:34:57]line ФД: 260564 [09:34:57]line ФПД: 210080837153324 [09:34:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T093500&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260564&fm=210080837153324&tin=02508201610067®Number=0000000000091865&sum=50011 [09:34:57]written 0, free lines is 4095 [09:34:57]OFD Sender: Processing packet 260564 [packets to send 192, broken 191] [09:34:57]ProducePacketName [09:34:57]name=ofd_packets/00260564 [09:34:57]OFD Sender: To server: pG, [09:34:57]CommunicateWithHost lk.salyk.kg:30040 [09:34:57]ConnectInit lk.salyk.kg [09:34:57]Connected sock=10 [09:34: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 30 0F 01 00 00 AB C0 07 01 6D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 44 C0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D4 F9 03 00 35 04 06 00 BF 11 41 AC 32 2C 77 52 AE 79 5D 50 C1 EF [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 30 4F 00 00 00 50 68 47 00 EF 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 30 10 04 04 00 D4 F9 03 00 F4 03 04 00 99 69 C1 66 B6 04 01 00 00 60 68 EB FE 21 41 16 D1 [09:34:58]CommunicateWithHost err = 0 [09:34:58]CheckOFDResponse [09:34:58]1017 (14) - 77093643461234 [09:34:58]1041 (16) - 0000000000871820 [09:34:58]1040 (4) - 260564 [09:34:58]1012 (4) - 18.08.2024 03:25 [09:34:58]1206 (1) - 0 [09:34:58]OFD Sender: Remove packet 260564 [09:34:58]ProducePacketName [09:34:58]name=ofd_packets/00260564 [09:34:58]NVStorageDeleteData [09:34:58]Write to MH i2c: 01 00 00 8A 5E E8 [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 8A 5E 00 00 00 00 00 89 0C 84 [09:34:58]RasterBufferAndPrint [09:34:58]line [09:34:58]line [09:34:58]line [09:34:58]line [09:34:58]line [09:34:58]written 0, free lines is 3213 [09:34:58]MH_Cut [09:34:58]Write to MH i2c: D1 01 00 91 5E 01 C1 [09:34:58]Write i2c OK [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: D1 [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: D1 01 00 [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: D1 01 00 91 5E 00 C0 [09:34:58]Write to MH i2c: 01 00 00 92 5E F0 [09:34:58]Write i2c OK [09:34:58]MH_I2C_Read... [09:34:58]OFD Sender: No OFD packet to send [09:34:59]*** Cut start [09:34:59]*** Purtial cut [09:34:59]*** Stage 1: CUTSNS_PIN = 1 [09:35:01]Read from MH i2c: 01 [09:35:01]MH_I2C_Read... [09:35:01]*** Stop cut motor [09:35:01]*** Cut end [09:35:01]Read from MH i2c: 01 07 00 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: 01 07 00 92 5E 00 00 00 00 00 FF 0F 05 [09:35:01]process_action close_receipt done [09:35:01]requested_data is exist [09:35:01]produce_requested_data [09:35:01]requested_item fm.sn is exist - process it [09:35:01]wFMCommunicate request_size=4 [09:35:01]MH_SAM_APDU [09:35:01]CAPDU: 80 11 00 00 [09:35:01]Write to MH i2c: E2 08 00 93 5E 80 11 00 00 00 00 00 00 6B [09:35:01]Write i2c OK [09:35:01]MH_I2C_Read... [09:35:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:01]Read from MH i2c: E2 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 17 00 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 17 00 93 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B8 [09:35:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:35:01]wFMCommunicate OK [09:35:01]requested_item fd.num is exist - process it [09:35:01]SAM_PROTO_GetFieldsCounters [09:35:01]wFMCommunicate request_size=4 [09:35:01]MH_SAM_APDU [09:35:01]CAPDU: 80 13 00 00 [09:35:01]Write to MH i2c: E2 08 00 94 5E 80 13 00 00 00 00 00 00 6E [09:35:01]Write i2c OK [09:35:01]MH_I2C_Read... [09:35:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:01]Read from MH i2c: E2 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 62 00 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 62 00 94 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D4 F9 03 00 0E 04 04 00 C1 01 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 8D [09:35: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D4 F9 03 00 0E 04 04 00 C1 01 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 [09:35:01]wFMCommunicate OK [09:35:01]SAM_PROTO_GetFieldsCounters done [09:35:01]requested_item shift.num is exist - process it [09:35:01]requested_item shift.opened is exist - process it [09:35:01]req_shift_opened [09:35:01]FM_GetShiftState [09:35:01]SAM_PROTO_GetShiftState [09:35:01]wFMCommunicate request_size=4 [09:35:01]MH_SAM_APDU [09:35:01]CAPDU: 80 13 01 00 [09:35:01]Write to MH i2c: E2 08 00 95 5E 80 13 01 00 00 00 00 00 70 [09:35:01]Write i2c OK [09:35:01]MH_I2C_Read... [09:35:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:01]Read from MH i2c: E2 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 0E 00 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 0E 00 95 5E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 AD [09:35:01]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:35:01]wFMCommunicate OK [09:35:01]SAM_PROTO_GetShiftState done [09:35:01]FM_GetShiftState done [09:35:01]req_shift_opened done [09:35:01]requested_item shift.open_date is exist - process it [09:35:01]req_shift_open_date [09:35:01]req_shift_open_date done [09:35:01]produce_requested_data done [09:35:01]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260564,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [09:35:01]process_action_free close_receipt [09:35:01]json_value_free [09:35:01]json_value_free done [09:35:01]process_json_proto returns [09:35:01]Send response to host [09:35:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260564,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [09:35:01]free response buf [09:35:01]execute_script done [09:35:01]execute_script returns [09:35:01]free content buf [09:35:01]Sock 9.Close socket [09:35:01]Sock 9.Thread stoped [09:35:03]OFD Sender: No OFD packet to send [09:35:08]OFD Sender: No OFD packet to send [09:35:13]OFD Sender: No OFD packet to send [09:35:18]OFD Sender: No OFD packet to send [09:35:23]OFD Sender: No OFD packet to send [09:35:28]OFD Sender: No OFD packet to send [09:35:33]OFD Sender: No OFD packet to send [09:35:38]OFD Sender: No OFD packet to send [09:35:43]OFD Sender: No OFD packet to send [09:35:48]OFD Sender: No OFD packet to send [09:35:53]OFD Sender: No OFD packet to send [09:35:58]OFD Sender: No OFD packet to send [09:36:03]OFD Sender: No OFD packet to send [09:36:08]OFD Sender: No OFD packet to send [09:36:13]OFD Sender: No OFD packet to send [09:36:18]OFD Sender: No OFD packet to send [09:36:23]OFD Sender: No OFD packet to send [09:36:28]OFD Sender: No OFD packet to send [09:36:33]OFD Sender: No OFD packet to send [09:36:38]OFD Sender: No OFD packet to send [09:36:43]OFD Sender: No OFD packet to send [09:36:48]OFD Sender: No OFD packet to send [09:36:53]OFD Sender: No OFD packet to send [09:36:58]OFD Sender: No OFD packet to send [09:37:03]OFD Sender: No OFD packet to send [09:37:08]OFD Sender: No OFD packet to send [09:37:13]OFD Sender: No OFD packet to send [09:37:18]OFD Sender: No OFD packet to send [09:37:23]OFD Sender: No OFD packet to send [09:37:28]OFD Sender: No OFD packet to send [09:37:33]OFD Sender: No OFD packet to send [09:37:38]OFD Sender: No OFD packet to send [09:37:43]OFD Sender: No OFD packet to send [09:37:45]accept exits with 7 [09:37:45]New connection [09:37:45]New thread 3066617188 created [09:37:45]Thread 3066473828 joined [09:37:45]Waiting for new connection... [09:37:45] Sock 7.Parse request [09:37:45]Sock 7.Check first char [09:37:45]Sock 7.First char is OK [09:37:45]request: POST /json_proto HTTP/1.0 [09:37:45]Method: POST [09:37:45]URL: /json_proto [09:37:45]Method is POST - this is cgi request [09:37:45]url: /json_proto [09:37:45]query_string will be loaded in cgi processing [09:37:45]execute_cgi json_proto POST (null) [09:37:45]execute_cgi path=json_proto method=POST [09:37:45]POST find Content-Length [09:37:45]Host: 172.17.55.133:8080 [09:37:45]Content-Length: 683 [09:37:45]Content-Type: application/json [09:37:45] [09:37:45]POST finish read [09:37:45]Found Content-Length = 683 [09:37:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036109", "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" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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:37:45]execute_script... [09:37: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)1036109", "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" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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:37:45]POST & json_proto [09:37:45]process_json_proto [09:37:45]json parsed OK: [09:37:45]protocol is kg_v1.0 [09:37:45]action value=close_receipt [09:37:45]process_action close_receipt [09:37:45]cmd_close_receipt [09:37:45]MH_GetDate [09:37:45]Write to MH i2c: F0 00 00 96 5E E3 [09:37:45]Write i2c OK [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: F0 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: F0 09 00 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: F0 09 00 96 5E 00 ED C0 C1 66 34 48 D8 65 79 [09:37:45]GetLastDocTimeStamp 1723973700 [09:37:45]current date 1723973869 [09:37:45]FM_GetShiftState [09:37:45]SAM_PROTO_GetShiftState [09:37:45]wFMCommunicate request_size=4 [09:37:45]MH_SAM_APDU [09:37:45]CAPDU: 80 13 01 00 [09:37:45]Write to MH i2c: E2 08 00 97 5E 80 13 01 00 00 00 00 00 72 [09:37:45]Write i2c OK [09:37:45]MH_I2C_Read... [09:37:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:45]Read from MH i2c: E2 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 0E 00 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 0E 00 97 5E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 AF [09:37:45]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:37:45]wFMCommunicate OK [09:37:45]SAM_PROTO_GetShiftState done [09:37:45]FM_GetShiftState done [09:37:45]opened in 1723940556 [09:37:45]opened+sec_in_day 1724026956 [09:37:45]quantity*price = 150032 [09:37:45]sum+1 = 150033 [09:37:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 123 18.08.2024 09:37 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260565 ФПД: 254396270737488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T093749&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260565&fm=254396270737488&tin=02508201610067®Number=0000000000091865&sum=150000 [09:37:47]StoreToDocumentArchive [09:37:47]shift 449 fd 260565 [09:37:47]save to /storage/0449/doc_00260565 [09:37:47]save last doc name /storage/0449/doc_00260565 to /storage/kkm_last_doc_name [09:37:47]save OK [09:37:47]Clear old archive folders... [09:37:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:37:47]tlvbuf is 00350040 [09:37:47]SAM_PROTO_ClearQueue [09:37:47]wFMCommunicate request_size=4 [09:37:47]MH_SAM_APDU [09:37:47]CAPDU: 80 09 00 00 [09:37:47]Write to MH i2c: E2 08 00 A4 5E 80 09 00 00 00 00 00 00 74 [09:37:47]Write i2c OK [09:37:47]MH_I2C_Read... [09:37:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:47]Read from MH i2c: E2 [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: E2 03 00 [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: E2 03 00 A4 5E 00 90 00 76 [09:37:47]RAPDU: 90 00 [09:37:47]wFMCommunicate OK [09:37:47]SAM_PROTO_ClearQueue done [09:37:47]KKMCreateOFDPacket [09:37:47]OFDProtocolAddRootSTLVToBuf [09:37:47]FM_MakeSignedData [09:37:47]FM_MakeSignedData [09:37:47]SAM_PROTO_SignData [09:37:47]wFMCommunicate request_size=4 [09:37:47]MH_SAM_APDU [09:37:47]CAPDU: 80 0D 01 02 [09:37:47]Write to MH i2c: E2 08 00 A5 5E 80 0D 01 02 00 00 00 00 7C [09:37:47]Write i2c OK [09:37:47]MH_I2C_Read... [09:37:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:47]Read from MH i2c: E2 [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: E2 03 00 [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: E2 03 00 A5 5E 00 90 00 77 [09:37:47]RAPDU: 90 00 [09:37:47]wFMCommunicate OK [09:37:47]wFMCommunicate request_size=255 [09:37:47]MH_SAM_APDU [09:37:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 7B 00 00 00 F4 03 04 00 ED C0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D5 F9 03 00 35 04 06 00 E7 [09:37:47]Write to MH i2c: E2 02 01 A6 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 7B 00 00 00 F4 03 04 00 ED C0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D5 F9 03 00 35 04 06 00 E7 00 00 35 [09:37:47]Write i2c OK [09:37:47]MH_I2C_Read... [09:37:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:47]Read from MH i2c: E2 [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: E2 03 00 [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: E2 03 00 A6 5E 00 90 00 78 [09:37:47]RAPDU: 90 00 [09:37:47]wFMCommunicate OK [09:37:47]wFMCommunicate request_size=10 [09:37:47]MH_SAM_APDU [09:37:47]CAPDU: 80 0D 02 02 05 5F 3F 59 78 50 [09:37:47]Write to MH i2c: E2 0D 00 A7 5E 80 0D 02 02 05 00 5F 3F 59 78 50 00 00 48 [09:37:47]Write i2c OK [09:37:47]MH_I2C_Read... [09:37:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:47]Read from MH i2c: E2 [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: E2 03 00 [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: E2 03 00 A7 5E 00 90 00 79 [09:37:47]RAPDU: 90 00 [09:37:47]wFMCommunicate OK [09:37:47]wFMCommunicate request_size=4 [09:37:47]MH_SAM_APDU [09:37:47]CAPDU: 80 0D 03 02 [09:37:47]Write to MH i2c: E2 08 00 A8 5E 80 0D 03 02 00 00 00 00 81 [09:37:47]Write i2c OK [09:37:47]MH_I2C_Read... [09:37:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:47]Read from MH i2c: E2 [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: E2 0B 00 [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: E2 0B 00 A8 5E 00 76 09 D3 B8 08 B6 9D 90 90 00 77 [09:37:47]RAPDU: 76 09 D3 B8 08 B6 9D 90 90 00 [09:37:47]wFMCommunicate OK [09:37:47]SAM_PROTO_SignData done [09:37:47]FM_MakeSignedData done [09:37:47]CreateOFDProtocolMessage [09:37:47]wFMCommunicate request_size=4 [09:37:47]MH_SAM_APDU [09:37:47]CAPDU: 80 11 00 00 [09:37:47]Write to MH i2c: E2 08 00 A9 5E 80 11 00 00 00 00 00 00 81 [09:37:47]Write i2c OK [09:37:47]MH_I2C_Read... [09:37:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:47]Read from MH i2c: E2 [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: E2 17 00 [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: E2 17 00 A9 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 CE [09:37:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:37:47]wFMCommunicate OK [09:37:47]CreateOFDProtocolMessage done [09:37:47]OFDSenderStorePacket 260565 [09:37:47]StoreOFDPacket docnum=260565 [09:37:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 95 D5 07 01 68 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 7B 00 00 00 F4 03 04 00 ED C0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D5 F9 03 00 35 04 06 00 E7 5F 3F 59 78 50 76 09 D3 B8 08 B6 9D 90 [09:37:47]CheckFolder [09:37:47]dirname=/storage/ofd_packets [09:37:47]CheckFolder done [09:37:47]ProducePacketName [09:37:47]name=ofd_packets/00260565 [09:37:47]NVStorageSaveData ofd_packets/00260565 [09:37:47]File name is /storage/ofd_packets/00260565 [09:37:47]Write 301 bytes [09:37:47]NVStorageSaveData done [09:37:47]OFDSenderStorePacket done [09:37:47]KKMCreateOFDPacket done [09:37:47]NVStorageSaveData kkm_last_timestamp [09:37:47]File name is /storage/kkm_last_timestamp [09:37:47]Write 4 bytes [09:37:47]NVStorageSaveData done [09:37:47]ExternCall_PrintAddStr [09:37:47]wPrintStart [09:37:47]Write to MH i2c: 01 00 00 AA 5E 08 [09:37:47]Write i2c OK [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: 01 [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: 01 07 00 [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: 01 07 00 AA 5E 00 00 00 00 00 FF 0F 1D [09:37:47]RasterBufferAndPrint [09:37:47]line Счет N : (1)1036109 [09:37:47]line ИНН: 02508201610067 [09:37:47]line Контрольно-Кассовый Чек [09:37:47]line ПРОДАЖА [09:37:47]line ТРК (МРК, ГНК) : 13 [09:37:47]line Товар: 2710124500 [09:37:47]line Аи-95-К-5 [09:37:47]line 20.220 * 74.20 [09:37:47]line = 1500.32 [09:37:47]line НДС 12% НСП 1% [09:37:47]line > о реализуемом товаре [09:37:47]line ОКРУГЛЕНИЕ: -0.32 [09:37:47]line ИТОГО: 1500.00 [09:37:47]line Внесено: 1500.00 [09:37:47]line СДАЧА: 0.00 [09:37:47]line НСП 1% : 13.28 [09:37:47]line НДС 12% : 159.33 [09:37:47]line Наличными: 1500.00 [09:37:47]line Безнал.: 0.00 [09:37:47]line Место: АЗС № 94 "Партнер Нефть" [09:37:47]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [09:37:47]line СНО: Общий режим [09:37:47]line Чек 123 18.08.2024 09:37 [09:37:47]line Смена: 449 ФФД: 1.0 [09:37:47]line ЗНМ: 0300000099 [09:37:47]line РНМ: 0000000000091865 [09:37:47]line Версия ККМ: 001 [09:37:47]line ФМ: 0000000000871820 [09:37:47]line ФД: 260565 [09:37:47]line ФПД: 254396270737488 [09:37:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T093749&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260565&fm=254396270737488&tin=02508201610067®Number=0000000000091865&sum=150000 [09:37:47]OFD Sender: Processing packet 260565 [packets to send 192, broken 191] [09:37:47]ProducePacketName [09:37:47]name=ofd_packets/00260565 [09:37:47]OFD Sender: To server: pG, [09:37:47]CommunicateWithHost lk.salyk.kg:30040 [09:37:47]ConnectInit lk.salyk.kg [09:37:47]written 0, free lines is 4095 [09:37:48]Connected sock=10 [09:37: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 30 0F 01 00 00 95 D5 07 01 68 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 7B 00 00 00 F4 03 04 00 ED C0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D5 F9 03 00 35 04 06 00 E7 5F 3F 59 78 50 76 09 D3 B8 08 B6 9D 90 [09:37: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 30 4F 00 00 00 A5 07 47 00 74 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D5 F9 03 00 F4 03 04 00 43 6A C1 66 B6 04 01 00 00 07 E9 44 88 DE 9D 9A D9 [09:37:48]CommunicateWithHost err = 0 [09:37:48]CheckOFDResponse [09:37:48]1017 (14) - 77093643461234 [09:37:48]1041 (16) - 0000000000871820 [09:37:48]1040 (4) - 260565 [09:37:48]1012 (4) - 18.08.2024 03:28 [09:37:48]1206 (1) - 0 [09:37:48]OFD Sender: Remove packet 260565 [09:37:48]ProducePacketName [09:37:48]name=ofd_packets/00260565 [09:37:48]NVStorageDeleteData [09:37:48]Write to MH i2c: 01 00 00 D5 5E 33 [09:37:48]Write i2c OK [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: 01 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: 01 07 00 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: 01 07 00 D5 5E 00 00 00 00 00 62 0C A8 [09:37:48]RasterBufferAndPrint [09:37:48]line [09:37:48]line [09:37:48]line [09:37:48]line [09:37:48]line [09:37:48]written 0, free lines is 3174 [09:37:48]MH_Cut [09:37:48]Write to MH i2c: D1 01 00 DC 5E 01 0C [09:37:48]Write i2c OK [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: D1 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: D1 01 00 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: D1 01 00 DC 5E 00 0B [09:37:48]Write to MH i2c: 01 00 00 DD 5E 3B [09:37:48]Write i2c OK [09:37:48]MH_I2C_Read... [09:37:48]OFD Sender: No OFD packet to send [09:37:49]*** Cut start [09:37:49]*** Purtial cut [09:37:49]*** Stage 1: CUTSNS_PIN = 1 [09:37:51]Read from MH i2c: 01 [09:37:51]MH_I2C_Read... [09:37:51]*** Stop cut motor [09:37:51]*** Cut end [09:37:51]Read from MH i2c: 01 07 00 [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: 01 07 00 DD 5E 00 00 00 00 00 FF 0F 50 [09:37:51]process_action close_receipt done [09:37:51]requested_data is exist [09:37:51]produce_requested_data [09:37:51]requested_item fm.sn is exist - process it [09:37:51]wFMCommunicate request_size=4 [09:37:51]MH_SAM_APDU [09:37:51]CAPDU: 80 11 00 00 [09:37:51]Write to MH i2c: E2 08 00 DE 5E 80 11 00 00 00 00 00 00 B6 [09:37:51]Write i2c OK [09:37:51]MH_I2C_Read... [09:37:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:51]Read from MH i2c: E2 [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: E2 17 00 [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: E2 17 00 DE 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 03 [09:37:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:37:51]wFMCommunicate OK [09:37:51]requested_item fd.num is exist - process it [09:37:51]SAM_PROTO_GetFieldsCounters [09:37:51]wFMCommunicate request_size=4 [09:37:51]MH_SAM_APDU [09:37:51]CAPDU: 80 13 00 00 [09:37:51]Write to MH i2c: E2 08 00 DF 5E 80 13 00 00 00 00 00 00 B9 [09:37:51]Write i2c OK [09:37:51]MH_I2C_Read... [09:37:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:51]Read from MH i2c: E2 [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: E2 62 00 [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: E2 62 00 DF 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D5 F9 03 00 0E 04 04 00 C1 01 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 DC [09:37: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D5 F9 03 00 0E 04 04 00 C1 01 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 [09:37:51]wFMCommunicate OK [09:37:51]SAM_PROTO_GetFieldsCounters done [09:37:51]requested_item shift.num is exist - process it [09:37:51]requested_item shift.opened is exist - process it [09:37:51]req_shift_opened [09:37:51]FM_GetShiftState [09:37:51]SAM_PROTO_GetShiftState [09:37:51]wFMCommunicate request_size=4 [09:37:51]MH_SAM_APDU [09:37:51]CAPDU: 80 13 01 00 [09:37:51]Write to MH i2c: E2 08 00 E0 5E 80 13 01 00 00 00 00 00 BB [09:37:51]Write i2c OK [09:37:51]MH_I2C_Read... [09:37:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:51]Read from MH i2c: E2 [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: E2 0E 00 [09:37:51]MH_I2C_Read... [09:37:51]Read from MH i2c: E2 0E 00 E0 5E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F8 [09:37:51]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:37:51]wFMCommunicate OK [09:37:51]SAM_PROTO_GetShiftState done [09:37:51]FM_GetShiftState done [09:37:51]req_shift_opened done [09:37:51]requested_item shift.open_date is exist - process it [09:37:51]req_shift_open_date [09:37:51]req_shift_open_date done [09:37:51]produce_requested_data done [09:37:51]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260565,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [09:37:51]process_action_free close_receipt [09:37:51]json_value_free [09:37:51]json_value_free done [09:37:51]process_json_proto returns [09:37:51]Send response to host [09:37:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260565,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [09:37:51]free response buf [09:37:51]execute_script done [09:37:51]execute_script returns [09:37:51]free content buf [09:37:51]Sock 7.Close socket [09:37:51]Sock 7.Thread stoped [09:37:53]OFD Sender: No OFD packet to send [09:37:58]OFD Sender: No OFD packet to send [09:38:03]OFD Sender: No OFD packet to send [09:38:08]OFD Sender: No OFD packet to send [09:38:13]OFD Sender: No OFD packet to send [09:38:18]OFD Sender: No OFD packet to send [09:38:23]OFD Sender: No OFD packet to send [09:38:28]OFD Sender: No OFD packet to send [09:38:33]OFD Sender: No OFD packet to send [09:38:38]OFD Sender: No OFD packet to send [09:38:43]OFD Sender: No OFD packet to send [09:38:48]OFD Sender: No OFD packet to send [09:38:53]OFD Sender: No OFD packet to send [09:38:58]OFD Sender: No OFD packet to send [09:39:03]OFD Sender: No OFD packet to send [09:39:08]OFD Sender: No OFD packet to send [09:39:13]OFD Sender: No OFD packet to send [09:39:18]OFD Sender: No OFD packet to send [09:39:23]OFD Sender: No OFD packet to send [09:39:28]OFD Sender: No OFD packet to send [09:39:33]OFD Sender: No OFD packet to send [09:39:38]OFD Sender: No OFD packet to send [09:39:43]OFD Sender: No OFD packet to send [09:39:48]OFD Sender: No OFD packet to send [09:39:53]OFD Sender: No OFD packet to send [09:39:58]OFD Sender: No OFD packet to send [09:40:03]OFD Sender: No OFD packet to send [09:40:08]OFD Sender: No OFD packet to send [09:40:13]OFD Sender: No OFD packet to send [09:40:18]OFD Sender: No OFD packet to send [09:40:23]OFD Sender: No OFD packet to send [09:40:28]OFD Sender: No OFD packet to send [09:40:33]OFD Sender: No OFD packet to send [09:40:38]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:56]accept exits with 9 [09:40:56]New connection [09:40:56]New thread 3066473828 created [09:40:56]Thread 3066617188 joined [09:40:56]Waiting for new connection... [09:40:56] Sock 9.Parse request [09:40:56]Sock 9.Check first char [09:40:56]Sock 9.First char is OK [09:40:56]request: POST /json_proto HTTP/1.0 [09:40:56]Method: POST [09:40:56]URL: /json_proto [09:40:56]Method is POST - this is cgi request [09:40:56]url: /json_proto [09:40:56]query_string will be loaded in cgi processing [09:40:56]execute_cgi json_proto POST (null) [09:40:56]execute_cgi path=json_proto method=POST [09:40:56]POST find Content-Length [09:40:56]Host: 172.17.55.133:8080 [09:40:56]Content-Length: 683 [09:40:56]Content-Type: application/json [09:40:56] [09:40:56]POST finish read [09:40:56]Found Content-Length = 683 [09:40:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036110", "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" : 74.20, "quantity" : 50.870, "sum" : 3774.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 3774.00, "payments": [ { "type": 0, "sum" : 3774.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:56]execute_script... [09: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)1036110", "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" : 74.20, "quantity" : 50.870, "sum" : 3774.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 3774.00, "payments": [ { "type": 0, "sum" : 3774.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:56]POST & json_proto [09:40:56]process_json_proto [09:40:56]json parsed OK: [09:40:56]protocol is kg_v1.0 [09:40:56]action value=close_receipt [09:40:56]process_action close_receipt [09:40:56]cmd_close_receipt [09:40:56]MH_GetDate [09:40:56]Write to MH i2c: F0 00 00 E1 5E 2E [09:40:56]Write i2c OK [09:40:56]MH_I2C_Read... [09:40:56]Read from MH i2c: F0 [09:40:56]MH_I2C_Read... [09:40:56]Read from MH i2c: F0 09 00 [09:40:56]MH_I2C_Read... [09:40:56]Read from MH i2c: F0 09 00 E1 5E 00 AC C1 C1 66 34 48 D8 65 84 [09:40:56]GetLastDocTimeStamp 1723973869 [09:40:56]current date 1723974060 [09:40:56]FM_GetShiftState [09:40:56]SAM_PROTO_GetShiftState [09:40:56]wFMCommunicate request_size=4 [09:40:56]MH_SAM_APDU [09:40:56]CAPDU: 80 13 01 00 [09:40:56]Write to MH i2c: E2 08 00 E2 5E 80 13 01 00 00 00 00 00 BD [09:40:56]Write i2c OK [09:40:56]MH_I2C_Read... [09:40:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:56]Read from MH i2c: E2 [09:40:56]MH_I2C_Read... [09:40:56]Read from MH i2c: E2 0E 00 [09:40:56]MH_I2C_Read... [09:40:56]Read from MH i2c: E2 0E 00 E2 5E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 FA [09:40:56]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:40:56]wFMCommunicate OK [09:40:56]SAM_PROTO_GetShiftState done [09:40:56]FM_GetShiftState done [09:40:56]opened in 1723940556 [09:40:56]opened+sec_in_day 1724026956 [09:40:56]quantity*price = 377455 [09:40:56]sum+1 = 377456 [09:40:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 3774.00 Внесено: 6000.00 СДАЧА: 2226.00 НСП 1% : 33.40 НДС 12% : 400.84 Наличными: 3774.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 124 18.08.2024 09:41 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260566 ФПД: 69168977047107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T094100&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260566&fm=69168977047107&tin=02508201610067®Number=0000000000091865&sum=377400 [09:40:57]StoreToDocumentArchive [09:40:57]shift 449 fd 260566 [09:40:57]save to /storage/0449/doc_00260566 [09:40:57]save last doc name /storage/0449/doc_00260566 to /storage/kkm_last_doc_name [09:40:57]save OK [09:40:57]Clear old archive folders... [09:40:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:40:57]tlvbuf is 0036F1B0 [09:40:57]SAM_PROTO_ClearQueue [09:40:57]wFMCommunicate request_size=4 [09:40:57]MH_SAM_APDU [09:40:57]CAPDU: 80 09 00 00 [09:40:57]Write to MH i2c: E2 08 00 EF 5E 80 09 00 00 00 00 00 00 BF [09:40:57]Write i2c OK [09:40:57]MH_I2C_Read... [09:40:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:57]Read from MH i2c: E2 [09:40:57]MH_I2C_Read... [09:40:57]Read from MH i2c: E2 03 00 [09:40:57]MH_I2C_Read... [09:40:57]Read from MH i2c: E2 03 00 EF 5E 00 90 00 C1 [09:40:57]RAPDU: 90 00 [09:40:57]wFMCommunicate OK [09:40:57]SAM_PROTO_ClearQueue done [09:40:57]KKMCreateOFDPacket [09:40:57]OFDProtocolAddRootSTLVToBuf [09:40:57]FM_MakeSignedData [09:40:57]FM_MakeSignedData [09:40:57]SAM_PROTO_SignData [09:40:57]wFMCommunicate request_size=4 [09:40:57]MH_SAM_APDU [09:40:57]CAPDU: 80 0D 01 02 [09:40:57]Write to MH i2c: E2 08 00 F0 5E 80 0D 01 02 00 00 00 00 C7 [09:40:57]Write i2c OK [09:40:57]MH_I2C_Read... [09:40:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:57]Read from MH i2c: E2 [09:40:57]MH_I2C_Read... [09:40:57]Read from MH i2c: E2 03 00 [09:40:57]MH_I2C_Read... [09:40:57]Read from MH i2c: E2 03 00 F0 5E 00 90 00 C2 [09:40:57]RAPDU: 90 00 [09:40:57]wFMCommunicate OK [09:40:57]wFMCommunicate request_size=255 [09:40:57]MH_SAM_APDU [09:40:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B6 C6 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6F C2 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C2 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 9C 00 00 00 00 07 04 06 00 38 C2 05 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 AC C1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D6 F9 03 00 35 04 06 00 3E [09:40:57]Write to MH i2c: E2 02 01 F1 5E 80 0D 02 02 FA 00 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 C6 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6F C2 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C2 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 9C 00 00 00 00 07 04 06 00 38 C2 05 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 AC C1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D6 F9 03 00 35 04 06 00 3E 00 00 C6 [09:40:57]Write i2c OK [09:40:57]MH_I2C_Read... [09:40:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:57]Read from MH i2c: E2 [09:40:57]MH_I2C_Read... [09:40:57]Read from MH i2c: E2 03 00 [09:40:57]MH_I2C_Read... [09:40:57]Read from MH i2c: E2 03 00 F1 5E 00 90 00 C3 [09:40:57]RAPDU: 90 00 [09:40:57]wFMCommunicate OK [09:40:57]wFMCommunicate request_size=10 [09:40:57]MH_SAM_APDU [09:40:57]CAPDU: 80 0D 02 02 05 E8 A8 4E 6E 43 [09:40:57]Write to MH i2c: E2 0D 00 F2 5E 80 0D 02 02 05 00 E8 A8 4E 6E 43 00 00 63 [09:40:57]Write i2c OK [09:40:57]MH_I2C_Read... [09:40:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:57]Read from MH i2c: E2 [09:40:57]MH_I2C_Read... [09:40:57]Read from MH i2c: E2 03 00 [09:40:57]MH_I2C_Read... [09:40:57]Read from MH i2c: E2 03 00 F2 5E 00 90 00 C4 [09:40:57]RAPDU: 90 00 [09:40:57]wFMCommunicate OK [09:40:57]wFMCommunicate request_size=4 [09:40:57]MH_SAM_APDU [09:40:57]CAPDU: 80 0D 03 02 [09:40:57]Write to MH i2c: E2 08 00 F3 5E 80 0D 03 02 00 00 00 00 CC [09:40:57]Write i2c OK [09:40:57]MH_I2C_Read... [09:40:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:58]Read from MH i2c: E2 [09:40:58]MH_I2C_Read... [09:40:58]Read from MH i2c: E2 0B 00 [09:40:58]MH_I2C_Read... [09:40:58]Read from MH i2c: E2 0B 00 F3 5E 00 3A 52 4C 0C B4 AA C4 F8 90 00 CB [09:40:58]RAPDU: 3A 52 4C 0C B4 AA C4 F8 90 00 [09:40:58]wFMCommunicate OK [09:40:58]SAM_PROTO_SignData done [09:40:58]FM_MakeSignedData done [09:40:58]CreateOFDProtocolMessage [09:40:58]wFMCommunicate request_size=4 [09:40:58]MH_SAM_APDU [09:40:58]CAPDU: 80 11 00 00 [09:40:58]Write to MH i2c: E2 08 00 F4 5E 80 11 00 00 00 00 00 00 CC [09:40:58]Write i2c OK [09:40:58]MH_I2C_Read... [09:40:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:58]Read from MH i2c: E2 [09:40:58]MH_I2C_Read... [09:40:58]Read from MH i2c: E2 17 00 [09:40:58]MH_I2C_Read... [09:40:58]Read from MH i2c: E2 17 00 F4 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 19 [09:40:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:40:58]wFMCommunicate OK [09:40:58]CreateOFDProtocolMessage done [09:40:58]OFDSenderStorePacket 260566 [09:40:58]StoreOFDPacket docnum=260566 [09: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 30 0F 01 00 00 7B 38 07 01 BC 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 B6 C6 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6F C2 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C2 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 9C 00 00 00 00 07 04 06 00 38 C2 05 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 AC C1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D6 F9 03 00 35 04 06 00 3E E8 A8 4E 6E 43 3A 52 4C 0C B4 AA C4 F8 [09:40:58]CheckFolder [09:40:58]dirname=/storage/ofd_packets [09:40:58]CheckFolder done [09:40:58]ProducePacketName [09:40:58]name=ofd_packets/00260566 [09:40:58]NVStorageSaveData ofd_packets/00260566 [09:40:58]File name is /storage/ofd_packets/00260566 [09:40:58]Write 301 bytes [09:40:58]NVStorageSaveData done [09:40:58]OFDSenderStorePacket done [09:40:58]KKMCreateOFDPacket done [09:40:58]NVStorageSaveData kkm_last_timestamp [09:40:58]File name is /storage/kkm_last_timestamp [09:40:58]Write 4 bytes [09:40:58]NVStorageSaveData done [09:40:58]ExternCall_PrintAddStr [09:40:58]wPrintStart [09:40:58]Write to MH i2c: 01 00 00 F5 5E 53 [09:40:58]Write i2c OK [09:40:58]MH_I2C_Read... [09:40:58]Read from MH i2c: 01 [09:40:58]MH_I2C_Read... [09:40:58]Read from MH i2c: 01 07 00 [09:40:58]MH_I2C_Read... [09:40:58]Read from MH i2c: 01 07 00 F5 5E 00 00 00 00 00 FF 0F 68 [09:40:58]RasterBufferAndPrint [09:40:58]line Счет N : (1)1036110 [09:40:58]line ИНН: 02508201610067 [09:40:58]line Контрольно-Кассовый Чек [09:40:58]line ПРОДАЖА [09:40:58]line ТРК (МРК, ГНК) : 23 [09:40:58]line Товар: 2710124500 [09:40:58]line Аи-95-К-5 [09:40:58]line 50.870 * 74.20 [09:40:58]line = 3774.55 [09:40:58]line НДС 12% НСП 1% [09:40:58]line > о реализуемом товаре [09:40:58]line ОКРУГЛЕНИЕ: -0.55 [09:40:58]line ИТОГО: 3774.00 [09:40:58]line Внесено: 6000.00 [09:40:58]line СДАЧА: 2226.00 [09:40:58]line НСП 1% : 33.40 [09:40:58]line НДС 12% : 400.84 [09:40:58]line Наличными: 3774.00 [09:40:58]line Безнал.: 0.00 [09:40:58]line Место: АЗС № 94 "Партнер Нефть" [09:40:58]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [09:40:58]line СНО: Общий режим [09:40:58]line Чек 124 18.08.2024 09:41 [09:40:58]line Смена: 449 ФФД: 1.0 [09:40:58]line ЗНМ: 0300000099 [09:40:58]line РНМ: 0000000000091865 [09:40:58]line Версия ККМ: 001 [09:40:58]line ФМ: 0000000000871820 [09:40:58]line ФД: 260566 [09:40:58]line ФПД: 69168977047107 [09:40:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T094100&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260566&fm=69168977047107&tin=02508201610067®Number=0000000000091865&sum=377400 [09:40:58]OFD Sender: Processing packet 260566 [packets to send 192, broken 191] [09:40:58]ProducePacketName [09:40:58]name=ofd_packets/00260566 [09:40:58]OFD Sender: To server: pG, [09:40:58]CommunicateWithHost lk.salyk.kg:30040 [09:40:58]ConnectInit lk.salyk.kg [09:40:58]written 0, free lines is 4095 [09:40:58]Connected sock=10 [09: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 30 0F 01 00 00 7B 38 07 01 BC 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 B6 C6 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6F C2 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C2 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 9C 00 00 00 00 07 04 06 00 38 C2 05 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 AC C1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D6 F9 03 00 35 04 06 00 3E E8 A8 4E 6E 43 3A 52 4C 0C B4 AA C4 F8 [09: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 30 4F 00 00 00 70 1B 47 00 4E 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D6 F9 03 00 F4 03 04 00 02 6B C1 66 B6 04 01 00 00 71 80 99 57 63 1D BF FC [09:40:58]CommunicateWithHost err = 0 [09:40:58]CheckOFDResponse [09:40:58]1017 (14) - 77093643461234 [09:40:58]1041 (16) - 0000000000871820 [09:40:58]1040 (4) - 260566 [09:40:58]1012 (4) - 18.08.2024 03:31 [09:40:58]1206 (1) - 0 [09:40:58]OFD Sender: Remove packet 260566 [09:40:58]ProducePacketName [09:40:58]name=ofd_packets/00260566 [09:40:58]NVStorageDeleteData [09:40:58]Write to MH i2c: 01 00 00 20 5F 7F [09:40:58]Write i2c OK [09:40:58]MH_I2C_Read... [09:40:58]Read from MH i2c: 01 [09:40:58]MH_I2C_Read... [09:40:58]Read from MH i2c: 01 07 00 [09:40:58]MH_I2C_Read... [09:40:58]Read from MH i2c: 01 07 00 20 5F 00 00 00 00 00 75 0C 07 [09:40:58]RasterBufferAndPrint [09:40:58]line [09:40:58]line [09:40:58]line [09:40:58]line [09:40:58]line [09:40:58]written 0, free lines is 3192 [09:40:58]MH_Cut [09:40:58]Write to MH i2c: D1 01 00 27 5F 01 58 [09:40:58]Write i2c OK [09:40:58]MH_I2C_Read... [09:40:58]Read from MH i2c: D1 [09:40:58]MH_I2C_Read... [09:40:58]Read from MH i2c: D1 01 00 [09:40:58]MH_I2C_Read... [09:40:58]Read from MH i2c: D1 01 00 27 5F 00 57 [09:40:58]Write to MH i2c: 01 00 00 28 5F 87 [09:40:58]Write i2c OK [09:40:58]MH_I2C_Read... [09:40:59]OFD Sender: No OFD packet to send [09:41:00]*** Cut start [09:41:00]*** Purtial cut [09:41:00]*** Stage 1: CUTSNS_PIN = 1 [09:41:02]Read from MH i2c: 01 [09:41:02]MH_I2C_Read... [09:41:02]*** Stop cut motor [09:41:02]*** Cut end [09:41:02]Read from MH i2c: 01 07 00 [09:41:02]MH_I2C_Read... [09:41:02]Read from MH i2c: 01 07 00 28 5F 00 00 00 00 00 FF 0F 9C [09:41:02]process_action close_receipt done [09:41:02]requested_data is exist [09:41:02]produce_requested_data [09:41:02]requested_item fm.sn is exist - process it [09:41:02]wFMCommunicate request_size=4 [09:41:02]MH_SAM_APDU [09:41:02]CAPDU: 80 11 00 00 [09:41:02]Write to MH i2c: E2 08 00 29 5F 80 11 00 00 00 00 00 00 02 [09:41:02]Write i2c OK [09:41:02]MH_I2C_Read... [09:41:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:02]Read from MH i2c: E2 [09:41:02]MH_I2C_Read... [09:41:02]Read from MH i2c: E2 17 00 [09:41:02]MH_I2C_Read... [09:41:02]Read from MH i2c: E2 17 00 29 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 4F [09:41:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:41:02]wFMCommunicate OK [09:41:02]requested_item fd.num is exist - process it [09:41:02]SAM_PROTO_GetFieldsCounters [09:41:02]wFMCommunicate request_size=4 [09:41:02]MH_SAM_APDU [09:41:02]CAPDU: 80 13 00 00 [09:41:02]Write to MH i2c: E2 08 00 2A 5F 80 13 00 00 00 00 00 00 05 [09:41:02]Write i2c OK [09:41:02]MH_I2C_Read... [09:41:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:02]Read from MH i2c: E2 [09:41:02]MH_I2C_Read... [09:41:02]Read from MH i2c: E2 62 00 [09:41:02]MH_I2C_Read... [09:41:02]Read from MH i2c: E2 62 00 2A 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D6 F9 03 00 0E 04 04 00 C1 01 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 2C [09:41: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D6 F9 03 00 0E 04 04 00 C1 01 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 [09:41:02]wFMCommunicate OK [09:41:02]SAM_PROTO_GetFieldsCounters done [09:41:02]requested_item shift.num is exist - process it [09:41:02]requested_item shift.opened is exist - process it [09:41:02]req_shift_opened [09:41:02]FM_GetShiftState [09:41:02]SAM_PROTO_GetShiftState [09:41:02]wFMCommunicate request_size=4 [09:41:02]MH_SAM_APDU [09:41:02]CAPDU: 80 13 01 00 [09:41:02]Write to MH i2c: E2 08 00 2B 5F 80 13 01 00 00 00 00 00 07 [09:41:02]Write i2c OK [09:41:02]MH_I2C_Read... [09:41:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:02]Read from MH i2c: E2 [09:41:02]MH_I2C_Read... [09:41:02]Read from MH i2c: E2 0E 00 [09:41:02]MH_I2C_Read... [09:41:02]Read from MH i2c: E2 0E 00 2B 5F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 44 [09:41:02]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:41:02]wFMCommunicate OK [09:41:02]SAM_PROTO_GetShiftState done [09:41:02]FM_GetShiftState done [09:41:02]req_shift_opened done [09:41:02]requested_item shift.open_date is exist - process it [09:41:02]req_shift_open_date [09:41:02]req_shift_open_date done [09:41:02]produce_requested_data done [09:41:02]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260566,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [09:41:02]process_action_free close_receipt [09:41:02]json_value_free [09:41:02]json_value_free done [09:41:02]process_json_proto returns [09:41:02]Send response to host [09:41:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260566,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [09:41:02]free response buf [09:41:02]execute_script done [09:41:02]execute_script returns [09:41:02]free content buf [09:41:02]Sock 9.Close socket [09:41:02]Sock 9.Thread stoped [09:41:04]OFD Sender: No OFD packet to send [09:41:07]accept exits with 7 [09:41:07]New connection [09:41:07]New thread 3066617188 created [09:41:07]Thread 3066473828 joined [09:41:07]Waiting for new connection... [09:41:07] Sock 7.Parse request [09:41:07]Sock 7.Check first char [09:41:07]Sock 7.First char is OK [09:41:07]request: POST /json_proto HTTP/1.0 [09:41:07]Method: POST [09:41:07]URL: /json_proto [09:41:07]Method is POST - this is cgi request [09:41:07]url: /json_proto [09:41:07]query_string will be loaded in cgi processing [09:41:07]execute_cgi json_proto POST (null) [09:41:07]execute_cgi path=json_proto method=POST [09:41:07]POST find Content-Length [09:41:07]Host: 172.17.55.133:8080 [09:41:07]Content-Length: 683 [09:41:07]Content-Type: application/json [09:41:07] [09:41:07]POST finish read [09:41:07]Found Content-Length = 683 [09:41:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 16.230, "sum" : 1100.39, "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" ] } } [09:41:07]execute_script... [09:41: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)1036111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 16.230, "sum" : 1100.39, "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" ] } } [09:41:07]POST & json_proto [09:41:07]process_json_proto [09:41:07]json parsed OK: [09:41:07]protocol is kg_v1.0 [09:41:07]action value=close_receipt [09:41:07]process_action close_receipt [09:41:07]cmd_close_receipt [09:41:07]MH_GetDate [09:41:07]Write to MH i2c: F0 00 00 2C 5F 7A [09:41:07]Write i2c OK [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: F0 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: F0 09 00 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: F0 09 00 2C 5F 00 B7 C1 C1 66 34 48 D8 65 DB [09:41:07]GetLastDocTimeStamp 1723974060 [09:41:07]current date 1723974071 [09:41:07]FM_GetShiftState [09:41:07]SAM_PROTO_GetShiftState [09:41:07]wFMCommunicate request_size=4 [09:41:07]MH_SAM_APDU [09:41:07]CAPDU: 80 13 01 00 [09:41:07]Write to MH i2c: E2 08 00 2D 5F 80 13 01 00 00 00 00 00 09 [09:41:07]Write i2c OK [09:41:07]MH_I2C_Read... [09:41:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:07]Read from MH i2c: E2 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: E2 0E 00 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: E2 0E 00 2D 5F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 46 [09:41:07]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:41:07]wFMCommunicate OK [09:41:07]SAM_PROTO_GetShiftState done [09:41:07]FM_GetShiftState done [09:41:07]opened in 1723940556 [09:41:07]opened+sec_in_day 1724026956 [09:41:07]quantity*price = 110039 [09:41:07]sum+1 = 110040 [09:41:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.86 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 125 18.08.2024 09:41 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260567 ФПД: 114776670372797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T094111&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260567&fm=114776670372797&tin=02508201610067®Number=0000000000091865&sum=110000 [09:41:08]StoreToDocumentArchive [09:41:08]shift 449 fd 260567 [09:41:08]save to /storage/0449/doc_00260567 [09:41:08]save last doc name /storage/0449/doc_00260567 to /storage/kkm_last_doc_name [09:41:08]save OK [09:41:08]Clear old archive folders... [09:41:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:41:08]tlvbuf is 004A2160 [09:41:08]SAM_PROTO_ClearQueue [09:41:08]wFMCommunicate request_size=4 [09:41:08]MH_SAM_APDU [09:41:08]CAPDU: 80 09 00 00 [09:41:08]Write to MH i2c: E2 08 00 3A 5F 80 09 00 00 00 00 00 00 0B [09:41:08]Write i2c OK [09:41:08]MH_I2C_Read... [09:41:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:08]Read from MH i2c: E2 [09:41:08]MH_I2C_Read... [09:41:08]Read from MH i2c: E2 03 00 [09:41:08]MH_I2C_Read... [09:41:08]Read from MH i2c: E2 03 00 3A 5F 00 90 00 0D [09:41:08]RAPDU: 90 00 [09:41:08]wFMCommunicate OK [09:41:08]SAM_PROTO_ClearQueue done [09:41:08]KKMCreateOFDPacket [09:41:08]OFDProtocolAddRootSTLVToBuf [09:41:08]FM_MakeSignedData [09:41:08]FM_MakeSignedData [09:41:08]SAM_PROTO_SignData [09:41:08]wFMCommunicate request_size=4 [09:41:08]MH_SAM_APDU [09:41:08]CAPDU: 80 0D 01 02 [09:41:08]Write to MH i2c: E2 08 00 3B 5F 80 0D 01 02 00 00 00 00 13 [09:41:08]Write i2c OK [09:41:08]MH_I2C_Read... [09:41:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:08]Read from MH i2c: E2 [09:41:08]MH_I2C_Read... [09:41:08]Read from MH i2c: E2 03 00 [09:41:08]MH_I2C_Read... [09:41:08]Read from MH i2c: E2 03 00 3B 5F 00 90 00 0E [09:41:08]RAPDU: 90 00 [09:41:08]wFMCommunicate OK [09:41:08]wFMCommunicate request_size=255 [09:41:08]MH_SAM_APDU [09:41:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D7 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 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 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 7D 00 00 00 F4 03 04 00 B7 C1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D7 F9 03 00 35 04 06 00 68 [09:41:08]Write to MH i2c: E2 02 01 3C 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D7 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 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 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 7D 00 00 00 F4 03 04 00 B7 C1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D7 F9 03 00 35 04 06 00 68 00 00 54 [09:41:08]Write i2c OK [09:41:08]MH_I2C_Read... [09:41:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:08]Read from MH i2c: E2 [09:41:08]MH_I2C_Read... [09:41:08]Read from MH i2c: E2 03 00 [09:41:08]MH_I2C_Read... [09:41:08]Read from MH i2c: E2 03 00 3C 5F 00 90 00 0F [09:41:08]RAPDU: 90 00 [09:41:08]wFMCommunicate OK [09:41:08]wFMCommunicate request_size=10 [09:41:08]MH_SAM_APDU [09:41:08]CAPDU: 80 0D 02 02 05 63 86 AA 83 BD [09:41:08]Write to MH i2c: E2 0D 00 3D 5F 80 0D 02 02 05 00 63 86 AA 83 BD 00 00 F3 [09:41:08]Write i2c OK [09:41:08]MH_I2C_Read... [09:41:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:08]Read from MH i2c: E2 [09:41:08]MH_I2C_Read... [09:41:08]Read from MH i2c: E2 03 00 [09:41:08]MH_I2C_Read... [09:41:08]Read from MH i2c: E2 03 00 3D 5F 00 90 00 10 [09:41:08]RAPDU: 90 00 [09:41:08]wFMCommunicate OK [09:41:08]wFMCommunicate request_size=4 [09:41:08]MH_SAM_APDU [09:41:08]CAPDU: 80 0D 03 02 [09:41:08]Write to MH i2c: E2 08 00 3E 5F 80 0D 03 02 00 00 00 00 18 [09:41:08]Write i2c OK [09:41:08]MH_I2C_Read... [09:41:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:08]Read from MH i2c: E2 [09:41:08]MH_I2C_Read... [09:41:08]Read from MH i2c: E2 0B 00 [09:41:08]MH_I2C_Read... [09:41:08]Read from MH i2c: E2 0B 00 3E 5F 00 4B 6E 81 EF 7D 7F FB A8 90 00 E1 [09:41:08]RAPDU: 4B 6E 81 EF 7D 7F FB A8 90 00 [09:41:08]wFMCommunicate OK [09:41:08]SAM_PROTO_SignData done [09:41:08]FM_MakeSignedData done [09:41:08]CreateOFDProtocolMessage [09:41:08]wFMCommunicate request_size=4 [09:41:08]MH_SAM_APDU [09:41:08]CAPDU: 80 11 00 00 [09:41:08]Write to MH i2c: E2 08 00 3F 5F 80 11 00 00 00 00 00 00 18 [09:41:08]Write i2c OK [09:41:08]MH_I2C_Read... [09:41:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:08]Read from MH i2c: E2 [09:41:08]MH_I2C_Read... [09:41:08]Read from MH i2c: E2 17 00 [09:41:08]MH_I2C_Read... [09:41:08]Read from MH i2c: E2 17 00 3F 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 65 [09:41:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:41:08]wFMCommunicate OK [09:41:08]CreateOFDProtocolMessage done [09:41:08]OFDSenderStorePacket 260567 [09:41:08]StoreOFDPacket docnum=260567 [09:41:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 E8 7C 07 01 BC CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D7 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 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 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 7D 00 00 00 F4 03 04 00 B7 C1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D7 F9 03 00 35 04 06 00 68 63 86 AA 83 BD 4B 6E 81 EF 7D 7F FB A8 [09:41:08]CheckFolder [09:41:08]dirname=/storage/ofd_packets [09:41:08]CheckFolder done [09:41:08]ProducePacketName [09:41:08]name=ofd_packets/00260567 [09:41:08]NVStorageSaveData ofd_packets/00260567 [09:41:08]File name is /storage/ofd_packets/00260567 [09:41:08]Write 301 bytes [09:41:08]NVStorageSaveData done [09:41:08]OFDSenderStorePacket done [09:41:08]KKMCreateOFDPacket done [09:41:08]NVStorageSaveData kkm_last_timestamp [09:41:08]File name is /storage/kkm_last_timestamp [09:41:08]Write 4 bytes [09:41:08]NVStorageSaveData done [09:41:08]ExternCall_PrintAddStr [09:41:08]wPrintStart [09:41:08]Write to MH i2c: 01 00 00 40 5F 9F [09:41:08]Write i2c OK [09:41:08]MH_I2C_Read... [09:41:08]Read from MH i2c: 01 [09:41:08]MH_I2C_Read... [09:41:08]Read from MH i2c: 01 07 00 [09:41:08]MH_I2C_Read... [09:41:08]Read from MH i2c: 01 07 00 40 5F 00 00 00 00 00 FF 0F B4 [09:41:08]RasterBufferAndPrint [09:41:08]line Счет N : (1)1036111 [09:41:08]line ИНН: 02508201610067 [09:41:08]line Контрольно-Кассовый Чек [09:41:08]line ПРОДАЖА [09:41:08]line ТРК (МРК, ГНК) : 32 [09:41:08]line Товар: 2710124130 [09:41:08]line Аи-92-К-5 [09:41:08]line 16.230 * 67.80 [09:41:08]line = 1100.39 [09:41:08]line НДС 12% НСП 1% [09:41:08]line > о реализуемом товаре [09:41:08]line ОКРУГЛЕНИЕ: -0.39 [09:41:08]line ИТОГО: 1100.00 [09:41:08]line Внесено: 1100.00 [09:41:08]line СДАЧА: 0.00 [09:41:08]line НСП 1% : 9.74 [09:41:08]line НДС 12% : 116.86 [09:41:08]line Наличными: 1100.00 [09:41:08]line Безнал.: 0.00 [09:41:08]line Место: АЗС № 94 "Партнер Нефть" [09:41:08]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [09:41:08]line СНО: Общий режим [09:41:08]line Чек 125 18.08.2024 09:41 [09:41:08]line Смена: 449 ФФД: 1.0 [09:41:08]line ЗНМ: 0300000099 [09:41:08]line РНМ: 0000000000091865 [09:41:08]line Версия ККМ: 001 [09:41:08]line ФМ: 0000000000871820 [09:41:08]line ФД: 260567 [09:41:08]line ФПД: 114776670372797 [09:41:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T094111&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260567&fm=114776670372797&tin=02508201610067®Number=0000000000091865&sum=110000 [09:41:08]written 0, free lines is 4095 [09:41:08]OFD Sender: Processing packet 260567 [packets to send 192, broken 191] [09:41:08]ProducePacketName [09:41:08]name=ofd_packets/00260567 [09:41:08]OFD Sender: To server: pG, [09:41:08]CommunicateWithHost lk.salyk.kg:30040 [09:41:08]ConnectInit lk.salyk.kg [09:41:08]Connected sock=10 [09:41: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 30 0F 01 00 00 E8 7C 07 01 BC CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D7 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 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 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 7D 00 00 00 F4 03 04 00 B7 C1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D7 F9 03 00 35 04 06 00 68 63 86 AA 83 BD 4B 6E 81 EF 7D 7F FB A8 [09:41: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 30 4F 00 00 00 8D DF 47 00 45 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D7 F9 03 00 F4 03 04 00 0C 6B C1 66 B6 04 01 00 00 E9 17 5C 30 A6 20 80 1F [09:41:09]CommunicateWithHost err = 0 [09:41:09]CheckOFDResponse [09:41:09]1017 (14) - 77093643461234 [09:41:09]1041 (16) - 0000000000871820 [09:41:09]1040 (4) - 260567 [09:41:09]1012 (4) - 18.08.2024 03:31 [09:41:09]1206 (1) - 0 [09:41:09]OFD Sender: Remove packet 260567 [09:41:09]ProducePacketName [09:41:09]name=ofd_packets/00260567 [09:41:09]NVStorageDeleteData [09:41:09]Write to MH i2c: 01 00 00 6B 5F CA [09:41:09]Write i2c OK [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: 01 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: 01 07 00 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: 01 07 00 6B 5F 00 00 00 00 00 6E 0C 4B [09:41:09]RasterBufferAndPrint [09:41:09]line [09:41:09]line [09:41:09]line [09:41:09]line [09:41:09]line [09:41:09]written 0, free lines is 3186 [09:41:09]MH_Cut [09:41:09]Write to MH i2c: D1 01 00 72 5F 01 A3 [09:41:09]Write i2c OK [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: D1 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: D1 01 00 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: D1 01 00 72 5F 00 A2 [09:41:09]Write to MH i2c: 01 00 00 73 5F D2 [09:41:09]Write i2c OK [09:41:09]MH_I2C_Read... [09:41:09]OFD Sender: No OFD packet to send [09:41:10]*** Cut start [09:41:10]*** Purtial cut [09:41:10]*** Stage 1: CUTSNS_PIN = 1 [09:41:12]Read from MH i2c: 01 *** Stop cut motor [09:41:12]*** Cut end [09:41:12] [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: 01 07 00 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: 01 07 00 73 5F 00 00 00 00 00 FF 0F E7 [09:41:12]process_action close_receipt done [09:41:12]requested_data is exist [09:41:12]produce_requested_data [09:41:12]requested_item fm.sn is exist - process it [09:41:12]wFMCommunicate request_size=4 [09:41:12]MH_SAM_APDU [09:41:12]CAPDU: 80 11 00 00 [09:41:12]Write to MH i2c: E2 08 00 74 5F 80 11 00 00 00 00 00 00 4D [09:41:12]Write i2c OK [09:41:12]MH_I2C_Read... [09:41:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:12]Read from MH i2c: E2 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: E2 17 00 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: E2 17 00 74 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 9A [09:41:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:41:12]wFMCommunicate OK [09:41:12]requested_item fd.num is exist - process it [09:41:12]SAM_PROTO_GetFieldsCounters [09:41:12]wFMCommunicate request_size=4 [09:41:12]MH_SAM_APDU [09:41:12]CAPDU: 80 13 00 00 [09:41:12]Write to MH i2c: E2 08 00 75 5F 80 13 00 00 00 00 00 00 50 [09:41:12]Write i2c OK [09:41:12]MH_I2C_Read... [09:41:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:12]Read from MH i2c: E2 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: E2 62 00 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: E2 62 00 75 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D7 F9 03 00 0E 04 04 00 C1 01 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 7B [09:41:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D7 F9 03 00 0E 04 04 00 C1 01 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 [09:41:12]wFMCommunicate OK [09:41:12]SAM_PROTO_GetFieldsCounters done [09:41:12]requested_item shift.num is exist - process it [09:41:12]requested_item shift.opened is exist - process it [09:41:12]req_shift_opened [09:41:12]FM_GetShiftState [09:41:12]SAM_PROTO_GetShiftState [09:41:12]wFMCommunicate request_size=4 [09:41:12]MH_SAM_APDU [09:41:12]CAPDU: 80 13 01 00 [09:41:12]Write to MH i2c: E2 08 00 76 5F 80 13 01 00 00 00 00 00 52 [09:41:12]Write i2c OK [09:41:12]MH_I2C_Read... [09:41:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:12]Read from MH i2c: E2 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: E2 0E 00 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: E2 0E 00 76 5F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 8F [09:41:12]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:41:12]wFMCommunicate OK [09:41:12]SAM_PROTO_GetShiftState done [09:41:12]FM_GetShiftState done [09:41:12]req_shift_opened done [09:41:12]requested_item shift.open_date is exist - process it [09:41:12]req_shift_open_date [09:41:12]req_shift_open_date done [09:41:12]produce_requested_data done [09:41:12]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260567,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [09:41:12]process_action_free close_receipt [09:41:12]json_value_free [09:41:12]json_value_free done [09:41:12]process_json_proto returns [09:41:12]Send response to host [09:41:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260567,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [09:41:12]free response buf [09:41:12]execute_script done [09:41:12]execute_script returns [09:41:12]free content buf [09:41:12]Sock 7.Close socket [09:41:12]Sock 7.Thread stoped [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]accept exits with 9 [09:42:14]New connection [09:42:14]New thread 3066473828 created [09:42:14]Thread 3066617188 joined [09:42:14]Waiting for new connection... [09:42:14] Sock 9.Parse request [09:42:14]Sock 9.Check first char [09:42:14]Sock 9.First char is OK [09:42:14]request: POST /json_proto HTTP/1.0 [09:42:14]Method: POST [09:42:14]URL: /json_proto [09:42:14]Method is POST - this is cgi request [09:42:14]url: /json_proto [09:42:14]query_string will be loaded in cgi processing [09:42:14]execute_cgi json_proto POST (null) [09:42:14]execute_cgi path=json_proto method=POST [09:42:14]POST find Content-Length [09:42:14]Host: 172.17.55.133:8080 [09:42:14]Content-Length: 793 [09:42:14]Content-Type: application/json [09:42:14] [09:42:14]POST finish read [09:42:14]Found Content-Length = 793 [09:42:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036112", "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" : 0.00, "quantity" : 20.770, "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\u000A20515", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:14]execute_script... [09:42: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)1036112", "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" : 0.00, "quantity" : 20.770, "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\u000A20515", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:14]POST & json_proto [09:42:14]process_json_proto [09:42:14]json parsed OK: [09:42:14]protocol is kg_v1.0 [09:42:14]action value=close_receipt [09:42:14]process_action close_receipt [09:42:14]cmd_close_receipt [09:42:14]MH_GetDate [09:42:14]Write to MH i2c: F0 00 00 77 5F C5 [09:42:14]Write i2c OK [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: F0 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: F0 09 00 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: F0 09 00 77 5F 00 FA C1 C1 66 34 48 D8 65 69 [09:42:14]GetLastDocTimeStamp 1723974071 [09:42:14]current date 1723974138 [09:42:14]FM_GetShiftState [09:42:14]SAM_PROTO_GetShiftState [09:42:14]wFMCommunicate request_size=4 [09:42:14]MH_SAM_APDU [09:42:14]CAPDU: 80 13 01 00 [09:42:14]Write to MH i2c: E2 08 00 78 5F 80 13 01 00 00 00 00 00 54 [09:42:14]Write i2c OK [09:42:14]MH_I2C_Read... [09:42:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:14]Read from MH i2c: E2 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: E2 0E 00 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: E2 0E 00 78 5F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 91 [09:42:14]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:42:14]wFMCommunicate OK [09:42:14]SAM_PROTO_GetShiftState done [09:42:14]FM_GetShiftState done [09:42:14]opened in 1723940556 [09:42:14]opened+sec_in_day 1724026956 [09:42:14]quantity*price = 0 [09:42:14]sum+1 = 1 [09:42:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 126 18.08.2024 09:42 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: Топливная Карта 20515 ФМ: 0000000000871820 ФД: 260568 ФПД: 248784783307003 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T094218&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260568&fm=248784783307003&tin=02508201610067®Number=0000000000091865&sum=0 [09:42:15]StoreToDocumentArchive [09:42:15]shift 449 fd 260568 [09:42:15]save to /storage/0449/doc_00260568 [09:42:15]save last doc name /storage/0449/doc_00260568 to /storage/kkm_last_doc_name [09:42:15]save OK [09:42:15]Clear old archive folders... [09:42:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:42:15]tlvbuf is 00453800 [09:42:15]SAM_PROTO_ClearQueue [09:42:15]wFMCommunicate request_size=4 [09:42:15]MH_SAM_APDU [09:42:15]CAPDU: 80 09 00 00 [09:42:15]Write to MH i2c: E2 08 00 85 5F 80 09 00 00 00 00 00 00 56 [09:42:15]Write i2c OK [09:42:15]MH_I2C_Read... [09:42:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:15]Read from MH i2c: E2 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: E2 03 00 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: E2 03 00 85 5F 00 90 00 58 [09:42:15]RAPDU: 90 00 [09:42:15]wFMCommunicate OK [09:42:15]SAM_PROTO_ClearQueue done [09:42:15]KKMCreateOFDPacket [09:42:15]OFDProtocolAddRootSTLVToBuf [09:42:15]FM_MakeSignedData [09:42:15]FM_MakeSignedData [09:42:15]SAM_PROTO_SignData [09:42:15]wFMCommunicate request_size=4 [09:42:15]MH_SAM_APDU [09:42:15]CAPDU: 80 0D 01 02 [09:42:15]Write to MH i2c: E2 08 00 86 5F 80 0D 01 02 00 00 00 00 5E [09:42:15]Write i2c OK [09:42:15]MH_I2C_Read... [09:42:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:15]Read from MH i2c: E2 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: E2 03 00 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: E2 03 00 86 5F 00 90 00 59 [09:42:15]RAPDU: 90 00 [09:42:15]wFMCommunicate OK [09:42:15]wFMCommunicate request_size=255 [09:42:15]MH_SAM_APDU [09:42: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 22 51 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 7E 00 00 00 F4 03 04 00 FA C1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D8 F9 03 00 35 04 06 00 E2 [09:42:15]Write to MH i2c: E2 02 01 87 5F 80 0D 02 02 FA 00 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 22 51 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 7E 00 00 00 F4 03 04 00 FA C1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D8 F9 03 00 35 04 06 00 E2 00 00 B5 [09:42:15]Write i2c OK [09:42:15]MH_I2C_Read... [09:42:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:15]Read from MH i2c: E2 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: E2 03 00 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: E2 03 00 87 5F 00 90 00 5A [09:42:15]RAPDU: 90 00 [09:42:15]wFMCommunicate OK [09:42:15]wFMCommunicate request_size=10 [09:42:15]MH_SAM_APDU [09:42:15]CAPDU: 80 0D 02 02 05 44 B8 A2 70 FB [09:42:15]Write to MH i2c: E2 0D 00 88 5F 80 0D 02 02 05 00 44 B8 A2 70 FB 00 00 74 [09:42:15]Write i2c OK [09:42:15]MH_I2C_Read... [09:42:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:15]Read from MH i2c: E2 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: E2 03 00 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: E2 03 00 88 5F 00 90 00 5B [09:42:15]RAPDU: 90 00 [09:42:15]wFMCommunicate OK [09:42:15]wFMCommunicate request_size=4 [09:42:15]MH_SAM_APDU [09:42:15]CAPDU: 80 0D 03 02 [09:42:15]Write to MH i2c: E2 08 00 89 5F 80 0D 03 02 00 00 00 00 63 [09:42:15]Write i2c OK [09:42:15]MH_I2C_Read... [09:42:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:15]Read from MH i2c: E2 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: E2 0B 00 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: E2 0B 00 89 5F 00 5D CD 41 50 F6 6B 21 F1 90 00 92 [09:42:15]RAPDU: 5D CD 41 50 F6 6B 21 F1 90 00 [09:42:15]wFMCommunicate OK [09:42:15]SAM_PROTO_SignData done [09:42:15]FM_MakeSignedData done [09:42:15]CreateOFDProtocolMessage [09:42:15]wFMCommunicate request_size=4 [09:42:15]MH_SAM_APDU [09:42:15]CAPDU: 80 11 00 00 [09:42:15]Write to MH i2c: E2 08 00 8A 5F 80 11 00 00 00 00 00 00 63 [09:42:15]Write i2c OK [09:42:15]MH_I2C_Read... [09:42:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:16]Read from MH i2c: E2 [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: E2 17 00 [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: E2 17 00 8A 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B0 [09:42:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:42:16]wFMCommunicate OK [09:42:16]CreateOFDProtocolMessage done [09:42:16]OFDSenderStorePacket 260568 [09:42:16]StoreOFDPacket docnum=260568 [09:42:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 52 BD 07 01 C1 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 22 51 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 7E 00 00 00 F4 03 04 00 FA C1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D8 F9 03 00 35 04 06 00 E2 44 B8 A2 70 FB 5D CD 41 50 F6 6B 21 F1 [09:42:16]CheckFolder [09:42:16]dirname=/storage/ofd_packets [09:42:16]CheckFolder done [09:42:16]ProducePacketName [09:42:16]name=ofd_packets/00260568 [09:42:16]NVStorageSaveData ofd_packets/00260568 [09:42:16]File name is /storage/ofd_packets/00260568 [09:42:16]Write 301 bytes [09:42:16]NVStorageSaveData done [09:42:16]OFDSenderStorePacket done [09:42:16]KKMCreateOFDPacket done [09:42:16]NVStorageSaveData kkm_last_timestamp [09:42:16]File name is /storage/kkm_last_timestamp [09:42:16]Write 4 bytes [09:42:16]NVStorageSaveData done [09:42:16]ExternCall_PrintAddStr [09:42:16]wPrintStart [09:42:16]Write to MH i2c: 01 00 00 8B 5F EA [09:42:16]Write i2c OK [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: 01 [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: 01 07 00 [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: 01 07 00 8B 5F 00 00 00 00 00 FF 0F FF [09:42:16]RasterBufferAndPrint [09:42:16]line Счет N : (1)1036112 [09:42:16]line ИНН: 02508201610067 [09:42:16]line Контрольно-Кассовый Чек [09:42:16]line ПРОДАЖА [09:42:16]line ТРК (МРК, ГНК) : 13 [09:42:16]line Товар: 2710124500 [09:42:16]line Аи-95-К-5 [09:42:16]line 20.770 * 0.00 [09:42:16]line = 0.00 [09:42:16]line НДС 12% НСП 1% [09:42:16]line > о реализуемом товаре [09:42:16]line ИТОГО: 0.00 [09:42:16]line НСП 1% : 0.00 [09:42:16]line НДС 12% : 0.00 [09:42:16]line Наличными: 0.00 [09:42:16]line Безнал.: 0.00 [09:42:16]line Место: АЗС № 94 "Партнер Нефть" [09:42:16]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [09:42:16]line СНО: Общий режим [09:42:16]line Чек 126 18.08.2024 09:42 [09:42:16]line Смена: 449 ФФД: 1.0 [09:42:16]line ЗНМ: 0300000099 [09:42:16]line РНМ: 0000000000091865 [09:42:16]line Версия ККМ: 001 [09:42:16]line Талоны: Топливная Карта [09:42:16]line 20515 [09:42:16]line ФМ: 0000000000871820 [09:42:16]line ФД: 260568 [09:42:16]line ФПД: 248784783307003 [09:42:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T094218&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260568&fm=248784783307003&tin=02508201610067®Number=0000000000091865&sum=0 [09:42:16]OFD Sender: Processing packet 260568 [packets to send 192, broken 191] [09:42:16]ProducePacketName [09:42:16]name=ofd_packets/00260568 [09:42:16]OFD Sender: To server: pG, [09:42:16]CommunicateWithHost lk.salyk.kg:30040 [09:42:16]ConnectInit lk.salyk.kg [09:42:16]written 0, free lines is 4095 [09:42:16]Connected sock=10 [09:42: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 30 0F 01 00 00 52 BD 07 01 C1 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 22 51 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 7E 00 00 00 F4 03 04 00 FA C1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D8 F9 03 00 35 04 06 00 E2 44 B8 A2 70 FB 5D CD 41 50 F6 6B 21 F1 [09:42: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 30 4F 00 00 00 5F 7A 47 00 1F 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D8 F9 03 00 F4 03 04 00 4F 6B C1 66 B6 04 01 00 00 99 5E BF 36 8C FA 8C 63 [09:42:16]CommunicateWithHost err = 0 [09:42:16]CheckOFDResponse [09:42:16]1017 (14) - 77093643461234 [09:42:16]1041 (16) - 0000000000871820 [09:42:16]1040 (4) - 260568 [09:42:16]1012 (4) - 18.08.2024 03:32 [09:42:16]1206 (1) - 0 [09:42:16]OFD Sender: Remove packet 260568 [09:42:16]ProducePacketName [09:42:16]name=ofd_packets/00260568 [09:42:16]NVStorageDeleteData [09:42:16]Write to MH i2c: 01 00 00 B5 5F 14 [09:42:16]Write i2c OK [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: 01 [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: 01 07 00 [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: 01 07 00 B5 5F 00 00 00 00 00 91 0C B8 [09:42:16]RasterBufferAndPrint [09:42:16]line [09:42:16]line [09:42:16]line [09:42:16]line [09:42:16]line [09:42:16]written 0, free lines is 3221 [09:42:16]MH_Cut [09:42:16]Write to MH i2c: D1 01 00 BC 5F 01 ED [09:42:16]Write i2c OK [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: D1 [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: D1 01 00 [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: D1 01 00 BC 5F 00 EC [09:42:16]Write to MH i2c: 01 00 00 BD 5F 1C [09:42:16]Write i2c OK [09:42:16]MH_I2C_Read... [09:42:17]OFD Sender: No OFD packet to send [09:42:17]*** Cut start [09:42:17]*** Purtial cut [09:42:17]*** Stage 1: CUTSNS_PIN = 1 [09:42:19]Read from MH i2c: 01 [09:42:19]MH_I2C_Read... [09:42:19]*** Stop cut motor [09:42:19]*** Cut end [09:42:19]Read from MH i2c: 01 07 00 [09:42:19]MH_I2C_Read... [09:42:19]Read from MH i2c: 01 07 00 BD 5F 00 00 00 00 00 FF 0F 31 [09:42:19]process_action close_receipt done [09:42:19]requested_data is exist [09:42:19]produce_requested_data [09:42:19]requested_item fm.sn is exist - process it [09:42:19]wFMCommunicate request_size=4 [09:42:19]MH_SAM_APDU [09:42:19]CAPDU: 80 11 00 00 [09:42:19]Write to MH i2c: E2 08 00 BE 5F 80 11 00 00 00 00 00 00 97 [09:42:19]Write i2c OK [09:42:19]MH_I2C_Read... [09:42:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:19]Read from MH i2c: E2 [09:42:19]MH_I2C_Read... [09:42:19]Read from MH i2c: E2 17 00 [09:42:19]MH_I2C_Read... [09:42:19]Read from MH i2c: E2 17 00 BE 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E4 [09:42:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:42:19]wFMCommunicate OK [09:42:19]requested_item fd.num is exist - process it [09:42:19]SAM_PROTO_GetFieldsCounters [09:42:19]wFMCommunicate request_size=4 [09:42:19]MH_SAM_APDU [09:42:19]CAPDU: 80 13 00 00 [09:42:19]Write to MH i2c: E2 08 00 BF 5F 80 13 00 00 00 00 00 00 9A [09:42:19]Write i2c OK [09:42:19]MH_I2C_Read... [09:42:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:20]Read from MH i2c: E2 [09:42:20]MH_I2C_Read... [09:42:20]Read from MH i2c: E2 62 00 [09:42:20]MH_I2C_Read... [09:42:20]Read from MH i2c: E2 62 00 BF 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D8 F9 03 00 0E 04 04 00 C1 01 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 C9 [09:42: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D8 F9 03 00 0E 04 04 00 C1 01 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 [09:42:20]wFMCommunicate OK [09:42:20]SAM_PROTO_GetFieldsCounters done [09:42:20]requested_item shift.num is exist - process it [09:42:20]requested_item shift.opened is exist - process it [09:42:20]req_shift_opened [09:42:20]FM_GetShiftState [09:42:20]SAM_PROTO_GetShiftState [09:42:20]wFMCommunicate request_size=4 [09:42:20]MH_SAM_APDU [09:42:20]CAPDU: 80 13 01 00 [09:42:20]Write to MH i2c: E2 08 00 C0 5F 80 13 01 00 00 00 00 00 9C [09:42:20]Write i2c OK [09:42:20]MH_I2C_Read... [09:42:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:20]Read from MH i2c: E2 [09:42:20]MH_I2C_Read... [09:42:20]Read from MH i2c: E2 0E 00 [09:42:20]MH_I2C_Read... [09:42:20]Read from MH i2c: E2 0E 00 C0 5F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D9 [09:42:20]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:42:20]wFMCommunicate OK [09:42:20]SAM_PROTO_GetShiftState done [09:42:20]FM_GetShiftState done [09:42:20]req_shift_opened done [09:42:20]requested_item shift.open_date is exist - process it [09:42:20]req_shift_open_date [09:42:20]req_shift_open_date done [09:42:20]produce_requested_data done [09:42:20]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260568,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [09:42:20]process_action_free close_receipt [09:42:20]json_value_free [09:42:20]json_value_free done [09:42:20]process_json_proto returns [09:42:20]Send response to host [09:42:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260568,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [09:42:20]free response buf [09:42:20]execute_script done [09:42:20]execute_script returns [09:42:20]free content buf [09:42:20]Sock 9.Close socket [09:42:20]Sock 9.Thread stoped [09:42:22]OFD Sender: No OFD packet to send [09:42:27]OFD Sender: No OFD packet to send [09:42:32]OFD Sender: No OFD packet to send [09:42:37]OFD Sender: No OFD packet to send [09:42:42]OFD Sender: No OFD packet to send [09:42:47]OFD Sender: No OFD packet to send [09:42:52]OFD Sender: No OFD packet to send [09:42:57]OFD Sender: No OFD packet to send [09:43:02]OFD Sender: No OFD packet to send [09:43:07]OFD Sender: No OFD packet to send [09:43:12]OFD Sender: No OFD packet to send [09:43:17]OFD Sender: No OFD packet to send [09:43:22]OFD Sender: No OFD packet to send [09:43:27]OFD Sender: No OFD packet to send [09:43:32]OFD Sender: No OFD packet to send [09:43:37]OFD Sender: No OFD packet to send [09:43:42]OFD Sender: No OFD packet to send [09:43:47]OFD Sender: No OFD packet to send [09:43:50]accept exits with 7 [09:43:50]New connection [09:43:50]New thread 3066617188 created [09:43:50]Thread 3066473828 joined [09:43:50]Waiting for new connection... [09:43:50] Sock 7.Parse request [09:43:50]Sock 7.Check first char [09:43:50]Sock 7.First char is OK [09:43:50]request: POST /json_proto HTTP/1.0 [09:43:50]Method: POST [09:43:50]URL: /json_proto [09:43:50]Method is POST - this is cgi request [09:43:50]url: /json_proto [09:43:50]query_string will be loaded in cgi processing [09:43:50]execute_cgi json_proto POST (null) [09:43:50]execute_cgi path=json_proto method=POST [09:43:50]POST find Content-Length [09:43:50]Host: 172.17.55.133:8080 [09:43:50]Content-Length: 683 [09:43:50]Content-Type: application/json [09:43:50] [09:43:50]POST finish read [09:43:50]Found Content-Length = 683 [09:43:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 23.600, "sum" : 1600.08, "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:43:50]execute_script... [09:43: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)1036113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 23.600, "sum" : 1600.08, "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:43:50]POST & json_proto [09:43:50]process_json_proto [09:43:50]json parsed OK: [09:43:50]protocol is kg_v1.0 [09:43:50]action value=close_receipt [09:43:50]process_action close_receipt [09:43:50]cmd_close_receipt [09:43:50]MH_GetDate [09:43:50]Write to MH i2c: F0 00 00 C1 5F 0F [09:43:50]Write i2c OK [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: F0 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: F0 09 00 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: F0 09 00 C1 5F 00 5A C2 C1 66 34 48 D8 65 14 [09:43:50]GetLastDocTimeStamp 1723974138 [09:43:50]current date 1723974234 [09:43:50]FM_GetShiftState [09:43:50]SAM_PROTO_GetShiftState [09:43:50]wFMCommunicate request_size=4 [09:43:50]MH_SAM_APDU [09:43:50]CAPDU: 80 13 01 00 [09:43:50]Write to MH i2c: E2 08 00 C2 5F 80 13 01 00 00 00 00 00 9E [09:43:50]Write i2c OK [09:43:50]MH_I2C_Read... [09:43:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:50]Read from MH i2c: E2 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 0E 00 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 0E 00 C2 5F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 DB [09:43:50]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:43:50]wFMCommunicate OK [09:43:50]SAM_PROTO_GetShiftState done [09:43:50]FM_GetShiftState done [09:43:50]opened in 1723940556 [09:43:50]opened+sec_in_day 1724026956 [09:43:50]quantity*price = 160008 [09:43:50]sum+1 = 160009 [09:43:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.92 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 127 18.08.2024 09:43 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260569 ФПД: 114973317416846 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T094354&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260569&fm=114973317416846&tin=02508201610067®Number=0000000000091865&sum=160000 [09:43:51]StoreToDocumentArchive [09:43:51]shift 449 fd 260569 [09:43:51]save to /storage/0449/doc_00260569 [09:43:51]save last doc name /storage/0449/doc_00260569 to /storage/kkm_last_doc_name [09:43:51]save OK [09:43:51]Clear old archive folders... [09:43:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:43:51]tlvbuf is 004174D0 [09:43:51]SAM_PROTO_ClearQueue [09:43:51]wFMCommunicate request_size=4 [09:43:51]MH_SAM_APDU [09:43:51]CAPDU: 80 09 00 00 [09:43:51]Write to MH i2c: E2 08 00 CF 5F 80 09 00 00 00 00 00 00 A0 [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:51]Read from MH i2c: E2 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 03 00 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 03 00 CF 5F 00 90 00 A2 [09:43:51]RAPDU: 90 00 [09:43:51]wFMCommunicate OK [09:43:51]SAM_PROTO_ClearQueue done [09:43:51]KKMCreateOFDPacket [09:43:51]OFDProtocolAddRootSTLVToBuf [09:43:51]FM_MakeSignedData [09:43:51]FM_MakeSignedData [09:43:51]SAM_PROTO_SignData [09:43:51]wFMCommunicate request_size=4 [09:43:51]MH_SAM_APDU [09:43:51]CAPDU: 80 0D 01 02 [09:43:51]Write to MH i2c: E2 08 00 D0 5F 80 0D 01 02 00 00 00 00 A8 [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:51]Read from MH i2c: E2 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 03 00 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 03 00 D0 5F 00 90 00 A3 [09:43:51]RAPDU: 90 00 [09:43:51]wFMCommunicate OK [09:43:51]wFMCommunicate request_size=255 [09:43:51]MH_SAM_APDU [09:43:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 5C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 08 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 60 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 7F 00 00 00 F4 03 04 00 5A C2 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D9 F9 03 00 35 04 06 00 68 [09:43:51]Write to MH i2c: E2 02 01 D1 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 5C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 08 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 60 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 7F 00 00 00 F4 03 04 00 5A C2 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D9 F9 03 00 35 04 06 00 68 00 00 23 [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:51]Read from MH i2c: E2 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 03 00 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 03 00 D1 5F 00 90 00 A4 [09:43:51]RAPDU: 90 00 [09:43:51]wFMCommunicate OK [09:43:51]wFMCommunicate request_size=10 [09:43:51]MH_SAM_APDU [09:43:51]CAPDU: 80 0D 02 02 05 91 4F BE 47 8E [09:43:51]Write to MH i2c: E2 0D 00 D2 5F 80 0D 02 02 05 00 91 4F BE 47 8E 00 00 28 [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 [09:43:51]MH_I2C_Read... [09:43:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:51]Read from MH i2c: E2 03 00 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 03 00 D2 5F 00 90 00 A5 [09:43:51]RAPDU: 90 00 [09:43:51]wFMCommunicate OK [09:43:51]wFMCommunicate request_size=4 [09:43:51]MH_SAM_APDU [09:43:51]CAPDU: 80 0D 03 02 [09:43:51]Write to MH i2c: E2 08 00 D3 5F 80 0D 03 02 00 00 00 00 AD [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:51]Read from MH i2c: E2 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 0B 00 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 0B 00 D3 5F 00 AD DE 44 B6 AE E3 0D EB 90 00 BC [09:43:51]RAPDU: AD DE 44 B6 AE E3 0D EB 90 00 [09:43:51]wFMCommunicate OK [09:43:51]SAM_PROTO_SignData done [09:43:51]FM_MakeSignedData done [09:43:51]CreateOFDProtocolMessage [09:43:51]wFMCommunicate request_size=4 [09:43:51]MH_SAM_APDU [09:43:51]CAPDU: 80 11 00 00 [09:43:51]Write to MH i2c: E2 08 00 D4 5F 80 11 00 00 00 00 00 00 AD [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:51]Read from MH i2c: E2 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 17 00 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 17 00 D4 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 FA [09:43:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:43:51]wFMCommunicate OK [09:43:51]CreateOFDProtocolMessage done [09:43:51]OFDSenderStorePacket 260569 [09:43:51]StoreOFDPacket docnum=260569 [09:43:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 C9 F7 07 01 CB A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 5C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 08 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 60 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 7F 00 00 00 F4 03 04 00 5A C2 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D9 F9 03 00 35 04 06 00 68 91 4F BE 47 8E AD DE 44 B6 AE E3 0D EB [09:43:51]CheckFolder [09:43:51]dirname=/storage/ofd_packets [09:43:51]CheckFolder done [09:43:51]ProducePacketName [09:43:51]name=ofd_packets/00260569 [09:43:51]NVStorageSaveData ofd_packets/00260569 [09:43:51]File name is /storage/ofd_packets/00260569 [09:43:51]Write 301 bytes [09:43:51]NVStorageSaveData done [09:43:51]OFDSenderStorePacket done [09:43:51]KKMCreateOFDPacket done [09:43:51]NVStorageSaveData kkm_last_timestamp [09:43:51]File name is /storage/kkm_last_timestamp [09:43:51]Write 4 bytes [09:43:51]NVStorageSaveData done [09:43:51]ExternCall_PrintAddStr [09:43:51]wPrintStart [09:43:51]Write to MH i2c: 01 00 00 D5 5F 34 [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: 01 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: 01 07 00 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: 01 07 00 D5 5F 00 00 00 00 00 FF 0F 49 [09:43:51]RasterBufferAndPrint [09:43:51]line Счет N : (1)1036113 [09:43:51]line ИНН: 02508201610067 [09:43:51]line Контрольно-Кассовый Чек [09:43:51]line ПРОДАЖА [09:43:51]line ТРК (МРК, ГНК) : 22 [09:43:51]line Товар: 2710124130 [09:43:51]line Аи-92-К-5 [09:43:51]line 23.600 * 67.80 [09:43:51]line = 1600.08 [09:43:51]line НДС 12% НСП 1% [09:43:51]line > о реализуемом товаре [09:43:51]line ОКРУГЛЕНИЕ: -0.08 [09:43:51]line ИТОГО: 1600.00 [09:43:51]line Внесено: 1600.00 [09:43:51]line СДАЧА: 0.00 [09:43:51]line НСП 1% : 14.16 [09:43:51]line НДС 12% : 169.92 [09:43:51]line Наличными: 1600.00 [09:43:51]line Безнал.: 0.00 [09:43:51]line Место: АЗС № 94 "Партнер Нефть" [09:43:51]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [09:43:51]line СНО: Общий режим [09:43:51]line Чек 127 18.08.2024 09:43 [09:43:51]line Смена: 449 ФФД: 1.0 [09:43:51]line ЗНМ: 0300000099 [09:43:51]line РНМ: 0000000000091865 [09:43:51]line Версия ККМ: 001 [09:43:51]line ФМ: 0000000000871820 [09:43:51]line ФД: 260569 [09:43:51]line ФПД: 114973317416846 [09:43:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T094354&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260569&fm=114973317416846&tin=02508201610067®Number=0000000000091865&sum=160000 [09:43:51]written 0, free lines is 4095 [09:43:51]OFD Sender: Processing packet 260569 [packets to send 192, broken 191] [09:43:51]ProducePacketName [09:43:51]name=ofd_packets/00260569 [09:43:51]OFD Sender: To server: pG, [09:43:51]CommunicateWithHost lk.salyk.kg:30040 [09:43:51]ConnectInit lk.salyk.kg [09:43:51]Connected sock=10 [09:43: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 30 0F 01 00 00 C9 F7 07 01 CB A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 5C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 08 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 60 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 7F 00 00 00 F4 03 04 00 5A C2 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D9 F9 03 00 35 04 06 00 68 91 4F BE 47 8E AD DE 44 B6 AE E3 0D EB [09:43: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 30 4F 00 00 00 95 3D 47 00 96 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 30 10 04 04 00 D9 F9 03 00 F4 03 04 00 AF 6B C1 66 B6 04 01 00 00 EF 41 F8 D4 8E 46 86 44 [09:43:52]CommunicateWithHost err = 0 [09:43:52]CheckOFDResponse [09:43:52]1017 (14) - 77093643461234 [09:43:52]1041 (16) - 0000000000871820 [09:43:52]1040 (4) - 260569 [09:43:52]1012 (4) - 18.08.2024 03:34 [09:43:52]1206 (1) - 0 [09:43:52]OFD Sender: Remove packet 260569 [09:43:52]ProducePacketName [09:43:52]name=ofd_packets/00260569 [09:43:52]NVStorageDeleteData [09:43:52]Write to MH i2c: 01 00 00 00 60 60 [09:43:52]Write i2c OK [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: 01 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: 01 07 00 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: 01 07 00 00 60 00 00 00 00 00 6B 0C DE [09:43:52]RasterBufferAndPrint [09:43:52]line [09:43:52]line [09:43:52]line [09:43:52]line [09:43:52]line [09:43:52]written 0, free lines is 3182 [09:43:52]MH_Cut [09:43:52]Write to MH i2c: D1 01 00 07 60 01 39 [09:43:52]Write i2c OK [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: D1 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: D1 01 00 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: D1 01 00 07 60 00 38 [09:43:52]Write to MH i2c: 01 00 00 08 60 68 [09:43:52]Write i2c OK [09:43:52]MH_I2C_Read... [09:43:52]OFD Sender: No OFD packet to send [09:43:53]*** Cut start [09:43:53]*** Purtial cut [09:43:53]*** Stage 1: CUTSNS_PIN = 1 [09:43:55]Read from MH i2c: 01 [09:43:55]MH_I2C_Read... [09:43:55]*** Stop cut motor [09:43:55]*** Cut end [09:43:55]Read from MH i2c: 01 07 00 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: 01 07 00 08 60 00 00 00 00 00 FF 0F 7D [09:43:55]process_action close_receipt done [09:43:55]requested_data is exist [09:43:55]produce_requested_data [09:43:55]requested_item fm.sn is exist - process it [09:43:55]wFMCommunicate request_size=4 [09:43:55]MH_SAM_APDU [09:43:55]CAPDU: 80 11 00 00 [09:43:55]Write to MH i2c: E2 08 00 09 60 80 11 00 00 00 00 00 00 E3 [09:43:55]Write i2c OK [09:43:55]MH_I2C_Read... [09:43:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:55]Read from MH i2c: E2 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: E2 17 00 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: E2 17 00 09 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 30 [09:43:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:43:55]wFMCommunicate OK [09:43:55]requested_item fd.num is exist - process it [09:43:55]SAM_PROTO_GetFieldsCounters [09:43:55]wFMCommunicate request_size=4 [09:43:55]MH_SAM_APDU [09:43:55]CAPDU: 80 13 00 00 [09:43:55]Write to MH i2c: E2 08 00 0A 60 80 13 00 00 00 00 00 00 E6 [09:43:55]Write i2c OK [09:43:55]MH_I2C_Read... [09:43:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:55]Read from MH i2c: E2 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: E2 62 00 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: E2 62 00 0A 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D9 F9 03 00 0E 04 04 00 C1 01 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 19 [09:43: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D9 F9 03 00 0E 04 04 00 C1 01 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 [09:43:55]wFMCommunicate OK [09:43:55]SAM_PROTO_GetFieldsCounters done [09:43:55]requested_item shift.num is exist - process it [09:43:55]requested_item shift.opened is exist - process it [09:43:55]req_shift_opened [09:43:55]FM_GetShiftState [09:43:55]SAM_PROTO_GetShiftState [09:43:55]wFMCommunicate request_size=4 [09:43:55]MH_SAM_APDU [09:43:55]CAPDU: 80 13 01 00 [09:43:55]Write to MH i2c: E2 08 00 0B 60 80 13 01 00 00 00 00 00 E8 [09:43:55]Write i2c OK [09:43:55]MH_I2C_Read... [09:43:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:55]Read from MH i2c: E2 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: E2 0E 00 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: E2 0E 00 0B 60 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 25 [09:43:55]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:43:55]wFMCommunicate OK [09:43:55]SAM_PROTO_GetShiftState done [09:43:55]FM_GetShiftState done [09:43:55]req_shift_opened done [09:43:55]requested_item shift.open_date is exist - process it [09:43:55]req_shift_open_date [09:43:55]req_shift_open_date done [09:43:55]produce_requested_data done [09:43:55]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260569,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [09:43:55]process_action_free close_receipt [09:43:55]json_value_free [09:43:55]json_value_free done [09:43:55]process_json_proto returns [09:43:55]Send response to host [09:43:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260569,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [09:43:55]free response buf [09:43:55]execute_script done [09:43:55]execute_script returns [09:43:55]free content buf [09:43:55]Sock 7.Close socket [09:43:55]Sock 7.Thread stoped [09:43:57]OFD Sender: No OFD packet to send [09:44:02]OFD Sender: No OFD packet to send [09:44:07]OFD Sender: No OFD packet to send [09:44:12]OFD Sender: No OFD packet to send [09:44:17]OFD Sender: No OFD packet to send [09:44:22]OFD Sender: No OFD packet to send [09:44:27]OFD Sender: No OFD packet to send [09:44:32]OFD Sender: No OFD packet to send [09:44:37]OFD Sender: No OFD packet to send [09:44:42]OFD Sender: No OFD packet to send [09:44:47]OFD Sender: No OFD packet to send [09:44:52]OFD Sender: No OFD packet to send [09:44:57]OFD Sender: No OFD packet to send [09:45:02]OFD Sender: No OFD packet to send [09:45:07]OFD Sender: No OFD packet to send [09:45:12]OFD Sender: No OFD packet to send [09:45:17]OFD Sender: No OFD packet to send [09:45:22]OFD Sender: No OFD packet to send [09:45:27]OFD Sender: No OFD packet to send [09:45:32]OFD Sender: No OFD packet to send [09:45:37]OFD Sender: No OFD packet to send [09:45:42]OFD Sender: No OFD packet to send [09:45:47]OFD Sender: No OFD packet to send [09:45:52]OFD Sender: No OFD packet to send [09:45:57]OFD Sender: No OFD packet to send [09:46:02]OFD Sender: No OFD packet to send [09:46:07]OFD Sender: No OFD packet to send [09:46:12]OFD Sender: No OFD packet to send [09:46:17]OFD Sender: No OFD packet to send [09:46:22]OFD Sender: No OFD packet to send [09:46:27]OFD Sender: No OFD packet to send [09:46:32]OFD Sender: No OFD packet to send [09:46:37]OFD Sender: No OFD packet to send [09:46:42]OFD Sender: No OFD packet to send [09:46:44]accept exits with 9 [09:46:44]New connection [09:46:44]New thread 3066473828 created [09:46:44]Thread 3066617188 joined [09:46:44]Waiting for new connection... [09:46:44] Sock 9.Parse request [09:46:44]Sock 9.Check first char [09:46:44]Sock 9.First char is OK [09:46:44]request: POST /json_proto HTTP/1.0 [09:46:44]Method: POST [09:46:44]URL: /json_proto [09:46:44]Method is POST - this is cgi request [09:46:44]url: /json_proto [09:46:44]query_string will be loaded in cgi processing [09:46:44]execute_cgi json_proto POST (null) [09:46:44]execute_cgi path=json_proto method=POST [09:46:44]POST find Content-Length [09:46:44]Host: 172.17.55.133:8080 [09:46:44]Content-Length: 801 [09:46:44]Content-Type: application/json [09:46:44] [09:46:44]POST finish read [09:46:44]Found Content-Length = 801 [09:46:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:44]execute_script... [09:46: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)1036114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:44]POST & json_proto [09:46:44]process_json_proto [09:46:44]json parsed OK: [09:46:44]protocol is kg_v1.0 [09:46:44]action value=close_receipt [09:46:44]process_action close_receipt [09:46:44]cmd_close_receipt [09:46:44]MH_GetDate [09:46:44]Write to MH i2c: F0 00 00 0C 60 5B [09:46:44]Write i2c OK [09:46:44]MH_I2C_Read... [09:46:44]Read from MH i2c: F0 [09:46:44]MH_I2C_Read... [09:46:44]Read from MH i2c: F0 09 00 [09:46:44]MH_I2C_Read... [09:46:44]Read from MH i2c: F0 09 00 0C 60 00 08 C3 C1 66 34 48 D8 65 0F [09:46:44]GetLastDocTimeStamp 1723974234 [09:46:44]current date 1723974408 [09:46:44]FM_GetShiftState [09:46:44]SAM_PROTO_GetShiftState [09:46:44]wFMCommunicate request_size=4 [09:46:44]MH_SAM_APDU [09:46:44]CAPDU: 80 13 01 00 [09:46:44]Write to MH i2c: E2 08 00 0D 60 80 13 01 00 00 00 00 00 EA [09:46:44]Write i2c OK [09:46:44]MH_I2C_Read... [09:46:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:44]Read from MH i2c: E2 [09:46:44]MH_I2C_Read... [09:46:44]Read from MH i2c: E2 0E 00 [09:46:44]MH_I2C_Read... [09:46:44]Read from MH i2c: E2 0E 00 0D 60 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 27 [09:46:44]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:46:44]wFMCommunicate OK [09:46:44]SAM_PROTO_GetShiftState done [09:46:44]FM_GetShiftState done [09:46:44]opened in 1723940556 [09:46:44]opened+sec_in_day 1724026956 [09:46:44]quantity*price = 50036 [09:46:44]sum+1 = 50037 [09:46:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 128 18.08.2024 09:46 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260570 ФПД: 255674376639727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T094648&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260570&fm=255674376639727&tin=02508201610067®Number=0000000000091865&sum=50036 [09:46:45]StoreToDocumentArchive [09:46:45]shift 449 fd 260570 [09:46:45]save to /storage/0449/doc_00260570 [09:46:45]save last doc name /storage/0449/doc_00260570 to /storage/kkm_last_doc_name [09:46:45]save OK [09:46:45]Clear old archive folders... [09:46:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:46:45]tlvbuf is 0036EE50 [09:46:45]SAM_PROTO_ClearQueue [09:46:45]wFMCommunicate request_size=4 [09:46:45]MH_SAM_APDU [09:46:45]CAPDU: 80 09 00 00 [09:46:45]Write to MH i2c: E2 08 00 1A 60 80 09 00 00 00 00 00 00 EC [09:46:45]Write i2c OK [09:46:45]MH_I2C_Read... [09:46:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:45]Read from MH i2c: E2 [09:46:45]MH_I2C_Read... [09:46:45]Read from MH i2c: E2 03 00 [09:46:45]MH_I2C_Read... [09:46:45]Read from MH i2c: E2 03 00 1A 60 00 90 00 EE [09:46:45]RAPDU: 90 00 [09:46:45]wFMCommunicate OK [09:46:45]SAM_PROTO_ClearQueue done [09:46:45]KKMCreateOFDPacket [09:46:45]OFDProtocolAddRootSTLVToBuf [09:46:45]FM_MakeSignedData [09:46:45]FM_MakeSignedData [09:46:45]SAM_PROTO_SignData [09:46:45]wFMCommunicate request_size=4 [09:46:45]MH_SAM_APDU [09:46:45]CAPDU: 80 0D 01 02 [09:46:45]Write to MH i2c: E2 08 00 1B 60 80 0D 01 02 00 00 00 00 F4 [09:46:45]Write i2c OK [09:46:45]MH_I2C_Read... [09:46:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:45]Read from MH i2c: E2 [09:46:45]MH_I2C_Read... [09:46:45]Read from MH i2c: E2 03 00 [09:46:45]MH_I2C_Read... [09:46:45]Read from MH i2c: E2 03 00 1B 60 00 90 00 EF [09:46:45]RAPDU: 90 00 [09:46:45]wFMCommunicate OK [09:46:45]wFMCommunicate request_size=255 [09:46:45]MH_SAM_APDU [09:46:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 08 C3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DA F9 03 00 35 04 06 00 E8 [09:46:45]Write to MH i2c: E2 02 01 1C 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 08 C3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DA F9 03 00 35 04 06 00 E8 00 00 AB [09:46:45]Write i2c OK [09:46:45]MH_I2C_Read... [09:46:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:46]Read from MH i2c: E2 [09:46:46]MH_I2C_Read... [09:46:46]Read from MH i2c: E2 03 00 [09:46:46]MH_I2C_Read... [09:46:46]Read from MH i2c: E2 03 00 1C 60 00 90 00 F0 [09:46:46]RAPDU: 90 00 [09:46:46]wFMCommunicate OK [09:46:46]wFMCommunicate request_size=10 [09:46:46]MH_SAM_APDU [09:46:46]CAPDU: 80 0D 02 02 05 88 D4 65 D4 EF [09:46:46]Write to MH i2c: E2 0D 00 1D 60 80 0D 02 02 05 00 88 D4 65 D4 EF 00 00 85 [09:46:46]Write i2c OK [09:46:46]MH_I2C_Read... [09:46:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:46]Read from MH i2c: E2 [09:46:46]MH_I2C_Read... [09:46:46]Read from MH i2c: E2 03 00 [09:46:46]MH_I2C_Read... [09:46:46]Read from MH i2c: E2 03 00 1D 60 00 90 00 F1 [09:46:46]RAPDU: 90 00 [09:46:46]wFMCommunicate OK [09:46:46]wFMCommunicate request_size=4 [09:46:46]MH_SAM_APDU [09:46:46]CAPDU: 80 0D 03 02 [09:46:46]Write to MH i2c: E2 08 00 1E 60 80 0D 03 02 00 00 00 00 F9 [09:46:46]Write i2c OK [09:46:46]MH_I2C_Read... [09:46:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:46]Read from MH i2c: E2 [09:46:46]MH_I2C_Read... [09:46:46]Read from MH i2c: E2 0B 00 [09:46:46]MH_I2C_Read... [09:46:46]Read from MH i2c: E2 0B 00 1E 60 00 1B BE 73 B4 70 5C E0 15 90 00 BB [09:46:46]RAPDU: 1B BE 73 B4 70 5C E0 15 90 00 [09:46:46]wFMCommunicate OK [09:46:46]SAM_PROTO_SignData done [09:46:46]FM_MakeSignedData done [09:46:46]CreateOFDProtocolMessage [09:46:46]wFMCommunicate request_size=4 [09:46:46]MH_SAM_APDU [09:46:46]CAPDU: 80 11 00 00 [09:46:46]Write to MH i2c: E2 08 00 1F 60 80 11 00 00 00 00 00 00 F9 [09:46:46]Write i2c OK [09:46:46]MH_I2C_Read... [09:46:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:46]Read from MH i2c: E2 [09:46:46]MH_I2C_Read... [09:46:46]Read from MH i2c: E2 17 00 [09:46:46]MH_I2C_Read... [09:46:46]Read from MH i2c: E2 17 00 1F 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 46 [09:46:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:46:46]wFMCommunicate OK [09:46:46]CreateOFDProtocolMessage done [09:46:46]OFDSenderStorePacket 260570 [09:46:46]StoreOFDPacket docnum=260570 [09:46:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 07 9F 07 01 9F F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 08 C3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DA F9 03 00 35 04 06 00 E8 88 D4 65 D4 EF 1B BE 73 B4 70 5C E0 15 [09:46:46]CheckFolder [09:46:46]dirname=/storage/ofd_packets [09:46:46]CheckFolder done [09:46:46]ProducePacketName [09:46:46]name=ofd_packets/00260570 [09:46:46]NVStorageSaveData ofd_packets/00260570 [09:46:46]File name is /storage/ofd_packets/00260570 [09:46:46]Write 301 bytes [09:46:46]NVStorageSaveData done [09:46:46]OFDSenderStorePacket done [09:46:46]KKMCreateOFDPacket done [09:46:46]NVStorageSaveData kkm_last_timestamp [09:46:46]File name is /storage/kkm_last_timestamp [09:46:46]Write 4 bytes [09:46:46]NVStorageSaveData done [09:46:46]ExternCall_PrintAddStr [09:46:46]wPrintStart [09:46:46]Write to MH i2c: 01 00 00 20 60 80 [09:46:46]Write i2c OK [09:46:46]MH_I2C_Read... [09:46:46]Read from MH i2c: 01 [09:46:46]MH_I2C_Read... [09:46:46]Read from MH i2c: 01 07 00 [09:46:46]MH_I2C_Read... [09:46:46]Read from MH i2c: 01 07 00 20 60 00 00 00 00 00 FF 0F 95 [09:46:46]RasterBufferAndPrint [09:46:46]line Счет N : (1)1036114 [09:46:46]line ИНН: 02508201610067 [09:46:46]line Контрольно-Кассовый Чек [09:46:46]line ПРОДАЖА [09:46:46]line ТРК (МРК, ГНК) : 12 [09:46:46]line Товар: 2710124130 [09:46:46]line Аи-92-К-5 [09:46:46]line 7.380 * 67.80 [09:46:46]line = 500.36 [09:46:46]line НДС 12% НСП 1% [09:46:46]line > о реализуемом товаре [09:46:46]line ИТОГО: 500.36 [09:46:46]line НСП 1% : 4.43 [09:46:46]line НДС 12% : 53.14 [09:46:46]line Наличными: 0.00 [09:46:46]line Безнал.: 500.36 [09:46:46]line Место: АЗС № 94 "Партнер Нефть" [09:46:46]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [09:46:46]line СНО: Общий режим [09:46:46]line Чек 128 18.08.2024 09:46 [09:46:46]line Смена: 449 ФФД: 1.0 [09:46:46]line ЗНМ: 0300000099 [09:46:46]line РНМ: 0000000000091865 [09:46:46]line Версия ККМ: 001 [09:46:46]line Платежная система: O! деньги [09:46:46]line ФМ: 0000000000871820 [09:46:46]line ФД: 260570 [09:46:46]line ФПД: 255674376639727 [09:46:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T094648&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260570&fm=255674376639727&tin=02508201610067®Number=0000000000091865&sum=50036 [09:46:46]written 0, free lines is 4095 [09:46:46]OFD Sender: Processing packet 260570 [packets to send 192, broken 191] [09:46:46]ProducePacketName [09:46:46]name=ofd_packets/00260570 [09:46:46]OFD Sender: To server: pG, [09:46:46]CommunicateWithHost lk.salyk.kg:30040 [09:46:46]ConnectInit lk.salyk.kg [09:46:46]Connected sock=10 [09:46: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 30 0F 01 00 00 07 9F 07 01 9F F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 08 C3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DA F9 03 00 35 04 06 00 E8 88 D4 65 D4 EF 1B BE 73 B4 70 5C E0 15 [09:46: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 30 4F 00 00 00 40 59 47 00 04 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DA F9 03 00 F4 03 04 00 5D 6C C1 66 B6 04 01 00 00 D6 03 13 37 43 5D 2B 9F [09:46:46]CommunicateWithHost err = 0 [09:46:46]CheckOFDResponse [09:46:46]1017 (14) - 77093643461234 [09:46:46]1041 (16) - 0000000000871820 [09:46:46]1040 (4) - 260570 [09:46:46]1012 (4) - 18.08.2024 03:37 [09:46:46]1206 (1) - 0 [09:46:46]OFD Sender: Remove packet 260570 [09:46:46]ProducePacketName [09:46:46]name=ofd_packets/00260570 [09:46:46]NVStorageDeleteData [09:46:46]Write to MH i2c: 01 00 00 4A 60 AA [09:46:46]Write i2c OK [09:46:46]MH_I2C_Read... [09:46:46]Read from MH i2c: 01 [09:46:46]MH_I2C_Read... [09:46:46]Read from MH i2c: 01 07 00 [09:46:46]MH_I2C_Read... [09:46:46]Read from MH i2c: 01 07 00 4A 60 00 00 00 00 00 82 0C 3F [09:46:46]RasterBufferAndPrint [09:46:46]line [09:46:46]line [09:46:46]line [09:46:46]line [09:46:46]line [09:46:46]written 0, free lines is 3206 [09:46:46]MH_Cut [09:46:46]Write to MH i2c: D1 01 00 51 60 01 83 [09:46:46]Write i2c OK [09:46:46]MH_I2C_Read... [09:46:46]Read from MH i2c: D1 [09:46:46]MH_I2C_Read... [09:46:46]Read from MH i2c: D1 01 00 [09:46:46]MH_I2C_Read... [09:46:46]Read from MH i2c: D1 01 00 51 60 00 82 [09:46:46]Write to MH i2c: 01 00 00 52 60 B2 [09:46:46]Write i2c OK [09:46:46]MH_I2C_Read... [09:46:47]OFD Sender: No OFD packet to send [09:46:47]*** Cut start [09:46:47]*** Purtial cut [09:46:47]*** Stage 1: CUTSNS_PIN = 1 [09:46:49]Read from MH i2c: 01 [09:46:49]MH_I2C_Read... [09:46:49]*** Stop cut motor [09:46:49]*** Cut end [09:46:49]Read from MH i2c: 01 07 00 [09:46:49]MH_I2C_Read... [09:46:49]Read from MH i2c: 01 07 00 52 60 00 00 00 00 00 FF 0F C7 [09:46:49]process_action close_receipt done [09:46:49]requested_data is exist [09:46:49]produce_requested_data [09:46:49]requested_item fm.sn is exist - process it [09:46:49]wFMCommunicate request_size=4 [09:46:49]MH_SAM_APDU [09:46:49]CAPDU: 80 11 00 00 [09:46:49]Write to MH i2c: E2 08 00 53 60 80 11 00 00 00 00 00 00 2D [09:46:49]Write i2c OK [09:46:49]MH_I2C_Read... [09:46:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:49]Read from MH i2c: E2 [09:46:49]MH_I2C_Read... [09:46:49]Read from MH i2c: E2 17 00 [09:46:49]MH_I2C_Read... [09:46:49]Read from MH i2c: E2 17 00 53 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 7A [09:46:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:46:49]wFMCommunicate OK [09:46:49]requested_item fd.num is exist - process it [09:46:49]SAM_PROTO_GetFieldsCounters [09:46:49]wFMCommunicate request_size=4 [09:46:49]MH_SAM_APDU [09:46:49]CAPDU: 80 13 00 00 [09:46:49]Write to MH i2c: E2 08 00 54 60 80 13 00 00 00 00 00 00 30 [09:46:49]Write i2c OK [09:46:49]MH_I2C_Read... [09:46:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:50]Read from MH i2c: E2 [09:46:50]MH_I2C_Read... [09:46:50]Read from MH i2c: E2 62 00 [09:46:50]MH_I2C_Read... [09:46:50]Read from MH i2c: E2 62 00 54 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 DA F9 03 00 0E 04 04 00 C1 01 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 67 [09:46: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 DA F9 03 00 0E 04 04 00 C1 01 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 [09:46:50]wFMCommunicate OK [09:46:50]SAM_PROTO_GetFieldsCounters done [09:46:50]requested_item shift.num is exist - process it [09:46:50]requested_item shift.opened is exist - process it [09:46:50]req_shift_opened [09:46:50]FM_GetShiftState [09:46:50]SAM_PROTO_GetShiftState [09:46:50]wFMCommunicate request_size=4 [09:46:50]MH_SAM_APDU [09:46:50]CAPDU: 80 13 01 00 [09:46:50]Write to MH i2c: E2 08 00 55 60 80 13 01 00 00 00 00 00 32 [09:46:50]Write i2c OK [09:46:50]MH_I2C_Read... [09:46:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:50]Read from MH i2c: E2 [09:46:50]MH_I2C_Read... [09:46:50]Read from MH i2c: E2 0E 00 [09:46:50]MH_I2C_Read... [09:46:50]Read from MH i2c: E2 0E 00 55 60 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 6F [09:46:50]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:46:50]wFMCommunicate OK [09:46:50]SAM_PROTO_GetShiftState done [09:46:50]FM_GetShiftState done [09:46:50]req_shift_opened done [09:46:50]requested_item shift.open_date is exist - process it [09:46:50]req_shift_open_date [09:46:50]req_shift_open_date done [09:46:50]produce_requested_data done [09:46:50]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260570,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [09:46:50]process_action_free close_receipt [09:46:50]json_value_free [09:46:50]json_value_free done [09:46:50]process_json_proto returns [09:46:50]Send response to host [09:46:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260570,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [09:46:50]free response buf [09:46:50]execute_script done [09:46:50]execute_script returns [09:46:50]free content buf [09:46:50]Sock 9.Close socket [09:46:50]Sock 9.Thread stoped [09:46:52]OFD Sender: No OFD packet to send [09:46:57]OFD Sender: No OFD packet to send [09:47:02]OFD Sender: No OFD packet to send [09:47:07]OFD Sender: No OFD packet to send [09:47:12]OFD Sender: No OFD packet to send [09:47:17]OFD Sender: No OFD packet to send [09:47:22]OFD Sender: No OFD packet to send [09:47:27]OFD Sender: No OFD packet to send [09:47:32]OFD Sender: No OFD packet to send [09:47:37]OFD Sender: No OFD packet to send [09:47:42]OFD Sender: No OFD packet to send [09:47:47]OFD Sender: No OFD packet to send [09:47:52]OFD Sender: No OFD packet to send [09:47:57]OFD Sender: No OFD packet to send [09:48:02]OFD Sender: No OFD packet to send [09:48:07]OFD Sender: No OFD packet to send [09:48:12]OFD Sender: No OFD packet to send [09:48:17]OFD Sender: No OFD packet to send [09:48:22]OFD Sender: No OFD packet to send [09:48:27]OFD Sender: No OFD packet to send [09:48:32]OFD Sender: No OFD packet to send [09:48:37]OFD Sender: No OFD packet to send [09:48:42]OFD Sender: No OFD packet to send [09:48:47]OFD Sender: No OFD packet to send [09:48:52]OFD Sender: No OFD packet to send [09:48:57]OFD Sender: No OFD packet to send [09:49:02]OFD Sender: No OFD packet to send [09:49:07]OFD Sender: No OFD packet to send [09:49:12]OFD Sender: No OFD packet to send [09:49:14]accept exits with 7 [09:49:14]New connection [09:49:14]New thread 3066617188 created [09:49:14]Thread 3066473828 joined [09:49:14]Waiting for new connection... [09:49:14] Sock 7.Parse request [09:49:14]Sock 7.Check first char [09:49:14]Sock 7.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.55.133:8080 [09:49:14]Content-Length: 683 [09:49:14]Content-Type: application/json [09:49:14] [09:49:14]POST finish read [09:49:14]Found Content-Length = 683 [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)1036115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09: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)1036115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09: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 56 60 A5 [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 56 60 00 9E C3 C1 66 34 48 D8 65 EF [09:49:14]GetLastDocTimeStamp 1723974408 [09:49:14]current date 1723974558 [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 57 60 80 13 01 00 00 00 00 00 34 [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 57 60 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 71 [09:49:14]RAPDU: 09 00 01 CC 3E C1 66 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 1723940556 [09:49:14]opened+sec_in_day 1724026956 [09:49:14]quantity*price = 200010 [09:49:14]sum+1 = 200011 [09:49:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 129 18.08.2024 09:49 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260571 ФПД: 105315763986757 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T094918&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260571&fm=105315763986757&tin=02508201610067®Number=0000000000091865&sum=200000 [09:49:15]StoreToDocumentArchive [09:49:15]shift 449 fd 260571 [09:49:15]save to /storage/0449/doc_00260571 [09:49:15]save last doc name /storage/0449/doc_00260571 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 003D0DC0 [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 64 60 80 09 00 00 00 00 00 00 36 [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 64 60 00 90 00 38 [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 65 60 80 0D 01 02 00 00 00 00 3E [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 65 60 00 90 00 39 [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 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 81 00 00 00 F4 03 04 00 9E C3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DB F9 03 00 35 04 06 00 5F [09:49:15]Write to MH i2c: E2 02 01 66 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 81 00 00 00 F4 03 04 00 9E C3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DB F9 03 00 35 04 06 00 5F 00 00 C0 [09:49:15]Write i2c OK [09:49:15]MH_I2C_Read... [09:49:15]*** iso7816_exchange 80 0D 02 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 66 60 00 90 00 3A [09:49:15]RAPDU: 90 00 [09:49:15]wFMCommunicate OK [09:49:15]wFMCommunicate request_size=10 [09:49:15]MH_SAM_APDU [09:49:15]CAPDU: 80 0D 02 02 05 C8 BC B3 A1 45 [09:49:15]Write to MH i2c: E2 0D 00 67 60 80 0D 02 02 05 00 C8 BC B3 A1 45 00 00 68 [09:49:15]Write i2c OK [09:49:15]MH_I2C_Read... [09:49:15]*** iso7816_exchange 80 0D 02 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 67 60 00 90 00 3B [09:49:15]RAPDU: 90 00 [09:49:15]wFMCommunicate OK [09:49:15]wFMCommunicate request_size=4 [09:49:15]MH_SAM_APDU [09:49:15]CAPDU: 80 0D 03 02 [09:49:15]Write to MH i2c: E2 08 00 68 60 80 0D 03 02 00 00 00 00 43 [09:49:15]Write i2c OK [09:49:15]MH_I2C_Read... [09:49:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:15]Read from MH i2c: E2 [09:49:15]MH_I2C_Read... [09:49:15]Read from MH i2c: E2 0B 00 [09:49:15]MH_I2C_Read... [09:49:15]Read from MH i2c: E2 0B 00 68 60 00 A0 52 68 D3 8E FD 54 08 90 00 58 [09:49:15]RAPDU: A0 52 68 D3 8E FD 54 08 90 00 [09:49:15]wFMCommunicate OK [09:49:15]SAM_PROTO_SignData done [09:49:15]FM_MakeSignedData done [09:49:15]CreateOFDProtocolMessage [09:49:15]wFMCommunicate request_size=4 [09:49:15]MH_SAM_APDU [09:49:15]CAPDU: 80 11 00 00 [09:49:15]Write to MH i2c: E2 08 00 69 60 80 11 00 00 00 00 00 00 43 [09:49:15]Write i2c OK [09:49:15]MH_I2C_Read... [09:49:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:15]Read from MH i2c: E2 [09:49:15]MH_I2C_Read... [09:49:15]Read from MH i2c: E2 17 00 [09:49:15]MH_I2C_Read... [09:49:15]Read from MH i2c: E2 17 00 69 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 90 [09:49:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:49:15]wFMCommunicate OK [09:49:15]CreateOFDProtocolMessage done [09:49:15]OFDSenderStorePacket 260571 [09:49:15]StoreOFDPacket docnum=260571 [09:49:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 A7 3F 07 01 9E 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 81 00 00 00 F4 03 04 00 9E C3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DB F9 03 00 35 04 06 00 5F C8 BC B3 A1 45 A0 52 68 D3 8E FD 54 08 [09:49:15]CheckFolder [09:49:15]dirname=/storage/ofd_packets [09:49:15]CheckFolder done [09:49:15]ProducePacketName [09:49:15]name=ofd_packets/00260571 [09:49:15]NVStorageSaveData ofd_packets/00260571 [09:49:15]File name is /storage/ofd_packets/00260571 [09:49:15]Write 301 bytes [09:49:15]NVStorageSaveData done [09:49:15]OFDSenderStorePacket done [09:49:15]KKMCreateOFDPacket done [09:49:15]NVStorageSaveData kkm_last_timestamp [09:49:15]File name is /storage/kkm_last_timestamp [09:49:15]Write 4 bytes [09:49:15]NVStorageSaveData done [09:49:15]ExternCall_PrintAddStr [09:49:15]wPrintStart [09:49:15]Write to MH i2c: 01 00 00 6A 60 CA [09:49:15]Write i2c OK [09:49:15]MH_I2C_Read... [09:49:15]Read from MH i2c: 01 [09:49:15]MH_I2C_Read... [09:49:15]Read from MH i2c: 01 07 00 [09:49:15]MH_I2C_Read... [09:49:15]Read from MH i2c: 01 07 00 6A 60 00 00 00 00 00 FF 0F DF [09:49:15]RasterBufferAndPrint [09:49:15]line Счет N : (1)1036115 [09:49:15]line ИНН: 02508201610067 [09:49:15]line Контрольно-Кассовый Чек [09:49:15]line ПРОДАЖА [09:49:15]line ТРК (МРК, ГНК) : 32 [09:49:15]line Товар: 2710124130 [09:49:15]line Аи-92-К-5 [09:49:15]line 29.500 * 67.80 [09:49:15]line = 2000.10 [09:49:15]line НДС 12% НСП 1% [09:49:15]line > о реализуемом товаре [09:49:15]line ОКРУГЛЕНИЕ: -0.10 [09:49:15]line ИТОГО: 2000.00 [09:49:15]line Внесено: 2000.00 [09:49:15]line СДАЧА: 0.00 [09:49:15]line НСП 1% : 17.70 [09:49:15]line НДС 12% : 212.40 [09:49:15]line Наличными: 2000.00 [09:49:15]line Безнал.: 0.00 [09:49:15]line Место: АЗС № 94 "Партнер Нефть" [09:49:15]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [09:49:15]line СНО: Общий режим [09:49:15]line Чек 129 18.08.2024 09:49 [09:49:15]line Смена: 449 ФФД: 1.0 [09:49:15]line ЗНМ: 0300000099 [09:49:15]line РНМ: 0000000000091865 [09:49:15]line Версия ККМ: 001 [09:49:15]line ФМ: 0000000000871820 [09:49:15]line ФД: 260571 [09:49:15]line ФПД: 105315763986757 [09:49:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T094918&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260571&fm=105315763986757&tin=02508201610067®Number=0000000000091865&sum=200000 [09:49:15]written 0, free lines is 4095 [09:49:15]OFD Sender: Processing packet 260571 [packets to send 192, broken 191] [09:49:15]ProducePacketName [09:49:15]name=ofd_packets/00260571 [09:49:15]OFD Sender: To server: pG, [09:49:15]CommunicateWithHost lk.salyk.kg:30040 [09:49:15]ConnectInit lk.salyk.kg [09:49:15]Connected sock=10 [09:49:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 A7 3F 07 01 9E 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 81 00 00 00 F4 03 04 00 9E C3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DB F9 03 00 35 04 06 00 5F C8 BC B3 A1 45 A0 52 68 D3 8E FD 54 08 [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 30 4F 00 00 00 12 13 47 00 26 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 30 10 04 04 00 DB F9 03 00 F4 03 04 00 F3 6C C1 66 B6 04 01 00 00 85 05 7E 7E 27 F0 7F 7F [09:49:16]CommunicateWithHost err = 0 [09:49:16]CheckOFDResponse [09:49:16]1017 (14) - 77093643461234 [09:49:16]1041 (16) - 0000000000871820 [09:49:16]1040 (4) - 260571 [09:49:16]1012 (4) - 18.08.2024 03:39 [09:49:16]1206 (1) - 0 [09:49:16]OFD Sender: Remove packet 260571 [09:49:16]ProducePacketName [09:49:16]name=ofd_packets/00260571 [09:49:16]NVStorageDeleteData [09:49:16]Write to MH i2c: 01 00 00 95 60 F5 [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 95 60 00 00 00 00 00 65 0C 6D [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 3177 [09:49:16]MH_Cut [09:49:16]Write to MH i2c: D1 01 00 9C 60 01 CE [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 9C 60 00 CD [09:49:16]Write to MH i2c: 01 00 00 9D 60 FD [09:49:16]Write i2c OK [09:49:16]MH_I2C_Read... [09:49:16]OFD Sender: No OFD packet to send [09:49:17]*** Cut start [09:49:17]*** Purtial cut [09:49:17]*** Stage 1: CUTSNS_PIN = 1 [09:49:19]Read from MH i2c: 01 [09:49:19]MH_I2C_Read... [09:49:19]*** Stop cut motor [09:49:19]*** Cut end [09:49:19]Read from MH i2c: 01 07 00 [09:49:19]MH_I2C_Read... [09:49:19]Read from MH i2c: 01 07 00 9D 60 00 00 00 00 00 FF 0F 12 [09:49:19]process_action close_receipt done [09:49:19]requested_data is exist [09:49:19]produce_requested_data [09:49:19]requested_item fm.sn is exist - process it [09:49:19]wFMCommunicate request_size=4 [09:49:19]MH_SAM_APDU [09:49:19]CAPDU: 80 11 00 00 [09:49:19]Write to MH i2c: E2 08 00 9E 60 80 11 00 00 00 00 00 00 78 [09:49:19]Write i2c OK [09:49:19]MH_I2C_Read... [09:49:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:19]Read from MH i2c: E2 [09:49:19]MH_I2C_Read... [09:49:19]Read from MH i2c: E2 17 00 [09:49:19]MH_I2C_Read... [09:49:19]Read from MH i2c: E2 17 00 9E 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C5 [09:49:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:49:19]wFMCommunicate OK [09:49:19]requested_item fd.num is exist - process it [09:49:19]SAM_PROTO_GetFieldsCounters [09:49:19]wFMCommunicate request_size=4 [09:49:19]MH_SAM_APDU [09:49:19]CAPDU: 80 13 00 00 [09:49:19]Write to MH i2c: E2 08 00 9F 60 80 13 00 00 00 00 00 00 7B [09:49:19]Write i2c OK [09:49:19]MH_I2C_Read... [09:49:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:19]Read from MH i2c: E2 [09:49:19]MH_I2C_Read... [09:49:19]Read from MH i2c: E2 62 00 [09:49:19]MH_I2C_Read... [09:49:19]Read from MH i2c: E2 62 00 9F 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 DB F9 03 00 0E 04 04 00 C1 01 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 B6 [09:49:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 DB F9 03 00 0E 04 04 00 C1 01 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 [09:49:19]wFMCommunicate OK [09:49:19]SAM_PROTO_GetFieldsCounters done [09:49:19]requested_item shift.num is exist - process it [09:49:19]requested_item shift.opened is exist - process it [09:49:19]req_shift_opened [09:49:19]FM_GetShiftState [09:49:19]SAM_PROTO_GetShiftState [09:49:19]wFMCommunicate request_size=4 [09:49:19]MH_SAM_APDU [09:49:19]CAPDU: 80 13 01 00 [09:49:19]Write to MH i2c: E2 08 00 A0 60 80 13 01 00 00 00 00 00 7D [09:49:19]Write i2c OK [09:49:19]MH_I2C_Read... [09:49:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:19]Read from MH i2c: E2 [09:49:19]MH_I2C_Read... [09:49:19]Read from MH i2c: E2 0E 00 [09:49:19]MH_I2C_Read... [09:49:19]Read from MH i2c: E2 0E 00 A0 60 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 BA [09:49:19]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:49:19]wFMCommunicate OK [09:49:19]SAM_PROTO_GetShiftState done [09:49:19]FM_GetShiftState done [09:49:19]req_shift_opened done [09:49:19]requested_item shift.open_date is exist - process it [09:49:19]req_shift_open_date [09:49:19]req_shift_open_date done [09:49:19]produce_requested_data done [09:49:19]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260571,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [09:49:19]process_action_free close_receipt [09:49:19]json_value_free [09:49:19]json_value_free done [09:49:19]process_json_proto returns [09:49:19]Send response to host [09:49:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260571,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [09:49:19]free response buf [09:49:19]execute_script done [09:49:19]execute_script returns [09:49:19]free content buf [09:49:19]Sock 7.Close socket [09:49:19]Sock 7.Thread stoped [09:49:21]OFD Sender: No OFD packet to send [09:49:26]OFD Sender: No OFD packet to send [09:49:31]OFD Sender: No OFD packet to send [09:49:36]OFD Sender: No OFD packet to send [09:49:41]OFD Sender: No OFD packet to send [09:49:46]OFD Sender: No OFD packet to send [09:49:51]OFD Sender: No OFD packet to send [09:49:56]OFD Sender: No OFD packet to send [09:50:01]OFD Sender: No OFD packet to send [09:50:06]OFD Sender: No OFD packet to send [09:50:11]OFD Sender: No OFD packet to send [09:50:16]OFD Sender: No OFD packet to send [09:50:21]OFD Sender: No OFD packet to send [09:50:26]OFD Sender: No OFD packet to send [09:50:31]OFD Sender: No OFD packet to send [09:50:36]OFD Sender: No OFD packet to send [09:50:41]OFD Sender: No OFD packet to send [09:50:46]OFD Sender: No OFD packet to send [09:50:51]OFD Sender: No OFD packet to send [09:50:56]OFD Sender: No OFD packet to send [09:51:01]OFD Sender: No OFD packet to send [09:51:06]OFD Sender: No OFD packet to send [09:51:11]OFD Sender: No OFD packet to send [09:51:16]OFD Sender: No OFD packet to send [09:51:21]OFD Sender: No OFD packet to send [09:51:26]OFD Sender: No OFD packet to send [09:51:31]OFD Sender: No OFD packet to send [09:51:35]accept exits with 9 [09:51:35]New connection [09:51:35]New thread 3066473828 created [09:51:35]Thread 3066617188 joined [09:51:35]Waiting for new connection... [09:51:35] Sock 9.Parse request [09:51:35]Sock 9.Check first char [09:51:35]Sock 9.First char is OK [09:51:35]request: POST /json_proto HTTP/1.0 [09:51:35]Method: POST [09:51:35]URL: /json_proto [09:51:35]Method is POST - this is cgi request [09:51:35]url: /json_proto [09:51:35]query_string will be loaded in cgi processing [09:51:35]execute_cgi json_proto POST (null) [09:51:35]execute_cgi path=json_proto method=POST [09:51:35]POST find Content-Length [09:51:35]Host: 172.17.55.133:8080 [09:51:35]Content-Length: 678 [09:51:35]Content-Type: application/json [09:51:35] [09:51:35]POST finish read [09:51:35]Found Content-Length = 678 [09:51:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:51:35]execute_script... [09:51: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)1036117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:51:35]POST & json_proto [09:51:35]process_json_proto [09:51:35]json parsed OK: [09:51:35]protocol is kg_v1.0 [09:51:35]action value=close_receipt [09:51:35]process_action close_receipt [09:51:35]cmd_close_receipt [09:51:35]MH_GetDate [09:51:35]Write to MH i2c: F0 00 00 A1 60 F0 [09:51:35]Write i2c OK [09:51:35]MH_I2C_Read... [09:51:35]Read from MH i2c: F0 [09:51:35]MH_I2C_Read... [09:51:35]Read from MH i2c: F0 09 00 [09:51:35]MH_I2C_Read... [09:51:35]Read from MH i2c: F0 09 00 A1 60 00 2B C4 C1 66 34 48 D8 65 C8 [09:51:35]GetLastDocTimeStamp 1723974558 [09:51:35]current date 1723974699 [09:51:35]FM_GetShiftState [09:51:35]SAM_PROTO_GetShiftState [09:51:35]wFMCommunicate request_size=4 [09:51:35]MH_SAM_APDU [09:51:35]CAPDU: 80 13 01 00 [09:51:35]Write to MH i2c: E2 08 00 A2 60 80 13 01 00 00 00 00 00 7F [09:51:35]Write i2c OK [09:51:35]MH_I2C_Read... [09:51:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:35]Read from MH i2c: E2 [09:51:35]MH_I2C_Read... [09:51:35]Read from MH i2c: E2 0E 00 [09:51:35]MH_I2C_Read... [09:51:35]Read from MH i2c: E2 0E 00 A2 60 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 BC [09:51:35]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:51:35]wFMCommunicate OK [09:51:35]SAM_PROTO_GetShiftState done [09:51:35]FM_GetShiftState done [09:51:35]opened in 1723940556 [09:51:35]opened+sec_in_day 1724026956 [09:51:35]quantity*price = 50036 [09:51:35]sum+1 = 50037 [09:51:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 130 18.08.2024 09:51 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260572 ФПД: 15862875480871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T095139&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260572&fm=15862875480871&tin=02508201610067®Number=0000000000091865&sum=50000 [09:51:36]StoreToDocumentArchive [09:51:36]shift 449 fd 260572 [09:51:36]save to /storage/0449/doc_00260572 [09:51:36]save last doc name /storage/0449/doc_00260572 to /storage/kkm_last_doc_name [09:51:36]save OK [09:51:36]Clear old archive folders... [09:51:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:51:36]tlvbuf is 004534C0 [09:51:36]SAM_PROTO_ClearQueue [09:51:36]wFMCommunicate request_size=4 [09:51:36]MH_SAM_APDU [09:51:36]CAPDU: 80 09 00 00 [09:51:36]Write to MH i2c: E2 08 00 AF 60 80 09 00 00 00 00 00 00 81 [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:36]Read from MH i2c: E2 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 03 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 03 00 AF 60 00 90 00 83 [09:51:36]RAPDU: 90 00 [09:51:36]wFMCommunicate OK [09:51:36]SAM_PROTO_ClearQueue done [09:51:36]KKMCreateOFDPacket [09:51:36]OFDProtocolAddRootSTLVToBuf [09:51:36]FM_MakeSignedData [09:51:36]FM_MakeSignedData [09:51:36]SAM_PROTO_SignData [09:51:36]wFMCommunicate request_size=4 [09:51:36]MH_SAM_APDU [09:51:36]CAPDU: 80 0D 01 02 [09:51:36]Write to MH i2c: E2 08 00 B0 60 80 0D 01 02 00 00 00 00 89 [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:36]Read from MH i2c: E2 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 03 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 03 00 B0 60 00 90 00 84 [09:51:36]RAPDU: 90 00 [09:51:36]wFMCommunicate OK [09:51:36]wFMCommunicate request_size=255 [09:51:36]MH_SAM_APDU [09:51:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 82 00 00 00 F4 03 04 00 2B C4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DC F9 03 00 35 04 06 00 0E [09:51:36]Write to MH i2c: E2 02 01 B1 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 82 00 00 00 F4 03 04 00 2B C4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DC F9 03 00 35 04 06 00 0E 00 00 46 [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:36]Read from MH i2c: E2 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 03 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 03 00 B1 60 00 90 00 85 [09:51:36]RAPDU: 90 00 [09:51:36]wFMCommunicate OK [09:51:36]wFMCommunicate request_size=10 [09:51:36]MH_SAM_APDU [09:51:36]CAPDU: 80 0D 02 02 05 6D 5D 0E E3 27 [09:51:36]Write to MH i2c: E2 0D 00 B2 60 80 0D 02 02 05 00 6D 5D 0E E3 27 00 00 78 [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:36]Read from MH i2c: E2 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 03 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 03 00 B2 60 00 90 00 86 [09:51:36]RAPDU: 90 00 [09:51:36]wFMCommunicate OK [09:51:36]wFMCommunicate request_size=4 [09:51:36]MH_SAM_APDU [09:51:36]CAPDU: 80 0D 03 02 [09:51:36]Write to MH i2c: E2 08 00 B3 60 80 0D 03 02 00 00 00 00 8E [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:36]Read from MH i2c: E2 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 0B 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 0B 00 B3 60 00 68 2A 56 57 34 19 B0 43 90 00 0E [09:51:36]RAPDU: 68 2A 56 57 34 19 B0 43 90 00 [09:51:36]wFMCommunicate OK [09:51:36]SAM_PROTO_SignData done [09:51:36]FM_MakeSignedData done [09:51:36]CreateOFDProtocolMessage [09:51:36]wFMCommunicate request_size=4 [09:51:36]MH_SAM_APDU [09:51:36]CAPDU: 80 11 00 00 [09:51:36]Write to MH i2c: E2 08 00 B4 60 80 11 00 00 00 00 00 00 8E [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:36]Read from MH i2c: E2 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 17 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 17 00 B4 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 DB [09:51:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:51:36]wFMCommunicate OK [09:51:36]CreateOFDProtocolMessage done [09:51:36]OFDSenderStorePacket 260572 [09:51:36]StoreOFDPacket docnum=260572 [09:51:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 17 E9 07 01 07 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 82 00 00 00 F4 03 04 00 2B C4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DC F9 03 00 35 04 06 00 0E 6D 5D 0E E3 27 68 2A 56 57 34 19 B0 43 [09:51:36]CheckFolder [09:51:36]dirname=/storage/ofd_packets [09:51:36]CheckFolder done [09:51:36]ProducePacketName [09:51:36]name=ofd_packets/00260572 [09:51:36]NVStorageSaveData ofd_packets/00260572 [09:51:36]File name is /storage/ofd_packets/00260572 [09:51:36]Write 301 bytes [09:51:36]NVStorageSaveData done [09:51:36]OFDSenderStorePacket done [09:51:36]KKMCreateOFDPacket done [09:51:36]NVStorageSaveData kkm_last_timestamp [09:51:36]File name is /storage/kkm_last_timestamp [09:51:36]Write 4 bytes [09:51:36]NVStorageSaveData done [09:51:36]ExternCall_PrintAddStr [09:51:36]wPrintStart [09:51:36]Write to MH i2c: 01 00 00 B5 60 15 [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: 01 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: 01 07 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: 01 07 00 B5 60 00 00 00 00 00 FF 0F 2A [09:51:36]RasterBufferAndPrint [09:51:36]line Счет N : (1)1036117 [09:51:36]line ИНН: 02508201610067 [09:51:36]line Контрольно-Кассовый Чек [09:51:36]line ПРОДАЖА [09:51:36]line ТРК (МРК, ГНК) : 22 [09:51:36]line Товар: 2710124130 [09:51:36]line Аи-92-К-5 [09:51:36]line 7.380 * 67.80 [09:51:36]line = 500.36 [09:51:36]line НДС 12% НСП 1% [09:51:36]line > о реализуемом товаре [09:51:36]line ОКРУГЛЕНИЕ: -0.36 [09:51:36]line ИТОГО: 500.00 [09:51:36]line Внесено: 500.00 [09:51:36]line СДАЧА: 0.00 [09:51:36]line НСП 1% : 4.43 [09:51:36]line НДС 12% : 53.14 [09:51:36]line Наличными: 500.00 [09:51:36]line Безнал.: 0.00 [09:51:36]line Место: АЗС № 94 "Партнер Нефть" [09:51:36]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [09:51:36]line СНО: Общий режим [09:51:36]line Чек 130 18.08.2024 09:51 [09:51:36]line Смена: 449 ФФД: 1.0 [09:51:36]line ЗНМ: 0300000099 [09:51:36]line РНМ: 0000000000091865 [09:51:36]line Версия ККМ: 001 [09:51:36]line ФМ: 0000000000871820 [09:51:36]line ФД: 260572 [09:51:36]line ФПД: 15862875480871 [09:51:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T095139&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260572&fm=15862875480871&tin=02508201610067®Number=0000000000091865&sum=50000 [09:51:36]written 0, free lines is 4095 [09:51:36]OFD Sender: Processing packet 260572 [packets to send 192, broken 191] [09:51:36]ProducePacketName [09:51:36]name=ofd_packets/00260572 [09:51:36]OFD Sender: To server: pG, [09:51:36]CommunicateWithHost lk.salyk.kg:30040 [09:51:36]ConnectInit lk.salyk.kg [09:51:37]Connected sock=10 [09:51: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 30 0F 01 00 00 17 E9 07 01 07 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 82 00 00 00 F4 03 04 00 2B C4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DC F9 03 00 35 04 06 00 0E 6D 5D 0E E3 27 68 2A 56 57 34 19 B0 43 [09:51: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 30 4F 00 00 00 C8 41 47 00 43 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 30 10 04 04 00 DC F9 03 00 F4 03 04 00 80 6D C1 66 B6 04 01 00 00 7F 29 23 88 00 2F 7E E4 [09:51:37]CommunicateWithHost err = 0 [09:51:37]CheckOFDResponse [09:51:37]1017 (14) - 77093643461234 [09:51:37]1041 (16) - 0000000000871820 [09:51:37]1040 (4) - 260572 [09:51:37]1012 (4) - 18.08.2024 03:41 [09:51:37]1206 (1) - 0 [09:51:37]OFD Sender: Remove packet 260572 [09:51:37]ProducePacketName [09:51:37]name=ofd_packets/00260572 [09:51:37]NVStorageDeleteData [09:51:37]Write to MH i2c: 01 00 00 E0 60 40 [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: 01 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: 01 07 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: 01 07 00 E0 60 00 00 00 00 00 66 0C B9 [09:51:37]RasterBufferAndPrint [09:51:37]line [09:51:37]line [09:51:37]line [09:51:37]line [09:51:37]line [09:51:37]written 0, free lines is 3178 [09:51:37]MH_Cut [09:51:37]Write to MH i2c: D1 01 00 E7 60 01 19 [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: D1 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: D1 01 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: D1 01 00 E7 60 00 18 [09:51:37]Write to MH i2c: 01 00 00 E8 60 48 [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]OFD Sender: No OFD packet to send [09:51:38]*** Cut start [09:51:38]*** Purtial cut [09:51:38]*** Stage 1: CUTSNS_PIN = 1 [09:51:40]Read from MH i2c: 01 [09:51:40]MH_I2C_Read... [09:51:40]*** Stop cut motor [09:51:40]*** Cut end [09:51:40]Read from MH i2c: 01 07 00 [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: 01 07 00 E8 60 00 00 00 00 00 FF 0F 5D [09:51:40]process_action close_receipt done [09:51:40]requested_data is exist [09:51:40]produce_requested_data [09:51:40]requested_item fm.sn is exist - process it [09:51:40]wFMCommunicate request_size=4 [09:51:40]MH_SAM_APDU [09:51:40]CAPDU: 80 11 00 00 [09:51:40]Write to MH i2c: E2 08 00 E9 60 80 11 00 00 00 00 00 00 C3 [09:51:40]Write i2c OK [09:51:40]MH_I2C_Read... [09:51:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:40]Read from MH i2c: E2 [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: E2 17 00 [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: E2 17 00 E9 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 10 [09:51:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:51:40]wFMCommunicate OK [09:51:40]requested_item fd.num is exist - process it [09:51:40]SAM_PROTO_GetFieldsCounters [09:51:40]wFMCommunicate request_size=4 [09:51:40]MH_SAM_APDU [09:51:40]CAPDU: 80 13 00 00 [09:51:40]Write to MH i2c: E2 08 00 EA 60 80 13 00 00 00 00 00 00 C6 [09:51:40]Write i2c OK [09:51:40]MH_I2C_Read... [09:51:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:40]Read from MH i2c: E2 [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: E2 62 00 [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: E2 62 00 EA 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 DC F9 03 00 0E 04 04 00 C1 01 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 05 [09:51: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 DC F9 03 00 0E 04 04 00 C1 01 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 [09:51:40]wFMCommunicate OK [09:51:40]SAM_PROTO_GetFieldsCounters done [09:51:40]requested_item shift.num is exist - process it [09:51:40]requested_item shift.opened is exist - process it [09:51:40]req_shift_opened [09:51:40]FM_GetShiftState [09:51:40]SAM_PROTO_GetShiftState [09:51:40]wFMCommunicate request_size=4 [09:51:40]MH_SAM_APDU [09:51:40]CAPDU: 80 13 01 00 [09:51:40]Write to MH i2c: E2 08 00 EB 60 80 13 01 00 00 00 00 00 C8 [09:51:40]Write i2c OK [09:51:40]MH_I2C_Read... [09:51:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:40]Read from MH i2c: E2 [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: E2 0E 00 [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: E2 0E 00 EB 60 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 05 [09:51:40]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:51:40]wFMCommunicate OK [09:51:40]SAM_PROTO_GetShiftState done [09:51:40]FM_GetShiftState done [09:51:40]req_shift_opened done [09:51:40]requested_item shift.open_date is exist - process it [09:51:40]req_shift_open_date [09:51:40]req_shift_open_date done [09:51:40]produce_requested_data done [09:51:40]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260572,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [09:51:40]process_action_free close_receipt [09:51:40]json_value_free [09:51:40]json_value_free done [09:51:40]process_json_proto returns [09:51:40]Send response to host [09:51:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260572,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [09:51:40]free response buf [09:51:40]execute_script done [09:51:40]execute_script returns [09:51:40]free content buf [09:51:40]Sock 9.Close socket [09:51:40]Sock 9.Thread stoped [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:01]accept exits with 7 [09:52:01]New connection [09:52:01]New thread 3066617188 created [09:52:01]Thread 3066473828 joined [09:52:01]Waiting for new connection... [09:52:01] Sock 7.Parse request [09:52:01]Sock 7.Check first char [09:52:01]Sock 7.First char is OK [09:52:01]request: POST /json_proto HTTP/1.0 [09:52:01]Method: POST [09:52:01]URL: /json_proto [09:52:01]Method is POST - this is cgi request [09:52:01]url: /json_proto [09:52:01]query_string will be loaded in cgi processing [09:52:01]execute_cgi json_proto POST (null) [09:52:01]execute_cgi path=json_proto method=POST [09:52:01]POST find Content-Length [09:52:01]Host: 172.17.55.133:8080 [09:52:01]Content-Length: 793 [09:52:01]Content-Type: application/json [09:52:01] [09:52:01]POST finish read [09:52:01]Found Content-Length = 793 [09:52:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.750, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A29831", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:01]execute_script... [09:52: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)1036116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.750, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A29831", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:01]POST & json_proto [09:52:01]process_json_proto [09:52:01]json parsed OK: [09:52:01]protocol is kg_v1.0 [09:52:01]action value=close_receipt [09:52:01]process_action close_receipt [09:52:01]cmd_close_receipt [09:52:01]MH_GetDate [09:52:01]Write to MH i2c: F0 00 00 EC 60 3B [09:52:01]Write i2c OK [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: F0 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: F0 09 00 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: F0 09 00 EC 60 00 45 C4 C1 66 34 48 D8 65 2D [09:52:01]GetLastDocTimeStamp 1723974699 [09:52:01]current date 1723974725 [09:52:01]FM_GetShiftState [09:52:01]SAM_PROTO_GetShiftState [09:52:01]wFMCommunicate request_size=4 [09:52:01]MH_SAM_APDU [09:52:01]CAPDU: 80 13 01 00 [09:52:01]Write to MH i2c: E2 08 00 ED 60 80 13 01 00 00 00 00 00 CA [09:52:01]Write i2c OK [09:52:01]MH_I2C_Read... [09:52:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:01]Read from MH i2c: E2 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: E2 0E 00 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: E2 0E 00 ED 60 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 07 [09:52:01]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:52:01]wFMCommunicate OK [09:52:01]SAM_PROTO_GetShiftState done [09:52:01]FM_GetShiftState done [09:52:01]opened in 1723940556 [09:52:01]opened+sec_in_day 1724026956 [09:52:01]quantity*price = 0 [09:52:01]sum+1 = 1 [09:52:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 131 18.08.2024 09:52 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: Топливная Карта 29831 ФМ: 0000000000871820 ФД: 260573 ФПД: 30152690996369 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T095205&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260573&fm=30152690996369&tin=02508201610067®Number=0000000000091865&sum=0 [09:52:02]StoreToDocumentArchive [09:52:02]shift 449 fd 260573 [09:52:02]save to /storage/0449/doc_00260573 [09:52:02]save last doc name /storage/0449/doc_00260573 to /storage/kkm_last_doc_name [09:52:02]save OK [09:52:02]Clear old archive folders... [09:52:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:52:02]tlvbuf is 00540880 [09:52:02]SAM_PROTO_ClearQueue [09:52:02]wFMCommunicate request_size=4 [09:52:02]MH_SAM_APDU [09:52:02]CAPDU: 80 09 00 00 [09:52:02]Write to MH i2c: E2 08 00 FA 60 80 09 00 00 00 00 00 00 CC [09:52:02]Write i2c OK [09:52:02]MH_I2C_Read... [09:52:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:02]Read from MH i2c: E2 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 03 00 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 03 00 FA 60 00 90 00 CE [09:52:02]RAPDU: 90 00 [09:52:02]wFMCommunicate OK [09:52:02]SAM_PROTO_ClearQueue done [09:52:02]KKMCreateOFDPacket [09:52:02]OFDProtocolAddRootSTLVToBuf [09:52:02]FM_MakeSignedData [09:52:02]FM_MakeSignedData [09:52:02]SAM_PROTO_SignData [09:52:02]wFMCommunicate request_size=4 [09:52:02]MH_SAM_APDU [09:52:02]CAPDU: 80 0D 01 02 [09:52:02]Write to MH i2c: E2 08 00 FB 60 80 0D 01 02 00 00 00 00 D4 [09:52:02]Write i2c OK [09:52:02]MH_I2C_Read... [09:52:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:02]Read from MH i2c: E2 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 03 00 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 03 00 FB 60 00 90 00 CF [09:52:02]RAPDU: 90 00 [09:52:02]wFMCommunicate OK [09:52:02]wFMCommunicate request_size=255 [09:52:02]MH_SAM_APDU [09:52:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 51 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 83 00 00 00 F4 03 04 00 45 C4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DD F9 03 00 35 04 06 00 1B [09:52:02]Write to MH i2c: E2 02 01 FC 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 51 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 83 00 00 00 F4 03 04 00 45 C4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DD F9 03 00 35 04 06 00 1B 00 00 A4 [09:52:02]Write i2c OK [09:52:02]MH_I2C_Read... [09:52:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:02]Read from MH i2c: E2 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 03 00 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 03 00 FC 60 00 90 00 D0 [09:52:02]RAPDU: 90 00 [09:52:02]wFMCommunicate OK [09:52:02]wFMCommunicate request_size=10 [09:52:02]MH_SAM_APDU [09:52:02]CAPDU: 80 0D 02 02 05 6C 78 6F 94 91 [09:52:02]Write to MH i2c: E2 0D 00 FD 60 80 0D 02 02 05 00 6C 78 6F 94 91 00 00 59 [09:52:02]Write i2c OK [09:52:02]MH_I2C_Read... [09:52:02]OFD Sender: No OFD packet to send [09:52:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:02]Read from MH i2c: E2 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 03 00 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 03 00 FD 60 00 90 00 D1 [09:52:02]RAPDU: 90 00 [09:52:02]wFMCommunicate OK [09:52:02]wFMCommunicate request_size=4 [09:52:02]MH_SAM_APDU [09:52:02]CAPDU: 80 0D 03 02 [09:52:02]Write to MH i2c: E2 08 00 FE 60 80 0D 03 02 00 00 00 00 D9 [09:52:02]Write i2c OK [09:52:02]MH_I2C_Read... [09:52:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:02]Read from MH i2c: E2 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 0B 00 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 0B 00 FE 60 00 12 D2 30 75 0B CA 2E FB 90 00 61 [09:52:02]RAPDU: 12 D2 30 75 0B CA 2E FB 90 00 [09:52:02]wFMCommunicate OK [09:52:02]SAM_PROTO_SignData done [09:52:02]FM_MakeSignedData done [09:52:02]CreateOFDProtocolMessage [09:52:02]wFMCommunicate request_size=4 [09:52:02]MH_SAM_APDU [09:52:02]CAPDU: 80 11 00 00 [09:52:02]Write to MH i2c: E2 08 00 FF 60 80 11 00 00 00 00 00 00 D9 [09:52:02]Write i2c OK [09:52:02]MH_I2C_Read... [09:52:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:02]Read from MH i2c: E2 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 17 00 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 17 00 FF 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 26 [09:52:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:52:02]wFMCommunicate OK [09:52:02]CreateOFDProtocolMessage done [09:52:02]OFDSenderStorePacket 260573 [09:52:02]StoreOFDPacket docnum=260573 [09:52:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 EE 5E 07 01 F6 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 51 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 83 00 00 00 F4 03 04 00 45 C4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DD F9 03 00 35 04 06 00 1B 6C 78 6F 94 91 12 D2 30 75 0B CA 2E FB [09:52:02]CheckFolder [09:52:02]dirname=/storage/ofd_packets [09:52:02]CheckFolder done [09:52:02]ProducePacketName [09:52:02]name=ofd_packets/00260573 [09:52:02]NVStorageSaveData ofd_packets/00260573 [09:52:02]File name is /storage/ofd_packets/00260573 [09:52:02]Write 301 bytes [09:52:02]NVStorageSaveData done [09:52:02]OFDSenderStorePacket done [09:52:02]KKMCreateOFDPacket done [09:52:02]NVStorageSaveData kkm_last_timestamp [09:52:02]File name is /storage/kkm_last_timestamp [09:52:02]Write 4 bytes [09:52:02]NVStorageSaveData done [09:52:02]ExternCall_PrintAddStr [09:52:02]wPrintStart [09:52:02]Write to MH i2c: 01 00 00 00 61 61 [09:52:02]Write i2c OK [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: 01 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: 01 07 00 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: 01 07 00 00 61 00 00 00 00 00 FF 0F 76 [09:52:02]RasterBufferAndPrint [09:52:02]line Счет N : (1)1036116 [09:52:02]line ИНН: 02508201610067 [09:52:02]line Контрольно-Кассовый Чек [09:52:02]line ПРОДАЖА [09:52:02]line ТРК (МРК, ГНК) : 12 [09:52:02]line Товар: 2710124130 [09:52:02]line Аи-92-К-5 [09:52:02]line 20.750 * 0.00 [09:52:02]line = 0.00 [09:52:02]line НДС 12% НСП 1% [09:52:02]line > о реализуемом товаре [09:52:02]line ИТОГО: 0.00 [09:52:02]line НСП 1% : 0.00 [09:52:02]line НДС 12% : 0.00 [09:52:02]line Наличными: 0.00 [09:52:02]line Безнал.: 0.00 [09:52:02]line Место: АЗС № 94 "Партнер Нефть" [09:52:02]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [09:52:02]line СНО: Общий режим [09:52:02]line Чек 131 18.08.2024 09:52 [09:52:02]line Смена: 449 ФФД: 1.0 [09:52:02]line ЗНМ: 0300000099 [09:52:02]line РНМ: 0000000000091865 [09:52:02]line Версия ККМ: 001 [09:52:02]line Талоны: Топливная Карта [09:52:02]line 29831 [09:52:02]line ФМ: 0000000000871820 [09:52:02]line ФД: 260573 [09:52:02]line ФПД: 30152690996369 [09:52:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T095205&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260573&fm=30152690996369&tin=02508201610067®Number=0000000000091865&sum=0 [09:52:03]OFD Sender: Processing packet 260573 [packets to send 192, broken 191] [09:52:03]ProducePacketName [09:52:03]name=ofd_packets/00260573 [09:52:03]OFD Sender: To server: pG, [09:52:03]CommunicateWithHost lk.salyk.kg:30040 [09:52:03]ConnectInit lk.salyk.kg [09:52:03]written 0, free lines is 4095 [09:52:03]Connected sock=10 [09:52: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 30 0F 01 00 00 EE 5E 07 01 F6 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 51 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 83 00 00 00 F4 03 04 00 45 C4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DD F9 03 00 35 04 06 00 1B 6C 78 6F 94 91 12 D2 30 75 0B CA 2E FB [09:52: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 30 4F 00 00 00 58 C0 47 00 A8 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 30 10 04 04 00 DD F9 03 00 F4 03 04 00 9A 6D C1 66 B6 04 01 00 00 25 41 F8 22 DB 54 5F 45 [09:52:03]CommunicateWithHost err = 0 [09:52:03]CheckOFDResponse [09:52:03]1017 (14) - 77093643461234 [09:52:03]1041 (16) - 0000000000871820 [09:52:03]1040 (4) - 260573 [09:52:03]1012 (4) - 18.08.2024 03:42 [09:52:03]1206 (1) - 0 [09:52:03]OFD Sender: Remove packet 260573 [09:52:03]ProducePacketName [09:52:03]name=ofd_packets/00260573 [09:52:03]NVStorageDeleteData [09:52:03]Write to MH i2c: 01 00 00 2A 61 8B [09:52:03]Write i2c OK [09:52:03]MH_I2C_Read... [09:52:03]Read from MH i2c: 01 [09:52:03]MH_I2C_Read... [09:52:03]Read from MH i2c: 01 07 00 [09:52:03]MH_I2C_Read... [09:52:03]Read from MH i2c: 01 07 00 2A 61 00 00 00 00 00 98 0C 36 [09:52:03]RasterBufferAndPrint [09:52:03]line [09:52:03]line [09:52:03]line [09:52:03]line [09:52:03]line [09:52:03]written 0, free lines is 3228 [09:52:03]MH_Cut [09:52:03]Write to MH i2c: D1 01 00 31 61 01 64 [09:52:03]Write i2c OK [09:52:03]MH_I2C_Read... [09:52:03]Read from MH i2c: D1 [09:52:03]MH_I2C_Read... [09:52:03]Read from MH i2c: D1 01 00 [09:52:03]MH_I2C_Read... [09:52:03]Read from MH i2c: D1 01 00 31 61 00 63 [09:52:03]Write to MH i2c: 01 00 00 32 61 93 [09:52:03]Write i2c OK [09:52:03]MH_I2C_Read... [09:52:04]OFD Sender: No OFD packet to send [09:52:04]*** Cut start [09:52:04]*** Purtial cut [09:52:04]*** Stage 1: CUTSNS_PIN = 1 [09:52:06]Read from MH i2c: 01 [09:52:06]MH_I2C_Read... [09:52:06]*** Stop cut motor [09:52:06]*** Cut end [09:52:06]Read from MH i2c: 01 07 00 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: 01 07 00 32 61 00 00 00 00 00 FF 0F A8 [09:52:06]process_action close_receipt done [09:52:06]requested_data is exist [09:52:06]produce_requested_data [09:52:06]requested_item fm.sn is exist - process it [09:52:06]wFMCommunicate request_size=4 [09:52:06]MH_SAM_APDU [09:52:06]CAPDU: 80 11 00 00 [09:52:06]Write to MH i2c: E2 08 00 33 61 80 11 00 00 00 00 00 00 0E [09:52:06]Write i2c OK [09:52:06]MH_I2C_Read... [09:52:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:06]Read from MH i2c: E2 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: E2 17 00 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: E2 17 00 33 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 5B [09:52:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:52:06]wFMCommunicate OK [09:52:06]requested_item fd.num is exist - process it [09:52:06]SAM_PROTO_GetFieldsCounters [09:52:06]wFMCommunicate request_size=4 [09:52:06]MH_SAM_APDU [09:52:06]CAPDU: 80 13 00 00 [09:52:06]Write to MH i2c: E2 08 00 34 61 80 13 00 00 00 00 00 00 11 [09:52:06]Write i2c OK [09:52:06]MH_I2C_Read... [09:52:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:07]Read from MH i2c: E2 [09:52:07]MH_I2C_Read... [09:52:07]Read from MH i2c: E2 62 00 [09:52:07]MH_I2C_Read... [09:52:07]Read from MH i2c: E2 62 00 34 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 DD F9 03 00 0E 04 04 00 C1 01 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 54 [09:52: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 DD F9 03 00 0E 04 04 00 C1 01 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 [09:52:07]wFMCommunicate OK [09:52:07]SAM_PROTO_GetFieldsCounters done [09:52:07]requested_item shift.num is exist - process it [09:52:07]requested_item shift.opened is exist - process it [09:52:07]req_shift_opened [09:52:07]FM_GetShiftState [09:52:07]SAM_PROTO_GetShiftState [09:52:07]wFMCommunicate request_size=4 [09:52:07]MH_SAM_APDU [09:52:07]CAPDU: 80 13 01 00 [09:52:07]Write to MH i2c: E2 08 00 35 61 80 13 01 00 00 00 00 00 13 [09:52:07]Write i2c OK [09:52:07]MH_I2C_Read... [09:52:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:07]Read from MH i2c: E2 [09:52:07]MH_I2C_Read... [09:52:07]Read from MH i2c: E2 0E 00 [09:52:07]MH_I2C_Read... [09:52:07]Read from MH i2c: E2 0E 00 35 61 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 50 [09:52:07]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:52:07]wFMCommunicate OK [09:52:07]SAM_PROTO_GetShiftState done [09:52:07]FM_GetShiftState done [09:52:07]req_shift_opened done [09:52:07]requested_item shift.open_date is exist - process it [09:52:07]req_shift_open_date [09:52:07]req_shift_open_date done [09:52:07]produce_requested_data done [09:52:07]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260573,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [09:52:07]process_action_free close_receipt [09:52:07]json_value_free [09:52:07]json_value_free done [09:52:07]process_json_proto returns [09:52:07]Send response to host [09:52:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260573,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [09:52:07]free response buf [09:52:07]execute_script done [09:52:07]execute_script returns [09:52:07]free content buf [09:52:07]Sock 7.Close socket [09:52:07]Sock 7.Thread stoped [09:52:09]OFD Sender: No OFD packet to send [09:52:14]OFD Sender: No OFD packet to send [09:52:19]OFD Sender: No OFD packet to send [09:52:24]OFD Sender: No OFD packet to send [09:52:29]OFD Sender: No OFD packet to send [09:52:29]accept exits with 9 [09:52:29]New connection [09:52:29]New thread 3066473828 created [09:52:29]Thread 3066617188 joined [09:52:29]Waiting for new connection... [09:52:29] Sock 9.Parse request [09:52:29]Sock 9.Check first char [09:52:29]Sock 9.First char is OK [09:52:29]request: POST /json_proto HTTP/1.0 [09:52:29]Method: POST [09:52:29]URL: /json_proto [09:52:29]Method is POST - this is cgi request [09:52:29]url: /json_proto [09:52:29]query_string will be loaded in cgi processing [09:52:29]execute_cgi json_proto POST (null) [09:52:29]execute_cgi path=json_proto method=POST [09:52:29]POST find Content-Length [09:52:29]Host: 172.17.55.133:8080 [09:52:29]Content-Length: 678 [09:52:29]Content-Type: application/json [09:52:29] [09:52:29]POST finish read [09:52:29]Found Content-Length = 678 [09:52:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:52:29]execute_script... [09: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)1036118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:52:29]POST & json_proto [09:52:29]process_json_proto [09:52:29]json parsed OK: [09:52:29]protocol is kg_v1.0 [09:52:29]action value=close_receipt [09:52:29]process_action close_receipt [09:52:29]cmd_close_receipt [09:52:29]MH_GetDate [09:52:29]Write to MH i2c: F0 00 00 36 61 86 [09:52:29]Write i2c OK [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: F0 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: F0 09 00 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: F0 09 00 36 61 00 61 C4 C1 66 34 48 D8 65 94 [09:52:29]GetLastDocTimeStamp 1723974725 [09:52:29]current date 1723974753 [09:52:29]FM_GetShiftState [09:52:29]SAM_PROTO_GetShiftState [09:52:29]wFMCommunicate request_size=4 [09:52:29]MH_SAM_APDU [09:52:29]CAPDU: 80 13 01 00 [09:52:29]Write to MH i2c: E2 08 00 37 61 80 13 01 00 00 00 00 00 15 [09:52:29]Write i2c OK [09:52:29]MH_I2C_Read... [09:52:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:29]Read from MH i2c: E2 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: E2 0E 00 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: E2 0E 00 37 61 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 52 [09:52:29]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:52:29]wFMCommunicate OK [09:52:29]SAM_PROTO_GetShiftState done [09:52:29]FM_GetShiftState done [09:52:29]opened in 1723940556 [09:52:29]opened+sec_in_day 1724026956 [09:52:29]quantity*price = 50036 [09:52:29]sum+1 = 50037 [09:52:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 132 18.08.2024 09:52 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260574 ФПД: 269475498776889 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T095233&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260574&fm=269475498776889&tin=02508201610067®Number=0000000000091865&sum=50000 [09:52:30]StoreToDocumentArchive [09:52:30]shift 449 fd 260574 [09:52:30]save to /storage/0449/doc_00260574 [09:52:30]save last doc name /storage/0449/doc_00260574 to /storage/kkm_last_doc_name [09:52:30]save OK [09:52:30]Clear old archive folders... [09:52:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:52:30]tlvbuf is 0036F180 [09:52:30]SAM_PROTO_ClearQueue [09:52:30]wFMCommunicate request_size=4 [09:52:30]MH_SAM_APDU [09:52:30]CAPDU: 80 09 00 00 [09:52:30]Write to MH i2c: E2 08 00 44 61 80 09 00 00 00 00 00 00 17 [09:52:30]Write i2c OK [09:52:30]MH_I2C_Read... [09:52:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:30]Read from MH i2c: E2 [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: E2 03 00 [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: E2 03 00 44 61 00 90 00 19 [09:52:30]RAPDU: 90 00 [09:52:30]wFMCommunicate OK [09:52:30]SAM_PROTO_ClearQueue done [09:52:30]KKMCreateOFDPacket [09:52:30]OFDProtocolAddRootSTLVToBuf [09:52:30]FM_MakeSignedData [09:52:30]FM_MakeSignedData [09:52:30]SAM_PROTO_SignData [09:52:30]wFMCommunicate request_size=4 [09:52:30]MH_SAM_APDU [09:52:30]CAPDU: 80 0D 01 02 [09:52:30]Write to MH i2c: E2 08 00 45 61 80 0D 01 02 00 00 00 00 1F [09:52:30]Write i2c OK [09:52:30]MH_I2C_Read... [09:52:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:30]Read from MH i2c: E2 [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: E2 03 00 [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: E2 03 00 45 61 00 90 00 1A [09:52:30]RAPDU: 90 00 [09:52:30]wFMCommunicate OK [09:52:30]wFMCommunicate request_size=255 [09:52:30]MH_SAM_APDU [09: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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 84 00 00 00 F4 03 04 00 61 C4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DE F9 03 00 35 04 06 00 F5 [09:52:30]Write to MH i2c: E2 02 01 46 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 84 00 00 00 F4 03 04 00 61 C4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DE F9 03 00 35 04 06 00 F5 00 00 FD [09:52:30]Write i2c OK [09:52:30]MH_I2C_Read... [09:52:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:30]Read from MH i2c: E2 [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: E2 03 00 [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: E2 03 00 46 61 00 90 00 1B [09:52:30]RAPDU: 90 00 [09:52:30]wFMCommunicate OK [09:52:30]wFMCommunicate request_size=10 [09:52:30]MH_SAM_APDU [09:52:30]CAPDU: 80 0D 02 02 05 16 27 61 59 39 [09:52:30]Write to MH i2c: E2 0D 00 47 61 80 0D 02 02 05 00 16 27 61 59 39 00 00 5C [09:52:30]Write i2c OK [09:52:30]MH_I2C_Read... [09:52:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:30]Read from MH i2c: E2 [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: E2 03 00 [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: E2 03 00 47 61 00 90 00 1C [09:52:30]RAPDU: 90 00 [09:52:30]wFMCommunicate OK [09:52:30]wFMCommunicate request_size=4 [09:52:30]MH_SAM_APDU [09:52:30]CAPDU: 80 0D 03 02 [09:52:30]Write to MH i2c: E2 08 00 48 61 80 0D 03 02 00 00 00 00 24 [09:52:30]Write i2c OK [09:52:30]MH_I2C_Read... [09:52:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:30]Read from MH i2c: E2 [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: E2 0B 00 [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: E2 0B 00 48 61 00 A6 E5 14 A7 B5 3B FD E2 90 00 3A [09:52:30]RAPDU: A6 E5 14 A7 B5 3B FD E2 90 00 [09:52:30]wFMCommunicate OK [09:52:30]SAM_PROTO_SignData done [09:52:30]FM_MakeSignedData done [09:52:30]CreateOFDProtocolMessage [09:52:30]wFMCommunicate request_size=4 [09:52:30]MH_SAM_APDU [09:52:30]CAPDU: 80 11 00 00 [09:52:30]Write to MH i2c: E2 08 00 49 61 80 11 00 00 00 00 00 00 24 [09:52:30]Write i2c OK [09:52:30]MH_I2C_Read... [09:52:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:30]Read from MH i2c: E2 [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: E2 17 00 [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: E2 17 00 49 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 71 [09:52:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:52:30]wFMCommunicate OK [09:52:30]CreateOFDProtocolMessage done [09:52:30]OFDSenderStorePacket 260574 [09:52:30]StoreOFDPacket docnum=260574 [09:52:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 AA 16 07 01 07 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 84 00 00 00 F4 03 04 00 61 C4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DE F9 03 00 35 04 06 00 F5 16 27 61 59 39 A6 E5 14 A7 B5 3B FD E2 [09:52:30]CheckFolder [09:52:30]dirname=/storage/ofd_packets [09:52:30]CheckFolder done [09:52:30]ProducePacketName [09:52:30]name=ofd_packets/00260574 [09:52:30]NVStorageSaveData ofd_packets/00260574 [09:52:30]File name is /storage/ofd_packets/00260574 [09:52:30]Write 301 bytes [09:52:30]NVStorageSaveData done [09:52:30]OFDSenderStorePacket done [09:52:30]KKMCreateOFDPacket done [09:52:30]NVStorageSaveData kkm_last_timestamp [09:52:30]File name is /storage/kkm_last_timestamp [09:52:30]Write 4 bytes [09:52:30]NVStorageSaveData done [09:52:30]ExternCall_PrintAddStr [09:52:30]wPrintStart [09:52:30]Write to MH i2c: 01 00 00 4A 61 AB [09:52:30]Write i2c OK [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: 01 [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: 01 07 00 [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: 01 07 00 4A 61 00 00 00 00 00 FF 0F C0 [09:52:30]RasterBufferAndPrint [09:52:30]line Счет N : (1)1036118 [09:52:30]line ИНН: 02508201610067 [09:52:30]line Контрольно-Кассовый Чек [09:52:30]line ПРОДАЖА [09:52:30]line ТРК (МРК, ГНК) : 32 [09:52:30]line Товар: 2710124130 [09:52:30]line Аи-92-К-5 [09:52:30]line 7.380 * 67.80 [09:52:30]line = 500.36 [09:52:30]line НДС 12% НСП 1% [09:52:30]line > о реализуемом товаре [09:52:30]line ОКРУГЛЕНИЕ: -0.36 [09:52:30]line ИТОГО: 500.00 [09:52:30]line Внесено: 500.00 [09:52:30]line СДАЧА: 0.00 [09:52:30]line НСП 1% : 4.43 [09:52:30]line НДС 12% : 53.14 [09:52:30]line Наличными: 500.00 [09:52:30]line Безнал.: 0.00 [09:52:30]line Место: АЗС № 94 "Партнер Нефть" [09:52:30]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [09:52:30]line СНО: Общий режим [09:52:30]line Чек 132 18.08.2024 09:52 [09:52:30]line Смена: 449 ФФД: 1.0 [09:52:30]line ЗНМ: 0300000099 [09:52:30]line РНМ: 0000000000091865 [09:52:30]line Версия ККМ: 001 [09:52:30]line ФМ: 0000000000871820 [09:52:30]line ФД: 260574 [09:52:30]line ФПД: 269475498776889 [09:52:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T095233&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260574&fm=269475498776889&tin=02508201610067®Number=0000000000091865&sum=50000 [09:52:30]written 0, free lines is 4095 [09:52:30]OFD Sender: Processing packet 260574 [packets to send 192, broken 191] [09:52:30]ProducePacketName [09:52:30]name=ofd_packets/00260574 [09:52:30]OFD Sender: To server: pG, [09:52:30]CommunicateWithHost lk.salyk.kg:30040 [09:52:30]ConnectInit lk.salyk.kg [09:52:31]Connected sock=10 [09: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 30 0F 01 00 00 AA 16 07 01 07 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 84 00 00 00 F4 03 04 00 61 C4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DE F9 03 00 35 04 06 00 F5 16 27 61 59 39 A6 E5 14 A7 B5 3B FD E2 [09: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 30 4F 00 00 00 96 BC 47 00 62 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DE F9 03 00 F4 03 04 00 B6 6D C1 66 B6 04 01 00 00 37 D1 09 58 B3 F6 BD FB [09:52:31]CommunicateWithHost err = 0 [09:52:31]CheckOFDResponse [09:52:31]1017 (14) - 77093643461234 [09:52:31]1041 (16) - 0000000000871820 [09:52:31]1040 (4) - 260574 [09:52:31]1012 (4) - 18.08.2024 03:42 [09:52:31]1206 (1) - 0 [09:52:31]OFD Sender: Remove packet 260574 [09:52:31]ProducePacketName [09:52:31]name=ofd_packets/00260574 [09:52:31]NVStorageDeleteData [09:52:31]Write to MH i2c: 01 00 00 75 61 D6 [09:52:31]Write i2c OK [09:52:31]MH_I2C_Read... [09:52:31]Read from MH i2c: 01 [09:52:31]MH_I2C_Read... [09:52:31]Read from MH i2c: 01 07 00 [09:52:31]MH_I2C_Read... [09:52:31]Read from MH i2c: 01 07 00 75 61 00 00 00 00 00 69 0C 52 [09:52:31]RasterBufferAndPrint [09:52:31]line [09:52:31]line [09:52:31]line [09:52:31]line [09:52:31]line [09:52:31]written 0, free lines is 3181 [09:52:31]MH_Cut [09:52:31]Write to MH i2c: D1 01 00 7C 61 01 AF [09:52:31]Write i2c OK [09:52:31]MH_I2C_Read... [09:52:31]Read from MH i2c: D1 [09:52:31]MH_I2C_Read... [09:52:31]Read from MH i2c: D1 01 00 [09:52:31]MH_I2C_Read... [09:52:31]Read from MH i2c: D1 01 00 7C 61 00 AE [09:52:31]Write to MH i2c: 01 00 00 7D 61 DE [09:52:31]Write i2c OK [09:52:31]MH_I2C_Read... [09:52:31]OFD Sender: No OFD packet to send [09:52:32]*** Cut start [09:52:32]*** Purtial cut [09:52:32]*** Stage 1: CUTSNS_PIN = 1 [09:52:34]Read from MH i2c: 01 [09:52:34]MH_I2C_Read... [09:52:34]*** Stop cut motor [09:52:34]*** Cut end [09:52:34]Read from MH i2c: 01 07 00 [09:52:34]MH_I2C_Read... [09:52:34]Read from MH i2c: 01 07 00 7D 61 00 00 00 00 00 FF 0F F3 [09:52:34]process_action close_receipt done [09:52:34]requested_data is exist [09:52:34]produce_requested_data [09:52:34]requested_item fm.sn is exist - process it [09:52:34]wFMCommunicate request_size=4 [09:52:34]MH_SAM_APDU [09:52:34]CAPDU: 80 11 00 00 [09:52:34]Write to MH i2c: E2 08 00 7E 61 80 11 00 00 00 00 00 00 59 [09:52:34]Write i2c OK [09:52:34]MH_I2C_Read... [09:52:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:34]Read from MH i2c: E2 [09:52:34]MH_I2C_Read... [09:52:34]Read from MH i2c: E2 17 00 [09:52:34]MH_I2C_Read... [09:52:34]Read from MH i2c: E2 17 00 7E 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A6 [09:52:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:52:34]wFMCommunicate OK [09:52:34]requested_item fd.num is exist - process it [09:52:34]SAM_PROTO_GetFieldsCounters [09:52:34]wFMCommunicate request_size=4 [09:52:34]MH_SAM_APDU [09:52:34]CAPDU: 80 13 00 00 [09:52:34]Write to MH i2c: E2 08 00 7F 61 80 13 00 00 00 00 00 00 5C [09:52:34]Write i2c OK [09:52:34]MH_I2C_Read... [09:52:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:34]Read from MH i2c: E2 [09:52:34]MH_I2C_Read... [09:52:34]Read from MH i2c: E2 62 00 [09:52:34]MH_I2C_Read... [09:52:34]Read from MH i2c: E2 62 00 7F 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 DE F9 03 00 0E 04 04 00 C1 01 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 A3 [09:52: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 DE F9 03 00 0E 04 04 00 C1 01 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 [09:52:34]wFMCommunicate OK [09:52:34]SAM_PROTO_GetFieldsCounters done [09:52:34]requested_item shift.num is exist - process it [09:52:34]requested_item shift.opened is exist - process it [09:52:34]req_shift_opened [09:52:34]FM_GetShiftState [09:52:34]SAM_PROTO_GetShiftState [09:52:34]wFMCommunicate request_size=4 [09:52:34]MH_SAM_APDU [09:52:34]CAPDU: 80 13 01 00 [09:52:34]Write to MH i2c: E2 08 00 80 61 80 13 01 00 00 00 00 00 5E [09:52:34]Write i2c OK [09:52:34]MH_I2C_Read... [09:52:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:34]Read from MH i2c: E2 [09:52:34]MH_I2C_Read... [09:52:34]Read from MH i2c: E2 0E 00 [09:52:34]MH_I2C_Read... [09:52:34]Read from MH i2c: E2 0E 00 80 61 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 9B [09:52:34]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:52:34]wFMCommunicate OK [09:52:34]SAM_PROTO_GetShiftState done [09:52:34]FM_GetShiftState done [09:52:34]req_shift_opened done [09:52:34]requested_item shift.open_date is exist - process it [09:52:34]req_shift_open_date [09:52:34]req_shift_open_date done [09:52:34]produce_requested_data done [09:52:34]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260574,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [09:52:34]process_action_free close_receipt [09:52:34]json_value_free [09:52:34]json_value_free done [09:52:34]process_json_proto returns [09:52:34]Send response to host [09:52:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260574,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [09:52:34]free response buf [09:52:34]execute_script done [09:52:34]execute_script returns [09:52:34]free content buf [09:52:34]Sock 9.Close socket [09:52:34]Sock 9.Thread stoped [09:52:36]OFD Sender: No OFD packet to send [09:52:41]OFD Sender: No OFD packet to send [09:52:46]OFD Sender: No OFD packet to send [09:52:51]OFD Sender: No OFD packet to send [09:52:56]OFD Sender: No OFD packet to send [09:53:01]OFD Sender: No OFD packet to send [09:53:06]OFD Sender: No OFD packet to send [09:53:11]OFD Sender: No OFD packet to send [09:53:16]OFD Sender: No OFD packet to send [09:53:21]OFD Sender: No OFD packet to send [09:53:26]OFD Sender: No OFD packet to send [09:53:31]OFD Sender: No OFD packet to send [09:53:36]OFD Sender: No OFD packet to send [09:53:41]OFD Sender: No OFD packet to send [09:53:46]OFD Sender: No OFD packet to send [09:53:51]OFD Sender: No OFD packet to send [09:53:56]OFD Sender: No OFD packet to send [09:54:01]OFD Sender: No OFD packet to send [09:54:06]OFD Sender: No OFD packet to send [09:54:11]OFD Sender: No OFD packet to send [09:54:16]OFD Sender: No OFD packet to send [09:54:21]OFD Sender: No OFD packet to send [09:54:26]OFD Sender: No OFD packet to send [09:54:31]OFD Sender: No OFD packet to send [09:54:36]OFD Sender: No OFD packet to send [09:54:41]OFD Sender: No OFD packet to send [09:54:46]OFD Sender: No OFD packet to send [09:54:51]OFD Sender: No OFD packet to send [09:54:56]OFD Sender: No OFD packet to send [09:55:01]OFD Sender: No OFD packet to send [09:55:06]OFD Sender: No OFD packet to send [09:55:11]OFD Sender: No OFD packet to send [09:55:16]OFD Sender: No OFD packet to send [09:55:21]OFD Sender: No OFD packet to send [09:55:27]OFD Sender: No OFD packet to send [09:55:32]OFD Sender: No OFD packet to send [09:55:37]OFD Sender: No OFD packet to send [09:55:42]OFD Sender: No OFD packet to send [09:55:47]OFD Sender: No OFD packet to send [09:55:52]OFD Sender: No OFD packet to send [09:55:57]OFD Sender: No OFD packet to send [09:56:02]OFD Sender: No OFD packet to send [09:56:07]OFD Sender: No OFD packet to send [09:56:12]OFD Sender: No OFD packet to send [09:56:17]OFD Sender: No OFD packet to send [09:56:22]OFD Sender: No OFD packet to send [09:56:27]OFD Sender: No OFD packet to send [09:56:32]OFD Sender: No OFD packet to send [09:56:37]OFD Sender: No OFD packet to send [09:56:42]OFD Sender: No OFD packet to send [09:56:47]OFD Sender: No OFD packet to send [09:56:52]OFD Sender: No OFD packet to send [09:56:57]OFD Sender: No OFD packet to send [09:57:02]OFD Sender: No OFD packet to send [09:57:07]OFD Sender: No OFD packet to send [09:57:12]OFD Sender: No OFD packet to send [09:57:14]accept exits with 7 [09:57:14]New connection [09:57:14]New thread 3066617188 created [09:57:14]Thread 3066473828 joined [09:57:14]Waiting for new connection... [09:57:14] Sock 7.Parse request [09:57:14]Sock 7.Check first char [09:57:14]Sock 7.First char is OK [09:57:14]request: POST /json_proto HTTP/1.0 [09:57:14]Method: POST [09:57:14]URL: /json_proto [09:57:14]Method is POST - this is cgi request [09:57:14]url: /json_proto [09:57:14]query_string will be loaded in cgi processing [09:57:14]execute_cgi json_proto POST (null) [09:57:14]execute_cgi path=json_proto method=POST [09:57:14]POST find Content-Length [09:57:14]Host: 172.17.55.133:8080 [09:57:14]Content-Length: 678 [09:57:14]Content-Type: application/json [09:57:14] [09:57:14]POST finish read [09:57:14]Found Content-Length = 678 [09:57:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036119", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:14]execute_script... [09:57: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)1036119", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:14]POST & json_proto [09:57:14]process_json_proto [09:57:14]json parsed OK: [09:57:14]protocol is kg_v1.0 [09:57:14]action value=close_receipt [09:57:14]process_action close_receipt [09:57:14]cmd_close_receipt [09:57:14]MH_GetDate [09:57:14]Write to MH i2c: F0 00 00 81 61 D1 [09:57:14]Write i2c OK [09:57:14]MH_I2C_Read... [09:57:14]Read from MH i2c: F0 [09:57:14]MH_I2C_Read... [09:57:14]Read from MH i2c: F0 09 00 [09:57:14]MH_I2C_Read... [09:57:14]Read from MH i2c: F0 09 00 81 61 00 7F C5 C1 66 34 48 D8 65 FE [09:57:14]GetLastDocTimeStamp 1723974753 [09:57:14]current date 1723975039 [09:57:14]FM_GetShiftState [09:57:14]SAM_PROTO_GetShiftState [09:57:14]wFMCommunicate request_size=4 [09:57:14]MH_SAM_APDU [09:57:14]CAPDU: 80 13 01 00 [09:57:14]Write to MH i2c: E2 08 00 82 61 80 13 01 00 00 00 00 00 60 [09:57:14]Write i2c OK [09:57:14]MH_I2C_Read... [09:57:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:14]Read from MH i2c: E2 [09:57:14]MH_I2C_Read... [09:57:14]Read from MH i2c: E2 0E 00 [09:57:14]MH_I2C_Read... [09:57:14]Read from MH i2c: E2 0E 00 82 61 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 9D [09:57:14]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:57:14]wFMCommunicate OK [09:57:14]SAM_PROTO_GetShiftState done [09:57:14]FM_GetShiftState done [09:57:14]opened in 1723940556 [09:57:14]opened+sec_in_day 1724026956 [09:57:14]quantity*price = 50010 [09:57:14]sum+1 = 50012 [09:57:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 133 18.08.2024 09:57 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260575 ФПД: 264735170815388 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T095719&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260575&fm=264735170815388&tin=02508201610067®Number=0000000000091865&sum=50000 [09:57:16]StoreToDocumentArchive [09:57:16]shift 449 fd 260575 [09:57:16]save to /storage/0449/doc_00260575 [09:57:16]save last doc name /storage/0449/doc_00260575 to /storage/kkm_last_doc_name [09:57:16]save OK [09:57:16]Clear old archive folders... [09:57:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:57:16]tlvbuf is 0052AF80 [09:57:16]SAM_PROTO_ClearQueue [09:57:16]wFMCommunicate request_size=4 [09:57:16]MH_SAM_APDU [09:57:16]CAPDU: 80 09 00 00 [09:57:16]Write to MH i2c: E2 08 00 8F 61 80 09 00 00 00 00 00 00 62 [09:57:16]Write i2c OK [09:57:16]MH_I2C_Read... [09:57:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:16]Read from MH i2c: E2 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 03 00 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 03 00 8F 61 00 90 00 64 [09:57:16]RAPDU: 90 00 [09:57:16]wFMCommunicate OK [09:57:16]SAM_PROTO_ClearQueue done [09:57:16]KKMCreateOFDPacket [09:57:16]OFDProtocolAddRootSTLVToBuf [09:57:16]FM_MakeSignedData [09:57:16]FM_MakeSignedData [09:57:16]SAM_PROTO_SignData [09:57:16]wFMCommunicate request_size=4 [09:57:16]MH_SAM_APDU [09:57:16]CAPDU: 80 0D 01 02 [09:57:16]Write to MH i2c: E2 08 00 90 61 80 0D 01 02 00 00 00 00 6A [09:57:16]Write i2c OK [09:57:16]MH_I2C_Read... [09:57:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:16]Read from MH i2c: E2 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 03 00 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 03 00 90 61 00 90 00 65 [09:57:16]RAPDU: 90 00 [09:57:16]wFMCommunicate OK [09:57:16]wFMCommunicate request_size=255 [09:57:16]MH_SAM_APDU [09:57: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 7F C5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DF F9 03 00 35 04 06 00 F0 [09:57:16]Write to MH i2c: E2 02 01 91 61 80 0D 02 02 FA 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 7F C5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DF F9 03 00 35 04 06 00 F0 00 00 4C [09:57:16]Write i2c OK [09:57:16]MH_I2C_Read... [09:57:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:16]Read from MH i2c: E2 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 03 00 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 03 00 91 61 00 90 00 66 [09:57:16]RAPDU: 90 00 [09:57:16]wFMCommunicate OK [09:57:16]wFMCommunicate request_size=10 [09:57:16]MH_SAM_APDU [09:57:16]CAPDU: 80 0D 02 02 05 C6 75 D0 E5 9C [09:57:16]Write to MH i2c: E2 0D 00 92 61 80 0D 02 02 05 00 C6 75 D0 E5 9C 00 00 03 [09:57:16]Write i2c OK [09:57:16]MH_I2C_Read... [09:57:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:16]Read from MH i2c: E2 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 03 00 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 03 00 92 61 00 90 00 67 [09:57:16]RAPDU: 90 00 [09:57:16]wFMCommunicate OK [09:57:16]wFMCommunicate request_size=4 [09:57:16]MH_SAM_APDU [09:57:16]CAPDU: 80 0D 03 02 [09:57:16]Write to MH i2c: E2 08 00 93 61 80 0D 03 02 00 00 00 00 6F [09:57:16]Write i2c OK [09:57:16]MH_I2C_Read... [09:57:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:16]Read from MH i2c: E2 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 0B 00 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 0B 00 93 61 00 71 80 19 4C E7 48 E3 23 90 00 FB [09:57:16]RAPDU: 71 80 19 4C E7 48 E3 23 90 00 [09:57:16]wFMCommunicate OK [09:57:16]SAM_PROTO_SignData done [09:57:16]FM_MakeSignedData done [09:57:16]CreateOFDProtocolMessage [09:57:16]wFMCommunicate request_size=4 [09:57:16]MH_SAM_APDU [09:57:16]CAPDU: 80 11 00 00 [09:57:16]Write to MH i2c: E2 08 00 94 61 80 11 00 00 00 00 00 00 6F [09:57:16]Write i2c OK [09:57:16]MH_I2C_Read... [09:57:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:16]Read from MH i2c: E2 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 17 00 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 17 00 94 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 BC [09:57:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:57:16]wFMCommunicate OK [09:57:16]CreateOFDProtocolMessage done [09:57:16]OFDSenderStorePacket 260575 [09:57:16]StoreOFDPacket docnum=260575 [09:57:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 D2 9D 07 01 E5 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 7F C5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DF F9 03 00 35 04 06 00 F0 C6 75 D0 E5 9C 71 80 19 4C E7 48 E3 23 [09:57:16]CheckFolder [09:57:16]dirname=/storage/ofd_packets [09:57:16]CheckFolder done [09:57:16]ProducePacketName [09:57:16]name=ofd_packets/00260575 [09:57:16]NVStorageSaveData ofd_packets/00260575 [09:57:16]File name is /storage/ofd_packets/00260575 [09:57:16]Write 301 bytes [09:57:16]NVStorageSaveData done [09:57:16]OFDSenderStorePacket done [09:57:16]KKMCreateOFDPacket done [09:57:16]NVStorageSaveData kkm_last_timestamp [09:57:16]File name is /storage/kkm_last_timestamp [09:57:16]Write 4 bytes [09:57:16]NVStorageSaveData done [09:57:16]ExternCall_PrintAddStr [09:57:16]wPrintStart [09:57:16]Write to MH i2c: 01 00 00 95 61 F6 [09:57:16]Write i2c OK [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: 01 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: 01 07 00 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: 01 07 00 95 61 00 00 00 00 00 FF 0F 0B [09:57:16]RasterBufferAndPrint [09:57:16]line Счет N : (1)1036119 [09:57:16]line ИНН: 02508201610067 [09:57:16]line Контрольно-Кассовый Чек [09:57:16]line ПРОДАЖА [09:57:16]line ТРК (МРК, ГНК) : 23 [09:57:16]line Товар: 2710124500 [09:57:16]line Аи-95-К-5 [09:57:16]line 6.740 * 74.20 [09:57:16]line = 500.11 [09:57:16]line НДС 12% НСП 1% [09:57:16]line > о реализуемом товаре [09:57:16]line ОКРУГЛЕНИЕ: -0.11 [09:57:16]line ИТОГО: 500.00 [09:57:16]line Внесено: 500.00 [09:57:16]line СДАЧА: 0.00 [09:57:16]line НСП 1% : 4.43 [09:57:16]line НДС 12% : 53.11 [09:57:16]line Наличными: 500.00 [09:57:16]line Безнал.: 0.00 [09:57:16]line Место: АЗС № 94 "Партнер Нефть" [09:57:16]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [09:57:16]line СНО: Общий режим [09:57:16]line Чек 133 18.08.2024 09:57 [09:57:16]line Смена: 449 ФФД: 1.0 [09:57:16]line ЗНМ: 0300000099 [09:57:16]line РНМ: 0000000000091865 [09:57:16]line Версия ККМ: 001 [09:57:16]line ФМ: 0000000000871820 [09:57:16]line ФД: 260575 [09:57:16]line ФПД: 264735170815388 [09:57:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T095719&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260575&fm=264735170815388&tin=02508201610067®Number=0000000000091865&sum=50000 [09:57:16]OFD Sender: Processing packet 260575 [packets to send 192, broken 191] [09:57:16]ProducePacketName [09:57:16]name=ofd_packets/00260575 [09:57:16]OFD Sender: To server: pG, [09:57:16]CommunicateWithHost lk.salyk.kg:30040 [09:57:16]ConnectInit lk.salyk.kg [09:57:16]written 0, free lines is 4095 [09:57:17]Connected sock=10 [09:57: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 30 0F 01 00 00 D2 9D 07 01 E5 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 7F C5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DF F9 03 00 35 04 06 00 F0 C6 75 D0 E5 9C 71 80 19 4C E7 48 E3 23 [09:57: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 30 4F 00 00 00 1F 44 47 00 9D 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DF F9 03 00 F4 03 04 00 D4 6E C1 66 B6 04 01 00 00 F9 21 30 F4 4C B9 FD F5 [09:57:17]CommunicateWithHost err = 0 [09:57:17]CheckOFDResponse [09:57:17]1017 (14) - 77093643461234 [09:57:17]1041 (16) - 0000000000871820 [09:57:17]1040 (4) - 260575 [09:57:17]1012 (4) - 18.08.2024 03:47 [09:57:17]1206 (1) - 0 [09:57:17]OFD Sender: Remove packet 260575 [09:57:17]ProducePacketName [09:57:17]name=ofd_packets/00260575 [09:57:17]NVStorageDeleteData [09:57:17]Write to MH i2c: 01 00 00 C0 61 21 [09:57:17]Write i2c OK [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: 01 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: 01 07 00 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: 01 07 00 C0 61 00 00 00 00 00 71 0C A5 [09:57:17]RasterBufferAndPrint [09:57:17]line [09:57:17]line [09:57:17]line [09:57:17]line [09:57:17]line [09:57:17]written 0, free lines is 3187 [09:57:17]MH_Cut [09:57:17]Write to MH i2c: D1 01 00 C7 61 01 FA [09:57:17]Write i2c OK [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: D1 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: D1 01 00 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: D1 01 00 C7 61 00 F9 [09:57:17]Write to MH i2c: 01 00 00 C8 61 29 [09:57:17]Write i2c OK [09:57:17]MH_I2C_Read... [09:57:17]OFD Sender: No OFD packet to send [09:57:18]*** Cut start [09:57:18]*** Purtial cut [09:57:18]*** Stage 1: CUTSNS_PIN = 1 [09:57:20]Read from MH i2c: 01 [09:57:20]MH_I2C_Read... [09:57:20]*** Stop cut motor [09:57:20]*** Cut end [09:57:20]Read from MH i2c: 01 07 00 [09:57:20]MH_I2C_Read... [09:57:20]Read from MH i2c: 01 07 00 C8 61 00 00 00 00 00 FF 0F 3E [09:57:20]process_action close_receipt done [09:57:20]requested_data is exist [09:57:20]produce_requested_data [09:57:20]requested_item fm.sn is exist - process it [09:57:20]wFMCommunicate request_size=4 [09:57:20]MH_SAM_APDU [09:57:20]CAPDU: 80 11 00 00 [09:57:20]Write to MH i2c: E2 08 00 C9 61 80 11 00 00 00 00 00 00 A4 [09:57:20]Write i2c OK [09:57:20]MH_I2C_Read... [09:57:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:20]Read from MH i2c: E2 [09:57:20]MH_I2C_Read... [09:57:20]Read from MH i2c: E2 17 00 [09:57:20]MH_I2C_Read... [09:57:20]Read from MH i2c: E2 17 00 C9 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F1 [09:57:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:57:20]wFMCommunicate OK [09:57:20]requested_item fd.num is exist - process it [09:57:20]SAM_PROTO_GetFieldsCounters [09:57:20]wFMCommunicate request_size=4 [09:57:20]MH_SAM_APDU [09:57:20]CAPDU: 80 13 00 00 [09:57:20]Write to MH i2c: E2 08 00 CA 61 80 13 00 00 00 00 00 00 A7 [09:57:20]Write i2c OK [09:57:20]MH_I2C_Read... [09:57:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:20]Read from MH i2c: E2 [09:57:20]MH_I2C_Read... [09:57:20]Read from MH i2c: E2 62 00 [09:57:20]MH_I2C_Read... [09:57:20]Read from MH i2c: E2 62 00 CA 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 DF F9 03 00 0E 04 04 00 C1 01 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 F2 [09:57: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 DF F9 03 00 0E 04 04 00 C1 01 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 [09:57:20]wFMCommunicate OK [09:57:20]SAM_PROTO_GetFieldsCounters done [09:57:20]requested_item shift.num is exist - process it [09:57:20]requested_item shift.opened is exist - process it [09:57:20]req_shift_opened [09:57:20]FM_GetShiftState [09:57:20]SAM_PROTO_GetShiftState [09:57:20]wFMCommunicate request_size=4 [09:57:20]MH_SAM_APDU [09:57:20]CAPDU: 80 13 01 00 [09:57:20]Write to MH i2c: E2 08 00 CB 61 80 13 01 00 00 00 00 00 A9 [09:57:20]Write i2c OK [09:57:20]MH_I2C_Read... [09:57:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:20]Read from MH i2c: E2 [09:57:20]MH_I2C_Read... [09:57:20]Read from MH i2c: E2 0E 00 [09:57:20]MH_I2C_Read... [09:57:20]Read from MH i2c: E2 0E 00 CB 61 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E6 [09:57:20]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:57:20]wFMCommunicate OK [09:57:20]SAM_PROTO_GetShiftState done [09:57:20]FM_GetShiftState done [09:57:20]req_shift_opened done [09:57:20]requested_item shift.open_date is exist - process it [09:57:20]req_shift_open_date [09:57:20]req_shift_open_date done [09:57:20]produce_requested_data done [09:57:20]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260575,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [09:57:20]process_action_free close_receipt [09:57:20]json_value_free [09:57:20]json_value_free done [09:57:20]process_json_proto returns [09:57:20]Send response to host [09:57:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260575,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [09:57:20]free response buf [09:57:20]execute_script done [09:57:20]execute_script returns [09:57:20]free content buf [09:57:20]Sock 7.Close socket [09:57:20]Sock 7.Thread stoped [09:57:22]OFD Sender: No OFD packet to send [09:57:27]OFD Sender: No OFD packet to send [09:57:32]OFD Sender: No OFD packet to send [09:57:37]OFD Sender: No OFD packet to send [09:57:39]accept exits with 9 [09:57:39]New connection [09:57:39]New thread 3066473828 created [09:57:39]Thread 3066617188 joined [09:57:39]Waiting for new connection... [09:57:39] Sock 9.Parse request [09:57:39]Sock 9.Check first char [09:57:39]Sock 9.First char is OK [09:57:39]request: POST /json_proto HTTP/1.0 [09:57:39]Method: POST [09:57:39]URL: /json_proto [09:57:39]Method is POST - this is cgi request [09:57:39]url: /json_proto [09:57:39]query_string will be loaded in cgi processing [09:57:39]execute_cgi json_proto POST (null) [09:57:39]execute_cgi path=json_proto method=POST [09:57:39]POST find Content-Length [09:57:39]Host: 172.17.55.133:8080 [09:57:39]Content-Length: 683 [09:57:39]Content-Type: application/json [09:57:39] [09:57:39]POST finish read [09:57:39]Found Content-Length = 683 [09:57:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:57:39]execute_script... [09:57:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:57:39]POST & json_proto [09:57:39]process_json_proto [09:57:39]json parsed OK: [09:57:39]protocol is kg_v1.0 [09:57:39]action value=close_receipt [09:57:39]process_action close_receipt [09:57:39]cmd_close_receipt [09:57:39]MH_GetDate [09:57:39]Write to MH i2c: F0 00 00 CC 61 1C [09:57:39]Write i2c OK [09:57:39]MH_I2C_Read... [09:57:39]Read from MH i2c: F0 [09:57:39]MH_I2C_Read... [09:57:39]Read from MH i2c: F0 09 00 [09:57:39]MH_I2C_Read... [09:57:39]Read from MH i2c: F0 09 00 CC 61 00 97 C5 C1 66 34 48 D8 65 61 [09:57:39]GetLastDocTimeStamp 1723975039 [09:57:39]current date 1723975063 [09:57:39]FM_GetShiftState [09:57:39]SAM_PROTO_GetShiftState [09:57:39]wFMCommunicate request_size=4 [09:57:39]MH_SAM_APDU [09:57:39]CAPDU: 80 13 01 00 [09:57:39]Write to MH i2c: E2 08 00 CD 61 80 13 01 00 00 00 00 00 AB [09:57:39]Write i2c OK [09:57:39]MH_I2C_Read... [09:57:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:39]Read from MH i2c: E2 [09:57:39]MH_I2C_Read... [09:57:39]Read from MH i2c: E2 0E 00 [09:57:39]MH_I2C_Read... [09:57:39]Read from MH i2c: E2 0E 00 CD 61 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E8 [09:57:39]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:57:39]wFMCommunicate OK [09:57:39]SAM_PROTO_GetShiftState done [09:57:39]FM_GetShiftState done [09:57:39]opened in 1723940556 [09:57:39]opened+sec_in_day 1724026956 [09:57:39]quantity*price = 100005 [09:57:39]sum+1 = 100006 [09:57:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 134 18.08.2024 09:57 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260576 ФПД: 194457026685804 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T095743&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260576&fm=194457026685804&tin=02508201610067®Number=0000000000091865&sum=100000 [09:57:40]StoreToDocumentArchive [09:57:40]shift 449 fd 260576 [09:57:40]save to /storage/0449/doc_00260576 [09:57:40]save last doc name /storage/0449/doc_00260576 to /storage/kkm_last_doc_name [09:57:40]save OK [09:57:40]Clear old archive folders... [09:57:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:57:40]tlvbuf is 00336270 [09:57:40]SAM_PROTO_ClearQueue [09:57:40]wFMCommunicate request_size=4 [09:57:40]MH_SAM_APDU [09:57:40]CAPDU: 80 09 00 00 [09:57:40]Write to MH i2c: E2 08 00 DA 61 80 09 00 00 00 00 00 00 AD [09:57:40]Write i2c OK [09:57:40]MH_I2C_Read... [09:57:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:40]Read from MH i2c: E2 [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: E2 03 00 [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: E2 03 00 DA 61 00 90 00 AF [09:57:40]RAPDU: 90 00 [09:57:40]wFMCommunicate OK [09:57:40]SAM_PROTO_ClearQueue done [09:57:40]KKMCreateOFDPacket [09:57:40]OFDProtocolAddRootSTLVToBuf [09:57:40]FM_MakeSignedData [09:57:40]FM_MakeSignedData [09:57:40]SAM_PROTO_SignData [09:57:40]wFMCommunicate request_size=4 [09:57:40]MH_SAM_APDU [09:57:40]CAPDU: 80 0D 01 02 [09:57:40]Write to MH i2c: E2 08 00 DB 61 80 0D 01 02 00 00 00 00 B5 [09:57:40]Write i2c OK [09:57:40]MH_I2C_Read... [09:57:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:40]Read from MH i2c: E2 [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: E2 03 00 [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: E2 03 00 DB 61 00 90 00 B0 [09:57:40]RAPDU: 90 00 [09:57:40]wFMCommunicate OK [09:57:40]wFMCommunicate request_size=255 [09:57:40]MH_SAM_APDU [09:57:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 97 C5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E0 F9 03 00 35 04 06 00 B0 [09:57:41]Write to MH i2c: E2 02 01 DC 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 97 C5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E0 F9 03 00 35 04 06 00 B0 00 00 18 [09:57:41]Write i2c OK [09:57:41]MH_I2C_Read... [09:57:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:41]Read from MH i2c: E2 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: E2 03 00 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: E2 03 00 DC 61 00 90 00 B1 [09:57:41]RAPDU: 90 00 [09:57:41]wFMCommunicate OK [09:57:41]wFMCommunicate request_size=10 [09:57:41]MH_SAM_APDU [09:57:41]CAPDU: 80 0D 02 02 05 DB 8D FF EB 6C [09:57:41]Write to MH i2c: E2 0D 00 DD 61 80 0D 02 02 05 00 DB 8D FF EB 6C 00 00 80 [09:57:41]Write i2c OK [09:57:41]MH_I2C_Read... [09:57:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:41]Read from MH i2c: E2 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: E2 03 00 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: E2 03 00 DD 61 00 90 00 B2 [09:57:41]RAPDU: 90 00 [09:57:41]wFMCommunicate OK [09:57:41]wFMCommunicate request_size=4 [09:57:41]MH_SAM_APDU [09:57:41]CAPDU: 80 0D 03 02 [09:57:41]Write to MH i2c: E2 08 00 DE 61 80 0D 03 02 00 00 00 00 BA [09:57:41]Write i2c OK [09:57:41]MH_I2C_Read... [09:57:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:41]Read from MH i2c: E2 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: E2 0B 00 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: E2 0B 00 DE 61 00 15 0D A3 CB D6 00 09 F8 90 00 22 [09:57:41]RAPDU: 15 0D A3 CB D6 00 09 F8 90 00 [09:57:41]wFMCommunicate OK [09:57:41]SAM_PROTO_SignData done [09:57:41]FM_MakeSignedData done [09:57:41]CreateOFDProtocolMessage [09:57:41]wFMCommunicate request_size=4 [09:57:41]MH_SAM_APDU [09:57:41]CAPDU: 80 11 00 00 [09:57:41]Write to MH i2c: E2 08 00 DF 61 80 11 00 00 00 00 00 00 BA [09:57:41]Write i2c OK [09:57:41]MH_I2C_Read... [09:57:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:41]Read from MH i2c: E2 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: E2 17 00 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: E2 17 00 DF 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 07 [09:57:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:57:41]wFMCommunicate OK [09:57:41]CreateOFDProtocolMessage done [09:57:41]OFDSenderStorePacket 260576 [09:57:41]StoreOFDPacket docnum=260576 [09:57:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 B7 C1 07 01 21 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 97 C5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E0 F9 03 00 35 04 06 00 B0 DB 8D FF EB 6C 15 0D A3 CB D6 00 09 F8 [09:57:41]CheckFolder [09:57:41]dirname=/storage/ofd_packets [09:57:41]CheckFolder done [09:57:41]ProducePacketName [09:57:41]name=ofd_packets/00260576 [09:57:41]NVStorageSaveData ofd_packets/00260576 [09:57:41]File name is /storage/ofd_packets/00260576 [09:57:41]Write 301 bytes [09:57:41]NVStorageSaveData done [09:57:41]OFDSenderStorePacket done [09:57:41]KKMCreateOFDPacket done [09:57:41]NVStorageSaveData kkm_last_timestamp [09:57:41]File name is /storage/kkm_last_timestamp [09:57:41]Write 4 bytes [09:57:41]NVStorageSaveData done [09:57:41]ExternCall_PrintAddStr [09:57:41]wPrintStart [09:57:41]Write to MH i2c: 01 00 00 E0 61 41 [09:57:41]Write i2c OK [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: 01 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: 01 07 00 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: 01 07 00 E0 61 00 00 00 00 00 FF 0F 56 [09:57:41]RasterBufferAndPrint [09:57:41]line Счет N : (1)1036120 [09:57:41]line ИНН: 02508201610067 [09:57:41]line Контрольно-Кассовый Чек [09:57:41]line ПРОДАЖА [09:57:41]line ТРК (МРК, ГНК) : 12 [09:57:41]line Товар: 2710124130 [09:57:41]line Аи-92-К-5 [09:57:41]line 14.750 * 67.80 [09:57:41]line = 1000.05 [09:57:41]line НДС 12% НСП 1% [09:57:41]line > о реализуемом товаре [09:57:41]line ОКРУГЛЕНИЕ: -0.05 [09:57:41]line ИТОГО: 1000.00 [09:57:41]line Внесено: 1000.00 [09:57:41]line СДАЧА: 0.00 [09:57:41]line НСП 1% : 8.85 [09:57:41]line НДС 12% : 106.20 [09:57:41]line Наличными: 1000.00 [09:57:41]line Безнал.: 0.00 [09:57:41]line Место: АЗС № 94 "Партнер Нефть" [09:57:41]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [09:57:41]line СНО: Общий режим [09:57:41]line Чек 134 18.08.2024 09:57 [09:57:41]line Смена: 449 ФФД: 1.0 [09:57:41]line ЗНМ: 0300000099 [09:57:41]line РНМ: 0000000000091865 [09:57:41]line Версия ККМ: 001 [09:57:41]line ФМ: 0000000000871820 [09:57:41]line ФД: 260576 [09:57:41]line ФПД: 194457026685804 [09:57:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T095743&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260576&fm=194457026685804&tin=02508201610067®Number=0000000000091865&sum=100000 [09:57:41]written 0, free lines is 4095 [09:57:41]OFD Sender: Processing packet 260576 [packets to send 192, broken 191] [09:57:41]ProducePacketName [09:57:41]name=ofd_packets/00260576 [09:57:41]OFD Sender: To server: pG, [09:57:41]CommunicateWithHost lk.salyk.kg:30040 [09:57:41]ConnectInit lk.salyk.kg [09:57:41]Connected sock=10 [09:57: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 30 0F 01 00 00 B7 C1 07 01 21 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 97 C5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E0 F9 03 00 35 04 06 00 B0 DB 8D FF EB 6C 15 0D A3 CB D6 00 09 F8 [09:57: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 30 4F 00 00 00 CC BC 47 00 3D 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E0 F9 03 00 F4 03 04 00 ED 6E C1 66 B6 04 01 00 00 62 32 D5 24 57 A0 C3 00 [09:57:41]CommunicateWithHost err = 0 [09:57:41]CheckOFDResponse [09:57:41]1017 (14) - 77093643461234 [09:57:41]1041 (16) - 0000000000871820 [09:57:41]1040 (4) - 260576 [09:57:41]1012 (4) - 18.08.2024 03:47 [09:57:41]1206 (1) - 0 [09:57:41]OFD Sender: Remove packet 260576 [09:57:41]ProducePacketName [09:57:41]name=ofd_packets/00260576 [09:57:41]NVStorageDeleteData [09:57:41]Write to MH i2c: 01 00 00 0B 62 6D [09:57:41]Write i2c OK [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: 01 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: 01 07 00 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: 01 07 00 0B 62 00 00 00 00 00 71 0C F1 [09:57:41]RasterBufferAndPrint [09:57:41]line [09:57:41]line [09:57:41]line [09:57:41]line [09:57:41]line [09:57:41]written 0, free lines is 3187 [09:57:41]MH_Cut [09:57:41]Write to MH i2c: D1 01 00 12 62 01 46 [09:57:41]Write i2c OK [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: D1 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: D1 01 00 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: D1 01 00 12 62 00 45 [09:57:41]Write to MH i2c: 01 00 00 13 62 75 [09:57:41]Write i2c OK [09:57:41]MH_I2C_Read... [09:57:42]OFD Sender: No OFD packet to send [09:57:43]*** Cut start [09:57:43]*** Purtial cut [09:57:43]*** Stage 1: CUTSNS_PIN = 1 [09:57:45]Read from MH i2c: 01 [09:57:45]MH_I2C_Read... [09:57:45]*** Stop cut motor [09:57:45]*** Cut end [09:57:45]Read from MH i2c: 01 07 00 [09:57:45]MH_I2C_Read... [09:57:45]Read from MH i2c: 01 07 00 13 62 00 00 00 00 00 FF 0F 8A [09:57:45]process_action close_receipt done [09:57:45]requested_data is exist [09:57:45]produce_requested_data [09:57:45]requested_item fm.sn is exist - process it [09:57:45]wFMCommunicate request_size=4 [09:57:45]MH_SAM_APDU [09:57:45]CAPDU: 80 11 00 00 [09:57:45]Write to MH i2c: E2 08 00 14 62 80 11 00 00 00 00 00 00 F0 [09:57:45]Write i2c OK [09:57:45]MH_I2C_Read... [09:57:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:45]Read from MH i2c: E2 [09:57:45]MH_I2C_Read... [09:57:45]Read from MH i2c: E2 17 00 [09:57:45]MH_I2C_Read... [09:57:45]Read from MH i2c: E2 17 00 14 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 3D [09:57:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [09:57:45]wFMCommunicate OK [09:57:45]requested_item fd.num is exist - process it [09:57:45]SAM_PROTO_GetFieldsCounters [09:57:45]wFMCommunicate request_size=4 [09:57:45]MH_SAM_APDU [09:57:45]CAPDU: 80 13 00 00 [09:57:45]Write to MH i2c: E2 08 00 15 62 80 13 00 00 00 00 00 00 F3 [09:57:45]Write i2c OK [09:57:45]MH_I2C_Read... [09:57:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:45]Read from MH i2c: E2 [09:57:45]MH_I2C_Read... [09:57:45]Read from MH i2c: E2 62 00 [09:57:45]MH_I2C_Read... [09:57:45]Read from MH i2c: E2 62 00 15 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E0 F9 03 00 0E 04 04 00 C1 01 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 42 [09:57: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E0 F9 03 00 0E 04 04 00 C1 01 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 [09:57:45]wFMCommunicate OK [09:57:45]SAM_PROTO_GetFieldsCounters done [09:57:45]requested_item shift.num is exist - process it [09:57:45]requested_item shift.opened is exist - process it [09:57:45]req_shift_opened [09:57:45]FM_GetShiftState [09:57:45]SAM_PROTO_GetShiftState [09:57:45]wFMCommunicate request_size=4 [09:57:45]MH_SAM_APDU [09:57:45]CAPDU: 80 13 01 00 [09:57:45]Write to MH i2c: E2 08 00 16 62 80 13 01 00 00 00 00 00 F5 [09:57:45]Write i2c OK [09:57:45]MH_I2C_Read... [09:57:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:45]Read from MH i2c: E2 [09:57:45]MH_I2C_Read... [09:57:45]Read from MH i2c: E2 0E 00 [09:57:45]MH_I2C_Read... [09:57:45]Read from MH i2c: E2 0E 00 16 62 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 32 [09:57:45]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [09:57:45]wFMCommunicate OK [09:57:45]SAM_PROTO_GetShiftState done [09:57:45]FM_GetShiftState done [09:57:45]req_shift_opened done [09:57:45]requested_item shift.open_date is exist - process it [09:57:45]req_shift_open_date [09:57:45]req_shift_open_date done [09:57:45]produce_requested_data done [09:57:45]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260576,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [09:57:45]process_action_free close_receipt [09:57:45]json_value_free [09:57:45]json_value_free done [09:57:45]process_json_proto returns [09:57:45]Send response to host [09:57:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260576,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [09:57:45]free response buf [09:57:45]execute_script done [09:57:45]execute_script returns [09:57:45]free content buf [09:57:45]Sock 9.Close socket [09:57:45]Sock 9.Thread stoped [09:57:47]OFD Sender: No OFD packet to send [09:57:52]OFD Sender: No OFD packet to send [09:57:57]OFD Sender: No OFD packet to send [09:58:02]OFD Sender: No OFD packet to send [09:58:07]OFD Sender: No OFD packet to send [09:58:12]OFD Sender: No OFD packet to send [09:58:17]OFD Sender: No OFD packet to send [09:58:22]OFD Sender: No OFD packet to send [09:58:27]OFD Sender: No OFD packet to send [09:58:32]OFD Sender: No OFD packet to send [09:58:37]OFD Sender: No OFD packet to send [09:58:42]OFD Sender: No OFD packet to send [09:58:47]OFD Sender: No OFD packet to send [09:58:52]OFD Sender: No OFD packet to send [09:58:57]OFD Sender: No OFD packet to send [09:59:02]OFD Sender: No OFD packet to send [09:59:07]OFD Sender: No OFD packet to send [09:59:12]OFD Sender: No OFD packet to send [09:59:17]OFD Sender: No OFD packet to send [09:59:22]OFD Sender: No OFD packet to send [09:59:27]OFD Sender: No OFD packet to send [09:59:32]OFD Sender: No OFD packet to send [09:59:37]OFD Sender: No OFD packet to send [09:59:42]OFD Sender: No OFD packet to send [09:59:47]OFD Sender: No OFD packet to send [09:59:52]OFD Sender: No OFD packet to send [09:59:57]OFD Sender: No OFD packet to send [10:00:02]OFD Sender: No OFD packet to send [10:00:07]OFD Sender: No OFD packet to send [10:00:12]OFD Sender: No OFD packet to send [10:00:17]OFD Sender: No OFD packet to send [10:00:22]OFD Sender: No OFD packet to send [10:00:27]OFD Sender: No OFD packet to send [10:00:32]OFD Sender: No OFD packet to send [10:00:37]OFD Sender: No OFD packet to send [10:00:42]OFD Sender: No OFD packet to send [10:00:47]OFD Sender: No OFD packet to send [10:00:52]OFD Sender: No OFD packet to send [10:00:57]OFD Sender: No OFD packet to send [10:01:02]OFD Sender: No OFD packet to send [10:01:07]OFD Sender: No OFD packet to send [10:01:12]OFD Sender: No OFD packet to send [10:01:17]OFD Sender: No OFD packet to send [10:01:18]accept exits with 7 [10:01:18]New connection [10:01:18]New thread 3066617188 created [10:01:18]Thread 3066473828 joined [10:01:18]Waiting for new connection... [10:01:18] Sock 7.Parse request [10:01:18]Sock 7.Check first char [10:01:18]Sock 7.First char is OK [10:01:18]request: POST /json_proto HTTP/1.0 [10:01:18]Method: POST [10:01:18]URL: /json_proto [10:01:18]Method is POST - this is cgi request [10:01:18]url: /json_proto [10:01:18]query_string will be loaded in cgi processing [10:01:18]execute_cgi json_proto POST (null) [10:01:18]execute_cgi path=json_proto method=POST [10:01:18]POST find Content-Length [10:01:18]Host: 172.17.55.133:8080 [10:01:18]Content-Length: 806 [10:01:18]Content-Type: application/json [10:01:18] [10:01:18]POST finish read [10:01:18]Found Content-Length = 806 [10:01:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:18]execute_script... [10:01: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)1036121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:18]POST & json_proto [10:01:18]process_json_proto [10:01:18]json parsed OK: [10:01:18]protocol is kg_v1.0 [10:01:18]action value=close_receipt [10:01:18]process_action close_receipt [10:01:18]cmd_close_receipt [10:01:18]MH_GetDate [10:01:18]Write to MH i2c: F0 00 00 17 62 68 [10:01:18]Write i2c OK [10:01:18]MH_I2C_Read... [10:01:18]Read from MH i2c: F0 [10:01:18]MH_I2C_Read... [10:01:18]Read from MH i2c: F0 09 00 [10:01:18]MH_I2C_Read... [10:01:18]Read from MH i2c: F0 09 00 17 62 00 73 C6 C1 66 34 48 D8 65 8A [10:01:18]GetLastDocTimeStamp 1723975063 [10:01:18]current date 1723975283 [10:01:18]FM_GetShiftState [10:01:18]SAM_PROTO_GetShiftState [10:01:18]wFMCommunicate request_size=4 [10:01:18]MH_SAM_APDU [10:01:18]CAPDU: 80 13 01 00 [10:01:18]Write to MH i2c: E2 08 00 18 62 80 13 01 00 00 00 00 00 F7 [10:01:18]Write i2c OK [10:01:18]MH_I2C_Read... [10:01:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:18]Read from MH i2c: E2 [10:01:18]MH_I2C_Read... [10:01:18]Read from MH i2c: E2 0E 00 [10:01:18]MH_I2C_Read... [10:01:18]Read from MH i2c: E2 0E 00 18 62 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 34 [10:01:18]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:01:18]wFMCommunicate OK [10:01:18]SAM_PROTO_GetShiftState done [10:01:18]FM_GetShiftState done [10:01:18]opened in 1723940556 [10:01:18]opened+sec_in_day 1724026956 [10:01:18]quantity*price = 50063 [10:01:18]sum+1 = 50064 [10:01:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.63 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.63 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 135 18.08.2024 10:01 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260577 ФПД: 192649620534899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T100123&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260577&fm=192649620534899&tin=02508201610067®Number=0000000000091865&sum=50063 [10:01:20]StoreToDocumentArchive [10:01:20]shift 449 fd 260577 [10:01:20]save to /storage/0449/doc_00260577 [10:01:20]save last doc name /storage/0449/doc_00260577 to /storage/kkm_last_doc_name [10:01:20]save OK [10:01:20]Clear old archive folders... [10:01:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:01:20]tlvbuf is 003A04B0 [10:01:20]SAM_PROTO_ClearQueue [10:01:20]wFMCommunicate request_size=4 [10:01:20]MH_SAM_APDU [10:01:20]CAPDU: 80 09 00 00 [10:01:20]Write to MH i2c: E2 08 00 25 62 80 09 00 00 00 00 00 00 F9 [10:01:20]Write i2c OK [10:01:20]MH_I2C_Read... [10:01:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:20]Read from MH i2c: E2 [10:01:20]MH_I2C_Read... [10:01:20]Read from MH i2c: E2 03 00 [10:01:20]MH_I2C_Read... [10:01:20]Read from MH i2c: E2 03 00 25 62 00 90 00 FB [10:01:20]RAPDU: 90 00 [10:01:20]wFMCommunicate OK [10:01:20]SAM_PROTO_ClearQueue done [10:01:20]KKMCreateOFDPacket [10:01:20]OFDProtocolAddRootSTLVToBuf [10:01:20]FM_MakeSignedData [10:01:20]FM_MakeSignedData [10:01:20]SAM_PROTO_SignData [10:01:20]wFMCommunicate request_size=4 [10:01:20]MH_SAM_APDU [10:01:20]CAPDU: 80 0D 01 02 [10:01:20]Write to MH i2c: E2 08 00 26 62 80 0D 01 02 00 00 00 00 01 [10:01:20]Write i2c OK [10:01:20]MH_I2C_Read... [10:01:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:20]Read from MH i2c: E2 [10:01:20]MH_I2C_Read... [10:01:20]Read from MH i2c: E2 03 00 [10:01:20]MH_I2C_Read... [10:01:20]Read from MH i2c: E2 03 00 26 62 00 90 00 FC [10:01:20]RAPDU: 90 00 [10:01:20]wFMCommunicate OK [10:01:20]wFMCommunicate request_size=255 [10:01:20]MH_SAM_APDU [10:01:20]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 73 C6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E1 F9 03 00 35 04 06 00 [10:01:20]Write to MH i2c: E2 02 01 27 62 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 73 C6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E1 F9 03 00 35 04 06 00 00 00 F7 [10:01:20]Write i2c OK [10:01:20]MH_I2C_Read... [10:01:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:20]Read from MH i2c: E2 [10:01:20]MH_I2C_Read... [10:01:20]Read from MH i2c: E2 03 00 [10:01:20]MH_I2C_Read... [10:01:20]Read from MH i2c: E2 03 00 27 62 00 90 00 FD [10:01:20]RAPDU: 90 00 [10:01:20]wFMCommunicate OK [10:01:20]wFMCommunicate request_size=11 [10:01:20]MH_SAM_APDU [10:01:20]CAPDU: 80 0D 02 02 06 AF 36 BC 32 B6 73 [10:01:20]Write to MH i2c: E2 0E 00 28 62 80 0D 02 02 06 00 AF 36 BC 32 B6 73 00 00 0C [10:01:20]Write i2c OK [10:01:20]MH_I2C_Read... [10:01:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:20]Read from MH i2c: E2 [10:01:20]MH_I2C_Read... [10:01:20]Read from MH i2c: E2 03 00 [10:01:20]MH_I2C_Read... [10:01:20]Read from MH i2c: E2 03 00 28 62 00 90 00 FE [10:01:20]RAPDU: 90 00 [10:01:20]wFMCommunicate OK [10:01:20]wFMCommunicate request_size=4 [10:01:20]MH_SAM_APDU [10:01:20]CAPDU: 80 0D 03 02 [10:01:20]Write to MH i2c: E2 08 00 29 62 80 0D 03 02 00 00 00 00 06 [10:01:20]Write i2c OK [10:01:20]MH_I2C_Read... [10:01:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:20]Read from MH i2c: E2 [10:01:20]MH_I2C_Read... [10:01:20]Read from MH i2c: E2 0B 00 [10:01:20]MH_I2C_Read... [10:01:20]Read from MH i2c: E2 0B 00 29 62 00 3E 90 64 E3 C7 CC 4D 9D 90 00 99 [10:01:20]RAPDU: 3E 90 64 E3 C7 CC 4D 9D 90 00 [10:01:20]wFMCommunicate OK [10:01:20]SAM_PROTO_SignData done [10:01:20]FM_MakeSignedData done [10:01:20]CreateOFDProtocolMessage [10:01:20]wFMCommunicate request_size=4 [10:01:20]MH_SAM_APDU [10:01:20]CAPDU: 80 11 00 00 [10:01:20]Write to MH i2c: E2 08 00 2A 62 80 11 00 00 00 00 00 00 06 [10:01:20]Write i2c OK [10:01:20]MH_I2C_Read... [10:01:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:20]Read from MH i2c: E2 [10:01:20]MH_I2C_Read... [10:01:20]Read from MH i2c: E2 17 00 [10:01:20]MH_I2C_Read... [10:01:20]Read from MH i2c: E2 17 00 2A 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 53 [10:01:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:01:20]wFMCommunicate OK [10:01:20]CreateOFDProtocolMessage done [10:01:20]OFDSenderStorePacket 260577 [10:01:20]StoreOFDPacket docnum=260577 [10:01:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 1F 68 08 01 30 8A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 73 C6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E1 F9 03 00 35 04 06 00 AF 36 BC 32 B6 73 3E 90 64 E3 C7 CC 4D 9D [10:01:20]CheckFolder [10:01:20]dirname=/storage/ofd_packets [10:01:20]CheckFolder done [10:01:20]ProducePacketName [10:01:20]name=ofd_packets/00260577 [10:01:20]NVStorageSaveData ofd_packets/00260577 [10:01:20]File name is /storage/ofd_packets/00260577 [10:01:20]Write 302 bytes [10:01:20]NVStorageSaveData done [10:01:20]OFDSenderStorePacket done [10:01:20]KKMCreateOFDPacket done [10:01:20]NVStorageSaveData kkm_last_timestamp [10:01:20]File name is /storage/kkm_last_timestamp [10:01:20]Write 4 bytes [10:01:20]NVStorageSaveData done [10:01:20]ExternCall_PrintAddStr [10:01:20]wPrintStart [10:01:20]Write to MH i2c: 01 00 00 2B 62 8D [10:01:20]Write i2c OK [10:01:20]MH_I2C_Read... [10:01:20]Read from MH i2c: 01 [10:01:20]MH_I2C_Read... [10:01:20]Read from MH i2c: 01 07 00 [10:01:20]MH_I2C_Read... [10:01:20]Read from MH i2c: 01 07 00 2B 62 00 00 00 00 00 FF 0F A2 [10:01:20]RasterBufferAndPrint [10:01:20]line Счет N : (1)1036121 [10:01:20]line ИНН: 02508201610067 [10:01:20]line Контрольно-Кассовый Чек [10:01:20]line ПРОДАЖА [10:01:20]line ТРК (МРК, ГНК) : 43 [10:01:20]line Товар: 2710194210 [10:01:20]line ДТ(л)-К-4 [10:01:20]line 6.570 * 76.20 [10:01:20]line = 500.63 [10:01:20]line НДС 12% НСП 1% [10:01:20]line > о реализуемом товаре [10:01:20]line ИТОГО: 500.63 [10:01:20]line НСП 1% : 4.43 [10:01:20]line НДС 12% : 53.16 [10:01:20]line Наличными: 0.00 [10:01:20]line Безнал.: 500.63 [10:01:20]line Место: АЗС № 94 "Партнер Нефть" [10:01:20]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [10:01:20]line СНО: Общий режим [10:01:20]line Чек 135 18.08.2024 10:01 [10:01:20]line Смена: 449 ФФД: 1.0 [10:01:20]line ЗНМ: 0300000099 [10:01:20]line РНМ: 0000000000091865 [10:01:20]line Версия ККМ: 001 [10:01:20]line Платежная система: O! деньги [10:01:20]line ФМ: 0000000000871820 [10:01:20]line ФД: 260577 [10:01:20]line ФПД: 192649620534899 [10:01:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T100123&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260577&fm=192649620534899&tin=02508201610067®Number=0000000000091865&sum=50063 [10:01:20]written 0, free lines is 4095 [10:01:20]OFD Sender: Processing packet 260577 [packets to send 192, broken 191] [10:01:20]ProducePacketName [10:01:20]name=ofd_packets/00260577 [10:01:20]OFD Sender: To server: pG, [10:01:20]CommunicateWithHost lk.salyk.kg:30040 [10:01:20]ConnectInit lk.salyk.kg [10:01:20]Connected sock=10 [10:01: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 30 10 01 00 00 1F 68 08 01 30 8A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 73 C6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E1 F9 03 00 35 04 06 00 AF 36 BC 32 B6 73 3E 90 64 E3 C7 CC 4D 9D [10:01: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 30 4F 00 00 00 46 1B 47 00 1E A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E1 F9 03 00 F4 03 04 00 C8 6F C1 66 B6 04 01 00 00 C7 6F EB A9 7F D0 CB B3 [10:01:21]CommunicateWithHost err = 0 [10:01:21]CheckOFDResponse [10:01:21]1017 (14) - 77093643461234 [10:01:21]1041 (16) - 0000000000871820 [10:01:21]1040 (4) - 260577 [10:01:21]1012 (4) - 18.08.2024 03:51 [10:01:21]1206 (1) - 0 [10:01:21]OFD Sender: Remove packet 260577 [10:01:21]ProducePacketName [10:01:21]name=ofd_packets/00260577 [10:01:21]NVStorageDeleteData [10:01:21]Write to MH i2c: 01 00 00 55 62 B7 [10:01:21]Write i2c OK [10:01:21]MH_I2C_Read... [10:01:21]Read from MH i2c: 01 [10:01:21]MH_I2C_Read... [10:01:21]Read from MH i2c: 01 07 00 [10:01:21]MH_I2C_Read... [10:01:21]Read from MH i2c: 01 07 00 55 62 00 00 00 00 00 7E 0C 48 [10:01:21]RasterBufferAndPrint [10:01:21]line [10:01:21]line [10:01:21]line [10:01:21]line [10:01:21]line [10:01:21]written 0, free lines is 3203 [10:01:21]MH_Cut [10:01:21]Write to MH i2c: D1 01 00 5C 62 01 90 [10:01:21]Write i2c OK [10:01:21]MH_I2C_Read... [10:01:21]Read from MH i2c: D1 [10:01:21]MH_I2C_Read... [10:01:21]Read from MH i2c: D1 01 00 [10:01:21]MH_I2C_Read... [10:01:21]Read from MH i2c: D1 01 00 5C 62 00 8F [10:01:21]Write to MH i2c: 01 00 00 5D 62 BF [10:01:21]Write i2c OK [10:01:21]MH_I2C_Read... [10:01:21]OFD Sender: No OFD packet to send [10:01:22]*** Cut start [10:01:22]*** Purtial cut [10:01:22]*** Stage 1: CUTSNS_PIN = 1 [10:01:24]Read from MH i2c: 01 [10:01:24]MH_I2C_Read... [10:01:24]*** Stop cut motor [10:01:24]*** Cut end [10:01:24]Read from MH i2c: 01 07 00 [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: 01 07 00 5D 62 00 00 00 00 00 FF 0F D4 [10:01:24]process_action close_receipt done [10:01:24]requested_data is exist [10:01:24]produce_requested_data [10:01:24]requested_item fm.sn is exist - process it [10:01:24]wFMCommunicate request_size=4 [10:01:24]MH_SAM_APDU [10:01:24]CAPDU: 80 11 00 00 [10:01:24]Write to MH i2c: E2 08 00 5E 62 80 11 00 00 00 00 00 00 3A [10:01:24]Write i2c OK [10:01:24]MH_I2C_Read... [10:01:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:24]Read from MH i2c: E2 [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: E2 17 00 [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: E2 17 00 5E 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 87 [10:01:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:01:24]wFMCommunicate OK [10:01:24]requested_item fd.num is exist - process it [10:01:24]SAM_PROTO_GetFieldsCounters [10:01:24]wFMCommunicate request_size=4 [10:01:24]MH_SAM_APDU [10:01:24]CAPDU: 80 13 00 00 [10:01:24]Write to MH i2c: E2 08 00 5F 62 80 13 00 00 00 00 00 00 3D [10:01:24]Write i2c OK [10:01:24]MH_I2C_Read... [10:01:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:24]Read from MH i2c: E2 [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: E2 62 00 [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: E2 62 00 5F 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E1 F9 03 00 0E 04 04 00 C1 01 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 90 [10:01: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E1 F9 03 00 0E 04 04 00 C1 01 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 [10:01:24]wFMCommunicate OK [10:01:24]SAM_PROTO_GetFieldsCounters done [10:01:24]requested_item shift.num is exist - process it [10:01:24]requested_item shift.opened is exist - process it [10:01:24]req_shift_opened [10:01:24]FM_GetShiftState [10:01:24]SAM_PROTO_GetShiftState [10:01:24]wFMCommunicate request_size=4 [10:01:24]MH_SAM_APDU [10:01:24]CAPDU: 80 13 01 00 [10:01:24]Write to MH i2c: E2 08 00 60 62 80 13 01 00 00 00 00 00 3F [10:01:24]Write i2c OK [10:01:24]MH_I2C_Read... [10:01:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:24]Read from MH i2c: E2 [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: E2 0E 00 [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: E2 0E 00 60 62 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 7C [10:01:24]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:01:24]wFMCommunicate OK [10:01:24]SAM_PROTO_GetShiftState done [10:01:24]FM_GetShiftState done [10:01:24]req_shift_opened done [10:01:24]requested_item shift.open_date is exist - process it [10:01:24]req_shift_open_date [10:01:24]req_shift_open_date done [10:01:24]produce_requested_data done [10:01:24]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260577,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [10:01:24]process_action_free close_receipt [10:01:24]json_value_free [10:01:24]json_value_free done [10:01:24]process_json_proto returns [10:01:24]Send response to host [10:01:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260577,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [10:01:24]free response buf [10:01:24]execute_script done [10:01:24]execute_script returns [10:01:24]free content buf [10:01:24]Sock 7.Close socket [10:01:24]Sock 7.Thread stoped [10:01:26]OFD Sender: No OFD packet to send [10:01:31]OFD Sender: No OFD packet to send [10:01:36]OFD Sender: No OFD packet to send [10:01:41]OFD Sender: No OFD packet to send [10:01:43]accept exits with 9 [10:01:43]New connection [10:01:43]New thread 3066473828 created [10:01:43]Thread 3066617188 joined [10:01:43]Waiting for new connection... [10:01:43] Sock 9.Parse request [10:01:43]Sock 9.Check first char [10:01:43]Sock 9.First char is OK [10:01:43]request: POST /json_proto HTTP/1.0 [10:01:43]Method: POST [10:01:43]URL: /json_proto [10:01:43]Method is POST - this is cgi request [10:01:43]url: /json_proto [10:01:43]query_string will be loaded in cgi processing [10:01:43]execute_cgi json_proto POST (null) [10:01:43]execute_cgi path=json_proto method=POST [10:01:43]POST find Content-Length [10:01:43]Host: 172.17.55.133:8080 [10:01:43]Content-Length: 679 [10:01:43]Content-Type: application/json [10:01:43] [10:01:43]POST finish read [10:01:43]Found Content-Length = 679 [10:01:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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:01:43]execute_script... [10: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)1036122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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:01:43]POST & json_proto [10:01:43]process_json_proto [10:01:43]json parsed OK: [10:01:43]protocol is kg_v1.0 [10:01:43]action value=close_receipt [10:01:43]process_action close_receipt [10:01:43]cmd_close_receipt [10:01:43]MH_GetDate [10:01:43]Write to MH i2c: F0 00 00 61 62 B2 [10:01:43]Write i2c OK [10:01:43]MH_I2C_Read... [10:01:43]Read from MH i2c: F0 [10:01:43]MH_I2C_Read... [10:01:43]Read from MH i2c: F0 09 00 [10:01:43]MH_I2C_Read... [10:01:43]Read from MH i2c: F0 09 00 61 62 00 8B C6 C1 66 34 48 D8 65 EC [10:01:43]GetLastDocTimeStamp 1723975283 [10:01:43]current date 1723975307 [10:01:43]FM_GetShiftState [10:01:43]SAM_PROTO_GetShiftState [10:01:43]wFMCommunicate request_size=4 [10:01:43]MH_SAM_APDU [10:01:43]CAPDU: 80 13 01 00 [10:01:43]Write to MH i2c: E2 08 00 62 62 80 13 01 00 00 00 00 00 41 [10:01:43]Write i2c OK [10:01:43]MH_I2C_Read... [10:01:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:43]Read from MH i2c: E2 [10:01:43]MH_I2C_Read... [10:01:43]Read from MH i2c: E2 0E 00 [10:01:43]MH_I2C_Read... [10:01:43]Read from MH i2c: E2 0E 00 62 62 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 7E [10:01:43]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:01:43]wFMCommunicate OK [10:01:43]SAM_PROTO_GetShiftState done [10:01:43]FM_GetShiftState done [10:01:43]opened in 1723940556 [10:01:43]opened+sec_in_day 1724026956 [10:01:43]quantity*price = 70037 [10:01:43]sum+1 = 70038 [10:01:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 136 18.08.2024 10:01 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260578 ФПД: 15406515051340 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T100147&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260578&fm=15406515051340&tin=02508201610067®Number=0000000000091865&sum=70000 [10:01:44]StoreToDocumentArchive [10:01:44]shift 449 fd 260578 [10:01:44]save to /storage/0449/doc_00260578 [10:01:44]save last doc name /storage/0449/doc_00260578 to /storage/kkm_last_doc_name [10:01:44]save OK [10:01:44]Clear old archive folders... [10:01:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:01:44]tlvbuf is 003F52D0 [10:01:44]SAM_PROTO_ClearQueue [10:01:44]wFMCommunicate request_size=4 [10:01:44]MH_SAM_APDU [10:01:44]CAPDU: 80 09 00 00 [10:01:44]Write to MH i2c: E2 08 00 6F 62 80 09 00 00 00 00 00 00 43 [10:01:44]Write i2c OK [10:01:44]MH_I2C_Read... [10:01:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:44]Read from MH i2c: E2 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: E2 03 00 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: E2 03 00 6F 62 00 90 00 45 [10:01:44]RAPDU: 90 00 [10:01:44]wFMCommunicate OK [10:01:44]SAM_PROTO_ClearQueue done [10:01:44]KKMCreateOFDPacket [10:01:44]OFDProtocolAddRootSTLVToBuf [10:01:44]FM_MakeSignedData [10:01:44]FM_MakeSignedData [10:01:44]SAM_PROTO_SignData [10:01:44]wFMCommunicate request_size=4 [10:01:44]MH_SAM_APDU [10:01:44]CAPDU: 80 0D 01 02 [10:01:44]Write to MH i2c: E2 08 00 70 62 80 0D 01 02 00 00 00 00 4B [10:01:44]Write i2c OK [10:01:44]MH_I2C_Read... [10:01:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:44]Read from MH i2c: E2 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: E2 03 00 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: E2 03 00 70 62 00 90 00 46 [10:01:44]RAPDU: 90 00 [10:01:44]wFMCommunicate OK [10:01:44]wFMCommunicate request_size=255 [10:01:44]MH_SAM_APDU [10:01:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 88 00 00 00 F4 03 04 00 8B C6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E2 F9 03 00 35 04 06 00 0E [10:01:44]Write to MH i2c: E2 02 01 71 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 88 00 00 00 F4 03 04 00 8B C6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E2 F9 03 00 35 04 06 00 0E 00 00 5D [10:01:44]Write i2c OK [10:01:44]MH_I2C_Read... [10:01:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:45]Read from MH i2c: E2 [10:01:45]MH_I2C_Read... [10:01:45]Read from MH i2c: E2 03 00 [10:01:45]MH_I2C_Read... [10:01:45]Read from MH i2c: E2 03 00 71 62 00 90 00 47 [10:01:45]RAPDU: 90 00 [10:01:45]wFMCommunicate OK [10:01:45]wFMCommunicate request_size=10 [10:01:45]MH_SAM_APDU [10:01:45]CAPDU: 80 0D 02 02 05 03 1B DB 5B 4C [10:01:45]Write to MH i2c: E2 0D 00 72 62 80 0D 02 02 05 00 03 1B DB 5B 4C 00 00 F8 [10:01:45]Write i2c OK [10:01:45]MH_I2C_Read... [10:01:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:45]Read from MH i2c: E2 [10:01:45]MH_I2C_Read... [10:01:45]Read from MH i2c: E2 03 00 [10:01:45]MH_I2C_Read... [10:01:45]Read from MH i2c: E2 03 00 72 62 00 90 00 48 [10:01:45]RAPDU: 90 00 [10:01:45]wFMCommunicate OK [10:01:45]wFMCommunicate request_size=4 [10:01:45]MH_SAM_APDU [10:01:45]CAPDU: 80 0D 03 02 [10:01:45]Write to MH i2c: E2 08 00 73 62 80 0D 03 02 00 00 00 00 50 [10:01:45]Write i2c OK [10:01:45]MH_I2C_Read... [10:01:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:45]Read from MH i2c: E2 [10:01:45]MH_I2C_Read... [10:01:45]Read from MH i2c: E2 0B 00 [10:01:45]MH_I2C_Read... [10:01:45]Read from MH i2c: E2 0B 00 73 62 00 6A 58 32 7E 24 E6 26 81 90 00 74 [10:01:45]RAPDU: 6A 58 32 7E 24 E6 26 81 90 00 [10:01:45]wFMCommunicate OK [10:01:45]SAM_PROTO_SignData done [10:01:45]FM_MakeSignedData done [10:01:45]CreateOFDProtocolMessage [10:01:45]wFMCommunicate request_size=4 [10:01:45]MH_SAM_APDU [10:01:45]CAPDU: 80 11 00 00 [10:01:45]Write to MH i2c: E2 08 00 74 62 80 11 00 00 00 00 00 00 50 [10:01:45]Write i2c OK [10:01:45]MH_I2C_Read... [10:01:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:45]Read from MH i2c: E2 [10:01:45]MH_I2C_Read... [10:01:45]Read from MH i2c: E2 17 00 [10:01:45]MH_I2C_Read... [10:01:45]Read from MH i2c: E2 17 00 74 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 9D [10:01:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:01:45]wFMCommunicate OK [10:01:45]CreateOFDProtocolMessage done [10:01:45]OFDSenderStorePacket 260578 [10:01:45]StoreOFDPacket docnum=260578 [10: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 30 0F 01 00 00 F3 0D 07 01 24 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 88 00 00 00 F4 03 04 00 8B C6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E2 F9 03 00 35 04 06 00 0E 03 1B DB 5B 4C 6A 58 32 7E 24 E6 26 81 [10:01:45]CheckFolder [10:01:45]dirname=/storage/ofd_packets [10:01:45]CheckFolder done [10:01:45]ProducePacketName [10:01:45]name=ofd_packets/00260578 [10:01:45]NVStorageSaveData ofd_packets/00260578 [10:01:45]File name is /storage/ofd_packets/00260578 [10:01:45]Write 301 bytes [10:01:45]NVStorageSaveData done [10:01:45]OFDSenderStorePacket done [10:01:45]KKMCreateOFDPacket done [10:01:45]NVStorageSaveData kkm_last_timestamp [10:01:45]File name is /storage/kkm_last_timestamp [10:01:45]Write 4 bytes [10:01:45]NVStorageSaveData done [10:01:45]ExternCall_PrintAddStr [10:01:45]wPrintStart [10:01:45]Write to MH i2c: 01 00 00 75 62 D7 [10:01:45]Write i2c OK [10:01:45]MH_I2C_Read... [10:01:45]Read from MH i2c: 01 [10:01:45]MH_I2C_Read... [10:01:45]Read from MH i2c: 01 07 00 [10:01:45]MH_I2C_Read... [10:01:45]Read from MH i2c: 01 07 00 75 62 00 00 00 00 00 FF 0F EC [10:01:45]RasterBufferAndPrint [10:01:45]line Счет N : (1)1036122 [10:01:45]line ИНН: 02508201610067 [10:01:45]line Контрольно-Кассовый Чек [10:01:45]line ПРОДАЖА [10:01:45]line ТРК (МРК, ГНК) : 32 [10:01:45]line Товар: 2710124130 [10:01:45]line Аи-92-К-5 [10:01:45]line 10.330 * 67.80 [10:01:45]line = 700.37 [10:01:45]line НДС 12% НСП 1% [10:01:45]line > о реализуемом товаре [10:01:45]line ОКРУГЛЕНИЕ: -0.37 [10:01:45]line ИТОГО: 700.00 [10:01:45]line Внесено: 700.00 [10:01:45]line СДАЧА: 0.00 [10:01:45]line НСП 1% : 6.20 [10:01:45]line НДС 12% : 74.38 [10:01:45]line Наличными: 700.00 [10:01:45]line Безнал.: 0.00 [10:01:45]line Место: АЗС № 94 "Партнер Нефть" [10:01:45]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [10:01:45]line СНО: Общий режим [10:01:45]line Чек 136 18.08.2024 10:01 [10:01:45]line Смена: 449 ФФД: 1.0 [10:01:45]line ЗНМ: 0300000099 [10:01:45]line РНМ: 0000000000091865 [10:01:45]line Версия ККМ: 001 [10:01:45]line ФМ: 0000000000871820 [10:01:45]line ФД: 260578 [10:01:45]line ФПД: 15406515051340 [10:01:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T100147&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260578&fm=15406515051340&tin=02508201610067®Number=0000000000091865&sum=70000 [10:01:45]OFD Sender: Processing packet 260578 [packets to send 192, broken 191] [10:01:45]ProducePacketName [10:01:45]name=ofd_packets/00260578 [10:01:45]OFD Sender: To server: pG, [10:01:45]CommunicateWithHost lk.salyk.kg:30040 [10:01:45]ConnectInit lk.salyk.kg [10:01:45]written 0, free lines is 4095 [10:01:45]Connected sock=10 [10:01: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 30 0F 01 00 00 F3 0D 07 01 24 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 88 00 00 00 F4 03 04 00 8B C6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E2 F9 03 00 35 04 06 00 0E 03 1B DB 5B 4C 6A 58 32 7E 24 E6 26 81 [10:01: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 30 4F 00 00 00 E3 B2 47 00 1D 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E2 F9 03 00 F4 03 04 00 E1 6F C1 66 B6 04 01 00 00 FE 6C 7F 3B 20 C0 0E B0 [10:01:45]CommunicateWithHost err = 0 [10:01:45]CheckOFDResponse [10:01:45]1017 (14) - 77093643461234 [10:01:45]1041 (16) - 0000000000871820 [10:01:45]1040 (4) - 260578 [10:01:45]1012 (4) - 18.08.2024 03:52 [10:01:45]1206 (1) - 0 [10:01:45]OFD Sender: Remove packet 260578 [10:01:45]ProducePacketName [10:01:45]name=ofd_packets/00260578 [10:01:45]NVStorageDeleteData [10:01:45]Write to MH i2c: 01 00 00 A0 62 02 [10:01:45]Write i2c OK [10:01:45]MH_I2C_Read... [10:01:45]Read from MH i2c: 01 [10:01:45]MH_I2C_Read... [10:01:45]Read from MH i2c: 01 07 00 [10:01:45]MH_I2C_Read... [10:01:45]Read from MH i2c: 01 07 00 A0 62 00 00 00 00 00 60 0C 75 [10:01:45]RasterBufferAndPrint [10:01:45]line [10:01:45]line [10:01:45]line [10:01:45]line [10:01:45]line [10:01:45]written 0, free lines is 3172 [10:01:45]MH_Cut [10:01:45]Write to MH i2c: D1 01 00 A7 62 01 DB [10:01:45]Write i2c OK [10:01:45]MH_I2C_Read... [10:01:45]Read from MH i2c: D1 [10:01:45]MH_I2C_Read... [10:01:45]Read from MH i2c: D1 01 00 [10:01:45]MH_I2C_Read... [10:01:45]Read from MH i2c: D1 01 00 A7 62 00 DA [10:01:45]Write to MH i2c: 01 00 00 A8 62 0A [10:01:45]Write i2c OK [10:01:45]MH_I2C_Read... [10:01:46]OFD Sender: No OFD packet to send [10:01:47]*** Cut start [10:01:47]*** Purtial cut [10:01:47]*** Stage 1: CUTSNS_PIN = 1 [10:01:49]Read from MH i2c: 01 [10:01:49]MH_I2C_Read... [10:01:49]*** Stop cut motor [10:01:49]*** Cut end [10:01:49]Read from MH i2c: 01 07 00 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: 01 07 00 A8 62 00 00 00 00 00 FF 0F 1F [10:01:49]process_action close_receipt done [10:01:49]requested_data is exist [10:01:49]produce_requested_data [10:01:49]requested_item fm.sn is exist - process it [10:01:49]wFMCommunicate request_size=4 [10:01:49]MH_SAM_APDU [10:01:49]CAPDU: 80 11 00 00 [10:01:49]Write to MH i2c: E2 08 00 A9 62 80 11 00 00 00 00 00 00 85 [10:01:49]Write i2c OK [10:01:49]MH_I2C_Read... [10:01:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:49]Read from MH i2c: E2 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: E2 17 00 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: E2 17 00 A9 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D2 [10:01:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:01:49]wFMCommunicate OK [10:01:49]requested_item fd.num is exist - process it [10:01:49]SAM_PROTO_GetFieldsCounters [10:01:49]wFMCommunicate request_size=4 [10:01:49]MH_SAM_APDU [10:01:49]CAPDU: 80 13 00 00 [10:01:49]Write to MH i2c: E2 08 00 AA 62 80 13 00 00 00 00 00 00 88 [10:01:49]Write i2c OK [10:01:49]MH_I2C_Read... [10:01:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:49]Read from MH i2c: E2 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: E2 62 00 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: E2 62 00 AA 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E2 F9 03 00 0E 04 04 00 C1 01 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 DF [10:01: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E2 F9 03 00 0E 04 04 00 C1 01 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 [10:01:49]wFMCommunicate OK [10:01:49]SAM_PROTO_GetFieldsCounters done [10:01:49]requested_item shift.num is exist - process it [10:01:49]requested_item shift.opened is exist - process it [10:01:49]req_shift_opened [10:01:49]FM_GetShiftState [10:01:49]SAM_PROTO_GetShiftState [10:01:49]wFMCommunicate request_size=4 [10:01:49]MH_SAM_APDU [10:01:49]CAPDU: 80 13 01 00 [10:01:49]Write to MH i2c: E2 08 00 AB 62 80 13 01 00 00 00 00 00 8A [10:01:49]Write i2c OK [10:01:49]MH_I2C_Read... [10:01:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:49]Read from MH i2c: E2 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: E2 0E 00 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: E2 0E 00 AB 62 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C7 [10:01:49]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:01:49]wFMCommunicate OK [10:01:49]SAM_PROTO_GetShiftState done [10:01:49]FM_GetShiftState done [10:01:49]req_shift_opened done [10:01:49]requested_item shift.open_date is exist - process it [10:01:49]req_shift_open_date [10:01:49]req_shift_open_date done [10:01:49]produce_requested_data done [10:01:49]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260578,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [10:01:49]process_action_free close_receipt [10:01:49]json_value_free [10:01:49]json_value_free done [10:01:49]process_json_proto returns [10:01:49]Send response to host [10:01:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260578,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [10:01:49]free response buf [10:01:49]execute_script done [10:01:49]execute_script returns [10:01:49]free content buf [10:01:49]Sock 9.Close socket [10:01:49]Sock 9.Thread stoped [10:01:51]OFD Sender: No OFD packet to send [10:01:56]OFD Sender: No OFD packet to send [10:02:01]OFD Sender: No OFD packet to send [10:02:06]OFD Sender: No OFD packet to send [10:02:11]OFD Sender: No OFD packet to send [10:02:16]OFD Sender: No OFD packet to send [10:02:21]OFD Sender: No OFD packet to send [10:02:26]OFD Sender: No OFD packet to send [10:02:31]OFD Sender: No OFD packet to send [10:02:36]OFD Sender: No OFD packet to send [10:02:41]OFD Sender: No OFD packet to send [10:02:46]OFD Sender: No OFD packet to send [10:02:51]OFD Sender: No OFD packet to send [10:02:56]OFD Sender: No OFD packet to send [10:03:01]OFD Sender: No OFD packet to send [10:03:05]accept exits with 7 [10:03:05]New connection [10:03:05]New thread 3066617188 created [10:03:05]Thread 3066473828 joined [10:03:05]Waiting for new connection... [10:03:05] Sock 7.Parse request [10:03:05]Sock 7.Check first char [10:03:05]Sock 7.First char is OK [10:03:05]request: POST /json_proto HTTP/1.0 [10:03:05]Method: POST [10:03:05]URL: /json_proto [10:03:05]Method is POST - this is cgi request [10:03:05]url: /json_proto [10:03:05]query_string will be loaded in cgi processing [10:03:05]execute_cgi json_proto POST (null) [10:03:05]execute_cgi path=json_proto method=POST [10:03:05]POST find Content-Length [10:03:05]Host: 172.17.55.133:8080 [10:03:05]Content-Length: 683 [10:03:05]Content-Type: application/json [10:03:05] [10:03:05]POST finish read [10:03:05]Found Content-Length = 683 [10:03:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:03:05]execute_script... [10:03: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)1036123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:03:05]POST & json_proto [10:03:05]process_json_proto [10:03:05]json parsed OK: [10:03:05]protocol is kg_v1.0 [10:03:05]action value=close_receipt [10:03:05]process_action close_receipt [10:03:05]cmd_close_receipt [10:03:05]MH_GetDate [10:03:05]Write to MH i2c: F0 00 00 AC 62 FD [10:03:05]Write i2c OK [10:03:05]MH_I2C_Read... [10:03:05]Read from MH i2c: F0 [10:03:05]MH_I2C_Read... [10:03:05]Read from MH i2c: F0 09 00 [10:03:05]MH_I2C_Read... [10:03:05]Read from MH i2c: F0 09 00 AC 62 00 DD C6 C1 66 34 48 D8 65 89 [10:03:05]GetLastDocTimeStamp 1723975307 [10:03:05]current date 1723975389 [10:03:05]FM_GetShiftState [10:03:05]SAM_PROTO_GetShiftState [10:03:05]wFMCommunicate request_size=4 [10:03:05]MH_SAM_APDU [10:03:05]CAPDU: 80 13 01 00 [10:03:05]Write to MH i2c: E2 08 00 AD 62 80 13 01 00 00 00 00 00 8C [10:03:05]Write i2c OK [10:03:05]MH_I2C_Read... [10:03:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:05]Read from MH i2c: E2 [10:03:05]MH_I2C_Read... [10:03:05]Read from MH i2c: E2 0E 00 [10:03:05]MH_I2C_Read... [10:03:05]Read from MH i2c: E2 0E 00 AD 62 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C9 [10:03:05]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:03:05]wFMCommunicate OK [10:03:05]SAM_PROTO_GetShiftState done [10:03:05]FM_GetShiftState done [10:03:05]opened in 1723940556 [10:03:05]opened+sec_in_day 1724026956 [10:03:05]quantity*price = 100005 [10:03:05]sum+1 = 100006 [10:03:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 137 18.08.2024 10:03 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260579 ФПД: 129989739631660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T100309&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260579&fm=129989739631660&tin=02508201610067®Number=0000000000091865&sum=100000 [10:03:06]StoreToDocumentArchive [10:03:06]shift 449 fd 260579 [10:03:06]save to /storage/0449/doc_00260579 [10:03:06]save last doc name /storage/0449/doc_00260579 to /storage/kkm_last_doc_name [10:03:06]save OK [10:03:06]Clear old archive folders... [10:03:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:03:06]tlvbuf is 003A05F0 [10:03:06]SAM_PROTO_ClearQueue [10:03:06]wFMCommunicate request_size=4 [10:03:06]MH_SAM_APDU [10:03:06]CAPDU: 80 09 00 00 [10:03:06]Write to MH i2c: E2 08 00 BA 62 80 09 00 00 00 00 00 00 8E [10:03:06]Write i2c OK [10:03:06]MH_I2C_Read... [10:03:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:06]Read from MH i2c: E2 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 03 00 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 03 00 BA 62 00 90 00 90 [10:03:06]RAPDU: 90 00 [10:03:06]wFMCommunicate OK [10:03:06]SAM_PROTO_ClearQueue done [10:03:06]KKMCreateOFDPacket [10:03:06]OFDProtocolAddRootSTLVToBuf [10:03:06]FM_MakeSignedData [10:03:06]FM_MakeSignedData [10:03:06]SAM_PROTO_SignData [10:03:06]wFMCommunicate request_size=4 [10:03:06]MH_SAM_APDU [10:03:06]CAPDU: 80 0D 01 02 [10:03:06]Write to MH i2c: E2 08 00 BB 62 80 0D 01 02 00 00 00 00 96 [10:03:06]Write i2c OK [10:03:06]MH_I2C_Read... [10:03:06]OFD Sender: No OFD packet to send [10:03:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:06]Read from MH i2c: E2 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 03 00 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 03 00 BB 62 00 90 00 91 [10:03:06]RAPDU: 90 00 [10:03:06]wFMCommunicate OK [10:03:06]wFMCommunicate request_size=255 [10:03:06]MH_SAM_APDU [10:03:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 DD C6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E3 F9 03 00 35 04 06 00 76 [10:03:06]Write to MH i2c: E2 02 01 BC 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 DD C6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E3 F9 03 00 35 04 06 00 76 00 00 0C [10:03:06]Write i2c OK [10:03:06]MH_I2C_Read... [10:03:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:06]Read from MH i2c: E2 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 03 00 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 03 00 BC 62 00 90 00 92 [10:03:06]RAPDU: 90 00 [10:03:06]wFMCommunicate OK [10:03:06]wFMCommunicate request_size=10 [10:03:06]MH_SAM_APDU [10:03:06]CAPDU: 80 0D 02 02 05 39 98 41 54 2C [10:03:06]Write to MH i2c: E2 0D 00 BD 62 80 0D 02 02 05 00 39 98 41 54 2C 00 00 35 [10:03:06]Write i2c OK [10:03:06]MH_I2C_Read... [10:03:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:06]Read from MH i2c: E2 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 03 00 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 03 00 BD 62 00 90 00 93 [10:03:06]RAPDU: 90 00 [10:03:06]wFMCommunicate OK [10:03:06]wFMCommunicate request_size=4 [10:03:06]MH_SAM_APDU [10:03:06]CAPDU: 80 0D 03 02 [10:03:06]Write to MH i2c: E2 08 00 BE 62 80 0D 03 02 00 00 00 00 9B [10:03:06]Write i2c OK [10:03:06]MH_I2C_Read... [10:03:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:06]Read from MH i2c: E2 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 0B 00 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 0B 00 BE 62 00 BA 70 CC 8C 19 2D 68 8D 90 00 59 [10:03:06]RAPDU: BA 70 CC 8C 19 2D 68 8D 90 00 [10:03:06]wFMCommunicate OK [10:03:06]SAM_PROTO_SignData done [10:03:06]FM_MakeSignedData done [10:03:06]CreateOFDProtocolMessage [10:03:06]wFMCommunicate request_size=4 [10:03:06]MH_SAM_APDU [10:03:06]CAPDU: 80 11 00 00 [10:03:06]Write to MH i2c: E2 08 00 BF 62 80 11 00 00 00 00 00 00 9B [10:03:06]Write i2c OK [10:03:06]MH_I2C_Read... [10:03:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:06]Read from MH i2c: E2 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 17 00 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 17 00 BF 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E8 [10:03:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:03:06]wFMCommunicate OK [10:03:06]CreateOFDProtocolMessage done [10:03:06]OFDSenderStorePacket 260579 [10:03:06]StoreOFDPacket docnum=260579 [10:03:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 74 3B 07 01 A7 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 DD C6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E3 F9 03 00 35 04 06 00 76 39 98 41 54 2C BA 70 CC 8C 19 2D 68 8D [10:03:06]CheckFolder [10:03:06]dirname=/storage/ofd_packets [10:03:06]CheckFolder done [10:03:06]ProducePacketName [10:03:06]name=ofd_packets/00260579 [10:03:06]NVStorageSaveData ofd_packets/00260579 [10:03:06]File name is /storage/ofd_packets/00260579 [10:03:06]Write 301 bytes [10:03:06]NVStorageSaveData done [10:03:06]OFDSenderStorePacket done [10:03:06]KKMCreateOFDPacket done [10:03:06]NVStorageSaveData kkm_last_timestamp [10:03:06]File name is /storage/kkm_last_timestamp [10:03:06]Write 4 bytes [10:03:06]NVStorageSaveData done [10:03:06]ExternCall_PrintAddStr [10:03:06]wPrintStart [10:03:06]Write to MH i2c: 01 00 00 C0 62 22 [10:03:06]Write i2c OK [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: 01 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: 01 07 00 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: 01 07 00 C0 62 00 00 00 00 00 FF 0F 37 [10:03:06]RasterBufferAndPrint [10:03:06]line Счет N : (1)1036123 [10:03:06]line ИНН: 02508201610067 [10:03:06]line Контрольно-Кассовый Чек [10:03:06]line ПРОДАЖА [10:03:06]line ТРК (МРК, ГНК) : 12 [10:03:06]line Товар: 2710124130 [10:03:06]line Аи-92-К-5 [10:03:06]line 14.750 * 67.80 [10:03:06]line = 1000.05 [10:03:06]line НДС 12% НСП 1% [10:03:06]line > о реализуемом товаре [10:03:06]line ОКРУГЛЕНИЕ: -0.05 [10:03:06]line ИТОГО: 1000.00 [10:03:06]line Внесено: 1000.00 [10:03:06]line СДАЧА: 0.00 [10:03:06]line НСП 1% : 8.85 [10:03:06]line НДС 12% : 106.20 [10:03:06]line Наличными: 1000.00 [10:03:06]line Безнал.: 0.00 [10:03:06]line Место: АЗС № 94 "Партнер Нефть" [10:03:06]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [10:03:06]line СНО: Общий режим [10:03:06]line Чек 137 18.08.2024 10:03 [10:03:06]line Смена: 449 ФФД: 1.0 [10:03:06]line ЗНМ: 0300000099 [10:03:06]line РНМ: 0000000000091865 [10:03:06]line Версия ККМ: 001 [10:03:06]line ФМ: 0000000000871820 [10:03:06]line ФД: 260579 [10:03:06]line ФПД: 129989739631660 [10:03:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T100309&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260579&fm=129989739631660&tin=02508201610067®Number=0000000000091865&sum=100000 [10:03:07]OFD Sender: Processing packet 260579 [packets to send 192, broken 191] [10:03:07]ProducePacketName [10:03:07]name=ofd_packets/00260579 [10:03:07]OFD Sender: To server: pG, [10:03:07]CommunicateWithHost lk.salyk.kg:30040 [10:03:07]ConnectInit lk.salyk.kg [10:03:07]written 0, free lines is 4095 [10:03:07]Connected sock=10 [10:03: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 30 0F 01 00 00 74 3B 07 01 A7 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 DD C6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E3 F9 03 00 35 04 06 00 76 39 98 41 54 2C BA 70 CC 8C 19 2D 68 8D [10:03: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 30 4F 00 00 00 82 B5 47 00 1D 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 30 10 04 04 00 E3 F9 03 00 F4 03 04 00 32 70 C1 66 B6 04 01 00 00 A6 4A B2 23 36 41 7B 63 [10:03:07]CommunicateWithHost err = 0 [10:03:07]CheckOFDResponse [10:03:07]1017 (14) - 77093643461234 [10:03:07]1041 (16) - 0000000000871820 [10:03:07]1040 (4) - 260579 [10:03:07]1012 (4) - 18.08.2024 03:53 [10:03:07]1206 (1) - 0 [10:03:07]OFD Sender: Remove packet 260579 [10:03:07]ProducePacketName [10:03:07]name=ofd_packets/00260579 [10:03:07]NVStorageDeleteData [10:03:07]Write to MH i2c: 01 00 00 EB 62 4D [10:03:07]Write i2c OK [10:03:07]MH_I2C_Read... [10:03:07]Read from MH i2c: 01 [10:03:07]MH_I2C_Read... [10:03:07]Read from MH i2c: 01 07 00 [10:03:07]MH_I2C_Read... [10:03:07]Read from MH i2c: 01 07 00 EB 62 00 00 00 00 00 72 0C D2 [10:03:07]RasterBufferAndPrint [10:03:07]line [10:03:07]line [10:03:07]line [10:03:07]line [10:03:07]line [10:03:07]written 0, free lines is 3188 [10:03:07]MH_Cut [10:03:07]Write to MH i2c: D1 01 00 F2 62 01 26 [10:03:07]Write i2c OK [10:03:07]MH_I2C_Read... [10:03:07]Read from MH i2c: D1 [10:03:07]MH_I2C_Read... [10:03:07]Read from MH i2c: D1 01 00 [10:03:07]MH_I2C_Read... [10:03:07]Read from MH i2c: D1 01 00 F2 62 00 25 [10:03:07]Write to MH i2c: 01 00 00 F3 62 55 [10:03:07]Write i2c OK [10:03:07]MH_I2C_Read... [10:03:07]OFD Sender: No OFD packet to send [10:03:08]*** Cut start [10:03:08]*** Purtial cut [10:03:08]*** Stage 1: CUTSNS_PIN = 1 [10:03:10]Read from MH i2c: 01 [10:03:10]MH_I2C_Read... [10:03:10]*** Stop cut motor [10:03:10]*** Cut end [10:03:10]Read from MH i2c: 01 07 00 [10:03:10]MH_I2C_Read... [10:03:10]Read from MH i2c: 01 07 00 F3 62 00 00 00 00 00 FF 0F 6A [10:03:10]process_action close_receipt done [10:03:10]requested_data is exist [10:03:10]produce_requested_data [10:03:10]requested_item fm.sn is exist - process it [10:03:10]wFMCommunicate request_size=4 [10:03:10]MH_SAM_APDU [10:03:10]CAPDU: 80 11 00 00 [10:03:10]Write to MH i2c: E2 08 00 F4 62 80 11 00 00 00 00 00 00 D0 [10:03:10]Write i2c OK [10:03:10]MH_I2C_Read... [10:03:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:10]Read from MH i2c: E2 [10:03:10]MH_I2C_Read... [10:03:10]Read from MH i2c: E2 17 00 [10:03:10]MH_I2C_Read... [10:03:10]Read from MH i2c: E2 17 00 F4 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 1D [10:03:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:03:10]wFMCommunicate OK [10:03:10]requested_item fd.num is exist - process it [10:03:10]SAM_PROTO_GetFieldsCounters [10:03:10]wFMCommunicate request_size=4 [10:03:10]MH_SAM_APDU [10:03:10]CAPDU: 80 13 00 00 [10:03:10]Write to MH i2c: E2 08 00 F5 62 80 13 00 00 00 00 00 00 D3 [10:03:10]Write i2c OK [10:03:10]MH_I2C_Read... [10:03:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:11]Read from MH i2c: E2 [10:03:11]MH_I2C_Read... [10:03:11]Read from MH i2c: E2 62 00 [10:03:11]MH_I2C_Read... [10:03:11]Read from MH i2c: E2 62 00 F5 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E3 F9 03 00 0E 04 04 00 C1 01 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 2E [10:03: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E3 F9 03 00 0E 04 04 00 C1 01 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 [10:03:11]wFMCommunicate OK [10:03:11]SAM_PROTO_GetFieldsCounters done [10:03:11]requested_item shift.num is exist - process it [10:03:11]requested_item shift.opened is exist - process it [10:03:11]req_shift_opened [10:03:11]FM_GetShiftState [10:03:11]SAM_PROTO_GetShiftState [10:03:11]wFMCommunicate request_size=4 [10:03:11]MH_SAM_APDU [10:03:11]CAPDU: 80 13 01 00 [10:03:11]Write to MH i2c: E2 08 00 F6 62 80 13 01 00 00 00 00 00 D5 [10:03:11]Write i2c OK [10:03:11]MH_I2C_Read... [10:03:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:11]Read from MH i2c: E2 [10:03:11]MH_I2C_Read... [10:03:11]Read from MH i2c: E2 0E 00 [10:03:11]MH_I2C_Read... [10:03:11]Read from MH i2c: E2 0E 00 F6 62 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 12 [10:03:11]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:03:11]wFMCommunicate OK [10:03:11]SAM_PROTO_GetShiftState done [10:03:11]FM_GetShiftState done [10:03:11]req_shift_opened done [10:03:11]requested_item shift.open_date is exist - process it [10:03:11]req_shift_open_date [10:03:11]req_shift_open_date done [10:03:11]produce_requested_data done [10:03:11]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260579,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [10:03:11]process_action_free close_receipt [10:03:11]json_value_free [10:03:11]json_value_free done [10:03:11]process_json_proto returns [10:03:11]Send response to host [10:03:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260579,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [10:03:11]free response buf [10:03:11]execute_script done [10:03:11]execute_script returns [10:03:11]free content buf [10:03:11]Sock 7.Close socket [10:03:11]Sock 7.Thread stoped [10:03:13]OFD Sender: No OFD packet to send [10:03:18]OFD Sender: No OFD packet to send [10:03:23]OFD Sender: No OFD packet to send [10:03:28]OFD Sender: No OFD packet to send [10:03:33]OFD Sender: No OFD packet to send [10:03:38]OFD Sender: No OFD packet to send [10:03:43]OFD Sender: No OFD packet to send [10:03:48]OFD Sender: No OFD packet to send [10:03:53]OFD Sender: No OFD packet to send [10:03:58]OFD Sender: No OFD packet to send [10:04:03]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:39]accept exits with 9 [10:04:39]New connection [10:04:39]New thread 3066473828 created [10:04:39]Thread 3066617188 joined [10:04:39]Waiting for new connection... [10:04:39] Sock 9.Parse request [10:04:39]Sock 9.Check first char [10:04:39]Sock 9.First char is OK [10:04:39]request: POST /json_proto HTTP/1.0 [10:04:39]Method: POST [10:04:39]URL: /json_proto [10:04:39]Method is POST - this is cgi request [10:04:39]url: /json_proto [10:04:39]query_string will be loaded in cgi processing [10:04:39]execute_cgi json_proto POST (null) [10:04:39]execute_cgi path=json_proto method=POST [10:04:39]POST find Content-Length [10:04:39]Host: 172.17.55.133:8080 [10:04:39]Content-Length: 683 [10:04:39]Content-Type: application/json [10:04:39] [10:04:39]POST finish read [10:04:39]Found Content-Length = 683 [10:04:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:04:39]execute_script... [10:04: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)1036124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:04:39]POST & json_proto [10:04:39]process_json_proto [10:04:39]json parsed OK: [10:04:39]protocol is kg_v1.0 [10:04:39]action value=close_receipt [10:04:39]process_action close_receipt [10:04:39]cmd_close_receipt [10:04:39]MH_GetDate [10:04:39]Write to MH i2c: F0 00 00 F7 62 48 [10:04:39]Write i2c OK [10:04:39]MH_I2C_Read... [10:04:39]Read from MH i2c: F0 [10:04:39]MH_I2C_Read... [10:04:39]Read from MH i2c: F0 09 00 [10:04:39]MH_I2C_Read... [10:04:39]Read from MH i2c: F0 09 00 F7 62 00 3B C7 C1 66 34 48 D8 65 33 [10:04:39]GetLastDocTimeStamp 1723975389 [10:04:39]current date 1723975483 [10:04:39]FM_GetShiftState [10:04:39]SAM_PROTO_GetShiftState [10:04:39]wFMCommunicate request_size=4 [10:04:39]MH_SAM_APDU [10:04:39]CAPDU: 80 13 01 00 [10:04:39]Write to MH i2c: E2 08 00 F8 62 80 13 01 00 00 00 00 00 D7 [10:04:39]Write i2c OK [10:04:39]MH_I2C_Read... [10:04:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:39]Read from MH i2c: E2 [10:04:39]MH_I2C_Read... [10:04:39]Read from MH i2c: E2 0E 00 [10:04:39]MH_I2C_Read... [10:04:39]Read from MH i2c: E2 0E 00 F8 62 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 14 [10:04:39]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:04:39]wFMCommunicate OK [10:04:39]SAM_PROTO_GetShiftState done [10:04:39]FM_GetShiftState done [10:04:39]opened in 1723940556 [10:04:39]opened+sec_in_day 1724026956 [10:04:39]quantity*price = 100005 [10:04:39]sum+1 = 100006 [10:04:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 138 18.08.2024 10:04 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260580 ФПД: 243773223679403 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T100443&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260580&fm=243773223679403&tin=02508201610067®Number=0000000000091865&sum=100000 [10:04:40]StoreToDocumentArchive [10:04:40]shift 449 fd 260580 [10:04:40]save to /storage/0449/doc_00260580 [10:04:40]save last doc name /storage/0449/doc_00260580 to /storage/kkm_last_doc_name [10:04:40]save OK [10:04:40]Clear old archive folders... [10:04:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:04:40]tlvbuf is 0049FD30 [10:04:40]SAM_PROTO_ClearQueue [10:04:40]wFMCommunicate request_size=4 [10:04:40]MH_SAM_APDU [10:04:40]CAPDU: 80 09 00 00 [10:04:40]Write to MH i2c: E2 08 00 05 63 80 09 00 00 00 00 00 00 DA [10:04:40]Write i2c OK [10:04:40]MH_I2C_Read... [10:04:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:40]Read from MH i2c: E2 [10:04:40]MH_I2C_Read... [10:04:40]Read from MH i2c: E2 03 00 [10:04:40]MH_I2C_Read... [10:04:40]Read from MH i2c: E2 03 00 05 63 00 90 00 DC [10:04:40]RAPDU: 90 00 [10:04:40]wFMCommunicate OK [10:04:40]SAM_PROTO_ClearQueue done [10:04:40]KKMCreateOFDPacket [10:04:40]OFDProtocolAddRootSTLVToBuf [10:04:40]FM_MakeSignedData [10:04:40]FM_MakeSignedData [10:04:40]SAM_PROTO_SignData [10:04:40]wFMCommunicate request_size=4 [10:04:40]MH_SAM_APDU [10:04:40]CAPDU: 80 0D 01 02 [10:04:40]Write to MH i2c: E2 08 00 06 63 80 0D 01 02 00 00 00 00 E2 [10:04:40]Write i2c OK [10:04:40]MH_I2C_Read... [10:04:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:40]Read from MH i2c: E2 [10:04:40]MH_I2C_Read... [10:04:40]Read from MH i2c: E2 03 00 [10:04:40]MH_I2C_Read... [10:04:40]Read from MH i2c: E2 03 00 06 63 00 90 00 DD [10:04:40]RAPDU: 90 00 [10:04:40]wFMCommunicate OK [10:04:40]wFMCommunicate request_size=255 [10:04:40]MH_SAM_APDU [10:04:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 3B C7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E4 F9 03 00 35 04 06 00 DD [10:04:40]Write to MH i2c: E2 02 01 07 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 3B C7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E4 F9 03 00 35 04 06 00 DD 00 00 20 [10:04:40]Write i2c OK [10:04:40]MH_I2C_Read... [10:04:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:41]Read from MH i2c: E2 [10:04:41]MH_I2C_Read... [10:04:41]Read from MH i2c: E2 03 00 [10:04:41]MH_I2C_Read... [10:04:41]Read from MH i2c: E2 03 00 07 63 00 90 00 DE [10:04:41]RAPDU: 90 00 [10:04:41]wFMCommunicate OK [10:04:41]wFMCommunicate request_size=10 [10:04:41]MH_SAM_APDU [10:04:41]CAPDU: 80 0D 02 02 05 B5 E0 67 35 AB [10:04:41]Write to MH i2c: E2 0D 00 08 63 80 0D 02 02 05 00 B5 E0 67 35 AB 00 00 CB [10:04:41]Write i2c OK [10:04:41]MH_I2C_Read... [10:04:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:41]Read from MH i2c: E2 [10:04:41]MH_I2C_Read... [10:04:41]Read from MH i2c: E2 03 00 [10:04:41]MH_I2C_Read... [10:04:41]Read from MH i2c: E2 03 00 08 63 00 90 00 DF [10:04:41]RAPDU: 90 00 [10:04:41]wFMCommunicate OK [10:04:41]wFMCommunicate request_size=4 [10:04:41]MH_SAM_APDU [10:04:41]CAPDU: 80 0D 03 02 [10:04:41]Write to MH i2c: E2 08 00 09 63 80 0D 03 02 00 00 00 00 E7 [10:04:41]Write i2c OK [10:04:41]MH_I2C_Read... [10:04:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:41]Read from MH i2c: E2 [10:04:41]MH_I2C_Read... [10:04:41]Read from MH i2c: E2 0B 00 [10:04:41]MH_I2C_Read... [10:04:41]Read from MH i2c: E2 0B 00 09 63 00 EB 59 DB 2F 10 03 A1 39 90 00 23 [10:04:41]RAPDU: EB 59 DB 2F 10 03 A1 39 90 00 [10:04:41]wFMCommunicate OK [10:04:41]SAM_PROTO_SignData done [10:04:41]FM_MakeSignedData done [10:04:41]CreateOFDProtocolMessage [10:04:41]wFMCommunicate request_size=4 [10:04:41]MH_SAM_APDU [10:04:41]CAPDU: 80 11 00 00 [10:04:41]Write to MH i2c: E2 08 00 0A 63 80 11 00 00 00 00 00 00 E7 [10:04:41]Write i2c OK [10:04:41]MH_I2C_Read... [10:04:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:41]Read from MH i2c: E2 [10:04:41]MH_I2C_Read... [10:04:41]Read from MH i2c: E2 17 00 [10:04:41]MH_I2C_Read... [10:04:41]Read from MH i2c: E2 17 00 0A 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 34 [10:04:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:04:41]wFMCommunicate OK [10:04:41]CreateOFDProtocolMessage done [10:04:41]OFDSenderStorePacket 260580 [10:04:41]StoreOFDPacket docnum=260580 [10:04:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 F7 87 07 01 A3 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 3B C7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E4 F9 03 00 35 04 06 00 DD B5 E0 67 35 AB EB 59 DB 2F 10 03 A1 39 [10:04:41]CheckFolder [10:04:41]dirname=/storage/ofd_packets [10:04:41]CheckFolder done [10:04:41]ProducePacketName [10:04:41]name=ofd_packets/00260580 [10:04:41]NVStorageSaveData ofd_packets/00260580 [10:04:41]File name is /storage/ofd_packets/00260580 [10:04:41]Write 301 bytes [10:04:41]NVStorageSaveData done [10:04:41]OFDSenderStorePacket done [10:04:41]KKMCreateOFDPacket done [10:04:41]NVStorageSaveData kkm_last_timestamp [10:04:41]File name is /storage/kkm_last_timestamp [10:04:41]Write 4 bytes [10:04:41]NVStorageSaveData done [10:04:41]ExternCall_PrintAddStr [10:04:41]wPrintStart [10:04:41]Write to MH i2c: 01 00 00 0B 63 6E [10:04:41]Write i2c OK [10:04:41]MH_I2C_Read... [10:04:41]Read from MH i2c: 01 [10:04:41]MH_I2C_Read... [10:04:41]Read from MH i2c: 01 07 00 [10:04:41]MH_I2C_Read... [10:04:41]Read from MH i2c: 01 07 00 0B 63 00 00 00 00 00 FF 0F 83 [10:04:41]RasterBufferAndPrint [10:04:41]line Счет N : (1)1036124 [10:04:41]line ИНН: 02508201610067 [10:04:41]line Контрольно-Кассовый Чек [10:04:41]line ПРОДАЖА [10:04:41]line ТРК (МРК, ГНК) : 32 [10:04:41]line Товар: 2710124130 [10:04:41]line Аи-92-К-5 [10:04:41]line 14.750 * 67.80 [10:04:41]line = 1000.05 [10:04:41]line НДС 12% НСП 1% [10:04:41]line > о реализуемом товаре [10:04:41]line ОКРУГЛЕНИЕ: -0.05 [10:04:41]line ИТОГО: 1000.00 [10:04:41]line Внесено: 1000.00 [10:04:41]line СДАЧА: 0.00 [10:04:41]line НСП 1% : 8.85 [10:04:41]line НДС 12% : 106.20 [10:04:41]line Наличными: 1000.00 [10:04:41]line Безнал.: 0.00 [10:04:41]line Место: АЗС № 94 "Партнер Нефть" [10:04:41]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [10:04:41]line СНО: Общий режим [10:04:41]line Чек 138 18.08.2024 10:04 [10:04:41]line Смена: 449 ФФД: 1.0 [10:04:41]line ЗНМ: 0300000099 [10:04:41]line РНМ: 0000000000091865 [10:04:41]line Версия ККМ: 001 [10:04:41]line ФМ: 0000000000871820 [10:04:41]line ФД: 260580 [10:04:41]line ФПД: 243773223679403 [10:04:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T100443&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260580&fm=243773223679403&tin=02508201610067®Number=0000000000091865&sum=100000 [10:04:41]written 0, free lines is 4095 [10:04:41]OFD Sender: Processing packet 260580 [packets to send 192, broken 191] [10:04:41]ProducePacketName [10:04:41]name=ofd_packets/00260580 [10:04:41]OFD Sender: To server: pG, [10:04:41]CommunicateWithHost lk.salyk.kg:30040 [10:04:41]ConnectInit lk.salyk.kg [10:04:41]Connected sock=10 [10:04: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 30 0F 01 00 00 F7 87 07 01 A3 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 3B C7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E4 F9 03 00 35 04 06 00 DD B5 E0 67 35 AB EB 59 DB 2F 10 03 A1 39 [10:04: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 30 4F 00 00 00 49 87 47 00 51 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E4 F9 03 00 F4 03 04 00 91 70 C1 66 B6 04 01 00 00 B6 E3 16 FA 46 99 EE 71 [10:04:41]CommunicateWithHost err = 0 [10:04:41]CheckOFDResponse [10:04:41]1017 (14) - 77093643461234 [10:04:41]1041 (16) - 0000000000871820 [10:04:41]1040 (4) - 260580 [10:04:41]1012 (4) - 18.08.2024 03:54 [10:04:41]1206 (1) - 0 [10:04:41]OFD Sender: Remove packet 260580 [10:04:41]ProducePacketName [10:04:41]name=ofd_packets/00260580 [10:04:41]NVStorageDeleteData [10:04:41]Write to MH i2c: 01 00 00 36 63 99 [10:04:41]Write i2c OK [10:04:41]MH_I2C_Read... [10:04:41]Read from MH i2c: 01 [10:04:41]MH_I2C_Read... [10:04:41]Read from MH i2c: 01 07 00 [10:04:41]MH_I2C_Read... [10:04:41]Read from MH i2c: 01 07 00 36 63 00 00 00 00 00 6F 0C 1B [10:04:41]RasterBufferAndPrint [10:04:41]line [10:04:41]line [10:04:41]line [10:04:41]line [10:04:41]line [10:04:41]written 0, free lines is 3186 [10:04:41]MH_Cut [10:04:41]Write to MH i2c: D1 01 00 3D 63 01 72 [10:04:41]Write i2c OK [10:04:41]MH_I2C_Read... [10:04:41]Read from MH i2c: D1 [10:04:41]MH_I2C_Read... [10:04:41]Read from MH i2c: D1 01 00 [10:04:41]MH_I2C_Read... [10:04:41]Read from MH i2c: D1 01 00 3D 63 00 71 [10:04:41]Write to MH i2c: 01 00 00 3E 63 A1 [10:04:41]Write i2c OK [10:04:41]MH_I2C_Read... [10:04:42]OFD Sender: No OFD packet to send [10:04:43]*** Cut start [10:04:43]*** Purtial cut [10:04:43]*** Stage 1: CUTSNS_PIN = 1 [10:04:45]Read from MH i2c: 01 [10:04:45]MH_I2C_Read... [10:04:45]*** Stop cut motor [10:04:45]*** Cut end [10:04:45]Read from MH i2c: 01 07 00 [10:04:45]MH_I2C_Read... [10:04:45]Read from MH i2c: 01 07 00 3E 63 00 00 00 00 00 FF 0F B6 [10:04:45]process_action close_receipt done [10:04:45]requested_data is exist [10:04:45]produce_requested_data [10:04:45]requested_item fm.sn is exist - process it [10:04:45]wFMCommunicate request_size=4 [10:04:45]MH_SAM_APDU [10:04:45]CAPDU: 80 11 00 00 [10:04:45]Write to MH i2c: E2 08 00 3F 63 80 11 00 00 00 00 00 00 1C [10:04:45]Write i2c OK [10:04:45]MH_I2C_Read... [10:04:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:45]Read from MH i2c: E2 [10:04:45]MH_I2C_Read... [10:04:45]Read from MH i2c: E2 17 00 [10:04:45]MH_I2C_Read... [10:04:45]Read from MH i2c: E2 17 00 3F 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 69 [10:04:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:04:45]wFMCommunicate OK [10:04:45]requested_item fd.num is exist - process it [10:04:45]SAM_PROTO_GetFieldsCounters [10:04:45]wFMCommunicate request_size=4 [10:04:45]MH_SAM_APDU [10:04:45]CAPDU: 80 13 00 00 [10:04:45]Write to MH i2c: E2 08 00 40 63 80 13 00 00 00 00 00 00 1F [10:04:45]Write i2c OK [10:04:45]MH_I2C_Read... [10:04:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:45]Read from MH i2c: E2 [10:04:45]MH_I2C_Read... [10:04:45]Read from MH i2c: E2 62 00 [10:04:45]MH_I2C_Read... [10:04:45]Read from MH i2c: E2 62 00 40 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E4 F9 03 00 0E 04 04 00 C1 01 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 7E [10:04: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E4 F9 03 00 0E 04 04 00 C1 01 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 [10:04:45]wFMCommunicate OK [10:04:45]SAM_PROTO_GetFieldsCounters done [10:04:45]requested_item shift.num is exist - process it [10:04:45]requested_item shift.opened is exist - process it [10:04:45]req_shift_opened [10:04:45]FM_GetShiftState [10:04:45]SAM_PROTO_GetShiftState [10:04:45]wFMCommunicate request_size=4 [10:04:45]MH_SAM_APDU [10:04:45]CAPDU: 80 13 01 00 [10:04:45]Write to MH i2c: E2 08 00 41 63 80 13 01 00 00 00 00 00 21 [10:04:45]Write i2c OK [10:04:45]MH_I2C_Read... [10:04:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:45]Read from MH i2c: E2 [10:04:45]MH_I2C_Read... [10:04:45]Read from MH i2c: E2 0E 00 [10:04:45]MH_I2C_Read... [10:04:45]Read from MH i2c: E2 0E 00 41 63 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 5E [10:04:45]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:04:45]wFMCommunicate OK [10:04:45]SAM_PROTO_GetShiftState done [10:04:45]FM_GetShiftState done [10:04:45]req_shift_opened done [10:04:45]requested_item shift.open_date is exist - process it [10:04:45]req_shift_open_date [10:04:45]req_shift_open_date done [10:04:45]produce_requested_data done [10:04:45]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260580,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [10:04:45]process_action_free close_receipt [10:04:45]json_value_free [10:04:45]json_value_free done [10:04:45]process_json_proto returns [10:04:45]Send response to host [10:04:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260580,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [10:04:45]free response buf [10:04:45]execute_script done [10:04:45]execute_script returns [10:04:45]free content buf [10:04:45]Sock 9.Close socket [10:04:45]Sock 9.Thread stoped [10:04:47]OFD Sender: No OFD packet to send [10:04:52]OFD Sender: No OFD packet to send [10:04:57]OFD Sender: No OFD packet to send [10:05:02]OFD Sender: No OFD packet to send [10:05:07]OFD Sender: No OFD packet to send [10:05:08]accept exits with 7 [10:05:08]New connection [10:05:08]New thread 3066617188 created [10:05:08]Thread 3066473828 joined [10:05:08]Waiting for new connection... [10:05:08] Sock 7.Parse request [10:05:08]Sock 7.Check first char [10:05:08]Sock 7.First char is OK [10:05:08]request: POST /json_proto HTTP/1.0 [10:05:08]Method: POST [10:05:08]URL: /json_proto [10:05:08]Method is POST - this is cgi request [10:05:08]url: /json_proto [10:05:08]query_string will be loaded in cgi processing [10:05:08]execute_cgi json_proto POST (null) [10:05:08]execute_cgi path=json_proto method=POST [10:05:08]POST find Content-Length [10:05:08]Host: 172.17.55.133:8080 [10:05:08]Content-Length: 678 [10:05:08]Content-Type: application/json [10:05:08] [10:05:08]POST finish read [10:05:08]Found Content-Length = 678 [10:05:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:05:08]execute_script... [10:05: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)1036125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:05:08]POST & json_proto [10:05:08]process_json_proto [10:05:08]json parsed OK: [10:05:08]protocol is kg_v1.0 [10:05:08]action value=close_receipt [10:05:08]process_action close_receipt [10:05:08]cmd_close_receipt [10:05:08]MH_GetDate [10:05:08]Write to MH i2c: F0 00 00 42 63 94 [10:05:08]Write i2c OK [10:05:08]MH_I2C_Read... [10:05:08]Read from MH i2c: F0 [10:05:08]MH_I2C_Read... [10:05:08]Read from MH i2c: F0 09 00 [10:05:08]MH_I2C_Read... [10:05:08]Read from MH i2c: F0 09 00 42 63 00 58 C7 C1 66 34 48 D8 65 9C [10:05:08]GetLastDocTimeStamp 1723975483 [10:05:08]current date 1723975512 [10:05:08]FM_GetShiftState [10:05:08]SAM_PROTO_GetShiftState [10:05:08]wFMCommunicate request_size=4 [10:05:08]MH_SAM_APDU [10:05:08]CAPDU: 80 13 01 00 [10:05:08]Write to MH i2c: E2 08 00 43 63 80 13 01 00 00 00 00 00 23 [10:05:08]Write i2c OK [10:05:08]MH_I2C_Read... [10:05:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:08]Read from MH i2c: E2 [10:05:08]MH_I2C_Read... [10:05:08]Read from MH i2c: E2 0E 00 [10:05:08]MH_I2C_Read... [10:05:08]Read from MH i2c: E2 0E 00 43 63 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 60 [10:05:08]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:05:08]wFMCommunicate OK [10:05:08]SAM_PROTO_GetShiftState done [10:05:08]FM_GetShiftState done [10:05:08]opened in 1723940556 [10:05:08]opened+sec_in_day 1724026956 [10:05:08]quantity*price = 50036 [10:05:08]sum+1 = 50037 [10:05:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 139 18.08.2024 10:05 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260581 ФПД: 185662189400117 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T100512&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260581&fm=185662189400117&tin=02508201610067®Number=0000000000091865&sum=50000 [10:05:09]StoreToDocumentArchive [10:05:09]shift 449 fd 260581 [10:05:09]save to /storage/0449/doc_00260581 [10:05:09]save last doc name /storage/0449/doc_00260581 to /storage/kkm_last_doc_name [10:05:09]save OK [10:05:09]Clear old archive folders... [10:05:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:05:09]tlvbuf is 0036EB70 [10:05:09]SAM_PROTO_ClearQueue [10:05:09]wFMCommunicate request_size=4 [10:05:09]MH_SAM_APDU [10:05:09]CAPDU: 80 09 00 00 [10:05:09]Write to MH i2c: E2 08 00 50 63 80 09 00 00 00 00 00 00 25 [10:05:09]Write i2c OK [10:05:09]MH_I2C_Read... [10:05:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:09]Read from MH i2c: E2 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: E2 03 00 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: E2 03 00 50 63 00 90 00 27 [10:05:09]RAPDU: 90 00 [10:05:09]wFMCommunicate OK [10:05:09]SAM_PROTO_ClearQueue done [10:05:09]KKMCreateOFDPacket [10:05:09]OFDProtocolAddRootSTLVToBuf [10:05:09]FM_MakeSignedData [10:05:09]FM_MakeSignedData [10:05:09]SAM_PROTO_SignData [10:05:09]wFMCommunicate request_size=4 [10:05:09]MH_SAM_APDU [10:05:09]CAPDU: 80 0D 01 02 [10:05:09]Write to MH i2c: E2 08 00 51 63 80 0D 01 02 00 00 00 00 2D [10:05:09]Write i2c OK [10:05:09]MH_I2C_Read... [10:05:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:09]Read from MH i2c: E2 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: E2 03 00 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: E2 03 00 51 63 00 90 00 28 [10:05:09]RAPDU: 90 00 [10:05:09]wFMCommunicate OK [10:05:09]wFMCommunicate request_size=255 [10:05:09]MH_SAM_APDU [10:05:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 8B 00 00 00 F4 03 04 00 58 C7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E5 F9 03 00 35 04 06 00 A8 [10:05:09]Write to MH i2c: E2 02 01 52 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 8B 00 00 00 F4 03 04 00 58 C7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E5 F9 03 00 35 04 06 00 A8 00 00 C6 [10:05:09]Write i2c OK [10:05:09]MH_I2C_Read... [10:05:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:09]Read from MH i2c: E2 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: E2 03 00 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: E2 03 00 52 63 00 90 00 29 [10:05:09]RAPDU: 90 00 [10:05:09]wFMCommunicate OK [10:05:09]wFMCommunicate request_size=10 [10:05:09]MH_SAM_APDU [10:05:09]CAPDU: 80 0D 02 02 05 DB D8 D8 F0 35 [10:05:09]Write to MH i2c: E2 0D 00 53 63 80 0D 02 02 05 00 DB D8 D8 F0 35 00 00 EA [10:05:09]Write i2c OK [10:05:09]MH_I2C_Read... [10:05:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:09]Read from MH i2c: E2 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: E2 03 00 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: E2 03 00 53 63 00 90 00 2A [10:05:09]RAPDU: 90 00 [10:05:09]wFMCommunicate OK [10:05:09]wFMCommunicate request_size=4 [10:05:09]MH_SAM_APDU [10:05:09]CAPDU: 80 0D 03 02 [10:05:09]Write to MH i2c: E2 08 00 54 63 80 0D 03 02 00 00 00 00 32 [10:05:09]Write i2c OK [10:05:09]MH_I2C_Read... [10:05:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:09]Read from MH i2c: E2 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: E2 0B 00 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: E2 0B 00 54 63 00 84 08 42 09 FF 9D 6C 86 90 00 98 [10:05:09]RAPDU: 84 08 42 09 FF 9D 6C 86 90 00 [10:05:09]wFMCommunicate OK [10:05:09]SAM_PROTO_SignData done [10:05:09]FM_MakeSignedData done [10:05:09]CreateOFDProtocolMessage [10:05:09]wFMCommunicate request_size=4 [10:05:09]MH_SAM_APDU [10:05:09]CAPDU: 80 11 00 00 [10:05:09]Write to MH i2c: E2 08 00 55 63 80 11 00 00 00 00 00 00 32 [10:05:09]Write i2c OK [10:05:09]MH_I2C_Read... [10:05:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:09]Read from MH i2c: E2 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: E2 17 00 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: E2 17 00 55 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 7F [10:05:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:05:09]wFMCommunicate OK [10:05:09]CreateOFDProtocolMessage done [10:05:09]OFDSenderStorePacket 260581 [10:05:09]StoreOFDPacket docnum=260581 [10:05:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 14 43 07 01 EE 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 8B 00 00 00 F4 03 04 00 58 C7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E5 F9 03 00 35 04 06 00 A8 DB D8 D8 F0 35 84 08 42 09 FF 9D 6C 86 [10:05:09]CheckFolder [10:05:09]dirname=/storage/ofd_packets [10:05:09]CheckFolder done [10:05:09]ProducePacketName [10:05:09]name=ofd_packets/00260581 [10:05:09]NVStorageSaveData ofd_packets/00260581 [10:05:09]File name is /storage/ofd_packets/00260581 [10:05:09]Write 301 bytes [10:05:09]NVStorageSaveData done [10:05:09]OFDSenderStorePacket done [10:05:09]KKMCreateOFDPacket done [10:05:09]NVStorageSaveData kkm_last_timestamp [10:05:09]File name is /storage/kkm_last_timestamp [10:05:09]Write 4 bytes [10:05:09]NVStorageSaveData done [10:05:09]ExternCall_PrintAddStr [10:05:09]wPrintStart [10:05:09]Write to MH i2c: 01 00 00 56 63 B9 [10:05:09]Write i2c OK [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: 01 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: 01 07 00 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: 01 07 00 56 63 00 00 00 00 00 FF 0F CE [10:05:09]RasterBufferAndPrint [10:05:09]line Счет N : (1)1036125 [10:05:09]line ИНН: 02508201610067 [10:05:09]line Контрольно-Кассовый Чек [10:05:09]line ПРОДАЖА [10:05:09]line ТРК (МРК, ГНК) : 22 [10:05:09]line Товар: 2710124130 [10:05:09]line Аи-92-К-5 [10:05:09]line 7.380 * 67.80 [10:05:09]line = 500.36 [10:05:09]line НДС 12% НСП 1% [10:05:09]line > о реализуемом товаре [10:05:09]line ОКРУГЛЕНИЕ: -0.36 [10:05:09]line ИТОГО: 500.00 [10:05:09]line Внесено: 500.00 [10:05:09]line СДАЧА: 0.00 [10:05:09]line НСП 1% : 4.43 [10:05:09]line НДС 12% : 53.14 [10:05:09]line Наличными: 500.00 [10:05:09]line Безнал.: 0.00 [10:05:09]line Место: АЗС № 94 "Партнер Нефть" [10:05:09]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [10:05:09]line СНО: Общий режим [10:05:09]line Чек 139 18.08.2024 10:05 [10:05:09]line Смена: 449 ФФД: 1.0 [10:05:09]line ЗНМ: 0300000099 [10:05:09]line РНМ: 0000000000091865 [10:05:09]line Версия ККМ: 001 [10:05:09]line ФМ: 0000000000871820 [10:05:09]line ФД: 260581 [10:05:09]line ФПД: 185662189400117 [10:05:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T100512&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260581&fm=185662189400117&tin=02508201610067®Number=0000000000091865&sum=50000 [10:05:09]written 0, free lines is 4095 [10:05:10]OFD Sender: Processing packet 260581 [packets to send 192, broken 191] [10:05:10]ProducePacketName [10:05:10]name=ofd_packets/00260581 [10:05:10]OFD Sender: To server: pG, [10:05:10]CommunicateWithHost lk.salyk.kg:30040 [10:05:10]ConnectInit lk.salyk.kg [10:05:10]Connected sock=10 [10:05: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 30 0F 01 00 00 14 43 07 01 EE 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 8B 00 00 00 F4 03 04 00 58 C7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E5 F9 03 00 35 04 06 00 A8 DB D8 D8 F0 35 84 08 42 09 FF 9D 6C 86 [10:05: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 30 4F 00 00 00 4D DC 47 00 CA 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 30 10 04 04 00 E5 F9 03 00 F4 03 04 00 AD 70 C1 66 B6 04 01 00 00 6E E4 12 29 11 56 F1 D8 [10:05:10]CommunicateWithHost err = 0 [10:05:10]CheckOFDResponse [10:05:10]1017 (14) - 77093643461234 [10:05:10]1041 (16) - 0000000000871820 [10:05:10]1040 (4) - 260581 [10:05:10]1012 (4) - 18.08.2024 03:55 [10:05:10]1206 (1) - 0 [10:05:10]OFD Sender: Remove packet 260581 [10:05:10]ProducePacketName [10:05:10]name=ofd_packets/00260581 [10:05:10]NVStorageDeleteData [10:05:10]Write to MH i2c: 01 00 00 81 63 E4 [10:05:10]Write i2c OK [10:05:10]MH_I2C_Read... [10:05:10]Read from MH i2c: 01 [10:05:10]MH_I2C_Read... [10:05:10]Read from MH i2c: 01 07 00 [10:05:10]MH_I2C_Read... [10:05:10]Read from MH i2c: 01 07 00 81 63 00 00 00 00 00 72 0C 69 [10:05:10]RasterBufferAndPrint [10:05:10]line [10:05:10]line [10:05:10]line [10:05:10]line [10:05:10]line [10:05:10]written 0, free lines is 3188 [10:05:10]MH_Cut [10:05:10]Write to MH i2c: D1 01 00 88 63 01 BD [10:05:10]Write i2c OK [10:05:10]MH_I2C_Read... [10:05:10]Read from MH i2c: D1 [10:05:10]MH_I2C_Read... [10:05:10]Read from MH i2c: D1 01 00 [10:05:10]MH_I2C_Read... [10:05:10]Read from MH i2c: D1 01 00 88 63 00 BC [10:05:10]Write to MH i2c: 01 00 00 89 63 EC [10:05:10]Write i2c OK [10:05:10]MH_I2C_Read... [10:05:10]OFD Sender: No OFD packet to send [10:05:11]*** Cut start [10:05:11]*** Purtial cut [10:05:11]*** Stage 1: CUTSNS_PIN = 1 [10:05:13]Read from MH i2c: 01 [10:05:13]MH_I2C_Read... [10:05:13]*** Stop cut motor [10:05:13]*** Cut end [10:05:13]Read from MH i2c: 01 07 00 [10:05:13]MH_I2C_Read... [10:05:13]Read from MH i2c: 01 07 00 89 63 00 00 00 00 00 FF 0F 01 [10:05:13]process_action close_receipt done [10:05:13]requested_data is exist [10:05:13]produce_requested_data [10:05:13]requested_item fm.sn is exist - process it [10:05:13]wFMCommunicate request_size=4 [10:05:13]MH_SAM_APDU [10:05:13]CAPDU: 80 11 00 00 [10:05:13]Write to MH i2c: E2 08 00 8A 63 80 11 00 00 00 00 00 00 67 [10:05:13]Write i2c OK [10:05:13]MH_I2C_Read... [10:05:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:13]Read from MH i2c: E2 [10:05:13]MH_I2C_Read... [10:05:13]Read from MH i2c: E2 17 00 [10:05:13]MH_I2C_Read... [10:05:13]Read from MH i2c: E2 17 00 8A 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B4 [10:05:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:05:13]wFMCommunicate OK [10:05:13]requested_item fd.num is exist - process it [10:05:13]SAM_PROTO_GetFieldsCounters [10:05:13]wFMCommunicate request_size=4 [10:05:13]MH_SAM_APDU [10:05:13]CAPDU: 80 13 00 00 [10:05:13]Write to MH i2c: E2 08 00 8B 63 80 13 00 00 00 00 00 00 6A [10:05:13]Write i2c OK [10:05:13]MH_I2C_Read... [10:05:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:13]Read from MH i2c: E2 [10:05:13]MH_I2C_Read... [10:05:13]Read from MH i2c: E2 62 00 [10:05:13]MH_I2C_Read... [10:05:13]Read from MH i2c: E2 62 00 8B 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E5 F9 03 00 0E 04 04 00 C1 01 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 CD [10:05: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E5 F9 03 00 0E 04 04 00 C1 01 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 [10:05:13]wFMCommunicate OK [10:05:13]SAM_PROTO_GetFieldsCounters done [10:05:13]requested_item shift.num is exist - process it [10:05:13]requested_item shift.opened is exist - process it [10:05:13]req_shift_opened [10:05:13]FM_GetShiftState [10:05:13]SAM_PROTO_GetShiftState [10:05:13]wFMCommunicate request_size=4 [10:05:13]MH_SAM_APDU [10:05:13]CAPDU: 80 13 01 00 [10:05:13]Write to MH i2c: E2 08 00 8C 63 80 13 01 00 00 00 00 00 6C [10:05:13]Write i2c OK [10:05:13]MH_I2C_Read... [10:05:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:13]Read from MH i2c: E2 [10:05:13]MH_I2C_Read... [10:05:13]Read from MH i2c: E2 0E 00 [10:05:13]MH_I2C_Read... [10:05:13]Read from MH i2c: E2 0E 00 8C 63 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A9 [10:05:13]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:05:13]wFMCommunicate OK [10:05:13]SAM_PROTO_GetShiftState done [10:05:13]FM_GetShiftState done [10:05:13]req_shift_opened done [10:05:13]requested_item shift.open_date is exist - process it [10:05:13]req_shift_open_date [10:05:13]req_shift_open_date done [10:05:13]produce_requested_data done [10:05:13]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260581,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [10:05:13]process_action_free close_receipt [10:05:13]json_value_free [10:05:13]json_value_free done [10:05:13]process_json_proto returns [10:05:13]Send response to host [10:05:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260581,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [10:05:13]free response buf [10:05:13]execute_script done [10:05:13]execute_script returns [10:05:13]free content buf [10:05:13]Sock 7.Close socket [10:05:13]Sock 7.Thread stoped [10:05:15]OFD Sender: No OFD packet to send [10:05:20]OFD Sender: No OFD packet to send [10:05:25]OFD Sender: No OFD packet to send [10:05:30]OFD Sender: No OFD packet to send [10:05:35]OFD Sender: No OFD packet to send [10:05:40]OFD Sender: No OFD packet to send [10:05:45]OFD Sender: No OFD packet to send [10:05:50]OFD Sender: No OFD packet to send [10:05:55]OFD Sender: No OFD packet to send [10:06:00]OFD Sender: No OFD packet to send [10:06:05]OFD Sender: No OFD packet to send [10:06:07]accept exits with 9 [10:06:07]New connection [10:06:07]New thread 3066473828 created [10:06:07]Thread 3066617188 joined [10:06:07]Waiting for new connection... [10:06:07] Sock 9.Parse request [10:06:07]Sock 9.Check first char [10:06:07]Sock 9.First char is OK [10:06:07]request: POST /json_proto HTTP/1.0 [10:06:07]Method: POST [10:06:07]URL: /json_proto [10:06:07]Method is POST - this is cgi request [10:06:07]url: /json_proto [10:06:07]query_string will be loaded in cgi processing [10:06:07]execute_cgi json_proto POST (null) [10:06:07]execute_cgi path=json_proto method=POST [10:06:07]POST find Content-Length [10:06:07]Host: 172.17.55.133:8080 [10:06:07]Content-Length: 678 [10:06:07]Content-Type: application/json [10:06:07] [10:06:07]POST finish read [10:06:07]Found Content-Length = 678 [10:06:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036126", "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" : 74.20, "quantity" : 4.050, "sum" : 300.51, "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:06:07]execute_script... [10:06: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)1036126", "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" : 74.20, "quantity" : 4.050, "sum" : 300.51, "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:06:07]POST & json_proto [10:06:07]process_json_proto [10:06:07]json parsed OK: [10:06:07]protocol is kg_v1.0 [10:06:07]action value=close_receipt [10:06:07]process_action close_receipt [10:06:07]cmd_close_receipt [10:06:07]MH_GetDate [10:06:07]Write to MH i2c: F0 00 00 8D 63 DF [10:06:07]Write i2c OK [10:06:07]MH_I2C_Read... [10:06:07]Read from MH i2c: F0 [10:06:07]MH_I2C_Read... [10:06:07]Read from MH i2c: F0 09 00 [10:06:07]MH_I2C_Read... [10:06:07]Read from MH i2c: F0 09 00 8D 63 00 93 C7 C1 66 34 48 D8 65 22 [10:06:07]GetLastDocTimeStamp 1723975512 [10:06:07]current date 1723975571 [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 8E 63 80 13 01 00 00 00 00 00 6E [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 8E 63 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 AB [10:06:07]RAPDU: 09 00 01 CC 3E C1 66 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]opened in 1723940556 [10:06:07]opened+sec_in_day 1724026956 [10:06:07]quantity*price = 30051 [10:06:07]sum+1 = 30052 [10:06:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 140 18.08.2024 10:06 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260582 ФПД: 194109848059337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T100611&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260582&fm=194109848059337&tin=02508201610067®Number=0000000000091865&sum=30000 [10:06:08]StoreToDocumentArchive [10:06:08]shift 449 fd 260582 [10:06:08]save to /storage/0449/doc_00260582 [10:06:08]save last doc name /storage/0449/doc_00260582 to /storage/kkm_last_doc_name [10:06:08]save OK [10:06:08]Clear old archive folders... [10:06:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:06:08]tlvbuf is 00451410 [10:06:08]SAM_PROTO_ClearQueue [10:06:08]wFMCommunicate request_size=4 [10:06:08]MH_SAM_APDU [10:06:08]CAPDU: 80 09 00 00 [10:06:08]Write to MH i2c: E2 08 00 9B 63 80 09 00 00 00 00 00 00 70 [10:06:08]Write i2c OK [10:06:08]MH_I2C_Read... [10:06:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:08]Read from MH i2c: E2 [10:06:08]MH_I2C_Read... [10:06:08]Read from MH i2c: E2 03 00 [10:06:08]MH_I2C_Read... [10:06:08]Read from MH i2c: E2 03 00 9B 63 00 90 00 72 [10:06:08]RAPDU: 90 00 [10:06:08]wFMCommunicate OK [10:06:08]SAM_PROTO_ClearQueue done [10:06:08]KKMCreateOFDPacket [10:06:08]OFDProtocolAddRootSTLVToBuf [10:06:08]FM_MakeSignedData [10:06:08]FM_MakeSignedData [10:06:08]SAM_PROTO_SignData [10:06:08]wFMCommunicate request_size=4 [10:06:08]MH_SAM_APDU [10:06:08]CAPDU: 80 0D 01 02 [10:06:08]Write to MH i2c: E2 08 00 9C 63 80 0D 01 02 00 00 00 00 78 [10:06:08]Write i2c OK [10:06:08]MH_I2C_Read... [10:06:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:08]Read from MH i2c: E2 [10:06:08]MH_I2C_Read... [10:06:08]Read from MH i2c: E2 03 00 [10:06:08]MH_I2C_Read... [10:06:08]Read from MH i2c: E2 03 00 9C 63 00 90 00 73 [10:06:08]RAPDU: 90 00 [10:06:08]wFMCommunicate OK [10:06:08]wFMCommunicate request_size=255 [10:06:08]MH_SAM_APDU [10:06: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 8C 00 00 00 F4 03 04 00 93 C7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E6 F9 03 00 35 04 06 00 B0 [10:06:08]Write to MH i2c: E2 02 01 9D 63 80 0D 02 02 FA 00 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 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 8C 00 00 00 F4 03 04 00 93 C7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E6 F9 03 00 35 04 06 00 B0 00 00 8E [10:06:08]Write i2c OK [10:06:08]MH_I2C_Read... [10:06:08]Read from MH i2c: E2 [10:06:08]MH_I2C_Read... [10:06:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:08]Read from MH i2c: E2 03 00 [10:06:08]MH_I2C_Read... [10:06:08]Read from MH i2c: E2 03 00 9D 63 00 90 00 74 [10:06:08]RAPDU: 90 00 [10:06:08]wFMCommunicate OK [10:06:08]wFMCommunicate request_size=10 [10:06:08]MH_SAM_APDU [10:06:08]CAPDU: 80 0D 02 02 05 8A B8 8A 7D C9 [10:06:08]Write to MH i2c: E2 0D 00 9E 63 80 0D 02 02 05 00 8A B8 8A 7D C9 00 00 97 [10:06:08]Write i2c OK [10:06:08]MH_I2C_Read... [10:06:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:08]Read from MH i2c: E2 [10:06:08]MH_I2C_Read... [10:06:08]Read from MH i2c: E2 03 00 [10:06:08]MH_I2C_Read... [10:06:08]Read from MH i2c: E2 03 00 9E 63 00 90 00 75 [10:06:08]RAPDU: 90 00 [10:06:08]wFMCommunicate OK [10:06:08]wFMCommunicate request_size=4 [10:06:08]MH_SAM_APDU [10:06:08]CAPDU: 80 0D 03 02 [10:06:08]Write to MH i2c: E2 08 00 9F 63 80 0D 03 02 00 00 00 00 7D [10:06:08]Write i2c OK [10:06:08]MH_I2C_Read... [10:06:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:08]Read from MH i2c: E2 [10:06:08]MH_I2C_Read... [10:06:08]Read from MH i2c: E2 0B 00 [10:06:08]MH_I2C_Read... [10:06:08]Read from MH i2c: E2 0B 00 9F 63 00 B4 05 80 21 A2 A6 A6 E9 90 00 AF [10:06:08]RAPDU: B4 05 80 21 A2 A6 A6 E9 90 00 [10:06:08]wFMCommunicate OK [10:06:08]SAM_PROTO_SignData done [10:06:08]FM_MakeSignedData done [10:06:08]CreateOFDProtocolMessage [10:06:08]wFMCommunicate request_size=4 [10:06:08]MH_SAM_APDU [10:06:08]CAPDU: 80 11 00 00 [10:06:08]Write to MH i2c: E2 08 00 A0 63 80 11 00 00 00 00 00 00 7D [10:06:08]Write i2c OK [10:06:08]MH_I2C_Read... [10:06:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:08]Read from MH i2c: E2 [10:06:08]MH_I2C_Read... [10:06:08]Read from MH i2c: E2 17 00 [10:06:08]MH_I2C_Read... [10:06:08]Read from MH i2c: E2 17 00 A0 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 CA [10:06:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:06:08]wFMCommunicate OK [10:06:08]CreateOFDProtocolMessage done [10:06:08]OFDSenderStorePacket 260582 [10:06:08]StoreOFDPacket docnum=260582 [10:06:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 A2 8B 07 01 1B 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 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 8C 00 00 00 F4 03 04 00 93 C7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E6 F9 03 00 35 04 06 00 B0 8A B8 8A 7D C9 B4 05 80 21 A2 A6 A6 E9 [10:06:08]CheckFolder [10:06:08]dirname=/storage/ofd_packets [10:06:08]CheckFolder done [10:06:08]ProducePacketName [10:06:08]name=ofd_packets/00260582 [10:06:08]NVStorageSaveData ofd_packets/00260582 [10:06:08]File name is /storage/ofd_packets/00260582 [10:06:08]Write 301 bytes [10:06:08]NVStorageSaveData done [10:06:08]OFDSenderStorePacket done [10:06:08]KKMCreateOFDPacket done [10:06:08]NVStorageSaveData kkm_last_timestamp [10:06:08]File name is /storage/kkm_last_timestamp [10:06:08]Write 4 bytes [10:06:08]NVStorageSaveData done [10:06:08]ExternCall_PrintAddStr [10:06:08]wPrintStart [10:06:08]Write to MH i2c: 01 00 00 A1 63 04 [10:06:08]Write i2c OK [10:06:08]MH_I2C_Read... [10:06:08]Read from MH i2c: 01 [10:06:08]MH_I2C_Read... [10:06:08]Read from MH i2c: 01 07 00 [10:06:08]MH_I2C_Read... [10:06:08]Read from MH i2c: 01 07 00 A1 63 00 00 00 00 00 FF 0F 19 [10:06:08]RasterBufferAndPrint [10:06:08]line Счет N : (1)1036126 [10:06:08]line ИНН: 02508201610067 [10:06:08]line Контрольно-Кассовый Чек [10:06:08]line ПРОДАЖА [10:06:08]line ТРК (МРК, ГНК) : 13 [10:06:08]line Товар: 2710124500 [10:06:08]line Аи-95-К-5 [10:06:08]line 4.050 * 74.20 [10:06:08]line = 300.51 [10:06:08]line НДС 12% НСП 1% [10:06:08]line > о реализуемом товаре [10:06:08]line ОКРУГЛЕНИЕ: -0.51 [10:06:08]line ИТОГО: 300.00 [10:06:08]line Внесено: 300.00 [10:06:08]line СДАЧА: 0.00 [10:06:08]line НСП 1% : 2.66 [10:06:08]line НДС 12% : 31.91 [10:06:08]line Наличными: 300.00 [10:06:08]line Безнал.: 0.00 [10:06:08]line Место: АЗС № 94 "Партнер Нефть" [10:06:08]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [10:06:08]line СНО: Общий режим [10:06:08]line Чек 140 18.08.2024 10:06 [10:06:08]line Смена: 449 ФФД: 1.0 [10:06:08]line ЗНМ: 0300000099 [10:06:08]line РНМ: 0000000000091865 [10:06:08]line Версия ККМ: 001 [10:06:08]line ФМ: 0000000000871820 [10:06:08]line ФД: 260582 [10:06:08]line ФПД: 194109848059337 [10:06:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T100611&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260582&fm=194109848059337&tin=02508201610067®Number=0000000000091865&sum=30000 [10:06:09]OFD Sender: Processing packet 260582 [packets to send 192, broken 191] [10:06:09]ProducePacketName [10:06:09]name=ofd_packets/00260582 [10:06:09]OFD Sender: To server: pG, [10:06:09]CommunicateWithHost lk.salyk.kg:30040 [10:06:09]ConnectInit lk.salyk.kg [10:06:09]written 0, free lines is 4095 [10:06:09]Connected sock=10 [10:06: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 30 0F 01 00 00 A2 8B 07 01 1B 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 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 8C 00 00 00 F4 03 04 00 93 C7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E6 F9 03 00 35 04 06 00 B0 8A B8 8A 7D C9 B4 05 80 21 A2 A6 A6 E9 [10:06: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 30 4F 00 00 00 9A 34 47 00 87 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 E6 F9 03 00 F4 03 04 00 E8 70 C1 66 B6 04 01 00 00 9B 7B A7 5F 12 F0 FD DC [10:06:09]CommunicateWithHost err = 0 [10:06:09]CheckOFDResponse [10:06:09]1017 (14) - 77093643461234 [10:06:09]1041 (16) - 0000000000871820 [10:06:09]1040 (4) - 260582 [10:06:09]1012 (4) - 18.08.2024 03:56 [10:06:09]1206 (1) - 0 [10:06:09]OFD Sender: Remove packet 260582 [10:06:09]ProducePacketName [10:06:09]name=ofd_packets/00260582 [10:06:09]NVStorageDeleteData [10:06:09]Write to MH i2c: 01 00 00 CC 63 2F [10:06:09]Write i2c OK [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: 01 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: 01 07 00 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: 01 07 00 CC 63 00 00 00 00 00 6C 0C AE [10:06:09]RasterBufferAndPrint [10:06:09]line [10:06:09]line [10:06:09]line [10:06:09]line [10:06:09]line [10:06:09]written 0, free lines is 3183 [10:06:09]MH_Cut [10:06:09]Write to MH i2c: D1 01 00 D3 63 01 08 [10:06:09]Write i2c OK [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: D1 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: D1 01 00 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: D1 01 00 D3 63 00 07 [10:06:09]Write to MH i2c: 01 00 00 D4 63 37 [10:06:09]Write i2c OK [10:06:09]MH_I2C_Read... [10:06:09]OFD Sender: No OFD packet to send [10:06:10]*** Cut start [10:06:10]*** Purtial cut [10:06:10]*** Stage 1: CUTSNS_PIN = 1 [10:06:12]Read from MH i2c: 01 [10:06:12]MH_I2C_Read... [10:06:12]*** Stop cut motor [10:06:12]*** Cut end [10:06:12]Read from MH i2c: 01 07 00 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: 01 07 00 D4 63 00 00 00 00 00 FF 0F 4C [10:06:12]process_action close_receipt done [10:06:12]requested_data is exist [10:06:12]produce_requested_data [10:06:12]requested_item fm.sn is exist - process it [10:06:12]wFMCommunicate request_size=4 [10:06:12]MH_SAM_APDU [10:06:12]CAPDU: 80 11 00 00 [10:06:12]Write to MH i2c: E2 08 00 D5 63 80 11 00 00 00 00 00 00 B2 [10:06:12]Write i2c OK [10:06:12]MH_I2C_Read... [10:06:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:12]Read from MH i2c: E2 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 17 00 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 17 00 D5 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 FF [10:06:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:06:12]wFMCommunicate OK [10:06:12]requested_item fd.num is exist - process it [10:06:12]SAM_PROTO_GetFieldsCounters [10:06:12]wFMCommunicate request_size=4 [10:06:12]MH_SAM_APDU [10:06:12]CAPDU: 80 13 00 00 [10:06:12]Write to MH i2c: E2 08 00 D6 63 80 13 00 00 00 00 00 00 B5 [10:06:12]Write i2c OK [10:06:12]MH_I2C_Read... [10:06:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:12]Read from MH i2c: E2 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 62 00 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 62 00 D6 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E6 F9 03 00 0E 04 04 00 C1 01 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 1C [10:06: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E6 F9 03 00 0E 04 04 00 C1 01 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 [10:06:12]wFMCommunicate OK [10:06:12]SAM_PROTO_GetFieldsCounters done [10:06:12]requested_item shift.num is exist - process it [10:06:12]requested_item shift.opened is exist - process it [10:06:12]req_shift_opened [10:06:12]FM_GetShiftState [10:06:12]SAM_PROTO_GetShiftState [10:06:12]wFMCommunicate request_size=4 [10:06:12]MH_SAM_APDU [10:06:12]CAPDU: 80 13 01 00 [10:06:12]Write to MH i2c: E2 08 00 D7 63 80 13 01 00 00 00 00 00 B7 [10:06:12]Write i2c OK [10:06:12]MH_I2C_Read... [10:06:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:12]Read from MH i2c: E2 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 0E 00 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 0E 00 D7 63 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F4 [10:06:12]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:06:12]wFMCommunicate OK [10:06:12]SAM_PROTO_GetShiftState done [10:06:12]FM_GetShiftState done [10:06:12]req_shift_opened done [10:06:12]requested_item shift.open_date is exist - process it [10:06:12]req_shift_open_date [10:06:12]req_shift_open_date done [10:06:12]produce_requested_data done [10:06:12]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260582,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [10:06:12]process_action_free close_receipt [10:06:12]json_value_free [10:06:12]json_value_free done [10:06:12]process_json_proto returns [10:06:12]Send response to host [10:06:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260582,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [10:06:12]free response buf [10:06:12]execute_script done [10:06:12]execute_script returns [10:06:12]free content buf [10:06:12]Sock 9.Close socket [10:06:12]Sock 9.Thread stoped [10:06:14]OFD Sender: No OFD packet to send [10:06:19]OFD Sender: No OFD packet to send [10:06:24]OFD Sender: No OFD packet to send [10:06:29]OFD Sender: No OFD packet to send [10:06:34]OFD Sender: No OFD packet to send [10:06:39]OFD Sender: No OFD packet to send [10:06:44]OFD Sender: No OFD packet to send [10:06:49]OFD Sender: No OFD packet to send [10:06:54]accept exits with 7 [10:06:54]New connection [10:06:54]New thread 3066617188 created [10:06:54]Thread 3066473828 joined [10:06:54]Waiting for new connection... [10:06:54] Sock 7.Parse request [10:06:54]Sock 7.Check first char [10:06:54]Sock 7.First char is OK [10:06:54]request: POST /json_proto HTTP/1.0 [10:06:54]Method: POST [10:06:54]URL: /json_proto [10:06:54]Method is POST - this is cgi request [10:06:54]url: /json_proto [10:06:54]query_string will be loaded in cgi processing [10:06:54]execute_cgi json_proto POST (null) [10:06:54]execute_cgi path=json_proto method=POST [10:06:54]POST find Content-Length [10:06:54]Host: 172.17.55.133:8080 [10:06:54]Content-Length: 683 [10:06:54]Content-Type: application/json [10:06:54] [10:06:54]POST finish read [10:06:54]Found Content-Length = 683 [10:06:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036127", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:54]execute_script... [10:06: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)1036127", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:54]POST & json_proto [10:06:54]process_json_proto [10:06:54]json parsed OK: [10:06:54]protocol is kg_v1.0 [10:06:54]action value=close_receipt [10:06:54]process_action close_receipt [10:06:54]cmd_close_receipt [10:06:54]MH_GetDate [10:06:54]Write to MH i2c: F0 00 00 D8 63 2A [10:06:54]Write i2c OK [10:06:54]MH_I2C_Read... [10:06:54]Read from MH i2c: F0 [10:06:54]MH_I2C_Read... [10:06:54]Read from MH i2c: F0 09 00 [10:06:54]MH_I2C_Read... [10:06:54]Read from MH i2c: F0 09 00 D8 63 00 C2 C7 C1 66 34 48 D8 65 9C [10:06:54]GetLastDocTimeStamp 1723975571 [10:06:54]current date 1723975618 [10:06:54]FM_GetShiftState [10:06:54]SAM_PROTO_GetShiftState [10:06:54]wFMCommunicate request_size=4 [10:06:54]MH_SAM_APDU [10:06:54]CAPDU: 80 13 01 00 [10:06:54]Write to MH i2c: E2 08 00 D9 63 80 13 01 00 00 00 00 00 B9 [10:06:54]Write i2c OK [10:06:54]MH_I2C_Read... [10:06:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:54]Read from MH i2c: E2 [10:06:54]MH_I2C_Read... [10:06:54]Read from MH i2c: E2 0E 00 [10:06:54]MH_I2C_Read... [10:06:54]Read from MH i2c: E2 0E 00 D9 63 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F6 [10:06:54]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:06:54]wFMCommunicate OK [10:06:54]SAM_PROTO_GetShiftState done [10:06:54]FM_GetShiftState done [10:06:54]opened in 1723940556 [10:06:54]opened+sec_in_day 1724026956 [10:06:54]quantity*price = 100021 [10:06:54]sum+1 = 100023 [10:06:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 141 18.08.2024 10:06 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260583 ФПД: 31455327459148 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T100658&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260583&fm=31455327459148&tin=02508201610067®Number=0000000000091865&sum=100000 [10:06:55]StoreToDocumentArchive [10:06:55]shift 449 fd 260583 [10:06:55]save to /storage/0449/doc_00260583 [10:06:55]save last doc name /storage/0449/doc_00260583 to /storage/kkm_last_doc_name [10:06:55]save OK [10:06:55]Clear old archive folders... [10:06:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:06:55]tlvbuf is 00336950 [10:06:55]SAM_PROTO_ClearQueue [10:06:55]wFMCommunicate request_size=4 [10:06:55]MH_SAM_APDU [10:06:55]CAPDU: 80 09 00 00 [10:06:55]Write to MH i2c: E2 08 00 E6 63 80 09 00 00 00 00 00 00 BB [10:06:55]Write i2c OK [10:06:55]MH_I2C_Read... [10:06:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:55]Read from MH i2c: E2 [10:06:55]MH_I2C_Read... [10:06:55]Read from MH i2c: E2 03 00 [10:06:55]MH_I2C_Read... [10:06:55]Read from MH i2c: E2 03 00 E6 63 00 90 00 BD [10:06:55]RAPDU: 90 00 [10:06:55]wFMCommunicate OK [10:06:55]SAM_PROTO_ClearQueue done [10:06:55]KKMCreateOFDPacket [10:06:55]OFDProtocolAddRootSTLVToBuf [10:06:55]FM_MakeSignedData [10:06:55]FM_MakeSignedData [10:06:55]SAM_PROTO_SignData [10:06:55]wFMCommunicate request_size=4 [10:06:55]MH_SAM_APDU [10:06:55]CAPDU: 80 0D 01 02 [10:06:55]Write to MH i2c: E2 08 00 E7 63 80 0D 01 02 00 00 00 00 C3 [10:06:55]Write i2c OK [10:06:55]MH_I2C_Read... [10:06:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:55]Read from MH i2c: E2 [10:06:55]MH_I2C_Read... [10:06:55]Read from MH i2c: E2 03 00 [10:06:55]MH_I2C_Read... [10:06:55]Read from MH i2c: E2 03 00 E7 63 00 90 00 BE [10:06:55]RAPDU: 90 00 [10:06:55]wFMCommunicate OK [10:06:55]wFMCommunicate request_size=255 [10:06:55]MH_SAM_APDU [10:06: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 C2 C7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E7 F9 03 00 35 04 06 00 1C [10:06:55]Write to MH i2c: E2 02 01 E8 63 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 C2 C7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E7 F9 03 00 35 04 06 00 1C 00 00 6B [10:06:55]Write i2c OK [10:06:55]MH_I2C_Read... [10:06:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:56]Read from MH i2c: E2 [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: E2 03 00 [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: E2 03 00 E8 63 00 90 00 BF [10:06:56]RAPDU: 90 00 [10:06:56]wFMCommunicate OK [10:06:56]wFMCommunicate request_size=10 [10:06:56]MH_SAM_APDU [10:06:56]CAPDU: 80 0D 02 02 05 9B C3 9E 97 4C [10:06:56]Write to MH i2c: E2 0D 00 E9 63 80 0D 02 02 05 00 9B C3 9E 97 4C 00 00 AF [10:06:56]Write i2c OK [10:06:56]MH_I2C_Read... [10:06:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:56]Read from MH i2c: E2 [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: E2 03 00 [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: E2 03 00 E9 63 00 90 00 C0 [10:06:56]RAPDU: 90 00 [10:06:56]wFMCommunicate OK [10:06:56]wFMCommunicate request_size=4 [10:06:56]MH_SAM_APDU [10:06:56]CAPDU: 80 0D 03 02 [10:06:56]Write to MH i2c: E2 08 00 EA 63 80 0D 03 02 00 00 00 00 C8 [10:06:56]Write i2c OK [10:06:56]MH_I2C_Read... [10:06:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:56]Read from MH i2c: E2 [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: E2 0B 00 [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: E2 0B 00 EA 63 00 40 F6 20 DE 7C E5 39 31 90 00 C8 [10:06:56]RAPDU: 40 F6 20 DE 7C E5 39 31 90 00 [10:06:56]wFMCommunicate OK [10:06:56]SAM_PROTO_SignData done [10:06:56]FM_MakeSignedData done [10:06:56]CreateOFDProtocolMessage [10:06:56]wFMCommunicate request_size=4 [10:06:56]MH_SAM_APDU [10:06:56]CAPDU: 80 11 00 00 [10:06:56]Write to MH i2c: E2 08 00 EB 63 80 11 00 00 00 00 00 00 C8 [10:06:56]Write i2c OK [10:06:56]MH_I2C_Read... [10:06:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:56]Read from MH i2c: E2 [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: E2 17 00 [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: E2 17 00 EB 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 15 [10:06:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:06:56]wFMCommunicate OK [10:06:56]CreateOFDProtocolMessage done [10:06:56]OFDSenderStorePacket 260583 [10:06:56]StoreOFDPacket docnum=260583 [10:06:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 4E 68 07 01 44 E2 5A 03 01 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 C2 C7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E7 F9 03 00 35 04 06 00 1C 9B C3 9E 97 4C 40 F6 20 DE 7C E5 39 31 [10:06:56]CheckFolder [10:06:56]dirname=/storage/ofd_packets [10:06:56]CheckFolder done [10:06:56]ProducePacketName [10:06:56]name=ofd_packets/00260583 [10:06:56]NVStorageSaveData ofd_packets/00260583 [10:06:56]File name is /storage/ofd_packets/00260583 [10:06:56]Write 301 bytes [10:06:56]NVStorageSaveData done [10:06:56]OFDSenderStorePacket done [10:06:56]KKMCreateOFDPacket done [10:06:56]NVStorageSaveData kkm_last_timestamp [10:06:56]File name is /storage/kkm_last_timestamp [10:06:56]Write 4 bytes [10:06:56]NVStorageSaveData done [10:06:56]ExternCall_PrintAddStr [10:06:56]wPrintStart [10:06:56]Write to MH i2c: 01 00 00 EC 63 4F [10:06:56]Write i2c OK [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: 01 [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: 01 07 00 [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: 01 07 00 EC 63 00 00 00 00 00 FF 0F 64 [10:06:56]RasterBufferAndPrint [10:06:56]line Счет N : (1)1036127 [10:06:56]line ИНН: 02508201610067 [10:06:56]line Контрольно-Кассовый Чек [10:06:56]line ПРОДАЖА [10:06:56]line ТРК (МРК, ГНК) : 23 [10:06:56]line Товар: 2710124500 [10:06:56]line Аи-95-К-5 [10:06:56]line 13.480 * 74.20 [10:06:56]line = 1000.22 [10:06:56]line НДС 12% НСП 1% [10:06:56]line > о реализуемом товаре [10:06:56]line ОКРУГЛЕНИЕ: -0.22 [10:06:56]line ИТОГО: 1000.00 [10:06:56]line Внесено: 1000.00 [10:06:56]line СДАЧА: 0.00 [10:06:56]line НСП 1% : 8.85 [10:06:56]line НДС 12% : 106.22 [10:06:56]line Наличными: 1000.00 [10:06:56]line Безнал.: 0.00 [10:06:56]line Место: АЗС № 94 "Партнер Нефть" [10:06:56]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [10:06:56]line СНО: Общий режим [10:06:56]line Чек 141 18.08.2024 10:06 [10:06:56]line Смена: 449 ФФД: 1.0 [10:06:56]line ЗНМ: 0300000099 [10:06:56]line РНМ: 0000000000091865 [10:06:56]line Версия ККМ: 001 [10:06:56]line ФМ: 0000000000871820 [10:06:56]line ФД: 260583 [10:06:56]line ФПД: 31455327459148 [10:06:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T100658&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260583&fm=31455327459148&tin=02508201610067®Number=0000000000091865&sum=100000 [10:06:56]written 0, free lines is 4095 [10:06:56]OFD Sender: Processing packet 260583 [packets to send 192, broken 191] [10:06:56]ProducePacketName [10:06:56]name=ofd_packets/00260583 [10:06:56]OFD Sender: To server: pG, [10:06:56]CommunicateWithHost lk.salyk.kg:30040 [10:06:56]ConnectInit lk.salyk.kg [10:06:56]Connected sock=10 [10:06: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 30 0F 01 00 00 4E 68 07 01 44 E2 5A 03 01 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 C2 C7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E7 F9 03 00 35 04 06 00 1C 9B C3 9E 97 4C 40 F6 20 DE 7C E5 39 31 [10:06: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 30 4F 00 00 00 AE B4 47 00 13 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 30 10 04 04 00 E7 F9 03 00 F4 03 04 00 18 71 C1 66 B6 04 01 00 00 8F D4 6F F8 C5 DE 4C 9B [10:06:56]CommunicateWithHost err = 0 [10:06:56]CheckOFDResponse [10:06:56]1017 (14) - 77093643461234 [10:06:56]1041 (16) - 0000000000871820 [10:06:56]1040 (4) - 260583 [10:06:56]1012 (4) - 18.08.2024 03:57 [10:06:56]1206 (1) - 0 [10:06:56]OFD Sender: Remove packet 260583 [10:06:56]ProducePacketName [10:06:56]name=ofd_packets/00260583 [10:06:56]NVStorageDeleteData [10:06:56]Write to MH i2c: 01 00 00 17 64 7B [10:06:56]Write i2c OK [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: 01 [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: 01 07 00 [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: 01 07 00 17 64 00 00 00 00 00 6B 0C F9 [10:06:56]RasterBufferAndPrint [10:06:56]line [10:06:56]line [10:06:56]line [10:06:56]line [10:06:56]line [10:06:56]written 0, free lines is 3182 [10:06:56]MH_Cut [10:06:56]Write to MH i2c: D1 01 00 1E 64 01 54 [10:06:56]Write i2c OK [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: D1 [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: D1 01 00 [10:06:56]MH_I2C_Read... [10:06:56]Read from MH i2c: D1 01 00 1E 64 00 53 [10:06:56]Write to MH i2c: 01 00 00 1F 64 83 [10:06:57]Write i2c OK [10:06:57]MH_I2C_Read... [10:06:57]OFD Sender: No OFD packet to send [10:06:58]*** Cut start [10:06:58]*** Purtial cut [10:06:58]*** Stage 1: CUTSNS_PIN = 1 [10:07:00]Read from MH i2c: 01 [10:07:00]MH_I2C_Read... [10:07:00]*** Stop cut motor [10:07:00]*** Cut end [10:07:00]Read from MH i2c: 01 07 00 [10:07:00]MH_I2C_Read... [10:07:00]Read from MH i2c: 01 07 00 1F 64 00 00 00 00 00 FF 0F 98 [10:07:00]process_action close_receipt done [10:07:00]requested_data is exist [10:07:00]produce_requested_data [10:07:00]requested_item fm.sn is exist - process it [10:07:00]wFMCommunicate request_size=4 [10:07:00]MH_SAM_APDU [10:07:00]CAPDU: 80 11 00 00 [10:07:00]Write to MH i2c: E2 08 00 20 64 80 11 00 00 00 00 00 00 FE [10:07:00]Write i2c OK [10:07:00]MH_I2C_Read... [10:07:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:00]Read from MH i2c: E2 [10:07:00]MH_I2C_Read... [10:07:00]Read from MH i2c: E2 17 00 [10:07:00]MH_I2C_Read... [10:07:00]Read from MH i2c: E2 17 00 20 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 4B [10:07:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:07:00]wFMCommunicate OK [10:07:00]requested_item fd.num is exist - process it [10:07:00]SAM_PROTO_GetFieldsCounters [10:07:00]wFMCommunicate request_size=4 [10:07:00]MH_SAM_APDU [10:07:00]CAPDU: 80 13 00 00 [10:07:00]Write to MH i2c: E2 08 00 21 64 80 13 00 00 00 00 00 00 01 [10:07:00]Write i2c OK [10:07:00]MH_I2C_Read... [10:07:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:00]Read from MH i2c: E2 [10:07:00]MH_I2C_Read... [10:07:00]Read from MH i2c: E2 62 00 [10:07:00]MH_I2C_Read... [10:07:00]Read from MH i2c: E2 62 00 21 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E7 F9 03 00 0E 04 04 00 C1 01 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 6C [10:07: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E7 F9 03 00 0E 04 04 00 C1 01 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 [10:07:00]wFMCommunicate OK [10:07:00]SAM_PROTO_GetFieldsCounters done [10:07:00]requested_item shift.num is exist - process it [10:07:00]requested_item shift.opened is exist - process it [10:07:00]req_shift_opened [10:07:00]FM_GetShiftState [10:07:00]SAM_PROTO_GetShiftState [10:07:00]wFMCommunicate request_size=4 [10:07:00]MH_SAM_APDU [10:07:00]CAPDU: 80 13 01 00 [10:07:00]Write to MH i2c: E2 08 00 22 64 80 13 01 00 00 00 00 00 03 [10:07:00]Write i2c OK [10:07:00]MH_I2C_Read... [10:07:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:00]Read from MH i2c: E2 [10:07:00]MH_I2C_Read... [10:07:00]Read from MH i2c: E2 0E 00 [10:07:00]MH_I2C_Read... [10:07:00]Read from MH i2c: E2 0E 00 22 64 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 40 [10:07:00]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:07:00]wFMCommunicate OK [10:07:00]SAM_PROTO_GetShiftState done [10:07:00]FM_GetShiftState done [10:07:00]req_shift_opened done [10:07:00]requested_item shift.open_date is exist - process it [10:07:00]req_shift_open_date [10:07:00]req_shift_open_date done [10:07:00]produce_requested_data done [10:07:00]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260583,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [10:07:00]process_action_free close_receipt [10:07:00]json_value_free [10:07:00]json_value_free done [10:07:00]process_json_proto returns [10:07:00]Send response to host [10:07:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260583,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [10:07:00]free response buf [10:07:00]execute_script done [10:07:00]execute_script returns [10:07:00]free content buf [10:07:00]Sock 7.Close socket [10:07:00]Sock 7.Thread stoped [10:07:02]OFD Sender: No OFD packet to send [10:07:07]OFD Sender: No OFD packet to send [10:07:12]OFD Sender: No OFD packet to send [10:07:17]OFD Sender: No OFD packet to send [10:07:22]OFD Sender: No OFD packet to send [10:07:27]OFD Sender: No OFD packet to send [10:07:32]OFD Sender: No OFD packet to send [10:07:37]OFD Sender: No OFD packet to send [10:07:42]OFD Sender: No OFD packet to send [10:07:47]OFD Sender: No OFD packet to send [10:07:52]OFD Sender: No OFD packet to send [10:07:57]OFD Sender: No OFD packet to send [10:08:02]OFD Sender: No OFD packet to send [10:08:07]OFD Sender: No OFD packet to send [10:08:12]OFD Sender: No OFD packet to send [10:08:17]OFD Sender: No OFD packet to send [10:08:22]OFD Sender: No OFD packet to send [10:08:27]OFD Sender: No OFD packet to send [10:08:32]OFD Sender: No OFD packet to send [10:08:37]OFD Sender: No OFD packet to send [10:08:42]OFD Sender: No OFD packet to send [10:08:47]OFD Sender: No OFD packet to send [10:08:52]OFD Sender: No OFD packet to send [10:08:57]OFD Sender: No OFD packet to send [10:09:02]OFD Sender: No OFD packet to send [10:09:07]OFD Sender: No OFD packet to send [10:09:12]OFD Sender: No OFD packet to send [10:09:17]OFD Sender: No OFD packet to send [10:09:22]OFD Sender: No OFD packet to send [10:09:27]OFD Sender: No OFD packet to send [10:09:32]OFD Sender: No OFD packet to send [10:09:37]OFD Sender: No OFD packet to send [10:09:42]OFD Sender: No OFD packet to send [10:09:47]OFD Sender: No OFD packet to send [10:09:52]OFD Sender: No OFD packet to send [10:09:57]OFD Sender: No OFD packet to send [10:10:02]OFD Sender: No OFD packet to send [10:10:07]OFD Sender: No OFD packet to send [10:10:12]OFD Sender: No OFD packet to send [10:10:17]OFD Sender: No OFD packet to send [10:10:22]OFD Sender: No OFD packet to send [10:10:27]OFD Sender: No OFD packet to send [10:10:32]OFD Sender: No OFD packet to send [10:10:37]OFD Sender: No OFD packet to send [10:10:42]OFD Sender: No OFD packet to send [10:10:47]OFD Sender: No OFD packet to send [10:10:52]OFD Sender: No OFD packet to send [10:10:57]OFD Sender: No OFD packet to send [10:11:02]OFD Sender: No OFD packet to send [10:11:07]OFD Sender: No OFD packet to send [10:11:12]OFD Sender: No OFD packet to send [10:11:17]OFD Sender: No OFD packet to send [10:11:22]OFD Sender: No OFD packet to send [10:11:27]OFD Sender: No OFD packet to send [10:11:32]OFD Sender: No OFD packet to send [10:11:37]OFD Sender: No OFD packet to send [10:11:42]OFD Sender: No OFD packet to send [10:11:47]OFD Sender: No OFD packet to send [10:11:52]OFD Sender: No OFD packet to send [10:11:57]OFD Sender: No OFD packet to send [10:12:02]OFD Sender: No OFD packet to send [10:12:07]OFD Sender: No OFD packet to send [10:12:12]OFD Sender: No OFD packet to send [10:12:17]OFD Sender: No OFD packet to send [10:12:22]OFD Sender: No OFD packet to send [10:12:27]OFD Sender: No OFD packet to send [10:12:32]OFD Sender: No OFD packet to send [10:12:37]OFD Sender: No OFD packet to send [10:12:42]OFD Sender: No OFD packet to send [10:12:47]OFD Sender: No OFD packet to send [10:12:52]OFD Sender: No OFD packet to send [10:12:57]OFD Sender: No OFD packet to send [10:13:02]OFD Sender: No OFD packet to send [10:13:07]OFD Sender: No OFD packet to send [10:13:12]OFD Sender: No OFD packet to send [10:13:17]OFD Sender: No OFD packet to send [10:13:22]OFD Sender: No OFD packet to send [10:13:27]OFD Sender: No OFD packet to send [10:13:32]OFD Sender: No OFD packet to send [10:13:37]OFD Sender: No OFD packet to send [10:13:42]OFD Sender: No OFD packet to send [10:13:47]OFD Sender: No OFD packet to send [10:13:52]OFD Sender: No OFD packet to send [10:13:57]OFD Sender: No OFD packet to send [10:14:02]OFD Sender: No OFD packet to send [10:14:07]OFD Sender: No OFD packet to send [10:14:12]OFD Sender: No OFD packet to send [10:14:17]OFD Sender: No OFD packet to send [10:14:22]OFD Sender: No OFD packet to send [10:14:28]OFD Sender: No OFD packet to send [10:14:33]OFD Sender: No OFD packet to send [10:14:38]OFD Sender: No OFD packet to send [10:14:43]OFD Sender: No OFD packet to send [10:14:48]OFD Sender: No OFD packet to send [10:14:53]OFD Sender: No OFD packet to send [10:14:58]OFD Sender: No OFD packet to send [10:15:03]OFD Sender: No OFD packet to send [10:15:08]OFD Sender: No OFD packet to send [10:15:13]OFD Sender: No OFD packet to send [10:15:18]OFD Sender: No OFD packet to send [10:15:23]OFD Sender: No OFD packet to send [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:38]OFD Sender: No OFD packet to send [10:15:43]OFD Sender: No OFD packet to send [10:15:48]OFD Sender: No OFD packet to send [10:15:53]OFD Sender: No OFD packet to send [10:15:58]OFD Sender: No OFD packet to send [10:16:03]OFD Sender: No OFD packet to send [10:16:08]OFD Sender: No OFD packet to send [10:16:13]OFD Sender: No OFD packet to send [10:16:18]OFD Sender: No OFD packet to send [10:16:23]OFD Sender: No OFD packet to send [10:16:28]OFD Sender: No OFD packet to send [10:16:33]OFD Sender: No OFD packet to send [10:16:38]OFD Sender: No OFD packet to send [10:16:43]OFD Sender: No OFD packet to send [10:16:48]OFD Sender: No OFD packet to send [10:16:53]OFD Sender: No OFD packet to send [10:16:58]OFD Sender: No OFD packet to send [10:16:59]accept exits with 9 [10:16:59]New connection [10:16:59]New thread 3066473828 created [10:16:59]Thread 3066617188 joined [10:16:59]Waiting for new connection... [10:16:59] Sock 9.Parse request [10:16:59]Sock 9.Check first char [10:16:59]Sock 9.First char is OK [10:16:59]request: POST /json_proto HTTP/1.0 [10:16:59]Method: POST [10:16:59]URL: /json_proto [10:16:59]Method is POST - this is cgi request [10:16:59]url: /json_proto [10:16:59]query_string will be loaded in cgi processing [10:16:59]execute_cgi json_proto POST (null) [10:16:59]execute_cgi path=json_proto method=POST [10:16:59]POST find Content-Length [10:16:59]Host: 172.17.55.133:8080 [10:16:59]Content-Length: 678 [10:16:59]Content-Type: application/json [10:16:59] [10:16:59]POST finish read [10:16:59]Found Content-Length = 678 [10:16:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:16:59]execute_script... [10:16: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)1036128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:16:59]POST & json_proto [10:16:59]process_json_proto [10:16:59]json parsed OK: [10:16:59]protocol is kg_v1.0 [10:16:59]action value=close_receipt [10:16:59]process_action close_receipt [10:16:59]cmd_close_receipt [10:16:59]MH_GetDate [10:16:59]Write to MH i2c: F0 00 00 23 64 76 [10:16:59]Write i2c OK [10:16:59]MH_I2C_Read... [10:16:59]Read from MH i2c: F0 [10:16:59]MH_I2C_Read... [10:16:59]Read from MH i2c: F0 09 00 [10:16:59]MH_I2C_Read... [10:16:59]Read from MH i2c: F0 09 00 23 64 00 1F CA C1 66 34 48 D8 65 48 [10:16:59]GetLastDocTimeStamp 1723975618 [10:16:59]current date 1723976223 [10:16:59]FM_GetShiftState [10:16:59]SAM_PROTO_GetShiftState [10:16:59]wFMCommunicate request_size=4 [10:16:59]MH_SAM_APDU [10:16:59]CAPDU: 80 13 01 00 [10:16:59]Write to MH i2c: E2 08 00 24 64 80 13 01 00 00 00 00 00 05 [10:16:59]Write i2c OK [10:16:59]MH_I2C_Read... [10:16:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:59]Read from MH i2c: E2 [10:16:59]MH_I2C_Read... [10:16:59]Read from MH i2c: E2 0E 00 [10:16:59]MH_I2C_Read... [10:16:59]Read from MH i2c: E2 0E 00 24 64 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 42 [10:16:59]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:16:59]wFMCommunicate OK [10:16:59]SAM_PROTO_GetShiftState done [10:16:59]FM_GetShiftState done [10:16:59]opened in 1723940556 [10:16:59]opened+sec_in_day 1724026956 [10:16:59]quantity*price = 50036 [10:16:59]sum+1 = 50037 [10:16:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 142 18.08.2024 10:17 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260584 ФПД: 6253314670736 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T101703&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260584&fm=6253314670736&tin=02508201610067®Number=0000000000091865&sum=50000 [10:17:00]StoreToDocumentArchive [10:17:00]shift 449 fd 260584 [10:17:00]save to /storage/0449/doc_00260584 [10:17:00]save last doc name /storage/0449/doc_00260584 to /storage/kkm_last_doc_name [10:17:00]save OK [10:17:00]Clear old archive folders... [10:17:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:17:00]tlvbuf is 0052B1F0 [10:17:00]SAM_PROTO_ClearQueue [10:17:00]wFMCommunicate request_size=4 [10:17:00]MH_SAM_APDU [10:17:00]CAPDU: 80 09 00 00 [10:17:00]Write to MH i2c: E2 08 00 31 64 80 09 00 00 00 00 00 00 07 [10:17:00]Write i2c OK [10:17:00]MH_I2C_Read... [10:17:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:17:00]Read from MH i2c: E2 [10:17:00]MH_I2C_Read... [10:17:00]Read from MH i2c: E2 03 00 [10:17:00]MH_I2C_Read... [10:17:00]Read from MH i2c: E2 03 00 31 64 00 90 00 09 [10:17:00]RAPDU: 90 00 [10:17:00]wFMCommunicate OK [10:17:00]SAM_PROTO_ClearQueue done [10:17:00]KKMCreateOFDPacket [10:17:00]OFDProtocolAddRootSTLVToBuf [10:17:00]FM_MakeSignedData [10:17:00]FM_MakeSignedData [10:17:00]SAM_PROTO_SignData [10:17:00]wFMCommunicate request_size=4 [10:17:00]MH_SAM_APDU [10:17:00]CAPDU: 80 0D 01 02 [10:17:00]Write to MH i2c: E2 08 00 32 64 80 0D 01 02 00 00 00 00 0F [10:17:00]Write i2c OK [10:17:00]MH_I2C_Read... [10:17:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:17:00]Read from MH i2c: E2 [10:17:00]MH_I2C_Read... [10:17:00]Read from MH i2c: E2 03 00 [10:17:00]MH_I2C_Read... [10:17:00]Read from MH i2c: E2 03 00 32 64 00 90 00 0A [10:17:00]RAPDU: 90 00 [10:17:00]wFMCommunicate OK [10:17:00]wFMCommunicate request_size=255 [10:17:00]MH_SAM_APDU [10:17:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 8E 00 00 00 F4 03 04 00 1F CA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E8 F9 03 00 35 04 06 00 05 [10:17:00]Write to MH i2c: E2 02 01 33 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 8E 00 00 00 F4 03 04 00 1F CA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E8 F9 03 00 35 04 06 00 05 00 00 D5 [10:17:00]Write i2c OK [10:17:00]MH_I2C_Read... [10:17:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:01]Read from MH i2c: E2 [10:17:01]MH_I2C_Read... [10:17:01]Read from MH i2c: E2 03 00 [10:17:01]MH_I2C_Read... [10:17:01]Read from MH i2c: E2 03 00 33 64 00 90 00 0B [10:17:01]RAPDU: 90 00 [10:17:01]wFMCommunicate OK [10:17:01]wFMCommunicate request_size=10 [10:17:01]MH_SAM_APDU [10:17:01]CAPDU: 80 0D 02 02 05 AF F6 99 80 90 [10:17:01]Write to MH i2c: E2 0D 00 34 64 80 0D 02 02 05 00 AF F6 99 80 90 00 00 6A [10:17:01]Write i2c OK [10:17:01]MH_I2C_Read... [10:17:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:01]Read from MH i2c: E2 [10:17:01]MH_I2C_Read... [10:17:01]Read from MH i2c: E2 03 00 [10:17:01]MH_I2C_Read... [10:17:01]Read from MH i2c: E2 03 00 34 64 00 90 00 0C [10:17:01]RAPDU: 90 00 [10:17:01]wFMCommunicate OK [10:17:01]wFMCommunicate request_size=4 [10:17:01]MH_SAM_APDU [10:17:01]CAPDU: 80 0D 03 02 [10:17:01]Write to MH i2c: E2 08 00 35 64 80 0D 03 02 00 00 00 00 14 [10:17:01]Write i2c OK [10:17:01]MH_I2C_Read... [10:17:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:17:01]Read from MH i2c: E2 [10:17:01]MH_I2C_Read... [10:17:01]Read from MH i2c: E2 0B 00 [10:17:01]MH_I2C_Read... [10:17:01]Read from MH i2c: E2 0B 00 35 64 00 FF 5E F1 51 88 08 53 53 90 00 EA [10:17:01]RAPDU: FF 5E F1 51 88 08 53 53 90 00 [10:17:01]wFMCommunicate OK [10:17:01]SAM_PROTO_SignData done [10:17:01]FM_MakeSignedData done [10:17:01]CreateOFDProtocolMessage [10:17:01]wFMCommunicate request_size=4 [10:17:01]MH_SAM_APDU [10:17:01]CAPDU: 80 11 00 00 [10:17:01]Write to MH i2c: E2 08 00 36 64 80 11 00 00 00 00 00 00 14 [10:17:01]Write i2c OK [10:17:01]MH_I2C_Read... [10:17:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:01]Read from MH i2c: E2 [10:17:01]MH_I2C_Read... [10:17:01]Read from MH i2c: E2 17 00 [10:17:01]MH_I2C_Read... [10:17:01]Read from MH i2c: E2 17 00 36 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 61 [10:17:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:17:01]wFMCommunicate OK [10:17:01]CreateOFDProtocolMessage done [10:17:01]OFDSenderStorePacket 260584 [10:17:01]StoreOFDPacket docnum=260584 [10:17:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 E2 20 07 01 D3 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 8E 00 00 00 F4 03 04 00 1F CA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E8 F9 03 00 35 04 06 00 05 AF F6 99 80 90 FF 5E F1 51 88 08 53 53 [10:17:01]CheckFolder [10:17:01]dirname=/storage/ofd_packets [10:17:01]CheckFolder done [10:17:01]ProducePacketName [10:17:01]name=ofd_packets/00260584 [10:17:01]NVStorageSaveData ofd_packets/00260584 [10:17:01]File name is /storage/ofd_packets/00260584 [10:17:01]Write 301 bytes [10:17:01]NVStorageSaveData done [10:17:01]OFDSenderStorePacket done [10:17:01]KKMCreateOFDPacket done [10:17:01]NVStorageSaveData kkm_last_timestamp [10:17:01]File name is /storage/kkm_last_timestamp [10:17:01]Write 4 bytes [10:17:01]NVStorageSaveData done [10:17:01]ExternCall_PrintAddStr [10:17:01]wPrintStart [10:17:01]Write to MH i2c: 01 00 00 37 64 9B [10:17:01]Write i2c OK [10:17:01]MH_I2C_Read... [10:17:01]Read from MH i2c: 01 [10:17:01]MH_I2C_Read... [10:17:01]Read from MH i2c: 01 07 00 [10:17:01]MH_I2C_Read... [10:17:01]Read from MH i2c: 01 07 00 37 64 00 00 00 00 00 FF 0F B0 [10:17:01]RasterBufferAndPrint [10:17:01]line Счет N : (1)1036128 [10:17:01]line ИНН: 02508201610067 [10:17:01]line Контрольно-Кассовый Чек [10:17:01]line ПРОДАЖА [10:17:01]line ТРК (МРК, ГНК) : 12 [10:17:01]line Товар: 2710124130 [10:17:01]line Аи-92-К-5 [10:17:01]line 7.380 * 67.80 [10:17:01]line = 500.36 [10:17:01]line НДС 12% НСП 1% [10:17:01]line > о реализуемом товаре [10:17:01]line ОКРУГЛЕНИЕ: -0.36 [10:17:01]line ИТОГО: 500.00 [10:17:01]line Внесено: 500.00 [10:17:01]line СДАЧА: 0.00 [10:17:01]line НСП 1% : 4.43 [10:17:01]line НДС 12% : 53.14 [10:17:01]line Наличными: 500.00 [10:17:01]line Безнал.: 0.00 [10:17:01]line Место: АЗС № 94 "Партнер Нефть" [10:17:01]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [10:17:01]line СНО: Общий режим [10:17:01]line Чек 142 18.08.2024 10:17 [10:17:01]line Смена: 449 ФФД: 1.0 [10:17:01]line ЗНМ: 0300000099 [10:17:01]line РНМ: 0000000000091865 [10:17:01]line Версия ККМ: 001 [10:17:01]line ФМ: 0000000000871820 [10:17:01]line ФД: 260584 [10:17:01]line ФПД: 6253314670736 [10:17:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T101703&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260584&fm=6253314670736&tin=02508201610067®Number=0000000000091865&sum=50000 [10:17:01]OFD Sender: Processing packet 260584 [packets to send 192, broken 191] [10:17:01]ProducePacketName [10:17:01]name=ofd_packets/00260584 [10:17:01]OFD Sender: To server: pG, [10:17:01]CommunicateWithHost lk.salyk.kg:30040 [10:17:01]ConnectInit lk.salyk.kg [10:17:01]written 0, free lines is 4095 [10:17:01]Connected sock=10 [10:17: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 30 0F 01 00 00 E2 20 07 01 D3 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 8E 00 00 00 F4 03 04 00 1F CA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E8 F9 03 00 35 04 06 00 05 AF F6 99 80 90 FF 5E F1 51 88 08 53 53 [10:17:01]recv_with_timeout no data received [10:17:01]CommunicateWithHost answer receiving error [10:17:01]CommunicateWithHost err = -3 [10:17:01]OFD Sender: Server communicate error [10:17:02]Write to MH i2c: 01 00 00 62 64 C6 [10:17:02]Write i2c OK [10:17:02]MH_I2C_Read... [10:17:02]Read from MH i2c: 01 [10:17:02]MH_I2C_Read... [10:17:02]Read from MH i2c: 01 07 00 [10:17:02]MH_I2C_Read... [10:17:02]Read from MH i2c: 01 07 00 62 64 00 00 00 00 00 63 0C 3C [10:17:02]RasterBufferAndPrint [10:17:02]line [10:17:02]line [10:17:02]line [10:17:02]line [10:17:02]line [10:17:02]written 0, free lines is 3175 [10:17:02]MH_Cut [10:17:02]Write to MH i2c: D1 01 00 69 64 01 9F [10:17:02]Write i2c OK [10:17:02]MH_I2C_Read... [10:17:02]Read from MH i2c: D1 [10:17:02]MH_I2C_Read... [10:17:02]Read from MH i2c: D1 01 00 [10:17:02]MH_I2C_Read... [10:17:02]Read from MH i2c: D1 01 00 69 64 00 9E [10:17:02]Write to MH i2c: 01 00 00 6A 64 CE [10:17:02]Write i2c OK [10:17:02]MH_I2C_Read... [10:17:03]*** Cut start [10:17:03]*** Purtial cut [10:17:03]*** Stage 1: CUTSNS_PIN = 1 [10:17:05]Read from MH i2c: 01 [10:17:05]MH_I2C_Read... [10:17:05]*** Stop cut motor [10:17:05]*** Cut end [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 6A 64 00 00 00 00 00 FF 0F E3 [10:17:05]process_action close_receipt done [10:17:05]requested_data is exist [10:17:05]produce_requested_data [10:17:05]requested_item fm.sn is exist - process it [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 6B 64 80 11 00 00 00 00 00 00 49 [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 6B 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 96 [10:17:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:17:05]wFMCommunicate OK [10:17:05]requested_item fd.num is exist - process it [10:17:05]SAM_PROTO_GetFieldsCounters [10:17:05]wFMCommunicate request_size=4 [10:17:05]MH_SAM_APDU [10:17:05]CAPDU: 80 13 00 00 [10:17:05]Write to MH i2c: E2 08 00 6C 64 80 13 00 00 00 00 00 00 4C [10:17:05]Write i2c OK [10:17:05]MH_I2C_Read... [10:17:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:05]Read from MH i2c: E2 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 62 00 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 62 00 6C 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E8 F9 03 00 0E 04 04 00 C1 01 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 BB [10: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E8 F9 03 00 0E 04 04 00 C1 01 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 [10:17:05]wFMCommunicate OK [10:17:05]SAM_PROTO_GetFieldsCounters done [10:17:05]requested_item shift.num is exist - process it [10:17:05]requested_item shift.opened is exist - process it [10:17:05]req_shift_opened [10:17:05]FM_GetShiftState [10:17:05]SAM_PROTO_GetShiftState [10:17:05]wFMCommunicate request_size=4 [10:17:05]MH_SAM_APDU [10:17:05]CAPDU: 80 13 01 00 [10:17:05]Write to MH i2c: E2 08 00 6D 64 80 13 01 00 00 00 00 00 4E [10:17:05]Write i2c OK [10:17:05]MH_I2C_Read... [10:17:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:05]Read from MH i2c: E2 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 0E 00 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 0E 00 6D 64 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 8B [10:17:05]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:17:05]wFMCommunicate OK [10:17:05]SAM_PROTO_GetShiftState done [10:17:05]FM_GetShiftState done [10:17:05]req_shift_opened done [10:17:05]requested_item shift.open_date is exist - process it [10:17:05]req_shift_open_date [10:17:05]req_shift_open_date done [10:17:05]produce_requested_data done [10:17:05]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260584,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [10:17:05]process_action_free close_receipt [10:17:05]json_value_free [10:17:05]json_value_free done [10:17:05]process_json_proto returns [10:17:05]Send response to host [10:17:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260584,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [10:17:05]free response buf [10:17:05]execute_script done [10:17:05]execute_script returns [10:17:05]free content buf [10:17:05]Sock 9.Close socket [10:17:05]Sock 9.Thread stoped [10:17:06]OFD Sender: Processing packet 260584 [packets to send 192, broken 191] [10:17:06]ProducePacketName [10:17:06]name=ofd_packets/00260584 [10:17:06]OFD Sender: To server: pG, [10:17:06]CommunicateWithHost lk.salyk.kg:30040 [10:17:06]ConnectInit lk.salyk.kg [10:17:06]Connected sock=9 [10:17: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 30 0F 01 00 00 E2 20 07 01 D3 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 8E 00 00 00 F4 03 04 00 1F CA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E8 F9 03 00 35 04 06 00 05 AF F6 99 80 90 FF 5E F1 51 88 08 53 53 [10:17:06]recv_with_timeout no data received [10:17:06]CommunicateWithHost answer receiving error [10:17:06]CommunicateWithHost err = -3 [10:17:06]OFD Sender: Server communicate error [10:17:11]OFD Sender: Processing packet 260584 [packets to send 192, broken 191] [10:17:11]ProducePacketName [10:17:11]name=ofd_packets/00260584 [10:17:11]OFD Sender: To server: pG, [10:17:11]CommunicateWithHost lk.salyk.kg:30040 [10:17:11]ConnectInit lk.salyk.kg [10:17:11]Connected sock=9 [10:17: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 30 0F 01 00 00 E2 20 07 01 D3 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 8E 00 00 00 F4 03 04 00 1F CA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E8 F9 03 00 35 04 06 00 05 AF F6 99 80 90 FF 5E F1 51 88 08 53 53 [10:17:12]recv_with_timeout no data received [10:17:12]CommunicateWithHost answer receiving error [10:17:12]CommunicateWithHost err = -3 [10:17:12]OFD Sender: Server communicate error [10:17:17]OFD Sender: Processing packet 260584 [packets to send 192, broken 191] [10:17:17]ProducePacketName [10:17:17]name=ofd_packets/00260584 [10:17:17]OFD Sender: To server: pG, [10:17:17]CommunicateWithHost lk.salyk.kg:30040 [10:17:17]ConnectInit lk.salyk.kg [10:17:17]Connected sock=9 [10:17: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 30 0F 01 00 00 E2 20 07 01 D3 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 8E 00 00 00 F4 03 04 00 1F CA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E8 F9 03 00 35 04 06 00 05 AF F6 99 80 90 FF 5E F1 51 88 08 53 53 [10:17: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 30 4F 00 00 00 BD 7C 47 00 87 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 30 10 04 04 00 E8 F9 03 00 F4 03 04 00 84 73 C1 66 B6 04 01 00 00 5F A6 7C 3F 44 42 EA 57 [10:17:17]CommunicateWithHost err = 0 [10:17:17]CheckOFDResponse [10:17:17]1017 (14) - 77093643461234 [10:17:17]1041 (16) - 0000000000871820 [10:17:17]1040 (4) - 260584 [10:17:17]1012 (4) - 18.08.2024 04:07 [10:17:17]1206 (1) - 0 [10:17:17]OFD Sender: Remove packet 260584 [10:17:17]ProducePacketName [10:17:17]name=ofd_packets/00260584 [10:17:17]NVStorageDeleteData [10:17:17]OFD Sender: No OFD packet to send [10:17:22]OFD Sender: No OFD packet to send [10:17:27]OFD Sender: No OFD packet to send [10:17:32]OFD Sender: No OFD packet to send [10:17:37]OFD Sender: No OFD packet to send [10:17:42]OFD Sender: No OFD packet to send [10:17:47]OFD Sender: No OFD packet to send [10:17:52]OFD Sender: No OFD packet to send [10:17:57]OFD Sender: No OFD packet to send [10:18:02]OFD Sender: No OFD packet to send [10:18:07]OFD Sender: No OFD packet to send [10:18:12]OFD Sender: No OFD packet to send [10:18:17]OFD Sender: No OFD packet to send [10:18:22]OFD Sender: No OFD packet to send [10:18:27]OFD Sender: No OFD packet to send [10:18:32]OFD Sender: No OFD packet to send [10:18:37]OFD Sender: No OFD packet to send [10:18:42]OFD Sender: No OFD packet to send [10:18:47]OFD Sender: No OFD packet to send [10:18:52]OFD Sender: No OFD packet to send [10:18:57]OFD Sender: No OFD packet to send [10:19:02]OFD Sender: No OFD packet to send [10:19:07]OFD Sender: No OFD packet to send [10:19:12]OFD Sender: No OFD packet to send [10:19:17]OFD Sender: No OFD packet to send [10:19:22]OFD Sender: No OFD packet to send [10:19:28]OFD Sender: No OFD packet to send [10:19:33]OFD Sender: No OFD packet to send [10:19:38]OFD Sender: No OFD packet to send [10:19:43]OFD Sender: No OFD packet to send [10:19:48]OFD Sender: No OFD packet to send [10:19:53]OFD Sender: No OFD packet to send [10:19:58]OFD Sender: No OFD packet to send [10:20:03]OFD Sender: No OFD packet to send [10:20:08]OFD Sender: No OFD packet to send [10:20:13]OFD Sender: No OFD packet to send [10:20:18]OFD Sender: No OFD packet to send [10:20:23]OFD Sender: No OFD packet to send [10:20:28]OFD Sender: No OFD packet to send [10:20:33]OFD Sender: No OFD packet to send [10:20:38]OFD Sender: No OFD packet to send [10:20:43]OFD Sender: No OFD packet to send [10:20:48]OFD Sender: No OFD packet to send [10:20:53]OFD Sender: No OFD packet to send [10:20:58]OFD Sender: No OFD packet to send [10:21:03]OFD Sender: No OFD packet to send [10:21:08]OFD Sender: No OFD packet to send [10:21:13]OFD Sender: No OFD packet to send [10:21:18]OFD Sender: No OFD packet to send [10:21:23]OFD Sender: No OFD packet to send [10:21:28]OFD Sender: No OFD packet to send [10:21:30]accept exits with 7 [10:21:30]New connection [10:21:30]New thread 3066617188 created [10:21:30]Thread 3066473828 joined [10:21:30]Waiting for new connection... [10:21:30] Sock 7.Parse request [10:21:30]Sock 7.Check first char [10:21:30]Sock 7.First char is OK [10:21:30]request: POST /json_proto HTTP/1.0 [10:21:30]Method: POST [10:21:30]URL: /json_proto [10:21:30]Method is POST - this is cgi request [10:21:30]url: /json_proto [10:21:30]query_string will be loaded in cgi processing [10:21:30]execute_cgi json_proto POST (null) [10:21:30]execute_cgi path=json_proto method=POST [10:21:30]POST find Content-Length [10:21:30]Host: 172.17.55.133:8080 [10:21:30]Content-Length: 679 [10:21:30]Content-Type: application/json [10:21:30] [10:21:30]POST finish read [10:21:30]Found Content-Length = 679 [10:21:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036129", "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" : 74.20, "quantity" : 10.790, "sum" : 800.62, "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" ] } } [10:21:30]execute_script... [10:21: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)1036129", "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" : 74.20, "quantity" : 10.790, "sum" : 800.62, "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" ] } } [10:21:30]POST & json_proto [10:21:30]process_json_proto [10:21:30]json parsed OK: [10:21:30]protocol is kg_v1.0 [10:21:30]action value=close_receipt [10:21:30]process_action close_receipt [10:21:30]cmd_close_receipt [10:21:30]MH_GetDate [10:21:30]Write to MH i2c: F0 00 00 6E 64 C1 [10:21:30]Write i2c OK [10:21:30]MH_I2C_Read... [10:21:30]Read from MH i2c: F0 [10:21:30]MH_I2C_Read... [10:21:30]Read from MH i2c: F0 09 00 [10:21:30]MH_I2C_Read... [10:21:30]Read from MH i2c: F0 09 00 6E 64 00 2E CB C1 66 34 48 D8 65 A3 [10:21:30]GetLastDocTimeStamp 1723976223 [10:21:30]current date 1723976494 [10:21:30]FM_GetShiftState [10:21:30]SAM_PROTO_GetShiftState [10:21:30]wFMCommunicate request_size=4 [10:21:30]MH_SAM_APDU [10:21:30]CAPDU: 80 13 01 00 [10:21:30]Write to MH i2c: E2 08 00 6F 64 80 13 01 00 00 00 00 00 50 [10:21:30]Write i2c OK [10:21:30]MH_I2C_Read... [10:21:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:30]Read from MH i2c: E2 [10:21:30]MH_I2C_Read... [10:21:30]Read from MH i2c: E2 0E 00 [10:21:30]MH_I2C_Read... [10:21:30]Read from MH i2c: E2 0E 00 6F 64 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 8D [10:21:30]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:21:30]wFMCommunicate OK [10:21:30]SAM_PROTO_GetShiftState done [10:21:30]FM_GetShiftState done [10:21:30]opened in 1723940556 [10:21:30]opened+sec_in_day 1724026956 [10:21:30]quantity*price = 80061 [10:21:30]sum+1 = 80063 [10:21:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 143 18.08.2024 10:21 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260585 ФПД: 110683132185611 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T102134&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260585&fm=110683132185611&tin=02508201610067®Number=0000000000091865&sum=80000 [10:21:31]StoreToDocumentArchive [10:21:31]shift 449 fd 260585 [10:21:31]save to /storage/0449/doc_00260585 [10:21:31]save last doc name /storage/0449/doc_00260585 to /storage/kkm_last_doc_name [10:21:31]save OK [10:21:31]Clear old archive folders... [10:21:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:21:31]tlvbuf is 00383100 [10:21:31]SAM_PROTO_ClearQueue [10:21:31]wFMCommunicate request_size=4 [10:21:31]MH_SAM_APDU [10:21:31]CAPDU: 80 09 00 00 [10:21:31]Write to MH i2c: E2 08 00 7C 64 80 09 00 00 00 00 00 00 52 [10:21:31]Write i2c OK [10:21:31]MH_I2C_Read... [10:21:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:31]Read from MH i2c: E2 [10:21:31]MH_I2C_Read... [10:21:31]Read from MH i2c: E2 03 00 [10:21:31]MH_I2C_Read... [10:21:31]Read from MH i2c: E2 03 00 7C 64 00 90 00 54 [10:21:31]RAPDU: 90 00 [10:21:31]wFMCommunicate OK [10:21:31]SAM_PROTO_ClearQueue done [10:21:31]KKMCreateOFDPacket [10:21:31]OFDProtocolAddRootSTLVToBuf [10:21:31]FM_MakeSignedData [10:21:31]FM_MakeSignedData [10:21:31]SAM_PROTO_SignData [10:21:31]wFMCommunicate request_size=4 [10:21:31]MH_SAM_APDU [10:21:31]CAPDU: 80 0D 01 02 [10:21:31]Write to MH i2c: E2 08 00 7D 64 80 0D 01 02 00 00 00 00 5A [10:21:31]Write i2c OK [10:21:31]MH_I2C_Read... [10:21:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:31]Read from MH i2c: E2 [10:21:31]MH_I2C_Read... [10:21:31]Read from MH i2c: E2 03 00 [10:21:31]MH_I2C_Read... [10:21:31]Read from MH i2c: E2 03 00 7D 64 00 90 00 55 [10:21:31]RAPDU: 90 00 [10:21:31]wFMCommunicate OK [10:21:31]wFMCommunicate request_size=255 [10:21:31]MH_SAM_APDU [10:21: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 8F 00 00 00 F4 03 04 00 2E CB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E9 F9 03 00 35 04 06 00 64 [10:21:31]Write to MH i2c: E2 02 01 7E 64 80 0D 02 02 FA 00 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 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 8F 00 00 00 F4 03 04 00 2E CB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E9 F9 03 00 35 04 06 00 64 00 00 0E [10:21:31]Write i2c OK [10:21:31]MH_I2C_Read... [10:21:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:32]Read from MH i2c: E2 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: E2 03 00 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: E2 03 00 7E 64 00 90 00 56 [10:21:32]RAPDU: 90 00 [10:21:32]wFMCommunicate OK [10:21:32]wFMCommunicate request_size=10 [10:21:32]MH_SAM_APDU [10:21:32]CAPDU: 80 0D 02 02 05 AA 6C C6 CC 0B [10:21:32]Write to MH i2c: E2 0D 00 7F 64 80 0D 02 02 05 00 AA 6C C6 CC 0B 00 00 1A [10:21:32]Write i2c OK [10:21:32]MH_I2C_Read... [10:21:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:32]Read from MH i2c: E2 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: E2 03 00 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: E2 03 00 7F 64 00 90 00 57 [10:21:32]RAPDU: 90 00 [10:21:32]wFMCommunicate OK [10:21:32]wFMCommunicate request_size=4 [10:21:32]MH_SAM_APDU [10:21:32]CAPDU: 80 0D 03 02 [10:21:32]Write to MH i2c: E2 08 00 80 64 80 0D 03 02 00 00 00 00 5F [10:21:32]Write i2c OK [10:21:32]MH_I2C_Read... [10:21:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:32]Read from MH i2c: E2 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: E2 0B 00 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: E2 0B 00 80 64 00 A4 CC F1 E0 C7 89 72 18 90 00 7B [10:21:32]RAPDU: A4 CC F1 E0 C7 89 72 18 90 00 [10:21:32]wFMCommunicate OK [10:21:32]SAM_PROTO_SignData done [10:21:32]FM_MakeSignedData done [10:21:32]CreateOFDProtocolMessage [10:21:32]wFMCommunicate request_size=4 [10:21:32]MH_SAM_APDU [10:21:32]CAPDU: 80 11 00 00 [10:21:32]Write to MH i2c: E2 08 00 81 64 80 11 00 00 00 00 00 00 5F [10:21:32]Write i2c OK [10:21:32]MH_I2C_Read... [10:21:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:32]Read from MH i2c: E2 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: E2 17 00 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: E2 17 00 81 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 AC [10:21:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:21:32]wFMCommunicate OK [10:21:32]CreateOFDProtocolMessage done [10:21:32]OFDSenderStorePacket 260585 [10:21:32]StoreOFDPacket docnum=260585 [10:21:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 59 F4 07 01 EF 8B 5A 03 01 00 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 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 8F 00 00 00 F4 03 04 00 2E CB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E9 F9 03 00 35 04 06 00 64 AA 6C C6 CC 0B A4 CC F1 E0 C7 89 72 18 [10:21:32]CheckFolder [10:21:32]dirname=/storage/ofd_packets [10:21:32]CheckFolder done [10:21:32]ProducePacketName [10:21:32]name=ofd_packets/00260585 [10:21:32]NVStorageSaveData ofd_packets/00260585 [10:21:32]File name is /storage/ofd_packets/00260585 [10:21:32]Write 301 bytes [10:21:32]NVStorageSaveData done [10:21:32]OFDSenderStorePacket done [10:21:32]KKMCreateOFDPacket done [10:21:32]NVStorageSaveData kkm_last_timestamp [10:21:32]File name is /storage/kkm_last_timestamp [10:21:32]Write 4 bytes [10:21:32]NVStorageSaveData done [10:21:32]ExternCall_PrintAddStr [10:21:32]wPrintStart [10:21:32]Write to MH i2c: 01 00 00 82 64 E6 [10:21:32]Write i2c OK [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: 01 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: 01 07 00 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: 01 07 00 82 64 00 00 00 00 00 FF 0F FB [10:21:32]RasterBufferAndPrint [10:21:32]line Счет N : (1)1036129 [10:21:32]line ИНН: 02508201610067 [10:21:32]line Контрольно-Кассовый Чек [10:21:32]line ПРОДАЖА [10:21:32]line ТРК (МРК, ГНК) : 13 [10:21:32]line Товар: 2710124500 [10:21:32]line Аи-95-К-5 [10:21:32]line 10.790 * 74.20 [10:21:32]line = 800.62 [10:21:32]line НДС 12% НСП 1% [10:21:32]line > о реализуемом товаре [10:21:32]line ОКРУГЛЕНИЕ: -0.62 [10:21:32]line ИТОГО: 800.00 [10:21:32]line Внесено: 800.00 [10:21:32]line СДАЧА: 0.00 [10:21:32]line НСП 1% : 7.08 [10:21:32]line НДС 12% : 85.02 [10:21:32]line Наличными: 800.00 [10:21:32]line Безнал.: 0.00 [10:21:32]line Место: АЗС № 94 "Партнер Нефть" [10:21:32]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [10:21:32]line СНО: Общий режим [10:21:32]line Чек 143 18.08.2024 10:21 [10:21:32]line Смена: 449 ФФД: 1.0 [10:21:32]line ЗНМ: 0300000099 [10:21:32]line РНМ: 0000000000091865 [10:21:32]line Версия ККМ: 001 [10:21:32]line ФМ: 0000000000871820 [10:21:32]line ФД: 260585 [10:21:32]line ФПД: 110683132185611 [10:21:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T102134&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260585&fm=110683132185611&tin=02508201610067®Number=0000000000091865&sum=80000 [10:21:32]written 0, free lines is 4095 [10:21:32]OFD Sender: Processing packet 260585 [packets to send 192, broken 191] [10:21:32]ProducePacketName [10:21:32]name=ofd_packets/00260585 [10:21:32]OFD Sender: To server: pG, [10:21:32]CommunicateWithHost lk.salyk.kg:30040 [10:21:32]ConnectInit lk.salyk.kg [10:21:32]Connected sock=10 [10:21: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 30 0F 01 00 00 59 F4 07 01 EF 8B 5A 03 01 00 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 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 8F 00 00 00 F4 03 04 00 2E CB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E9 F9 03 00 35 04 06 00 64 AA 6C C6 CC 0B A4 CC F1 E0 C7 89 72 18 [10:21:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 4F 00 00 00 A1 74 47 00 B5 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 30 10 04 04 00 E9 F9 03 00 F4 03 04 00 84 74 C1 66 B6 04 01 00 00 46 C9 EA 05 88 12 9F 37 [10:21:32]CommunicateWithHost err = 0 [10:21:32]CheckOFDResponse [10:21:32]1017 (14) - 77093643461234 [10:21:32]1041 (16) - 0000000000871820 [10:21:32]1040 (4) - 260585 [10:21:32]1012 (4) - 18.08.2024 04:11 [10:21:32]1206 (1) - 0 [10:21:32]OFD Sender: Remove packet 260585 [10:21:32]ProducePacketName [10:21:32]name=ofd_packets/00260585 [10:21:32]NVStorageDeleteData [10:21:32]Write to MH i2c: 01 00 00 AD 64 11 [10:21:32]Write i2c OK [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: 01 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: 01 07 00 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: 01 07 00 AD 64 00 00 00 00 00 6C 0C 90 [10:21:32]RasterBufferAndPrint [10:21:32]line [10:21:32]line [10:21:32]line [10:21:32]line [10:21:32]line [10:21:32]written 0, free lines is 3183 [10:21:32]MH_Cut [10:21:32]Write to MH i2c: D1 01 00 B4 64 01 EA [10:21:32]Write i2c OK [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: D1 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: D1 01 00 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: D1 01 00 B4 64 00 E9 [10:21:32]Write to MH i2c: 01 00 00 B5 64 19 [10:21:32]Write i2c OK [10:21:32]MH_I2C_Read... [10:21:33]OFD Sender: No OFD packet to send [10:21:33]*** Cut start [10:21:33]*** Purtial cut [10:21:33]*** Stage 1: CUTSNS_PIN = 1 [10:21:35]Read from MH i2c: 01 [10:21:35]MH_I2C_Read... [10:21:35]*** Stop cut motor [10:21:35]*** Cut end [10:21:35]Read from MH i2c: 01 07 00 [10:21:35]MH_I2C_Read... [10:21:35]Read from MH i2c: 01 07 00 B5 64 00 00 00 00 00 FF 0F 2E [10:21:35]process_action close_receipt done [10:21:35]requested_data is exist [10:21:35]produce_requested_data [10:21:35]requested_item fm.sn is exist - process it [10:21:35]wFMCommunicate request_size=4 [10:21:35]MH_SAM_APDU [10:21:35]CAPDU: 80 11 00 00 [10:21:35]Write to MH i2c: E2 08 00 B6 64 80 11 00 00 00 00 00 00 94 [10:21:35]Write i2c OK [10:21:35]MH_I2C_Read... [10:21:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:36]Read from MH i2c: E2 [10:21:36]MH_I2C_Read... [10:21:36]Read from MH i2c: E2 17 00 [10:21:36]MH_I2C_Read... [10:21:36]Read from MH i2c: E2 17 00 B6 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E1 [10:21:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:21:36]wFMCommunicate OK [10:21:36]requested_item fd.num is exist - process it [10:21:36]SAM_PROTO_GetFieldsCounters [10:21:36]wFMCommunicate request_size=4 [10:21:36]MH_SAM_APDU [10:21:36]CAPDU: 80 13 00 00 [10:21:36]Write to MH i2c: E2 08 00 B7 64 80 13 00 00 00 00 00 00 97 [10:21:36]Write i2c OK [10:21:36]MH_I2C_Read... [10:21:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:36]Read from MH i2c: E2 [10:21:36]MH_I2C_Read... [10:21:36]Read from MH i2c: E2 62 00 [10:21:36]MH_I2C_Read... [10:21:36]Read from MH i2c: E2 62 00 B7 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E9 F9 03 00 0E 04 04 00 C1 01 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 0A [10:21: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E9 F9 03 00 0E 04 04 00 C1 01 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 [10:21:36]wFMCommunicate OK [10:21:36]SAM_PROTO_GetFieldsCounters done [10:21:36]requested_item shift.num is exist - process it [10:21:36]requested_item shift.opened is exist - process it [10:21:36]req_shift_opened [10:21:36]FM_GetShiftState [10:21:36]SAM_PROTO_GetShiftState [10:21:36]wFMCommunicate request_size=4 [10:21:36]MH_SAM_APDU [10:21:36]CAPDU: 80 13 01 00 [10:21:36]Write to MH i2c: E2 08 00 B8 64 80 13 01 00 00 00 00 00 99 [10:21:36]Write i2c OK [10:21:36]MH_I2C_Read... [10:21:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:36]Read from MH i2c: E2 [10:21:36]MH_I2C_Read... [10:21:36]Read from MH i2c: E2 0E 00 [10:21:36]MH_I2C_Read... [10:21:36]Read from MH i2c: E2 0E 00 B8 64 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D6 [10:21:36]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:21:36]wFMCommunicate OK [10:21:36]SAM_PROTO_GetShiftState done [10:21:36]FM_GetShiftState done [10:21:36]req_shift_opened done [10:21:36]requested_item shift.open_date is exist - process it [10:21:36]req_shift_open_date [10:21:36]req_shift_open_date done [10:21:36]produce_requested_data done [10:21:36]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260585,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [10:21:36]process_action_free close_receipt [10:21:36]json_value_free [10:21:36]json_value_free done [10:21:36]process_json_proto returns [10:21:36]Send response to host [10:21:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260585,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [10:21:36]free response buf [10:21:36]execute_script done [10:21:36]execute_script returns [10:21:36]free content buf [10:21:36]Sock 7.Close socket [10:21:36]Sock 7.Thread stoped [10:21:38]OFD Sender: No OFD packet to send [10:21:43]OFD Sender: No OFD packet to send [10:21:48]OFD Sender: No OFD packet to send [10:21:53]OFD Sender: No OFD packet to send [10:21:58]OFD Sender: No OFD packet to send [10:22:03]OFD Sender: No OFD packet to send [10:22:08]OFD Sender: No OFD packet to send [10:22:13]OFD Sender: No OFD packet to send [10:22:18]OFD Sender: No OFD packet to send [10:22:23]OFD Sender: No OFD packet to send [10:22:28]OFD Sender: No OFD packet to send [10:22:33]OFD Sender: No OFD packet to send [10:22:38]OFD Sender: No OFD packet to send [10:22:43]OFD Sender: No OFD packet to send [10:22:43]accept exits with 9 [10:22:43]New connection [10:22:43]New thread 3066473828 created [10:22:43]Thread 3066617188 joined [10:22:43]Waiting for new connection... [10:22:43] Sock 9.Parse request [10:22:43]Sock 9.Check first char [10:22:43]Sock 9.First char is OK [10:22:43]request: POST /json_proto HTTP/1.0 [10:22:43]Method: POST [10:22:43]URL: /json_proto [10:22:43]Method is POST - this is cgi request [10:22:43]url: /json_proto [10:22:43]query_string will be loaded in cgi processing [10:22:43]execute_cgi json_proto POST (null) [10:22:43]execute_cgi path=json_proto method=POST [10:22:43]POST find Content-Length [10:22:43]Host: 172.17.55.133:8080 [10:22:43]Content-Length: 804 [10:22:43]Content-Type: application/json [10:22:43] [10:22:43]POST finish read [10:22:43]Found Content-Length = 804 [10:22:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 26.550, "sum" : 1800.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1800.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:43]execute_script... [10:22: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)1036130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 26.550, "sum" : 1800.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1800.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:43]POST & json_proto [10:22:43]process_json_proto [10:22:43]json parsed OK: [10:22:43]protocol is kg_v1.0 [10:22:43]action value=close_receipt [10:22:43]process_action close_receipt [10:22:43]cmd_close_receipt [10:22:43]MH_GetDate [10:22:43]Write to MH i2c: F0 00 00 B9 64 0C [10:22:43]Write i2c OK [10:22:43]MH_I2C_Read... [10:22:43]Read from MH i2c: F0 [10:22:43]MH_I2C_Read... [10:22:43]Read from MH i2c: F0 09 00 [10:22:43]MH_I2C_Read... [10:22:43]Read from MH i2c: F0 09 00 B9 64 00 77 CB C1 66 34 48 D8 65 37 [10:22:43]GetLastDocTimeStamp 1723976494 [10:22:43]current date 1723976567 [10:22:43]FM_GetShiftState [10:22:43]SAM_PROTO_GetShiftState [10:22:43]wFMCommunicate request_size=4 [10:22:43]MH_SAM_APDU [10:22:43]CAPDU: 80 13 01 00 [10:22:43]Write to MH i2c: E2 08 00 BA 64 80 13 01 00 00 00 00 00 9B [10:22:43]Write i2c OK [10:22:43]MH_I2C_Read... [10:22:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:43]Read from MH i2c: E2 [10:22:43]MH_I2C_Read... [10:22:43]Read from MH i2c: E2 0E 00 [10:22:43]MH_I2C_Read... [10:22:43]Read from MH i2c: E2 0E 00 BA 64 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D8 [10:22:43]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:22:43]wFMCommunicate OK [10:22:43]SAM_PROTO_GetShiftState done [10:22:43]FM_GetShiftState done [10:22:43]opened in 1723940556 [10:22:43]opened+sec_in_day 1724026956 [10:22:43]quantity*price = 180009 [10:22:43]sum+1 = 180010 [10:22:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1800.09 НСП 1% : 15.93 НДС 12% : 191.16 Наличными: 0.00 Безнал.: 1800.09 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 144 18.08.2024 10:22 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260586 ФПД: 134352115877255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T102247&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260586&fm=134352115877255&tin=02508201610067®Number=0000000000091865&sum=180009 [10:22:44]StoreToDocumentArchive [10:22:44]shift 449 fd 260586 [10:22:44]save to /storage/0449/doc_00260586 [10:22:44]save last doc name /storage/0449/doc_00260586 to /storage/kkm_last_doc_name [10:22:44]save OK [10:22:44]Clear old archive folders... [10:22:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:22:44]tlvbuf is 00451260 [10:22:44]SAM_PROTO_ClearQueue [10:22:44]wFMCommunicate request_size=4 [10:22:44]MH_SAM_APDU [10:22:44]CAPDU: 80 09 00 00 [10:22:44]Write to MH i2c: E2 08 00 C7 64 80 09 00 00 00 00 00 00 9D [10:22:44]Write i2c OK [10:22:44]MH_I2C_Read... [10:22:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:44]Read from MH i2c: E2 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: E2 03 00 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: E2 03 00 C7 64 00 90 00 9F [10:22:44]RAPDU: 90 00 [10:22:44]wFMCommunicate OK [10:22:44]SAM_PROTO_ClearQueue done [10:22:44]KKMCreateOFDPacket [10:22:44]OFDProtocolAddRootSTLVToBuf [10:22:44]FM_MakeSignedData [10:22:44]FM_MakeSignedData [10:22:44]SAM_PROTO_SignData [10:22:44]wFMCommunicate request_size=4 [10:22:44]MH_SAM_APDU [10:22:44]CAPDU: 80 0D 01 02 [10:22:44]Write to MH i2c: E2 08 00 C8 64 80 0D 01 02 00 00 00 00 A5 [10:22:44]Write i2c OK [10:22:44]MH_I2C_Read... [10:22:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:44]Read from MH i2c: E2 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: E2 03 00 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: E2 03 00 C8 64 00 90 00 A0 [10:22:44]RAPDU: 90 00 [10:22:44]wFMCommunicate OK [10:22:44]wFMCommunicate request_size=255 [10:22:44]MH_SAM_APDU [10:22:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 67 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 29 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 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 AC 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 77 CB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EA F9 03 00 35 04 06 00 7A [10:22:44]Write to MH i2c: E2 02 01 C9 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 67 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 29 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 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 AC 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 77 CB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EA F9 03 00 35 04 06 00 7A 00 00 6E [10:22:44]Write i2c OK [10:22:44]MH_I2C_Read... [10:22:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:44]Read from MH i2c: E2 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: E2 03 00 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: E2 03 00 C9 64 00 90 00 A1 [10:22:44]RAPDU: 90 00 [10:22:44]wFMCommunicate OK [10:22:44]wFMCommunicate request_size=10 [10:22:44]MH_SAM_APDU [10:22:44]CAPDU: 80 0D 02 02 05 31 4A 24 45 87 [10:22:44]Write to MH i2c: E2 0D 00 CA 64 80 0D 02 02 05 00 31 4A 24 45 87 00 00 1D [10:22:44]Write i2c OK [10:22:44]MH_I2C_Read... [10:22:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:45]Read from MH i2c: E2 [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: E2 03 00 [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: E2 03 00 CA 64 00 90 00 A2 [10:22:45]RAPDU: 90 00 [10:22:45]wFMCommunicate OK [10:22:45]wFMCommunicate request_size=4 [10:22:45]MH_SAM_APDU [10:22:45]CAPDU: 80 0D 03 02 [10:22:45]Write to MH i2c: E2 08 00 CB 64 80 0D 03 02 00 00 00 00 AA [10:22:45]Write i2c OK [10:22:45]MH_I2C_Read... [10:22:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:45]Read from MH i2c: E2 [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: E2 0B 00 [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: E2 0B 00 CB 64 00 41 FF F2 D8 0F 7A BC A7 90 00 A1 [10:22:45]RAPDU: 41 FF F2 D8 0F 7A BC A7 90 00 [10:22:45]wFMCommunicate OK [10:22:45]SAM_PROTO_SignData done [10:22:45]FM_MakeSignedData done [10:22:45]CreateOFDProtocolMessage [10:22:45]wFMCommunicate request_size=4 [10:22:45]MH_SAM_APDU [10:22:45]CAPDU: 80 11 00 00 [10:22:45]Write to MH i2c: E2 08 00 CC 64 80 11 00 00 00 00 00 00 AA [10:22:45]Write i2c OK [10:22:45]MH_I2C_Read... [10:22:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:45]Read from MH i2c: E2 [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: E2 17 00 [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: E2 17 00 CC 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F7 [10:22:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:22:45]wFMCommunicate OK [10:22:45]CreateOFDProtocolMessage done [10:22:45]OFDSenderStorePacket 260586 [10:22:45]StoreOFDPacket docnum=260586 [10:22:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 2C ED 07 01 DF 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 67 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 29 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 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 AC 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 77 CB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EA F9 03 00 35 04 06 00 7A 31 4A 24 45 87 41 FF F2 D8 0F 7A BC A7 [10:22:45]CheckFolder [10:22:45]dirname=/storage/ofd_packets [10:22:45]CheckFolder done [10:22:45]ProducePacketName [10:22:45]name=ofd_packets/00260586 [10:22:45]NVStorageSaveData ofd_packets/00260586 [10:22:45]File name is /storage/ofd_packets/00260586 [10:22:45]Write 301 bytes [10:22:45]NVStorageSaveData done [10:22:45]OFDSenderStorePacket done [10:22:45]KKMCreateOFDPacket done [10:22:45]NVStorageSaveData kkm_last_timestamp [10:22:45]File name is /storage/kkm_last_timestamp [10:22:45]Write 4 bytes [10:22:45]NVStorageSaveData done [10:22:45]ExternCall_PrintAddStr [10:22:45]wPrintStart [10:22:45]Write to MH i2c: 01 00 00 CD 64 31 [10:22:45]Write i2c OK [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: 01 [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: 01 07 00 [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: 01 07 00 CD 64 00 00 00 00 00 FF 0F 46 [10:22:45]RasterBufferAndPrint [10:22:45]line Счет N : (1)1036130 [10:22:45]line ИНН: 02508201610067 [10:22:45]line Контрольно-Кассовый Чек [10:22:45]line ПРОДАЖА [10:22:45]line ТРК (МРК, ГНК) : 42 [10:22:45]line Товар: 2710124130 [10:22:45]line Аи-92-К-5 [10:22:45]line 26.550 * 67.80 [10:22:45]line = 1800.09 [10:22:45]line НДС 12% НСП 1% [10:22:45]line > о реализуемом товаре [10:22:45]line ИТОГО: 1800.09 [10:22:45]line НСП 1% : 15.93 [10:22:45]line НДС 12% : 191.16 [10:22:45]line Наличными: 0.00 [10:22:45]line Безнал.: 1800.09 [10:22:45]line Место: АЗС № 94 "Партнер Нефть" [10:22:45]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [10:22:45]line СНО: Общий режим [10:22:45]line Чек 144 18.08.2024 10:22 [10:22:45]line Смена: 449 ФФД: 1.0 [10:22:45]line ЗНМ: 0300000099 [10:22:45]line РНМ: 0000000000091865 [10:22:45]line Версия ККМ: 001 [10:22:45]line Платежная система: O! деньги [10:22:45]line ФМ: 0000000000871820 [10:22:45]line ФД: 260586 [10:22:45]line ФПД: 134352115877255 [10:22:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T102247&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260586&fm=134352115877255&tin=02508201610067®Number=0000000000091865&sum=180009 [10:22:45]written 0, free lines is 4095 [10:22:45]OFD Sender: Processing packet 260586 [packets to send 192, broken 191] [10:22:45]ProducePacketName [10:22:45]name=ofd_packets/00260586 [10:22:45]OFD Sender: To server: pG, [10:22:45]CommunicateWithHost lk.salyk.kg:30040 [10:22:45]ConnectInit lk.salyk.kg [10:22:45]Connected sock=10 [10:22: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 30 0F 01 00 00 2C ED 07 01 DF 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 67 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 29 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 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 AC 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 77 CB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EA F9 03 00 35 04 06 00 7A 31 4A 24 45 87 41 FF F2 D8 0F 7A BC A7 [10:22: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 30 4F 00 00 00 2D D6 47 00 A7 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 30 10 04 04 00 EA F9 03 00 F4 03 04 00 CC 74 C1 66 B6 04 01 00 00 11 D8 AD BC E4 9E 21 8A [10:22:45]CommunicateWithHost err = 0 [10:22:45]CheckOFDResponse [10:22:45]1017 (14) - 77093643461234 [10:22:45]1041 (16) - 0000000000871820 [10:22:45]1040 (4) - 260586 [10:22:45]1012 (4) - 18.08.2024 04:13 [10:22:45]1206 (1) - 0 [10:22:45]OFD Sender: Remove packet 260586 [10:22:45]ProducePacketName [10:22:45]name=ofd_packets/00260586 [10:22:45]NVStorageDeleteData [10:22:45]Write to MH i2c: 01 00 00 F7 64 5B [10:22:45]Write i2c OK [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: 01 [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: 01 07 00 [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: 01 07 00 F7 64 00 00 00 00 00 84 0C F2 [10:22:45]RasterBufferAndPrint [10:22:45]line [10:22:45]line [10:22:45]line [10:22:45]line [10:22:45]line [10:22:45]written 0, free lines is 3208 [10:22:45]MH_Cut [10:22:45]Write to MH i2c: D1 01 00 FE 64 01 34 [10:22:45]Write i2c OK [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: D1 [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: D1 01 00 [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: D1 01 00 FE 64 00 33 [10:22:45]Write to MH i2c: 01 00 00 FF 64 63 [10:22:45]Write i2c OK [10:22:45]MH_I2C_Read... [10:22:45]OFD Sender: No OFD packet to send [10:22:46]*** Cut start [10:22:46]*** Purtial cut [10:22:46]*** Stage 1: CUTSNS_PIN = 1 [10:22:48]Read from MH i2c: 01 [10:22:48]MH_I2C_Read... [10:22:48]*** Stop cut motor [10:22:48]*** Cut end [10:22:48]Read from MH i2c: 01 07 00 [10:22:48]MH_I2C_Read... [10:22:48]Read from MH i2c: 01 07 00 FF 64 00 00 00 00 00 FF 0F 78 [10:22:48]process_action close_receipt done [10:22:48]requested_data is exist [10:22:48]produce_requested_data [10:22:48]requested_item fm.sn is exist - process it [10:22:48]wFMCommunicate request_size=4 [10:22:48]MH_SAM_APDU [10:22:48]CAPDU: 80 11 00 00 [10:22:48]Write to MH i2c: E2 08 00 00 65 80 11 00 00 00 00 00 00 DF [10:22:48]Write i2c OK [10:22:48]MH_I2C_Read... [10:22:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:48]Read from MH i2c: E2 [10:22:48]MH_I2C_Read... [10:22:48]Read from MH i2c: E2 17 00 [10:22:48]MH_I2C_Read... [10:22:48]Read from MH i2c: E2 17 00 00 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 2C [10:22:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:22:48]wFMCommunicate OK [10:22:48]requested_item fd.num is exist - process it [10:22:48]SAM_PROTO_GetFieldsCounters [10:22:48]wFMCommunicate request_size=4 [10:22:48]MH_SAM_APDU [10:22:48]CAPDU: 80 13 00 00 [10:22:48]Write to MH i2c: E2 08 00 01 65 80 13 00 00 00 00 00 00 E2 [10:22:48]Write i2c OK [10:22:48]MH_I2C_Read... [10:22:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:49]Read from MH i2c: E2 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: E2 62 00 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: E2 62 00 01 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 EA F9 03 00 0E 04 04 00 C1 01 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 59 [10:22: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 EA F9 03 00 0E 04 04 00 C1 01 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 [10:22:49]wFMCommunicate OK [10:22:49]SAM_PROTO_GetFieldsCounters done [10:22:49]requested_item shift.num is exist - process it [10:22:49]requested_item shift.opened is exist - process it [10:22:49]req_shift_opened [10:22:49]FM_GetShiftState [10:22:49]SAM_PROTO_GetShiftState [10:22:49]wFMCommunicate request_size=4 [10:22:49]MH_SAM_APDU [10:22:49]CAPDU: 80 13 01 00 [10:22:49]Write to MH i2c: E2 08 00 02 65 80 13 01 00 00 00 00 00 E4 [10:22:49]Write i2c OK [10:22:49]MH_I2C_Read... [10:22:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:49]Read from MH i2c: E2 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: E2 0E 00 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: E2 0E 00 02 65 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 21 [10:22:49]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:22:49]wFMCommunicate OK [10:22:49]SAM_PROTO_GetShiftState done [10:22:49]FM_GetShiftState done [10:22:49]req_shift_opened done [10:22:49]requested_item shift.open_date is exist - process it [10:22:49]req_shift_open_date [10:22:49]req_shift_open_date done [10:22:49]produce_requested_data done [10:22:49]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260586,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [10:22:49]process_action_free close_receipt [10:22:49]json_value_free [10:22:49]json_value_free done [10:22:49]process_json_proto returns [10:22:49]Send response to host [10:22:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260586,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [10:22:49]free response buf [10:22:49]execute_script done [10:22:49]execute_script returns [10:22:49]free content buf [10:22:49]Sock 9.Close socket [10:22:49]Sock 9.Thread stoped [10:22:50]OFD Sender: No OFD packet to send [10:22:55]OFD Sender: No OFD packet to send [10:23:00]OFD Sender: No OFD packet to send [10:23:06]OFD Sender: No OFD packet to send [10:23:11]OFD Sender: No OFD packet to send [10:23:16]OFD Sender: No OFD packet to send [10:23:21]OFD Sender: No OFD packet to send [10:23:26]OFD Sender: No OFD packet to send [10:23:31]OFD Sender: No OFD packet to send [10:23:36]OFD Sender: No OFD packet to send [10:23:41]OFD Sender: No OFD packet to send [10:23:46]OFD Sender: No OFD packet to send [10:23:51]OFD Sender: No OFD packet to send [10:23:56]OFD Sender: No OFD packet to send [10:24:01]OFD Sender: No OFD packet to send [10:24:06]OFD Sender: No OFD packet to send [10:24:11]OFD Sender: No OFD packet to send [10:24:16]OFD Sender: No OFD packet to send [10:24:21]OFD Sender: No OFD packet to send [10:24:26]OFD Sender: No OFD packet to send [10:24:31]OFD Sender: No OFD packet to send [10:24:36]OFD Sender: No OFD packet to send [10:24:41]OFD Sender: No OFD packet to send [10:24:46]OFD Sender: No OFD packet to send [10:24:51]OFD Sender: No OFD packet to send [10:24:56]OFD Sender: No OFD packet to send [10:25:01]OFD Sender: No OFD packet to send [10:25:05]accept exits with 7 [10:25:05]New connection [10:25:05]New thread 3066617188 created [10:25:05]Thread 3066473828 joined [10:25:05]Waiting for new connection... [10:25:05] Sock 7.Parse request [10:25:05]Sock 7.Check first char [10:25:05]Sock 7.First char is OK [10:25:05]request: POST /json_proto HTTP/1.0 [10:25:05]Method: POST [10:25:05]URL: /json_proto [10:25:05]Method is POST - this is cgi request [10:25:05]url: /json_proto [10:25:05]query_string will be loaded in cgi processing [10:25:05]execute_cgi json_proto POST (null) [10:25:05]execute_cgi path=json_proto method=POST [10:25:05]POST find Content-Length [10:25:05]Host: 172.17.55.133:8080 [10:25:05]Content-Length: 683 [10:25:05]Content-Type: application/json [10:25:05] [10:25:05]POST finish read [10:25:05]Found Content-Length = 683 [10:25:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:25:05]execute_script... [10:25: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)1036133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:25:05]POST & json_proto [10:25:05]process_json_proto [10:25:05]json parsed OK: [10:25:05]protocol is kg_v1.0 [10:25:05]action value=close_receipt [10:25:05]process_action close_receipt [10:25:05]cmd_close_receipt [10:25:05]MH_GetDate [10:25:05]Write to MH i2c: F0 00 00 03 65 57 [10:25:05]Write i2c OK [10:25:05]MH_I2C_Read... [10:25:05]Read from MH i2c: F0 [10:25:05]MH_I2C_Read... [10:25:05]Read from MH i2c: F0 09 00 [10:25:05]MH_I2C_Read... [10:25:05]Read from MH i2c: F0 09 00 03 65 00 05 CC C1 66 34 48 D8 65 11 [10:25:05]GetLastDocTimeStamp 1723976567 [10:25:05]current date 1723976709 [10:25:05]FM_GetShiftState [10:25:05]SAM_PROTO_GetShiftState [10:25:05]wFMCommunicate request_size=4 [10:25:05]MH_SAM_APDU [10:25:05]CAPDU: 80 13 01 00 [10:25:05]Write to MH i2c: E2 08 00 04 65 80 13 01 00 00 00 00 00 E6 [10:25:05]Write i2c OK [10:25:05]MH_I2C_Read... [10:25:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:05]Read from MH i2c: E2 [10:25:05]MH_I2C_Read... [10:25:05]Read from MH i2c: E2 0E 00 [10:25:05]MH_I2C_Read... [10:25:05]Read from MH i2c: E2 0E 00 04 65 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 23 [10:25:05]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:25:05]wFMCommunicate OK [10:25:05]SAM_PROTO_GetShiftState done [10:25:05]FM_GetShiftState done [10:25:05]opened in 1723940556 [10:25:05]opened+sec_in_day 1724026956 [10:25:05]quantity*price = 100005 [10:25:05]sum+1 = 100006 [10:25:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 145 18.08.2024 10:25 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260587 ФПД: 62776539008386 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T102509&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260587&fm=62776539008386&tin=02508201610067®Number=0000000000091865&sum=100000 [10:25:06]StoreToDocumentArchive [10:25:06]shift 449 fd 260587 [10:25:06]save to /storage/0449/doc_00260587 [10:25:06]save last doc name /storage/0449/doc_00260587 to /storage/kkm_last_doc_name [10:25:06]save OK [10:25:06]Clear old archive folders... [10:25:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:25:06]tlvbuf is 00336690 [10:25:06]SAM_PROTO_ClearQueue [10:25:06]wFMCommunicate request_size=4 [10:25:06]MH_SAM_APDU [10:25:06]CAPDU: 80 09 00 00 [10:25:06]Write to MH i2c: E2 08 00 11 65 80 09 00 00 00 00 00 00 E8 [10:25:06]Write i2c OK [10:25:06]MH_I2C_Read... [10:25:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:06]Read from MH i2c: E2 [10:25:06]MH_I2C_Read... [10:25:06]Read from MH i2c: E2 03 00 [10:25:06]MH_I2C_Read... [10:25:06]Read from MH i2c: E2 03 00 11 65 00 90 00 EA [10:25:06]RAPDU: 90 00 [10:25:06]wFMCommunicate OK [10:25:06]SAM_PROTO_ClearQueue done [10:25:06]KKMCreateOFDPacket [10:25:06]OFDProtocolAddRootSTLVToBuf [10:25:06]FM_MakeSignedData [10:25:06]FM_MakeSignedData [10:25:06]SAM_PROTO_SignData [10:25:06]wFMCommunicate request_size=4 [10:25:06]MH_SAM_APDU [10:25:06]CAPDU: 80 0D 01 02 [10:25:06]Write to MH i2c: E2 08 00 12 65 80 0D 01 02 00 00 00 00 F0 [10:25:06]Write i2c OK [10:25:06]MH_I2C_Read... [10:25:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:06]Read from MH i2c: E2 [10:25:06]MH_I2C_Read... [10:25:06]Read from MH i2c: E2 03 00 [10:25:06]MH_I2C_Read... [10:25:06]Read from MH i2c: E2 03 00 12 65 00 90 00 EB [10:25:06]RAPDU: 90 00 [10:25:06]wFMCommunicate OK [10:25:06]wFMCommunicate request_size=255 [10:25:06]MH_SAM_APDU [10:25:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 05 CC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EB F9 03 00 35 04 06 00 39 [10:25:06]Write to MH i2c: E2 02 01 13 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 05 CC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EB F9 03 00 35 04 06 00 39 00 00 67 [10:25:06]Write i2c OK [10:25:06]MH_I2C_Read... [10:25:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:06]Read from MH i2c: E2 [10:25:06]MH_I2C_Read... [10:25:06]Read from MH i2c: E2 03 00 [10:25:06]MH_I2C_Read... [10:25:06]Read from MH i2c: E2 03 00 13 65 00 90 00 EC [10:25:06]RAPDU: 90 00 [10:25:06]wFMCommunicate OK [10:25:06]wFMCommunicate request_size=10 [10:25:06]MH_SAM_APDU [10:25:06]CAPDU: 80 0D 02 02 05 18 4D 4E CD 82 [10:25:06]Write to MH i2c: E2 0D 00 14 65 80 0D 02 02 05 00 18 4D 4E CD 82 00 00 FF [10:25:06]Write i2c OK [10:25:06]MH_I2C_Read... [10:25:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:06]Read from MH i2c: E2 [10:25:06]MH_I2C_Read... [10:25:06]Read from MH i2c: E2 03 00 [10:25:06]MH_I2C_Read... [10:25:06]Read from MH i2c: E2 03 00 14 65 00 90 00 ED [10:25:06]RAPDU: 90 00 [10:25:06]wFMCommunicate OK [10:25:06]wFMCommunicate request_size=4 [10:25:06]MH_SAM_APDU [10:25:06]CAPDU: 80 0D 03 02 [10:25:06]Write to MH i2c: E2 08 00 15 65 80 0D 03 02 00 00 00 00 F5 [10:25:06]Write i2c OK [10:25:06]MH_I2C_Read... [10:25:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:06]Read from MH i2c: E2 [10:25:06]MH_I2C_Read... [10:25:06]Read from MH i2c: E2 0B 00 [10:25:06]MH_I2C_Read... [10:25:06]Read from MH i2c: E2 0B 00 15 65 00 89 28 88 54 B6 C5 6F EB 90 00 58 [10:25:06]RAPDU: 89 28 88 54 B6 C5 6F EB 90 00 [10:25:06]wFMCommunicate OK [10:25:06]SAM_PROTO_SignData done [10:25:06]FM_MakeSignedData done [10:25:06]CreateOFDProtocolMessage [10:25:06]wFMCommunicate request_size=4 [10:25:06]MH_SAM_APDU [10:25:06]CAPDU: 80 11 00 00 [10:25:06]Write to MH i2c: E2 08 00 16 65 80 11 00 00 00 00 00 00 F5 [10:25:06]Write i2c OK [10:25:06]MH_I2C_Read... [10:25:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:06]Read from MH i2c: E2 [10:25:06]MH_I2C_Read... [10:25:06]Read from MH i2c: E2 17 00 [10:25:06]MH_I2C_Read... [10:25:06]Read from MH i2c: E2 17 00 16 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 42 [10:25:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:25:06]wFMCommunicate OK [10:25:06]CreateOFDProtocolMessage done [10:25:06]OFDSenderStorePacket 260587 [10:25:06]StoreOFDPacket docnum=260587 [10:25:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 C3 7C 07 01 73 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 05 CC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EB F9 03 00 35 04 06 00 39 18 4D 4E CD 82 89 28 88 54 B6 C5 6F EB [10:25:06]CheckFolder [10:25:06]dirname=/storage/ofd_packets [10:25:06]CheckFolder done [10:25:06]ProducePacketName [10:25:06]name=ofd_packets/00260587 [10:25:06]NVStorageSaveData ofd_packets/00260587 [10:25:06]File name is /storage/ofd_packets/00260587 [10:25:06]Write 301 bytes [10:25:06]NVStorageSaveData done [10:25:06]OFDSenderStorePacket done [10:25:06]KKMCreateOFDPacket done [10:25:06]NVStorageSaveData kkm_last_timestamp [10:25:06]File name is /storage/kkm_last_timestamp [10:25:06]Write 4 bytes [10:25:06]NVStorageSaveData done [10:25:06]ExternCall_PrintAddStr [10:25:06]wPrintStart [10:25:06]Write to MH i2c: 01 00 00 17 65 7C [10:25:06]Write i2c OK [10:25:06]MH_I2C_Read... [10:25:06]Read from MH i2c: 01 [10:25:06]MH_I2C_Read... [10:25:06]Read from MH i2c: 01 07 00 [10:25:06]MH_I2C_Read... [10:25:06]Read from MH i2c: 01 07 00 17 65 00 00 00 00 00 FF 0F 91 [10:25:06]RasterBufferAndPrint [10:25:06]line Счет N : (1)1036133 [10:25:06]line ИНН: 02508201610067 [10:25:06]line Контрольно-Кассовый Чек [10:25:06]line ПРОДАЖА [10:25:06]line ТРК (МРК, ГНК) : 22 [10:25:06]line Товар: 2710124130 [10:25:06]line Аи-92-К-5 [10:25:06]line 14.750 * 67.80 [10:25:06]line = 1000.05 [10:25:06]line НДС 12% НСП 1% [10:25:06]line > о реализуемом товаре [10:25:06]line ОКРУГЛЕНИЕ: -0.05 [10:25:06]line ИТОГО: 1000.00 [10:25:06]line Внесено: 1000.00 [10:25:06]line СДАЧА: 0.00 [10:25:06]line НСП 1% : 8.85 [10:25:06]line НДС 12% : 106.20 [10:25:06]line Наличными: 1000.00 [10:25:06]line Безнал.: 0.00 [10:25:06]line Место: АЗС № 94 "Партнер Нефть" [10:25:06]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [10:25:06]line СНО: Общий режим [10:25:06]line Чек 145 18.08.2024 10:25 [10:25:06]line Смена: 449 ФФД: 1.0 [10:25:06]line ЗНМ: 0300000099 [10:25:06]line РНМ: 0000000000091865 [10:25:06]line Версия ККМ: 001 [10:25:06]line ФМ: 0000000000871820 [10:25:06]line ФД: 260587 [10:25:06]line ФПД: 62776539008386 [10:25:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T102509&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260587&fm=62776539008386&tin=02508201610067®Number=0000000000091865&sum=100000 [10:25:06]written 0, free lines is 4095 [10:25:06]OFD Sender: Processing packet 260587 [packets to send 192, broken 191] [10:25:06]ProducePacketName [10:25:06]name=ofd_packets/00260587 [10:25:06]OFD Sender: To server: pG, [10:25:06]CommunicateWithHost lk.salyk.kg:30040 [10:25:06]ConnectInit lk.salyk.kg [10:25:06]Connected sock=10 [10:25: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 30 0F 01 00 00 C3 7C 07 01 73 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 05 CC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EB F9 03 00 35 04 06 00 39 18 4D 4E CD 82 89 28 88 54 B6 C5 6F EB [10:25: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 30 4F 00 00 00 BA DE 47 00 25 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 30 10 04 04 00 EB F9 03 00 F4 03 04 00 5A 75 C1 66 B6 04 01 00 00 38 B4 76 4B D8 BC D5 4D [10:25:07]CommunicateWithHost err = 0 [10:25:07]CheckOFDResponse [10:25:07]1017 (14) - 77093643461234 [10:25:07]1041 (16) - 0000000000871820 [10:25:07]1040 (4) - 260587 [10:25:07]1012 (4) - 18.08.2024 04:15 [10:25:07]1206 (1) - 0 [10:25:07]OFD Sender: Remove packet 260587 [10:25:07]ProducePacketName [10:25:07]name=ofd_packets/00260587 [10:25:07]NVStorageDeleteData [10:25:07]Write to MH i2c: 01 00 00 42 65 A7 [10:25:07]Write i2c OK [10:25:07]MH_I2C_Read... [10:25:07]Read from MH i2c: 01 [10:25:07]MH_I2C_Read... [10:25:07]Read from MH i2c: 01 07 00 [10:25:07]MH_I2C_Read... [10:25:07]Read from MH i2c: 01 07 00 42 65 00 00 00 00 00 6D 0C 27 [10:25:07]RasterBufferAndPrint [10:25:07]line [10:25:07]line [10:25:07]line [10:25:07]line [10:25:07]line [10:25:07]written 0, free lines is 3184 [10:25:07]MH_Cut [10:25:07]Write to MH i2c: D1 01 00 49 65 01 80 [10:25:07]Write i2c OK [10:25:07]MH_I2C_Read... [10:25:07]Read from MH i2c: D1 [10:25:07]MH_I2C_Read... [10:25:07]Read from MH i2c: D1 01 00 [10:25:07]MH_I2C_Read... [10:25:07]Read from MH i2c: D1 01 00 49 65 00 7F [10:25:07]Write to MH i2c: 01 00 00 4A 65 AF [10:25:07]Write i2c OK [10:25:07]MH_I2C_Read... [10:25:07]OFD Sender: No OFD packet to send [10:25:08]*** Cut start [10:25:08]*** Purtial cut [10:25:08]*** Stage 1: CUTSNS_PIN = 1 [10:25:10]Read from MH i2c: 01 [10:25:10]MH_I2C_Read... [10:25:10]*** Stop cut motor [10:25:10]*** Cut end [10:25:10]Read from MH i2c: 01 07 00 [10:25:10]MH_I2C_Read... [10:25:10]Read from MH i2c: 01 07 00 4A 65 00 00 00 00 00 FF 0F C4 [10:25:10]process_action close_receipt done [10:25:10]requested_data is exist [10:25:10]produce_requested_data [10:25:10]requested_item fm.sn is exist - process it [10:25:10]wFMCommunicate request_size=4 [10:25:10]MH_SAM_APDU [10:25:10]CAPDU: 80 11 00 00 [10:25:10]Write to MH i2c: E2 08 00 4B 65 80 11 00 00 00 00 00 00 2A [10:25:10]Write i2c OK [10:25:10]MH_I2C_Read... [10:25:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:10]Read from MH i2c: E2 [10:25:10]MH_I2C_Read... [10:25:10]Read from MH i2c: E2 17 00 [10:25:10]MH_I2C_Read... [10:25:10]Read from MH i2c: E2 17 00 4B 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 77 [10:25:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:25:10]wFMCommunicate OK [10:25:10]requested_item fd.num is exist - process it [10:25:10]SAM_PROTO_GetFieldsCounters [10:25:10]wFMCommunicate request_size=4 [10:25:10]MH_SAM_APDU [10:25:10]CAPDU: 80 13 00 00 [10:25:10]Write to MH i2c: E2 08 00 4C 65 80 13 00 00 00 00 00 00 2D [10:25:10]Write i2c OK [10:25:10]MH_I2C_Read... [10:25:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:10]Read from MH i2c: E2 [10:25:10]MH_I2C_Read... [10:25:10]Read from MH i2c: E2 62 00 [10:25:10]MH_I2C_Read... [10:25:10]Read from MH i2c: E2 62 00 4C 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 EB F9 03 00 0E 04 04 00 C1 01 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 A8 [10:25: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 EB F9 03 00 0E 04 04 00 C1 01 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 [10:25:10]wFMCommunicate OK [10:25:10]SAM_PROTO_GetFieldsCounters done [10:25:10]requested_item shift.num is exist - process it [10:25:10]requested_item shift.opened is exist - process it [10:25:10]req_shift_opened [10:25:10]FM_GetShiftState [10:25:10]SAM_PROTO_GetShiftState [10:25:10]wFMCommunicate request_size=4 [10:25:10]MH_SAM_APDU [10:25:10]CAPDU: 80 13 01 00 [10:25:10]Write to MH i2c: E2 08 00 4D 65 80 13 01 00 00 00 00 00 2F [10:25:10]Write i2c OK [10:25:10]MH_I2C_Read... [10:25:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:10]Read from MH i2c: E2 [10:25:10]MH_I2C_Read... [10:25:10]Read from MH i2c: E2 0E 00 [10:25:10]MH_I2C_Read... [10:25:10]Read from MH i2c: E2 0E 00 4D 65 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 6C [10:25:10]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:25:10]wFMCommunicate OK [10:25:10]SAM_PROTO_GetShiftState done [10:25:10]FM_GetShiftState done [10:25:10]req_shift_opened done [10:25:10]requested_item shift.open_date is exist - process it [10:25:10]req_shift_open_date [10:25:10]req_shift_open_date done [10:25:10]produce_requested_data done [10:25:10]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260587,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [10:25:10]process_action_free close_receipt [10:25:10]json_value_free [10:25:10]json_value_free done [10:25:10]process_json_proto returns [10:25:10]Send response to host [10:25:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260587,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [10:25:10]free response buf [10:25:10]execute_script done [10:25:10]execute_script returns [10:25:10]free content buf [10:25:10]Sock 7.Close socket [10:25:10]Sock 7.Thread stoped [10:25:12]OFD Sender: No OFD packet to send [10:25:17]OFD Sender: No OFD packet to send [10:25:22]OFD Sender: No OFD packet to send [10:25:26]accept exits with 9 [10:25:26]New connection [10:25:26]New thread 3066473828 created [10:25:26]Thread 3066617188 joined [10:25:26]Waiting for new connection... [10:25:26] Sock 9.Parse request [10:25:26]Sock 9.Check first char [10:25:26]Sock 9.First char is OK [10:25:26]request: POST /json_proto HTTP/1.0 [10:25:26]Method: POST [10:25:26]URL: /json_proto [10:25:26]Method is POST - this is cgi request [10:25:26]url: /json_proto [10:25:26]query_string will be loaded in cgi processing [10:25:26]execute_cgi json_proto POST (null) [10:25:26]execute_cgi path=json_proto method=POST [10:25:26]POST find Content-Length [10:25:26]Host: 172.17.55.133:8080 [10:25:26]Content-Length: 678 [10:25:26]Content-Type: application/json [10:25:26] [10:25:26]POST finish read [10:25:26]Found Content-Length = 678 [10:25:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:26]execute_script... [10:25:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:26]POST & json_proto [10:25:26]process_json_proto [10:25:26]json parsed OK: [10:25:26]protocol is kg_v1.0 [10:25:26]action value=close_receipt [10:25:26]process_action close_receipt [10:25:26]cmd_close_receipt [10:25:26]MH_GetDate [10:25:26]Write to MH i2c: F0 00 00 4E 65 A2 [10:25:26]Write i2c OK [10:25:26]MH_I2C_Read... [10:25:26]Read from MH i2c: F0 [10:25:26]MH_I2C_Read... [10:25:26]Read from MH i2c: F0 09 00 [10:25:26]MH_I2C_Read... [10:25:26]Read from MH i2c: F0 09 00 4E 65 00 1B CC C1 66 34 48 D8 65 72 [10:25:26]GetLastDocTimeStamp 1723976709 [10:25:26]current date 1723976731 [10:25:26]FM_GetShiftState [10:25:26]SAM_PROTO_GetShiftState [10:25:26]wFMCommunicate request_size=4 [10:25:26]MH_SAM_APDU [10:25:26]CAPDU: 80 13 01 00 [10:25:26]Write to MH i2c: E2 08 00 4F 65 80 13 01 00 00 00 00 00 31 [10:25:27]Write i2c OK [10:25:27]MH_I2C_Read... [10:25:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:27]Read from MH i2c: E2 [10:25:27]MH_I2C_Read... [10:25:27]Read from MH i2c: E2 0E 00 [10:25:27]MH_I2C_Read... [10:25:27]Read from MH i2c: E2 0E 00 4F 65 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 6E [10:25:27]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:25:27]wFMCommunicate OK [10:25:27]SAM_PROTO_GetShiftState done [10:25:27]FM_GetShiftState done [10:25:27]opened in 1723940556 [10:25:27]opened+sec_in_day 1724026956 [10:25:27]quantity*price = 60003 [10:25:27]sum+1 = 60004 [10:25:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 146 18.08.2024 10:25 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260588 ФПД: 244760978452417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T102531&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260588&fm=244760978452417&tin=02508201610067®Number=0000000000091865&sum=60000 [10:25:28]StoreToDocumentArchive [10:25:28]shift 449 fd 260588 [10:25:28]save to /storage/0449/doc_00260588 [10:25:28]save last doc name /storage/0449/doc_00260588 to /storage/kkm_last_doc_name [10:25:28]save OK [10:25:28]Clear old archive folders... [10:25:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:25:28]tlvbuf is 004A43D0 [10:25:28]SAM_PROTO_ClearQueue [10:25:28]wFMCommunicate request_size=4 [10:25:28]MH_SAM_APDU [10:25:28]CAPDU: 80 09 00 00 [10:25:28]Write to MH i2c: E2 08 00 5C 65 80 09 00 00 00 00 00 00 33 [10:25:28]Write i2c OK [10:25:28]MH_I2C_Read... [10:25:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:28]Read from MH i2c: E2 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: E2 03 00 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: E2 03 00 5C 65 00 90 00 35 [10:25:28]RAPDU: 90 00 [10:25:28]wFMCommunicate OK [10:25:28]SAM_PROTO_ClearQueue done [10:25:28]KKMCreateOFDPacket [10:25:28]OFDProtocolAddRootSTLVToBuf [10:25:28]FM_MakeSignedData [10:25:28]FM_MakeSignedData [10:25:28]SAM_PROTO_SignData [10:25:28]wFMCommunicate request_size=4 [10:25:28]MH_SAM_APDU [10:25:28]CAPDU: 80 0D 01 02 [10:25:28]Write to MH i2c: E2 08 00 5D 65 80 0D 01 02 00 00 00 00 3B [10:25:28]Write i2c OK [10:25:28]MH_I2C_Read... [10:25:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:28]Read from MH i2c: E2 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: E2 03 00 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: E2 03 00 5D 65 00 90 00 36 [10:25:28]RAPDU: 90 00 [10:25:28]wFMCommunicate OK [10:25:28]wFMCommunicate request_size=255 [10:25:28]MH_SAM_APDU [10:25: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 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 1B CC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EC F9 03 00 35 04 06 00 DE [10:25:28]Write to MH i2c: E2 02 01 5E 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 1B CC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EC F9 03 00 35 04 06 00 DE 00 00 A7 [10:25:28]Write i2c OK [10:25:28]MH_I2C_Read... [10:25:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:28]Read from MH i2c: E2 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: E2 03 00 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: E2 03 00 5E 65 00 90 00 37 [10:25:28]RAPDU: 90 00 [10:25:28]wFMCommunicate OK [10:25:28]wFMCommunicate request_size=10 [10:25:28]MH_SAM_APDU [10:25:28]CAPDU: 80 0D 02 02 05 9B DB 2C EF C1 [10:25:28]Write to MH i2c: E2 0D 00 5F 65 80 0D 02 02 05 00 9B DB 2C EF C1 00 00 9A [10:25:28]Write i2c OK [10:25:28]MH_I2C_Read... [10:25:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:28]Read from MH i2c: E2 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: E2 03 00 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: E2 03 00 5F 65 00 90 00 38 [10:25:28]RAPDU: 90 00 [10:25:28]wFMCommunicate OK [10:25:28]wFMCommunicate request_size=4 [10:25:28]MH_SAM_APDU [10:25:28]CAPDU: 80 0D 03 02 [10:25:28]Write to MH i2c: E2 08 00 60 65 80 0D 03 02 00 00 00 00 40 [10:25:28]Write i2c OK [10:25:28]MH_I2C_Read... [10:25:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:28]Read from MH i2c: E2 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: E2 0B 00 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: E2 0B 00 60 65 00 60 CC 27 71 1B 94 4B 62 90 00 61 [10:25:28]RAPDU: 60 CC 27 71 1B 94 4B 62 90 00 [10:25:28]wFMCommunicate OK [10:25:28]SAM_PROTO_SignData done [10:25:28]FM_MakeSignedData done [10:25:28]CreateOFDProtocolMessage [10:25:28]wFMCommunicate request_size=4 [10:25:28]MH_SAM_APDU [10:25:28]CAPDU: 80 11 00 00 [10:25:28]Write to MH i2c: E2 08 00 61 65 80 11 00 00 00 00 00 00 40 [10:25:28]Write i2c OK [10:25:28]MH_I2C_Read... [10:25:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:28]Read from MH i2c: E2 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: E2 17 00 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: E2 17 00 61 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 8D [10:25:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:25:28]wFMCommunicate OK [10:25:28]CreateOFDProtocolMessage done [10:25:28]OFDSenderStorePacket 260588 [10:25:28]StoreOFDPacket docnum=260588 [10:25:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 5B E1 07 01 55 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 1B CC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EC F9 03 00 35 04 06 00 DE 9B DB 2C EF C1 60 CC 27 71 1B 94 4B 62 [10:25:28]CheckFolder [10:25:28]dirname=/storage/ofd_packets [10:25:28]CheckFolder done [10:25:28]ProducePacketName [10:25:28]name=ofd_packets/00260588 [10:25:28]NVStorageSaveData ofd_packets/00260588 [10:25:28]File name is /storage/ofd_packets/00260588 [10:25:28]Write 301 bytes [10:25:28]NVStorageSaveData done [10:25:28]OFDSenderStorePacket done [10:25:28]KKMCreateOFDPacket done [10:25:28]NVStorageSaveData kkm_last_timestamp [10:25:28]File name is /storage/kkm_last_timestamp [10:25:28]Write 4 bytes [10:25:28]NVStorageSaveData done [10:25:28]ExternCall_PrintAddStr [10:25:28]wPrintStart [10:25:28]Write to MH i2c: 01 00 00 62 65 C7 [10:25:28]Write i2c OK [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: 01 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: 01 07 00 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: 01 07 00 62 65 00 00 00 00 00 FF 0F DC [10:25:28]RasterBufferAndPrint [10:25:28]line Счет N : (1)1036134 [10:25:28]line ИНН: 02508201610067 [10:25:28]line Контрольно-Кассовый Чек [10:25:28]line ПРОДАЖА [10:25:28]line ТРК (МРК, ГНК) : 42 [10:25:28]line Товар: 2710124130 [10:25:28]line Аи-92-К-5 [10:25:28]line 8.850 * 67.80 [10:25:28]line = 600.03 [10:25:28]line НДС 12% НСП 1% [10:25:28]line > о реализуемом товаре [10:25:28]line ОКРУГЛЕНИЕ: -0.03 [10:25:28]line ИТОГО: 600.00 [10:25:28]line Внесено: 600.00 [10:25:28]line СДАЧА: 0.00 [10:25:28]line НСП 1% : 5.31 [10:25:28]line НДС 12% : 63.72 [10:25:28]line Наличными: 600.00 [10:25:28]line Безнал.: 0.00 [10:25:28]line Место: АЗС № 94 "Партнер Нефть" [10:25:28]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [10:25:28]line СНО: Общий режим [10:25:28]line Чек 146 18.08.2024 10:25 [10:25:28]line Смена: 449 ФФД: 1.0 [10:25:28]line ЗНМ: 0300000099 [10:25:28]line РНМ: 0000000000091865 [10:25:28]line Версия ККМ: 001 [10:25:28]line ФМ: 0000000000871820 [10:25:28]line ФД: 260588 [10:25:28]line ФПД: 244760978452417 [10:25:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T102531&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260588&fm=244760978452417&tin=02508201610067®Number=0000000000091865&sum=60000 [10:25:28]written 0, free lines is 4095 [10:25:28]OFD Sender: Processing packet 260588 [packets to send 192, broken 191] [10:25:28]ProducePacketName [10:25:28]name=ofd_packets/00260588 [10:25:28]OFD Sender: To server: pG, [10:25:28]CommunicateWithHost lk.salyk.kg:30040 [10:25:28]ConnectInit lk.salyk.kg [10:25:28]Connected sock=10 [10:25: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 30 0F 01 00 00 5B E1 07 01 55 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 1B CC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EC F9 03 00 35 04 06 00 DE 9B DB 2C EF C1 60 CC 27 71 1B 94 4B 62 [10:25: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 30 4F 00 00 00 66 86 47 00 FB 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 30 10 04 04 00 EC F9 03 00 F4 03 04 00 70 75 C1 66 B6 04 01 00 00 84 17 F9 A0 06 6D C1 98 [10:25:29]CommunicateWithHost err = 0 [10:25:29]CheckOFDResponse [10:25:29]1017 (14) - 77093643461234 [10:25:29]1041 (16) - 0000000000871820 [10:25:29]1040 (4) - 260588 [10:25:29]1012 (4) - 18.08.2024 04:15 [10:25:29]1206 (1) - 0 [10:25:29]OFD Sender: Remove packet 260588 [10:25:29]ProducePacketName [10:25:29]name=ofd_packets/00260588 [10:25:29]NVStorageDeleteData [10:25:29]Write to MH i2c: 01 00 00 8D 65 F2 [10:25:29]Write i2c OK [10:25:29]MH_I2C_Read... [10:25:29]Read from MH i2c: 01 [10:25:29]MH_I2C_Read... [10:25:29]Read from MH i2c: 01 07 00 [10:25:29]MH_I2C_Read... [10:25:29]Read from MH i2c: 01 07 00 8D 65 00 00 00 00 00 6F 0C 74 [10:25:29]RasterBufferAndPrint [10:25:29]line [10:25:29]line [10:25:29]line [10:25:29]line [10:25:29]line [10:25:29]written 0, free lines is 3186 [10:25:29]MH_Cut [10:25:29]Write to MH i2c: D1 01 00 94 65 01 CB [10:25:29]Write i2c OK [10:25:29]MH_I2C_Read... [10:25:29]Read from MH i2c: D1 [10:25:29]MH_I2C_Read... [10:25:29]Read from MH i2c: D1 01 00 [10:25:29]MH_I2C_Read... [10:25:29]Read from MH i2c: D1 01 00 94 65 00 CA [10:25:29]Write to MH i2c: 01 00 00 95 65 FA [10:25:29]Write i2c OK [10:25:29]MH_I2C_Read... [10:25:29]OFD Sender: No OFD packet to send [10:25:30]*** Cut start [10:25:30]*** Purtial cut [10:25:30]*** Stage 1: CUTSNS_PIN = 1 [10:25:32]Read from MH i2c: 01 [10:25:32]MH_I2C_Read... [10:25:32]*** Stop cut motor [10:25:32]*** Cut end [10:25:32]Read from MH i2c: 01 07 00 [10:25:32]MH_I2C_Read... [10:25:32]Read from MH i2c: 01 07 00 95 65 00 00 00 00 00 FF 0F 0F [10:25:32]process_action close_receipt done [10:25:32]requested_data is exist [10:25:32]produce_requested_data [10:25:32]requested_item fm.sn is exist - process it [10:25:32]wFMCommunicate request_size=4 [10:25:32]MH_SAM_APDU [10:25:32]CAPDU: 80 11 00 00 [10:25:32]Write to MH i2c: E2 08 00 96 65 80 11 00 00 00 00 00 00 75 [10:25:32]Write i2c OK [10:25:32]MH_I2C_Read... [10:25:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:32]Read from MH i2c: E2 [10:25:32]MH_I2C_Read... [10:25:32]Read from MH i2c: E2 17 00 [10:25:32]MH_I2C_Read... [10:25:32]Read from MH i2c: E2 17 00 96 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C2 [10:25:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:25:32]wFMCommunicate OK [10:25:32]requested_item fd.num is exist - process it [10:25:32]SAM_PROTO_GetFieldsCounters [10:25:32]wFMCommunicate request_size=4 [10:25:32]MH_SAM_APDU [10:25:32]CAPDU: 80 13 00 00 [10:25:32]Write to MH i2c: E2 08 00 97 65 80 13 00 00 00 00 00 00 78 [10:25:32]Write i2c OK [10:25:32]MH_I2C_Read... [10:25:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:32]Read from MH i2c: E2 [10:25:32]MH_I2C_Read... [10:25:32]Read from MH i2c: E2 62 00 [10:25:32]MH_I2C_Read... [10:25:32]Read from MH i2c: E2 62 00 97 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 EC F9 03 00 0E 04 04 00 C1 01 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 F7 [10:25: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 EC F9 03 00 0E 04 04 00 C1 01 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 [10:25:32]wFMCommunicate OK [10:25:32]SAM_PROTO_GetFieldsCounters done [10:25:32]requested_item shift.num is exist - process it [10:25:32]requested_item shift.opened is exist - process it [10:25:32]req_shift_opened [10:25:32]FM_GetShiftState [10:25:32]SAM_PROTO_GetShiftState [10:25:32]wFMCommunicate request_size=4 [10:25:32]MH_SAM_APDU [10:25:32]CAPDU: 80 13 01 00 [10:25:32]Write to MH i2c: E2 08 00 98 65 80 13 01 00 00 00 00 00 7A [10:25:32]Write i2c OK [10:25:32]MH_I2C_Read... [10:25:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:32]Read from MH i2c: E2 [10:25:32]MH_I2C_Read... [10:25:32]Read from MH i2c: E2 0E 00 [10:25:32]MH_I2C_Read... [10:25:32]Read from MH i2c: E2 0E 00 98 65 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B7 [10:25:32]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:25:32]wFMCommunicate OK [10:25:32]SAM_PROTO_GetShiftState done [10:25:32]FM_GetShiftState done [10:25:32]req_shift_opened done [10:25:32]requested_item shift.open_date is exist - process it [10:25:32]req_shift_open_date [10:25:32]req_shift_open_date done [10:25:32]produce_requested_data done [10:25:32]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260588,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [10:25:32]process_action_free close_receipt [10:25:32]json_value_free [10:25:32]json_value_free done [10:25:32]process_json_proto returns [10:25:32]Send response to host [10:25:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260588,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [10:25:32]free response buf [10:25:32]execute_script done [10:25:32]execute_script returns [10:25:32]free content buf [10:25:32]Sock 9.Close socket [10:25:32]Sock 9.Thread stoped [10:25:32]accept exits with 7 [10:25:32]New connection [10:25:32]New thread 3066617188 created [10:25:32]Thread 3066473828 joined [10:25:32]Waiting for new connection... [10:25:32] Sock 7.Parse request [10:25:32]Sock 7.Check first char [10:25:32]Sock 7.First char is OK [10:25:32]request: POST /json_proto HTTP/1.0 [10:25:32]Method: POST [10:25:32]URL: /json_proto [10:25:32]Method is POST - this is cgi request [10:25:32]url: /json_proto [10:25:32]query_string will be loaded in cgi processing [10:25:32]execute_cgi json_proto POST (null) [10:25:32]execute_cgi path=json_proto method=POST [10:25:32]POST find Content-Length [10:25:32]Host: 172.17.55.133:8080 [10:25:32]Content-Length: 804 [10:25:32]Content-Type: application/json [10:25:32] [10:25:32]POST finish read [10:25:32]Found Content-Length = 804 [10:25:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:32]execute_script... [10:25: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)1036132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:32]POST & json_proto [10:25:32]process_json_proto [10:25:32]json parsed OK: [10:25:32]protocol is kg_v1.0 [10:25:32]action value=close_receipt [10:25:32]process_action close_receipt [10:25:32]cmd_close_receipt [10:25:32]MH_GetDate [10:25:32]Write to MH i2c: F0 00 00 99 65 ED [10:25:32]Write i2c OK [10:25:32]MH_I2C_Read... [10:25:32]Read from MH i2c: F0 [10:25:32]MH_I2C_Read... [10:25:32]Read from MH i2c: F0 09 00 [10:25:32]MH_I2C_Read... [10:25:32]Read from MH i2c: F0 09 00 99 65 00 21 CC C1 66 34 48 D8 65 C3 [10:25:32]GetLastDocTimeStamp 1723976731 [10:25:32]current date 1723976737 [10:25:32]FM_GetShiftState [10:25:32]SAM_PROTO_GetShiftState [10:25:32]wFMCommunicate request_size=4 [10:25:32]MH_SAM_APDU [10:25:32]CAPDU: 80 13 01 00 [10:25:32]Write to MH i2c: E2 08 00 9A 65 80 13 01 00 00 00 00 00 7C [10:25:32]Write i2c OK [10:25:32]MH_I2C_Read... [10:25:32]Read from MH i2c: E2 [10:25:32]MH_I2C_Read... [10:25:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:32]Read from MH i2c: E2 0E 00 [10:25:32]MH_I2C_Read... [10:25:32]Read from MH i2c: E2 0E 00 9A 65 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B9 [10:25:32]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:25:32]wFMCommunicate OK [10:25:32]SAM_PROTO_GetShiftState done [10:25:32]FM_GetShiftState done [10:25:32]opened in 1723940556 [10:25:32]opened+sec_in_day 1724026956 [10:25:32]quantity*price = 100005 [10:25:32]sum+1 = 100006 [10:25:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 147 18.08.2024 10:25 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260589 ФПД: 93979023999894 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T102537&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260589&fm=93979023999894&tin=02508201610067®Number=0000000000091865&sum=100005 [10:25:34]StoreToDocumentArchive [10:25:34]shift 449 fd 260589 [10:25:34]save to /storage/0449/doc_00260589 [10:25:34]save last doc name /storage/0449/doc_00260589 to /storage/kkm_last_doc_name [10:25:34]save OK [10:25:34]Clear old archive folders... [10:25:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:25:34]tlvbuf is 0050CB70 [10:25:34]SAM_PROTO_ClearQueue [10:25:34]wFMCommunicate request_size=4 [10:25:34]MH_SAM_APDU [10:25:34]CAPDU: 80 09 00 00 [10:25:34]Write to MH i2c: E2 08 00 A7 65 80 09 00 00 00 00 00 00 7E [10:25:34]Write i2c OK [10:25:34]MH_I2C_Read... [10:25:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:34]Read from MH i2c: E2 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: E2 03 00 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: E2 03 00 A7 65 00 90 00 80 [10:25:34]RAPDU: 90 00 [10:25:34]wFMCommunicate OK [10:25:34]SAM_PROTO_ClearQueue done [10:25:34]KKMCreateOFDPacket [10:25:34]OFDProtocolAddRootSTLVToBuf [10:25:34]FM_MakeSignedData [10:25:34]FM_MakeSignedData [10:25:34]SAM_PROTO_SignData [10:25:34]wFMCommunicate request_size=4 [10:25:34]MH_SAM_APDU [10:25:34]CAPDU: 80 0D 01 02 [10:25:34]Write to MH i2c: E2 08 00 A8 65 80 0D 01 02 00 00 00 00 86 [10:25:34]Write i2c OK [10:25:34]MH_I2C_Read... [10:25:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:34]Read from MH i2c: E2 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: E2 03 00 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: E2 03 00 A8 65 00 90 00 81 [10:25:34]RAPDU: 90 00 [10:25:34]wFMCommunicate OK [10:25:34]wFMCommunicate request_size=255 [10:25:34]MH_SAM_APDU [10:25:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 21 CC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 ED F9 03 00 35 04 06 00 55 [10:25:34]Write to MH i2c: E2 02 01 A9 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 21 CC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 ED F9 03 00 35 04 06 00 55 00 00 43 [10:25:34]Write i2c OK [10:25:34]MH_I2C_Read... [10:25:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:34]OFD Sender: No OFD packet to send [10:25:34]Read from MH i2c: E2 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: E2 03 00 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: E2 03 00 A9 65 00 90 00 82 [10:25:34]RAPDU: 90 00 [10:25:34]wFMCommunicate OK [10:25:34]wFMCommunicate request_size=10 [10:25:34]MH_SAM_APDU [10:25:34]CAPDU: 80 0D 02 02 05 79 32 57 83 96 [10:25:34]Write to MH i2c: E2 0D 00 AA 65 80 0D 02 02 05 00 79 32 57 83 96 00 00 AE [10:25:34]Write i2c OK [10:25:34]MH_I2C_Read... [10:25:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:34]Read from MH i2c: E2 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: E2 03 00 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: E2 03 00 AA 65 00 90 00 83 [10:25:34]RAPDU: 90 00 [10:25:34]wFMCommunicate OK [10:25:34]wFMCommunicate request_size=4 [10:25:34]MH_SAM_APDU [10:25:34]CAPDU: 80 0D 03 02 [10:25:34]Write to MH i2c: E2 08 00 AB 65 80 0D 03 02 00 00 00 00 8B [10:25:34]Write i2c OK [10:25:34]MH_I2C_Read... [10:25:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:34]Read from MH i2c: E2 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: E2 0B 00 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: E2 0B 00 AB 65 00 A1 FB 02 A1 8F 51 86 5C 90 00 8D [10:25:34]RAPDU: A1 FB 02 A1 8F 51 86 5C 90 00 [10:25:34]wFMCommunicate OK [10:25:34]SAM_PROTO_SignData done [10:25:34]FM_MakeSignedData done [10:25:34]CreateOFDProtocolMessage [10:25:34]wFMCommunicate request_size=4 [10:25:34]MH_SAM_APDU [10:25:34]CAPDU: 80 11 00 00 [10:25:34]Write to MH i2c: E2 08 00 AC 65 80 11 00 00 00 00 00 00 8B [10:25:34]Write i2c OK [10:25:34]MH_I2C_Read... [10:25:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:34]Read from MH i2c: E2 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: E2 17 00 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: E2 17 00 AC 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D8 [10:25:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:25:34]wFMCommunicate OK [10:25:34]CreateOFDProtocolMessage done [10:25:34]OFDSenderStorePacket 260589 [10:25:34]StoreOFDPacket docnum=260589 [10:25:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 A8 4B 07 01 28 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 21 CC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 ED F9 03 00 35 04 06 00 55 79 32 57 83 96 A1 FB 02 A1 8F 51 86 5C [10:25:34]CheckFolder [10:25:34]dirname=/storage/ofd_packets [10:25:34]CheckFolder done [10:25:34]ProducePacketName [10:25:34]name=ofd_packets/00260589 [10:25:34]NVStorageSaveData ofd_packets/00260589 [10:25:34]File name is /storage/ofd_packets/00260589 [10:25:34]Write 301 bytes [10:25:34]NVStorageSaveData done [10:25:34]OFDSenderStorePacket done [10:25:34]KKMCreateOFDPacket done [10:25:34]NVStorageSaveData kkm_last_timestamp [10:25:34]File name is /storage/kkm_last_timestamp [10:25:34]Write 4 bytes [10:25:35]NVStorageSaveData done [10:25:35]ExternCall_PrintAddStr [10:25:35]wPrintStart [10:25:35]Write to MH i2c: 01 00 00 AD 65 12 [10:25:35]OFD Sender: Processing packet 260589 [packets to send 192, broken 191] [10:25:35]ProducePacketName [10:25:35]name=ofd_packets/00260589 [10:25:35]OFD Sender: To server: pG, [10:25:35]CommunicateWithHost lk.salyk.kg:30040 [10:25:35]ConnectInit lk.salyk.kg [10:25:35]Write i2c OK [10:25:35]MH_I2C_Read... [10:25:35]Read from MH i2c: 01 [10:25:35]MH_I2C_Read... [10:25:35]Read from MH i2c: 01 07 00 [10:25:35]MH_I2C_Read... [10:25:35]Read from MH i2c: 01 07 00 AD 65 00 00 00 00 00 FF 0F 27 [10:25:35]RasterBufferAndPrint [10:25:35]line Счет N : (1)1036132 [10:25:35]line ИНН: 02508201610067 [10:25:35]line Контрольно-Кассовый Чек [10:25:35]line ПРОДАЖА [10:25:35]line ТРК (МРК, ГНК) : 32 [10:25:35]line Товар: 2710124130 [10:25:35]line Аи-92-К-5 [10:25:35]line 14.750 * 67.80 [10:25:35]line = 1000.05 [10:25:35]line НДС 12% НСП 1% [10:25:35]line > о реализуемом товаре [10:25:35]line ИТОГО: 1000.05 [10:25:35]line НСП 1% : 8.85 [10:25:35]line НДС 12% : 106.20 [10:25:35]line Наличными: 0.00 [10:25:35]line Безнал.: 1000.05 [10:25:35]line Место: АЗС № 94 "Партнер Нефть" [10:25:35]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [10:25:35]line СНО: Общий режим [10:25:35]line Чек 147 18.08.2024 10:25 [10:25:35]line Смена: 449 ФФД: 1.0 [10:25:35]line ЗНМ: 0300000099 [10:25:35]line РНМ: 0000000000091865 [10:25:35]line Версия ККМ: 001 [10:25:35]line Платежная система: O! деньги [10:25:35]line ФМ: 0000000000871820 [10:25:35]line ФД: 260589 [10:25:35]line ФПД: 93979023999894 [10:25:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T102537&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260589&fm=93979023999894&tin=02508201610067®Number=0000000000091865&sum=100005 [10:25:35]written 0, free lines is 4095 [10:25:35]Connected sock=10 [10:25: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 30 0F 01 00 00 A8 4B 07 01 28 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 21 CC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 ED F9 03 00 35 04 06 00 55 79 32 57 83 96 A1 FB 02 A1 8F 51 86 5C [10:25: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 30 4F 00 00 00 0E F6 47 00 E2 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 30 10 04 04 00 ED F9 03 00 F4 03 04 00 76 75 C1 66 B6 04 01 00 00 3B 1D 24 82 B2 AF 6C 51 [10:25:35]CommunicateWithHost err = 0 [10:25:35]CheckOFDResponse [10:25:35]1017 (14) - 77093643461234 [10:25:35]1041 (16) - 0000000000871820 [10:25:35]1040 (4) - 260589 [10:25:35]1012 (4) - 18.08.2024 04:15 [10:25:35]1206 (1) - 0 [10:25:35]OFD Sender: Remove packet 260589 [10:25:35]ProducePacketName [10:25:35]name=ofd_packets/00260589 [10:25:35]NVStorageDeleteData [10:25:35]Write to MH i2c: 01 00 00 D7 65 3C [10:25:35]Write i2c OK [10:25:35]MH_I2C_Read... [10:25:35]Read from MH i2c: 01 [10:25:35]MH_I2C_Read... [10:25:35]Read from MH i2c: 01 07 00 [10:25:35]MH_I2C_Read... [10:25:35]Read from MH i2c: 01 07 00 D7 65 00 00 00 00 00 8A 0C D9 [10:25:35]RasterBufferAndPrint [10:25:35]line [10:25:35]line [10:25:35]line [10:25:35]line [10:25:35]line [10:25:35]written 0, free lines is 3217 [10:25:35]MH_Cut [10:25:35]Write to MH i2c: D1 01 00 DE 65 01 15 [10:25:35]Write i2c OK [10:25:35]MH_I2C_Read... [10:25:35]Read from MH i2c: D1 [10:25:35]MH_I2C_Read... [10:25:35]Read from MH i2c: D1 01 00 [10:25:35]MH_I2C_Read... [10:25:35]Read from MH i2c: D1 01 00 DE 65 00 14 [10:25:35]Write to MH i2c: 01 00 00 DF 65 44 [10:25:35]Write i2c OK [10:25:35]MH_I2C_Read... [10:25:36]OFD Sender: No OFD packet to send [10:25:36]*** Cut start [10:25:36]*** Purtial cut [10:25:36]*** Stage 1: CUTSNS_PIN = 1 [10:25:38]Read from MH i2c: 01 [10:25:38]MH_I2C_Read... [10:25:38]*** Stop cut motor [10:25:38]*** Cut end [10:25:38]Read from MH i2c: 01 07 00 [10:25:38]MH_I2C_Read... [10:25:38]Read from MH i2c: 01 07 00 DF 65 00 00 00 00 00 FF 0F 59 [10:25:38]process_action close_receipt done [10:25:38]requested_data is exist [10:25:38]produce_requested_data [10:25:38]requested_item fm.sn is exist - process it [10:25:38]wFMCommunicate request_size=4 [10:25:38]MH_SAM_APDU [10:25:38]CAPDU: 80 11 00 00 [10:25:38]Write to MH i2c: E2 08 00 E0 65 80 11 00 00 00 00 00 00 BF [10:25:38]Write i2c OK [10:25:38]MH_I2C_Read... [10:25:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:38]Read from MH i2c: E2 [10:25:38]MH_I2C_Read... [10:25:38]Read from MH i2c: E2 17 00 [10:25:38]MH_I2C_Read... [10:25:38]Read from MH i2c: E2 17 00 E0 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 0C [10:25:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:25:38]wFMCommunicate OK [10:25:38]requested_item fd.num is exist - process it [10:25:38]SAM_PROTO_GetFieldsCounters [10:25:38]wFMCommunicate request_size=4 [10:25:38]MH_SAM_APDU [10:25:38]CAPDU: 80 13 00 00 [10:25:38]Write to MH i2c: E2 08 00 E1 65 80 13 00 00 00 00 00 00 C2 [10:25:38]Write i2c OK [10:25:38]MH_I2C_Read... [10:25:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:39]Read from MH i2c: E2 [10:25:39]MH_I2C_Read... [10:25:39]Read from MH i2c: E2 62 00 [10:25:39]MH_I2C_Read... [10:25:39]Read from MH i2c: E2 62 00 E1 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 ED F9 03 00 0E 04 04 00 C1 01 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 45 [10:25: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 ED F9 03 00 0E 04 04 00 C1 01 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 [10:25:39]wFMCommunicate OK [10:25:39]SAM_PROTO_GetFieldsCounters done [10:25:39]requested_item shift.num is exist - process it [10:25:39]requested_item shift.opened is exist - process it [10:25:39]req_shift_opened [10:25:39]FM_GetShiftState [10:25:39]SAM_PROTO_GetShiftState [10:25:39]wFMCommunicate request_size=4 [10:25:39]MH_SAM_APDU [10:25:39]CAPDU: 80 13 01 00 [10:25:39]Write to MH i2c: E2 08 00 E2 65 80 13 01 00 00 00 00 00 C4 [10:25:39]Write i2c OK [10:25:39]MH_I2C_Read... [10:25:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:39]Read from MH i2c: E2 [10:25:39]MH_I2C_Read... [10:25:39]Read from MH i2c: E2 0E 00 [10:25:39]MH_I2C_Read... [10:25:39]Read from MH i2c: E2 0E 00 E2 65 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 01 [10:25:39]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:25:39]wFMCommunicate OK [10:25:39]SAM_PROTO_GetShiftState done [10:25:39]FM_GetShiftState done [10:25:39]req_shift_opened done [10:25:39]requested_item shift.open_date is exist - process it [10:25:39]req_shift_open_date [10:25:39]req_shift_open_date done [10:25:39]produce_requested_data done [10:25:39]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260589,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [10:25:39]process_action_free close_receipt [10:25:39]json_value_free [10:25:39]json_value_free done [10:25:39]process_json_proto returns [10:25:39]Send response to host [10:25:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260589,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [10:25:39]free response buf [10:25:39]execute_script done [10:25:39]execute_script returns [10:25:39]free content buf [10:25:39]Sock 7.Close socket [10:25:39]Sock 7.Thread stoped [10:25:41]OFD Sender: No OFD packet to send [10:25:46]OFD Sender: No OFD packet to send [10:25:51]OFD Sender: No OFD packet to send [10:25:56]OFD Sender: No OFD packet to send [10:26:01]OFD Sender: No OFD packet to send [10:26:06]OFD Sender: No OFD packet to send [10:26:11]OFD Sender: No OFD packet to send [10:26:16]OFD Sender: No OFD packet to send [10:26:21]OFD Sender: No OFD packet to send [10:26:26]OFD Sender: No OFD packet to send [10:26:31]OFD Sender: No OFD packet to send [10:26:36]OFD Sender: No OFD packet to send [10:26:41]OFD Sender: No OFD packet to send [10:26:46]OFD Sender: No OFD packet to send [10:26:51]OFD Sender: No OFD packet to send [10:26:56]OFD Sender: No OFD packet to send [10:27:01]OFD Sender: No OFD packet to send [10:27:06]OFD Sender: No OFD packet to send [10:27:11]OFD Sender: No OFD packet to send [10:27:16]OFD Sender: No OFD packet to send [10:27:21]OFD Sender: No OFD packet to send [10:27:26]OFD Sender: No OFD packet to send [10:27:31]OFD Sender: No OFD packet to send [10:27:36]OFD Sender: No OFD packet to send [10:27:41]OFD Sender: No OFD packet to send [10:27:46]OFD Sender: No OFD packet to send [10:27:51]OFD Sender: No OFD packet to send [10:27:56]OFD Sender: No OFD packet to send [10:28:00]accept exits with 9 [10:28:00]New connection [10:28:00]New thread 3066473828 created [10:28:00]Thread 3066617188 joined [10:28:00]Waiting for new connection... [10:28:00] Sock 9.Parse request [10:28:00]Sock 9.Check first char [10:28:00]Sock 9.First char is OK [10:28:00]request: POST /json_proto HTTP/1.0 [10:28:00]Method: POST [10:28:00]URL: /json_proto [10:28:00]Method is POST - this is cgi request [10:28:00]url: /json_proto [10:28:00]query_string will be loaded in cgi processing [10:28:00]execute_cgi json_proto POST (null) [10:28:00]execute_cgi path=json_proto method=POST [10:28:00]POST find Content-Length [10:28:00]Host: 172.17.55.133:8080 [10:28:00]Content-Length: 678 [10:28:00]Content-Type: application/json [10:28:00] [10:28:00]POST finish read [10:28:00]Found Content-Length = 678 [10:28:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:00]execute_script... [10:28: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)1036136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:00]POST & json_proto [10:28:00]process_json_proto [10:28:00]json parsed OK: [10:28:00]protocol is kg_v1.0 [10:28:00]action value=close_receipt [10:28:00]process_action close_receipt [10:28:00]cmd_close_receipt [10:28:00]MH_GetDate [10:28:00]Write to MH i2c: F0 00 00 E3 65 37 [10:28:00]Write i2c OK [10:28:00]MH_I2C_Read... [10:28:00]Read from MH i2c: F0 [10:28:00]MH_I2C_Read... [10:28:00]Read from MH i2c: F0 09 00 [10:28:00]MH_I2C_Read... [10:28:00]Read from MH i2c: F0 09 00 E3 65 00 B4 CC C1 66 34 48 D8 65 A0 [10:28:00]GetLastDocTimeStamp 1723976737 [10:28:00]current date 1723976884 [10:28:00]FM_GetShiftState [10:28:00]SAM_PROTO_GetShiftState [10:28:00]wFMCommunicate request_size=4 [10:28:00]MH_SAM_APDU [10:28:00]CAPDU: 80 13 01 00 [10:28:00]Write to MH i2c: E2 08 00 E4 65 80 13 01 00 00 00 00 00 C6 [10:28:00]Write i2c OK [10:28:00]MH_I2C_Read... [10:28:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:00]Read from MH i2c: E2 [10:28:00]MH_I2C_Read... [10:28:00]Read from MH i2c: E2 0E 00 [10:28:00]MH_I2C_Read... [10:28:00]Read from MH i2c: E2 0E 00 E4 65 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 03 [10:28:00]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:28:00]wFMCommunicate OK [10:28:00]SAM_PROTO_GetShiftState done [10:28:00]FM_GetShiftState done [10:28:00]opened in 1723940556 [10:28:00]opened+sec_in_day 1724026956 [10:28:00]quantity*price = 50036 [10:28:00]sum+1 = 50037 [10:28:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 148 18.08.2024 10:28 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260590 ФПД: 22363671073747 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T102804&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260590&fm=22363671073747&tin=02508201610067®Number=0000000000091865&sum=50000 [10:28:01]StoreToDocumentArchive [10:28:01]shift 449 fd 260590 [10:28:01]save to /storage/0449/doc_00260590 [10:28:01]save last doc name /storage/0449/doc_00260590 to /storage/kkm_last_doc_name [10:28:01]save OK [10:28:01]Clear old archive folders... [10:28:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:28:01]tlvbuf is 004A24C0 [10:28:01]SAM_PROTO_ClearQueue [10:28:01]wFMCommunicate request_size=4 [10:28:01]MH_SAM_APDU [10:28:01]CAPDU: 80 09 00 00 [10:28:01]Write to MH i2c: E2 08 00 F1 65 80 09 00 00 00 00 00 00 C8 [10:28:01]Write i2c OK [10:28:01]MH_I2C_Read... [10:28:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:01]Read from MH i2c: E2 [10:28:01]MH_I2C_Read... [10:28:01]Read from MH i2c: E2 03 00 [10:28:01]MH_I2C_Read... [10:28:01]Read from MH i2c: E2 03 00 F1 65 00 90 00 CA [10:28:01]RAPDU: 90 00 [10:28:01]wFMCommunicate OK [10:28:01]SAM_PROTO_ClearQueue done [10:28:01]KKMCreateOFDPacket [10:28:01]OFDProtocolAddRootSTLVToBuf [10:28:01]FM_MakeSignedData [10:28:01]FM_MakeSignedData [10:28:01]SAM_PROTO_SignData [10:28:01]wFMCommunicate request_size=4 [10:28:01]MH_SAM_APDU [10:28:01]CAPDU: 80 0D 01 02 [10:28:01]Write to MH i2c: E2 08 00 F2 65 80 0D 01 02 00 00 00 00 D0 [10:28:01]Write i2c OK [10:28:01]MH_I2C_Read... [10:28:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:01]Read from MH i2c: E2 [10:28:01]MH_I2C_Read... [10:28:01]Read from MH i2c: E2 03 00 [10:28:01]MH_I2C_Read... [10:28:01]Read from MH i2c: E2 03 00 F2 65 00 90 00 CB [10:28:01]RAPDU: 90 00 [10:28:01]wFMCommunicate OK [10:28:01]wFMCommunicate request_size=255 [10:28:01]MH_SAM_APDU [10:28:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 94 00 00 00 F4 03 04 00 B4 CC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EE F9 03 00 35 04 06 00 14 [10:28:01]Write to MH i2c: E2 02 01 F3 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 94 00 00 00 F4 03 04 00 B4 CC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EE F9 03 00 35 04 06 00 14 00 00 48 [10:28:01]Write i2c OK [10:28:01]MH_I2C_Read... [10:28:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:02]Read from MH i2c: E2 [10:28:02]MH_I2C_Read... [10:28:02]Read from MH i2c: E2 03 00 [10:28:02]MH_I2C_Read... [10:28:02]Read from MH i2c: E2 03 00 F3 65 00 90 00 CC [10:28:02]RAPDU: 90 00 [10:28:02]wFMCommunicate OK [10:28:02]wFMCommunicate request_size=10 [10:28:02]MH_SAM_APDU [10:28:02]CAPDU: 80 0D 02 02 05 56 F2 AB 93 D3 [10:28:02]Write to MH i2c: E2 0D 00 F4 65 80 0D 02 02 05 00 56 F2 AB 93 D3 00 00 36 [10:28:02]Write i2c OK [10:28:02]MH_I2C_Read... [10:28:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:02]Read from MH i2c: E2 [10:28:02]MH_I2C_Read... [10:28:02]Read from MH i2c: E2 03 00 [10:28:02]MH_I2C_Read... [10:28:02]Read from MH i2c: E2 03 00 F4 65 00 90 00 CD [10:28:02]RAPDU: 90 00 [10:28:02]wFMCommunicate OK [10:28:02]wFMCommunicate request_size=4 [10:28:02]MH_SAM_APDU [10:28:02]CAPDU: 80 0D 03 02 [10:28:02]Write to MH i2c: E2 08 00 F5 65 80 0D 03 02 00 00 00 00 D5 [10:28:02]Write i2c OK [10:28:02]MH_I2C_Read... [10:28:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:02]Read from MH i2c: E2 [10:28:02]MH_I2C_Read... [10:28:02]Read from MH i2c: E2 0B 00 [10:28:02]MH_I2C_Read... [10:28:02]Read from MH i2c: E2 0B 00 F5 65 00 DD 4F D2 81 60 31 E9 34 90 00 03 [10:28:02]RAPDU: DD 4F D2 81 60 31 E9 34 90 00 [10:28:02]wFMCommunicate OK [10:28:02]SAM_PROTO_SignData done [10:28:02]FM_MakeSignedData done [10:28:02]CreateOFDProtocolMessage [10:28:02]wFMCommunicate request_size=4 [10:28:02]MH_SAM_APDU [10:28:02]CAPDU: 80 11 00 00 [10:28:02]Write to MH i2c: E2 08 00 F6 65 80 11 00 00 00 00 00 00 D5 [10:28:02]Write i2c OK [10:28:02]MH_I2C_Read... [10:28:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:02]Read from MH i2c: E2 [10:28:02]MH_I2C_Read... [10:28:02]Read from MH i2c: E2 17 00 [10:28:02]MH_I2C_Read... [10:28:02]Read from MH i2c: E2 17 00 F6 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 22 [10:28:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:28:02]wFMCommunicate OK [10:28:02]CreateOFDProtocolMessage done [10:28:02]OFDSenderStorePacket 260590 [10:28:02]StoreOFDPacket docnum=260590 [10:28:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 00 38 07 01 9C 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 94 00 00 00 F4 03 04 00 B4 CC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EE F9 03 00 35 04 06 00 14 56 F2 AB 93 D3 DD 4F D2 81 60 31 E9 34 [10:28:02]CheckFolder [10:28:02]dirname=/storage/ofd_packets [10:28:02]CheckFolder done [10:28:02]ProducePacketName [10:28:02]name=ofd_packets/00260590 [10:28:02]NVStorageSaveData ofd_packets/00260590 [10:28:02]File name is /storage/ofd_packets/00260590 [10:28:02]Write 301 bytes [10:28:02]NVStorageSaveData done [10:28:02]OFDSenderStorePacket done [10:28:02]KKMCreateOFDPacket done [10:28:02]NVStorageSaveData kkm_last_timestamp [10:28:02]File name is /storage/kkm_last_timestamp [10:28:02]Write 4 bytes [10:28:02]NVStorageSaveData done [10:28:02]ExternCall_PrintAddStr [10:28:02]wPrintStart [10:28:02]Write to MH i2c: 01 00 00 F7 65 5C [10:28:02]Write i2c OK [10:28:02]MH_I2C_Read... [10:28:02]Read from MH i2c: 01 [10:28:02]MH_I2C_Read... [10:28:02]Read from MH i2c: 01 07 00 [10:28:02]MH_I2C_Read... [10:28:02]Read from MH i2c: 01 07 00 F7 65 00 00 00 00 00 FF 0F 71 [10:28:02]RasterBufferAndPrint [10:28:02]line Счет N : (1)1036136 [10:28:02]line ИНН: 02508201610067 [10:28:02]line Контрольно-Кассовый Чек [10:28:02]line ПРОДАЖА [10:28:02]line ТРК (МРК, ГНК) : 12 [10:28:02]line Товар: 2710124130 [10:28:02]line Аи-92-К-5 [10:28:02]line 7.380 * 67.80 [10:28:02]line = 500.36 [10:28:02]line НДС 12% НСП 1% [10:28:02]line > о реализуемом товаре [10:28:02]line ОКРУГЛЕНИЕ: -0.36 [10:28:02]line ИТОГО: 500.00 [10:28:02]line Внесено: 500.00 [10:28:02]line СДАЧА: 0.00 [10:28:02]line НСП 1% : 4.43 [10:28:02]line НДС 12% : 53.14 [10:28:02]line Наличными: 500.00 [10:28:02]line Безнал.: 0.00 [10:28:02]line Место: АЗС № 94 "Партнер Нефть" [10:28:02]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [10:28:02]line СНО: Общий режим [10:28:02]line Чек 148 18.08.2024 10:28 [10:28:02]line Смена: 449 ФФД: 1.0 [10:28:02]line ЗНМ: 0300000099 [10:28:02]line РНМ: 0000000000091865 [10:28:02]line Версия ККМ: 001 [10:28:02]line ФМ: 0000000000871820 [10:28:02]line ФД: 260590 [10:28:02]line ФПД: 22363671073747 [10:28:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T102804&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260590&fm=22363671073747&tin=02508201610067®Number=0000000000091865&sum=50000 [10:28:02]written 0, free lines is 4095 [10:28:02]OFD Sender: Processing packet 260590 [packets to send 192, broken 191] [10:28:02]ProducePacketName [10:28:02]name=ofd_packets/00260590 [10:28:02]OFD Sender: To server: pG, [10:28:02]CommunicateWithHost lk.salyk.kg:30040 [10:28:02]ConnectInit lk.salyk.kg [10:28:02]Connected sock=10 [10:28: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 30 0F 01 00 00 00 38 07 01 9C 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 94 00 00 00 F4 03 04 00 B4 CC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EE F9 03 00 35 04 06 00 14 56 F2 AB 93 D3 DD 4F D2 81 60 31 E9 34 [10:28: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 30 4F 00 00 00 6A 61 47 00 29 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 30 10 04 04 00 EE F9 03 00 F4 03 04 00 09 76 C1 66 B6 04 01 00 00 5C 32 12 90 EA 5A 10 13 [10:28:02]CommunicateWithHost err = 0 [10:28:02]CheckOFDResponse [10:28:02]1017 (14) - 77093643461234 [10:28:02]1041 (16) - 0000000000871820 [10:28:02]1040 (4) - 260590 [10:28:02]1012 (4) - 18.08.2024 04:18 [10:28:02]1206 (1) - 0 [10:28:02]OFD Sender: Remove packet 260590 [10:28:02]ProducePacketName [10:28:02]name=ofd_packets/00260590 [10:28:02]NVStorageDeleteData [10:28:02]Write to MH i2c: 01 00 00 22 66 88 [10:28:02]Write i2c OK [10:28:02]MH_I2C_Read... [10:28:02]Read from MH i2c: 01 [10:28:02]MH_I2C_Read... [10:28:02]Read from MH i2c: 01 07 00 [10:28:02]MH_I2C_Read... [10:28:02]Read from MH i2c: 01 07 00 22 66 00 00 00 00 00 6D 0C 08 [10:28:02]RasterBufferAndPrint [10:28:02]line [10:28:02]line [10:28:02]line [10:28:02]line [10:28:02]line [10:28:02]written 0, free lines is 3185 [10:28:02]MH_Cut [10:28:02]Write to MH i2c: D1 01 00 29 66 01 61 [10:28:02]Write i2c OK [10:28:02]MH_I2C_Read... [10:28:02]Read from MH i2c: D1 [10:28:02]MH_I2C_Read... [10:28:02]Read from MH i2c: D1 01 00 [10:28:02]MH_I2C_Read... [10:28:02]Read from MH i2c: D1 01 00 29 66 00 60 [10:28:02]Write to MH i2c: 01 00 00 2A 66 90 [10:28:02]Write i2c OK [10:28:02]MH_I2C_Read... [10:28:03]OFD Sender: No OFD packet to send [10:28:03]*** Cut start [10:28:03]*** Purtial cut [10:28:03]*** Stage 1: CUTSNS_PIN = 1 [10:28:05]Read from MH i2c: 01 [10:28:05]MH_I2C_Read... [10:28:05]*** Stop cut motor [10:28:05]*** Cut end [10:28:05]Read from MH i2c: 01 07 00 [10:28:05]MH_I2C_Read... [10:28:05]Read from MH i2c: 01 07 00 2A 66 00 00 00 00 00 FF 0F A5 [10:28:05]process_action close_receipt done [10:28:05]requested_data is exist [10:28:05]produce_requested_data [10:28:05]requested_item fm.sn is exist - process it [10:28:05]wFMCommunicate request_size=4 [10:28:05]MH_SAM_APDU [10:28:05]CAPDU: 80 11 00 00 [10:28:05]Write to MH i2c: E2 08 00 2B 66 80 11 00 00 00 00 00 00 0B [10:28:05]Write i2c OK [10:28:05]MH_I2C_Read... [10:28:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:05]Read from MH i2c: E2 [10:28:05]MH_I2C_Read... [10:28:05]Read from MH i2c: E2 17 00 [10:28:05]MH_I2C_Read... [10:28:05]Read from MH i2c: E2 17 00 2B 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 58 [10:28:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:28:05]wFMCommunicate OK [10:28:05]requested_item fd.num is exist - process it [10:28:05]SAM_PROTO_GetFieldsCounters [10:28:05]wFMCommunicate request_size=4 [10:28:05]MH_SAM_APDU [10:28:05]CAPDU: 80 13 00 00 [10:28:05]Write to MH i2c: E2 08 00 2C 66 80 13 00 00 00 00 00 00 0E [10:28:05]Write i2c OK [10:28:05]MH_I2C_Read... [10:28:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:06]Read from MH i2c: E2 [10:28:06]MH_I2C_Read... [10:28:06]Read from MH i2c: E2 62 00 [10:28:06]MH_I2C_Read... [10:28:06]Read from MH i2c: E2 62 00 2C 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 EE F9 03 00 0E 04 04 00 C1 01 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 95 [10:28: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 EE F9 03 00 0E 04 04 00 C1 01 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 [10:28:06]wFMCommunicate OK [10:28:06]SAM_PROTO_GetFieldsCounters done [10:28:06]requested_item shift.num is exist - process it [10:28:06]requested_item shift.opened is exist - process it [10:28:06]req_shift_opened [10:28:06]FM_GetShiftState [10:28:06]SAM_PROTO_GetShiftState [10:28:06]wFMCommunicate request_size=4 [10:28:06]MH_SAM_APDU [10:28:06]CAPDU: 80 13 01 00 [10:28:06]Write to MH i2c: E2 08 00 2D 66 80 13 01 00 00 00 00 00 10 [10:28:06]Write i2c OK [10:28:06]MH_I2C_Read... [10:28:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:06]Read from MH i2c: E2 [10:28:06]MH_I2C_Read... [10:28:06]Read from MH i2c: E2 0E 00 [10:28:06]MH_I2C_Read... [10:28:06]Read from MH i2c: E2 0E 00 2D 66 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 4D [10:28:06]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:28:06]wFMCommunicate OK [10:28:06]SAM_PROTO_GetShiftState done [10:28:06]FM_GetShiftState done [10:28:06]req_shift_opened done [10:28:06]requested_item shift.open_date is exist - process it [10:28:06]req_shift_open_date [10:28:06]req_shift_open_date done [10:28:06]produce_requested_data done [10:28:06]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260590,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [10:28:06]process_action_free close_receipt [10:28:06]json_value_free [10:28:06]json_value_free done [10:28:06]process_json_proto returns [10:28:06]Send response to host [10:28:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260590,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [10:28:06]free response buf [10:28:06]execute_script done [10:28:06]execute_script returns [10:28:06]free content buf [10:28:06]Sock 9.Close socket [10:28:06]Sock 9.Thread stoped [10:28:08]OFD Sender: No OFD packet to send [10:28:13]OFD Sender: No OFD packet to send [10:28:18]OFD Sender: No OFD packet to send [10:28:23]OFD Sender: No OFD packet to send [10:28:28]OFD Sender: No OFD packet to send [10:28:33]OFD Sender: No OFD packet to send [10:28:38]OFD Sender: No OFD packet to send [10:28:43]OFD Sender: No OFD packet to send [10:28:48]OFD Sender: No OFD packet to send [10:28:53]OFD Sender: No OFD packet to send [10:28:58]OFD Sender: No OFD packet to send [10:29:03]OFD Sender: No OFD packet to send [10:29:08]OFD Sender: No OFD packet to send [10:29:13]OFD Sender: No OFD packet to send [10:29:18]OFD Sender: No OFD packet to send [10:29:23]OFD Sender: No OFD packet to send [10:29:28]OFD Sender: No OFD packet to send [10:29:33]OFD Sender: No OFD packet to send [10:29:34]accept exits with 7 [10:29:34]New connection [10:29:34]New thread 3066617188 created [10:29:34]Thread 3066473828 joined [10:29:34]Waiting for new connection... [10:29:34] Sock 7.Parse request [10:29:34]Sock 7.Check first char [10:29:34]Sock 7.First char is OK [10:29:34]request: POST /json_proto HTTP/1.0 [10:29:34]Method: POST [10:29:34]URL: /json_proto [10:29:34]Method is POST - this is cgi request [10:29:34]url: /json_proto [10:29:34]query_string will be loaded in cgi processing [10:29:34]execute_cgi json_proto POST (null) [10:29:34]execute_cgi path=json_proto method=POST [10:29:34]POST find Content-Length [10:29:34]Host: 172.17.55.133:8080 [10:29:34]Content-Length: 678 [10:29:34]Content-Type: application/json [10:29:34] [10:29:34]POST finish read [10:29:34]Found Content-Length = 678 [10:29:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:34]execute_script... [10:29: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)1036137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:34]POST & json_proto [10:29:34]process_json_proto [10:29:34]json parsed OK: [10:29:34]protocol is kg_v1.0 [10:29:34]action value=close_receipt [10:29:34]process_action close_receipt [10:29:34]cmd_close_receipt [10:29:34]MH_GetDate [10:29:34]Write to MH i2c: F0 00 00 2E 66 83 [10:29:34]Write i2c OK [10:29:34]MH_I2C_Read... [10:29:34]Read from MH i2c: F0 [10:29:34]MH_I2C_Read... [10:29:34]Read from MH i2c: F0 09 00 [10:29:34]MH_I2C_Read... [10:29:34]Read from MH i2c: F0 09 00 2E 66 00 13 CD C1 66 34 48 D8 65 4C [10:29:34]GetLastDocTimeStamp 1723976884 [10:29:34]current date 1723976979 [10:29:34]FM_GetShiftState [10:29:34]SAM_PROTO_GetShiftState [10:29:34]wFMCommunicate request_size=4 [10:29:34]MH_SAM_APDU [10:29:34]CAPDU: 80 13 01 00 [10:29:34]Write to MH i2c: E2 08 00 2F 66 80 13 01 00 00 00 00 00 12 [10:29:34]Write i2c OK [10:29:34]MH_I2C_Read... [10:29:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:35]Read from MH i2c: E2 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: E2 0E 00 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: E2 0E 00 2F 66 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 4F [10:29:35]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:29:35]wFMCommunicate OK [10:29:35]SAM_PROTO_GetShiftState done [10:29:35]FM_GetShiftState done [10:29:35]opened in 1723940556 [10:29:35]opened+sec_in_day 1724026956 [10:29:35]quantity*price = 30035 [10:29:35]sum+1 = 30036 [10:29:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 149 18.08.2024 10:29 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260591 ФПД: 159110617534888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T102939&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260591&fm=159110617534888&tin=02508201610067®Number=0000000000091865&sum=30000 [10:29:36]StoreToDocumentArchive [10:29:36]shift 449 fd 260591 [10:29:36]save to /storage/0449/doc_00260591 [10:29:36]save last doc name /storage/0449/doc_00260591 to /storage/kkm_last_doc_name [10:29:36]save OK [10:29:36]Clear old archive folders... [10:29:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:29:36]tlvbuf is 0036EF60 [10:29:36]SAM_PROTO_ClearQueue [10:29:36]wFMCommunicate request_size=4 [10:29:36]MH_SAM_APDU [10:29:36]CAPDU: 80 09 00 00 [10:29:36]Write to MH i2c: E2 08 00 3C 66 80 09 00 00 00 00 00 00 14 [10:29:36]Write i2c OK [10:29:36]MH_I2C_Read... [10:29:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:36]Read from MH i2c: E2 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: E2 03 00 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: E2 03 00 3C 66 00 90 00 16 [10:29:36]RAPDU: 90 00 [10:29:36]wFMCommunicate OK [10:29:36]SAM_PROTO_ClearQueue done [10:29:36]KKMCreateOFDPacket [10:29:36]OFDProtocolAddRootSTLVToBuf [10:29:36]FM_MakeSignedData [10:29:36]FM_MakeSignedData [10:29:36]SAM_PROTO_SignData [10:29:36]wFMCommunicate request_size=4 [10:29:36]MH_SAM_APDU [10:29:36]CAPDU: 80 0D 01 02 [10:29:36]Write to MH i2c: E2 08 00 3D 66 80 0D 01 02 00 00 00 00 1C [10:29:36]Write i2c OK [10:29:36]MH_I2C_Read... [10:29:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:36]Read from MH i2c: E2 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: E2 03 00 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: E2 03 00 3D 66 00 90 00 17 [10:29:36]RAPDU: 90 00 [10:29:36]wFMCommunicate OK [10:29:36]wFMCommunicate request_size=255 [10:29:36]MH_SAM_APDU [10:29:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 13 CD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EF F9 03 00 35 04 06 00 90 [10:29:36]Write to MH i2c: E2 02 01 3E 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 13 CD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EF F9 03 00 35 04 06 00 90 00 00 91 [10:29:36]Write i2c OK [10:29:36]MH_I2C_Read... [10:29:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:36]Read from MH i2c: E2 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: E2 03 00 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: E2 03 00 3E 66 00 90 00 18 [10:29:36]RAPDU: 90 00 [10:29:36]wFMCommunicate OK [10:29:36]wFMCommunicate request_size=10 [10:29:36]MH_SAM_APDU [10:29:36]CAPDU: 80 0D 02 02 05 B5 D3 D6 91 A8 [10:29:36]Write to MH i2c: E2 0D 00 3F 66 80 0D 02 02 05 00 B5 D3 D6 91 A8 00 00 C0 [10:29:36]Write i2c OK [10:29:36]MH_I2C_Read... [10:29:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:36]Read from MH i2c: E2 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: E2 03 00 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: E2 03 00 3F 66 00 90 00 19 [10:29:36]RAPDU: 90 00 [10:29:36]wFMCommunicate OK [10:29:36]wFMCommunicate request_size=4 [10:29:36]MH_SAM_APDU [10:29:36]CAPDU: 80 0D 03 02 [10:29:36]Write to MH i2c: E2 08 00 40 66 80 0D 03 02 00 00 00 00 21 [10:29:36]Write i2c OK [10:29:36]MH_I2C_Read... [10:29:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:36]Read from MH i2c: E2 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: E2 0B 00 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: E2 0B 00 40 66 00 9C 87 43 D6 AA FA 6A 72 90 00 DE [10:29:36]RAPDU: 9C 87 43 D6 AA FA 6A 72 90 00 [10:29:36]wFMCommunicate OK [10:29:36]SAM_PROTO_SignData done [10:29:36]FM_MakeSignedData done [10:29:36]CreateOFDProtocolMessage [10:29:36]wFMCommunicate request_size=4 [10:29:36]MH_SAM_APDU [10:29:36]CAPDU: 80 11 00 00 [10:29:36]Write to MH i2c: E2 08 00 41 66 80 11 00 00 00 00 00 00 21 [10:29:36]Write i2c OK [10:29:36]MH_I2C_Read... [10:29:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:36]Read from MH i2c: E2 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: E2 17 00 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: E2 17 00 41 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 6E [10:29:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:29:36]wFMCommunicate OK [10:29:36]CreateOFDProtocolMessage done [10:29:36]OFDSenderStorePacket 260591 [10:29:36]StoreOFDPacket docnum=260591 [10:29:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 94 99 07 01 62 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 13 CD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EF F9 03 00 35 04 06 00 90 B5 D3 D6 91 A8 9C 87 43 D6 AA FA 6A 72 [10:29:36]CheckFolder [10:29:36]dirname=/storage/ofd_packets [10:29:36]CheckFolder done [10:29:36]ProducePacketName [10:29:36]name=ofd_packets/00260591 [10:29:36]NVStorageSaveData ofd_packets/00260591 [10:29:36]File name is /storage/ofd_packets/00260591 [10:29:36]Write 301 bytes [10:29:36]NVStorageSaveData done [10:29:36]OFDSenderStorePacket done [10:29:36]KKMCreateOFDPacket done [10:29:36]NVStorageSaveData kkm_last_timestamp [10:29:36]File name is /storage/kkm_last_timestamp [10:29:36]Write 4 bytes [10:29:36]NVStorageSaveData done [10:29:36]ExternCall_PrintAddStr [10:29:36]wPrintStart [10:29:36]Write to MH i2c: 01 00 00 42 66 A8 [10:29:36]Write i2c OK [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: 01 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: 01 07 00 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: 01 07 00 42 66 00 00 00 00 00 FF 0F BD [10:29:36]RasterBufferAndPrint [10:29:36]line Счет N : (1)1036137 [10:29:36]line ИНН: 02508201610067 [10:29:36]line Контрольно-Кассовый Чек [10:29:36]line ПРОДАЖА [10:29:36]line ТРК (МРК, ГНК) : 22 [10:29:36]line Товар: 2710124130 [10:29:36]line Аи-92-К-5 [10:29:36]line 4.430 * 67.80 [10:29:36]line = 300.35 [10:29:36]line НДС 12% НСП 1% [10:29:36]line > о реализуемом товаре [10:29:36]line ОКРУГЛЕНИЕ: -0.35 [10:29:36]line ИТОГО: 300.00 [10:29:36]line Внесено: 300.00 [10:29:36]line СДАЧА: 0.00 [10:29:36]line НСП 1% : 2.66 [10:29:36]line НДС 12% : 31.90 [10:29:36]line Наличными: 300.00 [10:29:36]line Безнал.: 0.00 [10:29:36]line Место: АЗС № 94 "Партнер Нефть" [10:29:36]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [10:29:36]line СНО: Общий режим [10:29:36]line Чек 149 18.08.2024 10:29 [10:29:36]line Смена: 449 ФФД: 1.0 [10:29:36]line ЗНМ: 0300000099 [10:29:36]line РНМ: 0000000000091865 [10:29:36]line Версия ККМ: 001 [10:29:36]line ФМ: 0000000000871820 [10:29:36]line ФД: 260591 [10:29:36]line ФПД: 159110617534888 [10:29:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T102939&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260591&fm=159110617534888&tin=02508201610067®Number=0000000000091865&sum=30000 [10:29:36]written 0, free lines is 4095 [10:29:36]OFD Sender: Processing packet 260591 [packets to send 192, broken 191] [10:29:36]ProducePacketName [10:29:36]name=ofd_packets/00260591 [10:29:36]OFD Sender: To server: pG, [10:29:36]CommunicateWithHost lk.salyk.kg:30040 [10:29:36]ConnectInit lk.salyk.kg [10:29:36]Connected sock=10 [10:29: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 30 0F 01 00 00 94 99 07 01 62 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 13 CD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EF F9 03 00 35 04 06 00 90 B5 D3 D6 91 A8 9C 87 43 D6 AA FA 6A 72 [10:29: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 30 4F 00 00 00 94 30 47 00 D8 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 30 10 04 04 00 EF F9 03 00 F4 03 04 00 68 76 C1 66 B6 04 01 00 00 21 9F 9A 70 21 C5 0D E2 [10:29:37]CommunicateWithHost err = 0 [10:29:37]CheckOFDResponse [10:29:37]1017 (14) - 77093643461234 [10:29:37]1041 (16) - 0000000000871820 [10:29:37]1040 (4) - 260591 [10:29:37]1012 (4) - 18.08.2024 04:19 [10:29:37]1206 (1) - 0 [10:29:37]OFD Sender: Remove packet 260591 [10:29:37]ProducePacketName [10:29:37]name=ofd_packets/00260591 [10:29:37]NVStorageDeleteData [10:29:37]Write to MH i2c: 01 00 00 6D 66 D3 [10:29:37]Write i2c OK [10:29:37]MH_I2C_Read... [10:29:37]Read from MH i2c: 01 [10:29:37]MH_I2C_Read... [10:29:37]Read from MH i2c: 01 07 00 [10:29:37]MH_I2C_Read... [10:29:37]Read from MH i2c: 01 07 00 6D 66 00 00 00 00 00 71 0C 57 [10:29:37]RasterBufferAndPrint [10:29:37]line [10:29:37]line [10:29:37]line [10:29:37]line [10:29:37]line [10:29:37]written 0, free lines is 3187 [10:29:37]MH_Cut [10:29:37]Write to MH i2c: D1 01 00 74 66 01 AC [10:29:37]Write i2c OK [10:29:37]MH_I2C_Read... [10:29:37]Read from MH i2c: D1 [10:29:37]MH_I2C_Read... [10:29:37]Read from MH i2c: D1 01 00 [10:29:37]MH_I2C_Read... [10:29:37]Read from MH i2c: D1 01 00 74 66 00 AB [10:29:37]Write to MH i2c: 01 00 00 75 66 DB [10:29:37]Write i2c OK [10:29:37]MH_I2C_Read... [10:29:37]OFD Sender: No OFD packet to send [10:29:38]*** Cut start [10:29:38]*** Purtial cut [10:29:38]*** Stage 1: CUTSNS_PIN = 1 [10:29:40]Read from MH i2c: 01 [10:29:40]MH_I2C_Read... [10:29:40]*** Stop cut motor [10:29:40]*** Cut end [10:29:40]Read from MH i2c: 01 07 00 [10:29:40]MH_I2C_Read... [10:29:40]Read from MH i2c: 01 07 00 75 66 00 00 00 00 00 FF 0F F0 [10:29:40]process_action close_receipt done [10:29:40]requested_data is exist [10:29:40]produce_requested_data [10:29:40]requested_item fm.sn is exist - process it [10:29:40]wFMCommunicate request_size=4 [10:29:40]MH_SAM_APDU [10:29:40]CAPDU: 80 11 00 00 [10:29:40]Write to MH i2c: E2 08 00 76 66 80 11 00 00 00 00 00 00 56 [10:29:40]Write i2c OK [10:29:40]MH_I2C_Read... [10:29:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:40]Read from MH i2c: E2 [10:29:40]MH_I2C_Read... [10:29:40]Read from MH i2c: E2 17 00 [10:29:40]MH_I2C_Read... [10:29:40]Read from MH i2c: E2 17 00 76 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A3 [10:29:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:29:40]wFMCommunicate OK [10:29:40]requested_item fd.num is exist - process it [10:29:40]SAM_PROTO_GetFieldsCounters [10:29:40]wFMCommunicate request_size=4 [10:29:40]MH_SAM_APDU [10:29:40]CAPDU: 80 13 00 00 [10:29:40]Write to MH i2c: E2 08 00 77 66 80 13 00 00 00 00 00 00 59 [10:29:40]Write i2c OK [10:29:40]MH_I2C_Read... [10:29:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:40]Read from MH i2c: E2 [10:29:40]MH_I2C_Read... [10:29:40]Read from MH i2c: E2 62 00 [10:29:40]MH_I2C_Read... [10:29:40]Read from MH i2c: E2 62 00 77 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 EF F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [10:29: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 EF F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:29:40]wFMCommunicate OK [10:29:40]SAM_PROTO_GetFieldsCounters done [10:29:40]requested_item shift.num is exist - process it [10:29:40]requested_item shift.opened is exist - process it [10:29:40]req_shift_opened [10:29:40]FM_GetShiftState [10:29:40]SAM_PROTO_GetShiftState [10:29:40]wFMCommunicate request_size=4 [10:29:40]MH_SAM_APDU [10:29:40]CAPDU: 80 13 01 00 [10:29:40]Write to MH i2c: E2 08 00 78 66 80 13 01 00 00 00 00 00 5B [10:29:40]Write i2c OK [10:29:40]MH_I2C_Read... [10:29:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:40]Read from MH i2c: E2 [10:29:40]MH_I2C_Read... [10:29:40]Read from MH i2c: E2 0E 00 [10:29:40]MH_I2C_Read... [10:29:40]Read from MH i2c: E2 0E 00 78 66 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 98 [10:29:40]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:29:40]wFMCommunicate OK [10:29:40]SAM_PROTO_GetShiftState done [10:29:40]FM_GetShiftState done [10:29:40]req_shift_opened done [10:29:40]requested_item shift.open_date is exist - process it [10:29:40]req_shift_open_date [10:29:40]req_shift_open_date done [10:29:40]produce_requested_data done [10:29:40]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260591,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [10:29:40]process_action_free close_receipt [10:29:40]json_value_free [10:29:40]json_value_free done [10:29:40]process_json_proto returns [10:29:40]Send response to host [10:29:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260591,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [10:29:40]free response buf [10:29:40]execute_script done [10:29:40]execute_script returns [10:29:40]free content buf [10:29:40]Sock 7.Close socket [10:29:40]Sock 7.Thread stoped [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:06]accept exits with 9 [10:30:06]New connection [10:30:06]New thread 3066473828 created [10:30:06]Thread 3066617188 joined [10:30:06]Waiting for new connection... [10:30:06] Sock 9.Parse request [10:30:06]Sock 9.Check first char [10:30:06]Sock 9.First char is OK [10:30:06]request: POST /json_proto HTTP/1.0 [10:30:06]Method: POST [10:30:06]URL: /json_proto [10:30:06]Method is POST - this is cgi request [10:30:06]url: /json_proto [10:30:06]query_string will be loaded in cgi processing [10:30:06]execute_cgi json_proto POST (null) [10:30:06]execute_cgi path=json_proto method=POST [10:30:06]POST find Content-Length [10:30:06]Host: 172.17.55.133:8080 [10:30:06]Content-Length: 679 [10:30:06]Content-Type: application/json [10:30:06] [10:30:06]POST finish read [10:30:06]Found Content-Length = 679 [10:30:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "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" ] } } [10:30:06]execute_script... [10:30:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "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" ] } } [10:30:06]POST & json_proto [10:30:06]process_json_proto [10:30:06]json parsed OK: [10:30:06]protocol is kg_v1.0 [10:30:06]action value=close_receipt [10:30:06]process_action close_receipt [10:30:06]cmd_close_receipt [10:30:06]MH_GetDate [10:30:06]Write to MH i2c: F0 00 00 79 66 CE [10:30:06]Write i2c OK [10:30:06]MH_I2C_Read... [10:30:06]Read from MH i2c: F0 [10:30:06]MH_I2C_Read... [10:30:06]Read from MH i2c: F0 09 00 [10:30:06]MH_I2C_Read... [10:30:06]Read from MH i2c: F0 09 00 79 66 00 32 CD C1 66 34 48 D8 65 B6 [10:30:06]GetLastDocTimeStamp 1723976979 [10:30:06]current date 1723977010 [10:30:06]FM_GetShiftState [10:30:06]SAM_PROTO_GetShiftState [10:30:06]wFMCommunicate request_size=4 [10:30:06]MH_SAM_APDU [10:30:06]CAPDU: 80 13 01 00 [10:30:06]Write to MH i2c: E2 08 00 7A 66 80 13 01 00 00 00 00 00 5D [10:30:06]Write i2c OK [10:30:06]MH_I2C_Read... [10:30:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:06]Read from MH i2c: E2 [10:30:06]MH_I2C_Read... [10:30:06]Read from MH i2c: E2 0E 00 [10:30:06]MH_I2C_Read... [10:30:06]Read from MH i2c: E2 0E 00 7A 66 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 9A [10:30:06]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:30:06]wFMCommunicate OK [10:30:06]SAM_PROTO_GetShiftState done [10:30:06]FM_GetShiftState done [10:30:06]opened in 1723940556 [10:30:06]opened+sec_in_day 1724026956 [10:30:06]quantity*price = 80004 [10:30:06]sum+1 = 80005 [10:30:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 150 18.08.2024 10:30 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260592 ФПД: 263013665145111 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T103010&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260592&fm=263013665145111&tin=02508201610067®Number=0000000000091865&sum=80000 [10:30:07]StoreToDocumentArchive [10:30:07]shift 449 fd 260592 [10:30:07]save to /storage/0449/doc_00260592 [10:30:07]save last doc name /storage/0449/doc_00260592 to /storage/kkm_last_doc_name [10:30:07]save OK [10:30:07]Clear old archive folders... [10:30:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:30:07]tlvbuf is 00382F50 [10:30:07]SAM_PROTO_ClearQueue [10:30:07]wFMCommunicate request_size=4 [10:30:07]MH_SAM_APDU [10:30:07]CAPDU: 80 09 00 00 [10:30:07]Write to MH i2c: E2 08 00 87 66 80 09 00 00 00 00 00 00 5F [10:30:07]Write i2c OK [10:30:07]MH_I2C_Read... [10:30:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:07]Read from MH i2c: E2 [10:30:07]MH_I2C_Read... [10:30:07]Read from MH i2c: E2 03 00 [10:30:07]MH_I2C_Read... [10:30:07]Read from MH i2c: E2 03 00 87 66 00 90 00 61 [10:30:07]RAPDU: 90 00 [10:30:07]wFMCommunicate OK [10:30:07]SAM_PROTO_ClearQueue done [10:30:07]KKMCreateOFDPacket [10:30:07]OFDProtocolAddRootSTLVToBuf [10:30:07]FM_MakeSignedData [10:30:07]FM_MakeSignedData [10:30:07]SAM_PROTO_SignData [10:30:07]wFMCommunicate request_size=4 [10:30:07]MH_SAM_APDU [10:30:07]CAPDU: 80 0D 01 02 [10:30:07]Write to MH i2c: E2 08 00 88 66 80 0D 01 02 00 00 00 00 67 [10:30:07]Write i2c OK [10:30:07]MH_I2C_Read... [10:30:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:07]Read from MH i2c: E2 [10:30:07]MH_I2C_Read... [10:30:07]Read from MH i2c: E2 03 00 [10:30:07]MH_I2C_Read... [10:30:07]Read from MH i2c: E2 03 00 88 66 00 90 00 62 [10:30:07]RAPDU: 90 00 [10:30:07]wFMCommunicate OK [10:30:07]wFMCommunicate request_size=255 [10:30:07]MH_SAM_APDU [10:30:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 96 00 00 00 F4 03 04 00 32 CD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F0 F9 03 00 35 04 06 00 EF [10:30:07]Write to MH i2c: E2 02 01 89 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 96 00 00 00 F4 03 04 00 32 CD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F0 F9 03 00 35 04 06 00 EF 00 00 EA [10:30:07]Write i2c OK [10:30:07]MH_I2C_Read... [10:30:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:08]Read from MH i2c: E2 [10:30:08]MH_I2C_Read... [10:30:08]Read from MH i2c: E2 03 00 [10:30:08]MH_I2C_Read... [10:30:08]Read from MH i2c: E2 03 00 89 66 00 90 00 63 [10:30:08]RAPDU: 90 00 [10:30:08]wFMCommunicate OK [10:30:08]wFMCommunicate request_size=10 [10:30:08]MH_SAM_APDU [10:30:08]CAPDU: 80 0D 02 02 05 35 A4 15 01 17 [10:30:08]Write to MH i2c: E2 0D 00 8A 66 80 0D 02 02 05 00 35 A4 15 01 17 00 00 7A [10:30:08]Write i2c OK [10:30:08]MH_I2C_Read... [10:30:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:08]Read from MH i2c: E2 [10:30:08]MH_I2C_Read... [10:30:08]Read from MH i2c: E2 03 00 [10:30:08]MH_I2C_Read... [10:30:08]Read from MH i2c: E2 03 00 8A 66 00 90 00 64 [10:30:08]RAPDU: 90 00 [10:30:08]wFMCommunicate OK [10:30:08]wFMCommunicate request_size=4 [10:30:08]MH_SAM_APDU [10:30:08]CAPDU: 80 0D 03 02 [10:30:08]Write to MH i2c: E2 08 00 8B 66 80 0D 03 02 00 00 00 00 6C [10:30:08]Write i2c OK [10:30:08]MH_I2C_Read... [10:30:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:08]Read from MH i2c: E2 [10:30:08]MH_I2C_Read... [10:30:08]Read from MH i2c: E2 0B 00 [10:30:08]MH_I2C_Read... [10:30:08]Read from MH i2c: E2 0B 00 8B 66 00 A3 DF FB 7D C2 76 C1 46 90 00 A6 [10:30:08]RAPDU: A3 DF FB 7D C2 76 C1 46 90 00 [10:30:08]wFMCommunicate OK [10:30:08]SAM_PROTO_SignData done [10:30:08]FM_MakeSignedData done [10:30:08]CreateOFDProtocolMessage [10:30:08]wFMCommunicate request_size=4 [10:30:08]MH_SAM_APDU [10:30:08]CAPDU: 80 11 00 00 [10:30:08]Write to MH i2c: E2 08 00 8C 66 80 11 00 00 00 00 00 00 6C [10:30:08]Write i2c OK [10:30:08]MH_I2C_Read... [10:30:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:08]Read from MH i2c: E2 [10:30:08]MH_I2C_Read... [10:30:08]Read from MH i2c: E2 17 00 [10:30:08]MH_I2C_Read... [10:30:08]Read from MH i2c: E2 17 00 8C 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B9 [10:30:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:30:08]wFMCommunicate OK [10:30:08]CreateOFDProtocolMessage done [10:30:08]OFDSenderStorePacket 260592 [10:30:08]StoreOFDPacket docnum=260592 [10:30:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 72 92 07 01 53 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 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 96 00 00 00 F4 03 04 00 32 CD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F0 F9 03 00 35 04 06 00 EF 35 A4 15 01 17 A3 DF FB 7D C2 76 C1 46 [10:30:08]CheckFolder [10:30:08]dirname=/storage/ofd_packets [10:30:08]CheckFolder done [10:30:08]ProducePacketName [10:30:08]name=ofd_packets/00260592 [10:30:08]NVStorageSaveData ofd_packets/00260592 [10:30:08]File name is /storage/ofd_packets/00260592 [10:30:08]Write 301 bytes [10:30:08]NVStorageSaveData done [10:30:08]OFDSenderStorePacket done [10:30:08]KKMCreateOFDPacket done [10:30:08]NVStorageSaveData kkm_last_timestamp [10:30:08]File name is /storage/kkm_last_timestamp [10:30:08]Write 4 bytes [10:30:08]NVStorageSaveData done [10:30:08]ExternCall_PrintAddStr [10:30:08]wPrintStart [10:30:08]Write to MH i2c: 01 00 00 8D 66 F3 [10:30:08]Write i2c OK [10:30:08]MH_I2C_Read... [10:30:08]Read from MH i2c: 01 [10:30:08]MH_I2C_Read... [10:30:08]Read from MH i2c: 01 07 00 [10:30:08]MH_I2C_Read... [10:30:08]Read from MH i2c: 01 07 00 8D 66 00 00 00 00 00 FF 0F 08 [10:30:08]RasterBufferAndPrint [10:30:08]line Счет N : (1)1036138 [10:30:08]line ИНН: 02508201610067 [10:30:08]line Контрольно-Кассовый Чек [10:30:08]line ПРОДАЖА [10:30:08]line ТРК (МРК, ГНК) : 12 [10:30:08]line Товар: 2710124130 [10:30:08]line Аи-92-К-5 [10:30:08]line 11.800 * 67.80 [10:30:08]line = 800.04 [10:30:08]line НДС 12% НСП 1% [10:30:08]line > о реализуемом товаре [10:30:08]line ОКРУГЛЕНИЕ: -0.04 [10:30:08]line ИТОГО: 800.00 [10:30:08]line Внесено: 800.00 [10:30:08]line СДАЧА: 0.00 [10:30:08]line НСП 1% : 7.08 [10:30:08]line НДС 12% : 84.96 [10:30:08]line Наличными: 800.00 [10:30:08]line Безнал.: 0.00 [10:30:08]line Место: АЗС № 94 "Партнер Нефть" [10:30:08]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [10:30:08]line СНО: Общий режим [10:30:08]line Чек 150 18.08.2024 10:30 [10:30:08]line Смена: 449 ФФД: 1.0 [10:30:08]line ЗНМ: 0300000099 [10:30:08]line РНМ: 0000000000091865 [10:30:08]line Версия ККМ: 001 [10:30:08]line ФМ: 0000000000871820 [10:30:08]line ФД: 260592 [10:30:08]line ФПД: 263013665145111 [10:30:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T103010&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260592&fm=263013665145111&tin=02508201610067®Number=0000000000091865&sum=80000 [10:30:08]OFD Sender: Processing packet 260592 [packets to send 192, broken 191] [10:30:08]ProducePacketName [10:30:08]name=ofd_packets/00260592 [10:30:08]OFD Sender: To server: pG, [10:30:08]CommunicateWithHost lk.salyk.kg:30040 [10:30:08]ConnectInit lk.salyk.kg [10:30:08]written 0, free lines is 4095 [10:30:08]Connected sock=10 [10:30: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 30 0F 01 00 00 72 92 07 01 53 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 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 96 00 00 00 F4 03 04 00 32 CD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F0 F9 03 00 35 04 06 00 EF 35 A4 15 01 17 A3 DF FB 7D C2 76 C1 46 [10:30: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 30 4F 00 00 00 F2 81 47 00 11 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F0 F9 03 00 F4 03 04 00 88 76 C1 66 B6 04 01 00 00 BB 88 27 56 42 85 EA 4A [10:30:08]CommunicateWithHost err = 0 [10:30:08]CheckOFDResponse [10:30:08]1017 (14) - 77093643461234 [10:30:08]1041 (16) - 0000000000871820 [10:30:08]1040 (4) - 260592 [10:30:08]1012 (4) - 18.08.2024 04:20 [10:30:08]1206 (1) - 0 [10:30:08]OFD Sender: Remove packet 260592 [10:30:08]ProducePacketName [10:30:08]name=ofd_packets/00260592 [10:30:08]NVStorageDeleteData [10:30:08]Write to MH i2c: 01 00 00 B8 66 1E [10:30:08]Write i2c OK [10:30:08]MH_I2C_Read... [10:30:08]Read from MH i2c: 01 [10:30:08]MH_I2C_Read... [10:30:08]Read from MH i2c: 01 07 00 [10:30:08]MH_I2C_Read... [10:30:08]Read from MH i2c: 01 07 00 B8 66 00 00 00 00 00 65 0C 96 [10:30:08]RasterBufferAndPrint [10:30:08]line [10:30:08]line [10:30:08]line [10:30:08]line [10:30:08]line [10:30:08]written 0, free lines is 3178 [10:30:09]MH_Cut [10:30:09]Write to MH i2c: D1 01 00 BF 66 01 F7 [10:30:09]Write i2c OK [10:30:09]MH_I2C_Read... [10:30:09]Read from MH i2c: D1 [10:30:09]MH_I2C_Read... [10:30:09]Read from MH i2c: D1 01 00 [10:30:09]MH_I2C_Read... [10:30:09]Read from MH i2c: D1 01 00 BF 66 00 F6 [10:30:09]Write to MH i2c: 01 00 00 C0 66 26 [10:30:09]Write i2c OK [10:30:09]MH_I2C_Read... [10:30:09]OFD Sender: No OFD packet to send [10:30:10]*** Cut start [10:30:10]*** Purtial cut [10:30:10]*** Stage 1: CUTSNS_PIN = 1 [10:30:12]Read from MH i2c: 01 [10:30:12]MH_I2C_Read... [10:30:12]*** Stop cut motor [10:30:12]*** Cut end [10:30:12]Read from MH i2c: 01 07 00 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: 01 07 00 C0 66 00 00 00 00 00 FF 0F 3B [10:30:12]process_action close_receipt done [10:30:12]requested_data is exist [10:30:12]produce_requested_data [10:30:12]requested_item fm.sn is exist - process it [10:30:12]wFMCommunicate request_size=4 [10:30:12]MH_SAM_APDU [10:30:12]CAPDU: 80 11 00 00 [10:30:12]Write to MH i2c: E2 08 00 C1 66 80 11 00 00 00 00 00 00 A1 [10:30:12]Write i2c OK [10:30:12]MH_I2C_Read... [10:30:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:12]Read from MH i2c: E2 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: E2 17 00 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: E2 17 00 C1 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 EE [10:30:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:30:12]wFMCommunicate OK [10:30:12]requested_item fd.num is exist - process it [10:30:12]SAM_PROTO_GetFieldsCounters [10:30:12]wFMCommunicate request_size=4 [10:30:12]MH_SAM_APDU [10:30:12]CAPDU: 80 13 00 00 [10:30:12]Write to MH i2c: E2 08 00 C2 66 80 13 00 00 00 00 00 00 A4 [10:30:12]Write i2c OK [10:30:12]MH_I2C_Read... [10:30:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:12]Read from MH i2c: E2 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: E2 62 00 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: E2 62 00 C2 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F0 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [10:30: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F0 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:30:12]wFMCommunicate OK [10:30:12]SAM_PROTO_GetFieldsCounters done [10:30:12]requested_item shift.num is exist - process it [10:30:12]requested_item shift.opened is exist - process it [10:30:12]req_shift_opened [10:30:12]FM_GetShiftState [10:30:12]SAM_PROTO_GetShiftState [10:30:12]wFMCommunicate request_size=4 [10:30:12]MH_SAM_APDU [10:30:12]CAPDU: 80 13 01 00 [10:30:12]Write to MH i2c: E2 08 00 C3 66 80 13 01 00 00 00 00 00 A6 [10:30:12]Write i2c OK [10:30:12]MH_I2C_Read... [10:30:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:12]Read from MH i2c: E2 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: E2 0E 00 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: E2 0E 00 C3 66 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E3 [10:30:12]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:30:12]wFMCommunicate OK [10:30:12]SAM_PROTO_GetShiftState done [10:30:12]FM_GetShiftState done [10:30:12]req_shift_opened done [10:30:12]requested_item shift.open_date is exist - process it [10:30:12]req_shift_open_date [10:30:12]req_shift_open_date done [10:30:12]produce_requested_data done [10:30:12]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260592,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [10:30:12]process_action_free close_receipt [10:30:12]json_value_free [10:30:12]json_value_free done [10:30:12]process_json_proto returns [10:30:12]Send response to host [10:30:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260592,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [10:30:12]free response buf [10:30:12]execute_script done [10:30:12]execute_script returns [10:30:12]free content buf [10:30:12]Sock 9.Close socket [10:30:12]Sock 9.Thread stoped [10:30:14]OFD Sender: No OFD packet to send [10:30:14]accept exits with 7 [10:30:14]New connection [10:30:14]New thread 3066617188 created [10:30:14]Thread 3066473828 joined [10:30:14]Waiting for new connection... [10:30:14] Sock 7.Parse request [10:30:14]Sock 7.Check first char [10:30:14]Sock 7.First char is OK [10:30:14]request: POST /json_proto HTTP/1.0 [10:30:14]Method: POST [10:30:14]URL: /json_proto [10:30:14]Method is POST - this is cgi request [10:30:14]url: /json_proto [10:30:14]query_string will be loaded in cgi processing [10:30:14]execute_cgi json_proto POST (null) [10:30:14]execute_cgi path=json_proto method=POST [10:30:14]POST find Content-Length [10:30:14]Host: 172.17.55.133:8080 [10:30:14]Content-Length: 688 [10:30:14]Content-Type: application/json [10:30:14] [10:30:14]POST finish read [10:30:14]Found Content-Length = 688 [10:30:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:14]execute_script... [10: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)1036135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:14]POST & json_proto [10:30:14]process_json_proto [10:30:14]json parsed OK: [10:30:14]protocol is kg_v1.0 [10:30:14]action value=close_receipt [10:30:14]process_action close_receipt [10:30:14]cmd_close_receipt [10:30:14]MH_GetDate [10:30:14]Write to MH i2c: F0 00 00 C4 66 19 [10:30:14]Write i2c OK [10:30:14]MH_I2C_Read... [10:30:14]Read from MH i2c: F0 [10:30:14]MH_I2C_Read... [10:30:14]Read from MH i2c: F0 09 00 [10:30:14]MH_I2C_Read... [10:30:14]Read from MH i2c: F0 09 00 C4 66 00 3A CD C1 66 34 48 D8 65 09 [10:30:14]GetLastDocTimeStamp 1723977010 [10:30:14]current date 1723977018 [10:30:14]FM_GetShiftState [10:30:14]SAM_PROTO_GetShiftState [10:30:14]wFMCommunicate request_size=4 [10:30:14]MH_SAM_APDU [10:30:14]CAPDU: 80 13 01 00 [10:30:14]Write to MH i2c: E2 08 00 C5 66 80 13 01 00 00 00 00 00 A8 [10:30:14]Write i2c OK [10:30:14]MH_I2C_Read... [10:30:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:14]Read from MH i2c: E2 [10:30:14]MH_I2C_Read... [10:30:14]Read from MH i2c: E2 0E 00 [10:30:14]MH_I2C_Read... [10:30:14]Read from MH i2c: E2 0E 00 C5 66 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E5 [10:30:14]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:30:14]wFMCommunicate OK [10:30:14]SAM_PROTO_GetShiftState done [10:30:14]FM_GetShiftState done [10:30:14]opened in 1723940556 [10:30:14]opened+sec_in_day 1724026956 [10:30:14]quantity*price = 100050 [10:30:14]sum+1 = 100052 [10:30:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 151 18.08.2024 10:30 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260593 ФПД: 244707768127975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T103018&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260593&fm=244707768127975&tin=02508201610067®Number=0000000000091865&sum=100000 [10:30:15]StoreToDocumentArchive [10:30:15]shift 449 fd 260593 [10:30:15]save to /storage/0449/doc_00260593 [10:30:15]save last doc name /storage/0449/doc_00260593 to /storage/kkm_last_doc_name [10:30:15]save OK [10:30:15]Clear old archive folders... [10:30:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:30:15]tlvbuf is 003A07E0 [10:30:15]SAM_PROTO_ClearQueue [10:30:15]wFMCommunicate request_size=4 [10:30:15]MH_SAM_APDU [10:30:15]CAPDU: 80 09 00 00 [10:30:15]Write to MH i2c: E2 08 00 D2 66 80 09 00 00 00 00 00 00 AA [10:30:15]Write i2c OK [10:30:15]MH_I2C_Read... [10:30:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:15]Read from MH i2c: E2 [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: E2 03 00 [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: E2 03 00 D2 66 00 90 00 AC [10:30:15]RAPDU: 90 00 [10:30:15]wFMCommunicate OK [10:30:15]SAM_PROTO_ClearQueue done [10:30:15]KKMCreateOFDPacket [10:30:15]OFDProtocolAddRootSTLVToBuf [10:30:15]FM_MakeSignedData [10:30:15]FM_MakeSignedData [10:30:15]SAM_PROTO_SignData [10:30:15]wFMCommunicate request_size=4 [10:30:15]MH_SAM_APDU [10:30:15]CAPDU: 80 0D 01 02 [10:30:15]Write to MH i2c: E2 08 00 D3 66 80 0D 01 02 00 00 00 00 B2 [10:30:15]Write i2c OK [10:30:15]MH_I2C_Read... [10:30:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:15]Read from MH i2c: E2 [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: E2 03 00 [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: E2 03 00 D3 66 00 90 00 AD [10:30:15]RAPDU: 90 00 [10:30:15]wFMCommunicate OK [10:30:15]wFMCommunicate request_size=255 [10:30:15]MH_SAM_APDU [10:30:15]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 3A CD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F1 F9 03 00 35 04 06 00 [10:30:15]Write to MH i2c: E2 02 01 D4 66 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 3A CD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F1 F9 03 00 35 04 06 00 00 00 90 [10:30:15]Write i2c OK [10:30:15]MH_I2C_Read... [10:30:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:16]Read from MH i2c: E2 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: E2 03 00 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: E2 03 00 D4 66 00 90 00 AE [10:30:16]RAPDU: 90 00 [10:30:16]wFMCommunicate OK [10:30:16]wFMCommunicate request_size=11 [10:30:16]MH_SAM_APDU [10:30:16]CAPDU: 80 0D 02 02 06 DE 8F 77 97 D1 E7 [10:30:16]Write to MH i2c: E2 0E 00 D5 66 80 0D 02 02 06 00 DE 8F 77 97 D1 E7 00 00 F4 [10:30:16]Write i2c OK [10:30:16]MH_I2C_Read... [10:30:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:16]Read from MH i2c: E2 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: E2 03 00 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: E2 03 00 D5 66 00 90 00 AF [10:30:16]RAPDU: 90 00 [10:30:16]wFMCommunicate OK [10:30:16]wFMCommunicate request_size=4 [10:30:16]MH_SAM_APDU [10:30:16]CAPDU: 80 0D 03 02 [10:30:16]Write to MH i2c: E2 08 00 D6 66 80 0D 03 02 00 00 00 00 B7 [10:30:16]Write i2c OK [10:30:16]MH_I2C_Read... [10:30:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:16]Read from MH i2c: E2 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: E2 0B 00 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: E2 0B 00 D6 66 00 FC F4 3F A2 B5 02 6E E7 90 00 95 [10:30:16]RAPDU: FC F4 3F A2 B5 02 6E E7 90 00 [10:30:16]wFMCommunicate OK [10:30:16]SAM_PROTO_SignData done [10:30:16]FM_MakeSignedData done [10:30:16]CreateOFDProtocolMessage [10:30:16]wFMCommunicate request_size=4 [10:30:16]MH_SAM_APDU [10:30:16]CAPDU: 80 11 00 00 [10:30:16]Write to MH i2c: E2 08 00 D7 66 80 11 00 00 00 00 00 00 B7 [10:30:16]Write i2c OK [10:30:16]MH_I2C_Read... [10:30:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:16]Read from MH i2c: E2 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: E2 17 00 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: E2 17 00 D7 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 04 [10:30:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:30:16]wFMCommunicate OK [10:30:16]CreateOFDProtocolMessage done [10:30:16]OFDSenderStorePacket 260593 [10:30:16]StoreOFDPacket docnum=260593 [10:30:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 CA 4B 08 01 6A DA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 3A CD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F1 F9 03 00 35 04 06 00 DE 8F 77 97 D1 E7 FC F4 3F A2 B5 02 6E E7 [10:30:16]CheckFolder [10:30:16]dirname=/storage/ofd_packets [10:30:16]CheckFolder done [10:30:16]ProducePacketName [10:30:16]name=ofd_packets/00260593 [10:30:16]NVStorageSaveData ofd_packets/00260593 [10:30:16]File name is /storage/ofd_packets/00260593 [10:30:16]Write 302 bytes [10:30:16]NVStorageSaveData done [10:30:16]OFDSenderStorePacket done [10:30:16]KKMCreateOFDPacket done [10:30:16]NVStorageSaveData kkm_last_timestamp [10:30:16]File name is /storage/kkm_last_timestamp [10:30:16]Write 4 bytes [10:30:16]NVStorageSaveData done [10:30:16]ExternCall_PrintAddStr [10:30:16]wPrintStart [10:30:16]Write to MH i2c: 01 00 00 D8 66 3E [10:30:16]Write i2c OK [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: 01 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: 01 07 00 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: 01 07 00 D8 66 00 00 00 00 00 FF 0F 53 [10:30:16]RasterBufferAndPrint [10:30:16]line Счет N : (1)1036135 [10:30:16]line ИНН: 02508201610067 [10:30:16]line Контрольно-Кассовый Чек [10:30:16]line ПРОДАЖА [10:30:16]line ТРК (МРК, ГНК) : 33 [10:30:16]line Товар: 2710194210 [10:30:16]line ДТ(л)-К-4 [10:30:16]line 13.130 * 76.20 [10:30:16]line = 1000.51 [10:30:16]line НДС 12% НСП 1% [10:30:16]line > о реализуемом товаре [10:30:16]line ОКРУГЛЕНИЕ: -0.51 [10:30:16]line ИТОГО: 1000.00 [10:30:16]line Внесено: 1000.00 [10:30:16]line СДАЧА: 0.00 [10:30:16]line НСП 1% : 8.85 [10:30:16]line НДС 12% : 106.25 [10:30:16]line Наличными: 1000.00 [10:30:16]line Безнал.: 0.00 [10:30:16]line Место: АЗС № 94 "Партнер Нефть" [10:30:16]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [10:30:16]line СНО: Общий режим [10:30:16]line Чек 151 18.08.2024 10:30 [10:30:16]line Смена: 449 ФФД: 1.0 [10:30:16]line ЗНМ: 0300000099 [10:30:16]line РНМ: 0000000000091865 [10:30:16]line Версия ККМ: 001 [10:30:16]line ФМ: 0000000000871820 [10:30:16]line ФД: 260593 [10:30:16]line ФПД: 244707768127975 [10:30:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T103018&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260593&fm=244707768127975&tin=02508201610067®Number=0000000000091865&sum=100000 [10:30:16]written 0, free lines is 4095 [10:30:16]OFD Sender: Processing packet 260593 [packets to send 192, broken 191] [10:30:16]ProducePacketName [10:30:16]name=ofd_packets/00260593 [10:30:16]OFD Sender: To server: pG, [10:30:16]CommunicateWithHost lk.salyk.kg:30040 [10:30:16]ConnectInit lk.salyk.kg [10:30:16]Connected sock=10 [10: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 30 10 01 00 00 CA 4B 08 01 6A DA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 3A CD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F1 F9 03 00 35 04 06 00 DE 8F 77 97 D1 E7 FC F4 3F A2 B5 02 6E E7 [10: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 30 4F 00 00 00 7F A3 47 00 63 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 30 10 04 04 00 F1 F9 03 00 F4 03 04 00 90 76 C1 66 B6 04 01 00 00 48 FE F3 04 5C 97 BD 70 [10:30:16]CommunicateWithHost err = 0 [10:30:16]CheckOFDResponse [10:30:16]1017 (14) - 77093643461234 [10:30:16]1041 (16) - 0000000000871820 [10:30:16]1040 (4) - 260593 [10:30:16]1012 (4) - 18.08.2024 04:20 [10:30:16]1206 (1) - 0 [10:30:16]OFD Sender: Remove packet 260593 [10:30:16]ProducePacketName [10:30:16]name=ofd_packets/00260593 [10:30:16]NVStorageDeleteData [10:30:16]Write to MH i2c: 01 00 00 03 67 6A [10:30:16]Write i2c OK [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: 01 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: 01 07 00 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: 01 07 00 03 67 00 00 00 00 00 70 0C ED [10:30:16]RasterBufferAndPrint [10:30:16]line [10:30:16]line [10:30:16]line [10:30:16]line [10:30:16]line [10:30:16]written 0, free lines is 3188 [10:30:16]MH_Cut [10:30:16]Write to MH i2c: D1 01 00 0A 67 01 43 [10:30:16]Write i2c OK [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: D1 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: D1 01 00 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: D1 01 00 0A 67 00 42 [10:30:16]Write to MH i2c: 01 00 00 0B 67 72 [10:30:16]Write i2c OK [10:30:16]MH_I2C_Read... [10:30:17]OFD Sender: No OFD packet to send [10:30:17]*** Cut start [10:30:17]*** Purtial cut [10:30:17]*** Stage 1: CUTSNS_PIN = 1 [10:30:19]Read from MH i2c: 01 [10:30:19]MH_I2C_Read... [10:30:19]*** Stop cut motor [10:30:19]*** Cut end [10:30:19]Read from MH i2c: 01 07 00 [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: 01 07 00 0B 67 00 00 00 00 00 FF 0F 87 [10:30:19]process_action close_receipt done [10:30:19]requested_data is exist [10:30:19]produce_requested_data [10:30:19]requested_item fm.sn is exist - process it [10:30:19]wFMCommunicate request_size=4 [10:30:19]MH_SAM_APDU [10:30:19]CAPDU: 80 11 00 00 [10:30:19]Write to MH i2c: E2 08 00 0C 67 80 11 00 00 00 00 00 00 ED [10:30:19]Write i2c OK [10:30:19]MH_I2C_Read... [10:30:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:19]Read from MH i2c: E2 [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: E2 17 00 [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: E2 17 00 0C 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 3A [10:30:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:30:19]wFMCommunicate OK [10:30:19]requested_item fd.num is exist - process it [10:30:19]SAM_PROTO_GetFieldsCounters [10:30:19]wFMCommunicate request_size=4 [10:30:19]MH_SAM_APDU [10:30:19]CAPDU: 80 13 00 00 [10:30:19]Write to MH i2c: E2 08 00 0D 67 80 13 00 00 00 00 00 00 F0 [10:30:19]Write i2c OK [10:30:19]MH_I2C_Read... [10:30:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:20]Read from MH i2c: E2 [10:30:20]MH_I2C_Read... [10:30:20]Read from MH i2c: E2 62 00 [10:30:20]MH_I2C_Read... [10:30:20]Read from MH i2c: E2 62 00 0D 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F1 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [10:30: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F1 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:30:20]wFMCommunicate OK [10:30:20]SAM_PROTO_GetFieldsCounters done [10:30:20]requested_item shift.num is exist - process it [10:30:20]requested_item shift.opened is exist - process it [10:30:20]req_shift_opened [10:30:20]FM_GetShiftState [10:30:20]SAM_PROTO_GetShiftState [10:30:20]wFMCommunicate request_size=4 [10:30:20]MH_SAM_APDU [10:30:20]CAPDU: 80 13 01 00 [10:30:20]Write to MH i2c: E2 08 00 0E 67 80 13 01 00 00 00 00 00 F2 [10:30:20]Write i2c OK [10:30:20]MH_I2C_Read... [10:30:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:20]Read from MH i2c: E2 [10:30:20]MH_I2C_Read... [10:30:20]Read from MH i2c: E2 0E 00 [10:30:20]MH_I2C_Read... [10:30:20]Read from MH i2c: E2 0E 00 0E 67 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 2F [10:30:20]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:30:20]wFMCommunicate OK [10:30:20]SAM_PROTO_GetShiftState done [10:30:20]FM_GetShiftState done [10:30:20]req_shift_opened done [10:30:20]requested_item shift.open_date is exist - process it [10:30:20]req_shift_open_date [10:30:20]req_shift_open_date done [10:30:20]produce_requested_data done [10:30:20]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260593,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [10:30:20]process_action_free close_receipt [10:30:20]json_value_free [10:30:20]json_value_free done [10:30:20]process_json_proto returns [10:30:20]Send response to host [10:30:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260593,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [10:30:20]free response buf [10:30:20]execute_script done [10:30:20]execute_script returns [10:30:20]free content buf [10:30:20]Sock 7.Close socket [10:30:20]Sock 7.Thread stoped [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:42]OFD Sender: No OFD packet to send [10:31:47]OFD Sender: No OFD packet to send [10:31:52]OFD Sender: No OFD packet to send [10:31:57]OFD Sender: No OFD packet to send [10:32:02]OFD Sender: No OFD packet to send [10:32:07]OFD Sender: No OFD packet to send [10:32:12]OFD Sender: No OFD packet to send [10:32:17]OFD Sender: No OFD packet to send [10:32:22]OFD Sender: No OFD packet to send [10:32:27]OFD Sender: No OFD packet to send [10:32:32]OFD Sender: No OFD packet to send [10:32:37]OFD Sender: No OFD packet to send [10:32:42]OFD Sender: No OFD packet to send [10:32:47]OFD Sender: No OFD packet to send [10:32:52]OFD Sender: No OFD packet to send [10:32:57]OFD Sender: No OFD packet to send [10:33:02]OFD Sender: No OFD packet to send [10:33:07]OFD Sender: No OFD packet to send [10:33:12]OFD Sender: No OFD packet to send [10:33:17]OFD Sender: No OFD packet to send [10:33:22]OFD Sender: No OFD packet to send [10:33:27]OFD Sender: No OFD packet to send [10:33:32]OFD Sender: No OFD packet to send [10:33:37]OFD Sender: No OFD packet to send [10:33:42]OFD Sender: No OFD packet to send [10:33:47]OFD Sender: No OFD packet to send [10:33:52]OFD Sender: No OFD packet to send [10:33:57]OFD Sender: No OFD packet to send [10:34:02]OFD Sender: No OFD packet to send [10:34:07]OFD Sender: No OFD packet to send [10:34:12]OFD Sender: No OFD packet to send [10:34:17]OFD Sender: No OFD packet to send [10:34:22]OFD Sender: No OFD packet to send [10:34:27]OFD Sender: No OFD packet to send [10:34:32]OFD Sender: No OFD packet to send [10:34:37]OFD Sender: No OFD packet to send [10:34:42]OFD Sender: No OFD packet to send [10:34:47]OFD Sender: No OFD packet to send [10:34:52]OFD Sender: No OFD packet to send [10:34:57]OFD Sender: No OFD packet to send [10:35:02]OFD Sender: No OFD packet to send [10:35:07]OFD Sender: No OFD packet to send [10:35:12]OFD Sender: No OFD packet to send [10:35:17]OFD Sender: No OFD packet to send [10:35:22]OFD Sender: No OFD packet to send [10:35:27]OFD Sender: No OFD packet to send [10:35:32]OFD Sender: No OFD packet to send [10:35:32]accept exits with 9 [10:35:32]New connection [10:35:32]New thread 3066473828 created [10:35:32]Thread 3066617188 joined [10:35:32]Waiting for new connection... [10:35:32] Sock 9.Parse request [10:35:32]Sock 9.Check first char [10:35:32]Sock 9.First char is OK [10:35:32]request: POST /json_proto HTTP/1.0 [10:35:32]Method: POST [10:35:32]URL: /json_proto [10:35:32]Method is POST - this is cgi request [10:35:32]url: /json_proto [10:35:32]query_string will be loaded in cgi processing [10:35:32]execute_cgi json_proto POST (null) [10:35:32]execute_cgi path=json_proto method=POST [10:35:32]POST find Content-Length [10:35:32]Host: 172.17.55.133:8080 [10:35:32]Content-Length: 683 [10:35:32]Content-Type: application/json [10:35:32] [10:35:32]POST finish read [10:35:32]Found Content-Length = 683 [10:35:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036140", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:32]execute_script... [10:35: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)1036140", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:32]POST & json_proto [10:35:32]process_json_proto [10:35:32]json parsed OK: [10:35:32]protocol is kg_v1.0 [10:35:32]action value=close_receipt [10:35:32]process_action close_receipt [10:35:32]cmd_close_receipt [10:35:32]MH_GetDate [10:35:32]Write to MH i2c: F0 00 00 0F 67 65 [10:35:32]Write i2c OK [10:35:32]MH_I2C_Read... [10:35:32]Read from MH i2c: F0 [10:35:32]MH_I2C_Read... [10:35:32]Read from MH i2c: F0 09 00 [10:35:32]MH_I2C_Read... [10:35:32]Read from MH i2c: F0 09 00 0F 67 00 78 CE C1 66 34 48 D8 65 94 [10:35:32]GetLastDocTimeStamp 1723977018 [10:35:32]current date 1723977336 [10:35:32]FM_GetShiftState [10:35:32]SAM_PROTO_GetShiftState [10:35:32]wFMCommunicate request_size=4 [10:35:32]MH_SAM_APDU [10:35:32]CAPDU: 80 13 01 00 [10:35:32]Write to MH i2c: E2 08 00 10 67 80 13 01 00 00 00 00 00 F4 [10:35:32]Write i2c OK [10:35:32]MH_I2C_Read... [10:35:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:32]Read from MH i2c: E2 [10:35:32]MH_I2C_Read... [10:35:32]Read from MH i2c: E2 0E 00 [10:35:32]MH_I2C_Read... [10:35:32]Read from MH i2c: E2 0E 00 10 67 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 31 [10:35:32]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:35:32]wFMCommunicate OK [10:35:32]SAM_PROTO_GetShiftState done [10:35:32]FM_GetShiftState done [10:35:32]opened in 1723940556 [10:35:32]opened+sec_in_day 1724026956 [10:35:32]quantity*price = 100021 [10:35:32]sum+1 = 100023 [10:35:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 152 18.08.2024 10:35 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260594 ФПД: 35586068648420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T103536&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260594&fm=35586068648420&tin=02508201610067®Number=0000000000091865&sum=100000 [10:35:33]StoreToDocumentArchive [10:35:33]shift 449 fd 260594 [10:35:33]save to /storage/0449/doc_00260594 [10:35:33]save last doc name /storage/0449/doc_00260594 to /storage/kkm_last_doc_name [10:35:33]save OK [10:35:33]Clear old archive folders... [10:35:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:35:33]tlvbuf is 004A4340 [10:35:33]SAM_PROTO_ClearQueue [10:35:33]wFMCommunicate request_size=4 [10:35:33]MH_SAM_APDU [10:35:33]CAPDU: 80 09 00 00 [10:35:33]Write to MH i2c: E2 08 00 1D 67 80 09 00 00 00 00 00 00 F6 [10:35:33]Write i2c OK [10:35:33]MH_I2C_Read... [10:35:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:33]Read from MH i2c: E2 [10:35:33]MH_I2C_Read... [10:35:33]Read from MH i2c: E2 03 00 [10:35:33]MH_I2C_Read... [10:35:33]Read from MH i2c: E2 03 00 1D 67 00 90 00 F8 [10:35:33]RAPDU: 90 00 [10:35:33]wFMCommunicate OK [10:35:33]SAM_PROTO_ClearQueue done [10:35:33]KKMCreateOFDPacket [10:35:33]OFDProtocolAddRootSTLVToBuf [10:35:33]FM_MakeSignedData [10:35:33]FM_MakeSignedData [10:35:33]SAM_PROTO_SignData [10:35:33]wFMCommunicate request_size=4 [10:35:33]MH_SAM_APDU [10:35:33]CAPDU: 80 0D 01 02 [10:35:33]Write to MH i2c: E2 08 00 1E 67 80 0D 01 02 00 00 00 00 FE [10:35:33]Write i2c OK [10:35:33]MH_I2C_Read... [10:35:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:33]Read from MH i2c: E2 [10:35:33]MH_I2C_Read... [10:35:33]Read from MH i2c: E2 03 00 [10:35:33]MH_I2C_Read... [10:35:33]Read from MH i2c: E2 03 00 1E 67 00 90 00 F9 [10:35:33]RAPDU: 90 00 [10:35:33]wFMCommunicate OK [10:35:33]wFMCommunicate request_size=255 [10:35:33]MH_SAM_APDU [10:35: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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 78 CE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F2 F9 03 00 35 04 06 00 20 [10:35:33]Write to MH i2c: E2 02 01 1F 67 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 78 CE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F2 F9 03 00 35 04 06 00 20 00 00 7D [10:35:33]Write i2c OK [10:35:33]MH_I2C_Read... [10:35:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:34]Read from MH i2c: E2 [10:35:34]MH_I2C_Read... [10:35:34]Read from MH i2c: E2 03 00 [10:35:34]MH_I2C_Read... [10:35:34]Read from MH i2c: E2 03 00 1F 67 00 90 00 FA [10:35:34]RAPDU: 90 00 [10:35:34]wFMCommunicate OK [10:35:34]wFMCommunicate request_size=10 [10:35:34]MH_SAM_APDU [10:35:34]CAPDU: 80 0D 02 02 05 5D 86 FB 11 E4 [10:35:34]Write to MH i2c: E2 0D 00 20 67 80 0D 02 02 05 00 5D 86 FB 11 E4 00 00 DE [10:35:34]Write i2c OK [10:35:34]MH_I2C_Read... [10:35:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:34]Read from MH i2c: E2 [10:35:34]MH_I2C_Read... [10:35:34]Read from MH i2c: E2 03 00 [10:35:34]MH_I2C_Read... [10:35:34]Read from MH i2c: E2 03 00 20 67 00 90 00 FB [10:35:34]RAPDU: 90 00 [10:35:34]wFMCommunicate OK [10:35:34]wFMCommunicate request_size=4 [10:35:34]MH_SAM_APDU [10:35:34]CAPDU: 80 0D 03 02 [10:35:34]Write to MH i2c: E2 08 00 21 67 80 0D 03 02 00 00 00 00 03 [10:35:34]Write i2c OK [10:35:34]MH_I2C_Read... [10:35:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:34]Read from MH i2c: E2 [10:35:34]MH_I2C_Read... [10:35:34]Read from MH i2c: E2 0B 00 [10:35:34]MH_I2C_Read... [10:35:34]Read from MH i2c: E2 0B 00 21 67 00 F7 88 A2 E5 E3 B0 D3 19 90 00 89 [10:35:34]RAPDU: F7 88 A2 E5 E3 B0 D3 19 90 00 [10:35:34]wFMCommunicate OK [10:35:34]SAM_PROTO_SignData done [10:35:34]FM_MakeSignedData done [10:35:34]CreateOFDProtocolMessage [10:35:34]wFMCommunicate request_size=4 [10:35:34]MH_SAM_APDU [10:35:34]CAPDU: 80 11 00 00 [10:35:34]Write to MH i2c: E2 08 00 22 67 80 11 00 00 00 00 00 00 03 [10:35:34]Write i2c OK [10:35:34]MH_I2C_Read... [10:35:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:34]Read from MH i2c: E2 [10:35:34]MH_I2C_Read... [10:35:34]Read from MH i2c: E2 17 00 [10:35:34]MH_I2C_Read... [10:35:34]Read from MH i2c: E2 17 00 22 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 50 [10:35:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:35:34]wFMCommunicate OK [10:35:34]CreateOFDProtocolMessage done [10:35:34]OFDSenderStorePacket 260594 [10:35:34]StoreOFDPacket docnum=260594 [10:35:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 92 00 07 01 E4 2D 5A 03 01 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 78 CE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F2 F9 03 00 35 04 06 00 20 5D 86 FB 11 E4 F7 88 A2 E5 E3 B0 D3 19 [10:35:34]CheckFolder [10:35:34]dirname=/storage/ofd_packets [10:35:34]CheckFolder done [10:35:34]ProducePacketName [10:35:34]name=ofd_packets/00260594 [10:35:34]NVStorageSaveData ofd_packets/00260594 [10:35:34]File name is /storage/ofd_packets/00260594 [10:35:34]Write 301 bytes [10:35:34]NVStorageSaveData done [10:35:34]OFDSenderStorePacket done [10:35:34]KKMCreateOFDPacket done [10:35:34]NVStorageSaveData kkm_last_timestamp [10:35:34]File name is /storage/kkm_last_timestamp [10:35:34]Write 4 bytes [10:35:34]NVStorageSaveData done [10:35:34]ExternCall_PrintAddStr [10:35:34]wPrintStart [10:35:34]Write to MH i2c: 01 00 00 23 67 8A [10:35:34]Write i2c OK [10:35:34]MH_I2C_Read... [10:35:34]Read from MH i2c: 01 [10:35:34]MH_I2C_Read... [10:35:34]Read from MH i2c: 01 07 00 [10:35:34]MH_I2C_Read... [10:35:34]Read from MH i2c: 01 07 00 23 67 00 00 00 00 00 FF 0F 9F [10:35:34]RasterBufferAndPrint [10:35:34]line Счет N : (1)1036140 [10:35:34]line ИНН: 02508201610067 [10:35:34]line Контрольно-Кассовый Чек [10:35:34]line ПРОДАЖА [10:35:34]line ТРК (МРК, ГНК) : 13 [10:35:34]line Товар: 2710124500 [10:35:34]line Аи-95-К-5 [10:35:34]line 13.480 * 74.20 [10:35:34]line = 1000.22 [10:35:34]line НДС 12% НСП 1% [10:35:34]line > о реализуемом товаре [10:35:34]line ОКРУГЛЕНИЕ: -0.22 [10:35:34]line ИТОГО: 1000.00 [10:35:34]line Внесено: 1000.00 [10:35:34]line СДАЧА: 0.00 [10:35:34]line НСП 1% : 8.85 [10:35:34]line НДС 12% : 106.22 [10:35:34]line Наличными: 1000.00 [10:35:34]line Безнал.: 0.00 [10:35:34]line Место: АЗС № 94 "Партнер Нефть" [10:35:34]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [10:35:34]line СНО: Общий режим [10:35:34]line Чек 152 18.08.2024 10:35 [10:35:34]line Смена: 449 ФФД: 1.0 [10:35:34]line ЗНМ: 0300000099 [10:35:34]line РНМ: 0000000000091865 [10:35:34]line Версия ККМ: 001 [10:35:34]line ФМ: 0000000000871820 [10:35:34]line ФД: 260594 [10:35:34]line ФПД: 35586068648420 [10:35:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T103536&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260594&fm=35586068648420&tin=02508201610067®Number=0000000000091865&sum=100000 [10:35:34]written 0, free lines is 4095 [10:35:34]OFD Sender: Processing packet 260594 [packets to send 192, broken 191] [10:35:34]ProducePacketName [10:35:34]name=ofd_packets/00260594 [10:35:34]OFD Sender: To server: pG, [10:35:34]CommunicateWithHost lk.salyk.kg:30040 [10:35:34]ConnectInit lk.salyk.kg [10:35:34]Connected sock=10 [10:35: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 30 0F 01 00 00 92 00 07 01 E4 2D 5A 03 01 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 78 CE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F2 F9 03 00 35 04 06 00 20 5D 86 FB 11 E4 F7 88 A2 E5 E3 B0 D3 19 [10:35:34]Write to MH i2c: 01 00 00 4E 67 B5 [10:35:34]Write i2c OK [10:35:34]MH_I2C_Read... [10:35:34]Read from MH i2c: 01 [10:35:34]MH_I2C_Read... [10:35:34]Read from MH i2c: 01 07 00 [10:35:34]MH_I2C_Read... [10:35:34]Read from MH i2c: 01 07 00 4E 67 00 00 00 00 00 73 0C 3B [10:35:34]RasterBufferAndPrint [10:35:34]line [10:35:34]line [10:35:34]line [10:35:34]line [10:35:34]line [10:35:34]written 0, free lines is 3190 [10:35:34]MH_Cut [10:35:34]Write to MH i2c: D1 01 00 55 67 01 8E [10:35:34]Write i2c OK [10:35:34]MH_I2C_Read... [10:35:34]Read from MH i2c: D1 [10:35:34]MH_I2C_Read... [10:35:34]Read from MH i2c: D1 01 00 [10:35:34]MH_I2C_Read... [10:35:34]Read from MH i2c: D1 01 00 55 67 00 8D [10:35:34]Write to MH i2c: 01 00 00 56 67 BD [10:35:34]Write i2c OK [10:35:34]MH_I2C_Read... [10:35: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 30 4F 00 00 00 C0 CD 47 00 03 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 F2 F9 03 00 F4 03 04 00 CE 77 C1 66 B6 04 01 00 00 FC A7 64 A7 1A 30 8C A9 [10:35:34]CommunicateWithHost err = 0 [10:35:34]CheckOFDResponse [10:35:34]1017 (14) - 77093643461234 [10:35:34]1041 (16) - 0000000000871820 [10:35:34]1040 (4) - 260594 [10:35:34]1012 (4) - 18.08.2024 04:25 [10:35:34]1206 (1) - 0 [10:35:34]OFD Sender: Remove packet 260594 [10:35:34]ProducePacketName [10:35:34]name=ofd_packets/00260594 [10:35:34]NVStorageDeleteData [10:35:35]OFD Sender: No OFD packet to send [10:35:35]*** Cut start [10:35:35]*** Purtial cut [10:35:35]*** Stage 1: CUTSNS_PIN = 1 [10:35:37]Read from MH i2c: 01 [10:35:37]MH_I2C_Read... [10:35:37]*** Stop cut motor [10:35:37]*** Cut end [10:35:37]Read from MH i2c: 01 07 00 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: 01 07 00 56 67 00 00 00 00 00 FF 0F D2 [10:35:37]process_action close_receipt done [10:35:37]requested_data is exist [10:35:37]produce_requested_data [10:35:37]requested_item fm.sn is exist - process it [10:35:37]wFMCommunicate request_size=4 [10:35:37]MH_SAM_APDU [10:35:37]CAPDU: 80 11 00 00 [10:35:37]Write to MH i2c: E2 08 00 57 67 80 11 00 00 00 00 00 00 38 [10:35:37]Write i2c OK [10:35:37]MH_I2C_Read... [10:35:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:38]Read from MH i2c: E2 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: E2 17 00 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: E2 17 00 57 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 85 [10:35:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:35:38]wFMCommunicate OK [10:35:38]requested_item fd.num is exist - process it [10:35:38]SAM_PROTO_GetFieldsCounters [10:35:38]wFMCommunicate request_size=4 [10:35:38]MH_SAM_APDU [10:35:38]CAPDU: 80 13 00 00 [10:35:38]Write to MH i2c: E2 08 00 58 67 80 13 00 00 00 00 00 00 3B [10:35:38]Write i2c OK [10:35:38]MH_I2C_Read... [10:35:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:38]Read from MH i2c: E2 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: E2 62 00 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: E2 62 00 58 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F2 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [10:35: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F2 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:35:38]wFMCommunicate OK [10:35:38]SAM_PROTO_GetFieldsCounters done [10:35:38]requested_item shift.num is exist - process it [10:35:38]requested_item shift.opened is exist - process it [10:35:38]req_shift_opened [10:35:38]FM_GetShiftState [10:35:38]SAM_PROTO_GetShiftState [10:35:38]wFMCommunicate request_size=4 [10:35:38]MH_SAM_APDU [10:35:38]CAPDU: 80 13 01 00 [10:35:38]Write to MH i2c: E2 08 00 59 67 80 13 01 00 00 00 00 00 3D [10:35:38]Write i2c OK [10:35:38]MH_I2C_Read... [10:35:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:38]Read from MH i2c: E2 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: E2 0E 00 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: E2 0E 00 59 67 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 7A [10:35:38]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:35:38]wFMCommunicate OK [10:35:38]SAM_PROTO_GetShiftState done [10:35:38]FM_GetShiftState done [10:35:38]req_shift_opened done [10:35:38]requested_item shift.open_date is exist - process it [10:35:38]req_shift_open_date [10:35:38]req_shift_open_date done [10:35:38]produce_requested_data done [10:35:38]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260594,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [10:35:38]process_action_free close_receipt [10:35:38]json_value_free [10:35:38]json_value_free done [10:35:38]process_json_proto returns [10:35:38]Send response to host [10:35:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260594,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [10:35:38]free response buf [10:35:38]execute_script done [10:35:38]execute_script returns [10:35:38]free content buf [10:35:38]Sock 9.Close socket [10:35:38]Sock 9.Thread stoped [10:35:40]OFD Sender: No OFD packet to send [10:35:45]OFD Sender: No OFD packet to send [10:35:50]accept exits with 7 [10:35:50]New connection [10:35:50]New thread 3066617188 created [10:35:50]Thread 3066473828 joined [10:35:50]Waiting for new connection... [10:35:50] Sock 7.Parse request [10:35:50]Sock 7.Check first char [10:35:50]Sock 7.First char is OK [10:35:50]request: POST /json_proto HTTP/1.0 [10:35:50]Method: POST [10:35:50]URL: /json_proto [10:35:50]Method is POST - this is cgi request [10:35:50]url: /json_proto [10:35:50]query_string will be loaded in cgi processing [10:35:50]execute_cgi json_proto POST (null) [10:35:50]execute_cgi path=json_proto method=POST [10:35:50]POST find Content-Length [10:35:50]Host: 172.17.55.133:8080 [10:35:50]Content-Length: 820 [10:35:50]Content-Type: application/json [10:35:50] [10:35:50]POST finish read [10:35:50]Found Content-Length = 820 [10:35:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036139", "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" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:50]execute_script... [10:35: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)1036139", "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" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:50]POST & json_proto [10:35:50]process_json_proto [10:35:50]json parsed OK: [10:35:50]protocol is kg_v1.0 [10:35:50]action value=close_receipt [10:35:50]process_action close_receipt [10:35:50]cmd_close_receipt [10:35:50]MH_GetDate [10:35:50]Write to MH i2c: F0 00 00 5A 67 B0 [10:35:50]Write i2c OK [10:35:50]MH_I2C_Read... [10:35:50]Read from MH i2c: F0 [10:35:50]MH_I2C_Read... [10:35:50]Read from MH i2c: F0 09 00 [10:35:50]MH_I2C_Read... [10:35:50]Read from MH i2c: F0 09 00 5A 67 00 8A CE C1 66 34 48 D8 65 F1 [10:35:50]GetLastDocTimeStamp 1723977336 [10:35:50]current date 1723977354 [10:35:50]FM_GetShiftState [10:35:50]SAM_PROTO_GetShiftState [10:35:50]wFMCommunicate request_size=4 [10:35:50]MH_SAM_APDU [10:35:50]CAPDU: 80 13 01 00 [10:35:50]Write to MH i2c: E2 08 00 5B 67 80 13 01 00 00 00 00 00 3F [10:35:50]Write i2c OK [10:35:50]MH_I2C_Read... [10:35:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:50]Read from MH i2c: E2 [10:35:50]MH_I2C_Read... [10:35:50]Read from MH i2c: E2 0E 00 [10:35:50]MH_I2C_Read... [10:35:50]Read from MH i2c: E2 0E 00 5B 67 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 7C [10:35:50]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:35:50]wFMCommunicate OK [10:35:50]SAM_PROTO_GetShiftState done [10:35:50]FM_GetShiftState done [10:35:50]opened in 1723940556 [10:35:50]opened+sec_in_day 1724026956 [10:35:50]quantity*price = 300064 [10:35:50]sum+1 = 300066 [10:35:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.65 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 0.00 Безнал.: 3000.65 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 153 18.08.2024 10:35 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871820 ФД: 260595 ФПД: 59111334589692 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T103554&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260595&fm=59111334589692&tin=02508201610067®Number=0000000000091865&sum=300065 [10:35:51]StoreToDocumentArchive [10:35:51]shift 449 fd 260595 [10:35:51]save to /storage/0449/doc_00260595 [10:35:51]save last doc name /storage/0449/doc_00260595 to /storage/kkm_last_doc_name [10:35:51]save OK [10:35:51]Clear old archive folders... [10:35:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:35:51]tlvbuf is 00451650 [10:35:51]SAM_PROTO_ClearQueue [10:35:51]wFMCommunicate request_size=4 [10:35:51]MH_SAM_APDU [10:35:51]CAPDU: 80 09 00 00 [10:35:51]Write to MH i2c: E2 08 00 68 67 80 09 00 00 00 00 00 00 41 [10:35:51]Write i2c OK [10:35:51]MH_I2C_Read... [10:35:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:51]Read from MH i2c: E2 [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: E2 03 00 [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: E2 03 00 68 67 00 90 00 43 [10:35:51]RAPDU: 90 00 [10:35:51]wFMCommunicate OK [10:35:51]SAM_PROTO_ClearQueue done [10:35:51]KKMCreateOFDPacket [10:35:51]OFDProtocolAddRootSTLVToBuf [10:35:51]FM_MakeSignedData [10:35:51]FM_MakeSignedData [10:35:51]SAM_PROTO_SignData [10:35:51]wFMCommunicate request_size=4 [10:35:51]MH_SAM_APDU [10:35:51]CAPDU: 80 0D 01 02 [10:35:51]Write to MH i2c: E2 08 00 69 67 80 0D 01 02 00 00 00 00 49 [10:35:51]Write i2c OK [10:35:51]MH_I2C_Read... [10:35:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:51]Read from MH i2c: E2 [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: E2 03 00 [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: E2 03 00 69 67 00 90 00 44 [10:35:51]RAPDU: 90 00 [10:35:51]wFMCommunicate OK [10:35:51]wFMCommunicate request_size=255 [10:35:51]MH_SAM_APDU [10:35: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 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 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 8A CE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F3 F9 03 00 35 04 06 00 35 [10:35:51]Write to MH i2c: E2 02 01 6A 67 80 0D 02 02 FA 00 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 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 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 8A CE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F3 F9 03 00 35 04 06 00 35 00 00 89 [10:35:51]Write i2c OK [10:35:51]MH_I2C_Read... [10:35:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:51]Read from MH i2c: E2 [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: E2 03 00 [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: E2 03 00 6A 67 00 90 00 45 [10:35:51]RAPDU: 90 00 [10:35:51]wFMCommunicate OK [10:35:51]wFMCommunicate request_size=10 [10:35:51]MH_SAM_APDU [10:35:51]CAPDU: 80 0D 02 02 05 C2 EE 19 B4 FC [10:35:51]Write to MH i2c: E2 0D 00 6B 67 80 0D 02 02 05 00 C2 EE 19 B4 FC 00 00 CF [10:35:51]Write i2c OK [10:35:51]MH_I2C_Read... [10:35:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:51]Read from MH i2c: E2 [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: E2 03 00 [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: E2 03 00 6B 67 00 90 00 46 [10:35:51]RAPDU: 90 00 [10:35:51]wFMCommunicate OK [10:35:51]wFMCommunicate request_size=4 [10:35:51]MH_SAM_APDU [10:35:51]CAPDU: 80 0D 03 02 [10:35:51]Write to MH i2c: E2 08 00 6C 67 80 0D 03 02 00 00 00 00 4E [10:35:51]Write i2c OK [10:35:51]MH_I2C_Read... [10:35:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:51]Read from MH i2c: E2 [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: E2 0B 00 [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: E2 0B 00 6C 67 00 75 D2 DE 35 13 6B 48 3D 90 00 AC [10:35:51]RAPDU: 75 D2 DE 35 13 6B 48 3D 90 00 [10:35:51]wFMCommunicate OK [10:35:51]SAM_PROTO_SignData done [10:35:51]FM_MakeSignedData done [10:35:51]CreateOFDProtocolMessage [10:35:51]wFMCommunicate request_size=4 [10:35:51]MH_SAM_APDU [10:35:51]CAPDU: 80 11 00 00 [10:35:51]Write to MH i2c: E2 08 00 6D 67 80 11 00 00 00 00 00 00 4E [10:35:51]Write i2c OK [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: E2 [10:35:51]MH_I2C_Read... [10:35:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:51]Read from MH i2c: E2 17 00 [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: E2 17 00 6D 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 9B [10:35:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:35:51]wFMCommunicate OK [10:35:51]CreateOFDProtocolMessage done [10:35:51]OFDSenderStorePacket 260595 [10:35:51]StoreOFDPacket docnum=260595 [10:35:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 AF 29 07 01 3C 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 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 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 8A CE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F3 F9 03 00 35 04 06 00 35 C2 EE 19 B4 FC 75 D2 DE 35 13 6B 48 3D [10:35:51]CheckFolder [10:35:51]dirname=/storage/ofd_packets [10:35:51]CheckFolder done [10:35:51]ProducePacketName [10:35:51]name=ofd_packets/00260595 [10:35:51]NVStorageSaveData ofd_packets/00260595 [10:35:51]File name is /storage/ofd_packets/00260595 [10:35:51]Write 301 bytes [10:35:51]NVStorageSaveData done [10:35:51]OFDSenderStorePacket done [10:35:51]KKMCreateOFDPacket done [10:35:51]NVStorageSaveData kkm_last_timestamp [10:35:51]File name is /storage/kkm_last_timestamp [10:35:51]Write 4 bytes [10:35:51]NVStorageSaveData done [10:35:51]ExternCall_PrintAddStr [10:35:51]wPrintStart [10:35:51]Write to MH i2c: 01 00 00 6E 67 D5 [10:35:51]Write i2c OK [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: 01 [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: 01 07 00 [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: 01 07 00 6E 67 00 00 00 00 00 FF 0F EA [10:35:51]RasterBufferAndPrint [10:35:51]line Счет N : (1)1036139 [10:35:51]line ИНН: 02508201610067 [10:35:51]line Контрольно-Кассовый Чек [10:35:51]line ПРОДАЖА [10:35:51]line ТРК (МРК, ГНК) : 23 [10:35:51]line Товар: 2710124500 [10:35:51]line Аи-95-К-5 [10:35:51]line 40.440 * 74.20 [10:35:51]line = 3000.65 [10:35:51]line НДС 12% НСП 1% [10:35:51]line > о реализуемом товаре [10:35:51]line ИТОГО: 3000.65 [10:35:51]line НСП 1% : 26.55 [10:35:51]line НДС 12% : 318.65 [10:35:51]line Наличными: 0.00 [10:35:51]line Безнал.: 3000.65 [10:35:51]line Место: АЗС № 94 "Партнер Нефть" [10:35:51]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [10:35:51]line СНО: Общий режим [10:35:51]line Чек 153 18.08.2024 10:35 [10:35:51]line Смена: 449 ФФД: 1.0 [10:35:51]line ЗНМ: 0300000099 [10:35:51]line РНМ: 0000000000091865 [10:35:51]line Версия ККМ: 001 [10:35:51]line Платежная система: Бакай Банк [10:35:51]line ФМ: 0000000000871820 [10:35:51]line ФД: 260595 [10:35:51]line ФПД: 59111334589692 [10:35:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T103554&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260595&fm=59111334589692&tin=02508201610067®Number=0000000000091865&sum=300065 [10:35:51]written 0, free lines is 4095 [10:35:51]OFD Sender: Processing packet 260595 [packets to send 192, broken 191] [10:35:51]ProducePacketName [10:35:51]name=ofd_packets/00260595 [10:35:51]OFD Sender: To server: pG, [10:35:51]CommunicateWithHost lk.salyk.kg:30040 [10:35:51]ConnectInit lk.salyk.kg [10:35:51]Connected sock=10 [10:35: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 30 0F 01 00 00 AF 29 07 01 3C 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 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 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 8A CE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F3 F9 03 00 35 04 06 00 35 C2 EE 19 B4 FC 75 D2 DE 35 13 6B 48 3D [10:35: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 30 4F 00 00 00 EA 0F 47 00 01 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 30 10 04 04 00 F3 F9 03 00 F4 03 04 00 DF 77 C1 66 B6 04 01 00 00 92 D9 F5 D0 61 7F F6 62 [10:35:52]CommunicateWithHost err = 0 [10:35:52]CheckOFDResponse [10:35:52]1017 (14) - 77093643461234 [10:35:52]1041 (16) - 0000000000871820 [10:35:52]1040 (4) - 260595 [10:35:52]1012 (4) - 18.08.2024 04:26 [10:35:52]1206 (1) - 0 [10:35:52]OFD Sender: Remove packet 260595 [10:35:52]ProducePacketName [10:35:52]name=ofd_packets/00260595 [10:35:52]NVStorageDeleteData [10:35:52]Write to MH i2c: 01 00 00 98 67 FF [10:35:52]Write i2c OK [10:35:52]MH_I2C_Read... [10:35:52]Read from MH i2c: 01 [10:35:52]MH_I2C_Read... [10:35:52]Read from MH i2c: 01 07 00 [10:35:52]MH_I2C_Read... [10:35:52]Read from MH i2c: 01 07 00 98 67 00 00 00 00 00 88 0C 9A [10:35:52]RasterBufferAndPrint [10:35:52]line [10:35:52]line [10:35:52]line [10:35:52]line [10:35:52]line [10:35:52]written 0, free lines is 3211 [10:35:52]MH_Cut [10:35:52]Write to MH i2c: D1 01 00 9F 67 01 D8 [10:35:52]Write i2c OK [10:35:52]MH_I2C_Read... [10:35:52]Read from MH i2c: D1 [10:35:52]MH_I2C_Read... [10:35:52]Read from MH i2c: D1 01 00 [10:35:52]MH_I2C_Read... [10:35:52]Read from MH i2c: D1 01 00 9F 67 00 D7 [10:35:52]Write to MH i2c: 01 00 00 A0 67 07 [10:35:52]Write i2c OK [10:35:52]MH_I2C_Read... [10:35:52]OFD Sender: No OFD packet to send [10:35:53]*** Cut start [10:35:53]*** Purtial cut [10:35:53]*** Stage 1: CUTSNS_PIN = 1 [10:35:55]Read from MH i2c: 01 [10:35:55]MH_I2C_Read... [10:35:55]*** Stop cut motor [10:35:55]*** Cut end [10:35:55]Read from MH i2c: 01 07 00 [10:35:55]MH_I2C_Read... [10:35:55]Read from MH i2c: 01 07 00 A0 67 00 00 00 00 00 FF 0F 1C [10:35:55]process_action close_receipt done [10:35:55]requested_data is exist [10:35:55]produce_requested_data [10:35:55]requested_item fm.sn is exist - process it [10:35:55]wFMCommunicate request_size=4 [10:35:55]MH_SAM_APDU [10:35:55]CAPDU: 80 11 00 00 [10:35:55]Write to MH i2c: E2 08 00 A1 67 80 11 00 00 00 00 00 00 82 [10:35:55]Write i2c OK [10:35:55]MH_I2C_Read... [10:35:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:55]Read from MH i2c: E2 [10:35:55]MH_I2C_Read... [10:35:55]Read from MH i2c: E2 17 00 [10:35:55]MH_I2C_Read... [10:35:55]Read from MH i2c: E2 17 00 A1 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 CF [10:35:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:35:55]wFMCommunicate OK [10:35:55]requested_item fd.num is exist - process it [10:35:55]SAM_PROTO_GetFieldsCounters [10:35:55]wFMCommunicate request_size=4 [10:35:55]MH_SAM_APDU [10:35:55]CAPDU: 80 13 00 00 [10:35:55]Write to MH i2c: E2 08 00 A2 67 80 13 00 00 00 00 00 00 85 [10:35:55]Write i2c OK [10:35:55]MH_I2C_Read... [10:35:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:55]Read from MH i2c: E2 [10:35:55]MH_I2C_Read... [10:35:55]Read from MH i2c: E2 62 00 [10:35:55]MH_I2C_Read... [10:35:55]Read from MH i2c: E2 62 00 A2 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F3 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [10:35: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F3 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:35:55]wFMCommunicate OK [10:35:55]SAM_PROTO_GetFieldsCounters done [10:35:55]requested_item shift.num is exist - process it [10:35:55]requested_item shift.opened is exist - process it [10:35:55]req_shift_opened [10:35:55]FM_GetShiftState [10:35:55]SAM_PROTO_GetShiftState [10:35:55]wFMCommunicate request_size=4 [10:35:55]MH_SAM_APDU [10:35:55]CAPDU: 80 13 01 00 [10:35:55]Write to MH i2c: E2 08 00 A3 67 80 13 01 00 00 00 00 00 87 [10:35:55]Write i2c OK [10:35:55]MH_I2C_Read... [10:35:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:55]Read from MH i2c: E2 [10:35:55]MH_I2C_Read... [10:35:55]Read from MH i2c: E2 0E 00 [10:35:55]MH_I2C_Read... [10:35:55]Read from MH i2c: E2 0E 00 A3 67 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C4 [10:35:55]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:35:55]wFMCommunicate OK [10:35:55]SAM_PROTO_GetShiftState done [10:35:55]FM_GetShiftState done [10:35:55]req_shift_opened done [10:35:55]requested_item shift.open_date is exist - process it [10:35:55]req_shift_open_date [10:35:55]req_shift_open_date done [10:35:55]produce_requested_data done [10:35:55]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260595,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [10:35:55]process_action_free close_receipt [10:35:55]json_value_free [10:35:55]json_value_free done [10:35:55]process_json_proto returns [10:35:55]Send response to host [10:35:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260595,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [10:35:55]free response buf [10:35:55]execute_script done [10:35:55]execute_script returns [10:35:55]free content buf [10:35:55]Sock 7.Close socket [10:35:55]Sock 7.Thread stoped [10:35:57]OFD Sender: No OFD packet to send [10:36:02]OFD Sender: No OFD packet to send [10:36:07]OFD Sender: No OFD packet to send [10:36:12]OFD Sender: No OFD packet to send [10:36:17]OFD Sender: No OFD packet to send [10:36:22]OFD Sender: No OFD packet to send [10:36:27]OFD Sender: No OFD packet to send [10:36:32]OFD Sender: No OFD packet to send [10:36:37]OFD Sender: No OFD packet to send [10:36:42]OFD Sender: No OFD packet to send [10:36:47]OFD Sender: No OFD packet to send [10:36:52]OFD Sender: No OFD packet to send [10:36:57]OFD Sender: No OFD packet to send [10:37:02]OFD Sender: No OFD packet to send [10:37:07]OFD Sender: No OFD packet to send [10:37:12]OFD Sender: No OFD packet to send [10:37:12]accept exits with 9 [10:37:12]New connection [10:37:12]New thread 3066473828 created [10:37:12]Thread 3066617188 joined [10:37:12]Waiting for new connection... [10:37:12] Sock 9.Parse request [10:37:12]Sock 9.Check first char [10:37:12]Sock 9.First char is OK [10:37:12]request: POST /json_proto HTTP/1.0 [10:37:12]Method: POST [10:37:12]URL: /json_proto [10:37:12]Method is POST - this is cgi request [10:37:12]url: /json_proto [10:37:12]query_string will be loaded in cgi processing [10:37:12]execute_cgi json_proto POST (null) [10:37:12]execute_cgi path=json_proto method=POST [10:37:12]POST find Content-Length [10:37:12]Host: 172.17.55.133:8080 [10:37:12]Content-Length: 679 [10:37:12]Content-Type: application/json [10:37:12] [10:37:12]POST finish read [10:37:12]Found Content-Length = 679 [10:37:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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:37:12]execute_script... [10:37:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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:37:12]POST & json_proto [10:37:12]process_json_proto [10:37:12]json parsed OK: [10:37:12]protocol is kg_v1.0 [10:37:12]action value=close_receipt [10:37:12]process_action close_receipt [10:37:12]cmd_close_receipt [10:37:12]MH_GetDate [10:37:12]Write to MH i2c: F0 00 00 A4 67 FA [10:37:12]Write i2c OK [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: F0 [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: F0 09 00 [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: F0 09 00 A4 67 00 DD CE C1 66 34 48 D8 65 8E [10:37:12]GetLastDocTimeStamp 1723977354 [10:37:12]current date 1723977437 [10:37:12]FM_GetShiftState [10:37:12]SAM_PROTO_GetShiftState [10:37:12]wFMCommunicate request_size=4 [10:37:12]MH_SAM_APDU [10:37:12]CAPDU: 80 13 01 00 [10:37:12]Write to MH i2c: E2 08 00 A5 67 80 13 01 00 00 00 00 00 89 [10:37:12]Write i2c OK [10:37:12]MH_I2C_Read... [10:37:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:12]Read from MH i2c: E2 [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: E2 0E 00 [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: E2 0E 00 A5 67 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C6 [10:37:12]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:37:12]wFMCommunicate OK [10:37:12]SAM_PROTO_GetShiftState done [10:37:12]FM_GetShiftState done [10:37:12]opened in 1723940556 [10:37:12]opened+sec_in_day 1724026956 [10:37:12]quantity*price = 70037 [10:37:12]sum+1 = 70038 [10:37:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 154 18.08.2024 10:37 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260596 ФПД: 86420913066103 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T103717&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260596&fm=86420913066103&tin=02508201610067®Number=0000000000091865&sum=70000 [10:37:13]StoreToDocumentArchive [10:37:13]shift 449 fd 260596 [10:37:13]save to /storage/0449/doc_00260596 [10:37:13]save last doc name /storage/0449/doc_00260596 to /storage/kkm_last_doc_name [10:37:13]save OK [10:37:13]Clear old archive folders... [10:37:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:37:13]tlvbuf is 003651F0 [10:37:13]SAM_PROTO_ClearQueue [10:37:13]wFMCommunicate request_size=4 [10:37:13]MH_SAM_APDU [10:37:13]CAPDU: 80 09 00 00 [10:37:13]Write to MH i2c: E2 08 00 B2 67 80 09 00 00 00 00 00 00 8B [10:37:13]Write i2c OK [10:37:13]MH_I2C_Read... [10:37:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:13]Read from MH i2c: E2 [10:37:13]MH_I2C_Read... [10:37:13]Read from MH i2c: E2 03 00 [10:37:13]MH_I2C_Read... [10:37:13]Read from MH i2c: E2 03 00 B2 67 00 90 00 8D [10:37:13]RAPDU: 90 00 [10:37:13]wFMCommunicate OK [10:37:13]SAM_PROTO_ClearQueue done [10:37:13]KKMCreateOFDPacket [10:37:13]OFDProtocolAddRootSTLVToBuf [10:37:13]FM_MakeSignedData [10:37:13]FM_MakeSignedData [10:37:13]SAM_PROTO_SignData [10:37:13]wFMCommunicate request_size=4 [10:37:13]MH_SAM_APDU [10:37:13]CAPDU: 80 0D 01 02 [10:37:13]Write to MH i2c: E2 08 00 B3 67 80 0D 01 02 00 00 00 00 93 [10:37:13]Write i2c OK [10:37:13]MH_I2C_Read... [10:37:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:14]Read from MH i2c: E2 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 03 00 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 03 00 B3 67 00 90 00 8E [10:37:14]RAPDU: 90 00 [10:37:14]wFMCommunicate OK [10:37:14]wFMCommunicate request_size=255 [10:37:14]MH_SAM_APDU [10:37:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 9A 00 00 00 F4 03 04 00 DD CE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F4 F9 03 00 35 04 06 00 4E [10:37:14]Write to MH i2c: E2 02 01 B4 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 9A 00 00 00 F4 03 04 00 DD CE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F4 F9 03 00 35 04 06 00 4E 00 00 63 [10:37:14]Write i2c OK [10:37:14]MH_I2C_Read... [10:37:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:14]Read from MH i2c: E2 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 03 00 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 03 00 B4 67 00 90 00 8F [10:37:14]RAPDU: 90 00 [10:37:14]wFMCommunicate OK [10:37:14]wFMCommunicate request_size=10 [10:37:14]MH_SAM_APDU [10:37:14]CAPDU: 80 0D 02 02 05 99 6F D3 10 77 [10:37:14]Write to MH i2c: E2 0D 00 B5 67 80 0D 02 02 05 00 99 6F D3 10 77 00 00 02 [10:37:14]Write i2c OK [10:37:14]MH_I2C_Read... [10:37:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:14]Read from MH i2c: E2 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 03 00 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 03 00 B5 67 00 90 00 90 [10:37:14]RAPDU: 90 00 [10:37:14]wFMCommunicate OK [10:37:14]wFMCommunicate request_size=4 [10:37:14]MH_SAM_APDU [10:37:14]CAPDU: 80 0D 03 02 [10:37:14]Write to MH i2c: E2 08 00 B6 67 80 0D 03 02 00 00 00 00 98 [10:37:14]Write i2c OK [10:37:14]MH_I2C_Read... [10:37:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:14]Read from MH i2c: E2 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 0B 00 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 0B 00 B6 67 00 72 59 7F BF 2F 36 EA F6 90 00 E7 [10:37:14]RAPDU: 72 59 7F BF 2F 36 EA F6 90 00 [10:37:14]wFMCommunicate OK [10:37:14]SAM_PROTO_SignData done [10:37:14]FM_MakeSignedData done [10:37:14]CreateOFDProtocolMessage [10:37:14]wFMCommunicate request_size=4 [10:37:14]MH_SAM_APDU [10:37:14]CAPDU: 80 11 00 00 [10:37:14]Write to MH i2c: E2 08 00 B7 67 80 11 00 00 00 00 00 00 98 [10:37:14]Write i2c OK [10:37:14]MH_I2C_Read... [10:37:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:14]Read from MH i2c: E2 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 17 00 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 17 00 B7 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E5 [10:37:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:37:14]wFMCommunicate OK [10:37:14]CreateOFDProtocolMessage done [10:37:14]OFDSenderStorePacket 260596 [10:37:14]StoreOFDPacket docnum=260596 [10:37:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 5A 68 07 01 48 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 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 9A 00 00 00 F4 03 04 00 DD CE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F4 F9 03 00 35 04 06 00 4E 99 6F D3 10 77 72 59 7F BF 2F 36 EA F6 [10:37:14]CheckFolder [10:37:14]dirname=/storage/ofd_packets [10:37:14]CheckFolder done [10:37:14]ProducePacketName [10:37:14]name=ofd_packets/00260596 [10:37:14]NVStorageSaveData ofd_packets/00260596 [10:37:14]File name is /storage/ofd_packets/00260596 [10:37:14]Write 301 bytes [10:37:14]NVStorageSaveData done [10:37:14]OFDSenderStorePacket done [10:37:14]KKMCreateOFDPacket done [10:37:14]NVStorageSaveData kkm_last_timestamp [10:37:14]File name is /storage/kkm_last_timestamp [10:37:14]Write 4 bytes [10:37:14]NVStorageSaveData done [10:37:14]ExternCall_PrintAddStr [10:37:14]wPrintStart [10:37:14]Write to MH i2c: 01 00 00 B8 67 1F [10:37:14]Write i2c OK [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: 01 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: 01 07 00 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: 01 07 00 B8 67 00 00 00 00 00 FF 0F 34 [10:37:14]RasterBufferAndPrint [10:37:14]line Счет N : (1)1036141 [10:37:14]line ИНН: 02508201610067 [10:37:14]line Контрольно-Кассовый Чек [10:37:14]line ПРОДАЖА [10:37:14]line ТРК (МРК, ГНК) : 12 [10:37:14]line Товар: 2710124130 [10:37:14]line Аи-92-К-5 [10:37:14]line 10.330 * 67.80 [10:37:14]line = 700.37 [10:37:14]line НДС 12% НСП 1% [10:37:14]line > о реализуемом товаре [10:37:14]line ОКРУГЛЕНИЕ: -0.37 [10:37:14]line ИТОГО: 700.00 [10:37:14]line Внесено: 700.00 [10:37:14]line СДАЧА: 0.00 [10:37:14]line НСП 1% : 6.20 [10:37:14]line НДС 12% : 74.38 [10:37:14]line Наличными: 700.00 [10:37:14]line Безнал.: 0.00 [10:37:14]line Место: АЗС № 94 "Партнер Нефть" [10:37:14]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [10:37:14]line СНО: Общий режим [10:37:14]line Чек 154 18.08.2024 10:37 [10:37:14]line Смена: 449 ФФД: 1.0 [10:37:14]line ЗНМ: 0300000099 [10:37:14]line РНМ: 0000000000091865 [10:37:14]line Версия ККМ: 001 [10:37:14]line ФМ: 0000000000871820 [10:37:14]line ФД: 260596 [10:37:14]line ФПД: 86420913066103 [10:37:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T103717&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260596&fm=86420913066103&tin=02508201610067®Number=0000000000091865&sum=70000 [10:37:14]written 0, free lines is 4095 [10:37:14]OFD Sender: Processing packet 260596 [packets to send 192, broken 191] [10:37:14]ProducePacketName [10:37:14]name=ofd_packets/00260596 [10:37:14]OFD Sender: To server: pG, [10:37:14]CommunicateWithHost lk.salyk.kg:30040 [10:37:14]ConnectInit lk.salyk.kg [10:37:14]Connected sock=10 [10:37: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 30 0F 01 00 00 5A 68 07 01 48 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 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 9A 00 00 00 F4 03 04 00 DD CE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F4 F9 03 00 35 04 06 00 4E 99 6F D3 10 77 72 59 7F BF 2F 36 EA F6 [10:37: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 30 4F 00 00 00 B1 C4 47 00 48 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 30 10 04 04 00 F4 F9 03 00 F4 03 04 00 32 78 C1 66 B6 04 01 00 00 55 44 3C A2 01 81 0C 12 [10:37:14]CommunicateWithHost err = 0 [10:37:14]CheckOFDResponse [10:37:14]1017 (14) - 77093643461234 [10:37:14]1041 (16) - 0000000000871820 [10:37:14]1040 (4) - 260596 [10:37:14]1012 (4) - 18.08.2024 04:27 [10:37:14]1206 (1) - 0 [10:37:14]OFD Sender: Remove packet 260596 [10:37:14]ProducePacketName [10:37:14]name=ofd_packets/00260596 [10:37:14]NVStorageDeleteData [10:37:14]Write to MH i2c: 01 00 00 E3 67 4A [10:37:14]Write i2c OK [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: 01 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: 01 07 00 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: 01 07 00 E3 67 00 00 00 00 00 67 0C C4 [10:37:14]RasterBufferAndPrint [10:37:14]line [10:37:14]line [10:37:14]line [10:37:14]line [10:37:14]line [10:37:14]written 0, free lines is 3179 [10:37:14]MH_Cut [10:37:14]Write to MH i2c: D1 01 00 EA 67 01 23 [10:37:14]Write i2c OK [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: D1 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: D1 01 00 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: D1 01 00 EA 67 00 22 [10:37:14]Write to MH i2c: 01 00 00 EB 67 52 [10:37:14]Write i2c OK [10:37:14]MH_I2C_Read... [10:37:15]OFD Sender: No OFD packet to send [10:37:16]*** Cut start [10:37:16]*** Purtial cut [10:37:16]*** Stage 1: CUTSNS_PIN = 1 [10:37:18]Read from MH i2c: 01 [10:37:18]MH_I2C_Read... [10:37:18]*** Stop cut motor [10:37:18]*** Cut end [10:37:18]Read from MH i2c: 01 07 00 [10:37:18]MH_I2C_Read... [10:37:18]Read from MH i2c: 01 07 00 EB 67 00 00 00 00 00 FF 0F 67 [10:37:18]process_action close_receipt done [10:37:18]requested_data is exist [10:37:18]produce_requested_data [10:37:18]requested_item fm.sn is exist - process it [10:37:18]wFMCommunicate request_size=4 [10:37:18]MH_SAM_APDU [10:37:18]CAPDU: 80 11 00 00 [10:37:18]Write to MH i2c: E2 08 00 EC 67 80 11 00 00 00 00 00 00 CD [10:37:18]Write i2c OK [10:37:18]MH_I2C_Read... [10:37:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:18]Read from MH i2c: E2 [10:37:18]MH_I2C_Read... [10:37:18]Read from MH i2c: E2 17 00 [10:37:18]MH_I2C_Read... [10:37:18]Read from MH i2c: E2 17 00 EC 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 1A [10:37:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:37:18]wFMCommunicate OK [10:37:18]requested_item fd.num is exist - process it [10:37:18]SAM_PROTO_GetFieldsCounters [10:37:18]wFMCommunicate request_size=4 [10:37:18]MH_SAM_APDU [10:37:18]CAPDU: 80 13 00 00 [10:37:18]Write to MH i2c: E2 08 00 ED 67 80 13 00 00 00 00 00 00 D0 [10:37:18]Write i2c OK [10:37:18]MH_I2C_Read... [10:37:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:18]Read from MH i2c: E2 [10:37:18]MH_I2C_Read... [10:37:18]Read from MH i2c: E2 62 00 [10:37:18]MH_I2C_Read... [10:37:18]Read from MH i2c: E2 62 00 ED 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F4 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [10:37: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F4 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:37:18]wFMCommunicate OK [10:37:18]SAM_PROTO_GetFieldsCounters done [10:37:18]requested_item shift.num is exist - process it [10:37:18]requested_item shift.opened is exist - process it [10:37:18]req_shift_opened [10:37:18]FM_GetShiftState [10:37:18]SAM_PROTO_GetShiftState [10:37:18]wFMCommunicate request_size=4 [10:37:18]MH_SAM_APDU [10:37:18]CAPDU: 80 13 01 00 [10:37:18]Write to MH i2c: E2 08 00 EE 67 80 13 01 00 00 00 00 00 D2 [10:37:18]Write i2c OK [10:37:18]MH_I2C_Read... [10:37:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:18]Read from MH i2c: E2 [10:37:18]MH_I2C_Read... [10:37:18]Read from MH i2c: E2 0E 00 [10:37:18]MH_I2C_Read... [10:37:18]Read from MH i2c: E2 0E 00 EE 67 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 0F [10:37:18]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:37:18]wFMCommunicate OK [10:37:18]SAM_PROTO_GetShiftState done [10:37:18]FM_GetShiftState done [10:37:18]req_shift_opened done [10:37:18]requested_item shift.open_date is exist - process it [10:37:18]req_shift_open_date [10:37:18]req_shift_open_date done [10:37:18]produce_requested_data done [10:37:18]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260596,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [10:37:18]process_action_free close_receipt [10:37:18]json_value_free [10:37:18]json_value_free done [10:37:18]process_json_proto returns [10:37:18]Send response to host [10:37:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260596,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [10:37:18]free response buf [10:37:18]execute_script done [10:37:18]execute_script returns [10:37:18]free content buf [10:37:18]Sock 9.Close socket [10:37:18]Sock 9.Thread stoped [10:37:20]OFD Sender: No OFD packet to send [10:37:25]OFD Sender: No OFD packet to send [10:37:30]OFD Sender: No OFD packet to send [10:37:35]OFD Sender: No OFD packet to send [10:37:40]OFD Sender: No OFD packet to send [10:37:45]OFD Sender: No OFD packet to send [10:37:50]OFD Sender: No OFD packet to send [10:37:55]OFD Sender: No OFD packet to send [10:38:00]OFD Sender: No OFD packet to send [10:38:05]OFD Sender: No OFD packet to send [10:38:10]OFD Sender: No OFD packet to send [10:38:11]accept exits with 7 [10:38:11]New connection [10:38:11]New thread 3066617188 created [10:38:11]Thread 3066473828 joined [10:38:11]Waiting for new connection... [10:38:11] Sock 7.Parse request [10:38:11]Sock 7.Check first char [10:38:11]Sock 7.First char is OK [10:38:11]request: POST /json_proto HTTP/1.0 [10:38:11]Method: POST [10:38:11]URL: /json_proto [10:38:11]Method is POST - this is cgi request [10:38:11]url: /json_proto [10:38:11]query_string will be loaded in cgi processing [10:38:11]execute_cgi json_proto POST (null) [10:38:11]execute_cgi path=json_proto method=POST [10:38:11]POST find Content-Length [10:38:11]Host: 172.17.55.133:8080 [10:38:11]Content-Length: 679 [10:38:11]Content-Type: application/json [10:38:11] [10:38:11]POST finish read [10:38:11]Found Content-Length = 679 [10:38:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:11]execute_script... [10:38: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)1036142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:11]POST & json_proto [10:38:11]process_json_proto [10:38:11]json parsed OK: [10:38:11]protocol is kg_v1.0 [10:38:11]action value=close_receipt [10:38:11]process_action close_receipt [10:38:11]cmd_close_receipt [10:38:11]MH_GetDate [10:38:11]Write to MH i2c: F0 00 00 EF 67 45 [10:38:11]Write i2c OK [10:38:11]MH_I2C_Read... [10:38:11]Read from MH i2c: F0 [10:38:11]MH_I2C_Read... [10:38:11]Read from MH i2c: F0 09 00 [10:38:11]MH_I2C_Read... [10:38:11]Read from MH i2c: F0 09 00 EF 67 00 18 CF C1 66 34 48 D8 65 15 [10:38:11]GetLastDocTimeStamp 1723977437 [10:38:11]current date 1723977496 [10:38:11]FM_GetShiftState [10:38:11]SAM_PROTO_GetShiftState [10:38:11]wFMCommunicate request_size=4 [10:38:11]MH_SAM_APDU [10:38:11]CAPDU: 80 13 01 00 [10:38:11]Write to MH i2c: E2 08 00 F0 67 80 13 01 00 00 00 00 00 D4 [10:38:11]Write i2c OK [10:38:11]MH_I2C_Read... [10:38:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:11]Read from MH i2c: E2 [10:38:11]MH_I2C_Read... [10:38:11]Read from MH i2c: E2 0E 00 [10:38:11]MH_I2C_Read... [10:38:11]Read from MH i2c: E2 0E 00 F0 67 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 11 [10:38:11]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:38:11]wFMCommunicate OK [10:38:11]SAM_PROTO_GetShiftState done [10:38:11]FM_GetShiftState done [10:38:11]opened in 1723940556 [10:38:11]opened+sec_in_day 1724026956 [10:38:11]quantity*price = 70037 [10:38:11]sum+1 = 70038 [10:38:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 155 18.08.2024 10:38 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260597 ФПД: 134346721648983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T103816&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260597&fm=134346721648983&tin=02508201610067®Number=0000000000091865&sum=70000 [10:38:12]StoreToDocumentArchive [10:38:12]shift 449 fd 260597 [10:38:12]save to /storage/0449/doc_00260597 [10:38:12]save last doc name /storage/0449/doc_00260597 to /storage/kkm_last_doc_name [10:38:12]save OK [10:38:12]Clear old archive folders... [10:38:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:38:12]tlvbuf is 004A23C0 [10:38:12]SAM_PROTO_ClearQueue [10:38:12]wFMCommunicate request_size=4 [10:38:12]MH_SAM_APDU [10:38:12]CAPDU: 80 09 00 00 [10:38:12]Write to MH i2c: E2 08 00 FD 67 80 09 00 00 00 00 00 00 D6 [10:38:12]Write i2c OK [10:38:12]MH_I2C_Read... [10:38:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:12]Read from MH i2c: E2 [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: E2 03 00 [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: E2 03 00 FD 67 00 90 00 D8 [10:38:12]RAPDU: 90 00 [10:38:12]wFMCommunicate OK [10:38:12]SAM_PROTO_ClearQueue done [10:38:12]KKMCreateOFDPacket [10:38:12]OFDProtocolAddRootSTLVToBuf [10:38:12]FM_MakeSignedData [10:38:12]FM_MakeSignedData [10:38:12]SAM_PROTO_SignData [10:38:12]wFMCommunicate request_size=4 [10:38:12]MH_SAM_APDU [10:38:12]CAPDU: 80 0D 01 02 [10:38:12]Write to MH i2c: E2 08 00 FE 67 80 0D 01 02 00 00 00 00 DE [10:38:12]Write i2c OK [10:38:12]MH_I2C_Read... [10:38:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:13]Read from MH i2c: E2 [10:38:13]MH_I2C_Read... [10:38:13]Read from MH i2c: E2 03 00 [10:38:13]MH_I2C_Read... [10:38:13]Read from MH i2c: E2 03 00 FE 67 00 90 00 D9 [10:38:13]RAPDU: 90 00 [10:38:13]wFMCommunicate OK [10:38:13]wFMCommunicate request_size=255 [10:38:13]MH_SAM_APDU [10:38:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 9B 00 00 00 F4 03 04 00 18 CF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F5 F9 03 00 35 04 06 00 7A [10:38:13]Write to MH i2c: E2 02 01 FF 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 9B 00 00 00 F4 03 04 00 18 CF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F5 F9 03 00 35 04 06 00 7A 00 00 18 [10:38:13]Write i2c OK [10:38:13]MH_I2C_Read... [10:38:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:13]Read from MH i2c: E2 [10:38:13]MH_I2C_Read... [10:38:13]Read from MH i2c: E2 03 00 [10:38:13]MH_I2C_Read... [10:38:13]Read from MH i2c: E2 03 00 FF 67 00 90 00 DA [10:38:13]RAPDU: 90 00 [10:38:13]wFMCommunicate OK [10:38:13]wFMCommunicate request_size=10 [10:38:13]MH_SAM_APDU [10:38:13]CAPDU: 80 0D 02 02 05 30 08 9E E1 57 [10:38:13]Write to MH i2c: E2 0D 00 00 68 80 0D 02 02 05 00 30 08 9E E1 57 00 00 FA [10:38:13]Write i2c OK [10:38:13]MH_I2C_Read... [10:38:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:13]Read from MH i2c: E2 [10:38:13]MH_I2C_Read... [10:38:13]Read from MH i2c: E2 03 00 [10:38:13]MH_I2C_Read... [10:38:13]Read from MH i2c: E2 03 00 00 68 00 90 00 DC [10:38:13]RAPDU: 90 00 [10:38:13]wFMCommunicate OK [10:38:13]wFMCommunicate request_size=4 [10:38:13]MH_SAM_APDU [10:38:13]CAPDU: 80 0D 03 02 [10:38:13]Write to MH i2c: E2 08 00 01 68 80 0D 03 02 00 00 00 00 E4 [10:38:13]Write i2c OK [10:38:13]MH_I2C_Read... [10:38:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:13]Read from MH i2c: E2 [10:38:13]MH_I2C_Read... [10:38:13]Read from MH i2c: E2 0B 00 [10:38:13]MH_I2C_Read... [10:38:13]Read from MH i2c: E2 0B 00 01 68 00 0B 26 42 D3 7F 87 85 D2 90 00 88 [10:38:13]RAPDU: 0B 26 42 D3 7F 87 85 D2 90 00 [10:38:13]wFMCommunicate OK [10:38:13]SAM_PROTO_SignData done [10:38:13]FM_MakeSignedData done [10:38:13]CreateOFDProtocolMessage [10:38:13]wFMCommunicate request_size=4 [10:38:13]MH_SAM_APDU [10:38:13]CAPDU: 80 11 00 00 [10:38:13]Write to MH i2c: E2 08 00 02 68 80 11 00 00 00 00 00 00 E4 [10:38:13]Write i2c OK [10:38:13]MH_I2C_Read... [10:38:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:13]Read from MH i2c: E2 [10:38:13]MH_I2C_Read... [10:38:13]Read from MH i2c: E2 17 00 [10:38:13]MH_I2C_Read... [10:38:13]Read from MH i2c: E2 17 00 02 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 31 [10:38:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:38:13]wFMCommunicate OK [10:38:13]CreateOFDProtocolMessage done [10:38:13]OFDSenderStorePacket 260597 [10:38:13]StoreOFDPacket docnum=260597 [10:38:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 D9 5A 07 01 D0 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 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 9B 00 00 00 F4 03 04 00 18 CF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F5 F9 03 00 35 04 06 00 7A 30 08 9E E1 57 0B 26 42 D3 7F 87 85 D2 [10:38:13]CheckFolder [10:38:13]dirname=/storage/ofd_packets [10:38:13]CheckFolder done [10:38:13]ProducePacketName [10:38:13]name=ofd_packets/00260597 [10:38:13]NVStorageSaveData ofd_packets/00260597 [10:38:13]File name is /storage/ofd_packets/00260597 [10:38:13]Write 301 bytes [10:38:13]NVStorageSaveData done [10:38:13]OFDSenderStorePacket done [10:38:13]KKMCreateOFDPacket done [10:38:13]NVStorageSaveData kkm_last_timestamp [10:38:13]File name is /storage/kkm_last_timestamp [10:38:13]Write 4 bytes [10:38:13]NVStorageSaveData done [10:38:13]ExternCall_PrintAddStr [10:38:13]wPrintStart [10:38:13]Write to MH i2c: 01 00 00 03 68 6B [10:38:13]Write i2c OK [10:38:13]MH_I2C_Read... [10:38:13]Read from MH i2c: 01 [10:38:13]MH_I2C_Read... [10:38:13]Read from MH i2c: 01 07 00 [10:38:13]MH_I2C_Read... [10:38:13]Read from MH i2c: 01 07 00 03 68 00 00 00 00 00 FF 0F 80 [10:38:13]RasterBufferAndPrint [10:38:13]line Счет N : (1)1036142 [10:38:13]line ИНН: 02508201610067 [10:38:13]line Контрольно-Кассовый Чек [10:38:13]line ПРОДАЖА [10:38:13]line ТРК (МРК, ГНК) : 22 [10:38:13]line Товар: 2710124130 [10:38:13]line Аи-92-К-5 [10:38:13]line 10.330 * 67.80 [10:38:13]line = 700.37 [10:38:13]line НДС 12% НСП 1% [10:38:13]line > о реализуемом товаре [10:38:13]line ОКРУГЛЕНИЕ: -0.37 [10:38:13]line ИТОГО: 700.00 [10:38:13]line Внесено: 700.00 [10:38:13]line СДАЧА: 0.00 [10:38:13]line НСП 1% : 6.20 [10:38:13]line НДС 12% : 74.38 [10:38:13]line Наличными: 700.00 [10:38:13]line Безнал.: 0.00 [10:38:13]line Место: АЗС № 94 "Партнер Нефть" [10:38:13]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [10:38:13]line СНО: Общий режим [10:38:13]line Чек 155 18.08.2024 10:38 [10:38:13]line Смена: 449 ФФД: 1.0 [10:38:13]line ЗНМ: 0300000099 [10:38:13]line РНМ: 0000000000091865 [10:38:13]line Версия ККМ: 001 [10:38:13]line ФМ: 0000000000871820 [10:38:13]line ФД: 260597 [10:38:13]line ФПД: 134346721648983 [10:38:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T103816&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260597&fm=134346721648983&tin=02508201610067®Number=0000000000091865&sum=70000 [10:38:13]written 0, free lines is 4095 [10:38:13]OFD Sender: Processing packet 260597 [packets to send 192, broken 191] [10:38:13]ProducePacketName [10:38:13]name=ofd_packets/00260597 [10:38:13]OFD Sender: To server: pG, [10:38:13]CommunicateWithHost lk.salyk.kg:30040 [10:38:13]ConnectInit lk.salyk.kg [10:38:13]Connected sock=10 [10:38: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 30 0F 01 00 00 D9 5A 07 01 D0 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 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 9B 00 00 00 F4 03 04 00 18 CF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F5 F9 03 00 35 04 06 00 7A 30 08 9E E1 57 0B 26 42 D3 7F 87 85 D2 [10:38: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 30 4F 00 00 00 BB A7 47 00 FB 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 30 10 04 04 00 F5 F9 03 00 F4 03 04 00 6D 78 C1 66 B6 04 01 00 00 EF 4B 58 46 90 87 9D 41 [10:38:13]CommunicateWithHost err = 0 [10:38:13]CheckOFDResponse [10:38:13]1017 (14) - 77093643461234 [10:38:13]1041 (16) - 0000000000871820 [10:38:13]1040 (4) - 260597 [10:38:13]1012 (4) - 18.08.2024 04:28 [10:38:13]1206 (1) - 0 [10:38:13]OFD Sender: Remove packet 260597 [10:38:13]ProducePacketName [10:38:13]name=ofd_packets/00260597 [10:38:13]NVStorageDeleteData [10:38:13]Write to MH i2c: 01 00 00 2E 68 96 [10:38:13]Write i2c OK [10:38:13]MH_I2C_Read... [10:38:13]Read from MH i2c: 01 [10:38:13]MH_I2C_Read... [10:38:13]Read from MH i2c: 01 07 00 [10:38:13]MH_I2C_Read... [10:38:13]Read from MH i2c: 01 07 00 2E 68 00 00 00 00 00 6A 0C 13 [10:38:13]RasterBufferAndPrint [10:38:13]line [10:38:13]line [10:38:13]line [10:38:13]line [10:38:13]line [10:38:13]written 0, free lines is 3182 [10:38:13]MH_Cut [10:38:13]Write to MH i2c: D1 01 00 35 68 01 6F [10:38:13]Write i2c OK [10:38:13]MH_I2C_Read... [10:38:13]Read from MH i2c: D1 [10:38:13]MH_I2C_Read... [10:38:13]Read from MH i2c: D1 01 00 [10:38:13]MH_I2C_Read... [10:38:13]Read from MH i2c: D1 01 00 35 68 00 6E [10:38:13]Write to MH i2c: 01 00 00 36 68 9E [10:38:13]Write i2c OK [10:38:13]MH_I2C_Read... [10:38:14]OFD Sender: No OFD packet to send [10:38:15]*** Cut start [10:38:15]*** Purtial cut [10:38:15]*** Stage 1: CUTSNS_PIN = 1 [10:38:17]Read from MH i2c: 01 [10:38:17]MH_I2C_Read... [10:38:17]*** Stop cut motor [10:38:17]*** Cut end [10:38:17]Read from MH i2c: 01 07 00 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: 01 07 00 36 68 00 00 00 00 00 FF 0F B3 [10:38:17]process_action close_receipt done [10:38:17]requested_data is exist [10:38:17]produce_requested_data [10:38:17]requested_item fm.sn is exist - process it [10:38:17]wFMCommunicate request_size=4 [10:38:17]MH_SAM_APDU [10:38:17]CAPDU: 80 11 00 00 [10:38:17]Write to MH i2c: E2 08 00 37 68 80 11 00 00 00 00 00 00 19 [10:38:17]Write i2c OK [10:38:17]MH_I2C_Read... [10:38:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:17]Read from MH i2c: E2 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: E2 17 00 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: E2 17 00 37 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 66 [10:38:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:38:17]wFMCommunicate OK [10:38:17]requested_item fd.num is exist - process it [10:38:17]SAM_PROTO_GetFieldsCounters [10:38:17]wFMCommunicate request_size=4 [10:38:17]MH_SAM_APDU [10:38:17]CAPDU: 80 13 00 00 [10:38:17]Write to MH i2c: E2 08 00 38 68 80 13 00 00 00 00 00 00 1C [10:38:17]Write i2c OK [10:38:17]MH_I2C_Read... [10:38:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:17]Read from MH i2c: E2 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: E2 62 00 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: E2 62 00 38 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F5 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [10:38: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F5 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:17]wFMCommunicate OK [10:38:17]SAM_PROTO_GetFieldsCounters done [10:38:17]requested_item shift.num is exist - process it [10:38:17]requested_item shift.opened is exist - process it [10:38:17]req_shift_opened [10:38:17]FM_GetShiftState [10:38:17]SAM_PROTO_GetShiftState [10:38:17]wFMCommunicate request_size=4 [10:38:17]MH_SAM_APDU [10:38:17]CAPDU: 80 13 01 00 [10:38:17]Write to MH i2c: E2 08 00 39 68 80 13 01 00 00 00 00 00 1E [10:38:17]Write i2c OK [10:38:17]MH_I2C_Read... [10:38:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:17]Read from MH i2c: E2 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: E2 0E 00 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: E2 0E 00 39 68 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 5B [10:38:17]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:38:17]wFMCommunicate OK [10:38:17]SAM_PROTO_GetShiftState done [10:38:17]FM_GetShiftState done [10:38:17]req_shift_opened done [10:38:17]requested_item shift.open_date is exist - process it [10:38:17]req_shift_open_date [10:38:17]req_shift_open_date done [10:38:17]produce_requested_data done [10:38:17]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260597,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [10:38:17]process_action_free close_receipt [10:38:17]json_value_free [10:38:17]json_value_free done [10:38:17]process_json_proto returns [10:38:17]Send response to host [10:38:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260597,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [10:38:17]free response buf [10:38:17]execute_script done [10:38:17]execute_script returns [10:38:17]free content buf [10:38:17]Sock 7.Close socket [10:38:17]Sock 7.Thread stoped [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]OFD Sender: No OFD packet to send [10:38:39]OFD Sender: No OFD packet to send [10:38:44]OFD Sender: No OFD packet to send [10:38:49]OFD Sender: No OFD packet to send [10:38:51]accept exits with 9 [10:38:51]New connection [10:38:51]New thread 3066473828 created [10:38:51]Thread 3066617188 joined [10:38:51]Waiting for new connection... [10:38:51] Sock 9.Parse request [10:38:51]Sock 9.Check first char [10:38:51]Sock 9.First char is OK [10:38:51]request: POST /json_proto HTTP/1.0 [10:38:51]Method: POST [10:38:51]URL: /json_proto [10:38:51]Method is POST - this is cgi request [10:38:51]url: /json_proto [10:38:51]query_string will be loaded in cgi processing [10:38:51]execute_cgi json_proto POST (null) [10:38:51]execute_cgi path=json_proto method=POST [10:38:51]POST find Content-Length [10:38:51]Host: 172.17.55.133:8080 [10:38:51]Content-Length: 688 [10:38:51]Content-Type: application/json [10:38:51] [10:38:51]POST finish read [10:38:51]Found Content-Length = 688 [10:38:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:51]execute_script... [10: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)1036143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:51]POST & json_proto [10:38:51]process_json_proto [10:38:51]json parsed OK: [10:38:51]protocol is kg_v1.0 [10:38:51]action value=close_receipt [10:38:51]process_action close_receipt [10:38:51]cmd_close_receipt [10:38:51]MH_GetDate [10:38:51]Write to MH i2c: F0 00 00 3A 68 91 [10:38:51]Write i2c OK [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: F0 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: F0 09 00 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: F0 09 00 3A 68 00 3F CF C1 66 34 48 D8 65 88 [10:38:51]GetLastDocTimeStamp 1723977496 [10:38:51]current date 1723977535 [10:38:51]FM_GetShiftState [10:38:51]SAM_PROTO_GetShiftState [10:38:51]wFMCommunicate request_size=4 [10:38:51]MH_SAM_APDU [10:38:51]CAPDU: 80 13 01 00 [10:38:51]Write to MH i2c: E2 08 00 3B 68 80 13 01 00 00 00 00 00 20 [10:38:51]Write i2c OK [10:38:51]MH_I2C_Read... [10:38:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:51]Read from MH i2c: E2 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: E2 0E 00 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: E2 0E 00 3B 68 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 5D [10:38:51]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:38:51]wFMCommunicate OK [10:38:51]SAM_PROTO_GetShiftState done [10:38:51]FM_GetShiftState done [10:38:51]opened in 1723940556 [10:38:51]opened+sec_in_day 1724026956 [10:38:51]quantity*price = 100050 [10:38:51]sum+1 = 100052 [10:38:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 156 18.08.2024 10:38 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260598 ФПД: 71910359673480 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T103855&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260598&fm=71910359673480&tin=02508201610067®Number=0000000000091865&sum=100000 [10:38:52]StoreToDocumentArchive [10:38:52]shift 449 fd 260598 [10:38:52]save to /storage/0449/doc_00260598 [10:38:52]save last doc name /storage/0449/doc_00260598 to /storage/kkm_last_doc_name [10:38:52]save OK [10:38:52]Clear old archive folders... [10:38:52]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:38:52]tlvbuf is 00336510 [10:38:52]SAM_PROTO_ClearQueue [10:38:52]wFMCommunicate request_size=4 [10:38:52]MH_SAM_APDU [10:38:52]CAPDU: 80 09 00 00 [10:38:52]Write to MH i2c: E2 08 00 48 68 80 09 00 00 00 00 00 00 22 [10:38:52]Write i2c OK [10:38:52]MH_I2C_Read... [10:38:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:52]Read from MH i2c: E2 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: E2 03 00 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: E2 03 00 48 68 00 90 00 24 [10:38:52]RAPDU: 90 00 [10:38:52]wFMCommunicate OK [10:38:52]SAM_PROTO_ClearQueue done [10:38:52]KKMCreateOFDPacket [10:38:52]OFDProtocolAddRootSTLVToBuf [10:38:52]FM_MakeSignedData [10:38:52]FM_MakeSignedData [10:38:52]SAM_PROTO_SignData [10:38:52]wFMCommunicate request_size=4 [10:38:52]MH_SAM_APDU [10:38:52]CAPDU: 80 0D 01 02 [10:38:52]Write to MH i2c: E2 08 00 49 68 80 0D 01 02 00 00 00 00 2A [10:38:52]Write i2c OK [10:38:52]MH_I2C_Read... [10:38:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:52]Read from MH i2c: E2 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: E2 03 00 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: E2 03 00 49 68 00 90 00 25 [10:38:52]RAPDU: 90 00 [10:38:52]wFMCommunicate OK [10:38:52]wFMCommunicate request_size=255 [10:38:52]MH_SAM_APDU [10:38:52]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 3F CF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F6 F9 03 00 35 04 06 00 [10:38:52]Write to MH i2c: E2 02 01 4A 68 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 3F CF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F6 F9 03 00 35 04 06 00 00 00 19 [10:38:52]Write i2c OK [10:38:52]MH_I2C_Read... [10:38:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:52]Read from MH i2c: E2 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: E2 03 00 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: E2 03 00 4A 68 00 90 00 26 [10:38:52]RAPDU: 90 00 [10:38:52]wFMCommunicate OK [10:38:52]wFMCommunicate request_size=11 [10:38:52]MH_SAM_APDU [10:38:52]CAPDU: 80 0D 02 02 06 41 66 EF 71 AA 88 [10:38:52]Write to MH i2c: E2 0E 00 4B 68 80 0D 02 02 06 00 41 66 EF 71 AA 88 00 00 72 [10:38:52]Write i2c OK [10:38:52]MH_I2C_Read... [10:38:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:52]Read from MH i2c: E2 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: E2 03 00 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: E2 03 00 4B 68 00 90 00 27 [10:38:52]RAPDU: 90 00 [10:38:52]wFMCommunicate OK [10:38:52]wFMCommunicate request_size=4 [10:38:52]MH_SAM_APDU [10:38:52]CAPDU: 80 0D 03 02 [10:38:52]Write to MH i2c: E2 08 00 4C 68 80 0D 03 02 00 00 00 00 2F [10:38:52]Write i2c OK [10:38:52]MH_I2C_Read... [10:38:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:52]Read from MH i2c: E2 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: E2 0B 00 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: E2 0B 00 4C 68 00 3E 1C 8C 03 EB AB 98 AC 90 00 F3 [10:38:52]RAPDU: 3E 1C 8C 03 EB AB 98 AC 90 00 [10:38:52]wFMCommunicate OK [10:38:52]SAM_PROTO_SignData done [10:38:52]FM_MakeSignedData done [10:38:52]CreateOFDProtocolMessage [10:38:52]wFMCommunicate request_size=4 [10:38:52]MH_SAM_APDU [10:38:52]CAPDU: 80 11 00 00 [10:38:52]Write to MH i2c: E2 08 00 4D 68 80 11 00 00 00 00 00 00 2F [10:38:52]Write i2c OK [10:38:52]MH_I2C_Read... [10:38:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:52]Read from MH i2c: E2 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: E2 17 00 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: E2 17 00 4D 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 7C [10:38:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:38:52]wFMCommunicate OK [10:38:52]CreateOFDProtocolMessage done [10:38:52]OFDSenderStorePacket 260598 [10:38:52]StoreOFDPacket docnum=260598 [10: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 30 10 01 00 00 C4 C8 08 01 01 F3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 3F CF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F6 F9 03 00 35 04 06 00 41 66 EF 71 AA 88 3E 1C 8C 03 EB AB 98 AC [10:38:52]CheckFolder [10:38:52]dirname=/storage/ofd_packets [10:38:52]CheckFolder done [10:38:52]ProducePacketName [10:38:52]name=ofd_packets/00260598 [10:38:52]NVStorageSaveData ofd_packets/00260598 [10:38:52]File name is /storage/ofd_packets/00260598 [10:38:52]Write 302 bytes [10:38:52]NVStorageSaveData done [10:38:52]OFDSenderStorePacket done [10:38:52]KKMCreateOFDPacket done [10:38:52]NVStorageSaveData kkm_last_timestamp [10:38:52]File name is /storage/kkm_last_timestamp [10:38:52]Write 4 bytes [10:38:52]NVStorageSaveData done [10:38:52]ExternCall_PrintAddStr [10:38:52]wPrintStart [10:38:52]Write to MH i2c: 01 00 00 4E 68 B6 [10:38:52]Write i2c OK [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: 01 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: 01 07 00 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: 01 07 00 4E 68 00 00 00 00 00 FF 0F CB [10:38:52]RasterBufferAndPrint [10:38:52]line Счет N : (1)1036143 [10:38:52]line ИНН: 02508201610067 [10:38:52]line Контрольно-Кассовый Чек [10:38:52]line ПРОДАЖА [10:38:52]line ТРК (МРК, ГНК) : 43 [10:38:52]line Товар: 2710194210 [10:38:52]line ДТ(л)-К-4 [10:38:52]line 13.130 * 76.20 [10:38:52]line = 1000.51 [10:38:52]line НДС 12% НСП 1% [10:38:52]line > о реализуемом товаре [10:38:52]line ОКРУГЛЕНИЕ: -0.51 [10:38:52]line ИТОГО: 1000.00 [10:38:52]line Внесено: 1000.00 [10:38:52]line СДАЧА: 0.00 [10:38:52]line НСП 1% : 8.85 [10:38:52]line НДС 12% : 106.25 [10:38:52]line Наличными: 1000.00 [10:38:52]line Безнал.: 0.00 [10:38:52]line Место: АЗС № 94 "Партнер Нефть" [10:38:52]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [10:38:52]line СНО: Общий режим [10:38:52]line Чек 156 18.08.2024 10:38 [10:38:52]line Смена: 449 ФФД: 1.0 [10:38:52]line ЗНМ: 0300000099 [10:38:52]line РНМ: 0000000000091865 [10:38:52]line Версия ККМ: 001 [10:38:52]line ФМ: 0000000000871820 [10:38:52]line ФД: 260598 [10:38:52]line ФПД: 71910359673480 [10:38:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T103855&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260598&fm=71910359673480&tin=02508201610067®Number=0000000000091865&sum=100000 [10:38:53]OFD Sender: Processing packet 260598 [packets to send 192, broken 191] [10:38:53]ProducePacketName [10:38:53]name=ofd_packets/00260598 [10:38:53]OFD Sender: To server: pG, [10:38:53]CommunicateWithHost lk.salyk.kg:30040 [10:38:53]ConnectInit lk.salyk.kg [10:38:53]written 0, free lines is 4095 [10:38:53]Connected sock=10 [10: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 30 10 01 00 00 C4 C8 08 01 01 F3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 3F CF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F6 F9 03 00 35 04 06 00 41 66 EF 71 AA 88 3E 1C 8C 03 EB AB 98 AC [10: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 30 4F 00 00 00 FD 1D 47 00 7D 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 F6 F9 03 00 F4 03 04 00 94 78 C1 66 B6 04 01 00 00 7C 6F E2 D2 78 4D 37 F5 [10:38:53]CommunicateWithHost err = 0 [10:38:53]CheckOFDResponse [10:38:53]1017 (14) - 77093643461234 [10:38:53]1041 (16) - 0000000000871820 [10:38:53]1040 (4) - 260598 [10:38:53]1012 (4) - 18.08.2024 04:29 [10:38:53]1206 (1) - 0 [10:38:53]OFD Sender: Remove packet 260598 [10:38:53]ProducePacketName [10:38:53]name=ofd_packets/00260598 [10:38:53]NVStorageDeleteData [10:38:53]Write to MH i2c: 01 00 00 79 68 E1 [10:38:53]Write i2c OK [10:38:53]MH_I2C_Read... [10:38:53]Read from MH i2c: 01 [10:38:53]MH_I2C_Read... [10:38:53]Read from MH i2c: 01 07 00 [10:38:53]MH_I2C_Read... [10:38:53]Read from MH i2c: 01 07 00 79 68 00 00 00 00 00 6D 0C 61 [10:38:53]RasterBufferAndPrint [10:38:53]line [10:38:53]line [10:38:53]line [10:38:53]line [10:38:53]line [10:38:53]written 0, free lines is 3184 [10:38:53]MH_Cut [10:38:53]Write to MH i2c: D1 01 00 80 68 01 BA [10:38:53]Write i2c OK [10:38:53]MH_I2C_Read... [10:38:53]Read from MH i2c: D1 [10:38:53]MH_I2C_Read... [10:38:53]Read from MH i2c: D1 01 00 [10:38:53]MH_I2C_Read... [10:38:53]Read from MH i2c: D1 01 00 80 68 00 B9 [10:38:53]Write to MH i2c: 01 00 00 81 68 E9 [10:38:53]Write i2c OK [10:38:53]MH_I2C_Read... [10:38:53]OFD Sender: No OFD packet to send [10:38:54]*** Cut start [10:38:54]*** Purtial cut [10:38:54]*** Stage 1: CUTSNS_PIN = 1 [10:38:56]Read from MH i2c: 01 [10:38:56]MH_I2C_Read... [10:38:56]*** Stop cut motor [10:38:56]*** Cut end [10:38:56]Read from MH i2c: 01 07 00 [10:38:56]MH_I2C_Read... [10:38:56]Read from MH i2c: 01 07 00 81 68 00 00 00 00 00 FF 0F FE [10:38:56]process_action close_receipt done [10:38:56]requested_data is exist [10:38:56]produce_requested_data [10:38:56]requested_item fm.sn is exist - process it [10:38:56]wFMCommunicate request_size=4 [10:38:56]MH_SAM_APDU [10:38:56]CAPDU: 80 11 00 00 [10:38:56]Write to MH i2c: E2 08 00 82 68 80 11 00 00 00 00 00 00 64 [10:38:56]Write i2c OK [10:38:56]MH_I2C_Read... [10:38:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:56]Read from MH i2c: E2 [10:38:56]MH_I2C_Read... [10:38:56]Read from MH i2c: E2 17 00 [10:38:56]MH_I2C_Read... [10:38:56]Read from MH i2c: E2 17 00 82 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B1 [10:38:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:38:56]wFMCommunicate OK [10:38:56]requested_item fd.num is exist - process it [10:38:56]SAM_PROTO_GetFieldsCounters [10:38:56]wFMCommunicate request_size=4 [10:38:56]MH_SAM_APDU [10:38:56]CAPDU: 80 13 00 00 [10:38:56]Write to MH i2c: E2 08 00 83 68 80 13 00 00 00 00 00 00 67 [10:38:56]Write i2c OK [10:38:56]MH_I2C_Read... [10:38:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:56]Read from MH i2c: E2 [10:38:56]MH_I2C_Read... [10:38:56]Read from MH i2c: E2 62 00 [10:38:56]MH_I2C_Read... [10:38:56]Read from MH i2c: E2 62 00 83 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F6 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [10:38: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F6 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:56]wFMCommunicate OK [10:38:56]SAM_PROTO_GetFieldsCounters done [10:38:56]requested_item shift.num is exist - process it [10:38:56]requested_item shift.opened is exist - process it [10:38:56]req_shift_opened [10:38:56]FM_GetShiftState [10:38:56]SAM_PROTO_GetShiftState [10:38:56]wFMCommunicate request_size=4 [10:38:56]MH_SAM_APDU [10:38:56]CAPDU: 80 13 01 00 [10:38:56]Write to MH i2c: E2 08 00 84 68 80 13 01 00 00 00 00 00 69 [10:38:56]Write i2c OK [10:38:56]MH_I2C_Read... [10:38:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:56]Read from MH i2c: E2 [10:38:56]MH_I2C_Read... [10:38:56]Read from MH i2c: E2 0E 00 [10:38:56]MH_I2C_Read... [10:38:56]Read from MH i2c: E2 0E 00 84 68 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A6 [10:38:56]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:38:56]wFMCommunicate OK [10:38:56]SAM_PROTO_GetShiftState done [10:38:56]FM_GetShiftState done [10:38:56]req_shift_opened done [10:38:56]requested_item shift.open_date is exist - process it [10:38:56]req_shift_open_date [10:38:56]req_shift_open_date done [10:38:56]produce_requested_data done [10:38:56]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260598,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [10:38:56]process_action_free close_receipt [10:38:56]json_value_free [10:38:56]json_value_free done [10:38:56]process_json_proto returns [10:38:56]Send response to host [10:38:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260598,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [10:38:56]free response buf [10:38:56]execute_script done [10:38:56]execute_script returns [10:38:56]free content buf [10:38:56]Sock 9.Close socket [10:38:56]Sock 9.Thread stoped [10:38:58]OFD Sender: No OFD packet to send [10:39:03]OFD Sender: No OFD packet to send [10:39:08]OFD Sender: No OFD packet to send [10:39:13]OFD Sender: No OFD packet to send [10:39:18]OFD Sender: No OFD packet to send [10:39:23]OFD Sender: No OFD packet to send [10:39:28]OFD Sender: No OFD packet to send [10:39:33]OFD Sender: No OFD packet to send [10:39:38]OFD Sender: No OFD packet to send [10:39:43]OFD Sender: No OFD packet to send [10:39:48]OFD Sender: No OFD packet to send [10:39:53]OFD Sender: No OFD packet to send [10:39:58]OFD Sender: No OFD packet to send [10:40:03]OFD Sender: No OFD packet to send [10:40:08]OFD Sender: No OFD packet to send [10:40:13]OFD Sender: No OFD packet to send [10:40:18]OFD Sender: No OFD packet to send [10:40:23]OFD Sender: No OFD packet to send [10:40:28]OFD Sender: No OFD packet to send [10:40:33]OFD Sender: No OFD packet to send [10:40:39]OFD Sender: No OFD packet to send [10:40:44]OFD Sender: No OFD packet to send [10:40:49]OFD Sender: No OFD packet to send [10:40:54]OFD Sender: No OFD packet to send [10:40:59]OFD Sender: No OFD packet to send [10:41:04]OFD Sender: No OFD packet to send [10:41:09]OFD Sender: No OFD packet to send [10:41:14]OFD Sender: No OFD packet to send [10:41:19]OFD Sender: No OFD packet to send [10:41:24]OFD Sender: No OFD packet to send [10:41:29]OFD Sender: No OFD packet to send [10:41:34]OFD Sender: No OFD packet to send [10:41:36]accept exits with 7 [10:41:36]New connection [10:41:36]New thread 3066617188 created [10:41:36]Thread 3066473828 joined [10:41:36]Waiting for new connection... [10:41:36] Sock 7.Parse request [10:41:36]Sock 7.Check first char [10:41:36]Sock 7.First char is OK [10:41:36]request: POST /json_proto HTTP/1.0 [10:41:36]Method: POST [10:41:36]URL: /json_proto [10:41:36]Method is POST - this is cgi request [10:41:36]url: /json_proto [10:41:36]query_string will be loaded in cgi processing [10:41:36]execute_cgi json_proto POST (null) [10:41:36]execute_cgi path=json_proto method=POST [10:41:36]POST find Content-Length [10:41:36]Host: 172.17.55.133:8080 [10:41:36]Content-Length: 683 [10:41:36]Content-Type: application/json [10:41:36] [10:41:36]POST finish read [10:41:36]Found Content-Length = 683 [10:41:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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" ] } } [10:41:36]execute_script... [10:41: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)1036145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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" ] } } [10:41:36]POST & json_proto [10:41:36]process_json_proto [10:41:36]json parsed OK: [10:41:36]protocol is kg_v1.0 [10:41:36]action value=close_receipt [10:41:36]process_action close_receipt [10:41:36]cmd_close_receipt [10:41:36]MH_GetDate [10:41:36]Write to MH i2c: F0 00 00 85 68 DC [10:41:36]Write i2c OK [10:41:36]MH_I2C_Read... [10:41:36]Read from MH i2c: F0 [10:41:36]MH_I2C_Read... [10:41:36]Read from MH i2c: F0 09 00 [10:41:36]MH_I2C_Read... [10:41:36]Read from MH i2c: F0 09 00 85 68 00 E4 CF C1 66 34 48 D8 65 78 [10:41:36]GetLastDocTimeStamp 1723977535 [10:41:36]current date 1723977700 [10:41:36]FM_GetShiftState [10:41:36]SAM_PROTO_GetShiftState [10:41:36]wFMCommunicate request_size=4 [10:41:36]MH_SAM_APDU [10:41:36]CAPDU: 80 13 01 00 [10:41:36]Write to MH i2c: E2 08 00 86 68 80 13 01 00 00 00 00 00 6B [10:41:36]Write i2c OK [10:41:36]MH_I2C_Read... [10:41:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:36]Read from MH i2c: E2 [10:41:36]MH_I2C_Read... [10:41:36]Read from MH i2c: E2 0E 00 [10:41:36]MH_I2C_Read... [10:41:36]Read from MH i2c: E2 0E 00 86 68 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A8 [10:41:36]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:41:36]wFMCommunicate OK [10:41:36]SAM_PROTO_GetShiftState done [10:41:36]FM_GetShiftState done [10:41:36]opened in 1723940556 [10:41:36]opened+sec_in_day 1724026956 [10:41:36]quantity*price = 150041 [10:41:36]sum+1 = 150042 [10:41:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 157 18.08.2024 10:41 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260599 ФПД: 34513855900250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T104140&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260599&fm=34513855900250&tin=02508201610067®Number=0000000000091865&sum=150000 [10:41:37]StoreToDocumentArchive [10:41:37]shift 449 fd 260599 [10:41:37]save to /storage/0449/doc_00260599 [10:41:37]save last doc name /storage/0449/doc_00260599 to /storage/kkm_last_doc_name [10:41:37]save OK [10:41:37]Clear old archive folders... [10:41:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:41:37]tlvbuf is 00453620 [10:41:37]SAM_PROTO_ClearQueue [10:41:37]wFMCommunicate request_size=4 [10:41:37]MH_SAM_APDU [10:41:37]CAPDU: 80 09 00 00 [10:41:37]Write to MH i2c: E2 08 00 93 68 80 09 00 00 00 00 00 00 6D [10:41:37]Write i2c OK [10:41:37]MH_I2C_Read... [10:41:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:37]Read from MH i2c: E2 [10:41:37]MH_I2C_Read... [10:41:37]Read from MH i2c: E2 03 00 [10:41:37]MH_I2C_Read... [10:41:37]Read from MH i2c: E2 03 00 93 68 00 90 00 6F [10:41:37]RAPDU: 90 00 [10:41:37]wFMCommunicate OK [10:41:37]SAM_PROTO_ClearQueue done [10:41:37]KKMCreateOFDPacket [10:41:37]OFDProtocolAddRootSTLVToBuf [10:41:37]FM_MakeSignedData [10:41:37]FM_MakeSignedData [10:41:37]SAM_PROTO_SignData [10:41:37]wFMCommunicate request_size=4 [10:41:37]MH_SAM_APDU [10:41:37]CAPDU: 80 0D 01 02 [10:41:37]Write to MH i2c: E2 08 00 94 68 80 0D 01 02 00 00 00 00 75 [10:41:37]Write i2c OK [10:41:37]MH_I2C_Read... [10:41:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:37]Read from MH i2c: E2 [10:41:37]MH_I2C_Read... [10:41:37]Read from MH i2c: E2 03 00 [10:41:37]MH_I2C_Read... [10:41:37]Read from MH i2c: E2 03 00 94 68 00 90 00 70 [10:41:37]RAPDU: 90 00 [10:41:37]wFMCommunicate OK [10:41:37]wFMCommunicate request_size=255 [10:41:37]MH_SAM_APDU [10:41:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 9D 00 00 00 F4 03 04 00 E4 CF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F7 F9 03 00 35 04 06 00 1F [10:41:37]Write to MH i2c: E2 02 01 95 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 9D 00 00 00 F4 03 04 00 E4 CF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F7 F9 03 00 35 04 06 00 1F 00 00 B2 [10:41:37]Write i2c OK [10:41:37]MH_I2C_Read... [10:41:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:38]Read from MH i2c: E2 [10:41:38]MH_I2C_Read... [10:41:38]Read from MH i2c: E2 03 00 [10:41:38]MH_I2C_Read... [10:41:38]Read from MH i2c: E2 03 00 95 68 00 90 00 71 [10:41:38]RAPDU: 90 00 [10:41:38]wFMCommunicate OK [10:41:38]wFMCommunicate request_size=10 [10:41:38]MH_SAM_APDU [10:41:38]CAPDU: 80 0D 02 02 05 63 E2 1E EA 5A [10:41:38]Write to MH i2c: E2 0D 00 96 68 80 0D 02 02 05 00 63 E2 1E EA 5A 00 00 29 [10:41:38]Write i2c OK [10:41:38]MH_I2C_Read... [10:41:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:38]Read from MH i2c: E2 [10:41:38]MH_I2C_Read... [10:41:38]Read from MH i2c: E2 03 00 [10:41:38]MH_I2C_Read... [10:41:38]Read from MH i2c: E2 03 00 96 68 00 90 00 72 [10:41:38]RAPDU: 90 00 [10:41:38]wFMCommunicate OK [10:41:38]wFMCommunicate request_size=4 [10:41:38]MH_SAM_APDU [10:41:38]CAPDU: 80 0D 03 02 [10:41:38]Write to MH i2c: E2 08 00 97 68 80 0D 03 02 00 00 00 00 7A [10:41:38]Write i2c OK [10:41:38]MH_I2C_Read... [10:41:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:38]Read from MH i2c: E2 [10:41:38]MH_I2C_Read... [10:41:38]Read from MH i2c: E2 0B 00 [10:41:38]MH_I2C_Read... [10:41:38]Read from MH i2c: E2 0B 00 97 68 00 77 EC 5A 13 C5 D8 EF 62 90 00 39 [10:41:38]RAPDU: 77 EC 5A 13 C5 D8 EF 62 90 00 [10:41:38]wFMCommunicate OK [10:41:38]SAM_PROTO_SignData done [10:41:38]FM_MakeSignedData done [10:41:38]CreateOFDProtocolMessage [10:41:38]wFMCommunicate request_size=4 [10:41:38]MH_SAM_APDU [10:41:38]CAPDU: 80 11 00 00 [10:41:38]Write to MH i2c: E2 08 00 98 68 80 11 00 00 00 00 00 00 7A [10:41:38]Write i2c OK [10:41:38]MH_I2C_Read... [10:41:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:38]Read from MH i2c: E2 [10:41:38]MH_I2C_Read... [10:41:38]Read from MH i2c: E2 17 00 [10:41:38]MH_I2C_Read... [10:41:38]Read from MH i2c: E2 17 00 98 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C7 [10:41:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:41:38]wFMCommunicate OK [10:41:38]CreateOFDProtocolMessage done [10:41:38]OFDSenderStorePacket 260599 [10:41:38]StoreOFDPacket docnum=260599 [10:41:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 AC 02 07 01 03 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 9D 00 00 00 F4 03 04 00 E4 CF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F7 F9 03 00 35 04 06 00 1F 63 E2 1E EA 5A 77 EC 5A 13 C5 D8 EF 62 [10:41:38]CheckFolder [10:41:38]dirname=/storage/ofd_packets [10:41:38]CheckFolder done [10:41:38]ProducePacketName [10:41:38]name=ofd_packets/00260599 [10:41:38]NVStorageSaveData ofd_packets/00260599 [10:41:38]File name is /storage/ofd_packets/00260599 [10:41:38]Write 301 bytes [10:41:38]NVStorageSaveData done [10:41:38]OFDSenderStorePacket done [10:41:38]KKMCreateOFDPacket done [10:41:38]NVStorageSaveData kkm_last_timestamp [10:41:38]File name is /storage/kkm_last_timestamp [10:41:38]Write 4 bytes [10:41:38]NVStorageSaveData done [10:41:38]ExternCall_PrintAddStr [10:41:38]wPrintStart [10:41:38]Write to MH i2c: 01 00 00 99 68 01 [10:41:38]Write i2c OK [10:41:38]MH_I2C_Read... [10:41:38]Read from MH i2c: 01 [10:41:38]MH_I2C_Read... [10:41:38]Read from MH i2c: 01 07 00 [10:41:38]MH_I2C_Read... [10:41:38]Read from MH i2c: 01 07 00 99 68 00 00 00 00 00 FF 0F 16 [10:41:38]RasterBufferAndPrint [10:41:38]line Счет N : (1)1036145 [10:41:38]line ИНН: 02508201610067 [10:41:38]line Контрольно-Кассовый Чек [10:41:38]line ПРОДАЖА [10:41:38]line ТРК (МРК, ГНК) : 12 [10:41:38]line Товар: 2710124130 [10:41:38]line Аи-92-К-5 [10:41:38]line 22.130 * 67.80 [10:41:38]line = 1500.41 [10:41:38]line НДС 12% НСП 1% [10:41:38]line > о реализуемом товаре [10:41:38]line ОКРУГЛЕНИЕ: -0.41 [10:41:38]line ИТОГО: 1500.00 [10:41:38]line Внесено: 1500.00 [10:41:38]line СДАЧА: 0.00 [10:41:38]line НСП 1% : 13.28 [10:41:38]line НДС 12% : 159.34 [10:41:38]line Наличными: 1500.00 [10:41:38]line Безнал.: 0.00 [10:41:38]line Место: АЗС № 94 "Партнер Нефть" [10:41:38]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [10:41:38]line СНО: Общий режим [10:41:38]line Чек 157 18.08.2024 10:41 [10:41:38]line Смена: 449 ФФД: 1.0 [10:41:38]line ЗНМ: 0300000099 [10:41:38]line РНМ: 0000000000091865 [10:41:38]line Версия ККМ: 001 [10:41:38]line ФМ: 0000000000871820 [10:41:38]line ФД: 260599 [10:41:38]line ФПД: 34513855900250 [10:41:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T104140&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260599&fm=34513855900250&tin=02508201610067®Number=0000000000091865&sum=150000 [10:41:38]written 0, free lines is 4095 [10:41:38]OFD Sender: Processing packet 260599 [packets to send 192, broken 191] [10:41:38]ProducePacketName [10:41:38]name=ofd_packets/00260599 [10:41:38]OFD Sender: To server: pG, [10:41:38]CommunicateWithHost lk.salyk.kg:30040 [10:41:38]ConnectInit lk.salyk.kg [10:41:38]Connected sock=10 [10:41: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 30 0F 01 00 00 AC 02 07 01 03 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 9D 00 00 00 F4 03 04 00 E4 CF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F7 F9 03 00 35 04 06 00 1F 63 E2 1E EA 5A 77 EC 5A 13 C5 D8 EF 62 [10:41: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 30 4F 00 00 00 82 89 47 00 49 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 30 10 04 04 00 F7 F9 03 00 F4 03 04 00 39 79 C1 66 B6 04 01 00 00 A6 50 90 86 77 86 5C 21 [10:41:38]CommunicateWithHost err = 0 [10:41:38]CheckOFDResponse [10:41:38]1017 (14) - 77093643461234 [10:41:38]1041 (16) - 0000000000871820 [10:41:38]1040 (4) - 260599 [10:41:38]1012 (4) - 18.08.2024 04:31 [10:41:38]1206 (1) - 0 [10:41:38]OFD Sender: Remove packet 260599 [10:41:38]ProducePacketName [10:41:38]name=ofd_packets/00260599 [10:41:38]NVStorageDeleteData [10:41:38]Write to MH i2c: 01 00 00 C4 68 2C [10:41:38]Write i2c OK [10:41:38]MH_I2C_Read... [10:41:38]Read from MH i2c: 01 [10:41:38]MH_I2C_Read... [10:41:38]Read from MH i2c: 01 07 00 [10:41:38]MH_I2C_Read... [10:41:38]Read from MH i2c: 01 07 00 C4 68 00 00 00 00 00 62 0C A1 [10:41:38]RasterBufferAndPrint [10:41:38]line [10:41:38]line [10:41:38]line [10:41:38]line [10:41:38]line [10:41:38]written 0, free lines is 3176 [10:41:38]MH_Cut [10:41:38]Write to MH i2c: D1 01 00 CB 68 01 05 [10:41:38]Write i2c OK [10:41:38]MH_I2C_Read... [10:41:38]Read from MH i2c: D1 [10:41:38]MH_I2C_Read... [10:41:38]Read from MH i2c: D1 01 00 [10:41:38]MH_I2C_Read... [10:41:38]Read from MH i2c: D1 01 00 CB 68 00 04 [10:41:38]Write to MH i2c: 01 00 00 CC 68 34 [10:41:38]Write i2c OK [10:41:38]MH_I2C_Read... [10:41:39]OFD Sender: No OFD packet to send [10:41:39]*** Cut start [10:41:39]*** Purtial cut [10:41:39]*** Stage 1: CUTSNS_PIN = 1 [10:41:41]Read from MH i2c: 01 [10:41:41]MH_I2C_Read... [10:41:41]*** Stop cut motor [10:41:41]*** Cut end [10:41:41]Read from MH i2c: 01 07 00 [10:41:41]MH_I2C_Read... [10:41:41]Read from MH i2c: 01 07 00 CC 68 00 00 00 00 00 FF 0F 49 [10:41:41]process_action close_receipt done [10:41:41]requested_data is exist [10:41:41]produce_requested_data [10:41:41]requested_item fm.sn is exist - process it [10:41:41]wFMCommunicate request_size=4 [10:41:41]MH_SAM_APDU [10:41:41]CAPDU: 80 11 00 00 [10:41:41]Write to MH i2c: E2 08 00 CD 68 80 11 00 00 00 00 00 00 AF [10:41:41]Write i2c OK [10:41:41]MH_I2C_Read... [10:41:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:41]Read from MH i2c: E2 [10:41:41]MH_I2C_Read... [10:41:41]Read from MH i2c: E2 17 00 [10:41:41]MH_I2C_Read... [10:41:41]Read from MH i2c: E2 17 00 CD 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 FC [10:41:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:41:41]wFMCommunicate OK [10:41:41]requested_item fd.num is exist - process it [10:41:41]SAM_PROTO_GetFieldsCounters [10:41:41]wFMCommunicate request_size=4 [10:41:41]MH_SAM_APDU [10:41:41]CAPDU: 80 13 00 00 [10:41:41]Write to MH i2c: E2 08 00 CE 68 80 13 00 00 00 00 00 00 B2 [10:41:41]Write i2c OK [10:41:41]MH_I2C_Read... [10:41:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:42]Read from MH i2c: E2 [10:41:42]MH_I2C_Read... [10:41:42]Read from MH i2c: E2 62 00 [10:41:42]MH_I2C_Read... [10:41:42]Read from MH i2c: E2 62 00 CE 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F7 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [10:41: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F7 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:41:42]wFMCommunicate OK [10:41:42]SAM_PROTO_GetFieldsCounters done [10:41:42]requested_item shift.num is exist - process it [10:41:42]requested_item shift.opened is exist - process it [10:41:42]req_shift_opened [10:41:42]FM_GetShiftState [10:41:42]SAM_PROTO_GetShiftState [10:41:42]wFMCommunicate request_size=4 [10:41:42]MH_SAM_APDU [10:41:42]CAPDU: 80 13 01 00 [10:41:42]Write to MH i2c: E2 08 00 CF 68 80 13 01 00 00 00 00 00 B4 [10:41:42]Write i2c OK [10:41:42]MH_I2C_Read... [10:41:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:42]Read from MH i2c: E2 [10:41:42]MH_I2C_Read... [10:41:42]Read from MH i2c: E2 0E 00 [10:41:42]MH_I2C_Read... [10:41:42]Read from MH i2c: E2 0E 00 CF 68 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F1 [10:41:42]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:41:42]wFMCommunicate OK [10:41:42]SAM_PROTO_GetShiftState done [10:41:42]FM_GetShiftState done [10:41:42]req_shift_opened done [10:41:42]requested_item shift.open_date is exist - process it [10:41:42]req_shift_open_date [10:41:42]req_shift_open_date done [10:41:42]produce_requested_data done [10:41:42]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260599,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [10:41:42]process_action_free close_receipt [10:41:42]json_value_free [10:41:42]json_value_free done [10:41:42]process_json_proto returns [10:41:42]Send response to host [10:41:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260599,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [10:41:42]free response buf [10:41:42]execute_script done [10:41:42]execute_script returns [10:41:42]free content buf [10:41:42]Sock 7.Close socket [10:41:42]Sock 7.Thread stoped [10:41:42]accept exits with 9 [10:41:42]New connection [10:41:42]New thread 3066473828 created [10:41:42]Thread 3066617188 joined [10:41:42]Waiting for new connection... [10:41:42] Sock 9.Parse request [10:41:42]Sock 9.Check first char [10:41:42]Sock 9.First char is OK [10:41:42]request: POST /json_proto HTTP/1.0 [10:41:42]Method: POST [10:41:42]URL: /json_proto [10:41:42]Method is POST - this is cgi request [10:41:42]url: /json_proto [10:41:42]query_string will be loaded in cgi processing [10:41:42]execute_cgi json_proto POST (null) [10:41:42]execute_cgi path=json_proto method=POST [10:41:42]POST find Content-Length [10:41:42]Host: 172.17.55.133:8080 [10:41:42]Content-Length: 678 [10:41:42]Content-Type: application/json [10:41:42] [10:41:42]POST finish read [10:41:42]Found Content-Length = 678 [10:41:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036146", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:42]execute_script... [10:41: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)1036146", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:42]POST & json_proto [10:41:42]process_json_proto [10:41:42]json parsed OK: [10:41:42]protocol is kg_v1.0 [10:41:42]action value=close_receipt [10:41:42]process_action close_receipt [10:41:42]cmd_close_receipt [10:41:42]MH_GetDate [10:41:42]Write to MH i2c: F0 00 00 D0 68 27 [10:41:42]Write i2c OK [10:41:42]MH_I2C_Read... [10:41:42]Read from MH i2c: F0 [10:41:42]MH_I2C_Read... [10:41:42]Read from MH i2c: F0 09 00 [10:41:42]MH_I2C_Read... [10:41:42]Read from MH i2c: F0 09 00 D0 68 00 EA CF C1 66 34 48 D8 65 C9 [10:41:42]GetLastDocTimeStamp 1723977700 [10:41:42]current date 1723977706 [10:41:42]FM_GetShiftState [10:41:42]SAM_PROTO_GetShiftState [10:41:42]wFMCommunicate request_size=4 [10:41:42]MH_SAM_APDU [10:41:42]CAPDU: 80 13 01 00 [10:41:42]Write to MH i2c: E2 08 00 D1 68 80 13 01 00 00 00 00 00 B6 [10:41:42]Write i2c OK [10:41:42]MH_I2C_Read... [10:41:42]Read from MH i2c: E2 [10:41:42]MH_I2C_Read... [10:41:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:42]Read from MH i2c: E2 0E 00 [10:41:42]MH_I2C_Read... [10:41:42]Read from MH i2c: E2 0E 00 D1 68 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F3 [10:41:42]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:41:42]wFMCommunicate OK [10:41:42]SAM_PROTO_GetShiftState done [10:41:42]FM_GetShiftState done [10:41:42]opened in 1723940556 [10:41:42]opened+sec_in_day 1724026956 [10:41:42]quantity*price = 50010 [10:41:42]sum+1 = 50012 [10:41:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 158 18.08.2024 10:41 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260600 ФПД: 7408194505915 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T104146&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260600&fm=7408194505915&tin=02508201610067®Number=0000000000091865&sum=50000 [10:41:43]StoreToDocumentArchive [10:41:43]shift 449 fd 260600 [10:41:43]save to /storage/0449/doc_00260600 [10:41:43]save last doc name /storage/0449/doc_00260600 to /storage/kkm_last_doc_name [10:41:43]save OK [10:41:43]Clear old archive folders... [10:41:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:41:43]tlvbuf is 0050CB40 [10:41:43]SAM_PROTO_ClearQueue [10:41:43]wFMCommunicate request_size=4 [10:41:43]MH_SAM_APDU [10:41:43]CAPDU: 80 09 00 00 [10:41:43]Write to MH i2c: E2 08 00 DE 68 80 09 00 00 00 00 00 00 B8 [10:41:43]Write i2c OK [10:41:43]MH_I2C_Read... [10:41:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:43]Read from MH i2c: E2 [10:41:43]MH_I2C_Read... [10:41:43]Read from MH i2c: E2 03 00 [10:41:43]MH_I2C_Read... [10:41:43]Read from MH i2c: E2 03 00 DE 68 00 90 00 BA [10:41:43]RAPDU: 90 00 [10:41:43]wFMCommunicate OK [10:41:43]SAM_PROTO_ClearQueue done [10:41:43]KKMCreateOFDPacket [10:41:43]OFDProtocolAddRootSTLVToBuf [10:41:43]FM_MakeSignedData [10:41:43]FM_MakeSignedData [10:41:43]SAM_PROTO_SignData [10:41:43]wFMCommunicate request_size=4 [10:41:43]MH_SAM_APDU [10:41:43]CAPDU: 80 0D 01 02 [10:41:43]Write to MH i2c: E2 08 00 DF 68 80 0D 01 02 00 00 00 00 C0 [10:41:43]Write i2c OK [10:41:43]MH_I2C_Read... [10:41:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:43]Read from MH i2c: E2 [10:41:43]MH_I2C_Read... [10:41:43]Read from MH i2c: E2 03 00 [10:41:43]MH_I2C_Read... [10:41:43]Read from MH i2c: E2 03 00 DF 68 00 90 00 BB [10:41:43]RAPDU: 90 00 [10:41:43]wFMCommunicate OK [10:41:43]wFMCommunicate request_size=255 [10:41:43]MH_SAM_APDU [10:41: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 EA CF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F8 F9 03 00 35 04 06 00 06 [10:41:43]Write to MH i2c: E2 02 01 E0 68 80 0D 02 02 FA 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 EA CF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F8 F9 03 00 35 04 06 00 06 00 00 5F [10:41:43]Write i2c OK [10:41:43]MH_I2C_Read... [10:41:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:44]Read from MH i2c: E2 [10:41:44]MH_I2C_Read... [10:41:44]OFD Sender: No OFD packet to send [10:41:44]Read from MH i2c: E2 03 00 [10:41:44]MH_I2C_Read... [10:41:44]Read from MH i2c: E2 03 00 E0 68 00 90 00 BC [10:41:44]RAPDU: 90 00 [10:41:44]wFMCommunicate OK [10:41:44]wFMCommunicate request_size=10 [10:41:44]MH_SAM_APDU [10:41:44]CAPDU: 80 0D 02 02 05 BC DA CD 4C BB [10:41:44]Write to MH i2c: E2 0D 00 E1 68 80 0D 02 02 05 00 BC DA CD 4C BB 00 00 37 [10:41:44]Write i2c OK [10:41:44]MH_I2C_Read... [10:41:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:44]Read from MH i2c: E2 [10:41:44]MH_I2C_Read... [10:41:44]Read from MH i2c: E2 03 00 [10:41:44]MH_I2C_Read... [10:41:44]Read from MH i2c: E2 03 00 E1 68 00 90 00 BD [10:41:44]RAPDU: 90 00 [10:41:44]wFMCommunicate OK [10:41:44]wFMCommunicate request_size=4 [10:41:44]MH_SAM_APDU [10:41:44]CAPDU: 80 0D 03 02 [10:41:44]Write to MH i2c: E2 08 00 E2 68 80 0D 03 02 00 00 00 00 C5 [10:41:44]Write i2c OK [10:41:44]MH_I2C_Read... [10:41:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:44]Read from MH i2c: E2 [10:41:44]MH_I2C_Read... [10:41:44]Read from MH i2c: E2 0B 00 [10:41:44]MH_I2C_Read... [10:41:44]Read from MH i2c: E2 0B 00 E2 68 00 5C 69 E9 DF 21 43 E6 24 90 00 C1 [10:41:44]RAPDU: 5C 69 E9 DF 21 43 E6 24 90 00 [10:41:44]wFMCommunicate OK [10:41:44]SAM_PROTO_SignData done [10:41:44]FM_MakeSignedData done [10:41:44]CreateOFDProtocolMessage [10:41:44]wFMCommunicate request_size=4 [10:41:44]MH_SAM_APDU [10:41:44]CAPDU: 80 11 00 00 [10:41:44]Write to MH i2c: E2 08 00 E3 68 80 11 00 00 00 00 00 00 C5 [10:41:44]Write i2c OK [10:41:44]MH_I2C_Read... [10:41:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:44]Read from MH i2c: E2 [10:41:44]MH_I2C_Read... [10:41:44]Read from MH i2c: E2 17 00 [10:41:44]MH_I2C_Read... [10:41:44]Read from MH i2c: E2 17 00 E3 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 12 [10:41:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:41:44]wFMCommunicate OK [10:41:44]CreateOFDProtocolMessage done [10:41:44]OFDSenderStorePacket 260600 [10:41:44]StoreOFDPacket docnum=260600 [10:41:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 8E 3E 07 01 90 AE 5A 03 01 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 EA CF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F8 F9 03 00 35 04 06 00 06 BC DA CD 4C BB 5C 69 E9 DF 21 43 E6 24 [10:41:44]CheckFolder [10:41:44]dirname=/storage/ofd_packets [10:41:44]CheckFolder done [10:41:44]ProducePacketName [10:41:44]name=ofd_packets/00260600 [10:41:44]NVStorageSaveData ofd_packets/00260600 [10:41:44]File name is /storage/ofd_packets/00260600 [10:41:44]Write 301 bytes [10:41:44]NVStorageSaveData done [10:41:44]OFDSenderStorePacket done [10:41:44]KKMCreateOFDPacket done [10:41:44]NVStorageSaveData kkm_last_timestamp [10:41:44]File name is /storage/kkm_last_timestamp [10:41:44]Write 4 bytes [10:41:44]NVStorageSaveData done [10:41:44]ExternCall_PrintAddStr [10:41:44]wPrintStart [10:41:44]Write to MH i2c: 01 00 00 E4 68 4C [10:41:44]OFD Sender: Processing packet 260600 [packets to send 192, broken 191] [10:41:44]ProducePacketName [10:41:44]name=ofd_packets/00260600 [10:41:44]OFD Sender: To server: pG, [10:41:44]CommunicateWithHost lk.salyk.kg:30040 [10:41:44]ConnectInit lk.salyk.kg [10:41:44]Write i2c OK [10:41:44]MH_I2C_Read... [10:41:44]Read from MH i2c: 01 [10:41:44]MH_I2C_Read... [10:41:44]Read from MH i2c: 01 07 00 [10:41:44]MH_I2C_Read... [10:41:44]Read from MH i2c: 01 07 00 E4 68 00 00 00 00 00 FF 0F 61 [10:41:44]RasterBufferAndPrint [10:41:44]line Счет N : (1)1036146 [10:41:44]line ИНН: 02508201610067 [10:41:44]line Контрольно-Кассовый Чек [10:41:44]line ПРОДАЖА [10:41:44]line ТРК (МРК, ГНК) : 23 [10:41:44]line Товар: 2710124500 [10:41:44]line Аи-95-К-5 [10:41:44]line 6.740 * 74.20 [10:41:44]line = 500.11 [10:41:44]line НДС 12% НСП 1% [10:41:44]line > о реализуемом товаре [10:41:44]line ОКРУГЛЕНИЕ: -0.11 [10:41:44]line ИТОГО: 500.00 [10:41:44]line Внесено: 500.00 [10:41:44]line СДАЧА: 0.00 [10:41:44]line НСП 1% : 4.43 [10:41:44]line НДС 12% : 53.11 [10:41:44]line Наличными: 500.00 [10:41:44]line Безнал.: 0.00 [10:41:44]line Место: АЗС № 94 "Партнер Нефть" [10:41:44]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [10:41:44]line СНО: Общий режим [10:41:44]line Чек 158 18.08.2024 10:41 [10:41:44]line Смена: 449 ФФД: 1.0 [10:41:44]line ЗНМ: 0300000099 [10:41:44]line РНМ: 0000000000091865 [10:41:44]line Версия ККМ: 001 [10:41:44]line ФМ: 0000000000871820 [10:41:44]line ФД: 260600 [10:41:44]line ФПД: 7408194505915 [10:41:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T104146&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260600&fm=7408194505915&tin=02508201610067®Number=0000000000091865&sum=50000 [10:41:44]written 0, free lines is 4095 [10:41:44]Connected sock=10 [10:41: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 30 0F 01 00 00 8E 3E 07 01 90 AE 5A 03 01 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 EA CF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F8 F9 03 00 35 04 06 00 06 BC DA CD 4C BB 5C 69 E9 DF 21 43 E6 24 [10:41: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 30 4F 00 00 00 FE B4 47 00 F0 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 30 10 04 04 00 F8 F9 03 00 F4 03 04 00 40 79 C1 66 B6 04 01 00 00 5B 57 99 FB 8C 13 00 7D [10:41:45]CommunicateWithHost err = 0 [10:41:45]CheckOFDResponse [10:41:45]1017 (14) - 77093643461234 [10:41:45]1041 (16) - 0000000000871820 [10:41:45]1040 (4) - 260600 [10:41:45]1012 (4) - 18.08.2024 04:32 [10:41:45]1206 (1) - 0 [10:41:45]OFD Sender: Remove packet 260600 [10:41:45]ProducePacketName [10:41:45]name=ofd_packets/00260600 [10:41:45]NVStorageDeleteData [10:41:45]Write to MH i2c: 01 00 00 0F 69 78 [10:41:45]Write i2c OK [10:41:45]MH_I2C_Read... [10:41:45]Read from MH i2c: 01 [10:41:45]MH_I2C_Read... [10:41:45]Read from MH i2c: 01 07 00 [10:41:45]MH_I2C_Read... [10:41:45]Read from MH i2c: 01 07 00 0F 69 00 00 00 00 00 77 0C 02 [10:41:45]RasterBufferAndPrint [10:41:45]line [10:41:45]line [10:41:45]line [10:41:45]line [10:41:45]line [10:41:45]written 0, free lines is 3195 [10:41:45]MH_Cut [10:41:45]Write to MH i2c: D1 01 00 16 69 01 51 [10:41:45]Write i2c OK [10:41:45]MH_I2C_Read... [10:41:45]Read from MH i2c: D1 [10:41:45]MH_I2C_Read... [10:41:45]Read from MH i2c: D1 01 00 [10:41:45]MH_I2C_Read... [10:41:45]Read from MH i2c: D1 01 00 16 69 00 50 [10:41:45]Write to MH i2c: 01 00 00 17 69 80 [10:41:45]Write i2c OK [10:41:45]MH_I2C_Read... [10:41:45]OFD Sender: No OFD packet to send [10:41:46]*** Cut start [10:41:46]*** Purtial cut [10:41:46]*** Stage 1: CUTSNS_PIN = 1 [10:41:48]Read from MH i2c: 01 [10:41:48]MH_I2C_Read... [10:41:48]*** Stop cut motor [10:41:48]*** Cut end [10:41:48]Read from MH i2c: 01 07 00 [10:41:48]MH_I2C_Read... [10:41:48]Read from MH i2c: 01 07 00 17 69 00 00 00 00 00 FF 0F 95 [10:41:48]process_action close_receipt done [10:41:48]requested_data is exist [10:41:48]produce_requested_data [10:41:48]requested_item fm.sn is exist - process it [10:41:48]wFMCommunicate request_size=4 [10:41:48]MH_SAM_APDU [10:41:48]CAPDU: 80 11 00 00 [10:41:48]Write to MH i2c: E2 08 00 18 69 80 11 00 00 00 00 00 00 FB [10:41:48]Write i2c OK [10:41:48]MH_I2C_Read... [10:41:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:48]Read from MH i2c: E2 [10:41:48]MH_I2C_Read... [10:41:48]Read from MH i2c: E2 17 00 [10:41:48]MH_I2C_Read... [10:41:48]Read from MH i2c: E2 17 00 18 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 48 [10:41:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:41:48]wFMCommunicate OK [10:41:48]requested_item fd.num is exist - process it [10:41:48]SAM_PROTO_GetFieldsCounters [10:41:48]wFMCommunicate request_size=4 [10:41:48]MH_SAM_APDU [10:41:48]CAPDU: 80 13 00 00 [10:41:48]Write to MH i2c: E2 08 00 19 69 80 13 00 00 00 00 00 00 FE [10:41:48]Write i2c OK [10:41:48]MH_I2C_Read... [10:41:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:48]Read from MH i2c: E2 [10:41:48]MH_I2C_Read... [10:41:48]Read from MH i2c: E2 62 00 [10:41:48]MH_I2C_Read... [10:41:48]Read from MH i2c: E2 62 00 19 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F8 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [10:41: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F8 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:41:48]wFMCommunicate OK [10:41:48]SAM_PROTO_GetFieldsCounters done [10:41:48]requested_item shift.num is exist - process it [10:41:48]requested_item shift.opened is exist - process it [10:41:48]req_shift_opened [10:41:48]FM_GetShiftState [10:41:48]SAM_PROTO_GetShiftState [10:41:48]wFMCommunicate request_size=4 [10:41:48]MH_SAM_APDU [10:41:48]CAPDU: 80 13 01 00 [10:41:48]Write to MH i2c: E2 08 00 1A 69 80 13 01 00 00 00 00 00 00 [10:41:48]Write i2c OK [10:41:48]MH_I2C_Read... [10:41:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:48]Read from MH i2c: E2 [10:41:48]MH_I2C_Read... [10:41:48]Read from MH i2c: E2 0E 00 [10:41:48]MH_I2C_Read... [10:41:48]Read from MH i2c: E2 0E 00 1A 69 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 3D [10:41:48]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:41:48]wFMCommunicate OK [10:41:48]SAM_PROTO_GetShiftState done [10:41:48]FM_GetShiftState done [10:41:48]req_shift_opened done [10:41:48]requested_item shift.open_date is exist - process it [10:41:48]req_shift_open_date [10:41:48]req_shift_open_date done [10:41:48]produce_requested_data done [10:41:48]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260600,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [10:41:48]process_action_free close_receipt [10:41:48]json_value_free [10:41:48]json_value_free done [10:41:48]process_json_proto returns [10:41:48]Send response to host [10:41:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260600,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [10:41:48]free response buf [10:41:48]execute_script done [10:41:48]execute_script returns [10:41:48]free content buf [10:41:48]Sock 9.Close socket [10:41:48]Sock 9.Thread stoped [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:18]accept exits with 7 [10:42:18]New connection [10:42:18]New thread 3066617188 created [10:42:18]Thread 3066473828 joined [10:42:18]Waiting for new connection... [10:42:18] Sock 7.Parse request [10:42:18]Sock 7.Check first char [10:42:18]Sock 7.First char is OK [10:42:18]request: POST /json_proto HTTP/1.0 [10:42:18]Method: POST [10:42:18]URL: /json_proto [10:42:18]Method is POST - this is cgi request [10:42:18]url: /json_proto [10:42:18]query_string will be loaded in cgi processing [10:42:18]execute_cgi json_proto POST (null) [10:42:18]execute_cgi path=json_proto method=POST [10:42:18]POST find Content-Length [10:42:18]Host: 172.17.55.133:8080 [10:42:18]Content-Length: 683 [10:42:18]Content-Type: application/json [10:42:18] [10:42:18]POST finish read [10:42:18]Found Content-Length = 683 [10:42:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:42:18]execute_script... [10:42: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)1036147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:42:18]POST & json_proto [10:42:18]process_json_proto [10:42:18]json parsed OK: [10:42:18]protocol is kg_v1.0 [10:42:18]action value=close_receipt [10:42:18]process_action close_receipt [10:42:18]cmd_close_receipt [10:42:18]MH_GetDate [10:42:18]Write to MH i2c: F0 00 00 1B 69 73 [10:42:18]Write i2c OK [10:42:18]MH_I2C_Read... [10:42:18]Read from MH i2c: F0 [10:42:18]MH_I2C_Read... [10:42:18]Read from MH i2c: F0 09 00 [10:42:18]MH_I2C_Read... [10:42:18]Read from MH i2c: F0 09 00 1B 69 00 0F D0 C1 66 34 48 D8 65 3B [10:42:18]GetLastDocTimeStamp 1723977706 [10:42:18]current date 1723977743 [10:42:18]FM_GetShiftState [10:42:18]SAM_PROTO_GetShiftState [10:42:18]wFMCommunicate request_size=4 [10:42:18]MH_SAM_APDU [10:42:18]CAPDU: 80 13 01 00 [10:42:18]Write to MH i2c: E2 08 00 1C 69 80 13 01 00 00 00 00 00 02 [10:42:18]Write i2c OK [10:42:18]MH_I2C_Read... [10:42:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:18]Read from MH i2c: E2 [10:42:18]MH_I2C_Read... [10:42:18]Read from MH i2c: E2 0E 00 [10:42:18]MH_I2C_Read... [10:42:18]Read from MH i2c: E2 0E 00 1C 69 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 3F [10:42:18]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:42:18]wFMCommunicate OK [10:42:18]SAM_PROTO_GetShiftState done [10:42:18]FM_GetShiftState done [10:42:18]opened in 1723940556 [10:42:18]opened+sec_in_day 1724026956 [10:42:18]quantity*price = 100005 [10:42:18]sum+1 = 100006 [10:42:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 159 18.08.2024 10:42 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260601 ФПД: 135571074528913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T104223&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260601&fm=135571074528913&tin=02508201610067®Number=0000000000091865&sum=100000 [10:42:19]StoreToDocumentArchive [10:42:19]shift 449 fd 260601 [10:42:19]save to /storage/0449/doc_00260601 [10:42:19]save last doc name /storage/0449/doc_00260601 to /storage/kkm_last_doc_name [10:42:19]save OK [10:42:19]Clear old archive folders... [10:42:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:42:19]tlvbuf is 004A25C0 [10:42:19]SAM_PROTO_ClearQueue [10:42:19]wFMCommunicate request_size=4 [10:42:19]MH_SAM_APDU [10:42:19]CAPDU: 80 09 00 00 [10:42:19]Write to MH i2c: E2 08 00 29 69 80 09 00 00 00 00 00 00 04 [10:42:19]Write i2c OK [10:42:19]MH_I2C_Read... [10:42:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:19]Read from MH i2c: E2 [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: E2 03 00 [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: E2 03 00 29 69 00 90 00 06 [10:42:19]RAPDU: 90 00 [10:42:19]wFMCommunicate OK [10:42:19]SAM_PROTO_ClearQueue done [10:42:19]KKMCreateOFDPacket [10:42:19]OFDProtocolAddRootSTLVToBuf [10:42:19]FM_MakeSignedData [10:42:19]FM_MakeSignedData [10:42:19]SAM_PROTO_SignData [10:42:19]wFMCommunicate request_size=4 [10:42:19]MH_SAM_APDU [10:42:19]CAPDU: 80 0D 01 02 [10:42:19]Write to MH i2c: E2 08 00 2A 69 80 0D 01 02 00 00 00 00 0C [10:42:19]Write i2c OK [10:42:19]MH_I2C_Read... [10:42:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:19]Read from MH i2c: E2 [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: E2 03 00 [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: E2 03 00 2A 69 00 90 00 07 [10:42:19]RAPDU: 90 00 [10:42:19]wFMCommunicate OK [10:42:19]wFMCommunicate request_size=255 [10:42:19]MH_SAM_APDU [10:42:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 0F D0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F9 F9 03 00 35 04 06 00 7B [10:42:20]Write to MH i2c: E2 02 01 2B 69 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 0F D0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F9 F9 03 00 35 04 06 00 7B 00 00 EF [10:42:20]Write i2c OK [10:42:20]MH_I2C_Read... [10:42:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:20]Read from MH i2c: E2 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 03 00 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 03 00 2B 69 00 90 00 08 [10:42:20]RAPDU: 90 00 [10:42:20]wFMCommunicate OK [10:42:20]wFMCommunicate request_size=10 [10:42:20]MH_SAM_APDU [10:42:20]CAPDU: 80 0D 02 02 05 4D 19 BD 36 91 [10:42:20]Write to MH i2c: E2 0D 00 2C 69 80 0D 02 02 05 00 4D 19 BD 36 91 00 00 03 [10:42:20]Write i2c OK [10:42:20]MH_I2C_Read... [10:42:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:20]Read from MH i2c: E2 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 03 00 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 03 00 2C 69 00 90 00 09 [10:42:20]RAPDU: 90 00 [10:42:20]wFMCommunicate OK [10:42:20]wFMCommunicate request_size=4 [10:42:20]MH_SAM_APDU [10:42:20]CAPDU: 80 0D 03 02 [10:42:20]Write to MH i2c: E2 08 00 2D 69 80 0D 03 02 00 00 00 00 11 [10:42:20]Write i2c OK [10:42:20]MH_I2C_Read... [10:42:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:20]Read from MH i2c: E2 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 0B 00 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 0B 00 2D 69 00 E5 14 BC A1 99 67 C3 45 90 00 70 [10:42:20]RAPDU: E5 14 BC A1 99 67 C3 45 90 00 [10:42:20]wFMCommunicate OK [10:42:20]SAM_PROTO_SignData done [10:42:20]FM_MakeSignedData done [10:42:20]CreateOFDProtocolMessage [10:42:20]wFMCommunicate request_size=4 [10:42:20]MH_SAM_APDU [10:42:20]CAPDU: 80 11 00 00 [10:42:20]Write to MH i2c: E2 08 00 2E 69 80 11 00 00 00 00 00 00 11 [10:42:20]Write i2c OK [10:42:20]MH_I2C_Read... [10:42:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:20]Read from MH i2c: E2 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 17 00 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 17 00 2E 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 5E [10:42:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:42:20]wFMCommunicate OK [10:42:20]CreateOFDProtocolMessage done [10:42:20]OFDSenderStorePacket 260601 [10:42:20]StoreOFDPacket docnum=260601 [10:42:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 F0 AD 07 01 22 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 0F D0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F9 F9 03 00 35 04 06 00 7B 4D 19 BD 36 91 E5 14 BC A1 99 67 C3 45 [10:42:20]CheckFolder [10:42:20]dirname=/storage/ofd_packets [10:42:20]CheckFolder done [10:42:20]ProducePacketName [10:42:20]name=ofd_packets/00260601 [10:42:20]NVStorageSaveData ofd_packets/00260601 [10:42:20]File name is /storage/ofd_packets/00260601 [10:42:20]Write 301 bytes [10:42:20]NVStorageSaveData done [10:42:20]OFDSenderStorePacket done [10:42:20]KKMCreateOFDPacket done [10:42:20]NVStorageSaveData kkm_last_timestamp [10:42:20]File name is /storage/kkm_last_timestamp [10:42:20]Write 4 bytes [10:42:20]NVStorageSaveData done [10:42:20]ExternCall_PrintAddStr [10:42:20]wPrintStart [10:42:20]Write to MH i2c: 01 00 00 2F 69 98 [10:42:20]Write i2c OK [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: 01 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: 01 07 00 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: 01 07 00 2F 69 00 00 00 00 00 FF 0F AD [10:42:20]RasterBufferAndPrint [10:42:20]line Счет N : (1)1036147 [10:42:20]line ИНН: 02508201610067 [10:42:20]line Контрольно-Кассовый Чек [10:42:20]line ПРОДАЖА [10:42:20]line ТРК (МРК, ГНК) : 32 [10:42:20]line Товар: 2710124130 [10:42:20]line Аи-92-К-5 [10:42:20]line 14.750 * 67.80 [10:42:20]line = 1000.05 [10:42:20]line НДС 12% НСП 1% [10:42:20]line > о реализуемом товаре [10:42:20]line ОКРУГЛЕНИЕ: -0.05 [10:42:20]line ИТОГО: 1000.00 [10:42:20]line Внесено: 1000.00 [10:42:20]line СДАЧА: 0.00 [10:42:20]line НСП 1% : 8.85 [10:42:20]line НДС 12% : 106.20 [10:42:20]line Наличными: 1000.00 [10:42:20]line Безнал.: 0.00 [10:42:20]line Место: АЗС № 94 "Партнер Нефть" [10:42:20]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [10:42:20]line СНО: Общий режим [10:42:20]line Чек 159 18.08.2024 10:42 [10:42:20]line Смена: 449 ФФД: 1.0 [10:42:20]line ЗНМ: 0300000099 [10:42:20]line РНМ: 0000000000091865 [10:42:20]line Версия ККМ: 001 [10:42:20]line ФМ: 0000000000871820 [10:42:20]line ФД: 260601 [10:42:20]line ФПД: 135571074528913 [10:42:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T104223&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260601&fm=135571074528913&tin=02508201610067®Number=0000000000091865&sum=100000 [10:42:20]written 0, free lines is 4095 [10:42:20]OFD Sender: Processing packet 260601 [packets to send 192, broken 191] [10:42:20]ProducePacketName [10:42:20]name=ofd_packets/00260601 [10:42:20]OFD Sender: To server: pG, [10:42:20]CommunicateWithHost lk.salyk.kg:30040 [10:42:20]ConnectInit lk.salyk.kg [10:42:20]Connected sock=10 [10:42: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 30 0F 01 00 00 F0 AD 07 01 22 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 0F D0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F9 F9 03 00 35 04 06 00 7B 4D 19 BD 36 91 E5 14 BC A1 99 67 C3 45 [10:42: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 30 4F 00 00 00 D9 7E 47 00 12 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 F9 F9 03 00 F4 03 04 00 64 79 C1 66 B6 04 01 00 00 70 BD A5 9F 49 E7 39 AD [10:42:20]CommunicateWithHost err = 0 [10:42:20]CheckOFDResponse [10:42:20]1017 (14) - 77093643461234 [10:42:20]1041 (16) - 0000000000871820 [10:42:20]1040 (4) - 260601 [10:42:20]1012 (4) - 18.08.2024 04:32 [10:42:20]1206 (1) - 0 [10:42:20]OFD Sender: Remove packet 260601 [10:42:20]ProducePacketName [10:42:20]name=ofd_packets/00260601 [10:42:20]NVStorageDeleteData [10:42:20]Write to MH i2c: 01 00 00 5A 69 C3 [10:42:20]Write i2c OK [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: 01 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: 01 07 00 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: 01 07 00 5A 69 00 00 00 00 00 68 0C 3E [10:42:20]RasterBufferAndPrint [10:42:20]line [10:42:20]line [10:42:20]line [10:42:20]line [10:42:20]line [10:42:20]written 0, free lines is 3180 [10:42:20]MH_Cut [10:42:20]Write to MH i2c: D1 01 00 61 69 01 9C [10:42:20]Write i2c OK [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: D1 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: D1 01 00 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: D1 01 00 61 69 00 9B [10:42:20]Write to MH i2c: 01 00 00 62 69 CB [10:42:20]Write i2c OK [10:42:20]MH_I2C_Read... [10:42:21]OFD Sender: No OFD packet to send [10:42:22]*** Cut start [10:42:22]*** Purtial cut [10:42:22]*** Stage 1: CUTSNS_PIN = 1 [10:42:24]Read from MH i2c: 01 [10:42:24]MH_I2C_Read... [10:42:24]*** Stop cut motor [10:42:24]*** Cut end [10:42:24]Read from MH i2c: 01 07 00 [10:42:24]MH_I2C_Read... [10:42:24]Read from MH i2c: 01 07 00 62 69 00 00 00 00 00 FF 0F E0 [10:42:24]process_action close_receipt done [10:42:24]requested_data is exist [10:42:24]produce_requested_data [10:42:24]requested_item fm.sn is exist - process it [10:42:24]wFMCommunicate request_size=4 [10:42:24]MH_SAM_APDU [10:42:24]CAPDU: 80 11 00 00 [10:42:24]Write to MH i2c: E2 08 00 63 69 80 11 00 00 00 00 00 00 46 [10:42:24]Write i2c OK [10:42:24]MH_I2C_Read... [10:42:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:24]Read from MH i2c: E2 [10:42:24]MH_I2C_Read... [10:42:24]Read from MH i2c: E2 17 00 [10:42:24]MH_I2C_Read... [10:42:24]Read from MH i2c: E2 17 00 63 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 93 [10:42:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:42:24]wFMCommunicate OK [10:42:24]requested_item fd.num is exist - process it [10:42:24]SAM_PROTO_GetFieldsCounters [10:42:24]wFMCommunicate request_size=4 [10:42:24]MH_SAM_APDU [10:42:24]CAPDU: 80 13 00 00 [10:42:24]Write to MH i2c: E2 08 00 64 69 80 13 00 00 00 00 00 00 49 [10:42:24]Write i2c OK [10:42:24]MH_I2C_Read... [10:42:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:24]Read from MH i2c: E2 [10:42:24]MH_I2C_Read... [10:42:24]Read from MH i2c: E2 62 00 [10:42:24]MH_I2C_Read... [10:42:24]Read from MH i2c: E2 62 00 64 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F9 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [10:42: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F9 F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:42:24]wFMCommunicate OK [10:42:24]SAM_PROTO_GetFieldsCounters done [10:42:24]requested_item shift.num is exist - process it [10:42:24]requested_item shift.opened is exist - process it [10:42:24]req_shift_opened [10:42:24]FM_GetShiftState [10:42:24]SAM_PROTO_GetShiftState [10:42:24]wFMCommunicate request_size=4 [10:42:24]MH_SAM_APDU [10:42:24]CAPDU: 80 13 01 00 [10:42:24]Write to MH i2c: E2 08 00 65 69 80 13 01 00 00 00 00 00 4B [10:42:24]Write i2c OK [10:42:24]MH_I2C_Read... [10:42:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:24]Read from MH i2c: E2 [10:42:24]MH_I2C_Read... [10:42:24]Read from MH i2c: E2 0E 00 [10:42:24]MH_I2C_Read... [10:42:24]Read from MH i2c: E2 0E 00 65 69 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 88 [10:42:24]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:42:24]wFMCommunicate OK [10:42:24]SAM_PROTO_GetShiftState done [10:42:24]FM_GetShiftState done [10:42:24]req_shift_opened done [10:42:24]requested_item shift.open_date is exist - process it [10:42:24]req_shift_open_date [10:42:24]req_shift_open_date done [10:42:24]produce_requested_data done [10:42:24]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260601,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [10:42:24]process_action_free close_receipt [10:42:24]json_value_free [10:42:24]json_value_free done [10:42:24]process_json_proto returns [10:42:24]Send response to host [10:42:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260601,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [10:42:24]free response buf [10:42:24]execute_script done [10:42:24]execute_script returns [10:42:24]free content buf [10:42:24]Sock 7.Close socket [10:42:24]Sock 7.Thread stoped [10:42:26]OFD Sender: No OFD packet to send [10:42:31]OFD Sender: No OFD packet to send [10:42:36]OFD Sender: No OFD packet to send [10:42:41]OFD Sender: No OFD packet to send [10:42:46]OFD Sender: No OFD packet to send [10:42:51]OFD Sender: No OFD packet to send [10:42:56]OFD Sender: No OFD packet to send [10:43:01]OFD Sender: No OFD packet to send [10:43:06]OFD Sender: No OFD packet to send [10:43:11]OFD Sender: No OFD packet to send [10:43:16]OFD Sender: No OFD packet to send [10:43:21]OFD Sender: No OFD packet to send [10:43:26]OFD Sender: No OFD packet to send [10:43:31]OFD Sender: No OFD packet to send [10:43:36]OFD Sender: No OFD packet to send [10:43:41]OFD Sender: No OFD packet to send [10:43:46]OFD Sender: No OFD packet to send [10:43:51]OFD Sender: No OFD packet to send [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:10]accept exits with 9 [10:44:10]New connection [10:44:10]New thread 3066473828 created [10:44:10]Thread 3066617188 joined [10:44:10]Waiting for new connection... [10:44:10] Sock 9.Parse request [10:44:10]Sock 9.Check first char [10:44:10]Sock 9.First char is OK [10:44:10]request: POST /json_proto HTTP/1.0 [10:44:10]Method: POST [10:44:10]URL: /json_proto [10:44:10]Method is POST - this is cgi request [10:44:10]url: /json_proto [10:44:10]query_string will be loaded in cgi processing [10:44:10]execute_cgi json_proto POST (null) [10:44:10]execute_cgi path=json_proto method=POST [10:44:10]POST find Content-Length [10:44:10]Host: 172.17.55.133:8080 [10:44:10]Content-Length: 678 [10:44:10]Content-Type: application/json [10:44:10] [10:44:10]POST finish read [10:44:10]Found Content-Length = 678 [10:44:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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" ] } } [10:44:10]execute_script... [10:44: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)1036148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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" ] } } [10:44:10]POST & json_proto [10:44:10]process_json_proto [10:44:10]json parsed OK: [10:44:10]protocol is kg_v1.0 [10:44:10]action value=close_receipt [10:44:10]process_action close_receipt [10:44:10]cmd_close_receipt [10:44:10]MH_GetDate [10:44:10]Write to MH i2c: F0 00 00 66 69 BE [10:44:10]Write i2c OK [10:44:10]MH_I2C_Read... [10:44:10]Read from MH i2c: F0 [10:44:10]MH_I2C_Read... [10:44:10]Read from MH i2c: F0 09 00 [10:44:10]MH_I2C_Read... [10:44:10]Read from MH i2c: F0 09 00 66 69 00 7E D0 C1 66 34 48 D8 65 F5 [10:44:10]GetLastDocTimeStamp 1723977743 [10:44:10]current date 1723977854 [10:44:10]FM_GetShiftState [10:44:10]SAM_PROTO_GetShiftState [10:44:10]wFMCommunicate request_size=4 [10:44:10]MH_SAM_APDU [10:44:10]CAPDU: 80 13 01 00 [10:44:10]Write to MH i2c: E2 08 00 67 69 80 13 01 00 00 00 00 00 4D [10:44:10]Write i2c OK [10:44:10]MH_I2C_Read... [10:44:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:10]Read from MH i2c: E2 [10:44:10]MH_I2C_Read... [10:44:10]Read from MH i2c: E2 0E 00 [10:44:10]MH_I2C_Read... [10:44:10]Read from MH i2c: E2 0E 00 67 69 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 8A [10:44:10]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:44:10]wFMCommunicate OK [10:44:10]SAM_PROTO_GetShiftState done [10:44:10]FM_GetShiftState done [10:44:10]opened in 1723940556 [10:44:10]opened+sec_in_day 1724026956 [10:44:10]quantity*price = 20001 [10:44:10]sum+1 = 20002 [10:44:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 160 18.08.2024 10:44 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260602 ФПД: 197158464406625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T104414&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260602&fm=197158464406625&tin=02508201610067®Number=0000000000091865&sum=20000 [10:44:11]StoreToDocumentArchive [10:44:11]shift 449 fd 260602 [10:44:11]save to /storage/0449/doc_00260602 [10:44:11]save last doc name /storage/0449/doc_00260602 to /storage/kkm_last_doc_name [10:44:11]save OK [10:44:11]Clear old archive folders... [10:44:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:44:11]tlvbuf is 00540880 [10:44:11]SAM_PROTO_ClearQueue [10:44:11]wFMCommunicate request_size=4 [10:44:11]MH_SAM_APDU [10:44:11]CAPDU: 80 09 00 00 [10:44:11]Write to MH i2c: E2 08 00 74 69 80 09 00 00 00 00 00 00 4F [10:44:11]Write i2c OK [10:44:11]MH_I2C_Read... [10:44:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:11]Read from MH i2c: E2 [10:44:11]MH_I2C_Read... [10:44:11]Read from MH i2c: E2 03 00 [10:44:11]MH_I2C_Read... [10:44:11]Read from MH i2c: E2 03 00 74 69 00 90 00 51 [10:44:11]RAPDU: 90 00 [10:44:11]wFMCommunicate OK [10:44:11]SAM_PROTO_ClearQueue done [10:44:11]KKMCreateOFDPacket [10:44:11]OFDProtocolAddRootSTLVToBuf [10:44:11]FM_MakeSignedData [10:44:11]FM_MakeSignedData [10:44:11]SAM_PROTO_SignData [10:44:11]wFMCommunicate request_size=4 [10:44:11]MH_SAM_APDU [10:44:11]CAPDU: 80 0D 01 02 [10:44:11]Write to MH i2c: E2 08 00 75 69 80 0D 01 02 00 00 00 00 57 [10:44:11]Write i2c OK [10:44:11]MH_I2C_Read... [10:44:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:11]Read from MH i2c: E2 [10:44:11]MH_I2C_Read... [10:44:11]Read from MH i2c: E2 03 00 [10:44:11]MH_I2C_Read... [10:44:11]Read from MH i2c: E2 03 00 75 69 00 90 00 52 [10:44:11]RAPDU: 90 00 [10:44:11]wFMCommunicate OK [10:44:11]wFMCommunicate request_size=255 [10:44:11]MH_SAM_APDU [10:44:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 7E D0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FA F9 03 00 35 04 06 00 B3 [10:44:11]Write to MH i2c: E2 02 01 76 69 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 7E D0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FA F9 03 00 35 04 06 00 B3 00 00 56 [10:44:11]Write i2c OK [10:44:11]MH_I2C_Read... [10:44:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:12]Read from MH i2c: E2 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: E2 03 00 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: E2 03 00 76 69 00 90 00 53 [10:44:12]RAPDU: 90 00 [10:44:12]wFMCommunicate OK [10:44:12]wFMCommunicate request_size=10 [10:44:12]MH_SAM_APDU [10:44:12]CAPDU: 80 0D 02 02 05 50 88 3C 44 61 [10:44:12]Write to MH i2c: E2 0D 00 77 69 80 0D 02 02 05 00 50 88 3C 44 61 00 00 1D [10:44:12]Write i2c OK [10:44:12]MH_I2C_Read... [10:44:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:12]Read from MH i2c: E2 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: E2 03 00 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: E2 03 00 77 69 00 90 00 54 [10:44:12]RAPDU: 90 00 [10:44:12]wFMCommunicate OK [10:44:12]wFMCommunicate request_size=4 [10:44:12]MH_SAM_APDU [10:44:12]CAPDU: 80 0D 03 02 [10:44:12]Write to MH i2c: E2 08 00 78 69 80 0D 03 02 00 00 00 00 5C [10:44:12]Write i2c OK [10:44:12]MH_I2C_Read... [10:44:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:12]Read from MH i2c: E2 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: E2 0B 00 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: E2 0B 00 78 69 00 A1 7C 8A 92 12 9F C1 CE 90 00 D6 [10:44:12]RAPDU: A1 7C 8A 92 12 9F C1 CE 90 00 [10:44:12]wFMCommunicate OK [10:44:12]SAM_PROTO_SignData done [10:44:12]FM_MakeSignedData done [10:44:12]CreateOFDProtocolMessage [10:44:12]wFMCommunicate request_size=4 [10:44:12]MH_SAM_APDU [10:44:12]CAPDU: 80 11 00 00 [10:44:12]Write to MH i2c: E2 08 00 79 69 80 11 00 00 00 00 00 00 5C [10:44:12]Write i2c OK [10:44:12]MH_I2C_Read... [10:44:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:12]Read from MH i2c: E2 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: E2 17 00 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: E2 17 00 79 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A9 [10:44:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:44:12]wFMCommunicate OK [10:44:12]CreateOFDProtocolMessage done [10:44:12]OFDSenderStorePacket 260602 [10:44:12]StoreOFDPacket docnum=260602 [10:44:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 BB 01 07 01 EA FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 7E D0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FA F9 03 00 35 04 06 00 B3 50 88 3C 44 61 A1 7C 8A 92 12 9F C1 CE [10:44:12]CheckFolder [10:44:12]dirname=/storage/ofd_packets [10:44:12]CheckFolder done [10:44:12]ProducePacketName [10:44:12]name=ofd_packets/00260602 [10:44:12]NVStorageSaveData ofd_packets/00260602 [10:44:12]File name is /storage/ofd_packets/00260602 [10:44:12]Write 301 bytes [10:44:12]NVStorageSaveData done [10:44:12]OFDSenderStorePacket done [10:44:12]KKMCreateOFDPacket done [10:44:12]NVStorageSaveData kkm_last_timestamp [10:44:12]File name is /storage/kkm_last_timestamp [10:44:12]Write 4 bytes [10:44:12]NVStorageSaveData done [10:44:12]ExternCall_PrintAddStr [10:44:12]wPrintStart [10:44:12]Write to MH i2c: 01 00 00 7A 69 E3 [10:44:12]OFD Sender: Processing packet 260602 [packets to send 192, broken 191] [10:44:12]ProducePacketName [10:44:12]name=ofd_packets/00260602 [10:44:12]OFD Sender: To server: pG, [10:44:12]CommunicateWithHost lk.salyk.kg:30040 [10:44:12]ConnectInit lk.salyk.kg [10:44:12]Write i2c OK [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: 01 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: 01 07 00 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: 01 07 00 7A 69 00 00 00 00 00 FF 0F F8 [10:44:12]RasterBufferAndPrint [10:44:12]line Счет N : (1)1036148 [10:44:12]line ИНН: 02508201610067 [10:44:12]line Контрольно-Кассовый Чек [10:44:12]line ПРОДАЖА [10:44:12]line ТРК (МРК, ГНК) : 32 [10:44:12]line Товар: 2710124130 [10:44:12]line Аи-92-К-5 [10:44:12]line 2.950 * 67.80 [10:44:12]line = 200.01 [10:44:12]line НДС 12% НСП 1% [10:44:12]line > о реализуемом товаре [10:44:12]line ОКРУГЛЕНИЕ: -0.01 [10:44:12]line ИТОГО: 200.00 [10:44:12]line Внесено: 200.00 [10:44:12]line СДАЧА: 0.00 [10:44:12]line НСП 1% : 1.77 [10:44:12]line НДС 12% : 21.24 [10:44:12]line Наличными: 200.00 [10:44:12]line Безнал.: 0.00 [10:44:12]line Место: АЗС № 94 "Партнер Нефть" [10:44:12]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [10:44:12]line СНО: Общий режим [10:44:12]line Чек 160 18.08.2024 10:44 [10:44:12]line Смена: 449 ФФД: 1.0 [10:44:12]line ЗНМ: 0300000099 [10:44:12]line РНМ: 0000000000091865 [10:44:12]line Версия ККМ: 001 [10:44:12]line ФМ: 0000000000871820 [10:44:12]line ФД: 260602 [10:44:12]line ФПД: 197158464406625 [10:44:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T104414&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260602&fm=197158464406625&tin=02508201610067®Number=0000000000091865&sum=20000 [10:44:12]Connected sock=10 [10:44: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 30 0F 01 00 00 BB 01 07 01 EA FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 7E D0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FA F9 03 00 35 04 06 00 B3 50 88 3C 44 61 A1 7C 8A 92 12 9F C1 CE [10:44:12]written 0, free lines is 4095 [10:44: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 30 4F 00 00 00 55 BF 47 00 6A 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 30 10 04 04 00 FA F9 03 00 F4 03 04 00 D4 79 C1 66 B6 04 01 00 00 84 19 42 AA D8 71 CB 11 [10:44:12]CommunicateWithHost err = 0 [10:44:12]CheckOFDResponse [10:44:12]1017 (14) - 77093643461234 [10:44:12]1041 (16) - 0000000000871820 [10:44:12]1040 (4) - 260602 [10:44:12]1012 (4) - 18.08.2024 04:34 [10:44:12]1206 (1) - 0 [10:44:12]OFD Sender: Remove packet 260602 [10:44:12]ProducePacketName [10:44:12]name=ofd_packets/00260602 [10:44:12]NVStorageDeleteData [10:44:13]Write to MH i2c: 01 00 00 A5 69 0E [10:44:13]Write i2c OK [10:44:13]MH_I2C_Read... [10:44:13]Read from MH i2c: 01 [10:44:13]MH_I2C_Read... [10:44:13]Read from MH i2c: 01 07 00 [10:44:13]MH_I2C_Read... [10:44:13]Read from MH i2c: 01 07 00 A5 69 00 00 00 00 00 68 0C 89 [10:44:13]RasterBufferAndPrint [10:44:13]line [10:44:13]line [10:44:13]line [10:44:13]line [10:44:13]line [10:44:13]written 0, free lines is 3180 [10:44:13]MH_Cut [10:44:13]Write to MH i2c: D1 01 00 AC 69 01 E7 [10:44:13]Write i2c OK [10:44:13]MH_I2C_Read... [10:44:13]Read from MH i2c: D1 [10:44:13]MH_I2C_Read... [10:44:13]Read from MH i2c: D1 01 00 [10:44:13]MH_I2C_Read... [10:44:13]Read from MH i2c: D1 01 00 AC 69 00 E6 [10:44:13]Write to MH i2c: 01 00 00 AD 69 16 [10:44:13]Write i2c OK [10:44:13]MH_I2C_Read... [10:44:13]OFD Sender: No OFD packet to send [10:44:14]*** Cut start [10:44:14]*** Purtial cut [10:44:14]*** Stage 1: CUTSNS_PIN = 1 [10:44:16]Read from MH i2c: 01 [10:44:16]MH_I2C_Read... [10:44:16]*** Stop cut motor [10:44:16]*** Cut end [10:44:16]Read from MH i2c: 01 07 00 [10:44:16]MH_I2C_Read... [10:44:16]Read from MH i2c: 01 07 00 AD 69 00 00 00 00 00 FF 0F 2B [10:44:16]process_action close_receipt done [10:44:16]requested_data is exist [10:44:16]produce_requested_data [10:44:16]requested_item fm.sn is exist - process it [10:44:16]wFMCommunicate request_size=4 [10:44:16]MH_SAM_APDU [10:44:16]CAPDU: 80 11 00 00 [10:44:16]Write to MH i2c: E2 08 00 AE 69 80 11 00 00 00 00 00 00 91 [10:44:16]Write i2c OK [10:44:16]MH_I2C_Read... [10:44:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:16]Read from MH i2c: E2 [10:44:16]MH_I2C_Read... [10:44:16]Read from MH i2c: E2 17 00 [10:44:16]MH_I2C_Read... [10:44:16]Read from MH i2c: E2 17 00 AE 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 DE [10:44:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:44:16]wFMCommunicate OK [10:44:16]requested_item fd.num is exist - process it [10:44:16]SAM_PROTO_GetFieldsCounters [10:44:16]wFMCommunicate request_size=4 [10:44:16]MH_SAM_APDU [10:44:16]CAPDU: 80 13 00 00 [10:44:16]Write to MH i2c: E2 08 00 AF 69 80 13 00 00 00 00 00 00 94 [10:44:16]Write i2c OK [10:44:16]MH_I2C_Read... [10:44:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:16]Read from MH i2c: E2 [10:44:16]MH_I2C_Read... [10:44:16]Read from MH i2c: E2 62 00 [10:44:16]MH_I2C_Read... [10:44:16]Read from MH i2c: E2 62 00 AF 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 FA F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [10:44:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 FA F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:44:16]wFMCommunicate OK [10:44:16]SAM_PROTO_GetFieldsCounters done [10:44:16]requested_item shift.num is exist - process it [10:44:16]requested_item shift.opened is exist - process it [10:44:16]req_shift_opened [10:44:16]FM_GetShiftState [10:44:16]SAM_PROTO_GetShiftState [10:44:16]wFMCommunicate request_size=4 [10:44:16]MH_SAM_APDU [10:44:16]CAPDU: 80 13 01 00 [10:44:16]Write to MH i2c: E2 08 00 B0 69 80 13 01 00 00 00 00 00 96 [10:44:16]Write i2c OK [10:44:16]MH_I2C_Read... [10:44:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:16]Read from MH i2c: E2 [10:44:16]MH_I2C_Read... [10:44:16]Read from MH i2c: E2 0E 00 [10:44:16]MH_I2C_Read... [10:44:16]Read from MH i2c: E2 0E 00 B0 69 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D3 [10:44:16]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:44:16]wFMCommunicate OK [10:44:16]SAM_PROTO_GetShiftState done [10:44:16]FM_GetShiftState done [10:44:16]req_shift_opened done [10:44:16]requested_item shift.open_date is exist - process it [10:44:16]req_shift_open_date [10:44:16]req_shift_open_date done [10:44:16]produce_requested_data done [10:44:16]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260602,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [10:44:16]process_action_free close_receipt [10:44:16]json_value_free [10:44:16]json_value_free done [10:44:16]process_json_proto returns [10:44:16]Send response to host [10:44:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260602,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [10:44:16]free response buf [10:44:16]execute_script done [10:44:16]execute_script returns [10:44:16]free content buf [10:44:16]Sock 9.Close socket [10:44:16]Sock 9.Thread stoped [10:44:18]OFD Sender: No OFD packet to send [10:44:23]OFD Sender: No OFD packet to send [10:44:28]OFD Sender: No OFD packet to send [10:44:33]OFD Sender: No OFD packet to send [10:44:38]OFD Sender: No OFD packet to send [10:44:43]OFD Sender: No OFD packet to send [10:44:48]OFD Sender: No OFD packet to send [10:44:53]OFD Sender: No OFD packet to send [10:44:58]OFD Sender: No OFD packet to send [10:44:59]accept exits with 7 [10:44:59]New connection [10:44:59]New thread 3066617188 created [10:44:59]Thread 3066473828 joined [10:44:59]Waiting for new connection... [10:44:59] Sock 7.Parse request [10:44:59]Sock 7.Check first char [10:44:59]Sock 7.First char is OK [10:44:59]request: POST /json_proto HTTP/1.0 [10:44:59]Method: POST [10:44:59]URL: /json_proto [10:44:59]Method is POST - this is cgi request [10:44:59]url: /json_proto [10:44:59]query_string will be loaded in cgi processing [10:44:59]execute_cgi json_proto POST (null) [10:44:59]execute_cgi path=json_proto method=POST [10:44:59]POST find Content-Length [10:44:59]Host: 172.17.55.133:8080 [10:44:59]Content-Length: 772 [10:44:59]Content-Type: application/json [10:44:59] [10:44:59]POST finish read [10:44:59]Found Content-Length = 772 [10:44:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Balance.KG", "payments": [ { "type": 1, "sum" : 500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:59]execute_script... [10:44: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)1036149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Balance.KG", "payments": [ { "type": 1, "sum" : 500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:59]POST & json_proto [10:44:59]process_json_proto [10:44:59]json parsed OK: [10:44:59]protocol is kg_v1.0 [10:44:59]action value=close_receipt [10:44:59]process_action close_receipt [10:44:59]cmd_close_receipt [10:44:59]MH_GetDate [10:44:59]Write to MH i2c: F0 00 00 B1 69 09 [10:44:59]Write i2c OK [10:44:59]MH_I2C_Read... [10:44:59]Read from MH i2c: F0 [10:44:59]MH_I2C_Read... [10:44:59]Read from MH i2c: F0 09 00 [10:44:59]MH_I2C_Read... [10:44:59]Read from MH i2c: F0 09 00 B1 69 00 AF D0 C1 66 34 48 D8 65 71 [10:44:59]GetLastDocTimeStamp 1723977854 [10:44:59]current date 1723977903 [10:44:59]FM_GetShiftState [10:44:59]SAM_PROTO_GetShiftState [10:44:59]wFMCommunicate request_size=4 [10:44:59]MH_SAM_APDU [10:44:59]CAPDU: 80 13 01 00 [10:44:59]Write to MH i2c: E2 08 00 B2 69 80 13 01 00 00 00 00 00 98 [10:44:59]Write i2c OK [10:44:59]MH_I2C_Read... [10:44:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:59]Read from MH i2c: E2 [10:44:59]MH_I2C_Read... [10:44:59]Read from MH i2c: E2 0E 00 [10:44:59]MH_I2C_Read... [10:44:59]Read from MH i2c: E2 0E 00 B2 69 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D5 [10:44:59]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:44:59]wFMCommunicate OK [10:44:59]SAM_PROTO_GetShiftState done [10:44:59]FM_GetShiftState done [10:44:59]opened in 1723940556 [10:44:59]opened+sec_in_day 1724026956 [10:44:59]quantity*price = 50036 [10:44:59]sum+1 = 50037 [10:44:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 161 18.08.2024 10:45 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: Balance.KG ФМ: 0000000000871820 ФД: 260603 ФПД: 43139347603167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T104503&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260603&fm=43139347603167&tin=02508201610067®Number=0000000000091865&sum=50036 [10:45:00]StoreToDocumentArchive [10:45:00]shift 449 fd 260603 [10:45:00]save to /storage/0449/doc_00260603 [10:45:00]save last doc name /storage/0449/doc_00260603 to /storage/kkm_last_doc_name [10:45:00]save OK [10:45:00]Clear old archive folders... [10:45:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:45:00]tlvbuf is 00409FE0 [10:45:00]SAM_PROTO_ClearQueue [10:45:00]wFMCommunicate request_size=4 [10:45:00]MH_SAM_APDU [10:45:00]CAPDU: 80 09 00 00 [10:45:00]Write to MH i2c: E2 08 00 BF 69 80 09 00 00 00 00 00 00 9A [10:45:00]Write i2c OK [10:45:00]MH_I2C_Read... [10:45:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:00]Read from MH i2c: E2 [10:45:00]MH_I2C_Read... [10:45:00]Read from MH i2c: E2 03 00 [10:45:00]MH_I2C_Read... [10:45:00]Read from MH i2c: E2 03 00 BF 69 00 90 00 9C [10:45:00]RAPDU: 90 00 [10:45:00]wFMCommunicate OK [10:45:00]SAM_PROTO_ClearQueue done [10:45:00]KKMCreateOFDPacket [10:45:00]OFDProtocolAddRootSTLVToBuf [10:45:00]FM_MakeSignedData [10:45:00]FM_MakeSignedData [10:45:00]SAM_PROTO_SignData [10:45:00]wFMCommunicate request_size=4 [10:45:00]MH_SAM_APDU [10:45:00]CAPDU: 80 0D 01 02 [10:45:00]Write to MH i2c: E2 08 00 C0 69 80 0D 01 02 00 00 00 00 A2 [10:45:00]Write i2c OK [10:45:00]MH_I2C_Read... [10:45:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:00]Read from MH i2c: E2 [10:45:00]MH_I2C_Read... [10:45:00]Read from MH i2c: E2 03 00 [10:45:00]MH_I2C_Read... [10:45:00]Read from MH i2c: E2 03 00 C0 69 00 90 00 9D [10:45:00]RAPDU: 90 00 [10:45:00]wFMCommunicate OK [10:45:00]wFMCommunicate request_size=255 [10:45:00]MH_SAM_APDU [10:45:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 AF D0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FB F9 03 00 35 04 06 00 27 [10:45:00]Write to MH i2c: E2 02 01 C1 69 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 AF D0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FB F9 03 00 35 04 06 00 27 00 00 8E [10:45:00]Write i2c OK [10:45:00]MH_I2C_Read... [10:45:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:00]Read from MH i2c: E2 [10:45:00]MH_I2C_Read... [10:45:00]Read from MH i2c: E2 03 00 [10:45:00]MH_I2C_Read... [10:45:00]Read from MH i2c: E2 03 00 C1 69 00 90 00 9E [10:45:00]RAPDU: 90 00 [10:45:00]wFMCommunicate OK [10:45:00]wFMCommunicate request_size=10 [10:45:00]MH_SAM_APDU [10:45:00]CAPDU: 80 0D 02 02 05 3C 29 7D 5E DF [10:45:00]Write to MH i2c: E2 0D 00 C2 69 80 0D 02 02 05 00 3C 29 7D 5E DF 00 00 CE [10:45:00]Write i2c OK [10:45:00]MH_I2C_Read... [10:45:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:00]Read from MH i2c: E2 [10:45:00]MH_I2C_Read... [10:45:00]Read from MH i2c: E2 03 00 [10:45:00]MH_I2C_Read... [10:45:00]Read from MH i2c: E2 03 00 C2 69 00 90 00 9F [10:45:00]RAPDU: 90 00 [10:45:00]wFMCommunicate OK [10:45:00]wFMCommunicate request_size=4 [10:45:00]MH_SAM_APDU [10:45:00]CAPDU: 80 0D 03 02 [10:45:00]Write to MH i2c: E2 08 00 C3 69 80 0D 03 02 00 00 00 00 A7 [10:45:00]Write i2c OK [10:45:00]MH_I2C_Read... [10:45:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:00]Read from MH i2c: E2 [10:45:00]MH_I2C_Read... [10:45:00]Read from MH i2c: E2 0B 00 [10:45:00]MH_I2C_Read... [10:45:00]Read from MH i2c: E2 0B 00 C3 69 00 FB 48 DE B2 74 0F 07 5D 90 00 62 [10:45:00]RAPDU: FB 48 DE B2 74 0F 07 5D 90 00 [10:45:00]wFMCommunicate OK [10:45:00]SAM_PROTO_SignData done [10:45:00]FM_MakeSignedData done [10:45:00]CreateOFDProtocolMessage [10:45:00]wFMCommunicate request_size=4 [10:45:00]MH_SAM_APDU [10:45:00]CAPDU: 80 11 00 00 [10:45:00]Write to MH i2c: E2 08 00 C4 69 80 11 00 00 00 00 00 00 A7 [10:45:00]Write i2c OK [10:45:00]MH_I2C_Read... [10:45:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:00]Read from MH i2c: E2 [10:45:00]MH_I2C_Read... [10:45:00]Read from MH i2c: E2 17 00 [10:45:00]MH_I2C_Read... [10:45:00]Read from MH i2c: E2 17 00 C4 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F4 [10:45:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:45:00]wFMCommunicate OK [10:45:00]CreateOFDProtocolMessage done [10:45:00]OFDSenderStorePacket 260603 [10:45:00]StoreOFDPacket docnum=260603 [10:45:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 FA 04 07 01 AF 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 AF D0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FB F9 03 00 35 04 06 00 27 3C 29 7D 5E DF FB 48 DE B2 74 0F 07 5D [10:45:00]CheckFolder [10:45:00]dirname=/storage/ofd_packets [10:45:00]CheckFolder done [10:45:00]ProducePacketName [10:45:00]name=ofd_packets/00260603 [10:45:00]NVStorageSaveData ofd_packets/00260603 [10:45:00]File name is /storage/ofd_packets/00260603 [10:45:00]Write 301 bytes [10:45:00]NVStorageSaveData done [10:45:00]OFDSenderStorePacket done [10:45:00]KKMCreateOFDPacket done [10:45:00]NVStorageSaveData kkm_last_timestamp [10:45:00]File name is /storage/kkm_last_timestamp [10:45:00]Write 4 bytes [10:45:00]NVStorageSaveData done [10:45:00]ExternCall_PrintAddStr [10:45:00]wPrintStart [10:45:00]Write to MH i2c: 01 00 00 C5 69 2E [10:45:00]Write i2c OK [10:45:00]MH_I2C_Read... [10:45:00]Read from MH i2c: 01 [10:45:00]MH_I2C_Read... [10:45:00]Read from MH i2c: 01 07 00 [10:45:00]MH_I2C_Read... [10:45:00]Read from MH i2c: 01 07 00 C5 69 00 00 00 00 00 FF 0F 43 [10:45:00]RasterBufferAndPrint [10:45:00]line Счет N : (1)1036149 [10:45:00]line ИНН: 02508201610067 [10:45:00]line Контрольно-Кассовый Чек [10:45:00]line ПРОДАЖА [10:45:00]line ТРК (МРК, ГНК) : 22 [10:45:00]line Товар: 2710124130 [10:45:00]line Аи-92-К-5 [10:45:00]line 7.380 * 67.80 [10:45:00]line = 500.36 [10:45:00]line НДС 12% НСП 1% [10:45:00]line > о реализуемом товаре [10:45:00]line ИТОГО: 500.36 [10:45:00]line НСП 1% : 4.43 [10:45:00]line НДС 12% : 53.14 [10:45:00]line Наличными: 0.00 [10:45:00]line Безнал.: 500.36 [10:45:00]line Место: АЗС № 94 "Партнер Нефть" [10:45:00]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [10:45:00]line СНО: Общий режим [10:45:00]line Чек 161 18.08.2024 10:45 [10:45:00]line Смена: 449 ФФД: 1.0 [10:45:00]line ЗНМ: 0300000099 [10:45:00]line РНМ: 0000000000091865 [10:45:00]line Версия ККМ: 001 [10:45:00]line Платежная система: Balance.KG [10:45:00]line ФМ: 0000000000871820 [10:45:00]line ФД: 260603 [10:45:00]line ФПД: 43139347603167 [10:45:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T104503&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260603&fm=43139347603167&tin=02508201610067®Number=0000000000091865&sum=50036 [10:45:01]OFD Sender: Processing packet 260603 [packets to send 192, broken 191] [10:45:01]ProducePacketName [10:45:01]name=ofd_packets/00260603 [10:45:01]OFD Sender: To server: pG, [10:45:01]CommunicateWithHost lk.salyk.kg:30040 [10:45:01]ConnectInit lk.salyk.kg [10:45:01]written 0, free lines is 4095 [10:45:01]Connected sock=10 [10:45: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 30 0F 01 00 00 FA 04 07 01 AF 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 AF D0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FB F9 03 00 35 04 06 00 27 3C 29 7D 5E DF FB 48 DE B2 74 0F 07 5D [10:45: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 30 4F 00 00 00 3D CF 47 00 35 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FB F9 03 00 F4 03 04 00 04 7A C1 66 B6 04 01 00 00 8F 93 A2 A5 6B DD D1 6C [10:45:01]CommunicateWithHost err = 0 [10:45:01]CheckOFDResponse [10:45:01]1017 (14) - 77093643461234 [10:45:01]1041 (16) - 0000000000871820 [10:45:01]1040 (4) - 260603 [10:45:01]1012 (4) - 18.08.2024 04:35 [10:45:01]1206 (1) - 0 [10:45:01]OFD Sender: Remove packet 260603 [10:45:01]ProducePacketName [10:45:01]name=ofd_packets/00260603 [10:45:01]NVStorageDeleteData [10:45:01]Write to MH i2c: 01 00 00 EF 69 58 [10:45:01]Write i2c OK [10:45:01]MH_I2C_Read... [10:45:01]Read from MH i2c: 01 [10:45:01]MH_I2C_Read... [10:45:01]Read from MH i2c: 01 07 00 [10:45:01]MH_I2C_Read... [10:45:01]Read from MH i2c: 01 07 00 EF 69 00 00 00 00 00 7C 0C E7 [10:45:01]RasterBufferAndPrint [10:45:01]line [10:45:01]line [10:45:01]line [10:45:01]line [10:45:01]line [10:45:01]written 0, free lines is 3199 [10:45:01]MH_Cut [10:45:01]Write to MH i2c: D1 01 00 F6 69 01 31 [10:45:01]Write i2c OK [10:45:01]MH_I2C_Read... [10:45:01]Read from MH i2c: D1 [10:45:01]MH_I2C_Read... [10:45:01]Read from MH i2c: D1 01 00 [10:45:01]MH_I2C_Read... [10:45:01]Read from MH i2c: D1 01 00 F6 69 00 30 [10:45:01]Write to MH i2c: 01 00 00 F7 69 60 [10:45:01]Write i2c OK [10:45:01]MH_I2C_Read... [10:45:01]OFD Sender: No OFD packet to send [10:45:02]*** Cut start [10:45:02]*** Purtial cut [10:45:02]*** Stage 1: CUTSNS_PIN = 1 [10:45:04]Read from MH i2c: 01 [10:45:04]MH_I2C_Read... [10:45:04]*** Stop cut motor [10:45:04]*** Cut end [10:45:04]Read from MH i2c: 01 07 00 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: 01 07 00 F7 69 00 00 00 00 00 FF 0F 75 [10:45:04]process_action close_receipt done [10:45:04]requested_data is exist [10:45:04]produce_requested_data [10:45:04]requested_item fm.sn is exist - process it [10:45:04]wFMCommunicate request_size=4 [10:45:04]MH_SAM_APDU [10:45:04]CAPDU: 80 11 00 00 [10:45:04]Write to MH i2c: E2 08 00 F8 69 80 11 00 00 00 00 00 00 DB [10:45:04]Write i2c OK [10:45:04]MH_I2C_Read... [10:45:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:04]Read from MH i2c: E2 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: E2 17 00 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: E2 17 00 F8 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 28 [10:45:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:45:04]wFMCommunicate OK [10:45:04]requested_item fd.num is exist - process it [10:45:04]SAM_PROTO_GetFieldsCounters [10:45:04]wFMCommunicate request_size=4 [10:45:04]MH_SAM_APDU [10:45:04]CAPDU: 80 13 00 00 [10:45:04]Write to MH i2c: E2 08 00 F9 69 80 13 00 00 00 00 00 00 DE [10:45:04]Write i2c OK [10:45:04]MH_I2C_Read... [10:45:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:04]Read from MH i2c: E2 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: E2 62 00 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: E2 62 00 F9 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 FB F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [10:45: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 FB F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:45:04]wFMCommunicate OK [10:45:04]SAM_PROTO_GetFieldsCounters done [10:45:04]requested_item shift.num is exist - process it [10:45:04]requested_item shift.opened is exist - process it [10:45:04]req_shift_opened [10:45:04]FM_GetShiftState [10:45:04]SAM_PROTO_GetShiftState [10:45:04]wFMCommunicate request_size=4 [10:45:04]MH_SAM_APDU [10:45:04]CAPDU: 80 13 01 00 [10:45:04]Write to MH i2c: E2 08 00 FA 69 80 13 01 00 00 00 00 00 E0 [10:45:04]Write i2c OK [10:45:04]MH_I2C_Read... [10:45:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:05]Read from MH i2c: E2 [10:45:05]MH_I2C_Read... [10:45:05]Read from MH i2c: E2 0E 00 [10:45:05]MH_I2C_Read... [10:45:05]Read from MH i2c: E2 0E 00 FA 69 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 1D [10:45:05]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:45:05]wFMCommunicate OK [10:45:05]SAM_PROTO_GetShiftState done [10:45:05]FM_GetShiftState done [10:45:05]req_shift_opened done [10:45:05]requested_item shift.open_date is exist - process it [10:45:05]req_shift_open_date [10:45:05]req_shift_open_date done [10:45:05]produce_requested_data done [10:45:05]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260603,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [10:45:05]process_action_free close_receipt [10:45:05]json_value_free [10:45:05]json_value_free done [10:45:05]process_json_proto returns [10:45:05]Send response to host [10:45:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260603,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [10:45:05]free response buf [10:45:05]execute_script done [10:45:05]execute_script returns [10:45:05]free content buf [10:45:05]Sock 7.Close socket [10:45:05]Sock 7.Thread stoped [10:45:06]OFD Sender: No OFD packet to send [10:45:11]OFD Sender: No OFD packet to send [10:45:17]OFD Sender: No OFD packet to send [10:45:22]OFD Sender: No OFD packet to send [10:45:27]OFD Sender: No OFD packet to send [10:45:32]OFD Sender: No OFD packet to send [10:45:37]OFD Sender: No OFD packet to send [10:45:42]OFD Sender: No OFD packet to send [10:45:47]OFD Sender: No OFD packet to send [10:45:52]OFD Sender: No OFD packet to send [10:45:55]accept exits with 9 [10:45:55]New connection [10:45:55]New thread 3066473828 created [10:45:55]Thread 3066617188 joined [10:45:55]Waiting for new connection... [10:45:55] Sock 9.Parse request [10:45:55]Sock 9.Check first char [10:45:55]Sock 9.First char is OK [10:45:55]request: POST /json_proto HTTP/1.0 [10:45:55]Method: POST [10:45:55]URL: /json_proto [10:45:55]Method is POST - this is cgi request [10:45:55]url: /json_proto [10:45:55]query_string will be loaded in cgi processing [10:45:55]execute_cgi json_proto POST (null) [10:45:55]execute_cgi path=json_proto method=POST [10:45:55]POST find Content-Length [10:45:55]Host: 172.17.55.133:8080 [10:45:55]Content-Length: 683 [10:45:55]Content-Type: application/json [10:45:55] [10:45:55]POST finish read [10:45:55]Found Content-Length = 683 [10:45:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 21.100, "sum" : 1430.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1430.00, "total" : 1430.00, "payments": [ { "type": 0, "sum" : 1430.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:55]execute_script... [10:45: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)1036150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 21.100, "sum" : 1430.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1430.00, "total" : 1430.00, "payments": [ { "type": 0, "sum" : 1430.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:55]POST & json_proto [10:45:55]process_json_proto [10:45:55]json parsed OK: [10:45:55]protocol is kg_v1.0 [10:45:55]action value=close_receipt [10:45:55]process_action close_receipt [10:45:55]cmd_close_receipt [10:45:55]MH_GetDate [10:45:55]Write to MH i2c: F0 00 00 FB 69 53 [10:45:55]Write i2c OK [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: F0 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: F0 09 00 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: F0 09 00 FB 69 00 E8 D0 C1 66 34 48 D8 65 F4 [10:45:55]GetLastDocTimeStamp 1723977903 [10:45:55]current date 1723977960 [10:45:55]FM_GetShiftState [10:45:55]SAM_PROTO_GetShiftState [10:45:55]wFMCommunicate request_size=4 [10:45:55]MH_SAM_APDU [10:45:55]CAPDU: 80 13 01 00 [10:45:55]Write to MH i2c: E2 08 00 FC 69 80 13 01 00 00 00 00 00 E2 [10:45:55]Write i2c OK [10:45:55]MH_I2C_Read... [10:45:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:55]Read from MH i2c: E2 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: E2 0E 00 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: E2 0E 00 FC 69 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 1F [10:45:55]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:45:55]wFMCommunicate OK [10:45:55]SAM_PROTO_GetShiftState done [10:45:55]FM_GetShiftState done [10:45:55]opened in 1723940556 [10:45:55]opened+sec_in_day 1724026956 [10:45:55]quantity*price = 143058 [10:45:55]sum+1 = 143059 [10:45:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 1430.00 Внесено: 1430.00 СДАЧА: 0.00 НСП 1% : 12.66 НДС 12% : 151.92 Наличными: 1430.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 162 18.08.2024 10:46 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260604 ФПД: 15636205191033 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T104600&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260604&fm=15636205191033&tin=02508201610067®Number=0000000000091865&sum=143000 [10:45:57]StoreToDocumentArchive [10:45:57]shift 449 fd 260604 [10:45:57]save to /storage/0449/doc_00260604 [10:45:57]save last doc name /storage/0449/doc_00260604 to /storage/kkm_last_doc_name [10:45:57]save OK [10:45:57]Clear old archive folders... [10:45:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:45:57]tlvbuf is 00383270 [10:45:57]SAM_PROTO_ClearQueue [10:45:57]wFMCommunicate request_size=4 [10:45:57]MH_SAM_APDU [10:45:57]CAPDU: 80 09 00 00 [10:45:57]Write to MH i2c: E2 08 00 09 6A 80 09 00 00 00 00 00 00 E5 [10:45:57]Write i2c OK [10:45:57]MH_I2C_Read... [10:45:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:57]OFD Sender: No OFD packet to send [10:45:57]Read from MH i2c: E2 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: E2 03 00 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: E2 03 00 09 6A 00 90 00 E7 [10:45:57]RAPDU: 90 00 [10:45:57]wFMCommunicate OK [10:45:57]SAM_PROTO_ClearQueue done [10:45:57]KKMCreateOFDPacket [10:45:57]OFDProtocolAddRootSTLVToBuf [10:45:57]FM_MakeSignedData [10:45:57]FM_MakeSignedData [10:45:57]SAM_PROTO_SignData [10:45:57]wFMCommunicate request_size=4 [10:45:57]MH_SAM_APDU [10:45:57]CAPDU: 80 0D 01 02 [10:45:57]Write to MH i2c: E2 08 00 0A 6A 80 0D 01 02 00 00 00 00 ED [10:45:57]Write i2c OK [10:45:57]MH_I2C_Read... [10:45:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:57]Read from MH i2c: E2 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: E2 03 00 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: E2 03 00 0A 6A 00 90 00 E8 [10:45:57]RAPDU: 90 00 [10:45:57]wFMCommunicate OK [10:45:57]wFMCommunicate request_size=255 [10:45:57]MH_SAM_APDU [10:45:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 52 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D2 2E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 2E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 3B 00 00 00 00 07 04 06 00 98 2E 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 E8 D0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FC F9 03 00 35 04 06 00 0E [10:45:57]Write to MH i2c: E2 02 01 0B 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 52 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D2 2E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 2E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 3B 00 00 00 00 07 04 06 00 98 2E 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 E8 D0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FC F9 03 00 35 04 06 00 0E 00 00 AD [10:45:57]Write i2c OK [10:45:57]MH_I2C_Read... [10:45:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:57]Read from MH i2c: E2 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: E2 03 00 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: E2 03 00 0B 6A 00 90 00 E9 [10:45:57]RAPDU: 90 00 [10:45:57]wFMCommunicate OK [10:45:57]wFMCommunicate request_size=10 [10:45:57]MH_SAM_APDU [10:45:57]CAPDU: 80 0D 02 02 05 38 96 74 BF 79 [10:45:57]Write to MH i2c: E2 0D 00 0C 6A 80 0D 02 02 05 00 38 96 74 BF 79 00 00 74 [10:45:57]Write i2c OK [10:45:57]MH_I2C_Read... [10:45:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:57]Read from MH i2c: E2 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: E2 03 00 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: E2 03 00 0C 6A 00 90 00 EA [10:45:57]RAPDU: 90 00 [10:45:57]wFMCommunicate OK [10:45:57]wFMCommunicate request_size=4 [10:45:57]MH_SAM_APDU [10:45:57]CAPDU: 80 0D 03 02 [10:45:57]Write to MH i2c: E2 08 00 0D 6A 80 0D 03 02 00 00 00 00 F2 [10:45:57]Write i2c OK [10:45:57]MH_I2C_Read... [10:45:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:57]Read from MH i2c: E2 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: E2 0B 00 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: E2 0B 00 0D 6A 00 D5 7E 9B D5 D8 EA 00 4F 90 00 C7 [10:45:57]RAPDU: D5 7E 9B D5 D8 EA 00 4F 90 00 [10:45:57]wFMCommunicate OK [10:45:57]SAM_PROTO_SignData done [10:45:57]FM_MakeSignedData done [10:45:57]CreateOFDProtocolMessage [10:45:57]wFMCommunicate request_size=4 [10:45:57]MH_SAM_APDU [10:45:57]CAPDU: 80 11 00 00 [10:45:57]Write to MH i2c: E2 08 00 0E 6A 80 11 00 00 00 00 00 00 F2 [10:45:57]Write i2c OK [10:45:57]MH_I2C_Read... [10:45:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:57]Read from MH i2c: E2 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: E2 17 00 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: E2 17 00 0E 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 3F [10:45:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:45:57]wFMCommunicate OK [10:45:57]CreateOFDProtocolMessage done [10:45:57]OFDSenderStorePacket 260604 [10:45:57]StoreOFDPacket docnum=260604 [10:45:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 D8 DA 07 01 BB CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 52 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D2 2E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 2E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 3B 00 00 00 00 07 04 06 00 98 2E 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 E8 D0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FC F9 03 00 35 04 06 00 0E 38 96 74 BF 79 D5 7E 9B D5 D8 EA 00 4F [10:45:57]CheckFolder [10:45:57]dirname=/storage/ofd_packets [10:45:57]CheckFolder done [10:45:57]ProducePacketName [10:45:57]name=ofd_packets/00260604 [10:45:57]NVStorageSaveData ofd_packets/00260604 [10:45:57]File name is /storage/ofd_packets/00260604 [10:45:57]Write 301 bytes [10:45:57]NVStorageSaveData done [10:45:57]OFDSenderStorePacket done [10:45:57]KKMCreateOFDPacket done [10:45:57]NVStorageSaveData kkm_last_timestamp [10:45:57]File name is /storage/kkm_last_timestamp [10:45:57]Write 4 bytes [10:45:57]NVStorageSaveData done [10:45:57]ExternCall_PrintAddStr [10:45:57]wPrintStart [10:45:57]Write to MH i2c: 01 00 00 0F 6A 79 [10:45:57]Write i2c OK [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: 01 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: 01 07 00 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: 01 07 00 0F 6A 00 00 00 00 00 FF 0F 8E [10:45:57]RasterBufferAndPrint [10:45:57]line Счет N : (1)1036150 [10:45:57]line ИНН: 02508201610067 [10:45:57]line Контрольно-Кассовый Чек [10:45:57]line ПРОДАЖА [10:45:57]line ТРК (МРК, ГНК) : 42 [10:45:57]line Товар: 2710124130 [10:45:57]line Аи-92-К-5 [10:45:57]line 21.100 * 67.80 [10:45:57]line = 1430.58 [10:45:57]line НДС 12% НСП 1% [10:45:57]line > о реализуемом товаре [10:45:57]line ОКРУГЛЕНИЕ: -0.58 [10:45:57]line ИТОГО: 1430.00 [10:45:57]line Внесено: 1430.00 [10:45:57]line СДАЧА: 0.00 [10:45:57]line НСП 1% : 12.66 [10:45:57]line НДС 12% : 151.92 [10:45:57]line Наличными: 1430.00 [10:45:57]line Безнал.: 0.00 [10:45:57]line Место: АЗС № 94 "Партнер Нефть" [10:45:57]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [10:45:57]line СНО: Общий режим [10:45:57]line Чек 162 18.08.2024 10:46 [10:45:57]line Смена: 449 ФФД: 1.0 [10:45:57]line ЗНМ: 0300000099 [10:45:57]line РНМ: 0000000000091865 [10:45:57]line Версия ККМ: 001 [10:45:57]line ФМ: 0000000000871820 [10:45:57]line ФД: 260604 [10:45:57]line ФПД: 15636205191033 [10:45:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T104600&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260604&fm=15636205191033&tin=02508201610067®Number=0000000000091865&sum=143000 [10:45:57]OFD Sender: Processing packet 260604 [packets to send 192, broken 191] [10:45:57]ProducePacketName [10:45:57]name=ofd_packets/00260604 [10:45:57]OFD Sender: To server: pG, [10:45:57]CommunicateWithHost lk.salyk.kg:30040 [10:45:57]ConnectInit lk.salyk.kg [10:45:57]written 0, free lines is 4095 [10:45:57]Connected sock=10 [10:45: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 30 0F 01 00 00 D8 DA 07 01 BB CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 52 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D2 2E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 2E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 3B 00 00 00 00 07 04 06 00 98 2E 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 E8 D0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FC F9 03 00 35 04 06 00 0E 38 96 74 BF 79 D5 7E 9B D5 D8 EA 00 4F [10:45: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 30 4F 00 00 00 0F 19 47 00 B5 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 30 10 04 04 00 FC F9 03 00 F4 03 04 00 3D 7A C1 66 B6 04 01 00 00 4C C8 48 B6 67 4A 59 B9 [10:45:58]CommunicateWithHost err = 0 [10:45:58]CheckOFDResponse [10:45:58]1017 (14) - 77093643461234 [10:45:58]1041 (16) - 0000000000871820 [10:45:58]1040 (4) - 260604 [10:45:58]1012 (4) - 18.08.2024 04:36 [10:45:58]1206 (1) - 0 [10:45:58]OFD Sender: Remove packet 260604 [10:45:58]ProducePacketName [10:45:58]name=ofd_packets/00260604 [10:45:58]NVStorageDeleteData [10:45:58]Write to MH i2c: 01 00 00 3A 6A A4 [10:45:58]Write i2c OK [10:45:58]MH_I2C_Read... [10:45:58]Read from MH i2c: 01 [10:45:58]MH_I2C_Read... [10:45:58]Read from MH i2c: 01 07 00 [10:45:58]MH_I2C_Read... [10:45:58]Read from MH i2c: 01 07 00 3A 6A 00 00 00 00 00 6E 0C 25 [10:45:58]RasterBufferAndPrint [10:45:58]line [10:45:58]line [10:45:58]line [10:45:58]line [10:45:58]line [10:45:58]written 0, free lines is 3185 [10:45:58]MH_Cut [10:45:58]Write to MH i2c: D1 01 00 41 6A 01 7D [10:45:58]Write i2c OK [10:45:58]MH_I2C_Read... [10:45:58]Read from MH i2c: D1 [10:45:58]MH_I2C_Read... [10:45:58]Read from MH i2c: D1 01 00 [10:45:58]MH_I2C_Read... [10:45:58]Read from MH i2c: D1 01 00 41 6A 00 7C [10:45:58]Write to MH i2c: 01 00 00 42 6A AC [10:45:58]Write i2c OK [10:45:58]MH_I2C_Read... [10:45:58]OFD Sender: No OFD packet to send [10:45:59]*** Cut start [10:45:59]*** Purtial cut [10:45:59]*** Stage 1: CUTSNS_PIN = 1 [10:46:01]Read from MH i2c: 01 [10:46:01]MH_I2C_Read... [10:46:01]*** Stop cut motor [10:46:01]Read from MH i2c: 01 07 00 [10:46:01]MH_I2C_Read... [10:46:01]*** Cut end [10:46:01]Read from MH i2c: 01 07 00 42 6A 00 00 00 00 00 FF 0F C1 [10:46:01]process_action close_receipt done [10:46:01]requested_data is exist [10:46:01]produce_requested_data [10:46:01]requested_item fm.sn is exist - process it [10:46:01]wFMCommunicate request_size=4 [10:46:01]MH_SAM_APDU [10:46:01]CAPDU: 80 11 00 00 [10:46:01]Write to MH i2c: E2 08 00 43 6A 80 11 00 00 00 00 00 00 27 [10:46:01]Write i2c OK [10:46:01]MH_I2C_Read... [10:46:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:01]Read from MH i2c: E2 [10:46:01]MH_I2C_Read... [10:46:01]Read from MH i2c: E2 17 00 [10:46:01]MH_I2C_Read... [10:46:01]Read from MH i2c: E2 17 00 43 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 74 [10:46:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:46:01]wFMCommunicate OK [10:46:01]requested_item fd.num is exist - process it [10:46:01]SAM_PROTO_GetFieldsCounters [10:46:01]wFMCommunicate request_size=4 [10:46:01]MH_SAM_APDU [10:46:01]CAPDU: 80 13 00 00 [10:46:01]Write to MH i2c: E2 08 00 44 6A 80 13 00 00 00 00 00 00 2A [10:46:01]Write i2c OK [10:46:01]MH_I2C_Read... [10:46:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:01]Read from MH i2c: E2 [10:46:01]MH_I2C_Read... [10:46:01]Read from MH i2c: E2 62 00 [10:46:01]MH_I2C_Read... [10:46:01]Read from MH i2c: E2 62 00 44 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 FC F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [10:46: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 FC F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:46:01]wFMCommunicate OK [10:46:01]SAM_PROTO_GetFieldsCounters done [10:46:01]requested_item shift.num is exist - process it [10:46:01]requested_item shift.opened is exist - process it [10:46:01]req_shift_opened [10:46:01]FM_GetShiftState [10:46:01]SAM_PROTO_GetShiftState [10:46:01]wFMCommunicate request_size=4 [10:46:01]MH_SAM_APDU [10:46:01]CAPDU: 80 13 01 00 [10:46:01]Write to MH i2c: E2 08 00 45 6A 80 13 01 00 00 00 00 00 2C [10:46:01]Write i2c OK [10:46:01]MH_I2C_Read... [10:46:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:01]Read from MH i2c: E2 [10:46:01]MH_I2C_Read... [10:46:01]Read from MH i2c: E2 0E 00 [10:46:01]MH_I2C_Read... [10:46:01]Read from MH i2c: E2 0E 00 45 6A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 69 [10:46:01]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:46:01]wFMCommunicate OK [10:46:01]SAM_PROTO_GetShiftState done [10:46:01]FM_GetShiftState done [10:46:01]req_shift_opened done [10:46:01]requested_item shift.open_date is exist - process it [10:46:01]req_shift_open_date [10:46:01]req_shift_open_date done [10:46:01]produce_requested_data done [10:46:01]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260604,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [10:46:01]process_action_free close_receipt [10:46:01]json_value_free [10:46:01]json_value_free done [10:46:01]process_json_proto returns [10:46:01]Send response to host [10:46:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260604,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [10:46:01]free response buf [10:46:01]execute_script done [10:46:01]execute_script returns [10:46:01]free content buf [10:46:01]Sock 9.Close socket [10:46:01]Sock 9.Thread stoped [10:46:03]OFD Sender: No OFD packet to send [10:46:08]OFD Sender: No OFD packet to send [10:46:13]OFD Sender: No OFD packet to send [10:46:18]OFD Sender: No OFD packet to send [10:46:23]OFD Sender: No OFD packet to send [10:46:28]OFD Sender: No OFD packet to send [10:46:33]OFD Sender: No OFD packet to send [10:46:38]OFD Sender: No OFD packet to send [10:46:43]OFD Sender: No OFD packet to send [10:46:48]OFD Sender: No OFD packet to send [10:46:53]OFD Sender: No OFD packet to send [10:46:58]OFD Sender: No OFD packet to send [10:47:03]OFD Sender: No OFD packet to send [10:47:08]OFD Sender: No OFD packet to send [10:47:13]OFD Sender: No OFD packet to send [10:47:18]OFD Sender: No OFD packet to send [10:47:23]OFD Sender: No OFD packet to send [10:47:28]OFD Sender: No OFD packet to send [10:47:29]accept exits with 7 [10:47:29]New connection [10:47:29]New thread 3066617188 created [10:47:29]Thread 3066473828 joined [10:47:29]Waiting for new connection... [10:47:29] Sock 7.Parse request [10:47:29]Sock 7.Check first char [10:47:29]Sock 7.First char is OK [10:47:29]request: POST /json_proto HTTP/1.0 [10:47:29]Method: POST [10:47:29]URL: /json_proto [10:47:29]Method is POST - this is cgi request [10:47:29]url: /json_proto [10:47:29]query_string will be loaded in cgi processing [10:47:29]execute_cgi json_proto POST (null) [10:47:29]execute_cgi path=json_proto method=POST [10:47:29]POST find Content-Length [10:47:29]Host: 172.17.55.133:8080 [10:47:29]Content-Length: 678 [10:47:29]Content-Type: application/json [10:47:29] [10:47:29]POST finish read [10:47:29]Found Content-Length = 678 [10:47:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [10:47:29]execute_script... [10:47: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)1036151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [10:47:29]POST & json_proto [10:47:29]process_json_proto [10:47:29]json parsed OK: [10:47:29]protocol is kg_v1.0 [10:47:29]action value=close_receipt [10:47:29]process_action close_receipt [10:47:29]cmd_close_receipt [10:47:29]MH_GetDate [10:47:29]Write to MH i2c: F0 00 00 46 6A 9F [10:47:29]Write i2c OK [10:47:29]MH_I2C_Read... [10:47:29]Read from MH i2c: F0 [10:47:29]MH_I2C_Read... [10:47:29]Read from MH i2c: F0 09 00 [10:47:29]MH_I2C_Read... [10:47:29]Read from MH i2c: F0 09 00 46 6A 00 45 D1 C1 66 34 48 D8 65 9E [10:47:29]GetLastDocTimeStamp 1723977960 [10:47:29]current date 1723978053 [10:47:29]FM_GetShiftState [10:47:29]SAM_PROTO_GetShiftState [10:47:29]wFMCommunicate request_size=4 [10:47:29]MH_SAM_APDU [10:47:29]CAPDU: 80 13 01 00 [10:47:29]Write to MH i2c: E2 08 00 47 6A 80 13 01 00 00 00 00 00 2E [10:47:29]Write i2c OK [10:47:29]MH_I2C_Read... [10:47:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:29]Read from MH i2c: E2 [10:47:29]MH_I2C_Read... [10:47:29]Read from MH i2c: E2 0E 00 [10:47:29]MH_I2C_Read... [10:47:29]Read from MH i2c: E2 0E 00 47 6A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 6B [10:47:29]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:47:29]wFMCommunicate OK [10:47:29]SAM_PROTO_GetShiftState done [10:47:29]FM_GetShiftState done [10:47:29]opened in 1723940556 [10:47:29]opened+sec_in_day 1724026956 [10:47:29]quantity*price = 40002 [10:47:29]sum+1 = 40003 [10:47:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 163 18.08.2024 10:47 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260605 ФПД: 150972910500131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T104733&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260605&fm=150972910500131&tin=02508201610067®Number=0000000000091865&sum=40000 [10:47:30]StoreToDocumentArchive [10:47:30]shift 449 fd 260605 [10:47:30]save to /storage/0449/doc_00260605 [10:47:30]save last doc name /storage/0449/doc_00260605 to /storage/kkm_last_doc_name [10:47:30]save OK [10:47:30]Clear old archive folders... [10:47:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:47:30]tlvbuf is 00387680 [10:47:30]SAM_PROTO_ClearQueue [10:47:30]wFMCommunicate request_size=4 [10:47:30]MH_SAM_APDU [10:47:30]CAPDU: 80 09 00 00 [10:47:30]Write to MH i2c: E2 08 00 54 6A 80 09 00 00 00 00 00 00 30 [10:47:30]Write i2c OK [10:47:30]MH_I2C_Read... [10:47:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:30]Read from MH i2c: E2 [10:47:30]MH_I2C_Read... [10:47:30]Read from MH i2c: E2 03 00 [10:47:30]MH_I2C_Read... [10:47:30]Read from MH i2c: E2 03 00 54 6A 00 90 00 32 [10:47:30]RAPDU: 90 00 [10:47:30]wFMCommunicate OK [10:47:30]SAM_PROTO_ClearQueue done [10:47:30]KKMCreateOFDPacket [10:47:30]OFDProtocolAddRootSTLVToBuf [10:47:30]FM_MakeSignedData [10:47:30]FM_MakeSignedData [10:47:30]SAM_PROTO_SignData [10:47:30]wFMCommunicate request_size=4 [10:47:30]MH_SAM_APDU [10:47:30]CAPDU: 80 0D 01 02 [10:47:30]Write to MH i2c: E2 08 00 55 6A 80 0D 01 02 00 00 00 00 38 [10:47:30]Write i2c OK [10:47:30]MH_I2C_Read... [10:47:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:30]Read from MH i2c: E2 [10:47:30]MH_I2C_Read... [10:47:30]Read from MH i2c: E2 03 00 [10:47:30]MH_I2C_Read... [10:47:30]Read from MH i2c: E2 03 00 55 6A 00 90 00 33 [10:47:30]RAPDU: 90 00 [10:47:30]wFMCommunicate OK [10:47:30]wFMCommunicate request_size=255 [10:47:30]MH_SAM_APDU [10:47:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 45 D1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FD F9 03 00 35 04 06 00 89 [10:47:30]Write to MH i2c: E2 02 01 56 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 45 D1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FD F9 03 00 35 04 06 00 89 00 00 BE [10:47:30]Write i2c OK [10:47:30]MH_I2C_Read... [10:47:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:30]Read from MH i2c: E2 [10:47:30]MH_I2C_Read... [10:47:30]Read from MH i2c: E2 03 00 [10:47:30]MH_I2C_Read... [10:47:30]Read from MH i2c: E2 03 00 56 6A 00 90 00 34 [10:47:30]RAPDU: 90 00 [10:47:30]wFMCommunicate OK [10:47:30]wFMCommunicate request_size=10 [10:47:30]MH_SAM_APDU [10:47:30]CAPDU: 80 0D 02 02 05 4F 1E B3 79 23 [10:47:30]Write to MH i2c: E2 0D 00 57 6A 80 0D 02 02 05 00 4F 1E B3 79 23 00 00 01 [10:47:30]Write i2c OK [10:47:30]MH_I2C_Read... [10:47:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:30]Read from MH i2c: E2 [10:47:30]MH_I2C_Read... [10:47:30]Read from MH i2c: E2 03 00 [10:47:30]MH_I2C_Read... [10:47:30]Read from MH i2c: E2 03 00 57 6A 00 90 00 35 [10:47:30]RAPDU: 90 00 [10:47:30]wFMCommunicate OK [10:47:30]wFMCommunicate request_size=4 [10:47:30]MH_SAM_APDU [10:47:30]CAPDU: 80 0D 03 02 [10:47:30]Write to MH i2c: E2 08 00 58 6A 80 0D 03 02 00 00 00 00 3D [10:47:30]Write i2c OK [10:47:30]MH_I2C_Read... [10:47:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:30]Read from MH i2c: E2 [10:47:30]MH_I2C_Read... [10:47:30]Read from MH i2c: E2 0B 00 [10:47:30]MH_I2C_Read... [10:47:30]Read from MH i2c: E2 0B 00 58 6A 00 C7 BC 7E 9D 48 2D 72 20 90 00 E3 [10:47:30]RAPDU: C7 BC 7E 9D 48 2D 72 20 90 00 [10:47:30]wFMCommunicate OK [10:47:30]SAM_PROTO_SignData done [10:47:30]FM_MakeSignedData done [10:47:30]CreateOFDProtocolMessage [10:47:30]wFMCommunicate request_size=4 [10:47:30]MH_SAM_APDU [10:47:30]CAPDU: 80 11 00 00 [10:47:30]Write to MH i2c: E2 08 00 59 6A 80 11 00 00 00 00 00 00 3D [10:47:30]Write i2c OK [10:47:30]MH_I2C_Read... [10:47:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:30]Read from MH i2c: E2 [10:47:30]MH_I2C_Read... [10:47:30]Read from MH i2c: E2 17 00 [10:47:30]MH_I2C_Read... [10:47:30]Read from MH i2c: E2 17 00 59 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 8A [10:47:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:47:30]wFMCommunicate OK [10:47:30]CreateOFDProtocolMessage done [10:47:30]OFDSenderStorePacket 260605 [10:47:30]StoreOFDPacket docnum=260605 [10:47:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 69 19 07 01 63 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 45 D1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FD F9 03 00 35 04 06 00 89 4F 1E B3 79 23 C7 BC 7E 9D 48 2D 72 20 [10:47:30]CheckFolder [10:47:30]dirname=/storage/ofd_packets [10:47:30]CheckFolder done [10:47:30]ProducePacketName [10:47:30]name=ofd_packets/00260605 [10:47:30]NVStorageSaveData ofd_packets/00260605 [10:47:30]File name is /storage/ofd_packets/00260605 [10:47:30]Write 301 bytes [10:47:30]NVStorageSaveData done [10:47:30]OFDSenderStorePacket done [10:47:30]KKMCreateOFDPacket done [10:47:30]NVStorageSaveData kkm_last_timestamp [10:47:30]File name is /storage/kkm_last_timestamp [10:47:30]Write 4 bytes [10:47:30]NVStorageSaveData done [10:47:30]ExternCall_PrintAddStr [10:47:30]wPrintStart [10:47:30]Write to MH i2c: 01 00 00 5A 6A C4 [10:47:30]Write i2c OK [10:47:30]MH_I2C_Read... [10:47:30]Read from MH i2c: 01 [10:47:30]MH_I2C_Read... [10:47:30]Read from MH i2c: 01 07 00 [10:47:30]MH_I2C_Read... [10:47:30]Read from MH i2c: 01 07 00 5A 6A 00 00 00 00 00 FF 0F D9 [10:47:30]RasterBufferAndPrint [10:47:30]line Счет N : (1)1036151 [10:47:30]line ИНН: 02508201610067 [10:47:30]line Контрольно-Кассовый Чек [10:47:30]line ПРОДАЖА [10:47:30]line ТРК (МРК, ГНК) : 22 [10:47:30]line Товар: 2710124130 [10:47:30]line Аи-92-К-5 [10:47:30]line 5.900 * 67.80 [10:47:30]line = 400.02 [10:47:30]line НДС 12% НСП 1% [10:47:30]line > о реализуемом товаре [10:47:30]line ОКРУГЛЕНИЕ: -0.02 [10:47:30]line ИТОГО: 400.00 [10:47:30]line Внесено: 400.00 [10:47:30]line СДАЧА: 0.00 [10:47:30]line НСП 1% : 3.54 [10:47:30]line НДС 12% : 42.48 [10:47:30]line Наличными: 400.00 [10:47:30]line Безнал.: 0.00 [10:47:30]line Место: АЗС № 94 "Партнер Нефть" [10:47:30]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [10:47:30]line СНО: Общий режим [10:47:30]line Чек 163 18.08.2024 10:47 [10:47:30]line Смена: 449 ФФД: 1.0 [10:47:30]line ЗНМ: 0300000099 [10:47:30]line РНМ: 0000000000091865 [10:47:30]line Версия ККМ: 001 [10:47:30]line ФМ: 0000000000871820 [10:47:30]line ФД: 260605 [10:47:30]line ФПД: 150972910500131 [10:47:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T104733&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260605&fm=150972910500131&tin=02508201610067®Number=0000000000091865&sum=40000 [10:47:30]written 0, free lines is 4095 [10:47:30]OFD Sender: Processing packet 260605 [packets to send 192, broken 191] [10:47:30]ProducePacketName [10:47:30]name=ofd_packets/00260605 [10:47:30]OFD Sender: To server: pG, [10:47:30]CommunicateWithHost lk.salyk.kg:30040 [10:47:30]ConnectInit lk.salyk.kg [10:47:30]Connected sock=10 [10:47: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 30 0F 01 00 00 69 19 07 01 63 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 45 D1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FD F9 03 00 35 04 06 00 89 4F 1E B3 79 23 C7 BC 7E 9D 48 2D 72 20 [10:47: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 30 4F 00 00 00 00 89 47 00 E1 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 30 10 04 04 00 FD F9 03 00 F4 03 04 00 9A 7A C1 66 B6 04 01 00 00 1A C7 8B 6B C9 38 2B 25 [10:47:31]CommunicateWithHost err = 0 [10:47:31]CheckOFDResponse [10:47:31]1017 (14) - 77093643461234 [10:47:31]1041 (16) - 0000000000871820 [10:47:31]1040 (4) - 260605 [10:47:31]1012 (4) - 18.08.2024 04:37 [10:47:31]1206 (1) - 0 [10:47:31]OFD Sender: Remove packet 260605 [10:47:31]ProducePacketName [10:47:31]name=ofd_packets/00260605 [10:47:31]NVStorageDeleteData [10:47:31]Write to MH i2c: 01 00 00 85 6A EF [10:47:31]Write i2c OK [10:47:31]MH_I2C_Read... [10:47:31]Read from MH i2c: 01 [10:47:31]MH_I2C_Read... [10:47:31]Read from MH i2c: 01 07 00 [10:47:31]MH_I2C_Read... [10:47:31]Read from MH i2c: 01 07 00 85 6A 00 00 00 00 00 74 0C 76 [10:47:31]RasterBufferAndPrint [10:47:31]line [10:47:31]line [10:47:31]line [10:47:31]line [10:47:31]line [10:47:31]written 0, free lines is 3191 [10:47:31]MH_Cut [10:47:31]Write to MH i2c: D1 01 00 8C 6A 01 C8 [10:47:31]Write i2c OK [10:47:31]MH_I2C_Read... [10:47:31]Read from MH i2c: D1 [10:47:31]MH_I2C_Read... [10:47:31]Read from MH i2c: D1 01 00 [10:47:31]MH_I2C_Read... [10:47:31]Read from MH i2c: D1 01 00 8C 6A 00 C7 [10:47:31]Write to MH i2c: 01 00 00 8D 6A F7 [10:47:31]Write i2c OK [10:47:31]MH_I2C_Read... [10:47:31]OFD Sender: No OFD packet to send [10:47:32]*** Cut start [10:47:32]*** Purtial cut [10:47:32]*** Stage 1: CUTSNS_PIN = 1 [10:47:34]Read from MH i2c: 01 [10:47:34]MH_I2C_Read... [10:47:34]*** Stop cut motor [10:47:34]*** Cut end [10:47:34]Read from MH i2c: 01 07 00 [10:47:34]MH_I2C_Read... [10:47:34]Read from MH i2c: 01 07 00 8D 6A 00 00 00 00 00 FF 0F 0C [10:47:34]process_action close_receipt done [10:47:34]requested_data is exist [10:47:34]produce_requested_data [10:47:34]requested_item fm.sn is exist - process it [10:47:34]wFMCommunicate request_size=4 [10:47:34]MH_SAM_APDU [10:47:34]CAPDU: 80 11 00 00 [10:47:34]Write to MH i2c: E2 08 00 8E 6A 80 11 00 00 00 00 00 00 72 [10:47:34]Write i2c OK [10:47:34]MH_I2C_Read... [10:47:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:34]Read from MH i2c: E2 [10:47:34]MH_I2C_Read... [10:47:34]Read from MH i2c: E2 17 00 [10:47:34]MH_I2C_Read... [10:47:34]Read from MH i2c: E2 17 00 8E 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 BF [10:47:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:47:34]wFMCommunicate OK [10:47:34]requested_item fd.num is exist - process it [10:47:34]SAM_PROTO_GetFieldsCounters [10:47:34]wFMCommunicate request_size=4 [10:47:34]MH_SAM_APDU [10:47:34]CAPDU: 80 13 00 00 [10:47:34]Write to MH i2c: E2 08 00 8F 6A 80 13 00 00 00 00 00 00 75 [10:47:34]Write i2c OK [10:47:34]MH_I2C_Read... [10:47:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:34]Read from MH i2c: E2 [10:47:34]MH_I2C_Read... [10:47:34]Read from MH i2c: E2 62 00 [10:47:34]MH_I2C_Read... [10:47:34]Read from MH i2c: E2 62 00 8F 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 FD F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [10:47: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 FD F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:47:34]wFMCommunicate OK [10:47:34]SAM_PROTO_GetFieldsCounters done [10:47:34]requested_item shift.num is exist - process it [10:47:34]requested_item shift.opened is exist - process it [10:47:34]req_shift_opened [10:47:34]FM_GetShiftState [10:47:34]SAM_PROTO_GetShiftState [10:47:34]wFMCommunicate request_size=4 [10:47:34]MH_SAM_APDU [10:47:34]CAPDU: 80 13 01 00 [10:47:34]Write to MH i2c: E2 08 00 90 6A 80 13 01 00 00 00 00 00 77 [10:47:34]Write i2c OK [10:47:34]MH_I2C_Read... [10:47:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:34]Read from MH i2c: E2 [10:47:34]MH_I2C_Read... [10:47:34]Read from MH i2c: E2 0E 00 [10:47:34]MH_I2C_Read... [10:47:34]Read from MH i2c: E2 0E 00 90 6A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B4 [10:47:34]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:47:34]wFMCommunicate OK [10:47:34]SAM_PROTO_GetShiftState done [10:47:34]FM_GetShiftState done [10:47:34]req_shift_opened done [10:47:34]requested_item shift.open_date is exist - process it [10:47:34]req_shift_open_date [10:47:34]req_shift_open_date done [10:47:34]produce_requested_data done [10:47:34]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260605,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [10:47:34]process_action_free close_receipt [10:47:34]json_value_free [10:47:34]json_value_free done [10:47:34]process_json_proto returns [10:47:34]Send response to host [10:47:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260605,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [10:47:34]free response buf [10:47:34]execute_script done [10:47:34]execute_script returns [10:47:34]free content buf [10:47:34]Sock 7.Close socket [10:47:34]Sock 7.Thread stoped [10:47:36]OFD Sender: No OFD packet to send [10:47:41]OFD Sender: No OFD packet to send [10:47:46]OFD Sender: No OFD packet to send [10:47:51]OFD Sender: No OFD packet to send [10:47:56]OFD Sender: No OFD packet to send [10:48:01]OFD Sender: No OFD packet to send [10:48:06]OFD Sender: No OFD packet to send [10:48:11]OFD Sender: No OFD packet to send [10:48:16]OFD Sender: No OFD packet to send [10:48:21]OFD Sender: No OFD packet to send [10:48:26]OFD Sender: No OFD packet to send [10:48:31]OFD Sender: No OFD packet to send [10:48:36]OFD Sender: No OFD packet to send [10:48:41]OFD Sender: No OFD packet to send [10:48:46]OFD Sender: No OFD packet to send [10:48:51]OFD Sender: No OFD packet to send [10:48:56]OFD Sender: No OFD packet to send [10:49:01]OFD Sender: No OFD packet to send [10:49:06]OFD Sender: No OFD packet to send [10:49:09]accept exits with 9 [10:49:09]New connection [10:49:09]New thread 3066473828 created [10:49:09]Thread 3066617188 joined [10:49:09]Waiting for new connection... [10:49:09] Sock 9.Parse request [10:49:09]Sock 9.Check first char [10:49:09]Sock 9.First char is OK [10:49:09]request: POST /json_proto HTTP/1.0 [10:49:09]Method: POST [10:49:09]URL: /json_proto [10:49:09]Method is POST - this is cgi request [10:49:09]url: /json_proto [10:49:09]query_string will be loaded in cgi processing [10:49:09]execute_cgi json_proto POST (null) [10:49:09]execute_cgi path=json_proto method=POST [10:49:09]POST find Content-Length [10:49:09]Host: 172.17.55.133:8080 [10:49:09]Content-Length: 678 [10:49:09]Content-Type: application/json [10:49:09] [10:49:09]POST finish read [10:49:09]Found Content-Length = 678 [10:49:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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" ] } } [10:49:09]execute_script... [10:49: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)1036152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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" ] } } [10:49:09]POST & json_proto [10:49:09]process_json_proto [10:49:09]json parsed OK: [10:49:09]protocol is kg_v1.0 [10:49:09]action value=close_receipt [10:49:09]process_action close_receipt [10:49:09]cmd_close_receipt [10:49:09]MH_GetDate [10:49:09]Write to MH i2c: F0 00 00 91 6A EA [10:49:09]Write i2c OK [10:49:09]MH_I2C_Read... [10:49:09]Read from MH i2c: F0 [10:49:09]MH_I2C_Read... [10:49:09]Read from MH i2c: F0 09 00 [10:49:09]MH_I2C_Read... [10:49:09]Read from MH i2c: F0 09 00 91 6A 00 A9 D1 C1 66 34 48 D8 65 4D [10:49:09]GetLastDocTimeStamp 1723978053 [10:49:09]current date 1723978153 [10:49:09]FM_GetShiftState [10:49:09]SAM_PROTO_GetShiftState [10:49:09]wFMCommunicate request_size=4 [10:49:09]MH_SAM_APDU [10:49:09]CAPDU: 80 13 01 00 [10:49:09]Write to MH i2c: E2 08 00 92 6A 80 13 01 00 00 00 00 00 79 [10:49:09]Write i2c OK [10:49:09]MH_I2C_Read... [10:49:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:09]Read from MH i2c: E2 [10:49:09]MH_I2C_Read... [10:49:09]Read from MH i2c: E2 0E 00 [10:49:09]MH_I2C_Read... [10:49:09]Read from MH i2c: E2 0E 00 92 6A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B6 [10:49:09]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:49:09]wFMCommunicate OK [10:49:09]SAM_PROTO_GetShiftState done [10:49:09]FM_GetShiftState done [10:49:09]opened in 1723940556 [10:49:09]opened+sec_in_day 1724026956 [10:49:09]quantity*price = 20001 [10:49:09]sum+1 = 20002 [10:49:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 164 18.08.2024 10:49 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260606 ФПД: 234608558211851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T104914&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260606&fm=234608558211851&tin=02508201610067®Number=0000000000091865&sum=20000 [10:49:10]StoreToDocumentArchive [10:49:10]shift 449 fd 260606 [10:49:10]save to /storage/0449/doc_00260606 [10:49:10]save last doc name /storage/0449/doc_00260606 to /storage/kkm_last_doc_name [10:49:10]save OK [10:49:10]Clear old archive folders... [10:49:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:49:10]tlvbuf is 004539B0 [10:49:10]SAM_PROTO_ClearQueue [10:49:10]wFMCommunicate request_size=4 [10:49:10]MH_SAM_APDU [10:49:10]CAPDU: 80 09 00 00 [10:49:10]Write to MH i2c: E2 08 00 9F 6A 80 09 00 00 00 00 00 00 7B [10:49:10]Write i2c OK [10:49:10]MH_I2C_Read... [10:49:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:10]Read from MH i2c: E2 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: E2 03 00 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: E2 03 00 9F 6A 00 90 00 7D [10:49:10]RAPDU: 90 00 [10:49:10]wFMCommunicate OK [10:49:10]SAM_PROTO_ClearQueue done [10:49:10]KKMCreateOFDPacket [10:49:10]OFDProtocolAddRootSTLVToBuf [10:49:10]FM_MakeSignedData [10:49:10]FM_MakeSignedData [10:49:10]SAM_PROTO_SignData [10:49:10]wFMCommunicate request_size=4 [10:49:10]MH_SAM_APDU [10:49:10]CAPDU: 80 0D 01 02 [10:49:10]Write to MH i2c: E2 08 00 A0 6A 80 0D 01 02 00 00 00 00 83 [10:49:10]Write i2c OK [10:49:10]MH_I2C_Read... [10:49:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:10]Read from MH i2c: E2 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: E2 03 00 [10:49:10]MH_I2C_Read... [10:49:10]Read from MH i2c: E2 03 00 A0 6A 00 90 00 7E [10:49:10]RAPDU: 90 00 [10:49:10]wFMCommunicate OK [10:49:10]wFMCommunicate request_size=255 [10:49:10]MH_SAM_APDU [10:49:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 AA D1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FE F9 03 00 35 04 06 00 D5 [10:49:10]Write to MH i2c: E2 02 01 A1 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 AA D1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FE F9 03 00 35 04 06 00 D5 00 00 D9 [10:49:10]Write i2c OK [10:49:10]MH_I2C_Read... [10:49:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:11]Read from MH i2c: E2 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: E2 03 00 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: E2 03 00 A1 6A 00 90 00 7F [10:49:11]RAPDU: 90 00 [10:49:11]wFMCommunicate OK [10:49:11]wFMCommunicate request_size=10 [10:49:11]MH_SAM_APDU [10:49:11]CAPDU: 80 0D 02 02 05 60 0F C6 03 0B [10:49:11]Write to MH i2c: E2 0D 00 A2 6A 80 0D 02 02 05 00 60 0F C6 03 0B 00 00 D3 [10:49:11]Write i2c OK [10:49:11]MH_I2C_Read... [10:49:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:11]Read from MH i2c: E2 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: E2 03 00 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: E2 03 00 A2 6A 00 90 00 80 [10:49:11]RAPDU: 90 00 [10:49:11]wFMCommunicate OK [10:49:11]wFMCommunicate request_size=4 [10:49:11]MH_SAM_APDU [10:49:11]CAPDU: 80 0D 03 02 [10:49:11]Write to MH i2c: E2 08 00 A3 6A 80 0D 03 02 00 00 00 00 88 [10:49:11]Write i2c OK [10:49:11]MH_I2C_Read... [10:49:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:11]Read from MH i2c: E2 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: E2 0B 00 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: E2 0B 00 A3 6A 00 5B 12 35 48 E9 4F A3 C1 90 00 0F [10:49:11]RAPDU: 5B 12 35 48 E9 4F A3 C1 90 00 [10:49:11]wFMCommunicate OK [10:49:11]SAM_PROTO_SignData done [10:49:11]FM_MakeSignedData done [10:49:11]CreateOFDProtocolMessage [10:49:11]wFMCommunicate request_size=4 [10:49:11]MH_SAM_APDU [10:49:11]CAPDU: 80 11 00 00 [10:49:11]Write to MH i2c: E2 08 00 A4 6A 80 11 00 00 00 00 00 00 88 [10:49:11]Write i2c OK [10:49:11]MH_I2C_Read... [10:49:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:11]Read from MH i2c: E2 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: E2 17 00 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: E2 17 00 A4 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D5 [10:49:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:49:11]wFMCommunicate OK [10:49:11]CreateOFDProtocolMessage done [10:49:11]OFDSenderStorePacket 260606 [10:49:11]StoreOFDPacket docnum=260606 [10:49:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 61 A3 07 01 EF 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 AA D1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FE F9 03 00 35 04 06 00 D5 60 0F C6 03 0B 5B 12 35 48 E9 4F A3 C1 [10:49:11]CheckFolder [10:49:11]dirname=/storage/ofd_packets [10:49:11]CheckFolder done [10:49:11]ProducePacketName [10:49:11]name=ofd_packets/00260606 [10:49:11]NVStorageSaveData ofd_packets/00260606 [10:49:11]File name is /storage/ofd_packets/00260606 [10:49:11]Write 301 bytes [10:49:11]NVStorageSaveData done [10:49:11]OFDSenderStorePacket done [10:49:11]KKMCreateOFDPacket done [10:49:11]NVStorageSaveData kkm_last_timestamp [10:49:11]File name is /storage/kkm_last_timestamp [10:49:11]Write 4 bytes [10:49:11]NVStorageSaveData done [10:49:11]ExternCall_PrintAddStr [10:49:11]wPrintStart [10:49:11]Write to MH i2c: 01 00 00 A5 6A 0F [10:49:11]Write i2c OK [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: 01 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: 01 07 00 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: 01 07 00 A5 6A 00 00 00 00 00 FF 0F 24 [10:49:11]RasterBufferAndPrint [10:49:11]line Счет N : (1)1036152 [10:49:11]line ИНН: 02508201610067 [10:49:11]line Контрольно-Кассовый Чек [10:49:11]line ПРОДАЖА [10:49:11]line ТРК (МРК, ГНК) : 42 [10:49:11]line Товар: 2710124130 [10:49:11]line Аи-92-К-5 [10:49:11]line 2.950 * 67.80 [10:49:11]line = 200.01 [10:49:11]line НДС 12% НСП 1% [10:49:11]line > о реализуемом товаре [10:49:11]line ОКРУГЛЕНИЕ: -0.01 [10:49:11]line ИТОГО: 200.00 [10:49:11]line Внесено: 200.00 [10:49:11]line СДАЧА: 0.00 [10:49:11]line НСП 1% : 1.77 [10:49:11]line НДС 12% : 21.24 [10:49:11]line Наличными: 200.00 [10:49:11]line Безнал.: 0.00 [10:49:11]line Место: АЗС № 94 "Партнер Нефть" [10:49:11]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [10:49:11]line СНО: Общий режим [10:49:11]line Чек 164 18.08.2024 10:49 [10:49:11]line Смена: 449 ФФД: 1.0 [10:49:11]line ЗНМ: 0300000099 [10:49:11]line РНМ: 0000000000091865 [10:49:11]line Версия ККМ: 001 [10:49:11]line ФМ: 0000000000871820 [10:49:11]line ФД: 260606 [10:49:11]line ФПД: 234608558211851 [10:49:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T104914&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260606&fm=234608558211851&tin=02508201610067®Number=0000000000091865&sum=20000 [10:49:11]written 0, free lines is 4095 [10:49:11]OFD Sender: Processing packet 260606 [packets to send 192, broken 191] [10:49:11]ProducePacketName [10:49:11]name=ofd_packets/00260606 [10:49:11]OFD Sender: To server: pG, [10:49:11]CommunicateWithHost lk.salyk.kg:30040 [10:49:11]ConnectInit lk.salyk.kg [10:49:11]Connected sock=10 [10:49: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 30 0F 01 00 00 61 A3 07 01 EF 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 AA D1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FE F9 03 00 35 04 06 00 D5 60 0F C6 03 0B 5B 12 35 48 E9 4F A3 C1 [10:49: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 30 4F 00 00 00 E1 EC 47 00 F1 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FE F9 03 00 F4 03 04 00 FF 7A C1 66 B6 04 01 00 00 DE 94 98 D5 21 F2 2F 8F [10:49:11]CommunicateWithHost err = 0 [10:49:11]CheckOFDResponse [10:49:11]1017 (14) - 77093643461234 [10:49:11]1041 (16) - 0000000000871820 [10:49:11]1040 (4) - 260606 [10:49:11]1012 (4) - 18.08.2024 04:39 [10:49:11]1206 (1) - 0 [10:49:11]OFD Sender: Remove packet 260606 [10:49:11]ProducePacketName [10:49:11]name=ofd_packets/00260606 [10:49:11]NVStorageDeleteData [10:49:11]Write to MH i2c: 01 00 00 D0 6A 3A [10:49:11]Write i2c OK [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: 01 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: 01 07 00 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: 01 07 00 D0 6A 00 00 00 00 00 69 0C B6 [10:49:11]RasterBufferAndPrint [10:49:11]line [10:49:11]line [10:49:11]line [10:49:11]line [10:49:11]line [10:49:11]written 0, free lines is 3180 [10:49:11]MH_Cut [10:49:11]Write to MH i2c: D1 01 00 D7 6A 01 13 [10:49:11]Write i2c OK [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: D1 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: D1 01 00 [10:49:11]MH_I2C_Read... [10:49:11]Read from MH i2c: D1 01 00 D7 6A 00 12 [10:49:11]Write to MH i2c: 01 00 00 D8 6A 42 [10:49:11]Write i2c OK [10:49:11]MH_I2C_Read... [10:49:12]OFD Sender: No OFD packet to send [10:49:13]*** Cut start [10:49:13]*** Purtial cut [10:49:13]*** Stage 1: CUTSNS_PIN = 1 [10:49:15]Read from MH i2c: 01 [10:49:15]MH_I2C_Read... [10:49:15]*** Stop cut motor [10:49:15]*** Cut end [10:49:15]Read from MH i2c: 01 07 00 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: 01 07 00 D8 6A 00 00 00 00 00 FF 0F 57 [10:49:15]process_action close_receipt done [10:49:15]requested_data is exist [10:49:15]produce_requested_data [10:49:15]requested_item fm.sn is exist - process it [10:49:15]wFMCommunicate request_size=4 [10:49:15]MH_SAM_APDU [10:49:15]CAPDU: 80 11 00 00 [10:49:15]Write to MH i2c: E2 08 00 D9 6A 80 11 00 00 00 00 00 00 BD [10:49:15]Write i2c OK [10:49:15]MH_I2C_Read... [10:49:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:15]Read from MH i2c: E2 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: E2 17 00 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: E2 17 00 D9 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 0A [10:49:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:49:15]wFMCommunicate OK [10:49:15]requested_item fd.num is exist - process it [10:49:15]SAM_PROTO_GetFieldsCounters [10:49:15]wFMCommunicate request_size=4 [10:49:15]MH_SAM_APDU [10:49:15]CAPDU: 80 13 00 00 [10:49:15]Write to MH i2c: E2 08 00 DA 6A 80 13 00 00 00 00 00 00 C0 [10:49:15]Write i2c OK [10:49:15]MH_I2C_Read... [10:49:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:15]Read from MH i2c: E2 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: E2 62 00 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: E2 62 00 DA 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 FE F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [10:49: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 FE F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:49:15]wFMCommunicate OK [10:49:15]SAM_PROTO_GetFieldsCounters done [10:49:15]requested_item shift.num is exist - process it [10:49:15]requested_item shift.opened is exist - process it [10:49:15]req_shift_opened [10:49:15]FM_GetShiftState [10:49:15]SAM_PROTO_GetShiftState [10:49:15]wFMCommunicate request_size=4 [10:49:15]MH_SAM_APDU [10:49:15]CAPDU: 80 13 01 00 [10:49:15]Write to MH i2c: E2 08 00 DB 6A 80 13 01 00 00 00 00 00 C2 [10:49:15]Write i2c OK [10:49:15]MH_I2C_Read... [10:49:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:15]Read from MH i2c: E2 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: E2 0E 00 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: E2 0E 00 DB 6A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 FF [10:49:15]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:49:15]wFMCommunicate OK [10:49:15]SAM_PROTO_GetShiftState done [10:49:15]FM_GetShiftState done [10:49:15]req_shift_opened done [10:49:15]requested_item shift.open_date is exist - process it [10:49:15]req_shift_open_date [10:49:15]req_shift_open_date done [10:49:15]produce_requested_data done [10:49:15]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260606,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [10:49:15]process_action_free close_receipt [10:49:15]json_value_free [10:49:15]json_value_free done [10:49:15]process_json_proto returns [10:49:15]Send response to host [10:49:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260606,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [10:49:15]free response buf [10:49:15]execute_script done [10:49:15]execute_script returns [10:49:15]free content buf [10:49:15]Sock 9.Close socket [10:49:15]Sock 9.Thread stoped [10:49:17]OFD Sender: No OFD packet to send [10:49:22]OFD Sender: No OFD packet to send [10:49:27]OFD Sender: No OFD packet to send [10:49:32]OFD Sender: No OFD packet to send [10:49:37]OFD Sender: No OFD packet to send [10:49:42]OFD Sender: No OFD packet to send [10:49:47]OFD Sender: No OFD packet to send [10:49:51]accept exits with 7 [10:49:51]New connection [10:49:51]New thread 3066617188 created [10:49:51]Thread 3066473828 joined [10:49:51]Waiting for new connection... [10:49:51] Sock 7.Parse request [10:49:51]Sock 7.Check first char [10:49:51]Sock 7.First char is OK [10:49:51]request: POST /json_proto HTTP/1.0 [10:49:51]Method: POST [10:49:51]URL: /json_proto [10:49:51]Method is POST - this is cgi request [10:49:51]url: /json_proto [10:49:51]query_string will be loaded in cgi processing [10:49:51]execute_cgi json_proto POST (null) [10:49:51]execute_cgi path=json_proto method=POST [10:49:51]POST find Content-Length [10:49:51]Host: 172.17.55.133:8080 [10:49:51]Content-Length: 678 [10:49:51]Content-Type: application/json [10:49:51] [10:49:51]POST finish read [10:49:51]Found Content-Length = 678 [10:49:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:49:51]execute_script... [10:49: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)1036153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:49:51]POST & json_proto [10:49:51]process_json_proto [10:49:51]json parsed OK: [10:49:51]protocol is kg_v1.0 [10:49:51]action value=close_receipt [10:49:51]process_action close_receipt [10:49:51]cmd_close_receipt [10:49:51]MH_GetDate [10:49:51]Write to MH i2c: F0 00 00 DC 6A 35 [10:49:51]Write i2c OK [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: F0 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: F0 09 00 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: F0 09 00 DC 6A 00 D3 D1 C1 66 34 48 D8 65 C2 [10:49:51]GetLastDocTimeStamp 1723978154 [10:49:51]current date 1723978195 [10:49:51]FM_GetShiftState [10:49:51]SAM_PROTO_GetShiftState [10:49:51]wFMCommunicate request_size=4 [10:49:51]MH_SAM_APDU [10:49:51]CAPDU: 80 13 01 00 [10:49:51]Write to MH i2c: E2 08 00 DD 6A 80 13 01 00 00 00 00 00 C4 [10:49:51]Write i2c OK [10:49:51]MH_I2C_Read... [10:49:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:51]Read from MH i2c: E2 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 0E 00 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 0E 00 DD 6A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 01 [10:49:51]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:49:51]wFMCommunicate OK [10:49:51]SAM_PROTO_GetShiftState done [10:49:51]FM_GetShiftState done [10:49:51]opened in 1723940556 [10:49:51]opened+sec_in_day 1724026956 [10:49:51]quantity*price = 50036 [10:49:51]sum+1 = 50037 [10:49:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 165 18.08.2024 10:49 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260607 ФПД: 105635697657981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T104955&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260607&fm=105635697657981&tin=02508201610067®Number=0000000000091865&sum=50000 [10:49:52]StoreToDocumentArchive [10:49:52]shift 449 fd 260607 [10:49:52]save to /storage/0449/doc_00260607 [10:49:52]save last doc name /storage/0449/doc_00260607 to /storage/kkm_last_doc_name [10:49:52]save OK [10:49:52]Clear old archive folders... [10:49:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:49:52]tlvbuf is 00383040 [10:49:52]SAM_PROTO_ClearQueue [10:49:52]wFMCommunicate request_size=4 [10:49:52]MH_SAM_APDU [10:49:52]CAPDU: 80 09 00 00 [10:49:52]Write to MH i2c: E2 08 00 EA 6A 80 09 00 00 00 00 00 00 C6 [10:49:52]Write i2c OK [10:49:52]MH_I2C_Read... [10:49:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:52]Read from MH i2c: E2 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 03 00 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 03 00 EA 6A 00 90 00 C8 [10:49:52]RAPDU: 90 00 [10:49:52]wFMCommunicate OK [10:49:52]SAM_PROTO_ClearQueue done [10:49:52]KKMCreateOFDPacket [10:49:52]OFDProtocolAddRootSTLVToBuf [10:49:52]FM_MakeSignedData [10:49:52]FM_MakeSignedData [10:49:52]SAM_PROTO_SignData [10:49:52]wFMCommunicate request_size=4 [10:49:52]MH_SAM_APDU [10:49:52]CAPDU: 80 0D 01 02 [10:49:52]Write to MH i2c: E2 08 00 EB 6A 80 0D 01 02 00 00 00 00 CE [10:49:52]Write i2c OK [10:49:52]MH_I2C_Read... [10:49:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:52]Read from MH i2c: E2 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 03 00 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 03 00 EB 6A 00 90 00 C9 [10:49:52]RAPDU: 90 00 [10:49:52]wFMCommunicate OK [10:49:52]wFMCommunicate request_size=255 [10:49:52]MH_SAM_APDU [10:49:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A5 00 00 00 F4 03 04 00 D3 D1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FF F9 03 00 35 04 06 00 60 [10:49:52]Write to MH i2c: E2 02 01 EC 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A5 00 00 00 F4 03 04 00 D3 D1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FF F9 03 00 35 04 06 00 60 00 00 D8 [10:49:52]Write i2c OK [10:49:52]MH_I2C_Read... [10:49:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:52]Read from MH i2c: E2 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 03 00 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 03 00 EC 6A 00 90 00 CA [10:49:52]RAPDU: 90 00 [10:49:52]wFMCommunicate OK [10:49:52]wFMCommunicate request_size=10 [10:49:52]MH_SAM_APDU [10:49:52]CAPDU: 80 0D 02 02 05 13 3A 3C 08 7D [10:49:52]Write to MH i2c: E2 0D 00 ED 6A 80 0D 02 02 05 00 13 3A 3C 08 7D 00 00 E9 [10:49:52]Write i2c OK [10:49:52]MH_I2C_Read... [10:49:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:52]Read from MH i2c: E2 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 03 00 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 03 00 ED 6A 00 90 00 CB [10:49:52]RAPDU: 90 00 [10:49:52]wFMCommunicate OK [10:49:52]wFMCommunicate request_size=4 [10:49:52]MH_SAM_APDU [10:49:52]CAPDU: 80 0D 03 02 [10:49:52]Write to MH i2c: E2 08 00 EE 6A 80 0D 03 02 00 00 00 00 D3 [10:49:52]Write i2c OK [10:49:52]MH_I2C_Read... [10:49:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:52]Read from MH i2c: E2 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 0B 00 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 0B 00 EE 6A 00 08 B4 39 FB ED 7D C4 B5 90 00 A7 [10:49:52]RAPDU: 08 B4 39 FB ED 7D C4 B5 90 00 [10:49:52]wFMCommunicate OK [10:49:52]SAM_PROTO_SignData done [10:49:52]FM_MakeSignedData done [10:49:52]CreateOFDProtocolMessage [10:49:52]wFMCommunicate request_size=4 [10:49:52]MH_SAM_APDU [10:49:52]CAPDU: 80 11 00 00 [10:49:52]Write to MH i2c: E2 08 00 EF 6A 80 11 00 00 00 00 00 00 D3 [10:49:52]Write i2c OK [10:49:52]MH_I2C_Read... [10:49:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:52]Read from MH i2c: E2 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 17 00 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 17 00 EF 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 20 [10:49:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:49:52]wFMCommunicate OK [10:49:52]CreateOFDProtocolMessage done [10:49:52]OFDSenderStorePacket 260607 [10:49:52]StoreOFDPacket docnum=260607 [10:49:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 DC D1 07 01 EA DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A5 00 00 00 F4 03 04 00 D3 D1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FF F9 03 00 35 04 06 00 60 13 3A 3C 08 7D 08 B4 39 FB ED 7D C4 B5 [10:49:52]CheckFolder [10:49:52]dirname=/storage/ofd_packets [10:49:52]CheckFolder done [10:49:52]ProducePacketName [10:49:52]name=ofd_packets/00260607 [10:49:52]NVStorageSaveData ofd_packets/00260607 [10:49:52]File name is /storage/ofd_packets/00260607 [10:49:52]Write 301 bytes [10:49:52]NVStorageSaveData done [10:49:52]OFDSenderStorePacket done [10:49:52]KKMCreateOFDPacket done [10:49:52]NVStorageSaveData kkm_last_timestamp [10:49:52]File name is /storage/kkm_last_timestamp [10:49:52]Write 4 bytes [10:49:52]NVStorageSaveData done [10:49:52]ExternCall_PrintAddStr [10:49:52]wPrintStart [10:49:52]Write to MH i2c: 01 00 00 F0 6A 5A [10:49:52]Write i2c OK [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: 01 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: 01 07 00 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: 01 07 00 F0 6A 00 00 00 00 00 FF 0F 6F [10:49:52]RasterBufferAndPrint [10:49:52]line Счет N : (1)1036153 [10:49:52]line ИНН: 02508201610067 [10:49:52]line Контрольно-Кассовый Чек [10:49:52]line ПРОДАЖА [10:49:52]line ТРК (МРК, ГНК) : 22 [10:49:52]line Товар: 2710124130 [10:49:52]line Аи-92-К-5 [10:49:52]line 7.380 * 67.80 [10:49:52]line = 500.36 [10:49:52]line НДС 12% НСП 1% [10:49:52]line > о реализуемом товаре [10:49:52]line ОКРУГЛЕНИЕ: -0.36 [10:49:52]line ИТОГО: 500.00 [10:49:52]line Внесено: 500.00 [10:49:52]line СДАЧА: 0.00 [10:49:52]line НСП 1% : 4.43 [10:49:52]line НДС 12% : 53.14 [10:49:52]line Наличными: 500.00 [10:49:52]line Безнал.: 0.00 [10:49:52]line Место: АЗС № 94 "Партнер Нефть" [10:49:52]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [10:49:52]line СНО: Общий режим [10:49:52]line Чек 165 18.08.2024 10:49 [10:49:52]line Смена: 449 ФФД: 1.0 [10:49:52]line ЗНМ: 0300000099 [10:49:52]line РНМ: 0000000000091865 [10:49:52]line Версия ККМ: 001 [10:49:52]line ФМ: 0000000000871820 [10:49:52]line ФД: 260607 [10:49:52]line ФПД: 105635697657981 [10:49:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T104955&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260607&fm=105635697657981&tin=02508201610067®Number=0000000000091865&sum=50000 [10:49:52]written 0, free lines is 4095 [10:49:53]OFD Sender: Processing packet 260607 [packets to send 192, broken 191] [10:49:53]ProducePacketName [10:49:53]name=ofd_packets/00260607 [10:49:53]OFD Sender: To server: pG, [10:49:53]CommunicateWithHost lk.salyk.kg:30040 [10:49:53]ConnectInit lk.salyk.kg [10:49:53]Connected sock=10 [10:49: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 30 0F 01 00 00 DC D1 07 01 EA DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A5 00 00 00 F4 03 04 00 D3 D1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FF F9 03 00 35 04 06 00 60 13 3A 3C 08 7D 08 B4 39 FB ED 7D C4 B5 [10:49: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 30 4F 00 00 00 78 C8 47 00 13 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FF F9 03 00 F4 03 04 00 28 7B C1 66 B6 04 01 00 00 15 D3 7B E8 61 04 25 2B [10:49:53]CommunicateWithHost err = 0 [10:49:53]CheckOFDResponse [10:49:53]1017 (14) - 77093643461234 [10:49:53]1041 (16) - 0000000000871820 [10:49:53]1040 (4) - 260607 [10:49:53]1012 (4) - 18.08.2024 04:40 [10:49:53]1206 (1) - 0 [10:49:53]OFD Sender: Remove packet 260607 [10:49:53]ProducePacketName [10:49:53]name=ofd_packets/00260607 [10:49:53]NVStorageDeleteData [10:49:53]Write to MH i2c: 01 00 00 1B 6B 86 [10:49:53]Write i2c OK [10:49:53]MH_I2C_Read... [10:49:53]Read from MH i2c: 01 [10:49:53]MH_I2C_Read... [10:49:53]Read from MH i2c: 01 07 00 [10:49:53]MH_I2C_Read... [10:49:53]Read from MH i2c: 01 07 00 1B 6B 00 00 00 00 00 66 0C FF [10:49:53]RasterBufferAndPrint [10:49:53]line [10:49:53]line [10:49:53]line [10:49:53]line [10:49:53]line [10:49:53]written 0, free lines is 3178 [10:49:53]MH_Cut [10:49:53]Write to MH i2c: D1 01 00 22 6B 01 5F [10:49:53]Write i2c OK [10:49:53]MH_I2C_Read... [10:49:53]Read from MH i2c: D1 [10:49:53]MH_I2C_Read... [10:49:53]Read from MH i2c: D1 01 00 [10:49:53]MH_I2C_Read... [10:49:53]Read from MH i2c: D1 01 00 22 6B 00 5E [10:49:53]Write to MH i2c: 01 00 00 23 6B 8E [10:49:53]Write i2c OK [10:49:53]MH_I2C_Read... [10:49:53]OFD Sender: No OFD packet to send [10:49:54]*** Cut start [10:49:54]*** Purtial cut [10:49:54]*** Stage 1: CUTSNS_PIN = 1 [10:49:56]Read from MH i2c: 01 [10:49:56]MH_I2C_Read... [10:49:56]*** Stop cut motor [10:49:56]*** Cut end [10:49:56]Read from MH i2c: 01 07 00 [10:49:56]MH_I2C_Read... [10:49:56]Read from MH i2c: 01 07 00 23 6B 00 00 00 00 00 FF 0F A3 [10:49:56]process_action close_receipt done [10:49:56]requested_data is exist [10:49:56]produce_requested_data [10:49:56]requested_item fm.sn is exist - process it [10:49:56]wFMCommunicate request_size=4 [10:49:56]MH_SAM_APDU [10:49:56]CAPDU: 80 11 00 00 [10:49:56]Write to MH i2c: E2 08 00 24 6B 80 11 00 00 00 00 00 00 09 [10:49:56]Write i2c OK [10:49:56]MH_I2C_Read... [10:49:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:56]Read from MH i2c: E2 [10:49:56]MH_I2C_Read... [10:49:56]Read from MH i2c: E2 17 00 [10:49:56]MH_I2C_Read... [10:49:56]Read from MH i2c: E2 17 00 24 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 56 [10:49:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:49:56]wFMCommunicate OK [10:49:56]requested_item fd.num is exist - process it [10:49:56]SAM_PROTO_GetFieldsCounters [10:49:56]wFMCommunicate request_size=4 [10:49:56]MH_SAM_APDU [10:49:56]CAPDU: 80 13 00 00 [10:49:56]Write to MH i2c: E2 08 00 25 6B 80 13 00 00 00 00 00 00 0C [10:49:56]Write i2c OK [10:49:56]MH_I2C_Read... [10:49:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:56]Read from MH i2c: E2 [10:49:56]MH_I2C_Read... [10:49:56]Read from MH i2c: E2 62 00 [10:49:56]MH_I2C_Read... [10:49:56]Read from MH i2c: E2 62 00 25 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 FF F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [10:49: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 FF F9 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:49:56]wFMCommunicate OK [10:49:56]SAM_PROTO_GetFieldsCounters done [10:49:56]requested_item shift.num is exist - process it [10:49:56]requested_item shift.opened is exist - process it [10:49:56]req_shift_opened [10:49:56]FM_GetShiftState [10:49:56]SAM_PROTO_GetShiftState [10:49:56]wFMCommunicate request_size=4 [10:49:56]MH_SAM_APDU [10:49:56]CAPDU: 80 13 01 00 [10:49:56]Write to MH i2c: E2 08 00 26 6B 80 13 01 00 00 00 00 00 0E [10:49:56]Write i2c OK [10:49:56]MH_I2C_Read... [10:49:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:56]Read from MH i2c: E2 [10:49:56]MH_I2C_Read... [10:49:56]Read from MH i2c: E2 0E 00 [10:49:56]MH_I2C_Read... [10:49:56]Read from MH i2c: E2 0E 00 26 6B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 4B [10:49:56]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:49:56]wFMCommunicate OK [10:49:56]SAM_PROTO_GetShiftState done [10:49:56]FM_GetShiftState done [10:49:56]req_shift_opened done [10:49:56]requested_item shift.open_date is exist - process it [10:49:56]req_shift_open_date [10:49:56]req_shift_open_date done [10:49:56]produce_requested_data done [10:49:56]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260607,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [10:49:56]process_action_free close_receipt [10:49:56]json_value_free [10:49:56]json_value_free done [10:49:56]process_json_proto returns [10:49:56]Send response to host [10:49:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260607,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [10:49:56]free response buf [10:49:56]execute_script done [10:49:56]execute_script returns [10:49:56]free content buf [10:49:56]Sock 7.Close socket [10:49:56]Sock 7.Thread stoped [10:49:58]OFD Sender: No OFD packet to send [10:50:03]OFD Sender: No OFD packet to send [10:50:08]OFD Sender: No OFD packet to send [10:50:13]OFD Sender: No OFD packet to send [10:50:18]OFD Sender: No OFD packet to send [10:50:23]OFD Sender: No OFD packet to send [10:50:24]accept exits with 9 [10:50:24]New connection [10:50:24]New thread 3066473828 created [10:50:24]Thread 3066617188 joined [10:50:24]Waiting for new connection... [10:50:24] Sock 9.Parse request [10:50:24]Sock 9.Check first char [10:50:24]Sock 9.First char is OK [10:50:24]request: POST /json_proto HTTP/1.0 [10:50:24]Method: POST [10:50:24]URL: /json_proto [10:50:24]Method is POST - this is cgi request [10:50:24]url: /json_proto [10:50:24]query_string will be loaded in cgi processing [10:50:24]execute_cgi json_proto POST (null) [10:50:24]execute_cgi path=json_proto method=POST [10:50:24]POST find Content-Length [10:50:24]Host: 172.17.55.133:8080 [10:50:24]Content-Length: 688 [10:50:24]Content-Type: application/json [10:50:24] [10:50:24]POST finish read [10:50:24]Found Content-Length = 688 [10:50:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:24]execute_script... [10:50: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)1036155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:24]POST & json_proto [10:50:24]process_json_proto [10:50:24]json parsed OK: [10:50:24]protocol is kg_v1.0 [10:50:24]action value=close_receipt [10:50:24]process_action close_receipt [10:50:24]cmd_close_receipt [10:50:24]MH_GetDate [10:50:24]Write to MH i2c: F0 00 00 27 6B 81 [10:50:24]Write i2c OK [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: F0 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: F0 09 00 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: F0 09 00 27 6B 00 F4 D1 C1 66 34 48 D8 65 2F [10:50:24]GetLastDocTimeStamp 1723978195 [10:50:24]current date 1723978228 [10:50:24]FM_GetShiftState [10:50:24]SAM_PROTO_GetShiftState [10:50:24]wFMCommunicate request_size=4 [10:50:24]MH_SAM_APDU [10:50:24]CAPDU: 80 13 01 00 [10:50:24]Write to MH i2c: E2 08 00 28 6B 80 13 01 00 00 00 00 00 10 [10:50:24]Write i2c OK [10:50:24]MH_I2C_Read... [10:50:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:24]Read from MH i2c: E2 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 0E 00 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 0E 00 28 6B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 4D [10:50:24]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:50:24]wFMCommunicate OK [10:50:24]SAM_PROTO_GetShiftState done [10:50:24]FM_GetShiftState done [10:50:24]opened in 1723940556 [10:50:24]opened+sec_in_day 1724026956 [10:50:24]quantity*price = 100050 [10:50:24]sum+1 = 100052 [10:50:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 166 18.08.2024 10:50 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260608 ФПД: 2365433441449 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T105028&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260608&fm=2365433441449&tin=02508201610067®Number=0000000000091865&sum=100000 [10:50:25]StoreToDocumentArchive [10:50:25]shift 449 fd 260608 [10:50:25]save to /storage/0449/doc_00260608 [10:50:25]save last doc name /storage/0449/doc_00260608 to /storage/kkm_last_doc_name [10:50:25]save OK [10:50:25]Clear old archive folders... [10:50:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:50:25]tlvbuf is 004A2210 [10:50:25]SAM_PROTO_ClearQueue [10:50:25]wFMCommunicate request_size=4 [10:50:25]MH_SAM_APDU [10:50:25]CAPDU: 80 09 00 00 [10:50:25]Write to MH i2c: E2 08 00 35 6B 80 09 00 00 00 00 00 00 12 [10:50:25]Write i2c OK [10:50:25]MH_I2C_Read... [10:50:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:25]Read from MH i2c: E2 [10:50:25]MH_I2C_Read... [10:50:25]Read from MH i2c: E2 03 00 [10:50:25]MH_I2C_Read... [10:50:25]Read from MH i2c: E2 03 00 35 6B 00 90 00 14 [10:50:25]RAPDU: 90 00 [10:50:25]wFMCommunicate OK [10:50:25]SAM_PROTO_ClearQueue done [10:50:25]KKMCreateOFDPacket [10:50:25]OFDProtocolAddRootSTLVToBuf [10:50:25]FM_MakeSignedData [10:50:25]FM_MakeSignedData [10:50:25]SAM_PROTO_SignData [10:50:25]wFMCommunicate request_size=4 [10:50:25]MH_SAM_APDU [10:50:25]CAPDU: 80 0D 01 02 [10:50:25]Write to MH i2c: E2 08 00 36 6B 80 0D 01 02 00 00 00 00 1A [10:50:25]Write i2c OK [10:50:25]MH_I2C_Read... [10:50:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:25]Read from MH i2c: E2 [10:50:25]MH_I2C_Read... [10:50:25]Read from MH i2c: E2 03 00 [10:50:25]MH_I2C_Read... [10:50:25]Read from MH i2c: E2 03 00 36 6B 00 90 00 15 [10:50:25]RAPDU: 90 00 [10:50:25]wFMCommunicate OK [10:50:25]wFMCommunicate request_size=255 [10:50:25]MH_SAM_APDU [10:50:25]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 F4 D1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 00 FA 03 00 35 04 06 00 [10:50:25]Write to MH i2c: E2 02 01 37 6B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 F4 D1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 00 FA 03 00 35 04 06 00 00 00 D5 [10:50:25]Write i2c OK [10:50:25]MH_I2C_Read... [10:50:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:25]Read from MH i2c: E2 [10:50:25]MH_I2C_Read... [10:50:25]Read from MH i2c: E2 03 00 [10:50:25]MH_I2C_Read... [10:50:25]Read from MH i2c: E2 03 00 37 6B 00 90 00 16 [10:50:25]RAPDU: 90 00 [10:50:25]wFMCommunicate OK [10:50:25]wFMCommunicate request_size=11 [10:50:25]MH_SAM_APDU [10:50:25]CAPDU: 80 0D 02 02 06 02 26 BE D1 EC A9 [10:50:25]Write to MH i2c: E2 0E 00 38 6B 80 0D 02 02 06 00 02 26 BE D1 EC A9 00 00 75 [10:50:25]Write i2c OK [10:50:25]MH_I2C_Read... [10:50:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:26]Read from MH i2c: E2 [10:50:26]MH_I2C_Read... [10:50:26]Read from MH i2c: E2 03 00 [10:50:26]MH_I2C_Read... [10:50:26]Read from MH i2c: E2 03 00 38 6B 00 90 00 17 [10:50:26]RAPDU: 90 00 [10:50:26]wFMCommunicate OK [10:50:26]wFMCommunicate request_size=4 [10:50:26]MH_SAM_APDU [10:50:26]CAPDU: 80 0D 03 02 [10:50:26]Write to MH i2c: E2 08 00 39 6B 80 0D 03 02 00 00 00 00 1F [10:50:26]Write i2c OK [10:50:26]MH_I2C_Read... [10:50:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:26]Read from MH i2c: E2 [10:50:26]MH_I2C_Read... [10:50:26]Read from MH i2c: E2 0B 00 [10:50:26]MH_I2C_Read... [10:50:26]Read from MH i2c: E2 0B 00 39 6B 00 54 C6 B4 4F 8B D9 63 8D 90 00 91 [10:50:26]RAPDU: 54 C6 B4 4F 8B D9 63 8D 90 00 [10:50:26]wFMCommunicate OK [10:50:26]SAM_PROTO_SignData done [10:50:26]FM_MakeSignedData done [10:50:26]CreateOFDProtocolMessage [10:50:26]wFMCommunicate request_size=4 [10:50:26]MH_SAM_APDU [10:50:26]CAPDU: 80 11 00 00 [10:50:26]Write to MH i2c: E2 08 00 3A 6B 80 11 00 00 00 00 00 00 1F [10:50:26]Write i2c OK [10:50:26]MH_I2C_Read... [10:50:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:26]Read from MH i2c: E2 [10:50:26]MH_I2C_Read... [10:50:26]Read from MH i2c: E2 17 00 [10:50:26]MH_I2C_Read... [10:50:26]Read from MH i2c: E2 17 00 3A 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 6C [10:50:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:50:26]wFMCommunicate OK [10:50:26]CreateOFDProtocolMessage done [10:50:26]OFDSenderStorePacket 260608 [10:50:26]StoreOFDPacket docnum=260608 [10:50:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 6E AE 08 01 E4 18 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 F4 D1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 00 FA 03 00 35 04 06 00 02 26 BE D1 EC A9 54 C6 B4 4F 8B D9 63 8D [10:50:26]CheckFolder [10:50:26]dirname=/storage/ofd_packets [10:50:26]CheckFolder done [10:50:26]ProducePacketName [10:50:26]name=ofd_packets/00260608 [10:50:26]NVStorageSaveData ofd_packets/00260608 [10:50:26]File name is /storage/ofd_packets/00260608 [10:50:26]Write 302 bytes [10:50:26]NVStorageSaveData done [10:50:26]OFDSenderStorePacket done [10:50:26]KKMCreateOFDPacket done [10:50:26]NVStorageSaveData kkm_last_timestamp [10:50:26]File name is /storage/kkm_last_timestamp [10:50:26]Write 4 bytes [10:50:26]NVStorageSaveData done [10:50:26]ExternCall_PrintAddStr [10:50:26]wPrintStart [10:50:26]Write to MH i2c: 01 00 00 3B 6B A6 [10:50:26]OFD Sender: Processing packet 260608 [packets to send 192, broken 191] [10:50:26]ProducePacketName [10:50:26]name=ofd_packets/00260608 [10:50:26]OFD Sender: To server: pG, [10:50:26]CommunicateWithHost lk.salyk.kg:30040 [10:50:26]ConnectInit lk.salyk.kg [10:50:26]Write i2c OK [10:50:26]MH_I2C_Read... [10:50:26]Read from MH i2c: 01 [10:50:26]MH_I2C_Read... [10:50:26]Read from MH i2c: 01 07 00 [10:50:26]MH_I2C_Read... [10:50:26]Read from MH i2c: 01 07 00 3B 6B 00 00 00 00 00 FF 0F BB [10:50:26]RasterBufferAndPrint [10:50:26]line Счет N : (1)1036155 [10:50:26]line ИНН: 02508201610067 [10:50:26]line Контрольно-Кассовый Чек [10:50:26]line ПРОДАЖА [10:50:26]line ТРК (МРК, ГНК) : 33 [10:50:26]line Товар: 2710194210 [10:50:26]line ДТ(л)-К-4 [10:50:26]line 13.130 * 76.20 [10:50:26]line = 1000.51 [10:50:26]line НДС 12% НСП 1% [10:50:26]line > о реализуемом товаре [10:50:26]line ОКРУГЛЕНИЕ: -0.51 [10:50:26]line ИТОГО: 1000.00 [10:50:26]line Внесено: 1000.00 [10:50:26]line СДАЧА: 0.00 [10:50:26]line НСП 1% : 8.85 [10:50:26]line НДС 12% : 106.25 [10:50:26]line Наличными: 1000.00 [10:50:26]line Безнал.: 0.00 [10:50:26]line Место: АЗС № 94 "Партнер Нефть" [10:50:26]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [10:50:26]line СНО: Общий режим [10:50:26]line Чек 166 18.08.2024 10:50 [10:50:26]line Смена: 449 ФФД: 1.0 [10:50:26]line ЗНМ: 0300000099 [10:50:26]line РНМ: 0000000000091865 [10:50:26]line Версия ККМ: 001 [10:50:26]line ФМ: 0000000000871820 [10:50:26]line ФД: 260608 [10:50:26]line ФПД: 2365433441449 [10:50:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T105028&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260608&fm=2365433441449&tin=02508201610067®Number=0000000000091865&sum=100000 [10:50:26]Connected sock=10 [10:50: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 30 10 01 00 00 6E AE 08 01 E4 18 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 F4 D1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 00 FA 03 00 35 04 06 00 02 26 BE D1 EC A9 54 C6 B4 4F 8B D9 63 8D [10:50:26]written 0, free lines is 4095 [10:50: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 30 4F 00 00 00 90 73 47 00 33 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 30 10 04 04 00 00 FA 03 00 F4 03 04 00 4A 7B C1 66 B6 04 01 00 00 97 F9 2F 8B 44 47 7D 3A [10:50:26]CommunicateWithHost err = 0 [10:50:26]CheckOFDResponse [10:50:26]1017 (14) - 77093643461234 [10:50:26]1041 (16) - 0000000000871820 [10:50:26]1040 (4) - 260608 [10:50:26]1012 (4) - 18.08.2024 04:40 [10:50:26]1206 (1) - 0 [10:50:26]OFD Sender: Remove packet 260608 [10:50:26]ProducePacketName [10:50:26]name=ofd_packets/00260608 [10:50:26]NVStorageDeleteData [10:50:26]Write to MH i2c: 01 00 00 66 6B D1 [10:50:26]Write i2c OK [10:50:26]MH_I2C_Read... [10:50:26]Read from MH i2c: 01 [10:50:26]MH_I2C_Read... [10:50:26]Read from MH i2c: 01 07 00 [10:50:26]MH_I2C_Read... [10:50:26]Read from MH i2c: 01 07 00 66 6B 00 00 00 00 00 62 0C 46 [10:50:26]RasterBufferAndPrint [10:50:26]line [10:50:26]line [10:50:26]line [10:50:26]line [10:50:26]line [10:50:26]written 0, free lines is 3174 [10:50:26]MH_Cut [10:50:26]Write to MH i2c: D1 01 00 6D 6B 01 AA [10:50:26]Write i2c OK [10:50:26]MH_I2C_Read... [10:50:26]Read from MH i2c: D1 [10:50:26]MH_I2C_Read... [10:50:26]Read from MH i2c: D1 01 00 [10:50:26]MH_I2C_Read... [10:50:26]Read from MH i2c: D1 01 00 6D 6B 00 A9 [10:50:26]Write to MH i2c: 01 00 00 6E 6B D9 [10:50:26]Write i2c OK [10:50:26]MH_I2C_Read... [10:50:27]OFD Sender: No OFD packet to send [10:50:28]*** Cut start [10:50:28]*** Purtial cut [10:50:28]*** Stage 1: CUTSNS_PIN = 1 [10:50:30]Read from MH i2c: 01 [10:50:30]MH_I2C_Read... [10:50:30]*** Stop cut motor [10:50:30]*** Cut end [10:50:30]Read from MH i2c: 01 07 00 [10:50:30]MH_I2C_Read... [10:50:30]Read from MH i2c: 01 07 00 6E 6B 00 00 00 00 00 FF 0F EE [10:50:30]process_action close_receipt done [10:50:30]requested_data is exist [10:50:30]produce_requested_data [10:50:30]requested_item fm.sn is exist - process it [10:50:30]wFMCommunicate request_size=4 [10:50:30]MH_SAM_APDU [10:50:30]CAPDU: 80 11 00 00 [10:50:30]Write to MH i2c: E2 08 00 6F 6B 80 11 00 00 00 00 00 00 54 [10:50:30]Write i2c OK [10:50:30]MH_I2C_Read... [10:50:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:30]Read from MH i2c: E2 [10:50:30]MH_I2C_Read... [10:50:30]Read from MH i2c: E2 17 00 [10:50:30]MH_I2C_Read... [10:50:30]Read from MH i2c: E2 17 00 6F 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A1 [10:50:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:50:30]wFMCommunicate OK [10:50:30]requested_item fd.num is exist - process it [10:50:30]SAM_PROTO_GetFieldsCounters [10:50:30]wFMCommunicate request_size=4 [10:50:30]MH_SAM_APDU [10:50:30]CAPDU: 80 13 00 00 [10:50:30]Write to MH i2c: E2 08 00 70 6B 80 13 00 00 00 00 00 00 57 [10:50:30]Write i2c OK [10:50:30]MH_I2C_Read... [10:50:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:30]Read from MH i2c: E2 [10:50:30]MH_I2C_Read... [10:50:30]Read from MH i2c: E2 62 00 [10:50:30]MH_I2C_Read... [10:50:30]Read from MH i2c: E2 62 00 70 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 00 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [10:50: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 00 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:50:30]wFMCommunicate OK [10:50:30]SAM_PROTO_GetFieldsCounters done [10:50:30]requested_item shift.num is exist - process it [10:50:30]requested_item shift.opened is exist - process it [10:50:30]req_shift_opened [10:50:30]FM_GetShiftState [10:50:30]SAM_PROTO_GetShiftState [10:50:30]wFMCommunicate request_size=4 [10:50:30]MH_SAM_APDU [10:50:30]CAPDU: 80 13 01 00 [10:50:30]Write to MH i2c: E2 08 00 71 6B 80 13 01 00 00 00 00 00 59 [10:50:30]Write i2c OK [10:50:30]MH_I2C_Read... [10:50:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:30]Read from MH i2c: E2 [10:50:30]MH_I2C_Read... [10:50:30]Read from MH i2c: E2 0E 00 [10:50:30]MH_I2C_Read... [10:50:30]Read from MH i2c: E2 0E 00 71 6B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 96 [10:50:30]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:50:30]wFMCommunicate OK [10:50:30]SAM_PROTO_GetShiftState done [10:50:30]FM_GetShiftState done [10:50:30]req_shift_opened done [10:50:30]requested_item shift.open_date is exist - process it [10:50:30]req_shift_open_date [10:50:30]req_shift_open_date done [10:50:30]produce_requested_data done [10:50:30]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260608,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [10:50:30]process_action_free close_receipt [10:50:30]json_value_free [10:50:30]json_value_free done [10:50:30]process_json_proto returns [10:50:30]Send response to host [10:50:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260608,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [10:50:30]free response buf [10:50:30]execute_script done [10:50:30]execute_script returns [10:50:30]free content buf [10:50:30]Sock 9.Close socket [10:50:30]Sock 9.Thread stoped [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:12]OFD Sender: No OFD packet to send [10:51:17]OFD Sender: No OFD packet to send [10:51:22]OFD Sender: No OFD packet to send [10:51:27]OFD Sender: No OFD packet to send [10:51:32]OFD Sender: No OFD packet to send [10:51:37]OFD Sender: No OFD packet to send [10:51:42]OFD Sender: No OFD packet to send [10:51:47]OFD Sender: No OFD packet to send [10:51:52]OFD Sender: No OFD packet to send [10:51:57]OFD Sender: No OFD packet to send [10:52:02]OFD Sender: No OFD packet to send [10:52:07]OFD Sender: No OFD packet to send [10:52:12]OFD Sender: No OFD packet to send [10:52:17]OFD Sender: No OFD packet to send [10:52:22]OFD Sender: No OFD packet to send [10:52:27]OFD Sender: No OFD packet to send [10:52:32]OFD Sender: No OFD packet to send [10:52:37]OFD Sender: No OFD packet to send [10:52:37]accept exits with 7 [10:52:37]New connection [10:52:37]New thread 3066617188 created [10:52:37]Thread 3066473828 joined [10:52:37]Waiting for new connection... [10:52:37] Sock 7.Parse request [10:52:37]Sock 7.Check first char [10:52:37]Sock 7.First char is OK [10:52:37]request: POST /json_proto HTTP/1.0 [10:52:37]Method: POST [10:52:37]URL: /json_proto [10:52:37]Method is POST - this is cgi request [10:52:37]url: /json_proto [10:52:37]query_string will be loaded in cgi processing [10:52:37]execute_cgi json_proto POST (null) [10:52:37]execute_cgi path=json_proto method=POST [10:52:37]POST find Content-Length [10:52:37]Host: 172.17.55.133:8080 [10:52:37]Content-Length: 678 [10:52:37]Content-Type: application/json [10:52:37] [10:52:37]POST finish read [10:52:37]Found Content-Length = 678 [10:52:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:52:37]execute_script... [10:52: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)1036156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:52:37]POST & json_proto [10:52:37]process_json_proto [10:52:37]json parsed OK: [10:52:37]protocol is kg_v1.0 [10:52:37]action value=close_receipt [10:52:37]process_action close_receipt [10:52:37]cmd_close_receipt [10:52:37]MH_GetDate [10:52:37]Write to MH i2c: F0 00 00 72 6B CC [10:52:37]Write i2c OK [10:52:37]MH_I2C_Read... [10:52:37]Read from MH i2c: F0 [10:52:37]MH_I2C_Read... [10:52:37]Read from MH i2c: F0 09 00 [10:52:37]MH_I2C_Read... [10:52:37]Read from MH i2c: F0 09 00 72 6B 00 79 D2 C1 66 34 48 D8 65 00 [10:52:37]GetLastDocTimeStamp 1723978228 [10:52:37]current date 1723978361 [10:52:37]FM_GetShiftState [10:52:37]SAM_PROTO_GetShiftState [10:52:37]wFMCommunicate request_size=4 [10:52:37]MH_SAM_APDU [10:52:37]CAPDU: 80 13 01 00 [10:52:37]Write to MH i2c: E2 08 00 73 6B 80 13 01 00 00 00 00 00 5B [10:52:37]Write i2c OK [10:52:37]MH_I2C_Read... [10:52:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:37]Read from MH i2c: E2 [10:52:37]MH_I2C_Read... [10:52:37]Read from MH i2c: E2 0E 00 [10:52:37]MH_I2C_Read... [10:52:37]Read from MH i2c: E2 0E 00 73 6B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 98 [10:52:37]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:52:37]wFMCommunicate OK [10:52:37]SAM_PROTO_GetShiftState done [10:52:37]FM_GetShiftState done [10:52:37]opened in 1723940556 [10:52:37]opened+sec_in_day 1724026956 [10:52:37]quantity*price = 50036 [10:52:37]sum+1 = 50037 [10:52:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 167 18.08.2024 10:52 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260609 ФПД: 271235682809263 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T105241&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260609&fm=271235682809263&tin=02508201610067®Number=0000000000091865&sum=50000 [10:52:38]StoreToDocumentArchive [10:52:38]shift 449 fd 260609 [10:52:38]save to /storage/0449/doc_00260609 [10:52:38]save last doc name /storage/0449/doc_00260609 to /storage/kkm_last_doc_name [10:52:38]save OK [10:52:38]Clear old archive folders... [10:52:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:52:38]tlvbuf is 003E29D0 [10:52:38]SAM_PROTO_ClearQueue [10:52:38]wFMCommunicate request_size=4 [10:52:38]MH_SAM_APDU [10:52:38]CAPDU: 80 09 00 00 [10:52:38]Write to MH i2c: E2 08 00 80 6B 80 09 00 00 00 00 00 00 5D [10:52:38]Write i2c OK [10:52:38]MH_I2C_Read... [10:52:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:38]Read from MH i2c: E2 [10:52:38]MH_I2C_Read... [10:52:38]Read from MH i2c: E2 03 00 [10:52:38]MH_I2C_Read... [10:52:38]Read from MH i2c: E2 03 00 80 6B 00 90 00 5F [10:52:38]RAPDU: 90 00 [10:52:38]wFMCommunicate OK [10:52:38]SAM_PROTO_ClearQueue done [10:52:38]KKMCreateOFDPacket [10:52:38]OFDProtocolAddRootSTLVToBuf [10:52:38]FM_MakeSignedData [10:52:38]FM_MakeSignedData [10:52:38]SAM_PROTO_SignData [10:52:38]wFMCommunicate request_size=4 [10:52:38]MH_SAM_APDU [10:52:38]CAPDU: 80 0D 01 02 [10:52:38]Write to MH i2c: E2 08 00 81 6B 80 0D 01 02 00 00 00 00 65 [10:52:38]Write i2c OK [10:52:38]MH_I2C_Read... [10:52:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:38]Read from MH i2c: E2 [10:52:38]MH_I2C_Read... [10:52:38]Read from MH i2c: E2 03 00 [10:52:38]MH_I2C_Read... [10:52:38]Read from MH i2c: E2 03 00 81 6B 00 90 00 60 [10:52:38]RAPDU: 90 00 [10:52:38]wFMCommunicate OK [10:52:38]wFMCommunicate request_size=255 [10:52:38]MH_SAM_APDU [10:52:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A7 00 00 00 F4 03 04 00 79 D2 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 01 FA 03 00 35 04 06 00 F6 [10:52:38]Write to MH i2c: E2 02 01 82 6B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A7 00 00 00 F4 03 04 00 79 D2 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 01 FA 03 00 35 04 06 00 F6 00 00 B1 [10:52:38]Write i2c OK [10:52:38]MH_I2C_Read... [10:52:39]Read from MH i2c: E2 [10:52:39]MH_I2C_Read... [10:52:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:39]Read from MH i2c: E2 03 00 [10:52:39]MH_I2C_Read... [10:52:39]Read from MH i2c: E2 03 00 82 6B 00 90 00 61 [10:52:39]RAPDU: 90 00 [10:52:39]wFMCommunicate OK [10:52:39]wFMCommunicate request_size=10 [10:52:39]MH_SAM_APDU [10:52:39]CAPDU: 80 0D 02 02 05 AF FA 86 35 AF [10:52:39]Write to MH i2c: E2 0D 00 83 6B 80 0D 02 02 05 00 AF FA 86 35 AF 00 00 85 [10:52:39]Write i2c OK [10:52:39]MH_I2C_Read... [10:52:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:39]Read from MH i2c: E2 [10:52:39]MH_I2C_Read... [10:52:39]Read from MH i2c: E2 03 00 [10:52:39]MH_I2C_Read... [10:52:39]Read from MH i2c: E2 03 00 83 6B 00 90 00 62 [10:52:39]RAPDU: 90 00 [10:52:39]wFMCommunicate OK [10:52:39]wFMCommunicate request_size=4 [10:52:39]MH_SAM_APDU [10:52:39]CAPDU: 80 0D 03 02 [10:52:39]Write to MH i2c: E2 08 00 84 6B 80 0D 03 02 00 00 00 00 6A [10:52:39]Write i2c OK [10:52:39]MH_I2C_Read... [10:52:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:39]Read from MH i2c: E2 [10:52:39]MH_I2C_Read... [10:52:39]Read from MH i2c: E2 0B 00 [10:52:39]MH_I2C_Read... [10:52:39]Read from MH i2c: E2 0B 00 84 6B 00 FF 31 8A BA 7D 15 91 25 90 00 27 [10:52:39]RAPDU: FF 31 8A BA 7D 15 91 25 90 00 [10:52:39]wFMCommunicate OK [10:52:39]SAM_PROTO_SignData done [10:52:39]FM_MakeSignedData done [10:52:39]CreateOFDProtocolMessage [10:52:39]wFMCommunicate request_size=4 [10:52:39]MH_SAM_APDU [10:52:39]CAPDU: 80 11 00 00 [10:52:39]Write to MH i2c: E2 08 00 85 6B 80 11 00 00 00 00 00 00 6A [10:52:39]Write i2c OK [10:52:39]MH_I2C_Read... [10:52:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:39]Read from MH i2c: E2 [10:52:39]MH_I2C_Read... [10:52:39]Read from MH i2c: E2 17 00 [10:52:39]MH_I2C_Read... [10:52:39]Read from MH i2c: E2 17 00 85 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B7 [10:52:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:52:39]wFMCommunicate OK [10:52:39]CreateOFDProtocolMessage done [10:52:39]OFDSenderStorePacket 260609 [10:52:39]StoreOFDPacket docnum=260609 [10:52:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 F0 57 07 01 8A 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A7 00 00 00 F4 03 04 00 79 D2 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 01 FA 03 00 35 04 06 00 F6 AF FA 86 35 AF FF 31 8A BA 7D 15 91 25 [10:52:39]CheckFolder [10:52:39]dirname=/storage/ofd_packets [10:52:39]CheckFolder done [10:52:39]ProducePacketName [10:52:39]name=ofd_packets/00260609 [10:52:39]NVStorageSaveData ofd_packets/00260609 [10:52:39]File name is /storage/ofd_packets/00260609 [10:52:39]Write 301 bytes [10:52:39]NVStorageSaveData done [10:52:39]OFDSenderStorePacket done [10:52:39]KKMCreateOFDPacket done [10:52:39]NVStorageSaveData kkm_last_timestamp [10:52:39]File name is /storage/kkm_last_timestamp [10:52:39]Write 4 bytes [10:52:39]NVStorageSaveData done [10:52:39]ExternCall_PrintAddStr [10:52:39]wPrintStart [10:52:39]Write to MH i2c: 01 00 00 86 6B F1 [10:52:39]Write i2c OK [10:52:39]MH_I2C_Read... [10:52:39]Read from MH i2c: 01 [10:52:39]MH_I2C_Read... [10:52:39]Read from MH i2c: 01 07 00 [10:52:39]MH_I2C_Read... [10:52:39]Read from MH i2c: 01 07 00 86 6B 00 00 00 00 00 FF 0F 06 [10:52:39]RasterBufferAndPrint [10:52:39]line Счет N : (1)1036156 [10:52:39]line ИНН: 02508201610067 [10:52:39]line Контрольно-Кассовый Чек [10:52:39]line ПРОДАЖА [10:52:39]line ТРК (МРК, ГНК) : 12 [10:52:39]line Товар: 2710124130 [10:52:39]line Аи-92-К-5 [10:52:39]line 7.380 * 67.80 [10:52:39]line = 500.36 [10:52:39]line НДС 12% НСП 1% [10:52:39]line > о реализуемом товаре [10:52:39]line ОКРУГЛЕНИЕ: -0.36 [10:52:39]line ИТОГО: 500.00 [10:52:39]line Внесено: 500.00 [10:52:39]line СДАЧА: 0.00 [10:52:39]line НСП 1% : 4.43 [10:52:39]line НДС 12% : 53.14 [10:52:39]line Наличными: 500.00 [10:52:39]line Безнал.: 0.00 [10:52:39]line Место: АЗС № 94 "Партнер Нефть" [10:52:39]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [10:52:39]line СНО: Общий режим [10:52:39]line Чек 167 18.08.2024 10:52 [10:52:39]line Смена: 449 ФФД: 1.0 [10:52:39]line ЗНМ: 0300000099 [10:52:39]line РНМ: 0000000000091865 [10:52:39]line Версия ККМ: 001 [10:52:39]line ФМ: 0000000000871820 [10:52:39]line ФД: 260609 [10:52:39]line ФПД: 271235682809263 [10:52:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T105241&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260609&fm=271235682809263&tin=02508201610067®Number=0000000000091865&sum=50000 [10:52:39]OFD Sender: Processing packet 260609 [packets to send 192, broken 191] [10:52:39]ProducePacketName [10:52:39]name=ofd_packets/00260609 [10:52:39]OFD Sender: To server: pG, [10:52:39]CommunicateWithHost lk.salyk.kg:30040 [10:52:39]ConnectInit lk.salyk.kg [10:52:39]written 0, free lines is 4095 [10:52:39]Connected sock=10 [10:52: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 30 0F 01 00 00 F0 57 07 01 8A 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A7 00 00 00 F4 03 04 00 79 D2 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 01 FA 03 00 35 04 06 00 F6 AF FA 86 35 AF FF 31 8A BA 7D 15 91 25 [10:52: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 30 4F 00 00 00 47 B0 47 00 F3 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 30 10 04 04 00 01 FA 03 00 F4 03 04 00 CF 7B C1 66 B6 04 01 00 00 D6 19 9A 79 27 6C 82 76 [10:52:39]CommunicateWithHost err = 0 [10:52:39]CheckOFDResponse [10:52:39]1017 (14) - 77093643461234 [10:52:39]1041 (16) - 0000000000871820 [10:52:39]1040 (4) - 260609 [10:52:39]1012 (4) - 18.08.2024 04:42 [10:52:39]1206 (1) - 0 [10:52:39]OFD Sender: Remove packet 260609 [10:52:39]ProducePacketName [10:52:39]name=ofd_packets/00260609 [10:52:39]NVStorageDeleteData [10:52:40]Write to MH i2c: 01 00 00 B1 6B 1C [10:52:40]Write i2c OK [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: 01 [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: 01 07 00 [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: 01 07 00 B1 6B 00 00 00 00 00 6A 0C 99 [10:52:40]RasterBufferAndPrint [10:52:40]line [10:52:40]line [10:52:40]line [10:52:40]line [10:52:40]line [10:52:40]written 0, free lines is 3181 [10:52:40]MH_Cut [10:52:40]Write to MH i2c: D1 01 00 B8 6B 01 F5 [10:52:40]Write i2c OK [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: D1 [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: D1 01 00 [10:52:40]MH_I2C_Read... [10:52:40]Read from MH i2c: D1 01 00 B8 6B 00 F4 [10:52:40]Write to MH i2c: 01 00 00 B9 6B 24 [10:52:40]Write i2c OK [10:52:40]MH_I2C_Read... [10:52:40]OFD Sender: No OFD packet to send [10:52:41]*** Cut start [10:52:41]*** Purtial cut [10:52:41]*** Stage 1: CUTSNS_PIN = 1 [10:52:43]Read from MH i2c: 01 [10:52:43]MH_I2C_Read... [10:52:43]*** Stop cut motor [10:52:43]*** Cut end [10:52:43]Read from MH i2c: 01 07 00 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: 01 07 00 B9 6B 00 00 00 00 00 FF 0F 39 [10:52:43]process_action close_receipt done [10:52:43]requested_data is exist [10:52:43]produce_requested_data [10:52:43]requested_item fm.sn is exist - process it [10:52:43]wFMCommunicate request_size=4 [10:52:43]MH_SAM_APDU [10:52:43]CAPDU: 80 11 00 00 [10:52:43]Write to MH i2c: E2 08 00 BA 6B 80 11 00 00 00 00 00 00 9F [10:52:43]Write i2c OK [10:52:43]MH_I2C_Read... [10:52:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:43]Read from MH i2c: E2 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: E2 17 00 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: E2 17 00 BA 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 EC [10:52:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:52:43]wFMCommunicate OK [10:52:43]requested_item fd.num is exist - process it [10:52:43]SAM_PROTO_GetFieldsCounters [10:52:43]wFMCommunicate request_size=4 [10:52:43]MH_SAM_APDU [10:52:43]CAPDU: 80 13 00 00 [10:52:43]Write to MH i2c: E2 08 00 BB 6B 80 13 00 00 00 00 00 00 A2 [10:52:43]Write i2c OK [10:52:43]MH_I2C_Read... [10:52:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:43]Read from MH i2c: E2 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: E2 62 00 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: E2 62 00 BB 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 01 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [10:52: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 01 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:52:43]wFMCommunicate OK [10:52:43]SAM_PROTO_GetFieldsCounters done [10:52:43]requested_item shift.num is exist - process it [10:52:43]requested_item shift.opened is exist - process it [10:52:43]req_shift_opened [10:52:43]FM_GetShiftState [10:52:43]SAM_PROTO_GetShiftState [10:52:43]wFMCommunicate request_size=4 [10:52:43]MH_SAM_APDU [10:52:43]CAPDU: 80 13 01 00 [10:52:43]Write to MH i2c: E2 08 00 BC 6B 80 13 01 00 00 00 00 00 A4 [10:52:43]Write i2c OK [10:52:43]MH_I2C_Read... [10:52:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:43]Read from MH i2c: E2 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: E2 0E 00 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: E2 0E 00 BC 6B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E1 [10:52:43]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:52:43]wFMCommunicate OK [10:52:43]SAM_PROTO_GetShiftState done [10:52:43]FM_GetShiftState done [10:52:43]req_shift_opened done [10:52:43]requested_item shift.open_date is exist - process it [10:52:43]req_shift_open_date [10:52:43]req_shift_open_date done [10:52:43]produce_requested_data done [10:52:43]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260609,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [10:52:43]process_action_free close_receipt [10:52:43]json_value_free [10:52:43]json_value_free done [10:52:43]process_json_proto returns [10:52:43]Send response to host [10:52:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260609,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [10:52:43]free response buf [10:52:43]execute_script done [10:52:43]execute_script returns [10:52:43]free content buf [10:52:43]Sock 7.Close socket [10:52:43]Sock 7.Thread stoped [10:52:45]OFD Sender: No OFD packet to send [10:52:50]OFD Sender: No OFD packet to send [10:52:55]OFD Sender: No OFD packet to send [10:53:00]OFD Sender: No OFD packet to send [10:53:05]OFD Sender: No OFD packet to send [10:53:10]OFD Sender: No OFD packet to send [10:53:15]OFD Sender: No OFD packet to send [10:53:20]OFD Sender: No OFD packet to send [10:53:25]OFD Sender: No OFD packet to send [10:53:30]OFD Sender: No OFD packet to send [10:53:35]OFD Sender: No OFD packet to send [10:53:40]OFD Sender: No OFD packet to send [10:53:45]OFD Sender: No OFD packet to send [10:53:50]OFD Sender: No OFD packet to send [10:53:55]OFD Sender: No OFD packet to send [10:54:00]OFD Sender: No OFD packet to send [10:54:05]OFD Sender: No OFD packet to send [10:54:10]OFD Sender: No OFD packet to send [10:54:15]OFD Sender: No OFD packet to send [10:54:20]OFD Sender: No OFD packet to send [10:54:25]OFD Sender: No OFD packet to send [10:54:30]OFD Sender: No OFD packet to send [10:54:35]OFD Sender: No OFD packet to send [10:54:40]OFD Sender: No OFD packet to send [10:54:45]OFD Sender: No OFD packet to send [10:54:50]OFD Sender: No OFD packet to send [10:54:55]OFD Sender: No OFD packet to send [10:55:00]OFD Sender: No OFD packet to send [10:55:05]OFD Sender: No OFD packet to send [10:55:10]OFD Sender: No OFD packet to send [10:55:15]OFD Sender: No OFD packet to send [10:55:20]OFD Sender: No OFD packet to send [10:55:25]OFD Sender: No OFD packet to send [10:55:30]OFD Sender: No OFD packet to send [10:55:35]OFD Sender: No OFD packet to send [10:55:40]OFD Sender: No OFD packet to send [10:55:45]OFD Sender: No OFD packet to send [10:55:50]OFD Sender: No OFD packet to send [10:55:55]OFD Sender: No OFD packet to send [10:56:00]OFD Sender: No OFD packet to send [10:56:02]accept exits with 9 [10:56:02]New connection [10:56:02]New thread 3066473828 created [10:56:02]Thread 3066617188 joined [10:56:02]Waiting for new connection... [10:56:02] Sock 9.Parse request [10:56:02]Sock 9.Check first char [10:56:02]Sock 9.First char is OK [10:56:02]request: POST /json_proto HTTP/1.0 [10:56:02]Method: POST [10:56:02]URL: /json_proto [10:56:02]Method is POST - this is cgi request [10:56:02]url: /json_proto [10:56:02]query_string will be loaded in cgi processing [10:56:02]execute_cgi json_proto POST (null) [10:56:02]execute_cgi path=json_proto method=POST [10:56:02]POST find Content-Length [10:56:02]Host: 172.17.55.133:8080 [10:56:02]Content-Length: 683 [10:56:02]Content-Type: application/json [10:56:02] [10:56:02]POST finish read [10:56:02]Found Content-Length = 683 [10:56:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036157", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:02]execute_script... [10:56:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036157", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:02]POST & json_proto [10:56:02]process_json_proto [10:56:02]json parsed OK: [10:56:02]protocol is kg_v1.0 [10:56:02]action value=close_receipt [10:56:02]process_action close_receipt [10:56:02]cmd_close_receipt [10:56:02]MH_GetDate [10:56:02]Write to MH i2c: F0 00 00 BD 6B 17 [10:56:02]Write i2c OK [10:56:02]MH_I2C_Read... [10:56:02]Read from MH i2c: F0 [10:56:02]MH_I2C_Read... [10:56:02]Read from MH i2c: F0 09 00 [10:56:02]MH_I2C_Read... [10:56:02]Read from MH i2c: F0 09 00 BD 6B 00 46 D3 C1 66 34 48 D8 65 19 [10:56:02]GetLastDocTimeStamp 1723978361 [10:56:02]current date 1723978566 [10:56:02]FM_GetShiftState [10:56:02]SAM_PROTO_GetShiftState [10:56:02]wFMCommunicate request_size=4 [10:56:02]MH_SAM_APDU [10:56:02]CAPDU: 80 13 01 00 [10:56:02]Write to MH i2c: E2 08 00 BE 6B 80 13 01 00 00 00 00 00 A6 [10:56:02]Write i2c OK [10:56:02]MH_I2C_Read... [10:56:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:02]Read from MH i2c: E2 [10:56:02]MH_I2C_Read... [10:56:02]Read from MH i2c: E2 0E 00 [10:56:02]MH_I2C_Read... [10:56:02]Read from MH i2c: E2 0E 00 BE 6B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E3 [10:56:02]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:56:02]wFMCommunicate OK [10:56:02]SAM_PROTO_GetShiftState done [10:56:02]FM_GetShiftState done [10:56:02]opened in 1723940556 [10:56:02]opened+sec_in_day 1724026956 [10:56:02]quantity*price = 100021 [10:56:02]sum+1 = 100023 [10:56:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 168 18.08.2024 10:56 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260610 ФПД: 222213709965595 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T105606&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260610&fm=222213709965595&tin=02508201610067®Number=0000000000091865&sum=100000 [10:56:03]StoreToDocumentArchive [10:56:03]shift 449 fd 260610 [10:56:03]save to /storage/0449/doc_00260610 [10:56:03]save last doc name /storage/0449/doc_00260610 to /storage/kkm_last_doc_name [10:56:03]save OK [10:56:03]Clear old archive folders... [10:56:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:56:03]tlvbuf is 0040BF10 [10:56:03]SAM_PROTO_ClearQueue [10:56:03]wFMCommunicate request_size=4 [10:56:03]MH_SAM_APDU [10:56:03]CAPDU: 80 09 00 00 [10:56:03]Write to MH i2c: E2 08 00 CB 6B 80 09 00 00 00 00 00 00 A8 [10:56:03]Write i2c OK [10:56:03]MH_I2C_Read... [10:56:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:56:03]Read from MH i2c: E2 [10:56:03]MH_I2C_Read... [10:56:03]Read from MH i2c: E2 03 00 [10:56:03]MH_I2C_Read... [10:56:03]Read from MH i2c: E2 03 00 CB 6B 00 90 00 AA [10:56:03]RAPDU: 90 00 [10:56:03]wFMCommunicate OK [10:56:03]SAM_PROTO_ClearQueue done [10:56:03]KKMCreateOFDPacket [10:56:03]OFDProtocolAddRootSTLVToBuf [10:56:03]FM_MakeSignedData [10:56:03]FM_MakeSignedData [10:56:03]SAM_PROTO_SignData [10:56:03]wFMCommunicate request_size=4 [10:56:03]MH_SAM_APDU [10:56:03]CAPDU: 80 0D 01 02 [10:56:03]Write to MH i2c: E2 08 00 CC 6B 80 0D 01 02 00 00 00 00 B0 [10:56:03]Write i2c OK [10:56:03]MH_I2C_Read... [10:56:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:56:03]Read from MH i2c: E2 [10:56:03]MH_I2C_Read... [10:56:03]Read from MH i2c: E2 03 00 [10:56:03]MH_I2C_Read... [10:56:03]Read from MH i2c: E2 03 00 CC 6B 00 90 00 AB [10:56:03]RAPDU: 90 00 [10:56:03]wFMCommunicate OK [10:56:03]wFMCommunicate request_size=255 [10:56:03]MH_SAM_APDU [10:56:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 46 D3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 02 FA 03 00 35 04 06 00 CA [10:56:03]Write to MH i2c: E2 02 01 CD 6B 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 46 D3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 02 FA 03 00 35 04 06 00 CA 00 00 CD [10:56:03]Write i2c OK [10:56:03]MH_I2C_Read... [10:56:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:04]Read from MH i2c: E2 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: E2 03 00 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: E2 03 00 CD 6B 00 90 00 AC [10:56:04]RAPDU: 90 00 [10:56:04]wFMCommunicate OK [10:56:04]wFMCommunicate request_size=10 [10:56:04]MH_SAM_APDU [10:56:04]CAPDU: 80 0D 02 02 05 1A 29 3F 29 1B [10:56:04]Write to MH i2c: E2 0D 00 CE 6B 80 0D 02 02 05 00 1A 29 3F 29 1B 00 00 83 [10:56:04]Write i2c OK [10:56:04]MH_I2C_Read... [10:56:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:04]Read from MH i2c: E2 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: E2 03 00 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: E2 03 00 CE 6B 00 90 00 AD [10:56:04]RAPDU: 90 00 [10:56:04]wFMCommunicate OK [10:56:04]wFMCommunicate request_size=4 [10:56:04]MH_SAM_APDU [10:56:04]CAPDU: 80 0D 03 02 [10:56:04]Write to MH i2c: E2 08 00 CF 6B 80 0D 03 02 00 00 00 00 B5 [10:56:04]Write i2c OK [10:56:04]MH_I2C_Read... [10:56:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:56:04]Read from MH i2c: E2 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: E2 0B 00 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: E2 0B 00 CF 6B 00 FD 2B F0 25 06 B4 6C 85 90 00 9E [10:56:04]RAPDU: FD 2B F0 25 06 B4 6C 85 90 00 [10:56:04]wFMCommunicate OK [10:56:04]SAM_PROTO_SignData done [10:56:04]FM_MakeSignedData done [10:56:04]CreateOFDProtocolMessage [10:56:04]wFMCommunicate request_size=4 [10:56:04]MH_SAM_APDU [10:56:04]CAPDU: 80 11 00 00 [10:56:04]Write to MH i2c: E2 08 00 D0 6B 80 11 00 00 00 00 00 00 B5 [10:56:04]Write i2c OK [10:56:04]MH_I2C_Read... [10:56:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:04]Read from MH i2c: E2 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: E2 17 00 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: E2 17 00 D0 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 02 [10:56:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:56:04]wFMCommunicate OK [10:56:04]CreateOFDProtocolMessage done [10:56:04]OFDSenderStorePacket 260610 [10:56:04]StoreOFDPacket docnum=260610 [10:56:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 3D 41 07 01 FE AE 5A 03 01 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 46 D3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 02 FA 03 00 35 04 06 00 CA 1A 29 3F 29 1B FD 2B F0 25 06 B4 6C 85 [10:56:04]CheckFolder [10:56:04]dirname=/storage/ofd_packets [10:56:04]CheckFolder done [10:56:04]ProducePacketName [10:56:04]name=ofd_packets/00260610 [10:56:04]NVStorageSaveData ofd_packets/00260610 [10:56:04]File name is /storage/ofd_packets/00260610 [10:56:04]Write 301 bytes [10:56:04]NVStorageSaveData done [10:56:04]OFDSenderStorePacket done [10:56:04]KKMCreateOFDPacket done [10:56:04]NVStorageSaveData kkm_last_timestamp [10:56:04]File name is /storage/kkm_last_timestamp [10:56:04]Write 4 bytes [10:56:04]NVStorageSaveData done [10:56:04]ExternCall_PrintAddStr [10:56:04]wPrintStart [10:56:04]Write to MH i2c: 01 00 00 D1 6B 3C [10:56:04]Write i2c OK [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: 01 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: 01 07 00 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: 01 07 00 D1 6B 00 00 00 00 00 FF 0F 51 [10:56:04]RasterBufferAndPrint [10:56:04]line Счет N : (1)1036157 [10:56:04]line ИНН: 02508201610067 [10:56:04]line Контрольно-Кассовый Чек [10:56:04]line ПРОДАЖА [10:56:04]line ТРК (МРК, ГНК) : 23 [10:56:04]line Товар: 2710124500 [10:56:04]line Аи-95-К-5 [10:56:04]line 13.480 * 74.20 [10:56:04]line = 1000.22 [10:56:04]line НДС 12% НСП 1% [10:56:04]line > о реализуемом товаре [10:56:04]line ОКРУГЛЕНИЕ: -0.22 [10:56:04]line ИТОГО: 1000.00 [10:56:04]line Внесено: 1000.00 [10:56:04]line СДАЧА: 0.00 [10:56:04]line НСП 1% : 8.85 [10:56:04]line НДС 12% : 106.22 [10:56:04]line Наличными: 1000.00 [10:56:04]line Безнал.: 0.00 [10:56:04]line Место: АЗС № 94 "Партнер Нефть" [10:56:04]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [10:56:04]line СНО: Общий режим [10:56:04]line Чек 168 18.08.2024 10:56 [10:56:04]line Смена: 449 ФФД: 1.0 [10:56:04]line ЗНМ: 0300000099 [10:56:04]line РНМ: 0000000000091865 [10:56:04]line Версия ККМ: 001 [10:56:04]line ФМ: 0000000000871820 [10:56:04]line ФД: 260610 [10:56:04]line ФПД: 222213709965595 [10:56:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T105606&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260610&fm=222213709965595&tin=02508201610067®Number=0000000000091865&sum=100000 [10:56:04]OFD Sender: Processing packet 260610 [packets to send 192, broken 191] [10:56:04]ProducePacketName [10:56:04]name=ofd_packets/00260610 [10:56:04]OFD Sender: To server: pG, [10:56:04]CommunicateWithHost lk.salyk.kg:30040 [10:56:04]ConnectInit lk.salyk.kg [10:56:04]written 0, free lines is 4095 [10:56:04]Connected sock=10 [10:56: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 30 0F 01 00 00 3D 41 07 01 FE AE 5A 03 01 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 46 D3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 02 FA 03 00 35 04 06 00 CA 1A 29 3F 29 1B FD 2B F0 25 06 B4 6C 85 [10:56: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 30 4F 00 00 00 72 F4 47 00 FB D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 02 FA 03 00 F4 03 04 00 9C 7C C1 66 B6 04 01 00 00 D2 DE 5E 86 59 33 C4 AB [10:56:04]CommunicateWithHost err = 0 [10:56:04]CheckOFDResponse [10:56:04]1017 (14) - 77093643461234 [10:56:04]1041 (16) - 0000000000871820 [10:56:04]1040 (4) - 260610 [10:56:04]1012 (4) - 18.08.2024 04:46 [10:56:04]1206 (1) - 0 [10:56:04]OFD Sender: Remove packet 260610 [10:56:04]ProducePacketName [10:56:04]name=ofd_packets/00260610 [10:56:04]NVStorageDeleteData [10:56:04]Write to MH i2c: 01 00 00 FC 6B 67 [10:56:04]Write i2c OK [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: 01 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: 01 07 00 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: 01 07 00 FC 6B 00 00 00 00 00 71 0C EB [10:56:04]RasterBufferAndPrint [10:56:04]line [10:56:04]line [10:56:04]line [10:56:04]line [10:56:04]line [10:56:04]written 0, free lines is 3187 [10:56:04]MH_Cut [10:56:04]Write to MH i2c: D1 01 00 03 6C 01 41 [10:56:04]Write i2c OK [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: D1 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: D1 01 00 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: D1 01 00 03 6C 00 40 [10:56:04]Write to MH i2c: 01 00 00 04 6C 70 [10:56:04]Write i2c OK [10:56:04]MH_I2C_Read... [10:56:05]OFD Sender: No OFD packet to send [10:56:06]*** Cut start [10:56:06]*** Purtial cut [10:56:06]*** Stage 1: CUTSNS_PIN = 1 [10:56:08]Read from MH i2c: 01 [10:56:08]MH_I2C_Read... [10:56:08]*** Stop cut motor [10:56:08]*** Cut end [10:56:08]Read from MH i2c: 01 07 00 [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: 01 07 00 04 6C 00 00 00 00 00 FF 0F 85 [10:56:08]process_action close_receipt done [10:56:08]requested_data is exist [10:56:08]produce_requested_data [10:56:08]requested_item fm.sn is exist - process it [10:56:08]wFMCommunicate request_size=4 [10:56:08]MH_SAM_APDU [10:56:08]CAPDU: 80 11 00 00 [10:56:08]Write to MH i2c: E2 08 00 05 6C 80 11 00 00 00 00 00 00 EB [10:56:08]Write i2c OK [10:56:08]MH_I2C_Read... [10:56:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:08]Read from MH i2c: E2 [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: E2 17 00 [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: E2 17 00 05 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 38 [10:56:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:56:08]wFMCommunicate OK [10:56:08]requested_item fd.num is exist - process it [10:56:08]SAM_PROTO_GetFieldsCounters [10:56:08]wFMCommunicate request_size=4 [10:56:08]MH_SAM_APDU [10:56:08]CAPDU: 80 13 00 00 [10:56:08]Write to MH i2c: E2 08 00 06 6C 80 13 00 00 00 00 00 00 EE [10:56:08]Write i2c OK [10:56:08]MH_I2C_Read... [10:56:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:56:08]Read from MH i2c: E2 [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: E2 62 00 [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: E2 62 00 06 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 02 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [10:56: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 02 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:56:08]wFMCommunicate OK [10:56:08]SAM_PROTO_GetFieldsCounters done [10:56:08]requested_item shift.num is exist - process it [10:56:08]requested_item shift.opened is exist - process it [10:56:08]req_shift_opened [10:56:08]FM_GetShiftState [10:56:08]SAM_PROTO_GetShiftState [10:56:08]wFMCommunicate request_size=4 [10:56:08]MH_SAM_APDU [10:56:08]CAPDU: 80 13 01 00 [10:56:08]Write to MH i2c: E2 08 00 07 6C 80 13 01 00 00 00 00 00 F0 [10:56:08]Write i2c OK [10:56:08]MH_I2C_Read... [10:56:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:08]Read from MH i2c: E2 [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: E2 0E 00 [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: E2 0E 00 07 6C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 2D [10:56:08]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:56:08]wFMCommunicate OK [10:56:08]SAM_PROTO_GetShiftState done [10:56:08]FM_GetShiftState done [10:56:08]req_shift_opened done [10:56:08]requested_item shift.open_date is exist - process it [10:56:08]req_shift_open_date [10:56:08]req_shift_open_date done [10:56:08]produce_requested_data done [10:56:08]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260610,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [10:56:08]process_action_free close_receipt [10:56:08]json_value_free [10:56:08]json_value_free done [10:56:08]process_json_proto returns [10:56:08]Send response to host [10:56:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260610,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [10:56:08]free response buf [10:56:08]execute_script done [10:56:08]execute_script returns [10:56:08]free content buf [10:56:08]Sock 9.Close socket [10:56:08]Sock 9.Thread stoped [10:56:10]OFD Sender: No OFD packet to send [10:56:15]OFD Sender: No OFD packet to send [10:56:20]OFD Sender: No OFD packet to send [10:56:25]OFD Sender: No OFD packet to send [10:56:30]OFD Sender: No OFD packet to send [10:56:35]OFD Sender: No OFD packet to send [10:56:40]OFD Sender: No OFD packet to send [10:56:45]OFD Sender: No OFD packet to send [10:56:50]OFD Sender: No OFD packet to send [10:56:55]OFD Sender: No OFD packet to send [10:57:00]OFD Sender: No OFD packet to send [10:57:05]OFD Sender: No OFD packet to send [10:57:06]accept exits with 7 [10:57:06]New connection [10:57:06]New thread 3066617188 created [10:57:06]Thread 3066473828 joined [10:57:06]Waiting for new connection... [10:57:06] Sock 7.Parse request [10:57:06]Sock 7.Check first char [10:57:06]Sock 7.First char is OK [10:57:06]request: POST /json_proto HTTP/1.0 [10:57:06]Method: POST [10:57:06]URL: /json_proto [10:57:06]Method is POST - this is cgi request [10:57:06]url: /json_proto [10:57:06]query_string will be loaded in cgi processing [10:57:06]execute_cgi json_proto POST (null) [10:57:06]execute_cgi path=json_proto method=POST [10:57:06]POST find Content-Length [10:57:06]Host: 172.17.55.133:8080 [10:57:06]Content-Length: 678 [10:57:06]Content-Type: application/json [10:57:06] [10:57:06]POST finish read [10:57:06]Found Content-Length = 678 [10:57:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036159", "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" : 74.20, "quantity" : 2.700, "sum" : 200.34, "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" ] } } [10:57:06]execute_script... [10:57: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)1036159", "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" : 74.20, "quantity" : 2.700, "sum" : 200.34, "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" ] } } [10:57:06]POST & json_proto [10:57:06]process_json_proto [10:57:06]json parsed OK: [10:57:06]protocol is kg_v1.0 [10:57:06]action value=close_receipt [10:57:06]process_action close_receipt [10:57:06]cmd_close_receipt [10:57:06]MH_GetDate [10:57:06]Write to MH i2c: F0 00 00 08 6C 63 [10:57:06]Write i2c OK [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: F0 [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: F0 09 00 [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: F0 09 00 08 6C 00 87 D3 C1 66 34 48 D8 65 A6 [10:57:06]GetLastDocTimeStamp 1723978566 [10:57:06]current date 1723978631 [10:57:06]FM_GetShiftState [10:57:06]SAM_PROTO_GetShiftState [10:57:06]wFMCommunicate request_size=4 [10:57:06]MH_SAM_APDU [10:57:06]CAPDU: 80 13 01 00 [10:57:06]Write to MH i2c: E2 08 00 09 6C 80 13 01 00 00 00 00 00 F2 [10:57:06]Write i2c OK [10:57:06]MH_I2C_Read... [10:57:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:06]Read from MH i2c: E2 [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: E2 0E 00 [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: E2 0E 00 09 6C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 2F [10:57:06]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:57:06]wFMCommunicate OK [10:57:06]SAM_PROTO_GetShiftState done [10:57:06]FM_GetShiftState done [10:57:06]opened in 1723940556 [10:57:06]opened+sec_in_day 1724026956 [10:57:06]quantity*price = 20034 [10:57:06]sum+1 = 20035 [10:57:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 169 18.08.2024 10:57 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260611 ФПД: 237769332251612 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T105711&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260611&fm=237769332251612&tin=02508201610067®Number=0000000000091865&sum=20000 [10:57:07]StoreToDocumentArchive [10:57:07]shift 449 fd 260611 [10:57:07]save to /storage/0449/doc_00260611 [10:57:07]save last doc name /storage/0449/doc_00260611 to /storage/kkm_last_doc_name [10:57:07]save OK [10:57:07]Clear old archive folders... [10:57:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:57:07]tlvbuf is 0036EEC0 [10:57:07]SAM_PROTO_ClearQueue [10:57:07]wFMCommunicate request_size=4 [10:57:07]MH_SAM_APDU [10:57:07]CAPDU: 80 09 00 00 [10:57:07]Write to MH i2c: E2 08 00 16 6C 80 09 00 00 00 00 00 00 F4 [10:57:07]Write i2c OK [10:57:07]MH_I2C_Read... [10:57:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:57:07]Read from MH i2c: E2 [10:57:07]MH_I2C_Read... [10:57:07]Read from MH i2c: E2 03 00 [10:57:07]MH_I2C_Read... [10:57:07]Read from MH i2c: E2 03 00 16 6C 00 90 00 F6 [10:57:07]RAPDU: 90 00 [10:57:07]wFMCommunicate OK [10:57:07]SAM_PROTO_ClearQueue done [10:57:07]KKMCreateOFDPacket [10:57:07]OFDProtocolAddRootSTLVToBuf [10:57:07]FM_MakeSignedData [10:57:07]FM_MakeSignedData [10:57:07]SAM_PROTO_SignData [10:57:07]wFMCommunicate request_size=4 [10:57:07]MH_SAM_APDU [10:57:07]CAPDU: 80 0D 01 02 [10:57:07]Write to MH i2c: E2 08 00 17 6C 80 0D 01 02 00 00 00 00 FC [10:57:07]Write i2c OK [10:57:07]MH_I2C_Read... [10:57:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:57:08]Read from MH i2c: E2 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 03 00 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 03 00 17 6C 00 90 00 F7 [10:57:08]RAPDU: 90 00 [10:57:08]wFMCommunicate OK [10:57:08]wFMCommunicate request_size=255 [10:57:08]MH_SAM_APDU [10:57: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 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 A9 00 00 00 F4 03 04 00 87 D3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 03 FA 03 00 35 04 06 00 D8 [10:57:08]Write to MH i2c: E2 02 01 18 6C 80 0D 02 02 FA 00 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 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 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 A9 00 00 00 F4 03 04 00 87 D3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 03 FA 03 00 35 04 06 00 D8 00 00 EE [10:57:08]Write i2c OK [10:57:08]MH_I2C_Read... [10:57:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:08]Read from MH i2c: E2 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 03 00 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 03 00 18 6C 00 90 00 F8 [10:57:08]RAPDU: 90 00 [10:57:08]wFMCommunicate OK [10:57:08]wFMCommunicate request_size=10 [10:57:08]MH_SAM_APDU [10:57:08]CAPDU: 80 0D 02 02 05 3F FC 96 5B DC [10:57:08]Write to MH i2c: E2 0D 00 19 6C 80 0D 02 02 05 00 3F FC 96 5B DC 00 00 11 [10:57:08]Write i2c OK [10:57:08]MH_I2C_Read... [10:57:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:08]Read from MH i2c: E2 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 03 00 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 03 00 19 6C 00 90 00 F9 [10:57:08]RAPDU: 90 00 [10:57:08]wFMCommunicate OK [10:57:08]wFMCommunicate request_size=4 [10:57:08]MH_SAM_APDU [10:57:08]CAPDU: 80 0D 03 02 [10:57:08]Write to MH i2c: E2 08 00 1A 6C 80 0D 03 02 00 00 00 00 01 [10:57:08]Write i2c OK [10:57:08]MH_I2C_Read... [10:57:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:57:08]Read from MH i2c: E2 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 0B 00 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 0B 00 1A 6C 00 F3 FD 8C C6 3A 89 1A 2E 90 00 4F [10:57:08]RAPDU: F3 FD 8C C6 3A 89 1A 2E 90 00 [10:57:08]wFMCommunicate OK [10:57:08]SAM_PROTO_SignData done [10:57:08]FM_MakeSignedData done [10:57:08]CreateOFDProtocolMessage [10:57:08]wFMCommunicate request_size=4 [10:57:08]MH_SAM_APDU [10:57:08]CAPDU: 80 11 00 00 [10:57:08]Write to MH i2c: E2 08 00 1B 6C 80 11 00 00 00 00 00 00 01 [10:57:08]Write i2c OK [10:57:08]MH_I2C_Read... [10:57:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:08]Read from MH i2c: E2 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 17 00 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 17 00 1B 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 4E [10:57:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:57:08]wFMCommunicate OK [10:57:08]CreateOFDProtocolMessage done [10:57:08]OFDSenderStorePacket 260611 [10:57:08]StoreOFDPacket docnum=260611 [10:57:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 76 56 07 01 7D 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 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 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 A9 00 00 00 F4 03 04 00 87 D3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 03 FA 03 00 35 04 06 00 D8 3F FC 96 5B DC F3 FD 8C C6 3A 89 1A 2E [10:57:08]CheckFolder [10:57:08]dirname=/storage/ofd_packets [10:57:08]CheckFolder done [10:57:08]ProducePacketName [10:57:08]name=ofd_packets/00260611 [10:57:08]NVStorageSaveData ofd_packets/00260611 [10:57:08]File name is /storage/ofd_packets/00260611 [10:57:08]Write 301 bytes [10:57:08]NVStorageSaveData done [10:57:08]OFDSenderStorePacket done [10:57:08]KKMCreateOFDPacket done [10:57:08]NVStorageSaveData kkm_last_timestamp [10:57:08]File name is /storage/kkm_last_timestamp [10:57:08]Write 4 bytes [10:57:08]NVStorageSaveData done [10:57:08]ExternCall_PrintAddStr [10:57:08]wPrintStart [10:57:08]Write to MH i2c: 01 00 00 1C 6C 88 [10:57:08]Write i2c OK [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: 01 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: 01 07 00 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: 01 07 00 1C 6C 00 00 00 00 00 FF 0F 9D [10:57:08]RasterBufferAndPrint [10:57:08]line Счет N : (1)1036159 [10:57:08]line ИНН: 02508201610067 [10:57:08]line Контрольно-Кассовый Чек [10:57:08]line ПРОДАЖА [10:57:08]line ТРК (МРК, ГНК) : 23 [10:57:08]line Товар: 2710124500 [10:57:08]line Аи-95-К-5 [10:57:08]line 2.700 * 74.20 [10:57:08]line = 200.34 [10:57:08]line НДС 12% НСП 1% [10:57:08]line > о реализуемом товаре [10:57:08]line ОКРУГЛЕНИЕ: -0.34 [10:57:08]line ИТОГО: 200.00 [10:57:08]line Внесено: 200.00 [10:57:08]line СДАЧА: 0.00 [10:57:08]line НСП 1% : 1.77 [10:57:08]line НДС 12% : 21.27 [10:57:08]line Наличными: 200.00 [10:57:08]line Безнал.: 0.00 [10:57:08]line Место: АЗС № 94 "Партнер Нефть" [10:57:08]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [10:57:08]line СНО: Общий режим [10:57:08]line Чек 169 18.08.2024 10:57 [10:57:08]line Смена: 449 ФФД: 1.0 [10:57:08]line ЗНМ: 0300000099 [10:57:08]line РНМ: 0000000000091865 [10:57:08]line Версия ККМ: 001 [10:57:08]line ФМ: 0000000000871820 [10:57:08]line ФД: 260611 [10:57:08]line ФПД: 237769332251612 [10:57:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T105711&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260611&fm=237769332251612&tin=02508201610067®Number=0000000000091865&sum=20000 [10:57:08]written 0, free lines is 4095 [10:57:08]OFD Sender: Processing packet 260611 [packets to send 192, broken 191] [10:57:08]ProducePacketName [10:57:08]name=ofd_packets/00260611 [10:57:08]OFD Sender: To server: pG, [10:57:08]CommunicateWithHost lk.salyk.kg:30040 [10:57:08]ConnectInit lk.salyk.kg [10:57:08]Connected sock=9 [10:57: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 30 0F 01 00 00 76 56 07 01 7D 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 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 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 A9 00 00 00 F4 03 04 00 87 D3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 03 FA 03 00 35 04 06 00 D8 3F FC 96 5B DC F3 FD 8C C6 3A 89 1A 2E [10:57: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 30 4F 00 00 00 B1 94 47 00 DF 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 30 10 04 04 00 03 FA 03 00 F4 03 04 00 DC 7C C1 66 B6 04 01 00 00 3D CF F7 97 EB E4 09 88 [10:57:08]CommunicateWithHost err = 0 [10:57:08]CheckOFDResponse [10:57:08]1017 (14) - 77093643461234 [10:57:08]1041 (16) - 0000000000871820 [10:57:08]1040 (4) - 260611 [10:57:08]1012 (4) - 18.08.2024 04:47 [10:57:08]1206 (1) - 0 [10:57:08]OFD Sender: Remove packet 260611 [10:57:08]ProducePacketName [10:57:08]name=ofd_packets/00260611 [10:57:08]NVStorageDeleteData [10:57:08]Write to MH i2c: 01 00 00 47 6C B3 [10:57:08]Write i2c OK [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: 01 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: 01 07 00 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: 01 07 00 47 6C 00 00 00 00 00 6D 0C 33 [10:57:08]RasterBufferAndPrint [10:57:08]line [10:57:08]line [10:57:08]line [10:57:08]line [10:57:08]line [10:57:08]written 0, free lines is 3185 [10:57:08]MH_Cut [10:57:08]Write to MH i2c: D1 01 00 4E 6C 01 8C [10:57:08]Write i2c OK [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: D1 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: D1 01 00 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: D1 01 00 4E 6C 00 8B [10:57:08]Write to MH i2c: 01 00 00 4F 6C BB [10:57:08]Write i2c OK [10:57:08]MH_I2C_Read... [10:57:09]OFD Sender: No OFD packet to send [10:57:10]*** Cut start [10:57:10]*** Purtial cut [10:57:10]*** Stage 1: CUTSNS_PIN = 1 [10:57:12]Read from MH i2c: 01 [10:57:12]MH_I2C_Read... [10:57:12]*** Stop cut motor [10:57:12]*** Cut end [10:57:12]Read from MH i2c: 01 07 00 [10:57:12]MH_I2C_Read... [10:57:12]Read from MH i2c: 01 07 00 4F 6C 00 00 00 00 00 FF 0F D0 [10:57:12]process_action close_receipt done [10:57:12]requested_data is exist [10:57:12]produce_requested_data [10:57:12]requested_item fm.sn is exist - process it [10:57:12]wFMCommunicate request_size=4 [10:57:12]MH_SAM_APDU [10:57:12]CAPDU: 80 11 00 00 [10:57:12]Write to MH i2c: E2 08 00 50 6C 80 11 00 00 00 00 00 00 36 [10:57:12]Write i2c OK [10:57:12]MH_I2C_Read... [10:57:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:12]Read from MH i2c: E2 [10:57:12]MH_I2C_Read... [10:57:12]Read from MH i2c: E2 17 00 [10:57:12]MH_I2C_Read... [10:57:12]Read from MH i2c: E2 17 00 50 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 83 [10:57:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:57:12]wFMCommunicate OK [10:57:12]requested_item fd.num is exist - process it [10:57:12]SAM_PROTO_GetFieldsCounters [10:57:12]wFMCommunicate request_size=4 [10:57:12]MH_SAM_APDU [10:57:12]CAPDU: 80 13 00 00 [10:57:12]Write to MH i2c: E2 08 00 51 6C 80 13 00 00 00 00 00 00 39 [10:57:12]Write i2c OK [10:57:12]MH_I2C_Read... [10:57:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:12]Read from MH i2c: E2 [10:57:12]MH_I2C_Read... [10:57:12]Read from MH i2c: E2 62 00 [10:57:12]MH_I2C_Read... [10:57:12]Read from MH i2c: E2 62 00 51 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 03 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [10:57: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 03 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:57:12]wFMCommunicate OK [10:57:12]SAM_PROTO_GetFieldsCounters done [10:57:12]requested_item shift.num is exist - process it [10:57:12]requested_item shift.opened is exist - process it [10:57:12]req_shift_opened [10:57:12]FM_GetShiftState [10:57:12]SAM_PROTO_GetShiftState [10:57:12]wFMCommunicate request_size=4 [10:57:12]MH_SAM_APDU [10:57:12]CAPDU: 80 13 01 00 [10:57:12]Write to MH i2c: E2 08 00 52 6C 80 13 01 00 00 00 00 00 3B [10:57:12]Write i2c OK [10:57:12]MH_I2C_Read... [10:57:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:12]Read from MH i2c: E2 [10:57:12]MH_I2C_Read... [10:57:12]Read from MH i2c: E2 0E 00 [10:57:12]MH_I2C_Read... [10:57:12]Read from MH i2c: E2 0E 00 52 6C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 78 [10:57:12]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:57:12]wFMCommunicate OK [10:57:12]SAM_PROTO_GetShiftState done [10:57:12]FM_GetShiftState done [10:57:12]req_shift_opened done [10:57:12]requested_item shift.open_date is exist - process it [10:57:12]req_shift_open_date [10:57:12]req_shift_open_date done [10:57:12]produce_requested_data done [10:57:12]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260611,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [10:57:12]process_action_free close_receipt [10:57:12]json_value_free [10:57:12]json_value_free done [10:57:12]process_json_proto returns [10:57:12]Send response to host [10:57:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260611,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [10:57:12]free response buf [10:57:12]execute_script done [10:57:12]execute_script returns [10:57:12]free content buf [10:57:12]Sock 7.Close socket [10:57:12]Sock 7.Thread stoped [10:57:14]OFD Sender: No OFD packet to send [10:57:19]OFD Sender: No OFD packet to send [10:57:24]OFD Sender: No OFD packet to send [10:57:29]OFD Sender: No OFD packet to send [10:57:34]OFD Sender: No OFD packet to send [10:57:39]OFD Sender: No OFD packet to send [10:57:44]OFD Sender: No OFD packet to send [10:57:49]OFD Sender: No OFD packet to send [10:57:54]OFD Sender: No OFD packet to send [10:57:59]OFD Sender: No OFD packet to send [10:58:04]OFD Sender: No OFD packet to send [10:58:09]OFD Sender: No OFD packet to send [10:58:14]OFD Sender: No OFD packet to send [10:58:19]OFD Sender: No OFD packet to send [10:58:24]OFD Sender: No OFD packet to send [10:58:29]OFD Sender: No OFD packet to send [10:58:34]OFD Sender: No OFD packet to send [10:58:39]OFD Sender: No OFD packet to send [10:58:44]OFD Sender: No OFD packet to send [10:58:49]OFD Sender: No OFD packet to send [10:58:54]OFD Sender: No OFD packet to send [10:58:59]OFD Sender: No OFD packet to send [10:59:04]OFD Sender: No OFD packet to send [10:59:06]accept exits with 10 [10:59:06]New connection [10:59:06]New thread 3066473828 created [10:59:06]Thread 3066617188 joined [10:59:06]Waiting for new connection... [10:59:06] Sock 10.Parse request [10:59:06]Sock 10.Check first char [10:59:06]Sock 10.First char is OK [10:59:06]request: POST /json_proto HTTP/1.0 [10:59:06]Method: POST [10:59:06]URL: /json_proto [10:59:06]Method is POST - this is cgi request [10:59:06]url: /json_proto [10:59:06]query_string will be loaded in cgi processing [10:59:06]execute_cgi json_proto POST (null) [10:59:06]execute_cgi path=json_proto method=POST [10:59:06]POST find Content-Length [10:59:06]Host: 172.17.55.133:8080 [10:59:06]Content-Length: 804 [10:59:06]Content-Type: application/json [10:59:06] [10:59:06]POST finish read [10:59:06]Found Content-Length = 804 [10:59:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 36.700, "sum" : 2488.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" : 2488.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:06]execute_script... [10:59: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)1036158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 36.700, "sum" : 2488.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" : 2488.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:06]POST & json_proto [10:59:06]process_json_proto [10:59:06]json parsed OK: [10:59:06]protocol is kg_v1.0 [10:59:06]action value=close_receipt [10:59:06]process_action close_receipt [10:59:06]cmd_close_receipt [10:59:06]MH_GetDate [10:59:06]Write to MH i2c: F0 00 00 53 6C AE [10:59:06]Write i2c OK [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: F0 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: F0 09 00 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: F0 09 00 53 6C 00 FF D3 C1 66 34 48 D8 65 69 [10:59:06]GetLastDocTimeStamp 1723978631 [10:59:06]current date 1723978751 [10:59:06]FM_GetShiftState [10:59:06]SAM_PROTO_GetShiftState [10:59:06]wFMCommunicate request_size=4 [10:59:06]MH_SAM_APDU [10:59:06]CAPDU: 80 13 01 00 [10:59:06]Write to MH i2c: E2 08 00 54 6C 80 13 01 00 00 00 00 00 3D [10:59:06]Write i2c OK [10:59:06]MH_I2C_Read... [10:59:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:06]Read from MH i2c: E2 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: E2 0E 00 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: E2 0E 00 54 6C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 7A [10:59:06]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:59:06]wFMCommunicate OK [10:59:06]SAM_PROTO_GetShiftState done [10:59:06]FM_GetShiftState done [10:59:06]opened in 1723940556 [10:59:06]opened+sec_in_day 1724026956 [10:59:06]quantity*price = 248826 [10:59:06]sum+1 = 248827 [10:59:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2488.26 НСП 1% : 22.02 НДС 12% : 264.24 Наличными: 0.00 Безнал.: 2488.26 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 170 18.08.2024 10:59 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260612 ФПД: 252073683312987 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T105911&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260612&fm=252073683312987&tin=02508201610067®Number=0000000000091865&sum=248826 [10:59:08]StoreToDocumentArchive [10:59:08]shift 449 fd 260612 [10:59:08]save to /storage/0449/doc_00260612 [10:59:08]save last doc name /storage/0449/doc_00260612 to /storage/kkm_last_doc_name [10:59:08]save OK [10:59:08]Clear old archive folders... [10:59:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:08]tlvbuf is 004D8080 [10:59:08]SAM_PROTO_ClearQueue [10:59:08]wFMCommunicate request_size=4 [10:59:08]MH_SAM_APDU [10:59:08]CAPDU: 80 09 00 00 [10:59:08]Write to MH i2c: E2 08 00 61 6C 80 09 00 00 00 00 00 00 3F [10:59:08]Write i2c OK [10:59:08]MH_I2C_Read... [10:59:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:08]Read from MH i2c: E2 [10:59:08]MH_I2C_Read... [10:59:08]Read from MH i2c: E2 03 00 [10:59:08]MH_I2C_Read... [10:59:08]Read from MH i2c: E2 03 00 61 6C 00 90 00 41 [10:59:08]RAPDU: 90 00 [10:59:08]wFMCommunicate OK [10:59:08]SAM_PROTO_ClearQueue done [10:59:08]KKMCreateOFDPacket [10:59:08]OFDProtocolAddRootSTLVToBuf [10:59:08]FM_MakeSignedData [10:59:08]FM_MakeSignedData [10:59:08]SAM_PROTO_SignData [10:59:08]wFMCommunicate request_size=4 [10:59:08]MH_SAM_APDU [10:59:08]CAPDU: 80 0D 01 02 [10:59:08]Write to MH i2c: E2 08 00 62 6C 80 0D 01 02 00 00 00 00 47 [10:59:08]Write i2c OK [10:59:08]MH_I2C_Read... [10:59:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:08]Read from MH i2c: E2 [10:59:08]MH_I2C_Read... [10:59:08]Read from MH i2c: E2 03 00 [10:59:08]MH_I2C_Read... [10:59:08]Read from MH i2c: E2 03 00 62 6C 00 90 00 42 [10:59:08]RAPDU: 90 00 [10:59:08]wFMCommunicate OK [10:59:08]wFMCommunicate request_size=255 [10:59:08]MH_SAM_APDU [10:59:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 8F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FA CB 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FA CB 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FA CB 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 FF D3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 04 FA 03 00 35 04 06 00 E5 [10:59:08]Write to MH i2c: E2 02 01 63 6C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 8F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FA CB 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FA CB 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FA CB 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 FF D3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 04 FA 03 00 35 04 06 00 E5 00 00 B4 [10:59:08]Write i2c OK [10:59:08]MH_I2C_Read... [10:59:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:08]Read from MH i2c: E2 [10:59:08]MH_I2C_Read... [10:59:08]Read from MH i2c: E2 03 00 [10:59:08]MH_I2C_Read... [10:59:08]Read from MH i2c: E2 03 00 63 6C 00 90 00 43 [10:59:08]RAPDU: 90 00 [10:59:08]wFMCommunicate OK [10:59:08]wFMCommunicate request_size=10 [10:59:08]MH_SAM_APDU [10:59:08]CAPDU: 80 0D 02 02 05 42 7A 59 E1 5B [10:59:08]Write to MH i2c: E2 0D 00 64 6C 80 0D 02 02 05 00 42 7A 59 E1 5B 00 00 A5 [10:59:08]Write i2c OK [10:59:08]MH_I2C_Read... [10:59:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:08]Read from MH i2c: E2 [10:59:08]MH_I2C_Read... [10:59:08]Read from MH i2c: E2 03 00 [10:59:08]MH_I2C_Read... [10:59:08]Read from MH i2c: E2 03 00 64 6C 00 90 00 44 [10:59:08]RAPDU: 90 00 [10:59:08]wFMCommunicate OK [10:59:08]wFMCommunicate request_size=4 [10:59:08]MH_SAM_APDU [10:59:08]CAPDU: 80 0D 03 02 [10:59:08]Write to MH i2c: E2 08 00 65 6C 80 0D 03 02 00 00 00 00 4C [10:59:08]Write i2c OK [10:59:08]MH_I2C_Read... [10:59:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:08]Read from MH i2c: E2 [10:59:08]MH_I2C_Read... [10:59:08]Read from MH i2c: E2 0B 00 [10:59:08]MH_I2C_Read... [10:59:08]Read from MH i2c: E2 0B 00 65 6C 00 8A F1 2F C6 62 74 97 6A 90 00 94 [10:59:08]RAPDU: 8A F1 2F C6 62 74 97 6A 90 00 [10:59:08]wFMCommunicate OK [10:59:08]SAM_PROTO_SignData done [10:59:08]FM_MakeSignedData done [10:59:08]CreateOFDProtocolMessage [10:59:08]wFMCommunicate request_size=4 [10:59:08]MH_SAM_APDU [10:59:08]CAPDU: 80 11 00 00 [10:59:08]Write to MH i2c: E2 08 00 66 6C 80 11 00 00 00 00 00 00 4C [10:59:08]Write i2c OK [10:59:08]MH_I2C_Read... [10:59:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:08]Read from MH i2c: E2 [10:59:08]MH_I2C_Read... [10:59:08]Read from MH i2c: E2 17 00 [10:59:08]MH_I2C_Read... [10:59:08]Read from MH i2c: E2 17 00 66 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 99 [10:59:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:59:08]wFMCommunicate OK [10:59:08]CreateOFDProtocolMessage done [10:59:08]OFDSenderStorePacket 260612 [10:59:08]StoreOFDPacket docnum=260612 [10:59:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 D3 B8 07 01 51 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 8F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FA CB 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FA CB 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FA CB 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 FF D3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 04 FA 03 00 35 04 06 00 E5 42 7A 59 E1 5B 8A F1 2F C6 62 74 97 6A [10:59:08]CheckFolder [10:59:08]dirname=/storage/ofd_packets [10:59:08]CheckFolder done [10:59:08]ProducePacketName [10:59:08]name=ofd_packets/00260612 [10:59:08]NVStorageSaveData ofd_packets/00260612 [10:59:08]File name is /storage/ofd_packets/00260612 [10:59:08]Write 301 bytes [10:59:08]NVStorageSaveData done [10:59:08]OFDSenderStorePacket done [10:59:08]KKMCreateOFDPacket done [10:59:08]NVStorageSaveData kkm_last_timestamp [10:59:08]File name is /storage/kkm_last_timestamp [10:59:08]Write 4 bytes [10:59:08]NVStorageSaveData done [10:59:08]ExternCall_PrintAddStr [10:59:08]wPrintStart [10:59:08]Write to MH i2c: 01 00 00 67 6C D3 [10:59:08]Write i2c OK [10:59:08]MH_I2C_Read... [10:59:08]Read from MH i2c: 01 [10:59:08]MH_I2C_Read... [10:59:08]Read from MH i2c: 01 07 00 [10:59:08]MH_I2C_Read... [10:59:08]Read from MH i2c: 01 07 00 67 6C 00 00 00 00 00 FF 0F E8 [10:59:08]RasterBufferAndPrint [10:59:08]line Счет N : (1)1036158 [10:59:08]line ИНН: 02508201610067 [10:59:08]line Контрольно-Кассовый Чек [10:59:08]line ПРОДАЖА [10:59:08]line ТРК (МРК, ГНК) : 12 [10:59:08]line Товар: 2710124130 [10:59:08]line Аи-92-К-5 [10:59:08]line 36.700 * 67.80 [10:59:08]line = 2488.26 [10:59:08]line НДС 12% НСП 1% [10:59:08]line > о реализуемом товаре [10:59:08]line ИТОГО: 2488.26 [10:59:08]line НСП 1% : 22.02 [10:59:08]line НДС 12% : 264.24 [10:59:08]line Наличными: 0.00 [10:59:08]line Безнал.: 2488.26 [10:59:08]line Место: АЗС № 94 "Партнер Нефть" [10:59:08]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [10:59:08]line СНО: Общий режим [10:59:08]line Чек 170 18.08.2024 10:59 [10:59:08]line Смена: 449 ФФД: 1.0 [10:59:08]line ЗНМ: 0300000099 [10:59:08]line РНМ: 0000000000091865 [10:59:08]line Версия ККМ: 001 [10:59:08]line Платежная система: O! деньги [10:59:08]line ФМ: 0000000000871820 [10:59:08]line ФД: 260612 [10:59:08]line ФПД: 252073683312987 [10:59:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T105911&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260612&fm=252073683312987&tin=02508201610067®Number=0000000000091865&sum=248826 [10:59:08]OFD Sender: Processing packet 260612 [packets to send 192, broken 191] [10:59:08]ProducePacketName [10:59:08]name=ofd_packets/00260612 [10:59:08]OFD Sender: To server: pG, [10:59:08]CommunicateWithHost lk.salyk.kg:30040 [10:59:08]ConnectInit lk.salyk.kg [10:59:08]written 0, free lines is 4095 [10:59:08]Connected sock=9 [10:59: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 30 0F 01 00 00 D3 B8 07 01 51 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 8F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FA CB 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FA CB 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FA CB 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 FF D3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 04 FA 03 00 35 04 06 00 E5 42 7A 59 E1 5B 8A F1 2F C6 62 74 97 6A [10:59: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 30 4F 00 00 00 BA D2 47 00 1D E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 04 FA 03 00 F4 03 04 00 54 7D C1 66 B6 04 01 00 00 4F B1 F3 3E D3 9C DC F7 [10:59:09]CommunicateWithHost err = 0 [10:59:09]CheckOFDResponse [10:59:09]1017 (14) - 77093643461234 [10:59:09]1041 (16) - 0000000000871820 [10:59:09]1040 (4) - 260612 [10:59:09]1012 (4) - 18.08.2024 04:49 [10:59:09]1206 (1) - 0 [10:59:09]OFD Sender: Remove packet 260612 [10:59:09]ProducePacketName [10:59:09]name=ofd_packets/00260612 [10:59:09]NVStorageDeleteData [10:59:09]Write to MH i2c: 01 00 00 91 6C FD [10:59:09]Write i2c OK [10:59:09]MH_I2C_Read... [10:59:09]Read from MH i2c: 01 [10:59:09]MH_I2C_Read... [10:59:09]Read from MH i2c: 01 07 00 [10:59:09]MH_I2C_Read... [10:59:09]Read from MH i2c: 01 07 00 91 6C 00 00 00 00 00 8A 0C 9A [10:59:09]RasterBufferAndPrint [10:59:09]line [10:59:09]line [10:59:09]line [10:59:09]line [10:59:09]line [10:59:09]written 0, free lines is 3213 [10:59:09]MH_Cut [10:59:09]Write to MH i2c: D1 01 00 98 6C 01 D6 [10:59:09]Write i2c OK [10:59:09]MH_I2C_Read... [10:59:09]Read from MH i2c: D1 [10:59:09]MH_I2C_Read... [10:59:09]Read from MH i2c: D1 01 00 [10:59:09]MH_I2C_Read... [10:59:09]Read from MH i2c: D1 01 00 98 6C 00 D5 [10:59:09]Write to MH i2c: 01 00 00 99 6C 05 [10:59:09]Write i2c OK [10:59:09]MH_I2C_Read... [10:59:09]OFD Sender: No OFD packet to send [10:59:10]*** Cut start [10:59:10]*** Purtial cut [10:59:10]*** Stage 1: CUTSNS_PIN = 1 [10:59:12]Read from MH i2c: 01 [10:59:12]MH_I2C_Read... [10:59:12]*** Stop cut motor [10:59:12]*** Cut end [10:59:12]Read from MH i2c: 01 07 00 [10:59:12]MH_I2C_Read... [10:59:12]Read from MH i2c: 01 07 00 99 6C 00 00 00 00 00 FF 0F 1A [10:59:12]process_action close_receipt done [10:59:12]requested_data is exist [10:59:12]produce_requested_data [10:59:12]requested_item fm.sn is exist - process it [10:59:12]wFMCommunicate request_size=4 [10:59:12]MH_SAM_APDU [10:59:12]CAPDU: 80 11 00 00 [10:59:12]Write to MH i2c: E2 08 00 9A 6C 80 11 00 00 00 00 00 00 80 [10:59:12]Write i2c OK [10:59:12]MH_I2C_Read... [10:59:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:12]Read from MH i2c: E2 [10:59:12]MH_I2C_Read... [10:59:12]Read from MH i2c: E2 17 00 [10:59:12]MH_I2C_Read... [10:59:12]Read from MH i2c: E2 17 00 9A 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 CD [10:59:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [10:59:12]wFMCommunicate OK [10:59:12]requested_item fd.num is exist - process it [10:59:12]SAM_PROTO_GetFieldsCounters [10:59:12]wFMCommunicate request_size=4 [10:59:12]MH_SAM_APDU [10:59:12]CAPDU: 80 13 00 00 [10:59:12]Write to MH i2c: E2 08 00 9B 6C 80 13 00 00 00 00 00 00 83 [10:59:12]Write i2c OK [10:59:12]MH_I2C_Read... [10:59:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:12]Read from MH i2c: E2 [10:59:12]MH_I2C_Read... [10:59:12]Read from MH i2c: E2 62 00 [10:59:12]MH_I2C_Read... [10:59:12]Read from MH i2c: E2 62 00 9B 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 04 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [10:59: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 04 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:59:12]wFMCommunicate OK [10:59:12]SAM_PROTO_GetFieldsCounters done [10:59:12]requested_item shift.num is exist - process it [10:59:12]requested_item shift.opened is exist - process it [10:59:12]req_shift_opened [10:59:12]FM_GetShiftState [10:59:12]SAM_PROTO_GetShiftState [10:59:12]wFMCommunicate request_size=4 [10:59:12]MH_SAM_APDU [10:59:12]CAPDU: 80 13 01 00 [10:59:12]Write to MH i2c: E2 08 00 9C 6C 80 13 01 00 00 00 00 00 85 [10:59:12]Write i2c OK [10:59:12]MH_I2C_Read... [10:59:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:12]Read from MH i2c: E2 [10:59:12]MH_I2C_Read... [10:59:12]Read from MH i2c: E2 0E 00 [10:59:12]MH_I2C_Read... [10:59:12]Read from MH i2c: E2 0E 00 9C 6C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C2 [10:59:12]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [10:59:12]wFMCommunicate OK [10:59:12]SAM_PROTO_GetShiftState done [10:59:12]FM_GetShiftState done [10:59:12]req_shift_opened done [10:59:12]requested_item shift.open_date is exist - process it [10:59:12]req_shift_open_date [10:59:12]req_shift_open_date done [10:59:12]produce_requested_data done [10:59:12]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260612,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [10:59:12]process_action_free close_receipt [10:59:12]json_value_free [10:59:12]json_value_free done [10:59:12]process_json_proto returns [10:59:12]Send response to host [10:59:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260612,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [10:59:12]free response buf [10:59:12]execute_script done [10:59:12]execute_script returns [10:59:12]free content buf [10:59:12]Sock 10.Close socket [10:59:12]Sock 10.Thread stoped [10:59:14]OFD Sender: No OFD packet to send [10:59:19]OFD Sender: No OFD packet to send [10:59:24]OFD Sender: No OFD packet to send [10:59:29]OFD Sender: No OFD packet to send [10:59:34]OFD Sender: No OFD packet to send [10:59:39]OFD Sender: No OFD packet to send [10:59:44]OFD Sender: No OFD packet to send [10:59:49]OFD Sender: No OFD packet to send [10:59:54]OFD Sender: No OFD packet to send [10:59:59]OFD Sender: No OFD packet to send [11:00:04]OFD Sender: No OFD packet to send [11:00:09]OFD Sender: No OFD packet to send [11:00:14]OFD Sender: No OFD packet to send [11:00:19]OFD Sender: No OFD packet to send [11:00:24]OFD Sender: No OFD packet to send [11:00:29]OFD Sender: No OFD packet to send [11:00:34]OFD Sender: No OFD packet to send [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:03]accept exits with 7 [11:01:03]New connection [11:01:03]New thread 3066617188 created [11:01:03]Thread 3066473828 joined [11:01:03]Waiting for new connection... [11:01:03] Sock 7.Parse request [11:01:03]Sock 7.Check first char [11:01:03]Sock 7.First char is OK [11:01:03]request: POST /json_proto HTTP/1.0 [11:01:03]Method: POST [11:01:03]URL: /json_proto [11:01:03]Method is POST - this is cgi request [11:01:03]url: /json_proto [11:01:03]query_string will be loaded in cgi processing [11:01:03]execute_cgi json_proto POST (null) [11:01:03]execute_cgi path=json_proto method=POST [11:01:03]POST find Content-Length [11:01:03]Host: 172.17.55.133:8080 [11:01:03]Content-Length: 804 [11:01:03]Content-Type: application/json [11:01:03] [11:01:03]POST finish read [11:01:03]Found Content-Length = 804 [11:01:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 23.600, "sum" : 1600.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1600.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:03]execute_script... [11:01: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)1036160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 23.600, "sum" : 1600.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1600.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:03]POST & json_proto [11:01:03]process_json_proto [11:01:03]json parsed OK: [11:01:03]protocol is kg_v1.0 [11:01:03]action value=close_receipt [11:01:03]process_action close_receipt [11:01:03]cmd_close_receipt [11:01:03]MH_GetDate [11:01:03]Write to MH i2c: F0 00 00 9D 6C F8 [11:01:03]Write i2c OK [11:01:03]MH_I2C_Read... [11:01:03]Read from MH i2c: F0 [11:01:03]MH_I2C_Read... [11:01:03]Read from MH i2c: F0 09 00 [11:01:03]MH_I2C_Read... [11:01:03]Read from MH i2c: F0 09 00 9D 6C 00 73 D4 C1 66 34 48 D8 65 28 [11:01:03]GetLastDocTimeStamp 1723978751 [11:01:03]current date 1723978867 [11:01:03]FM_GetShiftState [11:01:03]SAM_PROTO_GetShiftState [11:01:03]wFMCommunicate request_size=4 [11:01:03]MH_SAM_APDU [11:01:03]CAPDU: 80 13 01 00 [11:01:03]Write to MH i2c: E2 08 00 9E 6C 80 13 01 00 00 00 00 00 87 [11:01:03]Write i2c OK [11:01:03]MH_I2C_Read... [11:01:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:03]Read from MH i2c: E2 [11:01:03]MH_I2C_Read... [11:01:03]Read from MH i2c: E2 0E 00 [11:01:03]MH_I2C_Read... [11:01:03]Read from MH i2c: E2 0E 00 9E 6C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C4 [11:01:03]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:01:03]wFMCommunicate OK [11:01:03]SAM_PROTO_GetShiftState done [11:01:03]FM_GetShiftState done [11:01:03]opened in 1723940556 [11:01:03]opened+sec_in_day 1724026956 [11:01:03]quantity*price = 160008 [11:01:03]sum+1 = 160009 [11:01:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1600.08 НСП 1% : 14.16 НДС 12% : 169.92 Наличными: 0.00 Безнал.: 1600.08 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 171 18.08.2024 11:01 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260613 ФПД: 67959462377940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T110108&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260613&fm=67959462377940&tin=02508201610067®Number=0000000000091865&sum=160008 [11:01:04]StoreToDocumentArchive [11:01:04]shift 449 fd 260613 [11:01:04]save to /storage/0449/doc_00260613 [11:01:04]save last doc name /storage/0449/doc_00260613 to /storage/kkm_last_doc_name [11:01:04]save OK [11:01:04]Clear old archive folders... [11:01:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:01:04]tlvbuf is 003F5390 [11:01:04]SAM_PROTO_ClearQueue [11:01:04]wFMCommunicate request_size=4 [11:01:04]MH_SAM_APDU [11:01:04]CAPDU: 80 09 00 00 [11:01:04]Write to MH i2c: E2 08 00 AB 6C 80 09 00 00 00 00 00 00 89 [11:01:04]Write i2c OK [11:01:04]MH_I2C_Read... [11:01:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:04]Read from MH i2c: E2 [11:01:04]MH_I2C_Read... [11:01:04]Read from MH i2c: E2 03 00 [11:01:04]MH_I2C_Read... [11:01:04]Read from MH i2c: E2 03 00 AB 6C 00 90 00 8B [11:01:04]RAPDU: 90 00 [11:01:04]wFMCommunicate OK [11:01:04]SAM_PROTO_ClearQueue done [11:01:04]KKMCreateOFDPacket [11:01:04]OFDProtocolAddRootSTLVToBuf [11:01:04]FM_MakeSignedData [11:01:04]FM_MakeSignedData [11:01:04]SAM_PROTO_SignData [11:01:04]wFMCommunicate request_size=4 [11:01:04]MH_SAM_APDU [11:01:04]CAPDU: 80 0D 01 02 [11:01:04]Write to MH i2c: E2 08 00 AC 6C 80 0D 01 02 00 00 00 00 91 [11:01:04]Write i2c OK [11:01:04]MH_I2C_Read... [11:01:04]OFD Sender: No OFD packet to send [11:01:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:04]Read from MH i2c: E2 [11:01:04]MH_I2C_Read... [11:01:04]Read from MH i2c: E2 03 00 [11:01:04]MH_I2C_Read... [11:01:04]Read from MH i2c: E2 03 00 AC 6C 00 90 00 8C [11:01:04]RAPDU: 90 00 [11:01:04]wFMCommunicate OK [11:01:04]wFMCommunicate request_size=255 [11:01:04]MH_SAM_APDU [11:01:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 5C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 08 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 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 60 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 74 D4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 05 FA 03 00 35 04 06 00 3D [11:01:04]Write to MH i2c: E2 02 01 AD 6C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 5C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 08 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 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 60 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 74 D4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 05 FA 03 00 35 04 06 00 3D 00 00 76 [11:01:04]Write i2c OK [11:01:04]MH_I2C_Read... [11:01:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:05]Read from MH i2c: E2 [11:01:05]MH_I2C_Read... [11:01:05]Read from MH i2c: E2 03 00 [11:01:05]MH_I2C_Read... [11:01:05]Read from MH i2c: E2 03 00 AD 6C 00 90 00 8D [11:01:05]RAPDU: 90 00 [11:01:05]wFMCommunicate OK [11:01:05]wFMCommunicate request_size=10 [11:01:05]MH_SAM_APDU [11:01:05]CAPDU: 80 0D 02 02 05 CF 0B 9D 39 D4 [11:01:05]Write to MH i2c: E2 0D 00 AE 6C 80 0D 02 02 05 00 CF 0B 9D 39 D4 00 00 22 [11:01:05]Write i2c OK [11:01:05]MH_I2C_Read... [11:01:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:05]Read from MH i2c: E2 [11:01:05]MH_I2C_Read... [11:01:05]Read from MH i2c: E2 03 00 [11:01:05]MH_I2C_Read... [11:01:05]Read from MH i2c: E2 03 00 AE 6C 00 90 00 8E [11:01:05]RAPDU: 90 00 [11:01:05]wFMCommunicate OK [11:01:05]wFMCommunicate request_size=4 [11:01:05]MH_SAM_APDU [11:01:05]CAPDU: 80 0D 03 02 [11:01:05]Write to MH i2c: E2 08 00 AF 6C 80 0D 03 02 00 00 00 00 96 [11:01:05]Write i2c OK [11:01:05]MH_I2C_Read... [11:01:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:05]Read from MH i2c: E2 [11:01:05]MH_I2C_Read... [11:01:05]Read from MH i2c: E2 0B 00 [11:01:05]MH_I2C_Read... [11:01:05]Read from MH i2c: E2 0B 00 AF 6C 00 E8 A7 90 3A 1E 30 2F 05 90 00 72 [11:01:05]RAPDU: E8 A7 90 3A 1E 30 2F 05 90 00 [11:01:05]wFMCommunicate OK [11:01:05]SAM_PROTO_SignData done [11:01:05]FM_MakeSignedData done [11:01:05]CreateOFDProtocolMessage [11:01:05]wFMCommunicate request_size=4 [11:01:05]MH_SAM_APDU [11:01:05]CAPDU: 80 11 00 00 [11:01:05]Write to MH i2c: E2 08 00 B0 6C 80 11 00 00 00 00 00 00 96 [11:01:05]Write i2c OK [11:01:05]MH_I2C_Read... [11:01:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:05]Read from MH i2c: E2 [11:01:05]MH_I2C_Read... [11:01:05]Read from MH i2c: E2 17 00 [11:01:05]MH_I2C_Read... [11:01:05]Read from MH i2c: E2 17 00 B0 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E3 [11:01:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:01:05]wFMCommunicate OK [11:01:05]CreateOFDProtocolMessage done [11:01:05]OFDSenderStorePacket 260613 [11:01:05]StoreOFDPacket docnum=260613 [11: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 30 0F 01 00 00 F4 00 07 01 B2 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 5C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 08 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 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 60 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 74 D4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 05 FA 03 00 35 04 06 00 3D CF 0B 9D 39 D4 E8 A7 90 3A 1E 30 2F 05 [11:01:05]CheckFolder [11:01:05]dirname=/storage/ofd_packets [11:01:05]CheckFolder done [11:01:05]ProducePacketName [11:01:05]name=ofd_packets/00260613 [11:01:05]NVStorageSaveData ofd_packets/00260613 [11:01:05]File name is /storage/ofd_packets/00260613 [11:01:05]Write 301 bytes [11:01:05]NVStorageSaveData done [11:01:05]OFDSenderStorePacket done [11:01:05]KKMCreateOFDPacket done [11:01:05]NVStorageSaveData kkm_last_timestamp [11:01:05]File name is /storage/kkm_last_timestamp [11:01:05]Write 4 bytes [11:01:05]NVStorageSaveData done [11:01:05]ExternCall_PrintAddStr [11:01:05]wPrintStart [11:01:05]Write to MH i2c: 01 00 00 B1 6C 1D [11:01:05]Write i2c OK [11:01:05]MH_I2C_Read... [11:01:05]Read from MH i2c: 01 [11:01:05]MH_I2C_Read... [11:01:05]Read from MH i2c: 01 07 00 [11:01:05]MH_I2C_Read... [11:01:05]Read from MH i2c: 01 07 00 B1 6C 00 00 00 00 00 FF 0F 32 [11:01:05]RasterBufferAndPrint [11:01:05]line Счет N : (1)1036160 [11:01:05]line ИНН: 02508201610067 [11:01:05]line Контрольно-Кассовый Чек [11:01:05]line ПРОДАЖА [11:01:05]line ТРК (МРК, ГНК) : 32 [11:01:05]line Товар: 2710124130 [11:01:05]line Аи-92-К-5 [11:01:05]line 23.600 * 67.80 [11:01:05]line = 1600.08 [11:01:05]line НДС 12% НСП 1% [11:01:05]line > о реализуемом товаре [11:01:05]line ИТОГО: 1600.08 [11:01:05]line НСП 1% : 14.16 [11:01:05]line НДС 12% : 169.92 [11:01:05]line Наличными: 0.00 [11:01:05]line Безнал.: 1600.08 [11:01:05]line Место: АЗС № 94 "Партнер Нефть" [11:01:05]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:01:05]line СНО: Общий режим [11:01:05]line Чек 171 18.08.2024 11:01 [11:01:05]line Смена: 449 ФФД: 1.0 [11:01:05]line ЗНМ: 0300000099 [11:01:05]line РНМ: 0000000000091865 [11:01:05]line Версия ККМ: 001 [11:01:05]line Платежная система: O! деньги [11:01:05]line ФМ: 0000000000871820 [11:01:05]line ФД: 260613 [11:01:05]line ФПД: 67959462377940 [11:01:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T110108&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260613&fm=67959462377940&tin=02508201610067®Number=0000000000091865&sum=160008 [11:01:05]written 0, free lines is 4095 [11:01:05]OFD Sender: Processing packet 260613 [packets to send 192, broken 191] [11:01:05]ProducePacketName [11:01:05]name=ofd_packets/00260613 [11:01:05]OFD Sender: To server: pG, [11:01:05]CommunicateWithHost lk.salyk.kg:30040 [11:01:05]ConnectInit lk.salyk.kg [11:01:05]Connected sock=9 [11:01: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 30 0F 01 00 00 F4 00 07 01 B2 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 5C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 08 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 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 60 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 74 D4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 05 FA 03 00 35 04 06 00 3D CF 0B 9D 39 D4 E8 A7 90 3A 1E 30 2F 05 [11:01: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 30 4F 00 00 00 0C 3D 47 00 16 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 05 FA 03 00 F4 03 04 00 C9 7D C1 66 B6 04 01 00 00 CC 8E CB 3B EB CC 74 C2 [11:01:05]CommunicateWithHost err = 0 [11:01:05]CheckOFDResponse [11:01:05]1017 (14) - 77093643461234 [11:01:05]1041 (16) - 0000000000871820 [11:01:05]1040 (4) - 260613 [11:01:05]1012 (4) - 18.08.2024 04:51 [11:01:05]1206 (1) - 0 [11:01:05]OFD Sender: Remove packet 260613 [11:01:05]ProducePacketName [11:01:05]name=ofd_packets/00260613 [11:01:05]NVStorageDeleteData [11:01:05]Write to MH i2c: 01 00 00 DB 6C 47 [11:01:05]Write i2c OK [11:01:05]MH_I2C_Read... [11:01:05]Read from MH i2c: 01 [11:01:05]MH_I2C_Read... [11:01:05]Read from MH i2c: 01 07 00 [11:01:05]MH_I2C_Read... [11:01:05]Read from MH i2c: 01 07 00 DB 6C 00 00 00 00 00 7D 0C D7 [11:01:05]RasterBufferAndPrint [11:01:05]line [11:01:05]line [11:01:05]line [11:01:05]line [11:01:05]line [11:01:05]written 0, free lines is 3201 [11:01:05]MH_Cut [11:01:05]Write to MH i2c: D1 01 00 E2 6C 01 20 [11:01:05]Write i2c OK [11:01:05]MH_I2C_Read... [11:01:05]Read from MH i2c: D1 [11:01:05]MH_I2C_Read... [11:01:05]Read from MH i2c: D1 01 00 [11:01:05]MH_I2C_Read... [11:01:05]Read from MH i2c: D1 01 00 E2 6C 00 1F [11:01:05]Write to MH i2c: 01 00 00 E3 6C 4F [11:01:05]Write i2c OK [11:01:05]MH_I2C_Read... [11:01:06]OFD Sender: No OFD packet to send [11:01:06]*** Cut start [11:01:06]*** Purtial cut [11:01:06]*** Stage 1: CUTSNS_PIN = 1 [11:01:08]Read from MH i2c: 01 [11:01:08]MH_I2C_Read... [11:01:08]*** Stop cut motor [11:01:09]*** Cut end [11:01:09]Read from MH i2c: 01 07 00 [11:01:09]MH_I2C_Read... [11:01:09]Read from MH i2c: 01 07 00 E3 6C 00 00 00 00 00 FF 0F 64 [11:01:09]process_action close_receipt done [11:01:09]requested_data is exist [11:01:09]produce_requested_data [11:01:09]requested_item fm.sn is exist - process it [11:01:09]wFMCommunicate request_size=4 [11:01:09]MH_SAM_APDU [11:01:09]CAPDU: 80 11 00 00 [11:01:09]Write to MH i2c: E2 08 00 E4 6C 80 11 00 00 00 00 00 00 CA [11:01:09]Write i2c OK [11:01:09]MH_I2C_Read... [11:01:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:09]Read from MH i2c: E2 [11:01:09]MH_I2C_Read... [11:01:09]Read from MH i2c: E2 17 00 [11:01:09]MH_I2C_Read... [11:01:09]Read from MH i2c: E2 17 00 E4 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 17 [11:01:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:01:09]wFMCommunicate OK [11:01:09]requested_item fd.num is exist - process it [11:01:09]SAM_PROTO_GetFieldsCounters [11:01:09]wFMCommunicate request_size=4 [11:01:09]MH_SAM_APDU [11:01:09]CAPDU: 80 13 00 00 [11:01:09]Write to MH i2c: E2 08 00 E5 6C 80 13 00 00 00 00 00 00 CD [11:01:09]Write i2c OK [11:01:09]MH_I2C_Read... [11:01:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:09]Read from MH i2c: E2 [11:01:09]MH_I2C_Read... [11:01:09]Read from MH i2c: E2 62 00 [11:01:09]MH_I2C_Read... [11:01:09]Read from MH i2c: E2 62 00 E5 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 05 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [11:01: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 05 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:01:09]wFMCommunicate OK [11:01:09]SAM_PROTO_GetFieldsCounters done [11:01:09]requested_item shift.num is exist - process it [11:01:09]requested_item shift.opened is exist - process it [11:01:09]req_shift_opened [11:01:09]FM_GetShiftState [11:01:09]SAM_PROTO_GetShiftState [11:01:09]wFMCommunicate request_size=4 [11:01:09]MH_SAM_APDU [11:01:09]CAPDU: 80 13 01 00 [11:01:09]Write to MH i2c: E2 08 00 E6 6C 80 13 01 00 00 00 00 00 CF [11:01:09]Write i2c OK [11:01:09]MH_I2C_Read... [11:01:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:09]Read from MH i2c: E2 [11:01:09]MH_I2C_Read... [11:01:09]Read from MH i2c: E2 0E 00 [11:01:09]MH_I2C_Read... [11:01:09]Read from MH i2c: E2 0E 00 E6 6C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 0C [11:01:09]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:01:09]wFMCommunicate OK [11:01:09]SAM_PROTO_GetShiftState done [11:01:09]FM_GetShiftState done [11:01:09]req_shift_opened done [11:01:09]requested_item shift.open_date is exist - process it [11:01:09]req_shift_open_date [11:01:09]req_shift_open_date done [11:01:09]produce_requested_data done [11:01:09]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260613,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:01:09]process_action_free close_receipt [11:01:09]json_value_free [11:01:09]json_value_free done [11:01:09]process_json_proto returns [11:01:09]Send response to host [11:01:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260613,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:01:09]free response buf [11:01:09]execute_script done [11:01:09]execute_script returns [11:01:09]free content buf [11:01:09]Sock 7.Close socket [11:01:09]Sock 7.Thread stoped [11:01:09]accept exits with 10 [11:01:09]New connection [11:01:09]New thread 3066473828 created [11:01:09]Thread 3066617188 joined [11:01:09]Waiting for new connection... [11:01:09] Sock 10.Parse request [11:01:09]Sock 10.Check first char [11:01:09]Sock 10.First char is OK [11:01:09]request: POST /json_proto HTTP/1.0 [11:01:09]Method: POST [11:01:09]URL: /json_proto [11:01:09]Method is POST - this is cgi request [11:01:09]url: /json_proto [11:01:09]query_string will be loaded in cgi processing [11:01:09]execute_cgi json_proto POST (null) [11:01:09]execute_cgi path=json_proto method=POST [11:01:09]POST find Content-Length [11:01:09]Host: 172.17.55.133:8080 [11:01:09]Content-Length: 820 [11:01:09]Content-Type: application/json [11:01:09] [11:01:09]POST finish read [11:01:09]Found Content-Length = 820 [11:01:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036161", "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" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:09]execute_script... [11:01:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036161", "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" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:09]POST & json_proto [11:01:09]process_json_proto [11:01:09]json parsed OK: [11:01:09]protocol is kg_v1.0 [11:01:09]action value=close_receipt [11:01:09]process_action close_receipt [11:01:09]cmd_close_receipt [11:01:09]MH_GetDate [11:01:09]Write to MH i2c: F0 00 00 E7 6C 42 [11:01:09]Write i2c OK [11:01:09]MH_I2C_Read... [11:01:09]Read from MH i2c: F0 [11:01:09]MH_I2C_Read... [11:01:09]Read from MH i2c: F0 09 00 [11:01:09]MH_I2C_Read... [11:01:09]Read from MH i2c: F0 09 00 E7 6C 00 79 D4 C1 66 34 48 D8 65 78 [11:01:09]GetLastDocTimeStamp 1723978868 [11:01:09]current date 1723978873 [11:01:09]FM_GetShiftState [11:01:09]SAM_PROTO_GetShiftState [11:01:09]wFMCommunicate request_size=4 [11:01:09]MH_SAM_APDU [11:01:09]CAPDU: 80 13 01 00 [11:01:09]Write to MH i2c: E2 08 00 E8 6C 80 13 01 00 00 00 00 00 D1 [11:01:09]Write i2c OK [11:01:09]MH_I2C_Read... [11:01:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:09]Read from MH i2c: E2 [11:01:09]MH_I2C_Read... [11:01:09]Read from MH i2c: E2 0E 00 [11:01:09]MH_I2C_Read... [11:01:09]Read from MH i2c: E2 0E 00 E8 6C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 0E [11:01:09]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:01:09]wFMCommunicate OK [11:01:09]SAM_PROTO_GetShiftState done [11:01:09]FM_GetShiftState done [11:01:09]opened in 1723940556 [11:01:09]opened+sec_in_day 1724026956 [11:01:09]quantity*price = 150032 [11:01:09]sum+1 = 150033 [11:01:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.32 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.32 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 172 18.08.2024 11:01 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871820 ФД: 260614 ФПД: 129878330020146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T110113&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260614&fm=129878330020146&tin=02508201610067®Number=0000000000091865&sum=150032 [11:01:10]StoreToDocumentArchive [11:01:10]shift 449 fd 260614 [11:01:10]save to /storage/0449/doc_00260614 [11:01:10]save last doc name /storage/0449/doc_00260614 to /storage/kkm_last_doc_name [11:01:10]save OK [11:01:10]Clear old archive folders... [11:01:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:01:10]tlvbuf is 0036C7A0 [11:01:10]SAM_PROTO_ClearQueue [11:01:10]wFMCommunicate request_size=4 [11:01:10]MH_SAM_APDU [11:01:10]CAPDU: 80 09 00 00 [11:01:10]Write to MH i2c: E2 08 00 F5 6C 80 09 00 00 00 00 00 00 D3 [11:01:10]Write i2c OK [11:01:10]MH_I2C_Read... [11:01:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:10]Read from MH i2c: E2 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: E2 03 00 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: E2 03 00 F5 6C 00 90 00 D5 [11:01:10]RAPDU: 90 00 [11:01:10]wFMCommunicate OK [11:01:10]SAM_PROTO_ClearQueue done [11:01:10]KKMCreateOFDPacket [11:01:10]OFDProtocolAddRootSTLVToBuf [11:01:10]FM_MakeSignedData [11:01:10]FM_MakeSignedData [11:01:10]SAM_PROTO_SignData [11:01:10]wFMCommunicate request_size=4 [11:01:10]MH_SAM_APDU [11:01:10]CAPDU: 80 0D 01 02 [11:01:10]Write to MH i2c: E2 08 00 F6 6C 80 0D 01 02 00 00 00 00 DB [11:01:10]Write i2c OK [11:01:10]MH_I2C_Read... [11:01:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:10]Read from MH i2c: E2 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: E2 03 00 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: E2 03 00 F6 6C 00 90 00 D6 [11:01:10]RAPDU: 90 00 [11:01:10]wFMCommunicate OK [11:01:10]wFMCommunicate request_size=255 [11:01:10]MH_SAM_APDU [11:01: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 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 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 79 D4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 06 FA 03 00 35 04 06 00 76 [11:01:11]Write to MH i2c: E2 02 01 F7 6C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 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 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 79 D4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 06 FA 03 00 35 04 06 00 76 00 00 68 [11:01:11]OFD Sender: No OFD packet to send [11:01:11]Write i2c OK [11:01:11]MH_I2C_Read... [11:01:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:11]Read from MH i2c: E2 [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: E2 03 00 [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: E2 03 00 F7 6C 00 90 00 D7 [11:01:11]RAPDU: 90 00 [11:01:11]wFMCommunicate OK [11:01:11]wFMCommunicate request_size=10 [11:01:11]MH_SAM_APDU [11:01:11]CAPDU: 80 0D 02 02 05 1F A7 B9 91 32 [11:01:11]Write to MH i2c: E2 0D 00 F8 6C 80 0D 02 02 05 00 1F A7 B9 91 32 00 00 2A [11:01:11]Write i2c OK [11:01:11]MH_I2C_Read... [11:01:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:11]Read from MH i2c: E2 [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: E2 03 00 [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: E2 03 00 F8 6C 00 90 00 D8 [11:01:11]RAPDU: 90 00 [11:01:11]wFMCommunicate OK [11:01:11]wFMCommunicate request_size=4 [11:01:11]MH_SAM_APDU [11:01:11]CAPDU: 80 0D 03 02 [11:01:11]Write to MH i2c: E2 08 00 F9 6C 80 0D 03 02 00 00 00 00 E0 [11:01:11]Write i2c OK [11:01:11]MH_I2C_Read... [11:01:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:11]Read from MH i2c: E2 [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: E2 0B 00 [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: E2 0B 00 F9 6C 00 BB 1A 42 A4 CA 33 DB 6B 90 00 DF [11:01:11]RAPDU: BB 1A 42 A4 CA 33 DB 6B 90 00 [11:01:11]wFMCommunicate OK [11:01:11]SAM_PROTO_SignData done [11:01:11]FM_MakeSignedData done [11:01:11]CreateOFDProtocolMessage [11:01:11]wFMCommunicate request_size=4 [11:01:11]MH_SAM_APDU [11:01:11]CAPDU: 80 11 00 00 [11:01:11]Write to MH i2c: E2 08 00 FA 6C 80 11 00 00 00 00 00 00 E0 [11:01:11]Write i2c OK [11:01:11]MH_I2C_Read... [11:01:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:11]Read from MH i2c: E2 [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: E2 17 00 [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: E2 17 00 FA 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 2D [11:01:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:01:11]wFMCommunicate OK [11:01:11]CreateOFDProtocolMessage done [11:01:11]OFDSenderStorePacket 260614 [11:01:11]StoreOFDPacket docnum=260614 [11:01:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 91 E2 07 01 1F 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 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 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 79 D4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 06 FA 03 00 35 04 06 00 76 1F A7 B9 91 32 BB 1A 42 A4 CA 33 DB 6B [11:01:11]CheckFolder [11:01:11]dirname=/storage/ofd_packets [11:01:11]CheckFolder done [11:01:11]ProducePacketName [11:01:11]name=ofd_packets/00260614 [11:01:11]NVStorageSaveData ofd_packets/00260614 [11:01:11]File name is /storage/ofd_packets/00260614 [11:01:11]Write 301 bytes [11:01:11]NVStorageSaveData done [11:01:11]OFDSenderStorePacket done [11:01:11]KKMCreateOFDPacket done [11:01:11]NVStorageSaveData kkm_last_timestamp [11:01:11]File name is /storage/kkm_last_timestamp [11:01:11]Write 4 bytes [11:01:11]NVStorageSaveData done [11:01:11]ExternCall_PrintAddStr [11:01:11]wPrintStart [11:01:11]Write to MH i2c: 01 00 00 FB 6C 67 [11:01:11]Write i2c OK [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: 01 [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: 01 07 00 [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: 01 07 00 FB 6C 00 00 00 00 00 FF 0F 7C [11:01:11]RasterBufferAndPrint [11:01:11]line Счет N : (1)1036161 [11:01:11]line ИНН: 02508201610067 [11:01:11]line Контрольно-Кассовый Чек [11:01:11]line ПРОДАЖА [11:01:11]line ТРК (МРК, ГНК) : 23 [11:01:11]line Товар: 2710124500 [11:01:11]line Аи-95-К-5 [11:01:11]line 20.220 * 74.20 [11:01:11]line = 1500.32 [11:01:11]line НДС 12% НСП 1% [11:01:11]line > о реализуемом товаре [11:01:11]line ИТОГО: 1500.32 [11:01:11]line НСП 1% : 13.28 [11:01:11]line НДС 12% : 159.33 [11:01:11]line Наличными: 0.00 [11:01:11]line Безнал.: 1500.32 [11:01:11]line Место: АЗС № 94 "Партнер Нефть" [11:01:11]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:01:11]line СНО: Общий режим [11:01:11]line Чек 172 18.08.2024 11:01 [11:01:11]line Смена: 449 ФФД: 1.0 [11:01:11]line ЗНМ: 0300000099 [11:01:11]line РНМ: 0000000000091865 [11:01:11]line Версия ККМ: 001 [11:01:11]line Платежная система: Бакай Банк [11:01:11]line ФМ: 0000000000871820 [11:01:11]line ФД: 260614 [11:01:11]line ФПД: 129878330020146 [11:01:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T110113&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260614&fm=129878330020146&tin=02508201610067®Number=0000000000091865&sum=150032 [11:01:11]written 0, free lines is 4095 [11:01:11]OFD Sender: Processing packet 260614 [packets to send 192, broken 191] [11:01:11]ProducePacketName [11:01:11]name=ofd_packets/00260614 [11:01:11]OFD Sender: To server: pG, [11:01:11]CommunicateWithHost lk.salyk.kg:30040 [11:01:11]ConnectInit lk.salyk.kg [11:01:11]Connected sock=9 [11:01:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 91 E2 07 01 1F 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 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 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 79 D4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 06 FA 03 00 35 04 06 00 76 1F A7 B9 91 32 BB 1A 42 A4 CA 33 DB 6B [11:01:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 4F 00 00 00 53 5B 47 00 D3 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 30 10 04 04 00 06 FA 03 00 F4 03 04 00 CF 7D C1 66 B6 04 01 00 00 68 27 94 1E 6D DE F8 D2 [11:01:12]CommunicateWithHost err = 0 [11:01:12]CheckOFDResponse [11:01:12]1017 (14) - 77093643461234 [11:01:12]1041 (16) - 0000000000871820 [11:01:12]1040 (4) - 260614 [11:01:12]1012 (4) - 18.08.2024 04:51 [11:01:12]1206 (1) - 0 [11:01:12]OFD Sender: Remove packet 260614 [11:01:12]ProducePacketName [11:01:12]name=ofd_packets/00260614 [11:01:12]NVStorageDeleteData [11:01:12]Write to MH i2c: 01 00 00 25 6D 92 [11:01:12]Write i2c OK [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: 01 [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: 01 07 00 [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: 01 07 00 25 6D 00 00 00 00 00 8B 0C 30 [11:01:12]RasterBufferAndPrint [11:01:12]line [11:01:12]line [11:01:12]line [11:01:12]line [11:01:12]line [11:01:12]written 0, free lines is 3218 [11:01:12]MH_Cut [11:01:12]Write to MH i2c: D1 01 00 2C 6D 01 6B [11:01:12]Write i2c OK [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: D1 [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: D1 01 00 [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: D1 01 00 2C 6D 00 6A [11:01:12]Write to MH i2c: 01 00 00 2D 6D 9A [11:01:12]Write i2c OK [11:01:12]MH_I2C_Read... [11:01:12]OFD Sender: No OFD packet to send [11:01:13]*** Cut start [11:01:13]*** Purtial cut [11:01:13]*** Stage 1: CUTSNS_PIN = 1 [11:01:15]Read from MH i2c: 01 [11:01:15]MH_I2C_Read... [11:01:15]*** Stop cut motor [11:01:15]*** Cut end [11:01:15]Read from MH i2c: 01 07 00 [11:01:15]MH_I2C_Read... [11:01:15]Read from MH i2c: 01 07 00 2D 6D 00 00 00 00 00 FF 0F AF [11:01:15]process_action close_receipt done [11:01:15]requested_data is exist [11:01:15]produce_requested_data [11:01:15]requested_item fm.sn is exist - process it [11:01:15]wFMCommunicate request_size=4 [11:01:15]MH_SAM_APDU [11:01:15]CAPDU: 80 11 00 00 [11:01:15]Write to MH i2c: E2 08 00 2E 6D 80 11 00 00 00 00 00 00 15 [11:01:15]Write i2c OK [11:01:15]MH_I2C_Read... [11:01:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:15]Read from MH i2c: E2 [11:01:15]MH_I2C_Read... [11:01:15]Read from MH i2c: E2 17 00 [11:01:15]MH_I2C_Read... [11:01:15]Read from MH i2c: E2 17 00 2E 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 62 [11:01:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:01:15]wFMCommunicate OK [11:01:15]requested_item fd.num is exist - process it [11:01:15]SAM_PROTO_GetFieldsCounters [11:01:15]wFMCommunicate request_size=4 [11:01:15]MH_SAM_APDU [11:01:15]CAPDU: 80 13 00 00 [11:01:15]Write to MH i2c: E2 08 00 2F 6D 80 13 00 00 00 00 00 00 18 [11:01:15]Write i2c OK [11:01:15]MH_I2C_Read... [11:01:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:15]Read from MH i2c: E2 [11:01:15]MH_I2C_Read... [11:01:15]Read from MH i2c: E2 62 00 [11:01:15]MH_I2C_Read... [11:01:15]Read from MH i2c: E2 62 00 2F 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 06 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [11:01: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 06 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:01:15]wFMCommunicate OK [11:01:15]SAM_PROTO_GetFieldsCounters done [11:01:15]requested_item shift.num is exist - process it [11:01:15]requested_item shift.opened is exist - process it [11:01:15]req_shift_opened [11:01:15]FM_GetShiftState [11:01:15]SAM_PROTO_GetShiftState [11:01:15]wFMCommunicate request_size=4 [11:01:15]MH_SAM_APDU [11:01:15]CAPDU: 80 13 01 00 [11:01:15]Write to MH i2c: E2 08 00 30 6D 80 13 01 00 00 00 00 00 1A [11:01:15]Write i2c OK [11:01:15]MH_I2C_Read... [11:01:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:15]Read from MH i2c: E2 [11:01:15]MH_I2C_Read... [11:01:15]Read from MH i2c: E2 0E 00 [11:01:15]MH_I2C_Read... [11:01:15]Read from MH i2c: E2 0E 00 30 6D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 57 [11:01:15]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:01:15]wFMCommunicate OK [11:01:15]SAM_PROTO_GetShiftState done [11:01:15]FM_GetShiftState done [11:01:15]req_shift_opened done [11:01:15]requested_item shift.open_date is exist - process it [11:01:15]req_shift_open_date [11:01:15]req_shift_open_date done [11:01:15]produce_requested_data done [11:01:15]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260614,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:01:15]process_action_free close_receipt [11:01:15]json_value_free [11:01:15]json_value_free done [11:01:15]process_json_proto returns [11:01:15]Send response to host [11:01:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260614,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:01:15]free response buf [11:01:15]execute_script done [11:01:15]execute_script returns [11:01:15]free content buf [11:01:15]Sock 10.Close socket [11:01:15]Sock 10.Thread stoped [11:01:16]accept exits with 7 [11:01:16]New connection [11:01:16]New thread 3066617188 created [11:01:16]Thread 3066473828 joined [11:01:16]Waiting for new connection... [11:01:16] Sock 7.Parse request [11:01:16]Sock 7.Check first char [11:01:16]Sock 7.First char is OK [11:01:16]request: POST /json_proto HTTP/1.0 [11:01:16]Method: POST [11:01:16]URL: /json_proto [11:01:16]Method is POST - this is cgi request [11:01:16]url: /json_proto [11:01:16]query_string will be loaded in cgi processing [11:01:16]execute_cgi json_proto POST (null) [11:01:16]execute_cgi path=json_proto method=POST [11:01:16]POST find Content-Length [11:01:16]Host: 172.17.55.133:8080 [11:01:16]Content-Length: 683 [11:01:16]Content-Type: application/json [11:01:16] [11:01:16]POST finish read [11:01:16]Found Content-Length = 683 [11:01:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:16]execute_script... [11:01: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)1036162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:16]POST & json_proto [11:01:16]process_json_proto [11:01:16]json parsed OK: [11:01:16]protocol is kg_v1.0 [11:01:16]action value=close_receipt [11:01:16]process_action close_receipt [11:01:16]cmd_close_receipt [11:01:16]MH_GetDate [11:01:16]Write to MH i2c: F0 00 00 31 6D 8D [11:01:16]Write i2c OK [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: F0 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: F0 09 00 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: F0 09 00 31 6D 00 80 D4 C1 66 34 48 D8 65 CA [11:01:16]GetLastDocTimeStamp 1723978873 [11:01:16]current date 1723978880 [11:01:16]FM_GetShiftState [11:01:16]SAM_PROTO_GetShiftState [11:01:16]wFMCommunicate request_size=4 [11:01:16]MH_SAM_APDU [11:01:16]CAPDU: 80 13 01 00 [11:01:16]Write to MH i2c: E2 08 00 32 6D 80 13 01 00 00 00 00 00 1C [11:01:16]Write i2c OK [11:01:16]MH_I2C_Read... [11:01:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:16]Read from MH i2c: E2 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: E2 0E 00 [11:01:16]MH_I2C_Read... [11:01:16]Read from MH i2c: E2 0E 00 32 6D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 59 [11:01:16]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:01:16]wFMCommunicate OK [11:01:16]SAM_PROTO_GetShiftState done [11:01:16]FM_GetShiftState done [11:01:16]opened in 1723940556 [11:01:16]opened+sec_in_day 1724026956 [11:01:16]quantity*price = 100005 [11:01:16]sum+1 = 100006 [11:01:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 173 18.08.2024 11:01 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260615 ФПД: 48429893106356 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T110120&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260615&fm=48429893106356&tin=02508201610067®Number=0000000000091865&sum=100000 [11:01:17]StoreToDocumentArchive [11:01:17]shift 449 fd 260615 [11:01:17]save to /storage/0449/doc_00260615 [11:01:17]save last doc name /storage/0449/doc_00260615 to /storage/kkm_last_doc_name [11:01:17]save OK [11:01:17]Clear old archive folders... [11:01:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:01:17]tlvbuf is 005D00E0 [11:01:17]SAM_PROTO_ClearQueue [11:01:17]wFMCommunicate request_size=4 [11:01:17]MH_SAM_APDU [11:01:17]CAPDU: 80 09 00 00 [11:01:17]Write to MH i2c: E2 08 00 3F 6D 80 09 00 00 00 00 00 00 1E [11:01:17]Write i2c OK [11:01:17]MH_I2C_Read... [11:01:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:17]Read from MH i2c: E2 [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: E2 03 00 [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: E2 03 00 3F 6D 00 90 00 20 [11:01:17]RAPDU: 90 00 [11:01:17]wFMCommunicate OK [11:01:17]SAM_PROTO_ClearQueue done [11:01:17]KKMCreateOFDPacket [11:01:17]OFDProtocolAddRootSTLVToBuf [11:01:17]FM_MakeSignedData [11:01:17]FM_MakeSignedData [11:01:17]SAM_PROTO_SignData [11:01:17]wFMCommunicate request_size=4 [11:01:17]MH_SAM_APDU [11:01:17]CAPDU: 80 0D 01 02 [11:01:17]Write to MH i2c: E2 08 00 40 6D 80 0D 01 02 00 00 00 00 26 [11:01:17]Write i2c OK [11:01:17]MH_I2C_Read... [11:01:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:17]Read from MH i2c: E2 [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: E2 03 00 [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: E2 03 00 40 6D 00 90 00 21 [11:01:17]RAPDU: 90 00 [11:01:17]wFMCommunicate OK [11:01:17]wFMCommunicate request_size=255 [11:01:17]MH_SAM_APDU [11:01:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 80 D4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 07 FA 03 00 35 04 06 00 2C [11:01:17]Write to MH i2c: E2 02 01 41 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 80 D4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 07 FA 03 00 35 04 06 00 2C 00 00 4C [11:01:17]Write i2c OK [11:01:17]MH_I2C_Read... [11:01:17]OFD Sender: No OFD packet to send [11:01:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:17]Read from MH i2c: E2 [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: E2 03 00 [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: E2 03 00 41 6D 00 90 00 22 [11:01:17]RAPDU: 90 00 [11:01:17]wFMCommunicate OK [11:01:17]wFMCommunicate request_size=10 [11:01:17]MH_SAM_APDU [11:01:17]CAPDU: 80 0D 02 02 05 0B F6 93 3A B4 [11:01:17]Write to MH i2c: E2 0D 00 42 6D 80 0D 02 02 05 00 0B F6 93 3A B4 00 00 B5 [11:01:17]Write i2c OK [11:01:17]MH_I2C_Read... [11:01:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:17]Read from MH i2c: E2 [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: E2 03 00 [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: E2 03 00 42 6D 00 90 00 23 [11:01:17]RAPDU: 90 00 [11:01:17]wFMCommunicate OK [11:01:17]wFMCommunicate request_size=4 [11:01:17]MH_SAM_APDU [11:01:17]CAPDU: 80 0D 03 02 [11:01:17]Write to MH i2c: E2 08 00 43 6D 80 0D 03 02 00 00 00 00 2B [11:01:17]Write i2c OK [11:01:17]MH_I2C_Read... [11:01:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:17]Read from MH i2c: E2 [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: E2 0B 00 [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: E2 0B 00 43 6D 00 D7 64 3E B6 7E BA 5F B8 90 00 AA [11:01:17]RAPDU: D7 64 3E B6 7E BA 5F B8 90 00 [11:01:17]wFMCommunicate OK [11:01:17]SAM_PROTO_SignData done [11:01:17]FM_MakeSignedData done [11:01:17]CreateOFDProtocolMessage [11:01:17]wFMCommunicate request_size=4 [11:01:17]MH_SAM_APDU [11:01:17]CAPDU: 80 11 00 00 [11:01:17]Write to MH i2c: E2 08 00 44 6D 80 11 00 00 00 00 00 00 2B [11:01:17]Write i2c OK [11:01:17]MH_I2C_Read... [11:01:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:18]Read from MH i2c: E2 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: E2 17 00 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: E2 17 00 44 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 78 [11:01:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:01:18]wFMCommunicate OK [11:01:18]CreateOFDProtocolMessage done [11:01:18]OFDSenderStorePacket 260615 [11:01:18]StoreOFDPacket docnum=260615 [11:01:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 60 58 07 01 7D 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 80 D4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 07 FA 03 00 35 04 06 00 2C 0B F6 93 3A B4 D7 64 3E B6 7E BA 5F B8 [11:01:18]CheckFolder [11:01:18]dirname=/storage/ofd_packets [11:01:18]CheckFolder done [11:01:18]ProducePacketName [11:01:18]name=ofd_packets/00260615 [11:01:18]NVStorageSaveData ofd_packets/00260615 [11:01:18]File name is /storage/ofd_packets/00260615 [11:01:18]Write 301 bytes [11:01:18]NVStorageSaveData done [11:01:18]OFDSenderStorePacket done [11:01:18]KKMCreateOFDPacket done [11:01:18]NVStorageSaveData kkm_last_timestamp [11:01:18]File name is /storage/kkm_last_timestamp [11:01:18]Write 4 bytes [11:01:18]NVStorageSaveData done [11:01:18]ExternCall_PrintAddStr [11:01:18]wPrintStart [11:01:18]Write to MH i2c: 01 00 00 45 6D B2 [11:01:18]Write i2c OK [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: 01 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: 01 07 00 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: 01 07 00 45 6D 00 00 00 00 00 FF 0F C7 [11:01:18]RasterBufferAndPrint [11:01:18]line Счет N : (1)1036162 [11:01:18]line ИНН: 02508201610067 [11:01:18]line Контрольно-Кассовый Чек [11:01:18]line ПРОДАЖА [11:01:18]line ТРК (МРК, ГНК) : 12 [11:01:18]line Товар: 2710124130 [11:01:18]line Аи-92-К-5 [11:01:18]line 14.750 * 67.80 [11:01:18]line = 1000.05 [11:01:18]line НДС 12% НСП 1% [11:01:18]line > о реализуемом товаре [11:01:18]line ОКРУГЛЕНИЕ: -0.05 [11:01:18]line ИТОГО: 1000.00 [11:01:18]line Внесено: 1000.00 [11:01:18]line СДАЧА: 0.00 [11:01:18]line НСП 1% : 8.85 [11:01:18]line НДС 12% : 106.20 [11:01:18]line Наличными: 1000.00 [11:01:18]line Безнал.: 0.00 [11:01:18]line Место: АЗС № 94 "Партнер Нефть" [11:01:18]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:01:18]line СНО: Общий режим [11:01:18]line Чек 173 18.08.2024 11:01 [11:01:18]line Смена: 449 ФФД: 1.0 [11:01:18]line ЗНМ: 0300000099 [11:01:18]line РНМ: 0000000000091865 [11:01:18]line Версия ККМ: 001 [11:01:18]line ФМ: 0000000000871820 [11:01:18]line ФД: 260615 [11:01:18]line ФПД: 48429893106356 [11:01:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T110120&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260615&fm=48429893106356&tin=02508201610067®Number=0000000000091865&sum=100000 [11:01:18]OFD Sender: Processing packet 260615 [packets to send 192, broken 191] [11:01:18]ProducePacketName [11:01:18]name=ofd_packets/00260615 [11:01:18]OFD Sender: To server: pG, [11:01:18]CommunicateWithHost lk.salyk.kg:30040 [11:01:18]ConnectInit lk.salyk.kg [11:01:18]written 0, free lines is 4095 [11:01:18]Connected sock=10 [11:01: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 30 0F 01 00 00 60 58 07 01 7D 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 80 D4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 07 FA 03 00 35 04 06 00 2C 0B F6 93 3A B4 D7 64 3E B6 7E BA 5F B8 [11:01: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 30 4F 00 00 00 BF 42 47 00 B3 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 07 FA 03 00 F4 03 04 00 D6 7D C1 66 B6 04 01 00 00 02 BB D6 E5 EB 22 83 58 [11:01:18]CommunicateWithHost err = 0 [11:01:18]CheckOFDResponse [11:01:18]1017 (14) - 77093643461234 [11:01:18]1041 (16) - 0000000000871820 [11:01:18]1040 (4) - 260615 [11:01:18]1012 (4) - 18.08.2024 04:51 [11:01:18]1206 (1) - 0 [11:01:18]OFD Sender: Remove packet 260615 [11:01:18]ProducePacketName [11:01:18]name=ofd_packets/00260615 [11:01:18]NVStorageDeleteData [11:01:18]Write to MH i2c: 01 00 00 70 6D DD [11:01:18]Write i2c OK [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: 01 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: 01 07 00 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: 01 07 00 70 6D 00 00 00 00 00 72 0C 62 [11:01:18]RasterBufferAndPrint [11:01:18]line [11:01:18]line [11:01:18]line [11:01:18]line [11:01:18]line [11:01:18]written 0, free lines is 3196 [11:01:18]MH_Cut [11:01:18]Write to MH i2c: D1 01 00 77 6D 01 B6 [11:01:18]Write i2c OK [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: D1 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: D1 01 00 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: D1 01 00 77 6D 00 B5 [11:01:18]Write to MH i2c: 01 00 00 78 6D E5 [11:01:18]Write i2c OK [11:01:18]MH_I2C_Read... [11:01:19]OFD Sender: No OFD packet to send [11:01:19]*** Cut start [11:01:19]*** Purtial cut [11:01:19]*** Stage 1: CUTSNS_PIN = 1 [11:01:22]Read from MH i2c: 01 [11:01:22]MH_I2C_Read... [11:01:22]*** Stop cut motor [11:01:22]*** Cut end [11:01:22]Read from MH i2c: 01 07 00 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: 01 07 00 78 6D 00 00 00 00 00 FF 0F FA [11:01:22]process_action close_receipt done [11:01:22]requested_data is exist [11:01:22]produce_requested_data [11:01:22]requested_item fm.sn is exist - process it [11:01:22]wFMCommunicate request_size=4 [11:01:22]MH_SAM_APDU [11:01:22]CAPDU: 80 11 00 00 [11:01:22]Write to MH i2c: E2 08 00 79 6D 80 11 00 00 00 00 00 00 60 [11:01:22]Write i2c OK [11:01:22]MH_I2C_Read... [11:01:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:22]Read from MH i2c: E2 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: E2 17 00 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: E2 17 00 79 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 AD [11:01:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:01:22]wFMCommunicate OK [11:01:22]requested_item fd.num is exist - process it [11:01:22]SAM_PROTO_GetFieldsCounters [11:01:22]wFMCommunicate request_size=4 [11:01:22]MH_SAM_APDU [11:01:22]CAPDU: 80 13 00 00 [11:01:22]Write to MH i2c: E2 08 00 7A 6D 80 13 00 00 00 00 00 00 63 [11:01:22]Write i2c OK [11:01:22]MH_I2C_Read... [11:01:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:22]Read from MH i2c: E2 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: E2 62 00 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: E2 62 00 7A 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 07 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [11:01: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 07 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:01:22]wFMCommunicate OK [11:01:22]SAM_PROTO_GetFieldsCounters done [11:01:22]requested_item shift.num is exist - process it [11:01:22]requested_item shift.opened is exist - process it [11:01:22]req_shift_opened [11:01:22]FM_GetShiftState [11:01:22]SAM_PROTO_GetShiftState [11:01:22]wFMCommunicate request_size=4 [11:01:22]MH_SAM_APDU [11:01:22]CAPDU: 80 13 01 00 [11:01:22]Write to MH i2c: E2 08 00 7B 6D 80 13 01 00 00 00 00 00 65 [11:01:22]Write i2c OK [11:01:22]MH_I2C_Read... [11:01:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:22]Read from MH i2c: E2 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: E2 0E 00 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: E2 0E 00 7B 6D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A2 [11:01:22]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:01:22]wFMCommunicate OK [11:01:22]SAM_PROTO_GetShiftState done [11:01:22]FM_GetShiftState done [11:01:22]req_shift_opened done [11:01:22]requested_item shift.open_date is exist - process it [11:01:22]req_shift_open_date [11:01:22]req_shift_open_date done [11:01:22]produce_requested_data done [11:01:22]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260615,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:01:22]process_action_free close_receipt [11:01:22]json_value_free [11:01:22]json_value_free done [11:01:22]process_json_proto returns [11:01:22]Send response to host [11:01:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260615,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:01:22]free response buf [11:01:22]execute_script done [11:01:22]execute_script returns [11:01:22]free content buf [11:01:22]Sock 7.Close socket [11:01:22]Sock 7.Thread stoped [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]accept exits with 9 [11:02:54]New connection [11:02:54]New thread 3066473828 created [11:02:54]Thread 3066617188 joined [11:02:54]Waiting for new connection... [11:02:54] Sock 9.Parse request [11:02:54]Sock 9.Check first char [11:02:54]Sock 9.First char is OK [11:02:54]request: POST /json_proto HTTP/1.0 [11:02:54]Method: POST [11:02:54]URL: /json_proto [11:02:54]Method is POST - this is cgi request [11:02:54]url: /json_proto [11:02:54]query_string will be loaded in cgi processing [11:02:54]execute_cgi json_proto POST (null) [11:02:54]execute_cgi path=json_proto method=POST [11:02:54]POST find Content-Length [11:02:54]Host: 172.17.55.133:8080 [11:02:54]Content-Length: 678 [11:02:54]Content-Type: application/json [11:02:54] [11:02:54]POST finish read [11:02:54]Found Content-Length = 678 [11:02:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036163", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:54]execute_script... [11:02: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)1036163", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:54]POST & json_proto [11:02:54]process_json_proto [11:02:54]json parsed OK: [11:02:54]protocol is kg_v1.0 [11:02:54]action value=close_receipt [11:02:54]process_action close_receipt [11:02:54]cmd_close_receipt [11:02:54]MH_GetDate [11:02:54]Write to MH i2c: F0 00 00 7C 6D D8 [11:02:54]Write i2c OK [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: F0 [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: F0 09 00 [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: F0 09 00 7C 6D 00 E2 D4 C1 66 34 48 D8 65 77 [11:02:54]GetLastDocTimeStamp 1723978880 [11:02:54]current date 1723978978 [11:02:54]FM_GetShiftState [11:02:54]SAM_PROTO_GetShiftState [11:02:54]wFMCommunicate request_size=4 [11:02:54]MH_SAM_APDU [11:02:54]CAPDU: 80 13 01 00 [11:02:54]Write to MH i2c: E2 08 00 7D 6D 80 13 01 00 00 00 00 00 67 [11:02:54]Write i2c OK [11:02:54]MH_I2C_Read... [11:02:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:54]Read from MH i2c: E2 [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: E2 0E 00 [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: E2 0E 00 7D 6D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A4 [11:02:54]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:02:54]wFMCommunicate OK [11:02:54]SAM_PROTO_GetShiftState done [11:02:54]FM_GetShiftState done [11:02:54]opened in 1723940556 [11:02:54]opened+sec_in_day 1724026956 [11:02:54]quantity*price = 50010 [11:02:54]sum+1 = 50012 [11:02:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 174 18.08.2024 11:02 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260616 ФПД: 247526171958224 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T110258&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260616&fm=247526171958224&tin=02508201610067®Number=0000000000091865&sum=50000 [11:02:55]StoreToDocumentArchive [11:02:55]shift 449 fd 260616 [11:02:55]save to /storage/0449/doc_00260616 [11:02:55]save last doc name /storage/0449/doc_00260616 to /storage/kkm_last_doc_name [11:02:55]save OK [11:02:55]Clear old archive folders... [11:02:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:02:55]tlvbuf is 003E2F30 [11:02:55]SAM_PROTO_ClearQueue [11:02:55]wFMCommunicate request_size=4 [11:02:55]MH_SAM_APDU [11:02:55]CAPDU: 80 09 00 00 [11:02:55]Write to MH i2c: E2 08 00 8A 6D 80 09 00 00 00 00 00 00 69 [11:02:55]Write i2c OK [11:02:55]MH_I2C_Read... [11:02:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:55]Read from MH i2c: E2 [11:02:55]MH_I2C_Read... [11:02:55]Read from MH i2c: E2 03 00 [11:02:55]MH_I2C_Read... [11:02:55]Read from MH i2c: E2 03 00 8A 6D 00 90 00 6B [11:02:55]RAPDU: 90 00 [11:02:55]wFMCommunicate OK [11:02:55]SAM_PROTO_ClearQueue done [11:02:55]KKMCreateOFDPacket [11:02:55]OFDProtocolAddRootSTLVToBuf [11:02:55]FM_MakeSignedData [11:02:55]FM_MakeSignedData [11:02:55]SAM_PROTO_SignData [11:02:55]wFMCommunicate request_size=4 [11:02:55]MH_SAM_APDU [11:02:55]CAPDU: 80 0D 01 02 [11:02:55]Write to MH i2c: E2 08 00 8B 6D 80 0D 01 02 00 00 00 00 71 [11:02:55]Write i2c OK [11:02:55]MH_I2C_Read... [11:02:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:55]Read from MH i2c: E2 [11:02:55]MH_I2C_Read... [11:02:55]Read from MH i2c: E2 03 00 [11:02:55]MH_I2C_Read... [11:02:55]Read from MH i2c: E2 03 00 8B 6D 00 90 00 6C [11:02:55]RAPDU: 90 00 [11:02:55]wFMCommunicate OK [11:02:55]wFMCommunicate request_size=255 [11:02:55]MH_SAM_APDU [11:02: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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 E2 D4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 08 FA 03 00 35 04 06 00 E1 [11:02:55]Write to MH i2c: E2 02 01 8C 6D 80 0D 02 02 FA 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 E2 D4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 08 FA 03 00 35 04 06 00 E1 00 00 09 [11:02:55]Write i2c OK [11:02:55]MH_I2C_Read... [11:02:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:55]Read from MH i2c: E2 [11:02:55]MH_I2C_Read... [11:02:55]Read from MH i2c: E2 03 00 [11:02:55]MH_I2C_Read... [11:02:55]Read from MH i2c: E2 03 00 8C 6D 00 90 00 6D [11:02:55]RAPDU: 90 00 [11:02:55]wFMCommunicate OK [11:02:55]wFMCommunicate request_size=10 [11:02:55]MH_SAM_APDU [11:02:55]CAPDU: 80 0D 02 02 05 1F AD 8D 5B D0 [11:02:55]Write to MH i2c: E2 0D 00 8D 6D 80 0D 02 02 05 00 1F AD 8D 5B D0 00 00 02 [11:02:55]Write i2c OK [11:02:55]MH_I2C_Read... [11:02:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:55]Read from MH i2c: E2 [11:02:55]MH_I2C_Read... [11:02:55]Read from MH i2c: E2 03 00 [11:02:55]MH_I2C_Read... [11:02:55]Read from MH i2c: E2 03 00 8D 6D 00 90 00 6E [11:02:55]RAPDU: 90 00 [11:02:55]wFMCommunicate OK [11:02:55]wFMCommunicate request_size=4 [11:02:55]MH_SAM_APDU [11:02:55]CAPDU: 80 0D 03 02 [11:02:55]Write to MH i2c: E2 08 00 8E 6D 80 0D 03 02 00 00 00 00 76 [11:02:55]Write i2c OK [11:02:55]MH_I2C_Read... [11:02:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:55]Read from MH i2c: E2 [11:02:55]MH_I2C_Read... [11:02:55]Read from MH i2c: E2 0B 00 [11:02:55]MH_I2C_Read... [11:02:55]Read from MH i2c: E2 0B 00 8E 6D 00 59 79 18 FA EE 2A 6B 51 90 00 2F [11:02:55]RAPDU: 59 79 18 FA EE 2A 6B 51 90 00 [11:02:55]wFMCommunicate OK [11:02:55]SAM_PROTO_SignData done [11:02:55]FM_MakeSignedData done [11:02:55]CreateOFDProtocolMessage [11:02:55]wFMCommunicate request_size=4 [11:02:55]MH_SAM_APDU [11:02:55]CAPDU: 80 11 00 00 [11:02:55]Write to MH i2c: E2 08 00 8F 6D 80 11 00 00 00 00 00 00 76 [11:02:55]Write i2c OK [11:02:55]MH_I2C_Read... [11:02:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:55]Read from MH i2c: E2 [11:02:55]MH_I2C_Read... [11:02:55]Read from MH i2c: E2 17 00 [11:02:55]MH_I2C_Read... [11:02:55]Read from MH i2c: E2 17 00 8F 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C3 [11:02:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:02:55]wFMCommunicate OK [11:02:55]CreateOFDProtocolMessage done [11:02:55]OFDSenderStorePacket 260616 [11:02:55]StoreOFDPacket docnum=260616 [11:02:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 CB 84 07 01 02 C2 5A 03 01 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 E2 D4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 08 FA 03 00 35 04 06 00 E1 1F AD 8D 5B D0 59 79 18 FA EE 2A 6B 51 [11:02:55]CheckFolder [11:02:55]dirname=/storage/ofd_packets [11:02:55]CheckFolder done [11:02:55]ProducePacketName [11:02:55]name=ofd_packets/00260616 [11:02:55]NVStorageSaveData ofd_packets/00260616 [11:02:55]File name is /storage/ofd_packets/00260616 [11:02:55]Write 301 bytes [11:02:55]NVStorageSaveData done [11:02:55]OFDSenderStorePacket done [11:02:55]KKMCreateOFDPacket done [11:02:55]NVStorageSaveData kkm_last_timestamp [11:02:55]File name is /storage/kkm_last_timestamp [11:02:55]Write 4 bytes [11:02:55]NVStorageSaveData done [11:02:55]ExternCall_PrintAddStr [11:02:55]wPrintStart [11:02:55]Write to MH i2c: 01 00 00 90 6D FD [11:02:55]Write i2c OK [11:02:55]MH_I2C_Read... [11:02:55]Read from MH i2c: 01 [11:02:55]MH_I2C_Read... [11:02:55]Read from MH i2c: 01 07 00 [11:02:55]MH_I2C_Read... [11:02:55]Read from MH i2c: 01 07 00 90 6D 00 00 00 00 00 FF 0F 12 [11:02:55]RasterBufferAndPrint [11:02:55]line Счет N : (1)1036163 [11:02:55]line ИНН: 02508201610067 [11:02:55]line Контрольно-Кассовый Чек [11:02:55]line ПРОДАЖА [11:02:55]line ТРК (МРК, ГНК) : 13 [11:02:55]line Товар: 2710124500 [11:02:55]line Аи-95-К-5 [11:02:55]line 6.740 * 74.20 [11:02:55]line = 500.11 [11:02:55]line НДС 12% НСП 1% [11:02:55]line > о реализуемом товаре [11:02:55]line ОКРУГЛЕНИЕ: -0.11 [11:02:55]line ИТОГО: 500.00 [11:02:55]line Внесено: 500.00 [11:02:55]line СДАЧА: 0.00 [11:02:55]line НСП 1% : 4.43 [11:02:55]line НДС 12% : 53.11 [11:02:55]line Наличными: 500.00 [11:02:56]line Безнал.: 0.00 [11:02:56]line Место: АЗС № 94 "Партнер Нефть" [11:02:56]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:02:56]line СНО: Общий режим [11:02:56]line Чек 174 18.08.2024 11:02 [11:02:56]line Смена: 449 ФФД: 1.0 [11:02:56]line ЗНМ: 0300000099 [11:02:56]line РНМ: 0000000000091865 [11:02:56]line Версия ККМ: 001 [11:02:56]line ФМ: 0000000000871820 [11:02:56]line ФД: 260616 [11:02:56]line ФПД: 247526171958224 [11:02:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T110258&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260616&fm=247526171958224&tin=02508201610067®Number=0000000000091865&sum=50000 [11:02:56]written 0, free lines is 4095 [11:02:56]OFD Sender: Processing packet 260616 [packets to send 192, broken 191] [11:02:56]ProducePacketName [11:02:56]name=ofd_packets/00260616 [11:02:56]OFD Sender: To server: pG, [11:02:56]CommunicateWithHost lk.salyk.kg:30040 [11:02:56]ConnectInit lk.salyk.kg [11:02:56]Connected sock=7 [11:02: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 30 0F 01 00 00 CB 84 07 01 02 C2 5A 03 01 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 E2 D4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 08 FA 03 00 35 04 06 00 E1 1F AD 8D 5B D0 59 79 18 FA EE 2A 6B 51 [11:02: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 30 4F 00 00 00 09 5B 47 00 8C 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 30 10 04 04 00 08 FA 03 00 F4 03 04 00 38 7E C1 66 B6 04 01 00 00 1E 67 2A 72 CD 15 F8 D9 [11:02:56]CommunicateWithHost err = 0 [11:02:56]CheckOFDResponse [11:02:56]1017 (14) - 77093643461234 [11:02:56]1041 (16) - 0000000000871820 [11:02:56]1040 (4) - 260616 [11:02:56]1012 (4) - 18.08.2024 04:53 [11:02:56]1206 (1) - 0 [11:02:56]OFD Sender: Remove packet 260616 [11:02:56]ProducePacketName [11:02:56]name=ofd_packets/00260616 [11:02:56]NVStorageDeleteData [11:02:56]Write to MH i2c: 01 00 00 BB 6D 28 [11:02:56]Write i2c OK [11:02:56]MH_I2C_Read... [11:02:56]Read from MH i2c: 01 [11:02:56]MH_I2C_Read... [11:02:56]Read from MH i2c: 01 07 00 [11:02:56]MH_I2C_Read... [11:02:56]Read from MH i2c: 01 07 00 BB 6D 00 00 00 00 00 68 0C A3 [11:02:56]RasterBufferAndPrint [11:02:56]line [11:02:56]line [11:02:56]line [11:02:56]line [11:02:56]line [11:02:56]written 0, free lines is 3180 [11:02:56]MH_Cut [11:02:56]Write to MH i2c: D1 01 00 C2 6D 01 01 [11:02:56]Write i2c OK [11:02:56]MH_I2C_Read... [11:02:56]Read from MH i2c: D1 [11:02:56]MH_I2C_Read... [11:02:56]Read from MH i2c: D1 01 00 [11:02:56]MH_I2C_Read... [11:02:56]Read from MH i2c: D1 01 00 C2 6D 00 00 [11:02:56]Write to MH i2c: 01 00 00 C3 6D 30 [11:02:56]Write i2c OK [11:02:56]MH_I2C_Read... [11:02:57]OFD Sender: No OFD packet to send [11:02:57]*** Cut start [11:02:57]*** Purtial cut [11:02:57]*** Stage 1: CUTSNS_PIN = 1 [11:02:59]Read from MH i2c: 01 [11:02:59]MH_I2C_Read... [11:02:59]*** Stop cut motor [11:02:59]*** Cut end [11:02:59]Read from MH i2c: 01 07 00 [11:02:59]MH_I2C_Read... [11:02:59]Read from MH i2c: 01 07 00 C3 6D 00 00 00 00 00 FF 0F 45 [11:02:59]process_action close_receipt done [11:02:59]requested_data is exist [11:02:59]produce_requested_data [11:02:59]requested_item fm.sn is exist - process it [11:02:59]wFMCommunicate request_size=4 [11:02:59]MH_SAM_APDU [11:02:59]CAPDU: 80 11 00 00 [11:02:59]Write to MH i2c: E2 08 00 C4 6D 80 11 00 00 00 00 00 00 AB [11:02:59]Write i2c OK [11:02:59]MH_I2C_Read... [11:03:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:00]Read from MH i2c: E2 [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: E2 17 00 [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: E2 17 00 C4 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F8 [11:03:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:03:00]wFMCommunicate OK [11:03:00]requested_item fd.num is exist - process it [11:03:00]SAM_PROTO_GetFieldsCounters [11:03:00]wFMCommunicate request_size=4 [11:03:00]MH_SAM_APDU [11:03:00]CAPDU: 80 13 00 00 [11:03:00]Write to MH i2c: E2 08 00 C5 6D 80 13 00 00 00 00 00 00 AE [11:03:00]Write i2c OK [11:03:00]MH_I2C_Read... [11:03:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:00]Read from MH i2c: E2 [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: E2 62 00 [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: E2 62 00 C5 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 08 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [11:03: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 08 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:03:00]wFMCommunicate OK [11:03:00]SAM_PROTO_GetFieldsCounters done [11:03:00]requested_item shift.num is exist - process it [11:03:00]requested_item shift.opened is exist - process it [11:03:00]req_shift_opened [11:03:00]FM_GetShiftState [11:03:00]SAM_PROTO_GetShiftState [11:03:00]wFMCommunicate request_size=4 [11:03:00]MH_SAM_APDU [11:03:00]CAPDU: 80 13 01 00 [11:03:00]Write to MH i2c: E2 08 00 C6 6D 80 13 01 00 00 00 00 00 B0 [11:03:00]Write i2c OK [11:03:00]MH_I2C_Read... [11:03:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:00]Read from MH i2c: E2 [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: E2 0E 00 [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: E2 0E 00 C6 6D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 ED [11:03:00]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:03:00]wFMCommunicate OK [11:03:00]SAM_PROTO_GetShiftState done [11:03:00]FM_GetShiftState done [11:03:00]req_shift_opened done [11:03:00]requested_item shift.open_date is exist - process it [11:03:00]req_shift_open_date [11:03:00]req_shift_open_date done [11:03:00]produce_requested_data done [11:03:00]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260616,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:03:00]process_action_free close_receipt [11:03:00]json_value_free [11:03:00]json_value_free done [11:03:00]process_json_proto returns [11:03:00]Send response to host [11:03:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260616,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:03:00]free response buf [11:03:00]execute_script done [11:03:00]execute_script returns [11:03:00]free content buf [11:03:00]Sock 9.Close socket [11:03:00]Sock 9.Thread stoped [11:03:02]OFD Sender: No OFD packet to send [11:03:07]OFD Sender: No OFD packet to send [11:03:12]OFD Sender: No OFD packet to send [11:03:17]OFD Sender: No OFD packet to send [11:03:22]OFD Sender: No OFD packet to send [11:03:27]OFD Sender: No OFD packet to send [11:03:32]OFD Sender: No OFD packet to send [11:03:37]OFD Sender: No OFD packet to send [11:03:42]OFD Sender: No OFD packet to send [11:03:47]OFD Sender: No OFD packet to send [11:03:47]accept exits with 10 [11:03:47]New connection [11:03:47]New thread 3066617188 created [11:03:47]Thread 3066473828 joined [11:03:47]Waiting for new connection... [11:03:47] Sock 10.Parse request [11:03:47]Sock 10.Check first char [11:03:47]Sock 10.First char is OK [11:03:47]request: POST /json_proto HTTP/1.0 [11:03:47]Method: POST [11:03:47]URL: /json_proto [11:03:47]Method is POST - this is cgi request [11:03:47]url: /json_proto [11:03:47]query_string will be loaded in cgi processing [11:03:47]execute_cgi json_proto POST (null) [11:03:47]execute_cgi path=json_proto method=POST [11:03:47]POST find Content-Length [11:03:47]Host: 172.17.55.133:8080 [11:03:47]Content-Length: 678 [11:03:47]Content-Type: application/json [11:03:47] [11:03:47]POST finish read [11:03:47]Found Content-Length = 678 [11:03:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "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" ] } } [11:03:47]execute_script... [11:03: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)1036164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "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" ] } } [11:03:47]POST & json_proto [11:03:47]process_json_proto [11:03:47]json parsed OK: [11:03:47]protocol is kg_v1.0 [11:03:47]action value=close_receipt [11:03:47]process_action close_receipt [11:03:47]cmd_close_receipt [11:03:47]MH_GetDate [11:03:47]Write to MH i2c: F0 00 00 C7 6D 23 [11:03:47]Write i2c OK [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: F0 [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: F0 09 00 [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: F0 09 00 C7 6D 00 18 D5 C1 66 34 48 D8 65 F9 [11:03:47]GetLastDocTimeStamp 1723978978 [11:03:47]current date 1723979032 [11:03:47]FM_GetShiftState [11:03:47]SAM_PROTO_GetShiftState [11:03:47]wFMCommunicate request_size=4 [11:03:47]MH_SAM_APDU [11:03:47]CAPDU: 80 13 01 00 [11:03:47]Write to MH i2c: E2 08 00 C8 6D 80 13 01 00 00 00 00 00 B2 [11:03:47]Write i2c OK [11:03:47]MH_I2C_Read... [11:03:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:47]Read from MH i2c: E2 [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: E2 0E 00 [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: E2 0E 00 C8 6D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 EF [11:03:47]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:03:47]wFMCommunicate OK [11:03:47]SAM_PROTO_GetShiftState done [11:03:47]FM_GetShiftState done [11:03:47]opened in 1723940556 [11:03:47]opened+sec_in_day 1724026956 [11:03:47]quantity*price = 35052 [11:03:47]sum+1 = 35054 [11:03:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 175 18.08.2024 11:03 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260617 ФПД: 280384168788308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T110352&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260617&fm=280384168788308&tin=02508201610067®Number=0000000000091865&sum=35000 [11:03:48]StoreToDocumentArchive [11:03:48]shift 449 fd 260617 [11:03:48]save to /storage/0449/doc_00260617 [11:03:48]save last doc name /storage/0449/doc_00260617 to /storage/kkm_last_doc_name [11:03:48]save OK [11:03:48]Clear old archive folders... [11:03:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:03:49]tlvbuf is 003A0500 [11:03:49]SAM_PROTO_ClearQueue [11:03:49]wFMCommunicate request_size=4 [11:03:49]MH_SAM_APDU [11:03:49]CAPDU: 80 09 00 00 [11:03:49]Write to MH i2c: E2 08 00 D5 6D 80 09 00 00 00 00 00 00 B4 [11:03:49]Write i2c OK [11:03:49]MH_I2C_Read... [11:03:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:49]Read from MH i2c: E2 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 03 00 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 03 00 D5 6D 00 90 00 B6 [11:03:49]RAPDU: 90 00 [11:03:49]wFMCommunicate OK [11:03:49]SAM_PROTO_ClearQueue done [11:03:49]KKMCreateOFDPacket [11:03:49]OFDProtocolAddRootSTLVToBuf [11:03:49]FM_MakeSignedData [11:03:49]FM_MakeSignedData [11:03:49]SAM_PROTO_SignData [11:03:49]wFMCommunicate request_size=4 [11:03:49]MH_SAM_APDU [11:03:49]CAPDU: 80 0D 01 02 [11:03:49]Write to MH i2c: E2 08 00 D6 6D 80 0D 01 02 00 00 00 00 BC [11:03:49]Write i2c OK [11:03:49]MH_I2C_Read... [11:03:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:49]Read from MH i2c: E2 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 03 00 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 03 00 D6 6D 00 90 00 B7 [11:03:49]RAPDU: 90 00 [11:03:49]wFMCommunicate OK [11:03:49]wFMCommunicate request_size=255 [11:03:49]MH_SAM_APDU [11:03:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 AF 00 00 00 F4 03 04 00 18 D5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 09 FA 03 00 35 04 06 00 FF [11:03:49]Write to MH i2c: E2 02 01 D7 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 AF 00 00 00 F4 03 04 00 18 D5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 09 FA 03 00 35 04 06 00 FF 00 00 EE [11:03:49]Write i2c OK [11:03:49]MH_I2C_Read... [11:03:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:49]Read from MH i2c: E2 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 03 00 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 03 00 D7 6D 00 90 00 B8 [11:03:49]RAPDU: 90 00 [11:03:49]wFMCommunicate OK [11:03:49]wFMCommunicate request_size=10 [11:03:49]MH_SAM_APDU [11:03:49]CAPDU: 80 0D 02 02 05 02 06 C8 01 54 [11:03:49]Write to MH i2c: E2 0D 00 D8 6D 80 0D 02 02 05 00 02 06 C8 01 54 00 00 EE [11:03:49]Write i2c OK [11:03:49]MH_I2C_Read... [11:03:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:49]Read from MH i2c: E2 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 03 00 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 03 00 D8 6D 00 90 00 B9 [11:03:49]RAPDU: 90 00 [11:03:49]wFMCommunicate OK [11:03:49]wFMCommunicate request_size=4 [11:03:49]MH_SAM_APDU [11:03:49]CAPDU: 80 0D 03 02 [11:03:49]Write to MH i2c: E2 08 00 D9 6D 80 0D 03 02 00 00 00 00 C1 [11:03:49]Write i2c OK [11:03:49]MH_I2C_Read... [11:03:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:49]Read from MH i2c: E2 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 0B 00 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 0B 00 D9 6D 00 8A EC 84 5C 53 8A 0E BA 90 00 BD [11:03:49]RAPDU: 8A EC 84 5C 53 8A 0E BA 90 00 [11:03:49]wFMCommunicate OK [11:03:49]SAM_PROTO_SignData done [11:03:49]FM_MakeSignedData done [11:03:49]CreateOFDProtocolMessage [11:03:49]wFMCommunicate request_size=4 [11:03:49]MH_SAM_APDU [11:03:49]CAPDU: 80 11 00 00 [11:03:49]Write to MH i2c: E2 08 00 DA 6D 80 11 00 00 00 00 00 00 C1 [11:03:49]Write i2c OK [11:03:49]MH_I2C_Read... [11:03:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:49]Read from MH i2c: E2 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 17 00 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 17 00 DA 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 0E [11:03:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:03:49]wFMCommunicate OK [11:03:49]CreateOFDProtocolMessage done [11:03:49]OFDSenderStorePacket 260617 [11:03:49]StoreOFDPacket docnum=260617 [11:03:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 23 30 07 01 E2 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 AF 00 00 00 F4 03 04 00 18 D5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 09 FA 03 00 35 04 06 00 FF 02 06 C8 01 54 8A EC 84 5C 53 8A 0E BA [11:03:49]CheckFolder [11:03:49]dirname=/storage/ofd_packets [11:03:49]CheckFolder done [11:03:49]ProducePacketName [11:03:49]name=ofd_packets/00260617 [11:03:49]NVStorageSaveData ofd_packets/00260617 [11:03:49]File name is /storage/ofd_packets/00260617 [11:03:49]Write 301 bytes [11:03:49]NVStorageSaveData done [11:03:49]OFDSenderStorePacket done [11:03:49]KKMCreateOFDPacket done [11:03:49]NVStorageSaveData kkm_last_timestamp [11:03:49]File name is /storage/kkm_last_timestamp [11:03:49]Write 4 bytes [11:03:49]NVStorageSaveData done [11:03:49]ExternCall_PrintAddStr [11:03:49]wPrintStart [11:03:49]Write to MH i2c: 01 00 00 DB 6D 48 [11:03:49]Write i2c OK [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: 01 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: 01 07 00 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: 01 07 00 DB 6D 00 00 00 00 00 FF 0F 5D [11:03:49]RasterBufferAndPrint [11:03:49]line Счет N : (1)1036164 [11:03:49]line ИНН: 02508201610067 [11:03:49]line Контрольно-Кассовый Чек [11:03:49]line ПРОДАЖА [11:03:49]line ТРК (МРК, ГНК) : 22 [11:03:49]line Товар: 2710124130 [11:03:49]line Аи-92-К-5 [11:03:49]line 5.170 * 67.80 [11:03:49]line = 350.53 [11:03:49]line НДС 12% НСП 1% [11:03:49]line > о реализуемом товаре [11:03:49]line ОКРУГЛЕНИЕ: -0.53 [11:03:49]line ИТОГО: 350.00 [11:03:49]line Внесено: 350.00 [11:03:49]line СДАЧА: 0.00 [11:03:49]line НСП 1% : 3.10 [11:03:49]line НДС 12% : 37.22 [11:03:49]line Наличными: 350.00 [11:03:49]line Безнал.: 0.00 [11:03:49]line Место: АЗС № 94 "Партнер Нефть" [11:03:49]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:03:49]line СНО: Общий режим [11:03:49]line Чек 175 18.08.2024 11:03 [11:03:49]line Смена: 449 ФФД: 1.0 [11:03:49]line ЗНМ: 0300000099 [11:03:49]line РНМ: 0000000000091865 [11:03:49]line Версия ККМ: 001 [11:03:49]line ФМ: 0000000000871820 [11:03:49]line ФД: 260617 [11:03:49]line ФПД: 280384168788308 [11:03:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T110352&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260617&fm=280384168788308&tin=02508201610067®Number=0000000000091865&sum=35000 [11:03:49]written 0, free lines is 4095 [11:03:49]OFD Sender: Processing packet 260617 [packets to send 192, broken 191] [11:03:49]ProducePacketName [11:03:49]name=ofd_packets/00260617 [11:03:49]OFD Sender: To server: pG, [11:03:49]CommunicateWithHost lk.salyk.kg:30040 [11:03:49]ConnectInit lk.salyk.kg [11:03:49]Connected sock=9 [11:03: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 30 0F 01 00 00 23 30 07 01 E2 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 AF 00 00 00 F4 03 04 00 18 D5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 09 FA 03 00 35 04 06 00 FF 02 06 C8 01 54 8A EC 84 5C 53 8A 0E BA [11:03: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 30 4F 00 00 00 3E 7D 47 00 59 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 30 10 04 04 00 09 FA 03 00 F4 03 04 00 6D 7E C1 66 B6 04 01 00 00 EA B1 32 59 45 5D EA D7 [11:03:50]CommunicateWithHost err = 0 [11:03:50]CheckOFDResponse [11:03:50]1017 (14) - 77093643461234 [11:03:50]1041 (16) - 0000000000871820 [11:03:50]1040 (4) - 260617 [11:03:50]1012 (4) - 18.08.2024 04:54 [11:03:50]1206 (1) - 0 [11:03:50]OFD Sender: Remove packet 260617 [11:03:50]ProducePacketName [11:03:50]name=ofd_packets/00260617 [11:03:50]NVStorageDeleteData [11:03:50]Write to MH i2c: 01 00 00 06 6E 74 [11:03:50]Write i2c OK [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: 01 [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 06 6E 00 00 00 00 00 64 0C EB [11:03:50]RasterBufferAndPrint [11:03:50]line [11:03:50]line [11:03:50]line [11:03:50]line [11:03:50]line [11:03:50]written 0, free lines is 3176 [11:03:50]MH_Cut [11:03:50]Write to MH i2c: D1 01 00 0D 6E 01 4D [11:03:50]Write i2c OK [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: D1 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: D1 01 00 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: D1 01 00 0D 6E 00 4C [11:03:50]Write to MH i2c: 01 00 00 0E 6E 7C [11:03:50]Write i2c OK [11:03:50]MH_I2C_Read... [11:03:50]OFD Sender: No OFD packet to send [11:03:51]*** Cut start [11:03:51]*** Purtial cut [11:03:51]*** Stage 1: CUTSNS_PIN = 1 [11:03:53]Read from MH i2c: 01 [11:03:53]MH_I2C_Read... [11:03:53]*** Stop cut motor [11:03:53]*** Cut end [11:03:53]Read from MH i2c: 01 07 00 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: 01 07 00 0E 6E 00 00 00 00 00 FF 0F 91 [11:03:53]process_action close_receipt done [11:03:53]requested_data is exist [11:03:53]produce_requested_data [11:03:53]requested_item fm.sn is exist - process it [11:03:53]wFMCommunicate request_size=4 [11:03:53]MH_SAM_APDU [11:03:53]CAPDU: 80 11 00 00 [11:03:53]Write to MH i2c: E2 08 00 0F 6E 80 11 00 00 00 00 00 00 F7 [11:03:53]Write i2c OK [11:03:53]MH_I2C_Read... [11:03:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:53]Read from MH i2c: E2 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 17 00 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 17 00 0F 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 44 [11:03:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:03:53]wFMCommunicate OK [11:03:53]requested_item fd.num is exist - process it [11:03:53]SAM_PROTO_GetFieldsCounters [11:03:53]wFMCommunicate request_size=4 [11:03:53]MH_SAM_APDU [11:03:53]CAPDU: 80 13 00 00 [11:03:53]Write to MH i2c: E2 08 00 10 6E 80 13 00 00 00 00 00 00 FA [11:03:53]Write i2c OK [11:03:53]MH_I2C_Read... [11:03:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:53]Read from MH i2c: E2 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 62 00 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 62 00 10 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 09 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [11:03: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 09 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:03:53]wFMCommunicate OK [11:03:53]SAM_PROTO_GetFieldsCounters done [11:03:53]requested_item shift.num is exist - process it [11:03:53]requested_item shift.opened is exist - process it [11:03:53]req_shift_opened [11:03:53]FM_GetShiftState [11:03:53]SAM_PROTO_GetShiftState [11:03:53]wFMCommunicate request_size=4 [11:03:53]MH_SAM_APDU [11:03:53]CAPDU: 80 13 01 00 [11:03:53]Write to MH i2c: E2 08 00 11 6E 80 13 01 00 00 00 00 00 FC [11:03:53]Write i2c OK [11:03:53]MH_I2C_Read... [11:03:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:53]Read from MH i2c: E2 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 0E 00 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 0E 00 11 6E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 39 [11:03:53]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:03:53]wFMCommunicate OK [11:03:53]SAM_PROTO_GetShiftState done [11:03:53]FM_GetShiftState done [11:03:53]req_shift_opened done [11:03:53]requested_item shift.open_date is exist - process it [11:03:53]req_shift_open_date [11:03:53]req_shift_open_date done [11:03:53]produce_requested_data done [11:03:53]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260617,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:03:53]process_action_free close_receipt [11:03:53]json_value_free [11:03:53]json_value_free done [11:03:53]process_json_proto returns [11:03:53]Send response to host [11:03:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260617,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:03:53]free response buf [11:03:53]execute_script done [11:03:53]execute_script returns [11:03:53]free content buf [11:03:53]Sock 10.Close socket [11:03:53]Sock 10.Thread stoped [11:03:55]OFD Sender: No OFD packet to send [11:04:00]OFD Sender: No OFD packet to send [11:04:05]OFD Sender: No OFD packet to send [11:04:10]OFD Sender: No OFD packet to send [11:04:15]OFD Sender: No OFD packet to send [11:04:20]OFD Sender: No OFD packet to send [11:04:25]OFD Sender: No OFD packet to send [11:04:30]OFD Sender: No OFD packet to send [11:04:35]OFD Sender: No OFD packet to send [11:04:40]OFD Sender: No OFD packet to send [11:04:45]OFD Sender: No OFD packet to send [11:04:50]OFD Sender: No OFD packet to send [11:04:51]accept exits with 7 [11:04:51]New connection [11:04:51]New thread 3066473828 created [11:04:51]Thread 3066617188 joined [11:04:51]Waiting for new connection... [11:04:51] Sock 7.Parse request [11:04:51]Sock 7.Check first char [11:04:51]Sock 7.First char is OK [11:04:51]request: POST /json_proto HTTP/1.0 [11:04:51]Method: POST [11:04:51]URL: /json_proto [11:04:51]Method is POST - this is cgi request [11:04:51]url: /json_proto [11:04:51]query_string will be loaded in cgi processing [11:04:51]execute_cgi json_proto POST (null) [11:04:51]execute_cgi path=json_proto method=POST [11:04:51]POST find Content-Length [11:04:51]Host: 172.17.55.133:8080 [11:04:51]Content-Length: 683 [11:04:51]Content-Type: application/json [11:04:51] [11:04:51]POST finish read [11:04:51]Found Content-Length = 683 [11:04:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036165", "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" : 74.20, "quantity" : 17.530, "sum" : 1300.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:51]execute_script... [11:04: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)1036165", "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" : 74.20, "quantity" : 17.530, "sum" : 1300.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:51]POST & json_proto [11:04:51]process_json_proto [11:04:51]json parsed OK: [11:04:51]protocol is kg_v1.0 [11:04:51]action value=close_receipt [11:04:51]process_action close_receipt [11:04:51]cmd_close_receipt [11:04:51]MH_GetDate [11:04:51]Write to MH i2c: F0 00 00 12 6E 6F [11:04:51]Write i2c OK [11:04:51]MH_I2C_Read... [11:04:51]Read from MH i2c: F0 [11:04:51]MH_I2C_Read... [11:04:51]Read from MH i2c: F0 09 00 [11:04:51]MH_I2C_Read... [11:04:51]Read from MH i2c: F0 09 00 12 6E 00 57 D5 C1 66 34 48 D8 65 84 [11:04:51]GetLastDocTimeStamp 1723979032 [11:04:51]current date 1723979095 [11:04:51]FM_GetShiftState [11:04:51]SAM_PROTO_GetShiftState [11:04:51]wFMCommunicate request_size=4 [11:04:51]MH_SAM_APDU [11:04:51]CAPDU: 80 13 01 00 [11:04:51]Write to MH i2c: E2 08 00 13 6E 80 13 01 00 00 00 00 00 FE [11:04:51]Write i2c OK [11:04:51]MH_I2C_Read... [11:04:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:51]Read from MH i2c: E2 [11:04:51]MH_I2C_Read... [11:04:51]Read from MH i2c: E2 0E 00 [11:04:51]MH_I2C_Read... [11:04:51]Read from MH i2c: E2 0E 00 13 6E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 3B [11:04:51]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:04:51]wFMCommunicate OK [11:04:51]SAM_PROTO_GetShiftState done [11:04:51]FM_GetShiftState done [11:04:51]opened in 1723940556 [11:04:51]opened+sec_in_day 1724026956 [11:04:51]quantity*price = 130072 [11:04:51]sum+1 = 130074 [11:04:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.13 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 176 18.08.2024 11:04 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260618 ФПД: 39225850651816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T110455&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260618&fm=39225850651816&tin=02508201610067®Number=0000000000091865&sum=130000 [11:04:52]StoreToDocumentArchive [11:04:52]shift 449 fd 260618 [11:04:52]save to /storage/0449/doc_00260618 [11:04:52]save last doc name /storage/0449/doc_00260618 to /storage/kkm_last_doc_name [11:04:52]save OK [11:04:52]Clear old archive folders... [11:04:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:04:52]tlvbuf is 004098A0 [11:04:52]SAM_PROTO_ClearQueue [11:04:52]wFMCommunicate request_size=4 [11:04:52]MH_SAM_APDU [11:04:52]CAPDU: 80 09 00 00 [11:04:52]Write to MH i2c: E2 08 00 20 6E 80 09 00 00 00 00 00 00 00 [11:04:52]Write i2c OK [11:04:52]MH_I2C_Read... [11:04:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:04:52]Read from MH i2c: E2 [11:04:52]MH_I2C_Read... [11:04:52]Read from MH i2c: E2 03 00 [11:04:52]MH_I2C_Read... [11:04:52]Read from MH i2c: E2 03 00 20 6E 00 90 00 02 [11:04:52]RAPDU: 90 00 [11:04:52]wFMCommunicate OK [11:04:52]SAM_PROTO_ClearQueue done [11:04:52]KKMCreateOFDPacket [11:04:52]OFDProtocolAddRootSTLVToBuf [11:04:52]FM_MakeSignedData [11:04:52]FM_MakeSignedData [11:04:52]SAM_PROTO_SignData [11:04:52]wFMCommunicate request_size=4 [11:04:52]MH_SAM_APDU [11:04:52]CAPDU: 80 0D 01 02 [11:04:52]Write to MH i2c: E2 08 00 21 6E 80 0D 01 02 00 00 00 00 08 [11:04:52]Write i2c OK [11:04:52]MH_I2C_Read... [11:04:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:04:52]Read from MH i2c: E2 [11:04:52]MH_I2C_Read... [11:04:52]Read from MH i2c: E2 03 00 [11:04:52]MH_I2C_Read... [11:04:52]Read from MH i2c: E2 03 00 21 6E 00 90 00 03 [11:04:52]RAPDU: 90 00 [11:04:52]wFMCommunicate OK [11:04:52]wFMCommunicate request_size=255 [11:04:52]MH_SAM_APDU [11:04: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 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 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 57 D5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0A FA 03 00 35 04 06 00 23 [11:04:52]Write to MH i2c: E2 02 01 22 6E 80 0D 02 02 FA 00 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 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 57 D5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0A FA 03 00 35 04 06 00 23 00 00 34 [11:04:52]Write i2c OK [11:04:52]MH_I2C_Read... [11:04:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:52]Read from MH i2c: E2 [11:04:52]MH_I2C_Read... [11:04:52]Read from MH i2c: E2 03 00 [11:04:52]MH_I2C_Read... [11:04:52]Read from MH i2c: E2 03 00 22 6E 00 90 00 04 [11:04:52]RAPDU: 90 00 [11:04:52]wFMCommunicate OK [11:04:52]wFMCommunicate request_size=10 [11:04:52]MH_SAM_APDU [11:04:52]CAPDU: 80 0D 02 02 05 AC FA E4 E4 A8 [11:04:52]Write to MH i2c: E2 0D 00 23 6E 80 0D 02 02 05 00 AC FA E4 E4 A8 00 00 2B [11:04:52]Write i2c OK [11:04:52]MH_I2C_Read... [11:04:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:52]Read from MH i2c: E2 [11:04:52]MH_I2C_Read... [11:04:52]Read from MH i2c: E2 03 00 [11:04:52]MH_I2C_Read... [11:04:52]Read from MH i2c: E2 03 00 23 6E 00 90 00 05 [11:04:52]RAPDU: 90 00 [11:04:52]wFMCommunicate OK [11:04:52]wFMCommunicate request_size=4 [11:04:52]MH_SAM_APDU [11:04:52]CAPDU: 80 0D 03 02 [11:04:52]Write to MH i2c: E2 08 00 24 6E 80 0D 03 02 00 00 00 00 0D [11:04:52]Write i2c OK [11:04:52]MH_I2C_Read... [11:04:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:04:52]Read from MH i2c: E2 [11:04:52]MH_I2C_Read... [11:04:52]Read from MH i2c: E2 0B 00 [11:04:52]MH_I2C_Read... [11:04:52]Read from MH i2c: E2 0B 00 24 6E 00 8B A4 CA 21 48 1F 40 61 90 00 30 [11:04:52]RAPDU: 8B A4 CA 21 48 1F 40 61 90 00 [11:04:52]wFMCommunicate OK [11:04:52]SAM_PROTO_SignData done [11:04:52]FM_MakeSignedData done [11:04:52]CreateOFDProtocolMessage [11:04:52]wFMCommunicate request_size=4 [11:04:52]MH_SAM_APDU [11:04:52]CAPDU: 80 11 00 00 [11:04:52]Write to MH i2c: E2 08 00 25 6E 80 11 00 00 00 00 00 00 0D [11:04:52]Write i2c OK [11:04:52]MH_I2C_Read... [11:04:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:52]Read from MH i2c: E2 [11:04:52]MH_I2C_Read... [11:04:52]Read from MH i2c: E2 17 00 [11:04:52]MH_I2C_Read... [11:04:52]Read from MH i2c: E2 17 00 25 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 5A [11:04:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:04:52]wFMCommunicate OK [11:04:52]CreateOFDProtocolMessage done [11:04:52]OFDSenderStorePacket 260618 [11:04:52]StoreOFDPacket docnum=260618 [11:04:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 61 56 07 01 0D A5 5A 03 01 00 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 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 57 D5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0A FA 03 00 35 04 06 00 23 AC FA E4 E4 A8 8B A4 CA 21 48 1F 40 61 [11:04:52]CheckFolder [11:04:52]dirname=/storage/ofd_packets [11:04:52]CheckFolder done [11:04:52]ProducePacketName [11:04:52]name=ofd_packets/00260618 [11:04:52]NVStorageSaveData ofd_packets/00260618 [11:04:52]File name is /storage/ofd_packets/00260618 [11:04:52]Write 301 bytes [11:04:52]NVStorageSaveData done [11:04:52]OFDSenderStorePacket done [11:04:52]KKMCreateOFDPacket done [11:04:52]NVStorageSaveData kkm_last_timestamp [11:04:52]File name is /storage/kkm_last_timestamp [11:04:52]Write 4 bytes [11:04:52]NVStorageSaveData done [11:04:52]ExternCall_PrintAddStr [11:04:52]wPrintStart [11:04:52]Write to MH i2c: 01 00 00 26 6E 94 [11:04:52]Write i2c OK [11:04:52]MH_I2C_Read... [11:04:52]Read from MH i2c: 01 [11:04:52]MH_I2C_Read... [11:04:52]Read from MH i2c: 01 07 00 [11:04:52]MH_I2C_Read... [11:04:52]Read from MH i2c: 01 07 00 26 6E 00 00 00 00 00 FF 0F A9 [11:04:52]RasterBufferAndPrint [11:04:52]line Счет N : (1)1036165 [11:04:52]line ИНН: 02508201610067 [11:04:52]line Контрольно-Кассовый Чек [11:04:52]line ПРОДАЖА [11:04:52]line ТРК (МРК, ГНК) : 13 [11:04:52]line Товар: 2710124500 [11:04:52]line Аи-95-К-5 [11:04:52]line 17.530 * 74.20 [11:04:52]line = 1300.73 [11:04:52]line НДС 12% НСП 1% [11:04:52]line > о реализуемом товаре [11:04:52]line ОКРУГЛЕНИЕ: -0.73 [11:04:52]line ИТОГО: 1300.00 [11:04:52]line Внесено: 1300.00 [11:04:52]line СДАЧА: 0.00 [11:04:52]line НСП 1% : 11.51 [11:04:52]line НДС 12% : 138.13 [11:04:52]line Наличными: 1300.00 [11:04:52]line Безнал.: 0.00 [11:04:52]line Место: АЗС № 94 "Партнер Нефть" [11:04:52]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:04:52]line СНО: Общий режим [11:04:52]line Чек 176 18.08.2024 11:04 [11:04:52]line Смена: 449 ФФД: 1.0 [11:04:52]line ЗНМ: 0300000099 [11:04:52]line РНМ: 0000000000091865 [11:04:52]line Версия ККМ: 001 [11:04:52]line ФМ: 0000000000871820 [11:04:52]line ФД: 260618 [11:04:52]line ФПД: 39225850651816 [11:04:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T110455&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260618&fm=39225850651816&tin=02508201610067®Number=0000000000091865&sum=130000 [11:04:53]OFD Sender: Processing packet 260618 [packets to send 192, broken 191] [11:04:53]ProducePacketName [11:04:53]name=ofd_packets/00260618 [11:04:53]OFD Sender: To server: pG, [11:04:53]CommunicateWithHost lk.salyk.kg:30040 [11:04:53]ConnectInit lk.salyk.kg [11:04:53]written 0, free lines is 4095 [11:04:53]Connected sock=10 [11:04: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 30 0F 01 00 00 61 56 07 01 0D A5 5A 03 01 00 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 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 57 D5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0A FA 03 00 35 04 06 00 23 AC FA E4 E4 A8 8B A4 CA 21 48 1F 40 61 [11:04: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 30 4F 00 00 00 9B 21 47 00 FF D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0A FA 03 00 F4 03 04 00 AC 7E C1 66 B6 04 01 00 00 95 3E 7C 71 C8 04 68 CD [11:04:53]CommunicateWithHost err = 0 [11:04:53]CheckOFDResponse [11:04:53]1017 (14) - 77093643461234 [11:04:53]1041 (16) - 0000000000871820 [11:04:53]1040 (4) - 260618 [11:04:53]1012 (4) - 18.08.2024 04:55 [11:04:53]1206 (1) - 0 [11:04:53]OFD Sender: Remove packet 260618 [11:04:53]ProducePacketName [11:04:53]name=ofd_packets/00260618 [11:04:53]NVStorageDeleteData [11:04:53]Write to MH i2c: 01 00 00 51 6E BF [11:04:53]Write i2c OK [11:04:53]MH_I2C_Read... [11:04:53]Read from MH i2c: 01 [11:04:53]MH_I2C_Read... [11:04:53]Read from MH i2c: 01 07 00 [11:04:53]MH_I2C_Read... [11:04:53]Read from MH i2c: 01 07 00 51 6E 00 00 00 00 00 60 0C 32 [11:04:53]RasterBufferAndPrint [11:04:53]line [11:04:53]line [11:04:53]line [11:04:53]line [11:04:53]line [11:04:53]written 0, free lines is 3172 [11:04:53]MH_Cut [11:04:53]Write to MH i2c: D1 01 00 58 6E 01 98 [11:04:53]Write i2c OK [11:04:53]MH_I2C_Read... [11:04:53]Read from MH i2c: D1 [11:04:53]MH_I2C_Read... [11:04:53]Read from MH i2c: D1 01 00 [11:04:53]MH_I2C_Read... [11:04:53]Read from MH i2c: D1 01 00 58 6E 00 97 [11:04:53]Write to MH i2c: 01 00 00 59 6E C7 [11:04:53]Write i2c OK [11:04:53]MH_I2C_Read... [11:04:53]OFD Sender: No OFD packet to send [11:04:54]*** Cut start [11:04:54]*** Purtial cut [11:04:54]*** Stage 1: CUTSNS_PIN = 1 [11:04:56]Read from MH i2c: 01 [11:04:56]MH_I2C_Read... [11:04:56]*** Stop cut motor [11:04:56]*** Cut end [11:04:56]Read from MH i2c: 01 07 00 [11:04:56]MH_I2C_Read... [11:04:56]Read from MH i2c: 01 07 00 59 6E 00 00 00 00 00 FF 0F DC [11:04:56]process_action close_receipt done [11:04:56]requested_data is exist [11:04:56]produce_requested_data [11:04:56]requested_item fm.sn is exist - process it [11:04:56]wFMCommunicate request_size=4 [11:04:56]MH_SAM_APDU [11:04:56]CAPDU: 80 11 00 00 [11:04:56]Write to MH i2c: E2 08 00 5A 6E 80 11 00 00 00 00 00 00 42 [11:04:56]Write i2c OK [11:04:56]MH_I2C_Read... [11:04:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:56]Read from MH i2c: E2 [11:04:56]MH_I2C_Read... [11:04:56]Read from MH i2c: E2 17 00 [11:04:56]MH_I2C_Read... [11:04:56]Read from MH i2c: E2 17 00 5A 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 8F [11:04:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:04:56]wFMCommunicate OK [11:04:56]requested_item fd.num is exist - process it [11:04:56]SAM_PROTO_GetFieldsCounters [11:04:56]wFMCommunicate request_size=4 [11:04:56]MH_SAM_APDU [11:04:56]CAPDU: 80 13 00 00 [11:04:56]Write to MH i2c: E2 08 00 5B 6E 80 13 00 00 00 00 00 00 45 [11:04:56]Write i2c OK [11:04:56]MH_I2C_Read... [11:04:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:56]Read from MH i2c: E2 [11:04:56]MH_I2C_Read... [11:04:56]Read from MH i2c: E2 62 00 [11:04:56]MH_I2C_Read... [11:04:56]Read from MH i2c: E2 62 00 5B 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 0A FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [11:04: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 0A FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:04:56]wFMCommunicate OK [11:04:56]SAM_PROTO_GetFieldsCounters done [11:04:56]requested_item shift.num is exist - process it [11:04:56]requested_item shift.opened is exist - process it [11:04:56]req_shift_opened [11:04:56]FM_GetShiftState [11:04:56]SAM_PROTO_GetShiftState [11:04:56]wFMCommunicate request_size=4 [11:04:56]MH_SAM_APDU [11:04:56]CAPDU: 80 13 01 00 [11:04:56]Write to MH i2c: E2 08 00 5C 6E 80 13 01 00 00 00 00 00 47 [11:04:56]Write i2c OK [11:04:56]MH_I2C_Read... [11:04:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:56]Read from MH i2c: E2 [11:04:56]MH_I2C_Read... [11:04:56]Read from MH i2c: E2 0E 00 [11:04:56]MH_I2C_Read... [11:04:56]Read from MH i2c: E2 0E 00 5C 6E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 84 [11:04:56]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:04:56]wFMCommunicate OK [11:04:56]SAM_PROTO_GetShiftState done [11:04:56]FM_GetShiftState done [11:04:56]req_shift_opened done [11:04:56]requested_item shift.open_date is exist - process it [11:04:56]req_shift_open_date [11:04:56]req_shift_open_date done [11:04:56]produce_requested_data done [11:04:56]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260618,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:04:56]process_action_free close_receipt [11:04:56]json_value_free [11:04:56]json_value_free done [11:04:56]process_json_proto returns [11:04:56]Send response to host [11:04:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260618,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:04:56]free response buf [11:04:56]execute_script done [11:04:56]execute_script returns [11:04:56]free content buf [11:04:56]Sock 7.Close socket [11:04:56]Sock 7.Thread stoped [11:04:58]OFD Sender: No OFD packet to send [11:05:03]OFD Sender: No OFD packet to send [11:05:08]OFD Sender: No OFD packet to send [11:05:13]OFD Sender: No OFD packet to send [11:05:18]OFD Sender: No OFD packet to send [11:05:23]OFD Sender: No OFD packet to send [11:05:28]OFD Sender: No OFD packet to send [11:05:33]OFD Sender: No OFD packet to send [11:05:38]OFD Sender: No OFD packet to send [11:05:43]OFD Sender: No OFD packet to send [11:05:48]OFD Sender: No OFD packet to send [11:05:53]OFD Sender: No OFD packet to send [11:05:58]OFD Sender: No OFD packet to send [11:06:03]OFD Sender: No OFD packet to send [11:06:08]OFD Sender: No OFD packet to send [11:06:13]OFD Sender: No OFD packet to send [11:06:18]OFD Sender: No OFD packet to send [11:06:23]OFD Sender: No OFD packet to send [11:06:28]OFD Sender: No OFD packet to send [11:06:33]OFD Sender: No OFD packet to send [11:06: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:21]accept exits with 9 [11:09:21]New connection [11:09:21]New thread 3066617188 created [11:09:21]Thread 3066473828 joined [11:09:21]Waiting for new connection... [11:09:21] Sock 9.Parse request [11:09:21]Sock 9.Check first char [11:09:21]Sock 9.First char is OK [11:09:21]request: POST /json_proto HTTP/1.0 [11:09:21]Method: POST [11:09:21]URL: /json_proto [11:09:21]Method is POST - this is cgi request [11:09:21]url: /json_proto [11:09:21]query_string will be loaded in cgi processing [11:09:21]execute_cgi json_proto POST (null) [11:09:21]execute_cgi path=json_proto method=POST [11:09:21]POST find Content-Length [11:09:21]Host: 172.17.55.133:8080 [11:09:21]Content-Length: 820 [11:09:21]Content-Type: application/json [11:09:21] [11:09:21]POST finish read [11:09:21]Found Content-Length = 820 [11:09:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:21]execute_script... [11:09: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)1036166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:21]POST & json_proto [11:09:21]process_json_proto [11:09:21]json parsed OK: [11:09:21]protocol is kg_v1.0 [11:09:21]action value=close_receipt [11:09:21]process_action close_receipt [11:09:21]cmd_close_receipt [11:09:21]MH_GetDate [11:09:21]Write to MH i2c: F0 00 00 5D 6E BA [11:09:21]Write i2c OK [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: F0 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: F0 09 00 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: F0 09 00 5D 6E 00 66 D6 C1 66 34 48 D8 65 DF [11:09:21]GetLastDocTimeStamp 1723979095 [11:09:21]current date 1723979366 [11:09:21]FM_GetShiftState [11:09:21]SAM_PROTO_GetShiftState [11:09:21]wFMCommunicate request_size=4 [11:09:21]MH_SAM_APDU [11:09:21]CAPDU: 80 13 01 00 [11:09:21]Write to MH i2c: E2 08 00 5E 6E 80 13 01 00 00 00 00 00 49 [11:09:21]Write i2c OK [11:09:21]MH_I2C_Read... [11:09:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:21]Read from MH i2c: E2 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: E2 0E 00 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: E2 0E 00 5E 6E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 86 [11:09:21]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:09:21]wFMCommunicate OK [11:09:21]SAM_PROTO_GetShiftState done [11:09:21]FM_GetShiftState done [11:09:21]opened in 1723940556 [11:09:21]opened+sec_in_day 1724026956 [11:09:21]quantity*price = 100005 [11:09:21]sum+1 = 100006 [11:09:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 177 18.08.2024 11:09 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871820 ФД: 260619 ФПД: 119596525287315 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T110926&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260619&fm=119596525287315&tin=02508201610067®Number=0000000000091865&sum=100005 [11:09:22]StoreToDocumentArchive [11:09:22]shift 449 fd 260619 [11:09:22]save to /storage/0449/doc_00260619 [11:09:22]save last doc name /storage/0449/doc_00260619 to /storage/kkm_last_doc_name [11:09:22]save OK [11:09:22]Clear old archive folders... [11:09:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:09:22]tlvbuf is 00433A40 [11:09:22]SAM_PROTO_ClearQueue [11:09:22]wFMCommunicate request_size=4 [11:09:22]MH_SAM_APDU [11:09:22]CAPDU: 80 09 00 00 [11:09:22]Write to MH i2c: E2 08 00 6B 6E 80 09 00 00 00 00 00 00 4B [11:09:22]Write i2c OK [11:09:22]MH_I2C_Read... [11:09:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:09:22]Read from MH i2c: E2 [11:09:22]MH_I2C_Read... [11:09:22]Read from MH i2c: E2 03 00 [11:09:22]MH_I2C_Read... [11:09:22]Read from MH i2c: E2 03 00 6B 6E 00 90 00 4D [11:09:22]RAPDU: 90 00 [11:09:22]wFMCommunicate OK [11:09:22]SAM_PROTO_ClearQueue done [11:09:22]KKMCreateOFDPacket [11:09:22]OFDProtocolAddRootSTLVToBuf [11:09:22]FM_MakeSignedData [11:09:22]FM_MakeSignedData [11:09:22]SAM_PROTO_SignData [11:09:22]wFMCommunicate request_size=4 [11:09:22]MH_SAM_APDU [11:09:22]CAPDU: 80 0D 01 02 [11:09:22]Write to MH i2c: E2 08 00 6C 6E 80 0D 01 02 00 00 00 00 53 [11:09:22]Write i2c OK [11:09:22]MH_I2C_Read... [11:09:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:09:22]Read from MH i2c: E2 [11:09:22]MH_I2C_Read... [11:09:22]Read from MH i2c: E2 03 00 [11:09:22]MH_I2C_Read... [11:09:22]Read from MH i2c: E2 03 00 6C 6E 00 90 00 4E [11:09:22]RAPDU: 90 00 [11:09:22]wFMCommunicate OK [11:09:22]wFMCommunicate request_size=255 [11:09:22]MH_SAM_APDU [11:09:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 66 D6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0B FA 03 00 35 04 06 00 6C [11:09:22]Write to MH i2c: E2 02 01 6D 6E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 66 D6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0B FA 03 00 35 04 06 00 6C 00 00 B3 [11:09:22]Write i2c OK [11:09:22]MH_I2C_Read... [11:09:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:23]Read from MH i2c: E2 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 03 00 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 03 00 6D 6E 00 90 00 4F [11:09:23]RAPDU: 90 00 [11:09:23]wFMCommunicate OK [11:09:23]wFMCommunicate request_size=10 [11:09:23]MH_SAM_APDU [11:09:23]CAPDU: 80 0D 02 02 05 C5 BC 67 F7 93 [11:09:23]Write to MH i2c: E2 0D 00 6E 6E 80 0D 02 02 05 00 C5 BC 67 F7 93 00 00 D2 [11:09:23]Write i2c OK [11:09:23]MH_I2C_Read... [11:09:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:23]Read from MH i2c: E2 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 03 00 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 03 00 6E 6E 00 90 00 50 [11:09:23]RAPDU: 90 00 [11:09:23]wFMCommunicate OK [11:09:23]wFMCommunicate request_size=4 [11:09:23]MH_SAM_APDU [11:09:23]CAPDU: 80 0D 03 02 [11:09:23]Write to MH i2c: E2 08 00 6F 6E 80 0D 03 02 00 00 00 00 58 [11:09:23]Write i2c OK [11:09:23]MH_I2C_Read... [11:09:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:09:23]Read from MH i2c: E2 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 0B 00 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 0B 00 6F 6E 00 96 08 71 29 CF E2 37 71 90 00 EA [11:09:23]RAPDU: 96 08 71 29 CF E2 37 71 90 00 [11:09:23]wFMCommunicate OK [11:09:23]SAM_PROTO_SignData done [11:09:23]FM_MakeSignedData done [11:09:23]CreateOFDProtocolMessage [11:09:23]wFMCommunicate request_size=4 [11:09:23]MH_SAM_APDU [11:09:23]CAPDU: 80 11 00 00 [11:09:23]Write to MH i2c: E2 08 00 70 6E 80 11 00 00 00 00 00 00 58 [11:09:23]Write i2c OK [11:09:23]MH_I2C_Read... [11:09:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:23]Read from MH i2c: E2 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 17 00 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 17 00 70 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A5 [11:09:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:09:23]wFMCommunicate OK [11:09:23]CreateOFDProtocolMessage done [11:09:23]OFDSenderStorePacket 260619 [11:09:23]StoreOFDPacket docnum=260619 [11:09:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 06 A2 07 01 83 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 66 D6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0B FA 03 00 35 04 06 00 6C C5 BC 67 F7 93 96 08 71 29 CF E2 37 71 [11:09:23]CheckFolder [11:09:23]dirname=/storage/ofd_packets [11:09:23]CheckFolder done [11:09:23]ProducePacketName [11:09:23]name=ofd_packets/00260619 [11:09:23]NVStorageSaveData ofd_packets/00260619 [11:09:23]File name is /storage/ofd_packets/00260619 [11:09:23]Write 301 bytes [11:09:23]NVStorageSaveData done [11:09:23]OFDSenderStorePacket done [11:09:23]KKMCreateOFDPacket done [11:09:23]NVStorageSaveData kkm_last_timestamp [11:09:23]File name is /storage/kkm_last_timestamp [11:09:23]Write 4 bytes [11:09:23]NVStorageSaveData done [11:09:23]ExternCall_PrintAddStr [11:09:23]wPrintStart [11:09:23]Write to MH i2c: 01 00 00 71 6E DF [11:09:23]Write i2c OK [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: 01 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: 01 07 00 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: 01 07 00 71 6E 00 00 00 00 00 FF 0F F4 [11:09:23]RasterBufferAndPrint [11:09:23]line Счет N : (1)1036166 [11:09:23]line ИНН: 02508201610067 [11:09:23]line Контрольно-Кассовый Чек [11:09:23]line ПРОДАЖА [11:09:23]line ТРК (МРК, ГНК) : 32 [11:09:23]line Товар: 2710124130 [11:09:23]line Аи-92-К-5 [11:09:23]line 14.750 * 67.80 [11:09:23]line = 1000.05 [11:09:23]line НДС 12% НСП 1% [11:09:23]line > о реализуемом товаре [11:09:23]line ИТОГО: 1000.05 [11:09:23]line НСП 1% : 8.85 [11:09:23]line НДС 12% : 106.20 [11:09:23]line Наличными: 0.00 [11:09:23]line Безнал.: 1000.05 [11:09:23]line Место: АЗС № 94 "Партнер Нефть" [11:09:23]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:09:23]line СНО: Общий режим [11:09:23]line Чек 177 18.08.2024 11:09 [11:09:23]line Смена: 449 ФФД: 1.0 [11:09:23]line ЗНМ: 0300000099 [11:09:23]line РНМ: 0000000000091865 [11:09:23]line Версия ККМ: 001 [11:09:23]line Платежная система: Бакай Банк [11:09:23]line ФМ: 0000000000871820 [11:09:23]line ФД: 260619 [11:09:23]line ФПД: 119596525287315 [11:09:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T110926&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260619&fm=119596525287315&tin=02508201610067®Number=0000000000091865&sum=100005 [11:09:23]OFD Sender: Processing packet 260619 [packets to send 192, broken 191] [11:09:23]ProducePacketName [11:09:23]name=ofd_packets/00260619 [11:09:23]OFD Sender: To server: pG, [11:09:23]CommunicateWithHost lk.salyk.kg:30040 [11:09:23]ConnectInit lk.salyk.kg [11:09:23]written 0, free lines is 4095 [11:09:23]Connected sock=10 [11:09: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 30 0F 01 00 00 06 A2 07 01 83 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 66 D6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0B FA 03 00 35 04 06 00 6C C5 BC 67 F7 93 96 08 71 29 CF E2 37 71 [11:09: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 30 4F 00 00 00 37 C3 47 00 D4 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 30 10 04 04 00 0B FA 03 00 F4 03 04 00 BB 7F C1 66 B6 04 01 00 00 6F 5D FB 20 5D C4 73 7D [11:09:24]CommunicateWithHost err = 0 [11:09:24]CheckOFDResponse [11:09:24]1017 (14) - 77093643461234 [11:09:24]1041 (16) - 0000000000871820 [11:09:24]1040 (4) - 260619 [11:09:24]1012 (4) - 18.08.2024 04:59 [11:09:24]1206 (1) - 0 [11:09:24]OFD Sender: Remove packet 260619 [11:09:24]ProducePacketName [11:09:24]name=ofd_packets/00260619 [11:09:24]NVStorageDeleteData [11:09:24]Write to MH i2c: 01 00 00 9B 6E 09 [11:09:24]Write i2c OK [11:09:24]MH_I2C_Read... [11:09:24]Read from MH i2c: 01 [11:09:24]MH_I2C_Read... [11:09:24]Read from MH i2c: 01 07 00 [11:09:24]MH_I2C_Read... [11:09:24]Read from MH i2c: 01 07 00 9B 6E 00 00 00 00 00 79 0C 95 [11:09:24]RasterBufferAndPrint [11:09:24]line [11:09:24]line [11:09:24]line [11:09:24]line [11:09:24]line [11:09:24]written 0, free lines is 3196 [11:09:24]MH_Cut [11:09:24]Write to MH i2c: D1 01 00 A2 6E 01 E2 [11:09:24]Write i2c OK [11:09:24]MH_I2C_Read... [11:09:24]Read from MH i2c: D1 [11:09:24]MH_I2C_Read... [11:09:24]Read from MH i2c: D1 01 00 [11:09:24]MH_I2C_Read... [11:09:24]Read from MH i2c: D1 01 00 A2 6E 00 E1 [11:09:24]Write to MH i2c: 01 00 00 A3 6E 11 [11:09:24]Write i2c OK [11:09:24]MH_I2C_Read... [11:09:24]OFD Sender: No OFD packet to send [11:09:25]*** Cut start [11:09:25]*** Purtial cut [11:09:25]*** Stage 1: CUTSNS_PIN = 1 [11:09:27]Read from MH i2c: 01 [11:09:27]MH_I2C_Read... [11:09:27]*** Stop cut motor [11:09:27]*** Cut end [11:09:27]Read from MH i2c: 01 07 00 [11:09:27]MH_I2C_Read... [11:09:27]Read from MH i2c: 01 07 00 A3 6E 00 00 00 00 00 FF 0F 26 [11:09:27]process_action close_receipt done [11:09:27]requested_data is exist [11:09:27]produce_requested_data [11:09:27]requested_item fm.sn is exist - process it [11:09:27]wFMCommunicate request_size=4 [11:09:27]MH_SAM_APDU [11:09:27]CAPDU: 80 11 00 00 [11:09:27]Write to MH i2c: E2 08 00 A4 6E 80 11 00 00 00 00 00 00 8C [11:09:27]Write i2c OK [11:09:27]MH_I2C_Read... [11:09:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:27]Read from MH i2c: E2 [11:09:27]MH_I2C_Read... [11:09:27]Read from MH i2c: E2 17 00 [11:09:27]MH_I2C_Read... [11:09:27]Read from MH i2c: E2 17 00 A4 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D9 [11:09:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:09:27]wFMCommunicate OK [11:09:27]requested_item fd.num is exist - process it [11:09:27]SAM_PROTO_GetFieldsCounters [11:09:27]wFMCommunicate request_size=4 [11:09:27]MH_SAM_APDU [11:09:27]CAPDU: 80 13 00 00 [11:09:27]Write to MH i2c: E2 08 00 A5 6E 80 13 00 00 00 00 00 00 8F [11:09:27]Write i2c OK [11:09:27]MH_I2C_Read... [11:09:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:09:27]Read from MH i2c: E2 [11:09:27]MH_I2C_Read... [11:09:27]Read from MH i2c: E2 62 00 [11:09:27]MH_I2C_Read... [11:09:27]Read from MH i2c: E2 62 00 A5 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 0B FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [11: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 0B FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:09:27]wFMCommunicate OK [11:09:27]SAM_PROTO_GetFieldsCounters done [11:09:27]requested_item shift.num is exist - process it [11:09:27]requested_item shift.opened is exist - process it [11:09:27]req_shift_opened [11:09:27]FM_GetShiftState [11:09:27]SAM_PROTO_GetShiftState [11:09:27]wFMCommunicate request_size=4 [11:09:27]MH_SAM_APDU [11:09:27]CAPDU: 80 13 01 00 [11:09:27]Write to MH i2c: E2 08 00 A6 6E 80 13 01 00 00 00 00 00 91 [11:09:27]Write i2c OK [11:09:27]MH_I2C_Read... [11:09:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:27]Read from MH i2c: E2 [11:09:27]MH_I2C_Read... [11:09:27]Read from MH i2c: E2 0E 00 [11:09:27]MH_I2C_Read... [11:09:27]Read from MH i2c: E2 0E 00 A6 6E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 CE [11:09:27]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:09:27]wFMCommunicate OK [11:09:27]SAM_PROTO_GetShiftState done [11:09:27]FM_GetShiftState done [11:09:27]req_shift_opened done [11:09:27]requested_item shift.open_date is exist - process it [11:09:27]req_shift_open_date [11:09:27]req_shift_open_date done [11:09:27]produce_requested_data done [11:09:27]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260619,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:09:27]process_action_free close_receipt [11:09:27]json_value_free [11:09:27]json_value_free done [11:09:27]process_json_proto returns [11:09:27]Send response to host [11:09:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260619,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:09:27]free response buf [11:09:27]execute_script done [11:09:27]execute_script returns [11:09:27]free content buf [11:09:27]Sock 9.Close socket [11:09:27]Sock 9.Thread stoped [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:09]OFD Sender: No OFD packet to send [11:10:14]accept exits with 7 [11:10:14]New connection [11:10:14]New thread 3066473828 created [11:10:14]Thread 3066617188 joined [11:10:14]Waiting for new connection... [11:10:14] Sock 7.Parse request [11:10:14]Sock 7.Check first char [11:10:14]Sock 7.First char is OK [11:10:14]request: POST /json_proto HTTP/1.0 [11:10:14]Method: POST [11:10:14]URL: /json_proto [11:10:14]Method is POST - this is cgi request [11:10:14]url: /json_proto [11:10:14]query_string will be loaded in cgi processing [11:10:14]execute_cgi json_proto POST (null) [11:10:14]execute_cgi path=json_proto method=POST [11:10:14]POST find Content-Length [11:10:14]Host: 172.17.55.133:8080 [11:10:14]Content-Length: 678 [11:10:14]Content-Type: application/json [11:10:14] [11:10:14]POST finish read [11:10:14]Found Content-Length = 678 [11:10:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036168", "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" : 74.20, "quantity" : 4.050, "sum" : 300.51, "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:10:14]execute_script... [11:10: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)1036168", "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" : 74.20, "quantity" : 4.050, "sum" : 300.51, "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:10:14]POST & json_proto [11:10:14]process_json_proto [11:10:14]json parsed OK: [11:10:14]protocol is kg_v1.0 [11:10:14]action value=close_receipt [11:10:14]process_action close_receipt [11:10:14]cmd_close_receipt [11:10:14]MH_GetDate [11:10:14]Write to MH i2c: F0 00 00 A7 6E 04 [11:10:14]Write i2c OK [11:10:14]MH_I2C_Read... [11:10:14]Read from MH i2c: F0 [11:10:14]MH_I2C_Read... [11:10:14]Read from MH i2c: F0 09 00 [11:10:14]MH_I2C_Read... [11:10:14]Read from MH i2c: F0 09 00 A7 6E 00 9A D6 C1 66 34 48 D8 65 5D [11:10:14]GetLastDocTimeStamp 1723979366 [11:10:14]current date 1723979418 [11:10:14]FM_GetShiftState [11:10:14]SAM_PROTO_GetShiftState [11:10:14]wFMCommunicate request_size=4 [11:10:14]MH_SAM_APDU [11:10:14]CAPDU: 80 13 01 00 [11:10:14]Write to MH i2c: E2 08 00 A8 6E 80 13 01 00 00 00 00 00 93 [11:10:14]Write i2c OK [11:10:14]MH_I2C_Read... [11:10:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:14]Read from MH i2c: E2 [11:10:14]MH_I2C_Read... [11:10:14]Read from MH i2c: E2 0E 00 [11:10:14]MH_I2C_Read... [11:10:14]Read from MH i2c: E2 0E 00 A8 6E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D0 [11:10:14]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:10:14]wFMCommunicate OK [11:10:14]SAM_PROTO_GetShiftState done [11:10:14]FM_GetShiftState done [11:10:14]opened in 1723940556 [11:10:14]opened+sec_in_day 1724026956 [11:10:14]quantity*price = 30051 [11:10:14]sum+1 = 30052 [11:10:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 178 18.08.2024 11:10 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260620 ФПД: 122553258167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T111018&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260620&fm=122553258167&tin=02508201610067®Number=0000000000091865&sum=30000 [11:10:15]StoreToDocumentArchive [11:10:15]shift 449 fd 260620 [11:10:15]save to /storage/0449/doc_00260620 [11:10:15]save last doc name /storage/0449/doc_00260620 to /storage/kkm_last_doc_name [11:10:15]save OK [11:10:15]Clear old archive folders... [11:10:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:10:15]tlvbuf is 003E9210 [11:10:15]SAM_PROTO_ClearQueue [11:10:15]wFMCommunicate request_size=4 [11:10:15]MH_SAM_APDU [11:10:15]CAPDU: 80 09 00 00 [11:10:15]Write to MH i2c: E2 08 00 B5 6E 80 09 00 00 00 00 00 00 95 [11:10:15]Write i2c OK [11:10:15]MH_I2C_Read... [11:10:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:15]Read from MH i2c: E2 [11:10:15]MH_I2C_Read... [11:10:15]Read from MH i2c: E2 03 00 [11:10:15]MH_I2C_Read... [11:10:15]Read from MH i2c: E2 03 00 B5 6E 00 90 00 97 [11:10:15]RAPDU: 90 00 [11:10:15]wFMCommunicate OK [11:10:15]SAM_PROTO_ClearQueue done [11:10:15]KKMCreateOFDPacket [11:10:15]OFDProtocolAddRootSTLVToBuf [11:10:15]FM_MakeSignedData [11:10:15]FM_MakeSignedData [11:10:15]SAM_PROTO_SignData [11:10:15]wFMCommunicate request_size=4 [11:10:15]MH_SAM_APDU [11:10:15]CAPDU: 80 0D 01 02 [11:10:15]Write to MH i2c: E2 08 00 B6 6E 80 0D 01 02 00 00 00 00 9D [11:10:15]Write i2c OK [11:10:15]MH_I2C_Read... [11:10:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:15]Read from MH i2c: E2 [11:10:15]MH_I2C_Read... [11:10:15]Read from MH i2c: E2 03 00 [11:10:15]MH_I2C_Read... [11:10:15]Read from MH i2c: E2 03 00 B6 6E 00 90 00 98 [11:10:15]RAPDU: 90 00 [11:10:15]wFMCommunicate OK [11:10:15]wFMCommunicate request_size=255 [11:10:15]MH_SAM_APDU [11:10: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 9A D6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0C FA 03 00 35 04 06 00 00 [11:10:15]Write to MH i2c: E2 02 01 B7 6E 80 0D 02 02 FA 00 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 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 9A D6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0C FA 03 00 35 04 06 00 00 00 00 66 [11:10:15]Write i2c OK [11:10:15]MH_I2C_Read... [11:10:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:15]Read from MH i2c: E2 [11:10:15]MH_I2C_Read... [11:10:15]Read from MH i2c: E2 03 00 [11:10:15]MH_I2C_Read... [11:10:15]Read from MH i2c: E2 03 00 B7 6E 00 90 00 99 [11:10:15]RAPDU: 90 00 [11:10:15]wFMCommunicate OK [11:10:15]wFMCommunicate request_size=10 [11:10:15]MH_SAM_APDU [11:10:15]CAPDU: 80 0D 02 02 05 1C 88 BE 50 B7 [11:10:15]Write to MH i2c: E2 0D 00 B8 6E 80 0D 02 02 05 00 1C 88 BE 50 B7 00 00 13 [11:10:15]Write i2c OK [11:10:15]MH_I2C_Read... [11:10:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:15]Read from MH i2c: E2 [11:10:15]MH_I2C_Read... [11:10:15]Read from MH i2c: E2 03 00 [11:10:15]MH_I2C_Read... [11:10:15]Read from MH i2c: E2 03 00 B8 6E 00 90 00 9A [11:10:15]RAPDU: 90 00 [11:10:15]wFMCommunicate OK [11:10:15]wFMCommunicate request_size=4 [11:10:15]MH_SAM_APDU [11:10:15]CAPDU: 80 0D 03 02 [11:10:15]Write to MH i2c: E2 08 00 B9 6E 80 0D 03 02 00 00 00 00 A2 [11:10:15]Write i2c OK [11:10:15]MH_I2C_Read... [11:10:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:15]Read from MH i2c: E2 [11:10:15]MH_I2C_Read... [11:10:15]Read from MH i2c: E2 0B 00 [11:10:15]MH_I2C_Read... [11:10:15]Read from MH i2c: E2 0B 00 B9 6E 00 F2 7E 55 7A 79 D2 E6 B5 90 00 C8 [11:10:15]RAPDU: F2 7E 55 7A 79 D2 E6 B5 90 00 [11:10:15]wFMCommunicate OK [11:10:15]SAM_PROTO_SignData done [11:10:15]FM_MakeSignedData done [11:10:15]CreateOFDProtocolMessage [11:10:15]wFMCommunicate request_size=4 [11:10:15]MH_SAM_APDU [11:10:15]CAPDU: 80 11 00 00 [11:10:15]Write to MH i2c: E2 08 00 BA 6E 80 11 00 00 00 00 00 00 A2 [11:10:15]Write i2c OK [11:10:15]MH_I2C_Read... [11:10:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:15]Read from MH i2c: E2 [11:10:15]MH_I2C_Read... [11:10:15]Read from MH i2c: E2 17 00 [11:10:15]MH_I2C_Read... [11:10:15]Read from MH i2c: E2 17 00 BA 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 EF [11:10:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:10:15]wFMCommunicate OK [11:10:15]CreateOFDProtocolMessage done [11:10:15]OFDSenderStorePacket 260620 [11:10:15]StoreOFDPacket docnum=260620 [11:10:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 7E 94 07 01 16 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 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 9A D6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0C FA 03 00 35 04 06 00 00 1C 88 BE 50 B7 F2 7E 55 7A 79 D2 E6 B5 [11:10:15]CheckFolder [11:10:15]dirname=/storage/ofd_packets [11:10:15]CheckFolder done [11:10:15]ProducePacketName [11:10:15]name=ofd_packets/00260620 [11:10:15]NVStorageSaveData ofd_packets/00260620 [11:10:15]File name is /storage/ofd_packets/00260620 [11:10:15]Write 301 bytes [11:10:15]NVStorageSaveData done [11:10:15]OFDSenderStorePacket done [11:10:15]KKMCreateOFDPacket done [11:10:15]NVStorageSaveData kkm_last_timestamp [11:10:15]File name is /storage/kkm_last_timestamp [11:10:15]Write 4 bytes [11:10:15]NVStorageSaveData done [11:10:15]ExternCall_PrintAddStr [11:10:15]wPrintStart [11:10:15]Write to MH i2c: 01 00 00 BB 6E 29 [11:10:15]Write i2c OK [11:10:15]MH_I2C_Read... [11:10:15]Read from MH i2c: 01 [11:10:15]MH_I2C_Read... [11:10:15]Read from MH i2c: 01 07 00 [11:10:15]MH_I2C_Read... [11:10:15]Read from MH i2c: 01 07 00 BB 6E 00 00 00 00 00 FF 0F 3E [11:10:15]RasterBufferAndPrint [11:10:15]line Счет N : (1)1036168 [11:10:15]line ИНН: 02508201610067 [11:10:15]line Контрольно-Кассовый Чек [11:10:15]line ПРОДАЖА [11:10:15]line ТРК (МРК, ГНК) : 23 [11:10:15]line Товар: 2710124500 [11:10:15]line Аи-95-К-5 [11:10:15]line 4.050 * 74.20 [11:10:15]line = 300.51 [11:10:15]line НДС 12% НСП 1% [11:10:15]line > о реализуемом товаре [11:10:15]line ОКРУГЛЕНИЕ: -0.51 [11:10:15]line ИТОГО: 300.00 [11:10:15]line Внесено: 300.00 [11:10:15]line СДАЧА: 0.00 [11:10:15]line НСП 1% : 2.66 [11:10:15]line НДС 12% : 31.91 [11:10:15]line Наличными: 300.00 [11:10:15]line Безнал.: 0.00 [11:10:15]line Место: АЗС № 94 "Партнер Нефть" [11:10:15]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:10:15]line СНО: Общий режим [11:10:15]line Чек 178 18.08.2024 11:10 [11:10:15]line Смена: 449 ФФД: 1.0 [11:10:15]line ЗНМ: 0300000099 [11:10:15]line РНМ: 0000000000091865 [11:10:15]line Версия ККМ: 001 [11:10:15]line ФМ: 0000000000871820 [11:10:15]line ФД: 260620 [11:10:15]line ФПД: 122553258167 [11:10:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T111018&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260620&fm=122553258167&tin=02508201610067®Number=0000000000091865&sum=30000 [11:10:15]written 0, free lines is 4095 [11:10:15]OFD Sender: Processing packet 260620 [packets to send 192, broken 191] [11:10:15]ProducePacketName [11:10:15]name=ofd_packets/00260620 [11:10:15]OFD Sender: To server: pG, [11:10:15]CommunicateWithHost lk.salyk.kg:30040 [11:10:15]ConnectInit lk.salyk.kg [11:10:16]Connected sock=10 [11:10: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 30 0F 01 00 00 7E 94 07 01 16 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 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 9A D6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0C FA 03 00 35 04 06 00 00 1C 88 BE 50 B7 F2 7E 55 7A 79 D2 E6 B5 [11:10: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 30 4F 00 00 00 F9 83 47 00 69 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 30 10 04 04 00 0C FA 03 00 F4 03 04 00 EF 7F C1 66 B6 04 01 00 00 44 3D 1B B6 29 EE 08 49 [11:10:16]CommunicateWithHost err = 0 [11:10:16]CheckOFDResponse [11:10:16]1017 (14) - 77093643461234 [11:10:16]1041 (16) - 0000000000871820 [11:10:16]1040 (4) - 260620 [11:10:16]1012 (4) - 18.08.2024 05:00 [11:10:16]1206 (1) - 0 [11:10:16]OFD Sender: Remove packet 260620 [11:10:16]ProducePacketName [11:10:16]name=ofd_packets/00260620 [11:10:16]NVStorageDeleteData [11:10:16]Write to MH i2c: 01 00 00 E6 6E 54 [11:10:16]Write i2c OK [11:10:16]MH_I2C_Read... [11:10:16]Read from MH i2c: 01 [11:10:16]MH_I2C_Read... [11:10:16]Read from MH i2c: 01 07 00 [11:10:16]MH_I2C_Read... [11:10:16]Read from MH i2c: 01 07 00 E6 6E 00 00 00 00 00 73 0C DA [11:10:16]RasterBufferAndPrint [11:10:16]line [11:10:16]line [11:10:16]line [11:10:16]line [11:10:16]line [11:10:16]written 0, free lines is 3190 [11:10:16]MH_Cut [11:10:16]Write to MH i2c: D1 01 00 ED 6E 01 2D [11:10:16]Write i2c OK [11:10:16]MH_I2C_Read... [11:10:16]Read from MH i2c: D1 [11:10:16]MH_I2C_Read... [11:10:16]Read from MH i2c: D1 01 00 [11:10:16]MH_I2C_Read... [11:10:16]Read from MH i2c: D1 01 00 ED 6E 00 2C [11:10:16]Write to MH i2c: 01 00 00 EE 6E 5C [11:10:16]Write i2c OK [11:10:16]MH_I2C_Read... [11:10:16]OFD Sender: No OFD packet to send [11:10:17]*** Cut start [11:10:17]*** Purtial cut [11:10:17]*** Stage 1: CUTSNS_PIN = 1 [11:10:19]Read from MH i2c: 01 [11:10:19]MH_I2C_Read... [11:10:19]*** Stop cut motor [11:10:19]*** Cut end [11:10:19]Read from MH i2c: 01 07 00 [11:10:19]MH_I2C_Read... [11:10:19]Read from MH i2c: 01 07 00 EE 6E 00 00 00 00 00 FF 0F 71 [11:10:19]process_action close_receipt done [11:10:19]requested_data is exist [11:10:19]produce_requested_data [11:10:19]requested_item fm.sn is exist - process it [11:10:19]wFMCommunicate request_size=4 [11:10:19]MH_SAM_APDU [11:10:19]CAPDU: 80 11 00 00 [11:10:19]Write to MH i2c: E2 08 00 EF 6E 80 11 00 00 00 00 00 00 D7 [11:10:19]Write i2c OK [11:10:19]MH_I2C_Read... [11:10:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:19]Read from MH i2c: E2 [11:10:19]MH_I2C_Read... [11:10:19]Read from MH i2c: E2 17 00 [11:10:19]MH_I2C_Read... [11:10:19]Read from MH i2c: E2 17 00 EF 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 24 [11:10:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:10:19]wFMCommunicate OK [11:10:19]requested_item fd.num is exist - process it [11:10:19]SAM_PROTO_GetFieldsCounters [11:10:19]wFMCommunicate request_size=4 [11:10:19]MH_SAM_APDU [11:10:19]CAPDU: 80 13 00 00 [11:10:19]Write to MH i2c: E2 08 00 F0 6E 80 13 00 00 00 00 00 00 DA [11:10:19]Write i2c OK [11:10:19]MH_I2C_Read... [11:10:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:19]Read from MH i2c: E2 [11:10:19]MH_I2C_Read... [11:10:19]Read from MH i2c: E2 62 00 [11:10:19]MH_I2C_Read... [11:10:19]Read from MH i2c: E2 62 00 F0 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 0C FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [11:10: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 0C FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:10:19]wFMCommunicate OK [11:10:19]SAM_PROTO_GetFieldsCounters done [11:10:19]requested_item shift.num is exist - process it [11:10:19]requested_item shift.opened is exist - process it [11:10:19]req_shift_opened [11:10:19]FM_GetShiftState [11:10:19]SAM_PROTO_GetShiftState [11:10:19]wFMCommunicate request_size=4 [11:10:19]MH_SAM_APDU [11:10:19]CAPDU: 80 13 01 00 [11:10:19]Write to MH i2c: E2 08 00 F1 6E 80 13 01 00 00 00 00 00 DC [11:10:19]Write i2c OK [11:10:19]MH_I2C_Read... [11:10:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:19]Read from MH i2c: E2 [11:10:19]MH_I2C_Read... [11:10:19]Read from MH i2c: E2 0E 00 [11:10:19]MH_I2C_Read... [11:10:19]Read from MH i2c: E2 0E 00 F1 6E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 19 [11:10:19]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:10:19]wFMCommunicate OK [11:10:19]SAM_PROTO_GetShiftState done [11:10:19]FM_GetShiftState done [11:10:19]req_shift_opened done [11:10:19]requested_item shift.open_date is exist - process it [11:10:19]req_shift_open_date [11:10:19]req_shift_open_date done [11:10:19]produce_requested_data done [11:10:19]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260620,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:10:19]process_action_free close_receipt [11:10:19]json_value_free [11:10:19]json_value_free done [11:10:19]process_json_proto returns [11:10:19]Send response to host [11:10:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260620,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:10:19]free response buf [11:10:19]execute_script done [11:10:19]execute_script returns [11:10:19]free content buf [11:10:19]Sock 7.Close socket [11:10:19]Sock 7.Thread stoped [11:10:20]accept exits with 9 [11:10:20]New connection [11:10:20]New thread 3066617188 created [11:10:20]Thread 3066473828 joined [11:10:20]Waiting for new connection... [11:10:20] Sock 9.Parse request [11:10:20]Sock 9.Check first char [11:10:20]Sock 9.First char is OK [11:10:20]request: POST /json_proto HTTP/1.0 [11:10:20]Method: POST [11:10:20]URL: /json_proto [11:10:20]Method is POST - this is cgi request [11:10:20]url: /json_proto [11:10:20]query_string will be loaded in cgi processing [11:10:20]execute_cgi json_proto POST (null) [11:10:20]execute_cgi path=json_proto method=POST [11:10:20]POST find Content-Length [11:10:20]Host: 172.17.55.133:8080 [11:10:20]Content-Length: 683 [11:10:20]Content-Type: application/json [11:10:20] [11:10:20]POST finish read [11:10:20]Found Content-Length = 683 [11:10:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036167", "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" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:20]execute_script... [11:10: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)1036167", "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" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:20]POST & json_proto [11:10:20]process_json_proto [11:10:20]json parsed OK: [11:10:20]protocol is kg_v1.0 [11:10:20]action value=close_receipt [11:10:20]process_action close_receipt [11:10:20]cmd_close_receipt [11:10:20]MH_GetDate [11:10:20]Write to MH i2c: F0 00 00 F2 6E 4F [11:10:20]Write i2c OK [11:10:20]MH_I2C_Read... [11:10:20]Read from MH i2c: F0 [11:10:20]MH_I2C_Read... [11:10:20]Read from MH i2c: F0 09 00 [11:10:20]MH_I2C_Read... [11:10:20]Read from MH i2c: F0 09 00 F2 6E 00 A0 D6 C1 66 34 48 D8 65 AE [11:10:20]GetLastDocTimeStamp 1723979418 [11:10:20]current date 1723979424 [11:10:20]FM_GetShiftState [11:10:20]SAM_PROTO_GetShiftState [11:10:20]wFMCommunicate request_size=4 [11:10:20]MH_SAM_APDU [11:10:20]CAPDU: 80 13 01 00 [11:10:20]Write to MH i2c: E2 08 00 F3 6E 80 13 01 00 00 00 00 00 DE [11:10:20]Write i2c OK [11:10:20]MH_I2C_Read... [11:10:20]Read from MH i2c: E2 [11:10:20]MH_I2C_Read... [11:10:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:20]Read from MH i2c: E2 0E 00 [11:10:20]MH_I2C_Read... [11:10:20]Read from MH i2c: E2 0E 00 F3 6E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 1B [11:10:20]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:10:20]wFMCommunicate OK [11:10:20]SAM_PROTO_GetShiftState done [11:10:20]FM_GetShiftState done [11:10:20]opened in 1723940556 [11:10:20]opened+sec_in_day 1724026956 [11:10:20]quantity*price = 300064 [11:10:20]sum+1 = 300066 [11:10:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 179 18.08.2024 11:10 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260621 ФПД: 69551205710845 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T111024&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260621&fm=69551205710845&tin=02508201610067®Number=0000000000091865&sum=300000 [11:10:21]StoreToDocumentArchive [11:10:21]shift 449 fd 260621 [11:10:21]save to /storage/0449/doc_00260621 [11:10:21]save last doc name /storage/0449/doc_00260621 to /storage/kkm_last_doc_name [11:10:21]save OK [11:10:21]Clear old archive folders... [11:10:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:10:21]tlvbuf is 00387A80 [11:10:21]SAM_PROTO_ClearQueue [11:10:21]wFMCommunicate request_size=4 [11:10:21]MH_SAM_APDU [11:10:21]CAPDU: 80 09 00 00 [11:10:21]Write to MH i2c: E2 08 00 00 6F 80 09 00 00 00 00 00 00 E1 [11:10:21]Write i2c OK [11:10:21]MH_I2C_Read... [11:10:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:21]Read from MH i2c: E2 [11:10:21]MH_I2C_Read... [11:10:21]Read from MH i2c: E2 03 00 [11:10:21]MH_I2C_Read... [11:10:21]Read from MH i2c: E2 03 00 00 6F 00 90 00 E3 [11:10:21]RAPDU: 90 00 [11:10:21]wFMCommunicate OK [11:10:21]SAM_PROTO_ClearQueue done [11:10:21]KKMCreateOFDPacket [11:10:21]OFDProtocolAddRootSTLVToBuf [11:10:21]FM_MakeSignedData [11:10:21]FM_MakeSignedData [11:10:21]SAM_PROTO_SignData [11:10:21]wFMCommunicate request_size=4 [11:10:21]MH_SAM_APDU [11:10:21]CAPDU: 80 0D 01 02 [11:10:21]Write to MH i2c: E2 08 00 01 6F 80 0D 01 02 00 00 00 00 E9 [11:10:21]Write i2c OK [11:10:21]MH_I2C_Read... [11:10:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:21]Read from MH i2c: E2 [11:10:21]MH_I2C_Read... [11:10:21]Read from MH i2c: E2 03 00 [11:10:21]MH_I2C_Read... [11:10:21]Read from MH i2c: E2 03 00 01 6F 00 90 00 E4 [11:10:21]RAPDU: 90 00 [11:10:21]wFMCommunicate OK [11:10:21]wFMCommunicate request_size=255 [11:10:21]MH_SAM_APDU [11:10: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 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 B3 00 00 00 F4 03 04 00 A0 D6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0D FA 03 00 35 04 06 00 3F [11:10:21]Write to MH i2c: E2 02 01 02 6F 80 0D 02 02 FA 00 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 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 B3 00 00 00 F4 03 04 00 A0 D6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0D FA 03 00 35 04 06 00 3F 00 00 02 [11:10:21]Write i2c OK [11:10:21]MH_I2C_Read... [11:10:21]OFD Sender: No OFD packet to send [11:10:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:22]Read from MH i2c: E2 [11:10:22]MH_I2C_Read... [11:10:22]Read from MH i2c: E2 03 00 [11:10:22]MH_I2C_Read... [11:10:22]Read from MH i2c: E2 03 00 02 6F 00 90 00 E5 [11:10:22]RAPDU: 90 00 [11:10:22]wFMCommunicate OK [11:10:22]wFMCommunicate request_size=10 [11:10:22]MH_SAM_APDU [11:10:22]CAPDU: 80 0D 02 02 05 41 A6 E8 FB FD [11:10:22]Write to MH i2c: E2 0D 00 03 6F 80 0D 02 02 05 00 41 A6 E8 FB FD 00 00 BD [11:10:22]Write i2c OK [11:10:22]MH_I2C_Read... [11:10:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:22]Read from MH i2c: E2 [11:10:22]MH_I2C_Read... [11:10:22]Read from MH i2c: E2 03 00 [11:10:22]MH_I2C_Read... [11:10:22]Read from MH i2c: E2 03 00 03 6F 00 90 00 E6 [11:10:22]RAPDU: 90 00 [11:10:22]wFMCommunicate OK [11:10:22]wFMCommunicate request_size=4 [11:10:22]MH_SAM_APDU [11:10:22]CAPDU: 80 0D 03 02 [11:10:22]Write to MH i2c: E2 08 00 04 6F 80 0D 03 02 00 00 00 00 EE [11:10:22]Write i2c OK [11:10:22]MH_I2C_Read... [11:10:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:22]Read from MH i2c: E2 [11:10:22]MH_I2C_Read... [11:10:22]Read from MH i2c: E2 0B 00 [11:10:22]MH_I2C_Read... [11:10:22]Read from MH i2c: E2 0B 00 04 6F 00 99 C3 E9 B9 80 09 10 98 90 00 1E [11:10:22]RAPDU: 99 C3 E9 B9 80 09 10 98 90 00 [11:10:22]wFMCommunicate OK [11:10:22]SAM_PROTO_SignData done [11:10:22]FM_MakeSignedData done [11:10:22]CreateOFDProtocolMessage [11:10:22]wFMCommunicate request_size=4 [11:10:22]MH_SAM_APDU [11:10:22]CAPDU: 80 11 00 00 [11:10:22]Write to MH i2c: E2 08 00 05 6F 80 11 00 00 00 00 00 00 EE [11:10:22]Write i2c OK [11:10:22]MH_I2C_Read... [11:10:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:22]Read from MH i2c: E2 [11:10:22]MH_I2C_Read... [11:10:22]Read from MH i2c: E2 17 00 [11:10:22]MH_I2C_Read... [11:10:22]Read from MH i2c: E2 17 00 05 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 3B [11:10:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:10:22]wFMCommunicate OK [11:10:22]CreateOFDProtocolMessage done [11:10:22]OFDSenderStorePacket 260621 [11:10:22]StoreOFDPacket docnum=260621 [11:10:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 E7 58 07 01 B0 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 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 B3 00 00 00 F4 03 04 00 A0 D6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0D FA 03 00 35 04 06 00 3F 41 A6 E8 FB FD 99 C3 E9 B9 80 09 10 98 [11:10:22]CheckFolder [11:10:22]dirname=/storage/ofd_packets [11:10:22]CheckFolder done [11:10:22]ProducePacketName [11:10:22]name=ofd_packets/00260621 [11:10:22]NVStorageSaveData ofd_packets/00260621 [11:10:22]File name is /storage/ofd_packets/00260621 [11:10:22]Write 301 bytes [11:10:22]NVStorageSaveData done [11:10:22]OFDSenderStorePacket done [11:10:22]KKMCreateOFDPacket done [11:10:22]NVStorageSaveData kkm_last_timestamp [11:10:22]File name is /storage/kkm_last_timestamp [11:10:22]Write 4 bytes [11:10:22]NVStorageSaveData done [11:10:22]ExternCall_PrintAddStr [11:10:22]wPrintStart [11:10:22]Write to MH i2c: 01 00 00 06 6F 75 [11:10:22]Write i2c OK [11:10:22]MH_I2C_Read... [11:10:22]Read from MH i2c: 01 [11:10:22]MH_I2C_Read... [11:10:22]Read from MH i2c: 01 07 00 [11:10:22]MH_I2C_Read... [11:10:22]Read from MH i2c: 01 07 00 06 6F 00 00 00 00 00 FF 0F 8A [11:10:22]RasterBufferAndPrint [11:10:22]line Счет N : (1)1036167 [11:10:22]line ИНН: 02508201610067 [11:10:22]line Контрольно-Кассовый Чек [11:10:22]line ПРОДАЖА [11:10:22]line ТРК (МРК, ГНК) : 13 [11:10:22]line Товар: 2710124500 [11:10:22]line Аи-95-К-5 [11:10:22]line 40.440 * 74.20 [11:10:22]line = 3000.65 [11:10:22]line НДС 12% НСП 1% [11:10:22]line > о реализуемом товаре [11:10:22]line ОКРУГЛЕНИЕ: -0.65 [11:10:22]line ИТОГО: 3000.00 [11:10:22]line Внесено: 3000.00 [11:10:22]line СДАЧА: 0.00 [11:10:22]line НСП 1% : 26.55 [11:10:22]line НДС 12% : 318.65 [11:10:22]line Наличными: 3000.00 [11:10:22]line Безнал.: 0.00 [11:10:22]line Место: АЗС № 94 "Партнер Нефть" [11:10:22]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:10:22]line СНО: Общий режим [11:10:22]line Чек 179 18.08.2024 11:10 [11:10:22]line Смена: 449 ФФД: 1.0 [11:10:22]line ЗНМ: 0300000099 [11:10:22]line РНМ: 0000000000091865 [11:10:22]line Версия ККМ: 001 [11:10:22]line ФМ: 0000000000871820 [11:10:22]line ФД: 260621 [11:10:22]line ФПД: 69551205710845 [11:10:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T111024&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260621&fm=69551205710845&tin=02508201610067®Number=0000000000091865&sum=300000 [11:10:22]OFD Sender: Processing packet 260621 [packets to send 192, broken 191] [11:10:22]ProducePacketName [11:10:22]name=ofd_packets/00260621 [11:10:22]OFD Sender: To server: pG, [11:10:22]CommunicateWithHost lk.salyk.kg:30040 [11:10:22]ConnectInit lk.salyk.kg [11:10:22]written 0, free lines is 4095 [11:10:22]Connected sock=10 [11:10: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 30 0F 01 00 00 E7 58 07 01 B0 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 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 B3 00 00 00 F4 03 04 00 A0 D6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0D FA 03 00 35 04 06 00 3F 41 A6 E8 FB FD 99 C3 E9 B9 80 09 10 98 [11:10: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 30 4F 00 00 00 BF 1E 47 00 3F BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0D FA 03 00 F4 03 04 00 F6 7F C1 66 B6 04 01 00 00 0F B4 E4 BA 86 76 27 B1 [11:10:22]CommunicateWithHost err = 0 [11:10:22]CheckOFDResponse [11:10:22]1017 (14) - 77093643461234 [11:10:22]1041 (16) - 0000000000871820 [11:10:22]1040 (4) - 260621 [11:10:22]1012 (4) - 18.08.2024 05:00 [11:10:22]1206 (1) - 0 [11:10:22]OFD Sender: Remove packet 260621 [11:10:22]ProducePacketName [11:10:22]name=ofd_packets/00260621 [11:10:22]NVStorageDeleteData [11:10:22]Write to MH i2c: 01 00 00 31 6F A0 [11:10:22]Write i2c OK [11:10:22]MH_I2C_Read... [11:10:22]Read from MH i2c: 01 [11:10:22]MH_I2C_Read... [11:10:22]Read from MH i2c: 01 07 00 [11:10:22]MH_I2C_Read... [11:10:22]Read from MH i2c: 01 07 00 31 6F 00 00 00 00 00 6B 0C 1E [11:10:22]RasterBufferAndPrint [11:10:22]line [11:10:22]line [11:10:22]line [11:10:22]line [11:10:22]line [11:10:22]written 0, free lines is 3184 [11:10:23]MH_Cut [11:10:23]Write to MH i2c: D1 01 00 38 6F 01 79 [11:10:23]Write i2c OK [11:10:23]MH_I2C_Read... [11:10:23]Read from MH i2c: D1 [11:10:23]MH_I2C_Read... [11:10:23]Read from MH i2c: D1 01 00 [11:10:23]MH_I2C_Read... [11:10:23]Read from MH i2c: D1 01 00 38 6F 00 78 [11:10:23]Write to MH i2c: 01 00 00 39 6F A8 [11:10:23]Write i2c OK [11:10:23]MH_I2C_Read... [11:10:23]OFD Sender: No OFD packet to send [11:10:24]*** Cut start [11:10:24]*** Purtial cut [11:10:24]*** Stage 1: CUTSNS_PIN = 1 [11:10:26]Read from MH i2c: 01 [11:10:26]MH_I2C_Read... [11:10:26]*** Stop cut motor [11:10:26]*** Cut end [11:10:26]Read from MH i2c: 01 07 00 [11:10:26]MH_I2C_Read... [11:10:26]Read from MH i2c: 01 07 00 39 6F 00 00 00 00 00 FF 0F BD [11:10:26]process_action close_receipt done [11:10:26]requested_data is exist [11:10:26]produce_requested_data [11:10:26]requested_item fm.sn is exist - process it [11:10:26]wFMCommunicate request_size=4 [11:10:26]MH_SAM_APDU [11:10:26]CAPDU: 80 11 00 00 [11:10:26]Write to MH i2c: E2 08 00 3A 6F 80 11 00 00 00 00 00 00 23 [11:10:26]Write i2c OK [11:10:26]MH_I2C_Read... [11:10:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:26]Read from MH i2c: E2 [11:10:26]MH_I2C_Read... [11:10:26]Read from MH i2c: E2 17 00 [11:10:26]MH_I2C_Read... [11:10:26]Read from MH i2c: E2 17 00 3A 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 70 [11:10:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:10:26]wFMCommunicate OK [11:10:26]requested_item fd.num is exist - process it [11:10:26]SAM_PROTO_GetFieldsCounters [11:10:26]wFMCommunicate request_size=4 [11:10:26]MH_SAM_APDU [11:10:26]CAPDU: 80 13 00 00 [11:10:26]Write to MH i2c: E2 08 00 3B 6F 80 13 00 00 00 00 00 00 26 [11:10:26]Write i2c OK [11:10:26]MH_I2C_Read... [11:10:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:26]Read from MH i2c: E2 [11:10:26]MH_I2C_Read... [11:10:26]Read from MH i2c: E2 62 00 [11:10:26]MH_I2C_Read... [11:10:26]Read from MH i2c: E2 62 00 3B 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 0D FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [11:10: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 0D FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:10:26]wFMCommunicate OK [11:10:26]SAM_PROTO_GetFieldsCounters done [11:10:26]requested_item shift.num is exist - process it [11:10:26]requested_item shift.opened is exist - process it [11:10:26]req_shift_opened [11:10:26]FM_GetShiftState [11:10:26]SAM_PROTO_GetShiftState [11:10:26]wFMCommunicate request_size=4 [11:10:26]MH_SAM_APDU [11:10:26]CAPDU: 80 13 01 00 [11:10:26]Write to MH i2c: E2 08 00 3C 6F 80 13 01 00 00 00 00 00 28 [11:10:26]Write i2c OK [11:10:26]MH_I2C_Read... [11:10:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:26]Read from MH i2c: E2 [11:10:26]MH_I2C_Read... [11:10:26]Read from MH i2c: E2 0E 00 [11:10:26]MH_I2C_Read... [11:10:26]Read from MH i2c: E2 0E 00 3C 6F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 65 [11:10:26]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:10:26]wFMCommunicate OK [11:10:26]SAM_PROTO_GetShiftState done [11:10:26]FM_GetShiftState done [11:10:26]req_shift_opened done [11:10:26]requested_item shift.open_date is exist - process it [11:10:26]req_shift_open_date [11:10:26]req_shift_open_date done [11:10:26]produce_requested_data done [11:10:26]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260621,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:10:26]process_action_free close_receipt [11:10:26]json_value_free [11:10:26]json_value_free done [11:10:26]process_json_proto returns [11:10:26]Send response to host [11:10:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260621,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:10:26]free response buf [11:10:26]execute_script done [11:10:26]execute_script returns [11:10:26]free content buf [11:10:26]Sock 9.Close socket [11:10:26]Sock 9.Thread stoped [11:10:28]OFD Sender: No OFD packet to send [11:10:33]OFD Sender: No OFD packet to send [11:10:38]OFD Sender: No OFD packet to send [11:10:43]OFD Sender: No OFD packet to send [11:10:48]OFD Sender: No OFD packet to send [11:10:53]OFD Sender: No OFD packet to send [11:10:58]OFD Sender: No OFD packet to send [11:11:03]OFD Sender: No OFD packet to send [11:11:08]OFD Sender: No OFD packet to send [11:11:13]OFD Sender: No OFD packet to send [11:11:15]accept exits with 7 [11:11:15]New connection [11:11:15]New thread 3066473828 created [11:11:15]Thread 3066617188 joined [11:11:15]Waiting for new connection... [11:11:15] Sock 7.Parse request [11:11:15]Sock 7.Check first char [11:11:15]Sock 7.First char is OK [11:11:15]request: POST /json_proto HTTP/1.0 [11:11:15]Method: POST [11:11:15]URL: /json_proto [11:11:15]Method is POST - this is cgi request [11:11:15]url: /json_proto [11:11:15]query_string will be loaded in cgi processing [11:11:15]execute_cgi json_proto POST (null) [11:11:15]execute_cgi path=json_proto method=POST [11:11:15]POST find Content-Length [11:11:15]Host: 172.17.55.133:8080 [11:11:15]Content-Length: 801 [11:11:15]Content-Type: application/json [11:11:15] [11:11:15]POST finish read [11:11:15]Found Content-Length = 801 [11:11:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:15]execute_script... [11:11: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)1036169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:15]POST & json_proto [11:11:15]process_json_proto [11:11:15]json parsed OK: [11:11:15]protocol is kg_v1.0 [11:11:15]action value=close_receipt [11:11:15]process_action close_receipt [11:11:15]cmd_close_receipt [11:11:15]MH_GetDate [11:11:15]Write to MH i2c: F0 00 00 3D 6F 9B [11:11:15]Write i2c OK [11:11:15]MH_I2C_Read... [11:11:15]Read from MH i2c: F0 [11:11:15]MH_I2C_Read... [11:11:15]Read from MH i2c: F0 09 00 [11:11:15]MH_I2C_Read... [11:11:15]Read from MH i2c: F0 09 00 3D 6F 00 D7 D6 C1 66 34 48 D8 65 31 [11:11:15]GetLastDocTimeStamp 1723979424 [11:11:15]current date 1723979479 [11:11:15]FM_GetShiftState [11:11:15]SAM_PROTO_GetShiftState [11:11:15]wFMCommunicate request_size=4 [11:11:15]MH_SAM_APDU [11:11:15]CAPDU: 80 13 01 00 [11:11:15]Write to MH i2c: E2 08 00 3E 6F 80 13 01 00 00 00 00 00 2A [11:11:15]Write i2c OK [11:11:15]MH_I2C_Read... [11:11:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:15]Read from MH i2c: E2 [11:11:15]MH_I2C_Read... [11:11:15]Read from MH i2c: E2 0E 00 [11:11:15]MH_I2C_Read... [11:11:15]Read from MH i2c: E2 0E 00 3E 6F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 67 [11:11:15]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:11:15]wFMCommunicate OK [11:11:15]SAM_PROTO_GetShiftState done [11:11:15]FM_GetShiftState done [11:11:15]opened in 1723940556 [11:11:15]opened+sec_in_day 1724026956 [11:11:15]quantity*price = 50036 [11:11:15]sum+1 = 50037 [11:11:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 180 18.08.2024 11:11 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260622 ФПД: 66159844470720 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T111119&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260622&fm=66159844470720&tin=02508201610067®Number=0000000000091865&sum=50036 [11:11:16]StoreToDocumentArchive [11:11:16]shift 449 fd 260622 [11:11:16]save to /storage/0449/doc_00260622 [11:11:16]save last doc name /storage/0449/doc_00260622 to /storage/kkm_last_doc_name [11:11:16]save OK [11:11:16]Clear old archive folders... [11:11:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:11:16]tlvbuf is 00540CC0 [11:11:16]SAM_PROTO_ClearQueue [11:11:16]wFMCommunicate request_size=4 [11:11:16]MH_SAM_APDU [11:11:16]CAPDU: 80 09 00 00 [11:11:16]Write to MH i2c: E2 08 00 4B 6F 80 09 00 00 00 00 00 00 2C [11:11:16]Write i2c OK [11:11:16]MH_I2C_Read... [11:11:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:16]Read from MH i2c: E2 [11:11:16]MH_I2C_Read... [11:11:16]Read from MH i2c: E2 03 00 [11:11:16]MH_I2C_Read... [11:11:16]Read from MH i2c: E2 03 00 4B 6F 00 90 00 2E [11:11:16]RAPDU: 90 00 [11:11:16]wFMCommunicate OK [11:11:16]SAM_PROTO_ClearQueue done [11:11:16]KKMCreateOFDPacket [11:11:16]OFDProtocolAddRootSTLVToBuf [11:11:16]FM_MakeSignedData [11:11:16]FM_MakeSignedData [11:11:16]SAM_PROTO_SignData [11:11:16]wFMCommunicate request_size=4 [11:11:16]MH_SAM_APDU [11:11:16]CAPDU: 80 0D 01 02 [11:11:16]Write to MH i2c: E2 08 00 4C 6F 80 0D 01 02 00 00 00 00 34 [11:11:16]Write i2c OK [11:11:16]MH_I2C_Read... [11:11:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:16]Read from MH i2c: E2 [11:11:16]MH_I2C_Read... [11:11:16]Read from MH i2c: E2 03 00 [11:11:16]MH_I2C_Read... [11:11:16]Read from MH i2c: E2 03 00 4C 6F 00 90 00 2F [11:11:16]RAPDU: 90 00 [11:11:16]wFMCommunicate OK [11:11:16]wFMCommunicate request_size=255 [11:11:16]MH_SAM_APDU [11:11:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 D7 D6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0E FA 03 00 35 04 06 00 3C [11:11:16]Write to MH i2c: E2 02 01 4D 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 D7 D6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0E FA 03 00 35 04 06 00 3C 00 00 8A [11:11:16]Write i2c OK [11:11:16]MH_I2C_Read... [11:11:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:16]Read from MH i2c: E2 [11:11:16]MH_I2C_Read... [11:11:16]Read from MH i2c: E2 03 00 [11:11:16]MH_I2C_Read... [11:11:16]Read from MH i2c: E2 03 00 4D 6F 00 90 00 30 [11:11:16]RAPDU: 90 00 [11:11:16]wFMCommunicate OK [11:11:16]wFMCommunicate request_size=10 [11:11:16]MH_SAM_APDU [11:11:16]CAPDU: 80 0D 02 02 05 2C 0A 07 2F C0 [11:11:16]Write to MH i2c: E2 0D 00 4E 6F 80 0D 02 02 05 00 2C 0A 07 2F C0 00 00 6D [11:11:16]Write i2c OK [11:11:16]MH_I2C_Read... [11:11:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:16]Read from MH i2c: E2 [11:11:16]MH_I2C_Read... [11:11:16]Read from MH i2c: E2 03 00 [11:11:16]MH_I2C_Read... [11:11:16]Read from MH i2c: E2 03 00 4E 6F 00 90 00 31 [11:11:16]RAPDU: 90 00 [11:11:16]wFMCommunicate OK [11:11:16]wFMCommunicate request_size=4 [11:11:16]MH_SAM_APDU [11:11:16]CAPDU: 80 0D 03 02 [11:11:16]Write to MH i2c: E2 08 00 4F 6F 80 0D 03 02 00 00 00 00 39 [11:11:16]Write i2c OK [11:11:16]MH_I2C_Read... [11:11:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:16]Read from MH i2c: E2 [11:11:16]MH_I2C_Read... [11:11:16]Read from MH i2c: E2 0B 00 [11:11:16]MH_I2C_Read... [11:11:16]Read from MH i2c: E2 0B 00 4F 6F 00 DF A4 54 D5 D3 CE 95 40 90 00 5C [11:11:16]RAPDU: DF A4 54 D5 D3 CE 95 40 90 00 [11:11:16]wFMCommunicate OK [11:11:16]SAM_PROTO_SignData done [11:11:16]FM_MakeSignedData done [11:11:16]CreateOFDProtocolMessage [11:11:16]wFMCommunicate request_size=4 [11:11:16]MH_SAM_APDU [11:11:16]CAPDU: 80 11 00 00 [11:11:16]Write to MH i2c: E2 08 00 50 6F 80 11 00 00 00 00 00 00 39 [11:11:16]Write i2c OK [11:11:16]MH_I2C_Read... [11:11:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:16]Read from MH i2c: E2 [11:11:16]MH_I2C_Read... [11:11:16]Read from MH i2c: E2 17 00 [11:11:16]MH_I2C_Read... [11:11:16]Read from MH i2c: E2 17 00 50 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 86 [11:11:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:11:16]wFMCommunicate OK [11:11:16]CreateOFDProtocolMessage done [11:11:16]OFDSenderStorePacket 260622 [11:11:16]StoreOFDPacket docnum=260622 [11:11:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 65 51 07 01 08 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 D7 D6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0E FA 03 00 35 04 06 00 3C 2C 0A 07 2F C0 DF A4 54 D5 D3 CE 95 40 [11:11:16]CheckFolder [11:11:16]dirname=/storage/ofd_packets [11:11:16]CheckFolder done [11:11:16]ProducePacketName [11:11:16]name=ofd_packets/00260622 [11:11:16]NVStorageSaveData ofd_packets/00260622 [11:11:16]File name is /storage/ofd_packets/00260622 [11:11:16]Write 301 bytes [11:11:16]NVStorageSaveData done [11:11:16]OFDSenderStorePacket done [11:11:16]KKMCreateOFDPacket done [11:11:16]NVStorageSaveData kkm_last_timestamp [11:11:16]File name is /storage/kkm_last_timestamp [11:11:16]Write 4 bytes [11:11:16]NVStorageSaveData done [11:11:16]ExternCall_PrintAddStr [11:11:16]wPrintStart [11:11:16]Write to MH i2c: 01 00 00 51 6F C0 [11:11:16]Write i2c OK [11:11:16]MH_I2C_Read... [11:11:16]Read from MH i2c: 01 [11:11:16]MH_I2C_Read... [11:11:16]Read from MH i2c: 01 07 00 [11:11:16]MH_I2C_Read... [11:11:16]Read from MH i2c: 01 07 00 51 6F 00 00 00 00 00 FF 0F D5 [11:11:16]RasterBufferAndPrint [11:11:16]line Счет N : (1)1036169 [11:11:16]line ИНН: 02508201610067 [11:11:16]line Контрольно-Кассовый Чек [11:11:16]line ПРОДАЖА [11:11:16]line ТРК (МРК, ГНК) : 42 [11:11:16]line Товар: 2710124130 [11:11:16]line Аи-92-К-5 [11:11:16]line 7.380 * 67.80 [11:11:16]line = 500.36 [11:11:16]line НДС 12% НСП 1% [11:11:16]line > о реализуемом товаре [11:11:16]line ИТОГО: 500.36 [11:11:16]line НСП 1% : 4.43 [11:11:16]line НДС 12% : 53.14 [11:11:16]line Наличными: 0.00 [11:11:16]line Безнал.: 500.36 [11:11:16]line Место: АЗС № 94 "Партнер Нефть" [11:11:16]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:11:16]line СНО: Общий режим [11:11:16]line Чек 180 18.08.2024 11:11 [11:11:16]line Смена: 449 ФФД: 1.0 [11:11:16]line ЗНМ: 0300000099 [11:11:16]line РНМ: 0000000000091865 [11:11:16]line Версия ККМ: 001 [11:11:16]line Платежная система: O! деньги [11:11:16]line ФМ: 0000000000871820 [11:11:16]line ФД: 260622 [11:11:16]line ФПД: 66159844470720 [11:11:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T111119&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260622&fm=66159844470720&tin=02508201610067®Number=0000000000091865&sum=50036 [11:11:16]written 0, free lines is 4095 [11:11:16]OFD Sender: Processing packet 260622 [packets to send 192, broken 191] [11:11:16]ProducePacketName [11:11:16]name=ofd_packets/00260622 [11:11:17]OFD Sender: To server: pG, [11:11:17]CommunicateWithHost lk.salyk.kg:30040 [11:11:17]ConnectInit lk.salyk.kg [11:11:17]Connected sock=10 [11:11: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 30 0F 01 00 00 65 51 07 01 08 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 D7 D6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0E FA 03 00 35 04 06 00 3C 2C 0A 07 2F C0 DF A4 54 D5 D3 CE 95 40 [11:11:17]Write to MH i2c: 01 00 00 7B 6F EA [11:11:17]Write i2c OK [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: 01 [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: 01 07 00 [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: 01 07 00 7B 6F 00 00 00 00 00 84 0C 81 [11:11:17]RasterBufferAndPrint [11:11:17]line [11:11:17]line [11:11:17]line [11:11:17]line [11:11:17]line [11:11:17]written 0, free lines is 3208 [11:11:17]MH_Cut [11:11:17]Write to MH i2c: D1 01 00 82 6F 01 C3 [11:11:17]Write i2c OK [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: D1 [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: D1 01 00 [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: D1 01 00 82 6F 00 C2 [11:11:17]Write to MH i2c: 01 00 00 83 6F F2 [11:11:17]Write i2c OK [11:11:17]MH_I2C_Read... [11:11: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 30 4F 00 00 00 AE 9C 47 00 49 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 30 10 04 04 00 0E FA 03 00 F4 03 04 00 2C 80 C1 66 B6 04 01 00 00 F2 A0 E1 6A 9B E4 44 20 [11:11:17]CommunicateWithHost err = 0 [11:11:17]CheckOFDResponse [11:11:17]1017 (14) - 77093643461234 [11:11:17]1041 (16) - 0000000000871820 [11:11:17]1040 (4) - 260622 [11:11:17]1012 (4) - 18.08.2024 05:01 [11:11:17]1206 (1) - 0 [11:11:17]OFD Sender: Remove packet 260622 [11:11:17]ProducePacketName [11:11:17]name=ofd_packets/00260622 [11:11:17]NVStorageDeleteData [11:11:17]OFD Sender: No OFD packet to send [11:11:18]*** Cut start [11:11:18]*** Purtial cut [11:11:18]*** Stage 1: CUTSNS_PIN = 1 [11:11:20]Read from MH i2c: 01 [11:11:20]MH_I2C_Read... [11:11:20]*** Stop cut motor [11:11:20]*** Cut end [11:11:20]Read from MH i2c: 01 07 00 [11:11:20]MH_I2C_Read... [11:11:20]Read from MH i2c: 01 07 00 83 6F 00 00 00 00 00 FF 0F 07 [11:11:20]process_action close_receipt done [11:11:20]requested_data is exist [11:11:20]produce_requested_data [11:11:20]requested_item fm.sn is exist - process it [11:11:20]wFMCommunicate request_size=4 [11:11:20]MH_SAM_APDU [11:11:20]CAPDU: 80 11 00 00 [11:11:20]Write to MH i2c: E2 08 00 84 6F 80 11 00 00 00 00 00 00 6D [11:11:20]Write i2c OK [11:11:20]MH_I2C_Read... [11:11:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:20]Read from MH i2c: E2 [11:11:20]MH_I2C_Read... [11:11:20]Read from MH i2c: E2 17 00 [11:11:20]MH_I2C_Read... [11:11:20]Read from MH i2c: E2 17 00 84 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 BA [11:11:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:11:20]wFMCommunicate OK [11:11:20]requested_item fd.num is exist - process it [11:11:20]SAM_PROTO_GetFieldsCounters [11:11:20]wFMCommunicate request_size=4 [11:11:20]MH_SAM_APDU [11:11:20]CAPDU: 80 13 00 00 [11:11:20]Write to MH i2c: E2 08 00 85 6F 80 13 00 00 00 00 00 00 70 [11:11:20]Write i2c OK [11:11:20]MH_I2C_Read... [11:11:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:20]Read from MH i2c: E2 [11:11:20]MH_I2C_Read... [11:11:20]Read from MH i2c: E2 62 00 [11:11:20]MH_I2C_Read... [11:11:20]Read from MH i2c: E2 62 00 85 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 0E FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [11:11: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 0E FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:11:20]wFMCommunicate OK [11:11:20]SAM_PROTO_GetFieldsCounters done [11:11:20]requested_item shift.num is exist - process it [11:11:20]requested_item shift.opened is exist - process it [11:11:20]req_shift_opened [11:11:20]FM_GetShiftState [11:11:20]SAM_PROTO_GetShiftState [11:11:20]wFMCommunicate request_size=4 [11:11:20]MH_SAM_APDU [11:11:20]CAPDU: 80 13 01 00 [11:11:20]Write to MH i2c: E2 08 00 86 6F 80 13 01 00 00 00 00 00 72 [11:11:20]Write i2c OK [11:11:20]MH_I2C_Read... [11:11:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:20]Read from MH i2c: E2 [11:11:20]MH_I2C_Read... [11:11:20]Read from MH i2c: E2 0E 00 [11:11:20]MH_I2C_Read... [11:11:20]Read from MH i2c: E2 0E 00 86 6F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 AF [11:11:20]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:11:20]wFMCommunicate OK [11:11:20]SAM_PROTO_GetShiftState done [11:11:20]FM_GetShiftState done [11:11:20]req_shift_opened done [11:11:20]requested_item shift.open_date is exist - process it [11:11:20]req_shift_open_date [11:11:20]req_shift_open_date done [11:11:20]produce_requested_data done [11:11:20]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260622,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:11:20]process_action_free close_receipt [11:11:20]json_value_free [11:11:20]json_value_free done [11:11:20]process_json_proto returns [11:11:20]Send response to host [11:11:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260622,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:11:20]free response buf [11:11:20]execute_script done [11:11:20]execute_script returns [11:11:20]free content buf [11:11:20]Sock 7.Close socket [11:11:20]Sock 7.Thread stoped [11:11:22]OFD Sender: No OFD packet to send [11:11:27]OFD Sender: No OFD packet to send [11:11:32]OFD Sender: No OFD packet to send [11:11:35]accept exits with 9 [11:11:35]New connection [11:11:35]New thread 3066617188 created [11:11:35]Thread 3066473828 joined [11:11:35]Waiting for new connection... [11:11:35] Sock 9.Parse request [11:11:35]Sock 9.Check first char [11:11:35]Sock 9.First char is OK [11:11:35]request: POST /json_proto HTTP/1.0 [11:11:35]Method: POST [11:11:35]URL: /json_proto [11:11:35]Method is POST - this is cgi request [11:11:35]url: /json_proto [11:11:35]query_string will be loaded in cgi processing [11:11:35]execute_cgi json_proto POST (null) [11:11:35]execute_cgi path=json_proto method=POST [11:11:35]POST find Content-Length [11:11:35]Host: 172.17.55.133:8080 [11:11:35]Content-Length: 678 [11:11:35]Content-Type: application/json [11:11:35] [11:11:35]POST finish read [11:11:35]Found Content-Length = 678 [11:11:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:11:35]execute_script... [11:11: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)1036170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:11:35]POST & json_proto [11:11:35]process_json_proto [11:11:35]json parsed OK: [11:11:35]protocol is kg_v1.0 [11:11:35]action value=close_receipt [11:11:35]process_action close_receipt [11:11:35]cmd_close_receipt [11:11:35]MH_GetDate [11:11:35]Write to MH i2c: F0 00 00 87 6F E5 [11:11:35]Write i2c OK [11:11:35]MH_I2C_Read... [11:11:35]Read from MH i2c: F0 [11:11:35]MH_I2C_Read... [11:11:35]Read from MH i2c: F0 09 00 [11:11:35]MH_I2C_Read... [11:11:35]Read from MH i2c: F0 09 00 87 6F 00 EB D6 C1 66 34 48 D8 65 8F [11:11:35]GetLastDocTimeStamp 1723979479 [11:11:35]current date 1723979499 [11:11:35]FM_GetShiftState [11:11:35]SAM_PROTO_GetShiftState [11:11:35]wFMCommunicate request_size=4 [11:11:35]MH_SAM_APDU [11:11:35]CAPDU: 80 13 01 00 [11:11:35]Write to MH i2c: E2 08 00 88 6F 80 13 01 00 00 00 00 00 74 [11:11:35]Write i2c OK [11:11:35]MH_I2C_Read... [11:11:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:35]Read from MH i2c: E2 [11:11:35]MH_I2C_Read... [11:11:35]Read from MH i2c: E2 0E 00 [11:11:35]MH_I2C_Read... [11:11:35]Read from MH i2c: E2 0E 00 88 6F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B1 [11:11:35]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:11:35]wFMCommunicate OK [11:11:35]SAM_PROTO_GetShiftState done [11:11:35]FM_GetShiftState done [11:11:35]opened in 1723940556 [11:11:35]opened+sec_in_day 1724026956 [11:11:35]quantity*price = 20001 [11:11:35]sum+1 = 20002 [11:11:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 181 18.08.2024 11:11 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260623 ФПД: 250966269166853 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T111139&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260623&fm=250966269166853&tin=02508201610067®Number=0000000000091865&sum=20000 [11:11:36]StoreToDocumentArchive [11:11:36]shift 449 fd 260623 [11:11:36]save to /storage/0449/doc_00260623 [11:11:36]save last doc name /storage/0449/doc_00260623 to /storage/kkm_last_doc_name [11:11:36]save OK [11:11:36]Clear old archive folders... [11:11:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:11:36]tlvbuf is 005407E0 [11:11:36]SAM_PROTO_ClearQueue [11:11:36]wFMCommunicate request_size=4 [11:11:36]MH_SAM_APDU [11:11:36]CAPDU: 80 09 00 00 [11:11:36]Write to MH i2c: E2 08 00 95 6F 80 09 00 00 00 00 00 00 76 [11:11:36]Write i2c OK [11:11:36]MH_I2C_Read... [11:11:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:36]Read from MH i2c: E2 [11:11:36]MH_I2C_Read... [11:11:36]Read from MH i2c: E2 03 00 [11:11:36]MH_I2C_Read... [11:11:36]Read from MH i2c: E2 03 00 95 6F 00 90 00 78 [11:11:36]RAPDU: 90 00 [11:11:36]wFMCommunicate OK [11:11:36]SAM_PROTO_ClearQueue done [11:11:36]KKMCreateOFDPacket [11:11:36]OFDProtocolAddRootSTLVToBuf [11:11:36]FM_MakeSignedData [11:11:36]FM_MakeSignedData [11:11:36]SAM_PROTO_SignData [11:11:36]wFMCommunicate request_size=4 [11:11:36]MH_SAM_APDU [11:11:36]CAPDU: 80 0D 01 02 [11:11:36]Write to MH i2c: E2 08 00 96 6F 80 0D 01 02 00 00 00 00 7E [11:11:36]Write i2c OK [11:11:36]MH_I2C_Read... [11:11:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:36]Read from MH i2c: E2 [11:11:36]MH_I2C_Read... [11:11:36]Read from MH i2c: E2 03 00 [11:11:36]MH_I2C_Read... [11:11:36]Read from MH i2c: E2 03 00 96 6F 00 90 00 79 [11:11:36]RAPDU: 90 00 [11:11:36]wFMCommunicate OK [11:11:36]wFMCommunicate request_size=255 [11:11:36]MH_SAM_APDU [11:11:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 EB D6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0F FA 03 00 35 04 06 00 E4 [11:11:36]Write to MH i2c: E2 02 01 97 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 EB D6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0F FA 03 00 35 04 06 00 E4 00 00 4C [11:11:36]Write i2c OK [11:11:36]MH_I2C_Read... [11:11:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:37]Read from MH i2c: E2 [11:11:37]MH_I2C_Read... [11:11:37]Read from MH i2c: E2 03 00 [11:11:37]MH_I2C_Read... [11:11:37]Read from MH i2c: E2 03 00 97 6F 00 90 00 7A [11:11:37]RAPDU: 90 00 [11:11:37]wFMCommunicate OK [11:11:37]wFMCommunicate request_size=10 [11:11:37]MH_SAM_APDU [11:11:37]CAPDU: 80 0D 02 02 05 40 A3 53 05 05 [11:11:37]Write to MH i2c: E2 0D 00 98 6F 80 0D 02 02 05 00 40 A3 53 05 05 00 00 CB [11:11:37]Write i2c OK [11:11:37]MH_I2C_Read... [11:11:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:37]Read from MH i2c: E2 [11:11:37]MH_I2C_Read... [11:11:37]Read from MH i2c: E2 03 00 [11:11:37]MH_I2C_Read... [11:11:37]Read from MH i2c: E2 03 00 98 6F 00 90 00 7B [11:11:37]RAPDU: 90 00 [11:11:37]wFMCommunicate OK [11:11:37]wFMCommunicate request_size=4 [11:11:37]MH_SAM_APDU [11:11:37]CAPDU: 80 0D 03 02 [11:11:37]Write to MH i2c: E2 08 00 99 6F 80 0D 03 02 00 00 00 00 83 [11:11:37]Write i2c OK [11:11:37]MH_I2C_Read... [11:11:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:37]Read from MH i2c: E2 [11:11:37]MH_I2C_Read... [11:11:37]Read from MH i2c: E2 0B 00 [11:11:37]MH_I2C_Read... [11:11:37]Read from MH i2c: E2 0B 00 99 6F 00 BE 4D 12 0F BB E8 84 BA 90 00 91 [11:11:37]RAPDU: BE 4D 12 0F BB E8 84 BA 90 00 [11:11:37]wFMCommunicate OK [11:11:37]SAM_PROTO_SignData done [11:11:37]FM_MakeSignedData done [11:11:37]CreateOFDProtocolMessage [11:11:37]wFMCommunicate request_size=4 [11:11:37]MH_SAM_APDU [11:11:37]CAPDU: 80 11 00 00 [11:11:37]Write to MH i2c: E2 08 00 9A 6F 80 11 00 00 00 00 00 00 83 [11:11:37]Write i2c OK [11:11:37]MH_I2C_Read... [11:11:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:37]Read from MH i2c: E2 [11:11:37]MH_I2C_Read... [11:11:37]Read from MH i2c: E2 17 00 [11:11:37]MH_I2C_Read... [11:11:37]Read from MH i2c: E2 17 00 9A 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D0 [11:11:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:11:37]wFMCommunicate OK [11:11:37]CreateOFDProtocolMessage done [11:11:37]OFDSenderStorePacket 260623 [11:11:37]StoreOFDPacket docnum=260623 [11:11:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 6C EF 07 01 9C 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 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 EB D6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0F FA 03 00 35 04 06 00 E4 40 A3 53 05 05 BE 4D 12 0F BB E8 84 BA [11:11:37]CheckFolder [11:11:37]dirname=/storage/ofd_packets [11:11:37]CheckFolder done [11:11:37]ProducePacketName [11:11:37]name=ofd_packets/00260623 [11:11:37]NVStorageSaveData ofd_packets/00260623 [11:11:37]File name is /storage/ofd_packets/00260623 [11:11:37]Write 301 bytes [11:11:37]NVStorageSaveData done [11:11:37]OFDSenderStorePacket done [11:11:37]KKMCreateOFDPacket done [11:11:37]NVStorageSaveData kkm_last_timestamp [11:11:37]File name is /storage/kkm_last_timestamp [11:11:37]Write 4 bytes [11:11:37]NVStorageSaveData done [11:11:37]ExternCall_PrintAddStr [11:11:37]wPrintStart [11:11:37]Write to MH i2c: 01 00 00 9B 6F 0A [11:11:37]Write i2c OK [11:11:37]MH_I2C_Read... [11:11:37]Read from MH i2c: 01 [11:11:37]MH_I2C_Read... [11:11:37]Read from MH i2c: 01 07 00 [11:11:37]MH_I2C_Read... [11:11:37]Read from MH i2c: 01 07 00 9B 6F 00 00 00 00 00 FF 0F 1F [11:11:37]RasterBufferAndPrint [11:11:37]line Счет N : (1)1036170 [11:11:37]line ИНН: 02508201610067 [11:11:37]line Контрольно-Кассовый Чек [11:11:37]line ПРОДАЖА [11:11:37]line ТРК (МРК, ГНК) : 32 [11:11:37]line Товар: 2710124130 [11:11:37]line Аи-92-К-5 [11:11:37]line 2.950 * 67.80 [11:11:37]line = 200.01 [11:11:37]line НДС 12% НСП 1% [11:11:37]line > о реализуемом товаре [11:11:37]line ОКРУГЛЕНИЕ: -0.01 [11:11:37]line ИТОГО: 200.00 [11:11:37]line Внесено: 200.00 [11:11:37]line СДАЧА: 0.00 [11:11:37]line НСП 1% : 1.77 [11:11:37]line НДС 12% : 21.24 [11:11:37]line Наличными: 200.00 [11:11:37]line Безнал.: 0.00 [11:11:37]line Место: АЗС № 94 "Партнер Нефть" [11:11:37]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:11:37]line СНО: Общий режим [11:11:37]line Чек 181 18.08.2024 11:11 [11:11:37]line Смена: 449 ФФД: 1.0 [11:11:37]line ЗНМ: 0300000099 [11:11:37]line РНМ: 0000000000091865 [11:11:37]line Версия ККМ: 001 [11:11:37]line ФМ: 0000000000871820 [11:11:37]line ФД: 260623 [11:11:37]line ФПД: 250966269166853 [11:11:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T111139&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260623&fm=250966269166853&tin=02508201610067®Number=0000000000091865&sum=20000 [11:11:37]written 0, free lines is 4095 [11:11:37]OFD Sender: Processing packet 260623 [packets to send 192, broken 191] [11:11:37]ProducePacketName [11:11:37]name=ofd_packets/00260623 [11:11:37]OFD Sender: To server: pG, [11:11:37]CommunicateWithHost lk.salyk.kg:30040 [11:11:37]ConnectInit lk.salyk.kg [11:11:37]Connected sock=10 [11:11: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 30 0F 01 00 00 6C EF 07 01 9C 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 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 EB D6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0F FA 03 00 35 04 06 00 E4 40 A3 53 05 05 BE 4D 12 0F BB E8 84 BA [11: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 30 4F 00 00 00 D1 38 47 00 74 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 30 10 04 04 00 0F FA 03 00 F4 03 04 00 41 80 C1 66 B6 04 01 00 00 43 A9 94 DC D0 F4 40 34 [11:11:37]CommunicateWithHost err = 0 [11:11:37]CheckOFDResponse [11:11:37]1017 (14) - 77093643461234 [11:11:37]1041 (16) - 0000000000871820 [11:11:37]1040 (4) - 260623 [11:11:37]1012 (4) - 18.08.2024 05:01 [11:11:37]1206 (1) - 0 [11:11:37]OFD Sender: Remove packet 260623 [11:11:37]ProducePacketName [11:11:37]name=ofd_packets/00260623 [11:11:37]NVStorageDeleteData [11:11:37]Write to MH i2c: 01 00 00 C6 6F 35 [11:11:37]Write i2c OK [11:11:37]MH_I2C_Read... [11:11:37]Read from MH i2c: 01 [11:11:37]MH_I2C_Read... [11:11:37]Read from MH i2c: 01 07 00 [11:11:37]MH_I2C_Read... [11:11:37]Read from MH i2c: 01 07 00 C6 6F 00 00 00 00 00 65 0C AD [11:11:37]RasterBufferAndPrint [11:11:37]line [11:11:37]line [11:11:37]line [11:11:37]line [11:11:37]line [11:11:37]written 0, free lines is 3177 [11:11:37]MH_Cut [11:11:37]Write to MH i2c: D1 01 00 CD 6F 01 0E [11:11:37]Write i2c OK [11:11:37]MH_I2C_Read... [11:11:37]Read from MH i2c: D1 [11:11:37]MH_I2C_Read... [11:11:37]Read from MH i2c: D1 01 00 [11:11:37]MH_I2C_Read... [11:11:37]Read from MH i2c: D1 01 00 CD 6F 00 0D [11:11:37]Write to MH i2c: 01 00 00 CE 6F 3D [11:11:37]Write i2c OK [11:11:37]MH_I2C_Read... [11:11:38]OFD Sender: No OFD packet to send [11:11:39]*** Cut start [11:11:39]*** Purtial cut [11:11:39]*** Stage 1: CUTSNS_PIN = 1 [11:11:41]Read from MH i2c: 01 [11:11:41]MH_I2C_Read... [11:11:41]*** Stop cut motor [11:11:41]*** Cut end [11:11:41]Read from MH i2c: 01 07 00 [11:11:41]MH_I2C_Read... [11:11:41]Read from MH i2c: 01 07 00 CE 6F 00 00 00 00 00 FF 0F 52 [11:11:41]process_action close_receipt done [11:11:41]requested_data is exist [11:11:41]produce_requested_data [11:11:41]requested_item fm.sn is exist - process it [11:11:41]wFMCommunicate request_size=4 [11:11:41]MH_SAM_APDU [11:11:41]CAPDU: 80 11 00 00 [11:11:41]Write to MH i2c: E2 08 00 CF 6F 80 11 00 00 00 00 00 00 B8 [11:11:41]Write i2c OK [11:11:41]MH_I2C_Read... [11:11:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:41]Read from MH i2c: E2 [11:11:41]MH_I2C_Read... [11:11:41]Read from MH i2c: E2 17 00 [11:11:41]MH_I2C_Read... [11:11:41]Read from MH i2c: E2 17 00 CF 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 05 [11:11:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:11:41]wFMCommunicate OK [11:11:41]requested_item fd.num is exist - process it [11:11:41]SAM_PROTO_GetFieldsCounters [11:11:41]wFMCommunicate request_size=4 [11:11:41]MH_SAM_APDU [11:11:41]CAPDU: 80 13 00 00 [11:11:41]Write to MH i2c: E2 08 00 D0 6F 80 13 00 00 00 00 00 00 BB [11:11:41]Write i2c OK [11:11:41]MH_I2C_Read... [11:11:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:41]Read from MH i2c: E2 [11:11:41]MH_I2C_Read... [11:11:41]Read from MH i2c: E2 62 00 [11:11:41]MH_I2C_Read... [11:11:41]Read from MH i2c: E2 62 00 D0 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 0F FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [11:11: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 0F FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:11:41]wFMCommunicate OK [11:11:41]SAM_PROTO_GetFieldsCounters done [11:11:41]requested_item shift.num is exist - process it [11:11:41]requested_item shift.opened is exist - process it [11:11:41]req_shift_opened [11:11:41]FM_GetShiftState [11:11:41]SAM_PROTO_GetShiftState [11:11:41]wFMCommunicate request_size=4 [11:11:41]MH_SAM_APDU [11:11:41]CAPDU: 80 13 01 00 [11:11:41]Write to MH i2c: E2 08 00 D1 6F 80 13 01 00 00 00 00 00 BD [11:11:41]Write i2c OK [11:11:41]MH_I2C_Read... [11:11:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:41]Read from MH i2c: E2 [11:11:41]MH_I2C_Read... [11:11:41]Read from MH i2c: E2 0E 00 [11:11:41]MH_I2C_Read... [11:11:41]Read from MH i2c: E2 0E 00 D1 6F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 FA [11:11:41]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:11:41]wFMCommunicate OK [11:11:41]SAM_PROTO_GetShiftState done [11:11:41]FM_GetShiftState done [11:11:41]req_shift_opened done [11:11:41]requested_item shift.open_date is exist - process it [11:11:41]req_shift_open_date [11:11:41]req_shift_open_date done [11:11:41]produce_requested_data done [11:11:41]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260623,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:11:41]process_action_free close_receipt [11:11:41]json_value_free [11:11:41]json_value_free done [11:11:41]process_json_proto returns [11:11:41]Send response to host [11:11:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260623,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:11:41]free response buf [11:11:41]execute_script done [11:11:41]execute_script returns [11:11:41]free content buf [11:11:41]Sock 9.Close socket [11:11:41]Sock 9.Thread stoped [11:11:43]OFD Sender: No OFD packet to send [11:11:48]OFD Sender: No OFD packet to send [11:11:53]OFD Sender: No OFD packet to send [11:11:58]OFD Sender: No OFD packet to send [11:12:03]OFD Sender: No OFD packet to send [11:12:08]OFD Sender: No OFD packet to send [11:12:13]OFD Sender: No OFD packet to send [11:12:18]OFD Sender: No OFD packet to send [11:12:23]OFD Sender: No OFD packet to send [11:12:28]OFD Sender: No OFD packet to send [11:12:33]OFD Sender: No OFD packet to send [11:12:38]OFD Sender: No OFD packet to send [11:12:43]OFD Sender: No OFD packet to send [11:12:48]OFD Sender: No OFD packet to send [11:12:53]OFD Sender: No OFD packet to send [11:12:58]OFD Sender: No OFD packet to send [11:13:03]OFD Sender: No OFD packet to send [11:13:08]OFD Sender: No OFD packet to send [11:13:13]OFD Sender: No OFD packet to send [11:13:18]OFD Sender: No OFD packet to send [11:13:23]OFD Sender: No OFD packet to send [11:13:28]OFD Sender: No OFD packet to send [11:13:33]OFD Sender: No OFD packet to send [11:13:38]OFD Sender: No OFD packet to send [11:13:43]OFD Sender: No OFD packet to send [11:13:48]OFD Sender: No OFD packet to send [11:13:53]OFD Sender: No OFD packet to send [11:13:58]OFD Sender: No OFD packet to send [11:14:03]OFD Sender: No OFD packet to send [11:14:08]accept exits with 7 [11:14:08]New connection [11:14:08]New thread 3066473828 created [11:14:08]Thread 3066617188 joined [11:14:08]Waiting for new connection... [11:14:08] Sock 7.Parse request [11:14:08]Sock 7.Check first char [11:14:08]Sock 7.First char is OK [11:14:08]request: POST /json_proto HTTP/1.0 [11:14:08]Method: POST [11:14:08]URL: /json_proto [11:14:08]Method is POST - this is cgi request [11:14:08]url: /json_proto [11:14:08]query_string will be loaded in cgi processing [11:14:08]execute_cgi json_proto POST (null) [11:14:08]execute_cgi path=json_proto method=POST [11:14:08]POST find Content-Length [11:14:08]Host: 172.17.55.133:8080 [11:14:08]Content-Length: 678 [11:14:08]Content-Type: application/json [11:14:08] [11:14:08]POST finish read [11:14:08]Found Content-Length = 678 [11:14:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:14:08]execute_script... [11:14: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)1036171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:14:08]POST & json_proto [11:14:08]process_json_proto [11:14:08]json parsed OK: [11:14:08]protocol is kg_v1.0 [11:14:08]action value=close_receipt [11:14:08]process_action close_receipt [11:14:08]cmd_close_receipt [11:14:08]MH_GetDate [11:14:08]Write to MH i2c: F0 00 00 D2 6F 30 [11:14:08]Write i2c OK [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: F0 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: F0 09 00 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: F0 09 00 D2 6F 00 84 D7 C1 66 34 48 D8 65 74 [11:14:08]GetLastDocTimeStamp 1723979499 [11:14:08]current date 1723979652 [11:14:08]FM_GetShiftState [11:14:08]SAM_PROTO_GetShiftState [11:14:08]wFMCommunicate request_size=4 [11:14:08]MH_SAM_APDU [11:14:08]CAPDU: 80 13 01 00 [11:14:08]Write to MH i2c: E2 08 00 D3 6F 80 13 01 00 00 00 00 00 BF [11:14:08]Write i2c OK [11:14:08]MH_I2C_Read... [11:14:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:08]Read from MH i2c: E2 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: E2 0E 00 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: E2 0E 00 D3 6F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 FC [11:14:08]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:14:08]wFMCommunicate OK [11:14:08]SAM_PROTO_GetShiftState done [11:14:08]FM_GetShiftState done [11:14:08]opened in 1723940556 [11:14:08]opened+sec_in_day 1724026956 [11:14:08]quantity*price = 20001 [11:14:08]sum+1 = 20002 [11:14:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 182 18.08.2024 11:14 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260624 ФПД: 126856758802978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T111412&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260624&fm=126856758802978&tin=02508201610067®Number=0000000000091865&sum=20000 [11:14:09]StoreToDocumentArchive [11:14:09]shift 449 fd 260624 [11:14:09]save to /storage/0449/doc_00260624 [11:14:09]save last doc name /storage/0449/doc_00260624 to /storage/kkm_last_doc_name [11:14:09]save OK [11:14:09]Clear old archive folders... [11:14:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:14:09]tlvbuf is 00453530 [11:14:09]SAM_PROTO_ClearQueue [11:14:09]wFMCommunicate request_size=4 [11:14:09]MH_SAM_APDU [11:14:09]CAPDU: 80 09 00 00 [11:14:09]Write to MH i2c: E2 08 00 E0 6F 80 09 00 00 00 00 00 00 C1 [11:14:09]Write i2c OK [11:14:09]MH_I2C_Read... [11:14:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:09]Read from MH i2c: E2 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: E2 03 00 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: E2 03 00 E0 6F 00 90 00 C3 [11:14:09]RAPDU: 90 00 [11:14:09]wFMCommunicate OK [11:14:09]SAM_PROTO_ClearQueue done [11:14:09]KKMCreateOFDPacket [11:14:09]OFDProtocolAddRootSTLVToBuf [11:14:09]FM_MakeSignedData [11:14:09]FM_MakeSignedData [11:14:09]SAM_PROTO_SignData [11:14:09]wFMCommunicate request_size=4 [11:14:09]MH_SAM_APDU [11:14:09]CAPDU: 80 0D 01 02 [11:14:09]Write to MH i2c: E2 08 00 E1 6F 80 0D 01 02 00 00 00 00 C9 [11:14:09]Write i2c OK [11:14:09]MH_I2C_Read... [11:14:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:09]Read from MH i2c: E2 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: E2 03 00 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: E2 03 00 E1 6F 00 90 00 C4 [11:14:09]RAPDU: 90 00 [11:14:09]wFMCommunicate OK [11:14:09]wFMCommunicate request_size=255 [11:14:09]MH_SAM_APDU [11:14:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 84 D7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 10 FA 03 00 35 04 06 00 73 [11:14:09]Write to MH i2c: E2 02 01 E2 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 84 D7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 10 FA 03 00 35 04 06 00 73 00 00 C2 [11:14:09]Write i2c OK [11:14:09]MH_I2C_Read... [11:14:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:09]Read from MH i2c: E2 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: E2 03 00 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: E2 03 00 E2 6F 00 90 00 C5 [11:14:09]RAPDU: 90 00 [11:14:09]wFMCommunicate OK [11:14:09]wFMCommunicate request_size=10 [11:14:09]MH_SAM_APDU [11:14:09]CAPDU: 80 0D 02 02 05 60 24 0B BA 22 [11:14:09]Write to MH i2c: E2 0D 00 E3 6F 80 0D 02 02 05 00 60 24 0B BA 22 00 00 41 [11:14:09]Write i2c OK [11:14:09]MH_I2C_Read... [11:14:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:09]Read from MH i2c: E2 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: E2 03 00 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: E2 03 00 E3 6F 00 90 00 C6 [11:14:09]RAPDU: 90 00 [11:14:09]wFMCommunicate OK [11:14:09]wFMCommunicate request_size=4 [11:14:09]MH_SAM_APDU [11:14:09]CAPDU: 80 0D 03 02 [11:14:09]Write to MH i2c: E2 08 00 E4 6F 80 0D 03 02 00 00 00 00 CE [11:14:09]Write i2c OK [11:14:09]MH_I2C_Read... [11:14:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:09]Read from MH i2c: E2 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: E2 0B 00 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: E2 0B 00 E4 6F 00 4C DF D5 1E 31 D9 4B E8 90 00 2A [11:14:09]RAPDU: 4C DF D5 1E 31 D9 4B E8 90 00 [11:14:09]wFMCommunicate OK [11:14:09]SAM_PROTO_SignData done [11:14:09]FM_MakeSignedData done [11:14:09]CreateOFDProtocolMessage [11:14:09]wFMCommunicate request_size=4 [11:14:09]MH_SAM_APDU [11:14:09]CAPDU: 80 11 00 00 [11:14:09]Write to MH i2c: E2 08 00 E5 6F 80 11 00 00 00 00 00 00 CE [11:14:09]Write i2c OK [11:14:09]MH_I2C_Read... [11:14:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:10]Read from MH i2c: E2 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: E2 17 00 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: E2 17 00 E5 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 1B [11:14:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:14:10]wFMCommunicate OK [11:14:10]CreateOFDProtocolMessage done [11:14:10]OFDSenderStorePacket 260624 [11:14:10]StoreOFDPacket docnum=260624 [11:14:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 DA CC 07 01 98 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 84 D7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 10 FA 03 00 35 04 06 00 73 60 24 0B BA 22 4C DF D5 1E 31 D9 4B E8 [11:14:10]CheckFolder [11:14:10]dirname=/storage/ofd_packets [11:14:10]CheckFolder done [11:14:10]ProducePacketName [11:14:10]name=ofd_packets/00260624 [11:14:10]NVStorageSaveData ofd_packets/00260624 [11:14:10]File name is /storage/ofd_packets/00260624 [11:14:10]Write 301 bytes [11:14:10]NVStorageSaveData done [11:14:10]OFDSenderStorePacket done [11:14:10]KKMCreateOFDPacket done [11:14:10]NVStorageSaveData kkm_last_timestamp [11:14:10]File name is /storage/kkm_last_timestamp [11:14:10]Write 4 bytes [11:14:10]NVStorageSaveData done [11:14:10]ExternCall_PrintAddStr [11:14:10]wPrintStart [11:14:10]Write to MH i2c: 01 00 00 E6 6F 55 [11:14:10]Write i2c OK [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: 01 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: 01 07 00 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: 01 07 00 E6 6F 00 00 00 00 00 FF 0F 6A [11:14:10]RasterBufferAndPrint [11:14:10]line Счет N : (1)1036171 [11:14:10]line ИНН: 02508201610067 [11:14:10]line Контрольно-Кассовый Чек [11:14:10]line ПРОДАЖА [11:14:10]line ТРК (МРК, ГНК) : 12 [11:14:10]line Товар: 2710124130 [11:14:10]line Аи-92-К-5 [11:14:10]line 2.950 * 67.80 [11:14:10]line = 200.01 [11:14:10]line НДС 12% НСП 1% [11:14:10]line > о реализуемом товаре [11:14:10]line ОКРУГЛЕНИЕ: -0.01 [11:14:10]line ИТОГО: 200.00 [11:14:10]line Внесено: 200.00 [11:14:10]line СДАЧА: 0.00 [11:14:10]line НСП 1% : 1.77 [11:14:10]line НДС 12% : 21.24 [11:14:10]line Наличными: 200.00 [11:14:10]line Безнал.: 0.00 [11:14:10]line Место: АЗС № 94 "Партнер Нефть" [11:14:10]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:14:10]line СНО: Общий режим [11:14:10]line Чек 182 18.08.2024 11:14 [11:14:10]line Смена: 449 ФФД: 1.0 [11:14:10]line ЗНМ: 0300000099 [11:14:10]line РНМ: 0000000000091865 [11:14:10]line Версия ККМ: 001 [11:14:10]line ФМ: 0000000000871820 [11:14:10]line ФД: 260624 [11:14:10]line ФПД: 126856758802978 [11:14:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T111412&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260624&fm=126856758802978&tin=02508201610067®Number=0000000000091865&sum=20000 [11:14:10]written 0, free lines is 4095 [11:14:10]OFD Sender: Processing packet 260624 [packets to send 192, broken 191] [11:14:10]ProducePacketName [11:14:10]name=ofd_packets/00260624 [11:14:10]OFD Sender: To server: pG, [11:14:10]CommunicateWithHost lk.salyk.kg:30040 [11:14:10]ConnectInit lk.salyk.kg [11:14:10]Connected sock=10 [11:14: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 30 0F 01 00 00 DA CC 07 01 98 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 84 D7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 10 FA 03 00 35 04 06 00 73 60 24 0B BA 22 4C DF D5 1E 31 D9 4B E8 [11:14:10]Write to MH i2c: 01 00 00 11 70 81 [11:14:10]Write i2c OK [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: 01 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: 01 07 00 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: 01 07 00 11 70 00 00 00 00 00 64 0C F8 [11:14:10]RasterBufferAndPrint [11:14:10]line [11:14:10]line [11:14:10]line [11:14:10]line [11:14:10]line [11:14:10]written 0, free lines is 3176 [11:14:10]MH_Cut [11:14:10]Write to MH i2c: D1 01 00 18 70 01 5A [11:14:10]Write i2c OK [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: D1 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: D1 01 00 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: D1 01 00 18 70 00 59 [11:14:10]Write to MH i2c: 01 00 00 19 70 89 [11:14:10]Write i2c OK [11:14:10]MH_I2C_Read... [11:14: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 30 4F 00 00 00 1D C8 47 00 27 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 10 FA 03 00 F4 03 04 00 DA 80 C1 66 B6 04 01 00 00 90 75 04 53 34 03 AF 58 [11:14:10]CommunicateWithHost err = 0 [11:14:10]CheckOFDResponse [11:14:10]1017 (14) - 77093643461234 [11:14:10]1041 (16) - 0000000000871820 [11:14:10]1040 (4) - 260624 [11:14:10]1012 (4) - 18.08.2024 05:04 [11:14:10]1206 (1) - 0 [11:14:10]OFD Sender: Remove packet 260624 [11:14:10]ProducePacketName [11:14:10]name=ofd_packets/00260624 [11:14:10]NVStorageDeleteData [11:14:11]OFD Sender: No OFD packet to send [11:14:11]*** Cut start [11:14:11]*** Purtial cut [11:14:11]*** Stage 1: CUTSNS_PIN = 1 [11:14:13]Read from MH i2c: 01 [11:14:13]MH_I2C_Read... [11:14:13]*** Stop cut motor [11:14:13]*** Cut end [11:14:13]Read from MH i2c: 01 07 00 [11:14:13]MH_I2C_Read... [11:14:13]Read from MH i2c: 01 07 00 19 70 00 00 00 00 00 FF 0F 9E [11:14:13]process_action close_receipt done [11:14:13]requested_data is exist [11:14:13]produce_requested_data [11:14:13]requested_item fm.sn is exist - process it [11:14:13]wFMCommunicate request_size=4 [11:14:13]MH_SAM_APDU [11:14:13]CAPDU: 80 11 00 00 [11:14:13]Write to MH i2c: E2 08 00 1A 70 80 11 00 00 00 00 00 00 04 [11:14:13]Write i2c OK [11:14:13]MH_I2C_Read... [11:14:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:13]Read from MH i2c: E2 [11:14:13]MH_I2C_Read... [11:14:13]Read from MH i2c: E2 17 00 [11:14:13]MH_I2C_Read... [11:14:13]Read from MH i2c: E2 17 00 1A 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 51 [11:14:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:14:13]wFMCommunicate OK [11:14:13]requested_item fd.num is exist - process it [11:14:13]SAM_PROTO_GetFieldsCounters [11:14:13]wFMCommunicate request_size=4 [11:14:13]MH_SAM_APDU [11:14:13]CAPDU: 80 13 00 00 [11:14:13]Write to MH i2c: E2 08 00 1B 70 80 13 00 00 00 00 00 00 07 [11:14:13]Write i2c OK [11:14:13]MH_I2C_Read... [11:14:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:13]Read from MH i2c: E2 [11:14:13]MH_I2C_Read... [11:14:13]Read from MH i2c: E2 62 00 [11:14:13]MH_I2C_Read... [11:14:13]Read from MH i2c: E2 62 00 1B 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 10 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [11:14: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 10 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:14:13]wFMCommunicate OK [11:14:13]SAM_PROTO_GetFieldsCounters done [11:14:13]requested_item shift.num is exist - process it [11:14:13]requested_item shift.opened is exist - process it [11:14:13]req_shift_opened [11:14:13]FM_GetShiftState [11:14:13]SAM_PROTO_GetShiftState [11:14:13]wFMCommunicate request_size=4 [11:14:13]MH_SAM_APDU [11:14:13]CAPDU: 80 13 01 00 [11:14:13]Write to MH i2c: E2 08 00 1C 70 80 13 01 00 00 00 00 00 09 [11:14:13]Write i2c OK [11:14:13]MH_I2C_Read... [11:14:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:13]Read from MH i2c: E2 [11:14:13]MH_I2C_Read... [11:14:13]Read from MH i2c: E2 0E 00 [11:14:13]MH_I2C_Read... [11:14:13]Read from MH i2c: E2 0E 00 1C 70 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 46 [11:14:13]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:14:13]wFMCommunicate OK [11:14:13]SAM_PROTO_GetShiftState done [11:14:13]FM_GetShiftState done [11:14:13]req_shift_opened done [11:14:13]requested_item shift.open_date is exist - process it [11:14:13]req_shift_open_date [11:14:13]req_shift_open_date done [11:14:13]produce_requested_data done [11:14:13]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260624,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:14:13]process_action_free close_receipt [11:14:13]json_value_free [11:14:13]json_value_free done [11:14:13]process_json_proto returns [11:14:13]Send response to host [11:14:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260624,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:14:13]free response buf [11:14:13]execute_script done [11:14:13]execute_script returns [11:14:13]free content buf [11:14:13]Sock 7.Close socket [11:14:13]Sock 7.Thread stoped [11:14:16]OFD Sender: No OFD packet to send [11:14:21]OFD Sender: No OFD packet to send [11:14:26]OFD Sender: No OFD packet to send [11:14:31]OFD Sender: No OFD packet to send [11:14:36]OFD Sender: No OFD packet to send [11:14:41]OFD Sender: No OFD packet to send [11:14:46]OFD Sender: No OFD packet to send [11:14:51]OFD Sender: No OFD packet to send [11:14:56]OFD Sender: No OFD packet to send [11:14:58]accept exits with 9 [11:14:58]New connection [11:14:58]New thread 3066617188 created [11:14:58]Thread 3066473828 joined [11:14:58]Waiting for new connection... [11:14:58] Sock 9.Parse request [11:14:58]Sock 9.Check first char [11:14:58]Sock 9.First char is OK [11:14:58]request: POST /json_proto HTTP/1.0 [11:14:58]Method: POST [11:14:58]URL: /json_proto [11:14:58]Method is POST - this is cgi request [11:14:58]url: /json_proto [11:14:58]query_string will be loaded in cgi processing [11:14:58]execute_cgi json_proto POST (null) [11:14:58]execute_cgi path=json_proto method=POST [11:14:58]POST find Content-Length [11:14:58]Host: 172.17.55.133:8080 [11:14:58]Content-Length: 683 [11:14:58]Content-Type: application/json [11:14:58] [11:14:58]POST finish read [11:14:58]Found Content-Length = 683 [11:14:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036172", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:58]execute_script... [11:14: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)1036172", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:58]POST & json_proto [11:14:58]process_json_proto [11:14:58]json parsed OK: [11:14:58]protocol is kg_v1.0 [11:14:58]action value=close_receipt [11:14:58]process_action close_receipt [11:14:58]cmd_close_receipt [11:14:58]MH_GetDate [11:14:58]Write to MH i2c: F0 00 00 1D 70 7C [11:14:58]Write i2c OK [11:14:58]MH_I2C_Read... [11:14:58]Read from MH i2c: F0 [11:14:58]MH_I2C_Read... [11:14:58]Read from MH i2c: F0 09 00 [11:14:58]MH_I2C_Read... [11:14:58]Read from MH i2c: F0 09 00 1D 70 00 B6 D7 C1 66 34 48 D8 65 F2 [11:14:58]GetLastDocTimeStamp 1723979652 [11:14:58]current date 1723979702 [11:14:58]FM_GetShiftState [11:14:58]SAM_PROTO_GetShiftState [11:14:58]wFMCommunicate request_size=4 [11:14:58]MH_SAM_APDU [11:14:58]CAPDU: 80 13 01 00 [11:14:58]Write to MH i2c: E2 08 00 1E 70 80 13 01 00 00 00 00 00 0B [11:14:58]Write i2c OK [11:14:58]MH_I2C_Read... [11:14:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:58]Read from MH i2c: E2 [11:14:58]MH_I2C_Read... [11:14:58]Read from MH i2c: E2 0E 00 [11:14:58]MH_I2C_Read... [11:14:58]Read from MH i2c: E2 0E 00 1E 70 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 48 [11:14:58]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:14:58]wFMCommunicate OK [11:14:58]SAM_PROTO_GetShiftState done [11:14:58]FM_GetShiftState done [11:14:58]opened in 1723940556 [11:14:58]opened+sec_in_day 1724026956 [11:14:58]quantity*price = 100021 [11:14:58]sum+1 = 100023 [11:14:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 183 18.08.2024 11:15 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260625 ФПД: 165251312703380 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T111502&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260625&fm=165251312703380&tin=02508201610067®Number=0000000000091865&sum=100000 [11:14:59]StoreToDocumentArchive [11:14:59]shift 449 fd 260625 [11:14:59]save to /storage/0449/doc_00260625 [11:14:59]save last doc name /storage/0449/doc_00260625 to /storage/kkm_last_doc_name [11:14:59]save OK [11:14:59]Clear old archive folders... [11:14:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:14:59]tlvbuf is 00387AD0 [11:14:59]SAM_PROTO_ClearQueue [11:14:59]wFMCommunicate request_size=4 [11:14:59]MH_SAM_APDU [11:14:59]CAPDU: 80 09 00 00 [11:14:59]Write to MH i2c: E2 08 00 2B 70 80 09 00 00 00 00 00 00 0D [11:14:59]Write i2c OK [11:14:59]MH_I2C_Read... [11:14:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:59]Read from MH i2c: E2 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 03 00 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 03 00 2B 70 00 90 00 0F [11:14:59]RAPDU: 90 00 [11:14:59]wFMCommunicate OK [11:14:59]SAM_PROTO_ClearQueue done [11:14:59]KKMCreateOFDPacket [11:14:59]OFDProtocolAddRootSTLVToBuf [11:14:59]FM_MakeSignedData [11:14:59]FM_MakeSignedData [11:14:59]SAM_PROTO_SignData [11:14:59]wFMCommunicate request_size=4 [11:14:59]MH_SAM_APDU [11:14:59]CAPDU: 80 0D 01 02 [11:14:59]Write to MH i2c: E2 08 00 2C 70 80 0D 01 02 00 00 00 00 15 [11:14:59]Write i2c OK [11:14:59]MH_I2C_Read... [11:14:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:59]Read from MH i2c: E2 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 03 00 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 03 00 2C 70 00 90 00 10 [11:14:59]RAPDU: 90 00 [11:14:59]wFMCommunicate OK [11:14:59]wFMCommunicate request_size=255 [11:14:59]MH_SAM_APDU [11:14:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 B6 D7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 11 FA 03 00 35 04 06 00 96 [11:14:59]Write to MH i2c: E2 02 01 2D 70 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 B6 D7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 11 FA 03 00 35 04 06 00 96 00 00 90 [11:14:59]Write i2c OK [11:14:59]MH_I2C_Read... [11:14:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:59]Read from MH i2c: E2 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 03 00 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 03 00 2D 70 00 90 00 11 [11:14:59]RAPDU: 90 00 [11:14:59]wFMCommunicate OK [11:14:59]wFMCommunicate request_size=10 [11:14:59]MH_SAM_APDU [11:14:59]CAPDU: 80 0D 02 02 05 4B 91 CA D7 94 [11:14:59]Write to MH i2c: E2 0D 00 2E 70 80 0D 02 02 05 00 4B 91 CA D7 94 00 00 33 [11:14:59]Write i2c OK [11:14:59]MH_I2C_Read... [11:14:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:59]Read from MH i2c: E2 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 03 00 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 03 00 2E 70 00 90 00 12 [11:14:59]RAPDU: 90 00 [11:14:59]wFMCommunicate OK [11:14:59]wFMCommunicate request_size=4 [11:14:59]MH_SAM_APDU [11:14:59]CAPDU: 80 0D 03 02 [11:14:59]Write to MH i2c: E2 08 00 2F 70 80 0D 03 02 00 00 00 00 1A [11:14:59]Write i2c OK [11:14:59]MH_I2C_Read... [11:14:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:59]Read from MH i2c: E2 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 0B 00 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 0B 00 2F 70 00 DB F0 82 85 1D 66 15 DD 90 00 62 [11:14:59]RAPDU: DB F0 82 85 1D 66 15 DD 90 00 [11:14:59]wFMCommunicate OK [11:14:59]SAM_PROTO_SignData done [11:14:59]FM_MakeSignedData done [11:14:59]CreateOFDProtocolMessage [11:14:59]wFMCommunicate request_size=4 [11:14:59]MH_SAM_APDU [11:14:59]CAPDU: 80 11 00 00 [11:14:59]Write to MH i2c: E2 08 00 30 70 80 11 00 00 00 00 00 00 1A [11:14:59]Write i2c OK [11:14:59]MH_I2C_Read... [11:14:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:59]Read from MH i2c: E2 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 17 00 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 17 00 30 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 67 [11:14:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:14:59]wFMCommunicate OK [11:14:59]CreateOFDProtocolMessage done [11:14:59]OFDSenderStorePacket 260625 [11:14:59]StoreOFDPacket docnum=260625 [11:14:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 DD 9E 07 01 79 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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 B6 D7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 11 FA 03 00 35 04 06 00 96 4B 91 CA D7 94 DB F0 82 85 1D 66 15 DD [11:14:59]CheckFolder [11:14:59]dirname=/storage/ofd_packets [11:14:59]CheckFolder done [11:14:59]ProducePacketName [11:14:59]name=ofd_packets/00260625 [11:14:59]NVStorageSaveData ofd_packets/00260625 [11:14:59]File name is /storage/ofd_packets/00260625 [11:14:59]Write 301 bytes [11:14:59]NVStorageSaveData done [11:14:59]OFDSenderStorePacket done [11:14:59]KKMCreateOFDPacket done [11:14:59]NVStorageSaveData kkm_last_timestamp [11:14:59]File name is /storage/kkm_last_timestamp [11:14:59]Write 4 bytes [11:14:59]NVStorageSaveData done [11:14:59]ExternCall_PrintAddStr [11:14:59]wPrintStart [11:14:59]Write to MH i2c: 01 00 00 31 70 A1 [11:14:59]Write i2c OK [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: 01 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: 01 07 00 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: 01 07 00 31 70 00 00 00 00 00 FF 0F B6 [11:14:59]RasterBufferAndPrint [11:14:59]line Счет N : (1)1036172 [11:14:59]line ИНН: 02508201610067 [11:14:59]line Контрольно-Кассовый Чек [11:14:59]line ПРОДАЖА [11:14:59]line ТРК (МРК, ГНК) : 23 [11:14:59]line Товар: 2710124500 [11:14:59]line Аи-95-К-5 [11:14:59]line 13.480 * 74.20 [11:14:59]line = 1000.22 [11:14:59]line НДС 12% НСП 1% [11:14:59]line > о реализуемом товаре [11:14:59]line ОКРУГЛЕНИЕ: -0.22 [11:14:59]line ИТОГО: 1000.00 [11:14:59]line Внесено: 1000.00 [11:14:59]line СДАЧА: 0.00 [11:14:59]line НСП 1% : 8.85 [11:14:59]line НДС 12% : 106.22 [11:14:59]line Наличными: 1000.00 [11:14:59]line Безнал.: 0.00 [11:14:59]line Место: АЗС № 94 "Партнер Нефть" [11:14:59]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:14:59]line СНО: Общий режим [11:14:59]line Чек 183 18.08.2024 11:15 [11:14:59]line Смена: 449 ФФД: 1.0 [11:14:59]line ЗНМ: 0300000099 [11:14:59]line РНМ: 0000000000091865 [11:14:59]line Версия ККМ: 001 [11:14:59]line ФМ: 0000000000871820 [11:14:59]line ФД: 260625 [11:14:59]line ФПД: 165251312703380 [11:14:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T111502&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260625&fm=165251312703380&tin=02508201610067®Number=0000000000091865&sum=100000 [11:14:59]written 0, free lines is 4095 [11:14:59]OFD Sender: Processing packet 260625 [packets to send 192, broken 191] [11:14:59]ProducePacketName [11:14:59]name=ofd_packets/00260625 [11:14:59]OFD Sender: To server: pG, [11:14:59]CommunicateWithHost lk.salyk.kg:30040 [11:14:59]ConnectInit lk.salyk.kg [11:14:59]Connected sock=10 [11:14: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 30 0F 01 00 00 DD 9E 07 01 79 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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 B6 D7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 11 FA 03 00 35 04 06 00 96 4B 91 CA D7 94 DB F0 82 85 1D 66 15 DD [11:15: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 30 4F 00 00 00 9F 32 47 00 E6 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 30 10 04 04 00 11 FA 03 00 F4 03 04 00 0B 81 C1 66 B6 04 01 00 00 42 00 E9 A2 A2 99 FA C2 [11:15:00]CommunicateWithHost err = 0 [11:15:00]CheckOFDResponse [11:15:00]1017 (14) - 77093643461234 [11:15:00]1041 (16) - 0000000000871820 [11:15:00]1040 (4) - 260625 [11:15:00]1012 (4) - 18.08.2024 05:05 [11:15:00]1206 (1) - 0 [11:15:00]OFD Sender: Remove packet 260625 [11:15:00]ProducePacketName [11:15:00]name=ofd_packets/00260625 [11:15:00]NVStorageDeleteData [11:15:00]Write to MH i2c: 01 00 00 5C 70 CC [11:15:00]Write i2c OK [11:15:00]MH_I2C_Read... [11:15:00]Read from MH i2c: 01 [11:15:00]MH_I2C_Read... [11:15:00]Read from MH i2c: 01 07 00 [11:15:00]MH_I2C_Read... [11:15:00]Read from MH i2c: 01 07 00 5C 70 00 00 00 00 00 6D 0C 4C [11:15:00]RasterBufferAndPrint [11:15:00]line [11:15:00]line [11:15:00]line [11:15:00]line [11:15:00]line [11:15:00]written 0, free lines is 3184 [11:15:00]MH_Cut [11:15:00]Write to MH i2c: D1 01 00 63 70 01 A5 [11:15:00]Write i2c OK [11:15:00]MH_I2C_Read... [11:15:00]Read from MH i2c: D1 [11:15:00]MH_I2C_Read... [11:15:00]Read from MH i2c: D1 01 00 [11:15:00]MH_I2C_Read... [11:15:00]Read from MH i2c: D1 01 00 63 70 00 A4 [11:15:00]Write to MH i2c: 01 00 00 64 70 D4 [11:15:00]Write i2c OK [11:15:00]MH_I2C_Read... [11:15:00]OFD Sender: No OFD packet to send [11:15:01]*** Cut start [11:15:01]*** Purtial cut [11:15:01]*** Stage 1: CUTSNS_PIN = 1 [11:15:03]Read from MH i2c: 01 [11:15:03]MH_I2C_Read... [11:15:03]*** Stop cut motor [11:15:03]*** Cut end [11:15:03]Read from MH i2c: 01 07 00 [11:15:03]MH_I2C_Read... [11:15:03]Read from MH i2c: 01 07 00 64 70 00 00 00 00 00 FF 0F E9 [11:15:03]process_action close_receipt done [11:15:03]requested_data is exist [11:15:03]produce_requested_data [11:15:03]requested_item fm.sn is exist - process it [11:15:03]wFMCommunicate request_size=4 [11:15:03]MH_SAM_APDU [11:15:03]CAPDU: 80 11 00 00 [11:15:03]Write to MH i2c: E2 08 00 65 70 80 11 00 00 00 00 00 00 4F [11:15:03]Write i2c OK [11:15:03]MH_I2C_Read... [11:15:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:03]Read from MH i2c: E2 [11:15:03]MH_I2C_Read... [11:15:03]Read from MH i2c: E2 17 00 [11:15:03]MH_I2C_Read... [11:15:03]Read from MH i2c: E2 17 00 65 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 9C [11:15:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:15:03]wFMCommunicate OK [11:15:03]requested_item fd.num is exist - process it [11:15:03]SAM_PROTO_GetFieldsCounters [11:15:03]wFMCommunicate request_size=4 [11:15:03]MH_SAM_APDU [11:15:03]CAPDU: 80 13 00 00 [11:15:03]Write to MH i2c: E2 08 00 66 70 80 13 00 00 00 00 00 00 52 [11:15:03]Write i2c OK [11:15:03]MH_I2C_Read... [11:15:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:03]Read from MH i2c: E2 [11:15:03]MH_I2C_Read... [11:15:03]Read from MH i2c: E2 62 00 [11:15:03]MH_I2C_Read... [11:15:03]Read from MH i2c: E2 62 00 66 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 11 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [11:15: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 11 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:15:03]wFMCommunicate OK [11:15:03]SAM_PROTO_GetFieldsCounters done [11:15:03]requested_item shift.num is exist - process it [11:15:03]requested_item shift.opened is exist - process it [11:15:03]req_shift_opened [11:15:03]FM_GetShiftState [11:15:03]SAM_PROTO_GetShiftState [11:15:03]wFMCommunicate request_size=4 [11:15:03]MH_SAM_APDU [11:15:03]CAPDU: 80 13 01 00 [11:15:03]Write to MH i2c: E2 08 00 67 70 80 13 01 00 00 00 00 00 54 [11:15:03]Write i2c OK [11:15:03]MH_I2C_Read... [11:15:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:03]Read from MH i2c: E2 [11:15:03]MH_I2C_Read... [11:15:03]Read from MH i2c: E2 0E 00 [11:15:03]MH_I2C_Read... [11:15:03]Read from MH i2c: E2 0E 00 67 70 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 91 [11:15:03]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:15:03]wFMCommunicate OK [11:15:03]SAM_PROTO_GetShiftState done [11:15:03]FM_GetShiftState done [11:15:03]req_shift_opened done [11:15:03]requested_item shift.open_date is exist - process it [11:15:03]req_shift_open_date [11:15:03]req_shift_open_date done [11:15:03]produce_requested_data done [11:15:03]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260625,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:15:03]process_action_free close_receipt [11:15:03]json_value_free [11:15:03]json_value_free done [11:15:03]process_json_proto returns [11:15:03]Send response to host [11:15:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260625,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:15:03]free response buf [11:15:03]execute_script done [11:15:03]execute_script returns [11:15:03]free content buf [11:15:03]Sock 9.Close socket [11:15:03]Sock 9.Thread stoped [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 7 [11:16:19]New connection [11:16:19]New thread 3066473828 created [11:16:19]Thread 3066617188 joined [11:16:19]Waiting for new connection... [11:16:19] Sock 7.Parse request [11:16:19]Sock 7.Check first char [11:16:19]Sock 7.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.55.133:8080 [11:16:19]Content-Length: 801 [11:16:19]Content-Type: application/json [11:16:19] [11:16:19]POST finish read [11:16:19]Found Content-Length = 801 [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)1036173", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.11 } ] } , "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)1036173", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.11 } ] } , "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 68 70 C7 [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 68 70 00 07 D8 C1 66 34 48 D8 65 8F [11:16:19]GetLastDocTimeStamp 1723979702 [11:16:19]current date 1723979783 [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 69 70 80 13 01 00 00 00 00 00 56 [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 69 70 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 93 [11:16:19]RAPDU: 09 00 01 CC 3E C1 66 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 1723940556 [11:16:19]opened+sec_in_day 1724026956 [11:16:19]quantity*price = 50010 [11:16:19]sum+1 = 50012 [11:16:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 184 18.08.2024 11:16 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260626 ФПД: 112224530181865 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T111623&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260626&fm=112224530181865&tin=02508201610067®Number=0000000000091865&sum=50011 [11:16:20]StoreToDocumentArchive [11:16:20]shift 449 fd 260626 [11:16:20]save to /storage/0449/doc_00260626 [11:16:20]save last doc name /storage/0449/doc_00260626 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 0044E810 [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 76 70 80 09 00 00 00 00 00 00 58 [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 76 70 00 90 00 5A [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 77 70 80 0D 01 02 00 00 00 00 60 [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 77 70 00 90 00 5B [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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 07 D8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 12 FA 03 00 35 04 06 00 66 [11:16:20]Write to MH i2c: E2 02 01 78 70 80 0D 02 02 FA 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 07 D8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 12 FA 03 00 35 04 06 00 66 00 00 D0 [11:16:20]Write i2c OK [11:16:20]MH_I2C_Read... [11:16:20]OFD Sender: No OFD packet to send [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 78 70 00 90 00 5C [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 11 4F 41 AE E9 [11:16:20]Write to MH i2c: E2 0D 00 79 70 80 0D 02 02 05 00 11 4F 41 AE E9 00 00 A5 [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 79 70 00 90 00 5D [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 7A 70 80 0D 03 02 00 00 00 00 65 [11:16:20]Write i2c OK [11:16:20]MH_I2C_Read... [11:16:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:21]Read from MH i2c: E2 [11:16:21]MH_I2C_Read... [11:16:21]Read from MH i2c: E2 0B 00 [11:16:21]MH_I2C_Read... [11:16:21]Read from MH i2c: E2 0B 00 7A 70 00 B3 8D D4 63 42 4F A1 B1 90 00 C0 [11:16:21]RAPDU: B3 8D D4 63 42 4F A1 B1 90 00 [11:16:21]wFMCommunicate OK [11:16:21]SAM_PROTO_SignData done [11:16:21]FM_MakeSignedData done [11:16:21]CreateOFDProtocolMessage [11:16:21]wFMCommunicate request_size=4 [11:16:21]MH_SAM_APDU [11:16:21]CAPDU: 80 11 00 00 [11:16:21]Write to MH i2c: E2 08 00 7B 70 80 11 00 00 00 00 00 00 65 [11:16:21]Write i2c OK [11:16:21]MH_I2C_Read... [11:16:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:21]Read from MH i2c: E2 [11:16:21]MH_I2C_Read... [11:16:21]Read from MH i2c: E2 17 00 [11:16:21]MH_I2C_Read... [11:16:21]Read from MH i2c: E2 17 00 7B 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B2 [11:16:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:16:21]wFMCommunicate OK [11:16:21]CreateOFDProtocolMessage done [11:16:21]OFDSenderStorePacket 260626 [11:16:21]StoreOFDPacket docnum=260626 [11:16:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 8D A4 07 01 8C 8B 5A 03 01 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 07 D8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 12 FA 03 00 35 04 06 00 66 11 4F 41 AE E9 B3 8D D4 63 42 4F A1 B1 [11:16:21]CheckFolder [11:16:21]dirname=/storage/ofd_packets [11:16:21]CheckFolder done [11:16:21]ProducePacketName [11:16:21]name=ofd_packets/00260626 [11:16:21]NVStorageSaveData ofd_packets/00260626 [11:16:21]File name is /storage/ofd_packets/00260626 [11:16:21]Write 301 bytes [11:16:21]NVStorageSaveData done [11:16:21]OFDSenderStorePacket done [11:16:21]KKMCreateOFDPacket done [11:16:21]NVStorageSaveData kkm_last_timestamp [11:16:21]File name is /storage/kkm_last_timestamp [11:16:21]Write 4 bytes [11:16:21]NVStorageSaveData done [11:16:21]ExternCall_PrintAddStr [11:16:21]wPrintStart [11:16:21]Write to MH i2c: 01 00 00 7C 70 EC [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 7C 70 00 00 00 00 00 FF 0F 01 [11:16:21]RasterBufferAndPrint [11:16:21]line Счет N : (1)1036173 [11:16:21]line ИНН: 02508201610067 [11:16:21]line Контрольно-Кассовый Чек [11:16:21]line ПРОДАЖА [11:16:21]line ТРК (МРК, ГНК) : 13 [11:16:21]line Товар: 2710124500 [11:16:21]line Аи-95-К-5 [11:16:21]line 6.740 * 74.20 [11:16:21]line = 500.11 [11:16:21]line НДС 12% НСП 1% [11:16:21]line > о реализуемом товаре [11:16:21]line ИТОГО: 500.11 [11:16:21]line НСП 1% : 4.43 [11:16:21]line НДС 12% : 53.11 [11:16:21]line Наличными: 0.00 [11:16:21]line Безнал.: 500.11 [11:16:21]line Место: АЗС № 94 "Партнер Нефть" [11:16:21]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:16:21]line СНО: Общий режим [11:16:21]line Чек 184 18.08.2024 11:16 [11:16:21]line Смена: 449 ФФД: 1.0 [11:16:21]line ЗНМ: 0300000099 [11:16:21]line РНМ: 0000000000091865 [11:16:21]line Версия ККМ: 001 [11:16:21]line Платежная система: O! деньги [11:16:21]line ФМ: 0000000000871820 [11:16:21]line ФД: 260626 [11:16:21]line ФПД: 112224530181865 [11:16:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T111623&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260626&fm=112224530181865&tin=02508201610067®Number=0000000000091865&sum=50011 [11:16:21]written 0, free lines is 4095 [11:16:21]OFD Sender: Processing packet 260626 [packets to send 192, broken 191] [11:16:21]ProducePacketName [11:16:21]name=ofd_packets/00260626 [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]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 30 0F 01 00 00 8D A4 07 01 8C 8B 5A 03 01 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 07 D8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 12 FA 03 00 35 04 06 00 66 11 4F 41 AE E9 B3 8D D4 63 42 4F A1 B1 [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 30 4F 00 00 00 5B FF 47 00 8F 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 30 10 04 04 00 12 FA 03 00 F4 03 04 00 5D 81 C1 66 B6 04 01 00 00 6C 44 91 3C CD 65 42 35 [11:16:21]CommunicateWithHost err = 0 [11:16:21]CheckOFDResponse [11:16:21]1017 (14) - 77093643461234 [11:16:21]1041 (16) - 0000000000871820 [11:16:21]1040 (4) - 260626 [11:16:21]1012 (4) - 18.08.2024 05:06 [11:16:21]1206 (1) - 0 [11:16:21]OFD Sender: Remove packet 260626 [11:16:21]ProducePacketName [11:16:21]name=ofd_packets/00260626 [11:16:21]NVStorageDeleteData [11:16:21]Write to MH i2c: 01 00 00 A6 70 16 [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 A6 70 00 00 00 00 00 80 0C A9 [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 3204 [11:16:21]MH_Cut [11:16:21]Write to MH i2c: D1 01 00 AD 70 01 EF [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 AD 70 00 EE [11:16:21]Write to MH i2c: 01 00 00 AE 70 1E [11:16:21]Write i2c OK [11:16:21]MH_I2C_Read... [11:16:22]OFD Sender: No OFD packet to send [11:16:23]*** Cut start [11:16:23]*** Purtial cut [11:16:23]*** Stage 1: CUTSNS_PIN = 1 [11:16:25]Read from MH i2c: 01 [11:16:25]MH_I2C_Read... [11:16:25]*** Stop cut motor [11:16:25]*** Cut end [11:16:25]Read from MH i2c: 01 07 00 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: 01 07 00 AE 70 00 00 00 00 00 FF 0F 33 [11:16:25]process_action close_receipt done [11:16:25]requested_data is exist [11:16:25]produce_requested_data [11:16:25]requested_item fm.sn is exist - process it [11:16:25]wFMCommunicate request_size=4 [11:16:25]MH_SAM_APDU [11:16:25]CAPDU: 80 11 00 00 [11:16:25]Write to MH i2c: E2 08 00 AF 70 80 11 00 00 00 00 00 00 99 [11:16:25]Write i2c OK [11:16:25]MH_I2C_Read... [11:16:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:25]Read from MH i2c: E2 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 17 00 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 17 00 AF 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E6 [11:16:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:16:25]wFMCommunicate OK [11:16:25]requested_item fd.num is exist - process it [11:16:25]SAM_PROTO_GetFieldsCounters [11:16:25]wFMCommunicate request_size=4 [11:16:25]MH_SAM_APDU [11:16:25]CAPDU: 80 13 00 00 [11:16:25]Write to MH i2c: E2 08 00 B0 70 80 13 00 00 00 00 00 00 9C [11:16:25]Write i2c OK [11:16:25]MH_I2C_Read... [11:16:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:25]Read from MH i2c: E2 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 62 00 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 62 00 B0 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 12 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [11: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 12 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:25]wFMCommunicate OK [11:16:25]SAM_PROTO_GetFieldsCounters done [11:16:25]requested_item shift.num is exist - process it [11:16:25]requested_item shift.opened is exist - process it [11:16:25]req_shift_opened [11:16:25]FM_GetShiftState [11:16:25]SAM_PROTO_GetShiftState [11:16:25]wFMCommunicate request_size=4 [11:16:25]MH_SAM_APDU [11:16:25]CAPDU: 80 13 01 00 [11:16:25]Write to MH i2c: E2 08 00 B1 70 80 13 01 00 00 00 00 00 9E [11:16:25]Write i2c OK [11:16:25]MH_I2C_Read... [11:16:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:25]Read from MH i2c: E2 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 0E 00 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 0E 00 B1 70 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 DB [11:16:25]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:16:25]wFMCommunicate OK [11:16:25]SAM_PROTO_GetShiftState done [11:16:25]FM_GetShiftState done [11:16:25]req_shift_opened done [11:16:25]requested_item shift.open_date is exist - process it [11:16:25]req_shift_open_date [11:16:25]req_shift_open_date done [11:16:25]produce_requested_data done [11:16:25]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260626,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:16:25]process_action_free close_receipt [11:16:25]json_value_free [11:16:25]json_value_free done [11:16:25]process_json_proto returns [11:16:25]Send response to host [11:16:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260626,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:16:25]free response buf [11:16:25]execute_script done [11:16:25]execute_script returns [11:16:25]free content buf [11:16:25]Sock 7.Close socket [11:16:25]Sock 7.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:31]accept exits with 9 [11:17:31]New connection [11:17:31]New thread 3066617188 created [11:17:31]Thread 3066473828 joined [11:17:31]Waiting for new connection... [11:17:31] Sock 9.Parse request [11:17:31]Sock 9.Check first char [11:17:31]Sock 9.First char is OK [11:17:31]request: POST /json_proto HTTP/1.0 [11:17:31]Method: POST [11:17:31]URL: /json_proto [11:17:31]Method is POST - this is cgi request [11:17:31]url: /json_proto [11:17:31]query_string will be loaded in cgi processing [11:17:31]execute_cgi json_proto POST (null) [11:17:31]execute_cgi path=json_proto method=POST [11:17:31]POST find Content-Length [11:17:31]Host: 172.17.55.133:8080 [11:17:31]Content-Length: 683 [11:17:31]Content-Type: application/json [11:17:31] [11:17:31]POST finish read [11:17:31]Found Content-Length = 683 [11:17:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036174", "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" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:31]execute_script... [11:17: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)1036174", "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" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:31]POST & json_proto [11:17:31]process_json_proto [11:17:31]json parsed OK: [11:17:31]protocol is kg_v1.0 [11:17:31]action value=close_receipt [11:17:31]process_action close_receipt [11:17:31]cmd_close_receipt [11:17:31]MH_GetDate [11:17:31]Write to MH i2c: F0 00 00 B2 70 11 [11:17:31]Write i2c OK [11:17:31]MH_I2C_Read... [11:17:31]Read from MH i2c: F0 [11:17:31]MH_I2C_Read... [11:17:31]Read from MH i2c: F0 09 00 [11:17:31]MH_I2C_Read... [11:17:31]Read from MH i2c: F0 09 00 B2 70 00 4F D8 C1 66 34 48 D8 65 21 [11:17:31]GetLastDocTimeStamp 1723979783 [11:17:31]current date 1723979855 [11:17:31]FM_GetShiftState [11:17:31]SAM_PROTO_GetShiftState [11:17:31]wFMCommunicate request_size=4 [11:17:31]MH_SAM_APDU [11:17:31]CAPDU: 80 13 01 00 [11:17:31]Write to MH i2c: E2 08 00 B3 70 80 13 01 00 00 00 00 00 A0 [11:17:31]Write i2c OK [11:17:31]MH_I2C_Read... [11:17:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:31]Read from MH i2c: E2 [11:17:31]MH_I2C_Read... [11:17:31]Read from MH i2c: E2 0E 00 [11:17:31]MH_I2C_Read... [11:17:31]Read from MH i2c: E2 0E 00 B3 70 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 DD [11:17:31]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:17:31]wFMCommunicate OK [11:17:31]SAM_PROTO_GetShiftState done [11:17:31]FM_GetShiftState done [11:17:31]opened in 1723940556 [11:17:31]opened+sec_in_day 1724026956 [11:17:31]quantity*price = 150032 [11:17:31]sum+1 = 150033 [11:17:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 185 18.08.2024 11:17 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260627 ФПД: 196514116767060 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T111735&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260627&fm=196514116767060&tin=02508201610067®Number=0000000000091865&sum=150000 [11:17:32]StoreToDocumentArchive [11:17:32]shift 449 fd 260627 [11:17:32]save to /storage/0449/doc_00260627 [11:17:32]save last doc name /storage/0449/doc_00260627 to /storage/kkm_last_doc_name [11:17:32]save OK [11:17:32]Clear old archive folders... [11:17:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:17:32]tlvbuf is 00453880 [11:17:32]SAM_PROTO_ClearQueue [11:17:32]wFMCommunicate request_size=4 [11:17:32]MH_SAM_APDU [11:17:32]CAPDU: 80 09 00 00 [11:17:32]Write to MH i2c: E2 08 00 C0 70 80 09 00 00 00 00 00 00 A2 [11:17:32]Write i2c OK [11:17:32]MH_I2C_Read... [11:17:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:32]Read from MH i2c: E2 [11:17:32]MH_I2C_Read... [11:17:32]Read from MH i2c: E2 03 00 [11:17:32]MH_I2C_Read... [11:17:32]Read from MH i2c: E2 03 00 C0 70 00 90 00 A4 [11:17:32]RAPDU: 90 00 [11:17:32]wFMCommunicate OK [11:17:32]SAM_PROTO_ClearQueue done [11:17:32]KKMCreateOFDPacket [11:17:32]OFDProtocolAddRootSTLVToBuf [11:17:32]FM_MakeSignedData [11:17:32]FM_MakeSignedData [11:17:32]SAM_PROTO_SignData [11:17:32]wFMCommunicate request_size=4 [11:17:32]MH_SAM_APDU [11:17:32]CAPDU: 80 0D 01 02 [11:17:32]Write to MH i2c: E2 08 00 C1 70 80 0D 01 02 00 00 00 00 AA [11:17:32]Write i2c OK [11:17:32]MH_I2C_Read... [11:17:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:32]Read from MH i2c: E2 [11:17:32]MH_I2C_Read... [11:17:32]Read from MH i2c: E2 03 00 [11:17:32]MH_I2C_Read... [11:17:32]Read from MH i2c: E2 03 00 C1 70 00 90 00 A5 [11:17:32]RAPDU: 90 00 [11:17:32]wFMCommunicate OK [11:17:32]wFMCommunicate request_size=255 [11:17:32]MH_SAM_APDU [11:17: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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 B9 00 00 00 F4 03 04 00 4F D8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 13 FA 03 00 35 04 06 00 B2 [11:17:32]Write to MH i2c: E2 02 01 C2 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 B9 00 00 00 F4 03 04 00 4F D8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 13 FA 03 00 35 04 06 00 B2 00 00 25 [11:17:32]Write i2c OK [11:17:32]MH_I2C_Read... [11:17:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:32]Read from MH i2c: E2 [11:17:32]MH_I2C_Read... [11:17:32]Read from MH i2c: E2 03 00 [11:17:32]MH_I2C_Read... [11:17:32]Read from MH i2c: E2 03 00 C2 70 00 90 00 A6 [11:17:32]RAPDU: 90 00 [11:17:32]wFMCommunicate OK [11:17:32]wFMCommunicate request_size=10 [11:17:32]MH_SAM_APDU [11:17:32]CAPDU: 80 0D 02 02 05 BA 82 1F 8D 54 [11:17:32]Write to MH i2c: E2 0D 00 C3 70 80 0D 02 02 05 00 BA 82 1F 8D 54 00 00 F3 [11:17:32]Write i2c OK [11:17:32]MH_I2C_Read... [11:17:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:32]Read from MH i2c: E2 [11:17:32]MH_I2C_Read... [11:17:32]Read from MH i2c: E2 03 00 [11:17:32]MH_I2C_Read... [11:17:32]Read from MH i2c: E2 03 00 C3 70 00 90 00 A7 [11:17:32]RAPDU: 90 00 [11:17:32]wFMCommunicate OK [11:17:32]wFMCommunicate request_size=4 [11:17:32]MH_SAM_APDU [11:17:32]CAPDU: 80 0D 03 02 [11:17:32]Write to MH i2c: E2 08 00 C4 70 80 0D 03 02 00 00 00 00 AF [11:17:32]Write i2c OK [11:17:32]MH_I2C_Read... [11:17:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:32]Read from MH i2c: E2 [11:17:32]MH_I2C_Read... [11:17:32]Read from MH i2c: E2 0B 00 [11:17:32]MH_I2C_Read... [11:17:32]Read from MH i2c: E2 0B 00 C4 70 00 2E 0C 93 C7 D9 44 7A 83 90 00 5E [11:17:32]RAPDU: 2E 0C 93 C7 D9 44 7A 83 90 00 [11:17:32]wFMCommunicate OK [11:17:32]SAM_PROTO_SignData done [11:17:32]FM_MakeSignedData done [11:17:32]CreateOFDProtocolMessage [11:17:32]wFMCommunicate request_size=4 [11:17:32]MH_SAM_APDU [11:17:32]CAPDU: 80 11 00 00 [11:17:32]Write to MH i2c: E2 08 00 C5 70 80 11 00 00 00 00 00 00 AF [11:17:32]Write i2c OK [11:17:32]MH_I2C_Read... [11:17:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:32]Read from MH i2c: E2 [11:17:32]MH_I2C_Read... [11:17:32]Read from MH i2c: E2 17 00 [11:17:32]MH_I2C_Read... [11:17:32]Read from MH i2c: E2 17 00 C5 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 FC [11:17:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:17:32]wFMCommunicate OK [11:17:32]CreateOFDProtocolMessage done [11:17:32]OFDSenderStorePacket 260627 [11:17:32]StoreOFDPacket docnum=260627 [11:17:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 C4 1B 07 01 C2 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 B9 00 00 00 F4 03 04 00 4F D8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 13 FA 03 00 35 04 06 00 B2 BA 82 1F 8D 54 2E 0C 93 C7 D9 44 7A 83 [11:17:32]CheckFolder [11:17:32]dirname=/storage/ofd_packets [11:17:32]CheckFolder done [11:17:32]ProducePacketName [11:17:32]name=ofd_packets/00260627 [11:17:32]NVStorageSaveData ofd_packets/00260627 [11:17:32]File name is /storage/ofd_packets/00260627 [11:17:32]Write 301 bytes [11:17:32]NVStorageSaveData done [11:17:32]OFDSenderStorePacket done [11:17:32]KKMCreateOFDPacket done [11:17:32]NVStorageSaveData kkm_last_timestamp [11:17:32]File name is /storage/kkm_last_timestamp [11:17:32]Write 4 bytes [11:17:32]NVStorageSaveData done [11:17:32]ExternCall_PrintAddStr [11:17:32]wPrintStart [11:17:32]Write to MH i2c: 01 00 00 C6 70 36 [11:17:32]Write i2c OK [11:17:32]MH_I2C_Read... [11:17:32]Read from MH i2c: 01 [11:17:32]MH_I2C_Read... [11:17:32]Read from MH i2c: 01 07 00 [11:17:32]MH_I2C_Read... [11:17:32]Read from MH i2c: 01 07 00 C6 70 00 00 00 00 00 FF 0F 4B [11:17:32]RasterBufferAndPrint [11:17:32]line Счет N : (1)1036174 [11:17:32]line ИНН: 02508201610067 [11:17:32]line Контрольно-Кассовый Чек [11:17:32]line ПРОДАЖА [11:17:32]line ТРК (МРК, ГНК) : 23 [11:17:32]line Товар: 2710124500 [11:17:32]line Аи-95-К-5 [11:17:32]line 20.220 * 74.20 [11:17:32]line = 1500.32 [11:17:32]line НДС 12% НСП 1% [11:17:32]line > о реализуемом товаре [11:17:32]line ОКРУГЛЕНИЕ: -0.32 [11:17:32]line ИТОГО: 1500.00 [11:17:32]line Внесено: 1500.00 [11:17:32]line СДАЧА: 0.00 [11:17:32]line НСП 1% : 13.28 [11:17:32]line НДС 12% : 159.33 [11:17:32]line Наличными: 1500.00 [11:17:32]line Безнал.: 0.00 [11:17:32]line Место: АЗС № 94 "Партнер Нефть" [11:17:32]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:17:32]line СНО: Общий режим [11:17:32]line Чек 185 18.08.2024 11:17 [11:17:32]line Смена: 449 ФФД: 1.0 [11:17:32]line ЗНМ: 0300000099 [11:17:32]line РНМ: 0000000000091865 [11:17:32]line Версия ККМ: 001 [11:17:32]line ФМ: 0000000000871820 [11:17:32]line ФД: 260627 [11:17:32]line ФПД: 196514116767060 [11:17:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T111735&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260627&fm=196514116767060&tin=02508201610067®Number=0000000000091865&sum=150000 [11:17:33]OFD Sender: Processing packet 260627 [packets to send 192, broken 191] [11:17:33]ProducePacketName [11:17:33]name=ofd_packets/00260627 [11:17:33]OFD Sender: To server: pG, [11:17:33]CommunicateWithHost lk.salyk.kg:30040 [11:17:33]ConnectInit lk.salyk.kg [11:17:33]written 0, free lines is 4095 [11:17:33]Connected sock=10 [11:17: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 30 0F 01 00 00 C4 1B 07 01 C2 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 B9 00 00 00 F4 03 04 00 4F D8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 13 FA 03 00 35 04 06 00 B2 BA 82 1F 8D 54 2E 0C 93 C7 D9 44 7A 83 [11:17: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 30 4F 00 00 00 13 93 47 00 65 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 13 FA 03 00 F4 03 04 00 A5 81 C1 66 B6 04 01 00 00 59 99 A2 27 F8 07 36 02 [11:17:33]CommunicateWithHost err = 0 [11:17:33]CheckOFDResponse [11:17:33]1017 (14) - 77093643461234 [11:17:33]1041 (16) - 0000000000871820 [11:17:33]1040 (4) - 260627 [11:17:33]1012 (4) - 18.08.2024 05:07 [11:17:33]1206 (1) - 0 [11:17:33]OFD Sender: Remove packet 260627 [11:17:33]ProducePacketName [11:17:33]name=ofd_packets/00260627 [11:17:33]NVStorageDeleteData [11:17:33]Write to MH i2c: 01 00 00 F1 70 61 [11:17:33]Write i2c OK [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: 01 [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: 01 07 00 [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: 01 07 00 F1 70 00 00 00 00 00 66 0C DA [11:17:33]RasterBufferAndPrint [11:17:33]line [11:17:33]line [11:17:33]line [11:17:33]line [11:17:33]line [11:17:33]written 0, free lines is 3177 [11:17:33]MH_Cut [11:17:33]Write to MH i2c: D1 01 00 F8 70 01 3A [11:17:33]Write i2c OK [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: D1 [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: D1 01 00 [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: D1 01 00 F8 70 00 39 [11:17:33]Write to MH i2c: 01 00 00 F9 70 69 [11:17:33]Write i2c OK [11:17:33]MH_I2C_Read... [11:17:34]OFD Sender: No OFD packet to send [11:17:34]*** Cut start [11:17:34]*** Purtial cut [11:17:34]*** Stage 1: CUTSNS_PIN = 1 [11:17:36]Read from MH i2c: 01 [11:17:36]MH_I2C_Read... [11:17:36]*** Stop cut motor [11:17:36]*** Cut end [11:17:36]Read from MH i2c: 01 07 00 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: 01 07 00 F9 70 00 00 00 00 00 FF 0F 7E [11:17:36]process_action close_receipt done [11:17:36]requested_data is exist [11:17:36]produce_requested_data [11:17:36]requested_item fm.sn is exist - process it [11:17:36]wFMCommunicate request_size=4 [11:17:36]MH_SAM_APDU [11:17:36]CAPDU: 80 11 00 00 [11:17:36]Write to MH i2c: E2 08 00 FA 70 80 11 00 00 00 00 00 00 E4 [11:17:36]Write i2c OK [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: E2 [11:17:36]MH_I2C_Read... [11:17:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:36]Read from MH i2c: E2 17 00 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: E2 17 00 FA 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 31 [11:17:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:17:36]wFMCommunicate OK [11:17:36]requested_item fd.num is exist - process it [11:17:36]SAM_PROTO_GetFieldsCounters [11:17:36]wFMCommunicate request_size=4 [11:17:36]MH_SAM_APDU [11:17:36]CAPDU: 80 13 00 00 [11:17:36]Write to MH i2c: E2 08 00 FB 70 80 13 00 00 00 00 00 00 E7 [11:17:36]Write i2c OK [11:17:36]MH_I2C_Read... [11:17:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:37]Read from MH i2c: E2 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 62 00 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 62 00 FB 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 13 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [11:17: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 13 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:37]wFMCommunicate OK [11:17:37]SAM_PROTO_GetFieldsCounters done [11:17:37]requested_item shift.num is exist - process it [11:17:37]requested_item shift.opened is exist - process it [11:17:37]req_shift_opened [11:17:37]FM_GetShiftState [11:17:37]SAM_PROTO_GetShiftState [11:17:37]wFMCommunicate request_size=4 [11:17:37]MH_SAM_APDU [11:17:37]CAPDU: 80 13 01 00 [11:17:37]Write to MH i2c: E2 08 00 FC 70 80 13 01 00 00 00 00 00 E9 [11:17:37]Write i2c OK [11:17:37]MH_I2C_Read... [11:17:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:37]Read from MH i2c: E2 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 0E 00 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 0E 00 FC 70 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 26 [11:17:37]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:17:37]wFMCommunicate OK [11:17:37]SAM_PROTO_GetShiftState done [11:17:37]FM_GetShiftState done [11:17:37]req_shift_opened done [11:17:37]requested_item shift.open_date is exist - process it [11:17:37]req_shift_open_date [11:17:37]req_shift_open_date done [11:17:37]produce_requested_data done [11:17:37]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260627,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:17:37]process_action_free close_receipt [11:17:37]json_value_free [11:17:37]json_value_free done [11:17:37]process_json_proto returns [11:17:37]Send response to host [11:17:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260627,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:17:37]free response buf [11:17:37]execute_script done [11:17:37]execute_script returns [11:17:37]free content buf [11:17:37]Sock 9.Close socket [11:17:37]Sock 9.Thread stoped [11:17:39]OFD Sender: No OFD packet to send [11:17:44]OFD Sender: No OFD packet to send [11:17:49]OFD Sender: No OFD packet to send [11:17:54]OFD Sender: No OFD packet to send [11:17:59]OFD Sender: No OFD packet to send [11:18:04]OFD Sender: No OFD packet to send [11:18:09]OFD Sender: No OFD packet to send [11:18:10]accept exits with 7 [11:18:10]New connection [11:18:10]New thread 3066473828 created [11:18:10]Thread 3066617188 joined [11:18:10]Waiting for new connection... [11:18:10] Sock 7.Parse request [11:18:10]Sock 7.Check first char [11:18:10]Sock 7.First char is OK [11:18:10]request: POST /json_proto HTTP/1.0 [11:18:10]Method: POST [11:18:10]URL: /json_proto [11:18:10]Method is POST - this is cgi request [11:18:10]url: /json_proto [11:18:10]query_string will be loaded in cgi processing [11:18:10]execute_cgi json_proto POST (null) [11:18:10]execute_cgi path=json_proto method=POST [11:18:10]POST find Content-Length [11:18:10]Host: 172.17.55.133:8080 [11:18:10]Content-Length: 678 [11:18:10]Content-Type: application/json [11:18:10] [11:18:10]POST finish read [11:18:10]Found Content-Length = 678 [11:18:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:18:10]execute_script... [11:18: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)1036176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:18:10]POST & json_proto [11:18:10]process_json_proto [11:18:10]json parsed OK: [11:18:10]protocol is kg_v1.0 [11:18:10]action value=close_receipt [11:18:10]process_action close_receipt [11:18:10]cmd_close_receipt [11:18:10]MH_GetDate [11:18:10]Write to MH i2c: F0 00 00 FD 70 5C [11:18:10]Write i2c OK [11:18:10]MH_I2C_Read... [11:18:10]Read from MH i2c: F0 [11:18:10]MH_I2C_Read... [11:18:10]Read from MH i2c: F0 09 00 [11:18:10]MH_I2C_Read... [11:18:10]Read from MH i2c: F0 09 00 FD 70 00 76 D8 C1 66 34 48 D8 65 93 [11:18:10]GetLastDocTimeStamp 1723979855 [11:18:10]current date 1723979894 [11:18:10]FM_GetShiftState [11:18:10]SAM_PROTO_GetShiftState [11:18:10]wFMCommunicate request_size=4 [11:18:10]MH_SAM_APDU [11:18:10]CAPDU: 80 13 01 00 [11:18:10]Write to MH i2c: E2 08 00 FE 70 80 13 01 00 00 00 00 00 EB [11:18:10]Write i2c OK [11:18:10]MH_I2C_Read... [11:18:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:10]Read from MH i2c: E2 [11:18:10]MH_I2C_Read... [11:18:10]Read from MH i2c: E2 0E 00 [11:18:10]MH_I2C_Read... [11:18:10]Read from MH i2c: E2 0E 00 FE 70 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 28 [11:18:10]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:18:10]wFMCommunicate OK [11:18:10]SAM_PROTO_GetShiftState done [11:18:10]FM_GetShiftState done [11:18:10]opened in 1723940556 [11:18:10]opened+sec_in_day 1724026956 [11:18:10]quantity*price = 50036 [11:18:10]sum+1 = 50037 [11:18:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 186 18.08.2024 11:18 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260628 ФПД: 8727761620709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T111814&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260628&fm=8727761620709&tin=02508201610067®Number=0000000000091865&sum=50000 [11:18:11]StoreToDocumentArchive [11:18:11]shift 449 fd 260628 [11:18:11]save to /storage/0449/doc_00260628 [11:18:11]save last doc name /storage/0449/doc_00260628 to /storage/kkm_last_doc_name [11:18:11]save OK [11:18:11]Clear old archive folders... [11:18:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:18:11]tlvbuf is 00489D50 [11:18:11]SAM_PROTO_ClearQueue [11:18:11]wFMCommunicate request_size=4 [11:18:11]MH_SAM_APDU [11:18:11]CAPDU: 80 09 00 00 [11:18:11]Write to MH i2c: E2 08 00 0B 71 80 09 00 00 00 00 00 00 EE [11:18:11]Write i2c OK [11:18:11]MH_I2C_Read... [11:18:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:11]Read from MH i2c: E2 [11:18:11]MH_I2C_Read... [11:18:11]Read from MH i2c: E2 03 00 [11:18:11]MH_I2C_Read... [11:18:11]Read from MH i2c: E2 03 00 0B 71 00 90 00 F0 [11:18:11]RAPDU: 90 00 [11:18:11]wFMCommunicate OK [11:18:11]SAM_PROTO_ClearQueue done [11:18:11]KKMCreateOFDPacket [11:18:11]OFDProtocolAddRootSTLVToBuf [11:18:11]FM_MakeSignedData [11:18:11]FM_MakeSignedData [11:18:11]SAM_PROTO_SignData [11:18:11]wFMCommunicate request_size=4 [11:18:11]MH_SAM_APDU [11:18:11]CAPDU: 80 0D 01 02 [11:18:11]Write to MH i2c: E2 08 00 0C 71 80 0D 01 02 00 00 00 00 F6 [11:18:11]Write i2c OK [11:18:11]MH_I2C_Read... [11:18:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:11]Read from MH i2c: E2 [11:18:11]MH_I2C_Read... [11:18:11]Read from MH i2c: E2 03 00 [11:18:11]MH_I2C_Read... [11:18:11]Read from MH i2c: E2 03 00 0C 71 00 90 00 F1 [11:18:11]RAPDU: 90 00 [11:18:11]wFMCommunicate OK [11:18:11]wFMCommunicate request_size=255 [11:18:11]MH_SAM_APDU [11:18:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BA 00 00 00 F4 03 04 00 76 D8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 14 FA 03 00 35 04 06 00 07 [11:18:11]Write to MH i2c: E2 02 01 0D 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BA 00 00 00 F4 03 04 00 76 D8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 14 FA 03 00 35 04 06 00 07 00 00 7C [11:18:11]Write i2c OK [11:18:11]MH_I2C_Read... [11:18:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:11]Read from MH i2c: E2 [11:18:11]MH_I2C_Read... [11:18:11]Read from MH i2c: E2 03 00 [11:18:11]MH_I2C_Read... [11:18:11]Read from MH i2c: E2 03 00 0D 71 00 90 00 F2 [11:18:11]RAPDU: 90 00 [11:18:11]wFMCommunicate OK [11:18:11]wFMCommunicate request_size=10 [11:18:11]MH_SAM_APDU [11:18:11]CAPDU: 80 0D 02 02 05 F0 17 21 8E E5 [11:18:11]Write to MH i2c: E2 0D 00 0E 71 80 0D 02 02 05 00 F0 17 21 8E E5 00 00 9E [11:18:11]Write i2c OK [11:18:11]MH_I2C_Read... [11:18:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:11]Read from MH i2c: E2 [11:18:11]MH_I2C_Read... [11:18:11]Read from MH i2c: E2 03 00 [11:18:11]MH_I2C_Read... [11:18:11]Read from MH i2c: E2 03 00 0E 71 00 90 00 F3 [11:18:11]RAPDU: 90 00 [11:18:11]wFMCommunicate OK [11:18:11]wFMCommunicate request_size=4 [11:18:11]MH_SAM_APDU [11:18:11]CAPDU: 80 0D 03 02 [11:18:11]Write to MH i2c: E2 08 00 0F 71 80 0D 03 02 00 00 00 00 FB [11:18:11]Write i2c OK [11:18:11]MH_I2C_Read... [11:18:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:11]Read from MH i2c: E2 [11:18:11]MH_I2C_Read... [11:18:11]Read from MH i2c: E2 0B 00 [11:18:11]MH_I2C_Read... [11:18:11]Read from MH i2c: E2 0B 00 0F 71 00 2A C2 DB 40 FE 77 8F E4 90 00 EB [11:18:11]RAPDU: 2A C2 DB 40 FE 77 8F E4 90 00 [11:18:11]wFMCommunicate OK [11:18:11]SAM_PROTO_SignData done [11:18:11]FM_MakeSignedData done [11:18:11]CreateOFDProtocolMessage [11:18:11]wFMCommunicate request_size=4 [11:18:11]MH_SAM_APDU [11:18:11]CAPDU: 80 11 00 00 [11:18:11]Write to MH i2c: E2 08 00 10 71 80 11 00 00 00 00 00 00 FB [11:18:11]Write i2c OK [11:18:11]MH_I2C_Read... [11:18:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:11]Read from MH i2c: E2 [11:18:11]MH_I2C_Read... [11:18:11]Read from MH i2c: E2 17 00 [11:18:11]MH_I2C_Read... [11:18:11]Read from MH i2c: E2 17 00 10 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 48 [11:18:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:18:11]wFMCommunicate OK [11:18:11]CreateOFDProtocolMessage done [11:18:11]OFDSenderStorePacket 260628 [11:18:11]StoreOFDPacket docnum=260628 [11:18:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 B8 4F 07 01 B8 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BA 00 00 00 F4 03 04 00 76 D8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 14 FA 03 00 35 04 06 00 07 F0 17 21 8E E5 2A C2 DB 40 FE 77 8F E4 [11:18:11]CheckFolder [11:18:11]dirname=/storage/ofd_packets [11:18:11]CheckFolder done [11:18:11]ProducePacketName [11:18:11]name=ofd_packets/00260628 [11:18:11]NVStorageSaveData ofd_packets/00260628 [11:18:11]File name is /storage/ofd_packets/00260628 [11:18:11]Write 301 bytes [11:18:11]NVStorageSaveData done [11:18:11]OFDSenderStorePacket done [11:18:11]KKMCreateOFDPacket done [11:18:11]NVStorageSaveData kkm_last_timestamp [11:18:11]File name is /storage/kkm_last_timestamp [11:18:11]Write 4 bytes [11:18:11]NVStorageSaveData done [11:18:11]ExternCall_PrintAddStr [11:18:11]wPrintStart [11:18:11]Write to MH i2c: 01 00 00 11 71 82 [11:18:11]Write i2c OK [11:18:11]MH_I2C_Read... [11:18:11]Read from MH i2c: 01 [11:18:11]MH_I2C_Read... [11:18:11]Read from MH i2c: 01 07 00 [11:18:11]MH_I2C_Read... [11:18:11]Read from MH i2c: 01 07 00 11 71 00 00 00 00 00 FF 0F 97 [11:18:11]RasterBufferAndPrint [11:18:11]line Счет N : (1)1036176 [11:18:11]line ИНН: 02508201610067 [11:18:11]line Контрольно-Кассовый Чек [11:18:11]line ПРОДАЖА [11:18:11]line ТРК (МРК, ГНК) : 32 [11:18:11]line Товар: 2710124130 [11:18:11]line Аи-92-К-5 [11:18:11]line 7.380 * 67.80 [11:18:11]line = 500.36 [11:18:11]line НДС 12% НСП 1% [11:18:11]line > о реализуемом товаре [11:18:11]line ОКРУГЛЕНИЕ: -0.36 [11:18:11]line ИТОГО: 500.00 [11:18:11]line Внесено: 500.00 [11:18:11]line СДАЧА: 0.00 [11:18:11]line НСП 1% : 4.43 [11:18:11]line НДС 12% : 53.14 [11:18:11]line Наличными: 500.00 [11:18:11]line Безнал.: 0.00 [11:18:11]line Место: АЗС № 94 "Партнер Нефть" [11:18:11]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:18:11]line СНО: Общий режим [11:18:11]line Чек 186 18.08.2024 11:18 [11:18:11]line Смена: 449 ФФД: 1.0 [11:18:11]line ЗНМ: 0300000099 [11:18:11]line РНМ: 0000000000091865 [11:18:11]line Версия ККМ: 001 [11:18:11]line ФМ: 0000000000871820 [11:18:11]line ФД: 260628 [11:18:11]line ФПД: 8727761620709 [11:18:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T111814&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260628&fm=8727761620709&tin=02508201610067®Number=0000000000091865&sum=50000 [11:18:12]written 0, free lines is 4095 [11:18:12]OFD Sender: Processing packet 260628 [packets to send 192, broken 191] [11:18:12]ProducePacketName [11:18:12]name=ofd_packets/00260628 [11:18:12]OFD Sender: To server: pG, [11:18:12]CommunicateWithHost lk.salyk.kg:30040 [11:18:12]ConnectInit lk.salyk.kg [11:18:12]Connected sock=10 [11:18: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 30 0F 01 00 00 B8 4F 07 01 B8 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BA 00 00 00 F4 03 04 00 76 D8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 14 FA 03 00 35 04 06 00 07 F0 17 21 8E E5 2A C2 DB 40 FE 77 8F E4 [11:18: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 30 4F 00 00 00 7E FD 47 00 08 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 30 10 04 04 00 14 FA 03 00 F4 03 04 00 CC 81 C1 66 B6 04 01 00 00 3A 5C E0 D8 AF 68 FB 75 [11:18:12]CommunicateWithHost err = 0 [11:18:12]CheckOFDResponse [11:18:12]1017 (14) - 77093643461234 [11:18:12]1041 (16) - 0000000000871820 [11:18:12]1040 (4) - 260628 [11:18:12]1012 (4) - 18.08.2024 05:08 [11:18:12]1206 (1) - 0 [11:18:12]OFD Sender: Remove packet 260628 [11:18:12]ProducePacketName [11:18:12]name=ofd_packets/00260628 [11:18:12]NVStorageDeleteData [11:18:12]Write to MH i2c: 01 00 00 3C 71 AD [11:18:12]Write i2c OK [11:18:12]MH_I2C_Read... [11:18:12]Read from MH i2c: 01 [11:18:12]MH_I2C_Read... [11:18:12]Read from MH i2c: 01 07 00 [11:18:12]MH_I2C_Read... [11:18:12]Read from MH i2c: 01 07 00 3C 71 00 00 00 00 00 61 0C 21 [11:18:12]RasterBufferAndPrint [11:18:12]line [11:18:12]line [11:18:12]line [11:18:12]line [11:18:12]line [11:18:12]written 0, free lines is 3174 [11:18:12]MH_Cut [11:18:12]Write to MH i2c: D1 01 00 43 71 01 86 [11:18:12]Write i2c OK [11:18:12]MH_I2C_Read... [11:18:12]Read from MH i2c: D1 [11:18:12]MH_I2C_Read... [11:18:12]Read from MH i2c: D1 01 00 [11:18:12]MH_I2C_Read... [11:18:12]Read from MH i2c: D1 01 00 43 71 00 85 [11:18:12]Write to MH i2c: 01 00 00 44 71 B5 [11:18:12]Write i2c OK [11:18:12]MH_I2C_Read... [11:18:13]OFD Sender: No OFD packet to send [11:18:13]*** Cut start [11:18:13]*** Purtial cut [11:18:13]*** Stage 1: CUTSNS_PIN = 1 [11:18:15]Read from MH i2c: 01 [11:18:15]MH_I2C_Read... [11:18:15]*** Stop cut motor [11:18:15]*** Cut end [11:18:15]Read from MH i2c: 01 07 00 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: 01 07 00 44 71 00 00 00 00 00 FF 0F CA [11:18:15]process_action close_receipt done [11:18:15]requested_data is exist [11:18:15]produce_requested_data [11:18:15]requested_item fm.sn is exist - process it [11:18:15]wFMCommunicate request_size=4 [11:18:15]MH_SAM_APDU [11:18:15]CAPDU: 80 11 00 00 [11:18:15]Write to MH i2c: E2 08 00 45 71 80 11 00 00 00 00 00 00 30 [11:18:15]Write i2c OK [11:18:15]MH_I2C_Read... [11:18:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:15]Read from MH i2c: E2 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: E2 17 00 [11:18:15]MH_I2C_Read... [11:18:15]Read from MH i2c: E2 17 00 45 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 7D [11:18:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:18:15]wFMCommunicate OK [11:18:15]requested_item fd.num is exist - process it [11:18:15]SAM_PROTO_GetFieldsCounters [11:18:15]wFMCommunicate request_size=4 [11:18:15]MH_SAM_APDU [11:18:15]CAPDU: 80 13 00 00 [11:18:15]Write to MH i2c: E2 08 00 46 71 80 13 00 00 00 00 00 00 33 [11:18:15]Write i2c OK [11:18:15]MH_I2C_Read... [11:18:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:16]Read from MH i2c: E2 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: E2 62 00 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: E2 62 00 46 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 14 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [11:18:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 14 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:18:16]wFMCommunicate OK [11:18:16]SAM_PROTO_GetFieldsCounters done [11:18:16]requested_item shift.num is exist - process it [11:18:16]requested_item shift.opened is exist - process it [11:18:16]req_shift_opened [11:18:16]FM_GetShiftState [11:18:16]SAM_PROTO_GetShiftState [11:18:16]wFMCommunicate request_size=4 [11:18:16]MH_SAM_APDU [11:18:16]CAPDU: 80 13 01 00 [11:18:16]Write to MH i2c: E2 08 00 47 71 80 13 01 00 00 00 00 00 35 [11:18:16]Write i2c OK [11:18:16]MH_I2C_Read... [11:18:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:16]Read from MH i2c: E2 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: E2 0E 00 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: E2 0E 00 47 71 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 72 [11:18:16]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:18:16]wFMCommunicate OK [11:18:16]SAM_PROTO_GetShiftState done [11:18:16]FM_GetShiftState done [11:18:16]req_shift_opened done [11:18:16]requested_item shift.open_date is exist - process it [11:18:16]req_shift_open_date [11:18:16]req_shift_open_date done [11:18:16]produce_requested_data done [11:18:16]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260628,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:18:16]process_action_free close_receipt [11:18:16]json_value_free [11:18:16]json_value_free done [11:18:16]process_json_proto returns [11:18:16]Send response to host [11:18:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260628,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:18:16]free response buf [11:18:16]execute_script done [11:18:16]execute_script returns [11:18:16]free content buf [11:18:16]Sock 7.Close socket [11:18:16]Sock 7.Thread stoped [11:18:16]accept exits with 9 [11:18:16]New connection [11:18:16]New thread 3066617188 created [11:18:16]Thread 3066473828 joined [11:18:16]Waiting for new connection... [11:18:16] Sock 9.Parse request [11:18:16]Sock 9.Check first char [11:18:16]Sock 9.First char is OK [11:18:16]request: POST /json_proto HTTP/1.0 [11:18:16]Method: POST [11:18:16]URL: /json_proto [11:18:16]Method is POST - this is cgi request [11:18:16]url: /json_proto [11:18:16]query_string will be loaded in cgi processing [11:18:16]execute_cgi json_proto POST (null) [11:18:16]execute_cgi path=json_proto method=POST [11:18:16]POST find Content-Length [11:18:16]Host: 172.17.55.133:8080 [11:18:16]Content-Length: 678 [11:18:16]Content-Type: application/json [11:18:16] [11:18:16]POST finish read [11:18:16]Found Content-Length = 678 [11:18:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:18:16]execute_script... [11:18: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)1036175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:18:16]POST & json_proto [11:18:16]process_json_proto [11:18:16]json parsed OK: [11:18:16]protocol is kg_v1.0 [11:18:16]action value=close_receipt [11:18:16]process_action close_receipt [11:18:16]cmd_close_receipt [11:18:16]MH_GetDate [11:18:16]Write to MH i2c: F0 00 00 48 71 A8 [11:18:16]Write i2c OK [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: F0 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: F0 09 00 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: F0 09 00 48 71 00 7C D8 C1 66 34 48 D8 65 E5 [11:18:16]GetLastDocTimeStamp 1723979894 [11:18:16]current date 1723979900 [11:18:16]FM_GetShiftState [11:18:16]SAM_PROTO_GetShiftState [11:18:16]wFMCommunicate request_size=4 [11:18:16]MH_SAM_APDU [11:18:16]CAPDU: 80 13 01 00 [11:18:16]Write to MH i2c: E2 08 00 49 71 80 13 01 00 00 00 00 00 37 [11:18:16]Write i2c OK [11:18:16]MH_I2C_Read... [11:18:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:16]Read from MH i2c: E2 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: E2 0E 00 [11:18:16]MH_I2C_Read... [11:18:16]Read from MH i2c: E2 0E 00 49 71 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 74 [11:18:16]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:18:16]wFMCommunicate OK [11:18:16]SAM_PROTO_GetShiftState done [11:18:16]FM_GetShiftState done [11:18:16]opened in 1723940556 [11:18:16]opened+sec_in_day 1724026956 [11:18:16]quantity*price = 50036 [11:18:16]sum+1 = 50037 [11:18:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 187 18.08.2024 11:18 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260629 ФПД: 19820257804516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T111821&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260629&fm=19820257804516&tin=02508201610067®Number=0000000000091865&sum=50000 [11:18:18]StoreToDocumentArchive [11:18:18]shift 449 fd 260629 [11:18:18]save to /storage/0449/doc_00260629 [11:18:18]save last doc name /storage/0449/doc_00260629 to /storage/kkm_last_doc_name [11:18:18]save OK [11:18:18]Clear old archive folders... [11:18:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:18:18]tlvbuf is 003FC780 [11:18:18]SAM_PROTO_ClearQueue [11:18:18]wFMCommunicate request_size=4 [11:18:18]MH_SAM_APDU [11:18:18]CAPDU: 80 09 00 00 [11:18:18]Write to MH i2c: E2 08 00 56 71 80 09 00 00 00 00 00 00 39 [11:18:18]Write i2c OK [11:18:18]MH_I2C_Read... [11:18:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:18]OFD Sender: No OFD packet to send [11:18:18]Read from MH i2c: E2 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: E2 03 00 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: E2 03 00 56 71 00 90 00 3B [11:18:18]RAPDU: 90 00 [11:18:18]wFMCommunicate OK [11:18:18]SAM_PROTO_ClearQueue done [11:18:18]KKMCreateOFDPacket [11:18:18]OFDProtocolAddRootSTLVToBuf [11:18:18]FM_MakeSignedData [11:18:18]FM_MakeSignedData [11:18:18]SAM_PROTO_SignData [11:18:18]wFMCommunicate request_size=4 [11:18:18]MH_SAM_APDU [11:18:18]CAPDU: 80 0D 01 02 [11:18:18]Write to MH i2c: E2 08 00 57 71 80 0D 01 02 00 00 00 00 41 [11:18:18]Write i2c OK [11:18:18]MH_I2C_Read... [11:18:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:18]Read from MH i2c: E2 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: E2 03 00 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: E2 03 00 57 71 00 90 00 3C [11:18:18]RAPDU: 90 00 [11:18:18]wFMCommunicate OK [11:18:18]wFMCommunicate request_size=255 [11:18:18]MH_SAM_APDU [11:18:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BB 00 00 00 F4 03 04 00 7D D8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 15 FA 03 00 35 04 06 00 12 [11:18:18]Write to MH i2c: E2 02 01 58 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BB 00 00 00 F4 03 04 00 7D D8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 15 FA 03 00 35 04 06 00 12 00 00 DB [11:18:18]Write i2c OK [11:18:18]MH_I2C_Read... [11:18:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:18]Read from MH i2c: E2 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: E2 03 00 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: E2 03 00 58 71 00 90 00 3D [11:18:18]RAPDU: 90 00 [11:18:18]wFMCommunicate OK [11:18:18]wFMCommunicate request_size=10 [11:18:18]MH_SAM_APDU [11:18:18]CAPDU: 80 0D 02 02 05 06 C3 6D 00 E4 [11:18:18]Write to MH i2c: E2 0D 00 59 71 80 0D 02 02 05 00 06 C3 6D 00 E4 00 00 68 [11:18:18]Write i2c OK [11:18:18]MH_I2C_Read... [11:18:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:18]Read from MH i2c: E2 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: E2 03 00 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: E2 03 00 59 71 00 90 00 3E [11:18:18]RAPDU: 90 00 [11:18:18]wFMCommunicate OK [11:18:18]wFMCommunicate request_size=4 [11:18:18]MH_SAM_APDU [11:18:18]CAPDU: 80 0D 03 02 [11:18:18]Write to MH i2c: E2 08 00 5A 71 80 0D 03 02 00 00 00 00 46 [11:18:18]Write i2c OK [11:18:18]MH_I2C_Read... [11:18:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:18]Read from MH i2c: E2 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: E2 0B 00 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: E2 0B 00 5A 71 00 26 45 4D 83 B9 85 53 4A 90 00 5D [11:18:18]RAPDU: 26 45 4D 83 B9 85 53 4A 90 00 [11:18:18]wFMCommunicate OK [11:18:18]SAM_PROTO_SignData done [11:18:18]FM_MakeSignedData done [11:18:18]CreateOFDProtocolMessage [11:18:18]wFMCommunicate request_size=4 [11:18:18]MH_SAM_APDU [11:18:18]CAPDU: 80 11 00 00 [11:18:18]Write to MH i2c: E2 08 00 5B 71 80 11 00 00 00 00 00 00 46 [11:18:18]Write i2c OK [11:18:18]MH_I2C_Read... [11:18:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:18]Read from MH i2c: E2 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: E2 17 00 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: E2 17 00 5B 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 93 [11:18:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:18:18]wFMCommunicate OK [11:18:18]CreateOFDProtocolMessage done [11:18:18]OFDSenderStorePacket 260629 [11:18:18]StoreOFDPacket docnum=260629 [11:18:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 E6 FC 07 01 55 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BB 00 00 00 F4 03 04 00 7D D8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 15 FA 03 00 35 04 06 00 12 06 C3 6D 00 E4 26 45 4D 83 B9 85 53 4A [11:18:18]CheckFolder [11:18:18]dirname=/storage/ofd_packets [11:18:18]CheckFolder done [11:18:18]ProducePacketName [11:18:18]name=ofd_packets/00260629 [11:18:18]NVStorageSaveData ofd_packets/00260629 [11:18:18]File name is /storage/ofd_packets/00260629 [11:18:18]Write 301 bytes [11:18:18]NVStorageSaveData done [11:18:18]OFDSenderStorePacket done [11:18:18]KKMCreateOFDPacket done [11:18:18]NVStorageSaveData kkm_last_timestamp [11:18:18]File name is /storage/kkm_last_timestamp [11:18:18]Write 4 bytes [11:18:18]NVStorageSaveData done [11:18:18]ExternCall_PrintAddStr [11:18:18]wPrintStart [11:18:18]Write to MH i2c: 01 00 00 5C 71 CD [11:18:18]Write i2c OK [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: 01 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: 01 07 00 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: 01 07 00 5C 71 00 00 00 00 00 FF 0F E2 [11:18:18]RasterBufferAndPrint [11:18:18]line Счет N : (1)1036175 [11:18:18]line ИНН: 02508201610067 [11:18:18]line Контрольно-Кассовый Чек [11:18:18]line ПРОДАЖА [11:18:18]line ТРК (МРК, ГНК) : 42 [11:18:18]line Товар: 2710124130 [11:18:18]line Аи-92-К-5 [11:18:18]line 7.380 * 67.80 [11:18:18]line = 500.36 [11:18:18]line НДС 12% НСП 1% [11:18:18]line > о реализуемом товаре [11:18:18]line ОКРУГЛЕНИЕ: -0.36 [11:18:18]line ИТОГО: 500.00 [11:18:18]line Внесено: 500.00 [11:18:18]line СДАЧА: 0.00 [11:18:18]line НСП 1% : 4.43 [11:18:18]line НДС 12% : 53.14 [11:18:18]line Наличными: 500.00 [11:18:18]line Безнал.: 0.00 [11:18:18]line Место: АЗС № 94 "Партнер Нефть" [11:18:18]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:18:18]line СНО: Общий режим [11:18:18]line Чек 187 18.08.2024 11:18 [11:18:18]line Смена: 449 ФФД: 1.0 [11:18:18]line ЗНМ: 0300000099 [11:18:18]line РНМ: 0000000000091865 [11:18:18]line Версия ККМ: 001 [11:18:18]line ФМ: 0000000000871820 [11:18:18]line ФД: 260629 [11:18:18]line ФПД: 19820257804516 [11:18:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T111821&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260629&fm=19820257804516&tin=02508201610067®Number=0000000000091865&sum=50000 [11:18:18]OFD Sender: Processing packet 260629 [packets to send 192, broken 191] [11:18:18]ProducePacketName [11:18:18]name=ofd_packets/00260629 [11:18:18]OFD Sender: To server: pG, [11:18:18]CommunicateWithHost lk.salyk.kg:30040 [11:18:18]ConnectInit lk.salyk.kg [11:18:18]written 0, free lines is 4095 [11:18:19]Connected sock=10 [11:18: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 30 0F 01 00 00 E6 FC 07 01 55 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BB 00 00 00 F4 03 04 00 7D D8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 15 FA 03 00 35 04 06 00 12 06 C3 6D 00 E4 26 45 4D 83 B9 85 53 4A [11:18: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 30 4F 00 00 00 C0 E5 47 00 3C 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 30 10 04 04 00 15 FA 03 00 F4 03 04 00 D2 81 C1 66 B6 04 01 00 00 7B 81 A3 77 05 19 81 DF [11:18:19]CommunicateWithHost err = 0 [11:18:19]CheckOFDResponse [11:18:19]1017 (14) - 77093643461234 [11:18:19]1041 (16) - 0000000000871820 [11:18:19]1040 (4) - 260629 [11:18:19]1012 (4) - 18.08.2024 05:08 [11:18:19]1206 (1) - 0 [11:18:19]OFD Sender: Remove packet 260629 [11:18:19]ProducePacketName [11:18:19]name=ofd_packets/00260629 [11:18:19]NVStorageDeleteData [11:18:19]Write to MH i2c: 01 00 00 87 71 F8 [11:18:19]Write i2c OK [11:18:19]MH_I2C_Read... [11:18:19]Read from MH i2c: 01 [11:18:19]MH_I2C_Read... [11:18:19]Read from MH i2c: 01 07 00 [11:18:19]MH_I2C_Read... [11:18:19]Read from MH i2c: 01 07 00 87 71 00 00 00 00 00 6C 0C 77 [11:18:19]RasterBufferAndPrint [11:18:19]line [11:18:19]line [11:18:19]line [11:18:19]line [11:18:19]line [11:18:19]written 0, free lines is 3186 [11:18:19]MH_Cut [11:18:19]Write to MH i2c: D1 01 00 8E 71 01 D1 [11:18:19]Write i2c OK [11:18:19]MH_I2C_Read... [11:18:19]Read from MH i2c: D1 [11:18:19]MH_I2C_Read... [11:18:19]Read from MH i2c: D1 01 00 [11:18:19]MH_I2C_Read... [11:18:19]Read from MH i2c: D1 01 00 8E 71 00 D0 [11:18:19]Write to MH i2c: 01 00 00 8F 71 00 [11:18:19]Write i2c OK [11:18:19]MH_I2C_Read... [11:18:19]OFD Sender: No OFD packet to send [11:18:20]*** Cut start [11:18:20]*** Purtial cut [11:18:20]*** Stage 1: CUTSNS_PIN = 1 [11:18:22]Read from MH i2c: 01 [11:18:22]MH_I2C_Read... [11:18:22]*** Stop cut motor [11:18:22]*** Cut end [11:18:22]Read from MH i2c: 01 07 00 [11:18:22]MH_I2C_Read... [11:18:22]Read from MH i2c: 01 07 00 8F 71 00 00 00 00 00 FF 0F 15 [11:18:22]process_action close_receipt done [11:18:22]requested_data is exist [11:18:22]produce_requested_data [11:18:22]requested_item fm.sn is exist - process it [11:18:22]wFMCommunicate request_size=4 [11:18:22]MH_SAM_APDU [11:18:22]CAPDU: 80 11 00 00 [11:18:22]Write to MH i2c: E2 08 00 90 71 80 11 00 00 00 00 00 00 7B [11:18:22]Write i2c OK [11:18:22]MH_I2C_Read... [11:18:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:22]Read from MH i2c: E2 [11:18:22]MH_I2C_Read... [11:18:22]Read from MH i2c: E2 17 00 [11:18:22]MH_I2C_Read... [11:18:22]Read from MH i2c: E2 17 00 90 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C8 [11:18:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:18:22]wFMCommunicate OK [11:18:22]requested_item fd.num is exist - process it [11:18:22]SAM_PROTO_GetFieldsCounters [11:18:22]wFMCommunicate request_size=4 [11:18:22]MH_SAM_APDU [11:18:22]CAPDU: 80 13 00 00 [11:18:22]Write to MH i2c: E2 08 00 91 71 80 13 00 00 00 00 00 00 7E [11:18:22]Write i2c OK [11:18:22]MH_I2C_Read... [11:18:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:22]Read from MH i2c: E2 [11:18:22]MH_I2C_Read... [11:18:22]Read from MH i2c: E2 62 00 [11:18:22]MH_I2C_Read... [11:18:22]Read from MH i2c: E2 62 00 91 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 15 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [11:18: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 15 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:18:22]wFMCommunicate OK [11:18:22]SAM_PROTO_GetFieldsCounters done [11:18:22]requested_item shift.num is exist - process it [11:18:22]requested_item shift.opened is exist - process it [11:18:22]req_shift_opened [11:18:22]FM_GetShiftState [11:18:22]SAM_PROTO_GetShiftState [11:18:22]wFMCommunicate request_size=4 [11:18:22]MH_SAM_APDU [11:18:22]CAPDU: 80 13 01 00 [11:18:22]Write to MH i2c: E2 08 00 92 71 80 13 01 00 00 00 00 00 80 [11:18:22]Write i2c OK [11:18:22]MH_I2C_Read... [11:18:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:22]Read from MH i2c: E2 [11:18:22]MH_I2C_Read... [11:18:22]Read from MH i2c: E2 0E 00 [11:18:22]MH_I2C_Read... [11:18:22]Read from MH i2c: E2 0E 00 92 71 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 BD [11:18:22]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:18:22]wFMCommunicate OK [11:18:22]SAM_PROTO_GetShiftState done [11:18:22]FM_GetShiftState done [11:18:22]req_shift_opened done [11:18:22]requested_item shift.open_date is exist - process it [11:18:22]req_shift_open_date [11:18:22]req_shift_open_date done [11:18:22]produce_requested_data done [11:18:22]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260629,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:18:22]process_action_free close_receipt [11:18:22]json_value_free [11:18:22]json_value_free done [11:18:22]process_json_proto returns [11:18:22]Send response to host [11:18:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260629,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:18:22]free response buf [11:18:22]execute_script done [11:18:22]execute_script returns [11:18:22]free content buf [11:18:22]Sock 9.Close socket [11:18:22]Sock 9.Thread stoped [11:18:24]OFD Sender: No OFD packet to send [11:18:29]OFD Sender: No OFD packet to send [11:18:34]OFD Sender: No OFD packet to send [11:18:39]OFD Sender: No OFD packet to send [11:18:44]OFD Sender: No OFD packet to send [11:18:49]OFD Sender: No OFD packet to send [11:18:54]OFD Sender: No OFD packet to send [11:18:59]accept exits with 7 [11:18:59]New connection [11:18:59]New thread 3066473828 created [11:18:59]Thread 3066617188 joined [11:18:59]Waiting for new connection... [11:18:59] Sock 7.Parse request [11:18:59]Sock 7.Check first char [11:18:59]Sock 7.First char is OK [11:18:59]request: POST /json_proto HTTP/1.0 [11:18:59]Method: POST [11:18:59]URL: /json_proto [11:18:59]Method is POST - this is cgi request [11:18:59]url: /json_proto [11:18:59]query_string will be loaded in cgi processing [11:18:59]execute_cgi json_proto POST (null) [11:18:59]execute_cgi path=json_proto method=POST [11:18:59]POST find Content-Length [11:18:59]Host: 172.17.55.133:8080 [11:18:59]Content-Length: 683 [11:18:59]Content-Type: application/json [11:18:59] [11:18:59]POST finish read [11:18:59]Found Content-Length = 683 [11:18:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036177", "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" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "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:18:59]execute_script... [11:18:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036177", "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" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "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:18:59]POST & json_proto [11:18:59]process_json_proto [11:18:59]json parsed OK: [11:18:59]protocol is kg_v1.0 [11:18:59]action value=close_receipt [11:18:59]process_action close_receipt [11:18:59]cmd_close_receipt [11:18:59]MH_GetDate [11:18:59]Write to MH i2c: F0 00 00 93 71 F3 [11:18:59]Write i2c OK [11:18:59]MH_I2C_Read... [11:18:59]Read from MH i2c: F0 [11:18:59]MH_I2C_Read... [11:18:59]Read from MH i2c: F0 09 00 [11:18:59]MH_I2C_Read... [11:18:59]Read from MH i2c: F0 09 00 93 71 00 A8 D8 C1 66 34 48 D8 65 5C [11:18:59]GetLastDocTimeStamp 1723979901 [11:18:59]current date 1723979944 [11:18:59]FM_GetShiftState [11:18:59]SAM_PROTO_GetShiftState [11:18:59]wFMCommunicate request_size=4 [11:18:59]MH_SAM_APDU [11:18:59]CAPDU: 80 13 01 00 [11:18:59]Write to MH i2c: E2 08 00 94 71 80 13 01 00 00 00 00 00 82 [11:18:59]Write i2c OK [11:18:59]MH_I2C_Read... [11:18:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:59]Read from MH i2c: E2 [11:18:59]MH_I2C_Read... [11:18:59]Read from MH i2c: E2 0E 00 [11:18:59]MH_I2C_Read... [11:18:59]Read from MH i2c: E2 0E 00 94 71 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 BF [11:18:59]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:18:59]wFMCommunicate OK [11:18:59]SAM_PROTO_GetShiftState done [11:18:59]FM_GetShiftState done [11:18:59]opened in 1723940556 [11:18:59]opened+sec_in_day 1724026956 [11:18:59]quantity*price = 200043 [11:18:59]sum+1 = 200044 [11:18:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 188 18.08.2024 11:19 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260630 ФПД: 103337023139739 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T111904&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260630&fm=103337023139739&tin=02508201610067®Number=0000000000091865&sum=200000 [11:19:00]StoreToDocumentArchive [11:19:00]shift 449 fd 260630 [11:19:00]save to /storage/0449/doc_00260630 [11:19:00]save last doc name /storage/0449/doc_00260630 to /storage/kkm_last_doc_name [11:19:00]save OK [11:19:00]Clear old archive folders... [11:19:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:19:00]tlvbuf is 003368F0 [11:19:00]SAM_PROTO_ClearQueue [11:19:00]wFMCommunicate request_size=4 [11:19:00]MH_SAM_APDU [11:19:00]CAPDU: 80 09 00 00 [11:19:00]Write to MH i2c: E2 08 00 A1 71 80 09 00 00 00 00 00 00 84 [11:19:00]Write i2c OK [11:19:00]MH_I2C_Read... [11:19:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:00]Read from MH i2c: E2 [11:19:00]MH_I2C_Read... [11:19:00]Read from MH i2c: E2 03 00 [11:19:00]MH_I2C_Read... [11:19:00]Read from MH i2c: E2 03 00 A1 71 00 90 00 86 [11:19:00]RAPDU: 90 00 [11:19:00]wFMCommunicate OK [11:19:00]SAM_PROTO_ClearQueue done [11:19:00]KKMCreateOFDPacket [11:19:00]OFDProtocolAddRootSTLVToBuf [11:19:00]FM_MakeSignedData [11:19:00]FM_MakeSignedData [11:19:00]SAM_PROTO_SignData [11:19:00]wFMCommunicate request_size=4 [11:19:00]MH_SAM_APDU [11:19:00]CAPDU: 80 0D 01 02 [11:19:00]Write to MH i2c: E2 08 00 A2 71 80 0D 01 02 00 00 00 00 8C [11:19:00]Write i2c OK [11:19:00]MH_I2C_Read... [11:19:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:00]Read from MH i2c: E2 [11:19:00]MH_I2C_Read... [11:19:00]Read from MH i2c: E2 03 00 [11:19:00]MH_I2C_Read... [11:19:00]Read from MH i2c: E2 03 00 A2 71 00 90 00 87 [11:19:00]RAPDU: 90 00 [11:19:00]wFMCommunicate OK [11:19:00]wFMCommunicate request_size=255 [11:19:00]MH_SAM_APDU [11:19:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 A8 D8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 16 FA 03 00 35 04 06 00 5D [11:19:00]Write to MH i2c: E2 02 01 A3 71 80 0D 02 02 FA 00 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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 A8 D8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 16 FA 03 00 35 04 06 00 5D 00 00 56 [11:19:00]Write i2c OK [11:19:00]MH_I2C_Read... [11:19:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:01]Read from MH i2c: E2 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: E2 03 00 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: E2 03 00 A3 71 00 90 00 88 [11:19:01]RAPDU: 90 00 [11:19:01]wFMCommunicate OK [11:19:01]wFMCommunicate request_size=10 [11:19:01]MH_SAM_APDU [11:19:01]CAPDU: 80 0D 02 02 05 FC 06 8E 6F 9B [11:19:01]Write to MH i2c: E2 0D 00 A4 71 80 0D 02 02 05 00 FC 06 8E 6F 9B 00 00 33 [11:19:01]Write i2c OK [11:19:01]MH_I2C_Read... [11:19:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:01]Read from MH i2c: E2 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: E2 03 00 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: E2 03 00 A4 71 00 90 00 89 [11:19:01]RAPDU: 90 00 [11:19:01]wFMCommunicate OK [11:19:01]wFMCommunicate request_size=4 [11:19:01]MH_SAM_APDU [11:19:01]CAPDU: 80 0D 03 02 [11:19:01]Write to MH i2c: E2 08 00 A5 71 80 0D 03 02 00 00 00 00 91 [11:19:01]Write i2c OK [11:19:01]MH_I2C_Read... [11:19:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:01]Read from MH i2c: E2 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: E2 0B 00 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: E2 0B 00 A5 71 00 A8 3C CE 71 FB A2 A9 6A 90 00 65 [11:19:01]RAPDU: A8 3C CE 71 FB A2 A9 6A 90 00 [11:19:01]wFMCommunicate OK [11:19:01]SAM_PROTO_SignData done [11:19:01]FM_MakeSignedData done [11:19:01]CreateOFDProtocolMessage [11:19:01]wFMCommunicate request_size=4 [11:19:01]MH_SAM_APDU [11:19:01]CAPDU: 80 11 00 00 [11:19:01]Write to MH i2c: E2 08 00 A6 71 80 11 00 00 00 00 00 00 91 [11:19:01]Write i2c OK [11:19:01]MH_I2C_Read... [11:19:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:01]Read from MH i2c: E2 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: E2 17 00 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: E2 17 00 A6 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 DE [11:19:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:19:01]wFMCommunicate OK [11:19:01]CreateOFDProtocolMessage done [11:19:01]OFDSenderStorePacket 260630 [11:19:01]StoreOFDPacket docnum=260630 [11:19:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 75 30 07 01 F5 6E 5A 03 01 00 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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 A8 D8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 16 FA 03 00 35 04 06 00 5D FC 06 8E 6F 9B A8 3C CE 71 FB A2 A9 6A [11:19:01]CheckFolder [11:19:01]dirname=/storage/ofd_packets [11:19:01]CheckFolder done [11:19:01]ProducePacketName [11:19:01]name=ofd_packets/00260630 [11:19:01]NVStorageSaveData ofd_packets/00260630 [11:19:01]File name is /storage/ofd_packets/00260630 [11:19:01]Write 301 bytes [11:19:01]NVStorageSaveData done [11:19:01]OFDSenderStorePacket done [11:19:01]KKMCreateOFDPacket done [11:19:01]NVStorageSaveData kkm_last_timestamp [11:19:01]File name is /storage/kkm_last_timestamp [11:19:01]Write 4 bytes [11:19:01]NVStorageSaveData done [11:19:01]ExternCall_PrintAddStr [11:19:01]wPrintStart [11:19:01]Write to MH i2c: 01 00 00 A7 71 18 [11:19:01]Write i2c OK [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: 01 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: 01 07 00 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: 01 07 00 A7 71 00 00 00 00 00 FF 0F 2D [11:19:01]RasterBufferAndPrint [11:19:01]line Счет N : (1)1036177 [11:19:01]line ИНН: 02508201610067 [11:19:01]line Контрольно-Кассовый Чек [11:19:01]line ПРОДАЖА [11:19:01]line ТРК (МРК, ГНК) : 13 [11:19:01]line Товар: 2710124500 [11:19:01]line Аи-95-К-5 [11:19:01]line 26.960 * 74.20 [11:19:01]line = 2000.43 [11:19:01]line НДС 12% НСП 1% [11:19:01]line > о реализуемом товаре [11:19:01]line ОКРУГЛЕНИЕ: -0.43 [11:19:01]line ИТОГО: 2000.00 [11:19:01]line Внесено: 2000.00 [11:19:01]line СДАЧА: 0.00 [11:19:01]line НСП 1% : 17.70 [11:19:01]line НДС 12% : 212.43 [11:19:01]line Наличными: 2000.00 [11:19:01]line Безнал.: 0.00 [11:19:01]line Место: АЗС № 94 "Партнер Нефть" [11:19:01]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:19:01]line СНО: Общий режим [11:19:01]line Чек 188 18.08.2024 11:19 [11:19:01]line Смена: 449 ФФД: 1.0 [11:19:01]line ЗНМ: 0300000099 [11:19:01]line РНМ: 0000000000091865 [11:19:01]line Версия ККМ: 001 [11:19:01]line ФМ: 0000000000871820 [11:19:01]line ФД: 260630 [11:19:01]line ФПД: 103337023139739 [11:19:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T111904&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260630&fm=103337023139739&tin=02508201610067®Number=0000000000091865&sum=200000 [11:19:01]written 0, free lines is 4095 [11:19:01]OFD Sender: Processing packet 260630 [packets to send 192, broken 191] [11:19:01]ProducePacketName [11:19:01]name=ofd_packets/00260630 [11:19:01]OFD Sender: To server: pG, [11:19:01]CommunicateWithHost lk.salyk.kg:30040 [11:19:01]ConnectInit lk.salyk.kg [11:19:01]Connected sock=10 [11:19: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 30 0F 01 00 00 75 30 07 01 F5 6E 5A 03 01 00 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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 A8 D8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 16 FA 03 00 35 04 06 00 5D FC 06 8E 6F 9B A8 3C CE 71 FB A2 A9 6A [11:19:01]Write to MH i2c: 01 00 00 D2 71 43 [11:19:01]Write i2c OK [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: 01 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: 01 07 00 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: 01 07 00 D2 71 00 00 00 00 00 6F 0C C5 [11:19:01]RasterBufferAndPrint [11:19:01]line [11:19:01]line [11:19:01]line [11:19:01]line [11:19:01]line [11:19:01]written 0, free lines is 3186 [11:19:01]MH_Cut [11:19:01]Write to MH i2c: D1 01 00 D9 71 01 1C [11:19:01]Write i2c OK [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: D1 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: D1 01 00 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: D1 01 00 D9 71 00 1B [11:19:01]Write to MH i2c: 01 00 00 DA 71 4B [11:19:01]Write i2c OK [11:19:01]MH_I2C_Read... [11:19: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 30 4F 00 00 00 BA DE 47 00 63 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 30 10 04 04 00 16 FA 03 00 F4 03 04 00 FD 81 C1 66 B6 04 01 00 00 3A C2 1F 7D EF 51 03 53 [11:19:01]CommunicateWithHost err = 0 [11:19:01]CheckOFDResponse [11:19:01]1017 (14) - 77093643461234 [11:19:01]1041 (16) - 0000000000871820 [11:19:01]1040 (4) - 260630 [11:19:01]1012 (4) - 18.08.2024 05:09 [11:19:01]1206 (1) - 0 [11:19:01]OFD Sender: Remove packet 260630 [11:19:01]ProducePacketName [11:19:01]name=ofd_packets/00260630 [11:19:01]NVStorageDeleteData [11:19:02]OFD Sender: No OFD packet to send [11:19:02]*** Cut start [11:19:02]*** Purtial cut [11:19:02]*** Stage 1: CUTSNS_PIN = 1 [11:19:04]Read from MH i2c: 01 [11:19:04]MH_I2C_Read... [11:19:04]*** Stop cut motor [11:19:04]*** Cut end [11:19:04]Read from MH i2c: 01 07 00 [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: 01 07 00 DA 71 00 00 00 00 00 FF 0F 60 [11:19:04]process_action close_receipt done [11:19:04]requested_data is exist [11:19:04]produce_requested_data [11:19:04]requested_item fm.sn is exist - process it [11:19:04]wFMCommunicate request_size=4 [11:19:04]MH_SAM_APDU [11:19:04]CAPDU: 80 11 00 00 [11:19:04]Write to MH i2c: E2 08 00 DB 71 80 11 00 00 00 00 00 00 C6 [11:19:04]Write i2c OK [11:19:04]MH_I2C_Read... [11:19:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:05]Read from MH i2c: E2 [11:19:05]MH_I2C_Read... [11:19:05]Read from MH i2c: E2 17 00 [11:19:05]MH_I2C_Read... [11:19:05]Read from MH i2c: E2 17 00 DB 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 13 [11:19:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:19:05]wFMCommunicate OK [11:19:05]requested_item fd.num is exist - process it [11:19:05]SAM_PROTO_GetFieldsCounters [11:19:05]wFMCommunicate request_size=4 [11:19:05]MH_SAM_APDU [11:19:05]CAPDU: 80 13 00 00 [11:19:05]Write to MH i2c: E2 08 00 DC 71 80 13 00 00 00 00 00 00 C9 [11:19:05]Write i2c OK [11:19:05]MH_I2C_Read... [11:19:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:05]Read from MH i2c: E2 [11:19:05]MH_I2C_Read... [11:19:05]Read from MH i2c: E2 62 00 [11:19:05]MH_I2C_Read... [11:19:05]Read from MH i2c: E2 62 00 DC 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 16 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [11:19: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 16 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:05]wFMCommunicate OK [11:19:05]SAM_PROTO_GetFieldsCounters done [11:19:05]requested_item shift.num is exist - process it [11:19:05]requested_item shift.opened is exist - process it [11:19:05]req_shift_opened [11:19:05]FM_GetShiftState [11:19:05]SAM_PROTO_GetShiftState [11:19:05]wFMCommunicate request_size=4 [11:19:05]MH_SAM_APDU [11:19:05]CAPDU: 80 13 01 00 [11:19:05]Write to MH i2c: E2 08 00 DD 71 80 13 01 00 00 00 00 00 CB [11:19:05]Write i2c OK [11:19:05]MH_I2C_Read... [11:19:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:05]Read from MH i2c: E2 [11:19:05]MH_I2C_Read... [11:19:05]Read from MH i2c: E2 0E 00 [11:19:05]MH_I2C_Read... [11:19:05]Read from MH i2c: E2 0E 00 DD 71 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 08 [11:19:05]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:19:05]wFMCommunicate OK [11:19:05]SAM_PROTO_GetShiftState done [11:19:05]FM_GetShiftState done [11:19:05]req_shift_opened done [11:19:05]requested_item shift.open_date is exist - process it [11:19:05]req_shift_open_date [11:19:05]req_shift_open_date done [11:19:05]produce_requested_data done [11:19:05]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260630,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:19:05]process_action_free close_receipt [11:19:05]json_value_free [11:19:05]json_value_free done [11:19:05]process_json_proto returns [11:19:05]Send response to host [11:19:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260630,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:19:05]free response buf [11:19:05]execute_script done [11:19:05]execute_script returns [11:19:05]free content buf [11:19:05]Sock 7.Close socket [11:19:05]Sock 7.Thread stoped [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:22]OFD Sender: No OFD packet to send [11:19:27]OFD Sender: No OFD packet to send [11:19:32]OFD Sender: No OFD packet to send [11:19:33]accept exits with 9 [11:19:33]New connection [11:19:33]New thread 3066617188 created [11:19:33]Thread 3066473828 joined [11:19:33]Waiting for new connection... [11:19:33] Sock 9.Parse request [11:19:33]Sock 9.Check first char [11:19:33]Sock 9.First char is OK [11:19:33]request: POST /json_proto HTTP/1.0 [11:19:33]Method: POST [11:19:33]URL: /json_proto [11:19:33]Method is POST - this is cgi request [11:19:33]url: /json_proto [11:19:33]query_string will be loaded in cgi processing [11:19:33]execute_cgi json_proto POST (null) [11:19:33]execute_cgi path=json_proto method=POST [11:19:33]POST find Content-Length [11:19:33]Host: 172.17.55.133:8080 [11:19:33]Content-Length: 683 [11:19:33]Content-Type: application/json [11:19:33] [11:19:33]POST finish read [11:19:33]Found Content-Length = 683 [11:19:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036178", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:33]execute_script... [11:19: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)1036178", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:33]POST & json_proto [11:19:33]process_json_proto [11:19:33]json parsed OK: [11:19:33]protocol is kg_v1.0 [11:19:33]action value=close_receipt [11:19:33]process_action close_receipt [11:19:33]cmd_close_receipt [11:19:33]MH_GetDate [11:19:33]Write to MH i2c: F0 00 00 DE 71 3E [11:19:33]Write i2c OK [11:19:33]MH_I2C_Read... [11:19:33]Read from MH i2c: F0 [11:19:33]MH_I2C_Read... [11:19:33]Read from MH i2c: F0 09 00 [11:19:33]MH_I2C_Read... [11:19:33]Read from MH i2c: F0 09 00 DE 71 00 CA D8 C1 66 34 48 D8 65 C9 [11:19:33]GetLastDocTimeStamp 1723979944 [11:19:33]current date 1723979978 [11:19:33]FM_GetShiftState [11:19:33]SAM_PROTO_GetShiftState [11:19:33]wFMCommunicate request_size=4 [11:19:33]MH_SAM_APDU [11:19:33]CAPDU: 80 13 01 00 [11:19:33]Write to MH i2c: E2 08 00 DF 71 80 13 01 00 00 00 00 00 CD [11:19:33]Write i2c OK [11:19:33]MH_I2C_Read... [11:19:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:33]Read from MH i2c: E2 [11:19:33]MH_I2C_Read... [11:19:33]Read from MH i2c: E2 0E 00 [11:19:33]MH_I2C_Read... [11:19:33]Read from MH i2c: E2 0E 00 DF 71 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 0A [11:19:33]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:19:33]wFMCommunicate OK [11:19:33]SAM_PROTO_GetShiftState done [11:19:33]FM_GetShiftState done [11:19:33]opened in 1723940556 [11:19:33]opened+sec_in_day 1724026956 [11:19:33]quantity*price = 100021 [11:19:33]sum+1 = 100023 [11:19:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 189 18.08.2024 11:19 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260631 ФПД: 238583215078088 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T111938&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260631&fm=238583215078088&tin=02508201610067®Number=0000000000091865&sum=100000 [11:19:34]StoreToDocumentArchive [11:19:34]shift 449 fd 260631 [11:19:34]save to /storage/0449/doc_00260631 [11:19:34]save last doc name /storage/0449/doc_00260631 to /storage/kkm_last_doc_name [11:19:34]save OK [11:19:34]Clear old archive folders... [11:19:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:19:34]tlvbuf is 003A72D0 [11:19:34]SAM_PROTO_ClearQueue [11:19:34]wFMCommunicate request_size=4 [11:19:34]MH_SAM_APDU [11:19:34]CAPDU: 80 09 00 00 [11:19:34]Write to MH i2c: E2 08 00 EC 71 80 09 00 00 00 00 00 00 CF [11:19:34]Write i2c OK [11:19:34]MH_I2C_Read... [11:19:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:35]Read from MH i2c: E2 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 03 00 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 03 00 EC 71 00 90 00 D1 [11:19:35]RAPDU: 90 00 [11:19:35]wFMCommunicate OK [11:19:35]SAM_PROTO_ClearQueue done [11:19:35]KKMCreateOFDPacket [11:19:35]OFDProtocolAddRootSTLVToBuf [11:19:35]FM_MakeSignedData [11:19:35]FM_MakeSignedData [11:19:35]SAM_PROTO_SignData [11:19:35]wFMCommunicate request_size=4 [11:19:35]MH_SAM_APDU [11:19:35]CAPDU: 80 0D 01 02 [11:19:35]Write to MH i2c: E2 08 00 ED 71 80 0D 01 02 00 00 00 00 D7 [11:19:35]Write i2c OK [11:19:35]MH_I2C_Read... [11:19:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:35]Read from MH i2c: E2 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 03 00 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 03 00 ED 71 00 90 00 D2 [11:19:35]RAPDU: 90 00 [11:19:35]wFMCommunicate OK [11:19:35]wFMCommunicate request_size=255 [11:19:35]MH_SAM_APDU [11:19: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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 CA D8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 17 FA 03 00 35 04 06 00 D8 [11:19:35]Write to MH i2c: E2 02 01 EE 71 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 CA D8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 17 FA 03 00 35 04 06 00 D8 00 00 B5 [11:19:35]Write i2c OK [11:19:35]MH_I2C_Read... [11:19:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:35]Read from MH i2c: E2 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 03 00 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 03 00 EE 71 00 90 00 D3 [11:19:35]RAPDU: 90 00 [11:19:35]wFMCommunicate OK [11:19:35]wFMCommunicate request_size=10 [11:19:35]MH_SAM_APDU [11:19:35]CAPDU: 80 0D 02 02 05 FD 7B C8 BA C8 [11:19:35]Write to MH i2c: E2 0D 00 EF 71 80 0D 02 02 05 00 FD 7B C8 BA C8 00 00 A6 [11:19:35]Write i2c OK [11:19:35]MH_I2C_Read... [11:19:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:35]Read from MH i2c: E2 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 03 00 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 03 00 EF 71 00 90 00 D4 [11:19:35]RAPDU: 90 00 [11:19:35]wFMCommunicate OK [11:19:35]wFMCommunicate request_size=4 [11:19:35]MH_SAM_APDU [11:19:35]CAPDU: 80 0D 03 02 [11:19:35]Write to MH i2c: E2 08 00 F0 71 80 0D 03 02 00 00 00 00 DC [11:19:35]Write i2c OK [11:19:35]MH_I2C_Read... [11:19:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:35]Read from MH i2c: E2 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 0B 00 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 0B 00 F0 71 00 A2 89 D2 0C 7A D2 3C 8A 90 00 F8 [11:19:35]RAPDU: A2 89 D2 0C 7A D2 3C 8A 90 00 [11:19:35]wFMCommunicate OK [11:19:35]SAM_PROTO_SignData done [11:19:35]FM_MakeSignedData done [11:19:35]CreateOFDProtocolMessage [11:19:35]wFMCommunicate request_size=4 [11:19:35]MH_SAM_APDU [11:19:35]CAPDU: 80 11 00 00 [11:19:35]Write to MH i2c: E2 08 00 F1 71 80 11 00 00 00 00 00 00 DC [11:19:35]Write i2c OK [11:19:35]MH_I2C_Read... [11:19:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:35]Read from MH i2c: E2 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 17 00 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 17 00 F1 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 29 [11:19:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:19:35]wFMCommunicate OK [11:19:35]CreateOFDProtocolMessage done [11:19:35]OFDSenderStorePacket 260631 [11:19:35]StoreOFDPacket docnum=260631 [11:19:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 7D F7 07 01 BC 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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 CA D8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 17 FA 03 00 35 04 06 00 D8 FD 7B C8 BA C8 A2 89 D2 0C 7A D2 3C 8A [11:19:35]CheckFolder [11:19:35]dirname=/storage/ofd_packets [11:19:35]CheckFolder done [11:19:35]ProducePacketName [11:19:35]name=ofd_packets/00260631 [11:19:35]NVStorageSaveData ofd_packets/00260631 [11:19:35]File name is /storage/ofd_packets/00260631 [11:19:35]Write 301 bytes [11:19:35]NVStorageSaveData done [11:19:35]OFDSenderStorePacket done [11:19:35]KKMCreateOFDPacket done [11:19:35]NVStorageSaveData kkm_last_timestamp [11:19:35]File name is /storage/kkm_last_timestamp [11:19:35]Write 4 bytes [11:19:35]NVStorageSaveData done [11:19:35]ExternCall_PrintAddStr [11:19:35]wPrintStart [11:19:35]Write to MH i2c: 01 00 00 F2 71 63 [11:19:35]Write i2c OK [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: 01 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: 01 07 00 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: 01 07 00 F2 71 00 00 00 00 00 FF 0F 78 [11:19:35]RasterBufferAndPrint [11:19:35]line Счет N : (1)1036178 [11:19:35]line ИНН: 02508201610067 [11:19:35]line Контрольно-Кассовый Чек [11:19:35]line ПРОДАЖА [11:19:35]line ТРК (МРК, ГНК) : 23 [11:19:35]line Товар: 2710124500 [11:19:35]line Аи-95-К-5 [11:19:35]line 13.480 * 74.20 [11:19:35]line = 1000.22 [11:19:35]line НДС 12% НСП 1% [11:19:35]line > о реализуемом товаре [11:19:35]line ОКРУГЛЕНИЕ: -0.22 [11:19:35]line ИТОГО: 1000.00 [11:19:35]line Внесено: 1000.00 [11:19:35]line СДАЧА: 0.00 [11:19:35]line НСП 1% : 8.85 [11:19:35]line НДС 12% : 106.22 [11:19:35]line Наличными: 1000.00 [11:19:35]line Безнал.: 0.00 [11:19:35]line Место: АЗС № 94 "Партнер Нефть" [11:19:35]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:19:35]line СНО: Общий режим [11:19:35]line Чек 189 18.08.2024 11:19 [11:19:35]line Смена: 449 ФФД: 1.0 [11:19:35]line ЗНМ: 0300000099 [11:19:35]line РНМ: 0000000000091865 [11:19:35]line Версия ККМ: 001 [11:19:35]line ФМ: 0000000000871820 [11:19:35]line ФД: 260631 [11:19:35]line ФПД: 238583215078088 [11:19:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T111938&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260631&fm=238583215078088&tin=02508201610067®Number=0000000000091865&sum=100000 [11:19:35]OFD Sender: Processing packet 260631 [packets to send 192, broken 191] [11:19:35]ProducePacketName [11:19:35]name=ofd_packets/00260631 [11:19:35]OFD Sender: To server: pG, [11:19:35]CommunicateWithHost lk.salyk.kg:30040 [11:19:35]ConnectInit lk.salyk.kg [11:19:35]written 0, free lines is 4095 [11:19:35]Connected sock=10 [11:19: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 30 0F 01 00 00 7D F7 07 01 BC 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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 CA D8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 17 FA 03 00 35 04 06 00 D8 FD 7B C8 BA C8 A2 89 D2 0C 7A D2 3C 8A [11:19: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 30 4F 00 00 00 71 DC 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 30 10 04 04 00 17 FA 03 00 F4 03 04 00 1F 82 C1 66 B6 04 01 00 00 28 75 C4 4B B1 55 B7 34 [11:19:36]CommunicateWithHost err = 0 [11:19:36]CheckOFDResponse [11:19:36]1017 (14) - 77093643461234 [11:19:36]1041 (16) - 0000000000871820 [11:19:36]1040 (4) - 260631 [11:19:36]1012 (4) - 18.08.2024 05:09 [11:19:36]1206 (1) - 0 [11:19:36]OFD Sender: Remove packet 260631 [11:19:36]ProducePacketName [11:19:36]name=ofd_packets/00260631 [11:19:36]NVStorageDeleteData [11:19:36]Write to MH i2c: 01 00 00 1D 72 8F [11:19:36]Write i2c OK [11:19:36]MH_I2C_Read... [11:19:36]Read from MH i2c: 01 [11:19:36]MH_I2C_Read... [11:19:36]Read from MH i2c: 01 07 00 [11:19:36]MH_I2C_Read... [11:19:36]Read from MH i2c: 01 07 00 1D 72 00 00 00 00 00 75 0C 17 [11:19:36]RasterBufferAndPrint [11:19:36]line [11:19:36]line [11:19:36]line [11:19:36]line [11:19:36]line [11:19:36]written 0, free lines is 3192 [11:19:36]MH_Cut [11:19:36]Write to MH i2c: D1 01 00 24 72 01 68 [11:19:36]Write i2c OK [11:19:36]MH_I2C_Read... [11:19:36]Read from MH i2c: D1 [11:19:36]MH_I2C_Read... [11:19:36]Read from MH i2c: D1 01 00 [11:19:36]MH_I2C_Read... [11:19:36]Read from MH i2c: D1 01 00 24 72 00 67 [11:19:36]Write to MH i2c: 01 00 00 25 72 97 [11:19:36]Write i2c OK [11:19:36]MH_I2C_Read... [11:19:36]OFD Sender: No OFD packet to send [11:19:37]*** Cut start [11:19:37]*** Purtial cut [11:19:37]*** Stage 1: CUTSNS_PIN = 1 [11:19:39]Read from MH i2c: 01 [11:19:39]MH_I2C_Read... [11:19:39]*** Stop cut motor [11:19:39]*** Cut end [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 25 72 00 00 00 00 00 FF 0F AC [11:19:39]process_action close_receipt done [11:19:39]requested_data is exist [11:19:39]produce_requested_data [11:19:39]requested_item fm.sn is exist - process it [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 26 72 80 11 00 00 00 00 00 00 12 [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 26 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 5F [11:19:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:19:39]wFMCommunicate OK [11:19:39]requested_item fd.num is exist - process it [11:19:39]SAM_PROTO_GetFieldsCounters [11:19:39]wFMCommunicate request_size=4 [11:19:39]MH_SAM_APDU [11:19:39]CAPDU: 80 13 00 00 [11:19:39]Write to MH i2c: E2 08 00 27 72 80 13 00 00 00 00 00 00 15 [11:19:39]Write i2c OK [11:19:39]MH_I2C_Read... [11:19:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:39]Read from MH i2c: E2 [11:19:39]MH_I2C_Read... [11:19:39]Read from MH i2c: E2 62 00 [11:19:39]MH_I2C_Read... [11:19:39]Read from MH i2c: E2 62 00 27 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 17 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [11:19: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 17 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:39]wFMCommunicate OK [11:19:39]SAM_PROTO_GetFieldsCounters done [11:19:39]requested_item shift.num is exist - process it [11:19:39]requested_item shift.opened is exist - process it [11:19:39]req_shift_opened [11:19:39]FM_GetShiftState [11:19:39]SAM_PROTO_GetShiftState [11:19:39]wFMCommunicate request_size=4 [11:19:39]MH_SAM_APDU [11:19:39]CAPDU: 80 13 01 00 [11:19:39]Write to MH i2c: E2 08 00 28 72 80 13 01 00 00 00 00 00 17 [11:19:39]Write i2c OK [11:19:39]MH_I2C_Read... [11:19:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:39]Read from MH i2c: E2 [11:19:39]MH_I2C_Read... [11:19:39]Read from MH i2c: E2 0E 00 [11:19:39]MH_I2C_Read... [11:19:39]Read from MH i2c: E2 0E 00 28 72 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 54 [11:19:39]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:19:39]wFMCommunicate OK [11:19:39]SAM_PROTO_GetShiftState done [11:19:39]FM_GetShiftState done [11:19:39]req_shift_opened done [11:19:39]requested_item shift.open_date is exist - process it [11:19:39]req_shift_open_date [11:19:39]req_shift_open_date done [11:19:39]produce_requested_data done [11:19:39]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260631,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:19:39]process_action_free close_receipt [11:19:39]json_value_free [11:19:39]json_value_free done [11:19:39]process_json_proto returns [11:19:39]Send response to host [11:19:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260631,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:19:39]free response buf [11:19:39]execute_script done [11:19:39]execute_script returns [11:19:39]free content buf [11:19:39]Sock 9.Close socket [11:19:39]Sock 9.Thread stoped [11:19:41]OFD Sender: No OFD packet to send [11:19:46]OFD Sender: No OFD packet to send [11:19:51]OFD Sender: No OFD packet to send [11:19:56]OFD Sender: No OFD packet to send [11:20:01]OFD Sender: No OFD packet to send [11:20:06]OFD Sender: No OFD packet to send [11:20:11]OFD Sender: No OFD packet to send [11:20:13]accept exits with 7 [11:20:13]New connection [11:20:13]New thread 3066473828 created [11:20:13]Thread 3066617188 joined [11:20:13]Waiting for new connection... [11:20:13] Sock 7.Parse request [11:20:13]Sock 7.Check first char [11:20:13]Sock 7.First char is OK [11:20:13]request: POST /json_proto HTTP/1.0 [11:20:13]Method: POST [11:20:13]URL: /json_proto [11:20:13]Method is POST - this is cgi request [11:20:13]url: /json_proto [11:20:13]query_string will be loaded in cgi processing [11:20:13]execute_cgi json_proto POST (null) [11:20:13]execute_cgi path=json_proto method=POST [11:20:13]POST find Content-Length [11:20:13]Host: 172.17.55.133:8080 [11:20:13]Content-Length: 678 [11:20:13]Content-Type: application/json [11:20:13] [11:20:13]POST finish read [11:20:13]Found Content-Length = 678 [11:20:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:20:13]execute_script... [11:20:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:20:13]POST & json_proto [11:20:13]process_json_proto [11:20:13]json parsed OK: [11:20:13]protocol is kg_v1.0 [11:20:13]action value=close_receipt [11:20:13]process_action close_receipt [11:20:13]cmd_close_receipt [11:20:13]MH_GetDate [11:20:13]Write to MH i2c: F0 00 00 29 72 8A [11:20:13]Write i2c OK [11:20:13]MH_I2C_Read... [11:20:13]Read from MH i2c: F0 [11:20:13]MH_I2C_Read... [11:20:13]Read from MH i2c: F0 09 00 [11:20:13]MH_I2C_Read... [11:20:13]Read from MH i2c: F0 09 00 29 72 00 F2 D8 C1 66 34 48 D8 65 3D [11:20:13]GetLastDocTimeStamp 1723979978 [11:20:13]current date 1723980018 [11:20:13]FM_GetShiftState [11:20:13]SAM_PROTO_GetShiftState [11:20:13]wFMCommunicate request_size=4 [11:20:13]MH_SAM_APDU [11:20:13]CAPDU: 80 13 01 00 [11:20:13]Write to MH i2c: E2 08 00 2A 72 80 13 01 00 00 00 00 00 19 [11:20:13]Write i2c OK [11:20:13]MH_I2C_Read... [11:20:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:13]Read from MH i2c: E2 [11:20:13]MH_I2C_Read... [11:20:13]Read from MH i2c: E2 0E 00 [11:20:13]MH_I2C_Read... [11:20:13]Read from MH i2c: E2 0E 00 2A 72 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 56 [11:20:13]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:20:13]wFMCommunicate OK [11:20:13]SAM_PROTO_GetShiftState done [11:20:13]FM_GetShiftState done [11:20:13]opened in 1723940556 [11:20:13]opened+sec_in_day 1724026956 [11:20:13]quantity*price = 40002 [11:20:13]sum+1 = 40003 [11:20:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 190 18.08.2024 11:20 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260632 ФПД: 234342736840206 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T112018&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260632&fm=234342736840206&tin=02508201610067®Number=0000000000091865&sum=40000 [11:20:14]StoreToDocumentArchive [11:20:14]shift 449 fd 260632 [11:20:14]save to /storage/0449/doc_00260632 [11:20:14]save last doc name /storage/0449/doc_00260632 to /storage/kkm_last_doc_name [11:20:14]save OK [11:20:14]Clear old archive folders... [11:20:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:20:14]tlvbuf is 0057B630 [11:20:14]SAM_PROTO_ClearQueue [11:20:14]wFMCommunicate request_size=4 [11:20:14]MH_SAM_APDU [11:20:14]CAPDU: 80 09 00 00 [11:20:14]Write to MH i2c: E2 08 00 37 72 80 09 00 00 00 00 00 00 1B [11:20:14]Write i2c OK [11:20:14]MH_I2C_Read... [11:20:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:14]Read from MH i2c: E2 [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: E2 03 00 [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: E2 03 00 37 72 00 90 00 1D [11:20:14]RAPDU: 90 00 [11:20:14]wFMCommunicate OK [11:20:14]SAM_PROTO_ClearQueue done [11:20:14]KKMCreateOFDPacket [11:20:14]OFDProtocolAddRootSTLVToBuf [11:20:14]FM_MakeSignedData [11:20:14]FM_MakeSignedData [11:20:14]SAM_PROTO_SignData [11:20:14]wFMCommunicate request_size=4 [11:20:14]MH_SAM_APDU [11:20:14]CAPDU: 80 0D 01 02 [11:20:14]Write to MH i2c: E2 08 00 38 72 80 0D 01 02 00 00 00 00 23 [11:20:14]Write i2c OK [11:20:14]MH_I2C_Read... [11:20:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:14]Read from MH i2c: E2 [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: E2 03 00 [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: E2 03 00 38 72 00 90 00 1E [11:20:14]RAPDU: 90 00 [11:20:14]wFMCommunicate OK [11:20:14]wFMCommunicate request_size=255 [11:20:14]MH_SAM_APDU [11:20:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 F2 D8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 18 FA 03 00 35 04 06 00 D5 [11:20:14]Write to MH i2c: E2 02 01 39 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 F2 D8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 18 FA 03 00 35 04 06 00 D5 00 00 E0 [11:20:15]Write i2c OK [11:20:15]MH_I2C_Read... [11:20:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:15]Read from MH i2c: E2 [11:20:15]MH_I2C_Read... [11:20:15]Read from MH i2c: E2 03 00 [11:20:15]MH_I2C_Read... [11:20:15]Read from MH i2c: E2 03 00 39 72 00 90 00 1F [11:20:15]RAPDU: 90 00 [11:20:15]wFMCommunicate OK [11:20:15]wFMCommunicate request_size=10 [11:20:15]MH_SAM_APDU [11:20:15]CAPDU: 80 0D 02 02 05 22 2B 95 C6 0E [11:20:15]Write to MH i2c: E2 0D 00 3A 72 80 0D 02 02 05 00 22 2B 95 C6 0E 00 00 E6 [11:20:15]Write i2c OK [11:20:15]MH_I2C_Read... [11:20:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:15]Read from MH i2c: E2 [11:20:15]MH_I2C_Read... [11:20:15]Read from MH i2c: E2 03 00 [11:20:15]MH_I2C_Read... [11:20:15]Read from MH i2c: E2 03 00 3A 72 00 90 00 20 [11:20:15]RAPDU: 90 00 [11:20:15]wFMCommunicate OK [11:20:15]wFMCommunicate request_size=4 [11:20:15]MH_SAM_APDU [11:20:15]CAPDU: 80 0D 03 02 [11:20:15]Write to MH i2c: E2 08 00 3B 72 80 0D 03 02 00 00 00 00 28 [11:20:15]Write i2c OK [11:20:15]MH_I2C_Read... [11:20:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:15]Read from MH i2c: E2 [11:20:15]MH_I2C_Read... [11:20:15]Read from MH i2c: E2 0B 00 [11:20:15]MH_I2C_Read... [11:20:15]Read from MH i2c: E2 0B 00 3B 72 00 CC BF 92 CF 0C 48 E0 44 90 00 8D [11:20:15]RAPDU: CC BF 92 CF 0C 48 E0 44 90 00 [11:20:15]wFMCommunicate OK [11:20:15]SAM_PROTO_SignData done [11:20:15]FM_MakeSignedData done [11:20:15]CreateOFDProtocolMessage [11:20:15]wFMCommunicate request_size=4 [11:20:15]MH_SAM_APDU [11:20:15]CAPDU: 80 11 00 00 [11:20:15]Write to MH i2c: E2 08 00 3C 72 80 11 00 00 00 00 00 00 28 [11:20:15]Write i2c OK [11:20:15]MH_I2C_Read... [11:20:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:15]Read from MH i2c: E2 [11:20:15]MH_I2C_Read... [11:20:15]Read from MH i2c: E2 17 00 [11:20:15]MH_I2C_Read... [11:20:15]Read from MH i2c: E2 17 00 3C 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 75 [11:20:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:20:15]wFMCommunicate OK [11:20:15]CreateOFDProtocolMessage done [11:20:15]OFDSenderStorePacket 260632 [11:20:15]StoreOFDPacket docnum=260632 [11:20:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 5A 92 07 01 E0 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 F2 D8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 18 FA 03 00 35 04 06 00 D5 22 2B 95 C6 0E CC BF 92 CF 0C 48 E0 44 [11:20:15]CheckFolder [11:20:15]dirname=/storage/ofd_packets [11:20:15]CheckFolder done [11:20:15]ProducePacketName [11:20:15]name=ofd_packets/00260632 [11:20:15]NVStorageSaveData ofd_packets/00260632 [11:20:15]File name is /storage/ofd_packets/00260632 [11:20:15]Write 301 bytes [11:20:15]NVStorageSaveData done [11:20:15]OFDSenderStorePacket done [11:20:15]KKMCreateOFDPacket done [11:20:15]NVStorageSaveData kkm_last_timestamp [11:20:15]File name is /storage/kkm_last_timestamp [11:20:15]Write 4 bytes [11:20:15]NVStorageSaveData done [11:20:15]ExternCall_PrintAddStr [11:20:15]wPrintStart [11:20:15]Write to MH i2c: 01 00 00 3D 72 AF [11:20:15]Write i2c OK [11:20:15]MH_I2C_Read... [11:20:15]Read from MH i2c: 01 [11:20:15]MH_I2C_Read... [11:20:15]Read from MH i2c: 01 07 00 [11:20:15]MH_I2C_Read... [11:20:15]Read from MH i2c: 01 07 00 3D 72 00 00 00 00 00 FF 0F C4 [11:20:15]RasterBufferAndPrint [11:20:15]line Счет N : (1)1036179 [11:20:15]line ИНН: 02508201610067 [11:20:15]line Контрольно-Кассовый Чек [11:20:15]line ПРОДАЖА [11:20:15]line ТРК (МРК, ГНК) : 42 [11:20:15]line Товар: 2710124130 [11:20:15]line Аи-92-К-5 [11:20:15]line 5.900 * 67.80 [11:20:15]line = 400.02 [11:20:15]line НДС 12% НСП 1% [11:20:15]line > о реализуемом товаре [11:20:15]line ОКРУГЛЕНИЕ: -0.02 [11:20:15]line ИТОГО: 400.00 [11:20:15]line Внесено: 400.00 [11:20:15]line СДАЧА: 0.00 [11:20:15]line НСП 1% : 3.54 [11:20:15]line НДС 12% : 42.48 [11:20:15]line Наличными: 400.00 [11:20:15]line Безнал.: 0.00 [11:20:15]line Место: АЗС № 94 "Партнер Нефть" [11:20:15]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:20:15]line СНО: Общий режим [11:20:15]line Чек 190 18.08.2024 11:20 [11:20:15]line Смена: 449 ФФД: 1.0 [11:20:15]line ЗНМ: 0300000099 [11:20:15]line РНМ: 0000000000091865 [11:20:15]line Версия ККМ: 001 [11:20:15]line ФМ: 0000000000871820 [11:20:15]line ФД: 260632 [11:20:15]line ФПД: 234342736840206 [11:20:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T112018&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260632&fm=234342736840206&tin=02508201610067®Number=0000000000091865&sum=40000 [11:20:15]written 0, free lines is 4095 [11:20:15]OFD Sender: Processing packet 260632 [packets to send 192, broken 191] [11:20:15]ProducePacketName [11:20:15]name=ofd_packets/00260632 [11:20:15]OFD Sender: To server: pG, [11:20:15]CommunicateWithHost lk.salyk.kg:30040 [11:20:15]ConnectInit lk.salyk.kg [11:20:15]Connected sock=10 [11:20: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 30 0F 01 00 00 5A 92 07 01 E0 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 F2 D8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 18 FA 03 00 35 04 06 00 D5 22 2B 95 C6 0E CC BF 92 CF 0C 48 E0 44 [11:20: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 30 4F 00 00 00 CC 25 47 00 1D 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 30 10 04 04 00 18 FA 03 00 F4 03 04 00 47 82 C1 66 B6 04 01 00 00 7B E7 80 63 B5 9E E2 B8 [11:20:15]CommunicateWithHost err = 0 [11:20:15]CheckOFDResponse [11:20:15]1017 (14) - 77093643461234 [11:20:15]1041 (16) - 0000000000871820 [11:20:15]1040 (4) - 260632 [11:20:15]1012 (4) - 18.08.2024 05:10 [11:20:15]1206 (1) - 0 [11:20:15]OFD Sender: Remove packet 260632 [11:20:15]ProducePacketName [11:20:15]name=ofd_packets/00260632 [11:20:15]NVStorageDeleteData [11:20:15]Write to MH i2c: 01 00 00 68 72 DA [11:20:15]Write i2c OK [11:20:15]MH_I2C_Read... [11:20:15]Read from MH i2c: 01 [11:20:15]MH_I2C_Read... [11:20:15]Read from MH i2c: 01 07 00 [11:20:15]MH_I2C_Read... [11:20:15]Read from MH i2c: 01 07 00 68 72 00 00 00 00 00 6E 0C 5B [11:20:15]RasterBufferAndPrint [11:20:15]line [11:20:15]line [11:20:15]line [11:20:15]line [11:20:15]line [11:20:15]written 0, free lines is 3186 [11:20:15]MH_Cut [11:20:15]Write to MH i2c: D1 01 00 6F 72 01 B3 [11:20:15]Write i2c OK [11:20:15]MH_I2C_Read... [11:20:15]Read from MH i2c: D1 [11:20:15]MH_I2C_Read... [11:20:15]Read from MH i2c: D1 01 00 [11:20:15]MH_I2C_Read... [11:20:15]Read from MH i2c: D1 01 00 6F 72 00 B2 [11:20:15]Write to MH i2c: 01 00 00 70 72 E2 [11:20:15]Write i2c OK [11:20:15]MH_I2C_Read... [11:20:16]OFD Sender: No OFD packet to send [11:20:17]*** Cut start [11:20:17]*** Purtial cut [11:20:17]*** Stage 1: CUTSNS_PIN = 1 [11:20:19]Read from MH i2c: 01 [11:20:19]MH_I2C_Read... [11:20:19]*** Stop cut motor [11:20:19]*** Cut end [11:20:19]Read from MH i2c: 01 07 00 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: 01 07 00 70 72 00 00 00 00 00 FF 0F F7 [11:20:19]process_action close_receipt done [11:20:19]requested_data is exist [11:20:19]produce_requested_data [11:20:19]requested_item fm.sn is exist - process it [11:20:19]wFMCommunicate request_size=4 [11:20:19]MH_SAM_APDU [11:20:19]CAPDU: 80 11 00 00 [11:20:19]Write to MH i2c: E2 08 00 71 72 80 11 00 00 00 00 00 00 5D [11:20:19]Write i2c OK [11:20:19]MH_I2C_Read... [11:20:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:19]Read from MH i2c: E2 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: E2 17 00 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: E2 17 00 71 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 AA [11:20:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:20:19]wFMCommunicate OK [11:20:19]requested_item fd.num is exist - process it [11:20:19]SAM_PROTO_GetFieldsCounters [11:20:19]wFMCommunicate request_size=4 [11:20:19]MH_SAM_APDU [11:20:19]CAPDU: 80 13 00 00 [11:20:19]Write to MH i2c: E2 08 00 72 72 80 13 00 00 00 00 00 00 60 [11:20:19]Write i2c OK [11:20:19]MH_I2C_Read... [11:20:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:19]Read from MH i2c: E2 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: E2 62 00 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: E2 62 00 72 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 18 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [11:20: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 18 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:20:19]wFMCommunicate OK [11:20:19]SAM_PROTO_GetFieldsCounters done [11:20:19]requested_item shift.num is exist - process it [11:20:19]requested_item shift.opened is exist - process it [11:20:19]req_shift_opened [11:20:19]FM_GetShiftState [11:20:19]SAM_PROTO_GetShiftState [11:20:19]wFMCommunicate request_size=4 [11:20:19]MH_SAM_APDU [11:20:19]CAPDU: 80 13 01 00 [11:20:19]Write to MH i2c: E2 08 00 73 72 80 13 01 00 00 00 00 00 62 [11:20:19]Write i2c OK [11:20:19]MH_I2C_Read... [11:20:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:19]Read from MH i2c: E2 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: E2 0E 00 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: E2 0E 00 73 72 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 9F [11:20:19]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:20:19]wFMCommunicate OK [11:20:19]SAM_PROTO_GetShiftState done [11:20:19]FM_GetShiftState done [11:20:19]req_shift_opened done [11:20:19]requested_item shift.open_date is exist - process it [11:20:19]req_shift_open_date [11:20:19]req_shift_open_date done [11:20:19]produce_requested_data done [11:20:19]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260632,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:20:19]process_action_free close_receipt [11:20:19]json_value_free [11:20:19]json_value_free done [11:20:19]process_json_proto returns [11:20:19]Send response to host [11:20:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260632,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:20:19]free response buf [11:20:19]execute_script done [11:20:19]execute_script returns [11:20:19]free content buf [11:20:19]Sock 7.Close socket [11:20:19]Sock 7.Thread stoped [11:20:21]OFD Sender: No OFD packet to send [11:20:26]OFD Sender: No OFD packet to send [11:20:31]OFD Sender: No OFD packet to send [11:20:36]OFD Sender: No OFD packet to send [11:20:41]OFD Sender: No OFD packet to send [11:20:46]OFD Sender: No OFD packet to send [11:20:51]OFD Sender: No OFD packet to send [11:20:56]OFD Sender: No OFD packet to send [11:21:01]OFD Sender: No OFD packet to send [11:21:06]OFD Sender: No OFD packet to send [11:21:11]OFD Sender: No OFD packet to send [11:21:16]OFD Sender: No OFD packet to send [11:21:21]OFD Sender: No OFD packet to send [11:21:26]OFD Sender: No OFD packet to send [11:21:31]OFD Sender: No OFD packet to send [11:21:36]OFD Sender: No OFD packet to send [11:21:41]OFD Sender: No OFD packet to send [11:21:46]OFD Sender: No OFD packet to send [11:21:51]OFD Sender: No OFD packet to send [11:21:53]accept exits with 9 [11:21:53]New connection [11:21:53]New thread 3066617188 created [11:21:53]Thread 3066473828 joined [11:21:53]Waiting for new connection... [11:21:53] Sock 9.Parse request [11:21:53]Sock 9.Check first char [11:21:53]Sock 9.First char is OK [11:21:53]request: POST /json_proto HTTP/1.0 [11:21:53]Method: POST [11:21:53]URL: /json_proto [11:21:53]Method is POST - this is cgi request [11:21:53]url: /json_proto [11:21:53]query_string will be loaded in cgi processing [11:21:53]execute_cgi json_proto POST (null) [11:21:53]execute_cgi path=json_proto method=POST [11:21:53]POST find Content-Length [11:21:53]Host: 172.17.55.133:8080 [11:21:53]Content-Length: 801 [11:21:53]Content-Type: application/json [11:21:53] [11:21:53]POST finish read [11:21:53]Found Content-Length = 801 [11:21:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4203256", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:53]execute_script... [11:21: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)1036181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4203256", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:53]POST & json_proto [11:21:53]process_json_proto [11:21:53]json parsed OK: [11:21:53]protocol is kg_v1.0 [11:21:53]action value=close_receipt [11:21:53]process_action close_receipt [11:21:53]cmd_close_receipt [11:21:53]MH_GetDate [11:21:53]Write to MH i2c: F0 00 00 74 72 D5 [11:21:53]Write i2c OK [11:21:53]MH_I2C_Read... [11:21:53]Read from MH i2c: F0 [11:21:53]MH_I2C_Read... [11:21:53]Read from MH i2c: F0 09 00 [11:21:53]MH_I2C_Read... [11:21:53]Read from MH i2c: F0 09 00 74 72 00 56 D9 C1 66 34 48 D8 65 ED [11:21:53]GetLastDocTimeStamp 1723980018 [11:21:53]current date 1723980118 [11:21:53]FM_GetShiftState [11:21:53]SAM_PROTO_GetShiftState [11:21:53]wFMCommunicate request_size=4 [11:21:53]MH_SAM_APDU [11:21:53]CAPDU: 80 13 01 00 [11:21:53]Write to MH i2c: E2 08 00 75 72 80 13 01 00 00 00 00 00 64 [11:21:53]Write i2c OK [11:21:53]MH_I2C_Read... [11:21:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:53]Read from MH i2c: E2 [11:21:53]MH_I2C_Read... [11:21:53]Read from MH i2c: E2 0E 00 [11:21:53]MH_I2C_Read... [11:21:53]Read from MH i2c: E2 0E 00 75 72 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A1 [11:21:53]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:21:53]wFMCommunicate OK [11:21:53]SAM_PROTO_GetShiftState done [11:21:53]FM_GetShiftState done [11:21:53]opened in 1723940556 [11:21:53]opened+sec_in_day 1724026956 [11:21:53]quantity*price = 0 [11:21:53]sum+1 = 1 [11:21:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 191 18.08.2024 11:21 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: Топливные Талоны 4203256 ФМ: 0000000000871820 ФД: 260633 ФПД: 150507146485040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T112158&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260633&fm=150507146485040&tin=02508201610067®Number=0000000000091865&sum=0 [11:21:55]StoreToDocumentArchive [11:21:55]shift 449 fd 260633 [11:21:55]save to /storage/0449/doc_00260633 [11:21:55]save last doc name /storage/0449/doc_00260633 to /storage/kkm_last_doc_name [11:21:55]save OK [11:21:55]Clear old archive folders... [11:21:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:21:55]tlvbuf is 003E2930 [11:21:55]SAM_PROTO_ClearQueue [11:21:55]wFMCommunicate request_size=4 [11:21:55]MH_SAM_APDU [11:21:55]CAPDU: 80 09 00 00 [11:21:55]Write to MH i2c: E2 08 00 82 72 80 09 00 00 00 00 00 00 66 [11:21:55]Write i2c OK [11:21:55]MH_I2C_Read... [11:21:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:21:55]Read from MH i2c: E2 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: E2 03 00 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: E2 03 00 82 72 00 90 00 68 [11:21:55]RAPDU: 90 00 [11:21:55]wFMCommunicate OK [11:21:55]SAM_PROTO_ClearQueue done [11:21:55]KKMCreateOFDPacket [11:21:55]OFDProtocolAddRootSTLVToBuf [11:21:55]FM_MakeSignedData [11:21:55]FM_MakeSignedData [11:21:55]SAM_PROTO_SignData [11:21:55]wFMCommunicate request_size=4 [11:21:55]MH_SAM_APDU [11:21:55]CAPDU: 80 0D 01 02 [11:21:55]Write to MH i2c: E2 08 00 83 72 80 0D 01 02 00 00 00 00 6E [11:21:55]Write i2c OK [11:21:55]MH_I2C_Read... [11:21:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:21:55]Read from MH i2c: E2 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: E2 03 00 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: E2 03 00 83 72 00 90 00 69 [11:21:55]RAPDU: 90 00 [11:21:55]wFMCommunicate OK [11:21:55]wFMCommunicate request_size=255 [11:21:55]MH_SAM_APDU [11:21:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 BF 00 00 00 F4 03 04 00 56 D9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 19 FA 03 00 35 04 06 00 88 [11:21:55]Write to MH i2c: E2 02 01 84 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 56 D9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 19 FA 03 00 35 04 06 00 88 00 00 22 [11:21:55]Write i2c OK [11:21:55]MH_I2C_Read... [11:21:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:55]Read from MH i2c: E2 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: E2 03 00 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: E2 03 00 84 72 00 90 00 6A [11:21:55]RAPDU: 90 00 [11:21:55]wFMCommunicate OK [11:21:55]wFMCommunicate request_size=10 [11:21:55]MH_SAM_APDU [11:21:55]CAPDU: 80 0D 02 02 05 E2 AD 00 9D 30 [11:21:55]Write to MH i2c: E2 0D 00 85 72 80 0D 02 02 05 00 E2 AD 00 9D 30 00 00 D7 [11:21:55]Write i2c OK [11:21:55]MH_I2C_Read... [11:21:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:55]Read from MH i2c: E2 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: E2 03 00 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: E2 03 00 85 72 00 90 00 6B [11:21:55]RAPDU: 90 00 [11:21:55]wFMCommunicate OK [11:21:55]wFMCommunicate request_size=4 [11:21:55]MH_SAM_APDU [11:21:55]CAPDU: 80 0D 03 02 [11:21:55]Write to MH i2c: E2 08 00 86 72 80 0D 03 02 00 00 00 00 73 [11:21:55]Write i2c OK [11:21:55]MH_I2C_Read... [11:21:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:21:55]Read from MH i2c: E2 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: E2 0B 00 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: E2 0B 00 86 72 00 0E E4 2A E9 B1 72 9B B0 90 00 E7 [11:21:55]RAPDU: 0E E4 2A E9 B1 72 9B B0 90 00 [11:21:55]wFMCommunicate OK [11:21:55]SAM_PROTO_SignData done [11:21:55]FM_MakeSignedData done [11:21:55]CreateOFDProtocolMessage [11:21:55]wFMCommunicate request_size=4 [11:21:55]MH_SAM_APDU [11:21:55]CAPDU: 80 11 00 00 [11:21:55]Write to MH i2c: E2 08 00 87 72 80 11 00 00 00 00 00 00 73 [11:21:55]Write i2c OK [11:21:55]MH_I2C_Read... [11:21:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:55]Read from MH i2c: E2 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: E2 17 00 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: E2 17 00 87 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C0 [11:21:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:21:55]wFMCommunicate OK [11:21:55]CreateOFDProtocolMessage done [11:21:55]OFDSenderStorePacket 260633 [11:21:55]StoreOFDPacket docnum=260633 [11:21:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 15 A5 07 01 71 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 BF 00 00 00 F4 03 04 00 56 D9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 19 FA 03 00 35 04 06 00 88 E2 AD 00 9D 30 0E E4 2A E9 B1 72 9B B0 [11:21:55]CheckFolder [11:21:55]dirname=/storage/ofd_packets [11:21:55]CheckFolder done [11:21:55]ProducePacketName [11:21:55]name=ofd_packets/00260633 [11:21:55]NVStorageSaveData ofd_packets/00260633 [11:21:55]File name is /storage/ofd_packets/00260633 [11:21:55]Write 301 bytes [11:21:55]NVStorageSaveData done [11:21:55]OFDSenderStorePacket done [11:21:55]KKMCreateOFDPacket done [11:21:55]NVStorageSaveData kkm_last_timestamp [11:21:55]File name is /storage/kkm_last_timestamp [11:21:55]Write 4 bytes [11:21:55]NVStorageSaveData done [11:21:55]OFD Sender: Processing packet 260633 [packets to send 192, broken 191] [11:21:55]ProducePacketName [11:21:55]name=ofd_packets/00260633 [11:21:55]OFD Sender: To server: pG, [11:21:55]CommunicateWithHost lk.salyk.kg:30040 [11:21:55]ConnectInit lk.salyk.kg [11:21:55]ExternCall_PrintAddStr [11:21:55]wPrintStart [11:21:55]Write to MH i2c: 01 00 00 88 72 FA [11:21:55]Write i2c OK [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: 01 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: 01 07 00 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: 01 07 00 88 72 00 00 00 00 00 FF 0F 0F [11:21:55]RasterBufferAndPrint [11:21:55]line Счет N : (1)1036181 [11:21:55]line ИНН: 02508201610067 [11:21:55]line Контрольно-Кассовый Чек [11:21:55]line ПРОДАЖА [11:21:55]line ТРК (МРК, ГНК) : 12 [11:21:55]line Товар: 2710124130 [11:21:55]line Аи-92-К-5 [11:21:55]line 10.000 * 0.00 [11:21:55]line = 0.00 [11:21:55]line НДС 12% НСП 1% [11:21:55]line > о реализуемом товаре [11:21:55]line ИТОГО: 0.00 [11:21:55]line НСП 1% : 0.00 [11:21:55]line НДС 12% : 0.00 [11:21:55]line Наличными: 0.00 [11:21:55]line Безнал.: 0.00 [11:21:55]line Место: АЗС № 94 "Партнер Нефть" [11:21:55]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:21:55]line СНО: Общий режим [11:21:55]line Чек 191 18.08.2024 11:21 [11:21:55]line Смена: 449 ФФД: 1.0 [11:21:55]line ЗНМ: 0300000099 [11:21:55]line РНМ: 0000000000091865 [11:21:55]line Версия ККМ: 001 [11:21:55]line Талоны: Топливные Талоны [11:21:55]line 4203256 [11:21:55]line ФМ: 0000000000871820 [11:21:55]line ФД: 260633 [11:21:55]line ФПД: 150507146485040 [11:21:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T112158&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260633&fm=150507146485040&tin=02508201610067®Number=0000000000091865&sum=0 [11:21:55]Connected sock=11 [11:21: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 30 0F 01 00 00 15 A5 07 01 71 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 BF 00 00 00 F4 03 04 00 56 D9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 19 FA 03 00 35 04 06 00 88 E2 AD 00 9D 30 0E E4 2A E9 B1 72 9B B0 [11:21:55]written 0, free lines is 4095 [11:21: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 30 4F 00 00 00 61 F5 47 00 FB 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 30 10 04 04 00 19 FA 03 00 F4 03 04 00 AB 82 C1 66 B6 04 01 00 00 78 43 6B 61 B6 43 D8 50 [11:21:56]CommunicateWithHost err = 0 [11:21:56]CheckOFDResponse [11:21:56]1017 (14) - 77093643461234 [11:21:56]1041 (16) - 0000000000871820 [11:21:56]1040 (4) - 260633 [11:21:56]1012 (4) - 18.08.2024 05:12 [11:21:56]1206 (1) - 0 [11:21:56]OFD Sender: Remove packet 260633 [11:21:56]ProducePacketName [11:21:56]name=ofd_packets/00260633 [11:21:56]NVStorageDeleteData [11:21:56]Write to MH i2c: 01 00 00 B2 72 24 [11:21:56]Write i2c OK [11:21:56]MH_I2C_Read... [11:21:56]Read from MH i2c: 01 [11:21:56]MH_I2C_Read... [11:21:56]Read from MH i2c: 01 07 00 [11:21:56]MH_I2C_Read... [11:21:56]Read from MH i2c: 01 07 00 B2 72 00 00 00 00 00 84 0C BB [11:21:56]RasterBufferAndPrint [11:21:56]line [11:21:56]line [11:21:56]line [11:21:56]line [11:21:56]line [11:21:56]written 0, free lines is 3209 [11:21:56]MH_Cut [11:21:56]Write to MH i2c: D1 01 00 B9 72 01 FD [11:21:56]Write i2c OK [11:21:56]MH_I2C_Read... [11:21:56]Read from MH i2c: D1 [11:21:56]MH_I2C_Read... [11:21:56]Read from MH i2c: D1 01 00 [11:21:56]MH_I2C_Read... [11:21:56]Read from MH i2c: D1 01 00 B9 72 00 FC [11:21:56]Write to MH i2c: 01 00 00 BA 72 2C [11:21:56]Write i2c OK [11:21:56]MH_I2C_Read... [11:21:56]OFD Sender: No OFD packet to send [11:21:57]*** Cut start [11:21:57]*** Purtial cut [11:21:57]*** Stage 1: CUTSNS_PIN = 1 [11:21:59]Read from MH i2c: 01 [11:21:59]MH_I2C_Read... [11:21:59]*** Stop cut motor [11:21:59]*** Cut end [11:21:59]Read from MH i2c: 01 07 00 [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: 01 07 00 BA 72 00 00 00 00 00 FF 0F 41 [11:21:59]process_action close_receipt done [11:21:59]requested_data is exist [11:21:59]produce_requested_data [11:21:59]requested_item fm.sn is exist - process it [11:21:59]wFMCommunicate request_size=4 [11:21:59]MH_SAM_APDU [11:21:59]CAPDU: 80 11 00 00 [11:21:59]Write to MH i2c: E2 08 00 BB 72 80 11 00 00 00 00 00 00 A7 [11:21:59]Write i2c OK [11:21:59]MH_I2C_Read... [11:21:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:59]Read from MH i2c: E2 [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: E2 17 00 [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: E2 17 00 BB 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F4 [11:21:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:21:59]wFMCommunicate OK [11:21:59]requested_item fd.num is exist - process it [11:21:59]SAM_PROTO_GetFieldsCounters [11:21:59]wFMCommunicate request_size=4 [11:21:59]MH_SAM_APDU [11:21:59]CAPDU: 80 13 00 00 [11:21:59]Write to MH i2c: E2 08 00 BC 72 80 13 00 00 00 00 00 00 AA [11:21:59]Write i2c OK [11:21:59]MH_I2C_Read... [11:21:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:21:59]Read from MH i2c: E2 [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: E2 62 00 [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: E2 62 00 BC 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 19 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [11:21: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 19 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:21:59]wFMCommunicate OK [11:21:59]SAM_PROTO_GetFieldsCounters done [11:21:59]requested_item shift.num is exist - process it [11:21:59]requested_item shift.opened is exist - process it [11:21:59]req_shift_opened [11:21:59]FM_GetShiftState [11:21:59]SAM_PROTO_GetShiftState [11:21:59]wFMCommunicate request_size=4 [11:21:59]MH_SAM_APDU [11:21:59]CAPDU: 80 13 01 00 [11:21:59]Write to MH i2c: E2 08 00 BD 72 80 13 01 00 00 00 00 00 AC [11:21:59]Write i2c OK [11:21:59]MH_I2C_Read... [11:21:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:59]Read from MH i2c: E2 [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: E2 0E 00 [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: E2 0E 00 BD 72 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E9 [11:21:59]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:21:59]wFMCommunicate OK [11:21:59]SAM_PROTO_GetShiftState done [11:21:59]FM_GetShiftState done [11:21:59]req_shift_opened done [11:21:59]requested_item shift.open_date is exist - process it [11:21:59]req_shift_open_date [11:21:59]req_shift_open_date done [11:21:59]produce_requested_data done [11:21:59]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260633,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:21:59]process_action_free close_receipt [11:21:59]json_value_free [11:21:59]json_value_free done [11:21:59]process_json_proto returns [11:21:59]Send response to host [11:21:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260633,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:21:59]free response buf [11:21:59]execute_script done [11:21:59]execute_script returns [11:21:59]free content buf [11:21:59]Sock 9.Close socket [11:21:59]Sock 9.Thread stoped [11:22:01]OFD Sender: No OFD packet to send [11:22:06]OFD Sender: No OFD packet to send [11:22:11]OFD Sender: No OFD packet to send [11:22:16]OFD Sender: No OFD packet to send [11:22:21]OFD Sender: No OFD packet to send [11:22:26]OFD Sender: No OFD packet to send [11:22:31]OFD Sender: No OFD packet to send [11:22:36]OFD Sender: No OFD packet to send [11:22:41]OFD Sender: No OFD packet to send [11:22:46]OFD Sender: No OFD packet to send [11:22:51]OFD Sender: No OFD packet to send [11:22:56]OFD Sender: No OFD packet to send [11:23:01]OFD Sender: No OFD packet to send [11:23:06]OFD Sender: No OFD packet to send [11:23:11]OFD Sender: No OFD packet to send [11:23:16]OFD Sender: No OFD packet to send [11:23:21]OFD Sender: No OFD packet to send [11:23:26]accept exits with 7 [11:23:26]New connection [11:23:26]New thread 3066473828 created [11:23:26]Thread 3066617188 joined [11:23:26]Waiting for new connection... [11:23:26] Sock 7.Parse request [11:23:26]Sock 7.Check first char [11:23:26]Sock 7.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.55.133:8080 [11:23:26]Content-Length: 755 [11:23:26]Content-Type: application/json [11:23:26] [11:23:26]POST finish read [11:23:26]Found Content-Length = 755 [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)1036180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 58.990, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30159976", "payments": [ { "type": 1, "sum" : 0.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)1036180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 58.990, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30159976", "payments": [ { "type": 1, "sum" : 0.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 BE 72 1F [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 BE 72 00 B2 D9 C1 66 34 48 D8 65 93 [11:23:26]GetLastDocTimeStamp 1723980118 [11:23:26]current date 1723980210 [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 BF 72 80 13 01 00 00 00 00 00 AE [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 BF 72 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 EB [11:23:26]RAPDU: 09 00 01 CC 3E C1 66 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 1723940556 [11:23:26]opened+sec_in_day 1724026956 [11:23:26]quantity*price = 0 [11:23:26]sum+1 = 1 [11:23:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 192 18.08.2024 11:23 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: ТК ГПНА Online 30159976 ФМ: 0000000000871820 ФД: 260634 ФПД: 26528891506366 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T112330&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260634&fm=26528891506366&tin=02508201610067®Number=0000000000091865&sum=0 [11:23:27]StoreToDocumentArchive [11:23:27]shift 449 fd 260634 [11:23:27]save to /storage/0449/doc_00260634 [11:23:27]save last doc name /storage/0449/doc_00260634 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 00387650 [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 CC 72 80 09 00 00 00 00 00 00 B0 [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 CC 72 00 90 00 B2 [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 CD 72 80 0D 01 02 00 00 00 00 B8 [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 CD 72 00 90 00 B3 [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 35 FF 03 08 00 03 6E E6 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 C0 00 00 00 F4 03 04 00 B2 D9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1A FA 03 00 35 04 06 00 18 [11:23:27]Write to MH i2c: E2 02 01 CE 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6E E6 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 C0 00 00 00 F4 03 04 00 B2 D9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1A FA 03 00 35 04 06 00 18 00 00 77 [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 CE 72 00 90 00 B4 [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 20 BD 27 8E BE [11:23:28]Write to MH i2c: E2 0D 00 CF 72 80 0D 02 02 05 00 20 BD 27 8E BE 00 00 15 [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 CF 72 00 90 00 B5 [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 D0 72 80 0D 03 02 00 00 00 00 BD [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 D0 72 00 37 36 87 D1 38 FE F4 5D 90 00 0A [11:23:28]RAPDU: 37 36 87 D1 38 FE F4 5D 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 D1 72 80 11 00 00 00 00 00 00 BD [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 D1 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 0A [11:23:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:23:28]wFMCommunicate OK [11:23:28]CreateOFDProtocolMessage done [11:23:28]OFDSenderStorePacket 260634 [11:23:28]StoreOFDPacket docnum=260634 [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 30 0F 01 00 00 52 24 07 01 38 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 35 FF 03 08 00 03 6E E6 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 C0 00 00 00 F4 03 04 00 B2 D9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1A FA 03 00 35 04 06 00 18 20 BD 27 8E BE 37 36 87 D1 38 FE F4 5D [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/00260634 [11:23:28]NVStorageSaveData ofd_packets/00260634 [11:23:28]File name is /storage/ofd_packets/00260634 [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 D2 72 44 [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 D2 72 00 00 00 00 00 FF 0F 59 [11:23:28]RasterBufferAndPrint [11:23:28]line Счет N : (1)1036180 [11:23:28]line ИНН: 02508201610067 [11:23:28]line Контрольно-Кассовый Чек [11:23:28]line ПРОДАЖА [11:23:28]line ТРК (МРК, ГНК) : 32 [11:23:28]line Товар: 2710124130 [11:23:28]line Аи-92-К-5 [11:23:28]line 58.990 * 0.00 [11:23:28]line = 0.00 [11:23:28]line НДС 12% НСП 1% [11:23:28]line > о реализуемом товаре [11:23:28]line ИТОГО: 0.00 [11:23:28]line НСП 1% : 0.00 [11:23:28]line НДС 12% : 0.00 [11:23:28]line Наличными: 0.00 [11:23:28]line Безнал.: 0.00 [11:23:28]line Место: АЗС № 94 "Партнер Нефть" [11:23:28]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:23:28]line СНО: Общий режим [11:23:28]line Чек 192 18.08.2024 11:23 [11:23:28]line Смена: 449 ФФД: 1.0 [11:23:28]line ЗНМ: 0300000099 [11:23:28]line РНМ: 0000000000091865 [11:23:28]line Версия ККМ: 001 [11:23:28]line Талоны: ТК ГПНА Online [11:23:28]line 30159976 [11:23:28]line ФМ: 0000000000871820 [11:23:28]line ФД: 260634 [11:23:28]line ФПД: 26528891506366 [11:23:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T112330&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260634&fm=26528891506366&tin=02508201610067®Number=0000000000091865&sum=0 [11:23:28]OFD Sender: Processing packet 260634 [packets to send 192, broken 191] [11:23:28]ProducePacketName [11:23:28]name=ofd_packets/00260634 [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]written 0, free lines is 4095 [11:23:28]Connected sock=10 [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 30 0F 01 00 00 52 24 07 01 38 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 35 FF 03 08 00 03 6E E6 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 C0 00 00 00 F4 03 04 00 B2 D9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1A FA 03 00 35 04 06 00 18 20 BD 27 8E BE 37 36 87 D1 38 FE F4 5D [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 30 4F 00 00 00 5C 25 47 00 C3 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1A FA 03 00 F4 03 04 00 08 83 C1 66 B6 04 01 00 00 52 D5 BD A5 5E C3 81 BE [11:23:28]CommunicateWithHost err = 0 [11:23:28]CheckOFDResponse [11:23:28]1017 (14) - 77093643461234 [11:23:28]1041 (16) - 0000000000871820 [11:23:28]1040 (4) - 260634 [11:23:28]1012 (4) - 18.08.2024 05:13 [11:23:28]1206 (1) - 0 [11:23:28]OFD Sender: Remove packet 260634 [11:23:28]ProducePacketName [11:23:28]name=ofd_packets/00260634 [11:23:28]NVStorageDeleteData [11:23:28]Write to MH i2c: 01 00 00 FC 72 6E [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 FC 72 00 00 00 00 00 8C 0C 0D [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 3215 [11:23:28]MH_Cut [11:23:28]Write to MH i2c: D1 01 00 03 73 01 48 [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 03 73 00 47 [11:23:28]Write to MH i2c: 01 00 00 04 73 77 [11:23:28]Write i2c OK [11:23:28]MH_I2C_Read... [11:23:29]OFD Sender: No OFD packet to send [11:23:30]*** Cut start [11:23:30]*** Purtial cut [11:23:30]*** Stage 1: CUTSNS_PIN = 1 [11:23:32]Read from MH i2c: 01 [11:23:32]MH_I2C_Read... [11:23:32]*** Stop cut motor [11:23:32]*** Cut end [11:23:32]Read from MH i2c: 01 07 00 [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: 01 07 00 04 73 00 00 00 00 00 FF 0F 8C [11:23:32]process_action close_receipt done [11:23:32]requested_data is exist [11:23:32]produce_requested_data [11:23:32]requested_item fm.sn is exist - process it [11:23:32]wFMCommunicate request_size=4 [11:23:32]MH_SAM_APDU [11:23:32]CAPDU: 80 11 00 00 [11:23:32]Write to MH i2c: E2 08 00 05 73 80 11 00 00 00 00 00 00 F2 [11:23:32]Write i2c OK [11:23:32]MH_I2C_Read... [11:23:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:32]Read from MH i2c: E2 [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: E2 17 00 [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: E2 17 00 05 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 3F [11:23:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:23:32]wFMCommunicate OK [11:23:32]requested_item fd.num is exist - process it [11:23:32]SAM_PROTO_GetFieldsCounters [11:23:32]wFMCommunicate request_size=4 [11:23:32]MH_SAM_APDU [11:23:32]CAPDU: 80 13 00 00 [11:23:32]Write to MH i2c: E2 08 00 06 73 80 13 00 00 00 00 00 00 F5 [11:23:32]Write i2c OK [11:23:32]MH_I2C_Read... [11:23:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:32]Read from MH i2c: E2 [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: E2 62 00 [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: E2 62 00 06 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 1A FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [11:23: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 1A FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:32]wFMCommunicate OK [11:23:32]SAM_PROTO_GetFieldsCounters done [11:23:32]requested_item shift.num is exist - process it [11:23:32]requested_item shift.opened is exist - process it [11:23:32]req_shift_opened [11:23:32]FM_GetShiftState [11:23:32]SAM_PROTO_GetShiftState [11:23:32]wFMCommunicate request_size=4 [11:23:32]MH_SAM_APDU [11:23:32]CAPDU: 80 13 01 00 [11:23:32]Write to MH i2c: E2 08 00 07 73 80 13 01 00 00 00 00 00 F7 [11:23:32]Write i2c OK [11:23:32]MH_I2C_Read... [11:23:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:32]Read from MH i2c: E2 [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: E2 0E 00 [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: E2 0E 00 07 73 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 34 [11:23:32]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:23:32]wFMCommunicate OK [11:23:32]SAM_PROTO_GetShiftState done [11:23:32]FM_GetShiftState done [11:23:32]req_shift_opened done [11:23:32]requested_item shift.open_date is exist - process it [11:23:32]req_shift_open_date [11:23:32]req_shift_open_date done [11:23:32]produce_requested_data done [11:23:32]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260634,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:23:32]process_action_free close_receipt [11:23:32]json_value_free [11:23:32]json_value_free done [11:23:32]process_json_proto returns [11:23:32]Send response to host [11:23:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260634,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:23:32]free response buf [11:23:32]execute_script done [11:23:32]execute_script returns [11:23:32]free content buf [11:23:32]Sock 7.Close socket [11:23:32]Sock 7.Thread stoped [11:23:32]accept exits with 9 [11:23:32]New connection [11:23:32]New thread 3066617188 created [11:23:32]Thread 3066473828 joined [11:23:32]Waiting for new connection... [11:23:32] Sock 9.Parse request [11:23:32]Sock 9.Check first char [11:23:32]Sock 9.First char is OK [11:23:32]request: POST /json_proto HTTP/1.0 [11:23:32]Method: POST [11:23:32]URL: /json_proto [11:23:32]Method is POST - this is cgi request [11:23:32]url: /json_proto [11:23:32]query_string will be loaded in cgi processing [11:23:32]execute_cgi json_proto POST (null) [11:23:32]execute_cgi path=json_proto method=POST [11:23:32]POST find Content-Length [11:23:32]Host: 172.17.55.133:8080 [11:23:32]Content-Length: 683 [11:23:32]Content-Type: application/json [11:23:32] [11:23:32]POST finish read [11:23:32]Found Content-Length = 683 [11:23:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036182", "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" : 74.20, "quantity" : 14.830, "sum" : 1100.39, "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" ] } } [11:23:32]execute_script... [11:23: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)1036182", "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" : 74.20, "quantity" : 14.830, "sum" : 1100.39, "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" ] } } [11:23:32]POST & json_proto [11:23:32]process_json_proto [11:23:32]json parsed OK: [11:23:32]protocol is kg_v1.0 [11:23:32]action value=close_receipt [11:23:32]process_action close_receipt [11:23:32]cmd_close_receipt [11:23:32]MH_GetDate [11:23:32]Write to MH i2c: F0 00 00 08 73 6A [11:23:32]Write i2c OK [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: F0 [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: F0 09 00 [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: F0 09 00 08 73 00 B9 D9 C1 66 34 48 D8 65 E5 [11:23:32]GetLastDocTimeStamp 1723980210 [11:23:32]current date 1723980217 [11:23:32]FM_GetShiftState [11:23:32]SAM_PROTO_GetShiftState [11:23:32]wFMCommunicate request_size=4 [11:23:32]MH_SAM_APDU [11:23:32]CAPDU: 80 13 01 00 [11:23:32]Write to MH i2c: E2 08 00 09 73 80 13 01 00 00 00 00 00 F9 [11:23:32]Write i2c OK [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: E2 [11:23:32]MH_I2C_Read... [11:23:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:32]Read from MH i2c: E2 0E 00 [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: E2 0E 00 09 73 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 36 [11:23:32]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:23:32]wFMCommunicate OK [11:23:32]SAM_PROTO_GetShiftState done [11:23:32]FM_GetShiftState done [11:23:32]opened in 1723940556 [11:23:32]opened+sec_in_day 1724026956 [11:23:32]quantity*price = 110038 [11:23:32]sum+1 = 110040 [11:23:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.86 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 193 18.08.2024 11:23 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260635 ФПД: 50458120088306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T112337&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260635&fm=50458120088306&tin=02508201610067®Number=0000000000091865&sum=110000 [11:23:33]StoreToDocumentArchive [11:23:33]shift 449 fd 260635 [11:23:33]save to /storage/0449/doc_00260635 [11:23:33]save last doc name /storage/0449/doc_00260635 to /storage/kkm_last_doc_name [11:23:33]save OK [11:23:33]Clear old archive folders... [11:23:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:23:33]tlvbuf is 003F51B0 [11:23:33]SAM_PROTO_ClearQueue [11:23:33]wFMCommunicate request_size=4 [11:23:33]MH_SAM_APDU [11:23:33]CAPDU: 80 09 00 00 [11:23:33]Write to MH i2c: E2 08 00 16 73 80 09 00 00 00 00 00 00 FB [11:23:33]Write i2c OK [11:23:33]MH_I2C_Read... [11:23:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:33]Read from MH i2c: E2 [11:23:33]MH_I2C_Read... [11:23:33]Read from MH i2c: E2 03 00 [11:23:33]MH_I2C_Read... [11:23:33]Read from MH i2c: E2 03 00 16 73 00 90 00 FD [11:23:33]RAPDU: 90 00 [11:23:33]wFMCommunicate OK [11:23:33]SAM_PROTO_ClearQueue done [11:23:33]KKMCreateOFDPacket [11:23:33]OFDProtocolAddRootSTLVToBuf [11:23:33]FM_MakeSignedData [11:23:33]FM_MakeSignedData [11:23:33]SAM_PROTO_SignData [11:23:33]wFMCommunicate request_size=4 [11:23:33]MH_SAM_APDU [11:23:33]CAPDU: 80 0D 01 02 [11:23:33]Write to MH i2c: E2 08 00 17 73 80 0D 01 02 00 00 00 00 03 [11:23:33]Write i2c OK [11:23:33]MH_I2C_Read... [11:23:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:33]Read from MH i2c: E2 [11:23:33]MH_I2C_Read... [11:23:33]Read from MH i2c: E2 03 00 [11:23:33]MH_I2C_Read... [11:23:33]Read from MH i2c: E2 03 00 17 73 00 90 00 FE [11:23:33]RAPDU: 90 00 [11:23:33]wFMCommunicate OK [11:23:33]wFMCommunicate request_size=255 [11:23:33]MH_SAM_APDU [11:23: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EE 39 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D7 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 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 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 C1 00 00 00 F4 03 04 00 B9 D9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1B FA 03 00 35 04 06 00 2D [11:23:33]Write to MH i2c: E2 02 01 18 73 80 0D 02 02 FA 00 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 EE 39 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D7 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 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 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 C1 00 00 00 F4 03 04 00 B9 D9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1B FA 03 00 35 04 06 00 2D 00 00 B4 [11:23:33]Write i2c OK [11:23:33]MH_I2C_Read... [11:23:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:34]OFD Sender: No OFD packet to send [11:23:34]Read from MH i2c: E2 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: E2 03 00 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: E2 03 00 18 73 00 90 00 FF [11:23:34]RAPDU: 90 00 [11:23:34]wFMCommunicate OK [11:23:34]wFMCommunicate request_size=10 [11:23:34]MH_SAM_APDU [11:23:34]CAPDU: 80 0D 02 02 05 E4 32 52 EA F2 [11:23:34]Write to MH i2c: E2 0D 00 19 73 80 0D 02 02 05 00 E4 32 52 EA F2 00 00 54 [11:23:34]Write i2c OK [11:23:34]MH_I2C_Read... [11:23:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:34]Read from MH i2c: E2 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: E2 03 00 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: E2 03 00 19 73 00 90 00 00 [11:23:34]RAPDU: 90 00 [11:23:34]wFMCommunicate OK [11:23:34]wFMCommunicate request_size=4 [11:23:34]MH_SAM_APDU [11:23:34]CAPDU: 80 0D 03 02 [11:23:34]Write to MH i2c: E2 08 00 1A 73 80 0D 03 02 00 00 00 00 08 [11:23:34]Write i2c OK [11:23:34]MH_I2C_Read... [11:23:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:34]Read from MH i2c: E2 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: E2 0B 00 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: E2 0B 00 1A 73 00 28 AB EC 53 0F 54 BB E3 90 00 1C [11:23:34]RAPDU: 28 AB EC 53 0F 54 BB E3 90 00 [11:23:34]wFMCommunicate OK [11:23:34]SAM_PROTO_SignData done [11:23:34]FM_MakeSignedData done [11:23:34]CreateOFDProtocolMessage [11:23:34]wFMCommunicate request_size=4 [11:23:34]MH_SAM_APDU [11:23:34]CAPDU: 80 11 00 00 [11:23:34]Write to MH i2c: E2 08 00 1B 73 80 11 00 00 00 00 00 00 08 [11:23:34]Write i2c OK [11:23:34]MH_I2C_Read... [11:23:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:34]Read from MH i2c: E2 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: E2 17 00 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: E2 17 00 1B 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 55 [11:23:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:23:34]wFMCommunicate OK [11:23:34]CreateOFDProtocolMessage done [11:23:34]OFDSenderStorePacket 260635 [11:23:34]StoreOFDPacket docnum=260635 [11: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 30 0F 01 00 00 DD 3B 07 01 A6 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EE 39 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D7 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 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 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 C1 00 00 00 F4 03 04 00 B9 D9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1B FA 03 00 35 04 06 00 2D E4 32 52 EA F2 28 AB EC 53 0F 54 BB E3 [11:23:34]CheckFolder [11:23:34]dirname=/storage/ofd_packets [11:23:34]CheckFolder done [11:23:34]ProducePacketName [11:23:34]name=ofd_packets/00260635 [11:23:34]NVStorageSaveData ofd_packets/00260635 [11:23:34]File name is /storage/ofd_packets/00260635 [11:23:34]Write 301 bytes [11:23:34]NVStorageSaveData done [11:23:34]OFDSenderStorePacket done [11:23:34]KKMCreateOFDPacket done [11:23:34]NVStorageSaveData kkm_last_timestamp [11:23:34]File name is /storage/kkm_last_timestamp [11:23:34]Write 4 bytes [11:23:34]NVStorageSaveData done [11:23:34]ExternCall_PrintAddStr [11:23:34]wPrintStart [11:23:34]Write to MH i2c: 01 00 00 1C 73 8F [11:23:34]Write i2c OK [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 07 00 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 07 00 1C 73 00 00 00 00 00 FF 0F A4 [11:23:34]RasterBufferAndPrint [11:23:34]line Счет N : (1)1036182 [11:23:34]line ИНН: 02508201610067 [11:23:34]line Контрольно-Кассовый Чек [11:23:34]line ПРОДАЖА [11:23:34]line ТРК (МРК, ГНК) : 23 [11:23:34]line Товар: 2710124500 [11:23:34]line Аи-95-К-5 [11:23:34]line 14.830 * 74.20 [11:23:34]line = 1100.39 [11:23:34]line НДС 12% НСП 1% [11:23:34]line > о реализуемом товаре [11:23:34]line ОКРУГЛЕНИЕ: -0.39 [11:23:34]line ИТОГО: 1100.00 [11:23:34]line Внесено: 1100.00 [11:23:34]line СДАЧА: 0.00 [11:23:34]line НСП 1% : 9.74 [11:23:34]line НДС 12% : 116.86 [11:23:34]line Наличными: 1100.00 [11:23:34]line Безнал.: 0.00 [11:23:34]line Место: АЗС № 94 "Партнер Нефть" [11:23:34]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:23:34]line СНО: Общий режим [11:23:34]line Чек 193 18.08.2024 11:23 [11:23:34]line Смена: 449 ФФД: 1.0 [11:23:34]line ЗНМ: 0300000099 [11:23:34]line РНМ: 0000000000091865 [11:23:34]line Версия ККМ: 001 [11:23:34]line ФМ: 0000000000871820 [11:23:34]line ФД: 260635 [11:23:34]line ФПД: 50458120088306 [11:23:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T112337&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260635&fm=50458120088306&tin=02508201610067®Number=0000000000091865&sum=110000 [11:23:34]written 0, free lines is 4095 [11:23:34]OFD Sender: Processing packet 260635 [packets to send 192, broken 191] [11:23:34]ProducePacketName [11:23:34]name=ofd_packets/00260635 [11:23:34]OFD Sender: To server: pG, [11:23:34]CommunicateWithHost lk.salyk.kg:30040 [11:23:34]ConnectInit lk.salyk.kg [11:23:35]Connected sock=10 [11: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 30 0F 01 00 00 DD 3B 07 01 A6 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EE 39 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D7 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 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 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 C1 00 00 00 F4 03 04 00 B9 D9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1B FA 03 00 35 04 06 00 2D E4 32 52 EA F2 28 AB EC 53 0F 54 BB E3 [11: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 30 4F 00 00 00 75 0A 47 00 93 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 30 10 04 04 00 1B FA 03 00 F4 03 04 00 0E 83 C1 66 B6 04 01 00 00 1C 7C 82 7F A3 D0 0F 74 [11:23:35]CommunicateWithHost err = 0 [11:23:35]CheckOFDResponse [11:23:35]1017 (14) - 77093643461234 [11:23:35]1041 (16) - 0000000000871820 [11:23:35]1040 (4) - 260635 [11:23:35]1012 (4) - 18.08.2024 05:13 [11:23:35]1206 (1) - 0 [11:23:35]OFD Sender: Remove packet 260635 [11:23:35]ProducePacketName [11:23:35]name=ofd_packets/00260635 [11:23:35]NVStorageDeleteData [11:23:35]Write to MH i2c: 01 00 00 47 73 BA [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 07 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 07 00 47 73 00 00 00 00 00 76 0C 43 [11:23:35]RasterBufferAndPrint [11:23:35]line [11:23:35]line [11:23:35]line [11:23:35]line [11:23:35]line [11:23:35]written 0, free lines is 3194 [11:23:35]MH_Cut [11:23:35]Write to MH i2c: D1 01 00 4E 73 01 93 [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: D1 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: D1 01 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: D1 01 00 4E 73 00 92 [11:23:35]Write to MH i2c: 01 00 00 4F 73 C2 [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]OFD Sender: No OFD packet to send [11:23:36]*** Cut start [11:23:36]*** Purtial cut [11:23:36]*** Stage 1: CUTSNS_PIN = 1 [11:23:38]Read from MH i2c: 01 [11:23:38]MH_I2C_Read... [11:23:38]*** Stop cut motor [11:23:38]*** Cut end [11:23:38]Read from MH i2c: 01 07 00 [11:23:38]MH_I2C_Read... [11:23:38]Read from MH i2c: 01 07 00 4F 73 00 00 00 00 00 FF 0F D7 [11:23:38]process_action close_receipt done [11:23:38]requested_data is exist [11:23:38]produce_requested_data [11:23:38]requested_item fm.sn is exist - process it [11:23:38]wFMCommunicate request_size=4 [11:23:38]MH_SAM_APDU [11:23:38]CAPDU: 80 11 00 00 [11:23:38]Write to MH i2c: E2 08 00 50 73 80 11 00 00 00 00 00 00 3D [11:23:38]Write i2c OK [11:23:38]MH_I2C_Read... [11:23:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:38]Read from MH i2c: E2 [11:23:38]MH_I2C_Read... [11:23:38]Read from MH i2c: E2 17 00 [11:23:38]MH_I2C_Read... [11:23:38]Read from MH i2c: E2 17 00 50 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 8A [11:23:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:23:38]wFMCommunicate OK [11:23:38]requested_item fd.num is exist - process it [11:23:38]SAM_PROTO_GetFieldsCounters [11:23:38]wFMCommunicate request_size=4 [11:23:38]MH_SAM_APDU [11:23:38]CAPDU: 80 13 00 00 [11:23:38]Write to MH i2c: E2 08 00 51 73 80 13 00 00 00 00 00 00 40 [11:23:38]Write i2c OK [11:23:38]MH_I2C_Read... [11:23:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:38]Read from MH i2c: E2 [11:23:38]MH_I2C_Read... [11:23:38]Read from MH i2c: E2 62 00 [11:23:38]MH_I2C_Read... [11:23:38]Read from MH i2c: E2 62 00 51 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 1B FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [11:23: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 1B FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:38]wFMCommunicate OK [11:23:38]SAM_PROTO_GetFieldsCounters done [11:23:38]requested_item shift.num is exist - process it [11:23:38]requested_item shift.opened is exist - process it [11:23:38]req_shift_opened [11:23:38]FM_GetShiftState [11:23:38]SAM_PROTO_GetShiftState [11:23:38]wFMCommunicate request_size=4 [11:23:38]MH_SAM_APDU [11:23:38]CAPDU: 80 13 01 00 [11:23:38]Write to MH i2c: E2 08 00 52 73 80 13 01 00 00 00 00 00 42 [11:23:38]Write i2c OK [11:23:38]MH_I2C_Read... [11:23:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:38]Read from MH i2c: E2 [11:23:38]MH_I2C_Read... [11:23:38]Read from MH i2c: E2 0E 00 [11:23:38]MH_I2C_Read... [11:23:38]Read from MH i2c: E2 0E 00 52 73 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 7F [11:23:38]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:23:38]wFMCommunicate OK [11:23:38]SAM_PROTO_GetShiftState done [11:23:38]FM_GetShiftState done [11:23:38]req_shift_opened done [11:23:38]requested_item shift.open_date is exist - process it [11:23:38]req_shift_open_date [11:23:38]req_shift_open_date done [11:23:38]produce_requested_data done [11:23:38]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260635,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:23:38]process_action_free close_receipt [11:23:38]json_value_free [11:23:38]json_value_free done [11:23:38]process_json_proto returns [11:23:38]Send response to host [11:23:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260635,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:23:38]free response buf [11:23:38]execute_script done [11:23:38]execute_script returns [11:23:38]free content buf [11:23:38]Sock 9.Close socket [11:23:38]Sock 9.Thread stoped [11:23:40]OFD Sender: No OFD packet to send [11:23:45]OFD Sender: No OFD packet to send [11:23:50]OFD Sender: No OFD packet to send [11:23:55]OFD Sender: No OFD packet to send [11:24:00]OFD Sender: No OFD packet to send [11:24:05]OFD Sender: No OFD packet to send [11:24:10]OFD Sender: No OFD packet to send [11:24:15]OFD Sender: No OFD packet to send [11:24:20]OFD Sender: No OFD packet to send [11:24:25]OFD Sender: No OFD packet to send [11:24:30]OFD Sender: No OFD packet to send [11:24:35]OFD Sender: No OFD packet to send [11:24:40]OFD Sender: No OFD packet to send [11:24:45]OFD Sender: No OFD packet to send [11:24:50]OFD Sender: No OFD packet to send [11:24:55]OFD Sender: No OFD packet to send [11:25:00]OFD Sender: No OFD packet to send [11:25:05]OFD Sender: No OFD packet to send [11:25:10]OFD Sender: No OFD packet to send [11:25:15]OFD Sender: No OFD packet to send [11:25:20]OFD Sender: No OFD packet to send [11:25:25]OFD Sender: No OFD packet to send [11:25:30]OFD Sender: No OFD packet to send [11:25:35]OFD Sender: No OFD packet to send [11:25:40]OFD Sender: No OFD packet to send [11:25:45]OFD Sender: No OFD packet to send [11:25:50]OFD Sender: No OFD packet to send [11:25:54]accept exits with 7 [11:25:54]New connection [11:25:54]New thread 3066473828 created [11:25:54]Thread 3066617188 joined [11:25:54]Waiting for new connection... [11:25:54] Sock 7.Parse request [11:25:54]Sock 7.Check first char [11:25:54]Sock 7.First char is OK [11:25:54]request: POST /json_proto HTTP/1.0 [11:25:54]Method: POST [11:25:54]URL: /json_proto [11:25:54]Method is POST - this is cgi request [11:25:54]url: /json_proto [11:25:54]query_string will be loaded in cgi processing [11:25:54]execute_cgi json_proto POST (null) [11:25:54]execute_cgi path=json_proto method=POST [11:25:54]POST find Content-Length [11:25:54]Host: 172.17.55.133:8080 [11:25:54]Content-Length: 678 [11:25:54]Content-Type: application/json [11:25:54] [11:25:54]POST finish read [11:25:54]Found Content-Length = 678 [11:25:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:25:54]execute_script... [11:25:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:25:54]POST & json_proto [11:25:54]process_json_proto [11:25:54]json parsed OK: [11:25:54]protocol is kg_v1.0 [11:25:54]action value=close_receipt [11:25:54]process_action close_receipt [11:25:54]cmd_close_receipt [11:25:54]MH_GetDate [11:25:54]Write to MH i2c: F0 00 00 53 73 B5 [11:25:54]Write i2c OK [11:25:54]MH_I2C_Read... [11:25:54]Read from MH i2c: F0 [11:25:54]MH_I2C_Read... [11:25:54]Read from MH i2c: F0 09 00 [11:25:54]MH_I2C_Read... [11:25:54]Read from MH i2c: F0 09 00 53 73 00 47 DA C1 66 34 48 D8 65 BF [11:25:54]GetLastDocTimeStamp 1723980217 [11:25:54]current date 1723980359 [11:25:54]FM_GetShiftState [11:25:54]SAM_PROTO_GetShiftState [11:25:54]wFMCommunicate request_size=4 [11:25:54]MH_SAM_APDU [11:25:54]CAPDU: 80 13 01 00 [11:25:54]Write to MH i2c: E2 08 00 54 73 80 13 01 00 00 00 00 00 44 [11:25:54]Write i2c OK [11:25:54]MH_I2C_Read... [11:25:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:54]Read from MH i2c: E2 [11:25:54]MH_I2C_Read... [11:25:54]Read from MH i2c: E2 0E 00 [11:25:54]MH_I2C_Read... [11:25:54]Read from MH i2c: E2 0E 00 54 73 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 81 [11:25:54]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:25:54]wFMCommunicate OK [11:25:54]SAM_PROTO_GetShiftState done [11:25:54]FM_GetShiftState done [11:25:54]opened in 1723940556 [11:25:54]opened+sec_in_day 1724026956 [11:25:54]quantity*price = 50036 [11:25:54]sum+1 = 50037 [11:25:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 194 18.08.2024 11:25 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260636 ФПД: 112635093255313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T112559&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260636&fm=112635093255313&tin=02508201610067®Number=0000000000091865&sum=50000 [11:25:55]StoreToDocumentArchive [11:25:55]shift 449 fd 260636 [11:25:55]save to /storage/0449/doc_00260636 [11:25:55]save last doc name /storage/0449/doc_00260636 to /storage/kkm_last_doc_name [11:25:55]save OK [11:25:55]Clear old archive folders... [11:25:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:25:55]tlvbuf is 00387500 [11:25:55]SAM_PROTO_ClearQueue [11:25:55]wFMCommunicate request_size=4 [11:25:55]MH_SAM_APDU [11:25:55]CAPDU: 80 09 00 00 [11:25:55]Write to MH i2c: E2 08 00 61 73 80 09 00 00 00 00 00 00 46 [11:25:55]Write i2c OK [11:25:55]MH_I2C_Read... [11:25:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:55]Read from MH i2c: E2 [11:25:55]MH_I2C_Read... [11:25:55]Read from MH i2c: E2 03 00 [11:25:55]MH_I2C_Read... [11:25:55]Read from MH i2c: E2 03 00 61 73 00 90 00 48 [11:25:55]RAPDU: 90 00 [11:25:55]wFMCommunicate OK [11:25:55]SAM_PROTO_ClearQueue done [11:25:55]KKMCreateOFDPacket [11:25:55]OFDProtocolAddRootSTLVToBuf [11:25:55]FM_MakeSignedData [11:25:55]FM_MakeSignedData [11:25:55]SAM_PROTO_SignData [11:25:55]wFMCommunicate request_size=4 [11:25:55]MH_SAM_APDU [11:25:55]CAPDU: 80 0D 01 02 [11:25:55]Write to MH i2c: E2 08 00 62 73 80 0D 01 02 00 00 00 00 4E [11:25:55]Write i2c OK [11:25:55]MH_I2C_Read... [11:25:55]OFD Sender: No OFD packet to send [11:25:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:56]Read from MH i2c: E2 [11:25:56]MH_I2C_Read... [11:25:56]Read from MH i2c: E2 03 00 [11:25:56]MH_I2C_Read... [11:25:56]Read from MH i2c: E2 03 00 62 73 00 90 00 49 [11:25:56]RAPDU: 90 00 [11:25:56]wFMCommunicate OK [11:25:56]wFMCommunicate request_size=255 [11:25:56]MH_SAM_APDU [11:25:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 C2 00 00 00 F4 03 04 00 47 DA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1C FA 03 00 35 04 06 00 66 [11:25:56]Write to MH i2c: E2 02 01 63 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 C2 00 00 00 F4 03 04 00 47 DA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1C FA 03 00 35 04 06 00 66 00 00 16 [11:25:56]Write i2c OK [11:25:56]MH_I2C_Read... [11:25:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:56]Read from MH i2c: E2 [11:25:56]MH_I2C_Read... [11:25:56]Read from MH i2c: E2 03 00 [11:25:56]MH_I2C_Read... [11:25:56]Read from MH i2c: E2 03 00 63 73 00 90 00 4A [11:25:56]RAPDU: 90 00 [11:25:56]wFMCommunicate OK [11:25:56]wFMCommunicate request_size=10 [11:25:56]MH_SAM_APDU [11:25:56]CAPDU: 80 0D 02 02 05 70 E6 B9 04 91 [11:25:56]Write to MH i2c: E2 0D 00 64 73 80 0D 02 02 05 00 70 E6 B9 04 91 00 00 FF [11:25:56]Write i2c OK [11:25:56]MH_I2C_Read... [11:25:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:56]Read from MH i2c: E2 [11:25:56]MH_I2C_Read... [11:25:56]Read from MH i2c: E2 03 00 [11:25:56]MH_I2C_Read... [11:25:56]Read from MH i2c: E2 03 00 64 73 00 90 00 4B [11:25:56]RAPDU: 90 00 [11:25:56]wFMCommunicate OK [11:25:56]wFMCommunicate request_size=4 [11:25:56]MH_SAM_APDU [11:25:56]CAPDU: 80 0D 03 02 [11:25:56]Write to MH i2c: E2 08 00 65 73 80 0D 03 02 00 00 00 00 53 [11:25:56]Write i2c OK [11:25:56]MH_I2C_Read... [11:25:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:56]Read from MH i2c: E2 [11:25:56]MH_I2C_Read... [11:25:56]Read from MH i2c: E2 0B 00 [11:25:56]MH_I2C_Read... [11:25:56]Read from MH i2c: E2 0B 00 65 73 00 76 36 62 99 6F 2B 52 FC 90 00 E3 [11:25:56]RAPDU: 76 36 62 99 6F 2B 52 FC 90 00 [11:25:56]wFMCommunicate OK [11:25:56]SAM_PROTO_SignData done [11:25:56]FM_MakeSignedData done [11:25:56]CreateOFDProtocolMessage [11:25:56]wFMCommunicate request_size=4 [11:25:56]MH_SAM_APDU [11:25:56]CAPDU: 80 11 00 00 [11:25:56]Write to MH i2c: E2 08 00 66 73 80 11 00 00 00 00 00 00 53 [11:25:56]Write i2c OK [11:25:56]MH_I2C_Read... [11:25:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:56]Read from MH i2c: E2 [11:25:56]MH_I2C_Read... [11:25:56]Read from MH i2c: E2 17 00 [11:25:56]MH_I2C_Read... [11:25:56]Read from MH i2c: E2 17 00 66 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A0 [11:25:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:25:56]wFMCommunicate OK [11:25:56]CreateOFDProtocolMessage done [11:25:56]OFDSenderStorePacket 260636 [11:25:56]StoreOFDPacket docnum=260636 [11:25:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 97 A3 07 01 04 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 C2 00 00 00 F4 03 04 00 47 DA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1C FA 03 00 35 04 06 00 66 70 E6 B9 04 91 76 36 62 99 6F 2B 52 FC [11:25:56]CheckFolder [11:25:56]dirname=/storage/ofd_packets [11:25:56]CheckFolder done [11:25:56]ProducePacketName [11:25:56]name=ofd_packets/00260636 [11:25:56]NVStorageSaveData ofd_packets/00260636 [11:25:56]File name is /storage/ofd_packets/00260636 [11:25:56]Write 301 bytes [11:25:56]NVStorageSaveData done [11:25:56]OFDSenderStorePacket done [11:25:56]KKMCreateOFDPacket done [11:25:56]NVStorageSaveData kkm_last_timestamp [11:25:56]File name is /storage/kkm_last_timestamp [11:25:56]Write 4 bytes [11:25:56]NVStorageSaveData done [11:25:56]ExternCall_PrintAddStr [11:25:56]wPrintStart [11:25:56]Write to MH i2c: 01 00 00 67 73 DA [11:25:56]Write i2c OK [11:25:56]MH_I2C_Read... [11:25:56]Read from MH i2c: 01 [11:25:56]MH_I2C_Read... [11:25:56]Read from MH i2c: 01 07 00 [11:25:56]MH_I2C_Read... [11:25:56]Read from MH i2c: 01 07 00 67 73 00 00 00 00 00 FF 0F EF [11:25:56]RasterBufferAndPrint [11:25:56]line Счет N : (1)1036183 [11:25:56]line ИНН: 02508201610067 [11:25:56]line Контрольно-Кассовый Чек [11:25:56]line ПРОДАЖА [11:25:56]line ТРК (МРК, ГНК) : 22 [11:25:56]line Товар: 2710124130 [11:25:56]line Аи-92-К-5 [11:25:56]line 7.380 * 67.80 [11:25:56]line = 500.36 [11:25:56]line НДС 12% НСП 1% [11:25:56]line > о реализуемом товаре [11:25:56]line ОКРУГЛЕНИЕ: -0.36 [11:25:56]line ИТОГО: 500.00 [11:25:56]line Внесено: 500.00 [11:25:56]line СДАЧА: 0.00 [11:25:56]line НСП 1% : 4.43 [11:25:56]line НДС 12% : 53.14 [11:25:56]line Наличными: 500.00 [11:25:56]line Безнал.: 0.00 [11:25:56]line Место: АЗС № 94 "Партнер Нефть" [11:25:56]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:25:56]line СНО: Общий режим [11:25:56]line Чек 194 18.08.2024 11:25 [11:25:56]line Смена: 449 ФФД: 1.0 [11:25:56]line ЗНМ: 0300000099 [11:25:56]line РНМ: 0000000000091865 [11:25:56]line Версия ККМ: 001 [11:25:56]line ФМ: 0000000000871820 [11:25:56]line ФД: 260636 [11:25:56]line ФПД: 112635093255313 [11:25:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T112559&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260636&fm=112635093255313&tin=02508201610067®Number=0000000000091865&sum=50000 [11:25:56]written 0, free lines is 4095 [11:25:56]OFD Sender: Processing packet 260636 [packets to send 192, broken 191] [11:25:56]ProducePacketName [11:25:56]name=ofd_packets/00260636 [11:25:56]OFD Sender: To server: pG, [11:25:56]CommunicateWithHost lk.salyk.kg:30040 [11:25:56]ConnectInit lk.salyk.kg [11:25:56]Connected sock=10 [11:25: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 30 0F 01 00 00 97 A3 07 01 04 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 C2 00 00 00 F4 03 04 00 47 DA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1C FA 03 00 35 04 06 00 66 70 E6 B9 04 91 76 36 62 99 6F 2B 52 FC [11:25: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 30 4F 00 00 00 E0 A6 47 00 D2 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 30 10 04 04 00 1C FA 03 00 F4 03 04 00 9C 83 C1 66 B6 04 01 00 00 E0 F4 8E B5 66 EE E1 FE [11:25:56]CommunicateWithHost err = 0 [11:25:56]CheckOFDResponse [11:25:56]1017 (14) - 77093643461234 [11:25:56]1041 (16) - 0000000000871820 [11:25:56]1040 (4) - 260636 [11:25:56]1012 (4) - 18.08.2024 05:16 [11:25:56]1206 (1) - 0 [11:25:56]OFD Sender: Remove packet 260636 [11:25:56]ProducePacketName [11:25:56]name=ofd_packets/00260636 [11:25:56]NVStorageDeleteData [11:25:56]Write to MH i2c: 01 00 00 92 73 05 [11:25:56]Write i2c OK [11:25:56]MH_I2C_Read... [11:25:56]Read from MH i2c: 01 [11:25:56]MH_I2C_Read... [11:25:56]Read from MH i2c: 01 07 00 [11:25:56]MH_I2C_Read... [11:25:56]Read from MH i2c: 01 07 00 92 73 00 00 00 00 00 68 0C 80 [11:25:56]RasterBufferAndPrint [11:25:56]line [11:25:56]line [11:25:56]line [11:25:56]line [11:25:56]line [11:25:56]written 0, free lines is 3180 [11:25:56]MH_Cut [11:25:56]Write to MH i2c: D1 01 00 99 73 01 DE [11:25:56]Write i2c OK [11:25:56]MH_I2C_Read... [11:25:56]Read from MH i2c: D1 [11:25:56]MH_I2C_Read... [11:25:56]Read from MH i2c: D1 01 00 [11:25:56]MH_I2C_Read... [11:25:56]Read from MH i2c: D1 01 00 99 73 00 DD [11:25:56]Write to MH i2c: 01 00 00 9A 73 0D [11:25:56]Write i2c OK [11:25:56]MH_I2C_Read... [11:25:57]OFD Sender: No OFD packet to send [11:25:58]*** Cut start [11:25:58]*** Purtial cut [11:25:58]*** Stage 1: CUTSNS_PIN = 1 [11:26:00]Read from MH i2c: 01 [11:26:00]MH_I2C_Read... [11:26:00]*** Stop cut motor [11:26:00]Read from MH i2c: 01 07 00 [11:26:00]MH_I2C_Read... [11:26:00]*** Cut end [11:26:00]Read from MH i2c: 01 07 00 9A 73 00 00 00 00 00 FF 0F 22 [11:26:00]process_action close_receipt done [11:26:00]requested_data is exist [11:26:00]produce_requested_data [11:26:00]requested_item fm.sn is exist - process it [11:26:00]wFMCommunicate request_size=4 [11:26:00]MH_SAM_APDU [11:26:00]CAPDU: 80 11 00 00 [11:26:00]Write to MH i2c: E2 08 00 9B 73 80 11 00 00 00 00 00 00 88 [11:26:00]Write i2c OK [11:26:00]MH_I2C_Read... [11:26:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:00]Read from MH i2c: E2 [11:26:00]MH_I2C_Read... [11:26:00]Read from MH i2c: E2 17 00 [11:26:00]MH_I2C_Read... [11:26:00]Read from MH i2c: E2 17 00 9B 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D5 [11:26:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:26:00]wFMCommunicate OK [11:26:00]requested_item fd.num is exist - process it [11:26:00]SAM_PROTO_GetFieldsCounters [11:26:00]wFMCommunicate request_size=4 [11:26:00]MH_SAM_APDU [11:26:00]CAPDU: 80 13 00 00 [11:26:00]Write to MH i2c: E2 08 00 9C 73 80 13 00 00 00 00 00 00 8B [11:26:00]Write i2c OK [11:26:00]MH_I2C_Read... [11:26:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:00]Read from MH i2c: E2 [11:26:00]MH_I2C_Read... [11:26:00]Read from MH i2c: E2 62 00 [11:26:00]MH_I2C_Read... [11:26:00]Read from MH i2c: E2 62 00 9C 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 1C FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [11:26: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 1C FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:26:00]wFMCommunicate OK [11:26:00]SAM_PROTO_GetFieldsCounters done [11:26:00]requested_item shift.num is exist - process it [11:26:00]requested_item shift.opened is exist - process it [11:26:00]req_shift_opened [11:26:00]FM_GetShiftState [11:26:00]SAM_PROTO_GetShiftState [11:26:00]wFMCommunicate request_size=4 [11:26:00]MH_SAM_APDU [11:26:00]CAPDU: 80 13 01 00 [11:26:00]Write to MH i2c: E2 08 00 9D 73 80 13 01 00 00 00 00 00 8D [11:26:00]Write i2c OK [11:26:00]MH_I2C_Read... [11:26:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:00]Read from MH i2c: E2 [11:26:00]MH_I2C_Read... [11:26:00]Read from MH i2c: E2 0E 00 [11:26:00]MH_I2C_Read... [11:26:00]Read from MH i2c: E2 0E 00 9D 73 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 CA [11:26:00]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:26:00]wFMCommunicate OK [11:26:00]SAM_PROTO_GetShiftState done [11:26:00]FM_GetShiftState done [11:26:00]req_shift_opened done [11:26:00]requested_item shift.open_date is exist - process it [11:26:00]req_shift_open_date [11:26:00]req_shift_open_date done [11:26:00]produce_requested_data done [11:26:00]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260636,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:26:00]process_action_free close_receipt [11:26:00]json_value_free [11:26:00]json_value_free done [11:26:00]process_json_proto returns [11:26:00]Send response to host [11:26:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260636,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:26:00]free response buf [11:26:00]execute_script done [11:26:00]execute_script returns [11:26:00]free content buf [11:26:00]Sock 7.Close socket [11:26:00]Sock 7.Thread stoped [11:26:02]OFD Sender: No OFD packet to send [11:26:07]OFD Sender: No OFD packet to send [11:26:12]OFD Sender: No OFD packet to send [11:26:17]OFD Sender: No OFD packet to send [11:26:22]OFD Sender: No OFD packet to send [11:26:27]OFD Sender: No OFD packet to send [11:26:32]OFD Sender: No OFD packet to send [11:26:37]OFD Sender: No OFD packet to send [11:26:42]OFD Sender: No OFD packet to send [11:26:47]OFD Sender: No OFD packet to send [11:26:52]OFD Sender: No OFD packet to send [11:26:57]OFD Sender: No OFD packet to send [11:27:02]OFD Sender: No OFD packet to send [11:27:07]OFD Sender: No OFD packet to send [11:27:12]OFD Sender: No OFD packet to send [11:27:17]OFD Sender: No OFD packet to send [11:27:22]OFD Sender: No OFD packet to send [11:27:23]accept exits with 9 [11:27:23]New connection [11:27:23]New thread 3066617188 created [11:27:23]Thread 3066473828 joined [11:27:23]Waiting for new connection... [11:27:23] Sock 9.Parse request [11:27:23]Sock 9.Check first char [11:27:23]Sock 9.First char is OK [11:27:23]request: POST /json_proto HTTP/1.0 [11:27:23]Method: POST [11:27:23]URL: /json_proto [11:27:23]Method is POST - this is cgi request [11:27:23]url: /json_proto [11:27:23]query_string will be loaded in cgi processing [11:27:23]execute_cgi json_proto POST (null) [11:27:23]execute_cgi path=json_proto method=POST [11:27:23]POST find Content-Length [11:27:23]Host: 172.17.55.133:8080 [11:27:23]Content-Length: 683 [11:27:23]Content-Type: application/json [11:27:23] [11:27:23]POST finish read [11:27:23]Found Content-Length = 683 [11:27:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 25.080, "sum" : 1700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:23]execute_script... [11:27: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)1036184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 25.080, "sum" : 1700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:23]POST & json_proto [11:27:23]process_json_proto [11:27:23]json parsed OK: [11:27:23]protocol is kg_v1.0 [11:27:23]action value=close_receipt [11:27:23]process_action close_receipt [11:27:23]cmd_close_receipt [11:27:23]MH_GetDate [11:27:23]Write to MH i2c: F0 00 00 9E 73 00 [11:27:23]Write i2c OK [11:27:23]MH_I2C_Read... [11:27:23]Read from MH i2c: F0 [11:27:23]MH_I2C_Read... [11:27:23]Read from MH i2c: F0 09 00 [11:27:23]MH_I2C_Read... [11:27:23]Read from MH i2c: F0 09 00 9E 73 00 A0 DA C1 66 34 48 D8 65 63 [11:27:23]GetLastDocTimeStamp 1723980359 [11:27:23]current date 1723980448 [11:27:23]FM_GetShiftState [11:27:23]SAM_PROTO_GetShiftState [11:27:23]wFMCommunicate request_size=4 [11:27:23]MH_SAM_APDU [11:27:23]CAPDU: 80 13 01 00 [11:27:23]Write to MH i2c: E2 08 00 9F 73 80 13 01 00 00 00 00 00 8F [11:27:23]Write i2c OK [11:27:23]MH_I2C_Read... [11:27:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:23]Read from MH i2c: E2 [11:27:23]MH_I2C_Read... [11:27:23]Read from MH i2c: E2 0E 00 [11:27:23]MH_I2C_Read... [11:27:23]Read from MH i2c: E2 0E 00 9F 73 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 CC [11:27:23]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:27:23]wFMCommunicate OK [11:27:23]SAM_PROTO_GetShiftState done [11:27:23]FM_GetShiftState done [11:27:23]opened in 1723940556 [11:27:23]opened+sec_in_day 1724026956 [11:27:23]quantity*price = 170042 [11:27:23]sum+1 = 170043 [11:27:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.05 НДС 12% : 180.58 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 195 18.08.2024 11:27 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260637 ФПД: 129981566549993 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T112728&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260637&fm=129981566549993&tin=02508201610067®Number=0000000000091865&sum=170000 [11:27:24]StoreToDocumentArchive [11:27:24]shift 449 fd 260637 [11:27:24]save to /storage/0449/doc_00260637 [11:27:24]save last doc name /storage/0449/doc_00260637 to /storage/kkm_last_doc_name [11:27:24]save OK [11:27:24]Clear old archive folders... [11:27:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:27:24]tlvbuf is 00387F60 [11:27:24]SAM_PROTO_ClearQueue [11:27:24]wFMCommunicate request_size=4 [11:27:24]MH_SAM_APDU [11:27:24]CAPDU: 80 09 00 00 [11:27:24]Write to MH i2c: E2 08 00 AC 73 80 09 00 00 00 00 00 00 91 [11:27:24]Write i2c OK [11:27:24]MH_I2C_Read... [11:27:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:24]Read from MH i2c: E2 [11:27:24]MH_I2C_Read... [11:27:24]Read from MH i2c: E2 03 00 [11:27:24]MH_I2C_Read... [11:27:24]Read from MH i2c: E2 03 00 AC 73 00 90 00 93 [11:27:24]RAPDU: 90 00 [11:27:24]wFMCommunicate OK [11:27:24]SAM_PROTO_ClearQueue done [11:27:24]KKMCreateOFDPacket [11:27:24]OFDProtocolAddRootSTLVToBuf [11:27:24]FM_MakeSignedData [11:27:24]FM_MakeSignedData [11:27:24]SAM_PROTO_SignData [11:27:24]wFMCommunicate request_size=4 [11:27:24]MH_SAM_APDU [11:27:24]CAPDU: 80 0D 01 02 [11:27:24]Write to MH i2c: E2 08 00 AD 73 80 0D 01 02 00 00 00 00 99 [11:27:24]Write i2c OK [11:27:24]MH_I2C_Read... [11:27:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:25]Read from MH i2c: E2 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: E2 03 00 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: E2 03 00 AD 73 00 90 00 94 [11:27:25]RAPDU: 90 00 [11:27:25]wFMCommunicate OK [11:27:25]wFMCommunicate request_size=255 [11:27:25]MH_SAM_APDU [11:27:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 61 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3A 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 A0 DA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1D FA 03 00 35 04 06 00 76 [11:27:25]Write to MH i2c: E2 02 01 AE 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 61 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3A 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 A0 DA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1D FA 03 00 35 04 06 00 76 00 00 24 [11:27:25]Write i2c OK [11:27:25]MH_I2C_Read... [11:27:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:25]Read from MH i2c: E2 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: E2 03 00 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: E2 03 00 AE 73 00 90 00 95 [11:27:25]RAPDU: 90 00 [11:27:25]wFMCommunicate OK [11:27:25]wFMCommunicate request_size=10 [11:27:25]MH_SAM_APDU [11:27:25]CAPDU: 80 0D 02 02 05 37 B1 19 FF E9 [11:27:25]Write to MH i2c: E2 0D 00 AF 73 80 0D 02 02 05 00 37 B1 19 FF E9 00 00 8F [11:27:25]Write i2c OK [11:27:25]MH_I2C_Read... [11:27:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:25]Read from MH i2c: E2 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: E2 03 00 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: E2 03 00 AF 73 00 90 00 96 [11:27:25]RAPDU: 90 00 [11:27:25]wFMCommunicate OK [11:27:25]wFMCommunicate request_size=4 [11:27:25]MH_SAM_APDU [11:27:25]CAPDU: 80 0D 03 02 [11:27:25]Write to MH i2c: E2 08 00 B0 73 80 0D 03 02 00 00 00 00 9E [11:27:25]Write i2c OK [11:27:25]MH_I2C_Read... [11:27:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:25]Read from MH i2c: E2 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: E2 0B 00 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: E2 0B 00 B0 73 00 B8 6A FB 68 52 7A 8A D1 90 00 4B [11:27:25]RAPDU: B8 6A FB 68 52 7A 8A D1 90 00 [11:27:25]wFMCommunicate OK [11:27:25]SAM_PROTO_SignData done [11:27:25]FM_MakeSignedData done [11:27:25]CreateOFDProtocolMessage [11:27:25]wFMCommunicate request_size=4 [11:27:25]MH_SAM_APDU [11:27:25]CAPDU: 80 11 00 00 [11:27:25]Write to MH i2c: E2 08 00 B1 73 80 11 00 00 00 00 00 00 9E [11:27:25]Write i2c OK [11:27:25]MH_I2C_Read... [11:27:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:25]Read from MH i2c: E2 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: E2 17 00 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: E2 17 00 B1 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 EB [11:27:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:27:25]wFMCommunicate OK [11:27:25]CreateOFDProtocolMessage done [11:27:25]OFDSenderStorePacket 260637 [11:27:25]StoreOFDPacket docnum=260637 [11:27:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 FD 1B 07 01 7E 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 61 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3A 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 A0 DA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1D FA 03 00 35 04 06 00 76 37 B1 19 FF E9 B8 6A FB 68 52 7A 8A D1 [11:27:25]CheckFolder [11:27:25]dirname=/storage/ofd_packets [11:27:25]CheckFolder done [11:27:25]ProducePacketName [11:27:25]name=ofd_packets/00260637 [11:27:25]NVStorageSaveData ofd_packets/00260637 [11:27:25]File name is /storage/ofd_packets/00260637 [11:27:25]Write 301 bytes [11:27:25]NVStorageSaveData done [11:27:25]OFDSenderStorePacket done [11:27:25]KKMCreateOFDPacket done [11:27:25]NVStorageSaveData kkm_last_timestamp [11:27:25]File name is /storage/kkm_last_timestamp [11:27:25]Write 4 bytes [11:27:25]NVStorageSaveData done [11:27:25]ExternCall_PrintAddStr [11:27:25]wPrintStart [11:27:25]Write to MH i2c: 01 00 00 B2 73 25 [11:27:25]Write i2c OK [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: 01 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: 01 07 00 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: 01 07 00 B2 73 00 00 00 00 00 FF 0F 3A [11:27:25]RasterBufferAndPrint [11:27:25]line Счет N : (1)1036184 [11:27:25]line ИНН: 02508201610067 [11:27:25]line Контрольно-Кассовый Чек [11:27:25]line ПРОДАЖА [11:27:25]line ТРК (МРК, ГНК) : 42 [11:27:25]line Товар: 2710124130 [11:27:25]line Аи-92-К-5 [11:27:25]line 25.080 * 67.80 [11:27:25]line = 1700.42 [11:27:25]line НДС 12% НСП 1% [11:27:25]line > о реализуемом товаре [11:27:25]line ОКРУГЛЕНИЕ: -0.42 [11:27:25]line ИТОГО: 1700.00 [11:27:25]line Внесено: 1700.00 [11:27:25]line СДАЧА: 0.00 [11:27:25]line НСП 1% : 15.05 [11:27:25]line НДС 12% : 180.58 [11:27:25]line Наличными: 1700.00 [11:27:25]line Безнал.: 0.00 [11:27:25]line Место: АЗС № 94 "Партнер Нефть" [11:27:25]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:27:25]line СНО: Общий режим [11:27:25]line Чек 195 18.08.2024 11:27 [11:27:25]line Смена: 449 ФФД: 1.0 [11:27:25]line ЗНМ: 0300000099 [11:27:25]line РНМ: 0000000000091865 [11:27:25]line Версия ККМ: 001 [11:27:25]line ФМ: 0000000000871820 [11:27:25]line ФД: 260637 [11:27:25]line ФПД: 129981566549993 [11:27:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T112728&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260637&fm=129981566549993&tin=02508201610067®Number=0000000000091865&sum=170000 [11:27:25]written 0, free lines is 4095 [11:27:25]OFD Sender: Processing packet 260637 [packets to send 192, broken 191] [11:27:25]ProducePacketName [11:27:25]name=ofd_packets/00260637 [11:27:25]OFD Sender: To server: pG, [11:27:25]CommunicateWithHost lk.salyk.kg:30040 [11:27:25]ConnectInit lk.salyk.kg [11:27:25]Connected sock=10 [11:27: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 30 0F 01 00 00 FD 1B 07 01 7E 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 61 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3A 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 A0 DA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1D FA 03 00 35 04 06 00 76 37 B1 19 FF E9 B8 6A FB 68 52 7A 8A D1 [11:27:25]Write to MH i2c: 01 00 00 DD 73 50 [11:27:25]Write i2c OK [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: 01 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: 01 07 00 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: 01 07 00 DD 73 00 00 00 00 00 6F 0C D2 [11:27:25]RasterBufferAndPrint [11:27:25]line [11:27:25]line [11:27:25]line [11:27:25]line [11:27:25]line [11:27:25]written 0, free lines is 3185 [11:27:25]MH_Cut [11:27:25]Write to MH i2c: D1 01 00 E4 73 01 29 [11:27:25]Write i2c OK [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: D1 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: D1 01 00 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: D1 01 00 E4 73 00 28 [11:27:25]Write to MH i2c: 01 00 00 E5 73 58 [11:27:25]Write i2c OK [11:27:25]MH_I2C_Read... [11:27: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 30 4F 00 00 00 1B AD 47 00 CE 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 30 10 04 04 00 1D FA 03 00 F4 03 04 00 F5 83 C1 66 B6 04 01 00 00 09 89 06 BE B6 7D DF D6 [11:27:26]CommunicateWithHost err = 0 [11:27:26]CheckOFDResponse [11:27:26]1017 (14) - 77093643461234 [11:27:26]1041 (16) - 0000000000871820 [11:27:26]1040 (4) - 260637 [11:27:26]1012 (4) - 18.08.2024 05:17 [11:27:26]1206 (1) - 0 [11:27:26]OFD Sender: Remove packet 260637 [11:27:26]ProducePacketName [11:27:26]name=ofd_packets/00260637 [11:27:26]NVStorageDeleteData [11:27:26]OFD Sender: No OFD packet to send [11:27:27]*** Cut start [11:27:27]*** Purtial cut [11:27:27]*** Stage 1: CUTSNS_PIN = 1 [11:27:29]Read from MH i2c: 01 [11:27:29]MH_I2C_Read... [11:27:29]*** Stop cut motor [11:27:29]*** Cut end [11:27:29]Read from MH i2c: 01 07 00 [11:27:29]MH_I2C_Read... [11:27:29]Read from MH i2c: 01 07 00 E5 73 00 00 00 00 00 FF 0F 6D [11:27:29]process_action close_receipt done [11:27:29]requested_data is exist [11:27:29]produce_requested_data [11:27:29]requested_item fm.sn is exist - process it [11:27:29]wFMCommunicate request_size=4 [11:27:29]MH_SAM_APDU [11:27:29]CAPDU: 80 11 00 00 [11:27:29]Write to MH i2c: E2 08 00 E6 73 80 11 00 00 00 00 00 00 D3 [11:27:29]Write i2c OK [11:27:29]MH_I2C_Read... [11:27:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:29]Read from MH i2c: E2 [11:27:29]MH_I2C_Read... [11:27:29]Read from MH i2c: E2 17 00 [11:27:29]MH_I2C_Read... [11:27:29]Read from MH i2c: E2 17 00 E6 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 20 [11:27:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:27:29]wFMCommunicate OK [11:27:29]requested_item fd.num is exist - process it [11:27:29]SAM_PROTO_GetFieldsCounters [11:27:29]wFMCommunicate request_size=4 [11:27:29]MH_SAM_APDU [11:27:29]CAPDU: 80 13 00 00 [11:27:29]Write to MH i2c: E2 08 00 E7 73 80 13 00 00 00 00 00 00 D6 [11:27:29]Write i2c OK [11:27:29]MH_I2C_Read... [11:27:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:29]Read from MH i2c: E2 [11:27:29]MH_I2C_Read... [11:27:29]Read from MH i2c: E2 62 00 [11:27:29]MH_I2C_Read... [11:27:29]Read from MH i2c: E2 62 00 E7 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 1D FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [11:27: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 1D FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:27:29]wFMCommunicate OK [11:27:29]SAM_PROTO_GetFieldsCounters done [11:27:29]requested_item shift.num is exist - process it [11:27:29]requested_item shift.opened is exist - process it [11:27:29]req_shift_opened [11:27:29]FM_GetShiftState [11:27:29]SAM_PROTO_GetShiftState [11:27:29]wFMCommunicate request_size=4 [11:27:29]MH_SAM_APDU [11:27:29]CAPDU: 80 13 01 00 [11:27:29]Write to MH i2c: E2 08 00 E8 73 80 13 01 00 00 00 00 00 D8 [11:27:29]Write i2c OK [11:27:29]MH_I2C_Read... [11:27:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:29]Read from MH i2c: E2 [11:27:29]MH_I2C_Read... [11:27:29]Read from MH i2c: E2 0E 00 [11:27:29]MH_I2C_Read... [11:27:29]Read from MH i2c: E2 0E 00 E8 73 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 15 [11:27:29]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:27:29]wFMCommunicate OK [11:27:29]SAM_PROTO_GetShiftState done [11:27:29]FM_GetShiftState done [11:27:29]req_shift_opened done [11:27:29]requested_item shift.open_date is exist - process it [11:27:29]req_shift_open_date [11:27:29]req_shift_open_date done [11:27:29]produce_requested_data done [11:27:29]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260637,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:27:29]process_action_free close_receipt [11:27:29]json_value_free [11:27:29]json_value_free done [11:27:29]process_json_proto returns [11:27:29]Send response to host [11:27:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260637,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:27:29]free response buf [11:27:29]execute_script done [11:27:29]execute_script returns [11:27:29]free content buf [11:27:29]Sock 9.Close socket [11:27:29]Sock 9.Thread stoped [11:27:31]OFD Sender: No OFD packet to send [11:27:36]OFD Sender: No OFD packet to send [11:27:41]OFD Sender: No OFD packet to send [11:27:46]OFD Sender: No OFD packet to send [11:27:51]OFD Sender: No OFD packet to send [11:27:51]accept exits with 7 [11:27:51]New connection [11:27:51]New thread 3066473828 created [11:27:51]Thread 3066617188 joined [11:27:51]Waiting for new connection... [11:27:51] Sock 7.Parse request [11:27:51]Sock 7.Check first char [11:27:51]Sock 7.First char is OK [11:27:51]request: POST /json_proto HTTP/1.0 [11:27:51]Method: POST [11:27:51]URL: /json_proto [11:27:51]Method is POST - this is cgi request [11:27:51]url: /json_proto [11:27:51]query_string will be loaded in cgi processing [11:27:51]execute_cgi json_proto POST (null) [11:27:51]execute_cgi path=json_proto method=POST [11:27:51]POST find Content-Length [11:27:51]Host: 172.17.55.133:8080 [11:27:51]Content-Length: 818 [11:27:51]Content-Type: application/json [11:27:51] [11:27:51]POST finish read [11:27:51]Found Content-Length = 818 [11:27:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036185", "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" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 800.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:51]execute_script... [11:27: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)1036185", "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" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 800.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:51]POST & json_proto [11:27:51]process_json_proto [11:27:51]json parsed OK: [11:27:51]protocol is kg_v1.0 [11:27:51]action value=close_receipt [11:27:51]process_action close_receipt [11:27:51]cmd_close_receipt [11:27:51]MH_GetDate [11:27:51]Write to MH i2c: F0 00 00 E9 73 4B [11:27:51]Write i2c OK [11:27:51]MH_I2C_Read... [11:27:51]Read from MH i2c: F0 [11:27:51]MH_I2C_Read... [11:27:51]Read from MH i2c: F0 09 00 [11:27:51]MH_I2C_Read... [11:27:51]Read from MH i2c: F0 09 00 E9 73 00 BC DA C1 66 34 48 D8 65 CA [11:27:51]GetLastDocTimeStamp 1723980448 [11:27:51]current date 1723980476 [11:27:51]FM_GetShiftState [11:27:51]SAM_PROTO_GetShiftState [11:27:51]wFMCommunicate request_size=4 [11:27:51]MH_SAM_APDU [11:27:51]CAPDU: 80 13 01 00 [11:27:51]Write to MH i2c: E2 08 00 EA 73 80 13 01 00 00 00 00 00 DA [11:27:51]Write i2c OK [11:27:51]MH_I2C_Read... [11:27:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:51]Read from MH i2c: E2 [11:27:51]MH_I2C_Read... [11:27:51]Read from MH i2c: E2 0E 00 [11:27:51]MH_I2C_Read... [11:27:51]Read from MH i2c: E2 0E 00 EA 73 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 17 [11:27:51]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:27:51]wFMCommunicate OK [11:27:51]SAM_PROTO_GetShiftState done [11:27:51]FM_GetShiftState done [11:27:51]opened in 1723940556 [11:27:51]opened+sec_in_day 1724026956 [11:27:51]quantity*price = 80061 [11:27:51]sum+1 = 80063 [11:27:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.62 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 0.00 Безнал.: 800.62 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 196 18.08.2024 11:27 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871820 ФД: 260638 ФПД: 32359415369609 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T112756&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260638&fm=32359415369609&tin=02508201610067®Number=0000000000091865&sum=80062 [11:27:53]StoreToDocumentArchive [11:27:53]shift 449 fd 260638 [11:27:53]save to /storage/0449/doc_00260638 [11:27:53]save last doc name /storage/0449/doc_00260638 to /storage/kkm_last_doc_name [11:27:53]save OK [11:27:53]Clear old archive folders... [11:27:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:27:53]tlvbuf is 004518D0 [11:27:53]SAM_PROTO_ClearQueue [11:27:53]wFMCommunicate request_size=4 [11:27:53]MH_SAM_APDU [11:27:53]CAPDU: 80 09 00 00 [11:27:53]Write to MH i2c: E2 08 00 F7 73 80 09 00 00 00 00 00 00 DC [11:27:53]Write i2c OK [11:27:53]MH_I2C_Read... [11:27:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:53]Read from MH i2c: E2 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: E2 03 00 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: E2 03 00 F7 73 00 90 00 DE [11:27:53]RAPDU: 90 00 [11:27:53]wFMCommunicate OK [11:27:53]SAM_PROTO_ClearQueue done [11:27:53]KKMCreateOFDPacket [11:27:53]OFDProtocolAddRootSTLVToBuf [11:27:53]FM_MakeSignedData [11:27:53]FM_MakeSignedData [11:27:53]SAM_PROTO_SignData [11:27:53]wFMCommunicate request_size=4 [11:27:53]MH_SAM_APDU [11:27:53]CAPDU: 80 0D 01 02 [11:27:53]Write to MH i2c: E2 08 00 F8 73 80 0D 01 02 00 00 00 00 E4 [11:27:53]Write i2c OK [11:27:53]MH_I2C_Read... [11:27:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:53]Read from MH i2c: E2 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: E2 03 00 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: E2 03 00 F8 73 00 90 00 DF [11:27:53]RAPDU: 90 00 [11:27:53]wFMCommunicate OK [11:27:53]wFMCommunicate request_size=255 [11:27:53]MH_SAM_APDU [11:27:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 00 00 00 00 00 00 39 04 06 00 BE 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 BC DA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1E FA 03 00 35 04 06 00 1D [11:27:53]Write to MH i2c: E2 02 01 F9 73 80 0D 02 02 FA 00 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 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 00 00 00 00 00 00 39 04 06 00 BE 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 BC DA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1E FA 03 00 35 04 06 00 1D 00 00 D5 [11:27:53]Write i2c OK [11:27:53]MH_I2C_Read... [11:27:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:53]Read from MH i2c: E2 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: E2 03 00 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: E2 03 00 F9 73 00 90 00 E0 [11:27:53]RAPDU: 90 00 [11:27:53]wFMCommunicate OK [11:27:53]wFMCommunicate request_size=10 [11:27:53]MH_SAM_APDU [11:27:53]CAPDU: 80 0D 02 02 05 6E 43 75 4F 89 [11:27:53]Write to MH i2c: E2 0D 00 FA 73 80 0D 02 02 05 00 6E 43 75 4F 89 00 00 EF [11:27:53]Write i2c OK [11:27:53]MH_I2C_Read... [11:27:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:53]Read from MH i2c: E2 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: E2 03 00 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: E2 03 00 FA 73 00 90 00 E1 [11:27:53]RAPDU: 90 00 [11:27:53]wFMCommunicate OK [11:27:53]wFMCommunicate request_size=4 [11:27:53]MH_SAM_APDU [11:27:53]CAPDU: 80 0D 03 02 [11:27:53]Write to MH i2c: E2 08 00 FB 73 80 0D 03 02 00 00 00 00 E9 [11:27:53]Write i2c OK [11:27:53]MH_I2C_Read... [11:27:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:53]Read from MH i2c: E2 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: E2 0B 00 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: E2 0B 00 FB 73 00 D2 83 D6 86 F3 15 ED 21 90 00 B1 [11:27:53]RAPDU: D2 83 D6 86 F3 15 ED 21 90 00 [11:27:53]wFMCommunicate OK [11:27:53]SAM_PROTO_SignData done [11:27:53]FM_MakeSignedData done [11:27:53]CreateOFDProtocolMessage [11:27:53]wFMCommunicate request_size=4 [11:27:53]MH_SAM_APDU [11:27:53]CAPDU: 80 11 00 00 [11:27:53]Write to MH i2c: E2 08 00 FC 73 80 11 00 00 00 00 00 00 E9 [11:27:53]Write i2c OK [11:27:53]MH_I2C_Read... [11:27:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:53]Read from MH i2c: E2 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: E2 17 00 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: E2 17 00 FC 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 36 [11:27:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:27:53]wFMCommunicate OK [11:27:53]CreateOFDProtocolMessage done [11:27:53]OFDSenderStorePacket 260638 [11:27:53]StoreOFDPacket docnum=260638 [11:27:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 6D 0A 07 01 9A EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 00 00 00 00 00 00 39 04 06 00 BE 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 BC DA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1E FA 03 00 35 04 06 00 1D 6E 43 75 4F 89 D2 83 D6 86 F3 15 ED 21 [11:27:53]CheckFolder [11:27:53]dirname=/storage/ofd_packets [11:27:53]CheckFolder done [11:27:53]ProducePacketName [11:27:53]name=ofd_packets/00260638 [11:27:53]NVStorageSaveData ofd_packets/00260638 [11:27:53]File name is /storage/ofd_packets/00260638 [11:27:53]Write 301 bytes [11:27:53]NVStorageSaveData done [11:27:53]OFDSenderStorePacket done [11:27:53]KKMCreateOFDPacket done [11:27:53]NVStorageSaveData kkm_last_timestamp [11:27:53]File name is /storage/kkm_last_timestamp [11:27:53]Write 4 bytes [11:27:53]NVStorageSaveData done [11:27:53]ExternCall_PrintAddStr [11:27:53]wPrintStart [11:27:53]Write to MH i2c: 01 00 00 FD 73 70 [11:27:53]Write i2c OK [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: 01 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: 01 07 00 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: 01 07 00 FD 73 00 00 00 00 00 FF 0F 85 [11:27:53]RasterBufferAndPrint [11:27:53]line Счет N : (1)1036185 [11:27:53]line ИНН: 02508201610067 [11:27:53]line Контрольно-Кассовый Чек [11:27:53]line ПРОДАЖА [11:27:53]line ТРК (МРК, ГНК) : 13 [11:27:53]line Товар: 2710124500 [11:27:53]line Аи-95-К-5 [11:27:53]line 10.790 * 74.20 [11:27:53]line = 800.62 [11:27:53]line НДС 12% НСП 1% [11:27:53]line > о реализуемом товаре [11:27:53]line ИТОГО: 800.62 [11:27:53]line НСП 1% : 7.08 [11:27:53]line НДС 12% : 85.02 [11:27:53]line Наличными: 0.00 [11:27:53]line Безнал.: 800.62 [11:27:53]line Место: АЗС № 94 "Партнер Нефть" [11:27:53]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:27:53]line СНО: Общий режим [11:27:53]line Чек 196 18.08.2024 11:27 [11:27:53]line Смена: 449 ФФД: 1.0 [11:27:53]line ЗНМ: 0300000099 [11:27:53]line РНМ: 0000000000091865 [11:27:53]line Версия ККМ: 001 [11:27:53]line Платежная система: Бакай Банк [11:27:53]line ФМ: 0000000000871820 [11:27:53]line ФД: 260638 [11:27:53]line ФПД: 32359415369609 [11:27:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T112756&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260638&fm=32359415369609&tin=02508201610067®Number=0000000000091865&sum=80062 [11:27:53]written 0, free lines is 4095 [11:27:53]OFD Sender: Processing packet 260638 [packets to send 192, broken 191] [11:27:53]ProducePacketName [11:27:53]name=ofd_packets/00260638 [11:27:53]OFD Sender: To server: pG, [11:27:53]CommunicateWithHost lk.salyk.kg:30040 [11:27:53]ConnectInit lk.salyk.kg [11:27:53]Connected sock=9 [11:27: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 30 0F 01 00 00 6D 0A 07 01 9A EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 00 00 00 00 00 00 39 04 06 00 BE 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 BC DA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1E FA 03 00 35 04 06 00 1D 6E 43 75 4F 89 D2 83 D6 86 F3 15 ED 21 [11:27: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 30 4F 00 00 00 76 69 47 00 5D 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 30 10 04 04 00 1E FA 03 00 F4 03 04 00 11 84 C1 66 B6 04 01 00 00 5C BB FA 91 92 2D 4D DE [11:27:53]CommunicateWithHost err = 0 [11:27:53]CheckOFDResponse [11:27:53]1017 (14) - 77093643461234 [11:27:53]1041 (16) - 0000000000871820 [11:27:53]1040 (4) - 260638 [11:27:53]1012 (4) - 18.08.2024 05:18 [11:27:53]1206 (1) - 0 [11:27:53]OFD Sender: Remove packet 260638 [11:27:53]ProducePacketName [11:27:53]name=ofd_packets/00260638 [11:27:53]NVStorageDeleteData [11:27:54]Write to MH i2c: 01 00 00 27 74 9B [11:27:54]Write i2c OK [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: 01 [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: 01 07 00 [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: 01 07 00 27 74 00 00 00 00 00 84 0C 32 [11:27:54]RasterBufferAndPrint [11:27:54]line [11:27:54]line [11:27:54]line [11:27:54]line [11:27:54]line [11:27:54]written 0, free lines is 3209 [11:27:54]MH_Cut [11:27:54]Write to MH i2c: D1 01 00 2E 74 01 74 [11:27:54]Write i2c OK [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: D1 [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: D1 01 00 [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: D1 01 00 2E 74 00 73 [11:27:54]Write to MH i2c: 01 00 00 2F 74 A3 [11:27:54]Write i2c OK [11:27:54]MH_I2C_Read... [11:27:54]OFD Sender: No OFD packet to send [11:27:55]*** Cut start [11:27:55]*** Purtial cut [11:27:55]*** Stage 1: CUTSNS_PIN = 1 [11:27:57]Read from MH i2c: 01 [11:27:57]MH_I2C_Read... [11:27:57]*** Stop cut motor [11:27:57]*** Cut end [11:27:57]Read from MH i2c: 01 07 00 [11:27:57]MH_I2C_Read... [11:27:57]Read from MH i2c: 01 07 00 2F 74 00 00 00 00 00 FF 0F B8 [11:27:57]process_action close_receipt done [11:27:57]requested_data is exist [11:27:57]produce_requested_data [11:27:57]requested_item fm.sn is exist - process it [11:27:57]wFMCommunicate request_size=4 [11:27:57]MH_SAM_APDU [11:27:57]CAPDU: 80 11 00 00 [11:27:57]Write to MH i2c: E2 08 00 30 74 80 11 00 00 00 00 00 00 1E [11:27:57]Write i2c OK [11:27:57]MH_I2C_Read... [11:27:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:57]Read from MH i2c: E2 [11:27:57]MH_I2C_Read... [11:27:57]Read from MH i2c: E2 17 00 [11:27:57]MH_I2C_Read... [11:27:57]Read from MH i2c: E2 17 00 30 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 6B [11:27:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:27:57]wFMCommunicate OK [11:27:57]requested_item fd.num is exist - process it [11:27:57]SAM_PROTO_GetFieldsCounters [11:27:57]wFMCommunicate request_size=4 [11:27:57]MH_SAM_APDU [11:27:57]CAPDU: 80 13 00 00 [11:27:57]Write to MH i2c: E2 08 00 31 74 80 13 00 00 00 00 00 00 21 [11:27:57]Write i2c OK [11:27:57]MH_I2C_Read... [11:27:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:57]Read from MH i2c: E2 [11:27:57]MH_I2C_Read... [11:27:57]Read from MH i2c: E2 62 00 [11:27:57]MH_I2C_Read... [11:27:57]Read from MH i2c: E2 62 00 31 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 1E FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [11:27: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 1E FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:27:57]wFMCommunicate OK [11:27:57]SAM_PROTO_GetFieldsCounters done [11:27:57]requested_item shift.num is exist - process it [11:27:57]requested_item shift.opened is exist - process it [11:27:57]req_shift_opened [11:27:57]FM_GetShiftState [11:27:57]SAM_PROTO_GetShiftState [11:27:57]wFMCommunicate request_size=4 [11:27:57]MH_SAM_APDU [11:27:57]CAPDU: 80 13 01 00 [11:27:57]Write to MH i2c: E2 08 00 32 74 80 13 01 00 00 00 00 00 23 [11:27:57]Write i2c OK [11:27:57]MH_I2C_Read... [11:27:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:57]Read from MH i2c: E2 [11:27:57]MH_I2C_Read... [11:27:57]Read from MH i2c: E2 0E 00 [11:27:57]MH_I2C_Read... [11:27:57]Read from MH i2c: E2 0E 00 32 74 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 60 [11:27:57]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:27:57]wFMCommunicate OK [11:27:57]SAM_PROTO_GetShiftState done [11:27:57]FM_GetShiftState done [11:27:57]req_shift_opened done [11:27:57]requested_item shift.open_date is exist - process it [11:27:57]req_shift_open_date [11:27:57]req_shift_open_date done [11:27:57]produce_requested_data done [11:27:57]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260638,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:27:57]process_action_free close_receipt [11:27:57]json_value_free [11:27:57]json_value_free done [11:27:57]process_json_proto returns [11:27:57]Send response to host [11:27:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260638,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:27:57]free response buf [11:27:57]execute_script done [11:27:57]execute_script returns [11:27:57]free content buf [11:27:57]Sock 7.Close socket [11:27:57]Sock 7.Thread stoped [11:27:59]OFD Sender: No OFD packet to send [11:28:04]OFD Sender: No OFD packet to send [11:28:09]OFD Sender: No OFD packet to send [11:28:14]OFD Sender: No OFD packet to send [11:28:19]OFD Sender: No OFD packet to send [11:28:22]accept exits with 10 [11:28:22]New connection [11:28:22]New thread 3066617188 created [11:28:22]Thread 3066473828 joined [11:28:22]Waiting for new connection... [11:28:22] Sock 10.Parse request [11:28:22]Sock 10.Check first char [11:28:22]Sock 10.First char is OK [11:28:22]request: POST /json_proto HTTP/1.0 [11:28:22]Method: POST [11:28:22]URL: /json_proto [11:28:22]Method is POST - this is cgi request [11:28:22]url: /json_proto [11:28:22]query_string will be loaded in cgi processing [11:28:22]execute_cgi json_proto POST (null) [11:28:22]execute_cgi path=json_proto method=POST [11:28:22]POST find Content-Length [11:28:22]Host: 172.17.55.133:8080 [11:28:22]Content-Length: 801 [11:28:22]Content-Type: application/json [11:28:22] [11:28:22]POST finish read [11:28:22]Found Content-Length = 801 [11:28:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:22]execute_script... [11:28: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)1036186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:22]POST & json_proto [11:28:22]process_json_proto [11:28:22]json parsed OK: [11:28:22]protocol is kg_v1.0 [11:28:22]action value=close_receipt [11:28:22]process_action close_receipt [11:28:22]cmd_close_receipt [11:28:22]MH_GetDate [11:28:22]Write to MH i2c: F0 00 00 33 74 96 [11:28:22]Write i2c OK [11:28:22]MH_I2C_Read... [11:28:22]Read from MH i2c: F0 [11:28:22]MH_I2C_Read... [11:28:22]Read from MH i2c: F0 09 00 [11:28:22]MH_I2C_Read... [11:28:22]Read from MH i2c: F0 09 00 33 74 00 DB DA C1 66 34 48 D8 65 34 [11:28:22]GetLastDocTimeStamp 1723980476 [11:28:22]current date 1723980507 [11:28:22]FM_GetShiftState [11:28:22]SAM_PROTO_GetShiftState [11:28:22]wFMCommunicate request_size=4 [11:28:22]MH_SAM_APDU [11:28:22]CAPDU: 80 13 01 00 [11:28:22]Write to MH i2c: E2 08 00 34 74 80 13 01 00 00 00 00 00 25 [11:28:22]Write i2c OK [11:28:22]MH_I2C_Read... [11:28:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:22]Read from MH i2c: E2 [11:28:22]MH_I2C_Read... [11:28:22]Read from MH i2c: E2 0E 00 [11:28:22]MH_I2C_Read... [11:28:22]Read from MH i2c: E2 0E 00 34 74 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 62 [11:28:22]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:28:22]wFMCommunicate OK [11:28:22]SAM_PROTO_GetShiftState done [11:28:22]FM_GetShiftState done [11:28:22]opened in 1723940556 [11:28:22]opened+sec_in_day 1724026956 [11:28:22]quantity*price = 50036 [11:28:22]sum+1 = 50037 [11:28:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 197 18.08.2024 11:28 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260639 ФПД: 100263686690255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T112827&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260639&fm=100263686690255&tin=02508201610067®Number=0000000000091865&sum=50036 [11:28:23]StoreToDocumentArchive [11:28:23]shift 449 fd 260639 [11:28:23]save to /storage/0449/doc_00260639 [11:28:23]save last doc name /storage/0449/doc_00260639 to /storage/kkm_last_doc_name [11:28:23]save OK [11:28:23]Clear old archive folders... [11:28:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:28:23]tlvbuf is 0041F990 [11:28:23]SAM_PROTO_ClearQueue [11:28:23]wFMCommunicate request_size=4 [11:28:23]MH_SAM_APDU [11:28:23]CAPDU: 80 09 00 00 [11:28:23]Write to MH i2c: E2 08 00 41 74 80 09 00 00 00 00 00 00 27 [11:28:23]Write i2c OK [11:28:23]MH_I2C_Read... [11:28:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:23]Read from MH i2c: E2 [11:28:23]MH_I2C_Read... [11:28:23]Read from MH i2c: E2 03 00 [11:28:23]MH_I2C_Read... [11:28:23]Read from MH i2c: E2 03 00 41 74 00 90 00 29 [11:28:23]RAPDU: 90 00 [11:28:23]wFMCommunicate OK [11:28:23]SAM_PROTO_ClearQueue done [11:28:23]KKMCreateOFDPacket [11:28:23]OFDProtocolAddRootSTLVToBuf [11:28:23]FM_MakeSignedData [11:28:23]FM_MakeSignedData [11:28:23]SAM_PROTO_SignData [11:28:23]wFMCommunicate request_size=4 [11:28:23]MH_SAM_APDU [11:28:23]CAPDU: 80 0D 01 02 [11:28:23]Write to MH i2c: E2 08 00 42 74 80 0D 01 02 00 00 00 00 2F [11:28:23]Write i2c OK [11:28:23]MH_I2C_Read... [11:28:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:23]Read from MH i2c: E2 [11:28:23]MH_I2C_Read... [11:28:23]Read from MH i2c: E2 03 00 [11:28:23]MH_I2C_Read... [11:28:23]Read from MH i2c: E2 03 00 42 74 00 90 00 2A [11:28:23]RAPDU: 90 00 [11:28:23]wFMCommunicate OK [11:28:23]wFMCommunicate request_size=255 [11:28:23]MH_SAM_APDU [11:28:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 DB DA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1F FA 03 00 35 04 06 00 5B [11:28:23]Write to MH i2c: E2 02 01 43 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 DB DA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1F FA 03 00 35 04 06 00 5B 00 00 CE [11:28:23]Write i2c OK [11:28:23]MH_I2C_Read... [11:28:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:24]Read from MH i2c: E2 [11:28:24]MH_I2C_Read... [11:28:24]Read from MH i2c: E2 03 00 [11:28:24]MH_I2C_Read... [11:28:24]Read from MH i2c: E2 03 00 43 74 00 90 00 2B [11:28:24]RAPDU: 90 00 [11:28:24]wFMCommunicate OK [11:28:24]wFMCommunicate request_size=10 [11:28:24]MH_SAM_APDU [11:28:24]CAPDU: 80 0D 02 02 05 30 75 6D D5 CF [11:28:24]Write to MH i2c: E2 0D 00 44 74 80 0D 02 02 05 00 30 75 6D D5 CF 00 00 F2 [11:28:24]Write i2c OK [11:28:24]MH_I2C_Read... [11:28:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:24]Read from MH i2c: E2 [11:28:24]MH_I2C_Read... [11:28:24]Read from MH i2c: E2 03 00 [11:28:24]MH_I2C_Read... [11:28:24]Read from MH i2c: E2 03 00 44 74 00 90 00 2C [11:28:24]RAPDU: 90 00 [11:28:24]wFMCommunicate OK [11:28:24]wFMCommunicate request_size=4 [11:28:24]MH_SAM_APDU [11:28:24]CAPDU: 80 0D 03 02 [11:28:24]Write to MH i2c: E2 08 00 45 74 80 0D 03 02 00 00 00 00 34 [11:28:24]Write i2c OK [11:28:24]MH_I2C_Read... [11:28:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:24]Read from MH i2c: E2 [11:28:24]MH_I2C_Read... [11:28:24]Read from MH i2c: E2 0B 00 [11:28:24]MH_I2C_Read... [11:28:24]Read from MH i2c: E2 0B 00 45 74 00 66 CB 92 C9 65 27 ED 30 90 00 6A [11:28:24]RAPDU: 66 CB 92 C9 65 27 ED 30 90 00 [11:28:24]wFMCommunicate OK [11:28:24]SAM_PROTO_SignData done [11:28:24]FM_MakeSignedData done [11:28:24]CreateOFDProtocolMessage [11:28:24]wFMCommunicate request_size=4 [11:28:24]MH_SAM_APDU [11:28:24]CAPDU: 80 11 00 00 [11:28:24]Write to MH i2c: E2 08 00 46 74 80 11 00 00 00 00 00 00 34 [11:28:24]Write i2c OK [11:28:24]MH_I2C_Read... [11:28:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:24]Read from MH i2c: E2 [11:28:24]MH_I2C_Read... [11:28:24]Read from MH i2c: E2 17 00 [11:28:24]MH_I2C_Read... [11:28:24]Read from MH i2c: E2 17 00 46 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 81 [11:28:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:28:24]wFMCommunicate OK [11:28:24]CreateOFDProtocolMessage done [11:28:24]OFDSenderStorePacket 260639 [11:28:24]StoreOFDPacket docnum=260639 [11:28:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 86 B8 07 01 3A 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 DB DA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1F FA 03 00 35 04 06 00 5B 30 75 6D D5 CF 66 CB 92 C9 65 27 ED 30 [11:28:24]CheckFolder [11:28:24]dirname=/storage/ofd_packets [11:28:24]CheckFolder done [11:28:24]ProducePacketName [11:28:24]name=ofd_packets/00260639 [11:28:24]NVStorageSaveData ofd_packets/00260639 [11:28:24]File name is /storage/ofd_packets/00260639 [11:28:24]Write 301 bytes [11:28:24]NVStorageSaveData done [11:28:24]OFDSenderStorePacket done [11:28:24]KKMCreateOFDPacket done [11:28:24]NVStorageSaveData kkm_last_timestamp [11:28:24]File name is /storage/kkm_last_timestamp [11:28:24]Write 4 bytes [11:28:24]NVStorageSaveData done [11:28:24]ExternCall_PrintAddStr [11:28:24]wPrintStart [11:28:24]Write to MH i2c: 01 00 00 47 74 BB [11:28:24]Write i2c OK [11:28:24]MH_I2C_Read... [11:28:24]Read from MH i2c: 01 [11:28:24]MH_I2C_Read... [11:28:24]Read from MH i2c: 01 07 00 [11:28:24]MH_I2C_Read... [11:28:24]Read from MH i2c: 01 07 00 47 74 00 00 00 00 00 FF 0F D0 [11:28:24]RasterBufferAndPrint [11:28:24]line Счет N : (1)1036186 [11:28:24]line ИНН: 02508201610067 [11:28:24]line Контрольно-Кассовый Чек [11:28:24]line ПРОДАЖА [11:28:24]line ТРК (МРК, ГНК) : 32 [11:28:24]line Товар: 2710124130 [11:28:24]line Аи-92-К-5 [11:28:24]line 7.380 * 67.80 [11:28:24]line = 500.36 [11:28:24]line НДС 12% НСП 1% [11:28:24]line > о реализуемом товаре [11:28:24]line ИТОГО: 500.36 [11:28:24]line НСП 1% : 4.43 [11:28:24]line НДС 12% : 53.14 [11:28:24]line Наличными: 0.00 [11:28:24]line Безнал.: 500.36 [11:28:24]line Место: АЗС № 94 "Партнер Нефть" [11:28:24]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:28:24]line СНО: Общий режим [11:28:24]line Чек 197 18.08.2024 11:28 [11:28:24]line Смена: 449 ФФД: 1.0 [11:28:24]line ЗНМ: 0300000099 [11:28:24]line РНМ: 0000000000091865 [11:28:24]line Версия ККМ: 001 [11:28:24]line Платежная система: O! деньги [11:28:24]line ФМ: 0000000000871820 [11:28:24]line ФД: 260639 [11:28:24]line ФПД: 100263686690255 [11:28:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T112827&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260639&fm=100263686690255&tin=02508201610067®Number=0000000000091865&sum=50036 [11:28:24]OFD Sender: Processing packet 260639 [packets to send 192, broken 191] [11:28:24]ProducePacketName [11:28:24]name=ofd_packets/00260639 [11:28:24]OFD Sender: To server: pG, [11:28:24]CommunicateWithHost lk.salyk.kg:30040 [11:28:24]ConnectInit lk.salyk.kg [11:28:24]written 0, free lines is 4095 [11:28:24]Connected sock=9 [11:28: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 30 0F 01 00 00 86 B8 07 01 3A 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 DB DA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1F FA 03 00 35 04 06 00 5B 30 75 6D D5 CF 66 CB 92 C9 65 27 ED 30 [11:28:24]recv_with_timeout no data received [11:28:24]CommunicateWithHost answer receiving error [11:28:24]CommunicateWithHost err = -3 [11:28:24]OFD Sender: Server communicate error [11:28:25]Write to MH i2c: 01 00 00 71 74 E5 [11:28:25]Write i2c OK [11:28:25]MH_I2C_Read... [11:28:25]Read from MH i2c: 01 [11:28:25]MH_I2C_Read... [11:28:25]Read from MH i2c: 01 07 00 [11:28:25]MH_I2C_Read... [11:28:25]Read from MH i2c: 01 07 00 71 74 00 00 00 00 00 87 0C 7F [11:28:25]RasterBufferAndPrint [11:28:25]line [11:28:25]line [11:28:25]line [11:28:25]line [11:28:25]line [11:28:25]written 0, free lines is 3210 [11:28:25]MH_Cut [11:28:25]Write to MH i2c: D1 01 00 78 74 01 BE [11:28:25]Write i2c OK [11:28:25]MH_I2C_Read... [11:28:25]Read from MH i2c: D1 [11:28:25]MH_I2C_Read... [11:28:25]Read from MH i2c: D1 01 00 [11:28:25]MH_I2C_Read... [11:28:25]Read from MH i2c: D1 01 00 78 74 00 BD [11:28:25]Write to MH i2c: 01 00 00 79 74 ED [11:28:25]Write i2c OK [11:28:25]MH_I2C_Read... [11:28:26]*** Cut start [11:28:26]*** Purtial cut [11:28:26]*** Stage 1: CUTSNS_PIN = 1 [11:28:28]Read from MH i2c: 01 [11:28:28]MH_I2C_Read... [11:28:28]*** Stop cut motor [11:28:28]*** Cut end [11:28:28]Read from MH i2c: 01 07 00 [11:28:28]MH_I2C_Read... [11:28:28]Read from MH i2c: 01 07 00 79 74 00 00 00 00 00 FF 0F 02 [11:28:28]process_action close_receipt done [11:28:28]requested_data is exist [11:28:28]produce_requested_data [11:28:28]requested_item fm.sn is exist - process it [11:28:28]wFMCommunicate request_size=4 [11:28:28]MH_SAM_APDU [11:28:28]CAPDU: 80 11 00 00 [11:28:28]Write to MH i2c: E2 08 00 7A 74 80 11 00 00 00 00 00 00 68 [11:28:28]Write i2c OK [11:28:28]MH_I2C_Read... [11:28:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:28]Read from MH i2c: E2 [11:28:28]MH_I2C_Read... [11:28:28]Read from MH i2c: E2 17 00 [11:28:28]MH_I2C_Read... [11:28:28]Read from MH i2c: E2 17 00 7A 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B5 [11:28:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:28:28]wFMCommunicate OK [11:28:28]requested_item fd.num is exist - process it [11:28:28]SAM_PROTO_GetFieldsCounters [11:28:28]wFMCommunicate request_size=4 [11:28:28]MH_SAM_APDU [11:28:28]CAPDU: 80 13 00 00 [11:28:28]Write to MH i2c: E2 08 00 7B 74 80 13 00 00 00 00 00 00 6B [11:28:28]Write i2c OK [11:28:28]MH_I2C_Read... [11:28:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:28]Read from MH i2c: E2 [11:28:28]MH_I2C_Read... [11:28:28]Read from MH i2c: E2 62 00 [11:28:28]MH_I2C_Read... [11:28:28]Read from MH i2c: E2 62 00 7B 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 1F FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [11:28: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 1F FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:28]wFMCommunicate OK [11:28:28]SAM_PROTO_GetFieldsCounters done [11:28:28]requested_item shift.num is exist - process it [11:28:28]requested_item shift.opened is exist - process it [11:28:28]req_shift_opened [11:28:28]FM_GetShiftState [11:28:28]SAM_PROTO_GetShiftState [11:28:28]wFMCommunicate request_size=4 [11:28:28]MH_SAM_APDU [11:28:28]CAPDU: 80 13 01 00 [11:28:28]Write to MH i2c: E2 08 00 7C 74 80 13 01 00 00 00 00 00 6D [11:28:28]Write i2c OK [11:28:28]MH_I2C_Read... [11:28:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:28]Read from MH i2c: E2 [11:28:28]MH_I2C_Read... [11:28:28]Read from MH i2c: E2 0E 00 [11:28:28]MH_I2C_Read... [11:28:28]Read from MH i2c: E2 0E 00 7C 74 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 AA [11:28:28]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:28:28]wFMCommunicate OK [11:28:28]SAM_PROTO_GetShiftState done [11:28:28]FM_GetShiftState done [11:28:28]req_shift_opened done [11:28:28]requested_item shift.open_date is exist - process it [11:28:28]req_shift_open_date [11:28:28]req_shift_open_date done [11:28:28]produce_requested_data done [11:28:28]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260639,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:28:28]process_action_free close_receipt [11:28:28]json_value_free [11:28:28]json_value_free done [11:28:28]process_json_proto returns [11:28:28]Send response to host [11:28:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260639,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:28:28]free response buf [11:28:28]execute_script done [11:28:28]execute_script returns [11:28:28]free content buf [11:28:28]Sock 10.Close socket [11:28:28]Sock 10.Thread stoped [11:28:29]OFD Sender: Processing packet 260639 [packets to send 192, broken 191] [11:28:29]ProducePacketName [11:28:29]name=ofd_packets/00260639 [11:28:29]OFD Sender: To server: pG, [11:28:29]CommunicateWithHost lk.salyk.kg:30040 [11:28:29]ConnectInit lk.salyk.kg [11:28:29]Connected sock=9 [11:28: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 30 0F 01 00 00 86 B8 07 01 3A 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 DB DA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1F FA 03 00 35 04 06 00 5B 30 75 6D D5 CF 66 CB 92 C9 65 27 ED 30 [11:28:29]recv_with_timeout no data received [11:28:29]CommunicateWithHost answer receiving error [11:28:29]CommunicateWithHost err = -3 [11:28:29]OFD Sender: Server communicate error [11:28:34]OFD Sender: Processing packet 260639 [packets to send 192, broken 191] [11:28:34]ProducePacketName [11:28:34]name=ofd_packets/00260639 [11:28:34]OFD Sender: To server: pG, [11:28:34]CommunicateWithHost lk.salyk.kg:30040 [11:28:34]ConnectInit lk.salyk.kg [11:28:34]Connected sock=9 [11:28: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 30 0F 01 00 00 86 B8 07 01 3A 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 DB DA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1F FA 03 00 35 04 06 00 5B 30 75 6D D5 CF 66 CB 92 C9 65 27 ED 30 [11:28:34]recv_with_timeout no data received [11:28:34]CommunicateWithHost answer receiving error [11:28:34]CommunicateWithHost err = -3 [11:28:34]OFD Sender: Server communicate error [11:28:39]OFD Sender: Processing packet 260639 [packets to send 192, broken 191] [11:28:39]ProducePacketName [11:28:39]name=ofd_packets/00260639 [11:28:39]OFD Sender: To server: pG, [11:28:39]CommunicateWithHost lk.salyk.kg:30040 [11:28:39]ConnectInit lk.salyk.kg [11:28:39]Connected sock=9 [11:28:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 86 B8 07 01 3A 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 DB DA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1F FA 03 00 35 04 06 00 5B 30 75 6D D5 CF 66 CB 92 C9 65 27 ED 30 [11:28: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 30 4F 00 00 00 2F 87 47 00 A4 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 30 10 04 04 00 1F FA 03 00 F4 03 04 00 3F 84 C1 66 B6 04 01 00 00 D0 D9 35 A3 88 3D FD 30 [11:28:40]CommunicateWithHost err = 0 [11:28:40]CheckOFDResponse [11:28:40]1017 (14) - 77093643461234 [11:28:40]1041 (16) - 0000000000871820 [11:28:40]1040 (4) - 260639 [11:28:40]1012 (4) - 18.08.2024 05:18 [11:28:40]1206 (1) - 0 [11:28:40]OFD Sender: Remove packet 260639 [11:28:40]ProducePacketName [11:28:40]name=ofd_packets/00260639 [11:28:40]NVStorageDeleteData [11:28:40]OFD Sender: No OFD packet to send [11:28:45]OFD Sender: No OFD packet to send [11:28:50]OFD Sender: No OFD packet to send [11:28:55]OFD Sender: No OFD packet to send [11:29:00]OFD Sender: No OFD packet to send [11:29:05]OFD Sender: No OFD packet to send [11:29:10]OFD Sender: No OFD packet to send [11:29:15]OFD Sender: No OFD packet to send [11:29:20]OFD Sender: No OFD packet to send [11:29:25]OFD Sender: No OFD packet to send [11:29:30]OFD Sender: No OFD packet to send [11:29:35]OFD Sender: No OFD packet to send [11:29:40]OFD Sender: No OFD packet to send [11:29:45]OFD Sender: No OFD packet to send [11:29:50]OFD Sender: No OFD packet to send [11:29:55]OFD Sender: No OFD packet to send [11:30:00]accept exits with 7 [11:30:00]New connection [11:30:00]New thread 3066473828 created [11:30:00]Thread 3066617188 joined [11:30:00]Waiting for new connection... [11:30:00] Sock 7.Parse request [11:30:00]Sock 7.Check first char [11:30:00]Sock 7.First char is OK [11:30:00]request: POST /json_proto HTTP/1.0 [11:30:00]Method: POST [11:30:00]URL: /json_proto [11:30:00]Method is POST - this is cgi request [11:30:00]url: /json_proto [11:30:00]query_string will be loaded in cgi processing [11:30:00]execute_cgi json_proto POST (null) [11:30:00]execute_cgi path=json_proto method=POST [11:30:00]POST find Content-Length [11:30:00]Host: 172.17.55.133:8080 [11:30:00]Content-Length: 678 [11:30:00]Content-Type: application/json [11:30:00] [11:30:00]POST finish read [11:30:00]Found Content-Length = 678 [11:30:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:00]execute_script... [11:30: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)1036187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:00]POST & json_proto [11:30:00]process_json_proto [11:30:00]json parsed OK: [11:30:00]protocol is kg_v1.0 [11:30:00]action value=close_receipt [11:30:00]process_action close_receipt [11:30:00]cmd_close_receipt [11:30:00]MH_GetDate [11:30:00]Write to MH i2c: F0 00 00 7D 74 E0 [11:30:00]Write i2c OK [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: F0 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: F0 09 00 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: F0 09 00 7D 74 00 3D DB C1 66 34 48 D8 65 E1 [11:30:00]GetLastDocTimeStamp 1723980507 [11:30:00]current date 1723980605 [11:30:00]FM_GetShiftState [11:30:00]SAM_PROTO_GetShiftState [11:30:00]wFMCommunicate request_size=4 [11:30:00]MH_SAM_APDU [11:30:00]CAPDU: 80 13 01 00 [11:30:00]Write to MH i2c: E2 08 00 7E 74 80 13 01 00 00 00 00 00 6F [11:30:00]Write i2c OK [11:30:00]MH_I2C_Read... [11:30:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:00]Read from MH i2c: E2 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: E2 0E 00 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: E2 0E 00 7E 74 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 AC [11:30:00]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:30:00]wFMCommunicate OK [11:30:00]SAM_PROTO_GetShiftState done [11:30:00]FM_GetShiftState done [11:30:00]opened in 1723940556 [11:30:00]opened+sec_in_day 1724026956 [11:30:00]quantity*price = 30035 [11:30:00]sum+1 = 30036 [11:30:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 198 18.08.2024 11:30 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260640 ФПД: 1961213339044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T113005&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260640&fm=1961213339044&tin=02508201610067®Number=0000000000091865&sum=30000 [11:30:01]StoreToDocumentArchive [11:30:01]shift 449 fd 260640 [11:30:01]save to /storage/0449/doc_00260640 [11:30:01]save last doc name /storage/0449/doc_00260640 to /storage/kkm_last_doc_name [11:30:01]save OK [11:30:01]Clear old archive folders... [11:30:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:30:01]tlvbuf is 003369C0 [11:30:01]SAM_PROTO_ClearQueue [11:30:01]wFMCommunicate request_size=4 [11:30:01]MH_SAM_APDU [11:30:01]CAPDU: 80 09 00 00 [11:30:01]Write to MH i2c: E2 08 00 8B 74 80 09 00 00 00 00 00 00 71 [11:30:01]Write i2c OK [11:30:01]MH_I2C_Read... [11:30:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:01]Read from MH i2c: E2 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 03 00 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 03 00 8B 74 00 90 00 73 [11:30:01]RAPDU: 90 00 [11:30:01]wFMCommunicate OK [11:30:01]SAM_PROTO_ClearQueue done [11:30:01]KKMCreateOFDPacket [11:30:01]OFDProtocolAddRootSTLVToBuf [11:30:01]FM_MakeSignedData [11:30:01]FM_MakeSignedData [11:30:01]SAM_PROTO_SignData [11:30:01]wFMCommunicate request_size=4 [11:30:01]MH_SAM_APDU [11:30:01]CAPDU: 80 0D 01 02 [11:30:01]Write to MH i2c: E2 08 00 8C 74 80 0D 01 02 00 00 00 00 79 [11:30:01]Write i2c OK [11:30:01]MH_I2C_Read... [11:30:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:01]Read from MH i2c: E2 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 03 00 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 03 00 8C 74 00 90 00 74 [11:30:01]RAPDU: 90 00 [11:30:01]wFMCommunicate OK [11:30:01]wFMCommunicate request_size=255 [11:30:01]MH_SAM_APDU [11:30:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 3D DB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 20 FA 03 00 35 04 06 00 01 [11:30:01]Write to MH i2c: E2 02 01 8D 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 3D DB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 20 FA 03 00 35 04 06 00 01 00 00 FA [11:30:01]Write i2c OK [11:30:01]MH_I2C_Read... [11:30:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:02]Read from MH i2c: E2 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: E2 03 00 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: E2 03 00 8D 74 00 90 00 75 [11:30:02]RAPDU: 90 00 [11:30:02]wFMCommunicate OK [11:30:02]wFMCommunicate request_size=10 [11:30:02]MH_SAM_APDU [11:30:02]CAPDU: 80 0D 02 02 05 C8 A1 6C A5 A4 [11:30:02]Write to MH i2c: E2 0D 00 8E 74 80 0D 02 02 05 00 C8 A1 6C A5 A4 00 00 A4 [11:30:02]Write i2c OK [11:30:02]MH_I2C_Read... [11:30:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:02]Read from MH i2c: E2 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: E2 03 00 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: E2 03 00 8E 74 00 90 00 76 [11:30:02]RAPDU: 90 00 [11:30:02]wFMCommunicate OK [11:30:02]wFMCommunicate request_size=4 [11:30:02]MH_SAM_APDU [11:30:02]CAPDU: 80 0D 03 02 [11:30:02]Write to MH i2c: E2 08 00 8F 74 80 0D 03 02 00 00 00 00 7E [11:30:02]Write i2c OK [11:30:02]MH_I2C_Read... [11:30:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:02]Read from MH i2c: E2 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: E2 0B 00 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: E2 0B 00 8F 74 00 CC 3A 8E CA 51 54 CB B9 90 00 06 [11:30:02]RAPDU: CC 3A 8E CA 51 54 CB B9 90 00 [11:30:02]wFMCommunicate OK [11:30:02]SAM_PROTO_SignData done [11:30:02]FM_MakeSignedData done [11:30:02]CreateOFDProtocolMessage [11:30:02]wFMCommunicate request_size=4 [11:30:02]MH_SAM_APDU [11:30:02]CAPDU: 80 11 00 00 [11:30:02]Write to MH i2c: E2 08 00 90 74 80 11 00 00 00 00 00 00 7E [11:30:02]Write i2c OK [11:30:02]MH_I2C_Read... [11:30:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:02]Read from MH i2c: E2 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: E2 17 00 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: E2 17 00 90 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 CB [11:30:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:30:02]wFMCommunicate OK [11:30:02]CreateOFDProtocolMessage done [11:30:02]OFDSenderStorePacket 260640 [11:30:02]StoreOFDPacket docnum=260640 [11:30:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 15 B2 07 01 14 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 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 3D DB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 20 FA 03 00 35 04 06 00 01 C8 A1 6C A5 A4 CC 3A 8E CA 51 54 CB B9 [11:30:02]CheckFolder [11:30:02]dirname=/storage/ofd_packets [11:30:02]CheckFolder done [11:30:02]ProducePacketName [11:30:02]name=ofd_packets/00260640 [11:30:02]NVStorageSaveData ofd_packets/00260640 [11:30:02]File name is /storage/ofd_packets/00260640 [11:30:02]Write 301 bytes [11:30:02]NVStorageSaveData done [11:30:02]OFDSenderStorePacket done [11:30:02]KKMCreateOFDPacket done [11:30:02]NVStorageSaveData kkm_last_timestamp [11:30:02]File name is /storage/kkm_last_timestamp [11:30:02]Write 4 bytes [11:30:02]NVStorageSaveData done [11:30:02]ExternCall_PrintAddStr [11:30:02]wPrintStart [11:30:02]Write to MH i2c: 01 00 00 91 74 05 [11:30:02]Write i2c OK [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: 01 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: 01 07 00 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: 01 07 00 91 74 00 00 00 00 00 FF 0F 1A [11:30:02]RasterBufferAndPrint [11:30:02]line Счет N : (1)1036187 [11:30:02]line ИНН: 02508201610067 [11:30:02]line Контрольно-Кассовый Чек [11:30:02]line ПРОДАЖА [11:30:02]line ТРК (МРК, ГНК) : 12 [11:30:02]line Товар: 2710124130 [11:30:02]line Аи-92-К-5 [11:30:02]line 4.430 * 67.80 [11:30:02]line = 300.35 [11:30:02]line НДС 12% НСП 1% [11:30:02]line > о реализуемом товаре [11:30:02]line ОКРУГЛЕНИЕ: -0.35 [11:30:02]line ИТОГО: 300.00 [11:30:02]line Внесено: 300.00 [11:30:02]line СДАЧА: 0.00 [11:30:02]line НСП 1% : 2.66 [11:30:02]line НДС 12% : 31.90 [11:30:02]line Наличными: 300.00 [11:30:02]line Безнал.: 0.00 [11:30:02]line Место: АЗС № 94 "Партнер Нефть" [11:30:02]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:30:02]line СНО: Общий режим [11:30:02]line Чек 198 18.08.2024 11:30 [11:30:02]line Смена: 449 ФФД: 1.0 [11:30:02]line ЗНМ: 0300000099 [11:30:02]line РНМ: 0000000000091865 [11:30:02]line Версия ККМ: 001 [11:30:02]line ФМ: 0000000000871820 [11:30:02]line ФД: 260640 [11:30:02]line ФПД: 1961213339044 [11:30:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T113005&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260640&fm=1961213339044&tin=02508201610067®Number=0000000000091865&sum=30000 [11:30:02]written 0, free lines is 4095 [11:30:02]OFD Sender: Processing packet 260640 [packets to send 192, broken 191] [11:30:02]ProducePacketName [11:30:02]name=ofd_packets/00260640 [11:30:02]OFD Sender: To server: pG, [11:30:02]CommunicateWithHost lk.salyk.kg:30040 [11:30:02]ConnectInit lk.salyk.kg [11:30:02]Connected sock=10 [11:30:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 15 B2 07 01 14 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 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 3D DB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 20 FA 03 00 35 04 06 00 01 C8 A1 6C A5 A4 CC 3A 8E CA 51 54 CB B9 [11:30: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 30 4F 00 00 00 EE 2C 47 00 74 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 20 FA 03 00 F4 03 04 00 92 84 C1 66 B6 04 01 00 00 18 0F 72 2C E9 1B 6A 37 [11:30:02]CommunicateWithHost err = 0 [11:30:02]CheckOFDResponse [11:30:02]1017 (14) - 77093643461234 [11:30:02]1041 (16) - 0000000000871820 [11:30:02]1040 (4) - 260640 [11:30:02]1012 (4) - 18.08.2024 05:20 [11:30:02]1206 (1) - 0 [11:30:02]OFD Sender: Remove packet 260640 [11:30:02]ProducePacketName [11:30:02]name=ofd_packets/00260640 [11:30:02]NVStorageDeleteData [11:30:02]Write to MH i2c: 01 00 00 BC 74 30 [11:30:02]Write i2c OK [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: 01 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: 01 07 00 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: 01 07 00 BC 74 00 00 00 00 00 70 0C B3 [11:30:02]RasterBufferAndPrint [11:30:02]line [11:30:02]line [11:30:02]line [11:30:02]line [11:30:02]line [11:30:02]written 0, free lines is 3187 [11:30:02]MH_Cut [11:30:02]Write to MH i2c: D1 01 00 C3 74 01 09 [11:30:02]Write i2c OK [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: D1 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: D1 01 00 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: D1 01 00 C3 74 00 08 [11:30:02]Write to MH i2c: 01 00 00 C4 74 38 [11:30:02]Write i2c OK [11:30:02]MH_I2C_Read... [11:30:03]OFD Sender: No OFD packet to send [11:30:03]*** Cut start [11:30:03]*** Purtial cut [11:30:03]*** Stage 1: CUTSNS_PIN = 1 [11:30:05]Read from MH i2c: 01 [11:30:05]MH_I2C_Read... [11:30:05]*** Stop cut motor [11:30:05]*** Cut end [11:30:05]Read from MH i2c: 01 07 00 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: 01 07 00 C4 74 00 00 00 00 00 FF 0F 4D [11:30:05]process_action close_receipt done [11:30:05]requested_data is exist [11:30:05]produce_requested_data [11:30:05]requested_item fm.sn is exist - process it [11:30:05]wFMCommunicate request_size=4 [11:30:05]MH_SAM_APDU [11:30:05]CAPDU: 80 11 00 00 [11:30:05]Write to MH i2c: E2 08 00 C5 74 80 11 00 00 00 00 00 00 B3 [11:30:05]Write i2c OK [11:30:05]MH_I2C_Read... [11:30:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:06]Read from MH i2c: E2 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: E2 17 00 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: E2 17 00 C5 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 00 [11:30:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:30:06]wFMCommunicate OK [11:30:06]requested_item fd.num is exist - process it [11:30:06]SAM_PROTO_GetFieldsCounters [11:30:06]wFMCommunicate request_size=4 [11:30:06]MH_SAM_APDU [11:30:06]CAPDU: 80 13 00 00 [11:30:06]Write to MH i2c: E2 08 00 C6 74 80 13 00 00 00 00 00 00 B6 [11:30:06]Write i2c OK [11:30:06]MH_I2C_Read... [11:30:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:06]Read from MH i2c: E2 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: E2 62 00 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: E2 62 00 C6 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 20 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [11:30: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 20 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:06]wFMCommunicate OK [11:30:06]SAM_PROTO_GetFieldsCounters done [11:30:06]requested_item shift.num is exist - process it [11:30:06]requested_item shift.opened is exist - process it [11:30:06]req_shift_opened [11:30:06]FM_GetShiftState [11:30:06]SAM_PROTO_GetShiftState [11:30:06]wFMCommunicate request_size=4 [11:30:06]MH_SAM_APDU [11:30:06]CAPDU: 80 13 01 00 [11:30:06]Write to MH i2c: E2 08 00 C7 74 80 13 01 00 00 00 00 00 B8 [11:30:06]Write i2c OK [11:30:06]MH_I2C_Read... [11:30:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:06]Read from MH i2c: E2 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: E2 0E 00 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: E2 0E 00 C7 74 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F5 [11:30:06]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:30:06]wFMCommunicate OK [11:30:06]SAM_PROTO_GetShiftState done [11:30:06]FM_GetShiftState done [11:30:06]req_shift_opened done [11:30:06]requested_item shift.open_date is exist - process it [11:30:06]req_shift_open_date [11:30:06]req_shift_open_date done [11:30:06]produce_requested_data done [11:30:06]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260640,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:30:06]process_action_free close_receipt [11:30:06]json_value_free [11:30:06]json_value_free done [11:30:06]process_json_proto returns [11:30:06]Send response to host [11:30:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260640,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:30:06]free response buf [11:30:06]execute_script done [11:30:06]execute_script returns [11:30:06]free content buf [11:30:06]Sock 7.Close socket [11:30:06]Sock 7.Thread stoped [11:30:08]OFD Sender: No OFD packet to send [11:30:13]OFD Sender: No OFD packet to send [11:30:18]OFD Sender: No OFD packet to send [11:30:23]OFD Sender: No OFD packet to send [11:30:28]OFD Sender: No OFD packet to send [11:30:33]OFD Sender: No OFD packet to send [11:30:38]OFD Sender: No OFD packet to send [11:30:43]OFD Sender: No OFD packet to send [11:30:48]OFD Sender: No OFD packet to send [11:30:53]OFD Sender: No OFD packet to send [11:30:58]OFD Sender: No OFD packet to send [11:31:03]OFD Sender: No OFD packet to send [11:31:08]OFD Sender: No OFD packet to send [11:31:13]OFD Sender: No OFD packet to send [11:31:18]OFD Sender: No OFD packet to send [11:31:23]OFD Sender: No OFD packet to send [11:31:28]OFD Sender: No OFD packet to send [11:31:33]OFD Sender: No OFD packet to send [11:31:38]OFD Sender: No OFD packet to send [11:31:43]OFD Sender: No OFD packet to send [11:31:48]OFD Sender: No OFD packet to send [11:31:53]OFD Sender: No OFD packet to send [11:31:55]accept exits with 9 [11:31:55]New connection [11:31:55]New thread 3066617188 created [11:31:55]Thread 3066473828 joined [11:31:55]Waiting for new connection... [11:31:55] Sock 9.Parse request [11:31:55]Sock 9.Check first char [11:31:55]Sock 9.First char is OK [11:31:55]request: POST /json_proto HTTP/1.0 [11:31:55]Method: POST [11:31:55]URL: /json_proto [11:31:55]Method is POST - this is cgi request [11:31:55]url: /json_proto [11:31:55]query_string will be loaded in cgi processing [11:31:55]execute_cgi json_proto POST (null) [11:31:55]execute_cgi path=json_proto method=POST [11:31:55]POST find Content-Length [11:31:55]Host: 172.17.55.133:8080 [11:31:55]Content-Length: 804 [11:31:55]Content-Type: application/json [11:31:55] [11:31:55]POST finish read [11:31:55]Found Content-Length = 804 [11:31:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:55]execute_script... [11:31: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)1036188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:55]POST & json_proto [11:31:55]process_json_proto [11:31:55]json parsed OK: [11:31:55]protocol is kg_v1.0 [11:31:55]action value=close_receipt [11:31:55]process_action close_receipt [11:31:55]cmd_close_receipt [11:31:55]MH_GetDate [11:31:55]Write to MH i2c: F0 00 00 C8 74 2B [11:31:55]Write i2c OK [11:31:55]MH_I2C_Read... [11:31:55]Read from MH i2c: F0 [11:31:55]MH_I2C_Read... [11:31:55]Read from MH i2c: F0 09 00 [11:31:55]MH_I2C_Read... [11:31:55]Read from MH i2c: F0 09 00 C8 74 00 AF DB C1 66 34 48 D8 65 9E [11:31:55]GetLastDocTimeStamp 1723980605 [11:31:55]current date 1723980719 [11:31:55]FM_GetShiftState [11:31:55]SAM_PROTO_GetShiftState [11:31:55]wFMCommunicate request_size=4 [11:31:55]MH_SAM_APDU [11:31:55]CAPDU: 80 13 01 00 [11:31:55]Write to MH i2c: E2 08 00 C9 74 80 13 01 00 00 00 00 00 BA [11:31:55]Write i2c OK [11:31:55]MH_I2C_Read... [11:31:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:55]Read from MH i2c: E2 [11:31:55]MH_I2C_Read... [11:31:55]Read from MH i2c: E2 0E 00 [11:31:55]MH_I2C_Read... [11:31:55]Read from MH i2c: E2 0E 00 C9 74 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F7 [11:31:55]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:31:55]wFMCommunicate OK [11:31:55]SAM_PROTO_GetShiftState done [11:31:55]FM_GetShiftState done [11:31:55]opened in 1723940556 [11:31:55]opened+sec_in_day 1724026956 [11:31:55]quantity*price = 100005 [11:31:55]sum+1 = 100006 [11:31:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 199 18.08.2024 11:32 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260641 ФПД: 149866773147110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T113200&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260641&fm=149866773147110&tin=02508201610067®Number=0000000000091865&sum=100005 [11:31:56]StoreToDocumentArchive [11:31:56]shift 449 fd 260641 [11:31:56]save to /storage/0449/doc_00260641 [11:31:56]save last doc name /storage/0449/doc_00260641 to /storage/kkm_last_doc_name [11:31:56]save OK [11:31:56]Clear old archive folders... [11:31:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:31:56]tlvbuf is 003836E0 [11:31:56]SAM_PROTO_ClearQueue [11:31:56]wFMCommunicate request_size=4 [11:31:56]MH_SAM_APDU [11:31:56]CAPDU: 80 09 00 00 [11:31:56]Write to MH i2c: E2 08 00 D6 74 80 09 00 00 00 00 00 00 BC [11:31:56]Write i2c OK [11:31:56]MH_I2C_Read... [11:31:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:31:56]Read from MH i2c: E2 [11:31:56]MH_I2C_Read... [11:31:56]Read from MH i2c: E2 03 00 [11:31:56]MH_I2C_Read... [11:31:56]Read from MH i2c: E2 03 00 D6 74 00 90 00 BE [11:31:56]RAPDU: 90 00 [11:31:56]wFMCommunicate OK [11:31:56]SAM_PROTO_ClearQueue done [11:31:56]KKMCreateOFDPacket [11:31:56]OFDProtocolAddRootSTLVToBuf [11:31:56]FM_MakeSignedData [11:31:56]FM_MakeSignedData [11:31:56]SAM_PROTO_SignData [11:31:56]wFMCommunicate request_size=4 [11:31:56]MH_SAM_APDU [11:31:56]CAPDU: 80 0D 01 02 [11:31:56]Write to MH i2c: E2 08 00 D7 74 80 0D 01 02 00 00 00 00 C4 [11:31:56]Write i2c OK [11:31:56]MH_I2C_Read... [11:31:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:31:56]Read from MH i2c: E2 [11:31:56]MH_I2C_Read... [11:31:56]Read from MH i2c: E2 03 00 [11:31:56]MH_I2C_Read... [11:31:56]Read from MH i2c: E2 03 00 D7 74 00 90 00 BF [11:31:56]RAPDU: 90 00 [11:31:56]wFMCommunicate OK [11:31:56]wFMCommunicate request_size=255 [11:31:56]MH_SAM_APDU [11:31:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 B0 DB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 21 FA 03 00 35 04 06 00 88 [11:31:56]Write to MH i2c: E2 02 01 D8 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 B0 DB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 21 FA 03 00 35 04 06 00 88 00 00 BB [11:31:56]Write i2c OK [11:31:56]MH_I2C_Read... [11:31:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:57]Read from MH i2c: E2 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: E2 03 00 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: E2 03 00 D8 74 00 90 00 C0 [11:31:57]RAPDU: 90 00 [11:31:57]wFMCommunicate OK [11:31:57]wFMCommunicate request_size=10 [11:31:57]MH_SAM_APDU [11:31:57]CAPDU: 80 0D 02 02 05 4D 93 C6 ED E6 [11:31:57]Write to MH i2c: E2 0D 00 D9 74 80 0D 02 02 05 00 4D 93 C6 ED E6 00 00 4A [11:31:57]Write i2c OK [11:31:57]MH_I2C_Read... [11:31:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:57]Read from MH i2c: E2 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: E2 03 00 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: E2 03 00 D9 74 00 90 00 C1 [11:31:57]RAPDU: 90 00 [11:31:57]wFMCommunicate OK [11:31:57]wFMCommunicate request_size=4 [11:31:57]MH_SAM_APDU [11:31:57]CAPDU: 80 0D 03 02 [11:31:57]Write to MH i2c: E2 08 00 DA 74 80 0D 03 02 00 00 00 00 C9 [11:31:57]Write i2c OK [11:31:57]MH_I2C_Read... [11:31:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:31:57]Read from MH i2c: E2 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: E2 0B 00 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: E2 0B 00 DA 74 00 75 22 FE C1 76 B7 1F 05 90 00 71 [11:31:57]RAPDU: 75 22 FE C1 76 B7 1F 05 90 00 [11:31:57]wFMCommunicate OK [11:31:57]SAM_PROTO_SignData done [11:31:57]FM_MakeSignedData done [11:31:57]CreateOFDProtocolMessage [11:31:57]wFMCommunicate request_size=4 [11:31:57]MH_SAM_APDU [11:31:57]CAPDU: 80 11 00 00 [11:31:57]Write to MH i2c: E2 08 00 DB 74 80 11 00 00 00 00 00 00 C9 [11:31:57]Write i2c OK [11:31:57]MH_I2C_Read... [11:31:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:57]Read from MH i2c: E2 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: E2 17 00 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: E2 17 00 DB 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 16 [11:31:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:31:57]wFMCommunicate OK [11:31:57]CreateOFDProtocolMessage done [11:31:57]OFDSenderStorePacket 260641 [11:31:57]StoreOFDPacket docnum=260641 [11:31:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 F6 70 07 01 65 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 B0 DB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 21 FA 03 00 35 04 06 00 88 4D 93 C6 ED E6 75 22 FE C1 76 B7 1F 05 [11:31:57]CheckFolder [11:31:57]dirname=/storage/ofd_packets [11:31:57]CheckFolder done [11:31:57]ProducePacketName [11:31:57]name=ofd_packets/00260641 [11:31:57]NVStorageSaveData ofd_packets/00260641 [11:31:57]File name is /storage/ofd_packets/00260641 [11:31:57]Write 301 bytes [11:31:57]NVStorageSaveData done [11:31:57]OFDSenderStorePacket done [11:31:57]KKMCreateOFDPacket done [11:31:57]NVStorageSaveData kkm_last_timestamp [11:31:57]File name is /storage/kkm_last_timestamp [11:31:57]Write 4 bytes [11:31:57]NVStorageSaveData done [11:31:57]ExternCall_PrintAddStr [11:31:57]wPrintStart [11:31:57]Write to MH i2c: 01 00 00 DC 74 50 [11:31:57]Write i2c OK [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: 01 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: 01 07 00 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: 01 07 00 DC 74 00 00 00 00 00 FF 0F 65 [11:31:57]RasterBufferAndPrint [11:31:57]line Счет N : (1)1036188 [11:31:57]line ИНН: 02508201610067 [11:31:57]line Контрольно-Кассовый Чек [11:31:57]line ПРОДАЖА [11:31:57]line ТРК (МРК, ГНК) : 32 [11:31:57]line Товар: 2710124130 [11:31:57]line Аи-92-К-5 [11:31:57]line 14.750 * 67.80 [11:31:57]line = 1000.05 [11:31:57]line НДС 12% НСП 1% [11:31:57]line > о реализуемом товаре [11:31:57]line ИТОГО: 1000.05 [11:31:57]line НСП 1% : 8.85 [11:31:57]line НДС 12% : 106.20 [11:31:57]line Наличными: 0.00 [11:31:57]line Безнал.: 1000.05 [11:31:57]line Место: АЗС № 94 "Партнер Нефть" [11:31:57]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:31:57]line СНО: Общий режим [11:31:57]line Чек 199 18.08.2024 11:32 [11:31:57]line Смена: 449 ФФД: 1.0 [11:31:57]line ЗНМ: 0300000099 [11:31:57]line РНМ: 0000000000091865 [11:31:57]line Версия ККМ: 001 [11:31:57]line Платежная система: O! деньги [11:31:57]line ФМ: 0000000000871820 [11:31:57]line ФД: 260641 [11:31:57]line ФПД: 149866773147110 [11:31:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T113200&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260641&fm=149866773147110&tin=02508201610067®Number=0000000000091865&sum=100005 [11:31:57]written 0, free lines is 4095 [11:31:57]OFD Sender: Processing packet 260641 [packets to send 192, broken 191] [11:31:57]ProducePacketName [11:31:57]name=ofd_packets/00260641 [11:31:57]OFD Sender: To server: pG, [11:31:57]CommunicateWithHost lk.salyk.kg:30040 [11:31:57]ConnectInit lk.salyk.kg [11:31:57]Connected sock=10 [11:31: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 30 0F 01 00 00 F6 70 07 01 65 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 B0 DB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 21 FA 03 00 35 04 06 00 88 4D 93 C6 ED E6 75 22 FE C1 76 B7 1F 05 [11:31: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 30 4F 00 00 00 00 4F 47 00 9A 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 30 10 04 04 00 21 FA 03 00 F4 03 04 00 05 85 C1 66 B6 04 01 00 00 46 EC 09 58 61 A9 E4 BF [11:31:57]CommunicateWithHost err = 0 [11:31:57]CheckOFDResponse [11:31:57]1017 (14) - 77093643461234 [11:31:57]1041 (16) - 0000000000871820 [11:31:57]1040 (4) - 260641 [11:31:57]1012 (4) - 18.08.2024 05:22 [11:31:57]1206 (1) - 0 [11:31:57]OFD Sender: Remove packet 260641 [11:31:57]ProducePacketName [11:31:57]name=ofd_packets/00260641 [11:31:57]NVStorageDeleteData [11:31:57]Write to MH i2c: 01 00 00 06 75 7B [11:31:57]Write i2c OK [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: 01 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: 01 07 00 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: 01 07 00 06 75 00 00 00 00 00 83 0C 11 [11:31:57]RasterBufferAndPrint [11:31:57]line [11:31:57]line [11:31:57]line [11:31:57]line [11:31:57]line [11:31:57]written 0, free lines is 3208 [11:31:57]MH_Cut [11:31:57]Write to MH i2c: D1 01 00 0D 75 01 54 [11:31:57]Write i2c OK [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: D1 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: D1 01 00 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: D1 01 00 0D 75 00 53 [11:31:57]Write to MH i2c: 01 00 00 0E 75 83 [11:31:57]Write i2c OK [11:31:57]MH_I2C_Read... [11:31:58]OFD Sender: No OFD packet to send [11:31:58]*** Cut start [11:31:58]*** Purtial cut [11:31:58]*** Stage 1: CUTSNS_PIN = 1 [11:32:00]Read from MH i2c: 01 [11:32:00]MH_I2C_Read... [11:32:00]*** Stop cut motor [11:32:00]*** Cut end [11:32:00]Read from MH i2c: 01 07 00 [11:32:00]MH_I2C_Read... [11:32:00]Read from MH i2c: 01 07 00 0E 75 00 00 00 00 00 FF 0F 98 [11:32:00]process_action close_receipt done [11:32:00]requested_data is exist [11:32:00]produce_requested_data [11:32:00]requested_item fm.sn is exist - process it [11:32:00]wFMCommunicate request_size=4 [11:32:00]MH_SAM_APDU [11:32:00]CAPDU: 80 11 00 00 [11:32:00]Write to MH i2c: E2 08 00 0F 75 80 11 00 00 00 00 00 00 FE [11:32:00]Write i2c OK [11:32:00]MH_I2C_Read... [11:32:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:00]Read from MH i2c: E2 [11:32:00]MH_I2C_Read... [11:32:00]Read from MH i2c: E2 17 00 [11:32:00]MH_I2C_Read... [11:32:00]Read from MH i2c: E2 17 00 0F 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 4B [11:32:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:32:00]wFMCommunicate OK [11:32:00]requested_item fd.num is exist - process it [11:32:00]SAM_PROTO_GetFieldsCounters [11:32:00]wFMCommunicate request_size=4 [11:32:00]MH_SAM_APDU [11:32:00]CAPDU: 80 13 00 00 [11:32:00]Write to MH i2c: E2 08 00 10 75 80 13 00 00 00 00 00 00 01 [11:32:00]Write i2c OK [11:32:00]MH_I2C_Read... [11:32:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:01]Read from MH i2c: E2 [11:32:01]MH_I2C_Read... [11:32:01]Read from MH i2c: E2 62 00 [11:32:01]MH_I2C_Read... [11:32:01]Read from MH i2c: E2 62 00 10 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 21 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [11:32: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 21 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:32:01]wFMCommunicate OK [11:32:01]SAM_PROTO_GetFieldsCounters done [11:32:01]requested_item shift.num is exist - process it [11:32:01]requested_item shift.opened is exist - process it [11:32:01]req_shift_opened [11:32:01]FM_GetShiftState [11:32:01]SAM_PROTO_GetShiftState [11:32:01]wFMCommunicate request_size=4 [11:32:01]MH_SAM_APDU [11:32:01]CAPDU: 80 13 01 00 [11:32:01]Write to MH i2c: E2 08 00 11 75 80 13 01 00 00 00 00 00 03 [11:32:01]Write i2c OK [11:32:01]MH_I2C_Read... [11:32:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:01]Read from MH i2c: E2 [11:32:01]MH_I2C_Read... [11:32:01]Read from MH i2c: E2 0E 00 [11:32:01]MH_I2C_Read... [11:32:01]Read from MH i2c: E2 0E 00 11 75 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 40 [11:32:01]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:32:01]wFMCommunicate OK [11:32:01]SAM_PROTO_GetShiftState done [11:32:01]FM_GetShiftState done [11:32:01]req_shift_opened done [11:32:01]requested_item shift.open_date is exist - process it [11:32:01]req_shift_open_date [11:32:01]req_shift_open_date done [11:32:01]produce_requested_data done [11:32:01]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260641,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:32:01]process_action_free close_receipt [11:32:01]json_value_free [11:32:01]json_value_free done [11:32:01]process_json_proto returns [11:32:01]Send response to host [11:32:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260641,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:32:01]free response buf [11:32:01]execute_script done [11:32:01]execute_script returns [11:32:01]free content buf [11:32:01]Sock 9.Close socket [11:32:01]Sock 9.Thread stoped [11:32:03]OFD Sender: No OFD packet to send [11:32:08]OFD Sender: No OFD packet to send [11:32:13]OFD Sender: No OFD packet to send [11:32:18]OFD Sender: No OFD packet to send [11:32:23]OFD Sender: No OFD packet to send [11:32:28]OFD Sender: No OFD packet to send [11:32:33]OFD Sender: No OFD packet to send [11:32:38]OFD Sender: No OFD packet to send [11:32:43]OFD Sender: No OFD packet to send [11:32:48]OFD Sender: No OFD packet to send [11:32:53]OFD Sender: No OFD packet to send [11:32:58]OFD Sender: No OFD packet to send [11:33:03]OFD Sender: No OFD packet to send [11:33:08]OFD Sender: No OFD packet to send [11:33:13]OFD Sender: No OFD packet to send [11:33:18]OFD Sender: No OFD packet to send [11:33:23]OFD Sender: No OFD packet to send [11:33:28]OFD Sender: No OFD packet to send [11:33:33]OFD Sender: No OFD packet to send [11:33:38]OFD Sender: No OFD packet to send [11:33:43]OFD Sender: No OFD packet to send [11:33:48]OFD Sender: No OFD packet to send [11:33:53]OFD Sender: No OFD packet to send [11:33:58]OFD Sender: No OFD packet to send [11:34:03]OFD Sender: No OFD packet to send [11:34:08]OFD Sender: No OFD packet to send [11:34:13]OFD Sender: No OFD packet to send [11:34:18]OFD Sender: No OFD packet to send [11:34:23]OFD Sender: No OFD packet to send [11:34:28]OFD Sender: No OFD packet to send [11:34:33]OFD Sender: No OFD packet to send [11:34:38]OFD Sender: No OFD packet to send [11:34:43]OFD Sender: No OFD packet to send [11:34:48]accept exits with 7 [11:34:48]New connection [11:34:48]New thread 3066473828 created [11:34:48]Thread 3066617188 joined [11:34:48]Waiting for new connection... [11:34:48] Sock 7.Parse request [11:34:48]Sock 7.Check first char [11:34:48]Sock 7.First char is OK [11:34:48]request: POST /json_proto HTTP/1.0 [11:34:48]Method: POST [11:34:48]URL: /json_proto [11:34:48]Method is POST - this is cgi request [11:34:48]url: /json_proto [11:34:48]query_string will be loaded in cgi processing [11:34:48]execute_cgi json_proto POST (null) [11:34:48]execute_cgi path=json_proto method=POST [11:34:48]POST find Content-Length [11:34:48]Host: 172.17.55.133:8080 [11:34:48]Content-Length: 679 [11:34:48]Content-Type: application/json [11:34:48] [11:34:48]POST finish read [11:34:48]Found Content-Length = 679 [11:34:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036189", "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" : 74.20, "quantity" : 10.790, "sum" : 800.62, "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" ] } } [11:34:48]execute_script... [11:34: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)1036189", "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" : 74.20, "quantity" : 10.790, "sum" : 800.62, "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" ] } } [11:34:48]POST & json_proto [11:34:48]process_json_proto [11:34:48]json parsed OK: [11:34:48]protocol is kg_v1.0 [11:34:48]action value=close_receipt [11:34:48]process_action close_receipt [11:34:48]cmd_close_receipt [11:34:48]MH_GetDate [11:34:48]Write to MH i2c: F0 00 00 12 75 76 [11:34:48]Write i2c OK [11:34:48]MH_I2C_Read... [11:34:48]Read from MH i2c: F0 [11:34:48]MH_I2C_Read... [11:34:48]Read from MH i2c: F0 09 00 [11:34:48]MH_I2C_Read... [11:34:48]Read from MH i2c: F0 09 00 12 75 00 5C DC C1 66 34 48 D8 65 97 [11:34:48]GetLastDocTimeStamp 1723980720 [11:34:48]current date 1723980892 [11:34:48]FM_GetShiftState [11:34:48]SAM_PROTO_GetShiftState [11:34:48]wFMCommunicate request_size=4 [11:34:48]MH_SAM_APDU [11:34:48]CAPDU: 80 13 01 00 [11:34:48]Write to MH i2c: E2 08 00 13 75 80 13 01 00 00 00 00 00 05 [11:34:48]Write i2c OK [11:34:48]MH_I2C_Read... [11:34:48]OFD Sender: No OFD packet to send [11:34:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:48]Read from MH i2c: E2 [11:34:48]MH_I2C_Read... [11:34:48]Read from MH i2c: E2 0E 00 [11:34:48]MH_I2C_Read... [11:34:48]Read from MH i2c: E2 0E 00 13 75 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 42 [11:34:48]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:34:48]wFMCommunicate OK [11:34:48]SAM_PROTO_GetShiftState done [11:34:48]FM_GetShiftState done [11:34:48]opened in 1723940556 [11:34:48]opened+sec_in_day 1724026956 [11:34:48]quantity*price = 80061 [11:34:48]sum+1 = 80063 [11:34:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 200 18.08.2024 11:34 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260642 ФПД: 246253450821911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T113452&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260642&fm=246253450821911&tin=02508201610067®Number=0000000000091865&sum=80000 [11:34:49]StoreToDocumentArchive [11:34:49]shift 449 fd 260642 [11:34:49]save to /storage/0449/doc_00260642 [11:34:49]save last doc name /storage/0449/doc_00260642 to /storage/kkm_last_doc_name [11:34:49]save OK [11:34:49]Clear old archive folders... [11:34:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:34:49]tlvbuf is 004A2650 [11:34:49]SAM_PROTO_ClearQueue [11:34:49]wFMCommunicate request_size=4 [11:34:49]MH_SAM_APDU [11:34:49]CAPDU: 80 09 00 00 [11:34:49]Write to MH i2c: E2 08 00 20 75 80 09 00 00 00 00 00 00 07 [11:34:49]Write i2c OK [11:34:49]MH_I2C_Read... [11:34:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:34:49]Read from MH i2c: E2 [11:34:49]MH_I2C_Read... [11:34:49]Read from MH i2c: E2 03 00 [11:34:49]MH_I2C_Read... [11:34:49]Read from MH i2c: E2 03 00 20 75 00 90 00 09 [11:34:49]RAPDU: 90 00 [11:34:49]wFMCommunicate OK [11:34:49]SAM_PROTO_ClearQueue done [11:34:49]KKMCreateOFDPacket [11:34:49]OFDProtocolAddRootSTLVToBuf [11:34:49]FM_MakeSignedData [11:34:49]FM_MakeSignedData [11:34:49]SAM_PROTO_SignData [11:34:49]wFMCommunicate request_size=4 [11:34:49]MH_SAM_APDU [11:34:49]CAPDU: 80 0D 01 02 [11:34:49]Write to MH i2c: E2 08 00 21 75 80 0D 01 02 00 00 00 00 0F [11:34:49]Write i2c OK [11:34:49]MH_I2C_Read... [11:34:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:34:49]Read from MH i2c: E2 [11:34:49]MH_I2C_Read... [11:34:49]Read from MH i2c: E2 03 00 [11:34:49]MH_I2C_Read... [11:34:49]Read from MH i2c: E2 03 00 21 75 00 90 00 0A [11:34:49]RAPDU: 90 00 [11:34:49]wFMCommunicate OK [11:34:49]wFMCommunicate request_size=255 [11:34:49]MH_SAM_APDU [11:34:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 C8 00 00 00 F4 03 04 00 5C DC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 22 FA 03 00 35 04 06 00 DF [11:34:49]Write to MH i2c: E2 02 01 22 75 80 0D 02 02 FA 00 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 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 C8 00 00 00 F4 03 04 00 5C DC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 22 FA 03 00 35 04 06 00 DF 00 00 F0 [11:34:49]Write i2c OK [11:34:49]MH_I2C_Read... [11:34:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:49]Read from MH i2c: E2 [11:34:49]MH_I2C_Read... [11:34:49]Read from MH i2c: E2 03 00 [11:34:49]MH_I2C_Read... [11:34:49]Read from MH i2c: E2 03 00 22 75 00 90 00 0B [11:34:49]RAPDU: 90 00 [11:34:49]wFMCommunicate OK [11:34:49]wFMCommunicate request_size=10 [11:34:49]MH_SAM_APDU [11:34:49]CAPDU: 80 0D 02 02 05 F7 59 76 01 17 [11:34:49]Write to MH i2c: E2 0D 00 23 75 80 0D 02 02 05 00 F7 59 76 01 17 00 00 FA [11:34:49]Write i2c OK [11:34:49]MH_I2C_Read... [11:34:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:49]Read from MH i2c: E2 [11:34:49]MH_I2C_Read... [11:34:49]Read from MH i2c: E2 03 00 [11:34:49]MH_I2C_Read... [11:34:49]Read from MH i2c: E2 03 00 23 75 00 90 00 0C [11:34:49]RAPDU: 90 00 [11:34:49]wFMCommunicate OK [11:34:49]wFMCommunicate request_size=4 [11:34:49]MH_SAM_APDU [11:34:49]CAPDU: 80 0D 03 02 [11:34:49]Write to MH i2c: E2 08 00 24 75 80 0D 03 02 00 00 00 00 14 [11:34:49]Write i2c OK [11:34:49]MH_I2C_Read... [11:34:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:34:49]Read from MH i2c: E2 [11:34:49]MH_I2C_Read... [11:34:49]Read from MH i2c: E2 0B 00 [11:34:49]MH_I2C_Read... [11:34:49]Read from MH i2c: E2 0B 00 24 75 00 64 7F 14 4C EF 41 DF BD 90 00 24 [11:34:49]RAPDU: 64 7F 14 4C EF 41 DF BD 90 00 [11:34:49]wFMCommunicate OK [11:34:49]SAM_PROTO_SignData done [11:34:49]FM_MakeSignedData done [11:34:49]CreateOFDProtocolMessage [11:34:49]wFMCommunicate request_size=4 [11:34:49]MH_SAM_APDU [11:34:49]CAPDU: 80 11 00 00 [11:34:49]Write to MH i2c: E2 08 00 25 75 80 11 00 00 00 00 00 00 14 [11:34:49]Write i2c OK [11:34:49]MH_I2C_Read... [11:34:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:49]Read from MH i2c: E2 [11:34:50]MH_I2C_Read... [11:34:50]Read from MH i2c: E2 17 00 [11:34:50]MH_I2C_Read... [11:34:50]Read from MH i2c: E2 17 00 25 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 61 [11:34:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:34:50]wFMCommunicate OK [11:34:50]CreateOFDProtocolMessage done [11:34:50]OFDSenderStorePacket 260642 [11:34:50]StoreOFDPacket docnum=260642 [11: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 30 0F 01 00 00 5A EC 07 01 BC 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 C8 00 00 00 F4 03 04 00 5C DC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 22 FA 03 00 35 04 06 00 DF F7 59 76 01 17 64 7F 14 4C EF 41 DF BD [11:34:50]CheckFolder [11:34:50]dirname=/storage/ofd_packets [11:34:50]CheckFolder done [11:34:50]ProducePacketName [11:34:50]name=ofd_packets/00260642 [11:34:50]NVStorageSaveData ofd_packets/00260642 [11:34:50]File name is /storage/ofd_packets/00260642 [11:34:50]Write 301 bytes [11:34:50]NVStorageSaveData done [11:34:50]OFDSenderStorePacket done [11:34:50]KKMCreateOFDPacket done [11:34:50]NVStorageSaveData kkm_last_timestamp [11:34:50]File name is /storage/kkm_last_timestamp [11:34:50]Write 4 bytes [11:34:50]NVStorageSaveData done [11:34:50]ExternCall_PrintAddStr [11:34:50]wPrintStart [11:34:50]Write to MH i2c: 01 00 00 26 75 9B [11:34:50]Write i2c OK [11:34:50]MH_I2C_Read... [11:34:50]Read from MH i2c: 01 [11:34:50]MH_I2C_Read... [11:34:50]Read from MH i2c: 01 07 00 [11:34:50]MH_I2C_Read... [11:34:50]Read from MH i2c: 01 07 00 26 75 00 00 00 00 00 FF 0F B0 [11:34:50]RasterBufferAndPrint [11:34:50]line Счет N : (1)1036189 [11:34:50]line ИНН: 02508201610067 [11:34:50]line Контрольно-Кассовый Чек [11:34:50]line ПРОДАЖА [11:34:50]line ТРК (МРК, ГНК) : 23 [11:34:50]line Товар: 2710124500 [11:34:50]line Аи-95-К-5 [11:34:50]line 10.790 * 74.20 [11:34:50]line = 800.62 [11:34:50]line НДС 12% НСП 1% [11:34:50]line > о реализуемом товаре [11:34:50]line ОКРУГЛЕНИЕ: -0.62 [11:34:50]line ИТОГО: 800.00 [11:34:50]line Внесено: 800.00 [11:34:50]line СДАЧА: 0.00 [11:34:50]line НСП 1% : 7.08 [11:34:50]line НДС 12% : 85.02 [11:34:50]line Наличными: 800.00 [11:34:50]line Безнал.: 0.00 [11:34:50]line Место: АЗС № 94 "Партнер Нефть" [11:34:50]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:34:50]line СНО: Общий режим [11:34:50]line Чек 200 18.08.2024 11:34 [11:34:50]line Смена: 449 ФФД: 1.0 [11:34:50]line ЗНМ: 0300000099 [11:34:50]line РНМ: 0000000000091865 [11:34:50]line Версия ККМ: 001 [11:34:50]line ФМ: 0000000000871820 [11:34:50]line ФД: 260642 [11:34:50]line ФПД: 246253450821911 [11:34:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T113452&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260642&fm=246253450821911&tin=02508201610067®Number=0000000000091865&sum=80000 [11:34:50]written 0, free lines is 4095 [11:34:50]OFD Sender: Processing packet 260642 [packets to send 192, broken 191] [11:34:50]ProducePacketName [11:34:50]name=ofd_packets/00260642 [11:34:50]OFD Sender: To server: pG, [11:34:50]CommunicateWithHost lk.salyk.kg:30040 [11:34:50]ConnectInit lk.salyk.kg [11:34:50]Connected sock=10 [11:34: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 30 0F 01 00 00 5A EC 07 01 BC 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 C8 00 00 00 F4 03 04 00 5C DC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 22 FA 03 00 35 04 06 00 DF F7 59 76 01 17 64 7F 14 4C EF 41 DF BD [11:34: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 30 4F 00 00 00 FE 72 47 00 CD 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 30 10 04 04 00 22 FA 03 00 F4 03 04 00 B2 85 C1 66 B6 04 01 00 00 6E 05 14 B0 53 43 30 9A [11:34:50]CommunicateWithHost err = 0 [11:34:50]CheckOFDResponse [11:34:50]1017 (14) - 77093643461234 [11:34:50]1041 (16) - 0000000000871820 [11:34:50]1040 (4) - 260642 [11:34:50]1012 (4) - 18.08.2024 05:25 [11:34:50]1206 (1) - 0 [11:34:50]OFD Sender: Remove packet 260642 [11:34:50]ProducePacketName [11:34:50]name=ofd_packets/00260642 [11:34:50]NVStorageDeleteData [11:34:50]Write to MH i2c: 01 00 00 51 75 C6 [11:34:50]Write i2c OK [11:34:50]MH_I2C_Read... [11:34:50]Read from MH i2c: 01 [11:34:50]MH_I2C_Read... [11:34:50]Read from MH i2c: 01 07 00 [11:34:50]MH_I2C_Read... [11:34:50]Read from MH i2c: 01 07 00 51 75 00 00 00 00 00 69 0C 42 [11:34:50]RasterBufferAndPrint [11:34:50]line [11:34:50]line [11:34:50]line [11:34:50]line [11:34:50]line [11:34:50]written 0, free lines is 3181 [11:34:50]MH_Cut [11:34:50]Write to MH i2c: D1 01 00 58 75 01 9F [11:34:50]Write i2c OK [11:34:50]MH_I2C_Read... [11:34:50]Read from MH i2c: D1 [11:34:50]MH_I2C_Read... [11:34:50]Read from MH i2c: D1 01 00 [11:34:50]MH_I2C_Read... [11:34:50]Read from MH i2c: D1 01 00 58 75 00 9E [11:34:50]Write to MH i2c: 01 00 00 59 75 CE [11:34:50]Write i2c OK [11:34:50]MH_I2C_Read... [11:34:51]OFD Sender: No OFD packet to send [11:34:51]*** Cut start [11:34:51]*** Purtial cut [11:34:51]*** Stage 1: CUTSNS_PIN = 1 [11:34:53]Read from MH i2c: 01 [11:34:53]MH_I2C_Read... [11:34:53]*** Stop cut motor [11:34:53]*** Cut end [11:34:53]Read from MH i2c: 01 07 00 [11:34:53]MH_I2C_Read... [11:34:53]Read from MH i2c: 01 07 00 59 75 00 00 00 00 00 FF 0F E3 [11:34:53]process_action close_receipt done [11:34:53]requested_data is exist [11:34:53]produce_requested_data [11:34:53]requested_item fm.sn is exist - process it [11:34:53]wFMCommunicate request_size=4 [11:34:53]MH_SAM_APDU [11:34:53]CAPDU: 80 11 00 00 [11:34:53]Write to MH i2c: E2 08 00 5A 75 80 11 00 00 00 00 00 00 49 [11:34:53]Write i2c OK [11:34:53]MH_I2C_Read... [11:34:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:54]Read from MH i2c: E2 [11:34:54]MH_I2C_Read... [11:34:54]Read from MH i2c: E2 17 00 [11:34:54]MH_I2C_Read... [11:34:54]Read from MH i2c: E2 17 00 5A 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 96 [11:34:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:34:54]wFMCommunicate OK [11:34:54]requested_item fd.num is exist - process it [11:34:54]SAM_PROTO_GetFieldsCounters [11:34:54]wFMCommunicate request_size=4 [11:34:54]MH_SAM_APDU [11:34:54]CAPDU: 80 13 00 00 [11:34:54]Write to MH i2c: E2 08 00 5B 75 80 13 00 00 00 00 00 00 4C [11:34:54]Write i2c OK [11:34:54]MH_I2C_Read... [11:34:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:34:54]Read from MH i2c: E2 [11:34:54]MH_I2C_Read... [11:34:54]Read from MH i2c: E2 62 00 [11:34:54]MH_I2C_Read... [11:34:54]Read from MH i2c: E2 62 00 5B 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 22 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [11:34: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 22 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:34:54]wFMCommunicate OK [11:34:54]SAM_PROTO_GetFieldsCounters done [11:34:54]requested_item shift.num is exist - process it [11:34:54]requested_item shift.opened is exist - process it [11:34:54]req_shift_opened [11:34:54]FM_GetShiftState [11:34:54]SAM_PROTO_GetShiftState [11:34:54]wFMCommunicate request_size=4 [11:34:54]MH_SAM_APDU [11:34:54]CAPDU: 80 13 01 00 [11:34:54]Write to MH i2c: E2 08 00 5C 75 80 13 01 00 00 00 00 00 4E [11:34:54]Write i2c OK [11:34:54]MH_I2C_Read... [11:34:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:54]Read from MH i2c: E2 [11:34:54]MH_I2C_Read... [11:34:54]Read from MH i2c: E2 0E 00 [11:34:54]MH_I2C_Read... [11:34:54]Read from MH i2c: E2 0E 00 5C 75 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 8B [11:34:54]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:34:54]wFMCommunicate OK [11:34:54]SAM_PROTO_GetShiftState done [11:34:54]FM_GetShiftState done [11:34:54]req_shift_opened done [11:34:54]requested_item shift.open_date is exist - process it [11:34:54]req_shift_open_date [11:34:54]req_shift_open_date done [11:34:54]produce_requested_data done [11:34:54]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260642,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:34:54]process_action_free close_receipt [11:34:54]json_value_free [11:34:54]json_value_free done [11:34:54]process_json_proto returns [11:34:54]Send response to host [11:34:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260642,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:34:54]free response buf [11:34:54]execute_script done [11:34:54]execute_script returns [11:34:54]free content buf [11:34:54]Sock 7.Close socket [11:34:54]Sock 7.Thread stoped [11:34:56]OFD Sender: No OFD packet to send [11:35:01]OFD Sender: No OFD packet to send [11:35:06]OFD Sender: No OFD packet to send [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:23]accept exits with 9 [11:36:23]New connection [11:36:23]New thread 3066617188 created [11:36:23]Thread 3066473828 joined [11:36:23]Waiting for new connection... [11:36:23] Sock 9.Parse request [11:36:23]Sock 9.Check first char [11:36:23]Sock 9.First char is OK [11:36:23]request: POST /json_proto HTTP/1.0 [11:36:23]Method: POST [11:36:23]URL: /json_proto [11:36:23]Method is POST - this is cgi request [11:36:23]url: /json_proto [11:36:23]query_string will be loaded in cgi processing [11:36:23]execute_cgi json_proto POST (null) [11:36:23]execute_cgi path=json_proto method=POST [11:36:23]POST find Content-Length [11:36:23]Host: 172.17.55.133:8080 [11:36:23]Content-Length: 678 [11:36:23]Content-Type: application/json [11:36:23] [11:36:23]POST finish read [11:36:23]Found Content-Length = 678 [11:36:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "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" ] } } [11:36:23]execute_script... [11:36: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)1036190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "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" ] } } [11:36:23]POST & json_proto [11:36:23]process_json_proto [11:36:23]json parsed OK: [11:36:23]protocol is kg_v1.0 [11:36:23]action value=close_receipt [11:36:23]process_action close_receipt [11:36:23]cmd_close_receipt [11:36:23]MH_GetDate [11:36:23]Write to MH i2c: F0 00 00 5D 75 C1 [11:36:23]Write i2c OK [11:36:23]MH_I2C_Read... [11:36:23]Read from MH i2c: F0 [11:36:23]MH_I2C_Read... [11:36:23]Read from MH i2c: F0 09 00 [11:36:23]MH_I2C_Read... [11:36:23]Read from MH i2c: F0 09 00 5D 75 00 BC DC C1 66 34 48 D8 65 42 [11:36:23]GetLastDocTimeStamp 1723980892 [11:36:23]current date 1723980988 [11:36:23]FM_GetShiftState [11:36:23]SAM_PROTO_GetShiftState [11:36:23]wFMCommunicate request_size=4 [11:36:23]MH_SAM_APDU [11:36:23]CAPDU: 80 13 01 00 [11:36:23]Write to MH i2c: E2 08 00 5E 75 80 13 01 00 00 00 00 00 50 [11:36:23]Write i2c OK [11:36:23]MH_I2C_Read... [11:36:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:23]Read from MH i2c: E2 [11:36:23]MH_I2C_Read... [11:36:23]Read from MH i2c: E2 0E 00 [11:36:23]MH_I2C_Read... [11:36:23]Read from MH i2c: E2 0E 00 5E 75 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 8D [11:36:23]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:36:23]wFMCommunicate OK [11:36:23]SAM_PROTO_GetShiftState done [11:36:23]FM_GetShiftState done [11:36:23]opened in 1723940556 [11:36:23]opened+sec_in_day 1724026956 [11:36:23]quantity*price = 35052 [11:36:23]sum+1 = 35054 [11:36:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 201 18.08.2024 11:36 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260643 ФПД: 224123275101827 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T113628&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260643&fm=224123275101827&tin=02508201610067®Number=0000000000091865&sum=35000 [11:36:25]StoreToDocumentArchive [11:36:25]shift 449 fd 260643 [11:36:25]save to /storage/0449/doc_00260643 [11:36:25]save last doc name /storage/0449/doc_00260643 to /storage/kkm_last_doc_name [11:36:25]save OK [11:36:25]Clear old archive folders... [11:36:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:36:25]tlvbuf is 004A21C0 [11:36:25]SAM_PROTO_ClearQueue [11:36:25]wFMCommunicate request_size=4 [11:36:25]MH_SAM_APDU [11:36:25]CAPDU: 80 09 00 00 [11:36:25]Write to MH i2c: E2 08 00 6B 75 80 09 00 00 00 00 00 00 52 [11:36:25]Write i2c OK [11:36:25]MH_I2C_Read... [11:36:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:25]Read from MH i2c: E2 [11:36:25]MH_I2C_Read... [11:36:25]Read from MH i2c: E2 03 00 [11:36:25]MH_I2C_Read... [11:36:25]Read from MH i2c: E2 03 00 6B 75 00 90 00 54 [11:36:25]RAPDU: 90 00 [11:36:25]wFMCommunicate OK [11:36:25]SAM_PROTO_ClearQueue done [11:36:25]KKMCreateOFDPacket [11:36:25]OFDProtocolAddRootSTLVToBuf [11:36:25]FM_MakeSignedData [11:36:25]FM_MakeSignedData [11:36:25]SAM_PROTO_SignData [11:36:25]wFMCommunicate request_size=4 [11:36:25]MH_SAM_APDU [11:36:25]CAPDU: 80 0D 01 02 [11:36:25]Write to MH i2c: E2 08 00 6C 75 80 0D 01 02 00 00 00 00 5A [11:36:25]Write i2c OK [11:36:25]MH_I2C_Read... [11:36:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:25]Read from MH i2c: E2 [11:36:25]MH_I2C_Read... [11:36:25]Read from MH i2c: E2 03 00 [11:36:25]MH_I2C_Read... [11:36:25]Read from MH i2c: E2 03 00 6C 75 00 90 00 55 [11:36:25]RAPDU: 90 00 [11:36:25]wFMCommunicate OK [11:36:25]wFMCommunicate request_size=255 [11:36:25]MH_SAM_APDU [11:36:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 C9 00 00 00 F4 03 04 00 BC DC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 23 FA 03 00 35 04 06 00 CB [11:36:25]Write to MH i2c: E2 02 01 6D 75 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 C9 00 00 00 F4 03 04 00 BC DC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 23 FA 03 00 35 04 06 00 CB 00 00 37 [11:36:25]Write i2c OK [11:36:25]MH_I2C_Read... [11:36:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:25]Read from MH i2c: E2 [11:36:25]MH_I2C_Read... [11:36:25]Read from MH i2c: E2 03 00 [11:36:25]MH_I2C_Read... [11:36:25]Read from MH i2c: E2 03 00 6D 75 00 90 00 56 [11:36:25]RAPDU: 90 00 [11:36:25]wFMCommunicate OK [11:36:25]wFMCommunicate request_size=10 [11:36:25]MH_SAM_APDU [11:36:25]CAPDU: 80 0D 02 02 05 D6 C4 32 C6 83 [11:36:25]Write to MH i2c: E2 0D 00 6E 75 80 0D 02 02 05 00 D6 C4 32 C6 83 00 00 7C [11:36:25]Write i2c OK [11:36:25]MH_I2C_Read... [11:36:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:25]Read from MH i2c: E2 [11:36:25]MH_I2C_Read... [11:36:25]Read from MH i2c: E2 03 00 [11:36:25]MH_I2C_Read... [11:36:25]Read from MH i2c: E2 03 00 6E 75 00 90 00 57 [11:36:25]RAPDU: 90 00 [11:36:25]wFMCommunicate OK [11:36:25]wFMCommunicate request_size=4 [11:36:25]MH_SAM_APDU [11:36:25]CAPDU: 80 0D 03 02 [11:36:25]Write to MH i2c: E2 08 00 6F 75 80 0D 03 02 00 00 00 00 5F [11:36:25]Write i2c OK [11:36:25]MH_I2C_Read... [11:36:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:25]Read from MH i2c: E2 [11:36:25]MH_I2C_Read... [11:36:25]Read from MH i2c: E2 0B 00 [11:36:25]MH_I2C_Read... [11:36:25]Read from MH i2c: E2 0B 00 6F 75 00 A9 DE 77 F2 04 1D 7C 45 90 00 32 [11:36:25]RAPDU: A9 DE 77 F2 04 1D 7C 45 90 00 [11:36:25]wFMCommunicate OK [11:36:25]SAM_PROTO_SignData done [11:36:25]FM_MakeSignedData done [11:36:25]CreateOFDProtocolMessage [11:36:25]wFMCommunicate request_size=4 [11:36:25]MH_SAM_APDU [11:36:25]CAPDU: 80 11 00 00 [11:36:25]Write to MH i2c: E2 08 00 70 75 80 11 00 00 00 00 00 00 5F [11:36:25]Write i2c OK [11:36:25]MH_I2C_Read... [11:36:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:25]Read from MH i2c: E2 [11:36:25]MH_I2C_Read... [11:36:25]Read from MH i2c: E2 17 00 [11:36:25]MH_I2C_Read... [11:36:25]Read from MH i2c: E2 17 00 70 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 AC [11:36:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:36:25]wFMCommunicate OK [11:36:25]CreateOFDProtocolMessage done [11:36:25]OFDSenderStorePacket 260643 [11:36:25]StoreOFDPacket docnum=260643 [11:36:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 AC 08 07 01 EC 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 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 C9 00 00 00 F4 03 04 00 BC DC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 23 FA 03 00 35 04 06 00 CB D6 C4 32 C6 83 A9 DE 77 F2 04 1D 7C 45 [11:36:25]CheckFolder [11:36:25]dirname=/storage/ofd_packets [11:36:25]CheckFolder done [11:36:25]ProducePacketName [11:36:25]name=ofd_packets/00260643 [11:36:25]NVStorageSaveData ofd_packets/00260643 [11:36:25]File name is /storage/ofd_packets/00260643 [11:36:25]Write 301 bytes [11:36:25]NVStorageSaveData done [11:36:25]OFDSenderStorePacket done [11:36:25]KKMCreateOFDPacket done [11:36:25]NVStorageSaveData kkm_last_timestamp [11:36:25]File name is /storage/kkm_last_timestamp [11:36:25]Write 4 bytes [11:36:25]NVStorageSaveData done [11:36:25]ExternCall_PrintAddStr [11:36:25]wPrintStart [11:36:25]Write to MH i2c: 01 00 00 71 75 E6 [11:36:25]Write i2c OK [11:36:25]MH_I2C_Read... [11:36:25]Read from MH i2c: 01 [11:36:25]MH_I2C_Read... [11:36:25]Read from MH i2c: 01 07 00 [11:36:25]MH_I2C_Read... [11:36:25]Read from MH i2c: 01 07 00 71 75 00 00 00 00 00 FF 0F FB [11:36:25]RasterBufferAndPrint [11:36:25]line Счет N : (1)1036190 [11:36:25]line ИНН: 02508201610067 [11:36:25]line Контрольно-Кассовый Чек [11:36:25]line ПРОДАЖА [11:36:25]line ТРК (МРК, ГНК) : 42 [11:36:25]line Товар: 2710124130 [11:36:25]line Аи-92-К-5 [11:36:25]line 5.170 * 67.80 [11:36:25]line = 350.53 [11:36:25]line НДС 12% НСП 1% [11:36:25]line > о реализуемом товаре [11:36:25]line ОКРУГЛЕНИЕ: -0.53 [11:36:25]line ИТОГО: 350.00 [11:36:25]line Внесено: 350.00 [11:36:25]line СДАЧА: 0.00 [11:36:25]line НСП 1% : 3.10 [11:36:25]line НДС 12% : 37.22 [11:36:25]line Наличными: 350.00 [11:36:25]line Безнал.: 0.00 [11:36:25]line Место: АЗС № 94 "Партнер Нефть" [11:36:25]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:36:25]line СНО: Общий режим [11:36:25]line Чек 201 18.08.2024 11:36 [11:36:25]line Смена: 449 ФФД: 1.0 [11:36:25]line ЗНМ: 0300000099 [11:36:25]line РНМ: 0000000000091865 [11:36:25]line Версия ККМ: 001 [11:36:25]line ФМ: 0000000000871820 [11:36:25]line ФД: 260643 [11:36:25]line ФПД: 224123275101827 [11:36:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T113628&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260643&fm=224123275101827&tin=02508201610067®Number=0000000000091865&sum=35000 [11:36:25]written 0, free lines is 4095 [11:36:25]OFD Sender: Processing packet 260643 [packets to send 192, broken 191] [11:36:25]ProducePacketName [11:36:25]name=ofd_packets/00260643 [11:36:25]OFD Sender: To server: pG, [11:36:25]CommunicateWithHost lk.salyk.kg:30040 [11:36:25]ConnectInit lk.salyk.kg [11:36:25]Connected sock=10 [11:36: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 30 0F 01 00 00 AC 08 07 01 EC 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 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 C9 00 00 00 F4 03 04 00 BC DC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 23 FA 03 00 35 04 06 00 CB D6 C4 32 C6 83 A9 DE 77 F2 04 1D 7C 45 [11:36: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 30 4F 00 00 00 50 E6 47 00 35 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 23 FA 03 00 F4 03 04 00 11 86 C1 66 B6 04 01 00 00 1D A5 09 92 81 87 CE 82 [11:36:25]CommunicateWithHost err = 0 [11:36:25]CheckOFDResponse [11:36:25]1017 (14) - 77093643461234 [11:36:25]1041 (16) - 0000000000871820 [11:36:25]1040 (4) - 260643 [11:36:25]1012 (4) - 18.08.2024 05:26 [11:36:25]1206 (1) - 0 [11:36:25]OFD Sender: Remove packet 260643 [11:36:25]ProducePacketName [11:36:25]name=ofd_packets/00260643 [11:36:25]NVStorageDeleteData [11:36:26]Write to MH i2c: 01 00 00 9C 75 11 [11:36:26]Write i2c OK [11:36:26]MH_I2C_Read... [11:36:26]Read from MH i2c: 01 [11:36:26]MH_I2C_Read... [11:36:26]Read from MH i2c: 01 07 00 [11:36:26]MH_I2C_Read... [11:36:26]Read from MH i2c: 01 07 00 9C 75 00 00 00 00 00 6F 0C 93 [11:36:26]RasterBufferAndPrint [11:36:26]line [11:36:26]line [11:36:26]line [11:36:26]line [11:36:26]line [11:36:26]written 0, free lines is 3186 [11:36:26]MH_Cut [11:36:26]Write to MH i2c: D1 01 00 A3 75 01 EA [11:36:26]Write i2c OK [11:36:26]MH_I2C_Read... [11:36:26]Read from MH i2c: D1 [11:36:26]MH_I2C_Read... [11:36:26]Read from MH i2c: D1 01 00 [11:36:26]MH_I2C_Read... [11:36:26]Read from MH i2c: D1 01 00 A3 75 00 E9 [11:36:26]Write to MH i2c: 01 00 00 A4 75 19 [11:36:26]Write i2c OK [11:36:26]MH_I2C_Read... [11:36:26]OFD Sender: No OFD packet to send [11:36:27]*** Cut start [11:36:27]*** Purtial cut [11:36:27]*** Stage 1: CUTSNS_PIN = 1 [11:36:29]Read from MH i2c: 01 [11:36:29]MH_I2C_Read... [11:36:29]*** Stop cut motor [11:36:29]*** Cut end [11:36:29]Read from MH i2c: 01 07 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: 01 07 00 A4 75 00 00 00 00 00 FF 0F 2E [11:36:29]process_action close_receipt done [11:36:29]requested_data is exist [11:36:29]produce_requested_data [11:36:29]requested_item fm.sn is exist - process it [11:36:29]wFMCommunicate request_size=4 [11:36:29]MH_SAM_APDU [11:36:29]CAPDU: 80 11 00 00 [11:36:29]Write to MH i2c: E2 08 00 A5 75 80 11 00 00 00 00 00 00 94 [11:36:29]Write i2c OK [11:36:29]MH_I2C_Read... [11:36:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:29]Read from MH i2c: E2 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 17 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 17 00 A5 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E1 [11:36:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:36:29]wFMCommunicate OK [11:36:29]requested_item fd.num is exist - process it [11:36:29]SAM_PROTO_GetFieldsCounters [11:36:29]wFMCommunicate request_size=4 [11:36:29]MH_SAM_APDU [11:36:29]CAPDU: 80 13 00 00 [11:36:29]Write to MH i2c: E2 08 00 A6 75 80 13 00 00 00 00 00 00 97 [11:36:29]Write i2c OK [11:36:29]MH_I2C_Read... [11:36:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:29]Read from MH i2c: E2 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 62 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 62 00 A6 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 23 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [11:36: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 23 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:36:29]wFMCommunicate OK [11:36:29]SAM_PROTO_GetFieldsCounters done [11:36:29]requested_item shift.num is exist - process it [11:36:29]requested_item shift.opened is exist - process it [11:36:29]req_shift_opened [11:36:29]FM_GetShiftState [11:36:29]SAM_PROTO_GetShiftState [11:36:29]wFMCommunicate request_size=4 [11:36:29]MH_SAM_APDU [11:36:29]CAPDU: 80 13 01 00 [11:36:29]Write to MH i2c: E2 08 00 A7 75 80 13 01 00 00 00 00 00 99 [11:36:29]Write i2c OK [11:36:29]MH_I2C_Read... [11:36:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:29]Read from MH i2c: E2 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 0E 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 0E 00 A7 75 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D6 [11:36:29]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:36:29]wFMCommunicate OK [11:36:29]SAM_PROTO_GetShiftState done [11:36:29]FM_GetShiftState done [11:36:29]req_shift_opened done [11:36:29]requested_item shift.open_date is exist - process it [11:36:29]req_shift_open_date [11:36:29]req_shift_open_date done [11:36:29]produce_requested_data done [11:36:29]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260643,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:36:29]process_action_free close_receipt [11:36:29]json_value_free [11:36:29]json_value_free done [11:36:29]process_json_proto returns [11:36:29]Send response to host [11:36:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260643,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:36:29]free response buf [11:36:29]execute_script done [11:36:29]execute_script returns [11:36:29]free content buf [11:36:29]Sock 9.Close socket [11:36:29]Sock 9.Thread stoped [11:36:29]accept exits with 7 [11:36:29]New connection [11:36:29]New thread 3066473828 created [11:36:29]Thread 3066617188 joined [11:36:29]Waiting for new connection... [11:36:29] Sock 7.Parse request [11:36:29]Sock 7.Check first char [11:36:29]Sock 7.First char is OK [11:36:29]request: POST /json_proto HTTP/1.0 [11:36:29]Method: POST [11:36:29]URL: /json_proto [11:36:29]Method is POST - this is cgi request [11:36:29]url: /json_proto [11:36:29]query_string will be loaded in cgi processing [11:36:29]execute_cgi json_proto POST (null) [11:36:29]execute_cgi path=json_proto method=POST [11:36:29]POST find Content-Length [11:36:29]Host: 172.17.55.133:8080 [11:36:29]Content-Length: 678 [11:36:29]Content-Type: application/json [11:36:29] [11:36:29]POST finish read [11:36:29]Found Content-Length = 678 [11:36:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:36:29]execute_script... [11:36: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)1036191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:36:29]POST & json_proto [11:36:29]process_json_proto [11:36:29]json parsed OK: [11:36:29]protocol is kg_v1.0 [11:36:29]action value=close_receipt [11:36:29]process_action close_receipt [11:36:29]cmd_close_receipt [11:36:29]MH_GetDate [11:36:29]Write to MH i2c: F0 00 00 A8 75 0C [11:36:29]Write i2c OK [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: F0 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: F0 09 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: F0 09 00 A8 75 00 C2 DC C1 66 34 48 D8 65 93 [11:36:29]GetLastDocTimeStamp 1723980988 [11:36:29]current date 1723980994 [11:36:29]FM_GetShiftState [11:36:29]SAM_PROTO_GetShiftState [11:36:29]wFMCommunicate request_size=4 [11:36:29]MH_SAM_APDU [11:36:29]CAPDU: 80 13 01 00 [11:36:29]Write to MH i2c: E2 08 00 A9 75 80 13 01 00 00 00 00 00 9B [11:36:29]Write i2c OK [11:36:29]MH_I2C_Read... [11:36:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:29]Read from MH i2c: E2 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 0E 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 0E 00 A9 75 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D8 [11:36:29]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:36:29]wFMCommunicate OK [11:36:29]SAM_PROTO_GetShiftState done [11:36:29]FM_GetShiftState done [11:36:29]opened in 1723940556 [11:36:29]opened+sec_in_day 1724026956 [11:36:29]quantity*price = 50036 [11:36:29]sum+1 = 50037 [11:36:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 202 18.08.2024 11:36 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260644 ФПД: 141621743082024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T113634&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260644&fm=141621743082024&tin=02508201610067®Number=0000000000091865&sum=50000 [11:36:31]StoreToDocumentArchive [11:36:31]shift 449 fd 260644 [11:36:31]save to /storage/0449/doc_00260644 [11:36:31]save last doc name /storage/0449/doc_00260644 to /storage/kkm_last_doc_name [11:36:31]save OK [11:36:31]Clear old archive folders... [11:36:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:36:31]tlvbuf is 004A4680 [11:36:31]SAM_PROTO_ClearQueue [11:36:31]wFMCommunicate request_size=4 [11:36:31]MH_SAM_APDU [11:36:31]CAPDU: 80 09 00 00 [11:36:31]Write to MH i2c: E2 08 00 B6 75 80 09 00 00 00 00 00 00 9D [11:36:31]Write i2c OK [11:36:31]MH_I2C_Read... [11:36:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:31]Read from MH i2c: E2 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 03 00 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 03 00 B6 75 00 90 00 9F [11:36:31]RAPDU: 90 00 [11:36:31]wFMCommunicate OK [11:36:31]SAM_PROTO_ClearQueue done [11:36:31]KKMCreateOFDPacket [11:36:31]OFDProtocolAddRootSTLVToBuf [11:36:31]FM_MakeSignedData [11:36:31]FM_MakeSignedData [11:36:31]SAM_PROTO_SignData [11:36:31]wFMCommunicate request_size=4 [11:36:31]MH_SAM_APDU [11:36:31]CAPDU: 80 0D 01 02 [11:36:31]Write to MH i2c: E2 08 00 B7 75 80 0D 01 02 00 00 00 00 A5 [11:36:31]Write i2c OK [11:36:31]MH_I2C_Read... [11:36:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:31]Read from MH i2c: E2 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 03 00 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 03 00 B7 75 00 90 00 A0 [11:36:31]RAPDU: 90 00 [11:36:31]wFMCommunicate OK [11:36:31]wFMCommunicate request_size=255 [11:36:31]MH_SAM_APDU [11:36:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CA 00 00 00 F4 03 04 00 C2 DC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 24 FA 03 00 35 04 06 00 80 [11:36:31]Write to MH i2c: E2 02 01 B8 75 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CA 00 00 00 F4 03 04 00 C2 DC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 24 FA 03 00 35 04 06 00 80 00 00 14 [11:36:31]Write i2c OK [11:36:31]MH_I2C_Read... [11:36:31]OFD Sender: No OFD packet to send [11:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:31]Read from MH i2c: E2 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 03 00 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 03 00 B8 75 00 90 00 A1 [11:36:31]RAPDU: 90 00 [11:36:31]wFMCommunicate OK [11:36:31]wFMCommunicate request_size=10 [11:36:31]MH_SAM_APDU [11:36:31]CAPDU: 80 0D 02 02 05 CD E1 B0 5A 28 [11:36:31]Write to MH i2c: E2 0D 00 B9 75 80 0D 02 02 05 00 CD E1 B0 5A 28 00 00 92 [11:36:31]Write i2c OK [11:36:31]MH_I2C_Read... [11:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:31]Read from MH i2c: E2 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 03 00 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 03 00 B9 75 00 90 00 A2 [11:36:31]RAPDU: 90 00 [11:36:31]wFMCommunicate OK [11:36:31]wFMCommunicate request_size=4 [11:36:31]MH_SAM_APDU [11:36:31]CAPDU: 80 0D 03 02 [11:36:31]Write to MH i2c: E2 08 00 BA 75 80 0D 03 02 00 00 00 00 AA [11:36:31]Write i2c OK [11:36:31]MH_I2C_Read... [11:36:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:31]Read from MH i2c: E2 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 0B 00 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 0B 00 BA 75 00 67 BD EE DC C7 05 B1 B7 90 00 CD [11:36:31]RAPDU: 67 BD EE DC C7 05 B1 B7 90 00 [11:36:31]wFMCommunicate OK [11:36:31]SAM_PROTO_SignData done [11:36:31]FM_MakeSignedData done [11:36:31]CreateOFDProtocolMessage [11:36:31]wFMCommunicate request_size=4 [11:36:31]MH_SAM_APDU [11:36:31]CAPDU: 80 11 00 00 [11:36:31]Write to MH i2c: E2 08 00 BB 75 80 11 00 00 00 00 00 00 AA [11:36:31]Write i2c OK [11:36:31]MH_I2C_Read... [11:36:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:31]Read from MH i2c: E2 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 17 00 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 17 00 BB 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F7 [11:36:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:36:31]wFMCommunicate OK [11:36:31]CreateOFDProtocolMessage done [11:36:31]OFDSenderStorePacket 260644 [11:36:31]StoreOFDPacket docnum=260644 [11:36:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 DF 95 07 01 D0 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CA 00 00 00 F4 03 04 00 C2 DC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 24 FA 03 00 35 04 06 00 80 CD E1 B0 5A 28 67 BD EE DC C7 05 B1 B7 [11:36:31]CheckFolder [11:36:31]dirname=/storage/ofd_packets [11:36:31]CheckFolder done [11:36:31]ProducePacketName [11:36:31]name=ofd_packets/00260644 [11:36:31]NVStorageSaveData ofd_packets/00260644 [11:36:31]File name is /storage/ofd_packets/00260644 [11:36:31]Write 301 bytes [11:36:31]NVStorageSaveData done [11:36:31]OFDSenderStorePacket done [11:36:31]KKMCreateOFDPacket done [11:36:31]NVStorageSaveData kkm_last_timestamp [11:36:31]File name is /storage/kkm_last_timestamp [11:36:31]Write 4 bytes [11:36:31]NVStorageSaveData done [11:36:31]OFD Sender: Processing packet 260644 [packets to send 192, broken 191] [11:36:31]ProducePacketName [11:36:31]name=ofd_packets/00260644 [11:36:31]OFD Sender: To server: pG, [11:36:31]CommunicateWithHost lk.salyk.kg:30040 [11:36:31]ConnectInit lk.salyk.kg [11:36:31]ExternCall_PrintAddStr [11:36:31]wPrintStart [11:36:31]Write to MH i2c: 01 00 00 BC 75 31 [11:36:31]Write i2c OK [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: 01 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: 01 07 00 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: 01 07 00 BC 75 00 00 00 00 00 FF 0F 46 [11:36:31]RasterBufferAndPrint [11:36:31]line Счет N : (1)1036191 [11:36:31]line ИНН: 02508201610067 [11:36:31]line Контрольно-Кассовый Чек [11:36:31]line ПРОДАЖА [11:36:31]line ТРК (МРК, ГНК) : 22 [11:36:31]line Товар: 2710124130 [11:36:31]line Аи-92-К-5 [11:36:31]line 7.380 * 67.80 [11:36:31]line = 500.36 [11:36:31]line НДС 12% НСП 1% [11:36:31]line > о реализуемом товаре [11:36:31]line ОКРУГЛЕНИЕ: -0.36 [11:36:31]line ИТОГО: 500.00 [11:36:31]line Внесено: 500.00 [11:36:31]line СДАЧА: 0.00 [11:36:31]line НСП 1% : 4.43 [11:36:31]line НДС 12% : 53.14 [11:36:31]line Наличными: 500.00 [11:36:31]line Безнал.: 0.00 [11:36:31]line Место: АЗС № 94 "Партнер Нефть" [11:36:31]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:36:31]line СНО: Общий режим [11:36:31]line Чек 202 18.08.2024 11:36 [11:36:31]line Смена: 449 ФФД: 1.0 [11:36:31]line ЗНМ: 0300000099 [11:36:31]line РНМ: 0000000000091865 [11:36:31]line Версия ККМ: 001 [11:36:31]line ФМ: 0000000000871820 [11:36:31]line ФД: 260644 [11:36:31]line ФПД: 141621743082024 [11:36:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T113634&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260644&fm=141621743082024&tin=02508201610067®Number=0000000000091865&sum=50000 [11:36:31]written 0, free lines is 4095 [11:36:31]Connected sock=11 [11:36: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 30 0F 01 00 00 DF 95 07 01 D0 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CA 00 00 00 F4 03 04 00 C2 DC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 24 FA 03 00 35 04 06 00 80 CD E1 B0 5A 28 67 BD EE DC C7 05 B1 B7 [11:36: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 30 4F 00 00 00 00 08 47 00 F7 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 30 10 04 04 00 24 FA 03 00 F4 03 04 00 17 86 C1 66 B6 04 01 00 00 C0 63 F4 74 B3 57 0F 1F [11:36:32]CommunicateWithHost err = 0 [11:36:32]CheckOFDResponse [11:36:32]1017 (14) - 77093643461234 [11:36:32]1041 (16) - 0000000000871820 [11:36:32]1040 (4) - 260644 [11:36:32]1012 (4) - 18.08.2024 05:26 [11:36:32]1206 (1) - 0 [11:36:32]OFD Sender: Remove packet 260644 [11:36:32]ProducePacketName [11:36:32]name=ofd_packets/00260644 [11:36:32]NVStorageDeleteData [11:36:32]Write to MH i2c: 01 00 00 E7 75 5C [11:36:32]Write i2c OK [11:36:32]MH_I2C_Read... [11:36:32]Read from MH i2c: 01 [11:36:32]MH_I2C_Read... [11:36:32]Read from MH i2c: 01 07 00 [11:36:32]MH_I2C_Read... [11:36:32]Read from MH i2c: 01 07 00 E7 75 00 00 00 00 00 68 0C D7 [11:36:32]RasterBufferAndPrint [11:36:32]line [11:36:32]line [11:36:32]line [11:36:32]line [11:36:32]line [11:36:32]written 0, free lines is 3184 [11:36:32]MH_Cut [11:36:32]Write to MH i2c: D1 01 00 EE 75 01 35 [11:36:32]Write i2c OK [11:36:32]MH_I2C_Read... [11:36:32]Read from MH i2c: D1 [11:36:32]MH_I2C_Read... [11:36:32]Read from MH i2c: D1 01 00 [11:36:32]MH_I2C_Read... [11:36:32]Read from MH i2c: D1 01 00 EE 75 00 34 [11:36:32]Write to MH i2c: 01 00 00 EF 75 64 [11:36:32]Write i2c OK [11:36:32]MH_I2C_Read... [11:36:32]OFD Sender: No OFD packet to send [11:36:33]*** Cut start [11:36:33]*** Purtial cut [11:36:33]*** Stage 1: CUTSNS_PIN = 1 [11:36:35]Read from MH i2c: 01 [11:36:35]MH_I2C_Read... [11:36:35]*** Stop cut motor [11:36:35]*** Cut end [11:36:35]Read from MH i2c: 01 07 00 [11:36:35]MH_I2C_Read... [11:36:35]Read from MH i2c: 01 07 00 EF 75 00 00 00 00 00 FF 0F 79 [11:36:35]process_action close_receipt done [11:36:35]requested_data is exist [11:36:35]produce_requested_data [11:36:35]requested_item fm.sn is exist - process it [11:36:35]wFMCommunicate request_size=4 [11:36:35]MH_SAM_APDU [11:36:35]CAPDU: 80 11 00 00 [11:36:35]Write to MH i2c: E2 08 00 F0 75 80 11 00 00 00 00 00 00 DF [11:36:35]Write i2c OK [11:36:35]MH_I2C_Read... [11:36:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:35]Read from MH i2c: E2 [11:36:35]MH_I2C_Read... [11:36:35]Read from MH i2c: E2 17 00 [11:36:35]MH_I2C_Read... [11:36:35]Read from MH i2c: E2 17 00 F0 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 2C [11:36:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:36:35]wFMCommunicate OK [11:36:35]requested_item fd.num is exist - process it [11:36:35]SAM_PROTO_GetFieldsCounters [11:36:35]wFMCommunicate request_size=4 [11:36:35]MH_SAM_APDU [11:36:35]CAPDU: 80 13 00 00 [11:36:35]Write to MH i2c: E2 08 00 F1 75 80 13 00 00 00 00 00 00 E2 [11:36:35]Write i2c OK [11:36:35]MH_I2C_Read... [11:36:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:35]Read from MH i2c: E2 [11:36:35]MH_I2C_Read... [11:36:35]Read from MH i2c: E2 62 00 [11:36:35]MH_I2C_Read... [11:36:35]Read from MH i2c: E2 62 00 F1 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 24 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [11:36: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 24 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:36:35]wFMCommunicate OK [11:36:35]SAM_PROTO_GetFieldsCounters done [11:36:35]requested_item shift.num is exist - process it [11:36:35]requested_item shift.opened is exist - process it [11:36:35]req_shift_opened [11:36:35]FM_GetShiftState [11:36:35]SAM_PROTO_GetShiftState [11:36:35]wFMCommunicate request_size=4 [11:36:35]MH_SAM_APDU [11:36:35]CAPDU: 80 13 01 00 [11:36:35]Write to MH i2c: E2 08 00 F2 75 80 13 01 00 00 00 00 00 E4 [11:36:35]Write i2c OK [11:36:35]MH_I2C_Read... [11:36:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:35]Read from MH i2c: E2 [11:36:35]MH_I2C_Read... [11:36:35]Read from MH i2c: E2 0E 00 [11:36:35]MH_I2C_Read... [11:36:35]Read from MH i2c: E2 0E 00 F2 75 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 21 [11:36:35]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:36:35]wFMCommunicate OK [11:36:35]SAM_PROTO_GetShiftState done [11:36:35]FM_GetShiftState done [11:36:35]req_shift_opened done [11:36:35]requested_item shift.open_date is exist - process it [11:36:35]req_shift_open_date [11:36:35]req_shift_open_date done [11:36:35]produce_requested_data done [11:36:35]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260644,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:36:35]process_action_free close_receipt [11:36:35]json_value_free [11:36:35]json_value_free done [11:36:35]process_json_proto returns [11:36:35]Send response to host [11:36:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260644,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:36:35]free response buf [11:36:35]execute_script done [11:36:35]execute_script returns [11:36:35]free content buf [11:36:35]Sock 7.Close socket [11:36:35]Sock 7.Thread stoped [11:36:37]OFD Sender: No OFD packet to send [11:36:42]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:42]OFD Sender: No OFD packet to send [11:37:47]OFD Sender: No OFD packet to send [11:37:52]OFD Sender: No OFD packet to send [11:37:57]OFD Sender: No OFD packet to send [11:38:02]OFD Sender: No OFD packet to send [11:38:07]OFD Sender: No OFD packet to send [11:38:12]OFD Sender: No OFD packet to send [11:38:17]OFD Sender: No OFD packet to send [11:38:22]OFD Sender: No OFD packet to send [11:38:27]OFD Sender: No OFD packet to send [11:38:32]OFD Sender: No OFD packet to send [11:38:37]OFD Sender: No OFD packet to send [11:38:39]accept exits with 9 [11:38:39]New connection [11:38:39]New thread 3066617188 created [11:38:39]Thread 3066473828 joined [11:38:39]Waiting for new connection... [11:38:39] Sock 9.Parse request [11:38:39]Sock 9.Check first char [11:38:39]Sock 9.First char is OK [11:38:39]request: POST /json_proto HTTP/1.0 [11:38:39]Method: POST [11:38:39]URL: /json_proto [11:38:39]Method is POST - this is cgi request [11:38:39]url: /json_proto [11:38:39]query_string will be loaded in cgi processing [11:38:39]execute_cgi json_proto POST (null) [11:38:39]execute_cgi path=json_proto method=POST [11:38:39]POST find Content-Length [11:38:39]Host: 172.17.55.133:8080 [11:38:39]Content-Length: 801 [11:38:39]Content-Type: application/json [11:38:39] [11:38:39]POST finish read [11:38:39]Found Content-Length = 801 [11:38:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 6.640, "sum" : 450.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 450.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:39]execute_script... [11:38: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)1036192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 6.640, "sum" : 450.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 450.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:39]POST & json_proto [11:38:39]process_json_proto [11:38:39]json parsed OK: [11:38:39]protocol is kg_v1.0 [11:38:39]action value=close_receipt [11:38:39]process_action close_receipt [11:38:39]cmd_close_receipt [11:38:39]MH_GetDate [11:38:39]Write to MH i2c: F0 00 00 F3 75 57 [11:38:39]Write i2c OK [11:38:39]MH_I2C_Read... [11:38:39]Read from MH i2c: F0 [11:38:39]MH_I2C_Read... [11:38:39]Read from MH i2c: F0 09 00 [11:38:39]MH_I2C_Read... [11:38:39]Read from MH i2c: F0 09 00 F3 75 00 44 DD C1 66 34 48 D8 65 61 [11:38:39]GetLastDocTimeStamp 1723980994 [11:38:39]current date 1723981124 [11:38:39]FM_GetShiftState [11:38:39]SAM_PROTO_GetShiftState [11:38:39]wFMCommunicate request_size=4 [11:38:39]MH_SAM_APDU [11:38:39]CAPDU: 80 13 01 00 [11:38:39]Write to MH i2c: E2 08 00 F4 75 80 13 01 00 00 00 00 00 E6 [11:38:39]Write i2c OK [11:38:39]MH_I2C_Read... [11:38:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:39]Read from MH i2c: E2 [11:38:39]MH_I2C_Read... [11:38:39]Read from MH i2c: E2 0E 00 [11:38:39]MH_I2C_Read... [11:38:39]Read from MH i2c: E2 0E 00 F4 75 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 23 [11:38:39]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:38:39]wFMCommunicate OK [11:38:39]SAM_PROTO_GetShiftState done [11:38:39]FM_GetShiftState done [11:38:39]opened in 1723940556 [11:38:39]opened+sec_in_day 1724026956 [11:38:39]quantity*price = 45019 [11:38:39]sum+1 = 45020 [11:38:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 450.19 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 0.00 Безнал.: 450.19 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 203 18.08.2024 11:38 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260645 ФПД: 16793817679475 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T113844&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260645&fm=16793817679475&tin=02508201610067®Number=0000000000091865&sum=45019 [11:38:40]StoreToDocumentArchive [11:38:40]shift 449 fd 260645 [11:38:40]save to /storage/0449/doc_00260645 [11:38:40]save last doc name /storage/0449/doc_00260645 to /storage/kkm_last_doc_name [11:38:40]save OK [11:38:40]Clear old archive folders... [11:38:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:38:40]tlvbuf is 003E9160 [11:38:40]SAM_PROTO_ClearQueue [11:38:40]wFMCommunicate request_size=4 [11:38:40]MH_SAM_APDU [11:38:40]CAPDU: 80 09 00 00 [11:38:40]Write to MH i2c: E2 08 00 01 76 80 09 00 00 00 00 00 00 E9 [11:38:40]Write i2c OK [11:38:40]MH_I2C_Read... [11:38:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:40]Read from MH i2c: E2 [11:38:40]MH_I2C_Read... [11:38:40]Read from MH i2c: E2 03 00 [11:38:40]MH_I2C_Read... [11:38:40]Read from MH i2c: E2 03 00 01 76 00 90 00 EB [11:38:40]RAPDU: 90 00 [11:38:40]wFMCommunicate OK [11:38:40]SAM_PROTO_ClearQueue done [11:38:40]KKMCreateOFDPacket [11:38:40]OFDProtocolAddRootSTLVToBuf [11:38:40]FM_MakeSignedData [11:38:40]FM_MakeSignedData [11:38:40]SAM_PROTO_SignData [11:38:40]wFMCommunicate request_size=4 [11:38:40]MH_SAM_APDU [11:38:40]CAPDU: 80 0D 01 02 [11:38:40]Write to MH i2c: E2 08 00 02 76 80 0D 01 02 00 00 00 00 F1 [11:38:40]Write i2c OK [11:38:40]MH_I2C_Read... [11:38:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:40]Read from MH i2c: E2 [11:38:40]MH_I2C_Read... [11:38:40]Read from MH i2c: E2 03 00 [11:38:40]MH_I2C_Read... [11:38:40]Read from MH i2c: E2 03 00 02 76 00 90 00 EC [11:38:40]RAPDU: 90 00 [11:38:40]wFMCommunicate OK [11:38:40]wFMCommunicate request_size=255 [11:38:40]MH_SAM_APDU [11:38:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DB 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 AD 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DB AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 44 DD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 25 FA 03 00 35 04 06 00 0F [11:38:40]Write to MH i2c: E2 02 01 03 76 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DB 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 AD 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DB AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 44 DD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 25 FA 03 00 35 04 06 00 0F 00 00 8A [11:38:40]Write i2c OK [11:38:40]MH_I2C_Read... [11:38:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:41]Read from MH i2c: E2 [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: E2 03 00 [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: E2 03 00 03 76 00 90 00 ED [11:38:41]RAPDU: 90 00 [11:38:41]wFMCommunicate OK [11:38:41]wFMCommunicate request_size=10 [11:38:41]MH_SAM_APDU [11:38:41]CAPDU: 80 0D 02 02 05 46 1D 89 86 73 [11:38:41]Write to MH i2c: E2 0D 00 04 76 80 0D 02 02 05 00 46 1D 89 86 73 00 00 E3 [11:38:41]Write i2c OK [11:38:41]MH_I2C_Read... [11:38:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:41]Read from MH i2c: E2 [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: E2 03 00 [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: E2 03 00 04 76 00 90 00 EE [11:38:41]RAPDU: 90 00 [11:38:41]wFMCommunicate OK [11:38:41]wFMCommunicate request_size=4 [11:38:41]MH_SAM_APDU [11:38:41]CAPDU: 80 0D 03 02 [11:38:41]Write to MH i2c: E2 08 00 05 76 80 0D 03 02 00 00 00 00 F6 [11:38:41]Write i2c OK [11:38:41]MH_I2C_Read... [11:38:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:41]Read from MH i2c: E2 [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: E2 0B 00 [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: E2 0B 00 05 76 00 4E F8 E0 A0 54 5B A9 56 90 00 6B [11:38:41]RAPDU: 4E F8 E0 A0 54 5B A9 56 90 00 [11:38:41]wFMCommunicate OK [11:38:41]SAM_PROTO_SignData done [11:38:41]FM_MakeSignedData done [11:38:41]CreateOFDProtocolMessage [11:38:41]wFMCommunicate request_size=4 [11:38:41]MH_SAM_APDU [11:38:41]CAPDU: 80 11 00 00 [11:38:41]Write to MH i2c: E2 08 00 06 76 80 11 00 00 00 00 00 00 F6 [11:38:41]Write i2c OK [11:38:41]MH_I2C_Read... [11:38:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:41]Read from MH i2c: E2 [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: E2 17 00 [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: E2 17 00 06 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 43 [11:38:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:38:41]wFMCommunicate OK [11:38:41]CreateOFDProtocolMessage done [11:38:41]OFDSenderStorePacket 260645 [11:38:41]StoreOFDPacket docnum=260645 [11:38:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 0B 8D 07 01 26 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DB 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 AD 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DB AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 44 DD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 25 FA 03 00 35 04 06 00 0F 46 1D 89 86 73 4E F8 E0 A0 54 5B A9 56 [11:38:41]CheckFolder [11:38:41]dirname=/storage/ofd_packets [11:38:41]CheckFolder done [11:38:41]ProducePacketName [11:38:41]name=ofd_packets/00260645 [11:38:41]NVStorageSaveData ofd_packets/00260645 [11:38:41]File name is /storage/ofd_packets/00260645 [11:38:41]Write 301 bytes [11:38:41]NVStorageSaveData done [11:38:41]OFDSenderStorePacket done [11:38:41]KKMCreateOFDPacket done [11:38:41]NVStorageSaveData kkm_last_timestamp [11:38:41]File name is /storage/kkm_last_timestamp [11:38:41]Write 4 bytes [11:38:41]NVStorageSaveData done [11:38:41]ExternCall_PrintAddStr [11:38:41]wPrintStart [11:38:41]Write to MH i2c: 01 00 00 07 76 7D [11:38:41]Write i2c OK [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: 01 [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: 01 07 00 [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: 01 07 00 07 76 00 00 00 00 00 FF 0F 92 [11:38:41]RasterBufferAndPrint [11:38:41]line Счет N : (1)1036192 [11:38:41]line ИНН: 02508201610067 [11:38:41]line Контрольно-Кассовый Чек [11:38:41]line ПРОДАЖА [11:38:41]line ТРК (МРК, ГНК) : 12 [11:38:41]line Товар: 2710124130 [11:38:41]line Аи-92-К-5 [11:38:41]line 6.640 * 67.80 [11:38:41]line = 450.19 [11:38:41]line НДС 12% НСП 1% [11:38:41]line > о реализуемом товаре [11:38:41]line ИТОГО: 450.19 [11:38:41]line НСП 1% : 3.98 [11:38:41]line НДС 12% : 47.81 [11:38:41]line Наличными: 0.00 [11:38:41]line Безнал.: 450.19 [11:38:41]line Место: АЗС № 94 "Партнер Нефть" [11:38:41]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:38:41]line СНО: Общий режим [11:38:41]line Чек 203 18.08.2024 11:38 [11:38:41]line Смена: 449 ФФД: 1.0 [11:38:41]line ЗНМ: 0300000099 [11:38:41]line РНМ: 0000000000091865 [11:38:41]line Версия ККМ: 001 [11:38:41]line Платежная система: O! деньги [11:38:41]line ФМ: 0000000000871820 [11:38:41]line ФД: 260645 [11:38:41]line ФПД: 16793817679475 [11:38:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T113844&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260645&fm=16793817679475&tin=02508201610067®Number=0000000000091865&sum=45019 [11:38:41]written 0, free lines is 4095 [11:38:41]OFD Sender: Processing packet 260645 [packets to send 192, broken 191] [11:38:41]ProducePacketName [11:38:41]name=ofd_packets/00260645 [11:38:41]OFD Sender: To server: pG, [11:38:41]CommunicateWithHost lk.salyk.kg:30040 [11:38:41]ConnectInit lk.salyk.kg [11:38:41]Connected sock=7 [11:38: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 30 0F 01 00 00 0B 8D 07 01 26 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DB 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 AD 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DB AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 44 DD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 25 FA 03 00 35 04 06 00 0F 46 1D 89 86 73 4E F8 E0 A0 54 5B A9 56 [11:38:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 4F 00 00 00 95 BF 47 00 57 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 25 FA 03 00 F4 03 04 00 99 86 C1 66 B6 04 01 00 00 EC 1C 5F 3B DF DB BA DC [11:38:41]CommunicateWithHost err = 0 [11:38:41]CheckOFDResponse [11:38:41]1017 (14) - 77093643461234 [11:38:41]1041 (16) - 0000000000871820 [11:38:41]1040 (4) - 260645 [11:38:41]1012 (4) - 18.08.2024 05:28 [11:38:41]1206 (1) - 0 [11:38:41]OFD Sender: Remove packet 260645 [11:38:41]ProducePacketName [11:38:41]name=ofd_packets/00260645 [11:38:41]NVStorageDeleteData [11:38:41]Write to MH i2c: 01 00 00 31 76 A7 [11:38:41]Write i2c OK [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: 01 [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: 01 07 00 [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: 01 07 00 31 76 00 00 00 00 00 80 0C 3A [11:38:41]RasterBufferAndPrint [11:38:41]line [11:38:41]line [11:38:41]line [11:38:41]line [11:38:41]line [11:38:41]written 0, free lines is 3205 [11:38:41]MH_Cut [11:38:41]Write to MH i2c: D1 01 00 38 76 01 80 [11:38:41]Write i2c OK [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: D1 [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: D1 01 00 [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: D1 01 00 38 76 00 7F [11:38:41]Write to MH i2c: 01 00 00 39 76 AF [11:38:41]Write i2c OK [11:38:41]MH_I2C_Read... [11:38:42]OFD Sender: No OFD packet to send [11:38:42]*** Cut start [11:38:42]*** Purtial cut [11:38:42]*** Stage 1: CUTSNS_PIN = 1 [11:38:44]Read from MH i2c: 01 [11:38:44]MH_I2C_Read... [11:38:44]*** Stop cut motor [11:38:44]*** Cut end [11:38:44]Read from MH i2c: 01 07 00 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: 01 07 00 39 76 00 00 00 00 00 FF 0F C4 [11:38:44]process_action close_receipt done [11:38:44]requested_data is exist [11:38:44]produce_requested_data [11:38:44]requested_item fm.sn is exist - process it [11:38:44]wFMCommunicate request_size=4 [11:38:44]MH_SAM_APDU [11:38:44]CAPDU: 80 11 00 00 [11:38:44]Write to MH i2c: E2 08 00 3A 76 80 11 00 00 00 00 00 00 2A [11:38:44]Write i2c OK [11:38:44]MH_I2C_Read... [11:38:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:44]Read from MH i2c: E2 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: E2 17 00 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: E2 17 00 3A 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 77 [11:38:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:38:44]wFMCommunicate OK [11:38:44]requested_item fd.num is exist - process it [11:38:44]SAM_PROTO_GetFieldsCounters [11:38:44]wFMCommunicate request_size=4 [11:38:44]MH_SAM_APDU [11:38:44]CAPDU: 80 13 00 00 [11:38:44]Write to MH i2c: E2 08 00 3B 76 80 13 00 00 00 00 00 00 2D [11:38:44]Write i2c OK [11:38:44]MH_I2C_Read... [11:38:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:45]Read from MH i2c: E2 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: E2 62 00 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: E2 62 00 3B 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 25 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [11:38: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 25 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:38:45]wFMCommunicate OK [11:38:45]SAM_PROTO_GetFieldsCounters done [11:38:45]requested_item shift.num is exist - process it [11:38:45]requested_item shift.opened is exist - process it [11:38:45]req_shift_opened [11:38:45]FM_GetShiftState [11:38:45]SAM_PROTO_GetShiftState [11:38:45]wFMCommunicate request_size=4 [11:38:45]MH_SAM_APDU [11:38:45]CAPDU: 80 13 01 00 [11:38:45]Write to MH i2c: E2 08 00 3C 76 80 13 01 00 00 00 00 00 2F [11:38:45]Write i2c OK [11:38:45]MH_I2C_Read... [11:38:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:45]Read from MH i2c: E2 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: E2 0E 00 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: E2 0E 00 3C 76 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 6C [11:38:45]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:38:45]wFMCommunicate OK [11:38:45]SAM_PROTO_GetShiftState done [11:38:45]FM_GetShiftState done [11:38:45]req_shift_opened done [11:38:45]requested_item shift.open_date is exist - process it [11:38:45]req_shift_open_date [11:38:45]req_shift_open_date done [11:38:45]produce_requested_data done [11:38:45]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260645,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:38:45]process_action_free close_receipt [11:38:45]json_value_free [11:38:45]json_value_free done [11:38:45]process_json_proto returns [11:38:45]Send response to host [11:38:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260645,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:38:45]free response buf [11:38:45]execute_script done [11:38:45]execute_script returns [11:38:45]free content buf [11:38:45]Sock 9.Close socket [11:38:45]Sock 9.Thread stoped [11:38:47]OFD Sender: No OFD packet to send [11:38:52]OFD Sender: No OFD packet to send [11:38:57]OFD Sender: No OFD packet to send [11:39:02]OFD Sender: No OFD packet to send [11:39:07]OFD Sender: No OFD packet to send [11:39:12]OFD Sender: No OFD packet to send [11:39:13]accept exits with 10 [11:39:13]New connection [11:39:13]New thread 3066473828 created [11:39:13]Thread 3066617188 joined [11:39:13]Waiting for new connection... [11:39:13] Sock 10.Parse request [11:39:13]Sock 10.Check first char [11:39:13]Sock 10.First char is OK [11:39:13]request: POST /json_proto HTTP/1.0 [11:39:13]Method: POST [11:39:13]URL: /json_proto [11:39:13]Method is POST - this is cgi request [11:39:13]url: /json_proto [11:39:13]query_string will be loaded in cgi processing [11:39:13]execute_cgi json_proto POST (null) [11:39:13]execute_cgi path=json_proto method=POST [11:39:13]POST find Content-Length [11:39:13]Host: 172.17.55.133:8080 [11:39:13]Content-Length: 678 [11:39:13]Content-Type: application/json [11:39:13] [11:39:13]POST finish read [11:39:13]Found Content-Length = 678 [11:39:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:39:13]execute_script... [11:39:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:39:13]POST & json_proto [11:39:13]process_json_proto [11:39:13]json parsed OK: [11:39:13]protocol is kg_v1.0 [11:39:13]action value=close_receipt [11:39:13]process_action close_receipt [11:39:13]cmd_close_receipt [11:39:13]MH_GetDate [11:39:13]Write to MH i2c: F0 00 00 3D 76 A2 [11:39:13]Write i2c OK [11:39:13]MH_I2C_Read... [11:39:13]Read from MH i2c: F0 [11:39:13]MH_I2C_Read... [11:39:13]Read from MH i2c: F0 09 00 [11:39:13]MH_I2C_Read... [11:39:13]Read from MH i2c: F0 09 00 3D 76 00 66 DD C1 66 34 48 D8 65 CE [11:39:13]GetLastDocTimeStamp 1723981124 [11:39:13]current date 1723981158 [11:39:13]FM_GetShiftState [11:39:13]SAM_PROTO_GetShiftState [11:39:13]wFMCommunicate request_size=4 [11:39:13]MH_SAM_APDU [11:39:13]CAPDU: 80 13 01 00 [11:39:13]Write to MH i2c: E2 08 00 3E 76 80 13 01 00 00 00 00 00 31 [11:39:13]Write i2c OK [11:39:13]MH_I2C_Read... [11:39:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:13]Read from MH i2c: E2 [11:39:13]MH_I2C_Read... [11:39:13]Read from MH i2c: E2 0E 00 [11:39:13]MH_I2C_Read... [11:39:13]Read from MH i2c: E2 0E 00 3E 76 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 6E [11:39:13]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:39:13]wFMCommunicate OK [11:39:13]SAM_PROTO_GetShiftState done [11:39:13]FM_GetShiftState done [11:39:13]opened in 1723940556 [11:39:13]opened+sec_in_day 1724026956 [11:39:13]quantity*price = 40002 [11:39:13]sum+1 = 40003 [11:39:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 204 18.08.2024 11:39 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260646 ФПД: 281323297550332 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T113918&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260646&fm=281323297550332&tin=02508201610067®Number=0000000000091865&sum=40000 [11:39:14]StoreToDocumentArchive [11:39:14]shift 449 fd 260646 [11:39:14]save to /storage/0449/doc_00260646 [11:39:14]save last doc name /storage/0449/doc_00260646 to /storage/kkm_last_doc_name [11:39:14]save OK [11:39:14]Clear old archive folders... [11:39:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:39:14]tlvbuf is 004A2330 [11:39:14]SAM_PROTO_ClearQueue [11:39:14]wFMCommunicate request_size=4 [11:39:14]MH_SAM_APDU [11:39:14]CAPDU: 80 09 00 00 [11:39:14]Write to MH i2c: E2 08 00 4B 76 80 09 00 00 00 00 00 00 33 [11:39:14]Write i2c OK [11:39:14]MH_I2C_Read... [11:39:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:14]Read from MH i2c: E2 [11:39:14]MH_I2C_Read... [11:39:14]Read from MH i2c: E2 03 00 [11:39:14]MH_I2C_Read... [11:39:14]Read from MH i2c: E2 03 00 4B 76 00 90 00 35 [11:39:14]RAPDU: 90 00 [11:39:14]wFMCommunicate OK [11:39:14]SAM_PROTO_ClearQueue done [11:39:14]KKMCreateOFDPacket [11:39:14]OFDProtocolAddRootSTLVToBuf [11:39:14]FM_MakeSignedData [11:39:14]FM_MakeSignedData [11:39:14]SAM_PROTO_SignData [11:39:14]wFMCommunicate request_size=4 [11:39:14]MH_SAM_APDU [11:39:14]CAPDU: 80 0D 01 02 [11:39:14]Write to MH i2c: E2 08 00 4C 76 80 0D 01 02 00 00 00 00 3B [11:39:14]Write i2c OK [11:39:14]MH_I2C_Read... [11:39:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:14]Read from MH i2c: E2 [11:39:14]MH_I2C_Read... [11:39:14]Read from MH i2c: E2 03 00 [11:39:14]MH_I2C_Read... [11:39:14]Read from MH i2c: E2 03 00 4C 76 00 90 00 36 [11:39:14]RAPDU: 90 00 [11:39:14]wFMCommunicate OK [11:39:14]wFMCommunicate request_size=255 [11:39:14]MH_SAM_APDU [11:39:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 66 DD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 26 FA 03 00 35 04 06 00 FF [11:39:14]Write to MH i2c: E2 02 01 4D 76 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 66 DD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 26 FA 03 00 35 04 06 00 FF 00 00 B7 [11:39:14]Write i2c OK [11:39:14]MH_I2C_Read... [11:39:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:15]Read from MH i2c: E2 [11:39:15]MH_I2C_Read... [11:39:15]Read from MH i2c: E2 03 00 [11:39:15]MH_I2C_Read... [11:39:15]Read from MH i2c: E2 03 00 4D 76 00 90 00 37 [11:39:15]RAPDU: 90 00 [11:39:15]wFMCommunicate OK [11:39:15]wFMCommunicate request_size=10 [11:39:15]MH_SAM_APDU [11:39:15]CAPDU: 80 0D 02 02 05 DC AF 37 AF FC [11:39:15]Write to MH i2c: E2 0D 00 4E 76 80 0D 02 02 05 00 DC AF 37 AF FC 00 00 B5 [11:39:15]Write i2c OK [11:39:15]MH_I2C_Read... [11:39:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:15]Read from MH i2c: E2 [11:39:15]MH_I2C_Read... [11:39:15]Read from MH i2c: E2 03 00 [11:39:15]MH_I2C_Read... [11:39:15]Read from MH i2c: E2 03 00 4E 76 00 90 00 38 [11:39:15]RAPDU: 90 00 [11:39:15]wFMCommunicate OK [11:39:15]wFMCommunicate request_size=4 [11:39:15]MH_SAM_APDU [11:39:15]CAPDU: 80 0D 03 02 [11:39:15]Write to MH i2c: E2 08 00 4F 76 80 0D 03 02 00 00 00 00 40 [11:39:15]Write i2c OK [11:39:15]MH_I2C_Read... [11:39:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:15]Read from MH i2c: E2 [11:39:15]MH_I2C_Read... [11:39:15]Read from MH i2c: E2 0B 00 [11:39:15]MH_I2C_Read... [11:39:15]Read from MH i2c: E2 0B 00 4F 76 00 9B 2C 48 03 0D 01 00 E5 90 00 46 [11:39:15]RAPDU: 9B 2C 48 03 0D 01 00 E5 90 00 [11:39:15]wFMCommunicate OK [11:39:15]SAM_PROTO_SignData done [11:39:15]FM_MakeSignedData done [11:39:15]CreateOFDProtocolMessage [11:39:15]wFMCommunicate request_size=4 [11:39:15]MH_SAM_APDU [11:39:15]CAPDU: 80 11 00 00 [11:39:15]Write to MH i2c: E2 08 00 50 76 80 11 00 00 00 00 00 00 40 [11:39:15]Write i2c OK [11:39:15]MH_I2C_Read... [11:39:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:15]Read from MH i2c: E2 [11:39:15]MH_I2C_Read... [11:39:15]Read from MH i2c: E2 17 00 [11:39:15]MH_I2C_Read... [11:39:15]Read from MH i2c: E2 17 00 50 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 8D [11:39:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:39:15]wFMCommunicate OK [11:39:15]CreateOFDProtocolMessage done [11:39:15]OFDSenderStorePacket 260646 [11:39:15]StoreOFDPacket docnum=260646 [11:39:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 DF 09 07 01 0B BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 66 DD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 26 FA 03 00 35 04 06 00 FF DC AF 37 AF FC 9B 2C 48 03 0D 01 00 E5 [11:39:15]CheckFolder [11:39:15]dirname=/storage/ofd_packets [11:39:15]CheckFolder done [11:39:15]ProducePacketName [11:39:15]name=ofd_packets/00260646 [11:39:15]NVStorageSaveData ofd_packets/00260646 [11:39:15]File name is /storage/ofd_packets/00260646 [11:39:15]Write 301 bytes [11:39:15]NVStorageSaveData done [11:39:15]OFDSenderStorePacket done [11:39:15]KKMCreateOFDPacket done [11:39:15]NVStorageSaveData kkm_last_timestamp [11:39:15]File name is /storage/kkm_last_timestamp [11:39:15]Write 4 bytes [11:39:15]NVStorageSaveData done [11:39:15]ExternCall_PrintAddStr [11:39:15]wPrintStart [11:39:15]Write to MH i2c: 01 00 00 51 76 C7 [11:39:15]Write i2c OK [11:39:15]MH_I2C_Read... [11:39:15]Read from MH i2c: 01 [11:39:15]MH_I2C_Read... [11:39:15]Read from MH i2c: 01 07 00 [11:39:15]MH_I2C_Read... [11:39:15]Read from MH i2c: 01 07 00 51 76 00 00 00 00 00 FF 0F DC [11:39:15]RasterBufferAndPrint [11:39:15]line Счет N : (1)1036193 [11:39:15]line ИНН: 02508201610067 [11:39:15]line Контрольно-Кассовый Чек [11:39:15]line ПРОДАЖА [11:39:15]line ТРК (МРК, ГНК) : 42 [11:39:15]line Товар: 2710124130 [11:39:15]line Аи-92-К-5 [11:39:15]line 5.900 * 67.80 [11:39:15]line = 400.02 [11:39:15]line НДС 12% НСП 1% [11:39:15]line > о реализуемом товаре [11:39:15]line ОКРУГЛЕНИЕ: -0.02 [11:39:15]line ИТОГО: 400.00 [11:39:15]line Внесено: 400.00 [11:39:15]line СДАЧА: 0.00 [11:39:15]line НСП 1% : 3.54 [11:39:15]line НДС 12% : 42.48 [11:39:15]line Наличными: 400.00 [11:39:15]line Безнал.: 0.00 [11:39:15]line Место: АЗС № 94 "Партнер Нефть" [11:39:15]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:39:15]line СНО: Общий режим [11:39:15]line Чек 204 18.08.2024 11:39 [11:39:15]line Смена: 449 ФФД: 1.0 [11:39:15]line ЗНМ: 0300000099 [11:39:15]line РНМ: 0000000000091865 [11:39:15]line Версия ККМ: 001 [11:39:15]line ФМ: 0000000000871820 [11:39:15]line ФД: 260646 [11:39:15]line ФПД: 281323297550332 [11:39:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T113918&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260646&fm=281323297550332&tin=02508201610067®Number=0000000000091865&sum=40000 [11:39:15]written 0, free lines is 4095 [11:39:15]OFD Sender: Processing packet 260646 [packets to send 192, broken 191] [11:39:15]ProducePacketName [11:39:15]name=ofd_packets/00260646 [11:39:15]OFD Sender: To server: pG, [11:39:15]CommunicateWithHost lk.salyk.kg:30040 [11:39:15]ConnectInit lk.salyk.kg [11:39:15]Connected sock=9 [11:39: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 30 0F 01 00 00 DF 09 07 01 0B BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 66 DD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 26 FA 03 00 35 04 06 00 FF DC AF 37 AF FC 9B 2C 48 03 0D 01 00 E5 [11:39:15]Write to MH i2c: 01 00 00 7C 76 F2 [11:39:15]Write i2c OK [11:39:15]MH_I2C_Read... [11:39:15]Read from MH i2c: 01 [11:39:15]MH_I2C_Read... [11:39:15]Read from MH i2c: 01 07 00 [11:39:15]MH_I2C_Read... [11:39:15]Read from MH i2c: 01 07 00 7C 76 00 00 00 00 00 74 0C 79 [11:39:15]RasterBufferAndPrint [11:39:15]line [11:39:15]line [11:39:15]line [11:39:15]line [11:39:15]line [11:39:15]written 0, free lines is 3191 [11:39:15]MH_Cut [11:39:15]Write to MH i2c: D1 01 00 83 76 01 CB [11:39:15]Write i2c OK [11:39:15]MH_I2C_Read... [11:39:15]Read from MH i2c: D1 [11:39:15]MH_I2C_Read... [11:39:15]Read from MH i2c: D1 01 00 [11:39:15]MH_I2C_Read... [11:39:15]Read from MH i2c: D1 01 00 83 76 00 CA [11:39:15]Write to MH i2c: 01 00 00 84 76 FA [11:39:15]Write i2c OK [11:39:15]MH_I2C_Read... [11:39: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 30 4F 00 00 00 74 08 47 00 74 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 30 10 04 04 00 26 FA 03 00 F4 03 04 00 BB 86 C1 66 B6 04 01 00 00 8F A2 AD 99 23 C8 35 08 [11:39:15]CommunicateWithHost err = 0 [11:39:15]CheckOFDResponse [11:39:15]1017 (14) - 77093643461234 [11:39:15]1041 (16) - 0000000000871820 [11:39:15]1040 (4) - 260646 [11:39:15]1012 (4) - 18.08.2024 05:29 [11:39:15]1206 (1) - 0 [11:39:15]OFD Sender: Remove packet 260646 [11:39:15]ProducePacketName [11:39:15]name=ofd_packets/00260646 [11:39:15]NVStorageDeleteData [11:39:16]OFD Sender: No OFD packet to send [11:39:16]*** Cut start [11:39:16]*** Purtial cut [11:39:16]*** Stage 1: CUTSNS_PIN = 1 [11:39:18]Read from MH i2c: 01 [11:39:18]MH_I2C_Read... [11:39:18]*** Stop cut motor [11:39:18]*** Cut end [11:39:18]Read from MH i2c: 01 07 00 [11:39:18]MH_I2C_Read... [11:39:18]Read from MH i2c: 01 07 00 84 76 00 00 00 00 00 FF 0F 0F [11:39:18]process_action close_receipt done [11:39:18]requested_data is exist [11:39:18]produce_requested_data [11:39:18]requested_item fm.sn is exist - process it [11:39:18]wFMCommunicate request_size=4 [11:39:18]MH_SAM_APDU [11:39:18]CAPDU: 80 11 00 00 [11:39:18]Write to MH i2c: E2 08 00 85 76 80 11 00 00 00 00 00 00 75 [11:39:18]Write i2c OK [11:39:18]MH_I2C_Read... [11:39:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:18]Read from MH i2c: E2 [11:39:18]MH_I2C_Read... [11:39:18]Read from MH i2c: E2 17 00 [11:39:18]MH_I2C_Read... [11:39:18]Read from MH i2c: E2 17 00 85 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C2 [11:39:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:39:18]wFMCommunicate OK [11:39:18]requested_item fd.num is exist - process it [11:39:18]SAM_PROTO_GetFieldsCounters [11:39:18]wFMCommunicate request_size=4 [11:39:18]MH_SAM_APDU [11:39:18]CAPDU: 80 13 00 00 [11:39:18]Write to MH i2c: E2 08 00 86 76 80 13 00 00 00 00 00 00 78 [11:39:18]Write i2c OK [11:39:18]MH_I2C_Read... [11:39:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:19]Read from MH i2c: E2 [11:39:19]MH_I2C_Read... [11:39:19]Read from MH i2c: E2 62 00 [11:39:19]MH_I2C_Read... [11:39:19]Read from MH i2c: E2 62 00 86 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 26 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [11:39:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 26 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:39:19]wFMCommunicate OK [11:39:19]SAM_PROTO_GetFieldsCounters done [11:39:19]requested_item shift.num is exist - process it [11:39:19]requested_item shift.opened is exist - process it [11:39:19]req_shift_opened [11:39:19]FM_GetShiftState [11:39:19]SAM_PROTO_GetShiftState [11:39:19]wFMCommunicate request_size=4 [11:39:19]MH_SAM_APDU [11:39:19]CAPDU: 80 13 01 00 [11:39:19]Write to MH i2c: E2 08 00 87 76 80 13 01 00 00 00 00 00 7A [11:39:19]Write i2c OK [11:39:19]MH_I2C_Read... [11:39:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:19]Read from MH i2c: E2 [11:39:19]MH_I2C_Read... [11:39:19]Read from MH i2c: E2 0E 00 [11:39:19]MH_I2C_Read... [11:39:19]Read from MH i2c: E2 0E 00 87 76 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B7 [11:39:19]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:39:19]wFMCommunicate OK [11:39:19]SAM_PROTO_GetShiftState done [11:39:19]FM_GetShiftState done [11:39:19]req_shift_opened done [11:39:19]requested_item shift.open_date is exist - process it [11:39:19]req_shift_open_date [11:39:19]req_shift_open_date done [11:39:19]produce_requested_data done [11:39:19]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260646,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:39:19]process_action_free close_receipt [11:39:19]json_value_free [11:39:19]json_value_free done [11:39:19]process_json_proto returns [11:39:19]Send response to host [11:39:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260646,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:39:19]free response buf [11:39:19]execute_script done [11:39:19]execute_script returns [11:39:19]free content buf [11:39:19]Sock 10.Close socket [11:39:19]Sock 10.Thread stoped [11:39:21]OFD Sender: No OFD packet to send [11:39:26]OFD Sender: No OFD packet to send [11:39:31]OFD Sender: No OFD packet to send [11:39:36]OFD Sender: No OFD packet to send [11:39:41]OFD Sender: No OFD packet to send [11:39:46]OFD Sender: No OFD packet to send [11:39:51]OFD Sender: No OFD packet to send [11:39:56]OFD Sender: No OFD packet to send [11:40:01]OFD Sender: No OFD packet to send [11:40:04]accept exits with 7 [11:40:04]New connection [11:40:04]New thread 3066617188 created [11:40:04]Thread 3066473828 joined [11:40:04]Waiting for new connection... [11:40:04] Sock 7.Parse request [11:40:04]Sock 7.Check first char [11:40:04]Sock 7.First char is OK [11:40:04]request: POST /json_proto HTTP/1.0 [11:40:04]Method: POST [11:40:04]URL: /json_proto [11:40:04]Method is POST - this is cgi request [11:40:04]url: /json_proto [11:40:04]query_string will be loaded in cgi processing [11:40:04]execute_cgi json_proto POST (null) [11:40:04]execute_cgi path=json_proto method=POST [11:40:04]POST find Content-Length [11:40:04]Host: 172.17.55.133:8080 [11:40:04]Content-Length: 683 [11:40:04]Content-Type: application/json [11:40:04] [11:40:04]POST finish read [11:40:04]Found Content-Length = 683 [11:40:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:04]execute_script... [11:40: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)1036194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:04]POST & json_proto [11:40:04]process_json_proto [11:40:04]json parsed OK: [11:40:04]protocol is kg_v1.0 [11:40:04]action value=close_receipt [11:40:04]process_action close_receipt [11:40:04]cmd_close_receipt [11:40:04]MH_GetDate [11:40:04]Write to MH i2c: F0 00 00 88 76 ED [11:40:04]Write i2c OK [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: F0 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: F0 09 00 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: F0 09 00 88 76 00 99 DD C1 66 34 48 D8 65 4C [11:40:04]GetLastDocTimeStamp 1723981158 [11:40:04]current date 1723981209 [11:40:04]FM_GetShiftState [11:40:04]SAM_PROTO_GetShiftState [11:40:04]wFMCommunicate request_size=4 [11:40:04]MH_SAM_APDU [11:40:04]CAPDU: 80 13 01 00 [11:40:04]Write to MH i2c: E2 08 00 89 76 80 13 01 00 00 00 00 00 7C [11:40:04]Write i2c OK [11:40:04]MH_I2C_Read... [11:40:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:04]Read from MH i2c: E2 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: E2 0E 00 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: E2 0E 00 89 76 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B9 [11:40:04]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:40:04]wFMCommunicate OK [11:40:04]SAM_PROTO_GetShiftState done [11:40:04]FM_GetShiftState done [11:40:04]opened in 1723940556 [11:40:04]opened+sec_in_day 1724026956 [11:40:04]quantity*price = 100005 [11:40:04]sum+1 = 100006 [11:40:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 205 18.08.2024 11:40 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260647 ФПД: 277640160195573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T114009&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260647&fm=277640160195573&tin=02508201610067®Number=0000000000091865&sum=100000 [11:40:05]StoreToDocumentArchive [11:40:05]shift 449 fd 260647 [11:40:05]save to /storage/0449/doc_00260647 [11:40:05]save last doc name /storage/0449/doc_00260647 to /storage/kkm_last_doc_name [11:40:05]save OK [11:40:05]Clear old archive folders... [11:40:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:40:05]tlvbuf is 00451310 [11:40:05]SAM_PROTO_ClearQueue [11:40:05]wFMCommunicate request_size=4 [11:40:05]MH_SAM_APDU [11:40:05]CAPDU: 80 09 00 00 [11:40:05]Write to MH i2c: E2 08 00 96 76 80 09 00 00 00 00 00 00 7E [11:40:05]Write i2c OK [11:40:05]MH_I2C_Read... [11:40:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:05]Read from MH i2c: E2 [11:40:05]MH_I2C_Read... [11:40:05]Read from MH i2c: E2 03 00 [11:40:05]MH_I2C_Read... [11:40:05]Read from MH i2c: E2 03 00 96 76 00 90 00 80 [11:40:05]RAPDU: 90 00 [11:40:05]wFMCommunicate OK [11:40:05]SAM_PROTO_ClearQueue done [11:40:05]KKMCreateOFDPacket [11:40:05]OFDProtocolAddRootSTLVToBuf [11:40:05]FM_MakeSignedData [11:40:05]FM_MakeSignedData [11:40:05]SAM_PROTO_SignData [11:40:05]wFMCommunicate request_size=4 [11:40:05]MH_SAM_APDU [11:40:05]CAPDU: 80 0D 01 02 [11:40:05]Write to MH i2c: E2 08 00 97 76 80 0D 01 02 00 00 00 00 86 [11:40:05]Write i2c OK [11:40:05]MH_I2C_Read... [11:40:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:06]Read from MH i2c: E2 [11:40:06]MH_I2C_Read... [11:40:06]Read from MH i2c: E2 03 00 [11:40:06]MH_I2C_Read... [11:40:06]Read from MH i2c: E2 03 00 97 76 00 90 00 81 [11:40:06]RAPDU: 90 00 [11:40:06]wFMCommunicate OK [11:40:06]wFMCommunicate request_size=255 [11:40:06]MH_SAM_APDU [11:40:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 99 DD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 27 FA 03 00 35 04 06 00 FC [11:40:06]Write to MH i2c: E2 02 01 98 76 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 99 DD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 27 FA 03 00 35 04 06 00 FC 00 00 DE [11:40:06]Write i2c OK [11:40:06]MH_I2C_Read... [11:40:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:06]Read from MH i2c: E2 [11:40:06]MH_I2C_Read... [11:40:06]Read from MH i2c: E2 03 00 [11:40:06]MH_I2C_Read... [11:40:06]Read from MH i2c: E2 03 00 98 76 00 90 00 82 [11:40:06]RAPDU: 90 00 [11:40:06]wFMCommunicate OK [11:40:06]wFMCommunicate request_size=10 [11:40:06]MH_SAM_APDU [11:40:06]CAPDU: 80 0D 02 02 05 83 23 1F B3 F5 [11:40:06]Write to MH i2c: E2 0D 00 99 76 80 0D 02 02 05 00 83 23 1F B3 F5 00 00 00 [11:40:06]Write i2c OK [11:40:06]MH_I2C_Read... [11:40:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:06]Read from MH i2c: E2 [11:40:06]MH_I2C_Read... [11:40:06]Read from MH i2c: E2 03 00 [11:40:06]MH_I2C_Read... [11:40:06]Read from MH i2c: E2 03 00 99 76 00 90 00 83 [11:40:06]RAPDU: 90 00 [11:40:06]wFMCommunicate OK [11:40:06]wFMCommunicate request_size=4 [11:40:06]MH_SAM_APDU [11:40:06]CAPDU: 80 0D 03 02 [11:40:06]Write to MH i2c: E2 08 00 9A 76 80 0D 03 02 00 00 00 00 8B [11:40:06]Write i2c OK [11:40:06]MH_I2C_Read... [11:40:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:06]Read from MH i2c: E2 [11:40:06]MH_I2C_Read... [11:40:06]Read from MH i2c: E2 0B 00 [11:40:06]MH_I2C_Read... [11:40:06]Read from MH i2c: E2 0B 00 9A 76 00 11 77 FE 1D A9 90 47 33 90 00 E2 [11:40:06]RAPDU: 11 77 FE 1D A9 90 47 33 90 00 [11:40:06]wFMCommunicate OK [11:40:06]SAM_PROTO_SignData done [11:40:06]FM_MakeSignedData done [11:40:06]CreateOFDProtocolMessage [11:40:06]wFMCommunicate request_size=4 [11:40:06]MH_SAM_APDU [11:40:06]CAPDU: 80 11 00 00 [11:40:06]Write to MH i2c: E2 08 00 9B 76 80 11 00 00 00 00 00 00 8B [11:40:06]Write i2c OK [11:40:06]MH_I2C_Read... [11:40:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:06]Read from MH i2c: E2 [11:40:06]MH_I2C_Read... [11:40:06]Read from MH i2c: E2 17 00 [11:40:06]MH_I2C_Read... [11:40:06]Read from MH i2c: E2 17 00 9B 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D8 [11:40:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:40:06]wFMCommunicate OK [11:40:06]CreateOFDProtocolMessage done [11:40:06]OFDSenderStorePacket 260647 [11:40:06]StoreOFDPacket docnum=260647 [11:40:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 64 41 07 01 6B 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 99 DD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 27 FA 03 00 35 04 06 00 FC 83 23 1F B3 F5 11 77 FE 1D A9 90 47 33 [11:40:06]CheckFolder [11:40:06]dirname=/storage/ofd_packets [11:40:06]CheckFolder done [11:40:06]ProducePacketName [11:40:06]name=ofd_packets/00260647 [11:40:06]NVStorageSaveData ofd_packets/00260647 [11:40:06]File name is /storage/ofd_packets/00260647 [11:40:06]Write 301 bytes [11:40:06]NVStorageSaveData done [11:40:06]OFDSenderStorePacket done [11:40:06]KKMCreateOFDPacket done [11:40:06]NVStorageSaveData kkm_last_timestamp [11:40:06]File name is /storage/kkm_last_timestamp [11:40:06]Write 4 bytes [11:40:06]NVStorageSaveData done [11:40:06]ExternCall_PrintAddStr [11:40:06]wPrintStart [11:40:06]Write to MH i2c: 01 00 00 9C 76 12 [11:40:06]Write i2c OK [11:40:06]MH_I2C_Read... [11:40:06]Read from MH i2c: 01 [11:40:06]MH_I2C_Read... [11:40:06]Read from MH i2c: 01 07 00 [11:40:06]MH_I2C_Read... [11:40:06]Read from MH i2c: 01 07 00 9C 76 00 00 00 00 00 FF 0F 27 [11:40:06]RasterBufferAndPrint [11:40:06]line Счет N : (1)1036194 [11:40:06]line ИНН: 02508201610067 [11:40:06]line Контрольно-Кассовый Чек [11:40:06]line ПРОДАЖА [11:40:06]line ТРК (МРК, ГНК) : 32 [11:40:06]line Товар: 2710124130 [11:40:06]line Аи-92-К-5 [11:40:06]line 14.750 * 67.80 [11:40:06]line = 1000.05 [11:40:06]line НДС 12% НСП 1% [11:40:06]line > о реализуемом товаре [11:40:06]line ОКРУГЛЕНИЕ: -0.05 [11:40:06]line ИТОГО: 1000.00 [11:40:06]line Внесено: 1000.00 [11:40:06]line СДАЧА: 0.00 [11:40:06]line НСП 1% : 8.85 [11:40:06]line НДС 12% : 106.20 [11:40:06]line Наличными: 1000.00 [11:40:06]line Безнал.: 0.00 [11:40:06]line Место: АЗС № 94 "Партнер Нефть" [11:40:06]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:40:06]line СНО: Общий режим [11:40:06]line Чек 205 18.08.2024 11:40 [11:40:06]line Смена: 449 ФФД: 1.0 [11:40:06]line ЗНМ: 0300000099 [11:40:06]line РНМ: 0000000000091865 [11:40:06]line Версия ККМ: 001 [11:40:06]line ФМ: 0000000000871820 [11:40:06]line ФД: 260647 [11:40:06]line ФПД: 277640160195573 [11:40:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T114009&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260647&fm=277640160195573&tin=02508201610067®Number=0000000000091865&sum=100000 [11:40:06]written 0, free lines is 4095 [11:40:06]OFD Sender: Processing packet 260647 [packets to send 192, broken 191] [11:40:06]ProducePacketName [11:40:06]name=ofd_packets/00260647 [11:40:06]OFD Sender: To server: pG, [11:40:06]CommunicateWithHost lk.salyk.kg:30040 [11:40:06]ConnectInit lk.salyk.kg [11:40:06]Write to MH i2c: 01 00 00 C7 76 3D [11:40:06]Write i2c OK [11:40:06]MH_I2C_Read... [11:40:06]Read from MH i2c: 01 [11:40:06]MH_I2C_Read... [11:40:06]Read from MH i2c: 01 07 00 [11:40:06]MH_I2C_Read... [11:40:06]Read from MH i2c: 01 07 00 C7 76 00 00 00 00 00 66 0C B6 [11:40:06]RasterBufferAndPrint [11:40:06]line [11:40:06]line [11:40:06]line [11:40:06]line [11:40:06]line [11:40:06]written 0, free lines is 3178 [11:40:06]MH_Cut [11:40:06]Write to MH i2c: D1 01 00 CE 76 01 16 [11:40:06]Write i2c OK [11:40:06]MH_I2C_Read... [11:40:06]Read from MH i2c: D1 [11:40:06]MH_I2C_Read... [11:40:06]Read from MH i2c: D1 01 00 [11:40:06]MH_I2C_Read... [11:40:06]Read from MH i2c: D1 01 00 CE 76 00 15 [11:40:06]Write to MH i2c: 01 00 00 CF 76 45 [11:40:06]Write i2c OK [11:40:06]MH_I2C_Read... [11:40:07]Connected sock=10 [11:40: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 30 0F 01 00 00 64 41 07 01 6B 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 99 DD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 27 FA 03 00 35 04 06 00 FC 83 23 1F B3 F5 11 77 FE 1D A9 90 47 33 [11:40: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 30 4F 00 00 00 0C 15 47 00 6F 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 30 10 04 04 00 27 FA 03 00 F4 03 04 00 EE 86 C1 66 B6 04 01 00 00 4B 6D 1D FB 7A 85 AA 5B [11:40:07]CommunicateWithHost err = 0 [11:40:07]CheckOFDResponse [11:40:07]1017 (14) - 77093643461234 [11:40:07]1041 (16) - 0000000000871820 [11:40:07]1040 (4) - 260647 [11:40:07]1012 (4) - 18.08.2024 05:30 [11:40:07]1206 (1) - 0 [11:40:07]OFD Sender: Remove packet 260647 [11:40:07]ProducePacketName [11:40:07]name=ofd_packets/00260647 [11:40:07]NVStorageDeleteData [11:40:07]OFD Sender: No OFD packet to send [11:40:08]*** Cut start [11:40:08]*** Purtial cut [11:40:08]*** Stage 1: CUTSNS_PIN = 1 [11:40:10]Read from MH i2c: 01 [11:40:10]MH_I2C_Read... [11:40:10]*** Stop cut motor [11:40:10]*** Cut end [11:40:10]Read from MH i2c: 01 07 00 [11:40:10]MH_I2C_Read... [11:40:10]Read from MH i2c: 01 07 00 CF 76 00 00 00 00 00 FF 0F 5A [11:40:10]process_action close_receipt done [11:40:10]requested_data is exist [11:40:10]produce_requested_data [11:40:10]requested_item fm.sn is exist - process it [11:40:10]wFMCommunicate request_size=4 [11:40:10]MH_SAM_APDU [11:40:10]CAPDU: 80 11 00 00 [11:40:10]Write to MH i2c: E2 08 00 D0 76 80 11 00 00 00 00 00 00 C0 [11:40:10]Write i2c OK [11:40:10]MH_I2C_Read... [11:40:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:10]Read from MH i2c: E2 [11:40:10]MH_I2C_Read... [11:40:10]Read from MH i2c: E2 17 00 [11:40:10]MH_I2C_Read... [11:40:10]Read from MH i2c: E2 17 00 D0 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 0D [11:40:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:40:10]wFMCommunicate OK [11:40:10]requested_item fd.num is exist - process it [11:40:10]SAM_PROTO_GetFieldsCounters [11:40:10]wFMCommunicate request_size=4 [11:40:10]MH_SAM_APDU [11:40:10]CAPDU: 80 13 00 00 [11:40:10]Write to MH i2c: E2 08 00 D1 76 80 13 00 00 00 00 00 00 C3 [11:40:10]Write i2c OK [11:40:10]MH_I2C_Read... [11:40:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:10]Read from MH i2c: E2 [11:40:10]MH_I2C_Read... [11:40:10]Read from MH i2c: E2 62 00 [11:40:10]MH_I2C_Read... [11:40:10]Read from MH i2c: E2 62 00 D1 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 27 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [11:40: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 27 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:40:10]wFMCommunicate OK [11:40:10]SAM_PROTO_GetFieldsCounters done [11:40:10]requested_item shift.num is exist - process it [11:40:10]requested_item shift.opened is exist - process it [11:40:10]req_shift_opened [11:40:10]FM_GetShiftState [11:40:10]SAM_PROTO_GetShiftState [11:40:10]wFMCommunicate request_size=4 [11:40:10]MH_SAM_APDU [11:40:10]CAPDU: 80 13 01 00 [11:40:10]Write to MH i2c: E2 08 00 D2 76 80 13 01 00 00 00 00 00 C5 [11:40:10]Write i2c OK [11:40:10]MH_I2C_Read... [11:40:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:10]Read from MH i2c: E2 [11:40:10]MH_I2C_Read... [11:40:10]Read from MH i2c: E2 0E 00 [11:40:10]MH_I2C_Read... [11:40:10]Read from MH i2c: E2 0E 00 D2 76 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 02 [11:40:10]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:40:10]wFMCommunicate OK [11:40:10]SAM_PROTO_GetShiftState done [11:40:10]FM_GetShiftState done [11:40:10]req_shift_opened done [11:40:10]requested_item shift.open_date is exist - process it [11:40:10]req_shift_open_date [11:40:10]req_shift_open_date done [11:40:10]produce_requested_data done [11:40:10]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260647,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:40:10]process_action_free close_receipt [11:40:10]json_value_free [11:40:10]json_value_free done [11:40:10]process_json_proto returns [11:40:10]Send response to host [11:40:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260647,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:40:10]free response buf [11:40:10]execute_script done [11:40:10]execute_script returns [11:40:10]free content buf [11:40:10]Sock 7.Close socket [11:40:10]Sock 7.Thread stoped [11:40:12]OFD Sender: No OFD packet to send [11:40:17]OFD Sender: No OFD packet to send [11:40:22]OFD Sender: No OFD packet to send [11:40:27]OFD Sender: No OFD packet to send [11:40:32]OFD Sender: No OFD packet to send [11:40:37]OFD Sender: No OFD packet to send [11:40:42]OFD Sender: No OFD packet to send [11:40:47]OFD Sender: No OFD packet to send [11:40:52]OFD Sender: No OFD packet to send [11:40:54]accept exits with 9 [11:40:54]New connection [11:40:54]New thread 3066473828 created [11:40:54]Thread 3066617188 joined [11:40:54]Waiting for new connection... [11:40:54] Sock 9.Parse request [11:40:54]Sock 9.Check first char [11:40:54]Sock 9.First char is OK [11:40:54]request: POST /json_proto HTTP/1.0 [11:40:54]Method: POST [11:40:54]URL: /json_proto [11:40:54]Method is POST - this is cgi request [11:40:54]url: /json_proto [11:40:54]query_string will be loaded in cgi processing [11:40:54]execute_cgi json_proto POST (null) [11:40:54]execute_cgi path=json_proto method=POST [11:40:54]POST find Content-Length [11:40:54]Host: 172.17.55.133:8080 [11:40:54]Content-Length: 683 [11:40:54]Content-Type: application/json [11:40:54] [11:40:54]POST finish read [11:40:54]Found Content-Length = 683 [11:40:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036195", "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" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:54]execute_script... [11:40: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)1036195", "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" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:54]POST & json_proto [11:40:54]process_json_proto [11:40:54]json parsed OK: [11:40:54]protocol is kg_v1.0 [11:40:54]action value=close_receipt [11:40:54]process_action close_receipt [11:40:54]cmd_close_receipt [11:40:54]MH_GetDate [11:40:54]Write to MH i2c: F0 00 00 D3 76 38 [11:40:54]Write i2c OK [11:40:54]MH_I2C_Read... [11:40:54]Read from MH i2c: F0 [11:40:54]MH_I2C_Read... [11:40:54]Read from MH i2c: F0 09 00 [11:40:54]MH_I2C_Read... [11:40:54]Read from MH i2c: F0 09 00 D3 76 00 CB DD C1 66 34 48 D8 65 C9 [11:40:54]GetLastDocTimeStamp 1723981209 [11:40:54]current date 1723981259 [11:40:54]FM_GetShiftState [11:40:54]SAM_PROTO_GetShiftState [11:40:54]wFMCommunicate request_size=4 [11:40:54]MH_SAM_APDU [11:40:54]CAPDU: 80 13 01 00 [11:40:54]Write to MH i2c: E2 08 00 D4 76 80 13 01 00 00 00 00 00 C7 [11:40:54]Write i2c OK [11:40:54]MH_I2C_Read... [11:40:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:54]Read from MH i2c: E2 [11:40:54]MH_I2C_Read... [11:40:54]Read from MH i2c: E2 0E 00 [11:40:54]MH_I2C_Read... [11:40:54]Read from MH i2c: E2 0E 00 D4 76 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 04 [11:40:54]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:40:54]wFMCommunicate OK [11:40:54]SAM_PROTO_GetShiftState done [11:40:54]FM_GetShiftState done [11:40:54]opened in 1723940556 [11:40:54]opened+sec_in_day 1724026956 [11:40:54]quantity*price = 150032 [11:40:54]sum+1 = 150033 [11:40:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 206 18.08.2024 11:40 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260648 ФПД: 190625843162814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T114059&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260648&fm=190625843162814&tin=02508201610067®Number=0000000000091865&sum=150000 [11:40:55]StoreToDocumentArchive [11:40:55]shift 449 fd 260648 [11:40:55]save to /storage/0449/doc_00260648 [11:40:55]save last doc name /storage/0449/doc_00260648 to /storage/kkm_last_doc_name [11:40:55]save OK [11:40:55]Clear old archive folders... [11:40:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:40:55]tlvbuf is 003834F0 [11:40:55]SAM_PROTO_ClearQueue [11:40:55]wFMCommunicate request_size=4 [11:40:55]MH_SAM_APDU [11:40:55]CAPDU: 80 09 00 00 [11:40:55]Write to MH i2c: E2 08 00 E1 76 80 09 00 00 00 00 00 00 C9 [11:40:55]Write i2c OK [11:40:55]MH_I2C_Read... [11:40:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:55]Read from MH i2c: E2 [11:40:55]MH_I2C_Read... [11:40:55]Read from MH i2c: E2 03 00 [11:40:55]MH_I2C_Read... [11:40:55]Read from MH i2c: E2 03 00 E1 76 00 90 00 CB [11:40:55]RAPDU: 90 00 [11:40:55]wFMCommunicate OK [11:40:55]SAM_PROTO_ClearQueue done [11:40:55]KKMCreateOFDPacket [11:40:55]OFDProtocolAddRootSTLVToBuf [11:40:55]FM_MakeSignedData [11:40:55]FM_MakeSignedData [11:40:55]SAM_PROTO_SignData [11:40:55]wFMCommunicate request_size=4 [11:40:55]MH_SAM_APDU [11:40:55]CAPDU: 80 0D 01 02 [11:40:55]Write to MH i2c: E2 08 00 E2 76 80 0D 01 02 00 00 00 00 D1 [11:40:55]Write i2c OK [11:40:55]MH_I2C_Read... [11:40:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:55]Read from MH i2c: E2 [11:40:55]MH_I2C_Read... [11:40:55]Read from MH i2c: E2 03 00 [11:40:55]MH_I2C_Read... [11:40:55]Read from MH i2c: E2 03 00 E2 76 00 90 00 CC [11:40:55]RAPDU: 90 00 [11:40:55]wFMCommunicate OK [11:40:55]wFMCommunicate request_size=255 [11:40:55]MH_SAM_APDU [11:40: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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 CE 00 00 00 F4 03 04 00 CB DD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 28 FA 03 00 35 04 06 00 AD [11:40:55]Write to MH i2c: E2 02 01 E3 76 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 CE 00 00 00 F4 03 04 00 CB DD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 28 FA 03 00 35 04 06 00 AD 00 00 F2 [11:40:55]Write i2c OK [11:40:55]MH_I2C_Read... [11:40:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:56]Read from MH i2c: E2 [11:40:56]MH_I2C_Read... [11:40:56]Read from MH i2c: E2 03 00 [11:40:56]MH_I2C_Read... [11:40:56]Read from MH i2c: E2 03 00 E3 76 00 90 00 CD [11:40:56]RAPDU: 90 00 [11:40:56]wFMCommunicate OK [11:40:56]wFMCommunicate request_size=10 [11:40:56]MH_SAM_APDU [11:40:56]CAPDU: 80 0D 02 02 05 5F 89 AA AE BE [11:40:56]Write to MH i2c: E2 0D 00 E4 76 80 0D 02 02 05 00 5F 89 AA AE BE 00 00 DC [11:40:56]Write i2c OK [11:40:56]MH_I2C_Read... [11:40:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:56]Read from MH i2c: E2 [11:40:56]MH_I2C_Read... [11:40:56]Read from MH i2c: E2 03 00 [11:40:56]MH_I2C_Read... [11:40:56]Read from MH i2c: E2 03 00 E4 76 00 90 00 CE [11:40:56]RAPDU: 90 00 [11:40:56]wFMCommunicate OK [11:40:56]wFMCommunicate request_size=4 [11:40:56]MH_SAM_APDU [11:40:56]CAPDU: 80 0D 03 02 [11:40:56]Write to MH i2c: E2 08 00 E5 76 80 0D 03 02 00 00 00 00 D6 [11:40:56]Write i2c OK [11:40:56]MH_I2C_Read... [11:40:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:56]Read from MH i2c: E2 [11:40:56]MH_I2C_Read... [11:40:56]Read from MH i2c: E2 0B 00 [11:40:56]MH_I2C_Read... [11:40:56]Read from MH i2c: E2 0B 00 E5 76 00 30 BF 00 69 0E 61 FC F7 90 00 91 [11:40:56]RAPDU: 30 BF 00 69 0E 61 FC F7 90 00 [11:40:56]wFMCommunicate OK [11:40:56]SAM_PROTO_SignData done [11:40:56]FM_MakeSignedData done [11:40:56]CreateOFDProtocolMessage [11:40:56]wFMCommunicate request_size=4 [11:40:56]MH_SAM_APDU [11:40:56]CAPDU: 80 11 00 00 [11:40:56]Write to MH i2c: E2 08 00 E6 76 80 11 00 00 00 00 00 00 D6 [11:40:56]Write i2c OK [11:40:56]MH_I2C_Read... [11:40:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:56]Read from MH i2c: E2 [11:40:56]MH_I2C_Read... [11:40:56]Read from MH i2c: E2 17 00 [11:40:56]MH_I2C_Read... [11:40:56]Read from MH i2c: E2 17 00 E6 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 23 [11:40:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:40:56]wFMCommunicate OK [11:40:56]CreateOFDProtocolMessage done [11:40:56]OFDSenderStorePacket 260648 [11:40:56]StoreOFDPacket docnum=260648 [11:40:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 39 F8 07 01 15 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 CE 00 00 00 F4 03 04 00 CB DD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 28 FA 03 00 35 04 06 00 AD 5F 89 AA AE BE 30 BF 00 69 0E 61 FC F7 [11:40:56]CheckFolder [11:40:56]dirname=/storage/ofd_packets [11:40:56]CheckFolder done [11:40:56]ProducePacketName [11:40:56]name=ofd_packets/00260648 [11:40:56]NVStorageSaveData ofd_packets/00260648 [11:40:56]File name is /storage/ofd_packets/00260648 [11:40:56]Write 301 bytes [11:40:56]NVStorageSaveData done [11:40:56]OFDSenderStorePacket done [11:40:56]KKMCreateOFDPacket done [11:40:56]NVStorageSaveData kkm_last_timestamp [11:40:56]File name is /storage/kkm_last_timestamp [11:40:56]Write 4 bytes [11:40:56]NVStorageSaveData done [11:40:56]ExternCall_PrintAddStr [11:40:56]wPrintStart [11:40:56]Write to MH i2c: 01 00 00 E7 76 5D [11:40:56]Write i2c OK [11:40:56]MH_I2C_Read... [11:40:56]Read from MH i2c: 01 [11:40:56]MH_I2C_Read... [11:40:56]Read from MH i2c: 01 07 00 [11:40:56]MH_I2C_Read... [11:40:56]Read from MH i2c: 01 07 00 E7 76 00 00 00 00 00 FF 0F 72 [11:40:56]RasterBufferAndPrint [11:40:56]line Счет N : (1)1036195 [11:40:56]line ИНН: 02508201610067 [11:40:56]line Контрольно-Кассовый Чек [11:40:56]line ПРОДАЖА [11:40:56]line ТРК (МРК, ГНК) : 13 [11:40:56]line Товар: 2710124500 [11:40:56]line Аи-95-К-5 [11:40:56]line 20.220 * 74.20 [11:40:56]line = 1500.32 [11:40:56]line НДС 12% НСП 1% [11:40:56]line > о реализуемом товаре [11:40:56]line ОКРУГЛЕНИЕ: -0.32 [11:40:56]line ИТОГО: 1500.00 [11:40:56]line Внесено: 1500.00 [11:40:56]line СДАЧА: 0.00 [11:40:56]line НСП 1% : 13.28 [11:40:56]line НДС 12% : 159.33 [11:40:56]line Наличными: 1500.00 [11:40:56]line Безнал.: 0.00 [11:40:56]line Место: АЗС № 94 "Партнер Нефть" [11:40:56]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:40:56]line СНО: Общий режим [11:40:56]line Чек 206 18.08.2024 11:40 [11:40:56]line Смена: 449 ФФД: 1.0 [11:40:56]line ЗНМ: 0300000099 [11:40:56]line РНМ: 0000000000091865 [11:40:56]line Версия ККМ: 001 [11:40:56]line ФМ: 0000000000871820 [11:40:56]line ФД: 260648 [11:40:56]line ФПД: 190625843162814 [11:40:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T114059&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260648&fm=190625843162814&tin=02508201610067®Number=0000000000091865&sum=150000 [11:40:56]written 0, free lines is 4095 [11:40:56]OFD Sender: Processing packet 260648 [packets to send 192, broken 191] [11:40:56]ProducePacketName [11:40:56]name=ofd_packets/00260648 [11:40:56]OFD Sender: To server: pG, [11:40:56]CommunicateWithHost lk.salyk.kg:30040 [11:40:56]ConnectInit lk.salyk.kg [11:40:56]Connected sock=10 [11:40: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 30 0F 01 00 00 39 F8 07 01 15 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 CE 00 00 00 F4 03 04 00 CB DD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 28 FA 03 00 35 04 06 00 AD 5F 89 AA AE BE 30 BF 00 69 0E 61 FC F7 [11:40: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 30 4F 00 00 00 56 76 47 00 1C 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 30 10 04 04 00 28 FA 03 00 F4 03 04 00 20 87 C1 66 B6 04 01 00 00 00 69 2B A1 2C 70 8B E7 [11:40:56]CommunicateWithHost err = 0 [11:40:56]CheckOFDResponse [11:40:56]1017 (14) - 77093643461234 [11:40:56]1041 (16) - 0000000000871820 [11:40:56]1040 (4) - 260648 [11:40:56]1012 (4) - 18.08.2024 05:31 [11:40:56]1206 (1) - 0 [11:40:56]OFD Sender: Remove packet 260648 [11:40:56]ProducePacketName [11:40:56]name=ofd_packets/00260648 [11:40:56]NVStorageDeleteData [11:40:56]Write to MH i2c: 01 00 00 12 77 89 [11:40:56]Write i2c OK [11:40:56]MH_I2C_Read... [11:40:56]Read from MH i2c: 01 [11:40:56]MH_I2C_Read... [11:40:56]Read from MH i2c: 01 07 00 [11:40:56]MH_I2C_Read... [11:40:56]Read from MH i2c: 01 07 00 12 77 00 00 00 00 00 62 0C FE [11:40:56]RasterBufferAndPrint [11:40:56]line [11:40:56]line [11:40:56]line [11:40:56]line [11:40:56]line [11:40:56]written 0, free lines is 3174 [11:40:56]MH_Cut [11:40:56]Write to MH i2c: D1 01 00 19 77 01 62 [11:40:56]Write i2c OK [11:40:56]MH_I2C_Read... [11:40:56]Read from MH i2c: D1 [11:40:56]MH_I2C_Read... [11:40:56]Read from MH i2c: D1 01 00 [11:40:56]MH_I2C_Read... [11:40:56]Read from MH i2c: D1 01 00 19 77 00 61 [11:40:56]Write to MH i2c: 01 00 00 1A 77 91 [11:40:56]Write i2c OK [11:40:56]MH_I2C_Read... [11:40:57]OFD Sender: No OFD packet to send [11:40:57]*** Cut start [11:40:57]*** Purtial cut [11:40:57]*** Stage 1: CUTSNS_PIN = 1 [11:40:59]Read from MH i2c: 01 [11:40:59]MH_I2C_Read... [11:40:59]*** Stop cut motor [11:40:59]*** Cut end [11:40:59]Read from MH i2c: 01 07 00 [11:40:59]MH_I2C_Read... [11:40:59]Read from MH i2c: 01 07 00 1A 77 00 00 00 00 00 FF 0F A6 [11:40:59]process_action close_receipt done [11:40:59]requested_data is exist [11:40:59]produce_requested_data [11:40:59]requested_item fm.sn is exist - process it [11:40:59]wFMCommunicate request_size=4 [11:40:59]MH_SAM_APDU [11:40:59]CAPDU: 80 11 00 00 [11:40:59]Write to MH i2c: E2 08 00 1B 77 80 11 00 00 00 00 00 00 0C [11:40:59]Write i2c OK [11:40:59]MH_I2C_Read... [11:40:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:59]Read from MH i2c: E2 [11:40:59]MH_I2C_Read... [11:40:59]Read from MH i2c: E2 17 00 [11:40:59]MH_I2C_Read... [11:40:59]Read from MH i2c: E2 17 00 1B 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 59 [11:40:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:40:59]wFMCommunicate OK [11:40:59]requested_item fd.num is exist - process it [11:40:59]SAM_PROTO_GetFieldsCounters [11:40:59]wFMCommunicate request_size=4 [11:40:59]MH_SAM_APDU [11:40:59]CAPDU: 80 13 00 00 [11:40:59]Write to MH i2c: E2 08 00 1C 77 80 13 00 00 00 00 00 00 0F [11:40:59]Write i2c OK [11:40:59]MH_I2C_Read... [11:41:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:41:00]Read from MH i2c: E2 [11:41:00]MH_I2C_Read... [11:41:00]Read from MH i2c: E2 62 00 [11:41:00]MH_I2C_Read... [11:41:00]Read from MH i2c: E2 62 00 1C 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 28 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [11: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 28 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:41:00]wFMCommunicate OK [11:41:00]SAM_PROTO_GetFieldsCounters done [11:41:00]requested_item shift.num is exist - process it [11:41:00]requested_item shift.opened is exist - process it [11:41:00]req_shift_opened [11:41:00]FM_GetShiftState [11:41:00]SAM_PROTO_GetShiftState [11:41:00]wFMCommunicate request_size=4 [11:41:00]MH_SAM_APDU [11:41:00]CAPDU: 80 13 01 00 [11:41:00]Write to MH i2c: E2 08 00 1D 77 80 13 01 00 00 00 00 00 11 [11:41:00]Write i2c OK [11:41:00]MH_I2C_Read... [11:41:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:00]Read from MH i2c: E2 [11:41:00]MH_I2C_Read... [11:41:00]Read from MH i2c: E2 0E 00 [11:41:00]MH_I2C_Read... [11:41:00]Read from MH i2c: E2 0E 00 1D 77 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 4E [11:41:00]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:41:00]wFMCommunicate OK [11:41:00]SAM_PROTO_GetShiftState done [11:41:00]FM_GetShiftState done [11:41:00]req_shift_opened done [11:41:00]requested_item shift.open_date is exist - process it [11:41:00]req_shift_open_date [11:41:00]req_shift_open_date done [11:41:00]produce_requested_data done [11:41:00]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260648,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:41:00]process_action_free close_receipt [11:41:00]json_value_free [11:41:00]json_value_free done [11:41:00]process_json_proto returns [11:41:00]Send response to host [11:41:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260648,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:41:00]free response buf [11:41:00]execute_script done [11:41:00]execute_script returns [11:41:00]free content buf [11:41:00]Sock 9.Close socket [11:41:00]Sock 9.Thread stoped [11:41:02]OFD Sender: No OFD packet to send [11:41:07]OFD Sender: No OFD packet to send [11:41:12]OFD Sender: No OFD packet to send [11:41:17]OFD Sender: No OFD packet to send [11:41:22]OFD Sender: No OFD packet to send [11:41:27]OFD Sender: No OFD packet to send [11:41:32]OFD Sender: No OFD packet to send [11:41:37]OFD Sender: No OFD packet to send [11:41:42]OFD Sender: No OFD packet to send [11:41:47]OFD Sender: No OFD packet to send [11:41:52]OFD Sender: No OFD packet to send [11:41:57]OFD Sender: No OFD packet to send [11:42:02]OFD Sender: No OFD packet to send [11:42:07]OFD Sender: No OFD packet to send [11:42:12]OFD Sender: No OFD packet to send [11:42:17]OFD Sender: No OFD packet to send [11:42:22]OFD Sender: No OFD packet to send [11:42:27]OFD Sender: No OFD packet to send [11:42:32]OFD Sender: No OFD packet to send [11:42:37]OFD Sender: No OFD packet to send [11:42:42]OFD Sender: No OFD packet to send [11:42:47]OFD Sender: No OFD packet to send [11:42:52]OFD Sender: No OFD packet to send [11:42:57]OFD Sender: No OFD packet to send [11:43:02]OFD Sender: No OFD packet to send [11:43:07]OFD Sender: No OFD packet to send [11:43:12]OFD Sender: No OFD packet to send [11:43:17]OFD Sender: No OFD packet to send [11:43:22]OFD Sender: No OFD packet to send [11:43:27]OFD Sender: No OFD packet to send [11:43:32]OFD Sender: No OFD packet to send [11:43:37]OFD Sender: No OFD packet to send [11:43:42]OFD Sender: No OFD packet to send [11:43:47]OFD Sender: No OFD packet to send [11:43:52]OFD Sender: No OFD packet to send [11:43:57]OFD Sender: No OFD packet to send [11:44:02]OFD Sender: No OFD packet to send [11:44:07]OFD Sender: No OFD packet to send [11:44:12]OFD Sender: No OFD packet to send [11:44:17]OFD Sender: No OFD packet to send [11:44:22]OFD Sender: No OFD packet to send [11:44:27]OFD Sender: No OFD packet to send [11:44:32]OFD Sender: No OFD packet to send [11:44:37]OFD Sender: No OFD packet to send [11:44:42]OFD Sender: No OFD packet to send [11:44:47]OFD Sender: No OFD packet to send [11:44:52]OFD Sender: No OFD packet to send [11:44:57]OFD Sender: No OFD packet to send [11:45:02]OFD Sender: No OFD packet to send [11:45:07]OFD Sender: No OFD packet to send [11:45:12]OFD Sender: No OFD packet to send [11:45:17]OFD Sender: No OFD packet to send [11:45:22]OFD Sender: No OFD packet to send [11:45:27]OFD Sender: No OFD packet to send [11:45:32]OFD Sender: No OFD packet to send [11:45:37]OFD Sender: No OFD packet to send [11:45:42]OFD Sender: No OFD packet to send [11:45:47]OFD Sender: No OFD packet to send [11:45:52]OFD Sender: No OFD packet to send [11:45:57]OFD Sender: No OFD packet to send [11:46:02]OFD Sender: No OFD packet to send [11:46:07]OFD Sender: No OFD packet to send [11:46:12]OFD Sender: No OFD packet to send [11:46:17]OFD Sender: No OFD packet to send [11:46:22]OFD Sender: No OFD packet to send [11:46:27]OFD Sender: No OFD packet to send [11:46:32]OFD Sender: No OFD packet to send [11:46:37]OFD Sender: No OFD packet to send [11:46:42]OFD Sender: No OFD packet to send [11:46:47]OFD Sender: No OFD packet to send [11:46:52]OFD Sender: No OFD packet to send [11:46:57]OFD Sender: No OFD packet to send [11:47:02]OFD Sender: No OFD packet to send [11:47:07]OFD Sender: No OFD packet to send [11:47:12]OFD Sender: No OFD packet to send [11:47:17]OFD Sender: No OFD packet to send [11:47:22]OFD Sender: No OFD packet to send [11:47:27]accept exits with 7 [11:47:27]New connection [11:47:27]New thread 3066617188 created [11:47:27]Thread 3066473828 joined [11:47:27]Waiting for new connection... [11:47:27] Sock 7.Parse request [11:47:27]Sock 7.Check first char [11:47:27]Sock 7.First char is OK [11:47:27]request: POST /json_proto HTTP/1.0 [11:47:27]Method: POST [11:47:27]URL: /json_proto [11:47:27]Method is POST - this is cgi request [11:47:27]url: /json_proto [11:47:27]query_string will be loaded in cgi processing [11:47:27]execute_cgi json_proto POST (null) [11:47:27]execute_cgi path=json_proto method=POST [11:47:27]POST find Content-Length [11:47:27]Host: 172.17.55.133:8080 [11:47:27]Content-Length: 683 [11:47:27]Content-Type: application/json [11:47:27] [11:47:27]POST finish read [11:47:27]Found Content-Length = 683 [11:47:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036196", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:27]execute_script... [11:47: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)1036196", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:27]POST & json_proto [11:47:27]process_json_proto [11:47:27]json parsed OK: [11:47:27]protocol is kg_v1.0 [11:47:27]action value=close_receipt [11:47:27]process_action close_receipt [11:47:27]cmd_close_receipt [11:47:27]MH_GetDate [11:47:27]Write to MH i2c: F0 00 00 1E 77 84 [11:47:27]Write i2c OK [11:47:27]MH_I2C_Read... [11:47:27]Read from MH i2c: F0 [11:47:27]MH_I2C_Read... [11:47:27]Read from MH i2c: F0 09 00 [11:47:27]MH_I2C_Read... [11:47:27]Read from MH i2c: F0 09 00 1E 77 00 53 DF C1 66 34 48 D8 65 9F [11:47:27]GetLastDocTimeStamp 1723981259 [11:47:27]current date 1723981651 [11:47:27]FM_GetShiftState [11:47:27]SAM_PROTO_GetShiftState [11:47:27]wFMCommunicate request_size=4 [11:47:27]MH_SAM_APDU [11:47:27]CAPDU: 80 13 01 00 [11:47:27]Write to MH i2c: E2 08 00 1F 77 80 13 01 00 00 00 00 00 13 [11:47:27]Write i2c OK [11:47:27]MH_I2C_Read... [11:47:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:27]Read from MH i2c: E2 [11:47:27]MH_I2C_Read... [11:47:27]Read from MH i2c: E2 0E 00 [11:47:27]MH_I2C_Read... [11:47:27]Read from MH i2c: E2 0E 00 1F 77 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 50 [11:47:27]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:47:27]wFMCommunicate OK [11:47:27]SAM_PROTO_GetShiftState done [11:47:27]FM_GetShiftState done [11:47:27]opened in 1723940556 [11:47:27]opened+sec_in_day 1724026956 [11:47:27]quantity*price = 100021 [11:47:27]sum+1 = 100023 [11:47:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 207 18.08.2024 11:47 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260649 ФПД: 50491695067614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T114732&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260649&fm=50491695067614&tin=02508201610067®Number=0000000000091865&sum=100000 [11:47:28]StoreToDocumentArchive [11:47:28]shift 449 fd 260649 [11:47:28]save to /storage/0449/doc_00260649 [11:47:28]save last doc name /storage/0449/doc_00260649 to /storage/kkm_last_doc_name [11:47:28]save OK [11:47:28]Clear old archive folders... [11:47:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:47:28]tlvbuf is 00540820 [11:47:28]SAM_PROTO_ClearQueue [11:47:28]wFMCommunicate request_size=4 [11:47:28]MH_SAM_APDU [11:47:28]CAPDU: 80 09 00 00 [11:47:28]Write to MH i2c: E2 08 00 2C 77 80 09 00 00 00 00 00 00 15 [11:47:28]Write i2c OK [11:47:28]MH_I2C_Read... [11:47:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:28]Read from MH i2c: E2 [11:47:28]MH_I2C_Read... [11:47:28]Read from MH i2c: E2 03 00 [11:47:28]MH_I2C_Read... [11:47:28]Read from MH i2c: E2 03 00 2C 77 00 90 00 17 [11:47:28]RAPDU: 90 00 [11:47:28]wFMCommunicate OK [11:47:28]SAM_PROTO_ClearQueue done [11:47:28]KKMCreateOFDPacket [11:47:28]OFDProtocolAddRootSTLVToBuf [11:47:28]FM_MakeSignedData [11:47:28]FM_MakeSignedData [11:47:28]SAM_PROTO_SignData [11:47:28]wFMCommunicate request_size=4 [11:47:28]MH_SAM_APDU [11:47:28]CAPDU: 80 0D 01 02 [11:47:28]Write to MH i2c: E2 08 00 2D 77 80 0D 01 02 00 00 00 00 1D [11:47:28]Write i2c OK [11:47:28]MH_I2C_Read... [11:47:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:28]Read from MH i2c: E2 [11:47:28]MH_I2C_Read... [11:47:28]Read from MH i2c: E2 03 00 [11:47:28]MH_I2C_Read... [11:47:28]Read from MH i2c: E2 03 00 2D 77 00 90 00 18 [11:47:28]RAPDU: 90 00 [11:47:28]wFMCommunicate OK [11:47:28]wFMCommunicate request_size=255 [11:47:28]MH_SAM_APDU [11:47: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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 54 DF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 29 FA 03 00 35 04 06 00 2D [11:47:28]Write to MH i2c: E2 02 01 2E 77 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 54 DF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 29 FA 03 00 35 04 06 00 2D 00 00 05 [11:47:28]Write i2c OK [11:47:28]MH_I2C_Read... [11:47:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:28]Read from MH i2c: E2 [11:47:28]MH_I2C_Read... [11:47:28]Read from MH i2c: E2 03 00 [11:47:28]MH_I2C_Read... [11:47:28]Read from MH i2c: E2 03 00 2E 77 00 90 00 19 [11:47:28]RAPDU: 90 00 [11:47:28]wFMCommunicate OK [11:47:28]wFMCommunicate request_size=10 [11:47:28]MH_SAM_APDU [11:47:28]CAPDU: 80 0D 02 02 05 EC 03 8C 71 DE [11:47:28]Write to MH i2c: E2 0D 00 2F 77 80 0D 02 02 05 00 EC 03 8C 71 DE 00 00 F4 [11:47:29]Write i2c OK [11:47:29]MH_I2C_Read... [11:47:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:29]Read from MH i2c: E2 [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: E2 03 00 [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: E2 03 00 2F 77 00 90 00 1A [11:47:29]RAPDU: 90 00 [11:47:29]wFMCommunicate OK [11:47:29]wFMCommunicate request_size=4 [11:47:29]MH_SAM_APDU [11:47:29]CAPDU: 80 0D 03 02 [11:47:29]Write to MH i2c: E2 08 00 30 77 80 0D 03 02 00 00 00 00 22 [11:47:29]Write i2c OK [11:47:29]MH_I2C_Read... [11:47:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:29]Read from MH i2c: E2 [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: E2 0B 00 [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: E2 0B 00 30 77 00 06 EF 1D 76 C4 FA 8B 88 90 00 7C [11:47:29]RAPDU: 06 EF 1D 76 C4 FA 8B 88 90 00 [11:47:29]wFMCommunicate OK [11:47:29]SAM_PROTO_SignData done [11:47:29]FM_MakeSignedData done [11:47:29]CreateOFDProtocolMessage [11:47:29]wFMCommunicate request_size=4 [11:47:29]MH_SAM_APDU [11:47:29]CAPDU: 80 11 00 00 [11:47:29]Write to MH i2c: E2 08 00 31 77 80 11 00 00 00 00 00 00 22 [11:47:29]Write i2c OK [11:47:29]MH_I2C_Read... [11:47:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:29]Read from MH i2c: E2 [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: E2 17 00 [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: E2 17 00 31 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 6F [11:47:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:47:29]wFMCommunicate OK [11:47:29]CreateOFDProtocolMessage done [11:47:29]OFDSenderStorePacket 260649 [11:47:29]StoreOFDPacket docnum=260649 [11:47:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 76 E8 07 01 93 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 54 DF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 29 FA 03 00 35 04 06 00 2D EC 03 8C 71 DE 06 EF 1D 76 C4 FA 8B 88 [11:47:29]CheckFolder [11:47:29]dirname=/storage/ofd_packets [11:47:29]CheckFolder done [11:47:29]ProducePacketName [11:47:29]name=ofd_packets/00260649 [11:47:29]NVStorageSaveData ofd_packets/00260649 [11:47:29]File name is /storage/ofd_packets/00260649 [11:47:29]Write 301 bytes [11:47:29]NVStorageSaveData done [11:47:29]OFDSenderStorePacket done [11:47:29]KKMCreateOFDPacket done [11:47:29]NVStorageSaveData kkm_last_timestamp [11:47:29]File name is /storage/kkm_last_timestamp [11:47:29]Write 4 bytes [11:47:29]NVStorageSaveData done [11:47:29]ExternCall_PrintAddStr [11:47:29]wPrintStart [11:47:29]Write to MH i2c: 01 00 00 32 77 A9 [11:47:29]Write i2c OK [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: 01 [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: 01 07 00 [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: 01 07 00 32 77 00 00 00 00 00 FF 0F BE [11:47:29]RasterBufferAndPrint [11:47:29]line Счет N : (1)1036196 [11:47:29]line ИНН: 02508201610067 [11:47:29]line Контрольно-Кассовый Чек [11:47:29]line ПРОДАЖА [11:47:29]line ТРК (МРК, ГНК) : 23 [11:47:29]line Товар: 2710124500 [11:47:29]line Аи-95-К-5 [11:47:29]line 13.480 * 74.20 [11:47:29]line = 1000.22 [11:47:29]line НДС 12% НСП 1% [11:47:29]line > о реализуемом товаре [11:47:29]line ОКРУГЛЕНИЕ: -0.22 [11:47:29]line ИТОГО: 1000.00 [11:47:29]line Внесено: 1000.00 [11:47:29]line СДАЧА: 0.00 [11:47:29]line НСП 1% : 8.85 [11:47:29]line НДС 12% : 106.22 [11:47:29]line Наличными: 1000.00 [11:47:29]line Безнал.: 0.00 [11:47:29]line Место: АЗС № 94 "Партнер Нефть" [11:47:29]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:47:29]line СНО: Общий режим [11:47:29]line Чек 207 18.08.2024 11:47 [11:47:29]line Смена: 449 ФФД: 1.0 [11:47:29]line ЗНМ: 0300000099 [11:47:29]line РНМ: 0000000000091865 [11:47:29]line Версия ККМ: 001 [11:47:29]line ФМ: 0000000000871820 [11:47:29]line ФД: 260649 [11:47:29]line ФПД: 50491695067614 [11:47:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T114732&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260649&fm=50491695067614&tin=02508201610067®Number=0000000000091865&sum=100000 [11:47:29]written 0, free lines is 4095 [11:47:29]OFD Sender: Processing packet 260649 [packets to send 192, broken 191] [11:47:29]ProducePacketName [11:47:29]name=ofd_packets/00260649 [11:47:29]OFD Sender: To server: pG, [11:47:29]CommunicateWithHost lk.salyk.kg:30040 [11:47:29]ConnectInit lk.salyk.kg [11:47:29]Connected sock=10 [11:47: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 30 0F 01 00 00 76 E8 07 01 93 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 54 DF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 29 FA 03 00 35 04 06 00 2D EC 03 8C 71 DE 06 EF 1D 76 C4 FA 8B 88 [11:47:29]Write to MH i2c: 01 00 00 5D 77 D4 [11:47:29]Write i2c OK [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: 01 [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: 01 07 00 [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: 01 07 00 5D 77 00 00 00 00 00 71 0C 58 [11:47:29]RasterBufferAndPrint [11:47:29]line [11:47:29]line [11:47:29]line [11:47:29]line [11:47:29]line [11:47:29]written 0, free lines is 3187 [11:47:29]MH_Cut [11:47:29]Write to MH i2c: D1 01 00 64 77 01 AD [11:47:29]Write i2c OK [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: D1 [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: D1 01 00 [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: D1 01 00 64 77 00 AC [11:47:29]Write to MH i2c: 01 00 00 65 77 DC [11:47:29]Write i2c OK [11:47:29]MH_I2C_Read... [11:47: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 30 4F 00 00 00 8C F5 47 00 9D 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 30 10 04 04 00 29 FA 03 00 F4 03 04 00 A9 88 C1 66 B6 04 01 00 00 75 C2 68 DA 08 09 8B 01 [11:47:29]CommunicateWithHost err = 0 [11:47:29]CheckOFDResponse [11:47:29]1017 (14) - 77093643461234 [11:47:29]1041 (16) - 0000000000871820 [11:47:29]1040 (4) - 260649 [11:47:29]1012 (4) - 18.08.2024 05:37 [11:47:29]1206 (1) - 0 [11:47:29]OFD Sender: Remove packet 260649 [11:47:29]ProducePacketName [11:47:29]name=ofd_packets/00260649 [11:47:29]NVStorageDeleteData [11:47:30]OFD Sender: No OFD packet to send [11:47:30]*** Cut start [11:47:30]*** Purtial cut [11:47:30]*** Stage 1: CUTSNS_PIN = 1 [11:47:32]Read from MH i2c: 01 [11:47:32]MH_I2C_Read... [11:47:32]*** Stop cut motor [11:47:32]*** Cut end [11:47:32]Read from MH i2c: 01 07 00 [11:47:32]MH_I2C_Read... [11:47:32]Read from MH i2c: 01 07 00 65 77 00 00 00 00 00 FF 0F F1 [11:47:32]process_action close_receipt done [11:47:32]requested_data is exist [11:47:32]produce_requested_data [11:47:32]requested_item fm.sn is exist - process it [11:47:32]wFMCommunicate request_size=4 [11:47:32]MH_SAM_APDU [11:47:32]CAPDU: 80 11 00 00 [11:47:32]Write to MH i2c: E2 08 00 66 77 80 11 00 00 00 00 00 00 57 [11:47:32]Write i2c OK [11:47:32]MH_I2C_Read... [11:47:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:32]Read from MH i2c: E2 [11:47:32]MH_I2C_Read... [11:47:32]Read from MH i2c: E2 17 00 [11:47:32]MH_I2C_Read... [11:47:32]Read from MH i2c: E2 17 00 66 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A4 [11:47:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:47:32]wFMCommunicate OK [11:47:32]requested_item fd.num is exist - process it [11:47:32]SAM_PROTO_GetFieldsCounters [11:47:32]wFMCommunicate request_size=4 [11:47:32]MH_SAM_APDU [11:47:32]CAPDU: 80 13 00 00 [11:47:32]Write to MH i2c: E2 08 00 67 77 80 13 00 00 00 00 00 00 5A [11:47:32]Write i2c OK [11:47:32]MH_I2C_Read... [11:47:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:32]Read from MH i2c: E2 [11:47:32]MH_I2C_Read... [11:47:32]Read from MH i2c: E2 62 00 [11:47:33]MH_I2C_Read... [11:47:33]Read from MH i2c: E2 62 00 67 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 29 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [11:47: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 29 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:47:33]wFMCommunicate OK [11:47:33]SAM_PROTO_GetFieldsCounters done [11:47:33]requested_item shift.num is exist - process it [11:47:33]requested_item shift.opened is exist - process it [11:47:33]req_shift_opened [11:47:33]FM_GetShiftState [11:47:33]SAM_PROTO_GetShiftState [11:47:33]wFMCommunicate request_size=4 [11:47:33]MH_SAM_APDU [11:47:33]CAPDU: 80 13 01 00 [11:47:33]Write to MH i2c: E2 08 00 68 77 80 13 01 00 00 00 00 00 5C [11:47:33]Write i2c OK [11:47:33]MH_I2C_Read... [11:47:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:33]Read from MH i2c: E2 [11:47:33]MH_I2C_Read... [11:47:33]Read from MH i2c: E2 0E 00 [11:47:33]MH_I2C_Read... [11:47:33]Read from MH i2c: E2 0E 00 68 77 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 99 [11:47:33]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:47:33]wFMCommunicate OK [11:47:33]SAM_PROTO_GetShiftState done [11:47:33]FM_GetShiftState done [11:47:33]req_shift_opened done [11:47:33]requested_item shift.open_date is exist - process it [11:47:33]req_shift_open_date [11:47:33]req_shift_open_date done [11:47:33]produce_requested_data done [11:47:33]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260649,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:47:33]process_action_free close_receipt [11:47:33]json_value_free [11:47:33]json_value_free done [11:47:33]process_json_proto returns [11:47:33]Send response to host [11:47:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260649,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:47:33]free response buf [11:47:33]execute_script done [11:47:33]execute_script returns [11:47:33]free content buf [11:47:33]Sock 7.Close socket [11:47:33]Sock 7.Thread stoped [11:47:35]OFD Sender: No OFD packet to send [11:47:40]OFD Sender: No OFD packet to send [11:47:45]OFD Sender: No OFD packet to send [11:47:50]OFD Sender: No OFD packet to send [11:47:55]OFD Sender: No OFD packet to send [11:48:00]OFD Sender: No OFD packet to send [11:48:05]OFD Sender: No OFD packet to send [11:48:10]OFD Sender: No OFD packet to send [11:48:15]OFD Sender: No OFD packet to send [11:48:20]OFD Sender: No OFD packet to send [11:48:25]OFD Sender: No OFD packet to send [11:48:30]OFD Sender: No OFD packet to send [11:48:35]OFD Sender: No OFD packet to send [11:48:40]OFD Sender: No OFD packet to send [11:48:45]OFD Sender: No OFD packet to send [11:48:50]OFD Sender: No OFD packet to send [11:48:55]OFD Sender: No OFD packet to send [11:49:00]OFD Sender: No OFD packet to send [11:49:05]OFD Sender: No OFD packet to send [11:49:10]OFD Sender: No OFD packet to send [11:49:15]OFD Sender: No OFD packet to send [11:49:20]OFD Sender: No OFD packet to send [11:49:25]OFD Sender: No OFD packet to send [11:49:30]OFD Sender: No OFD packet to send [11:49:35]OFD Sender: No OFD packet to send [11:49:40]OFD Sender: No OFD packet to send [11:49:43]accept exits with 9 [11:49:43]New connection [11:49:43]New thread 3066473828 created [11:49:43]Thread 3066617188 joined [11:49:43]Waiting for new connection... [11:49:43] Sock 9.Parse request [11:49:43]Sock 9.Check first char [11:49:43]Sock 9.First char is OK [11:49:43]request: POST /json_proto HTTP/1.0 [11:49:43]Method: POST [11:49:43]URL: /json_proto [11:49:43]Method is POST - this is cgi request [11:49:43]url: /json_proto [11:49:43]query_string will be loaded in cgi processing [11:49:43]execute_cgi json_proto POST (null) [11:49:43]execute_cgi path=json_proto method=POST [11:49:43]POST find Content-Length [11:49:43]Host: 172.17.55.133:8080 [11:49:43]Content-Length: 678 [11:49:43]Content-Type: application/json [11:49:43] [11:49:43]POST finish read [11:49:43]Found Content-Length = 678 [11:49:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036197", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:43]execute_script... [11:49: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)1036197", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:43]POST & json_proto [11:49:43]process_json_proto [11:49:43]json parsed OK: [11:49:43]protocol is kg_v1.0 [11:49:43]action value=close_receipt [11:49:43]process_action close_receipt [11:49:43]cmd_close_receipt [11:49:43]MH_GetDate [11:49:43]Write to MH i2c: F0 00 00 69 77 CF [11:49:43]Write i2c OK [11:49:43]MH_I2C_Read... [11:49:43]Read from MH i2c: F0 [11:49:43]MH_I2C_Read... [11:49:43]Read from MH i2c: F0 09 00 [11:49:43]MH_I2C_Read... [11:49:43]Read from MH i2c: F0 09 00 69 77 00 DC DF C1 66 34 48 D8 65 73 [11:49:43]GetLastDocTimeStamp 1723981652 [11:49:43]current date 1723981788 [11:49:43]FM_GetShiftState [11:49:43]SAM_PROTO_GetShiftState [11:49:43]wFMCommunicate request_size=4 [11:49:43]MH_SAM_APDU [11:49:43]CAPDU: 80 13 01 00 [11:49:43]Write to MH i2c: E2 08 00 6A 77 80 13 01 00 00 00 00 00 5E [11:49:43]Write i2c OK [11:49:43]MH_I2C_Read... [11:49:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:43]Read from MH i2c: E2 [11:49:43]MH_I2C_Read... [11:49:43]Read from MH i2c: E2 0E 00 [11:49:43]MH_I2C_Read... [11:49:43]Read from MH i2c: E2 0E 00 6A 77 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 9B [11:49:43]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:49:43]wFMCommunicate OK [11:49:43]SAM_PROTO_GetShiftState done [11:49:43]FM_GetShiftState done [11:49:43]opened in 1723940556 [11:49:43]opened+sec_in_day 1724026956 [11:49:43]quantity*price = 50010 [11:49:43]sum+1 = 50012 [11:49:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 208 18.08.2024 11:49 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260650 ФПД: 122154783543717 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T114948&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260650&fm=122154783543717&tin=02508201610067®Number=0000000000091865&sum=50000 [11:49:44]StoreToDocumentArchive [11:49:44]shift 449 fd 260650 [11:49:44]save to /storage/0449/doc_00260650 [11:49:44]save last doc name /storage/0449/doc_00260650 to /storage/kkm_last_doc_name [11:49:44]save OK [11:49:44]Clear old archive folders... [11:49:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:49:44]tlvbuf is 005409B0 [11:49:44]SAM_PROTO_ClearQueue [11:49:44]wFMCommunicate request_size=4 [11:49:44]MH_SAM_APDU [11:49:44]CAPDU: 80 09 00 00 [11:49:44]Write to MH i2c: E2 08 00 77 77 80 09 00 00 00 00 00 00 60 [11:49:44]Write i2c OK [11:49:44]MH_I2C_Read... [11:49:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:44]Read from MH i2c: E2 [11:49:44]MH_I2C_Read... [11:49:44]Read from MH i2c: E2 03 00 [11:49:44]MH_I2C_Read... [11:49:44]Read from MH i2c: E2 03 00 77 77 00 90 00 62 [11:49:44]RAPDU: 90 00 [11:49:44]wFMCommunicate OK [11:49:44]SAM_PROTO_ClearQueue done [11:49:44]KKMCreateOFDPacket [11:49:44]OFDProtocolAddRootSTLVToBuf [11:49:44]FM_MakeSignedData [11:49:44]FM_MakeSignedData [11:49:44]SAM_PROTO_SignData [11:49:44]wFMCommunicate request_size=4 [11:49:44]MH_SAM_APDU [11:49:44]CAPDU: 80 0D 01 02 [11:49:44]Write to MH i2c: E2 08 00 78 77 80 0D 01 02 00 00 00 00 68 [11:49:44]Write i2c OK [11:49:44]MH_I2C_Read... [11:49:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:44]Read from MH i2c: E2 [11:49:44]MH_I2C_Read... [11:49:44]Read from MH i2c: E2 03 00 [11:49:44]MH_I2C_Read... [11:49:44]Read from MH i2c: E2 03 00 78 77 00 90 00 63 [11:49:44]RAPDU: 90 00 [11:49:44]wFMCommunicate OK [11:49:44]wFMCommunicate request_size=255 [11:49:44]MH_SAM_APDU [11:49: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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 DC DF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2A FA 03 00 35 04 06 00 6F [11:49:44]Write to MH i2c: E2 02 01 79 77 80 0D 02 02 FA 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 DC DF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2A FA 03 00 35 04 06 00 6F 00 00 D7 [11:49:44]Write i2c OK [11:49:44]MH_I2C_Read... [11:49:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:45]Read from MH i2c: E2 [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: E2 03 00 [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: E2 03 00 79 77 00 90 00 64 [11:49:45]RAPDU: 90 00 [11:49:45]wFMCommunicate OK [11:49:45]wFMCommunicate request_size=10 [11:49:45]MH_SAM_APDU [11:49:45]CAPDU: 80 0D 02 02 05 19 60 7B 11 A5 [11:49:45]Write to MH i2c: E2 0D 00 7A 77 80 0D 02 02 05 00 19 60 7B 11 A5 00 00 1F [11:49:45]Write i2c OK [11:49:45]MH_I2C_Read... [11:49:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:45]Read from MH i2c: E2 [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: E2 03 00 [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: E2 03 00 7A 77 00 90 00 65 [11:49:45]RAPDU: 90 00 [11:49:45]wFMCommunicate OK [11:49:45]wFMCommunicate request_size=4 [11:49:45]MH_SAM_APDU [11:49:45]CAPDU: 80 0D 03 02 [11:49:45]Write to MH i2c: E2 08 00 7B 77 80 0D 03 02 00 00 00 00 6D [11:49:45]Write i2c OK [11:49:45]MH_I2C_Read... [11:49:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:45]Read from MH i2c: E2 [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: E2 0B 00 [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: E2 0B 00 7B 77 00 8E 50 BF F6 52 9B 56 04 90 00 48 [11:49:45]RAPDU: 8E 50 BF F6 52 9B 56 04 90 00 [11:49:45]wFMCommunicate OK [11:49:45]SAM_PROTO_SignData done [11:49:45]FM_MakeSignedData done [11:49:45]CreateOFDProtocolMessage [11:49:45]wFMCommunicate request_size=4 [11:49:45]MH_SAM_APDU [11:49:45]CAPDU: 80 11 00 00 [11:49:45]Write to MH i2c: E2 08 00 7C 77 80 11 00 00 00 00 00 00 6D [11:49:45]Write i2c OK [11:49:45]MH_I2C_Read... [11:49:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:45]Read from MH i2c: E2 [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: E2 17 00 [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: E2 17 00 7C 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 BA [11:49:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:49:45]wFMCommunicate OK [11:49:45]CreateOFDProtocolMessage done [11:49:45]OFDSenderStorePacket 260650 [11:49:45]StoreOFDPacket docnum=260650 [11:49:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 4E 34 07 01 AA 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 DC DF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2A FA 03 00 35 04 06 00 6F 19 60 7B 11 A5 8E 50 BF F6 52 9B 56 04 [11:49:45]CheckFolder [11:49:45]dirname=/storage/ofd_packets [11:49:45]CheckFolder done [11:49:45]ProducePacketName [11:49:45]name=ofd_packets/00260650 [11:49:45]NVStorageSaveData ofd_packets/00260650 [11:49:45]File name is /storage/ofd_packets/00260650 [11:49:45]Write 301 bytes [11:49:45]NVStorageSaveData done [11:49:45]OFDSenderStorePacket done [11:49:45]KKMCreateOFDPacket done [11:49:45]NVStorageSaveData kkm_last_timestamp [11:49:45]File name is /storage/kkm_last_timestamp [11:49:45]Write 4 bytes [11:49:45]NVStorageSaveData done [11:49:45]ExternCall_PrintAddStr [11:49:45]wPrintStart [11:49:45]Write to MH i2c: 01 00 00 7D 77 F4 [11:49:45]Write i2c OK [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: 01 [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: 01 07 00 [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: 01 07 00 7D 77 00 00 00 00 00 FF 0F 09 [11:49:45]RasterBufferAndPrint [11:49:45]line Счет N : (1)1036197 [11:49:45]line ИНН: 02508201610067 [11:49:45]line Контрольно-Кассовый Чек [11:49:45]line ПРОДАЖА [11:49:45]line ТРК (МРК, ГНК) : 13 [11:49:45]line Товар: 2710124500 [11:49:45]line Аи-95-К-5 [11:49:45]line 6.740 * 74.20 [11:49:45]line = 500.11 [11:49:45]line НДС 12% НСП 1% [11:49:45]line > о реализуемом товаре [11:49:45]line ОКРУГЛЕНИЕ: -0.11 [11:49:45]line ИТОГО: 500.00 [11:49:45]line Внесено: 500.00 [11:49:45]line СДАЧА: 0.00 [11:49:45]line НСП 1% : 4.43 [11:49:45]line НДС 12% : 53.11 [11:49:45]line Наличными: 500.00 [11:49:45]line Безнал.: 0.00 [11:49:45]line Место: АЗС № 94 "Партнер Нефть" [11:49:45]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:49:45]line СНО: Общий режим [11:49:45]line Чек 208 18.08.2024 11:49 [11:49:45]line Смена: 449 ФФД: 1.0 [11:49:45]line ЗНМ: 0300000099 [11:49:45]line РНМ: 0000000000091865 [11:49:45]line Версия ККМ: 001 [11:49:45]line ФМ: 0000000000871820 [11:49:45]line ФД: 260650 [11:49:45]line ФПД: 122154783543717 [11:49:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T114948&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260650&fm=122154783543717&tin=02508201610067®Number=0000000000091865&sum=50000 [11:49:45]written 0, free lines is 4095 [11:49:45]OFD Sender: Processing packet 260650 [packets to send 192, broken 191] [11:49:45]ProducePacketName [11:49:45]name=ofd_packets/00260650 [11:49:45]OFD Sender: To server: pG, [11:49:45]CommunicateWithHost lk.salyk.kg:30040 [11:49:45]ConnectInit lk.salyk.kg [11:49:45]Connected sock=10 [11:49: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 30 0F 01 00 00 4E 34 07 01 AA 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 DC DF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2A FA 03 00 35 04 06 00 6F 19 60 7B 11 A5 8E 50 BF F6 52 9B 56 04 [11:49: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 30 4F 00 00 00 6A 29 47 00 ED E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 2A FA 03 00 F4 03 04 00 31 89 C1 66 B6 04 01 00 00 DA 99 DD FD 11 0B 8F D7 [11:49:45]CommunicateWithHost err = 0 [11:49:45]CheckOFDResponse [11:49:45]1017 (14) - 77093643461234 [11:49:45]1041 (16) - 0000000000871820 [11:49:45]1040 (4) - 260650 [11:49:45]1012 (4) - 18.08.2024 05:40 [11:49:45]1206 (1) - 0 [11:49:45]OFD Sender: Remove packet 260650 [11:49:45]ProducePacketName [11:49:45]name=ofd_packets/00260650 [11:49:45]NVStorageDeleteData [11:49:45]Write to MH i2c: 01 00 00 A8 77 1F [11:49:45]Write i2c OK [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: 01 [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: 01 07 00 [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: 01 07 00 A8 77 00 00 00 00 00 63 0C 95 [11:49:45]RasterBufferAndPrint [11:49:45]line [11:49:45]line [11:49:45]line [11:49:45]line [11:49:45]line [11:49:45]written 0, free lines is 3176 [11:49:46]MH_Cut [11:49:46]Write to MH i2c: D1 01 00 AF 77 01 F8 [11:49:46]Write i2c OK [11:49:46]MH_I2C_Read... [11:49:46]Read from MH i2c: D1 [11:49:46]MH_I2C_Read... [11:49:46]Read from MH i2c: D1 01 00 [11:49:46]MH_I2C_Read... [11:49:46]Read from MH i2c: D1 01 00 AF 77 00 F7 [11:49:46]Write to MH i2c: 01 00 00 B0 77 27 [11:49:46]Write i2c OK [11:49:46]MH_I2C_Read... [11:49:46]OFD Sender: No OFD packet to send [11:49:47]*** Cut start [11:49:47]*** Purtial cut [11:49:47]*** Stage 1: CUTSNS_PIN = 1 [11:49:49]Read from MH i2c: 01 [11:49:49]MH_I2C_Read... [11:49:49]*** Stop cut motor [11:49:49]*** Cut end [11:49:49]Read from MH i2c: 01 07 00 [11:49:49]MH_I2C_Read... [11:49:49]Read from MH i2c: 01 07 00 B0 77 00 00 00 00 00 FF 0F 3C [11:49:49]process_action close_receipt done [11:49:49]requested_data is exist [11:49:49]produce_requested_data [11:49:49]requested_item fm.sn is exist - process it [11:49:49]wFMCommunicate request_size=4 [11:49:49]MH_SAM_APDU [11:49:49]CAPDU: 80 11 00 00 [11:49:49]Write to MH i2c: E2 08 00 B1 77 80 11 00 00 00 00 00 00 A2 [11:49:49]Write i2c OK [11:49:49]MH_I2C_Read... [11:49:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:49]Read from MH i2c: E2 [11:49:49]MH_I2C_Read... [11:49:49]Read from MH i2c: E2 17 00 [11:49:49]MH_I2C_Read... [11:49:49]Read from MH i2c: E2 17 00 B1 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 EF [11:49:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:49:49]wFMCommunicate OK [11:49:49]requested_item fd.num is exist - process it [11:49:49]SAM_PROTO_GetFieldsCounters [11:49:49]wFMCommunicate request_size=4 [11:49:49]MH_SAM_APDU [11:49:49]CAPDU: 80 13 00 00 [11:49:49]Write to MH i2c: E2 08 00 B2 77 80 13 00 00 00 00 00 00 A5 [11:49:49]Write i2c OK [11:49:49]MH_I2C_Read... [11:49:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:49]Read from MH i2c: E2 [11:49:49]MH_I2C_Read... [11:49:49]Read from MH i2c: E2 62 00 [11:49:49]MH_I2C_Read... [11:49:49]Read from MH i2c: E2 62 00 B2 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 2A FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [11:49: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 2A FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:49:49]wFMCommunicate OK [11:49:49]SAM_PROTO_GetFieldsCounters done [11:49:49]requested_item shift.num is exist - process it [11:49:49]requested_item shift.opened is exist - process it [11:49:49]req_shift_opened [11:49:49]FM_GetShiftState [11:49:49]SAM_PROTO_GetShiftState [11:49:49]wFMCommunicate request_size=4 [11:49:49]MH_SAM_APDU [11:49:49]CAPDU: 80 13 01 00 [11:49:49]Write to MH i2c: E2 08 00 B3 77 80 13 01 00 00 00 00 00 A7 [11:49:49]Write i2c OK [11:49:49]MH_I2C_Read... [11:49:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:49]Read from MH i2c: E2 [11:49:49]MH_I2C_Read... [11:49:49]Read from MH i2c: E2 0E 00 [11:49:49]MH_I2C_Read... [11:49:49]Read from MH i2c: E2 0E 00 B3 77 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E4 [11:49:49]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:49:49]wFMCommunicate OK [11:49:49]SAM_PROTO_GetShiftState done [11:49:49]FM_GetShiftState done [11:49:49]req_shift_opened done [11:49:49]requested_item shift.open_date is exist - process it [11:49:49]req_shift_open_date [11:49:49]req_shift_open_date done [11:49:49]produce_requested_data done [11:49:49]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260650,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:49:49]process_action_free close_receipt [11:49:49]json_value_free [11:49:49]json_value_free done [11:49:49]process_json_proto returns [11:49:49]Send response to host [11:49:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260650,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:49:49]free response buf [11:49:49]execute_script done [11:49:49]execute_script returns [11:49:49]free content buf [11:49:49]Sock 9.Close socket [11:49:49]Sock 9.Thread stoped [11:49:51]OFD Sender: No OFD packet to send [11:49:56]OFD Sender: No OFD packet to send [11:50:01]OFD Sender: No OFD packet to send [11:50:06]OFD Sender: No OFD packet to send [11:50:11]OFD Sender: No OFD packet to send [11:50:16]OFD Sender: No OFD packet to send [11:50:21]OFD Sender: No OFD packet to send [11:50:26]OFD Sender: No OFD packet to send [11:50:31]OFD Sender: No OFD packet to send [11:50:36]OFD Sender: No OFD packet to send [11:50:41]OFD Sender: No OFD packet to send [11:50:46]OFD Sender: No OFD packet to send [11:50:51]OFD Sender: No OFD packet to send [11:50:56]OFD Sender: No OFD packet to send [11:51:01]OFD Sender: No OFD packet to send [11:51:06]OFD Sender: No OFD packet to send [11:51:11]OFD Sender: No OFD packet to send [11:51:16]OFD Sender: No OFD packet to send [11:51:21]OFD Sender: No OFD packet to send [11:51:26]OFD Sender: No OFD packet to send [11:51:31]OFD Sender: No OFD packet to send [11:51:36]OFD Sender: No OFD packet to send [11:51:41]OFD Sender: No OFD packet to send [11:51:46]OFD Sender: No OFD packet to send [11:51:51]OFD Sender: No OFD packet to send [11:51:56]OFD Sender: No OFD packet to send [11:52:01]OFD Sender: No OFD packet to send [11:52:06]OFD Sender: No OFD packet to send [11:52:11]OFD Sender: No OFD packet to send [11:52:16]OFD Sender: No OFD packet to send [11:52:21]OFD Sender: No OFD packet to send [11:52:26]OFD Sender: No OFD packet to send [11:52:31]OFD Sender: No OFD packet to send [11:52:36]OFD Sender: No OFD packet to send [11:52:41]OFD Sender: No OFD packet to send [11:52:46]OFD Sender: No OFD packet to send [11:52:51]OFD Sender: No OFD packet to send [11:52:56]OFD Sender: No OFD packet to send [11:53:01]OFD Sender: No OFD packet to send [11:53:06]OFD Sender: No OFD packet to send [11:53:11]OFD Sender: No OFD packet to send [11:53:16]OFD Sender: No OFD packet to send [11:53:21]OFD Sender: No OFD packet to send [11:53:26]OFD Sender: No OFD packet to send [11:53:31]OFD Sender: No OFD packet to send [11:53:36]OFD Sender: No OFD packet to send [11:53:37]accept exits with 7 [11:53:37]New connection [11:53:37]New thread 3066617188 created [11:53:37]Thread 3066473828 joined [11:53:37]Waiting for new connection... [11:53:37] Sock 7.Parse request [11:53:37]Sock 7.Check first char [11:53:37]Sock 7.First char is OK [11:53:37]request: POST /json_proto HTTP/1.0 [11:53:37]Method: POST [11:53:37]URL: /json_proto [11:53:37]Method is POST - this is cgi request [11:53:37]url: /json_proto [11:53:37]query_string will be loaded in cgi processing [11:53:37]execute_cgi json_proto POST (null) [11:53:37]execute_cgi path=json_proto method=POST [11:53:37]POST find Content-Length [11:53:37]Host: 172.17.55.133:8080 [11:53:37]Content-Length: 678 [11:53:37]Content-Type: application/json [11:53:37] [11:53:37]POST finish read [11:53:37]Found Content-Length = 678 [11:53:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:53:37]execute_script... [11:53: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)1036198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:53:37]POST & json_proto [11:53:37]process_json_proto [11:53:37]json parsed OK: [11:53:37]protocol is kg_v1.0 [11:53:37]action value=close_receipt [11:53:37]process_action close_receipt [11:53:37]cmd_close_receipt [11:53:37]MH_GetDate [11:53:37]Write to MH i2c: F0 00 00 B4 77 1A [11:53:37]Write i2c OK [11:53:37]MH_I2C_Read... [11:53:37]Read from MH i2c: F0 [11:53:37]MH_I2C_Read... [11:53:37]Read from MH i2c: F0 09 00 [11:53:37]MH_I2C_Read... [11:53:37]Read from MH i2c: F0 09 00 B4 77 00 C5 E0 C1 66 34 48 D8 65 A8 [11:53:37]GetLastDocTimeStamp 1723981788 [11:53:37]current date 1723982021 [11:53:37]FM_GetShiftState [11:53:37]SAM_PROTO_GetShiftState [11:53:37]wFMCommunicate request_size=4 [11:53:37]MH_SAM_APDU [11:53:37]CAPDU: 80 13 01 00 [11:53:37]Write to MH i2c: E2 08 00 B5 77 80 13 01 00 00 00 00 00 A9 [11:53:37]Write i2c OK [11:53:37]MH_I2C_Read... [11:53:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:37]Read from MH i2c: E2 [11:53:37]MH_I2C_Read... [11:53:37]Read from MH i2c: E2 0E 00 [11:53:37]MH_I2C_Read... [11:53:37]Read from MH i2c: E2 0E 00 B5 77 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E6 [11:53:37]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:53:37]wFMCommunicate OK [11:53:37]SAM_PROTO_GetShiftState done [11:53:37]FM_GetShiftState done [11:53:37]opened in 1723940556 [11:53:37]opened+sec_in_day 1724026956 [11:53:37]quantity*price = 50036 [11:53:37]sum+1 = 50037 [11:53:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 209 18.08.2024 11:53 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260651 ФПД: 64515906249 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T115341&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260651&fm=64515906249&tin=02508201610067®Number=0000000000091865&sum=50000 [11:53:38]StoreToDocumentArchive [11:53:38]shift 449 fd 260651 [11:53:38]save to /storage/0449/doc_00260651 [11:53:38]save last doc name /storage/0449/doc_00260651 to /storage/kkm_last_doc_name [11:53:38]save OK [11:53:38]Clear old archive folders... [11:53:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:53:38]tlvbuf is 00453900 [11:53:38]SAM_PROTO_ClearQueue [11:53:38]wFMCommunicate request_size=4 [11:53:38]MH_SAM_APDU [11:53:38]CAPDU: 80 09 00 00 [11:53:38]Write to MH i2c: E2 08 00 C2 77 80 09 00 00 00 00 00 00 AB [11:53:38]Write i2c OK [11:53:38]MH_I2C_Read... [11:53:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:38]Read from MH i2c: E2 [11:53:38]MH_I2C_Read... [11:53:38]Read from MH i2c: E2 03 00 [11:53:38]MH_I2C_Read... [11:53:38]Read from MH i2c: E2 03 00 C2 77 00 90 00 AD [11:53:38]RAPDU: 90 00 [11:53:38]wFMCommunicate OK [11:53:38]SAM_PROTO_ClearQueue done [11:53:38]KKMCreateOFDPacket [11:53:38]OFDProtocolAddRootSTLVToBuf [11:53:38]FM_MakeSignedData [11:53:38]FM_MakeSignedData [11:53:38]SAM_PROTO_SignData [11:53:38]wFMCommunicate request_size=4 [11:53:38]MH_SAM_APDU [11:53:38]CAPDU: 80 0D 01 02 [11:53:38]Write to MH i2c: E2 08 00 C3 77 80 0D 01 02 00 00 00 00 B3 [11:53:38]Write i2c OK [11:53:38]MH_I2C_Read... [11:53:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:38]Read from MH i2c: E2 [11:53:38]MH_I2C_Read... [11:53:38]Read from MH i2c: E2 03 00 [11:53:38]MH_I2C_Read... [11:53:38]Read from MH i2c: E2 03 00 C3 77 00 90 00 AE [11:53:38]RAPDU: 90 00 [11:53:38]wFMCommunicate OK [11:53:38]wFMCommunicate request_size=255 [11:53:38]MH_SAM_APDU [11:53:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D1 00 00 00 F4 03 04 00 C5 E0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2B FA 03 00 35 04 06 00 00 [11:53:38]Write to MH i2c: E2 02 01 C4 77 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D1 00 00 00 F4 03 04 00 C5 E0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2B FA 03 00 35 04 06 00 00 00 00 B7 [11:53:38]Write i2c OK [11:53:38]MH_I2C_Read... [11:53:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:38]Read from MH i2c: E2 [11:53:38]MH_I2C_Read... [11:53:38]Read from MH i2c: E2 03 00 [11:53:38]MH_I2C_Read... [11:53:38]Read from MH i2c: E2 03 00 C4 77 00 90 00 AF [11:53:38]RAPDU: 90 00 [11:53:38]wFMCommunicate OK [11:53:38]wFMCommunicate request_size=10 [11:53:38]MH_SAM_APDU [11:53:38]CAPDU: 80 0D 02 02 05 0F 05 72 9A C9 [11:53:38]Write to MH i2c: E2 0D 00 C5 77 80 0D 02 02 05 00 0F 05 72 9A C9 00 00 A9 [11:53:38]Write i2c OK [11:53:38]MH_I2C_Read... [11:53:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:38]Read from MH i2c: E2 [11:53:38]MH_I2C_Read... [11:53:38]Read from MH i2c: E2 03 00 [11:53:38]MH_I2C_Read... [11:53:38]Read from MH i2c: E2 03 00 C5 77 00 90 00 B0 [11:53:38]RAPDU: 90 00 [11:53:38]wFMCommunicate OK [11:53:38]wFMCommunicate request_size=4 [11:53:38]MH_SAM_APDU [11:53:38]CAPDU: 80 0D 03 02 [11:53:38]Write to MH i2c: E2 08 00 C6 77 80 0D 03 02 00 00 00 00 B8 [11:53:38]Write i2c OK [11:53:38]MH_I2C_Read... [11:53:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:38]Read from MH i2c: E2 [11:53:38]MH_I2C_Read... [11:53:38]Read from MH i2c: E2 0B 00 [11:53:38]MH_I2C_Read... [11:53:38]Read from MH i2c: E2 0B 00 C6 77 00 AF 7D 51 2C F3 63 06 7F 90 00 3D [11:53:38]RAPDU: AF 7D 51 2C F3 63 06 7F 90 00 [11:53:38]wFMCommunicate OK [11:53:38]SAM_PROTO_SignData done [11:53:38]FM_MakeSignedData done [11:53:38]CreateOFDProtocolMessage [11:53:38]wFMCommunicate request_size=4 [11:53:38]MH_SAM_APDU [11:53:38]CAPDU: 80 11 00 00 [11:53:38]Write to MH i2c: E2 08 00 C7 77 80 11 00 00 00 00 00 00 B8 [11:53:38]Write i2c OK [11:53:38]MH_I2C_Read... [11:53:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:38]Read from MH i2c: E2 [11:53:38]MH_I2C_Read... [11:53:38]Read from MH i2c: E2 17 00 [11:53:38]MH_I2C_Read... [11:53:38]Read from MH i2c: E2 17 00 C7 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 05 [11:53:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:53:38]wFMCommunicate OK [11:53:38]CreateOFDProtocolMessage done [11:53:38]OFDSenderStorePacket 260651 [11:53:38]StoreOFDPacket docnum=260651 [11:53:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 1D B6 07 01 76 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D1 00 00 00 F4 03 04 00 C5 E0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2B FA 03 00 35 04 06 00 00 0F 05 72 9A C9 AF 7D 51 2C F3 63 06 7F [11:53:38]CheckFolder [11:53:38]dirname=/storage/ofd_packets [11:53:38]CheckFolder done [11:53:38]ProducePacketName [11:53:38]name=ofd_packets/00260651 [11:53:38]NVStorageSaveData ofd_packets/00260651 [11:53:38]File name is /storage/ofd_packets/00260651 [11:53:38]Write 301 bytes [11:53:38]NVStorageSaveData done [11:53:38]OFDSenderStorePacket done [11:53:38]KKMCreateOFDPacket done [11:53:38]NVStorageSaveData kkm_last_timestamp [11:53:38]File name is /storage/kkm_last_timestamp [11:53:38]Write 4 bytes [11:53:38]NVStorageSaveData done [11:53:38]ExternCall_PrintAddStr [11:53:38]wPrintStart [11:53:38]Write to MH i2c: 01 00 00 C8 77 3F [11:53:38]Write i2c OK [11:53:38]MH_I2C_Read... [11:53:38]Read from MH i2c: 01 [11:53:38]MH_I2C_Read... [11:53:38]Read from MH i2c: 01 07 00 [11:53:38]MH_I2C_Read... [11:53:38]Read from MH i2c: 01 07 00 C8 77 00 00 00 00 00 FF 0F 54 [11:53:38]RasterBufferAndPrint [11:53:38]line Счет N : (1)1036198 [11:53:38]line ИНН: 02508201610067 [11:53:38]line Контрольно-Кассовый Чек [11:53:38]line ПРОДАЖА [11:53:38]line ТРК (МРК, ГНК) : 22 [11:53:38]line Товар: 2710124130 [11:53:38]line Аи-92-К-5 [11:53:38]line 7.380 * 67.80 [11:53:38]line = 500.36 [11:53:38]line НДС 12% НСП 1% [11:53:38]line > о реализуемом товаре [11:53:38]line ОКРУГЛЕНИЕ: -0.36 [11:53:38]line ИТОГО: 500.00 [11:53:38]line Внесено: 500.00 [11:53:38]line СДАЧА: 0.00 [11:53:38]line НСП 1% : 4.43 [11:53:38]line НДС 12% : 53.14 [11:53:38]line Наличными: 500.00 [11:53:38]line Безнал.: 0.00 [11:53:38]line Место: АЗС № 94 "Партнер Нефть" [11:53:38]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:53:38]line СНО: Общий режим [11:53:38]line Чек 209 18.08.2024 11:53 [11:53:38]line Смена: 449 ФФД: 1.0 [11:53:38]line ЗНМ: 0300000099 [11:53:38]line РНМ: 0000000000091865 [11:53:38]line Версия ККМ: 001 [11:53:38]line ФМ: 0000000000871820 [11:53:38]line ФД: 260651 [11:53:38]line ФПД: 64515906249 [11:53:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T115341&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260651&fm=64515906249&tin=02508201610067®Number=0000000000091865&sum=50000 [11:53:38]written 0, free lines is 4095 [11:53:39]OFD Sender: Processing packet 260651 [packets to send 192, broken 191] [11:53:39]ProducePacketName [11:53:39]name=ofd_packets/00260651 [11:53:39]OFD Sender: To server: pG, [11:53:39]CommunicateWithHost lk.salyk.kg:30040 [11:53:39]ConnectInit lk.salyk.kg [11:53:39]Connected sock=10 [11:53: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 30 0F 01 00 00 1D B6 07 01 76 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D1 00 00 00 F4 03 04 00 C5 E0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2B FA 03 00 35 04 06 00 00 0F 05 72 9A C9 AF 7D 51 2C F3 63 06 7F [11:53: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 30 4F 00 00 00 F8 60 47 00 06 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 30 10 04 04 00 2B FA 03 00 F4 03 04 00 1A 8A C1 66 B6 04 01 00 00 FB 6C 1B 3B E4 65 A6 C4 [11:53:39]CommunicateWithHost err = 0 [11:53:39]CheckOFDResponse [11:53:39]1017 (14) - 77093643461234 [11:53:39]1041 (16) - 0000000000871820 [11:53:39]1040 (4) - 260651 [11:53:39]1012 (4) - 18.08.2024 05:43 [11:53:39]1206 (1) - 0 [11:53:39]OFD Sender: Remove packet 260651 [11:53:39]ProducePacketName [11:53:39]name=ofd_packets/00260651 [11:53:39]NVStorageDeleteData [11:53:39]Write to MH i2c: 01 00 00 F3 77 6A [11:53:39]Write i2c OK [11:53:39]MH_I2C_Read... [11:53:39]Read from MH i2c: 01 [11:53:39]MH_I2C_Read... [11:53:39]Read from MH i2c: 01 07 00 [11:53:39]MH_I2C_Read... [11:53:39]Read from MH i2c: 01 07 00 F3 77 00 00 00 00 00 5F 0C DC [11:53:39]RasterBufferAndPrint [11:53:39]line [11:53:39]line [11:53:39]line [11:53:39]line [11:53:39]line [11:53:39]written 0, free lines is 3171 [11:53:39]MH_Cut [11:53:39]Write to MH i2c: D1 01 00 FA 77 01 43 [11:53:39]Write i2c OK [11:53:39]MH_I2C_Read... [11:53:39]Read from MH i2c: D1 [11:53:39]MH_I2C_Read... [11:53:39]Read from MH i2c: D1 01 00 [11:53:39]MH_I2C_Read... [11:53:39]Read from MH i2c: D1 01 00 FA 77 00 42 [11:53:39]Write to MH i2c: 01 00 00 FB 77 72 [11:53:39]Write i2c OK [11:53:39]MH_I2C_Read... [11:53:39]OFD Sender: No OFD packet to send [11:53:40]*** Cut start [11:53:40]*** Purtial cut [11:53:40]*** Stage 1: CUTSNS_PIN = 1 [11:53:42]Read from MH i2c: 01 [11:53:42]MH_I2C_Read... [11:53:42]*** Stop cut motor [11:53:42]*** Cut end [11:53:42]Read from MH i2c: 01 07 00 [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: 01 07 00 FB 77 00 00 00 00 00 FF 0F 87 [11:53:42]process_action close_receipt done [11:53:42]requested_data is exist [11:53:42]produce_requested_data [11:53:42]requested_item fm.sn is exist - process it [11:53:42]wFMCommunicate request_size=4 [11:53:42]MH_SAM_APDU [11:53:42]CAPDU: 80 11 00 00 [11:53:42]Write to MH i2c: E2 08 00 FC 77 80 11 00 00 00 00 00 00 ED [11:53:42]Write i2c OK [11:53:42]MH_I2C_Read... [11:53:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:42]Read from MH i2c: E2 [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: E2 17 00 [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: E2 17 00 FC 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 3A [11:53:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:53:42]wFMCommunicate OK [11:53:42]requested_item fd.num is exist - process it [11:53:42]SAM_PROTO_GetFieldsCounters [11:53:42]wFMCommunicate request_size=4 [11:53:42]MH_SAM_APDU [11:53:42]CAPDU: 80 13 00 00 [11:53:42]Write to MH i2c: E2 08 00 FD 77 80 13 00 00 00 00 00 00 F0 [11:53:42]Write i2c OK [11:53:42]MH_I2C_Read... [11:53:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:42]Read from MH i2c: E2 [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: E2 62 00 [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: E2 62 00 FD 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 2B FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [11:53: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 2B FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:53:42]wFMCommunicate OK [11:53:42]SAM_PROTO_GetFieldsCounters done [11:53:42]requested_item shift.num is exist - process it [11:53:42]requested_item shift.opened is exist - process it [11:53:42]req_shift_opened [11:53:42]FM_GetShiftState [11:53:42]SAM_PROTO_GetShiftState [11:53:42]wFMCommunicate request_size=4 [11:53:42]MH_SAM_APDU [11:53:42]CAPDU: 80 13 01 00 [11:53:42]Write to MH i2c: E2 08 00 FE 77 80 13 01 00 00 00 00 00 F2 [11:53:42]Write i2c OK [11:53:42]MH_I2C_Read... [11:53:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:42]Read from MH i2c: E2 [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: E2 0E 00 [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: E2 0E 00 FE 77 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 2F [11:53:42]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:53:42]wFMCommunicate OK [11:53:42]SAM_PROTO_GetShiftState done [11:53:42]FM_GetShiftState done [11:53:42]req_shift_opened done [11:53:42]requested_item shift.open_date is exist - process it [11:53:42]req_shift_open_date [11:53:42]req_shift_open_date done [11:53:42]produce_requested_data done [11:53:42]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260651,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:53:42]process_action_free close_receipt [11:53:42]json_value_free [11:53:42]json_value_free done [11:53:42]process_json_proto returns [11:53:42]Send response to host [11:53:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260651,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:53:42]free response buf [11:53:42]execute_script done [11:53:42]execute_script returns [11:53:42]free content buf [11:53:42]Sock 7.Close socket [11:53:42]Sock 7.Thread stoped [11:53:44]OFD Sender: No OFD packet to send [11:53:49]OFD Sender: No OFD packet to send [11:53:54]OFD Sender: No OFD packet to send [11:53:59]OFD Sender: No OFD packet to send [11:54:00]accept exits with 9 [11:54:00]New connection [11:54:00]New thread 3066473828 created [11:54:00]Thread 3066617188 joined [11:54:00]Waiting for new connection... [11:54:00] Sock 9.Parse request [11:54:00]Sock 9.Check first char [11:54:00]Sock 9.First char is OK [11:54:00]request: POST /json_proto HTTP/1.0 [11:54:00]Method: POST [11:54:00]URL: /json_proto [11:54:00]Method is POST - this is cgi request [11:54:00]url: /json_proto [11:54:00]query_string will be loaded in cgi processing [11:54:00]execute_cgi json_proto POST (null) [11:54:00]execute_cgi path=json_proto method=POST [11:54:00]POST find Content-Length [11:54:00]Host: 172.17.55.133:8080 [11:54:00]Content-Length: 683 [11:54:00]Content-Type: application/json [11:54:00] [11:54:00]POST finish read [11:54:00]Found Content-Length = 683 [11:54:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:00]execute_script... [11:54: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)1036199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:00]POST & json_proto [11:54:00]process_json_proto [11:54:00]json parsed OK: [11:54:00]protocol is kg_v1.0 [11:54:00]action value=close_receipt [11:54:00]process_action close_receipt [11:54:00]cmd_close_receipt [11:54:00]MH_GetDate [11:54:00]Write to MH i2c: F0 00 00 FF 77 65 [11:54:00]Write i2c OK [11:54:00]MH_I2C_Read... [11:54:00]Read from MH i2c: F0 [11:54:00]MH_I2C_Read... [11:54:00]Read from MH i2c: F0 09 00 [11:54:00]MH_I2C_Read... [11:54:00]Read from MH i2c: F0 09 00 FF 77 00 DD E0 C1 66 34 48 D8 65 0B [11:54:00]GetLastDocTimeStamp 1723982021 [11:54:00]current date 1723982045 [11:54:00]FM_GetShiftState [11:54:00]SAM_PROTO_GetShiftState [11:54:00]wFMCommunicate request_size=4 [11:54:00]MH_SAM_APDU [11:54:00]CAPDU: 80 13 01 00 [11:54:00]Write to MH i2c: E2 08 00 00 78 80 13 01 00 00 00 00 00 F5 [11:54:00]Write i2c OK [11:54:00]MH_I2C_Read... [11:54:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:00]Read from MH i2c: E2 [11:54:00]MH_I2C_Read... [11:54:00]Read from MH i2c: E2 0E 00 [11:54:00]MH_I2C_Read... [11:54:00]Read from MH i2c: E2 0E 00 00 78 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 32 [11:54:00]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:54:00]wFMCommunicate OK [11:54:00]SAM_PROTO_GetShiftState done [11:54:00]FM_GetShiftState done [11:54:00]opened in 1723940556 [11:54:00]opened+sec_in_day 1724026956 [11:54:00]quantity*price = 100005 [11:54:00]sum+1 = 100006 [11:54:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 210 18.08.2024 11:54 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260652 ФПД: 139154323602416 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T115405&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260652&fm=139154323602416&tin=02508201610067®Number=0000000000091865&sum=100000 [11:54:02]StoreToDocumentArchive [11:54:02]shift 449 fd 260652 [11:54:02]save to /storage/0449/doc_00260652 [11:54:02]save last doc name /storage/0449/doc_00260652 to /storage/kkm_last_doc_name [11:54:02]save OK [11:54:02]Clear old archive folders... [11:54:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:54:02]tlvbuf is 0036F450 [11:54:02]SAM_PROTO_ClearQueue [11:54:02]wFMCommunicate request_size=4 [11:54:02]MH_SAM_APDU [11:54:02]CAPDU: 80 09 00 00 [11:54:02]Write to MH i2c: E2 08 00 0D 78 80 09 00 00 00 00 00 00 F7 [11:54:02]Write i2c OK [11:54:02]MH_I2C_Read... [11:54:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:02]Read from MH i2c: E2 [11:54:02]MH_I2C_Read... [11:54:02]Read from MH i2c: E2 03 00 [11:54:02]MH_I2C_Read... [11:54:02]Read from MH i2c: E2 03 00 0D 78 00 90 00 F9 [11:54:02]RAPDU: 90 00 [11:54:02]wFMCommunicate OK [11:54:02]SAM_PROTO_ClearQueue done [11:54:02]KKMCreateOFDPacket [11:54:02]OFDProtocolAddRootSTLVToBuf [11:54:02]FM_MakeSignedData [11:54:02]FM_MakeSignedData [11:54:02]SAM_PROTO_SignData [11:54:02]wFMCommunicate request_size=4 [11:54:02]MH_SAM_APDU [11:54:02]CAPDU: 80 0D 01 02 [11:54:02]Write to MH i2c: E2 08 00 0E 78 80 0D 01 02 00 00 00 00 FF [11:54:02]Write i2c OK [11:54:02]MH_I2C_Read... [11:54:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:02]Read from MH i2c: E2 [11:54:02]MH_I2C_Read... [11:54:02]Read from MH i2c: E2 03 00 [11:54:02]MH_I2C_Read... [11:54:02]Read from MH i2c: E2 03 00 0E 78 00 90 00 FA [11:54:02]RAPDU: 90 00 [11:54:02]wFMCommunicate OK [11:54:02]wFMCommunicate request_size=255 [11:54:02]MH_SAM_APDU [11:54:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 DD E0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2C FA 03 00 35 04 06 00 7E [11:54:02]Write to MH i2c: E2 02 01 0F 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 DD E0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2C FA 03 00 35 04 06 00 7E 00 00 2A [11:54:02]Write i2c OK [11:54:02]MH_I2C_Read... [11:54:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:02]Read from MH i2c: E2 [11:54:02]MH_I2C_Read... [11:54:02]Read from MH i2c: E2 03 00 [11:54:02]MH_I2C_Read... [11:54:02]Read from MH i2c: E2 03 00 0F 78 00 90 00 FB [11:54:02]RAPDU: 90 00 [11:54:02]wFMCommunicate OK [11:54:02]wFMCommunicate request_size=10 [11:54:02]MH_SAM_APDU [11:54:02]CAPDU: 80 0D 02 02 05 8F 64 06 FB F0 [11:54:02]Write to MH i2c: E2 0D 00 10 78 80 0D 02 02 05 00 8F 64 06 FB F0 00 00 F0 [11:54:02]Write i2c OK [11:54:02]MH_I2C_Read... [11:54:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:02]Read from MH i2c: E2 [11:54:02]MH_I2C_Read... [11:54:02]Read from MH i2c: E2 03 00 [11:54:02]MH_I2C_Read... [11:54:02]Read from MH i2c: E2 03 00 10 78 00 90 00 FC [11:54:02]RAPDU: 90 00 [11:54:02]wFMCommunicate OK [11:54:02]wFMCommunicate request_size=4 [11:54:02]MH_SAM_APDU [11:54:02]CAPDU: 80 0D 03 02 [11:54:02]Write to MH i2c: E2 08 00 11 78 80 0D 03 02 00 00 00 00 04 [11:54:02]Write i2c OK [11:54:02]MH_I2C_Read... [11:54:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:02]Read from MH i2c: E2 [11:54:02]MH_I2C_Read... [11:54:02]Read from MH i2c: E2 0B 00 [11:54:02]MH_I2C_Read... [11:54:02]Read from MH i2c: E2 0B 00 11 78 00 6B 49 A7 AC 86 E8 57 89 90 00 5A [11:54:02]RAPDU: 6B 49 A7 AC 86 E8 57 89 90 00 [11:54:02]wFMCommunicate OK [11:54:02]SAM_PROTO_SignData done [11:54:02]FM_MakeSignedData done [11:54:02]CreateOFDProtocolMessage [11:54:02]wFMCommunicate request_size=4 [11:54:02]MH_SAM_APDU [11:54:02]CAPDU: 80 11 00 00 [11:54:02]Write to MH i2c: E2 08 00 12 78 80 11 00 00 00 00 00 00 04 [11:54:02]Write i2c OK [11:54:02]MH_I2C_Read... [11:54:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:02]Read from MH i2c: E2 [11:54:02]MH_I2C_Read... [11:54:02]Read from MH i2c: E2 17 00 [11:54:02]MH_I2C_Read... [11:54:02]Read from MH i2c: E2 17 00 12 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 51 [11:54:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:54:02]wFMCommunicate OK [11:54:02]CreateOFDProtocolMessage done [11:54:02]OFDSenderStorePacket 260652 [11:54:02]StoreOFDPacket docnum=260652 [11:54:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 0A D6 07 01 CE BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 DD E0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2C FA 03 00 35 04 06 00 7E 8F 64 06 FB F0 6B 49 A7 AC 86 E8 57 89 [11:54:02]CheckFolder [11:54:02]dirname=/storage/ofd_packets [11:54:02]CheckFolder done [11:54:02]ProducePacketName [11:54:02]name=ofd_packets/00260652 [11:54:02]NVStorageSaveData ofd_packets/00260652 [11:54:02]File name is /storage/ofd_packets/00260652 [11:54:02]Write 301 bytes [11:54:02]NVStorageSaveData done [11:54:02]OFDSenderStorePacket done [11:54:02]KKMCreateOFDPacket done [11:54:02]NVStorageSaveData kkm_last_timestamp [11:54:02]File name is /storage/kkm_last_timestamp [11:54:02]Write 4 bytes [11:54:02]NVStorageSaveData done [11:54:02]ExternCall_PrintAddStr [11:54:02]wPrintStart [11:54:02]Write to MH i2c: 01 00 00 13 78 8B [11:54:02]Write i2c OK [11:54:02]MH_I2C_Read... [11:54:02]Read from MH i2c: 01 [11:54:02]MH_I2C_Read... [11:54:02]Read from MH i2c: 01 07 00 [11:54:02]MH_I2C_Read... [11:54:02]Read from MH i2c: 01 07 00 13 78 00 00 00 00 00 FF 0F A0 [11:54:02]RasterBufferAndPrint [11:54:02]line Счет N : (1)1036199 [11:54:02]line ИНН: 02508201610067 [11:54:02]line Контрольно-Кассовый Чек [11:54:02]line ПРОДАЖА [11:54:02]line ТРК (МРК, ГНК) : 32 [11:54:02]line Товар: 2710124130 [11:54:02]line Аи-92-К-5 [11:54:02]line 14.750 * 67.80 [11:54:02]line = 1000.05 [11:54:02]line НДС 12% НСП 1% [11:54:02]line > о реализуемом товаре [11:54:02]line ОКРУГЛЕНИЕ: -0.05 [11:54:02]line ИТОГО: 1000.00 [11:54:02]line Внесено: 1000.00 [11:54:02]line СДАЧА: 0.00 [11:54:02]line НСП 1% : 8.85 [11:54:02]line НДС 12% : 106.20 [11:54:02]line Наличными: 1000.00 [11:54:02]line Безнал.: 0.00 [11:54:02]line Место: АЗС № 94 "Партнер Нефть" [11:54:02]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:54:02]line СНО: Общий режим [11:54:02]line Чек 210 18.08.2024 11:54 [11:54:02]line Смена: 449 ФФД: 1.0 [11:54:02]line ЗНМ: 0300000099 [11:54:02]line РНМ: 0000000000091865 [11:54:02]line Версия ККМ: 001 [11:54:02]line ФМ: 0000000000871820 [11:54:02]line ФД: 260652 [11:54:02]line ФПД: 139154323602416 [11:54:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T115405&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260652&fm=139154323602416&tin=02508201610067®Number=0000000000091865&sum=100000 [11:54:02]OFD Sender: Processing packet 260652 [packets to send 192, broken 191] [11:54:02]ProducePacketName [11:54:02]name=ofd_packets/00260652 [11:54:02]OFD Sender: To server: pG, [11:54:02]CommunicateWithHost lk.salyk.kg:30040 [11:54:02]ConnectInit lk.salyk.kg [11:54:02]written 0, free lines is 4095 [11:54:03]Connected sock=10 [11:54: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 30 0F 01 00 00 0A D6 07 01 CE BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 DD E0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2C FA 03 00 35 04 06 00 7E 8F 64 06 FB F0 6B 49 A7 AC 86 E8 57 89 [11:54: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 30 4F 00 00 00 64 D7 47 00 BE 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 2C FA 03 00 F4 03 04 00 32 8A C1 66 B6 04 01 00 00 36 93 C8 29 DF 61 24 0A [11:54:03]CommunicateWithHost err = 0 [11:54:03]CheckOFDResponse [11:54:03]1017 (14) - 77093643461234 [11:54:03]1041 (16) - 0000000000871820 [11:54:03]1040 (4) - 260652 [11:54:03]1012 (4) - 18.08.2024 05:44 [11:54:03]1206 (1) - 0 [11:54:03]OFD Sender: Remove packet 260652 [11:54:03]ProducePacketName [11:54:03]name=ofd_packets/00260652 [11:54:03]NVStorageDeleteData [11:54:03]Write to MH i2c: 01 00 00 3E 78 B6 [11:54:03]Write i2c OK [11:54:03]MH_I2C_Read... [11:54:03]Read from MH i2c: 01 [11:54:03]MH_I2C_Read... [11:54:03]Read from MH i2c: 01 07 00 [11:54:03]MH_I2C_Read... [11:54:03]Read from MH i2c: 01 07 00 3E 78 00 00 00 00 00 68 0C 31 [11:54:03]RasterBufferAndPrint [11:54:03]line [11:54:03]line [11:54:03]line [11:54:03]line [11:54:03]line [11:54:03]written 0, free lines is 3179 [11:54:03]MH_Cut [11:54:03]Write to MH i2c: D1 01 00 45 78 01 8F [11:54:03]Write i2c OK [11:54:03]MH_I2C_Read... [11:54:03]Read from MH i2c: D1 [11:54:03]MH_I2C_Read... [11:54:03]Read from MH i2c: D1 01 00 [11:54:03]MH_I2C_Read... [11:54:03]Read from MH i2c: D1 01 00 45 78 00 8E [11:54:03]Write to MH i2c: 01 00 00 46 78 BE [11:54:03]Write i2c OK [11:54:03]MH_I2C_Read... [11:54:03]OFD Sender: No OFD packet to send [11:54:04]*** Cut start [11:54:04]*** Purtial cut [11:54:04]*** Stage 1: CUTSNS_PIN = 1 [11:54:06]Read from MH i2c: 01 [11:54:06]MH_I2C_Read... [11:54:06]*** Stop cut motor [11:54:06]*** Cut end [11:54:06]Read from MH i2c: 01 07 00 [11:54:06]MH_I2C_Read... [11:54:06]Read from MH i2c: 01 07 00 46 78 00 00 00 00 00 FF 0F D3 [11:54:06]process_action close_receipt done [11:54:06]requested_data is exist [11:54:06]produce_requested_data [11:54:06]requested_item fm.sn is exist - process it [11:54:06]wFMCommunicate request_size=4 [11:54:06]MH_SAM_APDU [11:54:06]CAPDU: 80 11 00 00 [11:54:06]Write to MH i2c: E2 08 00 47 78 80 11 00 00 00 00 00 00 39 [11:54:06]Write i2c OK [11:54:06]MH_I2C_Read... [11:54:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:06]Read from MH i2c: E2 [11:54:06]MH_I2C_Read... [11:54:06]Read from MH i2c: E2 17 00 [11:54:06]MH_I2C_Read... [11:54:06]Read from MH i2c: E2 17 00 47 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 86 [11:54:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:54:06]wFMCommunicate OK [11:54:06]requested_item fd.num is exist - process it [11:54:06]SAM_PROTO_GetFieldsCounters [11:54:06]wFMCommunicate request_size=4 [11:54:06]MH_SAM_APDU [11:54:06]CAPDU: 80 13 00 00 [11:54:06]Write to MH i2c: E2 08 00 48 78 80 13 00 00 00 00 00 00 3C [11:54:06]Write i2c OK [11:54:06]MH_I2C_Read... [11:54:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:06]Read from MH i2c: E2 [11:54:06]MH_I2C_Read... [11:54:06]Read from MH i2c: E2 62 00 [11:54:06]MH_I2C_Read... [11:54:06]Read from MH i2c: E2 62 00 48 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 2C FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [11:54: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 2C FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:54:06]wFMCommunicate OK [11:54:06]SAM_PROTO_GetFieldsCounters done [11:54:06]requested_item shift.num is exist - process it [11:54:06]requested_item shift.opened is exist - process it [11:54:06]req_shift_opened [11:54:06]FM_GetShiftState [11:54:06]SAM_PROTO_GetShiftState [11:54:06]wFMCommunicate request_size=4 [11:54:06]MH_SAM_APDU [11:54:06]CAPDU: 80 13 01 00 [11:54:06]Write to MH i2c: E2 08 00 49 78 80 13 01 00 00 00 00 00 3E [11:54:06]Write i2c OK [11:54:06]MH_I2C_Read... [11:54:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:06]Read from MH i2c: E2 [11:54:06]MH_I2C_Read... [11:54:06]Read from MH i2c: E2 0E 00 [11:54:06]MH_I2C_Read... [11:54:06]Read from MH i2c: E2 0E 00 49 78 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 7B [11:54:06]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:54:06]wFMCommunicate OK [11:54:06]SAM_PROTO_GetShiftState done [11:54:06]FM_GetShiftState done [11:54:06]req_shift_opened done [11:54:06]requested_item shift.open_date is exist - process it [11:54:06]req_shift_open_date [11:54:06]req_shift_open_date done [11:54:06]produce_requested_data done [11:54:06]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260652,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:54:06]process_action_free close_receipt [11:54:06]json_value_free [11:54:06]json_value_free done [11:54:06]process_json_proto returns [11:54:06]Send response to host [11:54:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260652,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:54:06]free response buf [11:54:06]execute_script done [11:54:06]execute_script returns [11:54:06]free content buf [11:54:06]Sock 9.Close socket [11:54:06]Sock 9.Thread stoped [11:54:08]OFD Sender: No OFD packet to send [11:54:13]OFD Sender: No OFD packet to send [11:54:18]OFD Sender: No OFD packet to send [11:54:23]OFD Sender: No OFD packet to send [11:54:28]OFD Sender: No OFD packet to send [11:54:33]OFD Sender: No OFD packet to send [11:54:38]OFD Sender: No OFD packet to send [11:54:43]OFD Sender: No OFD packet to send [11:54:48]OFD Sender: No OFD packet to send [11:54:53]OFD Sender: No OFD packet to send [11:54:58]OFD Sender: No OFD packet to send [11:55:03]OFD Sender: No OFD packet to send [11:55:08]OFD Sender: No OFD packet to send [11:55:13]OFD Sender: No OFD packet to send [11:55:18]OFD Sender: No OFD packet to send [11:55:23]OFD Sender: No OFD packet to send [11:55:27]accept exits with 7 [11:55:27]New connection [11:55:27]New thread 3066617188 created [11:55:27]Thread 3066473828 joined [11:55:27]Waiting for new connection... [11:55:27] Sock 7.Parse request [11:55:27]Sock 7.Check first char [11:55:27]Sock 7.First char is OK [11:55:27]request: POST /json_proto HTTP/1.0 [11:55:27]Method: POST [11:55:27]URL: /json_proto [11:55:27]Method is POST - this is cgi request [11:55:27]url: /json_proto [11:55:27]query_string will be loaded in cgi processing [11:55:27]execute_cgi json_proto POST (null) [11:55:27]execute_cgi path=json_proto method=POST [11:55:27]POST find Content-Length [11:55:27]Host: 172.17.55.133:8080 [11:55:27]Content-Length: 678 [11:55:27]Content-Type: application/json [11:55:27] [11:55:27]POST finish read [11:55:27]Found Content-Length = 678 [11:55:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:55:27]execute_script... [11:55: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)1036200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:55:27]POST & json_proto [11:55:27]process_json_proto [11:55:27]json parsed OK: [11:55:27]protocol is kg_v1.0 [11:55:27]action value=close_receipt [11:55:27]process_action close_receipt [11:55:27]cmd_close_receipt [11:55:27]MH_GetDate [11:55:27]Write to MH i2c: F0 00 00 4A 78 B1 [11:55:27]Write i2c OK [11:55:27]MH_I2C_Read... [11:55:27]Read from MH i2c: F0 [11:55:27]MH_I2C_Read... [11:55:27]Read from MH i2c: F0 09 00 [11:55:27]MH_I2C_Read... [11:55:27]Read from MH i2c: F0 09 00 4A 78 00 34 E1 C1 66 34 48 D8 65 AF [11:55:27]GetLastDocTimeStamp 1723982045 [11:55:27]current date 1723982132 [11:55:27]FM_GetShiftState [11:55:27]SAM_PROTO_GetShiftState [11:55:27]wFMCommunicate request_size=4 [11:55:27]MH_SAM_APDU [11:55:27]CAPDU: 80 13 01 00 [11:55:27]Write to MH i2c: E2 08 00 4B 78 80 13 01 00 00 00 00 00 40 [11:55:27]Write i2c OK [11:55:27]MH_I2C_Read... [11:55:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:27]Read from MH i2c: E2 [11:55:27]MH_I2C_Read... [11:55:27]Read from MH i2c: E2 0E 00 [11:55:27]MH_I2C_Read... [11:55:27]Read from MH i2c: E2 0E 00 4B 78 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 7D [11:55:27]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:55:27]wFMCommunicate OK [11:55:27]SAM_PROTO_GetShiftState done [11:55:27]FM_GetShiftState done [11:55:27]opened in 1723940556 [11:55:27]opened+sec_in_day 1724026956 [11:55:27]quantity*price = 40002 [11:55:27]sum+1 = 40003 [11:55:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 211 18.08.2024 11:55 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260653 ФПД: 64986395459490 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T115532&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260653&fm=64986395459490&tin=02508201610067®Number=0000000000091865&sum=40000 [11:55:28]StoreToDocumentArchive [11:55:28]shift 449 fd 260653 [11:55:28]save to /storage/0449/doc_00260653 [11:55:28]save last doc name /storage/0449/doc_00260653 to /storage/kkm_last_doc_name [11:55:28]save OK [11:55:28]Clear old archive folders... [11:55:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:55:28]tlvbuf is 00453B00 [11:55:28]SAM_PROTO_ClearQueue [11:55:28]wFMCommunicate request_size=4 [11:55:28]MH_SAM_APDU [11:55:28]CAPDU: 80 09 00 00 [11:55:28]Write to MH i2c: E2 08 00 58 78 80 09 00 00 00 00 00 00 42 [11:55:28]Write i2c OK [11:55:28]MH_I2C_Read... [11:55:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:28]Read from MH i2c: E2 [11:55:28]MH_I2C_Read... [11:55:28]Read from MH i2c: E2 03 00 [11:55:28]MH_I2C_Read... [11:55:28]Read from MH i2c: E2 03 00 58 78 00 90 00 44 [11:55:28]RAPDU: 90 00 [11:55:28]wFMCommunicate OK [11:55:28]SAM_PROTO_ClearQueue done [11:55:28]KKMCreateOFDPacket [11:55:28]OFDProtocolAddRootSTLVToBuf [11:55:28]FM_MakeSignedData [11:55:28]FM_MakeSignedData [11:55:28]SAM_PROTO_SignData [11:55:28]wFMCommunicate request_size=4 [11:55:28]MH_SAM_APDU [11:55:28]CAPDU: 80 0D 01 02 [11:55:28]Write to MH i2c: E2 08 00 59 78 80 0D 01 02 00 00 00 00 4A [11:55:28]Write i2c OK [11:55:28]MH_I2C_Read... [11:55:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:28]Read from MH i2c: E2 [11:55:28]MH_I2C_Read... [11:55:28]Read from MH i2c: E2 03 00 [11:55:28]MH_I2C_Read... [11:55:28]Read from MH i2c: E2 03 00 59 78 00 90 00 45 [11:55:28]RAPDU: 90 00 [11:55:28]wFMCommunicate OK [11:55:28]wFMCommunicate request_size=255 [11:55:28]MH_SAM_APDU [11:55: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 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 34 E1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2D FA 03 00 35 04 06 00 3B [11:55:28]Write to MH i2c: E2 02 01 5A 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 34 E1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2D FA 03 00 35 04 06 00 3B 00 00 E2 [11:55:28]Write i2c OK [11:55:28]MH_I2C_Read... [11:55:28]OFD Sender: No OFD packet to send [11:55:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:29]Read from MH i2c: E2 [11:55:29]MH_I2C_Read... [11:55:29]Read from MH i2c: E2 03 00 [11:55:29]MH_I2C_Read... [11:55:29]Read from MH i2c: E2 03 00 5A 78 00 90 00 46 [11:55:29]RAPDU: 90 00 [11:55:29]wFMCommunicate OK [11:55:29]wFMCommunicate request_size=10 [11:55:29]MH_SAM_APDU [11:55:29]CAPDU: 80 0D 02 02 05 1A D3 04 3F A2 [11:55:29]Write to MH i2c: E2 0D 00 5B 78 80 0D 02 02 05 00 1A D3 04 3F A2 00 00 29 [11:55:29]Write i2c OK [11:55:29]MH_I2C_Read... [11:55:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:29]Read from MH i2c: E2 [11:55:29]MH_I2C_Read... [11:55:29]Read from MH i2c: E2 03 00 [11:55:29]MH_I2C_Read... [11:55:29]Read from MH i2c: E2 03 00 5B 78 00 90 00 47 [11:55:29]RAPDU: 90 00 [11:55:29]wFMCommunicate OK [11:55:29]wFMCommunicate request_size=4 [11:55:29]MH_SAM_APDU [11:55:29]CAPDU: 80 0D 03 02 [11:55:29]Write to MH i2c: E2 08 00 5C 78 80 0D 03 02 00 00 00 00 4F [11:55:29]Write i2c OK [11:55:29]MH_I2C_Read... [11:55:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:29]Read from MH i2c: E2 [11:55:29]MH_I2C_Read... [11:55:29]Read from MH i2c: E2 0B 00 [11:55:29]MH_I2C_Read... [11:55:29]Read from MH i2c: E2 0B 00 5C 78 00 12 4B 9F 49 A7 8C 8B C7 90 00 1A [11:55:29]RAPDU: 12 4B 9F 49 A7 8C 8B C7 90 00 [11:55:29]wFMCommunicate OK [11:55:29]SAM_PROTO_SignData done [11:55:29]FM_MakeSignedData done [11:55:29]CreateOFDProtocolMessage [11:55:29]wFMCommunicate request_size=4 [11:55:29]MH_SAM_APDU [11:55:29]CAPDU: 80 11 00 00 [11:55:29]Write to MH i2c: E2 08 00 5D 78 80 11 00 00 00 00 00 00 4F [11:55:29]Write i2c OK [11:55:29]MH_I2C_Read... [11:55:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:29]Read from MH i2c: E2 [11:55:29]MH_I2C_Read... [11:55:29]Read from MH i2c: E2 17 00 [11:55:29]MH_I2C_Read... [11:55:29]Read from MH i2c: E2 17 00 5D 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 9C [11:55:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:55:29]wFMCommunicate OK [11:55:29]CreateOFDProtocolMessage done [11:55:29]OFDSenderStorePacket 260653 [11:55:29]StoreOFDPacket docnum=260653 [11:55:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 5A AB 07 01 E4 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 34 E1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2D FA 03 00 35 04 06 00 3B 1A D3 04 3F A2 12 4B 9F 49 A7 8C 8B C7 [11:55:29]CheckFolder [11:55:29]dirname=/storage/ofd_packets [11:55:29]CheckFolder done [11:55:29]ProducePacketName [11:55:29]name=ofd_packets/00260653 [11:55:29]NVStorageSaveData ofd_packets/00260653 [11:55:29]File name is /storage/ofd_packets/00260653 [11:55:29]Write 301 bytes [11:55:29]NVStorageSaveData done [11:55:29]OFDSenderStorePacket done [11:55:29]KKMCreateOFDPacket done [11:55:29]NVStorageSaveData kkm_last_timestamp [11:55:29]File name is /storage/kkm_last_timestamp [11:55:29]Write 4 bytes [11:55:29]NVStorageSaveData done [11:55:29]ExternCall_PrintAddStr [11:55:29]wPrintStart [11:55:29]Write to MH i2c: 01 00 00 5E 78 D6 [11:55:29]Write i2c OK [11:55:29]MH_I2C_Read... [11:55:29]Read from MH i2c: 01 [11:55:29]MH_I2C_Read... [11:55:29]Read from MH i2c: 01 07 00 [11:55:29]MH_I2C_Read... [11:55:29]Read from MH i2c: 01 07 00 5E 78 00 00 00 00 00 FF 0F EB [11:55:29]RasterBufferAndPrint [11:55:29]line Счет N : (1)1036200 [11:55:29]line ИНН: 02508201610067 [11:55:29]line Контрольно-Кассовый Чек [11:55:29]line ПРОДАЖА [11:55:29]line ТРК (МРК, ГНК) : 22 [11:55:29]line Товар: 2710124130 [11:55:29]line Аи-92-К-5 [11:55:29]line 5.900 * 67.80 [11:55:29]line = 400.02 [11:55:29]line НДС 12% НСП 1% [11:55:29]line > о реализуемом товаре [11:55:29]line ОКРУГЛЕНИЕ: -0.02 [11:55:29]line ИТОГО: 400.00 [11:55:29]line Внесено: 400.00 [11:55:29]line СДАЧА: 0.00 [11:55:29]line НСП 1% : 3.54 [11:55:29]line НДС 12% : 42.48 [11:55:29]line Наличными: 400.00 [11:55:29]line Безнал.: 0.00 [11:55:29]line Место: АЗС № 94 "Партнер Нефть" [11:55:29]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:55:29]line СНО: Общий режим [11:55:29]line Чек 211 18.08.2024 11:55 [11:55:29]line Смена: 449 ФФД: 1.0 [11:55:29]line ЗНМ: 0300000099 [11:55:29]line РНМ: 0000000000091865 [11:55:29]line Версия ККМ: 001 [11:55:29]line ФМ: 0000000000871820 [11:55:29]line ФД: 260653 [11:55:29]line ФПД: 64986395459490 [11:55:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T115532&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260653&fm=64986395459490&tin=02508201610067®Number=0000000000091865&sum=40000 [11:55:29]OFD Sender: Processing packet 260653 [packets to send 192, broken 191] [11:55:29]ProducePacketName [11:55:29]name=ofd_packets/00260653 [11:55:29]OFD Sender: To server: pG, [11:55:29]CommunicateWithHost lk.salyk.kg:30040 [11:55:29]ConnectInit lk.salyk.kg [11:55:29]written 0, free lines is 4095 [11:55:29]Connected sock=10 [11:55: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 30 0F 01 00 00 5A AB 07 01 E4 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 34 E1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2D FA 03 00 35 04 06 00 3B 1A D3 04 3F A2 12 4B 9F 49 A7 8C 8B C7 [11:55: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 30 4F 00 00 00 E7 40 47 00 CA C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2D FA 03 00 F4 03 04 00 89 8A C1 66 B6 04 01 00 00 EF 9F BF B7 0A 83 0F 40 [11:55:29]CommunicateWithHost err = 0 [11:55:29]CheckOFDResponse [11:55:29]1017 (14) - 77093643461234 [11:55:29]1041 (16) - 0000000000871820 [11:55:29]1040 (4) - 260653 [11:55:29]1012 (4) - 18.08.2024 05:45 [11:55:29]1206 (1) - 0 [11:55:29]OFD Sender: Remove packet 260653 [11:55:29]ProducePacketName [11:55:29]name=ofd_packets/00260653 [11:55:29]NVStorageDeleteData [11:55:29]Write to MH i2c: 01 00 00 89 78 01 [11:55:29]Write i2c OK [11:55:29]MH_I2C_Read... [11:55:29]Read from MH i2c: 01 [11:55:29]MH_I2C_Read... [11:55:29]Read from MH i2c: 01 07 00 [11:55:29]MH_I2C_Read... [11:55:29]Read from MH i2c: 01 07 00 89 78 00 00 00 00 00 76 0C 8A [11:55:29]RasterBufferAndPrint [11:55:29]line [11:55:29]line [11:55:29]line [11:55:29]line [11:55:29]line [11:55:29]written 0, free lines is 3193 [11:55:29]MH_Cut [11:55:29]Write to MH i2c: D1 01 00 90 78 01 DA [11:55:29]Write i2c OK [11:55:29]MH_I2C_Read... [11:55:29]Read from MH i2c: D1 [11:55:29]MH_I2C_Read... [11:55:29]Read from MH i2c: D1 01 00 [11:55:29]MH_I2C_Read... [11:55:29]Read from MH i2c: D1 01 00 90 78 00 D9 [11:55:29]Write to MH i2c: 01 00 00 91 78 09 [11:55:29]Write i2c OK [11:55:29]MH_I2C_Read... [11:55:30]OFD Sender: No OFD packet to send [11:55:31]*** Cut start [11:55:31]*** Purtial cut [11:55:31]*** Stage 1: CUTSNS_PIN = 1 [11:55:33]Read from MH i2c: 01 [11:55:33]MH_I2C_Read... [11:55:33]*** Stop cut motor [11:55:33]*** Cut end [11:55:33]Read from MH i2c: 01 07 00 [11:55:33]MH_I2C_Read... [11:55:33]Read from MH i2c: 01 07 00 91 78 00 00 00 00 00 FF 0F 1E [11:55:33]process_action close_receipt done [11:55:33]requested_data is exist [11:55:33]produce_requested_data [11:55:33]requested_item fm.sn is exist - process it [11:55:33]wFMCommunicate request_size=4 [11:55:33]MH_SAM_APDU [11:55:33]CAPDU: 80 11 00 00 [11:55:33]Write to MH i2c: E2 08 00 92 78 80 11 00 00 00 00 00 00 84 [11:55:33]Write i2c OK [11:55:33]MH_I2C_Read... [11:55:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:33]Read from MH i2c: E2 [11:55:33]MH_I2C_Read... [11:55:33]Read from MH i2c: E2 17 00 [11:55:33]MH_I2C_Read... [11:55:33]Read from MH i2c: E2 17 00 92 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D1 [11:55:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:55:33]wFMCommunicate OK [11:55:33]requested_item fd.num is exist - process it [11:55:33]SAM_PROTO_GetFieldsCounters [11:55:33]wFMCommunicate request_size=4 [11:55:33]MH_SAM_APDU [11:55:33]CAPDU: 80 13 00 00 [11:55:33]Write to MH i2c: E2 08 00 93 78 80 13 00 00 00 00 00 00 87 [11:55:33]Write i2c OK [11:55:33]MH_I2C_Read... [11:55:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:33]Read from MH i2c: E2 [11:55:33]MH_I2C_Read... [11:55:33]Read from MH i2c: E2 62 00 [11:55:33]MH_I2C_Read... [11:55:33]Read from MH i2c: E2 62 00 93 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 2D FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [11:55: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 2D FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:55:33]wFMCommunicate OK [11:55:33]SAM_PROTO_GetFieldsCounters done [11:55:33]requested_item shift.num is exist - process it [11:55:33]requested_item shift.opened is exist - process it [11:55:33]req_shift_opened [11:55:33]FM_GetShiftState [11:55:33]SAM_PROTO_GetShiftState [11:55:33]wFMCommunicate request_size=4 [11:55:33]MH_SAM_APDU [11:55:33]CAPDU: 80 13 01 00 [11:55:33]Write to MH i2c: E2 08 00 94 78 80 13 01 00 00 00 00 00 89 [11:55:33]Write i2c OK [11:55:33]MH_I2C_Read... [11:55:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:33]Read from MH i2c: E2 [11:55:33]MH_I2C_Read... [11:55:33]Read from MH i2c: E2 0E 00 [11:55:33]MH_I2C_Read... [11:55:33]Read from MH i2c: E2 0E 00 94 78 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C6 [11:55:33]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:55:33]wFMCommunicate OK [11:55:33]SAM_PROTO_GetShiftState done [11:55:33]FM_GetShiftState done [11:55:33]req_shift_opened done [11:55:33]requested_item shift.open_date is exist - process it [11:55:33]req_shift_open_date [11:55:33]req_shift_open_date done [11:55:33]produce_requested_data done [11:55:33]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260653,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:55:33]process_action_free close_receipt [11:55:33]json_value_free [11:55:33]json_value_free done [11:55:33]process_json_proto returns [11:55:33]Send response to host [11:55:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260653,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:55:33]free response buf [11:55:33]execute_script done [11:55:33]execute_script returns [11:55:33]free content buf [11:55:33]Sock 7.Close socket [11:55:33]Sock 7.Thread stoped [11:55:35]OFD Sender: No OFD packet to send [11:55:40]OFD Sender: No OFD packet to send [11:55:45]OFD Sender: No OFD packet to send [11:55:50]OFD Sender: No OFD packet to send [11:55:55]OFD Sender: No OFD packet to send [11:56:00]OFD Sender: No OFD packet to send [11:56:05]OFD Sender: No OFD packet to send [11:56:10]OFD Sender: No OFD packet to send [11:56:15]accept exits with 9 [11:56:15]New connection [11:56:15]New thread 3066473828 created [11:56:15]Thread 3066617188 joined [11:56:15]Waiting for new connection... [11:56:15] Sock 9.Parse request [11:56:15]Sock 9.Check first char [11:56:15]Sock 9.First char is OK [11:56:15]request: POST /json_proto HTTP/1.0 [11:56:15]Method: POST [11:56:15]URL: /json_proto [11:56:15]Method is POST - this is cgi request [11:56:15]url: /json_proto [11:56:15]query_string will be loaded in cgi processing [11:56:15]execute_cgi json_proto POST (null) [11:56:15]execute_cgi path=json_proto method=POST [11:56:15]POST find Content-Length [11:56:15]Host: 172.17.55.133:8080 [11:56:15]Content-Length: 678 [11:56:15]Content-Type: application/json [11:56:15] [11:56:15]POST finish read [11:56:15]Found Content-Length = 678 [11:56:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:56:15]execute_script... [11:56: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)1036201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:56:15]POST & json_proto [11:56:15]process_json_proto [11:56:15]json parsed OK: [11:56:15]protocol is kg_v1.0 [11:56:15]action value=close_receipt [11:56:15]process_action close_receipt [11:56:15]cmd_close_receipt [11:56:15]MH_GetDate [11:56:15]Write to MH i2c: F0 00 00 95 78 FC [11:56:15]Write i2c OK [11:56:15]MH_I2C_Read... [11:56:15]Read from MH i2c: F0 [11:56:15]MH_I2C_Read... [11:56:15]Read from MH i2c: F0 09 00 [11:56:15]MH_I2C_Read... [11:56:15]Read from MH i2c: F0 09 00 95 78 00 63 E1 C1 66 34 48 D8 65 29 [11:56:15]GetLastDocTimeStamp 1723982132 [11:56:15]current date 1723982179 [11:56:15]FM_GetShiftState [11:56:15]SAM_PROTO_GetShiftState [11:56:15]wFMCommunicate request_size=4 [11:56:15]MH_SAM_APDU [11:56:15]CAPDU: 80 13 01 00 [11:56:15]Write to MH i2c: E2 08 00 96 78 80 13 01 00 00 00 00 00 8B [11:56:15]Write i2c OK [11:56:15]MH_I2C_Read... [11:56:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:15]Read from MH i2c: E2 [11:56:15]MH_I2C_Read... [11:56:15]Read from MH i2c: E2 0E 00 [11:56:15]MH_I2C_Read... [11:56:15]Read from MH i2c: E2 0E 00 96 78 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C8 [11:56:15]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:56:15]wFMCommunicate OK [11:56:15]SAM_PROTO_GetShiftState done [11:56:15]FM_GetShiftState done [11:56:15]opened in 1723940556 [11:56:15]opened+sec_in_day 1724026956 [11:56:15]quantity*price = 20001 [11:56:15]sum+1 = 20002 [11:56:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 212 18.08.2024 11:56 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260654 ФПД: 152527258774029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T115619&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260654&fm=152527258774029&tin=02508201610067®Number=0000000000091865&sum=20000 [11:56:16]StoreToDocumentArchive [11:56:16]shift 449 fd 260654 [11:56:16]save to /storage/0449/doc_00260654 [11:56:16]save last doc name /storage/0449/doc_00260654 to /storage/kkm_last_doc_name [11:56:16]save OK [11:56:16]Clear old archive folders... [11:56:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:56:16]tlvbuf is 00433340 [11:56:16]SAM_PROTO_ClearQueue [11:56:16]wFMCommunicate request_size=4 [11:56:16]MH_SAM_APDU [11:56:16]CAPDU: 80 09 00 00 [11:56:16]Write to MH i2c: E2 08 00 A3 78 80 09 00 00 00 00 00 00 8D [11:56:16]Write i2c OK [11:56:16]MH_I2C_Read... [11:56:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:56:16]Read from MH i2c: E2 [11:56:16]MH_I2C_Read... [11:56:16]Read from MH i2c: E2 03 00 [11:56:16]MH_I2C_Read... [11:56:16]Read from MH i2c: E2 03 00 A3 78 00 90 00 8F [11:56:16]RAPDU: 90 00 [11:56:16]wFMCommunicate OK [11:56:16]SAM_PROTO_ClearQueue done [11:56:16]KKMCreateOFDPacket [11:56:16]OFDProtocolAddRootSTLVToBuf [11:56:16]FM_MakeSignedData [11:56:16]FM_MakeSignedData [11:56:16]SAM_PROTO_SignData [11:56:16]wFMCommunicate request_size=4 [11:56:16]MH_SAM_APDU [11:56:16]CAPDU: 80 0D 01 02 [11:56:16]Write to MH i2c: E2 08 00 A4 78 80 0D 01 02 00 00 00 00 95 [11:56:16]Write i2c OK [11:56:16]MH_I2C_Read... [11:56:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:56:16]Read from MH i2c: E2 [11:56:16]MH_I2C_Read... [11:56:16]Read from MH i2c: E2 03 00 [11:56:16]MH_I2C_Read... [11:56:16]Read from MH i2c: E2 03 00 A4 78 00 90 00 90 [11:56:16]RAPDU: 90 00 [11:56:16]wFMCommunicate OK [11:56:16]wFMCommunicate request_size=255 [11:56:16]MH_SAM_APDU [11:56:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 63 E1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2E FA 03 00 35 04 06 00 8A [11:56:16]Write to MH i2c: E2 02 01 A5 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 63 E1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2E FA 03 00 35 04 06 00 8A 00 00 CA [11:56:16]Write i2c OK [11:56:16]MH_I2C_Read... [11:56:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:16]Read from MH i2c: E2 [11:56:16]MH_I2C_Read... [11:56:16]Read from MH i2c: E2 03 00 [11:56:16]MH_I2C_Read... [11:56:16]Read from MH i2c: E2 03 00 A5 78 00 90 00 91 [11:56:16]RAPDU: 90 00 [11:56:16]wFMCommunicate OK [11:56:16]wFMCommunicate request_size=10 [11:56:16]MH_SAM_APDU [11:56:16]CAPDU: 80 0D 02 02 05 B9 05 13 EA 0D [11:56:16]Write to MH i2c: E2 0D 00 A6 78 80 0D 02 02 05 00 B9 05 13 EA 0D 00 00 6A [11:56:16]Write i2c OK [11:56:16]MH_I2C_Read... [11:56:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:16]Read from MH i2c: E2 [11:56:16]MH_I2C_Read... [11:56:16]Read from MH i2c: E2 03 00 [11:56:16]MH_I2C_Read... [11:56:16]Read from MH i2c: E2 03 00 A6 78 00 90 00 92 [11:56:16]RAPDU: 90 00 [11:56:16]wFMCommunicate OK [11:56:16]wFMCommunicate request_size=4 [11:56:16]MH_SAM_APDU [11:56:16]CAPDU: 80 0D 03 02 [11:56:16]Write to MH i2c: E2 08 00 A7 78 80 0D 03 02 00 00 00 00 9A [11:56:16]Write i2c OK [11:56:16]MH_I2C_Read... [11:56:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:56:16]Read from MH i2c: E2 [11:56:16]MH_I2C_Read... [11:56:16]Read from MH i2c: E2 0B 00 [11:56:16]MH_I2C_Read... [11:56:16]Read from MH i2c: E2 0B 00 A7 78 00 36 0E D4 FA DE 4A 3E 20 90 00 33 [11:56:16]RAPDU: 36 0E D4 FA DE 4A 3E 20 90 00 [11:56:16]wFMCommunicate OK [11:56:16]SAM_PROTO_SignData done [11:56:16]FM_MakeSignedData done [11:56:16]CreateOFDProtocolMessage [11:56:16]wFMCommunicate request_size=4 [11:56:16]MH_SAM_APDU [11:56:16]CAPDU: 80 11 00 00 [11:56:16]Write to MH i2c: E2 08 00 A8 78 80 11 00 00 00 00 00 00 9A [11:56:16]Write i2c OK [11:56:16]MH_I2C_Read... [11:56:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:16]Read from MH i2c: E2 [11:56:16]MH_I2C_Read... [11:56:16]Read from MH i2c: E2 17 00 [11:56:16]MH_I2C_Read... [11:56:16]Read from MH i2c: E2 17 00 A8 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E7 [11:56:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:56:16]wFMCommunicate OK [11:56:16]CreateOFDProtocolMessage done [11:56:16]OFDSenderStorePacket 260654 [11:56:16]StoreOFDPacket docnum=260654 [11:56:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 3B 6A 07 01 C2 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 63 E1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2E FA 03 00 35 04 06 00 8A B9 05 13 EA 0D 36 0E D4 FA DE 4A 3E 20 [11:56:16]CheckFolder [11:56:16]dirname=/storage/ofd_packets [11:56:16]CheckFolder done [11:56:16]ProducePacketName [11:56:16]name=ofd_packets/00260654 [11:56:16]NVStorageSaveData ofd_packets/00260654 [11:56:16]File name is /storage/ofd_packets/00260654 [11:56:16]Write 301 bytes [11:56:16]NVStorageSaveData done [11:56:16]OFDSenderStorePacket done [11:56:16]KKMCreateOFDPacket done [11:56:16]NVStorageSaveData kkm_last_timestamp [11:56:16]File name is /storage/kkm_last_timestamp [11:56:16]Write 4 bytes [11:56:16]NVStorageSaveData done [11:56:16]ExternCall_PrintAddStr [11:56:16]wPrintStart [11:56:16]Write to MH i2c: 01 00 00 A9 78 21 [11:56:16]Write i2c OK [11:56:16]MH_I2C_Read... [11:56:16]Read from MH i2c: 01 [11:56:16]MH_I2C_Read... [11:56:16]Read from MH i2c: 01 07 00 [11:56:16]MH_I2C_Read... [11:56:16]Read from MH i2c: 01 07 00 A9 78 00 00 00 00 00 FF 0F 36 [11:56:16]RasterBufferAndPrint [11:56:16]line Счет N : (1)1036201 [11:56:16]line ИНН: 02508201610067 [11:56:16]line Контрольно-Кассовый Чек [11:56:16]line ПРОДАЖА [11:56:16]line ТРК (МРК, ГНК) : 42 [11:56:16]line Товар: 2710124130 [11:56:16]line Аи-92-К-5 [11:56:16]line 2.950 * 67.80 [11:56:16]line = 200.01 [11:56:16]line НДС 12% НСП 1% [11:56:16]line > о реализуемом товаре [11:56:16]line ОКРУГЛЕНИЕ: -0.01 [11:56:16]line ИТОГО: 200.00 [11:56:16]line Внесено: 200.00 [11:56:16]line СДАЧА: 0.00 [11:56:16]line НСП 1% : 1.77 [11:56:16]line НДС 12% : 21.24 [11:56:16]line Наличными: 200.00 [11:56:16]line Безнал.: 0.00 [11:56:16]line Место: АЗС № 94 "Партнер Нефть" [11:56:16]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [11:56:16]line СНО: Общий режим [11:56:16]line Чек 212 18.08.2024 11:56 [11:56:16]line Смена: 449 ФФД: 1.0 [11:56:16]line ЗНМ: 0300000099 [11:56:16]line РНМ: 0000000000091865 [11:56:16]line Версия ККМ: 001 [11:56:16]line ФМ: 0000000000871820 [11:56:16]line ФД: 260654 [11:56:16]line ФПД: 152527258774029 [11:56:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T115619&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260654&fm=152527258774029&tin=02508201610067®Number=0000000000091865&sum=20000 [11:56:16]written 0, free lines is 4095 [11:56:16]OFD Sender: Processing packet 260654 [packets to send 192, broken 191] [11:56:16]ProducePacketName [11:56:17]name=ofd_packets/00260654 [11:56:17]OFD Sender: To server: pG, [11:56:17]CommunicateWithHost lk.salyk.kg:30040 [11:56:17]ConnectInit lk.salyk.kg [11:56:17]Connected sock=10 [11:56: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 30 0F 01 00 00 3B 6A 07 01 C2 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 63 E1 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2E FA 03 00 35 04 06 00 8A B9 05 13 EA 0D 36 0E D4 FA DE 4A 3E 20 [11:56:17]Write to MH i2c: 01 00 00 D4 78 4C [11:56:17]Write i2c OK [11:56:17]MH_I2C_Read... [11:56:17]Read from MH i2c: 01 [11:56:17]MH_I2C_Read... [11:56:17]Read from MH i2c: 01 07 00 [11:56:17]MH_I2C_Read... [11:56:17]Read from MH i2c: 01 07 00 D4 78 00 00 00 00 00 65 0C C4 [11:56:17]RasterBufferAndPrint [11:56:17]line [11:56:17]line [11:56:17]line [11:56:17]line [11:56:17]line [11:56:17]written 0, free lines is 3177 [11:56:17]MH_Cut [11:56:17]Write to MH i2c: D1 01 00 DB 78 01 25 [11:56:17]Write i2c OK [11:56:17]MH_I2C_Read... [11:56:17]Read from MH i2c: D1 [11:56:17]MH_I2C_Read... [11:56:17]Read from MH i2c: D1 01 00 [11:56:17]MH_I2C_Read... [11:56:17]Read from MH i2c: D1 01 00 DB 78 00 24 [11:56:17]Write to MH i2c: 01 00 00 DC 78 54 [11:56:17]Write i2c OK [11:56:17]MH_I2C_Read... [11:56: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 30 4F 00 00 00 5B F3 47 00 D2 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2E FA 03 00 F4 03 04 00 B9 8A C1 66 B6 04 01 00 00 E8 7E 79 4F 21 19 EF 2A [11:56:17]CommunicateWithHost err = 0 [11:56:17]CheckOFDResponse [11:56:17]1017 (14) - 77093643461234 [11:56:17]1041 (16) - 0000000000871820 [11:56:17]1040 (4) - 260654 [11:56:17]1012 (4) - 18.08.2024 05:46 [11:56:17]1206 (1) - 0 [11:56:17]OFD Sender: Remove packet 260654 [11:56:17]ProducePacketName [11:56:17]name=ofd_packets/00260654 [11:56:17]NVStorageDeleteData [11:56:17]OFD Sender: No OFD packet to send [11:56:18]*** Cut start [11:56:18]*** Purtial cut [11:56:18]*** Stage 1: CUTSNS_PIN = 1 [11:56:20]Read from MH i2c: 01 [11:56:20]MH_I2C_Read... [11:56:20]*** Stop cut motor [11:56:20]*** Cut end [11:56:20]Read from MH i2c: 01 07 00 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: 01 07 00 DC 78 00 00 00 00 00 FF 0F 69 [11:56:20]process_action close_receipt done [11:56:20]requested_data is exist [11:56:20]produce_requested_data [11:56:20]requested_item fm.sn is exist - process it [11:56:20]wFMCommunicate request_size=4 [11:56:20]MH_SAM_APDU [11:56:20]CAPDU: 80 11 00 00 [11:56:20]Write to MH i2c: E2 08 00 DD 78 80 11 00 00 00 00 00 00 CF [11:56:20]Write i2c OK [11:56:20]MH_I2C_Read... [11:56:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:20]Read from MH i2c: E2 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 17 00 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 17 00 DD 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 1C [11:56:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [11:56:20]wFMCommunicate OK [11:56:20]requested_item fd.num is exist - process it [11:56:20]SAM_PROTO_GetFieldsCounters [11:56:20]wFMCommunicate request_size=4 [11:56:20]MH_SAM_APDU [11:56:20]CAPDU: 80 13 00 00 [11:56:20]Write to MH i2c: E2 08 00 DE 78 80 13 00 00 00 00 00 00 D2 [11:56:20]Write i2c OK [11:56:20]MH_I2C_Read... [11:56:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:20]Read from MH i2c: E2 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 62 00 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 62 00 DE 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 2E FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [11:56: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 2E FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:56:20]wFMCommunicate OK [11:56:20]SAM_PROTO_GetFieldsCounters done [11:56:20]requested_item shift.num is exist - process it [11:56:20]requested_item shift.opened is exist - process it [11:56:20]req_shift_opened [11:56:20]FM_GetShiftState [11:56:20]SAM_PROTO_GetShiftState [11:56:20]wFMCommunicate request_size=4 [11:56:20]MH_SAM_APDU [11:56:20]CAPDU: 80 13 01 00 [11:56:20]Write to MH i2c: E2 08 00 DF 78 80 13 01 00 00 00 00 00 D4 [11:56:20]Write i2c OK [11:56:20]MH_I2C_Read... [11:56:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:20]Read from MH i2c: E2 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 0E 00 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 0E 00 DF 78 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 11 [11:56:20]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [11:56:20]wFMCommunicate OK [11:56:20]SAM_PROTO_GetShiftState done [11:56:20]FM_GetShiftState done [11:56:20]req_shift_opened done [11:56:20]requested_item shift.open_date is exist - process it [11:56:20]req_shift_open_date [11:56:20]req_shift_open_date done [11:56:20]produce_requested_data done [11:56:20]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260654,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [11:56:20]process_action_free close_receipt [11:56:20]json_value_free [11:56:20]json_value_free done [11:56:20]process_json_proto returns [11:56:20]Send response to host [11:56:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260654,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [11:56:20]free response buf [11:56:20]execute_script done [11:56:20]execute_script returns [11:56:20]free content buf [11:56:20]Sock 9.Close socket [11:56:20]Sock 9.Thread stoped [11:56:23]OFD Sender: No OFD packet to send [11:56:28]OFD Sender: No OFD packet to send [11:56:33]OFD Sender: No OFD packet to send [11:56:38]OFD Sender: No OFD packet to send [11:56:43]OFD Sender: No OFD packet to send [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:58]OFD Sender: No OFD packet to send [12:00:03]OFD Sender: No OFD packet to send [12:00:05]accept exits with 7 [12:00:05]New connection [12:00:05]New thread 3066617188 created [12:00:05]Thread 3066473828 joined [12:00:05]Waiting for new connection... [12:00:05] Sock 7.Parse request [12:00:05]Sock 7.Check first char [12:00:05]Sock 7.First char is OK [12:00:05]request: POST /json_proto HTTP/1.0 [12:00:05]Method: POST [12:00:05]URL: /json_proto [12:00:05]Method is POST - this is cgi request [12:00:05]url: /json_proto [12:00:05]query_string will be loaded in cgi processing [12:00:05]execute_cgi json_proto POST (null) [12:00:05]execute_cgi path=json_proto method=POST [12:00:05]POST find Content-Length [12:00:05]Host: 172.17.55.133:8080 [12:00:05]Content-Length: 678 [12:00:05]Content-Type: application/json [12:00:05] [12:00:05]POST finish read [12:00:05]Found Content-Length = 678 [12:00:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:00:05]execute_script... [12: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)1036202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:00:05]POST & json_proto [12:00:05]process_json_proto [12:00:05]json parsed OK: [12:00:05]protocol is kg_v1.0 [12:00:05]action value=close_receipt [12:00:05]process_action close_receipt [12:00:05]cmd_close_receipt [12:00:05]MH_GetDate [12:00:05]Write to MH i2c: F0 00 00 E0 78 47 [12:00:05]Write i2c OK [12:00:05]MH_I2C_Read... [12:00:05]Read from MH i2c: F0 [12:00:05]MH_I2C_Read... [12:00:05]Read from MH i2c: F0 09 00 [12:00:05]MH_I2C_Read... [12:00:05]Read from MH i2c: F0 09 00 E0 78 00 4A E2 C1 66 34 48 D8 65 5C [12:00:05]GetLastDocTimeStamp 1723982179 [12:00:05]current date 1723982410 [12:00:05]FM_GetShiftState [12:00:05]SAM_PROTO_GetShiftState [12:00:05]wFMCommunicate request_size=4 [12:00:05]MH_SAM_APDU [12:00:05]CAPDU: 80 13 01 00 [12:00:05]Write to MH i2c: E2 08 00 E1 78 80 13 01 00 00 00 00 00 D6 [12:00:05]Write i2c OK [12:00:05]MH_I2C_Read... [12:00:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:05]Read from MH i2c: E2 [12:00:05]MH_I2C_Read... [12:00:05]Read from MH i2c: E2 0E 00 [12:00:05]MH_I2C_Read... [12:00:05]Read from MH i2c: E2 0E 00 E1 78 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 13 [12:00:05]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:00:05]wFMCommunicate OK [12:00:05]SAM_PROTO_GetShiftState done [12:00:05]FM_GetShiftState done [12:00:05]opened in 1723940556 [12:00:05]opened+sec_in_day 1724026956 [12:00:05]quantity*price = 50036 [12:00:05]sum+1 = 50037 [12:00:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 213 18.08.2024 12:00 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260655 ФПД: 259376692598500 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T120010&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260655&fm=259376692598500&tin=02508201610067®Number=0000000000091865&sum=50000 [12:00:06]StoreToDocumentArchive [12:00:06]shift 449 fd 260655 [12:00:06]save to /storage/0449/doc_00260655 [12:00:06]save last doc name /storage/0449/doc_00260655 to /storage/kkm_last_doc_name [12:00:06]save OK [12:00:06]Clear old archive folders... [12:00:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:00:06]tlvbuf is 0057B400 [12:00:06]SAM_PROTO_ClearQueue [12:00:06]wFMCommunicate request_size=4 [12:00:06]MH_SAM_APDU [12:00:06]CAPDU: 80 09 00 00 [12:00:06]Write to MH i2c: E2 08 00 EE 78 80 09 00 00 00 00 00 00 D8 [12:00:06]Write i2c OK [12:00:06]MH_I2C_Read... [12:00:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:06]Read from MH i2c: E2 [12:00:06]MH_I2C_Read... [12:00:06]Read from MH i2c: E2 03 00 [12:00:06]MH_I2C_Read... [12:00:06]Read from MH i2c: E2 03 00 EE 78 00 90 00 DA [12:00:06]RAPDU: 90 00 [12:00:06]wFMCommunicate OK [12:00:06]SAM_PROTO_ClearQueue done [12:00:06]KKMCreateOFDPacket [12:00:06]OFDProtocolAddRootSTLVToBuf [12:00:06]FM_MakeSignedData [12:00:06]FM_MakeSignedData [12:00:06]SAM_PROTO_SignData [12:00:06]wFMCommunicate request_size=4 [12:00:06]MH_SAM_APDU [12:00:06]CAPDU: 80 0D 01 02 [12:00:06]Write to MH i2c: E2 08 00 EF 78 80 0D 01 02 00 00 00 00 E0 [12:00:06]Write i2c OK [12:00:06]MH_I2C_Read... [12:00:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:06]Read from MH i2c: E2 [12:00:06]MH_I2C_Read... [12:00:06]Read from MH i2c: E2 03 00 [12:00:06]MH_I2C_Read... [12:00:06]Read from MH i2c: E2 03 00 EF 78 00 90 00 DB [12:00:06]RAPDU: 90 00 [12:00:06]wFMCommunicate OK [12:00:06]wFMCommunicate request_size=255 [12:00:06]MH_SAM_APDU [12: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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D5 00 00 00 F4 03 04 00 4A E2 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2F FA 03 00 35 04 06 00 EB [12:00:06]Write to MH i2c: E2 02 01 F0 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D5 00 00 00 F4 03 04 00 4A E2 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2F FA 03 00 35 04 06 00 EB 00 00 5E [12:00:06]Write i2c OK [12:00:06]MH_I2C_Read... [12:00:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:07]Read from MH i2c: E2 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 03 00 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 03 00 F0 78 00 90 00 DC [12:00:07]RAPDU: 90 00 [12:00:07]wFMCommunicate OK [12:00:07]wFMCommunicate request_size=10 [12:00:07]MH_SAM_APDU [12:00:07]CAPDU: 80 0D 02 02 05 E6 D7 A0 16 E4 [12:00:07]Write to MH i2c: E2 0D 00 F1 78 80 0D 02 02 05 00 E6 D7 A0 16 E4 00 00 44 [12:00:07]Write i2c OK [12:00:07]MH_I2C_Read... [12:00:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:07]Read from MH i2c: E2 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 03 00 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 03 00 F1 78 00 90 00 DD [12:00:07]RAPDU: 90 00 [12:00:07]wFMCommunicate OK [12:00:07]wFMCommunicate request_size=4 [12:00:07]MH_SAM_APDU [12:00:07]CAPDU: 80 0D 03 02 [12:00:07]Write to MH i2c: E2 08 00 F2 78 80 0D 03 02 00 00 00 00 E5 [12:00:07]Write i2c OK [12:00:07]MH_I2C_Read... [12:00:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:07]Read from MH i2c: E2 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 0B 00 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 0B 00 F2 78 00 4E 06 3B A1 35 66 91 EB 90 00 2D [12:00:07]RAPDU: 4E 06 3B A1 35 66 91 EB 90 00 [12:00:07]wFMCommunicate OK [12:00:07]SAM_PROTO_SignData done [12:00:07]FM_MakeSignedData done [12:00:07]CreateOFDProtocolMessage [12:00:07]wFMCommunicate request_size=4 [12:00:07]MH_SAM_APDU [12:00:07]CAPDU: 80 11 00 00 [12:00:07]Write to MH i2c: E2 08 00 F3 78 80 11 00 00 00 00 00 00 E5 [12:00:07]Write i2c OK [12:00:07]MH_I2C_Read... [12:00:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:07]Read from MH i2c: E2 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 17 00 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: E2 17 00 F3 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 32 [12:00:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:00:07]wFMCommunicate OK [12:00:07]CreateOFDProtocolMessage done [12:00:07]OFDSenderStorePacket 260655 [12:00:07]StoreOFDPacket docnum=260655 [12: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 30 0F 01 00 00 B5 7B 07 01 AB 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D5 00 00 00 F4 03 04 00 4A E2 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2F FA 03 00 35 04 06 00 EB E6 D7 A0 16 E4 4E 06 3B A1 35 66 91 EB [12:00:07]CheckFolder [12:00:07]dirname=/storage/ofd_packets [12:00:07]CheckFolder done [12:00:07]ProducePacketName [12:00:07]name=ofd_packets/00260655 [12:00:07]NVStorageSaveData ofd_packets/00260655 [12:00:07]File name is /storage/ofd_packets/00260655 [12:00:07]Write 301 bytes [12:00:07]NVStorageSaveData done [12:00:07]OFDSenderStorePacket done [12:00:07]KKMCreateOFDPacket done [12:00:07]NVStorageSaveData kkm_last_timestamp [12:00:07]File name is /storage/kkm_last_timestamp [12:00:07]Write 4 bytes [12:00:07]NVStorageSaveData done [12:00:07]ExternCall_PrintAddStr [12:00:07]wPrintStart [12:00:07]Write to MH i2c: 01 00 00 F4 78 6C [12:00:07]Write i2c OK [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: 01 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: 01 07 00 [12:00:07]MH_I2C_Read... [12:00:07]Read from MH i2c: 01 07 00 F4 78 00 00 00 00 00 FF 0F 81 [12:00:07]RasterBufferAndPrint [12:00:07]line Счет N : (1)1036202 [12:00:07]line ИНН: 02508201610067 [12:00:07]line Контрольно-Кассовый Чек [12:00:07]line ПРОДАЖА [12:00:07]line ТРК (МРК, ГНК) : 32 [12:00:07]line Товар: 2710124130 [12:00:07]line Аи-92-К-5 [12:00:07]line 7.380 * 67.80 [12:00:07]line = 500.36 [12:00:07]line НДС 12% НСП 1% [12:00:07]line > о реализуемом товаре [12:00:07]line ОКРУГЛЕНИЕ: -0.36 [12:00:07]line ИТОГО: 500.00 [12:00:07]line Внесено: 500.00 [12:00:07]line СДАЧА: 0.00 [12:00:07]line НСП 1% : 4.43 [12:00:07]line НДС 12% : 53.14 [12:00:07]line Наличными: 500.00 [12:00:07]line Безнал.: 0.00 [12:00:07]line Место: АЗС № 94 "Партнер Нефть" [12:00:07]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [12:00:07]line СНО: Общий режим [12:00:07]line Чек 213 18.08.2024 12:00 [12:00:07]line Смена: 449 ФФД: 1.0 [12:00:07]line ЗНМ: 0300000099 [12:00:07]line РНМ: 0000000000091865 [12:00:07]line Версия ККМ: 001 [12:00:07]line ФМ: 0000000000871820 [12:00:07]line ФД: 260655 [12:00:07]line ФПД: 259376692598500 [12:00:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T120010&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260655&fm=259376692598500&tin=02508201610067®Number=0000000000091865&sum=50000 [12:00:07]written 0, free lines is 4095 [12:00:07]OFD Sender: Processing packet 260655 [packets to send 192, broken 191] [12:00:07]ProducePacketName [12:00:07]name=ofd_packets/00260655 [12:00:07]OFD Sender: To server: pG, [12:00:07]CommunicateWithHost lk.salyk.kg:30040 [12:00:07]ConnectInit lk.salyk.kg [12:00:07]Connected sock=10 [12: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 30 0F 01 00 00 B5 7B 07 01 AB 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D5 00 00 00 F4 03 04 00 4A E2 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2F FA 03 00 35 04 06 00 EB E6 D7 A0 16 E4 4E 06 3B A1 35 66 91 EB [12: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 30 4F 00 00 00 14 7A 47 00 F7 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 30 10 04 04 00 2F FA 03 00 F4 03 04 00 9F 8B C1 66 B6 04 01 00 00 5A 9A 76 1C 8D 35 45 B3 [12:00:08]CommunicateWithHost err = 0 [12:00:08]CheckOFDResponse [12:00:08]1017 (14) - 77093643461234 [12:00:08]1041 (16) - 0000000000871820 [12:00:08]1040 (4) - 260655 [12:00:08]1012 (4) - 18.08.2024 05:50 [12:00:08]1206 (1) - 0 [12:00:08]OFD Sender: Remove packet 260655 [12:00:08]ProducePacketName [12:00:08]name=ofd_packets/00260655 [12:00:08]NVStorageDeleteData [12:00:08]Write to MH i2c: 01 00 00 1F 79 98 [12:00:08]Write i2c OK [12:00:08]MH_I2C_Read... [12:00:08]Read from MH i2c: 01 [12:00:08]MH_I2C_Read... [12:00:08]Read from MH i2c: 01 07 00 [12:00:08]MH_I2C_Read... [12:00:08]Read from MH i2c: 01 07 00 1F 79 00 00 00 00 00 61 0C 0C [12:00:08]RasterBufferAndPrint [12:00:08]line [12:00:08]line [12:00:08]line [12:00:08]line [12:00:08]line [12:00:08]written 0, free lines is 3173 [12:00:08]MH_Cut [12:00:08]Write to MH i2c: D1 01 00 26 79 01 71 [12:00:08]Write i2c OK [12:00:08]MH_I2C_Read... [12:00:08]Read from MH i2c: D1 [12:00:08]MH_I2C_Read... [12:00:08]Read from MH i2c: D1 01 00 [12:00:08]MH_I2C_Read... [12:00:08]Read from MH i2c: D1 01 00 26 79 00 70 [12:00:08]Write to MH i2c: 01 00 00 27 79 A0 [12:00:08]Write i2c OK [12:00:08]MH_I2C_Read... [12:00:08]OFD Sender: No OFD packet to send [12:00:09]*** Cut start [12:00:09]*** Purtial cut [12:00:09]*** Stage 1: CUTSNS_PIN = 1 [12:00:11]Read from MH i2c: 01 [12:00:11]MH_I2C_Read... [12:00:11]*** Stop cut motor [12:00:11]*** Cut end [12:00:11]Read from MH i2c: 01 07 00 [12:00:11]MH_I2C_Read... [12:00:11]Read from MH i2c: 01 07 00 27 79 00 00 00 00 00 FF 0F B5 [12:00:11]process_action close_receipt done [12:00:11]requested_data is exist [12:00:11]produce_requested_data [12:00:11]requested_item fm.sn is exist - process it [12:00:11]wFMCommunicate request_size=4 [12:00:11]MH_SAM_APDU [12:00:11]CAPDU: 80 11 00 00 [12:00:11]Write to MH i2c: E2 08 00 28 79 80 11 00 00 00 00 00 00 1B [12:00:11]Write i2c OK [12:00:11]MH_I2C_Read... [12:00:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:11]Read from MH i2c: E2 [12:00:11]MH_I2C_Read... [12:00:11]Read from MH i2c: E2 17 00 [12:00:11]MH_I2C_Read... [12:00:11]Read from MH i2c: E2 17 00 28 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 68 [12:00:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:00:11]wFMCommunicate OK [12:00:11]requested_item fd.num is exist - process it [12:00:11]SAM_PROTO_GetFieldsCounters [12:00:11]wFMCommunicate request_size=4 [12:00:11]MH_SAM_APDU [12:00:11]CAPDU: 80 13 00 00 [12:00:11]Write to MH i2c: E2 08 00 29 79 80 13 00 00 00 00 00 00 1E [12:00:11]Write i2c OK [12:00:11]MH_I2C_Read... [12:00:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:11]Read from MH i2c: E2 [12:00:11]MH_I2C_Read... [12:00:11]Read from MH i2c: E2 62 00 [12:00:11]MH_I2C_Read... [12:00:11]Read from MH i2c: E2 62 00 29 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 2F FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [12:00: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 2F FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:00:11]wFMCommunicate OK [12:00:11]SAM_PROTO_GetFieldsCounters done [12:00:11]requested_item shift.num is exist - process it [12:00:11]requested_item shift.opened is exist - process it [12:00:11]req_shift_opened [12:00:11]FM_GetShiftState [12:00:11]SAM_PROTO_GetShiftState [12:00:11]wFMCommunicate request_size=4 [12:00:11]MH_SAM_APDU [12:00:11]CAPDU: 80 13 01 00 [12:00:11]Write to MH i2c: E2 08 00 2A 79 80 13 01 00 00 00 00 00 20 [12:00:11]Write i2c OK [12:00:11]MH_I2C_Read... [12:00:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:11]Read from MH i2c: E2 [12:00:11]MH_I2C_Read... [12:00:11]Read from MH i2c: E2 0E 00 [12:00:11]MH_I2C_Read... [12:00:11]Read from MH i2c: E2 0E 00 2A 79 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 5D [12:00:11]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:00:11]wFMCommunicate OK [12:00:11]SAM_PROTO_GetShiftState done [12:00:11]FM_GetShiftState done [12:00:11]req_shift_opened done [12:00:11]requested_item shift.open_date is exist - process it [12:00:11]req_shift_open_date [12:00:11]req_shift_open_date done [12:00:11]produce_requested_data done [12:00:11]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260655,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [12:00:11]process_action_free close_receipt [12:00:11]json_value_free [12:00:11]json_value_free done [12:00:11]process_json_proto returns [12:00:11]Send response to host [12:00:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260655,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [12:00:11]free response buf [12:00:11]execute_script done [12:00:11]execute_script returns [12:00:11]free content buf [12:00:11]Sock 7.Close socket [12:00:11]Sock 7.Thread stoped [12:00:13]OFD Sender: No OFD packet to send [12:00:18]OFD Sender: No OFD packet to send [12:00:23]OFD Sender: No OFD packet to send [12:00:28]OFD Sender: No OFD packet to send [12:00:33]OFD Sender: No OFD packet to send [12:00:38]OFD Sender: No OFD packet to send [12:00:43]OFD Sender: No OFD packet to send [12:00:48]OFD Sender: No OFD packet to send [12:00:53]OFD Sender: No OFD packet to send [12:00:58]OFD Sender: No OFD packet to send [12:01:03]OFD Sender: No OFD packet to send [12:01:08]OFD Sender: No OFD packet to send [12:01:13]OFD Sender: No OFD packet to send [12:01:18]OFD Sender: No OFD packet to send [12:01:23]OFD Sender: No OFD packet to send [12:01:28]OFD Sender: No OFD packet to send [12:01:33]OFD Sender: No OFD packet to send [12:01:38]OFD Sender: No OFD packet to send [12:01:43]OFD Sender: No OFD packet to send [12:01:48]OFD Sender: No OFD packet to send [12:01:53]OFD Sender: No OFD packet to send [12:01:58]OFD Sender: No OFD packet to send [12:02:03]OFD Sender: No OFD packet to send [12:02:08]OFD Sender: No OFD packet to send [12:02:13]OFD Sender: No OFD packet to send [12:02:18]OFD Sender: No OFD packet to send [12:02:23]OFD Sender: No OFD packet to send [12:02:28]OFD Sender: No OFD packet to send [12:02:33]OFD Sender: No OFD packet to send [12:02:38]OFD Sender: No OFD packet to send [12:02:43]OFD Sender: No OFD packet to send [12:02:48]OFD Sender: No OFD packet to send [12:02:53]OFD Sender: No OFD packet to send [12:02:58]OFD Sender: No OFD packet to send [12:03:03]OFD Sender: No OFD packet to send [12:03:08]OFD Sender: No OFD packet to send [12:03:13]OFD Sender: No OFD packet to send [12:03:18]OFD Sender: No OFD packet to send [12:03:23]OFD Sender: No OFD packet to send [12:03:28]OFD Sender: No OFD packet to send [12:03:33]accept exits with 9 [12:03:33]New connection [12:03:33]New thread 3066473828 created [12:03:33]Thread 3066617188 joined [12:03:33]Waiting for new connection... [12:03:33] Sock 9.Parse request [12:03:33]Sock 9.Check first char [12:03:33]Sock 9.First char is OK [12:03:33]request: POST /json_proto HTTP/1.0 [12:03:33]Method: POST [12:03:33]URL: /json_proto [12:03:33]Method is POST - this is cgi request [12:03:33]url: /json_proto [12:03:33]query_string will be loaded in cgi processing [12:03:33]execute_cgi json_proto POST (null) [12:03:33]execute_cgi path=json_proto method=POST [12:03:33]POST find Content-Length [12:03:33]Host: 172.17.55.133:8080 [12:03:33]Content-Length: 683 [12:03:33]Content-Type: application/json [12:03:33] [12:03:33]POST finish read [12:03:33]Found Content-Length = 683 [12:03:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:03:33]execute_script... [12:03: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)1036203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:03:33]POST & json_proto [12:03:33]process_json_proto [12:03:33]json parsed OK: [12:03:33]protocol is kg_v1.0 [12:03:33]action value=close_receipt [12:03:33]process_action close_receipt [12:03:33]cmd_close_receipt [12:03:33]MH_GetDate [12:03:33]Write to MH i2c: F0 00 00 2B 79 93 [12:03:33]Write i2c OK [12:03:33]MH_I2C_Read... [12:03:33]Read from MH i2c: F0 [12:03:33]MH_I2C_Read... [12:03:33]Read from MH i2c: F0 09 00 [12:03:33]MH_I2C_Read... [12:03:33]Read from MH i2c: F0 09 00 2B 79 00 19 E3 C1 66 34 48 D8 65 78 [12:03:33]GetLastDocTimeStamp 1723982410 [12:03:33]current date 1723982617 [12:03:33]FM_GetShiftState [12:03:33]SAM_PROTO_GetShiftState [12:03:33]wFMCommunicate request_size=4 [12:03:33]MH_SAM_APDU [12:03:33]CAPDU: 80 13 01 00 [12:03:33]Write to MH i2c: E2 08 00 2C 79 80 13 01 00 00 00 00 00 22 [12:03:33]Write i2c OK [12:03:33]MH_I2C_Read... [12:03:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:33]Read from MH i2c: E2 [12:03:33]MH_I2C_Read... [12:03:33]Read from MH i2c: E2 0E 00 [12:03:33]MH_I2C_Read... [12:03:33]Read from MH i2c: E2 0E 00 2C 79 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 5F [12:03:33]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:03:33]wFMCommunicate OK [12:03:33]SAM_PROTO_GetShiftState done [12:03:33]FM_GetShiftState done [12:03:33]opened in 1723940556 [12:03:33]opened+sec_in_day 1724026956 [12:03:33]quantity*price = 100005 [12:03:33]sum+1 = 100006 [12:03:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 214 18.08.2024 12:03 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260656 ФПД: 85677727128037 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T120338&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260656&fm=85677727128037&tin=02508201610067®Number=0000000000091865&sum=100000 [12:03:34]StoreToDocumentArchive [12:03:34]shift 449 fd 260656 [12:03:34]save to /storage/0449/doc_00260656 [12:03:34]save last doc name /storage/0449/doc_00260656 to /storage/kkm_last_doc_name [12:03:34]save OK [12:03:34]Clear old archive folders... [12:03:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:03:34]tlvbuf is 00451200 [12:03:34]SAM_PROTO_ClearQueue [12:03:34]wFMCommunicate request_size=4 [12:03:34]MH_SAM_APDU [12:03:34]CAPDU: 80 09 00 00 [12:03:34]Write to MH i2c: E2 08 00 39 79 80 09 00 00 00 00 00 00 24 [12:03:34]Write i2c OK [12:03:34]MH_I2C_Read... [12:03:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:34]Read from MH i2c: E2 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 03 00 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 03 00 39 79 00 90 00 26 [12:03:34]RAPDU: 90 00 [12:03:34]wFMCommunicate OK [12:03:34]SAM_PROTO_ClearQueue done [12:03:34]KKMCreateOFDPacket [12:03:34]OFDProtocolAddRootSTLVToBuf [12:03:34]FM_MakeSignedData [12:03:34]FM_MakeSignedData [12:03:34]SAM_PROTO_SignData [12:03:34]wFMCommunicate request_size=4 [12:03:34]MH_SAM_APDU [12:03:34]CAPDU: 80 0D 01 02 [12:03:34]Write to MH i2c: E2 08 00 3A 79 80 0D 01 02 00 00 00 00 2C [12:03:34]Write i2c OK [12:03:34]MH_I2C_Read... [12:03:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:34]Read from MH i2c: E2 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 03 00 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 03 00 3A 79 00 90 00 27 [12:03:34]RAPDU: 90 00 [12:03:34]wFMCommunicate OK [12:03:34]wFMCommunicate request_size=255 [12:03:34]MH_SAM_APDU [12:03:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 1A E3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 30 FA 03 00 35 04 06 00 4D [12:03:34]Write to MH i2c: E2 02 01 3B 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 1A E3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 30 FA 03 00 35 04 06 00 4D 00 00 6E [12:03:34]Write i2c OK [12:03:34]MH_I2C_Read... [12:03:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:34]Read from MH i2c: E2 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 03 00 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 03 00 3B 79 00 90 00 28 [12:03:34]RAPDU: 90 00 [12:03:34]wFMCommunicate OK [12:03:34]wFMCommunicate request_size=10 [12:03:34]MH_SAM_APDU [12:03:34]CAPDU: 80 0D 02 02 05 EC 66 7D 99 E5 [12:03:34]Write to MH i2c: E2 0D 00 3C 79 80 0D 02 02 05 00 EC 66 7D 99 E5 00 00 86 [12:03:34]Write i2c OK [12:03:34]MH_I2C_Read... [12:03:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:34]Read from MH i2c: E2 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 03 00 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 03 00 3C 79 00 90 00 29 [12:03:34]RAPDU: 90 00 [12:03:34]wFMCommunicate OK [12:03:34]wFMCommunicate request_size=4 [12:03:34]MH_SAM_APDU [12:03:34]CAPDU: 80 0D 03 02 [12:03:34]Write to MH i2c: E2 08 00 3D 79 80 0D 03 02 00 00 00 00 31 [12:03:34]Write i2c OK [12:03:34]MH_I2C_Read... [12:03:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:35]Read from MH i2c: E2 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: E2 0B 00 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: E2 0B 00 3D 79 00 75 56 AD DB B9 06 B7 1F 90 00 1A [12:03:35]RAPDU: 75 56 AD DB B9 06 B7 1F 90 00 [12:03:35]wFMCommunicate OK [12:03:35]SAM_PROTO_SignData done [12:03:35]FM_MakeSignedData done [12:03:35]CreateOFDProtocolMessage [12:03:35]wFMCommunicate request_size=4 [12:03:35]MH_SAM_APDU [12:03:35]CAPDU: 80 11 00 00 [12:03:35]Write to MH i2c: E2 08 00 3E 79 80 11 00 00 00 00 00 00 31 [12:03:35]Write i2c OK [12:03:35]MH_I2C_Read... [12:03:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:35]Read from MH i2c: E2 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: E2 17 00 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: E2 17 00 3E 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 7E [12:03:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:03:35]wFMCommunicate OK [12:03:35]CreateOFDProtocolMessage done [12:03:35]OFDSenderStorePacket 260656 [12:03:35]StoreOFDPacket docnum=260656 [12:03:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 9C 01 07 01 5C B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 1A E3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 30 FA 03 00 35 04 06 00 4D EC 66 7D 99 E5 75 56 AD DB B9 06 B7 1F [12:03:35]CheckFolder [12:03:35]dirname=/storage/ofd_packets [12:03:35]CheckFolder done [12:03:35]ProducePacketName [12:03:35]name=ofd_packets/00260656 [12:03:35]NVStorageSaveData ofd_packets/00260656 [12:03:35]File name is /storage/ofd_packets/00260656 [12:03:35]Write 301 bytes [12:03:35]NVStorageSaveData done [12:03:35]OFDSenderStorePacket done [12:03:35]KKMCreateOFDPacket done [12:03:35]NVStorageSaveData kkm_last_timestamp [12:03:35]File name is /storage/kkm_last_timestamp [12:03:35]Write 4 bytes [12:03:35]NVStorageSaveData done [12:03:35]ExternCall_PrintAddStr [12:03:35]wPrintStart [12:03:35]Write to MH i2c: 01 00 00 3F 79 B8 [12:03:35]Write i2c OK [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: 01 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: 01 07 00 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: 01 07 00 3F 79 00 00 00 00 00 FF 0F CD [12:03:35]RasterBufferAndPrint [12:03:35]line Счет N : (1)1036203 [12:03:35]line ИНН: 02508201610067 [12:03:35]line Контрольно-Кассовый Чек [12:03:35]line ПРОДАЖА [12:03:35]line ТРК (МРК, ГНК) : 22 [12:03:35]line Товар: 2710124130 [12:03:35]line Аи-92-К-5 [12:03:35]line 14.750 * 67.80 [12:03:35]line = 1000.05 [12:03:35]line НДС 12% НСП 1% [12:03:35]line > о реализуемом товаре [12:03:35]line ОКРУГЛЕНИЕ: -0.05 [12:03:35]line ИТОГО: 1000.00 [12:03:35]line Внесено: 1000.00 [12:03:35]line СДАЧА: 0.00 [12:03:35]line НСП 1% : 8.85 [12:03:35]line НДС 12% : 106.20 [12:03:35]line Наличными: 1000.00 [12:03:35]line Безнал.: 0.00 [12:03:35]line Место: АЗС № 94 "Партнер Нефть" [12:03:35]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [12:03:35]line СНО: Общий режим [12:03:35]line Чек 214 18.08.2024 12:03 [12:03:35]line Смена: 449 ФФД: 1.0 [12:03:35]line ЗНМ: 0300000099 [12:03:35]line РНМ: 0000000000091865 [12:03:35]line Версия ККМ: 001 [12:03:35]line ФМ: 0000000000871820 [12:03:35]line ФД: 260656 [12:03:35]line ФПД: 85677727128037 [12:03:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T120338&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260656&fm=85677727128037&tin=02508201610067®Number=0000000000091865&sum=100000 [12:03:35]written 0, free lines is 4095 [12:03:35]OFD Sender: Processing packet 260656 [packets to send 192, broken 191] [12:03:35]ProducePacketName [12:03:35]name=ofd_packets/00260656 [12:03:35]OFD Sender: To server: pG, [12:03:35]CommunicateWithHost lk.salyk.kg:30040 [12:03:35]ConnectInit lk.salyk.kg [12:03:35]Connected sock=10 [12:03: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 30 0F 01 00 00 9C 01 07 01 5C B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 1A E3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 30 FA 03 00 35 04 06 00 4D EC 66 7D 99 E5 75 56 AD DB B9 06 B7 1F [12:03:35]recv_with_timeout no data received [12:03:35]CommunicateWithHost answer receiving error [12:03:35]CommunicateWithHost err = -3 [12:03:35]OFD Sender: Server communicate error [12:03:35]Write to MH i2c: 01 00 00 6A 79 E3 [12:03:35]Write i2c OK [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: 01 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: 01 07 00 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: 01 07 00 6A 79 00 00 00 00 00 5F 0C 55 [12:03:35]RasterBufferAndPrint [12:03:35]line [12:03:35]line [12:03:35]line [12:03:35]line [12:03:35]line [12:03:35]written 0, free lines is 3170 [12:03:35]MH_Cut [12:03:35]Write to MH i2c: D1 01 00 71 79 01 BC [12:03:35]Write i2c OK [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: D1 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: D1 01 00 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: D1 01 00 71 79 00 BB [12:03:35]Write to MH i2c: 01 00 00 72 79 EB [12:03:35]Write i2c OK [12:03:35]MH_I2C_Read... [12:03:37]*** Cut start [12:03:37]*** Purtial cut [12:03:37]*** Stage 1: CUTSNS_PIN = 1 [12:03:39]Read from MH i2c: 01 [12:03:39]MH_I2C_Read... [12:03:39]*** Stop cut motor [12:03:39]*** Cut end [12:03:39]Read from MH i2c: 01 07 00 [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: 01 07 00 72 79 00 00 00 00 00 FF 0F 00 [12:03:39]process_action close_receipt done [12:03:39]requested_data is exist [12:03:39]produce_requested_data [12:03:39]requested_item fm.sn is exist - process it [12:03:39]wFMCommunicate request_size=4 [12:03:39]MH_SAM_APDU [12:03:39]CAPDU: 80 11 00 00 [12:03:39]Write to MH i2c: E2 08 00 73 79 80 11 00 00 00 00 00 00 66 [12:03:39]Write i2c OK [12:03:39]MH_I2C_Read... [12:03:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:39]Read from MH i2c: E2 [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: E2 17 00 [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: E2 17 00 73 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B3 [12:03:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:03:39]wFMCommunicate OK [12:03:39]requested_item fd.num is exist - process it [12:03:39]SAM_PROTO_GetFieldsCounters [12:03:39]wFMCommunicate request_size=4 [12:03:39]MH_SAM_APDU [12:03:39]CAPDU: 80 13 00 00 [12:03:39]Write to MH i2c: E2 08 00 74 79 80 13 00 00 00 00 00 00 69 [12:03:39]Write i2c OK [12:03:39]MH_I2C_Read... [12:03:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:39]Read from MH i2c: E2 [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: E2 62 00 [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: E2 62 00 74 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 30 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [12:03:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 30 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:03:39]wFMCommunicate OK [12:03:39]SAM_PROTO_GetFieldsCounters done [12:03:39]requested_item shift.num is exist - process it [12:03:39]requested_item shift.opened is exist - process it [12:03:39]req_shift_opened [12:03:39]FM_GetShiftState [12:03:39]SAM_PROTO_GetShiftState [12:03:39]wFMCommunicate request_size=4 [12:03:39]MH_SAM_APDU [12:03:39]CAPDU: 80 13 01 00 [12:03:39]Write to MH i2c: E2 08 00 75 79 80 13 01 00 00 00 00 00 6B [12:03:39]Write i2c OK [12:03:39]MH_I2C_Read... [12:03:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:39]Read from MH i2c: E2 [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: E2 0E 00 [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: E2 0E 00 75 79 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A8 [12:03:39]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:03:39]wFMCommunicate OK [12:03:39]SAM_PROTO_GetShiftState done [12:03:39]FM_GetShiftState done [12:03:39]req_shift_opened done [12:03:39]requested_item shift.open_date is exist - process it [12:03:39]req_shift_open_date [12:03:39]req_shift_open_date done [12:03:39]produce_requested_data done [12:03:39]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260656,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [12:03:39]process_action_free close_receipt [12:03:39]json_value_free [12:03:39]json_value_free done [12:03:39]process_json_proto returns [12:03:39]Send response to host [12:03:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260656,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [12:03:39]free response buf [12:03:39]execute_script done [12:03:39]execute_script returns [12:03:39]free content buf [12:03:39]Sock 9.Close socket [12:03:39]Sock 9.Thread stoped [12:03:40]OFD Sender: Processing packet 260656 [packets to send 192, broken 191] [12:03:40]ProducePacketName [12:03:40]name=ofd_packets/00260656 [12:03:40]OFD Sender: To server: pG, [12:03:40]CommunicateWithHost lk.salyk.kg:30040 [12:03:40]ConnectInit lk.salyk.kg [12:03:40]Connected sock=10 [12:03: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 30 0F 01 00 00 9C 01 07 01 5C B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 1A E3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 30 FA 03 00 35 04 06 00 4D EC 66 7D 99 E5 75 56 AD DB B9 06 B7 1F [12:03: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 30 4F 00 00 00 A3 75 47 00 21 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 30 10 04 04 00 30 FA 03 00 F4 03 04 00 74 8C C1 66 B6 04 01 00 00 48 79 70 07 FB 11 AB EC [12:03:40]CommunicateWithHost err = 0 [12:03:40]CheckOFDResponse [12:03:40]1017 (14) - 77093643461234 [12:03:40]1041 (16) - 0000000000871820 [12:03:40]1040 (4) - 260656 [12:03:40]1012 (4) - 18.08.2024 05:53 [12:03:40]1206 (1) - 0 [12:03:40]OFD Sender: Remove packet 260656 [12:03:40]ProducePacketName [12:03:40]name=ofd_packets/00260656 [12:03:40]NVStorageDeleteData [12:03:41]OFD Sender: No OFD packet to send [12:03:46]OFD Sender: No OFD packet to send [12:03:51]OFD Sender: No OFD packet to send [12:03:56]OFD Sender: No OFD packet to send [12:04:01]OFD Sender: No OFD packet to send [12:04:06]OFD Sender: No OFD packet to send [12:04:11]OFD Sender: No OFD packet to send [12:04:16]OFD Sender: No OFD packet to send [12:04:21]OFD Sender: No OFD packet to send [12:04:26]OFD Sender: No OFD packet to send [12:04:31]OFD Sender: No OFD packet to send [12:04:36]OFD Sender: No OFD packet to send [12:04:41]OFD Sender: No OFD packet to send [12:04:46]OFD Sender: No OFD packet to send [12:04:51]OFD Sender: No OFD packet to send [12:04:56]OFD Sender: No OFD packet to send [12:05:01]OFD Sender: No OFD packet to send [12:05:06]OFD Sender: No OFD packet to send [12:05:11]OFD Sender: No OFD packet to send [12:05:16]OFD Sender: No OFD packet to send [12:05:21]OFD Sender: No OFD packet to send [12:05:26]OFD Sender: No OFD packet to send [12:05:31]OFD Sender: No OFD packet to send [12:05:36]OFD Sender: No OFD packet to send [12:05:41]OFD Sender: No OFD packet to send [12:05:46]OFD Sender: No OFD packet to send [12:05:51]OFD Sender: No OFD packet to send [12:05:56]OFD Sender: No OFD packet to send [12:06:01]OFD Sender: No OFD packet to send [12:06:06]OFD Sender: No OFD packet to send [12:06:11]OFD Sender: No OFD packet to send [12:06:16]OFD Sender: No OFD packet to send [12:06:21]OFD Sender: No OFD packet to send [12:06:26]OFD Sender: No OFD packet to send [12:06:31]OFD Sender: No OFD packet to send [12:06:36]OFD Sender: No OFD packet to send [12:06:41]OFD Sender: No OFD packet to send [12:06:46]OFD Sender: No OFD packet to send [12:06:51]OFD Sender: No OFD packet to send [12:06:56]OFD Sender: No OFD packet to send [12:07:01]OFD Sender: No OFD packet to send [12:07:04]accept exits with 7 [12:07:04]New connection [12:07:04]New thread 3066617188 created [12:07:04]Thread 3066473828 joined [12:07:04]Waiting for new connection... [12:07:04] Sock 7.Parse request [12:07:04]Sock 7.Check first char [12:07:04]Sock 7.First char is OK [12:07:04]request: POST /json_proto HTTP/1.0 [12:07:04]Method: POST [12:07:04]URL: /json_proto [12:07:04]Method is POST - this is cgi request [12:07:04]url: /json_proto [12:07:04]query_string will be loaded in cgi processing [12:07:04]execute_cgi json_proto POST (null) [12:07:04]execute_cgi path=json_proto method=POST [12:07:04]POST find Content-Length [12:07:04]Host: 172.17.55.133:8080 [12:07:04]Content-Length: 678 [12:07:04]Content-Type: application/json [12:07:04] [12:07:04]POST finish read [12:07:04]Found Content-Length = 678 [12:07:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036204", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:04]execute_script... [12:07: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)1036204", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:04]POST & json_proto [12:07:04]process_json_proto [12:07:04]json parsed OK: [12:07:04]protocol is kg_v1.0 [12:07:04]action value=close_receipt [12:07:04]process_action close_receipt [12:07:04]cmd_close_receipt [12:07:04]MH_GetDate [12:07:04]Write to MH i2c: F0 00 00 76 79 DE [12:07:04]Write i2c OK [12:07:04]MH_I2C_Read... [12:07:04]Read from MH i2c: F0 [12:07:04]MH_I2C_Read... [12:07:04]Read from MH i2c: F0 09 00 [12:07:04]MH_I2C_Read... [12:07:04]Read from MH i2c: F0 09 00 76 79 00 ED E3 C1 66 34 48 D8 65 97 [12:07:04]GetLastDocTimeStamp 1723982618 [12:07:04]current date 1723982829 [12:07:04]FM_GetShiftState [12:07:04]SAM_PROTO_GetShiftState [12:07:04]wFMCommunicate request_size=4 [12:07:04]MH_SAM_APDU [12:07:04]CAPDU: 80 13 01 00 [12:07:04]Write to MH i2c: E2 08 00 77 79 80 13 01 00 00 00 00 00 6D [12:07:04]Write i2c OK [12:07:04]MH_I2C_Read... [12:07:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:04]Read from MH i2c: E2 [12:07:04]MH_I2C_Read... [12:07:04]Read from MH i2c: E2 0E 00 [12:07:04]MH_I2C_Read... [12:07:04]Read from MH i2c: E2 0E 00 77 79 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 AA [12:07:04]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:07:04]wFMCommunicate OK [12:07:04]SAM_PROTO_GetShiftState done [12:07:04]FM_GetShiftState done [12:07:04]opened in 1723940556 [12:07:04]opened+sec_in_day 1724026956 [12:07:04]quantity*price = 50010 [12:07:04]sum+1 = 50012 [12:07:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 215 18.08.2024 12:07 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260657 ФПД: 156925232085951 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T120709&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260657&fm=156925232085951&tin=02508201610067®Number=0000000000091865&sum=50000 [12:07:05]StoreToDocumentArchive [12:07:05]shift 449 fd 260657 [12:07:05]save to /storage/0449/doc_00260657 [12:07:05]save last doc name /storage/0449/doc_00260657 to /storage/kkm_last_doc_name [12:07:05]save OK [12:07:05]Clear old archive folders... [12:07:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:07:05]tlvbuf is 003E31B0 [12:07:05]SAM_PROTO_ClearQueue [12:07:05]wFMCommunicate request_size=4 [12:07:05]MH_SAM_APDU [12:07:05]CAPDU: 80 09 00 00 [12:07:05]Write to MH i2c: E2 08 00 84 79 80 09 00 00 00 00 00 00 6F [12:07:05]Write i2c OK [12:07:05]MH_I2C_Read... [12:07:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:05]Read from MH i2c: E2 [12:07:05]MH_I2C_Read... [12:07:05]Read from MH i2c: E2 03 00 [12:07:05]MH_I2C_Read... [12:07:05]Read from MH i2c: E2 03 00 84 79 00 90 00 71 [12:07:05]RAPDU: 90 00 [12:07:05]wFMCommunicate OK [12:07:05]SAM_PROTO_ClearQueue done [12:07:05]KKMCreateOFDPacket [12:07:05]OFDProtocolAddRootSTLVToBuf [12:07:05]FM_MakeSignedData [12:07:05]FM_MakeSignedData [12:07:05]SAM_PROTO_SignData [12:07:05]wFMCommunicate request_size=4 [12:07:05]MH_SAM_APDU [12:07:05]CAPDU: 80 0D 01 02 [12:07:05]Write to MH i2c: E2 08 00 85 79 80 0D 01 02 00 00 00 00 77 [12:07:05]Write i2c OK [12:07:05]MH_I2C_Read... [12:07:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:05]Read from MH i2c: E2 [12:07:05]MH_I2C_Read... [12:07:05]Read from MH i2c: E2 03 00 [12:07:05]MH_I2C_Read... [12:07:05]Read from MH i2c: E2 03 00 85 79 00 90 00 72 [12:07:05]RAPDU: 90 00 [12:07:05]wFMCommunicate OK [12:07:05]wFMCommunicate request_size=255 [12:07:05]MH_SAM_APDU [12:07: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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 ED E3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 31 FA 03 00 35 04 06 00 8E [12:07:05]Write to MH i2c: E2 02 01 86 79 80 0D 02 02 FA 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 ED E3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 31 FA 03 00 35 04 06 00 8E 00 00 28 [12:07:05]Write i2c OK [12:07:05]MH_I2C_Read... [12:07:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:05]Read from MH i2c: E2 [12:07:05]MH_I2C_Read... [12:07:05]Read from MH i2c: E2 03 00 [12:07:05]MH_I2C_Read... [12:07:05]Read from MH i2c: E2 03 00 86 79 00 90 00 73 [12:07:05]RAPDU: 90 00 [12:07:05]wFMCommunicate OK [12:07:05]wFMCommunicate request_size=10 [12:07:05]MH_SAM_APDU [12:07:05]CAPDU: 80 0D 02 02 05 B9 00 B6 FB BF [12:07:05]Write to MH i2c: E2 0D 00 87 79 80 0D 02 02 05 00 B9 00 B6 FB BF 00 00 AD [12:07:05]Write i2c OK [12:07:05]MH_I2C_Read... [12:07:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:05]Read from MH i2c: E2 [12:07:05]MH_I2C_Read... [12:07:05]Read from MH i2c: E2 03 00 [12:07:05]MH_I2C_Read... [12:07:05]Read from MH i2c: E2 03 00 87 79 00 90 00 74 [12:07:05]RAPDU: 90 00 [12:07:05]wFMCommunicate OK [12:07:05]wFMCommunicate request_size=4 [12:07:05]MH_SAM_APDU [12:07:05]CAPDU: 80 0D 03 02 [12:07:05]Write to MH i2c: E2 08 00 88 79 80 0D 03 02 00 00 00 00 7C [12:07:05]Write i2c OK [12:07:05]MH_I2C_Read... [12:07:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:06]Read from MH i2c: E2 [12:07:06]MH_I2C_Read... [12:07:06]Read from MH i2c: E2 0B 00 [12:07:06]MH_I2C_Read... [12:07:06]Read from MH i2c: E2 0B 00 88 79 00 9E 9A 43 70 0B 05 6A B1 90 00 93 [12:07:06]RAPDU: 9E 9A 43 70 0B 05 6A B1 90 00 [12:07:06]wFMCommunicate OK [12:07:06]SAM_PROTO_SignData done [12:07:06]FM_MakeSignedData done [12:07:06]CreateOFDProtocolMessage [12:07:06]wFMCommunicate request_size=4 [12:07:06]MH_SAM_APDU [12:07:06]CAPDU: 80 11 00 00 [12:07:06]Write to MH i2c: E2 08 00 89 79 80 11 00 00 00 00 00 00 7C [12:07:06]Write i2c OK [12:07:06]MH_I2C_Read... [12:07:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:06]Read from MH i2c: E2 [12:07:06]MH_I2C_Read... [12:07:06]Read from MH i2c: E2 17 00 [12:07:06]MH_I2C_Read... [12:07:06]Read from MH i2c: E2 17 00 89 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C9 [12:07:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:07:06]wFMCommunicate OK [12:07:06]CreateOFDProtocolMessage done [12:07:06]OFDSenderStorePacket 260657 [12:07:06]StoreOFDPacket docnum=260657 [12:07:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 60 16 07 01 D4 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 ED E3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 31 FA 03 00 35 04 06 00 8E B9 00 B6 FB BF 9E 9A 43 70 0B 05 6A B1 [12:07:06]CheckFolder [12:07:06]dirname=/storage/ofd_packets [12:07:06]CheckFolder done [12:07:06]ProducePacketName [12:07:06]name=ofd_packets/00260657 [12:07:06]NVStorageSaveData ofd_packets/00260657 [12:07:06]File name is /storage/ofd_packets/00260657 [12:07:06]Write 301 bytes [12:07:06]NVStorageSaveData done [12:07:06]OFDSenderStorePacket done [12:07:06]KKMCreateOFDPacket done [12:07:06]NVStorageSaveData kkm_last_timestamp [12:07:06]File name is /storage/kkm_last_timestamp [12:07:06]Write 4 bytes [12:07:06]NVStorageSaveData done [12:07:06]ExternCall_PrintAddStr [12:07:06]wPrintStart [12:07:06]Write to MH i2c: 01 00 00 8A 79 03 [12:07:06]Write i2c OK [12:07:06]MH_I2C_Read... [12:07:06]Read from MH i2c: 01 [12:07:06]MH_I2C_Read... [12:07:06]Read from MH i2c: 01 07 00 [12:07:06]MH_I2C_Read... [12:07:06]Read from MH i2c: 01 07 00 8A 79 00 00 00 00 00 FF 0F 18 [12:07:06]RasterBufferAndPrint [12:07:06]line Счет N : (1)1036204 [12:07:06]line ИНН: 02508201610067 [12:07:06]line Контрольно-Кассовый Чек [12:07:06]line ПРОДАЖА [12:07:06]line ТРК (МРК, ГНК) : 23 [12:07:06]line Товар: 2710124500 [12:07:06]line Аи-95-К-5 [12:07:06]line 6.740 * 74.20 [12:07:06]line = 500.11 [12:07:06]line НДС 12% НСП 1% [12:07:06]line > о реализуемом товаре [12:07:06]line ОКРУГЛЕНИЕ: -0.11 [12:07:06]line ИТОГО: 500.00 [12:07:06]line Внесено: 500.00 [12:07:06]line СДАЧА: 0.00 [12:07:06]line НСП 1% : 4.43 [12:07:06]line НДС 12% : 53.11 [12:07:06]line Наличными: 500.00 [12:07:06]line Безнал.: 0.00 [12:07:06]line Место: АЗС № 94 "Партнер Нефть" [12:07:06]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [12:07:06]line СНО: Общий режим [12:07:06]line Чек 215 18.08.2024 12:07 [12:07:06]line Смена: 449 ФФД: 1.0 [12:07:06]line ЗНМ: 0300000099 [12:07:06]line РНМ: 0000000000091865 [12:07:06]line Версия ККМ: 001 [12:07:06]line ФМ: 0000000000871820 [12:07:06]line ФД: 260657 [12:07:06]line ФПД: 156925232085951 [12:07:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T120709&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260657&fm=156925232085951&tin=02508201610067®Number=0000000000091865&sum=50000 [12:07:06]OFD Sender: Processing packet 260657 [packets to send 192, broken 191] [12:07:06]ProducePacketName [12:07:06]name=ofd_packets/00260657 [12:07:06]OFD Sender: To server: pG, [12:07:06]CommunicateWithHost lk.salyk.kg:30040 [12:07:06]ConnectInit lk.salyk.kg [12:07:06]written 0, free lines is 4095 [12:07:06]Connected sock=10 [12:07: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 30 0F 01 00 00 60 16 07 01 D4 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 ED E3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 31 FA 03 00 35 04 06 00 8E B9 00 B6 FB BF 9E 9A 43 70 0B 05 6A B1 [12:07: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 30 4F 00 00 00 C6 F4 47 00 45 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 30 10 04 04 00 31 FA 03 00 F4 03 04 00 42 8D C1 66 B6 04 01 00 00 56 36 62 4C 6E 29 DE 91 [12:07:06]CommunicateWithHost err = 0 [12:07:06]CheckOFDResponse [12:07:06]1017 (14) - 77093643461234 [12:07:06]1041 (16) - 0000000000871820 [12:07:06]1040 (4) - 260657 [12:07:06]1012 (4) - 18.08.2024 05:57 [12:07:06]1206 (1) - 0 [12:07:06]OFD Sender: Remove packet 260657 [12:07:06]ProducePacketName [12:07:06]name=ofd_packets/00260657 [12:07:06]NVStorageDeleteData [12:07:06]Write to MH i2c: 01 00 00 B5 79 2E [12:07:06]Write i2c OK [12:07:06]MH_I2C_Read... [12:07:06]Read from MH i2c: 01 [12:07:06]MH_I2C_Read... [12:07:06]Read from MH i2c: 01 07 00 [12:07:06]MH_I2C_Read... [12:07:06]Read from MH i2c: 01 07 00 B5 79 00 00 00 00 00 66 0C A7 [12:07:06]RasterBufferAndPrint [12:07:06]line [12:07:06]line [12:07:06]line [12:07:06]line [12:07:06]line [12:07:06]written 0, free lines is 3178 [12:07:06]MH_Cut [12:07:06]Write to MH i2c: D1 01 00 BC 79 01 07 [12:07:06]Write i2c OK [12:07:06]MH_I2C_Read... [12:07:06]Read from MH i2c: D1 [12:07:06]MH_I2C_Read... [12:07:06]Read from MH i2c: D1 01 00 [12:07:06]MH_I2C_Read... [12:07:06]Read from MH i2c: D1 01 00 BC 79 00 06 [12:07:06]Write to MH i2c: 01 00 00 BD 79 36 [12:07:06]Write i2c OK [12:07:06]MH_I2C_Read... [12:07:07]OFD Sender: No OFD packet to send [12:07:08]*** Cut start [12:07:08]*** Purtial cut [12:07:08]*** Stage 1: CUTSNS_PIN = 1 [12:07:10]Read from MH i2c: 01 [12:07:10]MH_I2C_Read... [12:07:10]*** Stop cut motor [12:07:10]*** Cut end [12:07:10]Read from MH i2c: 01 07 00 [12:07:10]MH_I2C_Read... [12:07:10]Read from MH i2c: 01 07 00 BD 79 00 00 00 00 00 FF 0F 4B [12:07:10]process_action close_receipt done [12:07:10]requested_data is exist [12:07:10]produce_requested_data [12:07:10]requested_item fm.sn is exist - process it [12:07:10]wFMCommunicate request_size=4 [12:07:10]MH_SAM_APDU [12:07:10]CAPDU: 80 11 00 00 [12:07:10]Write to MH i2c: E2 08 00 BE 79 80 11 00 00 00 00 00 00 B1 [12:07:10]Write i2c OK [12:07:10]MH_I2C_Read... [12:07:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:10]Read from MH i2c: E2 [12:07:10]MH_I2C_Read... [12:07:10]Read from MH i2c: E2 17 00 [12:07:10]MH_I2C_Read... [12:07:10]Read from MH i2c: E2 17 00 BE 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 FE [12:07:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:07:10]wFMCommunicate OK [12:07:10]requested_item fd.num is exist - process it [12:07:10]SAM_PROTO_GetFieldsCounters [12:07:10]wFMCommunicate request_size=4 [12:07:10]MH_SAM_APDU [12:07:10]CAPDU: 80 13 00 00 [12:07:10]Write to MH i2c: E2 08 00 BF 79 80 13 00 00 00 00 00 00 B4 [12:07:10]Write i2c OK [12:07:10]MH_I2C_Read... [12:07:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:10]Read from MH i2c: E2 [12:07:10]MH_I2C_Read... [12:07:10]Read from MH i2c: E2 62 00 [12:07:10]MH_I2C_Read... [12:07:10]Read from MH i2c: E2 62 00 BF 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 31 FA 03 00 0E 04 04 00 C1 01 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 48 [12:07: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 31 FA 03 00 0E 04 04 00 C1 01 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 [12:07:10]wFMCommunicate OK [12:07:10]SAM_PROTO_GetFieldsCounters done [12:07:10]requested_item shift.num is exist - process it [12:07:10]requested_item shift.opened is exist - process it [12:07:10]req_shift_opened [12:07:10]FM_GetShiftState [12:07:10]SAM_PROTO_GetShiftState [12:07:10]wFMCommunicate request_size=4 [12:07:10]MH_SAM_APDU [12:07:10]CAPDU: 80 13 01 00 [12:07:10]Write to MH i2c: E2 08 00 C0 79 80 13 01 00 00 00 00 00 B6 [12:07:10]Write i2c OK [12:07:10]MH_I2C_Read... [12:07:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:10]Read from MH i2c: E2 [12:07:10]MH_I2C_Read... [12:07:10]Read from MH i2c: E2 0E 00 [12:07:10]MH_I2C_Read... [12:07:10]Read from MH i2c: E2 0E 00 C0 79 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F3 [12:07:10]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:07:10]wFMCommunicate OK [12:07:10]SAM_PROTO_GetShiftState done [12:07:10]FM_GetShiftState done [12:07:10]req_shift_opened done [12:07:10]requested_item shift.open_date is exist - process it [12:07:10]req_shift_open_date [12:07:10]req_shift_open_date done [12:07:10]produce_requested_data done [12:07:10]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260657,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [12:07:10]process_action_free close_receipt [12:07:10]json_value_free [12:07:10]json_value_free done [12:07:10]process_json_proto returns [12:07:10]Send response to host [12:07:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260657,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [12:07:10]free response buf [12:07:10]execute_script done [12:07:10]execute_script returns [12:07:10]free content buf [12:07:10]Sock 7.Close socket [12:07:10]Sock 7.Thread stoped [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:56]accept exits with 9 [12:07:56]New connection [12:07:56]New thread 3066473828 created [12:07:56]Thread 3066617188 joined [12:07:56]Waiting for new connection... [12:07:56] Sock 9.Parse request [12:07:56]Sock 9.Check first char [12:07:56]Sock 9.First char is OK [12:07:56]request: POST /json_proto HTTP/1.0 [12:07:56]Method: POST [12:07:56]URL: /json_proto [12:07:56]Method is POST - this is cgi request [12:07:56]url: /json_proto [12:07:56]query_string will be loaded in cgi processing [12:07:56]execute_cgi json_proto POST (null) [12:07:56]execute_cgi path=json_proto method=POST [12:07:56]POST find Content-Length [12:07:56]Host: 172.17.55.133:8080 [12:07:56]Content-Length: 683 [12:07:56]Content-Type: application/json [12:07:56] [12:07:56]POST finish read [12:07:56]Found Content-Length = 683 [12:07:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036205", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:56]execute_script... [12:07: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)1036205", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:56]POST & json_proto [12:07:56]process_json_proto [12:07:56]json parsed OK: [12:07:56]protocol is kg_v1.0 [12:07:56]action value=close_receipt [12:07:56]process_action close_receipt [12:07:56]cmd_close_receipt [12:07:56]MH_GetDate [12:07:56]Write to MH i2c: F0 00 00 C1 79 29 [12:07:56]Write i2c OK [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: F0 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: F0 09 00 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: F0 09 00 C1 79 00 20 E4 C1 66 34 48 D8 65 16 [12:07:56]GetLastDocTimeStamp 1723982829 [12:07:56]current date 1723982880 [12:07:56]FM_GetShiftState [12:07:56]SAM_PROTO_GetShiftState [12:07:56]wFMCommunicate request_size=4 [12:07:56]MH_SAM_APDU [12:07:56]CAPDU: 80 13 01 00 [12:07:56]Write to MH i2c: E2 08 00 C2 79 80 13 01 00 00 00 00 00 B8 [12:07:56]Write i2c OK [12:07:56]MH_I2C_Read... [12:07:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:56]Read from MH i2c: E2 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: E2 0E 00 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: E2 0E 00 C2 79 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F5 [12:07:56]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:07:56]wFMCommunicate OK [12:07:56]SAM_PROTO_GetShiftState done [12:07:56]FM_GetShiftState done [12:07:56]opened in 1723940556 [12:07:56]opened+sec_in_day 1724026956 [12:07:56]quantity*price = 100021 [12:07:56]sum+1 = 100023 [12:07:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 216 18.08.2024 12:08 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260658 ФПД: 256757383937851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T120800&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260658&fm=256757383937851&tin=02508201610067®Number=0000000000091865&sum=100000 [12:07:57]StoreToDocumentArchive [12:07:57]shift 449 fd 260658 [12:07:57]save to /storage/0449/doc_00260658 [12:07:57]save last doc name /storage/0449/doc_00260658 to /storage/kkm_last_doc_name [12:07:57]save OK [12:07:57]Clear old archive folders... [12:07:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:07:57]tlvbuf is 0057B380 [12:07:57]SAM_PROTO_ClearQueue [12:07:57]wFMCommunicate request_size=4 [12:07:57]MH_SAM_APDU [12:07:57]CAPDU: 80 09 00 00 [12:07:57]Write to MH i2c: E2 08 00 CF 79 80 09 00 00 00 00 00 00 BA [12:07:57]Write i2c OK [12:07:57]MH_I2C_Read... [12:07:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:57]Read from MH i2c: E2 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 03 00 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 03 00 CF 79 00 90 00 BC [12:07:57]RAPDU: 90 00 [12:07:57]wFMCommunicate OK [12:07:57]SAM_PROTO_ClearQueue done [12:07:57]KKMCreateOFDPacket [12:07:57]OFDProtocolAddRootSTLVToBuf [12:07:57]FM_MakeSignedData [12:07:57]FM_MakeSignedData [12:07:57]SAM_PROTO_SignData [12:07:57]wFMCommunicate request_size=4 [12:07:57]MH_SAM_APDU [12:07:57]CAPDU: 80 0D 01 02 [12:07:57]Write to MH i2c: E2 08 00 D0 79 80 0D 01 02 00 00 00 00 C2 [12:07:57]Write i2c OK [12:07:57]MH_I2C_Read... [12:07:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:57]Read from MH i2c: E2 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 03 00 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 03 00 D0 79 00 90 00 BD [12:07:57]RAPDU: 90 00 [12:07:57]wFMCommunicate OK [12:07:57]wFMCommunicate request_size=255 [12:07:57]MH_SAM_APDU [12:07:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 20 E4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 32 FA 03 00 35 04 06 00 E9 [12:07:57]Write to MH i2c: E2 02 01 D1 79 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 20 E4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 32 FA 03 00 35 04 06 00 E9 00 00 49 [12:07:57]Write i2c OK [12:07:57]MH_I2C_Read... [12:07:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:57]Read from MH i2c: E2 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 03 00 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 03 00 D1 79 00 90 00 BE [12:07:57]RAPDU: 90 00 [12:07:57]wFMCommunicate OK [12:07:57]wFMCommunicate request_size=10 [12:07:57]MH_SAM_APDU [12:07:57]CAPDU: 80 0D 02 02 05 84 FC A9 BF 3B [12:07:57]Write to MH i2c: E2 0D 00 D2 79 80 0D 02 02 05 00 84 FC A9 BF 3B 00 00 F2 [12:07:57]Write i2c OK [12:07:57]MH_I2C_Read... [12:07:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:57]Read from MH i2c: E2 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 03 00 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 03 00 D2 79 00 90 00 BF [12:07:57]RAPDU: 90 00 [12:07:57]wFMCommunicate OK [12:07:57]wFMCommunicate request_size=4 [12:07:57]MH_SAM_APDU [12:07:57]CAPDU: 80 0D 03 02 [12:07:57]Write to MH i2c: E2 08 00 D3 79 80 0D 03 02 00 00 00 00 C7 [12:07:57]Write i2c OK [12:07:57]MH_I2C_Read... [12:07:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:57]Read from MH i2c: E2 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 0B 00 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 0B 00 D3 79 00 DB E6 65 59 A5 0D 22 57 90 00 72 [12:07:57]RAPDU: DB E6 65 59 A5 0D 22 57 90 00 [12:07:57]wFMCommunicate OK [12:07:57]SAM_PROTO_SignData done [12:07:57]FM_MakeSignedData done [12:07:57]CreateOFDProtocolMessage [12:07:57]wFMCommunicate request_size=4 [12:07:57]MH_SAM_APDU [12:07:57]CAPDU: 80 11 00 00 [12:07:57]Write to MH i2c: E2 08 00 D4 79 80 11 00 00 00 00 00 00 C7 [12:07:57]Write i2c OK [12:07:57]MH_I2C_Read... [12:07:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:57]Read from MH i2c: E2 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 17 00 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 17 00 D4 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 14 [12:07:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:07:57]wFMCommunicate OK [12:07:57]CreateOFDProtocolMessage done [12:07:57]OFDSenderStorePacket 260658 [12:07:57]StoreOFDPacket docnum=260658 [12:07:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 23 DB 07 01 13 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 20 E4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 32 FA 03 00 35 04 06 00 E9 84 FC A9 BF 3B DB E6 65 59 A5 0D 22 57 [12:07:57]CheckFolder [12:07:57]dirname=/storage/ofd_packets [12:07:57]CheckFolder done [12:07:57]ProducePacketName [12:07:57]name=ofd_packets/00260658 [12:07:57]NVStorageSaveData ofd_packets/00260658 [12:07:57]File name is /storage/ofd_packets/00260658 [12:07:57]Write 301 bytes [12:07:57]NVStorageSaveData done [12:07:57]OFDSenderStorePacket done [12:07:57]KKMCreateOFDPacket done [12:07:57]NVStorageSaveData kkm_last_timestamp [12:07:57]File name is /storage/kkm_last_timestamp [12:07:57]Write 4 bytes [12:07:57]NVStorageSaveData done [12:07:57]ExternCall_PrintAddStr [12:07:57]wPrintStart [12:07:57]Write to MH i2c: 01 00 00 D5 79 4E [12:07:57]Write i2c OK [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: 01 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: 01 07 00 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: 01 07 00 D5 79 00 00 00 00 00 FF 0F 63 [12:07:57]RasterBufferAndPrint [12:07:57]line Счет N : (1)1036205 [12:07:57]line ИНН: 02508201610067 [12:07:57]line Контрольно-Кассовый Чек [12:07:57]line ПРОДАЖА [12:07:57]line ТРК (МРК, ГНК) : 13 [12:07:57]line Товар: 2710124500 [12:07:57]line Аи-95-К-5 [12:07:57]line 13.480 * 74.20 [12:07:57]line = 1000.22 [12:07:57]line НДС 12% НСП 1% [12:07:57]line > о реализуемом товаре [12:07:57]line ОКРУГЛЕНИЕ: -0.22 [12:07:57]line ИТОГО: 1000.00 [12:07:57]line Внесено: 1000.00 [12:07:57]line СДАЧА: 0.00 [12:07:57]line НСП 1% : 8.85 [12:07:57]line НДС 12% : 106.22 [12:07:57]line Наличными: 1000.00 [12:07:57]line Безнал.: 0.00 [12:07:57]line Место: АЗС № 94 "Партнер Нефть" [12:07:57]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [12:07:57]line СНО: Общий режим [12:07:57]line Чек 216 18.08.2024 12:08 [12:07:57]line Смена: 449 ФФД: 1.0 [12:07:57]line ЗНМ: 0300000099 [12:07:57]line РНМ: 0000000000091865 [12:07:57]line Версия ККМ: 001 [12:07:57]line ФМ: 0000000000871820 [12:07:57]line ФД: 260658 [12:07:57]line ФПД: 256757383937851 [12:07:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T120800&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260658&fm=256757383937851&tin=02508201610067®Number=0000000000091865&sum=100000 [12:07:57]written 0, free lines is 4095 [12:07:58]OFD Sender: Processing packet 260658 [packets to send 192, broken 191] [12:07:58]ProducePacketName [12:07:58]name=ofd_packets/00260658 [12:07:58]OFD Sender: To server: pG, [12:07:58]CommunicateWithHost lk.salyk.kg:30040 [12:07:58]ConnectInit lk.salyk.kg [12:07:58]Connected sock=10 [12:07: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 30 0F 01 00 00 23 DB 07 01 13 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 20 E4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 32 FA 03 00 35 04 06 00 E9 84 FC A9 BF 3B DB E6 65 59 A5 0D 22 57 [12:07: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 30 4F 00 00 00 98 66 47 00 53 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 30 10 04 04 00 32 FA 03 00 F4 03 04 00 75 8D C1 66 B6 04 01 00 00 4B 45 B4 BF 7C 36 A8 96 [12:07:58]CommunicateWithHost err = 0 [12:07:58]CheckOFDResponse [12:07:58]1017 (14) - 77093643461234 [12:07:58]1041 (16) - 0000000000871820 [12:07:58]1040 (4) - 260658 [12:07:58]1012 (4) - 18.08.2024 05:58 [12:07:58]1206 (1) - 0 [12:07:58]OFD Sender: Remove packet 260658 [12:07:58]ProducePacketName [12:07:58]name=ofd_packets/00260658 [12:07:58]NVStorageDeleteData [12:07:58]Write to MH i2c: 01 00 00 00 7A 7A [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: 01 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: 01 07 00 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: 01 07 00 00 7A 00 00 00 00 00 6F 0C FC [12:07:58]RasterBufferAndPrint [12:07:58]line [12:07:58]line [12:07:58]line [12:07:58]line [12:07:58]line [12:07:58]written 0, free lines is 3186 [12:07:58]MH_Cut [12:07:58]Write to MH i2c: D1 01 00 07 7A 01 53 [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: D1 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: D1 01 00 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: D1 01 00 07 7A 00 52 [12:07:58]Write to MH i2c: 01 00 00 08 7A 82 [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:58]OFD Sender: No OFD packet to send [12:07:59]*** Cut start [12:07:59]*** Purtial cut [12:07:59]*** Stage 1: CUTSNS_PIN = 1 [12:08:01]Read from MH i2c: 01 [12:08:01]MH_I2C_Read... [12:08:01]*** Stop cut motor [12:08:01]*** Cut end [12:08:01]Read from MH i2c: 01 07 00 [12:08:01]MH_I2C_Read... [12:08:01]Read from MH i2c: 01 07 00 08 7A 00 00 00 00 00 FF 0F 97 [12:08:01]process_action close_receipt done [12:08:01]requested_data is exist [12:08:01]produce_requested_data [12:08:01]requested_item fm.sn is exist - process it [12:08:01]wFMCommunicate request_size=4 [12:08:01]MH_SAM_APDU [12:08:01]CAPDU: 80 11 00 00 [12:08:01]Write to MH i2c: E2 08 00 09 7A 80 11 00 00 00 00 00 00 FD [12:08:01]Write i2c OK [12:08:01]MH_I2C_Read... [12:08:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:01]Read from MH i2c: E2 [12:08:01]MH_I2C_Read... [12:08:01]Read from MH i2c: E2 17 00 [12:08:01]MH_I2C_Read... [12:08:01]Read from MH i2c: E2 17 00 09 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 4A [12:08:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:08:01]wFMCommunicate OK [12:08:01]requested_item fd.num is exist - process it [12:08:01]SAM_PROTO_GetFieldsCounters [12:08:01]wFMCommunicate request_size=4 [12:08:01]MH_SAM_APDU [12:08:01]CAPDU: 80 13 00 00 [12:08:01]Write to MH i2c: E2 08 00 0A 7A 80 13 00 00 00 00 00 00 00 [12:08:01]Write i2c OK [12:08:01]MH_I2C_Read... [12:08:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:01]Read from MH i2c: E2 [12:08:01]MH_I2C_Read... [12:08:01]Read from MH i2c: E2 62 00 [12:08:01]MH_I2C_Read... [12:08:01]Read from MH i2c: E2 62 00 0A 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 32 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [12:08: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 32 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:08:01]wFMCommunicate OK [12:08:01]SAM_PROTO_GetFieldsCounters done [12:08:01]requested_item shift.num is exist - process it [12:08:01]requested_item shift.opened is exist - process it [12:08:01]req_shift_opened [12:08:01]FM_GetShiftState [12:08:01]SAM_PROTO_GetShiftState [12:08:01]wFMCommunicate request_size=4 [12:08:01]MH_SAM_APDU [12:08:01]CAPDU: 80 13 01 00 [12:08:01]Write to MH i2c: E2 08 00 0B 7A 80 13 01 00 00 00 00 00 02 [12:08:01]Write i2c OK [12:08:01]MH_I2C_Read... [12:08:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:01]Read from MH i2c: E2 [12:08:01]MH_I2C_Read... [12:08:01]Read from MH i2c: E2 0E 00 [12:08:01]MH_I2C_Read... [12:08:01]Read from MH i2c: E2 0E 00 0B 7A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 3F [12:08:01]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:08:01]wFMCommunicate OK [12:08:01]SAM_PROTO_GetShiftState done [12:08:01]FM_GetShiftState done [12:08:01]req_shift_opened done [12:08:01]requested_item shift.open_date is exist - process it [12:08:01]req_shift_open_date [12:08:01]req_shift_open_date done [12:08:01]produce_requested_data done [12:08:01]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260658,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [12:08:01]process_action_free close_receipt [12:08:01]json_value_free [12:08:01]json_value_free done [12:08:01]process_json_proto returns [12:08:01]Send response to host [12:08:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260658,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [12:08:01]free response buf [12:08:01]execute_script done [12:08:01]execute_script returns [12:08:01]free content buf [12:08:01]Sock 9.Close socket [12:08:01]Sock 9.Thread stoped [12:08:03]OFD Sender: No OFD packet to send [12:08:08]OFD Sender: No OFD packet to send [12:08:13]OFD Sender: No OFD packet to send [12:08:18]OFD Sender: No OFD packet to send [12:08:23]OFD Sender: No OFD packet to send [12:08:28]OFD Sender: No OFD packet to send [12:08:33]OFD Sender: No OFD packet to send [12:08:36]accept exits with 7 [12:08:36]New connection [12:08:36]New thread 3066617188 created [12:08:36]Thread 3066473828 joined [12:08:36]Waiting for new connection... [12:08:36] Sock 7.Parse request [12:08:36]Sock 7.Check first char [12:08:36]Sock 7.First char is OK [12:08:36]request: POST /json_proto HTTP/1.0 [12:08:36]Method: POST [12:08:36]URL: /json_proto [12:08:36]Method is POST - this is cgi request [12:08:36]url: /json_proto [12:08:36]query_string will be loaded in cgi processing [12:08:36]execute_cgi json_proto POST (null) [12:08:36]execute_cgi path=json_proto method=POST [12:08:36]POST find Content-Length [12:08:36]Host: 172.17.55.133:8080 [12:08:36]Content-Length: 678 [12:08:36]Content-Type: application/json [12:08:36] [12:08:36]POST finish read [12:08:36]Found Content-Length = 678 [12:08:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [12:08:36]execute_script... [12:08: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)1036206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [12:08:36]POST & json_proto [12:08:36]process_json_proto [12:08:36]json parsed OK: [12:08:36]protocol is kg_v1.0 [12:08:36]action value=close_receipt [12:08:36]process_action close_receipt [12:08:36]cmd_close_receipt [12:08:36]MH_GetDate [12:08:36]Write to MH i2c: F0 00 00 0C 7A 75 [12:08:36]Write i2c OK [12:08:36]MH_I2C_Read... [12:08:36]Read from MH i2c: F0 [12:08:36]MH_I2C_Read... [12:08:36]Read from MH i2c: F0 09 00 [12:08:36]MH_I2C_Read... [12:08:36]Read from MH i2c: F0 09 00 0C 7A 00 49 E4 C1 66 34 48 D8 65 8B [12:08:36]GetLastDocTimeStamp 1723982880 [12:08:36]current date 1723982921 [12:08:36]FM_GetShiftState [12:08:36]SAM_PROTO_GetShiftState [12:08:36]wFMCommunicate request_size=4 [12:08:36]MH_SAM_APDU [12:08:36]CAPDU: 80 13 01 00 [12:08:36]Write to MH i2c: E2 08 00 0D 7A 80 13 01 00 00 00 00 00 04 [12:08:36]Write i2c OK [12:08:36]MH_I2C_Read... [12:08:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:36]Read from MH i2c: E2 [12:08:36]MH_I2C_Read... [12:08:36]Read from MH i2c: E2 0E 00 [12:08:36]MH_I2C_Read... [12:08:36]Read from MH i2c: E2 0E 00 0D 7A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 41 [12:08:36]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:08:36]wFMCommunicate OK [12:08:36]SAM_PROTO_GetShiftState done [12:08:36]FM_GetShiftState done [12:08:36]opened in 1723940556 [12:08:36]opened+sec_in_day 1724026956 [12:08:36]quantity*price = 40002 [12:08:36]sum+1 = 40003 [12:08:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 217 18.08.2024 12:08 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260659 ФПД: 147128249146399 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T120841&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260659&fm=147128249146399&tin=02508201610067®Number=0000000000091865&sum=40000 [12:08:37]StoreToDocumentArchive [12:08:37]shift 449 fd 260659 [12:08:37]save to /storage/0449/doc_00260659 [12:08:37]save last doc name /storage/0449/doc_00260659 to /storage/kkm_last_doc_name [12:08:37]save OK [12:08:37]Clear old archive folders... [12:08:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:08:37]tlvbuf is 004A47E0 [12:08:37]SAM_PROTO_ClearQueue [12:08:37]wFMCommunicate request_size=4 [12:08:37]MH_SAM_APDU [12:08:37]CAPDU: 80 09 00 00 [12:08:37]Write to MH i2c: E2 08 00 1A 7A 80 09 00 00 00 00 00 00 06 [12:08:37]Write i2c OK [12:08:37]MH_I2C_Read... [12:08:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:08:37]Read from MH i2c: E2 [12:08:37]MH_I2C_Read... [12:08:37]Read from MH i2c: E2 03 00 [12:08:37]MH_I2C_Read... [12:08:37]Read from MH i2c: E2 03 00 1A 7A 00 90 00 08 [12:08:37]RAPDU: 90 00 [12:08:37]wFMCommunicate OK [12:08:37]SAM_PROTO_ClearQueue done [12:08:37]KKMCreateOFDPacket [12:08:37]OFDProtocolAddRootSTLVToBuf [12:08:37]FM_MakeSignedData [12:08:37]FM_MakeSignedData [12:08:37]SAM_PROTO_SignData [12:08:37]wFMCommunicate request_size=4 [12:08:37]MH_SAM_APDU [12:08:37]CAPDU: 80 0D 01 02 [12:08:37]Write to MH i2c: E2 08 00 1B 7A 80 0D 01 02 00 00 00 00 0E [12:08:37]Write i2c OK [12:08:37]MH_I2C_Read... [12:08:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:08:37]Read from MH i2c: E2 [12:08:37]MH_I2C_Read... [12:08:37]Read from MH i2c: E2 03 00 [12:08:37]MH_I2C_Read... [12:08:37]Read from MH i2c: E2 03 00 1B 7A 00 90 00 09 [12:08:37]RAPDU: 90 00 [12:08:37]wFMCommunicate OK [12:08:37]wFMCommunicate request_size=255 [12:08:37]MH_SAM_APDU [12:08:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 49 E4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 33 FA 03 00 35 04 06 00 85 [12:08:37]Write to MH i2c: E2 02 01 1C 7A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 49 E4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 33 FA 03 00 35 04 06 00 85 00 00 14 [12:08:37]Write i2c OK [12:08:37]MH_I2C_Read... [12:08:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:37]Read from MH i2c: E2 [12:08:37]MH_I2C_Read... [12:08:37]Read from MH i2c: E2 03 00 [12:08:37]MH_I2C_Read... [12:08:37]Read from MH i2c: E2 03 00 1C 7A 00 90 00 0A [12:08:37]RAPDU: 90 00 [12:08:37]wFMCommunicate OK [12:08:37]wFMCommunicate request_size=10 [12:08:37]MH_SAM_APDU [12:08:37]CAPDU: 80 0D 02 02 05 CF F7 06 DC 1F [12:08:37]Write to MH i2c: E2 0D 00 1D 7A 80 0D 02 02 05 00 CF F7 06 DC 1F 00 00 E2 [12:08:37]Write i2c OK [12:08:37]MH_I2C_Read... [12:08:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:37]Read from MH i2c: E2 [12:08:37]MH_I2C_Read... [12:08:37]Read from MH i2c: E2 03 00 [12:08:37]MH_I2C_Read... [12:08:37]Read from MH i2c: E2 03 00 1D 7A 00 90 00 0B [12:08:37]RAPDU: 90 00 [12:08:37]wFMCommunicate OK [12:08:37]wFMCommunicate request_size=4 [12:08:37]MH_SAM_APDU [12:08:37]CAPDU: 80 0D 03 02 [12:08:37]Write to MH i2c: E2 08 00 1E 7A 80 0D 03 02 00 00 00 00 13 [12:08:37]Write i2c OK [12:08:37]MH_I2C_Read... [12:08:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:08:38]Read from MH i2c: E2 [12:08:38]MH_I2C_Read... [12:08:38]Read from MH i2c: E2 0B 00 [12:08:38]MH_I2C_Read... [12:08:38]Read from MH i2c: E2 0B 00 1E 7A 00 18 B3 19 E2 5D 8E 89 C6 90 00 14 [12:08:38]RAPDU: 18 B3 19 E2 5D 8E 89 C6 90 00 [12:08:38]wFMCommunicate OK [12:08:38]SAM_PROTO_SignData done [12:08:38]FM_MakeSignedData done [12:08:38]CreateOFDProtocolMessage [12:08:38]wFMCommunicate request_size=4 [12:08:38]MH_SAM_APDU [12:08:38]CAPDU: 80 11 00 00 [12:08:38]Write to MH i2c: E2 08 00 1F 7A 80 11 00 00 00 00 00 00 13 [12:08:38]Write i2c OK [12:08:38]MH_I2C_Read... [12:08:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:38]Read from MH i2c: E2 [12:08:38]MH_I2C_Read... [12:08:38]Read from MH i2c: E2 17 00 [12:08:38]MH_I2C_Read... [12:08:38]Read from MH i2c: E2 17 00 1F 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 60 [12:08:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:08:38]wFMCommunicate OK [12:08:38]CreateOFDProtocolMessage done [12:08:38]OFDSenderStorePacket 260659 [12:08:38]StoreOFDPacket docnum=260659 [12:08:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 EC 84 07 01 B4 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 49 E4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 33 FA 03 00 35 04 06 00 85 CF F7 06 DC 1F 18 B3 19 E2 5D 8E 89 C6 [12:08:38]CheckFolder [12:08:38]dirname=/storage/ofd_packets [12:08:38]CheckFolder done [12:08:38]ProducePacketName [12:08:38]name=ofd_packets/00260659 [12:08:38]NVStorageSaveData ofd_packets/00260659 [12:08:38]File name is /storage/ofd_packets/00260659 [12:08:38]Write 301 bytes [12:08:38]NVStorageSaveData done [12:08:38]OFDSenderStorePacket done [12:08:38]KKMCreateOFDPacket done [12:08:38]NVStorageSaveData kkm_last_timestamp [12:08:38]File name is /storage/kkm_last_timestamp [12:08:38]Write 4 bytes [12:08:38]NVStorageSaveData done [12:08:38]ExternCall_PrintAddStr [12:08:38]wPrintStart [12:08:38]Write to MH i2c: 01 00 00 20 7A 9A [12:08:38]Write i2c OK [12:08:38]MH_I2C_Read... [12:08:38]Read from MH i2c: 01 [12:08:38]MH_I2C_Read... [12:08:38]Read from MH i2c: 01 07 00 [12:08:38]MH_I2C_Read... [12:08:38]Read from MH i2c: 01 07 00 20 7A 00 00 00 00 00 FF 0F AF [12:08:38]RasterBufferAndPrint [12:08:38]line Счет N : (1)1036206 [12:08:38]line ИНН: 02508201610067 [12:08:38]line Контрольно-Кассовый Чек [12:08:38]line ПРОДАЖА [12:08:38]line ТРК (МРК, ГНК) : 42 [12:08:38]line Товар: 2710124130 [12:08:38]line Аи-92-К-5 [12:08:38]line 5.900 * 67.80 [12:08:38]line = 400.02 [12:08:38]line НДС 12% НСП 1% [12:08:38]line > о реализуемом товаре [12:08:38]line ОКРУГЛЕНИЕ: -0.02 [12:08:38]line ИТОГО: 400.00 [12:08:38]line Внесено: 400.00 [12:08:38]line СДАЧА: 0.00 [12:08:38]line НСП 1% : 3.54 [12:08:38]line НДС 12% : 42.48 [12:08:38]line Наличными: 400.00 [12:08:38]line Безнал.: 0.00 [12:08:38]line Место: АЗС № 94 "Партнер Нефть" [12:08:38]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [12:08:38]line СНО: Общий режим [12:08:38]line Чек 217 18.08.2024 12:08 [12:08:38]line Смена: 449 ФФД: 1.0 [12:08:38]line ЗНМ: 0300000099 [12:08:38]line РНМ: 0000000000091865 [12:08:38]line Версия ККМ: 001 [12:08:38]line ФМ: 0000000000871820 [12:08:38]line ФД: 260659 [12:08:38]line ФПД: 147128249146399 [12:08:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T120841&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260659&fm=147128249146399&tin=02508201610067®Number=0000000000091865&sum=40000 [12:08:38]written 0, free lines is 4095 [12:08:38]OFD Sender: Processing packet 260659 [packets to send 192, broken 191] [12:08:38]ProducePacketName [12:08:38]name=ofd_packets/00260659 [12:08:38]OFD Sender: To server: pG, [12:08:38]CommunicateWithHost lk.salyk.kg:30040 [12:08:38]ConnectInit lk.salyk.kg [12:08:38]Connected sock=10 [12:08: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 30 0F 01 00 00 EC 84 07 01 B4 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 49 E4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 33 FA 03 00 35 04 06 00 85 CF F7 06 DC 1F 18 B3 19 E2 5D 8E 89 C6 [12:08: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 30 4F 00 00 00 E3 00 47 00 93 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 30 10 04 04 00 33 FA 03 00 F4 03 04 00 9E 8D C1 66 B6 04 01 00 00 CF 14 D4 CE 36 D2 F6 99 [12:08:38]CommunicateWithHost err = 0 [12:08:38]CheckOFDResponse [12:08:38]1017 (14) - 77093643461234 [12:08:38]1041 (16) - 0000000000871820 [12:08:38]1040 (4) - 260659 [12:08:38]1012 (4) - 18.08.2024 05:58 [12:08:38]1206 (1) - 0 [12:08:38]OFD Sender: Remove packet 260659 [12:08:38]ProducePacketName [12:08:38]name=ofd_packets/00260659 [12:08:38]NVStorageDeleteData [12:08:38]Write to MH i2c: 01 00 00 4B 7A C5 [12:08:38]Write i2c OK [12:08:38]MH_I2C_Read... [12:08:38]Read from MH i2c: 01 [12:08:38]MH_I2C_Read... [12:08:38]Read from MH i2c: 01 07 00 [12:08:38]MH_I2C_Read... [12:08:38]Read from MH i2c: 01 07 00 4B 7A 00 00 00 00 00 72 0C 4A [12:08:38]RasterBufferAndPrint [12:08:38]line [12:08:38]line [12:08:38]line [12:08:38]line [12:08:38]line [12:08:38]written 0, free lines is 3188 [12:08:38]MH_Cut [12:08:38]Write to MH i2c: D1 01 00 52 7A 01 9E [12:08:38]Write i2c OK [12:08:38]MH_I2C_Read... [12:08:38]Read from MH i2c: D1 [12:08:38]MH_I2C_Read... [12:08:38]Read from MH i2c: D1 01 00 [12:08:38]MH_I2C_Read... [12:08:38]Read from MH i2c: D1 01 00 52 7A 00 9D [12:08:38]Write to MH i2c: 01 00 00 53 7A CD [12:08:38]Write i2c OK [12:08:38]MH_I2C_Read... [12:08:38]OFD Sender: No OFD packet to send [12:08:39]*** Cut start [12:08:39]*** Purtial cut [12:08:39]*** Stage 1: CUTSNS_PIN = 1 [12:08:41]Read from MH i2c: 01 [12:08:41]MH_I2C_Read... [12:08:41]*** Stop cut motor [12:08:41]*** Cut end [12:08:41]Read from MH i2c: 01 07 00 [12:08:41]MH_I2C_Read... [12:08:41]Read from MH i2c: 01 07 00 53 7A 00 00 00 00 00 FF 0F E2 [12:08:41]process_action close_receipt done [12:08:41]requested_data is exist [12:08:41]produce_requested_data [12:08:41]requested_item fm.sn is exist - process it [12:08:41]wFMCommunicate request_size=4 [12:08:41]MH_SAM_APDU [12:08:41]CAPDU: 80 11 00 00 [12:08:41]Write to MH i2c: E2 08 00 54 7A 80 11 00 00 00 00 00 00 48 [12:08:41]Write i2c OK [12:08:41]MH_I2C_Read... [12:08:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:41]Read from MH i2c: E2 [12:08:41]MH_I2C_Read... [12:08:41]Read from MH i2c: E2 17 00 [12:08:41]MH_I2C_Read... [12:08:41]Read from MH i2c: E2 17 00 54 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 95 [12:08:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:08:41]wFMCommunicate OK [12:08:41]requested_item fd.num is exist - process it [12:08:41]SAM_PROTO_GetFieldsCounters [12:08:41]wFMCommunicate request_size=4 [12:08:41]MH_SAM_APDU [12:08:41]CAPDU: 80 13 00 00 [12:08:41]Write to MH i2c: E2 08 00 55 7A 80 13 00 00 00 00 00 00 4B [12:08:41]Write i2c OK [12:08:41]MH_I2C_Read... [12:08:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:41]Read from MH i2c: E2 [12:08:41]MH_I2C_Read... [12:08:41]Read from MH i2c: E2 62 00 [12:08:41]MH_I2C_Read... [12:08:41]Read from MH i2c: E2 62 00 55 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 33 FA 03 00 0E 04 04 00 C1 01 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 E7 [12:08: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 33 FA 03 00 0E 04 04 00 C1 01 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 [12:08:41]wFMCommunicate OK [12:08:41]SAM_PROTO_GetFieldsCounters done [12:08:41]requested_item shift.num is exist - process it [12:08:41]requested_item shift.opened is exist - process it [12:08:41]req_shift_opened [12:08:41]FM_GetShiftState [12:08:41]SAM_PROTO_GetShiftState [12:08:41]wFMCommunicate request_size=4 [12:08:41]MH_SAM_APDU [12:08:41]CAPDU: 80 13 01 00 [12:08:41]Write to MH i2c: E2 08 00 56 7A 80 13 01 00 00 00 00 00 4D [12:08:41]Write i2c OK [12:08:41]MH_I2C_Read... [12:08:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:41]Read from MH i2c: E2 [12:08:41]MH_I2C_Read... [12:08:41]Read from MH i2c: E2 0E 00 [12:08:41]MH_I2C_Read... [12:08:41]Read from MH i2c: E2 0E 00 56 7A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 8A [12:08:41]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:08:41]wFMCommunicate OK [12:08:41]SAM_PROTO_GetShiftState done [12:08:41]FM_GetShiftState done [12:08:41]req_shift_opened done [12:08:41]requested_item shift.open_date is exist - process it [12:08:41]req_shift_open_date [12:08:41]req_shift_open_date done [12:08:41]produce_requested_data done [12:08:41]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260659,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [12:08:41]process_action_free close_receipt [12:08:41]json_value_free [12:08:41]json_value_free done [12:08:41]process_json_proto returns [12:08:41]Send response to host [12:08:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260659,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [12:08:41]free response buf [12:08:41]execute_script done [12:08:41]execute_script returns [12:08:41]free content buf [12:08:41]Sock 7.Close socket [12:08:41]Sock 7.Thread stoped [12:08:43]OFD Sender: No OFD packet to send [12:08:48]OFD Sender: No OFD packet to send [12:08:53]OFD Sender: No OFD packet to send [12:08:58]OFD Sender: No OFD packet to send [12:09:04]OFD Sender: No OFD packet to send [12:09:09]OFD Sender: No OFD packet to send [12:09:14]OFD Sender: No OFD packet to send [12:09:19]OFD Sender: No OFD packet to send [12:09:24]OFD Sender: No OFD packet to send [12:09:29]OFD Sender: No OFD packet to send [12:09:34]OFD Sender: No OFD packet to send [12:09:39]OFD Sender: No OFD packet to send [12:09:44]OFD Sender: No OFD packet to send [12:09:49]OFD Sender: No OFD packet to send [12:09:54]OFD Sender: No OFD packet to send [12:09:59]OFD Sender: No OFD packet to send [12:10:04]OFD Sender: No OFD packet to send [12:10:09]OFD Sender: No OFD packet to send [12:10:14]OFD Sender: No OFD packet to send [12:10:19]OFD Sender: No OFD packet to send [12:10:24]OFD Sender: No OFD packet to send [12:10:29]OFD Sender: No OFD packet to send [12:10:34]OFD Sender: No OFD packet to send [12:10:39]OFD Sender: No OFD packet to send [12:10:44]OFD Sender: No OFD packet to send [12:10:46]accept exits with 9 [12:10:46]New connection [12:10:46]New thread 3066473828 created [12:10:46]Thread 3066617188 joined [12:10:46]Waiting for new connection... [12:10:46] Sock 9.Parse request [12:10:46]Sock 9.Check first char [12:10:46]Sock 9.First char is OK [12:10:46]request: POST /json_proto HTTP/1.0 [12:10:46]Method: POST [12:10:46]URL: /json_proto [12:10:46]Method is POST - this is cgi request [12:10:46]url: /json_proto [12:10:46]query_string will be loaded in cgi processing [12:10:46]execute_cgi json_proto POST (null) [12:10:46]execute_cgi path=json_proto method=POST [12:10:46]POST find Content-Length [12:10:46]Host: 172.17.55.133:8080 [12:10:46]Content-Length: 817 [12:10:46]Content-Type: application/json [12:10:46] [12:10:46]POST finish read [12:10:46]Found Content-Length = 817 [12:10:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036208", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:46]execute_script... [12:10: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)1036208", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:46]POST & json_proto [12:10:46]process_json_proto [12:10:46]json parsed OK: [12:10:46]protocol is kg_v1.0 [12:10:46]action value=close_receipt [12:10:46]process_action close_receipt [12:10:46]cmd_close_receipt [12:10:46]MH_GetDate [12:10:46]Write to MH i2c: F0 00 00 57 7A C0 [12:10:46]Write i2c OK [12:10:46]MH_I2C_Read... [12:10:46]Read from MH i2c: F0 [12:10:46]MH_I2C_Read... [12:10:46]Read from MH i2c: F0 09 00 [12:10:46]MH_I2C_Read... [12:10:46]Read from MH i2c: F0 09 00 57 7A 00 CB E4 C1 66 34 48 D8 65 58 [12:10:46]GetLastDocTimeStamp 1723982921 [12:10:46]current date 1723983051 [12:10:46]FM_GetShiftState [12:10:46]SAM_PROTO_GetShiftState [12:10:46]wFMCommunicate request_size=4 [12:10:46]MH_SAM_APDU [12:10:46]CAPDU: 80 13 01 00 [12:10:46]Write to MH i2c: E2 08 00 58 7A 80 13 01 00 00 00 00 00 4F [12:10:46]Write i2c OK [12:10:46]MH_I2C_Read... [12:10:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:46]Read from MH i2c: E2 [12:10:46]MH_I2C_Read... [12:10:46]Read from MH i2c: E2 0E 00 [12:10:46]MH_I2C_Read... [12:10:46]Read from MH i2c: E2 0E 00 58 7A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 8C [12:10:46]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:10:46]wFMCommunicate OK [12:10:46]SAM_PROTO_GetShiftState done [12:10:46]FM_GetShiftState done [12:10:46]opened in 1723940556 [12:10:46]opened+sec_in_day 1724026956 [12:10:46]quantity*price = 50010 [12:10:46]sum+1 = 50012 [12:10:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 218 18.08.2024 12:10 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871820 ФД: 260660 ФПД: 121684169379270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T121051&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260660&fm=121684169379270&tin=02508201610067®Number=0000000000091865&sum=50011 [12:10:47]StoreToDocumentArchive [12:10:47]shift 449 fd 260660 [12:10:47]save to /storage/0449/doc_00260660 [12:10:47]save last doc name /storage/0449/doc_00260660 to /storage/kkm_last_doc_name [12:10:47]save OK [12:10:47]Clear old archive folders... [12:10:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:10:47]tlvbuf is 0036F340 [12:10:47]SAM_PROTO_ClearQueue [12:10:47]wFMCommunicate request_size=4 [12:10:47]MH_SAM_APDU [12:10:47]CAPDU: 80 09 00 00 [12:10:47]Write to MH i2c: E2 08 00 65 7A 80 09 00 00 00 00 00 00 51 [12:10:47]Write i2c OK [12:10:47]MH_I2C_Read... [12:10:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:48]Read from MH i2c: E2 [12:10:48]MH_I2C_Read... [12:10:48]Read from MH i2c: E2 03 00 [12:10:48]MH_I2C_Read... [12:10:48]Read from MH i2c: E2 03 00 65 7A 00 90 00 53 [12:10:48]RAPDU: 90 00 [12:10:48]wFMCommunicate OK [12:10:48]SAM_PROTO_ClearQueue done [12:10:48]KKMCreateOFDPacket [12:10:48]OFDProtocolAddRootSTLVToBuf [12:10:48]FM_MakeSignedData [12:10:48]FM_MakeSignedData [12:10:48]SAM_PROTO_SignData [12:10:48]wFMCommunicate request_size=4 [12:10:48]MH_SAM_APDU [12:10:48]CAPDU: 80 0D 01 02 [12:10:48]Write to MH i2c: E2 08 00 66 7A 80 0D 01 02 00 00 00 00 59 [12:10:48]Write i2c OK [12:10:48]MH_I2C_Read... [12:10:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:48]Read from MH i2c: E2 [12:10:48]MH_I2C_Read... [12:10:48]Read from MH i2c: E2 03 00 [12:10:48]MH_I2C_Read... [12:10:48]Read from MH i2c: E2 03 00 66 7A 00 90 00 54 [12:10:48]RAPDU: 90 00 [12:10:48]wFMCommunicate OK [12:10:48]wFMCommunicate request_size=255 [12:10:48]MH_SAM_APDU [12:10:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 CB E4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 34 FA 03 00 35 04 06 00 6E [12:10:48]Write to MH i2c: E2 02 01 67 7A 80 0D 02 02 FA 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 CB E4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 34 FA 03 00 35 04 06 00 6E 00 00 E5 [12:10:48]Write i2c OK [12:10:48]MH_I2C_Read... [12:10:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:48]Read from MH i2c: E2 [12:10:48]MH_I2C_Read... [12:10:48]Read from MH i2c: E2 03 00 [12:10:48]MH_I2C_Read... [12:10:48]Read from MH i2c: E2 03 00 67 7A 00 90 00 55 [12:10:48]RAPDU: 90 00 [12:10:48]wFMCommunicate OK [12:10:48]wFMCommunicate request_size=10 [12:10:48]MH_SAM_APDU [12:10:48]CAPDU: 80 0D 02 02 05 AB CD B0 CD C6 [12:10:48]Write to MH i2c: E2 0D 00 68 7A 80 0D 02 02 05 00 AB CD B0 CD C6 00 00 21 [12:10:48]Write i2c OK [12:10:48]MH_I2C_Read... [12:10:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:48]Read from MH i2c: E2 [12:10:48]MH_I2C_Read... [12:10:48]Read from MH i2c: E2 03 00 [12:10:48]MH_I2C_Read... [12:10:48]Read from MH i2c: E2 03 00 68 7A 00 90 00 56 [12:10:48]RAPDU: 90 00 [12:10:48]wFMCommunicate OK [12:10:48]wFMCommunicate request_size=4 [12:10:48]MH_SAM_APDU [12:10:48]CAPDU: 80 0D 03 02 [12:10:48]Write to MH i2c: E2 08 00 69 7A 80 0D 03 02 00 00 00 00 5E [12:10:48]Write i2c OK [12:10:48]MH_I2C_Read... [12:10:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:48]Read from MH i2c: E2 [12:10:48]MH_I2C_Read... [12:10:48]Read from MH i2c: E2 0B 00 [12:10:48]MH_I2C_Read... [12:10:48]Read from MH i2c: E2 0B 00 69 7A 00 9F 36 1B 97 09 AC 17 39 90 00 EB [12:10:48]RAPDU: 9F 36 1B 97 09 AC 17 39 90 00 [12:10:48]wFMCommunicate OK [12:10:48]SAM_PROTO_SignData done [12:10:48]FM_MakeSignedData done [12:10:48]CreateOFDProtocolMessage [12:10:48]wFMCommunicate request_size=4 [12:10:48]MH_SAM_APDU [12:10:48]CAPDU: 80 11 00 00 [12:10:48]Write to MH i2c: E2 08 00 6A 7A 80 11 00 00 00 00 00 00 5E [12:10:48]Write i2c OK [12:10:48]MH_I2C_Read... [12:10:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:48]Read from MH i2c: E2 [12:10:48]MH_I2C_Read... [12:10:48]Read from MH i2c: E2 17 00 [12:10:48]MH_I2C_Read... [12:10:48]Read from MH i2c: E2 17 00 6A 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 AB [12:10:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:10:48]wFMCommunicate OK [12:10:48]CreateOFDProtocolMessage done [12:10:48]OFDSenderStorePacket 260660 [12:10:48]StoreOFDPacket docnum=260660 [12:10:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 2A DD 07 01 55 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 CB E4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 34 FA 03 00 35 04 06 00 6E AB CD B0 CD C6 9F 36 1B 97 09 AC 17 39 [12:10:48]CheckFolder [12:10:48]dirname=/storage/ofd_packets [12:10:48]CheckFolder done [12:10:48]ProducePacketName [12:10:48]name=ofd_packets/00260660 [12:10:48]NVStorageSaveData ofd_packets/00260660 [12:10:48]File name is /storage/ofd_packets/00260660 [12:10:48]Write 301 bytes [12:10:48]NVStorageSaveData done [12:10:48]OFDSenderStorePacket done [12:10:48]KKMCreateOFDPacket done [12:10:48]NVStorageSaveData kkm_last_timestamp [12:10:48]File name is /storage/kkm_last_timestamp [12:10:48]Write 4 bytes [12:10:48]NVStorageSaveData done [12:10:48]ExternCall_PrintAddStr [12:10:48]wPrintStart [12:10:48]Write to MH i2c: 01 00 00 6B 7A E5 [12:10:48]Write i2c OK [12:10:48]MH_I2C_Read... [12:10:48]Read from MH i2c: 01 [12:10:48]MH_I2C_Read... [12:10:48]Read from MH i2c: 01 07 00 [12:10:48]MH_I2C_Read... [12:10:48]Read from MH i2c: 01 07 00 6B 7A 00 00 00 00 00 FF 0F FA [12:10:48]RasterBufferAndPrint [12:10:48]line Счет N : (1)1036208 [12:10:48]line ИНН: 02508201610067 [12:10:48]line Контрольно-Кассовый Чек [12:10:48]line ПРОДАЖА [12:10:48]line ТРК (МРК, ГНК) : 13 [12:10:48]line Товар: 2710124500 [12:10:48]line Аи-95-К-5 [12:10:48]line 6.740 * 74.20 [12:10:48]line = 500.11 [12:10:48]line НДС 12% НСП 1% [12:10:48]line > о реализуемом товаре [12:10:48]line ИТОГО: 500.11 [12:10:48]line НСП 1% : 4.43 [12:10:48]line НДС 12% : 53.11 [12:10:48]line Наличными: 0.00 [12:10:48]line Безнал.: 500.11 [12:10:48]line Место: АЗС № 94 "Партнер Нефть" [12:10:48]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [12:10:48]line СНО: Общий режим [12:10:48]line Чек 218 18.08.2024 12:10 [12:10:48]line Смена: 449 ФФД: 1.0 [12:10:48]line ЗНМ: 0300000099 [12:10:48]line РНМ: 0000000000091865 [12:10:48]line Версия ККМ: 001 [12:10:48]line Платежная система: Бакай Банк [12:10:48]line ФМ: 0000000000871820 [12:10:48]line ФД: 260660 [12:10:48]line ФПД: 121684169379270 [12:10:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T121051&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260660&fm=121684169379270&tin=02508201610067®Number=0000000000091865&sum=50011 [12:10:48]OFD Sender: Processing packet 260660 [packets to send 192, broken 191] [12:10:48]ProducePacketName [12:10:48]name=ofd_packets/00260660 [12:10:48]OFD Sender: To server: pG, [12:10:48]CommunicateWithHost lk.salyk.kg:30040 [12:10:48]ConnectInit lk.salyk.kg [12:10:48]written 0, free lines is 4095 [12:10:48]Connected sock=10 [12:10: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 30 0F 01 00 00 2A DD 07 01 55 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 CB E4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 34 FA 03 00 35 04 06 00 6E AB CD B0 CD C6 9F 36 1B 97 09 AC 17 39 [12:10: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 30 4F 00 00 00 6A BC 47 00 D6 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 34 FA 03 00 F4 03 04 00 20 8E C1 66 B6 04 01 00 00 52 6B 6F 93 D5 AF 4C 51 [12:10:49]CommunicateWithHost err = 0 [12:10:49]CheckOFDResponse [12:10:49]1017 (14) - 77093643461234 [12:10:49]1041 (16) - 0000000000871820 [12:10:49]1040 (4) - 260660 [12:10:49]1012 (4) - 18.08.2024 06:01 [12:10:49]1206 (1) - 0 [12:10:49]OFD Sender: Remove packet 260660 [12:10:49]ProducePacketName [12:10:49]name=ofd_packets/00260660 [12:10:49]NVStorageDeleteData [12:10:49]Write to MH i2c: 01 00 00 95 7A 0F [12:10:49]Write i2c OK [12:10:49]MH_I2C_Read... [12:10:49]Read from MH i2c: 01 [12:10:49]MH_I2C_Read... [12:10:49]Read from MH i2c: 01 07 00 [12:10:49]MH_I2C_Read... [12:10:49]Read from MH i2c: 01 07 00 95 7A 00 00 00 00 00 89 0C AB [12:10:49]RasterBufferAndPrint [12:10:49]line [12:10:49]line [12:10:49]line [12:10:49]line [12:10:49]line [12:10:49]written 0, free lines is 3213 [12:10:49]MH_Cut [12:10:49]Write to MH i2c: D1 01 00 9C 7A 01 E8 [12:10:49]Write i2c OK [12:10:49]MH_I2C_Read... [12:10:49]Read from MH i2c: D1 [12:10:49]MH_I2C_Read... [12:10:49]Read from MH i2c: D1 01 00 [12:10:49]MH_I2C_Read... [12:10:49]Read from MH i2c: D1 01 00 9C 7A 00 E7 [12:10:49]Write to MH i2c: 01 00 00 9D 7A 17 [12:10:49]Write i2c OK [12:10:49]MH_I2C_Read... [12:10:49]OFD Sender: No OFD packet to send [12:10:50]*** Cut start [12:10:50]*** Purtial cut [12:10:50]*** Stage 1: CUTSNS_PIN = 1 [12:10:52]Read from MH i2c: 01 [12:10:52]MH_I2C_Read... [12:10:52]*** Stop cut motor [12:10:52]*** Cut end [12:10:52]Read from MH i2c: 01 07 00 [12:10:52]MH_I2C_Read... [12:10:52]Read from MH i2c: 01 07 00 9D 7A 00 00 00 00 00 FF 0F 2C [12:10:52]process_action close_receipt done [12:10:52]requested_data is exist [12:10:52]produce_requested_data [12:10:52]requested_item fm.sn is exist - process it [12:10:52]wFMCommunicate request_size=4 [12:10:52]MH_SAM_APDU [12:10:52]CAPDU: 80 11 00 00 [12:10:52]Write to MH i2c: E2 08 00 9E 7A 80 11 00 00 00 00 00 00 92 [12:10:52]Write i2c OK [12:10:52]MH_I2C_Read... [12:10:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:52]Read from MH i2c: E2 [12:10:52]MH_I2C_Read... [12:10:52]Read from MH i2c: E2 17 00 [12:10:52]MH_I2C_Read... [12:10:52]Read from MH i2c: E2 17 00 9E 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 DF [12:10:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:10:52]wFMCommunicate OK [12:10:52]requested_item fd.num is exist - process it [12:10:52]SAM_PROTO_GetFieldsCounters [12:10:52]wFMCommunicate request_size=4 [12:10:52]MH_SAM_APDU [12:10:52]CAPDU: 80 13 00 00 [12:10:52]Write to MH i2c: E2 08 00 9F 7A 80 13 00 00 00 00 00 00 95 [12:10:52]Write i2c OK [12:10:52]MH_I2C_Read... [12:10:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:52]Read from MH i2c: E2 [12:10:52]MH_I2C_Read... [12:10:52]Read from MH i2c: E2 62 00 [12:10:52]MH_I2C_Read... [12:10:52]Read from MH i2c: E2 62 00 9F 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 34 FA 03 00 0E 04 04 00 C1 01 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 35 [12:10: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 34 FA 03 00 0E 04 04 00 C1 01 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 [12:10:52]wFMCommunicate OK [12:10:52]SAM_PROTO_GetFieldsCounters done [12:10:52]requested_item shift.num is exist - process it [12:10:52]requested_item shift.opened is exist - process it [12:10:52]req_shift_opened [12:10:52]FM_GetShiftState [12:10:52]SAM_PROTO_GetShiftState [12:10:52]wFMCommunicate request_size=4 [12:10:52]MH_SAM_APDU [12:10:52]CAPDU: 80 13 01 00 [12:10:52]Write to MH i2c: E2 08 00 A0 7A 80 13 01 00 00 00 00 00 97 [12:10:52]Write i2c OK [12:10:52]MH_I2C_Read... [12:10:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:52]Read from MH i2c: E2 [12:10:52]MH_I2C_Read... [12:10:52]Read from MH i2c: E2 0E 00 [12:10:52]MH_I2C_Read... [12:10:52]Read from MH i2c: E2 0E 00 A0 7A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D4 [12:10:52]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:10:52]wFMCommunicate OK [12:10:52]SAM_PROTO_GetShiftState done [12:10:52]FM_GetShiftState done [12:10:52]req_shift_opened done [12:10:52]requested_item shift.open_date is exist - process it [12:10:52]req_shift_open_date [12:10:52]req_shift_open_date done [12:10:52]produce_requested_data done [12:10:52]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260660,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [12:10:52]process_action_free close_receipt [12:10:52]json_value_free [12:10:52]json_value_free done [12:10:52]process_json_proto returns [12:10:52]Send response to host [12:10:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260660,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [12:10:52]free response buf [12:10:52]execute_script done [12:10:52]execute_script returns [12:10:52]free content buf [12:10:52]Sock 9.Close socket [12:10:52]Sock 9.Thread stoped [12:10:53]accept exits with 7 [12:10:53]New connection [12:10:53]New thread 3066617188 created [12:10:53]Thread 3066473828 joined [12:10:53]Waiting for new connection... [12:10:53] Sock 7.Parse request [12:10:53]Sock 7.Check first char [12:10:53]Sock 7.First char is OK [12:10:53]request: POST /json_proto HTTP/1.0 [12:10:53]Method: POST [12:10:53]URL: /json_proto [12:10:53]Method is POST - this is cgi request [12:10:53]url: /json_proto [12:10:53]query_string will be loaded in cgi processing [12:10:53]execute_cgi json_proto POST (null) [12:10:53]execute_cgi path=json_proto method=POST [12:10:53]POST find Content-Length [12:10:53]Host: 172.17.55.133:8080 [12:10:53]Content-Length: 683 [12:10:53]Content-Type: application/json [12:10:53] [12:10:53]POST finish read [12:10:53]Found Content-Length = 683 [12:10:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036207", "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" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:53]execute_script... [12:10:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036207", "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" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:53]POST & json_proto [12:10:53]process_json_proto [12:10:53]json parsed OK: [12:10:53]protocol is kg_v1.0 [12:10:53]action value=close_receipt [12:10:53]process_action close_receipt [12:10:53]cmd_close_receipt [12:10:53]MH_GetDate [12:10:53]Write to MH i2c: F0 00 00 A1 7A 0A [12:10:53]Write i2c OK [12:10:53]MH_I2C_Read... [12:10:53]Read from MH i2c: F0 [12:10:53]MH_I2C_Read... [12:10:53]Read from MH i2c: F0 09 00 [12:10:53]MH_I2C_Read... [12:10:53]Read from MH i2c: F0 09 00 A1 7A 00 D1 E4 C1 66 34 48 D8 65 A8 [12:10:53]GetLastDocTimeStamp 1723983051 [12:10:53]current date 1723983057 [12:10:53]FM_GetShiftState [12:10:53]SAM_PROTO_GetShiftState [12:10:53]wFMCommunicate request_size=4 [12:10:53]MH_SAM_APDU [12:10:53]CAPDU: 80 13 01 00 [12:10:53]Write to MH i2c: E2 08 00 A2 7A 80 13 01 00 00 00 00 00 99 [12:10:53]Write i2c OK [12:10:53]MH_I2C_Read... [12:10:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:53]Read from MH i2c: E2 [12:10:53]MH_I2C_Read... [12:10:53]Read from MH i2c: E2 0E 00 [12:10:53]MH_I2C_Read... [12:10:53]Read from MH i2c: E2 0E 00 A2 7A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D6 [12:10:53]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:10:53]wFMCommunicate OK [12:10:53]SAM_PROTO_GetShiftState done [12:10:53]FM_GetShiftState done [12:10:53]opened in 1723940556 [12:10:53]opened+sec_in_day 1724026956 [12:10:53]quantity*price = 200043 [12:10:53]sum+1 = 200044 [12:10:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 219 18.08.2024 12:10 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260661 ФПД: 253198264215698 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T121057&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260661&fm=253198264215698&tin=02508201610067®Number=0000000000091865&sum=200000 [12:10:54]StoreToDocumentArchive [12:10:54]shift 449 fd 260661 [12:10:54]save to /storage/0449/doc_00260661 [12:10:54]save last doc name /storage/0449/doc_00260661 to /storage/kkm_last_doc_name [12:10:54]save OK [12:10:54]Clear old archive folders... [12:10:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:10:54]tlvbuf is 00453840 [12:10:54]SAM_PROTO_ClearQueue [12:10:54]wFMCommunicate request_size=4 [12:10:54]MH_SAM_APDU [12:10:54]CAPDU: 80 09 00 00 [12:10:54]Write to MH i2c: E2 08 00 AF 7A 80 09 00 00 00 00 00 00 9B [12:10:54]Write i2c OK [12:10:54]MH_I2C_Read... [12:10:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:54]Read from MH i2c: E2 [12:10:54]MH_I2C_Read... [12:10:54]Read from MH i2c: E2 03 00 [12:10:54]MH_I2C_Read... [12:10:54]Read from MH i2c: E2 03 00 AF 7A 00 90 00 9D [12:10:54]RAPDU: 90 00 [12:10:54]wFMCommunicate OK [12:10:54]SAM_PROTO_ClearQueue done [12:10:54]KKMCreateOFDPacket [12:10:54]OFDProtocolAddRootSTLVToBuf [12:10:54]FM_MakeSignedData [12:10:54]FM_MakeSignedData [12:10:54]SAM_PROTO_SignData [12:10:54]wFMCommunicate request_size=4 [12:10:54]MH_SAM_APDU [12:10:54]CAPDU: 80 0D 01 02 [12:10:54]Write to MH i2c: E2 08 00 B0 7A 80 0D 01 02 00 00 00 00 A3 [12:10:54]Write i2c OK [12:10:54]MH_I2C_Read... [12:10:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:54]Read from MH i2c: E2 [12:10:54]MH_I2C_Read... [12:10:54]Read from MH i2c: E2 03 00 [12:10:54]MH_I2C_Read... [12:10:54]Read from MH i2c: E2 03 00 B0 7A 00 90 00 9E [12:10:54]RAPDU: 90 00 [12:10:54]wFMCommunicate OK [12:10:54]wFMCommunicate request_size=255 [12:10:54]MH_SAM_APDU [12:10: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 D1 E4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 35 FA 03 00 35 04 06 00 E6 [12:10:54]Write to MH i2c: E2 02 01 B1 7A 80 0D 02 02 FA 00 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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 D1 E4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 35 FA 03 00 35 04 06 00 E6 00 00 69 [12:10:54]OFD Sender: No OFD packet to send [12:10:54]Write i2c OK [12:10:54]MH_I2C_Read... [12:10:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:55]Read from MH i2c: E2 [12:10:55]MH_I2C_Read... [12:10:55]Read from MH i2c: E2 03 00 [12:10:55]MH_I2C_Read... [12:10:55]Read from MH i2c: E2 03 00 B1 7A 00 90 00 9F [12:10:55]RAPDU: 90 00 [12:10:55]wFMCommunicate OK [12:10:55]wFMCommunicate request_size=10 [12:10:55]MH_SAM_APDU [12:10:55]CAPDU: 80 0D 02 02 05 48 50 98 A8 92 [12:10:55]Write to MH i2c: E2 0D 00 B2 7A 80 0D 02 02 05 00 48 50 98 A8 92 00 00 1A [12:10:55]Write i2c OK [12:10:55]MH_I2C_Read... [12:10:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:55]Read from MH i2c: E2 [12:10:55]MH_I2C_Read... [12:10:55]Read from MH i2c: E2 03 00 [12:10:55]MH_I2C_Read... [12:10:55]Read from MH i2c: E2 03 00 B2 7A 00 90 00 A0 [12:10:55]RAPDU: 90 00 [12:10:55]wFMCommunicate OK [12:10:55]wFMCommunicate request_size=4 [12:10:55]MH_SAM_APDU [12:10:55]CAPDU: 80 0D 03 02 [12:10:55]Write to MH i2c: E2 08 00 B3 7A 80 0D 03 02 00 00 00 00 A8 [12:10:55]Write i2c OK [12:10:55]MH_I2C_Read... [12:10:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:55]Read from MH i2c: E2 [12:10:55]MH_I2C_Read... [12:10:55]Read from MH i2c: E2 0B 00 [12:10:55]MH_I2C_Read... [12:10:55]Read from MH i2c: E2 0B 00 B3 7A 00 30 97 A2 87 54 94 F4 F7 90 00 6C [12:10:55]RAPDU: 30 97 A2 87 54 94 F4 F7 90 00 [12:10:55]wFMCommunicate OK [12:10:55]SAM_PROTO_SignData done [12:10:55]FM_MakeSignedData done [12:10:55]CreateOFDProtocolMessage [12:10:55]wFMCommunicate request_size=4 [12:10:55]MH_SAM_APDU [12:10:55]CAPDU: 80 11 00 00 [12:10:55]Write to MH i2c: E2 08 00 B4 7A 80 11 00 00 00 00 00 00 A8 [12:10:55]Write i2c OK [12:10:55]MH_I2C_Read... [12:10:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:55]Read from MH i2c: E2 [12:10:55]MH_I2C_Read... [12:10:55]Read from MH i2c: E2 17 00 [12:10:55]MH_I2C_Read... [12:10:55]Read from MH i2c: E2 17 00 B4 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F5 [12:10:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:10:55]wFMCommunicate OK [12:10:55]CreateOFDProtocolMessage done [12:10:55]OFDSenderStorePacket 260661 [12:10:55]StoreOFDPacket docnum=260661 [12:10:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 99 B9 07 01 8D 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 D1 E4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 35 FA 03 00 35 04 06 00 E6 48 50 98 A8 92 30 97 A2 87 54 94 F4 F7 [12:10:55]CheckFolder [12:10:55]dirname=/storage/ofd_packets [12:10:55]CheckFolder done [12:10:55]ProducePacketName [12:10:55]name=ofd_packets/00260661 [12:10:55]NVStorageSaveData ofd_packets/00260661 [12:10:55]File name is /storage/ofd_packets/00260661 [12:10:55]Write 301 bytes [12:10:55]NVStorageSaveData done [12:10:55]OFDSenderStorePacket done [12:10:55]KKMCreateOFDPacket done [12:10:55]NVStorageSaveData kkm_last_timestamp [12:10:55]File name is /storage/kkm_last_timestamp [12:10:55]Write 4 bytes [12:10:55]NVStorageSaveData done [12:10:55]ExternCall_PrintAddStr [12:10:55]wPrintStart [12:10:55]Write to MH i2c: 01 00 00 B5 7A 2F [12:10:55]Write i2c OK [12:10:55]MH_I2C_Read... [12:10:55]Read from MH i2c: 01 [12:10:55]MH_I2C_Read... [12:10:55]Read from MH i2c: 01 07 00 [12:10:55]MH_I2C_Read... [12:10:55]Read from MH i2c: 01 07 00 B5 7A 00 00 00 00 00 FF 0F 44 [12:10:55]RasterBufferAndPrint [12:10:55]line Счет N : (1)1036207 [12:10:55]line ИНН: 02508201610067 [12:10:55]line Контрольно-Кассовый Чек [12:10:55]line ПРОДАЖА [12:10:55]line ТРК (МРК, ГНК) : 23 [12:10:55]line Товар: 2710124500 [12:10:55]line Аи-95-К-5 [12:10:55]line 26.960 * 74.20 [12:10:55]line = 2000.43 [12:10:55]line НДС 12% НСП 1% [12:10:55]line > о реализуемом товаре [12:10:55]line ОКРУГЛЕНИЕ: -0.43 [12:10:55]line ИТОГО: 2000.00 [12:10:55]line Внесено: 2000.00 [12:10:55]line СДАЧА: 0.00 [12:10:55]line НСП 1% : 17.70 [12:10:55]line НДС 12% : 212.43 [12:10:55]line Наличными: 2000.00 [12:10:55]line Безнал.: 0.00 [12:10:55]line Место: АЗС № 94 "Партнер Нефть" [12:10:55]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [12:10:55]line СНО: Общий режим [12:10:55]line Чек 219 18.08.2024 12:10 [12:10:55]line Смена: 449 ФФД: 1.0 [12:10:55]line ЗНМ: 0300000099 [12:10:55]line РНМ: 0000000000091865 [12:10:55]line Версия ККМ: 001 [12:10:55]line ФМ: 0000000000871820 [12:10:55]line ФД: 260661 [12:10:55]line ФПД: 253198264215698 [12:10:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T121057&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260661&fm=253198264215698&tin=02508201610067®Number=0000000000091865&sum=200000 [12:10:55]written 0, free lines is 4095 [12:10:55]OFD Sender: Processing packet 260661 [packets to send 192, broken 191] [12:10:55]ProducePacketName [12:10:55]name=ofd_packets/00260661 [12:10:55]OFD Sender: To server: pG, [12:10:55]CommunicateWithHost lk.salyk.kg:30040 [12:10:55]ConnectInit lk.salyk.kg [12:10:55]Connected sock=10 [12:10: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 30 0F 01 00 00 99 B9 07 01 8D 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 D1 E4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 35 FA 03 00 35 04 06 00 E6 48 50 98 A8 92 30 97 A2 87 54 94 F4 F7 [12:10: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 30 4F 00 00 00 8E 26 47 00 5F 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 30 10 04 04 00 35 FA 03 00 F4 03 04 00 27 8E C1 66 B6 04 01 00 00 FD 10 68 90 E7 8F 61 C0 [12:10:55]CommunicateWithHost err = 0 [12:10:55]CheckOFDResponse [12:10:55]1017 (14) - 77093643461234 [12:10:55]1041 (16) - 0000000000871820 [12:10:55]1040 (4) - 260661 [12:10:55]1012 (4) - 18.08.2024 06:01 [12:10:55]1206 (1) - 0 [12:10:55]OFD Sender: Remove packet 260661 [12:10:55]ProducePacketName [12:10:55]name=ofd_packets/00260661 [12:10:55]NVStorageDeleteData [12:10:55]Write to MH i2c: 01 00 00 E0 7A 5A [12:10:55]Write i2c OK [12:10:55]MH_I2C_Read... [12:10:55]Read from MH i2c: 01 [12:10:55]MH_I2C_Read... [12:10:55]Read from MH i2c: 01 07 00 [12:10:55]MH_I2C_Read... [12:10:55]Read from MH i2c: 01 07 00 E0 7A 00 00 00 00 00 7C 0C E9 [12:10:55]RasterBufferAndPrint [12:10:55]line [12:10:55]line [12:10:55]line [12:10:55]line [12:10:55]line [12:10:55]written 0, free lines is 3202 [12:10:55]MH_Cut [12:10:55]Write to MH i2c: D1 01 00 E7 7A 01 33 [12:10:55]Write i2c OK [12:10:55]MH_I2C_Read... [12:10:55]Read from MH i2c: D1 [12:10:55]MH_I2C_Read... [12:10:55]Read from MH i2c: D1 01 00 [12:10:55]MH_I2C_Read... [12:10:55]Read from MH i2c: D1 01 00 E7 7A 00 32 [12:10:55]Write to MH i2c: 01 00 00 E8 7A 62 [12:10:55]Write i2c OK [12:10:55]MH_I2C_Read... [12:10:56]OFD Sender: No OFD packet to send [12:10:56]*** Cut start [12:10:56]*** Purtial cut [12:10:56]*** Stage 1: CUTSNS_PIN = 1 [12:10:58]Read from MH i2c: 01 [12:10:58]MH_I2C_Read... [12:10:58]*** Stop cut motor [12:10:58]*** Cut end [12:10:58]Read from MH i2c: 01 07 00 [12:10:58]MH_I2C_Read... [12:10:58]Read from MH i2c: 01 07 00 E8 7A 00 00 00 00 00 FF 0F 77 [12:10:58]process_action close_receipt done [12:10:58]requested_data is exist [12:10:58]produce_requested_data [12:10:58]requested_item fm.sn is exist - process it [12:10:58]wFMCommunicate request_size=4 [12:10:58]MH_SAM_APDU [12:10:58]CAPDU: 80 11 00 00 [12:10:58]Write to MH i2c: E2 08 00 E9 7A 80 11 00 00 00 00 00 00 DD [12:10:58]Write i2c OK [12:10:58]MH_I2C_Read... [12:10:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:58]Read from MH i2c: E2 [12:10:58]MH_I2C_Read... [12:10:58]Read from MH i2c: E2 17 00 [12:10:58]MH_I2C_Read... [12:10:58]Read from MH i2c: E2 17 00 E9 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 2A [12:10:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:10:58]wFMCommunicate OK [12:10:58]requested_item fd.num is exist - process it [12:10:58]SAM_PROTO_GetFieldsCounters [12:10:58]wFMCommunicate request_size=4 [12:10:58]MH_SAM_APDU [12:10:58]CAPDU: 80 13 00 00 [12:10:58]Write to MH i2c: E2 08 00 EA 7A 80 13 00 00 00 00 00 00 E0 [12:10:58]Write i2c OK [12:10:58]MH_I2C_Read... [12:10:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:59]Read from MH i2c: E2 [12:10:59]MH_I2C_Read... [12:10:59]Read from MH i2c: E2 62 00 [12:10:59]MH_I2C_Read... [12:10:59]Read from MH i2c: E2 62 00 EA 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 35 FA 03 00 0E 04 04 00 C1 01 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 84 [12:10: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 35 FA 03 00 0E 04 04 00 C1 01 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 [12:10:59]wFMCommunicate OK [12:10:59]SAM_PROTO_GetFieldsCounters done [12:10:59]requested_item shift.num is exist - process it [12:10:59]requested_item shift.opened is exist - process it [12:10:59]req_shift_opened [12:10:59]FM_GetShiftState [12:10:59]SAM_PROTO_GetShiftState [12:10:59]wFMCommunicate request_size=4 [12:10:59]MH_SAM_APDU [12:10:59]CAPDU: 80 13 01 00 [12:10:59]Write to MH i2c: E2 08 00 EB 7A 80 13 01 00 00 00 00 00 E2 [12:10:59]Write i2c OK [12:10:59]MH_I2C_Read... [12:10:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:59]Read from MH i2c: E2 [12:10:59]MH_I2C_Read... [12:10:59]Read from MH i2c: E2 0E 00 [12:10:59]MH_I2C_Read... [12:10:59]Read from MH i2c: E2 0E 00 EB 7A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 1F [12:10:59]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:10:59]wFMCommunicate OK [12:10:59]SAM_PROTO_GetShiftState done [12:10:59]FM_GetShiftState done [12:10:59]req_shift_opened done [12:10:59]requested_item shift.open_date is exist - process it [12:10:59]req_shift_open_date [12:10:59]req_shift_open_date done [12:10:59]produce_requested_data done [12:10:59]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260661,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [12:10:59]process_action_free close_receipt [12:10:59]json_value_free [12:10:59]json_value_free done [12:10:59]process_json_proto returns [12:10:59]Send response to host [12:10:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260661,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [12:10:59]free response buf [12:10:59]execute_script done [12:10:59]execute_script returns [12:10:59]free content buf [12:10:59]Sock 7.Close socket [12:10:59]Sock 7.Thread stoped [12:11:01]OFD Sender: No OFD packet to send [12:11:06]OFD Sender: No OFD packet to send [12:11:11]OFD Sender: No OFD packet to send [12:11:16]OFD Sender: No OFD packet to send [12:11:21]OFD Sender: No OFD packet to send [12:11:26]OFD Sender: No OFD packet to send [12:11:31]OFD Sender: No OFD packet to send [12:11:36]OFD Sender: No OFD packet to send [12:11:41]OFD Sender: No OFD packet to send [12:11:46]OFD Sender: No OFD packet to send [12:11:51]OFD Sender: No OFD packet to send [12:11:56]OFD Sender: No OFD packet to send [12:12:01]OFD Sender: No OFD packet to send [12:12:06]OFD Sender: No OFD packet to send [12:12:11]OFD Sender: No OFD packet to send [12:12:16]OFD Sender: No OFD packet to send [12:12:21]OFD Sender: No OFD packet to send [12:12:26]OFD Sender: No OFD packet to send [12:12:31]OFD Sender: No OFD packet to send [12:12:36]OFD Sender: No OFD packet to send [12:12:41]OFD Sender: No OFD packet to send [12:12:46]OFD Sender: No OFD packet to send [12:12:51]OFD Sender: No OFD packet to send [12:12:56]OFD Sender: No OFD packet to send [12:13:01]OFD Sender: No OFD packet to send [12:13:06]OFD Sender: No OFD packet to send [12:13:11]OFD Sender: No OFD packet to send [12:13:16]OFD Sender: No OFD packet to send [12:13:21]OFD Sender: No OFD packet to send [12:13:26]OFD Sender: No OFD packet to send [12:13:31]OFD Sender: No OFD packet to send [12:13:36]OFD Sender: No OFD packet to send [12:13:41]OFD Sender: No OFD packet to send [12:13:46]OFD Sender: No OFD packet to send [12:13:51]OFD Sender: No OFD packet to send [12:13:56]OFD Sender: No OFD packet to send [12:14:01]accept exits with 9 [12:14:01]New connection [12:14:01]New thread 3066473828 created [12:14:01]Thread 3066617188 joined [12:14:01]Waiting for new connection... [12:14:01] Sock 9.Parse request [12:14:01]Sock 9.Check first char [12:14:01]Sock 9.First char is OK [12:14:01]request: POST /json_proto HTTP/1.0 [12:14:01]Method: POST [12:14:01]URL: /json_proto [12:14:01]Method is POST - this is cgi request [12:14:01]url: /json_proto [12:14:01]query_string will be loaded in cgi processing [12:14:01]execute_cgi json_proto POST (null) [12:14:01]execute_cgi path=json_proto method=POST [12:14:01]POST find Content-Length [12:14:01]Host: 172.17.55.133:8080 [12:14:01]Content-Length: 678 [12:14:01]Content-Type: application/json [12:14:01] [12:14:01]POST finish read [12:14:01]Found Content-Length = 678 [12:14:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:01]execute_script... [12:14: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)1036209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:01]POST & json_proto [12:14:01]process_json_proto [12:14:01]json parsed OK: [12:14:01]protocol is kg_v1.0 [12:14:01]action value=close_receipt [12:14:01]process_action close_receipt [12:14:01]cmd_close_receipt [12:14:01]MH_GetDate [12:14:01]Write to MH i2c: F0 00 00 EC 7A 55 [12:14:01]Write i2c OK [12:14:01]MH_I2C_Read... [12:14:01]Read from MH i2c: F0 [12:14:01]MH_I2C_Read... [12:14:01]Read from MH i2c: F0 09 00 [12:14:01]MH_I2C_Read... [12:14:01]Read from MH i2c: F0 09 00 EC 7A 00 8D E5 C1 66 34 48 D8 65 B0 [12:14:01]GetLastDocTimeStamp 1723983057 [12:14:01]current date 1723983245 [12:14:01]FM_GetShiftState [12:14:01]SAM_PROTO_GetShiftState [12:14:01]wFMCommunicate request_size=4 [12:14:01]MH_SAM_APDU [12:14:01]CAPDU: 80 13 01 00 [12:14:01]Write to MH i2c: E2 08 00 ED 7A 80 13 01 00 00 00 00 00 E4 [12:14:01]Write i2c OK [12:14:01]MH_I2C_Read... [12:14:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:01]Read from MH i2c: E2 [12:14:01]MH_I2C_Read... [12:14:01]Read from MH i2c: E2 0E 00 [12:14:01]MH_I2C_Read... [12:14:01]Read from MH i2c: E2 0E 00 ED 7A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 21 [12:14:01]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:14:01]wFMCommunicate OK [12:14:01]SAM_PROTO_GetShiftState done [12:14:01]FM_GetShiftState done [12:14:01]opened in 1723940556 [12:14:01]opened+sec_in_day 1724026956 [12:14:01]quantity*price = 30035 [12:14:01]sum+1 = 30036 [12:14:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 220 18.08.2024 12:14 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260662 ФПД: 15282780840978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T121405&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260662&fm=15282780840978&tin=02508201610067®Number=0000000000091865&sum=30000 [12:14:02]StoreToDocumentArchive [12:14:02]shift 449 fd 260662 [12:14:02]save to /storage/0449/doc_00260662 [12:14:02]save last doc name /storage/0449/doc_00260662 to /storage/kkm_last_doc_name [12:14:02]save OK [12:14:02]Clear old archive folders... [12:14:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:14:02]tlvbuf is 003A0560 [12:14:02]SAM_PROTO_ClearQueue [12:14:02]wFMCommunicate request_size=4 [12:14:02]MH_SAM_APDU [12:14:02]CAPDU: 80 09 00 00 [12:14:02]Write to MH i2c: E2 08 00 FA 7A 80 09 00 00 00 00 00 00 E6 [12:14:02]Write i2c OK [12:14:02]MH_I2C_Read... [12:14:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:02]Read from MH i2c: E2 [12:14:02]MH_I2C_Read... [12:14:02]Read from MH i2c: E2 03 00 [12:14:02]MH_I2C_Read... [12:14:02]Read from MH i2c: E2 03 00 FA 7A 00 90 00 E8 [12:14:02]RAPDU: 90 00 [12:14:02]wFMCommunicate OK [12:14:02]SAM_PROTO_ClearQueue done [12:14:02]KKMCreateOFDPacket [12:14:02]OFDProtocolAddRootSTLVToBuf [12:14:02]FM_MakeSignedData [12:14:02]FM_MakeSignedData [12:14:02]SAM_PROTO_SignData [12:14:02]wFMCommunicate request_size=4 [12:14:02]MH_SAM_APDU [12:14:02]CAPDU: 80 0D 01 02 [12:14:02]Write to MH i2c: E2 08 00 FB 7A 80 0D 01 02 00 00 00 00 EE [12:14:02]Write i2c OK [12:14:02]MH_I2C_Read... [12:14:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:02]Read from MH i2c: E2 [12:14:02]MH_I2C_Read... [12:14:02]Read from MH i2c: E2 03 00 [12:14:02]MH_I2C_Read... [12:14:02]Read from MH i2c: E2 03 00 FB 7A 00 90 00 E9 [12:14:02]RAPDU: 90 00 [12:14:02]wFMCommunicate OK [12:14:02]wFMCommunicate request_size=255 [12:14:02]MH_SAM_APDU [12: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 8D E5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 36 FA 03 00 35 04 06 00 0D [12:14:02]Write to MH i2c: E2 02 01 FC 7A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 8D E5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 36 FA 03 00 35 04 06 00 0D 00 00 01 [12:14:02]Write i2c OK [12:14:02]MH_I2C_Read... [12:14:02]Read from MH i2c: E2 [12:14:02]MH_I2C_Read... [12:14:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:02]Read from MH i2c: E2 03 00 [12:14:02]MH_I2C_Read... [12:14:02]Read from MH i2c: E2 03 00 FC 7A 00 90 00 EA [12:14:02]RAPDU: 90 00 [12:14:02]wFMCommunicate OK [12:14:02]wFMCommunicate request_size=10 [12:14:02]MH_SAM_APDU [12:14:02]CAPDU: 80 0D 02 02 05 E6 4C B9 24 12 [12:14:02]Write to MH i2c: E2 0D 00 FD 7A 80 0D 02 02 05 00 E6 4C B9 24 12 00 00 1C [12:14:02]Write i2c OK [12:14:02]MH_I2C_Read... [12:14:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:02]Read from MH i2c: E2 [12:14:02]MH_I2C_Read... [12:14:02]Read from MH i2c: E2 03 00 [12:14:02]MH_I2C_Read... [12:14:02]Read from MH i2c: E2 03 00 FD 7A 00 90 00 EB [12:14:02]RAPDU: 90 00 [12:14:02]wFMCommunicate OK [12:14:02]wFMCommunicate request_size=4 [12:14:02]MH_SAM_APDU [12:14:02]CAPDU: 80 0D 03 02 [12:14:02]Write to MH i2c: E2 08 00 FE 7A 80 0D 03 02 00 00 00 00 F3 [12:14:02]Write i2c OK [12:14:02]MH_I2C_Read... [12:14:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:02]Read from MH i2c: E2 [12:14:02]MH_I2C_Read... [12:14:02]Read from MH i2c: E2 0B 00 [12:14:02]MH_I2C_Read... [12:14:02]Read from MH i2c: E2 0B 00 FE 7A 00 A9 71 72 5E D9 88 E1 19 90 00 39 [12:14:02]RAPDU: A9 71 72 5E D9 88 E1 19 90 00 [12:14:02]wFMCommunicate OK [12:14:02]SAM_PROTO_SignData done [12:14:02]FM_MakeSignedData done [12:14:02]CreateOFDProtocolMessage [12:14:02]wFMCommunicate request_size=4 [12:14:02]MH_SAM_APDU [12:14:02]CAPDU: 80 11 00 00 [12:14:02]Write to MH i2c: E2 08 00 FF 7A 80 11 00 00 00 00 00 00 F3 [12:14:02]Write i2c OK [12:14:02]MH_I2C_Read... [12:14:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:02]Read from MH i2c: E2 [12:14:02]MH_I2C_Read... [12:14:02]Read from MH i2c: E2 17 00 [12:14:02]MH_I2C_Read... [12:14:02]Read from MH i2c: E2 17 00 FF 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 40 [12:14:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:14:02]wFMCommunicate OK [12:14:02]CreateOFDProtocolMessage done [12:14:02]OFDSenderStorePacket 260662 [12:14:02]StoreOFDPacket docnum=260662 [12: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 30 0F 01 00 00 E4 46 07 01 58 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 8D E5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 36 FA 03 00 35 04 06 00 0D E6 4C B9 24 12 A9 71 72 5E D9 88 E1 19 [12:14:02]CheckFolder [12:14:02]dirname=/storage/ofd_packets [12:14:02]CheckFolder done [12:14:02]ProducePacketName [12:14:02]name=ofd_packets/00260662 [12:14:02]NVStorageSaveData ofd_packets/00260662 [12:14:02]File name is /storage/ofd_packets/00260662 [12:14:02]Write 301 bytes [12:14:02]NVStorageSaveData done [12:14:02]OFDSenderStorePacket done [12:14:02]KKMCreateOFDPacket done [12:14:02]NVStorageSaveData kkm_last_timestamp [12:14:02]File name is /storage/kkm_last_timestamp [12:14:02]Write 4 bytes [12:14:02]NVStorageSaveData done [12:14:02]ExternCall_PrintAddStr [12:14:02]wPrintStart [12:14:02]Write to MH i2c: 01 00 00 00 7B 7B [12:14:02]Write i2c OK [12:14:02]MH_I2C_Read... [12:14:02]Read from MH i2c: 01 [12:14:02]MH_I2C_Read... [12:14:02]Read from MH i2c: 01 07 00 [12:14:02]MH_I2C_Read... [12:14:02]Read from MH i2c: 01 07 00 00 7B 00 00 00 00 00 FF 0F 90 [12:14:02]RasterBufferAndPrint [12:14:02]line Счет N : (1)1036209 [12:14:02]line ИНН: 02508201610067 [12:14:02]line Контрольно-Кассовый Чек [12:14:02]line ПРОДАЖА [12:14:02]line ТРК (МРК, ГНК) : 22 [12:14:02]line Товар: 2710124130 [12:14:02]line Аи-92-К-5 [12:14:02]line 4.430 * 67.80 [12:14:02]line = 300.35 [12:14:02]line НДС 12% НСП 1% [12:14:02]line > о реализуемом товаре [12:14:02]line ОКРУГЛЕНИЕ: -0.35 [12:14:02]line ИТОГО: 300.00 [12:14:02]line Внесено: 300.00 [12:14:02]line СДАЧА: 0.00 [12:14:02]line НСП 1% : 2.66 [12:14:02]line НДС 12% : 31.90 [12:14:02]line Наличными: 300.00 [12:14:02]line Безнал.: 0.00 [12:14:02]line Место: АЗС № 94 "Партнер Нефть" [12:14:02]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [12:14:02]line СНО: Общий режим [12:14:02]line Чек 220 18.08.2024 12:14 [12:14:02]line Смена: 449 ФФД: 1.0 [12:14:02]line ЗНМ: 0300000099 [12:14:02]line РНМ: 0000000000091865 [12:14:02]line Версия ККМ: 001 [12:14:02]line ФМ: 0000000000871820 [12:14:02]line ФД: 260662 [12:14:02]line ФПД: 15282780840978 [12:14:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T121405&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260662&fm=15282780840978&tin=02508201610067®Number=0000000000091865&sum=30000 [12:14:03]written 0, free lines is 4095 [12:14:03]OFD Sender: Processing packet 260662 [packets to send 192, broken 191] [12:14:03]ProducePacketName [12:14:03]name=ofd_packets/00260662 [12:14:03]OFD Sender: To server: pG, [12:14:03]CommunicateWithHost lk.salyk.kg:30040 [12:14:03]ConnectInit lk.salyk.kg [12:14:03]Connected sock=10 [12:14: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 30 0F 01 00 00 E4 46 07 01 58 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 8D E5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 36 FA 03 00 35 04 06 00 0D E6 4C B9 24 12 A9 71 72 5E D9 88 E1 19 [12:14: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 30 4F 00 00 00 33 7A 47 00 33 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 36 FA 03 00 F4 03 04 00 E2 8E C1 66 B6 04 01 00 00 D3 36 F2 2E 93 35 B0 2E [12:14:03]CommunicateWithHost err = 0 [12:14:03]CheckOFDResponse [12:14:03]1017 (14) - 77093643461234 [12:14:03]1041 (16) - 0000000000871820 [12:14:03]1040 (4) - 260662 [12:14:03]1012 (4) - 18.08.2024 06:04 [12:14:03]1206 (1) - 0 [12:14:03]OFD Sender: Remove packet 260662 [12:14:03]ProducePacketName [12:14:03]name=ofd_packets/00260662 [12:14:03]NVStorageDeleteData [12:14:03]Write to MH i2c: 01 00 00 2B 7B A6 [12:14:03]Write i2c OK [12:14:03]MH_I2C_Read... [12:14:03]Read from MH i2c: 01 [12:14:03]MH_I2C_Read... [12:14:03]Read from MH i2c: 01 07 00 [12:14:03]MH_I2C_Read... [12:14:03]Read from MH i2c: 01 07 00 2B 7B 00 00 00 00 00 72 0C 2B [12:14:03]RasterBufferAndPrint [12:14:03]line [12:14:03]line [12:14:03]line [12:14:03]line [12:14:03]line [12:14:03]written 0, free lines is 3188 [12:14:03]MH_Cut [12:14:03]Write to MH i2c: D1 01 00 32 7B 01 7F [12:14:03]Write i2c OK [12:14:03]MH_I2C_Read... [12:14:03]Read from MH i2c: D1 [12:14:03]MH_I2C_Read... [12:14:03]Read from MH i2c: D1 01 00 [12:14:03]MH_I2C_Read... [12:14:03]Read from MH i2c: D1 01 00 32 7B 00 7E [12:14:03]Write to MH i2c: 01 00 00 33 7B AE [12:14:03]Write i2c OK [12:14:03]MH_I2C_Read... [12:14:03]OFD Sender: No OFD packet to send [12:14:04]*** Cut start [12:14:04]*** Purtial cut [12:14:04]*** Stage 1: CUTSNS_PIN = 1 [12:14:06]Read from MH i2c: 01 [12:14:06]MH_I2C_Read... [12:14:06]*** Stop cut motor [12:14:06]*** Cut end [12:14:06]Read from MH i2c: 01 07 00 [12:14:06]MH_I2C_Read... [12:14:06]Read from MH i2c: 01 07 00 33 7B 00 00 00 00 00 FF 0F C3 [12:14:06]process_action close_receipt done [12:14:06]requested_data is exist [12:14:06]produce_requested_data [12:14:06]requested_item fm.sn is exist - process it [12:14:06]wFMCommunicate request_size=4 [12:14:06]MH_SAM_APDU [12:14:06]CAPDU: 80 11 00 00 [12:14:06]Write to MH i2c: E2 08 00 34 7B 80 11 00 00 00 00 00 00 29 [12:14:06]Write i2c OK [12:14:06]MH_I2C_Read... [12:14:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:06]Read from MH i2c: E2 [12:14:06]MH_I2C_Read... [12:14:06]Read from MH i2c: E2 17 00 [12:14:06]MH_I2C_Read... [12:14:06]Read from MH i2c: E2 17 00 34 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 76 [12:14:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:14:06]wFMCommunicate OK [12:14:06]requested_item fd.num is exist - process it [12:14:06]SAM_PROTO_GetFieldsCounters [12:14:06]wFMCommunicate request_size=4 [12:14:06]MH_SAM_APDU [12:14:06]CAPDU: 80 13 00 00 [12:14:06]Write to MH i2c: E2 08 00 35 7B 80 13 00 00 00 00 00 00 2C [12:14:06]Write i2c OK [12:14:06]MH_I2C_Read... [12:14:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:06]Read from MH i2c: E2 [12:14:06]MH_I2C_Read... [12:14:06]Read from MH i2c: E2 62 00 [12:14:06]MH_I2C_Read... [12:14:06]Read from MH i2c: E2 62 00 35 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 36 FA 03 00 0E 04 04 00 C1 01 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 D4 [12:14: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 36 FA 03 00 0E 04 04 00 C1 01 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 [12:14:06]wFMCommunicate OK [12:14:06]SAM_PROTO_GetFieldsCounters done [12:14:06]requested_item shift.num is exist - process it [12:14:06]requested_item shift.opened is exist - process it [12:14:06]req_shift_opened [12:14:06]FM_GetShiftState [12:14:06]SAM_PROTO_GetShiftState [12:14:06]wFMCommunicate request_size=4 [12:14:06]MH_SAM_APDU [12:14:06]CAPDU: 80 13 01 00 [12:14:06]Write to MH i2c: E2 08 00 36 7B 80 13 01 00 00 00 00 00 2E [12:14:06]Write i2c OK [12:14:06]MH_I2C_Read... [12:14:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:06]Read from MH i2c: E2 [12:14:06]MH_I2C_Read... [12:14:06]Read from MH i2c: E2 0E 00 [12:14:06]MH_I2C_Read... [12:14:06]Read from MH i2c: E2 0E 00 36 7B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 6B [12:14:06]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:14:06]wFMCommunicate OK [12:14:06]SAM_PROTO_GetShiftState done [12:14:06]FM_GetShiftState done [12:14:06]req_shift_opened done [12:14:06]requested_item shift.open_date is exist - process it [12:14:06]req_shift_open_date [12:14:06]req_shift_open_date done [12:14:06]produce_requested_data done [12:14:06]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260662,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [12:14:06]process_action_free close_receipt [12:14:06]json_value_free [12:14:06]json_value_free done [12:14:06]process_json_proto returns [12:14:06]Send response to host [12:14:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260662,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [12:14:06]free response buf [12:14:06]execute_script done [12:14:06]execute_script returns [12:14:06]free content buf [12:14:06]Sock 9.Close socket [12:14:06]Sock 9.Thread stoped [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:23]OFD Sender: No OFD packet to send [12:15:28]OFD Sender: No OFD packet to send [12:15:33]OFD Sender: No OFD packet to send [12:15:39]OFD Sender: No OFD packet to send [12:15:44]OFD Sender: No OFD packet to send [12:15:49]OFD Sender: No OFD packet to send [12:15:54]OFD Sender: No OFD packet to send [12:15:59]OFD Sender: No OFD packet to send [12:16:04]OFD Sender: No OFD packet to send [12:16:09]OFD Sender: No OFD packet to send [12:16:14]OFD Sender: No OFD packet to send [12:16:19]OFD Sender: No OFD packet to send [12:16:20]accept exits with 7 [12:16:20]New connection [12:16:20]New thread 3066617188 created [12:16:20]Thread 3066473828 joined [12:16:20]Waiting for new connection... [12:16:20] Sock 7.Parse request [12:16:20]Sock 7.Check first char [12:16:20]Sock 7.First char is OK [12:16:20]request: POST /json_proto HTTP/1.0 [12:16:20]Method: POST [12:16:20]URL: /json_proto [12:16:20]Method is POST - this is cgi request [12:16:20]url: /json_proto [12:16:20]query_string will be loaded in cgi processing [12:16:20]execute_cgi json_proto POST (null) [12:16:20]execute_cgi path=json_proto method=POST [12:16:20]POST find Content-Length [12:16:20]Host: 172.17.55.133:8080 [12:16:20]Content-Length: 678 [12:16:20]Content-Type: application/json [12:16:20] [12:16:20]POST finish read [12:16:20]Found Content-Length = 678 [12:16:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.280, "sum" : 290.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:20]execute_script... [12:16:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.280, "sum" : 290.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:20]POST & json_proto [12:16:20]process_json_proto [12:16:20]json parsed OK: [12:16:20]protocol is kg_v1.0 [12:16:20]action value=close_receipt [12:16:20]process_action close_receipt [12:16:20]cmd_close_receipt [12:16:20]MH_GetDate [12:16:20]Write to MH i2c: F0 00 00 37 7B A1 [12:16:20]Write i2c OK [12:16:20]MH_I2C_Read... [12:16:20]Read from MH i2c: F0 [12:16:20]MH_I2C_Read... [12:16:20]Read from MH i2c: F0 09 00 [12:16:20]MH_I2C_Read... [12:16:20]Read from MH i2c: F0 09 00 37 7B 00 18 E6 C1 66 34 48 D8 65 88 [12:16:20]GetLastDocTimeStamp 1723983245 [12:16:20]current date 1723983384 [12:16:20]FM_GetShiftState [12:16:20]SAM_PROTO_GetShiftState [12:16:20]wFMCommunicate request_size=4 [12:16:20]MH_SAM_APDU [12:16:20]CAPDU: 80 13 01 00 [12:16:20]Write to MH i2c: E2 08 00 38 7B 80 13 01 00 00 00 00 00 30 [12:16:20]Write i2c OK [12:16:20]MH_I2C_Read... [12:16:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:20]Read from MH i2c: E2 [12:16:20]MH_I2C_Read... [12:16:20]Read from MH i2c: E2 0E 00 [12:16:20]MH_I2C_Read... [12:16:20]Read from MH i2c: E2 0E 00 38 7B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 6D [12:16:20]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:16:20]wFMCommunicate OK [12:16:20]SAM_PROTO_GetShiftState done [12:16:20]FM_GetShiftState done [12:16:20]opened in 1723940556 [12:16:20]opened+sec_in_day 1724026956 [12:16:20]quantity*price = 29018 [12:16:20]sum+1 = 29019 [12:16:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 290.00 Внесено: 290.00 СДАЧА: 0.00 НСП 1% : 2.57 НДС 12% : 30.82 Наличными: 290.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 221 18.08.2024 12:16 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260663 ФПД: 41751323227941 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T121624&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260663&fm=41751323227941&tin=02508201610067®Number=0000000000091865&sum=29000 [12:16:21]StoreToDocumentArchive [12:16:21]shift 449 fd 260663 [12:16:21]save to /storage/0449/doc_00260663 [12:16:21]save last doc name /storage/0449/doc_00260663 to /storage/kkm_last_doc_name [12:16:21]save OK [12:16:21]Clear old archive folders... [12:16:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:16:21]tlvbuf is 004A22F0 [12:16:21]SAM_PROTO_ClearQueue [12:16:21]wFMCommunicate request_size=4 [12:16:21]MH_SAM_APDU [12:16:21]CAPDU: 80 09 00 00 [12:16:21]Write to MH i2c: E2 08 00 45 7B 80 09 00 00 00 00 00 00 32 [12:16:21]Write i2c OK [12:16:21]MH_I2C_Read... [12:16:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:21]Read from MH i2c: E2 [12:16:21]MH_I2C_Read... [12:16:21]Read from MH i2c: E2 03 00 [12:16:21]MH_I2C_Read... [12:16:21]Read from MH i2c: E2 03 00 45 7B 00 90 00 34 [12:16:21]RAPDU: 90 00 [12:16:21]wFMCommunicate OK [12:16:21]SAM_PROTO_ClearQueue done [12:16:21]KKMCreateOFDPacket [12:16:21]OFDProtocolAddRootSTLVToBuf [12:16:21]FM_MakeSignedData [12:16:21]FM_MakeSignedData [12:16:21]SAM_PROTO_SignData [12:16:21]wFMCommunicate request_size=4 [12:16:21]MH_SAM_APDU [12:16:21]CAPDU: 80 0D 01 02 [12:16:21]Write to MH i2c: E2 08 00 46 7B 80 0D 01 02 00 00 00 00 3A [12:16:21]Write i2c OK [12:16:21]MH_I2C_Read... [12:16:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:21]Read from MH i2c: E2 [12:16:21]MH_I2C_Read... [12:16:21]Read from MH i2c: E2 03 00 [12:16:21]MH_I2C_Read... [12:16:21]Read from MH i2c: E2 03 00 46 7B 00 90 00 35 [12:16:21]RAPDU: 90 00 [12:16:21]wFMCommunicate OK [12:16:21]wFMCommunicate request_size=255 [12:16:21]MH_SAM_APDU [12:16:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 10 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 5A 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 18 E6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 37 FA 03 00 35 04 06 00 25 [12:16:21]Write to MH i2c: E2 02 01 47 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 10 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 5A 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 18 E6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 37 FA 03 00 35 04 06 00 25 00 00 12 [12:16:21]Write i2c OK [12:16:21]MH_I2C_Read... [12:16:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:21]Read from MH i2c: E2 [12:16:21]MH_I2C_Read... [12:16:21]Read from MH i2c: E2 03 00 [12:16:21]MH_I2C_Read... [12:16:21]Read from MH i2c: E2 03 00 47 7B 00 90 00 36 [12:16:21]RAPDU: 90 00 [12:16:21]wFMCommunicate OK [12:16:21]wFMCommunicate request_size=10 [12:16:21]MH_SAM_APDU [12:16:21]CAPDU: 80 0D 02 02 05 F8 FC CA 37 25 [12:16:21]Write to MH i2c: E2 0D 00 48 7B 80 0D 02 02 05 00 F8 FC CA 37 25 00 00 61 [12:16:21]Write i2c OK [12:16:21]MH_I2C_Read... [12:16:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:21]Read from MH i2c: E2 [12:16:21]MH_I2C_Read... [12:16:21]Read from MH i2c: E2 03 00 [12:16:21]MH_I2C_Read... [12:16:21]Read from MH i2c: E2 03 00 48 7B 00 90 00 37 [12:16:21]RAPDU: 90 00 [12:16:21]wFMCommunicate OK [12:16:21]wFMCommunicate request_size=4 [12:16:21]MH_SAM_APDU [12:16:21]CAPDU: 80 0D 03 02 [12:16:21]Write to MH i2c: E2 08 00 49 7B 80 0D 03 02 00 00 00 00 3F [12:16:21]Write i2c OK [12:16:21]MH_I2C_Read... [12:16:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:21]Read from MH i2c: E2 [12:16:21]MH_I2C_Read... [12:16:21]Read from MH i2c: E2 0B 00 [12:16:21]MH_I2C_Read... [12:16:21]Read from MH i2c: E2 0B 00 49 7B 00 D0 4F 32 5A 6A F5 1D 7D 90 00 E4 [12:16:21]RAPDU: D0 4F 32 5A 6A F5 1D 7D 90 00 [12:16:21]wFMCommunicate OK [12:16:21]SAM_PROTO_SignData done [12:16:21]FM_MakeSignedData done [12:16:21]CreateOFDProtocolMessage [12:16:21]wFMCommunicate request_size=4 [12:16:21]MH_SAM_APDU [12:16:21]CAPDU: 80 11 00 00 [12:16:21]Write to MH i2c: E2 08 00 4A 7B 80 11 00 00 00 00 00 00 3F [12:16:21]Write i2c OK [12:16:21]MH_I2C_Read... [12:16:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:21]Read from MH i2c: E2 [12:16:21]MH_I2C_Read... [12:16:21]Read from MH i2c: E2 17 00 [12:16:21]MH_I2C_Read... [12:16:21]Read from MH i2c: E2 17 00 4A 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 8C [12:16:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:16:21]wFMCommunicate OK [12:16:21]CreateOFDProtocolMessage done [12:16:21]OFDSenderStorePacket 260663 [12:16:21]StoreOFDPacket docnum=260663 [12:16:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 74 F2 07 01 E4 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 10 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 5A 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 18 E6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 37 FA 03 00 35 04 06 00 25 F8 FC CA 37 25 D0 4F 32 5A 6A F5 1D 7D [12:16:21]CheckFolder [12:16:21]dirname=/storage/ofd_packets [12:16:21]CheckFolder done [12:16:21]ProducePacketName [12:16:21]name=ofd_packets/00260663 [12:16:21]NVStorageSaveData ofd_packets/00260663 [12:16:21]File name is /storage/ofd_packets/00260663 [12:16:21]Write 301 bytes [12:16:21]NVStorageSaveData done [12:16:21]OFDSenderStorePacket done [12:16:21]KKMCreateOFDPacket done [12:16:21]NVStorageSaveData kkm_last_timestamp [12:16:21]File name is /storage/kkm_last_timestamp [12:16:21]Write 4 bytes [12:16:21]NVStorageSaveData done [12:16:21]ExternCall_PrintAddStr [12:16:21]wPrintStart [12:16:21]Write to MH i2c: 01 00 00 4B 7B C6 [12:16:21]Write i2c OK [12:16:21]MH_I2C_Read... [12:16:21]Read from MH i2c: 01 [12:16:21]MH_I2C_Read... [12:16:21]Read from MH i2c: 01 07 00 [12:16:21]MH_I2C_Read... [12:16:21]Read from MH i2c: 01 07 00 4B 7B 00 00 00 00 00 FF 0F DB [12:16:21]RasterBufferAndPrint [12:16:21]line Счет N : (1)1036210 [12:16:21]line ИНН: 02508201610067 [12:16:21]line Контрольно-Кассовый Чек [12:16:21]line ПРОДАЖА [12:16:21]line ТРК (МРК, ГНК) : 22 [12:16:21]line Товар: 2710124130 [12:16:21]line Аи-92-К-5 [12:16:21]line 4.280 * 67.80 [12:16:21]line = 290.18 [12:16:21]line НДС 12% НСП 1% [12:16:21]line > о реализуемом товаре [12:16:21]line ОКРУГЛЕНИЕ: -0.18 [12:16:21]line ИТОГО: 290.00 [12:16:21]line Внесено: 290.00 [12:16:21]line СДАЧА: 0.00 [12:16:21]line НСП 1% : 2.57 [12:16:21]line НДС 12% : 30.82 [12:16:21]line Наличными: 290.00 [12:16:21]line Безнал.: 0.00 [12:16:21]line Место: АЗС № 94 "Партнер Нефть" [12:16:21]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [12:16:21]line СНО: Общий режим [12:16:21]line Чек 221 18.08.2024 12:16 [12:16:21]line Смена: 449 ФФД: 1.0 [12:16:21]line ЗНМ: 0300000099 [12:16:21]line РНМ: 0000000000091865 [12:16:21]line Версия ККМ: 001 [12:16:21]line ФМ: 0000000000871820 [12:16:21]line ФД: 260663 [12:16:21]line ФПД: 41751323227941 [12:16:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T121624&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260663&fm=41751323227941&tin=02508201610067®Number=0000000000091865&sum=29000 [12:16:21]written 0, free lines is 4095 [12:16:22]OFD Sender: Processing packet 260663 [packets to send 192, broken 191] [12:16:22]ProducePacketName [12:16:22]name=ofd_packets/00260663 [12:16:22]OFD Sender: To server: pG, [12:16:22]CommunicateWithHost lk.salyk.kg:30040 [12:16:22]ConnectInit lk.salyk.kg [12:16:22]Connected sock=10 [12:16: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 30 0F 01 00 00 74 F2 07 01 E4 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 10 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 5A 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 18 E6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 37 FA 03 00 35 04 06 00 25 F8 FC CA 37 25 D0 4F 32 5A 6A F5 1D 7D [12:16: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 30 4F 00 00 00 30 A4 47 00 9C DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 37 FA 03 00 F4 03 04 00 6D 8F C1 66 B6 04 01 00 00 57 20 1A 33 94 E8 38 9D [12:16:22]CommunicateWithHost err = 0 [12:16:22]CheckOFDResponse [12:16:22]1017 (14) - 77093643461234 [12:16:22]1041 (16) - 0000000000871820 [12:16:22]1040 (4) - 260663 [12:16:22]1012 (4) - 18.08.2024 06:06 [12:16:22]1206 (1) - 0 [12:16:22]OFD Sender: Remove packet 260663 [12:16:22]ProducePacketName [12:16:22]name=ofd_packets/00260663 [12:16:22]NVStorageDeleteData [12:16:22]Write to MH i2c: 01 00 00 76 7B F1 [12:16:22]Write i2c OK [12:16:22]MH_I2C_Read... [12:16:22]Read from MH i2c: 01 [12:16:22]MH_I2C_Read... [12:16:22]Read from MH i2c: 01 07 00 [12:16:22]MH_I2C_Read... [12:16:22]Read from MH i2c: 01 07 00 76 7B 00 00 00 00 00 6E 0C 72 [12:16:22]RasterBufferAndPrint [12:16:22]line [12:16:22]line [12:16:22]line [12:16:22]line [12:16:22]line [12:16:22]written 0, free lines is 3186 [12:16:22]MH_Cut [12:16:22]Write to MH i2c: D1 01 00 7D 7B 01 CA [12:16:22]Write i2c OK [12:16:22]MH_I2C_Read... [12:16:22]Read from MH i2c: D1 [12:16:22]MH_I2C_Read... [12:16:22]Read from MH i2c: D1 01 00 [12:16:22]MH_I2C_Read... [12:16:22]Read from MH i2c: D1 01 00 7D 7B 00 C9 [12:16:22]Write to MH i2c: 01 00 00 7E 7B F9 [12:16:22]Write i2c OK [12:16:22]MH_I2C_Read... [12:16:22]OFD Sender: No OFD packet to send [12:16:23]*** Cut start [12:16:23]*** Purtial cut [12:16:23]*** Stage 1: CUTSNS_PIN = 1 [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 7E 7B 00 00 00 00 00 FF 0F 0E [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 7F 7B 80 11 00 00 00 00 00 00 74 [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 7F 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C1 [12:16:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 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 80 7B 80 13 00 00 00 00 00 00 77 [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 80 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 37 FA 03 00 0E 04 04 00 C1 01 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 23 [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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 37 FA 03 00 0E 04 04 00 C1 01 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 [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 81 7B 80 13 01 00 00 00 00 00 79 [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 81 7B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B6 [12:16:25]RAPDU: 09 00 01 CC 3E C1 66 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":"0000000000871820","fd.num":260663,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [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":"0000000000871820","fd.num":260663,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [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 7.Close socket [12:16:25]Sock 7.Thread stoped [12:16:27]OFD Sender: No OFD packet to send [12:16:32]OFD Sender: No OFD packet to send [12:16:37]OFD Sender: No OFD packet to send [12:16:42]OFD Sender: No OFD packet to send [12:16:47]OFD Sender: No OFD packet to send [12:16:52]OFD Sender: No OFD packet to send [12:16:57]OFD Sender: No OFD packet to send [12:17:02]OFD Sender: No OFD packet to send [12:17:07]OFD Sender: No OFD packet to send [12:17:12]OFD Sender: No OFD packet to send [12:17:17]OFD Sender: No OFD packet to send [12:17:22]OFD Sender: No OFD packet to send [12:17:27]OFD Sender: No OFD packet to send [12:17:32]OFD Sender: No OFD packet to send [12:17:37]OFD Sender: No OFD packet to send [12:17:42]OFD Sender: No OFD packet to send [12:17:47]OFD Sender: No OFD packet to send [12:17:52]OFD Sender: No OFD packet to send [12:17:57]OFD Sender: No OFD packet to send [12:18:02]OFD Sender: No OFD packet to send [12:18:07]OFD Sender: No OFD packet to send [12:18:12]OFD Sender: No OFD packet to send [12:18:17]OFD Sender: No OFD packet to send [12:18:22]OFD Sender: No OFD packet to send [12:18:27]OFD Sender: No OFD packet to send [12:18:29]accept exits with 9 [12:18:29]New connection [12:18:29]New thread 3066473828 created [12:18:29]Thread 3066617188 joined [12:18:29]Waiting for new connection... [12:18:29] Sock 9.Parse request [12:18:29]Sock 9.Check first char [12:18:29]Sock 9.First char is OK [12:18:29]request: POST /json_proto HTTP/1.0 [12:18:29]Method: POST [12:18:29]URL: /json_proto [12:18:29]Method is POST - this is cgi request [12:18:29]url: /json_proto [12:18:29]query_string will be loaded in cgi processing [12:18:29]execute_cgi json_proto POST (null) [12:18:29]execute_cgi path=json_proto method=POST [12:18:29]POST find Content-Length [12:18:29]Host: 172.17.55.133:8080 [12:18:29]Content-Length: 678 [12:18:29]Content-Type: application/json [12:18:29] [12:18:29]POST finish read [12:18:29]Found Content-Length = 678 [12:18:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.120, "sum" : 550.54, "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" ] } } [12:18:29]execute_script... [12:18: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)1036212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.120, "sum" : 550.54, "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" ] } } [12:18:29]POST & json_proto [12:18:29]process_json_proto [12:18:29]json parsed OK: [12:18:29]protocol is kg_v1.0 [12:18:29]action value=close_receipt [12:18:29]process_action close_receipt [12:18:29]cmd_close_receipt [12:18:29]MH_GetDate [12:18:29]Write to MH i2c: F0 00 00 82 7B EC [12:18:29]Write i2c OK [12:18:29]MH_I2C_Read... [12:18:29]Read from MH i2c: F0 [12:18:29]MH_I2C_Read... [12:18:29]Read from MH i2c: F0 09 00 [12:18:29]MH_I2C_Read... [12:18:29]Read from MH i2c: F0 09 00 82 7B 00 99 E6 C1 66 34 48 D8 65 54 [12:18:29]GetLastDocTimeStamp 1723983384 [12:18:29]current date 1723983513 [12:18:29]FM_GetShiftState [12:18:29]SAM_PROTO_GetShiftState [12:18:29]wFMCommunicate request_size=4 [12:18:29]MH_SAM_APDU [12:18:29]CAPDU: 80 13 01 00 [12:18:29]Write to MH i2c: E2 08 00 83 7B 80 13 01 00 00 00 00 00 7B [12:18:29]Write i2c OK [12:18:29]MH_I2C_Read... [12:18:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:29]Read from MH i2c: E2 [12:18:29]MH_I2C_Read... [12:18:29]Read from MH i2c: E2 0E 00 [12:18:29]MH_I2C_Read... [12:18:29]Read from MH i2c: E2 0E 00 83 7B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B8 [12:18:29]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:18:29]wFMCommunicate OK [12:18:29]SAM_PROTO_GetShiftState done [12:18:29]FM_GetShiftState done [12:18:29]opened in 1723940556 [12:18:29]opened+sec_in_day 1724026956 [12:18:29]quantity*price = 55053 [12:18:29]sum+1 = 55055 [12:18:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.46 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 222 18.08.2024 12:18 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260664 ФПД: 7270364197115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T121833&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260664&fm=7270364197115&tin=02508201610067®Number=0000000000091865&sum=55000 [12:18:30]StoreToDocumentArchive [12:18:30]shift 449 fd 260664 [12:18:30]save to /storage/0449/doc_00260664 [12:18:30]save last doc name /storage/0449/doc_00260664 to /storage/kkm_last_doc_name [12:18:30]save OK [12:18:30]Clear old archive folders... [12:18:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:18:30]tlvbuf is 0041F9C0 [12:18:30]SAM_PROTO_ClearQueue [12:18:30]wFMCommunicate request_size=4 [12:18:30]MH_SAM_APDU [12:18:30]CAPDU: 80 09 00 00 [12:18:30]Write to MH i2c: E2 08 00 90 7B 80 09 00 00 00 00 00 00 7D [12:18:30]Write i2c OK [12:18:30]MH_I2C_Read... [12:18:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:30]Read from MH i2c: E2 [12:18:30]MH_I2C_Read... [12:18:30]Read from MH i2c: E2 03 00 [12:18:30]MH_I2C_Read... [12:18:30]Read from MH i2c: E2 03 00 90 7B 00 90 00 7F [12:18:30]RAPDU: 90 00 [12:18:30]wFMCommunicate OK [12:18:30]SAM_PROTO_ClearQueue done [12:18:30]KKMCreateOFDPacket [12:18:30]OFDProtocolAddRootSTLVToBuf [12:18:30]FM_MakeSignedData [12:18:30]FM_MakeSignedData [12:18:30]SAM_PROTO_SignData [12:18:30]wFMCommunicate request_size=4 [12:18:30]MH_SAM_APDU [12:18:30]CAPDU: 80 0D 01 02 [12:18:30]Write to MH i2c: E2 08 00 91 7B 80 0D 01 02 00 00 00 00 85 [12:18:30]Write i2c OK [12:18:30]MH_I2C_Read... [12:18:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:30]Read from MH i2c: E2 [12:18:30]MH_I2C_Read... [12:18:30]Read from MH i2c: E2 03 00 [12:18:30]MH_I2C_Read... [12:18:30]Read from MH i2c: E2 03 00 91 7B 00 90 00 80 [12:18:30]RAPDU: 90 00 [12:18:30]wFMCommunicate OK [12:18:30]wFMCommunicate request_size=255 [12:18:30]MH_SAM_APDU [12:18:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0E D7 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 D6 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 DE 00 00 00 F4 03 04 00 99 E6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 38 FA 03 00 35 04 06 00 06 [12:18:30]Write to MH i2c: E2 02 01 92 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0E D7 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 D6 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 DE 00 00 00 F4 03 04 00 99 E6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 38 FA 03 00 35 04 06 00 06 00 00 90 [12:18:30]Write i2c OK [12:18:30]MH_I2C_Read... [12:18:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:30]Read from MH i2c: E2 [12:18:30]MH_I2C_Read... [12:18:30]Read from MH i2c: E2 03 00 [12:18:30]MH_I2C_Read... [12:18:30]Read from MH i2c: E2 03 00 92 7B 00 90 00 81 [12:18:30]RAPDU: 90 00 [12:18:30]wFMCommunicate OK [12:18:30]wFMCommunicate request_size=10 [12:18:30]MH_SAM_APDU [12:18:30]CAPDU: 80 0D 02 02 05 9C C3 79 B0 FB [12:18:30]Write to MH i2c: E2 0D 00 93 7B 80 0D 02 02 05 00 9C C3 79 B0 FB 00 00 15 [12:18:30]Write i2c OK [12:18:30]MH_I2C_Read... [12:18:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:30]Read from MH i2c: E2 [12:18:30]MH_I2C_Read... [12:18:30]Read from MH i2c: E2 03 00 [12:18:30]MH_I2C_Read... [12:18:30]Read from MH i2c: E2 03 00 93 7B 00 90 00 82 [12:18:30]RAPDU: 90 00 [12:18:30]wFMCommunicate OK [12:18:30]wFMCommunicate request_size=4 [12:18:30]MH_SAM_APDU [12:18:30]CAPDU: 80 0D 03 02 [12:18:30]Write to MH i2c: E2 08 00 94 7B 80 0D 03 02 00 00 00 00 8A [12:18:30]Write i2c OK [12:18:30]MH_I2C_Read... [12:18:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:30]Read from MH i2c: E2 [12:18:30]MH_I2C_Read... [12:18:30]Read from MH i2c: E2 0B 00 [12:18:30]MH_I2C_Read... [12:18:30]Read from MH i2c: E2 0B 00 94 7B 00 91 79 53 9E D3 93 72 94 90 00 F2 [12:18:30]RAPDU: 91 79 53 9E D3 93 72 94 90 00 [12:18:30]wFMCommunicate OK [12:18:30]SAM_PROTO_SignData done [12:18:30]FM_MakeSignedData done [12:18:30]CreateOFDProtocolMessage [12:18:30]wFMCommunicate request_size=4 [12:18:30]MH_SAM_APDU [12:18:30]CAPDU: 80 11 00 00 [12:18:30]Write to MH i2c: E2 08 00 95 7B 80 11 00 00 00 00 00 00 8A [12:18:30]Write i2c OK [12:18:30]MH_I2C_Read... [12:18:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:30]Read from MH i2c: E2 [12:18:30]MH_I2C_Read... [12:18:30]Read from MH i2c: E2 17 00 [12:18:30]MH_I2C_Read... [12:18:30]Read from MH i2c: E2 17 00 95 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D7 [12:18:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:18:30]wFMCommunicate OK [12:18:30]CreateOFDProtocolMessage done [12:18:30]OFDSenderStorePacket 260664 [12:18:30]StoreOFDPacket docnum=260664 [12:18:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 E0 D1 07 01 55 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 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0E D7 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 D6 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 DE 00 00 00 F4 03 04 00 99 E6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 38 FA 03 00 35 04 06 00 06 9C C3 79 B0 FB 91 79 53 9E D3 93 72 94 [12:18:30]CheckFolder [12:18:30]dirname=/storage/ofd_packets [12:18:30]CheckFolder done [12:18:30]ProducePacketName [12:18:30]name=ofd_packets/00260664 [12:18:30]NVStorageSaveData ofd_packets/00260664 [12:18:30]File name is /storage/ofd_packets/00260664 [12:18:30]Write 301 bytes [12:18:30]NVStorageSaveData done [12:18:30]OFDSenderStorePacket done [12:18:30]KKMCreateOFDPacket done [12:18:30]NVStorageSaveData kkm_last_timestamp [12:18:30]File name is /storage/kkm_last_timestamp [12:18:30]Write 4 bytes [12:18:30]NVStorageSaveData done [12:18:30]ExternCall_PrintAddStr [12:18:30]wPrintStart [12:18:30]Write to MH i2c: 01 00 00 96 7B 11 [12:18:30]Write i2c OK [12:18:30]MH_I2C_Read... [12:18:30]Read from MH i2c: 01 [12:18:30]MH_I2C_Read... [12:18:30]Read from MH i2c: 01 07 00 [12:18:30]MH_I2C_Read... [12:18:30]Read from MH i2c: 01 07 00 96 7B 00 00 00 00 00 FF 0F 26 [12:18:30]RasterBufferAndPrint [12:18:30]line Счет N : (1)1036212 [12:18:30]line ИНН: 02508201610067 [12:18:30]line Контрольно-Кассовый Чек [12:18:30]line ПРОДАЖА [12:18:30]line ТРК (МРК, ГНК) : 12 [12:18:30]line Товар: 2710124130 [12:18:30]line Аи-92-К-5 [12:18:30]line 8.120 * 67.80 [12:18:30]line = 550.54 [12:18:30]line НДС 12% НСП 1% [12:18:30]line > о реализуемом товаре [12:18:30]line ОКРУГЛЕНИЕ: -0.54 [12:18:30]line ИТОГО: 550.00 [12:18:30]line Внесено: 550.00 [12:18:30]line СДАЧА: 0.00 [12:18:30]line НСП 1% : 4.87 [12:18:30]line НДС 12% : 58.46 [12:18:30]line Наличными: 550.00 [12:18:30]line Безнал.: 0.00 [12:18:30]line Место: АЗС № 94 "Партнер Нефть" [12:18:30]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [12:18:30]line СНО: Общий режим [12:18:30]line Чек 222 18.08.2024 12:18 [12:18:30]line Смена: 449 ФФД: 1.0 [12:18:30]line ЗНМ: 0300000099 [12:18:30]line РНМ: 0000000000091865 [12:18:30]line Версия ККМ: 001 [12:18:30]line ФМ: 0000000000871820 [12:18:30]line ФД: 260664 [12:18:30]line ФПД: 7270364197115 [12:18:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T121833&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260664&fm=7270364197115&tin=02508201610067®Number=0000000000091865&sum=55000 [12:18:31]OFD Sender: Processing packet 260664 [packets to send 192, broken 191] [12:18:31]ProducePacketName [12:18:31]name=ofd_packets/00260664 [12:18:31]OFD Sender: To server: pG, [12:18:31]CommunicateWithHost lk.salyk.kg:30040 [12:18:31]ConnectInit lk.salyk.kg [12:18:31]written 0, free lines is 4095 [12:18:31]Connected sock=10 [12:18: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 30 0F 01 00 00 E0 D1 07 01 55 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 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0E D7 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 D6 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 DE 00 00 00 F4 03 04 00 99 E6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 38 FA 03 00 35 04 06 00 06 9C C3 79 B0 FB 91 79 53 9E D3 93 72 94 [12:18: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 30 4F 00 00 00 EA F5 47 00 2E 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 30 10 04 04 00 38 FA 03 00 F4 03 04 00 EF 8F C1 66 B6 04 01 00 00 B4 AF 7D 99 2C 51 63 30 [12:18:31]CommunicateWithHost err = 0 [12:18:31]CheckOFDResponse [12:18:31]1017 (14) - 77093643461234 [12:18:31]1041 (16) - 0000000000871820 [12:18:31]1040 (4) - 260664 [12:18:31]1012 (4) - 18.08.2024 06:08 [12:18:31]1206 (1) - 0 [12:18:31]OFD Sender: Remove packet 260664 [12:18:31]ProducePacketName [12:18:31]name=ofd_packets/00260664 [12:18:31]NVStorageDeleteData [12:18:31]Write to MH i2c: 01 00 00 C1 7B 3C [12:18:31]Write i2c OK [12:18:31]MH_I2C_Read... [12:18:31]Read from MH i2c: 01 [12:18:31]MH_I2C_Read... [12:18:31]Read from MH i2c: 01 07 00 [12:18:31]MH_I2C_Read... [12:18:31]Read from MH i2c: 01 07 00 C1 7B 00 00 00 00 00 67 0C B6 [12:18:31]RasterBufferAndPrint [12:18:31]line [12:18:31]line [12:18:31]line [12:18:31]line [12:18:31]line [12:18:31]written 0, free lines is 3178 [12:18:31]MH_Cut [12:18:31]Write to MH i2c: D1 01 00 C8 7B 01 15 [12:18:31]Write i2c OK [12:18:31]MH_I2C_Read... [12:18:31]Read from MH i2c: D1 [12:18:31]MH_I2C_Read... [12:18:31]Read from MH i2c: D1 01 00 [12:18:31]MH_I2C_Read... [12:18:31]Read from MH i2c: D1 01 00 C8 7B 00 14 [12:18:31]Write to MH i2c: 01 00 00 C9 7B 44 [12:18:31]Write i2c OK [12:18:31]MH_I2C_Read... [12:18:31]OFD Sender: No OFD packet to send [12:18:32]*** Cut start [12:18:32]*** Purtial cut [12:18:32]*** Stage 1: CUTSNS_PIN = 1 [12:18:34]Read from MH i2c: 01 [12:18:34]MH_I2C_Read... [12:18:34]*** Stop cut motor [12:18:34]*** Cut end [12:18:34]Read from MH i2c: 01 07 00 [12:18:34]MH_I2C_Read... [12:18:34]Read from MH i2c: 01 07 00 C9 7B 00 00 00 00 00 FF 0F 59 [12:18:34]process_action close_receipt done [12:18:34]requested_data is exist [12:18:34]produce_requested_data [12:18:34]requested_item fm.sn is exist - process it [12:18:34]wFMCommunicate request_size=4 [12:18:34]MH_SAM_APDU [12:18:34]CAPDU: 80 11 00 00 [12:18:34]Write to MH i2c: E2 08 00 CA 7B 80 11 00 00 00 00 00 00 BF [12:18:34]Write i2c OK [12:18:34]MH_I2C_Read... [12:18:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:34]Read from MH i2c: E2 [12:18:34]MH_I2C_Read... [12:18:34]Read from MH i2c: E2 17 00 [12:18:34]MH_I2C_Read... [12:18:34]Read from MH i2c: E2 17 00 CA 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 0C [12:18:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:18:34]wFMCommunicate OK [12:18:34]requested_item fd.num is exist - process it [12:18:34]SAM_PROTO_GetFieldsCounters [12:18:34]wFMCommunicate request_size=4 [12:18:34]MH_SAM_APDU [12:18:34]CAPDU: 80 13 00 00 [12:18:34]Write to MH i2c: E2 08 00 CB 7B 80 13 00 00 00 00 00 00 C2 [12:18:34]Write i2c OK [12:18:34]MH_I2C_Read... [12:18:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:35]Read from MH i2c: E2 [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: E2 62 00 [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: E2 62 00 CB 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 38 FA 03 00 0E 04 04 00 C1 01 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 72 [12:18: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 38 FA 03 00 0E 04 04 00 C1 01 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 [12:18:35]wFMCommunicate OK [12:18:35]SAM_PROTO_GetFieldsCounters done [12:18:35]requested_item shift.num is exist - process it [12:18:35]requested_item shift.opened is exist - process it [12:18:35]req_shift_opened [12:18:35]FM_GetShiftState [12:18:35]SAM_PROTO_GetShiftState [12:18:35]wFMCommunicate request_size=4 [12:18:35]MH_SAM_APDU [12:18:35]CAPDU: 80 13 01 00 [12:18:35]Write to MH i2c: E2 08 00 CC 7B 80 13 01 00 00 00 00 00 C4 [12:18:35]Write i2c OK [12:18:35]MH_I2C_Read... [12:18:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:35]Read from MH i2c: E2 [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: E2 0E 00 [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: E2 0E 00 CC 7B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 01 [12:18:35]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:18:35]wFMCommunicate OK [12:18:35]SAM_PROTO_GetShiftState done [12:18:35]FM_GetShiftState done [12:18:35]req_shift_opened done [12:18:35]requested_item shift.open_date is exist - process it [12:18:35]req_shift_open_date [12:18:35]req_shift_open_date done [12:18:35]produce_requested_data done [12:18:35]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260664,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [12:18:35]process_action_free close_receipt [12:18:35]json_value_free [12:18:35]json_value_free done [12:18:35]process_json_proto returns [12:18:35]Send response to host [12:18:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260664,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [12:18:35]free response buf [12:18:35]execute_script done [12:18:35]execute_script returns [12:18:35]free content buf [12:18:35]Sock 9.Close socket [12:18:35]Sock 9.Thread stoped [12:18:36]OFD Sender: No OFD packet to send [12:18:41]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:46]accept exits with 7 [12:19:46]New connection [12:19:46]New thread 3066617188 created [12:19:46]Thread 3066473828 joined [12:19:46]Waiting for new connection... [12:19:46] Sock 7.Parse request [12:19:46]Sock 7.Check first char [12:19:46]Sock 7.First char is OK [12:19:46]request: POST /json_proto HTTP/1.0 [12:19:46]Method: POST [12:19:46]URL: /json_proto [12:19:46]Method is POST - this is cgi request [12:19:46]url: /json_proto [12:19:46]query_string will be loaded in cgi processing [12:19:46]execute_cgi json_proto POST (null) [12:19:46]execute_cgi path=json_proto method=POST [12:19:46]POST find Content-Length [12:19:46]Host: 172.17.55.133:8080 [12:19:46]Content-Length: 678 [12:19:46]Content-Type: application/json [12:19:46] [12:19:46]POST finish read [12:19:46]Found Content-Length = 678 [12:19:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [12:19:46]execute_script... [12:19: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)1036213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [12:19:46]POST & json_proto [12:19:46]process_json_proto [12:19:46]json parsed OK: [12:19:46]protocol is kg_v1.0 [12:19:46]action value=close_receipt [12:19:46]process_action close_receipt [12:19:46]cmd_close_receipt [12:19:46]MH_GetDate [12:19:46]Write to MH i2c: F0 00 00 CD 7B 37 [12:19:46]Write i2c OK [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: F0 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: F0 09 00 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: F0 09 00 CD 7B 00 E7 E6 C1 66 34 48 D8 65 ED [12:19:46]GetLastDocTimeStamp 1723983513 [12:19:46]current date 1723983591 [12:19:46]FM_GetShiftState [12:19:46]SAM_PROTO_GetShiftState [12:19:46]wFMCommunicate request_size=4 [12:19:46]MH_SAM_APDU [12:19:46]CAPDU: 80 13 01 00 [12:19:46]Write to MH i2c: E2 08 00 CE 7B 80 13 01 00 00 00 00 00 C6 [12:19:46]Write i2c OK [12:19:46]MH_I2C_Read... [12:19:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:46]Read from MH i2c: E2 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 0E 00 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 0E 00 CE 7B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 03 [12:19:46]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:19:46]wFMCommunicate OK [12:19:46]SAM_PROTO_GetShiftState done [12:19:46]FM_GetShiftState done [12:19:46]opened in 1723940556 [12:19:46]opened+sec_in_day 1724026956 [12:19:46]quantity*price = 40002 [12:19:46]sum+1 = 40003 [12:19:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 223 18.08.2024 12:19 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260665 ФПД: 130941832446588 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T121951&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260665&fm=130941832446588&tin=02508201610067®Number=0000000000091865&sum=40000 [12:19:47]StoreToDocumentArchive [12:19:47]shift 449 fd 260665 [12:19:47]save to /storage/0449/doc_00260665 [12:19:47]save last doc name /storage/0449/doc_00260665 to /storage/kkm_last_doc_name [12:19:47]save OK [12:19:47]Clear old archive folders... [12:19:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:19:47]tlvbuf is 003832C0 [12:19:47]SAM_PROTO_ClearQueue [12:19:47]wFMCommunicate request_size=4 [12:19:47]MH_SAM_APDU [12:19:47]CAPDU: 80 09 00 00 [12:19:47]Write to MH i2c: E2 08 00 DB 7B 80 09 00 00 00 00 00 00 C8 [12:19:47]Write i2c OK [12:19:47]MH_I2C_Read... [12:19:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:47]Read from MH i2c: E2 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: E2 03 00 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: E2 03 00 DB 7B 00 90 00 CA [12:19:47]RAPDU: 90 00 [12:19:47]wFMCommunicate OK [12:19:47]SAM_PROTO_ClearQueue done [12:19:47]KKMCreateOFDPacket [12:19:47]OFDProtocolAddRootSTLVToBuf [12:19:47]FM_MakeSignedData [12:19:47]FM_MakeSignedData [12:19:47]SAM_PROTO_SignData [12:19:47]wFMCommunicate request_size=4 [12:19:47]MH_SAM_APDU [12:19:47]CAPDU: 80 0D 01 02 [12:19:47]Write to MH i2c: E2 08 00 DC 7B 80 0D 01 02 00 00 00 00 D0 [12:19:47]Write i2c OK [12:19:47]MH_I2C_Read... [12:19:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:47]Read from MH i2c: E2 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: E2 03 00 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: E2 03 00 DC 7B 00 90 00 CB [12:19:47]RAPDU: 90 00 [12:19:47]wFMCommunicate OK [12:19:47]wFMCommunicate request_size=255 [12:19:47]MH_SAM_APDU [12:19:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 E7 E6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 39 FA 03 00 35 04 06 00 77 [12:19:47]Write to MH i2c: E2 02 01 DD 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 E7 E6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 39 FA 03 00 35 04 06 00 77 00 00 74 [12:19:47]Write i2c OK [12:19:47]MH_I2C_Read... [12:19:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:48]Read from MH i2c: E2 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: E2 03 00 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: E2 03 00 DD 7B 00 90 00 CC [12:19:48]RAPDU: 90 00 [12:19:48]wFMCommunicate OK [12:19:48]wFMCommunicate request_size=10 [12:19:48]MH_SAM_APDU [12:19:48]CAPDU: 80 0D 02 02 05 17 45 68 C2 7C [12:19:48]Write to MH i2c: E2 0D 00 DE 7B 80 0D 02 02 05 00 17 45 68 C2 7C 00 00 DF [12:19:48]Write i2c OK [12:19:48]MH_I2C_Read... [12:19:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:48]Read from MH i2c: E2 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: E2 03 00 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: E2 03 00 DE 7B 00 90 00 CD [12:19:48]RAPDU: 90 00 [12:19:48]wFMCommunicate OK [12:19:48]wFMCommunicate request_size=4 [12:19:48]MH_SAM_APDU [12:19:48]CAPDU: 80 0D 03 02 [12:19:48]Write to MH i2c: E2 08 00 DF 7B 80 0D 03 02 00 00 00 00 D5 [12:19:48]Write i2c OK [12:19:48]MH_I2C_Read... [12:19:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:48]Read from MH i2c: E2 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: E2 0B 00 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: E2 0B 00 DF 7B 00 E6 7F DA 90 01 87 8C 63 90 00 1C [12:19:48]RAPDU: E6 7F DA 90 01 87 8C 63 90 00 [12:19:48]wFMCommunicate OK [12:19:48]SAM_PROTO_SignData done [12:19:48]FM_MakeSignedData done [12:19:48]CreateOFDProtocolMessage [12:19:48]wFMCommunicate request_size=4 [12:19:48]MH_SAM_APDU [12:19:48]CAPDU: 80 11 00 00 [12:19:48]Write to MH i2c: E2 08 00 E0 7B 80 11 00 00 00 00 00 00 D5 [12:19:48]Write i2c OK [12:19:48]MH_I2C_Read... [12:19:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:48]Read from MH i2c: E2 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: E2 17 00 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: E2 17 00 E0 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 22 [12:19:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:19:48]wFMCommunicate OK [12:19:48]CreateOFDProtocolMessage done [12:19:48]OFDSenderStorePacket 260665 [12:19:48]StoreOFDPacket docnum=260665 [12:19:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 E8 43 07 01 03 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 E7 E6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 39 FA 03 00 35 04 06 00 77 17 45 68 C2 7C E6 7F DA 90 01 87 8C 63 [12:19:48]CheckFolder [12:19:48]dirname=/storage/ofd_packets [12:19:48]CheckFolder done [12:19:48]ProducePacketName [12:19:48]name=ofd_packets/00260665 [12:19:48]NVStorageSaveData ofd_packets/00260665 [12:19:48]File name is /storage/ofd_packets/00260665 [12:19:48]Write 301 bytes [12:19:48]NVStorageSaveData done [12:19:48]OFDSenderStorePacket done [12:19:48]KKMCreateOFDPacket done [12:19:48]NVStorageSaveData kkm_last_timestamp [12:19:48]File name is /storage/kkm_last_timestamp [12:19:48]Write 4 bytes [12:19:48]NVStorageSaveData done [12:19:48]ExternCall_PrintAddStr [12:19:48]wPrintStart [12:19:48]Write to MH i2c: 01 00 00 E1 7B 5C [12:19:48]OFD Sender: Processing packet 260665 [packets to send 192, broken 191] [12:19:48]ProducePacketName [12:19:48]name=ofd_packets/00260665 [12:19:48]OFD Sender: To server: pG, [12:19:48]CommunicateWithHost lk.salyk.kg:30040 [12:19:48]ConnectInit lk.salyk.kg [12:19:48]Write i2c OK [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: 01 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: 01 07 00 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: 01 07 00 E1 7B 00 00 00 00 00 FF 0F 71 [12:19:48]RasterBufferAndPrint [12:19:48]line Счет N : (1)1036213 [12:19:48]line ИНН: 02508201610067 [12:19:48]line Контрольно-Кассовый Чек [12:19:48]line ПРОДАЖА [12:19:48]line ТРК (МРК, ГНК) : 22 [12:19:48]line Товар: 2710124130 [12:19:48]line Аи-92-К-5 [12:19:48]line 5.900 * 67.80 [12:19:48]line = 400.02 [12:19:48]line НДС 12% НСП 1% [12:19:48]line > о реализуемом товаре [12:19:48]line ОКРУГЛЕНИЕ: -0.02 [12:19:48]line ИТОГО: 400.00 [12:19:48]line Внесено: 400.00 [12:19:48]line СДАЧА: 0.00 [12:19:48]line НСП 1% : 3.54 [12:19:48]line НДС 12% : 42.48 [12:19:48]line Наличными: 400.00 [12:19:48]line Безнал.: 0.00 [12:19:48]line Место: АЗС № 94 "Партнер Нефть" [12:19:48]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [12:19:48]line СНО: Общий режим [12:19:48]line Чек 223 18.08.2024 12:19 [12:19:48]line Смена: 449 ФФД: 1.0 [12:19:48]line ЗНМ: 0300000099 [12:19:48]line РНМ: 0000000000091865 [12:19:48]line Версия ККМ: 001 [12:19:48]line ФМ: 0000000000871820 [12:19:48]line ФД: 260665 [12:19:48]line ФПД: 130941832446588 [12:19:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T121951&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260665&fm=130941832446588&tin=02508201610067®Number=0000000000091865&sum=40000 [12:19:48]Connected sock=10 [12:19: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 30 0F 01 00 00 E8 43 07 01 03 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 E7 E6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 39 FA 03 00 35 04 06 00 77 17 45 68 C2 7C E6 7F DA 90 01 87 8C 63 [12:19:48]written 0, free lines is 4095 [12:19: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 30 4F 00 00 00 50 D6 47 00 1F 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 30 10 04 04 00 39 FA 03 00 F4 03 04 00 3C 90 C1 66 B6 04 01 00 00 DF FA 67 22 5F F8 6F C8 [12:19:48]CommunicateWithHost err = 0 [12:19:48]CheckOFDResponse [12:19:48]1017 (14) - 77093643461234 [12:19:48]1041 (16) - 0000000000871820 [12:19:48]1040 (4) - 260665 [12:19:48]1012 (4) - 18.08.2024 06:10 [12:19:48]1206 (1) - 0 [12:19:48]OFD Sender: Remove packet 260665 [12:19:48]ProducePacketName [12:19:48]name=ofd_packets/00260665 [12:19:48]NVStorageDeleteData [12:19:48]Write to MH i2c: 01 00 00 0C 7C 88 [12:19:48]Write i2c OK [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: 01 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: 01 07 00 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: 01 07 00 0C 7C 00 00 00 00 00 71 0C 0C [12:19:48]RasterBufferAndPrint [12:19:48]line [12:19:48]line [12:19:48]line [12:19:48]line [12:19:48]line [12:19:48]written 0, free lines is 3188 [12:19:48]MH_Cut [12:19:48]Write to MH i2c: D1 01 00 13 7C 01 61 [12:19:48]Write i2c OK [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: D1 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: D1 01 00 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: D1 01 00 13 7C 00 60 [12:19:48]Write to MH i2c: 01 00 00 14 7C 90 [12:19:49]Write i2c OK [12:19:49]MH_I2C_Read... [12:19:49]OFD Sender: No OFD packet to send [12:19:50]*** Cut start [12:19:50]*** Purtial cut [12:19:50]*** Stage 1: CUTSNS_PIN = 1 [12:19:52]Read from MH i2c: 01 [12:19:52]MH_I2C_Read... [12:19:52]*** Stop cut motor [12:19:52]*** Cut end [12:19:52]Read from MH i2c: 01 07 00 [12:19:52]MH_I2C_Read... [12:19:52]Read from MH i2c: 01 07 00 14 7C 00 00 00 00 00 FF 0F A5 [12:19:52]process_action close_receipt done [12:19:52]requested_data is exist [12:19:52]produce_requested_data [12:19:52]requested_item fm.sn is exist - process it [12:19:52]wFMCommunicate request_size=4 [12:19:52]MH_SAM_APDU [12:19:52]CAPDU: 80 11 00 00 [12:19:52]Write to MH i2c: E2 08 00 15 7C 80 11 00 00 00 00 00 00 0B [12:19:52]Write i2c OK [12:19:52]MH_I2C_Read... [12:19:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:52]Read from MH i2c: E2 [12:19:52]MH_I2C_Read... [12:19:52]Read from MH i2c: E2 17 00 [12:19:52]MH_I2C_Read... [12:19:52]Read from MH i2c: E2 17 00 15 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 58 [12:19:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:19:52]wFMCommunicate OK [12:19:52]requested_item fd.num is exist - process it [12:19:52]SAM_PROTO_GetFieldsCounters [12:19:52]wFMCommunicate request_size=4 [12:19:52]MH_SAM_APDU [12:19:52]CAPDU: 80 13 00 00 [12:19:52]Write to MH i2c: E2 08 00 16 7C 80 13 00 00 00 00 00 00 0E [12:19:52]Write i2c OK [12:19:52]MH_I2C_Read... [12:19:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:52]Read from MH i2c: E2 [12:19:52]MH_I2C_Read... [12:19:52]Read from MH i2c: E2 62 00 [12:19:52]MH_I2C_Read... [12:19:52]Read from MH i2c: E2 62 00 16 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 39 FA 03 00 0E 04 04 00 C1 01 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 C2 [12:19: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 39 FA 03 00 0E 04 04 00 C1 01 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 [12:19:52]wFMCommunicate OK [12:19:52]SAM_PROTO_GetFieldsCounters done [12:19:52]requested_item shift.num is exist - process it [12:19:52]requested_item shift.opened is exist - process it [12:19:52]req_shift_opened [12:19:52]FM_GetShiftState [12:19:52]SAM_PROTO_GetShiftState [12:19:52]wFMCommunicate request_size=4 [12:19:52]MH_SAM_APDU [12:19:52]CAPDU: 80 13 01 00 [12:19:52]Write to MH i2c: E2 08 00 17 7C 80 13 01 00 00 00 00 00 10 [12:19:52]Write i2c OK [12:19:52]MH_I2C_Read... [12:19:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:52]Read from MH i2c: E2 [12:19:52]MH_I2C_Read... [12:19:52]Read from MH i2c: E2 0E 00 [12:19:52]MH_I2C_Read... [12:19:52]Read from MH i2c: E2 0E 00 17 7C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 4D [12:19:52]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:19:52]wFMCommunicate OK [12:19:52]SAM_PROTO_GetShiftState done [12:19:52]FM_GetShiftState done [12:19:52]req_shift_opened done [12:19:52]requested_item shift.open_date is exist - process it [12:19:52]req_shift_open_date [12:19:52]req_shift_open_date done [12:19:52]produce_requested_data done [12:19:52]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260665,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [12:19:52]process_action_free close_receipt [12:19:52]json_value_free [12:19:52]json_value_free done [12:19:52]process_json_proto returns [12:19:52]Send response to host [12:19:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260665,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [12:19:52]free response buf [12:19:52]execute_script done [12:19:52]execute_script returns [12:19:52]free content buf [12:19:52]Sock 7.Close socket [12:19:52]Sock 7.Thread stoped [12:19:54]OFD Sender: No OFD packet to send [12:19:59]OFD Sender: No OFD packet to send [12:20:04]OFD Sender: No OFD packet to send [12:20:09]OFD Sender: No OFD packet to send [12:20:14]OFD Sender: No OFD packet to send [12:20:19]OFD Sender: No OFD packet to send [12:20:24]OFD Sender: No OFD packet to send [12:20:29]OFD Sender: No OFD packet to send [12:20:34]OFD Sender: No OFD packet to send [12:20:39]OFD Sender: No OFD packet to send [12:20:44]OFD Sender: No OFD packet to send [12:20:49]OFD Sender: No OFD packet to send [12:20:54]OFD Sender: No OFD packet to send [12:20:59]OFD Sender: No OFD packet to send [12:21:04]OFD Sender: No OFD packet to send [12:21:09]OFD Sender: No OFD packet to send [12:21:10]accept exits with 9 [12:21:10]New connection [12:21:10]New thread 3066473828 created [12:21:10]Thread 3066617188 joined [12:21:10]Waiting for new connection... [12:21:10] Sock 9.Parse request [12:21:10]Sock 9.Check first char [12:21:10]Sock 9.First char is OK [12:21:10]request: POST /json_proto HTTP/1.0 [12:21:10]Method: POST [12:21:10]URL: /json_proto [12:21:10]Method is POST - this is cgi request [12:21:10]url: /json_proto [12:21:10]query_string will be loaded in cgi processing [12:21:10]execute_cgi json_proto POST (null) [12:21:10]execute_cgi path=json_proto method=POST [12:21:10]POST find Content-Length [12:21:10]Host: 172.17.55.133:8080 [12:21:10]Content-Length: 755 [12:21:10]Content-Type: application/json [12:21:10] [12:21:10]POST finish read [12:21:10]Found Content-Length = 755 [12:21:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036214", "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" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30056685", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:10]execute_script... [12:21: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)1036214", "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" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30056685", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:10]POST & json_proto [12:21:10]process_json_proto [12:21:10]json parsed OK: [12:21:10]protocol is kg_v1.0 [12:21:10]action value=close_receipt [12:21:10]process_action close_receipt [12:21:10]cmd_close_receipt [12:21:10]MH_GetDate [12:21:10]Write to MH i2c: F0 00 00 18 7C 83 [12:21:10]Write i2c OK [12:21:10]MH_I2C_Read... [12:21:10]Read from MH i2c: F0 [12:21:10]MH_I2C_Read... [12:21:10]Read from MH i2c: F0 09 00 [12:21:10]MH_I2C_Read... [12:21:10]Read from MH i2c: F0 09 00 18 7C 00 3A E7 C1 66 34 48 D8 65 8D [12:21:10]GetLastDocTimeStamp 1723983591 [12:21:10]current date 1723983674 [12:21:10]FM_GetShiftState [12:21:10]SAM_PROTO_GetShiftState [12:21:10]wFMCommunicate request_size=4 [12:21:10]MH_SAM_APDU [12:21:10]CAPDU: 80 13 01 00 [12:21:10]Write to MH i2c: E2 08 00 19 7C 80 13 01 00 00 00 00 00 12 [12:21:10]Write i2c OK [12:21:10]MH_I2C_Read... [12:21:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:10]Read from MH i2c: E2 [12:21:10]MH_I2C_Read... [12:21:10]Read from MH i2c: E2 0E 00 [12:21:10]MH_I2C_Read... [12:21:10]Read from MH i2c: E2 0E 00 19 7C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 4F [12:21:10]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:21:10]wFMCommunicate OK [12:21:10]SAM_PROTO_GetShiftState done [12:21:10]FM_GetShiftState done [12:21:10]opened in 1723940556 [12:21:10]opened+sec_in_day 1724026956 [12:21:10]quantity*price = 0 [12:21:10]sum+1 = 1 [12:21:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 224 18.08.2024 12:21 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: ТК ГПНА Online 30056685 ФМ: 0000000000871820 ФД: 260666 ФПД: 254721692703309 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T122114&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260666&fm=254721692703309&tin=02508201610067®Number=0000000000091865&sum=0 [12:21:11]StoreToDocumentArchive [12:21:11]shift 449 fd 260666 [12:21:11]save to /storage/0449/doc_00260666 [12:21:11]save last doc name /storage/0449/doc_00260666 to /storage/kkm_last_doc_name [12:21:11]save OK [12:21:11]Clear old archive folders... [12:21:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:21:11]tlvbuf is 00540CA0 [12:21:11]SAM_PROTO_ClearQueue [12:21:11]wFMCommunicate request_size=4 [12:21:11]MH_SAM_APDU [12:21:11]CAPDU: 80 09 00 00 [12:21:11]Write to MH i2c: E2 08 00 26 7C 80 09 00 00 00 00 00 00 14 [12:21:11]Write i2c OK [12:21:11]MH_I2C_Read... [12:21:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:21:11]Read from MH i2c: E2 [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: E2 03 00 [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: E2 03 00 26 7C 00 90 00 16 [12:21:11]RAPDU: 90 00 [12:21:11]wFMCommunicate OK [12:21:11]SAM_PROTO_ClearQueue done [12:21:11]KKMCreateOFDPacket [12:21:11]OFDProtocolAddRootSTLVToBuf [12:21:11]FM_MakeSignedData [12:21:11]FM_MakeSignedData [12:21:11]SAM_PROTO_SignData [12:21:11]wFMCommunicate request_size=4 [12:21:11]MH_SAM_APDU [12:21:11]CAPDU: 80 0D 01 02 [12:21:11]Write to MH i2c: E2 08 00 27 7C 80 0D 01 02 00 00 00 00 1C [12:21:11]Write i2c OK [12:21:11]MH_I2C_Read... [12:21:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:21:11]Read from MH i2c: E2 [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: E2 03 00 [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: E2 03 00 27 7C 00 90 00 17 [12:21:11]RAPDU: 90 00 [12:21:11]wFMCommunicate OK [12:21:11]wFMCommunicate request_size=255 [12:21:11]MH_SAM_APDU [12:21: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 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 3A E7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3A FA 03 00 35 04 06 00 E7 [12:21:11]Write to MH i2c: E2 02 01 28 7C 80 0D 02 02 FA 00 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 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 3A E7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3A FA 03 00 35 04 06 00 E7 00 00 D5 [12:21:11]Write i2c OK [12:21:11]MH_I2C_Read... [12:21:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:11]Read from MH i2c: E2 [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: E2 03 00 [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: E2 03 00 28 7C 00 90 00 18 [12:21:11]RAPDU: 90 00 [12:21:11]wFMCommunicate OK [12:21:11]wFMCommunicate request_size=10 [12:21:11]MH_SAM_APDU [12:21:11]CAPDU: 80 0D 02 02 05 AB 04 02 9A 4D [12:21:11]Write to MH i2c: E2 0D 00 29 7C 80 0D 02 02 05 00 AB 04 02 9A 4D 00 00 C1 [12:21:11]Write i2c OK [12:21:11]MH_I2C_Read... [12:21:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:11]Read from MH i2c: E2 [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: E2 03 00 [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: E2 03 00 29 7C 00 90 00 19 [12:21:11]RAPDU: 90 00 [12:21:11]wFMCommunicate OK [12:21:11]wFMCommunicate request_size=4 [12:21:11]MH_SAM_APDU [12:21:11]CAPDU: 80 0D 03 02 [12:21:11]Write to MH i2c: E2 08 00 2A 7C 80 0D 03 02 00 00 00 00 21 [12:21:11]Write i2c OK [12:21:11]MH_I2C_Read... [12:21:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:11]Read from MH i2c: E2 [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: E2 0B 00 [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: E2 0B 00 2A 7C 00 D4 8D 88 AA 16 C4 BF 8B 90 00 D9 [12:21:11]RAPDU: D4 8D 88 AA 16 C4 BF 8B 90 00 [12:21:11]wFMCommunicate OK [12:21:11]SAM_PROTO_SignData done [12:21:11]FM_MakeSignedData done [12:21:11]CreateOFDProtocolMessage [12:21:11]wFMCommunicate request_size=4 [12:21:11]MH_SAM_APDU [12:21:11]CAPDU: 80 11 00 00 [12:21:11]Write to MH i2c: E2 08 00 2B 7C 80 11 00 00 00 00 00 00 21 [12:21:11]Write i2c OK [12:21:11]MH_I2C_Read... [12:21:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:11]Read from MH i2c: E2 [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: E2 17 00 [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: E2 17 00 2B 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 6E [12:21:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:21:11]wFMCommunicate OK [12:21:11]CreateOFDProtocolMessage done [12:21:11]OFDSenderStorePacket 260666 [12:21:11]StoreOFDPacket docnum=260666 [12:21:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 6A BA 07 01 7B 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 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 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 3A E7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3A FA 03 00 35 04 06 00 E7 AB 04 02 9A 4D D4 8D 88 AA 16 C4 BF 8B [12:21:11]CheckFolder [12:21:11]dirname=/storage/ofd_packets [12:21:11]CheckFolder done [12:21:11]ProducePacketName [12:21:11]name=ofd_packets/00260666 [12:21:11]NVStorageSaveData ofd_packets/00260666 [12:21:11]File name is /storage/ofd_packets/00260666 [12:21:11]Write 301 bytes [12:21:11]NVStorageSaveData done [12:21:11]OFDSenderStorePacket done [12:21:11]KKMCreateOFDPacket done [12:21:11]NVStorageSaveData kkm_last_timestamp [12:21:11]File name is /storage/kkm_last_timestamp [12:21:11]Write 4 bytes [12:21:11]NVStorageSaveData done [12:21:11]OFD Sender: Processing packet 260666 [packets to send 192, broken 191] [12:21:11]ProducePacketName [12:21:11]name=ofd_packets/00260666 [12:21:11]OFD Sender: To server: pG, [12:21:11]CommunicateWithHost lk.salyk.kg:30040 [12:21:11]ConnectInit lk.salyk.kg [12:21:11]ExternCall_PrintAddStr [12:21:11]wPrintStart [12:21:11]Write to MH i2c: 01 00 00 2C 7C A8 [12:21:11]Write i2c OK [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: 01 [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: 01 07 00 [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: 01 07 00 2C 7C 00 00 00 00 00 FF 0F BD [12:21:11]RasterBufferAndPrint [12:21:11]line Счет N : (1)1036214 [12:21:11]line ИНН: 02508201610067 [12:21:11]line Контрольно-Кассовый Чек [12:21:11]line ПРОДАЖА [12:21:11]line ТРК (МРК, ГНК) : 13 [12:21:11]line Товар: 2710124500 [12:21:11]line Аи-95-К-5 [12:21:11]line 30.000 * 0.00 [12:21:11]line = 0.00 [12:21:11]line НДС 12% НСП 1% [12:21:11]line > о реализуемом товаре [12:21:11]line ИТОГО: 0.00 [12:21:11]line НСП 1% : 0.00 [12:21:11]line НДС 12% : 0.00 [12:21:11]line Наличными: 0.00 [12:21:11]line Безнал.: 0.00 [12:21:11]line Место: АЗС № 94 "Партнер Нефть" [12:21:11]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [12:21:11]line СНО: Общий режим [12:21:11]line Чек 224 18.08.2024 12:21 [12:21:11]line Смена: 449 ФФД: 1.0 [12:21:11]line ЗНМ: 0300000099 [12:21:11]line РНМ: 0000000000091865 [12:21:11]line Версия ККМ: 001 [12:21:11]line Талоны: ТК ГПНА Online [12:21:11]line 30056685 [12:21:11]line ФМ: 0000000000871820 [12:21:11]line ФД: 260666 [12:21:11]line ФПД: 254721692703309 [12:21:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T122114&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260666&fm=254721692703309&tin=02508201610067®Number=0000000000091865&sum=0 [12:21:11]written 0, free lines is 4095 [12:21:11]Connected sock=11 [12:21: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 30 0F 01 00 00 6A BA 07 01 7B 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 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 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 3A E7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3A FA 03 00 35 04 06 00 E7 AB 04 02 9A 4D D4 8D 88 AA 16 C4 BF 8B [12:21: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 30 4F 00 00 00 69 A4 47 00 02 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 30 10 04 04 00 3A FA 03 00 F4 03 04 00 8F 90 C1 66 B6 04 01 00 00 0D C0 C9 C4 04 34 94 CF [12:21:12]CommunicateWithHost err = 0 [12:21:12]CheckOFDResponse [12:21:12]1017 (14) - 77093643461234 [12:21:12]1041 (16) - 0000000000871820 [12:21:12]1040 (4) - 260666 [12:21:12]1012 (4) - 18.08.2024 06:11 [12:21:12]1206 (1) - 0 [12:21:12]OFD Sender: Remove packet 260666 [12:21:12]ProducePacketName [12:21:12]name=ofd_packets/00260666 [12:21:12]NVStorageDeleteData [12:21:12]Write to MH i2c: 01 00 00 56 7C D2 [12:21:12]Write i2c OK [12:21:12]MH_I2C_Read... [12:21:12]Read from MH i2c: 01 [12:21:12]MH_I2C_Read... [12:21:12]Read from MH i2c: 01 07 00 [12:21:12]MH_I2C_Read... [12:21:12]Read from MH i2c: 01 07 00 56 7C 00 00 00 00 00 8A 0C 6F [12:21:12]RasterBufferAndPrint [12:21:12]line [12:21:12]line [12:21:12]line [12:21:12]line [12:21:12]line [12:21:12]written 0, free lines is 3214 [12:21:12]MH_Cut [12:21:12]Write to MH i2c: D1 01 00 5D 7C 01 AB [12:21:12]Write i2c OK [12:21:12]MH_I2C_Read... [12:21:12]Read from MH i2c: D1 [12:21:12]MH_I2C_Read... [12:21:12]Read from MH i2c: D1 01 00 [12:21:12]MH_I2C_Read... [12:21:12]Read from MH i2c: D1 01 00 5D 7C 00 AA [12:21:12]Write to MH i2c: 01 00 00 5E 7C DA [12:21:12]Write i2c OK [12:21:12]MH_I2C_Read... [12:21:12]OFD Sender: No OFD packet to send [12:21:13]*** Cut start [12:21:13]*** Purtial cut [12:21:13]*** Stage 1: CUTSNS_PIN = 1 [12:21:15]Read from MH i2c: 01 [12:21:15]MH_I2C_Read... [12:21:15]*** Stop cut motor [12:21:15]Read from MH i2c: *** Cut end [12:21:15]01 07 00 [12:21:15]MH_I2C_Read... [12:21:15]Read from MH i2c: 01 07 00 5E 7C 00 00 00 00 00 FF 0F EF [12:21:15]process_action close_receipt done [12:21:15]requested_data is exist [12:21:15]produce_requested_data [12:21:15]requested_item fm.sn is exist - process it [12:21:15]wFMCommunicate request_size=4 [12:21:15]MH_SAM_APDU [12:21:15]CAPDU: 80 11 00 00 [12:21:15]Write to MH i2c: E2 08 00 5F 7C 80 11 00 00 00 00 00 00 55 [12:21:15]Write i2c OK [12:21:15]MH_I2C_Read... [12:21:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:15]Read from MH i2c: E2 [12:21:15]MH_I2C_Read... [12:21:15]Read from MH i2c: E2 17 00 [12:21:15]MH_I2C_Read... [12:21:15]Read from MH i2c: E2 17 00 5F 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A2 [12:21:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:21:15]wFMCommunicate OK [12:21:15]requested_item fd.num is exist - process it [12:21:15]SAM_PROTO_GetFieldsCounters [12:21:15]wFMCommunicate request_size=4 [12:21:15]MH_SAM_APDU [12:21:15]CAPDU: 80 13 00 00 [12:21:15]Write to MH i2c: E2 08 00 60 7C 80 13 00 00 00 00 00 00 58 [12:21:15]Write i2c OK [12:21:15]MH_I2C_Read... [12:21:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:15]Read from MH i2c: E2 [12:21:15]MH_I2C_Read... [12:21:15]Read from MH i2c: E2 62 00 [12:21:15]MH_I2C_Read... [12:21:15]Read from MH i2c: E2 62 00 60 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 3A FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [12:21: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 3A FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:21:15]wFMCommunicate OK [12:21:15]SAM_PROTO_GetFieldsCounters done [12:21:15]requested_item shift.num is exist - process it [12:21:15]requested_item shift.opened is exist - process it [12:21:15]req_shift_opened [12:21:15]FM_GetShiftState [12:21:15]SAM_PROTO_GetShiftState [12:21:15]wFMCommunicate request_size=4 [12:21:15]MH_SAM_APDU [12:21:15]CAPDU: 80 13 01 00 [12:21:15]Write to MH i2c: E2 08 00 61 7C 80 13 01 00 00 00 00 00 5A [12:21:15]Write i2c OK [12:21:15]MH_I2C_Read... [12:21:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:15]Read from MH i2c: E2 [12:21:15]MH_I2C_Read... [12:21:15]Read from MH i2c: E2 0E 00 [12:21:15]MH_I2C_Read... [12:21:15]Read from MH i2c: E2 0E 00 61 7C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 97 [12:21:15]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:21:15]wFMCommunicate OK [12:21:15]SAM_PROTO_GetShiftState done [12:21:15]FM_GetShiftState done [12:21:15]req_shift_opened done [12:21:15]requested_item shift.open_date is exist - process it [12:21:15]req_shift_open_date [12:21:15]req_shift_open_date done [12:21:15]produce_requested_data done [12:21:15]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260666,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [12:21:15]process_action_free close_receipt [12:21:15]json_value_free [12:21:15]json_value_free done [12:21:15]process_json_proto returns [12:21:15]Send response to host [12:21:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260666,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [12:21:15]free response buf [12:21:15]execute_script done [12:21:15]execute_script returns [12:21:15]free content buf [12:21:15]Sock 9.Close socket [12:21:15]Sock 9.Thread stoped [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:37]OFD Sender: No OFD packet to send [12:23:42]OFD Sender: No OFD packet to send [12:23:47]OFD Sender: No OFD packet to send [12:23:52]OFD Sender: No OFD packet to send [12:23:57]OFD Sender: No OFD packet to send [12:24:02]OFD Sender: No OFD packet to send [12:24:07]OFD Sender: No OFD packet to send [12:24:12]OFD Sender: No OFD packet to send [12:24:17]OFD Sender: No OFD packet to send [12:24:22]OFD Sender: No OFD packet to send [12:24:27]OFD Sender: No OFD packet to send [12:24:32]OFD Sender: No OFD packet to send [12:24:37]OFD Sender: No OFD packet to send [12:24:42]OFD Sender: No OFD packet to send [12:24:47]OFD Sender: No OFD packet to send [12:24:52]OFD Sender: No OFD packet to send [12:24:57]OFD Sender: No OFD packet to send [12:25:02]OFD Sender: No OFD packet to send [12:25:07]OFD Sender: No OFD packet to send [12:25:12]OFD Sender: No OFD packet to send [12:25:17]OFD Sender: No OFD packet to send [12:25:22]OFD Sender: No OFD packet to send [12:25:27]OFD Sender: No OFD packet to send [12:25:32]OFD Sender: No OFD packet to send [12:25:37]OFD Sender: No OFD packet to send [12:25:42]OFD Sender: No OFD packet to send [12:25:47]OFD Sender: No OFD packet to send [12:25:52]OFD Sender: No OFD packet to send [12:25:58]OFD Sender: No OFD packet to send [12:26:03]OFD Sender: No OFD packet to send [12:26:08]OFD Sender: No OFD packet to send [12:26:13]OFD Sender: No OFD packet to send [12:26:18]OFD Sender: No OFD packet to send [12:26:23]OFD Sender: No OFD packet to send [12:26:28]OFD Sender: No OFD packet to send [12:26:33]OFD Sender: No OFD packet to send [12:26:38]OFD Sender: No OFD packet to send [12:26:43]OFD Sender: No OFD packet to send [12:26:48]OFD Sender: No OFD packet to send [12:26:53]OFD Sender: No OFD packet to send [12:26:58]OFD Sender: No OFD packet to send [12:27:03]OFD Sender: No OFD packet to send [12:27:08]OFD Sender: No OFD packet to send [12:27:13]OFD Sender: No OFD packet to send [12:27:18]OFD Sender: No OFD packet to send [12:27:23]OFD Sender: No OFD packet to send [12:27:28]OFD Sender: No OFD packet to send [12:27:33]OFD Sender: No OFD packet to send [12:27:38]OFD Sender: No OFD packet to send [12:27:43]OFD Sender: No OFD packet to send [12:27:48]OFD Sender: No OFD packet to send [12:27:53]OFD Sender: No OFD packet to send [12:27:58]OFD Sender: No OFD packet to send [12:28:03]OFD Sender: No OFD packet to send [12:28:08]OFD Sender: No OFD packet to send [12:28:13]OFD Sender: No OFD packet to send [12:28:18]OFD Sender: No OFD packet to send [12:28:23]OFD Sender: No OFD packet to send [12:28:28]OFD Sender: No OFD packet to send [12:28:33]OFD Sender: No OFD packet to send [12:28:38]OFD Sender: No OFD packet to send [12:28:43]OFD Sender: No OFD packet to send [12:28:48]OFD Sender: No OFD packet to send [12:28:48]accept exits with 7 [12:28:48]New connection [12:28:48]New thread 3066617188 created [12:28:48]Thread 3066473828 joined [12:28:48]Waiting for new connection... [12:28:48] Sock 7.Parse request [12:28:48]Sock 7.Check first char [12:28:48]Sock 7.First char is OK [12:28:48]request: POST /json_proto HTTP/1.0 [12:28:48]Method: POST [12:28:48]URL: /json_proto [12:28:48]Method is POST - this is cgi request [12:28:48]url: /json_proto [12:28:48]query_string will be loaded in cgi processing [12:28:48]execute_cgi json_proto POST (null) [12:28:48]execute_cgi path=json_proto method=POST [12:28:48]POST find Content-Length [12:28:48]Host: 172.17.55.133:8080 [12:28:48]Content-Length: 801 [12:28:48]Content-Type: application/json [12:28:48] [12:28:48]POST finish read [12:28:48]Found Content-Length = 801 [12:28:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 250.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:48]execute_script... [12:28: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)1036215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 250.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:48]POST & json_proto [12:28:48]process_json_proto [12:28:48]json parsed OK: [12:28:48]protocol is kg_v1.0 [12:28:48]action value=close_receipt [12:28:48]process_action close_receipt [12:28:48]cmd_close_receipt [12:28:48]MH_GetDate [12:28:48]Write to MH i2c: F0 00 00 62 7C CD [12:28:48]Write i2c OK [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: F0 [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: F0 09 00 [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: F0 09 00 62 7C 00 05 E9 C1 66 34 48 D8 65 A4 [12:28:48]GetLastDocTimeStamp 1723983674 [12:28:48]current date 1723984133 [12:28:48]FM_GetShiftState [12:28:48]SAM_PROTO_GetShiftState [12:28:48]wFMCommunicate request_size=4 [12:28:48]MH_SAM_APDU [12:28:48]CAPDU: 80 13 01 00 [12:28:48]Write to MH i2c: E2 08 00 63 7C 80 13 01 00 00 00 00 00 5C [12:28:48]Write i2c OK [12:28:48]MH_I2C_Read... [12:28:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:48]Read from MH i2c: E2 [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: E2 0E 00 [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: E2 0E 00 63 7C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 99 [12:28:48]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:28:48]wFMCommunicate OK [12:28:48]SAM_PROTO_GetShiftState done [12:28:48]FM_GetShiftState done [12:28:48]opened in 1723940556 [12:28:48]opened+sec_in_day 1724026956 [12:28:48]quantity*price = 25018 [12:28:48]sum+1 = 25019 [12:28:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.18 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 0.00 Безнал.: 250.18 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 225 18.08.2024 12:28 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260667 ФПД: 99296803981145 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T122853&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260667&fm=99296803981145&tin=02508201610067®Number=0000000000091865&sum=25018 [12:28:50]StoreToDocumentArchive [12:28:50]shift 449 fd 260667 [12:28:50]save to /storage/0449/doc_00260667 [12:28:50]save last doc name /storage/0449/doc_00260667 to /storage/kkm_last_doc_name [12:28:50]save OK [12:28:50]Clear old archive folders... [12:28:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:28:50]tlvbuf is 00383720 [12:28:50]SAM_PROTO_ClearQueue [12:28:50]wFMCommunicate request_size=4 [12:28:50]MH_SAM_APDU [12:28:50]CAPDU: 80 09 00 00 [12:28:50]Write to MH i2c: E2 08 00 70 7C 80 09 00 00 00 00 00 00 5E [12:28:50]Write i2c OK [12:28:50]MH_I2C_Read... [12:28:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:28:50]Read from MH i2c: E2 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: E2 03 00 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: E2 03 00 70 7C 00 90 00 60 [12:28:50]RAPDU: 90 00 [12:28:50]wFMCommunicate OK [12:28:50]SAM_PROTO_ClearQueue done [12:28:50]KKMCreateOFDPacket [12:28:50]OFDProtocolAddRootSTLVToBuf [12:28:50]FM_MakeSignedData [12:28:50]FM_MakeSignedData [12:28:50]SAM_PROTO_SignData [12:28:50]wFMCommunicate request_size=4 [12:28:50]MH_SAM_APDU [12:28:50]CAPDU: 80 0D 01 02 [12:28:50]Write to MH i2c: E2 08 00 71 7C 80 0D 01 02 00 00 00 00 66 [12:28:50]Write i2c OK [12:28:50]MH_I2C_Read... [12:28:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:28:50]Read from MH i2c: E2 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: E2 03 00 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: E2 03 00 71 7C 00 90 00 61 [12:28:50]RAPDU: 90 00 [12:28:50]wFMCommunicate OK [12:28:50]wFMCommunicate request_size=255 [12:28:50]MH_SAM_APDU [12:28:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BA 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BA 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 05 E9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3B FA 03 00 35 04 06 00 5A [12:28:50]Write to MH i2c: E2 02 01 72 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BA 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BA 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 05 E9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3B FA 03 00 35 04 06 00 5A 00 00 5F [12:28:50]Write i2c OK [12:28:50]MH_I2C_Read... [12:28:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:50]Read from MH i2c: E2 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: E2 03 00 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: E2 03 00 72 7C 00 90 00 62 [12:28:50]RAPDU: 90 00 [12:28:50]wFMCommunicate OK [12:28:50]wFMCommunicate request_size=10 [12:28:50]MH_SAM_APDU [12:28:50]CAPDU: 80 0D 02 02 05 4F 56 BA 87 59 [12:28:50]Write to MH i2c: E2 0D 00 73 7C 80 0D 02 02 05 00 4F 56 BA 87 59 00 00 B2 [12:28:50]Write i2c OK [12:28:50]MH_I2C_Read... [12:28:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:50]Read from MH i2c: E2 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: E2 03 00 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: E2 03 00 73 7C 00 90 00 63 [12:28:50]RAPDU: 90 00 [12:28:50]wFMCommunicate OK [12:28:50]wFMCommunicate request_size=4 [12:28:50]MH_SAM_APDU [12:28:50]CAPDU: 80 0D 03 02 [12:28:50]Write to MH i2c: E2 08 00 74 7C 80 0D 03 02 00 00 00 00 6B [12:28:50]Write i2c OK [12:28:50]MH_I2C_Read... [12:28:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:28:50]Read from MH i2c: E2 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: E2 0B 00 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: E2 0B 00 74 7C 00 ED 35 94 9E 07 FE AE 40 90 00 B3 [12:28:50]RAPDU: ED 35 94 9E 07 FE AE 40 90 00 [12:28:50]wFMCommunicate OK [12:28:50]SAM_PROTO_SignData done [12:28:50]FM_MakeSignedData done [12:28:50]CreateOFDProtocolMessage [12:28:50]wFMCommunicate request_size=4 [12:28:50]MH_SAM_APDU [12:28:50]CAPDU: 80 11 00 00 [12:28:50]Write to MH i2c: E2 08 00 75 7C 80 11 00 00 00 00 00 00 6B [12:28:50]Write i2c OK [12:28:50]MH_I2C_Read... [12:28:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:50]Read from MH i2c: E2 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: E2 17 00 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: E2 17 00 75 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B8 [12:28:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:28:50]wFMCommunicate OK [12:28:50]CreateOFDProtocolMessage done [12:28:50]OFDSenderStorePacket 260667 [12:28:50]StoreOFDPacket docnum=260667 [12:28:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 26 7E 07 01 48 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BA 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BA 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 05 E9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3B FA 03 00 35 04 06 00 5A 4F 56 BA 87 59 ED 35 94 9E 07 FE AE 40 [12:28:50]CheckFolder [12:28:50]dirname=/storage/ofd_packets [12:28:50]CheckFolder done [12:28:50]ProducePacketName [12:28:50]name=ofd_packets/00260667 [12:28:50]NVStorageSaveData ofd_packets/00260667 [12:28:50]File name is /storage/ofd_packets/00260667 [12:28:50]Write 301 bytes [12:28:50]NVStorageSaveData done [12:28:50]OFDSenderStorePacket done [12:28:50]KKMCreateOFDPacket done [12:28:50]NVStorageSaveData kkm_last_timestamp [12:28:50]File name is /storage/kkm_last_timestamp [12:28:50]Write 4 bytes [12:28:50]NVStorageSaveData done [12:28:50]ExternCall_PrintAddStr [12:28:50]wPrintStart [12:28:50]Write to MH i2c: 01 00 00 76 7C F2 [12:28:50]Write i2c OK [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: 01 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: 01 07 00 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: 01 07 00 76 7C 00 00 00 00 00 FF 0F 07 [12:28:50]RasterBufferAndPrint [12:28:50]line Счет N : (1)1036215 [12:28:50]line ИНН: 02508201610067 [12:28:50]line Контрольно-Кассовый Чек [12:28:50]line ПРОДАЖА [12:28:50]line ТРК (МРК, ГНК) : 22 [12:28:50]line Товар: 2710124130 [12:28:50]line Аи-92-К-5 [12:28:50]line 3.690 * 67.80 [12:28:50]line = 250.18 [12:28:50]line НДС 12% НСП 1% [12:28:50]line > о реализуемом товаре [12:28:50]line ИТОГО: 250.18 [12:28:50]line НСП 1% : 2.21 [12:28:50]line НДС 12% : 26.57 [12:28:50]line Наличными: 0.00 [12:28:50]line Безнал.: 250.18 [12:28:50]line Место: АЗС № 94 "Партнер Нефть" [12:28:50]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [12:28:50]line СНО: Общий режим [12:28:50]line Чек 225 18.08.2024 12:28 [12:28:50]line Смена: 449 ФФД: 1.0 [12:28:50]line ЗНМ: 0300000099 [12:28:50]line РНМ: 0000000000091865 [12:28:50]line Версия ККМ: 001 [12:28:50]line Платежная система: O! деньги [12:28:50]line ФМ: 0000000000871820 [12:28:50]line ФД: 260667 [12:28:50]line ФПД: 99296803981145 [12:28:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T122853&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260667&fm=99296803981145&tin=02508201610067®Number=0000000000091865&sum=25018 [12:28:50]written 0, free lines is 4095 [12:28:50]OFD Sender: Processing packet 260667 [packets to send 192, broken 191] [12:28:50]ProducePacketName [12:28:50]name=ofd_packets/00260667 [12:28:50]OFD Sender: To server: pG, [12:28:50]CommunicateWithHost lk.salyk.kg:30040 [12:28:50]ConnectInit lk.salyk.kg [12:28:50]Connected sock=10 [12:28: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 30 0F 01 00 00 26 7E 07 01 48 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BA 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BA 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 05 E9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3B FA 03 00 35 04 06 00 5A 4F 56 BA 87 59 ED 35 94 9E 07 FE AE 40 [12:28: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 30 4F 00 00 00 44 0D 47 00 70 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 30 10 04 04 00 3B FA 03 00 F4 03 04 00 5A 92 C1 66 B6 04 01 00 00 2C D0 14 67 A9 FE 3B E2 [12:28:50]CommunicateWithHost err = 0 [12:28:50]CheckOFDResponse [12:28:50]1017 (14) - 77093643461234 [12:28:50]1041 (16) - 0000000000871820 [12:28:50]1040 (4) - 260667 [12:28:50]1012 (4) - 18.08.2024 06:19 [12:28:50]1206 (1) - 0 [12:28:50]OFD Sender: Remove packet 260667 [12:28:50]ProducePacketName [12:28:50]name=ofd_packets/00260667 [12:28:50]NVStorageDeleteData [12:28:51]Write to MH i2c: 01 00 00 A0 7C 1C [12:28:51]Write i2c OK [12:28:51]MH_I2C_Read... [12:28:51]Read from MH i2c: 01 [12:28:51]MH_I2C_Read... [12:28:51]Read from MH i2c: 01 07 00 [12:28:51]MH_I2C_Read... [12:28:51]Read from MH i2c: 01 07 00 A0 7C 00 00 00 00 00 8D 0C BC [12:28:51]RasterBufferAndPrint [12:28:51]line [12:28:51]line [12:28:51]line [12:28:51]line [12:28:51]line [12:28:51]written 0, free lines is 3217 [12:28:51]MH_Cut [12:28:51]Write to MH i2c: D1 01 00 A7 7C 01 F5 [12:28:51]Write i2c OK [12:28:51]MH_I2C_Read... [12:28:51]Read from MH i2c: D1 [12:28:51]MH_I2C_Read... [12:28:51]Read from MH i2c: D1 01 00 [12:28:51]MH_I2C_Read... [12:28:51]Read from MH i2c: D1 01 00 A7 7C 00 F4 [12:28:51]Write to MH i2c: 01 00 00 A8 7C 24 [12:28:51]Write i2c OK [12:28:51]MH_I2C_Read... [12:28:51]OFD Sender: No OFD packet to send [12:28:52]*** Cut start [12:28:52]*** Purtial cut [12:28:52]*** Stage 1: CUTSNS_PIN = 1 [12:28:54]Read from MH i2c: 01 [12:28:54]MH_I2C_Read... [12:28:54]*** Stop cut motor [12:28:54]*** Cut end [12:28:54]Read from MH i2c: 01 07 00 [12:28:54]MH_I2C_Read... [12:28:54]Read from MH i2c: 01 07 00 A8 7C 00 00 00 00 00 FF 0F 39 [12:28:54]process_action close_receipt done [12:28:54]requested_data is exist [12:28:54]produce_requested_data [12:28:54]requested_item fm.sn is exist - process it [12:28:54]wFMCommunicate request_size=4 [12:28:54]MH_SAM_APDU [12:28:54]CAPDU: 80 11 00 00 [12:28:54]Write to MH i2c: E2 08 00 A9 7C 80 11 00 00 00 00 00 00 9F [12:28:54]Write i2c OK [12:28:54]MH_I2C_Read... [12:28:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:54]Read from MH i2c: E2 [12:28:54]MH_I2C_Read... [12:28:54]Read from MH i2c: E2 17 00 [12:28:54]MH_I2C_Read... [12:28:54]Read from MH i2c: E2 17 00 A9 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 EC [12:28:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:28:54]wFMCommunicate OK [12:28:54]requested_item fd.num is exist - process it [12:28:54]SAM_PROTO_GetFieldsCounters [12:28:54]wFMCommunicate request_size=4 [12:28:54]MH_SAM_APDU [12:28:54]CAPDU: 80 13 00 00 [12:28:54]Write to MH i2c: E2 08 00 AA 7C 80 13 00 00 00 00 00 00 A2 [12:28:54]Write i2c OK [12:28:54]MH_I2C_Read... [12:28:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:54]Read from MH i2c: E2 [12:28:54]MH_I2C_Read... [12:28:54]Read from MH i2c: E2 62 00 [12:28:54]MH_I2C_Read... [12:28:54]Read from MH i2c: E2 62 00 AA 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 3B FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [12:28: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 3B FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:28:54]wFMCommunicate OK [12:28:54]SAM_PROTO_GetFieldsCounters done [12:28:54]requested_item shift.num is exist - process it [12:28:54]requested_item shift.opened is exist - process it [12:28:54]req_shift_opened [12:28:54]FM_GetShiftState [12:28:54]SAM_PROTO_GetShiftState [12:28:54]wFMCommunicate request_size=4 [12:28:54]MH_SAM_APDU [12:28:54]CAPDU: 80 13 01 00 [12:28:54]Write to MH i2c: E2 08 00 AB 7C 80 13 01 00 00 00 00 00 A4 [12:28:54]Write i2c OK [12:28:54]MH_I2C_Read... [12:28:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:54]Read from MH i2c: E2 [12:28:54]MH_I2C_Read... [12:28:54]Read from MH i2c: E2 0E 00 [12:28:54]MH_I2C_Read... [12:28:54]Read from MH i2c: E2 0E 00 AB 7C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E1 [12:28:54]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:28:54]wFMCommunicate OK [12:28:54]SAM_PROTO_GetShiftState done [12:28:54]FM_GetShiftState done [12:28:54]req_shift_opened done [12:28:54]requested_item shift.open_date is exist - process it [12:28:54]req_shift_open_date [12:28:54]req_shift_open_date done [12:28:54]produce_requested_data done [12:28:54]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260667,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [12:28:54]process_action_free close_receipt [12:28:54]json_value_free [12:28:54]json_value_free done [12:28:54]process_json_proto returns [12:28:54]Send response to host [12:28:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260667,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [12:28:54]free response buf [12:28:54]execute_script done [12:28:54]execute_script returns [12:28:54]free content buf [12:28:54]Sock 7.Close socket [12:28:54]Sock 7.Thread stoped [12:28:56]OFD Sender: No OFD packet to send [12:29:01]OFD Sender: No OFD packet to send [12:29:02]accept exits with 9 [12:29:02]New connection [12:29:02]New thread 3066473828 created [12:29:02]Thread 3066617188 joined [12:29:02]Waiting for new connection... [12:29:02] Sock 9.Parse request [12:29:02]Sock 9.Check first char [12:29:02]Sock 9.First char is OK [12:29:02]request: POST /json_proto HTTP/1.0 [12:29:02]Method: POST [12:29:02]URL: /json_proto [12:29:02]Method is POST - this is cgi request [12:29:02]url: /json_proto [12:29:02]query_string will be loaded in cgi processing [12:29:02]execute_cgi json_proto POST (null) [12:29:02]execute_cgi path=json_proto method=POST [12:29:02]POST find Content-Length [12:29:02]Host: 172.17.55.133:8080 [12:29:02]Content-Length: 801 [12:29:02]Content-Type: application/json [12:29:02] [12:29:02]POST finish read [12:29:02]Found Content-Length = 801 [12:29:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.130, "sum" : 280.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 280.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:02]execute_script... [12:29: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)1036216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.130, "sum" : 280.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 280.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:02]POST & json_proto [12:29:02]process_json_proto [12:29:02]json parsed OK: [12:29:02]protocol is kg_v1.0 [12:29:02]action value=close_receipt [12:29:02]process_action close_receipt [12:29:02]cmd_close_receipt [12:29:02]MH_GetDate [12:29:02]Write to MH i2c: F0 00 00 AC 7C 17 [12:29:02]Write i2c OK [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: F0 [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: F0 09 00 [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: F0 09 00 AC 7C 00 13 E9 C1 66 34 48 D8 65 FC [12:29:02]GetLastDocTimeStamp 1723984133 [12:29:02]current date 1723984147 [12:29:02]FM_GetShiftState [12:29:02]SAM_PROTO_GetShiftState [12:29:02]wFMCommunicate request_size=4 [12:29:02]MH_SAM_APDU [12:29:02]CAPDU: 80 13 01 00 [12:29:02]Write to MH i2c: E2 08 00 AD 7C 80 13 01 00 00 00 00 00 A6 [12:29:02]Write i2c OK [12:29:02]MH_I2C_Read... [12:29:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:02]Read from MH i2c: E2 [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: E2 0E 00 [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: E2 0E 00 AD 7C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E3 [12:29:02]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:29:02]wFMCommunicate OK [12:29:02]SAM_PROTO_GetShiftState done [12:29:02]FM_GetShiftState done [12:29:02]opened in 1723940556 [12:29:02]opened+sec_in_day 1724026956 [12:29:02]quantity*price = 28001 [12:29:02]sum+1 = 28002 [12:29:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 280.01 НСП 1% : 2.48 НДС 12% : 29.74 Наличными: 0.00 Безнал.: 280.01 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 226 18.08.2024 12:29 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260668 ФПД: 124301493385853 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T122907&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260668&fm=124301493385853&tin=02508201610067®Number=0000000000091865&sum=28001 [12:29:03]StoreToDocumentArchive [12:29:03]shift 449 fd 260668 [12:29:03]save to /storage/0449/doc_00260668 [12:29:03]save last doc name /storage/0449/doc_00260668 to /storage/kkm_last_doc_name [12:29:03]save OK [12:29:03]Clear old archive folders... [12:29:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:29:03]tlvbuf is 003A0530 [12:29:03]SAM_PROTO_ClearQueue [12:29:03]wFMCommunicate request_size=4 [12:29:03]MH_SAM_APDU [12:29:03]CAPDU: 80 09 00 00 [12:29:03]Write to MH i2c: E2 08 00 BA 7C 80 09 00 00 00 00 00 00 A8 [12:29:03]Write i2c OK [12:29:03]MH_I2C_Read... [12:29:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:03]Read from MH i2c: E2 [12:29:03]MH_I2C_Read... [12:29:03]Read from MH i2c: E2 03 00 [12:29:03]MH_I2C_Read... [12:29:03]Read from MH i2c: E2 03 00 BA 7C 00 90 00 AA [12:29:03]RAPDU: 90 00 [12:29:03]wFMCommunicate OK [12:29:03]SAM_PROTO_ClearQueue done [12:29:03]KKMCreateOFDPacket [12:29:03]OFDProtocolAddRootSTLVToBuf [12:29:03]FM_MakeSignedData [12:29:03]FM_MakeSignedData [12:29:03]SAM_PROTO_SignData [12:29:03]wFMCommunicate request_size=4 [12:29:03]MH_SAM_APDU [12:29:03]CAPDU: 80 0D 01 02 [12:29:03]Write to MH i2c: E2 08 00 BB 7C 80 0D 01 02 00 00 00 00 B0 [12:29:03]Write i2c OK [12:29:03]MH_I2C_Read... [12:29:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:03]Read from MH i2c: E2 [12:29:03]MH_I2C_Read... [12:29:03]Read from MH i2c: E2 03 00 [12:29:03]MH_I2C_Read... [12:29:03]Read from MH i2c: E2 03 00 BB 7C 00 90 00 AB [12:29:03]RAPDU: 90 00 [12:29:03]wFMCommunicate OK [12:29:03]wFMCommunicate request_size=255 [12:29:03]MH_SAM_APDU [12:29:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 10 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 61 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 61 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 61 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 13 E9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3C FA 03 00 35 04 06 00 71 [12:29:03]Write to MH i2c: E2 02 01 BC 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 10 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 61 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 61 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 61 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 13 E9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3C FA 03 00 35 04 06 00 71 00 00 FC [12:29:03]Write i2c OK [12:29:03]MH_I2C_Read... [12:29:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:04]Read from MH i2c: E2 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: E2 03 00 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: E2 03 00 BC 7C 00 90 00 AC [12:29:04]RAPDU: 90 00 [12:29:04]wFMCommunicate OK [12:29:04]wFMCommunicate request_size=10 [12:29:04]MH_SAM_APDU [12:29:04]CAPDU: 80 0D 02 02 05 0D 32 5B BA 7D [12:29:04]Write to MH i2c: E2 0D 00 BD 7C 80 0D 02 02 05 00 0D 32 5B BA 7D 00 00 8E [12:29:04]Write i2c OK [12:29:04]MH_I2C_Read... [12:29:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:04]Read from MH i2c: E2 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: E2 03 00 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: E2 03 00 BD 7C 00 90 00 AD [12:29:04]RAPDU: 90 00 [12:29:04]wFMCommunicate OK [12:29:04]wFMCommunicate request_size=4 [12:29:04]MH_SAM_APDU [12:29:04]CAPDU: 80 0D 03 02 [12:29:04]Write to MH i2c: E2 08 00 BE 7C 80 0D 03 02 00 00 00 00 B5 [12:29:04]Write i2c OK [12:29:04]MH_I2C_Read... [12:29:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:04]Read from MH i2c: E2 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: E2 0B 00 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: E2 0B 00 BE 7C 00 F0 C0 C5 0A 5C 1E D6 3E 90 00 C3 [12:29:04]RAPDU: F0 C0 C5 0A 5C 1E D6 3E 90 00 [12:29:04]wFMCommunicate OK [12:29:04]SAM_PROTO_SignData done [12:29:04]FM_MakeSignedData done [12:29:04]CreateOFDProtocolMessage [12:29:04]wFMCommunicate request_size=4 [12:29:04]MH_SAM_APDU [12:29:04]CAPDU: 80 11 00 00 [12:29:04]Write to MH i2c: E2 08 00 BF 7C 80 11 00 00 00 00 00 00 B5 [12:29:04]Write i2c OK [12:29:04]MH_I2C_Read... [12:29:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:04]Read from MH i2c: E2 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: E2 17 00 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: E2 17 00 BF 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 02 [12:29:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:29:04]wFMCommunicate OK [12:29:04]CreateOFDProtocolMessage done [12:29:04]OFDSenderStorePacket 260668 [12:29:04]StoreOFDPacket docnum=260668 [12:29:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 99 C2 07 01 F3 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 35 FF 03 08 00 03 22 10 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 61 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 61 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 61 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 13 E9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3C FA 03 00 35 04 06 00 71 0D 32 5B BA 7D F0 C0 C5 0A 5C 1E D6 3E [12:29:04]CheckFolder [12:29:04]dirname=/storage/ofd_packets [12:29:04]CheckFolder done [12:29:04]ProducePacketName [12:29:04]name=ofd_packets/00260668 [12:29:04]NVStorageSaveData ofd_packets/00260668 [12:29:04]File name is /storage/ofd_packets/00260668 [12:29:04]Write 301 bytes [12:29:04]NVStorageSaveData done [12:29:04]OFDSenderStorePacket done [12:29:04]KKMCreateOFDPacket done [12:29:04]NVStorageSaveData kkm_last_timestamp [12:29:04]File name is /storage/kkm_last_timestamp [12:29:04]Write 4 bytes [12:29:04]NVStorageSaveData done [12:29:04]ExternCall_PrintAddStr [12:29:04]wPrintStart [12:29:04]Write to MH i2c: 01 00 00 C0 7C 3C [12:29:04]Write i2c OK [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: 01 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: 01 07 00 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: 01 07 00 C0 7C 00 00 00 00 00 FF 0F 51 [12:29:04]RasterBufferAndPrint [12:29:04]line Счет N : (1)1036216 [12:29:04]line ИНН: 02508201610067 [12:29:04]line Контрольно-Кассовый Чек [12:29:04]line ПРОДАЖА [12:29:04]line ТРК (МРК, ГНК) : 32 [12:29:04]line Товар: 2710124130 [12:29:04]line Аи-92-К-5 [12:29:04]line 4.130 * 67.80 [12:29:04]line = 280.01 [12:29:04]line НДС 12% НСП 1% [12:29:04]line > о реализуемом товаре [12:29:04]line ИТОГО: 280.01 [12:29:04]line НСП 1% : 2.48 [12:29:04]line НДС 12% : 29.74 [12:29:04]line Наличными: 0.00 [12:29:04]line Безнал.: 280.01 [12:29:04]line Место: АЗС № 94 "Партнер Нефть" [12:29:04]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [12:29:04]line СНО: Общий режим [12:29:04]line Чек 226 18.08.2024 12:29 [12:29:04]line Смена: 449 ФФД: 1.0 [12:29:04]line ЗНМ: 0300000099 [12:29:04]line РНМ: 0000000000091865 [12:29:04]line Версия ККМ: 001 [12:29:04]line Платежная система: O! деньги [12:29:04]line ФМ: 0000000000871820 [12:29:04]line ФД: 260668 [12:29:04]line ФПД: 124301493385853 [12:29:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T122907&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260668&fm=124301493385853&tin=02508201610067®Number=0000000000091865&sum=28001 [12:29:04]written 0, free lines is 4095 [12:29:04]OFD Sender: Processing packet 260668 [packets to send 192, broken 191] [12:29:04]ProducePacketName [12:29:04]name=ofd_packets/00260668 [12:29:04]OFD Sender: To server: pG, [12:29:04]CommunicateWithHost lk.salyk.kg:30040 [12:29:04]ConnectInit lk.salyk.kg [12:29:04]Connected sock=10 [12:29: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 30 0F 01 00 00 99 C2 07 01 F3 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 35 FF 03 08 00 03 22 10 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 61 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 61 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 61 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 13 E9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3C FA 03 00 35 04 06 00 71 0D 32 5B BA 7D F0 C0 C5 0A 5C 1E D6 3E [12:29: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 30 4F 00 00 00 9E 1B 47 00 E9 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 30 10 04 04 00 3C FA 03 00 F4 03 04 00 68 92 C1 66 B6 04 01 00 00 5A 60 41 27 C9 67 71 A6 [12:29:04]CommunicateWithHost err = 0 [12:29:04]CheckOFDResponse [12:29:04]1017 (14) - 77093643461234 [12:29:04]1041 (16) - 0000000000871820 [12:29:04]1040 (4) - 260668 [12:29:04]1012 (4) - 18.08.2024 06:19 [12:29:04]1206 (1) - 0 [12:29:04]OFD Sender: Remove packet 260668 [12:29:04]ProducePacketName [12:29:04]name=ofd_packets/00260668 [12:29:04]NVStorageDeleteData [12:29:04]Write to MH i2c: 01 00 00 EA 7C 66 [12:29:04]Write i2c OK [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: 01 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: 01 07 00 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: 01 07 00 EA 7C 00 00 00 00 00 89 0C 02 [12:29:04]RasterBufferAndPrint [12:29:04]line [12:29:04]line [12:29:04]line [12:29:04]line [12:29:04]line [12:29:04]written 0, free lines is 3213 [12:29:04]MH_Cut [12:29:04]Write to MH i2c: D1 01 00 F1 7C 01 3F [12:29:04]Write i2c OK [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: D1 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: D1 01 00 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: D1 01 00 F1 7C 00 3E [12:29:04]Write to MH i2c: 01 00 00 F2 7C 6E [12:29:04]Write i2c OK [12:29:04]MH_I2C_Read... [12:29:05]OFD Sender: No OFD packet to send [12:29:06]*** Cut start [12:29:06]*** Purtial cut [12:29:06]*** Stage 1: CUTSNS_PIN = 1 [12:29:08]Read from MH i2c: 01 [12:29:08]MH_I2C_Read... [12:29:08]*** Stop cut motor [12:29:08]*** Cut end [12:29:08]Read from MH i2c: 01 07 00 [12:29:08]MH_I2C_Read... [12:29:08]Read from MH i2c: 01 07 00 F2 7C 00 00 00 00 00 FF 0F 83 [12:29:08]process_action close_receipt done [12:29:08]requested_data is exist [12:29:08]produce_requested_data [12:29:08]requested_item fm.sn is exist - process it [12:29:08]wFMCommunicate request_size=4 [12:29:08]MH_SAM_APDU [12:29:08]CAPDU: 80 11 00 00 [12:29:08]Write to MH i2c: E2 08 00 F3 7C 80 11 00 00 00 00 00 00 E9 [12:29:08]Write i2c OK [12:29:08]MH_I2C_Read... [12:29:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:08]Read from MH i2c: E2 [12:29:08]MH_I2C_Read... [12:29:08]Read from MH i2c: E2 17 00 [12:29:08]MH_I2C_Read... [12:29:08]Read from MH i2c: E2 17 00 F3 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 36 [12:29:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:29:08]wFMCommunicate OK [12:29:08]requested_item fd.num is exist - process it [12:29:08]SAM_PROTO_GetFieldsCounters [12:29:08]wFMCommunicate request_size=4 [12:29:08]MH_SAM_APDU [12:29:08]CAPDU: 80 13 00 00 [12:29:08]Write to MH i2c: E2 08 00 F4 7C 80 13 00 00 00 00 00 00 EC [12:29:08]Write i2c OK [12:29:08]MH_I2C_Read... [12:29:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:08]Read from MH i2c: E2 [12:29:08]MH_I2C_Read... [12:29:08]Read from MH i2c: E2 62 00 [12:29:08]MH_I2C_Read... [12:29:08]Read from MH i2c: E2 62 00 F4 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 3C FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [12:29: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 3C FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:08]wFMCommunicate OK [12:29:08]SAM_PROTO_GetFieldsCounters done [12:29:08]requested_item shift.num is exist - process it [12:29:08]requested_item shift.opened is exist - process it [12:29:08]req_shift_opened [12:29:08]FM_GetShiftState [12:29:08]SAM_PROTO_GetShiftState [12:29:08]wFMCommunicate request_size=4 [12:29:08]MH_SAM_APDU [12:29:08]CAPDU: 80 13 01 00 [12:29:08]Write to MH i2c: E2 08 00 F5 7C 80 13 01 00 00 00 00 00 EE [12:29:08]Write i2c OK [12:29:08]MH_I2C_Read... [12:29:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:08]Read from MH i2c: E2 [12:29:08]MH_I2C_Read... [12:29:08]Read from MH i2c: E2 0E 00 [12:29:08]MH_I2C_Read... [12:29:08]Read from MH i2c: E2 0E 00 F5 7C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 2B [12:29:08]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:29:08]wFMCommunicate OK [12:29:08]SAM_PROTO_GetShiftState done [12:29:08]FM_GetShiftState done [12:29:08]req_shift_opened done [12:29:08]requested_item shift.open_date is exist - process it [12:29:08]req_shift_open_date [12:29:08]req_shift_open_date done [12:29:08]produce_requested_data done [12:29:08]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260668,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [12:29:08]process_action_free close_receipt [12:29:08]json_value_free [12:29:08]json_value_free done [12:29:08]process_json_proto returns [12:29:08]Send response to host [12:29:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260668,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [12:29:08]free response buf [12:29:08]execute_script done [12:29:08]execute_script returns [12:29:08]free content buf [12:29:08]Sock 9.Close socket [12:29:08]Sock 9.Thread stoped [12:29:10]OFD Sender: No OFD packet to send [12:29:15]OFD Sender: No OFD packet to send [12:29:17]accept exits with 7 [12:29:17]New connection [12:29:17]New thread 3066617188 created [12:29:17]Thread 3066473828 joined [12:29:17]Waiting for new connection... [12:29:17] Sock 7.Parse request [12:29:17]Sock 7.Check first char [12:29:17]Sock 7.First char is OK [12:29:17]request: POST /json_proto HTTP/1.0 [12:29:17]Method: POST [12:29:17]URL: /json_proto [12:29:17]Method is POST - this is cgi request [12:29:17]url: /json_proto [12:29:17]query_string will be loaded in cgi processing [12:29:17]execute_cgi json_proto POST (null) [12:29:17]execute_cgi path=json_proto method=POST [12:29:17]POST find Content-Length [12:29:17]Host: 172.17.55.133:8080 [12:29:17]Content-Length: 801 [12:29:17]Content-Type: application/json [12:29:17] [12:29:17]POST finish read [12:29:17]Found Content-Length = 801 [12:29:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:17]execute_script... [12:29: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)1036217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:17]POST & json_proto [12:29:17]process_json_proto [12:29:17]json parsed OK: [12:29:17]protocol is kg_v1.0 [12:29:17]action value=close_receipt [12:29:17]process_action close_receipt [12:29:17]cmd_close_receipt [12:29:17]MH_GetDate [12:29:17]Write to MH i2c: F0 00 00 F6 7C 61 [12:29:17]Write i2c OK [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: F0 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: F0 09 00 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: F0 09 00 F6 7C 00 22 E9 C1 66 34 48 D8 65 55 [12:29:17]GetLastDocTimeStamp 1723984147 [12:29:17]current date 1723984162 [12:29:17]FM_GetShiftState [12:29:17]SAM_PROTO_GetShiftState [12:29:17]wFMCommunicate request_size=4 [12:29:17]MH_SAM_APDU [12:29:17]CAPDU: 80 13 01 00 [12:29:17]Write to MH i2c: E2 08 00 F7 7C 80 13 01 00 00 00 00 00 F0 [12:29:17]Write i2c OK [12:29:17]MH_I2C_Read... [12:29:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:17]Read from MH i2c: E2 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: E2 0E 00 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: E2 0E 00 F7 7C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 2D [12:29:17]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:29:17]wFMCommunicate OK [12:29:17]SAM_PROTO_GetShiftState done [12:29:17]FM_GetShiftState done [12:29:17]opened in 1723940556 [12:29:17]opened+sec_in_day 1724026956 [12:29:17]quantity*price = 50036 [12:29:17]sum+1 = 50037 [12:29:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 227 18.08.2024 12:29 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260669 ФПД: 266360175954921 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T122922&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260669&fm=266360175954921&tin=02508201610067®Number=0000000000091865&sum=50036 [12:29:18]StoreToDocumentArchive [12:29:18]shift 449 fd 260669 [12:29:18]save to /storage/0449/doc_00260669 [12:29:18]save last doc name /storage/0449/doc_00260669 to /storage/kkm_last_doc_name [12:29:18]save OK [12:29:18]Clear old archive folders... [12:29:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:29:18]tlvbuf is 00432FB0 [12:29:18]SAM_PROTO_ClearQueue [12:29:18]wFMCommunicate request_size=4 [12:29:18]MH_SAM_APDU [12:29:18]CAPDU: 80 09 00 00 [12:29:18]Write to MH i2c: E2 08 00 04 7D 80 09 00 00 00 00 00 00 F3 [12:29:18]Write i2c OK [12:29:18]MH_I2C_Read... [12:29:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:18]Read from MH i2c: E2 [12:29:18]MH_I2C_Read... [12:29:18]Read from MH i2c: E2 03 00 [12:29:18]MH_I2C_Read... [12:29:18]Read from MH i2c: E2 03 00 04 7D 00 90 00 F5 [12:29:18]RAPDU: 90 00 [12:29:18]wFMCommunicate OK [12:29:18]SAM_PROTO_ClearQueue done [12:29:18]KKMCreateOFDPacket [12:29:18]OFDProtocolAddRootSTLVToBuf [12:29:18]FM_MakeSignedData [12:29:18]FM_MakeSignedData [12:29:18]SAM_PROTO_SignData [12:29:18]wFMCommunicate request_size=4 [12:29:18]MH_SAM_APDU [12:29:18]CAPDU: 80 0D 01 02 [12:29:18]Write to MH i2c: E2 08 00 05 7D 80 0D 01 02 00 00 00 00 FB [12:29:18]Write i2c OK [12:29:18]MH_I2C_Read... [12:29:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:18]Read from MH i2c: E2 [12:29:18]MH_I2C_Read... [12:29:18]Read from MH i2c: E2 03 00 [12:29:18]MH_I2C_Read... [12:29:18]Read from MH i2c: E2 03 00 05 7D 00 90 00 F6 [12:29:18]RAPDU: 90 00 [12:29:18]wFMCommunicate OK [12:29:18]wFMCommunicate request_size=255 [12:29:18]MH_SAM_APDU [12:29:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 22 E9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3D FA 03 00 35 04 06 00 F2 [12:29:18]Write to MH i2c: E2 02 01 06 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 22 E9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3D FA 03 00 35 04 06 00 F2 00 00 C3 [12:29:18]Write i2c OK [12:29:18]MH_I2C_Read... [12:29:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:19]Read from MH i2c: E2 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: E2 03 00 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: E2 03 00 06 7D 00 90 00 F7 [12:29:19]RAPDU: 90 00 [12:29:19]wFMCommunicate OK [12:29:19]wFMCommunicate request_size=10 [12:29:19]MH_SAM_APDU [12:29:19]CAPDU: 80 0D 02 02 05 40 CF AB 8B E9 [12:29:19]Write to MH i2c: E2 0D 00 07 7D 80 0D 02 02 05 00 40 CF AB 8B E9 00 00 36 [12:29:19]Write i2c OK [12:29:19]MH_I2C_Read... [12:29:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:19]Read from MH i2c: E2 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: E2 03 00 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: E2 03 00 07 7D 00 90 00 F8 [12:29:19]RAPDU: 90 00 [12:29:19]wFMCommunicate OK [12:29:19]wFMCommunicate request_size=4 [12:29:19]MH_SAM_APDU [12:29:19]CAPDU: 80 0D 03 02 [12:29:19]Write to MH i2c: E2 08 00 08 7D 80 0D 03 02 00 00 00 00 00 [12:29:19]Write i2c OK [12:29:19]MH_I2C_Read... [12:29:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:19]Read from MH i2c: E2 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: E2 0B 00 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: E2 0B 00 08 7D 00 3A 94 4F 97 D7 CC A9 DD 90 00 DE [12:29:19]RAPDU: 3A 94 4F 97 D7 CC A9 DD 90 00 [12:29:19]wFMCommunicate OK [12:29:19]SAM_PROTO_SignData done [12:29:19]FM_MakeSignedData done [12:29:19]CreateOFDProtocolMessage [12:29:19]wFMCommunicate request_size=4 [12:29:19]MH_SAM_APDU [12:29:19]CAPDU: 80 11 00 00 [12:29:19]Write to MH i2c: E2 08 00 09 7D 80 11 00 00 00 00 00 00 00 [12:29:19]Write i2c OK [12:29:19]MH_I2C_Read... [12:29:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:19]Read from MH i2c: E2 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: E2 17 00 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: E2 17 00 09 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 4D [12:29:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:29:19]wFMCommunicate OK [12:29:19]CreateOFDProtocolMessage done [12:29:19]OFDSenderStorePacket 260669 [12:29:19]StoreOFDPacket docnum=260669 [12:29:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 83 D8 07 01 76 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 22 E9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3D FA 03 00 35 04 06 00 F2 40 CF AB 8B E9 3A 94 4F 97 D7 CC A9 DD [12:29:19]CheckFolder [12:29:19]dirname=/storage/ofd_packets [12:29:19]CheckFolder done [12:29:19]ProducePacketName [12:29:19]name=ofd_packets/00260669 [12:29:19]NVStorageSaveData ofd_packets/00260669 [12:29:19]File name is /storage/ofd_packets/00260669 [12:29:19]Write 301 bytes [12:29:19]NVStorageSaveData done [12:29:19]OFDSenderStorePacket done [12:29:19]KKMCreateOFDPacket done [12:29:19]NVStorageSaveData kkm_last_timestamp [12:29:19]File name is /storage/kkm_last_timestamp [12:29:19]Write 4 bytes [12:29:19]NVStorageSaveData done [12:29:19]ExternCall_PrintAddStr [12:29:19]wPrintStart [12:29:19]Write to MH i2c: 01 00 00 0A 7D 87 [12:29:19]Write i2c OK [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: 01 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: 01 07 00 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: 01 07 00 0A 7D 00 00 00 00 00 FF 0F 9C [12:29:19]RasterBufferAndPrint [12:29:19]line Счет N : (1)1036217 [12:29:19]line ИНН: 02508201610067 [12:29:19]line Контрольно-Кассовый Чек [12:29:19]line ПРОДАЖА [12:29:19]line ТРК (МРК, ГНК) : 12 [12:29:19]line Товар: 2710124130 [12:29:19]line Аи-92-К-5 [12:29:19]line 7.380 * 67.80 [12:29:19]line = 500.36 [12:29:19]line НДС 12% НСП 1% [12:29:19]line > о реализуемом товаре [12:29:19]line ИТОГО: 500.36 [12:29:19]line НСП 1% : 4.43 [12:29:19]line НДС 12% : 53.14 [12:29:19]line Наличными: 0.00 [12:29:19]line Безнал.: 500.36 [12:29:19]line Место: АЗС № 94 "Партнер Нефть" [12:29:19]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [12:29:19]line СНО: Общий режим [12:29:19]line Чек 227 18.08.2024 12:29 [12:29:19]line Смена: 449 ФФД: 1.0 [12:29:19]line ЗНМ: 0300000099 [12:29:19]line РНМ: 0000000000091865 [12:29:19]line Версия ККМ: 001 [12:29:19]line Платежная система: O! деньги [12:29:19]line ФМ: 0000000000871820 [12:29:19]line ФД: 260669 [12:29:19]line ФПД: 266360175954921 [12:29:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T122922&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260669&fm=266360175954921&tin=02508201610067®Number=0000000000091865&sum=50036 [12:29:19]written 0, free lines is 4095 [12:29:19]OFD Sender: Processing packet 260669 [packets to send 192, broken 191] [12:29:19]ProducePacketName [12:29:19]name=ofd_packets/00260669 [12:29:19]OFD Sender: To server: pG, [12:29:19]CommunicateWithHost lk.salyk.kg:30040 [12:29:19]ConnectInit lk.salyk.kg [12:29:19]Connected sock=10 [12:29: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 30 0F 01 00 00 83 D8 07 01 76 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 22 E9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3D FA 03 00 35 04 06 00 F2 40 CF AB 8B E9 3A 94 4F 97 D7 CC A9 DD [12:29: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 30 4F 00 00 00 B8 1A 47 00 78 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 30 10 04 04 00 3D FA 03 00 F4 03 04 00 77 92 C1 66 B6 04 01 00 00 A2 5B 92 1B A5 7D BF A1 [12:29:19]CommunicateWithHost err = 0 [12:29:19]CheckOFDResponse [12:29:19]1017 (14) - 77093643461234 [12:29:19]1041 (16) - 0000000000871820 [12:29:19]1040 (4) - 260669 [12:29:19]1012 (4) - 18.08.2024 06:19 [12:29:19]1206 (1) - 0 [12:29:19]OFD Sender: Remove packet 260669 [12:29:19]ProducePacketName [12:29:19]name=ofd_packets/00260669 [12:29:19]NVStorageDeleteData [12:29:19]Write to MH i2c: 01 00 00 34 7D B1 [12:29:19]Write i2c OK [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: 01 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: 01 07 00 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: 01 07 00 34 7D 00 00 00 00 00 80 0C 44 [12:29:19]RasterBufferAndPrint [12:29:19]line [12:29:19]line [12:29:19]line [12:29:19]line [12:29:19]line [12:29:19]written 0, free lines is 3206 [12:29:19]MH_Cut [12:29:19]Write to MH i2c: D1 01 00 3B 7D 01 8A [12:29:19]Write i2c OK [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: D1 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: D1 01 00 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: D1 01 00 3B 7D 00 89 [12:29:19]Write to MH i2c: 01 00 00 3C 7D B9 [12:29:19]Write i2c OK [12:29:19]MH_I2C_Read... [12:29:20]OFD Sender: No OFD packet to send [12:29:20]*** Cut start [12:29:20]*** Purtial cut [12:29:20]*** Stage 1: CUTSNS_PIN = 1 [12:29:22]Read from MH i2c: 01 [12:29:22]MH_I2C_Read... [12:29:22]*** Stop cut motor [12:29:22]*** Cut end [12:29:22]Read from MH i2c: 01 07 00 [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: 01 07 00 3C 7D 00 00 00 00 00 FF 0F CE [12:29:22]process_action close_receipt done [12:29:22]requested_data is exist [12:29:22]produce_requested_data [12:29:22]requested_item fm.sn is exist - process it [12:29:22]wFMCommunicate request_size=4 [12:29:22]MH_SAM_APDU [12:29:22]CAPDU: 80 11 00 00 [12:29:22]Write to MH i2c: E2 08 00 3D 7D 80 11 00 00 00 00 00 00 34 [12:29:22]Write i2c OK [12:29:22]MH_I2C_Read... [12:29:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:22]Read from MH i2c: E2 [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: E2 17 00 [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: E2 17 00 3D 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 81 [12:29:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:29:22]wFMCommunicate OK [12:29:22]requested_item fd.num is exist - process it [12:29:22]SAM_PROTO_GetFieldsCounters [12:29:22]wFMCommunicate request_size=4 [12:29:22]MH_SAM_APDU [12:29:22]CAPDU: 80 13 00 00 [12:29:22]Write to MH i2c: E2 08 00 3E 7D 80 13 00 00 00 00 00 00 37 [12:29:22]Write i2c OK [12:29:22]MH_I2C_Read... [12:29:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:23]Read from MH i2c: E2 [12:29:23]MH_I2C_Read... [12:29:23]Read from MH i2c: E2 62 00 [12:29:23]MH_I2C_Read... [12:29:23]Read from MH i2c: E2 62 00 3E 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 3D FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [12:29: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 3D FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:23]wFMCommunicate OK [12:29:23]SAM_PROTO_GetFieldsCounters done [12:29:23]requested_item shift.num is exist - process it [12:29:23]requested_item shift.opened is exist - process it [12:29:23]req_shift_opened [12:29:23]FM_GetShiftState [12:29:23]SAM_PROTO_GetShiftState [12:29:23]wFMCommunicate request_size=4 [12:29:23]MH_SAM_APDU [12:29:23]CAPDU: 80 13 01 00 [12:29:23]Write to MH i2c: E2 08 00 3F 7D 80 13 01 00 00 00 00 00 39 [12:29:23]Write i2c OK [12:29:23]MH_I2C_Read... [12:29:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:23]Read from MH i2c: E2 [12:29:23]MH_I2C_Read... [12:29:23]Read from MH i2c: E2 0E 00 [12:29:23]MH_I2C_Read... [12:29:23]Read from MH i2c: E2 0E 00 3F 7D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 76 [12:29:23]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:29:23]wFMCommunicate OK [12:29:23]SAM_PROTO_GetShiftState done [12:29:23]FM_GetShiftState done [12:29:23]req_shift_opened done [12:29:23]requested_item shift.open_date is exist - process it [12:29:23]req_shift_open_date [12:29:23]req_shift_open_date done [12:29:23]produce_requested_data done [12:29:23]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260669,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [12:29:23]process_action_free close_receipt [12:29:23]json_value_free [12:29:23]json_value_free done [12:29:23]process_json_proto returns [12:29:23]Send response to host [12:29:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260669,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [12:29:23]free response buf [12:29:23]execute_script done [12:29:23]execute_script returns [12:29:23]free content buf [12:29:23]Sock 7.Close socket [12:29:23]Sock 7.Thread stoped [12:29:25]OFD Sender: No OFD packet to send [12:29:30]OFD Sender: No OFD packet to send [12:29:35]OFD Sender: No OFD packet to send [12:29:40]OFD Sender: No OFD packet to send [12:29:45]OFD Sender: No OFD packet to send [12:29:50]OFD Sender: No OFD packet to send [12:29:55]OFD Sender: No OFD packet to send [12:30:00]OFD Sender: No OFD packet to send [12:30:05]OFD Sender: No OFD packet to send [12:30:10]OFD Sender: No OFD packet to send [12:30:15]OFD Sender: No OFD packet to send [12:30:20]OFD Sender: No OFD packet to send [12:30:25]OFD Sender: No OFD packet to send [12:30:30]OFD Sender: No OFD packet to send [12:30:35]OFD Sender: No OFD packet to send [12:30:40]OFD Sender: No OFD packet to send [12:30:45]OFD Sender: No OFD packet to send [12:30:50]OFD Sender: No OFD packet to send [12:30:55]OFD Sender: No OFD packet to send [12:31:00]OFD Sender: No OFD packet to send [12:31:05]OFD Sender: No OFD packet to send [12:31:10]OFD Sender: No OFD packet to send [12:31:15]OFD Sender: No OFD packet to send [12:31:20]OFD Sender: No OFD packet to send [12:31:22]accept exits with 9 [12:31:22]New connection [12:31:22]New thread 3066473828 created [12:31:22]Thread 3066617188 joined [12:31:22]Waiting for new connection... [12:31:22] Sock 9.Parse request [12:31:22]Sock 9.Check first char [12:31:22]Sock 9.First char is OK [12:31:22]request: POST /json_proto HTTP/1.0 [12:31:22]Method: POST [12:31:22]URL: /json_proto [12:31:22]Method is POST - this is cgi request [12:31:22]url: /json_proto [12:31:22]query_string will be loaded in cgi processing [12:31:22]execute_cgi json_proto POST (null) [12:31:22]execute_cgi path=json_proto method=POST [12:31:22]POST find Content-Length [12:31:22]Host: 172.17.55.133:8080 [12:31:22]Content-Length: 688 [12:31:22]Content-Type: application/json [12:31:22] [12:31:22]POST finish read [12:31:22]Found Content-Length = 688 [12:31:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:22]execute_script... [12:31: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)1036218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:22]POST & json_proto [12:31:22]process_json_proto [12:31:22]json parsed OK: [12:31:22]protocol is kg_v1.0 [12:31:22]action value=close_receipt [12:31:22]process_action close_receipt [12:31:22]cmd_close_receipt [12:31:22]MH_GetDate [12:31:22]Write to MH i2c: F0 00 00 40 7D AC [12:31:22]Write i2c OK [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: F0 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: F0 09 00 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: F0 09 00 40 7D 00 9F E9 C1 66 34 48 D8 65 1D [12:31:22]GetLastDocTimeStamp 1723984162 [12:31:22]current date 1723984287 [12:31:22]FM_GetShiftState [12:31:22]SAM_PROTO_GetShiftState [12:31:22]wFMCommunicate request_size=4 [12:31:22]MH_SAM_APDU [12:31:22]CAPDU: 80 13 01 00 [12:31:22]Write to MH i2c: E2 08 00 41 7D 80 13 01 00 00 00 00 00 3B [12:31:22]Write i2c OK [12:31:22]MH_I2C_Read... [12:31:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:22]Read from MH i2c: E2 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 0E 00 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 0E 00 41 7D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 78 [12:31:22]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:31:22]wFMCommunicate OK [12:31:22]SAM_PROTO_GetShiftState done [12:31:22]FM_GetShiftState done [12:31:22]opened in 1723940556 [12:31:22]opened+sec_in_day 1724026956 [12:31:22]quantity*price = 200025 [12:31:22]sum+1 = 200026 [12:31:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 228 18.08.2024 12:31 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260670 ФПД: 44432965020315 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T123127&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260670&fm=44432965020315&tin=02508201610067®Number=0000000000091865&sum=200000 [12:31:23]StoreToDocumentArchive [12:31:23]shift 449 fd 260670 [12:31:23]save to /storage/0449/doc_00260670 [12:31:23]save last doc name /storage/0449/doc_00260670 to /storage/kkm_last_doc_name [12:31:23]save OK [12:31:23]Clear old archive folders... [12:31:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:31:23]tlvbuf is 0057B360 [12:31:23]SAM_PROTO_ClearQueue [12:31:23]wFMCommunicate request_size=4 [12:31:23]MH_SAM_APDU [12:31:23]CAPDU: 80 09 00 00 [12:31:23]Write to MH i2c: E2 08 00 4E 7D 80 09 00 00 00 00 00 00 3D [12:31:23]Write i2c OK [12:31:23]MH_I2C_Read... [12:31:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:23]Read from MH i2c: E2 [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: E2 03 00 [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: E2 03 00 4E 7D 00 90 00 3F [12:31:23]RAPDU: 90 00 [12:31:23]wFMCommunicate OK [12:31:23]SAM_PROTO_ClearQueue done [12:31:23]KKMCreateOFDPacket [12:31:23]OFDProtocolAddRootSTLVToBuf [12:31:23]FM_MakeSignedData [12:31:23]FM_MakeSignedData [12:31:23]SAM_PROTO_SignData [12:31:23]wFMCommunicate request_size=4 [12:31:23]MH_SAM_APDU [12:31:23]CAPDU: 80 0D 01 02 [12:31:23]Write to MH i2c: E2 08 00 4F 7D 80 0D 01 02 00 00 00 00 45 [12:31:23]Write i2c OK [12:31:23]MH_I2C_Read... [12:31:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:23]Read from MH i2c: E2 [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: E2 03 00 [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: E2 03 00 4F 7D 00 90 00 40 [12:31:23]RAPDU: 90 00 [12:31:23]wFMCommunicate OK [12:31:23]wFMCommunicate request_size=255 [12:31:23]MH_SAM_APDU [12:31:23]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 E4 00 00 00 F4 03 04 00 9F E9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3E FA 03 00 35 04 06 00 [12:31:23]Write to MH i2c: E2 02 01 50 7D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 E4 00 00 00 F4 03 04 00 9F E9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3E FA 03 00 35 04 06 00 00 00 2D [12:31:23]Write i2c OK [12:31:23]MH_I2C_Read... [12:31:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:23]Read from MH i2c: E2 [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: E2 03 00 [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: E2 03 00 50 7D 00 90 00 41 [12:31:23]RAPDU: 90 00 [12:31:23]wFMCommunicate OK [12:31:23]wFMCommunicate request_size=11 [12:31:23]MH_SAM_APDU [12:31:23]CAPDU: 80 0D 02 02 06 28 69 5B 18 AA 9B [12:31:23]Write to MH i2c: E2 0E 00 51 7D 80 0D 02 02 06 00 28 69 5B 18 AA 9B 00 00 9D [12:31:23]Write i2c OK [12:31:23]MH_I2C_Read... [12:31:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:23]Read from MH i2c: E2 [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: E2 03 00 [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: E2 03 00 51 7D 00 90 00 42 [12:31:23]RAPDU: 90 00 [12:31:23]wFMCommunicate OK [12:31:23]wFMCommunicate request_size=4 [12:31:23]MH_SAM_APDU [12:31:23]CAPDU: 80 0D 03 02 [12:31:23]Write to MH i2c: E2 08 00 52 7D 80 0D 03 02 00 00 00 00 4A [12:31:23]Write i2c OK [12:31:23]MH_I2C_Read... [12:31:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:23]Read from MH i2c: E2 [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: E2 0B 00 [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: E2 0B 00 52 7D 00 77 66 E6 13 62 DD F8 8F 90 00 E7 [12:31:23]RAPDU: 77 66 E6 13 62 DD F8 8F 90 00 [12:31:23]wFMCommunicate OK [12:31:23]SAM_PROTO_SignData done [12:31:23]FM_MakeSignedData done [12:31:23]CreateOFDProtocolMessage [12:31:23]wFMCommunicate request_size=4 [12:31:23]MH_SAM_APDU [12:31:23]CAPDU: 80 11 00 00 [12:31:23]Write to MH i2c: E2 08 00 53 7D 80 11 00 00 00 00 00 00 4A [12:31:23]Write i2c OK [12:31:23]MH_I2C_Read... [12:31:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:24]Read from MH i2c: E2 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 17 00 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 17 00 53 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 97 [12:31:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:31:24]wFMCommunicate OK [12:31:24]CreateOFDProtocolMessage done [12:31:24]OFDSenderStorePacket 260670 [12:31:24]StoreOFDPacket docnum=260670 [12:31:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 89 AD 08 01 D3 C7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 E4 00 00 00 F4 03 04 00 9F E9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3E FA 03 00 35 04 06 00 28 69 5B 18 AA 9B 77 66 E6 13 62 DD F8 8F [12:31:24]CheckFolder [12:31:24]dirname=/storage/ofd_packets [12:31:24]CheckFolder done [12:31:24]ProducePacketName [12:31:24]name=ofd_packets/00260670 [12:31:24]NVStorageSaveData ofd_packets/00260670 [12:31:24]File name is /storage/ofd_packets/00260670 [12:31:24]Write 302 bytes [12:31:24]NVStorageSaveData done [12:31:24]OFDSenderStorePacket done [12:31:24]KKMCreateOFDPacket done [12:31:24]NVStorageSaveData kkm_last_timestamp [12:31:24]File name is /storage/kkm_last_timestamp [12:31:24]Write 4 bytes [12:31:24]NVStorageSaveData done [12:31:24]ExternCall_PrintAddStr [12:31:24]wPrintStart [12:31:24]Write to MH i2c: 01 00 00 54 7D D1 [12:31:24]Write i2c OK [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: 01 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: 01 07 00 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: 01 07 00 54 7D 00 00 00 00 00 FF 0F E6 [12:31:24]RasterBufferAndPrint [12:31:24]line Счет N : (1)1036218 [12:31:24]line ИНН: 02508201610067 [12:31:24]line Контрольно-Кассовый Чек [12:31:24]line ПРОДАЖА [12:31:24]line ТРК (МРК, ГНК) : 33 [12:31:24]line Товар: 2710194210 [12:31:24]line ДТ(л)-К-4 [12:31:24]line 26.250 * 76.20 [12:31:24]line = 2000.25 [12:31:24]line НДС 12% НСП 1% [12:31:24]line > о реализуемом товаре [12:31:24]line ОКРУГЛЕНИЕ: -0.25 [12:31:24]line ИТОГО: 2000.00 [12:31:24]line Внесено: 2000.00 [12:31:24]line СДАЧА: 0.00 [12:31:24]line НСП 1% : 17.70 [12:31:24]line НДС 12% : 212.42 [12:31:24]line Наличными: 2000.00 [12:31:24]line Безнал.: 0.00 [12:31:24]line Место: АЗС № 94 "Партнер Нефть" [12:31:24]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [12:31:24]line СНО: Общий режим [12:31:24]line Чек 228 18.08.2024 12:31 [12:31:24]line Смена: 449 ФФД: 1.0 [12:31:24]line ЗНМ: 0300000099 [12:31:24]line РНМ: 0000000000091865 [12:31:24]line Версия ККМ: 001 [12:31:24]line ФМ: 0000000000871820 [12:31:24]line ФД: 260670 [12:31:24]line ФПД: 44432965020315 [12:31:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T123127&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260670&fm=44432965020315&tin=02508201610067®Number=0000000000091865&sum=200000 [12:31:24]OFD Sender: Processing packet 260670 [packets to send 192, broken 191] [12:31:24]ProducePacketName [12:31:24]name=ofd_packets/00260670 [12:31:24]OFD Sender: To server: pG, [12:31:24]CommunicateWithHost lk.salyk.kg:30040 [12:31:24]ConnectInit lk.salyk.kg [12:31:24]written 0, free lines is 4095 [12:31:24]Connected sock=11 [12:31: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 30 10 01 00 00 89 AD 08 01 D3 C7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 E4 00 00 00 F4 03 04 00 9F E9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3E FA 03 00 35 04 06 00 28 69 5B 18 AA 9B 77 66 E6 13 62 DD F8 8F [12:31: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 30 4F 00 00 00 23 1B 47 00 6C BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3E FA 03 00 F4 03 04 00 F4 92 C1 66 B6 04 01 00 00 CB 6C 32 BA 7B FA D7 5D [12:31:24]CommunicateWithHost err = 0 [12:31:24]CheckOFDResponse [12:31:24]1017 (14) - 77093643461234 [12:31:24]1041 (16) - 0000000000871820 [12:31:24]1040 (4) - 260670 [12:31:24]1012 (4) - 18.08.2024 06:21 [12:31:24]1206 (1) - 0 [12:31:24]OFD Sender: Remove packet 260670 [12:31:24]ProducePacketName [12:31:24]name=ofd_packets/00260670 [12:31:24]NVStorageDeleteData [12:31:24]Write to MH i2c: 01 00 00 7F 7D FC [12:31:24]Write i2c OK [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: 01 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: 01 07 00 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: 01 07 00 7F 7D 00 00 00 00 00 6B 0C 7A [12:31:24]RasterBufferAndPrint [12:31:24]line [12:31:24]line [12:31:24]line [12:31:24]line [12:31:24]line [12:31:24]written 0, free lines is 3182 [12:31:24]MH_Cut [12:31:24]Write to MH i2c: D1 01 00 86 7D 01 D5 [12:31:24]Write i2c OK [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: D1 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: D1 01 00 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: D1 01 00 86 7D 00 D4 [12:31:24]Write to MH i2c: 01 00 00 87 7D 04 [12:31:24]Write i2c OK [12:31:24]MH_I2C_Read... [12:31:25]OFD Sender: No OFD packet to send [12:31:25]*** Cut start [12:31:25]*** Purtial cut [12:31:25]*** Stage 1: CUTSNS_PIN = 1 [12:31:28]Read from MH i2c: 01 [12:31:28]MH_I2C_Read... [12:31:28]*** Stop cut motor [12:31:28]*** Cut end [12:31:28]Read from MH i2c: 01 07 00 [12:31:28]MH_I2C_Read... [12:31:28]Read from MH i2c: 01 07 00 87 7D 00 00 00 00 00 FF 0F 19 [12:31:28]process_action close_receipt done [12:31:28]requested_data is exist [12:31:28]produce_requested_data [12:31:28]requested_item fm.sn is exist - process it [12:31:28]wFMCommunicate request_size=4 [12:31:28]MH_SAM_APDU [12:31:28]CAPDU: 80 11 00 00 [12:31:28]Write to MH i2c: E2 08 00 88 7D 80 11 00 00 00 00 00 00 7F [12:31:28]Write i2c OK [12:31:28]MH_I2C_Read... [12:31:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:28]Read from MH i2c: E2 [12:31:28]MH_I2C_Read... [12:31:28]Read from MH i2c: E2 17 00 [12:31:28]MH_I2C_Read... [12:31:28]Read from MH i2c: E2 17 00 88 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 CC [12:31:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:31:28]wFMCommunicate OK [12:31:28]requested_item fd.num is exist - process it [12:31:28]SAM_PROTO_GetFieldsCounters [12:31:28]wFMCommunicate request_size=4 [12:31:28]MH_SAM_APDU [12:31:28]CAPDU: 80 13 00 00 [12:31:28]Write to MH i2c: E2 08 00 89 7D 80 13 00 00 00 00 00 00 82 [12:31:28]Write i2c OK [12:31:28]MH_I2C_Read... [12:31:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:28]Read from MH i2c: E2 [12:31:28]MH_I2C_Read... [12:31:28]Read from MH i2c: E2 62 00 [12:31:28]MH_I2C_Read... [12:31:28]Read from MH i2c: E2 62 00 89 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 3E FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [12:31: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 3E FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:31:28]wFMCommunicate OK [12:31:28]SAM_PROTO_GetFieldsCounters done [12:31:28]requested_item shift.num is exist - process it [12:31:28]requested_item shift.opened is exist - process it [12:31:28]req_shift_opened [12:31:28]FM_GetShiftState [12:31:28]SAM_PROTO_GetShiftState [12:31:28]wFMCommunicate request_size=4 [12:31:28]MH_SAM_APDU [12:31:28]CAPDU: 80 13 01 00 [12:31:28]Write to MH i2c: E2 08 00 8A 7D 80 13 01 00 00 00 00 00 84 [12:31:28]Write i2c OK [12:31:28]MH_I2C_Read... [12:31:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:28]Read from MH i2c: E2 [12:31:28]MH_I2C_Read... [12:31:28]Read from MH i2c: E2 0E 00 [12:31:28]MH_I2C_Read... [12:31:28]Read from MH i2c: E2 0E 00 8A 7D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C1 [12:31:28]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:31:28]wFMCommunicate OK [12:31:28]SAM_PROTO_GetShiftState done [12:31:28]FM_GetShiftState done [12:31:28]req_shift_opened done [12:31:28]requested_item shift.open_date is exist - process it [12:31:28]req_shift_open_date [12:31:28]req_shift_open_date done [12:31:28]produce_requested_data done [12:31:28]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260670,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [12:31:28]process_action_free close_receipt [12:31:28]json_value_free [12:31:28]json_value_free done [12:31:28]process_json_proto returns [12:31:28]Send response to host [12:31:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260670,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [12:31:28]free response buf [12:31:28]execute_script done [12:31:28]execute_script returns [12:31:28]free content buf [12:31:28]Sock 9.Close socket [12:31:28]Sock 9.Thread stoped [12:31:30]OFD Sender: No OFD packet to send [12:31:35]OFD Sender: No OFD packet to send [12:31:40]OFD Sender: No OFD packet to send [12:31:45]OFD Sender: No OFD packet to send [12:31:50]OFD Sender: No OFD packet to send [12:31:55]OFD Sender: No OFD packet to send [12:32:00]OFD Sender: No OFD packet to send [12:32:05]OFD Sender: No OFD packet to send [12:32:08]accept exits with 7 [12:32:08]New connection [12:32:08]New thread 3066617188 created [12:32:08]Thread 3066473828 joined [12:32:08]Waiting for new connection... [12:32:08] Sock 7.Parse request [12:32:08]Sock 7.Check first char [12:32:08]Sock 7.First char is OK [12:32:08]request: POST /json_proto HTTP/1.0 [12:32:08]Method: POST [12:32:08]URL: /json_proto [12:32:08]Method is POST - this is cgi request [12:32:08]url: /json_proto [12:32:08]query_string will be loaded in cgi processing [12:32:08]execute_cgi json_proto POST (null) [12:32:08]execute_cgi path=json_proto method=POST [12:32:08]POST find Content-Length [12:32:08]Host: 172.17.55.133:8080 [12:32:08]Content-Length: 801 [12:32:08]Content-Type: application/json [12:32:08] [12:32:08]POST finish read [12:32:08]Found Content-Length = 801 [12:32:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4208789", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:08]execute_script... [12:32: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)1036220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4208789", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:08]POST & json_proto [12:32:08]process_json_proto [12:32:08]json parsed OK: [12:32:08]protocol is kg_v1.0 [12:32:08]action value=close_receipt [12:32:08]process_action close_receipt [12:32:08]cmd_close_receipt [12:32:08]MH_GetDate [12:32:08]Write to MH i2c: F0 00 00 8B 7D F7 [12:32:08]Write i2c OK [12:32:08]MH_I2C_Read... [12:32:08]Read from MH i2c: F0 [12:32:08]MH_I2C_Read... [12:32:08]Read from MH i2c: F0 09 00 [12:32:08]MH_I2C_Read... [12:32:08]Read from MH i2c: F0 09 00 8B 7D 00 CD E9 C1 66 34 48 D8 65 96 [12:32:08]GetLastDocTimeStamp 1723984287 [12:32:08]current date 1723984333 [12:32:08]FM_GetShiftState [12:32:08]SAM_PROTO_GetShiftState [12:32:08]wFMCommunicate request_size=4 [12:32:08]MH_SAM_APDU [12:32:08]CAPDU: 80 13 01 00 [12:32:08]Write to MH i2c: E2 08 00 8C 7D 80 13 01 00 00 00 00 00 86 [12:32:08]Write i2c OK [12:32:08]MH_I2C_Read... [12:32:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:08]Read from MH i2c: E2 [12:32:08]MH_I2C_Read... [12:32:08]Read from MH i2c: E2 0E 00 [12:32:08]MH_I2C_Read... [12:32:08]Read from MH i2c: E2 0E 00 8C 7D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C3 [12:32:08]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:32:08]wFMCommunicate OK [12:32:08]SAM_PROTO_GetShiftState done [12:32:08]FM_GetShiftState done [12:32:08]opened in 1723940556 [12:32:08]opened+sec_in_day 1724026956 [12:32:08]quantity*price = 0 [12:32:08]sum+1 = 1 [12:32:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 229 18.08.2024 12:32 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: Топливные Талоны 4208789 ФМ: 0000000000871820 ФД: 260671 ФПД: 47562676631203 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T123213&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260671&fm=47562676631203&tin=02508201610067®Number=0000000000091865&sum=0 [12:32:09]StoreToDocumentArchive [12:32:09]shift 449 fd 260671 [12:32:09]save to /storage/0449/doc_00260671 [12:32:09]save last doc name /storage/0449/doc_00260671 to /storage/kkm_last_doc_name [12:32:09]save OK [12:32:09]Clear old archive folders... [12:32:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:32:09]tlvbuf is 003A0500 [12:32:09]SAM_PROTO_ClearQueue [12:32:09]wFMCommunicate request_size=4 [12:32:09]MH_SAM_APDU [12:32:09]CAPDU: 80 09 00 00 [12:32:09]Write to MH i2c: E2 08 00 99 7D 80 09 00 00 00 00 00 00 88 [12:32:09]Write i2c OK [12:32:09]MH_I2C_Read... [12:32:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:09]Read from MH i2c: E2 [12:32:09]MH_I2C_Read... [12:32:09]Read from MH i2c: E2 03 00 [12:32:09]MH_I2C_Read... [12:32:09]Read from MH i2c: E2 03 00 99 7D 00 90 00 8A [12:32:09]RAPDU: 90 00 [12:32:09]wFMCommunicate OK [12:32:09]SAM_PROTO_ClearQueue done [12:32:09]KKMCreateOFDPacket [12:32:09]OFDProtocolAddRootSTLVToBuf [12:32:09]FM_MakeSignedData [12:32:09]FM_MakeSignedData [12:32:09]SAM_PROTO_SignData [12:32:09]wFMCommunicate request_size=4 [12:32:09]MH_SAM_APDU [12:32:09]CAPDU: 80 0D 01 02 [12:32:09]Write to MH i2c: E2 08 00 9A 7D 80 0D 01 02 00 00 00 00 90 [12:32:09]Write i2c OK [12:32:09]MH_I2C_Read... [12:32:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:10]Read from MH i2c: E2 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 03 00 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 03 00 9A 7D 00 90 00 8B [12:32:10]RAPDU: 90 00 [12:32:10]wFMCommunicate OK [12:32:10]wFMCommunicate request_size=255 [12:32:10]MH_SAM_APDU [12:32:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 E5 00 00 00 F4 03 04 00 CD E9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3F FA 03 00 35 04 06 00 2B [12:32:10]Write to MH i2c: E2 02 01 9B 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 CD E9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3F FA 03 00 35 04 06 00 2B 00 00 BA [12:32:10]Write i2c OK [12:32:10]MH_I2C_Read... [12:32:10]OFD Sender: No OFD packet to send [12:32:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:10]Read from MH i2c: E2 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 03 00 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 03 00 9B 7D 00 90 00 8C [12:32:10]RAPDU: 90 00 [12:32:10]wFMCommunicate OK [12:32:10]wFMCommunicate request_size=10 [12:32:10]MH_SAM_APDU [12:32:10]CAPDU: 80 0D 02 02 05 42 0C 71 F6 A3 [12:32:10]Write to MH i2c: E2 0D 00 9C 7D 80 0D 02 02 05 00 42 0C 71 F6 A3 00 00 F5 [12:32:10]Write i2c OK [12:32:10]MH_I2C_Read... [12:32:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:10]Read from MH i2c: E2 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 03 00 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 03 00 9C 7D 00 90 00 8D [12:32:10]RAPDU: 90 00 [12:32:10]wFMCommunicate OK [12:32:10]wFMCommunicate request_size=4 [12:32:10]MH_SAM_APDU [12:32:10]CAPDU: 80 0D 03 02 [12:32:10]Write to MH i2c: E2 08 00 9D 7D 80 0D 03 02 00 00 00 00 95 [12:32:10]Write i2c OK [12:32:10]MH_I2C_Read... [12:32:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:10]Read from MH i2c: E2 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 0B 00 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 0B 00 9D 7D 00 4C F4 27 05 71 39 58 71 90 00 75 [12:32:10]RAPDU: 4C F4 27 05 71 39 58 71 90 00 [12:32:10]wFMCommunicate OK [12:32:10]SAM_PROTO_SignData done [12:32:10]FM_MakeSignedData done [12:32:10]CreateOFDProtocolMessage [12:32:10]wFMCommunicate request_size=4 [12:32:10]MH_SAM_APDU [12:32:10]CAPDU: 80 11 00 00 [12:32:10]Write to MH i2c: E2 08 00 9E 7D 80 11 00 00 00 00 00 00 95 [12:32:10]Write i2c OK [12:32:10]MH_I2C_Read... [12:32:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:10]Read from MH i2c: E2 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 17 00 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 17 00 9E 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E2 [12:32:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:32:10]wFMCommunicate OK [12:32:10]CreateOFDProtocolMessage done [12:32:10]OFDSenderStorePacket 260671 [12:32:10]StoreOFDPacket docnum=260671 [12:32:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 78 FB 07 01 6C C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 CD E9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3F FA 03 00 35 04 06 00 2B 42 0C 71 F6 A3 4C F4 27 05 71 39 58 71 [12:32:10]CheckFolder [12:32:10]dirname=/storage/ofd_packets [12:32:10]CheckFolder done [12:32:10]ProducePacketName [12:32:10]name=ofd_packets/00260671 [12:32:10]NVStorageSaveData ofd_packets/00260671 [12:32:10]File name is /storage/ofd_packets/00260671 [12:32:10]Write 301 bytes [12:32:10]NVStorageSaveData done [12:32:10]OFDSenderStorePacket done [12:32:10]KKMCreateOFDPacket done [12:32:10]NVStorageSaveData kkm_last_timestamp [12:32:10]File name is /storage/kkm_last_timestamp [12:32:10]Write 4 bytes [12:32:10]NVStorageSaveData done [12:32:10]ExternCall_PrintAddStr [12:32:10]wPrintStart [12:32:10]Write to MH i2c: 01 00 00 9F 7D 1C [12:32:10]Write i2c OK [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: 01 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: 01 07 00 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: 01 07 00 9F 7D 00 00 00 00 00 FF 0F 31 [12:32:10]RasterBufferAndPrint [12:32:10]line Счет N : (1)1036220 [12:32:10]line ИНН: 02508201610067 [12:32:10]line Контрольно-Кассовый Чек [12:32:10]line ПРОДАЖА [12:32:10]line ТРК (МРК, ГНК) : 22 [12:32:10]line Товар: 2710124130 [12:32:10]line Аи-92-К-5 [12:32:10]line 10.000 * 0.00 [12:32:10]line = 0.00 [12:32:10]line НДС 12% НСП 1% [12:32:10]line > о реализуемом товаре [12:32:10]line ИТОГО: 0.00 [12:32:10]line НСП 1% : 0.00 [12:32:10]line НДС 12% : 0.00 [12:32:10]line Наличными: 0.00 [12:32:10]line Безнал.: 0.00 [12:32:10]line Место: АЗС № 94 "Партнер Нефть" [12:32:10]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [12:32:10]line СНО: Общий режим [12:32:10]line Чек 229 18.08.2024 12:32 [12:32:10]line Смена: 449 ФФД: 1.0 [12:32:10]line ЗНМ: 0300000099 [12:32:10]line РНМ: 0000000000091865 [12:32:10]line Версия ККМ: 001 [12:32:10]line Талоны: Топливные Талоны [12:32:10]line 4208789 [12:32:10]line ФМ: 0000000000871820 [12:32:10]line ФД: 260671 [12:32:10]line ФПД: 47562676631203 [12:32:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T123213&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260671&fm=47562676631203&tin=02508201610067®Number=0000000000091865&sum=0 [12:32:10]written 0, free lines is 4095 [12:32:10]OFD Sender: Processing packet 260671 [packets to send 192, broken 191] [12:32:10]ProducePacketName [12:32:10]name=ofd_packets/00260671 [12:32:10]OFD Sender: To server: pG, [12:32:10]CommunicateWithHost lk.salyk.kg:30040 [12:32:10]ConnectInit lk.salyk.kg [12:32:10]Connected sock=10 [12:32: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 30 0F 01 00 00 78 FB 07 01 6C C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 CD E9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3F FA 03 00 35 04 06 00 2B 42 0C 71 F6 A3 4C F4 27 05 71 39 58 71 [12:32: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 30 4F 00 00 00 1C 28 47 00 BC 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 30 10 04 04 00 3F FA 03 00 F4 03 04 00 22 93 C1 66 B6 04 01 00 00 0F 13 DC B0 7D 33 FF 6E [12:32:10]CommunicateWithHost err = 0 [12:32:10]CheckOFDResponse [12:32:10]1017 (14) - 77093643461234 [12:32:10]1041 (16) - 0000000000871820 [12:32:10]1040 (4) - 260671 [12:32:10]1012 (4) - 18.08.2024 06:22 [12:32:10]1206 (1) - 0 [12:32:10]OFD Sender: Remove packet 260671 [12:32:10]ProducePacketName [12:32:10]name=ofd_packets/00260671 [12:32:10]NVStorageDeleteData [12:32:10]Write to MH i2c: 01 00 00 C9 7D 46 [12:32:10]Write i2c OK [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: 01 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: 01 07 00 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: 01 07 00 C9 7D 00 00 00 00 00 93 0C EC [12:32:10]RasterBufferAndPrint [12:32:10]line [12:32:10]line [12:32:10]line [12:32:10]line [12:32:10]line [12:32:10]written 0, free lines is 3224 [12:32:10]MH_Cut [12:32:10]Write to MH i2c: D1 01 00 D0 7D 01 1F [12:32:10]Write i2c OK [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: D1 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: D1 01 00 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: D1 01 00 D0 7D 00 1E [12:32:10]Write to MH i2c: 01 00 00 D1 7D 4E [12:32:10]Write i2c OK [12:32:10]MH_I2C_Read... [12:32:11]OFD Sender: No OFD packet to send [12:32:12]*** Cut start [12:32:12]*** Purtial cut [12:32:12]*** Stage 1: CUTSNS_PIN = 1 [12:32:14]Read from MH i2c: 01 [12:32:14]MH_I2C_Read... [12:32:14]*** Stop cut motor [12:32:14]*** Cut end [12:32:14]Read from MH i2c: 01 07 00 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: 01 07 00 D1 7D 00 00 00 00 00 FF 0F 63 [12:32:14]process_action close_receipt done [12:32:14]requested_data is exist [12:32:14]produce_requested_data [12:32:14]requested_item fm.sn is exist - process it [12:32:14]wFMCommunicate request_size=4 [12:32:14]MH_SAM_APDU [12:32:14]CAPDU: 80 11 00 00 [12:32:14]Write to MH i2c: E2 08 00 D2 7D 80 11 00 00 00 00 00 00 C9 [12:32:14]Write i2c OK [12:32:14]MH_I2C_Read... [12:32:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:14]Read from MH i2c: E2 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: E2 17 00 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: E2 17 00 D2 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 16 [12:32:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:32:14]wFMCommunicate OK [12:32:14]requested_item fd.num is exist - process it [12:32:14]SAM_PROTO_GetFieldsCounters [12:32:14]wFMCommunicate request_size=4 [12:32:14]MH_SAM_APDU [12:32:14]CAPDU: 80 13 00 00 [12:32:14]Write to MH i2c: E2 08 00 D3 7D 80 13 00 00 00 00 00 00 CC [12:32:14]Write i2c OK [12:32:14]MH_I2C_Read... [12:32:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:14]Read from MH i2c: E2 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: E2 62 00 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: E2 62 00 D3 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 3F FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [12:32: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 3F FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:32:14]wFMCommunicate OK [12:32:14]SAM_PROTO_GetFieldsCounters done [12:32:14]requested_item shift.num is exist - process it [12:32:14]requested_item shift.opened is exist - process it [12:32:14]req_shift_opened [12:32:14]FM_GetShiftState [12:32:14]SAM_PROTO_GetShiftState [12:32:14]wFMCommunicate request_size=4 [12:32:14]MH_SAM_APDU [12:32:14]CAPDU: 80 13 01 00 [12:32:14]Write to MH i2c: E2 08 00 D4 7D 80 13 01 00 00 00 00 00 CE [12:32:14]Write i2c OK [12:32:14]MH_I2C_Read... [12:32:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:14]Read from MH i2c: E2 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: E2 0E 00 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: E2 0E 00 D4 7D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 0B [12:32:14]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:32:14]wFMCommunicate OK [12:32:14]SAM_PROTO_GetShiftState done [12:32:14]FM_GetShiftState done [12:32:14]req_shift_opened done [12:32:14]requested_item shift.open_date is exist - process it [12:32:14]req_shift_open_date [12:32:14]req_shift_open_date done [12:32:14]produce_requested_data done [12:32:14]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260671,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [12:32:14]process_action_free close_receipt [12:32:14]json_value_free [12:32:14]json_value_free done [12:32:14]process_json_proto returns [12:32:14]Send response to host [12:32:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260671,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [12:32:14]free response buf [12:32:14]execute_script done [12:32:14]execute_script returns [12:32:14]free content buf [12:32:14]Sock 7.Close socket [12:32:14]Sock 7.Thread stoped [12:32:14]accept exits with 9 [12:32:14]New connection [12:32:14]New thread 3066473828 created [12:32:14]Thread 3066617188 joined [12:32:14]Waiting for new connection... [12:32:14] Sock 9.Parse request [12:32:14]Sock 9.Check first char [12:32:14]Sock 9.First char is OK [12:32:14]request: POST /json_proto HTTP/1.0 [12:32:14]Method: POST [12:32:14]URL: /json_proto [12:32:14]Method is POST - this is cgi request [12:32:14]url: /json_proto [12:32:14]query_string will be loaded in cgi processing [12:32:14]execute_cgi json_proto POST (null) [12:32:14]execute_cgi path=json_proto method=POST [12:32:14]POST find Content-Length [12:32:14]Host: 172.17.55.133:8080 [12:32:14]Content-Length: 683 [12:32:14]Content-Type: application/json [12:32:14] [12:32:14]POST finish read [12:32:14]Found Content-Length = 683 [12:32:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036219", "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" : 74.20, "quantity" : 26.290, "sum" : 1950.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1950.00, "total" : 1950.00, "payments": [ { "type": 0, "sum" : 1950.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:14]execute_script... [12:32: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)1036219", "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" : 74.20, "quantity" : 26.290, "sum" : 1950.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1950.00, "total" : 1950.00, "payments": [ { "type": 0, "sum" : 1950.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:14]POST & json_proto [12:32:14]process_json_proto [12:32:14]json parsed OK: [12:32:14]protocol is kg_v1.0 [12:32:14]action value=close_receipt [12:32:14]process_action close_receipt [12:32:14]cmd_close_receipt [12:32:14]MH_GetDate [12:32:14]Write to MH i2c: F0 00 00 D5 7D 41 [12:32:14]Write i2c OK [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: F0 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: F0 09 00 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: F0 09 00 D5 7D 00 D3 E9 C1 66 34 48 D8 65 E6 [12:32:14]GetLastDocTimeStamp 1723984333 [12:32:14]current date 1723984339 [12:32:14]FM_GetShiftState [12:32:14]SAM_PROTO_GetShiftState [12:32:14]wFMCommunicate request_size=4 [12:32:14]MH_SAM_APDU [12:32:14]CAPDU: 80 13 01 00 [12:32:14]Write to MH i2c: E2 08 00 D6 7D 80 13 01 00 00 00 00 00 D0 [12:32:14]Write i2c OK [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: E2 [12:32:14]MH_I2C_Read... [12:32:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:14]Read from MH i2c: E2 0E 00 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: E2 0E 00 D6 7D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 0D [12:32:14]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:32:14]wFMCommunicate OK [12:32:14]SAM_PROTO_GetShiftState done [12:32:14]FM_GetShiftState done [12:32:14]opened in 1723940556 [12:32:14]opened+sec_in_day 1724026956 [12:32:14]quantity*price = 195071 [12:32:14]sum+1 = 195073 [12:32:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 1950.00 Внесено: 1950.00 СДАЧА: 0.00 НСП 1% : 17.26 НДС 12% : 207.16 Наличными: 1950.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 230 18.08.2024 12:32 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260672 ФПД: 107624813847862 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T123219&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260672&fm=107624813847862&tin=02508201610067®Number=0000000000091865&sum=195000 [12:32:16]StoreToDocumentArchive [12:32:16]shift 449 fd 260672 [12:32:16]save to /storage/0449/doc_00260672 [12:32:16]save last doc name /storage/0449/doc_00260672 to /storage/kkm_last_doc_name [12:32:16]save OK [12:32:16]Clear old archive folders... [12:32:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:32:16]tlvbuf is 00382E90 [12:32:16]SAM_PROTO_ClearQueue [12:32:16]wFMCommunicate request_size=4 [12:32:16]MH_SAM_APDU [12:32:16]CAPDU: 80 09 00 00 [12:32:16]Write to MH i2c: E2 08 00 E3 7D 80 09 00 00 00 00 00 00 D2 [12:32:16]Write i2c OK [12:32:16]MH_I2C_Read... [12:32:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:16]Read from MH i2c: E2 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: E2 03 00 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: E2 03 00 E3 7D 00 90 00 D4 [12:32:16]RAPDU: 90 00 [12:32:16]wFMCommunicate OK [12:32:16]SAM_PROTO_ClearQueue done [12:32:16]KKMCreateOFDPacket [12:32:16]OFDProtocolAddRootSTLVToBuf [12:32:16]FM_MakeSignedData [12:32:16]FM_MakeSignedData [12:32:16]SAM_PROTO_SignData [12:32:16]wFMCommunicate request_size=4 [12:32:16]MH_SAM_APDU [12:32:16]CAPDU: 80 0D 01 02 [12:32:16]Write to MH i2c: E2 08 00 E4 7D 80 0D 01 02 00 00 00 00 DA [12:32:16]Write i2c OK [12:32:16]MH_I2C_Read... [12:32:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:16]Read from MH i2c: E2 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: E2 03 00 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: E2 03 00 E4 7D 00 90 00 D5 [12:32:16]RAPDU: 90 00 [12:32:16]wFMCommunicate OK [12:32:16]wFMCommunicate request_size=255 [12:32:16]MH_SAM_APDU [12:32: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B2 66 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 00 FA 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 F9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 50 00 00 00 00 07 04 06 00 B8 F9 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 D3 E9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 40 FA 03 00 35 04 06 00 61 [12:32:16]Write to MH i2c: E2 02 01 E5 7D 80 0D 02 02 FA 00 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 B2 66 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 00 FA 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 F9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 50 00 00 00 00 07 04 06 00 B8 F9 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 D3 E9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 40 FA 03 00 35 04 06 00 61 00 00 A1 [12:32:16]Write i2c OK [12:32:16]MH_I2C_Read... [12:32:16]OFD Sender: No OFD packet to send [12:32:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:16]Read from MH i2c: E2 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: E2 03 00 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: E2 03 00 E5 7D 00 90 00 D6 [12:32:16]RAPDU: 90 00 [12:32:16]wFMCommunicate OK [12:32:16]wFMCommunicate request_size=10 [12:32:16]MH_SAM_APDU [12:32:16]CAPDU: 80 0D 02 02 05 E2 5A CC 65 36 [12:32:16]Write to MH i2c: E2 0D 00 E6 7D 80 0D 02 02 05 00 E2 5A CC 65 36 00 00 8A [12:32:16]Write i2c OK [12:32:16]MH_I2C_Read... [12:32:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:16]Read from MH i2c: E2 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: E2 03 00 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: E2 03 00 E6 7D 00 90 00 D7 [12:32:16]RAPDU: 90 00 [12:32:16]wFMCommunicate OK [12:32:16]wFMCommunicate request_size=4 [12:32:16]MH_SAM_APDU [12:32:16]CAPDU: 80 0D 03 02 [12:32:16]Write to MH i2c: E2 08 00 E7 7D 80 0D 03 02 00 00 00 00 DF [12:32:16]Write i2c OK [12:32:16]MH_I2C_Read... [12:32:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:16]Read from MH i2c: E2 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: E2 0B 00 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: E2 0B 00 E7 7D 00 46 A7 08 F2 D7 0D AB F2 90 00 48 [12:32:16]RAPDU: 46 A7 08 F2 D7 0D AB F2 90 00 [12:32:16]wFMCommunicate OK [12:32:16]SAM_PROTO_SignData done [12:32:16]FM_MakeSignedData done [12:32:16]CreateOFDProtocolMessage [12:32:16]wFMCommunicate request_size=4 [12:32:16]MH_SAM_APDU [12:32:16]CAPDU: 80 11 00 00 [12:32:16]Write to MH i2c: E2 08 00 E8 7D 80 11 00 00 00 00 00 00 DF [12:32:16]Write i2c OK [12:32:16]MH_I2C_Read... [12:32:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:16]Read from MH i2c: E2 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: E2 17 00 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: E2 17 00 E8 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 2C [12:32:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:32:16]wFMCommunicate OK [12:32:16]CreateOFDProtocolMessage done [12:32:16]OFDSenderStorePacket 260672 [12:32:16]StoreOFDPacket docnum=260672 [12:32:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 40 35 07 01 95 1A 5A 03 01 00 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 B2 66 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 00 FA 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 F9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 50 00 00 00 00 07 04 06 00 B8 F9 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 D3 E9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 40 FA 03 00 35 04 06 00 61 E2 5A CC 65 36 46 A7 08 F2 D7 0D AB F2 [12:32:16]CheckFolder [12:32:16]dirname=/storage/ofd_packets [12:32:16]CheckFolder done [12:32:16]ProducePacketName [12:32:16]name=ofd_packets/00260672 [12:32:16]NVStorageSaveData ofd_packets/00260672 [12:32:16]File name is /storage/ofd_packets/00260672 [12:32:16]Write 301 bytes [12:32:16]NVStorageSaveData done [12:32:16]OFDSenderStorePacket done [12:32:16]KKMCreateOFDPacket done [12:32:16]NVStorageSaveData kkm_last_timestamp [12:32:16]File name is /storage/kkm_last_timestamp [12:32:16]Write 4 bytes [12:32:16]NVStorageSaveData done [12:32:16]ExternCall_PrintAddStr [12:32:16]wPrintStart [12:32:16]Write to MH i2c: 01 00 00 E9 7D 66 [12:32:16]Write i2c OK [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: 01 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: 01 07 00 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: 01 07 00 E9 7D 00 00 00 00 00 FF 0F 7B [12:32:16]RasterBufferAndPrint [12:32:16]line Счет N : (1)1036219 [12:32:16]line ИНН: 02508201610067 [12:32:16]line Контрольно-Кассовый Чек [12:32:16]line ПРОДАЖА [12:32:16]line ТРК (МРК, ГНК) : 13 [12:32:16]line Товар: 2710124500 [12:32:16]line Аи-95-К-5 [12:32:16]line 26.290 * 74.20 [12:32:16]line = 1950.72 [12:32:16]line НДС 12% НСП 1% [12:32:16]line > о реализуемом товаре [12:32:16]line ОКРУГЛЕНИЕ: -0.72 [12:32:16]line ИТОГО: 1950.00 [12:32:16]line Внесено: 1950.00 [12:32:16]line СДАЧА: 0.00 [12:32:16]line НСП 1% : 17.26 [12:32:16]line НДС 12% : 207.16 [12:32:16]line Наличными: 1950.00 [12:32:16]line Безнал.: 0.00 [12:32:16]line Место: АЗС № 94 "Партнер Нефть" [12:32:16]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [12:32:16]line СНО: Общий режим [12:32:16]line Чек 230 18.08.2024 12:32 [12:32:16]line Смена: 449 ФФД: 1.0 [12:32:16]line ЗНМ: 0300000099 [12:32:16]line РНМ: 0000000000091865 [12:32:16]line Версия ККМ: 001 [12:32:16]line ФМ: 0000000000871820 [12:32:16]line ФД: 260672 [12:32:16]line ФПД: 107624813847862 [12:32:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T123219&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260672&fm=107624813847862&tin=02508201610067®Number=0000000000091865&sum=195000 [12:32:17]OFD Sender: Processing packet 260672 [packets to send 192, broken 191] [12:32:17]ProducePacketName [12:32:17]name=ofd_packets/00260672 [12:32:17]OFD Sender: To server: pG, [12:32:17]CommunicateWithHost lk.salyk.kg:30040 [12:32:17]ConnectInit lk.salyk.kg [12:32:17]written 0, free lines is 4095 [12:32:17]Connected sock=11 [12:32: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 30 0F 01 00 00 40 35 07 01 95 1A 5A 03 01 00 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 B2 66 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 00 FA 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 F9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 50 00 00 00 00 07 04 06 00 B8 F9 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 D3 E9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 40 FA 03 00 35 04 06 00 61 E2 5A CC 65 36 46 A7 08 F2 D7 0D AB F2 [12:32: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 30 4F 00 00 00 2B 25 47 00 C7 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 40 FA 03 00 F4 03 04 00 28 93 C1 66 B6 04 01 00 00 F5 55 28 DF D9 07 C4 F6 [12:32:17]CommunicateWithHost err = 0 [12:32:17]CheckOFDResponse [12:32:17]1017 (14) - 77093643461234 [12:32:17]1041 (16) - 0000000000871820 [12:32:17]1040 (4) - 260672 [12:32:17]1012 (4) - 18.08.2024 06:22 [12:32:17]1206 (1) - 0 [12:32:17]OFD Sender: Remove packet 260672 [12:32:17]ProducePacketName [12:32:17]name=ofd_packets/00260672 [12:32:17]NVStorageDeleteData [12:32:17]Write to MH i2c: 01 00 00 14 7E 92 [12:32:17]Write i2c OK [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: 01 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: 01 07 00 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: 01 07 00 14 7E 00 00 00 00 00 75 0C 1A [12:32:17]RasterBufferAndPrint [12:32:17]line [12:32:17]line [12:32:17]line [12:32:17]line [12:32:17]line [12:32:17]written 0, free lines is 3194 [12:32:17]MH_Cut [12:32:17]Write to MH i2c: D1 01 00 1B 7E 01 6B [12:32:17]Write i2c OK [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: D1 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: D1 01 00 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: D1 01 00 1B 7E 00 6A [12:32:17]Write to MH i2c: 01 00 00 1C 7E 9A [12:32:17]Write i2c OK [12:32:17]MH_I2C_Read... [12:32:17]OFD Sender: No OFD packet to send [12:32:18]*** Cut start [12:32:18]*** Purtial cut [12:32:18]*** Stage 1: CUTSNS_PIN = 1 [12:32:20]Read from MH i2c: 01 [12:32:20]MH_I2C_Read... [12:32:20]*** Stop cut motor [12:32:20]*** Cut end [12:32:20]Read from MH i2c: 01 07 00 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: 01 07 00 1C 7E 00 00 00 00 00 FF 0F AF [12:32:20]process_action close_receipt done [12:32:20]requested_data is exist [12:32:20]produce_requested_data [12:32:20]requested_item fm.sn is exist - process it [12:32:20]wFMCommunicate request_size=4 [12:32:20]MH_SAM_APDU [12:32:20]CAPDU: 80 11 00 00 [12:32:20]Write to MH i2c: E2 08 00 1D 7E 80 11 00 00 00 00 00 00 15 [12:32:20]Write i2c OK [12:32:20]MH_I2C_Read... [12:32:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:20]Read from MH i2c: E2 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 17 00 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 17 00 1D 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 62 [12:32:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:32:20]wFMCommunicate OK [12:32:20]requested_item fd.num is exist - process it [12:32:20]SAM_PROTO_GetFieldsCounters [12:32:20]wFMCommunicate request_size=4 [12:32:20]MH_SAM_APDU [12:32:20]CAPDU: 80 13 00 00 [12:32:20]Write to MH i2c: E2 08 00 1E 7E 80 13 00 00 00 00 00 00 18 [12:32:20]Write i2c OK [12:32:20]MH_I2C_Read... [12:32:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:20]Read from MH i2c: E2 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 62 00 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 62 00 1E 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 40 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [12:32: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 40 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:32:20]wFMCommunicate OK [12:32:20]SAM_PROTO_GetFieldsCounters done [12:32:20]requested_item shift.num is exist - process it [12:32:20]requested_item shift.opened is exist - process it [12:32:20]req_shift_opened [12:32:20]FM_GetShiftState [12:32:20]SAM_PROTO_GetShiftState [12:32:20]wFMCommunicate request_size=4 [12:32:20]MH_SAM_APDU [12:32:20]CAPDU: 80 13 01 00 [12:32:20]Write to MH i2c: E2 08 00 1F 7E 80 13 01 00 00 00 00 00 1A [12:32:20]Write i2c OK [12:32:20]MH_I2C_Read... [12:32:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:20]Read from MH i2c: E2 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 0E 00 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 0E 00 1F 7E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 57 [12:32:20]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:32:20]wFMCommunicate OK [12:32:20]SAM_PROTO_GetShiftState done [12:32:20]FM_GetShiftState done [12:32:20]req_shift_opened done [12:32:20]requested_item shift.open_date is exist - process it [12:32:20]req_shift_open_date [12:32:20]req_shift_open_date done [12:32:20]produce_requested_data done [12:32:20]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260672,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [12:32:20]process_action_free close_receipt [12:32:20]json_value_free [12:32:20]json_value_free done [12:32:20]process_json_proto returns [12:32:20]Send response to host [12:32:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260672,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [12:32:20]free response buf [12:32:20]execute_script done [12:32:20]execute_script returns [12:32:20]free content buf [12:32:20]Sock 9.Close socket [12:32:20]Sock 9.Thread stoped [12:32:22]OFD Sender: No OFD packet to send [12:32:27]OFD Sender: No OFD packet to send [12:32:32]OFD Sender: No OFD packet to send [12:32:37]OFD Sender: No OFD packet to send [12:32:42]OFD Sender: No OFD packet to send [12:32:47]OFD Sender: No OFD packet to send [12:32:52]OFD Sender: No OFD packet to send [12:32:57]OFD Sender: No OFD packet to send [12:33:02]OFD Sender: No OFD packet to send [12:33:07]OFD Sender: No OFD packet to send [12:33:12]OFD Sender: No OFD packet to send [12:33:17]OFD Sender: No OFD packet to send [12:33:19]accept exits with 7 [12:33:19]New connection [12:33:19]New thread 3066617188 created [12:33:19]Thread 3066473828 joined [12:33:19]Waiting for new connection... [12:33:19] Sock 7.Parse request [12:33:19]Sock 7.Check first char [12:33:19]Sock 7.First char is OK [12:33:19]request: POST /json_proto HTTP/1.0 [12:33:19]Method: POST [12:33:19]URL: /json_proto [12:33:19]Method is POST - this is cgi request [12:33:19]url: /json_proto [12:33:19]query_string will be loaded in cgi processing [12:33:19]execute_cgi json_proto POST (null) [12:33:19]execute_cgi path=json_proto method=POST [12:33:19]POST find Content-Length [12:33:19]Host: 172.17.55.133:8080 [12:33:19]Content-Length: 806 [12:33:19]Content-Type: application/json [12:33:19] [12:33:19]POST finish read [12:33:19]Found Content-Length = 806 [12:33:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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\u000A4033336", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:19]execute_script... [12:33: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)1036221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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\u000A4033336", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:19]POST & json_proto [12:33:19]process_json_proto [12:33:19]json parsed OK: [12:33:19]protocol is kg_v1.0 [12:33:19]action value=close_receipt [12:33:19]process_action close_receipt [12:33:19]cmd_close_receipt [12:33:19]MH_GetDate [12:33:19]Write to MH i2c: F0 00 00 20 7E 8D [12:33:19]Write i2c OK [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: F0 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: F0 09 00 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: F0 09 00 20 7E 00 14 EA C1 66 34 48 D8 65 74 [12:33:19]GetLastDocTimeStamp 1723984339 [12:33:19]current date 1723984404 [12:33:19]FM_GetShiftState [12:33:19]SAM_PROTO_GetShiftState [12:33:19]wFMCommunicate request_size=4 [12:33:19]MH_SAM_APDU [12:33:19]CAPDU: 80 13 01 00 [12:33:19]Write to MH i2c: E2 08 00 21 7E 80 13 01 00 00 00 00 00 1C [12:33:19]Write i2c OK [12:33:19]MH_I2C_Read... [12:33:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:19]Read from MH i2c: E2 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: E2 0E 00 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: E2 0E 00 21 7E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 59 [12:33:19]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:33:19]wFMCommunicate OK [12:33:19]SAM_PROTO_GetShiftState done [12:33:19]FM_GetShiftState done [12:33:19]opened in 1723940556 [12:33:19]opened+sec_in_day 1724026956 [12:33:19]quantity*price = 0 [12:33:19]sum+1 = 1 [12:33:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 231 18.08.2024 12:33 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: Топливные Талоны 4033336 ФМ: 0000000000871820 ФД: 260673 ФПД: 169175065068905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T123324&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260673&fm=169175065068905&tin=02508201610067®Number=0000000000091865&sum=0 [12:33:20]StoreToDocumentArchive [12:33:20]shift 449 fd 260673 [12:33:20]save to /storage/0449/doc_00260673 [12:33:20]save last doc name /storage/0449/doc_00260673 to /storage/kkm_last_doc_name [12:33:20]save OK [12:33:20]Clear old archive folders... [12:33:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:33:20]tlvbuf is 0052B0E0 [12:33:20]SAM_PROTO_ClearQueue [12:33:20]wFMCommunicate request_size=4 [12:33:20]MH_SAM_APDU [12:33:20]CAPDU: 80 09 00 00 [12:33:20]Write to MH i2c: E2 08 00 2E 7E 80 09 00 00 00 00 00 00 1E [12:33:20]Write i2c OK [12:33:20]MH_I2C_Read... [12:33:20]Read from MH i2c: E2 [12:33:20]MH_I2C_Read... [12:33:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:20]Read from MH i2c: E2 03 00 [12:33:20]MH_I2C_Read... [12:33:20]Read from MH i2c: E2 03 00 2E 7E 00 90 00 20 [12:33:20]RAPDU: 90 00 [12:33:20]wFMCommunicate OK [12:33:20]SAM_PROTO_ClearQueue done [12:33:20]KKMCreateOFDPacket [12:33:20]OFDProtocolAddRootSTLVToBuf [12:33:20]FM_MakeSignedData [12:33:20]FM_MakeSignedData [12:33:20]SAM_PROTO_SignData [12:33:20]wFMCommunicate request_size=4 [12:33:20]MH_SAM_APDU [12:33:20]CAPDU: 80 0D 01 02 [12:33:20]Write to MH i2c: E2 08 00 2F 7E 80 0D 01 02 00 00 00 00 26 [12:33:20]Write i2c OK [12:33:20]MH_I2C_Read... [12:33:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:20]Read from MH i2c: E2 [12:33:20]MH_I2C_Read... [12:33:20]Read from MH i2c: E2 03 00 [12:33:20]MH_I2C_Read... [12:33:20]Read from MH i2c: E2 03 00 2F 7E 00 90 00 21 [12:33:20]RAPDU: 90 00 [12:33:20]wFMCommunicate OK [12:33:20]wFMCommunicate request_size=255 [12:33:20]MH_SAM_APDU [12:33:20]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 E7 00 00 00 F4 03 04 00 14 EA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 41 FA 03 00 35 04 06 00 [12:33:20]Write to MH i2c: E2 02 01 30 7E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 E7 00 00 00 F4 03 04 00 14 EA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 41 FA 03 00 35 04 06 00 00 00 AB [12:33:20]Write i2c OK [12:33:20]MH_I2C_Read... [12:33:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:20]Read from MH i2c: E2 [12:33:20]MH_I2C_Read... [12:33:20]Read from MH i2c: E2 03 00 [12:33:20]MH_I2C_Read... [12:33:20]Read from MH i2c: E2 03 00 30 7E 00 90 00 22 [12:33:20]RAPDU: 90 00 [12:33:20]wFMCommunicate OK [12:33:20]wFMCommunicate request_size=11 [12:33:20]MH_SAM_APDU [12:33:20]CAPDU: 80 0D 02 02 06 99 DD 23 A8 85 69 [12:33:20]Write to MH i2c: E2 0E 00 31 7E 80 0D 02 02 06 00 99 DD 23 A8 85 69 00 00 64 [12:33:20]Write i2c OK [12:33:20]MH_I2C_Read... [12:33:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:20]Read from MH i2c: E2 [12:33:20]MH_I2C_Read... [12:33:20]Read from MH i2c: E2 03 00 [12:33:20]MH_I2C_Read... [12:33:20]Read from MH i2c: E2 03 00 31 7E 00 90 00 23 [12:33:20]RAPDU: 90 00 [12:33:20]wFMCommunicate OK [12:33:20]wFMCommunicate request_size=4 [12:33:20]MH_SAM_APDU [12:33:20]CAPDU: 80 0D 03 02 [12:33:20]Write to MH i2c: E2 08 00 32 7E 80 0D 03 02 00 00 00 00 2B [12:33:20]Write i2c OK [12:33:20]MH_I2C_Read... [12:33:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:20]Read from MH i2c: E2 [12:33:20]MH_I2C_Read... [12:33:20]Read from MH i2c: E2 0B 00 [12:33:20]MH_I2C_Read... [12:33:20]Read from MH i2c: E2 0B 00 32 7E 00 E2 74 B5 E0 4A 9C D2 42 90 00 11 [12:33:20]RAPDU: E2 74 B5 E0 4A 9C D2 42 90 00 [12:33:20]wFMCommunicate OK [12:33:20]SAM_PROTO_SignData done [12:33:20]FM_MakeSignedData done [12:33:20]CreateOFDProtocolMessage [12:33:20]wFMCommunicate request_size=4 [12:33:20]MH_SAM_APDU [12:33:20]CAPDU: 80 11 00 00 [12:33:20]Write to MH i2c: E2 08 00 33 7E 80 11 00 00 00 00 00 00 2B [12:33:20]Write i2c OK [12:33:20]MH_I2C_Read... [12:33:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:20]Read from MH i2c: E2 [12:33:20]MH_I2C_Read... [12:33:20]Read from MH i2c: E2 17 00 [12:33:20]MH_I2C_Read... [12:33:20]Read from MH i2c: E2 17 00 33 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 78 [12:33:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:33:20]wFMCommunicate OK [12:33:20]CreateOFDProtocolMessage done [12:33:20]OFDSenderStorePacket 260673 [12:33:20]StoreOFDPacket docnum=260673 [12:33:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 2B B8 08 01 34 07 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 E7 00 00 00 F4 03 04 00 14 EA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 41 FA 03 00 35 04 06 00 99 DD 23 A8 85 69 E2 74 B5 E0 4A 9C D2 42 [12:33:20]CheckFolder [12:33:20]dirname=/storage/ofd_packets [12:33:20]CheckFolder done [12:33:20]ProducePacketName [12:33:20]name=ofd_packets/00260673 [12:33:20]NVStorageSaveData ofd_packets/00260673 [12:33:20]File name is /storage/ofd_packets/00260673 [12:33:20]Write 302 bytes [12:33:20]NVStorageSaveData done [12:33:20]OFDSenderStorePacket done [12:33:20]KKMCreateOFDPacket done [12:33:20]NVStorageSaveData kkm_last_timestamp [12:33:20]File name is /storage/kkm_last_timestamp [12:33:20]Write 4 bytes [12:33:20]NVStorageSaveData done [12:33:20]ExternCall_PrintAddStr [12:33:20]wPrintStart [12:33:20]Write to MH i2c: 01 00 00 34 7E B2 [12:33:20]Write i2c OK [12:33:20]MH_I2C_Read... [12:33:20]Read from MH i2c: 01 [12:33:20]MH_I2C_Read... [12:33:20]Read from MH i2c: 01 07 00 [12:33:20]MH_I2C_Read... [12:33:20]Read from MH i2c: 01 07 00 34 7E 00 00 00 00 00 FF 0F C7 [12:33:20]RasterBufferAndPrint [12:33:20]line Счет N : (1)1036221 [12:33:20]line ИНН: 02508201610067 [12:33:20]line Контрольно-Кассовый Чек [12:33:20]line ПРОДАЖА [12:33:20]line ТРК (МРК, ГНК) : 33 [12:33:20]line Товар: 2710194210 [12:33:20]line ДТ(л)-К-4 [12:33:20]line 10.000 * 0.00 [12:33:20]line = 0.00 [12:33:20]line НДС 12% НСП 1% [12:33:20]line > о реализуемом товаре [12:33:20]line ИТОГО: 0.00 [12:33:20]line НСП 1% : 0.00 [12:33:20]line НДС 12% : 0.00 [12:33:20]line Наличными: 0.00 [12:33:20]line Безнал.: 0.00 [12:33:20]line Место: АЗС № 94 "Партнер Нефть" [12:33:20]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [12:33:20]line СНО: Общий режим [12:33:20]line Чек 231 18.08.2024 12:33 [12:33:20]line Смена: 449 ФФД: 1.0 [12:33:20]line ЗНМ: 0300000099 [12:33:20]line РНМ: 0000000000091865 [12:33:20]line Версия ККМ: 001 [12:33:20]line Талоны: Топливные Талоны [12:33:20]line 4033336 [12:33:20]line ФМ: 0000000000871820 [12:33:20]line ФД: 260673 [12:33:20]line ФПД: 169175065068905 [12:33:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T123324&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260673&fm=169175065068905&tin=02508201610067®Number=0000000000091865&sum=0 [12:33:21]OFD Sender: Processing packet 260673 [packets to send 192, broken 191] [12:33:21]ProducePacketName [12:33:21]name=ofd_packets/00260673 [12:33:21]OFD Sender: To server: pG, [12:33:21]CommunicateWithHost lk.salyk.kg:30040 [12:33:21]ConnectInit lk.salyk.kg [12:33:21]written 0, free lines is 4095 [12:33:21]Connected sock=10 [12:33: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 30 10 01 00 00 2B B8 08 01 34 07 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 E7 00 00 00 F4 03 04 00 14 EA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 41 FA 03 00 35 04 06 00 99 DD 23 A8 85 69 E2 74 B5 E0 4A 9C D2 42 [12:33: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 30 4F 00 00 00 60 0D 47 00 56 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 41 FA 03 00 F4 03 04 00 69 93 C1 66 B6 04 01 00 00 84 09 6A CF 59 A7 C0 30 [12:33:21]CommunicateWithHost err = 0 [12:33:21]CheckOFDResponse [12:33:21]1017 (14) - 77093643461234 [12:33:21]1041 (16) - 0000000000871820 [12:33:21]1040 (4) - 260673 [12:33:21]1012 (4) - 18.08.2024 06:23 [12:33:21]1206 (1) - 0 [12:33:21]OFD Sender: Remove packet 260673 [12:33:21]ProducePacketName [12:33:21]name=ofd_packets/00260673 [12:33:21]NVStorageDeleteData [12:33:21]Write to MH i2c: 01 00 00 5E 7E DC [12:33:21]Write i2c OK [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: 01 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: 01 07 00 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: 01 07 00 5E 7E 00 00 00 00 00 8C 0C 7B [12:33:21]RasterBufferAndPrint [12:33:21]line [12:33:21]line [12:33:21]line [12:33:21]line [12:33:21]line [12:33:21]written 0, free lines is 3216 [12:33:21]MH_Cut [12:33:21]Write to MH i2c: D1 01 00 65 7E 01 B5 [12:33:21]Write i2c OK [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: D1 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: D1 01 00 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: D1 01 00 65 7E 00 B4 [12:33:21]Write to MH i2c: 01 00 00 66 7E E4 [12:33:21]Write i2c OK [12:33:21]MH_I2C_Read... [12:33:22]OFD Sender: No OFD packet to send [12:33:22]*** Cut start [12:33:22]*** Purtial cut [12:33:22]*** Stage 1: CUTSNS_PIN = 1 [12:33:24]Read from MH i2c: 01 [12:33:24]MH_I2C_Read... [12:33:24]*** Stop cut motor [12:33:24]*** Cut end [12:33:24]Read from MH i2c: 01 07 00 [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: 01 07 00 66 7E 00 00 00 00 00 FF 0F F9 [12:33:24]process_action close_receipt done [12:33:24]requested_data is exist [12:33:24]produce_requested_data [12:33:24]requested_item fm.sn is exist - process it [12:33:24]wFMCommunicate request_size=4 [12:33:24]MH_SAM_APDU [12:33:24]CAPDU: 80 11 00 00 [12:33:24]Write to MH i2c: E2 08 00 67 7E 80 11 00 00 00 00 00 00 5F [12:33:24]Write i2c OK [12:33:24]MH_I2C_Read... [12:33:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:24]Read from MH i2c: E2 [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: E2 17 00 [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: E2 17 00 67 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 AC [12:33:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:33:24]wFMCommunicate OK [12:33:24]requested_item fd.num is exist - process it [12:33:24]SAM_PROTO_GetFieldsCounters [12:33:24]wFMCommunicate request_size=4 [12:33:24]MH_SAM_APDU [12:33:24]CAPDU: 80 13 00 00 [12:33:24]Write to MH i2c: E2 08 00 68 7E 80 13 00 00 00 00 00 00 62 [12:33:24]Write i2c OK [12:33:24]MH_I2C_Read... [12:33:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:25]Read from MH i2c: E2 [12:33:25]MH_I2C_Read... [12:33:25]Read from MH i2c: E2 62 00 [12:33:25]MH_I2C_Read... [12:33:25]Read from MH i2c: E2 62 00 68 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 41 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [12:33: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 41 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:33:25]wFMCommunicate OK [12:33:25]SAM_PROTO_GetFieldsCounters done [12:33:25]requested_item shift.num is exist - process it [12:33:25]requested_item shift.opened is exist - process it [12:33:25]req_shift_opened [12:33:25]FM_GetShiftState [12:33:25]SAM_PROTO_GetShiftState [12:33:25]wFMCommunicate request_size=4 [12:33:25]MH_SAM_APDU [12:33:25]CAPDU: 80 13 01 00 [12:33:25]Write to MH i2c: E2 08 00 69 7E 80 13 01 00 00 00 00 00 64 [12:33:25]Write i2c OK [12:33:25]MH_I2C_Read... [12:33:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:25]Read from MH i2c: E2 [12:33:25]MH_I2C_Read... [12:33:25]Read from MH i2c: E2 0E 00 [12:33:25]MH_I2C_Read... [12:33:25]Read from MH i2c: E2 0E 00 69 7E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A1 [12:33:25]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:33:25]wFMCommunicate OK [12:33:25]SAM_PROTO_GetShiftState done [12:33:25]FM_GetShiftState done [12:33:25]req_shift_opened done [12:33:25]requested_item shift.open_date is exist - process it [12:33:25]req_shift_open_date [12:33:25]req_shift_open_date done [12:33:25]produce_requested_data done [12:33:25]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260673,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [12:33:25]process_action_free close_receipt [12:33:25]json_value_free [12:33:25]json_value_free done [12:33:25]process_json_proto returns [12:33:25]Send response to host [12:33:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260673,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [12:33:25]free response buf [12:33:25]execute_script done [12:33:25]execute_script returns [12:33:25]free content buf [12:33:25]Sock 7.Close socket [12:33:25]Sock 7.Thread stoped [12:33:27]OFD Sender: No OFD packet to send [12:33:32]OFD Sender: No OFD packet to send [12:33:34]accept exits with 9 [12:33:34]New connection [12:33:34]New thread 3066473828 created [12:33:34] Sock 9.Parse request [12:33:34]Thread 3066617188 joined [12:33:34]Sock 9.Check first char [12:33:34]Waiting for new connection... [12:33:34]Sock 9.First char is OK [12:33:34]request: POST /json_proto HTTP/1.0 [12:33:34]Method: POST [12:33:34]URL: /json_proto [12:33:34]Method is POST - this is cgi request [12:33:34]url: /json_proto [12:33:34]query_string will be loaded in cgi processing [12:33:34]execute_cgi json_proto POST (null) [12:33:34]execute_cgi path=json_proto method=POST [12:33:34]POST find Content-Length [12:33:34]Host: 172.17.55.133:8080 [12:33:34]Content-Length: 678 [12:33:34]Content-Type: application/json [12:33:34] [12:33:34]POST finish read [12:33:34]Found Content-Length = 678 [12:33:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036222", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:34]execute_script... [12:33: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)1036222", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:34]POST & json_proto [12:33:34]process_json_proto [12:33:34]json parsed OK: [12:33:34]protocol is kg_v1.0 [12:33:34]action value=close_receipt [12:33:34]process_action close_receipt [12:33:34]cmd_close_receipt [12:33:34]MH_GetDate [12:33:34]Write to MH i2c: F0 00 00 6A 7E D7 [12:33:34]Write i2c OK [12:33:34]MH_I2C_Read... [12:33:34]Read from MH i2c: F0 [12:33:34]MH_I2C_Read... [12:33:34]Read from MH i2c: F0 09 00 [12:33:34]MH_I2C_Read... [12:33:34]Read from MH i2c: F0 09 00 6A 7E 00 23 EA C1 66 34 48 D8 65 CD [12:33:34]GetLastDocTimeStamp 1723984404 [12:33:34]current date 1723984419 [12:33:34]FM_GetShiftState [12:33:34]SAM_PROTO_GetShiftState [12:33:34]wFMCommunicate request_size=4 [12:33:34]MH_SAM_APDU [12:33:34]CAPDU: 80 13 01 00 [12:33:34]Write to MH i2c: E2 08 00 6B 7E 80 13 01 00 00 00 00 00 66 [12:33:34]Write i2c OK [12:33:34]MH_I2C_Read... [12:33:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:34]Read from MH i2c: E2 [12:33:34]MH_I2C_Read... [12:33:34]Read from MH i2c: E2 0E 00 [12:33:34]MH_I2C_Read... [12:33:34]Read from MH i2c: E2 0E 00 6B 7E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A3 [12:33:34]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:33:34]wFMCommunicate OK [12:33:34]SAM_PROTO_GetShiftState done [12:33:34]FM_GetShiftState done [12:33:34]opened in 1723940556 [12:33:34]opened+sec_in_day 1724026956 [12:33:34]quantity*price = 50010 [12:33:34]sum+1 = 50012 [12:33:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 232 18.08.2024 12:33 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260674 ФПД: 154907351297107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T123339&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260674&fm=154907351297107&tin=02508201610067®Number=0000000000091865&sum=50000 [12:33:35]StoreToDocumentArchive [12:33:35]shift 449 fd 260674 [12:33:35]save to /storage/0449/doc_00260674 [12:33:35]save last doc name /storage/0449/doc_00260674 to /storage/kkm_last_doc_name [12:33:35]save OK [12:33:35]Clear old archive folders... [12:33:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:33:35]tlvbuf is 004536F0 [12:33:35]SAM_PROTO_ClearQueue [12:33:35]wFMCommunicate request_size=4 [12:33:35]MH_SAM_APDU [12:33:35]CAPDU: 80 09 00 00 [12:33:35]Write to MH i2c: E2 08 00 78 7E 80 09 00 00 00 00 00 00 68 [12:33:35]Write i2c OK [12:33:35]MH_I2C_Read... [12:33:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:35]Read from MH i2c: E2 [12:33:35]MH_I2C_Read... [12:33:35]Read from MH i2c: E2 03 00 [12:33:35]MH_I2C_Read... [12:33:35]Read from MH i2c: E2 03 00 78 7E 00 90 00 6A [12:33:35]RAPDU: 90 00 [12:33:35]wFMCommunicate OK [12:33:35]SAM_PROTO_ClearQueue done [12:33:35]KKMCreateOFDPacket [12:33:35]OFDProtocolAddRootSTLVToBuf [12:33:35]FM_MakeSignedData [12:33:35]FM_MakeSignedData [12:33:35]SAM_PROTO_SignData [12:33:35]wFMCommunicate request_size=4 [12:33:35]MH_SAM_APDU [12:33:35]CAPDU: 80 0D 01 02 [12:33:35]Write to MH i2c: E2 08 00 79 7E 80 0D 01 02 00 00 00 00 70 [12:33:35]Write i2c OK [12:33:35]MH_I2C_Read... [12:33:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:35]Read from MH i2c: E2 [12:33:35]MH_I2C_Read... [12:33:35]Read from MH i2c: E2 03 00 [12:33:35]MH_I2C_Read... [12:33:35]Read from MH i2c: E2 03 00 79 7E 00 90 00 6B [12:33:35]RAPDU: 90 00 [12:33:35]wFMCommunicate OK [12:33:35]wFMCommunicate request_size=255 [12:33:35]MH_SAM_APDU [12:33: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 23 EA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 42 FA 03 00 35 04 06 00 8C [12:33:35]Write to MH i2c: E2 02 01 7A 7E 80 0D 02 02 FA 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 23 EA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 42 FA 03 00 35 04 06 00 8C 00 00 7E [12:33:35]Write i2c OK [12:33:35]MH_I2C_Read... [12:33:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:35]Read from MH i2c: E2 [12:33:35]MH_I2C_Read... [12:33:35]Read from MH i2c: E2 03 00 [12:33:35]MH_I2C_Read... [12:33:35]Read from MH i2c: E2 03 00 7A 7E 00 90 00 6C [12:33:35]RAPDU: 90 00 [12:33:35]wFMCommunicate OK [12:33:35]wFMCommunicate request_size=10 [12:33:35]MH_SAM_APDU [12:33:35]CAPDU: 80 0D 02 02 05 E3 2D A5 AC 53 [12:33:35]Write to MH i2c: E2 0D 00 7B 7E 80 0D 02 02 05 00 E3 2D A5 AC 53 00 00 31 [12:33:35]Write i2c OK [12:33:35]MH_I2C_Read... [12:33:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:36]Read from MH i2c: E2 [12:33:36]MH_I2C_Read... [12:33:36]Read from MH i2c: E2 03 00 [12:33:36]MH_I2C_Read... [12:33:36]Read from MH i2c: E2 03 00 7B 7E 00 90 00 6D [12:33:36]RAPDU: 90 00 [12:33:36]wFMCommunicate OK [12:33:36]wFMCommunicate request_size=4 [12:33:36]MH_SAM_APDU [12:33:36]CAPDU: 80 0D 03 02 [12:33:36]Write to MH i2c: E2 08 00 7C 7E 80 0D 03 02 00 00 00 00 75 [12:33:36]Write i2c OK [12:33:36]MH_I2C_Read... [12:33:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:36]Read from MH i2c: E2 [12:33:36]MH_I2C_Read... [12:33:36]Read from MH i2c: E2 0B 00 [12:33:36]MH_I2C_Read... [12:33:36]Read from MH i2c: E2 0B 00 7C 7E 00 35 F4 8D F4 76 98 E2 42 90 00 52 [12:33:36]RAPDU: 35 F4 8D F4 76 98 E2 42 90 00 [12:33:36]wFMCommunicate OK [12:33:36]SAM_PROTO_SignData done [12:33:36]FM_MakeSignedData done [12:33:36]CreateOFDProtocolMessage [12:33:36]wFMCommunicate request_size=4 [12:33:36]MH_SAM_APDU [12:33:36]CAPDU: 80 11 00 00 [12:33:36]Write to MH i2c: E2 08 00 7D 7E 80 11 00 00 00 00 00 00 75 [12:33:36]Write i2c OK [12:33:36]MH_I2C_Read... [12:33:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:36]Read from MH i2c: E2 [12:33:36]MH_I2C_Read... [12:33:36]Read from MH i2c: E2 17 00 [12:33:36]MH_I2C_Read... [12:33:36]Read from MH i2c: E2 17 00 7D 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C2 [12:33:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:33:36]wFMCommunicate OK [12:33:36]CreateOFDProtocolMessage done [12:33:36]OFDSenderStorePacket 260674 [12:33:36]StoreOFDPacket docnum=260674 [12:33:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 40 5C 07 01 2B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 23 EA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 42 FA 03 00 35 04 06 00 8C E3 2D A5 AC 53 35 F4 8D F4 76 98 E2 42 [12:33:36]CheckFolder [12:33:36]dirname=/storage/ofd_packets [12:33:36]CheckFolder done [12:33:36]ProducePacketName [12:33:36]name=ofd_packets/00260674 [12:33:36]NVStorageSaveData ofd_packets/00260674 [12:33:36]File name is /storage/ofd_packets/00260674 [12:33:36]Write 301 bytes [12:33:36]NVStorageSaveData done [12:33:36]OFDSenderStorePacket done [12:33:36]KKMCreateOFDPacket done [12:33:36]NVStorageSaveData kkm_last_timestamp [12:33:36]File name is /storage/kkm_last_timestamp [12:33:36]Write 4 bytes [12:33:36]NVStorageSaveData done [12:33:36]ExternCall_PrintAddStr [12:33:36]wPrintStart [12:33:36]Write to MH i2c: 01 00 00 7E 7E FC [12:33:36]Write i2c OK [12:33:36]MH_I2C_Read... [12:33:36]Read from MH i2c: 01 [12:33:36]MH_I2C_Read... [12:33:36]Read from MH i2c: 01 07 00 [12:33:36]MH_I2C_Read... [12:33:36]Read from MH i2c: 01 07 00 7E 7E 00 00 00 00 00 FF 0F 11 [12:33:36]RasterBufferAndPrint [12:33:36]line Счет N : (1)1036222 [12:33:36]line ИНН: 02508201610067 [12:33:36]line Контрольно-Кассовый Чек [12:33:36]line ПРОДАЖА [12:33:36]line ТРК (МРК, ГНК) : 13 [12:33:36]line Товар: 2710124500 [12:33:36]line Аи-95-К-5 [12:33:36]line 6.740 * 74.20 [12:33:36]line = 500.11 [12:33:36]line НДС 12% НСП 1% [12:33:36]line > о реализуемом товаре [12:33:36]line ОКРУГЛЕНИЕ: -0.11 [12:33:36]line ИТОГО: 500.00 [12:33:36]line Внесено: 500.00 [12:33:36]line СДАЧА: 0.00 [12:33:36]line НСП 1% : 4.43 [12:33:36]line НДС 12% : 53.11 [12:33:36]line Наличными: 500.00 [12:33:36]line Безнал.: 0.00 [12:33:36]line Место: АЗС № 94 "Партнер Нефть" [12:33:36]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [12:33:36]line СНО: Общий режим [12:33:36]line Чек 232 18.08.2024 12:33 [12:33:36]line Смена: 449 ФФД: 1.0 [12:33:36]line ЗНМ: 0300000099 [12:33:36]line РНМ: 0000000000091865 [12:33:36]line Версия ККМ: 001 [12:33:36]line ФМ: 0000000000871820 [12:33:36]line ФД: 260674 [12:33:36]line ФПД: 154907351297107 [12:33:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T123339&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260674&fm=154907351297107&tin=02508201610067®Number=0000000000091865&sum=50000 [12:33:36]written 0, free lines is 4095 [12:33:36]OFD Sender: Processing packet 260674 [packets to send 192, broken 191] [12:33:36]ProducePacketName [12:33:36]name=ofd_packets/00260674 [12:33:36]OFD Sender: To server: pG, [12:33:36]CommunicateWithHost lk.salyk.kg:30040 [12:33:36]ConnectInit lk.salyk.kg [12:33:36]Connected sock=10 [12:33: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 30 0F 01 00 00 40 5C 07 01 2B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 23 EA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 42 FA 03 00 35 04 06 00 8C E3 2D A5 AC 53 35 F4 8D F4 76 98 E2 42 [12:33: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 30 4F 00 00 00 16 4B 47 00 2C 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 42 FA 03 00 F4 03 04 00 78 93 C1 66 B6 04 01 00 00 3E 4A A1 74 2A 29 73 60 [12:33:36]CommunicateWithHost err = 0 [12:33:36]CheckOFDResponse [12:33:36]1017 (14) - 77093643461234 [12:33:36]1041 (16) - 0000000000871820 [12:33:36]1040 (4) - 260674 [12:33:36]1012 (4) - 18.08.2024 06:23 [12:33:36]1206 (1) - 0 [12:33:36]OFD Sender: Remove packet 260674 [12:33:36]ProducePacketName [12:33:36]name=ofd_packets/00260674 [12:33:36]NVStorageDeleteData [12:33:36]Write to MH i2c: 01 00 00 A9 7E 27 [12:33:36]Write i2c OK [12:33:36]MH_I2C_Read... [12:33:36]Read from MH i2c: 01 [12:33:36]MH_I2C_Read... [12:33:36]Read from MH i2c: 01 07 00 [12:33:36]MH_I2C_Read... [12:33:36]Read from MH i2c: 01 07 00 A9 7E 00 00 00 00 00 69 0C A3 [12:33:36]RasterBufferAndPrint [12:33:36]line [12:33:36]line [12:33:36]line [12:33:36]line [12:33:36]line [12:33:36]written 0, free lines is 3180 [12:33:36]MH_Cut [12:33:36]Write to MH i2c: D1 01 00 B0 7E 01 00 [12:33:36]Write i2c OK [12:33:36]MH_I2C_Read... [12:33:36]Read from MH i2c: D1 [12:33:36]MH_I2C_Read... [12:33:36]Read from MH i2c: D1 01 00 [12:33:36]MH_I2C_Read... [12:33:36]Read from MH i2c: D1 01 00 B0 7E 00 FF [12:33:36]Write to MH i2c: 01 00 00 B1 7E 2F [12:33:36]Write i2c OK [12:33:36]MH_I2C_Read... [12:33:37]OFD Sender: No OFD packet to send [12:33:38]*** Cut start [12:33:38]*** Purtial cut [12:33:38]*** Stage 1: CUTSNS_PIN = 1 [12:33:40]Read from MH i2c: 01 [12:33:40]MH_I2C_Read... [12:33:40]*** Stop cut motor [12:33:40]*** Cut end [12:33:40]Read from MH i2c: 01 07 00 [12:33:40]MH_I2C_Read... [12:33:40]Read from MH i2c: 01 07 00 B1 7E 00 00 00 00 00 FF 0F 44 [12:33:40]process_action close_receipt done [12:33:40]requested_data is exist [12:33:40]produce_requested_data [12:33:40]requested_item fm.sn is exist - process it [12:33:40]wFMCommunicate request_size=4 [12:33:40]MH_SAM_APDU [12:33:40]CAPDU: 80 11 00 00 [12:33:40]Write to MH i2c: E2 08 00 B2 7E 80 11 00 00 00 00 00 00 AA [12:33:40]Write i2c OK [12:33:40]MH_I2C_Read... [12:33:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:40]Read from MH i2c: E2 [12:33:40]MH_I2C_Read... [12:33:40]Read from MH i2c: E2 17 00 [12:33:40]MH_I2C_Read... [12:33:40]Read from MH i2c: E2 17 00 B2 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F7 [12:33:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:33:40]wFMCommunicate OK [12:33:40]requested_item fd.num is exist - process it [12:33:40]SAM_PROTO_GetFieldsCounters [12:33:40]wFMCommunicate request_size=4 [12:33:40]MH_SAM_APDU [12:33:40]CAPDU: 80 13 00 00 [12:33:40]Write to MH i2c: E2 08 00 B3 7E 80 13 00 00 00 00 00 00 AD [12:33:40]Write i2c OK [12:33:40]MH_I2C_Read... [12:33:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:40]Read from MH i2c: E2 [12:33:40]MH_I2C_Read... [12:33:40]Read from MH i2c: E2 62 00 [12:33:40]MH_I2C_Read... [12:33:40]Read from MH i2c: E2 62 00 B3 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 42 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [12:33: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 42 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:33:40]wFMCommunicate OK [12:33:40]SAM_PROTO_GetFieldsCounters done [12:33:40]requested_item shift.num is exist - process it [12:33:40]requested_item shift.opened is exist - process it [12:33:40]req_shift_opened [12:33:40]FM_GetShiftState [12:33:40]SAM_PROTO_GetShiftState [12:33:40]wFMCommunicate request_size=4 [12:33:40]MH_SAM_APDU [12:33:40]CAPDU: 80 13 01 00 [12:33:40]Write to MH i2c: E2 08 00 B4 7E 80 13 01 00 00 00 00 00 AF [12:33:40]Write i2c OK [12:33:40]MH_I2C_Read... [12:33:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:40]Read from MH i2c: E2 [12:33:40]MH_I2C_Read... [12:33:40]Read from MH i2c: E2 0E 00 [12:33:40]MH_I2C_Read... [12:33:40]Read from MH i2c: E2 0E 00 B4 7E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 EC [12:33:40]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:33:40]wFMCommunicate OK [12:33:40]SAM_PROTO_GetShiftState done [12:33:40]FM_GetShiftState done [12:33:40]req_shift_opened done [12:33:40]requested_item shift.open_date is exist - process it [12:33:40]req_shift_open_date [12:33:40]req_shift_open_date done [12:33:40]produce_requested_data done [12:33:40]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260674,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [12:33:40]process_action_free close_receipt [12:33:40]json_value_free [12:33:40]json_value_free done [12:33:40]process_json_proto returns [12:33:40]Send response to host [12:33:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260674,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [12:33:40]free response buf [12:33:40]execute_script done [12:33:40]execute_script returns [12:33:40]free content buf [12:33:40]Sock 9.Close socket [12:33:40]Sock 9.Thread stoped [12:33:42]OFD Sender: No OFD packet to send [12:33:47]OFD Sender: No OFD packet to send [12:33:52]OFD Sender: No OFD packet to send [12:33:57]OFD Sender: No OFD packet to send [12:34:02]OFD Sender: No OFD packet to send [12:34:07]OFD Sender: No OFD packet to send [12:34:12]OFD Sender: No OFD packet to send [12:34:17]OFD Sender: No OFD packet to send [12:34:22]OFD Sender: No OFD packet to send [12:34:27]OFD Sender: No OFD packet to send [12:34:32]OFD Sender: No OFD packet to send [12:34:37]OFD Sender: No OFD packet to send [12:34:42]OFD Sender: No OFD packet to send [12:34:47]OFD Sender: No OFD packet to send [12:34:52]OFD Sender: No OFD packet to send [12:34:57]OFD Sender: No OFD packet to send [12:35:02]OFD Sender: No OFD packet to send [12:35:07]OFD Sender: No OFD packet to send [12:35:12]OFD Sender: No OFD packet to send [12:35:17]OFD Sender: No OFD packet to send [12:35:22]OFD Sender: No OFD packet to send [12:35:27]OFD Sender: No OFD packet to send [12:35:32]OFD Sender: No OFD packet to send [12:35:37]OFD Sender: No OFD packet to send [12:35:42]OFD Sender: No OFD packet to send [12:35:47]OFD Sender: No OFD packet to send [12:35:52]OFD Sender: No OFD packet to send [12:35:57]OFD Sender: No OFD packet to send [12:36:02]OFD Sender: No OFD packet to send [12:36:07]OFD Sender: No OFD packet to send [12:36:12]OFD Sender: No OFD packet to send [12:36:17]OFD Sender: No OFD packet to send [12:36:22]OFD Sender: No OFD packet to send [12:36:27]OFD Sender: No OFD packet to send [12:36:32]OFD Sender: No OFD packet to send [12:36:37]OFD Sender: No OFD packet to send [12:36:42]OFD Sender: No OFD packet to send [12:36:47]OFD Sender: No OFD packet to send [12:36:52]OFD Sender: No OFD packet to send [12:36:57]OFD Sender: No OFD packet to send [12:37:02]OFD Sender: No OFD packet to send [12:37:07]OFD Sender: No OFD packet to send [12:37:12]OFD Sender: No OFD packet to send [12:37:17]OFD Sender: No OFD packet to send [12:37:22]OFD Sender: No OFD packet to send [12:37:27]OFD Sender: No OFD packet to send [12:37:32]OFD Sender: No OFD packet to send [12:37:37]OFD Sender: No OFD packet to send [12:37:42]OFD Sender: No OFD packet to send [12:37:47]OFD Sender: No OFD packet to send [12:37:52]OFD Sender: No OFD packet to send [12:37:57]OFD Sender: No OFD packet to send [12:38:00]accept exits with 7 [12:38:00]New connection [12:38:00]New thread 3066617188 created [12:38:00]Thread 3066473828 joined [12:38:00]Waiting for new connection... [12:38:00] Sock 7.Parse request [12:38:00]Sock 7.Check first char [12:38:00]Sock 7.First char is OK [12:38:00]request: POST /json_proto HTTP/1.0 [12:38:00]Method: POST [12:38:00]URL: /json_proto [12:38:00]Method is POST - this is cgi request [12:38:00]url: /json_proto [12:38:00]query_string will be loaded in cgi processing [12:38:00]execute_cgi json_proto POST (null) [12:38:00]execute_cgi path=json_proto method=POST [12:38:00]POST find Content-Length [12:38:00]Host: 172.17.55.133:8080 [12:38:00]Content-Length: 678 [12:38:00]Content-Type: application/json [12:38:00] [12:38:00]POST finish read [12:38:00]Found Content-Length = 678 [12:38:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:38:00]execute_script... [12:38: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)1036224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:38:00]POST & json_proto [12:38:00]process_json_proto [12:38:00]json parsed OK: [12:38:00]protocol is kg_v1.0 [12:38:00]action value=close_receipt [12:38:00]process_action close_receipt [12:38:00]cmd_close_receipt [12:38:00]MH_GetDate [12:38:00]Write to MH i2c: F0 00 00 B5 7E 22 [12:38:00]Write i2c OK [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: F0 [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: F0 09 00 [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: F0 09 00 B5 7E 00 2D EB C1 66 34 48 D8 65 23 [12:38:00]GetLastDocTimeStamp 1723984419 [12:38:00]current date 1723984685 [12:38:00]FM_GetShiftState [12:38:00]SAM_PROTO_GetShiftState [12:38:00]wFMCommunicate request_size=4 [12:38:00]MH_SAM_APDU [12:38:00]CAPDU: 80 13 01 00 [12:38:00]Write to MH i2c: E2 08 00 B6 7E 80 13 01 00 00 00 00 00 B1 [12:38:00]Write i2c OK [12:38:00]MH_I2C_Read... [12:38:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:00]Read from MH i2c: E2 [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: E2 0E 00 [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: E2 0E 00 B6 7E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 EE [12:38:00]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:38:00]wFMCommunicate OK [12:38:00]SAM_PROTO_GetShiftState done [12:38:00]FM_GetShiftState done [12:38:00]opened in 1723940556 [12:38:00]opened+sec_in_day 1724026956 [12:38:00]quantity*price = 50036 [12:38:00]sum+1 = 50037 [12:38:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 233 18.08.2024 12:38 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260675 ФПД: 217800941403349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T123805&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260675&fm=217800941403349&tin=02508201610067®Number=0000000000091865&sum=50000 [12:38:01]StoreToDocumentArchive [12:38:01]shift 449 fd 260675 [12:38:01]save to /storage/0449/doc_00260675 [12:38:01]save last doc name /storage/0449/doc_00260675 to /storage/kkm_last_doc_name [12:38:01]save OK [12:38:01]Clear old archive folders... [12:38:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:38:01]tlvbuf is 0036EAE0 [12:38:01]SAM_PROTO_ClearQueue [12:38:01]wFMCommunicate request_size=4 [12:38:01]MH_SAM_APDU [12:38:01]CAPDU: 80 09 00 00 [12:38:01]Write to MH i2c: E2 08 00 C3 7E 80 09 00 00 00 00 00 00 B3 [12:38:01]Write i2c OK [12:38:01]MH_I2C_Read... [12:38:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:01]Read from MH i2c: E2 [12:38:01]MH_I2C_Read... [12:38:01]Read from MH i2c: E2 03 00 [12:38:01]MH_I2C_Read... [12:38:01]Read from MH i2c: E2 03 00 C3 7E 00 90 00 B5 [12:38:01]RAPDU: 90 00 [12:38:01]wFMCommunicate OK [12:38:01]SAM_PROTO_ClearQueue done [12:38:01]KKMCreateOFDPacket [12:38:01]OFDProtocolAddRootSTLVToBuf [12:38:01]FM_MakeSignedData [12:38:01]FM_MakeSignedData [12:38:01]SAM_PROTO_SignData [12:38:01]wFMCommunicate request_size=4 [12:38:01]MH_SAM_APDU [12:38:01]CAPDU: 80 0D 01 02 [12:38:01]Write to MH i2c: E2 08 00 C4 7E 80 0D 01 02 00 00 00 00 BB [12:38:01]Write i2c OK [12:38:01]MH_I2C_Read... [12:38:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:01]Read from MH i2c: E2 [12:38:01]MH_I2C_Read... [12:38:01]Read from MH i2c: E2 03 00 [12:38:01]MH_I2C_Read... [12:38:01]Read from MH i2c: E2 03 00 C4 7E 00 90 00 B6 [12:38:01]RAPDU: 90 00 [12:38:01]wFMCommunicate OK [12:38:01]wFMCommunicate request_size=255 [12:38:01]MH_SAM_APDU [12:38:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E9 00 00 00 F4 03 04 00 2D EB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 43 FA 03 00 35 04 06 00 C6 [12:38:01]Write to MH i2c: E2 02 01 C5 7E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E9 00 00 00 F4 03 04 00 2D EB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 43 FA 03 00 35 04 06 00 C6 00 00 28 [12:38:01]Write i2c OK [12:38:01]MH_I2C_Read... [12:38:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:02]Read from MH i2c: E2 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: E2 03 00 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: E2 03 00 C5 7E 00 90 00 B7 [12:38:02]RAPDU: 90 00 [12:38:02]wFMCommunicate OK [12:38:02]wFMCommunicate request_size=10 [12:38:02]MH_SAM_APDU [12:38:02]CAPDU: 80 0D 02 02 05 16 BB BE 7C D5 [12:38:02]Write to MH i2c: E2 0D 00 C6 7E 80 0D 02 02 05 00 16 BB BE 7C D5 00 00 A8 [12:38:02]Write i2c OK [12:38:02]MH_I2C_Read... [12:38:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:02]Read from MH i2c: E2 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: E2 03 00 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: E2 03 00 C6 7E 00 90 00 B8 [12:38:02]RAPDU: 90 00 [12:38:02]wFMCommunicate OK [12:38:02]wFMCommunicate request_size=4 [12:38:02]MH_SAM_APDU [12:38:02]CAPDU: 80 0D 03 02 [12:38:02]Write to MH i2c: E2 08 00 C7 7E 80 0D 03 02 00 00 00 00 C0 [12:38:02]Write i2c OK [12:38:02]MH_I2C_Read... [12:38:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:02]Read from MH i2c: E2 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: E2 0B 00 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: E2 0B 00 C7 7E 00 D4 C3 99 D1 D3 51 D7 0E 90 00 CB [12:38:02]RAPDU: D4 C3 99 D1 D3 51 D7 0E 90 00 [12:38:02]wFMCommunicate OK [12:38:02]SAM_PROTO_SignData done [12:38:02]FM_MakeSignedData done [12:38:02]CreateOFDProtocolMessage [12:38:02]wFMCommunicate request_size=4 [12:38:02]MH_SAM_APDU [12:38:02]CAPDU: 80 11 00 00 [12:38:02]Write to MH i2c: E2 08 00 C8 7E 80 11 00 00 00 00 00 00 C0 [12:38:02]Write i2c OK [12:38:02]MH_I2C_Read... [12:38:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:02]Read from MH i2c: E2 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: E2 17 00 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: E2 17 00 C8 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 0D [12:38:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:38:02]wFMCommunicate OK [12:38:02]CreateOFDProtocolMessage done [12:38:02]OFDSenderStorePacket 260675 [12:38:02]StoreOFDPacket docnum=260675 [12:38:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 DD A2 07 01 D8 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E9 00 00 00 F4 03 04 00 2D EB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 43 FA 03 00 35 04 06 00 C6 16 BB BE 7C D5 D4 C3 99 D1 D3 51 D7 0E [12:38:02]CheckFolder [12:38:02]dirname=/storage/ofd_packets [12:38:02]CheckFolder done [12:38:02]ProducePacketName [12:38:02]name=ofd_packets/00260675 [12:38:02]NVStorageSaveData ofd_packets/00260675 [12:38:02]File name is /storage/ofd_packets/00260675 [12:38:02]Write 301 bytes [12:38:02]NVStorageSaveData done [12:38:02]OFDSenderStorePacket done [12:38:02]KKMCreateOFDPacket done [12:38:02]NVStorageSaveData kkm_last_timestamp [12:38:02]File name is /storage/kkm_last_timestamp [12:38:02]Write 4 bytes [12:38:02]NVStorageSaveData done [12:38:02]ExternCall_PrintAddStr [12:38:02]wPrintStart [12:38:02]Write to MH i2c: 01 00 00 C9 7E 47 [12:38:02]Write i2c OK [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: 01 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: 01 07 00 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: 01 07 00 C9 7E 00 00 00 00 00 FF 0F 5C [12:38:02]RasterBufferAndPrint [12:38:02]line Счет N : (1)1036224 [12:38:02]line ИНН: 02508201610067 [12:38:02]line Контрольно-Кассовый Чек [12:38:02]line ПРОДАЖА [12:38:02]line ТРК (МРК, ГНК) : 22 [12:38:02]line Товар: 2710124130 [12:38:02]line Аи-92-К-5 [12:38:02]line 7.380 * 67.80 [12:38:02]line = 500.36 [12:38:02]line НДС 12% НСП 1% [12:38:02]line > о реализуемом товаре [12:38:02]line ОКРУГЛЕНИЕ: -0.36 [12:38:02]line ИТОГО: 500.00 [12:38:02]line Внесено: 500.00 [12:38:02]line СДАЧА: 0.00 [12:38:02]line НСП 1% : 4.43 [12:38:02]line НДС 12% : 53.14 [12:38:02]line Наличными: 500.00 [12:38:02]line Безнал.: 0.00 [12:38:02]line Место: АЗС № 94 "Партнер Нефть" [12:38:02]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [12:38:02]line СНО: Общий режим [12:38:02]line Чек 233 18.08.2024 12:38 [12:38:02]line Смена: 449 ФФД: 1.0 [12:38:02]line ЗНМ: 0300000099 [12:38:02]line РНМ: 0000000000091865 [12:38:02]line Версия ККМ: 001 [12:38:02]line ФМ: 0000000000871820 [12:38:02]line ФД: 260675 [12:38:02]line ФПД: 217800941403349 [12:38:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T123805&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260675&fm=217800941403349&tin=02508201610067®Number=0000000000091865&sum=50000 [12:38:02]written 0, free lines is 4095 [12:38:02]OFD Sender: Processing packet 260675 [packets to send 192, broken 191] [12:38:02]ProducePacketName [12:38:02]name=ofd_packets/00260675 [12:38:02]OFD Sender: To server: pG, [12:38:02]CommunicateWithHost lk.salyk.kg:30040 [12:38:02]ConnectInit lk.salyk.kg [12:38:02]Connected sock=10 [12:38: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 30 0F 01 00 00 DD A2 07 01 D8 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E9 00 00 00 F4 03 04 00 2D EB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 43 FA 03 00 35 04 06 00 C6 16 BB BE 7C D5 D4 C3 99 D1 D3 51 D7 0E [12:38:02]Write to MH i2c: 01 00 00 F4 7E 72 [12:38:02]Write i2c OK [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: 01 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: 01 07 00 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: 01 07 00 F4 7E 00 00 00 00 00 6C 0C F1 [12:38:02]RasterBufferAndPrint [12:38:02]line [12:38:02]line [12:38:02]line [12:38:02]line [12:38:02]line [12:38:02]written 0, free lines is 3183 [12:38:02]MH_Cut [12:38:02]Write to MH i2c: D1 01 00 FB 7E 01 4B [12:38:02]Write i2c OK [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: D1 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: D1 01 00 [12:38:02]MH_I2C_Read... [12:38:02]Read from MH i2c: D1 01 00 FB 7E 00 4A [12:38:02]Write to MH i2c: 01 00 00 FC 7E 7A [12:38:02]Write i2c OK [12:38:02]MH_I2C_Read... [12:38: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 30 4F 00 00 00 0E 96 47 00 19 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 30 10 04 04 00 43 FA 03 00 F4 03 04 00 82 94 C1 66 B6 04 01 00 00 99 EF 76 28 B2 FF ED 1B [12:38:02]CommunicateWithHost err = 0 [12:38:02]CheckOFDResponse [12:38:02]1017 (14) - 77093643461234 [12:38:02]1041 (16) - 0000000000871820 [12:38:02]1040 (4) - 260675 [12:38:02]1012 (4) - 18.08.2024 06:28 [12:38:02]1206 (1) - 0 [12:38:02]OFD Sender: Remove packet 260675 [12:38:02]ProducePacketName [12:38:02]name=ofd_packets/00260675 [12:38:02]NVStorageDeleteData [12:38:03]OFD Sender: No OFD packet to send [12:38:03]*** Cut start [12:38:03]*** Purtial cut [12:38:03]*** Stage 1: CUTSNS_PIN = 1 [12:38:05]Read from MH i2c: 01 [12:38:05]MH_I2C_Read... [12:38:05]*** Stop cut motor [12:38:05]*** Cut end [12:38:05]Read from MH i2c: 01 07 00 [12:38:05]MH_I2C_Read... [12:38:05]Read from MH i2c: 01 07 00 FC 7E 00 00 00 00 00 FF 0F 8F [12:38:05]process_action close_receipt done [12:38:05]requested_data is exist [12:38:05]produce_requested_data [12:38:05]requested_item fm.sn is exist - process it [12:38:05]wFMCommunicate request_size=4 [12:38:05]MH_SAM_APDU [12:38:05]CAPDU: 80 11 00 00 [12:38:05]Write to MH i2c: E2 08 00 FD 7E 80 11 00 00 00 00 00 00 F5 [12:38:05]Write i2c OK [12:38:05]MH_I2C_Read... [12:38:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:05]Read from MH i2c: E2 [12:38:05]MH_I2C_Read... [12:38:05]Read from MH i2c: E2 17 00 [12:38:05]MH_I2C_Read... [12:38:05]Read from MH i2c: E2 17 00 FD 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 42 [12:38:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:38:05]wFMCommunicate OK [12:38:05]requested_item fd.num is exist - process it [12:38:05]SAM_PROTO_GetFieldsCounters [12:38:05]wFMCommunicate request_size=4 [12:38:05]MH_SAM_APDU [12:38:05]CAPDU: 80 13 00 00 [12:38:05]Write to MH i2c: E2 08 00 FE 7E 80 13 00 00 00 00 00 00 F8 [12:38:05]Write i2c OK [12:38:05]MH_I2C_Read... [12:38:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:06]Read from MH i2c: E2 [12:38:06]MH_I2C_Read... [12:38:06]Read from MH i2c: E2 62 00 [12:38:06]MH_I2C_Read... [12:38:06]Read from MH i2c: E2 62 00 FE 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 43 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [12:38: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 43 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:38:06]wFMCommunicate OK [12:38:06]SAM_PROTO_GetFieldsCounters done [12:38:06]requested_item shift.num is exist - process it [12:38:06]requested_item shift.opened is exist - process it [12:38:06]req_shift_opened [12:38:06]FM_GetShiftState [12:38:06]SAM_PROTO_GetShiftState [12:38:06]wFMCommunicate request_size=4 [12:38:06]MH_SAM_APDU [12:38:06]CAPDU: 80 13 01 00 [12:38:06]Write to MH i2c: E2 08 00 FF 7E 80 13 01 00 00 00 00 00 FA [12:38:06]Write i2c OK [12:38:06]MH_I2C_Read... [12:38:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:06]Read from MH i2c: E2 [12:38:06]MH_I2C_Read... [12:38:06]Read from MH i2c: E2 0E 00 [12:38:06]MH_I2C_Read... [12:38:06]Read from MH i2c: E2 0E 00 FF 7E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 37 [12:38:06]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:38:06]wFMCommunicate OK [12:38:06]SAM_PROTO_GetShiftState done [12:38:06]FM_GetShiftState done [12:38:06]req_shift_opened done [12:38:06]requested_item shift.open_date is exist - process it [12:38:06]req_shift_open_date [12:38:06]req_shift_open_date done [12:38:06]produce_requested_data done [12:38:06]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260675,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [12:38:06]process_action_free close_receipt [12:38:06]json_value_free [12:38:06]json_value_free done [12:38:06]process_json_proto returns [12:38:06]Send response to host [12:38:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260675,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [12:38:06]free response buf [12:38:06]execute_script done [12:38:06]execute_script returns [12:38:06]free content buf [12:38:06]Sock 7.Close socket [12:38:06]Sock 7.Thread stoped [12:38:08]OFD Sender: No OFD packet to send [12:38:11]accept exits with 9 [12:38:11]New connection [12:38:11]New thread 3066473828 created [12:38:11]Thread 3066617188 joined [12:38:11]Waiting for new connection... [12:38:11] Sock 9.Parse request [12:38:11]Sock 9.Check first char [12:38:11]Sock 9.First char is OK [12:38:11]request: POST /json_proto HTTP/1.0 [12:38:11]Method: POST [12:38:11]URL: /json_proto [12:38:11]Method is POST - this is cgi request [12:38:11]url: /json_proto [12:38:11]query_string will be loaded in cgi processing [12:38:11]execute_cgi json_proto POST (null) [12:38:11]execute_cgi path=json_proto method=POST [12:38:11]POST find Content-Length [12:38:11]Host: 172.17.55.133:8080 [12:38:11]Content-Length: 683 [12:38:11]Content-Type: application/json [12:38:11] [12:38:11]POST finish read [12:38:11]Found Content-Length = 683 [12:38:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036223", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:11]execute_script... [12:38: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)1036223", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:11]POST & json_proto [12:38:11]process_json_proto [12:38:11]json parsed OK: [12:38:11]protocol is kg_v1.0 [12:38:11]action value=close_receipt [12:38:11]process_action close_receipt [12:38:11]cmd_close_receipt [12:38:11]MH_GetDate [12:38:11]Write to MH i2c: F0 00 00 00 7F 6E [12:38:11]Write i2c OK [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: F0 [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: F0 09 00 [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: F0 09 00 00 7F 00 38 EB C1 66 34 48 D8 65 7A [12:38:11]GetLastDocTimeStamp 1723984685 [12:38:11]current date 1723984696 [12:38:11]FM_GetShiftState [12:38:11]SAM_PROTO_GetShiftState [12:38:11]wFMCommunicate request_size=4 [12:38:11]MH_SAM_APDU [12:38:11]CAPDU: 80 13 01 00 [12:38:11]Write to MH i2c: E2 08 00 01 7F 80 13 01 00 00 00 00 00 FD [12:38:11]Write i2c OK [12:38:11]MH_I2C_Read... [12:38:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:11]Read from MH i2c: E2 [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: E2 0E 00 [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: E2 0E 00 01 7F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 3A [12:38:11]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:38:11]wFMCommunicate OK [12:38:11]SAM_PROTO_GetShiftState done [12:38:11]FM_GetShiftState done [12:38:11]opened in 1723940556 [12:38:11]opened+sec_in_day 1724026956 [12:38:11]quantity*price = 100021 [12:38:11]sum+1 = 100023 [12:38:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 234 18.08.2024 12:38 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260676 ФПД: 201932029991114 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T123816&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260676&fm=201932029991114&tin=02508201610067®Number=0000000000091865&sum=100000 [12:38:12]StoreToDocumentArchive [12:38:12]shift 449 fd 260676 [12:38:12]save to /storage/0449/doc_00260676 [12:38:12]save last doc name /storage/0449/doc_00260676 to /storage/kkm_last_doc_name [12:38:12]save OK [12:38:12]Clear old archive folders... [12:38:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:38:12]tlvbuf is 0044F000 [12:38:12]SAM_PROTO_ClearQueue [12:38:12]wFMCommunicate request_size=4 [12:38:12]MH_SAM_APDU [12:38:12]CAPDU: 80 09 00 00 [12:38:12]Write to MH i2c: E2 08 00 0E 7F 80 09 00 00 00 00 00 00 FF [12:38:12]Write i2c OK [12:38:12]MH_I2C_Read... [12:38:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:12]Read from MH i2c: E2 [12:38:12]MH_I2C_Read... [12:38:12]Read from MH i2c: E2 03 00 [12:38:12]MH_I2C_Read... [12:38:12]Read from MH i2c: E2 03 00 0E 7F 00 90 00 01 [12:38:12]RAPDU: 90 00 [12:38:12]wFMCommunicate OK [12:38:12]SAM_PROTO_ClearQueue done [12:38:12]KKMCreateOFDPacket [12:38:12]OFDProtocolAddRootSTLVToBuf [12:38:12]FM_MakeSignedData [12:38:12]FM_MakeSignedData [12:38:12]SAM_PROTO_SignData [12:38:12]wFMCommunicate request_size=4 [12:38:12]MH_SAM_APDU [12:38:12]CAPDU: 80 0D 01 02 [12:38:12]Write to MH i2c: E2 08 00 0F 7F 80 0D 01 02 00 00 00 00 07 [12:38:12]Write i2c OK [12:38:12]MH_I2C_Read... [12:38:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:12]Read from MH i2c: E2 [12:38:12]MH_I2C_Read... [12:38:12]Read from MH i2c: E2 03 00 [12:38:12]MH_I2C_Read... [12:38:12]Read from MH i2c: E2 03 00 0F 7F 00 90 00 02 [12:38:12]RAPDU: 90 00 [12:38:12]wFMCommunicate OK [12:38:12]wFMCommunicate request_size=255 [12:38:12]MH_SAM_APDU [12:38: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 38 EB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 44 FA 03 00 35 04 06 00 B7 [12:38:12]Write to MH i2c: E2 02 01 10 7F 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 38 EB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 44 FA 03 00 35 04 06 00 B7 00 00 9F [12:38:12]Write i2c OK [12:38:12]MH_I2C_Read... [12:38:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:12]Read from MH i2c: E2 [12:38:12]MH_I2C_Read... [12:38:12]Read from MH i2c: E2 03 00 [12:38:12]MH_I2C_Read... [12:38:12]Read from MH i2c: E2 03 00 10 7F 00 90 00 03 [12:38:12]RAPDU: 90 00 [12:38:12]wFMCommunicate OK [12:38:12]wFMCommunicate request_size=10 [12:38:12]MH_SAM_APDU [12:38:12]CAPDU: 80 0D 02 02 05 A7 F6 EA 98 CA [12:38:12]Write to MH i2c: E2 0D 00 11 7F 80 0D 02 02 05 00 A7 F6 EA 98 CA 00 00 FD [12:38:12]Write i2c OK [12:38:12]MH_I2C_Read... [12:38:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:12]Read from MH i2c: E2 [12:38:12]MH_I2C_Read... [12:38:12]Read from MH i2c: E2 03 00 [12:38:12]MH_I2C_Read... [12:38:12]Read from MH i2c: E2 03 00 11 7F 00 90 00 04 [12:38:12]RAPDU: 90 00 [12:38:12]wFMCommunicate OK [12:38:12]wFMCommunicate request_size=4 [12:38:12]MH_SAM_APDU [12:38:12]CAPDU: 80 0D 03 02 [12:38:12]Write to MH i2c: E2 08 00 12 7F 80 0D 03 02 00 00 00 00 0C [12:38:13]Write i2c OK [12:38:13]MH_I2C_Read... [12:38:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:13]Read from MH i2c: E2 [12:38:13]MH_I2C_Read... [12:38:13]Read from MH i2c: E2 0B 00 [12:38:13]MH_I2C_Read... [12:38:13]Read from MH i2c: E2 0B 00 12 7F 00 6E 5D D0 74 44 FD 09 E9 90 00 4F [12:38:13]RAPDU: 6E 5D D0 74 44 FD 09 E9 90 00 [12:38:13]wFMCommunicate OK [12:38:13]SAM_PROTO_SignData done [12:38:13]FM_MakeSignedData done [12:38:13]CreateOFDProtocolMessage [12:38:13]wFMCommunicate request_size=4 [12:38:13]MH_SAM_APDU [12:38:13]CAPDU: 80 11 00 00 [12:38:13]Write to MH i2c: E2 08 00 13 7F 80 11 00 00 00 00 00 00 0C [12:38:13]Write i2c OK [12:38:13]MH_I2C_Read... [12:38:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:13]Read from MH i2c: E2 [12:38:13]MH_I2C_Read... [12:38:13]Read from MH i2c: E2 17 00 [12:38:13]MH_I2C_Read... [12:38:13]Read from MH i2c: E2 17 00 13 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 59 [12:38:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:38:13]wFMCommunicate OK [12:38:13]CreateOFDProtocolMessage done [12:38:13]OFDSenderStorePacket 260676 [12:38:13]StoreOFDPacket docnum=260676 [12:38:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 90 0D 07 01 F6 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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 38 EB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 44 FA 03 00 35 04 06 00 B7 A7 F6 EA 98 CA 6E 5D D0 74 44 FD 09 E9 [12:38:13]CheckFolder [12:38:13]dirname=/storage/ofd_packets [12:38:13]CheckFolder done [12:38:13]ProducePacketName [12:38:13]name=ofd_packets/00260676 [12:38:13]NVStorageSaveData ofd_packets/00260676 [12:38:13]File name is /storage/ofd_packets/00260676 [12:38:13]Write 301 bytes [12:38:13]NVStorageSaveData done [12:38:13]OFDSenderStorePacket done [12:38:13]KKMCreateOFDPacket done [12:38:13]NVStorageSaveData kkm_last_timestamp [12:38:13]File name is /storage/kkm_last_timestamp [12:38:13]Write 4 bytes [12:38:13]NVStorageSaveData done [12:38:13]ExternCall_PrintAddStr [12:38:13]wPrintStart [12:38:13]Write to MH i2c: 01 00 00 14 7F 93 [12:38:13]Write i2c OK [12:38:13]MH_I2C_Read... [12:38:13]Read from MH i2c: 01 [12:38:13]MH_I2C_Read... [12:38:13]Read from MH i2c: 01 07 00 [12:38:13]MH_I2C_Read... [12:38:13]Read from MH i2c: 01 07 00 14 7F 00 00 00 00 00 FF 0F A8 [12:38:13]RasterBufferAndPrint [12:38:13]line Счет N : (1)1036223 [12:38:13]line ИНН: 02508201610067 [12:38:13]line Контрольно-Кассовый Чек [12:38:13]line ПРОДАЖА [12:38:13]line ТРК (МРК, ГНК) : 13 [12:38:13]line Товар: 2710124500 [12:38:13]line Аи-95-К-5 [12:38:13]line 13.480 * 74.20 [12:38:13]line = 1000.22 [12:38:13]line НДС 12% НСП 1% [12:38:13]line > о реализуемом товаре [12:38:13]line ОКРУГЛЕНИЕ: -0.22 [12:38:13]line ИТОГО: 1000.00 [12:38:13]line Внесено: 1000.00 [12:38:13]line СДАЧА: 0.00 [12:38:13]line НСП 1% : 8.85 [12:38:13]line НДС 12% : 106.22 [12:38:13]line Наличными: 1000.00 [12:38:13]line Безнал.: 0.00 [12:38:13]line Место: АЗС № 94 "Партнер Нефть" [12:38:13]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [12:38:13]line СНО: Общий режим [12:38:13]line Чек 234 18.08.2024 12:38 [12:38:13]line Смена: 449 ФФД: 1.0 [12:38:13]line ЗНМ: 0300000099 [12:38:13]line РНМ: 0000000000091865 [12:38:13]line Версия ККМ: 001 [12:38:13]line ФМ: 0000000000871820 [12:38:13]line ФД: 260676 [12:38:13]line ФПД: 201932029991114 [12:38:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T123816&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260676&fm=201932029991114&tin=02508201610067®Number=0000000000091865&sum=100000 [12:38:13]written 0, free lines is 4095 [12:38:13]OFD Sender: Processing packet 260676 [packets to send 192, broken 191] [12:38:13]ProducePacketName [12:38:13]name=ofd_packets/00260676 [12:38:13]OFD Sender: To server: pG, [12:38:13]CommunicateWithHost lk.salyk.kg:30040 [12:38:13]ConnectInit lk.salyk.kg [12:38:13]Connected sock=10 [12:38: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 30 0F 01 00 00 90 0D 07 01 F6 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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 38 EB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 44 FA 03 00 35 04 06 00 B7 A7 F6 EA 98 CA 6E 5D D0 74 44 FD 09 E9 [12:38: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 30 4F 00 00 00 E2 3E 47 00 45 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 44 FA 03 00 F4 03 04 00 8D 94 C1 66 B6 04 01 00 00 41 58 59 BA 17 D3 29 1D [12:38:13]CommunicateWithHost err = 0 [12:38:13]CheckOFDResponse [12:38:13]1017 (14) - 77093643461234 [12:38:13]1041 (16) - 0000000000871820 [12:38:13]1040 (4) - 260676 [12:38:13]1012 (4) - 18.08.2024 06:28 [12:38:13]1206 (1) - 0 [12:38:13]OFD Sender: Remove packet 260676 [12:38:13]ProducePacketName [12:38:13]name=ofd_packets/00260676 [12:38:13]NVStorageDeleteData [12:38:13]Write to MH i2c: 01 00 00 3F 7F BE [12:38:13]Write i2c OK [12:38:13]MH_I2C_Read... [12:38:13]Read from MH i2c: 01 [12:38:13]MH_I2C_Read... [12:38:13]Read from MH i2c: 01 07 00 [12:38:13]MH_I2C_Read... [12:38:13]Read from MH i2c: 01 07 00 3F 7F 00 00 00 00 00 74 0C 45 [12:38:13]RasterBufferAndPrint [12:38:13]line [12:38:13]line [12:38:13]line [12:38:13]line [12:38:13]line [12:38:13]written 0, free lines is 3192 [12:38:13]MH_Cut [12:38:13]Write to MH i2c: D1 01 00 46 7F 01 97 [12:38:13]Write i2c OK [12:38:13]MH_I2C_Read... [12:38:13]Read from MH i2c: D1 [12:38:13]MH_I2C_Read... [12:38:13]Read from MH i2c: D1 01 00 [12:38:13]MH_I2C_Read... [12:38:13]Read from MH i2c: D1 01 00 46 7F 00 96 [12:38:13]Write to MH i2c: 01 00 00 47 7F C6 [12:38:13]Write i2c OK [12:38:13]MH_I2C_Read... [12:38:13]OFD Sender: No OFD packet to send [12:38:14]*** Cut start [12:38:14]*** Purtial cut [12:38:14]*** Stage 1: CUTSNS_PIN = 1 [12:38:16]Read from MH i2c: 01 [12:38:16]MH_I2C_Read... [12:38:16]*** Stop cut motor [12:38:16]*** Cut end [12:38:16]Read from MH i2c: 01 07 00 [12:38:16]MH_I2C_Read... [12:38:16]Read from MH i2c: 01 07 00 47 7F 00 00 00 00 00 FF 0F DB [12:38:16]process_action close_receipt done [12:38:16]requested_data is exist [12:38:16]produce_requested_data [12:38:16]requested_item fm.sn is exist - process it [12:38:16]wFMCommunicate request_size=4 [12:38:16]MH_SAM_APDU [12:38:16]CAPDU: 80 11 00 00 [12:38:16]Write to MH i2c: E2 08 00 48 7F 80 11 00 00 00 00 00 00 41 [12:38:16]Write i2c OK [12:38:16]MH_I2C_Read... [12:38:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:16]Read from MH i2c: E2 [12:38:16]MH_I2C_Read... [12:38:16]Read from MH i2c: E2 17 00 [12:38:16]MH_I2C_Read... [12:38:16]Read from MH i2c: E2 17 00 48 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 8E [12:38:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:38:16]wFMCommunicate OK [12:38:16]requested_item fd.num is exist - process it [12:38:16]SAM_PROTO_GetFieldsCounters [12:38:16]wFMCommunicate request_size=4 [12:38:16]MH_SAM_APDU [12:38:16]CAPDU: 80 13 00 00 [12:38:16]Write to MH i2c: E2 08 00 49 7F 80 13 00 00 00 00 00 00 44 [12:38:16]Write i2c OK [12:38:16]MH_I2C_Read... [12:38:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:16]Read from MH i2c: E2 [12:38:16]MH_I2C_Read... [12:38:16]Read from MH i2c: E2 62 00 [12:38:16]MH_I2C_Read... [12:38:16]Read from MH i2c: E2 62 00 49 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 44 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [12:38:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 44 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:38:16]wFMCommunicate OK [12:38:16]SAM_PROTO_GetFieldsCounters done [12:38:16]requested_item shift.num is exist - process it [12:38:16]requested_item shift.opened is exist - process it [12:38:16]req_shift_opened [12:38:16]FM_GetShiftState [12:38:16]SAM_PROTO_GetShiftState [12:38:16]wFMCommunicate request_size=4 [12:38:16]MH_SAM_APDU [12:38:16]CAPDU: 80 13 01 00 [12:38:16]Write to MH i2c: E2 08 00 4A 7F 80 13 01 00 00 00 00 00 46 [12:38:16]Write i2c OK [12:38:16]MH_I2C_Read... [12:38:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:17]Read from MH i2c: E2 [12:38:17]MH_I2C_Read... [12:38:17]Read from MH i2c: E2 0E 00 [12:38:17]MH_I2C_Read... [12:38:17]Read from MH i2c: E2 0E 00 4A 7F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 83 [12:38:17]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:38:17]wFMCommunicate OK [12:38:17]SAM_PROTO_GetShiftState done [12:38:17]FM_GetShiftState done [12:38:17]req_shift_opened done [12:38:17]requested_item shift.open_date is exist - process it [12:38:17]req_shift_open_date [12:38:17]req_shift_open_date done [12:38:17]produce_requested_data done [12:38:17]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260676,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [12:38:17]process_action_free close_receipt [12:38:17]json_value_free [12:38:17]json_value_free done [12:38:17]process_json_proto returns [12:38:17]Send response to host [12:38:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260676,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [12:38:17]free response buf [12:38:17]execute_script done [12:38:17]execute_script returns [12:38:17]free content buf [12:38:17]Sock 9.Close socket [12:38:17]Sock 9.Thread stoped [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:34]OFD Sender: No OFD packet to send [12:38:39]OFD Sender: No OFD packet to send [12:38:44]OFD Sender: No OFD packet to send [12:38:49]OFD Sender: No OFD packet to send [12:38:54]OFD Sender: No OFD packet to send [12:38:59]OFD Sender: No OFD packet to send [12:39:04]OFD Sender: No OFD packet to send [12:39:09]OFD Sender: No OFD packet to send [12:39:14]OFD Sender: No OFD packet to send [12:39:19]OFD Sender: No OFD packet to send [12:39:24]OFD Sender: No OFD packet to send [12:39:29]OFD Sender: No OFD packet to send [12:39:34]OFD Sender: No OFD packet to send [12:39:39]OFD Sender: No OFD packet to send [12:39:44]OFD Sender: No OFD packet to send [12:39:49]OFD Sender: No OFD packet to send [12:39:54]OFD Sender: No OFD packet to send [12:39:59]OFD Sender: No OFD packet to send [12:40:04]OFD Sender: No OFD packet to send [12:40:09]OFD Sender: No OFD packet to send [12:40:14]OFD Sender: No OFD packet to send [12:40:19]OFD Sender: No OFD packet to send [12:40:24]OFD Sender: No OFD packet to send [12:40:29]OFD Sender: No OFD packet to send [12:40:34]OFD Sender: No OFD packet to send [12:40:39]OFD Sender: No OFD packet to send [12:40:44]OFD Sender: No OFD packet to send [12:40:49]OFD Sender: No OFD packet to send [12:40:54]OFD Sender: No OFD packet to send [12:40:59]OFD Sender: No OFD packet to send [12:41:04]OFD Sender: No OFD packet to send [12:41:09]OFD Sender: No OFD packet to send [12:41:14]OFD Sender: No OFD packet to send [12:41:19]OFD Sender: No OFD packet to send [12:41:24]OFD Sender: No OFD packet to send [12:41:29]OFD Sender: No OFD packet to send [12:41:33]accept exits with 7 [12:41:33]New connection [12:41:33]New thread 3066617188 created [12:41:33]Thread 3066473828 joined [12:41:33]Waiting for new connection... [12:41:33] Sock 7.Parse request [12:41:33]Sock 7.Check first char [12:41:33]Sock 7.First char is OK [12:41:33]request: POST /json_proto HTTP/1.0 [12:41:33]Method: POST [12:41:33]URL: /json_proto [12:41:33]Method is POST - this is cgi request [12:41:33]url: /json_proto [12:41:33]query_string will be loaded in cgi processing [12:41:33]execute_cgi json_proto POST (null) [12:41:33]execute_cgi path=json_proto method=POST [12:41:33]POST find Content-Length [12:41:33]Host: 172.17.55.133:8080 [12:41:33]Content-Length: 679 [12:41:33]Content-Type: application/json [12:41:33] [12:41:33]POST finish read [12:41:33]Found Content-Length = 679 [12:41:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 13.280, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:33]execute_script... [12:41: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)1036225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 13.280, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:33]POST & json_proto [12:41:33]process_json_proto [12:41:33]json parsed OK: [12:41:33]protocol is kg_v1.0 [12:41:33]action value=close_receipt [12:41:33]process_action close_receipt [12:41:33]cmd_close_receipt [12:41:33]MH_GetDate [12:41:33]Write to MH i2c: F0 00 00 4B 7F B9 [12:41:33]Write i2c OK [12:41:33]MH_I2C_Read... [12:41:33]Read from MH i2c: F0 [12:41:33]MH_I2C_Read... [12:41:33]Read from MH i2c: F0 09 00 [12:41:33]MH_I2C_Read... [12:41:33]Read from MH i2c: F0 09 00 4B 7F 00 02 EC C1 66 34 48 D8 65 90 [12:41:33]GetLastDocTimeStamp 1723984696 [12:41:33]current date 1723984898 [12:41:33]FM_GetShiftState [12:41:33]SAM_PROTO_GetShiftState [12:41:33]wFMCommunicate request_size=4 [12:41:33]MH_SAM_APDU [12:41:33]CAPDU: 80 13 01 00 [12:41:33]Write to MH i2c: E2 08 00 4C 7F 80 13 01 00 00 00 00 00 48 [12:41:33]Write i2c OK [12:41:33]MH_I2C_Read... [12:41:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:33]Read from MH i2c: E2 [12:41:33]MH_I2C_Read... [12:41:33]Read from MH i2c: E2 0E 00 [12:41:33]MH_I2C_Read... [12:41:33]Read from MH i2c: E2 0E 00 4C 7F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 85 [12:41:33]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:41:33]wFMCommunicate OK [12:41:33]SAM_PROTO_GetShiftState done [12:41:33]FM_GetShiftState done [12:41:33]opened in 1723940556 [12:41:33]opened+sec_in_day 1724026956 [12:41:33]quantity*price = 90038 [12:41:33]sum+1 = 90039 [12:41:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 235 18.08.2024 12:41 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260677 ФПД: 34836346342046 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T124138&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260677&fm=34836346342046&tin=02508201610067®Number=0000000000091865&sum=90000 [12:41:34]StoreToDocumentArchive [12:41:34]shift 449 fd 260677 [12:41:34]save to /storage/0449/doc_00260677 [12:41:34]save last doc name /storage/0449/doc_00260677 to /storage/kkm_last_doc_name [12:41:34]save OK [12:41:34]Clear old archive folders... [12:41:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:41:34]tlvbuf is 004A2460 [12:41:34]SAM_PROTO_ClearQueue [12:41:34]wFMCommunicate request_size=4 [12:41:34]MH_SAM_APDU [12:41:34]CAPDU: 80 09 00 00 [12:41:34]Write to MH i2c: E2 08 00 59 7F 80 09 00 00 00 00 00 00 4A [12:41:34]Write i2c OK [12:41:34]MH_I2C_Read... [12:41:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:41:34]Read from MH i2c: E2 [12:41:34]MH_I2C_Read... [12:41:34]Read from MH i2c: E2 03 00 [12:41:34]MH_I2C_Read... [12:41:34]Read from MH i2c: E2 03 00 59 7F 00 90 00 4C [12:41:34]RAPDU: 90 00 [12:41:34]wFMCommunicate OK [12:41:34]SAM_PROTO_ClearQueue done [12:41:34]KKMCreateOFDPacket [12:41:34]OFDProtocolAddRootSTLVToBuf [12:41:34]FM_MakeSignedData [12:41:34]FM_MakeSignedData [12:41:34]SAM_PROTO_SignData [12:41:34]wFMCommunicate request_size=4 [12:41:34]MH_SAM_APDU [12:41:34]CAPDU: 80 0D 01 02 [12:41:34]Write to MH i2c: E2 08 00 5A 7F 80 0D 01 02 00 00 00 00 52 [12:41:34]Write i2c OK [12:41:34]MH_I2C_Read... [12:41:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:41:34]Read from MH i2c: E2 [12:41:34]MH_I2C_Read... [12:41:34]Read from MH i2c: E2 03 00 [12:41:34]MH_I2C_Read... [12:41:34]Read from MH i2c: E2 03 00 5A 7F 00 90 00 4D [12:41:34]RAPDU: 90 00 [12:41:34]wFMCommunicate OK [12:41:34]wFMCommunicate request_size=255 [12:41:34]MH_SAM_APDU [12:41:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 02 EC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 45 FA 03 00 35 04 06 00 1F [12:41:34]Write to MH i2c: E2 02 01 5B 7F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 02 EC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 45 FA 03 00 35 04 06 00 1F 00 00 BB [12:41:34]Write i2c OK [12:41:34]MH_I2C_Read... [12:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:35]Read from MH i2c: E2 [12:41:35]MH_I2C_Read... [12:41:35]Read from MH i2c: E2 03 00 [12:41:35]MH_I2C_Read... [12:41:35]Read from MH i2c: E2 03 00 5B 7F 00 90 00 4E [12:41:35]RAPDU: 90 00 [12:41:35]wFMCommunicate OK [12:41:35]wFMCommunicate request_size=10 [12:41:35]MH_SAM_APDU [12:41:35]CAPDU: 80 0D 02 02 05 AE F8 0C 8A 9E [12:41:35]Write to MH i2c: E2 0D 00 5C 7F 80 0D 02 02 05 00 AE F8 0C 8A 9E 00 00 39 [12:41:35]Write i2c OK [12:41:35]MH_I2C_Read... [12:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:35]Read from MH i2c: E2 [12:41:35]MH_I2C_Read... [12:41:35]Read from MH i2c: E2 03 00 [12:41:35]MH_I2C_Read... [12:41:35]Read from MH i2c: E2 03 00 5C 7F 00 90 00 4F [12:41:35]RAPDU: 90 00 [12:41:35]wFMCommunicate OK [12:41:35]wFMCommunicate request_size=4 [12:41:35]MH_SAM_APDU [12:41:35]CAPDU: 80 0D 03 02 [12:41:35]Write to MH i2c: E2 08 00 5D 7F 80 0D 03 02 00 00 00 00 57 [12:41:35]Write i2c OK [12:41:35]MH_I2C_Read... [12:41:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:41:35]Read from MH i2c: E2 [12:41:35]MH_I2C_Read... [12:41:35]Read from MH i2c: E2 0B 00 [12:41:35]MH_I2C_Read... [12:41:35]Read from MH i2c: E2 0B 00 5D 7F 00 B4 E0 AF 6F 5E E6 B5 BD 90 00 C0 [12:41:35]RAPDU: B4 E0 AF 6F 5E E6 B5 BD 90 00 [12:41:35]wFMCommunicate OK [12:41:35]SAM_PROTO_SignData done [12:41:35]FM_MakeSignedData done [12:41:35]CreateOFDProtocolMessage [12:41:35]wFMCommunicate request_size=4 [12:41:35]MH_SAM_APDU [12:41:35]CAPDU: 80 11 00 00 [12:41:35]Write to MH i2c: E2 08 00 5E 7F 80 11 00 00 00 00 00 00 57 [12:41:35]Write i2c OK [12:41:35]MH_I2C_Read... [12:41:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:35]Read from MH i2c: E2 [12:41:35]MH_I2C_Read... [12:41:35]Read from MH i2c: E2 17 00 [12:41:35]MH_I2C_Read... [12:41:35]Read from MH i2c: E2 17 00 5E 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A4 [12:41:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:41:35]wFMCommunicate OK [12:41:35]CreateOFDProtocolMessage done [12:41:35]OFDSenderStorePacket 260677 [12:41:35]StoreOFDPacket docnum=260677 [12:41:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 C0 5E 07 01 3A 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 35 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 02 EC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 45 FA 03 00 35 04 06 00 1F AE F8 0C 8A 9E B4 E0 AF 6F 5E E6 B5 BD [12:41:35]CheckFolder [12:41:35]dirname=/storage/ofd_packets [12:41:35]CheckFolder done [12:41:35]ProducePacketName [12:41:35]name=ofd_packets/00260677 [12:41:35]NVStorageSaveData ofd_packets/00260677 [12:41:35]File name is /storage/ofd_packets/00260677 [12:41:35]Write 301 bytes [12:41:35]NVStorageSaveData done [12:41:35]OFDSenderStorePacket done [12:41:35]KKMCreateOFDPacket done [12:41:35]NVStorageSaveData kkm_last_timestamp [12:41:35]File name is /storage/kkm_last_timestamp [12:41:35]Write 4 bytes [12:41:35]NVStorageSaveData done [12:41:35]ExternCall_PrintAddStr [12:41:35]wPrintStart [12:41:35]Write to MH i2c: 01 00 00 5F 7F DE [12:41:35]Write i2c OK [12:41:35]MH_I2C_Read... [12:41:35]Read from MH i2c: 01 [12:41:35]MH_I2C_Read... [12:41:35]Read from MH i2c: 01 07 00 [12:41:35]MH_I2C_Read... [12:41:35]Read from MH i2c: 01 07 00 5F 7F 00 00 00 00 00 FF 0F F3 [12:41:35]RasterBufferAndPrint [12:41:35]line Счет N : (1)1036225 [12:41:35]line ИНН: 02508201610067 [12:41:35]line Контрольно-Кассовый Чек [12:41:35]line ПРОДАЖА [12:41:35]line ТРК (МРК, ГНК) : 22 [12:41:35]line Товар: 2710124130 [12:41:35]line Аи-92-К-5 [12:41:35]line 13.280 * 67.80 [12:41:35]line = 900.38 [12:41:35]line НДС 12% НСП 1% [12:41:35]line > о реализуемом товаре [12:41:35]line ОКРУГЛЕНИЕ: -0.38 [12:41:35]line ИТОГО: 900.00 [12:41:35]line Внесено: 900.00 [12:41:35]line СДАЧА: 0.00 [12:41:35]line НСП 1% : 7.97 [12:41:35]line НДС 12% : 95.62 [12:41:35]line Наличными: 900.00 [12:41:35]line Безнал.: 0.00 [12:41:35]line Место: АЗС № 94 "Партнер Нефть" [12:41:35]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [12:41:35]line СНО: Общий режим [12:41:35]line Чек 235 18.08.2024 12:41 [12:41:35]line Смена: 449 ФФД: 1.0 [12:41:35]line ЗНМ: 0300000099 [12:41:35]line РНМ: 0000000000091865 [12:41:35]line Версия ККМ: 001 [12:41:35]line ФМ: 0000000000871820 [12:41:35]line ФД: 260677 [12:41:35]line ФПД: 34836346342046 [12:41:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T124138&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260677&fm=34836346342046&tin=02508201610067®Number=0000000000091865&sum=90000 [12:41:35]OFD Sender: Processing packet 260677 [packets to send 192, broken 191] [12:41:35]ProducePacketName [12:41:35]name=ofd_packets/00260677 [12:41:35]OFD Sender: To server: pG, [12:41:35]CommunicateWithHost lk.salyk.kg:30040 [12:41:35]ConnectInit lk.salyk.kg [12:41:35]written 0, free lines is 4095 [12:41:35]Connected sock=10 [12:41: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 30 0F 01 00 00 C0 5E 07 01 3A 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 35 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 02 EC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 45 FA 03 00 35 04 06 00 1F AE F8 0C 8A 9E B4 E0 AF 6F 5E E6 B5 BD [12:41: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 30 4F 00 00 00 FB 47 47 00 72 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 30 10 04 04 00 45 FA 03 00 F4 03 04 00 57 95 C1 66 B6 04 01 00 00 66 4F 8B 53 26 83 B6 87 [12:41:35]CommunicateWithHost err = 0 [12:41:35]CheckOFDResponse [12:41:35]1017 (14) - 77093643461234 [12:41:35]1041 (16) - 0000000000871820 [12:41:35]1040 (4) - 260677 [12:41:35]1012 (4) - 18.08.2024 06:31 [12:41:35]1206 (1) - 0 [12:41:35]OFD Sender: Remove packet 260677 [12:41:35]ProducePacketName [12:41:35]name=ofd_packets/00260677 [12:41:35]NVStorageDeleteData [12:41:36]Write to MH i2c: 01 00 00 8A 7F 09 [12:41:36]Write i2c OK [12:41:36]MH_I2C_Read... [12:41:36]Read from MH i2c: 01 [12:41:36]MH_I2C_Read... [12:41:36]Read from MH i2c: 01 07 00 [12:41:36]MH_I2C_Read... [12:41:36]Read from MH i2c: 01 07 00 8A 7F 00 00 00 00 00 66 0C 82 [12:41:36]RasterBufferAndPrint [12:41:36]line [12:41:36]line [12:41:36]line [12:41:36]line [12:41:36]line [12:41:36]written 0, free lines is 3177 [12:41:36]MH_Cut [12:41:36]Write to MH i2c: D1 01 00 91 7F 01 E2 [12:41:36]Write i2c OK [12:41:36]MH_I2C_Read... [12:41:36]Read from MH i2c: D1 [12:41:36]MH_I2C_Read... [12:41:36]Read from MH i2c: D1 01 00 [12:41:36]MH_I2C_Read... [12:41:36]Read from MH i2c: D1 01 00 91 7F 00 E1 [12:41:36]Write to MH i2c: 01 00 00 92 7F 11 [12:41:36]Write i2c OK [12:41:36]MH_I2C_Read... [12:41:36]OFD Sender: No OFD packet to send [12:41:37]*** Cut start [12:41:37]*** Purtial cut [12:41:37]*** Stage 1: CUTSNS_PIN = 1 [12:41:39]Read from MH i2c: 01 [12:41:39]MH_I2C_Read... [12:41:39]*** Stop cut motor [12:41:39]*** Cut end [12:41:39]Read from MH i2c: 01 07 00 [12:41:39]MH_I2C_Read... [12:41:39]Read from MH i2c: 01 07 00 92 7F 00 00 00 00 00 FF 0F 26 [12:41:39]process_action close_receipt done [12:41:39]requested_data is exist [12:41:39]produce_requested_data [12:41:39]requested_item fm.sn is exist - process it [12:41:39]wFMCommunicate request_size=4 [12:41:39]MH_SAM_APDU [12:41:39]CAPDU: 80 11 00 00 [12:41:39]Write to MH i2c: E2 08 00 93 7F 80 11 00 00 00 00 00 00 8C [12:41:39]Write i2c OK [12:41:39]MH_I2C_Read... [12:41:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:39]Read from MH i2c: E2 [12:41:39]MH_I2C_Read... [12:41:39]Read from MH i2c: E2 17 00 [12:41:39]MH_I2C_Read... [12:41:39]Read from MH i2c: E2 17 00 93 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D9 [12:41:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:41:39]wFMCommunicate OK [12:41:39]requested_item fd.num is exist - process it [12:41:39]SAM_PROTO_GetFieldsCounters [12:41:39]wFMCommunicate request_size=4 [12:41:39]MH_SAM_APDU [12:41:39]CAPDU: 80 13 00 00 [12:41:39]Write to MH i2c: E2 08 00 94 7F 80 13 00 00 00 00 00 00 8F [12:41:39]Write i2c OK [12:41:39]MH_I2C_Read... [12:41:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:41:39]Read from MH i2c: E2 [12:41:39]MH_I2C_Read... [12:41:39]Read from MH i2c: E2 62 00 [12:41:39]MH_I2C_Read... [12:41:39]Read from MH i2c: E2 62 00 94 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 45 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [12:41: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 45 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:41:39]wFMCommunicate OK [12:41:39]SAM_PROTO_GetFieldsCounters done [12:41:39]requested_item shift.num is exist - process it [12:41:39]requested_item shift.opened is exist - process it [12:41:39]req_shift_opened [12:41:39]FM_GetShiftState [12:41:39]SAM_PROTO_GetShiftState [12:41:39]wFMCommunicate request_size=4 [12:41:39]MH_SAM_APDU [12:41:39]CAPDU: 80 13 01 00 [12:41:39]Write to MH i2c: E2 08 00 95 7F 80 13 01 00 00 00 00 00 91 [12:41:39]Write i2c OK [12:41:39]MH_I2C_Read... [12:41:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:39]Read from MH i2c: E2 [12:41:39]MH_I2C_Read... [12:41:39]Read from MH i2c: E2 0E 00 [12:41:39]MH_I2C_Read... [12:41:39]Read from MH i2c: E2 0E 00 95 7F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 CE [12:41:39]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:41:39]wFMCommunicate OK [12:41:39]SAM_PROTO_GetShiftState done [12:41:39]FM_GetShiftState done [12:41:39]req_shift_opened done [12:41:39]requested_item shift.open_date is exist - process it [12:41:39]req_shift_open_date [12:41:39]req_shift_open_date done [12:41:39]produce_requested_data done [12:41:39]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260677,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [12:41:39]process_action_free close_receipt [12:41:39]json_value_free [12:41:39]json_value_free done [12:41:39]process_json_proto returns [12:41:39]Send response to host [12:41:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260677,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [12:41:39]free response buf [12:41:39]execute_script done [12:41:39]execute_script returns [12:41:39]free content buf [12:41:39]Sock 7.Close socket [12:41:39]Sock 7.Thread stoped [12:41:41]OFD Sender: No OFD packet to send [12:41:46]OFD Sender: No OFD packet to send [12:41:51]OFD Sender: No OFD packet to send [12:41:56]OFD Sender: No OFD packet to send [12:42:01]OFD Sender: No OFD packet to send [12:42:06]OFD Sender: No OFD packet to send [12:42:11]OFD Sender: No OFD packet to send [12:42:16]OFD Sender: No OFD packet to send [12:42:21]OFD Sender: No OFD packet to send [12:42:26]OFD Sender: No OFD packet to send [12:42:31]OFD Sender: No OFD packet to send [12:42:36]OFD Sender: No OFD packet to send [12:42:41]OFD Sender: No OFD packet to send [12:42:46]OFD Sender: No OFD packet to send [12:42:51]OFD Sender: No OFD packet to send [12:42:56]OFD Sender: No OFD packet to send [12:43:01]OFD Sender: No OFD packet to send [12:43:06]OFD Sender: No OFD packet to send [12:43:11]OFD Sender: No OFD packet to send [12:43:16]OFD Sender: No OFD packet to send [12:43:21]OFD Sender: No OFD packet to send [12:43:26]OFD Sender: No OFD packet to send [12:43:31]OFD Sender: No OFD packet to send [12:43:36]OFD Sender: No OFD packet to send [12:43:41]OFD Sender: No OFD packet to send [12:43:46]OFD Sender: No OFD packet to send [12:43:51]OFD Sender: No OFD packet to send [12:43:56]OFD Sender: No OFD packet to send [12:44:01]OFD Sender: No OFD packet to send [12:44:06]OFD Sender: No OFD packet to send [12:44:11]OFD Sender: No OFD packet to send [12:44:16]OFD Sender: No OFD packet to send [12:44:21]OFD Sender: No OFD packet to send [12:44:26]OFD Sender: No OFD packet to send [12:44:31]OFD Sender: No OFD packet to send [12:44:36]OFD Sender: No OFD packet to send [12:44:41]OFD Sender: No OFD packet to send [12:44:46]OFD Sender: No OFD packet to send [12:44:51]OFD Sender: No OFD packet to send [12:44:56]OFD Sender: No OFD packet to send [12:45:01]OFD Sender: No OFD packet to send [12:45:06]OFD Sender: No OFD packet to send [12:45:08]accept exits with 9 [12:45:08]New connection [12:45:08]New thread 3066473828 created [12:45:08]Thread 3066617188 joined [12:45:08]Waiting for new connection... [12:45:08] Sock 9.Parse request [12:45:08]Sock 9.Check first char [12:45:08]Sock 9.First char is OK [12:45:08]request: POST /json_proto HTTP/1.0 [12:45:08]Method: POST [12:45:08]URL: /json_proto [12:45:08]Method is POST - this is cgi request [12:45:08]url: /json_proto [12:45:08]query_string will be loaded in cgi processing [12:45:08]execute_cgi json_proto POST (null) [12:45:08]execute_cgi path=json_proto method=POST [12:45:08]POST find Content-Length [12:45:08]Host: 172.17.55.133:8080 [12:45:08]Content-Length: 683 [12:45:08]Content-Type: application/json [12:45:08] [12:45:08]POST finish read [12:45:08]Found Content-Length = 683 [12:45:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036226", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:08]execute_script... [12:45: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)1036226", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:08]POST & json_proto [12:45:08]process_json_proto [12:45:08]json parsed OK: [12:45:08]protocol is kg_v1.0 [12:45:08]action value=close_receipt [12:45:08]process_action close_receipt [12:45:08]cmd_close_receipt [12:45:08]MH_GetDate [12:45:08]Write to MH i2c: F0 00 00 96 7F 04 [12:45:08]Write i2c OK [12:45:08]MH_I2C_Read... [12:45:08]Read from MH i2c: F0 [12:45:08]MH_I2C_Read... [12:45:08]Read from MH i2c: F0 09 00 [12:45:08]MH_I2C_Read... [12:45:08]Read from MH i2c: F0 09 00 96 7F 00 D9 EC C1 66 34 48 D8 65 B2 [12:45:08]GetLastDocTimeStamp 1723984898 [12:45:08]current date 1723985113 [12:45:08]FM_GetShiftState [12:45:08]SAM_PROTO_GetShiftState [12:45:08]wFMCommunicate request_size=4 [12:45:08]MH_SAM_APDU [12:45:08]CAPDU: 80 13 01 00 [12:45:08]Write to MH i2c: E2 08 00 97 7F 80 13 01 00 00 00 00 00 93 [12:45:08]Write i2c OK [12:45:08]MH_I2C_Read... [12:45:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:08]Read from MH i2c: E2 [12:45:08]MH_I2C_Read... [12:45:08]Read from MH i2c: E2 0E 00 [12:45:08]MH_I2C_Read... [12:45:08]Read from MH i2c: E2 0E 00 97 7F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D0 [12:45:08]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:45:08]wFMCommunicate OK [12:45:08]SAM_PROTO_GetShiftState done [12:45:08]FM_GetShiftState done [12:45:08]opened in 1723940556 [12:45:08]opened+sec_in_day 1724026956 [12:45:08]quantity*price = 100021 [12:45:08]sum+1 = 100023 [12:45:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 236 18.08.2024 12:45 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260678 ФПД: 234320230534871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T124513&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260678&fm=234320230534871&tin=02508201610067®Number=0000000000091865&sum=100000 [12:45:09]StoreToDocumentArchive [12:45:09]shift 449 fd 260678 [12:45:09]save to /storage/0449/doc_00260678 [12:45:09]save last doc name /storage/0449/doc_00260678 to /storage/kkm_last_doc_name [12:45:09]save OK [12:45:09]Clear old archive folders... [12:45:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:45:09]tlvbuf is 004A1FC0 [12:45:09]SAM_PROTO_ClearQueue [12:45:09]wFMCommunicate request_size=4 [12:45:09]MH_SAM_APDU [12:45:09]CAPDU: 80 09 00 00 [12:45:09]Write to MH i2c: E2 08 00 A4 7F 80 09 00 00 00 00 00 00 95 [12:45:09]Write i2c OK [12:45:09]MH_I2C_Read... [12:45:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:45:09]Read from MH i2c: E2 [12:45:09]MH_I2C_Read... [12:45:09]Read from MH i2c: E2 03 00 [12:45:09]MH_I2C_Read... [12:45:09]Read from MH i2c: E2 03 00 A4 7F 00 90 00 97 [12:45:09]RAPDU: 90 00 [12:45:09]wFMCommunicate OK [12:45:09]SAM_PROTO_ClearQueue done [12:45:09]KKMCreateOFDPacket [12:45:09]OFDProtocolAddRootSTLVToBuf [12:45:09]FM_MakeSignedData [12:45:09]FM_MakeSignedData [12:45:09]SAM_PROTO_SignData [12:45:09]wFMCommunicate request_size=4 [12:45:09]MH_SAM_APDU [12:45:09]CAPDU: 80 0D 01 02 [12:45:09]Write to MH i2c: E2 08 00 A5 7F 80 0D 01 02 00 00 00 00 9D [12:45:09]Write i2c OK [12:45:09]MH_I2C_Read... [12:45:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:45:09]Read from MH i2c: E2 [12:45:09]MH_I2C_Read... [12:45:09]Read from MH i2c: E2 03 00 [12:45:09]MH_I2C_Read... [12:45:09]Read from MH i2c: E2 03 00 A5 7F 00 90 00 98 [12:45:09]RAPDU: 90 00 [12:45:09]wFMCommunicate OK [12:45:09]wFMCommunicate request_size=255 [12:45:09]MH_SAM_APDU [12:45:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 D9 EC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 46 FA 03 00 35 04 06 00 D5 [12:45:09]Write to MH i2c: E2 02 01 A6 7F 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 D9 EC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 46 FA 03 00 35 04 06 00 D5 00 00 F9 [12:45:09]Write i2c OK [12:45:09]MH_I2C_Read... [12:45:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:09]Read from MH i2c: E2 [12:45:09]MH_I2C_Read... [12:45:09]Read from MH i2c: E2 03 00 [12:45:09]MH_I2C_Read... [12:45:09]Read from MH i2c: E2 03 00 A6 7F 00 90 00 99 [12:45:09]RAPDU: 90 00 [12:45:09]wFMCommunicate OK [12:45:09]wFMCommunicate request_size=10 [12:45:09]MH_SAM_APDU [12:45:09]CAPDU: 80 0D 02 02 05 1C EE 1A CE D7 [12:45:09]Write to MH i2c: E2 0D 00 A7 7F 80 0D 02 02 05 00 1C EE 1A CE D7 00 00 73 [12:45:09]Write i2c OK [12:45:09]MH_I2C_Read... [12:45:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:09]Read from MH i2c: E2 [12:45:09]MH_I2C_Read... [12:45:09]Read from MH i2c: E2 03 00 [12:45:09]MH_I2C_Read... [12:45:09]Read from MH i2c: E2 03 00 A7 7F 00 90 00 9A [12:45:09]RAPDU: 90 00 [12:45:09]wFMCommunicate OK [12:45:09]wFMCommunicate request_size=4 [12:45:09]MH_SAM_APDU [12:45:09]CAPDU: 80 0D 03 02 [12:45:09]Write to MH i2c: E2 08 00 A8 7F 80 0D 03 02 00 00 00 00 A2 [12:45:09]Write i2c OK [12:45:09]MH_I2C_Read... [12:45:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:09]Read from MH i2c: E2 [12:45:09]MH_I2C_Read... [12:45:09]Read from MH i2c: E2 0B 00 [12:45:09]MH_I2C_Read... [12:45:09]Read from MH i2c: E2 0B 00 A8 7F 00 AB BB A7 E2 B4 1F A3 EB 90 00 F3 [12:45:09]RAPDU: AB BB A7 E2 B4 1F A3 EB 90 00 [12:45:09]wFMCommunicate OK [12:45:09]SAM_PROTO_SignData done [12:45:09]FM_MakeSignedData done [12:45:09]CreateOFDProtocolMessage [12:45:09]wFMCommunicate request_size=4 [12:45:09]MH_SAM_APDU [12:45:09]CAPDU: 80 11 00 00 [12:45:09]Write to MH i2c: E2 08 00 A9 7F 80 11 00 00 00 00 00 00 A2 [12:45:09]Write i2c OK [12:45:09]MH_I2C_Read... [12:45:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:09]Read from MH i2c: E2 [12:45:09]MH_I2C_Read... [12:45:09]Read from MH i2c: E2 17 00 [12:45:09]MH_I2C_Read... [12:45:09]Read from MH i2c: E2 17 00 A9 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 EF [12:45:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:45:09]wFMCommunicate OK [12:45:09]CreateOFDProtocolMessage done [12:45:09]OFDSenderStorePacket 260678 [12:45:09]StoreOFDPacket docnum=260678 [12: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 30 0F 01 00 00 A4 F6 07 01 26 78 5A 03 01 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 D9 EC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 46 FA 03 00 35 04 06 00 D5 1C EE 1A CE D7 AB BB A7 E2 B4 1F A3 EB [12:45:10]CheckFolder [12:45:10]dirname=/storage/ofd_packets [12:45:10]CheckFolder done [12:45:10]ProducePacketName [12:45:10]name=ofd_packets/00260678 [12:45:10]NVStorageSaveData ofd_packets/00260678 [12:45:10]File name is /storage/ofd_packets/00260678 [12:45:10]Write 301 bytes [12:45:10]NVStorageSaveData done [12:45:10]OFDSenderStorePacket done [12:45:10]KKMCreateOFDPacket done [12:45:10]NVStorageSaveData kkm_last_timestamp [12:45:10]File name is /storage/kkm_last_timestamp [12:45:10]Write 4 bytes [12:45:10]NVStorageSaveData done [12:45:10]ExternCall_PrintAddStr [12:45:10]wPrintStart [12:45:10]Write to MH i2c: 01 00 00 AA 7F 29 [12:45:10]Write i2c OK [12:45:10]MH_I2C_Read... [12:45:10]Read from MH i2c: 01 [12:45:10]MH_I2C_Read... [12:45:10]Read from MH i2c: 01 07 00 [12:45:10]MH_I2C_Read... [12:45:10]Read from MH i2c: 01 07 00 AA 7F 00 00 00 00 00 FF 0F 3E [12:45:10]RasterBufferAndPrint [12:45:10]line Счет N : (1)1036226 [12:45:10]line ИНН: 02508201610067 [12:45:10]line Контрольно-Кассовый Чек [12:45:10]line ПРОДАЖА [12:45:10]line ТРК (МРК, ГНК) : 23 [12:45:10]line Товар: 2710124500 [12:45:10]line Аи-95-К-5 [12:45:10]line 13.480 * 74.20 [12:45:10]line = 1000.22 [12:45:10]line НДС 12% НСП 1% [12:45:10]line > о реализуемом товаре [12:45:10]line ОКРУГЛЕНИЕ: -0.22 [12:45:10]line ИТОГО: 1000.00 [12:45:10]line Внесено: 1000.00 [12:45:10]line СДАЧА: 0.00 [12:45:10]line НСП 1% : 8.85 [12:45:10]line НДС 12% : 106.22 [12:45:10]line Наличными: 1000.00 [12:45:10]line Безнал.: 0.00 [12:45:10]line Место: АЗС № 94 "Партнер Нефть" [12:45:10]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [12:45:10]line СНО: Общий режим [12:45:10]line Чек 236 18.08.2024 12:45 [12:45:10]line Смена: 449 ФФД: 1.0 [12:45:10]line ЗНМ: 0300000099 [12:45:10]line РНМ: 0000000000091865 [12:45:10]line Версия ККМ: 001 [12:45:10]line ФМ: 0000000000871820 [12:45:10]line ФД: 260678 [12:45:10]line ФПД: 234320230534871 [12:45:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T124513&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260678&fm=234320230534871&tin=02508201610067®Number=0000000000091865&sum=100000 [12:45:10]written 0, free lines is 4095 [12:45:10]OFD Sender: Processing packet 260678 [packets to send 192, broken 191] [12:45:10]ProducePacketName [12:45:10]name=ofd_packets/00260678 [12:45:10]OFD Sender: To server: pG, [12:45:10]CommunicateWithHost lk.salyk.kg:30040 [12:45:10]ConnectInit lk.salyk.kg [12:45:10]Connected sock=10 [12: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 30 0F 01 00 00 A4 F6 07 01 26 78 5A 03 01 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 D9 EC C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 46 FA 03 00 35 04 06 00 D5 1C EE 1A CE D7 AB BB A7 E2 B4 1F A3 EB [12: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 30 4F 00 00 00 EE 08 47 00 16 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 30 10 04 04 00 46 FA 03 00 F4 03 04 00 2D 96 C1 66 B6 04 01 00 00 77 97 4D 14 AE E0 84 52 [12:45:10]CommunicateWithHost err = 0 [12:45:10]CheckOFDResponse [12:45:10]1017 (14) - 77093643461234 [12:45:10]1041 (16) - 0000000000871820 [12:45:10]1040 (4) - 260678 [12:45:10]1012 (4) - 18.08.2024 06:35 [12:45:10]1206 (1) - 0 [12:45:10]OFD Sender: Remove packet 260678 [12:45:10]ProducePacketName [12:45:10]name=ofd_packets/00260678 [12:45:10]NVStorageDeleteData [12:45:10]Write to MH i2c: 01 00 00 D5 7F 54 [12:45:10]Write i2c OK [12:45:10]MH_I2C_Read... [12:45:10]Read from MH i2c: 01 [12:45:10]MH_I2C_Read... [12:45:10]Read from MH i2c: 01 07 00 [12:45:10]MH_I2C_Read... [12:45:10]Read from MH i2c: 01 07 00 D5 7F 00 00 00 00 00 71 0C D8 [12:45:10]RasterBufferAndPrint [12:45:10]line [12:45:10]line [12:45:10]line [12:45:10]line [12:45:10]line [12:45:10]written 0, free lines is 3187 [12:45:10]MH_Cut [12:45:10]Write to MH i2c: D1 01 00 DC 7F 01 2D [12:45:10]Write i2c OK [12:45:10]MH_I2C_Read... [12:45:10]Read from MH i2c: D1 [12:45:10]MH_I2C_Read... [12:45:10]Read from MH i2c: D1 01 00 [12:45:10]MH_I2C_Read... [12:45:10]Read from MH i2c: D1 01 00 DC 7F 00 2C [12:45:10]Write to MH i2c: 01 00 00 DD 7F 5C [12:45:10]Write i2c OK [12:45:10]MH_I2C_Read... [12:45:10]OFD Sender: No OFD packet to send [12:45:11]*** Cut start [12:45:11]*** Purtial cut [12:45:11]*** Stage 1: CUTSNS_PIN = 1 [12:45:13]Read from MH i2c: 01 [12:45:13]MH_I2C_Read... [12:45:13]*** Stop cut motor [12:45:13]*** Cut end [12:45:13]Read from MH i2c: 01 07 00 [12:45:13]MH_I2C_Read... [12:45:13]Read from MH i2c: 01 07 00 DD 7F 00 00 00 00 00 FF 0F 71 [12:45:13]process_action close_receipt done [12:45:13]requested_data is exist [12:45:13]produce_requested_data [12:45:13]requested_item fm.sn is exist - process it [12:45:13]wFMCommunicate request_size=4 [12:45:13]MH_SAM_APDU [12:45:13]CAPDU: 80 11 00 00 [12:45:13]Write to MH i2c: E2 08 00 DE 7F 80 11 00 00 00 00 00 00 D7 [12:45:13]Write i2c OK [12:45:13]MH_I2C_Read... [12:45:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:13]Read from MH i2c: E2 [12:45:13]MH_I2C_Read... [12:45:13]Read from MH i2c: E2 17 00 [12:45:13]MH_I2C_Read... [12:45:13]Read from MH i2c: E2 17 00 DE 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 24 [12:45:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:45:13]wFMCommunicate OK [12:45:13]requested_item fd.num is exist - process it [12:45:13]SAM_PROTO_GetFieldsCounters [12:45:13]wFMCommunicate request_size=4 [12:45:13]MH_SAM_APDU [12:45:13]CAPDU: 80 13 00 00 [12:45:13]Write to MH i2c: E2 08 00 DF 7F 80 13 00 00 00 00 00 00 DA [12:45:13]Write i2c OK [12:45:13]MH_I2C_Read... [12:45:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:13]Read from MH i2c: E2 [12:45:13]MH_I2C_Read... [12:45:13]Read from MH i2c: E2 62 00 [12:45:13]MH_I2C_Read... [12:45:13]Read from MH i2c: E2 62 00 DF 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 46 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [12:45: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 46 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:45:13]wFMCommunicate OK [12:45:13]SAM_PROTO_GetFieldsCounters done [12:45:13]requested_item shift.num is exist - process it [12:45:13]requested_item shift.opened is exist - process it [12:45:13]req_shift_opened [12:45:13]FM_GetShiftState [12:45:13]SAM_PROTO_GetShiftState [12:45:13]wFMCommunicate request_size=4 [12:45:13]MH_SAM_APDU [12:45:13]CAPDU: 80 13 01 00 [12:45:13]Write to MH i2c: E2 08 00 E0 7F 80 13 01 00 00 00 00 00 DC [12:45:13]Write i2c OK [12:45:13]MH_I2C_Read... [12:45:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:13]Read from MH i2c: E2 [12:45:13]MH_I2C_Read... [12:45:13]Read from MH i2c: E2 0E 00 [12:45:13]MH_I2C_Read... [12:45:13]Read from MH i2c: E2 0E 00 E0 7F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 19 [12:45:13]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:45:13]wFMCommunicate OK [12:45:13]SAM_PROTO_GetShiftState done [12:45:13]FM_GetShiftState done [12:45:13]req_shift_opened done [12:45:13]requested_item shift.open_date is exist - process it [12:45:13]req_shift_open_date [12:45:13]req_shift_open_date done [12:45:13]produce_requested_data done [12:45:13]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260678,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [12:45:13]process_action_free close_receipt [12:45:13]json_value_free [12:45:13]json_value_free done [12:45:13]process_json_proto returns [12:45:13]Send response to host [12:45:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260678,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [12:45:13]free response buf [12:45:13]execute_script done [12:45:13]execute_script returns [12:45:13]free content buf [12:45:13]Sock 9.Close socket [12:45:13]Sock 9.Thread stoped [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:31]OFD Sender: No OFD packet to send [12:46:36]OFD Sender: No OFD packet to send [12:46:38]accept exits with 7 [12:46:38]New connection [12:46:38]New thread 3066617188 created [12:46:38]Thread 3066473828 joined [12:46:38]Waiting for new connection... [12:46:38] Sock 7.Parse request [12:46:38]Sock 7.Check first char [12:46:38]Sock 7.First char is OK [12:46:38]request: POST /json_proto HTTP/1.0 [12:46:38]Method: POST [12:46:38]URL: /json_proto [12:46:38]Method is POST - this is cgi request [12:46:38]url: /json_proto [12:46:38]query_string will be loaded in cgi processing [12:46:38]execute_cgi json_proto POST (null) [12:46:38]execute_cgi path=json_proto method=POST [12:46:38]POST find Content-Length [12:46:38]Host: 172.17.55.133:8080 [12:46:38]Content-Length: 683 [12:46:38]Content-Type: application/json [12:46:38] [12:46:38]POST finish read [12:46:38]Found Content-Length = 683 [12:46:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036227", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:38]execute_script... [12:46: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)1036227", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:38]POST & json_proto [12:46:38]process_json_proto [12:46:38]json parsed OK: [12:46:38]protocol is kg_v1.0 [12:46:38]action value=close_receipt [12:46:38]process_action close_receipt [12:46:38]cmd_close_receipt [12:46:38]MH_GetDate [12:46:38]Write to MH i2c: F0 00 00 E1 7F 4F [12:46:38]Write i2c OK [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: F0 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: F0 09 00 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: F0 09 00 E1 7F 00 32 ED C1 66 34 48 D8 65 57 [12:46:38]GetLastDocTimeStamp 1723985113 [12:46:38]current date 1723985202 [12:46:38]FM_GetShiftState [12:46:38]SAM_PROTO_GetShiftState [12:46:38]wFMCommunicate request_size=4 [12:46:38]MH_SAM_APDU [12:46:38]CAPDU: 80 13 01 00 [12:46:38]Write to MH i2c: E2 08 00 E2 7F 80 13 01 00 00 00 00 00 DE [12:46:38]Write i2c OK [12:46:38]MH_I2C_Read... [12:46:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:38]Read from MH i2c: E2 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: E2 0E 00 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: E2 0E 00 E2 7F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 1B [12:46:38]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:46:38]wFMCommunicate OK [12:46:38]SAM_PROTO_GetShiftState done [12:46:38]FM_GetShiftState done [12:46:38]opened in 1723940556 [12:46:38]opened+sec_in_day 1724026956 [12:46:38]quantity*price = 100021 [12:46:38]sum+1 = 100023 [12:46:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 237 18.08.2024 12:46 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260679 ФПД: 220169527703299 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T124643&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260679&fm=220169527703299&tin=02508201610067®Number=0000000000091865&sum=100000 [12:46:39]StoreToDocumentArchive [12:46:39]shift 449 fd 260679 [12:46:39]save to /storage/0449/doc_00260679 [12:46:39]save last doc name /storage/0449/doc_00260679 to /storage/kkm_last_doc_name [12:46:39]save OK [12:46:39]Clear old archive folders... [12:46:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:46:39]tlvbuf is 003E9260 [12:46:39]SAM_PROTO_ClearQueue [12:46:39]wFMCommunicate request_size=4 [12:46:39]MH_SAM_APDU [12:46:39]CAPDU: 80 09 00 00 [12:46:39]Write to MH i2c: E2 08 00 EF 7F 80 09 00 00 00 00 00 00 E0 [12:46:39]Write i2c OK [12:46:39]MH_I2C_Read... [12:46:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:39]Read from MH i2c: E2 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: E2 03 00 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: E2 03 00 EF 7F 00 90 00 E2 [12:46:39]RAPDU: 90 00 [12:46:39]wFMCommunicate OK [12:46:39]SAM_PROTO_ClearQueue done [12:46:39]KKMCreateOFDPacket [12:46:39]OFDProtocolAddRootSTLVToBuf [12:46:39]FM_MakeSignedData [12:46:39]FM_MakeSignedData [12:46:39]SAM_PROTO_SignData [12:46:39]wFMCommunicate request_size=4 [12:46:39]MH_SAM_APDU [12:46:39]CAPDU: 80 0D 01 02 [12:46:39]Write to MH i2c: E2 08 00 F0 7F 80 0D 01 02 00 00 00 00 E8 [12:46:39]Write i2c OK [12:46:39]MH_I2C_Read... [12:46:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:39]Read from MH i2c: E2 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: E2 03 00 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: E2 03 00 F0 7F 00 90 00 E3 [12:46:39]RAPDU: 90 00 [12:46:39]wFMCommunicate OK [12:46:39]wFMCommunicate request_size=255 [12:46:39]MH_SAM_APDU [12:46: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 33 ED C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 47 FA 03 00 35 04 06 00 C8 [12:46:39]Write to MH i2c: E2 02 01 F1 7F 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 33 ED C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 47 FA 03 00 35 04 06 00 C8 00 00 94 [12:46:39]Write i2c OK [12:46:39]MH_I2C_Read... [12:46:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:39]Read from MH i2c: E2 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: E2 03 00 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: E2 03 00 F1 7F 00 90 00 E4 [12:46:39]RAPDU: 90 00 [12:46:39]wFMCommunicate OK [12:46:39]wFMCommunicate request_size=10 [12:46:39]MH_SAM_APDU [12:46:39]CAPDU: 80 0D 02 02 05 3E 36 7D 37 03 [12:46:39]Write to MH i2c: E2 0D 00 F2 7F 80 0D 02 02 05 00 3E 36 7D 37 03 00 00 20 [12:46:39]Write i2c OK [12:46:39]MH_I2C_Read... [12:46:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:39]Read from MH i2c: E2 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: E2 03 00 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: E2 03 00 F2 7F 00 90 00 E5 [12:46:39]RAPDU: 90 00 [12:46:39]wFMCommunicate OK [12:46:39]wFMCommunicate request_size=4 [12:46:39]MH_SAM_APDU [12:46:39]CAPDU: 80 0D 03 02 [12:46:39]Write to MH i2c: E2 08 00 F3 7F 80 0D 03 02 00 00 00 00 ED [12:46:39]Write i2c OK [12:46:39]MH_I2C_Read... [12:46:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:39]Read from MH i2c: E2 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: E2 0B 00 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: E2 0B 00 F3 7F 00 6A A6 D1 4F 29 C5 07 E1 90 00 F4 [12:46:39]RAPDU: 6A A6 D1 4F 29 C5 07 E1 90 00 [12:46:39]wFMCommunicate OK [12:46:39]SAM_PROTO_SignData done [12:46:39]FM_MakeSignedData done [12:46:39]CreateOFDProtocolMessage [12:46:39]wFMCommunicate request_size=4 [12:46:39]MH_SAM_APDU [12:46:39]CAPDU: 80 11 00 00 [12:46:39]Write to MH i2c: E2 08 00 F4 7F 80 11 00 00 00 00 00 00 ED [12:46:39]Write i2c OK [12:46:39]MH_I2C_Read... [12:46:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:39]Read from MH i2c: E2 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: E2 17 00 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: E2 17 00 F4 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 3A [12:46:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:46:39]wFMCommunicate OK [12:46:39]CreateOFDProtocolMessage done [12:46:39]OFDSenderStorePacket 260679 [12:46:39]StoreOFDPacket docnum=260679 [12:46:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 54 60 07 01 01 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 33 ED C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 47 FA 03 00 35 04 06 00 C8 3E 36 7D 37 03 6A A6 D1 4F 29 C5 07 E1 [12:46:39]CheckFolder [12:46:39]dirname=/storage/ofd_packets [12:46:39]CheckFolder done [12:46:39]ProducePacketName [12:46:39]name=ofd_packets/00260679 [12:46:39]NVStorageSaveData ofd_packets/00260679 [12:46:39]File name is /storage/ofd_packets/00260679 [12:46:39]Write 301 bytes [12:46:39]NVStorageSaveData done [12:46:39]OFDSenderStorePacket done [12:46:39]KKMCreateOFDPacket done [12:46:39]NVStorageSaveData kkm_last_timestamp [12:46:39]File name is /storage/kkm_last_timestamp [12:46:39]Write 4 bytes [12:46:39]NVStorageSaveData done [12:46:39]ExternCall_PrintAddStr [12:46:39]wPrintStart [12:46:39]Write to MH i2c: 01 00 00 F5 7F 74 [12:46:39]Write i2c OK [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: 01 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: 01 07 00 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: 01 07 00 F5 7F 00 00 00 00 00 FF 0F 89 [12:46:39]RasterBufferAndPrint [12:46:39]line Счет N : (1)1036227 [12:46:39]line ИНН: 02508201610067 [12:46:39]line Контрольно-Кассовый Чек [12:46:39]line ПРОДАЖА [12:46:39]line ТРК (МРК, ГНК) : 13 [12:46:39]line Товар: 2710124500 [12:46:39]line Аи-95-К-5 [12:46:39]line 13.480 * 74.20 [12:46:39]line = 1000.22 [12:46:39]line НДС 12% НСП 1% [12:46:39]line > о реализуемом товаре [12:46:39]line ОКРУГЛЕНИЕ: -0.22 [12:46:39]line ИТОГО: 1000.00 [12:46:39]line Внесено: 1000.00 [12:46:39]line СДАЧА: 0.00 [12:46:39]line НСП 1% : 8.85 [12:46:39]line НДС 12% : 106.22 [12:46:39]line Наличными: 1000.00 [12:46:39]line Безнал.: 0.00 [12:46:39]line Место: АЗС № 94 "Партнер Нефть" [12:46:39]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [12:46:39]line СНО: Общий режим [12:46:39]line Чек 237 18.08.2024 12:46 [12:46:39]line Смена: 449 ФФД: 1.0 [12:46:39]line ЗНМ: 0300000099 [12:46:39]line РНМ: 0000000000091865 [12:46:39]line Версия ККМ: 001 [12:46:39]line ФМ: 0000000000871820 [12:46:39]line ФД: 260679 [12:46:39]line ФПД: 220169527703299 [12:46:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T124643&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260679&fm=220169527703299&tin=02508201610067®Number=0000000000091865&sum=100000 [12:46:40]written 0, free lines is 4095 [12:46:40]OFD Sender: Processing packet 260679 [packets to send 192, broken 191] [12:46:40]ProducePacketName [12:46:40]name=ofd_packets/00260679 [12:46:40]OFD Sender: To server: pG, [12:46:40]CommunicateWithHost lk.salyk.kg:30040 [12:46:40]ConnectInit lk.salyk.kg [12:46:40]Connected sock=11 [12:46: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 30 0F 01 00 00 54 60 07 01 01 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 33 ED C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 47 FA 03 00 35 04 06 00 C8 3E 36 7D 37 03 6A A6 D1 4F 29 C5 07 E1 [12:46: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 30 4F 00 00 00 03 58 47 00 E7 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 47 FA 03 00 F4 03 04 00 88 96 C1 66 B6 04 01 00 00 EB 4C 28 AF BC 04 4D 1A [12:46:40]CommunicateWithHost err = 0 [12:46:40]CheckOFDResponse [12:46:40]1017 (14) - 77093643461234 [12:46:40]1041 (16) - 0000000000871820 [12:46:40]1040 (4) - 260679 [12:46:40]1012 (4) - 18.08.2024 06:36 [12:46:40]1206 (1) - 0 [12:46:40]OFD Sender: Remove packet 260679 [12:46:40]ProducePacketName [12:46:40]name=ofd_packets/00260679 [12:46:40]NVStorageDeleteData [12:46:40]Write to MH i2c: 01 00 00 20 80 A0 [12:46:40]Write i2c OK [12:46:40]MH_I2C_Read... [12:46:40]Read from MH i2c: 01 [12:46:40]MH_I2C_Read... [12:46:40]Read from MH i2c: 01 07 00 [12:46:40]MH_I2C_Read... [12:46:40]Read from MH i2c: 01 07 00 20 80 00 00 00 00 00 6E 0C 21 [12:46:40]RasterBufferAndPrint [12:46:40]line [12:46:40]line [12:46:40]line [12:46:40]line [12:46:40]line [12:46:40]written 0, free lines is 3185 [12:46:40]MH_Cut [12:46:40]Write to MH i2c: D1 01 00 27 80 01 79 [12:46:40]Write i2c OK [12:46:40]MH_I2C_Read... [12:46:40]Read from MH i2c: D1 [12:46:40]MH_I2C_Read... [12:46:40]Read from MH i2c: D1 01 00 [12:46:40]MH_I2C_Read... [12:46:40]Read from MH i2c: D1 01 00 27 80 00 78 [12:46:40]Write to MH i2c: 01 00 00 28 80 A8 [12:46:40]Write i2c OK [12:46:40]MH_I2C_Read... [12:46:41]OFD Sender: No OFD packet to send [12:46:41]*** Cut start [12:46:41]*** Purtial cut [12:46:41]*** Stage 1: CUTSNS_PIN = 1 [12:46:43]Read from MH i2c: 01 [12:46:43]MH_I2C_Read... [12:46:43]*** Stop cut motor [12:46:43]*** Cut end [12:46:43]Read from MH i2c: 01 07 00 [12:46:43]MH_I2C_Read... [12:46:43]Read from MH i2c: 01 07 00 28 80 00 00 00 00 00 FF 0F BD [12:46:43]process_action close_receipt done [12:46:43]requested_data is exist [12:46:43]produce_requested_data [12:46:43]requested_item fm.sn is exist - process it [12:46:43]wFMCommunicate request_size=4 [12:46:43]MH_SAM_APDU [12:46:43]CAPDU: 80 11 00 00 [12:46:43]Write to MH i2c: E2 08 00 29 80 80 11 00 00 00 00 00 00 23 [12:46:43]Write i2c OK [12:46:43]MH_I2C_Read... [12:46:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:43]Read from MH i2c: E2 [12:46:43]MH_I2C_Read... [12:46:43]Read from MH i2c: E2 17 00 [12:46:43]MH_I2C_Read... [12:46:43]Read from MH i2c: E2 17 00 29 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 70 [12:46:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:46:43]wFMCommunicate OK [12:46:43]requested_item fd.num is exist - process it [12:46:43]SAM_PROTO_GetFieldsCounters [12:46:43]wFMCommunicate request_size=4 [12:46:43]MH_SAM_APDU [12:46:43]CAPDU: 80 13 00 00 [12:46:43]Write to MH i2c: E2 08 00 2A 80 80 13 00 00 00 00 00 00 26 [12:46:43]Write i2c OK [12:46:43]MH_I2C_Read... [12:46:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:44]Read from MH i2c: E2 [12:46:44]MH_I2C_Read... [12:46:44]Read from MH i2c: E2 62 00 [12:46:44]MH_I2C_Read... [12:46:44]Read from MH i2c: E2 62 00 2A 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 47 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [12:46: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 47 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:44]wFMCommunicate OK [12:46:44]SAM_PROTO_GetFieldsCounters done [12:46:44]requested_item shift.num is exist - process it [12:46:44]requested_item shift.opened is exist - process it [12:46:44]req_shift_opened [12:46:44]FM_GetShiftState [12:46:44]SAM_PROTO_GetShiftState [12:46:44]wFMCommunicate request_size=4 [12:46:44]MH_SAM_APDU [12:46:44]CAPDU: 80 13 01 00 [12:46:44]Write to MH i2c: E2 08 00 2B 80 80 13 01 00 00 00 00 00 28 [12:46:44]Write i2c OK [12:46:44]MH_I2C_Read... [12:46:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:44]Read from MH i2c: E2 [12:46:44]MH_I2C_Read... [12:46:44]Read from MH i2c: E2 0E 00 [12:46:44]MH_I2C_Read... [12:46:44]Read from MH i2c: E2 0E 00 2B 80 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 65 [12:46:44]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:46:44]wFMCommunicate OK [12:46:44]SAM_PROTO_GetShiftState done [12:46:44]FM_GetShiftState done [12:46:44]req_shift_opened done [12:46:44]requested_item shift.open_date is exist - process it [12:46:44]req_shift_open_date [12:46:44]req_shift_open_date done [12:46:44]produce_requested_data done [12:46:44]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260679,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [12:46:44]process_action_free close_receipt [12:46:44]json_value_free [12:46:44]json_value_free done [12:46:44]process_json_proto returns [12:46:44]Send response to host [12:46:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260679,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [12:46:44]free response buf [12:46:44]execute_script done [12:46:44]execute_script returns [12:46:44]free content buf [12:46:44]Sock 7.Close socket [12:46:44]Sock 7.Thread stoped [12:46:46]OFD Sender: No OFD packet to send [12:46:51]OFD Sender: No OFD packet to send [12:46:56]OFD Sender: No OFD packet to send [12:47:01]OFD Sender: No OFD packet to send [12:47:06]OFD Sender: No OFD packet to send [12:47:11]OFD Sender: No OFD packet to send [12:47:11]accept exits with 9 [12:47:11]New connection [12:47:11]New thread 3066473828 created [12:47:11]Thread 3066617188 joined [12:47:11]Waiting for new connection... [12:47:11] Sock 9.Parse request [12:47:11]Sock 9.Check first char [12:47:11]Sock 9.First char is OK [12:47:11]request: POST /json_proto HTTP/1.0 [12:47:11]Method: POST [12:47:11]URL: /json_proto [12:47:11]Method is POST - this is cgi request [12:47:11]url: /json_proto [12:47:11]query_string will be loaded in cgi processing [12:47:11]execute_cgi json_proto POST (null) [12:47:11]execute_cgi path=json_proto method=POST [12:47:11]POST find Content-Length [12:47:11]Host: 172.17.55.133:8080 [12:47:11]Content-Length: 678 [12:47:11]Content-Type: application/json [12:47:11] [12:47:11]POST finish read [12:47:11]Found Content-Length = 678 [12:47:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:11]execute_script... [12:47: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)1036228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:11]POST & json_proto [12:47:11]process_json_proto [12:47:11]json parsed OK: [12:47:11]protocol is kg_v1.0 [12:47:11]action value=close_receipt [12:47:11]process_action close_receipt [12:47:11]cmd_close_receipt [12:47:11]MH_GetDate [12:47:11]Write to MH i2c: F0 00 00 2C 80 9B [12:47:11]Write i2c OK [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: F0 [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: F0 09 00 [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: F0 09 00 2C 80 00 54 ED C1 66 34 48 D8 65 C5 [12:47:11]GetLastDocTimeStamp 1723985203 [12:47:11]current date 1723985236 [12:47:11]FM_GetShiftState [12:47:11]SAM_PROTO_GetShiftState [12:47:11]wFMCommunicate request_size=4 [12:47:11]MH_SAM_APDU [12:47:11]CAPDU: 80 13 01 00 [12:47:11]Write to MH i2c: E2 08 00 2D 80 80 13 01 00 00 00 00 00 2A [12:47:11]Write i2c OK [12:47:11]MH_I2C_Read... [12:47:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:11]Read from MH i2c: E2 [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: E2 0E 00 [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: E2 0E 00 2D 80 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 67 [12:47:11]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:47:11]wFMCommunicate OK [12:47:11]SAM_PROTO_GetShiftState done [12:47:11]FM_GetShiftState done [12:47:11]opened in 1723940556 [12:47:11]opened+sec_in_day 1724026956 [12:47:11]quantity*price = 30035 [12:47:11]sum+1 = 30036 [12:47:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 238 18.08.2024 12:47 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260680 ФПД: 8226221356872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T124716&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260680&fm=8226221356872&tin=02508201610067®Number=0000000000091865&sum=30000 [12:47:12]StoreToDocumentArchive [12:47:12]shift 449 fd 260680 [12:47:12]save to /storage/0449/doc_00260680 [12:47:12]save last doc name /storage/0449/doc_00260680 to /storage/kkm_last_doc_name [12:47:12]save OK [12:47:12]Clear old archive folders... [12:47:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:47:12]tlvbuf is 00387CD0 [12:47:12]SAM_PROTO_ClearQueue [12:47:12]wFMCommunicate request_size=4 [12:47:12]MH_SAM_APDU [12:47:12]CAPDU: 80 09 00 00 [12:47:12]Write to MH i2c: E2 08 00 3A 80 80 09 00 00 00 00 00 00 2C [12:47:12]Write i2c OK [12:47:12]MH_I2C_Read... [12:47:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:12]Read from MH i2c: E2 [12:47:12]MH_I2C_Read... [12:47:12]Read from MH i2c: E2 03 00 [12:47:12]MH_I2C_Read... [12:47:12]Read from MH i2c: E2 03 00 3A 80 00 90 00 2E [12:47:12]RAPDU: 90 00 [12:47:12]wFMCommunicate OK [12:47:12]SAM_PROTO_ClearQueue done [12:47:12]KKMCreateOFDPacket [12:47:12]OFDProtocolAddRootSTLVToBuf [12:47:12]FM_MakeSignedData [12:47:12]FM_MakeSignedData [12:47:12]SAM_PROTO_SignData [12:47:12]wFMCommunicate request_size=4 [12:47:12]MH_SAM_APDU [12:47:12]CAPDU: 80 0D 01 02 [12:47:12]Write to MH i2c: E2 08 00 3B 80 80 0D 01 02 00 00 00 00 34 [12:47:12]Write i2c OK [12:47:12]MH_I2C_Read... [12:47:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:12]Read from MH i2c: E2 [12:47:12]MH_I2C_Read... [12:47:12]Read from MH i2c: E2 03 00 [12:47:12]MH_I2C_Read... [12:47:12]Read from MH i2c: E2 03 00 3B 80 00 90 00 2F [12:47:12]RAPDU: 90 00 [12:47:12]wFMCommunicate OK [12:47:12]wFMCommunicate request_size=255 [12:47:12]MH_SAM_APDU [12:47:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 54 ED C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 48 FA 03 00 35 04 06 00 07 [12:47:12]Write to MH i2c: E2 02 01 3C 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 54 ED C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 48 FA 03 00 35 04 06 00 07 00 00 34 [12:47:12]Write i2c OK [12:47:12]MH_I2C_Read... [12:47:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:12]Read from MH i2c: E2 [12:47:12]MH_I2C_Read... [12:47:12]Read from MH i2c: E2 03 00 [12:47:12]MH_I2C_Read... [12:47:12]Read from MH i2c: E2 03 00 3C 80 00 90 00 30 [12:47:12]RAPDU: 90 00 [12:47:12]wFMCommunicate OK [12:47:12]wFMCommunicate request_size=10 [12:47:12]MH_SAM_APDU [12:47:12]CAPDU: 80 0D 02 02 05 7B 51 00 77 48 [12:47:12]Write to MH i2c: E2 0D 00 3D 80 80 0D 02 02 05 00 7B 51 00 77 48 00 00 CC [12:47:12]Write i2c OK [12:47:12]MH_I2C_Read... [12:47:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:12]Read from MH i2c: E2 [12:47:12]MH_I2C_Read... [12:47:12]Read from MH i2c: E2 03 00 [12:47:12]MH_I2C_Read... [12:47:12]Read from MH i2c: E2 03 00 3D 80 00 90 00 31 [12:47:12]RAPDU: 90 00 [12:47:12]wFMCommunicate OK [12:47:12]wFMCommunicate request_size=4 [12:47:12]MH_SAM_APDU [12:47:12]CAPDU: 80 0D 03 02 [12:47:12]Write to MH i2c: E2 08 00 3E 80 80 0D 03 02 00 00 00 00 39 [12:47:12]Write i2c OK [12:47:12]MH_I2C_Read... [12:47:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:12]Read from MH i2c: E2 [12:47:12]MH_I2C_Read... [12:47:12]Read from MH i2c: E2 0B 00 [12:47:12]MH_I2C_Read... [12:47:12]Read from MH i2c: E2 0B 00 3E 80 00 A3 40 D9 5E 46 A2 A5 DA 90 00 BB [12:47:12]RAPDU: A3 40 D9 5E 46 A2 A5 DA 90 00 [12:47:12]wFMCommunicate OK [12:47:12]SAM_PROTO_SignData done [12:47:12]FM_MakeSignedData done [12:47:12]CreateOFDProtocolMessage [12:47:12]wFMCommunicate request_size=4 [12:47:12]MH_SAM_APDU [12:47:12]CAPDU: 80 11 00 00 [12:47:12]Write to MH i2c: E2 08 00 3F 80 80 11 00 00 00 00 00 00 39 [12:47:12]Write i2c OK [12:47:12]MH_I2C_Read... [12:47:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:13]Read from MH i2c: E2 [12:47:13]MH_I2C_Read... [12:47:13]Read from MH i2c: E2 17 00 [12:47:13]MH_I2C_Read... [12:47:13]Read from MH i2c: E2 17 00 3F 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 86 [12:47:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:47:13]wFMCommunicate OK [12:47:13]CreateOFDProtocolMessage done [12:47:13]OFDSenderStorePacket 260680 [12:47:13]StoreOFDPacket docnum=260680 [12:47:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 1E 8A 07 01 AB 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 54 ED C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 48 FA 03 00 35 04 06 00 07 7B 51 00 77 48 A3 40 D9 5E 46 A2 A5 DA [12:47:13]CheckFolder [12:47:13]dirname=/storage/ofd_packets [12:47:13]CheckFolder done [12:47:13]ProducePacketName [12:47:13]name=ofd_packets/00260680 [12:47:13]NVStorageSaveData ofd_packets/00260680 [12:47:13]File name is /storage/ofd_packets/00260680 [12:47:13]Write 301 bytes [12:47:13]NVStorageSaveData done [12:47:13]OFDSenderStorePacket done [12:47:13]KKMCreateOFDPacket done [12:47:13]NVStorageSaveData kkm_last_timestamp [12:47:13]File name is /storage/kkm_last_timestamp [12:47:13]Write 4 bytes [12:47:13]NVStorageSaveData done [12:47:13]ExternCall_PrintAddStr [12:47:13]wPrintStart [12:47:13]Write to MH i2c: 01 00 00 40 80 C0 [12:47:13]Write i2c OK [12:47:13]MH_I2C_Read... [12:47:13]Read from MH i2c: 01 [12:47:13]MH_I2C_Read... [12:47:13]Read from MH i2c: 01 07 00 [12:47:13]MH_I2C_Read... [12:47:13]Read from MH i2c: 01 07 00 40 80 00 00 00 00 00 FF 0F D5 [12:47:13]RasterBufferAndPrint [12:47:13]line Счет N : (1)1036228 [12:47:13]line ИНН: 02508201610067 [12:47:13]line Контрольно-Кассовый Чек [12:47:13]line ПРОДАЖА [12:47:13]line ТРК (МРК, ГНК) : 22 [12:47:13]line Товар: 2710124130 [12:47:13]line Аи-92-К-5 [12:47:13]line 4.430 * 67.80 [12:47:13]line = 300.35 [12:47:13]line НДС 12% НСП 1% [12:47:13]line > о реализуемом товаре [12:47:13]line ОКРУГЛЕНИЕ: -0.35 [12:47:13]line ИТОГО: 300.00 [12:47:13]line Внесено: 300.00 [12:47:13]line СДАЧА: 0.00 [12:47:13]line НСП 1% : 2.66 [12:47:13]line НДС 12% : 31.90 [12:47:13]line Наличными: 300.00 [12:47:13]line Безнал.: 0.00 [12:47:13]line Место: АЗС № 94 "Партнер Нефть" [12:47:13]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [12:47:13]line СНО: Общий режим [12:47:13]line Чек 238 18.08.2024 12:47 [12:47:13]line Смена: 449 ФФД: 1.0 [12:47:13]line ЗНМ: 0300000099 [12:47:13]line РНМ: 0000000000091865 [12:47:13]line Версия ККМ: 001 [12:47:13]line ФМ: 0000000000871820 [12:47:13]line ФД: 260680 [12:47:13]line ФПД: 8226221356872 [12:47:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T124716&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260680&fm=8226221356872&tin=02508201610067®Number=0000000000091865&sum=30000 [12:47:13]written 0, free lines is 4095 [12:47:13]OFD Sender: Processing packet 260680 [packets to send 192, broken 191] [12:47:13]ProducePacketName [12:47:13]name=ofd_packets/00260680 [12:47:13]OFD Sender: To server: pG, [12:47:13]CommunicateWithHost lk.salyk.kg:30040 [12:47:13]ConnectInit lk.salyk.kg [12:47:13]Connected sock=10 [12:47: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 30 0F 01 00 00 1E 8A 07 01 AB 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 54 ED C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 48 FA 03 00 35 04 06 00 07 7B 51 00 77 48 A3 40 D9 5E 46 A2 A5 DA [12:47: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 30 4F 00 00 00 35 DA 47 00 30 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 48 FA 03 00 F4 03 04 00 A9 96 C1 66 B6 04 01 00 00 00 32 30 07 79 5A 21 5F [12:47:13]CommunicateWithHost err = 0 [12:47:13]CheckOFDResponse [12:47:13]1017 (14) - 77093643461234 [12:47:13]1041 (16) - 0000000000871820 [12:47:13]1040 (4) - 260680 [12:47:13]1012 (4) - 18.08.2024 06:37 [12:47:13]1206 (1) - 0 [12:47:13]OFD Sender: Remove packet 260680 [12:47:13]ProducePacketName [12:47:13]name=ofd_packets/00260680 [12:47:13]NVStorageDeleteData [12:47:13]Write to MH i2c: 01 00 00 6B 80 EB [12:47:13]Write i2c OK [12:47:13]MH_I2C_Read... [12:47:13]Read from MH i2c: 01 [12:47:13]MH_I2C_Read... [12:47:13]Read from MH i2c: 01 07 00 [12:47:13]MH_I2C_Read... [12:47:13]Read from MH i2c: 01 07 00 6B 80 00 00 00 00 00 6B 0C 69 [12:47:13]RasterBufferAndPrint [12:47:13]line [12:47:13]line [12:47:13]line [12:47:13]line [12:47:13]line [12:47:13]written 0, free lines is 3182 [12:47:13]MH_Cut [12:47:13]Write to MH i2c: D1 01 00 72 80 01 C4 [12:47:13]Write i2c OK [12:47:13]MH_I2C_Read... [12:47:13]Read from MH i2c: D1 [12:47:13]MH_I2C_Read... [12:47:13]Read from MH i2c: D1 01 00 [12:47:13]MH_I2C_Read... [12:47:13]Read from MH i2c: D1 01 00 72 80 00 C3 [12:47:13]Write to MH i2c: 01 00 00 73 80 F3 [12:47:13]Write i2c OK [12:47:13]MH_I2C_Read... [12:47:14]OFD Sender: No OFD packet to send [12:47:15]*** Cut start [12:47:15]*** Purtial cut [12:47:15]*** Stage 1: CUTSNS_PIN = 1 [12:47:17]Read from MH i2c: 01 [12:47:17]MH_I2C_Read... [12:47:17]*** Stop cut motor [12:47:17]*** Cut end [12:47:17]Read from MH i2c: 01 07 00 [12:47:17]MH_I2C_Read... [12:47:17]Read from MH i2c: 01 07 00 73 80 00 00 00 00 00 FF 0F 08 [12:47:17]process_action close_receipt done [12:47:17]requested_data is exist [12:47:17]produce_requested_data [12:47:17]requested_item fm.sn is exist - process it [12:47:17]wFMCommunicate request_size=4 [12:47:17]MH_SAM_APDU [12:47:17]CAPDU: 80 11 00 00 [12:47:17]Write to MH i2c: E2 08 00 74 80 80 11 00 00 00 00 00 00 6E [12:47:17]Write i2c OK [12:47:17]MH_I2C_Read... [12:47:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:17]Read from MH i2c: E2 [12:47:17]MH_I2C_Read... [12:47:17]Read from MH i2c: E2 17 00 [12:47:17]MH_I2C_Read... [12:47:17]Read from MH i2c: E2 17 00 74 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 BB [12:47:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:47:17]wFMCommunicate OK [12:47:17]requested_item fd.num is exist - process it [12:47:17]SAM_PROTO_GetFieldsCounters [12:47:17]wFMCommunicate request_size=4 [12:47:17]MH_SAM_APDU [12:47:17]CAPDU: 80 13 00 00 [12:47:17]Write to MH i2c: E2 08 00 75 80 80 13 00 00 00 00 00 00 71 [12:47:17]Write i2c OK [12:47:17]MH_I2C_Read... [12:47:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:17]Read from MH i2c: E2 [12:47:17]MH_I2C_Read... [12:47:17]Read from MH i2c: E2 62 00 [12:47:17]MH_I2C_Read... [12:47:17]Read from MH i2c: E2 62 00 75 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 48 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [12:47: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 48 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:47:17]wFMCommunicate OK [12:47:17]SAM_PROTO_GetFieldsCounters done [12:47:17]requested_item shift.num is exist - process it [12:47:17]requested_item shift.opened is exist - process it [12:47:17]req_shift_opened [12:47:17]FM_GetShiftState [12:47:17]SAM_PROTO_GetShiftState [12:47:17]wFMCommunicate request_size=4 [12:47:17]MH_SAM_APDU [12:47:17]CAPDU: 80 13 01 00 [12:47:17]Write to MH i2c: E2 08 00 76 80 80 13 01 00 00 00 00 00 73 [12:47:17]Write i2c OK [12:47:17]MH_I2C_Read... [12:47:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:17]Read from MH i2c: E2 [12:47:17]MH_I2C_Read... [12:47:17]Read from MH i2c: E2 0E 00 [12:47:17]MH_I2C_Read... [12:47:17]Read from MH i2c: E2 0E 00 76 80 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B0 [12:47:17]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:47:17]wFMCommunicate OK [12:47:17]SAM_PROTO_GetShiftState done [12:47:17]FM_GetShiftState done [12:47:17]req_shift_opened done [12:47:17]requested_item shift.open_date is exist - process it [12:47:17]req_shift_open_date [12:47:17]req_shift_open_date done [12:47:17]produce_requested_data done [12:47:17]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260680,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [12:47:17]process_action_free close_receipt [12:47:17]json_value_free [12:47:17]json_value_free done [12:47:17]process_json_proto returns [12:47:17]Send response to host [12:47:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260680,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [12:47:17]free response buf [12:47:17]execute_script done [12:47:17]execute_script returns [12:47:17]free content buf [12:47:17]Sock 9.Close socket [12:47:17]Sock 9.Thread stoped [12:47:19]OFD Sender: No OFD packet to send [12:47:24]OFD Sender: No OFD packet to send [12:47:29]OFD Sender: No OFD packet to send [12:47:34]OFD Sender: No OFD packet to send [12:47:39]OFD Sender: No OFD packet to send [12:47:44]OFD Sender: No OFD packet to send [12:47:49]OFD Sender: No OFD packet to send [12:47:54]OFD Sender: No OFD packet to send [12:47:59]OFD Sender: No OFD packet to send [12:48:04]OFD Sender: No OFD packet to send [12:48:09]OFD Sender: No OFD packet to send [12:48:14]OFD Sender: No OFD packet to send [12:48:19]OFD Sender: No OFD packet to send [12:48:24]OFD Sender: No OFD packet to send [12:48:29]OFD Sender: No OFD packet to send [12:48:34]OFD Sender: No OFD packet to send [12:48:39]OFD Sender: No OFD packet to send [12:48:44]OFD Sender: No OFD packet to send [12:48:49]OFD Sender: No OFD packet to send [12:48:54]OFD Sender: No OFD packet to send [12:48:59]OFD Sender: No OFD packet to send [12:49:04]OFD Sender: No OFD packet to send [12:49:09]OFD Sender: No OFD packet to send [12:49:14]OFD Sender: No OFD packet to send [12:49:19]OFD Sender: No OFD packet to send [12:49:24]OFD Sender: No OFD packet to send [12:49:29]OFD Sender: No OFD packet to send [12:49:34]OFD Sender: No OFD packet to send [12:49:39]OFD Sender: No OFD packet to send [12:49:44]OFD Sender: No OFD packet to send [12:49:49]OFD Sender: No OFD packet to send [12:49:54]OFD Sender: No OFD packet to send [12:49:59]OFD Sender: No OFD packet to send [12:50:04]OFD Sender: No OFD packet to send [12:50:09]OFD Sender: No OFD packet to send [12:50:14]OFD Sender: No OFD packet to send [12:50:19]OFD Sender: No OFD packet to send [12:50:24]OFD Sender: No OFD packet to send [12:50:29]OFD Sender: No OFD packet to send [12:50:34]OFD Sender: No OFD packet to send [12:50:39]OFD Sender: No OFD packet to send [12:50:44]OFD Sender: No OFD packet to send [12:50:49]OFD Sender: No OFD packet to send [12:50:54]OFD Sender: No OFD packet to send [12:50:59]OFD Sender: No OFD packet to send [12:51:04]OFD Sender: No OFD packet to send [12:51:09]OFD Sender: No OFD packet to send [12:51:14]OFD Sender: No OFD packet to send [12:51:19]OFD Sender: No OFD packet to send [12:51:24]OFD Sender: No OFD packet to send [12:51:27]accept exits with 7 [12:51:27]New connection [12:51:27]New thread 3066617188 created [12:51:27]Thread 3066473828 joined [12:51:27]Waiting for new connection... [12:51:27] Sock 7.Parse request [12:51:27]Sock 7.Check first char [12:51:27]Sock 7.First char is OK [12:51:27]request: POST /json_proto HTTP/1.0 [12:51:27]Method: POST [12:51:27]URL: /json_proto [12:51:27]Method is POST - this is cgi request [12:51:27]url: /json_proto [12:51:27]query_string will be loaded in cgi processing [12:51:27]execute_cgi json_proto POST (null) [12:51:27]execute_cgi path=json_proto method=POST [12:51:27]POST find Content-Length [12:51:27]Host: 172.17.55.133:8080 [12:51:27]Content-Length: 801 [12:51:27]Content-Type: application/json [12:51:27] [12:51:27]POST finish read [12:51:27]Found Content-Length = 801 [12:51:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036229", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:27]execute_script... [12:51: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)1036229", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:27]POST & json_proto [12:51:27]process_json_proto [12:51:27]json parsed OK: [12:51:27]protocol is kg_v1.0 [12:51:27]action value=close_receipt [12:51:27]process_action close_receipt [12:51:27]cmd_close_receipt [12:51:27]MH_GetDate [12:51:27]Write to MH i2c: F0 00 00 77 80 E6 [12:51:27]Write i2c OK [12:51:27]MH_I2C_Read... [12:51:27]Read from MH i2c: F0 [12:51:27]MH_I2C_Read... [12:51:27]Read from MH i2c: F0 09 00 [12:51:27]MH_I2C_Read... [12:51:27]Read from MH i2c: F0 09 00 77 80 00 54 EE C1 66 34 48 D8 65 11 [12:51:27]GetLastDocTimeStamp 1723985236 [12:51:27]current date 1723985492 [12:51:27]FM_GetShiftState [12:51:27]SAM_PROTO_GetShiftState [12:51:27]wFMCommunicate request_size=4 [12:51:27]MH_SAM_APDU [12:51:27]CAPDU: 80 13 01 00 [12:51:27]Write to MH i2c: E2 08 00 78 80 80 13 01 00 00 00 00 00 75 [12:51:27]Write i2c OK [12:51:27]MH_I2C_Read... [12:51:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:27]Read from MH i2c: E2 [12:51:27]MH_I2C_Read... [12:51:27]Read from MH i2c: E2 0E 00 [12:51:27]MH_I2C_Read... [12:51:27]Read from MH i2c: E2 0E 00 78 80 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B2 [12:51:27]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:51:27]wFMCommunicate OK [12:51:27]SAM_PROTO_GetShiftState done [12:51:27]FM_GetShiftState done [12:51:27]opened in 1723940556 [12:51:27]opened+sec_in_day 1724026956 [12:51:27]quantity*price = 50010 [12:51:27]sum+1 = 50012 [12:51:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 239 18.08.2024 12:51 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260681 ФПД: 145077530641128 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T125132&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260681&fm=145077530641128&tin=02508201610067®Number=0000000000091865&sum=50011 [12:51:29]StoreToDocumentArchive [12:51:29]shift 449 fd 260681 [12:51:29]save to /storage/0449/doc_00260681 [12:51:29]save last doc name /storage/0449/doc_00260681 to /storage/kkm_last_doc_name [12:51:29]save OK [12:51:29]Clear old archive folders... [12:51:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:51:29]tlvbuf is 003A0690 [12:51:29]SAM_PROTO_ClearQueue [12:51:29]wFMCommunicate request_size=4 [12:51:29]MH_SAM_APDU [12:51:29]CAPDU: 80 09 00 00 [12:51:29]Write to MH i2c: E2 08 00 85 80 80 09 00 00 00 00 00 00 77 [12:51:29]Write i2c OK [12:51:29]MH_I2C_Read... [12:51:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:29]Read from MH i2c: E2 [12:51:29]MH_I2C_Read... [12:51:29]Read from MH i2c: E2 03 00 [12:51:29]MH_I2C_Read... [12:51:29]Read from MH i2c: E2 03 00 85 80 00 90 00 79 [12:51:29]RAPDU: 90 00 [12:51:29]wFMCommunicate OK [12:51:29]SAM_PROTO_ClearQueue done [12:51:29]KKMCreateOFDPacket [12:51:29]OFDProtocolAddRootSTLVToBuf [12:51:29]FM_MakeSignedData [12:51:29]FM_MakeSignedData [12:51:29]SAM_PROTO_SignData [12:51:29]wFMCommunicate request_size=4 [12:51:29]MH_SAM_APDU [12:51:29]CAPDU: 80 0D 01 02 [12:51:29]Write to MH i2c: E2 08 00 86 80 80 0D 01 02 00 00 00 00 7F [12:51:29]Write i2c OK [12:51:29]MH_I2C_Read... [12:51:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:29]Read from MH i2c: E2 [12:51:29]MH_I2C_Read... [12:51:29]Read from MH i2c: E2 03 00 [12:51:29]MH_I2C_Read... [12:51:29]Read from MH i2c: E2 03 00 86 80 00 90 00 7A [12:51:29]RAPDU: 90 00 [12:51:29]wFMCommunicate OK [12:51:29]wFMCommunicate request_size=255 [12:51:29]MH_SAM_APDU [12:51: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 54 EE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 49 FA 03 00 35 04 06 00 83 [12:51:29]Write to MH i2c: E2 02 01 87 80 80 0D 02 02 FA 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 54 EE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 49 FA 03 00 35 04 06 00 83 00 00 DD [12:51:29]Write i2c OK [12:51:29]MH_I2C_Read... [12:51:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:29]Read from MH i2c: E2 [12:51:29]MH_I2C_Read... [12:51:29]Read from MH i2c: E2 03 00 [12:51:29]MH_I2C_Read... [12:51:29]Read from MH i2c: E2 03 00 87 80 00 90 00 7B [12:51:29]RAPDU: 90 00 [12:51:29]wFMCommunicate OK [12:51:29]wFMCommunicate request_size=10 [12:51:29]MH_SAM_APDU [12:51:29]CAPDU: 80 0D 02 02 05 F2 7E AD C2 E8 [12:51:29]Write to MH i2c: E2 0D 00 88 80 80 0D 02 02 05 00 F2 7E AD C2 E8 00 00 53 [12:51:29]Write i2c OK [12:51:29]MH_I2C_Read... [12:51:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:29]Read from MH i2c: E2 [12:51:29]MH_I2C_Read... [12:51:29]Read from MH i2c: E2 03 00 [12:51:29]MH_I2C_Read... [12:51:29]Read from MH i2c: E2 03 00 88 80 00 90 00 7C [12:51:29]RAPDU: 90 00 [12:51:29]wFMCommunicate OK [12:51:29]wFMCommunicate request_size=4 [12:51:29]MH_SAM_APDU [12:51:29]CAPDU: 80 0D 03 02 [12:51:29]Write to MH i2c: E2 08 00 89 80 80 0D 03 02 00 00 00 00 84 [12:51:29]Write i2c OK [12:51:29]MH_I2C_Read... [12:51:29]OFD Sender: No OFD packet to send [12:51:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:29]Read from MH i2c: E2 [12:51:29]MH_I2C_Read... [12:51:29]Read from MH i2c: E2 0B 00 [12:51:29]MH_I2C_Read... [12:51:29]Read from MH i2c: E2 0B 00 89 80 00 D5 2F DC 1E 50 C4 C2 32 90 00 8B [12:51:29]RAPDU: D5 2F DC 1E 50 C4 C2 32 90 00 [12:51:29]wFMCommunicate OK [12:51:29]SAM_PROTO_SignData done [12:51:29]FM_MakeSignedData done [12:51:29]CreateOFDProtocolMessage [12:51:29]wFMCommunicate request_size=4 [12:51:29]MH_SAM_APDU [12:51:29]CAPDU: 80 11 00 00 [12:51:29]Write to MH i2c: E2 08 00 8A 80 80 11 00 00 00 00 00 00 84 [12:51:29]Write i2c OK [12:51:29]MH_I2C_Read... [12:51:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:29]Read from MH i2c: E2 [12:51:29]MH_I2C_Read... [12:51:29]Read from MH i2c: E2 17 00 [12:51:29]MH_I2C_Read... [12:51:29]Read from MH i2c: E2 17 00 8A 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D1 [12:51:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:51:29]wFMCommunicate OK [12:51:29]CreateOFDProtocolMessage done [12:51:29]OFDSenderStorePacket 260681 [12:51:29]StoreOFDPacket docnum=260681 [12:51:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 50 9B 07 01 17 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 54 EE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 49 FA 03 00 35 04 06 00 83 F2 7E AD C2 E8 D5 2F DC 1E 50 C4 C2 32 [12:51:29]CheckFolder [12:51:29]dirname=/storage/ofd_packets [12:51:29]CheckFolder done [12:51:29]ProducePacketName [12:51:29]name=ofd_packets/00260681 [12:51:29]NVStorageSaveData ofd_packets/00260681 [12:51:29]File name is /storage/ofd_packets/00260681 [12:51:29]Write 301 bytes [12:51:29]NVStorageSaveData done [12:51:29]OFDSenderStorePacket done [12:51:29]KKMCreateOFDPacket done [12:51:29]NVStorageSaveData kkm_last_timestamp [12:51:29]File name is /storage/kkm_last_timestamp [12:51:29]Write 4 bytes [12:51:29]NVStorageSaveData done [12:51:29]ExternCall_PrintAddStr [12:51:29]wPrintStart [12:51:29]Write to MH i2c: 01 00 00 8B 80 0B [12:51:29]Write i2c OK [12:51:29]MH_I2C_Read... [12:51:29]Read from MH i2c: 01 [12:51:29]MH_I2C_Read... [12:51:29]Read from MH i2c: 01 07 00 [12:51:29]MH_I2C_Read... [12:51:29]Read from MH i2c: 01 07 00 8B 80 00 00 00 00 00 FF 0F 20 [12:51:29]RasterBufferAndPrint [12:51:29]line Счет N : (1)1036229 [12:51:29]line ИНН: 02508201610067 [12:51:29]line Контрольно-Кассовый Чек [12:51:29]line ПРОДАЖА [12:51:29]line ТРК (МРК, ГНК) : 23 [12:51:29]line Товар: 2710124500 [12:51:29]line Аи-95-К-5 [12:51:29]line 6.740 * 74.20 [12:51:29]line = 500.11 [12:51:29]line НДС 12% НСП 1% [12:51:29]line > о реализуемом товаре [12:51:29]line ИТОГО: 500.11 [12:51:29]line НСП 1% : 4.43 [12:51:29]line НДС 12% : 53.11 [12:51:29]line Наличными: 0.00 [12:51:29]line Безнал.: 500.11 [12:51:29]line Место: АЗС № 94 "Партнер Нефть" [12:51:29]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [12:51:29]line СНО: Общий режим [12:51:29]line Чек 239 18.08.2024 12:51 [12:51:29]line Смена: 449 ФФД: 1.0 [12:51:29]line ЗНМ: 0300000099 [12:51:29]line РНМ: 0000000000091865 [12:51:29]line Версия ККМ: 001 [12:51:29]line Платежная система: O! деньги [12:51:29]line ФМ: 0000000000871820 [12:51:29]line ФД: 260681 [12:51:29]line ФПД: 145077530641128 [12:51:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T125132&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260681&fm=145077530641128&tin=02508201610067®Number=0000000000091865&sum=50011 [12:51:29]written 0, free lines is 4095 [12:51:29]OFD Sender: Processing packet 260681 [packets to send 192, broken 191] [12:51:29]ProducePacketName [12:51:29]name=ofd_packets/00260681 [12:51:29]OFD Sender: To server: pG, [12:51:29]CommunicateWithHost lk.salyk.kg:30040 [12:51:29]ConnectInit lk.salyk.kg [12:51:30]Write to MH i2c: 01 00 00 B5 80 35 [12:51:30]Write i2c OK [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: 01 [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: 01 07 00 [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: 01 07 00 B5 80 00 00 00 00 00 82 0C CA [12:51:30]RasterBufferAndPrint [12:51:30]line [12:51:30]line [12:51:30]line [12:51:30]line [12:51:30]line [12:51:30]written 0, free lines is 3206 [12:51:30]MH_Cut [12:51:30]Write to MH i2c: D1 01 00 BC 80 01 0E [12:51:30]Write i2c OK [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: D1 [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: D1 01 00 [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: D1 01 00 BC 80 00 0D [12:51:30]Write to MH i2c: 01 00 00 BD 80 3D [12:51:30]Write i2c OK [12:51:30]MH_I2C_Read... [12:51:31]*** Cut start [12:51:31]*** Purtial cut [12:51:31]*** Stage 1: CUTSNS_PIN = 1 [12:51:33]Read from MH i2c: 01 [12:51:33]MH_I2C_Read... [12:51:33]*** Stop cut motor [12:51:33]*** Cut end [12:51:33]Read from MH i2c: 01 07 00 [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: 01 07 00 BD 80 00 00 00 00 00 FF 0F 52 [12:51:33]process_action close_receipt done [12:51:33]requested_data is exist [12:51:33]produce_requested_data [12:51:33]requested_item fm.sn is exist - process it [12:51:33]wFMCommunicate request_size=4 [12:51:33]MH_SAM_APDU [12:51:33]CAPDU: 80 11 00 00 [12:51:33]Write to MH i2c: E2 08 00 BE 80 80 11 00 00 00 00 00 00 B8 [12:51:33]Write i2c OK [12:51:33]MH_I2C_Read... [12:51:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:33]Read from MH i2c: E2 [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: E2 17 00 [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: E2 17 00 BE 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 05 [12:51:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:51:33]wFMCommunicate OK [12:51:33]requested_item fd.num is exist - process it [12:51:33]SAM_PROTO_GetFieldsCounters [12:51:33]wFMCommunicate request_size=4 [12:51:33]MH_SAM_APDU [12:51:33]CAPDU: 80 13 00 00 [12:51:33]Write to MH i2c: E2 08 00 BF 80 80 13 00 00 00 00 00 00 BB [12:51:33]Write i2c OK [12:51:33]MH_I2C_Read... [12:51:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:33]Read from MH i2c: E2 [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: E2 62 00 [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: E2 62 00 BF 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 49 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [12:51: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 49 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:51:33]wFMCommunicate OK [12:51:33]SAM_PROTO_GetFieldsCounters done [12:51:33]requested_item shift.num is exist - process it [12:51:33]requested_item shift.opened is exist - process it [12:51:33]req_shift_opened [12:51:33]FM_GetShiftState [12:51:33]SAM_PROTO_GetShiftState [12:51:33]wFMCommunicate request_size=4 [12:51:33]MH_SAM_APDU [12:51:33]CAPDU: 80 13 01 00 [12:51:33]Write to MH i2c: E2 08 00 C0 80 80 13 01 00 00 00 00 00 BD [12:51:33]Write i2c OK [12:51:33]MH_I2C_Read... [12:51:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:33]Read from MH i2c: E2 [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: E2 0E 00 [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: E2 0E 00 C0 80 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 FA [12:51:33]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:51:33]wFMCommunicate OK [12:51:33]SAM_PROTO_GetShiftState done [12:51:33]FM_GetShiftState done [12:51:33]req_shift_opened done [12:51:33]requested_item shift.open_date is exist - process it [12:51:33]req_shift_open_date [12:51:33]req_shift_open_date done [12:51:33]produce_requested_data done [12:51:33]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260681,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [12:51:33]process_action_free close_receipt [12:51:33]json_value_free [12:51:33]json_value_free done [12:51:33]process_json_proto returns [12:51:33]Send response to host [12:51:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260681,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [12:51:33]free response buf [12:51:33]execute_script done [12:51:33]execute_script returns [12:51:33]free content buf [12:51:33]Sock 7.Close socket [12:51:33]Sock 7.Thread stoped [12:53:27]accept exits with 9 [12:53:27]New connection [12:53:27]New thread 3066473828 created [12:53:27]Thread 3066617188 joined [12:53:27]Waiting for new connection... [12:53:27] Sock 9.Parse request [12:53:27]Sock 9.Check first char [12:53:27]Sock 9.First char is OK [12:53:27]request: POST /json_proto HTTP/1.0 [12:53:27]Method: POST [12:53:27]URL: /json_proto [12:53:27]Method is POST - this is cgi request [12:53:27]url: /json_proto [12:53:27]query_string will be loaded in cgi processing [12:53:27]execute_cgi json_proto POST (null) [12:53:27]execute_cgi path=json_proto method=POST [12:53:27]POST find Content-Length [12:53:27]Host: 172.17.55.133:8080 [12:53:27]Content-Length: 678 [12:53:27]Content-Type: application/json [12:53:27] [12:53:27]POST finish read [12:53:27]Found Content-Length = 678 [12:53:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036230", "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" : 74.20, "quantity" : 8.770, "sum" : 650.73, "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:53:27]execute_script... [12:53: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)1036230", "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" : 74.20, "quantity" : 8.770, "sum" : 650.73, "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:53:27]POST & json_proto [12:53:27]process_json_proto [12:53:27]json parsed OK: [12:53:27]protocol is kg_v1.0 [12:53:27]action value=close_receipt [12:53:27]process_action close_receipt [12:53:27]cmd_close_receipt [12:53:27]MH_GetDate [12:53:27]Write to MH i2c: F0 00 00 C1 80 30 [12:53:27]Write i2c OK [12:53:27]MH_I2C_Read... [12:53:27]Read from MH i2c: F0 [12:53:27]MH_I2C_Read... [12:53:27]Read from MH i2c: F0 09 00 [12:53:27]MH_I2C_Read... [12:53:27]Read from MH i2c: F0 09 00 C1 80 00 CC EE C1 66 34 48 D8 65 D3 [12:53:27]GetLastDocTimeStamp 1723985492 [12:53:27]current date 1723985612 [12:53:27]FM_GetShiftState [12:53:27]SAM_PROTO_GetShiftState [12:53:27]wFMCommunicate request_size=4 [12:53:27]MH_SAM_APDU [12:53:27]CAPDU: 80 13 01 00 [12:53:27]Write to MH i2c: E2 08 00 C2 80 80 13 01 00 00 00 00 00 BF [12:53:27]Write i2c OK [12:53:27]MH_I2C_Read... [12:53:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:27]Read from MH i2c: E2 [12:53:27]MH_I2C_Read... [12:53:27]Read from MH i2c: E2 0E 00 [12:53:27]MH_I2C_Read... [12:53:27]Read from MH i2c: E2 0E 00 C2 80 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 FC [12:53:27]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:53:27]wFMCommunicate OK [12:53:27]SAM_PROTO_GetShiftState done [12:53:27]FM_GetShiftState done [12:53:27]opened in 1723940556 [12:53:27]opened+sec_in_day 1724026956 [12:53:27]quantity*price = 65073 [12:53:27]sum+1 = 65074 [12:53:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.10 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 240 18.08.2024 12:53 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260682 ФПД: 233499898066624 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T125332&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260682&fm=233499898066624&tin=02508201610067®Number=0000000000091865&sum=65000 [12:53:29]StoreToDocumentArchive [12:53:29]shift 449 fd 260682 [12:53:29]save to /storage/0449/doc_00260682 [12:53:29]save last doc name /storage/0449/doc_00260682 to /storage/kkm_last_doc_name [12:53:29]save OK [12:53:29]Clear old archive folders... [12:53:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:53:29]tlvbuf is 00383850 [12:53:29]SAM_PROTO_ClearQueue [12:53:29]wFMCommunicate request_size=4 [12:53:29]MH_SAM_APDU [12:53:29]CAPDU: 80 09 00 00 [12:53:29]Write to MH i2c: E2 08 00 CF 80 80 09 00 00 00 00 00 00 C1 [12:53:29]Write i2c OK [12:53:29]MH_I2C_Read... [12:53:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:29]Read from MH i2c: E2 [12:53:29]MH_I2C_Read... [12:53:29]Read from MH i2c: E2 03 00 [12:53:29]MH_I2C_Read... [12:53:29]Read from MH i2c: E2 03 00 CF 80 00 90 00 C3 [12:53:29]RAPDU: 90 00 [12:53:29]wFMCommunicate OK [12:53:29]SAM_PROTO_ClearQueue done [12:53:29]KKMCreateOFDPacket [12:53:29]OFDProtocolAddRootSTLVToBuf [12:53:29]FM_MakeSignedData [12:53:29]FM_MakeSignedData [12:53:29]SAM_PROTO_SignData [12:53:29]wFMCommunicate request_size=4 [12:53:29]MH_SAM_APDU [12:53:29]CAPDU: 80 0D 01 02 [12:53:29]Write to MH i2c: E2 08 00 D0 80 80 0D 01 02 00 00 00 00 C9 [12:53:29]Write i2c OK [12:53:29]MH_I2C_Read... [12:53:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:29]Read from MH i2c: E2 [12:53:29]MH_I2C_Read... [12:53:29]Read from MH i2c: E2 03 00 [12:53:29]MH_I2C_Read... [12:53:29]Read from MH i2c: E2 03 00 D0 80 00 90 00 C4 [12:53:29]RAPDU: 90 00 [12:53:29]wFMCommunicate OK [12:53:29]wFMCommunicate request_size=255 [12:53:29]MH_SAM_APDU [12:53: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 42 22 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 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 F0 00 00 00 F4 03 04 00 CC EE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4A FA 03 00 35 04 06 00 D4 [12:53:29]Write to MH i2c: E2 02 01 D1 80 80 0D 02 02 FA 00 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 42 22 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 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 F0 00 00 00 F4 03 04 00 CC EE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4A FA 03 00 35 04 06 00 D4 00 00 52 [12:53:29]Write i2c OK [12:53:29]MH_I2C_Read... [12:53:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:29]Read from MH i2c: E2 [12:53:29]MH_I2C_Read... [12:53:29]Read from MH i2c: E2 03 00 [12:53:29]MH_I2C_Read... [12:53:29]Read from MH i2c: E2 03 00 D1 80 00 90 00 C5 [12:53:29]RAPDU: 90 00 [12:53:29]wFMCommunicate OK [12:53:29]wFMCommunicate request_size=10 [12:53:29]MH_SAM_APDU [12:53:29]CAPDU: 80 0D 02 02 05 5D EE 7A B6 C0 [12:53:29]Write to MH i2c: E2 0D 00 D2 80 80 0D 02 02 05 00 5D EE 7A B6 C0 00 00 11 [12:53:29]Write i2c OK [12:53:29]MH_I2C_Read... [12:53:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:29]Read from MH i2c: E2 [12:53:29]MH_I2C_Read... [12:53:29]Read from MH i2c: E2 03 00 [12:53:29]MH_I2C_Read... [12:53:29]Read from MH i2c: E2 03 00 D2 80 00 90 00 C6 [12:53:29]RAPDU: 90 00 [12:53:29]wFMCommunicate OK [12:53:29]wFMCommunicate request_size=4 [12:53:29]MH_SAM_APDU [12:53:29]CAPDU: 80 0D 03 02 [12:53:29]Write to MH i2c: E2 08 00 D3 80 80 0D 03 02 00 00 00 00 CE [12:53:29]Write i2c OK [12:53:29]MH_I2C_Read... [12:53:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:29]Read from MH i2c: E2 [12:53:29]MH_I2C_Read... [12:53:29]Read from MH i2c: E2 0B 00 [12:53:29]MH_I2C_Read... [12:53:29]Read from MH i2c: E2 0B 00 D3 80 00 00 C5 E2 EA 7F 1E 73 E8 90 00 58 [12:53:29]RAPDU: 00 C5 E2 EA 7F 1E 73 E8 90 00 [12:53:29]wFMCommunicate OK [12:53:29]SAM_PROTO_SignData done [12:53:29]FM_MakeSignedData done [12:53:29]CreateOFDProtocolMessage [12:53:29]wFMCommunicate request_size=4 [12:53:29]MH_SAM_APDU [12:53:29]CAPDU: 80 11 00 00 [12:53:29]Write to MH i2c: E2 08 00 D4 80 80 11 00 00 00 00 00 00 CE [12:53:29]Write i2c OK [12:53:29]MH_I2C_Read... [12:53:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:29]Read from MH i2c: E2 [12:53:29]MH_I2C_Read... [12:53:29]Read from MH i2c: E2 17 00 [12:53:29]MH_I2C_Read... [12:53:29]Read from MH i2c: E2 17 00 D4 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 1B [12:53:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:53:29]wFMCommunicate OK [12:53:29]CreateOFDProtocolMessage done [12:53:29]OFDSenderStorePacket 260682 [12:53:29]StoreOFDPacket docnum=260682 [12:53:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 D9 39 07 01 06 3C 5A 03 01 00 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 42 22 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 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 F0 00 00 00 F4 03 04 00 CC EE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4A FA 03 00 35 04 06 00 D4 5D EE 7A B6 C0 00 C5 E2 EA 7F 1E 73 E8 [12:53:29]CheckFolder [12:53:29]dirname=/storage/ofd_packets [12:53:29]CheckFolder done [12:53:29]ProducePacketName [12:53:29]name=ofd_packets/00260682 [12:53:29]NVStorageSaveData ofd_packets/00260682 [12:53:29]File name is /storage/ofd_packets/00260682 [12:53:29]Write 301 bytes [12:53:29]NVStorageSaveData done [12:53:29]OFDSenderStorePacket done [12:53:29]KKMCreateOFDPacket done [12:53:29]NVStorageSaveData kkm_last_timestamp [12:53:29]File name is /storage/kkm_last_timestamp [12:53:29]Write 4 bytes [12:53:29]NVStorageSaveData done [12:53:29]ExternCall_PrintAddStr [12:53:29]wPrintStart [12:53:29]Write to MH i2c: 01 00 00 D5 80 55 [12:53:29]Write i2c OK [12:53:29]MH_I2C_Read... [12:53:29]Read from MH i2c: 01 [12:53:29]MH_I2C_Read... [12:53:29]Read from MH i2c: 01 07 00 [12:53:29]MH_I2C_Read... [12:53:29]Read from MH i2c: 01 07 00 D5 80 00 00 00 00 00 FF 0F 6A [12:53:29]RasterBufferAndPrint [12:53:29]line Счет N : (1)1036230 [12:53:29]line ИНН: 02508201610067 [12:53:29]line Контрольно-Кассовый Чек [12:53:29]line ПРОДАЖА [12:53:29]line ТРК (МРК, ГНК) : 13 [12:53:29]line Товар: 2710124500 [12:53:29]line Аи-95-К-5 [12:53:29]line 8.770 * 74.20 [12:53:29]line = 650.73 [12:53:29]line НДС 12% НСП 1% [12:53:29]line > о реализуемом товаре [12:53:29]line ОКРУГЛЕНИЕ: -0.73 [12:53:29]line ИТОГО: 650.00 [12:53:29]line Внесено: 650.00 [12:53:29]line СДАЧА: 0.00 [12:53:29]line НСП 1% : 5.76 [12:53:29]line НДС 12% : 69.10 [12:53:29]line Наличными: 650.00 [12:53:29]line Безнал.: 0.00 [12:53:29]line Место: АЗС № 94 "Партнер Нефть" [12:53:29]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [12:53:29]line СНО: Общий режим [12:53:29]line Чек 240 18.08.2024 12:53 [12:53:29]line Смена: 449 ФФД: 1.0 [12:53:29]line ЗНМ: 0300000099 [12:53:29]line РНМ: 0000000000091865 [12:53:29]line Версия ККМ: 001 [12:53:29]line ФМ: 0000000000871820 [12:53:29]line ФД: 260682 [12:53:29]line ФПД: 233499898066624 [12:53:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T125332&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260682&fm=233499898066624&tin=02508201610067®Number=0000000000091865&sum=65000 [12:53:29]written 0, free lines is 4095 [12:53:30]Write to MH i2c: 01 00 00 00 81 81 [12:53:30]Write i2c OK [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: 01 [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: 01 07 00 [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: 01 07 00 00 81 00 00 00 00 00 6A 0C FE [12:53:30]RasterBufferAndPrint [12:53:30]line [12:53:30]line [12:53:30]line [12:53:30]line [12:53:30]line [12:53:30]written 0, free lines is 3182 [12:53:30]MH_Cut [12:53:30]Write to MH i2c: D1 01 00 07 81 01 5A [12:53:30]Write i2c OK [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: D1 [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: D1 01 00 [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: D1 01 00 07 81 00 59 [12:53:30]Write to MH i2c: 01 00 00 08 81 89 [12:53:30]Write i2c OK [12:53:30]MH_I2C_Read... [12:53:31]*** Cut start [12:53:31]*** Purtial cut [12:53:31]*** Stage 1: CUTSNS_PIN = 1 [12:53:33]Read from MH i2c: 01 [12:53:33]MH_I2C_Read... [12:53:33]*** Stop cut motor [12:53:33]*** Cut end [12:53:33]Read from MH i2c: 01 07 00 [12:53:33]MH_I2C_Read... [12:53:33]Read from MH i2c: 01 07 00 08 81 00 00 00 00 00 FF 0F 9E [12:53:33]process_action close_receipt done [12:53:33]requested_data is exist [12:53:33]produce_requested_data [12:53:33]requested_item fm.sn is exist - process it [12:53:33]wFMCommunicate request_size=4 [12:53:33]MH_SAM_APDU [12:53:33]CAPDU: 80 11 00 00 [12:53:33]Write to MH i2c: E2 08 00 09 81 80 11 00 00 00 00 00 00 04 [12:53:33]Write i2c OK [12:53:33]MH_I2C_Read... [12:53:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:33]Read from MH i2c: E2 [12:53:33]MH_I2C_Read... [12:53:33]Read from MH i2c: E2 17 00 [12:53:33]MH_I2C_Read... [12:53:33]Read from MH i2c: E2 17 00 09 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 51 [12:53:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:53:33]wFMCommunicate OK [12:53:33]requested_item fd.num is exist - process it [12:53:33]SAM_PROTO_GetFieldsCounters [12:53:33]wFMCommunicate request_size=4 [12:53:33]MH_SAM_APDU [12:53:33]CAPDU: 80 13 00 00 [12:53:33]Write to MH i2c: E2 08 00 0A 81 80 13 00 00 00 00 00 00 07 [12:53:33]Write i2c OK [12:53:33]MH_I2C_Read... [12:53:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:33]Read from MH i2c: E2 [12:53:33]MH_I2C_Read... [12:53:33]Read from MH i2c: E2 62 00 [12:53:33]MH_I2C_Read... [12:53:33]Read from MH i2c: E2 62 00 0A 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 4A FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [12:53: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 4A FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:53:33]wFMCommunicate OK [12:53:33]SAM_PROTO_GetFieldsCounters done [12:53:33]requested_item shift.num is exist - process it [12:53:33]requested_item shift.opened is exist - process it [12:53:33]req_shift_opened [12:53:33]FM_GetShiftState [12:53:33]SAM_PROTO_GetShiftState [12:53:33]wFMCommunicate request_size=4 [12:53:33]MH_SAM_APDU [12:53:33]CAPDU: 80 13 01 00 [12:53:33]Write to MH i2c: E2 08 00 0B 81 80 13 01 00 00 00 00 00 09 [12:53:33]Write i2c OK [12:53:33]MH_I2C_Read... [12:53:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:33]Read from MH i2c: E2 [12:53:33]MH_I2C_Read... [12:53:33]Read from MH i2c: E2 0E 00 [12:53:33]MH_I2C_Read... [12:53:33]Read from MH i2c: E2 0E 00 0B 81 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 46 [12:53:33]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:53:33]wFMCommunicate OK [12:53:33]SAM_PROTO_GetShiftState done [12:53:33]FM_GetShiftState done [12:53:33]req_shift_opened done [12:53:33]requested_item shift.open_date is exist - process it [12:53:33]req_shift_open_date [12:53:33]req_shift_open_date done [12:53:33]produce_requested_data done [12:53:33]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260682,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [12:53:33]process_action_free close_receipt [12:53:33]json_value_free [12:53:33]json_value_free done [12:53:33]process_json_proto returns [12:53:33]Send response to host [12:53:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260682,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [12:53:33]free response buf [12:53:33]execute_script done [12:53:33]execute_script returns [12:53:33]free content buf [12:53:33]Sock 9.Close socket [12:53:33]Sock 9.Thread stoped [12:53:41]ConnectInit Can't connect to host [12:53:41]CommunicateWithHost connect error [12:53:41]CommunicateWithHost err = -1 [12:53:41]OFD Sender: Server communicate error [12:53:41]OFD Sender: Processing packet 260681 [packets to send 193, broken 191] [12:53:41]ProducePacketName [12:53:41]name=ofd_packets/00260681 [12:53:41]OFD Sender: To server: pG, [12:53:41]CommunicateWithHost lk.salyk.kg:30040 [12:53:41]ConnectInit lk.salyk.kg [12:53:41]Connected sock=9 [12:53: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 30 0F 01 00 00 50 9B 07 01 17 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 54 EE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 49 FA 03 00 35 04 06 00 83 F2 7E AD C2 E8 D5 2F DC 1E 50 C4 C2 32 [12:53: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 30 4F 00 00 00 8D 4A 47 00 1B 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 30 10 04 04 00 49 FA 03 00 F4 03 04 00 2D 98 C1 66 B6 04 01 00 00 3C 3E 46 C6 E0 FB EB FB [12:53:41]CommunicateWithHost err = 0 [12:53:41]CheckOFDResponse [12:53:41]1017 (14) - 77093643461234 [12:53:41]1041 (16) - 0000000000871820 [12:53:41]1040 (4) - 260681 [12:53:41]1012 (4) - 18.08.2024 06:43 [12:53:41]1206 (1) - 0 [12:53:41]OFD Sender: Remove packet 260681 [12:53:41]ProducePacketName [12:53:41]name=ofd_packets/00260681 [12:53:41]NVStorageDeleteData [12:53:42]OFD Sender: Processing packet 260682 [packets to send 192, broken 191] [12:53:42]ProducePacketName [12:53:42]name=ofd_packets/00260682 [12:53:42]OFD Sender: To server: pG, [12:53:42]CommunicateWithHost lk.salyk.kg:30040 [12:53:42]ConnectInit lk.salyk.kg [12:53:42]Connected sock=9 [12:53: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 30 0F 01 00 00 D9 39 07 01 06 3C 5A 03 01 00 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 42 22 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 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 F0 00 00 00 F4 03 04 00 CC EE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4A FA 03 00 35 04 06 00 D4 5D EE 7A B6 C0 00 C5 E2 EA 7F 1E 73 E8 [12:53: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 30 4F 00 00 00 EB C4 47 00 72 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4A FA 03 00 F4 03 04 00 2E 98 C1 66 B6 04 01 00 00 CB BF FD 5D 98 9B 88 9C [12:53:42]CommunicateWithHost err = 0 [12:53:42]CheckOFDResponse [12:53:42]1017 (14) - 77093643461234 [12:53:42]1041 (16) - 0000000000871820 [12:53:42]1040 (4) - 260682 [12:53:42]1012 (4) - 18.08.2024 06:43 [12:53:42]1206 (1) - 0 [12:53:42]OFD Sender: Remove packet 260682 [12:53:42]ProducePacketName [12:53:42]name=ofd_packets/00260682 [12:53:42]NVStorageDeleteData [12:53:43]OFD Sender: No OFD packet to send [12:53:48]OFD Sender: No OFD packet to send [12:53:53]OFD Sender: No OFD packet to send [12:53:58]OFD Sender: No OFD packet to send [12:54:03]OFD Sender: No OFD packet to send [12:54:08]OFD Sender: No OFD packet to send [12:54:13]OFD Sender: No OFD packet to send [12:54:18]OFD Sender: No OFD packet to send [12:54:23]OFD Sender: No OFD packet to send [12:54:28]OFD Sender: No OFD packet to send [12:54:29]accept exits with 7 [12:54:29]New connection [12:54:29]New thread 3066617188 created [12:54:29]Thread 3066473828 joined [12:54:29]Waiting for new connection... [12:54:29] Sock 7.Parse request [12:54:29]Sock 7.Check first char [12:54:29]Sock 7.First char is OK [12:54:29]request: POST /json_proto HTTP/1.0 [12:54:29]Method: POST [12:54:29]URL: /json_proto [12:54:29]Method is POST - this is cgi request [12:54:29]url: /json_proto [12:54:29]query_string will be loaded in cgi processing [12:54:29]execute_cgi json_proto POST (null) [12:54:29]execute_cgi path=json_proto method=POST [12:54:29]POST find Content-Length [12:54:29]Host: 172.17.55.133:8080 [12:54:29]Content-Length: 678 [12:54:29]Content-Type: application/json [12:54:29] [12:54:29]POST finish read [12:54:29]Found Content-Length = 678 [12:54:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [12:54:29]execute_script... [12:54: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)1036231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [12:54:29]POST & json_proto [12:54:29]process_json_proto [12:54:29]json parsed OK: [12:54:29]protocol is kg_v1.0 [12:54:29]action value=close_receipt [12:54:29]process_action close_receipt [12:54:29]cmd_close_receipt [12:54:29]MH_GetDate [12:54:29]Write to MH i2c: F0 00 00 0C 81 7C [12:54:29]Write i2c OK [12:54:29]MH_I2C_Read... [12:54:29]Read from MH i2c: F0 [12:54:29]MH_I2C_Read... [12:54:29]Read from MH i2c: F0 09 00 [12:54:29]MH_I2C_Read... [12:54:29]Read from MH i2c: F0 09 00 0C 81 00 0A EF C1 66 34 48 D8 65 5E [12:54:29]GetLastDocTimeStamp 1723985612 [12:54:29]current date 1723985674 [12:54:29]FM_GetShiftState [12:54:29]SAM_PROTO_GetShiftState [12:54:29]wFMCommunicate request_size=4 [12:54:29]MH_SAM_APDU [12:54:29]CAPDU: 80 13 01 00 [12:54:29]Write to MH i2c: E2 08 00 0D 81 80 13 01 00 00 00 00 00 0B [12:54:29]Write i2c OK [12:54:29]MH_I2C_Read... [12:54:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:29]Read from MH i2c: E2 [12:54:29]MH_I2C_Read... [12:54:29]Read from MH i2c: E2 0E 00 [12:54:29]MH_I2C_Read... [12:54:29]Read from MH i2c: E2 0E 00 0D 81 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 48 [12:54:29]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:54:29]wFMCommunicate OK [12:54:29]SAM_PROTO_GetShiftState done [12:54:29]FM_GetShiftState done [12:54:29]opened in 1723940556 [12:54:29]opened+sec_in_day 1724026956 [12:54:29]quantity*price = 40002 [12:54:29]sum+1 = 40003 [12:54:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 241 18.08.2024 12:54 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260683 ФПД: 13252450541741 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T125434&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260683&fm=13252450541741&tin=02508201610067®Number=0000000000091865&sum=40000 [12:54:30]StoreToDocumentArchive [12:54:30]shift 449 fd 260683 [12:54:30]save to /storage/0449/doc_00260683 [12:54:30]save last doc name /storage/0449/doc_00260683 to /storage/kkm_last_doc_name [12:54:30]save OK [12:54:30]Clear old archive folders... [12:54:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:54:30]tlvbuf is 00383260 [12:54:30]SAM_PROTO_ClearQueue [12:54:30]wFMCommunicate request_size=4 [12:54:30]MH_SAM_APDU [12:54:30]CAPDU: 80 09 00 00 [12:54:30]Write to MH i2c: E2 08 00 1A 81 80 09 00 00 00 00 00 00 0D [12:54:30]Write i2c OK [12:54:30]MH_I2C_Read... [12:54:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:30]Read from MH i2c: E2 [12:54:30]MH_I2C_Read... [12:54:30]Read from MH i2c: E2 03 00 [12:54:30]MH_I2C_Read... [12:54:30]Read from MH i2c: E2 03 00 1A 81 00 90 00 0F [12:54:30]RAPDU: 90 00 [12:54:30]wFMCommunicate OK [12:54:30]SAM_PROTO_ClearQueue done [12:54:30]KKMCreateOFDPacket [12:54:30]OFDProtocolAddRootSTLVToBuf [12:54:30]FM_MakeSignedData [12:54:30]FM_MakeSignedData [12:54:30]SAM_PROTO_SignData [12:54:30]wFMCommunicate request_size=4 [12:54:30]MH_SAM_APDU [12:54:30]CAPDU: 80 0D 01 02 [12:54:30]Write to MH i2c: E2 08 00 1B 81 80 0D 01 02 00 00 00 00 15 [12:54:30]Write i2c OK [12:54:30]MH_I2C_Read... [12:54:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:30]Read from MH i2c: E2 [12:54:30]MH_I2C_Read... [12:54:30]Read from MH i2c: E2 03 00 [12:54:30]MH_I2C_Read... [12:54:30]Read from MH i2c: E2 03 00 1B 81 00 90 00 10 [12:54:30]RAPDU: 90 00 [12:54:30]wFMCommunicate OK [12:54:30]wFMCommunicate request_size=255 [12:54:30]MH_SAM_APDU [12:54:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 0A EF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4B FA 03 00 35 04 06 00 0C [12:54:30]Write to MH i2c: E2 02 01 1C 81 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 0A EF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4B FA 03 00 35 04 06 00 0C 00 00 9E [12:54:30]Write i2c OK [12:54:30]MH_I2C_Read... [12:54:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:31]Read from MH i2c: E2 [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: E2 03 00 [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: E2 03 00 1C 81 00 90 00 11 [12:54:31]RAPDU: 90 00 [12:54:31]wFMCommunicate OK [12:54:31]wFMCommunicate request_size=10 [12:54:31]MH_SAM_APDU [12:54:31]CAPDU: 80 0D 02 02 05 0D 93 9B 60 AD [12:54:31]Write to MH i2c: E2 0D 00 1D 81 80 0D 02 02 05 00 0D 93 9B 60 AD 00 00 6A [12:54:31]Write i2c OK [12:54:31]MH_I2C_Read... [12:54:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:31]Read from MH i2c: E2 [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: E2 03 00 [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: E2 03 00 1D 81 00 90 00 12 [12:54:31]RAPDU: 90 00 [12:54:31]wFMCommunicate OK [12:54:31]wFMCommunicate request_size=4 [12:54:31]MH_SAM_APDU [12:54:31]CAPDU: 80 0D 03 02 [12:54:31]Write to MH i2c: E2 08 00 1E 81 80 0D 03 02 00 00 00 00 1A [12:54:31]Write i2c OK [12:54:31]MH_I2C_Read... [12:54:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:31]Read from MH i2c: E2 [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: E2 0B 00 [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: E2 0B 00 1E 81 00 92 53 C8 E8 98 C6 67 2C 90 00 A1 [12:54:31]RAPDU: 92 53 C8 E8 98 C6 67 2C 90 00 [12:54:31]wFMCommunicate OK [12:54:31]SAM_PROTO_SignData done [12:54:31]FM_MakeSignedData done [12:54:31]CreateOFDProtocolMessage [12:54:31]wFMCommunicate request_size=4 [12:54:31]MH_SAM_APDU [12:54:31]CAPDU: 80 11 00 00 [12:54:31]Write to MH i2c: E2 08 00 1F 81 80 11 00 00 00 00 00 00 1A [12:54:31]Write i2c OK [12:54:31]MH_I2C_Read... [12:54:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:31]Read from MH i2c: E2 [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: E2 17 00 [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: E2 17 00 1F 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 67 [12:54:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:54:31]wFMCommunicate OK [12:54:31]CreateOFDProtocolMessage done [12:54:31]OFDSenderStorePacket 260683 [12:54:31]StoreOFDPacket docnum=260683 [12:54:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 D1 D0 07 01 2E 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 0A EF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4B FA 03 00 35 04 06 00 0C 0D 93 9B 60 AD 92 53 C8 E8 98 C6 67 2C [12:54:31]CheckFolder [12:54:31]dirname=/storage/ofd_packets [12:54:31]CheckFolder done [12:54:31]ProducePacketName [12:54:31]name=ofd_packets/00260683 [12:54:31]NVStorageSaveData ofd_packets/00260683 [12:54:31]File name is /storage/ofd_packets/00260683 [12:54:31]Write 301 bytes [12:54:31]NVStorageSaveData done [12:54:31]OFDSenderStorePacket done [12:54:31]KKMCreateOFDPacket done [12:54:31]NVStorageSaveData kkm_last_timestamp [12:54:31]File name is /storage/kkm_last_timestamp [12:54:31]Write 4 bytes [12:54:31]NVStorageSaveData done [12:54:31]ExternCall_PrintAddStr [12:54:31]wPrintStart [12:54:31]Write to MH i2c: 01 00 00 20 81 A1 [12:54:31]Write i2c OK [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: 01 [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: 01 07 00 [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: 01 07 00 20 81 00 00 00 00 00 FF 0F B6 [12:54:31]RasterBufferAndPrint [12:54:31]line Счет N : (1)1036231 [12:54:31]line ИНН: 02508201610067 [12:54:31]line Контрольно-Кассовый Чек [12:54:31]line ПРОДАЖА [12:54:31]line ТРК (МРК, ГНК) : 32 [12:54:31]line Товар: 2710124130 [12:54:31]line Аи-92-К-5 [12:54:31]line 5.900 * 67.80 [12:54:31]line = 400.02 [12:54:31]line НДС 12% НСП 1% [12:54:31]line > о реализуемом товаре [12:54:31]line ОКРУГЛЕНИЕ: -0.02 [12:54:31]line ИТОГО: 400.00 [12:54:31]line Внесено: 400.00 [12:54:31]line СДАЧА: 0.00 [12:54:31]line НСП 1% : 3.54 [12:54:31]line НДС 12% : 42.48 [12:54:31]line Наличными: 400.00 [12:54:31]line Безнал.: 0.00 [12:54:31]line Место: АЗС № 94 "Партнер Нефть" [12:54:31]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [12:54:31]line СНО: Общий режим [12:54:31]line Чек 241 18.08.2024 12:54 [12:54:31]line Смена: 449 ФФД: 1.0 [12:54:31]line ЗНМ: 0300000099 [12:54:31]line РНМ: 0000000000091865 [12:54:31]line Версия ККМ: 001 [12:54:31]line ФМ: 0000000000871820 [12:54:31]line ФД: 260683 [12:54:31]line ФПД: 13252450541741 [12:54:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T125434&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260683&fm=13252450541741&tin=02508201610067®Number=0000000000091865&sum=40000 [12:54:31]written 0, free lines is 4095 [12:54:31]OFD Sender: Processing packet 260683 [packets to send 192, broken 191] [12:54:31]ProducePacketName [12:54:31]name=ofd_packets/00260683 [12:54:31]OFD Sender: To server: pG, [12:54:31]CommunicateWithHost lk.salyk.kg:30040 [12:54:31]ConnectInit lk.salyk.kg [12:54:31]Connected sock=10 [12:54:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 D1 D0 07 01 2E 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 0A EF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4B FA 03 00 35 04 06 00 0C 0D 93 9B 60 AD 92 53 C8 E8 98 C6 67 2C [12:54:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 4F 00 00 00 C9 43 47 00 87 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4B FA 03 00 F4 03 04 00 5F 98 C1 66 B6 04 01 00 00 39 0C 06 2C DE 55 8C FD [12:54:31]CommunicateWithHost err = 0 [12:54:31]CheckOFDResponse [12:54:31]1017 (14) - 77093643461234 [12:54:31]1041 (16) - 0000000000871820 [12:54:31]1040 (4) - 260683 [12:54:31]1012 (4) - 18.08.2024 06:44 [12:54:31]1206 (1) - 0 [12:54:31]OFD Sender: Remove packet 260683 [12:54:31]ProducePacketName [12:54:31]name=ofd_packets/00260683 [12:54:31]NVStorageDeleteData [12:54:31]Write to MH i2c: 01 00 00 4B 81 CC [12:54:31]Write i2c OK [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: 01 [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: 01 07 00 [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: 01 07 00 4B 81 00 00 00 00 00 6F 0C 4E [12:54:31]RasterBufferAndPrint [12:54:31]line [12:54:31]line [12:54:31]line [12:54:31]line [12:54:31]line [12:54:31]written 0, free lines is 3186 [12:54:31]MH_Cut [12:54:31]Write to MH i2c: D1 01 00 52 81 01 A5 [12:54:31]Write i2c OK [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: D1 [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: D1 01 00 [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: D1 01 00 52 81 00 A4 [12:54:31]Write to MH i2c: 01 00 00 53 81 D4 [12:54:31]Write i2c OK [12:54:31]MH_I2C_Read... [12:54:32]OFD Sender: No OFD packet to send [12:54:32]*** Cut start [12:54:32]*** Purtial cut [12:54:32]*** Stage 1: CUTSNS_PIN = 1 [12:54:34]Read from MH i2c: 01 [12:54:34]MH_I2C_Read... [12:54:34]*** Stop cut motor [12:54:34]*** Cut end [12:54:34]Read from MH i2c: 01 07 00 [12:54:34]MH_I2C_Read... [12:54:34]Read from MH i2c: 01 07 00 53 81 00 00 00 00 00 FF 0F E9 [12:54:34]process_action close_receipt done [12:54:34]requested_data is exist [12:54:34]produce_requested_data [12:54:34]requested_item fm.sn is exist - process it [12:54:34]wFMCommunicate request_size=4 [12:54:34]MH_SAM_APDU [12:54:34]CAPDU: 80 11 00 00 [12:54:34]Write to MH i2c: E2 08 00 54 81 80 11 00 00 00 00 00 00 4F [12:54:34]Write i2c OK [12:54:34]MH_I2C_Read... [12:54:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:34]Read from MH i2c: E2 [12:54:34]MH_I2C_Read... [12:54:34]Read from MH i2c: E2 17 00 [12:54:34]MH_I2C_Read... [12:54:34]Read from MH i2c: E2 17 00 54 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 9C [12:54:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:54:34]wFMCommunicate OK [12:54:34]requested_item fd.num is exist - process it [12:54:34]SAM_PROTO_GetFieldsCounters [12:54:34]wFMCommunicate request_size=4 [12:54:34]MH_SAM_APDU [12:54:34]CAPDU: 80 13 00 00 [12:54:34]Write to MH i2c: E2 08 00 55 81 80 13 00 00 00 00 00 00 52 [12:54:34]Write i2c OK [12:54:34]MH_I2C_Read... [12:54:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:35]Read from MH i2c: E2 [12:54:35]MH_I2C_Read... [12:54:35]Read from MH i2c: E2 62 00 [12:54:35]MH_I2C_Read... [12:54:35]Read from MH i2c: E2 62 00 55 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 4B FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [12:54: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 4B FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:54:35]wFMCommunicate OK [12:54:35]SAM_PROTO_GetFieldsCounters done [12:54:35]requested_item shift.num is exist - process it [12:54:35]requested_item shift.opened is exist - process it [12:54:35]req_shift_opened [12:54:35]FM_GetShiftState [12:54:35]SAM_PROTO_GetShiftState [12:54:35]wFMCommunicate request_size=4 [12:54:35]MH_SAM_APDU [12:54:35]CAPDU: 80 13 01 00 [12:54:35]Write to MH i2c: E2 08 00 56 81 80 13 01 00 00 00 00 00 54 [12:54:35]Write i2c OK [12:54:35]MH_I2C_Read... [12:54:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:35]Read from MH i2c: E2 [12:54:35]MH_I2C_Read... [12:54:35]Read from MH i2c: E2 0E 00 [12:54:35]MH_I2C_Read... [12:54:35]Read from MH i2c: E2 0E 00 56 81 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 91 [12:54:35]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:54:35]wFMCommunicate OK [12:54:35]SAM_PROTO_GetShiftState done [12:54:35]FM_GetShiftState done [12:54:35]req_shift_opened done [12:54:35]requested_item shift.open_date is exist - process it [12:54:35]req_shift_open_date [12:54:35]req_shift_open_date done [12:54:35]produce_requested_data done [12:54:35]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260683,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [12:54:35]process_action_free close_receipt [12:54:35]json_value_free [12:54:35]json_value_free done [12:54:35]process_json_proto returns [12:54:35]Send response to host [12:54:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260683,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [12:54:35]free response buf [12:54:35]execute_script done [12:54:35]execute_script returns [12:54:35]free content buf [12:54:35]Sock 7.Close socket [12:54:35]Sock 7.Thread stoped [12:54:37]OFD Sender: No OFD packet to send [12:54:42]OFD Sender: No OFD packet to send [12:54:47]OFD Sender: No OFD packet to send [12:54:52]OFD Sender: No OFD packet to send [12:54:57]OFD Sender: No OFD packet to send [12:55:02]OFD Sender: No OFD packet to send [12:55:07]OFD Sender: No OFD packet to send [12:55:12]OFD Sender: No OFD packet to send [12:55:17]OFD Sender: No OFD packet to send [12:55:22]OFD Sender: No OFD packet to send [12:55:27]OFD Sender: No OFD packet to send [12:55:32]OFD Sender: No OFD packet to send [12:55:37]OFD Sender: No OFD packet to send [12:55:42]OFD Sender: No OFD packet to send [12:55:47]OFD Sender: No OFD packet to send [12:55:52]OFD Sender: No OFD packet to send [12:55:57]OFD Sender: No OFD packet to send [12:56:02]OFD Sender: No OFD packet to send [12:56:07]OFD Sender: No OFD packet to send [12:56:12]OFD Sender: No OFD packet to send [12:56:17]OFD Sender: No OFD packet to send [12:56:22]OFD Sender: No OFD packet to send [12:56:27]OFD Sender: No OFD packet to send [12:56:32]OFD Sender: No OFD packet to send [12:56:37]OFD Sender: No OFD packet to send [12:56:42]OFD Sender: No OFD packet to send [12:56:47]accept exits with 9 [12:56:47]New connection [12:56:47]New thread 3066473828 created [12:56:47]Thread 3066617188 joined [12:56:47]Waiting for new connection... [12:56:47] Sock 9.Parse request [12:56:47]Sock 9.Check first char [12:56:47]Sock 9.First char is OK [12:56:47]request: POST /json_proto HTTP/1.0 [12:56:47]Method: POST [12:56:47]URL: /json_proto [12:56:47]Method is POST - this is cgi request [12:56:47]url: /json_proto [12:56:47]query_string will be loaded in cgi processing [12:56:47]execute_cgi json_proto POST (null) [12:56:47]execute_cgi path=json_proto method=POST [12:56:47]POST find Content-Length [12:56:47]Host: 172.17.55.133:8080 [12:56:47]Content-Length: 804 [12:56:47]Content-Type: application/json [12:56:47] [12:56:47]POST finish read [12:56:47]Found Content-Length = 804 [12:56:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036232", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:47]execute_script... [12:56: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)1036232", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:47]POST & json_proto [12:56:47]process_json_proto [12:56:47]json parsed OK: [12:56:47]protocol is kg_v1.0 [12:56:47]action value=close_receipt [12:56:47]process_action close_receipt [12:56:47]cmd_close_receipt [12:56:47]MH_GetDate [12:56:47]Write to MH i2c: F0 00 00 57 81 C7 [12:56:47]Write i2c OK [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: F0 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: F0 09 00 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: F0 09 00 57 81 00 93 EF C1 66 34 48 D8 65 32 [12:56:47]GetLastDocTimeStamp 1723985674 [12:56:47]current date 1723985811 [12:56:47]FM_GetShiftState [12:56:47]SAM_PROTO_GetShiftState [12:56:47]wFMCommunicate request_size=4 [12:56:47]MH_SAM_APDU [12:56:47]CAPDU: 80 13 01 00 [12:56:47]Write to MH i2c: E2 08 00 58 81 80 13 01 00 00 00 00 00 56 [12:56:47]Write i2c OK [12:56:47]MH_I2C_Read... [12:56:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:47]Read from MH i2c: E2 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: E2 0E 00 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: E2 0E 00 58 81 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 93 [12:56:47]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:56:47]wFMCommunicate OK [12:56:47]SAM_PROTO_GetShiftState done [12:56:47]FM_GetShiftState done [12:56:47]opened in 1723940556 [12:56:47]opened+sec_in_day 1724026956 [12:56:47]quantity*price = 100021 [12:56:47]sum+1 = 100023 [12:56:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 242 18.08.2024 12:56 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260684 ФПД: 214775783992140 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T125652&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260684&fm=214775783992140&tin=02508201610067®Number=0000000000091865&sum=100022 [12:56:48]StoreToDocumentArchive [12:56:48]shift 449 fd 260684 [12:56:48]save to /storage/0449/doc_00260684 [12:56:48]save last doc name /storage/0449/doc_00260684 to /storage/kkm_last_doc_name [12:56:48]save OK [12:56:48]Clear old archive folders... [12:56:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:56:48]tlvbuf is 005407F0 [12:56:48]SAM_PROTO_ClearQueue [12:56:48]wFMCommunicate request_size=4 [12:56:48]MH_SAM_APDU [12:56:48]CAPDU: 80 09 00 00 [12:56:48]Write to MH i2c: E2 08 00 65 81 80 09 00 00 00 00 00 00 58 [12:56:48]Write i2c OK [12:56:48]MH_I2C_Read... [12:56:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:56:48]Read from MH i2c: E2 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: E2 03 00 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: E2 03 00 65 81 00 90 00 5A [12:56:48]RAPDU: 90 00 [12:56:48]wFMCommunicate OK [12:56:48]SAM_PROTO_ClearQueue done [12:56:48]KKMCreateOFDPacket [12:56:48]OFDProtocolAddRootSTLVToBuf [12:56:48]FM_MakeSignedData [12:56:48]FM_MakeSignedData [12:56:48]SAM_PROTO_SignData [12:56:48]wFMCommunicate request_size=4 [12:56:48]MH_SAM_APDU [12:56:48]CAPDU: 80 0D 01 02 [12:56:48]Write to MH i2c: E2 08 00 66 81 80 0D 01 02 00 00 00 00 60 [12:56:48]Write i2c OK [12:56:48]MH_I2C_Read... [12:56:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:48]Read from MH i2c: E2 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: E2 03 00 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: E2 03 00 66 81 00 90 00 5B [12:56:48]RAPDU: 90 00 [12:56:48]wFMCommunicate OK [12:56:48]wFMCommunicate request_size=255 [12:56:48]MH_SAM_APDU [12:56:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 94 EF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4C FA 03 00 35 04 06 00 C3 [12:56:48]Write to MH i2c: E2 02 01 67 81 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 94 EF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4C FA 03 00 35 04 06 00 C3 00 00 A0 [12:56:48]Write i2c OK [12:56:48]MH_I2C_Read... [12:56:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:48]Read from MH i2c: E2 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: E2 03 00 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: E2 03 00 67 81 00 90 00 5C [12:56:48]RAPDU: 90 00 [12:56:48]wFMCommunicate OK [12:56:48]wFMCommunicate request_size=10 [12:56:48]MH_SAM_APDU [12:56:48]CAPDU: 80 0D 02 02 05 56 62 4F AB 4C [12:56:48]Write to MH i2c: E2 0D 00 68 81 80 0D 02 02 05 00 56 62 4F AB 4C 00 00 6B [12:56:48]Write i2c OK [12:56:48]MH_I2C_Read... [12:56:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:48]Read from MH i2c: E2 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: E2 03 00 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: E2 03 00 68 81 00 90 00 5D [12:56:48]RAPDU: 90 00 [12:56:48]wFMCommunicate OK [12:56:48]wFMCommunicate request_size=4 [12:56:48]MH_SAM_APDU [12:56:48]CAPDU: 80 0D 03 02 [12:56:48]Write to MH i2c: E2 08 00 69 81 80 0D 03 02 00 00 00 00 65 [12:56:48]Write i2c OK [12:56:48]MH_I2C_Read... [12:56:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:48]Read from MH i2c: E2 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: E2 0B 00 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: E2 0B 00 69 81 00 3E 87 F1 B5 A8 F3 18 F6 90 00 7A [12:56:48]RAPDU: 3E 87 F1 B5 A8 F3 18 F6 90 00 [12:56:48]wFMCommunicate OK [12:56:48]SAM_PROTO_SignData done [12:56:48]FM_MakeSignedData done [12:56:48]CreateOFDProtocolMessage [12:56:48]wFMCommunicate request_size=4 [12:56:48]MH_SAM_APDU [12:56:48]CAPDU: 80 11 00 00 [12:56:48]Write to MH i2c: E2 08 00 6A 81 80 11 00 00 00 00 00 00 65 [12:56:48]Write i2c OK [12:56:48]MH_I2C_Read... [12:56:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:48]Read from MH i2c: E2 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: E2 17 00 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: E2 17 00 6A 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B2 [12:56:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:56:48]wFMCommunicate OK [12:56:48]CreateOFDProtocolMessage done [12:56:48]OFDSenderStorePacket 260684 [12:56:48]StoreOFDPacket docnum=260684 [12:56:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 B1 19 07 01 C3 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 94 EF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4C FA 03 00 35 04 06 00 C3 56 62 4F AB 4C 3E 87 F1 B5 A8 F3 18 F6 [12:56:48]CheckFolder [12:56:48]dirname=/storage/ofd_packets [12:56:48]CheckFolder done [12:56:48]ProducePacketName [12:56:48]name=ofd_packets/00260684 [12:56:48]NVStorageSaveData ofd_packets/00260684 [12:56:48]File name is /storage/ofd_packets/00260684 [12:56:48]Write 301 bytes [12:56:48]NVStorageSaveData done [12:56:48]OFDSenderStorePacket done [12:56:48]KKMCreateOFDPacket done [12:56:48]NVStorageSaveData kkm_last_timestamp [12:56:48]File name is /storage/kkm_last_timestamp [12:56:48]Write 4 bytes [12:56:48]NVStorageSaveData done [12:56:48]ExternCall_PrintAddStr [12:56:48]wPrintStart [12:56:48]Write to MH i2c: 01 00 00 6B 81 EC [12:56:48]Write i2c OK [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: 01 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: 01 07 00 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: 01 07 00 6B 81 00 00 00 00 00 FF 0F 01 [12:56:48]RasterBufferAndPrint [12:56:48]line Счет N : (1)1036232 [12:56:48]line ИНН: 02508201610067 [12:56:48]line Контрольно-Кассовый Чек [12:56:48]line ПРОДАЖА [12:56:48]line ТРК (МРК, ГНК) : 23 [12:56:48]line Товар: 2710124500 [12:56:48]line Аи-95-К-5 [12:56:48]line 13.480 * 74.20 [12:56:48]line = 1000.22 [12:56:48]line НДС 12% НСП 1% [12:56:48]line > о реализуемом товаре [12:56:48]line ИТОГО: 1000.22 [12:56:48]line НСП 1% : 8.85 [12:56:48]line НДС 12% : 106.22 [12:56:48]line Наличными: 0.00 [12:56:48]line Безнал.: 1000.22 [12:56:48]line Место: АЗС № 94 "Партнер Нефть" [12:56:48]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [12:56:48]line СНО: Общий режим [12:56:48]line Чек 242 18.08.2024 12:56 [12:56:48]line Смена: 449 ФФД: 1.0 [12:56:48]line ЗНМ: 0300000099 [12:56:48]line РНМ: 0000000000091865 [12:56:48]line Версия ККМ: 001 [12:56:48]line Платежная система: O! деньги [12:56:48]line ФМ: 0000000000871820 [12:56:48]line ФД: 260684 [12:56:48]line ФПД: 214775783992140 [12:56:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T125652&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260684&fm=214775783992140&tin=02508201610067®Number=0000000000091865&sum=100022 [12:56:48]written 0, free lines is 4095 [12:56:48]OFD Sender: Processing packet 260684 [packets to send 192, broken 191] [12:56:48]ProducePacketName [12:56:48]name=ofd_packets/00260684 [12:56:48]OFD Sender: To server: pG, [12:56:48]CommunicateWithHost lk.salyk.kg:30040 [12:56:48]ConnectInit lk.salyk.kg [12:56:48]Connected sock=10 [12:56: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 30 0F 01 00 00 B1 19 07 01 C3 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 94 EF C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4C FA 03 00 35 04 06 00 C3 56 62 4F AB 4C 3E 87 F1 B5 A8 F3 18 F6 [12:56: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 30 4F 00 00 00 D6 81 47 00 71 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4C FA 03 00 F4 03 04 00 E8 98 C1 66 B6 04 01 00 00 CD 4B C0 B0 68 C4 BC 22 [12:56:49]CommunicateWithHost err = 0 [12:56:49]CheckOFDResponse [12:56:49]1017 (14) - 77093643461234 [12:56:49]1041 (16) - 0000000000871820 [12:56:49]1040 (4) - 260684 [12:56:49]1012 (4) - 18.08.2024 06:47 [12:56:49]1206 (1) - 0 [12:56:49]OFD Sender: Remove packet 260684 [12:56:49]ProducePacketName [12:56:49]name=ofd_packets/00260684 [12:56:49]NVStorageDeleteData [12:56:49]Write to MH i2c: 01 00 00 95 81 16 [12:56:49]Write i2c OK [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: 01 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: 01 07 00 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: 01 07 00 95 81 00 00 00 00 00 88 0C B1 [12:56:49]RasterBufferAndPrint [12:56:49]line [12:56:49]line [12:56:49]line [12:56:49]line [12:56:49]line [12:56:49]written 0, free lines is 3212 [12:56:49]MH_Cut [12:56:49]Write to MH i2c: D1 01 00 9C 81 01 EF [12:56:49]Write i2c OK [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: D1 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: D1 01 00 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: D1 01 00 9C 81 00 EE [12:56:49]Write to MH i2c: 01 00 00 9D 81 1E [12:56:49]Write i2c OK [12:56:49]MH_I2C_Read... [12:56:49]OFD Sender: No OFD packet to send [12:56:50]*** Cut start [12:56:50]*** Purtial cut [12:56:50]*** Stage 1: CUTSNS_PIN = 1 [12:56:52]Read from MH i2c: 01 [12:56:52]MH_I2C_Read... [12:56:52]*** Stop cut motor [12:56:52]*** Cut end [12:56:52]Read from MH i2c: 01 07 00 [12:56:52]MH_I2C_Read... [12:56:52]Read from MH i2c: 01 07 00 9D 81 00 00 00 00 00 FF 0F 33 [12:56:52]process_action close_receipt done [12:56:52]requested_data is exist [12:56:52]produce_requested_data [12:56:52]requested_item fm.sn is exist - process it [12:56:52]wFMCommunicate request_size=4 [12:56:52]MH_SAM_APDU [12:56:52]CAPDU: 80 11 00 00 [12:56:52]Write to MH i2c: E2 08 00 9E 81 80 11 00 00 00 00 00 00 99 [12:56:52]Write i2c OK [12:56:52]MH_I2C_Read... [12:56:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:52]Read from MH i2c: E2 [12:56:52]MH_I2C_Read... [12:56:52]Read from MH i2c: E2 17 00 [12:56:52]MH_I2C_Read... [12:56:52]Read from MH i2c: E2 17 00 9E 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E6 [12:56:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [12:56:52]wFMCommunicate OK [12:56:52]requested_item fd.num is exist - process it [12:56:52]SAM_PROTO_GetFieldsCounters [12:56:52]wFMCommunicate request_size=4 [12:56:52]MH_SAM_APDU [12:56:52]CAPDU: 80 13 00 00 [12:56:52]Write to MH i2c: E2 08 00 9F 81 80 13 00 00 00 00 00 00 9C [12:56:52]Write i2c OK [12:56:52]MH_I2C_Read... [12:56:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:52]Read from MH i2c: E2 [12:56:52]MH_I2C_Read... [12:56:52]Read from MH i2c: E2 62 00 [12:56:52]MH_I2C_Read... [12:56:52]Read from MH i2c: E2 62 00 9F 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 4C FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [12:56: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 4C FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:56:52]wFMCommunicate OK [12:56:52]SAM_PROTO_GetFieldsCounters done [12:56:52]requested_item shift.num is exist - process it [12:56:52]requested_item shift.opened is exist - process it [12:56:52]req_shift_opened [12:56:52]FM_GetShiftState [12:56:52]SAM_PROTO_GetShiftState [12:56:52]wFMCommunicate request_size=4 [12:56:52]MH_SAM_APDU [12:56:52]CAPDU: 80 13 01 00 [12:56:52]Write to MH i2c: E2 08 00 A0 81 80 13 01 00 00 00 00 00 9E [12:56:52]Write i2c OK [12:56:52]MH_I2C_Read... [12:56:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:52]Read from MH i2c: E2 [12:56:52]MH_I2C_Read... [12:56:52]Read from MH i2c: E2 0E 00 [12:56:52]MH_I2C_Read... [12:56:52]Read from MH i2c: E2 0E 00 A0 81 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 DB [12:56:52]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [12:56:52]wFMCommunicate OK [12:56:52]SAM_PROTO_GetShiftState done [12:56:52]FM_GetShiftState done [12:56:52]req_shift_opened done [12:56:52]requested_item shift.open_date is exist - process it [12:56:52]req_shift_open_date [12:56:52]req_shift_open_date done [12:56:52]produce_requested_data done [12:56:52]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260684,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [12:56:52]process_action_free close_receipt [12:56:52]json_value_free [12:56:52]json_value_free done [12:56:52]process_json_proto returns [12:56:52]Send response to host [12:56:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260684,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [12:56:52]free response buf [12:56:52]execute_script done [12:56:52]execute_script returns [12:56:52]free content buf [12:56:52]Sock 9.Close socket [12:56:52]Sock 9.Thread stoped [12:56:54]OFD Sender: No OFD packet to send [12:56:59]OFD Sender: No OFD packet to send [12:57:04]OFD Sender: No OFD packet to send [12:57:09]OFD Sender: No OFD packet to send [12:57:14]OFD Sender: No OFD packet to send [12:57:19]OFD Sender: No OFD packet to send [12:57:24]OFD Sender: No OFD packet to send [12:57:29]OFD Sender: No OFD packet to send [12:57:34]OFD Sender: No OFD packet to send [12:57:39]OFD Sender: No OFD packet to send [12:57:44]OFD Sender: No OFD packet to send [12:57:49]OFD Sender: No OFD packet to send [12:57:54]OFD Sender: No OFD packet to send [12:57:59]OFD Sender: No OFD packet to send [12:58:04]OFD Sender: No OFD packet to send [12:58:09]OFD Sender: No OFD packet to send [12:58:14]OFD Sender: No OFD packet to send [12:58:19]OFD Sender: No OFD packet to send [12:58:24]OFD Sender: No OFD packet to send [12:58:29]OFD Sender: No OFD packet to send [12:58:34]OFD Sender: No OFD packet to send [12:58:39]OFD Sender: No OFD packet to send [12:58:44]OFD Sender: No OFD packet to send [12:58:49]OFD Sender: No OFD packet to send [12:58:54]OFD Sender: No OFD packet to send [12:58:59]OFD Sender: No OFD packet to send [12:59:04]OFD Sender: No OFD packet to send [12:59:09]OFD Sender: No OFD packet to send [12:59:14]OFD Sender: No OFD packet to send [12:59:19]OFD Sender: No OFD packet to send [12:59:24]OFD Sender: No OFD packet to send [12:59:29]OFD Sender: No OFD packet to send [12:59:34]OFD Sender: No OFD packet to send [12:59:39]OFD Sender: No OFD packet to send [12:59:44]OFD Sender: No OFD packet to send [12:59:49]OFD Sender: No OFD packet to send [12:59:54]OFD Sender: No OFD packet to send [12:59:59]OFD Sender: No OFD packet to send [13:00:04]OFD Sender: No OFD packet to send [13:00:09]OFD Sender: No OFD packet to send [13:00:14]OFD Sender: No OFD packet to send [13:00:19]OFD Sender: No OFD packet to send [13:00:24]OFD Sender: No OFD packet to send [13:00:29]OFD Sender: No OFD packet to send [13:00:34]OFD Sender: No OFD packet to send [13:00:39]OFD Sender: No OFD packet to send [13:00:44]OFD Sender: No OFD packet to send [13:00:49]OFD Sender: No OFD packet to send [13:00:55]OFD Sender: No OFD packet to send [13:01:00]OFD Sender: No OFD packet to send [13:01:05]OFD Sender: No OFD packet to send [13:01:10]OFD Sender: No OFD packet to send [13:01:15]OFD Sender: No OFD packet to send [13:01:19]accept exits with 7 [13:01:19]New connection [13:01:19]New thread 3066617188 created [13:01:19]Thread 3066473828 joined [13:01:19]Waiting for new connection... [13:01:19] Sock 7.Parse request [13:01:19]Sock 7.Check first char [13:01:19]Sock 7.First char is OK [13:01:19]request: POST /json_proto HTTP/1.0 [13:01:19]Method: POST [13:01:19]URL: /json_proto [13:01:19]Method is POST - this is cgi request [13:01:19]url: /json_proto [13:01:19]query_string will be loaded in cgi processing [13:01:19]execute_cgi json_proto POST (null) [13:01:19]execute_cgi path=json_proto method=POST [13:01:19]POST find Content-Length [13:01:19]Host: 172.17.55.133:8080 [13:01:19]Content-Length: 688 [13:01:19]Content-Type: application/json [13:01:19] [13:01:19]POST finish read [13:01:19]Found Content-Length = 688 [13:01:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:19]execute_script... [13:01: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)1036233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:19]POST & json_proto [13:01:19]process_json_proto [13:01:19]json parsed OK: [13:01:19]protocol is kg_v1.0 [13:01:19]action value=close_receipt [13:01:19]process_action close_receipt [13:01:19]cmd_close_receipt [13:01:19]MH_GetDate [13:01:19]Write to MH i2c: F0 00 00 A1 81 11 [13:01:19]Write i2c OK [13:01:19]MH_I2C_Read... [13:01:19]Read from MH i2c: F0 [13:01:19]MH_I2C_Read... [13:01:19]Read from MH i2c: F0 09 00 [13:01:19]MH_I2C_Read... [13:01:19]Read from MH i2c: F0 09 00 A1 81 00 A4 F0 C1 66 34 48 D8 65 8E [13:01:19]GetLastDocTimeStamp 1723985812 [13:01:19]current date 1723986084 [13:01:19]FM_GetShiftState [13:01:19]SAM_PROTO_GetShiftState [13:01:19]wFMCommunicate request_size=4 [13:01:19]MH_SAM_APDU [13:01:19]CAPDU: 80 13 01 00 [13:01:19]Write to MH i2c: E2 08 00 A2 81 80 13 01 00 00 00 00 00 A0 [13:01:19]Write i2c OK [13:01:19]MH_I2C_Read... [13:01:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:19]Read from MH i2c: E2 [13:01:19]MH_I2C_Read... [13:01:19]Read from MH i2c: E2 0E 00 [13:01:19]MH_I2C_Read... [13:01:19]Read from MH i2c: E2 0E 00 A2 81 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 DD [13:01:19]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:01:19]wFMCommunicate OK [13:01:19]SAM_PROTO_GetShiftState done [13:01:19]FM_GetShiftState done [13:01:19]opened in 1723940556 [13:01:19]opened+sec_in_day 1724026956 [13:01:19]quantity*price = 300075 [13:01:19]sum+1 = 300077 [13:01:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 243 18.08.2024 13:01 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260685 ФПД: 99535550945423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T130124&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260685&fm=99535550945423&tin=02508201610067®Number=0000000000091865&sum=300000 [13:01:20]StoreToDocumentArchive [13:01:20]shift 449 fd 260685 [13:01:20]save to /storage/0449/doc_00260685 [13:01:20]save last doc name /storage/0449/doc_00260685 to /storage/kkm_last_doc_name [13:01:20]save OK [13:01:20]Clear old archive folders... [13:01:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:01:20]tlvbuf is 00382EF0 [13:01:20]SAM_PROTO_ClearQueue [13:01:20]wFMCommunicate request_size=4 [13:01:20]MH_SAM_APDU [13:01:20]CAPDU: 80 09 00 00 [13:01:20]Write to MH i2c: E2 08 00 AF 81 80 09 00 00 00 00 00 00 A2 [13:01:20]Write i2c OK [13:01:20]MH_I2C_Read... [13:01:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:20]Read from MH i2c: E2 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 03 00 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 03 00 AF 81 00 90 00 A4 [13:01:20]RAPDU: 90 00 [13:01:20]wFMCommunicate OK [13:01:20]SAM_PROTO_ClearQueue done [13:01:20]KKMCreateOFDPacket [13:01:20]OFDProtocolAddRootSTLVToBuf [13:01:20]FM_MakeSignedData [13:01:20]FM_MakeSignedData [13:01:20]SAM_PROTO_SignData [13:01:20]wFMCommunicate request_size=4 [13:01:20]MH_SAM_APDU [13:01:20]CAPDU: 80 0D 01 02 [13:01:20]Write to MH i2c: E2 08 00 B0 81 80 0D 01 02 00 00 00 00 AA [13:01:20]Write i2c OK [13:01:20]MH_I2C_Read... [13:01:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:20]Read from MH i2c: E2 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 03 00 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 03 00 B0 81 00 90 00 A5 [13:01:20]RAPDU: 90 00 [13:01:20]wFMCommunicate OK [13:01:20]wFMCommunicate request_size=255 [13:01:20]MH_SAM_APDU [13:01:20]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 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 F3 00 00 00 F4 03 04 00 A4 F0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4D FA 03 00 35 04 06 00 [13:01:20]Write to MH i2c: E2 02 01 B1 81 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 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 F3 00 00 00 F4 03 04 00 A4 F0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4D FA 03 00 35 04 06 00 00 00 05 [13:01:20]Write i2c OK [13:01:20]MH_I2C_Read... [13:01:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:21]Read from MH i2c: E2 [13:01:21]MH_I2C_Read... [13:01:21]Read from MH i2c: E2 03 00 [13:01:21]MH_I2C_Read... [13:01:21]Read from MH i2c: E2 03 00 B1 81 00 90 00 A6 [13:01:21]RAPDU: 90 00 [13:01:21]wFMCommunicate OK [13:01:21]wFMCommunicate request_size=11 [13:01:21]MH_SAM_APDU [13:01:21]CAPDU: 80 0D 02 02 06 5A 86 ED 28 18 8F [13:01:21]Write to MH i2c: E2 0E 00 B2 81 80 0D 02 02 06 00 5A 86 ED 28 18 8F 00 00 55 [13:01:21]Write i2c OK [13:01:21]MH_I2C_Read... [13:01:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:21]Read from MH i2c: E2 [13:01:21]MH_I2C_Read... [13:01:21]Read from MH i2c: E2 03 00 [13:01:21]MH_I2C_Read... [13:01:21]Read from MH i2c: E2 03 00 B2 81 00 90 00 A7 [13:01:21]RAPDU: 90 00 [13:01:21]wFMCommunicate OK [13:01:21]wFMCommunicate request_size=4 [13:01:21]MH_SAM_APDU [13:01:21]CAPDU: 80 0D 03 02 [13:01:21]Write to MH i2c: E2 08 00 B3 81 80 0D 03 02 00 00 00 00 AF [13:01:21]Write i2c OK [13:01:21]MH_I2C_Read... [13:01:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:21]Read from MH i2c: E2 [13:01:21]MH_I2C_Read... [13:01:21]Read from MH i2c: E2 0B 00 [13:01:21]MH_I2C_Read... [13:01:21]Read from MH i2c: E2 0B 00 B3 81 00 26 59 5A 96 78 98 03 9F 90 00 D1 [13:01:21]RAPDU: 26 59 5A 96 78 98 03 9F 90 00 [13:01:21]wFMCommunicate OK [13:01:21]SAM_PROTO_SignData done [13:01:21]FM_MakeSignedData done [13:01:21]CreateOFDProtocolMessage [13:01:21]wFMCommunicate request_size=4 [13:01:21]MH_SAM_APDU [13:01:21]CAPDU: 80 11 00 00 [13:01:21]Write to MH i2c: E2 08 00 B4 81 80 11 00 00 00 00 00 00 AF [13:01:21]Write i2c OK [13:01:21]MH_I2C_Read... [13:01:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:21]Read from MH i2c: E2 [13:01:21]MH_I2C_Read... [13:01:21]Read from MH i2c: E2 17 00 [13:01:21]MH_I2C_Read... [13:01:21]Read from MH i2c: E2 17 00 B4 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 FC [13:01:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:01:21]wFMCommunicate OK [13:01:21]CreateOFDProtocolMessage done [13:01:21]OFDSenderStorePacket 260685 [13:01:21]StoreOFDPacket docnum=260685 [13:01:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 1A F1 08 01 38 ED 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 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 F3 00 00 00 F4 03 04 00 A4 F0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4D FA 03 00 35 04 06 00 5A 86 ED 28 18 8F 26 59 5A 96 78 98 03 9F [13:01:21]CheckFolder [13:01:21]dirname=/storage/ofd_packets [13:01:21]CheckFolder done [13:01:21]ProducePacketName [13:01:21]name=ofd_packets/00260685 [13:01:21]NVStorageSaveData ofd_packets/00260685 [13:01:21]File name is /storage/ofd_packets/00260685 [13:01:21]Write 302 bytes [13:01:21]NVStorageSaveData done [13:01:21]OFDSenderStorePacket done [13:01:21]KKMCreateOFDPacket done [13:01:21]NVStorageSaveData kkm_last_timestamp [13:01:21]File name is /storage/kkm_last_timestamp [13:01:21]Write 4 bytes [13:01:21]NVStorageSaveData done [13:01:21]ExternCall_PrintAddStr [13:01:21]wPrintStart [13:01:21]Write to MH i2c: 01 00 00 B5 81 36 [13:01:21]Write i2c OK [13:01:21]MH_I2C_Read... [13:01:21]Read from MH i2c: 01 [13:01:21]MH_I2C_Read... [13:01:21]Read from MH i2c: 01 07 00 [13:01:21]MH_I2C_Read... [13:01:21]Read from MH i2c: 01 07 00 B5 81 00 00 00 00 00 FF 0F 4B [13:01:21]RasterBufferAndPrint [13:01:21]line Счет N : (1)1036233 [13:01:21]line ИНН: 02508201610067 [13:01:21]line Контрольно-Кассовый Чек [13:01:21]line ПРОДАЖА [13:01:21]line ТРК (МРК, ГНК) : 43 [13:01:21]line Товар: 2710194210 [13:01:21]line ДТ(л)-К-4 [13:01:21]line 39.380 * 76.20 [13:01:21]line = 3000.76 [13:01:21]line НДС 12% НСП 1% [13:01:21]line > о реализуемом товаре [13:01:21]line ОКРУГЛЕНИЕ: -0.76 [13:01:21]line ИТОГО: 3000.00 [13:01:21]line Внесено: 3000.00 [13:01:21]line СДАЧА: 0.00 [13:01:21]line НСП 1% : 26.55 [13:01:21]line НДС 12% : 318.66 [13:01:21]line Наличными: 3000.00 [13:01:21]line Безнал.: 0.00 [13:01:21]line Место: АЗС № 94 "Партнер Нефть" [13:01:21]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [13:01:21]line СНО: Общий режим [13:01:21]line Чек 243 18.08.2024 13:01 [13:01:21]line Смена: 449 ФФД: 1.0 [13:01:21]line ЗНМ: 0300000099 [13:01:21]line РНМ: 0000000000091865 [13:01:21]line Версия ККМ: 001 [13:01:21]line ФМ: 0000000000871820 [13:01:21]line ФД: 260685 [13:01:21]line ФПД: 99535550945423 [13:01:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T130124&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260685&fm=99535550945423&tin=02508201610067®Number=0000000000091865&sum=300000 [13:01:21]OFD Sender: Processing packet 260685 [packets to send 192, broken 191] [13:01:21]ProducePacketName [13:01:21]name=ofd_packets/00260685 [13:01:21]OFD Sender: To server: pG, [13:01:21]CommunicateWithHost lk.salyk.kg:30040 [13:01:21]ConnectInit lk.salyk.kg [13:01:21]written 0, free lines is 4095 [13:01:21]Connected sock=10 [13:01: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 30 10 01 00 00 1A F1 08 01 38 ED 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 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 F3 00 00 00 F4 03 04 00 A4 F0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4D FA 03 00 35 04 06 00 5A 86 ED 28 18 8F 26 59 5A 96 78 98 03 9F [13:01: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 30 4F 00 00 00 EF CC 47 00 A9 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 30 10 04 04 00 4D FA 03 00 F4 03 04 00 F9 99 C1 66 B6 04 01 00 00 F8 66 EB 4A AD 2A A5 D0 [13:01:22]CommunicateWithHost err = 0 [13:01:22]CheckOFDResponse [13:01:22]1017 (14) - 77093643461234 [13:01:22]1041 (16) - 0000000000871820 [13:01:22]1040 (4) - 260685 [13:01:22]1012 (4) - 18.08.2024 06:51 [13:01:22]1206 (1) - 0 [13:01:22]OFD Sender: Remove packet 260685 [13:01:22]ProducePacketName [13:01:22]name=ofd_packets/00260685 [13:01:22]NVStorageDeleteData [13:01:22]Write to MH i2c: 01 00 00 E0 81 61 [13:01:22]Write i2c OK [13:01:22]MH_I2C_Read... [13:01:22]Read from MH i2c: 01 [13:01:22]MH_I2C_Read... [13:01:22]Read from MH i2c: 01 07 00 [13:01:22]MH_I2C_Read... [13:01:22]Read from MH i2c: 01 07 00 E0 81 00 00 00 00 00 71 0C E5 [13:01:22]RasterBufferAndPrint [13:01:22]line [13:01:22]line [13:01:22]line [13:01:22]line [13:01:22]line [13:01:22]written 0, free lines is 3188 [13:01:22]MH_Cut [13:01:22]Write to MH i2c: D1 01 00 E7 81 01 3A [13:01:22]Write i2c OK [13:01:22]MH_I2C_Read... [13:01:22]Read from MH i2c: D1 [13:01:22]MH_I2C_Read... [13:01:22]Read from MH i2c: D1 01 00 [13:01:22]MH_I2C_Read... [13:01:22]Read from MH i2c: D1 01 00 E7 81 00 39 [13:01:22]Write to MH i2c: 01 00 00 E8 81 69 [13:01:22]Write i2c OK [13:01:22]MH_I2C_Read... [13:01:22]OFD Sender: No OFD packet to send [13:01:23]*** Cut start [13:01:23]*** Purtial cut [13:01:23]*** Stage 1: CUTSNS_PIN = 1 [13:01:25]Read from MH i2c: 01 [13:01:25]MH_I2C_Read... [13:01:25]*** Stop cut motor [13:01:25]*** Cut end [13:01:25]Read from MH i2c: 01 07 00 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: 01 07 00 E8 81 00 00 00 00 00 FF 0F 7E [13:01:25]process_action close_receipt done [13:01:25]requested_data is exist [13:01:25]produce_requested_data [13:01:25]requested_item fm.sn is exist - process it [13:01:25]wFMCommunicate request_size=4 [13:01:25]MH_SAM_APDU [13:01:25]CAPDU: 80 11 00 00 [13:01:25]Write to MH i2c: E2 08 00 E9 81 80 11 00 00 00 00 00 00 E4 [13:01:25]Write i2c OK [13:01:25]MH_I2C_Read... [13:01:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:25]Read from MH i2c: E2 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 17 00 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 17 00 E9 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 31 [13:01:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:01:25]wFMCommunicate OK [13:01:25]requested_item fd.num is exist - process it [13:01:25]SAM_PROTO_GetFieldsCounters [13:01:25]wFMCommunicate request_size=4 [13:01:25]MH_SAM_APDU [13:01:25]CAPDU: 80 13 00 00 [13:01:25]Write to MH i2c: E2 08 00 EA 81 80 13 00 00 00 00 00 00 E7 [13:01:25]Write i2c OK [13:01:25]MH_I2C_Read... [13:01:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:25]Read from MH i2c: E2 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 62 00 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 62 00 EA 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 4D FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [13:01:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 4D FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:01:25]wFMCommunicate OK [13:01:25]SAM_PROTO_GetFieldsCounters done [13:01:25]requested_item shift.num is exist - process it [13:01:25]requested_item shift.opened is exist - process it [13:01:25]req_shift_opened [13:01:25]FM_GetShiftState [13:01:25]SAM_PROTO_GetShiftState [13:01:25]wFMCommunicate request_size=4 [13:01:25]MH_SAM_APDU [13:01:25]CAPDU: 80 13 01 00 [13:01:25]Write to MH i2c: E2 08 00 EB 81 80 13 01 00 00 00 00 00 E9 [13:01:25]Write i2c OK [13:01:25]MH_I2C_Read... [13:01:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:25]Read from MH i2c: E2 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 0E 00 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 0E 00 EB 81 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 26 [13:01:25]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:01:25]wFMCommunicate OK [13:01:25]SAM_PROTO_GetShiftState done [13:01:25]FM_GetShiftState done [13:01:25]req_shift_opened done [13:01:25]requested_item shift.open_date is exist - process it [13:01:25]req_shift_open_date [13:01:25]req_shift_open_date done [13:01:25]produce_requested_data done [13:01:25]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260685,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [13:01:25]process_action_free close_receipt [13:01:25]json_value_free [13:01:25]json_value_free done [13:01:25]process_json_proto returns [13:01:25]Send response to host [13:01:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260685,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [13:01:25]free response buf [13:01:25]execute_script done [13:01:25]execute_script returns [13:01:25]free content buf [13:01:25]Sock 7.Close socket [13:01:25]Sock 7.Thread stoped [13:01:27]OFD Sender: No OFD packet to send [13:01:32]OFD Sender: No OFD packet to send [13:01:37]OFD Sender: No OFD packet to send [13:01:42]OFD Sender: No OFD packet to send [13:01:47]OFD Sender: No OFD packet to send [13:01:52]OFD Sender: No OFD packet to send [13:01:57]OFD Sender: No OFD packet to send [13:02:02]OFD Sender: No OFD packet to send [13:02:07]OFD Sender: No OFD packet to send [13:02:12]accept exits with 9 [13:02:12]New connection [13:02:12]New thread 3066473828 created [13:02:12]Thread 3066617188 joined [13:02:12]Waiting for new connection... [13:02:12] Sock 9.Parse request [13:02:12]Sock 9.Check first char [13:02:12]Sock 9.First char is OK [13:02:12]request: POST /json_proto HTTP/1.0 [13:02:12]Method: POST [13:02:12]URL: /json_proto [13:02:12]Method is POST - this is cgi request [13:02:12]url: /json_proto [13:02:12]query_string will be loaded in cgi processing [13:02:12]execute_cgi json_proto POST (null) [13:02:12]execute_cgi path=json_proto method=POST [13:02:12]POST find Content-Length [13:02:12]Host: 172.17.55.133:8080 [13:02:12]Content-Length: 755 [13:02:12]Content-Type: application/json [13:02:12] [13:02:12]POST finish read [13:02:12]Found Content-Length = 755 [13:02:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.750, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30105789", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:12]execute_script... [13:02:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.750, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30105789", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:12]POST & json_proto [13:02:12]process_json_proto [13:02:12]json parsed OK: [13:02:12]protocol is kg_v1.0 [13:02:12]action value=close_receipt [13:02:12]process_action close_receipt [13:02:12]cmd_close_receipt [13:02:12]MH_GetDate [13:02:12]Write to MH i2c: F0 00 00 EC 81 5C [13:02:12]Write i2c OK [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: F0 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: F0 09 00 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: F0 09 00 EC 81 00 D9 F0 C1 66 34 48 D8 65 0E [13:02:12]GetLastDocTimeStamp 1723986084 [13:02:12]current date 1723986137 [13:02:12]FM_GetShiftState [13:02:12]SAM_PROTO_GetShiftState [13:02:12]wFMCommunicate request_size=4 [13:02:12]MH_SAM_APDU [13:02:12]CAPDU: 80 13 01 00 [13:02:12]Write to MH i2c: E2 08 00 ED 81 80 13 01 00 00 00 00 00 EB [13:02:12]Write i2c OK [13:02:12]MH_I2C_Read... [13:02:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:12]Read from MH i2c: E2 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 0E 00 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: E2 0E 00 ED 81 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 28 [13:02:12]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:02:12]wFMCommunicate OK [13:02:12]SAM_PROTO_GetShiftState done [13:02:12]FM_GetShiftState done [13:02:12]opened in 1723940556 [13:02:12]opened+sec_in_day 1724026956 [13:02:12]quantity*price = 0 [13:02:12]sum+1 = 1 [13:02:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 244 18.08.2024 13:02 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: ТК ГПНА Online 30105789 ФМ: 0000000000871820 ФД: 260686 ФПД: 80326444731369 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T130217&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260686&fm=80326444731369&tin=02508201610067®Number=0000000000091865&sum=0 [13:02:13]StoreToDocumentArchive [13:02:13]shift 449 fd 260686 [13:02:13]save to /storage/0449/doc_00260686 [13:02:13]save last doc name /storage/0449/doc_00260686 to /storage/kkm_last_doc_name [13:02:13]save OK [13:02:13]Clear old archive folders... [13:02:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:02:13]tlvbuf is 00336350 [13:02:13]SAM_PROTO_ClearQueue [13:02:13]wFMCommunicate request_size=4 [13:02:13]MH_SAM_APDU [13:02:13]CAPDU: 80 09 00 00 [13:02:13]Write to MH i2c: E2 08 00 FA 81 80 09 00 00 00 00 00 00 ED [13:02:13]Write i2c OK [13:02:13]MH_I2C_Read... [13:02:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:13]Read from MH i2c: E2 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: E2 03 00 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: E2 03 00 FA 81 00 90 00 EF [13:02:13]RAPDU: 90 00 [13:02:13]wFMCommunicate OK [13:02:13]SAM_PROTO_ClearQueue done [13:02:13]KKMCreateOFDPacket [13:02:13]OFDProtocolAddRootSTLVToBuf [13:02:13]FM_MakeSignedData [13:02:13]FM_MakeSignedData [13:02:13]SAM_PROTO_SignData [13:02:13]wFMCommunicate request_size=4 [13:02:13]MH_SAM_APDU [13:02:13]CAPDU: 80 0D 01 02 [13:02:13]Write to MH i2c: E2 08 00 FB 81 80 0D 01 02 00 00 00 00 F5 [13:02:13]Write i2c OK [13:02:13]MH_I2C_Read... [13:02:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:13]Read from MH i2c: E2 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: E2 03 00 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: E2 03 00 FB 81 00 90 00 F0 [13:02:13]RAPDU: 90 00 [13:02:13]wFMCommunicate OK [13:02:13]wFMCommunicate request_size=255 [13:02:13]MH_SAM_APDU [13:02:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 D9 F0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4E FA 03 00 35 04 06 00 49 [13:02:13]Write to MH i2c: E2 02 01 FC 81 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 D9 F0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4E FA 03 00 35 04 06 00 49 00 00 0E [13:02:13]Write i2c OK [13:02:13]MH_I2C_Read... [13:02:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:13]Read from MH i2c: E2 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: E2 03 00 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: E2 03 00 FC 81 00 90 00 F1 [13:02:13]RAPDU: 90 00 [13:02:13]wFMCommunicate OK [13:02:13]wFMCommunicate request_size=10 [13:02:13]MH_SAM_APDU [13:02:13]CAPDU: 80 0D 02 02 05 0E 75 34 4B E9 [13:02:13]Write to MH i2c: E2 0D 00 FD 81 80 0D 02 02 05 00 0E 75 34 4B E9 00 00 ED [13:02:13]Write i2c OK [13:02:13]MH_I2C_Read... [13:02:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:13]Read from MH i2c: E2 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: E2 03 00 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: E2 03 00 FD 81 00 90 00 F2 [13:02:13]RAPDU: 90 00 [13:02:13]wFMCommunicate OK [13:02:13]wFMCommunicate request_size=4 [13:02:13]MH_SAM_APDU [13:02:13]CAPDU: 80 0D 03 02 [13:02:13]Write to MH i2c: E2 08 00 FE 81 80 0D 03 02 00 00 00 00 FA [13:02:13]Write i2c OK [13:02:13]MH_I2C_Read... [13:02:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:13]Read from MH i2c: E2 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: E2 0B 00 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: E2 0B 00 FE 81 00 26 D8 07 EA 36 F3 7F E3 90 00 75 [13:02:13]RAPDU: 26 D8 07 EA 36 F3 7F E3 90 00 [13:02:13]wFMCommunicate OK [13:02:13]SAM_PROTO_SignData done [13:02:13]FM_MakeSignedData done [13:02:13]CreateOFDProtocolMessage [13:02:13]wFMCommunicate request_size=4 [13:02:13]MH_SAM_APDU [13:02:13]CAPDU: 80 11 00 00 [13:02:13]Write to MH i2c: E2 08 00 FF 81 80 11 00 00 00 00 00 00 FA [13:02:13]Write i2c OK [13:02:13]MH_I2C_Read... [13:02:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:13]Read from MH i2c: E2 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: E2 17 00 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: E2 17 00 FF 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 47 [13:02:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:02:13]wFMCommunicate OK [13:02:13]CreateOFDProtocolMessage done [13:02:13]OFDSenderStorePacket 260686 [13:02:13]StoreOFDPacket docnum=260686 [13:02:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 2F 93 07 01 FF C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 D9 F0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4E FA 03 00 35 04 06 00 49 0E 75 34 4B E9 26 D8 07 EA 36 F3 7F E3 [13:02:13]CheckFolder [13:02:13]dirname=/storage/ofd_packets [13:02:13]CheckFolder done [13:02:13]ProducePacketName [13:02:13]name=ofd_packets/00260686 [13:02:13]NVStorageSaveData ofd_packets/00260686 [13:02:13]File name is /storage/ofd_packets/00260686 [13:02:13]Write 301 bytes [13:02:13]NVStorageSaveData done [13:02:13]OFDSenderStorePacket done [13:02:13]KKMCreateOFDPacket done [13:02:13]NVStorageSaveData kkm_last_timestamp [13:02:13]File name is /storage/kkm_last_timestamp [13:02:13]Write 4 bytes [13:02:13]NVStorageSaveData done [13:02:13]ExternCall_PrintAddStr [13:02:13]wPrintStart [13:02:13]Write to MH i2c: 01 00 00 00 82 82 [13:02:13]Write i2c OK [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: 01 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: 01 07 00 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: 01 07 00 00 82 00 00 00 00 00 FF 0F 97 [13:02:13]RasterBufferAndPrint [13:02:13]line Счет N : (1)1036234 [13:02:13]line ИНН: 02508201610067 [13:02:13]line Контрольно-Кассовый Чек [13:02:13]line ПРОДАЖА [13:02:13]line ТРК (МРК, ГНК) : 22 [13:02:13]line Товар: 2710124130 [13:02:13]line Аи-92-К-5 [13:02:13]line 14.750 * 0.00 [13:02:13]line = 0.00 [13:02:13]line НДС 12% НСП 1% [13:02:13]line > о реализуемом товаре [13:02:13]line ИТОГО: 0.00 [13:02:13]line НСП 1% : 0.00 [13:02:13]line НДС 12% : 0.00 [13:02:13]line Наличными: 0.00 [13:02:13]line Безнал.: 0.00 [13:02:13]line Место: АЗС № 94 "Партнер Нефть" [13:02:13]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [13:02:13]line СНО: Общий режим [13:02:13]line Чек 244 18.08.2024 13:02 [13:02:13]line Смена: 449 ФФД: 1.0 [13:02:13]line ЗНМ: 0300000099 [13:02:13]line РНМ: 0000000000091865 [13:02:13]line Версия ККМ: 001 [13:02:13]line Талоны: ТК ГПНА Online [13:02:13]line 30105789 [13:02:13]line ФМ: 0000000000871820 [13:02:13]line ФД: 260686 [13:02:13]line ФПД: 80326444731369 [13:02:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T130217&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260686&fm=80326444731369&tin=02508201610067®Number=0000000000091865&sum=0 [13:02:13]written 0, free lines is 4095 [13:02:13]OFD Sender: Processing packet 260686 [packets to send 192, broken 191] [13:02:13]ProducePacketName [13:02:13]name=ofd_packets/00260686 [13:02:13]OFD Sender: To server: pG, [13:02:13]CommunicateWithHost lk.salyk.kg:30040 [13:02:13]ConnectInit lk.salyk.kg [13:02:14]Connected sock=7 [13:02: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 30 0F 01 00 00 2F 93 07 01 FF C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 D9 F0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4E FA 03 00 35 04 06 00 49 0E 75 34 4B E9 26 D8 07 EA 36 F3 7F E3 [13:02: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 30 4F 00 00 00 9D A9 47 00 A6 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4E FA 03 00 F4 03 04 00 2D 9A C1 66 B6 04 01 00 00 1D 94 43 D1 DE A3 AC 96 [13:02:14]CommunicateWithHost err = 0 [13:02:14]CheckOFDResponse [13:02:14]1017 (14) - 77093643461234 [13:02:14]1041 (16) - 0000000000871820 [13:02:14]1040 (4) - 260686 [13:02:14]1012 (4) - 18.08.2024 06:52 [13:02:14]1206 (1) - 0 [13:02:14]OFD Sender: Remove packet 260686 [13:02:14]ProducePacketName [13:02:14]name=ofd_packets/00260686 [13:02:14]NVStorageDeleteData [13:02:14]Write to MH i2c: 01 00 00 2A 82 AC [13:02:14]Write i2c OK [13:02:14]MH_I2C_Read... [13:02:14]Read from MH i2c: 01 [13:02:14]MH_I2C_Read... [13:02:14]Read from MH i2c: 01 07 00 [13:02:14]MH_I2C_Read... [13:02:14]Read from MH i2c: 01 07 00 2A 82 00 00 00 00 00 8F 0C 4E [13:02:14]RasterBufferAndPrint [13:02:14]line [13:02:14]line [13:02:14]line [13:02:14]line [13:02:14]line [13:02:14]written 0, free lines is 3220 [13:02:14]MH_Cut [13:02:14]Write to MH i2c: D1 01 00 31 82 01 85 [13:02:14]Write i2c OK [13:02:14]MH_I2C_Read... [13:02:14]Read from MH i2c: D1 [13:02:14]MH_I2C_Read... [13:02:14]Read from MH i2c: D1 01 00 [13:02:14]MH_I2C_Read... [13:02:14]Read from MH i2c: D1 01 00 31 82 00 84 [13:02:14]Write to MH i2c: 01 00 00 32 82 B4 [13:02:14]Write i2c OK [13:02:14]MH_I2C_Read... [13:02:14]OFD Sender: No OFD packet to send [13:02:15]*** Cut start [13:02:15]*** Purtial cut [13:02:15]*** Stage 1: CUTSNS_PIN = 1 [13:02:17]Read from MH i2c: 01 [13:02:17]MH_I2C_Read... [13:02:17]*** Stop cut motor [13:02:17]*** Cut end [13:02:17]Read from MH i2c: 01 07 00 [13:02:17]MH_I2C_Read... [13:02:17]Read from MH i2c: 01 07 00 32 82 00 00 00 00 00 FF 0F C9 [13:02:17]process_action close_receipt done [13:02:17]requested_data is exist [13:02:17]produce_requested_data [13:02:17]requested_item fm.sn is exist - process it [13:02:17]wFMCommunicate request_size=4 [13:02:17]MH_SAM_APDU [13:02:17]CAPDU: 80 11 00 00 [13:02:17]Write to MH i2c: E2 08 00 33 82 80 11 00 00 00 00 00 00 2F [13:02:17]Write i2c OK [13:02:17]MH_I2C_Read... [13:02:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:17]Read from MH i2c: E2 [13:02:17]MH_I2C_Read... [13:02:17]Read from MH i2c: E2 17 00 [13:02:17]MH_I2C_Read... [13:02:17]Read from MH i2c: E2 17 00 33 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 7C [13:02:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:02:17]wFMCommunicate OK [13:02:17]requested_item fd.num is exist - process it [13:02:17]SAM_PROTO_GetFieldsCounters [13:02:17]wFMCommunicate request_size=4 [13:02:17]MH_SAM_APDU [13:02:17]CAPDU: 80 13 00 00 [13:02:17]Write to MH i2c: E2 08 00 34 82 80 13 00 00 00 00 00 00 32 [13:02:17]Write i2c OK [13:02:17]MH_I2C_Read... [13:02:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:17]Read from MH i2c: E2 [13:02:17]MH_I2C_Read... [13:02:17]Read from MH i2c: E2 62 00 [13:02:17]MH_I2C_Read... [13:02:17]Read from MH i2c: E2 62 00 34 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 4E FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [13:02: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 4E FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:02:17]wFMCommunicate OK [13:02:17]SAM_PROTO_GetFieldsCounters done [13:02:17]requested_item shift.num is exist - process it [13:02:17]requested_item shift.opened is exist - process it [13:02:17]req_shift_opened [13:02:17]FM_GetShiftState [13:02:17]SAM_PROTO_GetShiftState [13:02:17]wFMCommunicate request_size=4 [13:02:17]MH_SAM_APDU [13:02:17]CAPDU: 80 13 01 00 [13:02:17]Write to MH i2c: E2 08 00 35 82 80 13 01 00 00 00 00 00 34 [13:02:17]Write i2c OK [13:02:17]MH_I2C_Read... [13:02:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:17]Read from MH i2c: E2 [13:02:17]MH_I2C_Read... [13:02:17]Read from MH i2c: E2 0E 00 [13:02:17]MH_I2C_Read... [13:02:17]Read from MH i2c: E2 0E 00 35 82 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 71 [13:02:17]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:02:17]wFMCommunicate OK [13:02:17]SAM_PROTO_GetShiftState done [13:02:17]FM_GetShiftState done [13:02:17]req_shift_opened done [13:02:17]requested_item shift.open_date is exist - process it [13:02:17]req_shift_open_date [13:02:17]req_shift_open_date done [13:02:17]produce_requested_data done [13:02:17]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260686,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [13:02:17]process_action_free close_receipt [13:02:17]json_value_free [13:02:17]json_value_free done [13:02:17]process_json_proto returns [13:02:17]Send response to host [13:02:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260686,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [13:02:17]free response buf [13:02:17]execute_script done [13:02:17]execute_script returns [13:02:17]free content buf [13:02:17]Sock 9.Close socket [13:02:17]Sock 9.Thread stoped [13:02:19]OFD Sender: No OFD packet to send [13:02:24]OFD Sender: No OFD packet to send [13:02:29]OFD Sender: No OFD packet to send [13:02:34]OFD Sender: No OFD packet to send [13:02:35]accept exits with 10 [13:02:35]New connection [13:02:35]New thread 3066617188 created [13:02:35]Thread 3066473828 joined [13:02:35]Waiting for new connection... [13:02:35] Sock 10.Parse request [13:02:35]Sock 10.Check first char [13:02:35]Sock 10.First char is OK [13:02:35]request: POST /json_proto HTTP/1.0 [13:02:35]Method: POST [13:02:35]URL: /json_proto [13:02:35]Method is POST - this is cgi request [13:02:35]url: /json_proto [13:02:35]query_string will be loaded in cgi processing [13:02:35]execute_cgi json_proto POST (null) [13:02:35]execute_cgi path=json_proto method=POST [13:02:35]POST find Content-Length [13:02:35]Host: 172.17.55.133:8080 [13:02:35]Content-Length: 801 [13:02:35]Content-Type: application/json [13:02:35] [13:02:35]POST finish read [13:02:35]Found Content-Length = 801 [13:02:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 350.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:35]execute_script... [13:02: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)1036235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 350.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:35]POST & json_proto [13:02:35]process_json_proto [13:02:35]json parsed OK: [13:02:35]protocol is kg_v1.0 [13:02:35]action value=close_receipt [13:02:35]process_action close_receipt [13:02:35]cmd_close_receipt [13:02:35]MH_GetDate [13:02:35]Write to MH i2c: F0 00 00 36 82 A7 [13:02:35]Write i2c OK [13:02:35]MH_I2C_Read... [13:02:35]Read from MH i2c: F0 [13:02:35]MH_I2C_Read... [13:02:35]Read from MH i2c: F0 09 00 [13:02:35]MH_I2C_Read... [13:02:35]Read from MH i2c: F0 09 00 36 82 00 F0 F0 C1 66 34 48 D8 65 70 [13:02:35]GetLastDocTimeStamp 1723986137 [13:02:35]current date 1723986160 [13:02:35]FM_GetShiftState [13:02:35]SAM_PROTO_GetShiftState [13:02:35]wFMCommunicate request_size=4 [13:02:35]MH_SAM_APDU [13:02:35]CAPDU: 80 13 01 00 [13:02:35]Write to MH i2c: E2 08 00 37 82 80 13 01 00 00 00 00 00 36 [13:02:35]Write i2c OK [13:02:35]MH_I2C_Read... [13:02:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:35]Read from MH i2c: E2 [13:02:35]MH_I2C_Read... [13:02:35]Read from MH i2c: E2 0E 00 [13:02:35]MH_I2C_Read... [13:02:35]Read from MH i2c: E2 0E 00 37 82 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 73 [13:02:35]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:02:35]wFMCommunicate OK [13:02:35]SAM_PROTO_GetShiftState done [13:02:35]FM_GetShiftState done [13:02:35]opened in 1723940556 [13:02:35]opened+sec_in_day 1724026956 [13:02:35]quantity*price = 35052 [13:02:35]sum+1 = 35054 [13:02:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 350.53 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 0.00 Безнал.: 350.53 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 245 18.08.2024 13:02 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260687 ФПД: 87689060840787 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T130240&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260687&fm=87689060840787&tin=02508201610067®Number=0000000000091865&sum=35053 [13:02:36]StoreToDocumentArchive [13:02:36]shift 449 fd 260687 [13:02:36]save to /storage/0449/doc_00260687 [13:02:36]save last doc name /storage/0449/doc_00260687 to /storage/kkm_last_doc_name [13:02:36]save OK [13:02:36]Clear old archive folders... [13:02:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:02:36]tlvbuf is 00382F40 [13:02:36]SAM_PROTO_ClearQueue [13:02:36]wFMCommunicate request_size=4 [13:02:36]MH_SAM_APDU [13:02:36]CAPDU: 80 09 00 00 [13:02:36]Write to MH i2c: E2 08 00 44 82 80 09 00 00 00 00 00 00 38 [13:02:36]Write i2c OK [13:02:36]MH_I2C_Read... [13:02:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:36]Read from MH i2c: E2 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: E2 03 00 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: E2 03 00 44 82 00 90 00 3A [13:02:36]RAPDU: 90 00 [13:02:36]wFMCommunicate OK [13:02:36]SAM_PROTO_ClearQueue done [13:02:36]KKMCreateOFDPacket [13:02:36]OFDProtocolAddRootSTLVToBuf [13:02:36]FM_MakeSignedData [13:02:36]FM_MakeSignedData [13:02:36]SAM_PROTO_SignData [13:02:36]wFMCommunicate request_size=4 [13:02:36]MH_SAM_APDU [13:02:36]CAPDU: 80 0D 01 02 [13:02:36]Write to MH i2c: E2 08 00 45 82 80 0D 01 02 00 00 00 00 40 [13:02:36]Write i2c OK [13:02:36]MH_I2C_Read... [13:02:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:36]Read from MH i2c: E2 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: E2 03 00 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: E2 03 00 45 82 00 90 00 3B [13:02:36]RAPDU: 90 00 [13:02:36]wFMCommunicate OK [13:02:36]wFMCommunicate request_size=255 [13:02:36]MH_SAM_APDU [13:02:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 ED 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 00 00 00 00 00 00 39 04 06 00 ED 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 F0 F0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4F FA 03 00 35 04 06 00 4F [13:02:36]Write to MH i2c: E2 02 01 46 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 ED 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 00 00 00 00 00 00 39 04 06 00 ED 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 F0 F0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4F FA 03 00 35 04 06 00 4F 00 00 AB [13:02:36]Write i2c OK [13:02:36]MH_I2C_Read... [13:02:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:37]Read from MH i2c: E2 [13:02:37]MH_I2C_Read... [13:02:37]Read from MH i2c: E2 03 00 [13:02:37]MH_I2C_Read... [13:02:37]Read from MH i2c: E2 03 00 46 82 00 90 00 3C [13:02:37]RAPDU: 90 00 [13:02:37]wFMCommunicate OK [13:02:37]wFMCommunicate request_size=10 [13:02:37]MH_SAM_APDU [13:02:37]CAPDU: 80 0D 02 02 05 C0 B3 52 75 53 [13:02:37]Write to MH i2c: E2 0D 00 47 82 80 0D 02 02 05 00 C0 B3 52 75 53 00 00 DA [13:02:37]Write i2c OK [13:02:37]MH_I2C_Read... [13:02:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:37]Read from MH i2c: E2 [13:02:37]MH_I2C_Read... [13:02:37]Read from MH i2c: E2 03 00 [13:02:37]MH_I2C_Read... [13:02:37]Read from MH i2c: E2 03 00 47 82 00 90 00 3D [13:02:37]RAPDU: 90 00 [13:02:37]wFMCommunicate OK [13:02:37]wFMCommunicate request_size=4 [13:02:37]MH_SAM_APDU [13:02:37]CAPDU: 80 0D 03 02 [13:02:37]Write to MH i2c: E2 08 00 48 82 80 0D 03 02 00 00 00 00 45 [13:02:37]Write i2c OK [13:02:37]MH_I2C_Read... [13:02:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:37]Read from MH i2c: E2 [13:02:37]MH_I2C_Read... [13:02:37]Read from MH i2c: E2 0B 00 [13:02:37]MH_I2C_Read... [13:02:37]Read from MH i2c: E2 0B 00 48 82 00 4A 70 E4 92 38 E6 A2 68 90 00 9E [13:02:37]RAPDU: 4A 70 E4 92 38 E6 A2 68 90 00 [13:02:37]wFMCommunicate OK [13:02:37]SAM_PROTO_SignData done [13:02:37]FM_MakeSignedData done [13:02:37]CreateOFDProtocolMessage [13:02:37]wFMCommunicate request_size=4 [13:02:37]MH_SAM_APDU [13:02:37]CAPDU: 80 11 00 00 [13:02:37]Write to MH i2c: E2 08 00 49 82 80 11 00 00 00 00 00 00 45 [13:02:37]Write i2c OK [13:02:37]MH_I2C_Read... [13:02:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:37]Read from MH i2c: E2 [13:02:37]MH_I2C_Read... [13:02:37]Read from MH i2c: E2 17 00 [13:02:37]MH_I2C_Read... [13:02:37]Read from MH i2c: E2 17 00 49 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 92 [13:02:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:02:37]wFMCommunicate OK [13:02:37]CreateOFDProtocolMessage done [13:02:37]OFDSenderStorePacket 260687 [13:02:37]StoreOFDPacket docnum=260687 [13:02:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 49 84 07 01 4B 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 ED 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 00 00 00 00 00 00 39 04 06 00 ED 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 F0 F0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4F FA 03 00 35 04 06 00 4F C0 B3 52 75 53 4A 70 E4 92 38 E6 A2 68 [13:02:37]CheckFolder [13:02:37]dirname=/storage/ofd_packets [13:02:37]CheckFolder done [13:02:37]ProducePacketName [13:02:37]name=ofd_packets/00260687 [13:02:37]NVStorageSaveData ofd_packets/00260687 [13:02:37]File name is /storage/ofd_packets/00260687 [13:02:37]Write 301 bytes [13:02:37]NVStorageSaveData done [13:02:37]OFDSenderStorePacket done [13:02:37]KKMCreateOFDPacket done [13:02:37]NVStorageSaveData kkm_last_timestamp [13:02:37]File name is /storage/kkm_last_timestamp [13:02:37]Write 4 bytes [13:02:37]NVStorageSaveData done [13:02:37]ExternCall_PrintAddStr [13:02:37]wPrintStart [13:02:37]Write to MH i2c: 01 00 00 4A 82 CC [13:02:37]Write i2c OK [13:02:37]MH_I2C_Read... [13:02:37]Read from MH i2c: 01 [13:02:37]MH_I2C_Read... [13:02:37]Read from MH i2c: 01 07 00 [13:02:37]MH_I2C_Read... [13:02:37]Read from MH i2c: 01 07 00 4A 82 00 00 00 00 00 FF 0F E1 [13:02:37]RasterBufferAndPrint [13:02:37]line Счет N : (1)1036235 [13:02:37]line ИНН: 02508201610067 [13:02:37]line Контрольно-Кассовый Чек [13:02:37]line ПРОДАЖА [13:02:37]line ТРК (МРК, ГНК) : 12 [13:02:37]line Товар: 2710124130 [13:02:37]line Аи-92-К-5 [13:02:37]line 5.170 * 67.80 [13:02:37]line = 350.53 [13:02:37]line НДС 12% НСП 1% [13:02:37]line > о реализуемом товаре [13:02:37]line ИТОГО: 350.53 [13:02:37]line НСП 1% : 3.10 [13:02:37]line НДС 12% : 37.22 [13:02:37]line Наличными: 0.00 [13:02:37]line Безнал.: 350.53 [13:02:37]line Место: АЗС № 94 "Партнер Нефть" [13:02:37]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [13:02:37]line СНО: Общий режим [13:02:37]line Чек 245 18.08.2024 13:02 [13:02:37]line Смена: 449 ФФД: 1.0 [13:02:37]line ЗНМ: 0300000099 [13:02:37]line РНМ: 0000000000091865 [13:02:37]line Версия ККМ: 001 [13:02:37]line Платежная система: O! деньги [13:02:37]line ФМ: 0000000000871820 [13:02:37]line ФД: 260687 [13:02:37]line ФПД: 87689060840787 [13:02:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T130240&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260687&fm=87689060840787&tin=02508201610067®Number=0000000000091865&sum=35053 [13:02:37]OFD Sender: Processing packet 260687 [packets to send 192, broken 191] [13:02:37]ProducePacketName [13:02:37]name=ofd_packets/00260687 [13:02:37]OFD Sender: To server: pG, [13:02:37]CommunicateWithHost lk.salyk.kg:30040 [13:02:37]ConnectInit lk.salyk.kg [13:02:37]written 0, free lines is 4095 [13:02:37]Connected sock=9 [13:02: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 30 0F 01 00 00 49 84 07 01 4B 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 ED 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 00 00 00 00 00 00 39 04 06 00 ED 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 F0 F0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4F FA 03 00 35 04 06 00 4F C0 B3 52 75 53 4A 70 E4 92 38 E6 A2 68 [13:02: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 30 4F 00 00 00 19 AF 47 00 E8 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 30 10 04 04 00 4F FA 03 00 F4 03 04 00 45 9A C1 66 B6 04 01 00 00 FE 45 91 0C B1 47 C8 78 [13:02:37]CommunicateWithHost err = 0 [13:02:37]CheckOFDResponse [13:02:37]1017 (14) - 77093643461234 [13:02:37]1041 (16) - 0000000000871820 [13:02:37]1040 (4) - 260687 [13:02:37]1012 (4) - 18.08.2024 06:52 [13:02:37]1206 (1) - 0 [13:02:37]OFD Sender: Remove packet 260687 [13:02:37]ProducePacketName [13:02:37]name=ofd_packets/00260687 [13:02:37]NVStorageDeleteData [13:02:38]Write to MH i2c: 01 00 00 74 82 F6 [13:02:38]Write i2c OK [13:02:38]MH_I2C_Read... [13:02:38]Read from MH i2c: 01 [13:02:38]MH_I2C_Read... [13:02:38]Read from MH i2c: 01 07 00 [13:02:38]MH_I2C_Read... [13:02:38]Read from MH i2c: 01 07 00 74 82 00 00 00 00 00 82 0C 8B [13:02:38]RasterBufferAndPrint [13:02:38]line [13:02:38]line [13:02:38]line [13:02:38]line [13:02:38]line [13:02:38]written 0, free lines is 3207 [13:02:38]MH_Cut [13:02:38]Write to MH i2c: D1 01 00 7B 82 01 CF [13:02:38]Write i2c OK [13:02:38]MH_I2C_Read... [13:02:38]Read from MH i2c: D1 [13:02:38]MH_I2C_Read... [13:02:38]Read from MH i2c: D1 01 00 [13:02:38]MH_I2C_Read... [13:02:38]Read from MH i2c: D1 01 00 7B 82 00 CE [13:02:38]Write to MH i2c: 01 00 00 7C 82 FE [13:02:38]Write i2c OK [13:02:38]MH_I2C_Read... [13:02:38]OFD Sender: No OFD packet to send [13:02:39]*** Cut start [13:02:39]*** Purtial cut [13:02:39]*** Stage 1: CUTSNS_PIN = 1 [13:02:41]Read from MH i2c: 01 [13:02:41]MH_I2C_Read... [13:02:41]*** Stop cut motor [13:02:41]*** Cut end [13:02:41]Read from MH i2c: 01 07 00 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: 01 07 00 7C 82 00 00 00 00 00 FF 0F 13 [13:02:41]process_action close_receipt done [13:02:41]requested_data is exist [13:02:41]produce_requested_data [13:02:41]requested_item fm.sn is exist - process it [13:02:41]wFMCommunicate request_size=4 [13:02:41]MH_SAM_APDU [13:02:41]CAPDU: 80 11 00 00 [13:02:41]Write to MH i2c: E2 08 00 7D 82 80 11 00 00 00 00 00 00 79 [13:02:41]Write i2c OK [13:02:41]MH_I2C_Read... [13:02:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:41]Read from MH i2c: E2 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 17 00 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 17 00 7D 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C6 [13:02:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:02:41]wFMCommunicate OK [13:02:41]requested_item fd.num is exist - process it [13:02:41]SAM_PROTO_GetFieldsCounters [13:02:41]wFMCommunicate request_size=4 [13:02:41]MH_SAM_APDU [13:02:41]CAPDU: 80 13 00 00 [13:02:41]Write to MH i2c: E2 08 00 7E 82 80 13 00 00 00 00 00 00 7C [13:02:41]Write i2c OK [13:02:41]MH_I2C_Read... [13:02:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:41]Read from MH i2c: E2 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 62 00 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 62 00 7E 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 4F FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [13:02: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 4F FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:02:41]wFMCommunicate OK [13:02:41]SAM_PROTO_GetFieldsCounters done [13:02:41]requested_item shift.num is exist - process it [13:02:41]requested_item shift.opened is exist - process it [13:02:41]req_shift_opened [13:02:41]FM_GetShiftState [13:02:41]SAM_PROTO_GetShiftState [13:02:41]wFMCommunicate request_size=4 [13:02:41]MH_SAM_APDU [13:02:41]CAPDU: 80 13 01 00 [13:02:41]Write to MH i2c: E2 08 00 7F 82 80 13 01 00 00 00 00 00 7E [13:02:41]Write i2c OK [13:02:41]MH_I2C_Read... [13:02:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:41]Read from MH i2c: E2 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 0E 00 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 0E 00 7F 82 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 BB [13:02:41]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:02:41]wFMCommunicate OK [13:02:41]SAM_PROTO_GetShiftState done [13:02:41]FM_GetShiftState done [13:02:41]req_shift_opened done [13:02:41]requested_item shift.open_date is exist - process it [13:02:41]req_shift_open_date [13:02:41]req_shift_open_date done [13:02:41]produce_requested_data done [13:02:41]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260687,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [13:02:41]process_action_free close_receipt [13:02:41]json_value_free [13:02:41]json_value_free done [13:02:41]process_json_proto returns [13:02:41]Send response to host [13:02:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260687,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [13:02:41]free response buf [13:02:41]execute_script done [13:02:41]execute_script returns [13:02:41]free content buf [13:02:41]Sock 10.Close socket [13:02:41]Sock 10.Thread stoped [13:02:43]OFD Sender: No OFD packet to send [13:02:48]OFD Sender: No OFD packet to send [13:02:49]accept exits with 7 [13:02:49]New connection [13:02:49]New thread 3066473828 created [13:02:49]Thread 3066617188 joined [13:02:49]Waiting for new connection... [13:02:49] Sock 7.Parse request [13:02:49]Sock 7.Check first char [13:02:49]Sock 7.First char is OK [13:02:49]request: POST /json_proto HTTP/1.0 [13:02:49]Method: POST [13:02:49]URL: /json_proto [13:02:49]Method is POST - this is cgi request [13:02:49]url: /json_proto [13:02:49]query_string will be loaded in cgi processing [13:02:49]execute_cgi json_proto POST (null) [13:02:49]execute_cgi path=json_proto method=POST [13:02:49]POST find Content-Length [13:02:49]Host: 172.17.55.133:8080 [13:02:49]Content-Length: 679 [13:02:49]Content-Type: application/json [13:02:49] [13:02:49]POST finish read [13:02:49]Found Content-Length = 679 [13:02:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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:02:49]execute_script... [13:02: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)1036236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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:02:49]POST & json_proto [13:02:49]process_json_proto [13:02:49]json parsed OK: [13:02:49]protocol is kg_v1.0 [13:02:49]action value=close_receipt [13:02:49]process_action close_receipt [13:02:49]cmd_close_receipt [13:02:49]MH_GetDate [13:02:49]Write to MH i2c: F0 00 00 80 82 F1 [13:02:49]Write i2c OK [13:02:49]MH_I2C_Read... [13:02:49]Read from MH i2c: F0 [13:02:49]MH_I2C_Read... [13:02:49]Read from MH i2c: F0 09 00 [13:02:49]MH_I2C_Read... [13:02:49]Read from MH i2c: F0 09 00 80 82 00 FE F0 C1 66 34 48 D8 65 C8 [13:02:49]GetLastDocTimeStamp 1723986160 [13:02:49]current date 1723986174 [13:02:49]FM_GetShiftState [13:02:49]SAM_PROTO_GetShiftState [13:02:49]wFMCommunicate request_size=4 [13:02:49]MH_SAM_APDU [13:02:49]CAPDU: 80 13 01 00 [13:02:49]Write to MH i2c: E2 08 00 81 82 80 13 01 00 00 00 00 00 80 [13:02:49]Write i2c OK [13:02:49]MH_I2C_Read... [13:02:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:49]Read from MH i2c: E2 [13:02:49]MH_I2C_Read... [13:02:49]Read from MH i2c: E2 0E 00 [13:02:49]MH_I2C_Read... [13:02:49]Read from MH i2c: E2 0E 00 81 82 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 BD [13:02:49]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:02:49]wFMCommunicate OK [13:02:49]SAM_PROTO_GetShiftState done [13:02:49]FM_GetShiftState done [13:02:49]opened in 1723940556 [13:02:49]opened+sec_in_day 1724026956 [13:02:49]quantity*price = 70037 [13:02:49]sum+1 = 70038 [13:02:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 246 18.08.2024 13:02 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260688 ФПД: 94987721113135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T130254&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260688&fm=94987721113135&tin=02508201610067®Number=0000000000091865&sum=70000 [13:02:50]StoreToDocumentArchive [13:02:50]shift 449 fd 260688 [13:02:50]save to /storage/0449/doc_00260688 [13:02:50]save last doc name /storage/0449/doc_00260688 to /storage/kkm_last_doc_name [13:02:50]save OK [13:02:50]Clear old archive folders... [13:02:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:02:50]tlvbuf is 004A4830 [13:02:50]SAM_PROTO_ClearQueue [13:02:50]wFMCommunicate request_size=4 [13:02:50]MH_SAM_APDU [13:02:50]CAPDU: 80 09 00 00 [13:02:50]Write to MH i2c: E2 08 00 8E 82 80 09 00 00 00 00 00 00 82 [13:02:50]Write i2c OK [13:02:50]MH_I2C_Read... [13:02:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:50]Read from MH i2c: E2 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: E2 03 00 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: E2 03 00 8E 82 00 90 00 84 [13:02:50]RAPDU: 90 00 [13:02:50]wFMCommunicate OK [13:02:50]SAM_PROTO_ClearQueue done [13:02:50]KKMCreateOFDPacket [13:02:50]OFDProtocolAddRootSTLVToBuf [13:02:50]FM_MakeSignedData [13:02:50]FM_MakeSignedData [13:02:50]SAM_PROTO_SignData [13:02:50]wFMCommunicate request_size=4 [13:02:50]MH_SAM_APDU [13:02:50]CAPDU: 80 0D 01 02 [13:02:50]Write to MH i2c: E2 08 00 8F 82 80 0D 01 02 00 00 00 00 8A [13:02:50]Write i2c OK [13:02:50]MH_I2C_Read... [13:02:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:51]Read from MH i2c: E2 [13:02:51]MH_I2C_Read... [13:02:51]Read from MH i2c: E2 03 00 [13:02:51]MH_I2C_Read... [13:02:51]Read from MH i2c: E2 03 00 8F 82 00 90 00 85 [13:02:51]RAPDU: 90 00 [13:02:51]wFMCommunicate OK [13:02:51]wFMCommunicate request_size=255 [13:02:51]MH_SAM_APDU [13:02:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 F6 00 00 00 F4 03 04 00 FE F0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 50 FA 03 00 35 04 06 00 56 [13:02:51]Write to MH i2c: E2 02 01 90 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 F6 00 00 00 F4 03 04 00 FE F0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 50 FA 03 00 35 04 06 00 56 00 00 5E [13:02:51]Write i2c OK [13:02:51]MH_I2C_Read... [13:02:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:51]Read from MH i2c: E2 [13:02:51]MH_I2C_Read... [13:02:51]Read from MH i2c: E2 03 00 [13:02:51]MH_I2C_Read... [13:02:51]Read from MH i2c: E2 03 00 90 82 00 90 00 86 [13:02:51]RAPDU: 90 00 [13:02:51]wFMCommunicate OK [13:02:51]wFMCommunicate request_size=10 [13:02:51]MH_SAM_APDU [13:02:51]CAPDU: 80 0D 02 02 05 64 0D 5F FE 2F [13:02:51]Write to MH i2c: E2 0D 00 91 82 80 0D 02 02 05 00 64 0D 5F FE 2F 00 00 94 [13:02:51]Write i2c OK [13:02:51]MH_I2C_Read... [13:02:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:51]Read from MH i2c: E2 [13:02:51]MH_I2C_Read... [13:02:51]Read from MH i2c: E2 03 00 [13:02:51]MH_I2C_Read... [13:02:51]Read from MH i2c: E2 03 00 91 82 00 90 00 87 [13:02:51]RAPDU: 90 00 [13:02:51]wFMCommunicate OK [13:02:51]wFMCommunicate request_size=4 [13:02:51]MH_SAM_APDU [13:02:51]CAPDU: 80 0D 03 02 [13:02:51]Write to MH i2c: E2 08 00 92 82 80 0D 03 02 00 00 00 00 8F [13:02:51]Write i2c OK [13:02:51]MH_I2C_Read... [13:02:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:51]Read from MH i2c: E2 [13:02:51]MH_I2C_Read... [13:02:51]Read from MH i2c: E2 0B 00 [13:02:51]MH_I2C_Read... [13:02:51]Read from MH i2c: E2 0B 00 92 82 00 38 DE 12 17 E8 80 A4 D3 90 00 AE [13:02:51]RAPDU: 38 DE 12 17 E8 80 A4 D3 90 00 [13:02:51]wFMCommunicate OK [13:02:51]SAM_PROTO_SignData done [13:02:51]FM_MakeSignedData done [13:02:51]CreateOFDProtocolMessage [13:02:51]wFMCommunicate request_size=4 [13:02:51]MH_SAM_APDU [13:02:51]CAPDU: 80 11 00 00 [13:02:51]Write to MH i2c: E2 08 00 93 82 80 11 00 00 00 00 00 00 8F [13:02:51]Write i2c OK [13:02:51]MH_I2C_Read... [13:02:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:51]Read from MH i2c: E2 [13:02:51]MH_I2C_Read... [13:02:51]Read from MH i2c: E2 17 00 [13:02:51]MH_I2C_Read... [13:02:51]Read from MH i2c: E2 17 00 93 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 DC [13:02:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:02:51]wFMCommunicate OK [13:02:51]CreateOFDProtocolMessage done [13:02:51]OFDSenderStorePacket 260688 [13:02:51]StoreOFDPacket docnum=260688 [13:02:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 FB 36 07 01 7E 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 F6 00 00 00 F4 03 04 00 FE F0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 50 FA 03 00 35 04 06 00 56 64 0D 5F FE 2F 38 DE 12 17 E8 80 A4 D3 [13:02:51]CheckFolder [13:02:51]dirname=/storage/ofd_packets [13:02:51]CheckFolder done [13:02:51]ProducePacketName [13:02:51]name=ofd_packets/00260688 [13:02:51]NVStorageSaveData ofd_packets/00260688 [13:02:51]File name is /storage/ofd_packets/00260688 [13:02:51]Write 301 bytes [13:02:51]NVStorageSaveData done [13:02:51]OFDSenderStorePacket done [13:02:51]KKMCreateOFDPacket done [13:02:51]NVStorageSaveData kkm_last_timestamp [13:02:51]File name is /storage/kkm_last_timestamp [13:02:51]Write 4 bytes [13:02:51]NVStorageSaveData done [13:02:51]ExternCall_PrintAddStr [13:02:51]wPrintStart [13:02:51]Write to MH i2c: 01 00 00 94 82 16 [13:02:51]Write i2c OK [13:02:51]MH_I2C_Read... [13:02:51]Read from MH i2c: 01 [13:02:51]MH_I2C_Read... [13:02:51]Read from MH i2c: 01 07 00 [13:02:51]MH_I2C_Read... [13:02:51]Read from MH i2c: 01 07 00 94 82 00 00 00 00 00 FF 0F 2B [13:02:51]RasterBufferAndPrint [13:02:51]line Счет N : (1)1036236 [13:02:51]line ИНН: 02508201610067 [13:02:51]line Контрольно-Кассовый Чек [13:02:51]line ПРОДАЖА [13:02:51]line ТРК (МРК, ГНК) : 32 [13:02:51]line Товар: 2710124130 [13:02:51]line Аи-92-К-5 [13:02:51]line 10.330 * 67.80 [13:02:51]line = 700.37 [13:02:51]line НДС 12% НСП 1% [13:02:51]line > о реализуемом товаре [13:02:51]line ОКРУГЛЕНИЕ: -0.37 [13:02:51]line ИТОГО: 700.00 [13:02:51]line Внесено: 700.00 [13:02:51]line СДАЧА: 0.00 [13:02:51]line НСП 1% : 6.20 [13:02:51]line НДС 12% : 74.38 [13:02:51]line Наличными: 700.00 [13:02:51]line Безнал.: 0.00 [13:02:51]line Место: АЗС № 94 "Партнер Нефть" [13:02:51]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [13:02:51]line СНО: Общий режим [13:02:51]line Чек 246 18.08.2024 13:02 [13:02:51]line Смена: 449 ФФД: 1.0 [13:02:51]line ЗНМ: 0300000099 [13:02:51]line РНМ: 0000000000091865 [13:02:51]line Версия ККМ: 001 [13:02:51]line ФМ: 0000000000871820 [13:02:51]line ФД: 260688 [13:02:51]line ФПД: 94987721113135 [13:02:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T130254&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260688&fm=94987721113135&tin=02508201610067®Number=0000000000091865&sum=70000 [13:02:51]written 0, free lines is 4095 [13:02:51]OFD Sender: Processing packet 260688 [packets to send 192, broken 191] [13:02:51]ProducePacketName [13:02:51]name=ofd_packets/00260688 [13:02:51]OFD Sender: To server: pG, [13:02:51]CommunicateWithHost lk.salyk.kg:30040 [13:02:51]ConnectInit lk.salyk.kg [13:02:51]Connected sock=10 [13:02: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 30 0F 01 00 00 FB 36 07 01 7E 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 F6 00 00 00 F4 03 04 00 FE F0 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 50 FA 03 00 35 04 06 00 56 64 0D 5F FE 2F 38 DE 12 17 E8 80 A4 D3 [13:02: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 30 4F 00 00 00 23 5F 47 00 90 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 30 10 04 04 00 50 FA 03 00 F4 03 04 00 53 9A C1 66 B6 04 01 00 00 13 E5 F8 A6 CF 6D 26 9F [13:02:52]CommunicateWithHost err = 0 [13:02:52]CheckOFDResponse [13:02:52]1017 (14) - 77093643461234 [13:02:52]1041 (16) - 0000000000871820 [13:02:52]1040 (4) - 260688 [13:02:52]1012 (4) - 18.08.2024 06:53 [13:02:52]1206 (1) - 0 [13:02:52]OFD Sender: Remove packet 260688 [13:02:52]ProducePacketName [13:02:52]name=ofd_packets/00260688 [13:02:52]NVStorageDeleteData [13:02:52]Write to MH i2c: 01 00 00 BF 82 41 [13:02:52]Write i2c OK [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: 01 [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: 01 07 00 [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: 01 07 00 BF 82 00 00 00 00 00 77 0C CB [13:02:52]RasterBufferAndPrint [13:02:52]line [13:02:52]line [13:02:52]line [13:02:52]line [13:02:52]line [13:02:52]written 0, free lines is 3195 [13:02:52]MH_Cut [13:02:52]Write to MH i2c: D1 01 00 C6 82 01 1A [13:02:52]Write i2c OK [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: D1 [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: D1 01 00 [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: D1 01 00 C6 82 00 19 [13:02:52]Write to MH i2c: 01 00 00 C7 82 49 [13:02:52]Write i2c OK [13:02:52]MH_I2C_Read... [13:02:52]OFD Sender: No OFD packet to send [13:02:53]*** Cut start [13:02:53]*** Purtial cut [13:02:53]*** Stage 1: CUTSNS_PIN = 1 [13:02:55]Read from MH i2c: 01 [13:02:55]MH_I2C_Read... [13:02:55]*** Stop cut motor [13:02:55]*** Cut end [13:02:55]Read from MH i2c: 01 07 00 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: 01 07 00 C7 82 00 00 00 00 00 FF 0F 5E [13:02:55]process_action close_receipt done [13:02:55]requested_data is exist [13:02:55]produce_requested_data [13:02:55]requested_item fm.sn is exist - process it [13:02:55]wFMCommunicate request_size=4 [13:02:55]MH_SAM_APDU [13:02:55]CAPDU: 80 11 00 00 [13:02:55]Write to MH i2c: E2 08 00 C8 82 80 11 00 00 00 00 00 00 C4 [13:02:55]Write i2c OK [13:02:55]MH_I2C_Read... [13:02:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:55]Read from MH i2c: E2 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 17 00 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 17 00 C8 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 11 [13:02:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:02:55]wFMCommunicate OK [13:02:55]requested_item fd.num is exist - process it [13:02:55]SAM_PROTO_GetFieldsCounters [13:02:55]wFMCommunicate request_size=4 [13:02:55]MH_SAM_APDU [13:02:55]CAPDU: 80 13 00 00 [13:02:55]Write to MH i2c: E2 08 00 C9 82 80 13 00 00 00 00 00 00 C7 [13:02:55]Write i2c OK [13:02:55]MH_I2C_Read... [13:02:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:55]Read from MH i2c: E2 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 62 00 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 62 00 C9 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 50 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [13:02: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 50 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:02:55]wFMCommunicate OK [13:02:55]SAM_PROTO_GetFieldsCounters done [13:02:55]requested_item shift.num is exist - process it [13:02:55]requested_item shift.opened is exist - process it [13:02:55]req_shift_opened [13:02:55]FM_GetShiftState [13:02:55]SAM_PROTO_GetShiftState [13:02:55]wFMCommunicate request_size=4 [13:02:55]MH_SAM_APDU [13:02:55]CAPDU: 80 13 01 00 [13:02:55]Write to MH i2c: E2 08 00 CA 82 80 13 01 00 00 00 00 00 C9 [13:02:55]Write i2c OK [13:02:55]MH_I2C_Read... [13:02:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:55]Read from MH i2c: E2 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 0E 00 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 0E 00 CA 82 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 06 [13:02:55]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:02:55]wFMCommunicate OK [13:02:55]SAM_PROTO_GetShiftState done [13:02:55]FM_GetShiftState done [13:02:55]req_shift_opened done [13:02:55]requested_item shift.open_date is exist - process it [13:02:55]req_shift_open_date [13:02:55]req_shift_open_date done [13:02:55]produce_requested_data done [13:02:55]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260688,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [13:02:55]process_action_free close_receipt [13:02:55]json_value_free [13:02:55]json_value_free done [13:02:55]process_json_proto returns [13:02:55]Send response to host [13:02:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260688,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [13:02:55]free response buf [13:02:55]execute_script done [13:02:55]execute_script returns [13:02:55]free content buf [13:02:55]Sock 7.Close socket [13:02:55]Sock 7.Thread stoped [13:02:57]OFD Sender: No OFD packet to send [13:03:02]OFD Sender: No OFD packet to send [13:03:07]OFD Sender: No OFD packet to send [13:03:12]OFD Sender: No OFD packet to send [13:03:17]OFD Sender: No OFD packet to send [13:03:22]OFD Sender: No OFD packet to send [13:03:27]OFD Sender: No OFD packet to send [13:03:32]OFD Sender: No OFD packet to send [13:03:37]OFD Sender: No OFD packet to send [13:03:42]OFD Sender: No OFD packet to send [13:03:47]OFD Sender: No OFD packet to send [13:03:52]OFD Sender: No OFD packet to send [13:03:57]OFD Sender: No OFD packet to send [13:04:02]OFD Sender: No OFD packet to send [13:04:07]OFD Sender: No OFD packet to send [13:04:12]OFD Sender: No OFD packet to send [13:04:17]OFD Sender: No OFD packet to send [13:04:22]OFD Sender: No OFD packet to send [13:04:27]OFD Sender: No OFD packet to send [13:04:32]OFD Sender: No OFD packet to send [13:04:37]OFD Sender: No OFD packet to send [13:04:42]OFD Sender: No OFD packet to send [13:04:47]OFD Sender: No OFD packet to send [13:04:52]OFD Sender: No OFD packet to send [13:04:57]OFD Sender: No OFD packet to send [13:05:02]OFD Sender: No OFD packet to send [13:05:07]OFD Sender: No OFD packet to send [13:05:12]OFD Sender: No OFD packet to send [13:05:17]OFD Sender: No OFD packet to send [13:05:22]OFD Sender: No OFD packet to send [13:05:27]OFD Sender: No OFD packet to send [13:05:32]OFD Sender: No OFD packet to send [13:05:37]OFD Sender: No OFD packet to send [13:05:42]OFD Sender: No OFD packet to send [13:05:47]OFD Sender: No OFD packet to send [13:05:52]OFD Sender: No OFD packet to send [13:05:57]OFD Sender: No OFD packet to send [13:06:02]OFD Sender: No OFD packet to send [13:06:07]OFD Sender: No OFD packet to send [13:06:12]OFD Sender: No OFD packet to send [13:06:17]OFD Sender: No OFD packet to send [13:06:22]OFD Sender: No OFD packet to send [13:06:27]OFD Sender: No OFD packet to send [13:06:32]OFD Sender: No OFD packet to send [13:06:38]OFD Sender: No OFD packet to send [13:06:43]OFD Sender: No OFD packet to send [13:06:48]OFD Sender: No OFD packet to send [13:06:53]OFD Sender: No OFD packet to send [13:06:58]OFD Sender: No OFD packet to send [13:07:03]OFD Sender: No OFD packet to send [13:07:08]OFD Sender: No OFD packet to send [13:07:13]OFD Sender: No OFD packet to send [13:07:18]OFD Sender: No OFD packet to send [13:07:23]OFD Sender: No OFD packet to send [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:43]OFD Sender: No OFD packet to send [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:58]OFD Sender: No OFD packet to send [13:08:03]OFD Sender: No OFD packet to send [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:05]accept exits with 9 [13:13:05]New connection [13:13:05]New thread 3066617188 created [13:13:05]Thread 3066473828 joined [13:13:05]Waiting for new connection... [13:13:05] Sock 9.Parse request [13:13:05]Sock 9.Check first char [13:13:05]Sock 9.First char is OK [13:13:05]request: POST /json_proto HTTP/1.0 [13:13:05]Method: POST [13:13:05]URL: /json_proto [13:13:05]Method is POST - this is cgi request [13:13:05]url: /json_proto [13:13:05]query_string will be loaded in cgi processing [13:13:05]execute_cgi json_proto POST (null) [13:13:05]execute_cgi path=json_proto method=POST [13:13:05]POST find Content-Length [13:13:05]Host: 172.17.55.133:8080 [13:13:05]Content-Length: 760 [13:13:05]Content-Type: application/json [13:13:05] [13:13:05]POST finish read [13:13:05]Found Content-Length = 760 [13:13:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 0.00, "quantity" : 50.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\u000A30054185", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:05]execute_script... [13:13: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)1036237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 0.00, "quantity" : 50.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\u000A30054185", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:05]POST & json_proto [13:13:05]process_json_proto [13:13:05]json parsed OK: [13:13:05]protocol is kg_v1.0 [13:13:05]action value=close_receipt [13:13:05]process_action close_receipt [13:13:05]cmd_close_receipt [13:13:05]MH_GetDate [13:13:05]Write to MH i2c: F0 00 00 CB 82 3C [13:13:05]Write i2c OK [13:13:05]MH_I2C_Read... [13:13:05]Read from MH i2c: F0 [13:13:05]MH_I2C_Read... [13:13:05]Read from MH i2c: F0 09 00 [13:13:05]MH_I2C_Read... [13:13:05]Read from MH i2c: F0 09 00 CB 82 00 66 F3 C1 66 34 48 D8 65 7E [13:13:05]GetLastDocTimeStamp 1723986174 [13:13:05]current date 1723986790 [13:13:05]FM_GetShiftState [13:13:05]SAM_PROTO_GetShiftState [13:13:05]wFMCommunicate request_size=4 [13:13:05]MH_SAM_APDU [13:13:05]CAPDU: 80 13 01 00 [13:13:05]Write to MH i2c: E2 08 00 CC 82 80 13 01 00 00 00 00 00 CB [13:13:05]Write i2c OK [13:13:05]MH_I2C_Read... [13:13:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:05]Read from MH i2c: E2 [13:13:05]MH_I2C_Read... [13:13:05]Read from MH i2c: E2 0E 00 [13:13:05]MH_I2C_Read... [13:13:05]Read from MH i2c: E2 0E 00 CC 82 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 08 [13:13:05]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:13:05]wFMCommunicate OK [13:13:05]SAM_PROTO_GetShiftState done [13:13:05]FM_GetShiftState done [13:13:05]opened in 1723940556 [13:13:05]opened+sec_in_day 1724026956 [13:13:05]quantity*price = 0 [13:13:05]sum+1 = 1 [13:13:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 247 18.08.2024 13:13 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: ТК ГПНА Online 30054185 ФМ: 0000000000871820 ФД: 260689 ФПД: 112709420336960 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T131310&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260689&fm=112709420336960&tin=02508201610067®Number=0000000000091865&sum=0 [13:13:06]StoreToDocumentArchive [13:13:06]shift 449 fd 260689 [13:13:06]save to /storage/0449/doc_00260689 [13:13:06]save last doc name /storage/0449/doc_00260689 to /storage/kkm_last_doc_name [13:13:06]save OK [13:13:06]Clear old archive folders... [13:13:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:13:06]tlvbuf is 003E2720 [13:13:06]SAM_PROTO_ClearQueue [13:13:06]wFMCommunicate request_size=4 [13:13:06]MH_SAM_APDU [13:13:06]CAPDU: 80 09 00 00 [13:13:06]Write to MH i2c: E2 08 00 D9 82 80 09 00 00 00 00 00 00 CD [13:13:06]Write i2c OK [13:13:06]MH_I2C_Read... [13:13:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:06]Read from MH i2c: E2 [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: E2 03 00 [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: E2 03 00 D9 82 00 90 00 CF [13:13:06]RAPDU: 90 00 [13:13:06]wFMCommunicate OK [13:13:06]SAM_PROTO_ClearQueue done [13:13:06]KKMCreateOFDPacket [13:13:06]OFDProtocolAddRootSTLVToBuf [13:13:06]FM_MakeSignedData [13:13:06]FM_MakeSignedData [13:13:06]SAM_PROTO_SignData [13:13:06]wFMCommunicate request_size=4 [13:13:06]MH_SAM_APDU [13:13:06]CAPDU: 80 0D 01 02 [13:13:06]Write to MH i2c: E2 08 00 DA 82 80 0D 01 02 00 00 00 00 D5 [13:13:06]Write i2c OK [13:13:06]MH_I2C_Read... [13:13:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:06]Read from MH i2c: E2 [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: E2 03 00 [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: E2 03 00 DA 82 00 90 00 D0 [13:13:06]RAPDU: 90 00 [13:13:06]wFMCommunicate OK [13:13:06]wFMCommunicate request_size=255 [13:13:06]MH_SAM_APDU [13:13:06]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 50 C3 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 F7 00 00 00 F4 03 04 00 66 F3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 51 FA 03 00 35 04 06 00 [13:13:06]Write to MH i2c: E2 02 01 DB 82 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 50 C3 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 F7 00 00 00 F4 03 04 00 66 F3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 51 FA 03 00 35 04 06 00 00 00 B1 [13:13:06]Write i2c OK [13:13:06]MH_I2C_Read... [13:13:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:06]Read from MH i2c: E2 [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: E2 03 00 [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: E2 03 00 DB 82 00 90 00 D1 [13:13:06]RAPDU: 90 00 [13:13:06]wFMCommunicate OK [13:13:06]wFMCommunicate request_size=11 [13:13:06]MH_SAM_APDU [13:13:06]CAPDU: 80 0D 02 02 06 66 82 34 F6 47 40 [13:13:06]Write to MH i2c: E2 0E 00 DC 82 80 0D 02 02 06 00 66 82 34 F6 47 40 00 00 7D [13:13:06]Write i2c OK [13:13:06]MH_I2C_Read... [13:13:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:06]Read from MH i2c: E2 [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: E2 03 00 [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: E2 03 00 DC 82 00 90 00 D2 [13:13:06]RAPDU: 90 00 [13:13:06]wFMCommunicate OK [13:13:06]wFMCommunicate request_size=4 [13:13:06]MH_SAM_APDU [13:13:06]CAPDU: 80 0D 03 02 [13:13:06]Write to MH i2c: E2 08 00 DD 82 80 0D 03 02 00 00 00 00 DA [13:13:06]Write i2c OK [13:13:06]MH_I2C_Read... [13:13:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:06]Read from MH i2c: E2 [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: E2 0B 00 [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: E2 0B 00 DD 82 00 0F AF 86 71 02 A1 59 49 90 00 D5 [13:13:06]RAPDU: 0F AF 86 71 02 A1 59 49 90 00 [13:13:06]wFMCommunicate OK [13:13:06]SAM_PROTO_SignData done [13:13:06]FM_MakeSignedData done [13:13:06]CreateOFDProtocolMessage [13:13:06]wFMCommunicate request_size=4 [13:13:06]MH_SAM_APDU [13:13:06]CAPDU: 80 11 00 00 [13:13:06]Write to MH i2c: E2 08 00 DE 82 80 11 00 00 00 00 00 00 DA [13:13:06]Write i2c OK [13:13:06]MH_I2C_Read... [13:13:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:06]Read from MH i2c: E2 [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: E2 17 00 [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: E2 17 00 DE 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 27 [13:13:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:13:06]wFMCommunicate OK [13:13:06]CreateOFDProtocolMessage done [13:13:06]OFDSenderStorePacket 260689 [13:13:06]StoreOFDPacket docnum=260689 [13:13:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 AC 5F 08 01 68 37 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 50 C3 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 F7 00 00 00 F4 03 04 00 66 F3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 51 FA 03 00 35 04 06 00 66 82 34 F6 47 40 0F AF 86 71 02 A1 59 49 [13:13:06]CheckFolder [13:13:06]dirname=/storage/ofd_packets [13:13:06]CheckFolder done [13:13:06]ProducePacketName [13:13:06]name=ofd_packets/00260689 [13:13:06]NVStorageSaveData ofd_packets/00260689 [13:13:06]File name is /storage/ofd_packets/00260689 [13:13:06]Write 302 bytes [13:13:06]NVStorageSaveData done [13:13:06]OFDSenderStorePacket done [13:13:06]KKMCreateOFDPacket done [13:13:06]NVStorageSaveData kkm_last_timestamp [13:13:06]File name is /storage/kkm_last_timestamp [13:13:06]Write 4 bytes [13:13:06]NVStorageSaveData done [13:13:06]ExternCall_PrintAddStr [13:13:06]wPrintStart [13:13:06]Write to MH i2c: 01 00 00 DF 82 61 [13:13:06]Write i2c OK [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: 01 [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: 01 07 00 [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: 01 07 00 DF 82 00 00 00 00 00 FF 0F 76 [13:13:06]RasterBufferAndPrint [13:13:06]line Счет N : (1)1036237 [13:13:06]line ИНН: 02508201610067 [13:13:06]line Контрольно-Кассовый Чек [13:13:06]line ПРОДАЖА [13:13:06]line ТРК (МРК, ГНК) : 43 [13:13:06]line Товар: 2710194210 [13:13:06]line ДТ(л)-К-4 [13:13:06]line 50.000 * 0.00 [13:13:06]line = 0.00 [13:13:06]line НДС 12% НСП 1% [13:13:06]line > о реализуемом товаре [13:13:06]line ИТОГО: 0.00 [13:13:06]line НСП 1% : 0.00 [13:13:06]line НДС 12% : 0.00 [13:13:06]line Наличными: 0.00 [13:13:06]line Безнал.: 0.00 [13:13:06]line Место: АЗС № 94 "Партнер Нефть" [13:13:06]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [13:13:06]line СНО: Общий режим [13:13:06]line Чек 247 18.08.2024 13:13 [13:13:06]line Смена: 449 ФФД: 1.0 [13:13:06]line ЗНМ: 0300000099 [13:13:06]line РНМ: 0000000000091865 [13:13:06]line Версия ККМ: 001 [13:13:06]line Талоны: ТК ГПНА Online [13:13:06]line 30054185 [13:13:06]line ФМ: 0000000000871820 [13:13:06]line ФД: 260689 [13:13:06]line ФПД: 112709420336960 [13:13:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T131310&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260689&fm=112709420336960&tin=02508201610067®Number=0000000000091865&sum=0 [13:13:06]written 0, free lines is 4095 [13:13:07]OFD Sender: Processing packet 260689 [packets to send 192, broken 191] [13:13:07]ProducePacketName [13:13:07]name=ofd_packets/00260689 [13:13:07]OFD Sender: To server: pG, [13:13:07]CommunicateWithHost lk.salyk.kg:30040 [13:13:07]ConnectInit lk.salyk.kg [13:13:07]Connected sock=10 [13:13: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 30 10 01 00 00 AC 5F 08 01 68 37 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 50 C3 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 F7 00 00 00 F4 03 04 00 66 F3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 51 FA 03 00 35 04 06 00 66 82 34 F6 47 40 0F AF 86 71 02 A1 59 49 [13:13: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 30 4F 00 00 00 3E 7D 47 00 1F 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 30 10 04 04 00 51 FA 03 00 F4 03 04 00 BA 9C C1 66 B6 04 01 00 00 A1 91 65 4A 51 1D 82 EF [13:13:07]CommunicateWithHost err = 0 [13:13:07]CheckOFDResponse [13:13:07]1017 (14) - 77093643461234 [13:13:07]1041 (16) - 0000000000871820 [13:13:07]1040 (4) - 260689 [13:13:07]1012 (4) - 18.08.2024 07:03 [13:13:07]1206 (1) - 0 [13:13:07]OFD Sender: Remove packet 260689 [13:13:07]ProducePacketName [13:13:07]name=ofd_packets/00260689 [13:13:07]NVStorageDeleteData [13:13:07]Write to MH i2c: 01 00 00 09 83 8C [13:13:07]Write i2c OK [13:13:07]MH_I2C_Read... [13:13:07]Read from MH i2c: 01 [13:13:07]MH_I2C_Read... [13:13:07]Read from MH i2c: 01 07 00 [13:13:07]MH_I2C_Read... [13:13:07]Read from MH i2c: 01 07 00 09 83 00 00 00 00 00 93 0C 32 [13:13:07]RasterBufferAndPrint [13:13:07]line [13:13:07]line [13:13:07]line [13:13:07]line [13:13:07]line [13:13:07]written 0, free lines is 3224 [13:13:07]MH_Cut [13:13:07]Write to MH i2c: D1 01 00 10 83 01 65 [13:13:07]Write i2c OK [13:13:07]MH_I2C_Read... [13:13:07]Read from MH i2c: D1 [13:13:07]MH_I2C_Read... [13:13:07]Read from MH i2c: D1 01 00 [13:13:07]MH_I2C_Read... [13:13:07]Read from MH i2c: D1 01 00 10 83 00 64 [13:13:07]Write to MH i2c: 01 00 00 11 83 94 [13:13:07]Write i2c OK [13:13:07]MH_I2C_Read... [13:13:07]OFD Sender: No OFD packet to send [13:13:08]*** Cut start [13:13:08]*** Purtial cut [13:13:08]*** Stage 1: CUTSNS_PIN = 1 [13:13:10]Read from MH i2c: 01 [13:13:10]MH_I2C_Read... [13:13:10]*** Stop cut motor [13:13:10]*** Cut end [13:13:10]Read from MH i2c: 01 07 00 [13:13:10]MH_I2C_Read... [13:13:10]Read from MH i2c: 01 07 00 11 83 00 00 00 00 00 FF 0F A9 [13:13:10]process_action close_receipt done [13:13:10]requested_data is exist [13:13:10]produce_requested_data [13:13:10]requested_item fm.sn is exist - process it [13:13:10]wFMCommunicate request_size=4 [13:13:10]MH_SAM_APDU [13:13:10]CAPDU: 80 11 00 00 [13:13:10]Write to MH i2c: E2 08 00 12 83 80 11 00 00 00 00 00 00 0F [13:13:10]Write i2c OK [13:13:10]MH_I2C_Read... [13:13:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:10]Read from MH i2c: E2 [13:13:10]MH_I2C_Read... [13:13:10]Read from MH i2c: E2 17 00 [13:13:10]MH_I2C_Read... [13:13:10]Read from MH i2c: E2 17 00 12 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 5C [13:13:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:13:10]wFMCommunicate OK [13:13:10]requested_item fd.num is exist - process it [13:13:10]SAM_PROTO_GetFieldsCounters [13:13:10]wFMCommunicate request_size=4 [13:13:10]MH_SAM_APDU [13:13:10]CAPDU: 80 13 00 00 [13:13:10]Write to MH i2c: E2 08 00 13 83 80 13 00 00 00 00 00 00 12 [13:13:10]Write i2c OK [13:13:10]MH_I2C_Read... [13:13:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:10]Read from MH i2c: E2 [13:13:10]MH_I2C_Read... [13:13:10]Read from MH i2c: E2 62 00 [13:13:10]MH_I2C_Read... [13:13:10]Read from MH i2c: E2 62 00 13 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 51 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [13:13: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 51 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:13:10]wFMCommunicate OK [13:13:10]SAM_PROTO_GetFieldsCounters done [13:13:10]requested_item shift.num is exist - process it [13:13:10]requested_item shift.opened is exist - process it [13:13:10]req_shift_opened [13:13:10]FM_GetShiftState [13:13:10]SAM_PROTO_GetShiftState [13:13:10]wFMCommunicate request_size=4 [13:13:10]MH_SAM_APDU [13:13:10]CAPDU: 80 13 01 00 [13:13:10]Write to MH i2c: E2 08 00 14 83 80 13 01 00 00 00 00 00 14 [13:13:10]Write i2c OK [13:13:10]MH_I2C_Read... [13:13:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:10]Read from MH i2c: E2 [13:13:10]MH_I2C_Read... [13:13:10]Read from MH i2c: E2 0E 00 [13:13:10]MH_I2C_Read... [13:13:10]Read from MH i2c: E2 0E 00 14 83 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 51 [13:13:10]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:13:10]wFMCommunicate OK [13:13:10]SAM_PROTO_GetShiftState done [13:13:10]FM_GetShiftState done [13:13:10]req_shift_opened done [13:13:10]requested_item shift.open_date is exist - process it [13:13:10]req_shift_open_date [13:13:10]req_shift_open_date done [13:13:10]produce_requested_data done [13:13:10]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260689,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [13:13:10]process_action_free close_receipt [13:13:10]json_value_free [13:13:10]json_value_free done [13:13:10]process_json_proto returns [13:13:10]Send response to host [13:13:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260689,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [13:13:10]free response buf [13:13:10]execute_script done [13:13:10]execute_script returns [13:13:10]free content buf [13:13:10]Sock 9.Close socket [13:13:10]Sock 9.Thread stoped [13:13:12]OFD Sender: No OFD packet to send [13:13:17]OFD Sender: No OFD packet to send [13:13:22]OFD Sender: No OFD packet to send [13:13:23]accept exits with 7 [13:13:23]New connection [13:13:23]New thread 3066473828 created [13:13:23]Thread 3066617188 joined [13:13:23]Waiting for new connection... [13:13:23] Sock 7.Parse request [13:13:23]Sock 7.Check first char [13:13:23]Sock 7.First char is OK [13:13:23]request: POST /json_proto HTTP/1.0 [13:13:23]Method: POST [13:13:23]URL: /json_proto [13:13:23]Method is POST - this is cgi request [13:13:23]url: /json_proto [13:13:23]query_string will be loaded in cgi processing [13:13:23]execute_cgi json_proto POST (null) [13:13:23]execute_cgi path=json_proto method=POST [13:13:23]POST find Content-Length [13:13:23]Host: 172.17.55.133:8080 [13:13:23]Content-Length: 683 [13:13:23]Content-Type: application/json [13:13:23] [13:13:23]POST finish read [13:13:23]Found Content-Length = 683 [13:13:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "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:13:23]execute_script... [13:13: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)1036238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "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:13:23]POST & json_proto [13:13:23]process_json_proto [13:13:23]json parsed OK: [13:13:23]protocol is kg_v1.0 [13:13:23]action value=close_receipt [13:13:23]process_action close_receipt [13:13:23]cmd_close_receipt [13:13:23]MH_GetDate [13:13:23]Write to MH i2c: F0 00 00 15 83 87 [13:13:23]Write i2c OK [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: F0 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: F0 09 00 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: F0 09 00 15 83 00 78 F3 C1 66 34 48 D8 65 DB [13:13:23]GetLastDocTimeStamp 1723986790 [13:13:23]current date 1723986808 [13:13:23]FM_GetShiftState [13:13:23]SAM_PROTO_GetShiftState [13:13:23]wFMCommunicate request_size=4 [13:13:23]MH_SAM_APDU [13:13:23]CAPDU: 80 13 01 00 [13:13:23]Write to MH i2c: E2 08 00 16 83 80 13 01 00 00 00 00 00 16 [13:13:23]Write i2c OK [13:13:23]MH_I2C_Read... [13:13:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:23]Read from MH i2c: E2 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: E2 0E 00 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: E2 0E 00 16 83 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 53 [13:13:23]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:13:23]wFMCommunicate OK [13:13:23]SAM_PROTO_GetShiftState done [13:13:23]FM_GetShiftState done [13:13:23]opened in 1723940556 [13:13:23]opened+sec_in_day 1724026956 [13:13:23]quantity*price = 70027 [13:13:23]sum+1 = 70029 [13:13:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 248 18.08.2024 13:13 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260690 ФПД: 237366922400298 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T131328&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260690&fm=237366922400298&tin=02508201610067®Number=0000000000091865&sum=70000 [13:13:24]StoreToDocumentArchive [13:13:24]shift 449 fd 260690 [13:13:24]save to /storage/0449/doc_00260690 [13:13:24]save last doc name /storage/0449/doc_00260690 to /storage/kkm_last_doc_name [13:13:24]save OK [13:13:24]Clear old archive folders... [13:13:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:13:24]tlvbuf is 004A2390 [13:13:24]SAM_PROTO_ClearQueue [13:13:24]wFMCommunicate request_size=4 [13:13:24]MH_SAM_APDU [13:13:24]CAPDU: 80 09 00 00 [13:13:24]Write to MH i2c: E2 08 00 23 83 80 09 00 00 00 00 00 00 18 [13:13:24]Write i2c OK [13:13:24]MH_I2C_Read... [13:13:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:24]Read from MH i2c: E2 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 03 00 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 03 00 23 83 00 90 00 1A [13:13:24]RAPDU: 90 00 [13:13:24]wFMCommunicate OK [13:13:24]SAM_PROTO_ClearQueue done [13:13:24]KKMCreateOFDPacket [13:13:24]OFDProtocolAddRootSTLVToBuf [13:13:24]FM_MakeSignedData [13:13:24]FM_MakeSignedData [13:13:24]SAM_PROTO_SignData [13:13:24]wFMCommunicate request_size=4 [13:13:24]MH_SAM_APDU [13:13:24]CAPDU: 80 0D 01 02 [13:13:24]Write to MH i2c: E2 08 00 24 83 80 0D 01 02 00 00 00 00 20 [13:13:24]Write i2c OK [13:13:24]MH_I2C_Read... [13:13:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:24]Read from MH i2c: E2 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 03 00 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 03 00 24 83 00 90 00 1B [13:13:24]RAPDU: 90 00 [13:13:24]wFMCommunicate OK [13:13:24]wFMCommunicate request_size=255 [13:13:24]MH_SAM_APDU [13:13:24]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 0D 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 F8 00 00 00 F4 03 04 00 78 F3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 52 FA 03 00 35 04 06 00 [13:13:24]Write to MH i2c: E2 02 01 25 83 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 0D 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 F8 00 00 00 F4 03 04 00 78 F3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 52 FA 03 00 35 04 06 00 00 00 21 [13:13:24]Write i2c OK [13:13:24]MH_I2C_Read... [13:13:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:24]Read from MH i2c: E2 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 03 00 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 03 00 25 83 00 90 00 1C [13:13:24]RAPDU: 90 00 [13:13:24]wFMCommunicate OK [13:13:24]wFMCommunicate request_size=11 [13:13:24]MH_SAM_APDU [13:13:24]CAPDU: 80 0D 02 02 06 D7 E2 4B 17 52 2A [13:13:24]Write to MH i2c: E2 0E 00 26 83 80 0D 02 02 06 00 D7 E2 4B 17 52 2A 00 00 C6 [13:13:24]Write i2c OK [13:13:24]MH_I2C_Read... [13:13:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:24]Read from MH i2c: E2 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 03 00 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 03 00 26 83 00 90 00 1D [13:13:24]RAPDU: 90 00 [13:13:24]wFMCommunicate OK [13:13:24]wFMCommunicate request_size=4 [13:13:24]MH_SAM_APDU [13:13:24]CAPDU: 80 0D 03 02 [13:13:24]Write to MH i2c: E2 08 00 27 83 80 0D 03 02 00 00 00 00 25 [13:13:24]Write i2c OK [13:13:24]MH_I2C_Read... [13:13:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:24]Read from MH i2c: E2 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 0B 00 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 0B 00 27 83 00 12 4D 04 F1 D6 A1 DE AE 90 00 7D [13:13:24]RAPDU: 12 4D 04 F1 D6 A1 DE AE 90 00 [13:13:24]wFMCommunicate OK [13:13:24]SAM_PROTO_SignData done [13:13:24]FM_MakeSignedData done [13:13:24]CreateOFDProtocolMessage [13:13:24]wFMCommunicate request_size=4 [13:13:24]MH_SAM_APDU [13:13:24]CAPDU: 80 11 00 00 [13:13:24]Write to MH i2c: E2 08 00 28 83 80 11 00 00 00 00 00 00 25 [13:13:24]Write i2c OK [13:13:24]MH_I2C_Read... [13:13:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:25]Read from MH i2c: E2 [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: E2 17 00 [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: E2 17 00 28 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 72 [13:13:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:13:25]wFMCommunicate OK [13:13:25]CreateOFDProtocolMessage done [13:13:25]OFDSenderStorePacket 260690 [13:13:25]StoreOFDPacket docnum=260690 [13:13:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 47 B4 08 01 C0 F6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 0D 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 F8 00 00 00 F4 03 04 00 78 F3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 52 FA 03 00 35 04 06 00 D7 E2 4B 17 52 2A 12 4D 04 F1 D6 A1 DE AE [13:13:25]CheckFolder [13:13:25]dirname=/storage/ofd_packets [13:13:25]CheckFolder done [13:13:25]ProducePacketName [13:13:25]name=ofd_packets/00260690 [13:13:25]NVStorageSaveData ofd_packets/00260690 [13:13:25]File name is /storage/ofd_packets/00260690 [13:13:25]Write 302 bytes [13:13:25]NVStorageSaveData done [13:13:25]OFDSenderStorePacket done [13:13:25]KKMCreateOFDPacket done [13:13:25]NVStorageSaveData kkm_last_timestamp [13:13:25]File name is /storage/kkm_last_timestamp [13:13:25]Write 4 bytes [13:13:25]NVStorageSaveData done [13:13:25]ExternCall_PrintAddStr [13:13:25]wPrintStart [13:13:25]Write to MH i2c: 01 00 00 29 83 AC [13:13:25]Write i2c OK [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: 01 [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: 01 07 00 [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: 01 07 00 29 83 00 00 00 00 00 FF 0F C1 [13:13:25]RasterBufferAndPrint [13:13:25]line Счет N : (1)1036238 [13:13:25]line ИНН: 02508201610067 [13:13:25]line Контрольно-Кассовый Чек [13:13:25]line ПРОДАЖА [13:13:25]line ТРК (МРК, ГНК) : 33 [13:13:25]line Товар: 2710194210 [13:13:25]line ДТ(л)-К-4 [13:13:25]line 9.190 * 76.20 [13:13:25]line = 700.28 [13:13:25]line НДС 12% НСП 1% [13:13:25]line > о реализуемом товаре [13:13:25]line ОКРУГЛЕНИЕ: -0.28 [13:13:25]line ИТОГО: 700.00 [13:13:25]line Внесено: 700.00 [13:13:25]line СДАЧА: 0.00 [13:13:25]line НСП 1% : 6.20 [13:13:25]line НДС 12% : 74.37 [13:13:25]line Наличными: 700.00 [13:13:25]line Безнал.: 0.00 [13:13:25]line Место: АЗС № 94 "Партнер Нефть" [13:13:25]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [13:13:25]line СНО: Общий режим [13:13:25]line Чек 248 18.08.2024 13:13 [13:13:25]line Смена: 449 ФФД: 1.0 [13:13:25]line ЗНМ: 0300000099 [13:13:25]line РНМ: 0000000000091865 [13:13:25]line Версия ККМ: 001 [13:13:25]line ФМ: 0000000000871820 [13:13:25]line ФД: 260690 [13:13:25]line ФПД: 237366922400298 [13:13:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T131328&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260690&fm=237366922400298&tin=02508201610067®Number=0000000000091865&sum=70000 [13:13:25]OFD Sender: Processing packet 260690 [packets to send 192, broken 191] [13:13:25]ProducePacketName [13:13:25]name=ofd_packets/00260690 [13:13:25]OFD Sender: To server: pG, [13:13:25]CommunicateWithHost lk.salyk.kg:30040 [13:13:25]ConnectInit lk.salyk.kg [13:13:25]written 0, free lines is 4095 [13:13:25]Connected sock=10 [13:13: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 30 10 01 00 00 47 B4 08 01 C0 F6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 0D 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 F8 00 00 00 F4 03 04 00 78 F3 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 52 FA 03 00 35 04 06 00 D7 E2 4B 17 52 2A 12 4D 04 F1 D6 A1 DE AE [13:13: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 30 4F 00 00 00 4C C6 47 00 38 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 52 FA 03 00 F4 03 04 00 CD 9C C1 66 B6 04 01 00 00 5B 96 3B 56 1D 97 3C BC [13:13:25]CommunicateWithHost err = 0 [13:13:25]CheckOFDResponse [13:13:25]1017 (14) - 77093643461234 [13:13:25]1041 (16) - 0000000000871820 [13:13:25]1040 (4) - 260690 [13:13:25]1012 (4) - 18.08.2024 07:03 [13:13:25]1206 (1) - 0 [13:13:25]OFD Sender: Remove packet 260690 [13:13:25]ProducePacketName [13:13:25]name=ofd_packets/00260690 [13:13:25]NVStorageDeleteData [13:13:25]Write to MH i2c: 01 00 00 54 83 D7 [13:13:25]Write i2c OK [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: 01 [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: 01 07 00 [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: 01 07 00 54 83 00 00 00 00 00 73 0C 5D [13:13:25]RasterBufferAndPrint [13:13:25]line [13:13:25]line [13:13:25]line [13:13:25]line [13:13:25]line [13:13:25]written 0, free lines is 3190 [13:13:25]MH_Cut [13:13:25]Write to MH i2c: D1 01 00 5B 83 01 B0 [13:13:25]Write i2c OK [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: D1 [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: D1 01 00 [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: D1 01 00 5B 83 00 AF [13:13:25]Write to MH i2c: 01 00 00 5C 83 DF [13:13:25]Write i2c OK [13:13:25]MH_I2C_Read... [13:13:26]OFD Sender: No OFD packet to send [13:13:26]*** Cut start [13:13:26]*** Purtial cut [13:13:26]*** Stage 1: CUTSNS_PIN = 1 [13:13:28]Read from MH i2c: 01 [13:13:29]MH_I2C_Read... [13:13:29]*** Stop cut motor [13:13:29]*** Cut end [13:13:29]Read from MH i2c: 01 07 00 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: 01 07 00 5C 83 00 00 00 00 00 FF 0F F4 [13:13:29]process_action close_receipt done [13:13:29]requested_data is exist [13:13:29]produce_requested_data [13:13:29]requested_item fm.sn is exist - process it [13:13:29]wFMCommunicate request_size=4 [13:13:29]MH_SAM_APDU [13:13:29]CAPDU: 80 11 00 00 [13:13:29]Write to MH i2c: E2 08 00 5D 83 80 11 00 00 00 00 00 00 5A [13:13:29]Write i2c OK [13:13:29]MH_I2C_Read... [13:13:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:29]Read from MH i2c: E2 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 17 00 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 17 00 5D 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A7 [13:13:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:13:29]wFMCommunicate OK [13:13:29]requested_item fd.num is exist - process it [13:13:29]SAM_PROTO_GetFieldsCounters [13:13:29]wFMCommunicate request_size=4 [13:13:29]MH_SAM_APDU [13:13:29]CAPDU: 80 13 00 00 [13:13:29]Write to MH i2c: E2 08 00 5E 83 80 13 00 00 00 00 00 00 5D [13:13:29]Write i2c OK [13:13:29]MH_I2C_Read... [13:13:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:29]Read from MH i2c: E2 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 62 00 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 62 00 5E 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 52 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [13:13: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 52 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:13:29]wFMCommunicate OK [13:13:29]SAM_PROTO_GetFieldsCounters done [13:13:29]requested_item shift.num is exist - process it [13:13:29]requested_item shift.opened is exist - process it [13:13:29]req_shift_opened [13:13:29]FM_GetShiftState [13:13:29]SAM_PROTO_GetShiftState [13:13:29]wFMCommunicate request_size=4 [13:13:29]MH_SAM_APDU [13:13:29]CAPDU: 80 13 01 00 [13:13:29]Write to MH i2c: E2 08 00 5F 83 80 13 01 00 00 00 00 00 5F [13:13:29]Write i2c OK [13:13:29]MH_I2C_Read... [13:13:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:29]Read from MH i2c: E2 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 0E 00 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 0E 00 5F 83 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 9C [13:13:29]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:13:29]wFMCommunicate OK [13:13:29]SAM_PROTO_GetShiftState done [13:13:29]FM_GetShiftState done [13:13:29]req_shift_opened done [13:13:29]requested_item shift.open_date is exist - process it [13:13:29]req_shift_open_date [13:13:29]req_shift_open_date done [13:13:29]produce_requested_data done [13:13:29]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260690,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [13:13:29]process_action_free close_receipt [13:13:29]json_value_free [13:13:29]json_value_free done [13:13:29]process_json_proto returns [13:13:29]Send response to host [13:13:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260690,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [13:13:29]free response buf [13:13:29]execute_script done [13:13:29]execute_script returns [13:13:29]free content buf [13:13:29]Sock 7.Close socket [13:13:29]Sock 7.Thread stoped [13:13:31]OFD Sender: No OFD packet to send [13:13:36]OFD Sender: No OFD packet to send [13:13:41]OFD Sender: No OFD packet to send [13:13:46]OFD Sender: No OFD packet to send [13:13:51]OFD Sender: No OFD packet to send [13:13:56]OFD Sender: No OFD packet to send [13:14:01]OFD Sender: No OFD packet to send [13:14:06]OFD Sender: No OFD packet to send [13:14:11]OFD Sender: No OFD packet to send [13:14:16]OFD Sender: No OFD packet to send [13:14:21]OFD Sender: No OFD packet to send [13:14:26]OFD Sender: No OFD packet to send [13:14:31]OFD Sender: No OFD packet to send [13:14:36]OFD Sender: No OFD packet to send [13:14:41]OFD Sender: No OFD packet to send [13:14:46]OFD Sender: No OFD packet to send [13:14:51]OFD Sender: No OFD packet to send [13:14:56]OFD Sender: No OFD packet to send [13:15:01]OFD Sender: No OFD packet to send [13:15:06]OFD Sender: No OFD packet to send [13:15:11]OFD Sender: No OFD packet to send [13:15:16]OFD Sender: No OFD packet to send [13:15:21]OFD Sender: No OFD packet to send [13:15:26]OFD Sender: No OFD packet to send [13:15:31]OFD Sender: No OFD packet to send [13:15:36]OFD Sender: No OFD packet to send [13:15:41]OFD Sender: No OFD packet to send [13:15:46]OFD Sender: No OFD packet to send [13:15:51]OFD Sender: No OFD packet to send [13:15:56]OFD Sender: No OFD packet to send [13:16:01]OFD Sender: No OFD packet to send [13:16:06]OFD Sender: No OFD packet to send [13:16:11]OFD Sender: No OFD packet to send [13:16:16]OFD Sender: No OFD packet to send [13:16:21]OFD Sender: No OFD packet to send [13:16:26]OFD Sender: No OFD packet to send [13:16:31]OFD Sender: No OFD packet to send [13:16:36]OFD Sender: No OFD packet to send [13:16:41]OFD Sender: No OFD packet to send [13:16:46]OFD Sender: No OFD packet to send [13:16:51]OFD Sender: No OFD packet to send [13:16:56]OFD Sender: No OFD packet to send [13:17:01]OFD Sender: No OFD packet to send [13:17:04]accept exits with 9 [13:17:04]New connection [13:17:04]New thread 3066617188 created [13:17:04]Thread 3066473828 joined [13:17:04]Waiting for new connection... [13:17:04] Sock 9.Parse request [13:17:04]Sock 9.Check first char [13:17:04]Sock 9.First char is OK [13:17:04]request: POST /json_proto HTTP/1.0 [13:17:04]Method: POST [13:17:04]URL: /json_proto [13:17:04]Method is POST - this is cgi request [13:17:04]url: /json_proto [13:17:04]query_string will be loaded in cgi processing [13:17:04]execute_cgi json_proto POST (null) [13:17:04]execute_cgi path=json_proto method=POST [13:17:04]POST find Content-Length [13:17:04]Host: 172.17.55.133:8080 [13:17:04]Content-Length: 755 [13:17:04]Content-Type: application/json [13:17:04] [13:17:04]POST finish read [13:17:04]Found Content-Length = 755 [13:17:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30027983", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:04]execute_script... [13:17: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)1036239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30027983", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:04]POST & json_proto [13:17:04]process_json_proto [13:17:04]json parsed OK: [13:17:04]protocol is kg_v1.0 [13:17:04]action value=close_receipt [13:17:04]process_action close_receipt [13:17:04]cmd_close_receipt [13:17:04]MH_GetDate [13:17:04]Write to MH i2c: F0 00 00 60 83 D2 [13:17:04]Write i2c OK [13:17:04]MH_I2C_Read... [13:17:04]Read from MH i2c: F0 [13:17:04]MH_I2C_Read... [13:17:04]Read from MH i2c: F0 09 00 [13:17:04]MH_I2C_Read... [13:17:04]Read from MH i2c: F0 09 00 60 83 00 55 F4 C1 66 34 48 D8 65 04 [13:17:04]GetLastDocTimeStamp 1723986808 [13:17:04]current date 1723987029 [13:17:04]FM_GetShiftState [13:17:04]SAM_PROTO_GetShiftState [13:17:04]wFMCommunicate request_size=4 [13:17:04]MH_SAM_APDU [13:17:04]CAPDU: 80 13 01 00 [13:17:04]Write to MH i2c: E2 08 00 61 83 80 13 01 00 00 00 00 00 61 [13:17:04]Write i2c OK [13:17:04]MH_I2C_Read... [13:17:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:04]Read from MH i2c: E2 [13:17:04]MH_I2C_Read... [13:17:04]Read from MH i2c: E2 0E 00 [13:17:04]MH_I2C_Read... [13:17:04]Read from MH i2c: E2 0E 00 61 83 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 9E [13:17:04]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:17:04]wFMCommunicate OK [13:17:04]SAM_PROTO_GetShiftState done [13:17:04]FM_GetShiftState done [13:17:04]opened in 1723940556 [13:17:04]opened+sec_in_day 1724026956 [13:17:04]quantity*price = 0 [13:17:04]sum+1 = 1 [13:17:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 249 18.08.2024 13:17 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: ТК ГПНА Online 30027983 ФМ: 0000000000871820 ФД: 260691 ФПД: 185242033431564 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T131709&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260691&fm=185242033431564&tin=02508201610067®Number=0000000000091865&sum=0 [13:17:05]StoreToDocumentArchive [13:17:05]shift 449 fd 260691 [13:17:05]save to /storage/0449/doc_00260691 [13:17:05]save last doc name /storage/0449/doc_00260691 to /storage/kkm_last_doc_name [13:17:05]save OK [13:17:05]Clear old archive folders... [13:17:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:17:05]tlvbuf is 003E26D0 [13:17:05]SAM_PROTO_ClearQueue [13:17:05]wFMCommunicate request_size=4 [13:17:05]MH_SAM_APDU [13:17:05]CAPDU: 80 09 00 00 [13:17:05]Write to MH i2c: E2 08 00 6E 83 80 09 00 00 00 00 00 00 63 [13:17:05]Write i2c OK [13:17:05]MH_I2C_Read... [13:17:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:05]Read from MH i2c: E2 [13:17:05]MH_I2C_Read... [13:17:05]Read from MH i2c: E2 03 00 [13:17:05]MH_I2C_Read... [13:17:05]Read from MH i2c: E2 03 00 6E 83 00 90 00 65 [13:17:05]RAPDU: 90 00 [13:17:05]wFMCommunicate OK [13:17:05]SAM_PROTO_ClearQueue done [13:17:05]KKMCreateOFDPacket [13:17:05]OFDProtocolAddRootSTLVToBuf [13:17:05]FM_MakeSignedData [13:17:05]FM_MakeSignedData [13:17:05]SAM_PROTO_SignData [13:17:05]wFMCommunicate request_size=4 [13:17:05]MH_SAM_APDU [13:17:05]CAPDU: 80 0D 01 02 [13:17:05]Write to MH i2c: E2 08 00 6F 83 80 0D 01 02 00 00 00 00 6B [13:17:05]Write i2c OK [13:17:05]MH_I2C_Read... [13:17:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:05]Read from MH i2c: E2 [13:17:05]MH_I2C_Read... [13:17:05]Read from MH i2c: E2 03 00 [13:17:05]MH_I2C_Read... [13:17:05]Read from MH i2c: E2 03 00 6F 83 00 90 00 66 [13:17:05]RAPDU: 90 00 [13:17:05]wFMCommunicate OK [13:17:05]wFMCommunicate request_size=255 [13:17:05]MH_SAM_APDU [13:17:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 F9 00 00 00 F4 03 04 00 55 F4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 53 FA 03 00 35 04 06 00 A8 [13:17:05]Write to MH i2c: E2 02 01 70 83 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 55 F4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 53 FA 03 00 35 04 06 00 A8 00 00 CD [13:17:05]Write i2c OK [13:17:05]MH_I2C_Read... [13:17:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:06]Read from MH i2c: E2 [13:17:06]MH_I2C_Read... [13:17:06]Read from MH i2c: E2 03 00 [13:17:06]MH_I2C_Read... [13:17:06]Read from MH i2c: E2 03 00 70 83 00 90 00 67 [13:17:06]RAPDU: 90 00 [13:17:06]wFMCommunicate OK [13:17:06]wFMCommunicate request_size=10 [13:17:06]MH_SAM_APDU [13:17:06]CAPDU: 80 0D 02 02 05 7A 05 99 A4 0C [13:17:06]Write to MH i2c: E2 0D 00 71 83 80 0D 02 02 05 00 7A 05 99 A4 0C 00 00 40 [13:17:06]Write i2c OK [13:17:06]MH_I2C_Read... [13:17:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:06]Read from MH i2c: E2 [13:17:06]MH_I2C_Read... [13:17:06]Read from MH i2c: E2 03 00 [13:17:06]MH_I2C_Read... [13:17:06]Read from MH i2c: E2 03 00 71 83 00 90 00 68 [13:17:06]RAPDU: 90 00 [13:17:06]wFMCommunicate OK [13:17:06]wFMCommunicate request_size=4 [13:17:06]MH_SAM_APDU [13:17:06]CAPDU: 80 0D 03 02 [13:17:06]Write to MH i2c: E2 08 00 72 83 80 0D 03 02 00 00 00 00 70 [13:17:06]Write i2c OK [13:17:06]MH_I2C_Read... [13:17:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:06]Read from MH i2c: E2 [13:17:06]MH_I2C_Read... [13:17:06]Read from MH i2c: E2 0B 00 [13:17:06]MH_I2C_Read... [13:17:06]Read from MH i2c: E2 0B 00 72 83 00 AA 9F 23 8B 98 42 B0 7D 90 00 6F [13:17:06]RAPDU: AA 9F 23 8B 98 42 B0 7D 90 00 [13:17:06]wFMCommunicate OK [13:17:06]SAM_PROTO_SignData done [13:17:06]FM_MakeSignedData done [13:17:06]CreateOFDProtocolMessage [13:17:06]wFMCommunicate request_size=4 [13:17:06]MH_SAM_APDU [13:17:06]CAPDU: 80 11 00 00 [13:17:06]Write to MH i2c: E2 08 00 73 83 80 11 00 00 00 00 00 00 70 [13:17:06]Write i2c OK [13:17:06]MH_I2C_Read... [13:17:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:06]Read from MH i2c: E2 [13:17:06]MH_I2C_Read... [13:17:06]Read from MH i2c: E2 17 00 [13:17:06]MH_I2C_Read... [13:17:06]Read from MH i2c: E2 17 00 73 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 BD [13:17:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:17:06]wFMCommunicate OK [13:17:06]CreateOFDProtocolMessage done [13:17:06]OFDSenderStorePacket 260691 [13:17:06]StoreOFDPacket docnum=260691 [13:17:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 34 6A 07 01 40 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 F9 00 00 00 F4 03 04 00 55 F4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 53 FA 03 00 35 04 06 00 A8 7A 05 99 A4 0C AA 9F 23 8B 98 42 B0 7D [13:17:06]CheckFolder [13:17:06]dirname=/storage/ofd_packets [13:17:06]CheckFolder done [13:17:06]ProducePacketName [13:17:06]name=ofd_packets/00260691 [13:17:06]NVStorageSaveData ofd_packets/00260691 [13:17:06]File name is /storage/ofd_packets/00260691 [13:17:06]Write 301 bytes [13:17:06]NVStorageSaveData done [13:17:06]OFDSenderStorePacket done [13:17:06]KKMCreateOFDPacket done [13:17:06]NVStorageSaveData kkm_last_timestamp [13:17:06]File name is /storage/kkm_last_timestamp [13:17:06]Write 4 bytes [13:17:06]NVStorageSaveData done [13:17:06]ExternCall_PrintAddStr [13:17:06]wPrintStart [13:17:06]Write to MH i2c: 01 00 00 74 83 F7 [13:17:06]Write i2c OK [13:17:06]MH_I2C_Read... [13:17:06]Read from MH i2c: 01 [13:17:06]MH_I2C_Read... [13:17:06]Read from MH i2c: 01 07 00 [13:17:06]MH_I2C_Read... [13:17:06]Read from MH i2c: 01 07 00 74 83 00 00 00 00 00 FF 0F 0C [13:17:06]RasterBufferAndPrint [13:17:06]line Счет N : (1)1036239 [13:17:06]line ИНН: 02508201610067 [13:17:06]line Контрольно-Кассовый Чек [13:17:06]line ПРОДАЖА [13:17:06]line ТРК (МРК, ГНК) : 22 [13:17:06]line Товар: 2710124130 [13:17:06]line Аи-92-К-5 [13:17:06]line 10.000 * 0.00 [13:17:06]line = 0.00 [13:17:06]line НДС 12% НСП 1% [13:17:06]line > о реализуемом товаре [13:17:06]line ИТОГО: 0.00 [13:17:06]line НСП 1% : 0.00 [13:17:06]line НДС 12% : 0.00 [13:17:06]line Наличными: 0.00 [13:17:06]line Безнал.: 0.00 [13:17:06]line Место: АЗС № 94 "Партнер Нефть" [13:17:06]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [13:17:06]line СНО: Общий режим [13:17:06]line Чек 249 18.08.2024 13:17 [13:17:06]line Смена: 449 ФФД: 1.0 [13:17:06]line ЗНМ: 0300000099 [13:17:06]line РНМ: 0000000000091865 [13:17:06]line Версия ККМ: 001 [13:17:06]line Талоны: ТК ГПНА Online [13:17:06]line 30027983 [13:17:06]line ФМ: 0000000000871820 [13:17:06]line ФД: 260691 [13:17:06]line ФПД: 185242033431564 [13:17:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T131709&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260691&fm=185242033431564&tin=02508201610067®Number=0000000000091865&sum=0 [13:17:06]written 0, free lines is 4095 [13:17:06]OFD Sender: Processing packet 260691 [packets to send 192, broken 191] [13:17:06]ProducePacketName [13:17:06]name=ofd_packets/00260691 [13:17:06]OFD Sender: To server: pG, [13:17:06]CommunicateWithHost lk.salyk.kg:30040 [13:17:06]ConnectInit lk.salyk.kg [13:17:06]Connected sock=10 [13:17: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 30 0F 01 00 00 34 6A 07 01 40 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 F9 00 00 00 F4 03 04 00 55 F4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 53 FA 03 00 35 04 06 00 A8 7A 05 99 A4 0C AA 9F 23 8B 98 42 B0 7D [13: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 30 4F 00 00 00 ED EA 47 00 88 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 30 10 04 04 00 53 FA 03 00 F4 03 04 00 AA 9D C1 66 B6 04 01 00 00 6B B8 2B 45 23 50 08 73 [13:17:06]CommunicateWithHost err = 0 [13:17:06]CheckOFDResponse [13:17:06]1017 (14) - 77093643461234 [13:17:06]1041 (16) - 0000000000871820 [13:17:06]1040 (4) - 260691 [13:17:06]1012 (4) - 18.08.2024 07:07 [13:17:06]1206 (1) - 0 [13:17:06]OFD Sender: Remove packet 260691 [13:17:06]ProducePacketName [13:17:06]name=ofd_packets/00260691 [13:17:06]NVStorageDeleteData [13:17:06]Write to MH i2c: 01 00 00 9E 83 21 [13:17:06]Write i2c OK [13:17:06]MH_I2C_Read... [13:17:06]Read from MH i2c: 01 [13:17:06]MH_I2C_Read... [13:17:06]Read from MH i2c: 01 07 00 [13:17:06]MH_I2C_Read... [13:17:06]Read from MH i2c: 01 07 00 9E 83 00 00 00 00 00 8C 0C C0 [13:17:06]RasterBufferAndPrint [13:17:06]line [13:17:06]line [13:17:06]line [13:17:06]line [13:17:06]line [13:17:06]written 0, free lines is 3215 [13:17:06]MH_Cut [13:17:06]Write to MH i2c: D1 01 00 A5 83 01 FA [13:17:06]Write i2c OK [13:17:06]MH_I2C_Read... [13:17:06]Read from MH i2c: D1 [13:17:06]MH_I2C_Read... [13:17:06]Read from MH i2c: D1 01 00 [13:17:06]MH_I2C_Read... [13:17:06]Read from MH i2c: D1 01 00 A5 83 00 F9 [13:17:06]Write to MH i2c: 01 00 00 A6 83 29 [13:17:06]Write i2c OK [13:17:06]MH_I2C_Read... [13:17:07]OFD Sender: No OFD packet to send [13:17:07]*** Cut start [13:17:07]*** Purtial cut [13:17:07]*** Stage 1: CUTSNS_PIN = 1 [13:17:09]Read from MH i2c: 01 [13:17:09]MH_I2C_Read... [13:17:09]*** Stop cut motor [13:17:09]*** Cut end [13:17:09]Read from MH i2c: 01 07 00 [13:17:09]MH_I2C_Read... [13:17:09]Read from MH i2c: 01 07 00 A6 83 00 00 00 00 00 FF 0F 3E [13:17:09]process_action close_receipt done [13:17:09]requested_data is exist [13:17:09]produce_requested_data [13:17:09]requested_item fm.sn is exist - process it [13:17:09]wFMCommunicate request_size=4 [13:17:09]MH_SAM_APDU [13:17:09]CAPDU: 80 11 00 00 [13:17:09]Write to MH i2c: E2 08 00 A7 83 80 11 00 00 00 00 00 00 A4 [13:17:09]Write i2c OK [13:17:09]MH_I2C_Read... [13:17:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:09]Read from MH i2c: E2 [13:17:09]MH_I2C_Read... [13:17:09]Read from MH i2c: E2 17 00 [13:17:09]MH_I2C_Read... [13:17:09]Read from MH i2c: E2 17 00 A7 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F1 [13:17:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:17:09]wFMCommunicate OK [13:17:09]requested_item fd.num is exist - process it [13:17:09]SAM_PROTO_GetFieldsCounters [13:17:09]wFMCommunicate request_size=4 [13:17:09]MH_SAM_APDU [13:17:09]CAPDU: 80 13 00 00 [13:17:09]Write to MH i2c: E2 08 00 A8 83 80 13 00 00 00 00 00 00 A7 [13:17:09]Write i2c OK [13:17:09]MH_I2C_Read... [13:17:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:10]Read from MH i2c: E2 [13:17:10]MH_I2C_Read... [13:17:10]Read from MH i2c: E2 62 00 [13:17:10]MH_I2C_Read... [13:17:10]Read from MH i2c: E2 62 00 A8 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 53 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [13:17: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 53 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:17:10]wFMCommunicate OK [13:17:10]SAM_PROTO_GetFieldsCounters done [13:17:10]requested_item shift.num is exist - process it [13:17:10]requested_item shift.opened is exist - process it [13:17:10]req_shift_opened [13:17:10]FM_GetShiftState [13:17:10]SAM_PROTO_GetShiftState [13:17:10]wFMCommunicate request_size=4 [13:17:10]MH_SAM_APDU [13:17:10]CAPDU: 80 13 01 00 [13:17:10]Write to MH i2c: E2 08 00 A9 83 80 13 01 00 00 00 00 00 A9 [13:17:10]Write i2c OK [13:17:10]MH_I2C_Read... [13:17:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:10]Read from MH i2c: E2 [13:17:10]MH_I2C_Read... [13:17:10]Read from MH i2c: E2 0E 00 [13:17:10]MH_I2C_Read... [13:17:10]Read from MH i2c: E2 0E 00 A9 83 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E6 [13:17:10]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:17:10]wFMCommunicate OK [13:17:10]SAM_PROTO_GetShiftState done [13:17:10]FM_GetShiftState done [13:17:10]req_shift_opened done [13:17:10]requested_item shift.open_date is exist - process it [13:17:10]req_shift_open_date [13:17:10]req_shift_open_date done [13:17:10]produce_requested_data done [13:17:10]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260691,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [13:17:10]process_action_free close_receipt [13:17:10]json_value_free [13:17:10]json_value_free done [13:17:10]process_json_proto returns [13:17:10]Send response to host [13:17:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260691,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [13:17:10]free response buf [13:17:10]execute_script done [13:17:10]execute_script returns [13:17:10]free content buf [13:17:10]Sock 9.Close socket [13:17:10]Sock 9.Thread stoped [13:17:12]OFD Sender: No OFD packet to send [13:17:17]OFD Sender: No OFD packet to send [13:17:22]OFD Sender: No OFD packet to send [13:17:27]OFD Sender: No OFD packet to send [13:17:27]accept exits with 7 [13:17:27]New connection [13:17:27]New thread 3066473828 created [13:17:27]Thread 3066617188 joined [13:17:27]Waiting for new connection... [13:17:27] Sock 7.Parse request [13:17:27]Sock 7.Check first char [13:17:27]Sock 7.First char is OK [13:17:27]request: POST /json_proto HTTP/1.0 [13:17:27]Method: POST [13:17:27]URL: /json_proto [13:17:27]Method is POST - this is cgi request [13:17:27]url: /json_proto [13:17:27]query_string will be loaded in cgi processing [13:17:27]execute_cgi json_proto POST (null) [13:17:27]execute_cgi path=json_proto method=POST [13:17:27]POST find Content-Length [13:17:27]Host: 172.17.55.133:8080 [13:17:27]Content-Length: 678 [13:17:27]Content-Type: application/json [13:17:27] [13:17:27]POST finish read [13:17:27]Found Content-Length = 678 [13:17:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.670, "sum" : 520.03, "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" ] } } [13:17:27]execute_script... [13: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)1036240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.670, "sum" : 520.03, "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" ] } } [13:17:27]POST & json_proto [13:17:27]process_json_proto [13:17:27]json parsed OK: [13:17:27]protocol is kg_v1.0 [13:17:27]action value=close_receipt [13:17:27]process_action close_receipt [13:17:27]cmd_close_receipt [13:17:27]MH_GetDate [13:17:27]Write to MH i2c: F0 00 00 AA 83 1C [13:17:27]Write i2c OK [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: F0 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: F0 09 00 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: F0 09 00 AA 83 00 6C F4 C1 66 34 48 D8 65 65 [13:17:27]GetLastDocTimeStamp 1723987029 [13:17:27]current date 1723987052 [13:17:27]FM_GetShiftState [13:17:27]SAM_PROTO_GetShiftState [13:17:27]wFMCommunicate request_size=4 [13:17:27]MH_SAM_APDU [13:17:27]CAPDU: 80 13 01 00 [13:17:27]Write to MH i2c: E2 08 00 AB 83 80 13 01 00 00 00 00 00 AB [13:17:27]Write i2c OK [13:17:27]MH_I2C_Read... [13:17:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:27]Read from MH i2c: E2 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: E2 0E 00 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: E2 0E 00 AB 83 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E8 [13:17:27]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:17:27]wFMCommunicate OK [13:17:27]SAM_PROTO_GetShiftState done [13:17:27]FM_GetShiftState done [13:17:27]opened in 1723940556 [13:17:27]opened+sec_in_day 1724026956 [13:17:27]quantity*price = 52002 [13:17:27]sum+1 = 52004 [13:17:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 520.00 Внесено: 520.00 СДАЧА: 0.00 НСП 1% : 4.60 НДС 12% : 55.22 Наличными: 520.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 250 18.08.2024 13:17 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260692 ФПД: 12103955275319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T131732&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260692&fm=12103955275319&tin=02508201610067®Number=0000000000091865&sum=52000 [13:17:28]StoreToDocumentArchive [13:17:28]shift 449 fd 260692 [13:17:28]save to /storage/0449/doc_00260692 [13:17:28]save last doc name /storage/0449/doc_00260692 to /storage/kkm_last_doc_name [13:17:28]save OK [13:17:28]Clear old archive folders... [13:17:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:17:28]tlvbuf is 00336020 [13:17:28]SAM_PROTO_ClearQueue [13:17:28]wFMCommunicate request_size=4 [13:17:28]MH_SAM_APDU [13:17:28]CAPDU: 80 09 00 00 [13:17:28]Write to MH i2c: E2 08 00 B8 83 80 09 00 00 00 00 00 00 AD [13:17:28]Write i2c OK [13:17:28]MH_I2C_Read... [13:17:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:28]Read from MH i2c: E2 [13:17:28]MH_I2C_Read... [13:17:28]Read from MH i2c: E2 03 00 [13:17:28]MH_I2C_Read... [13:17:28]Read from MH i2c: E2 03 00 B8 83 00 90 00 AF [13:17:28]RAPDU: 90 00 [13:17:28]wFMCommunicate OK [13:17:28]SAM_PROTO_ClearQueue done [13:17:28]KKMCreateOFDPacket [13:17:28]OFDProtocolAddRootSTLVToBuf [13:17:28]FM_MakeSignedData [13:17:28]FM_MakeSignedData [13:17:28]SAM_PROTO_SignData [13:17:28]wFMCommunicate request_size=4 [13:17:28]MH_SAM_APDU [13:17:28]CAPDU: 80 0D 01 02 [13:17:28]Write to MH i2c: E2 08 00 B9 83 80 0D 01 02 00 00 00 00 B5 [13:17:28]Write i2c OK [13:17:28]MH_I2C_Read... [13:17:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:28]Read from MH i2c: E2 [13:17:28]MH_I2C_Read... [13:17:28]Read from MH i2c: E2 03 00 [13:17:28]MH_I2C_Read... [13:17:28]Read from MH i2c: E2 03 00 B9 83 00 90 00 B0 [13:17:28]RAPDU: 90 00 [13:17:28]wFMCommunicate OK [13:17:28]wFMCommunicate request_size=255 [13:17:28]MH_SAM_APDU [13:17: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 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 23 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 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 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 FA 00 00 00 F4 03 04 00 6C F4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 54 FA 03 00 35 04 06 00 0B [13:17:28]Write to MH i2c: E2 02 01 BA 83 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 23 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 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 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 FA 00 00 00 F4 03 04 00 6C F4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 54 FA 03 00 35 04 06 00 0B 00 00 3D [13:17:28]Write i2c OK [13:17:28]MH_I2C_Read... [13:17:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:29]Read from MH i2c: E2 [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: E2 03 00 [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: E2 03 00 BA 83 00 90 00 B1 [13:17:29]RAPDU: 90 00 [13:17:29]wFMCommunicate OK [13:17:29]wFMCommunicate request_size=10 [13:17:29]MH_SAM_APDU [13:17:29]CAPDU: 80 0D 02 02 05 02 2B F4 5E 37 [13:17:29]Write to MH i2c: E2 0D 00 BB 83 80 0D 02 02 05 00 02 2B F4 5E 37 00 00 78 [13:17:29]Write i2c OK [13:17:29]MH_I2C_Read... [13:17:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:29]Read from MH i2c: E2 [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: E2 03 00 [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: E2 03 00 BB 83 00 90 00 B2 [13:17:29]RAPDU: 90 00 [13:17:29]wFMCommunicate OK [13:17:29]wFMCommunicate request_size=4 [13:17:29]MH_SAM_APDU [13:17:29]CAPDU: 80 0D 03 02 [13:17:29]Write to MH i2c: E2 08 00 BC 83 80 0D 03 02 00 00 00 00 BA [13:17:29]Write i2c OK [13:17:29]MH_I2C_Read... [13:17:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:29]Read from MH i2c: E2 [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: E2 0B 00 [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: E2 0B 00 BC 83 00 1B D3 55 C7 66 01 FB 52 90 00 79 [13:17:29]RAPDU: 1B D3 55 C7 66 01 FB 52 90 00 [13:17:29]wFMCommunicate OK [13:17:29]SAM_PROTO_SignData done [13:17:29]FM_MakeSignedData done [13:17:29]CreateOFDProtocolMessage [13:17:29]wFMCommunicate request_size=4 [13:17:29]MH_SAM_APDU [13:17:29]CAPDU: 80 11 00 00 [13:17:29]Write to MH i2c: E2 08 00 BD 83 80 11 00 00 00 00 00 00 BA [13:17:29]Write i2c OK [13:17:29]MH_I2C_Read... [13:17:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:29]Read from MH i2c: E2 [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: E2 17 00 [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: E2 17 00 BD 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 07 [13:17:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:17:29]wFMCommunicate OK [13:17:29]CreateOFDProtocolMessage done [13:17:29]OFDSenderStorePacket 260692 [13:17:29]StoreOFDPacket docnum=260692 [13:17:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 04 69 07 01 98 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 23 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 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 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 FA 00 00 00 F4 03 04 00 6C F4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 54 FA 03 00 35 04 06 00 0B 02 2B F4 5E 37 1B D3 55 C7 66 01 FB 52 [13:17:29]CheckFolder [13:17:29]dirname=/storage/ofd_packets [13:17:29]CheckFolder done [13:17:29]ProducePacketName [13:17:29]name=ofd_packets/00260692 [13:17:29]NVStorageSaveData ofd_packets/00260692 [13:17:29]File name is /storage/ofd_packets/00260692 [13:17:29]Write 301 bytes [13:17:29]NVStorageSaveData done [13:17:29]OFDSenderStorePacket done [13:17:29]KKMCreateOFDPacket done [13:17:29]NVStorageSaveData kkm_last_timestamp [13:17:29]File name is /storage/kkm_last_timestamp [13:17:29]Write 4 bytes [13:17:29]NVStorageSaveData done [13:17:29]ExternCall_PrintAddStr [13:17:29]wPrintStart [13:17:29]Write to MH i2c: 01 00 00 BE 83 41 [13:17:29]Write i2c OK [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: 01 [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: 01 07 00 [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: 01 07 00 BE 83 00 00 00 00 00 FF 0F 56 [13:17:29]RasterBufferAndPrint [13:17:29]line Счет N : (1)1036240 [13:17:29]line ИНН: 02508201610067 [13:17:29]line Контрольно-Кассовый Чек [13:17:29]line ПРОДАЖА [13:17:29]line ТРК (МРК, ГНК) : 42 [13:17:29]line Товар: 2710124130 [13:17:29]line Аи-92-К-5 [13:17:29]line 7.670 * 67.80 [13:17:29]line = 520.03 [13:17:29]line НДС 12% НСП 1% [13:17:29]line > о реализуемом товаре [13:17:29]line ОКРУГЛЕНИЕ: -0.03 [13:17:29]line ИТОГО: 520.00 [13:17:29]line Внесено: 520.00 [13:17:29]line СДАЧА: 0.00 [13:17:29]line НСП 1% : 4.60 [13:17:29]line НДС 12% : 55.22 [13:17:29]line Наличными: 520.00 [13:17:29]line Безнал.: 0.00 [13:17:29]line Место: АЗС № 94 "Партнер Нефть" [13:17:29]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [13:17:29]line СНО: Общий режим [13:17:29]line Чек 250 18.08.2024 13:17 [13:17:29]line Смена: 449 ФФД: 1.0 [13:17:29]line ЗНМ: 0300000099 [13:17:29]line РНМ: 0000000000091865 [13:17:29]line Версия ККМ: 001 [13:17:29]line ФМ: 0000000000871820 [13:17:29]line ФД: 260692 [13:17:29]line ФПД: 12103955275319 [13:17:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T131732&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260692&fm=12103955275319&tin=02508201610067®Number=0000000000091865&sum=52000 [13:17:29]written 0, free lines is 4095 [13:17:29]OFD Sender: Processing packet 260692 [packets to send 192, broken 191] [13:17:29]ProducePacketName [13:17:29]name=ofd_packets/00260692 [13:17:29]OFD Sender: To server: pG, [13:17:29]CommunicateWithHost lk.salyk.kg:30040 [13:17:29]ConnectInit lk.salyk.kg [13:17:29]Connected sock=10 [13: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 30 0F 01 00 00 04 69 07 01 98 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 23 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 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 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 FA 00 00 00 F4 03 04 00 6C F4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 54 FA 03 00 35 04 06 00 0B 02 2B F4 5E 37 1B D3 55 C7 66 01 FB 52 [13: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 30 4F 00 00 00 37 B7 47 00 67 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 54 FA 03 00 F4 03 04 00 C1 9D C1 66 B6 04 01 00 00 0C A5 FE F0 8E B7 28 3F [13:17:29]CommunicateWithHost err = 0 [13:17:29]CheckOFDResponse [13:17:29]1017 (14) - 77093643461234 [13:17:29]1041 (16) - 0000000000871820 [13:17:29]1040 (4) - 260692 [13:17:29]1012 (4) - 18.08.2024 07:07 [13:17:29]1206 (1) - 0 [13:17:29]OFD Sender: Remove packet 260692 [13:17:29]ProducePacketName [13:17:29]name=ofd_packets/00260692 [13:17:29]NVStorageDeleteData [13:17:30]Write to MH i2c: 01 00 00 E9 83 6C [13:17:30]Write i2c OK [13:17:30]MH_I2C_Read... [13:17:30]Read from MH i2c: 01 [13:17:30]MH_I2C_Read... [13:17:30]Read from MH i2c: 01 07 00 [13:17:30]MH_I2C_Read... [13:17:30]Read from MH i2c: 01 07 00 E9 83 00 00 00 00 00 6A 0C E9 [13:17:30]RasterBufferAndPrint [13:17:30]line [13:17:30]line [13:17:30]line [13:17:30]line [13:17:30]line [13:17:30]written 0, free lines is 3181 [13:17:30]MH_Cut [13:17:30]Write to MH i2c: D1 01 00 F0 83 01 45 [13:17:30]Write i2c OK [13:17:30]MH_I2C_Read... [13:17:30]Read from MH i2c: D1 [13:17:30]MH_I2C_Read... [13:17:30]Read from MH i2c: D1 01 00 [13:17:30]MH_I2C_Read... [13:17:30]Read from MH i2c: D1 01 00 F0 83 00 44 [13:17:30]Write to MH i2c: 01 00 00 F1 83 74 [13:17:30]Write i2c OK [13:17:30]MH_I2C_Read... [13:17:30]OFD Sender: No OFD packet to send [13:17:31]*** Cut start [13:17:31]*** Purtial cut [13:17:31]*** Stage 1: CUTSNS_PIN = 1 [13:17:33]Read from MH i2c: 01 [13:17:33]MH_I2C_Read... [13:17:33]*** Stop cut motor [13:17:33]*** Cut end [13:17:33]Read from MH i2c: 01 07 00 [13:17:33]MH_I2C_Read... [13:17:33]Read from MH i2c: 01 07 00 F1 83 00 00 00 00 00 FF 0F 89 [13:17:33]process_action close_receipt done [13:17:33]requested_data is exist [13:17:33]produce_requested_data [13:17:33]requested_item fm.sn is exist - process it [13:17:33]wFMCommunicate request_size=4 [13:17:33]MH_SAM_APDU [13:17:33]CAPDU: 80 11 00 00 [13:17:33]Write to MH i2c: E2 08 00 F2 83 80 11 00 00 00 00 00 00 EF [13:17:33]Write i2c OK [13:17:33]MH_I2C_Read... [13:17:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:33]Read from MH i2c: E2 [13:17:33]MH_I2C_Read... [13:17:33]Read from MH i2c: E2 17 00 [13:17:33]MH_I2C_Read... [13:17:33]Read from MH i2c: E2 17 00 F2 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 3C [13:17:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:17:33]wFMCommunicate OK [13:17:33]requested_item fd.num is exist - process it [13:17:33]SAM_PROTO_GetFieldsCounters [13:17:33]wFMCommunicate request_size=4 [13:17:33]MH_SAM_APDU [13:17:33]CAPDU: 80 13 00 00 [13:17:33]Write to MH i2c: E2 08 00 F3 83 80 13 00 00 00 00 00 00 F2 [13:17:33]Write i2c OK [13:17:33]MH_I2C_Read... [13:17:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:33]Read from MH i2c: E2 [13:17:33]MH_I2C_Read... [13:17:33]Read from MH i2c: E2 62 00 [13:17:33]MH_I2C_Read... [13:17:33]Read from MH i2c: E2 62 00 F3 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 54 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [13: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 54 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:17:33]wFMCommunicate OK [13:17:33]SAM_PROTO_GetFieldsCounters done [13:17:33]requested_item shift.num is exist - process it [13:17:33]requested_item shift.opened is exist - process it [13:17:33]req_shift_opened [13:17:33]FM_GetShiftState [13:17:33]SAM_PROTO_GetShiftState [13:17:33]wFMCommunicate request_size=4 [13:17:33]MH_SAM_APDU [13:17:33]CAPDU: 80 13 01 00 [13:17:33]Write to MH i2c: E2 08 00 F4 83 80 13 01 00 00 00 00 00 F4 [13:17:33]Write i2c OK [13:17:33]MH_I2C_Read... [13:17:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:33]Read from MH i2c: E2 [13:17:33]MH_I2C_Read... [13:17:33]Read from MH i2c: E2 0E 00 [13:17:33]MH_I2C_Read... [13:17:33]Read from MH i2c: E2 0E 00 F4 83 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 31 [13:17:33]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:17:33]wFMCommunicate OK [13:17:33]SAM_PROTO_GetShiftState done [13:17:33]FM_GetShiftState done [13:17:33]req_shift_opened done [13:17:33]requested_item shift.open_date is exist - process it [13:17:33]req_shift_open_date [13:17:33]req_shift_open_date done [13:17:33]produce_requested_data done [13:17:33]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260692,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [13:17:33]process_action_free close_receipt [13:17:33]json_value_free [13:17:33]json_value_free done [13:17:33]process_json_proto returns [13:17:33]Send response to host [13:17:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260692,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [13:17:33]free response buf [13:17:33]execute_script done [13:17:33]execute_script returns [13:17:33]free content buf [13:17:33]Sock 7.Close socket [13:17:33]Sock 7.Thread stoped [13:17:35]OFD Sender: No OFD packet to send [13:17:40]OFD Sender: No OFD packet to send [13:17:45]OFD Sender: No OFD packet to send [13:17:50]OFD Sender: No OFD packet to send [13:17:55]OFD Sender: No OFD packet to send [13:18:00]OFD Sender: No OFD packet to send [13:18:05]OFD Sender: No OFD packet to send [13:18:10]OFD Sender: No OFD packet to send [13:18:15]OFD Sender: No OFD packet to send [13:18:20]OFD Sender: No OFD packet to send [13:18:25]OFD Sender: No OFD packet to send [13:18:30]OFD Sender: No OFD packet to send [13:18:35]OFD Sender: No OFD packet to send [13:18:40]OFD Sender: No OFD packet to send [13:18:44]accept exits with 9 [13:18:44]New connection [13:18:44]New thread 3066617188 created [13:18:44]Thread 3066473828 joined [13:18:44]Waiting for new connection... [13:18:44] Sock 9.Parse request [13:18:44]Sock 9.Check first char [13:18:44]Sock 9.First char is OK [13:18:44]request: POST /json_proto HTTP/1.0 [13:18:44]Method: POST [13:18:44]URL: /json_proto [13:18:44]Method is POST - this is cgi request [13:18:44]url: /json_proto [13:18:44]query_string will be loaded in cgi processing [13:18:44]execute_cgi json_proto POST (null) [13:18:44]execute_cgi path=json_proto method=POST [13:18:44]POST find Content-Length [13:18:44]Host: 172.17.55.133:8080 [13:18:44]Content-Length: 678 [13:18:44]Content-Type: application/json [13:18:44] [13:18:44]POST finish read [13:18:44]Found Content-Length = 678 [13:18:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:18:44]execute_script... [13:18:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:18:44]POST & json_proto [13:18:44]process_json_proto [13:18:44]json parsed OK: [13:18:44]protocol is kg_v1.0 [13:18:44]action value=close_receipt [13:18:44]process_action close_receipt [13:18:44]cmd_close_receipt [13:18:44]MH_GetDate [13:18:44]Write to MH i2c: F0 00 00 F5 83 67 [13:18:44]Write i2c OK [13:18:44]MH_I2C_Read... [13:18:44]Read from MH i2c: F0 [13:18:44]MH_I2C_Read... [13:18:44]Read from MH i2c: F0 09 00 [13:18:44]MH_I2C_Read... [13:18:44]Read from MH i2c: F0 09 00 F5 83 00 B9 F4 C1 66 34 48 D8 65 FD [13:18:44]GetLastDocTimeStamp 1723987052 [13:18:44]current date 1723987129 [13:18:44]FM_GetShiftState [13:18:44]SAM_PROTO_GetShiftState [13:18:44]wFMCommunicate request_size=4 [13:18:44]MH_SAM_APDU [13:18:44]CAPDU: 80 13 01 00 [13:18:44]Write to MH i2c: E2 08 00 F6 83 80 13 01 00 00 00 00 00 F6 [13:18:44]Write i2c OK [13:18:44]MH_I2C_Read... [13:18:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:44]Read from MH i2c: E2 [13:18:44]MH_I2C_Read... [13:18:44]Read from MH i2c: E2 0E 00 [13:18:44]MH_I2C_Read... [13:18:44]Read from MH i2c: E2 0E 00 F6 83 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 33 [13:18:44]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:18:44]wFMCommunicate OK [13:18:44]SAM_PROTO_GetShiftState done [13:18:44]FM_GetShiftState done [13:18:44]opened in 1723940556 [13:18:44]opened+sec_in_day 1724026956 [13:18:44]quantity*price = 40002 [13:18:44]sum+1 = 40003 [13:18:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 251 18.08.2024 13:18 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260693 ФПД: 149543117230823 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T131849&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260693&fm=149543117230823&tin=02508201610067®Number=0000000000091865&sum=40000 [13:18:45]StoreToDocumentArchive [13:18:45]shift 449 fd 260693 [13:18:45]save to /storage/0449/doc_00260693 [13:18:45]save last doc name /storage/0449/doc_00260693 to /storage/kkm_last_doc_name [13:18:45]save OK [13:18:45]Clear old archive folders... [13:18:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:18:45]tlvbuf is 004333F0 [13:18:45]SAM_PROTO_ClearQueue [13:18:45]wFMCommunicate request_size=4 [13:18:45]MH_SAM_APDU [13:18:45]CAPDU: 80 09 00 00 [13:18:45]Write to MH i2c: E2 08 00 03 84 80 09 00 00 00 00 00 00 F9 [13:18:45]Write i2c OK [13:18:45]MH_I2C_Read... [13:18:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:18:45]Read from MH i2c: E2 [13:18:45]MH_I2C_Read... [13:18:45]Read from MH i2c: E2 03 00 [13:18:45]MH_I2C_Read... [13:18:45]Read from MH i2c: E2 03 00 03 84 00 90 00 FB [13:18:45]RAPDU: 90 00 [13:18:45]wFMCommunicate OK [13:18:45]SAM_PROTO_ClearQueue done [13:18:45]KKMCreateOFDPacket [13:18:45]OFDProtocolAddRootSTLVToBuf [13:18:45]FM_MakeSignedData [13:18:45]FM_MakeSignedData [13:18:45]SAM_PROTO_SignData [13:18:45]wFMCommunicate request_size=4 [13:18:45]MH_SAM_APDU [13:18:45]CAPDU: 80 0D 01 02 [13:18:45]Write to MH i2c: E2 08 00 04 84 80 0D 01 02 00 00 00 00 01 [13:18:45]Write i2c OK [13:18:45]MH_I2C_Read... [13:18:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:18:45]Read from MH i2c: E2 [13:18:45]MH_I2C_Read... [13:18:45]Read from MH i2c: E2 03 00 [13:18:45]MH_I2C_Read... [13:18:45]Read from MH i2c: E2 03 00 04 84 00 90 00 FC [13:18:45]RAPDU: 90 00 [13:18:45]wFMCommunicate OK [13:18:45]wFMCommunicate request_size=255 [13:18:45]MH_SAM_APDU [13:18:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 B9 F4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 55 FA 03 00 35 04 06 00 88 [13:18:45]Write to MH i2c: E2 02 01 05 84 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 B9 F4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 55 FA 03 00 35 04 06 00 88 00 00 CE [13:18:45]Write i2c OK [13:18:45]MH_I2C_Read... [13:18:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:45]Read from MH i2c: E2 [13:18:45]MH_I2C_Read... [13:18:45]Read from MH i2c: E2 03 00 [13:18:45]MH_I2C_Read... [13:18:45]Read from MH i2c: E2 03 00 05 84 00 90 00 FD [13:18:45]RAPDU: 90 00 [13:18:45]wFMCommunicate OK [13:18:45]wFMCommunicate request_size=10 [13:18:45]MH_SAM_APDU [13:18:45]CAPDU: 80 0D 02 02 05 02 38 61 92 E7 [13:18:45]Write to MH i2c: E2 0D 00 06 84 80 0D 02 02 05 00 02 38 61 92 E7 00 00 22 [13:18:45]Write i2c OK [13:18:45]MH_I2C_Read... [13:18:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:45]Read from MH i2c: E2 [13:18:45]MH_I2C_Read... [13:18:45]Read from MH i2c: E2 03 00 [13:18:45]MH_I2C_Read... [13:18:45]Read from MH i2c: E2 03 00 06 84 00 90 00 FE [13:18:45]RAPDU: 90 00 [13:18:45]wFMCommunicate OK [13:18:45]wFMCommunicate request_size=4 [13:18:45]MH_SAM_APDU [13:18:45]CAPDU: 80 0D 03 02 [13:18:45]Write to MH i2c: E2 08 00 07 84 80 0D 03 02 00 00 00 00 06 [13:18:45]Write i2c OK [13:18:45]MH_I2C_Read... [13:18:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:18:46]Read from MH i2c: E2 [13:18:46]MH_I2C_Read... [13:18:46]Read from MH i2c: E2 0B 00 [13:18:46]MH_I2C_Read... [13:18:46]Read from MH i2c: E2 0B 00 07 84 00 8D 70 E3 BB C5 F8 FB 09 90 00 63 [13:18:46]RAPDU: 8D 70 E3 BB C5 F8 FB 09 90 00 [13:18:46]wFMCommunicate OK [13:18:46]SAM_PROTO_SignData done [13:18:46]FM_MakeSignedData done [13:18:46]CreateOFDProtocolMessage [13:18:46]wFMCommunicate request_size=4 [13:18:46]MH_SAM_APDU [13:18:46]CAPDU: 80 11 00 00 [13:18:46]Write to MH i2c: E2 08 00 08 84 80 11 00 00 00 00 00 00 06 [13:18:46]Write i2c OK [13:18:46]MH_I2C_Read... [13:18:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:46]Read from MH i2c: E2 [13:18:46]MH_I2C_Read... [13:18:46]Read from MH i2c: E2 17 00 [13:18:46]MH_I2C_Read... [13:18:46]Read from MH i2c: E2 17 00 08 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 53 [13:18:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:18:46]wFMCommunicate OK [13:18:46]CreateOFDProtocolMessage done [13:18:46]OFDSenderStorePacket 260693 [13:18:46]StoreOFDPacket docnum=260693 [13:18:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 8C 1B 07 01 DF 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 B9 F4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 55 FA 03 00 35 04 06 00 88 02 38 61 92 E7 8D 70 E3 BB C5 F8 FB 09 [13:18:46]CheckFolder [13:18:46]dirname=/storage/ofd_packets [13:18:46]CheckFolder done [13:18:46]ProducePacketName [13:18:46]name=ofd_packets/00260693 [13:18:46]NVStorageSaveData ofd_packets/00260693 [13:18:46]File name is /storage/ofd_packets/00260693 [13:18:46]Write 301 bytes [13:18:46]NVStorageSaveData done [13:18:46]OFDSenderStorePacket done [13:18:46]KKMCreateOFDPacket done [13:18:46]NVStorageSaveData kkm_last_timestamp [13:18:46]File name is /storage/kkm_last_timestamp [13:18:46]Write 4 bytes [13:18:46]NVStorageSaveData done [13:18:46]ExternCall_PrintAddStr [13:18:46]wPrintStart [13:18:46]Write to MH i2c: 01 00 00 09 84 8D [13:18:46]Write i2c OK [13:18:46]MH_I2C_Read... [13:18:46]Read from MH i2c: 01 [13:18:46]MH_I2C_Read... [13:18:46]Read from MH i2c: 01 07 00 [13:18:46]MH_I2C_Read... [13:18:46]Read from MH i2c: 01 07 00 09 84 00 00 00 00 00 FF 0F A2 [13:18:46]RasterBufferAndPrint [13:18:46]line Счет N : (1)1036243 [13:18:46]line ИНН: 02508201610067 [13:18:46]line Контрольно-Кассовый Чек [13:18:46]line ПРОДАЖА [13:18:46]line ТРК (МРК, ГНК) : 22 [13:18:46]line Товар: 2710124130 [13:18:46]line Аи-92-К-5 [13:18:46]line 5.900 * 67.80 [13:18:46]line = 400.02 [13:18:46]line НДС 12% НСП 1% [13:18:46]line > о реализуемом товаре [13:18:46]line ОКРУГЛЕНИЕ: -0.02 [13:18:46]line ИТОГО: 400.00 [13:18:46]line Внесено: 400.00 [13:18:46]line СДАЧА: 0.00 [13:18:46]line НСП 1% : 3.54 [13:18:46]line НДС 12% : 42.48 [13:18:46]line Наличными: 400.00 [13:18:46]line Безнал.: 0.00 [13:18:46]line Место: АЗС № 94 "Партнер Нефть" [13:18:46]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [13:18:46]line СНО: Общий режим [13:18:46]line Чек 251 18.08.2024 13:18 [13:18:46]line Смена: 449 ФФД: 1.0 [13:18:46]line ЗНМ: 0300000099 [13:18:46]line РНМ: 0000000000091865 [13:18:46]line Версия ККМ: 001 [13:18:46]line ФМ: 0000000000871820 [13:18:46]line ФД: 260693 [13:18:46]line ФПД: 149543117230823 [13:18:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T131849&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260693&fm=149543117230823&tin=02508201610067®Number=0000000000091865&sum=40000 [13:18:46]OFD Sender: Processing packet 260693 [packets to send 192, broken 191] [13:18:46]ProducePacketName [13:18:46]name=ofd_packets/00260693 [13:18:46]OFD Sender: To server: pG, [13:18:46]CommunicateWithHost lk.salyk.kg:30040 [13:18:46]ConnectInit lk.salyk.kg [13:18:46]written 0, free lines is 4095 [13:18:46]Connected sock=10 [13:18: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 30 0F 01 00 00 8C 1B 07 01 DF 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 B9 F4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 55 FA 03 00 35 04 06 00 88 02 38 61 92 E7 8D 70 E3 BB C5 F8 FB 09 [13:18: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 30 4F 00 00 00 57 78 47 00 E0 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 55 FA 03 00 F4 03 04 00 0E 9E C1 66 B6 04 01 00 00 E7 0A E2 81 D4 9A 00 F7 [13:18:46]CommunicateWithHost err = 0 [13:18:46]CheckOFDResponse [13:18:46]1017 (14) - 77093643461234 [13:18:46]1041 (16) - 0000000000871820 [13:18:46]1040 (4) - 260693 [13:18:46]1012 (4) - 18.08.2024 07:09 [13:18:46]1206 (1) - 0 [13:18:46]OFD Sender: Remove packet 260693 [13:18:46]ProducePacketName [13:18:46]name=ofd_packets/00260693 [13:18:46]NVStorageDeleteData [13:18:46]Write to MH i2c: 01 00 00 34 84 B8 [13:18:46]Write i2c OK [13:18:46]MH_I2C_Read... [13:18:46]Read from MH i2c: 01 [13:18:46]MH_I2C_Read... [13:18:46]Read from MH i2c: 01 07 00 [13:18:46]MH_I2C_Read... [13:18:46]Read from MH i2c: 01 07 00 34 84 00 00 00 00 00 76 0C 41 [13:18:46]RasterBufferAndPrint [13:18:46]line [13:18:46]line [13:18:46]line [13:18:46]line [13:18:46]line [13:18:46]written 0, free lines is 3192 [13:18:46]MH_Cut [13:18:46]Write to MH i2c: D1 01 00 3B 84 01 91 [13:18:46]Write i2c OK [13:18:46]MH_I2C_Read... [13:18:46]Read from MH i2c: D1 [13:18:46]MH_I2C_Read... [13:18:46]Read from MH i2c: D1 01 00 [13:18:46]MH_I2C_Read... [13:18:46]Read from MH i2c: D1 01 00 3B 84 00 90 [13:18:46]Write to MH i2c: 01 00 00 3C 84 C0 [13:18:46]Write i2c OK [13:18:46]MH_I2C_Read... [13:18:47]OFD Sender: No OFD packet to send [13:18:48]*** Cut start [13:18:48]*** Purtial cut [13:18:48]*** Stage 1: CUTSNS_PIN = 1 [13:18:50]Read from MH i2c: 01 [13:18:50]MH_I2C_Read... [13:18:50]*** Stop cut motor [13:18:50]*** Cut end [13:18:50]Read from MH i2c: 01 07 00 [13:18:50]MH_I2C_Read... [13:18:50]Read from MH i2c: 01 07 00 3C 84 00 00 00 00 00 FF 0F D5 [13:18:50]process_action close_receipt done [13:18:50]requested_data is exist [13:18:50]produce_requested_data [13:18:50]requested_item fm.sn is exist - process it [13:18:50]wFMCommunicate request_size=4 [13:18:50]MH_SAM_APDU [13:18:50]CAPDU: 80 11 00 00 [13:18:50]Write to MH i2c: E2 08 00 3D 84 80 11 00 00 00 00 00 00 3B [13:18:50]Write i2c OK [13:18:50]MH_I2C_Read... [13:18:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:50]Read from MH i2c: E2 [13:18:50]MH_I2C_Read... [13:18:50]Read from MH i2c: E2 17 00 [13:18:50]MH_I2C_Read... [13:18:50]Read from MH i2c: E2 17 00 3D 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 88 [13:18:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:18:50]wFMCommunicate OK [13:18:50]requested_item fd.num is exist - process it [13:18:50]SAM_PROTO_GetFieldsCounters [13:18:50]wFMCommunicate request_size=4 [13:18:50]MH_SAM_APDU [13:18:50]CAPDU: 80 13 00 00 [13:18:50]Write to MH i2c: E2 08 00 3E 84 80 13 00 00 00 00 00 00 3E [13:18:50]Write i2c OK [13:18:50]MH_I2C_Read... [13:18:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:18:50]Read from MH i2c: E2 [13:18:50]MH_I2C_Read... [13:18:50]Read from MH i2c: E2 62 00 [13:18:50]MH_I2C_Read... [13:18:50]Read from MH i2c: E2 62 00 3E 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 55 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [13:18: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 55 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:18:50]wFMCommunicate OK [13:18:50]SAM_PROTO_GetFieldsCounters done [13:18:50]requested_item shift.num is exist - process it [13:18:50]requested_item shift.opened is exist - process it [13:18:50]req_shift_opened [13:18:50]FM_GetShiftState [13:18:50]SAM_PROTO_GetShiftState [13:18:50]wFMCommunicate request_size=4 [13:18:50]MH_SAM_APDU [13:18:50]CAPDU: 80 13 01 00 [13:18:50]Write to MH i2c: E2 08 00 3F 84 80 13 01 00 00 00 00 00 40 [13:18:50]Write i2c OK [13:18:50]MH_I2C_Read... [13:18:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:50]Read from MH i2c: E2 [13:18:50]MH_I2C_Read... [13:18:50]Read from MH i2c: E2 0E 00 [13:18:50]MH_I2C_Read... [13:18:50]Read from MH i2c: E2 0E 00 3F 84 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 7D [13:18:50]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:18:50]wFMCommunicate OK [13:18:50]SAM_PROTO_GetShiftState done [13:18:50]FM_GetShiftState done [13:18:50]req_shift_opened done [13:18:50]requested_item shift.open_date is exist - process it [13:18:50]req_shift_open_date [13:18:50]req_shift_open_date done [13:18:50]produce_requested_data done [13:18:50]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260693,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [13:18:50]process_action_free close_receipt [13:18:50]json_value_free [13:18:50]json_value_free done [13:18:50]process_json_proto returns [13:18:50]Send response to host [13:18:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260693,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [13:18:50]free response buf [13:18:50]execute_script done [13:18:50]execute_script returns [13:18:50]free content buf [13:18:50]Sock 9.Close socket [13:18:50]Sock 9.Thread stoped [13:18:50]accept exits with 7 [13:18:50]New connection [13:18:50]New thread 3066473828 created [13:18:50]Thread 3066617188 joined [13:18:50]Waiting for new connection... [13:18:50] Sock 7.Parse request [13:18:50]Sock 7.Check first char [13:18:50]Sock 7.First char is OK [13:18:50]request: POST /json_proto HTTP/1.0 [13:18:50]Method: POST [13:18:50]URL: /json_proto [13:18:50]Method is POST - this is cgi request [13:18:50]url: /json_proto [13:18:50]query_string will be loaded in cgi processing [13:18:50]execute_cgi json_proto POST (null) [13:18:50]execute_cgi path=json_proto method=POST [13:18:50]POST find Content-Length [13:18:50]Host: 172.17.55.133:8080 [13:18:50]Content-Length: 683 [13:18:50]Content-Type: application/json [13:18:50] [13:18:50]POST finish read [13:18:50]Found Content-Length = 683 [13:18:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036241", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:50]execute_script... [13:18: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)1036241", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:50]POST & json_proto [13:18:50]process_json_proto [13:18:50]json parsed OK: [13:18:50]protocol is kg_v1.0 [13:18:50]action value=close_receipt [13:18:50]process_action close_receipt [13:18:50]cmd_close_receipt [13:18:50]MH_GetDate [13:18:50]Write to MH i2c: F0 00 00 40 84 B3 [13:18:50]Write i2c OK [13:18:50]MH_I2C_Read... [13:18:50]Read from MH i2c: F0 [13:18:50]MH_I2C_Read... [13:18:50]Read from MH i2c: F0 09 00 [13:18:50]MH_I2C_Read... [13:18:50]Read from MH i2c: F0 09 00 40 84 00 BF F4 C1 66 34 48 D8 65 4F [13:18:50]GetLastDocTimeStamp 1723987129 [13:18:50]current date 1723987135 [13:18:50]FM_GetShiftState [13:18:50]SAM_PROTO_GetShiftState [13:18:50]wFMCommunicate request_size=4 [13:18:50]MH_SAM_APDU [13:18:50]CAPDU: 80 13 01 00 [13:18:50]Write to MH i2c: E2 08 00 41 84 80 13 01 00 00 00 00 00 42 [13:18:50]Write i2c OK [13:18:50]MH_I2C_Read... [13:18:50]Read from MH i2c: E2 [13:18:50]MH_I2C_Read... [13:18:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:50]Read from MH i2c: E2 0E 00 [13:18:50]MH_I2C_Read... [13:18:50]Read from MH i2c: E2 0E 00 41 84 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 7F [13:18:50]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:18:50]wFMCommunicate OK [13:18:50]SAM_PROTO_GetShiftState done [13:18:50]FM_GetShiftState done [13:18:50]opened in 1723940556 [13:18:50]opened+sec_in_day 1724026956 [13:18:50]quantity*price = 100021 [13:18:50]sum+1 = 100023 [13:18:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 252 18.08.2024 13:18 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260694 ФПД: 103885074794990 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T131855&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260694&fm=103885074794990&tin=02508201610067®Number=0000000000091865&sum=100000 [13:18:52]StoreToDocumentArchive [13:18:52]shift 449 fd 260694 [13:18:52]save to /storage/0449/doc_00260694 [13:18:52]save last doc name /storage/0449/doc_00260694 to /storage/kkm_last_doc_name [13:18:52]save OK [13:18:52]Clear old archive folders... [13:18:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:18:52]tlvbuf is 003FBFE0 [13:18:52]SAM_PROTO_ClearQueue [13:18:52]wFMCommunicate request_size=4 [13:18:52]MH_SAM_APDU [13:18:52]CAPDU: 80 09 00 00 [13:18:52]Write to MH i2c: E2 08 00 4E 84 80 09 00 00 00 00 00 00 44 [13:18:52]Write i2c OK [13:18:52]MH_I2C_Read... [13:18:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:18:52]Read from MH i2c: E2 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: E2 03 00 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: E2 03 00 4E 84 00 90 00 46 [13:18:52]RAPDU: 90 00 [13:18:52]wFMCommunicate OK [13:18:52]SAM_PROTO_ClearQueue done [13:18:52]KKMCreateOFDPacket [13:18:52]OFDProtocolAddRootSTLVToBuf [13:18:52]FM_MakeSignedData [13:18:52]FM_MakeSignedData [13:18:52]SAM_PROTO_SignData [13:18:52]wFMCommunicate request_size=4 [13:18:52]MH_SAM_APDU [13:18:52]CAPDU: 80 0D 01 02 [13:18:52]Write to MH i2c: E2 08 00 4F 84 80 0D 01 02 00 00 00 00 4C [13:18:52]Write i2c OK [13:18:52]MH_I2C_Read... [13:18:52]OFD Sender: No OFD packet to send [13:18:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:18:52]Read from MH i2c: E2 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: E2 03 00 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: E2 03 00 4F 84 00 90 00 47 [13:18:52]RAPDU: 90 00 [13:18:52]wFMCommunicate OK [13:18:52]wFMCommunicate request_size=255 [13:18:52]MH_SAM_APDU [13:18: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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 BF F4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 56 FA 03 00 35 04 06 00 5E [13:18:52]Write to MH i2c: E2 02 01 50 84 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 BF F4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 56 FA 03 00 35 04 06 00 5E 00 00 3F [13:18:52]Write i2c OK [13:18:52]MH_I2C_Read... [13:18:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:52]Read from MH i2c: E2 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: E2 03 00 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: E2 03 00 50 84 00 90 00 48 [13:18:52]RAPDU: 90 00 [13:18:52]wFMCommunicate OK [13:18:52]wFMCommunicate request_size=10 [13:18:52]MH_SAM_APDU [13:18:52]CAPDU: 80 0D 02 02 05 7B A0 FB 09 EE [13:18:52]Write to MH i2c: E2 0D 00 51 84 80 0D 02 02 05 00 7B A0 FB 09 EE 00 00 66 [13:18:52]Write i2c OK [13:18:52]MH_I2C_Read... [13:18:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:52]Read from MH i2c: E2 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: E2 03 00 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: E2 03 00 51 84 00 90 00 49 [13:18:52]RAPDU: 90 00 [13:18:52]wFMCommunicate OK [13:18:52]wFMCommunicate request_size=4 [13:18:52]MH_SAM_APDU [13:18:52]CAPDU: 80 0D 03 02 [13:18:52]Write to MH i2c: E2 08 00 52 84 80 0D 03 02 00 00 00 00 51 [13:18:52]Write i2c OK [13:18:52]MH_I2C_Read... [13:18:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:18:52]Read from MH i2c: E2 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: E2 0B 00 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: E2 0B 00 52 84 00 A1 6F 1B 2F 51 9A 72 D4 90 00 DD [13:18:52]RAPDU: A1 6F 1B 2F 51 9A 72 D4 90 00 [13:18:52]wFMCommunicate OK [13:18:52]SAM_PROTO_SignData done [13:18:52]FM_MakeSignedData done [13:18:52]CreateOFDProtocolMessage [13:18:52]wFMCommunicate request_size=4 [13:18:52]MH_SAM_APDU [13:18:52]CAPDU: 80 11 00 00 [13:18:52]Write to MH i2c: E2 08 00 53 84 80 11 00 00 00 00 00 00 51 [13:18:52]Write i2c OK [13:18:52]MH_I2C_Read... [13:18:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:52]Read from MH i2c: E2 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: E2 17 00 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: E2 17 00 53 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 9E [13:18:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:18:52]wFMCommunicate OK [13:18:52]CreateOFDProtocolMessage done [13:18:52]OFDSenderStorePacket 260694 [13:18:52]StoreOFDPacket docnum=260694 [13:18:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 B4 D9 07 01 F5 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 BF F4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 56 FA 03 00 35 04 06 00 5E 7B A0 FB 09 EE A1 6F 1B 2F 51 9A 72 D4 [13:18:52]CheckFolder [13:18:52]dirname=/storage/ofd_packets [13:18:52]CheckFolder done [13:18:52]ProducePacketName [13:18:52]name=ofd_packets/00260694 [13:18:52]NVStorageSaveData ofd_packets/00260694 [13:18:52]File name is /storage/ofd_packets/00260694 [13:18:52]Write 301 bytes [13:18:52]NVStorageSaveData done [13:18:52]OFDSenderStorePacket done [13:18:52]KKMCreateOFDPacket done [13:18:52]NVStorageSaveData kkm_last_timestamp [13:18:52]File name is /storage/kkm_last_timestamp [13:18:52]Write 4 bytes [13:18:52]NVStorageSaveData done [13:18:52]ExternCall_PrintAddStr [13:18:52]wPrintStart [13:18:52]Write to MH i2c: 01 00 00 54 84 D8 [13:18:52]Write i2c OK [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: 01 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: 01 07 00 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: 01 07 00 54 84 00 00 00 00 00 FF 0F ED [13:18:52]RasterBufferAndPrint [13:18:52]line Счет N : (1)1036241 [13:18:52]line ИНН: 02508201610067 [13:18:52]line Контрольно-Кассовый Чек [13:18:52]line ПРОДАЖА [13:18:52]line ТРК (МРК, ГНК) : 13 [13:18:52]line Товар: 2710124500 [13:18:52]line Аи-95-К-5 [13:18:52]line 13.480 * 74.20 [13:18:52]line = 1000.22 [13:18:52]line НДС 12% НСП 1% [13:18:52]line > о реализуемом товаре [13:18:52]line ОКРУГЛЕНИЕ: -0.22 [13:18:52]line ИТОГО: 1000.00 [13:18:52]line Внесено: 1000.00 [13:18:52]line СДАЧА: 0.00 [13:18:52]line НСП 1% : 8.85 [13:18:52]line НДС 12% : 106.22 [13:18:52]line Наличными: 1000.00 [13:18:52]line Безнал.: 0.00 [13:18:52]line Место: АЗС № 94 "Партнер Нефть" [13:18:52]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [13:18:52]line СНО: Общий режим [13:18:52]line Чек 252 18.08.2024 13:18 [13:18:52]line Смена: 449 ФФД: 1.0 [13:18:52]line ЗНМ: 0300000099 [13:18:52]line РНМ: 0000000000091865 [13:18:52]line Версия ККМ: 001 [13:18:52]line ФМ: 0000000000871820 [13:18:52]line ФД: 260694 [13:18:52]line ФПД: 103885074794990 [13:18:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T131855&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260694&fm=103885074794990&tin=02508201610067®Number=0000000000091865&sum=100000 [13:18:52]written 0, free lines is 4095 [13:18:52]OFD Sender: Processing packet 260694 [packets to send 192, broken 191] [13:18:52]ProducePacketName [13:18:52]name=ofd_packets/00260694 [13:18:52]OFD Sender: To server: pG, [13:18:52]CommunicateWithHost lk.salyk.kg:30040 [13:18:52]ConnectInit lk.salyk.kg [13:18:52]Connected sock=10 [13:18: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 30 0F 01 00 00 B4 D9 07 01 F5 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 BF F4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 56 FA 03 00 35 04 06 00 5E 7B A0 FB 09 EE A1 6F 1B 2F 51 9A 72 D4 [13:18: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 30 4F 00 00 00 21 EC 47 00 8A 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 30 10 04 04 00 56 FA 03 00 F4 03 04 00 14 9E C1 66 B6 04 01 00 00 2E F2 64 26 1C C3 76 44 [13:18:53]CommunicateWithHost err = 0 [13:18:53]CheckOFDResponse [13:18:53]1017 (14) - 77093643461234 [13:18:53]1041 (16) - 0000000000871820 [13:18:53]1040 (4) - 260694 [13:18:53]1012 (4) - 18.08.2024 07:09 [13:18:53]1206 (1) - 0 [13:18:53]OFD Sender: Remove packet 260694 [13:18:53]ProducePacketName [13:18:53]name=ofd_packets/00260694 [13:18:53]NVStorageDeleteData [13:18:53]Write to MH i2c: 01 00 00 7F 84 03 [13:18:53]Write i2c OK [13:18:53]MH_I2C_Read... [13:18:53]Read from MH i2c: 01 [13:18:53]MH_I2C_Read... [13:18:53]Read from MH i2c: 01 07 00 [13:18:53]MH_I2C_Read... [13:18:53]Read from MH i2c: 01 07 00 7F 84 00 00 00 00 00 77 0C 8D [13:18:53]RasterBufferAndPrint [13:18:53]line [13:18:53]line [13:18:53]line [13:18:53]line [13:18:53]line [13:18:53]written 0, free lines is 3196 [13:18:53]MH_Cut [13:18:53]Write to MH i2c: D1 01 00 86 84 01 DC [13:18:53]Write i2c OK [13:18:53]MH_I2C_Read... [13:18:53]Read from MH i2c: D1 [13:18:53]MH_I2C_Read... [13:18:53]Read from MH i2c: D1 01 00 [13:18:53]MH_I2C_Read... [13:18:53]Read from MH i2c: D1 01 00 86 84 00 DB [13:18:53]Write to MH i2c: 01 00 00 87 84 0B [13:18:53]Write i2c OK [13:18:53]MH_I2C_Read... [13:18:53]OFD Sender: No OFD packet to send [13:18:54]*** Cut start [13:18:54]*** Purtial cut [13:18:54]*** Stage 1: CUTSNS_PIN = 1 [13:18:56]Read from MH i2c: 01 [13:18:56]MH_I2C_Read... [13:18:56]*** Stop cut motor [13:18:56]*** Cut end [13:18:56]Read from MH i2c: 01 07 00 [13:18:56]MH_I2C_Read... [13:18:56]Read from MH i2c: 01 07 00 87 84 00 00 00 00 00 FF 0F 20 [13:18:56]process_action close_receipt done [13:18:56]requested_data is exist [13:18:56]produce_requested_data [13:18:56]requested_item fm.sn is exist - process it [13:18:56]wFMCommunicate request_size=4 [13:18:56]MH_SAM_APDU [13:18:56]CAPDU: 80 11 00 00 [13:18:56]Write to MH i2c: E2 08 00 88 84 80 11 00 00 00 00 00 00 86 [13:18:56]Write i2c OK [13:18:56]MH_I2C_Read... [13:18:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:56]Read from MH i2c: E2 [13:18:56]MH_I2C_Read... [13:18:56]Read from MH i2c: E2 17 00 [13:18:56]MH_I2C_Read... [13:18:56]Read from MH i2c: E2 17 00 88 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D3 [13:18:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:18:56]wFMCommunicate OK [13:18:56]requested_item fd.num is exist - process it [13:18:56]SAM_PROTO_GetFieldsCounters [13:18:56]wFMCommunicate request_size=4 [13:18:56]MH_SAM_APDU [13:18:56]CAPDU: 80 13 00 00 [13:18:56]Write to MH i2c: E2 08 00 89 84 80 13 00 00 00 00 00 00 89 [13:18:56]Write i2c OK [13:18:56]MH_I2C_Read... [13:18:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:18:56]Read from MH i2c: E2 [13:18:56]MH_I2C_Read... [13:18:56]Read from MH i2c: E2 62 00 [13:18:56]MH_I2C_Read... [13:18:56]Read from MH i2c: E2 62 00 89 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 56 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [13:18: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 56 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:18:56]wFMCommunicate OK [13:18:56]SAM_PROTO_GetFieldsCounters done [13:18:56]requested_item shift.num is exist - process it [13:18:56]requested_item shift.opened is exist - process it [13:18:56]req_shift_opened [13:18:56]FM_GetShiftState [13:18:56]SAM_PROTO_GetShiftState [13:18:56]wFMCommunicate request_size=4 [13:18:56]MH_SAM_APDU [13:18:56]CAPDU: 80 13 01 00 [13:18:56]Write to MH i2c: E2 08 00 8A 84 80 13 01 00 00 00 00 00 8B [13:18:56]Write i2c OK [13:18:56]MH_I2C_Read... [13:18:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:56]Read from MH i2c: E2 [13:18:56]MH_I2C_Read... [13:18:56]Read from MH i2c: E2 0E 00 [13:18:56]MH_I2C_Read... [13:18:56]Read from MH i2c: E2 0E 00 8A 84 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C8 [13:18:56]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:18:56]wFMCommunicate OK [13:18:56]SAM_PROTO_GetShiftState done [13:18:56]FM_GetShiftState done [13:18:56]req_shift_opened done [13:18:56]requested_item shift.open_date is exist - process it [13:18:56]req_shift_open_date [13:18:56]req_shift_open_date done [13:18:56]produce_requested_data done [13:18:56]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260694,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [13:18:56]process_action_free close_receipt [13:18:56]json_value_free [13:18:56]json_value_free done [13:18:56]process_json_proto returns [13:18:56]Send response to host [13:18:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260694,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [13:18:56]free response buf [13:18:56]execute_script done [13:18:56]execute_script returns [13:18:56]free content buf [13:18:56]Sock 7.Close socket [13:18:56]Sock 7.Thread stoped [13:18:56]accept exits with 9 [13:18:56]New connection [13:18:56]New thread 3066617188 created [13:18:56]Thread 3066473828 joined [13:18:56]Waiting for new connection... [13:18:56] Sock 9.Parse request [13:18:56]Sock 9.Check first char [13:18:56]Sock 9.First char is OK [13:18:56]request: POST /json_proto HTTP/1.0 [13:18:56]Method: POST [13:18:56]URL: /json_proto [13:18:56]Method is POST - this is cgi request [13:18:56]url: /json_proto [13:18:56]query_string will be loaded in cgi processing [13:18:56]execute_cgi json_proto POST (null) [13:18:56]execute_cgi path=json_proto method=POST [13:18:56]POST find Content-Length [13:18:56]Host: 172.17.55.133:8080 [13:18:56]Content-Length: 678 [13:18:56]Content-Type: application/json [13:18:56] [13:18:56]POST finish read [13:18:56]Found Content-Length = 678 [13:18:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:18:56]execute_script... [13:18: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)1036242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:18:56]POST & json_proto [13:18:56]process_json_proto [13:18:56]json parsed OK: [13:18:56]protocol is kg_v1.0 [13:18:56]action value=close_receipt [13:18:56]process_action close_receipt [13:18:56]cmd_close_receipt [13:18:56]MH_GetDate [13:18:56]Write to MH i2c: F0 00 00 8B 84 FE [13:18:56]Write i2c OK [13:18:56]MH_I2C_Read... [13:18:56]Read from MH i2c: F0 [13:18:56]MH_I2C_Read... [13:18:56]Read from MH i2c: F0 09 00 [13:18:56]MH_I2C_Read... [13:18:56]Read from MH i2c: F0 09 00 8B 84 00 C5 F4 C1 66 34 48 D8 65 A0 [13:18:56]GetLastDocTimeStamp 1723987135 [13:18:56]current date 1723987141 [13:18:56]FM_GetShiftState [13:18:56]SAM_PROTO_GetShiftState [13:18:56]wFMCommunicate request_size=4 [13:18:56]MH_SAM_APDU [13:18:56]CAPDU: 80 13 01 00 [13:18:56]Write to MH i2c: E2 08 00 8C 84 80 13 01 00 00 00 00 00 8D [13:18:56]Write i2c OK [13:18:56]MH_I2C_Read... [13:18:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:57]Read from MH i2c: E2 [13:18:57]MH_I2C_Read... [13:18:57]Read from MH i2c: E2 0E 00 [13:18:57]MH_I2C_Read... [13:18:57]Read from MH i2c: E2 0E 00 8C 84 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 CA [13:18:57]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:18:57]wFMCommunicate OK [13:18:57]SAM_PROTO_GetShiftState done [13:18:57]FM_GetShiftState done [13:18:57]opened in 1723940556 [13:18:57]opened+sec_in_day 1724026956 [13:18:57]quantity*price = 50036 [13:18:57]sum+1 = 50037 [13:18:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 253 18.08.2024 13:19 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260695 ФПД: 96903816496697 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T131902&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260695&fm=96903816496697&tin=02508201610067®Number=0000000000091865&sum=50000 [13:18:58]StoreToDocumentArchive [13:18:58]shift 449 fd 260695 [13:18:58]save to /storage/0449/doc_00260695 [13:18:58]save last doc name /storage/0449/doc_00260695 to /storage/kkm_last_doc_name [13:18:58]save OK [13:18:58]Clear old archive folders... [13:18:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:18:58]tlvbuf is 003856F0 [13:18:58]SAM_PROTO_ClearQueue [13:18:58]wFMCommunicate request_size=4 [13:18:58]MH_SAM_APDU [13:18:58]CAPDU: 80 09 00 00 [13:18:58]Write to MH i2c: E2 08 00 99 84 80 09 00 00 00 00 00 00 8F [13:18:58]Write i2c OK [13:18:58]MH_I2C_Read... [13:18:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:18:58]Read from MH i2c: E2 [13:18:58]MH_I2C_Read... [13:18:58]Read from MH i2c: E2 03 00 [13:18:58]MH_I2C_Read... [13:18:58]Read from MH i2c: E2 03 00 99 84 00 90 00 91 [13:18:58]RAPDU: 90 00 [13:18:58]wFMCommunicate OK [13:18:58]SAM_PROTO_ClearQueue done [13:18:58]KKMCreateOFDPacket [13:18:58]OFDProtocolAddRootSTLVToBuf [13:18:58]FM_MakeSignedData [13:18:58]FM_MakeSignedData [13:18:58]SAM_PROTO_SignData [13:18:58]wFMCommunicate request_size=4 [13:18:58]MH_SAM_APDU [13:18:58]CAPDU: 80 0D 01 02 [13:18:58]Write to MH i2c: E2 08 00 9A 84 80 0D 01 02 00 00 00 00 97 [13:18:58]Write i2c OK [13:18:58]MH_I2C_Read... [13:18:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:18:58]Read from MH i2c: E2 [13:18:58]MH_I2C_Read... [13:18:58]Read from MH i2c: E2 03 00 [13:18:58]MH_I2C_Read... [13:18:58]Read from MH i2c: E2 03 00 9A 84 00 90 00 92 [13:18:58]RAPDU: 90 00 [13:18:58]wFMCommunicate OK [13:18:58]wFMCommunicate request_size=255 [13:18:58]MH_SAM_APDU [13:18:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 FD 00 00 00 F4 03 04 00 C6 F4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 57 FA 03 00 35 04 06 00 58 [13:18:58]Write to MH i2c: E2 02 01 9B 84 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 FD 00 00 00 F4 03 04 00 C6 F4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 57 FA 03 00 35 04 06 00 58 00 00 60 [13:18:58]OFD Sender: No OFD packet to send [13:18:58]Write i2c OK [13:18:58]MH_I2C_Read... [13:18:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:59]Read from MH i2c: E2 [13:18:59]MH_I2C_Read... [13:18:59]Read from MH i2c: E2 03 00 [13:18:59]MH_I2C_Read... [13:18:59]Read from MH i2c: E2 03 00 9B 84 00 90 00 93 [13:18:59]RAPDU: 90 00 [13:18:59]wFMCommunicate OK [13:18:59]wFMCommunicate request_size=10 [13:18:59]MH_SAM_APDU [13:18:59]CAPDU: 80 0D 02 02 05 22 2D 8F 46 39 [13:18:59]Write to MH i2c: E2 0D 00 9C 84 80 0D 02 02 05 00 22 2D 8F 46 39 00 00 01 [13:18:59]Write i2c OK [13:18:59]MH_I2C_Read... [13:18:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:59]Read from MH i2c: E2 [13:18:59]MH_I2C_Read... [13:18:59]Read from MH i2c: E2 03 00 [13:18:59]MH_I2C_Read... [13:18:59]Read from MH i2c: E2 03 00 9C 84 00 90 00 94 [13:18:59]RAPDU: 90 00 [13:18:59]wFMCommunicate OK [13:18:59]wFMCommunicate request_size=4 [13:18:59]MH_SAM_APDU [13:18:59]CAPDU: 80 0D 03 02 [13:18:59]Write to MH i2c: E2 08 00 9D 84 80 0D 03 02 00 00 00 00 9C [13:18:59]Write i2c OK [13:18:59]MH_I2C_Read... [13:18:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:18:59]Read from MH i2c: E2 [13:18:59]MH_I2C_Read... [13:18:59]Read from MH i2c: E2 0B 00 [13:18:59]MH_I2C_Read... [13:18:59]Read from MH i2c: E2 0B 00 9D 84 00 F7 38 56 E8 8D A2 D9 8D 90 00 9F [13:18:59]RAPDU: F7 38 56 E8 8D A2 D9 8D 90 00 [13:18:59]wFMCommunicate OK [13:18:59]SAM_PROTO_SignData done [13:18:59]FM_MakeSignedData done [13:18:59]CreateOFDProtocolMessage [13:18:59]wFMCommunicate request_size=4 [13:18:59]MH_SAM_APDU [13:18:59]CAPDU: 80 11 00 00 [13:18:59]Write to MH i2c: E2 08 00 9E 84 80 11 00 00 00 00 00 00 9C [13:18:59]Write i2c OK [13:18:59]MH_I2C_Read... [13:18:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:59]Read from MH i2c: E2 [13:18:59]MH_I2C_Read... [13:18:59]Read from MH i2c: E2 17 00 [13:18:59]MH_I2C_Read... [13:18:59]Read from MH i2c: E2 17 00 9E 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E9 [13:18:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:18:59]wFMCommunicate OK [13:18:59]CreateOFDProtocolMessage done [13:18:59]OFDSenderStorePacket 260695 [13:18:59]StoreOFDPacket docnum=260695 [13:18:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 38 00 07 01 99 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 FD 00 00 00 F4 03 04 00 C6 F4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 57 FA 03 00 35 04 06 00 58 22 2D 8F 46 39 F7 38 56 E8 8D A2 D9 8D [13:18:59]CheckFolder [13:18:59]dirname=/storage/ofd_packets [13:18:59]CheckFolder done [13:18:59]ProducePacketName [13:18:59]name=ofd_packets/00260695 [13:18:59]NVStorageSaveData ofd_packets/00260695 [13:18:59]File name is /storage/ofd_packets/00260695 [13:18:59]Write 301 bytes [13:18:59]NVStorageSaveData done [13:18:59]OFDSenderStorePacket done [13:18:59]KKMCreateOFDPacket done [13:18:59]NVStorageSaveData kkm_last_timestamp [13:18:59]File name is /storage/kkm_last_timestamp [13:18:59]Write 4 bytes [13:18:59]NVStorageSaveData done [13:18:59]ExternCall_PrintAddStr [13:18:59]wPrintStart [13:18:59]Write to MH i2c: 01 00 00 9F 84 23 [13:18:59]Write i2c OK [13:18:59]MH_I2C_Read... [13:18:59]Read from MH i2c: 01 [13:18:59]MH_I2C_Read... [13:18:59]Read from MH i2c: 01 07 00 [13:18:59]MH_I2C_Read... [13:18:59]Read from MH i2c: 01 07 00 9F 84 00 00 00 00 00 FF 0F 38 [13:18:59]RasterBufferAndPrint [13:18:59]line Счет N : (1)1036242 [13:18:59]line ИНН: 02508201610067 [13:18:59]line Контрольно-Кассовый Чек [13:18:59]line ПРОДАЖА [13:18:59]line ТРК (МРК, ГНК) : 32 [13:18:59]line Товар: 2710124130 [13:18:59]line Аи-92-К-5 [13:18:59]line 7.380 * 67.80 [13:18:59]line = 500.36 [13:18:59]line НДС 12% НСП 1% [13:18:59]line > о реализуемом товаре [13:18:59]line ОКРУГЛЕНИЕ: -0.36 [13:18:59]line ИТОГО: 500.00 [13:18:59]line Внесено: 500.00 [13:18:59]line СДАЧА: 0.00 [13:18:59]line НСП 1% : 4.43 [13:18:59]line НДС 12% : 53.14 [13:18:59]line Наличными: 500.00 [13:18:59]line Безнал.: 0.00 [13:18:59]line Место: АЗС № 94 "Партнер Нефть" [13:18:59]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [13:18:59]line СНО: Общий режим [13:18:59]line Чек 253 18.08.2024 13:19 [13:18:59]line Смена: 449 ФФД: 1.0 [13:18:59]line ЗНМ: 0300000099 [13:18:59]line РНМ: 0000000000091865 [13:18:59]line Версия ККМ: 001 [13:18:59]line ФМ: 0000000000871820 [13:18:59]line ФД: 260695 [13:18:59]line ФПД: 96903816496697 [13:18:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T131902&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260695&fm=96903816496697&tin=02508201610067®Number=0000000000091865&sum=50000 [13:18:59]written 0, free lines is 4095 [13:18:59]OFD Sender: Processing packet 260695 [packets to send 192, broken 191] [13:18:59]ProducePacketName [13:18:59]name=ofd_packets/00260695 [13:18:59]OFD Sender: To server: pG, [13:18:59]CommunicateWithHost lk.salyk.kg:30040 [13:18:59]ConnectInit lk.salyk.kg [13:18:59]Connected sock=10 [13:18: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 30 0F 01 00 00 38 00 07 01 99 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 FD 00 00 00 F4 03 04 00 C6 F4 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 57 FA 03 00 35 04 06 00 58 22 2D 8F 46 39 F7 38 56 E8 8D A2 D9 8D [13:18: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 30 4F 00 00 00 4D D3 47 00 40 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 57 FA 03 00 F4 03 04 00 1B 9E C1 66 B6 04 01 00 00 1A 6F C4 C1 D2 DE 0C F8 [13:18:59]CommunicateWithHost err = 0 [13:18:59]CheckOFDResponse [13:18:59]1017 (14) - 77093643461234 [13:18:59]1041 (16) - 0000000000871820 [13:18:59]1040 (4) - 260695 [13:18:59]1012 (4) - 18.08.2024 07:09 [13:18:59]1206 (1) - 0 [13:18:59]OFD Sender: Remove packet 260695 [13:18:59]ProducePacketName [13:18:59]name=ofd_packets/00260695 [13:18:59]NVStorageDeleteData [13:18:59]Write to MH i2c: 01 00 00 CA 84 4E [13:18:59]Write i2c OK [13:18:59]MH_I2C_Read... [13:18:59]Read from MH i2c: 01 [13:18:59]MH_I2C_Read... [13:18:59]Read from MH i2c: 01 07 00 [13:18:59]MH_I2C_Read... [13:18:59]Read from MH i2c: 01 07 00 CA 84 00 00 00 00 00 6E 0C CF [13:18:59]RasterBufferAndPrint [13:18:59]line [13:18:59]line [13:18:59]line [13:18:59]line [13:18:59]line [13:18:59]written 0, free lines is 3191 [13:18:59]MH_Cut [13:18:59]Write to MH i2c: D1 01 00 D1 84 01 27 [13:18:59]Write i2c OK [13:18:59]MH_I2C_Read... [13:18:59]Read from MH i2c: D1 [13:18:59]MH_I2C_Read... [13:18:59]Read from MH i2c: D1 01 00 [13:18:59]MH_I2C_Read... [13:18:59]Read from MH i2c: D1 01 00 D1 84 00 26 [13:18:59]Write to MH i2c: 01 00 00 D2 84 56 [13:18:59]Write i2c OK [13:18:59]MH_I2C_Read... [13:19:00]OFD Sender: No OFD packet to send [13:19:00]*** Cut start [13:19:00]*** Purtial cut [13:19:00]*** Stage 1: CUTSNS_PIN = 1 [13:19:02]Read from MH i2c: 01 [13:19:02]MH_I2C_Read... [13:19:02]*** Stop cut motor [13:19:02]*** Cut end [13:19:02]Read from MH i2c: 01 07 00 [13:19:02]MH_I2C_Read... [13:19:02]Read from MH i2c: 01 07 00 D2 84 00 00 00 00 00 FF 0F 6B [13:19:02]process_action close_receipt done [13:19:02]requested_data is exist [13:19:02]produce_requested_data [13:19:02]requested_item fm.sn is exist - process it [13:19:02]wFMCommunicate request_size=4 [13:19:02]MH_SAM_APDU [13:19:02]CAPDU: 80 11 00 00 [13:19:02]Write to MH i2c: E2 08 00 D3 84 80 11 00 00 00 00 00 00 D1 [13:19:02]Write i2c OK [13:19:02]MH_I2C_Read... [13:19:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:02]Read from MH i2c: E2 [13:19:02]MH_I2C_Read... [13:19:02]Read from MH i2c: E2 17 00 [13:19:02]MH_I2C_Read... [13:19:02]Read from MH i2c: E2 17 00 D3 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 1E [13:19:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:19:02]wFMCommunicate OK [13:19:02]requested_item fd.num is exist - process it [13:19:02]SAM_PROTO_GetFieldsCounters [13:19:02]wFMCommunicate request_size=4 [13:19:02]MH_SAM_APDU [13:19:02]CAPDU: 80 13 00 00 [13:19:02]Write to MH i2c: E2 08 00 D4 84 80 13 00 00 00 00 00 00 D4 [13:19:02]Write i2c OK [13:19:02]MH_I2C_Read... [13:19:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:03]Read from MH i2c: E2 [13:19:03]MH_I2C_Read... [13:19:03]Read from MH i2c: E2 62 00 [13:19:03]MH_I2C_Read... [13:19:03]Read from MH i2c: E2 62 00 D4 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 57 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [13:19: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 57 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:19:03]wFMCommunicate OK [13:19:03]SAM_PROTO_GetFieldsCounters done [13:19:03]requested_item shift.num is exist - process it [13:19:03]requested_item shift.opened is exist - process it [13:19:03]req_shift_opened [13:19:03]FM_GetShiftState [13:19:03]SAM_PROTO_GetShiftState [13:19:03]wFMCommunicate request_size=4 [13:19:03]MH_SAM_APDU [13:19:03]CAPDU: 80 13 01 00 [13:19:03]Write to MH i2c: E2 08 00 D5 84 80 13 01 00 00 00 00 00 D6 [13:19:03]Write i2c OK [13:19:03]MH_I2C_Read... [13:19:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:03]Read from MH i2c: E2 [13:19:03]MH_I2C_Read... [13:19:03]Read from MH i2c: E2 0E 00 [13:19:03]MH_I2C_Read... [13:19:03]Read from MH i2c: E2 0E 00 D5 84 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 13 [13:19:03]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:19:03]wFMCommunicate OK [13:19:03]SAM_PROTO_GetShiftState done [13:19:03]FM_GetShiftState done [13:19:03]req_shift_opened done [13:19:03]requested_item shift.open_date is exist - process it [13:19:03]req_shift_open_date [13:19:03]req_shift_open_date done [13:19:03]produce_requested_data done [13:19:03]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260695,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [13:19:03]process_action_free close_receipt [13:19:03]json_value_free [13:19:03]json_value_free done [13:19:03]process_json_proto returns [13:19:03]Send response to host [13:19:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260695,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [13:19:03]free response buf [13:19:03]execute_script done [13:19:03]execute_script returns [13:19:03]free content buf [13:19:03]Sock 9.Close socket [13:19:03]Sock 9.Thread stoped [13:19:05]OFD Sender: No OFD packet to send [13:19:10]OFD Sender: No OFD packet to send [13:19:12]int [13:19:12]Write to MH i2c: 01 00 00 D6 84 5A [13:19:12]*** FLAG_PRN_PAP1 set [13:19:12]Write i2c OK [13:19:12]MH_I2C_Read... [13:19:12]Read from MH i2c: 01 [13:19:12]MH_I2C_Read... [13:19:12]Read from MH i2c: 01 07 00 [13:19:12]MH_I2C_Read... [13:19:12]Read from MH i2c: 01 07 00 D6 84 00 01 00 00 00 FF 0F 70 [13:19:12]state=0 [13:19:12]No paper [13:19:12]int [13:19:12]Write to MH i2c: 01 00 00 D7 84 5B [13:19:12]*** FLAG_PRN_PAP2 set [13:19:12]Write i2c OK [13:19:12]MH_I2C_Read... [13:19:12]Read from MH i2c: 01 [13:19:12]MH_I2C_Read... [13:19:12]Read from MH i2c: 01 07 00 [13:19:12]MH_I2C_Read... [13:19:12]Read from MH i2c: 01 07 00 D7 84 00 03 00 00 00 FF 0F 73 [13:19:12]state=0 [13:19:12]No paper [13:19:12]Cover opened [13:19:15]OFD Sender: No OFD packet to send [13:19:17]Write to MH i2c: 01 00 00 D8 84 5C [13:19:17]Write i2c OK [13:19:17]MH_I2C_Read... [13:19:17]Read from MH i2c: 01 [13:19:17]MH_I2C_Read... [13:19:17]Read from MH i2c: 01 07 00 [13:19:17]MH_I2C_Read... [13:19:17]Read from MH i2c: 01 07 00 D8 84 00 03 00 00 00 FF 0F 74 [13:19:17]state=3 [13:19:17]No paper [13:19:17]Cover opened [13:19:20]OFD Sender: No OFD packet to send [13:19:22]Write to MH i2c: 01 00 00 D9 84 5D [13:19:22]Write i2c OK [13:19:22]MH_I2C_Read... [13:19:22]Read from MH i2c: 01 [13:19:22]MH_I2C_Read... [13:19:22]Read from MH i2c: 01 07 00 [13:19:22]MH_I2C_Read... [13:19:22]Read from MH i2c: 01 07 00 D9 84 00 03 00 00 00 FF 0F 75 [13:19:22]state=3 [13:19:22]No paper [13:19:22]Cover opened [13:19:25]OFD Sender: No OFD packet to send [13:19:27]Write to MH i2c: 01 00 00 DA 84 5E [13:19:27]Write i2c OK [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: 01 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: 01 07 00 [13:19:27]MH_I2C_Read... [13:19:27]Read from MH i2c: 01 07 00 DA 84 00 03 00 00 00 FF 0F 76 [13:19:27]state=3 [13:19:27]No paper [13:19:27]Cover opened [13:19:30]OFD Sender: No OFD packet to send [13:19:32]Write to MH i2c: 01 00 00 DB 84 5F [13:19:32]Write i2c OK [13:19:32]MH_I2C_Read... [13:19:32]Read from MH i2c: 01 [13:19:32]MH_I2C_Read... [13:19:32]Read from MH i2c: 01 07 00 [13:19:32]MH_I2C_Read... [13:19:32]Read from MH i2c: 01 07 00 DB 84 00 03 00 00 00 FF 0F 77 [13:19:32]state=3 [13:19:32]No paper [13:19:32]Cover opened [13:19:33]int [13:19:33]Write to MH i2c: 01 00 00 DC 84 60 [13:19:33]Write i2c OK [13:19:33]MH_I2C_Read... [13:19:33]Read from MH i2c: 01 [13:19:33]MH_I2C_Read... [13:19:33]Read from MH i2c: 01 07 00 [13:19:33]MH_I2C_Read... [13:19:33]*** FLAG_PRN_PAP1 reset [13:19:33]*** FLAG_PRN_PAP2 reset [13:19:33]Read from MH i2c: 01 07 00 DC 84 00 00 00 00 00 FF 0F 75 [13:19:33]state=3 [13:19:33]Cover closed [13:19:35]OFD Sender: No OFD packet to send [13:19:40]OFD Sender: No OFD packet to send [13:19:45]OFD Sender: No OFD packet to send [13:19:50]OFD Sender: No OFD packet to send [13:19:55]OFD Sender: No OFD packet to send [13:20:00]OFD Sender: No OFD packet to send [13:20:05]OFD Sender: No OFD packet to send [13:20:10]OFD Sender: No OFD packet to send [13:20:15]OFD Sender: No OFD packet to send [13:20:20]OFD Sender: No OFD packet to send [13:20:25]OFD Sender: No OFD packet to send [13:20:30]OFD Sender: No OFD packet to send [13:20:35]OFD Sender: No OFD packet to send [13:20:40]OFD Sender: No OFD packet to send [13:20:41]accept exits with 7 [13:20:41]New connection [13:20:41]New thread 3066473828 created [13:20:41]Thread 3066617188 joined [13:20:41]Waiting for new connection... [13:20:41] Sock 7.Parse request [13:20:41]Sock 7.Check first char [13:20:41]Sock 7.First char is OK [13:20:41]request: POST /json_proto HTTP/1.0 [13:20:41]Method: POST [13:20:41]URL: /json_proto [13:20:41]Method is POST - this is cgi request [13:20:41]url: /json_proto [13:20:41]query_string will be loaded in cgi processing [13:20:41]execute_cgi json_proto POST (null) [13:20:41]execute_cgi path=json_proto method=POST [13:20:41]POST find Content-Length [13:20:41]Host: 172.17.55.133:8080 [13:20:41]Content-Length: 678 [13:20:41]Content-Type: application/json [13:20:41] [13:20:41]POST finish read [13:20:41]Found Content-Length = 678 [13:20:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:41]execute_script... [13:20: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)1036244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:41]POST & json_proto [13:20:41]process_json_proto [13:20:41]json parsed OK: [13:20:41]protocol is kg_v1.0 [13:20:41]action value=close_receipt [13:20:41]process_action close_receipt [13:20:41]cmd_close_receipt [13:20:41]MH_GetDate [13:20:41]Write to MH i2c: F0 00 00 DD 84 50 [13:20:41]Write i2c OK [13:20:41]MH_I2C_Read... [13:20:41]Read from MH i2c: F0 [13:20:41]MH_I2C_Read... [13:20:41]Read from MH i2c: F0 09 00 [13:20:41]MH_I2C_Read... [13:20:41]Read from MH i2c: F0 09 00 DD 84 00 2E F5 C1 66 34 48 D8 65 5C [13:20:41]GetLastDocTimeStamp 1723987142 [13:20:41]current date 1723987246 [13:20:41]FM_GetShiftState [13:20:41]SAM_PROTO_GetShiftState [13:20:41]wFMCommunicate request_size=4 [13:20:41]MH_SAM_APDU [13:20:41]CAPDU: 80 13 01 00 [13:20:41]Write to MH i2c: E2 08 00 DE 84 80 13 01 00 00 00 00 00 DF [13:20:41]Write i2c OK [13:20:41]MH_I2C_Read... [13:20:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:42]Read from MH i2c: E2 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: E2 0E 00 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: E2 0E 00 DE 84 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 1C [13:20:42]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:20:42]wFMCommunicate OK [13:20:42]SAM_PROTO_GetShiftState done [13:20:42]FM_GetShiftState done [13:20:42]opened in 1723940556 [13:20:42]opened+sec_in_day 1724026956 [13:20:42]quantity*price = 30035 [13:20:42]sum+1 = 30036 [13:20:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 254 18.08.2024 13:20 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260696 ФПД: 278403419283978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T132046&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260696&fm=278403419283978&tin=02508201610067®Number=0000000000091865&sum=30000 [13:20:43]StoreToDocumentArchive [13:20:43]shift 449 fd 260696 [13:20:43]save to /storage/0449/doc_00260696 [13:20:43]save last doc name /storage/0449/doc_00260696 to /storage/kkm_last_doc_name [13:20:43]save OK [13:20:43]Clear old archive folders... [13:20:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:20:43]tlvbuf is 004FE6E0 [13:20:43]SAM_PROTO_ClearQueue [13:20:43]wFMCommunicate request_size=4 [13:20:43]MH_SAM_APDU [13:20:43]CAPDU: 80 09 00 00 [13:20:43]Write to MH i2c: E2 08 00 EB 84 80 09 00 00 00 00 00 00 E1 [13:20:43]Write i2c OK [13:20:43]MH_I2C_Read... [13:20:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:20:43]Read from MH i2c: E2 [13:20:43]MH_I2C_Read... [13:20:43]Read from MH i2c: E2 03 00 [13:20:43]MH_I2C_Read... [13:20:43]Read from MH i2c: E2 03 00 EB 84 00 90 00 E3 [13:20:43]RAPDU: 90 00 [13:20:43]wFMCommunicate OK [13:20:43]SAM_PROTO_ClearQueue done [13:20:43]KKMCreateOFDPacket [13:20:43]OFDProtocolAddRootSTLVToBuf [13:20:43]FM_MakeSignedData [13:20:43]FM_MakeSignedData [13:20:43]SAM_PROTO_SignData [13:20:43]wFMCommunicate request_size=4 [13:20:43]MH_SAM_APDU [13:20:43]CAPDU: 80 0D 01 02 [13:20:43]Write to MH i2c: E2 08 00 EC 84 80 0D 01 02 00 00 00 00 E9 [13:20:43]Write i2c OK [13:20:43]MH_I2C_Read... [13:20:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:20:43]Read from MH i2c: E2 [13:20:43]MH_I2C_Read... [13:20:43]Read from MH i2c: E2 03 00 [13:20:43]MH_I2C_Read... [13:20:43]Read from MH i2c: E2 03 00 EC 84 00 90 00 E4 [13:20:43]RAPDU: 90 00 [13:20:43]wFMCommunicate OK [13:20:43]wFMCommunicate request_size=255 [13:20:43]MH_SAM_APDU [13:20:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 2E F5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 58 FA 03 00 35 04 06 00 FD [13:20:43]Write to MH i2c: E2 02 01 ED 84 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 2E F5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 58 FA 03 00 35 04 06 00 FD 00 00 E1 [13:20:43]Write i2c OK [13:20:43]MH_I2C_Read... [13:20:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:43]Read from MH i2c: E2 [13:20:43]MH_I2C_Read... [13:20:43]Read from MH i2c: E2 03 00 [13:20:43]MH_I2C_Read... [13:20:43]Read from MH i2c: E2 03 00 ED 84 00 90 00 E5 [13:20:43]RAPDU: 90 00 [13:20:43]wFMCommunicate OK [13:20:43]wFMCommunicate request_size=10 [13:20:43]MH_SAM_APDU [13:20:43]CAPDU: 80 0D 02 02 05 34 D8 E9 22 0A [13:20:43]Write to MH i2c: E2 0D 00 EE 84 80 0D 02 02 05 00 34 D8 E9 22 0A 00 00 17 [13:20:43]Write i2c OK [13:20:43]MH_I2C_Read... [13:20:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:43]Read from MH i2c: E2 [13:20:43]MH_I2C_Read... [13:20:43]Read from MH i2c: E2 03 00 [13:20:43]MH_I2C_Read... [13:20:43]Read from MH i2c: E2 03 00 EE 84 00 90 00 E6 [13:20:43]RAPDU: 90 00 [13:20:43]wFMCommunicate OK [13:20:43]wFMCommunicate request_size=4 [13:20:43]MH_SAM_APDU [13:20:43]CAPDU: 80 0D 03 02 [13:20:43]Write to MH i2c: E2 08 00 EF 84 80 0D 03 02 00 00 00 00 EE [13:20:43]Write i2c OK [13:20:43]MH_I2C_Read... [13:20:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:20:43]Read from MH i2c: E2 [13:20:43]MH_I2C_Read... [13:20:43]Read from MH i2c: E2 0B 00 [13:20:43]MH_I2C_Read... [13:20:43]Read from MH i2c: E2 0B 00 EF 84 00 53 76 C2 F2 D0 EF EE 12 90 00 2B [13:20:43]RAPDU: 53 76 C2 F2 D0 EF EE 12 90 00 [13:20:43]wFMCommunicate OK [13:20:43]SAM_PROTO_SignData done [13:20:43]FM_MakeSignedData done [13:20:43]CreateOFDProtocolMessage [13:20:43]wFMCommunicate request_size=4 [13:20:43]MH_SAM_APDU [13:20:43]CAPDU: 80 11 00 00 [13:20:43]Write to MH i2c: E2 08 00 F0 84 80 11 00 00 00 00 00 00 EE [13:20:43]Write i2c OK [13:20:43]MH_I2C_Read... [13:20:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:43]Read from MH i2c: E2 [13:20:43]MH_I2C_Read... [13:20:43]Read from MH i2c: E2 17 00 [13:20:43]MH_I2C_Read... [13:20:43]Read from MH i2c: E2 17 00 F0 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 3B [13:20:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:20:43]wFMCommunicate OK [13:20:43]CreateOFDProtocolMessage done [13:20:43]OFDSenderStorePacket 260696 [13:20:43]StoreOFDPacket docnum=260696 [13:20:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 17 8F 07 01 74 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 2E F5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 58 FA 03 00 35 04 06 00 FD 34 D8 E9 22 0A 53 76 C2 F2 D0 EF EE 12 [13:20:43]CheckFolder [13:20:43]dirname=/storage/ofd_packets [13:20:43]CheckFolder done [13:20:43]ProducePacketName [13:20:43]name=ofd_packets/00260696 [13:20:43]NVStorageSaveData ofd_packets/00260696 [13:20:43]File name is /storage/ofd_packets/00260696 [13:20:43]Write 301 bytes [13:20:43]NVStorageSaveData done [13:20:43]OFDSenderStorePacket done [13:20:43]KKMCreateOFDPacket done [13:20:43]NVStorageSaveData kkm_last_timestamp [13:20:43]File name is /storage/kkm_last_timestamp [13:20:43]Write 4 bytes [13:20:43]NVStorageSaveData done [13:20:43]ExternCall_PrintAddStr [13:20:43]wPrintStart [13:20:43]Write to MH i2c: 01 00 00 F1 84 75 [13:20:43]Write i2c OK [13:20:43]MH_I2C_Read... [13:20:43]Read from MH i2c: 01 [13:20:43]MH_I2C_Read... [13:20:43]Read from MH i2c: 01 07 00 [13:20:43]MH_I2C_Read... [13:20:43]Read from MH i2c: 01 07 00 F1 84 00 00 00 00 00 FF 0F 8A [13:20:43]RasterBufferAndPrint [13:20:43]line Счет N : (1)1036244 [13:20:43]line ИНН: 02508201610067 [13:20:43]line Контрольно-Кассовый Чек [13:20:43]line ПРОДАЖА [13:20:43]line ТРК (МРК, ГНК) : 12 [13:20:43]line Товар: 2710124130 [13:20:43]line Аи-92-К-5 [13:20:43]line 4.430 * 67.80 [13:20:43]line = 300.35 [13:20:43]line НДС 12% НСП 1% [13:20:43]line > о реализуемом товаре [13:20:43]line ОКРУГЛЕНИЕ: -0.35 [13:20:43]line ИТОГО: 300.00 [13:20:43]line Внесено: 300.00 [13:20:43]line СДАЧА: 0.00 [13:20:43]line НСП 1% : 2.66 [13:20:43]line НДС 12% : 31.90 [13:20:43]line Наличными: 300.00 [13:20:43]line Безнал.: 0.00 [13:20:43]line Место: АЗС № 94 "Партнер Нефть" [13:20:43]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [13:20:43]line СНО: Общий режим [13:20:43]line Чек 254 18.08.2024 13:20 [13:20:43]line Смена: 449 ФФД: 1.0 [13:20:43]line ЗНМ: 0300000099 [13:20:43]line РНМ: 0000000000091865 [13:20:43]line Версия ККМ: 001 [13:20:43]line ФМ: 0000000000871820 [13:20:43]line ФД: 260696 [13:20:43]line ФПД: 278403419283978 [13:20:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T132046&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260696&fm=278403419283978&tin=02508201610067®Number=0000000000091865&sum=30000 [13:20:43]OFD Sender: Processing packet 260696 [packets to send 192, broken 191] [13:20:43]ProducePacketName [13:20:43]name=ofd_packets/00260696 [13:20:43]OFD Sender: To server: pG, [13:20:43]CommunicateWithHost lk.salyk.kg:30040 [13:20:43]ConnectInit lk.salyk.kg [13:20:43]written 0, free lines is 4095 [13:20:44]Connected sock=10 [13:20: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 30 0F 01 00 00 17 8F 07 01 74 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 2E F5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 58 FA 03 00 35 04 06 00 FD 34 D8 E9 22 0A 53 76 C2 F2 D0 EF EE 12 [13:20: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 30 4F 00 00 00 C3 5B 47 00 0D 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 30 10 04 04 00 58 FA 03 00 F4 03 04 00 83 9E C1 66 B6 04 01 00 00 4A 42 37 4A C4 21 3F 7B [13:20:44]CommunicateWithHost err = 0 [13:20:44]CheckOFDResponse [13:20:44]1017 (14) - 77093643461234 [13:20:44]1041 (16) - 0000000000871820 [13:20:44]1040 (4) - 260696 [13:20:44]1012 (4) - 18.08.2024 07:10 [13:20:44]1206 (1) - 0 [13:20:44]OFD Sender: Remove packet 260696 [13:20:44]ProducePacketName [13:20:44]name=ofd_packets/00260696 [13:20:44]NVStorageDeleteData [13:20:44]Write to MH i2c: 01 00 00 1C 85 A1 [13:20:44]Write i2c OK [13:20:44]MH_I2C_Read... [13:20:44]Read from MH i2c: 01 [13:20:44]MH_I2C_Read... [13:20:44]Read from MH i2c: 01 07 00 [13:20:44]MH_I2C_Read... [13:20:44]Read from MH i2c: 01 07 00 1C 85 00 00 00 00 00 6F 0C 23 [13:20:44]RasterBufferAndPrint [13:20:44]line [13:20:44]line [13:20:44]line [13:20:44]line [13:20:44]line [13:20:44]written 0, free lines is 3186 [13:20:44]MH_Cut [13:20:44]Write to MH i2c: D1 01 00 23 85 01 7A [13:20:44]Write i2c OK [13:20:44]MH_I2C_Read... [13:20:44]Read from MH i2c: D1 [13:20:44]MH_I2C_Read... [13:20:44]Read from MH i2c: D1 01 00 [13:20:44]MH_I2C_Read... [13:20:44]Read from MH i2c: D1 01 00 23 85 00 79 [13:20:44]Write to MH i2c: 01 00 00 24 85 A9 [13:20:44]Write i2c OK [13:20:44]MH_I2C_Read... [13:20:44]OFD Sender: No OFD packet to send [13:20:45]*** Cut start [13:20:45]*** Purtial cut [13:20:45]*** Stage 1: CUTSNS_PIN = 1 [13:20:47]Read from MH i2c: 01 [13:20:47]MH_I2C_Read... [13:20:47]*** Stop cut motor [13:20:47]*** Cut end [13:20:47]Read from MH i2c: 01 07 00 [13:20:47]MH_I2C_Read... [13:20:47]Read from MH i2c: 01 07 00 24 85 00 00 00 00 00 FF 0F BE [13:20:47]process_action close_receipt done [13:20:47]requested_data is exist [13:20:47]produce_requested_data [13:20:47]requested_item fm.sn is exist - process it [13:20:47]wFMCommunicate request_size=4 [13:20:47]MH_SAM_APDU [13:20:47]CAPDU: 80 11 00 00 [13:20:47]Write to MH i2c: E2 08 00 25 85 80 11 00 00 00 00 00 00 24 [13:20:47]Write i2c OK [13:20:47]MH_I2C_Read... [13:20:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:47]Read from MH i2c: E2 [13:20:47]MH_I2C_Read... [13:20:47]Read from MH i2c: E2 17 00 [13:20:47]MH_I2C_Read... [13:20:47]Read from MH i2c: E2 17 00 25 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 71 [13:20:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:20:47]wFMCommunicate OK [13:20:47]requested_item fd.num is exist - process it [13:20:47]SAM_PROTO_GetFieldsCounters [13:20:47]wFMCommunicate request_size=4 [13:20:47]MH_SAM_APDU [13:20:47]CAPDU: 80 13 00 00 [13:20:47]Write to MH i2c: E2 08 00 26 85 80 13 00 00 00 00 00 00 27 [13:20:47]Write i2c OK [13:20:47]MH_I2C_Read... [13:20:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:20:47]Read from MH i2c: E2 [13:20:47]MH_I2C_Read... [13:20:47]Read from MH i2c: E2 62 00 [13:20:47]MH_I2C_Read... [13:20:47]Read from MH i2c: E2 62 00 26 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 58 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [13: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 58 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:20:47]wFMCommunicate OK [13:20:47]SAM_PROTO_GetFieldsCounters done [13:20:47]requested_item shift.num is exist - process it [13:20:47]requested_item shift.opened is exist - process it [13:20:47]req_shift_opened [13:20:47]FM_GetShiftState [13:20:47]SAM_PROTO_GetShiftState [13:20:47]wFMCommunicate request_size=4 [13:20:47]MH_SAM_APDU [13:20:47]CAPDU: 80 13 01 00 [13:20:47]Write to MH i2c: E2 08 00 27 85 80 13 01 00 00 00 00 00 29 [13:20:47]Write i2c OK [13:20:47]MH_I2C_Read... [13:20:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:47]Read from MH i2c: E2 [13:20:47]MH_I2C_Read... [13:20:47]Read from MH i2c: E2 0E 00 [13:20:47]MH_I2C_Read... [13:20:47]Read from MH i2c: E2 0E 00 27 85 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 66 [13:20:47]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:20:47]wFMCommunicate OK [13:20:47]SAM_PROTO_GetShiftState done [13:20:47]FM_GetShiftState done [13:20:47]req_shift_opened done [13:20:47]requested_item shift.open_date is exist - process it [13:20:47]req_shift_open_date [13:20:47]req_shift_open_date done [13:20:47]produce_requested_data done [13:20:47]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260696,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [13:20:47]process_action_free close_receipt [13:20:47]json_value_free [13:20:47]json_value_free done [13:20:47]process_json_proto returns [13:20:47]Send response to host [13:20:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260696,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [13:20:47]free response buf [13:20:47]execute_script done [13:20:47]execute_script returns [13:20:47]free content buf [13:20:47]Sock 7.Close socket [13:20:47]Sock 7.Thread stoped [13:20:49]OFD Sender: No OFD packet to send [13:20:54]OFD Sender: No OFD packet to send [13:20:59]OFD Sender: No OFD packet to send [13:21:04]OFD Sender: No OFD packet to send [13:21:09]OFD Sender: No OFD packet to send [13:21:14]OFD Sender: No OFD packet to send [13:21:19]OFD Sender: No OFD packet to send [13:21:24]OFD Sender: No OFD packet to send [13:21:29]OFD Sender: No OFD packet to send [13:21:34]OFD Sender: No OFD packet to send [13:21:39]OFD Sender: No OFD packet to send [13:21:44]OFD Sender: No OFD packet to send [13:21:49]OFD Sender: No OFD packet to send [13:21:54]OFD Sender: No OFD packet to send [13:21:59]OFD Sender: No OFD packet to send [13:22:02]accept exits with 9 [13:22:02]New connection [13:22:02]New thread 3066617188 created [13:22:02]Thread 3066473828 joined [13:22:02]Waiting for new connection... [13:22:02] Sock 9.Parse request [13:22:02]Sock 9.Check first char [13:22:02]Sock 9.First char is OK [13:22:02]request: POST /json_proto HTTP/1.0 [13:22:02]Method: POST [13:22:02]URL: /json_proto [13:22:02]Method is POST - this is cgi request [13:22:02]url: /json_proto [13:22:02]query_string will be loaded in cgi processing [13:22:02]execute_cgi json_proto POST (null) [13:22:02]execute_cgi path=json_proto method=POST [13:22:02]POST find Content-Length [13:22:02]Host: 172.17.55.133:8080 [13:22:02]Content-Length: 678 [13:22:02]Content-Type: application/json [13:22:02] [13:22:02]POST finish read [13:22:02]Found Content-Length = 678 [13:22:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:22:02]execute_script... [13: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)1036245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:22:02]POST & json_proto [13:22:02]process_json_proto [13:22:02]json parsed OK: [13:22:02]protocol is kg_v1.0 [13:22:02]action value=close_receipt [13:22:02]process_action close_receipt [13:22:02]cmd_close_receipt [13:22:02]MH_GetDate [13:22:02]Write to MH i2c: F0 00 00 28 85 9C [13:22:02]Write i2c OK [13:22:02]MH_I2C_Read... [13:22:02]Read from MH i2c: F0 [13:22:02]MH_I2C_Read... [13:22:02]Read from MH i2c: F0 09 00 [13:22:02]MH_I2C_Read... [13:22:02]Read from MH i2c: F0 09 00 28 85 00 7F F5 C1 66 34 48 D8 65 F9 [13:22:02]GetLastDocTimeStamp 1723987246 [13:22:02]current date 1723987327 [13:22:02]FM_GetShiftState [13:22:02]SAM_PROTO_GetShiftState [13:22:02]wFMCommunicate request_size=4 [13:22:02]MH_SAM_APDU [13:22:02]CAPDU: 80 13 01 00 [13:22:02]Write to MH i2c: E2 08 00 29 85 80 13 01 00 00 00 00 00 2B [13:22:02]Write i2c OK [13:22:02]MH_I2C_Read... [13:22:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:02]Read from MH i2c: E2 [13:22:02]MH_I2C_Read... [13:22:02]Read from MH i2c: E2 0E 00 [13:22:02]MH_I2C_Read... [13:22:02]Read from MH i2c: E2 0E 00 29 85 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 68 [13:22:02]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:22:02]wFMCommunicate OK [13:22:02]SAM_PROTO_GetShiftState done [13:22:02]FM_GetShiftState done [13:22:02]opened in 1723940556 [13:22:02]opened+sec_in_day 1724026956 [13:22:02]quantity*price = 40002 [13:22:02]sum+1 = 40003 [13:22:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 255 18.08.2024 13:22 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260697 ФПД: 191295264589033 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T132207&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260697&fm=191295264589033&tin=02508201610067®Number=0000000000091865&sum=40000 [13:22:03]StoreToDocumentArchive [13:22:03]shift 449 fd 260697 [13:22:03]save to /storage/0449/doc_00260697 [13:22:03]save last doc name /storage/0449/doc_00260697 to /storage/kkm_last_doc_name [13:22:03]save OK [13:22:03]Clear old archive folders... [13:22:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:22:03]tlvbuf is 00351B70 [13:22:03]SAM_PROTO_ClearQueue [13:22:03]wFMCommunicate request_size=4 [13:22:03]MH_SAM_APDU [13:22:03]CAPDU: 80 09 00 00 [13:22:03]Write to MH i2c: E2 08 00 36 85 80 09 00 00 00 00 00 00 2D [13:22:03]Write i2c OK [13:22:03]MH_I2C_Read... [13:22:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:03]Read from MH i2c: E2 [13:22:03]MH_I2C_Read... [13:22:03]Read from MH i2c: E2 03 00 [13:22:03]MH_I2C_Read... [13:22:03]Read from MH i2c: E2 03 00 36 85 00 90 00 2F [13:22:03]RAPDU: 90 00 [13:22:03]wFMCommunicate OK [13:22:03]SAM_PROTO_ClearQueue done [13:22:03]KKMCreateOFDPacket [13:22:03]OFDProtocolAddRootSTLVToBuf [13:22:03]FM_MakeSignedData [13:22:03]FM_MakeSignedData [13:22:03]SAM_PROTO_SignData [13:22:03]wFMCommunicate request_size=4 [13:22:03]MH_SAM_APDU [13:22:03]CAPDU: 80 0D 01 02 [13:22:03]Write to MH i2c: E2 08 00 37 85 80 0D 01 02 00 00 00 00 35 [13:22:03]Write i2c OK [13:22:03]MH_I2C_Read... [13:22:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:03]Read from MH i2c: E2 [13:22:03]MH_I2C_Read... [13:22:03]Read from MH i2c: E2 03 00 [13:22:03]MH_I2C_Read... [13:22:03]Read from MH i2c: E2 03 00 37 85 00 90 00 30 [13:22:03]RAPDU: 90 00 [13:22:03]wFMCommunicate OK [13:22:03]wFMCommunicate request_size=255 [13:22:03]MH_SAM_APDU [13:22:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 7F F5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 59 FA 03 00 35 04 06 00 AD [13:22:03]Write to MH i2c: E2 02 01 38 85 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 7F F5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 59 FA 03 00 35 04 06 00 AD 00 00 F6 [13:22:03]Write i2c OK [13:22:03]MH_I2C_Read... [13:22:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:03]Read from MH i2c: E2 [13:22:03]MH_I2C_Read... [13:22:03]Read from MH i2c: E2 03 00 [13:22:03]MH_I2C_Read... [13:22:03]Read from MH i2c: E2 03 00 38 85 00 90 00 31 [13:22:03]RAPDU: 90 00 [13:22:03]wFMCommunicate OK [13:22:03]wFMCommunicate request_size=10 [13:22:03]MH_SAM_APDU [13:22:03]CAPDU: 80 0D 02 02 05 FB 66 4B 04 E9 [13:22:03]Write to MH i2c: E2 0D 00 39 85 80 0D 02 02 05 00 FB 66 4B 04 E9 00 00 DB [13:22:03]Write i2c OK [13:22:03]MH_I2C_Read... [13:22:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:04]Read from MH i2c: E2 [13:22:04]MH_I2C_Read... [13:22:04]Read from MH i2c: E2 03 00 [13:22:04]MH_I2C_Read... [13:22:04]Read from MH i2c: E2 03 00 39 85 00 90 00 32 [13:22:04]RAPDU: 90 00 [13:22:04]wFMCommunicate OK [13:22:04]wFMCommunicate request_size=4 [13:22:04]MH_SAM_APDU [13:22:04]CAPDU: 80 0D 03 02 [13:22:04]Write to MH i2c: E2 08 00 3A 85 80 0D 03 02 00 00 00 00 3A [13:22:04]Write i2c OK [13:22:04]MH_I2C_Read... [13:22:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:04]Read from MH i2c: E2 [13:22:04]MH_I2C_Read... [13:22:04]Read from MH i2c: E2 0B 00 [13:22:04]MH_I2C_Read... [13:22:04]Read from MH i2c: E2 0B 00 3A 85 00 37 BF 5B 42 7A C9 8A CD 90 00 68 [13:22:04]RAPDU: 37 BF 5B 42 7A C9 8A CD 90 00 [13:22:04]wFMCommunicate OK [13:22:04]SAM_PROTO_SignData done [13:22:04]FM_MakeSignedData done [13:22:04]CreateOFDProtocolMessage [13:22:04]wFMCommunicate request_size=4 [13:22:04]MH_SAM_APDU [13:22:04]CAPDU: 80 11 00 00 [13:22:04]Write to MH i2c: E2 08 00 3B 85 80 11 00 00 00 00 00 00 3A [13:22:04]Write i2c OK [13:22:04]MH_I2C_Read... [13:22:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:04]Read from MH i2c: E2 [13:22:04]MH_I2C_Read... [13:22:04]Read from MH i2c: E2 17 00 [13:22:04]MH_I2C_Read... [13:22:04]Read from MH i2c: E2 17 00 3B 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 87 [13:22:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:22:04]wFMCommunicate OK [13:22:04]CreateOFDProtocolMessage done [13:22:04]OFDSenderStorePacket 260697 [13:22:04]StoreOFDPacket docnum=260697 [13: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 30 0F 01 00 00 8B 4F 07 01 02 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 7F F5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 59 FA 03 00 35 04 06 00 AD FB 66 4B 04 E9 37 BF 5B 42 7A C9 8A CD [13:22:04]CheckFolder [13:22:04]dirname=/storage/ofd_packets [13:22:04]CheckFolder done [13:22:04]ProducePacketName [13:22:04]name=ofd_packets/00260697 [13:22:04]NVStorageSaveData ofd_packets/00260697 [13:22:04]File name is /storage/ofd_packets/00260697 [13:22:04]Write 301 bytes [13:22:04]NVStorageSaveData done [13:22:04]OFDSenderStorePacket done [13:22:04]KKMCreateOFDPacket done [13:22:04]NVStorageSaveData kkm_last_timestamp [13:22:04]File name is /storage/kkm_last_timestamp [13:22:04]Write 4 bytes [13:22:04]NVStorageSaveData done [13:22:04]ExternCall_PrintAddStr [13:22:04]wPrintStart [13:22:04]Write to MH i2c: 01 00 00 3C 85 C1 [13:22:04]Write i2c OK [13:22:04]MH_I2C_Read... [13:22:04]Read from MH i2c: 01 [13:22:04]MH_I2C_Read... [13:22:04]Read from MH i2c: 01 07 00 [13:22:04]MH_I2C_Read... [13:22:04]Read from MH i2c: 01 07 00 3C 85 00 00 00 00 00 FF 0F D6 [13:22:04]RasterBufferAndPrint [13:22:04]line Счет N : (1)1036245 [13:22:04]line ИНН: 02508201610067 [13:22:04]line Контрольно-Кассовый Чек [13:22:04]line ПРОДАЖА [13:22:04]line ТРК (МРК, ГНК) : 32 [13:22:04]line Товар: 2710124130 [13:22:04]line Аи-92-К-5 [13:22:04]line 5.900 * 67.80 [13:22:04]line = 400.02 [13:22:04]line НДС 12% НСП 1% [13:22:04]line > о реализуемом товаре [13:22:04]line ОКРУГЛЕНИЕ: -0.02 [13:22:04]line ИТОГО: 400.00 [13:22:04]line Внесено: 400.00 [13:22:04]line СДАЧА: 0.00 [13:22:04]line НСП 1% : 3.54 [13:22:04]line НДС 12% : 42.48 [13:22:04]line Наличными: 400.00 [13:22:04]line Безнал.: 0.00 [13:22:04]line Место: АЗС № 94 "Партнер Нефть" [13:22:04]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [13:22:04]line СНО: Общий режим [13:22:04]line Чек 255 18.08.2024 13:22 [13:22:04]line Смена: 449 ФФД: 1.0 [13:22:04]line ЗНМ: 0300000099 [13:22:04]line РНМ: 0000000000091865 [13:22:04]line Версия ККМ: 001 [13:22:04]line ФМ: 0000000000871820 [13:22:04]line ФД: 260697 [13:22:04]line ФПД: 191295264589033 [13:22:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T132207&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260697&fm=191295264589033&tin=02508201610067®Number=0000000000091865&sum=40000 [13:22:04]written 0, free lines is 4095 [13:22:04]OFD Sender: Processing packet 260697 [packets to send 192, broken 191] [13:22:04]ProducePacketName [13:22:04]name=ofd_packets/00260697 [13:22:04]OFD Sender: To server: pG, [13:22:04]CommunicateWithHost lk.salyk.kg:30040 [13:22:04]ConnectInit lk.salyk.kg [13:22:04]Connected sock=10 [13:22: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 30 0F 01 00 00 8B 4F 07 01 02 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 7F F5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 59 FA 03 00 35 04 06 00 AD FB 66 4B 04 E9 37 BF 5B 42 7A C9 8A CD [13:22: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 30 4F 00 00 00 D7 7A 47 00 28 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 30 10 04 04 00 59 FA 03 00 F4 03 04 00 D4 9E C1 66 B6 04 01 00 00 0A 3D 61 DE BC 8B 20 EF [13:22:04]CommunicateWithHost err = 0 [13:22:04]CheckOFDResponse [13:22:04]1017 (14) - 77093643461234 [13:22:04]1041 (16) - 0000000000871820 [13:22:04]1040 (4) - 260697 [13:22:04]1012 (4) - 18.08.2024 07:12 [13:22:04]1206 (1) - 0 [13:22:04]OFD Sender: Remove packet 260697 [13:22:04]ProducePacketName [13:22:04]name=ofd_packets/00260697 [13:22:04]NVStorageDeleteData [13:22:04]Write to MH i2c: 01 00 00 67 85 EC [13:22:04]Write i2c OK [13:22:04]MH_I2C_Read... [13:22:04]Read from MH i2c: 01 [13:22:04]MH_I2C_Read... [13:22:04]Read from MH i2c: 01 07 00 [13:22:04]MH_I2C_Read... [13:22:04]Read from MH i2c: 01 07 00 67 85 00 00 00 00 00 7B 0C 7A [13:22:04]RasterBufferAndPrint [13:22:04]line [13:22:04]line [13:22:04]line [13:22:04]line [13:22:04]line [13:22:04]written 0, free lines is 3198 [13:22:04]MH_Cut [13:22:04]Write to MH i2c: D1 01 00 6E 85 01 C5 [13:22:04]Write i2c OK [13:22:04]MH_I2C_Read... [13:22:04]Read from MH i2c: D1 [13:22:04]MH_I2C_Read... [13:22:04]Read from MH i2c: D1 01 00 [13:22:04]MH_I2C_Read... [13:22:04]Read from MH i2c: D1 01 00 6E 85 00 C4 [13:22:04]Write to MH i2c: 01 00 00 6F 85 F4 [13:22:04]Write i2c OK [13:22:04]MH_I2C_Read... [13:22:04]OFD Sender: No OFD packet to send [13:22:05]*** Cut start [13:22:05]*** Purtial cut [13:22:05]*** Stage 1: CUTSNS_PIN = 1 [13:22:07]Read from MH i2c: 01 [13:22:07]MH_I2C_Read... [13:22:07]*** Stop cut motor [13:22:07]*** Cut end [13:22:07]Read from MH i2c: 01 07 00 [13:22:07]MH_I2C_Read... [13:22:07]Read from MH i2c: 01 07 00 6F 85 00 00 00 00 00 FF 0F 09 [13:22:07]process_action close_receipt done [13:22:07]requested_data is exist [13:22:07]produce_requested_data [13:22:07]requested_item fm.sn is exist - process it [13:22:07]wFMCommunicate request_size=4 [13:22:07]MH_SAM_APDU [13:22:07]CAPDU: 80 11 00 00 [13:22:07]Write to MH i2c: E2 08 00 70 85 80 11 00 00 00 00 00 00 6F [13:22:07]Write i2c OK [13:22:07]MH_I2C_Read... [13:22:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:07]Read from MH i2c: E2 [13:22:07]MH_I2C_Read... [13:22:07]Read from MH i2c: E2 17 00 [13:22:07]MH_I2C_Read... [13:22:07]Read from MH i2c: E2 17 00 70 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 BC [13:22:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:22:07]wFMCommunicate OK [13:22:07]requested_item fd.num is exist - process it [13:22:07]SAM_PROTO_GetFieldsCounters [13:22:07]wFMCommunicate request_size=4 [13:22:07]MH_SAM_APDU [13:22:07]CAPDU: 80 13 00 00 [13:22:07]Write to MH i2c: E2 08 00 71 85 80 13 00 00 00 00 00 00 72 [13:22:07]Write i2c OK [13:22:07]MH_I2C_Read... [13:22:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:07]Read from MH i2c: E2 [13:22:07]MH_I2C_Read... [13:22:07]Read from MH i2c: E2 62 00 [13:22:07]MH_I2C_Read... [13:22:07]Read from MH i2c: E2 62 00 71 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 59 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 A7 [13: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 59 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:22:07]wFMCommunicate OK [13:22:07]SAM_PROTO_GetFieldsCounters done [13:22:07]requested_item shift.num is exist - process it [13:22:07]requested_item shift.opened is exist - process it [13:22:07]req_shift_opened [13:22:07]FM_GetShiftState [13:22:07]SAM_PROTO_GetShiftState [13:22:07]wFMCommunicate request_size=4 [13:22:07]MH_SAM_APDU [13:22:07]CAPDU: 80 13 01 00 [13:22:07]Write to MH i2c: E2 08 00 72 85 80 13 01 00 00 00 00 00 74 [13:22:07]Write i2c OK [13:22:07]MH_I2C_Read... [13:22:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:07]Read from MH i2c: E2 [13:22:07]MH_I2C_Read... [13:22:07]Read from MH i2c: E2 0E 00 [13:22:07]MH_I2C_Read... [13:22:07]Read from MH i2c: E2 0E 00 72 85 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B1 [13:22:07]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:22:07]wFMCommunicate OK [13:22:07]SAM_PROTO_GetShiftState done [13:22:07]FM_GetShiftState done [13:22:07]req_shift_opened done [13:22:07]requested_item shift.open_date is exist - process it [13:22:07]req_shift_open_date [13:22:07]req_shift_open_date done [13:22:07]produce_requested_data done [13:22:07]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260697,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [13:22:07]process_action_free close_receipt [13:22:07]json_value_free [13:22:07]json_value_free done [13:22:07]process_json_proto returns [13:22:07]Send response to host [13:22:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260697,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [13:22:07]free response buf [13:22:07]execute_script done [13:22:07]execute_script returns [13:22:07]free content buf [13:22:07]Sock 9.Close socket [13:22:07]Sock 9.Thread stoped [13:22:08]accept exits with 7 [13:22:08]New connection [13:22:08]New thread 3066473828 created [13:22:08]Thread 3066617188 joined [13:22:08]Waiting for new connection... [13:22:08] Sock 7.Parse request [13:22:08]Sock 7.Check first char [13:22:08]Sock 7.First char is OK [13:22:08]request: POST /json_proto HTTP/1.0 [13:22:08]Method: POST [13:22:08]URL: /json_proto [13:22:08]Method is POST - this is cgi request [13:22:08]url: /json_proto [13:22:08]query_string will be loaded in cgi processing [13:22:08]execute_cgi json_proto POST (null) [13:22:08]execute_cgi path=json_proto method=POST [13:22:08]POST find Content-Length [13:22:08]Host: 172.17.55.133:8080 [13:22:08]Content-Length: 678 [13:22:08]Content-Type: application/json [13:22:08] [13:22:08]POST finish read [13:22:08]Found Content-Length = 678 [13:22:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:22:08]execute_script... [13:22: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)1036246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:22:08]POST & json_proto [13:22:08]process_json_proto [13:22:08]json parsed OK: [13:22:08]protocol is kg_v1.0 [13:22:08]action value=close_receipt [13:22:08]process_action close_receipt [13:22:08]cmd_close_receipt [13:22:08]MH_GetDate [13:22:08]Write to MH i2c: F0 00 00 73 85 E7 [13:22:08]Write i2c OK [13:22:08]MH_I2C_Read... [13:22:08]Read from MH i2c: F0 [13:22:08]MH_I2C_Read... [13:22:08]Read from MH i2c: F0 09 00 [13:22:08]MH_I2C_Read... [13:22:08]Read from MH i2c: F0 09 00 73 85 00 85 F5 C1 66 34 48 D8 65 4A [13:22:08]GetLastDocTimeStamp 1723987327 [13:22:08]current date 1723987333 [13:22:08]FM_GetShiftState [13:22:08]SAM_PROTO_GetShiftState [13:22:08]wFMCommunicate request_size=4 [13:22:08]MH_SAM_APDU [13:22:08]CAPDU: 80 13 01 00 [13:22:08]Write to MH i2c: E2 08 00 74 85 80 13 01 00 00 00 00 00 76 [13:22:08]Write i2c OK [13:22:08]MH_I2C_Read... [13:22:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:08]Read from MH i2c: E2 [13:22:08]MH_I2C_Read... [13:22:08]Read from MH i2c: E2 0E 00 [13:22:08]MH_I2C_Read... [13:22:08]Read from MH i2c: E2 0E 00 74 85 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B3 [13:22:08]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:22:08]wFMCommunicate OK [13:22:08]SAM_PROTO_GetShiftState done [13:22:08]FM_GetShiftState done [13:22:08]opened in 1723940556 [13:22:08]opened+sec_in_day 1724026956 [13:22:08]quantity*price = 50036 [13:22:08]sum+1 = 50037 [13:22:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 256 18.08.2024 13:22 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260698 ФПД: 275106036629723 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T132213&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260698&fm=275106036629723&tin=02508201610067®Number=0000000000091865&sum=50000 [13:22:09]StoreToDocumentArchive [13:22:09]shift 449 fd 260698 [13:22:09]save to /storage/0449/doc_00260698 [13:22:09]save last doc name /storage/0449/doc_00260698 to /storage/kkm_last_doc_name [13:22:09]save OK [13:22:09]Clear old archive folders... [13:22:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:22:09]tlvbuf is 0037B260 [13:22:09]SAM_PROTO_ClearQueue [13:22:09]wFMCommunicate request_size=4 [13:22:09]MH_SAM_APDU [13:22:09]CAPDU: 80 09 00 00 [13:22:09]Write to MH i2c: E2 08 00 81 85 80 09 00 00 00 00 00 00 78 [13:22:09]Write i2c OK [13:22:09]MH_I2C_Read... [13:22:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:09]Read from MH i2c: E2 [13:22:09]MH_I2C_Read... [13:22:09]Read from MH i2c: E2 03 00 [13:22:09]MH_I2C_Read... [13:22:09]Read from MH i2c: E2 03 00 81 85 00 90 00 7A [13:22:09]RAPDU: 90 00 [13:22:09]wFMCommunicate OK [13:22:09]SAM_PROTO_ClearQueue done [13:22:09]KKMCreateOFDPacket [13:22:09]OFDProtocolAddRootSTLVToBuf [13:22:09]FM_MakeSignedData [13:22:09]FM_MakeSignedData [13:22:09]SAM_PROTO_SignData [13:22:09]wFMCommunicate request_size=4 [13:22:09]MH_SAM_APDU [13:22:09]CAPDU: 80 0D 01 02 [13:22:09]Write to MH i2c: E2 08 00 82 85 80 0D 01 02 00 00 00 00 80 [13:22:09]Write i2c OK [13:22:09]MH_I2C_Read... [13:22:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:09]Read from MH i2c: E2 [13:22:09]MH_I2C_Read... [13:22:09]Read from MH i2c: E2 03 00 [13:22:09]MH_I2C_Read... [13:22:09]Read from MH i2c: E2 03 00 82 85 00 90 00 7B [13:22:09]RAPDU: 90 00 [13:22:09]wFMCommunicate OK [13:22:09]wFMCommunicate request_size=255 [13:22:09]MH_SAM_APDU [13:22:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 01 00 00 F4 03 04 00 85 F5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5A FA 03 00 35 04 06 00 FA [13:22:09]Write to MH i2c: E2 02 01 83 85 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 01 00 00 F4 03 04 00 85 F5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5A FA 03 00 35 04 06 00 FA 00 00 B2 [13:22:09]Write i2c OK [13:22:09]MH_I2C_Read... [13:22:09]OFD Sender: No OFD packet to send [13:22:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:10]Read from MH i2c: E2 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: E2 03 00 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: E2 03 00 83 85 00 90 00 7C [13:22:10]RAPDU: 90 00 [13:22:10]wFMCommunicate OK [13:22:10]wFMCommunicate request_size=10 [13:22:10]MH_SAM_APDU [13:22:10]CAPDU: 80 0D 02 02 05 35 1D 96 C0 DB [13:22:10]Write to MH i2c: E2 0D 00 84 85 80 0D 02 02 05 00 35 1D 96 C0 DB 00 00 10 [13:22:10]Write i2c OK [13:22:10]MH_I2C_Read... [13:22:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:10]Read from MH i2c: E2 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: E2 03 00 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: E2 03 00 84 85 00 90 00 7D [13:22:10]RAPDU: 90 00 [13:22:10]wFMCommunicate OK [13:22:10]wFMCommunicate request_size=4 [13:22:10]MH_SAM_APDU [13:22:10]CAPDU: 80 0D 03 02 [13:22:10]Write to MH i2c: E2 08 00 85 85 80 0D 03 02 00 00 00 00 85 [13:22:10]Write i2c OK [13:22:10]MH_I2C_Read... [13:22:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:10]Read from MH i2c: E2 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: E2 0B 00 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: E2 0B 00 85 85 00 D8 9A 03 9C 95 6B 35 18 90 00 E4 [13:22:10]RAPDU: D8 9A 03 9C 95 6B 35 18 90 00 [13:22:10]wFMCommunicate OK [13:22:10]SAM_PROTO_SignData done [13:22:10]FM_MakeSignedData done [13:22:10]CreateOFDProtocolMessage [13:22:10]wFMCommunicate request_size=4 [13:22:10]MH_SAM_APDU [13:22:10]CAPDU: 80 11 00 00 [13:22:10]Write to MH i2c: E2 08 00 86 85 80 11 00 00 00 00 00 00 85 [13:22:10]Write i2c OK [13:22:10]MH_I2C_Read... [13:22:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:10]Read from MH i2c: E2 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: E2 17 00 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: E2 17 00 86 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D2 [13:22:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:22:10]wFMCommunicate OK [13:22:10]CreateOFDProtocolMessage done [13:22:10]OFDSenderStorePacket 260698 [13:22:10]StoreOFDPacket docnum=260698 [13: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 30 0F 01 00 00 8C 41 07 01 8A EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 01 00 00 F4 03 04 00 85 F5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5A FA 03 00 35 04 06 00 FA 35 1D 96 C0 DB D8 9A 03 9C 95 6B 35 18 [13:22:10]CheckFolder [13:22:10]dirname=/storage/ofd_packets [13:22:10]CheckFolder done [13:22:10]ProducePacketName [13:22:10]name=ofd_packets/00260698 [13:22:10]NVStorageSaveData ofd_packets/00260698 [13:22:10]File name is /storage/ofd_packets/00260698 [13:22:10]Write 301 bytes [13:22:10]NVStorageSaveData done [13:22:10]OFDSenderStorePacket done [13:22:10]KKMCreateOFDPacket done [13:22:10]NVStorageSaveData kkm_last_timestamp [13:22:10]File name is /storage/kkm_last_timestamp [13:22:10]Write 4 bytes [13:22:10]NVStorageSaveData done [13:22:10]ExternCall_PrintAddStr [13:22:10]wPrintStart [13:22:10]Write to MH i2c: 01 00 00 87 85 0C [13:22:10]Write i2c OK [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: 01 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: 01 07 00 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: 01 07 00 87 85 00 00 00 00 00 FF 0F 21 [13:22:10]RasterBufferAndPrint [13:22:10]line Счет N : (1)1036246 [13:22:10]line ИНН: 02508201610067 [13:22:10]line Контрольно-Кассовый Чек [13:22:10]line ПРОДАЖА [13:22:10]line ТРК (МРК, ГНК) : 22 [13:22:10]line Товар: 2710124130 [13:22:10]line Аи-92-К-5 [13:22:10]line 7.380 * 67.80 [13:22:10]line = 500.36 [13:22:10]line НДС 12% НСП 1% [13:22:10]line > о реализуемом товаре [13:22:10]line ОКРУГЛЕНИЕ: -0.36 [13:22:10]line ИТОГО: 500.00 [13:22:10]line Внесено: 500.00 [13:22:10]line СДАЧА: 0.00 [13:22:10]line НСП 1% : 4.43 [13:22:10]line НДС 12% : 53.14 [13:22:10]line Наличными: 500.00 [13:22:10]line Безнал.: 0.00 [13:22:10]line Место: АЗС № 94 "Партнер Нефть" [13:22:10]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [13:22:10]line СНО: Общий режим [13:22:10]line Чек 256 18.08.2024 13:22 [13:22:10]line Смена: 449 ФФД: 1.0 [13:22:10]line ЗНМ: 0300000099 [13:22:10]line РНМ: 0000000000091865 [13:22:10]line Версия ККМ: 001 [13:22:10]line ФМ: 0000000000871820 [13:22:10]line ФД: 260698 [13:22:10]line ФПД: 275106036629723 [13:22:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T132213&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260698&fm=275106036629723&tin=02508201610067®Number=0000000000091865&sum=50000 [13:22:10]written 0, free lines is 4095 [13:22:10]OFD Sender: Processing packet 260698 [packets to send 192, broken 191] [13:22:10]ProducePacketName [13:22:10]name=ofd_packets/00260698 [13:22:10]OFD Sender: To server: pG, [13:22:10]CommunicateWithHost lk.salyk.kg:30040 [13:22:10]ConnectInit lk.salyk.kg [13:22:10]Connected sock=10 [13:22: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 30 0F 01 00 00 8C 41 07 01 8A EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 01 00 00 F4 03 04 00 85 F5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5A FA 03 00 35 04 06 00 FA 35 1D 96 C0 DB D8 9A 03 9C 95 6B 35 18 [13:22: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 30 4F 00 00 00 D5 27 47 00 13 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 30 10 04 04 00 5A FA 03 00 F4 03 04 00 DA 9E C1 66 B6 04 01 00 00 40 58 AF 02 6C 2E AF F7 [13:22:10]CommunicateWithHost err = 0 [13:22:10]CheckOFDResponse [13:22:10]1017 (14) - 77093643461234 [13:22:10]1041 (16) - 0000000000871820 [13:22:10]1040 (4) - 260698 [13:22:10]1012 (4) - 18.08.2024 07:12 [13:22:10]1206 (1) - 0 [13:22:10]OFD Sender: Remove packet 260698 [13:22:10]ProducePacketName [13:22:10]name=ofd_packets/00260698 [13:22:10]NVStorageDeleteData [13:22:10]Write to MH i2c: 01 00 00 B2 85 37 [13:22:10]Write i2c OK [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: 01 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: 01 07 00 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: 01 07 00 B2 85 00 00 00 00 00 72 0C BC [13:22:10]RasterBufferAndPrint [13:22:10]line [13:22:10]line [13:22:10]line [13:22:10]line [13:22:10]line [13:22:10]written 0, free lines is 3192 [13:22:10]MH_Cut [13:22:10]Write to MH i2c: D1 01 00 B9 85 01 10 [13:22:10]Write i2c OK [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: D1 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: D1 01 00 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: D1 01 00 B9 85 00 0F [13:22:10]Write to MH i2c: 01 00 00 BA 85 3F [13:22:10]Write i2c OK [13:22:10]MH_I2C_Read... [13:22:11]OFD Sender: No OFD packet to send [13:22:11]*** Cut start [13:22:11]*** Purtial cut [13:22:11]*** Stage 1: CUTSNS_PIN = 1 [13:22:13]Read from MH i2c: 01 [13:22:14]MH_I2C_Read... [13:22:14]*** Stop cut motor [13:22:14]*** Cut end [13:22:14]Read from MH i2c: 01 07 00 [13:22:14]MH_I2C_Read... [13:22:14]Read from MH i2c: 01 07 00 BA 85 00 00 00 00 00 FF 0F 54 [13:22:14]process_action close_receipt done [13:22:14]requested_data is exist [13:22:14]produce_requested_data [13:22:14]requested_item fm.sn is exist - process it [13:22:14]wFMCommunicate request_size=4 [13:22:14]MH_SAM_APDU [13:22:14]CAPDU: 80 11 00 00 [13:22:14]Write to MH i2c: E2 08 00 BB 85 80 11 00 00 00 00 00 00 BA [13:22:14]Write i2c OK [13:22:14]MH_I2C_Read... [13:22:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:14]Read from MH i2c: E2 [13:22:14]MH_I2C_Read... [13:22:14]Read from MH i2c: E2 17 00 [13:22:14]MH_I2C_Read... [13:22:14]Read from MH i2c: E2 17 00 BB 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 07 [13:22:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:22:14]wFMCommunicate OK [13:22:14]requested_item fd.num is exist - process it [13:22:14]SAM_PROTO_GetFieldsCounters [13:22:14]wFMCommunicate request_size=4 [13:22:14]MH_SAM_APDU [13:22:14]CAPDU: 80 13 00 00 [13:22:14]Write to MH i2c: E2 08 00 BC 85 80 13 00 00 00 00 00 00 BD [13:22:14]Write i2c OK [13:22:14]MH_I2C_Read... [13:22:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:14]Read from MH i2c: E2 [13:22:14]MH_I2C_Read... [13:22:14]Read from MH i2c: E2 62 00 [13:22:14]MH_I2C_Read... [13:22:14]Read from MH i2c: E2 62 00 BC 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 5A FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 F8 [13:22:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 5A FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:22:14]wFMCommunicate OK [13:22:14]SAM_PROTO_GetFieldsCounters done [13:22:14]requested_item shift.num is exist - process it [13:22:14]requested_item shift.opened is exist - process it [13:22:14]req_shift_opened [13:22:14]FM_GetShiftState [13:22:14]SAM_PROTO_GetShiftState [13:22:14]wFMCommunicate request_size=4 [13:22:14]MH_SAM_APDU [13:22:14]CAPDU: 80 13 01 00 [13:22:14]Write to MH i2c: E2 08 00 BD 85 80 13 01 00 00 00 00 00 BF [13:22:14]Write i2c OK [13:22:14]MH_I2C_Read... [13:22:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:14]Read from MH i2c: E2 [13:22:14]MH_I2C_Read... [13:22:14]Read from MH i2c: E2 0E 00 [13:22:14]MH_I2C_Read... [13:22:14]Read from MH i2c: E2 0E 00 BD 85 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 FC [13:22:14]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:22:14]wFMCommunicate OK [13:22:14]SAM_PROTO_GetShiftState done [13:22:14]FM_GetShiftState done [13:22:14]req_shift_opened done [13:22:14]requested_item shift.open_date is exist - process it [13:22:14]req_shift_open_date [13:22:14]req_shift_open_date done [13:22:14]produce_requested_data done [13:22:14]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260698,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [13:22:14]process_action_free close_receipt [13:22:14]json_value_free [13:22:14]json_value_free done [13:22:14]process_json_proto returns [13:22:14]Send response to host [13:22:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260698,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [13:22:14]free response buf [13:22:14]execute_script done [13:22:14]execute_script returns [13:22:14]free content buf [13:22:14]Sock 7.Close socket [13:22:14]Sock 7.Thread stoped [13:22:16]OFD Sender: No OFD packet to send [13:22:21]OFD Sender: No OFD packet to send [13:22:22]accept exits with 9 [13:22:22]New connection [13:22:22]New thread 3066617188 created [13:22:22]Thread 3066473828 joined [13:22:22]Waiting for new connection... [13:22:22] Sock 9.Parse request [13:22:22]Sock 9.Check first char [13:22:22]Sock 9.First char is OK [13:22:22]request: POST /json_proto HTTP/1.0 [13:22:22]Method: POST [13:22:22]URL: /json_proto [13:22:22]Method is POST - this is cgi request [13:22:22]url: /json_proto [13:22:22]query_string will be loaded in cgi processing [13:22:22]execute_cgi json_proto POST (null) [13:22:22]execute_cgi path=json_proto method=POST [13:22:22]POST find Content-Length [13:22:22]Host: 172.17.55.133:8080 [13:22:22]Content-Length: 678 [13:22:22]Content-Type: application/json [13:22:22] [13:22:22]POST finish read [13:22:22]Found Content-Length = 678 [13:22:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:22]execute_script... [13:22: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)1036247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:22]POST & json_proto [13:22:22]process_json_proto [13:22:22]json parsed OK: [13:22:22]protocol is kg_v1.0 [13:22:22]action value=close_receipt [13:22:22]process_action close_receipt [13:22:22]cmd_close_receipt [13:22:22]MH_GetDate [13:22:22]Write to MH i2c: F0 00 00 BE 85 32 [13:22:22]Write i2c OK [13:22:22]MH_I2C_Read... [13:22:22]Read from MH i2c: F0 [13:22:22]MH_I2C_Read... [13:22:22]Read from MH i2c: F0 09 00 [13:22:22]MH_I2C_Read... [13:22:22]Read from MH i2c: F0 09 00 BE 85 00 93 F5 C1 66 34 48 D8 65 A3 [13:22:22]GetLastDocTimeStamp 1723987333 [13:22:22]current date 1723987347 [13:22:22]FM_GetShiftState [13:22:22]SAM_PROTO_GetShiftState [13:22:22]wFMCommunicate request_size=4 [13:22:22]MH_SAM_APDU [13:22:22]CAPDU: 80 13 01 00 [13:22:22]Write to MH i2c: E2 08 00 BF 85 80 13 01 00 00 00 00 00 C1 [13:22:22]Write i2c OK [13:22:22]MH_I2C_Read... [13:22:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:22]Read from MH i2c: E2 [13:22:22]MH_I2C_Read... [13:22:22]Read from MH i2c: E2 0E 00 [13:22:22]MH_I2C_Read... [13:22:22]Read from MH i2c: E2 0E 00 BF 85 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 FE [13:22:22]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:22:22]wFMCommunicate OK [13:22:22]SAM_PROTO_GetShiftState done [13:22:22]FM_GetShiftState done [13:22:22]opened in 1723940556 [13:22:22]opened+sec_in_day 1724026956 [13:22:22]quantity*price = 30035 [13:22:22]sum+1 = 30036 [13:22:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 257 18.08.2024 13:22 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260699 ФПД: 272000357232139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T132227&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260699&fm=272000357232139&tin=02508201610067®Number=0000000000091865&sum=30000 [13:22:23]StoreToDocumentArchive [13:22:23]shift 449 fd 260699 [13:22:23]save to /storage/0449/doc_00260699 [13:22:23]save last doc name /storage/0449/doc_00260699 to /storage/kkm_last_doc_name [13:22:23]save OK [13:22:23]Clear old archive folders... [13:22:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:22:23]tlvbuf is 0050CD50 [13:22:23]SAM_PROTO_ClearQueue [13:22:23]wFMCommunicate request_size=4 [13:22:23]MH_SAM_APDU [13:22:23]CAPDU: 80 09 00 00 [13:22:23]Write to MH i2c: E2 08 00 CC 85 80 09 00 00 00 00 00 00 C3 [13:22:23]Write i2c OK [13:22:23]MH_I2C_Read... [13:22:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:23]Read from MH i2c: E2 [13:22:23]MH_I2C_Read... [13:22:23]Read from MH i2c: E2 03 00 [13:22:23]MH_I2C_Read... [13:22:23]Read from MH i2c: E2 03 00 CC 85 00 90 00 C5 [13:22:23]RAPDU: 90 00 [13:22:23]wFMCommunicate OK [13:22:23]SAM_PROTO_ClearQueue done [13:22:23]KKMCreateOFDPacket [13:22:23]OFDProtocolAddRootSTLVToBuf [13:22:23]FM_MakeSignedData [13:22:23]FM_MakeSignedData [13:22:23]SAM_PROTO_SignData [13:22:23]wFMCommunicate request_size=4 [13:22:23]MH_SAM_APDU [13:22:23]CAPDU: 80 0D 01 02 [13:22:23]Write to MH i2c: E2 08 00 CD 85 80 0D 01 02 00 00 00 00 CB [13:22:23]Write i2c OK [13:22:23]MH_I2C_Read... [13:22:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:23]Read from MH i2c: E2 [13:22:23]MH_I2C_Read... [13:22:23]Read from MH i2c: E2 03 00 [13:22:23]MH_I2C_Read... [13:22:23]Read from MH i2c: E2 03 00 CD 85 00 90 00 C6 [13:22:23]RAPDU: 90 00 [13:22:23]wFMCommunicate OK [13:22:23]wFMCommunicate request_size=255 [13:22:23]MH_SAM_APDU [13:22:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 93 F5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5B FA 03 00 35 04 06 00 F7 [13:22:23]Write to MH i2c: E2 02 01 CE 85 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 93 F5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5B FA 03 00 35 04 06 00 F7 00 00 29 [13:22:23]Write i2c OK [13:22:23]MH_I2C_Read... [13:22:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:24]Read from MH i2c: E2 [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: E2 03 00 [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: E2 03 00 CE 85 00 90 00 C7 [13:22:24]RAPDU: 90 00 [13:22:24]wFMCommunicate OK [13:22:24]wFMCommunicate request_size=10 [13:22:24]MH_SAM_APDU [13:22:24]CAPDU: 80 0D 02 02 05 62 04 AB EE 0B [13:22:24]Write to MH i2c: E2 0D 00 CF 85 80 0D 02 02 05 00 62 04 AB EE 0B 00 00 E2 [13:22:24]Write i2c OK [13:22:24]MH_I2C_Read... [13:22:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:24]Read from MH i2c: E2 [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: E2 03 00 [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: E2 03 00 CF 85 00 90 00 C8 [13:22:24]RAPDU: 90 00 [13:22:24]wFMCommunicate OK [13:22:24]wFMCommunicate request_size=4 [13:22:24]MH_SAM_APDU [13:22:24]CAPDU: 80 0D 03 02 [13:22:24]Write to MH i2c: E2 08 00 D0 85 80 0D 03 02 00 00 00 00 D0 [13:22:24]Write i2c OK [13:22:24]MH_I2C_Read... [13:22:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:24]Read from MH i2c: E2 [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: E2 0B 00 [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: E2 0B 00 D0 85 00 13 27 57 72 5B 84 05 76 90 00 2E [13:22:24]RAPDU: 13 27 57 72 5B 84 05 76 90 00 [13:22:24]wFMCommunicate OK [13:22:24]SAM_PROTO_SignData done [13:22:24]FM_MakeSignedData done [13:22:24]CreateOFDProtocolMessage [13:22:24]wFMCommunicate request_size=4 [13:22:24]MH_SAM_APDU [13:22:24]CAPDU: 80 11 00 00 [13:22:24]Write to MH i2c: E2 08 00 D1 85 80 11 00 00 00 00 00 00 D0 [13:22:24]Write i2c OK [13:22:24]MH_I2C_Read... [13:22:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:24]Read from MH i2c: E2 [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: E2 17 00 [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: E2 17 00 D1 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 1D [13:22:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:22:24]wFMCommunicate OK [13:22:24]CreateOFDProtocolMessage done [13:22:24]OFDSenderStorePacket 260699 [13:22:24]StoreOFDPacket docnum=260699 [13:22:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 EF BD 07 01 4B B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 93 F5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5B FA 03 00 35 04 06 00 F7 62 04 AB EE 0B 13 27 57 72 5B 84 05 76 [13:22:24]CheckFolder [13:22:24]dirname=/storage/ofd_packets [13:22:24]CheckFolder done [13:22:24]ProducePacketName [13:22:24]name=ofd_packets/00260699 [13:22:24]NVStorageSaveData ofd_packets/00260699 [13:22:24]File name is /storage/ofd_packets/00260699 [13:22:24]Write 301 bytes [13:22:24]NVStorageSaveData done [13:22:24]OFDSenderStorePacket done [13:22:24]KKMCreateOFDPacket done [13:22:24]NVStorageSaveData kkm_last_timestamp [13:22:24]File name is /storage/kkm_last_timestamp [13:22:24]Write 4 bytes [13:22:24]NVStorageSaveData done [13:22:24]ExternCall_PrintAddStr [13:22:24]wPrintStart [13:22:24]Write to MH i2c: 01 00 00 D2 85 57 [13:22:24]Write i2c OK [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: 01 [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: 01 07 00 [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: 01 07 00 D2 85 00 00 00 00 00 FF 0F 6C [13:22:24]RasterBufferAndPrint [13:22:24]line Счет N : (1)1036247 [13:22:24]line ИНН: 02508201610067 [13:22:24]line Контрольно-Кассовый Чек [13:22:24]line ПРОДАЖА [13:22:24]line ТРК (МРК, ГНК) : 42 [13:22:24]line Товар: 2710124130 [13:22:24]line Аи-92-К-5 [13:22:24]line 4.430 * 67.80 [13:22:24]line = 300.35 [13:22:24]line НДС 12% НСП 1% [13:22:24]line > о реализуемом товаре [13:22:24]line ОКРУГЛЕНИЕ: -0.35 [13:22:24]line ИТОГО: 300.00 [13:22:24]line Внесено: 300.00 [13:22:24]line СДАЧА: 0.00 [13:22:24]line НСП 1% : 2.66 [13:22:24]line НДС 12% : 31.90 [13:22:24]line Наличными: 300.00 [13:22:24]line Безнал.: 0.00 [13:22:24]line Место: АЗС № 94 "Партнер Нефть" [13:22:24]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [13:22:24]line СНО: Общий режим [13:22:24]line Чек 257 18.08.2024 13:22 [13:22:24]line Смена: 449 ФФД: 1.0 [13:22:24]line ЗНМ: 0300000099 [13:22:24]line РНМ: 0000000000091865 [13:22:24]line Версия ККМ: 001 [13:22:24]line ФМ: 0000000000871820 [13:22:24]line ФД: 260699 [13:22:24]line ФПД: 272000357232139 [13:22:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T132227&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260699&fm=272000357232139&tin=02508201610067®Number=0000000000091865&sum=30000 [13:22:24]written 0, free lines is 4095 [13:22:24]OFD Sender: Processing packet 260699 [packets to send 192, broken 191] [13:22:24]ProducePacketName [13:22:24]name=ofd_packets/00260699 [13:22:24]OFD Sender: To server: pG, [13:22:24]CommunicateWithHost lk.salyk.kg:30040 [13:22:24]ConnectInit lk.salyk.kg [13:22:24]Connected sock=10 [13:22: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 30 0F 01 00 00 EF BD 07 01 4B B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 93 F5 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5B FA 03 00 35 04 06 00 F7 62 04 AB EE 0B 13 27 57 72 5B 84 05 76 [13:22: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 30 4F 00 00 00 DF 6C 47 00 BC 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 5B FA 03 00 F4 03 04 00 E8 9E C1 66 B6 04 01 00 00 8D DD 66 E6 48 B9 BC 89 [13:22:24]CommunicateWithHost err = 0 [13:22:24]CheckOFDResponse [13:22:24]1017 (14) - 77093643461234 [13:22:24]1041 (16) - 0000000000871820 [13:22:24]1040 (4) - 260699 [13:22:24]1012 (4) - 18.08.2024 07:12 [13:22:24]1206 (1) - 0 [13:22:24]OFD Sender: Remove packet 260699 [13:22:24]ProducePacketName [13:22:24]name=ofd_packets/00260699 [13:22:24]NVStorageDeleteData [13:22:24]Write to MH i2c: 01 00 00 FD 85 82 [13:22:24]Write i2c OK [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: 01 [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: 01 07 00 [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: 01 07 00 FD 85 00 00 00 00 00 79 0C 0E [13:22:24]RasterBufferAndPrint [13:22:24]line [13:22:24]line [13:22:24]line [13:22:24]line [13:22:24]line [13:22:24]written 0, free lines is 3200 [13:22:24]MH_Cut [13:22:24]Write to MH i2c: D1 01 00 04 86 01 5C [13:22:24]Write i2c OK [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: D1 [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: D1 01 00 [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: D1 01 00 04 86 00 5B [13:22:24]Write to MH i2c: 01 00 00 05 86 8B [13:22:24]Write i2c OK [13:22:24]MH_I2C_Read... [13:22:25]OFD Sender: No OFD packet to send [13:22:25]*** Cut start [13:22:25]*** Purtial cut [13:22:25]*** Stage 1: CUTSNS_PIN = 1 [13:22:27]Read from MH i2c: 01 [13:22:27]MH_I2C_Read... [13:22:27]*** Stop cut motor [13:22:27]*** Cut end [13:22:27]Read from MH i2c: 01 07 00 [13:22:27]MH_I2C_Read... [13:22:27]Read from MH i2c: 01 07 00 05 86 00 00 00 00 00 FF 0F A0 [13:22:27]process_action close_receipt done [13:22:27]requested_data is exist [13:22:27]produce_requested_data [13:22:27]requested_item fm.sn is exist - process it [13:22:27]wFMCommunicate request_size=4 [13:22:27]MH_SAM_APDU [13:22:27]CAPDU: 80 11 00 00 [13:22:27]Write to MH i2c: E2 08 00 06 86 80 11 00 00 00 00 00 00 06 [13:22:27]Write i2c OK [13:22:27]MH_I2C_Read... [13:22:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:27]Read from MH i2c: E2 [13:22:27]MH_I2C_Read... [13:22:27]Read from MH i2c: E2 17 00 [13:22:27]MH_I2C_Read... [13:22:27]Read from MH i2c: E2 17 00 06 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 53 [13:22:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:22:27]wFMCommunicate OK [13:22:27]requested_item fd.num is exist - process it [13:22:27]SAM_PROTO_GetFieldsCounters [13:22:27]wFMCommunicate request_size=4 [13:22:27]MH_SAM_APDU [13:22:27]CAPDU: 80 13 00 00 [13:22:27]Write to MH i2c: E2 08 00 07 86 80 13 00 00 00 00 00 00 09 [13:22:27]Write i2c OK [13:22:27]MH_I2C_Read... [13:22:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:28]Read from MH i2c: E2 [13:22:28]MH_I2C_Read... [13:22:28]Read from MH i2c: E2 62 00 [13:22:28]MH_I2C_Read... [13:22:28]Read from MH i2c: E2 62 00 07 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 5B FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 48 [13:22: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 5B FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:22:28]wFMCommunicate OK [13:22:28]SAM_PROTO_GetFieldsCounters done [13:22:28]requested_item shift.num is exist - process it [13:22:28]requested_item shift.opened is exist - process it [13:22:28]req_shift_opened [13:22:28]FM_GetShiftState [13:22:28]SAM_PROTO_GetShiftState [13:22:28]wFMCommunicate request_size=4 [13:22:28]MH_SAM_APDU [13:22:28]CAPDU: 80 13 01 00 [13:22:28]Write to MH i2c: E2 08 00 08 86 80 13 01 00 00 00 00 00 0B [13:22:28]Write i2c OK [13:22:28]MH_I2C_Read... [13:22:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:28]Read from MH i2c: E2 [13:22:28]MH_I2C_Read... [13:22:28]Read from MH i2c: E2 0E 00 [13:22:28]MH_I2C_Read... [13:22:28]Read from MH i2c: E2 0E 00 08 86 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 48 [13:22:28]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:22:28]wFMCommunicate OK [13:22:28]SAM_PROTO_GetShiftState done [13:22:28]FM_GetShiftState done [13:22:28]req_shift_opened done [13:22:28]requested_item shift.open_date is exist - process it [13:22:28]req_shift_open_date [13:22:28]req_shift_open_date done [13:22:28]produce_requested_data done [13:22:28]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260699,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [13:22:28]process_action_free close_receipt [13:22:28]json_value_free [13:22:28]json_value_free done [13:22:28]process_json_proto returns [13:22:28]Send response to host [13:22:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260699,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [13:22:28]free response buf [13:22:28]execute_script done [13:22:28]execute_script returns [13:22:28]free content buf [13:22:28]Sock 9.Close socket [13:22:28]Sock 9.Thread stoped [13:22:30]OFD Sender: No OFD packet to send [13:22:35]OFD Sender: No OFD packet to send [13:22:40]OFD Sender: No OFD packet to send [13:22:45]OFD Sender: No OFD packet to send [13:22:50]OFD Sender: No OFD packet to send [13:22:55]OFD Sender: No OFD packet to send [13:23:00]OFD Sender: No OFD packet to send [13:23:05]OFD Sender: No OFD packet to send [13:23:10]OFD Sender: No OFD packet to send [13:23:15]OFD Sender: No OFD packet to send [13:23:20]OFD Sender: No OFD packet to send [13:23:25]OFD Sender: No OFD packet to send [13:23:30]OFD Sender: No OFD packet to send [13:23:35]OFD Sender: No OFD packet to send [13:23:40]OFD Sender: No OFD packet to send [13:23:45]OFD Sender: No OFD packet to send [13:23:50]OFD Sender: No OFD packet to send [13:23:55]OFD Sender: No OFD packet to send [13:24:00]OFD Sender: No OFD packet to send [13:24:05]OFD Sender: No OFD packet to send [13:24:10]OFD Sender: No OFD packet to send [13:24:15]OFD Sender: No OFD packet to send [13:24:20]OFD Sender: No OFD packet to send [13:24:25]OFD Sender: No OFD packet to send [13:24:30]OFD Sender: No OFD packet to send [13:24:35]OFD Sender: No OFD packet to send [13:24:40]OFD Sender: No OFD packet to send [13:24:45]OFD Sender: No OFD packet to send [13:24:50]OFD Sender: No OFD packet to send [13:24:55]OFD Sender: No OFD packet to send [13:25:00]OFD Sender: No OFD packet to send [13:25:05]OFD Sender: No OFD packet to send [13:25:08]accept exits with 7 [13:25:08]New connection [13:25:08]New thread 3066473828 created [13:25:08]Thread 3066617188 joined [13:25:08]Waiting for new connection... [13:25:08] Sock 7.Parse request [13:25:08]Sock 7.Check first char [13:25:08]Sock 7.First char is OK [13:25:08]request: POST /json_proto HTTP/1.0 [13:25:08]Method: POST [13:25:08]URL: /json_proto [13:25:08]Method is POST - this is cgi request [13:25:08]url: /json_proto [13:25:08]query_string will be loaded in cgi processing [13:25:08]execute_cgi json_proto POST (null) [13:25:08]execute_cgi path=json_proto method=POST [13:25:08]POST find Content-Length [13:25:08]Host: 172.17.55.133:8080 [13:25:08]Content-Length: 679 [13:25:08]Content-Type: application/json [13:25:08] [13:25:08]POST finish read [13:25:08]Found Content-Length = 679 [13:25:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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:25:08]execute_script... [13:25: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)1036248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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:25:08]POST & json_proto [13:25:08]process_json_proto [13:25:08]json parsed OK: [13:25:08]protocol is kg_v1.0 [13:25:08]action value=close_receipt [13:25:08]process_action close_receipt [13:25:08]cmd_close_receipt [13:25:08]MH_GetDate [13:25:08]Write to MH i2c: F0 00 00 09 86 7E [13:25:08]Write i2c OK [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: F0 [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: F0 09 00 [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: F0 09 00 09 86 00 39 F6 C1 66 34 48 D8 65 96 [13:25:08]GetLastDocTimeStamp 1723987347 [13:25:08]current date 1723987513 [13:25:08]FM_GetShiftState [13:25:08]SAM_PROTO_GetShiftState [13:25:08]wFMCommunicate request_size=4 [13:25:08]MH_SAM_APDU [13:25:08]CAPDU: 80 13 01 00 [13:25:08]Write to MH i2c: E2 08 00 0A 86 80 13 01 00 00 00 00 00 0D [13:25:08]Write i2c OK [13:25:08]MH_I2C_Read... [13:25:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:08]Read from MH i2c: E2 [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: E2 0E 00 [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: E2 0E 00 0A 86 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 4A [13:25:08]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:25:08]wFMCommunicate OK [13:25:08]SAM_PROTO_GetShiftState done [13:25:08]FM_GetShiftState done [13:25:08]opened in 1723940556 [13:25:08]opened+sec_in_day 1724026956 [13:25:08]quantity*price = 70037 [13:25:08]sum+1 = 70038 [13:25:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 258 18.08.2024 13:25 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260700 ФПД: 166618697015982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T132513&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260700&fm=166618697015982&tin=02508201610067®Number=0000000000091865&sum=70000 [13:25:10]StoreToDocumentArchive [13:25:10]shift 449 fd 260700 [13:25:10]save to /storage/0449/doc_00260700 [13:25:10]save last doc name /storage/0449/doc_00260700 to /storage/kkm_last_doc_name [13:25:10]save OK [13:25:10]Clear old archive folders... [13:25:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:25:10]tlvbuf is 0049FC10 [13:25:10]SAM_PROTO_ClearQueue [13:25:10]wFMCommunicate request_size=4 [13:25:10]MH_SAM_APDU [13:25:10]CAPDU: 80 09 00 00 [13:25:10]Write to MH i2c: E2 08 00 17 86 80 09 00 00 00 00 00 00 0F [13:25:10]Write i2c OK [13:25:10]MH_I2C_Read... [13:25:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:25:10]Read from MH i2c: E2 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 17 86 00 90 00 11 [13:25:10]RAPDU: 90 00 [13:25:10]wFMCommunicate OK [13:25:10]SAM_PROTO_ClearQueue done [13:25:10]KKMCreateOFDPacket [13:25:10]OFDProtocolAddRootSTLVToBuf [13:25:10]FM_MakeSignedData [13:25:10]FM_MakeSignedData [13:25:10]SAM_PROTO_SignData [13:25:10]wFMCommunicate request_size=4 [13:25:10]MH_SAM_APDU [13:25:10]CAPDU: 80 0D 01 02 [13:25:10]Write to MH i2c: E2 08 00 18 86 80 0D 01 02 00 00 00 00 17 [13:25:10]Write i2c OK [13:25:10]MH_I2C_Read... [13:25:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:25:10]Read from MH i2c: E2 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 18 86 00 90 00 12 [13:25:10]RAPDU: 90 00 [13:25:10]wFMCommunicate OK [13:25:10]wFMCommunicate request_size=255 [13:25:10]MH_SAM_APDU [13:25:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 02 01 00 00 F4 03 04 00 39 F6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5C FA 03 00 35 04 06 00 97 [13:25:10]Write to MH i2c: E2 02 01 19 86 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 02 01 00 00 F4 03 04 00 39 F6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5C FA 03 00 35 04 06 00 97 00 00 86 [13:25:10]Write i2c OK [13:25:10]MH_I2C_Read... [13:25:10]OFD Sender: No OFD packet to send [13:25:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:10]Read from MH i2c: E2 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 19 86 00 90 00 13 [13:25:10]RAPDU: 90 00 [13:25:10]wFMCommunicate OK [13:25:10]wFMCommunicate request_size=10 [13:25:10]MH_SAM_APDU [13:25:10]CAPDU: 80 0D 02 02 05 89 F0 3F A2 AE [13:25:10]Write to MH i2c: E2 0D 00 1A 86 80 0D 02 02 05 00 89 F0 3F A2 AE 00 00 2C [13:25:10]Write i2c OK [13:25:10]MH_I2C_Read... [13:25:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:10]Read from MH i2c: E2 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 1A 86 00 90 00 14 [13:25:10]RAPDU: 90 00 [13:25:10]wFMCommunicate OK [13:25:10]wFMCommunicate request_size=4 [13:25:10]MH_SAM_APDU [13:25:10]CAPDU: 80 0D 03 02 [13:25:10]Write to MH i2c: E2 08 00 1B 86 80 0D 03 02 00 00 00 00 1C [13:25:10]Write i2c OK [13:25:10]MH_I2C_Read... [13:25:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:25:10]Read from MH i2c: E2 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 0B 00 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 0B 00 1B 86 00 A6 5C 4C 4A B3 93 BE 63 90 00 1C [13:25:10]RAPDU: A6 5C 4C 4A B3 93 BE 63 90 00 [13:25:10]wFMCommunicate OK [13:25:10]SAM_PROTO_SignData done [13:25:10]FM_MakeSignedData done [13:25:10]CreateOFDProtocolMessage [13:25:10]wFMCommunicate request_size=4 [13:25:10]MH_SAM_APDU [13:25:10]CAPDU: 80 11 00 00 [13:25:10]Write to MH i2c: E2 08 00 1C 86 80 11 00 00 00 00 00 00 1C [13:25:10]Write i2c OK [13:25:10]MH_I2C_Read... [13:25:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:10]Read from MH i2c: E2 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 17 00 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 17 00 1C 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 69 [13:25:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:25:10]wFMCommunicate OK [13:25:10]CreateOFDProtocolMessage done [13:25:10]OFDSenderStorePacket 260700 [13:25:10]StoreOFDPacket docnum=260700 [13:25:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 6E 7E 07 01 D2 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 02 01 00 00 F4 03 04 00 39 F6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5C FA 03 00 35 04 06 00 97 89 F0 3F A2 AE A6 5C 4C 4A B3 93 BE 63 [13:25:10]CheckFolder [13:25:10]dirname=/storage/ofd_packets [13:25:10]CheckFolder done [13:25:10]ProducePacketName [13:25:10]name=ofd_packets/00260700 [13:25:10]NVStorageSaveData ofd_packets/00260700 [13:25:10]File name is /storage/ofd_packets/00260700 [13:25:10]Write 301 bytes [13:25:10]NVStorageSaveData done [13:25:10]OFDSenderStorePacket done [13:25:10]KKMCreateOFDPacket done [13:25:10]NVStorageSaveData kkm_last_timestamp [13:25:10]File name is /storage/kkm_last_timestamp [13:25:10]Write 4 bytes [13:25:10]NVStorageSaveData done [13:25:10]ExternCall_PrintAddStr [13:25:10]wPrintStart [13:25:10]Write to MH i2c: 01 00 00 1D 86 A3 [13:25:10]Write i2c OK [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: 01 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: 01 07 00 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: 01 07 00 1D 86 00 00 00 00 00 FF 0F B8 [13:25:10]RasterBufferAndPrint [13:25:10]line Счет N : (1)1036248 [13:25:10]line ИНН: 02508201610067 [13:25:10]line Контрольно-Кассовый Чек [13:25:10]line ПРОДАЖА [13:25:10]line ТРК (МРК, ГНК) : 12 [13:25:10]line Товар: 2710124130 [13:25:10]line Аи-92-К-5 [13:25:10]line 10.330 * 67.80 [13:25:10]line = 700.37 [13:25:10]line НДС 12% НСП 1% [13:25:10]line > о реализуемом товаре [13:25:10]line ОКРУГЛЕНИЕ: -0.37 [13:25:10]line ИТОГО: 700.00 [13:25:10]line Внесено: 700.00 [13:25:10]line СДАЧА: 0.00 [13:25:10]line НСП 1% : 6.20 [13:25:10]line НДС 12% : 74.38 [13:25:10]line Наличными: 700.00 [13:25:10]line Безнал.: 0.00 [13:25:10]line Место: АЗС № 94 "Партнер Нефть" [13:25:10]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [13:25:10]line СНО: Общий режим [13:25:10]line Чек 258 18.08.2024 13:25 [13:25:10]line Смена: 449 ФФД: 1.0 [13:25:10]line ЗНМ: 0300000099 [13:25:10]line РНМ: 0000000000091865 [13:25:10]line Версия ККМ: 001 [13:25:10]line ФМ: 0000000000871820 [13:25:10]line ФД: 260700 [13:25:10]line ФПД: 166618697015982 [13:25:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T132513&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260700&fm=166618697015982&tin=02508201610067®Number=0000000000091865&sum=70000 [13:25:10]OFD Sender: Processing packet 260700 [packets to send 192, broken 191] [13:25:10]ProducePacketName [13:25:10]name=ofd_packets/00260700 [13:25:10]OFD Sender: To server: pG, [13:25:10]CommunicateWithHost lk.salyk.kg:30040 [13:25:10]ConnectInit lk.salyk.kg [13:25:10]written 0, free lines is 4095 [13:25:11]Connected sock=11 [13:25: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 30 0F 01 00 00 6E 7E 07 01 D2 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 02 01 00 00 F4 03 04 00 39 F6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5C FA 03 00 35 04 06 00 97 89 F0 3F A2 AE A6 5C 4C 4A B3 93 BE 63 [13:25: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 30 4F 00 00 00 12 68 47 00 59 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5C FA 03 00 F4 03 04 00 8E 9F C1 66 B6 04 01 00 00 4E F4 81 61 72 09 99 82 [13:25:11]CommunicateWithHost err = 0 [13:25:11]CheckOFDResponse [13:25:11]1017 (14) - 77093643461234 [13:25:11]1041 (16) - 0000000000871820 [13:25:11]1040 (4) - 260700 [13:25:11]1012 (4) - 18.08.2024 07:15 [13:25:11]1206 (1) - 0 [13:25:11]OFD Sender: Remove packet 260700 [13:25:11]ProducePacketName [13:25:11]name=ofd_packets/00260700 [13:25:11]NVStorageDeleteData [13:25:11]Write to MH i2c: 01 00 00 48 86 CE [13:25:11]Write i2c OK [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: 01 [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: 01 07 00 [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: 01 07 00 48 86 00 00 00 00 00 66 0C 47 [13:25:11]RasterBufferAndPrint [13:25:11]line [13:25:11]line [13:25:11]line [13:25:11]line [13:25:11]line [13:25:11]written 0, free lines is 3177 [13:25:11]MH_Cut [13:25:11]Write to MH i2c: D1 01 00 4F 86 01 A7 [13:25:11]Write i2c OK [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: D1 [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: D1 01 00 [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: D1 01 00 4F 86 00 A6 [13:25:11]Write to MH i2c: 01 00 00 50 86 D6 [13:25:11]Write i2c OK [13:25:11]MH_I2C_Read... [13:25:11]OFD Sender: No OFD packet to send [13:25:12]*** Cut start [13:25:12]*** Purtial cut [13:25:12]*** Stage 1: CUTSNS_PIN = 1 [13:25:14]Read from MH i2c: 01 [13:25:14]MH_I2C_Read... [13:25:14]*** Stop cut motor [13:25:14]*** Cut end [13:25:14]Read from MH i2c: 01 07 00 [13:25:14]MH_I2C_Read... [13:25:14]Read from MH i2c: 01 07 00 50 86 00 00 00 00 00 FF 0F EB [13:25:14]process_action close_receipt done [13:25:14]requested_data is exist [13:25:14]produce_requested_data [13:25:14]requested_item fm.sn is exist - process it [13:25:14]wFMCommunicate request_size=4 [13:25:14]MH_SAM_APDU [13:25:14]CAPDU: 80 11 00 00 [13:25:14]Write to MH i2c: E2 08 00 51 86 80 11 00 00 00 00 00 00 51 [13:25:14]Write i2c OK [13:25:14]MH_I2C_Read... [13:25:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:14]Read from MH i2c: E2 [13:25:14]MH_I2C_Read... [13:25:14]Read from MH i2c: E2 17 00 [13:25:14]MH_I2C_Read... [13:25:14]Read from MH i2c: E2 17 00 51 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 9E [13:25:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:25:14]wFMCommunicate OK [13:25:14]requested_item fd.num is exist - process it [13:25:14]SAM_PROTO_GetFieldsCounters [13:25:14]wFMCommunicate request_size=4 [13:25:14]MH_SAM_APDU [13:25:14]CAPDU: 80 13 00 00 [13:25:14]Write to MH i2c: E2 08 00 52 86 80 13 00 00 00 00 00 00 54 [13:25:14]Write i2c OK [13:25:14]MH_I2C_Read... [13:25:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:14]Read from MH i2c: E2 [13:25:14]MH_I2C_Read... [13:25:14]Read from MH i2c: E2 62 00 [13:25:14]MH_I2C_Read... [13:25:14]Read from MH i2c: E2 62 00 52 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 5C FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 97 [13:25: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 5C FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:25:14]wFMCommunicate OK [13:25:14]SAM_PROTO_GetFieldsCounters done [13:25:14]requested_item shift.num is exist - process it [13:25:14]requested_item shift.opened is exist - process it [13:25:14]req_shift_opened [13:25:14]FM_GetShiftState [13:25:14]SAM_PROTO_GetShiftState [13:25:14]wFMCommunicate request_size=4 [13:25:14]MH_SAM_APDU [13:25:14]CAPDU: 80 13 01 00 [13:25:14]Write to MH i2c: E2 08 00 53 86 80 13 01 00 00 00 00 00 56 [13:25:14]Write i2c OK [13:25:14]MH_I2C_Read... [13:25:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:14]Read from MH i2c: E2 [13:25:14]MH_I2C_Read... [13:25:14]Read from MH i2c: E2 0E 00 [13:25:14]MH_I2C_Read... [13:25:14]Read from MH i2c: E2 0E 00 53 86 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 93 [13:25:14]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:25:14]wFMCommunicate OK [13:25:14]SAM_PROTO_GetShiftState done [13:25:14]FM_GetShiftState done [13:25:14]req_shift_opened done [13:25:14]requested_item shift.open_date is exist - process it [13:25:14]req_shift_open_date [13:25:14]req_shift_open_date done [13:25:14]produce_requested_data done [13:25:14]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260700,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [13:25:14]process_action_free close_receipt [13:25:14]json_value_free [13:25:14]json_value_free done [13:25:14]process_json_proto returns [13:25:14]Send response to host [13:25:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260700,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [13:25:14]free response buf [13:25:14]execute_script done [13:25:14]execute_script returns [13:25:14]free content buf [13:25:14]Sock 7.Close socket [13:25:14]Sock 7.Thread stoped [13:25:16]OFD Sender: No OFD packet to send [13:25:21]OFD Sender: No OFD packet to send [13:25:26]OFD Sender: No OFD packet to send [13:25:31]OFD Sender: No OFD packet to send [13:25:36]OFD Sender: No OFD packet to send [13:25:41]OFD Sender: No OFD packet to send [13:25:46]OFD Sender: No OFD packet to send [13:25:51]OFD Sender: No OFD packet to send [13:25:56]OFD Sender: No OFD packet to send [13:26:01]OFD Sender: No OFD packet to send [13:26:06]OFD Sender: No OFD packet to send [13:26:11]OFD Sender: No OFD packet to send [13:26:16]OFD Sender: No OFD packet to send [13:26:21]OFD Sender: No OFD packet to send [13:26:26]OFD Sender: No OFD packet to send [13:26:31]OFD Sender: No OFD packet to send [13:26:36]OFD Sender: No OFD packet to send [13:26:41]OFD Sender: No OFD packet to send [13:26:46]OFD Sender: No OFD packet to send [13:26:51]OFD Sender: No OFD packet to send [13:26:56]OFD Sender: No OFD packet to send [13:27:01]OFD Sender: No OFD packet to send [13:27:06]OFD Sender: No OFD packet to send [13:27:11]OFD Sender: No OFD packet to send [13:27:16]OFD Sender: No OFD packet to send [13:27:21]OFD Sender: No OFD packet to send [13:27:26]accept exits with 9 [13:27:26]New connection [13:27:26]New thread 3066617188 created [13:27:26]Thread 3066473828 joined [13:27:26]Waiting for new connection... [13:27:26] Sock 9.Parse request [13:27:26]Sock 9.Check first char [13:27:26]Sock 9.First char is OK [13:27:26]request: POST /json_proto HTTP/1.0 [13:27:26]Method: POST [13:27:26]URL: /json_proto [13:27:26]Method is POST - this is cgi request [13:27:26]url: /json_proto [13:27:26]query_string will be loaded in cgi processing [13:27:26]execute_cgi json_proto POST (null) [13:27:26]execute_cgi path=json_proto method=POST [13:27:26]POST find Content-Length [13:27:26]Host: 172.17.55.133:8080 [13:27:26]Content-Length: 688 [13:27:26]Content-Type: application/json [13:27:26] [13:27:26]POST finish read [13:27:26]Found Content-Length = 688 [13:27:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:26]execute_script... [13:27: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)1036249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:26]POST & json_proto [13:27:26]process_json_proto [13:27:26]json parsed OK: [13:27:26]protocol is kg_v1.0 [13:27:26]action value=close_receipt [13:27:26]process_action close_receipt [13:27:26]cmd_close_receipt [13:27:26]MH_GetDate [13:27:26]Write to MH i2c: F0 00 00 54 86 C9 [13:27:26]Write i2c OK [13:27:26]MH_I2C_Read... [13:27:26]Read from MH i2c: F0 [13:27:26]MH_I2C_Read... [13:27:26]Read from MH i2c: F0 09 00 [13:27:26]MH_I2C_Read... [13:27:26]Read from MH i2c: F0 09 00 54 86 00 C3 F6 C1 66 34 48 D8 65 6B [13:27:26]GetLastDocTimeStamp 1723987513 [13:27:26]current date 1723987651 [13:27:26]FM_GetShiftState [13:27:26]SAM_PROTO_GetShiftState [13:27:26]wFMCommunicate request_size=4 [13:27:26]MH_SAM_APDU [13:27:26]CAPDU: 80 13 01 00 [13:27:26]Write to MH i2c: E2 08 00 55 86 80 13 01 00 00 00 00 00 58 [13:27:26]Write i2c OK [13:27:26]MH_I2C_Read... [13:27:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:26]Read from MH i2c: E2 [13:27:26]MH_I2C_Read... [13:27:26]Read from MH i2c: E2 0E 00 [13:27:26]MH_I2C_Read... [13:27:26]Read from MH i2c: E2 0E 00 55 86 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 95 [13:27:26]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:27:26]wFMCommunicate OK [13:27:26]SAM_PROTO_GetShiftState done [13:27:26]FM_GetShiftState done [13:27:26]opened in 1723940556 [13:27:26]opened+sec_in_day 1724026956 [13:27:26]quantity*price = 300075 [13:27:26]sum+1 = 300077 [13:27:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 259 18.08.2024 13:27 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260701 ФПД: 275308849216993 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T132731&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260701&fm=275308849216993&tin=02508201610067®Number=0000000000091865&sum=300000 [13:27:27]StoreToDocumentArchive [13:27:27]shift 449 fd 260701 [13:27:27]save to /storage/0449/doc_00260701 [13:27:27]save last doc name /storage/0449/doc_00260701 to /storage/kkm_last_doc_name [13:27:27]save OK [13:27:27]Clear old archive folders... [13:27:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:27:27]tlvbuf is 003A7450 [13:27:27]SAM_PROTO_ClearQueue [13:27:27]wFMCommunicate request_size=4 [13:27:27]MH_SAM_APDU [13:27:27]CAPDU: 80 09 00 00 [13:27:27]Write to MH i2c: E2 08 00 62 86 80 09 00 00 00 00 00 00 5A [13:27:27]Write i2c OK [13:27:27]MH_I2C_Read... [13:27:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:27:27]Read from MH i2c: E2 [13:27:27]MH_I2C_Read... [13:27:27]Read from MH i2c: E2 03 00 [13:27:27]MH_I2C_Read... [13:27:27]Read from MH i2c: E2 03 00 62 86 00 90 00 5C [13:27:27]RAPDU: 90 00 [13:27:27]wFMCommunicate OK [13:27:27]SAM_PROTO_ClearQueue done [13:27:27]KKMCreateOFDPacket [13:27:27]OFDProtocolAddRootSTLVToBuf [13:27:27]FM_MakeSignedData [13:27:27]FM_MakeSignedData [13:27:27]SAM_PROTO_SignData [13:27:27]wFMCommunicate request_size=4 [13:27:27]MH_SAM_APDU [13:27:27]CAPDU: 80 0D 01 02 [13:27:27]Write to MH i2c: E2 08 00 63 86 80 0D 01 02 00 00 00 00 62 [13:27:27]Write i2c OK [13:27:27]MH_I2C_Read... [13:27:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:27:27]Read from MH i2c: E2 [13:27:27]MH_I2C_Read... [13:27:27]Read from MH i2c: E2 03 00 [13:27:27]MH_I2C_Read... [13:27:27]Read from MH i2c: E2 03 00 63 86 00 90 00 5D [13:27:27]RAPDU: 90 00 [13:27:27]wFMCommunicate OK [13:27:27]wFMCommunicate request_size=255 [13:27:27]MH_SAM_APDU [13:27:27]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 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 03 01 00 00 F4 03 04 00 C3 F6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5D FA 03 00 35 04 06 00 [13:27:27]Write to MH i2c: E2 02 01 64 86 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 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 03 01 00 00 F4 03 04 00 C3 F6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5D FA 03 00 35 04 06 00 00 00 03 [13:27:27]Write i2c OK [13:27:27]MH_I2C_Read... [13:27:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:28]Read from MH i2c: E2 [13:27:28]MH_I2C_Read... [13:27:28]Read from MH i2c: E2 03 00 [13:27:28]MH_I2C_Read... [13:27:28]Read from MH i2c: E2 03 00 64 86 00 90 00 5E [13:27:28]RAPDU: 90 00 [13:27:28]wFMCommunicate OK [13:27:28]wFMCommunicate request_size=11 [13:27:28]MH_SAM_APDU [13:27:28]CAPDU: 80 0D 02 02 06 FA 64 56 29 3D E1 [13:27:28]Write to MH i2c: E2 0E 00 65 86 80 0D 02 02 06 00 FA 64 56 29 3D E1 00 00 6C [13:27:28]Write i2c OK [13:27:28]MH_I2C_Read... [13:27:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:28]Read from MH i2c: E2 [13:27:28]MH_I2C_Read... [13:27:28]Read from MH i2c: E2 03 00 [13:27:28]MH_I2C_Read... [13:27:28]Read from MH i2c: E2 03 00 65 86 00 90 00 5F [13:27:28]RAPDU: 90 00 [13:27:28]wFMCommunicate OK [13:27:28]wFMCommunicate request_size=4 [13:27:28]MH_SAM_APDU [13:27:28]CAPDU: 80 0D 03 02 [13:27:28]Write to MH i2c: E2 08 00 66 86 80 0D 03 02 00 00 00 00 67 [13:27:28]Write i2c OK [13:27:28]MH_I2C_Read... [13:27:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:27:28]Read from MH i2c: E2 [13:27:28]MH_I2C_Read... [13:27:28]Read from MH i2c: E2 0B 00 [13:27:28]MH_I2C_Read... [13:27:28]Read from MH i2c: E2 0B 00 66 86 00 34 50 90 1E C8 FD 3B F7 90 00 91 [13:27:28]RAPDU: 34 50 90 1E C8 FD 3B F7 90 00 [13:27:28]wFMCommunicate OK [13:27:28]SAM_PROTO_SignData done [13:27:28]FM_MakeSignedData done [13:27:28]CreateOFDProtocolMessage [13:27:28]wFMCommunicate request_size=4 [13:27:28]MH_SAM_APDU [13:27:28]CAPDU: 80 11 00 00 [13:27:28]Write to MH i2c: E2 08 00 67 86 80 11 00 00 00 00 00 00 67 [13:27:28]Write i2c OK [13:27:28]MH_I2C_Read... [13:27:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:28]Read from MH i2c: E2 [13:27:28]MH_I2C_Read... [13:27:28]Read from MH i2c: E2 17 00 [13:27:28]MH_I2C_Read... [13:27:28]Read from MH i2c: E2 17 00 67 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B4 [13:27:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:27:28]wFMCommunicate OK [13:27:28]CreateOFDProtocolMessage done [13:27:28]OFDSenderStorePacket 260701 [13:27:28]StoreOFDPacket docnum=260701 [13:27:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 E5 E0 08 01 7F 23 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 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 03 01 00 00 F4 03 04 00 C3 F6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5D FA 03 00 35 04 06 00 FA 64 56 29 3D E1 34 50 90 1E C8 FD 3B F7 [13:27:28]CheckFolder [13:27:28]dirname=/storage/ofd_packets [13:27:28]CheckFolder done [13:27:28]ProducePacketName [13:27:28]name=ofd_packets/00260701 [13:27:28]NVStorageSaveData ofd_packets/00260701 [13:27:28]File name is /storage/ofd_packets/00260701 [13:27:28]Write 302 bytes [13:27:28]NVStorageSaveData done [13:27:28]OFDSenderStorePacket done [13:27:28]KKMCreateOFDPacket done [13:27:28]NVStorageSaveData kkm_last_timestamp [13:27:28]File name is /storage/kkm_last_timestamp [13:27:28]Write 4 bytes [13:27:28]NVStorageSaveData done [13:27:28]ExternCall_PrintAddStr [13:27:28]wPrintStart [13:27:28]Write to MH i2c: 01 00 00 68 86 EE [13:27:28]Write i2c OK [13:27:28]MH_I2C_Read... [13:27:28]Read from MH i2c: 01 [13:27:28]MH_I2C_Read... [13:27:28]Read from MH i2c: 01 07 00 [13:27:28]MH_I2C_Read... [13:27:28]Read from MH i2c: 01 07 00 68 86 00 00 00 00 00 FF 0F 03 [13:27:28]RasterBufferAndPrint [13:27:28]line Счет N : (1)1036249 [13:27:28]line ИНН: 02508201610067 [13:27:28]line Контрольно-Кассовый Чек [13:27:28]line ПРОДАЖА [13:27:28]line ТРК (МРК, ГНК) : 33 [13:27:28]line Товар: 2710194210 [13:27:28]line ДТ(л)-К-4 [13:27:28]line 39.380 * 76.20 [13:27:28]line = 3000.76 [13:27:28]line НДС 12% НСП 1% [13:27:28]line > о реализуемом товаре [13:27:28]line ОКРУГЛЕНИЕ: -0.76 [13:27:28]line ИТОГО: 3000.00 [13:27:28]line Внесено: 3000.00 [13:27:28]line СДАЧА: 0.00 [13:27:28]line НСП 1% : 26.55 [13:27:28]line НДС 12% : 318.66 [13:27:28]line Наличными: 3000.00 [13:27:28]line Безнал.: 0.00 [13:27:28]line Место: АЗС № 94 "Партнер Нефть" [13:27:28]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [13:27:28]line СНО: Общий режим [13:27:28]line Чек 259 18.08.2024 13:27 [13:27:28]line Смена: 449 ФФД: 1.0 [13:27:28]line ЗНМ: 0300000099 [13:27:28]line РНМ: 0000000000091865 [13:27:28]line Версия ККМ: 001 [13:27:28]line ФМ: 0000000000871820 [13:27:28]line ФД: 260701 [13:27:28]line ФПД: 275308849216993 [13:27:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T132731&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260701&fm=275308849216993&tin=02508201610067®Number=0000000000091865&sum=300000 [13:27:28]OFD Sender: Processing packet 260701 [packets to send 192, broken 191] [13:27:28]ProducePacketName [13:27:28]name=ofd_packets/00260701 [13:27:28]OFD Sender: To server: pG, [13:27:28]CommunicateWithHost lk.salyk.kg:30040 [13:27:28]ConnectInit lk.salyk.kg [13:27:28]written 0, free lines is 4095 [13:27:28]Connected sock=10 [13:27: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 30 10 01 00 00 E5 E0 08 01 7F 23 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 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 03 01 00 00 F4 03 04 00 C3 F6 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5D FA 03 00 35 04 06 00 FA 64 56 29 3D E1 34 50 90 1E C8 FD 3B F7 [13:27: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 30 4F 00 00 00 79 3F 47 00 17 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 30 10 04 04 00 5D FA 03 00 F4 03 04 00 18 A0 C1 66 B6 04 01 00 00 D2 7D 39 B3 0C F3 87 A3 [13:27:28]CommunicateWithHost err = 0 [13:27:28]CheckOFDResponse [13:27:28]1017 (14) - 77093643461234 [13:27:28]1041 (16) - 0000000000871820 [13:27:28]1040 (4) - 260701 [13:27:28]1012 (4) - 18.08.2024 07:17 [13:27:28]1206 (1) - 0 [13:27:28]OFD Sender: Remove packet 260701 [13:27:28]ProducePacketName [13:27:28]name=ofd_packets/00260701 [13:27:28]NVStorageDeleteData [13:27:29]Write to MH i2c: 01 00 00 93 86 19 [13:27:29]Write i2c OK [13:27:29]MH_I2C_Read... [13:27:29]Read from MH i2c: 01 [13:27:29]MH_I2C_Read... [13:27:29]Read from MH i2c: 01 07 00 [13:27:29]MH_I2C_Read... [13:27:29]Read from MH i2c: 01 07 00 93 86 00 00 00 00 00 6D 0C 99 [13:27:29]RasterBufferAndPrint [13:27:29]line [13:27:29]line [13:27:29]line [13:27:29]line [13:27:29]line [13:27:29]written 0, free lines is 3184 [13:27:29]MH_Cut [13:27:29]Write to MH i2c: D1 01 00 9A 86 01 F2 [13:27:29]Write i2c OK [13:27:29]MH_I2C_Read... [13:27:29]Read from MH i2c: D1 [13:27:29]MH_I2C_Read... [13:27:29]Read from MH i2c: D1 01 00 [13:27:29]MH_I2C_Read... [13:27:29]Read from MH i2c: D1 01 00 9A 86 00 F1 [13:27:29]Write to MH i2c: 01 00 00 9B 86 21 [13:27:29]Write i2c OK [13:27:29]MH_I2C_Read... [13:27:29]OFD Sender: No OFD packet to send [13:27:30]*** Cut start [13:27:30]*** Purtial cut [13:27:30]*** Stage 1: CUTSNS_PIN = 1 [13:27:32]Read from MH i2c: 01 [13:27:32]MH_I2C_Read... [13:27:32]*** Stop cut motor [13:27:32]*** Cut end [13:27:32]Read from MH i2c: 01 07 00 [13:27:32]MH_I2C_Read... [13:27:32]Read from MH i2c: 01 07 00 9B 86 00 00 00 00 00 FF 0F 36 [13:27:32]process_action close_receipt done [13:27:32]requested_data is exist [13:27:32]produce_requested_data [13:27:32]requested_item fm.sn is exist - process it [13:27:32]wFMCommunicate request_size=4 [13:27:32]MH_SAM_APDU [13:27:32]CAPDU: 80 11 00 00 [13:27:32]Write to MH i2c: E2 08 00 9C 86 80 11 00 00 00 00 00 00 9C [13:27:32]Write i2c OK [13:27:32]MH_I2C_Read... [13:27:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:32]Read from MH i2c: E2 [13:27:32]MH_I2C_Read... [13:27:32]Read from MH i2c: E2 17 00 [13:27:32]MH_I2C_Read... [13:27:32]Read from MH i2c: E2 17 00 9C 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E9 [13:27:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:27:32]wFMCommunicate OK [13:27:32]requested_item fd.num is exist - process it [13:27:32]SAM_PROTO_GetFieldsCounters [13:27:32]wFMCommunicate request_size=4 [13:27:32]MH_SAM_APDU [13:27:32]CAPDU: 80 13 00 00 [13:27:32]Write to MH i2c: E2 08 00 9D 86 80 13 00 00 00 00 00 00 9F [13:27:32]Write i2c OK [13:27:32]MH_I2C_Read... [13:27:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:32]Read from MH i2c: E2 [13:27:32]MH_I2C_Read... [13:27:32]Read from MH i2c: E2 62 00 [13:27:32]MH_I2C_Read... [13:27:32]Read from MH i2c: E2 62 00 9D 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 5D FA 03 00 0E 04 04 00 C1 01 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 E6 [13:27: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 5D FA 03 00 0E 04 04 00 C1 01 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 [13:27:32]wFMCommunicate OK [13:27:32]SAM_PROTO_GetFieldsCounters done [13:27:32]requested_item shift.num is exist - process it [13:27:32]requested_item shift.opened is exist - process it [13:27:32]req_shift_opened [13:27:32]FM_GetShiftState [13:27:32]SAM_PROTO_GetShiftState [13:27:32]wFMCommunicate request_size=4 [13:27:32]MH_SAM_APDU [13:27:32]CAPDU: 80 13 01 00 [13:27:32]Write to MH i2c: E2 08 00 9E 86 80 13 01 00 00 00 00 00 A1 [13:27:32]Write i2c OK [13:27:32]MH_I2C_Read... [13:27:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:32]Read from MH i2c: E2 [13:27:32]MH_I2C_Read... [13:27:32]Read from MH i2c: E2 0E 00 [13:27:32]MH_I2C_Read... [13:27:32]Read from MH i2c: E2 0E 00 9E 86 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 DE [13:27:32]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:27:32]wFMCommunicate OK [13:27:32]SAM_PROTO_GetShiftState done [13:27:32]FM_GetShiftState done [13:27:32]req_shift_opened done [13:27:32]requested_item shift.open_date is exist - process it [13:27:32]req_shift_open_date [13:27:32]req_shift_open_date done [13:27:32]produce_requested_data done [13:27:32]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260701,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [13:27:32]process_action_free close_receipt [13:27:32]json_value_free [13:27:32]json_value_free done [13:27:32]process_json_proto returns [13:27:32]Send response to host [13:27:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260701,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [13:27:32]free response buf [13:27:32]execute_script done [13:27:32]execute_script returns [13:27:32]free content buf [13:27:32]Sock 9.Close socket [13:27:32]Sock 9.Thread stoped [13:27:34]OFD Sender: No OFD packet to send [13:27:39]OFD Sender: No OFD packet to send [13:27:44]OFD Sender: No OFD packet to send [13:27:49]OFD Sender: No OFD packet to send [13:27:54]OFD Sender: No OFD packet to send [13:27:59]OFD Sender: No OFD packet to send [13:28:04]OFD Sender: No OFD packet to send [13:28:09]OFD Sender: No OFD packet to send [13:28:14]OFD Sender: No OFD packet to send [13:28:19]OFD Sender: No OFD packet to send [13:28:24]OFD Sender: No OFD packet to send [13:28:29]OFD Sender: No OFD packet to send [13:28:34]OFD Sender: No OFD packet to send [13:28:39]OFD Sender: No OFD packet to send [13:28:44]OFD Sender: No OFD packet to send [13:28:49]OFD Sender: No OFD packet to send [13:28:54]OFD Sender: No OFD packet to send [13:28:59]OFD Sender: No OFD packet to send [13:29:04]OFD Sender: No OFD packet to send [13:29:09]OFD Sender: No OFD packet to send [13:29:14]OFD Sender: No OFD packet to send [13:29:19]OFD Sender: No OFD packet to send [13:29:24]OFD Sender: No OFD packet to send [13:29:29]OFD Sender: No OFD packet to send [13:29:34]OFD Sender: No OFD packet to send [13:29:39]OFD Sender: No OFD packet to send [13:29:44]OFD Sender: No OFD packet to send [13:29:45]accept exits with 7 [13:29:45]New connection [13:29:45]New thread 3066473828 created [13:29:45]Thread 3066617188 joined [13:29:45]Waiting for new connection... [13:29:45] Sock 7.Parse request [13:29:45]Sock 7.Check first char [13:29:45]Sock 7.First char is OK [13:29:45]request: POST /json_proto HTTP/1.0 [13:29:45]Method: POST [13:29:45]URL: /json_proto [13:29:45]Method is POST - this is cgi request [13:29:45]url: /json_proto [13:29:45]query_string will be loaded in cgi processing [13:29:45]execute_cgi json_proto POST (null) [13:29:45]execute_cgi path=json_proto method=POST [13:29:45]POST find Content-Length [13:29:45]Host: 172.17.55.133:8080 [13:29:45]Content-Length: 678 [13:29:45]Content-Type: application/json [13:29:45] [13:29:45]POST finish read [13:29:45]Found Content-Length = 678 [13:29:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.680, "sum" : 520.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:45]execute_script... [13:29: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)1036251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.680, "sum" : 520.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:45]POST & json_proto [13:29:45]process_json_proto [13:29:45]json parsed OK: [13:29:45]protocol is kg_v1.0 [13:29:45]action value=close_receipt [13:29:45]process_action close_receipt [13:29:45]cmd_close_receipt [13:29:45]MH_GetDate [13:29:45]Write to MH i2c: F0 00 00 9F 86 14 [13:29:45]Write i2c OK [13:29:45]MH_I2C_Read... [13:29:45]Read from MH i2c: F0 [13:29:45]MH_I2C_Read... [13:29:45]Read from MH i2c: F0 09 00 [13:29:45]MH_I2C_Read... [13:29:45]Read from MH i2c: F0 09 00 9F 86 00 4E F7 C1 66 34 48 D8 65 42 [13:29:45]GetLastDocTimeStamp 1723987651 [13:29:45]current date 1723987790 [13:29:45]FM_GetShiftState [13:29:45]SAM_PROTO_GetShiftState [13:29:45]wFMCommunicate request_size=4 [13:29:45]MH_SAM_APDU [13:29:45]CAPDU: 80 13 01 00 [13:29:45]Write to MH i2c: E2 08 00 A0 86 80 13 01 00 00 00 00 00 A3 [13:29:45]Write i2c OK [13:29:45]MH_I2C_Read... [13:29:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:45]Read from MH i2c: E2 [13:29:45]MH_I2C_Read... [13:29:45]Read from MH i2c: E2 0E 00 [13:29:45]MH_I2C_Read... [13:29:45]Read from MH i2c: E2 0E 00 A0 86 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E0 [13:29:45]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:29:45]wFMCommunicate OK [13:29:45]SAM_PROTO_GetShiftState done [13:29:45]FM_GetShiftState done [13:29:45]opened in 1723940556 [13:29:45]opened+sec_in_day 1724026956 [13:29:45]quantity*price = 52070 [13:29:45]sum+1 = 52071 [13:29:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 520.00 Внесено: 550.00 СДАЧА: 30.00 НСП 1% : 4.61 НДС 12% : 55.30 Наличными: 520.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 260 18.08.2024 13:29 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260702 ФПД: 62668528605026 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T132950&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260702&fm=62668528605026&tin=02508201610067®Number=0000000000091865&sum=52000 [13:29:46]StoreToDocumentArchive [13:29:46]shift 449 fd 260702 [13:29:46]save to /storage/0449/doc_00260702 [13:29:46]save last doc name /storage/0449/doc_00260702 to /storage/kkm_last_doc_name [13:29:46]save OK [13:29:46]Clear old archive folders... [13:29:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:29:46]tlvbuf is 00336A40 [13:29:46]SAM_PROTO_ClearQueue [13:29:46]wFMCommunicate request_size=4 [13:29:46]MH_SAM_APDU [13:29:46]CAPDU: 80 09 00 00 [13:29:46]Write to MH i2c: E2 08 00 AD 86 80 09 00 00 00 00 00 00 A5 [13:29:46]Write i2c OK [13:29:46]MH_I2C_Read... [13:29:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:46]Read from MH i2c: E2 [13:29:46]MH_I2C_Read... [13:29:46]Read from MH i2c: E2 03 00 [13:29:46]MH_I2C_Read... [13:29:46]Read from MH i2c: E2 03 00 AD 86 00 90 00 A7 [13:29:46]RAPDU: 90 00 [13:29:46]wFMCommunicate OK [13:29:46]SAM_PROTO_ClearQueue done [13:29:46]KKMCreateOFDPacket [13:29:46]OFDProtocolAddRootSTLVToBuf [13:29:46]FM_MakeSignedData [13:29:46]FM_MakeSignedData [13:29:46]SAM_PROTO_SignData [13:29:46]wFMCommunicate request_size=4 [13:29:46]MH_SAM_APDU [13:29:46]CAPDU: 80 0D 01 02 [13:29:46]Write to MH i2c: E2 08 00 AE 86 80 0D 01 02 00 00 00 00 AD [13:29:46]Write i2c OK [13:29:46]MH_I2C_Read... [13:29:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:46]Read from MH i2c: E2 [13:29:46]MH_I2C_Read... [13:29:46]Read from MH i2c: E2 03 00 [13:29:46]MH_I2C_Read... [13:29:46]Read from MH i2c: E2 03 00 AE 86 00 90 00 A8 [13:29:46]RAPDU: 90 00 [13:29:46]wFMCommunicate OK [13:29:46]wFMCommunicate request_size=255 [13:29:46]MH_SAM_APDU [13:29:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 1E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 66 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 9A 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 04 01 00 00 F4 03 04 00 4E F7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5E FA 03 00 35 04 06 00 38 [13:29:46]Write to MH i2c: E2 02 01 AF 86 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 1E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 66 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 9A 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 04 01 00 00 F4 03 04 00 4E F7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5E FA 03 00 35 04 06 00 38 00 00 B3 [13:29:46]Write i2c OK [13:29:46]MH_I2C_Read... [13:29:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:47]Read from MH i2c: E2 [13:29:47]MH_I2C_Read... [13:29:47]Read from MH i2c: E2 03 00 [13:29:47]MH_I2C_Read... [13:29:47]Read from MH i2c: E2 03 00 AF 86 00 90 00 A9 [13:29:47]RAPDU: 90 00 [13:29:47]wFMCommunicate OK [13:29:47]wFMCommunicate request_size=10 [13:29:47]MH_SAM_APDU [13:29:47]CAPDU: 80 0D 02 02 05 FF 27 62 D7 62 [13:29:47]Write to MH i2c: E2 0D 00 B0 86 80 0D 02 02 05 00 FF 27 62 D7 62 00 00 7B [13:29:47]Write i2c OK [13:29:47]MH_I2C_Read... [13:29:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:47]Read from MH i2c: E2 [13:29:47]MH_I2C_Read... [13:29:47]Read from MH i2c: E2 03 00 [13:29:47]MH_I2C_Read... [13:29:47]Read from MH i2c: E2 03 00 B0 86 00 90 00 AA [13:29:47]RAPDU: 90 00 [13:29:47]wFMCommunicate OK [13:29:47]wFMCommunicate request_size=4 [13:29:47]MH_SAM_APDU [13:29:47]CAPDU: 80 0D 03 02 [13:29:47]Write to MH i2c: E2 08 00 B1 86 80 0D 03 02 00 00 00 00 B2 [13:29:47]Write i2c OK [13:29:47]MH_I2C_Read... [13:29:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:47]Read from MH i2c: E2 [13:29:47]MH_I2C_Read... [13:29:47]Read from MH i2c: E2 0B 00 [13:29:47]MH_I2C_Read... [13:29:47]Read from MH i2c: E2 0B 00 B1 86 00 AB FC 81 C5 4D 95 86 CE 90 00 D6 [13:29:47]RAPDU: AB FC 81 C5 4D 95 86 CE 90 00 [13:29:47]wFMCommunicate OK [13:29:47]SAM_PROTO_SignData done [13:29:47]FM_MakeSignedData done [13:29:47]CreateOFDProtocolMessage [13:29:47]wFMCommunicate request_size=4 [13:29:47]MH_SAM_APDU [13:29:47]CAPDU: 80 11 00 00 [13:29:47]Write to MH i2c: E2 08 00 B2 86 80 11 00 00 00 00 00 00 B2 [13:29:47]Write i2c OK [13:29:47]MH_I2C_Read... [13:29:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:47]Read from MH i2c: E2 [13:29:47]MH_I2C_Read... [13:29:47]Read from MH i2c: E2 17 00 [13:29:47]MH_I2C_Read... [13:29:47]Read from MH i2c: E2 17 00 B2 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 FF [13:29:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:29:47]wFMCommunicate OK [13:29:47]CreateOFDProtocolMessage done [13:29:47]OFDSenderStorePacket 260702 [13:29:47]StoreOFDPacket docnum=260702 [13:29:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 AB C5 07 01 4F D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 1E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 66 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 9A 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 04 01 00 00 F4 03 04 00 4E F7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5E FA 03 00 35 04 06 00 38 FF 27 62 D7 62 AB FC 81 C5 4D 95 86 CE [13:29:47]CheckFolder [13:29:47]dirname=/storage/ofd_packets [13:29:47]CheckFolder done [13:29:47]ProducePacketName [13:29:47]name=ofd_packets/00260702 [13:29:47]NVStorageSaveData ofd_packets/00260702 [13:29:47]File name is /storage/ofd_packets/00260702 [13:29:47]Write 301 bytes [13:29:47]NVStorageSaveData done [13:29:47]OFDSenderStorePacket done [13:29:47]KKMCreateOFDPacket done [13:29:47]NVStorageSaveData kkm_last_timestamp [13:29:47]File name is /storage/kkm_last_timestamp [13:29:47]Write 4 bytes [13:29:47]NVStorageSaveData done [13:29:47]ExternCall_PrintAddStr [13:29:47]wPrintStart [13:29:47]Write to MH i2c: 01 00 00 B3 86 39 [13:29:47]Write i2c OK [13:29:47]MH_I2C_Read... [13:29:47]Read from MH i2c: 01 [13:29:47]MH_I2C_Read... [13:29:47]Read from MH i2c: 01 07 00 [13:29:47]MH_I2C_Read... [13:29:47]Read from MH i2c: 01 07 00 B3 86 00 00 00 00 00 FF 0F 4E [13:29:47]RasterBufferAndPrint [13:29:47]line Счет N : (1)1036251 [13:29:47]line ИНН: 02508201610067 [13:29:47]line Контрольно-Кассовый Чек [13:29:47]line ПРОДАЖА [13:29:47]line ТРК (МРК, ГНК) : 22 [13:29:47]line Товар: 2710124130 [13:29:47]line Аи-92-К-5 [13:29:47]line 7.680 * 67.80 [13:29:47]line = 520.70 [13:29:47]line НДС 12% НСП 1% [13:29:47]line > о реализуемом товаре [13:29:47]line ОКРУГЛЕНИЕ: -0.70 [13:29:47]line ИТОГО: 520.00 [13:29:47]line Внесено: 550.00 [13:29:47]line СДАЧА: 30.00 [13:29:47]line НСП 1% : 4.61 [13:29:47]line НДС 12% : 55.30 [13:29:47]line Наличными: 520.00 [13:29:47]line Безнал.: 0.00 [13:29:47]line Место: АЗС № 94 "Партнер Нефть" [13:29:47]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [13:29:47]line СНО: Общий режим [13:29:47]line Чек 260 18.08.2024 13:29 [13:29:47]line Смена: 449 ФФД: 1.0 [13:29:47]line ЗНМ: 0300000099 [13:29:47]line РНМ: 0000000000091865 [13:29:47]line Версия ККМ: 001 [13:29:47]line ФМ: 0000000000871820 [13:29:47]line ФД: 260702 [13:29:47]line ФПД: 62668528605026 [13:29:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T132950&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260702&fm=62668528605026&tin=02508201610067®Number=0000000000091865&sum=52000 [13:29:47]written 0, free lines is 4095 [13:29:47]OFD Sender: Processing packet 260702 [packets to send 192, broken 191] [13:29:47]ProducePacketName [13:29:47]name=ofd_packets/00260702 [13:29:47]OFD Sender: To server: pG, [13:29:47]CommunicateWithHost lk.salyk.kg:30040 [13:29:47]ConnectInit lk.salyk.kg [13:29:47]Connected sock=10 [13:29: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 30 0F 01 00 00 AB C5 07 01 4F D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 1E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 66 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 9A 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 04 01 00 00 F4 03 04 00 4E F7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5E FA 03 00 35 04 06 00 38 FF 27 62 D7 62 AB FC 81 C5 4D 95 86 CE [13:29:47]Write to MH i2c: 01 00 00 DE 86 64 [13:29:47]Write i2c OK [13:29:47]MH_I2C_Read... [13:29:47]Read from MH i2c: 01 [13:29:47]MH_I2C_Read... [13:29:47]Read from MH i2c: 01 07 00 [13:29:47]MH_I2C_Read... [13:29:47]Read from MH i2c: 01 07 00 DE 86 00 00 00 00 00 6F 0C E6 [13:29:47]RasterBufferAndPrint [13:29:47]line [13:29:47]line [13:29:47]line [13:29:47]line [13:29:47]line [13:29:47]written 0, free lines is 3186 [13:29:47]MH_Cut [13:29:47]Write to MH i2c: D1 01 00 E5 86 01 3D [13:29:47]Write i2c OK [13:29:47]MH_I2C_Read... [13:29:47]Read from MH i2c: D1 [13:29:47]MH_I2C_Read... [13:29:47]Read from MH i2c: D1 01 00 [13:29:47]MH_I2C_Read... [13:29:47]Read from MH i2c: D1 01 00 E5 86 00 3C [13:29:47]Write to MH i2c: 01 00 00 E6 86 6C [13:29:47]Write i2c OK [13:29:47]MH_I2C_Read... [13:29: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 30 4F 00 00 00 94 5C 47 00 1B 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5E FA 03 00 F4 03 04 00 A3 A0 C1 66 B6 04 01 00 00 60 42 90 5E 00 BA 57 A4 [13:29:47]CommunicateWithHost err = 0 [13:29:47]CheckOFDResponse [13:29:47]1017 (14) - 77093643461234 [13:29:47]1041 (16) - 0000000000871820 [13:29:47]1040 (4) - 260702 [13:29:47]1012 (4) - 18.08.2024 07:20 [13:29:47]1206 (1) - 0 [13:29:47]OFD Sender: Remove packet 260702 [13:29:47]ProducePacketName [13:29:47]name=ofd_packets/00260702 [13:29:47]NVStorageDeleteData [13:29:48]OFD Sender: No OFD packet to send [13:29:48]*** Cut start [13:29:48]*** Purtial cut [13:29:48]*** Stage 1: CUTSNS_PIN = 1 [13:29:50]Read from MH i2c: 01 [13:29:50]MH_I2C_Read... [13:29:50]*** Stop cut motor [13:29:51]*** Cut end [13:29:51]Read from MH i2c: 01 07 00 [13:29:51]MH_I2C_Read... [13:29:51]Read from MH i2c: 01 07 00 E6 86 00 00 00 00 00 FF 0F 81 [13:29:51]process_action close_receipt done [13:29:51]requested_data is exist [13:29:51]produce_requested_data [13:29:51]requested_item fm.sn is exist - process it [13:29:51]wFMCommunicate request_size=4 [13:29:51]MH_SAM_APDU [13:29:51]CAPDU: 80 11 00 00 [13:29:51]Write to MH i2c: E2 08 00 E7 86 80 11 00 00 00 00 00 00 E7 [13:29:51]Write i2c OK [13:29:51]MH_I2C_Read... [13:29:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:51]Read from MH i2c: E2 [13:29:51]MH_I2C_Read... [13:29:51]Read from MH i2c: E2 17 00 [13:29:51]MH_I2C_Read... [13:29:51]Read from MH i2c: E2 17 00 E7 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 34 [13:29:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:29:51]wFMCommunicate OK [13:29:51]requested_item fd.num is exist - process it [13:29:51]SAM_PROTO_GetFieldsCounters [13:29:51]wFMCommunicate request_size=4 [13:29:51]MH_SAM_APDU [13:29:51]CAPDU: 80 13 00 00 [13:29:51]Write to MH i2c: E2 08 00 E8 86 80 13 00 00 00 00 00 00 EA [13:29:51]Write i2c OK [13:29:51]MH_I2C_Read... [13:29:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:51]Read from MH i2c: E2 [13:29:51]MH_I2C_Read... [13:29:51]Read from MH i2c: E2 62 00 [13:29:51]MH_I2C_Read... [13:29:51]Read from MH i2c: E2 62 00 E8 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 5E FA 03 00 0E 04 04 00 C1 01 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 35 [13:29: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 5E FA 03 00 0E 04 04 00 C1 01 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 [13:29:51]wFMCommunicate OK [13:29:51]SAM_PROTO_GetFieldsCounters done [13:29:51]requested_item shift.num is exist - process it [13:29:51]requested_item shift.opened is exist - process it [13:29:51]req_shift_opened [13:29:51]FM_GetShiftState [13:29:51]SAM_PROTO_GetShiftState [13:29:51]wFMCommunicate request_size=4 [13:29:51]MH_SAM_APDU [13:29:51]CAPDU: 80 13 01 00 [13:29:51]Write to MH i2c: E2 08 00 E9 86 80 13 01 00 00 00 00 00 EC [13:29:51]Write i2c OK [13:29:51]MH_I2C_Read... [13:29:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:51]Read from MH i2c: E2 [13:29:51]MH_I2C_Read... [13:29:51]Read from MH i2c: E2 0E 00 [13:29:51]MH_I2C_Read... [13:29:51]Read from MH i2c: E2 0E 00 E9 86 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 29 [13:29:51]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:29:51]wFMCommunicate OK [13:29:51]SAM_PROTO_GetShiftState done [13:29:51]FM_GetShiftState done [13:29:51]req_shift_opened done [13:29:51]requested_item shift.open_date is exist - process it [13:29:51]req_shift_open_date [13:29:51]req_shift_open_date done [13:29:51]produce_requested_data done [13:29:51]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260702,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [13:29:51]process_action_free close_receipt [13:29:51]json_value_free [13:29:51]json_value_free done [13:29:51]process_json_proto returns [13:29:51]Send response to host [13:29:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260702,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [13:29:51]free response buf [13:29:51]execute_script done [13:29:51]execute_script returns [13:29:51]free content buf [13:29:51]Sock 7.Close socket [13:29:51]Sock 7.Thread stoped [13:29:53]OFD Sender: No OFD packet to send [13:29:55]accept exits with 9 [13:29:55]New connection [13:29:55]New thread 3066617188 created [13:29:55]Thread 3066473828 joined [13:29:55]Waiting for new connection... [13:29:55] Sock 9.Parse request [13:29:55]Sock 9.Check first char [13:29:55]Sock 9.First char is OK [13:29:55]request: POST /json_proto HTTP/1.0 [13:29:55]Method: POST [13:29:55]URL: /json_proto [13:29:55]Method is POST - this is cgi request [13:29:55]url: /json_proto [13:29:55]query_string will be loaded in cgi processing [13:29:55]execute_cgi json_proto POST (null) [13:29:55]execute_cgi path=json_proto method=POST [13:29:55]POST find Content-Length [13:29:55]Host: 172.17.55.133:8080 [13:29:55]Content-Length: 688 [13:29:55]Content-Type: application/json [13:29:55] [13:29:55]POST finish read [13:29:55]Found Content-Length = 688 [13:29:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:55]execute_script... [13:29:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:55]POST & json_proto [13:29:55]process_json_proto [13:29:55]json parsed OK: [13:29:55]protocol is kg_v1.0 [13:29:55]action value=close_receipt [13:29:55]process_action close_receipt [13:29:55]cmd_close_receipt [13:29:55]MH_GetDate [13:29:55]Write to MH i2c: F0 00 00 EA 86 5F [13:29:55]Write i2c OK [13:29:55]MH_I2C_Read... [13:29:55]Read from MH i2c: F0 [13:29:55]MH_I2C_Read... [13:29:55]Read from MH i2c: F0 09 00 [13:29:55]MH_I2C_Read... [13:29:55]Read from MH i2c: F0 09 00 EA 86 00 58 F7 C1 66 34 48 D8 65 97 [13:29:55]GetLastDocTimeStamp 1723987790 [13:29:55]current date 1723987800 [13:29:55]FM_GetShiftState [13:29:55]SAM_PROTO_GetShiftState [13:29:55]wFMCommunicate request_size=4 [13:29:55]MH_SAM_APDU [13:29:55]CAPDU: 80 13 01 00 [13:29:55]Write to MH i2c: E2 08 00 EB 86 80 13 01 00 00 00 00 00 EE [13:29:55]Write i2c OK [13:29:55]MH_I2C_Read... [13:29:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:55]Read from MH i2c: E2 [13:29:55]MH_I2C_Read... [13:29:55]Read from MH i2c: E2 0E 00 [13:29:55]MH_I2C_Read... [13:29:55]Read from MH i2c: E2 0E 00 EB 86 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 2B [13:29:55]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:29:55]wFMCommunicate OK [13:29:55]SAM_PROTO_GetShiftState done [13:29:55]FM_GetShiftState done [13:29:55]opened in 1723940556 [13:29:55]opened+sec_in_day 1724026956 [13:29:55]quantity*price = 150037 [13:29:55]sum+1 = 150039 [13:29:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 261 18.08.2024 13:30 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260703 ФПД: 237489023226839 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T133000&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260703&fm=237489023226839&tin=02508201610067®Number=0000000000091865&sum=150000 [13:29:56]StoreToDocumentArchive [13:29:56]shift 449 fd 260703 [13:29:56]save to /storage/0449/doc_00260703 [13:29:56]save last doc name /storage/0449/doc_00260703 to /storage/kkm_last_doc_name [13:29:56]save OK [13:29:56]Clear old archive folders... [13:29:56]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:29:56]tlvbuf is 004E5A50 [13:29:56]SAM_PROTO_ClearQueue [13:29:56]wFMCommunicate request_size=4 [13:29:56]MH_SAM_APDU [13:29:56]CAPDU: 80 09 00 00 [13:29:56]Write to MH i2c: E2 08 00 F8 86 80 09 00 00 00 00 00 00 F0 [13:29:56]Write i2c OK [13:29:56]MH_I2C_Read... [13:29:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:56]Read from MH i2c: E2 [13:29:56]MH_I2C_Read... [13:29:56]Read from MH i2c: E2 03 00 [13:29:56]MH_I2C_Read... [13:29:56]Read from MH i2c: E2 03 00 F8 86 00 90 00 F2 [13:29:56]RAPDU: 90 00 [13:29:56]wFMCommunicate OK [13:29:56]SAM_PROTO_ClearQueue done [13:29:56]KKMCreateOFDPacket [13:29:56]OFDProtocolAddRootSTLVToBuf [13:29:56]FM_MakeSignedData [13:29:56]FM_MakeSignedData [13:29:56]SAM_PROTO_SignData [13:29:56]wFMCommunicate request_size=4 [13:29:56]MH_SAM_APDU [13:29:56]CAPDU: 80 0D 01 02 [13:29:56]Write to MH i2c: E2 08 00 F9 86 80 0D 01 02 00 00 00 00 F8 [13:29:56]Write i2c OK [13:29:56]MH_I2C_Read... [13:29:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:56]Read from MH i2c: E2 [13:29:56]MH_I2C_Read... [13:29:56]Read from MH i2c: E2 03 00 [13:29:56]MH_I2C_Read... [13:29:56]Read from MH i2c: E2 03 00 F9 86 00 90 00 F3 [13:29:56]RAPDU: 90 00 [13:29:56]wFMCommunicate OK [13:29:56]wFMCommunicate request_size=255 [13:29:56]MH_SAM_APDU [13:29:56]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 58 F7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5F FA 03 00 35 04 06 00 [13:29:56]Write to MH i2c: E2 02 01 FA 86 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 58 F7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5F FA 03 00 35 04 06 00 00 00 73 [13:29:56]Write i2c OK [13:29:56]MH_I2C_Read... [13:29:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:57]Read from MH i2c: E2 [13:29:57]MH_I2C_Read... [13:29:57]Read from MH i2c: E2 03 00 [13:29:57]MH_I2C_Read... [13:29:57]Read from MH i2c: E2 03 00 FA 86 00 90 00 F4 [13:29:57]RAPDU: 90 00 [13:29:57]wFMCommunicate OK [13:29:57]wFMCommunicate request_size=11 [13:29:57]MH_SAM_APDU [13:29:57]CAPDU: 80 0D 02 02 06 D7 FE B8 DE 13 D7 [13:29:57]Write to MH i2c: E2 0E 00 FB 86 80 0D 02 02 06 00 D7 FE B8 DE 13 D7 00 00 5C [13:29:57]Write i2c OK [13:29:57]MH_I2C_Read... [13:29:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:57]Read from MH i2c: E2 [13:29:57]MH_I2C_Read... [13:29:57]Read from MH i2c: E2 03 00 [13:29:57]MH_I2C_Read... [13:29:57]Read from MH i2c: E2 03 00 FB 86 00 90 00 F5 [13:29:57]RAPDU: 90 00 [13:29:57]wFMCommunicate OK [13:29:57]wFMCommunicate request_size=4 [13:29:57]MH_SAM_APDU [13:29:57]CAPDU: 80 0D 03 02 [13:29:57]Write to MH i2c: E2 08 00 FC 86 80 0D 03 02 00 00 00 00 FD [13:29:57]Write i2c OK [13:29:57]MH_I2C_Read... [13:29:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:57]Read from MH i2c: E2 [13:29:57]MH_I2C_Read... [13:29:57]Read from MH i2c: E2 0B 00 [13:29:57]MH_I2C_Read... [13:29:57]Read from MH i2c: E2 0B 00 FC 86 00 F1 B9 01 E5 93 EB 8A 94 90 00 2A [13:29:57]RAPDU: F1 B9 01 E5 93 EB 8A 94 90 00 [13:29:57]wFMCommunicate OK [13:29:57]SAM_PROTO_SignData done [13:29:57]FM_MakeSignedData done [13:29:57]CreateOFDProtocolMessage [13:29:57]wFMCommunicate request_size=4 [13:29:57]MH_SAM_APDU [13:29:57]CAPDU: 80 11 00 00 [13:29:57]Write to MH i2c: E2 08 00 FD 86 80 11 00 00 00 00 00 00 FD [13:29:57]Write i2c OK [13:29:57]MH_I2C_Read... [13:29:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:57]Read from MH i2c: E2 [13:29:57]MH_I2C_Read... [13:29:57]Read from MH i2c: E2 17 00 [13:29:57]MH_I2C_Read... [13:29:57]Read from MH i2c: E2 17 00 FD 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 4A [13:29:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:29:57]wFMCommunicate OK [13:29:57]CreateOFDProtocolMessage done [13:29:57]OFDSenderStorePacket 260703 [13:29:57]StoreOFDPacket docnum=260703 [13:29:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 07 B5 08 01 BF E4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 58 F7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5F FA 03 00 35 04 06 00 D7 FE B8 DE 13 D7 F1 B9 01 E5 93 EB 8A 94 [13:29:57]CheckFolder [13:29:57]dirname=/storage/ofd_packets [13:29:57]CheckFolder done [13:29:57]ProducePacketName [13:29:57]name=ofd_packets/00260703 [13:29:57]NVStorageSaveData ofd_packets/00260703 [13:29:57]File name is /storage/ofd_packets/00260703 [13:29:57]Write 302 bytes [13:29:57]NVStorageSaveData done [13:29:57]OFDSenderStorePacket done [13:29:57]KKMCreateOFDPacket done [13:29:57]NVStorageSaveData kkm_last_timestamp [13:29:57]File name is /storage/kkm_last_timestamp [13:29:57]Write 4 bytes [13:29:57]NVStorageSaveData done [13:29:57]ExternCall_PrintAddStr [13:29:57]wPrintStart [13:29:57]Write to MH i2c: 01 00 00 FE 86 84 [13:29:57]Write i2c OK [13:29:57]MH_I2C_Read... [13:29:57]Read from MH i2c: 01 [13:29:57]MH_I2C_Read... [13:29:57]Read from MH i2c: 01 07 00 [13:29:57]MH_I2C_Read... [13:29:57]Read from MH i2c: 01 07 00 FE 86 00 00 00 00 00 FF 0F 99 [13:29:57]RasterBufferAndPrint [13:29:57]line Счет N : (1)1036250 [13:29:57]line ИНН: 02508201610067 [13:29:57]line Контрольно-Кассовый Чек [13:29:57]line ПРОДАЖА [13:29:57]line ТРК (МРК, ГНК) : 43 [13:29:57]line Товар: 2710194210 [13:29:57]line ДТ(л)-К-4 [13:29:57]line 19.690 * 76.20 [13:29:57]line = 1500.38 [13:29:57]line НДС 12% НСП 1% [13:29:57]line > о реализуемом товаре [13:29:57]line ОКРУГЛЕНИЕ: -0.38 [13:29:57]line ИТОГО: 1500.00 [13:29:57]line Внесено: 1500.00 [13:29:57]line СДАЧА: 0.00 [13:29:57]line НСП 1% : 13.28 [13:29:57]line НДС 12% : 159.33 [13:29:57]line Наличными: 1500.00 [13:29:57]line Безнал.: 0.00 [13:29:57]line Место: АЗС № 94 "Партнер Нефть" [13:29:57]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [13:29:57]line СНО: Общий режим [13:29:57]line Чек 261 18.08.2024 13:30 [13:29:57]line Смена: 449 ФФД: 1.0 [13:29:57]line ЗНМ: 0300000099 [13:29:57]line РНМ: 0000000000091865 [13:29:57]line Версия ККМ: 001 [13:29:57]line ФМ: 0000000000871820 [13:29:57]line ФД: 260703 [13:29:57]line ФПД: 237489023226839 [13:29:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T133000&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260703&fm=237489023226839&tin=02508201610067®Number=0000000000091865&sum=150000 [13:29:57]written 0, free lines is 4095 [13:29:57]OFD Sender: Processing packet 260703 [packets to send 192, broken 191] [13:29:57]ProducePacketName [13:29:57]name=ofd_packets/00260703 [13:29:57]OFD Sender: To server: pG, [13:29:57]CommunicateWithHost lk.salyk.kg:30040 [13:29:57]ConnectInit lk.salyk.kg [13:29:57]Connected sock=10 [13:29: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 30 10 01 00 00 07 B5 08 01 BF E4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 58 F7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5F FA 03 00 35 04 06 00 D7 FE B8 DE 13 D7 F1 B9 01 E5 93 EB 8A 94 [13:29: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 30 4F 00 00 00 DF 5C 47 00 D0 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5F FA 03 00 F4 03 04 00 AD A0 C1 66 B6 04 01 00 00 4A 5D D0 F6 FC A2 12 DB [13:29:57]CommunicateWithHost err = 0 [13:29:57]CheckOFDResponse [13:29:57]1017 (14) - 77093643461234 [13:29:57]1041 (16) - 0000000000871820 [13:29:57]1040 (4) - 260703 [13:29:57]1012 (4) - 18.08.2024 07:20 [13:29:57]1206 (1) - 0 [13:29:57]OFD Sender: Remove packet 260703 [13:29:57]ProducePacketName [13:29:57]name=ofd_packets/00260703 [13:29:57]NVStorageDeleteData [13:29:57]Write to MH i2c: 01 00 00 29 87 B0 [13:29:57]Write i2c OK [13:29:57]MH_I2C_Read... [13:29:57]Read from MH i2c: 01 [13:29:57]MH_I2C_Read... [13:29:57]Read from MH i2c: 01 07 00 [13:29:57]MH_I2C_Read... [13:29:57]Read from MH i2c: 01 07 00 29 87 00 00 00 00 00 70 0C 33 [13:29:57]RasterBufferAndPrint [13:29:57]line [13:29:57]line [13:29:57]line [13:29:57]line [13:29:57]line [13:29:57]written 0, free lines is 3189 [13:29:57]MH_Cut [13:29:57]Write to MH i2c: D1 01 00 30 87 01 89 [13:29:57]Write i2c OK [13:29:57]MH_I2C_Read... [13:29:57]Read from MH i2c: D1 [13:29:57]MH_I2C_Read... [13:29:57]Read from MH i2c: D1 01 00 [13:29:57]MH_I2C_Read... [13:29:57]Read from MH i2c: D1 01 00 30 87 00 88 [13:29:57]Write to MH i2c: 01 00 00 31 87 B8 [13:29:57]Write i2c OK [13:29:57]MH_I2C_Read... [13:29:58]OFD Sender: No OFD packet to send [13:29:58]*** Cut start [13:29:58]*** Purtial cut [13:29:58]*** Stage 1: CUTSNS_PIN = 1 [13:30:00]Read from MH i2c: 01 [13:30:00]MH_I2C_Read... [13:30:00]*** Stop cut motor [13:30:00]*** Cut end [13:30:00]Read from MH i2c: 01 07 00 [13:30:00]MH_I2C_Read... [13:30:00]Read from MH i2c: 01 07 00 31 87 00 00 00 00 00 FF 0F CD [13:30:00]process_action close_receipt done [13:30:00]requested_data is exist [13:30:00]produce_requested_data [13:30:00]requested_item fm.sn is exist - process it [13:30:00]wFMCommunicate request_size=4 [13:30:00]MH_SAM_APDU [13:30:00]CAPDU: 80 11 00 00 [13:30:00]Write to MH i2c: E2 08 00 32 87 80 11 00 00 00 00 00 00 33 [13:30:00]Write i2c OK [13:30:00]MH_I2C_Read... [13:30:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:00]Read from MH i2c: E2 [13:30:00]MH_I2C_Read... [13:30:00]Read from MH i2c: E2 17 00 [13:30:00]MH_I2C_Read... [13:30:00]Read from MH i2c: E2 17 00 32 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 80 [13:30:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:30:00]wFMCommunicate OK [13:30:00]requested_item fd.num is exist - process it [13:30:00]SAM_PROTO_GetFieldsCounters [13:30:00]wFMCommunicate request_size=4 [13:30:00]MH_SAM_APDU [13:30:00]CAPDU: 80 13 00 00 [13:30:00]Write to MH i2c: E2 08 00 33 87 80 13 00 00 00 00 00 00 36 [13:30:00]Write i2c OK [13:30:00]MH_I2C_Read... [13:30:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:01]Read from MH i2c: E2 [13:30:01]MH_I2C_Read... [13:30:01]Read from MH i2c: E2 62 00 [13:30:01]MH_I2C_Read... [13:30:01]Read from MH i2c: E2 62 00 33 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 5F FA 03 00 0E 04 04 00 C1 01 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 85 [13:30: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 5F FA 03 00 0E 04 04 00 C1 01 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 [13:30:01]wFMCommunicate OK [13:30:01]SAM_PROTO_GetFieldsCounters done [13:30:01]requested_item shift.num is exist - process it [13:30:01]requested_item shift.opened is exist - process it [13:30:01]req_shift_opened [13:30:01]FM_GetShiftState [13:30:01]SAM_PROTO_GetShiftState [13:30:01]wFMCommunicate request_size=4 [13:30:01]MH_SAM_APDU [13:30:01]CAPDU: 80 13 01 00 [13:30:01]Write to MH i2c: E2 08 00 34 87 80 13 01 00 00 00 00 00 38 [13:30:01]Write i2c OK [13:30:01]MH_I2C_Read... [13:30:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:01]Read from MH i2c: E2 [13:30:01]MH_I2C_Read... [13:30:01]Read from MH i2c: E2 0E 00 [13:30:01]MH_I2C_Read... [13:30:01]Read from MH i2c: E2 0E 00 34 87 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 75 [13:30:01]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:30:01]wFMCommunicate OK [13:30:01]SAM_PROTO_GetShiftState done [13:30:01]FM_GetShiftState done [13:30:01]req_shift_opened done [13:30:01]requested_item shift.open_date is exist - process it [13:30:01]req_shift_open_date [13:30:01]req_shift_open_date done [13:30:01]produce_requested_data done [13:30:01]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260703,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [13:30:01]process_action_free close_receipt [13:30:01]json_value_free [13:30:01]json_value_free done [13:30:01]process_json_proto returns [13:30:01]Send response to host [13:30:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260703,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [13:30:01]free response buf [13:30:01]execute_script done [13:30:01]execute_script returns [13:30:01]free content buf [13:30:01]Sock 9.Close socket [13:30:01]Sock 9.Thread stoped [13:30:03]OFD Sender: No OFD packet to send [13:30:08]OFD Sender: No OFD packet to send [13:30:13]OFD Sender: No OFD packet to send [13:30:18]OFD Sender: No OFD packet to send [13:30:23]OFD Sender: No OFD packet to send [13:30:28]OFD Sender: No OFD packet to send [13:30:33]OFD Sender: No OFD packet to send [13:30:38]OFD Sender: No OFD packet to send [13:30:43]OFD Sender: No OFD packet to send [13:30:48]OFD Sender: No OFD packet to send [13:30:53]OFD Sender: No OFD packet to send [13:30:58]OFD Sender: No OFD packet to send [13:31:03]OFD Sender: No OFD packet to send [13:31:08]OFD Sender: No OFD packet to send [13:31:13]OFD Sender: No OFD packet to send [13:31:18]OFD Sender: No OFD packet to send [13:31:23]OFD Sender: No OFD packet to send [13:31:28]OFD Sender: No OFD packet to send [13:31:33]OFD Sender: No OFD packet to send [13:31:38]OFD Sender: No OFD packet to send [13:31:43]OFD Sender: No OFD packet to send [13:31:48]OFD Sender: No OFD packet to send [13:31:53]OFD Sender: No OFD packet to send [13:31:58]OFD Sender: No OFD packet to send [13:32:01]accept exits with 7 [13:32:01]New connection [13:32:01]New thread 3066473828 created [13:32:01]Thread 3066617188 joined [13:32:01]Waiting for new connection... [13:32:01] Sock 7.Parse request [13:32:01]Sock 7.Check first char [13:32:01]Sock 7.First char is OK [13:32:01]request: POST /json_proto HTTP/1.0 [13:32:01]Method: POST [13:32:01]URL: /json_proto [13:32:01]Method is POST - this is cgi request [13:32:01]url: /json_proto [13:32:01]query_string will be loaded in cgi processing [13:32:01]execute_cgi json_proto POST (null) [13:32:01]execute_cgi path=json_proto method=POST [13:32:01]POST find Content-Length [13:32:01]Host: 172.17.55.133:8080 [13:32:01]Content-Length: 683 [13:32:01]Content-Type: application/json [13:32:01] [13:32:01]POST finish read [13:32:01]Found Content-Length = 683 [13:32:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036252", "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" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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:32:01]execute_script... [13: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)1036252", "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" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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:32:01]POST & json_proto [13:32:01]process_json_proto [13:32:01]json parsed OK: [13:32:01]protocol is kg_v1.0 [13:32:01]action value=close_receipt [13:32:01]process_action close_receipt [13:32:01]cmd_close_receipt [13:32:01]MH_GetDate [13:32:01]Write to MH i2c: F0 00 00 35 87 AB [13:32:01]Write i2c OK [13:32:01]MH_I2C_Read... [13:32:01]Read from MH i2c: F0 [13:32:01]MH_I2C_Read... [13:32:01]Read from MH i2c: F0 09 00 [13:32:01]MH_I2C_Read... [13:32:01]Read from MH i2c: F0 09 00 35 87 00 D6 F7 C1 66 34 48 D8 65 61 [13:32:01]GetLastDocTimeStamp 1723987800 [13:32:01]current date 1723987926 [13:32:01]FM_GetShiftState [13:32:01]SAM_PROTO_GetShiftState [13:32:01]wFMCommunicate request_size=4 [13:32:01]MH_SAM_APDU [13:32:01]CAPDU: 80 13 01 00 [13:32:01]Write to MH i2c: E2 08 00 36 87 80 13 01 00 00 00 00 00 3A [13:32:01]Write i2c OK [13:32:01]MH_I2C_Read... [13:32:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:01]Read from MH i2c: E2 [13:32:01]MH_I2C_Read... [13:32:01]Read from MH i2c: E2 0E 00 [13:32:01]MH_I2C_Read... [13:32:01]Read from MH i2c: E2 0E 00 36 87 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 77 [13:32:01]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:32:01]wFMCommunicate OK [13:32:01]SAM_PROTO_GetShiftState done [13:32:01]FM_GetShiftState done [13:32:01]opened in 1723940556 [13:32:01]opened+sec_in_day 1724026956 [13:32:01]quantity*price = 150032 [13:32:01]sum+1 = 150033 [13:32:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 262 18.08.2024 13:32 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260704 ФПД: 13323792217418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T133206&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260704&fm=13323792217418&tin=02508201610067®Number=0000000000091865&sum=150000 [13:32:02]StoreToDocumentArchive [13:32:02]shift 449 fd 260704 [13:32:02]save to /storage/0449/doc_00260704 [13:32:02]save last doc name /storage/0449/doc_00260704 to /storage/kkm_last_doc_name [13:32:02]save OK [13:32:02]Clear old archive folders... [13:32:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:32:02]tlvbuf is 0057B740 [13:32:02]SAM_PROTO_ClearQueue [13:32:02]wFMCommunicate request_size=4 [13:32:02]MH_SAM_APDU [13:32:02]CAPDU: 80 09 00 00 [13:32:02]Write to MH i2c: E2 08 00 43 87 80 09 00 00 00 00 00 00 3C [13:32:02]Write i2c OK [13:32:02]MH_I2C_Read... [13:32:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:02]Read from MH i2c: E2 [13:32:02]MH_I2C_Read... [13:32:02]Read from MH i2c: E2 03 00 [13:32:02]MH_I2C_Read... [13:32:02]Read from MH i2c: E2 03 00 43 87 00 90 00 3E [13:32:02]RAPDU: 90 00 [13:32:02]wFMCommunicate OK [13:32:02]SAM_PROTO_ClearQueue done [13:32:02]KKMCreateOFDPacket [13:32:02]OFDProtocolAddRootSTLVToBuf [13:32:02]FM_MakeSignedData [13:32:02]FM_MakeSignedData [13:32:02]SAM_PROTO_SignData [13:32:02]wFMCommunicate request_size=4 [13:32:02]MH_SAM_APDU [13:32:02]CAPDU: 80 0D 01 02 [13:32:02]Write to MH i2c: E2 08 00 44 87 80 0D 01 02 00 00 00 00 44 [13:32:02]Write i2c OK [13:32:02]MH_I2C_Read... [13:32:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:02]Read from MH i2c: E2 [13:32:02]MH_I2C_Read... [13:32:02]Read from MH i2c: E2 03 00 [13:32:02]MH_I2C_Read... [13:32:02]Read from MH i2c: E2 03 00 44 87 00 90 00 3F [13:32:02]RAPDU: 90 00 [13:32:02]wFMCommunicate OK [13:32:02]wFMCommunicate request_size=255 [13:32:02]MH_SAM_APDU [13:32: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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 06 01 00 00 F4 03 04 00 D6 F7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 60 FA 03 00 35 04 06 00 0C [13:32:02]Write to MH i2c: E2 02 01 45 87 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 06 01 00 00 F4 03 04 00 D6 F7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 60 FA 03 00 35 04 06 00 0C 00 00 5A [13:32:02]Write i2c OK [13:32:02]MH_I2C_Read... [13:32:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:03]Read from MH i2c: E2 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: E2 03 00 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: E2 03 00 45 87 00 90 00 40 [13:32:03]RAPDU: 90 00 [13:32:03]wFMCommunicate OK [13:32:03]wFMCommunicate request_size=10 [13:32:03]MH_SAM_APDU [13:32:03]CAPDU: 80 0D 02 02 05 1E 2F E6 F5 4A [13:32:03]Write to MH i2c: E2 0D 00 46 87 80 0D 02 02 05 00 1E 2F E6 F5 4A 00 00 C3 [13:32:03]Write i2c OK [13:32:03]MH_I2C_Read... [13:32:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:03]Read from MH i2c: E2 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: E2 03 00 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: E2 03 00 46 87 00 90 00 41 [13:32:03]RAPDU: 90 00 [13:32:03]wFMCommunicate OK [13:32:03]wFMCommunicate request_size=4 [13:32:03]MH_SAM_APDU [13:32:03]CAPDU: 80 0D 03 02 [13:32:03]Write to MH i2c: E2 08 00 47 87 80 0D 03 02 00 00 00 00 49 [13:32:03]Write i2c OK [13:32:03]MH_I2C_Read... [13:32:03]OFD Sender: No OFD packet to send [13:32:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:03]Read from MH i2c: E2 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: E2 0B 00 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: E2 0B 00 47 87 00 51 4D 09 84 5F F4 BA E9 90 00 6B [13:32:03]RAPDU: 51 4D 09 84 5F F4 BA E9 90 00 [13:32:03]wFMCommunicate OK [13:32:03]SAM_PROTO_SignData done [13:32:03]FM_MakeSignedData done [13:32:03]CreateOFDProtocolMessage [13:32:03]wFMCommunicate request_size=4 [13:32:03]MH_SAM_APDU [13:32:03]CAPDU: 80 11 00 00 [13:32:03]Write to MH i2c: E2 08 00 48 87 80 11 00 00 00 00 00 00 49 [13:32:03]Write i2c OK [13:32:03]MH_I2C_Read... [13:32:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:03]Read from MH i2c: E2 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: E2 17 00 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: E2 17 00 48 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 96 [13:32:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:32:03]wFMCommunicate OK [13:32:03]CreateOFDProtocolMessage done [13:32:03]OFDSenderStorePacket 260704 [13:32:03]StoreOFDPacket docnum=260704 [13: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 30 0F 01 00 00 D7 2A 07 01 7E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 06 01 00 00 F4 03 04 00 D6 F7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 60 FA 03 00 35 04 06 00 0C 1E 2F E6 F5 4A 51 4D 09 84 5F F4 BA E9 [13:32:03]CheckFolder [13:32:03]dirname=/storage/ofd_packets [13:32:03]CheckFolder done [13:32:03]ProducePacketName [13:32:03]name=ofd_packets/00260704 [13:32:03]NVStorageSaveData ofd_packets/00260704 [13:32:03]File name is /storage/ofd_packets/00260704 [13:32:03]Write 301 bytes [13:32:03]NVStorageSaveData done [13:32:03]OFDSenderStorePacket done [13:32:03]KKMCreateOFDPacket done [13:32:03]NVStorageSaveData kkm_last_timestamp [13:32:03]File name is /storage/kkm_last_timestamp [13:32:03]Write 4 bytes [13:32:03]NVStorageSaveData done [13:32:03]ExternCall_PrintAddStr [13:32:03]wPrintStart [13:32:03]Write to MH i2c: 01 00 00 49 87 D0 [13:32:03]Write i2c OK [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: 01 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: 01 07 00 [13:32:03]MH_I2C_Read... [13:32:03]Read from MH i2c: 01 07 00 49 87 00 00 00 00 00 FF 0F E5 [13:32:03]RasterBufferAndPrint [13:32:03]line Счет N : (1)1036252 [13:32:03]line ИНН: 02508201610067 [13:32:03]line Контрольно-Кассовый Чек [13:32:03]line ПРОДАЖА [13:32:03]line ТРК (МРК, ГНК) : 23 [13:32:03]line Товар: 2710124500 [13:32:03]line Аи-95-К-5 [13:32:03]line 20.220 * 74.20 [13:32:03]line = 1500.32 [13:32:03]line НДС 12% НСП 1% [13:32:03]line > о реализуемом товаре [13:32:03]line ОКРУГЛЕНИЕ: -0.32 [13:32:03]line ИТОГО: 1500.00 [13:32:03]line Внесено: 1500.00 [13:32:03]line СДАЧА: 0.00 [13:32:03]line НСП 1% : 13.28 [13:32:03]line НДС 12% : 159.33 [13:32:03]line Наличными: 1500.00 [13:32:03]line Безнал.: 0.00 [13:32:03]line Место: АЗС № 94 "Партнер Нефть" [13:32:03]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [13:32:03]line СНО: Общий режим [13:32:03]line Чек 262 18.08.2024 13:32 [13:32:03]line Смена: 449 ФФД: 1.0 [13:32:03]line ЗНМ: 0300000099 [13:32:03]line РНМ: 0000000000091865 [13:32:03]line Версия ККМ: 001 [13:32:03]line ФМ: 0000000000871820 [13:32:03]line ФД: 260704 [13:32:03]line ФПД: 13323792217418 [13:32:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T133206&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260704&fm=13323792217418&tin=02508201610067®Number=0000000000091865&sum=150000 [13:32:03]OFD Sender: Processing packet 260704 [packets to send 192, broken 191] [13:32:03]ProducePacketName [13:32:03]name=ofd_packets/00260704 [13:32:03]OFD Sender: To server: pG, [13:32:03]CommunicateWithHost lk.salyk.kg:30040 [13:32:03]ConnectInit lk.salyk.kg [13:32:03]written 0, free lines is 4095 [13:32:03]Connected sock=10 [13: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 30 0F 01 00 00 D7 2A 07 01 7E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 06 01 00 00 F4 03 04 00 D6 F7 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 60 FA 03 00 35 04 06 00 0C 1E 2F E6 F5 4A 51 4D 09 84 5F F4 BA E9 [13: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 30 4F 00 00 00 95 8F 47 00 3B 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 30 10 04 04 00 60 FA 03 00 F4 03 04 00 2B A1 C1 66 B6 04 01 00 00 9E 64 F9 A1 E9 02 D5 AC [13:32:04]CommunicateWithHost err = 0 [13:32:04]CheckOFDResponse [13:32:04]1017 (14) - 77093643461234 [13:32:04]1041 (16) - 0000000000871820 [13:32:04]1040 (4) - 260704 [13:32:04]1012 (4) - 18.08.2024 07:22 [13:32:04]1206 (1) - 0 [13:32:04]OFD Sender: Remove packet 260704 [13:32:04]ProducePacketName [13:32:04]name=ofd_packets/00260704 [13:32:04]NVStorageDeleteData [13:32:04]Write to MH i2c: 01 00 00 74 87 FB [13:32:04]Write i2c OK [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: 01 [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: 01 07 00 [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: 01 07 00 74 87 00 00 00 00 00 64 0C 72 [13:32:04]RasterBufferAndPrint [13:32:04]line [13:32:04]line [13:32:04]line [13:32:04]line [13:32:04]line [13:32:04]written 0, free lines is 3177 [13:32:04]MH_Cut [13:32:04]Write to MH i2c: D1 01 00 7B 87 01 D4 [13:32:04]Write i2c OK [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: D1 [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: D1 01 00 [13:32:04]MH_I2C_Read... [13:32:04]Read from MH i2c: D1 01 00 7B 87 00 D3 [13:32:04]Write to MH i2c: 01 00 00 7C 87 03 [13:32:04]Write i2c OK [13:32:04]MH_I2C_Read... [13:32:04]OFD Sender: No OFD packet to send [13:32:05]*** Cut start [13:32:05]*** Purtial cut [13:32:05]*** Stage 1: CUTSNS_PIN = 1 [13:32:07]Read from MH i2c: 01 [13:32:07]MH_I2C_Read... [13:32:07]*** Stop cut motor [13:32:07]*** Cut end [13:32:07]Read from MH i2c: 01 07 00 [13:32:07]MH_I2C_Read... [13:32:07]Read from MH i2c: 01 07 00 7C 87 00 00 00 00 00 FF 0F 18 [13:32:07]process_action close_receipt done [13:32:07]requested_data is exist [13:32:07]produce_requested_data [13:32:07]requested_item fm.sn is exist - process it [13:32:07]wFMCommunicate request_size=4 [13:32:07]MH_SAM_APDU [13:32:07]CAPDU: 80 11 00 00 [13:32:07]Write to MH i2c: E2 08 00 7D 87 80 11 00 00 00 00 00 00 7E [13:32:07]Write i2c OK [13:32:07]MH_I2C_Read... [13:32:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:07]Read from MH i2c: E2 [13:32:07]MH_I2C_Read... [13:32:07]Read from MH i2c: E2 17 00 [13:32:07]MH_I2C_Read... [13:32:07]Read from MH i2c: E2 17 00 7D 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 CB [13:32:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:32:07]wFMCommunicate OK [13:32:07]requested_item fd.num is exist - process it [13:32:07]SAM_PROTO_GetFieldsCounters [13:32:07]wFMCommunicate request_size=4 [13:32:07]MH_SAM_APDU [13:32:07]CAPDU: 80 13 00 00 [13:32:07]Write to MH i2c: E2 08 00 7E 87 80 13 00 00 00 00 00 00 81 [13:32:07]Write i2c OK [13:32:07]MH_I2C_Read... [13:32:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:07]Read from MH i2c: E2 [13:32:07]MH_I2C_Read... [13:32:07]Read from MH i2c: E2 62 00 [13:32:07]MH_I2C_Read... [13:32:07]Read from MH i2c: E2 62 00 7E 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 60 FA 03 00 0E 04 04 00 C1 01 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 D4 [13:32: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 60 FA 03 00 0E 04 04 00 C1 01 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 [13:32:07]wFMCommunicate OK [13:32:07]SAM_PROTO_GetFieldsCounters done [13:32:07]requested_item shift.num is exist - process it [13:32:07]requested_item shift.opened is exist - process it [13:32:07]req_shift_opened [13:32:07]FM_GetShiftState [13:32:07]SAM_PROTO_GetShiftState [13:32:07]wFMCommunicate request_size=4 [13:32:07]MH_SAM_APDU [13:32:07]CAPDU: 80 13 01 00 [13:32:07]Write to MH i2c: E2 08 00 7F 87 80 13 01 00 00 00 00 00 83 [13:32:07]Write i2c OK [13:32:07]MH_I2C_Read... [13:32:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:07]Read from MH i2c: E2 [13:32:07]MH_I2C_Read... [13:32:07]Read from MH i2c: E2 0E 00 [13:32:07]MH_I2C_Read... [13:32:07]Read from MH i2c: E2 0E 00 7F 87 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C0 [13:32:07]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:32:07]wFMCommunicate OK [13:32:07]SAM_PROTO_GetShiftState done [13:32:07]FM_GetShiftState done [13:32:07]req_shift_opened done [13:32:07]requested_item shift.open_date is exist - process it [13:32:07]req_shift_open_date [13:32:07]req_shift_open_date done [13:32:07]produce_requested_data done [13:32:07]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260704,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [13:32:07]process_action_free close_receipt [13:32:07]json_value_free [13:32:07]json_value_free done [13:32:07]process_json_proto returns [13:32:07]Send response to host [13:32:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260704,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [13:32:07]free response buf [13:32:07]execute_script done [13:32:07]execute_script returns [13:32:07]free content buf [13:32:07]Sock 7.Close socket [13:32:07]Sock 7.Thread stoped [13:32:09]OFD Sender: No OFD packet to send [13:32:14]OFD Sender: No OFD packet to send [13:32:19]OFD Sender: No OFD packet to send [13:32:24]OFD Sender: No OFD packet to send [13:32:29]OFD Sender: No OFD packet to send [13:32:34]OFD Sender: No OFD packet to send [13:32:39]OFD Sender: No OFD packet to send [13:32:44]OFD Sender: No OFD packet to send [13:32:48]accept exits with 9 [13:32:48]New connection [13:32:48]New thread 3066617188 created [13:32:48]Thread 3066473828 joined [13:32:48]Waiting for new connection... [13:32:48] Sock 9.Parse request [13:32:48]Sock 9.Check first char [13:32:48]Sock 9.First char is OK [13:32:48]request: POST /json_proto HTTP/1.0 [13:32:48]Method: POST [13:32:48]URL: /json_proto [13:32:48]Method is POST - this is cgi request [13:32:48]url: /json_proto [13:32:48]query_string will be loaded in cgi processing [13:32:48]execute_cgi json_proto POST (null) [13:32:48]execute_cgi path=json_proto method=POST [13:32:48]POST find Content-Length [13:32:48]Host: 172.17.55.133:8080 [13:32:48]Content-Length: 755 [13:32:48]Content-Type: application/json [13:32:48] [13:32:48]POST finish read [13:32:48]Found Content-Length = 755 [13:32:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.750, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30105789", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:48]execute_script... [13:32: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)1036253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.750, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30105789", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:48]POST & json_proto [13:32:48]process_json_proto [13:32:48]json parsed OK: [13:32:48]protocol is kg_v1.0 [13:32:48]action value=close_receipt [13:32:48]process_action close_receipt [13:32:48]cmd_close_receipt [13:32:48]MH_GetDate [13:32:48]Write to MH i2c: F0 00 00 80 87 F6 [13:32:48]Write i2c OK [13:32:48]MH_I2C_Read... [13:32:48]Read from MH i2c: F0 [13:32:48]MH_I2C_Read... [13:32:48]Read from MH i2c: F0 09 00 [13:32:48]MH_I2C_Read... [13:32:48]Read from MH i2c: F0 09 00 80 87 00 05 F8 C1 66 34 48 D8 65 DC [13:32:48]GetLastDocTimeStamp 1723987926 [13:32:48]current date 1723987973 [13:32:48]FM_GetShiftState [13:32:48]SAM_PROTO_GetShiftState [13:32:48]wFMCommunicate request_size=4 [13:32:48]MH_SAM_APDU [13:32:48]CAPDU: 80 13 01 00 [13:32:48]Write to MH i2c: E2 08 00 81 87 80 13 01 00 00 00 00 00 85 [13:32:48]Write i2c OK [13:32:48]MH_I2C_Read... [13:32:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:48]Read from MH i2c: E2 [13:32:48]MH_I2C_Read... [13:32:48]Read from MH i2c: E2 0E 00 [13:32:48]MH_I2C_Read... [13:32:48]Read from MH i2c: E2 0E 00 81 87 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C2 [13:32:48]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:32:48]wFMCommunicate OK [13:32:48]SAM_PROTO_GetShiftState done [13:32:48]FM_GetShiftState done [13:32:48]opened in 1723940556 [13:32:48]opened+sec_in_day 1724026956 [13:32:48]quantity*price = 0 [13:32:48]sum+1 = 1 [13:32:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 263 18.08.2024 13:32 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: ТК ГПНА Online 30105789 ФМ: 0000000000871820 ФД: 260705 ФПД: 49550449248967 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T133253&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260705&fm=49550449248967&tin=02508201610067®Number=0000000000091865&sum=0 [13:32:49]StoreToDocumentArchive [13:32:49]shift 449 fd 260705 [13:32:49]save to /storage/0449/doc_00260705 [13:32:49]save last doc name /storage/0449/doc_00260705 to /storage/kkm_last_doc_name [13:32:49]save OK [13:32:49]Clear old archive folders... [13:32:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:32:49]tlvbuf is 00387800 [13:32:49]SAM_PROTO_ClearQueue [13:32:49]wFMCommunicate request_size=4 [13:32:49]MH_SAM_APDU [13:32:49]CAPDU: 80 09 00 00 [13:32:49]Write to MH i2c: E2 08 00 8E 87 80 09 00 00 00 00 00 00 87 [13:32:49]Write i2c OK [13:32:49]MH_I2C_Read... [13:32:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:49]Read from MH i2c: E2 [13:32:49]MH_I2C_Read... [13:32:49]Read from MH i2c: E2 03 00 [13:32:49]MH_I2C_Read... [13:32:49]Read from MH i2c: E2 03 00 8E 87 00 90 00 89 [13:32:49]RAPDU: 90 00 [13:32:49]wFMCommunicate OK [13:32:49]SAM_PROTO_ClearQueue done [13:32:49]KKMCreateOFDPacket [13:32:49]OFDProtocolAddRootSTLVToBuf [13:32:49]FM_MakeSignedData [13:32:49]FM_MakeSignedData [13:32:49]SAM_PROTO_SignData [13:32:49]wFMCommunicate request_size=4 [13:32:49]MH_SAM_APDU [13:32:49]CAPDU: 80 0D 01 02 [13:32:49]Write to MH i2c: E2 08 00 8F 87 80 0D 01 02 00 00 00 00 8F [13:32:49]Write i2c OK [13:32:49]MH_I2C_Read... [13:32:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:49]Read from MH i2c: E2 [13:32:49]MH_I2C_Read... [13:32:49]Read from MH i2c: E2 03 00 [13:32:49]MH_I2C_Read... [13:32:49]Read from MH i2c: E2 03 00 8F 87 00 90 00 8A [13:32:49]RAPDU: 90 00 [13:32:49]wFMCommunicate OK [13:32:49]wFMCommunicate request_size=255 [13:32:49]MH_SAM_APDU [13:32:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 05 F8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 61 FA 03 00 35 04 06 00 2D [13:32:49]Write to MH i2c: E2 02 01 90 87 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 05 F8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 61 FA 03 00 35 04 06 00 2D 00 00 E7 [13:32:49]Write i2c OK [13:32:49]MH_I2C_Read... [13:32:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:50]Read from MH i2c: E2 [13:32:50]MH_I2C_Read... [13:32:50]Read from MH i2c: E2 03 00 [13:32:50]MH_I2C_Read... [13:32:50]Read from MH i2c: E2 03 00 90 87 00 90 00 8B [13:32:50]RAPDU: 90 00 [13:32:50]wFMCommunicate OK [13:32:50]wFMCommunicate request_size=10 [13:32:50]MH_SAM_APDU [13:32:50]CAPDU: 80 0D 02 02 05 10 DC ED 0A C7 [13:32:50]Write to MH i2c: E2 0D 00 91 87 80 0D 02 02 05 00 10 DC ED 0A C7 00 00 46 [13:32:50]Write i2c OK [13:32:50]MH_I2C_Read... [13:32:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:50]Read from MH i2c: E2 [13:32:50]MH_I2C_Read... [13:32:50]Read from MH i2c: E2 03 00 [13:32:50]MH_I2C_Read... [13:32:50]Read from MH i2c: E2 03 00 91 87 00 90 00 8C [13:32:50]RAPDU: 90 00 [13:32:50]wFMCommunicate OK [13:32:50]wFMCommunicate request_size=4 [13:32:50]MH_SAM_APDU [13:32:50]CAPDU: 80 0D 03 02 [13:32:50]Write to MH i2c: E2 08 00 92 87 80 0D 03 02 00 00 00 00 94 [13:32:50]Write i2c OK [13:32:50]MH_I2C_Read... [13:32:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:50]Read from MH i2c: E2 [13:32:50]MH_I2C_Read... [13:32:50]Read from MH i2c: E2 0B 00 [13:32:50]MH_I2C_Read... [13:32:50]Read from MH i2c: E2 0B 00 92 87 00 97 66 51 60 CB BC 61 5E 90 00 89 [13:32:50]RAPDU: 97 66 51 60 CB BC 61 5E 90 00 [13:32:50]wFMCommunicate OK [13:32:50]SAM_PROTO_SignData done [13:32:50]FM_MakeSignedData done [13:32:50]CreateOFDProtocolMessage [13:32:50]wFMCommunicate request_size=4 [13:32:50]MH_SAM_APDU [13:32:50]CAPDU: 80 11 00 00 [13:32:50]Write to MH i2c: E2 08 00 93 87 80 11 00 00 00 00 00 00 94 [13:32:50]Write i2c OK [13:32:50]MH_I2C_Read... [13:32:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:50]Read from MH i2c: E2 [13:32:50]MH_I2C_Read... [13:32:50]Read from MH i2c: E2 17 00 [13:32:50]MH_I2C_Read... [13:32:50]Read from MH i2c: E2 17 00 93 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E1 [13:32:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:32:50]wFMCommunicate OK [13:32:50]CreateOFDProtocolMessage done [13:32:50]OFDSenderStorePacket 260705 [13:32:50]StoreOFDPacket docnum=260705 [13:32:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 2B 92 07 01 C6 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 05 F8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 61 FA 03 00 35 04 06 00 2D 10 DC ED 0A C7 97 66 51 60 CB BC 61 5E [13:32:50]CheckFolder [13:32:50]dirname=/storage/ofd_packets [13:32:50]CheckFolder done [13:32:50]ProducePacketName [13:32:50]name=ofd_packets/00260705 [13:32:50]NVStorageSaveData ofd_packets/00260705 [13:32:50]File name is /storage/ofd_packets/00260705 [13:32:50]Write 301 bytes [13:32:50]NVStorageSaveData done [13:32:50]OFDSenderStorePacket done [13:32:50]KKMCreateOFDPacket done [13:32:50]NVStorageSaveData kkm_last_timestamp [13:32:50]File name is /storage/kkm_last_timestamp [13:32:50]Write 4 bytes [13:32:50]NVStorageSaveData done [13:32:50]ExternCall_PrintAddStr [13:32:50]wPrintStart [13:32:50]Write to MH i2c: 01 00 00 94 87 1B [13:32:50]Write i2c OK [13:32:50]MH_I2C_Read... [13:32:50]Read from MH i2c: 01 [13:32:50]MH_I2C_Read... [13:32:50]Read from MH i2c: 01 07 00 [13:32:50]MH_I2C_Read... [13:32:50]Read from MH i2c: 01 07 00 94 87 00 00 00 00 00 FF 0F 30 [13:32:50]RasterBufferAndPrint [13:32:50]line Счет N : (1)1036253 [13:32:50]line ИНН: 02508201610067 [13:32:50]line Контрольно-Кассовый Чек [13:32:50]line ПРОДАЖА [13:32:50]line ТРК (МРК, ГНК) : 42 [13:32:50]line Товар: 2710124130 [13:32:50]line Аи-92-К-5 [13:32:50]line 14.750 * 0.00 [13:32:50]line = 0.00 [13:32:50]line НДС 12% НСП 1% [13:32:50]line > о реализуемом товаре [13:32:50]line ИТОГО: 0.00 [13:32:50]line НСП 1% : 0.00 [13:32:50]line НДС 12% : 0.00 [13:32:50]line Наличными: 0.00 [13:32:50]line Безнал.: 0.00 [13:32:50]line Место: АЗС № 94 "Партнер Нефть" [13:32:50]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [13:32:50]line СНО: Общий режим [13:32:50]line Чек 263 18.08.2024 13:32 [13:32:50]line Смена: 449 ФФД: 1.0 [13:32:50]line ЗНМ: 0300000099 [13:32:50]line РНМ: 0000000000091865 [13:32:50]line Версия ККМ: 001 [13:32:50]line Талоны: ТК ГПНА Online [13:32:50]line 30105789 [13:32:50]line ФМ: 0000000000871820 [13:32:50]line ФД: 260705 [13:32:50]line ФПД: 49550449248967 [13:32:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T133253&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260705&fm=49550449248967&tin=02508201610067®Number=0000000000091865&sum=0 [13:32:50]written 0, free lines is 4095 [13:32:50]OFD Sender: Processing packet 260705 [packets to send 192, broken 191] [13:32:50]ProducePacketName [13:32:50]name=ofd_packets/00260705 [13:32:50]OFD Sender: To server: pG, [13:32:50]CommunicateWithHost lk.salyk.kg:30040 [13:32:50]ConnectInit lk.salyk.kg [13:32:50]Connected sock=10 [13:32: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 30 0F 01 00 00 2B 92 07 01 C6 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 05 F8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 61 FA 03 00 35 04 06 00 2D 10 DC ED 0A C7 97 66 51 60 CB BC 61 5E [13:32: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 30 4F 00 00 00 60 02 47 00 9A 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 30 10 04 04 00 61 FA 03 00 F4 03 04 00 5A A1 C1 66 B6 04 01 00 00 BB 71 82 79 43 1F C3 BC [13:32:50]CommunicateWithHost err = 0 [13:32:50]CheckOFDResponse [13:32:50]1017 (14) - 77093643461234 [13:32:50]1041 (16) - 0000000000871820 [13:32:50]1040 (4) - 260705 [13:32:50]1012 (4) - 18.08.2024 07:23 [13:32:50]1206 (1) - 0 [13:32:50]OFD Sender: Remove packet 260705 [13:32:50]ProducePacketName [13:32:50]name=ofd_packets/00260705 [13:32:50]NVStorageDeleteData [13:32:50]Write to MH i2c: 01 00 00 BE 87 45 [13:32:50]Write i2c OK [13:32:50]MH_I2C_Read... [13:32:50]Read from MH i2c: 01 [13:32:50]MH_I2C_Read... [13:32:50]Read from MH i2c: 01 07 00 [13:32:50]MH_I2C_Read... [13:32:50]Read from MH i2c: 01 07 00 BE 87 00 00 00 00 00 8B 0C E3 [13:32:50]RasterBufferAndPrint [13:32:50]line [13:32:50]line [13:32:50]line [13:32:50]line [13:32:50]line [13:32:50]written 0, free lines is 3215 [13:32:50]MH_Cut [13:32:50]Write to MH i2c: D1 01 00 C5 87 01 1E [13:32:50]Write i2c OK [13:32:50]MH_I2C_Read... [13:32:50]Read from MH i2c: D1 [13:32:50]MH_I2C_Read... [13:32:50]Read from MH i2c: D1 01 00 [13:32:50]MH_I2C_Read... [13:32:50]Read from MH i2c: D1 01 00 C5 87 00 1D [13:32:50]Write to MH i2c: 01 00 00 C6 87 4D [13:32:50]Write i2c OK [13:32:50]MH_I2C_Read... [13:32:51]OFD Sender: No OFD packet to send [13:32:52]*** Cut start [13:32:52]*** Purtial cut [13:32:52]*** Stage 1: CUTSNS_PIN = 1 [13:32:54]Read from MH i2c: 01 [13:32:54]MH_I2C_Read... [13:32:54]*** Stop cut motor [13:32:54]*** Cut end [13:32:54]Read from MH i2c: 01 07 00 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: 01 07 00 C6 87 00 00 00 00 00 FF 0F 62 [13:32:54]process_action close_receipt done [13:32:54]requested_data is exist [13:32:54]produce_requested_data [13:32:54]requested_item fm.sn is exist - process it [13:32:54]wFMCommunicate request_size=4 [13:32:54]MH_SAM_APDU [13:32:54]CAPDU: 80 11 00 00 [13:32:54]Write to MH i2c: E2 08 00 C7 87 80 11 00 00 00 00 00 00 C8 [13:32:54]Write i2c OK [13:32:54]MH_I2C_Read... [13:32:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:54]Read from MH i2c: E2 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 17 00 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 17 00 C7 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 15 [13:32:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:32:54]wFMCommunicate OK [13:32:54]requested_item fd.num is exist - process it [13:32:54]SAM_PROTO_GetFieldsCounters [13:32:54]wFMCommunicate request_size=4 [13:32:54]MH_SAM_APDU [13:32:54]CAPDU: 80 13 00 00 [13:32:54]Write to MH i2c: E2 08 00 C8 87 80 13 00 00 00 00 00 00 CB [13:32:54]Write i2c OK [13:32:54]MH_I2C_Read... [13:32:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:54]Read from MH i2c: E2 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 62 00 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 62 00 C8 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 61 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 22 [13:32: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 61 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:32:54]wFMCommunicate OK [13:32:54]SAM_PROTO_GetFieldsCounters done [13:32:54]requested_item shift.num is exist - process it [13:32:54]requested_item shift.opened is exist - process it [13:32:54]req_shift_opened [13:32:54]FM_GetShiftState [13:32:54]SAM_PROTO_GetShiftState [13:32:54]wFMCommunicate request_size=4 [13:32:54]MH_SAM_APDU [13:32:54]CAPDU: 80 13 01 00 [13:32:54]Write to MH i2c: E2 08 00 C9 87 80 13 01 00 00 00 00 00 CD [13:32:54]Write i2c OK [13:32:54]MH_I2C_Read... [13:32:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:54]Read from MH i2c: E2 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 0E 00 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 0E 00 C9 87 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 0A [13:32:54]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:32:54]wFMCommunicate OK [13:32:54]SAM_PROTO_GetShiftState done [13:32:54]FM_GetShiftState done [13:32:54]req_shift_opened done [13:32:54]requested_item shift.open_date is exist - process it [13:32:54]req_shift_open_date [13:32:54]req_shift_open_date done [13:32:54]produce_requested_data done [13:32:54]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260705,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [13:32:54]process_action_free close_receipt [13:32:54]json_value_free [13:32:54]json_value_free done [13:32:54]process_json_proto returns [13:32:54]Send response to host [13:32:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260705,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [13:32:54]free response buf [13:32:54]execute_script done [13:32:54]execute_script returns [13:32:54]free content buf [13:32:54]Sock 9.Close socket [13:32:54]Sock 9.Thread stoped [13:32:56]OFD Sender: No OFD packet to send [13:33:01]OFD Sender: No OFD packet to send [13:33:06]OFD Sender: No OFD packet to send [13:33:11]OFD Sender: No OFD packet to send [13:33:16]OFD Sender: No OFD packet to send [13:33:21]OFD Sender: No OFD packet to send [13:33:26]OFD Sender: No OFD packet to send [13:33:31]OFD Sender: No OFD packet to send [13:33:36]OFD Sender: No OFD packet to send [13:33:41]OFD Sender: No OFD packet to send [13:33:46]OFD Sender: No OFD packet to send [13:33:51]OFD Sender: No OFD packet to send [13:33:56]OFD Sender: No OFD packet to send [13:34:01]OFD Sender: No OFD packet to send [13:34:06]OFD Sender: No OFD packet to send [13:34:11]OFD Sender: No OFD packet to send [13:34:16]OFD Sender: No OFD packet to send [13:34:21]OFD Sender: No OFD packet to send [13:34:26]OFD Sender: No OFD packet to send [13:34:31]OFD Sender: No OFD packet to send [13:34:36]OFD Sender: No OFD packet to send [13:34:41]OFD Sender: No OFD packet to send [13:34:46]OFD Sender: No OFD packet to send [13:34:51]OFD Sender: No OFD packet to send [13:34:56]OFD Sender: No OFD packet to send [13:35:01]OFD Sender: No OFD packet to send [13:35:06]OFD Sender: No OFD packet to send [13:35:11]OFD Sender: No OFD packet to send [13:35:16]OFD Sender: No OFD packet to send [13:35:21]OFD Sender: No OFD packet to send [13:35:26]OFD Sender: No OFD packet to send [13:35:31]OFD Sender: No OFD packet to send [13:35:36]OFD Sender: No OFD packet to send [13:35:41]OFD Sender: No OFD packet to send [13:35:41]accept exits with 7 [13:35:41]New connection [13:35:41]New thread 3066473828 created [13:35:41]Thread 3066617188 joined [13:35:41]Waiting for new connection... [13:35:41] Sock 7.Parse request [13:35:41]Sock 7.Check first char [13:35:41]Sock 7.First char is OK [13:35:41]request: POST /json_proto HTTP/1.0 [13:35:41]Method: POST [13:35:41]URL: /json_proto [13:35:41]Method is POST - this is cgi request [13:35:41]url: /json_proto [13:35:41]query_string will be loaded in cgi processing [13:35:41]execute_cgi json_proto POST (null) [13:35:41]execute_cgi path=json_proto method=POST [13:35:41]POST find Content-Length [13:35:41]Host: 172.17.55.133:8080 [13:35:41]Content-Length: 683 [13:35:41]Content-Type: application/json [13:35:41] [13:35:41]POST finish read [13:35:41]Found Content-Length = 683 [13:35:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036254", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:41]execute_script... [13:35:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036254", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:41]POST & json_proto [13:35:41]process_json_proto [13:35:41]json parsed OK: [13:35:41]protocol is kg_v1.0 [13:35:41]action value=close_receipt [13:35:41]process_action close_receipt [13:35:41]cmd_close_receipt [13:35:41]MH_GetDate [13:35:41]Write to MH i2c: F0 00 00 CA 87 40 [13:35:41]Write i2c OK [13:35:41]MH_I2C_Read... [13:35:41]Read from MH i2c: F0 [13:35:41]MH_I2C_Read... [13:35:41]Read from MH i2c: F0 09 00 [13:35:41]MH_I2C_Read... [13:35:41]Read from MH i2c: F0 09 00 CA 87 00 B2 F8 C1 66 34 48 D8 65 D3 [13:35:41]GetLastDocTimeStamp 1723987973 [13:35:41]current date 1723988146 [13:35:41]FM_GetShiftState [13:35:41]SAM_PROTO_GetShiftState [13:35:41]wFMCommunicate request_size=4 [13:35:41]MH_SAM_APDU [13:35:41]CAPDU: 80 13 01 00 [13:35:41]Write to MH i2c: E2 08 00 CB 87 80 13 01 00 00 00 00 00 CF [13:35:41]Write i2c OK [13:35:41]MH_I2C_Read... [13:35:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:41]Read from MH i2c: E2 [13:35:41]MH_I2C_Read... [13:35:41]Read from MH i2c: E2 0E 00 [13:35:41]MH_I2C_Read... [13:35:41]Read from MH i2c: E2 0E 00 CB 87 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 0C [13:35:41]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:35:41]wFMCommunicate OK [13:35:41]SAM_PROTO_GetShiftState done [13:35:41]FM_GetShiftState done [13:35:41]opened in 1723940556 [13:35:41]opened+sec_in_day 1724026956 [13:35:41]quantity*price = 100021 [13:35:41]sum+1 = 100023 [13:35:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 264 18.08.2024 13:35 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260706 ФПД: 255040795585401 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T133546&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260706&fm=255040795585401&tin=02508201610067®Number=0000000000091865&sum=100000 [13:35:42]StoreToDocumentArchive [13:35:42]shift 449 fd 260706 [13:35:42]save to /storage/0449/doc_00260706 [13:35:42]save last doc name /storage/0449/doc_00260706 to /storage/kkm_last_doc_name [13:35:42]save OK [13:35:42]Clear old archive folders... [13:35:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:35:42]tlvbuf is 004FE590 [13:35:42]SAM_PROTO_ClearQueue [13:35:42]wFMCommunicate request_size=4 [13:35:42]MH_SAM_APDU [13:35:42]CAPDU: 80 09 00 00 [13:35:42]Write to MH i2c: E2 08 00 D8 87 80 09 00 00 00 00 00 00 D1 [13:35:42]Write i2c OK [13:35:42]MH_I2C_Read... [13:35:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:35:42]Read from MH i2c: E2 [13:35:42]MH_I2C_Read... [13:35:42]Read from MH i2c: E2 03 00 [13:35:42]MH_I2C_Read... [13:35:42]Read from MH i2c: E2 03 00 D8 87 00 90 00 D3 [13:35:42]RAPDU: 90 00 [13:35:42]wFMCommunicate OK [13:35:42]SAM_PROTO_ClearQueue done [13:35:42]KKMCreateOFDPacket [13:35:42]OFDProtocolAddRootSTLVToBuf [13:35:42]FM_MakeSignedData [13:35:42]FM_MakeSignedData [13:35:42]SAM_PROTO_SignData [13:35:42]wFMCommunicate request_size=4 [13:35:42]MH_SAM_APDU [13:35:42]CAPDU: 80 0D 01 02 [13:35:42]Write to MH i2c: E2 08 00 D9 87 80 0D 01 02 00 00 00 00 D9 [13:35:42]Write i2c OK [13:35:42]MH_I2C_Read... [13:35:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:35:42]Read from MH i2c: E2 [13:35:42]MH_I2C_Read... [13:35:42]Read from MH i2c: E2 03 00 [13:35:42]MH_I2C_Read... [13:35:43]Read from MH i2c: E2 03 00 D9 87 00 90 00 D4 [13:35:43]RAPDU: 90 00 [13:35:43]wFMCommunicate OK [13:35:43]wFMCommunicate request_size=255 [13:35:43]MH_SAM_APDU [13:35:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 B2 F8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 62 FA 03 00 35 04 06 00 E7 [13:35:43]Write to MH i2c: E2 02 01 DA 87 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 B2 F8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 62 FA 03 00 35 04 06 00 E7 00 00 65 [13:35:43]Write i2c OK [13:35:43]MH_I2C_Read... [13:35:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:43]Read from MH i2c: E2 [13:35:43]MH_I2C_Read... [13:35:43]Read from MH i2c: E2 03 00 [13:35:43]MH_I2C_Read... [13:35:43]Read from MH i2c: E2 03 00 DA 87 00 90 00 D5 [13:35:43]RAPDU: 90 00 [13:35:43]wFMCommunicate OK [13:35:43]wFMCommunicate request_size=10 [13:35:43]MH_SAM_APDU [13:35:43]CAPDU: 80 0D 02 02 05 F5 50 06 2B 79 [13:35:43]Write to MH i2c: E2 0D 00 DB 87 80 0D 02 02 05 00 F5 50 06 2B 79 00 00 D5 [13:35:43]Write i2c OK [13:35:43]MH_I2C_Read... [13:35:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:43]Read from MH i2c: E2 [13:35:43]MH_I2C_Read... [13:35:43]Read from MH i2c: E2 03 00 [13:35:43]MH_I2C_Read... [13:35:43]Read from MH i2c: E2 03 00 DB 87 00 90 00 D6 [13:35:43]RAPDU: 90 00 [13:35:43]wFMCommunicate OK [13:35:43]wFMCommunicate request_size=4 [13:35:43]MH_SAM_APDU [13:35:43]CAPDU: 80 0D 03 02 [13:35:43]Write to MH i2c: E2 08 00 DC 87 80 0D 03 02 00 00 00 00 DE [13:35:43]Write i2c OK [13:35:43]MH_I2C_Read... [13:35:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:35:43]Read from MH i2c: E2 [13:35:43]MH_I2C_Read... [13:35:43]Read from MH i2c: E2 0B 00 [13:35:43]MH_I2C_Read... [13:35:43]Read from MH i2c: E2 0B 00 DC 87 00 10 4D 52 7D 61 53 6C 79 90 00 A4 [13:35:43]RAPDU: 10 4D 52 7D 61 53 6C 79 90 00 [13:35:43]wFMCommunicate OK [13:35:43]SAM_PROTO_SignData done [13:35:43]FM_MakeSignedData done [13:35:43]CreateOFDProtocolMessage [13:35:43]wFMCommunicate request_size=4 [13:35:43]MH_SAM_APDU [13:35:43]CAPDU: 80 11 00 00 [13:35:43]Write to MH i2c: E2 08 00 DD 87 80 11 00 00 00 00 00 00 DE [13:35:43]Write i2c OK [13:35:43]MH_I2C_Read... [13:35:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:43]Read from MH i2c: E2 [13:35:43]MH_I2C_Read... [13:35:43]Read from MH i2c: E2 17 00 [13:35:43]MH_I2C_Read... [13:35:43]Read from MH i2c: E2 17 00 DD 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 2B [13:35:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:35:43]wFMCommunicate OK [13:35:43]CreateOFDProtocolMessage done [13:35:43]OFDSenderStorePacket 260706 [13:35:43]StoreOFDPacket docnum=260706 [13:35:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 1C 21 07 01 78 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 B2 F8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 62 FA 03 00 35 04 06 00 E7 F5 50 06 2B 79 10 4D 52 7D 61 53 6C 79 [13:35:43]CheckFolder [13:35:43]dirname=/storage/ofd_packets [13:35:43]CheckFolder done [13:35:43]ProducePacketName [13:35:43]name=ofd_packets/00260706 [13:35:43]NVStorageSaveData ofd_packets/00260706 [13:35:43]File name is /storage/ofd_packets/00260706 [13:35:43]Write 301 bytes [13:35:43]NVStorageSaveData done [13:35:43]OFDSenderStorePacket done [13:35:43]KKMCreateOFDPacket done [13:35:43]NVStorageSaveData kkm_last_timestamp [13:35:43]File name is /storage/kkm_last_timestamp [13:35:43]Write 4 bytes [13:35:43]NVStorageSaveData done [13:35:43]ExternCall_PrintAddStr [13:35:43]wPrintStart [13:35:43]Write to MH i2c: 01 00 00 DE 87 65 [13:35:43]Write i2c OK [13:35:43]MH_I2C_Read... [13:35:43]Read from MH i2c: 01 [13:35:43]MH_I2C_Read... [13:35:43]Read from MH i2c: 01 07 00 [13:35:43]MH_I2C_Read... [13:35:43]Read from MH i2c: 01 07 00 DE 87 00 00 00 00 00 FF 0F 7A [13:35:43]RasterBufferAndPrint [13:35:43]line Счет N : (1)1036254 [13:35:43]line ИНН: 02508201610067 [13:35:43]line Контрольно-Кассовый Чек [13:35:43]line ПРОДАЖА [13:35:43]line ТРК (МРК, ГНК) : 13 [13:35:43]line Товар: 2710124500 [13:35:43]line Аи-95-К-5 [13:35:43]line 13.480 * 74.20 [13:35:43]line = 1000.22 [13:35:43]line НДС 12% НСП 1% [13:35:43]line > о реализуемом товаре [13:35:43]line ОКРУГЛЕНИЕ: -0.22 [13:35:43]line ИТОГО: 1000.00 [13:35:43]line Внесено: 1000.00 [13:35:43]line СДАЧА: 0.00 [13:35:43]line НСП 1% : 8.85 [13:35:43]line НДС 12% : 106.22 [13:35:43]line Наличными: 1000.00 [13:35:43]line Безнал.: 0.00 [13:35:43]line Место: АЗС № 94 "Партнер Нефть" [13:35:43]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [13:35:43]line СНО: Общий режим [13:35:43]line Чек 264 18.08.2024 13:35 [13:35:43]line Смена: 449 ФФД: 1.0 [13:35:43]line ЗНМ: 0300000099 [13:35:43]line РНМ: 0000000000091865 [13:35:43]line Версия ККМ: 001 [13:35:43]line ФМ: 0000000000871820 [13:35:43]line ФД: 260706 [13:35:43]line ФПД: 255040795585401 [13:35:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T133546&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260706&fm=255040795585401&tin=02508201610067®Number=0000000000091865&sum=100000 [13:35:43]OFD Sender: Processing packet 260706 [packets to send 192, broken 191] [13:35:43]ProducePacketName [13:35:43]name=ofd_packets/00260706 [13:35:43]OFD Sender: To server: pG, [13:35:43]CommunicateWithHost lk.salyk.kg:30040 [13:35:43]ConnectInit lk.salyk.kg [13:35:43]written 0, free lines is 4095 [13:35:43]Connected sock=10 [13:35:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 1C 21 07 01 78 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 B2 F8 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 62 FA 03 00 35 04 06 00 E7 F5 50 06 2B 79 10 4D 52 7D 61 53 6C 79 [13:35: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 30 4F 00 00 00 35 34 47 00 11 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 62 FA 03 00 F4 03 04 00 07 A2 C1 66 B6 04 01 00 00 56 BB AD C2 9F F1 15 B5 [13:35:44]CommunicateWithHost err = 0 [13:35:44]CheckOFDResponse [13:35:44]1017 (14) - 77093643461234 [13:35:44]1041 (16) - 0000000000871820 [13:35:44]1040 (4) - 260706 [13:35:44]1012 (4) - 18.08.2024 07:25 [13:35:44]1206 (1) - 0 [13:35:44]OFD Sender: Remove packet 260706 [13:35:44]ProducePacketName [13:35:44]name=ofd_packets/00260706 [13:35:44]NVStorageDeleteData [13:35:44]Write to MH i2c: 01 00 00 09 88 91 [13:35:44]Write i2c OK [13:35:44]MH_I2C_Read... [13:35:44]Read from MH i2c: 01 [13:35:44]MH_I2C_Read... [13:35:44]Read from MH i2c: 01 07 00 [13:35:44]MH_I2C_Read... [13:35:44]Read from MH i2c: 01 07 00 09 88 00 00 00 00 00 70 0C 14 [13:35:44]RasterBufferAndPrint [13:35:44]line [13:35:44]line [13:35:44]line [13:35:44]line [13:35:44]line [13:35:44]written 0, free lines is 3187 [13:35:44]MH_Cut [13:35:44]Write to MH i2c: D1 01 00 10 88 01 6A [13:35:44]Write i2c OK [13:35:44]MH_I2C_Read... [13:35:44]Read from MH i2c: D1 [13:35:44]MH_I2C_Read... [13:35:44]Read from MH i2c: D1 01 00 [13:35:44]MH_I2C_Read... [13:35:44]Read from MH i2c: D1 01 00 10 88 00 69 [13:35:44]Write to MH i2c: 01 00 00 11 88 99 [13:35:44]Write i2c OK [13:35:44]MH_I2C_Read... [13:35:44]OFD Sender: No OFD packet to send [13:35:45]*** Cut start [13:35:45]*** Purtial cut [13:35:45]*** Stage 1: CUTSNS_PIN = 1 [13:35:47]Read from MH i2c: 01 [13:35:47]MH_I2C_Read... [13:35:47]*** Stop cut motor [13:35:47]*** Cut end [13:35:47]Read from MH i2c: 01 07 00 [13:35:47]MH_I2C_Read... [13:35:47]Read from MH i2c: 01 07 00 11 88 00 00 00 00 00 FF 0F AE [13:35:47]process_action close_receipt done [13:35:47]requested_data is exist [13:35:47]produce_requested_data [13:35:47]requested_item fm.sn is exist - process it [13:35:47]wFMCommunicate request_size=4 [13:35:47]MH_SAM_APDU [13:35:47]CAPDU: 80 11 00 00 [13:35:47]Write to MH i2c: E2 08 00 12 88 80 11 00 00 00 00 00 00 14 [13:35:47]Write i2c OK [13:35:47]MH_I2C_Read... [13:35:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:47]Read from MH i2c: E2 [13:35:47]MH_I2C_Read... [13:35:47]Read from MH i2c: E2 17 00 [13:35:47]MH_I2C_Read... [13:35:47]Read from MH i2c: E2 17 00 12 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 61 [13:35:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:35:47]wFMCommunicate OK [13:35:47]requested_item fd.num is exist - process it [13:35:47]SAM_PROTO_GetFieldsCounters [13:35:47]wFMCommunicate request_size=4 [13:35:47]MH_SAM_APDU [13:35:47]CAPDU: 80 13 00 00 [13:35:47]Write to MH i2c: E2 08 00 13 88 80 13 00 00 00 00 00 00 17 [13:35:47]Write i2c OK [13:35:47]MH_I2C_Read... [13:35:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:35:47]Read from MH i2c: E2 [13:35:47]MH_I2C_Read... [13:35:47]Read from MH i2c: E2 62 00 [13:35:47]MH_I2C_Read... [13:35:47]Read from MH i2c: E2 62 00 13 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 62 FA 03 00 0E 04 04 00 C1 01 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 72 [13:35: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 62 FA 03 00 0E 04 04 00 C1 01 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 [13:35:47]wFMCommunicate OK [13:35:47]SAM_PROTO_GetFieldsCounters done [13:35:47]requested_item shift.num is exist - process it [13:35:47]requested_item shift.opened is exist - process it [13:35:47]req_shift_opened [13:35:47]FM_GetShiftState [13:35:47]SAM_PROTO_GetShiftState [13:35:47]wFMCommunicate request_size=4 [13:35:47]MH_SAM_APDU [13:35:47]CAPDU: 80 13 01 00 [13:35:47]Write to MH i2c: E2 08 00 14 88 80 13 01 00 00 00 00 00 19 [13:35:47]Write i2c OK [13:35:47]MH_I2C_Read... [13:35:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:47]Read from MH i2c: E2 [13:35:47]MH_I2C_Read... [13:35:47]Read from MH i2c: E2 0E 00 [13:35:47]MH_I2C_Read... [13:35:47]Read from MH i2c: E2 0E 00 14 88 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 56 [13:35:47]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:35:47]wFMCommunicate OK [13:35:47]SAM_PROTO_GetShiftState done [13:35:47]FM_GetShiftState done [13:35:47]req_shift_opened done [13:35:47]requested_item shift.open_date is exist - process it [13:35:47]req_shift_open_date [13:35:47]req_shift_open_date done [13:35:47]produce_requested_data done [13:35:47]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260706,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [13:35:47]process_action_free close_receipt [13:35:47]json_value_free [13:35:47]json_value_free done [13:35:47]process_json_proto returns [13:35:47]Send response to host [13:35:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260706,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [13:35:47]free response buf [13:35:47]execute_script done [13:35:47]execute_script returns [13:35:47]free content buf [13:35:47]Sock 7.Close socket [13:35:47]Sock 7.Thread stoped [13:35:49]OFD Sender: No OFD packet to send [13:35:54]OFD Sender: No OFD packet to send [13:35:59]OFD Sender: No OFD packet to send [13:36:04]OFD Sender: No OFD packet to send [13:36:09]OFD Sender: No OFD packet to send [13:36:14]OFD Sender: No OFD packet to send [13:36:19]OFD Sender: No OFD packet to send [13:36:24]OFD Sender: No OFD packet to send [13:36:29]OFD Sender: No OFD packet to send [13:36:34]OFD Sender: No OFD packet to send [13:36:39]OFD Sender: No OFD packet to send [13:36:44]OFD Sender: No OFD packet to send [13:36:49]OFD Sender: No OFD packet to send [13:36:54]OFD Sender: No OFD packet to send [13:36:59]OFD Sender: No OFD packet to send [13:37:04]OFD Sender: No OFD packet to send [13:37:09]OFD Sender: No OFD packet to send [13:37:14]OFD Sender: No OFD packet to send [13:37:19]OFD Sender: No OFD packet to send [13:37:24]OFD Sender: No OFD packet to send [13:37:29]OFD Sender: No OFD packet to send [13:37:34]OFD Sender: No OFD packet to send [13:37:39]OFD Sender: No OFD packet to send [13:37:44]OFD Sender: No OFD packet to send [13:37:49]OFD Sender: No OFD packet to send [13:37:54]OFD Sender: No OFD packet to send [13:37:59]OFD Sender: No OFD packet to send [13:38:04]OFD Sender: No OFD packet to send [13:38:09]OFD Sender: No OFD packet to send [13:38:14]OFD Sender: No OFD packet to send [13:38:19]OFD Sender: No OFD packet to send [13:38:24]OFD Sender: No OFD packet to send [13:38:29]OFD Sender: No OFD packet to send [13:38:34]OFD Sender: No OFD packet to send [13:38:39]OFD Sender: No OFD packet to send [13:38:44]OFD Sender: No OFD packet to send [13:38:49]OFD Sender: No OFD packet to send [13:38:54]OFD Sender: No OFD packet to send [13:38:59]OFD Sender: No OFD packet to send [13:39:04]OFD Sender: No OFD packet to send [13:39:09]OFD Sender: No OFD packet to send [13:39:14]OFD Sender: No OFD packet to send [13:39:19]OFD Sender: No OFD packet to send [13:39:24]OFD Sender: No OFD packet to send [13:39:29]OFD Sender: No OFD packet to send [13:39:34]accept exits with 9 [13:39:34]New connection [13:39:34]New thread 3066617188 created [13:39:34]Thread 3066473828 joined [13:39:34]Waiting for new connection... [13:39:34] Sock 9.Parse request [13:39:34]Sock 9.Check first char [13:39:34]Sock 9.First char is OK [13:39:34]request: POST /json_proto HTTP/1.0 [13:39:34]Method: POST [13:39:34]URL: /json_proto [13:39:34]Method is POST - this is cgi request [13:39:34]url: /json_proto [13:39:34]query_string will be loaded in cgi processing [13:39:34]execute_cgi json_proto POST (null) [13:39:34]execute_cgi path=json_proto method=POST [13:39:34]POST find Content-Length [13:39:34]Host: 172.17.55.133:8080 [13:39:34]Content-Length: 678 [13:39:34]Content-Type: application/json [13:39:34] [13:39:34]POST finish read [13:39:34]Found Content-Length = 678 [13:39:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:39:34]execute_script... [13:39: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)1036255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:39:34]POST & json_proto [13:39:34]process_json_proto [13:39:34]json parsed OK: [13:39:34]protocol is kg_v1.0 [13:39:34]action value=close_receipt [13:39:34]process_action close_receipt [13:39:34]cmd_close_receipt [13:39:34]MH_GetDate [13:39:34]Write to MH i2c: F0 00 00 15 88 8C [13:39:34]Write i2c OK [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: F0 [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: F0 09 00 [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: F0 09 00 15 88 00 9B F9 C1 66 34 48 D8 65 09 [13:39:34]GetLastDocTimeStamp 1723988146 [13:39:34]current date 1723988379 [13:39:34]FM_GetShiftState [13:39:34]SAM_PROTO_GetShiftState [13:39:34]wFMCommunicate request_size=4 [13:39:34]MH_SAM_APDU [13:39:34]CAPDU: 80 13 01 00 [13:39:34]Write to MH i2c: E2 08 00 16 88 80 13 01 00 00 00 00 00 1B [13:39:34]Write i2c OK [13:39:34]MH_I2C_Read... [13:39:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:34]OFD Sender: No OFD packet to send [13:39:34]Read from MH i2c: E2 [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: E2 0E 00 [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: E2 0E 00 16 88 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 58 [13:39:34]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:39:34]wFMCommunicate OK [13:39:34]SAM_PROTO_GetShiftState done [13:39:34]FM_GetShiftState done [13:39:34]opened in 1723940556 [13:39:34]opened+sec_in_day 1724026956 [13:39:34]quantity*price = 50036 [13:39:34]sum+1 = 50037 [13:39:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 265 18.08.2024 13:39 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260707 ФПД: 17051717006678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T133939&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260707&fm=17051717006678&tin=02508201610067®Number=0000000000091865&sum=50000 [13:39:36]StoreToDocumentArchive [13:39:36]shift 449 fd 260707 [13:39:36]save to /storage/0449/doc_00260707 [13:39:36]save last doc name /storage/0449/doc_00260707 to /storage/kkm_last_doc_name [13:39:36]save OK [13:39:36]Clear old archive folders... [13:39:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:39:36]tlvbuf is 004D7A80 [13:39:36]SAM_PROTO_ClearQueue [13:39:36]wFMCommunicate request_size=4 [13:39:36]MH_SAM_APDU [13:39:36]CAPDU: 80 09 00 00 [13:39:36]Write to MH i2c: E2 08 00 23 88 80 09 00 00 00 00 00 00 1D [13:39:36]Write i2c OK [13:39:36]MH_I2C_Read... [13:39:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:39:36]Read from MH i2c: E2 [13:39:36]MH_I2C_Read... [13:39:36]Read from MH i2c: E2 03 00 [13:39:36]MH_I2C_Read... [13:39:36]Read from MH i2c: E2 03 00 23 88 00 90 00 1F [13:39:36]RAPDU: 90 00 [13:39:36]wFMCommunicate OK [13:39:36]SAM_PROTO_ClearQueue done [13:39:36]KKMCreateOFDPacket [13:39:36]OFDProtocolAddRootSTLVToBuf [13:39:36]FM_MakeSignedData [13:39:36]FM_MakeSignedData [13:39:36]SAM_PROTO_SignData [13:39:36]wFMCommunicate request_size=4 [13:39:36]MH_SAM_APDU [13:39:36]CAPDU: 80 0D 01 02 [13:39:36]Write to MH i2c: E2 08 00 24 88 80 0D 01 02 00 00 00 00 25 [13:39:36]Write i2c OK [13:39:36]MH_I2C_Read... [13:39:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:39:36]Read from MH i2c: E2 [13:39:36]MH_I2C_Read... [13:39:36]Read from MH i2c: E2 03 00 [13:39:36]MH_I2C_Read... [13:39:36]Read from MH i2c: E2 03 00 24 88 00 90 00 20 [13:39:36]RAPDU: 90 00 [13:39:36]wFMCommunicate OK [13:39:36]wFMCommunicate request_size=255 [13:39:36]MH_SAM_APDU [13:39:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 09 01 00 00 F4 03 04 00 9B F9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 63 FA 03 00 35 04 06 00 0F [13:39:36]Write to MH i2c: E2 02 01 25 88 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 09 01 00 00 F4 03 04 00 9B F9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 63 FA 03 00 35 04 06 00 0F 00 00 98 [13:39:36]Write i2c OK [13:39:36]MH_I2C_Read... [13:39:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:36]Read from MH i2c: E2 [13:39:36]MH_I2C_Read... [13:39:36]Read from MH i2c: E2 03 00 [13:39:36]MH_I2C_Read... [13:39:36]Read from MH i2c: E2 03 00 25 88 00 90 00 21 [13:39:36]RAPDU: 90 00 [13:39:36]wFMCommunicate OK [13:39:36]wFMCommunicate request_size=10 [13:39:36]MH_SAM_APDU [13:39:36]CAPDU: 80 0D 02 02 05 82 29 88 F5 56 [13:39:36]Write to MH i2c: E2 0D 00 26 88 80 0D 02 02 05 00 82 29 88 F5 56 00 00 B0 [13:39:36]Write i2c OK [13:39:36]MH_I2C_Read... [13:39:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:36]Read from MH i2c: E2 [13:39:36]MH_I2C_Read... [13:39:36]Read from MH i2c: E2 03 00 [13:39:36]MH_I2C_Read... [13:39:36]Read from MH i2c: E2 03 00 26 88 00 90 00 22 [13:39:36]RAPDU: 90 00 [13:39:36]wFMCommunicate OK [13:39:36]wFMCommunicate request_size=4 [13:39:36]MH_SAM_APDU [13:39:36]CAPDU: 80 0D 03 02 [13:39:36]Write to MH i2c: E2 08 00 27 88 80 0D 03 02 00 00 00 00 2A [13:39:36]Write i2c OK [13:39:36]MH_I2C_Read... [13:39:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:39:36]Read from MH i2c: E2 [13:39:36]MH_I2C_Read... [13:39:36]Read from MH i2c: E2 0B 00 [13:39:36]MH_I2C_Read... [13:39:36]Read from MH i2c: E2 0B 00 27 88 00 8E 99 D8 87 07 42 8E F6 90 00 7E [13:39:36]RAPDU: 8E 99 D8 87 07 42 8E F6 90 00 [13:39:36]wFMCommunicate OK [13:39:36]SAM_PROTO_SignData done [13:39:36]FM_MakeSignedData done [13:39:36]CreateOFDProtocolMessage [13:39:36]wFMCommunicate request_size=4 [13:39:36]MH_SAM_APDU [13:39:36]CAPDU: 80 11 00 00 [13:39:36]Write to MH i2c: E2 08 00 28 88 80 11 00 00 00 00 00 00 2A [13:39:36]Write i2c OK [13:39:36]MH_I2C_Read... [13:39:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:36]Read from MH i2c: E2 [13:39:36]MH_I2C_Read... [13:39:36]Read from MH i2c: E2 17 00 [13:39:36]MH_I2C_Read... [13:39:36]Read from MH i2c: E2 17 00 28 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 77 [13:39:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:39:36]wFMCommunicate OK [13:39:36]CreateOFDProtocolMessage done [13:39:36]OFDSenderStorePacket 260707 [13:39:36]StoreOFDPacket docnum=260707 [13:39:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 21 20 07 01 7A 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 09 01 00 00 F4 03 04 00 9B F9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 63 FA 03 00 35 04 06 00 0F 82 29 88 F5 56 8E 99 D8 87 07 42 8E F6 [13:39:36]CheckFolder [13:39:36]dirname=/storage/ofd_packets [13:39:36]CheckFolder done [13:39:36]ProducePacketName [13:39:36]name=ofd_packets/00260707 [13:39:36]NVStorageSaveData ofd_packets/00260707 [13:39:36]File name is /storage/ofd_packets/00260707 [13:39:36]Write 301 bytes [13:39:36]NVStorageSaveData done [13:39:36]OFDSenderStorePacket done [13:39:36]KKMCreateOFDPacket done [13:39:36]NVStorageSaveData kkm_last_timestamp [13:39:36]File name is /storage/kkm_last_timestamp [13:39:36]Write 4 bytes [13:39:36]NVStorageSaveData done [13:39:36]ExternCall_PrintAddStr [13:39:36]wPrintStart [13:39:36]Write to MH i2c: 01 00 00 29 88 B1 [13:39:36]Write i2c OK [13:39:36]MH_I2C_Read... [13:39:36]Read from MH i2c: 01 [13:39:36]MH_I2C_Read... [13:39:36]Read from MH i2c: 01 07 00 [13:39:36]MH_I2C_Read... [13:39:36]Read from MH i2c: 01 07 00 29 88 00 00 00 00 00 FF 0F C6 [13:39:36]RasterBufferAndPrint [13:39:36]line Счет N : (1)1036255 [13:39:36]line ИНН: 02508201610067 [13:39:36]line Контрольно-Кассовый Чек [13:39:36]line ПРОДАЖА [13:39:36]line ТРК (МРК, ГНК) : 22 [13:39:36]line Товар: 2710124130 [13:39:36]line Аи-92-К-5 [13:39:36]line 7.380 * 67.80 [13:39:36]line = 500.36 [13:39:36]line НДС 12% НСП 1% [13:39:36]line > о реализуемом товаре [13:39:36]line ОКРУГЛЕНИЕ: -0.36 [13:39:36]line ИТОГО: 500.00 [13:39:36]line Внесено: 500.00 [13:39:36]line СДАЧА: 0.00 [13:39:36]line НСП 1% : 4.43 [13:39:36]line НДС 12% : 53.14 [13:39:36]line Наличными: 500.00 [13:39:36]line Безнал.: 0.00 [13:39:36]line Место: АЗС № 94 "Партнер Нефть" [13:39:36]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [13:39:36]line СНО: Общий режим [13:39:36]line Чек 265 18.08.2024 13:39 [13:39:36]line Смена: 449 ФФД: 1.0 [13:39:36]line ЗНМ: 0300000099 [13:39:36]line РНМ: 0000000000091865 [13:39:36]line Версия ККМ: 001 [13:39:36]line ФМ: 0000000000871820 [13:39:36]line ФД: 260707 [13:39:36]line ФПД: 17051717006678 [13:39:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T133939&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260707&fm=17051717006678&tin=02508201610067®Number=0000000000091865&sum=50000 [13:39:36]written 0, free lines is 4095 [13:39:36]OFD Sender: Processing packet 260707 [packets to send 192, broken 191] [13:39:36]ProducePacketName [13:39:36]name=ofd_packets/00260707 [13:39:36]OFD Sender: To server: pG, [13:39:36]CommunicateWithHost lk.salyk.kg:30040 [13:39:36]ConnectInit lk.salyk.kg [13:39:36]Connected sock=10 [13:39: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 30 0F 01 00 00 21 20 07 01 7A 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 09 01 00 00 F4 03 04 00 9B F9 C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 63 FA 03 00 35 04 06 00 0F 82 29 88 F5 56 8E 99 D8 87 07 42 8E F6 [13:39: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 30 4F 00 00 00 1B B5 47 00 BE 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 30 10 04 04 00 63 FA 03 00 F4 03 04 00 F0 A2 C1 66 B6 04 01 00 00 E3 F6 0E FA E3 52 8F 45 [13:39:36]CommunicateWithHost err = 0 [13:39:36]CheckOFDResponse [13:39:36]1017 (14) - 77093643461234 [13:39:36]1041 (16) - 0000000000871820 [13:39:36]1040 (4) - 260707 [13:39:36]1012 (4) - 18.08.2024 07:29 [13:39:36]1206 (1) - 0 [13:39:36]OFD Sender: Remove packet 260707 [13:39:36]ProducePacketName [13:39:36]name=ofd_packets/00260707 [13:39:36]NVStorageDeleteData [13:39:37]Write to MH i2c: 01 00 00 54 88 DC [13:39:37]Write i2c OK [13:39:37]MH_I2C_Read... [13:39:37]Read from MH i2c: 01 [13:39:37]MH_I2C_Read... [13:39:37]Read from MH i2c: 01 07 00 [13:39:37]MH_I2C_Read... [13:39:37]Read from MH i2c: 01 07 00 54 88 00 00 00 00 00 64 0C 53 [13:39:37]RasterBufferAndPrint [13:39:37]line [13:39:37]line [13:39:37]line [13:39:37]line [13:39:37]line [13:39:37]written 0, free lines is 3177 [13:39:37]MH_Cut [13:39:37]Write to MH i2c: D1 01 00 5B 88 01 B5 [13:39:37]Write i2c OK [13:39:37]MH_I2C_Read... [13:39:37]Read from MH i2c: D1 [13:39:37]MH_I2C_Read... [13:39:37]Read from MH i2c: D1 01 00 [13:39:37]MH_I2C_Read... [13:39:37]Read from MH i2c: D1 01 00 5B 88 00 B4 [13:39:37]Write to MH i2c: 01 00 00 5C 88 E4 [13:39:37]Write i2c OK [13:39:37]MH_I2C_Read... [13:39:37]OFD Sender: No OFD packet to send [13:39:38]*** Cut start [13:39:38]*** Purtial cut [13:39:38]*** Stage 1: CUTSNS_PIN = 1 [13:39:40]Read from MH i2c: 01 [13:39:40]MH_I2C_Read... [13:39:40]*** Stop cut motor [13:39:40]*** Cut end [13:39:40]Read from MH i2c: 01 07 00 [13:39:40]MH_I2C_Read... [13:39:40]Read from MH i2c: 01 07 00 5C 88 00 00 00 00 00 FF 0F F9 [13:39:40]process_action close_receipt done [13:39:40]requested_data is exist [13:39:40]produce_requested_data [13:39:40]requested_item fm.sn is exist - process it [13:39:40]wFMCommunicate request_size=4 [13:39:40]MH_SAM_APDU [13:39:40]CAPDU: 80 11 00 00 [13:39:40]Write to MH i2c: E2 08 00 5D 88 80 11 00 00 00 00 00 00 5F [13:39:40]Write i2c OK [13:39:40]MH_I2C_Read... [13:39:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:40]Read from MH i2c: E2 [13:39:40]MH_I2C_Read... [13:39:40]Read from MH i2c: E2 17 00 [13:39:40]MH_I2C_Read... [13:39:40]Read from MH i2c: E2 17 00 5D 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 AC [13:39:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:39:40]wFMCommunicate OK [13:39:40]requested_item fd.num is exist - process it [13:39:40]SAM_PROTO_GetFieldsCounters [13:39:40]wFMCommunicate request_size=4 [13:39:40]MH_SAM_APDU [13:39:40]CAPDU: 80 13 00 00 [13:39:40]Write to MH i2c: E2 08 00 5E 88 80 13 00 00 00 00 00 00 62 [13:39:40]Write i2c OK [13:39:40]MH_I2C_Read... [13:39:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:39:40]Read from MH i2c: E2 [13:39:40]MH_I2C_Read... [13:39:40]Read from MH i2c: E2 62 00 [13:39:40]MH_I2C_Read... [13:39:40]Read from MH i2c: E2 62 00 5E 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 63 FA 03 00 0E 04 04 00 C1 01 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 C1 [13:39: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 63 FA 03 00 0E 04 04 00 C1 01 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 [13:39:40]wFMCommunicate OK [13:39:40]SAM_PROTO_GetFieldsCounters done [13:39:40]requested_item shift.num is exist - process it [13:39:40]requested_item shift.opened is exist - process it [13:39:40]req_shift_opened [13:39:40]FM_GetShiftState [13:39:40]SAM_PROTO_GetShiftState [13:39:40]wFMCommunicate request_size=4 [13:39:40]MH_SAM_APDU [13:39:40]CAPDU: 80 13 01 00 [13:39:40]Write to MH i2c: E2 08 00 5F 88 80 13 01 00 00 00 00 00 64 [13:39:40]Write i2c OK [13:39:40]MH_I2C_Read... [13:39:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:40]Read from MH i2c: E2 [13:39:40]MH_I2C_Read... [13:39:40]Read from MH i2c: E2 0E 00 [13:39:40]MH_I2C_Read... [13:39:40]Read from MH i2c: E2 0E 00 5F 88 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A1 [13:39:40]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:39:40]wFMCommunicate OK [13:39:40]SAM_PROTO_GetShiftState done [13:39:40]FM_GetShiftState done [13:39:40]req_shift_opened done [13:39:40]requested_item shift.open_date is exist - process it [13:39:40]req_shift_open_date [13:39:40]req_shift_open_date done [13:39:40]produce_requested_data done [13:39:40]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260707,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [13:39:40]process_action_free close_receipt [13:39:40]json_value_free [13:39:40]json_value_free done [13:39:40]process_json_proto returns [13:39:40]Send response to host [13:39:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260707,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [13:39:40]free response buf [13:39:40]execute_script done [13:39:40]execute_script returns [13:39:40]free content buf [13:39:40]Sock 9.Close socket [13:39:40]Sock 9.Thread stoped [13:39:42]OFD Sender: No OFD packet to send [13:39:47]OFD Sender: No OFD packet to send [13:39:52]OFD Sender: No OFD packet to send [13:39:57]OFD Sender: No OFD packet to send [13:40:02]OFD Sender: No OFD packet to send [13:40:07]OFD Sender: No OFD packet to send [13:40:12]OFD Sender: No OFD packet to send [13:40:17]OFD Sender: No OFD packet to send [13:40:22]OFD Sender: No OFD packet to send [13:40:27]OFD Sender: No OFD packet to send [13:40:32]OFD Sender: No OFD packet to send [13:40:37]OFD Sender: No OFD packet to send [13:40:42]OFD Sender: No OFD packet to send [13:40:47]OFD Sender: No OFD packet to send [13:40:52]OFD Sender: No OFD packet to send [13:40:57]OFD Sender: No OFD packet to send [13:41:02]OFD Sender: No OFD packet to send [13:41:07]OFD Sender: No OFD packet to send [13:41:12]OFD Sender: No OFD packet to send [13:41:17]OFD Sender: No OFD packet to send [13:41:22]OFD Sender: No OFD packet to send [13:41:27]OFD Sender: No OFD packet to send [13:41:32]OFD Sender: No OFD packet to send [13:41:37]OFD Sender: No OFD packet to send [13:41:42]OFD Sender: No OFD packet to send [13:41:47]OFD Sender: No OFD packet to send [13:41:52]OFD Sender: No OFD packet to send [13:41:57]OFD Sender: No OFD packet to send [13:42:02]OFD Sender: No OFD packet to send [13:42:07]OFD Sender: No OFD packet to send [13:42:12]OFD Sender: No OFD packet to send [13:42:17]OFD Sender: No OFD packet to send [13:42:22]OFD Sender: No OFD packet to send [13:42:27]OFD Sender: No OFD packet to send [13:42:32]OFD Sender: No OFD packet to send [13:42:37]OFD Sender: No OFD packet to send [13:42:42]OFD Sender: No OFD packet to send [13:42:47]OFD Sender: No OFD packet to send [13:42:52]OFD Sender: No OFD packet to send [13:42:57]OFD Sender: No OFD packet to send [13:43:02]OFD Sender: No OFD packet to send [13:43:07]OFD Sender: No OFD packet to send [13:43:12]OFD Sender: No OFD packet to send [13:43:17]OFD Sender: No OFD packet to send [13:43:22]OFD Sender: No OFD packet to send [13:43:27]OFD Sender: No OFD packet to send [13:43:32]OFD Sender: No OFD packet to send [13:43:37]OFD Sender: No OFD packet to send [13:43:42]OFD Sender: No OFD packet to send [13:43:47]OFD Sender: No OFD packet to send [13:43:52]OFD Sender: No OFD packet to send [13:43:57]OFD Sender: No OFD packet to send [13:44:02]OFD Sender: No OFD packet to send [13:44:07]OFD Sender: No OFD packet to send [13:44:12]OFD Sender: No OFD packet to send [13:44:17]OFD Sender: No OFD packet to send [13:44:22]OFD Sender: No OFD packet to send [13:44:27]OFD Sender: No OFD packet to send [13:44:32]OFD Sender: No OFD packet to send [13:44:37]OFD Sender: No OFD packet to send [13:44:42]OFD Sender: No OFD packet to send [13:44:47]OFD Sender: No OFD packet to send [13:44:52]OFD Sender: No OFD packet to send [13:44:57]OFD Sender: No OFD packet to send [13:45:02]OFD Sender: No OFD packet to send [13:45:07]OFD Sender: No OFD packet to send [13:45:12]accept exits with 7 [13:45:12]New connection [13:45:12]New thread 3066473828 created [13:45:12]Thread 3066617188 joined [13:45:12]Waiting for new connection... [13:45:12] Sock 7.Parse request [13:45:12]Sock 7.Check first char [13:45:12]Sock 7.First char is OK [13:45:12]request: POST /json_proto HTTP/1.0 [13:45:12]Method: POST [13:45:12]URL: /json_proto [13:45:12]Method is POST - this is cgi request [13:45:12]url: /json_proto [13:45:12]query_string will be loaded in cgi processing [13:45:12]execute_cgi json_proto POST (null) [13:45:12]execute_cgi path=json_proto method=POST [13:45:12]POST find Content-Length [13:45:12]Host: 172.17.55.133:8080 [13:45:12]Content-Length: 801 [13:45:12]Content-Type: application/json [13:45:12] [13:45:12]POST finish read [13:45:12]Found Content-Length = 801 [13:45:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 9.690, "sum" : 656.98, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 656.98 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:12]execute_script... [13:45:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 9.690, "sum" : 656.98, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 656.98 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:12]POST & json_proto [13:45:12]process_json_proto [13:45:12]json parsed OK: [13:45:12]protocol is kg_v1.0 [13:45:12]action value=close_receipt [13:45:12]process_action close_receipt [13:45:12]cmd_close_receipt [13:45:12]MH_GetDate [13:45:12]Write to MH i2c: F0 00 00 60 88 D7 [13:45:12]Write i2c OK [13:45:12]MH_I2C_Read... [13:45:12]Read from MH i2c: F0 [13:45:12]MH_I2C_Read... [13:45:12]Read from MH i2c: F0 09 00 [13:45:12]MH_I2C_Read... [13:45:12]Read from MH i2c: F0 09 00 60 88 00 ED FA C1 66 34 48 D8 65 A7 [13:45:12]GetLastDocTimeStamp 1723988379 [13:45:12]current date 1723988717 [13:45:12]FM_GetShiftState [13:45:12]SAM_PROTO_GetShiftState [13:45:12]wFMCommunicate request_size=4 [13:45:12]MH_SAM_APDU [13:45:12]CAPDU: 80 13 01 00 [13:45:12]Write to MH i2c: E2 08 00 61 88 80 13 01 00 00 00 00 00 66 [13:45:12]Write i2c OK [13:45:12]MH_I2C_Read... [13:45:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:12]Read from MH i2c: E2 [13:45:12]MH_I2C_Read... [13:45:12]Read from MH i2c: E2 0E 00 [13:45:12]MH_I2C_Read... [13:45:12]Read from MH i2c: E2 0E 00 61 88 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A3 [13:45:12]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:45:12]wFMCommunicate OK [13:45:12]SAM_PROTO_GetShiftState done [13:45:12]FM_GetShiftState done [13:45:12]opened in 1723940556 [13:45:12]opened+sec_in_day 1724026956 [13:45:12]quantity*price = 65698 [13:45:12]sum+1 = 65699 [13:45:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 656.98 НСП 1% : 5.81 НДС 12% : 69.77 Наличными: 0.00 Безнал.: 656.98 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 266 18.08.2024 13:45 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260708 ФПД: 84995624226976 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T134517&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260708&fm=84995624226976&tin=02508201610067®Number=0000000000091865&sum=65698 [13:45:13]StoreToDocumentArchive [13:45:13]shift 449 fd 260708 [13:45:13]save to /storage/0449/doc_00260708 [13:45:13]save last doc name /storage/0449/doc_00260708 to /storage/kkm_last_doc_name [13:45:13]save OK [13:45:13]Clear old archive folders... [13:45:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:45:13]tlvbuf is 003A0400 [13:45:13]SAM_PROTO_ClearQueue [13:45:13]wFMCommunicate request_size=4 [13:45:13]MH_SAM_APDU [13:45:13]CAPDU: 80 09 00 00 [13:45:13]Write to MH i2c: E2 08 00 6E 88 80 09 00 00 00 00 00 00 68 [13:45:13]Write i2c OK [13:45:13]MH_I2C_Read... [13:45:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:13]Read from MH i2c: E2 [13:45:13]MH_I2C_Read... [13:45:13]Read from MH i2c: E2 03 00 [13:45:13]MH_I2C_Read... [13:45:13]Read from MH i2c: E2 03 00 6E 88 00 90 00 6A [13:45:13]RAPDU: 90 00 [13:45:13]wFMCommunicate OK [13:45:13]SAM_PROTO_ClearQueue done [13:45:13]KKMCreateOFDPacket [13:45:13]OFDProtocolAddRootSTLVToBuf [13:45:13]FM_MakeSignedData [13:45:13]FM_MakeSignedData [13:45:13]SAM_PROTO_SignData [13:45:13]wFMCommunicate request_size=4 [13:45:13]MH_SAM_APDU [13:45:13]CAPDU: 80 0D 01 02 [13:45:13]Write to MH i2c: E2 08 00 6F 88 80 0D 01 02 00 00 00 00 70 [13:45:13]Write i2c OK [13:45:13]MH_I2C_Read... [13:45:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:13]Read from MH i2c: E2 [13:45:13]MH_I2C_Read... [13:45:13]Read from MH i2c: E2 03 00 [13:45:13]MH_I2C_Read... [13:45:13]Read from MH i2c: E2 03 00 6F 88 00 90 00 6B [13:45:13]RAPDU: 90 00 [13:45:13]wFMCommunicate OK [13:45:13]wFMCommunicate request_size=255 [13:45:13]MH_SAM_APDU [13:45:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 25 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A2 00 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A2 00 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A2 00 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 ED FA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 64 FA 03 00 35 04 06 00 4D [13:45:13]Write to MH i2c: E2 02 01 70 88 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 25 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A2 00 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A2 00 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A2 00 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 ED FA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 64 FA 03 00 35 04 06 00 4D 00 00 22 [13:45:13]Write i2c OK [13:45:13]MH_I2C_Read... [13:45:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:13]Read from MH i2c: E2 [13:45:13]MH_I2C_Read... [13:45:13]Read from MH i2c: E2 03 00 [13:45:13]MH_I2C_Read... [13:45:13]Read from MH i2c: E2 03 00 70 88 00 90 00 6C [13:45:13]RAPDU: 90 00 [13:45:13]wFMCommunicate OK [13:45:13]wFMCommunicate request_size=10 [13:45:13]MH_SAM_APDU [13:45:13]CAPDU: 80 0D 02 02 05 4D 95 FD 50 A0 [13:45:13]Write to MH i2c: E2 0D 00 71 88 80 0D 02 02 05 00 4D 95 FD 50 A0 00 00 4C [13:45:13]Write i2c OK [13:45:13]MH_I2C_Read... [13:45:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:13]Read from MH i2c: E2 [13:45:13]MH_I2C_Read... [13:45:13]Read from MH i2c: E2 03 00 [13:45:13]MH_I2C_Read... [13:45:13]Read from MH i2c: E2 03 00 71 88 00 90 00 6D [13:45:13]RAPDU: 90 00 [13:45:13]wFMCommunicate OK [13:45:13]wFMCommunicate request_size=4 [13:45:13]MH_SAM_APDU [13:45:13]CAPDU: 80 0D 03 02 [13:45:13]Write to MH i2c: E2 08 00 72 88 80 0D 03 02 00 00 00 00 75 [13:45:13]Write i2c OK [13:45:13]MH_I2C_Read... [13:45:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:14]Read from MH i2c: E2 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: E2 0B 00 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: E2 0B 00 72 88 00 CA 25 13 B9 3A 5D 24 CB 90 00 B7 [13:45:14]RAPDU: CA 25 13 B9 3A 5D 24 CB 90 00 [13:45:14]wFMCommunicate OK [13:45:14]SAM_PROTO_SignData done [13:45:14]FM_MakeSignedData done [13:45:14]CreateOFDProtocolMessage [13:45:14]wFMCommunicate request_size=4 [13:45:14]MH_SAM_APDU [13:45:14]CAPDU: 80 11 00 00 [13:45:14]Write to MH i2c: E2 08 00 73 88 80 11 00 00 00 00 00 00 75 [13:45:14]Write i2c OK [13:45:14]MH_I2C_Read... [13:45:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:14]Read from MH i2c: E2 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: E2 17 00 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: E2 17 00 73 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C2 [13:45:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:45:14]wFMCommunicate OK [13:45:14]CreateOFDProtocolMessage done [13:45:14]OFDSenderStorePacket 260708 [13:45:14]StoreOFDPacket docnum=260708 [13:45:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 78 5B 07 01 16 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 35 FF 03 08 00 03 DA 25 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A2 00 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A2 00 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A2 00 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 ED FA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 64 FA 03 00 35 04 06 00 4D 4D 95 FD 50 A0 CA 25 13 B9 3A 5D 24 CB [13:45:14]CheckFolder [13:45:14]dirname=/storage/ofd_packets [13:45:14]CheckFolder done [13:45:14]ProducePacketName [13:45:14]name=ofd_packets/00260708 [13:45:14]NVStorageSaveData ofd_packets/00260708 [13:45:14]File name is /storage/ofd_packets/00260708 [13:45:14]Write 301 bytes [13:45:14]NVStorageSaveData done [13:45:14]OFDSenderStorePacket done [13:45:14]KKMCreateOFDPacket done [13:45:14]NVStorageSaveData kkm_last_timestamp [13:45:14]File name is /storage/kkm_last_timestamp [13:45:14]Write 4 bytes [13:45:14]NVStorageSaveData done [13:45:14]ExternCall_PrintAddStr [13:45:14]wPrintStart [13:45:14]Write to MH i2c: 01 00 00 74 88 FC [13:45:14]Write i2c OK [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: 01 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: 01 07 00 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: 01 07 00 74 88 00 00 00 00 00 FF 0F 11 [13:45:14]RasterBufferAndPrint [13:45:14]line Счет N : (1)1036256 [13:45:14]line ИНН: 02508201610067 [13:45:14]line Контрольно-Кассовый Чек [13:45:14]line ПРОДАЖА [13:45:14]line ТРК (МРК, ГНК) : 12 [13:45:14]line Товар: 2710124130 [13:45:14]line Аи-92-К-5 [13:45:14]line 9.690 * 67.80 [13:45:14]line = 656.98 [13:45:14]line НДС 12% НСП 1% [13:45:14]line > о реализуемом товаре [13:45:14]line ИТОГО: 656.98 [13:45:14]line НСП 1% : 5.81 [13:45:14]line НДС 12% : 69.77 [13:45:14]line Наличными: 0.00 [13:45:14]line Безнал.: 656.98 [13:45:14]line Место: АЗС № 94 "Партнер Нефть" [13:45:14]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [13:45:14]line СНО: Общий режим [13:45:14]line Чек 266 18.08.2024 13:45 [13:45:14]line Смена: 449 ФФД: 1.0 [13:45:14]line ЗНМ: 0300000099 [13:45:14]line РНМ: 0000000000091865 [13:45:14]line Версия ККМ: 001 [13:45:14]line Платежная система: O! деньги [13:45:14]line ФМ: 0000000000871820 [13:45:14]line ФД: 260708 [13:45:14]line ФПД: 84995624226976 [13:45:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T134517&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260708&fm=84995624226976&tin=02508201610067®Number=0000000000091865&sum=65698 [13:45:14]written 0, free lines is 4095 [13:45:14]OFD Sender: Processing packet 260708 [packets to send 192, broken 191] [13:45:14]ProducePacketName [13:45:14]name=ofd_packets/00260708 [13:45:14]OFD Sender: To server: pG, [13:45:14]CommunicateWithHost lk.salyk.kg:30040 [13:45:14]ConnectInit lk.salyk.kg [13:45:14]Connected sock=10 [13:45: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 30 0F 01 00 00 78 5B 07 01 16 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 35 FF 03 08 00 03 DA 25 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A2 00 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A2 00 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A2 00 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 ED FA C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 64 FA 03 00 35 04 06 00 4D 4D 95 FD 50 A0 CA 25 13 B9 3A 5D 24 CB [13:45: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 30 4F 00 00 00 37 D4 47 00 0D 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 30 10 04 04 00 64 FA 03 00 F4 03 04 00 42 A4 C1 66 B6 04 01 00 00 F4 15 62 D6 CD F9 6C F5 [13:45:14]CommunicateWithHost err = 0 [13:45:14]CheckOFDResponse [13:45:14]1017 (14) - 77093643461234 [13:45:14]1041 (16) - 0000000000871820 [13:45:14]1040 (4) - 260708 [13:45:14]1012 (4) - 18.08.2024 07:35 [13:45:14]1206 (1) - 0 [13:45:14]OFD Sender: Remove packet 260708 [13:45:14]ProducePacketName [13:45:14]name=ofd_packets/00260708 [13:45:14]NVStorageDeleteData [13:45:14]Write to MH i2c: 01 00 00 9E 88 26 [13:45:14]Write i2c OK [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: 01 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: 01 07 00 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: 01 07 00 9E 88 00 00 00 00 00 87 0C C0 [13:45:14]RasterBufferAndPrint [13:45:14]line [13:45:14]line [13:45:14]line [13:45:14]line [13:45:14]line [13:45:14]written 0, free lines is 3211 [13:45:14]MH_Cut [13:45:14]Write to MH i2c: D1 01 00 A5 88 01 FF [13:45:14]Write i2c OK [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: D1 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: D1 01 00 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: D1 01 00 A5 88 00 FE [13:45:14]Write to MH i2c: 01 00 00 A6 88 2E [13:45:14]Write i2c OK [13:45:14]MH_I2C_Read... [13:45:14]OFD Sender: No OFD packet to send [13:45:15]*** Cut start [13:45:15]*** Purtial cut [13:45:15]*** Stage 1: CUTSNS_PIN = 1 [13:45:17]Read from MH i2c: 01 [13:45:17]MH_I2C_Read... [13:45:17]*** Stop cut motor [13:45:17]*** Cut end [13:45:17]Read from MH i2c: 01 07 00 [13:45:17]MH_I2C_Read... [13:45:17]Read from MH i2c: 01 07 00 A6 88 00 00 00 00 00 FF 0F 43 [13:45:17]process_action close_receipt done [13:45:17]requested_data is exist [13:45:17]produce_requested_data [13:45:17]requested_item fm.sn is exist - process it [13:45:17]wFMCommunicate request_size=4 [13:45:17]MH_SAM_APDU [13:45:17]CAPDU: 80 11 00 00 [13:45:17]Write to MH i2c: E2 08 00 A7 88 80 11 00 00 00 00 00 00 A9 [13:45:17]Write i2c OK [13:45:17]MH_I2C_Read... [13:45:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:17]Read from MH i2c: E2 [13:45:17]MH_I2C_Read... [13:45:17]Read from MH i2c: E2 17 00 [13:45:17]MH_I2C_Read... [13:45:17]Read from MH i2c: E2 17 00 A7 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F6 [13:45:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:45:17]wFMCommunicate OK [13:45:17]requested_item fd.num is exist - process it [13:45:17]SAM_PROTO_GetFieldsCounters [13:45:17]wFMCommunicate request_size=4 [13:45:17]MH_SAM_APDU [13:45:17]CAPDU: 80 13 00 00 [13:45:17]Write to MH i2c: E2 08 00 A8 88 80 13 00 00 00 00 00 00 AC [13:45:17]Write i2c OK [13:45:17]MH_I2C_Read... [13:45:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:17]Read from MH i2c: E2 [13:45:17]MH_I2C_Read... [13:45:17]Read from MH i2c: E2 62 00 [13:45:17]MH_I2C_Read... [13:45:17]Read from MH i2c: E2 62 00 A8 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 64 FA 03 00 0E 04 04 00 C1 01 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 0F [13:45: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 64 FA 03 00 0E 04 04 00 C1 01 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 [13:45:17]wFMCommunicate OK [13:45:17]SAM_PROTO_GetFieldsCounters done [13:45:17]requested_item shift.num is exist - process it [13:45:17]requested_item shift.opened is exist - process it [13:45:17]req_shift_opened [13:45:17]FM_GetShiftState [13:45:17]SAM_PROTO_GetShiftState [13:45:17]wFMCommunicate request_size=4 [13:45:17]MH_SAM_APDU [13:45:17]CAPDU: 80 13 01 00 [13:45:17]Write to MH i2c: E2 08 00 A9 88 80 13 01 00 00 00 00 00 AE [13:45:17]Write i2c OK [13:45:17]MH_I2C_Read... [13:45:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:17]Read from MH i2c: E2 [13:45:17]MH_I2C_Read... [13:45:17]Read from MH i2c: E2 0E 00 [13:45:17]MH_I2C_Read... [13:45:17]Read from MH i2c: E2 0E 00 A9 88 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 EB [13:45:17]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:45:17]wFMCommunicate OK [13:45:17]SAM_PROTO_GetShiftState done [13:45:17]FM_GetShiftState done [13:45:17]req_shift_opened done [13:45:17]requested_item shift.open_date is exist - process it [13:45:17]req_shift_open_date [13:45:17]req_shift_open_date done [13:45:17]produce_requested_data done [13:45:17]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260708,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [13:45:17]process_action_free close_receipt [13:45:17]json_value_free [13:45:17]json_value_free done [13:45:17]process_json_proto returns [13:45:17]Send response to host [13:45:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260708,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [13:45:17]free response buf [13:45:17]execute_script done [13:45:17]execute_script returns [13:45:17]free content buf [13:45:17]Sock 7.Close socket [13:45:17]Sock 7.Thread stoped [13:45:19]OFD Sender: No OFD packet to send [13:45:24]OFD Sender: No OFD packet to send [13:45:29]OFD Sender: No OFD packet to send [13:45:34]OFD Sender: No OFD packet to send [13:45:39]OFD Sender: No OFD packet to send [13:45:44]OFD Sender: No OFD packet to send [13:45:49]OFD Sender: No OFD packet to send [13:45:55]OFD Sender: No OFD packet to send [13:46:00]OFD Sender: No OFD packet to send [13:46:05]OFD Sender: No OFD packet to send [13:46:10]OFD Sender: No OFD packet to send [13:46:15]OFD Sender: No OFD packet to send [13:46:20]OFD Sender: No OFD packet to send [13:46:25]OFD Sender: No OFD packet to send [13:46:30]OFD Sender: No OFD packet to send [13:46:35]OFD Sender: No OFD packet to send [13:46:40]OFD Sender: No OFD packet to send [13:46:45]OFD Sender: No OFD packet to send [13:46:50]OFD Sender: No OFD packet to send [13:46:55]OFD Sender: No OFD packet to send [13:47:00]OFD Sender: No OFD packet to send [13:47:05]OFD Sender: No OFD packet to send [13:47:10]OFD Sender: No OFD packet to send [13:47:15]OFD Sender: No OFD packet to send [13:47:20]OFD Sender: No OFD packet to send [13:47:25]OFD Sender: No OFD packet to send [13:47:30]OFD Sender: No OFD packet to send [13:47:35]OFD Sender: No OFD packet to send [13:47:40]OFD Sender: No OFD packet to send [13:47:45]OFD Sender: No OFD packet to send [13:47:50]OFD Sender: No OFD packet to send [13:47:55]OFD Sender: No OFD packet to send [13:47:56]accept exits with 9 [13:47:56]New connection [13:47:56]New thread 3066617188 created [13:47:56]Thread 3066473828 joined [13:47:56]Waiting for new connection... [13:47:56] Sock 9.Parse request [13:47:56]Sock 9.Check first char [13:47:56]Sock 9.First char is OK [13:47:56]request: POST /json_proto HTTP/1.0 [13:47:56]Method: POST [13:47:56]URL: /json_proto [13:47:56]Method is POST - this is cgi request [13:47:56]url: /json_proto [13:47:56]query_string will be loaded in cgi processing [13:47:56]execute_cgi json_proto POST (null) [13:47:56]execute_cgi path=json_proto method=POST [13:47:56]POST find Content-Length [13:47:56]Host: 172.17.55.133:8080 [13:47:56]Content-Length: 678 [13:47:56]Content-Type: application/json [13:47:56] [13:47:56]POST finish read [13:47:56]Found Content-Length = 678 [13:47:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:47:56]execute_script... [13:47: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)1036257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:47:56]POST & json_proto [13:47:56]process_json_proto [13:47:56]json parsed OK: [13:47:56]protocol is kg_v1.0 [13:47:56]action value=close_receipt [13:47:56]process_action close_receipt [13:47:56]cmd_close_receipt [13:47:56]MH_GetDate [13:47:56]Write to MH i2c: F0 00 00 AA 88 21 [13:47:56]Write i2c OK [13:47:56]MH_I2C_Read... [13:47:56]Read from MH i2c: F0 [13:47:56]MH_I2C_Read... [13:47:56]Read from MH i2c: F0 09 00 [13:47:56]MH_I2C_Read... [13:47:56]Read from MH i2c: F0 09 00 AA 88 00 91 FB C1 66 34 48 D8 65 96 [13:47:56]GetLastDocTimeStamp 1723988717 [13:47:56]current date 1723988881 [13:47:56]FM_GetShiftState [13:47:56]SAM_PROTO_GetShiftState [13:47:56]wFMCommunicate request_size=4 [13:47:56]MH_SAM_APDU [13:47:56]CAPDU: 80 13 01 00 [13:47:56]Write to MH i2c: E2 08 00 AB 88 80 13 01 00 00 00 00 00 B0 [13:47:56]Write i2c OK [13:47:56]MH_I2C_Read... [13:47:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:56]Read from MH i2c: E2 [13:47:56]MH_I2C_Read... [13:47:56]Read from MH i2c: E2 0E 00 [13:47:56]MH_I2C_Read... [13:47:56]Read from MH i2c: E2 0E 00 AB 88 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 ED [13:47:56]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:47:56]wFMCommunicate OK [13:47:56]SAM_PROTO_GetShiftState done [13:47:56]FM_GetShiftState done [13:47:56]opened in 1723940556 [13:47:56]opened+sec_in_day 1724026956 [13:47:56]quantity*price = 50036 [13:47:56]sum+1 = 50037 [13:47:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 267 18.08.2024 13:48 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260709 ФПД: 219477898608514 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T134801&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260709&fm=219477898608514&tin=02508201610067®Number=0000000000091865&sum=50000 [13:47:57]StoreToDocumentArchive [13:47:57]shift 449 fd 260709 [13:47:57]save to /storage/0449/doc_00260709 [13:47:57]save last doc name /storage/0449/doc_00260709 to /storage/kkm_last_doc_name [13:47:57]save OK [13:47:57]Clear old archive folders... [13:47:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:47:57]tlvbuf is 0036EFF0 [13:47:57]SAM_PROTO_ClearQueue [13:47:57]wFMCommunicate request_size=4 [13:47:57]MH_SAM_APDU [13:47:57]CAPDU: 80 09 00 00 [13:47:57]Write to MH i2c: E2 08 00 B8 88 80 09 00 00 00 00 00 00 B2 [13:47:57]Write i2c OK [13:47:57]MH_I2C_Read... [13:47:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:47:57]Read from MH i2c: E2 [13:47:57]MH_I2C_Read... [13:47:57]Read from MH i2c: E2 03 00 [13:47:57]MH_I2C_Read... [13:47:57]Read from MH i2c: E2 03 00 B8 88 00 90 00 B4 [13:47:57]RAPDU: 90 00 [13:47:57]wFMCommunicate OK [13:47:57]SAM_PROTO_ClearQueue done [13:47:57]KKMCreateOFDPacket [13:47:57]OFDProtocolAddRootSTLVToBuf [13:47:57]FM_MakeSignedData [13:47:57]FM_MakeSignedData [13:47:57]SAM_PROTO_SignData [13:47:57]wFMCommunicate request_size=4 [13:47:57]MH_SAM_APDU [13:47:57]CAPDU: 80 0D 01 02 [13:47:57]Write to MH i2c: E2 08 00 B9 88 80 0D 01 02 00 00 00 00 BA [13:47:57]Write i2c OK [13:47:57]MH_I2C_Read... [13:47:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:47:57]Read from MH i2c: E2 [13:47:57]MH_I2C_Read... [13:47:57]Read from MH i2c: E2 03 00 [13:47:57]MH_I2C_Read... [13:47:57]Read from MH i2c: E2 03 00 B9 88 00 90 00 B5 [13:47:57]RAPDU: 90 00 [13:47:57]wFMCommunicate OK [13:47:57]wFMCommunicate request_size=255 [13:47:57]MH_SAM_APDU [13:47:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 0B 01 00 00 F4 03 04 00 91 FB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 65 FA 03 00 35 04 06 00 C7 [13:47:57]Write to MH i2c: E2 02 01 BA 88 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 0B 01 00 00 F4 03 04 00 91 FB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 65 FA 03 00 35 04 06 00 C7 00 00 E1 [13:47:57]Write i2c OK [13:47:57]MH_I2C_Read... [13:47:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:58]Read from MH i2c: E2 [13:47:58]MH_I2C_Read... [13:47:58]Read from MH i2c: E2 03 00 [13:47:58]MH_I2C_Read... [13:47:58]Read from MH i2c: E2 03 00 BA 88 00 90 00 B6 [13:47:58]RAPDU: 90 00 [13:47:58]wFMCommunicate OK [13:47:58]wFMCommunicate request_size=10 [13:47:58]MH_SAM_APDU [13:47:58]CAPDU: 80 0D 02 02 05 9D 2E 2E BF 82 [13:47:58]Write to MH i2c: E2 0D 00 BB 88 80 0D 02 02 05 00 9D 2E 2E BF 82 00 00 01 [13:47:58]Write i2c OK [13:47:58]MH_I2C_Read... [13:47:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:58]Read from MH i2c: E2 [13:47:58]MH_I2C_Read... [13:47:58]Read from MH i2c: E2 03 00 [13:47:58]MH_I2C_Read... [13:47:58]Read from MH i2c: E2 03 00 BB 88 00 90 00 B7 [13:47:58]RAPDU: 90 00 [13:47:58]wFMCommunicate OK [13:47:58]wFMCommunicate request_size=4 [13:47:58]MH_SAM_APDU [13:47:58]CAPDU: 80 0D 03 02 [13:47:58]Write to MH i2c: E2 08 00 BC 88 80 0D 03 02 00 00 00 00 BF [13:47:58]Write i2c OK [13:47:58]MH_I2C_Read... [13:47:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:47:58]Read from MH i2c: E2 [13:47:58]MH_I2C_Read... [13:47:58]Read from MH i2c: E2 0B 00 [13:47:58]MH_I2C_Read... [13:47:58]Read from MH i2c: E2 0B 00 BC 88 00 E8 82 8E 3D A4 EC 88 9A 90 00 A7 [13:47:58]RAPDU: E8 82 8E 3D A4 EC 88 9A 90 00 [13:47:58]wFMCommunicate OK [13:47:58]SAM_PROTO_SignData done [13:47:58]FM_MakeSignedData done [13:47:58]CreateOFDProtocolMessage [13:47:58]wFMCommunicate request_size=4 [13:47:58]MH_SAM_APDU [13:47:58]CAPDU: 80 11 00 00 [13:47:58]Write to MH i2c: E2 08 00 BD 88 80 11 00 00 00 00 00 00 BF [13:47:58]Write i2c OK [13:47:58]MH_I2C_Read... [13:47:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:58]Read from MH i2c: E2 [13:47:58]MH_I2C_Read... [13:47:58]Read from MH i2c: E2 17 00 [13:47:58]MH_I2C_Read... [13:47:58]Read from MH i2c: E2 17 00 BD 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 0C [13:47:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:47:58]wFMCommunicate OK [13:47:58]CreateOFDProtocolMessage done [13:47:58]OFDSenderStorePacket 260709 [13:47:58]StoreOFDPacket docnum=260709 [13:47:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 5B EB 07 01 BA 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 0B 01 00 00 F4 03 04 00 91 FB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 65 FA 03 00 35 04 06 00 C7 9D 2E 2E BF 82 E8 82 8E 3D A4 EC 88 9A [13:47:58]CheckFolder [13:47:58]dirname=/storage/ofd_packets [13:47:58]CheckFolder done [13:47:58]ProducePacketName [13:47:58]name=ofd_packets/00260709 [13:47:58]NVStorageSaveData ofd_packets/00260709 [13:47:58]File name is /storage/ofd_packets/00260709 [13:47:58]Write 301 bytes [13:47:58]NVStorageSaveData done [13:47:58]OFDSenderStorePacket done [13:47:58]KKMCreateOFDPacket done [13:47:58]NVStorageSaveData kkm_last_timestamp [13:47:58]File name is /storage/kkm_last_timestamp [13:47:58]Write 4 bytes [13:47:58]NVStorageSaveData done [13:47:58]ExternCall_PrintAddStr [13:47:58]wPrintStart [13:47:58]Write to MH i2c: 01 00 00 BE 88 46 [13:47:58]Write i2c OK [13:47:58]MH_I2C_Read... [13:47:58]Read from MH i2c: 01 [13:47:58]MH_I2C_Read... [13:47:58]Read from MH i2c: 01 07 00 [13:47:58]MH_I2C_Read... [13:47:58]Read from MH i2c: 01 07 00 BE 88 00 00 00 00 00 FF 0F 5B [13:47:58]RasterBufferAndPrint [13:47:58]line Счет N : (1)1036257 [13:47:58]line ИНН: 02508201610067 [13:47:58]line Контрольно-Кассовый Чек [13:47:58]line ПРОДАЖА [13:47:58]line ТРК (МРК, ГНК) : 12 [13:47:58]line Товар: 2710124130 [13:47:58]line Аи-92-К-5 [13:47:58]line 7.380 * 67.80 [13:47:58]line = 500.36 [13:47:58]line НДС 12% НСП 1% [13:47:58]line > о реализуемом товаре [13:47:58]line ОКРУГЛЕНИЕ: -0.36 [13:47:58]line ИТОГО: 500.00 [13:47:58]line Внесено: 500.00 [13:47:58]line СДАЧА: 0.00 [13:47:58]line НСП 1% : 4.43 [13:47:58]line НДС 12% : 53.14 [13:47:58]line Наличными: 500.00 [13:47:58]line Безнал.: 0.00 [13:47:58]line Место: АЗС № 94 "Партнер Нефть" [13:47:58]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [13:47:58]line СНО: Общий режим [13:47:58]line Чек 267 18.08.2024 13:48 [13:47:58]line Смена: 449 ФФД: 1.0 [13:47:58]line ЗНМ: 0300000099 [13:47:58]line РНМ: 0000000000091865 [13:47:58]line Версия ККМ: 001 [13:47:58]line ФМ: 0000000000871820 [13:47:58]line ФД: 260709 [13:47:58]line ФПД: 219477898608514 [13:47:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T134801&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260709&fm=219477898608514&tin=02508201610067®Number=0000000000091865&sum=50000 [13:47:58]written 0, free lines is 4095 [13:47:58]OFD Sender: Processing packet 260709 [packets to send 192, broken 191] [13:47:58]ProducePacketName [13:47:58]name=ofd_packets/00260709 [13:47:58]OFD Sender: To server: pG, [13:47:58]CommunicateWithHost lk.salyk.kg:30040 [13:47:58]ConnectInit lk.salyk.kg [13:47:58]Connected sock=10 [13:47: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 30 0F 01 00 00 5B EB 07 01 BA 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 0B 01 00 00 F4 03 04 00 91 FB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 65 FA 03 00 35 04 06 00 C7 9D 2E 2E BF 82 E8 82 8E 3D A4 EC 88 9A [13:47:58]Write to MH i2c: 01 00 00 E9 88 71 [13:47:58]Write i2c OK [13:47:58]MH_I2C_Read... [13:47:58]Read from MH i2c: 01 [13:47:58]MH_I2C_Read... [13:47:58]Read from MH i2c: 01 07 00 [13:47:58]MH_I2C_Read... [13:47:58]Read from MH i2c: 01 07 00 E9 88 00 00 00 00 00 6E 0C F2 [13:47:58]RasterBufferAndPrint [13:47:58]line [13:47:58]line [13:47:58]line [13:47:58]line [13:47:58]line [13:47:58]written 0, free lines is 3186 [13:47:58]MH_Cut [13:47:58]Write to MH i2c: D1 01 00 F0 88 01 4A [13:47:58]Write i2c OK [13:47:58]MH_I2C_Read... [13:47:58]Read from MH i2c: D1 [13:47:58]MH_I2C_Read... [13:47:58]Read from MH i2c: D1 01 00 [13:47:58]MH_I2C_Read... [13:47:58]Read from MH i2c: D1 01 00 F0 88 00 49 [13:47:58]Write to MH i2c: 01 00 00 F1 88 79 [13:47:58]Write i2c OK [13:47:58]MH_I2C_Read... [13:47: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 30 4F 00 00 00 66 10 47 00 51 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 30 10 04 04 00 65 FA 03 00 F4 03 04 00 E6 A4 C1 66 B6 04 01 00 00 54 E5 14 07 C7 EE 6F EA [13:47:58]CommunicateWithHost err = 0 [13:47:58]CheckOFDResponse [13:47:58]1017 (14) - 77093643461234 [13:47:58]1041 (16) - 0000000000871820 [13:47:58]1040 (4) - 260709 [13:47:58]1012 (4) - 18.08.2024 07:38 [13:47:58]1206 (1) - 0 [13:47:58]OFD Sender: Remove packet 260709 [13:47:58]ProducePacketName [13:47:58]name=ofd_packets/00260709 [13:47:58]NVStorageDeleteData [13:47:59]OFD Sender: No OFD packet to send [13:47:59]*** Cut start [13:47:59]*** Purtial cut [13:47:59]*** Stage 1: CUTSNS_PIN = 1 [13:48:01]Read from MH i2c: 01 [13:48:01]MH_I2C_Read... [13:48:01]*** Stop cut motor [13:48:01]*** Cut end [13:48:01]Read from MH i2c: 01 07 00 [13:48:01]MH_I2C_Read... [13:48:01]Read from MH i2c: 01 07 00 F1 88 00 00 00 00 00 FF 0F 8E [13:48:01]process_action close_receipt done [13:48:01]requested_data is exist [13:48:01]produce_requested_data [13:48:01]requested_item fm.sn is exist - process it [13:48:01]wFMCommunicate request_size=4 [13:48:01]MH_SAM_APDU [13:48:01]CAPDU: 80 11 00 00 [13:48:01]Write to MH i2c: E2 08 00 F2 88 80 11 00 00 00 00 00 00 F4 [13:48:01]Write i2c OK [13:48:01]MH_I2C_Read... [13:48:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:01]Read from MH i2c: E2 [13:48:01]MH_I2C_Read... [13:48:01]Read from MH i2c: E2 17 00 [13:48:01]MH_I2C_Read... [13:48:01]Read from MH i2c: E2 17 00 F2 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 41 [13:48:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:48:01]wFMCommunicate OK [13:48:01]requested_item fd.num is exist - process it [13:48:01]SAM_PROTO_GetFieldsCounters [13:48:01]wFMCommunicate request_size=4 [13:48:02]MH_SAM_APDU [13:48:02]CAPDU: 80 13 00 00 [13:48:02]Write to MH i2c: E2 08 00 F3 88 80 13 00 00 00 00 00 00 F7 [13:48:02]Write i2c OK [13:48:02]MH_I2C_Read... [13:48:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:48:02]Read from MH i2c: E2 [13:48:02]MH_I2C_Read... [13:48:02]Read from MH i2c: E2 62 00 [13:48:02]MH_I2C_Read... [13:48:02]Read from MH i2c: E2 62 00 F3 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 65 FA 03 00 0E 04 04 00 C1 01 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 5E [13:48: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 65 FA 03 00 0E 04 04 00 C1 01 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 [13:48:02]wFMCommunicate OK [13:48:02]SAM_PROTO_GetFieldsCounters done [13:48:02]requested_item shift.num is exist - process it [13:48:02]requested_item shift.opened is exist - process it [13:48:02]req_shift_opened [13:48:02]FM_GetShiftState [13:48:02]SAM_PROTO_GetShiftState [13:48:02]wFMCommunicate request_size=4 [13:48:02]MH_SAM_APDU [13:48:02]CAPDU: 80 13 01 00 [13:48:02]Write to MH i2c: E2 08 00 F4 88 80 13 01 00 00 00 00 00 F9 [13:48:02]Write i2c OK [13:48:02]MH_I2C_Read... [13:48:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:02]Read from MH i2c: E2 [13:48:02]MH_I2C_Read... [13:48:02]Read from MH i2c: E2 0E 00 [13:48:02]MH_I2C_Read... [13:48:02]Read from MH i2c: E2 0E 00 F4 88 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 36 [13:48:02]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:48:02]wFMCommunicate OK [13:48:02]SAM_PROTO_GetShiftState done [13:48:02]FM_GetShiftState done [13:48:02]req_shift_opened done [13:48:02]requested_item shift.open_date is exist - process it [13:48:02]req_shift_open_date [13:48:02]req_shift_open_date done [13:48:02]produce_requested_data done [13:48:02]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260709,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [13:48:02]process_action_free close_receipt [13:48:02]json_value_free [13:48:02]json_value_free done [13:48:02]process_json_proto returns [13:48:02]Send response to host [13:48:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260709,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [13:48:02]free response buf [13:48:02]execute_script done [13:48:02]execute_script returns [13:48:02]free content buf [13:48:02]Sock 9.Close socket [13:48:02]Sock 9.Thread stoped [13:48:04]OFD Sender: No OFD packet to send [13:48:09]OFD Sender: No OFD packet to send [13:48:14]OFD Sender: No OFD packet to send [13:48:19]OFD Sender: No OFD packet to send [13:48:24]OFD Sender: No OFD packet to send [13:48:29]OFD Sender: No OFD packet to send [13:48:34]OFD Sender: No OFD packet to send [13:48:39]OFD Sender: No OFD packet to send [13:48:44]OFD Sender: No OFD packet to send [13:48:49]OFD Sender: No OFD packet to send [13:48:54]OFD Sender: No OFD packet to send [13:48:59]OFD Sender: No OFD packet to send [13:49:04]OFD Sender: No OFD packet to send [13:49:09]OFD Sender: No OFD packet to send [13:49:14]OFD Sender: No OFD packet to send [13:49:19]OFD Sender: No OFD packet to send [13:49:24]OFD Sender: No OFD packet to send [13:49:29]OFD Sender: No OFD packet to send [13:49:34]OFD Sender: No OFD packet to send [13:49:39]OFD Sender: No OFD packet to send [13:49:41]accept exits with 7 [13:49:41]New connection [13:49:41]New thread 3066473828 created [13:49:41]Thread 3066617188 joined [13:49:41]Waiting for new connection... [13:49:41] Sock 7.Parse request [13:49:41]Sock 7.Check first char [13:49:41]Sock 7.First char is OK [13:49:41]request: POST /json_proto HTTP/1.0 [13:49:41]Method: POST [13:49:41]URL: /json_proto [13:49:41]Method is POST - this is cgi request [13:49:41]url: /json_proto [13:49:41]query_string will be loaded in cgi processing [13:49:41]execute_cgi json_proto POST (null) [13:49:41]execute_cgi path=json_proto method=POST [13:49:41]POST find Content-Length [13:49:41]Host: 172.17.55.133:8080 [13:49:41]Content-Length: 679 [13:49:41]Content-Type: application/json [13:49:41] [13:49:41]POST finish read [13:49:41]Found Content-Length = 679 [13:49:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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:49:41]execute_script... [13:49: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)1036258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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:49:41]POST & json_proto [13:49:41]process_json_proto [13:49:41]json parsed OK: [13:49:41]protocol is kg_v1.0 [13:49:41]action value=close_receipt [13:49:41]process_action close_receipt [13:49:41]cmd_close_receipt [13:49:41]MH_GetDate [13:49:41]Write to MH i2c: F0 00 00 F5 88 6C [13:49:41]Write i2c OK [13:49:41]MH_I2C_Read... [13:49:41]Read from MH i2c: F0 [13:49:41]MH_I2C_Read... [13:49:41]Read from MH i2c: F0 09 00 [13:49:41]MH_I2C_Read... [13:49:41]Read from MH i2c: F0 09 00 F5 88 00 FA FB C1 66 34 48 D8 65 4A [13:49:41]GetLastDocTimeStamp 1723988881 [13:49:41]current date 1723988986 [13:49:41]FM_GetShiftState [13:49:41]SAM_PROTO_GetShiftState [13:49:41]wFMCommunicate request_size=4 [13:49:41]MH_SAM_APDU [13:49:41]CAPDU: 80 13 01 00 [13:49:41]Write to MH i2c: E2 08 00 F6 88 80 13 01 00 00 00 00 00 FB [13:49:41]Write i2c OK [13:49:41]MH_I2C_Read... [13:49:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:41]Read from MH i2c: E2 [13:49:41]MH_I2C_Read... [13:49:41]Read from MH i2c: E2 0E 00 [13:49:41]MH_I2C_Read... [13:49:41]Read from MH i2c: E2 0E 00 F6 88 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 38 [13:49:41]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:49:41]wFMCommunicate OK [13:49:41]SAM_PROTO_GetShiftState done [13:49:41]FM_GetShiftState done [13:49:41]opened in 1723940556 [13:49:41]opened+sec_in_day 1724026956 [13:49:41]quantity*price = 70037 [13:49:41]sum+1 = 70038 [13:49:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 268 18.08.2024 13:49 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260710 ФПД: 140816098983422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T134946&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260710&fm=140816098983422&tin=02508201610067®Number=0000000000091865&sum=70000 [13:49:42]StoreToDocumentArchive [13:49:42]shift 449 fd 260710 [13:49:42]save to /storage/0449/doc_00260710 [13:49:42]save last doc name /storage/0449/doc_00260710 to /storage/kkm_last_doc_name [13:49:42]save OK [13:49:42]Clear old archive folders... [13:49:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:49:42]tlvbuf is 004A46D0 [13:49:42]SAM_PROTO_ClearQueue [13:49:42]wFMCommunicate request_size=4 [13:49:42]MH_SAM_APDU [13:49:42]CAPDU: 80 09 00 00 [13:49:42]Write to MH i2c: E2 08 00 03 89 80 09 00 00 00 00 00 00 FE [13:49:42]Write i2c OK [13:49:42]MH_I2C_Read... [13:49:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:49:42]Read from MH i2c: E2 [13:49:42]MH_I2C_Read... [13:49:42]Read from MH i2c: E2 03 00 [13:49:42]MH_I2C_Read... [13:49:42]Read from MH i2c: E2 03 00 03 89 00 90 00 00 [13:49:42]RAPDU: 90 00 [13:49:42]wFMCommunicate OK [13:49:42]SAM_PROTO_ClearQueue done [13:49:42]KKMCreateOFDPacket [13:49:42]OFDProtocolAddRootSTLVToBuf [13:49:42]FM_MakeSignedData [13:49:42]FM_MakeSignedData [13:49:42]SAM_PROTO_SignData [13:49:42]wFMCommunicate request_size=4 [13:49:42]MH_SAM_APDU [13:49:42]CAPDU: 80 0D 01 02 [13:49:42]Write to MH i2c: E2 08 00 04 89 80 0D 01 02 00 00 00 00 06 [13:49:42]Write i2c OK [13:49:42]MH_I2C_Read... [13:49:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:49:42]Read from MH i2c: E2 [13:49:42]MH_I2C_Read... [13:49:42]Read from MH i2c: E2 03 00 [13:49:42]MH_I2C_Read... [13:49:42]Read from MH i2c: E2 03 00 04 89 00 90 00 01 [13:49:42]RAPDU: 90 00 [13:49:42]wFMCommunicate OK [13:49:42]wFMCommunicate request_size=255 [13:49:42]MH_SAM_APDU [13:49:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0C 01 00 00 F4 03 04 00 FA FB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 66 FA 03 00 35 04 06 00 80 [13:49:42]Write to MH i2c: E2 02 01 05 89 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0C 01 00 00 F4 03 04 00 FA FB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 66 FA 03 00 35 04 06 00 80 00 00 38 [13:49:42]Write i2c OK [13:49:42]MH_I2C_Read... [13:49:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:43]Read from MH i2c: E2 [13:49:43]MH_I2C_Read... [13:49:43]Read from MH i2c: E2 03 00 [13:49:43]MH_I2C_Read... [13:49:43]Read from MH i2c: E2 03 00 05 89 00 90 00 02 [13:49:43]RAPDU: 90 00 [13:49:43]wFMCommunicate OK [13:49:43]wFMCommunicate request_size=10 [13:49:43]MH_SAM_APDU [13:49:43]CAPDU: 80 0D 02 02 05 12 4D 8E FD FE [13:49:43]Write to MH i2c: E2 0D 00 06 89 80 0D 02 02 05 00 12 4D 8E FD FE 00 00 FB [13:49:43]Write i2c OK [13:49:43]MH_I2C_Read... [13:49:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:43]Read from MH i2c: E2 [13:49:43]MH_I2C_Read... [13:49:43]Read from MH i2c: E2 03 00 [13:49:43]MH_I2C_Read... [13:49:43]Read from MH i2c: E2 03 00 06 89 00 90 00 03 [13:49:43]RAPDU: 90 00 [13:49:43]wFMCommunicate OK [13:49:43]wFMCommunicate request_size=4 [13:49:43]MH_SAM_APDU [13:49:43]CAPDU: 80 0D 03 02 [13:49:43]Write to MH i2c: E2 08 00 07 89 80 0D 03 02 00 00 00 00 0B [13:49:43]Write i2c OK [13:49:43]MH_I2C_Read... [13:49:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:49:43]Read from MH i2c: E2 [13:49:43]MH_I2C_Read... [13:49:43]Read from MH i2c: E2 0B 00 [13:49:43]MH_I2C_Read... [13:49:43]Read from MH i2c: E2 0B 00 07 89 00 C4 CC 47 6B C3 B9 3E 7B 90 00 83 [13:49:43]RAPDU: C4 CC 47 6B C3 B9 3E 7B 90 00 [13:49:43]wFMCommunicate OK [13:49:43]SAM_PROTO_SignData done [13:49:43]FM_MakeSignedData done [13:49:43]CreateOFDProtocolMessage [13:49:43]wFMCommunicate request_size=4 [13:49:43]MH_SAM_APDU [13:49:43]CAPDU: 80 11 00 00 [13:49:43]Write to MH i2c: E2 08 00 08 89 80 11 00 00 00 00 00 00 0B [13:49:43]Write i2c OK [13:49:43]MH_I2C_Read... [13:49:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:43]Read from MH i2c: E2 [13:49:43]MH_I2C_Read... [13:49:43]Read from MH i2c: E2 17 00 [13:49:43]MH_I2C_Read... [13:49:43]Read from MH i2c: E2 17 00 08 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 58 [13:49:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:49:43]wFMCommunicate OK [13:49:43]CreateOFDProtocolMessage done [13:49:43]OFDSenderStorePacket 260710 [13:49:43]StoreOFDPacket docnum=260710 [13:49:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 3D 95 07 01 37 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 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0C 01 00 00 F4 03 04 00 FA FB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 66 FA 03 00 35 04 06 00 80 12 4D 8E FD FE C4 CC 47 6B C3 B9 3E 7B [13:49:43]CheckFolder [13:49:43]dirname=/storage/ofd_packets [13:49:43]CheckFolder done [13:49:43]ProducePacketName [13:49:43]name=ofd_packets/00260710 [13:49:43]NVStorageSaveData ofd_packets/00260710 [13:49:43]File name is /storage/ofd_packets/00260710 [13:49:43]Write 301 bytes [13:49:43]NVStorageSaveData done [13:49:43]OFDSenderStorePacket done [13:49:43]KKMCreateOFDPacket done [13:49:43]NVStorageSaveData kkm_last_timestamp [13:49:43]File name is /storage/kkm_last_timestamp [13:49:43]Write 4 bytes [13:49:43]NVStorageSaveData done [13:49:43]ExternCall_PrintAddStr [13:49:43]wPrintStart [13:49:43]Write to MH i2c: 01 00 00 09 89 92 [13:49:43]Write i2c OK [13:49:43]MH_I2C_Read... [13:49:43]Read from MH i2c: 01 [13:49:43]MH_I2C_Read... [13:49:43]Read from MH i2c: 01 07 00 [13:49:43]MH_I2C_Read... [13:49:43]Read from MH i2c: 01 07 00 09 89 00 00 00 00 00 FF 0F A7 [13:49:43]RasterBufferAndPrint [13:49:43]line Счет N : (1)1036258 [13:49:43]line ИНН: 02508201610067 [13:49:43]line Контрольно-Кассовый Чек [13:49:43]line ПРОДАЖА [13:49:43]line ТРК (МРК, ГНК) : 32 [13:49:43]line Товар: 2710124130 [13:49:43]line Аи-92-К-5 [13:49:43]line 10.330 * 67.80 [13:49:43]line = 700.37 [13:49:43]line НДС 12% НСП 1% [13:49:43]line > о реализуемом товаре [13:49:43]line ОКРУГЛЕНИЕ: -0.37 [13:49:43]line ИТОГО: 700.00 [13:49:43]line Внесено: 700.00 [13:49:43]line СДАЧА: 0.00 [13:49:43]line НСП 1% : 6.20 [13:49:43]line НДС 12% : 74.38 [13:49:43]line Наличными: 700.00 [13:49:43]line Безнал.: 0.00 [13:49:43]line Место: АЗС № 94 "Партнер Нефть" [13:49:43]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [13:49:43]line СНО: Общий режим [13:49:43]line Чек 268 18.08.2024 13:49 [13:49:43]line Смена: 449 ФФД: 1.0 [13:49:43]line ЗНМ: 0300000099 [13:49:43]line РНМ: 0000000000091865 [13:49:43]line Версия ККМ: 001 [13:49:43]line ФМ: 0000000000871820 [13:49:43]line ФД: 260710 [13:49:43]line ФПД: 140816098983422 [13:49:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T134946&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260710&fm=140816098983422&tin=02508201610067®Number=0000000000091865&sum=70000 [13:49:43]written 0, free lines is 4095 [13:49:43]OFD Sender: Processing packet 260710 [packets to send 192, broken 191] [13:49:43]ProducePacketName [13:49:43]name=ofd_packets/00260710 [13:49:43]OFD Sender: To server: pG, [13:49:43]CommunicateWithHost lk.salyk.kg:30040 [13:49:43]ConnectInit lk.salyk.kg [13:49:43]Connected sock=10 [13:49: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 30 0F 01 00 00 3D 95 07 01 37 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 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0C 01 00 00 F4 03 04 00 FA FB C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 66 FA 03 00 35 04 06 00 80 12 4D 8E FD FE C4 CC 47 6B C3 B9 3E 7B [13:49: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 30 4F 00 00 00 3C 1C 47 00 70 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 66 FA 03 00 F4 03 04 00 4F A5 C1 66 B6 04 01 00 00 E2 E3 46 81 92 99 D7 9C [13:49:43]CommunicateWithHost err = 0 [13:49:43]CheckOFDResponse [13:49:43]1017 (14) - 77093643461234 [13:49:43]1041 (16) - 0000000000871820 [13:49:43]1040 (4) - 260710 [13:49:43]1012 (4) - 18.08.2024 07:39 [13:49:43]1206 (1) - 0 [13:49:43]OFD Sender: Remove packet 260710 [13:49:43]ProducePacketName [13:49:43]name=ofd_packets/00260710 [13:49:43]NVStorageDeleteData [13:49:44]Write to MH i2c: 01 00 00 34 89 BD [13:49:44]Write i2c OK [13:49:44]MH_I2C_Read... [13:49:44]Read from MH i2c: 01 [13:49:44]MH_I2C_Read... [13:49:44]Read from MH i2c: 01 07 00 [13:49:44]MH_I2C_Read... [13:49:44]Read from MH i2c: 01 07 00 34 89 00 00 00 00 00 66 0C 36 [13:49:44]RasterBufferAndPrint [13:49:44]line [13:49:44]line [13:49:44]line [13:49:44]line [13:49:44]line [13:49:44]written 0, free lines is 3179 [13:49:44]MH_Cut [13:49:44]Write to MH i2c: D1 01 00 3B 89 01 96 [13:49:44]Write i2c OK [13:49:44]MH_I2C_Read... [13:49:44]Read from MH i2c: D1 [13:49:44]MH_I2C_Read... [13:49:44]Read from MH i2c: D1 01 00 [13:49:44]MH_I2C_Read... [13:49:44]Read from MH i2c: D1 01 00 3B 89 00 95 [13:49:44]Write to MH i2c: 01 00 00 3C 89 C5 [13:49:44]Write i2c OK [13:49:44]MH_I2C_Read... [13:49:44]OFD Sender: No OFD packet to send [13:49:45]*** Cut start [13:49:45]*** Purtial cut [13:49:45]*** Stage 1: CUTSNS_PIN = 1 [13:49:47]Read from MH i2c: 01 [13:49:47]MH_I2C_Read... [13:49:47]*** Stop cut motor [13:49:47]*** Cut end [13:49:47]Read from MH i2c: 01 07 00 [13:49:47]MH_I2C_Read... [13:49:47]Read from MH i2c: 01 07 00 3C 89 00 00 00 00 00 FF 0F DA [13:49:47]process_action close_receipt done [13:49:47]requested_data is exist [13:49:47]produce_requested_data [13:49:47]requested_item fm.sn is exist - process it [13:49:47]wFMCommunicate request_size=4 [13:49:47]MH_SAM_APDU [13:49:47]CAPDU: 80 11 00 00 [13:49:47]Write to MH i2c: E2 08 00 3D 89 80 11 00 00 00 00 00 00 40 [13:49:47]Write i2c OK [13:49:47]MH_I2C_Read... [13:49:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:47]Read from MH i2c: E2 [13:49:47]MH_I2C_Read... [13:49:47]Read from MH i2c: E2 17 00 [13:49:47]MH_I2C_Read... [13:49:47]Read from MH i2c: E2 17 00 3D 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 8D [13:49:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:49:47]wFMCommunicate OK [13:49:47]requested_item fd.num is exist - process it [13:49:47]SAM_PROTO_GetFieldsCounters [13:49:47]wFMCommunicate request_size=4 [13:49:47]MH_SAM_APDU [13:49:47]CAPDU: 80 13 00 00 [13:49:47]Write to MH i2c: E2 08 00 3E 89 80 13 00 00 00 00 00 00 43 [13:49:47]Write i2c OK [13:49:47]MH_I2C_Read... [13:49:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:49:47]Read from MH i2c: E2 [13:49:47]MH_I2C_Read... [13:49:47]Read from MH i2c: E2 62 00 [13:49:47]MH_I2C_Read... [13:49:47]Read from MH i2c: E2 62 00 3E 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 66 FA 03 00 0E 04 04 00 C1 01 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 AE [13:49: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 66 FA 03 00 0E 04 04 00 C1 01 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 [13:49:47]wFMCommunicate OK [13:49:47]SAM_PROTO_GetFieldsCounters done [13:49:47]requested_item shift.num is exist - process it [13:49:47]requested_item shift.opened is exist - process it [13:49:47]req_shift_opened [13:49:47]FM_GetShiftState [13:49:47]SAM_PROTO_GetShiftState [13:49:47]wFMCommunicate request_size=4 [13:49:47]MH_SAM_APDU [13:49:47]CAPDU: 80 13 01 00 [13:49:47]Write to MH i2c: E2 08 00 3F 89 80 13 01 00 00 00 00 00 45 [13:49:47]Write i2c OK [13:49:47]MH_I2C_Read... [13:49:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:47]Read from MH i2c: E2 [13:49:47]MH_I2C_Read... [13:49:47]Read from MH i2c: E2 0E 00 [13:49:47]MH_I2C_Read... [13:49:47]Read from MH i2c: E2 0E 00 3F 89 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 82 [13:49:47]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:49:47]wFMCommunicate OK [13:49:47]SAM_PROTO_GetShiftState done [13:49:47]FM_GetShiftState done [13:49:47]req_shift_opened done [13:49:47]requested_item shift.open_date is exist - process it [13:49:47]req_shift_open_date [13:49:47]req_shift_open_date done [13:49:47]produce_requested_data done [13:49:47]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260710,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [13:49:47]process_action_free close_receipt [13:49:47]json_value_free [13:49:47]json_value_free done [13:49:47]process_json_proto returns [13:49:47]Send response to host [13:49:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260710,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [13:49:47]free response buf [13:49:47]execute_script done [13:49:47]execute_script returns [13:49:47]free content buf [13:49:47]Sock 7.Close socket [13:49:47]Sock 7.Thread stoped [13:49:49]OFD Sender: No OFD packet to send [13:49:54]OFD Sender: No OFD packet to send [13:49:59]OFD Sender: No OFD packet to send [13:50:04]OFD Sender: No OFD packet to send [13:50:09]OFD Sender: No OFD packet to send [13:50:14]OFD Sender: No OFD packet to send [13:50:19]OFD Sender: No OFD packet to send [13:50:24]OFD Sender: No OFD packet to send [13:50:29]OFD Sender: No OFD packet to send [13:50:34]OFD Sender: No OFD packet to send [13:50:39]OFD Sender: No OFD packet to send [13:50:44]OFD Sender: No OFD packet to send [13:50:49]OFD Sender: No OFD packet to send [13:50:54]OFD Sender: No OFD packet to send [13:50:59]OFD Sender: No OFD packet to send [13:51:04]OFD Sender: No OFD packet to send [13:51:09]OFD Sender: No OFD packet to send [13:51:14]OFD Sender: No OFD packet to send [13:51:19]OFD Sender: No OFD packet to send [13:51:24]OFD Sender: No OFD packet to send [13:51:29]OFD Sender: No OFD packet to send [13:51:34]OFD Sender: No OFD packet to send [13:51:39]OFD Sender: No OFD packet to send [13:51:44]OFD Sender: No OFD packet to send [13:51:49]OFD Sender: No OFD packet to send [13:51:54]OFD Sender: No OFD packet to send [13:51:59]OFD Sender: No OFD packet to send [13:52:04]OFD Sender: No OFD packet to send [13:52:09]OFD Sender: No OFD packet to send [13:52:14]OFD Sender: No OFD packet to send [13:52:19]OFD Sender: No OFD packet to send [13:52:24]OFD Sender: No OFD packet to send [13:52:29]OFD Sender: No OFD packet to send [13:52:34]OFD Sender: No OFD packet to send [13:52:39]OFD Sender: No OFD packet to send [13:52:44]OFD Sender: No OFD packet to send [13:52:49]OFD Sender: No OFD packet to send [13:52:54]OFD Sender: No OFD packet to send [13:52:59]OFD Sender: No OFD packet to send [13:53:04]OFD Sender: No OFD packet to send [13:53:09]OFD Sender: No OFD packet to send [13:53:14]OFD Sender: No OFD packet to send [13:53:19]OFD Sender: No OFD packet to send [13:53:24]OFD Sender: No OFD packet to send [13:53:29]OFD Sender: No OFD packet to send [13:53:34]OFD Sender: No OFD packet to send [13:53:39]OFD Sender: No OFD packet to send [13:53:44]OFD Sender: No OFD packet to send [13:53:49]OFD Sender: No OFD packet to send [13:53:54]OFD Sender: No OFD packet to send [13:53:59]OFD Sender: No OFD packet to send [13:54:04]OFD Sender: No OFD packet to send [13:54:09]OFD Sender: No OFD packet to send [13:54:11]accept exits with 9 [13:54:11]New connection [13:54:11]New thread 3066617188 created [13:54:11]Thread 3066473828 joined [13:54:11]Waiting for new connection... [13:54:11] Sock 9.Parse request [13:54:11]Sock 9.Check first char [13:54:11]Sock 9.First char is OK [13:54:11]request: POST /json_proto HTTP/1.0 [13:54:11]Method: POST [13:54:11]URL: /json_proto [13:54:11]Method is POST - this is cgi request [13:54:11]url: /json_proto [13:54:11]query_string will be loaded in cgi processing [13:54:11]execute_cgi json_proto POST (null) [13:54:11]execute_cgi path=json_proto method=POST [13:54:11]POST find Content-Length [13:54:11]Host: 172.17.55.133:8080 [13:54:11]Content-Length: 818 [13:54:11]Content-Type: application/json [13:54:11] [13:54:11]POST finish read [13:54:11]Found Content-Length = 818 [13:54:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 800.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:11]execute_script... [13:54: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)1036259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 800.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:11]POST & json_proto [13:54:11]process_json_proto [13:54:11]json parsed OK: [13:54:11]protocol is kg_v1.0 [13:54:11]action value=close_receipt [13:54:11]process_action close_receipt [13:54:11]cmd_close_receipt [13:54:11]MH_GetDate [13:54:11]Write to MH i2c: F0 00 00 40 89 B8 [13:54:11]Write i2c OK [13:54:11]MH_I2C_Read... [13:54:11]Read from MH i2c: F0 [13:54:11]MH_I2C_Read... [13:54:11]Read from MH i2c: F0 09 00 [13:54:11]MH_I2C_Read... [13:54:11]Read from MH i2c: F0 09 00 40 89 00 08 FD C1 66 34 48 D8 65 A6 [13:54:11]GetLastDocTimeStamp 1723988986 [13:54:11]current date 1723989256 [13:54:11]FM_GetShiftState [13:54:11]SAM_PROTO_GetShiftState [13:54:11]wFMCommunicate request_size=4 [13:54:11]MH_SAM_APDU [13:54:11]CAPDU: 80 13 01 00 [13:54:11]Write to MH i2c: E2 08 00 41 89 80 13 01 00 00 00 00 00 47 [13:54:11]Write i2c OK [13:54:11]MH_I2C_Read... [13:54:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:11]Read from MH i2c: E2 [13:54:11]MH_I2C_Read... [13:54:11]Read from MH i2c: E2 0E 00 [13:54:11]MH_I2C_Read... [13:54:11]Read from MH i2c: E2 0E 00 41 89 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 84 [13:54:11]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:54:11]wFMCommunicate OK [13:54:11]SAM_PROTO_GetShiftState done [13:54:11]FM_GetShiftState done [13:54:11]opened in 1723940556 [13:54:11]opened+sec_in_day 1724026956 [13:54:11]quantity*price = 80004 [13:54:11]sum+1 = 80005 [13:54:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.04 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 0.00 Безнал.: 800.04 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 269 18.08.2024 13:54 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871820 ФД: 260711 ФПД: 240077908975423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T135416&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260711&fm=240077908975423&tin=02508201610067®Number=0000000000091865&sum=80004 [13:54:12]StoreToDocumentArchive [13:54:12]shift 449 fd 260711 [13:54:12]save to /storage/0449/doc_00260711 [13:54:12]save last doc name /storage/0449/doc_00260711 to /storage/kkm_last_doc_name [13:54:12]save OK [13:54:12]Clear old archive folders... [13:54:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:54:12]tlvbuf is 003E9250 [13:54:12]SAM_PROTO_ClearQueue [13:54:12]wFMCommunicate request_size=4 [13:54:12]MH_SAM_APDU [13:54:12]CAPDU: 80 09 00 00 [13:54:12]Write to MH i2c: E2 08 00 4E 89 80 09 00 00 00 00 00 00 49 [13:54:12]Write i2c OK [13:54:12]MH_I2C_Read... [13:54:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:54:12]Read from MH i2c: E2 [13:54:12]MH_I2C_Read... [13:54:12]Read from MH i2c: E2 03 00 [13:54:12]MH_I2C_Read... [13:54:12]Read from MH i2c: E2 03 00 4E 89 00 90 00 4B [13:54:12]RAPDU: 90 00 [13:54:12]wFMCommunicate OK [13:54:12]SAM_PROTO_ClearQueue done [13:54:12]KKMCreateOFDPacket [13:54:12]OFDProtocolAddRootSTLVToBuf [13:54:12]FM_MakeSignedData [13:54:12]FM_MakeSignedData [13:54:12]SAM_PROTO_SignData [13:54:12]wFMCommunicate request_size=4 [13:54:12]MH_SAM_APDU [13:54:12]CAPDU: 80 0D 01 02 [13:54:12]Write to MH i2c: E2 08 00 4F 89 80 0D 01 02 00 00 00 00 51 [13:54:12]Write i2c OK [13:54:12]MH_I2C_Read... [13:54:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:54:12]Read from MH i2c: E2 [13:54:12]MH_I2C_Read... [13:54:12]Read from MH i2c: E2 03 00 [13:54:12]MH_I2C_Read... [13:54:12]Read from MH i2c: E2 03 00 4F 89 00 90 00 4C [13:54:12]RAPDU: 90 00 [13:54:12]wFMCommunicate OK [13:54:12]wFMCommunicate request_size=255 [13:54:12]MH_SAM_APDU [13:54:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 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 00 00 00 00 00 00 39 04 06 00 84 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 08 FD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 67 FA 03 00 35 04 06 00 DA [13:54:12]Write to MH i2c: E2 02 01 50 89 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 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 00 00 00 00 00 00 39 04 06 00 84 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 08 FD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 67 FA 03 00 35 04 06 00 DA 00 00 BD [13:54:12]Write i2c OK [13:54:12]MH_I2C_Read... [13:54:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:13]Read from MH i2c: E2 [13:54:13]MH_I2C_Read... [13:54:13]Read from MH i2c: E2 03 00 [13:54:13]MH_I2C_Read... [13:54:13]Read from MH i2c: E2 03 00 50 89 00 90 00 4D [13:54:13]RAPDU: 90 00 [13:54:13]wFMCommunicate OK [13:54:13]wFMCommunicate request_size=10 [13:54:13]MH_SAM_APDU [13:54:13]CAPDU: 80 0D 02 02 05 59 7E 7B 9F 3F [13:54:13]Write to MH i2c: E2 0D 00 51 89 80 0D 02 02 05 00 59 7E 7B 9F 3F 00 00 8E [13:54:13]Write i2c OK [13:54:13]MH_I2C_Read... [13:54:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:13]Read from MH i2c: E2 [13:54:13]MH_I2C_Read... [13:54:13]Read from MH i2c: E2 03 00 [13:54:13]MH_I2C_Read... [13:54:13]Read from MH i2c: E2 03 00 51 89 00 90 00 4E [13:54:13]RAPDU: 90 00 [13:54:13]wFMCommunicate OK [13:54:13]wFMCommunicate request_size=4 [13:54:13]MH_SAM_APDU [13:54:13]CAPDU: 80 0D 03 02 [13:54:13]Write to MH i2c: E2 08 00 52 89 80 0D 03 02 00 00 00 00 56 [13:54:13]Write i2c OK [13:54:13]MH_I2C_Read... [13:54:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:54:13]Read from MH i2c: E2 [13:54:13]MH_I2C_Read... [13:54:13]Read from MH i2c: E2 0B 00 [13:54:13]MH_I2C_Read... [13:54:13]Read from MH i2c: E2 0B 00 52 89 00 35 C4 DD C1 DA DD BA 02 90 00 61 [13:54:13]RAPDU: 35 C4 DD C1 DA DD BA 02 90 00 [13:54:13]wFMCommunicate OK [13:54:13]SAM_PROTO_SignData done [13:54:13]FM_MakeSignedData done [13:54:13]CreateOFDProtocolMessage [13:54:13]wFMCommunicate request_size=4 [13:54:13]MH_SAM_APDU [13:54:13]CAPDU: 80 11 00 00 [13:54:13]Write to MH i2c: E2 08 00 53 89 80 11 00 00 00 00 00 00 56 [13:54:13]Write i2c OK [13:54:13]MH_I2C_Read... [13:54:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:13]Read from MH i2c: E2 [13:54:13]MH_I2C_Read... [13:54:13]Read from MH i2c: E2 17 00 [13:54:13]MH_I2C_Read... [13:54:13]Read from MH i2c: E2 17 00 53 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A3 [13:54:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:54:13]wFMCommunicate OK [13:54:13]CreateOFDProtocolMessage done [13:54:13]OFDSenderStorePacket 260711 [13:54:13]StoreOFDPacket docnum=260711 [13:54:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 A1 14 07 01 A2 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 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 00 00 00 00 00 00 39 04 06 00 84 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 08 FD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 67 FA 03 00 35 04 06 00 DA 59 7E 7B 9F 3F 35 C4 DD C1 DA DD BA 02 [13:54:13]CheckFolder [13:54:13]dirname=/storage/ofd_packets [13:54:13]CheckFolder done [13:54:13]ProducePacketName [13:54:13]name=ofd_packets/00260711 [13:54:13]NVStorageSaveData ofd_packets/00260711 [13:54:13]File name is /storage/ofd_packets/00260711 [13:54:13]Write 301 bytes [13:54:13]NVStorageSaveData done [13:54:13]OFDSenderStorePacket done [13:54:13]KKMCreateOFDPacket done [13:54:13]NVStorageSaveData kkm_last_timestamp [13:54:13]File name is /storage/kkm_last_timestamp [13:54:13]Write 4 bytes [13:54:13]NVStorageSaveData done [13:54:13]ExternCall_PrintAddStr [13:54:13]wPrintStart [13:54:13]Write to MH i2c: 01 00 00 54 89 DD [13:54:13]Write i2c OK [13:54:13]MH_I2C_Read... [13:54:13]Read from MH i2c: 01 [13:54:13]MH_I2C_Read... [13:54:13]Read from MH i2c: 01 07 00 [13:54:13]MH_I2C_Read... [13:54:13]Read from MH i2c: 01 07 00 54 89 00 00 00 00 00 FF 0F F2 [13:54:13]RasterBufferAndPrint [13:54:13]line Счет N : (1)1036259 [13:54:13]line ИНН: 02508201610067 [13:54:13]line Контрольно-Кассовый Чек [13:54:13]line ПРОДАЖА [13:54:13]line ТРК (МРК, ГНК) : 12 [13:54:13]line Товар: 2710124130 [13:54:13]line Аи-92-К-5 [13:54:13]line 11.800 * 67.80 [13:54:13]line = 800.04 [13:54:13]line НДС 12% НСП 1% [13:54:13]line > о реализуемом товаре [13:54:13]line ИТОГО: 800.04 [13:54:13]line НСП 1% : 7.08 [13:54:13]line НДС 12% : 84.96 [13:54:13]line Наличными: 0.00 [13:54:13]line Безнал.: 800.04 [13:54:13]line Место: АЗС № 94 "Партнер Нефть" [13:54:13]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [13:54:13]line СНО: Общий режим [13:54:13]line Чек 269 18.08.2024 13:54 [13:54:13]line Смена: 449 ФФД: 1.0 [13:54:13]line ЗНМ: 0300000099 [13:54:13]line РНМ: 0000000000091865 [13:54:13]line Версия ККМ: 001 [13:54:13]line Платежная система: Бакай Банк [13:54:13]line ФМ: 0000000000871820 [13:54:13]line ФД: 260711 [13:54:13]line ФПД: 240077908975423 [13:54:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T135416&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260711&fm=240077908975423&tin=02508201610067®Number=0000000000091865&sum=80004 [13:54:13]written 0, free lines is 4095 [13:54:13]OFD Sender: Processing packet 260711 [packets to send 192, broken 191] [13:54:13]ProducePacketName [13:54:13]name=ofd_packets/00260711 [13:54:13]OFD Sender: To server: pG, [13:54:13]CommunicateWithHost lk.salyk.kg:30040 [13:54:13]ConnectInit lk.salyk.kg [13:54:13]Connected sock=10 [13:54: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 30 0F 01 00 00 A1 14 07 01 A2 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 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 00 00 00 00 00 00 39 04 06 00 84 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 08 FD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 67 FA 03 00 35 04 06 00 DA 59 7E 7B 9F 3F 35 C4 DD C1 DA DD BA 02 [13:54:13]Write to MH i2c: 01 00 00 7E 89 07 [13:54:13]Write i2c OK [13:54:13]MH_I2C_Read... [13:54:13]Read from MH i2c: 01 [13:54:13]MH_I2C_Read... [13:54:13]Read from MH i2c: 01 07 00 [13:54:13]MH_I2C_Read... [13:54:13]Read from MH i2c: 01 07 00 7E 89 00 00 00 00 00 79 0C 93 [13:54:13]RasterBufferAndPrint [13:54:13]line [13:54:13]line [13:54:13]line [13:54:13]line [13:54:13]line [13:54:13]written 0, free lines is 3197 [13:54:13]MH_Cut [13:54:13]Write to MH i2c: D1 01 00 85 89 01 E0 [13:54:13]Write i2c OK [13:54:13]MH_I2C_Read... [13:54:13]Read from MH i2c: D1 [13:54:13]MH_I2C_Read... [13:54:13]Read from MH i2c: D1 01 00 [13:54:13]MH_I2C_Read... [13:54:13]Read from MH i2c: D1 01 00 85 89 00 DF [13:54:13]Write to MH i2c: 01 00 00 86 89 0F [13:54:13]Write i2c OK [13:54:13]MH_I2C_Read... [13:54: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 30 4F 00 00 00 2F BB 47 00 95 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 67 FA 03 00 F4 03 04 00 5D A6 C1 66 B6 04 01 00 00 56 5B AE 15 CD 37 AE 39 [13:54:13]CommunicateWithHost err = 0 [13:54:13]CheckOFDResponse [13:54:13]1017 (14) - 77093643461234 [13:54:13]1041 (16) - 0000000000871820 [13:54:13]1040 (4) - 260711 [13:54:13]1012 (4) - 18.08.2024 07:44 [13:54:13]1206 (1) - 0 [13:54:13]OFD Sender: Remove packet 260711 [13:54:13]ProducePacketName [13:54:13]name=ofd_packets/00260711 [13:54:13]NVStorageDeleteData [13:54:14]OFD Sender: No OFD packet to send [13:54:14]*** Cut start [13:54:14]*** Purtial cut [13:54:14]*** Stage 1: CUTSNS_PIN = 1 [13:54:16]Read from MH i2c: 01 [13:54:16]MH_I2C_Read... [13:54:16]*** Stop cut motor [13:54:16]*** Cut end [13:54:16]Read from MH i2c: 01 07 00 [13:54:16]MH_I2C_Read... [13:54:16]Read from MH i2c: 01 07 00 86 89 00 00 00 00 00 FF 0F 24 [13:54:16]process_action close_receipt done [13:54:16]requested_data is exist [13:54:16]produce_requested_data [13:54:16]requested_item fm.sn is exist - process it [13:54:16]wFMCommunicate request_size=4 [13:54:16]MH_SAM_APDU [13:54:16]CAPDU: 80 11 00 00 [13:54:16]Write to MH i2c: E2 08 00 87 89 80 11 00 00 00 00 00 00 8A [13:54:16]Write i2c OK [13:54:16]MH_I2C_Read... [13:54:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:17]Read from MH i2c: E2 [13:54:17]MH_I2C_Read... [13:54:17]Read from MH i2c: E2 17 00 [13:54:17]MH_I2C_Read... [13:54:17]Read from MH i2c: E2 17 00 87 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D7 [13:54:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:54:17]wFMCommunicate OK [13:54:17]requested_item fd.num is exist - process it [13:54:17]SAM_PROTO_GetFieldsCounters [13:54:17]wFMCommunicate request_size=4 [13:54:17]MH_SAM_APDU [13:54:17]CAPDU: 80 13 00 00 [13:54:17]Write to MH i2c: E2 08 00 88 89 80 13 00 00 00 00 00 00 8D [13:54:17]Write i2c OK [13:54:17]MH_I2C_Read... [13:54:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:54:17]Read from MH i2c: E2 [13:54:17]MH_I2C_Read... [13:54:17]Read from MH i2c: E2 62 00 [13:54:17]MH_I2C_Read... [13:54:17]Read from MH i2c: E2 62 00 88 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 67 FA 03 00 0E 04 04 00 C1 01 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 FC [13:54: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 67 FA 03 00 0E 04 04 00 C1 01 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 [13:54:17]wFMCommunicate OK [13:54:17]SAM_PROTO_GetFieldsCounters done [13:54:17]requested_item shift.num is exist - process it [13:54:17]requested_item shift.opened is exist - process it [13:54:17]req_shift_opened [13:54:17]FM_GetShiftState [13:54:17]SAM_PROTO_GetShiftState [13:54:17]wFMCommunicate request_size=4 [13:54:17]MH_SAM_APDU [13:54:17]CAPDU: 80 13 01 00 [13:54:17]Write to MH i2c: E2 08 00 89 89 80 13 01 00 00 00 00 00 8F [13:54:17]Write i2c OK [13:54:17]MH_I2C_Read... [13:54:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:17]Read from MH i2c: E2 [13:54:17]MH_I2C_Read... [13:54:17]Read from MH i2c: E2 0E 00 [13:54:17]MH_I2C_Read... [13:54:17]Read from MH i2c: E2 0E 00 89 89 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 CC [13:54:17]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:54:17]wFMCommunicate OK [13:54:17]SAM_PROTO_GetShiftState done [13:54:17]FM_GetShiftState done [13:54:17]req_shift_opened done [13:54:17]requested_item shift.open_date is exist - process it [13:54:17]req_shift_open_date [13:54:17]req_shift_open_date done [13:54:17]produce_requested_data done [13:54:17]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260711,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [13:54:17]process_action_free close_receipt [13:54:17]json_value_free [13:54:17]json_value_free done [13:54:17]process_json_proto returns [13:54:17]Send response to host [13:54:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260711,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [13:54:17]free response buf [13:54:17]execute_script done [13:54:17]execute_script returns [13:54:17]free content buf [13:54:17]Sock 9.Close socket [13:54:17]Sock 9.Thread stoped [13:54:19]OFD Sender: No OFD packet to send [13:54:24]OFD Sender: No OFD packet to send [13:54:29]OFD Sender: No OFD packet to send [13:54:34]OFD Sender: No OFD packet to send [13:54:39]OFD Sender: No OFD packet to send [13:54:44]OFD Sender: No OFD packet to send [13:54:49]OFD Sender: No OFD packet to send [13:54:54]OFD Sender: No OFD packet to send [13:54:59]OFD Sender: No OFD packet to send [13:55:04]OFD Sender: No OFD packet to send [13:55:09]OFD Sender: No OFD packet to send [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]accept exits with 7 [13:57:04]New connection [13:57:04]New thread 3066473828 created [13:57:04]Thread 3066617188 joined [13:57:04]Waiting for new connection... [13:57:04] Sock 7.Parse request [13:57:04]Sock 7.Check first char [13:57:04]Sock 7.First char is OK [13:57:04]request: POST /json_proto HTTP/1.0 [13:57:04]Method: POST [13:57:04]URL: /json_proto [13:57:04]Method is POST - this is cgi request [13:57:04]url: /json_proto [13:57:04]query_string will be loaded in cgi processing [13:57:04]execute_cgi json_proto POST (null) [13:57:04]execute_cgi path=json_proto method=POST [13:57:04]POST find Content-Length [13:57:04]Host: 172.17.55.133:8080 [13:57:04]Content-Length: 804 [13:57:04]Content-Type: application/json [13:57:04] [13:57:04]POST finish read [13:57:04]Found Content-Length = 804 [13:57:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036260", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:04]execute_script... [13:57: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)1036260", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:04]POST & json_proto [13:57:04]process_json_proto [13:57:04]json parsed OK: [13:57:04]protocol is kg_v1.0 [13:57:04]action value=close_receipt [13:57:04]process_action close_receipt [13:57:04]cmd_close_receipt [13:57:04]MH_GetDate [13:57:04]Write to MH i2c: F0 00 00 8A 89 02 [13:57:04]Write i2c OK [13:57:04]MH_I2C_Read... [13:57:04]Read from MH i2c: F0 [13:57:04]MH_I2C_Read... [13:57:04]Read from MH i2c: F0 09 00 [13:57:04]MH_I2C_Read... [13:57:04]Read from MH i2c: F0 09 00 8A 89 00 B5 FD C1 66 34 48 D8 65 9D [13:57:04]GetLastDocTimeStamp 1723989256 [13:57:04]current date 1723989429 [13:57:04]FM_GetShiftState [13:57:04]SAM_PROTO_GetShiftState [13:57:04]wFMCommunicate request_size=4 [13:57:04]MH_SAM_APDU [13:57:04]CAPDU: 80 13 01 00 [13:57:04]Write to MH i2c: E2 08 00 8B 89 80 13 01 00 00 00 00 00 91 [13:57:04]Write i2c OK [13:57:04]MH_I2C_Read... [13:57:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:04]Read from MH i2c: E2 [13:57:04]MH_I2C_Read... [13:57:04]Read from MH i2c: E2 0E 00 [13:57:04]MH_I2C_Read... [13:57:04]Read from MH i2c: E2 0E 00 8B 89 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 CE [13:57:04]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:57:04]wFMCommunicate OK [13:57:04]SAM_PROTO_GetShiftState done [13:57:04]FM_GetShiftState done [13:57:04]opened in 1723940556 [13:57:04]opened+sec_in_day 1724026956 [13:57:04]quantity*price = 100021 [13:57:04]sum+1 = 100023 [13:57:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 270 18.08.2024 13:57 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260712 ФПД: 149049267958111 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T135709&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260712&fm=149049267958111&tin=02508201610067®Number=0000000000091865&sum=100022 [13:57:05]StoreToDocumentArchive [13:57:05]shift 449 fd 260712 [13:57:05]save to /storage/0449/doc_00260712 [13:57:05]save last doc name /storage/0449/doc_00260712 to /storage/kkm_last_doc_name [13:57:05]save OK [13:57:05]Clear old archive folders... [13:57:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:57:05]tlvbuf is 003365A0 [13:57:05]SAM_PROTO_ClearQueue [13:57:05]wFMCommunicate request_size=4 [13:57:05]MH_SAM_APDU [13:57:05]CAPDU: 80 09 00 00 [13:57:05]Write to MH i2c: E2 08 00 98 89 80 09 00 00 00 00 00 00 93 [13:57:05]Write i2c OK [13:57:05]MH_I2C_Read... [13:57:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:57:05]Read from MH i2c: E2 [13:57:05]MH_I2C_Read... [13:57:05]Read from MH i2c: E2 03 00 [13:57:05]MH_I2C_Read... [13:57:05]Read from MH i2c: E2 03 00 98 89 00 90 00 95 [13:57:05]RAPDU: 90 00 [13:57:05]wFMCommunicate OK [13:57:05]SAM_PROTO_ClearQueue done [13:57:05]KKMCreateOFDPacket [13:57:05]OFDProtocolAddRootSTLVToBuf [13:57:05]FM_MakeSignedData [13:57:05]FM_MakeSignedData [13:57:05]SAM_PROTO_SignData [13:57:05]wFMCommunicate request_size=4 [13:57:05]MH_SAM_APDU [13:57:05]CAPDU: 80 0D 01 02 [13:57:05]Write to MH i2c: E2 08 00 99 89 80 0D 01 02 00 00 00 00 9B [13:57:05]Write i2c OK [13:57:05]MH_I2C_Read... [13:57:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:57:05]Read from MH i2c: E2 [13:57:05]MH_I2C_Read... [13:57:05]Read from MH i2c: E2 03 00 [13:57:05]MH_I2C_Read... [13:57:05]Read from MH i2c: E2 03 00 99 89 00 90 00 96 [13:57:05]RAPDU: 90 00 [13:57:05]wFMCommunicate OK [13:57:05]wFMCommunicate request_size=255 [13:57:05]MH_SAM_APDU [13:57: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 B5 FD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 68 FA 03 00 35 04 06 00 87 [13:57:05]Write to MH i2c: E2 02 01 9A 89 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 B5 FD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 68 FA 03 00 35 04 06 00 87 00 00 07 [13:57:05]Write i2c OK [13:57:05]MH_I2C_Read... [13:57:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:05]Read from MH i2c: E2 [13:57:05]MH_I2C_Read... [13:57:05]Read from MH i2c: E2 03 00 [13:57:05]MH_I2C_Read... [13:57:05]Read from MH i2c: E2 03 00 9A 89 00 90 00 97 [13:57:05]RAPDU: 90 00 [13:57:05]wFMCommunicate OK [13:57:05]wFMCommunicate request_size=10 [13:57:05]MH_SAM_APDU [13:57:05]CAPDU: 80 0D 02 02 05 8F 3C AB B1 5F [13:57:05]Write to MH i2c: E2 0D 00 9B 89 80 0D 02 02 05 00 8F 3C AB B1 5F 00 00 2E [13:57:05]Write i2c OK [13:57:05]MH_I2C_Read... [13:57:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:05]Read from MH i2c: E2 [13:57:05]MH_I2C_Read... [13:57:05]Read from MH i2c: E2 03 00 [13:57:05]MH_I2C_Read... [13:57:05]Read from MH i2c: E2 03 00 9B 89 00 90 00 98 [13:57:05]RAPDU: 90 00 [13:57:05]wFMCommunicate OK [13:57:05]wFMCommunicate request_size=4 [13:57:05]MH_SAM_APDU [13:57:05]CAPDU: 80 0D 03 02 [13:57:05]Write to MH i2c: E2 08 00 9C 89 80 0D 03 02 00 00 00 00 A0 [13:57:05]Write i2c OK [13:57:05]MH_I2C_Read... [13:57:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:57:05]Read from MH i2c: E2 [13:57:05]MH_I2C_Read... [13:57:05]Read from MH i2c: E2 0B 00 [13:57:05]MH_I2C_Read... [13:57:05]Read from MH i2c: E2 0B 00 9C 89 00 E0 57 7F 17 D0 5B 62 1A 90 00 15 [13:57:05]RAPDU: E0 57 7F 17 D0 5B 62 1A 90 00 [13:57:05]wFMCommunicate OK [13:57:05]SAM_PROTO_SignData done [13:57:05]FM_MakeSignedData done [13:57:05]CreateOFDProtocolMessage [13:57:05]wFMCommunicate request_size=4 [13:57:05]MH_SAM_APDU [13:57:05]CAPDU: 80 11 00 00 [13:57:05]Write to MH i2c: E2 08 00 9D 89 80 11 00 00 00 00 00 00 A0 [13:57:05]Write i2c OK [13:57:05]MH_I2C_Read... [13:57:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:05]Read from MH i2c: E2 [13:57:05]MH_I2C_Read... [13:57:05]Read from MH i2c: E2 17 00 [13:57:05]MH_I2C_Read... [13:57:05]Read from MH i2c: E2 17 00 9D 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 ED [13:57:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:57:05]wFMCommunicate OK [13:57:05]CreateOFDProtocolMessage done [13:57:05]OFDSenderStorePacket 260712 [13:57:05]StoreOFDPacket docnum=260712 [13:57:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 88 98 07 01 2E 0C 5A 03 01 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 B5 FD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 68 FA 03 00 35 04 06 00 87 8F 3C AB B1 5F E0 57 7F 17 D0 5B 62 1A [13:57:05]CheckFolder [13:57:05]dirname=/storage/ofd_packets [13:57:05]CheckFolder done [13:57:05]ProducePacketName [13:57:05]name=ofd_packets/00260712 [13:57:05]NVStorageSaveData ofd_packets/00260712 [13:57:05]File name is /storage/ofd_packets/00260712 [13:57:05]Write 301 bytes [13:57:05]NVStorageSaveData done [13:57:05]OFDSenderStorePacket done [13:57:05]KKMCreateOFDPacket done [13:57:05]NVStorageSaveData kkm_last_timestamp [13:57:05]File name is /storage/kkm_last_timestamp [13:57:05]Write 4 bytes [13:57:05]NVStorageSaveData done [13:57:05]ExternCall_PrintAddStr [13:57:05]wPrintStart [13:57:05]Write to MH i2c: 01 00 00 9E 89 27 [13:57:05]Write i2c OK [13:57:05]MH_I2C_Read... [13:57:05]Read from MH i2c: 01 [13:57:05]MH_I2C_Read... [13:57:05]Read from MH i2c: 01 07 00 [13:57:05]MH_I2C_Read... [13:57:05]Read from MH i2c: 01 07 00 9E 89 00 00 00 00 00 FF 0F 3C [13:57:05]RasterBufferAndPrint [13:57:05]line Счет N : (1)1036260 [13:57:05]line ИНН: 02508201610067 [13:57:05]line Контрольно-Кассовый Чек [13:57:05]line ПРОДАЖА [13:57:05]line ТРК (МРК, ГНК) : 23 [13:57:05]line Товар: 2710124500 [13:57:05]line Аи-95-К-5 [13:57:05]line 13.480 * 74.20 [13:57:05]line = 1000.22 [13:57:05]line НДС 12% НСП 1% [13:57:05]line > о реализуемом товаре [13:57:05]line ИТОГО: 1000.22 [13:57:05]line НСП 1% : 8.85 [13:57:05]line НДС 12% : 106.22 [13:57:05]line Наличными: 0.00 [13:57:05]line Безнал.: 1000.22 [13:57:05]line Место: АЗС № 94 "Партнер Нефть" [13:57:05]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [13:57:05]line СНО: Общий режим [13:57:05]line Чек 270 18.08.2024 13:57 [13:57:05]line Смена: 449 ФФД: 1.0 [13:57:05]line ЗНМ: 0300000099 [13:57:05]line РНМ: 0000000000091865 [13:57:05]line Версия ККМ: 001 [13:57:05]line Платежная система: O! деньги [13:57:05]line ФМ: 0000000000871820 [13:57:05]line ФД: 260712 [13:57:05]line ФПД: 149049267958111 [13:57:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T135709&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260712&fm=149049267958111&tin=02508201610067®Number=0000000000091865&sum=100022 [13:57:06]OFD Sender: Processing packet 260712 [packets to send 192, broken 191] [13:57:06]ProducePacketName [13:57:06]name=ofd_packets/00260712 [13:57:06]OFD Sender: To server: pG, [13:57:06]CommunicateWithHost lk.salyk.kg:30040 [13:57:06]ConnectInit lk.salyk.kg [13:57:06]written 0, free lines is 4095 [13:57:06]Connected sock=10 [13:57: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 30 0F 01 00 00 88 98 07 01 2E 0C 5A 03 01 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 B5 FD C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 68 FA 03 00 35 04 06 00 87 8F 3C AB B1 5F E0 57 7F 17 D0 5B 62 1A [13:57: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 30 4F 00 00 00 77 57 47 00 EE 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 30 10 04 04 00 68 FA 03 00 F4 03 04 00 0A A7 C1 66 B6 04 01 00 00 AF 31 3A 7B 87 3A C1 DF [13:57:06]CommunicateWithHost err = 0 [13:57:06]CheckOFDResponse [13:57:06]1017 (14) - 77093643461234 [13:57:06]1041 (16) - 0000000000871820 [13:57:06]1040 (4) - 260712 [13:57:06]1012 (4) - 18.08.2024 07:47 [13:57:06]1206 (1) - 0 [13:57:06]OFD Sender: Remove packet 260712 [13:57:06]ProducePacketName [13:57:06]name=ofd_packets/00260712 [13:57:06]NVStorageDeleteData [13:57:06]Write to MH i2c: 01 00 00 C8 89 51 [13:57:06]Write i2c OK [13:57:06]MH_I2C_Read... [13:57:06]Read from MH i2c: 01 [13:57:06]MH_I2C_Read... [13:57:06]Read from MH i2c: 01 07 00 [13:57:06]MH_I2C_Read... [13:57:06]Read from MH i2c: 01 07 00 C8 89 00 00 00 00 00 86 0C EA [13:57:06]RasterBufferAndPrint [13:57:06]line [13:57:06]line [13:57:06]line [13:57:06]line [13:57:06]line [13:57:06]written 0, free lines is 3210 [13:57:06]MH_Cut [13:57:06]Write to MH i2c: D1 01 00 CF 89 01 2A [13:57:06]Write i2c OK [13:57:06]MH_I2C_Read... [13:57:06]Read from MH i2c: D1 [13:57:06]MH_I2C_Read... [13:57:06]Read from MH i2c: D1 01 00 [13:57:06]MH_I2C_Read... [13:57:06]Read from MH i2c: D1 01 00 CF 89 00 29 [13:57:06]Write to MH i2c: 01 00 00 D0 89 59 [13:57:06]Write i2c OK [13:57:06]MH_I2C_Read... [13:57:07]OFD Sender: No OFD packet to send [13:57:07]*** Cut start [13:57:07]*** Purtial cut [13:57:07]*** Stage 1: CUTSNS_PIN = 1 [13:57:09]Read from MH i2c: 01 [13:57:09]MH_I2C_Read... [13:57:09]*** Stop cut motor [13:57:09]*** Cut end [13:57:09]Read from MH i2c: 01 07 00 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: 01 07 00 D0 89 00 00 00 00 00 FF 0F 6E [13:57:09]process_action close_receipt done [13:57:09]requested_data is exist [13:57:09]produce_requested_data [13:57:09]requested_item fm.sn is exist - process it [13:57:09]wFMCommunicate request_size=4 [13:57:09]MH_SAM_APDU [13:57:09]CAPDU: 80 11 00 00 [13:57:09]Write to MH i2c: E2 08 00 D1 89 80 11 00 00 00 00 00 00 D4 [13:57:09]Write i2c OK [13:57:09]MH_I2C_Read... [13:57:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:09]Read from MH i2c: E2 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: E2 17 00 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: E2 17 00 D1 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 21 [13:57:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:57:09]wFMCommunicate OK [13:57:09]requested_item fd.num is exist - process it [13:57:09]SAM_PROTO_GetFieldsCounters [13:57:09]wFMCommunicate request_size=4 [13:57:09]MH_SAM_APDU [13:57:09]CAPDU: 80 13 00 00 [13:57:09]Write to MH i2c: E2 08 00 D2 89 80 13 00 00 00 00 00 00 D7 [13:57:09]Write i2c OK [13:57:09]MH_I2C_Read... [13:57:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:57:10]Read from MH i2c: E2 [13:57:10]MH_I2C_Read... [13:57:10]Read from MH i2c: E2 62 00 [13:57:10]MH_I2C_Read... [13:57:10]Read from MH i2c: E2 62 00 D2 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 68 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 4A [13:57: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 68 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:57:10]wFMCommunicate OK [13:57:10]SAM_PROTO_GetFieldsCounters done [13:57:10]requested_item shift.num is exist - process it [13:57:10]requested_item shift.opened is exist - process it [13:57:10]req_shift_opened [13:57:10]FM_GetShiftState [13:57:10]SAM_PROTO_GetShiftState [13:57:10]wFMCommunicate request_size=4 [13:57:10]MH_SAM_APDU [13:57:10]CAPDU: 80 13 01 00 [13:57:10]Write to MH i2c: E2 08 00 D3 89 80 13 01 00 00 00 00 00 D9 [13:57:10]Write i2c OK [13:57:10]MH_I2C_Read... [13:57:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:10]Read from MH i2c: E2 [13:57:10]MH_I2C_Read... [13:57:10]Read from MH i2c: E2 0E 00 [13:57:10]MH_I2C_Read... [13:57:10]Read from MH i2c: E2 0E 00 D3 89 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 16 [13:57:10]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:57:10]wFMCommunicate OK [13:57:10]SAM_PROTO_GetShiftState done [13:57:10]FM_GetShiftState done [13:57:10]req_shift_opened done [13:57:10]requested_item shift.open_date is exist - process it [13:57:10]req_shift_open_date [13:57:10]req_shift_open_date done [13:57:10]produce_requested_data done [13:57:10]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260712,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [13:57:10]process_action_free close_receipt [13:57:10]json_value_free [13:57:10]json_value_free done [13:57:10]process_json_proto returns [13:57:10]Send response to host [13:57:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260712,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [13:57:10]free response buf [13:57:10]execute_script done [13:57:10]execute_script returns [13:57:10]free content buf [13:57:10]Sock 7.Close socket [13:57:10]Sock 7.Thread stoped [13:57:12]OFD Sender: No OFD packet to send [13:57:17]OFD Sender: No OFD packet to send [13:57:22]OFD Sender: No OFD packet to send [13:57:27]OFD Sender: No OFD packet to send [13:57:32]OFD Sender: No OFD packet to send [13:57:37]OFD Sender: No OFD packet to send [13:57:42]OFD Sender: No OFD packet to send [13:57:47]OFD Sender: No OFD packet to send [13:57:52]OFD Sender: No OFD packet to send [13:57:57]OFD Sender: No OFD packet to send [13:58:02]OFD Sender: No OFD packet to send [13:58:07]OFD Sender: No OFD packet to send [13:58:12]OFD Sender: No OFD packet to send [13:58:17]OFD Sender: No OFD packet to send [13:58:22]OFD Sender: No OFD packet to send [13:58:27]OFD Sender: No OFD packet to send [13:58:32]OFD Sender: No OFD packet to send [13:58:37]OFD Sender: No OFD packet to send [13:58:42]OFD Sender: No OFD packet to send [13:58:43]accept exits with 9 [13:58:43]New connection [13:58:43]New thread 3066617188 created [13:58:43]Thread 3066473828 joined [13:58:43]Waiting for new connection... [13:58:43] Sock 9.Parse request [13:58:43]Sock 9.Check first char [13:58:43]Sock 9.First char is OK [13:58:43]request: POST /json_proto HTTP/1.0 [13:58:43]Method: POST [13:58:43]URL: /json_proto [13:58:43]Method is POST - this is cgi request [13:58:43]url: /json_proto [13:58:43]query_string will be loaded in cgi processing [13:58:43]execute_cgi json_proto POST (null) [13:58:43]execute_cgi path=json_proto method=POST [13:58:43]POST find Content-Length [13:58:43]Host: 172.17.55.133:8080 [13:58:43]Content-Length: 755 [13:58:43]Content-Type: application/json [13:58:43] [13:58:43]POST finish read [13:58:43]Found Content-Length = 755 [13:58:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.750, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30105789", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:43]execute_script... [13:58: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)1036261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.750, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30105789", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:43]POST & json_proto [13:58:43]process_json_proto [13:58:43]json parsed OK: [13:58:43]protocol is kg_v1.0 [13:58:43]action value=close_receipt [13:58:43]process_action close_receipt [13:58:43]cmd_close_receipt [13:58:43]MH_GetDate [13:58:43]Write to MH i2c: F0 00 00 D4 89 4C [13:58:43]Write i2c OK [13:58:43]MH_I2C_Read... [13:58:43]Read from MH i2c: F0 [13:58:43]MH_I2C_Read... [13:58:43]Read from MH i2c: F0 09 00 [13:58:43]MH_I2C_Read... [13:58:43]Read from MH i2c: F0 09 00 D4 89 00 18 FE C1 66 34 48 D8 65 4B [13:58:43]GetLastDocTimeStamp 1723989429 [13:58:43]current date 1723989528 [13:58:43]FM_GetShiftState [13:58:43]SAM_PROTO_GetShiftState [13:58:43]wFMCommunicate request_size=4 [13:58:43]MH_SAM_APDU [13:58:43]CAPDU: 80 13 01 00 [13:58:43]Write to MH i2c: E2 08 00 D5 89 80 13 01 00 00 00 00 00 DB [13:58:43]Write i2c OK [13:58:43]MH_I2C_Read... [13:58:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:43]Read from MH i2c: E2 [13:58:43]MH_I2C_Read... [13:58:43]Read from MH i2c: E2 0E 00 [13:58:43]MH_I2C_Read... [13:58:43]Read from MH i2c: E2 0E 00 D5 89 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 18 [13:58:43]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:58:43]wFMCommunicate OK [13:58:43]SAM_PROTO_GetShiftState done [13:58:43]FM_GetShiftState done [13:58:43]opened in 1723940556 [13:58:43]opened+sec_in_day 1724026956 [13:58:43]quantity*price = 0 [13:58:43]sum+1 = 1 [13:58:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 271 18.08.2024 13:58 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: ТК ГПНА Online 30105789 ФМ: 0000000000871820 ФД: 260713 ФПД: 117381093513121 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T135848&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260713&fm=117381093513121&tin=02508201610067®Number=0000000000091865&sum=0 [13:58:44]StoreToDocumentArchive [13:58:44]shift 449 fd 260713 [13:58:44]save to /storage/0449/doc_00260713 [13:58:44]save last doc name /storage/0449/doc_00260713 to /storage/kkm_last_doc_name [13:58:44]save OK [13:58:44]Clear old archive folders... [13:58:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:58:44]tlvbuf is 005C0F30 [13:58:44]SAM_PROTO_ClearQueue [13:58:44]wFMCommunicate request_size=4 [13:58:44]MH_SAM_APDU [13:58:44]CAPDU: 80 09 00 00 [13:58:44]Write to MH i2c: E2 08 00 E2 89 80 09 00 00 00 00 00 00 DD [13:58:44]Write i2c OK [13:58:44]MH_I2C_Read... [13:58:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:44]Read from MH i2c: E2 [13:58:44]MH_I2C_Read... [13:58:44]Read from MH i2c: E2 03 00 [13:58:44]MH_I2C_Read... [13:58:44]Read from MH i2c: E2 03 00 E2 89 00 90 00 DF [13:58:44]RAPDU: 90 00 [13:58:44]wFMCommunicate OK [13:58:44]SAM_PROTO_ClearQueue done [13:58:44]KKMCreateOFDPacket [13:58:44]OFDProtocolAddRootSTLVToBuf [13:58:44]FM_MakeSignedData [13:58:44]FM_MakeSignedData [13:58:44]SAM_PROTO_SignData [13:58:44]wFMCommunicate request_size=4 [13:58:44]MH_SAM_APDU [13:58:44]CAPDU: 80 0D 01 02 [13:58:44]Write to MH i2c: E2 08 00 E3 89 80 0D 01 02 00 00 00 00 E5 [13:58:44]Write i2c OK [13:58:44]MH_I2C_Read... [13:58:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:44]Read from MH i2c: E2 [13:58:44]MH_I2C_Read... [13:58:44]Read from MH i2c: E2 03 00 [13:58:44]MH_I2C_Read... [13:58:44]Read from MH i2c: E2 03 00 E3 89 00 90 00 E0 [13:58:44]RAPDU: 90 00 [13:58:44]wFMCommunicate OK [13:58:44]wFMCommunicate request_size=255 [13:58:44]MH_SAM_APDU [13:58:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 18 FE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 69 FA 03 00 35 04 06 00 6A [13:58:44]Write to MH i2c: E2 02 01 E4 89 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 18 FE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 69 FA 03 00 35 04 06 00 6A 00 00 A3 [13:58:44]Write i2c OK [13:58:44]MH_I2C_Read... [13:58:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:44]Read from MH i2c: E2 [13:58:44]MH_I2C_Read... [13:58:44]Read from MH i2c: E2 03 00 [13:58:44]MH_I2C_Read... [13:58:44]Read from MH i2c: E2 03 00 E4 89 00 90 00 E1 [13:58:44]RAPDU: 90 00 [13:58:44]wFMCommunicate OK [13:58:44]wFMCommunicate request_size=10 [13:58:44]MH_SAM_APDU [13:58:44]CAPDU: 80 0D 02 02 05 C1 EA 61 D7 A1 [13:58:44]Write to MH i2c: E2 0D 00 E5 89 80 0D 02 02 05 00 C1 EA 61 D7 A1 00 00 76 [13:58:44]Write i2c OK [13:58:44]MH_I2C_Read... [13:58:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:44]Read from MH i2c: E2 [13:58:44]MH_I2C_Read... [13:58:44]Read from MH i2c: E2 03 00 [13:58:44]MH_I2C_Read... [13:58:44]Read from MH i2c: E2 03 00 E5 89 00 90 00 E2 [13:58:44]RAPDU: 90 00 [13:58:44]wFMCommunicate OK [13:58:44]wFMCommunicate request_size=4 [13:58:44]MH_SAM_APDU [13:58:44]CAPDU: 80 0D 03 02 [13:58:44]Write to MH i2c: E2 08 00 E6 89 80 0D 03 02 00 00 00 00 EA [13:58:44]Write i2c OK [13:58:44]MH_I2C_Read... [13:58:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:44]Read from MH i2c: E2 [13:58:44]MH_I2C_Read... [13:58:44]Read from MH i2c: E2 0B 00 [13:58:44]MH_I2C_Read... [13:58:44]Read from MH i2c: E2 0B 00 E6 89 00 74 F2 7B 2D C6 67 C7 5D 90 00 4A [13:58:44]RAPDU: 74 F2 7B 2D C6 67 C7 5D 90 00 [13:58:44]wFMCommunicate OK [13:58:44]SAM_PROTO_SignData done [13:58:44]FM_MakeSignedData done [13:58:44]CreateOFDProtocolMessage [13:58:44]wFMCommunicate request_size=4 [13:58:44]MH_SAM_APDU [13:58:44]CAPDU: 80 11 00 00 [13:58:44]Write to MH i2c: E2 08 00 E7 89 80 11 00 00 00 00 00 00 EA [13:58:44]Write i2c OK [13:58:44]MH_I2C_Read... [13:58:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:45]Read from MH i2c: E2 [13:58:45]MH_I2C_Read... [13:58:45]Read from MH i2c: E2 17 00 [13:58:45]MH_I2C_Read... [13:58:45]Read from MH i2c: E2 17 00 E7 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 37 [13:58:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:58:45]wFMCommunicate OK [13:58:45]CreateOFDProtocolMessage done [13:58:45]OFDSenderStorePacket 260713 [13:58:45]StoreOFDPacket docnum=260713 [13:58:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 31 44 07 01 A5 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 18 FE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 69 FA 03 00 35 04 06 00 6A C1 EA 61 D7 A1 74 F2 7B 2D C6 67 C7 5D [13:58:45]CheckFolder [13:58:45]dirname=/storage/ofd_packets [13:58:45]CheckFolder done [13:58:45]ProducePacketName [13:58:45]name=ofd_packets/00260713 [13:58:45]NVStorageSaveData ofd_packets/00260713 [13:58:45]File name is /storage/ofd_packets/00260713 [13:58:45]Write 301 bytes [13:58:45]NVStorageSaveData done [13:58:45]OFDSenderStorePacket done [13:58:45]KKMCreateOFDPacket done [13:58:45]NVStorageSaveData kkm_last_timestamp [13:58:45]File name is /storage/kkm_last_timestamp [13:58:45]Write 4 bytes [13:58:45]NVStorageSaveData done [13:58:45]ExternCall_PrintAddStr [13:58:45]wPrintStart [13:58:45]Write to MH i2c: 01 00 00 E8 89 71 [13:58:45]Write i2c OK [13:58:45]MH_I2C_Read... [13:58:45]Read from MH i2c: 01 [13:58:45]MH_I2C_Read... [13:58:45]Read from MH i2c: 01 07 00 [13:58:45]MH_I2C_Read... [13:58:45]Read from MH i2c: 01 07 00 E8 89 00 00 00 00 00 FF 0F 86 [13:58:45]RasterBufferAndPrint [13:58:45]line Счет N : (1)1036261 [13:58:45]line ИНН: 02508201610067 [13:58:45]line Контрольно-Кассовый Чек [13:58:45]line ПРОДАЖА [13:58:45]line ТРК (МРК, ГНК) : 12 [13:58:45]line Товар: 2710124130 [13:58:45]line Аи-92-К-5 [13:58:45]line 14.750 * 0.00 [13:58:45]line = 0.00 [13:58:45]line НДС 12% НСП 1% [13:58:45]line > о реализуемом товаре [13:58:45]line ИТОГО: 0.00 [13:58:45]line НСП 1% : 0.00 [13:58:45]line НДС 12% : 0.00 [13:58:45]line Наличными: 0.00 [13:58:45]line Безнал.: 0.00 [13:58:45]line Место: АЗС № 94 "Партнер Нефть" [13:58:45]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [13:58:45]line СНО: Общий режим [13:58:45]line Чек 271 18.08.2024 13:58 [13:58:45]line Смена: 449 ФФД: 1.0 [13:58:45]line ЗНМ: 0300000099 [13:58:45]line РНМ: 0000000000091865 [13:58:45]line Версия ККМ: 001 [13:58:45]line Талоны: ТК ГПНА Online [13:58:45]line 30105789 [13:58:45]line ФМ: 0000000000871820 [13:58:45]line ФД: 260713 [13:58:45]line ФПД: 117381093513121 [13:58:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T135848&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260713&fm=117381093513121&tin=02508201610067®Number=0000000000091865&sum=0 [13:58:45]written 0, free lines is 4095 [13:58:45]OFD Sender: Processing packet 260713 [packets to send 192, broken 191] [13:58:45]ProducePacketName [13:58:45]name=ofd_packets/00260713 [13:58:45]OFD Sender: To server: pG, [13:58:45]CommunicateWithHost lk.salyk.kg:30040 [13:58:45]ConnectInit lk.salyk.kg [13:58:45]Connected sock=10 [13:58: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 30 0F 01 00 00 31 44 07 01 A5 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 18 FE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 69 FA 03 00 35 04 06 00 6A C1 EA 61 D7 A1 74 F2 7B 2D C6 67 C7 5D [13:58:45]Write to MH i2c: 01 00 00 12 8A 9C [13:58:45]Write i2c OK [13:58:45]MH_I2C_Read... [13:58:45]Read from MH i2c: 01 [13:58:45]MH_I2C_Read... [13:58:45]Read from MH i2c: 01 07 00 [13:58:45]MH_I2C_Read... [13:58:45]Read from MH i2c: 01 07 00 12 8A 00 00 00 00 00 94 0C 43 [13:58:45]RasterBufferAndPrint [13:58:45]line [13:58:45]line [13:58:45]line [13:58:45]line [13:58:45]line [13:58:45]written 0, free lines is 3224 [13:58:45]MH_Cut [13:58:45]Write to MH i2c: D1 01 00 19 8A 01 75 [13:58:45]Write i2c OK [13:58:45]MH_I2C_Read... [13:58:45]Read from MH i2c: D1 [13:58:45]MH_I2C_Read... [13:58:45]Read from MH i2c: D1 01 00 [13:58:45]MH_I2C_Read... [13:58:45]Read from MH i2c: D1 01 00 19 8A 00 74 [13:58:45]Write to MH i2c: 01 00 00 1A 8A A4 [13:58:45]Write i2c OK [13:58:45]MH_I2C_Read... [13:58: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 30 4F 00 00 00 B5 F3 47 00 56 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 69 FA 03 00 F4 03 04 00 6D A7 C1 66 B6 04 01 00 00 26 A7 67 B2 F5 90 32 D5 [13:58:45]CommunicateWithHost err = 0 [13:58:45]CheckOFDResponse [13:58:45]1017 (14) - 77093643461234 [13:58:45]1041 (16) - 0000000000871820 [13:58:45]1040 (4) - 260713 [13:58:45]1012 (4) - 18.08.2024 07:49 [13:58:45]1206 (1) - 0 [13:58:45]OFD Sender: Remove packet 260713 [13:58:45]ProducePacketName [13:58:45]name=ofd_packets/00260713 [13:58:45]NVStorageDeleteData [13:58:46]OFD Sender: No OFD packet to send [13:58:46]*** Cut start [13:58:46]*** Purtial cut [13:58:46]*** Stage 1: CUTSNS_PIN = 1 [13:58:48]Read from MH i2c: 01 [13:58:48]MH_I2C_Read... [13:58:48]*** Stop cut motor [13:58:48]*** Cut end [13:58:48]Read from MH i2c: 01 07 00 [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: 01 07 00 1A 8A 00 00 00 00 00 FF 0F B9 [13:58:48]process_action close_receipt done [13:58:48]requested_data is exist [13:58:48]produce_requested_data [13:58:48]requested_item fm.sn is exist - process it [13:58:48]wFMCommunicate request_size=4 [13:58:48]MH_SAM_APDU [13:58:48]CAPDU: 80 11 00 00 [13:58:48]Write to MH i2c: E2 08 00 1B 8A 80 11 00 00 00 00 00 00 1F [13:58:48]Write i2c OK [13:58:48]MH_I2C_Read... [13:58:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:48]Read from MH i2c: E2 [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: E2 17 00 [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: E2 17 00 1B 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 6C [13:58:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [13:58:48]wFMCommunicate OK [13:58:48]requested_item fd.num is exist - process it [13:58:48]SAM_PROTO_GetFieldsCounters [13:58:48]wFMCommunicate request_size=4 [13:58:48]MH_SAM_APDU [13:58:48]CAPDU: 80 13 00 00 [13:58:48]Write to MH i2c: E2 08 00 1C 8A 80 13 00 00 00 00 00 00 22 [13:58:48]Write i2c OK [13:58:48]MH_I2C_Read... [13:58:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:48]Read from MH i2c: E2 [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: E2 62 00 [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: E2 62 00 1C 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 69 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 99 [13:58: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 69 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:58:48]wFMCommunicate OK [13:58:48]SAM_PROTO_GetFieldsCounters done [13:58:48]requested_item shift.num is exist - process it [13:58:48]requested_item shift.opened is exist - process it [13:58:48]req_shift_opened [13:58:48]FM_GetShiftState [13:58:48]SAM_PROTO_GetShiftState [13:58:48]wFMCommunicate request_size=4 [13:58:48]MH_SAM_APDU [13:58:48]CAPDU: 80 13 01 00 [13:58:48]Write to MH i2c: E2 08 00 1D 8A 80 13 01 00 00 00 00 00 24 [13:58:48]Write i2c OK [13:58:48]MH_I2C_Read... [13:58:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:48]Read from MH i2c: E2 [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: E2 0E 00 [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: E2 0E 00 1D 8A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 61 [13:58:48]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [13:58:48]wFMCommunicate OK [13:58:48]SAM_PROTO_GetShiftState done [13:58:48]FM_GetShiftState done [13:58:48]req_shift_opened done [13:58:48]requested_item shift.open_date is exist - process it [13:58:48]req_shift_open_date [13:58:48]req_shift_open_date done [13:58:48]produce_requested_data done [13:58:48]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260713,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [13:58:48]process_action_free close_receipt [13:58:48]json_value_free [13:58:48]json_value_free done [13:58:48]process_json_proto returns [13:58:48]Send response to host [13:58:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260713,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [13:58:48]free response buf [13:58:48]execute_script done [13:58:48]execute_script returns [13:58:48]free content buf [13:58:48]Sock 9.Close socket [13:58:48]Sock 9.Thread stoped [13:58:51]OFD Sender: No OFD packet to send [13:58:56]OFD Sender: No OFD packet to send [13:59:01]OFD Sender: No OFD packet to send [13:59:06]OFD Sender: No OFD packet to send [13:59:11]OFD Sender: No OFD packet to send [13:59:16]OFD Sender: No OFD packet to send [13:59:21]OFD Sender: No OFD packet to send [13:59:26]OFD Sender: No OFD packet to send [13:59:31]OFD Sender: No OFD packet to send [13:59:36]OFD Sender: No OFD packet to send [13:59:41]OFD Sender: No OFD packet to send [13:59:46]OFD Sender: No OFD packet to send [13:59:51]OFD Sender: No OFD packet to send [13:59:56]OFD Sender: No OFD packet to send [14:00:01]OFD Sender: No OFD packet to send [14:00:06]OFD Sender: No OFD packet to send [14:00:07]accept exits with 7 [14:00:07]New connection [14:00:07]New thread 3066473828 created [14:00:07]Thread 3066617188 joined [14:00:07]Waiting for new connection... [14:00:07] Sock 7.Parse request [14:00:07]Sock 7.Check first char [14:00:07]Sock 7.First char is OK [14:00:07]request: POST /json_proto HTTP/1.0 [14:00:07]Method: POST [14:00:07]URL: /json_proto [14:00:07]Method is POST - this is cgi request [14:00:07]url: /json_proto [14:00:07]query_string will be loaded in cgi processing [14:00:07]execute_cgi json_proto POST (null) [14:00:07]execute_cgi path=json_proto method=POST [14:00:07]POST find Content-Length [14:00:07]Host: 172.17.55.133:8080 [14:00:07]Content-Length: 683 [14:00:07]Content-Type: application/json [14:00:07] [14:00:07]POST finish read [14:00:07]Found Content-Length = 683 [14:00:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036262", "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" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "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" ] } } [14:00:07]execute_script... [14:00:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036262", "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" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "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" ] } } [14:00:07]POST & json_proto [14:00:07]process_json_proto [14:00:07]json parsed OK: [14:00:07]protocol is kg_v1.0 [14:00:07]action value=close_receipt [14:00:07]process_action close_receipt [14:00:07]cmd_close_receipt [14:00:07]MH_GetDate [14:00:07]Write to MH i2c: F0 00 00 1E 8A 97 [14:00:07]Write i2c OK [14:00:07]MH_I2C_Read... [14:00:07]Read from MH i2c: F0 [14:00:07]MH_I2C_Read... [14:00:07]Read from MH i2c: F0 09 00 [14:00:07]MH_I2C_Read... [14:00:07]Read from MH i2c: F0 09 00 1E 8A 00 6D FE C1 66 34 48 D8 65 EB [14:00:07]GetLastDocTimeStamp 1723989528 [14:00:07]current date 1723989613 [14:00:07]FM_GetShiftState [14:00:07]SAM_PROTO_GetShiftState [14:00:07]wFMCommunicate request_size=4 [14:00:07]MH_SAM_APDU [14:00:07]CAPDU: 80 13 01 00 [14:00:07]Write to MH i2c: E2 08 00 1F 8A 80 13 01 00 00 00 00 00 26 [14:00:07]Write i2c OK [14:00:07]MH_I2C_Read... [14:00:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:08]Read from MH i2c: E2 [14:00:08]MH_I2C_Read... [14:00:08]Read from MH i2c: E2 0E 00 [14:00:08]MH_I2C_Read... [14:00:08]Read from MH i2c: E2 0E 00 1F 8A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 63 [14:00:08]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:00:08]wFMCommunicate OK [14:00:08]SAM_PROTO_GetShiftState done [14:00:08]FM_GetShiftState done [14:00:08]opened in 1723940556 [14:00:08]opened+sec_in_day 1724026956 [14:00:08]quantity*price = 200043 [14:00:08]sum+1 = 200044 [14:00:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 272 18.08.2024 14:00 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260714 ФПД: 11500459961249 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T140013&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260714&fm=11500459961249&tin=02508201610067®Number=0000000000091865&sum=200000 [14:00:09]StoreToDocumentArchive [14:00:09]shift 449 fd 260714 [14:00:09]save to /storage/0449/doc_00260714 [14:00:09]save last doc name /storage/0449/doc_00260714 to /storage/kkm_last_doc_name [14:00:09]save OK [14:00:09]Clear old archive folders... [14:00:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:00:09]tlvbuf is 00387500 [14:00:09]SAM_PROTO_ClearQueue [14:00:09]wFMCommunicate request_size=4 [14:00:09]MH_SAM_APDU [14:00:09]CAPDU: 80 09 00 00 [14:00:09]Write to MH i2c: E2 08 00 2C 8A 80 09 00 00 00 00 00 00 28 [14:00:09]Write i2c OK [14:00:09]MH_I2C_Read... [14:00:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:09]Read from MH i2c: E2 [14:00:09]MH_I2C_Read... [14:00:09]Read from MH i2c: E2 03 00 [14:00:09]MH_I2C_Read... [14:00:09]Read from MH i2c: E2 03 00 2C 8A 00 90 00 2A [14:00:09]RAPDU: 90 00 [14:00:09]wFMCommunicate OK [14:00:09]SAM_PROTO_ClearQueue done [14:00:09]KKMCreateOFDPacket [14:00:09]OFDProtocolAddRootSTLVToBuf [14:00:09]FM_MakeSignedData [14:00:09]FM_MakeSignedData [14:00:09]SAM_PROTO_SignData [14:00:09]wFMCommunicate request_size=4 [14:00:09]MH_SAM_APDU [14:00:09]CAPDU: 80 0D 01 02 [14:00:09]Write to MH i2c: E2 08 00 2D 8A 80 0D 01 02 00 00 00 00 30 [14:00:09]Write i2c OK [14:00:09]MH_I2C_Read... [14:00:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:09]Read from MH i2c: E2 [14:00:09]MH_I2C_Read... [14:00:09]Read from MH i2c: E2 03 00 [14:00:09]MH_I2C_Read... [14:00:09]Read from MH i2c: E2 03 00 2D 8A 00 90 00 2B [14:00:09]RAPDU: 90 00 [14:00:09]wFMCommunicate OK [14:00:09]wFMCommunicate request_size=255 [14:00:09]MH_SAM_APDU [14:00:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 6D FE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6A FA 03 00 35 04 06 00 0A [14:00:09]Write to MH i2c: E2 02 01 2E 8A 80 0D 02 02 FA 00 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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 6D FE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6A FA 03 00 35 04 06 00 0A 00 00 3B [14:00:09]Write i2c OK [14:00:09]MH_I2C_Read... [14:00:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:09]Read from MH i2c: E2 [14:00:09]MH_I2C_Read... [14:00:09]Read from MH i2c: E2 03 00 [14:00:09]MH_I2C_Read... [14:00:09]Read from MH i2c: E2 03 00 2E 8A 00 90 00 2C [14:00:09]RAPDU: 90 00 [14:00:09]wFMCommunicate OK [14:00:09]wFMCommunicate request_size=10 [14:00:09]MH_SAM_APDU [14:00:09]CAPDU: 80 0D 02 02 05 75 A8 D4 AB A1 [14:00:09]Write to MH i2c: E2 0D 00 2F 8A 80 0D 02 02 05 00 75 A8 D4 AB A1 00 00 7A [14:00:09]Write i2c OK [14:00:09]MH_I2C_Read... [14:00:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:09]Read from MH i2c: E2 [14:00:09]MH_I2C_Read... [14:00:09]Read from MH i2c: E2 03 00 [14:00:09]MH_I2C_Read... [14:00:09]Read from MH i2c: E2 03 00 2F 8A 00 90 00 2D [14:00:09]RAPDU: 90 00 [14:00:09]wFMCommunicate OK [14:00:09]wFMCommunicate request_size=4 [14:00:09]MH_SAM_APDU [14:00:09]CAPDU: 80 0D 03 02 [14:00:09]Write to MH i2c: E2 08 00 30 8A 80 0D 03 02 00 00 00 00 35 [14:00:09]Write i2c OK [14:00:09]MH_I2C_Read... [14:00:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:09]Read from MH i2c: E2 [14:00:09]MH_I2C_Read... [14:00:09]Read from MH i2c: E2 0B 00 [14:00:09]MH_I2C_Read... [14:00:09]Read from MH i2c: E2 0B 00 30 8A 00 75 BD 9C A0 A7 61 B6 BB 90 00 1D [14:00:09]RAPDU: 75 BD 9C A0 A7 61 B6 BB 90 00 [14:00:09]wFMCommunicate OK [14:00:09]SAM_PROTO_SignData done [14:00:09]FM_MakeSignedData done [14:00:09]CreateOFDProtocolMessage [14:00:09]wFMCommunicate request_size=4 [14:00:09]MH_SAM_APDU [14:00:09]CAPDU: 80 11 00 00 [14:00:09]Write to MH i2c: E2 08 00 31 8A 80 11 00 00 00 00 00 00 35 [14:00:09]Write i2c OK [14:00:09]MH_I2C_Read... [14:00:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:09]Read from MH i2c: E2 [14:00:09]MH_I2C_Read... [14:00:09]Read from MH i2c: E2 17 00 [14:00:09]MH_I2C_Read... [14:00:09]Read from MH i2c: E2 17 00 31 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 82 [14:00:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:00:09]wFMCommunicate OK [14:00:09]CreateOFDProtocolMessage done [14:00:09]OFDSenderStorePacket 260714 [14:00:09]StoreOFDPacket docnum=260714 [14:00:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 95 B6 07 01 39 78 5A 03 01 00 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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 6D FE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6A FA 03 00 35 04 06 00 0A 75 A8 D4 AB A1 75 BD 9C A0 A7 61 B6 BB [14:00:09]CheckFolder [14:00:09]dirname=/storage/ofd_packets [14:00:09]CheckFolder done [14:00:09]ProducePacketName [14:00:09]name=ofd_packets/00260714 [14:00:09]NVStorageSaveData ofd_packets/00260714 [14:00:09]File name is /storage/ofd_packets/00260714 [14:00:09]Write 301 bytes [14:00:09]NVStorageSaveData done [14:00:09]OFDSenderStorePacket done [14:00:09]KKMCreateOFDPacket done [14:00:09]NVStorageSaveData kkm_last_timestamp [14:00:09]File name is /storage/kkm_last_timestamp [14:00:09]Write 4 bytes [14:00:09]NVStorageSaveData done [14:00:09]ExternCall_PrintAddStr [14:00:09]wPrintStart [14:00:09]Write to MH i2c: 01 00 00 32 8A BC [14:00:09]Write i2c OK [14:00:09]MH_I2C_Read... [14:00:09]Read from MH i2c: 01 [14:00:09]MH_I2C_Read... [14:00:09]Read from MH i2c: 01 07 00 [14:00:09]MH_I2C_Read... [14:00:09]Read from MH i2c: 01 07 00 32 8A 00 00 00 00 00 FF 0F D1 [14:00:09]RasterBufferAndPrint [14:00:09]line Счет N : (1)1036262 [14:00:09]line ИНН: 02508201610067 [14:00:09]line Контрольно-Кассовый Чек [14:00:09]line ПРОДАЖА [14:00:09]line ТРК (МРК, ГНК) : 23 [14:00:09]line Товар: 2710124500 [14:00:09]line Аи-95-К-5 [14:00:09]line 26.960 * 74.20 [14:00:09]line = 2000.43 [14:00:09]line НДС 12% НСП 1% [14:00:09]line > о реализуемом товаре [14:00:09]line ОКРУГЛЕНИЕ: -0.43 [14:00:09]line ИТОГО: 2000.00 [14:00:09]line Внесено: 2000.00 [14:00:09]line СДАЧА: 0.00 [14:00:09]line НСП 1% : 17.70 [14:00:09]line НДС 12% : 212.43 [14:00:09]line Наличными: 2000.00 [14:00:09]line Безнал.: 0.00 [14:00:09]line Место: АЗС № 94 "Партнер Нефть" [14:00:09]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [14:00:09]line СНО: Общий режим [14:00:09]line Чек 272 18.08.2024 14:00 [14:00:09]line Смена: 449 ФФД: 1.0 [14:00:09]line ЗНМ: 0300000099 [14:00:09]line РНМ: 0000000000091865 [14:00:09]line Версия ККМ: 001 [14:00:09]line ФМ: 0000000000871820 [14:00:09]line ФД: 260714 [14:00:09]line ФПД: 11500459961249 [14:00:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T140013&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260714&fm=11500459961249&tin=02508201610067®Number=0000000000091865&sum=200000 [14:00:09]written 0, free lines is 4095 [14:00:09]OFD Sender: Processing packet 260714 [packets to send 192, broken 191] [14:00:09]ProducePacketName [14:00:09]name=ofd_packets/00260714 [14:00:09]OFD Sender: To server: pG, [14:00:09]CommunicateWithHost lk.salyk.kg:30040 [14:00:09]ConnectInit lk.salyk.kg [14:00:09]Connected sock=10 [14:00: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 30 0F 01 00 00 95 B6 07 01 39 78 5A 03 01 00 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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 6D FE C1 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6A FA 03 00 35 04 06 00 0A 75 A8 D4 AB A1 75 BD 9C A0 A7 61 B6 BB [14:00: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 30 4F 00 00 00 06 D3 47 00 8B A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6A FA 03 00 F4 03 04 00 C1 A7 C1 66 B6 04 01 00 00 37 C5 1A E1 8E 00 72 D8 [14:00:10]CommunicateWithHost err = 0 [14:00:10]CheckOFDResponse [14:00:10]1017 (14) - 77093643461234 [14:00:10]1041 (16) - 0000000000871820 [14:00:10]1040 (4) - 260714 [14:00:10]1012 (4) - 18.08.2024 07:50 [14:00:10]1206 (1) - 0 [14:00:10]OFD Sender: Remove packet 260714 [14:00:10]ProducePacketName [14:00:10]name=ofd_packets/00260714 [14:00:10]NVStorageDeleteData [14:00:10]Write to MH i2c: 01 00 00 5D 8A E7 [14:00:10]Write i2c OK [14:00:10]MH_I2C_Read... [14:00:10]Read from MH i2c: 01 [14:00:10]MH_I2C_Read... [14:00:10]Read from MH i2c: 01 07 00 [14:00:10]MH_I2C_Read... [14:00:10]Read from MH i2c: 01 07 00 5D 8A 00 00 00 00 00 68 0C 62 [14:00:10]RasterBufferAndPrint [14:00:10]line [14:00:10]line [14:00:10]line [14:00:10]line [14:00:10]line [14:00:10]written 0, free lines is 3180 [14:00:10]MH_Cut [14:00:10]Write to MH i2c: D1 01 00 64 8A 01 C0 [14:00:10]Write i2c OK [14:00:10]MH_I2C_Read... [14:00:10]Read from MH i2c: D1 [14:00:10]MH_I2C_Read... [14:00:10]Read from MH i2c: D1 01 00 [14:00:10]MH_I2C_Read... [14:00:10]Read from MH i2c: D1 01 00 64 8A 00 BF [14:00:10]Write to MH i2c: 01 00 00 65 8A EF [14:00:10]Write i2c OK [14:00:10]MH_I2C_Read... [14:00:10]OFD Sender: No OFD packet to send [14:00:11]*** Cut start [14:00:11]*** Purtial cut [14:00:11]*** Stage 1: CUTSNS_PIN = 1 [14:00:13]Read from MH i2c: 01 [14:00:13]MH_I2C_Read... [14:00:13]*** Stop cut motor [14:00:13]*** Cut end [14:00:13]Read from MH i2c: 01 07 00 [14:00:13]MH_I2C_Read... [14:00:13]Read from MH i2c: 01 07 00 65 8A 00 00 00 00 00 FF 0F 04 [14:00:13]process_action close_receipt done [14:00:13]requested_data is exist [14:00:13]produce_requested_data [14:00:13]requested_item fm.sn is exist - process it [14:00:13]wFMCommunicate request_size=4 [14:00:13]MH_SAM_APDU [14:00:13]CAPDU: 80 11 00 00 [14:00:13]Write to MH i2c: E2 08 00 66 8A 80 11 00 00 00 00 00 00 6A [14:00:13]Write i2c OK [14:00:13]MH_I2C_Read... [14:00:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:13]Read from MH i2c: E2 [14:00:13]MH_I2C_Read... [14:00:13]Read from MH i2c: E2 17 00 [14:00:13]MH_I2C_Read... [14:00:13]Read from MH i2c: E2 17 00 66 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B7 [14:00:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:00:13]wFMCommunicate OK [14:00:13]requested_item fd.num is exist - process it [14:00:13]SAM_PROTO_GetFieldsCounters [14:00:13]wFMCommunicate request_size=4 [14:00:13]MH_SAM_APDU [14:00:13]CAPDU: 80 13 00 00 [14:00:13]Write to MH i2c: E2 08 00 67 8A 80 13 00 00 00 00 00 00 6D [14:00:13]Write i2c OK [14:00:13]MH_I2C_Read... [14:00:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:13]Read from MH i2c: E2 [14:00:13]MH_I2C_Read... [14:00:13]Read from MH i2c: E2 62 00 [14:00:13]MH_I2C_Read... [14:00:13]Read from MH i2c: E2 62 00 67 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 6A FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 E8 [14: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 6A FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:00:13]wFMCommunicate OK [14:00:13]SAM_PROTO_GetFieldsCounters done [14:00:13]requested_item shift.num is exist - process it [14:00:13]requested_item shift.opened is exist - process it [14:00:13]req_shift_opened [14:00:13]FM_GetShiftState [14:00:13]SAM_PROTO_GetShiftState [14:00:13]wFMCommunicate request_size=4 [14:00:13]MH_SAM_APDU [14:00:13]CAPDU: 80 13 01 00 [14:00:13]Write to MH i2c: E2 08 00 68 8A 80 13 01 00 00 00 00 00 6F [14:00:13]Write i2c OK [14:00:13]MH_I2C_Read... [14:00:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:13]Read from MH i2c: E2 [14:00:13]MH_I2C_Read... [14:00:13]Read from MH i2c: E2 0E 00 [14:00:13]MH_I2C_Read... [14:00:13]Read from MH i2c: E2 0E 00 68 8A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 AC [14:00:13]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:00:13]wFMCommunicate OK [14:00:13]SAM_PROTO_GetShiftState done [14:00:13]FM_GetShiftState done [14:00:13]req_shift_opened done [14:00:13]requested_item shift.open_date is exist - process it [14:00:13]req_shift_open_date [14:00:13]req_shift_open_date done [14:00:13]produce_requested_data done [14:00:13]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260714,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [14:00:13]process_action_free close_receipt [14:00:13]json_value_free [14:00:13]json_value_free done [14:00:13]process_json_proto returns [14:00:13]Send response to host [14:00:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260714,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [14:00:13]free response buf [14:00:13]execute_script done [14:00:13]execute_script returns [14:00:13]free content buf [14:00:13]Sock 7.Close socket [14:00:13]Sock 7.Thread stoped [14:00:15]OFD Sender: No OFD packet to send [14:00:20]OFD Sender: No OFD packet to send [14:00:25]OFD Sender: No OFD packet to send [14:00:30]OFD Sender: No OFD packet to send [14:00:35]OFD Sender: No OFD packet to send [14:00:40]OFD Sender: No OFD packet to send [14:00:45]OFD Sender: No OFD packet to send [14:00:50]OFD Sender: No OFD packet to send [14:00:55]OFD Sender: No OFD packet to send [14:01:00]OFD Sender: No OFD packet to send [14:01:05]OFD Sender: No OFD packet to send [14:01:10]OFD Sender: No OFD packet to send [14:01:15]OFD Sender: No OFD packet to send [14:01:20]OFD Sender: No OFD packet to send [14:01:25]OFD Sender: No OFD packet to send [14:01:30]OFD Sender: No OFD packet to send [14:01:35]OFD Sender: No OFD packet to send [14:01:40]OFD Sender: No OFD packet to send [14:01:45]OFD Sender: No OFD packet to send [14:01:50]OFD Sender: No OFD packet to send [14:01:55]OFD Sender: No OFD packet to send [14:02:00]OFD Sender: No OFD packet to send [14:02:05]OFD Sender: No OFD packet to send [14:02:10]OFD Sender: No OFD packet to send [14:02:15]OFD Sender: No OFD packet to send [14:02:20]OFD Sender: No OFD packet to send [14:02:25]OFD Sender: No OFD packet to send [14:02:30]OFD Sender: No OFD packet to send [14:02:35]OFD Sender: No OFD packet to send [14:02:40]OFD Sender: No OFD packet to send [14:02:45]OFD Sender: No OFD packet to send [14:02:50]OFD Sender: No OFD packet to send [14:02:55]OFD Sender: No OFD packet to send [14:03:00]OFD Sender: No OFD packet to send [14:03:05]OFD Sender: No OFD packet to send [14:03:10]OFD Sender: No OFD packet to send [14:03:15]OFD Sender: No OFD packet to send [14:03:20]OFD Sender: No OFD packet to send [14:03:25]OFD Sender: No OFD packet to send [14:03:30]OFD Sender: No OFD packet to send [14:03:35]OFD Sender: No OFD packet to send [14:03:40]OFD Sender: No OFD packet to send [14:03:45]OFD Sender: No OFD packet to send [14:03:50]OFD Sender: No OFD packet to send [14:03:55]OFD Sender: No OFD packet to send [14:04:00]OFD Sender: No OFD packet to send [14:04:05]OFD Sender: No OFD packet to send [14:04:10]OFD Sender: No OFD packet to send [14:04:15]OFD Sender: No OFD packet to send [14:04:20]OFD Sender: No OFD packet to send [14:04:25]OFD Sender: No OFD packet to send [14:04:30]OFD Sender: No OFD packet to send [14:04:35]OFD Sender: No OFD packet to send [14:04:40]OFD Sender: No OFD packet to send [14:04:45]OFD Sender: No OFD packet to send [14:04:50]OFD Sender: No OFD packet to send [14:04:55]OFD Sender: No OFD packet to send [14:05:00]OFD Sender: No OFD packet to send [14:05:05]OFD Sender: No OFD packet to send [14:05:10]OFD Sender: No OFD packet to send [14:05:15]OFD Sender: No OFD packet to send [14:05:20]OFD Sender: No OFD packet to send [14:05:25]OFD Sender: No OFD packet to send [14:05:30]OFD Sender: No OFD packet to send [14:05:36]OFD Sender: No OFD packet to send [14:05:41]OFD Sender: No OFD packet to send [14:05:46]OFD Sender: No OFD packet to send [14:05:51]OFD Sender: No OFD packet to send [14:05:56]OFD Sender: No OFD packet to send [14:06:01]OFD Sender: No OFD packet to send [14:06:06]OFD Sender: No OFD packet to send [14:06:11]OFD Sender: No OFD packet to send [14:06:16]OFD Sender: No OFD packet to send [14:06:21]OFD Sender: No OFD packet to send [14:06:26]OFD Sender: No OFD packet to send [14:06:31]OFD Sender: No OFD packet to send [14:06:36]OFD Sender: No OFD packet to send [14:06:41]OFD Sender: No OFD packet to send [14:06:46]OFD Sender: No OFD packet to send [14:06:51]OFD Sender: No OFD packet to send [14:06:56]OFD Sender: No OFD packet to send [14:07:01]OFD Sender: No OFD packet to send [14:07:06]OFD Sender: No OFD packet to send [14:07:11]OFD Sender: No OFD packet to send [14:07:16]OFD Sender: No OFD packet to send [14:07:21]OFD Sender: No OFD packet to send [14:07:25]accept exits with 9 [14:07:25]New connection [14:07:25]New thread 3066617188 created [14:07:25]Thread 3066473828 joined [14:07:25]Waiting for new connection... [14:07:25] Sock 9.Parse request [14:07:25]Sock 9.Check first char [14:07:25]Sock 9.First char is OK [14:07:25]request: POST /json_proto HTTP/1.0 [14:07:25]Method: POST [14:07:25]URL: /json_proto [14:07:25]Method is POST - this is cgi request [14:07:25]url: /json_proto [14:07:25]query_string will be loaded in cgi processing [14:07:25]execute_cgi json_proto POST (null) [14:07:25]execute_cgi path=json_proto method=POST [14:07:25]POST find Content-Length [14:07:25]Host: 172.17.55.133:8080 [14:07:25]Content-Length: 688 [14:07:25]Content-Type: application/json [14:07:25] [14:07:25]POST finish read [14:07:25]Found Content-Length = 688 [14:07:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:25]execute_script... [14:07: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)1036263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:25]POST & json_proto [14:07:25]process_json_proto [14:07:25]json parsed OK: [14:07:25]protocol is kg_v1.0 [14:07:25]action value=close_receipt [14:07:25]process_action close_receipt [14:07:25]cmd_close_receipt [14:07:25]MH_GetDate [14:07:25]Write to MH i2c: F0 00 00 69 8A E2 [14:07:25]Write i2c OK [14:07:25]MH_I2C_Read... [14:07:25]Read from MH i2c: F0 [14:07:25]MH_I2C_Read... [14:07:25]Read from MH i2c: F0 09 00 [14:07:25]MH_I2C_Read... [14:07:25]Read from MH i2c: F0 09 00 69 8A 00 23 00 C2 66 34 48 D8 65 EF [14:07:25]GetLastDocTimeStamp 1723989613 [14:07:25]current date 1723990051 [14:07:25]FM_GetShiftState [14:07:25]SAM_PROTO_GetShiftState [14:07:25]wFMCommunicate request_size=4 [14:07:25]MH_SAM_APDU [14:07:25]CAPDU: 80 13 01 00 [14:07:25]Write to MH i2c: E2 08 00 6A 8A 80 13 01 00 00 00 00 00 71 [14:07:25]Write i2c OK [14:07:25]MH_I2C_Read... [14:07:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:26]Read from MH i2c: E2 [14:07:26]MH_I2C_Read... [14:07:26]Read from MH i2c: E2 0E 00 [14:07:26]MH_I2C_Read... [14:07:26]Read from MH i2c: E2 0E 00 6A 8A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 AE [14:07:26]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:07:26]wFMCommunicate OK [14:07:26]SAM_PROTO_GetShiftState done [14:07:26]FM_GetShiftState done [14:07:26]opened in 1723940556 [14:07:26]opened+sec_in_day 1724026956 [14:07:26]quantity*price = 100050 [14:07:26]sum+1 = 100052 [14:07:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 273 18.08.2024 14:07 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260715 ФПД: 77871495261605 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T140731&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260715&fm=77871495261605&tin=02508201610067®Number=0000000000091865&sum=100000 [14:07:27]StoreToDocumentArchive [14:07:27]shift 449 fd 260715 [14:07:27]save to /storage/0449/doc_00260715 [14:07:27]save last doc name /storage/0449/doc_00260715 to /storage/kkm_last_doc_name [14:07:27]save OK [14:07:27]Clear old archive folders... [14:07:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:07:27]tlvbuf is 003E26D0 [14:07:27]SAM_PROTO_ClearQueue [14:07:27]wFMCommunicate request_size=4 [14:07:27]MH_SAM_APDU [14:07:27]CAPDU: 80 09 00 00 [14:07:27]Write to MH i2c: E2 08 00 77 8A 80 09 00 00 00 00 00 00 73 [14:07:27]Write i2c OK [14:07:27]MH_I2C_Read... [14:07:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:07:27]Read from MH i2c: E2 [14:07:27]MH_I2C_Read... [14:07:27]Read from MH i2c: E2 03 00 [14:07:27]MH_I2C_Read... [14:07:27]Read from MH i2c: E2 03 00 77 8A 00 90 00 75 [14:07:27]RAPDU: 90 00 [14:07:27]wFMCommunicate OK [14:07:27]SAM_PROTO_ClearQueue done [14:07:27]KKMCreateOFDPacket [14:07:27]OFDProtocolAddRootSTLVToBuf [14:07:27]FM_MakeSignedData [14:07:27]FM_MakeSignedData [14:07:27]SAM_PROTO_SignData [14:07:27]wFMCommunicate request_size=4 [14:07:27]MH_SAM_APDU [14:07:27]CAPDU: 80 0D 01 02 [14:07:27]Write to MH i2c: E2 08 00 78 8A 80 0D 01 02 00 00 00 00 7B [14:07:27]Write i2c OK [14:07:27]MH_I2C_Read... [14:07:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:07:27]Read from MH i2c: E2 [14:07:27]MH_I2C_Read... [14:07:27]Read from MH i2c: E2 03 00 [14:07:27]MH_I2C_Read... [14:07:27]Read from MH i2c: E2 03 00 78 8A 00 90 00 76 [14:07:27]RAPDU: 90 00 [14:07:27]wFMCommunicate OK [14:07:27]wFMCommunicate request_size=255 [14:07:27]MH_SAM_APDU [14:07:27]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 23 00 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6B FA 03 00 35 04 06 00 [14:07:27]Write to MH i2c: E2 02 01 79 8A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 23 00 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6B FA 03 00 35 04 06 00 00 00 6C [14:07:27]Write i2c OK [14:07:27]MH_I2C_Read... [14:07:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:27]Read from MH i2c: E2 [14:07:27]MH_I2C_Read... [14:07:27]Read from MH i2c: E2 03 00 [14:07:27]MH_I2C_Read... [14:07:27]Read from MH i2c: E2 03 00 79 8A 00 90 00 77 [14:07:27]RAPDU: 90 00 [14:07:27]wFMCommunicate OK [14:07:27]wFMCommunicate request_size=11 [14:07:27]MH_SAM_APDU [14:07:27]CAPDU: 80 0D 02 02 06 46 D2 DE D0 2D A5 [14:07:27]Write to MH i2c: E2 0E 00 7A 8A 80 0D 02 02 06 00 46 D2 DE D0 2D A5 00 00 22 [14:07:27]Write i2c OK [14:07:27]MH_I2C_Read... [14:07:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:27]Read from MH i2c: E2 [14:07:27]MH_I2C_Read... [14:07:27]Read from MH i2c: E2 03 00 [14:07:27]MH_I2C_Read... [14:07:27]Read from MH i2c: E2 03 00 7A 8A 00 90 00 78 [14:07:27]RAPDU: 90 00 [14:07:27]wFMCommunicate OK [14:07:27]wFMCommunicate request_size=4 [14:07:27]MH_SAM_APDU [14:07:27]CAPDU: 80 0D 03 02 [14:07:27]Write to MH i2c: E2 08 00 7B 8A 80 0D 03 02 00 00 00 00 80 [14:07:27]Write i2c OK [14:07:27]MH_I2C_Read... [14:07:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:07:27]Read from MH i2c: E2 [14:07:27]MH_I2C_Read... [14:07:27]Read from MH i2c: E2 0B 00 [14:07:27]MH_I2C_Read... [14:07:27]Read from MH i2c: E2 0B 00 7B 8A 00 CC 47 B4 AB B6 0C 85 05 90 00 3F [14:07:27]RAPDU: CC 47 B4 AB B6 0C 85 05 90 00 [14:07:27]wFMCommunicate OK [14:07:27]SAM_PROTO_SignData done [14:07:27]FM_MakeSignedData done [14:07:27]CreateOFDProtocolMessage [14:07:27]wFMCommunicate request_size=4 [14:07:27]MH_SAM_APDU [14:07:27]CAPDU: 80 11 00 00 [14:07:27]Write to MH i2c: E2 08 00 7C 8A 80 11 00 00 00 00 00 00 80 [14:07:27]Write i2c OK [14:07:27]MH_I2C_Read... [14:07:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:27]Read from MH i2c: E2 [14:07:27]MH_I2C_Read... [14:07:27]Read from MH i2c: E2 17 00 [14:07:27]MH_I2C_Read... [14:07:27]Read from MH i2c: E2 17 00 7C 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 CD [14:07:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:07:27]wFMCommunicate OK [14:07:27]CreateOFDProtocolMessage done [14:07:27]OFDSenderStorePacket 260715 [14:07:27]StoreOFDPacket docnum=260715 [14:07:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 A3 1D 08 01 E3 74 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 23 00 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6B FA 03 00 35 04 06 00 46 D2 DE D0 2D A5 CC 47 B4 AB B6 0C 85 05 [14:07:27]CheckFolder [14:07:27]dirname=/storage/ofd_packets [14:07:27]CheckFolder done [14:07:27]ProducePacketName [14:07:27]name=ofd_packets/00260715 [14:07:27]NVStorageSaveData ofd_packets/00260715 [14:07:27]File name is /storage/ofd_packets/00260715 [14:07:27]Write 302 bytes [14:07:27]NVStorageSaveData done [14:07:27]OFDSenderStorePacket done [14:07:27]KKMCreateOFDPacket done [14:07:27]NVStorageSaveData kkm_last_timestamp [14:07:27]File name is /storage/kkm_last_timestamp [14:07:27]Write 4 bytes [14:07:27]NVStorageSaveData done [14:07:27]ExternCall_PrintAddStr [14:07:27]wPrintStart [14:07:27]Write to MH i2c: 01 00 00 7D 8A 07 [14:07:27]Write i2c OK [14:07:27]MH_I2C_Read... [14:07:27]Read from MH i2c: 01 [14:07:27]MH_I2C_Read... [14:07:27]Read from MH i2c: 01 07 00 [14:07:27]MH_I2C_Read... [14:07:27]Read from MH i2c: 01 07 00 7D 8A 00 00 00 00 00 FF 0F 1C [14:07:27]RasterBufferAndPrint [14:07:27]line Счет N : (1)1036263 [14:07:27]line ИНН: 02508201610067 [14:07:27]line Контрольно-Кассовый Чек [14:07:27]line ПРОДАЖА [14:07:27]line ТРК (МРК, ГНК) : 33 [14:07:27]line Товар: 2710194210 [14:07:27]line ДТ(л)-К-4 [14:07:27]line 13.130 * 76.20 [14:07:27]line = 1000.51 [14:07:27]line НДС 12% НСП 1% [14:07:27]line > о реализуемом товаре [14:07:27]line ОКРУГЛЕНИЕ: -0.51 [14:07:27]line ИТОГО: 1000.00 [14:07:27]line Внесено: 1000.00 [14:07:27]line СДАЧА: 0.00 [14:07:27]line НСП 1% : 8.85 [14:07:27]line НДС 12% : 106.25 [14:07:27]line Наличными: 1000.00 [14:07:27]line Безнал.: 0.00 [14:07:27]line Место: АЗС № 94 "Партнер Нефть" [14:07:27]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [14:07:27]line СНО: Общий режим [14:07:27]line Чек 273 18.08.2024 14:07 [14:07:27]line Смена: 449 ФФД: 1.0 [14:07:27]line ЗНМ: 0300000099 [14:07:27]line РНМ: 0000000000091865 [14:07:27]line Версия ККМ: 001 [14:07:27]line ФМ: 0000000000871820 [14:07:27]line ФД: 260715 [14:07:27]line ФПД: 77871495261605 [14:07:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T140731&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260715&fm=77871495261605&tin=02508201610067®Number=0000000000091865&sum=100000 [14:07:28]OFD Sender: Processing packet 260715 [packets to send 192, broken 191] [14:07:28]ProducePacketName [14:07:28]name=ofd_packets/00260715 [14:07:28]OFD Sender: To server: pG, [14:07:28]CommunicateWithHost lk.salyk.kg:30040 [14:07:28]ConnectInit lk.salyk.kg [14:07:28]written 0, free lines is 4095 [14:07:28]Connected sock=10 [14:07: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 30 10 01 00 00 A3 1D 08 01 E3 74 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 23 00 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6B FA 03 00 35 04 06 00 46 D2 DE D0 2D A5 CC 47 B4 AB B6 0C 85 05 [14:07: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 30 4F 00 00 00 25 C0 47 00 75 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 30 10 04 04 00 6B FA 03 00 F4 03 04 00 78 A9 C1 66 B6 04 01 00 00 B1 F0 D0 02 87 F7 50 EB [14:07:28]CommunicateWithHost err = 0 [14:07:28]CheckOFDResponse [14:07:28]1017 (14) - 77093643461234 [14:07:28]1041 (16) - 0000000000871820 [14:07:28]1040 (4) - 260715 [14:07:28]1012 (4) - 18.08.2024 07:57 [14:07:28]1206 (1) - 0 [14:07:28]OFD Sender: Remove packet 260715 [14:07:28]ProducePacketName [14:07:28]name=ofd_packets/00260715 [14:07:28]NVStorageDeleteData [14:07:28]Write to MH i2c: 01 00 00 A8 8A 32 [14:07:28]Write i2c OK [14:07:28]MH_I2C_Read... [14:07:28]Read from MH i2c: 01 [14:07:28]MH_I2C_Read... [14:07:28]Read from MH i2c: 01 07 00 [14:07:28]MH_I2C_Read... [14:07:28]Read from MH i2c: 01 07 00 A8 8A 00 00 00 00 00 69 0C AE [14:07:28]RasterBufferAndPrint [14:07:28]line [14:07:28]line [14:07:28]line [14:07:28]line [14:07:28]line [14:07:28]written 0, free lines is 3181 [14:07:28]MH_Cut [14:07:28]Write to MH i2c: D1 01 00 AF 8A 01 0B [14:07:28]Write i2c OK [14:07:28]MH_I2C_Read... [14:07:28]Read from MH i2c: D1 [14:07:28]MH_I2C_Read... [14:07:28]Read from MH i2c: D1 01 00 [14:07:28]MH_I2C_Read... [14:07:28]Read from MH i2c: D1 01 00 AF 8A 00 0A [14:07:28]Write to MH i2c: 01 00 00 B0 8A 3A [14:07:28]Write i2c OK [14:07:28]MH_I2C_Read... [14:07:28]OFD Sender: No OFD packet to send [14:07:29]*** Cut start [14:07:29]*** Purtial cut [14:07:29]*** Stage 1: CUTSNS_PIN = 1 [14:07:31]Read from MH i2c: 01 [14:07:31]MH_I2C_Read... [14:07:31]*** Stop cut motor [14:07:31]*** Cut end [14:07:31]Read from MH i2c: 01 07 00 [14:07:31]MH_I2C_Read... [14:07:31]Read from MH i2c: 01 07 00 B0 8A 00 00 00 00 00 FF 0F 4F [14:07:31]process_action close_receipt done [14:07:31]requested_data is exist [14:07:31]produce_requested_data [14:07:31]requested_item fm.sn is exist - process it [14:07:31]wFMCommunicate request_size=4 [14:07:31]MH_SAM_APDU [14:07:31]CAPDU: 80 11 00 00 [14:07:31]Write to MH i2c: E2 08 00 B1 8A 80 11 00 00 00 00 00 00 B5 [14:07:31]Write i2c OK [14:07:31]MH_I2C_Read... [14:07:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:31]Read from MH i2c: E2 [14:07:31]MH_I2C_Read... [14:07:31]Read from MH i2c: E2 17 00 [14:07:31]MH_I2C_Read... [14:07:31]Read from MH i2c: E2 17 00 B1 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 02 [14:07:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:07:31]wFMCommunicate OK [14:07:31]requested_item fd.num is exist - process it [14:07:31]SAM_PROTO_GetFieldsCounters [14:07:31]wFMCommunicate request_size=4 [14:07:31]MH_SAM_APDU [14:07:31]CAPDU: 80 13 00 00 [14:07:31]Write to MH i2c: E2 08 00 B2 8A 80 13 00 00 00 00 00 00 B8 [14:07:31]Write i2c OK [14:07:31]MH_I2C_Read... [14:07:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:07:31]Read from MH i2c: E2 [14:07:31]MH_I2C_Read... [14:07:31]Read from MH i2c: E2 62 00 [14:07:31]MH_I2C_Read... [14:07:31]Read from MH i2c: E2 62 00 B2 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 6B FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 37 [14:07: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 6B FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:07:31]wFMCommunicate OK [14:07:31]SAM_PROTO_GetFieldsCounters done [14:07:31]requested_item shift.num is exist - process it [14:07:31]requested_item shift.opened is exist - process it [14:07:31]req_shift_opened [14:07:31]FM_GetShiftState [14:07:31]SAM_PROTO_GetShiftState [14:07:31]wFMCommunicate request_size=4 [14:07:31]MH_SAM_APDU [14:07:31]CAPDU: 80 13 01 00 [14:07:31]Write to MH i2c: E2 08 00 B3 8A 80 13 01 00 00 00 00 00 BA [14:07:31]Write i2c OK [14:07:31]MH_I2C_Read... [14:07:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:31]Read from MH i2c: E2 [14:07:31]MH_I2C_Read... [14:07:31]Read from MH i2c: E2 0E 00 [14:07:31]MH_I2C_Read... [14:07:31]Read from MH i2c: E2 0E 00 B3 8A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F7 [14:07:31]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:07:31]wFMCommunicate OK [14:07:31]SAM_PROTO_GetShiftState done [14:07:31]FM_GetShiftState done [14:07:31]req_shift_opened done [14:07:31]requested_item shift.open_date is exist - process it [14:07:31]req_shift_open_date [14:07:31]req_shift_open_date done [14:07:31]produce_requested_data done [14:07:31]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260715,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [14:07:31]process_action_free close_receipt [14:07:31]json_value_free [14:07:31]json_value_free done [14:07:31]process_json_proto returns [14:07:31]Send response to host [14:07:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260715,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [14:07:31]free response buf [14:07:31]execute_script done [14:07:31]execute_script returns [14:07:31]free content buf [14:07:31]Sock 9.Close socket [14:07:31]Sock 9.Thread stoped [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:13]OFD Sender: No OFD packet to send [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:16]accept exits with 7 [14:09:16]New connection [14:09:16]New thread 3066473828 created [14:09:16]Thread 3066617188 joined [14:09:16]Waiting for new connection... [14:09:16] Sock 7.Parse request [14:09:16]Sock 7.Check first char [14:09:16]Sock 7.First char is OK [14:09:16]request: POST /json_proto HTTP/1.0 [14:09:16]Method: POST [14:09:16]URL: /json_proto [14:09:16]Method is POST - this is cgi request [14:09:16]url: /json_proto [14:09:16]query_string will be loaded in cgi processing [14:09:16]execute_cgi json_proto POST (null) [14:09:16]execute_cgi path=json_proto method=POST [14:09:16]POST find Content-Length [14:09:16]Host: 172.17.55.133:8080 [14:09:16]Content-Length: 755 [14:09:16]Content-Type: application/json [14:09:16] [14:09:16]POST finish read [14:09:16]Found Content-Length = 755 [14:09:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 40.760, "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\u000A30107132", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:16]execute_script... [14:09: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)1036264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 40.760, "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\u000A30107132", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:16]POST & json_proto [14:09:16]process_json_proto [14:09:16]json parsed OK: [14:09:16]protocol is kg_v1.0 [14:09:16]action value=close_receipt [14:09:16]process_action close_receipt [14:09:16]cmd_close_receipt [14:09:16]MH_GetDate [14:09:16]Write to MH i2c: F0 00 00 B4 8A 2D [14:09:16]Write i2c OK [14:09:16]MH_I2C_Read... [14:09:16]Read from MH i2c: F0 [14:09:16]MH_I2C_Read... [14:09:16]Read from MH i2c: F0 09 00 [14:09:16]MH_I2C_Read... [14:09:16]Read from MH i2c: F0 09 00 B4 8A 00 91 00 C2 66 34 48 D8 65 A8 [14:09:16]GetLastDocTimeStamp 1723990051 [14:09:16]current date 1723990161 [14:09:16]FM_GetShiftState [14:09:16]SAM_PROTO_GetShiftState [14:09:16]wFMCommunicate request_size=4 [14:09:16]MH_SAM_APDU [14:09:16]CAPDU: 80 13 01 00 [14:09:16]Write to MH i2c: E2 08 00 B5 8A 80 13 01 00 00 00 00 00 BC [14:09:16]Write i2c OK [14:09:16]MH_I2C_Read... [14:09:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:16]Read from MH i2c: E2 [14:09:16]MH_I2C_Read... [14:09:16]Read from MH i2c: E2 0E 00 [14:09:16]MH_I2C_Read... [14:09:16]Read from MH i2c: E2 0E 00 B5 8A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F9 [14:09:16]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:09:16]wFMCommunicate OK [14:09:16]SAM_PROTO_GetShiftState done [14:09:16]FM_GetShiftState done [14:09:16]opened in 1723940556 [14:09:16]opened+sec_in_day 1724026956 [14:09:16]quantity*price = 0 [14:09:16]sum+1 = 1 [14:09:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 274 18.08.2024 14:09 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: ТК ГПНА Online 30107132 ФМ: 0000000000871820 ФД: 260716 ФПД: 78492419790719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T140921&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260716&fm=78492419790719&tin=02508201610067®Number=0000000000091865&sum=0 [14:09:17]StoreToDocumentArchive [14:09:17]shift 449 fd 260716 [14:09:17]save to /storage/0449/doc_00260716 [14:09:17]save last doc name /storage/0449/doc_00260716 to /storage/kkm_last_doc_name [14:09:17]save OK [14:09:17]Clear old archive folders... [14:09:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:09:17]tlvbuf is 004A2050 [14:09:17]SAM_PROTO_ClearQueue [14:09:17]wFMCommunicate request_size=4 [14:09:17]MH_SAM_APDU [14:09:17]CAPDU: 80 09 00 00 [14:09:17]Write to MH i2c: E2 08 00 C2 8A 80 09 00 00 00 00 00 00 BE [14:09:17]Write i2c OK [14:09:17]MH_I2C_Read... [14:09:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:09:17]Read from MH i2c: E2 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E2 03 00 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E2 03 00 C2 8A 00 90 00 C0 [14:09:17]RAPDU: 90 00 [14:09:17]wFMCommunicate OK [14:09:17]SAM_PROTO_ClearQueue done [14:09:17]KKMCreateOFDPacket [14:09:17]OFDProtocolAddRootSTLVToBuf [14:09:17]FM_MakeSignedData [14:09:17]FM_MakeSignedData [14:09:17]SAM_PROTO_SignData [14:09:17]wFMCommunicate request_size=4 [14:09:17]MH_SAM_APDU [14:09:17]CAPDU: 80 0D 01 02 [14:09:17]Write to MH i2c: E2 08 00 C3 8A 80 0D 01 02 00 00 00 00 C6 [14:09:17]Write i2c OK [14:09:17]MH_I2C_Read... [14:09:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:09:17]Read from MH i2c: E2 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E2 03 00 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E2 03 00 C3 8A 00 90 00 C1 [14:09:17]RAPDU: 90 00 [14:09:17]wFMCommunicate OK [14:09:17]wFMCommunicate request_size=255 [14:09:17]MH_SAM_APDU [14:09:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 9F 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 12 01 00 00 F4 03 04 00 91 00 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6C FA 03 00 35 04 06 00 47 [14:09:17]Write to MH i2c: E2 02 01 C4 8A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 9F 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 12 01 00 00 F4 03 04 00 91 00 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6C FA 03 00 35 04 06 00 47 00 00 E3 [14:09:17]Write i2c OK [14:09:17]MH_I2C_Read... [14:09:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:17]Read from MH i2c: E2 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E2 03 00 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E2 03 00 C4 8A 00 90 00 C2 [14:09:17]RAPDU: 90 00 [14:09:17]wFMCommunicate OK [14:09:17]wFMCommunicate request_size=10 [14:09:17]MH_SAM_APDU [14:09:17]CAPDU: 80 0D 02 02 05 63 70 CC 97 7F [14:09:17]Write to MH i2c: E2 0D 00 C5 8A 80 0D 02 02 05 00 63 70 CC 97 7F 00 00 88 [14:09:17]Write i2c OK [14:09:17]MH_I2C_Read... [14:09:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:17]Read from MH i2c: E2 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E2 03 00 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E2 03 00 C5 8A 00 90 00 C3 [14:09:17]RAPDU: 90 00 [14:09:17]wFMCommunicate OK [14:09:17]wFMCommunicate request_size=4 [14:09:17]MH_SAM_APDU [14:09:17]CAPDU: 80 0D 03 02 [14:09:17]Write to MH i2c: E2 08 00 C6 8A 80 0D 03 02 00 00 00 00 CB [14:09:17]Write i2c OK [14:09:17]MH_I2C_Read... [14:09:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:09:17]Read from MH i2c: E2 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E2 0B 00 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E2 0B 00 C6 8A 00 BB FE BC D8 80 75 49 8D 90 00 E4 [14:09:17]RAPDU: BB FE BC D8 80 75 49 8D 90 00 [14:09:17]wFMCommunicate OK [14:09:17]SAM_PROTO_SignData done [14:09:17]FM_MakeSignedData done [14:09:17]CreateOFDProtocolMessage [14:09:17]wFMCommunicate request_size=4 [14:09:17]MH_SAM_APDU [14:09:17]CAPDU: 80 11 00 00 [14:09:17]Write to MH i2c: E2 08 00 C7 8A 80 11 00 00 00 00 00 00 CB [14:09:17]Write i2c OK [14:09:17]MH_I2C_Read... [14:09:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:17]Read from MH i2c: E2 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E2 17 00 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: E2 17 00 C7 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 18 [14:09:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:09:17]wFMCommunicate OK [14:09:17]CreateOFDProtocolMessage done [14:09:17]OFDSenderStorePacket 260716 [14:09:17]StoreOFDPacket docnum=260716 [14:09:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 6C CD 07 01 2E 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 9F 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 12 01 00 00 F4 03 04 00 91 00 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6C FA 03 00 35 04 06 00 47 63 70 CC 97 7F BB FE BC D8 80 75 49 8D [14:09:17]CheckFolder [14:09:17]dirname=/storage/ofd_packets [14:09:17]CheckFolder done [14:09:17]ProducePacketName [14:09:17]name=ofd_packets/00260716 [14:09:17]NVStorageSaveData ofd_packets/00260716 [14:09:17]File name is /storage/ofd_packets/00260716 [14:09:17]Write 301 bytes [14:09:17]NVStorageSaveData done [14:09:17]OFDSenderStorePacket done [14:09:17]KKMCreateOFDPacket done [14:09:17]NVStorageSaveData kkm_last_timestamp [14:09:17]File name is /storage/kkm_last_timestamp [14:09:17]Write 4 bytes [14:09:17]NVStorageSaveData done [14:09:17]ExternCall_PrintAddStr [14:09:17]wPrintStart [14:09:17]Write to MH i2c: 01 00 00 C8 8A 52 [14:09:17]OFD Sender: Processing packet 260716 [packets to send 192, broken 191] [14:09:17]ProducePacketName [14:09:17]name=ofd_packets/00260716 [14:09:17]OFD Sender: To server: pG, [14:09:17]CommunicateWithHost lk.salyk.kg:30040 [14:09:17]ConnectInit lk.salyk.kg [14:09:17]Write i2c OK [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: 01 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: 01 07 00 [14:09:17]MH_I2C_Read... [14:09:17]Read from MH i2c: 01 07 00 C8 8A 00 00 00 00 00 FF 0F 67 [14:09:17]RasterBufferAndPrint [14:09:17]line Счет N : (1)1036264 [14:09:17]line ИНН: 02508201610067 [14:09:17]line Контрольно-Кассовый Чек [14:09:17]line ПРОДАЖА [14:09:17]line ТРК (МРК, ГНК) : 12 [14:09:17]line Товар: 2710124130 [14:09:17]line Аи-92-К-5 [14:09:17]line 40.760 * 0.00 [14:09:17]line = 0.00 [14:09:17]line НДС 12% НСП 1% [14:09:17]line > о реализуемом товаре [14:09:17]line ИТОГО: 0.00 [14:09:17]line НСП 1% : 0.00 [14:09:17]line НДС 12% : 0.00 [14:09:17]line Наличными: 0.00 [14:09:17]line Безнал.: 0.00 [14:09:17]line Место: АЗС № 94 "Партнер Нефть" [14:09:17]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [14:09:17]line СНО: Общий режим [14:09:17]line Чек 274 18.08.2024 14:09 [14:09:17]line Смена: 449 ФФД: 1.0 [14:09:17]line ЗНМ: 0300000099 [14:09:17]line РНМ: 0000000000091865 [14:09:17]line Версия ККМ: 001 [14:09:17]line Талоны: ТК ГПНА Online [14:09:17]line 30107132 [14:09:17]line ФМ: 0000000000871820 [14:09:17]line ФД: 260716 [14:09:17]line ФПД: 78492419790719 [14:09:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T140921&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260716&fm=78492419790719&tin=02508201610067®Number=0000000000091865&sum=0 [14:09:17]written 0, free lines is 4095 [14:09:17]Connected sock=10 [14:09: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 30 0F 01 00 00 6C CD 07 01 2E 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 9F 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 12 01 00 00 F4 03 04 00 91 00 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6C FA 03 00 35 04 06 00 47 63 70 CC 97 7F BB FE BC D8 80 75 49 8D [14:09: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 30 4F 00 00 00 A9 31 47 00 27 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6C FA 03 00 F4 03 04 00 E5 A9 C1 66 B6 04 01 00 00 66 A8 CF 48 E5 EA 96 14 [14:09:18]CommunicateWithHost err = 0 [14:09:18]CheckOFDResponse [14:09:18]1017 (14) - 77093643461234 [14:09:18]1041 (16) - 0000000000871820 [14:09:18]1040 (4) - 260716 [14:09:18]1012 (4) - 18.08.2024 07:59 [14:09:18]1206 (1) - 0 [14:09:18]OFD Sender: Remove packet 260716 [14:09:18]ProducePacketName [14:09:18]name=ofd_packets/00260716 [14:09:18]NVStorageDeleteData [14:09:18]Write to MH i2c: 01 00 00 F2 8A 7C [14:09:18]Write i2c OK [14:09:18]MH_I2C_Read... [14:09:18]Read from MH i2c: 01 [14:09:18]MH_I2C_Read... [14:09:18]Read from MH i2c: 01 07 00 [14:09:18]MH_I2C_Read... [14:09:18]Read from MH i2c: 01 07 00 F2 8A 00 00 00 00 00 90 0C 1F [14:09:18]RasterBufferAndPrint [14:09:18]line [14:09:18]line [14:09:18]line [14:09:18]line [14:09:18]line [14:09:18]written 0, free lines is 3221 [14:09:18]MH_Cut [14:09:18]Write to MH i2c: D1 01 00 F9 8A 01 55 [14:09:18]Write i2c OK [14:09:18]MH_I2C_Read... [14:09:18]Read from MH i2c: D1 [14:09:18]MH_I2C_Read... [14:09:18]Read from MH i2c: D1 01 00 [14:09:18]MH_I2C_Read... [14:09:18]Read from MH i2c: D1 01 00 F9 8A 00 54 [14:09:18]Write to MH i2c: 01 00 00 FA 8A 84 [14:09:18]Write i2c OK [14:09:18]MH_I2C_Read... [14:09:18]OFD Sender: No OFD packet to send [14:09:19]*** Cut start [14:09:19]*** Purtial cut [14:09:19]*** Stage 1: CUTSNS_PIN = 1 [14:09:21]Read from MH i2c: 01 [14:09:21]MH_I2C_Read... [14:09:21]*** Stop cut motor [14:09:21]*** Cut end [14:09:21]Read from MH i2c: 01 07 00 [14:09:21]MH_I2C_Read... [14:09:21]Read from MH i2c: 01 07 00 FA 8A 00 00 00 00 00 FF 0F 99 [14:09:21]process_action close_receipt done [14:09:21]requested_data is exist [14:09:21]produce_requested_data [14:09:21]requested_item fm.sn is exist - process it [14:09:21]wFMCommunicate request_size=4 [14:09:21]MH_SAM_APDU [14:09:21]CAPDU: 80 11 00 00 [14:09:21]Write to MH i2c: E2 08 00 FB 8A 80 11 00 00 00 00 00 00 FF [14:09:21]Write i2c OK [14:09:21]MH_I2C_Read... [14:09:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:21]Read from MH i2c: E2 [14:09:21]MH_I2C_Read... [14:09:21]Read from MH i2c: E2 17 00 [14:09:21]MH_I2C_Read... [14:09:21]Read from MH i2c: E2 17 00 FB 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 4C [14:09:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:09:21]wFMCommunicate OK [14:09:21]requested_item fd.num is exist - process it [14:09:21]SAM_PROTO_GetFieldsCounters [14:09:21]wFMCommunicate request_size=4 [14:09:21]MH_SAM_APDU [14:09:21]CAPDU: 80 13 00 00 [14:09:21]Write to MH i2c: E2 08 00 FC 8A 80 13 00 00 00 00 00 00 02 [14:09:21]Write i2c OK [14:09:21]MH_I2C_Read... [14:09:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:09:21]Read from MH i2c: E2 [14:09:21]MH_I2C_Read... [14:09:21]Read from MH i2c: E2 62 00 [14:09:21]MH_I2C_Read... [14:09:21]Read from MH i2c: E2 62 00 FC 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 6C FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 85 [14:09: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 6C FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:09:21]wFMCommunicate OK [14:09:21]SAM_PROTO_GetFieldsCounters done [14:09:21]requested_item shift.num is exist - process it [14:09:21]requested_item shift.opened is exist - process it [14:09:21]req_shift_opened [14:09:21]FM_GetShiftState [14:09:21]SAM_PROTO_GetShiftState [14:09:21]wFMCommunicate request_size=4 [14:09:21]MH_SAM_APDU [14:09:21]CAPDU: 80 13 01 00 [14:09:21]Write to MH i2c: E2 08 00 FD 8A 80 13 01 00 00 00 00 00 04 [14:09:21]Write i2c OK [14:09:21]MH_I2C_Read... [14:09:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:21]Read from MH i2c: E2 [14:09:21]MH_I2C_Read... [14:09:21]Read from MH i2c: E2 0E 00 [14:09:21]MH_I2C_Read... [14:09:21]Read from MH i2c: E2 0E 00 FD 8A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 41 [14:09:21]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:09:21]wFMCommunicate OK [14:09:21]SAM_PROTO_GetShiftState done [14:09:21]FM_GetShiftState done [14:09:21]req_shift_opened done [14:09:21]requested_item shift.open_date is exist - process it [14:09:21]req_shift_open_date [14:09:21]req_shift_open_date done [14:09:21]produce_requested_data done [14:09:21]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260716,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [14:09:21]process_action_free close_receipt [14:09:21]json_value_free [14:09:21]json_value_free done [14:09:21]process_json_proto returns [14:09:21]Send response to host [14:09:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260716,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [14:09:21]free response buf [14:09:21]execute_script done [14:09:21]execute_script returns [14:09:21]free content buf [14:09:21]Sock 7.Close socket [14:09:21]Sock 7.Thread stoped [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:03]accept exits with 9 [14:11:03]New connection [14:11:03]New thread 3066617188 created [14:11:03]Thread 3066473828 joined [14:11:03]Waiting for new connection... [14:11:03] Sock 9.Parse request [14:11:03]Sock 9.Check first char [14:11:03]Sock 9.First char is OK [14:11:03]request: POST /json_proto HTTP/1.0 [14:11:03]Method: POST [14:11:03]URL: /json_proto [14:11:03]Method is POST - this is cgi request [14:11:03]url: /json_proto [14:11:03]query_string will be loaded in cgi processing [14:11:03]execute_cgi json_proto POST (null) [14:11:03]execute_cgi path=json_proto method=POST [14:11:03]POST find Content-Length [14:11:03]Host: 172.17.55.133:8080 [14:11:03]Content-Length: 678 [14:11:03]Content-Type: application/json [14:11:03] [14:11:03]POST finish read [14:11:03]Found Content-Length = 678 [14:11:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036265", "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" : 74.20, "quantity" : 4.930, "sum" : 365.81, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 365.00, "payments": [ { "type": 0, "sum" : 365.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:03]execute_script... [14:11: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)1036265", "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" : 74.20, "quantity" : 4.930, "sum" : 365.81, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 365.00, "payments": [ { "type": 0, "sum" : 365.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:03]POST & json_proto [14:11:03]process_json_proto [14:11:03]json parsed OK: [14:11:03]protocol is kg_v1.0 [14:11:03]action value=close_receipt [14:11:03]process_action close_receipt [14:11:03]cmd_close_receipt [14:11:03]MH_GetDate [14:11:03]Write to MH i2c: F0 00 00 FE 8A 77 [14:11:03]Write i2c OK [14:11:03]MH_I2C_Read... [14:11:03]Read from MH i2c: F0 [14:11:03]MH_I2C_Read... [14:11:03]Read from MH i2c: F0 09 00 [14:11:03]MH_I2C_Read... [14:11:03]Read from MH i2c: F0 09 00 FE 8A 00 FD 00 C2 66 34 48 D8 65 5E [14:11:03]GetLastDocTimeStamp 1723990161 [14:11:03]current date 1723990269 [14:11:03]FM_GetShiftState [14:11:03]SAM_PROTO_GetShiftState [14:11:03]wFMCommunicate request_size=4 [14:11:03]MH_SAM_APDU [14:11:03]CAPDU: 80 13 01 00 [14:11:03]Write to MH i2c: E2 08 00 FF 8A 80 13 01 00 00 00 00 00 06 [14:11:03]Write i2c OK [14:11:03]MH_I2C_Read... [14:11:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:03]Read from MH i2c: E2 [14:11:03]MH_I2C_Read... [14:11:03]Read from MH i2c: E2 0E 00 [14:11:03]MH_I2C_Read... [14:11:03]Read from MH i2c: E2 0E 00 FF 8A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 43 [14:11:03]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:11:03]wFMCommunicate OK [14:11:03]SAM_PROTO_GetShiftState done [14:11:03]FM_GetShiftState done [14:11:03]opened in 1723940556 [14:11:03]opened+sec_in_day 1724026956 [14:11:03]quantity*price = 36580 [14:11:03]sum+1 = 36582 [14:11:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.81 ИТОГО: 365.00 Внесено: 400.00 СДАЧА: 35.00 НСП 1% : 3.24 НДС 12% : 38.85 Наличными: 365.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 275 18.08.2024 14:11 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260717 ФПД: 150512678182808 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T141109&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260717&fm=150512678182808&tin=02508201610067®Number=0000000000091865&sum=36500 [14:11:05]StoreToDocumentArchive [14:11:05]shift 449 fd 260717 [14:11:05]save to /storage/0449/doc_00260717 [14:11:05]save last doc name /storage/0449/doc_00260717 to /storage/kkm_last_doc_name [14:11:05]save OK [14:11:05]Clear old archive folders... [14:11:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:11:05]tlvbuf is 00336790 [14:11:05]SAM_PROTO_ClearQueue [14:11:05]wFMCommunicate request_size=4 [14:11:05]MH_SAM_APDU [14:11:05]CAPDU: 80 09 00 00 [14:11:05]Write to MH i2c: E2 08 00 0C 8B 80 09 00 00 00 00 00 00 09 [14:11:05]Write i2c OK [14:11:05]MH_I2C_Read... [14:11:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:11:05]Read from MH i2c: E2 [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: E2 03 00 [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: E2 03 00 0C 8B 00 90 00 0B [14:11:05]RAPDU: 90 00 [14:11:05]wFMCommunicate OK [14:11:05]SAM_PROTO_ClearQueue done [14:11:05]KKMCreateOFDPacket [14:11:05]OFDProtocolAddRootSTLVToBuf [14:11:05]FM_MakeSignedData [14:11:05]FM_MakeSignedData [14:11:05]SAM_PROTO_SignData [14:11:05]wFMCommunicate request_size=4 [14:11:05]MH_SAM_APDU [14:11:05]CAPDU: 80 0D 01 02 [14:11:05]Write to MH i2c: E2 08 00 0D 8B 80 0D 01 02 00 00 00 00 11 [14:11:05]Write i2c OK [14:11:05]MH_I2C_Read... [14:11:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:11:05]Read from MH i2c: E2 [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: E2 03 00 [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: E2 03 00 0D 8B 00 90 00 0C [14:11:05]RAPDU: 90 00 [14:11:05]wFMCommunicate OK [14:11:05]wFMCommunicate request_size=255 [14:11:05]MH_SAM_APDU [14:11: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 42 13 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E5 8E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 0F 00 00 00 00 07 04 06 00 94 8E 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 01 00 00 F4 03 04 00 FD 00 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6D FA 03 00 35 04 06 00 88 [14:11:05]Write to MH i2c: E2 02 01 0E 8B 80 0D 02 02 FA 00 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 42 13 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E5 8E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 0F 00 00 00 00 07 04 06 00 94 8E 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 01 00 00 F4 03 04 00 FD 00 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6D FA 03 00 35 04 06 00 88 00 00 AF [14:11:05]Write i2c OK [14:11:05]MH_I2C_Read... [14:11:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:05]Read from MH i2c: E2 [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: E2 03 00 [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: E2 03 00 0E 8B 00 90 00 0D [14:11:05]RAPDU: 90 00 [14:11:05]wFMCommunicate OK [14:11:05]wFMCommunicate request_size=10 [14:11:05]MH_SAM_APDU [14:11:05]CAPDU: 80 0D 02 02 05 E3 F6 B7 9F 98 [14:11:05]Write to MH i2c: E2 0D 00 0F 8B 80 0D 02 02 05 00 E3 F6 B7 9F 98 00 00 E5 [14:11:05]Write i2c OK [14:11:05]MH_I2C_Read... [14:11:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:05]Read from MH i2c: E2 [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: E2 03 00 [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: E2 03 00 0F 8B 00 90 00 0E [14:11:05]RAPDU: 90 00 [14:11:05]wFMCommunicate OK [14:11:05]wFMCommunicate request_size=4 [14:11:05]MH_SAM_APDU [14:11:05]CAPDU: 80 0D 03 02 [14:11:05]Write to MH i2c: E2 08 00 10 8B 80 0D 03 02 00 00 00 00 16 [14:11:05]Write i2c OK [14:11:05]MH_I2C_Read... [14:11:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:11:05]Read from MH i2c: E2 [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: E2 0B 00 [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: E2 0B 00 10 8B 00 5C AD DC E3 29 3E 77 FA 90 00 B7 [14:11:05]RAPDU: 5C AD DC E3 29 3E 77 FA 90 00 [14:11:05]wFMCommunicate OK [14:11:05]SAM_PROTO_SignData done [14:11:05]FM_MakeSignedData done [14:11:05]CreateOFDProtocolMessage [14:11:05]wFMCommunicate request_size=4 [14:11:05]MH_SAM_APDU [14:11:05]CAPDU: 80 11 00 00 [14:11:05]Write to MH i2c: E2 08 00 11 8B 80 11 00 00 00 00 00 00 16 [14:11:05]Write i2c OK [14:11:05]MH_I2C_Read... [14:11:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:05]Read from MH i2c: E2 [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: E2 17 00 [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: E2 17 00 11 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 63 [14:11:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:11:05]wFMCommunicate OK [14:11:05]CreateOFDProtocolMessage done [14:11:05]OFDSenderStorePacket 260717 [14:11:05]StoreOFDPacket docnum=260717 [14:11:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 0C BF 07 01 88 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 42 13 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E5 8E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 0F 00 00 00 00 07 04 06 00 94 8E 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 01 00 00 F4 03 04 00 FD 00 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6D FA 03 00 35 04 06 00 88 E3 F6 B7 9F 98 5C AD DC E3 29 3E 77 FA [14:11:05]CheckFolder [14:11:05]dirname=/storage/ofd_packets [14:11:05]CheckFolder done [14:11:05]ProducePacketName [14:11:05]name=ofd_packets/00260717 [14:11:05]NVStorageSaveData ofd_packets/00260717 [14:11:05]File name is /storage/ofd_packets/00260717 [14:11:05]Write 301 bytes [14:11:05]NVStorageSaveData done [14:11:05]OFDSenderStorePacket done [14:11:05]KKMCreateOFDPacket done [14:11:05]NVStorageSaveData kkm_last_timestamp [14:11:05]File name is /storage/kkm_last_timestamp [14:11:05]Write 4 bytes [14:11:05]NVStorageSaveData done [14:11:05]OFD Sender: Processing packet 260717 [packets to send 192, broken 191] [14:11:05]ProducePacketName [14:11:05]name=ofd_packets/00260717 [14:11:05]OFD Sender: To server: pG, [14:11:05]CommunicateWithHost lk.salyk.kg:30040 [14:11:05]ConnectInit lk.salyk.kg [14:11:05]ExternCall_PrintAddStr [14:11:05]wPrintStart [14:11:05]Write to MH i2c: 01 00 00 12 8B 9D [14:11:05]Write i2c OK [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: 01 [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: 01 07 00 [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: 01 07 00 12 8B 00 00 00 00 00 FF 0F B2 [14:11:05]RasterBufferAndPrint [14:11:05]line Счет N : (1)1036265 [14:11:05]line ИНН: 02508201610067 [14:11:05]line Контрольно-Кассовый Чек [14:11:05]line ПРОДАЖА [14:11:05]line ТРК (МРК, ГНК) : 13 [14:11:05]line Товар: 2710124500 [14:11:05]line Аи-95-К-5 [14:11:05]line 4.930 * 74.20 [14:11:05]line = 365.81 [14:11:05]line НДС 12% НСП 1% [14:11:05]line > о реализуемом товаре [14:11:05]line ОКРУГЛЕНИЕ: -0.81 [14:11:05]line ИТОГО: 365.00 [14:11:05]line Внесено: 400.00 [14:11:05]line СДАЧА: 35.00 [14:11:05]line НСП 1% : 3.24 [14:11:05]line НДС 12% : 38.85 [14:11:05]line Наличными: 365.00 [14:11:05]line Безнал.: 0.00 [14:11:05]line Место: АЗС № 94 "Партнер Нефть" [14:11:05]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [14:11:05]line СНО: Общий режим [14:11:05]line Чек 275 18.08.2024 14:11 [14:11:05]line Смена: 449 ФФД: 1.0 [14:11:05]line ЗНМ: 0300000099 [14:11:05]line РНМ: 0000000000091865 [14:11:05]line Версия ККМ: 001 [14:11:05]line ФМ: 0000000000871820 [14:11:05]line ФД: 260717 [14:11:05]line ФПД: 150512678182808 [14:11:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T141109&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260717&fm=150512678182808&tin=02508201610067®Number=0000000000091865&sum=36500 [14:11:06]Connected sock=11 [14:11: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 30 0F 01 00 00 0C BF 07 01 88 F8 5A 03 written 0, free lines is 4095 [14:11:06]01 00 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 42 13 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E5 8E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 0F 00 00 00 00 07 04 06 00 94 8E 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 01 00 00 F4 03 04 00 FD 00 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6D FA 03 00 35 04 06 00 88 E3 F6 B7 9F 98 5C AD DC E3 29 3E 77 FA [14:11: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 30 4F 00 00 00 4B 7F 47 00 3D 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 30 10 04 04 00 6D FA 03 00 F4 03 04 00 51 AA C1 66 B6 04 01 00 00 39 11 28 79 9B 99 66 D6 [14:11:06]CommunicateWithHost err = 0 [14:11:06]CheckOFDResponse [14:11:06]1017 (14) - 77093643461234 [14:11:06]1041 (16) - 0000000000871820 [14:11:06]1040 (4) - 260717 [14:11:06]1012 (4) - 18.08.2024 08:01 [14:11:06]1206 (1) - 0 [14:11:06]OFD Sender: Remove packet 260717 [14:11:06]ProducePacketName [14:11:06]name=ofd_packets/00260717 [14:11:06]NVStorageDeleteData [14:11:06]Write to MH i2c: 01 00 00 3D 8B C8 [14:11:06]Write i2c OK [14:11:06]MH_I2C_Read... [14:11:06]Read from MH i2c: 01 [14:11:06]MH_I2C_Read... [14:11:06]Read from MH i2c: 01 07 00 [14:11:06]MH_I2C_Read... [14:11:06]Read from MH i2c: 01 07 00 3D 8B 00 00 00 00 00 6E 0C 49 [14:11:06]RasterBufferAndPrint [14:11:06]line [14:11:06]line [14:11:06]line [14:11:06]line [14:11:06]line [14:11:06]written 0, free lines is 3185 [14:11:06]MH_Cut [14:11:06]Write to MH i2c: D1 01 00 44 8B 01 A1 [14:11:06]Write i2c OK [14:11:06]MH_I2C_Read... [14:11:06]Read from MH i2c: D1 [14:11:06]MH_I2C_Read... [14:11:06]Read from MH i2c: D1 01 00 [14:11:06]MH_I2C_Read... [14:11:06]Read from MH i2c: D1 01 00 44 8B 00 A0 [14:11:06]Write to MH i2c: 01 00 00 45 8B D0 [14:11:06]Write i2c OK [14:11:06]MH_I2C_Read... [14:11:06]OFD Sender: No OFD packet to send [14:11:07]*** Cut start [14:11:07]*** Purtial cut [14:11:07]*** Stage 1: CUTSNS_PIN = 1 [14:11:09]Read from MH i2c: 01 [14:11:09]MH_I2C_Read... [14:11:09]*** Stop cut motor [14:11:09]*** Cut end [14:11:09]Read from MH i2c: 01 07 00 [14:11:09]MH_I2C_Read... [14:11:09]Read from MH i2c: 01 07 00 45 8B 00 00 00 00 00 FF 0F E5 [14:11:09]process_action close_receipt done [14:11:09]requested_data is exist [14:11:09]produce_requested_data [14:11:09]requested_item fm.sn is exist - process it [14:11:09]wFMCommunicate request_size=4 [14:11:09]MH_SAM_APDU [14:11:09]CAPDU: 80 11 00 00 [14:11:09]Write to MH i2c: E2 08 00 46 8B 80 11 00 00 00 00 00 00 4B [14:11:09]Write i2c OK [14:11:09]MH_I2C_Read... [14:11:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:09]Read from MH i2c: E2 [14:11:09]MH_I2C_Read... [14:11:09]Read from MH i2c: E2 17 00 [14:11:09]MH_I2C_Read... [14:11:09]Read from MH i2c: E2 17 00 46 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 98 [14:11:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:11:09]wFMCommunicate OK [14:11:09]requested_item fd.num is exist - process it [14:11:09]SAM_PROTO_GetFieldsCounters [14:11:09]wFMCommunicate request_size=4 [14:11:09]MH_SAM_APDU [14:11:09]CAPDU: 80 13 00 00 [14:11:09]Write to MH i2c: E2 08 00 47 8B 80 13 00 00 00 00 00 00 4E [14:11:09]Write i2c OK [14:11:09]MH_I2C_Read... [14:11:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:09]Read from MH i2c: E2 [14:11:09]MH_I2C_Read... [14:11:09]Read from MH i2c: E2 62 00 [14:11:09]MH_I2C_Read... [14:11:09]Read from MH i2c: E2 62 00 47 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 6D FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 D5 [14: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 6D FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:11:09]wFMCommunicate OK [14:11:09]SAM_PROTO_GetFieldsCounters done [14:11:09]requested_item shift.num is exist - process it [14:11:09]requested_item shift.opened is exist - process it [14:11:09]req_shift_opened [14:11:09]FM_GetShiftState [14:11:09]SAM_PROTO_GetShiftState [14:11:09]wFMCommunicate request_size=4 [14:11:09]MH_SAM_APDU [14:11:09]CAPDU: 80 13 01 00 [14:11:09]Write to MH i2c: E2 08 00 48 8B 80 13 01 00 00 00 00 00 50 [14:11:09]Write i2c OK [14:11:09]MH_I2C_Read... [14:11:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:09]Read from MH i2c: E2 [14:11:09]MH_I2C_Read... [14:11:09]Read from MH i2c: E2 0E 00 [14:11:09]MH_I2C_Read... [14:11:09]Read from MH i2c: E2 0E 00 48 8B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 8D [14:11:09]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:11:09]wFMCommunicate OK [14:11:09]SAM_PROTO_GetShiftState done [14:11:09]FM_GetShiftState done [14:11:09]req_shift_opened done [14:11:09]requested_item shift.open_date is exist - process it [14:11:09]req_shift_open_date [14:11:09]req_shift_open_date done [14:11:09]produce_requested_data done [14:11:09]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260717,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [14:11:09]process_action_free close_receipt [14:11:09]json_value_free [14:11:09]json_value_free done [14:11:09]process_json_proto returns [14:11:09]Send response to host [14:11:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260717,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [14:11:09]free response buf [14:11:09]execute_script done [14:11:09]execute_script returns [14:11:09]free content buf [14:11:09]Sock 9.Close socket [14:11:09]Sock 9.Thread stoped [14:11:11]OFD Sender: No OFD packet to send [14:11:16]OFD Sender: No OFD packet to send [14:11:21]OFD Sender: No OFD packet to send [14:11:26]OFD Sender: No OFD packet to send [14:11:31]OFD Sender: No OFD packet to send [14:11:36]OFD Sender: No OFD packet to send [14:11:41]OFD Sender: No OFD packet to send [14:11:46]OFD Sender: No OFD packet to send [14:11:51]OFD Sender: No OFD packet to send [14:11:56]OFD Sender: No OFD packet to send [14:12:01]OFD Sender: No OFD packet to send [14:12:06]OFD Sender: No OFD packet to send [14:12:11]OFD Sender: No OFD packet to send [14:12:16]OFD Sender: No OFD packet to send [14:12:21]OFD Sender: No OFD packet to send [14:12:26]OFD Sender: No OFD packet to send [14:12:31]OFD Sender: No OFD packet to send [14:12:36]OFD Sender: No OFD packet to send [14:12:41]OFD Sender: No OFD packet to send [14:12:43]accept exits with 7 [14:12:43]New connection [14:12:43]New thread 3066473828 created [14:12:43]Thread 3066617188 joined [14:12:43]Waiting for new connection... [14:12:43] Sock 7.Parse request [14:12:43]Sock 7.Check first char [14:12:43]Sock 7.First char is OK [14:12:43]request: POST /json_proto HTTP/1.0 [14:12:43]Method: POST [14:12:43]URL: /json_proto [14:12:43]Method is POST - this is cgi request [14:12:43]url: /json_proto [14:12:43]query_string will be loaded in cgi processing [14:12:43]execute_cgi json_proto POST (null) [14:12:43]execute_cgi path=json_proto method=POST [14:12:43]POST find Content-Length [14:12:43]Host: 172.17.55.133:8080 [14:12:43]Content-Length: 801 [14:12:43]Content-Type: application/json [14:12:43] [14:12:43]POST finish read [14:12:43]Found Content-Length = 801 [14:12:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:43]execute_script... [14:12: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)1036266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:43]POST & json_proto [14:12:43]process_json_proto [14:12:43]json parsed OK: [14:12:43]protocol is kg_v1.0 [14:12:43]action value=close_receipt [14:12:43]process_action close_receipt [14:12:43]cmd_close_receipt [14:12:43]MH_GetDate [14:12:43]Write to MH i2c: F0 00 00 49 8B C3 [14:12:43]Write i2c OK [14:12:43]MH_I2C_Read... [14:12:43]Read from MH i2c: F0 [14:12:43]MH_I2C_Read... [14:12:43]Read from MH i2c: F0 09 00 [14:12:43]MH_I2C_Read... [14:12:43]Read from MH i2c: F0 09 00 49 8B 00 60 01 C2 66 34 48 D8 65 0E [14:12:43]GetLastDocTimeStamp 1723990269 [14:12:43]current date 1723990368 [14:12:43]FM_GetShiftState [14:12:43]SAM_PROTO_GetShiftState [14:12:43]wFMCommunicate request_size=4 [14:12:43]MH_SAM_APDU [14:12:43]CAPDU: 80 13 01 00 [14:12:43]Write to MH i2c: E2 08 00 4A 8B 80 13 01 00 00 00 00 00 52 [14:12:43]Write i2c OK [14:12:43]MH_I2C_Read... [14:12:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:43]Read from MH i2c: E2 [14:12:43]MH_I2C_Read... [14:12:43]Read from MH i2c: E2 0E 00 [14:12:43]MH_I2C_Read... [14:12:43]Read from MH i2c: E2 0E 00 4A 8B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 8F [14:12:43]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:12:43]wFMCommunicate OK [14:12:43]SAM_PROTO_GetShiftState done [14:12:43]FM_GetShiftState done [14:12:43]opened in 1723940556 [14:12:43]opened+sec_in_day 1724026956 [14:12:43]quantity*price = 40002 [14:12:43]sum+1 = 40003 [14:12:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.02 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.02 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 276 18.08.2024 14:12 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260718 ФПД: 185654844913642 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T141248&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260718&fm=185654844913642&tin=02508201610067®Number=0000000000091865&sum=40002 [14:12:44]StoreToDocumentArchive [14:12:44]shift 449 fd 260718 [14:12:44]save to /storage/0449/doc_00260718 [14:12:44]save last doc name /storage/0449/doc_00260718 to /storage/kkm_last_doc_name [14:12:44]save OK [14:12:44]Clear old archive folders... [14:12:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:12:44]tlvbuf is 00387500 [14:12:44]SAM_PROTO_ClearQueue [14:12:44]wFMCommunicate request_size=4 [14:12:44]MH_SAM_APDU [14:12:44]CAPDU: 80 09 00 00 [14:12:44]Write to MH i2c: E2 08 00 57 8B 80 09 00 00 00 00 00 00 54 [14:12:44]Write i2c OK [14:12:44]MH_I2C_Read... [14:12:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:12:44]Read from MH i2c: E2 [14:12:44]MH_I2C_Read... [14:12:44]Read from MH i2c: E2 03 00 [14:12:44]MH_I2C_Read... [14:12:44]Read from MH i2c: E2 03 00 57 8B 00 90 00 56 [14:12:44]RAPDU: 90 00 [14:12:44]wFMCommunicate OK [14:12:44]SAM_PROTO_ClearQueue done [14:12:44]KKMCreateOFDPacket [14:12:44]OFDProtocolAddRootSTLVToBuf [14:12:44]FM_MakeSignedData [14:12:44]FM_MakeSignedData [14:12:44]SAM_PROTO_SignData [14:12:44]wFMCommunicate request_size=4 [14:12:44]MH_SAM_APDU [14:12:44]CAPDU: 80 0D 01 02 [14:12:44]Write to MH i2c: E2 08 00 58 8B 80 0D 01 02 00 00 00 00 5C [14:12:44]Write i2c OK [14:12:44]MH_I2C_Read... [14:12:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:12:44]Read from MH i2c: E2 [14:12:44]MH_I2C_Read... [14:12:44]Read from MH i2c: E2 03 00 [14:12:44]MH_I2C_Read... [14:12:44]Read from MH i2c: E2 03 00 58 8B 00 90 00 57 [14:12:44]RAPDU: 90 00 [14:12:44]wFMCommunicate OK [14:12:44]wFMCommunicate request_size=255 [14:12:44]MH_SAM_APDU [14:12:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 60 01 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6E FA 03 00 35 04 06 00 A8 [14:12:44]Write to MH i2c: E2 02 01 59 8B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 60 01 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6E FA 03 00 35 04 06 00 A8 00 00 35 [14:12:44]Write i2c OK [14:12:44]MH_I2C_Read... [14:12:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:44]Read from MH i2c: E2 [14:12:44]MH_I2C_Read... [14:12:44]Read from MH i2c: E2 03 00 [14:12:44]MH_I2C_Read... [14:12:44]Read from MH i2c: E2 03 00 59 8B 00 90 00 58 [14:12:44]RAPDU: 90 00 [14:12:44]wFMCommunicate OK [14:12:44]wFMCommunicate request_size=10 [14:12:44]MH_SAM_APDU [14:12:44]CAPDU: 80 0D 02 02 05 DA 23 14 F7 EA [14:12:44]Write to MH i2c: E2 0D 00 5A 8B 80 0D 02 02 05 00 DA 23 14 F7 EA 00 00 5B [14:12:44]Write i2c OK [14:12:44]MH_I2C_Read... [14:12:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:44]Read from MH i2c: E2 [14:12:44]MH_I2C_Read... [14:12:44]Read from MH i2c: E2 03 00 [14:12:44]MH_I2C_Read... [14:12:44]Read from MH i2c: E2 03 00 5A 8B 00 90 00 59 [14:12:44]RAPDU: 90 00 [14:12:44]wFMCommunicate OK [14:12:44]wFMCommunicate request_size=4 [14:12:44]MH_SAM_APDU [14:12:44]CAPDU: 80 0D 03 02 [14:12:44]Write to MH i2c: E2 08 00 5B 8B 80 0D 03 02 00 00 00 00 61 [14:12:44]Write i2c OK [14:12:44]MH_I2C_Read... [14:12:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:12:44]Read from MH i2c: E2 [14:12:44]MH_I2C_Read... [14:12:44]Read from MH i2c: E2 0B 00 [14:12:44]MH_I2C_Read... [14:12:44]Read from MH i2c: E2 0B 00 5B 8B 00 2F AD B7 DE 93 00 3E 40 90 00 E4 [14:12:44]RAPDU: 2F AD B7 DE 93 00 3E 40 90 00 [14:12:44]wFMCommunicate OK [14:12:44]SAM_PROTO_SignData done [14:12:44]FM_MakeSignedData done [14:12:44]CreateOFDProtocolMessage [14:12:44]wFMCommunicate request_size=4 [14:12:44]MH_SAM_APDU [14:12:44]CAPDU: 80 11 00 00 [14:12:44]Write to MH i2c: E2 08 00 5C 8B 80 11 00 00 00 00 00 00 61 [14:12:44]Write i2c OK [14:12:44]MH_I2C_Read... [14:12:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:44]Read from MH i2c: E2 [14:12:44]MH_I2C_Read... [14:12:44]Read from MH i2c: E2 17 00 [14:12:44]MH_I2C_Read... [14:12:44]Read from MH i2c: E2 17 00 5C 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 AE [14:12:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:12:44]wFMCommunicate OK [14:12:44]CreateOFDProtocolMessage done [14:12:44]OFDSenderStorePacket 260718 [14:12:44]StoreOFDPacket docnum=260718 [14:12:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 EE D3 07 01 74 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 60 01 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6E FA 03 00 35 04 06 00 A8 DA 23 14 F7 EA 2F AD B7 DE 93 00 3E 40 [14:12:44]CheckFolder [14:12:44]dirname=/storage/ofd_packets [14:12:44]CheckFolder done [14:12:44]ProducePacketName [14:12:44]name=ofd_packets/00260718 [14:12:44]NVStorageSaveData ofd_packets/00260718 [14:12:44]File name is /storage/ofd_packets/00260718 [14:12:44]Write 301 bytes [14:12:44]NVStorageSaveData done [14:12:44]OFDSenderStorePacket done [14:12:44]KKMCreateOFDPacket done [14:12:44]NVStorageSaveData kkm_last_timestamp [14:12:44]File name is /storage/kkm_last_timestamp [14:12:44]Write 4 bytes [14:12:44]NVStorageSaveData done [14:12:44]ExternCall_PrintAddStr [14:12:44]wPrintStart [14:12:44]Write to MH i2c: 01 00 00 5D 8B E8 [14:12:44]Write i2c OK [14:12:44]MH_I2C_Read... [14:12:44]Read from MH i2c: 01 [14:12:44]MH_I2C_Read... [14:12:44]Read from MH i2c: 01 07 00 [14:12:44]MH_I2C_Read... [14:12:44]Read from MH i2c: 01 07 00 5D 8B 00 00 00 00 00 FF 0F FD [14:12:44]RasterBufferAndPrint [14:12:44]line Счет N : (1)1036266 [14:12:44]line ИНН: 02508201610067 [14:12:44]line Контрольно-Кассовый Чек [14:12:44]line ПРОДАЖА [14:12:44]line ТРК (МРК, ГНК) : 32 [14:12:44]line Товар: 2710124130 [14:12:44]line Аи-92-К-5 [14:12:44]line 5.900 * 67.80 [14:12:44]line = 400.02 [14:12:44]line НДС 12% НСП 1% [14:12:44]line > о реализуемом товаре [14:12:44]line ИТОГО: 400.02 [14:12:44]line НСП 1% : 3.54 [14:12:44]line НДС 12% : 42.48 [14:12:44]line Наличными: 0.00 [14:12:44]line Безнал.: 400.02 [14:12:44]line Место: АЗС № 94 "Партнер Нефть" [14:12:44]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [14:12:44]line СНО: Общий режим [14:12:44]line Чек 276 18.08.2024 14:12 [14:12:44]line Смена: 449 ФФД: 1.0 [14:12:44]line ЗНМ: 0300000099 [14:12:44]line РНМ: 0000000000091865 [14:12:44]line Версия ККМ: 001 [14:12:44]line Платежная система: O! деньги [14:12:44]line ФМ: 0000000000871820 [14:12:44]line ФД: 260718 [14:12:44]line ФПД: 185654844913642 [14:12:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T141248&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260718&fm=185654844913642&tin=02508201610067®Number=0000000000091865&sum=40002 [14:12:45]OFD Sender: Processing packet 260718 [packets to send 192, broken 191] [14:12:45]ProducePacketName [14:12:45]name=ofd_packets/00260718 [14:12:45]OFD Sender: To server: pG, [14:12:45]CommunicateWithHost lk.salyk.kg:30040 [14:12:45]ConnectInit lk.salyk.kg [14:12:45]written 0, free lines is 4095 [14:12:45]Connected sock=10 [14:12: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 30 0F 01 00 00 EE D3 07 01 74 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 60 01 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6E FA 03 00 35 04 06 00 A8 DA 23 14 F7 EA 2F AD B7 DE 93 00 3E 40 [14:12: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 30 4F 00 00 00 82 D5 47 00 C5 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 30 10 04 04 00 6E FA 03 00 F4 03 04 00 B5 AA C1 66 B6 04 01 00 00 29 15 CA F2 E7 9B E8 0C [14:12:45]CommunicateWithHost err = 0 [14:12:45]CheckOFDResponse [14:12:45]1017 (14) - 77093643461234 [14:12:45]1041 (16) - 0000000000871820 [14:12:45]1040 (4) - 260718 [14:12:45]1012 (4) - 18.08.2024 08:03 [14:12:45]1206 (1) - 0 [14:12:45]OFD Sender: Remove packet 260718 [14:12:45]ProducePacketName [14:12:45]name=ofd_packets/00260718 [14:12:45]NVStorageDeleteData [14:12:45]Write to MH i2c: 01 00 00 87 8B 12 [14:12:45]Write i2c OK [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: 01 [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: 01 07 00 [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: 01 07 00 87 8B 00 00 00 00 00 8A 0C AF [14:12:45]RasterBufferAndPrint [14:12:45]line [14:12:45]line [14:12:45]line [14:12:45]line [14:12:45]line [14:12:45]written 0, free lines is 3213 [14:12:45]MH_Cut [14:12:45]Write to MH i2c: D1 01 00 8E 8B 01 EB [14:12:45]Write i2c OK [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: D1 [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: D1 01 00 [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: D1 01 00 8E 8B 00 EA [14:12:45]Write to MH i2c: 01 00 00 8F 8B 1A [14:12:45]Write i2c OK [14:12:45]MH_I2C_Read... [14:12:45]OFD Sender: No OFD packet to send [14:12:46]*** Cut start [14:12:46]*** Purtial cut [14:12:46]*** Stage 1: CUTSNS_PIN = 1 [14:12:48]Read from MH i2c: 01 [14:12:48]MH_I2C_Read... [14:12:48]*** Stop cut motor [14:12:48]*** Cut end [14:12:48]Read from MH i2c: 01 07 00 [14:12:48]MH_I2C_Read... [14:12:48]Read from MH i2c: 01 07 00 8F 8B 00 00 00 00 00 FF 0F 2F [14:12:48]process_action close_receipt done [14:12:48]requested_data is exist [14:12:48]produce_requested_data [14:12:48]requested_item fm.sn is exist - process it [14:12:48]wFMCommunicate request_size=4 [14:12:48]MH_SAM_APDU [14:12:48]CAPDU: 80 11 00 00 [14:12:48]Write to MH i2c: E2 08 00 90 8B 80 11 00 00 00 00 00 00 95 [14:12:48]Write i2c OK [14:12:48]MH_I2C_Read... [14:12:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:48]Read from MH i2c: E2 [14:12:48]MH_I2C_Read... [14:12:48]Read from MH i2c: E2 17 00 [14:12:48]MH_I2C_Read... [14:12:48]Read from MH i2c: E2 17 00 90 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E2 [14:12:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:12:48]wFMCommunicate OK [14:12:48]requested_item fd.num is exist - process it [14:12:48]SAM_PROTO_GetFieldsCounters [14:12:48]wFMCommunicate request_size=4 [14:12:48]MH_SAM_APDU [14:12:48]CAPDU: 80 13 00 00 [14:12:48]Write to MH i2c: E2 08 00 91 8B 80 13 00 00 00 00 00 00 98 [14:12:48]Write i2c OK [14:12:48]MH_I2C_Read... [14:12:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:12:48]Read from MH i2c: E2 [14:12:48]MH_I2C_Read... [14:12:48]Read from MH i2c: E2 62 00 [14:12:48]MH_I2C_Read... [14:12:48]Read from MH i2c: E2 62 00 91 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 6E FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 23 [14:12: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 6E FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:12:48]wFMCommunicate OK [14:12:48]SAM_PROTO_GetFieldsCounters done [14:12:48]requested_item shift.num is exist - process it [14:12:48]requested_item shift.opened is exist - process it [14:12:48]req_shift_opened [14:12:48]FM_GetShiftState [14:12:48]SAM_PROTO_GetShiftState [14:12:48]wFMCommunicate request_size=4 [14:12:48]MH_SAM_APDU [14:12:48]CAPDU: 80 13 01 00 [14:12:48]Write to MH i2c: E2 08 00 92 8B 80 13 01 00 00 00 00 00 9A [14:12:48]Write i2c OK [14:12:48]MH_I2C_Read... [14:12:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:48]Read from MH i2c: E2 [14:12:48]MH_I2C_Read... [14:12:48]Read from MH i2c: E2 0E 00 [14:12:48]MH_I2C_Read... [14:12:48]Read from MH i2c: E2 0E 00 92 8B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D7 [14:12:48]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:12:48]wFMCommunicate OK [14:12:48]SAM_PROTO_GetShiftState done [14:12:48]FM_GetShiftState done [14:12:48]req_shift_opened done [14:12:48]requested_item shift.open_date is exist - process it [14:12:48]req_shift_open_date [14:12:48]req_shift_open_date done [14:12:48]produce_requested_data done [14:12:48]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260718,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [14:12:48]process_action_free close_receipt [14:12:48]json_value_free [14:12:48]json_value_free done [14:12:48]process_json_proto returns [14:12:48]Send response to host [14:12:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260718,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [14:12:48]free response buf [14:12:48]execute_script done [14:12:48]execute_script returns [14:12:48]free content buf [14:12:48]Sock 7.Close socket [14:12:48]Sock 7.Thread stoped [14:12:50]OFD Sender: No OFD packet to send [14:12:55]OFD Sender: No OFD packet to send [14:13:00]OFD Sender: No OFD packet to send [14:13:05]OFD Sender: No OFD packet to send [14:13:10]OFD Sender: No OFD packet to send [14:13:15]OFD Sender: No OFD packet to send [14:13:20]OFD Sender: No OFD packet to send [14:13:25]OFD Sender: No OFD packet to send [14:13:30]OFD Sender: No OFD packet to send [14:13:35]OFD Sender: No OFD packet to send [14:13:40]OFD Sender: No OFD packet to send [14:13:45]OFD Sender: No OFD packet to send [14:13:51]OFD Sender: No OFD packet to send [14:13:56]OFD Sender: No OFD packet to send [14:14:01]OFD Sender: No OFD packet to send [14:14:06]OFD Sender: No OFD packet to send [14:14:11]OFD Sender: No OFD packet to send [14:14:16]OFD Sender: No OFD packet to send [14:14:21]OFD Sender: No OFD packet to send [14:14:26]OFD Sender: No OFD packet to send [14:14:31]OFD Sender: No OFD packet to send [14:14:36]OFD Sender: No OFD packet to send [14:14:41]OFD Sender: No OFD packet to send [14:14:46]OFD Sender: No OFD packet to send [14:14:51]OFD Sender: No OFD packet to send [14:14:56]OFD Sender: No OFD packet to send [14:15:01]OFD Sender: No OFD packet to send [14:15:06]OFD Sender: No OFD packet to send [14:15:11]OFD Sender: No OFD packet to send [14:15:16]OFD Sender: No OFD packet to send [14:15:21]OFD Sender: No OFD packet to send [14:15:26]OFD Sender: No OFD packet to send [14:15:31]OFD Sender: No OFD packet to send [14:15:36]OFD Sender: No OFD packet to send [14:15:41]OFD Sender: No OFD packet to send [14:15:46]OFD Sender: No OFD packet to send [14:15:51]OFD Sender: No OFD packet to send [14:15:56]OFD Sender: No OFD packet to send [14:16:01]OFD Sender: No OFD packet to send [14:16:06]OFD Sender: No OFD packet to send [14:16:11]OFD Sender: No OFD packet to send [14:16:16]OFD Sender: No OFD packet to send [14:16:21]OFD Sender: No OFD packet to send [14:16:26]OFD Sender: No OFD packet to send [14:16:31]OFD Sender: No OFD packet to send [14:16:36]OFD Sender: No OFD packet to send [14:16:41]OFD Sender: No OFD packet to send [14:16:46]OFD Sender: No OFD packet to send [14:16:51]OFD Sender: No OFD packet to send [14:16:56]OFD Sender: No OFD packet to send [14:17:01]OFD Sender: No OFD packet to send [14:17:06]OFD Sender: No OFD packet to send [14:17:11]OFD Sender: No OFD packet to send [14:17:16]OFD Sender: No OFD packet to send [14:17:21]OFD Sender: No OFD packet to send [14:17:26]OFD Sender: No OFD packet to send [14:17:31]OFD Sender: No OFD packet to send [14:17:36]OFD Sender: No OFD packet to send [14:17:41]OFD Sender: No OFD packet to send [14:17:46]OFD Sender: No OFD packet to send [14:17:51]OFD Sender: No OFD packet to send [14:17:56]OFD Sender: No OFD packet to send [14:18:01]OFD Sender: No OFD packet to send [14:18:06]OFD Sender: No OFD packet to send [14:18:11]OFD Sender: No OFD packet to send [14:18:16]OFD Sender: No OFD packet to send [14:18:21]OFD Sender: No OFD packet to send [14:18:26]OFD Sender: No OFD packet to send [14:18:31]OFD Sender: No OFD packet to send [14:18:36]OFD Sender: No OFD packet to send [14:18:41]OFD Sender: No OFD packet to send [14:18:46]OFD Sender: No OFD packet to send [14:18:51]OFD Sender: No OFD packet to send [14:18:56]OFD Sender: No OFD packet to send [14:19:01]OFD Sender: No OFD packet to send [14:19:06]OFD Sender: No OFD packet to send [14:19:11]OFD Sender: No OFD packet to send [14:19:16]OFD Sender: No OFD packet to send [14:19:21]OFD Sender: No OFD packet to send [14:19:26]OFD Sender: No OFD packet to send [14:19:31]OFD Sender: No OFD packet to send [14:19:36]OFD Sender: No OFD packet to send [14:19:41]accept exits with 9 [14:19:41]New connection [14:19:41]New thread 3066617188 created [14:19:41]Thread 3066473828 joined [14:19:41]Waiting for new connection... [14:19:41] Sock 9.Parse request [14:19:41]Sock 9.Check first char [14:19:41]Sock 9.First char is OK [14:19:41]request: POST /json_proto HTTP/1.0 [14:19:41]Method: POST [14:19:41]URL: /json_proto [14:19:41]Method is POST - this is cgi request [14:19:41]url: /json_proto [14:19:41]query_string will be loaded in cgi processing [14:19:41]execute_cgi json_proto POST (null) [14:19:41]execute_cgi path=json_proto method=POST [14:19:41]POST find Content-Length [14:19:41]Host: 172.17.55.133:8080 [14:19:41]Content-Length: 678 [14:19:41]Content-Type: application/json [14:19:41] [14:19:41]POST finish read [14:19:41]Found Content-Length = 678 [14:19:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:41]execute_script... [14:19:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:41]POST & json_proto [14:19:41]process_json_proto [14:19:41]json parsed OK: [14:19:41]protocol is kg_v1.0 [14:19:41]action value=close_receipt [14:19:41]process_action close_receipt [14:19:41]cmd_close_receipt [14:19:41]MH_GetDate [14:19:41]Write to MH i2c: F0 00 00 93 8B 0D [14:19:41]Write i2c OK [14:19:41]MH_I2C_Read... [14:19:41]Read from MH i2c: F0 [14:19:41]MH_I2C_Read... [14:19:41]Read from MH i2c: F0 09 00 [14:19:41]MH_I2C_Read... [14:19:41]Read from MH i2c: F0 09 00 93 8B 00 02 03 C2 66 34 48 D8 65 FC [14:19:41]GetLastDocTimeStamp 1723990368 [14:19:41]current date 1723990786 [14:19:41]FM_GetShiftState [14:19:41]SAM_PROTO_GetShiftState [14:19:41]wFMCommunicate request_size=4 [14:19:41]MH_SAM_APDU [14:19:41]CAPDU: 80 13 01 00 [14:19:41]Write to MH i2c: E2 08 00 94 8B 80 13 01 00 00 00 00 00 9C [14:19:41]Write i2c OK [14:19:41]MH_I2C_Read... [14:19:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:41]Read from MH i2c: E2 [14:19:41]MH_I2C_Read... [14:19:41]Read from MH i2c: E2 0E 00 [14:19:41]MH_I2C_Read... [14:19:41]Read from MH i2c: E2 0E 00 94 8B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D9 [14:19:41]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:19:41]wFMCommunicate OK [14:19:41]SAM_PROTO_GetShiftState done [14:19:41]FM_GetShiftState done [14:19:41]opened in 1723940556 [14:19:41]opened+sec_in_day 1724026956 [14:19:41]quantity*price = 60003 [14:19:41]sum+1 = 60004 [14:19:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 277 18.08.2024 14:19 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260719 ФПД: 31146838802519 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T141946&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260719&fm=31146838802519&tin=02508201610067®Number=0000000000091865&sum=60000 [14:19:42]StoreToDocumentArchive [14:19:42]shift 449 fd 260719 [14:19:42]save to /storage/0449/doc_00260719 [14:19:42]save last doc name /storage/0449/doc_00260719 to /storage/kkm_last_doc_name [14:19:42]save OK [14:19:42]Clear old archive folders... [14:19:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:19:42]tlvbuf is 004A1D20 [14:19:42]SAM_PROTO_ClearQueue [14:19:42]wFMCommunicate request_size=4 [14:19:42]MH_SAM_APDU [14:19:42]CAPDU: 80 09 00 00 [14:19:42]Write to MH i2c: E2 08 00 A1 8B 80 09 00 00 00 00 00 00 9E [14:19:42]Write i2c OK [14:19:42]MH_I2C_Read... [14:19:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:19:42]Read from MH i2c: E2 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: E2 03 00 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: E2 03 00 A1 8B 00 90 00 A0 [14:19:42]RAPDU: 90 00 [14:19:42]wFMCommunicate OK [14:19:42]SAM_PROTO_ClearQueue done [14:19:42]KKMCreateOFDPacket [14:19:42]OFDProtocolAddRootSTLVToBuf [14:19:42]FM_MakeSignedData [14:19:42]FM_MakeSignedData [14:19:42]SAM_PROTO_SignData [14:19:42]wFMCommunicate request_size=4 [14:19:42]MH_SAM_APDU [14:19:42]CAPDU: 80 0D 01 02 [14:19:42]Write to MH i2c: E2 08 00 A2 8B 80 0D 01 02 00 00 00 00 A6 [14:19:42]Write i2c OK [14:19:42]MH_I2C_Read... [14:19:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:19:42]Read from MH i2c: E2 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: E2 03 00 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: E2 03 00 A2 8B 00 90 00 A1 [14:19:42]RAPDU: 90 00 [14:19:42]wFMCommunicate OK [14:19:42]wFMCommunicate request_size=255 [14:19:42]MH_SAM_APDU [14:19:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 02 03 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6F FA 03 00 35 04 06 00 1C [14:19:42]Write to MH i2c: E2 02 01 A3 8B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 02 03 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6F FA 03 00 35 04 06 00 1C 00 00 77 [14:19:42]Write i2c OK [14:19:42]MH_I2C_Read... [14:19:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:42]Read from MH i2c: E2 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: E2 03 00 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: E2 03 00 A3 8B 00 90 00 A2 [14:19:42]RAPDU: 90 00 [14:19:42]wFMCommunicate OK [14:19:42]wFMCommunicate request_size=10 [14:19:42]MH_SAM_APDU [14:19:42]CAPDU: 80 0D 02 02 05 53 F0 43 40 57 [14:19:42]Write to MH i2c: E2 0D 00 A4 8B 80 0D 02 02 05 00 53 F0 43 40 57 00 00 D0 [14:19:42]Write i2c OK [14:19:42]MH_I2C_Read... [14:19:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:42]Read from MH i2c: E2 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: E2 03 00 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: E2 03 00 A4 8B 00 90 00 A3 [14:19:42]RAPDU: 90 00 [14:19:42]wFMCommunicate OK [14:19:42]wFMCommunicate request_size=4 [14:19:42]MH_SAM_APDU [14:19:42]CAPDU: 80 0D 03 02 [14:19:42]Write to MH i2c: E2 08 00 A5 8B 80 0D 03 02 00 00 00 00 AB [14:19:42]Write i2c OK [14:19:42]MH_I2C_Read... [14:19:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:42]Read from MH i2c: E2 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: E2 0B 00 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: E2 0B 00 A5 8B 00 34 D2 B3 0F A1 58 64 2E 90 00 FF [14:19:42]RAPDU: 34 D2 B3 0F A1 58 64 2E 90 00 [14:19:42]wFMCommunicate OK [14:19:42]SAM_PROTO_SignData done [14:19:42]FM_MakeSignedData done [14:19:42]CreateOFDProtocolMessage [14:19:42]wFMCommunicate request_size=4 [14:19:42]MH_SAM_APDU [14:19:42]CAPDU: 80 11 00 00 [14:19:42]Write to MH i2c: E2 08 00 A6 8B 80 11 00 00 00 00 00 00 AB [14:19:42]Write i2c OK [14:19:42]MH_I2C_Read... [14:19:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:42]Read from MH i2c: E2 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: E2 17 00 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: E2 17 00 A6 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F8 [14:19:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:19:42]wFMCommunicate OK [14:19:42]CreateOFDProtocolMessage done [14:19:42]OFDSenderStorePacket 260719 [14:19:42]StoreOFDPacket docnum=260719 [14:19:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 B2 6D 07 01 0C 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 02 03 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6F FA 03 00 35 04 06 00 1C 53 F0 43 40 57 34 D2 B3 0F A1 58 64 2E [14:19:42]CheckFolder [14:19:42]dirname=/storage/ofd_packets [14:19:42]CheckFolder done [14:19:42]ProducePacketName [14:19:42]name=ofd_packets/00260719 [14:19:42]NVStorageSaveData ofd_packets/00260719 [14:19:42]File name is /storage/ofd_packets/00260719 [14:19:42]Write 301 bytes [14:19:42]NVStorageSaveData done [14:19:42]OFDSenderStorePacket done [14:19:42]KKMCreateOFDPacket done [14:19:42]NVStorageSaveData kkm_last_timestamp [14:19:42]File name is /storage/kkm_last_timestamp [14:19:42]Write 4 bytes [14:19:42]NVStorageSaveData done [14:19:42]ExternCall_PrintAddStr [14:19:42]wPrintStart [14:19:42]Write to MH i2c: 01 00 00 A7 8B 32 [14:19:42]Write i2c OK [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: 01 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: 01 07 00 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: 01 07 00 A7 8B 00 00 00 00 00 FF 0F 47 [14:19:42]RasterBufferAndPrint [14:19:42]line Счет N : (1)1036267 [14:19:42]line ИНН: 02508201610067 [14:19:42]line Контрольно-Кассовый Чек [14:19:42]line ПРОДАЖА [14:19:42]line ТРК (МРК, ГНК) : 12 [14:19:42]line Товар: 2710124130 [14:19:42]line Аи-92-К-5 [14:19:42]line 8.850 * 67.80 [14:19:42]line = 600.03 [14:19:42]line НДС 12% НСП 1% [14:19:42]line > о реализуемом товаре [14:19:42]line ОКРУГЛЕНИЕ: -0.03 [14:19:42]line ИТОГО: 600.00 [14:19:42]line Внесено: 600.00 [14:19:42]line СДАЧА: 0.00 [14:19:42]line НСП 1% : 5.31 [14:19:42]line НДС 12% : 63.72 [14:19:42]line Наличными: 600.00 [14:19:42]line Безнал.: 0.00 [14:19:42]line Место: АЗС № 94 "Партнер Нефть" [14:19:42]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [14:19:42]line СНО: Общий режим [14:19:42]line Чек 277 18.08.2024 14:19 [14:19:42]line Смена: 449 ФФД: 1.0 [14:19:42]line ЗНМ: 0300000099 [14:19:42]line РНМ: 0000000000091865 [14:19:42]line Версия ККМ: 001 [14:19:42]line ФМ: 0000000000871820 [14:19:42]line ФД: 260719 [14:19:42]line ФПД: 31146838802519 [14:19:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T141946&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260719&fm=31146838802519&tin=02508201610067®Number=0000000000091865&sum=60000 [14:19:42]written 0, free lines is 4095 [14:19:42]OFD Sender: Processing packet 260719 [packets to send 192, broken 191] [14:19:42]ProducePacketName [14:19:43]name=ofd_packets/00260719 [14:19:43]OFD Sender: To server: pG, [14:19:43]CommunicateWithHost lk.salyk.kg:30040 [14:19:43]ConnectInit lk.salyk.kg [14:19:43]Connected sock=10 [14:19: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 30 0F 01 00 00 B2 6D 07 01 0C 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 02 03 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6F FA 03 00 35 04 06 00 1C 53 F0 43 40 57 34 D2 B3 0F A1 58 64 2E [14:19:43]Write to MH i2c: 01 00 00 D2 8B 5D [14:19:43]Write i2c OK [14:19:43]MH_I2C_Read... [14:19:43]Read from MH i2c: 01 [14:19:43]MH_I2C_Read... [14:19:43]Read from MH i2c: 01 07 00 [14:19:43]MH_I2C_Read... [14:19:43]Read from MH i2c: 01 07 00 D2 8B 00 00 00 00 00 6B 0C DB [14:19:43]RasterBufferAndPrint [14:19:43]line [14:19:43]line [14:19:43]line [14:19:43]line [14:19:43]line [14:19:43]written 0, free lines is 3182 [14:19:43]MH_Cut [14:19:43]Write to MH i2c: D1 01 00 D9 8B 01 36 [14:19:43]Write i2c OK [14:19:43]MH_I2C_Read... [14:19:43]Read from MH i2c: D1 [14:19:43]MH_I2C_Read... [14:19:43]Read from MH i2c: D1 01 00 [14:19:43]MH_I2C_Read... [14:19:43]Read from MH i2c: D1 01 00 D9 8B 00 35 [14:19:43]Write to MH i2c: 01 00 00 DA 8B 65 [14:19:43]Write i2c OK [14:19:43]MH_I2C_Read... [14:19: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 30 4F 00 00 00 9F 29 47 00 07 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 30 10 04 04 00 6F FA 03 00 F4 03 04 00 57 AC C1 66 B6 04 01 00 00 18 F9 C8 05 A8 42 C8 B4 [14:19:43]CommunicateWithHost err = 0 [14:19:43]CheckOFDResponse [14:19:43]1017 (14) - 77093643461234 [14:19:43]1041 (16) - 0000000000871820 [14:19:43]1040 (4) - 260719 [14:19:43]1012 (4) - 18.08.2024 08:09 [14:19:43]1206 (1) - 0 [14:19:43]OFD Sender: Remove packet 260719 [14:19:43]ProducePacketName [14:19:43]name=ofd_packets/00260719 [14:19:43]NVStorageDeleteData [14:19:44]OFD Sender: No OFD packet to send [14:19:44]*** Cut start [14:19:44]*** Purtial cut [14:19:44]*** Stage 1: CUTSNS_PIN = 1 [14:19:46]Read from MH i2c: 01 [14:19:46]MH_I2C_Read... [14:19:46]*** Stop cut motor [14:19:46]*** Cut end [14:19:46]Read from MH i2c: 01 07 00 [14:19:46]MH_I2C_Read... [14:19:46]Read from MH i2c: 01 07 00 DA 8B 00 00 00 00 00 FF 0F 7A [14:19:46]process_action close_receipt done [14:19:46]requested_data is exist [14:19:46]produce_requested_data [14:19:46]requested_item fm.sn is exist - process it [14:19:46]wFMCommunicate request_size=4 [14:19:46]MH_SAM_APDU [14:19:46]CAPDU: 80 11 00 00 [14:19:46]Write to MH i2c: E2 08 00 DB 8B 80 11 00 00 00 00 00 00 E0 [14:19:46]Write i2c OK [14:19:46]MH_I2C_Read... [14:19:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:46]Read from MH i2c: E2 [14:19:46]MH_I2C_Read... [14:19:46]Read from MH i2c: E2 17 00 [14:19:46]MH_I2C_Read... [14:19:46]Read from MH i2c: E2 17 00 DB 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 2D [14:19:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:19:46]wFMCommunicate OK [14:19:46]requested_item fd.num is exist - process it [14:19:46]SAM_PROTO_GetFieldsCounters [14:19:46]wFMCommunicate request_size=4 [14:19:46]MH_SAM_APDU [14:19:46]CAPDU: 80 13 00 00 [14:19:46]Write to MH i2c: E2 08 00 DC 8B 80 13 00 00 00 00 00 00 E3 [14:19:46]Write i2c OK [14:19:46]MH_I2C_Read... [14:19:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:46]Read from MH i2c: E2 [14:19:46]MH_I2C_Read... [14:19:46]Read from MH i2c: E2 62 00 [14:19:46]MH_I2C_Read... [14:19:46]Read from MH i2c: E2 62 00 DC 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 6F FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 72 [14:19: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 6F FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:19:46]wFMCommunicate OK [14:19:46]SAM_PROTO_GetFieldsCounters done [14:19:46]requested_item shift.num is exist - process it [14:19:46]requested_item shift.opened is exist - process it [14:19:46]req_shift_opened [14:19:46]FM_GetShiftState [14:19:46]SAM_PROTO_GetShiftState [14:19:46]wFMCommunicate request_size=4 [14:19:46]MH_SAM_APDU [14:19:46]CAPDU: 80 13 01 00 [14:19:46]Write to MH i2c: E2 08 00 DD 8B 80 13 01 00 00 00 00 00 E5 [14:19:46]Write i2c OK [14:19:46]MH_I2C_Read... [14:19:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:46]Read from MH i2c: E2 [14:19:46]MH_I2C_Read... [14:19:46]Read from MH i2c: E2 0E 00 [14:19:46]MH_I2C_Read... [14:19:46]Read from MH i2c: E2 0E 00 DD 8B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 22 [14:19:46]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:19:46]wFMCommunicate OK [14:19:46]SAM_PROTO_GetShiftState done [14:19:46]FM_GetShiftState done [14:19:46]req_shift_opened done [14:19:46]requested_item shift.open_date is exist - process it [14:19:46]req_shift_open_date [14:19:46]req_shift_open_date done [14:19:46]produce_requested_data done [14:19:46]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260719,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [14:19:46]process_action_free close_receipt [14:19:46]json_value_free [14:19:46]json_value_free done [14:19:46]process_json_proto returns [14:19:46]Send response to host [14:19:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260719,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [14:19:46]free response buf [14:19:46]execute_script done [14:19:46]execute_script returns [14:19:46]free content buf [14:19:46]Sock 9.Close socket [14:19:46]Sock 9.Thread stoped [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:04]OFD Sender: No OFD packet to send [14:22:09]OFD Sender: No OFD packet to send [14:22:14]OFD Sender: No OFD packet to send [14:22:19]OFD Sender: No OFD packet to send [14:22:24]OFD Sender: No OFD packet to send [14:22:29]OFD Sender: No OFD packet to send [14:22:34]OFD Sender: No OFD packet to send [14:22:39]OFD Sender: No OFD packet to send [14:22:44]OFD Sender: No OFD packet to send [14:22:49]OFD Sender: No OFD packet to send [14:22:54]OFD Sender: No OFD packet to send [14:22:59]OFD Sender: No OFD packet to send [14:23:04]OFD Sender: No OFD packet to send [14:23:09]OFD Sender: No OFD packet to send [14:23:14]OFD Sender: No OFD packet to send [14:23:19]OFD Sender: No OFD packet to send [14:23:24]OFD Sender: No OFD packet to send [14:23:29]OFD Sender: No OFD packet to send [14:23:34]OFD Sender: No OFD packet to send [14:23:39]OFD Sender: No OFD packet to send [14:23:44]OFD Sender: No OFD packet to send [14:23:49]OFD Sender: No OFD packet to send [14:23:54]OFD Sender: No OFD packet to send [14:23:59]OFD Sender: No OFD packet to send [14:24:04]OFD Sender: No OFD packet to send [14:24:09]OFD Sender: No OFD packet to send [14:24:14]OFD Sender: No OFD packet to send [14:24:19]OFD Sender: No OFD packet to send [14:24:24]OFD Sender: No OFD packet to send [14:24:29]OFD Sender: No OFD packet to send [14:24:34]OFD Sender: No OFD packet to send [14:24:39]OFD Sender: No OFD packet to send [14:24:44]OFD Sender: No OFD packet to send [14:24:49]OFD Sender: No OFD packet to send [14:24:54]OFD Sender: No OFD packet to send [14:24:59]OFD Sender: No OFD packet to send [14:25:04]OFD Sender: No OFD packet to send [14:25:09]OFD Sender: No OFD packet to send [14:25:14]OFD Sender: No OFD packet to send [14:25:19]OFD Sender: No OFD packet to send [14:25:24]OFD Sender: No OFD packet to send [14:25:29]OFD Sender: No OFD packet to send [14:25:34]OFD Sender: No OFD packet to send [14:25:39]OFD Sender: No OFD packet to send [14:25:44]OFD Sender: No OFD packet to send [14:25:47]accept exits with 7 [14:25:47]New connection [14:25:47]New thread 3066473828 created [14:25:47]Thread 3066617188 joined [14:25:47]Waiting for new connection... [14:25:47] Sock 7.Parse request [14:25:47]Sock 7.Check first char [14:25:47]Sock 7.First char is OK [14:25:47]request: POST /json_proto HTTP/1.0 [14:25:47]Method: POST [14:25:47]URL: /json_proto [14:25:47]Method is POST - this is cgi request [14:25:47]url: /json_proto [14:25:47]query_string will be loaded in cgi processing [14:25:47]execute_cgi json_proto POST (null) [14:25:47]execute_cgi path=json_proto method=POST [14:25:47]POST find Content-Length [14:25:47]Host: 172.17.55.133:8080 [14:25:47]Content-Length: 804 [14:25:47]Content-Type: application/json [14:25:47] [14:25:47]POST finish read [14:25:47]Found Content-Length = 804 [14:25:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:47]execute_script... [14:25: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)1036268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:47]POST & json_proto [14:25:47]process_json_proto [14:25:47]json parsed OK: [14:25:47]protocol is kg_v1.0 [14:25:47]action value=close_receipt [14:25:47]process_action close_receipt [14:25:47]cmd_close_receipt [14:25:47]MH_GetDate [14:25:47]Write to MH i2c: F0 00 00 DE 8B 58 [14:25:47]Write i2c OK [14:25:47]MH_I2C_Read... [14:25:47]Read from MH i2c: F0 [14:25:47]MH_I2C_Read... [14:25:47]Read from MH i2c: F0 09 00 [14:25:47]MH_I2C_Read... [14:25:47]Read from MH i2c: F0 09 00 DE 8B 00 71 04 C2 66 34 48 D8 65 B7 [14:25:47]GetLastDocTimeStamp 1723990786 [14:25:47]current date 1723991153 [14:25:47]FM_GetShiftState [14:25:47]SAM_PROTO_GetShiftState [14:25:47]wFMCommunicate request_size=4 [14:25:47]MH_SAM_APDU [14:25:47]CAPDU: 80 13 01 00 [14:25:47]Write to MH i2c: E2 08 00 DF 8B 80 13 01 00 00 00 00 00 E7 [14:25:47]Write i2c OK [14:25:47]MH_I2C_Read... [14:25:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:48]Read from MH i2c: E2 [14:25:48]MH_I2C_Read... [14:25:48]Read from MH i2c: E2 0E 00 [14:25:48]MH_I2C_Read... [14:25:48]Read from MH i2c: E2 0E 00 DF 8B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 24 [14:25:48]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:25:48]wFMCommunicate OK [14:25:48]SAM_PROTO_GetShiftState done [14:25:48]FM_GetShiftState done [14:25:48]opened in 1723940556 [14:25:48]opened+sec_in_day 1724026956 [14:25:48]quantity*price = 150041 [14:25:48]sum+1 = 150042 [14:25:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.41 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 0.00 Безнал.: 1500.41 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 278 18.08.2024 14:25 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260720 ФПД: 9674018347799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T142553&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260720&fm=9674018347799&tin=02508201610067®Number=0000000000091865&sum=150041 [14:25:49]StoreToDocumentArchive [14:25:49]shift 449 fd 260720 [14:25:49]save to /storage/0449/doc_00260720 [14:25:49]save last doc name /storage/0449/doc_00260720 to /storage/kkm_last_doc_name [14:25:49]save OK [14:25:49]Clear old archive folders... [14:25:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:25:49]tlvbuf is 003B6090 [14:25:49]SAM_PROTO_ClearQueue [14:25:49]wFMCommunicate request_size=4 [14:25:49]MH_SAM_APDU [14:25:49]CAPDU: 80 09 00 00 [14:25:49]Write to MH i2c: E2 08 00 EC 8B 80 09 00 00 00 00 00 00 E9 [14:25:49]Write i2c OK [14:25:49]MH_I2C_Read... [14:25:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:25:49]Read from MH i2c: E2 [14:25:49]MH_I2C_Read... [14:25:49]Read from MH i2c: E2 03 00 [14:25:49]MH_I2C_Read... [14:25:49]Read from MH i2c: E2 03 00 EC 8B 00 90 00 EB [14:25:49]RAPDU: 90 00 [14:25:49]wFMCommunicate OK [14:25:49]SAM_PROTO_ClearQueue done [14:25:49]KKMCreateOFDPacket [14:25:49]OFDProtocolAddRootSTLVToBuf [14:25:49]FM_MakeSignedData [14:25:49]FM_MakeSignedData [14:25:49]SAM_PROTO_SignData [14:25:49]wFMCommunicate request_size=4 [14:25:49]MH_SAM_APDU [14:25:49]CAPDU: 80 0D 01 02 [14:25:49]Write to MH i2c: E2 08 00 ED 8B 80 0D 01 02 00 00 00 00 F1 [14:25:49]Write i2c OK [14:25:49]MH_I2C_Read... [14:25:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:25:49]Read from MH i2c: E2 [14:25:49]MH_I2C_Read... [14:25:49]Read from MH i2c: E2 03 00 [14:25:49]MH_I2C_Read... [14:25:49]Read from MH i2c: E2 03 00 ED 8B 00 90 00 EC [14:25:49]RAPDU: 90 00 [14:25:49]wFMCommunicate OK [14:25:49]wFMCommunicate request_size=255 [14:25:49]MH_SAM_APDU [14:25:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 71 04 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 70 FA 03 00 35 04 06 00 08 [14:25:49]Write to MH i2c: E2 02 01 EE 8B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 71 04 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 70 FA 03 00 35 04 06 00 08 00 00 22 [14:25:49]Write i2c OK [14:25:49]MH_I2C_Read... [14:25:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:49]Read from MH i2c: E2 [14:25:49]MH_I2C_Read... [14:25:49]Read from MH i2c: E2 03 00 [14:25:49]MH_I2C_Read... [14:25:49]Read from MH i2c: E2 03 00 EE 8B 00 90 00 ED [14:25:49]RAPDU: 90 00 [14:25:49]wFMCommunicate OK [14:25:49]wFMCommunicate request_size=10 [14:25:49]MH_SAM_APDU [14:25:49]CAPDU: 80 0D 02 02 05 CC 68 6D 5B 17 [14:25:49]Write to MH i2c: E2 0D 00 EF 8B 80 0D 02 02 05 00 CC 68 6D 5B 17 00 00 11 [14:25:49]OFD Sender: No OFD packet to send [14:25:49]Write i2c OK [14:25:49]MH_I2C_Read... [14:25:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:49]Read from MH i2c: E2 [14:25:49]MH_I2C_Read... [14:25:49]Read from MH i2c: E2 03 00 [14:25:49]MH_I2C_Read... [14:25:49]Read from MH i2c: E2 03 00 EF 8B 00 90 00 EE [14:25:49]RAPDU: 90 00 [14:25:49]wFMCommunicate OK [14:25:49]wFMCommunicate request_size=4 [14:25:49]MH_SAM_APDU [14:25:49]CAPDU: 80 0D 03 02 [14:25:49]Write to MH i2c: E2 08 00 F0 8B 80 0D 03 02 00 00 00 00 F6 [14:25:49]Write i2c OK [14:25:49]MH_I2C_Read... [14:25:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:25:49]Read from MH i2c: E2 [14:25:49]MH_I2C_Read... [14:25:49]Read from MH i2c: E2 0B 00 [14:25:49]MH_I2C_Read... [14:25:49]Read from MH i2c: E2 0B 00 F0 8B 00 C0 B0 3C 74 D3 A6 51 17 90 00 F8 [14:25:49]RAPDU: C0 B0 3C 74 D3 A6 51 17 90 00 [14:25:49]wFMCommunicate OK [14:25:49]SAM_PROTO_SignData done [14:25:49]FM_MakeSignedData done [14:25:49]CreateOFDProtocolMessage [14:25:49]wFMCommunicate request_size=4 [14:25:49]MH_SAM_APDU [14:25:49]CAPDU: 80 11 00 00 [14:25:49]Write to MH i2c: E2 08 00 F1 8B 80 11 00 00 00 00 00 00 F6 [14:25:49]Write i2c OK [14:25:49]MH_I2C_Read... [14:25:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:49]Read from MH i2c: E2 [14:25:49]MH_I2C_Read... [14:25:49]Read from MH i2c: E2 17 00 [14:25:49]MH_I2C_Read... [14:25:49]Read from MH i2c: E2 17 00 F1 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 43 [14:25:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:25:49]wFMCommunicate OK [14:25:49]CreateOFDProtocolMessage done [14:25:49]OFDSenderStorePacket 260720 [14:25:49]StoreOFDPacket docnum=260720 [14:25:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 82 A7 07 01 97 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 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 71 04 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 70 FA 03 00 35 04 06 00 08 CC 68 6D 5B 17 C0 B0 3C 74 D3 A6 51 17 [14:25:49]CheckFolder [14:25:49]dirname=/storage/ofd_packets [14:25:49]CheckFolder done [14:25:49]ProducePacketName [14:25:49]name=ofd_packets/00260720 [14:25:49]NVStorageSaveData ofd_packets/00260720 [14:25:49]File name is /storage/ofd_packets/00260720 [14:25:49]Write 301 bytes [14:25:49]NVStorageSaveData done [14:25:49]OFDSenderStorePacket done [14:25:49]KKMCreateOFDPacket done [14:25:49]NVStorageSaveData kkm_last_timestamp [14:25:49]File name is /storage/kkm_last_timestamp [14:25:49]Write 4 bytes [14:25:49]NVStorageSaveData done [14:25:49]ExternCall_PrintAddStr [14:25:49]wPrintStart [14:25:49]Write to MH i2c: 01 00 00 F2 8B 7D [14:25:49]Write i2c OK [14:25:49]MH_I2C_Read... [14:25:49]Read from MH i2c: 01 [14:25:49]MH_I2C_Read... [14:25:49]Read from MH i2c: 01 07 00 [14:25:49]MH_I2C_Read... [14:25:49]Read from MH i2c: 01 07 00 F2 8B 00 00 00 00 00 FF 0F 92 [14:25:49]RasterBufferAndPrint [14:25:49]line Счет N : (1)1036268 [14:25:49]line ИНН: 02508201610067 [14:25:49]line Контрольно-Кассовый Чек [14:25:49]line ПРОДАЖА [14:25:49]line ТРК (МРК, ГНК) : 12 [14:25:49]line Товар: 2710124130 [14:25:49]line Аи-92-К-5 [14:25:49]line 22.130 * 67.80 [14:25:49]line = 1500.41 [14:25:49]line НДС 12% НСП 1% [14:25:49]line > о реализуемом товаре [14:25:49]line ИТОГО: 1500.41 [14:25:49]line НСП 1% : 13.28 [14:25:49]line НДС 12% : 159.34 [14:25:49]line Наличными: 0.00 [14:25:49]line Безнал.: 1500.41 [14:25:49]line Место: АЗС № 94 "Партнер Нефть" [14:25:49]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [14:25:49]line СНО: Общий режим [14:25:49]line Чек 278 18.08.2024 14:25 [14:25:49]line Смена: 449 ФФД: 1.0 [14:25:49]line ЗНМ: 0300000099 [14:25:49]line РНМ: 0000000000091865 [14:25:49]line Версия ККМ: 001 [14:25:49]line Платежная система: O! деньги [14:25:49]line ФМ: 0000000000871820 [14:25:49]line ФД: 260720 [14:25:49]line ФПД: 9674018347799 [14:25:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T142553&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260720&fm=9674018347799&tin=02508201610067®Number=0000000000091865&sum=150041 [14:25:49]written 0, free lines is 4095 [14:25:49]OFD Sender: Processing packet 260720 [packets to send 192, broken 191] [14:25:49]ProducePacketName [14:25:49]name=ofd_packets/00260720 [14:25:49]OFD Sender: To server: pG, [14:25:49]CommunicateWithHost lk.salyk.kg:30040 [14:25:49]ConnectInit lk.salyk.kg [14:25:49]Connected sock=10 [14:25: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 30 0F 01 00 00 82 A7 07 01 97 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 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 71 04 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 70 FA 03 00 35 04 06 00 08 CC 68 6D 5B 17 C0 B0 3C 74 D3 A6 51 17 [14:25: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 30 4F 00 00 00 35 F1 47 00 D8 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 30 10 04 04 00 70 FA 03 00 F4 03 04 00 C5 AD C1 66 B6 04 01 00 00 1C 70 D4 49 53 59 C9 0F [14:25:50]CommunicateWithHost err = 0 [14:25:50]CheckOFDResponse [14:25:50]1017 (14) - 77093643461234 [14:25:50]1041 (16) - 0000000000871820 [14:25:50]1040 (4) - 260720 [14:25:50]1012 (4) - 18.08.2024 08:16 [14:25:50]1206 (1) - 0 [14:25:50]OFD Sender: Remove packet 260720 [14:25:50]ProducePacketName [14:25:50]name=ofd_packets/00260720 [14:25:50]NVStorageDeleteData [14:25:50]Write to MH i2c: 01 00 00 1C 8C A8 [14:25:50]Write i2c OK [14:25:50]MH_I2C_Read... [14:25:50]Read from MH i2c: 01 [14:25:50]MH_I2C_Read... [14:25:50]Read from MH i2c: 01 07 00 [14:25:50]MH_I2C_Read... [14:25:50]Read from MH i2c: 01 07 00 1C 8C 00 00 00 00 00 7B 0C 36 [14:25:50]RasterBufferAndPrint [14:25:50]line [14:25:50]line [14:25:50]line [14:25:50]line [14:25:50]line [14:25:50]written 0, free lines is 3198 [14:25:50]MH_Cut [14:25:50]Write to MH i2c: D1 01 00 23 8C 01 81 [14:25:50]Write i2c OK [14:25:50]MH_I2C_Read... [14:25:50]Read from MH i2c: D1 [14:25:50]MH_I2C_Read... [14:25:50]Read from MH i2c: D1 01 00 [14:25:50]MH_I2C_Read... [14:25:50]Read from MH i2c: D1 01 00 23 8C 00 80 [14:25:50]Write to MH i2c: 01 00 00 24 8C B0 [14:25:50]Write i2c OK [14:25:50]MH_I2C_Read... [14:25:50]OFD Sender: No OFD packet to send [14:25:51]*** Cut start [14:25:51]*** Purtial cut [14:25:51]*** Stage 1: CUTSNS_PIN = 1 [14:25:53]Read from MH i2c: 01 [14:25:53]MH_I2C_Read... [14:25:53]*** Stop cut motor [14:25:53]*** Cut end [14:25:53]Read from MH i2c: 01 07 00 [14:25:53]MH_I2C_Read... [14:25:53]Read from MH i2c: 01 07 00 24 8C 00 00 00 00 00 FF 0F C5 [14:25:53]process_action close_receipt done [14:25:53]requested_data is exist [14:25:53]produce_requested_data [14:25:53]requested_item fm.sn is exist - process it [14:25:53]wFMCommunicate request_size=4 [14:25:53]MH_SAM_APDU [14:25:53]CAPDU: 80 11 00 00 [14:25:53]Write to MH i2c: E2 08 00 25 8C 80 11 00 00 00 00 00 00 2B [14:25:53]Write i2c OK [14:25:53]MH_I2C_Read... [14:25:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:53]Read from MH i2c: E2 [14:25:53]MH_I2C_Read... [14:25:53]Read from MH i2c: E2 17 00 [14:25:53]MH_I2C_Read... [14:25:53]Read from MH i2c: E2 17 00 25 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 78 [14:25:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:25:53]wFMCommunicate OK [14:25:53]requested_item fd.num is exist - process it [14:25:53]SAM_PROTO_GetFieldsCounters [14:25:53]wFMCommunicate request_size=4 [14:25:53]MH_SAM_APDU [14:25:53]CAPDU: 80 13 00 00 [14:25:53]Write to MH i2c: E2 08 00 26 8C 80 13 00 00 00 00 00 00 2E [14:25:53]Write i2c OK [14:25:53]MH_I2C_Read... [14:25:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:53]Read from MH i2c: E2 [14:25:53]MH_I2C_Read... [14:25:53]Read from MH i2c: E2 62 00 [14:25:53]MH_I2C_Read... [14:25:53]Read from MH i2c: E2 62 00 26 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 70 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 C1 [14:25: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 70 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:25:53]wFMCommunicate OK [14:25:53]SAM_PROTO_GetFieldsCounters done [14:25:53]requested_item shift.num is exist - process it [14:25:53]requested_item shift.opened is exist - process it [14:25:53]req_shift_opened [14:25:53]FM_GetShiftState [14:25:53]SAM_PROTO_GetShiftState [14:25:53]wFMCommunicate request_size=4 [14:25:53]MH_SAM_APDU [14:25:53]CAPDU: 80 13 01 00 [14:25:53]Write to MH i2c: E2 08 00 27 8C 80 13 01 00 00 00 00 00 30 [14:25:53]Write i2c OK [14:25:53]MH_I2C_Read... [14:25:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:53]Read from MH i2c: E2 [14:25:53]MH_I2C_Read... [14:25:53]Read from MH i2c: E2 0E 00 [14:25:53]MH_I2C_Read... [14:25:53]Read from MH i2c: E2 0E 00 27 8C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 6D [14:25:53]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:25:53]wFMCommunicate OK [14:25:53]SAM_PROTO_GetShiftState done [14:25:53]FM_GetShiftState done [14:25:53]req_shift_opened done [14:25:53]requested_item shift.open_date is exist - process it [14:25:53]req_shift_open_date [14:25:53]req_shift_open_date done [14:25:53]produce_requested_data done [14:25:53]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260720,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [14:25:53]process_action_free close_receipt [14:25:53]json_value_free [14:25:53]json_value_free done [14:25:53]process_json_proto returns [14:25:53]Send response to host [14:25:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260720,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [14:25:53]free response buf [14:25:53]execute_script done [14:25:53]execute_script returns [14:25:53]free content buf [14:25:53]Sock 7.Close socket [14:25:53]Sock 7.Thread stoped [14:25:55]OFD Sender: No OFD packet to send [14:26:00]OFD Sender: No OFD packet to send [14:26:05]OFD Sender: No OFD packet to send [14:26:10]OFD Sender: No OFD packet to send [14:26:15]accept exits with 9 [14:26:15]New connection [14:26:15]New thread 3066617188 created [14:26:15]Thread 3066473828 joined [14:26:15]Waiting for new connection... [14:26:15] Sock 9.Parse request [14:26:15]Sock 9.Check first char [14:26:15]Sock 9.First char is OK [14:26:15]request: POST /json_proto HTTP/1.0 [14:26:15]Method: POST [14:26:15]URL: /json_proto [14:26:15]Method is POST - this is cgi request [14:26:15]url: /json_proto [14:26:15]query_string will be loaded in cgi processing [14:26:15]execute_cgi json_proto POST (null) [14:26:15]execute_cgi path=json_proto method=POST [14:26:15]POST find Content-Length [14:26:15]Host: 172.17.55.133:8080 [14:26:15]Content-Length: 793 [14:26:15]Content-Type: application/json [14:26:15] [14:26:15]POST finish read [14:26:15]Found Content-Length = 793 [14:26:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.750, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74763", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:15]execute_script... [14:26: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)1036269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.750, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74763", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:15]POST & json_proto [14:26:15]process_json_proto [14:26:15]json parsed OK: [14:26:15]protocol is kg_v1.0 [14:26:15]action value=close_receipt [14:26:15]process_action close_receipt [14:26:15]cmd_close_receipt [14:26:15]MH_GetDate [14:26:15]Write to MH i2c: F0 00 00 28 8C A3 [14:26:15]Write i2c OK [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: F0 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: F0 09 00 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: F0 09 00 28 8C 00 8C 04 C2 66 34 48 D8 65 1D [14:26:15]GetLastDocTimeStamp 1723991153 [14:26:15]current date 1723991180 [14:26:15]FM_GetShiftState [14:26:15]SAM_PROTO_GetShiftState [14:26:15]wFMCommunicate request_size=4 [14:26:15]MH_SAM_APDU [14:26:15]CAPDU: 80 13 01 00 [14:26:15]Write to MH i2c: E2 08 00 29 8C 80 13 01 00 00 00 00 00 32 [14:26:15]Write i2c OK [14:26:15]MH_I2C_Read... [14:26:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:15]Read from MH i2c: E2 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: E2 0E 00 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: E2 0E 00 29 8C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 6F [14:26:15]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:26:15]wFMCommunicate OK [14:26:15]SAM_PROTO_GetShiftState done [14:26:15]FM_GetShiftState done [14:26:15]opened in 1723940556 [14:26:15]opened+sec_in_day 1724026956 [14:26:15]quantity*price = 0 [14:26:15]sum+1 = 1 [14:26:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 279 18.08.2024 14:26 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: Топливная Карта 74763 ФМ: 0000000000871820 ФД: 260721 ФПД: 83451317601999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T142620&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260721&fm=83451317601999&tin=02508201610067®Number=0000000000091865&sum=0 [14:26:16]StoreToDocumentArchive [14:26:16]shift 449 fd 260721 [14:26:16]save to /storage/0449/doc_00260721 [14:26:16]save last doc name /storage/0449/doc_00260721 to /storage/kkm_last_doc_name [14:26:16]save OK [14:26:16]Clear old archive folders... [14:26:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:26:16]tlvbuf is 004539E0 [14:26:16]SAM_PROTO_ClearQueue [14:26:16]wFMCommunicate request_size=4 [14:26:16]MH_SAM_APDU [14:26:16]CAPDU: 80 09 00 00 [14:26:16]Write to MH i2c: E2 08 00 36 8C 80 09 00 00 00 00 00 00 34 [14:26:16]Write i2c OK [14:26:16]MH_I2C_Read... [14:26:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:16]Read from MH i2c: E2 [14:26:16]MH_I2C_Read... [14:26:16]Read from MH i2c: E2 03 00 [14:26:16]MH_I2C_Read... [14:26:16]Read from MH i2c: E2 03 00 36 8C 00 90 00 36 [14:26:16]RAPDU: 90 00 [14:26:16]wFMCommunicate OK [14:26:16]SAM_PROTO_ClearQueue done [14:26:16]KKMCreateOFDPacket [14:26:16]OFDProtocolAddRootSTLVToBuf [14:26:16]FM_MakeSignedData [14:26:16]FM_MakeSignedData [14:26:16]SAM_PROTO_SignData [14:26:16]wFMCommunicate request_size=4 [14:26:16]MH_SAM_APDU [14:26:16]CAPDU: 80 0D 01 02 [14:26:16]Write to MH i2c: E2 08 00 37 8C 80 0D 01 02 00 00 00 00 3C [14:26:16]Write i2c OK [14:26:16]MH_I2C_Read... [14:26:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:16]Read from MH i2c: E2 [14:26:16]MH_I2C_Read... [14:26:16]Read from MH i2c: E2 03 00 [14:26:16]MH_I2C_Read... [14:26:16]Read from MH i2c: E2 03 00 37 8C 00 90 00 37 [14:26:16]RAPDU: 90 00 [14:26:16]wFMCommunicate OK [14:26:16]wFMCommunicate request_size=255 [14:26:16]MH_SAM_APDU [14:26:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 8C 04 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 71 FA 03 00 35 04 06 00 4B [14:26:16]Write to MH i2c: E2 02 01 38 8C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 8C 04 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 71 FA 03 00 35 04 06 00 4B 00 00 66 [14:26:16]Write i2c OK [14:26:16]MH_I2C_Read... [14:26:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:17]Read from MH i2c: E2 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: E2 03 00 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: E2 03 00 38 8C 00 90 00 38 [14:26:17]RAPDU: 90 00 [14:26:17]wFMCommunicate OK [14:26:17]wFMCommunicate request_size=10 [14:26:17]MH_SAM_APDU [14:26:17]CAPDU: 80 0D 02 02 05 E6 06 24 46 CF [14:26:17]Write to MH i2c: E2 0D 00 39 8C 80 0D 02 02 05 00 E6 06 24 46 CF 00 00 6E [14:26:17]Write i2c OK [14:26:17]MH_I2C_Read... [14:26:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:17]Read from MH i2c: E2 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: E2 03 00 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: E2 03 00 39 8C 00 90 00 39 [14:26:17]RAPDU: 90 00 [14:26:17]wFMCommunicate OK [14:26:17]wFMCommunicate request_size=4 [14:26:17]MH_SAM_APDU [14:26:17]CAPDU: 80 0D 03 02 [14:26:17]Write to MH i2c: E2 08 00 3A 8C 80 0D 03 02 00 00 00 00 41 [14:26:17]Write i2c OK [14:26:17]MH_I2C_Read... [14:26:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:17]Read from MH i2c: E2 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: E2 0B 00 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: E2 0B 00 3A 8C 00 5F 17 70 70 44 7E FC EE 90 00 44 [14:26:17]RAPDU: 5F 17 70 70 44 7E FC EE 90 00 [14:26:17]wFMCommunicate OK [14:26:17]SAM_PROTO_SignData done [14:26:17]FM_MakeSignedData done [14:26:17]CreateOFDProtocolMessage [14:26:17]wFMCommunicate request_size=4 [14:26:17]MH_SAM_APDU [14:26:17]CAPDU: 80 11 00 00 [14:26:17]Write to MH i2c: E2 08 00 3B 8C 80 11 00 00 00 00 00 00 41 [14:26:17]Write i2c OK [14:26:17]MH_I2C_Read... [14:26:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:17]Read from MH i2c: E2 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: E2 17 00 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: E2 17 00 3B 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 8E [14:26:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:26:17]wFMCommunicate OK [14:26:17]CreateOFDProtocolMessage done [14:26:17]OFDSenderStorePacket 260721 [14:26:17]StoreOFDPacket docnum=260721 [14:26:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 E8 B3 07 01 C3 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 8C 04 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 71 FA 03 00 35 04 06 00 4B E6 06 24 46 CF 5F 17 70 70 44 7E FC EE [14:26:17]CheckFolder [14:26:17]dirname=/storage/ofd_packets [14:26:17]CheckFolder done [14:26:17]ProducePacketName [14:26:17]name=ofd_packets/00260721 [14:26:17]NVStorageSaveData ofd_packets/00260721 [14:26:17]File name is /storage/ofd_packets/00260721 [14:26:17]Write 301 bytes [14:26:17]NVStorageSaveData done [14:26:17]OFDSenderStorePacket done [14:26:17]KKMCreateOFDPacket done [14:26:17]NVStorageSaveData kkm_last_timestamp [14:26:17]File name is /storage/kkm_last_timestamp [14:26:17]Write 4 bytes [14:26:17]NVStorageSaveData done [14:26:17]ExternCall_PrintAddStr [14:26:17]wPrintStart [14:26:17]Write to MH i2c: 01 00 00 3C 8C C8 [14:26:17]Write i2c OK [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: 01 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: 01 07 00 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: 01 07 00 3C 8C 00 00 00 00 00 FF 0F DD [14:26:17]RasterBufferAndPrint [14:26:17]line Счет N : (1)1036269 [14:26:17]line ИНН: 02508201610067 [14:26:17]line Контрольно-Кассовый Чек [14:26:17]line ПРОДАЖА [14:26:17]line ТРК (МРК, ГНК) : 22 [14:26:17]line Товар: 2710124130 [14:26:17]line Аи-92-К-5 [14:26:17]line 14.750 * 0.00 [14:26:17]line = 0.00 [14:26:17]line НДС 12% НСП 1% [14:26:17]line > о реализуемом товаре [14:26:17]line ИТОГО: 0.00 [14:26:17]line НСП 1% : 0.00 [14:26:17]line НДС 12% : 0.00 [14:26:17]line Наличными: 0.00 [14:26:17]line Безнал.: 0.00 [14:26:17]line Место: АЗС № 94 "Партнер Нефть" [14:26:17]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [14:26:17]line СНО: Общий режим [14:26:17]line Чек 279 18.08.2024 14:26 [14:26:17]line Смена: 449 ФФД: 1.0 [14:26:17]line ЗНМ: 0300000099 [14:26:17]line РНМ: 0000000000091865 [14:26:17]line Версия ККМ: 001 [14:26:17]line Талоны: Топливная Карта [14:26:17]line 74763 [14:26:17]line ФМ: 0000000000871820 [14:26:17]line ФД: 260721 [14:26:17]line ФПД: 83451317601999 [14:26:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T142620&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260721&fm=83451317601999&tin=02508201610067®Number=0000000000091865&sum=0 [14:26:17]written 0, free lines is 4095 [14:26:17]OFD Sender: Processing packet 260721 [packets to send 192, broken 191] [14:26:17]ProducePacketName [14:26:17]name=ofd_packets/00260721 [14:26:17]OFD Sender: To server: pG, [14:26:17]CommunicateWithHost lk.salyk.kg:30040 [14:26:17]ConnectInit lk.salyk.kg [14:26:17]Connected sock=7 [14:26: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 30 0F 01 00 00 E8 B3 07 01 C3 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 8C 04 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 71 FA 03 00 35 04 06 00 4B E6 06 24 46 CF 5F 17 70 70 44 7E FC EE [14:26:17]Write to MH i2c: 01 00 00 66 8C F2 [14:26:17]Write i2c OK [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: 01 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: 01 07 00 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: 01 07 00 66 8C 00 00 00 00 00 97 0C 9C [14:26:17]RasterBufferAndPrint [14:26:17]line [14:26:17]line [14:26:17]line [14:26:17]line [14:26:17]line [14:26:17]written 0, free lines is 3227 [14:26:17]MH_Cut [14:26:17]Write to MH i2c: D1 01 00 6D 8C 01 CB [14:26:17]Write i2c OK [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: D1 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: D1 01 00 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: D1 01 00 6D 8C 00 CA [14:26:17]Write to MH i2c: 01 00 00 6E 8C FA [14:26:17]Write i2c OK [14:26:17]MH_I2C_Read... [14:26: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 30 4F 00 00 00 06 0E 47 00 57 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 30 10 04 04 00 71 FA 03 00 F4 03 04 00 E1 AD C1 66 B6 04 01 00 00 36 F8 6C D5 F1 DB DF AA [14:26:17]CommunicateWithHost err = 0 [14:26:17]CheckOFDResponse [14:26:17]1017 (14) - 77093643461234 [14:26:17]1041 (16) - 0000000000871820 [14:26:17]1040 (4) - 260721 [14:26:17]1012 (4) - 18.08.2024 08:16 [14:26:17]1206 (1) - 0 [14:26:17]OFD Sender: Remove packet 260721 [14:26:17]ProducePacketName [14:26:17]name=ofd_packets/00260721 [14:26:17]NVStorageDeleteData [14:26:18]OFD Sender: No OFD packet to send [14:26:18]*** Cut start [14:26:18]*** Purtial cut [14:26:18]*** Stage 1: CUTSNS_PIN = 1 [14:26:20]Read from MH i2c: 01 [14:26:20]MH_I2C_Read... [14:26:20]*** Stop cut motor [14:26:20]*** Cut end [14:26:20]Read from MH i2c: 01 07 00 [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: 01 07 00 6E 8C 00 00 00 00 00 FF 0F 0F [14:26:20]process_action close_receipt done [14:26:20]requested_data is exist [14:26:20]produce_requested_data [14:26:20]requested_item fm.sn is exist - process it [14:26:20]wFMCommunicate request_size=4 [14:26:20]MH_SAM_APDU [14:26:20]CAPDU: 80 11 00 00 [14:26:20]Write to MH i2c: E2 08 00 6F 8C 80 11 00 00 00 00 00 00 75 [14:26:20]Write i2c OK [14:26:20]MH_I2C_Read... [14:26:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:20]Read from MH i2c: E2 [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: E2 17 00 [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: E2 17 00 6F 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C2 [14:26:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:26:20]wFMCommunicate OK [14:26:20]requested_item fd.num is exist - process it [14:26:20]SAM_PROTO_GetFieldsCounters [14:26:20]wFMCommunicate request_size=4 [14:26:20]MH_SAM_APDU [14:26:20]CAPDU: 80 13 00 00 [14:26:20]Write to MH i2c: E2 08 00 70 8C 80 13 00 00 00 00 00 00 78 [14:26:20]Write i2c OK [14:26:20]MH_I2C_Read... [14:26:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:20]Read from MH i2c: E2 [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: E2 62 00 [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: E2 62 00 70 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 71 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 0F [14:26: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 71 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:26:20]wFMCommunicate OK [14:26:20]SAM_PROTO_GetFieldsCounters done [14:26:20]requested_item shift.num is exist - process it [14:26:20]requested_item shift.opened is exist - process it [14:26:20]req_shift_opened [14:26:20]FM_GetShiftState [14:26:20]SAM_PROTO_GetShiftState [14:26:20]wFMCommunicate request_size=4 [14:26:20]MH_SAM_APDU [14:26:20]CAPDU: 80 13 01 00 [14:26:20]Write to MH i2c: E2 08 00 71 8C 80 13 01 00 00 00 00 00 7A [14:26:20]Write i2c OK [14:26:20]MH_I2C_Read... [14:26:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:21]Read from MH i2c: E2 [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: E2 0E 00 [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: E2 0E 00 71 8C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B7 [14:26:21]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:26:21]wFMCommunicate OK [14:26:21]SAM_PROTO_GetShiftState done [14:26:21]FM_GetShiftState done [14:26:21]req_shift_opened done [14:26:21]requested_item shift.open_date is exist - process it [14:26:21]req_shift_open_date [14:26:21]req_shift_open_date done [14:26:21]produce_requested_data done [14:26:21]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260721,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [14:26:21]process_action_free close_receipt [14:26:21]json_value_free [14:26:21]json_value_free done [14:26:21]process_json_proto returns [14:26:21]Send response to host [14:26:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260721,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [14:26:21]free response buf [14:26:21]execute_script done [14:26:21]execute_script returns [14:26:21]free content buf [14:26:21]Sock 9.Close socket [14:26:21]Sock 9.Thread stoped [14:26:23]OFD Sender: No OFD packet to send [14:26:28]OFD Sender: No OFD packet to send [14:26:33]OFD Sender: No OFD packet to send [14:26:38]OFD Sender: No OFD packet to send [14:26:43]OFD Sender: No OFD packet to send [14:26:48]OFD Sender: No OFD packet to send [14:26:53]OFD Sender: No OFD packet to send [14:26:58]OFD Sender: No OFD packet to send [14:27:03]OFD Sender: No OFD packet to send [14:27:08]OFD Sender: No OFD packet to send [14:27:13]OFD Sender: No OFD packet to send [14:27:18]OFD Sender: No OFD packet to send [14:27:23]OFD Sender: No OFD packet to send [14:27:28]OFD Sender: No OFD packet to send [14:27:33]OFD Sender: No OFD packet to send [14:27:38]OFD Sender: No OFD packet to send [14:27:43]OFD Sender: No OFD packet to send [14:27:48]OFD Sender: No OFD packet to send [14:27:53]OFD Sender: No OFD packet to send [14:27:58]OFD Sender: No OFD packet to send [14:28:03]OFD Sender: No OFD packet to send [14:28:08]OFD Sender: No OFD packet to send [14:28:13]OFD Sender: No OFD packet to send [14:28:16]accept exits with 10 [14:28:16]New connection [14:28:16]New thread 3066473828 created [14:28:16]Thread 3066617188 joined [14:28:16]Waiting for new connection... [14:28:16] Sock 10.Parse request [14:28:16]Sock 10.Check first char [14:28:16]Sock 10.First char is OK [14:28:16]request: POST /json_proto HTTP/1.0 [14:28:16]Method: POST [14:28:16]URL: /json_proto [14:28:16]Method is POST - this is cgi request [14:28:16]url: /json_proto [14:28:16]query_string will be loaded in cgi processing [14:28:16]execute_cgi json_proto POST (null) [14:28:16]execute_cgi path=json_proto method=POST [14:28:16]POST find Content-Length [14:28:16]Host: 172.17.55.133:8080 [14:28:16]Content-Length: 678 [14:28:16]Content-Type: application/json [14:28:16] [14:28:16]POST finish read [14:28:16]Found Content-Length = 678 [14:28:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:16]execute_script... [14:28:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:16]POST & json_proto [14:28:16]process_json_proto [14:28:16]json parsed OK: [14:28:16]protocol is kg_v1.0 [14:28:16]action value=close_receipt [14:28:16]process_action close_receipt [14:28:16]cmd_close_receipt [14:28:16]MH_GetDate [14:28:16]Write to MH i2c: F0 00 00 72 8C ED [14:28:16]Write i2c OK [14:28:16]MH_I2C_Read... [14:28:16]Read from MH i2c: F0 [14:28:16]MH_I2C_Read... [14:28:16]Read from MH i2c: F0 09 00 [14:28:16]MH_I2C_Read... [14:28:16]Read from MH i2c: F0 09 00 72 8C 00 05 05 C2 66 34 48 D8 65 E1 [14:28:16]GetLastDocTimeStamp 1723991180 [14:28:16]current date 1723991301 [14:28:16]FM_GetShiftState [14:28:16]SAM_PROTO_GetShiftState [14:28:16]wFMCommunicate request_size=4 [14:28:16]MH_SAM_APDU [14:28:16]CAPDU: 80 13 01 00 [14:28:16]Write to MH i2c: E2 08 00 73 8C 80 13 01 00 00 00 00 00 7C [14:28:16]Write i2c OK [14:28:16]MH_I2C_Read... [14:28:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:16]Read from MH i2c: E2 [14:28:16]MH_I2C_Read... [14:28:16]Read from MH i2c: E2 0E 00 [14:28:16]MH_I2C_Read... [14:28:16]Read from MH i2c: E2 0E 00 73 8C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B9 [14:28:16]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:28:16]wFMCommunicate OK [14:28:16]SAM_PROTO_GetShiftState done [14:28:16]FM_GetShiftState done [14:28:16]opened in 1723940556 [14:28:16]opened+sec_in_day 1724026956 [14:28:16]quantity*price = 50036 [14:28:16]sum+1 = 50037 [14:28:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 280 18.08.2024 14:28 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260722 ФПД: 239860844359741 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T142821&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260722&fm=239860844359741&tin=02508201610067®Number=0000000000091865&sum=50000 [14:28:17]StoreToDocumentArchive [14:28:17]shift 449 fd 260722 [14:28:17]save to /storage/0449/doc_00260722 [14:28:17]save last doc name /storage/0449/doc_00260722 to /storage/kkm_last_doc_name [14:28:17]save OK [14:28:17]Clear old archive folders... [14:28:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:28:17]tlvbuf is 00433720 [14:28:17]SAM_PROTO_ClearQueue [14:28:17]wFMCommunicate request_size=4 [14:28:17]MH_SAM_APDU [14:28:17]CAPDU: 80 09 00 00 [14:28:17]Write to MH i2c: E2 08 00 80 8C 80 09 00 00 00 00 00 00 7E [14:28:17]Write i2c OK [14:28:17]MH_I2C_Read... [14:28:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:28:17]Read from MH i2c: E2 [14:28:17]MH_I2C_Read... [14:28:17]Read from MH i2c: E2 03 00 [14:28:17]MH_I2C_Read... [14:28:17]Read from MH i2c: E2 03 00 80 8C 00 90 00 80 [14:28:17]RAPDU: 90 00 [14:28:17]wFMCommunicate OK [14:28:17]SAM_PROTO_ClearQueue done [14:28:17]KKMCreateOFDPacket [14:28:17]OFDProtocolAddRootSTLVToBuf [14:28:17]FM_MakeSignedData [14:28:17]FM_MakeSignedData [14:28:17]SAM_PROTO_SignData [14:28:17]wFMCommunicate request_size=4 [14:28:17]MH_SAM_APDU [14:28:17]CAPDU: 80 0D 01 02 [14:28:17]Write to MH i2c: E2 08 00 81 8C 80 0D 01 02 00 00 00 00 86 [14:28:17]Write i2c OK [14:28:17]MH_I2C_Read... [14:28:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:28:17]Read from MH i2c: E2 [14:28:17]MH_I2C_Read... [14:28:17]Read from MH i2c: E2 03 00 [14:28:17]MH_I2C_Read... [14:28:17]Read from MH i2c: E2 03 00 81 8C 00 90 00 81 [14:28:17]RAPDU: 90 00 [14:28:17]wFMCommunicate OK [14:28:17]wFMCommunicate request_size=255 [14:28:17]MH_SAM_APDU [14:28:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 18 01 00 00 F4 03 04 00 05 05 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 72 FA 03 00 35 04 06 00 DA [14:28:17]Write to MH i2c: E2 02 01 82 8C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 18 01 00 00 F4 03 04 00 05 05 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 72 FA 03 00 35 04 06 00 DA 00 00 59 [14:28:17]Write i2c OK [14:28:17]MH_I2C_Read... [14:28:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:17]Read from MH i2c: E2 [14:28:17]MH_I2C_Read... [14:28:17]Read from MH i2c: E2 03 00 [14:28:17]MH_I2C_Read... [14:28:17]Read from MH i2c: E2 03 00 82 8C 00 90 00 82 [14:28:17]RAPDU: 90 00 [14:28:17]wFMCommunicate OK [14:28:17]wFMCommunicate request_size=10 [14:28:17]MH_SAM_APDU [14:28:17]CAPDU: 80 0D 02 02 05 26 F4 6C 70 3D [14:28:17]Write to MH i2c: E2 0D 00 83 8C 80 0D 02 02 05 00 26 F4 6C 70 3D 00 00 C6 [14:28:17]Write i2c OK [14:28:17]MH_I2C_Read... [14:28:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:18]Read from MH i2c: E2 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: E2 03 00 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: E2 03 00 83 8C 00 90 00 83 [14:28:18]RAPDU: 90 00 [14:28:18]wFMCommunicate OK [14:28:18]wFMCommunicate request_size=4 [14:28:18]MH_SAM_APDU [14:28:18]CAPDU: 80 0D 03 02 [14:28:18]Write to MH i2c: E2 08 00 84 8C 80 0D 03 02 00 00 00 00 8B [14:28:18]Write i2c OK [14:28:18]MH_I2C_Read... [14:28:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:28:18]Read from MH i2c: E2 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: E2 0B 00 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: E2 0B 00 84 8C 00 17 5F 6F 88 D4 0F 7D 0B 90 00 64 [14:28:18]RAPDU: 17 5F 6F 88 D4 0F 7D 0B 90 00 [14:28:18]wFMCommunicate OK [14:28:18]SAM_PROTO_SignData done [14:28:18]FM_MakeSignedData done [14:28:18]CreateOFDProtocolMessage [14:28:18]wFMCommunicate request_size=4 [14:28:18]MH_SAM_APDU [14:28:18]CAPDU: 80 11 00 00 [14:28:18]Write to MH i2c: E2 08 00 85 8C 80 11 00 00 00 00 00 00 8B [14:28:18]Write i2c OK [14:28:18]MH_I2C_Read... [14:28:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:18]Read from MH i2c: E2 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: E2 17 00 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: E2 17 00 85 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D8 [14:28:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:28:18]wFMCommunicate OK [14:28:18]CreateOFDProtocolMessage done [14:28:18]OFDSenderStorePacket 260722 [14:28:18]StoreOFDPacket docnum=260722 [14:28:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 1B 7F 07 01 4A F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 18 01 00 00 F4 03 04 00 05 05 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 72 FA 03 00 35 04 06 00 DA 26 F4 6C 70 3D 17 5F 6F 88 D4 0F 7D 0B [14:28:18]CheckFolder [14:28:18]dirname=/storage/ofd_packets [14:28:18]CheckFolder done [14:28:18]ProducePacketName [14:28:18]name=ofd_packets/00260722 [14:28:18]NVStorageSaveData ofd_packets/00260722 [14:28:18]File name is /storage/ofd_packets/00260722 [14:28:18]Write 301 bytes [14:28:18]NVStorageSaveData done [14:28:18]OFDSenderStorePacket done [14:28:18]KKMCreateOFDPacket done [14:28:18]NVStorageSaveData kkm_last_timestamp [14:28:18]File name is /storage/kkm_last_timestamp [14:28:18]Write 4 bytes [14:28:18]NVStorageSaveData done [14:28:18]OFD Sender: Processing packet 260722 [packets to send 192, broken 191] [14:28:18]ProducePacketName [14:28:18]name=ofd_packets/00260722 [14:28:18]OFD Sender: To server: pG, [14:28:18]CommunicateWithHost lk.salyk.kg:30040 [14:28:18]ConnectInit lk.salyk.kg [14:28:18]ExternCall_PrintAddStr [14:28:18]wPrintStart [14:28:18]Write to MH i2c: 01 00 00 86 8C 12 [14:28:18]Write i2c OK [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: 01 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: 01 07 00 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: 01 07 00 86 8C 00 00 00 00 00 FF 0F 27 [14:28:18]RasterBufferAndPrint [14:28:18]line Счет N : (1)1036270 [14:28:18]line ИНН: 02508201610067 [14:28:18]line Контрольно-Кассовый Чек [14:28:18]line ПРОДАЖА [14:28:18]line ТРК (МРК, ГНК) : 32 [14:28:18]line Товар: 2710124130 [14:28:18]line Аи-92-К-5 [14:28:18]line 7.380 * 67.80 [14:28:18]line = 500.36 [14:28:18]line НДС 12% НСП 1% [14:28:18]line > о реализуемом товаре [14:28:18]line ОКРУГЛЕНИЕ: -0.36 [14:28:18]line ИТОГО: 500.00 [14:28:18]line Внесено: 500.00 [14:28:18]line СДАЧА: 0.00 [14:28:18]line НСП 1% : 4.43 [14:28:18]line НДС 12% : 53.14 [14:28:18]line Наличными: 500.00 [14:28:18]line Безнал.: 0.00 [14:28:18]line Место: АЗС № 94 "Партнер Нефть" [14:28:18]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [14:28:18]line СНО: Общий режим [14:28:18]line Чек 280 18.08.2024 14:28 [14:28:18]line Смена: 449 ФФД: 1.0 [14:28:18]line ЗНМ: 0300000099 [14:28:18]line РНМ: 0000000000091865 [14:28:18]line Версия ККМ: 001 [14:28:18]line ФМ: 0000000000871820 [14:28:18]line ФД: 260722 [14:28:18]line ФПД: 239860844359741 [14:28:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T142821&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260722&fm=239860844359741&tin=02508201610067®Number=0000000000091865&sum=50000 [14:28:18]Connected sock=11 [14:28: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 30 0F 01 00 00 1B 7F 07 01 4A F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 18 01 00 00 F4 03 04 00 05 05 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 72 FA 03 00 35 04 06 00 DA 26 F4 6C 70 3D 17 5F 6F 88 D4 0F 7D 0B [14:28:18]written 0, free lines is 4095 [14:28: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 30 4F 00 00 00 CB 05 47 00 1B E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 72 FA 03 00 F4 03 04 00 5A AE C1 66 B6 04 01 00 00 10 00 F7 2F 5F 21 F4 E5 [14:28:18]CommunicateWithHost err = 0 [14:28:18]CheckOFDResponse [14:28:18]1017 (14) - 77093643461234 [14:28:18]1041 (16) - 0000000000871820 [14:28:18]1040 (4) - 260722 [14:28:18]1012 (4) - 18.08.2024 08:18 [14:28:18]1206 (1) - 0 [14:28:18]OFD Sender: Remove packet 260722 [14:28:18]ProducePacketName [14:28:18]name=ofd_packets/00260722 [14:28:18]NVStorageDeleteData [14:28:18]Write to MH i2c: 01 00 00 B1 8C 3D [14:28:18]Write i2c OK [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: 01 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: 01 07 00 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: 01 07 00 B1 8C 00 00 00 00 00 69 0C B9 [14:28:18]RasterBufferAndPrint [14:28:18]line [14:28:18]line [14:28:18]line [14:28:18]line [14:28:18]line [14:28:18]written 0, free lines is 3181 [14:28:18]MH_Cut [14:28:18]Write to MH i2c: D1 01 00 B8 8C 01 16 [14:28:18]Write i2c OK [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: D1 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: D1 01 00 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: D1 01 00 B8 8C 00 15 [14:28:18]Write to MH i2c: 01 00 00 B9 8C 45 [14:28:18]Write i2c OK [14:28:18]MH_I2C_Read... [14:28:19]OFD Sender: No OFD packet to send [14:28:20]*** Cut start [14:28:20]*** Purtial cut [14:28:20]*** Stage 1: CUTSNS_PIN = 1 [14:28:22]Read from MH i2c: 01 [14:28:22]MH_I2C_Read... [14:28:22]*** Stop cut motor [14:28:22]*** Cut end [14:28:22]Read from MH i2c: 01 07 00 [14:28:22]MH_I2C_Read... [14:28:22]Read from MH i2c: 01 07 00 B9 8C 00 00 00 00 00 FF 0F 5A [14:28:22]process_action close_receipt done [14:28:22]requested_data is exist [14:28:22]produce_requested_data [14:28:22]requested_item fm.sn is exist - process it [14:28:22]wFMCommunicate request_size=4 [14:28:22]MH_SAM_APDU [14:28:22]CAPDU: 80 11 00 00 [14:28:22]Write to MH i2c: E2 08 00 BA 8C 80 11 00 00 00 00 00 00 C0 [14:28:22]Write i2c OK [14:28:22]MH_I2C_Read... [14:28:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:22]Read from MH i2c: E2 [14:28:22]MH_I2C_Read... [14:28:22]Read from MH i2c: E2 17 00 [14:28:22]MH_I2C_Read... [14:28:22]Read from MH i2c: E2 17 00 BA 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 0D [14:28:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:28:22]wFMCommunicate OK [14:28:22]requested_item fd.num is exist - process it [14:28:22]SAM_PROTO_GetFieldsCounters [14:28:22]wFMCommunicate request_size=4 [14:28:22]MH_SAM_APDU [14:28:22]CAPDU: 80 13 00 00 [14:28:22]Write to MH i2c: E2 08 00 BB 8C 80 13 00 00 00 00 00 00 C3 [14:28:22]Write i2c OK [14:28:22]MH_I2C_Read... [14:28:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:28:22]Read from MH i2c: E2 [14:28:22]MH_I2C_Read... [14:28:22]Read from MH i2c: E2 62 00 [14:28:22]MH_I2C_Read... [14:28:22]Read from MH i2c: E2 62 00 BB 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 72 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 5E [14:28: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 72 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:28:22]wFMCommunicate OK [14:28:22]SAM_PROTO_GetFieldsCounters done [14:28:22]requested_item shift.num is exist - process it [14:28:22]requested_item shift.opened is exist - process it [14:28:22]req_shift_opened [14:28:22]FM_GetShiftState [14:28:22]SAM_PROTO_GetShiftState [14:28:22]wFMCommunicate request_size=4 [14:28:22]MH_SAM_APDU [14:28:22]CAPDU: 80 13 01 00 [14:28:22]Write to MH i2c: E2 08 00 BC 8C 80 13 01 00 00 00 00 00 C5 [14:28:22]Write i2c OK [14:28:22]MH_I2C_Read... [14:28:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:22]Read from MH i2c: E2 [14:28:22]MH_I2C_Read... [14:28:22]Read from MH i2c: E2 0E 00 [14:28:22]MH_I2C_Read... [14:28:22]Read from MH i2c: E2 0E 00 BC 8C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 02 [14:28:22]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:28:22]wFMCommunicate OK [14:28:22]SAM_PROTO_GetShiftState done [14:28:22]FM_GetShiftState done [14:28:22]req_shift_opened done [14:28:22]requested_item shift.open_date is exist - process it [14:28:22]req_shift_open_date [14:28:22]req_shift_open_date done [14:28:22]produce_requested_data done [14:28:22]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260722,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [14:28:22]process_action_free close_receipt [14:28:22]json_value_free [14:28:22]json_value_free done [14:28:22]process_json_proto returns [14:28:22]Send response to host [14:28:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260722,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [14:28:22]free response buf [14:28:22]execute_script done [14:28:22]execute_script returns [14:28:22]free content buf [14:28:22]Sock 10.Close socket [14:28:22]Sock 10.Thread stoped [14:28:24]OFD Sender: No OFD packet to send [14:28:29]OFD Sender: No OFD packet to send [14:28:34]OFD Sender: No OFD packet to send [14:28:39]OFD Sender: No OFD packet to send [14:28:44]OFD Sender: No OFD packet to send [14:28:45]accept exits with 7 [14:28:45]New connection [14:28:45]New thread 3066617188 created [14:28:45]Thread 3066473828 joined [14:28:45]Waiting for new connection... [14:28:45] Sock 7.Parse request [14:28:45]Sock 7.Check first char [14:28:45]Sock 7.First char is OK [14:28:45]request: POST /json_proto HTTP/1.0 [14:28:45]Method: POST [14:28:45]URL: /json_proto [14:28:45]Method is POST - this is cgi request [14:28:45]url: /json_proto [14:28:45]query_string will be loaded in cgi processing [14:28:45]execute_cgi json_proto POST (null) [14:28:45]execute_cgi path=json_proto method=POST [14:28:45]POST find Content-Length [14:28:45]Host: 172.17.55.133:8080 [14:28:45]Content-Length: 804 [14:28:45]Content-Type: application/json [14:28:45] [14:28:45]POST finish read [14:28:45]Found Content-Length = 804 [14:28:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036271", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:45]execute_script... [14:28: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)1036271", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:45]POST & json_proto [14:28:45]process_json_proto [14:28:45]json parsed OK: [14:28:45]protocol is kg_v1.0 [14:28:45]action value=close_receipt [14:28:45]process_action close_receipt [14:28:45]cmd_close_receipt [14:28:45]MH_GetDate [14:28:45]Write to MH i2c: F0 00 00 BD 8C 38 [14:28:45]Write i2c OK [14:28:45]MH_I2C_Read... [14:28:45]Read from MH i2c: F0 [14:28:45]MH_I2C_Read... [14:28:45]Read from MH i2c: F0 09 00 [14:28:45]MH_I2C_Read... [14:28:45]Read from MH i2c: F0 09 00 BD 8C 00 22 05 C2 66 34 48 D8 65 49 [14:28:45]GetLastDocTimeStamp 1723991301 [14:28:45]current date 1723991330 [14:28:45]FM_GetShiftState [14:28:45]SAM_PROTO_GetShiftState [14:28:45]wFMCommunicate request_size=4 [14:28:45]MH_SAM_APDU [14:28:45]CAPDU: 80 13 01 00 [14:28:45]Write to MH i2c: E2 08 00 BE 8C 80 13 01 00 00 00 00 00 C7 [14:28:45]Write i2c OK [14:28:45]MH_I2C_Read... [14:28:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:45]Read from MH i2c: E2 [14:28:45]MH_I2C_Read... [14:28:45]Read from MH i2c: E2 0E 00 [14:28:45]MH_I2C_Read... [14:28:45]Read from MH i2c: E2 0E 00 BE 8C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 04 [14:28:45]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:28:45]wFMCommunicate OK [14:28:45]SAM_PROTO_GetShiftState done [14:28:45]FM_GetShiftState done [14:28:45]opened in 1723940556 [14:28:45]opened+sec_in_day 1724026956 [14:28:45]quantity*price = 100021 [14:28:45]sum+1 = 100023 [14:28:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 281 18.08.2024 14:28 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260723 ФПД: 66743416060282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T142850&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260723&fm=66743416060282&tin=02508201610067®Number=0000000000091865&sum=100022 [14:28:46]StoreToDocumentArchive [14:28:46]shift 449 fd 260723 [14:28:46]save to /storage/0449/doc_00260723 [14:28:46]save last doc name /storage/0449/doc_00260723 to /storage/kkm_last_doc_name [14:28:46]save OK [14:28:46]Clear old archive folders... [14:28:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:28:46]tlvbuf is 00540C10 [14:28:46]SAM_PROTO_ClearQueue [14:28:46]wFMCommunicate request_size=4 [14:28:46]MH_SAM_APDU [14:28:46]CAPDU: 80 09 00 00 [14:28:46]Write to MH i2c: E2 08 00 CB 8C 80 09 00 00 00 00 00 00 C9 [14:28:46]Write i2c OK [14:28:46]MH_I2C_Read... [14:28:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:28:46]Read from MH i2c: E2 [14:28:46]MH_I2C_Read... [14:28:46]Read from MH i2c: E2 03 00 [14:28:46]MH_I2C_Read... [14:28:46]Read from MH i2c: E2 03 00 CB 8C 00 90 00 CB [14:28:46]RAPDU: 90 00 [14:28:46]wFMCommunicate OK [14:28:46]SAM_PROTO_ClearQueue done [14:28:46]KKMCreateOFDPacket [14:28:46]OFDProtocolAddRootSTLVToBuf [14:28:46]FM_MakeSignedData [14:28:46]FM_MakeSignedData [14:28:46]SAM_PROTO_SignData [14:28:46]wFMCommunicate request_size=4 [14:28:46]MH_SAM_APDU [14:28:46]CAPDU: 80 0D 01 02 [14:28:46]Write to MH i2c: E2 08 00 CC 8C 80 0D 01 02 00 00 00 00 D1 [14:28:46]Write i2c OK [14:28:46]MH_I2C_Read... [14:28:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:28:46]Read from MH i2c: E2 [14:28:46]MH_I2C_Read... [14:28:46]Read from MH i2c: E2 03 00 [14:28:46]MH_I2C_Read... [14:28:46]Read from MH i2c: E2 03 00 CC 8C 00 90 00 CC [14:28:46]RAPDU: 90 00 [14:28:46]wFMCommunicate OK [14:28:46]wFMCommunicate request_size=255 [14:28:46]MH_SAM_APDU [14:28:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 22 05 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 73 FA 03 00 35 04 06 00 3C [14:28:46]Write to MH i2c: E2 02 01 CD 8C 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 22 05 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 73 FA 03 00 35 04 06 00 3C 00 00 7E [14:28:46]Write i2c OK [14:28:46]MH_I2C_Read... [14:28:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:46]Read from MH i2c: E2 [14:28:46]MH_I2C_Read... [14:28:46]Read from MH i2c: E2 03 00 [14:28:46]MH_I2C_Read... [14:28:46]Read from MH i2c: E2 03 00 CD 8C 00 90 00 CD [14:28:46]RAPDU: 90 00 [14:28:46]wFMCommunicate OK [14:28:46]wFMCommunicate request_size=10 [14:28:46]MH_SAM_APDU [14:28:46]CAPDU: 80 0D 02 02 05 B3 E9 9A F9 7A [14:28:46]Write to MH i2c: E2 0D 00 CE 8C 80 0D 02 02 05 00 B3 E9 9A F9 7A 00 00 87 [14:28:46]Write i2c OK [14:28:46]MH_I2C_Read... [14:28:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:46]Read from MH i2c: E2 [14:28:46]MH_I2C_Read... [14:28:46]Read from MH i2c: E2 03 00 [14:28:46]MH_I2C_Read... [14:28:46]Read from MH i2c: E2 03 00 CE 8C 00 90 00 CE [14:28:46]RAPDU: 90 00 [14:28:46]wFMCommunicate OK [14:28:46]wFMCommunicate request_size=4 [14:28:46]MH_SAM_APDU [14:28:46]CAPDU: 80 0D 03 02 [14:28:46]Write to MH i2c: E2 08 00 CF 8C 80 0D 03 02 00 00 00 00 D6 [14:28:46]Write i2c OK [14:28:46]MH_I2C_Read... [14:28:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:28:46]Read from MH i2c: E2 [14:28:46]MH_I2C_Read... [14:28:46]Read from MH i2c: E2 0B 00 [14:28:46]MH_I2C_Read... [14:28:46]Read from MH i2c: E2 0B 00 CF 8C 00 D3 E3 1F 08 CF 98 D0 D3 90 00 BE [14:28:46]RAPDU: D3 E3 1F 08 CF 98 D0 D3 90 00 [14:28:46]wFMCommunicate OK [14:28:46]SAM_PROTO_SignData done [14:28:46]FM_MakeSignedData done [14:28:46]CreateOFDProtocolMessage [14:28:46]wFMCommunicate request_size=4 [14:28:46]MH_SAM_APDU [14:28:46]CAPDU: 80 11 00 00 [14:28:46]Write to MH i2c: E2 08 00 D0 8C 80 11 00 00 00 00 00 00 D6 [14:28:46]Write i2c OK [14:28:46]MH_I2C_Read... [14:28:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:46]Read from MH i2c: E2 [14:28:46]MH_I2C_Read... [14:28:46]Read from MH i2c: E2 17 00 [14:28:46]MH_I2C_Read... [14:28:46]Read from MH i2c: E2 17 00 D0 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 23 [14:28:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:28:46]wFMCommunicate OK [14:28:46]CreateOFDProtocolMessage done [14:28:46]OFDSenderStorePacket 260723 [14:28:46]StoreOFDPacket docnum=260723 [14:28:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 93 43 07 01 A4 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 22 05 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 73 FA 03 00 35 04 06 00 3C B3 E9 9A F9 7A D3 E3 1F 08 CF 98 D0 D3 [14:28:46]CheckFolder [14:28:46]dirname=/storage/ofd_packets [14:28:46]CheckFolder done [14:28:46]ProducePacketName [14:28:46]name=ofd_packets/00260723 [14:28:46]NVStorageSaveData ofd_packets/00260723 [14:28:46]File name is /storage/ofd_packets/00260723 [14:28:46]Write 301 bytes [14:28:46]NVStorageSaveData done [14:28:46]OFDSenderStorePacket done [14:28:46]KKMCreateOFDPacket done [14:28:46]NVStorageSaveData kkm_last_timestamp [14:28:46]File name is /storage/kkm_last_timestamp [14:28:46]Write 4 bytes [14:28:46]NVStorageSaveData done [14:28:46]ExternCall_PrintAddStr [14:28:46]wPrintStart [14:28:46]Write to MH i2c: 01 00 00 D1 8C 5D [14:28:46]Write i2c OK [14:28:46]MH_I2C_Read... [14:28:46]Read from MH i2c: 01 [14:28:46]MH_I2C_Read... [14:28:46]Read from MH i2c: 01 07 00 [14:28:46]MH_I2C_Read... [14:28:46]Read from MH i2c: 01 07 00 D1 8C 00 00 00 00 00 FF 0F 72 [14:28:46]RasterBufferAndPrint [14:28:46]line Счет N : (1)1036271 [14:28:46]line ИНН: 02508201610067 [14:28:46]line Контрольно-Кассовый Чек [14:28:46]line ПРОДАЖА [14:28:46]line ТРК (МРК, ГНК) : 23 [14:28:46]line Товар: 2710124500 [14:28:46]line Аи-95-К-5 [14:28:46]line 13.480 * 74.20 [14:28:46]line = 1000.22 [14:28:46]line НДС 12% НСП 1% [14:28:46]line > о реализуемом товаре [14:28:46]line ИТОГО: 1000.22 [14:28:46]line НСП 1% : 8.85 [14:28:46]line НДС 12% : 106.22 [14:28:46]line Наличными: 0.00 [14:28:46]line Безнал.: 1000.22 [14:28:46]line Место: АЗС № 94 "Партнер Нефть" [14:28:46]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [14:28:46]line СНО: Общий режим [14:28:46]line Чек 281 18.08.2024 14:28 [14:28:46]line Смена: 449 ФФД: 1.0 [14:28:46]line ЗНМ: 0300000099 [14:28:46]line РНМ: 0000000000091865 [14:28:46]line Версия ККМ: 001 [14:28:46]line Платежная система: O! деньги [14:28:46]line ФМ: 0000000000871820 [14:28:46]line ФД: 260723 [14:28:46]line ФПД: 66743416060282 [14:28:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T142850&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260723&fm=66743416060282&tin=02508201610067®Number=0000000000091865&sum=100022 [14:28:46]written 0, free lines is 4095 [14:28:46]OFD Sender: Processing packet 260723 [packets to send 192, broken 191] [14:28:46]ProducePacketName [14:28:46]name=ofd_packets/00260723 [14:28:47]OFD Sender: To server: pG, [14:28:47]CommunicateWithHost lk.salyk.kg:30040 [14:28:47]ConnectInit lk.salyk.kg [14:28:47]Connected sock=10 [14:28: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 30 0F 01 00 00 93 43 07 01 A4 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 22 05 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 73 FA 03 00 35 04 06 00 3C B3 E9 9A F9 7A D3 E3 1F 08 CF 98 D0 D3 [14:28:47]Write to MH i2c: 01 00 00 FB 8C 87 [14:28:47]Write i2c OK [14:28:47]MH_I2C_Read... [14:28:47]Read from MH i2c: 01 [14:28:47]MH_I2C_Read... [14:28:47]Read from MH i2c: 01 07 00 [14:28:47]MH_I2C_Read... [14:28:47]Read from MH i2c: 01 07 00 FB 8C 00 00 00 00 00 8C 0C 26 [14:28:47]RasterBufferAndPrint [14:28:47]line [14:28:47]line [14:28:47]line [14:28:47]line [14:28:47]line [14:28:47]written 0, free lines is 3215 [14:28:47]MH_Cut [14:28:47]Write to MH i2c: D1 01 00 02 8D 01 61 [14:28:47]Write i2c OK [14:28:47]MH_I2C_Read... [14:28:47]Read from MH i2c: D1 [14:28:47]MH_I2C_Read... [14:28:47]Read from MH i2c: D1 01 00 [14:28:47]MH_I2C_Read... [14:28:47]Read from MH i2c: D1 01 00 02 8D 00 60 [14:28:47]Write to MH i2c: 01 00 00 03 8D 90 [14:28:47]Write i2c OK [14:28:47]MH_I2C_Read... [14:28: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 30 4F 00 00 00 C3 86 47 00 F2 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 30 10 04 04 00 73 FA 03 00 F4 03 04 00 77 AE C1 66 B6 04 01 00 00 E6 AD 94 9A 17 7D C9 EB [14:28:47]CommunicateWithHost err = 0 [14:28:47]CheckOFDResponse [14:28:47]1017 (14) - 77093643461234 [14:28:47]1041 (16) - 0000000000871820 [14:28:47]1040 (4) - 260723 [14:28:47]1012 (4) - 18.08.2024 08:19 [14:28:47]1206 (1) - 0 [14:28:47]OFD Sender: Remove packet 260723 [14:28:47]ProducePacketName [14:28:47]name=ofd_packets/00260723 [14:28:47]NVStorageDeleteData [14:28:47]OFD Sender: No OFD packet to send [14:28:48]*** Cut start [14:28:48]*** Purtial cut [14:28:48]*** Stage 1: CUTSNS_PIN = 1 [14:28:50]Read from MH i2c: 01 [14:28:50]MH_I2C_Read... [14:28:50]*** Stop cut motor [14:28:50]*** Cut end [14:28:50]Read from MH i2c: 01 07 00 [14:28:50]MH_I2C_Read... [14:28:50]Read from MH i2c: 01 07 00 03 8D 00 00 00 00 00 FF 0F A5 [14:28:50]process_action close_receipt done [14:28:50]requested_data is exist [14:28:50]produce_requested_data [14:28:50]requested_item fm.sn is exist - process it [14:28:50]wFMCommunicate request_size=4 [14:28:50]MH_SAM_APDU [14:28:50]CAPDU: 80 11 00 00 [14:28:50]Write to MH i2c: E2 08 00 04 8D 80 11 00 00 00 00 00 00 0B [14:28:50]Write i2c OK [14:28:50]MH_I2C_Read... [14:28:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:50]Read from MH i2c: E2 [14:28:50]MH_I2C_Read... [14:28:50]Read from MH i2c: E2 17 00 [14:28:50]MH_I2C_Read... [14:28:50]Read from MH i2c: E2 17 00 04 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 58 [14:28:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:28:50]wFMCommunicate OK [14:28:50]requested_item fd.num is exist - process it [14:28:50]SAM_PROTO_GetFieldsCounters [14:28:50]wFMCommunicate request_size=4 [14:28:50]MH_SAM_APDU [14:28:50]CAPDU: 80 13 00 00 [14:28:50]Write to MH i2c: E2 08 00 05 8D 80 13 00 00 00 00 00 00 0E [14:28:50]Write i2c OK [14:28:50]MH_I2C_Read... [14:28:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:28:50]Read from MH i2c: E2 [14:28:50]MH_I2C_Read... [14:28:50]Read from MH i2c: E2 62 00 [14:28:50]MH_I2C_Read... [14:28:50]Read from MH i2c: E2 62 00 05 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 73 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 AD [14:28: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 73 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:28:50]wFMCommunicate OK [14:28:50]SAM_PROTO_GetFieldsCounters done [14:28:50]requested_item shift.num is exist - process it [14:28:50]requested_item shift.opened is exist - process it [14:28:50]req_shift_opened [14:28:50]FM_GetShiftState [14:28:50]SAM_PROTO_GetShiftState [14:28:50]wFMCommunicate request_size=4 [14:28:50]MH_SAM_APDU [14:28:50]CAPDU: 80 13 01 00 [14:28:50]Write to MH i2c: E2 08 00 06 8D 80 13 01 00 00 00 00 00 10 [14:28:50]Write i2c OK [14:28:50]MH_I2C_Read... [14:28:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:50]Read from MH i2c: E2 [14:28:50]MH_I2C_Read... [14:28:50]Read from MH i2c: E2 0E 00 [14:28:50]MH_I2C_Read... [14:28:50]Read from MH i2c: E2 0E 00 06 8D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 4D [14:28:50]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:28:50]wFMCommunicate OK [14:28:50]SAM_PROTO_GetShiftState done [14:28:50]FM_GetShiftState done [14:28:50]req_shift_opened done [14:28:50]requested_item shift.open_date is exist - process it [14:28:50]req_shift_open_date [14:28:50]req_shift_open_date done [14:28:50]produce_requested_data done [14:28:50]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260723,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [14:28:50]process_action_free close_receipt [14:28:50]json_value_free [14:28:50]json_value_free done [14:28:50]process_json_proto returns [14:28:50]Send response to host [14:28:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260723,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [14:28:50]free response buf [14:28:50]execute_script done [14:28:50]execute_script returns [14:28:50]free content buf [14:28:50]Sock 7.Close socket [14:28:50]Sock 7.Thread stoped [14:28:52]OFD Sender: No OFD packet to send [14:28:57]OFD Sender: No OFD packet to send [14:29:02]OFD Sender: No OFD packet to send [14:29:07]OFD Sender: No OFD packet to send [14:29:12]OFD Sender: No OFD packet to send [14:29:17]OFD Sender: No OFD packet to send [14:29:22]OFD Sender: No OFD packet to send [14:29:27]OFD Sender: No OFD packet to send [14:29:33]OFD Sender: No OFD packet to send [14:29:38]OFD Sender: No OFD packet to send [14:29:43]OFD Sender: No OFD packet to send [14:29:48]OFD Sender: No OFD packet to send [14:29:53]OFD Sender: No OFD packet to send [14:29:58]OFD Sender: No OFD packet to send [14:30:03]OFD Sender: No OFD packet to send [14:30:08]OFD Sender: No OFD packet to send [14:30:13]OFD Sender: No OFD packet to send [14:30:18]OFD Sender: No OFD packet to send [14:30:23]OFD Sender: No OFD packet to send [14:30:28]OFD Sender: No OFD packet to send [14:30:33]OFD Sender: No OFD packet to send [14:30:38]OFD Sender: No OFD packet to send [14:30:43]OFD Sender: No OFD packet to send [14:30:48]OFD Sender: No OFD packet to send [14:30:53]OFD Sender: No OFD packet to send [14:30:58]OFD Sender: No OFD packet to send [14:31:03]OFD Sender: No OFD packet to send [14:31:08]OFD Sender: No OFD packet to send [14:31:13]OFD Sender: No OFD packet to send [14:31:18]OFD Sender: No OFD packet to send [14:31:23]OFD Sender: No OFD packet to send [14:31:28]OFD Sender: No OFD packet to send [14:31:33]OFD Sender: No OFD packet to send [14:31:38]OFD Sender: No OFD packet to send [14:31:43]OFD Sender: No OFD packet to send [14:31:48]OFD Sender: No OFD packet to send [14:31:53]OFD Sender: No OFD packet to send [14:31:56]accept exits with 9 [14:31:56]New connection [14:31:56]New thread 3066473828 created [14:31:56]Thread 3066617188 joined [14:31:56]Waiting for new connection... [14:31:56] Sock 9.Parse request [14:31:56]Sock 9.Check first char [14:31:56]Sock 9.First char is OK [14:31:56]request: POST /json_proto HTTP/1.0 [14:31:56]Method: POST [14:31:56]URL: /json_proto [14:31:56]Method is POST - this is cgi request [14:31:56]url: /json_proto [14:31:56]query_string will be loaded in cgi processing [14:31:56]execute_cgi json_proto POST (null) [14:31:56]execute_cgi path=json_proto method=POST [14:31:56]POST find Content-Length [14:31:56]Host: 172.17.55.133:8080 [14:31:56]Content-Length: 678 [14:31:56]Content-Type: application/json [14:31:56] [14:31:56]POST finish read [14:31:56]Found Content-Length = 678 [14:31:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:56]execute_script... [14:31: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)1036273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:56]POST & json_proto [14:31:56]process_json_proto [14:31:56]json parsed OK: [14:31:56]protocol is kg_v1.0 [14:31:56]action value=close_receipt [14:31:56]process_action close_receipt [14:31:56]cmd_close_receipt [14:31:56]MH_GetDate [14:31:56]Write to MH i2c: F0 00 00 07 8D 83 [14:31:56]Write i2c OK [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: F0 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: F0 09 00 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: F0 09 00 07 8D 00 E2 05 C2 66 34 48 D8 65 54 [14:31:56]GetLastDocTimeStamp 1723991330 [14:31:56]current date 1723991522 [14:31:56]FM_GetShiftState [14:31:56]SAM_PROTO_GetShiftState [14:31:56]wFMCommunicate request_size=4 [14:31:56]MH_SAM_APDU [14:31:56]CAPDU: 80 13 01 00 [14:31:56]Write to MH i2c: E2 08 00 08 8D 80 13 01 00 00 00 00 00 12 [14:31:56]Write i2c OK [14:31:56]MH_I2C_Read... [14:31:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:56]Read from MH i2c: E2 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: E2 0E 00 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: E2 0E 00 08 8D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 4F [14:31:56]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:31:56]wFMCommunicate OK [14:31:56]SAM_PROTO_GetShiftState done [14:31:56]FM_GetShiftState done [14:31:56]opened in 1723940556 [14:31:56]opened+sec_in_day 1724026956 [14:31:56]quantity*price = 50036 [14:31:56]sum+1 = 50037 [14:31:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 282 18.08.2024 14:32 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260724 ФПД: 185041053799504 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T143202&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260724&fm=185041053799504&tin=02508201610067®Number=0000000000091865&sum=50000 [14:31:58]StoreToDocumentArchive [14:31:58]shift 449 fd 260724 [14:31:58]save to /storage/0449/doc_00260724 [14:31:58]save last doc name /storage/0449/doc_00260724 to /storage/kkm_last_doc_name [14:31:58]save OK [14:31:58]Clear old archive folders... [14:31:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:31:58]tlvbuf is 0036F3D0 [14:31:58]SAM_PROTO_ClearQueue [14:31:58]wFMCommunicate request_size=4 [14:31:58]MH_SAM_APDU [14:31:58]CAPDU: 80 09 00 00 [14:31:58]Write to MH i2c: E2 08 00 15 8D 80 09 00 00 00 00 00 00 14 [14:31:58]Write i2c OK [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 [14:31:58]MH_I2C_Read... [14:31:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:58]Read from MH i2c: E2 03 00 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 03 00 15 8D 00 90 00 16 [14:31:58]RAPDU: 90 00 [14:31:58]wFMCommunicate OK [14:31:58]SAM_PROTO_ClearQueue done [14:31:58]KKMCreateOFDPacket [14:31:58]OFDProtocolAddRootSTLVToBuf [14:31:58]FM_MakeSignedData [14:31:58]FM_MakeSignedData [14:31:58]SAM_PROTO_SignData [14:31:58]wFMCommunicate request_size=4 [14:31:58]MH_SAM_APDU [14:31:58]CAPDU: 80 0D 01 02 [14:31:58]Write to MH i2c: E2 08 00 16 8D 80 0D 01 02 00 00 00 00 1C [14:31:58]Write i2c OK [14:31:58]MH_I2C_Read... [14:31:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:58]Read from MH i2c: E2 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 03 00 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 03 00 16 8D 00 90 00 17 [14:31:58]RAPDU: 90 00 [14:31:58]wFMCommunicate OK [14:31:58]wFMCommunicate request_size=255 [14:31:58]MH_SAM_APDU [14:31:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1A 01 00 00 F4 03 04 00 E2 05 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 74 FA 03 00 35 04 06 00 A8 [14:31:58]Write to MH i2c: E2 02 01 17 8D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1A 01 00 00 F4 03 04 00 E2 05 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 74 FA 03 00 35 04 06 00 A8 00 00 9E [14:31:58]Write i2c OK [14:31:58]MH_I2C_Read... [14:31:58]OFD Sender: No OFD packet to send [14:31:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:58]Read from MH i2c: E2 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 03 00 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 03 00 17 8D 00 90 00 18 [14:31:58]RAPDU: 90 00 [14:31:58]wFMCommunicate OK [14:31:58]wFMCommunicate request_size=10 [14:31:58]MH_SAM_APDU [14:31:58]CAPDU: 80 0D 02 02 05 4B 3A 47 D4 50 [14:31:58]Write to MH i2c: E2 0D 00 18 8D 80 0D 02 02 05 00 4B 3A 47 D4 50 00 00 19 [14:31:58]Write i2c OK [14:31:58]MH_I2C_Read... [14:31:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:58]Read from MH i2c: E2 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 03 00 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 03 00 18 8D 00 90 00 19 [14:31:58]RAPDU: 90 00 [14:31:58]wFMCommunicate OK [14:31:58]wFMCommunicate request_size=4 [14:31:58]MH_SAM_APDU [14:31:58]CAPDU: 80 0D 03 02 [14:31:58]Write to MH i2c: E2 08 00 19 8D 80 0D 03 02 00 00 00 00 21 [14:31:58]Write i2c OK [14:31:58]MH_I2C_Read... [14:31:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:58]Read from MH i2c: E2 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 0B 00 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 0B 00 19 8D 00 08 75 BC 31 73 84 F3 53 90 00 C9 [14:31:58]RAPDU: 08 75 BC 31 73 84 F3 53 90 00 [14:31:58]wFMCommunicate OK [14:31:58]SAM_PROTO_SignData done [14:31:58]FM_MakeSignedData done [14:31:58]CreateOFDProtocolMessage [14:31:58]wFMCommunicate request_size=4 [14:31:58]MH_SAM_APDU [14:31:58]CAPDU: 80 11 00 00 [14:31:58]Write to MH i2c: E2 08 00 1A 8D 80 11 00 00 00 00 00 00 21 [14:31:58]Write i2c OK [14:31:58]MH_I2C_Read... [14:31:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:58]Read from MH i2c: E2 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 17 00 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 17 00 1A 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 6E [14:31:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:31:58]wFMCommunicate OK [14:31:58]CreateOFDProtocolMessage done [14:31:58]OFDSenderStorePacket 260724 [14:31:58]StoreOFDPacket docnum=260724 [14:31:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 25 65 07 01 82 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1A 01 00 00 F4 03 04 00 E2 05 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 74 FA 03 00 35 04 06 00 A8 4B 3A 47 D4 50 08 75 BC 31 73 84 F3 53 [14:31:58]CheckFolder [14:31:58]dirname=/storage/ofd_packets [14:31:58]CheckFolder done [14:31:58]ProducePacketName [14:31:58]name=ofd_packets/00260724 [14:31:58]NVStorageSaveData ofd_packets/00260724 [14:31:58]File name is /storage/ofd_packets/00260724 [14:31:58]Write 301 bytes [14:31:58]NVStorageSaveData done [14:31:58]OFDSenderStorePacket done [14:31:58]KKMCreateOFDPacket done [14:31:58]NVStorageSaveData kkm_last_timestamp [14:31:58]File name is /storage/kkm_last_timestamp [14:31:58]Write 4 bytes [14:31:58]NVStorageSaveData done [14:31:58]ExternCall_PrintAddStr [14:31:58]wPrintStart [14:31:58]Write to MH i2c: 01 00 00 1B 8D A8 [14:31:58]Write i2c OK [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: 01 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: 01 07 00 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: 01 07 00 1B 8D 00 00 00 00 00 FF 0F BD [14:31:58]RasterBufferAndPrint [14:31:58]line Счет N : (1)1036273 [14:31:58]line ИНН: 02508201610067 [14:31:58]line Контрольно-Кассовый Чек [14:31:58]line ПРОДАЖА [14:31:58]line ТРК (МРК, ГНК) : 12 [14:31:58]line Товар: 2710124130 [14:31:58]line Аи-92-К-5 [14:31:58]line 7.380 * 67.80 [14:31:58]line = 500.36 [14:31:58]line НДС 12% НСП 1% [14:31:58]line > о реализуемом товаре [14:31:58]line ОКРУГЛЕНИЕ: -0.36 [14:31:58]line ИТОГО: 500.00 [14:31:58]line Внесено: 500.00 [14:31:58]line СДАЧА: 0.00 [14:31:58]line НСП 1% : 4.43 [14:31:58]line НДС 12% : 53.14 [14:31:58]line Наличными: 500.00 [14:31:58]line Безнал.: 0.00 [14:31:58]line Место: АЗС № 94 "Партнер Нефть" [14:31:58]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [14:31:58]line СНО: Общий режим [14:31:58]line Чек 282 18.08.2024 14:32 [14:31:58]line Смена: 449 ФФД: 1.0 [14:31:58]line ЗНМ: 0300000099 [14:31:58]line РНМ: 0000000000091865 [14:31:58]line Версия ККМ: 001 [14:31:58]line ФМ: 0000000000871820 [14:31:58]line ФД: 260724 [14:31:58]line ФПД: 185041053799504 [14:31:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T143202&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260724&fm=185041053799504&tin=02508201610067®Number=0000000000091865&sum=50000 [14:31:58]OFD Sender: Processing packet 260724 [packets to send 192, broken 191] [14:31:58]ProducePacketName [14:31:58]name=ofd_packets/00260724 [14:31:58]OFD Sender: To server: pG, [14:31:58]CommunicateWithHost lk.salyk.kg:30040 [14:31:58]ConnectInit lk.salyk.kg [14:31:58]written 0, free lines is 4095 [14:31:58]Connected sock=10 [14:31: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 30 0F 01 00 00 25 65 07 01 82 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1A 01 00 00 F4 03 04 00 E2 05 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 74 FA 03 00 35 04 06 00 A8 4B 3A 47 D4 50 08 75 BC 31 73 84 F3 53 [14:31: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 30 4F 00 00 00 77 C2 47 00 D5 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 30 10 04 04 00 74 FA 03 00 F4 03 04 00 36 AF C1 66 B6 04 01 00 00 AB 36 7D 66 CE ED 9E 9F [14:31:59]CommunicateWithHost err = 0 [14:31:59]CheckOFDResponse [14:31:59]1017 (14) - 77093643461234 [14:31:59]1041 (16) - 0000000000871820 [14:31:59]1040 (4) - 260724 [14:31:59]1012 (4) - 18.08.2024 08:22 [14:31:59]1206 (1) - 0 [14:31:59]OFD Sender: Remove packet 260724 [14:31:59]ProducePacketName [14:31:59]name=ofd_packets/00260724 [14:31:59]NVStorageDeleteData [14:31:59]Write to MH i2c: 01 00 00 46 8D D3 [14:31:59]Write i2c OK [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: 01 [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: 01 07 00 [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: 01 07 00 46 8D 00 00 00 00 00 66 0C 4C [14:31:59]RasterBufferAndPrint [14:31:59]line [14:31:59]line [14:31:59]line [14:31:59]line [14:31:59]line [14:31:59]written 0, free lines is 3178 [14:31:59]MH_Cut [14:31:59]Write to MH i2c: D1 01 00 4D 8D 01 AC [14:31:59]Write i2c OK [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: D1 [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: D1 01 00 [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: D1 01 00 4D 8D 00 AB [14:31:59]Write to MH i2c: 01 00 00 4E 8D DB [14:31:59]Write i2c OK [14:31:59]MH_I2C_Read... [14:31:59]OFD Sender: No OFD packet to send [14:32:00]*** Cut start [14:32:00]*** Purtial cut [14:32:00]*** Stage 1: CUTSNS_PIN = 1 [14:32:02]Read from MH i2c: 01 [14:32:02]MH_I2C_Read... [14:32:02]*** Stop cut motor [14:32:02]*** Cut end [14:32:02]Read from MH i2c: 01 07 00 [14:32:02]MH_I2C_Read... [14:32:02]Read from MH i2c: 01 07 00 4E 8D 00 00 00 00 00 FF 0F F0 [14:32:02]process_action close_receipt done [14:32:02]requested_data is exist [14:32:02]produce_requested_data [14:32:02]requested_item fm.sn is exist - process it [14:32:02]wFMCommunicate request_size=4 [14:32:02]MH_SAM_APDU [14:32:02]CAPDU: 80 11 00 00 [14:32:02]Write to MH i2c: E2 08 00 4F 8D 80 11 00 00 00 00 00 00 56 [14:32:02]Write i2c OK [14:32:02]MH_I2C_Read... [14:32:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:02]Read from MH i2c: E2 [14:32:02]MH_I2C_Read... [14:32:02]Read from MH i2c: E2 17 00 [14:32:02]MH_I2C_Read... [14:32:02]Read from MH i2c: E2 17 00 4F 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A3 [14:32:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:32:02]wFMCommunicate OK [14:32:02]requested_item fd.num is exist - process it [14:32:02]SAM_PROTO_GetFieldsCounters [14:32:02]wFMCommunicate request_size=4 [14:32:02]MH_SAM_APDU [14:32:02]CAPDU: 80 13 00 00 [14:32:02]Write to MH i2c: E2 08 00 50 8D 80 13 00 00 00 00 00 00 59 [14:32:02]Write i2c OK [14:32:02]MH_I2C_Read... [14:32:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:02]Read from MH i2c: E2 [14:32:02]MH_I2C_Read... [14:32:02]Read from MH i2c: E2 62 00 [14:32:02]MH_I2C_Read... [14:32:02]Read from MH i2c: E2 62 00 50 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 74 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 FC [14:32: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 74 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:32:02]wFMCommunicate OK [14:32:02]SAM_PROTO_GetFieldsCounters done [14:32:02]requested_item shift.num is exist - process it [14:32:02]requested_item shift.opened is exist - process it [14:32:02]req_shift_opened [14:32:02]FM_GetShiftState [14:32:02]SAM_PROTO_GetShiftState [14:32:02]wFMCommunicate request_size=4 [14:32:02]MH_SAM_APDU [14:32:02]CAPDU: 80 13 01 00 [14:32:02]Write to MH i2c: E2 08 00 51 8D 80 13 01 00 00 00 00 00 5B [14:32:02]Write i2c OK [14:32:02]MH_I2C_Read... [14:32:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:02]Read from MH i2c: E2 [14:32:02]MH_I2C_Read... [14:32:02]Read from MH i2c: E2 0E 00 [14:32:02]MH_I2C_Read... [14:32:02]Read from MH i2c: E2 0E 00 51 8D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 98 [14:32:02]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:32:02]wFMCommunicate OK [14:32:02]SAM_PROTO_GetShiftState done [14:32:02]FM_GetShiftState done [14:32:02]req_shift_opened done [14:32:02]requested_item shift.open_date is exist - process it [14:32:02]req_shift_open_date [14:32:02]req_shift_open_date done [14:32:02]produce_requested_data done [14:32:02]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260724,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [14:32:02]process_action_free close_receipt [14:32:02]json_value_free [14:32:02]json_value_free done [14:32:02]process_json_proto returns [14:32:02]Send response to host [14:32:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260724,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [14:32:02]free response buf [14:32:02]execute_script done [14:32:02]execute_script returns [14:32:02]free content buf [14:32:02]Sock 9.Close socket [14:32:02]Sock 9.Thread stoped [14:32:04]OFD Sender: No OFD packet to send [14:32:09]OFD Sender: No OFD packet to send [14:32:14]OFD Sender: No OFD packet to send [14:32:19]OFD Sender: No OFD packet to send [14:32:24]OFD Sender: No OFD packet to send [14:32:29]OFD Sender: No OFD packet to send [14:32:34]OFD Sender: No OFD packet to send [14:32:39]OFD Sender: No OFD packet to send [14:32:44]OFD Sender: No OFD packet to send [14:32:49]OFD Sender: No OFD packet to send [14:32:54]OFD Sender: No OFD packet to send [14:32:59]OFD Sender: No OFD packet to send [14:33:04]OFD Sender: No OFD packet to send [14:33:09]OFD Sender: No OFD packet to send [14:33:14]OFD Sender: No OFD packet to send [14:33:19]OFD Sender: No OFD packet to send [14:33:24]OFD Sender: No OFD packet to send [14:33:29]OFD Sender: No OFD packet to send [14:33:34]OFD Sender: No OFD packet to send [14:33:39]OFD Sender: No OFD packet to send [14:33:44]OFD Sender: No OFD packet to send [14:33:49]OFD Sender: No OFD packet to send [14:33:54]OFD Sender: No OFD packet to send [14:33:59]OFD Sender: No OFD packet to send [14:34:04]OFD Sender: No OFD packet to send [14:34:09]OFD Sender: No OFD packet to send [14:34:14]OFD Sender: No OFD packet to send [14:34:19]OFD Sender: No OFD packet to send [14:34:24]OFD Sender: No OFD packet to send [14:34:29]OFD Sender: No OFD packet to send [14:34:34]OFD Sender: No OFD packet to send [14:34:39]OFD Sender: No OFD packet to send [14:34:44]OFD Sender: No OFD packet to send [14:34:49]OFD Sender: No OFD packet to send [14:34:54]OFD Sender: No OFD packet to send [14:34:59]OFD Sender: No OFD packet to send [14:35:04]OFD Sender: No OFD packet to send [14:35:09]OFD Sender: No OFD packet to send [14:35:14]OFD Sender: No OFD packet to send [14:35:19]OFD Sender: No OFD packet to send [14:35:24]OFD Sender: No OFD packet to send [14:35:29]OFD Sender: No OFD packet to send [14:35:34]OFD Sender: No OFD packet to send [14:35:39]OFD Sender: No OFD packet to send [14:35:44]OFD Sender: No OFD packet to send [14:35:50]OFD Sender: No OFD packet to send [14:35:55]OFD Sender: No OFD packet to send [14:36:00]OFD Sender: No OFD packet to send [14:36:05]OFD Sender: No OFD packet to send [14:36:10]OFD Sender: No OFD packet to send [14:36:15]OFD Sender: No OFD packet to send [14:36:20]OFD Sender: No OFD packet to send [14:36:25]OFD Sender: No OFD packet to send [14:36:30]OFD Sender: No OFD packet to send [14:36:35]OFD Sender: No OFD packet to send [14:36:40]OFD Sender: No OFD packet to send [14:36:45]OFD Sender: No OFD packet to send [14:36:50]OFD Sender: No OFD packet to send [14:36:55]OFD Sender: No OFD packet to send [14:37:00]OFD Sender: No OFD packet to send [14:37:05]OFD Sender: No OFD packet to send [14:37:10]OFD Sender: No OFD packet to send [14:37:15]OFD Sender: No OFD packet to send [14:37:20]OFD Sender: No OFD packet to send [14:37:25]OFD Sender: No OFD packet to send [14:37:30]OFD Sender: No OFD packet to send [14:37:35]OFD Sender: No OFD packet to send [14:37:40]OFD Sender: No OFD packet to send [14:37:45]OFD Sender: No OFD packet to send [14:37:50]OFD Sender: No OFD packet to send [14:37:55]OFD Sender: No OFD packet to send [14:38:00]OFD Sender: No OFD packet to send [14:38:05]OFD Sender: No OFD packet to send [14:38:10]OFD Sender: No OFD packet to send [14:38:15]OFD Sender: No OFD packet to send [14:38:20]OFD Sender: No OFD packet to send [14:38:25]OFD Sender: No OFD packet to send [14:38:30]OFD Sender: No OFD packet to send [14:38:35]OFD Sender: No OFD packet to send [14:38:40]OFD Sender: No OFD packet to send [14:38:45]OFD Sender: No OFD packet to send [14:38:50]OFD Sender: No OFD packet to send [14:38:55]OFD Sender: No OFD packet to send [14:39:00]OFD Sender: No OFD packet to send [14:39:05]OFD Sender: No OFD packet to send [14:39:10]OFD Sender: No OFD packet to send [14:39:15]OFD Sender: No OFD packet to send [14:39:20]OFD Sender: No OFD packet to send [14:39:25]OFD Sender: No OFD packet to send [14:39:30]OFD Sender: No OFD packet to send [14:39:35]OFD Sender: No OFD packet to send [14:39:40]OFD Sender: No OFD packet to send [14:39:45]OFD Sender: No OFD packet to send [14:39:50]OFD Sender: No OFD packet to send [14:39:55]OFD Sender: No OFD packet to send [14:40:00]OFD Sender: No OFD packet to send [14:40:05]OFD Sender: No OFD packet to send [14:40:10]OFD Sender: No OFD packet to send [14:40:15]OFD Sender: No OFD packet to send [14:40:20]OFD Sender: No OFD packet to send [14:40:25]OFD Sender: No OFD packet to send [14:40:30]OFD Sender: No OFD packet to send [14:40:35]OFD Sender: No OFD packet to send [14:40:40]OFD Sender: No OFD packet to send [14:40:45]OFD Sender: No OFD packet to send [14:40:50]OFD Sender: No OFD packet to send [14:40:55]OFD Sender: No OFD packet to send [14:41:00]OFD Sender: No OFD packet to send [14:41:05]OFD Sender: No OFD packet to send [14:41:10]OFD Sender: No OFD packet to send [14:41:15]OFD Sender: No OFD packet to send [14:41:20]OFD Sender: No OFD packet to send [14:41:25]OFD Sender: No OFD packet to send [14:41:30]OFD Sender: No OFD packet to send [14:41:35]OFD Sender: No OFD packet to send [14:41:40]OFD Sender: No OFD packet to send [14:41:45]OFD Sender: No OFD packet to send [14:41:50]OFD Sender: No OFD packet to send [14:41:55]OFD Sender: No OFD packet to send [14:42:00]OFD Sender: No OFD packet to send [14:42:05]OFD Sender: No OFD packet to send [14:42:10]OFD Sender: No OFD packet to send [14:42:15]OFD Sender: No OFD packet to send [14:42:20]OFD Sender: No OFD packet to send [14:42:25]OFD Sender: No OFD packet to send [14:42:30]OFD Sender: No OFD packet to send [14:42:32]accept exits with 7 [14:42:32]New connection [14:42:32]New thread 3066617188 created [14:42:32]Thread 3066473828 joined [14:42:32]Waiting for new connection... [14:42:32] Sock 7.Parse request [14:42:32]Sock 7.Check first char [14:42:32]Sock 7.First char is OK [14:42:32]request: POST /json_proto HTTP/1.0 [14:42:32]Method: POST [14:42:32]URL: /json_proto [14:42:32]Method is POST - this is cgi request [14:42:32]url: /json_proto [14:42:32]query_string will be loaded in cgi processing [14:42:32]execute_cgi json_proto POST (null) [14:42:32]execute_cgi path=json_proto method=POST [14:42:32]POST find Content-Length [14:42:32]Host: 172.17.55.133:8080 [14:42:32]Content-Length: 678 [14:42:32]Content-Type: application/json [14:42:32] [14:42:32]POST finish read [14:42:32]Found Content-Length = 678 [14:42:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036274", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:32]execute_script... [14:42: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)1036274", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:32]POST & json_proto [14:42:32]process_json_proto [14:42:32]json parsed OK: [14:42:32]protocol is kg_v1.0 [14:42:32]action value=close_receipt [14:42:32]process_action close_receipt [14:42:32]cmd_close_receipt [14:42:32]MH_GetDate [14:42:32]Write to MH i2c: F0 00 00 52 8D CE [14:42:32]Write i2c OK [14:42:32]MH_I2C_Read... [14:42:32]Read from MH i2c: F0 [14:42:32]MH_I2C_Read... [14:42:32]Read from MH i2c: F0 09 00 [14:42:32]MH_I2C_Read... [14:42:32]Read from MH i2c: F0 09 00 52 8D 00 5D 08 C2 66 34 48 D8 65 1D [14:42:32]GetLastDocTimeStamp 1723991522 [14:42:32]current date 1723992157 [14:42:32]FM_GetShiftState [14:42:32]SAM_PROTO_GetShiftState [14:42:32]wFMCommunicate request_size=4 [14:42:32]MH_SAM_APDU [14:42:32]CAPDU: 80 13 01 00 [14:42:32]Write to MH i2c: E2 08 00 53 8D 80 13 01 00 00 00 00 00 5D [14:42:32]Write i2c OK [14:42:32]MH_I2C_Read... [14:42:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:32]Read from MH i2c: E2 [14:42:32]MH_I2C_Read... [14:42:32]Read from MH i2c: E2 0E 00 [14:42:32]MH_I2C_Read... [14:42:32]Read from MH i2c: E2 0E 00 53 8D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 9A [14:42:32]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:42:32]wFMCommunicate OK [14:42:32]SAM_PROTO_GetShiftState done [14:42:32]FM_GetShiftState done [14:42:32]opened in 1723940556 [14:42:32]opened+sec_in_day 1724026956 [14:42:32]quantity*price = 50010 [14:42:32]sum+1 = 50012 [14:42:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 283 18.08.2024 14:42 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260725 ФПД: 4343437307894 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T144237&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260725&fm=4343437307894&tin=02508201610067®Number=0000000000091865&sum=50000 [14:42:33]StoreToDocumentArchive [14:42:33]shift 449 fd 260725 [14:42:33]save to /storage/0449/doc_00260725 [14:42:33]save last doc name /storage/0449/doc_00260725 to /storage/kkm_last_doc_name [14:42:33]save OK [14:42:33]Clear old archive folders... [14:42:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:42:33]tlvbuf is 003E2F30 [14:42:33]SAM_PROTO_ClearQueue [14:42:33]wFMCommunicate request_size=4 [14:42:33]MH_SAM_APDU [14:42:33]CAPDU: 80 09 00 00 [14:42:33]Write to MH i2c: E2 08 00 60 8D 80 09 00 00 00 00 00 00 5F [14:42:33]Write i2c OK [14:42:33]MH_I2C_Read... [14:42:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:33]Read from MH i2c: E2 [14:42:33]MH_I2C_Read... [14:42:33]Read from MH i2c: E2 03 00 [14:42:33]MH_I2C_Read... [14:42:33]Read from MH i2c: E2 03 00 60 8D 00 90 00 61 [14:42:33]RAPDU: 90 00 [14:42:33]wFMCommunicate OK [14:42:33]SAM_PROTO_ClearQueue done [14:42:33]KKMCreateOFDPacket [14:42:33]OFDProtocolAddRootSTLVToBuf [14:42:33]FM_MakeSignedData [14:42:33]FM_MakeSignedData [14:42:33]SAM_PROTO_SignData [14:42:33]wFMCommunicate request_size=4 [14:42:33]MH_SAM_APDU [14:42:33]CAPDU: 80 0D 01 02 [14:42:33]Write to MH i2c: E2 08 00 61 8D 80 0D 01 02 00 00 00 00 67 [14:42:33]Write i2c OK [14:42:33]MH_I2C_Read... [14:42:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:33]Read from MH i2c: E2 [14:42:33]MH_I2C_Read... [14:42:33]Read from MH i2c: E2 03 00 [14:42:33]MH_I2C_Read... [14:42:33]Read from MH i2c: E2 03 00 61 8D 00 90 00 62 [14:42:33]RAPDU: 90 00 [14:42:33]wFMCommunicate OK [14:42:33]wFMCommunicate request_size=255 [14:42:33]MH_SAM_APDU [14:42: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 5D 08 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 75 FA 03 00 35 04 06 00 03 [14:42:33]Write to MH i2c: E2 02 01 62 8D 80 0D 02 02 FA 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 5D 08 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 75 FA 03 00 35 04 06 00 03 00 00 AC [14:42:33]Write i2c OK [14:42:33]MH_I2C_Read... [14:42:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:33]Read from MH i2c: E2 [14:42:33]MH_I2C_Read... [14:42:33]Read from MH i2c: E2 03 00 [14:42:33]MH_I2C_Read... [14:42:33]Read from MH i2c: E2 03 00 62 8D 00 90 00 63 [14:42:33]RAPDU: 90 00 [14:42:33]wFMCommunicate OK [14:42:33]wFMCommunicate request_size=10 [14:42:33]MH_SAM_APDU [14:42:33]CAPDU: 80 0D 02 02 05 F3 49 09 AF F6 [14:42:33]Write to MH i2c: E2 0D 00 63 8D 80 0D 02 02 05 00 F3 49 09 AF F6 00 00 5E [14:42:33]Write i2c OK [14:42:33]MH_I2C_Read... [14:42:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:33]Read from MH i2c: E2 [14:42:33]MH_I2C_Read... [14:42:33]Read from MH i2c: E2 03 00 [14:42:33]MH_I2C_Read... [14:42:33]Read from MH i2c: E2 03 00 63 8D 00 90 00 64 [14:42:33]RAPDU: 90 00 [14:42:33]wFMCommunicate OK [14:42:33]wFMCommunicate request_size=4 [14:42:33]MH_SAM_APDU [14:42:33]CAPDU: 80 0D 03 02 [14:42:33]Write to MH i2c: E2 08 00 64 8D 80 0D 03 02 00 00 00 00 6C [14:42:33]Write i2c OK [14:42:33]MH_I2C_Read... [14:42:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:33]Read from MH i2c: E2 [14:42:33]MH_I2C_Read... [14:42:33]Read from MH i2c: E2 0B 00 [14:42:33]MH_I2C_Read... [14:42:33]Read from MH i2c: E2 0B 00 64 8D 00 89 C5 EE 70 6B F2 34 B5 90 00 5F [14:42:33]RAPDU: 89 C5 EE 70 6B F2 34 B5 90 00 [14:42:33]wFMCommunicate OK [14:42:33]SAM_PROTO_SignData done [14:42:33]FM_MakeSignedData done [14:42:33]CreateOFDProtocolMessage [14:42:33]wFMCommunicate request_size=4 [14:42:33]MH_SAM_APDU [14:42:33]CAPDU: 80 11 00 00 [14:42:33]Write to MH i2c: E2 08 00 65 8D 80 11 00 00 00 00 00 00 6C [14:42:33]Write i2c OK [14:42:33]MH_I2C_Read... [14:42:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:34]Read from MH i2c: E2 [14:42:34]MH_I2C_Read... [14:42:34]Read from MH i2c: E2 17 00 [14:42:34]MH_I2C_Read... [14:42:34]Read from MH i2c: E2 17 00 65 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B9 [14:42:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:42:34]wFMCommunicate OK [14:42:34]CreateOFDProtocolMessage done [14:42:34]OFDSenderStorePacket 260725 [14:42:34]StoreOFDPacket docnum=260725 [14:42:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 CE 33 07 01 99 20 5A 03 01 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 5D 08 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 75 FA 03 00 35 04 06 00 03 F3 49 09 AF F6 89 C5 EE 70 6B F2 34 B5 [14:42:34]CheckFolder [14:42:34]dirname=/storage/ofd_packets [14:42:34]CheckFolder done [14:42:34]ProducePacketName [14:42:34]name=ofd_packets/00260725 [14:42:34]NVStorageSaveData ofd_packets/00260725 [14:42:34]File name is /storage/ofd_packets/00260725 [14:42:34]Write 301 bytes [14:42:34]NVStorageSaveData done [14:42:34]OFDSenderStorePacket done [14:42:34]KKMCreateOFDPacket done [14:42:34]NVStorageSaveData kkm_last_timestamp [14:42:34]File name is /storage/kkm_last_timestamp [14:42:34]Write 4 bytes [14:42:34]NVStorageSaveData done [14:42:34]ExternCall_PrintAddStr [14:42:34]wPrintStart [14:42:34]Write to MH i2c: 01 00 00 66 8D F3 [14:42:34]Write i2c OK [14:42:34]MH_I2C_Read... [14:42:34]Read from MH i2c: 01 [14:42:34]MH_I2C_Read... [14:42:34]Read from MH i2c: 01 07 00 [14:42:34]MH_I2C_Read... [14:42:34]Read from MH i2c: 01 07 00 66 8D 00 00 00 00 00 FF 0F 08 [14:42:34]RasterBufferAndPrint [14:42:34]line Счет N : (1)1036274 [14:42:34]line ИНН: 02508201610067 [14:42:34]line Контрольно-Кассовый Чек [14:42:34]line ПРОДАЖА [14:42:34]line ТРК (МРК, ГНК) : 13 [14:42:34]line Товар: 2710124500 [14:42:34]line Аи-95-К-5 [14:42:34]line 6.740 * 74.20 [14:42:34]line = 500.11 [14:42:34]line НДС 12% НСП 1% [14:42:34]line > о реализуемом товаре [14:42:34]line ОКРУГЛЕНИЕ: -0.11 [14:42:34]line ИТОГО: 500.00 [14:42:34]line Внесено: 500.00 [14:42:34]line СДАЧА: 0.00 [14:42:34]line НСП 1% : 4.43 [14:42:34]line НДС 12% : 53.11 [14:42:34]line Наличными: 500.00 [14:42:34]line Безнал.: 0.00 [14:42:34]line Место: АЗС № 94 "Партнер Нефть" [14:42:34]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [14:42:34]line СНО: Общий режим [14:42:34]line Чек 283 18.08.2024 14:42 [14:42:34]line Смена: 449 ФФД: 1.0 [14:42:34]line ЗНМ: 0300000099 [14:42:34]line РНМ: 0000000000091865 [14:42:34]line Версия ККМ: 001 [14:42:34]line ФМ: 0000000000871820 [14:42:34]line ФД: 260725 [14:42:34]line ФПД: 4343437307894 [14:42:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T144237&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260725&fm=4343437307894&tin=02508201610067®Number=0000000000091865&sum=50000 [14:42:34]written 0, free lines is 4095 [14:42:34]OFD Sender: Processing packet 260725 [packets to send 192, broken 191] [14:42:34]ProducePacketName [14:42:34]name=ofd_packets/00260725 [14:42:34]OFD Sender: To server: pG, [14:42:34]CommunicateWithHost lk.salyk.kg:30040 [14:42:34]ConnectInit lk.salyk.kg [14:42:34]Connected sock=10 [14:42: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 30 0F 01 00 00 CE 33 07 01 99 20 5A 03 01 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 5D 08 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 75 FA 03 00 35 04 06 00 03 F3 49 09 AF F6 89 C5 EE 70 6B F2 34 B5 [14:42: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 30 4F 00 00 00 92 90 47 00 9D 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 30 10 04 04 00 75 FA 03 00 F4 03 04 00 B2 B1 C1 66 B6 04 01 00 00 11 D9 E6 D1 85 73 6A 8F [14:42:34]CommunicateWithHost err = 0 [14:42:34]CheckOFDResponse [14:42:34]1017 (14) - 77093643461234 [14:42:34]1041 (16) - 0000000000871820 [14:42:34]1040 (4) - 260725 [14:42:34]1012 (4) - 18.08.2024 08:32 [14:42:34]1206 (1) - 0 [14:42:34]OFD Sender: Remove packet 260725 [14:42:34]ProducePacketName [14:42:34]name=ofd_packets/00260725 [14:42:34]NVStorageDeleteData [14:42:34]Write to MH i2c: 01 00 00 91 8D 1E [14:42:34]Write i2c OK [14:42:34]MH_I2C_Read... [14:42:34]Read from MH i2c: 01 [14:42:34]MH_I2C_Read... [14:42:34]Read from MH i2c: 01 07 00 [14:42:34]MH_I2C_Read... [14:42:34]Read from MH i2c: 01 07 00 91 8D 00 00 00 00 00 6A 0C 9B [14:42:34]RasterBufferAndPrint [14:42:34]line [14:42:34]line [14:42:34]line [14:42:34]line [14:42:34]line [14:42:34]written 0, free lines is 3182 [14:42:34]MH_Cut [14:42:34]Write to MH i2c: D1 01 00 98 8D 01 F7 [14:42:34]Write i2c OK [14:42:34]MH_I2C_Read... [14:42:34]Read from MH i2c: D1 [14:42:34]MH_I2C_Read... [14:42:34]Read from MH i2c: D1 01 00 [14:42:34]MH_I2C_Read... [14:42:34]Read from MH i2c: D1 01 00 98 8D 00 F6 [14:42:34]Write to MH i2c: 01 00 00 99 8D 26 [14:42:34]Write i2c OK [14:42:34]MH_I2C_Read... [14:42:34]OFD Sender: No OFD packet to send [14:42:35]*** Cut start [14:42:35]*** Purtial cut [14:42:35]*** Stage 1: CUTSNS_PIN = 1 [14:42:37]Read from MH i2c: 01 [14:42:37]MH_I2C_Read... [14:42:37]*** Stop cut motor [14:42:37]*** Cut end [14:42:37]Read from MH i2c: 01 07 00 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: 01 07 00 99 8D 00 00 00 00 00 FF 0F 3B [14:42:37]process_action close_receipt done [14:42:37]requested_data is exist [14:42:37]produce_requested_data [14:42:37]requested_item fm.sn is exist - process it [14:42:37]wFMCommunicate request_size=4 [14:42:37]MH_SAM_APDU [14:42:37]CAPDU: 80 11 00 00 [14:42:37]Write to MH i2c: E2 08 00 9A 8D 80 11 00 00 00 00 00 00 A1 [14:42:37]Write i2c OK [14:42:37]MH_I2C_Read... [14:42:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:37]Read from MH i2c: E2 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: E2 17 00 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: E2 17 00 9A 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 EE [14:42:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:42:37]wFMCommunicate OK [14:42:37]requested_item fd.num is exist - process it [14:42:37]SAM_PROTO_GetFieldsCounters [14:42:37]wFMCommunicate request_size=4 [14:42:37]MH_SAM_APDU [14:42:37]CAPDU: 80 13 00 00 [14:42:37]Write to MH i2c: E2 08 00 9B 8D 80 13 00 00 00 00 00 00 A4 [14:42:37]Write i2c OK [14:42:37]MH_I2C_Read... [14:42:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:37]Read from MH i2c: E2 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: E2 62 00 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: E2 62 00 9B 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 75 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 4B [14:42: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 75 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:42:37]wFMCommunicate OK [14:42:37]SAM_PROTO_GetFieldsCounters done [14:42:37]requested_item shift.num is exist - process it [14:42:37]requested_item shift.opened is exist - process it [14:42:37]req_shift_opened [14:42:37]FM_GetShiftState [14:42:37]SAM_PROTO_GetShiftState [14:42:37]wFMCommunicate request_size=4 [14:42:37]MH_SAM_APDU [14:42:37]CAPDU: 80 13 01 00 [14:42:37]Write to MH i2c: E2 08 00 9C 8D 80 13 01 00 00 00 00 00 A6 [14:42:37]Write i2c OK [14:42:37]MH_I2C_Read... [14:42:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:37]Read from MH i2c: E2 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: E2 0E 00 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: E2 0E 00 9C 8D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E3 [14:42:37]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:42:37]wFMCommunicate OK [14:42:37]SAM_PROTO_GetShiftState done [14:42:37]FM_GetShiftState done [14:42:37]req_shift_opened done [14:42:37]requested_item shift.open_date is exist - process it [14:42:37]req_shift_open_date [14:42:37]req_shift_open_date done [14:42:37]produce_requested_data done [14:42:37]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260725,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [14:42:37]process_action_free close_receipt [14:42:37]json_value_free [14:42:37]json_value_free done [14:42:37]process_json_proto returns [14:42:37]Send response to host [14:42:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260725,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [14:42:37]free response buf [14:42:37]execute_script done [14:42:37]execute_script returns [14:42:37]free content buf [14:42:37]Sock 7.Close socket [14:42:37]Sock 7.Thread stoped [14:42:39]OFD Sender: No OFD packet to send [14:42:44]OFD Sender: No OFD packet to send [14:42:49]OFD Sender: No OFD packet to send [14:42:54]OFD Sender: No OFD packet to send [14:42:59]OFD Sender: No OFD packet to send [14:43:04]OFD Sender: No OFD packet to send [14:43:09]OFD Sender: No OFD packet to send [14:43:14]OFD Sender: No OFD packet to send [14:43:19]OFD Sender: No OFD packet to send [14:43:24]OFD Sender: No OFD packet to send [14:43:29]OFD Sender: No OFD packet to send [14:43:35]OFD Sender: No OFD packet to send [14:43:40]OFD Sender: No OFD packet to send [14:43:45]OFD Sender: No OFD packet to send [14:43:50]OFD Sender: No OFD packet to send [14:43:55]OFD Sender: No OFD packet to send [14:44:00]OFD Sender: No OFD packet to send [14:44:05]OFD Sender: No OFD packet to send [14:44:10]OFD Sender: No OFD packet to send [14:44:15]OFD Sender: No OFD packet to send [14:44:20]OFD Sender: No OFD packet to send [14:44:23]accept exits with 9 [14:44:23]New connection [14:44:23]New thread 3066473828 created [14:44:23]Thread 3066617188 joined [14:44:23]Waiting for new connection... [14:44:23] Sock 9.Parse request [14:44:23]Sock 9.Check first char [14:44:23]Sock 9.First char is OK [14:44:23]request: POST /json_proto HTTP/1.0 [14:44:23]Method: POST [14:44:23]URL: /json_proto [14:44:23]Method is POST - this is cgi request [14:44:23]url: /json_proto [14:44:23]query_string will be loaded in cgi processing [14:44:23]execute_cgi json_proto POST (null) [14:44:23]execute_cgi path=json_proto method=POST [14:44:23]POST find Content-Length [14:44:23]Host: 172.17.55.133:8080 [14:44:23]Content-Length: 678 [14:44:23]Content-Type: application/json [14:44:23] [14:44:23]POST finish read [14:44:23]Found Content-Length = 678 [14:44:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "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" ] } } [14:44:23]execute_script... [14:44: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)1036275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "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" ] } } [14:44:23]POST & json_proto [14:44:23]process_json_proto [14:44:23]json parsed OK: [14:44:23]protocol is kg_v1.0 [14:44:23]action value=close_receipt [14:44:23]process_action close_receipt [14:44:23]cmd_close_receipt [14:44:23]MH_GetDate [14:44:23]Write to MH i2c: F0 00 00 9D 8D 19 [14:44:23]Write i2c OK [14:44:23]MH_I2C_Read... [14:44:23]Read from MH i2c: F0 [14:44:23]MH_I2C_Read... [14:44:23]Read from MH i2c: F0 09 00 [14:44:23]MH_I2C_Read... [14:44:23]Read from MH i2c: F0 09 00 9D 8D 00 CC 08 C2 66 34 48 D8 65 D7 [14:44:23]GetLastDocTimeStamp 1723992157 [14:44:23]current date 1723992268 [14:44:23]FM_GetShiftState [14:44:23]SAM_PROTO_GetShiftState [14:44:23]wFMCommunicate request_size=4 [14:44:23]MH_SAM_APDU [14:44:23]CAPDU: 80 13 01 00 [14:44:23]Write to MH i2c: E2 08 00 9E 8D 80 13 01 00 00 00 00 00 A8 [14:44:23]Write i2c OK [14:44:23]MH_I2C_Read... [14:44:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:23]Read from MH i2c: E2 [14:44:23]MH_I2C_Read... [14:44:23]Read from MH i2c: E2 0E 00 [14:44:23]MH_I2C_Read... [14:44:23]Read from MH i2c: E2 0E 00 9E 8D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E5 [14:44:23]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:44:23]wFMCommunicate OK [14:44:23]SAM_PROTO_GetShiftState done [14:44:23]FM_GetShiftState done [14:44:23]opened in 1723940556 [14:44:23]opened+sec_in_day 1724026956 [14:44:23]quantity*price = 25018 [14:44:23]sum+1 = 25019 [14:44:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 284 18.08.2024 14:44 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260726 ФПД: 148599465831742 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T144428&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260726&fm=148599465831742&tin=02508201610067®Number=0000000000091865&sum=25000 [14:44:24]StoreToDocumentArchive [14:44:24]shift 449 fd 260726 [14:44:24]save to /storage/0449/doc_00260726 [14:44:24]save last doc name /storage/0449/doc_00260726 to /storage/kkm_last_doc_name [14:44:24]save OK [14:44:24]Clear old archive folders... [14:44:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:44:24]tlvbuf is 003E94A0 [14:44:24]SAM_PROTO_ClearQueue [14:44:24]wFMCommunicate request_size=4 [14:44:24]MH_SAM_APDU [14:44:24]CAPDU: 80 09 00 00 [14:44:24]Write to MH i2c: E2 08 00 AB 8D 80 09 00 00 00 00 00 00 AA [14:44:24]Write i2c OK [14:44:24]MH_I2C_Read... [14:44:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:44:24]Read from MH i2c: E2 [14:44:24]MH_I2C_Read... [14:44:24]Read from MH i2c: E2 03 00 [14:44:24]MH_I2C_Read... [14:44:24]Read from MH i2c: E2 03 00 AB 8D 00 90 00 AC [14:44:24]RAPDU: 90 00 [14:44:24]wFMCommunicate OK [14:44:24]SAM_PROTO_ClearQueue done [14:44:24]KKMCreateOFDPacket [14:44:24]OFDProtocolAddRootSTLVToBuf [14:44:24]FM_MakeSignedData [14:44:24]FM_MakeSignedData [14:44:24]SAM_PROTO_SignData [14:44:24]wFMCommunicate request_size=4 [14:44:24]MH_SAM_APDU [14:44:24]CAPDU: 80 0D 01 02 [14:44:24]Write to MH i2c: E2 08 00 AC 8D 80 0D 01 02 00 00 00 00 B2 [14:44:24]Write i2c OK [14:44:24]MH_I2C_Read... [14:44:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:44:24]Read from MH i2c: E2 [14:44:24]MH_I2C_Read... [14:44:24]Read from MH i2c: E2 03 00 [14:44:24]MH_I2C_Read... [14:44:24]Read from MH i2c: E2 03 00 AC 8D 00 90 00 AD [14:44:24]RAPDU: 90 00 [14:44:24]wFMCommunicate OK [14:44:24]wFMCommunicate request_size=255 [14:44:24]MH_SAM_APDU [14:44:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 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 1C 01 00 00 F4 03 04 00 CC 08 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 76 FA 03 00 35 04 06 00 87 [14:44:24]Write to MH i2c: E2 02 01 AD 8D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 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 1C 01 00 00 F4 03 04 00 CC 08 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 76 FA 03 00 35 04 06 00 87 00 00 12 [14:44:24]Write i2c OK [14:44:24]MH_I2C_Read... [14:44:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:24]Read from MH i2c: E2 [14:44:24]MH_I2C_Read... [14:44:24]Read from MH i2c: E2 03 00 [14:44:24]MH_I2C_Read... [14:44:24]Read from MH i2c: E2 03 00 AD 8D 00 90 00 AE [14:44:24]RAPDU: 90 00 [14:44:24]wFMCommunicate OK [14:44:24]wFMCommunicate request_size=10 [14:44:24]MH_SAM_APDU [14:44:24]CAPDU: 80 0D 02 02 05 26 82 5F ED 3E [14:44:24]Write to MH i2c: E2 0D 00 AE 8D 80 0D 02 02 05 00 26 82 5F ED 3E 00 00 F1 [14:44:24]Write i2c OK [14:44:24]MH_I2C_Read... [14:44:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:25]Read from MH i2c: E2 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: E2 03 00 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: E2 03 00 AE 8D 00 90 00 AF [14:44:25]RAPDU: 90 00 [14:44:25]wFMCommunicate OK [14:44:25]wFMCommunicate request_size=4 [14:44:25]MH_SAM_APDU [14:44:25]CAPDU: 80 0D 03 02 [14:44:25]Write to MH i2c: E2 08 00 AF 8D 80 0D 03 02 00 00 00 00 B7 [14:44:25]Write i2c OK [14:44:25]MH_I2C_Read... [14:44:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:44:25]Read from MH i2c: E2 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: E2 0B 00 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: E2 0B 00 AF 8D 00 DB 85 12 0B E0 61 A2 5C 90 00 74 [14:44:25]RAPDU: DB 85 12 0B E0 61 A2 5C 90 00 [14:44:25]wFMCommunicate OK [14:44:25]SAM_PROTO_SignData done [14:44:25]FM_MakeSignedData done [14:44:25]CreateOFDProtocolMessage [14:44:25]wFMCommunicate request_size=4 [14:44:25]MH_SAM_APDU [14:44:25]CAPDU: 80 11 00 00 [14:44:25]Write to MH i2c: E2 08 00 B0 8D 80 11 00 00 00 00 00 00 B7 [14:44:25]Write i2c OK [14:44:25]MH_I2C_Read... [14:44:25]OFD Sender: No OFD packet to send [14:44:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:25]Read from MH i2c: E2 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: E2 17 00 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: E2 17 00 B0 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 04 [14:44:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:44:25]wFMCommunicate OK [14:44:25]CreateOFDProtocolMessage done [14:44:25]OFDSenderStorePacket 260726 [14:44:25]StoreOFDPacket docnum=260726 [14:44:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 18 D0 07 01 81 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 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 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 1C 01 00 00 F4 03 04 00 CC 08 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 76 FA 03 00 35 04 06 00 87 26 82 5F ED 3E DB 85 12 0B E0 61 A2 5C [14:44:25]CheckFolder [14:44:25]dirname=/storage/ofd_packets [14:44:25]CheckFolder done [14:44:25]ProducePacketName [14:44:25]name=ofd_packets/00260726 [14:44:25]NVStorageSaveData ofd_packets/00260726 [14:44:25]File name is /storage/ofd_packets/00260726 [14:44:25]Write 301 bytes [14:44:25]NVStorageSaveData done [14:44:25]OFDSenderStorePacket done [14:44:25]KKMCreateOFDPacket done [14:44:25]NVStorageSaveData kkm_last_timestamp [14:44:25]File name is /storage/kkm_last_timestamp [14:44:25]Write 4 bytes [14:44:25]NVStorageSaveData done [14:44:25]ExternCall_PrintAddStr [14:44:25]wPrintStart [14:44:25]Write to MH i2c: 01 00 00 B1 8D 3E [14:44:25]Write i2c OK [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: 01 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: 01 07 00 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: 01 07 00 B1 8D 00 00 00 00 00 FF 0F 53 [14:44:25]RasterBufferAndPrint [14:44:25]line Счет N : (1)1036275 [14:44:25]line ИНН: 02508201610067 [14:44:25]line Контрольно-Кассовый Чек [14:44:25]line ПРОДАЖА [14:44:25]line ТРК (МРК, ГНК) : 12 [14:44:25]line Товар: 2710124130 [14:44:25]line Аи-92-К-5 [14:44:25]line 3.690 * 67.80 [14:44:25]line = 250.18 [14:44:25]line НДС 12% НСП 1% [14:44:25]line > о реализуемом товаре [14:44:25]line ОКРУГЛЕНИЕ: -0.18 [14:44:25]line ИТОГО: 250.00 [14:44:25]line Внесено: 250.00 [14:44:25]line СДАЧА: 0.00 [14:44:25]line НСП 1% : 2.21 [14:44:25]line НДС 12% : 26.57 [14:44:25]line Наличными: 250.00 [14:44:25]line Безнал.: 0.00 [14:44:25]line Место: АЗС № 94 "Партнер Нефть" [14:44:25]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [14:44:25]line СНО: Общий режим [14:44:25]line Чек 284 18.08.2024 14:44 [14:44:25]line Смена: 449 ФФД: 1.0 [14:44:25]line ЗНМ: 0300000099 [14:44:25]line РНМ: 0000000000091865 [14:44:25]line Версия ККМ: 001 [14:44:25]line ФМ: 0000000000871820 [14:44:25]line ФД: 260726 [14:44:25]line ФПД: 148599465831742 [14:44:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T144428&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260726&fm=148599465831742&tin=02508201610067®Number=0000000000091865&sum=25000 [14:44:25]written 0, free lines is 4095 [14:44:25]OFD Sender: Processing packet 260726 [packets to send 192, broken 191] [14:44:25]ProducePacketName [14:44:25]name=ofd_packets/00260726 [14:44:25]OFD Sender: To server: pG, [14:44:25]CommunicateWithHost lk.salyk.kg:30040 [14:44:25]ConnectInit lk.salyk.kg [14:44:25]Connected sock=10 [14:44: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 30 0F 01 00 00 18 D0 07 01 81 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 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 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 1C 01 00 00 F4 03 04 00 CC 08 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 76 FA 03 00 35 04 06 00 87 26 82 5F ED 3E DB 85 12 0B E0 61 A2 5C [14:44: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 30 4F 00 00 00 87 49 47 00 36 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 30 10 04 04 00 76 FA 03 00 F4 03 04 00 21 B2 C1 66 B6 04 01 00 00 BA 00 82 1C 3C 45 2A CE [14:44:25]CommunicateWithHost err = 0 [14:44:25]CheckOFDResponse [14:44:25]1017 (14) - 77093643461234 [14:44:25]1041 (16) - 0000000000871820 [14:44:25]1040 (4) - 260726 [14:44:25]1012 (4) - 18.08.2024 08:34 [14:44:25]1206 (1) - 0 [14:44:25]OFD Sender: Remove packet 260726 [14:44:25]ProducePacketName [14:44:25]name=ofd_packets/00260726 [14:44:25]NVStorageDeleteData [14:44:25]Write to MH i2c: 01 00 00 DC 8D 69 [14:44:25]Write i2c OK [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: 01 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: 01 07 00 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: 01 07 00 DC 8D 00 00 00 00 00 70 0C EC [14:44:25]RasterBufferAndPrint [14:44:25]line [14:44:25]line [14:44:25]line [14:44:25]line [14:44:25]line [14:44:25]written 0, free lines is 3186 [14:44:25]MH_Cut [14:44:25]Write to MH i2c: D1 01 00 E3 8D 01 42 [14:44:25]Write i2c OK [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: D1 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: D1 01 00 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: D1 01 00 E3 8D 00 41 [14:44:25]Write to MH i2c: 01 00 00 E4 8D 71 [14:44:25]Write i2c OK [14:44:25]MH_I2C_Read... [14:44:25]OFD Sender: No OFD packet to send [14:44:26]*** Cut start [14:44:26]*** Purtial cut [14:44:26]*** Stage 1: CUTSNS_PIN = 1 [14:44:28]Read from MH i2c: 01 [14:44:28]MH_I2C_Read... [14:44:28]*** Stop cut motor [14:44:28]*** Cut end [14:44:28]Read from MH i2c: 01 07 00 [14:44:28]MH_I2C_Read... [14:44:28]Read from MH i2c: 01 07 00 E4 8D 00 00 00 00 00 FF 0F 86 [14:44:28]process_action close_receipt done [14:44:28]requested_data is exist [14:44:28]produce_requested_data [14:44:28]requested_item fm.sn is exist - process it [14:44:28]wFMCommunicate request_size=4 [14:44:28]MH_SAM_APDU [14:44:28]CAPDU: 80 11 00 00 [14:44:28]Write to MH i2c: E2 08 00 E5 8D 80 11 00 00 00 00 00 00 EC [14:44:28]Write i2c OK [14:44:28]MH_I2C_Read... [14:44:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:28]Read from MH i2c: E2 [14:44:28]MH_I2C_Read... [14:44:28]Read from MH i2c: E2 17 00 [14:44:28]MH_I2C_Read... [14:44:28]Read from MH i2c: E2 17 00 E5 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 39 [14:44:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:44:28]wFMCommunicate OK [14:44:28]requested_item fd.num is exist - process it [14:44:28]SAM_PROTO_GetFieldsCounters [14:44:28]wFMCommunicate request_size=4 [14:44:28]MH_SAM_APDU [14:44:28]CAPDU: 80 13 00 00 [14:44:28]Write to MH i2c: E2 08 00 E6 8D 80 13 00 00 00 00 00 00 EF [14:44:28]Write i2c OK [14:44:28]MH_I2C_Read... [14:44:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:44:28]Read from MH i2c: E2 [14:44:28]MH_I2C_Read... [14:44:28]Read from MH i2c: E2 62 00 [14:44:28]MH_I2C_Read... [14:44:28]Read from MH i2c: E2 62 00 E6 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 76 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 9A [14:44: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 76 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:44:28]wFMCommunicate OK [14:44:28]SAM_PROTO_GetFieldsCounters done [14:44:28]requested_item shift.num is exist - process it [14:44:28]requested_item shift.opened is exist - process it [14:44:28]req_shift_opened [14:44:28]FM_GetShiftState [14:44:28]SAM_PROTO_GetShiftState [14:44:28]wFMCommunicate request_size=4 [14:44:28]MH_SAM_APDU [14:44:28]CAPDU: 80 13 01 00 [14:44:28]Write to MH i2c: E2 08 00 E7 8D 80 13 01 00 00 00 00 00 F1 [14:44:28]Write i2c OK [14:44:28]MH_I2C_Read... [14:44:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:29]Read from MH i2c: E2 [14:44:29]MH_I2C_Read... [14:44:29]Read from MH i2c: E2 0E 00 [14:44:29]MH_I2C_Read... [14:44:29]Read from MH i2c: E2 0E 00 E7 8D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 2E [14:44:29]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:44:29]wFMCommunicate OK [14:44:29]SAM_PROTO_GetShiftState done [14:44:29]FM_GetShiftState done [14:44:29]req_shift_opened done [14:44:29]requested_item shift.open_date is exist - process it [14:44:29]req_shift_open_date [14:44:29]req_shift_open_date done [14:44:29]produce_requested_data done [14:44:29]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260726,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [14:44:29]process_action_free close_receipt [14:44:29]json_value_free [14:44:29]json_value_free done [14:44:29]process_json_proto returns [14:44:29]Send response to host [14:44:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260726,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [14:44:29]free response buf [14:44:29]execute_script done [14:44:29]execute_script returns [14:44:29]free content buf [14:44:29]Sock 9.Close socket [14:44:29]Sock 9.Thread stoped [14:44:31]OFD Sender: No OFD packet to send [14:44:36]OFD Sender: No OFD packet to send [14:44:41]OFD Sender: No OFD packet to send [14:44:46]OFD Sender: No OFD packet to send [14:44:51]OFD Sender: No OFD packet to send [14:44:56]OFD Sender: No OFD packet to send [14:45:01]OFD Sender: No OFD packet to send [14:45:06]OFD Sender: No OFD packet to send [14:45:11]OFD Sender: No OFD packet to send [14:45:16]OFD Sender: No OFD packet to send [14:45:21]OFD Sender: No OFD packet to send [14:45:26]OFD Sender: No OFD packet to send [14:45:31]OFD Sender: No OFD packet to send [14:45:36]OFD Sender: No OFD packet to send [14:45:41]OFD Sender: No OFD packet to send [14:45:46]OFD Sender: No OFD packet to send [14:45:51]OFD Sender: No OFD packet to send [14:45:56]OFD Sender: No OFD packet to send [14:46:01]OFD Sender: No OFD packet to send [14:46:02]accept exits with 7 [14:46:02]New connection [14:46:02]New thread 3066617188 created [14:46:02]Thread 3066473828 joined [14:46:02]Waiting for new connection... [14:46:02] Sock 7.Parse request [14:46:02]Sock 7.Check first char [14:46:02]Sock 7.First char is OK [14:46:02]request: POST /json_proto HTTP/1.0 [14:46:02]Method: POST [14:46:02]URL: /json_proto [14:46:02]Method is POST - this is cgi request [14:46:02]url: /json_proto [14:46:02]query_string will be loaded in cgi processing [14:46:02]execute_cgi json_proto POST (null) [14:46:02]execute_cgi path=json_proto method=POST [14:46:02]POST find Content-Length [14:46:02]Host: 172.17.55.133:8080 [14:46:02]Content-Length: 804 [14:46:02]Content-Type: application/json [14:46:02] [14:46:02]POST finish read [14:46:02]Found Content-Length = 804 [14:46:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:02]execute_script... [14:46: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)1036276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:02]POST & json_proto [14:46:02]process_json_proto [14:46:02]json parsed OK: [14:46:02]protocol is kg_v1.0 [14:46:02]action value=close_receipt [14:46:02]process_action close_receipt [14:46:02]cmd_close_receipt [14:46:02]MH_GetDate [14:46:02]Write to MH i2c: F0 00 00 E8 8D 64 [14:46:02]Write i2c OK [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: F0 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: F0 09 00 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: F0 09 00 E8 8D 00 2F 09 C2 66 34 48 D8 65 86 [14:46:02]GetLastDocTimeStamp 1723992268 [14:46:02]current date 1723992367 [14:46:02]FM_GetShiftState [14:46:02]SAM_PROTO_GetShiftState [14:46:02]wFMCommunicate request_size=4 [14:46:02]MH_SAM_APDU [14:46:02]CAPDU: 80 13 01 00 [14:46:02]Write to MH i2c: E2 08 00 E9 8D 80 13 01 00 00 00 00 00 F3 [14:46:02]Write i2c OK [14:46:02]MH_I2C_Read... [14:46:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:02]Read from MH i2c: E2 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 0E 00 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 0E 00 E9 8D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 30 [14:46:02]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:46:02]wFMCommunicate OK [14:46:02]SAM_PROTO_GetShiftState done [14:46:02]FM_GetShiftState done [14:46:02]opened in 1723940556 [14:46:02]opened+sec_in_day 1724026956 [14:46:02]quantity*price = 200010 [14:46:02]sum+1 = 200011 [14:46:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.10 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.10 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 285 18.08.2024 14:46 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260727 ФПД: 143820045615006 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T144607&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260727&fm=143820045615006&tin=02508201610067®Number=0000000000091865&sum=200010 [14:46:03]StoreToDocumentArchive [14:46:03]shift 449 fd 260727 [14:46:03]save to /storage/0449/doc_00260727 [14:46:03]save last doc name /storage/0449/doc_00260727 to /storage/kkm_last_doc_name [14:46:03]save OK [14:46:03]Clear old archive folders... [14:46:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:46:03]tlvbuf is 00540C80 [14:46:03]SAM_PROTO_ClearQueue [14:46:03]wFMCommunicate request_size=4 [14:46:03]MH_SAM_APDU [14:46:03]CAPDU: 80 09 00 00 [14:46:03]Write to MH i2c: E2 08 00 F6 8D 80 09 00 00 00 00 00 00 F5 [14:46:03]Write i2c OK [14:46:03]MH_I2C_Read... [14:46:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:03]Read from MH i2c: E2 [14:46:03]MH_I2C_Read... [14:46:03]Read from MH i2c: E2 03 00 [14:46:03]MH_I2C_Read... [14:46:03]Read from MH i2c: E2 03 00 F6 8D 00 90 00 F7 [14:46:03]RAPDU: 90 00 [14:46:03]wFMCommunicate OK [14:46:03]SAM_PROTO_ClearQueue done [14:46:03]KKMCreateOFDPacket [14:46:03]OFDProtocolAddRootSTLVToBuf [14:46:03]FM_MakeSignedData [14:46:03]FM_MakeSignedData [14:46:03]SAM_PROTO_SignData [14:46:03]wFMCommunicate request_size=4 [14:46:03]MH_SAM_APDU [14:46:03]CAPDU: 80 0D 01 02 [14:46:03]Write to MH i2c: E2 08 00 F7 8D 80 0D 01 02 00 00 00 00 FD [14:46:03]Write i2c OK [14:46:03]MH_I2C_Read... [14:46:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:03]Read from MH i2c: E2 [14:46:03]MH_I2C_Read... [14:46:03]Read from MH i2c: E2 03 00 [14:46:03]MH_I2C_Read... [14:46:03]Read from MH i2c: E2 03 00 F7 8D 00 90 00 F8 [14:46:03]RAPDU: 90 00 [14:46:03]wFMCommunicate OK [14:46:03]wFMCommunicate request_size=255 [14:46:03]MH_SAM_APDU [14:46:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 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 4A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 2F 09 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 77 FA 03 00 35 04 06 00 82 [14:46:03]Write to MH i2c: E2 02 01 F8 8D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 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 4A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 2F 09 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 77 FA 03 00 35 04 06 00 82 00 00 C8 [14:46:03]Write i2c OK [14:46:03]MH_I2C_Read... [14:46:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:04]Read from MH i2c: E2 [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: E2 03 00 [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: E2 03 00 F8 8D 00 90 00 F9 [14:46:04]RAPDU: 90 00 [14:46:04]wFMCommunicate OK [14:46:04]wFMCommunicate request_size=10 [14:46:04]MH_SAM_APDU [14:46:04]CAPDU: 80 0D 02 02 05 CD B6 BA FF 9E [14:46:04]Write to MH i2c: E2 0D 00 F9 8D 80 0D 02 02 05 00 CD B6 BA FF 9E 00 00 E4 [14:46:04]Write i2c OK [14:46:04]MH_I2C_Read... [14:46:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:04]Read from MH i2c: E2 [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: E2 03 00 [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: E2 03 00 F9 8D 00 90 00 FA [14:46:04]RAPDU: 90 00 [14:46:04]wFMCommunicate OK [14:46:04]wFMCommunicate request_size=4 [14:46:04]MH_SAM_APDU [14:46:04]CAPDU: 80 0D 03 02 [14:46:04]Write to MH i2c: E2 08 00 FA 8D 80 0D 03 02 00 00 00 00 02 [14:46:04]Write i2c OK [14:46:04]MH_I2C_Read... [14:46:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:04]Read from MH i2c: E2 [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: E2 0B 00 [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: E2 0B 00 FA 8D 00 88 FF 5C DA 17 92 09 61 90 00 D3 [14:46:04]RAPDU: 88 FF 5C DA 17 92 09 61 90 00 [14:46:04]wFMCommunicate OK [14:46:04]SAM_PROTO_SignData done [14:46:04]FM_MakeSignedData done [14:46:04]CreateOFDProtocolMessage [14:46:04]wFMCommunicate request_size=4 [14:46:04]MH_SAM_APDU [14:46:04]CAPDU: 80 11 00 00 [14:46:04]Write to MH i2c: E2 08 00 FB 8D 80 11 00 00 00 00 00 00 02 [14:46:04]Write i2c OK [14:46:04]MH_I2C_Read... [14:46:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:04]Read from MH i2c: E2 [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: E2 17 00 [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: E2 17 00 FB 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 4F [14:46:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:46:04]wFMCommunicate OK [14:46:04]CreateOFDProtocolMessage done [14:46:04]OFDSenderStorePacket 260727 [14:46:04]StoreOFDPacket docnum=260727 [14:46:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 78 43 07 01 BE 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 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 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 4A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 2F 09 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 77 FA 03 00 35 04 06 00 82 CD B6 BA FF 9E 88 FF 5C DA 17 92 09 61 [14:46:04]CheckFolder [14:46:04]dirname=/storage/ofd_packets [14:46:04]CheckFolder done [14:46:04]ProducePacketName [14:46:04]name=ofd_packets/00260727 [14:46:04]NVStorageSaveData ofd_packets/00260727 [14:46:04]File name is /storage/ofd_packets/00260727 [14:46:04]Write 301 bytes [14:46:04]NVStorageSaveData done [14:46:04]OFDSenderStorePacket done [14:46:04]KKMCreateOFDPacket done [14:46:04]NVStorageSaveData kkm_last_timestamp [14:46:04]File name is /storage/kkm_last_timestamp [14:46:04]Write 4 bytes [14:46:04]NVStorageSaveData done [14:46:04]ExternCall_PrintAddStr [14:46:04]wPrintStart [14:46:04]Write to MH i2c: 01 00 00 FC 8D 89 [14:46:04]Write i2c OK [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: 01 [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: 01 07 00 [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: 01 07 00 FC 8D 00 00 00 00 00 FF 0F 9E [14:46:04]RasterBufferAndPrint [14:46:04]line Счет N : (1)1036276 [14:46:04]line ИНН: 02508201610067 [14:46:04]line Контрольно-Кассовый Чек [14:46:04]line ПРОДАЖА [14:46:04]line ТРК (МРК, ГНК) : 32 [14:46:04]line Товар: 2710124130 [14:46:04]line Аи-92-К-5 [14:46:04]line 29.500 * 67.80 [14:46:04]line = 2000.10 [14:46:04]line НДС 12% НСП 1% [14:46:04]line > о реализуемом товаре [14:46:04]line ИТОГО: 2000.10 [14:46:04]line НСП 1% : 17.70 [14:46:04]line НДС 12% : 212.40 [14:46:04]line Наличными: 0.00 [14:46:04]line Безнал.: 2000.10 [14:46:04]line Место: АЗС № 94 "Партнер Нефть" [14:46:04]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [14:46:04]line СНО: Общий режим [14:46:04]line Чек 285 18.08.2024 14:46 [14:46:04]line Смена: 449 ФФД: 1.0 [14:46:04]line ЗНМ: 0300000099 [14:46:04]line РНМ: 0000000000091865 [14:46:04]line Версия ККМ: 001 [14:46:04]line Платежная система: O! деньги [14:46:04]line ФМ: 0000000000871820 [14:46:04]line ФД: 260727 [14:46:04]line ФПД: 143820045615006 [14:46:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T144607&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260727&fm=143820045615006&tin=02508201610067®Number=0000000000091865&sum=200010 [14:46:04]written 0, free lines is 4095 [14:46:04]OFD Sender: Processing packet 260727 [packets to send 192, broken 191] [14:46:04]ProducePacketName [14:46:04]name=ofd_packets/00260727 [14:46:04]OFD Sender: To server: pG, [14:46:04]CommunicateWithHost lk.salyk.kg:30040 [14:46:04]ConnectInit lk.salyk.kg [14:46:04]Connected sock=10 [14:46: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 30 0F 01 00 00 78 43 07 01 BE 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 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 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 4A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 2F 09 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 77 FA 03 00 35 04 06 00 82 CD B6 BA FF 9E 88 FF 5C DA 17 92 09 61 [14:46:04]Write to MH i2c: 01 00 00 26 8E B4 [14:46:04]Write i2c OK [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: 01 [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: 01 07 00 [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: 01 07 00 26 8E 00 00 00 00 00 80 0C 47 [14:46:04]RasterBufferAndPrint [14:46:04]line [14:46:04]line [14:46:04]line [14:46:04]line [14:46:04]line [14:46:04]written 0, free lines is 3205 [14:46:04]MH_Cut [14:46:04]Write to MH i2c: D1 01 00 2D 8E 01 8D [14:46:04]Write i2c OK [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: D1 [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: D1 01 00 [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: D1 01 00 2D 8E 00 8C [14:46:04]Write to MH i2c: 01 00 00 2E 8E BC [14:46:04]Write i2c OK [14:46:04]MH_I2C_Read... [14:46: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 30 4F 00 00 00 3D 21 47 00 14 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 77 FA 03 00 F4 03 04 00 84 B2 C1 66 B6 04 01 00 00 61 8A 03 D5 94 77 BC FF [14:46:04]CommunicateWithHost err = 0 [14:46:04]CheckOFDResponse [14:46:04]1017 (14) - 77093643461234 [14:46:04]1041 (16) - 0000000000871820 [14:46:04]1040 (4) - 260727 [14:46:04]1012 (4) - 18.08.2024 08:36 [14:46:04]1206 (1) - 0 [14:46:04]OFD Sender: Remove packet 260727 [14:46:04]ProducePacketName [14:46:04]name=ofd_packets/00260727 [14:46:04]NVStorageDeleteData [14:46:05]OFD Sender: No OFD packet to send [14:46:05]*** Cut start [14:46:05]*** Purtial cut [14:46:05]*** Stage 1: CUTSNS_PIN = 1 [14:46:07]Read from MH i2c: 01 [14:46:07]MH_I2C_Read... [14:46:07]*** Stop cut motor [14:46:07]*** Cut end [14:46:07]Read from MH i2c: 01 07 00 [14:46:07]MH_I2C_Read... [14:46:07]Read from MH i2c: 01 07 00 2E 8E 00 00 00 00 00 FF 0F D1 [14:46:07]process_action close_receipt done [14:46:07]requested_data is exist [14:46:07]produce_requested_data [14:46:07]requested_item fm.sn is exist - process it [14:46:07]wFMCommunicate request_size=4 [14:46:07]MH_SAM_APDU [14:46:07]CAPDU: 80 11 00 00 [14:46:07]Write to MH i2c: E2 08 00 2F 8E 80 11 00 00 00 00 00 00 37 [14:46:07]Write i2c OK [14:46:07]MH_I2C_Read... [14:46:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:07]Read from MH i2c: E2 [14:46:07]MH_I2C_Read... [14:46:07]Read from MH i2c: E2 17 00 [14:46:07]MH_I2C_Read... [14:46:07]Read from MH i2c: E2 17 00 2F 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 84 [14:46:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:46:07]wFMCommunicate OK [14:46:07]requested_item fd.num is exist - process it [14:46:07]SAM_PROTO_GetFieldsCounters [14:46:07]wFMCommunicate request_size=4 [14:46:07]MH_SAM_APDU [14:46:07]CAPDU: 80 13 00 00 [14:46:07]Write to MH i2c: E2 08 00 30 8E 80 13 00 00 00 00 00 00 3A [14:46:07]Write i2c OK [14:46:07]MH_I2C_Read... [14:46:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:08]Read from MH i2c: E2 [14:46:08]MH_I2C_Read... [14:46:08]Read from MH i2c: E2 62 00 [14:46:08]MH_I2C_Read... [14:46:08]Read from MH i2c: E2 62 00 30 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 77 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 E9 [14:46: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 77 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:46:08]wFMCommunicate OK [14:46:08]SAM_PROTO_GetFieldsCounters done [14:46:08]requested_item shift.num is exist - process it [14:46:08]requested_item shift.opened is exist - process it [14:46:08]req_shift_opened [14:46:08]FM_GetShiftState [14:46:08]SAM_PROTO_GetShiftState [14:46:08]wFMCommunicate request_size=4 [14:46:08]MH_SAM_APDU [14:46:08]CAPDU: 80 13 01 00 [14:46:08]Write to MH i2c: E2 08 00 31 8E 80 13 01 00 00 00 00 00 3C [14:46:08]Write i2c OK [14:46:08]MH_I2C_Read... [14:46:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:08]Read from MH i2c: E2 [14:46:08]MH_I2C_Read... [14:46:08]Read from MH i2c: E2 0E 00 [14:46:08]MH_I2C_Read... [14:46:08]Read from MH i2c: E2 0E 00 31 8E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 79 [14:46:08]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:46:08]wFMCommunicate OK [14:46:08]SAM_PROTO_GetShiftState done [14:46:08]FM_GetShiftState done [14:46:08]req_shift_opened done [14:46:08]requested_item shift.open_date is exist - process it [14:46:08]req_shift_open_date [14:46:08]req_shift_open_date done [14:46:08]produce_requested_data done [14:46:08]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260727,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [14:46:08]process_action_free close_receipt [14:46:08]json_value_free [14:46:08]json_value_free done [14:46:08]process_json_proto returns [14:46:08]Send response to host [14:46:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260727,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [14:46:08]free response buf [14:46:08]execute_script done [14:46:08]execute_script returns [14:46:08]free content buf [14:46:08]Sock 7.Close socket [14:46:08]Sock 7.Thread stoped [14:46:10]OFD Sender: No OFD packet to send [14:46:15]OFD Sender: No OFD packet to send [14:46:20]OFD Sender: No OFD packet to send [14:46:25]OFD Sender: No OFD packet to send [14:46:30]OFD Sender: No OFD packet to send [14:46:35]OFD Sender: No OFD packet to send [14:46:40]OFD Sender: No OFD packet to send [14:46:45]OFD Sender: No OFD packet to send [14:46:50]OFD Sender: No OFD packet to send [14:46:55]accept exits with 9 [14:46:55]New connection [14:46:55]New thread 3066473828 created [14:46:55]Thread 3066617188 joined [14:46:55]Waiting for new connection... [14:46:55] Sock 9.Parse request [14:46:55]Sock 9.Check first char [14:46:55]Sock 9.First char is OK [14:46:55]request: POST /json_proto HTTP/1.0 [14:46:55]Method: POST [14:46:55]URL: /json_proto [14:46:55]Method is POST - this is cgi request [14:46:55]url: /json_proto [14:46:55]query_string will be loaded in cgi processing [14:46:55]execute_cgi json_proto POST (null) [14:46:55]execute_cgi path=json_proto method=POST [14:46:55]POST find Content-Length [14:46:55]Host: 172.17.55.133:8080 [14:46:55]Content-Length: 683 [14:46:55]Content-Type: application/json [14:46:55] [14:46:55]POST finish read [14:46:55]Found Content-Length = 683 [14:46:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:46:55]execute_script... [14:46: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)1036278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:46:55]POST & json_proto [14:46:55]process_json_proto [14:46:55]json parsed OK: [14:46:55]protocol is kg_v1.0 [14:46:55]action value=close_receipt [14:46:55]process_action close_receipt [14:46:55]cmd_close_receipt [14:46:55]MH_GetDate [14:46:55]Write to MH i2c: F0 00 00 32 8E AF [14:46:55]Write i2c OK [14:46:55]MH_I2C_Read... [14:46:55]Read from MH i2c: F0 [14:46:55]MH_I2C_Read... [14:46:55]Read from MH i2c: F0 09 00 [14:46:55]MH_I2C_Read... [14:46:55]Read from MH i2c: F0 09 00 32 8E 00 64 09 C2 66 34 48 D8 65 06 [14:46:55]GetLastDocTimeStamp 1723992367 [14:46:55]current date 1723992420 [14:46:55]FM_GetShiftState [14:46:55]SAM_PROTO_GetShiftState [14:46:55]wFMCommunicate request_size=4 [14:46:55]MH_SAM_APDU [14:46:55]CAPDU: 80 13 01 00 [14:46:55]Write to MH i2c: E2 08 00 33 8E 80 13 01 00 00 00 00 00 3E [14:46:55]Write i2c OK [14:46:55]MH_I2C_Read... [14:46:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:55]Read from MH i2c: E2 [14:46:55]MH_I2C_Read... [14:46:55]Read from MH i2c: E2 0E 00 [14:46:55]MH_I2C_Read... [14:46:55]Read from MH i2c: E2 0E 00 33 8E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 7B [14:46:55]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:46:55]wFMCommunicate OK [14:46:55]SAM_PROTO_GetShiftState done [14:46:55]FM_GetShiftState done [14:46:55]opened in 1723940556 [14:46:55]opened+sec_in_day 1724026956 [14:46:55]quantity*price = 100005 [14:46:55]sum+1 = 100006 [14:46:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 286 18.08.2024 14:47 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260728 ФПД: 170431600175138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T144700&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260728&fm=170431600175138&tin=02508201610067®Number=0000000000091865&sum=100000 [14:46:56]StoreToDocumentArchive [14:46:56]shift 449 fd 260728 [14:46:56]save to /storage/0449/doc_00260728 [14:46:56]save last doc name /storage/0449/doc_00260728 to /storage/kkm_last_doc_name [14:46:56]save OK [14:46:56]Clear old archive folders... [14:46:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:46:56]tlvbuf is 003A07F0 [14:46:56]SAM_PROTO_ClearQueue [14:46:56]wFMCommunicate request_size=4 [14:46:56]MH_SAM_APDU [14:46:56]CAPDU: 80 09 00 00 [14:46:56]Write to MH i2c: E2 08 00 40 8E 80 09 00 00 00 00 00 00 40 [14:46:56]Write i2c OK [14:46:56]MH_I2C_Read... [14:46:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:56]Read from MH i2c: E2 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: E2 03 00 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: E2 03 00 40 8E 00 90 00 42 [14:46:56]RAPDU: 90 00 [14:46:56]wFMCommunicate OK [14:46:56]SAM_PROTO_ClearQueue done [14:46:56]KKMCreateOFDPacket [14:46:56]OFDProtocolAddRootSTLVToBuf [14:46:56]FM_MakeSignedData [14:46:56]FM_MakeSignedData [14:46:56]SAM_PROTO_SignData [14:46:56]wFMCommunicate request_size=4 [14:46:56]MH_SAM_APDU [14:46:56]CAPDU: 80 0D 01 02 [14:46:56]Write to MH i2c: E2 08 00 41 8E 80 0D 01 02 00 00 00 00 48 [14:46:56]Write i2c OK [14:46:56]MH_I2C_Read... [14:46:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:56]Read from MH i2c: E2 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: E2 03 00 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: E2 03 00 41 8E 00 90 00 43 [14:46:56]RAPDU: 90 00 [14:46:56]wFMCommunicate OK [14:46:56]wFMCommunicate request_size=255 [14:46:56]MH_SAM_APDU [14:46:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 64 09 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 78 FA 03 00 35 04 06 00 9B [14:46:56]Write to MH i2c: E2 02 01 42 8E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 64 09 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 78 FA 03 00 35 04 06 00 9B 00 00 DA [14:46:56]Write i2c OK [14:46:56]MH_I2C_Read... [14:46:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:56]Read from MH i2c: E2 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: E2 03 00 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: E2 03 00 42 8E 00 90 00 44 [14:46:56]RAPDU: 90 00 [14:46:56]wFMCommunicate OK [14:46:56]wFMCommunicate request_size=10 [14:46:56]MH_SAM_APDU [14:46:56]CAPDU: 80 0D 02 02 05 01 B2 FC A8 22 [14:46:56]Write to MH i2c: E2 0D 00 43 8E 80 0D 02 02 05 00 01 B2 FC A8 22 00 00 CE [14:46:56]Write i2c OK [14:46:56]MH_I2C_Read... [14:46:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:56]Read from MH i2c: E2 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: E2 03 00 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: E2 03 00 43 8E 00 90 00 45 [14:46:56]RAPDU: 90 00 [14:46:56]wFMCommunicate OK [14:46:56]wFMCommunicate request_size=4 [14:46:56]MH_SAM_APDU [14:46:56]CAPDU: 80 0D 03 02 [14:46:56]Write to MH i2c: E2 08 00 44 8E 80 0D 03 02 00 00 00 00 4D [14:46:56]Write i2c OK [14:46:56]MH_I2C_Read... [14:46:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:56]Read from MH i2c: E2 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: E2 0B 00 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: E2 0B 00 44 8E 00 24 0E 73 D5 C4 EC 87 04 90 00 03 [14:46:56]RAPDU: 24 0E 73 D5 C4 EC 87 04 90 00 [14:46:56]wFMCommunicate OK [14:46:56]SAM_PROTO_SignData done [14:46:56]FM_MakeSignedData done [14:46:56]CreateOFDProtocolMessage [14:46:56]wFMCommunicate request_size=4 [14:46:56]MH_SAM_APDU [14:46:56]CAPDU: 80 11 00 00 [14:46:56]Write to MH i2c: E2 08 00 45 8E 80 11 00 00 00 00 00 00 4D [14:46:56]Write i2c OK [14:46:56]MH_I2C_Read... [14:46:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:56]Read from MH i2c: E2 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: E2 17 00 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: E2 17 00 45 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 9A [14:46:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:46:56]wFMCommunicate OK [14:46:56]CreateOFDProtocolMessage done [14:46:56]OFDSenderStorePacket 260728 [14:46:56]StoreOFDPacket docnum=260728 [14:46:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 3E 12 07 01 A1 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 64 09 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 78 FA 03 00 35 04 06 00 9B 01 B2 FC A8 22 24 0E 73 D5 C4 EC 87 04 [14:46:56]CheckFolder [14:46:56]dirname=/storage/ofd_packets [14:46:56]CheckFolder done [14:46:56]ProducePacketName [14:46:56]name=ofd_packets/00260728 [14:46:56]NVStorageSaveData ofd_packets/00260728 [14:46:56]File name is /storage/ofd_packets/00260728 [14:46:56]Write 301 bytes [14:46:56]NVStorageSaveData done [14:46:56]OFDSenderStorePacket done [14:46:56]KKMCreateOFDPacket done [14:46:56]NVStorageSaveData kkm_last_timestamp [14:46:56]File name is /storage/kkm_last_timestamp [14:46:56]Write 4 bytes [14:46:56]NVStorageSaveData done [14:46:56]OFD Sender: Processing packet 260728 [packets to send 192, broken 191] [14:46:56]ProducePacketName [14:46:56]name=ofd_packets/00260728 [14:46:56]OFD Sender: To server: pG, [14:46:56]CommunicateWithHost lk.salyk.kg:30040 [14:46:56]ConnectInit lk.salyk.kg [14:46:56]ExternCall_PrintAddStr [14:46:56]wPrintStart [14:46:56]Write to MH i2c: 01 00 00 46 8E D4 [14:46:56]Write i2c OK [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: 01 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: 01 07 00 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: 01 07 00 46 8E 00 00 00 00 00 FF 0F E9 [14:46:56]RasterBufferAndPrint [14:46:56]line Счет N : (1)1036278 [14:46:56]line ИНН: 02508201610067 [14:46:56]line Контрольно-Кассовый Чек [14:46:56]line ПРОДАЖА [14:46:56]line ТРК (МРК, ГНК) : 12 [14:46:56]line Товар: 2710124130 [14:46:56]line Аи-92-К-5 [14:46:56]line 14.750 * 67.80 [14:46:56]line = 1000.05 [14:46:56]line НДС 12% НСП 1% [14:46:56]line > о реализуемом товаре [14:46:56]line ОКРУГЛЕНИЕ: -0.05 [14:46:56]line ИТОГО: 1000.00 [14:46:56]line Внесено: 1000.00 [14:46:56]line СДАЧА: 0.00 [14:46:56]line НСП 1% : 8.85 [14:46:56]line НДС 12% : 106.20 [14:46:56]line Наличными: 1000.00 [14:46:56]line Безнал.: 0.00 [14:46:56]line Место: АЗС № 94 "Партнер Нефть" [14:46:56]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [14:46:56]line СНО: Общий режим [14:46:56]line Чек 286 18.08.2024 14:47 [14:46:56]line Смена: 449 ФФД: 1.0 [14:46:56]line ЗНМ: 0300000099 [14:46:56]line РНМ: 0000000000091865 [14:46:56]line Версия ККМ: 001 [14:46:56]line ФМ: 0000000000871820 [14:46:56]line ФД: 260728 [14:46:56]line ФПД: 170431600175138 [14:46:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T144700&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260728&fm=170431600175138&tin=02508201610067®Number=0000000000091865&sum=100000 [14:46:57]Connected sock=11 [14:46: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 30 0F 01 00 00 3E 12 07 01 A1 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 64 09 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 78 FA 03 00 35 04 06 00 9B 01 B2 FC A8 22 24 0E 73 D5 C4 EC 87 04 [14:46:57]written 0, free lines is 4095 [14:46: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 30 4F 00 00 00 78 DF 47 00 AF 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 30 10 04 04 00 78 FA 03 00 F4 03 04 00 B9 B2 C1 66 B6 04 01 00 00 FA 7B E9 55 85 03 F3 F2 [14:46:57]CommunicateWithHost err = 0 [14:46:57]CheckOFDResponse [14:46:57]1017 (14) - 77093643461234 [14:46:57]1041 (16) - 0000000000871820 [14:46:57]1040 (4) - 260728 [14:46:57]1012 (4) - 18.08.2024 08:37 [14:46:57]1206 (1) - 0 [14:46:57]OFD Sender: Remove packet 260728 [14:46:57]ProducePacketName [14:46:57]name=ofd_packets/00260728 [14:46:57]NVStorageDeleteData [14:46:57]Write to MH i2c: 01 00 00 71 8E FF [14:46:57]Write i2c OK [14:46:57]MH_I2C_Read... [14:46:57]Read from MH i2c: 01 [14:46:57]MH_I2C_Read... [14:46:57]Read from MH i2c: 01 07 00 [14:46:57]MH_I2C_Read... [14:46:57]Read from MH i2c: 01 07 00 71 8E 00 00 00 00 00 65 0C 77 [14:46:57]RasterBufferAndPrint [14:46:57]line [14:46:57]line [14:46:57]line [14:46:57]line [14:46:57]line [14:46:57]written 0, free lines is 3178 [14:46:57]MH_Cut [14:46:57]Write to MH i2c: D1 01 00 78 8E 01 D8 [14:46:57]Write i2c OK [14:46:57]MH_I2C_Read... [14:46:57]Read from MH i2c: D1 [14:46:57]MH_I2C_Read... [14:46:57]Read from MH i2c: D1 01 00 [14:46:57]MH_I2C_Read... [14:46:57]Read from MH i2c: D1 01 00 78 8E 00 D7 [14:46:57]Write to MH i2c: 01 00 00 79 8E 07 [14:46:57]Write i2c OK [14:46:57]MH_I2C_Read... [14:46:57]OFD Sender: No OFD packet to send [14:46:58]*** Cut start [14:46:58]*** Purtial cut [14:46:58]*** Stage 1: CUTSNS_PIN = 1 [14:47:00]Read from MH i2c: 01 [14:47:00]MH_I2C_Read... [14:47:00]*** Stop cut motor [14:47:00]*** Cut end [14:47:00]Read from MH i2c: 01 07 00 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: 01 07 00 79 8E 00 00 00 00 00 FF 0F 1C [14:47:00]process_action close_receipt done [14:47:00]requested_data is exist [14:47:00]produce_requested_data [14:47:00]requested_item fm.sn is exist - process it [14:47:00]wFMCommunicate request_size=4 [14:47:00]MH_SAM_APDU [14:47:00]CAPDU: 80 11 00 00 [14:47:00]Write to MH i2c: E2 08 00 7A 8E 80 11 00 00 00 00 00 00 82 [14:47:00]Write i2c OK [14:47:00]MH_I2C_Read... [14:47:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:00]Read from MH i2c: E2 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: E2 17 00 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: E2 17 00 7A 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 CF [14:47:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:47:00]wFMCommunicate OK [14:47:00]requested_item fd.num is exist - process it [14:47:00]SAM_PROTO_GetFieldsCounters [14:47:00]wFMCommunicate request_size=4 [14:47:00]MH_SAM_APDU [14:47:00]CAPDU: 80 13 00 00 [14:47:00]Write to MH i2c: E2 08 00 7B 8E 80 13 00 00 00 00 00 00 85 [14:47:00]Write i2c OK [14:47:00]MH_I2C_Read... [14:47:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:00]Read from MH i2c: E2 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: E2 62 00 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: E2 62 00 7B 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 78 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 38 [14:47: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 78 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:47:00]wFMCommunicate OK [14:47:00]SAM_PROTO_GetFieldsCounters done [14:47:00]requested_item shift.num is exist - process it [14:47:00]requested_item shift.opened is exist - process it [14:47:00]req_shift_opened [14:47:00]FM_GetShiftState [14:47:00]SAM_PROTO_GetShiftState [14:47:00]wFMCommunicate request_size=4 [14:47:00]MH_SAM_APDU [14:47:00]CAPDU: 80 13 01 00 [14:47:00]Write to MH i2c: E2 08 00 7C 8E 80 13 01 00 00 00 00 00 87 [14:47:00]Write i2c OK [14:47:00]MH_I2C_Read... [14:47:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:00]Read from MH i2c: E2 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: E2 0E 00 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: E2 0E 00 7C 8E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C4 [14:47:00]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:47:00]wFMCommunicate OK [14:47:00]SAM_PROTO_GetShiftState done [14:47:00]FM_GetShiftState done [14:47:00]req_shift_opened done [14:47:00]requested_item shift.open_date is exist - process it [14:47:00]req_shift_open_date [14:47:00]req_shift_open_date done [14:47:00]produce_requested_data done [14:47:00]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260728,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [14:47:00]process_action_free close_receipt [14:47:00]json_value_free [14:47:00]json_value_free done [14:47:00]process_json_proto returns [14:47:00]Send response to host [14:47:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260728,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [14:47:00]free response buf [14:47:00]execute_script done [14:47:00]execute_script returns [14:47:00]free content buf [14:47:00]Sock 9.Close socket [14:47:00]Sock 9.Thread stoped [14:47:02]OFD Sender: No OFD packet to send [14:47:07]OFD Sender: No OFD packet to send [14:47:12]OFD Sender: No OFD packet to send [14:47:17]OFD Sender: No OFD packet to send [14:47:22]OFD Sender: No OFD packet to send [14:47:27]OFD Sender: No OFD packet to send [14:47:32]OFD Sender: No OFD packet to send [14:47:37]OFD Sender: No OFD packet to send [14:47:42]OFD Sender: No OFD packet to send [14:47:47]OFD Sender: No OFD packet to send [14:47:52]OFD Sender: No OFD packet to send [14:47:57]OFD Sender: No OFD packet to send [14:48:02]OFD Sender: No OFD packet to send [14:48:07]OFD Sender: No OFD packet to send [14:48:12]OFD Sender: No OFD packet to send [14:48:17]OFD Sender: No OFD packet to send [14:48:22]OFD Sender: No OFD packet to send [14:48:27]OFD Sender: No OFD packet to send [14:48:32]OFD Sender: No OFD packet to send [14:48:37]OFD Sender: No OFD packet to send [14:48:42]OFD Sender: No OFD packet to send [14:48:47]OFD Sender: No OFD packet to send [14:48:52]OFD Sender: No OFD packet to send [14:48:57]OFD Sender: No OFD packet to send [14:49:02]OFD Sender: No OFD packet to send [14:49:07]OFD Sender: No OFD packet to send [14:49:12]OFD Sender: No OFD packet to send [14:49:17]OFD Sender: No OFD packet to send [14:49:21]accept exits with 7 [14:49:21]New connection [14:49:21]New thread 3066617188 created [14:49:21]Thread 3066473828 joined [14:49:21]Waiting for new connection... [14:49:21] Sock 7.Parse request [14:49:21]Sock 7.Check first char [14:49:21]Sock 7.First char is OK [14:49:21]request: POST /json_proto HTTP/1.0 [14:49:21]Method: POST [14:49:21]URL: /json_proto [14:49:21]Method is POST - this is cgi request [14:49:21]url: /json_proto [14:49:21]query_string will be loaded in cgi processing [14:49:21]execute_cgi json_proto POST (null) [14:49:21]execute_cgi path=json_proto method=POST [14:49:21]POST find Content-Length [14:49:21]Host: 172.17.55.133:8080 [14:49:21]Content-Length: 755 [14:49:21]Content-Type: application/json [14:49:21] [14:49:21]POST finish read [14:49:21]Found Content-Length = 755 [14:49:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036279", "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" : 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\u000A30087854", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:21]execute_script... [14:49: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)1036279", "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" : 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\u000A30087854", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:21]POST & json_proto [14:49:21]process_json_proto [14:49:21]json parsed OK: [14:49:21]protocol is kg_v1.0 [14:49:21]action value=close_receipt [14:49:21]process_action close_receipt [14:49:21]cmd_close_receipt [14:49:21]MH_GetDate [14:49:21]Write to MH i2c: F0 00 00 7D 8E FA [14:49:21]Write i2c OK [14:49:21]MH_I2C_Read... [14:49:21]Read from MH i2c: F0 [14:49:21]MH_I2C_Read... [14:49:21]Read from MH i2c: F0 09 00 [14:49:21]MH_I2C_Read... [14:49:21]Read from MH i2c: F0 09 00 7D 8E 00 F6 09 C2 66 34 48 D8 65 E3 [14:49:21]GetLastDocTimeStamp 1723992420 [14:49:21]current date 1723992566 [14:49:21]FM_GetShiftState [14:49:21]SAM_PROTO_GetShiftState [14:49:21]wFMCommunicate request_size=4 [14:49:21]MH_SAM_APDU [14:49:21]CAPDU: 80 13 01 00 [14:49:21]Write to MH i2c: E2 08 00 7E 8E 80 13 01 00 00 00 00 00 89 [14:49:21]Write i2c OK [14:49:21]MH_I2C_Read... [14:49:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:21]Read from MH i2c: E2 [14:49:21]MH_I2C_Read... [14:49:21]Read from MH i2c: E2 0E 00 [14:49:21]MH_I2C_Read... [14:49:21]Read from MH i2c: E2 0E 00 7E 8E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C6 [14:49:21]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:49:21]wFMCommunicate OK [14:49:21]SAM_PROTO_GetShiftState done [14:49:21]FM_GetShiftState done [14:49:21]opened in 1723940556 [14:49:21]opened+sec_in_day 1724026956 [14:49:21]quantity*price = 0 [14:49:21]sum+1 = 1 [14:49:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 287 18.08.2024 14:49 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: ТК ГПНА Online 30087854 ФМ: 0000000000871820 ФД: 260729 ФПД: 185205300565659 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T144926&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260729&fm=185205300565659&tin=02508201610067®Number=0000000000091865&sum=0 [14:49:22]StoreToDocumentArchive [14:49:22]shift 449 fd 260729 [14:49:22]save to /storage/0449/doc_00260729 [14:49:22]save last doc name /storage/0449/doc_00260729 to /storage/kkm_last_doc_name [14:49:22]save OK [14:49:22]Clear old archive folders... [14:49:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:49:22]tlvbuf is 00540D50 [14:49:22]SAM_PROTO_ClearQueue [14:49:22]wFMCommunicate request_size=4 [14:49:22]MH_SAM_APDU [14:49:22]CAPDU: 80 09 00 00 [14:49:22]Write to MH i2c: E2 08 00 8B 8E 80 09 00 00 00 00 00 00 8B [14:49:22]Write i2c OK [14:49:22]MH_I2C_Read... [14:49:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:22]Read from MH i2c: E2 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: E2 03 00 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: E2 03 00 8B 8E 00 90 00 8D [14:49:22]RAPDU: 90 00 [14:49:22]wFMCommunicate OK [14:49:22]SAM_PROTO_ClearQueue done [14:49:22]KKMCreateOFDPacket [14:49:22]OFDProtocolAddRootSTLVToBuf [14:49:22]FM_MakeSignedData [14:49:22]FM_MakeSignedData [14:49:22]SAM_PROTO_SignData [14:49:22]wFMCommunicate request_size=4 [14:49:22]MH_SAM_APDU [14:49:22]CAPDU: 80 0D 01 02 [14:49:22]Write to MH i2c: E2 08 00 8C 8E 80 0D 01 02 00 00 00 00 93 [14:49:22]Write i2c OK [14:49:22]MH_I2C_Read... [14:49:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:22]Read from MH i2c: E2 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: E2 03 00 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: E2 03 00 8C 8E 00 90 00 8E [14:49:22]RAPDU: 90 00 [14:49:22]wFMCommunicate OK [14:49:22]wFMCommunicate request_size=255 [14:49:22]MH_SAM_APDU [14:49: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 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 1F 01 00 00 F4 03 04 00 F6 09 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 79 FA 03 00 35 04 06 00 A8 [14:49:22]Write to MH i2c: E2 02 01 8D 8E 80 0D 02 02 FA 00 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 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 1F 01 00 00 F4 03 04 00 F6 09 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 79 FA 03 00 35 04 06 00 A8 00 00 34 [14:49:22]Write i2c OK [14:49:22]MH_I2C_Read... [14:49:23]OFD Sender: No OFD packet to send [14:49:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:23]Read from MH i2c: E2 [14:49:23]MH_I2C_Read... [14:49:23]Read from MH i2c: E2 03 00 [14:49:23]MH_I2C_Read... [14:49:23]Read from MH i2c: E2 03 00 8D 8E 00 90 00 8F [14:49:23]RAPDU: 90 00 [14:49:23]wFMCommunicate OK [14:49:23]wFMCommunicate request_size=10 [14:49:23]MH_SAM_APDU [14:49:23]CAPDU: 80 0D 02 02 05 71 78 26 96 9B [14:49:23]Write to MH i2c: E2 0D 00 8E 8E 80 0D 02 02 05 00 71 78 26 96 9B 00 00 E0 [14:49:23]Write i2c OK [14:49:23]MH_I2C_Read... [14:49:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:23]Read from MH i2c: E2 [14:49:23]MH_I2C_Read... [14:49:23]Read from MH i2c: E2 03 00 [14:49:23]MH_I2C_Read... [14:49:23]Read from MH i2c: E2 03 00 8E 8E 00 90 00 90 [14:49:23]RAPDU: 90 00 [14:49:23]wFMCommunicate OK [14:49:23]wFMCommunicate request_size=4 [14:49:23]MH_SAM_APDU [14:49:23]CAPDU: 80 0D 03 02 [14:49:23]Write to MH i2c: E2 08 00 8F 8E 80 0D 03 02 00 00 00 00 98 [14:49:23]Write i2c OK [14:49:23]MH_I2C_Read... [14:49:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:23]Read from MH i2c: E2 [14:49:23]MH_I2C_Read... [14:49:23]Read from MH i2c: E2 0B 00 [14:49:23]MH_I2C_Read... [14:49:23]Read from MH i2c: E2 0B 00 8F 8E 00 11 26 46 05 83 13 63 4D 90 00 61 [14:49:23]RAPDU: 11 26 46 05 83 13 63 4D 90 00 [14:49:23]wFMCommunicate OK [14:49:23]SAM_PROTO_SignData done [14:49:23]FM_MakeSignedData done [14:49:23]CreateOFDProtocolMessage [14:49:23]wFMCommunicate request_size=4 [14:49:23]MH_SAM_APDU [14:49:23]CAPDU: 80 11 00 00 [14:49:23]Write to MH i2c: E2 08 00 90 8E 80 11 00 00 00 00 00 00 98 [14:49:23]Write i2c OK [14:49:23]MH_I2C_Read... [14:49:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:23]Read from MH i2c: E2 [14:49:23]MH_I2C_Read... [14:49:23]Read from MH i2c: E2 17 00 [14:49:23]MH_I2C_Read... [14:49:23]Read from MH i2c: E2 17 00 90 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E5 [14:49:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:49:23]wFMCommunicate OK [14:49:23]CreateOFDProtocolMessage done [14:49:23]OFDSenderStorePacket 260729 [14:49:23]StoreOFDPacket docnum=260729 [14:49:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 AD 95 07 01 0D D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 1F 01 00 00 F4 03 04 00 F6 09 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 79 FA 03 00 35 04 06 00 A8 71 78 26 96 9B 11 26 46 05 83 13 63 4D [14:49:23]CheckFolder [14:49:23]dirname=/storage/ofd_packets [14:49:23]CheckFolder done [14:49:23]ProducePacketName [14:49:23]name=ofd_packets/00260729 [14:49:23]NVStorageSaveData ofd_packets/00260729 [14:49:23]File name is /storage/ofd_packets/00260729 [14:49:23]Write 301 bytes [14:49:23]NVStorageSaveData done [14:49:23]OFDSenderStorePacket done [14:49:23]KKMCreateOFDPacket done [14:49:23]NVStorageSaveData kkm_last_timestamp [14:49:23]File name is /storage/kkm_last_timestamp [14:49:23]Write 4 bytes [14:49:23]NVStorageSaveData done [14:49:23]ExternCall_PrintAddStr [14:49:23]wPrintStart [14:49:23]Write to MH i2c: 01 00 00 91 8E 1F [14:49:23]Write i2c OK [14:49:23]MH_I2C_Read... [14:49:23]Read from MH i2c: 01 [14:49:23]MH_I2C_Read... [14:49:23]Read from MH i2c: 01 07 00 [14:49:23]MH_I2C_Read... [14:49:23]Read from MH i2c: 01 07 00 91 8E 00 00 00 00 00 FF 0F 34 [14:49:23]RasterBufferAndPrint [14:49:23]line Счет N : (1)1036279 [14:49:23]line ИНН: 02508201610067 [14:49:23]line Контрольно-Кассовый Чек [14:49:23]line ПРОДАЖА [14:49:23]line ТРК (МРК, ГНК) : 23 [14:49:23]line Товар: 2710124500 [14:49:23]line Аи-95-К-5 [14:49:23]line 20.000 * 0.00 [14:49:23]line = 0.00 [14:49:23]line НДС 12% НСП 1% [14:49:23]line > о реализуемом товаре [14:49:23]line ИТОГО: 0.00 [14:49:23]line НСП 1% : 0.00 [14:49:23]line НДС 12% : 0.00 [14:49:23]line Наличными: 0.00 [14:49:23]line Безнал.: 0.00 [14:49:23]line Место: АЗС № 94 "Партнер Нефть" [14:49:23]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [14:49:23]line СНО: Общий режим [14:49:23]line Чек 287 18.08.2024 14:49 [14:49:23]line Смена: 449 ФФД: 1.0 [14:49:23]line ЗНМ: 0300000099 [14:49:23]line РНМ: 0000000000091865 [14:49:23]line Версия ККМ: 001 [14:49:23]line Талоны: ТК ГПНА Online [14:49:23]line 30087854 [14:49:23]line ФМ: 0000000000871820 [14:49:23]line ФД: 260729 [14:49:23]line ФПД: 185205300565659 [14:49:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T144926&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260729&fm=185205300565659&tin=02508201610067®Number=0000000000091865&sum=0 [14:49:23]written 0, free lines is 4095 [14:49:23]OFD Sender: Processing packet 260729 [packets to send 192, broken 191] [14:49:23]ProducePacketName [14:49:23]name=ofd_packets/00260729 [14:49:23]OFD Sender: To server: pG, [14:49:23]CommunicateWithHost lk.salyk.kg:30040 [14:49:23]ConnectInit lk.salyk.kg [14:49:23]Connected sock=10 [14:49: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 30 0F 01 00 00 AD 95 07 01 0D D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 1F 01 00 00 F4 03 04 00 F6 09 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 79 FA 03 00 35 04 06 00 A8 71 78 26 96 9B 11 26 46 05 83 13 63 4D [14:49: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 30 4F 00 00 00 CE C9 47 00 1A 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 30 10 04 04 00 79 FA 03 00 F4 03 04 00 4B B3 C1 66 B6 04 01 00 00 6A FC 8F 4E C0 56 44 5F [14:49:23]CommunicateWithHost err = 0 [14:49:23]CheckOFDResponse [14:49:23]1017 (14) - 77093643461234 [14:49:23]1041 (16) - 0000000000871820 [14:49:23]1040 (4) - 260729 [14:49:23]1012 (4) - 18.08.2024 08:39 [14:49:23]1206 (1) - 0 [14:49:23]OFD Sender: Remove packet 260729 [14:49:23]ProducePacketName [14:49:23]name=ofd_packets/00260729 [14:49:23]NVStorageDeleteData [14:49:24]Write to MH i2c: 01 00 00 BB 8E 49 [14:49:24]Write i2c OK [14:49:24]MH_I2C_Read... [14:49:24]Read from MH i2c: 01 [14:49:24]MH_I2C_Read... [14:49:24]Read from MH i2c: 01 07 00 [14:49:24]MH_I2C_Read... [14:49:24]Read from MH i2c: 01 07 00 BB 8E 00 00 00 00 00 8C 0C E8 [14:49:24]RasterBufferAndPrint [14:49:24]line [14:49:24]line [14:49:24]line [14:49:24]line [14:49:24]line [14:49:24]written 0, free lines is 3216 [14:49:24]MH_Cut [14:49:24]Write to MH i2c: D1 01 00 C2 8E 01 22 [14:49:24]Write i2c OK [14:49:24]MH_I2C_Read... [14:49:24]Read from MH i2c: D1 [14:49:24]MH_I2C_Read... [14:49:24]Read from MH i2c: D1 01 00 [14:49:24]MH_I2C_Read... [14:49:24]Read from MH i2c: D1 01 00 C2 8E 00 21 [14:49:24]Write to MH i2c: 01 00 00 C3 8E 51 [14:49:24]Write i2c OK [14:49:24]MH_I2C_Read... [14:49:24]OFD Sender: No OFD packet to send [14:49:25]*** Cut start [14:49:25]*** Purtial cut [14:49:25]*** Stage 1: CUTSNS_PIN = 1 [14:49:27]Read from MH i2c: 01 [14:49:27]MH_I2C_Read... [14:49:27]*** Stop cut motor [14:49:27]*** Cut end [14:49:27]Read from MH i2c: 01 07 00 [14:49:27]MH_I2C_Read... [14:49:27]Read from MH i2c: 01 07 00 C3 8E 00 00 00 00 00 FF 0F 66 [14:49:27]process_action close_receipt done [14:49:27]requested_data is exist [14:49:27]produce_requested_data [14:49:27]requested_item fm.sn is exist - process it [14:49:27]wFMCommunicate request_size=4 [14:49:27]MH_SAM_APDU [14:49:27]CAPDU: 80 11 00 00 [14:49:27]Write to MH i2c: E2 08 00 C4 8E 80 11 00 00 00 00 00 00 CC [14:49:27]Write i2c OK [14:49:27]MH_I2C_Read... [14:49:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:27]Read from MH i2c: E2 [14:49:27]MH_I2C_Read... [14:49:27]Read from MH i2c: E2 17 00 [14:49:27]MH_I2C_Read... [14:49:27]Read from MH i2c: E2 17 00 C4 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 19 [14:49:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:49:27]wFMCommunicate OK [14:49:27]requested_item fd.num is exist - process it [14:49:27]SAM_PROTO_GetFieldsCounters [14:49:27]wFMCommunicate request_size=4 [14:49:27]MH_SAM_APDU [14:49:27]CAPDU: 80 13 00 00 [14:49:27]Write to MH i2c: E2 08 00 C5 8E 80 13 00 00 00 00 00 00 CF [14:49:27]Write i2c OK [14:49:27]MH_I2C_Read... [14:49:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:27]Read from MH i2c: E2 [14:49:27]MH_I2C_Read... [14:49:27]Read from MH i2c: E2 62 00 [14:49:27]MH_I2C_Read... [14:49:27]Read from MH i2c: E2 62 00 C5 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 79 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 86 [14:49:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 79 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:49:27]wFMCommunicate OK [14:49:27]SAM_PROTO_GetFieldsCounters done [14:49:27]requested_item shift.num is exist - process it [14:49:27]requested_item shift.opened is exist - process it [14:49:27]req_shift_opened [14:49:27]FM_GetShiftState [14:49:27]SAM_PROTO_GetShiftState [14:49:27]wFMCommunicate request_size=4 [14:49:27]MH_SAM_APDU [14:49:27]CAPDU: 80 13 01 00 [14:49:27]Write to MH i2c: E2 08 00 C6 8E 80 13 01 00 00 00 00 00 D1 [14:49:27]Write i2c OK [14:49:27]MH_I2C_Read... [14:49:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:27]Read from MH i2c: E2 [14:49:27]MH_I2C_Read... [14:49:27]Read from MH i2c: E2 0E 00 [14:49:27]MH_I2C_Read... [14:49:27]Read from MH i2c: E2 0E 00 C6 8E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 0E [14:49:27]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:49:27]wFMCommunicate OK [14:49:27]SAM_PROTO_GetShiftState done [14:49:27]FM_GetShiftState done [14:49:27]req_shift_opened done [14:49:27]requested_item shift.open_date is exist - process it [14:49:27]req_shift_open_date [14:49:27]req_shift_open_date done [14:49:27]produce_requested_data done [14:49:27]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260729,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [14:49:27]process_action_free close_receipt [14:49:27]json_value_free [14:49:27]json_value_free done [14:49:27]process_json_proto returns [14:49:27]Send response to host [14:49:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260729,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [14:49:27]free response buf [14:49:27]execute_script done [14:49:27]execute_script returns [14:49:27]free content buf [14:49:27]Sock 7.Close socket [14:49:27]Sock 7.Thread stoped [14:49:29]OFD Sender: No OFD packet to send [14:49:34]OFD Sender: No OFD packet to send [14:49:39]OFD Sender: No OFD packet to send [14:49:44]OFD Sender: No OFD packet to send [14:49:49]OFD Sender: No OFD packet to send [14:49:54]OFD Sender: No OFD packet to send [14:49:59]OFD Sender: No OFD packet to send [14:50:04]OFD Sender: No OFD packet to send [14:50:09]OFD Sender: No OFD packet to send [14:50:14]OFD Sender: No OFD packet to send [14:50:19]OFD Sender: No OFD packet to send [14:50:24]OFD Sender: No OFD packet to send [14:50:29]OFD Sender: No OFD packet to send [14:50:34]OFD Sender: No OFD packet to send [14:50:39]OFD Sender: No OFD packet to send [14:50:44]OFD Sender: No OFD packet to send [14:50:49]OFD Sender: No OFD packet to send [14:50:54]OFD Sender: No OFD packet to send [14:50:57]accept exits with 9 [14:50:57]New connection [14:50:57]New thread 3066473828 created [14:50:57]Thread 3066617188 joined [14:50:57]Waiting for new connection... [14:50:57] Sock 9.Parse request [14:50:57]Sock 9.Check first char [14:50:57]Sock 9.First char is OK [14:50:57]request: POST /json_proto HTTP/1.0 [14:50:57]Method: POST [14:50:57]URL: /json_proto [14:50:57]Method is POST - this is cgi request [14:50:57]url: /json_proto [14:50:57]query_string will be loaded in cgi processing [14:50:57]execute_cgi json_proto POST (null) [14:50:57]execute_cgi path=json_proto method=POST [14:50:57]POST find Content-Length [14:50:57]Host: 172.17.55.133:8080 [14:50:57]Content-Length: 678 [14:50:57]Content-Type: application/json [14:50:57] [14:50:57]POST finish read [14:50:57]Found Content-Length = 678 [14:50:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [14:50:57]execute_script... [14:50: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)1036280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [14:50:57]POST & json_proto [14:50:57]process_json_proto [14:50:57]json parsed OK: [14:50:57]protocol is kg_v1.0 [14:50:57]action value=close_receipt [14:50:57]process_action close_receipt [14:50:57]cmd_close_receipt [14:50:57]MH_GetDate [14:50:57]Write to MH i2c: F0 00 00 C7 8E 44 [14:50:57]Write i2c OK [14:50:57]MH_I2C_Read... [14:50:57]Read from MH i2c: F0 [14:50:57]MH_I2C_Read... [14:50:57]Read from MH i2c: F0 09 00 [14:50:57]MH_I2C_Read... [14:50:57]Read from MH i2c: F0 09 00 C7 8E 00 56 0A C2 66 34 48 D8 65 8E [14:50:57]GetLastDocTimeStamp 1723992566 [14:50:57]current date 1723992662 [14:50:57]FM_GetShiftState [14:50:57]SAM_PROTO_GetShiftState [14:50:57]wFMCommunicate request_size=4 [14:50:57]MH_SAM_APDU [14:50:57]CAPDU: 80 13 01 00 [14:50:57]Write to MH i2c: E2 08 00 C8 8E 80 13 01 00 00 00 00 00 D3 [14:50:57]Write i2c OK [14:50:57]MH_I2C_Read... [14:50:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:57]Read from MH i2c: E2 [14:50:57]MH_I2C_Read... [14:50:57]Read from MH i2c: E2 0E 00 [14:50:57]MH_I2C_Read... [14:50:57]Read from MH i2c: E2 0E 00 C8 8E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 10 [14:50:57]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:50:57]wFMCommunicate OK [14:50:57]SAM_PROTO_GetShiftState done [14:50:57]FM_GetShiftState done [14:50:57]opened in 1723940556 [14:50:57]opened+sec_in_day 1724026956 [14:50:57]quantity*price = 40002 [14:50:57]sum+1 = 40003 [14:50:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 288 18.08.2024 14:51 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260730 ФПД: 246218537703676 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T145102&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260730&fm=246218537703676&tin=02508201610067®Number=0000000000091865&sum=40000 [14:50:58]StoreToDocumentArchive [14:50:58]shift 449 fd 260730 [14:50:58]save to /storage/0449/doc_00260730 [14:50:58]save last doc name /storage/0449/doc_00260730 to /storage/kkm_last_doc_name [14:50:58]save OK [14:50:58]Clear old archive folders... [14:50:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:50:58]tlvbuf is 004537B0 [14:50:58]SAM_PROTO_ClearQueue [14:50:58]wFMCommunicate request_size=4 [14:50:58]MH_SAM_APDU [14:50:58]CAPDU: 80 09 00 00 [14:50:58]Write to MH i2c: E2 08 00 D5 8E 80 09 00 00 00 00 00 00 D5 [14:50:58]Write i2c OK [14:50:58]MH_I2C_Read... [14:50:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:50:58]Read from MH i2c: E2 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: E2 03 00 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: E2 03 00 D5 8E 00 90 00 D7 [14:50:58]RAPDU: 90 00 [14:50:58]wFMCommunicate OK [14:50:58]SAM_PROTO_ClearQueue done [14:50:58]KKMCreateOFDPacket [14:50:58]OFDProtocolAddRootSTLVToBuf [14:50:58]FM_MakeSignedData [14:50:58]FM_MakeSignedData [14:50:58]SAM_PROTO_SignData [14:50:58]wFMCommunicate request_size=4 [14:50:58]MH_SAM_APDU [14:50:58]CAPDU: 80 0D 01 02 [14:50:58]Write to MH i2c: E2 08 00 D6 8E 80 0D 01 02 00 00 00 00 DD [14:50:58]Write i2c OK [14:50:58]MH_I2C_Read... [14:50:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:50:58]Read from MH i2c: E2 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: E2 03 00 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: E2 03 00 D6 8E 00 90 00 D8 [14:50:58]RAPDU: 90 00 [14:50:58]wFMCommunicate OK [14:50:58]wFMCommunicate request_size=255 [14:50:58]MH_SAM_APDU [14:50:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 56 0A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7A FA 03 00 35 04 06 00 DF [14:50:58]Write to MH i2c: E2 02 01 D7 8E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 56 0A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7A FA 03 00 35 04 06 00 DF 00 00 00 [14:50:58]Write i2c OK [14:50:58]MH_I2C_Read... [14:50:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:59]Read from MH i2c: E2 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: E2 03 00 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: E2 03 00 D7 8E 00 90 00 D9 [14:50:59]RAPDU: 90 00 [14:50:59]wFMCommunicate OK [14:50:59]wFMCommunicate request_size=10 [14:50:59]MH_SAM_APDU [14:50:59]CAPDU: 80 0D 02 02 05 EF 38 7A 18 FC [14:50:59]Write to MH i2c: E2 0D 00 D8 8E 80 0D 02 02 05 00 EF 38 7A 18 FC 00 00 9F [14:50:59]Write i2c OK [14:50:59]MH_I2C_Read... [14:50:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:59]Read from MH i2c: E2 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: E2 03 00 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: E2 03 00 D8 8E 00 90 00 DA [14:50:59]RAPDU: 90 00 [14:50:59]wFMCommunicate OK [14:50:59]wFMCommunicate request_size=4 [14:50:59]MH_SAM_APDU [14:50:59]CAPDU: 80 0D 03 02 [14:50:59]Write to MH i2c: E2 08 00 D9 8E 80 0D 03 02 00 00 00 00 E2 [14:50:59]Write i2c OK [14:50:59]MH_I2C_Read... [14:50:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:50:59]Read from MH i2c: E2 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: E2 0B 00 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: E2 0B 00 D9 8E 00 21 23 D7 4E D2 6B 5F FF 90 00 E7 [14:50:59]RAPDU: 21 23 D7 4E D2 6B 5F FF 90 00 [14:50:59]wFMCommunicate OK [14:50:59]SAM_PROTO_SignData done [14:50:59]FM_MakeSignedData done [14:50:59]CreateOFDProtocolMessage [14:50:59]wFMCommunicate request_size=4 [14:50:59]MH_SAM_APDU [14:50:59]CAPDU: 80 11 00 00 [14:50:59]Write to MH i2c: E2 08 00 DA 8E 80 11 00 00 00 00 00 00 E2 [14:50:59]Write i2c OK [14:50:59]MH_I2C_Read... [14:50:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:59]Read from MH i2c: E2 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: E2 17 00 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: E2 17 00 DA 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 2F [14:50:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:50:59]wFMCommunicate OK [14:50:59]CreateOFDProtocolMessage done [14:50:59]OFDSenderStorePacket 260730 [14:50:59]StoreOFDPacket docnum=260730 [14:50:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 52 AA 07 01 A4 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 56 0A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7A FA 03 00 35 04 06 00 DF EF 38 7A 18 FC 21 23 D7 4E D2 6B 5F FF [14:50:59]CheckFolder [14:50:59]dirname=/storage/ofd_packets [14:50:59]CheckFolder done [14:50:59]ProducePacketName [14:50:59]name=ofd_packets/00260730 [14:50:59]NVStorageSaveData ofd_packets/00260730 [14:50:59]File name is /storage/ofd_packets/00260730 [14:50:59]Write 301 bytes [14:50:59]NVStorageSaveData done [14:50:59]OFDSenderStorePacket done [14:50:59]KKMCreateOFDPacket done [14:50:59]NVStorageSaveData kkm_last_timestamp [14:50:59]File name is /storage/kkm_last_timestamp [14:50:59]Write 4 bytes [14:50:59]NVStorageSaveData done [14:50:59]ExternCall_PrintAddStr [14:50:59]wPrintStart [14:50:59]Write to MH i2c: 01 00 00 DB 8E 69 [14:50:59]Write i2c OK [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: 01 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: 01 07 00 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: 01 07 00 DB 8E 00 00 00 00 00 FF 0F 7E [14:50:59]RasterBufferAndPrint [14:50:59]line Счет N : (1)1036280 [14:50:59]line ИНН: 02508201610067 [14:50:59]line Контрольно-Кассовый Чек [14:50:59]line ПРОДАЖА [14:50:59]line ТРК (МРК, ГНК) : 32 [14:50:59]line Товар: 2710124130 [14:50:59]line Аи-92-К-5 [14:50:59]line 5.900 * 67.80 [14:50:59]line = 400.02 [14:50:59]line НДС 12% НСП 1% [14:50:59]line > о реализуемом товаре [14:50:59]line ОКРУГЛЕНИЕ: -0.02 [14:50:59]line ИТОГО: 400.00 [14:50:59]line Внесено: 400.00 [14:50:59]line СДАЧА: 0.00 [14:50:59]line НСП 1% : 3.54 [14:50:59]line НДС 12% : 42.48 [14:50:59]line Наличными: 400.00 [14:50:59]line Безнал.: 0.00 [14:50:59]line Место: АЗС № 94 "Партнер Нефть" [14:50:59]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [14:50:59]line СНО: Общий режим [14:50:59]line Чек 288 18.08.2024 14:51 [14:50:59]line Смена: 449 ФФД: 1.0 [14:50:59]line ЗНМ: 0300000099 [14:50:59]line РНМ: 0000000000091865 [14:50:59]line Версия ККМ: 001 [14:50:59]line ФМ: 0000000000871820 [14:50:59]line ФД: 260730 [14:50:59]line ФПД: 246218537703676 [14:50:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T145102&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260730&fm=246218537703676&tin=02508201610067®Number=0000000000091865&sum=40000 [14:50:59]written 0, free lines is 4095 [14:50:59]OFD Sender: Processing packet 260730 [packets to send 192, broken 191] [14:50:59]ProducePacketName [14:50:59]name=ofd_packets/00260730 [14:50:59]OFD Sender: To server: pG, [14:50:59]CommunicateWithHost lk.salyk.kg:30040 [14:50:59]ConnectInit lk.salyk.kg [14:50:59]Connected sock=10 [14:50: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 30 0F 01 00 00 52 AA 07 01 A4 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 56 0A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7A FA 03 00 35 04 06 00 DF EF 38 7A 18 FC 21 23 D7 4E D2 6B 5F FF [14:50:59]Write to MH i2c: 01 00 00 06 8F 95 [14:50:59]Write i2c OK [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: 01 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: 01 07 00 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: 01 07 00 06 8F 00 00 00 00 00 74 0C 1C [14:50:59]RasterBufferAndPrint [14:50:59]line [14:50:59]line [14:50:59]line [14:50:59]line [14:50:59]line [14:50:59]written 0, free lines is 3191 [14:50:59]MH_Cut [14:50:59]Write to MH i2c: D1 01 00 0D 8F 01 6E [14:50:59]Write i2c OK [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: D1 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: D1 01 00 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: D1 01 00 0D 8F 00 6D [14:50:59]Write to MH i2c: 01 00 00 0E 8F 9D [14:50:59]Write i2c OK [14:50:59]MH_I2C_Read... [14:50: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 30 4F 00 00 00 0F 29 47 00 FA 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 30 10 04 04 00 7A FA 03 00 F4 03 04 00 AB B3 C1 66 B6 04 01 00 00 13 FE C1 BE 6A CC B3 5D [14:50:59]CommunicateWithHost err = 0 [14:50:59]CheckOFDResponse [14:50:59]1017 (14) - 77093643461234 [14:50:59]1041 (16) - 0000000000871820 [14:50:59]1040 (4) - 260730 [14:50:59]1012 (4) - 18.08.2024 08:41 [14:50:59]1206 (1) - 0 [14:50:59]OFD Sender: Remove packet 260730 [14:50:59]ProducePacketName [14:50:59]name=ofd_packets/00260730 [14:50:59]NVStorageDeleteData [14:51:00]OFD Sender: No OFD packet to send [14:51:00]*** Cut start [14:51:00]*** Purtial cut [14:51:00]*** Stage 1: CUTSNS_PIN = 1 [14:51:02]Read from MH i2c: 01 [14:51:02]MH_I2C_Read... [14:51:02]*** Stop cut motor [14:51:02]*** Cut end [14:51:02]Read from MH i2c: 01 07 00 [14:51:02]MH_I2C_Read... [14:51:02]Read from MH i2c: 01 07 00 0E 8F 00 00 00 00 00 FF 0F B2 [14:51:02]process_action close_receipt done [14:51:02]requested_data is exist [14:51:02]produce_requested_data [14:51:02]requested_item fm.sn is exist - process it [14:51:02]wFMCommunicate request_size=4 [14:51:02]MH_SAM_APDU [14:51:02]CAPDU: 80 11 00 00 [14:51:02]Write to MH i2c: E2 08 00 0F 8F 80 11 00 00 00 00 00 00 18 [14:51:02]Write i2c OK [14:51:02]MH_I2C_Read... [14:51:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:02]Read from MH i2c: E2 [14:51:02]MH_I2C_Read... [14:51:02]Read from MH i2c: E2 17 00 [14:51:02]MH_I2C_Read... [14:51:02]Read from MH i2c: E2 17 00 0F 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 65 [14:51:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:51:02]wFMCommunicate OK [14:51:02]requested_item fd.num is exist - process it [14:51:02]SAM_PROTO_GetFieldsCounters [14:51:02]wFMCommunicate request_size=4 [14:51:02]MH_SAM_APDU [14:51:02]CAPDU: 80 13 00 00 [14:51:02]Write to MH i2c: E2 08 00 10 8F 80 13 00 00 00 00 00 00 1B [14:51:02]Write i2c OK [14:51:02]MH_I2C_Read... [14:51:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:03]Read from MH i2c: E2 [14:51:03]MH_I2C_Read... [14:51:03]Read from MH i2c: E2 62 00 [14:51:03]MH_I2C_Read... [14:51:03]Read from MH i2c: E2 62 00 10 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 7A FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 D6 [14:51: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 7A FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:51:03]wFMCommunicate OK [14:51:03]SAM_PROTO_GetFieldsCounters done [14:51:03]requested_item shift.num is exist - process it [14:51:03]requested_item shift.opened is exist - process it [14:51:03]req_shift_opened [14:51:03]FM_GetShiftState [14:51:03]SAM_PROTO_GetShiftState [14:51:03]wFMCommunicate request_size=4 [14:51:03]MH_SAM_APDU [14:51:03]CAPDU: 80 13 01 00 [14:51:03]Write to MH i2c: E2 08 00 11 8F 80 13 01 00 00 00 00 00 1D [14:51:03]Write i2c OK [14:51:03]MH_I2C_Read... [14:51:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:03]Read from MH i2c: E2 [14:51:03]MH_I2C_Read... [14:51:03]Read from MH i2c: E2 0E 00 [14:51:03]MH_I2C_Read... [14:51:03]Read from MH i2c: E2 0E 00 11 8F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 5A [14:51:03]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:51:03]wFMCommunicate OK [14:51:03]SAM_PROTO_GetShiftState done [14:51:03]FM_GetShiftState done [14:51:03]req_shift_opened done [14:51:03]requested_item shift.open_date is exist - process it [14:51:03]req_shift_open_date [14:51:03]req_shift_open_date done [14:51:03]produce_requested_data done [14:51:03]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260730,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [14:51:03]process_action_free close_receipt [14:51:03]json_value_free [14:51:03]json_value_free done [14:51:03]process_json_proto returns [14:51:03]Send response to host [14:51:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260730,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [14:51:03]free response buf [14:51:03]execute_script done [14:51:03]execute_script returns [14:51:03]free content buf [14:51:03]Sock 9.Close socket [14:51:03]Sock 9.Thread stoped [14:51:05]OFD Sender: No OFD packet to send [14:51:10]OFD Sender: No OFD packet to send [14:51:15]OFD Sender: No OFD packet to send [14:51:20]OFD Sender: No OFD packet to send [14:51:25]OFD Sender: No OFD packet to send [14:51:30]OFD Sender: No OFD packet to send [14:51:35]OFD Sender: No OFD packet to send [14:51:40]OFD Sender: No OFD packet to send [14:51:45]OFD Sender: No OFD packet to send [14:51:50]OFD Sender: No OFD packet to send [14:51:55]OFD Sender: No OFD packet to send [14:52:00]OFD Sender: No OFD packet to send [14:52:05]OFD Sender: No OFD packet to send [14:52:10]OFD Sender: No OFD packet to send [14:52:15]OFD Sender: No OFD packet to send [14:52:17]accept exits with 7 [14:52:17]New connection [14:52:17]New thread 3066617188 created [14:52:17]Thread 3066473828 joined [14:52:17]Waiting for new connection... [14:52:17] Sock 7.Parse request [14:52:17]Sock 7.Check first char [14:52:17]Sock 7.First char is OK [14:52:17]request: POST /json_proto HTTP/1.0 [14:52:17]Method: POST [14:52:17]URL: /json_proto [14:52:17]Method is POST - this is cgi request [14:52:17]url: /json_proto [14:52:17]query_string will be loaded in cgi processing [14:52:17]execute_cgi json_proto POST (null) [14:52:17]execute_cgi path=json_proto method=POST [14:52:17]POST find Content-Length [14:52:17]Host: 172.17.55.133:8080 [14:52:17]Content-Length: 678 [14:52:17]Content-Type: application/json [14:52:17] [14:52:17]POST finish read [14:52:17]Found Content-Length = 678 [14:52:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036282", "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" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:17]execute_script... [14:52: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)1036282", "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" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:17]POST & json_proto [14:52:17]process_json_proto [14:52:17]json parsed OK: [14:52:17]protocol is kg_v1.0 [14:52:17]action value=close_receipt [14:52:17]process_action close_receipt [14:52:17]cmd_close_receipt [14:52:17]MH_GetDate [14:52:17]Write to MH i2c: F0 00 00 12 8F 90 [14:52:17]Write i2c OK [14:52:17]MH_I2C_Read... [14:52:17]Read from MH i2c: F0 [14:52:17]MH_I2C_Read... [14:52:17]Read from MH i2c: F0 09 00 [14:52:17]MH_I2C_Read... [14:52:17]Read from MH i2c: F0 09 00 12 8F 00 A6 0A C2 66 34 48 D8 65 2A [14:52:17]GetLastDocTimeStamp 1723992662 [14:52:17]current date 1723992742 [14:52:17]FM_GetShiftState [14:52:17]SAM_PROTO_GetShiftState [14:52:17]wFMCommunicate request_size=4 [14:52:17]MH_SAM_APDU [14:52:17]CAPDU: 80 13 01 00 [14:52:17]Write to MH i2c: E2 08 00 13 8F 80 13 01 00 00 00 00 00 1F [14:52:17]Write i2c OK [14:52:17]MH_I2C_Read... [14:52:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:17]Read from MH i2c: E2 [14:52:17]MH_I2C_Read... [14:52:17]Read from MH i2c: E2 0E 00 [14:52:17]MH_I2C_Read... [14:52:17]Read from MH i2c: E2 0E 00 13 8F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 5C [14:52:17]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:52:17]wFMCommunicate OK [14:52:17]SAM_PROTO_GetShiftState done [14:52:17]FM_GetShiftState done [14:52:17]opened in 1723940556 [14:52:17]opened+sec_in_day 1724026956 [14:52:17]quantity*price = 70044 [14:52:17]sum+1 = 70046 [14:52:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 289 18.08.2024 14:52 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260731 ФПД: 254855427331711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T145222&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260731&fm=254855427331711&tin=02508201610067®Number=0000000000091865&sum=70000 [14:52:18]StoreToDocumentArchive [14:52:18]shift 449 fd 260731 [14:52:18]save to /storage/0449/doc_00260731 [14:52:18]save last doc name /storage/0449/doc_00260731 to /storage/kkm_last_doc_name [14:52:18]save OK [14:52:18]Clear old archive folders... [14:52:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:52:18]tlvbuf is 003A0560 [14:52:18]SAM_PROTO_ClearQueue [14:52:18]wFMCommunicate request_size=4 [14:52:18]MH_SAM_APDU [14:52:18]CAPDU: 80 09 00 00 [14:52:18]Write to MH i2c: E2 08 00 20 8F 80 09 00 00 00 00 00 00 21 [14:52:18]Write i2c OK [14:52:18]MH_I2C_Read... [14:52:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:52:18]Read from MH i2c: E2 [14:52:18]MH_I2C_Read... [14:52:18]Read from MH i2c: E2 03 00 [14:52:18]MH_I2C_Read... [14:52:18]Read from MH i2c: E2 03 00 20 8F 00 90 00 23 [14:52:18]RAPDU: 90 00 [14:52:18]wFMCommunicate OK [14:52:18]SAM_PROTO_ClearQueue done [14:52:18]KKMCreateOFDPacket [14:52:18]OFDProtocolAddRootSTLVToBuf [14:52:18]FM_MakeSignedData [14:52:18]FM_MakeSignedData [14:52:18]SAM_PROTO_SignData [14:52:18]wFMCommunicate request_size=4 [14:52:18]MH_SAM_APDU [14:52:18]CAPDU: 80 0D 01 02 [14:52:18]Write to MH i2c: E2 08 00 21 8F 80 0D 01 02 00 00 00 00 29 [14:52:18]Write i2c OK [14:52:18]MH_I2C_Read... [14:52:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:52:18]Read from MH i2c: E2 [14:52:18]MH_I2C_Read... [14:52:18]Read from MH i2c: E2 03 00 [14:52:18]MH_I2C_Read... [14:52:18]Read from MH i2c: E2 03 00 21 8F 00 90 00 24 [14:52:18]RAPDU: 90 00 [14:52:18]wFMCommunicate OK [14:52:18]wFMCommunicate request_size=255 [14:52:18]MH_SAM_APDU [14:52: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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 21 01 00 00 F4 03 04 00 A6 0A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7B FA 03 00 35 04 06 00 E7 [14:52:18]Write to MH i2c: E2 02 01 22 8F 80 0D 02 02 FA 00 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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 21 01 00 00 F4 03 04 00 A6 0A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7B FA 03 00 35 04 06 00 E7 00 00 B8 [14:52:18]Write i2c OK [14:52:18]MH_I2C_Read... [14:52:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:18]Read from MH i2c: E2 [14:52:18]MH_I2C_Read... [14:52:18]Read from MH i2c: E2 03 00 [14:52:18]MH_I2C_Read... [14:52:18]Read from MH i2c: E2 03 00 22 8F 00 90 00 25 [14:52:18]RAPDU: 90 00 [14:52:18]wFMCommunicate OK [14:52:18]wFMCommunicate request_size=10 [14:52:18]MH_SAM_APDU [14:52:18]CAPDU: 80 0D 02 02 05 CA 27 37 16 7F [14:52:18]Write to MH i2c: E2 0D 00 23 8F 80 0D 02 02 05 00 CA 27 37 16 7F 00 00 F3 [14:52:18]Write i2c OK [14:52:18]MH_I2C_Read... [14:52:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:18]Read from MH i2c: E2 [14:52:18]MH_I2C_Read... [14:52:18]Read from MH i2c: E2 03 00 [14:52:18]MH_I2C_Read... [14:52:18]Read from MH i2c: E2 03 00 23 8F 00 90 00 26 [14:52:18]RAPDU: 90 00 [14:52:18]wFMCommunicate OK [14:52:18]wFMCommunicate request_size=4 [14:52:18]MH_SAM_APDU [14:52:18]CAPDU: 80 0D 03 02 [14:52:18]Write to MH i2c: E2 08 00 24 8F 80 0D 03 02 00 00 00 00 2E [14:52:18]Write i2c OK [14:52:18]MH_I2C_Read... [14:52:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:52:19]Read from MH i2c: E2 [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: E2 0B 00 [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: E2 0B 00 24 8F 00 C5 42 CC AC 8D 6F 08 98 90 00 4A [14:52:19]RAPDU: C5 42 CC AC 8D 6F 08 98 90 00 [14:52:19]wFMCommunicate OK [14:52:19]SAM_PROTO_SignData done [14:52:19]FM_MakeSignedData done [14:52:19]CreateOFDProtocolMessage [14:52:19]wFMCommunicate request_size=4 [14:52:19]MH_SAM_APDU [14:52:19]CAPDU: 80 11 00 00 [14:52:19]Write to MH i2c: E2 08 00 25 8F 80 11 00 00 00 00 00 00 2E [14:52:19]Write i2c OK [14:52:19]MH_I2C_Read... [14:52:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:19]Read from MH i2c: E2 [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: E2 17 00 [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: E2 17 00 25 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 7B [14:52:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:52:19]wFMCommunicate OK [14:52:19]CreateOFDProtocolMessage done [14:52:19]OFDSenderStorePacket 260731 [14:52:19]StoreOFDPacket docnum=260731 [14:52:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 28 73 07 01 A4 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 21 01 00 00 F4 03 04 00 A6 0A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7B FA 03 00 35 04 06 00 E7 CA 27 37 16 7F C5 42 CC AC 8D 6F 08 98 [14:52:19]CheckFolder [14:52:19]dirname=/storage/ofd_packets [14:52:19]CheckFolder done [14:52:19]ProducePacketName [14:52:19]name=ofd_packets/00260731 [14:52:19]NVStorageSaveData ofd_packets/00260731 [14:52:19]File name is /storage/ofd_packets/00260731 [14:52:19]Write 301 bytes [14:52:19]NVStorageSaveData done [14:52:19]OFDSenderStorePacket done [14:52:19]KKMCreateOFDPacket done [14:52:19]NVStorageSaveData kkm_last_timestamp [14:52:19]File name is /storage/kkm_last_timestamp [14:52:19]Write 4 bytes [14:52:19]NVStorageSaveData done [14:52:19]ExternCall_PrintAddStr [14:52:19]wPrintStart [14:52:19]Write to MH i2c: 01 00 00 26 8F B5 [14:52:19]Write i2c OK [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: 01 [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: 01 07 00 [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: 01 07 00 26 8F 00 00 00 00 00 FF 0F CA [14:52:19]RasterBufferAndPrint [14:52:19]line Счет N : (1)1036282 [14:52:19]line ИНН: 02508201610067 [14:52:19]line Контрольно-Кассовый Чек [14:52:19]line ПРОДАЖА [14:52:19]line ТРК (МРК, ГНК) : 13 [14:52:19]line Товар: 2710124500 [14:52:19]line Аи-95-К-5 [14:52:19]line 9.440 * 74.20 [14:52:19]line = 700.45 [14:52:19]line НДС 12% НСП 1% [14:52:19]line > о реализуемом товаре [14:52:19]line ОКРУГЛЕНИЕ: -0.45 [14:52:19]line ИТОГО: 700.00 [14:52:19]line Внесено: 700.00 [14:52:19]line СДАЧА: 0.00 [14:52:19]line НСП 1% : 6.20 [14:52:19]line НДС 12% : 74.38 [14:52:19]line Наличными: 700.00 [14:52:19]line Безнал.: 0.00 [14:52:19]line Место: АЗС № 94 "Партнер Нефть" [14:52:19]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [14:52:19]line СНО: Общий режим [14:52:19]line Чек 289 18.08.2024 14:52 [14:52:19]line Смена: 449 ФФД: 1.0 [14:52:19]line ЗНМ: 0300000099 [14:52:19]line РНМ: 0000000000091865 [14:52:19]line Версия ККМ: 001 [14:52:19]line ФМ: 0000000000871820 [14:52:19]line ФД: 260731 [14:52:19]line ФПД: 254855427331711 [14:52:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T145222&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260731&fm=254855427331711&tin=02508201610067®Number=0000000000091865&sum=70000 [14:52:19]written 0, free lines is 4095 [14:52:19]OFD Sender: Processing packet 260731 [packets to send 192, broken 191] [14:52:19]ProducePacketName [14:52:19]name=ofd_packets/00260731 [14:52:19]OFD Sender: To server: pG, [14:52:19]CommunicateWithHost lk.salyk.kg:30040 [14:52:19]ConnectInit lk.salyk.kg [14:52:19]Connected sock=10 [14:52: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 30 0F 01 00 00 28 73 07 01 A4 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 21 01 00 00 F4 03 04 00 A6 0A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7B FA 03 00 35 04 06 00 E7 CA 27 37 16 7F C5 42 CC AC 8D 6F 08 98 [14:52: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 30 4F 00 00 00 61 14 47 00 35 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 30 10 04 04 00 7B FA 03 00 F4 03 04 00 FB B3 C1 66 B6 04 01 00 00 F3 92 AC 2D BE FC AC 9E [14:52:19]CommunicateWithHost err = 0 [14:52:19]CheckOFDResponse [14:52:19]1017 (14) - 77093643461234 [14:52:19]1041 (16) - 0000000000871820 [14:52:19]1040 (4) - 260731 [14:52:19]1012 (4) - 18.08.2024 08:42 [14:52:19]1206 (1) - 0 [14:52:19]OFD Sender: Remove packet 260731 [14:52:19]ProducePacketName [14:52:19]name=ofd_packets/00260731 [14:52:19]NVStorageDeleteData [14:52:19]Write to MH i2c: 01 00 00 51 8F E0 [14:52:19]Write i2c OK [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: 01 [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: 01 07 00 [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: 01 07 00 51 8F 00 00 00 00 00 82 0C 75 [14:52:19]RasterBufferAndPrint [14:52:19]line [14:52:19]line [14:52:19]line [14:52:19]line [14:52:19]line [14:52:19]written 0, free lines is 3204 [14:52:19]MH_Cut [14:52:19]Write to MH i2c: D1 01 00 58 8F 01 B9 [14:52:19]Write i2c OK [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: D1 [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: D1 01 00 [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: D1 01 00 58 8F 00 B8 [14:52:19]Write to MH i2c: 01 00 00 59 8F E8 [14:52:19]Write i2c OK [14:52:19]MH_I2C_Read... [14:52:19]OFD Sender: No OFD packet to send [14:52:20]*** Cut start [14:52:20]*** Purtial cut [14:52:20]*** Stage 1: CUTSNS_PIN = 1 [14:52:22]Read from MH i2c: 01 [14:52:22]MH_I2C_Read... [14:52:22]*** Stop cut motor [14:52:22]*** Cut end [14:52:22]Read from MH i2c: 01 07 00 [14:52:22]MH_I2C_Read... [14:52:22]Read from MH i2c: 01 07 00 59 8F 00 00 00 00 00 FF 0F FD [14:52:22]process_action close_receipt done [14:52:22]requested_data is exist [14:52:22]produce_requested_data [14:52:22]requested_item fm.sn is exist - process it [14:52:22]wFMCommunicate request_size=4 [14:52:22]MH_SAM_APDU [14:52:22]CAPDU: 80 11 00 00 [14:52:22]Write to MH i2c: E2 08 00 5A 8F 80 11 00 00 00 00 00 00 63 [14:52:22]Write i2c OK [14:52:22]MH_I2C_Read... [14:52:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:22]Read from MH i2c: E2 [14:52:22]MH_I2C_Read... [14:52:22]Read from MH i2c: E2 17 00 [14:52:22]MH_I2C_Read... [14:52:22]Read from MH i2c: E2 17 00 5A 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B0 [14:52:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:52:22]wFMCommunicate OK [14:52:22]requested_item fd.num is exist - process it [14:52:22]SAM_PROTO_GetFieldsCounters [14:52:22]wFMCommunicate request_size=4 [14:52:22]MH_SAM_APDU [14:52:22]CAPDU: 80 13 00 00 [14:52:22]Write to MH i2c: E2 08 00 5B 8F 80 13 00 00 00 00 00 00 66 [14:52:22]Write i2c OK [14:52:22]MH_I2C_Read... [14:52:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:52:22]Read from MH i2c: E2 [14:52:22]MH_I2C_Read... [14:52:22]Read from MH i2c: E2 62 00 [14:52:22]MH_I2C_Read... [14:52:22]Read from MH i2c: E2 62 00 5B 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 7B FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 25 [14:52: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 7B FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:52:22]wFMCommunicate OK [14:52:22]SAM_PROTO_GetFieldsCounters done [14:52:22]requested_item shift.num is exist - process it [14:52:22]requested_item shift.opened is exist - process it [14:52:22]req_shift_opened [14:52:22]FM_GetShiftState [14:52:22]SAM_PROTO_GetShiftState [14:52:22]wFMCommunicate request_size=4 [14:52:22]MH_SAM_APDU [14:52:22]CAPDU: 80 13 01 00 [14:52:22]Write to MH i2c: E2 08 00 5C 8F 80 13 01 00 00 00 00 00 68 [14:52:22]Write i2c OK [14:52:22]MH_I2C_Read... [14:52:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:22]Read from MH i2c: E2 [14:52:22]MH_I2C_Read... [14:52:22]Read from MH i2c: E2 0E 00 [14:52:22]MH_I2C_Read... [14:52:22]Read from MH i2c: E2 0E 00 5C 8F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A5 [14:52:22]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:52:22]wFMCommunicate OK [14:52:22]SAM_PROTO_GetShiftState done [14:52:22]FM_GetShiftState done [14:52:22]req_shift_opened done [14:52:22]requested_item shift.open_date is exist - process it [14:52:22]req_shift_open_date [14:52:22]req_shift_open_date done [14:52:22]produce_requested_data done [14:52:22]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260731,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [14:52:22]process_action_free close_receipt [14:52:22]json_value_free [14:52:22]json_value_free done [14:52:22]process_json_proto returns [14:52:22]Send response to host [14:52:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260731,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [14:52:22]free response buf [14:52:22]execute_script done [14:52:22]execute_script returns [14:52:22]free content buf [14:52:22]Sock 7.Close socket [14:52:22]Sock 7.Thread stoped [14:52:24]OFD Sender: No OFD packet to send [14:52:29]OFD Sender: No OFD packet to send [14:52:34]OFD Sender: No OFD packet to send [14:52:39]OFD Sender: No OFD packet to send [14:52:44]OFD Sender: No OFD packet to send [14:52:49]OFD Sender: No OFD packet to send [14:52:54]OFD Sender: No OFD packet to send [14:52:59]OFD Sender: No OFD packet to send [14:53:04]OFD Sender: No OFD packet to send [14:53:09]OFD Sender: No OFD packet to send [14:53:14]OFD Sender: No OFD packet to send [14:53:19]OFD Sender: No OFD packet to send [14:53:24]OFD Sender: No OFD packet to send [14:53:29]OFD Sender: No OFD packet to send [14:53:33]accept exits with 9 [14:53:33]New connection [14:53:33]New thread 3066473828 created [14:53:33]Thread 3066617188 joined [14:53:33]Waiting for new connection... [14:53:33] Sock 9.Parse request [14:53:33]Sock 9.Check first char [14:53:33]Sock 9.First char is OK [14:53:33]request: POST /json_proto HTTP/1.0 [14:53:33]Method: POST [14:53:33]URL: /json_proto [14:53:33]Method is POST - this is cgi request [14:53:33]url: /json_proto [14:53:33]query_string will be loaded in cgi processing [14:53:33]execute_cgi json_proto POST (null) [14:53:33]execute_cgi path=json_proto method=POST [14:53:33]POST find Content-Length [14:53:33]Host: 172.17.55.133:8080 [14:53:33]Content-Length: 683 [14:53:33]Content-Type: application/json [14:53:33] [14:53:33]POST finish read [14:53:33]Found Content-Length = 683 [14:53:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036283", "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" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:33]execute_script... [14:53: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)1036283", "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" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:33]POST & json_proto [14:53:33]process_json_proto [14:53:33]json parsed OK: [14:53:33]protocol is kg_v1.0 [14:53:33]action value=close_receipt [14:53:33]process_action close_receipt [14:53:33]cmd_close_receipt [14:53:33]MH_GetDate [14:53:33]Write to MH i2c: F0 00 00 5D 8F DB [14:53:33]Write i2c OK [14:53:33]MH_I2C_Read... [14:53:33]Read from MH i2c: F0 [14:53:33]MH_I2C_Read... [14:53:33]Read from MH i2c: F0 09 00 [14:53:33]MH_I2C_Read... [14:53:33]Read from MH i2c: F0 09 00 5D 8F 00 F3 0A C2 66 34 48 D8 65 C2 [14:53:33]GetLastDocTimeStamp 1723992742 [14:53:33]current date 1723992819 [14:53:33]FM_GetShiftState [14:53:33]SAM_PROTO_GetShiftState [14:53:33]wFMCommunicate request_size=4 [14:53:33]MH_SAM_APDU [14:53:33]CAPDU: 80 13 01 00 [14:53:33]Write to MH i2c: E2 08 00 5E 8F 80 13 01 00 00 00 00 00 6A [14:53:33]Write i2c OK [14:53:33]MH_I2C_Read... [14:53:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:33]Read from MH i2c: E2 [14:53:33]MH_I2C_Read... [14:53:33]Read from MH i2c: E2 0E 00 [14:53:33]MH_I2C_Read... [14:53:33]Read from MH i2c: E2 0E 00 5E 8F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A7 [14:53:33]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:53:33]wFMCommunicate OK [14:53:33]SAM_PROTO_GetShiftState done [14:53:33]FM_GetShiftState done [14:53:33]opened in 1723940556 [14:53:33]opened+sec_in_day 1724026956 [14:53:33]quantity*price = 300064 [14:53:33]sum+1 = 300066 [14:53:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 290 18.08.2024 14:53 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260732 ФПД: 49887734473295 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T145339&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260732&fm=49887734473295&tin=02508201610067®Number=0000000000091865&sum=300000 [14:53:34]StoreToDocumentArchive [14:53:34]shift 449 fd 260732 [14:53:34]save to /storage/0449/doc_00260732 [14:53:34]save last doc name /storage/0449/doc_00260732 to /storage/kkm_last_doc_name [14:53:34]save OK [14:53:34]Clear old archive folders... [14:53:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:53:34]tlvbuf is 00451330 [14:53:34]SAM_PROTO_ClearQueue [14:53:34]wFMCommunicate request_size=4 [14:53:34]MH_SAM_APDU [14:53:34]CAPDU: 80 09 00 00 [14:53:34]Write to MH i2c: E2 08 00 6B 8F 80 09 00 00 00 00 00 00 6C [14:53:34]Write i2c OK [14:53:34]MH_I2C_Read... [14:53:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:35]Read from MH i2c: E2 [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: E2 03 00 [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: E2 03 00 6B 8F 00 90 00 6E [14:53:35]RAPDU: 90 00 [14:53:35]wFMCommunicate OK [14:53:35]SAM_PROTO_ClearQueue done [14:53:35]KKMCreateOFDPacket [14:53:35]OFDProtocolAddRootSTLVToBuf [14:53:35]FM_MakeSignedData [14:53:35]FM_MakeSignedData [14:53:35]SAM_PROTO_SignData [14:53:35]wFMCommunicate request_size=4 [14:53:35]MH_SAM_APDU [14:53:35]CAPDU: 80 0D 01 02 [14:53:35]Write to MH i2c: E2 08 00 6C 8F 80 0D 01 02 00 00 00 00 74 [14:53:35]Write i2c OK [14:53:35]MH_I2C_Read... [14:53:35]OFD Sender: No OFD packet to send [14:53:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:35]Read from MH i2c: E2 [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: E2 03 00 [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: E2 03 00 6C 8F 00 90 00 6F [14:53:35]RAPDU: 90 00 [14:53:35]wFMCommunicate OK [14:53:35]wFMCommunicate request_size=255 [14:53:35]MH_SAM_APDU [14:53: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 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 22 01 00 00 F4 03 04 00 F3 0A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7C FA 03 00 35 04 06 00 2D [14:53:35]Write to MH i2c: E2 02 01 6D 8F 80 0D 02 02 FA 00 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 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 22 01 00 00 F4 03 04 00 F3 0A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7C FA 03 00 35 04 06 00 2D 00 00 E2 [14:53:35]Write i2c OK [14:53:35]MH_I2C_Read... [14:53:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:35]Read from MH i2c: E2 [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: E2 03 00 [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: E2 03 00 6D 8F 00 90 00 70 [14:53:35]RAPDU: 90 00 [14:53:35]wFMCommunicate OK [14:53:35]wFMCommunicate request_size=10 [14:53:35]MH_SAM_APDU [14:53:35]CAPDU: 80 0D 02 02 05 5F 64 B1 22 4F [14:53:35]Write to MH i2c: E2 0D 00 6E 8F 80 0D 02 02 05 00 5F 64 B1 22 4F 00 00 66 [14:53:35]Write i2c OK [14:53:35]MH_I2C_Read... [14:53:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:35]Read from MH i2c: E2 [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: E2 03 00 [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: E2 03 00 6E 8F 00 90 00 71 [14:53:35]RAPDU: 90 00 [14:53:35]wFMCommunicate OK [14:53:35]wFMCommunicate request_size=4 [14:53:35]MH_SAM_APDU [14:53:35]CAPDU: 80 0D 03 02 [14:53:35]Write to MH i2c: E2 08 00 6F 8F 80 0D 03 02 00 00 00 00 79 [14:53:35]Write i2c OK [14:53:35]MH_I2C_Read... [14:53:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:35]Read from MH i2c: E2 [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: E2 0B 00 [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: E2 0B 00 6F 8F 00 D8 AD 1D 28 FB 80 90 E6 90 00 35 [14:53:35]RAPDU: D8 AD 1D 28 FB 80 90 E6 90 00 [14:53:35]wFMCommunicate OK [14:53:35]SAM_PROTO_SignData done [14:53:35]FM_MakeSignedData done [14:53:35]CreateOFDProtocolMessage [14:53:35]wFMCommunicate request_size=4 [14:53:35]MH_SAM_APDU [14:53:35]CAPDU: 80 11 00 00 [14:53:35]Write to MH i2c: E2 08 00 70 8F 80 11 00 00 00 00 00 00 79 [14:53:35]Write i2c OK [14:53:35]MH_I2C_Read... [14:53:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:35]Read from MH i2c: E2 [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: E2 17 00 [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: E2 17 00 70 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C6 [14:53:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:53:35]wFMCommunicate OK [14:53:35]CreateOFDProtocolMessage done [14:53:35]OFDSenderStorePacket 260732 [14:53:35]StoreOFDPacket docnum=260732 [14:53:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 2B 0B 07 01 3F 57 5A 03 01 00 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 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 22 01 00 00 F4 03 04 00 F3 0A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7C FA 03 00 35 04 06 00 2D 5F 64 B1 22 4F D8 AD 1D 28 FB 80 90 E6 [14:53:35]CheckFolder [14:53:35]dirname=/storage/ofd_packets [14:53:35]CheckFolder done [14:53:35]ProducePacketName [14:53:35]name=ofd_packets/00260732 [14:53:35]NVStorageSaveData ofd_packets/00260732 [14:53:35]File name is /storage/ofd_packets/00260732 [14:53:35]Write 301 bytes [14:53:35]NVStorageSaveData done [14:53:35]OFDSenderStorePacket done [14:53:35]KKMCreateOFDPacket done [14:53:35]NVStorageSaveData kkm_last_timestamp [14:53:35]File name is /storage/kkm_last_timestamp [14:53:35]Write 4 bytes [14:53:35]NVStorageSaveData done [14:53:35]ExternCall_PrintAddStr [14:53:35]wPrintStart [14:53:35]Write to MH i2c: 01 00 00 71 8F 00 [14:53:35]Write i2c OK [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: 01 [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: 01 07 00 [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: 01 07 00 71 8F 00 00 00 00 00 FF 0F 15 [14:53:35]RasterBufferAndPrint [14:53:35]line Счет N : (1)1036283 [14:53:35]line ИНН: 02508201610067 [14:53:35]line Контрольно-Кассовый Чек [14:53:35]line ПРОДАЖА [14:53:35]line ТРК (МРК, ГНК) : 23 [14:53:35]line Товар: 2710124500 [14:53:35]line Аи-95-К-5 [14:53:35]line 40.440 * 74.20 [14:53:35]line = 3000.65 [14:53:35]line НДС 12% НСП 1% [14:53:35]line > о реализуемом товаре [14:53:35]line ОКРУГЛЕНИЕ: -0.65 [14:53:35]line ИТОГО: 3000.00 [14:53:35]line Внесено: 3000.00 [14:53:35]line СДАЧА: 0.00 [14:53:35]line НСП 1% : 26.55 [14:53:35]line НДС 12% : 318.65 [14:53:35]line Наличными: 3000.00 [14:53:35]line Безнал.: 0.00 [14:53:35]line Место: АЗС № 94 "Партнер Нефть" [14:53:35]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [14:53:35]line СНО: Общий режим [14:53:35]line Чек 290 18.08.2024 14:53 [14:53:35]line Смена: 449 ФФД: 1.0 [14:53:35]line ЗНМ: 0300000099 [14:53:35]line РНМ: 0000000000091865 [14:53:35]line Версия ККМ: 001 [14:53:35]line ФМ: 0000000000871820 [14:53:35]line ФД: 260732 [14:53:35]line ФПД: 49887734473295 [14:53:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T145339&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260732&fm=49887734473295&tin=02508201610067®Number=0000000000091865&sum=300000 [14:53:35]OFD Sender: Processing packet 260732 [packets to send 192, broken 191] [14:53:35]ProducePacketName [14:53:35]name=ofd_packets/00260732 [14:53:35]OFD Sender: To server: pG, [14:53:35]CommunicateWithHost lk.salyk.kg:30040 [14:53:35]ConnectInit lk.salyk.kg [14:53:35]written 0, free lines is 4095 [14:53:35]Connected sock=10 [14:53: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 30 0F 01 00 00 2B 0B 07 01 3F 57 5A 03 01 00 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 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 22 01 00 00 F4 03 04 00 F3 0A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7C FA 03 00 35 04 06 00 2D 5F 64 B1 22 4F D8 AD 1D 28 FB 80 90 E6 [14:53: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 30 4F 00 00 00 75 12 47 00 A5 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7C FA 03 00 F4 03 04 00 47 B4 C1 66 B6 04 01 00 00 F6 9B EB EE DC BE BB 95 [14:53:36]CommunicateWithHost err = 0 [14:53:36]CheckOFDResponse [14:53:36]1017 (14) - 77093643461234 [14:53:36]1041 (16) - 0000000000871820 [14:53:36]1040 (4) - 260732 [14:53:36]1012 (4) - 18.08.2024 08:43 [14:53:36]1206 (1) - 0 [14:53:36]OFD Sender: Remove packet 260732 [14:53:36]ProducePacketName [14:53:36]name=ofd_packets/00260732 [14:53:36]NVStorageDeleteData [14:53:36]Write to MH i2c: 01 00 00 9C 8F 2B [14:53:36]Write i2c OK [14:53:36]MH_I2C_Read... [14:53:36]Read from MH i2c: 01 [14:53:36]MH_I2C_Read... [14:53:36]Read from MH i2c: 01 07 00 [14:53:36]MH_I2C_Read... [14:53:36]Read from MH i2c: 01 07 00 9C 8F 00 00 00 00 00 76 0C B4 [14:53:36]RasterBufferAndPrint [14:53:36]line [14:53:36]line [14:53:36]line [14:53:36]line [14:53:36]line [14:53:36]written 0, free lines is 3193 [14:53:36]MH_Cut [14:53:36]Write to MH i2c: D1 01 00 A3 8F 01 04 [14:53:36]Write i2c OK [14:53:36]MH_I2C_Read... [14:53:36]Read from MH i2c: D1 [14:53:36]MH_I2C_Read... [14:53:36]Read from MH i2c: D1 01 00 [14:53:36]MH_I2C_Read... [14:53:36]Read from MH i2c: D1 01 00 A3 8F 00 03 [14:53:36]Write to MH i2c: 01 00 00 A4 8F 33 [14:53:36]Write i2c OK [14:53:36]MH_I2C_Read... [14:53:36]OFD Sender: No OFD packet to send [14:53:37]*** Cut start [14:53:37]*** Purtial cut [14:53:37]*** Stage 1: CUTSNS_PIN = 1 [14:53:39]Read from MH i2c: 01 [14:53:39]MH_I2C_Read... [14:53:39]*** Stop cut motor [14:53:39]*** Cut end [14:53:39]Read from MH i2c: 01 07 00 [14:53:39]MH_I2C_Read... [14:53:39]Read from MH i2c: 01 07 00 A4 8F 00 00 00 00 00 FF 0F 48 [14:53:39]process_action close_receipt done [14:53:39]requested_data is exist [14:53:39]produce_requested_data [14:53:39]requested_item fm.sn is exist - process it [14:53:39]wFMCommunicate request_size=4 [14:53:39]MH_SAM_APDU [14:53:39]CAPDU: 80 11 00 00 [14:53:39]Write to MH i2c: E2 08 00 A5 8F 80 11 00 00 00 00 00 00 AE [14:53:39]Write i2c OK [14:53:39]MH_I2C_Read... [14:53:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:39]Read from MH i2c: E2 [14:53:39]MH_I2C_Read... [14:53:39]Read from MH i2c: E2 17 00 [14:53:39]MH_I2C_Read... [14:53:39]Read from MH i2c: E2 17 00 A5 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 FB [14:53:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:53:39]wFMCommunicate OK [14:53:39]requested_item fd.num is exist - process it [14:53:39]SAM_PROTO_GetFieldsCounters [14:53:39]wFMCommunicate request_size=4 [14:53:39]MH_SAM_APDU [14:53:39]CAPDU: 80 13 00 00 [14:53:39]Write to MH i2c: E2 08 00 A6 8F 80 13 00 00 00 00 00 00 B1 [14:53:39]Write i2c OK [14:53:39]MH_I2C_Read... [14:53:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:39]Read from MH i2c: E2 [14:53:39]MH_I2C_Read... [14:53:39]Read from MH i2c: E2 62 00 [14:53:39]MH_I2C_Read... [14:53:39]Read from MH i2c: E2 62 00 A6 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 7C FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 74 [14:53: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 7C FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:53:39]wFMCommunicate OK [14:53:39]SAM_PROTO_GetFieldsCounters done [14:53:39]requested_item shift.num is exist - process it [14:53:39]requested_item shift.opened is exist - process it [14:53:39]req_shift_opened [14:53:39]FM_GetShiftState [14:53:39]SAM_PROTO_GetShiftState [14:53:39]wFMCommunicate request_size=4 [14:53:39]MH_SAM_APDU [14:53:39]CAPDU: 80 13 01 00 [14:53:39]Write to MH i2c: E2 08 00 A7 8F 80 13 01 00 00 00 00 00 B3 [14:53:39]Write i2c OK [14:53:39]MH_I2C_Read... [14:53:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:39]Read from MH i2c: E2 [14:53:39]MH_I2C_Read... [14:53:39]Read from MH i2c: E2 0E 00 [14:53:39]MH_I2C_Read... [14:53:39]Read from MH i2c: E2 0E 00 A7 8F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F0 [14:53:39]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:53:39]wFMCommunicate OK [14:53:39]SAM_PROTO_GetShiftState done [14:53:39]FM_GetShiftState done [14:53:39]req_shift_opened done [14:53:39]requested_item shift.open_date is exist - process it [14:53:39]req_shift_open_date [14:53:39]req_shift_open_date done [14:53:39]produce_requested_data done [14:53:39]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260732,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [14:53:39]process_action_free close_receipt [14:53:39]json_value_free [14:53:39]json_value_free done [14:53:39]process_json_proto returns [14:53:39]Send response to host [14:53:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260732,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [14:53:39]free response buf [14:53:39]execute_script done [14:53:39]execute_script returns [14:53:39]free content buf [14:53:39]Sock 9.Close socket [14:53:39]Sock 9.Thread stoped [14:53:41]OFD Sender: No OFD packet to send [14:53:46]OFD Sender: No OFD packet to send [14:53:51]OFD Sender: No OFD packet to send [14:53:56]OFD Sender: No OFD packet to send [14:54:01]OFD Sender: No OFD packet to send [14:54:06]OFD Sender: No OFD packet to send [14:54:11]OFD Sender: No OFD packet to send [14:54:16]OFD Sender: No OFD packet to send [14:54:21]OFD Sender: No OFD packet to send [14:54:26]OFD Sender: No OFD packet to send [14:54:31]OFD Sender: No OFD packet to send [14:54:36]OFD Sender: No OFD packet to send [14:54:41]OFD Sender: No OFD packet to send [14:54:46]OFD Sender: No OFD packet to send [14:54:51]OFD Sender: No OFD packet to send [14:54:56]OFD Sender: No OFD packet to send [14:55:01]OFD Sender: No OFD packet to send [14:55:06]OFD Sender: No OFD packet to send [14:55:11]OFD Sender: No OFD packet to send [14:55:12]accept exits with 7 [14:55:12]New connection [14:55:12]New thread 3066617188 created [14:55:12]Thread 3066473828 joined [14:55:12]Waiting for new connection... [14:55:12] Sock 7.Parse request [14:55:12]Sock 7.Check first char [14:55:12]Sock 7.First char is OK [14:55:12]request: POST /json_proto HTTP/1.0 [14:55:12]Method: POST [14:55:12]URL: /json_proto [14:55:12]Method is POST - this is cgi request [14:55:12]url: /json_proto [14:55:12]query_string will be loaded in cgi processing [14:55:12]execute_cgi json_proto POST (null) [14:55:12]execute_cgi path=json_proto method=POST [14:55:12]POST find Content-Length [14:55:12]Host: 172.17.55.133:8080 [14:55:12]Content-Length: 809 [14:55:12]Content-Type: application/json [14:55:12] [14:55:12]POST finish read [14:55:12]Found Content-Length = 809 [14:55:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 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\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3492840.4201810", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:12]execute_script... [14:55:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 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\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3492840.4201810", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:12]POST & json_proto [14:55:12]process_json_proto [14:55:12]json parsed OK: [14:55:12]protocol is kg_v1.0 [14:55:12]action value=close_receipt [14:55:12]process_action close_receipt [14:55:12]cmd_close_receipt [14:55:12]MH_GetDate [14:55:12]Write to MH i2c: F0 00 00 A8 8F 26 [14:55:12]Write i2c OK [14:55:12]MH_I2C_Read... [14:55:12]Read from MH i2c: F0 [14:55:12]MH_I2C_Read... [14:55:12]Read from MH i2c: F0 09 00 [14:55:12]MH_I2C_Read... [14:55:12]Read from MH i2c: F0 09 00 A8 8F 00 56 0B C2 66 34 48 D8 65 71 [14:55:12]GetLastDocTimeStamp 1723992819 [14:55:12]current date 1723992918 [14:55:12]FM_GetShiftState [14:55:12]SAM_PROTO_GetShiftState [14:55:12]wFMCommunicate request_size=4 [14:55:12]MH_SAM_APDU [14:55:12]CAPDU: 80 13 01 00 [14:55:12]Write to MH i2c: E2 08 00 A9 8F 80 13 01 00 00 00 00 00 B5 [14:55:12]Write i2c OK [14:55:12]MH_I2C_Read... [14:55:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:12]Read from MH i2c: E2 [14:55:12]MH_I2C_Read... [14:55:12]Read from MH i2c: E2 0E 00 [14:55:12]MH_I2C_Read... [14:55:12]Read from MH i2c: E2 0E 00 A9 8F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F2 [14:55:12]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:55:12]wFMCommunicate OK [14:55:12]SAM_PROTO_GetShiftState done [14:55:12]FM_GetShiftState done [14:55:12]opened in 1723940556 [14:55:12]opened+sec_in_day 1724026956 [14:55:12]quantity*price = 0 [14:55:12]sum+1 = 1 [14:55:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 291 18.08.2024 14:55 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: Топливные Талоны 3492840.4201810 ФМ: 0000000000871820 ФД: 260733 ФПД: 8637489763767 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T145518&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260733&fm=8637489763767&tin=02508201610067®Number=0000000000091865&sum=0 [14:55:13]StoreToDocumentArchive [14:55:13]shift 449 fd 260733 [14:55:13]save to /storage/0449/doc_00260733 [14:55:13]save last doc name /storage/0449/doc_00260733 to /storage/kkm_last_doc_name [14:55:13]save OK [14:55:13]Clear old archive folders... [14:55:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:55:13]tlvbuf is 00540940 [14:55:13]SAM_PROTO_ClearQueue [14:55:13]wFMCommunicate request_size=4 [14:55:13]MH_SAM_APDU [14:55:13]CAPDU: 80 09 00 00 [14:55:13]Write to MH i2c: E2 08 00 B6 8F 80 09 00 00 00 00 00 00 B7 [14:55:13]Write i2c OK [14:55:13]MH_I2C_Read... [14:55:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:13]Read from MH i2c: E2 [14:55:13]MH_I2C_Read... [14:55:13]Read from MH i2c: E2 03 00 [14:55:13]MH_I2C_Read... [14:55:13]Read from MH i2c: E2 03 00 B6 8F 00 90 00 B9 [14:55:13]RAPDU: 90 00 [14:55:13]wFMCommunicate OK [14:55:13]SAM_PROTO_ClearQueue done [14:55:13]KKMCreateOFDPacket [14:55:13]OFDProtocolAddRootSTLVToBuf [14:55:13]FM_MakeSignedData [14:55:13]FM_MakeSignedData [14:55:13]SAM_PROTO_SignData [14:55:13]wFMCommunicate request_size=4 [14:55:13]MH_SAM_APDU [14:55:13]CAPDU: 80 0D 01 02 [14:55:13]Write to MH i2c: E2 08 00 B7 8F 80 0D 01 02 00 00 00 00 BF [14:55:13]Write i2c OK [14:55:13]MH_I2C_Read... [14:55:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:13]Read from MH i2c: E2 [14:55:13]MH_I2C_Read... [14:55:13]Read from MH i2c: E2 03 00 [14:55:13]MH_I2C_Read... [14:55:13]Read from MH i2c: E2 03 00 B7 8F 00 90 00 BA [14:55:13]RAPDU: 90 00 [14:55:13]wFMCommunicate OK [14:55:13]wFMCommunicate request_size=255 [14:55:13]MH_SAM_APDU [14:55:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 23 01 00 00 F4 03 04 00 56 0B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7D FA 03 00 35 04 06 00 07 [14:55:13]Write to MH i2c: E2 02 01 B8 8F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 56 0B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7D FA 03 00 35 04 06 00 07 00 00 89 [14:55:13]Write i2c OK [14:55:13]MH_I2C_Read... [14:55:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:14]Read from MH i2c: E2 [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: E2 03 00 [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: E2 03 00 B8 8F 00 90 00 BB [14:55:14]RAPDU: 90 00 [14:55:14]wFMCommunicate OK [14:55:14]wFMCommunicate request_size=10 [14:55:14]MH_SAM_APDU [14:55:14]CAPDU: 80 0D 02 02 05 DB 12 82 55 B7 [14:55:14]Write to MH i2c: E2 0D 00 B9 8F 80 0D 02 02 05 00 DB 12 82 55 B7 00 00 47 [14:55:14]Write i2c OK [14:55:14]MH_I2C_Read... [14:55:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:14]Read from MH i2c: E2 [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: E2 03 00 [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: E2 03 00 B9 8F 00 90 00 BC [14:55:14]RAPDU: 90 00 [14:55:14]wFMCommunicate OK [14:55:14]wFMCommunicate request_size=4 [14:55:14]MH_SAM_APDU [14:55:14]CAPDU: 80 0D 03 02 [14:55:14]Write to MH i2c: E2 08 00 BA 8F 80 0D 03 02 00 00 00 00 C4 [14:55:14]Write i2c OK [14:55:14]MH_I2C_Read... [14:55:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:14]Read from MH i2c: E2 [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: E2 0B 00 [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: E2 0B 00 BA 8F 00 B6 E5 79 CC 0D D2 DD 45 90 00 A6 [14:55:14]RAPDU: B6 E5 79 CC 0D D2 DD 45 90 00 [14:55:14]wFMCommunicate OK [14:55:14]SAM_PROTO_SignData done [14:55:14]FM_MakeSignedData done [14:55:14]CreateOFDProtocolMessage [14:55:14]wFMCommunicate request_size=4 [14:55:14]MH_SAM_APDU [14:55:14]CAPDU: 80 11 00 00 [14:55:14]Write to MH i2c: E2 08 00 BB 8F 80 11 00 00 00 00 00 00 C4 [14:55:14]Write i2c OK [14:55:14]MH_I2C_Read... [14:55:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:14]Read from MH i2c: E2 [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: E2 17 00 [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: E2 17 00 BB 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 11 [14:55:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:55:14]wFMCommunicate OK [14:55:14]CreateOFDProtocolMessage done [14:55:14]OFDSenderStorePacket 260733 [14:55:14]StoreOFDPacket docnum=260733 [14:55:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 10 EE 07 01 7E BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 23 01 00 00 F4 03 04 00 56 0B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7D FA 03 00 35 04 06 00 07 DB 12 82 55 B7 B6 E5 79 CC 0D D2 DD 45 [14:55:14]CheckFolder [14:55:14]dirname=/storage/ofd_packets [14:55:14]CheckFolder done [14:55:14]ProducePacketName [14:55:14]name=ofd_packets/00260733 [14:55:14]NVStorageSaveData ofd_packets/00260733 [14:55:14]File name is /storage/ofd_packets/00260733 [14:55:14]Write 301 bytes [14:55:14]NVStorageSaveData done [14:55:14]OFDSenderStorePacket done [14:55:14]KKMCreateOFDPacket done [14:55:14]NVStorageSaveData kkm_last_timestamp [14:55:14]File name is /storage/kkm_last_timestamp [14:55:14]Write 4 bytes [14:55:14]NVStorageSaveData done [14:55:14]ExternCall_PrintAddStr [14:55:14]wPrintStart [14:55:14]Write to MH i2c: 01 00 00 BC 8F 4B [14:55:14]Write i2c OK [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: 01 [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: 01 07 00 [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: 01 07 00 BC 8F 00 00 00 00 00 FF 0F 60 [14:55:14]RasterBufferAndPrint [14:55:14]line Счет N : (1)1036284 [14:55:14]line ИНН: 02508201610067 [14:55:14]line Контрольно-Кассовый Чек [14:55:14]line ПРОДАЖА [14:55:14]line ТРК (МРК, ГНК) : 42 [14:55:14]line Товар: 2710124130 [14:55:14]line Аи-92-К-5 [14:55:14]line 15.000 * 0.00 [14:55:14]line = 0.00 [14:55:14]line НДС 12% НСП 1% [14:55:14]line > о реализуемом товаре [14:55:14]line ИТОГО: 0.00 [14:55:14]line НСП 1% : 0.00 [14:55:14]line НДС 12% : 0.00 [14:55:14]line Наличными: 0.00 [14:55:14]line Безнал.: 0.00 [14:55:14]line Место: АЗС № 94 "Партнер Нефть" [14:55:14]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [14:55:14]line СНО: Общий режим [14:55:14]line Чек 291 18.08.2024 14:55 [14:55:14]line Смена: 449 ФФД: 1.0 [14:55:14]line ЗНМ: 0300000099 [14:55:14]line РНМ: 0000000000091865 [14:55:14]line Версия ККМ: 001 [14:55:14]line Талоны: Топливные Талоны [14:55:14]line 3492840.4201810 [14:55:14]line ФМ: 0000000000871820 [14:55:14]line ФД: 260733 [14:55:14]line ФПД: 8637489763767 [14:55:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T145518&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260733&fm=8637489763767&tin=02508201610067®Number=0000000000091865&sum=0 [14:55:14]written 0, free lines is 4095 [14:55:14]OFD Sender: Processing packet 260733 [packets to send 192, broken 191] [14:55:14]ProducePacketName [14:55:14]name=ofd_packets/00260733 [14:55:14]OFD Sender: To server: pG, [14:55:14]CommunicateWithHost lk.salyk.kg:30040 [14:55:14]ConnectInit lk.salyk.kg [14:55:14]Connected sock=10 [14:55: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 30 0F 01 00 00 10 EE 07 01 7E BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 23 01 00 00 F4 03 04 00 56 0B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7D FA 03 00 35 04 06 00 07 DB 12 82 55 B7 B6 E5 79 CC 0D D2 DD 45 [14:55: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 30 4F 00 00 00 C1 AC 47 00 EB 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 7D FA 03 00 F4 03 04 00 AA B4 C1 66 B6 04 01 00 00 FD 10 4D 5D FD 08 08 9C [14:55:14]CommunicateWithHost err = 0 [14:55:14]CheckOFDResponse [14:55:14]1017 (14) - 77093643461234 [14:55:14]1041 (16) - 0000000000871820 [14:55:14]1040 (4) - 260733 [14:55:14]1012 (4) - 18.08.2024 08:45 [14:55:14]1206 (1) - 0 [14:55:14]OFD Sender: Remove packet 260733 [14:55:14]ProducePacketName [14:55:14]name=ofd_packets/00260733 [14:55:14]NVStorageDeleteData [14:55:14]Write to MH i2c: 01 00 00 E6 8F 75 [14:55:14]Write i2c OK [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: 01 [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: 01 07 00 [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: 01 07 00 E6 8F 00 00 00 00 00 96 0C 1E [14:55:14]RasterBufferAndPrint [14:55:14]line [14:55:14]line [14:55:14]line [14:55:14]line [14:55:14]line [14:55:14]written 0, free lines is 3226 [14:55:14]MH_Cut [14:55:14]Write to MH i2c: D1 01 00 ED 8F 01 4E [14:55:14]Write i2c OK [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: D1 [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: D1 01 00 [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: D1 01 00 ED 8F 00 4D [14:55:14]Write to MH i2c: 01 00 00 EE 8F 7D [14:55:14]Write i2c OK [14:55:14]MH_I2C_Read... [14:55:15]OFD Sender: No OFD packet to send [14:55:15]*** Cut start [14:55:15]*** Purtial cut [14:55:15]*** Stage 1: CUTSNS_PIN = 1 [14:55:17]Read from MH i2c: 01 [14:55:17]MH_I2C_Read... [14:55:17]*** Stop cut motor [14:55:17]*** Cut end [14:55:17]Read from MH i2c: 01 07 00 [14:55:17]MH_I2C_Read... [14:55:17]Read from MH i2c: 01 07 00 EE 8F 00 00 00 00 00 FF 0F 92 [14:55:17]process_action close_receipt done [14:55:17]requested_data is exist [14:55:17]produce_requested_data [14:55:17]requested_item fm.sn is exist - process it [14:55:17]wFMCommunicate request_size=4 [14:55:17]MH_SAM_APDU [14:55:17]CAPDU: 80 11 00 00 [14:55:17]Write to MH i2c: E2 08 00 EF 8F 80 11 00 00 00 00 00 00 F8 [14:55:17]Write i2c OK [14:55:17]MH_I2C_Read... [14:55:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:18]Read from MH i2c: E2 [14:55:18]MH_I2C_Read... [14:55:18]Read from MH i2c: E2 17 00 [14:55:18]MH_I2C_Read... [14:55:18]Read from MH i2c: E2 17 00 EF 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 45 [14:55:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:55:18]wFMCommunicate OK [14:55:18]requested_item fd.num is exist - process it [14:55:18]SAM_PROTO_GetFieldsCounters [14:55:18]wFMCommunicate request_size=4 [14:55:18]MH_SAM_APDU [14:55:18]CAPDU: 80 13 00 00 [14:55:18]Write to MH i2c: E2 08 00 F0 8F 80 13 00 00 00 00 00 00 FB [14:55:18]Write i2c OK [14:55:18]MH_I2C_Read... [14:55:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:18]Read from MH i2c: E2 [14:55:18]MH_I2C_Read... [14:55:18]Read from MH i2c: E2 62 00 [14:55:18]MH_I2C_Read... [14:55:18]Read from MH i2c: E2 62 00 F0 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 7D FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 C2 [14:55: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 7D FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:55:18]wFMCommunicate OK [14:55:18]SAM_PROTO_GetFieldsCounters done [14:55:18]requested_item shift.num is exist - process it [14:55:18]requested_item shift.opened is exist - process it [14:55:18]req_shift_opened [14:55:18]FM_GetShiftState [14:55:18]SAM_PROTO_GetShiftState [14:55:18]wFMCommunicate request_size=4 [14:55:18]MH_SAM_APDU [14:55:18]CAPDU: 80 13 01 00 [14:55:18]Write to MH i2c: E2 08 00 F1 8F 80 13 01 00 00 00 00 00 FD [14:55:18]Write i2c OK [14:55:18]MH_I2C_Read... [14:55:18]Read from MH i2c: E2 [14:55:18]MH_I2C_Read... [14:55:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:18]Read from MH i2c: E2 0E 00 [14:55:18]MH_I2C_Read... [14:55:18]Read from MH i2c: E2 0E 00 F1 8F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 3A [14:55:18]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:55:18]wFMCommunicate OK [14:55:18]SAM_PROTO_GetShiftState done [14:55:18]FM_GetShiftState done [14:55:18]req_shift_opened done [14:55:18]requested_item shift.open_date is exist - process it [14:55:18]req_shift_open_date [14:55:18]req_shift_open_date done [14:55:18]produce_requested_data done [14:55:18]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260733,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [14:55:18]process_action_free close_receipt [14:55:18]json_value_free [14:55:18]json_value_free done [14:55:18]process_json_proto returns [14:55:18]Send response to host [14:55:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260733,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [14:55:18]free response buf [14:55:18]execute_script done [14:55:18]execute_script returns [14:55:18]free content buf [14:55:18]Sock 7.Close socket [14:55:18]Sock 7.Thread stoped [14:55:20]OFD Sender: No OFD packet to send [14:55:25]OFD Sender: No OFD packet to send [14:55:30]OFD Sender: No OFD packet to send [14:55:35]OFD Sender: No OFD packet to send [14:55:40]OFD Sender: No OFD packet to send [14:55:45]OFD Sender: No OFD packet to send [14:55:50]OFD Sender: No OFD packet to send [14:55:55]OFD Sender: No OFD packet to send [14:56:00]OFD Sender: No OFD packet to send [14:56:05]OFD Sender: No OFD packet to send [14:56:10]OFD Sender: No OFD packet to send [14:56:15]OFD Sender: No OFD packet to send [14:56:20]OFD Sender: No OFD packet to send [14:56:24]accept exits with 9 [14:56:24]New connection [14:56:24]New thread 3066473828 created [14:56:24]Thread 3066617188 joined [14:56:24]Waiting for new connection... [14:56:24] Sock 9.Parse request [14:56:24]Sock 9.Check first char [14:56:24]Sock 9.First char is OK [14:56:24]request: POST /json_proto HTTP/1.0 [14:56:24]Method: POST [14:56:24]URL: /json_proto [14:56:24]Method is POST - this is cgi request [14:56:24]url: /json_proto [14:56:24]query_string will be loaded in cgi processing [14:56:24]execute_cgi json_proto POST (null) [14:56:24]execute_cgi path=json_proto method=POST [14:56:24]POST find Content-Length [14:56:24]Host: 172.17.55.133:8080 [14:56:24]Content-Length: 820 [14:56:24]Content-Type: application/json [14:56:24] [14:56:24]POST finish read [14:56:24]Found Content-Length = 820 [14:56:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:24]execute_script... [14:56: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)1036285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:24]POST & json_proto [14:56:24]process_json_proto [14:56:24]json parsed OK: [14:56:24]protocol is kg_v1.0 [14:56:24]action value=close_receipt [14:56:24]process_action close_receipt [14:56:24]cmd_close_receipt [14:56:24]MH_GetDate [14:56:24]Write to MH i2c: F0 00 00 F2 8F 70 [14:56:24]Write i2c OK [14:56:24]MH_I2C_Read... [14:56:24]Read from MH i2c: F0 [14:56:24]MH_I2C_Read... [14:56:24]Read from MH i2c: F0 09 00 [14:56:24]MH_I2C_Read... [14:56:24]Read from MH i2c: F0 09 00 F2 8F 00 9E 0B C2 66 34 48 D8 65 03 [14:56:24]GetLastDocTimeStamp 1723992918 [14:56:24]current date 1723992990 [14:56:24]FM_GetShiftState [14:56:24]SAM_PROTO_GetShiftState [14:56:24]wFMCommunicate request_size=4 [14:56:24]MH_SAM_APDU [14:56:24]CAPDU: 80 13 01 00 [14:56:24]Write to MH i2c: E2 08 00 F3 8F 80 13 01 00 00 00 00 00 FF [14:56:24]Write i2c OK [14:56:24]MH_I2C_Read... [14:56:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:24]Read from MH i2c: E2 [14:56:24]MH_I2C_Read... [14:56:24]Read from MH i2c: E2 0E 00 [14:56:24]MH_I2C_Read... [14:56:24]Read from MH i2c: E2 0E 00 F3 8F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 3C [14:56:24]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:56:24]wFMCommunicate OK [14:56:24]SAM_PROTO_GetShiftState done [14:56:24]FM_GetShiftState done [14:56:24]opened in 1723940556 [14:56:24]opened+sec_in_day 1724026956 [14:56:24]quantity*price = 150041 [14:56:24]sum+1 = 150042 [14:56:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.41 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 0.00 Безнал.: 1500.41 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 292 18.08.2024 14:56 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871820 ФД: 260734 ФПД: 259170422216589 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T145630&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260734&fm=259170422216589&tin=02508201610067®Number=0000000000091865&sum=150041 [14:56:25]StoreToDocumentArchive [14:56:25]shift 449 fd 260734 [14:56:25]save to /storage/0449/doc_00260734 [14:56:25]save last doc name /storage/0449/doc_00260734 to /storage/kkm_last_doc_name [14:56:25]save OK [14:56:25]Clear old archive folders... [14:56:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:56:25]tlvbuf is 00433030 [14:56:25]SAM_PROTO_ClearQueue [14:56:25]wFMCommunicate request_size=4 [14:56:25]MH_SAM_APDU [14:56:25]CAPDU: 80 09 00 00 [14:56:25]Write to MH i2c: E2 08 00 00 90 80 09 00 00 00 00 00 00 02 [14:56:25]Write i2c OK [14:56:25]MH_I2C_Read... [14:56:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:25]Read from MH i2c: E2 [14:56:25]MH_I2C_Read... [14:56:25]Read from MH i2c: E2 03 00 [14:56:25]MH_I2C_Read... [14:56:25]Read from MH i2c: E2 03 00 00 90 00 90 00 04 [14:56:25]RAPDU: 90 00 [14:56:25]wFMCommunicate OK [14:56:25]SAM_PROTO_ClearQueue done [14:56:25]KKMCreateOFDPacket [14:56:25]OFDProtocolAddRootSTLVToBuf [14:56:25]FM_MakeSignedData [14:56:25]FM_MakeSignedData [14:56:25]SAM_PROTO_SignData [14:56:25]wFMCommunicate request_size=4 [14:56:25]MH_SAM_APDU [14:56:25]CAPDU: 80 0D 01 02 [14:56:25]Write to MH i2c: E2 08 00 01 90 80 0D 01 02 00 00 00 00 0A [14:56:25]Write i2c OK [14:56:25]MH_I2C_Read... [14:56:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:25]Read from MH i2c: E2 [14:56:25]MH_I2C_Read... [14:56:25]Read from MH i2c: E2 03 00 [14:56:25]MH_I2C_Read... [14:56:25]Read from MH i2c: E2 03 00 01 90 00 90 00 05 [14:56:25]RAPDU: 90 00 [14:56:25]wFMCommunicate OK [14:56:25]wFMCommunicate request_size=255 [14:56:25]MH_SAM_APDU [14:56:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 9E 0B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7E FA 03 00 35 04 06 00 EB [14:56:25]Write to MH i2c: E2 02 01 02 90 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 9E 0B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7E FA 03 00 35 04 06 00 EB 00 00 6E [14:56:25]Write i2c OK [14:56:25]MH_I2C_Read... [14:56:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:26]Read from MH i2c: E2 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: E2 03 00 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: E2 03 00 02 90 00 90 00 06 [14:56:26]RAPDU: 90 00 [14:56:26]wFMCommunicate OK [14:56:26]wFMCommunicate request_size=10 [14:56:26]MH_SAM_APDU [14:56:26]CAPDU: 80 0D 02 02 05 B6 D0 F3 D7 8D [14:56:26]Write to MH i2c: E2 0D 00 03 90 80 0D 02 02 05 00 B6 D0 F3 D7 8D 00 00 F4 [14:56:26]Write i2c OK [14:56:26]MH_I2C_Read... [14:56:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:26]Read from MH i2c: E2 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: E2 03 00 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: E2 03 00 03 90 00 90 00 07 [14:56:26]RAPDU: 90 00 [14:56:26]wFMCommunicate OK [14:56:26]wFMCommunicate request_size=4 [14:56:26]MH_SAM_APDU [14:56:26]CAPDU: 80 0D 03 02 [14:56:26]Write to MH i2c: E2 08 00 04 90 80 0D 03 02 00 00 00 00 0F [14:56:26]Write i2c OK [14:56:26]MH_I2C_Read... [14:56:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:26]Read from MH i2c: E2 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: E2 0B 00 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: E2 0B 00 04 90 00 22 3B 43 CE A6 ED 80 2F 90 00 C0 [14:56:26]RAPDU: 22 3B 43 CE A6 ED 80 2F 90 00 [14:56:26]wFMCommunicate OK [14:56:26]SAM_PROTO_SignData done [14:56:26]FM_MakeSignedData done [14:56:26]CreateOFDProtocolMessage [14:56:26]wFMCommunicate request_size=4 [14:56:26]MH_SAM_APDU [14:56:26]CAPDU: 80 11 00 00 [14:56:26]Write to MH i2c: E2 08 00 05 90 80 11 00 00 00 00 00 00 0F [14:56:26]Write i2c OK [14:56:26]MH_I2C_Read... [14:56:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:26]Read from MH i2c: E2 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: E2 17 00 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: E2 17 00 05 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 5C [14:56:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:56:26]wFMCommunicate OK [14:56:26]CreateOFDProtocolMessage done [14:56:26]OFDSenderStorePacket 260734 [14:56:26]StoreOFDPacket docnum=260734 [14:56:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 B7 DC 07 01 2C 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 9E 0B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7E FA 03 00 35 04 06 00 EB B6 D0 F3 D7 8D 22 3B 43 CE A6 ED 80 2F [14:56:26]CheckFolder [14:56:26]dirname=/storage/ofd_packets [14:56:26]CheckFolder done [14:56:26]ProducePacketName [14:56:26]name=ofd_packets/00260734 [14:56:26]NVStorageSaveData ofd_packets/00260734 [14:56:26]File name is /storage/ofd_packets/00260734 [14:56:26]Write 301 bytes [14:56:26]NVStorageSaveData done [14:56:26]OFDSenderStorePacket done [14:56:26]KKMCreateOFDPacket done [14:56:26]NVStorageSaveData kkm_last_timestamp [14:56:26]File name is /storage/kkm_last_timestamp [14:56:26]Write 4 bytes [14:56:26]NVStorageSaveData done [14:56:26]ExternCall_PrintAddStr [14:56:26]wPrintStart [14:56:26]Write to MH i2c: 01 00 00 06 90 96 [14:56:26]Write i2c OK [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: 01 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: 01 07 00 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: 01 07 00 06 90 00 00 00 00 00 FF 0F AB [14:56:26]RasterBufferAndPrint [14:56:26]line Счет N : (1)1036285 [14:56:26]line ИНН: 02508201610067 [14:56:26]line Контрольно-Кассовый Чек [14:56:26]line ПРОДАЖА [14:56:26]line ТРК (МРК, ГНК) : 12 [14:56:26]line Товар: 2710124130 [14:56:26]line Аи-92-К-5 [14:56:26]line 22.130 * 67.80 [14:56:26]line = 1500.41 [14:56:26]line НДС 12% НСП 1% [14:56:26]line > о реализуемом товаре [14:56:26]line ИТОГО: 1500.41 [14:56:26]line НСП 1% : 13.28 [14:56:26]line НДС 12% : 159.34 [14:56:26]line Наличными: 0.00 [14:56:26]line Безнал.: 1500.41 [14:56:26]line Место: АЗС № 94 "Партнер Нефть" [14:56:26]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [14:56:26]line СНО: Общий режим [14:56:26]line Чек 292 18.08.2024 14:56 [14:56:26]line Смена: 449 ФФД: 1.0 [14:56:26]line ЗНМ: 0300000099 [14:56:26]line РНМ: 0000000000091865 [14:56:26]line Версия ККМ: 001 [14:56:26]line Платежная система: Бакай Банк [14:56:26]line ФМ: 0000000000871820 [14:56:26]line ФД: 260734 [14:56:26]line ФПД: 259170422216589 [14:56:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T145630&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260734&fm=259170422216589&tin=02508201610067®Number=0000000000091865&sum=150041 [14:56:26]OFD Sender: Processing packet 260734 [packets to send 192, broken 191] [14:56:26]ProducePacketName [14:56:26]name=ofd_packets/00260734 [14:56:26]OFD Sender: To server: pG, [14:56:26]CommunicateWithHost lk.salyk.kg:30040 [14:56:26]ConnectInit lk.salyk.kg [14:56:26]written 0, free lines is 4095 [14:56:26]Connected sock=11 [14:56: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 30 0F 01 00 00 B7 DC 07 01 2C 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 9E 0B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7E FA 03 00 35 04 06 00 EB B6 D0 F3 D7 8D 22 3B 43 CE A6 ED 80 2F [14:56: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 30 4F 00 00 00 D7 15 47 00 3C 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 30 10 04 04 00 7E FA 03 00 F4 03 04 00 F2 B4 C1 66 B6 04 01 00 00 1E D4 EF 13 F9 7E 89 6A [14:56:27]CommunicateWithHost err = 0 [14:56:27]CheckOFDResponse [14:56:27]1017 (14) - 77093643461234 [14:56:27]1041 (16) - 0000000000871820 [14:56:27]1040 (4) - 260734 [14:56:27]1012 (4) - 18.08.2024 08:46 [14:56:27]1206 (1) - 0 [14:56:27]OFD Sender: Remove packet 260734 [14:56:27]ProducePacketName [14:56:27]name=ofd_packets/00260734 [14:56:27]NVStorageDeleteData [14:56:27]Write to MH i2c: 01 00 00 30 90 C0 [14:56:27]Write i2c OK [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: 01 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: 01 07 00 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: 01 07 00 30 90 00 00 00 00 00 85 0C 58 [14:56:27]RasterBufferAndPrint [14:56:27]line [14:56:27]line [14:56:27]line [14:56:27]line [14:56:27]line [14:56:27]written 0, free lines is 3209 [14:56:27]MH_Cut [14:56:27]Write to MH i2c: D1 01 00 37 90 01 99 [14:56:27]Write i2c OK [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: D1 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: D1 01 00 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: D1 01 00 37 90 00 98 [14:56:27]Write to MH i2c: 01 00 00 38 90 C8 [14:56:27]Write i2c OK [14:56:27]MH_I2C_Read... [14:56:27]OFD Sender: No OFD packet to send [14:56:28]*** Cut start [14:56:28]*** Purtial cut [14:56:28]*** Stage 1: CUTSNS_PIN = 1 [14:56:30]Read from MH i2c: 01 [14:56:30]MH_I2C_Read... [14:56:30]*** Stop cut motor [14:56:30]*** Cut end [14:56:30]Read from MH i2c: 01 07 00 [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: 01 07 00 38 90 00 00 00 00 00 FF 0F DD [14:56:30]process_action close_receipt done [14:56:30]requested_data is exist [14:56:30]produce_requested_data [14:56:30]requested_item fm.sn is exist - process it [14:56:30]wFMCommunicate request_size=4 [14:56:30]MH_SAM_APDU [14:56:30]CAPDU: 80 11 00 00 [14:56:30]Write to MH i2c: E2 08 00 39 90 80 11 00 00 00 00 00 00 43 [14:56:30]Write i2c OK [14:56:30]MH_I2C_Read... [14:56:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:30]Read from MH i2c: E2 [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: E2 17 00 [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: E2 17 00 39 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 90 [14:56:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:56:30]wFMCommunicate OK [14:56:30]requested_item fd.num is exist - process it [14:56:30]SAM_PROTO_GetFieldsCounters [14:56:30]wFMCommunicate request_size=4 [14:56:30]MH_SAM_APDU [14:56:30]CAPDU: 80 13 00 00 [14:56:30]Write to MH i2c: E2 08 00 3A 90 80 13 00 00 00 00 00 00 46 [14:56:30]Write i2c OK [14:56:30]MH_I2C_Read... [14:56:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:30]Read from MH i2c: E2 [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: E2 62 00 [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: E2 62 00 3A 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 7E FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 11 [14:56: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 7E FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:56:30]wFMCommunicate OK [14:56:30]SAM_PROTO_GetFieldsCounters done [14:56:30]requested_item shift.num is exist - process it [14:56:30]requested_item shift.opened is exist - process it [14:56:30]req_shift_opened [14:56:30]FM_GetShiftState [14:56:30]SAM_PROTO_GetShiftState [14:56:30]wFMCommunicate request_size=4 [14:56:30]MH_SAM_APDU [14:56:30]CAPDU: 80 13 01 00 [14:56:30]Write to MH i2c: E2 08 00 3B 90 80 13 01 00 00 00 00 00 48 [14:56:30]Write i2c OK [14:56:30]MH_I2C_Read... [14:56:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:30]Read from MH i2c: E2 [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: E2 0E 00 [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: E2 0E 00 3B 90 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 85 [14:56:30]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:56:30]wFMCommunicate OK [14:56:30]SAM_PROTO_GetShiftState done [14:56:30]FM_GetShiftState done [14:56:30]req_shift_opened done [14:56:30]requested_item shift.open_date is exist - process it [14:56:30]req_shift_open_date [14:56:30]req_shift_open_date done [14:56:30]produce_requested_data done [14:56:30]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260734,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [14:56:30]process_action_free close_receipt [14:56:30]json_value_free [14:56:30]json_value_free done [14:56:30]process_json_proto returns [14:56:30]Send response to host [14:56:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260734,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [14:56:30]free response buf [14:56:30]execute_script done [14:56:30]execute_script returns [14:56:30]free content buf [14:56:30]Sock 9.Close socket [14:56:30]Sock 9.Thread stoped [14:56:32]OFD Sender: No OFD packet to send [14:56:37]OFD Sender: No OFD packet to send [14:56:42]OFD Sender: No OFD packet to send [14:56:47]OFD Sender: No OFD packet to send [14:56:52]OFD Sender: No OFD packet to send [14:56:57]OFD Sender: No OFD packet to send [14:57:02]OFD Sender: No OFD packet to send [14:57:07]OFD Sender: No OFD packet to send [14:57:08]accept exits with 7 [14:57:08]New connection [14:57:08]New thread 3066617188 created [14:57:08]Thread 3066473828 joined [14:57:08]Waiting for new connection... [14:57:08] Sock 7.Parse request [14:57:08]Sock 7.Check first char [14:57:08]Sock 7.First char is OK [14:57:08]request: POST /json_proto HTTP/1.0 [14:57:08]Method: POST [14:57:08]URL: /json_proto [14:57:08]Method is POST - this is cgi request [14:57:08]url: /json_proto [14:57:08]query_string will be loaded in cgi processing [14:57:08]execute_cgi json_proto POST (null) [14:57:08]execute_cgi path=json_proto method=POST [14:57:08]POST find Content-Length [14:57:08]Host: 172.17.55.133:8080 [14:57:08]Content-Length: 683 [14:57:08]Content-Type: application/json [14:57:08] [14:57:08]POST finish read [14:57:08]Found Content-Length = 683 [14:57:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:08]execute_script... [14:57: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)1036286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:08]POST & json_proto [14:57:08]process_json_proto [14:57:08]json parsed OK: [14:57:08]protocol is kg_v1.0 [14:57:08]action value=close_receipt [14:57:08]process_action close_receipt [14:57:08]cmd_close_receipt [14:57:08]MH_GetDate [14:57:08]Write to MH i2c: F0 00 00 3C 90 BB [14:57:08]Write i2c OK [14:57:08]MH_I2C_Read... [14:57:08]Read from MH i2c: F0 [14:57:08]MH_I2C_Read... [14:57:08]Read from MH i2c: F0 09 00 [14:57:08]MH_I2C_Read... [14:57:08]Read from MH i2c: F0 09 00 3C 90 00 C9 0B C2 66 34 48 D8 65 79 [14:57:08]GetLastDocTimeStamp 1723992990 [14:57:08]current date 1723993033 [14:57:08]FM_GetShiftState [14:57:08]SAM_PROTO_GetShiftState [14:57:08]wFMCommunicate request_size=4 [14:57:08]MH_SAM_APDU [14:57:08]CAPDU: 80 13 01 00 [14:57:08]Write to MH i2c: E2 08 00 3D 90 80 13 01 00 00 00 00 00 4A [14:57:08]Write i2c OK [14:57:08]MH_I2C_Read... [14:57:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:08]Read from MH i2c: E2 [14:57:08]MH_I2C_Read... [14:57:08]Read from MH i2c: E2 0E 00 [14:57:08]MH_I2C_Read... [14:57:08]Read from MH i2c: E2 0E 00 3D 90 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 87 [14:57:08]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:57:08]wFMCommunicate OK [14:57:08]SAM_PROTO_GetShiftState done [14:57:08]FM_GetShiftState done [14:57:08]opened in 1723940556 [14:57:08]opened+sec_in_day 1724026956 [14:57:08]quantity*price = 70027 [14:57:08]sum+1 = 70029 [14:57:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 293 18.08.2024 14:57 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260735 ФПД: 254675581461982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T145713&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260735&fm=254675581461982&tin=02508201610067®Number=0000000000091865&sum=70000 [14:57:09]StoreToDocumentArchive [14:57:09]shift 449 fd 260735 [14:57:09]save to /storage/0449/doc_00260735 [14:57:09]save last doc name /storage/0449/doc_00260735 to /storage/kkm_last_doc_name [14:57:09]save OK [14:57:09]Clear old archive folders... [14:57:09]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:57:09]tlvbuf is 00451640 [14:57:09]SAM_PROTO_ClearQueue [14:57:09]wFMCommunicate request_size=4 [14:57:09]MH_SAM_APDU [14:57:09]CAPDU: 80 09 00 00 [14:57:09]Write to MH i2c: E2 08 00 4A 90 80 09 00 00 00 00 00 00 4C [14:57:09]Write i2c OK [14:57:09]MH_I2C_Read... [14:57:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:09]Read from MH i2c: E2 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: E2 03 00 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: E2 03 00 4A 90 00 90 00 4E [14:57:09]RAPDU: 90 00 [14:57:09]wFMCommunicate OK [14:57:09]SAM_PROTO_ClearQueue done [14:57:09]KKMCreateOFDPacket [14:57:09]OFDProtocolAddRootSTLVToBuf [14:57:09]FM_MakeSignedData [14:57:09]FM_MakeSignedData [14:57:09]SAM_PROTO_SignData [14:57:09]wFMCommunicate request_size=4 [14:57:09]MH_SAM_APDU [14:57:09]CAPDU: 80 0D 01 02 [14:57:09]Write to MH i2c: E2 08 00 4B 90 80 0D 01 02 00 00 00 00 54 [14:57:09]Write i2c OK [14:57:09]MH_I2C_Read... [14:57:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:09]Read from MH i2c: E2 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: E2 03 00 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: E2 03 00 4B 90 00 90 00 4F [14:57:09]RAPDU: 90 00 [14:57:09]wFMCommunicate OK [14:57:09]wFMCommunicate request_size=255 [14:57:09]MH_SAM_APDU [14:57:09]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 0D 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 25 01 00 00 F4 03 04 00 C9 0B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7F FA 03 00 35 04 06 00 [14:57:09]Write to MH i2c: E2 02 01 4C 90 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 0D 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 25 01 00 00 F4 03 04 00 C9 0B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7F FA 03 00 35 04 06 00 00 00 1A [14:57:09]Write i2c OK [14:57:09]MH_I2C_Read... [14:57:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:10]Read from MH i2c: E2 [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: E2 03 00 [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: E2 03 00 4C 90 00 90 00 50 [14:57:10]RAPDU: 90 00 [14:57:10]wFMCommunicate OK [14:57:10]wFMCommunicate request_size=11 [14:57:10]MH_SAM_APDU [14:57:10]CAPDU: 80 0D 02 02 06 E7 A0 47 90 E5 DE [14:57:10]Write to MH i2c: E2 0E 00 4D 90 80 0D 02 02 06 00 E7 A0 47 90 E5 DE 00 00 84 [14:57:10]Write i2c OK [14:57:10]MH_I2C_Read... [14:57:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:10]Read from MH i2c: E2 [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: E2 03 00 [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: E2 03 00 4D 90 00 90 00 51 [14:57:10]RAPDU: 90 00 [14:57:10]wFMCommunicate OK [14:57:10]wFMCommunicate request_size=4 [14:57:10]MH_SAM_APDU [14:57:10]CAPDU: 80 0D 03 02 [14:57:10]Write to MH i2c: E2 08 00 4E 90 80 0D 03 02 00 00 00 00 59 [14:57:10]Write i2c OK [14:57:10]MH_I2C_Read... [14:57:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:10]Read from MH i2c: E2 [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: E2 0B 00 [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: E2 0B 00 4E 90 00 77 DC 6D 5B 8A DE 93 76 90 00 E6 [14:57:10]RAPDU: 77 DC 6D 5B 8A DE 93 76 90 00 [14:57:10]wFMCommunicate OK [14:57:10]SAM_PROTO_SignData done [14:57:10]FM_MakeSignedData done [14:57:10]CreateOFDProtocolMessage [14:57:10]wFMCommunicate request_size=4 [14:57:10]MH_SAM_APDU [14:57:10]CAPDU: 80 11 00 00 [14:57:10]Write to MH i2c: E2 08 00 4F 90 80 11 00 00 00 00 00 00 59 [14:57:10]Write i2c OK [14:57:10]MH_I2C_Read... [14:57:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:10]Read from MH i2c: E2 [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: E2 17 00 [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: E2 17 00 4F 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A6 [14:57:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:57:10]wFMCommunicate OK [14:57:10]CreateOFDProtocolMessage done [14:57:10]OFDSenderStorePacket 260735 [14:57:10]StoreOFDPacket docnum=260735 [14:57:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 32 A2 08 01 67 C6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 0D 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 25 01 00 00 F4 03 04 00 C9 0B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7F FA 03 00 35 04 06 00 E7 A0 47 90 E5 DE 77 DC 6D 5B 8A DE 93 76 [14:57:10]CheckFolder [14:57:10]dirname=/storage/ofd_packets [14:57:10]CheckFolder done [14:57:10]ProducePacketName [14:57:10]name=ofd_packets/00260735 [14:57:10]NVStorageSaveData ofd_packets/00260735 [14:57:10]File name is /storage/ofd_packets/00260735 [14:57:10]Write 302 bytes [14:57:10]NVStorageSaveData done [14:57:10]OFDSenderStorePacket done [14:57:10]KKMCreateOFDPacket done [14:57:10]NVStorageSaveData kkm_last_timestamp [14:57:10]File name is /storage/kkm_last_timestamp [14:57:10]Write 4 bytes [14:57:10]NVStorageSaveData done [14:57:10]ExternCall_PrintAddStr [14:57:10]wPrintStart [14:57:10]Write to MH i2c: 01 00 00 50 90 E0 [14:57:10]Write i2c OK [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: 01 [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: 01 07 00 [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: 01 07 00 50 90 00 00 00 00 00 FF 0F F5 [14:57:10]RasterBufferAndPrint [14:57:10]line Счет N : (1)1036286 [14:57:10]line ИНН: 02508201610067 [14:57:10]line Контрольно-Кассовый Чек [14:57:10]line ПРОДАЖА [14:57:10]line ТРК (МРК, ГНК) : 33 [14:57:10]line Товар: 2710194210 [14:57:10]line ДТ(л)-К-4 [14:57:10]line 9.190 * 76.20 [14:57:10]line = 700.28 [14:57:10]line НДС 12% НСП 1% [14:57:10]line > о реализуемом товаре [14:57:10]line ОКРУГЛЕНИЕ: -0.28 [14:57:10]line ИТОГО: 700.00 [14:57:10]line Внесено: 700.00 [14:57:10]line СДАЧА: 0.00 [14:57:10]line НСП 1% : 6.20 [14:57:10]line НДС 12% : 74.37 [14:57:10]line Наличными: 700.00 [14:57:10]line Безнал.: 0.00 [14:57:10]line Место: АЗС № 94 "Партнер Нефть" [14:57:10]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [14:57:10]line СНО: Общий режим [14:57:10]line Чек 293 18.08.2024 14:57 [14:57:10]line Смена: 449 ФФД: 1.0 [14:57:10]line ЗНМ: 0300000099 [14:57:10]line РНМ: 0000000000091865 [14:57:10]line Версия ККМ: 001 [14:57:10]line ФМ: 0000000000871820 [14:57:10]line ФД: 260735 [14:57:10]line ФПД: 254675581461982 [14:57:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T145713&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260735&fm=254675581461982&tin=02508201610067®Number=0000000000091865&sum=70000 [14:57:10]OFD Sender: Processing packet 260735 [packets to send 192, broken 191] [14:57:10]ProducePacketName [14:57:10]name=ofd_packets/00260735 [14:57:10]OFD Sender: To server: pG, [14:57:10]CommunicateWithHost lk.salyk.kg:30040 [14:57:10]ConnectInit lk.salyk.kg [14:57:10]written 0, free lines is 4095 [14:57:10]Connected sock=10 [14:57: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 30 10 01 00 00 32 A2 08 01 67 C6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 0D 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 25 01 00 00 F4 03 04 00 C9 0B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7F FA 03 00 35 04 06 00 E7 A0 47 90 E5 DE 77 DC 6D 5B 8A DE 93 76 [14:57: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 30 4F 00 00 00 33 32 47 00 D4 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 30 10 04 04 00 7F FA 03 00 F4 03 04 00 1E B5 C1 66 B6 04 01 00 00 45 F0 CC F1 8B AF 0A 6A [14:57:10]CommunicateWithHost err = 0 [14:57:10]CheckOFDResponse [14:57:10]1017 (14) - 77093643461234 [14:57:10]1041 (16) - 0000000000871820 [14:57:10]1040 (4) - 260735 [14:57:10]1012 (4) - 18.08.2024 08:47 [14:57:10]1206 (1) - 0 [14:57:10]OFD Sender: Remove packet 260735 [14:57:10]ProducePacketName [14:57:10]name=ofd_packets/00260735 [14:57:10]NVStorageDeleteData [14:57:11]Write to MH i2c: 01 00 00 7B 90 0B [14:57:11]Write i2c OK [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: 01 [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: 01 07 00 [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: 01 07 00 7B 90 00 00 00 00 00 6C 0C 8A [14:57:11]RasterBufferAndPrint [14:57:11]line [14:57:11]line [14:57:11]line [14:57:11]line [14:57:11]line [14:57:11]written 0, free lines is 3183 [14:57:11]MH_Cut [14:57:11]Write to MH i2c: D1 01 00 82 90 01 E4 [14:57:11]Write i2c OK [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: D1 [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: D1 01 00 [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: D1 01 00 82 90 00 E3 [14:57:11]Write to MH i2c: 01 00 00 83 90 13 [14:57:11]Write i2c OK [14:57:11]MH_I2C_Read... [14:57:11]OFD Sender: No OFD packet to send [14:57:12]*** Cut start [14:57:12]*** Purtial cut [14:57:12]*** Stage 1: CUTSNS_PIN = 1 [14:57:14]Read from MH i2c: 01 [14:57:14]MH_I2C_Read... [14:57:14]*** Stop cut motor [14:57:14]*** Cut end [14:57:14]Read from MH i2c: 01 07 00 [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: 01 07 00 83 90 00 00 00 00 00 FF 0F 28 [14:57:14]process_action close_receipt done [14:57:14]requested_data is exist [14:57:14]produce_requested_data [14:57:14]requested_item fm.sn is exist - process it [14:57:14]wFMCommunicate request_size=4 [14:57:14]MH_SAM_APDU [14:57:14]CAPDU: 80 11 00 00 [14:57:14]Write to MH i2c: E2 08 00 84 90 80 11 00 00 00 00 00 00 8E [14:57:14]Write i2c OK [14:57:14]MH_I2C_Read... [14:57:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:14]Read from MH i2c: E2 [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: E2 17 00 [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: E2 17 00 84 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 DB [14:57:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:57:14]wFMCommunicate OK [14:57:14]requested_item fd.num is exist - process it [14:57:14]SAM_PROTO_GetFieldsCounters [14:57:14]wFMCommunicate request_size=4 [14:57:14]MH_SAM_APDU [14:57:14]CAPDU: 80 13 00 00 [14:57:14]Write to MH i2c: E2 08 00 85 90 80 13 00 00 00 00 00 00 91 [14:57:14]Write i2c OK [14:57:14]MH_I2C_Read... [14:57:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:14]Read from MH i2c: E2 [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: E2 62 00 [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: E2 62 00 85 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 7F FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 60 [14:57: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 7F FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:57:14]wFMCommunicate OK [14:57:14]SAM_PROTO_GetFieldsCounters done [14:57:14]requested_item shift.num is exist - process it [14:57:14]requested_item shift.opened is exist - process it [14:57:14]req_shift_opened [14:57:14]FM_GetShiftState [14:57:14]SAM_PROTO_GetShiftState [14:57:14]wFMCommunicate request_size=4 [14:57:14]MH_SAM_APDU [14:57:14]CAPDU: 80 13 01 00 [14:57:14]Write to MH i2c: E2 08 00 86 90 80 13 01 00 00 00 00 00 93 [14:57:14]Write i2c OK [14:57:14]MH_I2C_Read... [14:57:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:14]Read from MH i2c: E2 [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: E2 0E 00 [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: E2 0E 00 86 90 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D0 [14:57:14]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:57:14]wFMCommunicate OK [14:57:14]SAM_PROTO_GetShiftState done [14:57:14]FM_GetShiftState done [14:57:14]req_shift_opened done [14:57:14]requested_item shift.open_date is exist - process it [14:57:14]req_shift_open_date [14:57:14]req_shift_open_date done [14:57:14]produce_requested_data done [14:57:14]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260735,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [14:57:14]process_action_free close_receipt [14:57:14]json_value_free [14:57:14]json_value_free done [14:57:14]process_json_proto returns [14:57:14]Send response to host [14:57:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260735,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [14:57:14]free response buf [14:57:14]execute_script done [14:57:14]execute_script returns [14:57:14]free content buf [14:57:14]Sock 7.Close socket [14:57:14]Sock 7.Thread stoped [14:57:16]OFD Sender: No OFD packet to send [14:57:21]OFD Sender: No OFD packet to send [14:57:26]OFD Sender: No OFD packet to send [14:57:31]OFD Sender: No OFD packet to send [14:57:36]OFD Sender: No OFD packet to send [14:57:41]OFD Sender: No OFD packet to send [14:57:46]OFD Sender: No OFD packet to send [14:57:51]OFD Sender: No OFD packet to send [14:57:56]OFD Sender: No OFD packet to send [14:58:01]OFD Sender: No OFD packet to send [14:58:06]OFD Sender: No OFD packet to send [14:58:10]accept exits with 9 [14:58:10]New connection [14:58:10]New thread 3066473828 created [14:58:10]Thread 3066617188 joined [14:58:10]Waiting for new connection... [14:58:10] Sock 9.Parse request [14:58:10]Sock 9.Check first char [14:58:10]Sock 9.First char is OK [14:58:10]request: POST /json_proto HTTP/1.0 [14:58:10]Method: POST [14:58:10]URL: /json_proto [14:58:10]Method is POST - this is cgi request [14:58:10]url: /json_proto [14:58:10]query_string will be loaded in cgi processing [14:58:10]execute_cgi json_proto POST (null) [14:58:10]execute_cgi path=json_proto method=POST [14:58:10]POST find Content-Length [14:58:10]Host: 172.17.55.133:8080 [14:58:10]Content-Length: 678 [14:58:10]Content-Type: application/json [14:58:10] [14:58:10]POST finish read [14:58:10]Found Content-Length = 678 [14:58:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:10]execute_script... [14:58: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)1036288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:10]POST & json_proto [14:58:10]process_json_proto [14:58:10]json parsed OK: [14:58:10]protocol is kg_v1.0 [14:58:10]action value=close_receipt [14:58:10]process_action close_receipt [14:58:10]cmd_close_receipt [14:58:10]MH_GetDate [14:58:10]Write to MH i2c: F0 00 00 87 90 06 [14:58:10]Write i2c OK [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: F0 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: F0 09 00 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: F0 09 00 87 90 00 07 0C C2 66 34 48 D8 65 03 [14:58:10]GetLastDocTimeStamp 1723993033 [14:58:10]current date 1723993095 [14:58:10]FM_GetShiftState [14:58:10]SAM_PROTO_GetShiftState [14:58:10]wFMCommunicate request_size=4 [14:58:10]MH_SAM_APDU [14:58:10]CAPDU: 80 13 01 00 [14:58:10]Write to MH i2c: E2 08 00 88 90 80 13 01 00 00 00 00 00 95 [14:58:10]Write i2c OK [14:58:10]MH_I2C_Read... [14:58:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:10]Read from MH i2c: E2 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: E2 0E 00 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: E2 0E 00 88 90 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D2 [14:58:10]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:58:10]wFMCommunicate OK [14:58:10]SAM_PROTO_GetShiftState done [14:58:10]FM_GetShiftState done [14:58:10]opened in 1723940556 [14:58:10]opened+sec_in_day 1724026956 [14:58:10]quantity*price = 50036 [14:58:10]sum+1 = 50037 [14:58:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 294 18.08.2024 14:58 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260736 ФПД: 219453234384974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T145815&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260736&fm=219453234384974&tin=02508201610067®Number=0000000000091865&sum=50000 [14:58:11]StoreToDocumentArchive [14:58:11]shift 449 fd 260736 [14:58:11]save to /storage/0449/doc_00260736 [14:58:11]save last doc name /storage/0449/doc_00260736 to /storage/kkm_last_doc_name [14:58:11]save OK [14:58:11]Clear old archive folders... [14:58:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:58:11]tlvbuf is 003A0810 [14:58:11]SAM_PROTO_ClearQueue [14:58:11]wFMCommunicate request_size=4 [14:58:11]MH_SAM_APDU [14:58:11]CAPDU: 80 09 00 00 [14:58:11]Write to MH i2c: E2 08 00 95 90 80 09 00 00 00 00 00 00 97 [14:58:11]Write i2c OK [14:58:11]MH_I2C_Read... [14:58:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:11]Read from MH i2c: E2 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: E2 03 00 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: E2 03 00 95 90 00 90 00 99 [14:58:11]RAPDU: 90 00 [14:58:11]wFMCommunicate OK [14:58:11]SAM_PROTO_ClearQueue done [14:58:11]KKMCreateOFDPacket [14:58:11]OFDProtocolAddRootSTLVToBuf [14:58:11]FM_MakeSignedData [14:58:11]FM_MakeSignedData [14:58:11]SAM_PROTO_SignData [14:58:11]wFMCommunicate request_size=4 [14:58:11]MH_SAM_APDU [14:58:11]CAPDU: 80 0D 01 02 [14:58:11]Write to MH i2c: E2 08 00 96 90 80 0D 01 02 00 00 00 00 9F [14:58:11]Write i2c OK [14:58:11]MH_I2C_Read... [14:58:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:11]Read from MH i2c: E2 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: E2 03 00 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: E2 03 00 96 90 00 90 00 9A [14:58:11]RAPDU: 90 00 [14:58:11]wFMCommunicate OK [14:58:11]wFMCommunicate request_size=255 [14:58:11]MH_SAM_APDU [14:58:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 26 01 00 00 F4 03 04 00 07 0C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 80 FA 03 00 35 04 06 00 C7 [14:58:11]Write to MH i2c: E2 02 01 97 90 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 26 01 00 00 F4 03 04 00 07 0C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 80 FA 03 00 35 04 06 00 C7 00 00 84 [14:58:11]Write i2c OK [14:58:11]MH_I2C_Read... [14:58:11]OFD Sender: No OFD packet to send [14:58:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:11]Read from MH i2c: E2 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: E2 03 00 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: E2 03 00 97 90 00 90 00 9B [14:58:11]RAPDU: 90 00 [14:58:11]wFMCommunicate OK [14:58:11]wFMCommunicate request_size=10 [14:58:11]MH_SAM_APDU [14:58:11]CAPDU: 80 0D 02 02 05 97 70 14 90 4E [14:58:11]Write to MH i2c: E2 0D 00 98 90 80 0D 02 02 05 00 97 70 14 90 4E 00 00 A5 [14:58:11]Write i2c OK [14:58:11]MH_I2C_Read... [14:58:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:11]Read from MH i2c: E2 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: E2 03 00 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: E2 03 00 98 90 00 90 00 9C [14:58:11]RAPDU: 90 00 [14:58:11]wFMCommunicate OK [14:58:11]wFMCommunicate request_size=4 [14:58:11]MH_SAM_APDU [14:58:11]CAPDU: 80 0D 03 02 [14:58:11]Write to MH i2c: E2 08 00 99 90 80 0D 03 02 00 00 00 00 A4 [14:58:11]Write i2c OK [14:58:11]MH_I2C_Read... [14:58:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:11]Read from MH i2c: E2 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: E2 0B 00 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: E2 0B 00 99 90 00 1C 66 21 3D 6B 37 59 F4 90 00 74 [14:58:11]RAPDU: 1C 66 21 3D 6B 37 59 F4 90 00 [14:58:11]wFMCommunicate OK [14:58:11]SAM_PROTO_SignData done [14:58:11]FM_MakeSignedData done [14:58:11]CreateOFDProtocolMessage [14:58:11]wFMCommunicate request_size=4 [14:58:11]MH_SAM_APDU [14:58:11]CAPDU: 80 11 00 00 [14:58:11]Write to MH i2c: E2 08 00 9A 90 80 11 00 00 00 00 00 00 A4 [14:58:11]Write i2c OK [14:58:11]MH_I2C_Read... [14:58:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:11]Read from MH i2c: E2 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: E2 17 00 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: E2 17 00 9A 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F1 [14:58:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:58:11]wFMCommunicate OK [14:58:11]CreateOFDProtocolMessage done [14:58:11]OFDSenderStorePacket 260736 [14:58:11]StoreOFDPacket docnum=260736 [14:58:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 2F 93 07 01 FF C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 26 01 00 00 F4 03 04 00 07 0C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 80 FA 03 00 35 04 06 00 C7 97 70 14 90 4E 1C 66 21 3D 6B 37 59 F4 [14:58:11]CheckFolder [14:58:11]dirname=/storage/ofd_packets [14:58:11]CheckFolder done [14:58:11]ProducePacketName [14:58:11]name=ofd_packets/00260736 [14:58:11]NVStorageSaveData ofd_packets/00260736 [14:58:11]File name is /storage/ofd_packets/00260736 [14:58:11]Write 301 bytes [14:58:11]NVStorageSaveData done [14:58:11]OFDSenderStorePacket done [14:58:11]KKMCreateOFDPacket done [14:58:11]NVStorageSaveData kkm_last_timestamp [14:58:11]File name is /storage/kkm_last_timestamp [14:58:11]Write 4 bytes [14:58:11]NVStorageSaveData done [14:58:11]ExternCall_PrintAddStr [14:58:11]wPrintStart [14:58:11]Write to MH i2c: 01 00 00 9B 90 2B [14:58:11]Write i2c OK [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: 01 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: 01 07 00 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: 01 07 00 9B 90 00 00 00 00 00 FF 0F 40 [14:58:11]RasterBufferAndPrint [14:58:11]line Счет N : (1)1036288 [14:58:11]line ИНН: 02508201610067 [14:58:11]line Контрольно-Кассовый Чек [14:58:11]line ПРОДАЖА [14:58:11]line ТРК (МРК, ГНК) : 12 [14:58:11]line Товар: 2710124130 [14:58:11]line Аи-92-К-5 [14:58:11]line 7.380 * 67.80 [14:58:11]line = 500.36 [14:58:11]line НДС 12% НСП 1% [14:58:11]line > о реализуемом товаре [14:58:11]line ОКРУГЛЕНИЕ: -0.36 [14:58:11]line ИТОГО: 500.00 [14:58:11]line Внесено: 500.00 [14:58:11]line СДАЧА: 0.00 [14:58:11]line НСП 1% : 4.43 [14:58:11]line НДС 12% : 53.14 [14:58:11]line Наличными: 500.00 [14:58:11]line Безнал.: 0.00 [14:58:11]line Место: АЗС № 94 "Партнер Нефть" [14:58:11]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [14:58:11]line СНО: Общий режим [14:58:11]line Чек 294 18.08.2024 14:58 [14:58:11]line Смена: 449 ФФД: 1.0 [14:58:11]line ЗНМ: 0300000099 [14:58:11]line РНМ: 0000000000091865 [14:58:11]line Версия ККМ: 001 [14:58:11]line ФМ: 0000000000871820 [14:58:11]line ФД: 260736 [14:58:11]line ФПД: 219453234384974 [14:58:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T145815&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260736&fm=219453234384974&tin=02508201610067®Number=0000000000091865&sum=50000 [14:58:12]OFD Sender: Processing packet 260736 [packets to send 192, broken 191] [14:58:12]ProducePacketName [14:58:12]name=ofd_packets/00260736 [14:58:12]OFD Sender: To server: pG, [14:58:12]CommunicateWithHost lk.salyk.kg:30040 [14:58:12]ConnectInit lk.salyk.kg [14:58:12]written 0, free lines is 4095 [14:58:12]Connected sock=10 [14:58: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 30 0F 01 00 00 2F 93 07 01 FF C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 26 01 00 00 F4 03 04 00 07 0C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 80 FA 03 00 35 04 06 00 C7 97 70 14 90 4E 1C 66 21 3D 6B 37 59 F4 [14:58: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 30 4F 00 00 00 78 32 47 00 59 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 80 FA 03 00 F4 03 04 00 5C B5 C1 66 B6 04 01 00 00 4E 3C 99 7E 4B 5F 7A DD [14:58:12]CommunicateWithHost err = 0 [14:58:12]CheckOFDResponse [14:58:12]1017 (14) - 77093643461234 [14:58:12]1041 (16) - 0000000000871820 [14:58:12]1040 (4) - 260736 [14:58:12]1012 (4) - 18.08.2024 08:48 [14:58:12]1206 (1) - 0 [14:58:12]OFD Sender: Remove packet 260736 [14:58:12]ProducePacketName [14:58:12]name=ofd_packets/00260736 [14:58:12]NVStorageDeleteData [14:58:12]Write to MH i2c: 01 00 00 C6 90 56 [14:58:12]Write i2c OK [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: 01 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: 01 07 00 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: 01 07 00 C6 90 00 00 00 00 00 72 0C DB [14:58:12]RasterBufferAndPrint [14:58:12]line [14:58:12]line [14:58:12]line [14:58:12]line [14:58:12]line [14:58:12]written 0, free lines is 3188 [14:58:12]MH_Cut [14:58:12]Write to MH i2c: D1 01 00 CD 90 01 2F [14:58:12]Write i2c OK [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: D1 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: D1 01 00 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: D1 01 00 CD 90 00 2E [14:58:12]Write to MH i2c: 01 00 00 CE 90 5E [14:58:12]Write i2c OK [14:58:12]MH_I2C_Read... [14:58:12]OFD Sender: No OFD packet to send [14:58:13]*** Cut start [14:58:13]*** Purtial cut [14:58:13]*** Stage 1: CUTSNS_PIN = 1 [14:58:15]Read from MH i2c: 01 [14:58:15]MH_I2C_Read... [14:58:15]*** Stop cut motor [14:58:15]*** Cut end [14:58:15]Read from MH i2c: 01 07 00 [14:58:15]MH_I2C_Read... [14:58:15]Read from MH i2c: 01 07 00 CE 90 00 00 00 00 00 FF 0F 73 [14:58:15]process_action close_receipt done [14:58:15]requested_data is exist [14:58:15]produce_requested_data [14:58:15]requested_item fm.sn is exist - process it [14:58:15]wFMCommunicate request_size=4 [14:58:15]MH_SAM_APDU [14:58:15]CAPDU: 80 11 00 00 [14:58:15]Write to MH i2c: E2 08 00 CF 90 80 11 00 00 00 00 00 00 D9 [14:58:15]Write i2c OK [14:58:15]MH_I2C_Read... [14:58:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:15]Read from MH i2c: E2 [14:58:15]MH_I2C_Read... [14:58:15]Read from MH i2c: E2 17 00 [14:58:15]MH_I2C_Read... [14:58:15]Read from MH i2c: E2 17 00 CF 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 26 [14:58:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:58:15]wFMCommunicate OK [14:58:15]requested_item fd.num is exist - process it [14:58:15]SAM_PROTO_GetFieldsCounters [14:58:15]wFMCommunicate request_size=4 [14:58:15]MH_SAM_APDU [14:58:15]CAPDU: 80 13 00 00 [14:58:15]Write to MH i2c: E2 08 00 D0 90 80 13 00 00 00 00 00 00 DC [14:58:15]Write i2c OK [14:58:15]MH_I2C_Read... [14:58:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:15]Read from MH i2c: E2 [14:58:15]MH_I2C_Read... [14:58:15]Read from MH i2c: E2 62 00 [14:58:15]MH_I2C_Read... [14:58:15]Read from MH i2c: E2 62 00 D0 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 80 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 AF [14:58: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 80 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:58:15]wFMCommunicate OK [14:58:15]SAM_PROTO_GetFieldsCounters done [14:58:15]requested_item shift.num is exist - process it [14:58:15]requested_item shift.opened is exist - process it [14:58:15]req_shift_opened [14:58:15]FM_GetShiftState [14:58:15]SAM_PROTO_GetShiftState [14:58:15]wFMCommunicate request_size=4 [14:58:15]MH_SAM_APDU [14:58:15]CAPDU: 80 13 01 00 [14:58:15]Write to MH i2c: E2 08 00 D1 90 80 13 01 00 00 00 00 00 DE [14:58:15]Write i2c OK [14:58:15]MH_I2C_Read... [14:58:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:15]Read from MH i2c: E2 [14:58:15]MH_I2C_Read... [14:58:15]Read from MH i2c: E2 0E 00 [14:58:15]MH_I2C_Read... [14:58:15]Read from MH i2c: E2 0E 00 D1 90 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 1B [14:58:15]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:58:15]wFMCommunicate OK [14:58:15]SAM_PROTO_GetShiftState done [14:58:15]FM_GetShiftState done [14:58:15]req_shift_opened done [14:58:15]requested_item shift.open_date is exist - process it [14:58:15]req_shift_open_date [14:58:15]req_shift_open_date done [14:58:15]produce_requested_data done [14:58:15]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260736,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [14:58:15]process_action_free close_receipt [14:58:15]json_value_free [14:58:15]json_value_free done [14:58:15]process_json_proto returns [14:58:15]Send response to host [14:58:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260736,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [14:58:15]free response buf [14:58:15]execute_script done [14:58:15]execute_script returns [14:58:15]free content buf [14:58:15]Sock 9.Close socket [14:58:15]Sock 9.Thread stoped [14:58:17]OFD Sender: No OFD packet to send [14:58:22]OFD Sender: No OFD packet to send [14:58:26]accept exits with 7 [14:58:26]New connection [14:58:26]New thread 3066617188 created [14:58:26]Thread 3066473828 joined [14:58:26]Waiting for new connection... [14:58:26] Sock 7.Parse request [14:58:26]Sock 7.Check first char [14:58:26]Sock 7.First char is OK [14:58:26]request: POST /json_proto HTTP/1.0 [14:58:26]Method: POST [14:58:26]URL: /json_proto [14:58:26]Method is POST - this is cgi request [14:58:26]url: /json_proto [14:58:26]query_string will be loaded in cgi processing [14:58:26]execute_cgi json_proto POST (null) [14:58:26]execute_cgi path=json_proto method=POST [14:58:26]POST find Content-Length [14:58:26]Host: 172.17.55.133:8080 [14:58:26]Content-Length: 683 [14:58:26]Content-Type: application/json [14:58:26] [14:58:26]POST finish read [14:58:26]Found Content-Length = 683 [14:58:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:58:26]execute_script... [14:58: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)1036287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:58:26]POST & json_proto [14:58:26]process_json_proto [14:58:26]json parsed OK: [14:58:26]protocol is kg_v1.0 [14:58:26]action value=close_receipt [14:58:26]process_action close_receipt [14:58:26]cmd_close_receipt [14:58:26]MH_GetDate [14:58:26]Write to MH i2c: F0 00 00 D2 90 51 [14:58:26]Write i2c OK [14:58:26]MH_I2C_Read... [14:58:26]Read from MH i2c: F0 [14:58:26]MH_I2C_Read... [14:58:26]Read from MH i2c: F0 09 00 [14:58:26]MH_I2C_Read... [14:58:26]Read from MH i2c: F0 09 00 D2 90 00 18 0C C2 66 34 48 D8 65 5F [14:58:26]GetLastDocTimeStamp 1723993095 [14:58:26]current date 1723993112 [14:58:26]FM_GetShiftState [14:58:26]SAM_PROTO_GetShiftState [14:58:26]wFMCommunicate request_size=4 [14:58:26]MH_SAM_APDU [14:58:26]CAPDU: 80 13 01 00 [14:58:26]Write to MH i2c: E2 08 00 D3 90 80 13 01 00 00 00 00 00 E0 [14:58:26]Write i2c OK [14:58:26]MH_I2C_Read... [14:58:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:26]Read from MH i2c: E2 [14:58:26]MH_I2C_Read... [14:58:26]Read from MH i2c: E2 0E 00 [14:58:26]MH_I2C_Read... [14:58:26]Read from MH i2c: E2 0E 00 D3 90 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 1D [14:58:26]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:58:26]wFMCommunicate OK [14:58:26]SAM_PROTO_GetShiftState done [14:58:26]FM_GetShiftState done [14:58:26]opened in 1723940556 [14:58:26]opened+sec_in_day 1724026956 [14:58:26]quantity*price = 100005 [14:58:26]sum+1 = 100006 [14:58:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 295 18.08.2024 14:58 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260737 ФПД: 194725712535210 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T145832&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260737&fm=194725712535210&tin=02508201610067®Number=0000000000091865&sum=100000 [14:58:27]StoreToDocumentArchive [14:58:27]shift 449 fd 260737 [14:58:27]save to /storage/0449/doc_00260737 [14:58:27]save last doc name /storage/0449/doc_00260737 to /storage/kkm_last_doc_name [14:58:27]save OK [14:58:27]Clear old archive folders... [14:58:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:58:27]tlvbuf is 00332A50 [14:58:27]SAM_PROTO_ClearQueue [14:58:27]wFMCommunicate request_size=4 [14:58:27]MH_SAM_APDU [14:58:27]CAPDU: 80 09 00 00 [14:58:27]Write to MH i2c: E2 08 00 E0 90 80 09 00 00 00 00 00 00 E2 [14:58:27]Write i2c OK [14:58:27]MH_I2C_Read... [14:58:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:27]Read from MH i2c: E2 [14:58:27]MH_I2C_Read... [14:58:27]Read from MH i2c: E2 03 00 [14:58:27]MH_I2C_Read... [14:58:27]Read from MH i2c: E2 03 00 E0 90 00 90 00 E4 [14:58:27]RAPDU: 90 00 [14:58:27]wFMCommunicate OK [14:58:27]SAM_PROTO_ClearQueue done [14:58:27]KKMCreateOFDPacket [14:58:27]OFDProtocolAddRootSTLVToBuf [14:58:27]FM_MakeSignedData [14:58:27]FM_MakeSignedData [14:58:27]SAM_PROTO_SignData [14:58:27]wFMCommunicate request_size=4 [14:58:27]MH_SAM_APDU [14:58:27]CAPDU: 80 0D 01 02 [14:58:27]Write to MH i2c: E2 08 00 E1 90 80 0D 01 02 00 00 00 00 EA [14:58:27]Write i2c OK [14:58:27]MH_I2C_Read... [14:58:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:27]Read from MH i2c: E2 [14:58:27]MH_I2C_Read... [14:58:27]Read from MH i2c: E2 03 00 [14:58:27]MH_I2C_Read... [14:58:27]Read from MH i2c: E2 03 00 E1 90 00 90 00 E5 [14:58:27]RAPDU: 90 00 [14:58:27]wFMCommunicate OK [14:58:27]wFMCommunicate request_size=255 [14:58:27]MH_SAM_APDU [14:58:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 18 0C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 81 FA 03 00 35 04 06 00 B1 [14:58:27]Write to MH i2c: E2 02 01 E2 90 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 18 0C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 81 FA 03 00 35 04 06 00 B1 00 00 5B [14:58:27]Write i2c OK [14:58:27]MH_I2C_Read... [14:58:28]OFD Sender: No OFD packet to send [14:58:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:28]Read from MH i2c: E2 [14:58:28]MH_I2C_Read... [14:58:28]Read from MH i2c: E2 03 00 [14:58:28]MH_I2C_Read... [14:58:28]Read from MH i2c: E2 03 00 E2 90 00 90 00 E6 [14:58:28]RAPDU: 90 00 [14:58:28]wFMCommunicate OK [14:58:28]wFMCommunicate request_size=10 [14:58:28]MH_SAM_APDU [14:58:28]CAPDU: 80 0D 02 02 05 1A 1C EC 9E AA [14:58:28]Write to MH i2c: E2 0D 00 E3 90 80 0D 02 02 05 00 1A 1C EC 9E AA 00 00 61 [14:58:28]Write i2c OK [14:58:28]MH_I2C_Read... [14:58:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:28]Read from MH i2c: E2 [14:58:28]MH_I2C_Read... [14:58:28]Read from MH i2c: E2 03 00 [14:58:28]MH_I2C_Read... [14:58:28]Read from MH i2c: E2 03 00 E3 90 00 90 00 E7 [14:58:28]RAPDU: 90 00 [14:58:28]wFMCommunicate OK [14:58:28]wFMCommunicate request_size=4 [14:58:28]MH_SAM_APDU [14:58:28]CAPDU: 80 0D 03 02 [14:58:28]Write to MH i2c: E2 08 00 E4 90 80 0D 03 02 00 00 00 00 EF [14:58:28]Write i2c OK [14:58:28]MH_I2C_Read... [14:58:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:28]Read from MH i2c: E2 [14:58:28]MH_I2C_Read... [14:58:28]Read from MH i2c: E2 0B 00 [14:58:28]MH_I2C_Read... [14:58:28]Read from MH i2c: E2 0B 00 E4 90 00 7D 2D 75 B5 2F 32 0B 2A 90 00 5A [14:58:28]RAPDU: 7D 2D 75 B5 2F 32 0B 2A 90 00 [14:58:28]wFMCommunicate OK [14:58:28]SAM_PROTO_SignData done [14:58:28]FM_MakeSignedData done [14:58:28]CreateOFDProtocolMessage [14:58:28]wFMCommunicate request_size=4 [14:58:28]MH_SAM_APDU [14:58:28]CAPDU: 80 11 00 00 [14:58:28]Write to MH i2c: E2 08 00 E5 90 80 11 00 00 00 00 00 00 EF [14:58:28]Write i2c OK [14:58:28]MH_I2C_Read... [14:58:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:28]Read from MH i2c: E2 [14:58:28]MH_I2C_Read... [14:58:28]Read from MH i2c: E2 17 00 [14:58:28]MH_I2C_Read... [14:58:28]Read from MH i2c: E2 17 00 E5 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 3C [14:58:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:58:28]wFMCommunicate OK [14:58:28]CreateOFDProtocolMessage done [14:58:28]OFDSenderStorePacket 260737 [14:58:28]StoreOFDPacket docnum=260737 [14:58:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 78 E3 07 01 43 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 18 0C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 81 FA 03 00 35 04 06 00 B1 1A 1C EC 9E AA 7D 2D 75 B5 2F 32 0B 2A [14:58:28]CheckFolder [14:58:28]dirname=/storage/ofd_packets [14:58:28]CheckFolder done [14:58:28]ProducePacketName [14:58:28]name=ofd_packets/00260737 [14:58:28]NVStorageSaveData ofd_packets/00260737 [14:58:28]File name is /storage/ofd_packets/00260737 [14:58:28]Write 301 bytes [14:58:28]NVStorageSaveData done [14:58:28]OFDSenderStorePacket done [14:58:28]KKMCreateOFDPacket done [14:58:28]NVStorageSaveData kkm_last_timestamp [14:58:28]File name is /storage/kkm_last_timestamp [14:58:28]Write 4 bytes [14:58:28]NVStorageSaveData done [14:58:28]ExternCall_PrintAddStr [14:58:28]wPrintStart [14:58:28]Write to MH i2c: 01 00 00 E6 90 76 [14:58:28]Write i2c OK [14:58:28]MH_I2C_Read... [14:58:28]Read from MH i2c: 01 [14:58:28]MH_I2C_Read... [14:58:28]Read from MH i2c: 01 07 00 [14:58:28]MH_I2C_Read... [14:58:28]Read from MH i2c: 01 07 00 E6 90 00 00 00 00 00 FF 0F 8B [14:58:28]RasterBufferAndPrint [14:58:28]line Счет N : (1)1036287 [14:58:28]line ИНН: 02508201610067 [14:58:28]line Контрольно-Кассовый Чек [14:58:28]line ПРОДАЖА [14:58:28]line ТРК (МРК, ГНК) : 42 [14:58:28]line Товар: 2710124130 [14:58:28]line Аи-92-К-5 [14:58:28]line 14.750 * 67.80 [14:58:28]line = 1000.05 [14:58:28]line НДС 12% НСП 1% [14:58:28]line > о реализуемом товаре [14:58:28]line ОКРУГЛЕНИЕ: -0.05 [14:58:28]line ИТОГО: 1000.00 [14:58:28]line Внесено: 1000.00 [14:58:28]line СДАЧА: 0.00 [14:58:28]line НСП 1% : 8.85 [14:58:28]line НДС 12% : 106.20 [14:58:28]line Наличными: 1000.00 [14:58:28]line Безнал.: 0.00 [14:58:28]line Место: АЗС № 94 "Партнер Нефть" [14:58:28]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [14:58:28]line СНО: Общий режим [14:58:28]line Чек 295 18.08.2024 14:58 [14:58:28]line Смена: 449 ФФД: 1.0 [14:58:28]line ЗНМ: 0300000099 [14:58:28]line РНМ: 0000000000091865 [14:58:28]line Версия ККМ: 001 [14:58:28]line ФМ: 0000000000871820 [14:58:28]line ФД: 260737 [14:58:28]line ФПД: 194725712535210 [14:58:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T145832&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260737&fm=194725712535210&tin=02508201610067®Number=0000000000091865&sum=100000 [14:58:28]OFD Sender: Processing packet 260737 [packets to send 192, broken 191] [14:58:28]ProducePacketName [14:58:28]name=ofd_packets/00260737 [14:58:28]OFD Sender: To server: pG, [14:58:28]CommunicateWithHost lk.salyk.kg:30040 [14:58:28]ConnectInit lk.salyk.kg [14:58:28]written 0, free lines is 4095 [14:58:28]Connected sock=10 [14:58: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 30 0F 01 00 00 78 E3 07 01 43 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 18 0C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 81 FA 03 00 35 04 06 00 B1 1A 1C EC 9E AA 7D 2D 75 B5 2F 32 0B 2A [14:58: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 30 4F 00 00 00 DD 61 47 00 56 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 81 FA 03 00 F4 03 04 00 6C B5 C1 66 B6 04 01 00 00 63 65 F2 FA 0E 41 75 17 [14:58:29]CommunicateWithHost err = 0 [14:58:29]CheckOFDResponse [14:58:29]1017 (14) - 77093643461234 [14:58:29]1041 (16) - 0000000000871820 [14:58:29]1040 (4) - 260737 [14:58:29]1012 (4) - 18.08.2024 08:48 [14:58:29]1206 (1) - 0 [14:58:29]OFD Sender: Remove packet 260737 [14:58:29]ProducePacketName [14:58:29]name=ofd_packets/00260737 [14:58:29]NVStorageDeleteData [14:58:29]Write to MH i2c: 01 00 00 11 91 A2 [14:58:29]Write i2c OK [14:58:29]MH_I2C_Read... [14:58:29]Read from MH i2c: 01 [14:58:29]MH_I2C_Read... [14:58:29]Read from MH i2c: 01 07 00 [14:58:29]MH_I2C_Read... [14:58:29]Read from MH i2c: 01 07 00 11 91 00 00 00 00 00 71 0C 26 [14:58:29]RasterBufferAndPrint [14:58:29]line [14:58:29]line [14:58:29]line [14:58:29]line [14:58:29]line [14:58:29]written 0, free lines is 3187 [14:58:29]MH_Cut [14:58:29]Write to MH i2c: D1 01 00 18 91 01 7B [14:58:29]Write i2c OK [14:58:29]MH_I2C_Read... [14:58:29]Read from MH i2c: D1 [14:58:29]MH_I2C_Read... [14:58:29]Read from MH i2c: D1 01 00 [14:58:29]MH_I2C_Read... [14:58:29]Read from MH i2c: D1 01 00 18 91 00 7A [14:58:29]Write to MH i2c: 01 00 00 19 91 AA [14:58:29]Write i2c OK [14:58:29]MH_I2C_Read... [14:58:29]OFD Sender: No OFD packet to send [14:58:30]*** Cut start [14:58:30]*** Purtial cut [14:58:30]*** Stage 1: CUTSNS_PIN = 1 [14:58:32]Read from MH i2c: 01 [14:58:32]MH_I2C_Read... [14:58:32]*** Stop cut motor [14:58:32]*** Cut end [14:58:32]Read from MH i2c: 01 07 00 [14:58:32]MH_I2C_Read... [14:58:32]Read from MH i2c: 01 07 00 19 91 00 00 00 00 00 FF 0F BF [14:58:32]process_action close_receipt done [14:58:32]requested_data is exist [14:58:32]produce_requested_data [14:58:32]requested_item fm.sn is exist - process it [14:58:32]wFMCommunicate request_size=4 [14:58:32]MH_SAM_APDU [14:58:32]CAPDU: 80 11 00 00 [14:58:32]Write to MH i2c: E2 08 00 1A 91 80 11 00 00 00 00 00 00 25 [14:58:32]Write i2c OK [14:58:32]MH_I2C_Read... [14:58:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:32]Read from MH i2c: E2 [14:58:32]MH_I2C_Read... [14:58:32]Read from MH i2c: E2 17 00 [14:58:32]MH_I2C_Read... [14:58:32]Read from MH i2c: E2 17 00 1A 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 72 [14:58:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [14:58:32]wFMCommunicate OK [14:58:32]requested_item fd.num is exist - process it [14:58:32]SAM_PROTO_GetFieldsCounters [14:58:32]wFMCommunicate request_size=4 [14:58:32]MH_SAM_APDU [14:58:32]CAPDU: 80 13 00 00 [14:58:32]Write to MH i2c: E2 08 00 1B 91 80 13 00 00 00 00 00 00 28 [14:58:32]Write i2c OK [14:58:32]MH_I2C_Read... [14:58:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:32]Read from MH i2c: E2 [14:58:32]MH_I2C_Read... [14:58:32]Read from MH i2c: E2 62 00 [14:58:32]MH_I2C_Read... [14:58:32]Read from MH i2c: E2 62 00 1B 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 81 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 FF [14:58: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 81 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:58:32]wFMCommunicate OK [14:58:32]SAM_PROTO_GetFieldsCounters done [14:58:32]requested_item shift.num is exist - process it [14:58:32]requested_item shift.opened is exist - process it [14:58:32]req_shift_opened [14:58:32]FM_GetShiftState [14:58:32]SAM_PROTO_GetShiftState [14:58:32]wFMCommunicate request_size=4 [14:58:32]MH_SAM_APDU [14:58:32]CAPDU: 80 13 01 00 [14:58:32]Write to MH i2c: E2 08 00 1C 91 80 13 01 00 00 00 00 00 2A [14:58:32]Write i2c OK [14:58:32]MH_I2C_Read... [14:58:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:32]Read from MH i2c: E2 [14:58:32]MH_I2C_Read... [14:58:32]Read from MH i2c: E2 0E 00 [14:58:32]MH_I2C_Read... [14:58:32]Read from MH i2c: E2 0E 00 1C 91 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 67 [14:58:32]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [14:58:32]wFMCommunicate OK [14:58:32]SAM_PROTO_GetShiftState done [14:58:32]FM_GetShiftState done [14:58:32]req_shift_opened done [14:58:32]requested_item shift.open_date is exist - process it [14:58:32]req_shift_open_date [14:58:32]req_shift_open_date done [14:58:32]produce_requested_data done [14:58:32]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260737,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [14:58:32]process_action_free close_receipt [14:58:32]json_value_free [14:58:32]json_value_free done [14:58:32]process_json_proto returns [14:58:32]Send response to host [14:58:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260737,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [14:58:32]free response buf [14:58:32]execute_script done [14:58:32]execute_script returns [14:58:32]free content buf [14:58:32]Sock 7.Close socket [14:58:32]Sock 7.Thread stoped [14:58:34]OFD Sender: No OFD packet to send [14:58:39]OFD Sender: No OFD packet to send [14:58:44]OFD Sender: No OFD packet to send [14:58:49]OFD Sender: No OFD packet to send [14:58:54]OFD Sender: No OFD packet to send [14:58:59]OFD Sender: No OFD packet to send [14:59:04]OFD Sender: No OFD packet to send [14:59:09]OFD Sender: No OFD packet to send [14:59:14]OFD Sender: No OFD packet to send [14:59:19]OFD Sender: No OFD packet to send [14:59:24]OFD Sender: No OFD packet to send [14:59:29]OFD Sender: No OFD packet to send [14:59:34]OFD Sender: No OFD packet to send [14:59:39]OFD Sender: No OFD packet to send [14:59:44]OFD Sender: No OFD packet to send [14:59:49]OFD Sender: No OFD packet to send [14:59:54]OFD Sender: No OFD packet to send [14:59:59]OFD Sender: No OFD packet to send [15:00:02]accept exits with 9 [15:00:02]New connection [15:00:02]New thread 3066473828 created [15:00:02]Thread 3066617188 joined [15:00:02]Waiting for new connection... [15:00:02] Sock 9.Parse request [15:00:02]Sock 9.Check first char [15:00:02]Sock 9.First char is OK [15:00:02]request: POST /json_proto HTTP/1.0 [15:00:02]Method: POST [15:00:02]URL: /json_proto [15:00:02]Method is POST - this is cgi request [15:00:02]url: /json_proto [15:00:02]query_string will be loaded in cgi processing [15:00:02]execute_cgi json_proto POST (null) [15:00:02]execute_cgi path=json_proto method=POST [15:00:02]POST find Content-Length [15:00:02]Host: 172.17.55.133:8080 [15:00:02]Content-Length: 678 [15:00:02]Content-Type: application/json [15:00:02] [15:00:02]POST finish read [15:00:02]Found Content-Length = 678 [15:00:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:02]execute_script... [15:00: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)1036289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:02]POST & json_proto [15:00:02]process_json_proto [15:00:02]json parsed OK: [15:00:02]protocol is kg_v1.0 [15:00:02]action value=close_receipt [15:00:02]process_action close_receipt [15:00:02]cmd_close_receipt [15:00:02]MH_GetDate [15:00:02]Write to MH i2c: F0 00 00 1D 91 9D [15:00:02]Write i2c OK [15:00:02]MH_I2C_Read... [15:00:02]Read from MH i2c: F0 [15:00:02]MH_I2C_Read... [15:00:02]Read from MH i2c: F0 09 00 [15:00:02]MH_I2C_Read... [15:00:02]Read from MH i2c: F0 09 00 1D 91 00 77 0C C2 66 34 48 D8 65 0A [15:00:02]GetLastDocTimeStamp 1723993112 [15:00:02]current date 1723993207 [15:00:02]FM_GetShiftState [15:00:02]SAM_PROTO_GetShiftState [15:00:02]wFMCommunicate request_size=4 [15:00:02]MH_SAM_APDU [15:00:02]CAPDU: 80 13 01 00 [15:00:02]Write to MH i2c: E2 08 00 1E 91 80 13 01 00 00 00 00 00 2C [15:00:02]Write i2c OK [15:00:02]MH_I2C_Read... [15:00:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:02]Read from MH i2c: E2 [15:00:02]MH_I2C_Read... [15:00:02]Read from MH i2c: E2 0E 00 [15:00:02]MH_I2C_Read... [15:00:02]Read from MH i2c: E2 0E 00 1E 91 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 69 [15:00:02]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:00:02]wFMCommunicate OK [15:00:02]SAM_PROTO_GetShiftState done [15:00:02]FM_GetShiftState done [15:00:02]opened in 1723940556 [15:00:02]opened+sec_in_day 1724026956 [15:00:02]quantity*price = 50036 [15:00:02]sum+1 = 50037 [15:00:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 296 18.08.2024 15:00 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260738 ФПД: 109165256121121 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T150007&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260738&fm=109165256121121&tin=02508201610067®Number=0000000000091865&sum=50000 [15:00:03]StoreToDocumentArchive [15:00:03]shift 449 fd 260738 [15:00:03]save to /storage/0449/doc_00260738 [15:00:03]save last doc name /storage/0449/doc_00260738 to /storage/kkm_last_doc_name [15:00:03]save OK [15:00:03]Clear old archive folders... [15:00:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:00:03]tlvbuf is 00383170 [15:00:03]SAM_PROTO_ClearQueue [15:00:03]wFMCommunicate request_size=4 [15:00:03]MH_SAM_APDU [15:00:03]CAPDU: 80 09 00 00 [15:00:03]Write to MH i2c: E2 08 00 2B 91 80 09 00 00 00 00 00 00 2E [15:00:03]Write i2c OK [15:00:03]MH_I2C_Read... [15:00:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:00:03]Read from MH i2c: E2 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 03 00 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 03 00 2B 91 00 90 00 30 [15:00:03]RAPDU: 90 00 [15:00:03]wFMCommunicate OK [15:00:03]SAM_PROTO_ClearQueue done [15:00:03]KKMCreateOFDPacket [15:00:03]OFDProtocolAddRootSTLVToBuf [15:00:03]FM_MakeSignedData [15:00:03]FM_MakeSignedData [15:00:03]SAM_PROTO_SignData [15:00:03]wFMCommunicate request_size=4 [15:00:03]MH_SAM_APDU [15:00:03]CAPDU: 80 0D 01 02 [15:00:03]Write to MH i2c: E2 08 00 2C 91 80 0D 01 02 00 00 00 00 36 [15:00:03]Write i2c OK [15:00:03]MH_I2C_Read... [15:00:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:00:03]Read from MH i2c: E2 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 03 00 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 03 00 2C 91 00 90 00 31 [15:00:03]RAPDU: 90 00 [15:00:03]wFMCommunicate OK [15:00:03]wFMCommunicate request_size=255 [15:00:03]MH_SAM_APDU [15:00:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 28 01 00 00 F4 03 04 00 77 0C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 82 FA 03 00 35 04 06 00 63 [15:00:03]Write to MH i2c: E2 02 01 2D 91 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 28 01 00 00 F4 03 04 00 77 0C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 82 FA 03 00 35 04 06 00 63 00 00 2B [15:00:03]Write i2c OK [15:00:03]MH_I2C_Read... [15:00:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:03]Read from MH i2c: E2 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 03 00 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 03 00 2D 91 00 90 00 32 [15:00:03]RAPDU: 90 00 [15:00:03]wFMCommunicate OK [15:00:03]wFMCommunicate request_size=10 [15:00:03]MH_SAM_APDU [15:00:03]CAPDU: 80 0D 02 02 05 49 04 50 1B 21 [15:00:03]Write to MH i2c: E2 0D 00 2E 91 80 0D 02 02 05 00 49 04 50 1B 21 00 00 1C [15:00:03]Write i2c OK [15:00:03]MH_I2C_Read... [15:00:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:03]Read from MH i2c: E2 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 03 00 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 03 00 2E 91 00 90 00 33 [15:00:03]RAPDU: 90 00 [15:00:03]wFMCommunicate OK [15:00:03]wFMCommunicate request_size=4 [15:00:03]MH_SAM_APDU [15:00:03]CAPDU: 80 0D 03 02 [15:00:03]Write to MH i2c: E2 08 00 2F 91 80 0D 03 02 00 00 00 00 3B [15:00:03]Write i2c OK [15:00:03]MH_I2C_Read... [15:00:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:00:03]Read from MH i2c: E2 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 0B 00 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 0B 00 2F 91 00 A0 22 8F EF 6A 9B 89 76 90 00 80 [15:00:03]RAPDU: A0 22 8F EF 6A 9B 89 76 90 00 [15:00:03]wFMCommunicate OK [15:00:03]SAM_PROTO_SignData done [15:00:03]FM_MakeSignedData done [15:00:03]CreateOFDProtocolMessage [15:00:03]wFMCommunicate request_size=4 [15:00:03]MH_SAM_APDU [15:00:03]CAPDU: 80 11 00 00 [15:00:03]Write to MH i2c: E2 08 00 30 91 80 11 00 00 00 00 00 00 3B [15:00:03]Write i2c OK [15:00:03]MH_I2C_Read... [15:00:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:03]Read from MH i2c: E2 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 17 00 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 17 00 30 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 88 [15:00:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:00:03]wFMCommunicate OK [15:00:03]CreateOFDProtocolMessage done [15:00:03]OFDSenderStorePacket 260738 [15:00:03]StoreOFDPacket docnum=260738 [15:00:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 B7 75 07 01 20 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 28 01 00 00 F4 03 04 00 77 0C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 82 FA 03 00 35 04 06 00 63 49 04 50 1B 21 A0 22 8F EF 6A 9B 89 76 [15:00:03]CheckFolder [15:00:03]dirname=/storage/ofd_packets [15:00:03]CheckFolder done [15:00:03]ProducePacketName [15:00:03]name=ofd_packets/00260738 [15:00:03]NVStorageSaveData ofd_packets/00260738 [15:00:03]File name is /storage/ofd_packets/00260738 [15:00:03]Write 301 bytes [15:00:03]NVStorageSaveData done [15:00:03]OFDSenderStorePacket done [15:00:03]KKMCreateOFDPacket done [15:00:03]NVStorageSaveData kkm_last_timestamp [15:00:03]File name is /storage/kkm_last_timestamp [15:00:03]Write 4 bytes [15:00:03]NVStorageSaveData done [15:00:03]ExternCall_PrintAddStr [15:00:03]wPrintStart [15:00:03]Write to MH i2c: 01 00 00 31 91 C2 [15:00:03]Write i2c OK [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: 01 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: 01 07 00 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: 01 07 00 31 91 00 00 00 00 00 FF 0F D7 [15:00:03]RasterBufferAndPrint [15:00:03]line Счет N : (1)1036289 [15:00:03]line ИНН: 02508201610067 [15:00:03]line Контрольно-Кассовый Чек [15:00:03]line ПРОДАЖА [15:00:03]line ТРК (МРК, ГНК) : 22 [15:00:03]line Товар: 2710124130 [15:00:03]line Аи-92-К-5 [15:00:03]line 7.380 * 67.80 [15:00:03]line = 500.36 [15:00:03]line НДС 12% НСП 1% [15:00:03]line > о реализуемом товаре [15:00:03]line ОКРУГЛЕНИЕ: -0.36 [15:00:03]line ИТОГО: 500.00 [15:00:03]line Внесено: 500.00 [15:00:03]line СДАЧА: 0.00 [15:00:03]line НСП 1% : 4.43 [15:00:03]line НДС 12% : 53.14 [15:00:03]line Наличными: 500.00 [15:00:03]line Безнал.: 0.00 [15:00:03]line Место: АЗС № 94 "Партнер Нефть" [15:00:03]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [15:00:03]line СНО: Общий режим [15:00:03]line Чек 296 18.08.2024 15:00 [15:00:03]line Смена: 449 ФФД: 1.0 [15:00:03]line ЗНМ: 0300000099 [15:00:03]line РНМ: 0000000000091865 [15:00:03]line Версия ККМ: 001 [15:00:03]line ФМ: 0000000000871820 [15:00:03]line ФД: 260738 [15:00:03]line ФПД: 109165256121121 [15:00:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T150007&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260738&fm=109165256121121&tin=02508201610067®Number=0000000000091865&sum=50000 [15:00:04]written 0, free lines is 4095 [15:00:04]OFD Sender: Processing packet 260738 [packets to send 192, broken 191] [15:00:04]ProducePacketName [15:00:04]name=ofd_packets/00260738 [15:00:04]OFD Sender: To server: pG, [15:00:04]CommunicateWithHost lk.salyk.kg:30040 [15:00:04]ConnectInit lk.salyk.kg [15:00:04]Connected sock=10 [15:00: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 30 0F 01 00 00 B7 75 07 01 20 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 28 01 00 00 F4 03 04 00 77 0C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 82 FA 03 00 35 04 06 00 63 49 04 50 1B 21 A0 22 8F EF 6A 9B 89 76 [15:00: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 30 4F 00 00 00 D1 89 47 00 6B 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 82 FA 03 00 F4 03 04 00 CC B5 C1 66 B6 04 01 00 00 49 10 FA 5B 4F 41 E0 68 [15:00:04]CommunicateWithHost err = 0 [15:00:04]CheckOFDResponse [15:00:04]1017 (14) - 77093643461234 [15:00:04]1041 (16) - 0000000000871820 [15:00:04]1040 (4) - 260738 [15:00:04]1012 (4) - 18.08.2024 08:50 [15:00:04]1206 (1) - 0 [15:00:04]OFD Sender: Remove packet 260738 [15:00:04]ProducePacketName [15:00:04]name=ofd_packets/00260738 [15:00:04]NVStorageDeleteData [15:00:04]Write to MH i2c: 01 00 00 5C 91 ED [15:00:04]Write i2c OK [15:00:04]MH_I2C_Read... [15:00:04]Read from MH i2c: 01 [15:00:04]MH_I2C_Read... [15:00:04]Read from MH i2c: 01 07 00 [15:00:04]MH_I2C_Read... [15:00:04]Read from MH i2c: 01 07 00 5C 91 00 00 00 00 00 6A 0C 6A [15:00:04]RasterBufferAndPrint [15:00:04]line [15:00:04]line [15:00:04]line [15:00:04]line [15:00:04]line [15:00:04]written 0, free lines is 3181 [15:00:04]MH_Cut [15:00:04]Write to MH i2c: D1 01 00 63 91 01 C6 [15:00:04]Write i2c OK [15:00:04]MH_I2C_Read... [15:00:04]Read from MH i2c: D1 [15:00:04]MH_I2C_Read... [15:00:04]Read from MH i2c: D1 01 00 [15:00:04]MH_I2C_Read... [15:00:04]Read from MH i2c: D1 01 00 63 91 00 C5 [15:00:04]Write to MH i2c: 01 00 00 64 91 F5 [15:00:04]Write i2c OK [15:00:04]MH_I2C_Read... [15:00:04]OFD Sender: No OFD packet to send [15:00:05]*** Cut start [15:00:05]*** Purtial cut [15:00:05]*** Stage 1: CUTSNS_PIN = 1 [15:00:07]Read from MH i2c: 01 [15:00:07]MH_I2C_Read... [15:00:07]*** Stop cut motor [15:00:07]*** Cut end [15:00:07]Read from MH i2c: 01 07 00 [15:00:07]MH_I2C_Read... [15:00:07]Read from MH i2c: 01 07 00 64 91 00 00 00 00 00 FF 0F 0A [15:00:07]process_action close_receipt done [15:00:07]requested_data is exist [15:00:07]produce_requested_data [15:00:07]requested_item fm.sn is exist - process it [15:00:07]wFMCommunicate request_size=4 [15:00:07]MH_SAM_APDU [15:00:07]CAPDU: 80 11 00 00 [15:00:07]Write to MH i2c: E2 08 00 65 91 80 11 00 00 00 00 00 00 70 [15:00:07]Write i2c OK [15:00:07]MH_I2C_Read... [15:00:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:07]Read from MH i2c: E2 [15:00:07]MH_I2C_Read... [15:00:07]Read from MH i2c: E2 17 00 [15:00:07]MH_I2C_Read... [15:00:07]Read from MH i2c: E2 17 00 65 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 BD [15:00:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:00:07]wFMCommunicate OK [15:00:07]requested_item fd.num is exist - process it [15:00:07]SAM_PROTO_GetFieldsCounters [15:00:07]wFMCommunicate request_size=4 [15:00:07]MH_SAM_APDU [15:00:07]CAPDU: 80 13 00 00 [15:00:07]Write to MH i2c: E2 08 00 66 91 80 13 00 00 00 00 00 00 73 [15:00:07]Write i2c OK [15:00:07]MH_I2C_Read... [15:00:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:00:07]Read from MH i2c: E2 [15:00:07]MH_I2C_Read... [15:00:07]Read from MH i2c: E2 62 00 [15:00:07]MH_I2C_Read... [15:00:07]Read from MH i2c: E2 62 00 66 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 82 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 4E [15:00: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 82 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:00:07]wFMCommunicate OK [15:00:07]SAM_PROTO_GetFieldsCounters done [15:00:07]requested_item shift.num is exist - process it [15:00:07]requested_item shift.opened is exist - process it [15:00:07]req_shift_opened [15:00:07]FM_GetShiftState [15:00:07]SAM_PROTO_GetShiftState [15:00:07]wFMCommunicate request_size=4 [15:00:07]MH_SAM_APDU [15:00:07]CAPDU: 80 13 01 00 [15:00:07]Write to MH i2c: E2 08 00 67 91 80 13 01 00 00 00 00 00 75 [15:00:07]Write i2c OK [15:00:07]MH_I2C_Read... [15:00:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:07]Read from MH i2c: E2 [15:00:07]MH_I2C_Read... [15:00:07]Read from MH i2c: E2 0E 00 [15:00:07]MH_I2C_Read... [15:00:07]Read from MH i2c: E2 0E 00 67 91 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B2 [15:00:07]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:00:07]wFMCommunicate OK [15:00:07]SAM_PROTO_GetShiftState done [15:00:07]FM_GetShiftState done [15:00:07]req_shift_opened done [15:00:07]requested_item shift.open_date is exist - process it [15:00:07]req_shift_open_date [15:00:07]req_shift_open_date done [15:00:07]produce_requested_data done [15:00:07]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260738,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [15:00:07]process_action_free close_receipt [15:00:07]json_value_free [15:00:07]json_value_free done [15:00:07]process_json_proto returns [15:00:07]Send response to host [15:00:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260738,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [15:00:07]free response buf [15:00:07]execute_script done [15:00:07]execute_script returns [15:00:07]free content buf [15:00:07]Sock 9.Close socket [15:00:07]Sock 9.Thread stoped [15:00:09]OFD Sender: No OFD packet to send [15:00:14]OFD Sender: No OFD packet to send [15:00:19]OFD Sender: No OFD packet to send [15:00:24]OFD Sender: No OFD packet to send [15:00:29]OFD Sender: No OFD packet to send [15:00:34]OFD Sender: No OFD packet to send [15:00:39]OFD Sender: No OFD packet to send [15:00:44]OFD Sender: No OFD packet to send [15:00:49]OFD Sender: No OFD packet to send [15:00:54]OFD Sender: No OFD packet to send [15:00:59]OFD Sender: No OFD packet to send [15:01:04]OFD Sender: No OFD packet to send [15:01:09]OFD Sender: No OFD packet to send [15:01:14]OFD Sender: No OFD packet to send [15:01:20]OFD Sender: No OFD packet to send [15:01:25]OFD Sender: No OFD packet to send [15:01:30]OFD Sender: No OFD packet to send [15:01:35]OFD Sender: No OFD packet to send [15:01:40]OFD Sender: No OFD packet to send [15:01:42]accept exits with 7 [15:01:42]New connection [15:01:42]New thread 3066617188 created [15:01:42]Thread 3066473828 joined [15:01:42]Waiting for new connection... [15:01:42] Sock 7.Parse request [15:01:42]Sock 7.Check first char [15:01:42]Sock 7.First char is OK [15:01:42]request: POST /json_proto HTTP/1.0 [15:01:42]Method: POST [15:01:42]URL: /json_proto [15:01:42]Method is POST - this is cgi request [15:01:42]url: /json_proto [15:01:42]query_string will be loaded in cgi processing [15:01:42]execute_cgi json_proto POST (null) [15:01:42]execute_cgi path=json_proto method=POST [15:01:42]POST find Content-Length [15:01:42]Host: 172.17.55.133:8080 [15:01:42]Content-Length: 683 [15:01:42]Content-Type: application/json [15:01:42] [15:01:42]POST finish read [15:01:42]Found Content-Length = 683 [15:01:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:42]execute_script... [15:01: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)1036290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:42]POST & json_proto [15:01:42]process_json_proto [15:01:42]json parsed OK: [15:01:42]protocol is kg_v1.0 [15:01:42]action value=close_receipt [15:01:42]process_action close_receipt [15:01:42]cmd_close_receipt [15:01:42]MH_GetDate [15:01:42]Write to MH i2c: F0 00 00 68 91 E8 [15:01:42]Write i2c OK [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: F0 [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: F0 09 00 [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: F0 09 00 68 91 00 DB 0C C2 66 34 48 D8 65 B9 [15:01:42]GetLastDocTimeStamp 1723993207 [15:01:42]current date 1723993307 [15:01:42]FM_GetShiftState [15:01:42]SAM_PROTO_GetShiftState [15:01:42]wFMCommunicate request_size=4 [15:01:42]MH_SAM_APDU [15:01:42]CAPDU: 80 13 01 00 [15:01:42]Write to MH i2c: E2 08 00 69 91 80 13 01 00 00 00 00 00 77 [15:01:42]Write i2c OK [15:01:42]MH_I2C_Read... [15:01:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:42]Read from MH i2c: E2 [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: E2 0E 00 [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: E2 0E 00 69 91 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B4 [15:01:42]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:01:42]wFMCommunicate OK [15:01:42]SAM_PROTO_GetShiftState done [15:01:42]FM_GetShiftState done [15:01:42]opened in 1723940556 [15:01:42]opened+sec_in_day 1724026956 [15:01:42]quantity*price = 100005 [15:01:42]sum+1 = 100006 [15:01:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 297 18.08.2024 15:01 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260739 ФПД: 137445691168171 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T150148&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260739&fm=137445691168171&tin=02508201610067®Number=0000000000091865&sum=100000 [15:01:43]StoreToDocumentArchive [15:01:43]shift 449 fd 260739 [15:01:43]save to /storage/0449/doc_00260739 [15:01:43]save last doc name /storage/0449/doc_00260739 to /storage/kkm_last_doc_name [15:01:43]save OK [15:01:43]Clear old archive folders... [15:01:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:01:43]tlvbuf is 003834B0 [15:01:43]SAM_PROTO_ClearQueue [15:01:43]wFMCommunicate request_size=4 [15:01:43]MH_SAM_APDU [15:01:43]CAPDU: 80 09 00 00 [15:01:43]Write to MH i2c: E2 08 00 76 91 80 09 00 00 00 00 00 00 79 [15:01:43]Write i2c OK [15:01:43]MH_I2C_Read... [15:01:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:01:43]Read from MH i2c: E2 [15:01:43]MH_I2C_Read... [15:01:43]Read from MH i2c: E2 03 00 [15:01:43]MH_I2C_Read... [15:01:43]Read from MH i2c: E2 03 00 76 91 00 90 00 7B [15:01:43]RAPDU: 90 00 [15:01:43]wFMCommunicate OK [15:01:43]SAM_PROTO_ClearQueue done [15:01:43]KKMCreateOFDPacket [15:01:43]OFDProtocolAddRootSTLVToBuf [15:01:43]FM_MakeSignedData [15:01:43]FM_MakeSignedData [15:01:43]SAM_PROTO_SignData [15:01:43]wFMCommunicate request_size=4 [15:01:43]MH_SAM_APDU [15:01:43]CAPDU: 80 0D 01 02 [15:01:43]Write to MH i2c: E2 08 00 77 91 80 0D 01 02 00 00 00 00 81 [15:01:43]Write i2c OK [15:01:43]MH_I2C_Read... [15:01:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:01:43]Read from MH i2c: E2 [15:01:43]MH_I2C_Read... [15:01:43]Read from MH i2c: E2 03 00 [15:01:43]MH_I2C_Read... [15:01:43]Read from MH i2c: E2 03 00 77 91 00 90 00 7C [15:01:43]RAPDU: 90 00 [15:01:43]wFMCommunicate OK [15:01:43]wFMCommunicate request_size=255 [15:01:43]MH_SAM_APDU [15:01:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 DC 0C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 83 FA 03 00 35 04 06 00 7D [15:01:43]Write to MH i2c: E2 02 01 78 91 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 DC 0C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 83 FA 03 00 35 04 06 00 7D 00 00 86 [15:01:43]Write i2c OK [15:01:43]MH_I2C_Read... [15:01:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:44]Read from MH i2c: E2 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: E2 03 00 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: E2 03 00 78 91 00 90 00 7D [15:01:44]RAPDU: 90 00 [15:01:44]wFMCommunicate OK [15:01:44]wFMCommunicate request_size=10 [15:01:44]MH_SAM_APDU [15:01:44]CAPDU: 80 0D 02 02 05 01 91 99 15 AB [15:01:44]Write to MH i2c: E2 0D 00 79 91 80 0D 02 02 05 00 01 91 99 15 AB 00 00 79 [15:01:44]Write i2c OK [15:01:44]MH_I2C_Read... [15:01:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:44]Read from MH i2c: E2 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: E2 03 00 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: E2 03 00 79 91 00 90 00 7E [15:01:44]RAPDU: 90 00 [15:01:44]wFMCommunicate OK [15:01:44]wFMCommunicate request_size=4 [15:01:44]MH_SAM_APDU [15:01:44]CAPDU: 80 0D 03 02 [15:01:44]Write to MH i2c: E2 08 00 7A 91 80 0D 03 02 00 00 00 00 86 [15:01:44]Write i2c OK [15:01:44]MH_I2C_Read... [15:01:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:01:44]Read from MH i2c: E2 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: E2 0B 00 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: E2 0B 00 7A 91 00 22 5E 6D 26 3E 69 94 D6 90 00 AB [15:01:44]RAPDU: 22 5E 6D 26 3E 69 94 D6 90 00 [15:01:44]wFMCommunicate OK [15:01:44]SAM_PROTO_SignData done [15:01:44]FM_MakeSignedData done [15:01:44]CreateOFDProtocolMessage [15:01:44]wFMCommunicate request_size=4 [15:01:44]MH_SAM_APDU [15:01:44]CAPDU: 80 11 00 00 [15:01:44]Write to MH i2c: E2 08 00 7B 91 80 11 00 00 00 00 00 00 86 [15:01:44]Write i2c OK [15:01:44]MH_I2C_Read... [15:01:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:44]Read from MH i2c: E2 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: E2 17 00 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: E2 17 00 7B 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D3 [15:01:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:01:44]wFMCommunicate OK [15:01:44]CreateOFDProtocolMessage done [15:01:44]OFDSenderStorePacket 260739 [15:01:44]StoreOFDPacket docnum=260739 [15:01:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 C7 7E 07 01 D3 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 DC 0C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 83 FA 03 00 35 04 06 00 7D 01 91 99 15 AB 22 5E 6D 26 3E 69 94 D6 [15:01:44]CheckFolder [15:01:44]dirname=/storage/ofd_packets [15:01:44]CheckFolder done [15:01:44]ProducePacketName [15:01:44]name=ofd_packets/00260739 [15:01:44]NVStorageSaveData ofd_packets/00260739 [15:01:44]File name is /storage/ofd_packets/00260739 [15:01:44]Write 301 bytes [15:01:44]NVStorageSaveData done [15:01:44]OFDSenderStorePacket done [15:01:44]KKMCreateOFDPacket done [15:01:44]NVStorageSaveData kkm_last_timestamp [15:01:44]File name is /storage/kkm_last_timestamp [15:01:44]Write 4 bytes [15:01:44]NVStorageSaveData done [15:01:44]ExternCall_PrintAddStr [15:01:44]wPrintStart [15:01:44]Write to MH i2c: 01 00 00 7C 91 0D [15:01:44]Write i2c OK [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: 01 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: 01 07 00 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: 01 07 00 7C 91 00 00 00 00 00 FF 0F 22 [15:01:44]RasterBufferAndPrint [15:01:44]line Счет N : (1)1036290 [15:01:44]line ИНН: 02508201610067 [15:01:44]line Контрольно-Кассовый Чек [15:01:44]line ПРОДАЖА [15:01:44]line ТРК (МРК, ГНК) : 22 [15:01:44]line Товар: 2710124130 [15:01:44]line Аи-92-К-5 [15:01:44]line 14.750 * 67.80 [15:01:44]line = 1000.05 [15:01:44]line НДС 12% НСП 1% [15:01:44]line > о реализуемом товаре [15:01:44]line ОКРУГЛЕНИЕ: -0.05 [15:01:44]line ИТОГО: 1000.00 [15:01:44]line Внесено: 1000.00 [15:01:44]line СДАЧА: 0.00 [15:01:44]line НСП 1% : 8.85 [15:01:44]line НДС 12% : 106.20 [15:01:44]line Наличными: 1000.00 [15:01:44]line Безнал.: 0.00 [15:01:44]line Место: АЗС № 94 "Партнер Нефть" [15:01:44]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [15:01:44]line СНО: Общий режим [15:01:44]line Чек 297 18.08.2024 15:01 [15:01:44]line Смена: 449 ФФД: 1.0 [15:01:44]line ЗНМ: 0300000099 [15:01:44]line РНМ: 0000000000091865 [15:01:44]line Версия ККМ: 001 [15:01:44]line ФМ: 0000000000871820 [15:01:44]line ФД: 260739 [15:01:44]line ФПД: 137445691168171 [15:01:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T150148&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260739&fm=137445691168171&tin=02508201610067®Number=0000000000091865&sum=100000 [15:01:44]written 0, free lines is 4095 [15:01:44]OFD Sender: Processing packet 260739 [packets to send 192, broken 191] [15:01:44]ProducePacketName [15:01:44]name=ofd_packets/00260739 [15:01:44]OFD Sender: To server: pG, [15:01:44]CommunicateWithHost lk.salyk.kg:30040 [15:01:44]ConnectInit lk.salyk.kg [15:01:44]Connected sock=9 [15:01: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 30 0F 01 00 00 C7 7E 07 01 D3 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 DC 0C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 83 FA 03 00 35 04 06 00 7D 01 91 99 15 AB 22 5E 6D 26 3E 69 94 D6 [15:01:44]Write to MH i2c: 01 00 00 A7 91 38 [15:01:44]Write i2c OK [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: 01 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: 01 07 00 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: 01 07 00 A7 91 00 00 00 00 00 72 0C BD [15:01:44]RasterBufferAndPrint [15:01:44]line [15:01:44]line [15:01:44]line [15:01:44]line [15:01:44]line [15:01:44]written 0, free lines is 3189 [15:01:44]MH_Cut [15:01:44]Write to MH i2c: D1 01 00 AE 91 01 11 [15:01:44]Write i2c OK [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: D1 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: D1 01 00 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: D1 01 00 AE 91 00 10 [15:01:44]Write to MH i2c: 01 00 00 AF 91 40 [15:01:44]Write i2c OK [15:01:44]MH_I2C_Read... [15:01: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 30 4F 00 00 00 F5 D5 47 00 E2 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 30 10 04 04 00 83 FA 03 00 F4 03 04 00 30 B6 C1 66 B6 04 01 00 00 34 D6 89 98 06 FC 2E 3A [15:01:44]CommunicateWithHost err = 0 [15:01:44]CheckOFDResponse [15:01:44]1017 (14) - 77093643461234 [15:01:44]1041 (16) - 0000000000871820 [15:01:44]1040 (4) - 260739 [15:01:44]1012 (4) - 18.08.2024 08:52 [15:01:44]1206 (1) - 0 [15:01:44]OFD Sender: Remove packet 260739 [15:01:44]ProducePacketName [15:01:44]name=ofd_packets/00260739 [15:01:44]NVStorageDeleteData [15:01:45]OFD Sender: No OFD packet to send [15:01:45]*** Cut start [15:01:45]*** Purtial cut [15:01:45]*** Stage 1: CUTSNS_PIN = 1 [15:01:47]Read from MH i2c: 01 [15:01:47]MH_I2C_Read... [15:01:47]*** Stop cut motor [15:01:47]*** Cut end [15:01:47]Read from MH i2c: 01 07 00 [15:01:47]MH_I2C_Read... [15:01:47]Read from MH i2c: 01 07 00 AF 91 00 00 00 00 00 FF 0F 55 [15:01:47]process_action close_receipt done [15:01:47]requested_data is exist [15:01:47]produce_requested_data [15:01:47]requested_item fm.sn is exist - process it [15:01:47]wFMCommunicate request_size=4 [15:01:47]MH_SAM_APDU [15:01:47]CAPDU: 80 11 00 00 [15:01:47]Write to MH i2c: E2 08 00 B0 91 80 11 00 00 00 00 00 00 BB [15:01:47]Write i2c OK [15:01:47]MH_I2C_Read... [15:01:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:47]Read from MH i2c: E2 [15:01:47]MH_I2C_Read... [15:01:47]Read from MH i2c: E2 17 00 [15:01:47]MH_I2C_Read... [15:01:47]Read from MH i2c: E2 17 00 B0 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 08 [15:01:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:01:47]wFMCommunicate OK [15:01:47]requested_item fd.num is exist - process it [15:01:47]SAM_PROTO_GetFieldsCounters [15:01:47]wFMCommunicate request_size=4 [15:01:47]MH_SAM_APDU [15:01:47]CAPDU: 80 13 00 00 [15:01:47]Write to MH i2c: E2 08 00 B1 91 80 13 00 00 00 00 00 00 BE [15:01:47]Write i2c OK [15:01:47]MH_I2C_Read... [15:01:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:48]Read from MH i2c: E2 [15:01:48]MH_I2C_Read... [15:01:48]Read from MH i2c: E2 62 00 [15:01:48]MH_I2C_Read... [15:01:48]Read from MH i2c: E2 62 00 B1 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 83 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 9D [15:01: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 83 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:01:48]wFMCommunicate OK [15:01:48]SAM_PROTO_GetFieldsCounters done [15:01:48]requested_item shift.num is exist - process it [15:01:48]requested_item shift.opened is exist - process it [15:01:48]req_shift_opened [15:01:48]FM_GetShiftState [15:01:48]SAM_PROTO_GetShiftState [15:01:48]wFMCommunicate request_size=4 [15:01:48]MH_SAM_APDU [15:01:48]CAPDU: 80 13 01 00 [15:01:48]Write to MH i2c: E2 08 00 B2 91 80 13 01 00 00 00 00 00 C0 [15:01:48]Write i2c OK [15:01:48]MH_I2C_Read... [15:01:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:48]Read from MH i2c: E2 [15:01:48]MH_I2C_Read... [15:01:48]Read from MH i2c: E2 0E 00 [15:01:48]MH_I2C_Read... [15:01:48]Read from MH i2c: E2 0E 00 B2 91 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 FD [15:01:48]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:01:48]wFMCommunicate OK [15:01:48]SAM_PROTO_GetShiftState done [15:01:48]FM_GetShiftState done [15:01:48]req_shift_opened done [15:01:48]requested_item shift.open_date is exist - process it [15:01:48]req_shift_open_date [15:01:48]req_shift_open_date done [15:01:48]produce_requested_data done [15:01:48]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260739,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [15:01:48]process_action_free close_receipt [15:01:48]json_value_free [15:01:48]json_value_free done [15:01:48]process_json_proto returns [15:01:48]Send response to host [15:01:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260739,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [15:01:48]free response buf [15:01:48]execute_script done [15:01:48]execute_script returns [15:01:48]free content buf [15:01:48]Sock 7.Close socket [15:01:48]Sock 7.Thread stoped [15:01:50]OFD Sender: No OFD packet to send [15:01:55]OFD Sender: No OFD packet to send [15:02:00]OFD Sender: No OFD packet to send [15:02:05]OFD Sender: No OFD packet to send [15:02:10]OFD Sender: No OFD packet to send [15:02:15]OFD Sender: No OFD packet to send [15:02:20]OFD Sender: No OFD packet to send [15:02:25]OFD Sender: No OFD packet to send [15:02:30]OFD Sender: No OFD packet to send [15:02:35]OFD Sender: No OFD packet to send [15:02:40]OFD Sender: No OFD packet to send [15:02:45]OFD Sender: No OFD packet to send [15:02:50]OFD Sender: No OFD packet to send [15:02:55]OFD Sender: No OFD packet to send [15:03:00]OFD Sender: No OFD packet to send [15:03:05]OFD Sender: No OFD packet to send [15:03:10]OFD Sender: No OFD packet to send [15:03:15]OFD Sender: No OFD packet to send [15:03:20]OFD Sender: No OFD packet to send [15:03:25]OFD Sender: No OFD packet to send [15:03:30]OFD Sender: No OFD packet to send [15:03:35]OFD Sender: No OFD packet to send [15:03:40]OFD Sender: No OFD packet to send [15:03:45]OFD Sender: No OFD packet to send [15:03:50]OFD Sender: No OFD packet to send [15:03:55]OFD Sender: No OFD packet to send [15:04:00]OFD Sender: No OFD packet to send [15:04:05]accept exits with 10 [15:04:05]New connection [15:04:05]New thread 3066473828 created [15:04:05]Thread 3066617188 joined [15:04:05]Waiting for new connection... [15:04:05] Sock 10.Parse request [15:04:05]Sock 10.Check first char [15:04:05]Sock 10.First char is OK [15:04:05]request: POST /json_proto HTTP/1.0 [15:04:05]Method: POST [15:04:05]URL: /json_proto [15:04:05]Method is POST - this is cgi request [15:04:05]url: /json_proto [15:04:05]query_string will be loaded in cgi processing [15:04:05]execute_cgi json_proto POST (null) [15:04:05]execute_cgi path=json_proto method=POST [15:04:05]POST find Content-Length [15:04:05]Host: 172.17.55.133:8080 [15:04:05]Content-Length: 688 [15:04:05]Content-Type: application/json [15:04:05] [15:04:05]POST finish read [15:04:05]Found Content-Length = 688 [15:04:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "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" ] } } [15:04:05]execute_script... [15: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)1036291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "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" ] } } [15:04:05]POST & json_proto [15:04:05]process_json_proto [15:04:05]json parsed OK: [15:04:05]protocol is kg_v1.0 [15:04:05]action value=close_receipt [15:04:05]process_action close_receipt [15:04:05]cmd_close_receipt [15:04:05]MH_GetDate [15:04:05]Write to MH i2c: F0 00 00 B3 91 33 [15:04:05]Write i2c OK [15:04:05]MH_I2C_Read... [15:04:05]Read from MH i2c: F0 [15:04:05]MH_I2C_Read... [15:04:05]Read from MH i2c: F0 09 00 [15:04:05]MH_I2C_Read... [15:04:05]Read from MH i2c: F0 09 00 B3 91 00 6A 0D C2 66 34 48 D8 65 94 [15:04:05]GetLastDocTimeStamp 1723993308 [15:04:05]current date 1723993450 [15:04:05]FM_GetShiftState [15:04:05]SAM_PROTO_GetShiftState [15:04:05]wFMCommunicate request_size=4 [15:04:05]MH_SAM_APDU [15:04:05]CAPDU: 80 13 01 00 [15:04:05]Write to MH i2c: E2 08 00 B4 91 80 13 01 00 00 00 00 00 C2 [15:04:05]Write i2c OK [15:04:05]MH_I2C_Read... [15:04:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:05]Read from MH i2c: E2 [15:04:05]MH_I2C_Read... [15:04:05]Read from MH i2c: E2 0E 00 [15:04:05]MH_I2C_Read... [15:04:05]Read from MH i2c: E2 0E 00 B4 91 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 FF [15:04:05]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:04:05]wFMCommunicate OK [15:04:05]SAM_PROTO_GetShiftState done [15:04:05]FM_GetShiftState done [15:04:05]opened in 1723940556 [15:04:05]opened+sec_in_day 1724026956 [15:04:05]quantity*price = 200025 [15:04:05]sum+1 = 200026 [15:04:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 298 18.08.2024 15:04 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260740 ФПД: 208785327671975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T150410&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260740&fm=208785327671975&tin=02508201610067®Number=0000000000091865&sum=200000 [15:04:06]StoreToDocumentArchive [15:04:06]shift 449 fd 260740 [15:04:06]save to /storage/0449/doc_00260740 [15:04:06]save last doc name /storage/0449/doc_00260740 to /storage/kkm_last_doc_name [15:04:06]save OK [15:04:06]Clear old archive folders... [15:04:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:04:06]tlvbuf is 003A04E0 [15:04:06]SAM_PROTO_ClearQueue [15:04:06]wFMCommunicate request_size=4 [15:04:06]MH_SAM_APDU [15:04:06]CAPDU: 80 09 00 00 [15:04:06]Write to MH i2c: E2 08 00 C1 91 80 09 00 00 00 00 00 00 C4 [15:04:06]Write i2c OK [15:04:06]MH_I2C_Read... [15:04:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:04:06]Read from MH i2c: E2 [15:04:06]MH_I2C_Read... [15:04:06]Read from MH i2c: E2 03 00 [15:04:06]MH_I2C_Read... [15:04:06]Read from MH i2c: E2 03 00 C1 91 00 90 00 C6 [15:04:06]RAPDU: 90 00 [15:04:06]wFMCommunicate OK [15:04:06]SAM_PROTO_ClearQueue done [15:04:06]KKMCreateOFDPacket [15:04:06]OFDProtocolAddRootSTLVToBuf [15:04:06]FM_MakeSignedData [15:04:06]FM_MakeSignedData [15:04:06]SAM_PROTO_SignData [15:04:06]wFMCommunicate request_size=4 [15:04:06]MH_SAM_APDU [15:04:06]CAPDU: 80 0D 01 02 [15:04:06]Write to MH i2c: E2 08 00 C2 91 80 0D 01 02 00 00 00 00 CC [15:04:06]Write i2c OK [15:04:06]MH_I2C_Read... [15:04:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:04:06]Read from MH i2c: E2 [15:04:06]MH_I2C_Read... [15:04:06]Read from MH i2c: E2 03 00 [15:04:06]MH_I2C_Read... [15:04:06]Read from MH i2c: E2 03 00 C2 91 00 90 00 C7 [15:04:06]RAPDU: 90 00 [15:04:06]wFMCommunicate OK [15:04:06]wFMCommunicate request_size=255 [15:04:06]MH_SAM_APDU [15:04:06]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 2A 01 00 00 F4 03 04 00 6A 0D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 84 FA 03 00 35 04 06 00 [15:04:06]Write to MH i2c: E2 02 01 C3 91 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 2A 01 00 00 F4 03 04 00 6A 0D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 84 FA 03 00 35 04 06 00 00 00 31 [15:04:06]Write i2c OK [15:04:06]MH_I2C_Read... [15:04:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:06]Read from MH i2c: E2 [15:04:06]MH_I2C_Read... [15:04:06]Read from MH i2c: E2 03 00 [15:04:06]MH_I2C_Read... [15:04:06]Read from MH i2c: E2 03 00 C3 91 00 90 00 C8 [15:04:06]RAPDU: 90 00 [15:04:06]wFMCommunicate OK [15:04:06]wFMCommunicate request_size=11 [15:04:06]MH_SAM_APDU [15:04:06]CAPDU: 80 0D 02 02 06 BD E3 9F 4A 4A A7 [15:04:06]Write to MH i2c: E2 0E 00 C4 91 80 0D 02 02 06 00 BD E3 9F 4A 4A A7 00 00 55 [15:04:06]Write i2c OK [15:04:06]MH_I2C_Read... [15:04:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:07]Read from MH i2c: E2 [15:04:07]MH_I2C_Read... [15:04:07]Read from MH i2c: E2 03 00 [15:04:07]MH_I2C_Read... [15:04:07]Read from MH i2c: E2 03 00 C4 91 00 90 00 C9 [15:04:07]RAPDU: 90 00 [15:04:07]wFMCommunicate OK [15:04:07]wFMCommunicate request_size=4 [15:04:07]MH_SAM_APDU [15:04:07]CAPDU: 80 0D 03 02 [15:04:07]Write to MH i2c: E2 08 00 C5 91 80 0D 03 02 00 00 00 00 D1 [15:04:07]Write i2c OK [15:04:07]MH_I2C_Read... [15:04:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:04:07]Read from MH i2c: E2 [15:04:07]MH_I2C_Read... [15:04:07]Read from MH i2c: E2 0B 00 [15:04:07]MH_I2C_Read... [15:04:07]Read from MH i2c: E2 0B 00 C5 91 00 2E 23 58 05 2A 56 57 DB 90 00 32 [15:04:07]RAPDU: 2E 23 58 05 2A 56 57 DB 90 00 [15:04:07]wFMCommunicate OK [15:04:07]SAM_PROTO_SignData done [15:04:07]FM_MakeSignedData done [15:04:07]CreateOFDProtocolMessage [15:04:07]wFMCommunicate request_size=4 [15:04:07]MH_SAM_APDU [15:04:07]CAPDU: 80 11 00 00 [15:04:07]Write to MH i2c: E2 08 00 C6 91 80 11 00 00 00 00 00 00 D1 [15:04:07]Write i2c OK [15:04:07]MH_I2C_Read... [15:04:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:07]Read from MH i2c: E2 [15:04:07]MH_I2C_Read... [15:04:07]Read from MH i2c: E2 17 00 [15:04:07]MH_I2C_Read... [15:04:07]Read from MH i2c: E2 17 00 C6 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 1E [15:04:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:04:07]wFMCommunicate OK [15:04:07]CreateOFDProtocolMessage done [15:04:07]OFDSenderStorePacket 260740 [15:04:07]StoreOFDPacket docnum=260740 [15: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 30 10 01 00 00 46 07 08 01 2C C7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 2A 01 00 00 F4 03 04 00 6A 0D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 84 FA 03 00 35 04 06 00 BD E3 9F 4A 4A A7 2E 23 58 05 2A 56 57 DB [15:04:07]CheckFolder [15:04:07]dirname=/storage/ofd_packets [15:04:07]CheckFolder done [15:04:07]ProducePacketName [15:04:07]name=ofd_packets/00260740 [15:04:07]NVStorageSaveData ofd_packets/00260740 [15:04:07]File name is /storage/ofd_packets/00260740 [15:04:07]Write 302 bytes [15:04:07]NVStorageSaveData done [15:04:07]OFDSenderStorePacket done [15:04:07]KKMCreateOFDPacket done [15:04:07]NVStorageSaveData kkm_last_timestamp [15:04:07]File name is /storage/kkm_last_timestamp [15:04:07]Write 4 bytes [15:04:07]NVStorageSaveData done [15:04:07]ExternCall_PrintAddStr [15:04:07]wPrintStart [15:04:07]Write to MH i2c: 01 00 00 C7 91 58 [15:04:07]Write i2c OK [15:04:07]MH_I2C_Read... [15:04:07]Read from MH i2c: 01 [15:04:07]MH_I2C_Read... [15:04:07]Read from MH i2c: 01 07 00 [15:04:07]MH_I2C_Read... [15:04:07]Read from MH i2c: 01 07 00 C7 91 00 00 00 00 00 FF 0F 6D [15:04:07]RasterBufferAndPrint [15:04:07]line Счет N : (1)1036291 [15:04:07]line ИНН: 02508201610067 [15:04:07]line Контрольно-Кассовый Чек [15:04:07]line ПРОДАЖА [15:04:07]line ТРК (МРК, ГНК) : 43 [15:04:07]line Товар: 2710194210 [15:04:07]line ДТ(л)-К-4 [15:04:07]line 26.250 * 76.20 [15:04:07]line = 2000.25 [15:04:07]line НДС 12% НСП 1% [15:04:07]line > о реализуемом товаре [15:04:07]line ОКРУГЛЕНИЕ: -0.25 [15:04:07]line ИТОГО: 2000.00 [15:04:07]line Внесено: 2000.00 [15:04:07]line СДАЧА: 0.00 [15:04:07]line НСП 1% : 17.70 [15:04:07]line НДС 12% : 212.42 [15:04:07]line Наличными: 2000.00 [15:04:07]line Безнал.: 0.00 [15:04:07]line Место: АЗС № 94 "Партнер Нефть" [15:04:07]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [15:04:07]line СНО: Общий режим [15:04:07]line Чек 298 18.08.2024 15:04 [15:04:07]line Смена: 449 ФФД: 1.0 [15:04:07]line ЗНМ: 0300000099 [15:04:07]line РНМ: 0000000000091865 [15:04:07]line Версия ККМ: 001 [15:04:07]line ФМ: 0000000000871820 [15:04:07]line ФД: 260740 [15:04:07]line ФПД: 208785327671975 [15:04:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T150410&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260740&fm=208785327671975&tin=02508201610067®Number=0000000000091865&sum=200000 [15:04:07]OFD Sender: Processing packet 260740 [packets to send 192, broken 191] [15:04:07]ProducePacketName [15:04:07]name=ofd_packets/00260740 [15:04:07]OFD Sender: To server: pG, [15:04:07]CommunicateWithHost lk.salyk.kg:30040 [15:04:07]ConnectInit lk.salyk.kg [15:04:07]written 0, free lines is 4095 [15:04:07]Connected sock=9 [15: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 30 10 01 00 00 46 07 08 01 2C C7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 2A 01 00 00 F4 03 04 00 6A 0D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 84 FA 03 00 35 04 06 00 BD E3 9F 4A 4A A7 2E 23 58 05 2A 56 57 DB [15: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 30 4F 00 00 00 5C 7A 47 00 DE 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 30 10 04 04 00 84 FA 03 00 F4 03 04 00 BF B6 C1 66 B6 04 01 00 00 43 9D 56 F3 96 AC 8D AB [15:04:07]CommunicateWithHost err = 0 [15:04:07]CheckOFDResponse [15:04:07]1017 (14) - 77093643461234 [15:04:07]1041 (16) - 0000000000871820 [15:04:07]1040 (4) - 260740 [15:04:07]1012 (4) - 18.08.2024 08:54 [15:04:07]1206 (1) - 0 [15:04:07]OFD Sender: Remove packet 260740 [15:04:07]ProducePacketName [15:04:07]name=ofd_packets/00260740 [15:04:07]NVStorageDeleteData [15:04:07]Write to MH i2c: 01 00 00 F2 91 83 [15:04:07]Write i2c OK [15:04:07]MH_I2C_Read... [15:04:07]Read from MH i2c: 01 [15:04:07]MH_I2C_Read... [15:04:07]Read from MH i2c: 01 07 00 [15:04:07]MH_I2C_Read... [15:04:07]Read from MH i2c: 01 07 00 F2 91 00 00 00 00 00 6D 0C 03 [15:04:07]RasterBufferAndPrint [15:04:07]line [15:04:07]line [15:04:07]line [15:04:07]line [15:04:07]line [15:04:07]written 0, free lines is 3185 [15:04:07]MH_Cut [15:04:07]Write to MH i2c: D1 01 00 F9 91 01 5C [15:04:07]Write i2c OK [15:04:07]MH_I2C_Read... [15:04:07]Read from MH i2c: D1 [15:04:07]MH_I2C_Read... [15:04:07]Read from MH i2c: D1 01 00 [15:04:07]MH_I2C_Read... [15:04:07]Read from MH i2c: D1 01 00 F9 91 00 5B [15:04:07]Write to MH i2c: 01 00 00 FA 91 8B [15:04:07]Write i2c OK [15:04:07]MH_I2C_Read... [15:04:08]OFD Sender: No OFD packet to send [15:04:09]*** Cut start [15:04:09]*** Purtial cut [15:04:09]*** Stage 1: CUTSNS_PIN = 1 [15:04:11]Read from MH i2c: 01 [15:04:11]MH_I2C_Read... [15:04:11]*** Stop cut motor [15:04:11]*** Cut end [15:04:11]Read from MH i2c: 01 07 00 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: 01 07 00 FA 91 00 00 00 00 00 FF 0F A0 [15:04:11]process_action close_receipt done [15:04:11]requested_data is exist [15:04:11]produce_requested_data [15:04:11]requested_item fm.sn is exist - process it [15:04:11]wFMCommunicate request_size=4 [15:04:11]MH_SAM_APDU [15:04:11]CAPDU: 80 11 00 00 [15:04:11]Write to MH i2c: E2 08 00 FB 91 80 11 00 00 00 00 00 00 06 [15:04:11]Write i2c OK [15:04:11]MH_I2C_Read... [15:04:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:11]Read from MH i2c: E2 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: E2 17 00 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: E2 17 00 FB 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 53 [15:04:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:04:11]wFMCommunicate OK [15:04:11]requested_item fd.num is exist - process it [15:04:11]SAM_PROTO_GetFieldsCounters [15:04:11]wFMCommunicate request_size=4 [15:04:11]MH_SAM_APDU [15:04:11]CAPDU: 80 13 00 00 [15:04:11]Write to MH i2c: E2 08 00 FC 91 80 13 00 00 00 00 00 00 09 [15:04:11]Write i2c OK [15:04:11]MH_I2C_Read... [15:04:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:11]Read from MH i2c: E2 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: E2 62 00 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: E2 62 00 FC 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 84 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 EC [15:04: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 84 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:04:11]wFMCommunicate OK [15:04:11]SAM_PROTO_GetFieldsCounters done [15:04:11]requested_item shift.num is exist - process it [15:04:11]requested_item shift.opened is exist - process it [15:04:11]req_shift_opened [15:04:11]FM_GetShiftState [15:04:11]SAM_PROTO_GetShiftState [15:04:11]wFMCommunicate request_size=4 [15:04:11]MH_SAM_APDU [15:04:11]CAPDU: 80 13 01 00 [15:04:11]Write to MH i2c: E2 08 00 FD 91 80 13 01 00 00 00 00 00 0B [15:04:11]Write i2c OK [15:04:11]MH_I2C_Read... [15:04:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:11]Read from MH i2c: E2 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: E2 0E 00 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: E2 0E 00 FD 91 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 48 [15:04:11]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:04:11]wFMCommunicate OK [15:04:11]SAM_PROTO_GetShiftState done [15:04:11]FM_GetShiftState done [15:04:11]req_shift_opened done [15:04:11]requested_item shift.open_date is exist - process it [15:04:11]req_shift_open_date [15:04:11]req_shift_open_date done [15:04:11]produce_requested_data done [15:04:11]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260740,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [15:04:11]process_action_free close_receipt [15:04:11]json_value_free [15:04:11]json_value_free done [15:04:11]process_json_proto returns [15:04:11]Send response to host [15:04:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260740,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [15:04:11]free response buf [15:04:11]execute_script done [15:04:11]execute_script returns [15:04:11]free content buf [15:04:11]Sock 10.Close socket [15:04:11]Sock 10.Thread stoped [15:04:13]OFD Sender: No OFD packet to send [15:04:18]OFD Sender: No OFD packet to send [15:04:23]OFD Sender: No OFD packet to send [15:04:28]OFD Sender: No OFD packet to send [15:04:33]OFD Sender: No OFD packet to send [15:04:38]OFD Sender: No OFD packet to send [15:04:43]OFD Sender: No OFD packet to send [15:04:48]OFD Sender: No OFD packet to send [15:04:53]OFD Sender: No OFD packet to send [15:04:58]OFD Sender: No OFD packet to send [15:05:03]OFD Sender: No OFD packet to send [15:05:08]OFD Sender: No OFD packet to send [15:05:13]OFD Sender: No OFD packet to send [15:05:18]OFD Sender: No OFD packet to send [15:05:23]OFD Sender: No OFD packet to send [15:05:28]OFD Sender: No OFD packet to send [15:05:33]OFD Sender: No OFD packet to send [15:05:38]OFD Sender: No OFD packet to send [15:05:43]OFD Sender: No OFD packet to send [15:05:48]OFD Sender: No OFD packet to send [15:05:53]OFD Sender: No OFD packet to send [15:05:58]OFD Sender: No OFD packet to send [15:06:03]OFD Sender: No OFD packet to send [15:06:08]OFD Sender: No OFD packet to send [15:06:13]OFD Sender: No OFD packet to send [15:06:18]OFD Sender: No OFD packet to send [15:06:23]OFD Sender: No OFD packet to send [15:06:28]OFD Sender: No OFD packet to send [15:06:31]accept exits with 7 [15:06:31]New connection [15:06:31]New thread 3066617188 created [15:06:31]Thread 3066473828 joined [15:06:31]Waiting for new connection... [15:06:31] Sock 7.Parse request [15:06:31]Sock 7.Check first char [15:06:31]Sock 7.First char is OK [15:06:31]request: POST /json_proto HTTP/1.0 [15:06:31]Method: POST [15:06:31]URL: /json_proto [15:06:31]Method is POST - this is cgi request [15:06:31]url: /json_proto [15:06:31]query_string will be loaded in cgi processing [15:06:31]execute_cgi json_proto POST (null) [15:06:31]execute_cgi path=json_proto method=POST [15:06:31]POST find Content-Length [15:06:31]Host: 172.17.55.133:8080 [15:06:31]Content-Length: 807 [15:06:31]Content-Type: application/json [15:06:31] [15:06:31]POST finish read [15:06:31]Found Content-Length = 807 [15:06:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 800.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:31]execute_script... [15: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)1036292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 800.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:31]POST & json_proto [15:06:31]process_json_proto [15:06:31]json parsed OK: [15:06:31]protocol is kg_v1.0 [15:06:31]action value=close_receipt [15:06:31]process_action close_receipt [15:06:31]cmd_close_receipt [15:06:31]MH_GetDate [15:06:31]Write to MH i2c: F0 00 00 FE 91 7E [15:06:31]Write i2c OK [15:06:31]MH_I2C_Read... [15:06:31]Read from MH i2c: F0 [15:06:31]MH_I2C_Read... [15:06:31]Read from MH i2c: F0 09 00 [15:06:31]MH_I2C_Read... [15:06:31]Read from MH i2c: F0 09 00 FE 91 00 FC 0D C2 66 34 48 D8 65 71 [15:06:31]GetLastDocTimeStamp 1723993450 [15:06:31]current date 1723993596 [15:06:31]FM_GetShiftState [15:06:31]SAM_PROTO_GetShiftState [15:06:31]wFMCommunicate request_size=4 [15:06:31]MH_SAM_APDU [15:06:31]CAPDU: 80 13 01 00 [15:06:31]Write to MH i2c: E2 08 00 FF 91 80 13 01 00 00 00 00 00 0D [15:06:31]Write i2c OK [15:06:31]MH_I2C_Read... [15:06:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:31]Read from MH i2c: E2 [15:06:31]MH_I2C_Read... [15:06:31]Read from MH i2c: E2 0E 00 [15:06:31]MH_I2C_Read... [15:06:31]Read from MH i2c: E2 0E 00 FF 91 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 4A [15:06:31]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:06:31]wFMCommunicate OK [15:06:31]SAM_PROTO_GetShiftState done [15:06:31]FM_GetShiftState done [15:06:31]opened in 1723940556 [15:06:31]opened+sec_in_day 1724026956 [15:06:31]quantity*price = 80010 [15:06:31]sum+1 = 80011 [15:06:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.10 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 0.00 Безнал.: 800.10 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 299 18.08.2024 15:06 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260741 ФПД: 273406513225454 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T150636&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260741&fm=273406513225454&tin=02508201610067®Number=0000000000091865&sum=80010 [15:06:32]StoreToDocumentArchive [15:06:32]shift 449 fd 260741 [15:06:32]save to /storage/0449/doc_00260741 [15:06:32]save last doc name /storage/0449/doc_00260741 to /storage/kkm_last_doc_name [15:06:32]save OK [15:06:32]Clear old archive folders... [15:06:32]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:06:32]tlvbuf is 00336870 [15:06:32]SAM_PROTO_ClearQueue [15:06:32]wFMCommunicate request_size=4 [15:06:32]MH_SAM_APDU [15:06:32]CAPDU: 80 09 00 00 [15:06:32]Write to MH i2c: E2 08 00 0C 92 80 09 00 00 00 00 00 00 10 [15:06:32]Write i2c OK [15:06:32]MH_I2C_Read... [15:06:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:06:32]Read from MH i2c: E2 [15:06:32]MH_I2C_Read... [15:06:32]Read from MH i2c: E2 03 00 [15:06:32]MH_I2C_Read... [15:06:32]Read from MH i2c: E2 03 00 0C 92 00 90 00 12 [15:06:32]RAPDU: 90 00 [15:06:32]wFMCommunicate OK [15:06:32]SAM_PROTO_ClearQueue done [15:06:32]KKMCreateOFDPacket [15:06:32]OFDProtocolAddRootSTLVToBuf [15:06:32]FM_MakeSignedData [15:06:32]FM_MakeSignedData [15:06:32]SAM_PROTO_SignData [15:06:32]wFMCommunicate request_size=4 [15:06:32]MH_SAM_APDU [15:06:32]CAPDU: 80 0D 01 02 [15:06:32]Write to MH i2c: E2 08 00 0D 92 80 0D 01 02 00 00 00 00 18 [15:06:32]Write i2c OK [15:06:32]MH_I2C_Read... [15:06:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:06:32]Read from MH i2c: E2 [15:06:32]MH_I2C_Read... [15:06:32]Read from MH i2c: E2 03 00 [15:06:32]MH_I2C_Read... [15:06:32]Read from MH i2c: E2 03 00 0D 92 00 90 00 13 [15:06:32]RAPDU: 90 00 [15:06:32]wFMCommunicate OK [15:06:32]wFMCommunicate request_size=255 [15:06:32]MH_SAM_APDU [15:06:32]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 FC 0D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 85 FA 03 00 35 04 06 00 [15:06:32]Write to MH i2c: E2 02 01 0E 92 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 FC 0D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 85 FA 03 00 35 04 06 00 00 00 6A [15:06:32]Write i2c OK [15:06:32]MH_I2C_Read... [15:06:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:33]Read from MH i2c: E2 [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: E2 03 00 [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: E2 03 00 0E 92 00 90 00 14 [15:06:33]RAPDU: 90 00 [15:06:33]wFMCommunicate OK [15:06:33]wFMCommunicate request_size=11 [15:06:33]MH_SAM_APDU [15:06:33]CAPDU: 80 0D 02 02 06 F8 A9 6A 19 9E EE [15:06:33]Write to MH i2c: E2 0E 00 0F 92 80 0D 02 02 06 00 F8 A9 6A 19 9E EE 00 00 D7 [15:06:33]Write i2c OK [15:06:33]MH_I2C_Read... [15:06:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:33]Read from MH i2c: E2 [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: E2 03 00 [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: E2 03 00 0F 92 00 90 00 15 [15:06:33]RAPDU: 90 00 [15:06:33]wFMCommunicate OK [15:06:33]wFMCommunicate request_size=4 [15:06:33]MH_SAM_APDU [15:06:33]CAPDU: 80 0D 03 02 [15:06:33]Write to MH i2c: E2 08 00 10 92 80 0D 03 02 00 00 00 00 1D [15:06:33]Write i2c OK [15:06:33]MH_I2C_Read... [15:06:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:06:33]Read from MH i2c: E2 [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: E2 0B 00 [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: E2 0B 00 10 92 00 E8 56 83 71 4C E9 C4 78 90 00 C1 [15:06:33]RAPDU: E8 56 83 71 4C E9 C4 78 90 00 [15:06:33]wFMCommunicate OK [15:06:33]SAM_PROTO_SignData done [15:06:33]FM_MakeSignedData done [15:06:33]CreateOFDProtocolMessage [15:06:33]wFMCommunicate request_size=4 [15:06:33]MH_SAM_APDU [15:06:33]CAPDU: 80 11 00 00 [15:06:33]Write to MH i2c: E2 08 00 11 92 80 11 00 00 00 00 00 00 1D [15:06:33]Write i2c OK [15:06:33]MH_I2C_Read... [15:06:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:33]Read from MH i2c: E2 [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: E2 17 00 [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: E2 17 00 11 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 6A [15:06:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:06:33]wFMCommunicate OK [15:06:33]CreateOFDProtocolMessage done [15:06:33]OFDSenderStorePacket 260741 [15:06:33]StoreOFDPacket docnum=260741 [15:06:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 14 DD 08 01 38 E2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 FC 0D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 85 FA 03 00 35 04 06 00 F8 A9 6A 19 9E EE E8 56 83 71 4C E9 C4 78 [15:06:33]CheckFolder [15:06:33]dirname=/storage/ofd_packets [15:06:33]CheckFolder done [15:06:33]ProducePacketName [15:06:33]name=ofd_packets/00260741 [15:06:33]NVStorageSaveData ofd_packets/00260741 [15:06:33]File name is /storage/ofd_packets/00260741 [15:06:33]Write 302 bytes [15:06:33]NVStorageSaveData done [15:06:33]OFDSenderStorePacket done [15:06:33]KKMCreateOFDPacket done [15:06:33]NVStorageSaveData kkm_last_timestamp [15:06:33]File name is /storage/kkm_last_timestamp [15:06:33]Write 4 bytes [15:06:33]NVStorageSaveData done [15:06:33]ExternCall_PrintAddStr [15:06:33]wPrintStart [15:06:33]Write to MH i2c: 01 00 00 12 92 A4 [15:06:33]Write i2c OK [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: 01 [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: 01 07 00 [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: 01 07 00 12 92 00 00 00 00 00 FF 0F B9 [15:06:33]RasterBufferAndPrint [15:06:33]line Счет N : (1)1036292 [15:06:33]line ИНН: 02508201610067 [15:06:33]line Контрольно-Кассовый Чек [15:06:33]line ПРОДАЖА [15:06:33]line ТРК (МРК, ГНК) : 43 [15:06:33]line Товар: 2710194210 [15:06:33]line ДТ(л)-К-4 [15:06:33]line 10.500 * 76.20 [15:06:33]line = 800.10 [15:06:33]line НДС 12% НСП 1% [15:06:33]line > о реализуемом товаре [15:06:33]line ИТОГО: 800.10 [15:06:33]line НСП 1% : 7.08 [15:06:33]line НДС 12% : 84.97 [15:06:33]line Наличными: 0.00 [15:06:33]line Безнал.: 800.10 [15:06:33]line Место: АЗС № 94 "Партнер Нефть" [15:06:33]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [15:06:33]line СНО: Общий режим [15:06:33]line Чек 299 18.08.2024 15:06 [15:06:33]line Смена: 449 ФФД: 1.0 [15:06:33]line ЗНМ: 0300000099 [15:06:33]line РНМ: 0000000000091865 [15:06:33]line Версия ККМ: 001 [15:06:33]line Платежная система: O! деньги [15:06:33]line ФМ: 0000000000871820 [15:06:33]line ФД: 260741 [15:06:33]line ФПД: 273406513225454 [15:06:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T150636&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260741&fm=273406513225454&tin=02508201610067®Number=0000000000091865&sum=80010 [15:06:33]written 0, free lines is 4095 [15:06:33]OFD Sender: Processing packet 260741 [packets to send 192, broken 191] [15:06:33]ProducePacketName [15:06:33]name=ofd_packets/00260741 [15:06:33]OFD Sender: To server: pG, [15:06:33]CommunicateWithHost lk.salyk.kg:30040 [15:06:33]ConnectInit lk.salyk.kg [15:06:33]Connected sock=10 [15: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 30 10 01 00 00 14 DD 08 01 38 E2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 FC 0D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 85 FA 03 00 35 04 06 00 F8 A9 6A 19 9E EE E8 56 83 71 4C E9 C4 78 [15: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 30 4F 00 00 00 58 F3 47 00 55 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 30 10 04 04 00 85 FA 03 00 F4 03 04 00 51 B7 C1 66 B6 04 01 00 00 6C BC D0 C3 28 13 45 20 [15:06:33]CommunicateWithHost err = 0 [15:06:33]CheckOFDResponse [15:06:33]1017 (14) - 77093643461234 [15:06:33]1041 (16) - 0000000000871820 [15:06:33]1040 (4) - 260741 [15:06:33]1012 (4) - 18.08.2024 08:56 [15:06:33]1206 (1) - 0 [15:06:33]OFD Sender: Remove packet 260741 [15:06:33]ProducePacketName [15:06:33]name=ofd_packets/00260741 [15:06:33]NVStorageDeleteData [15:06:34]Write to MH i2c: 01 00 00 3C 92 CE [15:06:34]Write i2c OK [15:06:34]MH_I2C_Read... [15:06:34]Read from MH i2c: 01 [15:06:34]MH_I2C_Read... [15:06:34]Read from MH i2c: 01 07 00 [15:06:34]MH_I2C_Read... [15:06:34]Read from MH i2c: 01 07 00 3C 92 00 00 00 00 00 7F 0C 60 [15:06:34]RasterBufferAndPrint [15:06:34]line [15:06:34]line [15:06:34]line [15:06:34]line [15:06:34]line [15:06:34]written 0, free lines is 3203 [15:06:34]MH_Cut [15:06:34]Write to MH i2c: D1 01 00 43 92 01 A7 [15:06:34]Write i2c OK [15:06:34]MH_I2C_Read... [15:06:34]Read from MH i2c: D1 [15:06:34]MH_I2C_Read... [15:06:34]Read from MH i2c: D1 01 00 [15:06:34]MH_I2C_Read... [15:06:34]Read from MH i2c: D1 01 00 43 92 00 A6 [15:06:34]Write to MH i2c: 01 00 00 44 92 D6 [15:06:34]Write i2c OK [15:06:34]MH_I2C_Read... [15:06:34]OFD Sender: No OFD packet to send [15:06:35]*** Cut start [15:06:35]*** Purtial cut [15:06:35]*** Stage 1: CUTSNS_PIN = 1 [15:06:37]Read from MH i2c: 01 [15:06:37]MH_I2C_Read... [15:06:37]*** Stop cut motor [15:06:37]*** Cut end [15:06:37]Read from MH i2c: 01 07 00 [15:06:37]MH_I2C_Read... [15:06:37]Read from MH i2c: 01 07 00 44 92 00 00 00 00 00 FF 0F EB [15:06:37]process_action close_receipt done [15:06:37]requested_data is exist [15:06:37]produce_requested_data [15:06:37]requested_item fm.sn is exist - process it [15:06:37]wFMCommunicate request_size=4 [15:06:37]MH_SAM_APDU [15:06:37]CAPDU: 80 11 00 00 [15:06:37]Write to MH i2c: E2 08 00 45 92 80 11 00 00 00 00 00 00 51 [15:06:37]Write i2c OK [15:06:37]MH_I2C_Read... [15:06:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:37]Read from MH i2c: E2 [15:06:37]MH_I2C_Read... [15:06:37]Read from MH i2c: E2 17 00 [15:06:37]MH_I2C_Read... [15:06:37]Read from MH i2c: E2 17 00 45 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 9E [15:06:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:06:37]wFMCommunicate OK [15:06:37]requested_item fd.num is exist - process it [15:06:37]SAM_PROTO_GetFieldsCounters [15:06:37]wFMCommunicate request_size=4 [15:06:37]MH_SAM_APDU [15:06:37]CAPDU: 80 13 00 00 [15:06:37]Write to MH i2c: E2 08 00 46 92 80 13 00 00 00 00 00 00 54 [15:06:37]Write i2c OK [15:06:37]MH_I2C_Read... [15:06:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:06:37]Read from MH i2c: E2 [15:06:37]MH_I2C_Read... [15:06:37]Read from MH i2c: E2 62 00 [15:06:37]MH_I2C_Read... [15:06:37]Read from MH i2c: E2 62 00 46 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 85 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 3B [15:06: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 85 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:06:37]wFMCommunicate OK [15:06:37]SAM_PROTO_GetFieldsCounters done [15:06:37]requested_item shift.num is exist - process it [15:06:37]requested_item shift.opened is exist - process it [15:06:37]req_shift_opened [15:06:37]FM_GetShiftState [15:06:37]SAM_PROTO_GetShiftState [15:06:37]wFMCommunicate request_size=4 [15:06:37]MH_SAM_APDU [15:06:37]CAPDU: 80 13 01 00 [15:06:37]Write to MH i2c: E2 08 00 47 92 80 13 01 00 00 00 00 00 56 [15:06:37]Write i2c OK [15:06:37]MH_I2C_Read... [15:06:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:37]Read from MH i2c: E2 [15:06:37]MH_I2C_Read... [15:06:37]Read from MH i2c: E2 0E 00 [15:06:37]MH_I2C_Read... [15:06:37]Read from MH i2c: E2 0E 00 47 92 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 93 [15:06:37]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:06:37]wFMCommunicate OK [15:06:37]SAM_PROTO_GetShiftState done [15:06:37]FM_GetShiftState done [15:06:37]req_shift_opened done [15:06:37]requested_item shift.open_date is exist - process it [15:06:37]req_shift_open_date [15:06:37]req_shift_open_date done [15:06:37]produce_requested_data done [15:06:37]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260741,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [15:06:37]process_action_free close_receipt [15:06:37]json_value_free [15:06:37]json_value_free done [15:06:37]process_json_proto returns [15:06:37]Send response to host [15:06:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260741,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [15:06:37]free response buf [15:06:37]execute_script done [15:06:37]execute_script returns [15:06:37]free content buf [15:06:37]Sock 7.Close socket [15:06:37]Sock 7.Thread stoped [15:06:39]OFD Sender: No OFD packet to send [15:06:44]OFD Sender: No OFD packet to send [15:06:49]OFD Sender: No OFD packet to send [15:06:54]OFD Sender: No OFD packet to send [15:06:59]OFD Sender: No OFD packet to send [15:07:04]OFD Sender: No OFD packet to send [15:07:09]OFD Sender: No OFD packet to send [15:07:14]OFD Sender: No OFD packet to send [15:07:19]OFD Sender: No OFD packet to send [15:07:24]OFD Sender: No OFD packet to send [15:07:29]OFD Sender: No OFD packet to send [15:07:34]OFD Sender: No OFD packet to send [15:07:39]OFD Sender: No OFD packet to send [15:07:44]OFD Sender: No OFD packet to send [15:07:49]OFD Sender: No OFD packet to send [15:07:54]OFD Sender: No OFD packet to send [15:07:59]OFD Sender: No OFD packet to send [15:08:04]OFD Sender: No OFD packet to send [15:08:09]OFD Sender: No OFD packet to send [15:08:14]OFD Sender: No OFD packet to send [15:08:19]OFD Sender: No OFD packet to send [15:08:24]OFD Sender: No OFD packet to send [15:08:29]OFD Sender: No OFD packet to send [15:08:34]OFD Sender: No OFD packet to send [15:08:39]OFD Sender: No OFD packet to send [15:08:44]OFD Sender: No OFD packet to send [15:08:49]OFD Sender: No OFD packet to send [15:08:54]OFD Sender: No OFD packet to send [15:08:59]OFD Sender: No OFD packet to send [15:09:04]OFD Sender: No OFD packet to send [15:09:09]OFD Sender: No OFD packet to send [15:09:14]OFD Sender: No OFD packet to send [15:09:19]OFD Sender: No OFD packet to send [15:09:24]OFD Sender: No OFD packet to send [15:09:29]OFD Sender: No OFD packet to send [15:09:34]OFD Sender: No OFD packet to send [15:09:39]OFD Sender: No OFD packet to send [15:09:44]OFD Sender: No OFD packet to send [15:09:49]OFD Sender: No OFD packet to send [15:09:54]OFD Sender: No OFD packet to send [15:09:59]OFD Sender: No OFD packet to send [15:10:04]OFD Sender: No OFD packet to send [15:10:09]OFD Sender: No OFD packet to send [15:10:14]OFD Sender: No OFD packet to send [15:10:19]OFD Sender: No OFD packet to send [15:10:24]OFD Sender: No OFD packet to send [15:10:29]OFD Sender: No OFD packet to send [15:10:34]OFD Sender: No OFD packet to send [15:10:39]OFD Sender: No OFD packet to send [15:10:44]OFD Sender: No OFD packet to send [15:10:49]OFD Sender: No OFD packet to send [15:10:54]OFD Sender: No OFD packet to send [15:10:59]OFD Sender: No OFD packet to send [15:11:04]OFD Sender: No OFD packet to send [15:11:09]OFD Sender: No OFD packet to send [15:11:14]OFD Sender: No OFD packet to send [15:11:19]OFD Sender: No OFD packet to send [15:11:24]OFD Sender: No OFD packet to send [15:11:29]OFD Sender: No OFD packet to send [15:11:34]OFD Sender: No OFD packet to send [15:11:39]OFD Sender: No OFD packet to send [15:11:44]OFD Sender: No OFD packet to send [15:11:49]OFD Sender: No OFD packet to send [15:11:54]OFD Sender: No OFD packet to send [15:11:59]OFD Sender: No OFD packet to send [15:12:04]OFD Sender: No OFD packet to send [15:12:08]accept exits with 9 [15:12:08]New connection [15:12:08]New thread 3066473828 created [15:12:08]Thread 3066617188 joined [15:12:08]Waiting for new connection... [15:12:08] Sock 9.Parse request [15:12:08]Sock 9.Check first char [15:12:08]Sock 9.First char is OK [15:12:08]request: POST /json_proto HTTP/1.0 [15:12:08]Method: POST [15:12:08]URL: /json_proto [15:12:08]Method is POST - this is cgi request [15:12:08]url: /json_proto [15:12:08]query_string will be loaded in cgi processing [15:12:08]execute_cgi json_proto POST (null) [15:12:08]execute_cgi path=json_proto method=POST [15:12:08]POST find Content-Length [15:12:08]Host: 172.17.55.133:8080 [15:12:08]Content-Length: 804 [15:12:08]Content-Type: application/json [15:12:08] [15:12:08]POST finish read [15:12:08]Found Content-Length = 804 [15:12:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036293", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:12:08]execute_script... [15:12: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)1036293", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:12:08]POST & json_proto [15:12:08]process_json_proto [15:12:08]json parsed OK: [15:12:08]protocol is kg_v1.0 [15:12:08]action value=close_receipt [15:12:08]process_action close_receipt [15:12:08]cmd_close_receipt [15:12:08]MH_GetDate [15:12:08]Write to MH i2c: F0 00 00 48 92 C9 [15:12:08]Write i2c OK [15:12:08]MH_I2C_Read... [15:12:08]Read from MH i2c: F0 [15:12:08]MH_I2C_Read... [15:12:08]Read from MH i2c: F0 09 00 [15:12:08]MH_I2C_Read... [15:12:08]Read from MH i2c: F0 09 00 48 92 00 4D 0F C2 66 34 48 D8 65 0F [15:12:08]GetLastDocTimeStamp 1723993596 [15:12:08]current date 1723993933 [15:12:08]FM_GetShiftState [15:12:08]SAM_PROTO_GetShiftState [15:12:08]wFMCommunicate request_size=4 [15:12:08]MH_SAM_APDU [15:12:08]CAPDU: 80 13 01 00 [15:12:08]Write to MH i2c: E2 08 00 49 92 80 13 01 00 00 00 00 00 58 [15:12:08]Write i2c OK [15:12:08]MH_I2C_Read... [15:12:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:08]Read from MH i2c: E2 [15:12:08]MH_I2C_Read... [15:12:08]Read from MH i2c: E2 0E 00 [15:12:08]MH_I2C_Read... [15:12:08]Read from MH i2c: E2 0E 00 49 92 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 95 [15:12:08]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:12:08]wFMCommunicate OK [15:12:08]SAM_PROTO_GetShiftState done [15:12:08]FM_GetShiftState done [15:12:08]opened in 1723940556 [15:12:08]opened+sec_in_day 1724026956 [15:12:08]quantity*price = 100021 [15:12:08]sum+1 = 100023 [15:12:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 300 18.08.2024 15:12 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260742 ФПД: 39394691166164 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T151214&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260742&fm=39394691166164&tin=02508201610067®Number=0000000000091865&sum=100022 [15:12:09]StoreToDocumentArchive [15:12:09]shift 449 fd 260742 [15:12:09]save to /storage/0449/doc_00260742 [15:12:09]save last doc name /storage/0449/doc_00260742 to /storage/kkm_last_doc_name [15:12:09]save OK [15:12:09]Clear old archive folders... [15:12:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:12:09]tlvbuf is 00336450 [15:12:09]SAM_PROTO_ClearQueue [15:12:09]wFMCommunicate request_size=4 [15:12:09]MH_SAM_APDU [15:12:09]CAPDU: 80 09 00 00 [15:12:09]Write to MH i2c: E2 08 00 56 92 80 09 00 00 00 00 00 00 5A [15:12:09]Write i2c OK [15:12:09]MH_I2C_Read... [15:12:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:12:09]Read from MH i2c: E2 [15:12:09]MH_I2C_Read... [15:12:09]Read from MH i2c: E2 03 00 [15:12:09]MH_I2C_Read... [15:12:09]Read from MH i2c: E2 03 00 56 92 00 90 00 5C [15:12:09]RAPDU: 90 00 [15:12:09]wFMCommunicate OK [15:12:09]SAM_PROTO_ClearQueue done [15:12:09]KKMCreateOFDPacket [15:12:09]OFDProtocolAddRootSTLVToBuf [15:12:09]FM_MakeSignedData [15:12:09]FM_MakeSignedData [15:12:09]SAM_PROTO_SignData [15:12:09]wFMCommunicate request_size=4 [15:12:09]MH_SAM_APDU [15:12:09]CAPDU: 80 0D 01 02 [15:12:09]Write to MH i2c: E2 08 00 57 92 80 0D 01 02 00 00 00 00 62 [15:12:09]Write i2c OK [15:12:09]MH_I2C_Read... [15:12:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:12:09]Read from MH i2c: E2 [15:12:09]MH_I2C_Read... [15:12:09]Read from MH i2c: E2 03 00 [15:12:09]MH_I2C_Read... [15:12:09]Read from MH i2c: E2 03 00 57 92 00 90 00 5D [15:12:09]RAPDU: 90 00 [15:12:09]wFMCommunicate OK [15:12:09]wFMCommunicate request_size=255 [15:12:09]MH_SAM_APDU [15:12:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 4E 0F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 86 FA 03 00 35 04 06 00 23 [15:12:09]Write to MH i2c: E2 02 01 58 92 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 4E 0F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 86 FA 03 00 35 04 06 00 23 00 00 52 [15:12:09]Write i2c OK [15:12:09]MH_I2C_Read... [15:12:09]OFD Sender: No OFD packet to send [15:12:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:10]Read from MH i2c: E2 [15:12:10]MH_I2C_Read... [15:12:10]Read from MH i2c: E2 03 00 [15:12:10]MH_I2C_Read... [15:12:10]Read from MH i2c: E2 03 00 58 92 00 90 00 5E [15:12:10]RAPDU: 90 00 [15:12:10]wFMCommunicate OK [15:12:10]wFMCommunicate request_size=10 [15:12:10]MH_SAM_APDU [15:12:10]CAPDU: 80 0D 02 02 05 D4 4A 92 AF D4 [15:12:10]Write to MH i2c: E2 0D 00 59 92 80 0D 02 02 05 00 D4 4A 92 AF D4 00 00 A2 [15:12:10]Write i2c OK [15:12:10]MH_I2C_Read... [15:12:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:10]Read from MH i2c: E2 [15:12:10]MH_I2C_Read... [15:12:10]Read from MH i2c: E2 03 00 [15:12:10]MH_I2C_Read... [15:12:10]Read from MH i2c: E2 03 00 59 92 00 90 00 5F [15:12:10]RAPDU: 90 00 [15:12:10]wFMCommunicate OK [15:12:10]wFMCommunicate request_size=4 [15:12:10]MH_SAM_APDU [15:12:10]CAPDU: 80 0D 03 02 [15:12:10]Write to MH i2c: E2 08 00 5A 92 80 0D 03 02 00 00 00 00 67 [15:12:10]Write i2c OK [15:12:10]MH_I2C_Read... [15:12:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:12:10]Read from MH i2c: E2 [15:12:10]MH_I2C_Read... [15:12:10]Read from MH i2c: E2 0B 00 [15:12:10]MH_I2C_Read... [15:12:10]Read from MH i2c: E2 0B 00 5A 92 00 07 2E 14 56 E7 ED DF B3 90 00 6D [15:12:10]RAPDU: 07 2E 14 56 E7 ED DF B3 90 00 [15:12:10]wFMCommunicate OK [15:12:10]SAM_PROTO_SignData done [15:12:10]FM_MakeSignedData done [15:12:10]CreateOFDProtocolMessage [15:12:10]wFMCommunicate request_size=4 [15:12:10]MH_SAM_APDU [15:12:10]CAPDU: 80 11 00 00 [15:12:10]Write to MH i2c: E2 08 00 5B 92 80 11 00 00 00 00 00 00 67 [15:12:10]Write i2c OK [15:12:10]MH_I2C_Read... [15:12:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:10]Read from MH i2c: E2 [15:12:10]MH_I2C_Read... [15:12:10]Read from MH i2c: E2 17 00 [15:12:10]MH_I2C_Read... [15:12:10]Read from MH i2c: E2 17 00 5B 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B4 [15:12:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:12:10]wFMCommunicate OK [15:12:10]CreateOFDProtocolMessage done [15:12:10]OFDSenderStorePacket 260742 [15:12:10]StoreOFDPacket docnum=260742 [15:12:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 D0 D8 07 01 62 24 5A 03 01 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 4E 0F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 86 FA 03 00 35 04 06 00 23 D4 4A 92 AF D4 07 2E 14 56 E7 ED DF B3 [15:12:10]CheckFolder [15:12:10]dirname=/storage/ofd_packets [15:12:10]CheckFolder done [15:12:10]ProducePacketName [15:12:10]name=ofd_packets/00260742 [15:12:10]NVStorageSaveData ofd_packets/00260742 [15:12:10]File name is /storage/ofd_packets/00260742 [15:12:10]Write 301 bytes [15:12:10]NVStorageSaveData done [15:12:10]OFDSenderStorePacket done [15:12:10]KKMCreateOFDPacket done [15:12:10]NVStorageSaveData kkm_last_timestamp [15:12:10]File name is /storage/kkm_last_timestamp [15:12:10]Write 4 bytes [15:12:10]NVStorageSaveData done [15:12:10]ExternCall_PrintAddStr [15:12:10]wPrintStart [15:12:10]Write to MH i2c: 01 00 00 5C 92 EE [15:12:10]Write i2c OK [15:12:10]MH_I2C_Read... [15:12:10]Read from MH i2c: 01 [15:12:10]MH_I2C_Read... [15:12:10]Read from MH i2c: 01 07 00 [15:12:10]MH_I2C_Read... [15:12:10]Read from MH i2c: 01 07 00 5C 92 00 00 00 00 00 FF 0F 03 [15:12:10]RasterBufferAndPrint [15:12:10]line Счет N : (1)1036293 [15:12:10]line ИНН: 02508201610067 [15:12:10]line Контрольно-Кассовый Чек [15:12:10]line ПРОДАЖА [15:12:10]line ТРК (МРК, ГНК) : 13 [15:12:10]line Товар: 2710124500 [15:12:10]line Аи-95-К-5 [15:12:10]line 13.480 * 74.20 [15:12:10]line = 1000.22 [15:12:10]line НДС 12% НСП 1% [15:12:10]line > о реализуемом товаре [15:12:10]line ИТОГО: 1000.22 [15:12:10]line НСП 1% : 8.85 [15:12:10]line НДС 12% : 106.22 [15:12:10]line Наличными: 0.00 [15:12:10]line Безнал.: 1000.22 [15:12:10]line Место: АЗС № 94 "Партнер Нефть" [15:12:10]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [15:12:10]line СНО: Общий режим [15:12:10]line Чек 300 18.08.2024 15:12 [15:12:10]line Смена: 449 ФФД: 1.0 [15:12:10]line ЗНМ: 0300000099 [15:12:10]line РНМ: 0000000000091865 [15:12:10]line Версия ККМ: 001 [15:12:10]line Платежная система: O! деньги [15:12:10]line ФМ: 0000000000871820 [15:12:10]line ФД: 260742 [15:12:10]line ФПД: 39394691166164 [15:12:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T151214&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260742&fm=39394691166164&tin=02508201610067®Number=0000000000091865&sum=100022 [15:12:10]OFD Sender: Processing packet 260742 [packets to send 192, broken 191] [15:12:10]ProducePacketName [15:12:10]name=ofd_packets/00260742 [15:12:10]OFD Sender: To server: pG, [15:12:10]CommunicateWithHost lk.salyk.kg:30040 [15:12:10]ConnectInit lk.salyk.kg [15:12:10]written 0, free lines is 4095 [15:12:10]Connected sock=10 [15:12: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 30 0F 01 00 00 D0 D8 07 01 62 24 5A 03 01 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 4E 0F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 86 FA 03 00 35 04 06 00 23 D4 4A 92 AF D4 07 2E 14 56 E7 ED DF B3 [15:12: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 30 4F 00 00 00 2E DA 47 00 7D C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 86 FA 03 00 F4 03 04 00 A2 B8 C1 66 B6 04 01 00 00 18 CE BC 1F 42 85 E2 D0 [15:12:10]CommunicateWithHost err = 0 [15:12:10]CheckOFDResponse [15:12:10]1017 (14) - 77093643461234 [15:12:10]1041 (16) - 0000000000871820 [15:12:10]1040 (4) - 260742 [15:12:10]1012 (4) - 18.08.2024 09:02 [15:12:10]1206 (1) - 0 [15:12:10]OFD Sender: Remove packet 260742 [15:12:10]ProducePacketName [15:12:10]name=ofd_packets/00260742 [15:12:10]NVStorageDeleteData [15:12:11]Write to MH i2c: 01 00 00 86 92 18 [15:12:11]Write i2c OK [15:12:11]MH_I2C_Read... [15:12:11]Read from MH i2c: 01 [15:12:11]MH_I2C_Read... [15:12:11]Read from MH i2c: 01 07 00 [15:12:11]MH_I2C_Read... [15:12:11]Read from MH i2c: 01 07 00 86 92 00 00 00 00 00 91 0C BC [15:12:11]RasterBufferAndPrint [15:12:11]line [15:12:11]line [15:12:11]line [15:12:11]line [15:12:11]line [15:12:11]written 0, free lines is 3219 [15:12:11]MH_Cut [15:12:11]Write to MH i2c: D1 01 00 8D 92 01 F1 [15:12:11]Write i2c OK [15:12:11]MH_I2C_Read... [15:12:11]Read from MH i2c: D1 [15:12:11]MH_I2C_Read... [15:12:11]Read from MH i2c: D1 01 00 [15:12:11]MH_I2C_Read... [15:12:11]Read from MH i2c: D1 01 00 8D 92 00 F0 [15:12:11]Write to MH i2c: 01 00 00 8E 92 20 [15:12:11]Write i2c OK [15:12:11]MH_I2C_Read... [15:12:11]OFD Sender: No OFD packet to send [15:12:12]*** Cut start [15:12:12]*** Purtial cut [15:12:12]*** Stage 1: CUTSNS_PIN = 1 [15:12:14]Read from MH i2c: 01 [15:12:14]MH_I2C_Read... [15:12:14]*** Stop cut motor [15:12:14]*** Cut end [15:12:14]Read from MH i2c: 01 07 00 [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: 01 07 00 8E 92 00 00 00 00 00 FF 0F 35 [15:12:14]process_action close_receipt done [15:12:14]requested_data is exist [15:12:14]produce_requested_data [15:12:14]requested_item fm.sn is exist - process it [15:12:14]wFMCommunicate request_size=4 [15:12:14]MH_SAM_APDU [15:12:14]CAPDU: 80 11 00 00 [15:12:14]Write to MH i2c: E2 08 00 8F 92 80 11 00 00 00 00 00 00 9B [15:12:14]Write i2c OK [15:12:14]MH_I2C_Read... [15:12:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:14]Read from MH i2c: E2 [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: E2 17 00 [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: E2 17 00 8F 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E8 [15:12:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:12:14]wFMCommunicate OK [15:12:14]requested_item fd.num is exist - process it [15:12:14]SAM_PROTO_GetFieldsCounters [15:12:14]wFMCommunicate request_size=4 [15:12:14]MH_SAM_APDU [15:12:14]CAPDU: 80 13 00 00 [15:12:14]Write to MH i2c: E2 08 00 90 92 80 13 00 00 00 00 00 00 9E [15:12:14]Write i2c OK [15:12:14]MH_I2C_Read... [15:12:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:12:14]Read from MH i2c: E2 [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: E2 62 00 [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: E2 62 00 90 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 86 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 89 [15:12: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 86 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:12:14]wFMCommunicate OK [15:12:14]SAM_PROTO_GetFieldsCounters done [15:12:14]requested_item shift.num is exist - process it [15:12:14]requested_item shift.opened is exist - process it [15:12:14]req_shift_opened [15:12:14]FM_GetShiftState [15:12:14]SAM_PROTO_GetShiftState [15:12:14]wFMCommunicate request_size=4 [15:12:14]MH_SAM_APDU [15:12:14]CAPDU: 80 13 01 00 [15:12:14]Write to MH i2c: E2 08 00 91 92 80 13 01 00 00 00 00 00 A0 [15:12:14]Write i2c OK [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: E2 [15:12:14]MH_I2C_Read... [15:12:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:14]Read from MH i2c: E2 0E 00 [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: E2 0E 00 91 92 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 DD [15:12:14]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:12:14]wFMCommunicate OK [15:12:14]SAM_PROTO_GetShiftState done [15:12:14]FM_GetShiftState done [15:12:14]req_shift_opened done [15:12:14]requested_item shift.open_date is exist - process it [15:12:14]req_shift_open_date [15:12:14]req_shift_open_date done [15:12:14]produce_requested_data done [15:12:14]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260742,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [15:12:14]process_action_free close_receipt [15:12:14]json_value_free [15:12:14]json_value_free done [15:12:14]process_json_proto returns [15:12:14]Send response to host [15:12:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260742,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [15:12:14]free response buf [15:12:14]execute_script done [15:12:14]execute_script returns [15:12:14]free content buf [15:12:14]Sock 9.Close socket [15:12:14]Sock 9.Thread stoped [15:12:16]OFD Sender: No OFD packet to send [15:12:21]OFD Sender: No OFD packet to send [15:12:26]OFD Sender: No OFD packet to send [15:12:31]OFD Sender: No OFD packet to send [15:12:36]OFD Sender: No OFD packet to send [15:12:41]OFD Sender: No OFD packet to send [15:12:46]OFD Sender: No OFD packet to send [15:12:51]OFD Sender: No OFD packet to send [15:12:56]OFD Sender: No OFD packet to send [15:13:01]OFD Sender: No OFD packet to send [15:13:06]OFD Sender: No OFD packet to send [15:13:11]OFD Sender: No OFD packet to send [15:13:16]OFD Sender: No OFD packet to send [15:13:21]OFD Sender: No OFD packet to send [15:13:26]OFD Sender: No OFD packet to send [15:13:31]OFD Sender: No OFD packet to send [15:13:36]OFD Sender: No OFD packet to send [15:13:41]OFD Sender: No OFD packet to send [15:13:44]accept exits with 7 [15:13:44]New connection [15:13:44]New thread 3066617188 created [15:13:44]Thread 3066473828 joined [15:13:44]Waiting for new connection... [15:13:44] Sock 7.Parse request [15:13:44]Sock 7.Check first char [15:13:44]Sock 7.First char is OK [15:13:44]request: POST /json_proto HTTP/1.0 [15:13:44]Method: POST [15:13:44]URL: /json_proto [15:13:44]Method is POST - this is cgi request [15:13:44]url: /json_proto [15:13:44]query_string will be loaded in cgi processing [15:13:44]execute_cgi json_proto POST (null) [15:13:44]execute_cgi path=json_proto method=POST [15:13:44]POST find Content-Length [15:13:44]Host: 172.17.55.133:8080 [15:13:44]Content-Length: 678 [15:13:44]Content-Type: application/json [15:13:44] [15:13:44]POST finish read [15:13:44]Found Content-Length = 678 [15:13:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:44]execute_script... [15:13: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)1036294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:44]POST & json_proto [15:13:44]process_json_proto [15:13:44]json parsed OK: [15:13:44]protocol is kg_v1.0 [15:13:44]action value=close_receipt [15:13:44]process_action close_receipt [15:13:44]cmd_close_receipt [15:13:44]MH_GetDate [15:13:44]Write to MH i2c: F0 00 00 92 92 13 [15:13:44]Write i2c OK [15:13:44]MH_I2C_Read... [15:13:44]Read from MH i2c: F0 [15:13:44]MH_I2C_Read... [15:13:44]Read from MH i2c: F0 09 00 [15:13:44]MH_I2C_Read... [15:13:44]Read from MH i2c: F0 09 00 92 92 00 AE 0F C2 66 34 48 D8 65 BA [15:13:44]GetLastDocTimeStamp 1723993934 [15:13:44]current date 1723994030 [15:13:44]FM_GetShiftState [15:13:44]SAM_PROTO_GetShiftState [15:13:44]wFMCommunicate request_size=4 [15:13:44]MH_SAM_APDU [15:13:44]CAPDU: 80 13 01 00 [15:13:44]Write to MH i2c: E2 08 00 93 92 80 13 01 00 00 00 00 00 A2 [15:13:44]Write i2c OK [15:13:44]MH_I2C_Read... [15:13:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:45]Read from MH i2c: E2 [15:13:45]MH_I2C_Read... [15:13:45]Read from MH i2c: E2 0E 00 [15:13:45]MH_I2C_Read... [15:13:45]Read from MH i2c: E2 0E 00 93 92 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 DF [15:13:45]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:13:45]wFMCommunicate OK [15:13:45]SAM_PROTO_GetShiftState done [15:13:45]FM_GetShiftState done [15:13:45]opened in 1723940556 [15:13:45]opened+sec_in_day 1724026956 [15:13:45]quantity*price = 30035 [15:13:45]sum+1 = 30036 [15:13:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 301 18.08.2024 15:13 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260743 ФПД: 154390915822707 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T151350&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260743&fm=154390915822707&tin=02508201610067®Number=0000000000091865&sum=30000 [15:13:46]StoreToDocumentArchive [15:13:46]shift 449 fd 260743 [15:13:46]save to /storage/0449/doc_00260743 [15:13:46]save last doc name /storage/0449/doc_00260743 to /storage/kkm_last_doc_name [15:13:46]save OK [15:13:46]Clear old archive folders... [15:13:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:13:46]tlvbuf is 004A2260 [15:13:46]SAM_PROTO_ClearQueue [15:13:46]wFMCommunicate request_size=4 [15:13:46]MH_SAM_APDU [15:13:46]CAPDU: 80 09 00 00 [15:13:46]Write to MH i2c: E2 08 00 A0 92 80 09 00 00 00 00 00 00 A4 [15:13:46]Write i2c OK [15:13:46]MH_I2C_Read... [15:13:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:13:46]Read from MH i2c: E2 [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: E2 03 00 [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: E2 03 00 A0 92 00 90 00 A6 [15:13:46]RAPDU: 90 00 [15:13:46]wFMCommunicate OK [15:13:46]SAM_PROTO_ClearQueue done [15:13:46]KKMCreateOFDPacket [15:13:46]OFDProtocolAddRootSTLVToBuf [15:13:46]FM_MakeSignedData [15:13:46]FM_MakeSignedData [15:13:46]SAM_PROTO_SignData [15:13:46]wFMCommunicate request_size=4 [15:13:46]MH_SAM_APDU [15:13:46]CAPDU: 80 0D 01 02 [15:13:46]Write to MH i2c: E2 08 00 A1 92 80 0D 01 02 00 00 00 00 AC [15:13:46]Write i2c OK [15:13:46]MH_I2C_Read... [15:13:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:13:46]Read from MH i2c: E2 [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: E2 03 00 [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: E2 03 00 A1 92 00 90 00 A7 [15:13:46]RAPDU: 90 00 [15:13:46]wFMCommunicate OK [15:13:46]wFMCommunicate request_size=255 [15:13:46]MH_SAM_APDU [15:13:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 AE 0F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 87 FA 03 00 35 04 06 00 8C [15:13:46]Write to MH i2c: E2 02 01 A2 92 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 AE 0F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 87 FA 03 00 35 04 06 00 8C 00 00 2D [15:13:46]Write i2c OK [15:13:46]MH_I2C_Read... [15:13:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:46]Read from MH i2c: E2 [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: E2 03 00 [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: E2 03 00 A2 92 00 90 00 A8 [15:13:46]RAPDU: 90 00 [15:13:46]wFMCommunicate OK [15:13:46]wFMCommunicate request_size=10 [15:13:46]MH_SAM_APDU [15:13:46]CAPDU: 80 0D 02 02 05 6A EF B1 B4 73 [15:13:46]Write to MH i2c: E2 0D 00 A3 92 80 0D 02 02 05 00 6A EF B1 B4 73 00 00 EA [15:13:46]Write i2c OK [15:13:46]MH_I2C_Read... [15:13:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:46]Read from MH i2c: E2 [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: E2 03 00 [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: E2 03 00 A3 92 00 90 00 A9 [15:13:46]RAPDU: 90 00 [15:13:46]wFMCommunicate OK [15:13:46]wFMCommunicate request_size=4 [15:13:46]MH_SAM_APDU [15:13:46]CAPDU: 80 0D 03 02 [15:13:46]Write to MH i2c: E2 08 00 A4 92 80 0D 03 02 00 00 00 00 B1 [15:13:46]Write i2c OK [15:13:46]MH_I2C_Read... [15:13:46]OFD Sender: No OFD packet to send [15:13:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:13:46]Read from MH i2c: E2 [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: E2 0B 00 [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: E2 0B 00 A4 92 00 4C 32 A1 BA 37 91 2F 53 90 00 D5 [15:13:46]RAPDU: 4C 32 A1 BA 37 91 2F 53 90 00 [15:13:46]wFMCommunicate OK [15:13:46]SAM_PROTO_SignData done [15:13:46]FM_MakeSignedData done [15:13:46]CreateOFDProtocolMessage [15:13:46]wFMCommunicate request_size=4 [15:13:46]MH_SAM_APDU [15:13:46]CAPDU: 80 11 00 00 [15:13:46]Write to MH i2c: E2 08 00 A5 92 80 11 00 00 00 00 00 00 B1 [15:13:46]Write i2c OK [15:13:46]MH_I2C_Read... [15:13:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:46]Read from MH i2c: E2 [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: E2 17 00 [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: E2 17 00 A5 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 FE [15:13:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:13:46]wFMCommunicate OK [15:13:46]CreateOFDProtocolMessage done [15:13:46]OFDSenderStorePacket 260743 [15:13:46]StoreOFDPacket docnum=260743 [15:13:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 8A 2B 07 01 D2 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 AE 0F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 87 FA 03 00 35 04 06 00 8C 6A EF B1 B4 73 4C 32 A1 BA 37 91 2F 53 [15:13:46]CheckFolder [15:13:46]dirname=/storage/ofd_packets [15:13:46]CheckFolder done [15:13:46]ProducePacketName [15:13:46]name=ofd_packets/00260743 [15:13:46]NVStorageSaveData ofd_packets/00260743 [15:13:46]File name is /storage/ofd_packets/00260743 [15:13:46]Write 301 bytes [15:13:46]NVStorageSaveData done [15:13:46]OFDSenderStorePacket done [15:13:46]KKMCreateOFDPacket done [15:13:46]NVStorageSaveData kkm_last_timestamp [15:13:46]File name is /storage/kkm_last_timestamp [15:13:46]Write 4 bytes [15:13:46]NVStorageSaveData done [15:13:46]ExternCall_PrintAddStr [15:13:46]wPrintStart [15:13:46]Write to MH i2c: 01 00 00 A6 92 38 [15:13:46]Write i2c OK [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: 01 [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: 01 07 00 [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: 01 07 00 A6 92 00 00 00 00 00 FF 0F 4D [15:13:46]RasterBufferAndPrint [15:13:46]line Счет N : (1)1036294 [15:13:46]line ИНН: 02508201610067 [15:13:46]line Контрольно-Кассовый Чек [15:13:46]line ПРОДАЖА [15:13:46]line ТРК (МРК, ГНК) : 22 [15:13:46]line Товар: 2710124130 [15:13:46]line Аи-92-К-5 [15:13:46]line 4.430 * 67.80 [15:13:46]line = 300.35 [15:13:46]line НДС 12% НСП 1% [15:13:46]line > о реализуемом товаре [15:13:46]line ОКРУГЛЕНИЕ: -0.35 [15:13:46]line ИТОГО: 300.00 [15:13:46]line Внесено: 300.00 [15:13:46]line СДАЧА: 0.00 [15:13:46]line НСП 1% : 2.66 [15:13:46]line НДС 12% : 31.90 [15:13:46]line Наличными: 300.00 [15:13:46]line Безнал.: 0.00 [15:13:46]line Место: АЗС № 94 "Партнер Нефть" [15:13:46]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [15:13:46]line СНО: Общий режим [15:13:46]line Чек 301 18.08.2024 15:13 [15:13:46]line Смена: 449 ФФД: 1.0 [15:13:46]line ЗНМ: 0300000099 [15:13:46]line РНМ: 0000000000091865 [15:13:46]line Версия ККМ: 001 [15:13:46]line ФМ: 0000000000871820 [15:13:46]line ФД: 260743 [15:13:46]line ФПД: 154390915822707 [15:13:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T151350&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260743&fm=154390915822707&tin=02508201610067®Number=0000000000091865&sum=30000 [15:13:47]OFD Sender: Processing packet 260743 [packets to send 192, broken 191] [15:13:47]ProducePacketName [15:13:47]name=ofd_packets/00260743 [15:13:47]OFD Sender: To server: pG, [15:13:47]CommunicateWithHost lk.salyk.kg:30040 [15:13:47]ConnectInit lk.salyk.kg [15:13:47]written 0, free lines is 4095 [15:13:47]Connected sock=10 [15:13: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 30 0F 01 00 00 8A 2B 07 01 D2 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 AE 0F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 87 FA 03 00 35 04 06 00 8C 6A EF B1 B4 73 4C 32 A1 BA 37 91 2F 53 [15:13: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 30 4F 00 00 00 26 84 47 00 48 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 30 10 04 04 00 87 FA 03 00 F4 03 04 00 03 B9 C1 66 B6 04 01 00 00 2A 03 06 57 B3 E5 98 79 [15:13:47]CommunicateWithHost err = 0 [15:13:47]CheckOFDResponse [15:13:47]1017 (14) - 77093643461234 [15:13:47]1041 (16) - 0000000000871820 [15:13:47]1040 (4) - 260743 [15:13:47]1012 (4) - 18.08.2024 09:04 [15:13:47]1206 (1) - 0 [15:13:47]OFD Sender: Remove packet 260743 [15:13:47]ProducePacketName [15:13:47]name=ofd_packets/00260743 [15:13:47]NVStorageDeleteData [15:13:47]Write to MH i2c: 01 00 00 D1 92 63 [15:13:47]Write i2c OK [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: 01 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: 01 07 00 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: 01 07 00 D1 92 00 00 00 00 00 78 0C EE [15:13:47]RasterBufferAndPrint [15:13:47]line [15:13:47]line [15:13:47]line [15:13:47]line [15:13:47]line [15:13:47]written 0, free lines is 3194 [15:13:47]MH_Cut [15:13:47]Write to MH i2c: D1 01 00 D8 92 01 3C [15:13:47]Write i2c OK [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: D1 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: D1 01 00 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: D1 01 00 D8 92 00 3B [15:13:47]Write to MH i2c: 01 00 00 D9 92 6B [15:13:47]Write i2c OK [15:13:47]MH_I2C_Read... [15:13:47]OFD Sender: No OFD packet to send [15:13:48]*** Cut start [15:13:48]*** Purtial cut [15:13:48]*** Stage 1: CUTSNS_PIN = 1 [15:13:50]Read from MH i2c: 01 [15:13:50]MH_I2C_Read... [15:13:50]*** Stop cut motor [15:13:50]*** Cut end [15:13:50]Read from MH i2c: 01 07 00 [15:13:50]MH_I2C_Read... [15:13:50]Read from MH i2c: 01 07 00 D9 92 00 00 00 00 00 FF 0F 80 [15:13:50]process_action close_receipt done [15:13:50]requested_data is exist [15:13:50]produce_requested_data [15:13:50]requested_item fm.sn is exist - process it [15:13:50]wFMCommunicate request_size=4 [15:13:50]MH_SAM_APDU [15:13:50]CAPDU: 80 11 00 00 [15:13:50]Write to MH i2c: E2 08 00 DA 92 80 11 00 00 00 00 00 00 E6 [15:13:50]Write i2c OK [15:13:50]MH_I2C_Read... [15:13:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:50]Read from MH i2c: E2 [15:13:50]MH_I2C_Read... [15:13:50]Read from MH i2c: E2 17 00 [15:13:50]MH_I2C_Read... [15:13:50]Read from MH i2c: E2 17 00 DA 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 33 [15:13:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:13:50]wFMCommunicate OK [15:13:50]requested_item fd.num is exist - process it [15:13:50]SAM_PROTO_GetFieldsCounters [15:13:50]wFMCommunicate request_size=4 [15:13:50]MH_SAM_APDU [15:13:50]CAPDU: 80 13 00 00 [15:13:50]Write to MH i2c: E2 08 00 DB 92 80 13 00 00 00 00 00 00 E9 [15:13:50]Write i2c OK [15:13:50]MH_I2C_Read... [15:13:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:13:50]Read from MH i2c: E2 [15:13:50]MH_I2C_Read... [15:13:50]Read from MH i2c: E2 62 00 [15:13:50]MH_I2C_Read... [15:13:50]Read from MH i2c: E2 62 00 DB 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 87 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 D8 [15:13: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 87 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:13:50]wFMCommunicate OK [15:13:50]SAM_PROTO_GetFieldsCounters done [15:13:50]requested_item shift.num is exist - process it [15:13:50]requested_item shift.opened is exist - process it [15:13:50]req_shift_opened [15:13:50]FM_GetShiftState [15:13:50]SAM_PROTO_GetShiftState [15:13:50]wFMCommunicate request_size=4 [15:13:50]MH_SAM_APDU [15:13:50]CAPDU: 80 13 01 00 [15:13:50]Write to MH i2c: E2 08 00 DC 92 80 13 01 00 00 00 00 00 EB [15:13:50]Write i2c OK [15:13:50]MH_I2C_Read... [15:13:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:50]Read from MH i2c: E2 [15:13:50]MH_I2C_Read... [15:13:50]Read from MH i2c: E2 0E 00 [15:13:50]MH_I2C_Read... [15:13:50]Read from MH i2c: E2 0E 00 DC 92 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 28 [15:13:50]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:13:50]wFMCommunicate OK [15:13:50]SAM_PROTO_GetShiftState done [15:13:50]FM_GetShiftState done [15:13:50]req_shift_opened done [15:13:50]requested_item shift.open_date is exist - process it [15:13:50]req_shift_open_date [15:13:50]req_shift_open_date done [15:13:50]produce_requested_data done [15:13:50]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260743,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [15:13:50]process_action_free close_receipt [15:13:50]json_value_free [15:13:50]json_value_free done [15:13:50]process_json_proto returns [15:13:50]Send response to host [15:13:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260743,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [15:13:50]free response buf [15:13:50]execute_script done [15:13:50]execute_script returns [15:13:50]free content buf [15:13:50]Sock 7.Close socket [15:13:50]Sock 7.Thread stoped [15:13:52]OFD Sender: No OFD packet to send [15:13:57]OFD Sender: No OFD packet to send [15:14:02]OFD Sender: No OFD packet to send [15:14:07]OFD Sender: No OFD packet to send [15:14:12]OFD Sender: No OFD packet to send [15:14:17]OFD Sender: No OFD packet to send [15:14:22]OFD Sender: No OFD packet to send [15:14:27]OFD Sender: No OFD packet to send [15:14:32]OFD Sender: No OFD packet to send [15:14:37]OFD Sender: No OFD packet to send [15:14:42]OFD Sender: No OFD packet to send [15:14:43]accept exits with 9 [15:14:43]New connection [15:14:43]New thread 3066473828 created [15:14:43]Thread 3066617188 joined [15:14:43]Waiting for new connection... [15:14:43] Sock 9.Parse request [15:14:43]Sock 9.Check first char [15:14:43]Sock 9.First char is OK [15:14:43]request: POST /json_proto HTTP/1.0 [15:14:43]Method: POST [15:14:43]URL: /json_proto [15:14:43]Method is POST - this is cgi request [15:14:43]url: /json_proto [15:14:43]query_string will be loaded in cgi processing [15:14:43]execute_cgi json_proto POST (null) [15:14:43]execute_cgi path=json_proto method=POST [15:14:43]POST find Content-Length [15:14:43]Host: 172.17.55.133:8080 [15:14:43]Content-Length: 678 [15:14:43]Content-Type: application/json [15:14:43] [15:14:43]POST finish read [15:14:43]Found Content-Length = 678 [15:14:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:43]execute_script... [15:14: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)1036295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:43]POST & json_proto [15:14:43]process_json_proto [15:14:43]json parsed OK: [15:14:43]protocol is kg_v1.0 [15:14:43]action value=close_receipt [15:14:43]process_action close_receipt [15:14:43]cmd_close_receipt [15:14:43]MH_GetDate [15:14:43]Write to MH i2c: F0 00 00 DD 92 5E [15:14:43]Write i2c OK [15:14:43]MH_I2C_Read... [15:14:43]Read from MH i2c: F0 [15:14:43]MH_I2C_Read... [15:14:43]Read from MH i2c: F0 09 00 [15:14:43]MH_I2C_Read... [15:14:43]Read from MH i2c: F0 09 00 DD 92 00 E8 0F C2 66 34 48 D8 65 3F [15:14:43]GetLastDocTimeStamp 1723994030 [15:14:43]current date 1723994088 [15:14:43]FM_GetShiftState [15:14:43]SAM_PROTO_GetShiftState [15:14:43]wFMCommunicate request_size=4 [15:14:43]MH_SAM_APDU [15:14:43]CAPDU: 80 13 01 00 [15:14:43]Write to MH i2c: E2 08 00 DE 92 80 13 01 00 00 00 00 00 ED [15:14:43]Write i2c OK [15:14:43]MH_I2C_Read... [15:14:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:43]Read from MH i2c: E2 [15:14:43]MH_I2C_Read... [15:14:43]Read from MH i2c: E2 0E 00 [15:14:43]MH_I2C_Read... [15:14:43]Read from MH i2c: E2 0E 00 DE 92 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 2A [15:14:43]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:14:43]wFMCommunicate OK [15:14:43]SAM_PROTO_GetShiftState done [15:14:43]FM_GetShiftState done [15:14:43]opened in 1723940556 [15:14:43]opened+sec_in_day 1724026956 [15:14:43]quantity*price = 50036 [15:14:43]sum+1 = 50037 [15:14:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 302 18.08.2024 15:14 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260744 ФПД: 31366225059876 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T151448&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260744&fm=31366225059876&tin=02508201610067®Number=0000000000091865&sum=50000 [15:14:44]StoreToDocumentArchive [15:14:44]shift 449 fd 260744 [15:14:44]save to /storage/0449/doc_00260744 [15:14:44]save last doc name /storage/0449/doc_00260744 to /storage/kkm_last_doc_name [15:14:44]save OK [15:14:44]Clear old archive folders... [15:14:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:14:44]tlvbuf is 0036F240 [15:14:44]SAM_PROTO_ClearQueue [15:14:44]wFMCommunicate request_size=4 [15:14:44]MH_SAM_APDU [15:14:44]CAPDU: 80 09 00 00 [15:14:44]Write to MH i2c: E2 08 00 EB 92 80 09 00 00 00 00 00 00 EF [15:14:44]Write i2c OK [15:14:44]MH_I2C_Read... [15:14:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:44]Read from MH i2c: E2 [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: E2 03 00 [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: E2 03 00 EB 92 00 90 00 F1 [15:14:44]RAPDU: 90 00 [15:14:44]wFMCommunicate OK [15:14:44]SAM_PROTO_ClearQueue done [15:14:44]KKMCreateOFDPacket [15:14:44]OFDProtocolAddRootSTLVToBuf [15:14:44]FM_MakeSignedData [15:14:44]FM_MakeSignedData [15:14:44]SAM_PROTO_SignData [15:14:44]wFMCommunicate request_size=4 [15:14:44]MH_SAM_APDU [15:14:44]CAPDU: 80 0D 01 02 [15:14:44]Write to MH i2c: E2 08 00 EC 92 80 0D 01 02 00 00 00 00 F7 [15:14:44]Write i2c OK [15:14:44]MH_I2C_Read... [15:14:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:44]Read from MH i2c: E2 [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: E2 03 00 [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: E2 03 00 EC 92 00 90 00 F2 [15:14:44]RAPDU: 90 00 [15:14:44]wFMCommunicate OK [15:14:44]wFMCommunicate request_size=255 [15:14:44]MH_SAM_APDU [15:14:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2E 01 00 00 F4 03 04 00 E8 0F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 88 FA 03 00 35 04 06 00 1C [15:14:44]Write to MH i2c: E2 02 01 ED 92 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2E 01 00 00 F4 03 04 00 E8 0F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 88 FA 03 00 35 04 06 00 1C 00 00 25 [15:14:44]Write i2c OK [15:14:44]MH_I2C_Read... [15:14:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:44]Read from MH i2c: E2 [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: E2 03 00 [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: E2 03 00 ED 92 00 90 00 F3 [15:14:44]RAPDU: 90 00 [15:14:44]wFMCommunicate OK [15:14:44]wFMCommunicate request_size=10 [15:14:44]MH_SAM_APDU [15:14:44]CAPDU: 80 0D 02 02 05 87 04 B3 E0 24 [15:14:44]Write to MH i2c: E2 0D 00 EE 92 80 0D 02 02 05 00 87 04 B3 E0 24 00 00 46 [15:14:44]Write i2c OK [15:14:44]MH_I2C_Read... [15:14:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:44]Read from MH i2c: E2 [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: E2 03 00 [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: E2 03 00 EE 92 00 90 00 F4 [15:14:44]RAPDU: 90 00 [15:14:44]wFMCommunicate OK [15:14:44]wFMCommunicate request_size=4 [15:14:44]MH_SAM_APDU [15:14:44]CAPDU: 80 0D 03 02 [15:14:44]Write to MH i2c: E2 08 00 EF 92 80 0D 03 02 00 00 00 00 FC [15:14:44]Write i2c OK [15:14:44]MH_I2C_Read... [15:14:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:44]Read from MH i2c: E2 [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: E2 0B 00 [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: E2 0B 00 EF 92 00 E6 06 2B A8 65 5B 61 67 90 00 44 [15:14:44]RAPDU: E6 06 2B A8 65 5B 61 67 90 00 [15:14:44]wFMCommunicate OK [15:14:44]SAM_PROTO_SignData done [15:14:44]FM_MakeSignedData done [15:14:44]CreateOFDProtocolMessage [15:14:44]wFMCommunicate request_size=4 [15:14:44]MH_SAM_APDU [15:14:44]CAPDU: 80 11 00 00 [15:14:44]Write to MH i2c: E2 08 00 F0 92 80 11 00 00 00 00 00 00 FC [15:14:45]Write i2c OK [15:14:45]MH_I2C_Read... [15:14:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:45]Read from MH i2c: E2 [15:14:45]MH_I2C_Read... [15:14:45]Read from MH i2c: E2 17 00 [15:14:45]MH_I2C_Read... [15:14:45]Read from MH i2c: E2 17 00 F0 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 49 [15:14:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:14:45]wFMCommunicate OK [15:14:45]CreateOFDProtocolMessage done [15:14:45]OFDSenderStorePacket 260744 [15:14:45]StoreOFDPacket docnum=260744 [15:14:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 16 35 07 01 05 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2E 01 00 00 F4 03 04 00 E8 0F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 88 FA 03 00 35 04 06 00 1C 87 04 B3 E0 24 E6 06 2B A8 65 5B 61 67 [15:14:45]CheckFolder [15:14:45]dirname=/storage/ofd_packets [15:14:45]CheckFolder done [15:14:45]ProducePacketName [15:14:45]name=ofd_packets/00260744 [15:14:45]NVStorageSaveData ofd_packets/00260744 [15:14:45]File name is /storage/ofd_packets/00260744 [15:14:45]Write 301 bytes [15:14:45]NVStorageSaveData done [15:14:45]OFDSenderStorePacket done [15:14:45]KKMCreateOFDPacket done [15:14:45]NVStorageSaveData kkm_last_timestamp [15:14:45]File name is /storage/kkm_last_timestamp [15:14:45]Write 4 bytes [15:14:45]NVStorageSaveData done [15:14:45]ExternCall_PrintAddStr [15:14:45]wPrintStart [15:14:45]Write to MH i2c: 01 00 00 F1 92 83 [15:14:45]Write i2c OK [15:14:45]MH_I2C_Read... [15:14:45]Read from MH i2c: 01 [15:14:45]MH_I2C_Read... [15:14:45]Read from MH i2c: 01 07 00 [15:14:45]MH_I2C_Read... [15:14:45]Read from MH i2c: 01 07 00 F1 92 00 00 00 00 00 FF 0F 98 [15:14:45]RasterBufferAndPrint [15:14:45]line Счет N : (1)1036295 [15:14:45]line ИНН: 02508201610067 [15:14:45]line Контрольно-Кассовый Чек [15:14:45]line ПРОДАЖА [15:14:45]line ТРК (МРК, ГНК) : 42 [15:14:45]line Товар: 2710124130 [15:14:45]line Аи-92-К-5 [15:14:45]line 7.380 * 67.80 [15:14:45]line = 500.36 [15:14:45]line НДС 12% НСП 1% [15:14:45]line > о реализуемом товаре [15:14:45]line ОКРУГЛЕНИЕ: -0.36 [15:14:45]line ИТОГО: 500.00 [15:14:45]line Внесено: 500.00 [15:14:45]line СДАЧА: 0.00 [15:14:45]line НСП 1% : 4.43 [15:14:45]line НДС 12% : 53.14 [15:14:45]line Наличными: 500.00 [15:14:45]line Безнал.: 0.00 [15:14:45]line Место: АЗС № 94 "Партнер Нефть" [15:14:45]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [15:14:45]line СНО: Общий режим [15:14:45]line Чек 302 18.08.2024 15:14 [15:14:45]line Смена: 449 ФФД: 1.0 [15:14:45]line ЗНМ: 0300000099 [15:14:45]line РНМ: 0000000000091865 [15:14:45]line Версия ККМ: 001 [15:14:45]line ФМ: 0000000000871820 [15:14:45]line ФД: 260744 [15:14:45]line ФПД: 31366225059876 [15:14:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T151448&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260744&fm=31366225059876&tin=02508201610067®Number=0000000000091865&sum=50000 [15:14:45]written 0, free lines is 4095 [15:14:45]OFD Sender: Processing packet 260744 [packets to send 192, broken 191] [15:14:45]ProducePacketName [15:14:45]name=ofd_packets/00260744 [15:14:45]OFD Sender: To server: pG, [15:14:45]CommunicateWithHost lk.salyk.kg:30040 [15:14:45]ConnectInit lk.salyk.kg [15:14:45]Connected sock=10 [15:14: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 30 0F 01 00 00 16 35 07 01 05 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2E 01 00 00 F4 03 04 00 E8 0F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 88 FA 03 00 35 04 06 00 1C 87 04 B3 E0 24 E6 06 2B A8 65 5B 61 67 [15:14: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 30 4F 00 00 00 5D 2B 47 00 1C 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 88 FA 03 00 F4 03 04 00 3D B9 C1 66 B6 04 01 00 00 60 38 F2 1F 68 00 B5 29 [15:14:45]CommunicateWithHost err = 0 [15:14:45]CheckOFDResponse [15:14:45]1017 (14) - 77093643461234 [15:14:45]1041 (16) - 0000000000871820 [15:14:45]1040 (4) - 260744 [15:14:45]1012 (4) - 18.08.2024 09:05 [15:14:45]1206 (1) - 0 [15:14:45]OFD Sender: Remove packet 260744 [15:14:45]ProducePacketName [15:14:45]name=ofd_packets/00260744 [15:14:45]NVStorageDeleteData [15:14:45]Write to MH i2c: 01 00 00 1C 93 AF [15:14:45]Write i2c OK [15:14:45]MH_I2C_Read... [15:14:45]Read from MH i2c: 01 [15:14:45]MH_I2C_Read... [15:14:45]Read from MH i2c: 01 07 00 [15:14:45]MH_I2C_Read... [15:14:45]Read from MH i2c: 01 07 00 1C 93 00 00 00 00 00 6E 0C 30 [15:14:45]RasterBufferAndPrint [15:14:45]line [15:14:45]line [15:14:45]line [15:14:45]line [15:14:45]line [15:14:45]written 0, free lines is 3186 [15:14:45]MH_Cut [15:14:45]Write to MH i2c: D1 01 00 23 93 01 88 [15:14:45]Write i2c OK [15:14:45]MH_I2C_Read... [15:14:45]Read from MH i2c: D1 [15:14:45]MH_I2C_Read... [15:14:45]Read from MH i2c: D1 01 00 [15:14:45]MH_I2C_Read... [15:14:45]Read from MH i2c: D1 01 00 23 93 00 87 [15:14:45]Write to MH i2c: 01 00 00 24 93 B7 [15:14:45]Write i2c OK [15:14:45]MH_I2C_Read... [15:14:45]OFD Sender: No OFD packet to send [15:14:46]*** Cut start [15:14:46]*** Purtial cut [15:14:46]*** Stage 1: CUTSNS_PIN = 1 [15:14:48]Read from MH i2c: 01 [15:14:48]MH_I2C_Read... [15:14:48]*** Stop cut motor [15:14:48]*** Cut end [15:14:48]Read from MH i2c: 01 07 00 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: 01 07 00 24 93 00 00 00 00 00 FF 0F CC [15:14:48]process_action close_receipt done [15:14:48]requested_data is exist [15:14:48]produce_requested_data [15:14:48]requested_item fm.sn is exist - process it [15:14:48]wFMCommunicate request_size=4 [15:14:48]MH_SAM_APDU [15:14:48]CAPDU: 80 11 00 00 [15:14:48]Write to MH i2c: E2 08 00 25 93 80 11 00 00 00 00 00 00 32 [15:14:48]Write i2c OK [15:14:48]MH_I2C_Read... [15:14:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:48]Read from MH i2c: E2 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: E2 17 00 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: E2 17 00 25 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 7F [15:14:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:14:48]wFMCommunicate OK [15:14:48]requested_item fd.num is exist - process it [15:14:48]SAM_PROTO_GetFieldsCounters [15:14:48]wFMCommunicate request_size=4 [15:14:48]MH_SAM_APDU [15:14:48]CAPDU: 80 13 00 00 [15:14:48]Write to MH i2c: E2 08 00 26 93 80 13 00 00 00 00 00 00 35 [15:14:48]Write i2c OK [15:14:48]MH_I2C_Read... [15:14:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:48]Read from MH i2c: E2 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: E2 62 00 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: E2 62 00 26 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 88 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 28 [15:14: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 88 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:14:48]wFMCommunicate OK [15:14:48]SAM_PROTO_GetFieldsCounters done [15:14:48]requested_item shift.num is exist - process it [15:14:48]requested_item shift.opened is exist - process it [15:14:48]req_shift_opened [15:14:48]FM_GetShiftState [15:14:48]SAM_PROTO_GetShiftState [15:14:48]wFMCommunicate request_size=4 [15:14:48]MH_SAM_APDU [15:14:48]CAPDU: 80 13 01 00 [15:14:48]Write to MH i2c: E2 08 00 27 93 80 13 01 00 00 00 00 00 37 [15:14:48]Write i2c OK [15:14:48]MH_I2C_Read... [15:14:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:48]Read from MH i2c: E2 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: E2 0E 00 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: E2 0E 00 27 93 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 74 [15:14:48]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:14:48]wFMCommunicate OK [15:14:48]SAM_PROTO_GetShiftState done [15:14:48]FM_GetShiftState done [15:14:48]req_shift_opened done [15:14:48]requested_item shift.open_date is exist - process it [15:14:48]req_shift_open_date [15:14:48]req_shift_open_date done [15:14:48]produce_requested_data done [15:14:48]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260744,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [15:14:48]process_action_free close_receipt [15:14:48]json_value_free [15:14:48]json_value_free done [15:14:48]process_json_proto returns [15:14:48]Send response to host [15:14:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260744,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [15:14:48]free response buf [15:14:48]execute_script done [15:14:48]execute_script returns [15:14:48]free content buf [15:14:48]Sock 9.Close socket [15:14:48]Sock 9.Thread stoped [15:14:50]OFD Sender: No OFD packet to send [15:14:55]OFD Sender: No OFD packet to send [15:15:00]OFD Sender: No OFD packet to send [15:15:05]OFD Sender: No OFD packet to send [15:15:10]OFD Sender: No OFD packet to send [15:15:15]OFD Sender: No OFD packet to send [15:15:20]OFD Sender: No OFD packet to send [15:15:25]OFD Sender: No OFD packet to send [15:15:30]OFD Sender: No OFD packet to send [15:15:34]accept exits with 7 [15:15:34]New connection [15:15:34]New thread 3066617188 created [15:15:34]Thread 3066473828 joined [15:15:34]Waiting for new connection... [15:15:34] Sock 7.Parse request [15:15:34]Sock 7.Check first char [15:15:34]Sock 7.First char is OK [15:15:34]request: POST /json_proto HTTP/1.0 [15:15:34]Method: POST [15:15:34]URL: /json_proto [15:15:34]Method is POST - this is cgi request [15:15:34]url: /json_proto [15:15:34]query_string will be loaded in cgi processing [15:15:34]execute_cgi json_proto POST (null) [15:15:34]execute_cgi path=json_proto method=POST [15:15:34]POST find Content-Length [15:15:34]Host: 172.17.55.133:8080 [15:15:34]Content-Length: 678 [15:15:34]Content-Type: application/json [15:15:34] [15:15:34]POST finish read [15:15:34]Found Content-Length = 678 [15:15:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:34]execute_script... [15:15: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)1036296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:34]POST & json_proto [15:15:34]process_json_proto [15:15:34]json parsed OK: [15:15:34]protocol is kg_v1.0 [15:15:34]action value=close_receipt [15:15:34]process_action close_receipt [15:15:34]cmd_close_receipt [15:15:34]MH_GetDate [15:15:34]Write to MH i2c: F0 00 00 28 93 AA [15:15:34]Write i2c OK [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: F0 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: F0 09 00 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: F0 09 00 28 93 00 1C 10 C2 66 34 48 D8 65 C0 [15:15:34]GetLastDocTimeStamp 1723994088 [15:15:34]current date 1723994140 [15:15:34]FM_GetShiftState [15:15:34]SAM_PROTO_GetShiftState [15:15:34]wFMCommunicate request_size=4 [15:15:34]MH_SAM_APDU [15:15:34]CAPDU: 80 13 01 00 [15:15:34]Write to MH i2c: E2 08 00 29 93 80 13 01 00 00 00 00 00 39 [15:15:35]Write i2c OK [15:15:35]MH_I2C_Read... [15:15:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:35]Read from MH i2c: E2 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: E2 0E 00 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: E2 0E 00 29 93 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 76 [15:15:35]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:15:35]wFMCommunicate OK [15:15:35]SAM_PROTO_GetShiftState done [15:15:35]FM_GetShiftState done [15:15:35]opened in 1723940556 [15:15:35]opened+sec_in_day 1724026956 [15:15:35]quantity*price = 50036 [15:15:35]sum+1 = 50037 [15:15:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 303 18.08.2024 15:15 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260745 ФПД: 202036225086831 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T151540&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260745&fm=202036225086831&tin=02508201610067®Number=0000000000091865&sum=50000 [15:15:36]StoreToDocumentArchive [15:15:36]shift 449 fd 260745 [15:15:36]save to /storage/0449/doc_00260745 [15:15:36]save last doc name /storage/0449/doc_00260745 to /storage/kkm_last_doc_name [15:15:36]save OK [15:15:36]Clear old archive folders... [15:15:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:15:36]tlvbuf is 003E95C0 [15:15:36]SAM_PROTO_ClearQueue [15:15:36]wFMCommunicate request_size=4 [15:15:36]MH_SAM_APDU [15:15:36]CAPDU: 80 09 00 00 [15:15:36]Write to MH i2c: E2 08 00 36 93 80 09 00 00 00 00 00 00 3B [15:15:36]Write i2c OK [15:15:36]MH_I2C_Read... [15:15:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:36]Read from MH i2c: E2 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: E2 03 00 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: E2 03 00 36 93 00 90 00 3D [15:15:36]RAPDU: 90 00 [15:15:36]wFMCommunicate OK [15:15:36]SAM_PROTO_ClearQueue done [15:15:36]KKMCreateOFDPacket [15:15:36]OFDProtocolAddRootSTLVToBuf [15:15:36]FM_MakeSignedData [15:15:36]FM_MakeSignedData [15:15:36]SAM_PROTO_SignData [15:15:36]wFMCommunicate request_size=4 [15:15:36]MH_SAM_APDU [15:15:36]CAPDU: 80 0D 01 02 [15:15:36]Write to MH i2c: E2 08 00 37 93 80 0D 01 02 00 00 00 00 43 [15:15:36]Write i2c OK [15:15:36]MH_I2C_Read... [15:15:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:36]Read from MH i2c: E2 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: E2 03 00 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: E2 03 00 37 93 00 90 00 3E [15:15:36]RAPDU: 90 00 [15:15:36]wFMCommunicate OK [15:15:36]wFMCommunicate request_size=255 [15:15:36]MH_SAM_APDU [15:15:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2F 01 00 00 F4 03 04 00 1C 10 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 89 FA 03 00 35 04 06 00 B7 [15:15:36]Write to MH i2c: E2 02 01 38 93 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2F 01 00 00 F4 03 04 00 1C 10 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 89 FA 03 00 35 04 06 00 B7 00 00 43 [15:15:36]Write i2c OK [15:15:36]MH_I2C_Read... [15:15:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:36]Read from MH i2c: E2 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: E2 03 00 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: E2 03 00 38 93 00 90 00 3F [15:15:36]RAPDU: 90 00 [15:15:36]wFMCommunicate OK [15:15:36]wFMCommunicate request_size=10 [15:15:36]MH_SAM_APDU [15:15:36]CAPDU: 80 0D 02 02 05 C0 39 6D 95 6F [15:15:36]Write to MH i2c: E2 0D 00 39 93 80 0D 02 02 05 00 C0 39 6D 95 6F 00 00 BA [15:15:36]Write i2c OK [15:15:36]MH_I2C_Read... [15:15:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:36]Read from MH i2c: E2 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: E2 03 00 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: E2 03 00 39 93 00 90 00 40 [15:15:36]RAPDU: 90 00 [15:15:36]wFMCommunicate OK [15:15:36]wFMCommunicate request_size=4 [15:15:36]MH_SAM_APDU [15:15:36]CAPDU: 80 0D 03 02 [15:15:36]Write to MH i2c: E2 08 00 3A 93 80 0D 03 02 00 00 00 00 48 [15:15:36]Write i2c OK [15:15:36]MH_I2C_Read... [15:15:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:36]Read from MH i2c: E2 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: E2 0B 00 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: E2 0B 00 3A 93 00 90 D7 F3 EE 37 CC 71 D3 90 00 D8 [15:15:36]RAPDU: 90 D7 F3 EE 37 CC 71 D3 90 00 [15:15:36]wFMCommunicate OK [15:15:36]SAM_PROTO_SignData done [15:15:36]FM_MakeSignedData done [15:15:36]CreateOFDProtocolMessage [15:15:36]wFMCommunicate request_size=4 [15:15:36]MH_SAM_APDU [15:15:36]CAPDU: 80 11 00 00 [15:15:36]Write to MH i2c: E2 08 00 3B 93 80 11 00 00 00 00 00 00 48 [15:15:36]Write i2c OK [15:15:36]MH_I2C_Read... [15:15:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:36]Read from MH i2c: E2 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: E2 17 00 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: E2 17 00 3B 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 95 [15:15:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:15:36]wFMCommunicate OK [15:15:36]CreateOFDProtocolMessage done [15:15:36]OFDSenderStorePacket 260745 [15:15:36]StoreOFDPacket docnum=260745 [15:15:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 D4 46 07 01 19 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2F 01 00 00 F4 03 04 00 1C 10 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 89 FA 03 00 35 04 06 00 B7 C0 39 6D 95 6F 90 D7 F3 EE 37 CC 71 D3 [15:15:36]CheckFolder [15:15:36]dirname=/storage/ofd_packets [15:15:36]CheckFolder done [15:15:36]ProducePacketName [15:15:36]name=ofd_packets/00260745 [15:15:36]NVStorageSaveData ofd_packets/00260745 [15:15:36]File name is /storage/ofd_packets/00260745 [15:15:36]Write 301 bytes [15:15:36]NVStorageSaveData done [15:15:36]OFDSenderStorePacket done [15:15:36]KKMCreateOFDPacket done [15:15:36]NVStorageSaveData kkm_last_timestamp [15:15:36]File name is /storage/kkm_last_timestamp [15:15:36]Write 4 bytes [15:15:36]NVStorageSaveData done [15:15:36]ExternCall_PrintAddStr [15:15:36]wPrintStart [15:15:36]Write to MH i2c: 01 00 00 3C 93 CF [15:15:36]Write i2c OK [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: 01 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: 01 07 00 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: 01 07 00 3C 93 00 00 00 00 00 FF 0F E4 [15:15:36]RasterBufferAndPrint [15:15:36]line Счет N : (1)1036296 [15:15:36]line ИНН: 02508201610067 [15:15:36]line Контрольно-Кассовый Чек [15:15:36]line ПРОДАЖА [15:15:36]line ТРК (МРК, ГНК) : 12 [15:15:36]line Товар: 2710124130 [15:15:36]line Аи-92-К-5 [15:15:36]line 7.380 * 67.80 [15:15:36]line = 500.36 [15:15:36]line НДС 12% НСП 1% [15:15:36]line > о реализуемом товаре [15:15:36]line ОКРУГЛЕНИЕ: -0.36 [15:15:36]line ИТОГО: 500.00 [15:15:36]line Внесено: 500.00 [15:15:36]line СДАЧА: 0.00 [15:15:36]line НСП 1% : 4.43 [15:15:36]line НДС 12% : 53.14 [15:15:36]line Наличными: 500.00 [15:15:36]line Безнал.: 0.00 [15:15:36]line Место: АЗС № 94 "Партнер Нефть" [15:15:36]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [15:15:36]line СНО: Общий режим [15:15:36]line Чек 303 18.08.2024 15:15 [15:15:36]line Смена: 449 ФФД: 1.0 [15:15:36]line ЗНМ: 0300000099 [15:15:36]line РНМ: 0000000000091865 [15:15:36]line Версия ККМ: 001 [15:15:36]line ФМ: 0000000000871820 [15:15:36]line ФД: 260745 [15:15:36]line ФПД: 202036225086831 [15:15:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T151540&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260745&fm=202036225086831&tin=02508201610067®Number=0000000000091865&sum=50000 [15:15:36]written 0, free lines is 4095 [15:15:36]OFD Sender: Processing packet 260745 [packets to send 192, broken 191] [15:15:36]ProducePacketName [15:15:36]name=ofd_packets/00260745 [15:15:36]OFD Sender: To server: pG, [15:15:36]CommunicateWithHost lk.salyk.kg:30040 [15:15:36]ConnectInit lk.salyk.kg [15:15:36]Connected sock=10 [15:15: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 30 0F 01 00 00 D4 46 07 01 19 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2F 01 00 00 F4 03 04 00 1C 10 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 89 FA 03 00 35 04 06 00 B7 C0 39 6D 95 6F 90 D7 F3 EE 37 CC 71 D3 [15:15: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 30 4F 00 00 00 02 DB 47 00 50 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 30 10 04 04 00 89 FA 03 00 F4 03 04 00 70 B9 C1 66 B6 04 01 00 00 E2 D7 E4 C2 4B E5 1D B2 [15:15:37]CommunicateWithHost err = 0 [15:15:37]CheckOFDResponse [15:15:37]1017 (14) - 77093643461234 [15:15:37]1041 (16) - 0000000000871820 [15:15:37]1040 (4) - 260745 [15:15:37]1012 (4) - 18.08.2024 09:05 [15:15:37]1206 (1) - 0 [15:15:37]OFD Sender: Remove packet 260745 [15:15:37]ProducePacketName [15:15:37]name=ofd_packets/00260745 [15:15:37]NVStorageDeleteData [15:15:37]Write to MH i2c: 01 00 00 67 93 FA [15:15:37]Write i2c OK [15:15:37]MH_I2C_Read... [15:15:37]Read from MH i2c: 01 [15:15:37]MH_I2C_Read... [15:15:37]Read from MH i2c: 01 07 00 [15:15:37]MH_I2C_Read... [15:15:37]Read from MH i2c: 01 07 00 67 93 00 00 00 00 00 72 0C 7F [15:15:37]RasterBufferAndPrint [15:15:37]line [15:15:37]line [15:15:37]line [15:15:37]line [15:15:37]line [15:15:37]written 0, free lines is 3189 [15:15:37]MH_Cut [15:15:37]Write to MH i2c: D1 01 00 6E 93 01 D3 [15:15:37]Write i2c OK [15:15:37]MH_I2C_Read... [15:15:37]Read from MH i2c: D1 [15:15:37]MH_I2C_Read... [15:15:37]Read from MH i2c: D1 01 00 [15:15:37]MH_I2C_Read... [15:15:37]Read from MH i2c: D1 01 00 6E 93 00 D2 [15:15:37]Write to MH i2c: 01 00 00 6F 93 02 [15:15:37]Write i2c OK [15:15:37]MH_I2C_Read... [15:15:37]OFD Sender: No OFD packet to send [15:15:38]*** Cut start [15:15:38]*** Purtial cut [15:15:38]*** Stage 1: CUTSNS_PIN = 1 [15:15:40]Read from MH i2c: 01 [15:15:40]MH_I2C_Read... [15:15:40]*** Stop cut motor [15:15:40]*** Cut end [15:15:40]Read from MH i2c: 01 07 00 [15:15:40]MH_I2C_Read... [15:15:40]Read from MH i2c: 01 07 00 6F 93 00 00 00 00 00 FF 0F 17 [15:15:40]process_action close_receipt done [15:15:40]requested_data is exist [15:15:40]produce_requested_data [15:15:40]requested_item fm.sn is exist - process it [15:15:40]wFMCommunicate request_size=4 [15:15:40]MH_SAM_APDU [15:15:40]CAPDU: 80 11 00 00 [15:15:40]Write to MH i2c: E2 08 00 70 93 80 11 00 00 00 00 00 00 7D [15:15:40]Write i2c OK [15:15:40]MH_I2C_Read... [15:15:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:40]Read from MH i2c: E2 [15:15:40]MH_I2C_Read... [15:15:40]Read from MH i2c: E2 17 00 [15:15:40]MH_I2C_Read... [15:15:40]Read from MH i2c: E2 17 00 70 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 CA [15:15:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:15:40]wFMCommunicate OK [15:15:40]requested_item fd.num is exist - process it [15:15:40]SAM_PROTO_GetFieldsCounters [15:15:40]wFMCommunicate request_size=4 [15:15:40]MH_SAM_APDU [15:15:40]CAPDU: 80 13 00 00 [15:15:40]Write to MH i2c: E2 08 00 71 93 80 13 00 00 00 00 00 00 80 [15:15:40]Write i2c OK [15:15:40]MH_I2C_Read... [15:15:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:40]Read from MH i2c: E2 [15:15:40]MH_I2C_Read... [15:15:40]Read from MH i2c: E2 62 00 [15:15:40]MH_I2C_Read... [15:15:40]Read from MH i2c: E2 62 00 71 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 89 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 77 [15:15: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 89 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:15:40]wFMCommunicate OK [15:15:40]SAM_PROTO_GetFieldsCounters done [15:15:40]requested_item shift.num is exist - process it [15:15:40]requested_item shift.opened is exist - process it [15:15:40]req_shift_opened [15:15:40]FM_GetShiftState [15:15:40]SAM_PROTO_GetShiftState [15:15:40]wFMCommunicate request_size=4 [15:15:40]MH_SAM_APDU [15:15:40]CAPDU: 80 13 01 00 [15:15:40]Write to MH i2c: E2 08 00 72 93 80 13 01 00 00 00 00 00 82 [15:15:40]Write i2c OK [15:15:40]MH_I2C_Read... [15:15:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:40]Read from MH i2c: E2 [15:15:40]MH_I2C_Read... [15:15:40]Read from MH i2c: E2 0E 00 [15:15:40]MH_I2C_Read... [15:15:40]Read from MH i2c: E2 0E 00 72 93 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 BF [15:15:40]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:15:40]wFMCommunicate OK [15:15:40]SAM_PROTO_GetShiftState done [15:15:40]FM_GetShiftState done [15:15:40]req_shift_opened done [15:15:40]requested_item shift.open_date is exist - process it [15:15:40]req_shift_open_date [15:15:40]req_shift_open_date done [15:15:40]produce_requested_data done [15:15:40]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260745,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [15:15:40]process_action_free close_receipt [15:15:40]json_value_free [15:15:40]json_value_free done [15:15:40]process_json_proto returns [15:15:40]Send response to host [15:15:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260745,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [15:15:40]free response buf [15:15:40]execute_script done [15:15:40]execute_script returns [15:15:40]free content buf [15:15:40]Sock 7.Close socket [15:15:40]Sock 7.Thread stoped [15:15:42]OFD Sender: No OFD packet to send [15:15:47]OFD Sender: No OFD packet to send [15:15:52]OFD Sender: No OFD packet to send [15:15:57]OFD Sender: No OFD packet to send [15:16:02]OFD Sender: No OFD packet to send [15:16:07]OFD Sender: No OFD packet to send [15:16:12]OFD Sender: No OFD packet to send [15:16:17]OFD Sender: No OFD packet to send [15:16:22]OFD Sender: No OFD packet to send [15:16:25]accept exits with 9 [15:16:25]New connection [15:16:25]New thread 3066473828 created [15:16:25]Thread 3066617188 joined [15:16:25]Waiting for new connection... [15:16:25] Sock 9.Parse request [15:16:25]Sock 9.Check first char [15:16:25]Sock 9.First char is OK [15:16:25]request: POST /json_proto HTTP/1.0 [15:16:25]Method: POST [15:16:25]URL: /json_proto [15:16:25]Method is POST - this is cgi request [15:16:25]url: /json_proto [15:16:25]query_string will be loaded in cgi processing [15:16:25]execute_cgi json_proto POST (null) [15:16:25]execute_cgi path=json_proto method=POST [15:16:25]POST find Content-Length [15:16:25]Host: 172.17.55.133:8080 [15:16:25]Content-Length: 804 [15:16:25]Content-Type: application/json [15:16:25] [15:16:25]POST finish read [15:16:25]Found Content-Length = 804 [15:16:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 19.920, "sum" : 1350.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1350.58 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:25]execute_script... [15:16:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 19.920, "sum" : 1350.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1350.58 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:25]POST & json_proto [15:16:25]process_json_proto [15:16:25]json parsed OK: [15:16:25]protocol is kg_v1.0 [15:16:25]action value=close_receipt [15:16:25]process_action close_receipt [15:16:25]cmd_close_receipt [15:16:25]MH_GetDate [15:16:25]Write to MH i2c: F0 00 00 73 93 F5 [15:16:25]Write i2c OK [15:16:25]MH_I2C_Read... [15:16:25]Read from MH i2c: F0 [15:16:25]MH_I2C_Read... [15:16:25]Read from MH i2c: F0 09 00 [15:16:25]MH_I2C_Read... [15:16:25]Read from MH i2c: F0 09 00 73 93 00 4E 10 C2 66 34 48 D8 65 3D [15:16:25]GetLastDocTimeStamp 1723994140 [15:16:25]current date 1723994190 [15:16:25]FM_GetShiftState [15:16:25]SAM_PROTO_GetShiftState [15:16:25]wFMCommunicate request_size=4 [15:16:25]MH_SAM_APDU [15:16:25]CAPDU: 80 13 01 00 [15:16:25]Write to MH i2c: E2 08 00 74 93 80 13 01 00 00 00 00 00 84 [15:16:25]Write i2c OK [15:16:25]MH_I2C_Read... [15:16:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:25]Read from MH i2c: E2 [15:16:25]MH_I2C_Read... [15:16:25]Read from MH i2c: E2 0E 00 [15:16:25]MH_I2C_Read... [15:16:25]Read from MH i2c: E2 0E 00 74 93 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C1 [15:16:25]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:16:25]wFMCommunicate OK [15:16:25]SAM_PROTO_GetShiftState done [15:16:25]FM_GetShiftState done [15:16:25]opened in 1723940556 [15:16:25]opened+sec_in_day 1724026956 [15:16:25]quantity*price = 135057 [15:16:25]sum+1 = 135059 [15:16:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1350.58 НСП 1% : 11.95 НДС 12% : 143.42 Наличными: 0.00 Безнал.: 1350.58 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 304 18.08.2024 15:16 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260746 ФПД: 170691993277791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T151630&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260746&fm=170691993277791&tin=02508201610067®Number=0000000000091865&sum=135058 [15:16:26]StoreToDocumentArchive [15:16:26]shift 449 fd 260746 [15:16:26]save to /storage/0449/doc_00260746 [15:16:26]save last doc name /storage/0449/doc_00260746 to /storage/kkm_last_doc_name [15:16:26]save OK [15:16:26]Clear old archive folders... [15:16:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:16:26]tlvbuf is 00432FC0 [15:16:26]SAM_PROTO_ClearQueue [15:16:26]wFMCommunicate request_size=4 [15:16:26]MH_SAM_APDU [15:16:26]CAPDU: 80 09 00 00 [15:16:26]Write to MH i2c: E2 08 00 81 93 80 09 00 00 00 00 00 00 86 [15:16:26]Write i2c OK [15:16:26]MH_I2C_Read... [15:16:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:26]Read from MH i2c: E2 [15:16:26]MH_I2C_Read... [15:16:26]Read from MH i2c: E2 03 00 [15:16:26]MH_I2C_Read... [15:16:26]Read from MH i2c: E2 03 00 81 93 00 90 00 88 [15:16:26]RAPDU: 90 00 [15:16:26]wFMCommunicate OK [15:16:26]SAM_PROTO_ClearQueue done [15:16:26]KKMCreateOFDPacket [15:16:26]OFDProtocolAddRootSTLVToBuf [15:16:26]FM_MakeSignedData [15:16:26]FM_MakeSignedData [15:16:26]SAM_PROTO_SignData [15:16:26]wFMCommunicate request_size=4 [15:16:26]MH_SAM_APDU [15:16:26]CAPDU: 80 0D 01 02 [15:16:26]Write to MH i2c: E2 08 00 82 93 80 0D 01 02 00 00 00 00 8E [15:16:26]Write i2c OK [15:16:26]MH_I2C_Read... [15:16:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:26]Read from MH i2c: E2 [15:16:26]MH_I2C_Read... [15:16:26]Read from MH i2c: E2 03 00 [15:16:26]MH_I2C_Read... [15:16:26]Read from MH i2c: E2 03 00 82 93 00 90 00 89 [15:16:26]RAPDU: 90 00 [15:16:26]wFMCommunicate OK [15:16:26]wFMCommunicate request_size=255 [15:16:26]MH_SAM_APDU [15:16:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 4D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 92 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 38 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 0F 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 4E 10 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8A FA 03 00 35 04 06 00 9B [15:16:26]Write to MH i2c: E2 02 01 83 93 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 4D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 92 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 38 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 0F 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 4E 10 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8A FA 03 00 35 04 06 00 9B 00 00 BA [15:16:26]Write i2c OK [15:16:26]MH_I2C_Read... [15:16:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:26]Read from MH i2c: E2 [15:16:26]MH_I2C_Read... [15:16:26]Read from MH i2c: E2 03 00 [15:16:26]MH_I2C_Read... [15:16:26]Read from MH i2c: E2 03 00 83 93 00 90 00 8A [15:16:26]RAPDU: 90 00 [15:16:26]wFMCommunicate OK [15:16:26]wFMCommunicate request_size=10 [15:16:26]MH_SAM_APDU [15:16:26]CAPDU: 80 0D 02 02 05 3E 53 A0 15 5F [15:16:26]Write to MH i2c: E2 0D 00 84 93 80 0D 02 02 05 00 3E 53 A0 15 5F 00 00 40 [15:16:26]Write i2c OK [15:16:26]MH_I2C_Read... [15:16:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:27]Read from MH i2c: E2 [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: E2 03 00 [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: E2 03 00 84 93 00 90 00 8B [15:16:27]RAPDU: 90 00 [15:16:27]wFMCommunicate OK [15:16:27]wFMCommunicate request_size=4 [15:16:27]MH_SAM_APDU [15:16:27]CAPDU: 80 0D 03 02 [15:16:27]Write to MH i2c: E2 08 00 85 93 80 0D 03 02 00 00 00 00 93 [15:16:27]Write i2c OK [15:16:27]MH_I2C_Read... [15:16:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:27]Read from MH i2c: E2 [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: E2 0B 00 [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: E2 0B 00 85 93 00 7D 44 67 03 F7 D7 90 B0 90 00 CD [15:16:27]RAPDU: 7D 44 67 03 F7 D7 90 B0 90 00 [15:16:27]wFMCommunicate OK [15:16:27]SAM_PROTO_SignData done [15:16:27]FM_MakeSignedData done [15:16:27]CreateOFDProtocolMessage [15:16:27]wFMCommunicate request_size=4 [15:16:27]MH_SAM_APDU [15:16:27]CAPDU: 80 11 00 00 [15:16:27]Write to MH i2c: E2 08 00 86 93 80 11 00 00 00 00 00 00 93 [15:16:27]Write i2c OK [15:16:27]MH_I2C_Read... [15:16:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:27]Read from MH i2c: E2 [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: E2 17 00 [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: E2 17 00 86 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E0 [15:16:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:16:27]wFMCommunicate OK [15:16:27]CreateOFDProtocolMessage done [15:16:27]OFDSenderStorePacket 260746 [15:16:27]StoreOFDPacket docnum=260746 [15:16:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 8A F6 07 01 EA 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 4D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 92 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 38 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 0F 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 4E 10 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8A FA 03 00 35 04 06 00 9B 3E 53 A0 15 5F 7D 44 67 03 F7 D7 90 B0 [15:16:27]CheckFolder [15:16:27]dirname=/storage/ofd_packets [15:16:27]CheckFolder done [15:16:27]ProducePacketName [15:16:27]name=ofd_packets/00260746 [15:16:27]NVStorageSaveData ofd_packets/00260746 [15:16:27]File name is /storage/ofd_packets/00260746 [15:16:27]Write 301 bytes [15:16:27]NVStorageSaveData done [15:16:27]OFDSenderStorePacket done [15:16:27]KKMCreateOFDPacket done [15:16:27]NVStorageSaveData kkm_last_timestamp [15:16:27]File name is /storage/kkm_last_timestamp [15:16:27]Write 4 bytes [15:16:27]NVStorageSaveData done [15:16:27]ExternCall_PrintAddStr [15:16:27]wPrintStart [15:16:27]Write to MH i2c: 01 00 00 87 93 1A [15:16:27]Write i2c OK [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: 01 [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: 01 07 00 [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: 01 07 00 87 93 00 00 00 00 00 FF 0F 2F [15:16:27]RasterBufferAndPrint [15:16:27]line Счет N : (1)1036297 [15:16:27]line ИНН: 02508201610067 [15:16:27]line Контрольно-Кассовый Чек [15:16:27]line ПРОДАЖА [15:16:27]line ТРК (МРК, ГНК) : 22 [15:16:27]line Товар: 2710124130 [15:16:27]line Аи-92-К-5 [15:16:27]line 19.920 * 67.80 [15:16:27]line = 1350.58 [15:16:27]line НДС 12% НСП 1% [15:16:27]line > о реализуемом товаре [15:16:27]line ИТОГО: 1350.58 [15:16:27]line НСП 1% : 11.95 [15:16:27]line НДС 12% : 143.42 [15:16:27]line Наличными: 0.00 [15:16:27]line Безнал.: 1350.58 [15:16:27]line Место: АЗС № 94 "Партнер Нефть" [15:16:27]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [15:16:27]line СНО: Общий режим [15:16:27]line Чек 304 18.08.2024 15:16 [15:16:27]line Смена: 449 ФФД: 1.0 [15:16:27]line ЗНМ: 0300000099 [15:16:27]line РНМ: 0000000000091865 [15:16:27]line Версия ККМ: 001 [15:16:27]line Платежная система: O! деньги [15:16:27]line ФМ: 0000000000871820 [15:16:27]line ФД: 260746 [15:16:27]line ФПД: 170691993277791 [15:16:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T151630&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260746&fm=170691993277791&tin=02508201610067®Number=0000000000091865&sum=135058 [15:16:27]written 0, free lines is 4095 [15:16:27]OFD Sender: Processing packet 260746 [packets to send 192, broken 191] [15:16:27]ProducePacketName [15:16:27]name=ofd_packets/00260746 [15:16:27]OFD Sender: To server: pG, [15:16:27]CommunicateWithHost lk.salyk.kg:30040 [15:16:27]ConnectInit lk.salyk.kg [15:16:27]Connected sock=11 [15:16: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 30 0F 01 00 00 8A F6 07 01 EA 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 4D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 92 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 38 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 0F 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 4E 10 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8A FA 03 00 35 04 06 00 9B 3E 53 A0 15 5F 7D 44 67 03 F7 D7 90 B0 [15:16: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 30 4F 00 00 00 EE 5B 47 00 10 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 30 10 04 04 00 8A FA 03 00 F4 03 04 00 A3 B9 C1 66 B6 04 01 00 00 E8 16 65 DA 66 8F 4F A4 [15:16:27]CommunicateWithHost err = 0 [15:16:27]CheckOFDResponse [15:16:27]1017 (14) - 77093643461234 [15:16:27]1041 (16) - 0000000000871820 [15:16:27]1040 (4) - 260746 [15:16:27]1012 (4) - 18.08.2024 09:06 [15:16:27]1206 (1) - 0 [15:16:27]OFD Sender: Remove packet 260746 [15:16:27]ProducePacketName [15:16:27]name=ofd_packets/00260746 [15:16:27]NVStorageDeleteData [15:16:27]Write to MH i2c: 01 00 00 B1 93 44 [15:16:27]Write i2c OK [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: 01 [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: 01 07 00 [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: 01 07 00 B1 93 00 00 00 00 00 85 0C DC [15:16:27]RasterBufferAndPrint [15:16:27]line [15:16:27]line [15:16:27]line [15:16:27]line [15:16:27]line [15:16:27]written 0, free lines is 3209 [15:16:27]MH_Cut [15:16:27]Write to MH i2c: D1 01 00 B8 93 01 1D [15:16:27]Write i2c OK [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: D1 [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: D1 01 00 [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: D1 01 00 B8 93 00 1C [15:16:27]Write to MH i2c: 01 00 00 B9 93 4C [15:16:27]Write i2c OK [15:16:27]MH_I2C_Read... [15:16:27]OFD Sender: No OFD packet to send [15:16:28]*** Cut start [15:16:28]*** Purtial cut [15:16:28]*** Stage 1: CUTSNS_PIN = 1 [15:16:30]Read from MH i2c: 01 [15:16:30]MH_I2C_Read... [15:16:30]*** Stop cut motor [15:16:30]*** Cut end [15:16:30]Read from MH i2c: 01 07 00 [15:16:30]MH_I2C_Read... [15:16:30]Read from MH i2c: 01 07 00 B9 93 00 00 00 00 00 FF 0F 61 [15:16:30]process_action close_receipt done [15:16:30]requested_data is exist [15:16:30]produce_requested_data [15:16:30]requested_item fm.sn is exist - process it [15:16:30]wFMCommunicate request_size=4 [15:16:30]MH_SAM_APDU [15:16:30]CAPDU: 80 11 00 00 [15:16:30]Write to MH i2c: E2 08 00 BA 93 80 11 00 00 00 00 00 00 C7 [15:16:30]Write i2c OK [15:16:30]MH_I2C_Read... [15:16:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:30]Read from MH i2c: E2 [15:16:30]MH_I2C_Read... [15:16:30]Read from MH i2c: E2 17 00 [15:16:30]MH_I2C_Read... [15:16:30]Read from MH i2c: E2 17 00 BA 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 14 [15:16:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:16:30]wFMCommunicate OK [15:16:30]requested_item fd.num is exist - process it [15:16:30]SAM_PROTO_GetFieldsCounters [15:16:30]wFMCommunicate request_size=4 [15:16:30]MH_SAM_APDU [15:16:30]CAPDU: 80 13 00 00 [15:16:30]Write to MH i2c: E2 08 00 BB 93 80 13 00 00 00 00 00 00 CA [15:16:30]Write i2c OK [15:16:30]MH_I2C_Read... [15:16:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:30]Read from MH i2c: E2 [15:16:30]MH_I2C_Read... [15:16:30]Read from MH i2c: E2 62 00 [15:16:30]MH_I2C_Read... [15:16:30]Read from MH i2c: E2 62 00 BB 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 8A FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 C5 [15:16: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 8A FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:16:30]wFMCommunicate OK [15:16:30]SAM_PROTO_GetFieldsCounters done [15:16:30]requested_item shift.num is exist - process it [15:16:30]requested_item shift.opened is exist - process it [15:16:30]req_shift_opened [15:16:30]FM_GetShiftState [15:16:30]SAM_PROTO_GetShiftState [15:16:30]wFMCommunicate request_size=4 [15:16:30]MH_SAM_APDU [15:16:30]CAPDU: 80 13 01 00 [15:16:30]Write to MH i2c: E2 08 00 BC 93 80 13 01 00 00 00 00 00 CC [15:16:30]Write i2c OK [15:16:30]MH_I2C_Read... [15:16:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:30]Read from MH i2c: E2 [15:16:30]MH_I2C_Read... [15:16:30]Read from MH i2c: E2 0E 00 [15:16:30]MH_I2C_Read... [15:16:30]Read from MH i2c: E2 0E 00 BC 93 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 09 [15:16:30]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:16:30]wFMCommunicate OK [15:16:30]SAM_PROTO_GetShiftState done [15:16:30]FM_GetShiftState done [15:16:30]req_shift_opened done [15:16:30]requested_item shift.open_date is exist - process it [15:16:30]req_shift_open_date [15:16:30]req_shift_open_date done [15:16:30]produce_requested_data done [15:16:30]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260746,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [15:16:30]process_action_free close_receipt [15:16:30]json_value_free [15:16:30]json_value_free done [15:16:30]process_json_proto returns [15:16:30]Send response to host [15:16:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260746,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [15:16:30]free response buf [15:16:30]execute_script done [15:16:30]execute_script returns [15:16:30]free content buf [15:16:30]Sock 9.Close socket [15:16:30]Sock 9.Thread stoped [15:16:32]OFD Sender: No OFD packet to send [15:16:37]OFD Sender: No OFD packet to send [15:16:42]OFD Sender: No OFD packet to send [15:16:47]OFD Sender: No OFD packet to send [15:16:52]OFD Sender: No OFD packet to send [15:16:57]OFD Sender: No OFD packet to send [15:17:02]OFD Sender: No OFD packet to send [15:17:07]OFD Sender: No OFD packet to send [15:17:12]OFD Sender: No OFD packet to send [15:17:18]OFD Sender: No OFD packet to send [15:17:23]OFD Sender: No OFD packet to send [15:17:28]OFD Sender: No OFD packet to send [15:17:33]OFD Sender: No OFD packet to send [15:17:38]OFD Sender: No OFD packet to send [15:17:43]OFD Sender: No OFD packet to send [15:17:48]OFD Sender: No OFD packet to send [15:17:53]OFD Sender: No OFD packet to send [15:17:58]OFD Sender: No OFD packet to send [15:18:03]OFD Sender: No OFD packet to send [15:18:08]OFD Sender: No OFD packet to send [15:18:13]OFD Sender: No OFD packet to send [15:18:18]OFD Sender: No OFD packet to send [15:18:23]OFD Sender: No OFD packet to send [15:18:28]OFD Sender: No OFD packet to send [15:18:33]OFD Sender: No OFD packet to send [15:18:38]OFD Sender: No OFD packet to send [15:18:43]OFD Sender: No OFD packet to send [15:18:48]OFD Sender: No OFD packet to send [15:18:53]OFD Sender: No OFD packet to send [15:18:58]OFD Sender: No OFD packet to send [15:19:03]OFD Sender: No OFD packet to send [15:19:08]OFD Sender: No OFD packet to send [15:19:13]OFD Sender: No OFD packet to send [15:19:18]OFD Sender: No OFD packet to send [15:19:23]OFD Sender: No OFD packet to send [15:19:28]OFD Sender: No OFD packet to send [15:19:33]OFD Sender: No OFD packet to send [15:19:38]OFD Sender: No OFD packet to send [15:19:43]OFD Sender: No OFD packet to send [15:19:48]OFD Sender: No OFD packet to send [15:19:53]OFD Sender: No OFD packet to send [15:19:58]OFD Sender: No OFD packet to send [15:20:03]OFD Sender: No OFD packet to send [15:20:08]OFD Sender: No OFD packet to send [15:20:13]OFD Sender: No OFD packet to send [15:20:18]OFD Sender: No OFD packet to send [15:20:23]OFD Sender: No OFD packet to send [15:20:28]OFD Sender: No OFD packet to send [15:20:33]OFD Sender: No OFD packet to send [15:20:38]OFD Sender: No OFD packet to send [15:20:43]OFD Sender: No OFD packet to send [15:20:48]OFD Sender: No OFD packet to send [15:20:53]OFD Sender: No OFD packet to send [15:20:58]OFD Sender: No OFD packet to send [15:21:03]OFD Sender: No OFD packet to send [15:21:08]OFD Sender: No OFD packet to send [15:21:13]OFD Sender: No OFD packet to send [15:21:18]OFD Sender: No OFD packet to send [15:21:23]OFD Sender: No OFD packet to send [15:21:28]OFD Sender: No OFD packet to send [15:21:33]OFD Sender: No OFD packet to send [15:21:38]OFD Sender: No OFD packet to send [15:21:43]OFD Sender: No OFD packet to send [15:21:48]OFD Sender: No OFD packet to send [15:21:53]OFD Sender: No OFD packet to send [15:21:58]OFD Sender: No OFD packet to send [15:22:03]OFD Sender: No OFD packet to send [15:22:08]OFD Sender: No OFD packet to send [15:22:13]OFD Sender: No OFD packet to send [15:22:18]OFD Sender: No OFD packet to send [15:22:23]OFD Sender: No OFD packet to send [15:22:28]OFD Sender: No OFD packet to send [15:22:33]OFD Sender: No OFD packet to send [15:22:38]OFD Sender: No OFD packet to send [15:22:43]OFD Sender: No OFD packet to send [15:22:48]OFD Sender: No OFD packet to send [15:22:53]OFD Sender: No OFD packet to send [15:22:58]OFD Sender: No OFD packet to send [15:23:03]OFD Sender: No OFD packet to send [15:23:08]OFD Sender: No OFD packet to send [15:23:13]OFD Sender: No OFD packet to send [15:23:18]OFD Sender: No OFD packet to send [15:23:23]OFD Sender: No OFD packet to send [15:23:28]OFD Sender: No OFD packet to send [15:23:33]OFD Sender: No OFD packet to send [15:23:38]OFD Sender: No OFD packet to send [15:23:43]OFD Sender: No OFD packet to send [15:23:48]OFD Sender: No OFD packet to send [15:23:53]OFD Sender: No OFD packet to send [15:23:57]accept exits with 7 [15:23:57]New connection [15:23:57]New thread 3066617188 created [15:23:57]Thread 3066473828 joined [15:23:57]Waiting for new connection... [15:23:57] Sock 7.Parse request [15:23:57]Sock 7.Check first char [15:23:57]Sock 7.First char is OK [15:23:57]request: POST /json_proto HTTP/1.0 [15:23:57]Method: POST [15:23:57]URL: /json_proto [15:23:57]Method is POST - this is cgi request [15:23:57]url: /json_proto [15:23:57]query_string will be loaded in cgi processing [15:23:57]execute_cgi json_proto POST (null) [15:23:57]execute_cgi path=json_proto method=POST [15:23:57]POST find Content-Length [15:23:57]Host: 172.17.55.133:8080 [15:23:57]Content-Length: 679 [15:23:57]Content-Type: application/json [15:23:57] [15:23:57]POST finish read [15:23:57]Found Content-Length = 679 [15:23:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 12.540, "sum" : 850.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:57]execute_script... [15:23: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)1036299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 12.540, "sum" : 850.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:57]POST & json_proto [15:23:57]process_json_proto [15:23:57]json parsed OK: [15:23:57]protocol is kg_v1.0 [15:23:57]action value=close_receipt [15:23:57]process_action close_receipt [15:23:57]cmd_close_receipt [15:23:57]MH_GetDate [15:23:57]Write to MH i2c: F0 00 00 BD 93 3F [15:23:57]Write i2c OK [15:23:57]MH_I2C_Read... [15:23:57]Read from MH i2c: F0 [15:23:57]MH_I2C_Read... [15:23:57]Read from MH i2c: F0 09 00 [15:23:57]MH_I2C_Read... [15:23:57]Read from MH i2c: F0 09 00 BD 93 00 13 12 C2 66 34 48 D8 65 4E [15:23:57]GetLastDocTimeStamp 1723994190 [15:23:57]current date 1723994643 [15:23:57]FM_GetShiftState [15:23:57]SAM_PROTO_GetShiftState [15:23:57]wFMCommunicate request_size=4 [15:23:57]MH_SAM_APDU [15:23:57]CAPDU: 80 13 01 00 [15:23:57]Write to MH i2c: E2 08 00 BE 93 80 13 01 00 00 00 00 00 CE [15:23:57]Write i2c OK [15:23:57]MH_I2C_Read... [15:23:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:57]Read from MH i2c: E2 [15:23:57]MH_I2C_Read... [15:23:57]Read from MH i2c: E2 0E 00 [15:23:57]MH_I2C_Read... [15:23:57]Read from MH i2c: E2 0E 00 BE 93 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 0B [15:23:57]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:23:57]wFMCommunicate OK [15:23:57]SAM_PROTO_GetShiftState done [15:23:57]FM_GetShiftState done [15:23:57]opened in 1723940556 [15:23:57]opened+sec_in_day 1724026956 [15:23:57]quantity*price = 85021 [15:23:57]sum+1 = 85022 [15:23:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 850.00 Внесено: 850.00 СДАЧА: 0.00 НСП 1% : 7.52 НДС 12% : 90.29 Наличными: 850.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 305 18.08.2024 15:24 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260747 ФПД: 138482415376445 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T152403&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260747&fm=138482415376445&tin=02508201610067®Number=0000000000091865&sum=85000 [15:23:59]StoreToDocumentArchive [15:23:59]shift 449 fd 260747 [15:23:59]save to /storage/0449/doc_00260747 [15:23:59]save last doc name /storage/0449/doc_00260747 to /storage/kkm_last_doc_name [15:23:59]save OK [15:23:59]Clear old archive folders... [15:23:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:23:59]tlvbuf is 00433480 [15:23:59]SAM_PROTO_ClearQueue [15:23:59]wFMCommunicate request_size=4 [15:23:59]MH_SAM_APDU [15:23:59]CAPDU: 80 09 00 00 [15:23:59]Write to MH i2c: E2 08 00 CB 93 80 09 00 00 00 00 00 00 D0 [15:23:59]Write i2c OK [15:23:59]MH_I2C_Read... [15:23:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:59]Read from MH i2c: E2 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: E2 03 00 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: E2 03 00 CB 93 00 90 00 D2 [15:23:59]RAPDU: 90 00 [15:23:59]wFMCommunicate OK [15:23:59]SAM_PROTO_ClearQueue done [15:23:59]KKMCreateOFDPacket [15:23:59]OFDProtocolAddRootSTLVToBuf [15:23:59]FM_MakeSignedData [15:23:59]FM_MakeSignedData [15:23:59]SAM_PROTO_SignData [15:23:59]wFMCommunicate request_size=4 [15:23:59]MH_SAM_APDU [15:23:59]CAPDU: 80 0D 01 02 [15:23:59]Write to MH i2c: E2 08 00 CC 93 80 0D 01 02 00 00 00 00 D8 [15:23:59]Write i2c OK [15:23:59]MH_I2C_Read... [15:23:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:59]Read from MH i2c: E2 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: E2 03 00 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: E2 03 00 CC 93 00 90 00 D3 [15:23:59]RAPDU: 90 00 [15:23:59]wFMCommunicate OK [15:23:59]wFMCommunicate request_size=255 [15:23:59]MH_SAM_APDU [15:23:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 30 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 1D 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 13 12 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8B FA 03 00 35 04 06 00 7D [15:23:59]Write to MH i2c: E2 02 01 CD 93 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 30 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 1D 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 13 12 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8B FA 03 00 35 04 06 00 7D 00 00 56 [15:23:59]Write i2c OK [15:23:59]MH_I2C_Read... [15:23:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:59]Read from MH i2c: E2 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: E2 03 00 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: E2 03 00 CD 93 00 90 00 D4 [15:23:59]RAPDU: 90 00 [15:23:59]wFMCommunicate OK [15:23:59]wFMCommunicate request_size=10 [15:23:59]MH_SAM_APDU [15:23:59]CAPDU: 80 0D 02 02 05 F2 F3 2D 18 3D [15:23:59]Write to MH i2c: E2 0D 00 CE 93 80 0D 02 02 05 00 F2 F3 2D 18 3D 00 00 4C [15:23:59]Write i2c OK [15:23:59]MH_I2C_Read... [15:23:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:59]Read from MH i2c: E2 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: E2 03 00 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: E2 03 00 CE 93 00 90 00 D5 [15:23:59]RAPDU: 90 00 [15:23:59]wFMCommunicate OK [15:23:59]wFMCommunicate request_size=4 [15:23:59]MH_SAM_APDU [15:23:59]CAPDU: 80 0D 03 02 [15:23:59]Write to MH i2c: E2 08 00 CF 93 80 0D 03 02 00 00 00 00 DD [15:23:59]Write i2c OK [15:23:59]MH_I2C_Read... [15:23:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:59]Read from MH i2c: E2 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: E2 0B 00 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: E2 0B 00 CF 93 00 05 8C F4 EF C9 B7 66 69 90 00 A1 [15:23:59]RAPDU: 05 8C F4 EF C9 B7 66 69 90 00 [15:23:59]wFMCommunicate OK [15:23:59]SAM_PROTO_SignData done [15:23:59]FM_MakeSignedData done [15:23:59]CreateOFDProtocolMessage [15:23:59]wFMCommunicate request_size=4 [15:23:59]MH_SAM_APDU [15:23:59]CAPDU: 80 11 00 00 [15:23:59]Write to MH i2c: E2 08 00 D0 93 80 11 00 00 00 00 00 00 DD [15:23:59]Write i2c OK [15:23:59]MH_I2C_Read... [15:23:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:59]Read from MH i2c: E2 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: E2 17 00 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: E2 17 00 D0 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 2A [15:23:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:23:59]wFMCommunicate OK [15:23:59]CreateOFDProtocolMessage done [15:23:59]OFDSenderStorePacket 260747 [15:23:59]StoreOFDPacket docnum=260747 [15:23:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 5D 71 07 01 22 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 30 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 1D 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 13 12 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8B FA 03 00 35 04 06 00 7D F2 F3 2D 18 3D 05 8C F4 EF C9 B7 66 69 [15:23:59]CheckFolder [15:23:59]dirname=/storage/ofd_packets [15:23:59]CheckFolder done [15:23:59]ProducePacketName [15:23:59]name=ofd_packets/00260747 [15:23:59]NVStorageSaveData ofd_packets/00260747 [15:23:59]File name is /storage/ofd_packets/00260747 [15:23:59]Write 301 bytes [15:23:59]NVStorageSaveData done [15:23:59]OFDSenderStorePacket done [15:23:59]KKMCreateOFDPacket done [15:23:59]NVStorageSaveData kkm_last_timestamp [15:23:59]File name is /storage/kkm_last_timestamp [15:23:59]Write 4 bytes [15:23:59]NVStorageSaveData done [15:23:59]OFD Sender: Processing packet 260747 [packets to send 192, broken 191] [15:23:59]ProducePacketName [15:23:59]name=ofd_packets/00260747 [15:23:59]OFD Sender: To server: pG, [15:23:59]CommunicateWithHost lk.salyk.kg:30040 [15:23:59]ConnectInit lk.salyk.kg [15:23:59]ExternCall_PrintAddStr [15:23:59]wPrintStart [15:23:59]Write to MH i2c: 01 00 00 D1 93 64 [15:23:59]Write i2c OK [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: 01 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: 01 07 00 [15:23:59]MH_I2C_Read... [15:23:59]Read from MH i2c: 01 07 00 D1 93 00 00 00 00 00 FF 0F 79 [15:23:59]RasterBufferAndPrint [15:23:59]line Счет N : (1)1036299 [15:23:59]line ИНН: 02508201610067 [15:23:59]line Контрольно-Кассовый Чек [15:23:59]line ПРОДАЖА [15:23:59]line ТРК (МРК, ГНК) : 22 [15:23:59]line Товар: 2710124130 [15:23:59]line Аи-92-К-5 [15:23:59]line 12.540 * 67.80 [15:23:59]line = 850.21 [15:23:59]line НДС 12% НСП 1% [15:23:59]line > о реализуемом товаре [15:23:59]line ОКРУГЛЕНИЕ: -0.21 [15:23:59]line ИТОГО: 850.00 [15:23:59]line Внесено: 850.00 [15:23:59]line СДАЧА: 0.00 [15:23:59]line НСП 1% : 7.52 [15:23:59]line НДС 12% : 90.29 [15:23:59]line Наличными: 850.00 [15:23:59]line Безнал.: 0.00 [15:23:59]line Место: АЗС № 94 "Партнер Нефть" [15:23:59]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [15:23:59]line СНО: Общий режим [15:23:59]line Чек 305 18.08.2024 15:24 [15:23:59]line Смена: 449 ФФД: 1.0 [15:23:59]line ЗНМ: 0300000099 [15:23:59]line РНМ: 0000000000091865 [15:23:59]line Версия ККМ: 001 [15:23:59]line ФМ: 0000000000871820 [15:23:59]line ФД: 260747 [15:23:59]line ФПД: 138482415376445 [15:23:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T152403&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260747&fm=138482415376445&tin=02508201610067®Number=0000000000091865&sum=85000 [15:23:59]written 0, free lines is 4095 [15:24:00]Write to MH i2c: 01 00 00 FC 93 8F [15:24:00]Write i2c OK [15:24:00]MH_I2C_Read... [15:24:00]Read from MH i2c: 01 [15:24:00]MH_I2C_Read... [15:24:00]Read from MH i2c: 01 07 00 [15:24:00]MH_I2C_Read... [15:24:00]Read from MH i2c: 01 07 00 FC 93 00 00 00 00 00 68 0C 0A [15:24:00]RasterBufferAndPrint [15:24:00]line [15:24:00]line [15:24:00]line [15:24:00]line [15:24:00]line [15:24:00]written 0, free lines is 3178 [15:24:00]MH_Cut [15:24:00]Write to MH i2c: D1 01 00 03 94 01 69 [15:24:00]Write i2c OK [15:24:00]MH_I2C_Read... [15:24:00]Read from MH i2c: D1 [15:24:00]MH_I2C_Read... [15:24:00]Read from MH i2c: D1 01 00 [15:24:00]MH_I2C_Read... [15:24:00]Read from MH i2c: D1 01 00 03 94 00 68 [15:24:00]Write to MH i2c: 01 00 00 04 94 98 [15:24:00]Write i2c OK [15:24:00]MH_I2C_Read... [15:24:01]*** Cut start [15:24:01]*** Purtial cut [15:24:01]*** Stage 1: CUTSNS_PIN = 1 [15:24:03]Read from MH i2c: 01 [15:24:03]MH_I2C_Read... [15:24:03]*** Stop cut motor [15:24:03]*** Cut end [15:24:03]Read from MH i2c: 01 07 00 [15:24:03]MH_I2C_Read... [15:24:03]Read from MH i2c: 01 07 00 04 94 00 00 00 00 00 FF 0F AD [15:24:03]process_action close_receipt done [15:24:03]requested_data is exist [15:24:03]produce_requested_data [15:24:03]requested_item fm.sn is exist - process it [15:24:03]wFMCommunicate request_size=4 [15:24:03]MH_SAM_APDU [15:24:03]CAPDU: 80 11 00 00 [15:24:03]Write to MH i2c: E2 08 00 05 94 80 11 00 00 00 00 00 00 13 [15:24:03]Write i2c OK [15:24:03]MH_I2C_Read... [15:24:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:03]Read from MH i2c: E2 [15:24:03]MH_I2C_Read... [15:24:03]Read from MH i2c: E2 17 00 [15:24:03]MH_I2C_Read... [15:24:03]Read from MH i2c: E2 17 00 05 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 60 [15:24:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:24:03]wFMCommunicate OK [15:24:03]requested_item fd.num is exist - process it [15:24:03]SAM_PROTO_GetFieldsCounters [15:24:03]wFMCommunicate request_size=4 [15:24:03]MH_SAM_APDU [15:24:03]CAPDU: 80 13 00 00 [15:24:03]Write to MH i2c: E2 08 00 06 94 80 13 00 00 00 00 00 00 16 [15:24:03]Write i2c OK [15:24:03]MH_I2C_Read... [15:24:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:24:03]Read from MH i2c: E2 [15:24:03]MH_I2C_Read... [15:24:03]Read from MH i2c: E2 62 00 [15:24:03]MH_I2C_Read... [15:24:03]Read from MH i2c: E2 62 00 06 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 8B FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 15 [15:24: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 8B FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:24:03]wFMCommunicate OK [15:24:03]SAM_PROTO_GetFieldsCounters done [15:24:03]requested_item shift.num is exist - process it [15:24:03]requested_item shift.opened is exist - process it [15:24:03]req_shift_opened [15:24:03]FM_GetShiftState [15:24:03]SAM_PROTO_GetShiftState [15:24:03]wFMCommunicate request_size=4 [15:24:03]MH_SAM_APDU [15:24:03]CAPDU: 80 13 01 00 [15:24:03]Write to MH i2c: E2 08 00 07 94 80 13 01 00 00 00 00 00 18 [15:24:03]Write i2c OK [15:24:03]MH_I2C_Read... [15:24:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:03]Read from MH i2c: E2 [15:24:03]MH_I2C_Read... [15:24:03]Read from MH i2c: E2 0E 00 [15:24:03]MH_I2C_Read... [15:24:03]Read from MH i2c: E2 0E 00 07 94 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 55 [15:24:03]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:24:03]wFMCommunicate OK [15:24:03]SAM_PROTO_GetShiftState done [15:24:03]FM_GetShiftState done [15:24:03]req_shift_opened done [15:24:03]requested_item shift.open_date is exist - process it [15:24:03]req_shift_open_date [15:24:03]req_shift_open_date done [15:24:03]produce_requested_data done [15:24:03]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260747,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [15:24:03]process_action_free close_receipt [15:24:03]json_value_free [15:24:03]json_value_free done [15:24:03]process_json_proto returns [15:24:03]Send response to host [15:24:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260747,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [15:24:03]free response buf [15:24:03]execute_script done [15:24:03]execute_script returns [15:24:03]free content buf [15:24:03]Sock 7.Close socket [15:24:03]Sock 7.Thread stoped [15:25:57]accept exits with 9 [15:25:57]New connection [15:25:57]New thread 3066473828 created [15:25:57]Thread 3066617188 joined [15:25:57]Waiting for new connection... [15:25:57] Sock 9.Parse request [15:25:57]Sock 9.Check first char [15:25:57]Sock 9.First char is OK [15:25:57]request: POST /json_proto HTTP/1.0 [15:25:57]Method: POST [15:25:57]URL: /json_proto [15:25:57]Method is POST - this is cgi request [15:25:57]url: /json_proto [15:25:57]query_string will be loaded in cgi processing [15:25:57]execute_cgi json_proto POST (null) [15:25:57]execute_cgi path=json_proto method=POST [15:25:57]POST find Content-Length [15:25:57]Host: 172.17.55.133:8080 [15:25:57]Content-Length: 809 [15:25:57]Content-Type: application/json [15:25:57] [15:25:57]POST finish read [15:25:57]Found Content-Length = 809 [15:25:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\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\u000A4204072.4204071", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:57]execute_script... [15:25: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)1036300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\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\u000A4204072.4204071", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:57]POST & json_proto [15:25:57]process_json_proto [15:25:57]json parsed OK: [15:25:57]protocol is kg_v1.0 [15:25:57]action value=close_receipt [15:25:57]process_action close_receipt [15:25:57]cmd_close_receipt [15:25:57]MH_GetDate [15:25:57]Write to MH i2c: F0 00 00 08 94 8B [15:25:57]Write i2c OK [15:25:57]MH_I2C_Read... [15:25:57]Read from MH i2c: F0 [15:25:57]MH_I2C_Read... [15:25:57]Read from MH i2c: F0 09 00 [15:25:57]MH_I2C_Read... [15:25:57]Read from MH i2c: F0 09 00 08 94 00 8B 12 C2 66 34 48 D8 65 12 [15:25:57]GetLastDocTimeStamp 1723994643 [15:25:57]current date 1723994763 [15:25:57]FM_GetShiftState [15:25:57]SAM_PROTO_GetShiftState [15:25:57]wFMCommunicate request_size=4 [15:25:57]MH_SAM_APDU [15:25:57]CAPDU: 80 13 01 00 [15:25:57]Write to MH i2c: E2 08 00 09 94 80 13 01 00 00 00 00 00 1A [15:25:57]Write i2c OK [15:25:57]MH_I2C_Read... [15:25:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:57]Read from MH i2c: E2 [15:25:57]MH_I2C_Read... [15:25:57]Read from MH i2c: E2 0E 00 [15:25:57]MH_I2C_Read... [15:25:57]Read from MH i2c: E2 0E 00 09 94 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 57 [15:25:57]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:25:57]wFMCommunicate OK [15:25:57]SAM_PROTO_GetShiftState done [15:25:57]FM_GetShiftState done [15:25:57]opened in 1723940556 [15:25:57]opened+sec_in_day 1724026956 [15:25:57]quantity*price = 0 [15:25:57]sum+1 = 1 [15:25:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 306 18.08.2024 15:26 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: Топливные Талоны 4204072.4204071 ФМ: 0000000000871820 ФД: 260748 ФПД: 154846643538378 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T152603&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260748&fm=154846643538378&tin=02508201610067®Number=0000000000091865&sum=0 [15:25:58]StoreToDocumentArchive [15:25:58]shift 449 fd 260748 [15:25:58]save to /storage/0449/doc_00260748 [15:25:58]save last doc name /storage/0449/doc_00260748 to /storage/kkm_last_doc_name [15:25:58]save OK [15:25:58]Clear old archive folders... [15:25:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:25:58]tlvbuf is 005C1270 [15:25:58]SAM_PROTO_ClearQueue [15:25:58]wFMCommunicate request_size=4 [15:25:58]MH_SAM_APDU [15:25:58]CAPDU: 80 09 00 00 [15:25:58]Write to MH i2c: E2 08 00 16 94 80 09 00 00 00 00 00 00 1C [15:25:58]Write i2c OK [15:25:58]MH_I2C_Read... [15:25:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:58]Read from MH i2c: E2 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: E2 03 00 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: E2 03 00 16 94 00 90 00 1E [15:25:58]RAPDU: 90 00 [15:25:58]wFMCommunicate OK [15:25:58]SAM_PROTO_ClearQueue done [15:25:58]KKMCreateOFDPacket [15:25:58]OFDProtocolAddRootSTLVToBuf [15:25:58]FM_MakeSignedData [15:25:58]FM_MakeSignedData [15:25:58]SAM_PROTO_SignData [15:25:58]wFMCommunicate request_size=4 [15:25:58]MH_SAM_APDU [15:25:58]CAPDU: 80 0D 01 02 [15:25:58]Write to MH i2c: E2 08 00 17 94 80 0D 01 02 00 00 00 00 24 [15:25:58]Write i2c OK [15:25:58]MH_I2C_Read... [15:25:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:58]Read from MH i2c: E2 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: E2 03 00 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: E2 03 00 17 94 00 90 00 1F [15:25:58]RAPDU: 90 00 [15:25:58]wFMCommunicate OK [15:25:58]wFMCommunicate request_size=255 [15:25:58]MH_SAM_APDU [15:25:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 32 01 00 00 F4 03 04 00 8B 12 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8C FA 03 00 35 04 06 00 8C [15:25:58]Write to MH i2c: E2 02 01 18 94 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 8B 12 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8C FA 03 00 35 04 06 00 8C 00 00 69 [15:25:58]Write i2c OK [15:25:58]MH_I2C_Read... [15:25:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:59]Read from MH i2c: E2 [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: E2 03 00 [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: E2 03 00 18 94 00 90 00 20 [15:25:59]RAPDU: 90 00 [15:25:59]wFMCommunicate OK [15:25:59]wFMCommunicate request_size=10 [15:25:59]MH_SAM_APDU [15:25:59]CAPDU: 80 0D 02 02 05 D5 0B 2E C9 CA [15:25:59]Write to MH i2c: E2 0D 00 19 94 80 0D 02 02 05 00 D5 0B 2E C9 CA 00 00 D2 [15:25:59]Write i2c OK [15:25:59]MH_I2C_Read... [15:25:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:59]Read from MH i2c: E2 [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: E2 03 00 [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: E2 03 00 19 94 00 90 00 21 [15:25:59]RAPDU: 90 00 [15:25:59]wFMCommunicate OK [15:25:59]wFMCommunicate request_size=4 [15:25:59]MH_SAM_APDU [15:25:59]CAPDU: 80 0D 03 02 [15:25:59]Write to MH i2c: E2 08 00 1A 94 80 0D 03 02 00 00 00 00 29 [15:25:59]Write i2c OK [15:25:59]MH_I2C_Read... [15:25:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:59]Read from MH i2c: E2 [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: E2 0B 00 [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: E2 0B 00 1A 94 00 8A 39 17 A3 5D 39 1A B2 90 00 09 [15:25:59]RAPDU: 8A 39 17 A3 5D 39 1A B2 90 00 [15:25:59]wFMCommunicate OK [15:25:59]SAM_PROTO_SignData done [15:25:59]FM_MakeSignedData done [15:25:59]CreateOFDProtocolMessage [15:25:59]wFMCommunicate request_size=4 [15:25:59]MH_SAM_APDU [15:25:59]CAPDU: 80 11 00 00 [15:25:59]Write to MH i2c: E2 08 00 1B 94 80 11 00 00 00 00 00 00 29 [15:25:59]Write i2c OK [15:25:59]MH_I2C_Read... [15:25:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:59]Read from MH i2c: E2 [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: E2 17 00 [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: E2 17 00 1B 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 76 [15:25:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:25:59]wFMCommunicate OK [15:25:59]CreateOFDProtocolMessage done [15:25:59]OFDSenderStorePacket 260748 [15:25:59]StoreOFDPacket docnum=260748 [15:25:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 6D 1E 07 01 E1 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 8B 12 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8C FA 03 00 35 04 06 00 8C D5 0B 2E C9 CA 8A 39 17 A3 5D 39 1A B2 [15:25:59]CheckFolder [15:25:59]dirname=/storage/ofd_packets [15:25:59]CheckFolder done [15:25:59]ProducePacketName [15:25:59]name=ofd_packets/00260748 [15:25:59]NVStorageSaveData ofd_packets/00260748 [15:25:59]File name is /storage/ofd_packets/00260748 [15:25:59]Write 301 bytes [15:25:59]NVStorageSaveData done [15:25:59]OFDSenderStorePacket done [15:25:59]KKMCreateOFDPacket done [15:25:59]NVStorageSaveData kkm_last_timestamp [15:25:59]File name is /storage/kkm_last_timestamp [15:25:59]Write 4 bytes [15:25:59]NVStorageSaveData done [15:25:59]ExternCall_PrintAddStr [15:25:59]wPrintStart [15:25:59]Write to MH i2c: 01 00 00 1C 94 B0 [15:25:59]Write i2c OK [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: 01 [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: 01 07 00 [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: 01 07 00 1C 94 00 00 00 00 00 FF 0F C5 [15:25:59]RasterBufferAndPrint [15:25:59]line Счет N : (1)1036300 [15:25:59]line ИНН: 02508201610067 [15:25:59]line Контрольно-Кассовый Чек [15:25:59]line ПРОДАЖА [15:25:59]line ТРК (МРК, ГНК) : 12 [15:25:59]line Товар: 2710124130 [15:25:59]line Аи-92-К-5 [15:25:59]line 20.000 * 0.00 [15:25:59]line = 0.00 [15:25:59]line НДС 12% НСП 1% [15:25:59]line > о реализуемом товаре [15:25:59]line ИТОГО: 0.00 [15:25:59]line НСП 1% : 0.00 [15:25:59]line НДС 12% : 0.00 [15:25:59]line Наличными: 0.00 [15:25:59]line Безнал.: 0.00 [15:25:59]line Место: АЗС № 94 "Партнер Нефть" [15:25:59]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [15:25:59]line СНО: Общий режим [15:25:59]line Чек 306 18.08.2024 15:26 [15:25:59]line Смена: 449 ФФД: 1.0 [15:25:59]line ЗНМ: 0300000099 [15:25:59]line РНМ: 0000000000091865 [15:25:59]line Версия ККМ: 001 [15:25:59]line Талоны: Топливные Талоны [15:25:59]line 4204072.4204071 [15:25:59]line ФМ: 0000000000871820 [15:25:59]line ФД: 260748 [15:25:59]line ФПД: 154846643538378 [15:25:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T152603&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260748&fm=154846643538378&tin=02508201610067®Number=0000000000091865&sum=0 [15:25:59]written 0, free lines is 4095 [15:25:59]Write to MH i2c: 01 00 00 46 94 DA [15:25:59]Write i2c OK [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: 01 [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: 01 07 00 [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: 01 07 00 46 94 00 00 00 00 00 90 0C 7D [15:25:59]RasterBufferAndPrint [15:25:59]line [15:25:59]line [15:25:59]line [15:25:59]line [15:25:59]line [15:25:59]written 0, free lines is 3220 [15:25:59]MH_Cut [15:25:59]Write to MH i2c: D1 01 00 4D 94 01 B3 [15:25:59]Write i2c OK [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: D1 [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: D1 01 00 [15:25:59]MH_I2C_Read... [15:25:59]Read from MH i2c: D1 01 00 4D 94 00 B2 [15:25:59]Write to MH i2c: 01 00 00 4E 94 E2 [15:25:59]Write i2c OK [15:25:59]MH_I2C_Read... [15:26:00]*** Cut start [15:26:00]*** Purtial cut [15:26:00]*** Stage 1: CUTSNS_PIN = 1 [15:26:02]Read from MH i2c: 01 [15:26:02]MH_I2C_Read... [15:26:02]*** Stop cut motor [15:26:02]*** Cut end [15:26:02]Read from MH i2c: 01 07 00 [15:26:02]MH_I2C_Read... [15:26:02]Read from MH i2c: 01 07 00 4E 94 00 00 00 00 00 FF 0F F7 [15:26:02]process_action close_receipt done [15:26:02]requested_data is exist [15:26:02]produce_requested_data [15:26:02]requested_item fm.sn is exist - process it [15:26:02]wFMCommunicate request_size=4 [15:26:02]MH_SAM_APDU [15:26:02]CAPDU: 80 11 00 00 [15:26:02]Write to MH i2c: E2 08 00 4F 94 80 11 00 00 00 00 00 00 5D [15:26:02]Write i2c OK [15:26:02]MH_I2C_Read... [15:26:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:02]Read from MH i2c: E2 [15:26:02]MH_I2C_Read... [15:26:02]Read from MH i2c: E2 17 00 [15:26:02]MH_I2C_Read... [15:26:02]Read from MH i2c: E2 17 00 4F 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 AA [15:26:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:26:02]wFMCommunicate OK [15:26:02]requested_item fd.num is exist - process it [15:26:02]SAM_PROTO_GetFieldsCounters [15:26:02]wFMCommunicate request_size=4 [15:26:02]MH_SAM_APDU [15:26:02]CAPDU: 80 13 00 00 [15:26:02]Write to MH i2c: E2 08 00 50 94 80 13 00 00 00 00 00 00 60 [15:26:02]Write i2c OK [15:26:02]MH_I2C_Read... [15:26:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:03]Read from MH i2c: E2 [15:26:03]MH_I2C_Read... [15:26:03]Read from MH i2c: E2 62 00 [15:26:03]MH_I2C_Read... [15:26:03]Read from MH i2c: E2 62 00 50 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 8C FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 63 [15:26: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 8C FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:26:03]wFMCommunicate OK [15:26:03]SAM_PROTO_GetFieldsCounters done [15:26:03]requested_item shift.num is exist - process it [15:26:03]requested_item shift.opened is exist - process it [15:26:03]req_shift_opened [15:26:03]FM_GetShiftState [15:26:03]SAM_PROTO_GetShiftState [15:26:03]wFMCommunicate request_size=4 [15:26:03]MH_SAM_APDU [15:26:03]CAPDU: 80 13 01 00 [15:26:03]Write to MH i2c: E2 08 00 51 94 80 13 01 00 00 00 00 00 62 [15:26:03]Write i2c OK [15:26:03]MH_I2C_Read... [15:26:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:03]Read from MH i2c: E2 [15:26:03]MH_I2C_Read... [15:26:03]Read from MH i2c: E2 0E 00 [15:26:03]MH_I2C_Read... [15:26:03]Read from MH i2c: E2 0E 00 51 94 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 9F [15:26:03]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:26:03]wFMCommunicate OK [15:26:03]SAM_PROTO_GetShiftState done [15:26:03]FM_GetShiftState done [15:26:03]req_shift_opened done [15:26:03]requested_item shift.open_date is exist - process it [15:26:03]req_shift_open_date [15:26:03]req_shift_open_date done [15:26:03]produce_requested_data done [15:26:03]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260748,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [15:26:03]process_action_free close_receipt [15:26:03]json_value_free [15:26:03]json_value_free done [15:26:03]process_json_proto returns [15:26:03]Send response to host [15:26:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260748,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [15:26:03]free response buf [15:26:03]execute_script done [15:26:03]execute_script returns [15:26:03]free content buf [15:26:03]Sock 9.Close socket [15:26:03]Sock 9.Thread stoped [15:26:10]ConnectInit Can't connect to host [15:26:10]CommunicateWithHost connect error [15:26:10]CommunicateWithHost err = -1 [15:26:10]OFD Sender: Server communicate error [15:26:10]OFD Sender: Processing packet 260747 [packets to send 193, broken 191] [15:26:10]ProducePacketName [15:26:10]name=ofd_packets/00260747 [15:26:10]OFD Sender: To server: pG, [15:26:10]CommunicateWithHost lk.salyk.kg:30040 [15:26:10]ConnectInit lk.salyk.kg [15:26:10]Connected sock=9 [15:26: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 30 0F 01 00 00 5D 71 07 01 22 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 30 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 1D 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 13 12 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8B FA 03 00 35 04 06 00 7D F2 F3 2D 18 3D 05 8C F4 EF C9 B7 66 69 [15:26: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 30 4F 00 00 00 37 72 47 00 CB 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 30 10 04 04 00 8B FA 03 00 F4 03 04 00 EA BB C1 66 B6 04 01 00 00 F2 A5 31 DF E2 BD 08 36 [15:26:11]CommunicateWithHost err = 0 [15:26:11]CheckOFDResponse [15:26:11]1017 (14) - 77093643461234 [15:26:11]1041 (16) - 0000000000871820 [15:26:11]1040 (4) - 260747 [15:26:11]1012 (4) - 18.08.2024 09:16 [15:26:11]1206 (1) - 0 [15:26:11]OFD Sender: Remove packet 260747 [15:26:11]ProducePacketName [15:26:11]name=ofd_packets/00260747 [15:26:11]NVStorageDeleteData [15:26:11]OFD Sender: Processing packet 260748 [packets to send 192, broken 191] [15:26:11]ProducePacketName [15:26:11]name=ofd_packets/00260748 [15:26:11]OFD Sender: To server: pG, [15:26:11]CommunicateWithHost lk.salyk.kg:30040 [15:26:11]ConnectInit lk.salyk.kg [15:26:11]Connected sock=9 [15:26: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 30 0F 01 00 00 6D 1E 07 01 E1 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 8B 12 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8C FA 03 00 35 04 06 00 8C D5 0B 2E C9 CA 8A 39 17 A3 5D 39 1A B2 [15:26: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 30 4F 00 00 00 0C 5D 47 00 AB 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 30 10 04 04 00 8C FA 03 00 F4 03 04 00 EB BB C1 66 B6 04 01 00 00 41 13 60 A7 D3 CB F4 27 [15:26:11]CommunicateWithHost err = 0 [15:26:11]CheckOFDResponse [15:26:11]1017 (14) - 77093643461234 [15:26:11]1041 (16) - 0000000000871820 [15:26:11]1040 (4) - 260748 [15:26:11]1012 (4) - 18.08.2024 09:16 [15:26:11]1206 (1) - 0 [15:26:11]OFD Sender: Remove packet 260748 [15:26:11]ProducePacketName [15:26:11]name=ofd_packets/00260748 [15:26:11]NVStorageDeleteData [15:26:12]OFD Sender: No OFD packet to send [15:26:17]OFD Sender: No OFD packet to send [15:26:22]OFD Sender: No OFD packet to send [15:26:27]OFD Sender: No OFD packet to send [15:26:32]OFD Sender: No OFD packet to send [15:26:37]OFD Sender: No OFD packet to send [15:26:42]OFD Sender: No OFD packet to send [15:26:47]OFD Sender: No OFD packet to send [15:26:52]OFD Sender: No OFD packet to send [15:26:57]OFD Sender: No OFD packet to send [15:27:02]OFD Sender: No OFD packet to send [15:27:07]OFD Sender: No OFD packet to send [15:27:11]accept exits with 7 [15:27:11]New connection [15:27:11]New thread 3066617188 created [15:27:11]Thread 3066473828 joined [15:27:11]Waiting for new connection... [15:27:11] Sock 7.Parse request [15:27:11]Sock 7.Check first char [15:27:11]Sock 7.First char is OK [15:27:11]request: POST /json_proto HTTP/1.0 [15:27:11]Method: POST [15:27:11]URL: /json_proto [15:27:11]Method is POST - this is cgi request [15:27:11]url: /json_proto [15:27:11]query_string will be loaded in cgi processing [15:27:11]execute_cgi json_proto POST (null) [15:27:11]execute_cgi path=json_proto method=POST [15:27:11]POST find Content-Length [15:27:11]Host: 172.17.55.133:8080 [15:27:11]Content-Length: 684 [15:27:11]Content-Type: application/json [15:27:11] [15:27:11]POST finish read [15:27:11]Found Content-Length = 684 [15:27:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "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" ] } } [15:27:11]execute_script... [15:27: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)1036301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "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" ] } } [15:27:11]POST & json_proto [15:27:11]process_json_proto [15:27:11]json parsed OK: [15:27:11]protocol is kg_v1.0 [15:27:11]action value=close_receipt [15:27:11]process_action close_receipt [15:27:11]cmd_close_receipt [15:27:11]MH_GetDate [15:27:11]Write to MH i2c: F0 00 00 52 94 D5 [15:27:11]Write i2c OK [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: F0 [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: F0 09 00 [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: F0 09 00 52 94 00 D4 12 C2 66 34 48 D8 65 A5 [15:27:11]GetLastDocTimeStamp 1723994763 [15:27:11]current date 1723994836 [15:27:11]FM_GetShiftState [15:27:11]SAM_PROTO_GetShiftState [15:27:11]wFMCommunicate request_size=4 [15:27:11]MH_SAM_APDU [15:27:11]CAPDU: 80 13 01 00 [15:27:11]Write to MH i2c: E2 08 00 53 94 80 13 01 00 00 00 00 00 64 [15:27:11]Write i2c OK [15:27:11]MH_I2C_Read... [15:27:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:11]Read from MH i2c: E2 [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: E2 0E 00 [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: E2 0E 00 53 94 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A1 [15:27:11]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:27:11]wFMCommunicate OK [15:27:11]SAM_PROTO_GetShiftState done [15:27:11]FM_GetShiftState done [15:27:11]opened in 1723940556 [15:27:11]opened+sec_in_day 1724026956 [15:27:11]quantity*price = 80010 [15:27:11]sum+1 = 80011 [15:27:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 307 18.08.2024 15:27 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260749 ФПД: 232892268309290 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T152716&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260749&fm=232892268309290&tin=02508201610067®Number=0000000000091865&sum=80000 [15:27:12]StoreToDocumentArchive [15:27:12]shift 449 fd 260749 [15:27:12]save to /storage/0449/doc_00260749 [15:27:12]save last doc name /storage/0449/doc_00260749 to /storage/kkm_last_doc_name [15:27:12]save OK [15:27:12]Clear old archive folders... [15:27:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:27:12]tlvbuf is 005406B0 [15:27:12]SAM_PROTO_ClearQueue [15:27:12]wFMCommunicate request_size=4 [15:27:12]MH_SAM_APDU [15:27:12]CAPDU: 80 09 00 00 [15:27:12]Write to MH i2c: E2 08 00 60 94 80 09 00 00 00 00 00 00 66 [15:27:12]Write i2c OK [15:27:12]MH_I2C_Read... [15:27:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:27:12]OFD Sender: No OFD packet to send [15:27:12]Read from MH i2c: E2 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: E2 03 00 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: E2 03 00 60 94 00 90 00 68 [15:27:12]RAPDU: 90 00 [15:27:12]wFMCommunicate OK [15:27:12]SAM_PROTO_ClearQueue done [15:27:12]KKMCreateOFDPacket [15:27:12]OFDProtocolAddRootSTLVToBuf [15:27:12]FM_MakeSignedData [15:27:12]FM_MakeSignedData [15:27:12]SAM_PROTO_SignData [15:27:12]wFMCommunicate request_size=4 [15:27:12]MH_SAM_APDU [15:27:12]CAPDU: 80 0D 01 02 [15:27:12]Write to MH i2c: E2 08 00 61 94 80 0D 01 02 00 00 00 00 6E [15:27:12]Write i2c OK [15:27:12]MH_I2C_Read... [15:27:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:27:12]Read from MH i2c: E2 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: E2 03 00 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: E2 03 00 61 94 00 90 00 69 [15:27:12]RAPDU: 90 00 [15:27:12]wFMCommunicate OK [15:27:12]wFMCommunicate request_size=255 [15:27:12]MH_SAM_APDU [15:27:12]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 D4 12 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8D FA 03 00 35 04 06 00 [15:27:12]Write to MH i2c: E2 02 01 62 94 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 D4 12 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8D FA 03 00 35 04 06 00 00 00 99 [15:27:12]Write i2c OK [15:27:12]MH_I2C_Read... [15:27:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:12]Read from MH i2c: E2 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: E2 03 00 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: E2 03 00 62 94 00 90 00 6A [15:27:12]RAPDU: 90 00 [15:27:12]wFMCommunicate OK [15:27:12]wFMCommunicate request_size=11 [15:27:12]MH_SAM_APDU [15:27:12]CAPDU: 80 0D 02 02 06 D3 D0 74 EC 6B 2A [15:27:12]Write to MH i2c: E2 0E 00 63 94 80 0D 02 02 06 00 D3 D0 74 EC 6B 2A 00 00 15 [15:27:12]Write i2c OK [15:27:12]MH_I2C_Read... [15:27:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:12]Read from MH i2c: E2 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: E2 03 00 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: E2 03 00 63 94 00 90 00 6B [15:27:12]RAPDU: 90 00 [15:27:12]wFMCommunicate OK [15:27:12]wFMCommunicate request_size=4 [15:27:12]MH_SAM_APDU [15:27:12]CAPDU: 80 0D 03 02 [15:27:12]Write to MH i2c: E2 08 00 64 94 80 0D 03 02 00 00 00 00 73 [15:27:12]Write i2c OK [15:27:12]MH_I2C_Read... [15:27:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:27:12]Read from MH i2c: E2 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: E2 0B 00 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: E2 0B 00 64 94 00 CA 84 B1 9F 9B FF 77 5A 90 00 7D [15:27:12]RAPDU: CA 84 B1 9F 9B FF 77 5A 90 00 [15:27:12]wFMCommunicate OK [15:27:12]SAM_PROTO_SignData done [15:27:12]FM_MakeSignedData done [15:27:12]CreateOFDProtocolMessage [15:27:12]wFMCommunicate request_size=4 [15:27:12]MH_SAM_APDU [15:27:12]CAPDU: 80 11 00 00 [15:27:12]Write to MH i2c: E2 08 00 65 94 80 11 00 00 00 00 00 00 73 [15:27:12]Write i2c OK [15:27:12]MH_I2C_Read... [15:27:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:13]Read from MH i2c: E2 [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: E2 17 00 [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: E2 17 00 65 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C0 [15:27:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:27:13]wFMCommunicate OK [15:27:13]CreateOFDProtocolMessage done [15:27:13]OFDSenderStorePacket 260749 [15:27:13]StoreOFDPacket docnum=260749 [15:27:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 19 5B 08 01 2C B0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 D4 12 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8D FA 03 00 35 04 06 00 D3 D0 74 EC 6B 2A CA 84 B1 9F 9B FF 77 5A [15:27:13]CheckFolder [15:27:13]dirname=/storage/ofd_packets [15:27:13]CheckFolder done [15:27:13]ProducePacketName [15:27:13]name=ofd_packets/00260749 [15:27:13]NVStorageSaveData ofd_packets/00260749 [15:27:13]File name is /storage/ofd_packets/00260749 [15:27:13]Write 302 bytes [15:27:13]NVStorageSaveData done [15:27:13]OFDSenderStorePacket done [15:27:13]KKMCreateOFDPacket done [15:27:13]NVStorageSaveData kkm_last_timestamp [15:27:13]File name is /storage/kkm_last_timestamp [15:27:13]Write 4 bytes [15:27:13]NVStorageSaveData done [15:27:13]ExternCall_PrintAddStr [15:27:13]wPrintStart [15:27:13]Write to MH i2c: 01 00 00 66 94 FA [15:27:13]Write i2c OK [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: 01 [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: 01 07 00 [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: 01 07 00 66 94 00 00 00 00 00 FF 0F 0F [15:27:13]RasterBufferAndPrint [15:27:13]line Счет N : (1)1036301 [15:27:13]line ИНН: 02508201610067 [15:27:13]line Контрольно-Кассовый Чек [15:27:13]line ПРОДАЖА [15:27:13]line ТРК (МРК, ГНК) : 33 [15:27:13]line Товар: 2710194210 [15:27:13]line ДТ(л)-К-4 [15:27:13]line 10.500 * 76.20 [15:27:13]line = 800.10 [15:27:13]line НДС 12% НСП 1% [15:27:13]line > о реализуемом товаре [15:27:13]line ОКРУГЛЕНИЕ: -0.10 [15:27:13]line ИТОГО: 800.00 [15:27:13]line Внесено: 800.00 [15:27:13]line СДАЧА: 0.00 [15:27:13]line НСП 1% : 7.08 [15:27:13]line НДС 12% : 84.97 [15:27:13]line Наличными: 800.00 [15:27:13]line Безнал.: 0.00 [15:27:13]line Место: АЗС № 94 "Партнер Нефть" [15:27:13]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [15:27:13]line СНО: Общий режим [15:27:13]line Чек 307 18.08.2024 15:27 [15:27:13]line Смена: 449 ФФД: 1.0 [15:27:13]line ЗНМ: 0300000099 [15:27:13]line РНМ: 0000000000091865 [15:27:13]line Версия ККМ: 001 [15:27:13]line ФМ: 0000000000871820 [15:27:13]line ФД: 260749 [15:27:13]line ФПД: 232892268309290 [15:27:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T152716&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260749&fm=232892268309290&tin=02508201610067®Number=0000000000091865&sum=80000 [15:27:13]OFD Sender: Processing packet 260749 [packets to send 192, broken 191] [15:27:13]ProducePacketName [15:27:13]name=ofd_packets/00260749 [15:27:13]OFD Sender: To server: pG, [15:27:13]CommunicateWithHost lk.salyk.kg:30040 [15:27:13]ConnectInit lk.salyk.kg [15:27:13]written 0, free lines is 4095 [15:27:13]Connected sock=10 [15:27: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 30 10 01 00 00 19 5B 08 01 2C B0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 D4 12 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8D FA 03 00 35 04 06 00 D3 D0 74 EC 6B 2A CA 84 B1 9F 9B FF 77 5A [15:27: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 30 4F 00 00 00 11 40 47 00 84 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 30 10 04 04 00 8D FA 03 00 F4 03 04 00 29 BC C1 66 B6 04 01 00 00 6D 2B AC 7A 0E 58 70 E3 [15:27:13]CommunicateWithHost err = 0 [15:27:13]CheckOFDResponse [15:27:13]1017 (14) - 77093643461234 [15:27:13]1041 (16) - 0000000000871820 [15:27:13]1040 (4) - 260749 [15:27:13]1012 (4) - 18.08.2024 09:17 [15:27:13]1206 (1) - 0 [15:27:13]OFD Sender: Remove packet 260749 [15:27:13]ProducePacketName [15:27:13]name=ofd_packets/00260749 [15:27:13]NVStorageDeleteData [15:27:13]Write to MH i2c: 01 00 00 91 94 25 [15:27:13]Write i2c OK [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: 01 [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: 01 07 00 [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: 01 07 00 91 94 00 00 00 00 00 70 0C A8 [15:27:13]RasterBufferAndPrint [15:27:13]line [15:27:13]line [15:27:13]line [15:27:13]line [15:27:13]line [15:27:13]written 0, free lines is 3187 [15:27:13]MH_Cut [15:27:13]Write to MH i2c: D1 01 00 98 94 01 FE [15:27:13]Write i2c OK [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: D1 [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: D1 01 00 [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: D1 01 00 98 94 00 FD [15:27:13]Write to MH i2c: 01 00 00 99 94 2D [15:27:13]Write i2c OK [15:27:13]MH_I2C_Read... [15:27:14]OFD Sender: No OFD packet to send [15:27:14]*** Cut start [15:27:14]*** Purtial cut [15:27:14]*** Stage 1: CUTSNS_PIN = 1 [15:27:16]Read from MH i2c: 01 [15:27:16]MH_I2C_Read... [15:27:16]*** Stop cut motor [15:27:16]*** Cut end [15:27:16]Read from MH i2c: 01 07 00 [15:27:16]MH_I2C_Read... [15:27:16]Read from MH i2c: 01 07 00 99 94 00 00 00 00 00 FF 0F 42 [15:27:16]process_action close_receipt done [15:27:16]requested_data is exist [15:27:16]produce_requested_data [15:27:16]requested_item fm.sn is exist - process it [15:27:16]wFMCommunicate request_size=4 [15:27:16]MH_SAM_APDU [15:27:16]CAPDU: 80 11 00 00 [15:27:16]Write to MH i2c: E2 08 00 9A 94 80 11 00 00 00 00 00 00 A8 [15:27:16]Write i2c OK [15:27:16]MH_I2C_Read... [15:27:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:17]Read from MH i2c: E2 [15:27:17]MH_I2C_Read... [15:27:17]Read from MH i2c: E2 17 00 [15:27:17]MH_I2C_Read... [15:27:17]Read from MH i2c: E2 17 00 9A 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F5 [15:27:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:27:17]wFMCommunicate OK [15:27:17]requested_item fd.num is exist - process it [15:27:17]SAM_PROTO_GetFieldsCounters [15:27:17]wFMCommunicate request_size=4 [15:27:17]MH_SAM_APDU [15:27:17]CAPDU: 80 13 00 00 [15:27:17]Write to MH i2c: E2 08 00 9B 94 80 13 00 00 00 00 00 00 AB [15:27:17]Write i2c OK [15:27:17]MH_I2C_Read... [15:27:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:27:17]Read from MH i2c: E2 [15:27:17]MH_I2C_Read... [15:27:17]Read from MH i2c: E2 62 00 [15:27:17]MH_I2C_Read... [15:27:17]Read from MH i2c: E2 62 00 9B 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 8D FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 B2 [15:27: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 8D FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:27:17]wFMCommunicate OK [15:27:17]SAM_PROTO_GetFieldsCounters done [15:27:17]requested_item shift.num is exist - process it [15:27:17]requested_item shift.opened is exist - process it [15:27:17]req_shift_opened [15:27:17]FM_GetShiftState [15:27:17]SAM_PROTO_GetShiftState [15:27:17]wFMCommunicate request_size=4 [15:27:17]MH_SAM_APDU [15:27:17]CAPDU: 80 13 01 00 [15:27:17]Write to MH i2c: E2 08 00 9C 94 80 13 01 00 00 00 00 00 AD [15:27:17]Write i2c OK [15:27:17]MH_I2C_Read... [15:27:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:17]Read from MH i2c: E2 [15:27:17]MH_I2C_Read... [15:27:17]Read from MH i2c: E2 0E 00 [15:27:17]MH_I2C_Read... [15:27:17]Read from MH i2c: E2 0E 00 9C 94 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 EA [15:27:17]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:27:17]wFMCommunicate OK [15:27:17]SAM_PROTO_GetShiftState done [15:27:17]FM_GetShiftState done [15:27:17]req_shift_opened done [15:27:17]requested_item shift.open_date is exist - process it [15:27:17]req_shift_open_date [15:27:17]req_shift_open_date done [15:27:17]produce_requested_data done [15:27:17]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260749,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [15:27:17]process_action_free close_receipt [15:27:17]json_value_free [15:27:17]json_value_free done [15:27:17]process_json_proto returns [15:27:17]Send response to host [15:27:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260749,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [15:27:17]free response buf [15:27:17]execute_script done [15:27:17]execute_script returns [15:27:17]free content buf [15:27:17]Sock 7.Close socket [15:27:17]Sock 7.Thread stoped [15:27:19]OFD Sender: No OFD packet to send [15:27:24]OFD Sender: No OFD packet to send [15:27:29]OFD Sender: No OFD packet to send [15:27:34]OFD Sender: No OFD packet to send [15:27:39]OFD Sender: No OFD packet to send [15:27:44]OFD Sender: No OFD packet to send [15:27:49]OFD Sender: No OFD packet to send [15:27:53]accept exits with 9 [15:27:53]New connection [15:27:53]New thread 3066473828 created [15:27:53]Thread 3066617188 joined [15:27:53]Waiting for new connection... [15:27:53] Sock 9.Parse request [15:27:53]Sock 9.Check first char [15:27:53]Sock 9.First char is OK [15:27:53]request: POST /json_proto HTTP/1.0 [15:27:53]Method: POST [15:27:53]URL: /json_proto [15:27:53]Method is POST - this is cgi request [15:27:53]url: /json_proto [15:27:53]query_string will be loaded in cgi processing [15:27:53]execute_cgi json_proto POST (null) [15:27:53]execute_cgi path=json_proto method=POST [15:27:53]POST find Content-Length [15:27:53]Host: 172.17.55.133:8080 [15:27:53]Content-Length: 678 [15:27:53]Content-Type: application/json [15:27:53] [15:27:53]POST finish read [15:27:53]Found Content-Length = 678 [15:27:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:53]execute_script... [15:27: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)1036302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:53]POST & json_proto [15:27:53]process_json_proto [15:27:53]json parsed OK: [15:27:53]protocol is kg_v1.0 [15:27:53]action value=close_receipt [15:27:53]process_action close_receipt [15:27:53]cmd_close_receipt [15:27:53]MH_GetDate [15:27:53]Write to MH i2c: F0 00 00 9D 94 20 [15:27:53]Write i2c OK [15:27:53]MH_I2C_Read... [15:27:53]Read from MH i2c: F0 [15:27:53]MH_I2C_Read... [15:27:53]Read from MH i2c: F0 09 00 [15:27:53]MH_I2C_Read... [15:27:53]Read from MH i2c: F0 09 00 9D 94 00 FE 12 C2 66 34 48 D8 65 1A [15:27:53]GetLastDocTimeStamp 1723994836 [15:27:53]current date 1723994878 [15:27:53]FM_GetShiftState [15:27:53]SAM_PROTO_GetShiftState [15:27:53]wFMCommunicate request_size=4 [15:27:53]MH_SAM_APDU [15:27:53]CAPDU: 80 13 01 00 [15:27:53]Write to MH i2c: E2 08 00 9E 94 80 13 01 00 00 00 00 00 AF [15:27:53]Write i2c OK [15:27:53]MH_I2C_Read... [15:27:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:53]Read from MH i2c: E2 [15:27:53]MH_I2C_Read... [15:27:53]Read from MH i2c: E2 0E 00 [15:27:53]MH_I2C_Read... [15:27:53]Read from MH i2c: E2 0E 00 9E 94 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 EC [15:27:53]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:27:53]wFMCommunicate OK [15:27:53]SAM_PROTO_GetShiftState done [15:27:53]FM_GetShiftState done [15:27:53]opened in 1723940556 [15:27:53]opened+sec_in_day 1724026956 [15:27:53]quantity*price = 50036 [15:27:53]sum+1 = 50037 [15:27:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 308 18.08.2024 15:27 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260750 ФПД: 263961761212627 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T152758&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260750&fm=263961761212627&tin=02508201610067®Number=0000000000091865&sum=50000 [15:27:54]StoreToDocumentArchive [15:27:54]shift 449 fd 260750 [15:27:54]save to /storage/0449/doc_00260750 [15:27:54]save last doc name /storage/0449/doc_00260750 to /storage/kkm_last_doc_name [15:27:54]save OK [15:27:54]Clear old archive folders... [15:27:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:27:54]tlvbuf is 00336550 [15:27:54]SAM_PROTO_ClearQueue [15:27:54]wFMCommunicate request_size=4 [15:27:54]MH_SAM_APDU [15:27:54]CAPDU: 80 09 00 00 [15:27:54]Write to MH i2c: E2 08 00 AB 94 80 09 00 00 00 00 00 00 B1 [15:27:54]Write i2c OK [15:27:54]MH_I2C_Read... [15:27:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:27:54]Read from MH i2c: E2 [15:27:54]MH_I2C_Read... [15:27:54]Read from MH i2c: E2 03 00 [15:27:54]MH_I2C_Read... [15:27:54]Read from MH i2c: E2 03 00 AB 94 00 90 00 B3 [15:27:54]RAPDU: 90 00 [15:27:54]wFMCommunicate OK [15:27:54]SAM_PROTO_ClearQueue done [15:27:54]KKMCreateOFDPacket [15:27:54]OFDProtocolAddRootSTLVToBuf [15:27:54]FM_MakeSignedData [15:27:54]FM_MakeSignedData [15:27:54]SAM_PROTO_SignData [15:27:54]wFMCommunicate request_size=4 [15:27:54]MH_SAM_APDU [15:27:54]CAPDU: 80 0D 01 02 [15:27:54]Write to MH i2c: E2 08 00 AC 94 80 0D 01 02 00 00 00 00 B9 [15:27:54]Write i2c OK [15:27:54]MH_I2C_Read... [15:27:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:27:54]Read from MH i2c: E2 [15:27:54]MH_I2C_Read... [15:27:54]Read from MH i2c: E2 03 00 [15:27:54]MH_I2C_Read... [15:27:54]Read from MH i2c: E2 03 00 AC 94 00 90 00 B4 [15:27:54]RAPDU: 90 00 [15:27:54]wFMCommunicate OK [15:27:54]wFMCommunicate request_size=255 [15:27:54]MH_SAM_APDU [15:27:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 34 01 00 00 F4 03 04 00 FE 12 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8E FA 03 00 35 04 06 00 F0 [15:27:54]Write to MH i2c: E2 02 01 AD 94 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 34 01 00 00 F4 03 04 00 FE 12 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8E FA 03 00 35 04 06 00 F0 00 00 E0 [15:27:54]Write i2c OK [15:27:54]MH_I2C_Read... [15:27:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:54]Read from MH i2c: E2 [15:27:54]MH_I2C_Read... [15:27:54]Read from MH i2c: E2 03 00 [15:27:54]MH_I2C_Read... [15:27:54]Read from MH i2c: E2 03 00 AD 94 00 90 00 B5 [15:27:54]RAPDU: 90 00 [15:27:54]wFMCommunicate OK [15:27:54]wFMCommunicate request_size=10 [15:27:54]MH_SAM_APDU [15:27:54]CAPDU: 80 0D 02 02 05 12 63 02 E8 D3 [15:27:54]Write to MH i2c: E2 0D 00 AE 94 80 0D 02 02 05 00 12 63 02 E8 D3 00 00 F8 [15:27:54]Write i2c OK [15:27:54]MH_I2C_Read... [15:27:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:54]Read from MH i2c: E2 [15:27:54]MH_I2C_Read... [15:27:54]Read from MH i2c: E2 03 00 [15:27:54]MH_I2C_Read... [15:27:54]Read from MH i2c: E2 03 00 AE 94 00 90 00 B6 [15:27:54]RAPDU: 90 00 [15:27:54]wFMCommunicate OK [15:27:54]wFMCommunicate request_size=4 [15:27:54]MH_SAM_APDU [15:27:54]CAPDU: 80 0D 03 02 [15:27:54]Write to MH i2c: E2 08 00 AF 94 80 0D 03 02 00 00 00 00 BE [15:27:54]Write i2c OK [15:27:54]MH_I2C_Read... [15:27:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:27:54]Read from MH i2c: E2 [15:27:54]MH_I2C_Read... [15:27:54]Read from MH i2c: E2 0B 00 [15:27:54]MH_I2C_Read... [15:27:54]Read from MH i2c: E2 0B 00 AF 94 00 EF F3 59 C9 BD E6 D8 42 90 00 80 [15:27:54]RAPDU: EF F3 59 C9 BD E6 D8 42 90 00 [15:27:54]wFMCommunicate OK [15:27:54]SAM_PROTO_SignData done [15:27:54]FM_MakeSignedData done [15:27:54]CreateOFDProtocolMessage [15:27:54]wFMCommunicate request_size=4 [15:27:54]MH_SAM_APDU [15:27:54]CAPDU: 80 11 00 00 [15:27:54]Write to MH i2c: E2 08 00 B0 94 80 11 00 00 00 00 00 00 BE [15:27:54]Write i2c OK [15:27:54]MH_I2C_Read... [15:27:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:54]Read from MH i2c: E2 [15:27:54]MH_I2C_Read... [15:27:54]Read from MH i2c: E2 17 00 [15:27:54]MH_I2C_Read... [15:27:54]Read from MH i2c: E2 17 00 B0 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 0B [15:27:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:27:54]wFMCommunicate OK [15:27:54]CreateOFDProtocolMessage done [15:27:54]OFDSenderStorePacket 260750 [15:27:54]StoreOFDPacket docnum=260750 [15:27:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 15 BD 07 01 D9 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 34 01 00 00 F4 03 04 00 FE 12 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8E FA 03 00 35 04 06 00 F0 12 63 02 E8 D3 EF F3 59 C9 BD E6 D8 42 [15:27:54]CheckFolder [15:27:54]dirname=/storage/ofd_packets [15:27:54]CheckFolder done [15:27:54]ProducePacketName [15:27:54]name=ofd_packets/00260750 [15:27:54]NVStorageSaveData ofd_packets/00260750 [15:27:54]File name is /storage/ofd_packets/00260750 [15:27:54]Write 301 bytes [15:27:54]NVStorageSaveData done [15:27:54]OFDSenderStorePacket done [15:27:54]KKMCreateOFDPacket done [15:27:54]NVStorageSaveData kkm_last_timestamp [15:27:54]File name is /storage/kkm_last_timestamp [15:27:54]Write 4 bytes [15:27:54]NVStorageSaveData done [15:27:54]ExternCall_PrintAddStr [15:27:54]wPrintStart [15:27:54]Write to MH i2c: 01 00 00 B1 94 45 [15:27:54]Write i2c OK [15:27:54]MH_I2C_Read... [15:27:54]Read from MH i2c: 01 [15:27:54]MH_I2C_Read... [15:27:54]Read from MH i2c: 01 07 00 [15:27:54]MH_I2C_Read... [15:27:54]Read from MH i2c: 01 07 00 B1 94 00 00 00 00 00 FF 0F 5A [15:27:54]RasterBufferAndPrint [15:27:54]line Счет N : (1)1036302 [15:27:54]line ИНН: 02508201610067 [15:27:54]line Контрольно-Кассовый Чек [15:27:54]line ПРОДАЖА [15:27:54]line ТРК (МРК, ГНК) : 22 [15:27:54]line Товар: 2710124130 [15:27:54]line Аи-92-К-5 [15:27:54]line 7.380 * 67.80 [15:27:54]line = 500.36 [15:27:54]line НДС 12% НСП 1% [15:27:54]line > о реализуемом товаре [15:27:54]line ОКРУГЛЕНИЕ: -0.36 [15:27:54]line ИТОГО: 500.00 [15:27:54]line Внесено: 500.00 [15:27:54]line СДАЧА: 0.00 [15:27:54]line НСП 1% : 4.43 [15:27:54]line НДС 12% : 53.14 [15:27:54]line Наличными: 500.00 [15:27:54]line Безнал.: 0.00 [15:27:54]line Место: АЗС № 94 "Партнер Нефть" [15:27:54]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [15:27:54]line СНО: Общий режим [15:27:54]line Чек 308 18.08.2024 15:27 [15:27:54]line Смена: 449 ФФД: 1.0 [15:27:54]line ЗНМ: 0300000099 [15:27:54]line РНМ: 0000000000091865 [15:27:54]line Версия ККМ: 001 [15:27:54]line ФМ: 0000000000871820 [15:27:54]line ФД: 260750 [15:27:54]line ФПД: 263961761212627 [15:27:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T152758&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260750&fm=263961761212627&tin=02508201610067®Number=0000000000091865&sum=50000 [15:27:55]OFD Sender: Processing packet 260750 [packets to send 192, broken 191] [15:27:55]ProducePacketName [15:27:55]name=ofd_packets/00260750 [15:27:55]OFD Sender: To server: pG, [15:27:55]CommunicateWithHost lk.salyk.kg:30040 [15:27:55]ConnectInit lk.salyk.kg [15:27:55]written 0, free lines is 4095 [15:27:55]Connected sock=10 [15:27: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 30 0F 01 00 00 15 BD 07 01 D9 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 34 01 00 00 F4 03 04 00 FE 12 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8E FA 03 00 35 04 06 00 F0 12 63 02 E8 D3 EF F3 59 C9 BD E6 D8 42 [15:27: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 30 4F 00 00 00 C1 0A 47 00 2D 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8E FA 03 00 F4 03 04 00 53 BC C1 66 B6 04 01 00 00 4A 45 B8 03 61 A6 1B 4D [15:27:55]CommunicateWithHost err = 0 [15:27:55]CheckOFDResponse [15:27:55]1017 (14) - 77093643461234 [15:27:55]1041 (16) - 0000000000871820 [15:27:55]1040 (4) - 260750 [15:27:55]1012 (4) - 18.08.2024 09:18 [15:27:55]1206 (1) - 0 [15:27:55]OFD Sender: Remove packet 260750 [15:27:55]ProducePacketName [15:27:55]name=ofd_packets/00260750 [15:27:55]NVStorageDeleteData [15:27:55]Write to MH i2c: 01 00 00 DC 94 70 [15:27:55]Write i2c OK [15:27:55]MH_I2C_Read... [15:27:55]Read from MH i2c: 01 [15:27:55]MH_I2C_Read... [15:27:55]Read from MH i2c: 01 07 00 [15:27:55]MH_I2C_Read... [15:27:55]Read from MH i2c: 01 07 00 DC 94 00 00 00 00 00 6F 0C F2 [15:27:55]RasterBufferAndPrint [15:27:55]line [15:27:55]line [15:27:55]line [15:27:55]line [15:27:55]line [15:27:55]written 0, free lines is 3186 [15:27:55]MH_Cut [15:27:55]Write to MH i2c: D1 01 00 E3 94 01 49 [15:27:55]Write i2c OK [15:27:55]MH_I2C_Read... [15:27:55]Read from MH i2c: D1 [15:27:55]MH_I2C_Read... [15:27:55]Read from MH i2c: D1 01 00 [15:27:55]MH_I2C_Read... [15:27:55]Read from MH i2c: D1 01 00 E3 94 00 48 [15:27:55]Write to MH i2c: 01 00 00 E4 94 78 [15:27:55]Write i2c OK [15:27:55]MH_I2C_Read... [15:27:55]OFD Sender: No OFD packet to send [15:27:56]*** Cut start [15:27:56]*** Purtial cut [15:27:56]*** Stage 1: CUTSNS_PIN = 1 [15:27:58]Read from MH i2c: 01 [15:27:58]MH_I2C_Read... [15:27:58]*** Stop cut motor [15:27:58]*** Cut end [15:27:58]Read from MH i2c: 01 07 00 [15:27:58]MH_I2C_Read... [15:27:58]Read from MH i2c: 01 07 00 E4 94 00 00 00 00 00 FF 0F 8D [15:27:58]process_action close_receipt done [15:27:58]requested_data is exist [15:27:58]produce_requested_data [15:27:58]requested_item fm.sn is exist - process it [15:27:58]wFMCommunicate request_size=4 [15:27:58]MH_SAM_APDU [15:27:58]CAPDU: 80 11 00 00 [15:27:58]Write to MH i2c: E2 08 00 E5 94 80 11 00 00 00 00 00 00 F3 [15:27:58]Write i2c OK [15:27:58]MH_I2C_Read... [15:27:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:58]Read from MH i2c: E2 [15:27:58]MH_I2C_Read... [15:27:58]Read from MH i2c: E2 17 00 [15:27:58]MH_I2C_Read... [15:27:58]Read from MH i2c: E2 17 00 E5 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 40 [15:27:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:27:58]wFMCommunicate OK [15:27:58]requested_item fd.num is exist - process it [15:27:58]SAM_PROTO_GetFieldsCounters [15:27:58]wFMCommunicate request_size=4 [15:27:58]MH_SAM_APDU [15:27:58]CAPDU: 80 13 00 00 [15:27:58]Write to MH i2c: E2 08 00 E6 94 80 13 00 00 00 00 00 00 F6 [15:27:58]Write i2c OK [15:27:58]MH_I2C_Read... [15:27:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:27:58]Read from MH i2c: E2 [15:27:58]MH_I2C_Read... [15:27:58]Read from MH i2c: E2 62 00 [15:27:58]MH_I2C_Read... [15:27:58]Read from MH i2c: E2 62 00 E6 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 8E FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 01 [15:27: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 8E FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:27:58]wFMCommunicate OK [15:27:58]SAM_PROTO_GetFieldsCounters done [15:27:58]requested_item shift.num is exist - process it [15:27:58]requested_item shift.opened is exist - process it [15:27:58]req_shift_opened [15:27:58]FM_GetShiftState [15:27:58]SAM_PROTO_GetShiftState [15:27:58]wFMCommunicate request_size=4 [15:27:58]MH_SAM_APDU [15:27:58]CAPDU: 80 13 01 00 [15:27:58]Write to MH i2c: E2 08 00 E7 94 80 13 01 00 00 00 00 00 F8 [15:27:58]Write i2c OK [15:27:58]MH_I2C_Read... [15:27:58]Read from MH i2c: E2 [15:27:58]MH_I2C_Read... [15:27:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:58]Read from MH i2c: E2 0E 00 [15:27:58]MH_I2C_Read... [15:27:58]Read from MH i2c: E2 0E 00 E7 94 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 35 [15:27:58]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:27:58]wFMCommunicate OK [15:27:58]SAM_PROTO_GetShiftState done [15:27:58]FM_GetShiftState done [15:27:58]req_shift_opened done [15:27:58]requested_item shift.open_date is exist - process it [15:27:58]req_shift_open_date [15:27:58]req_shift_open_date done [15:27:58]produce_requested_data done [15:27:58]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260750,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [15:27:58]process_action_free close_receipt [15:27:58]json_value_free [15:27:58]json_value_free done [15:27:58]process_json_proto returns [15:27:58]Send response to host [15:27:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260750,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [15:27:58]free response buf [15:27:58]execute_script done [15:27:58]execute_script returns [15:27:58]free content buf [15:27:58]Sock 9.Close socket [15:27:58]Sock 9.Thread stoped [15:28:00]OFD Sender: No OFD packet to send [15:28:05]OFD Sender: No OFD packet to send [15:28:10]OFD Sender: No OFD packet to send [15:28:15]OFD Sender: No OFD packet to send [15:28:20]OFD Sender: No OFD packet to send [15:28:25]OFD Sender: No OFD packet to send [15:28:31]OFD Sender: No OFD packet to send [15:28:36]OFD Sender: No OFD packet to send [15:28:41]OFD Sender: No OFD packet to send [15:28:46]OFD Sender: No OFD packet to send [15:28:51]OFD Sender: No OFD packet to send [15:28:56]OFD Sender: No OFD packet to send [15:29:01]OFD Sender: No OFD packet to send [15:29:06]OFD Sender: No OFD packet to send [15:29:11]OFD Sender: No OFD packet to send [15:29:16]OFD Sender: No OFD packet to send [15:29:21]OFD Sender: No OFD packet to send [15:29:26]OFD Sender: No OFD packet to send [15:29:31]OFD Sender: No OFD packet to send [15:29:36]OFD Sender: No OFD packet to send [15:29:41]OFD Sender: No OFD packet to send [15:29:46]OFD Sender: No OFD packet to send [15:29:51]OFD Sender: No OFD packet to send [15:29:56]OFD Sender: No OFD packet to send [15:30:01]OFD Sender: No OFD packet to send [15:30:06]OFD Sender: No OFD packet to send [15:30:11]OFD Sender: No OFD packet to send [15:30:16]OFD Sender: No OFD packet to send [15:30:21]OFD Sender: No OFD packet to send [15:30:26]OFD Sender: No OFD packet to send [15:30:31]OFD Sender: No OFD packet to send [15:30:36]OFD Sender: No OFD packet to send [15:30:41]OFD Sender: No OFD packet to send [15:30:46]OFD Sender: No OFD packet to send [15:30:51]OFD Sender: No OFD packet to send [15:30:56]OFD Sender: No OFD packet to send [15:31:01]OFD Sender: No OFD packet to send [15:31:02]accept exits with 7 [15:31:02]New connection [15:31:02]New thread 3066617188 created [15:31:02]Thread 3066473828 joined [15:31:02]Waiting for new connection... [15:31:02] Sock 7.Parse request [15:31:02]Sock 7.Check first char [15:31:02]Sock 7.First char is OK [15:31:02]request: POST /json_proto HTTP/1.0 [15:31:02]Method: POST [15:31:02]URL: /json_proto [15:31:02]Method is POST - this is cgi request [15:31:02]url: /json_proto [15:31:02]query_string will be loaded in cgi processing [15:31:02]execute_cgi json_proto POST (null) [15:31:02]execute_cgi path=json_proto method=POST [15:31:02]POST find Content-Length [15:31:02]Host: 172.17.55.133:8080 [15:31:02]Content-Length: 679 [15:31:02]Content-Type: application/json [15:31:02] [15:31:02]POST finish read [15:31:02]Found Content-Length = 679 [15:31:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "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" ] } } [15:31:02]execute_script... [15:31: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)1036303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "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" ] } } [15:31:02]POST & json_proto [15:31:02]process_json_proto [15:31:02]json parsed OK: [15:31:02]protocol is kg_v1.0 [15:31:02]action value=close_receipt [15:31:02]process_action close_receipt [15:31:02]cmd_close_receipt [15:31:02]MH_GetDate [15:31:02]Write to MH i2c: F0 00 00 E8 94 6B [15:31:02]Write i2c OK [15:31:02]MH_I2C_Read... [15:31:02]Read from MH i2c: F0 [15:31:02]MH_I2C_Read... [15:31:02]Read from MH i2c: F0 09 00 [15:31:02]MH_I2C_Read... [15:31:02]Read from MH i2c: F0 09 00 E8 94 00 BB 13 C2 66 34 48 D8 65 23 [15:31:02]GetLastDocTimeStamp 1723994878 [15:31:02]current date 1723995067 [15:31:02]FM_GetShiftState [15:31:02]SAM_PROTO_GetShiftState [15:31:02]wFMCommunicate request_size=4 [15:31:02]MH_SAM_APDU [15:31:02]CAPDU: 80 13 01 00 [15:31:02]Write to MH i2c: E2 08 00 E9 94 80 13 01 00 00 00 00 00 FA [15:31:02]Write i2c OK [15:31:02]MH_I2C_Read... [15:31:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:02]Read from MH i2c: E2 [15:31:02]MH_I2C_Read... [15:31:02]Read from MH i2c: E2 0E 00 [15:31:02]MH_I2C_Read... [15:31:02]Read from MH i2c: E2 0E 00 E9 94 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 37 [15:31:02]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:31:02]wFMCommunicate OK [15:31:02]SAM_PROTO_GetShiftState done [15:31:02]FM_GetShiftState done [15:31:02]opened in 1723940556 [15:31:02]opened+sec_in_day 1724026956 [15:31:02]quantity*price = 80004 [15:31:02]sum+1 = 80005 [15:31:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 309 18.08.2024 15:31 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260751 ФПД: 190445803600110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T153108&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260751&fm=190445803600110&tin=02508201610067®Number=0000000000091865&sum=80000 [15:31:03]StoreToDocumentArchive [15:31:03]shift 449 fd 260751 [15:31:03]save to /storage/0449/doc_00260751 [15:31:03]save last doc name /storage/0449/doc_00260751 to /storage/kkm_last_doc_name [15:31:03]save OK [15:31:03]Clear old archive folders... [15:31:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:31:03]tlvbuf is 00540700 [15:31:03]SAM_PROTO_ClearQueue [15:31:03]wFMCommunicate request_size=4 [15:31:03]MH_SAM_APDU [15:31:03]CAPDU: 80 09 00 00 [15:31:03]Write to MH i2c: E2 08 00 F6 94 80 09 00 00 00 00 00 00 FC [15:31:03]Write i2c OK [15:31:03]MH_I2C_Read... [15:31:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:31:03]Read from MH i2c: E2 [15:31:03]MH_I2C_Read... [15:31:03]Read from MH i2c: E2 03 00 [15:31:03]MH_I2C_Read... [15:31:03]Read from MH i2c: E2 03 00 F6 94 00 90 00 FE [15:31:03]RAPDU: 90 00 [15:31:03]wFMCommunicate OK [15:31:03]SAM_PROTO_ClearQueue done [15:31:03]KKMCreateOFDPacket [15:31:03]OFDProtocolAddRootSTLVToBuf [15:31:03]FM_MakeSignedData [15:31:03]FM_MakeSignedData [15:31:03]SAM_PROTO_SignData [15:31:03]wFMCommunicate request_size=4 [15:31:03]MH_SAM_APDU [15:31:03]CAPDU: 80 0D 01 02 [15:31:03]Write to MH i2c: E2 08 00 F7 94 80 0D 01 02 00 00 00 00 04 [15:31:03]Write i2c OK [15:31:03]MH_I2C_Read... [15:31:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:31:03]Read from MH i2c: E2 [15:31:03]MH_I2C_Read... [15:31:03]Read from MH i2c: E2 03 00 [15:31:03]MH_I2C_Read... [15:31:03]Read from MH i2c: E2 03 00 F7 94 00 90 00 FF [15:31:03]RAPDU: 90 00 [15:31:03]wFMCommunicate OK [15:31:03]wFMCommunicate request_size=255 [15:31:03]MH_SAM_APDU [15:31:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 35 01 00 00 F4 03 04 00 BC 13 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8F FA 03 00 35 04 06 00 AD [15:31:03]Write to MH i2c: E2 02 01 F8 94 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 35 01 00 00 F4 03 04 00 BC 13 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8F FA 03 00 35 04 06 00 AD 00 00 56 [15:31:03]Write i2c OK [15:31:03]MH_I2C_Read... [15:31:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:04]Read from MH i2c: E2 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: E2 03 00 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: E2 03 00 F8 94 00 90 00 00 [15:31:04]RAPDU: 90 00 [15:31:04]wFMCommunicate OK [15:31:04]wFMCommunicate request_size=10 [15:31:04]MH_SAM_APDU [15:31:04]CAPDU: 80 0D 02 02 05 35 9E 78 F8 EE [15:31:04]Write to MH i2c: E2 0D 00 F9 94 80 0D 02 02 05 00 35 9E 78 F8 EE 00 00 42 [15:31:04]Write i2c OK [15:31:04]MH_I2C_Read... [15:31:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:04]Read from MH i2c: E2 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: E2 03 00 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: E2 03 00 F9 94 00 90 00 01 [15:31:04]RAPDU: 90 00 [15:31:04]wFMCommunicate OK [15:31:04]wFMCommunicate request_size=4 [15:31:04]MH_SAM_APDU [15:31:04]CAPDU: 80 0D 03 02 [15:31:04]Write to MH i2c: E2 08 00 FA 94 80 0D 03 02 00 00 00 00 09 [15:31:04]Write i2c OK [15:31:04]MH_I2C_Read... [15:31:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:31:04]Read from MH i2c: E2 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: E2 0B 00 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: E2 0B 00 FA 94 00 72 D0 42 87 81 05 D5 55 90 00 C5 [15:31:04]RAPDU: 72 D0 42 87 81 05 D5 55 90 00 [15:31:04]wFMCommunicate OK [15:31:04]SAM_PROTO_SignData done [15:31:04]FM_MakeSignedData done [15:31:04]CreateOFDProtocolMessage [15:31:04]wFMCommunicate request_size=4 [15:31:04]MH_SAM_APDU [15:31:04]CAPDU: 80 11 00 00 [15:31:04]Write to MH i2c: E2 08 00 FB 94 80 11 00 00 00 00 00 00 09 [15:31:04]Write i2c OK [15:31:04]MH_I2C_Read... [15:31:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:04]Read from MH i2c: E2 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: E2 17 00 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: E2 17 00 FB 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 56 [15:31:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:31:04]wFMCommunicate OK [15:31:04]CreateOFDProtocolMessage done [15:31:04]OFDSenderStorePacket 260751 [15:31:04]StoreOFDPacket docnum=260751 [15:31:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 E4 9B 07 01 E7 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 35 01 00 00 F4 03 04 00 BC 13 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8F FA 03 00 35 04 06 00 AD 35 9E 78 F8 EE 72 D0 42 87 81 05 D5 55 [15:31:04]CheckFolder [15:31:04]dirname=/storage/ofd_packets [15:31:04]CheckFolder done [15:31:04]ProducePacketName [15:31:04]name=ofd_packets/00260751 [15:31:04]NVStorageSaveData ofd_packets/00260751 [15:31:04]File name is /storage/ofd_packets/00260751 [15:31:04]Write 301 bytes [15:31:04]NVStorageSaveData done [15:31:04]OFDSenderStorePacket done [15:31:04]KKMCreateOFDPacket done [15:31:04]NVStorageSaveData kkm_last_timestamp [15:31:04]File name is /storage/kkm_last_timestamp [15:31:04]Write 4 bytes [15:31:04]NVStorageSaveData done [15:31:04]ExternCall_PrintAddStr [15:31:04]wPrintStart [15:31:04]Write to MH i2c: 01 00 00 FC 94 90 [15:31:04]Write i2c OK [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: 01 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: 01 07 00 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: 01 07 00 FC 94 00 00 00 00 00 FF 0F A5 [15:31:04]RasterBufferAndPrint [15:31:04]line Счет N : (1)1036303 [15:31:04]line ИНН: 02508201610067 [15:31:04]line Контрольно-Кассовый Чек [15:31:04]line ПРОДАЖА [15:31:04]line ТРК (МРК, ГНК) : 32 [15:31:04]line Товар: 2710124130 [15:31:04]line Аи-92-К-5 [15:31:04]line 11.800 * 67.80 [15:31:04]line = 800.04 [15:31:04]line НДС 12% НСП 1% [15:31:04]line > о реализуемом товаре [15:31:04]line ОКРУГЛЕНИЕ: -0.04 [15:31:04]line ИТОГО: 800.00 [15:31:04]line Внесено: 800.00 [15:31:04]line СДАЧА: 0.00 [15:31:04]line НСП 1% : 7.08 [15:31:04]line НДС 12% : 84.96 [15:31:04]line Наличными: 800.00 [15:31:04]line Безнал.: 0.00 [15:31:04]line Место: АЗС № 94 "Партнер Нефть" [15:31:04]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [15:31:04]line СНО: Общий режим [15:31:04]line Чек 309 18.08.2024 15:31 [15:31:04]line Смена: 449 ФФД: 1.0 [15:31:04]line ЗНМ: 0300000099 [15:31:04]line РНМ: 0000000000091865 [15:31:04]line Версия ККМ: 001 [15:31:04]line ФМ: 0000000000871820 [15:31:04]line ФД: 260751 [15:31:04]line ФПД: 190445803600110 [15:31:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T153108&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260751&fm=190445803600110&tin=02508201610067®Number=0000000000091865&sum=80000 [15:31:04]written 0, free lines is 4095 [15:31:04]OFD Sender: Processing packet 260751 [packets to send 192, broken 191] [15:31:04]ProducePacketName [15:31:04]name=ofd_packets/00260751 [15:31:04]OFD Sender: To server: pG, [15:31:04]CommunicateWithHost lk.salyk.kg:30040 [15:31:04]ConnectInit lk.salyk.kg [15:31:04]Connected sock=10 [15:31: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 30 0F 01 00 00 E4 9B 07 01 E7 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 35 01 00 00 F4 03 04 00 BC 13 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8F FA 03 00 35 04 06 00 AD 35 9E 78 F8 EE 72 D0 42 87 81 05 D5 55 [15:31: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 30 4F 00 00 00 A3 6E 47 00 E3 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 30 10 04 04 00 8F FA 03 00 F4 03 04 00 10 BD C1 66 B6 04 01 00 00 54 F8 4C 72 75 A5 FA AB [15:31:04]CommunicateWithHost err = 0 [15:31:04]CheckOFDResponse [15:31:04]1017 (14) - 77093643461234 [15:31:04]1041 (16) - 0000000000871820 [15:31:04]1040 (4) - 260751 [15:31:04]1012 (4) - 18.08.2024 09:21 [15:31:04]1206 (1) - 0 [15:31:04]OFD Sender: Remove packet 260751 [15:31:04]ProducePacketName [15:31:04]name=ofd_packets/00260751 [15:31:04]NVStorageDeleteData [15:31:04]Write to MH i2c: 01 00 00 27 95 BC [15:31:04]Write i2c OK [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: 01 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: 01 07 00 [15:31:04]MH_I2C_Read... [15:31:04]Read from MH i2c: 01 07 00 27 95 00 00 00 00 00 68 0C 37 [15:31:04]RasterBufferAndPrint [15:31:04]line [15:31:04]line [15:31:04]line [15:31:04]line [15:31:04]line [15:31:04]written 0, free lines is 3180 [15:31:05]MH_Cut [15:31:05]Write to MH i2c: D1 01 00 2E 95 01 95 [15:31:05]Write i2c OK [15:31:05]MH_I2C_Read... [15:31:05]Read from MH i2c: D1 [15:31:05]MH_I2C_Read... [15:31:05]Read from MH i2c: D1 01 00 [15:31:05]MH_I2C_Read... [15:31:05]Read from MH i2c: D1 01 00 2E 95 00 94 [15:31:05]Write to MH i2c: 01 00 00 2F 95 C4 [15:31:05]Write i2c OK [15:31:05]MH_I2C_Read... [15:31:05]OFD Sender: No OFD packet to send [15:31:06]*** Cut start [15:31:06]*** Purtial cut [15:31:06]*** Stage 1: CUTSNS_PIN = 1 [15:31:08]Read from MH i2c: 01 [15:31:08]MH_I2C_Read... [15:31:08]*** Stop cut motor [15:31:08]*** Cut end [15:31:08]Read from MH i2c: 01 07 00 [15:31:08]MH_I2C_Read... [15:31:08]Read from MH i2c: 01 07 00 2F 95 00 00 00 00 00 FF 0F D9 [15:31:08]process_action close_receipt done [15:31:08]requested_data is exist [15:31:08]produce_requested_data [15:31:08]requested_item fm.sn is exist - process it [15:31:08]wFMCommunicate request_size=4 [15:31:08]MH_SAM_APDU [15:31:08]CAPDU: 80 11 00 00 [15:31:08]Write to MH i2c: E2 08 00 30 95 80 11 00 00 00 00 00 00 3F [15:31:08]Write i2c OK [15:31:08]MH_I2C_Read... [15:31:08]Read from MH i2c: E2 [15:31:08]MH_I2C_Read... [15:31:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:08]Read from MH i2c: E2 17 00 [15:31:08]MH_I2C_Read... [15:31:08]Read from MH i2c: E2 17 00 30 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 8C [15:31:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:31:08]wFMCommunicate OK [15:31:08]requested_item fd.num is exist - process it [15:31:08]SAM_PROTO_GetFieldsCounters [15:31:08]wFMCommunicate request_size=4 [15:31:08]MH_SAM_APDU [15:31:08]CAPDU: 80 13 00 00 [15:31:08]Write to MH i2c: E2 08 00 31 95 80 13 00 00 00 00 00 00 42 [15:31:08]Write i2c OK [15:31:08]MH_I2C_Read... [15:31:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:31:08]Read from MH i2c: E2 [15:31:08]MH_I2C_Read... [15:31:08]Read from MH i2c: E2 62 00 [15:31:08]MH_I2C_Read... [15:31:08]Read from MH i2c: E2 62 00 31 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 8F FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 51 [15:31: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 8F FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:31:08]wFMCommunicate OK [15:31:08]SAM_PROTO_GetFieldsCounters done [15:31:08]requested_item shift.num is exist - process it [15:31:08]requested_item shift.opened is exist - process it [15:31:08]req_shift_opened [15:31:08]FM_GetShiftState [15:31:08]SAM_PROTO_GetShiftState [15:31:08]wFMCommunicate request_size=4 [15:31:08]MH_SAM_APDU [15:31:08]CAPDU: 80 13 01 00 [15:31:08]Write to MH i2c: E2 08 00 32 95 80 13 01 00 00 00 00 00 44 [15:31:08]Write i2c OK [15:31:08]MH_I2C_Read... [15:31:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:08]Read from MH i2c: E2 [15:31:08]MH_I2C_Read... [15:31:08]Read from MH i2c: E2 0E 00 [15:31:08]MH_I2C_Read... [15:31:08]Read from MH i2c: E2 0E 00 32 95 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 81 [15:31:08]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:31:08]wFMCommunicate OK [15:31:08]SAM_PROTO_GetShiftState done [15:31:08]FM_GetShiftState done [15:31:08]req_shift_opened done [15:31:08]requested_item shift.open_date is exist - process it [15:31:08]req_shift_open_date [15:31:08]req_shift_open_date done [15:31:08]produce_requested_data done [15:31:08]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260751,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [15:31:08]process_action_free close_receipt [15:31:08]json_value_free [15:31:08]json_value_free done [15:31:08]process_json_proto returns [15:31:08]Send response to host [15:31:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260751,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [15:31:08]free response buf [15:31:08]execute_script done [15:31:08]execute_script returns [15:31:08]free content buf [15:31:08]Sock 7.Close socket [15:31:08]Sock 7.Thread stoped [15:31:10]OFD Sender: No OFD packet to send [15:31:15]OFD Sender: No OFD packet to send [15:31:20]OFD Sender: No OFD packet to send [15:31:25]OFD Sender: No OFD packet to send [15:31:30]OFD Sender: No OFD packet to send [15:31:35]OFD Sender: No OFD packet to send [15:31:40]OFD Sender: No OFD packet to send [15:31:45]OFD Sender: No OFD packet to send [15:31:50]OFD Sender: No OFD packet to send [15:31:55]OFD Sender: No OFD packet to send [15:32:00]OFD Sender: No OFD packet to send [15:32:05]OFD Sender: No OFD packet to send [15:32:10]OFD Sender: No OFD packet to send [15:32:15]OFD Sender: No OFD packet to send [15:32:20]OFD Sender: No OFD packet to send [15:32:25]OFD Sender: No OFD packet to send [15:32:30]OFD Sender: No OFD packet to send [15:32:35]OFD Sender: No OFD packet to send [15:32:40]OFD Sender: No OFD packet to send [15:32:45]OFD Sender: No OFD packet to send [15:32:50]OFD Sender: No OFD packet to send [15:32:55]OFD Sender: No OFD packet to send [15:33:00]OFD Sender: No OFD packet to send [15:33:05]OFD Sender: No OFD packet to send [15:33:10]OFD Sender: No OFD packet to send [15:33:15]OFD Sender: No OFD packet to send [15:33:16]accept exits with 9 [15:33:16]New connection [15:33:16]New thread 3066473828 created [15:33:16]Thread 3066617188 joined [15:33:16]Waiting for new connection... [15:33:16] Sock 9.Parse request [15:33:16]Sock 9.Check first char [15:33:16]Sock 9.First char is OK [15:33:16]request: POST /json_proto HTTP/1.0 [15:33:16]Method: POST [15:33:16]URL: /json_proto [15:33:16]Method is POST - this is cgi request [15:33:16]url: /json_proto [15:33:16]query_string will be loaded in cgi processing [15:33:16]execute_cgi json_proto POST (null) [15:33:16]execute_cgi path=json_proto method=POST [15:33:16]POST find Content-Length [15:33:16]Host: 172.17.55.133:8080 [15:33:16]Content-Length: 678 [15:33:16]Content-Type: application/json [15:33:16] [15:33:16]POST finish read [15:33:16]Found Content-Length = 678 [15:33:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036304", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:16]execute_script... [15:33: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)1036304", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:16]POST & json_proto [15:33:16]process_json_proto [15:33:16]json parsed OK: [15:33:16]protocol is kg_v1.0 [15:33:16]action value=close_receipt [15:33:16]process_action close_receipt [15:33:16]cmd_close_receipt [15:33:16]MH_GetDate [15:33:16]Write to MH i2c: F0 00 00 33 95 B7 [15:33:16]Write i2c OK [15:33:16]MH_I2C_Read... [15:33:16]Read from MH i2c: F0 [15:33:16]MH_I2C_Read... [15:33:16]Read from MH i2c: F0 09 00 [15:33:16]MH_I2C_Read... [15:33:16]Read from MH i2c: F0 09 00 33 95 00 41 14 C2 66 34 48 D8 65 F6 [15:33:16]GetLastDocTimeStamp 1723995068 [15:33:16]current date 1723995201 [15:33:16]FM_GetShiftState [15:33:16]SAM_PROTO_GetShiftState [15:33:16]wFMCommunicate request_size=4 [15:33:16]MH_SAM_APDU [15:33:16]CAPDU: 80 13 01 00 [15:33:16]Write to MH i2c: E2 08 00 34 95 80 13 01 00 00 00 00 00 46 [15:33:16]Write i2c OK [15:33:16]MH_I2C_Read... [15:33:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:16]Read from MH i2c: E2 [15:33:16]MH_I2C_Read... [15:33:16]Read from MH i2c: E2 0E 00 [15:33:16]MH_I2C_Read... [15:33:16]Read from MH i2c: E2 0E 00 34 95 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 83 [15:33:16]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:33:16]wFMCommunicate OK [15:33:16]SAM_PROTO_GetShiftState done [15:33:16]FM_GetShiftState done [15:33:16]opened in 1723940556 [15:33:16]opened+sec_in_day 1724026956 [15:33:16]quantity*price = 50010 [15:33:16]sum+1 = 50012 [15:33:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 310 18.08.2024 15:33 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260752 ФПД: 193193443604827 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T153322&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260752&fm=193193443604827&tin=02508201610067®Number=0000000000091865&sum=50000 [15:33:17]StoreToDocumentArchive [15:33:17]shift 449 fd 260752 [15:33:17]save to /storage/0449/doc_00260752 [15:33:17]save last doc name /storage/0449/doc_00260752 to /storage/kkm_last_doc_name [15:33:17]save OK [15:33:17]Clear old archive folders... [15:33:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:33:17]tlvbuf is 003A74A0 [15:33:17]SAM_PROTO_ClearQueue [15:33:17]wFMCommunicate request_size=4 [15:33:17]MH_SAM_APDU [15:33:17]CAPDU: 80 09 00 00 [15:33:17]Write to MH i2c: E2 08 00 41 95 80 09 00 00 00 00 00 00 48 [15:33:17]Write i2c OK [15:33:17]MH_I2C_Read... [15:33:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:17]Read from MH i2c: E2 [15:33:17]MH_I2C_Read... [15:33:17]Read from MH i2c: E2 03 00 [15:33:17]MH_I2C_Read... [15:33:17]Read from MH i2c: E2 03 00 41 95 00 90 00 4A [15:33:17]RAPDU: 90 00 [15:33:17]wFMCommunicate OK [15:33:17]SAM_PROTO_ClearQueue done [15:33:17]KKMCreateOFDPacket [15:33:17]OFDProtocolAddRootSTLVToBuf [15:33:17]FM_MakeSignedData [15:33:17]FM_MakeSignedData [15:33:17]SAM_PROTO_SignData [15:33:17]wFMCommunicate request_size=4 [15:33:17]MH_SAM_APDU [15:33:17]CAPDU: 80 0D 01 02 [15:33:17]Write to MH i2c: E2 08 00 42 95 80 0D 01 02 00 00 00 00 50 [15:33:17]Write i2c OK [15:33:17]MH_I2C_Read... [15:33:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:17]Read from MH i2c: E2 [15:33:17]MH_I2C_Read... [15:33:17]Read from MH i2c: E2 03 00 [15:33:17]MH_I2C_Read... [15:33:17]Read from MH i2c: E2 03 00 42 95 00 90 00 4B [15:33:17]RAPDU: 90 00 [15:33:17]wFMCommunicate OK [15:33:17]wFMCommunicate request_size=255 [15:33:17]MH_SAM_APDU [15:33:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 42 14 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 90 FA 03 00 35 04 06 00 AF [15:33:17]Write to MH i2c: E2 02 01 43 95 80 0D 02 02 FA 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 42 14 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 90 FA 03 00 35 04 06 00 AF 00 00 68 [15:33:17]Write i2c OK [15:33:17]MH_I2C_Read... [15:33:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:17]Read from MH i2c: E2 [15:33:17]MH_I2C_Read... [15:33:17]Read from MH i2c: E2 03 00 [15:33:17]MH_I2C_Read... [15:33:17]Read from MH i2c: E2 03 00 43 95 00 90 00 4C [15:33:17]RAPDU: 90 00 [15:33:17]wFMCommunicate OK [15:33:17]wFMCommunicate request_size=10 [15:33:17]MH_SAM_APDU [15:33:17]CAPDU: 80 0D 02 02 05 B5 5A 94 39 5B [15:33:17]Write to MH i2c: E2 0D 00 44 95 80 0D 02 02 05 00 B5 5A 94 39 5B 00 00 94 [15:33:17]Write i2c OK [15:33:17]MH_I2C_Read... [15:33:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:18]Read from MH i2c: E2 [15:33:18]MH_I2C_Read... [15:33:18]Read from MH i2c: E2 03 00 [15:33:18]MH_I2C_Read... [15:33:18]Read from MH i2c: E2 03 00 44 95 00 90 00 4D [15:33:18]RAPDU: 90 00 [15:33:18]wFMCommunicate OK [15:33:18]wFMCommunicate request_size=4 [15:33:18]MH_SAM_APDU [15:33:18]CAPDU: 80 0D 03 02 [15:33:18]Write to MH i2c: E2 08 00 45 95 80 0D 03 02 00 00 00 00 55 [15:33:18]Write i2c OK [15:33:18]MH_I2C_Read... [15:33:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:18]Read from MH i2c: E2 [15:33:18]MH_I2C_Read... [15:33:18]Read from MH i2c: E2 0B 00 [15:33:18]MH_I2C_Read... [15:33:18]Read from MH i2c: E2 0B 00 45 95 00 D0 14 FE D8 1F 28 26 9B 90 00 18 [15:33:18]RAPDU: D0 14 FE D8 1F 28 26 9B 90 00 [15:33:18]wFMCommunicate OK [15:33:18]SAM_PROTO_SignData done [15:33:18]FM_MakeSignedData done [15:33:18]CreateOFDProtocolMessage [15:33:18]wFMCommunicate request_size=4 [15:33:18]MH_SAM_APDU [15:33:18]CAPDU: 80 11 00 00 [15:33:18]Write to MH i2c: E2 08 00 46 95 80 11 00 00 00 00 00 00 55 [15:33:18]Write i2c OK [15:33:18]MH_I2C_Read... [15:33:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:18]Read from MH i2c: E2 [15:33:18]MH_I2C_Read... [15:33:18]Read from MH i2c: E2 17 00 [15:33:18]MH_I2C_Read... [15:33:18]Read from MH i2c: E2 17 00 46 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A2 [15:33:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:33:18]wFMCommunicate OK [15:33:18]CreateOFDProtocolMessage done [15:33:18]OFDSenderStorePacket 260752 [15:33:18]StoreOFDPacket docnum=260752 [15:33:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 C2 CA 07 01 D1 B9 5A 03 01 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 42 14 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 90 FA 03 00 35 04 06 00 AF B5 5A 94 39 5B D0 14 FE D8 1F 28 26 9B [15:33:18]CheckFolder [15:33:18]dirname=/storage/ofd_packets [15:33:18]CheckFolder done [15:33:18]ProducePacketName [15:33:18]name=ofd_packets/00260752 [15:33:18]NVStorageSaveData ofd_packets/00260752 [15:33:18]File name is /storage/ofd_packets/00260752 [15:33:18]Write 301 bytes [15:33:18]NVStorageSaveData done [15:33:18]OFDSenderStorePacket done [15:33:18]KKMCreateOFDPacket done [15:33:18]NVStorageSaveData kkm_last_timestamp [15:33:18]File name is /storage/kkm_last_timestamp [15:33:18]Write 4 bytes [15:33:18]NVStorageSaveData done [15:33:18]ExternCall_PrintAddStr [15:33:18]wPrintStart [15:33:18]Write to MH i2c: 01 00 00 47 95 DC [15:33:18]Write i2c OK [15:33:18]MH_I2C_Read... [15:33:18]Read from MH i2c: 01 [15:33:18]MH_I2C_Read... [15:33:18]Read from MH i2c: 01 07 00 [15:33:18]MH_I2C_Read... [15:33:18]Read from MH i2c: 01 07 00 47 95 00 00 00 00 00 FF 0F F1 [15:33:18]RasterBufferAndPrint [15:33:18]line Счет N : (1)1036304 [15:33:18]line ИНН: 02508201610067 [15:33:18]line Контрольно-Кассовый Чек [15:33:18]line ПРОДАЖА [15:33:18]line ТРК (МРК, ГНК) : 13 [15:33:18]line Товар: 2710124500 [15:33:18]line Аи-95-К-5 [15:33:18]line 6.740 * 74.20 [15:33:18]line = 500.11 [15:33:18]line НДС 12% НСП 1% [15:33:18]line > о реализуемом товаре [15:33:18]line ОКРУГЛЕНИЕ: -0.11 [15:33:18]line ИТОГО: 500.00 [15:33:18]line Внесено: 500.00 [15:33:18]line СДАЧА: 0.00 [15:33:18]line НСП 1% : 4.43 [15:33:18]line НДС 12% : 53.11 [15:33:18]line Наличными: 500.00 [15:33:18]line Безнал.: 0.00 [15:33:18]line Место: АЗС № 94 "Партнер Нефть" [15:33:18]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [15:33:18]line СНО: Общий режим [15:33:18]line Чек 310 18.08.2024 15:33 [15:33:18]line Смена: 449 ФФД: 1.0 [15:33:18]line ЗНМ: 0300000099 [15:33:18]line РНМ: 0000000000091865 [15:33:18]line Версия ККМ: 001 [15:33:18]line ФМ: 0000000000871820 [15:33:18]line ФД: 260752 [15:33:18]line ФПД: 193193443604827 [15:33:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T153322&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260752&fm=193193443604827&tin=02508201610067®Number=0000000000091865&sum=50000 [15:33:18]OFD Sender: Processing packet 260752 [packets to send 192, broken 191] [15:33:18]ProducePacketName [15:33:18]name=ofd_packets/00260752 [15:33:18]OFD Sender: To server: pG, [15:33:18]CommunicateWithHost lk.salyk.kg:30040 [15:33:18]ConnectInit lk.salyk.kg [15:33:18]written 0, free lines is 4095 [15:33:18]Connected sock=10 [15:33: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 30 0F 01 00 00 C2 CA 07 01 D1 B9 5A 03 01 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 42 14 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 90 FA 03 00 35 04 06 00 AF B5 5A 94 39 5B D0 14 FE D8 1F 28 26 9B [15:33: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 30 4F 00 00 00 F8 2B 47 00 70 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 30 10 04 04 00 90 FA 03 00 F4 03 04 00 96 BD C1 66 B6 04 01 00 00 91 31 7B 74 17 3E C0 E1 [15:33:18]CommunicateWithHost err = 0 [15:33:18]CheckOFDResponse [15:33:18]1017 (14) - 77093643461234 [15:33:18]1041 (16) - 0000000000871820 [15:33:18]1040 (4) - 260752 [15:33:18]1012 (4) - 18.08.2024 09:23 [15:33:18]1206 (1) - 0 [15:33:18]OFD Sender: Remove packet 260752 [15:33:18]ProducePacketName [15:33:18]name=ofd_packets/00260752 [15:33:18]NVStorageDeleteData [15:33:18]Write to MH i2c: 01 00 00 72 95 07 [15:33:18]Write i2c OK [15:33:18]MH_I2C_Read... [15:33:18]Read from MH i2c: 01 [15:33:18]MH_I2C_Read... [15:33:18]Read from MH i2c: 01 07 00 [15:33:18]MH_I2C_Read... [15:33:18]Read from MH i2c: 01 07 00 72 95 00 00 00 00 00 70 0C 8A [15:33:18]RasterBufferAndPrint [15:33:18]line [15:33:18]line [15:33:18]line [15:33:18]line [15:33:18]line [15:33:18]written 0, free lines is 3187 [15:33:18]MH_Cut [15:33:18]Write to MH i2c: D1 01 00 79 95 01 E0 [15:33:18]Write i2c OK [15:33:18]MH_I2C_Read... [15:33:18]Read from MH i2c: D1 [15:33:18]MH_I2C_Read... [15:33:18]Read from MH i2c: D1 01 00 [15:33:18]MH_I2C_Read... [15:33:18]Read from MH i2c: D1 01 00 79 95 00 DF [15:33:18]Write to MH i2c: 01 00 00 7A 95 0F [15:33:18]Write i2c OK [15:33:18]MH_I2C_Read... [15:33:19]OFD Sender: No OFD packet to send [15:33:20]*** Cut start [15:33:20]*** Purtial cut [15:33:20]*** Stage 1: CUTSNS_PIN = 1 [15:33:22]Read from MH i2c: 01 [15:33:22]MH_I2C_Read... [15:33:22]*** Stop cut motor [15:33:22]*** Cut end [15:33:22]Read from MH i2c: 01 07 00 [15:33:22]MH_I2C_Read... [15:33:22]Read from MH i2c: 01 07 00 7A 95 00 00 00 00 00 FF 0F 24 [15:33:22]process_action close_receipt done [15:33:22]requested_data is exist [15:33:22]produce_requested_data [15:33:22]requested_item fm.sn is exist - process it [15:33:22]wFMCommunicate request_size=4 [15:33:22]MH_SAM_APDU [15:33:22]CAPDU: 80 11 00 00 [15:33:22]Write to MH i2c: E2 08 00 7B 95 80 11 00 00 00 00 00 00 8A [15:33:22]Write i2c OK [15:33:22]MH_I2C_Read... [15:33:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:22]Read from MH i2c: E2 [15:33:22]MH_I2C_Read... [15:33:22]Read from MH i2c: E2 17 00 [15:33:22]MH_I2C_Read... [15:33:22]Read from MH i2c: E2 17 00 7B 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D7 [15:33:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:33:22]wFMCommunicate OK [15:33:22]requested_item fd.num is exist - process it [15:33:22]SAM_PROTO_GetFieldsCounters [15:33:22]wFMCommunicate request_size=4 [15:33:22]MH_SAM_APDU [15:33:22]CAPDU: 80 13 00 00 [15:33:22]Write to MH i2c: E2 08 00 7C 95 80 13 00 00 00 00 00 00 8D [15:33:22]Write i2c OK [15:33:22]MH_I2C_Read... [15:33:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:22]Read from MH i2c: E2 [15:33:22]MH_I2C_Read... [15:33:22]Read from MH i2c: E2 62 00 [15:33:22]MH_I2C_Read... [15:33:22]Read from MH i2c: E2 62 00 7C 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 90 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 A0 [15:33: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 90 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:33:22]wFMCommunicate OK [15:33:22]SAM_PROTO_GetFieldsCounters done [15:33:22]requested_item shift.num is exist - process it [15:33:22]requested_item shift.opened is exist - process it [15:33:22]req_shift_opened [15:33:22]FM_GetShiftState [15:33:22]SAM_PROTO_GetShiftState [15:33:22]wFMCommunicate request_size=4 [15:33:22]MH_SAM_APDU [15:33:22]CAPDU: 80 13 01 00 [15:33:22]Write to MH i2c: E2 08 00 7D 95 80 13 01 00 00 00 00 00 8F [15:33:22]Write i2c OK [15:33:22]MH_I2C_Read... [15:33:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:22]Read from MH i2c: E2 [15:33:22]MH_I2C_Read... [15:33:22]Read from MH i2c: E2 0E 00 [15:33:22]MH_I2C_Read... [15:33:22]Read from MH i2c: E2 0E 00 7D 95 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 CC [15:33:22]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:33:22]wFMCommunicate OK [15:33:22]SAM_PROTO_GetShiftState done [15:33:22]FM_GetShiftState done [15:33:22]req_shift_opened done [15:33:22]requested_item shift.open_date is exist - process it [15:33:22]req_shift_open_date [15:33:22]req_shift_open_date done [15:33:22]produce_requested_data done [15:33:22]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260752,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [15:33:22]process_action_free close_receipt [15:33:22]json_value_free [15:33:22]json_value_free done [15:33:22]process_json_proto returns [15:33:22]Send response to host [15:33:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260752,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [15:33:22]free response buf [15:33:22]execute_script done [15:33:22]execute_script returns [15:33:22]free content buf [15:33:22]Sock 9.Close socket [15:33:22]Sock 9.Thread stoped [15:33:24]OFD Sender: No OFD packet to send [15:33:29]OFD Sender: No OFD packet to send [15:33:34]OFD Sender: No OFD packet to send [15:33:39]OFD Sender: No OFD packet to send [15:33:44]OFD Sender: No OFD packet to send [15:33:49]OFD Sender: No OFD packet to send [15:33:50]accept exits with 7 [15:33:50]New connection [15:33:50]New thread 3066617188 created [15:33:50]Thread 3066473828 joined [15:33:50]Waiting for new connection... [15:33:50] Sock 7.Parse request [15:33:50]Sock 7.Check first char [15:33:50]Sock 7.First char is OK [15:33:50]request: POST /json_proto HTTP/1.0 [15:33:50]Method: POST [15:33:50]URL: /json_proto [15:33:50]Method is POST - this is cgi request [15:33:50]url: /json_proto [15:33:50]query_string will be loaded in cgi processing [15:33:50]execute_cgi json_proto POST (null) [15:33:50]execute_cgi path=json_proto method=POST [15:33:50]POST find Content-Length [15:33:50]Host: 172.17.55.133:8080 [15:33:50]Content-Length: 688 [15:33:50]Content-Type: application/json [15:33:50] [15:33:50]POST finish read [15:33:50]Found Content-Length = 688 [15:33:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:50]execute_script... [15:33:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:50]POST & json_proto [15:33:50]process_json_proto [15:33:50]json parsed OK: [15:33:50]protocol is kg_v1.0 [15:33:50]action value=close_receipt [15:33:50]process_action close_receipt [15:33:50]cmd_close_receipt [15:33:50]MH_GetDate [15:33:50]Write to MH i2c: F0 00 00 7E 95 02 [15:33:50]Write i2c OK [15:33:50]MH_I2C_Read... [15:33:50]Read from MH i2c: F0 [15:33:50]MH_I2C_Read... [15:33:50]Read from MH i2c: F0 09 00 [15:33:50]MH_I2C_Read... [15:33:50]Read from MH i2c: F0 09 00 7E 95 00 63 14 C2 66 34 48 D8 65 63 [15:33:50]GetLastDocTimeStamp 1723995202 [15:33:50]current date 1723995235 [15:33:50]FM_GetShiftState [15:33:50]SAM_PROTO_GetShiftState [15:33:50]wFMCommunicate request_size=4 [15:33:50]MH_SAM_APDU [15:33:50]CAPDU: 80 13 01 00 [15:33:50]Write to MH i2c: E2 08 00 7F 95 80 13 01 00 00 00 00 00 91 [15:33:50]Write i2c OK [15:33:50]MH_I2C_Read... [15:33:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:50]Read from MH i2c: E2 [15:33:50]MH_I2C_Read... [15:33:50]Read from MH i2c: E2 0E 00 [15:33:50]MH_I2C_Read... [15:33:50]Read from MH i2c: E2 0E 00 7F 95 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 CE [15:33:50]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:33:50]wFMCommunicate OK [15:33:50]SAM_PROTO_GetShiftState done [15:33:50]FM_GetShiftState done [15:33:50]opened in 1723940556 [15:33:50]opened+sec_in_day 1724026956 [15:33:50]quantity*price = 150037 [15:33:50]sum+1 = 150039 [15:33:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 311 18.08.2024 15:33 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260753 ФПД: 78553255070028 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T153355&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260753&fm=78553255070028&tin=02508201610067®Number=0000000000091865&sum=150000 [15:33:51]StoreToDocumentArchive [15:33:51]shift 449 fd 260753 [15:33:51]save to /storage/0449/doc_00260753 [15:33:51]save last doc name /storage/0449/doc_00260753 to /storage/kkm_last_doc_name [15:33:51]save OK [15:33:51]Clear old archive folders... [15:33:51]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:33:51]tlvbuf is 00453790 [15:33:51]SAM_PROTO_ClearQueue [15:33:51]wFMCommunicate request_size=4 [15:33:51]MH_SAM_APDU [15:33:51]CAPDU: 80 09 00 00 [15:33:51]Write to MH i2c: E2 08 00 8C 95 80 09 00 00 00 00 00 00 93 [15:33:51]Write i2c OK [15:33:51]MH_I2C_Read... [15:33:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:51]Read from MH i2c: E2 [15:33:51]MH_I2C_Read... [15:33:51]Read from MH i2c: E2 03 00 [15:33:51]MH_I2C_Read... [15:33:51]Read from MH i2c: E2 03 00 8C 95 00 90 00 95 [15:33:51]RAPDU: 90 00 [15:33:51]wFMCommunicate OK [15:33:51]SAM_PROTO_ClearQueue done [15:33:51]KKMCreateOFDPacket [15:33:51]OFDProtocolAddRootSTLVToBuf [15:33:51]FM_MakeSignedData [15:33:51]FM_MakeSignedData [15:33:51]SAM_PROTO_SignData [15:33:51]wFMCommunicate request_size=4 [15:33:51]MH_SAM_APDU [15:33:51]CAPDU: 80 0D 01 02 [15:33:51]Write to MH i2c: E2 08 00 8D 95 80 0D 01 02 00 00 00 00 9B [15:33:51]Write i2c OK [15:33:51]MH_I2C_Read... [15:33:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:51]Read from MH i2c: E2 [15:33:51]MH_I2C_Read... [15:33:51]Read from MH i2c: E2 03 00 [15:33:51]MH_I2C_Read... [15:33:51]Read from MH i2c: E2 03 00 8D 95 00 90 00 96 [15:33:51]RAPDU: 90 00 [15:33:51]wFMCommunicate OK [15:33:51]wFMCommunicate request_size=255 [15:33:51]MH_SAM_APDU [15:33:51]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 63 14 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 91 FA 03 00 35 04 06 00 [15:33:51]Write to MH i2c: E2 02 01 8E 95 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 63 14 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 91 FA 03 00 35 04 06 00 00 00 A3 [15:33:51]Write i2c OK [15:33:51]MH_I2C_Read... [15:33:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:51]Read from MH i2c: E2 [15:33:51]MH_I2C_Read... [15:33:51]Read from MH i2c: E2 03 00 [15:33:51]MH_I2C_Read... [15:33:51]Read from MH i2c: E2 03 00 8E 95 00 90 00 97 [15:33:51]RAPDU: 90 00 [15:33:51]wFMCommunicate OK [15:33:51]wFMCommunicate request_size=11 [15:33:51]MH_SAM_APDU [15:33:51]CAPDU: 80 0D 02 02 06 47 71 9A DD 49 4C [15:33:51]Write to MH i2c: E2 0E 00 8F 95 80 0D 02 02 06 00 47 71 9A DD 49 4C 00 00 6E [15:33:51]Write i2c OK [15:33:51]MH_I2C_Read... [15:33:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:51]Read from MH i2c: E2 [15:33:51]MH_I2C_Read... [15:33:51]Read from MH i2c: E2 03 00 [15:33:51]MH_I2C_Read... [15:33:51]Read from MH i2c: E2 03 00 8F 95 00 90 00 98 [15:33:51]RAPDU: 90 00 [15:33:51]wFMCommunicate OK [15:33:51]wFMCommunicate request_size=4 [15:33:51]MH_SAM_APDU [15:33:51]CAPDU: 80 0D 03 02 [15:33:51]Write to MH i2c: E2 08 00 90 95 80 0D 03 02 00 00 00 00 A0 [15:33:51]Write i2c OK [15:33:51]MH_I2C_Read... [15:33:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:51]Read from MH i2c: E2 [15:33:51]MH_I2C_Read... [15:33:51]Read from MH i2c: E2 0B 00 [15:33:51]MH_I2C_Read... [15:33:51]Read from MH i2c: E2 0B 00 90 95 00 28 1D 12 4E F2 18 97 D8 90 00 BF [15:33:51]RAPDU: 28 1D 12 4E F2 18 97 D8 90 00 [15:33:51]wFMCommunicate OK [15:33:51]SAM_PROTO_SignData done [15:33:51]FM_MakeSignedData done [15:33:51]CreateOFDProtocolMessage [15:33:51]wFMCommunicate request_size=4 [15:33:51]MH_SAM_APDU [15:33:51]CAPDU: 80 11 00 00 [15:33:51]Write to MH i2c: E2 08 00 91 95 80 11 00 00 00 00 00 00 A0 [15:33:51]Write i2c OK [15:33:51]MH_I2C_Read... [15:33:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:51]Read from MH i2c: E2 [15:33:51]MH_I2C_Read... [15:33:51]Read from MH i2c: E2 17 00 [15:33:51]MH_I2C_Read... [15:33:51]Read from MH i2c: E2 17 00 91 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 ED [15:33:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:33:51]wFMCommunicate OK [15:33:51]CreateOFDProtocolMessage done [15:33:51]OFDSenderStorePacket 260753 [15:33:51]StoreOFDPacket docnum=260753 [15:33:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 A2 1A 08 01 B0 60 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 63 14 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 91 FA 03 00 35 04 06 00 47 71 9A DD 49 4C 28 1D 12 4E F2 18 97 D8 [15:33:51]CheckFolder [15:33:51]dirname=/storage/ofd_packets [15:33:51]CheckFolder done [15:33:51]ProducePacketName [15:33:51]name=ofd_packets/00260753 [15:33:51]NVStorageSaveData ofd_packets/00260753 [15:33:51]File name is /storage/ofd_packets/00260753 [15:33:51]Write 302 bytes [15:33:51]NVStorageSaveData done [15:33:51]OFDSenderStorePacket done [15:33:51]KKMCreateOFDPacket done [15:33:51]NVStorageSaveData kkm_last_timestamp [15:33:51]File name is /storage/kkm_last_timestamp [15:33:51]Write 4 bytes [15:33:51]NVStorageSaveData done [15:33:51]ExternCall_PrintAddStr [15:33:51]wPrintStart [15:33:51]Write to MH i2c: 01 00 00 92 95 27 [15:33:51]Write i2c OK [15:33:51]MH_I2C_Read... [15:33:51]Read from MH i2c: 01 [15:33:52]MH_I2C_Read... [15:33:52]Read from MH i2c: 01 07 00 [15:33:52]MH_I2C_Read... [15:33:52]Read from MH i2c: 01 07 00 92 95 00 00 00 00 00 FF 0F 3C [15:33:52]RasterBufferAndPrint [15:33:52]line Счет N : (1)1036305 [15:33:52]line ИНН: 02508201610067 [15:33:52]line Контрольно-Кассовый Чек [15:33:52]line ПРОДАЖА [15:33:52]line ТРК (МРК, ГНК) : 33 [15:33:52]line Товар: 2710194210 [15:33:52]line ДТ(л)-К-4 [15:33:52]line 19.690 * 76.20 [15:33:52]line = 1500.38 [15:33:52]line НДС 12% НСП 1% [15:33:52]line > о реализуемом товаре [15:33:52]line ОКРУГЛЕНИЕ: -0.38 [15:33:52]line ИТОГО: 1500.00 [15:33:52]line Внесено: 1500.00 [15:33:52]line СДАЧА: 0.00 [15:33:52]line НСП 1% : 13.28 [15:33:52]line НДС 12% : 159.33 [15:33:52]line Наличными: 1500.00 [15:33:52]line Безнал.: 0.00 [15:33:52]line Место: АЗС № 94 "Партнер Нефть" [15:33:52]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [15:33:52]line СНО: Общий режим [15:33:52]line Чек 311 18.08.2024 15:33 [15:33:52]line Смена: 449 ФФД: 1.0 [15:33:52]line ЗНМ: 0300000099 [15:33:52]line РНМ: 0000000000091865 [15:33:52]line Версия ККМ: 001 [15:33:52]line ФМ: 0000000000871820 [15:33:52]line ФД: 260753 [15:33:52]line ФПД: 78553255070028 [15:33:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T153355&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260753&fm=78553255070028&tin=02508201610067®Number=0000000000091865&sum=150000 [15:33:52]written 0, free lines is 4095 [15:33:52]OFD Sender: Processing packet 260753 [packets to send 192, broken 191] [15:33:52]ProducePacketName [15:33:52]name=ofd_packets/00260753 [15:33:52]OFD Sender: To server: pG, [15:33:52]CommunicateWithHost lk.salyk.kg:30040 [15:33:52]ConnectInit lk.salyk.kg [15:33:52]Connected sock=10 [15:33: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 30 10 01 00 00 A2 1A 08 01 B0 60 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 63 14 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 91 FA 03 00 35 04 06 00 47 71 9A DD 49 4C 28 1D 12 4E F2 18 97 D8 [15:33:52]Write to MH i2c: 01 00 00 BD 95 52 [15:33:52]Write i2c OK [15:33:52]MH_I2C_Read... [15:33:52]Read from MH i2c: 01 [15:33:52]MH_I2C_Read... [15:33:52]Read from MH i2c: 01 07 00 [15:33:52]MH_I2C_Read... [15:33:52]Read from MH i2c: 01 07 00 BD 95 00 00 00 00 00 70 0C D5 [15:33:52]RasterBufferAndPrint [15:33:52]line [15:33:52]line [15:33:52]line [15:33:52]line [15:33:52]line [15:33:52]written 0, free lines is 3187 [15:33:52]MH_Cut [15:33:52]Write to MH i2c: D1 01 00 C4 95 01 2B [15:33:52]Write i2c OK [15:33:52]MH_I2C_Read... [15:33:52]Read from MH i2c: D1 [15:33:52]MH_I2C_Read... [15:33:52]Read from MH i2c: D1 01 00 [15:33:52]MH_I2C_Read... [15:33:52]Read from MH i2c: D1 01 00 C4 95 00 2A [15:33:52]Write to MH i2c: 01 00 00 C5 95 5A [15:33:52]Write i2c OK [15:33:52]MH_I2C_Read... [15:33: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 30 4F 00 00 00 B0 77 47 00 F6 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 30 10 04 04 00 91 FA 03 00 F4 03 04 00 B8 BD C1 66 B6 04 01 00 00 D4 82 D3 41 1B 5D 15 9A [15:33:52]CommunicateWithHost err = 0 [15:33:52]CheckOFDResponse [15:33:52]1017 (14) - 77093643461234 [15:33:52]1041 (16) - 0000000000871820 [15:33:52]1040 (4) - 260753 [15:33:52]1012 (4) - 18.08.2024 09:24 [15:33:52]1206 (1) - 0 [15:33:52]OFD Sender: Remove packet 260753 [15:33:52]ProducePacketName [15:33:52]name=ofd_packets/00260753 [15:33:52]NVStorageDeleteData [15:33:53]OFD Sender: No OFD packet to send [15:33:53]*** Cut start [15:33:53]*** Purtial cut [15:33:53]*** Stage 1: CUTSNS_PIN = 1 [15:33:55]Read from MH i2c: 01 [15:33:55]MH_I2C_Read... [15:33:55]*** Stop cut motor [15:33:55]*** Cut end [15:33:55]Read from MH i2c: 01 07 00 [15:33:55]MH_I2C_Read... [15:33:55]Read from MH i2c: 01 07 00 C5 95 00 00 00 00 00 FF 0F 6F [15:33:55]process_action close_receipt done [15:33:55]requested_data is exist [15:33:55]produce_requested_data [15:33:55]requested_item fm.sn is exist - process it [15:33:55]wFMCommunicate request_size=4 [15:33:55]MH_SAM_APDU [15:33:55]CAPDU: 80 11 00 00 [15:33:55]Write to MH i2c: E2 08 00 C6 95 80 11 00 00 00 00 00 00 D5 [15:33:55]Write i2c OK [15:33:55]MH_I2C_Read... [15:33:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:55]Read from MH i2c: E2 [15:33:55]MH_I2C_Read... [15:33:55]Read from MH i2c: E2 17 00 [15:33:55]MH_I2C_Read... [15:33:55]Read from MH i2c: E2 17 00 C6 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 22 [15:33:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:33:55]wFMCommunicate OK [15:33:55]requested_item fd.num is exist - process it [15:33:55]SAM_PROTO_GetFieldsCounters [15:33:55]wFMCommunicate request_size=4 [15:33:55]MH_SAM_APDU [15:33:55]CAPDU: 80 13 00 00 [15:33:55]Write to MH i2c: E2 08 00 C7 95 80 13 00 00 00 00 00 00 D8 [15:33:55]Write i2c OK [15:33:55]MH_I2C_Read... [15:33:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:55]Read from MH i2c: E2 [15:33:55]MH_I2C_Read... [15:33:55]Read from MH i2c: E2 62 00 [15:33:55]MH_I2C_Read... [15:33:55]Read from MH i2c: E2 62 00 C7 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 91 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 EF [15:33: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 91 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:33:55]wFMCommunicate OK [15:33:55]SAM_PROTO_GetFieldsCounters done [15:33:55]requested_item shift.num is exist - process it [15:33:55]requested_item shift.opened is exist - process it [15:33:55]req_shift_opened [15:33:55]FM_GetShiftState [15:33:55]SAM_PROTO_GetShiftState [15:33:55]wFMCommunicate request_size=4 [15:33:55]MH_SAM_APDU [15:33:55]CAPDU: 80 13 01 00 [15:33:55]Write to MH i2c: E2 08 00 C8 95 80 13 01 00 00 00 00 00 DA [15:33:55]Write i2c OK [15:33:55]MH_I2C_Read... [15:33:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:55]Read from MH i2c: E2 [15:33:55]MH_I2C_Read... [15:33:55]Read from MH i2c: E2 0E 00 [15:33:55]MH_I2C_Read... [15:33:55]Read from MH i2c: E2 0E 00 C8 95 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 17 [15:33:55]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:33:55]wFMCommunicate OK [15:33:55]SAM_PROTO_GetShiftState done [15:33:55]FM_GetShiftState done [15:33:55]req_shift_opened done [15:33:55]requested_item shift.open_date is exist - process it [15:33:55]req_shift_open_date [15:33:55]req_shift_open_date done [15:33:55]produce_requested_data done [15:33:55]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260753,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [15:33:55]process_action_free close_receipt [15:33:55]json_value_free [15:33:55]json_value_free done [15:33:55]process_json_proto returns [15:33:55]Send response to host [15:33:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260753,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [15:33:55]free response buf [15:33:55]execute_script done [15:33:55]execute_script returns [15:33:55]free content buf [15:33:55]Sock 7.Close socket [15:33:55]Sock 7.Thread stoped [15:33:58]OFD Sender: No OFD packet to send [15:34:03]OFD Sender: No OFD packet to send [15:34:08]OFD Sender: No OFD packet to send [15:34:13]OFD Sender: No OFD packet to send [15:34:18]OFD Sender: No OFD packet to send [15:34:23]OFD Sender: No OFD packet to send [15:34:28]OFD Sender: No OFD packet to send [15:34:33]OFD Sender: No OFD packet to send [15:34:38]OFD Sender: No OFD packet to send [15:34:43]OFD Sender: No OFD packet to send [15:34:48]OFD Sender: No OFD packet to send [15:34:53]OFD Sender: No OFD packet to send [15:34:58]OFD Sender: No OFD packet to send [15:35:03]OFD Sender: No OFD packet to send [15:35:08]OFD Sender: No OFD packet to send [15:35:13]OFD Sender: No OFD packet to send [15:35:18]OFD Sender: No OFD packet to send [15:35:23]OFD Sender: No OFD packet to send [15:35:28]OFD Sender: No OFD packet to send [15:35:33]OFD Sender: No OFD packet to send [15:35:38]OFD Sender: No OFD packet to send [15:35:43]OFD Sender: No OFD packet to send [15:35:48]OFD Sender: No OFD packet to send [15:35:53]OFD Sender: No OFD packet to send [15:35:58]OFD Sender: No OFD packet to send [15:36:01]accept exits with 9 [15:36:01]New connection [15:36:01]New thread 3066473828 created [15:36:01]Thread 3066617188 joined [15:36:01]Waiting for new connection... [15:36:01] Sock 9.Parse request [15:36:01]Sock 9.Check first char [15:36:01]Sock 9.First char is OK [15:36:01]request: POST /json_proto HTTP/1.0 [15:36:01]Method: POST [15:36:01]URL: /json_proto [15:36:01]Method is POST - this is cgi request [15:36:01]url: /json_proto [15:36:01]query_string will be loaded in cgi processing [15:36:01]execute_cgi json_proto POST (null) [15:36:01]execute_cgi path=json_proto method=POST [15:36:01]POST find Content-Length [15:36:01]Host: 172.17.55.133:8080 [15:36:01]Content-Length: 683 [15:36:01]Content-Type: application/json [15:36:01] [15:36:01]POST finish read [15:36:01]Found Content-Length = 683 [15:36:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:01]execute_script... [15:36: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)1036306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:01]POST & json_proto [15:36:01]process_json_proto [15:36:01]json parsed OK: [15:36:01]protocol is kg_v1.0 [15:36:01]action value=close_receipt [15:36:01]process_action close_receipt [15:36:01]cmd_close_receipt [15:36:01]MH_GetDate [15:36:01]Write to MH i2c: F0 00 00 C9 95 4D [15:36:01]Write i2c OK [15:36:01]MH_I2C_Read... [15:36:01]Read from MH i2c: F0 [15:36:01]MH_I2C_Read... [15:36:01]Read from MH i2c: F0 09 00 [15:36:01]MH_I2C_Read... [15:36:01]Read from MH i2c: F0 09 00 C9 95 00 E6 14 C2 66 34 48 D8 65 31 [15:36:01]GetLastDocTimeStamp 1723995235 [15:36:01]current date 1723995366 [15:36:01]FM_GetShiftState [15:36:01]SAM_PROTO_GetShiftState [15:36:01]wFMCommunicate request_size=4 [15:36:01]MH_SAM_APDU [15:36:01]CAPDU: 80 13 01 00 [15:36:01]Write to MH i2c: E2 08 00 CA 95 80 13 01 00 00 00 00 00 DC [15:36:01]Write i2c OK [15:36:01]MH_I2C_Read... [15:36:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:01]Read from MH i2c: E2 [15:36:01]MH_I2C_Read... [15:36:01]Read from MH i2c: E2 0E 00 [15:36:01]MH_I2C_Read... [15:36:01]Read from MH i2c: E2 0E 00 CA 95 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 19 [15:36:01]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:36:01]wFMCommunicate OK [15:36:01]SAM_PROTO_GetShiftState done [15:36:01]FM_GetShiftState done [15:36:01]opened in 1723940556 [15:36:01]opened+sec_in_day 1724026956 [15:36:01]quantity*price = 100005 [15:36:01]sum+1 = 100006 [15:36:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 312 18.08.2024 15:36 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260754 ФПД: 63439325363748 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T153606&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260754&fm=63439325363748&tin=02508201610067®Number=0000000000091865&sum=100000 [15:36:02]StoreToDocumentArchive [15:36:02]shift 449 fd 260754 [15:36:02]save to /storage/0449/doc_00260754 [15:36:02]save last doc name /storage/0449/doc_00260754 to /storage/kkm_last_doc_name [15:36:02]save OK [15:36:02]Clear old archive folders... [15:36:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:36:02]tlvbuf is 005406C0 [15:36:02]SAM_PROTO_ClearQueue [15:36:02]wFMCommunicate request_size=4 [15:36:02]MH_SAM_APDU [15:36:02]CAPDU: 80 09 00 00 [15:36:02]Write to MH i2c: E2 08 00 D7 95 80 09 00 00 00 00 00 00 DE [15:36:02]Write i2c OK [15:36:02]MH_I2C_Read... [15:36:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:02]Read from MH i2c: E2 [15:36:02]MH_I2C_Read... [15:36:02]Read from MH i2c: E2 03 00 [15:36:02]MH_I2C_Read... [15:36:02]Read from MH i2c: E2 03 00 D7 95 00 90 00 E0 [15:36:02]RAPDU: 90 00 [15:36:02]wFMCommunicate OK [15:36:02]SAM_PROTO_ClearQueue done [15:36:02]KKMCreateOFDPacket [15:36:02]OFDProtocolAddRootSTLVToBuf [15:36:02]FM_MakeSignedData [15:36:02]FM_MakeSignedData [15:36:02]SAM_PROTO_SignData [15:36:02]wFMCommunicate request_size=4 [15:36:02]MH_SAM_APDU [15:36:02]CAPDU: 80 0D 01 02 [15:36:02]Write to MH i2c: E2 08 00 D8 95 80 0D 01 02 00 00 00 00 E6 [15:36:02]Write i2c OK [15:36:02]MH_I2C_Read... [15:36:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:02]Read from MH i2c: E2 [15:36:02]MH_I2C_Read... [15:36:02]Read from MH i2c: E2 03 00 [15:36:02]MH_I2C_Read... [15:36:02]Read from MH i2c: E2 03 00 D8 95 00 90 00 E1 [15:36:02]RAPDU: 90 00 [15:36:02]wFMCommunicate OK [15:36:02]wFMCommunicate request_size=255 [15:36:02]MH_SAM_APDU [15:36:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 E6 14 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 92 FA 03 00 35 04 06 00 39 [15:36:02]Write to MH i2c: E2 02 01 D9 95 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 E6 14 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 92 FA 03 00 35 04 06 00 39 00 00 D7 [15:36:02]Write i2c OK [15:36:02]MH_I2C_Read... [15:36:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:02]Read from MH i2c: E2 [15:36:02]MH_I2C_Read... [15:36:02]Read from MH i2c: E2 03 00 [15:36:02]MH_I2C_Read... [15:36:02]Read from MH i2c: E2 03 00 D9 95 00 90 00 E2 [15:36:02]RAPDU: 90 00 [15:36:02]wFMCommunicate OK [15:36:02]wFMCommunicate request_size=10 [15:36:02]MH_SAM_APDU [15:36:02]CAPDU: 80 0D 02 02 05 B2 9E 73 FE 24 [15:36:02]Write to MH i2c: E2 0D 00 DA 95 80 0D 02 02 05 00 B2 9E 73 FE 24 00 00 D8 [15:36:02]Write i2c OK [15:36:02]MH_I2C_Read... [15:36:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:02]Read from MH i2c: E2 [15:36:02]MH_I2C_Read... [15:36:02]Read from MH i2c: E2 03 00 [15:36:02]MH_I2C_Read... [15:36:02]Read from MH i2c: E2 03 00 DA 95 00 90 00 E3 [15:36:02]RAPDU: 90 00 [15:36:02]wFMCommunicate OK [15:36:02]wFMCommunicate request_size=4 [15:36:02]MH_SAM_APDU [15:36:02]CAPDU: 80 0D 03 02 [15:36:02]Write to MH i2c: E2 08 00 DB 95 80 0D 03 02 00 00 00 00 EB [15:36:02]Write i2c OK [15:36:02]MH_I2C_Read... [15:36:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:02]Read from MH i2c: E2 [15:36:02]MH_I2C_Read... [15:36:02]Read from MH i2c: E2 0B 00 [15:36:02]MH_I2C_Read... [15:36:02]Read from MH i2c: E2 0B 00 DB 95 00 61 19 54 80 AA 0D BA 34 90 00 DF [15:36:02]RAPDU: 61 19 54 80 AA 0D BA 34 90 00 [15:36:02]wFMCommunicate OK [15:36:02]SAM_PROTO_SignData done [15:36:02]FM_MakeSignedData done [15:36:02]CreateOFDProtocolMessage [15:36:02]wFMCommunicate request_size=4 [15:36:02]MH_SAM_APDU [15:36:02]CAPDU: 80 11 00 00 [15:36:02]Write to MH i2c: E2 08 00 DC 95 80 11 00 00 00 00 00 00 EB [15:36:02]Write i2c OK [15:36:02]MH_I2C_Read... [15:36:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:03]Read from MH i2c: E2 [15:36:03]MH_I2C_Read... [15:36:03]Read from MH i2c: E2 17 00 [15:36:03]MH_I2C_Read... [15:36:03]Read from MH i2c: E2 17 00 DC 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 38 [15:36:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:36:03]wFMCommunicate OK [15:36:03]CreateOFDProtocolMessage done [15:36:03]OFDSenderStorePacket 260754 [15:36:03]StoreOFDPacket docnum=260754 [15:36:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 72 E6 07 01 67 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 E6 14 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 92 FA 03 00 35 04 06 00 39 B2 9E 73 FE 24 61 19 54 80 AA 0D BA 34 [15:36:03]CheckFolder [15:36:03]dirname=/storage/ofd_packets [15:36:03]CheckFolder done [15:36:03]ProducePacketName [15:36:03]name=ofd_packets/00260754 [15:36:03]NVStorageSaveData ofd_packets/00260754 [15:36:03]File name is /storage/ofd_packets/00260754 [15:36:03]Write 301 bytes [15:36:03]NVStorageSaveData done [15:36:03]OFDSenderStorePacket done [15:36:03]KKMCreateOFDPacket done [15:36:03]NVStorageSaveData kkm_last_timestamp [15:36:03]File name is /storage/kkm_last_timestamp [15:36:03]Write 4 bytes [15:36:03]NVStorageSaveData done [15:36:03]ExternCall_PrintAddStr [15:36:03]wPrintStart [15:36:03]Write to MH i2c: 01 00 00 DD 95 72 [15:36:03]Write i2c OK [15:36:03]MH_I2C_Read... [15:36:03]Read from MH i2c: 01 [15:36:03]MH_I2C_Read... [15:36:03]Read from MH i2c: 01 07 00 [15:36:03]MH_I2C_Read... [15:36:03]Read from MH i2c: 01 07 00 DD 95 00 00 00 00 00 FF 0F 87 [15:36:03]RasterBufferAndPrint [15:36:03]line Счет N : (1)1036306 [15:36:03]line ИНН: 02508201610067 [15:36:03]line Контрольно-Кассовый Чек [15:36:03]line ПРОДАЖА [15:36:03]line ТРК (МРК, ГНК) : 32 [15:36:03]line Товар: 2710124130 [15:36:03]line Аи-92-К-5 [15:36:03]line 14.750 * 67.80 [15:36:03]line = 1000.05 [15:36:03]line НДС 12% НСП 1% [15:36:03]line > о реализуемом товаре [15:36:03]line ОКРУГЛЕНИЕ: -0.05 [15:36:03]line ИТОГО: 1000.00 [15:36:03]line Внесено: 1000.00 [15:36:03]line СДАЧА: 0.00 [15:36:03]line НСП 1% : 8.85 [15:36:03]line НДС 12% : 106.20 [15:36:03]line Наличными: 1000.00 [15:36:03]line Безнал.: 0.00 [15:36:03]line Место: АЗС № 94 "Партнер Нефть" [15:36:03]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [15:36:03]line СНО: Общий режим [15:36:03]line Чек 312 18.08.2024 15:36 [15:36:03]line Смена: 449 ФФД: 1.0 [15:36:03]line ЗНМ: 0300000099 [15:36:03]line РНМ: 0000000000091865 [15:36:03]line Версия ККМ: 001 [15:36:03]line ФМ: 0000000000871820 [15:36:03]line ФД: 260754 [15:36:03]line ФПД: 63439325363748 [15:36:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T153606&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260754&fm=63439325363748&tin=02508201610067®Number=0000000000091865&sum=100000 [15:36:03]written 0, free lines is 4095 [15:36:03]OFD Sender: Processing packet 260754 [packets to send 192, broken 191] [15:36:03]ProducePacketName [15:36:03]name=ofd_packets/00260754 [15:36:03]OFD Sender: To server: pG, [15:36:03]CommunicateWithHost lk.salyk.kg:30040 [15:36:03]ConnectInit lk.salyk.kg [15:36:03]Connected sock=10 [15:36: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 30 0F 01 00 00 72 E6 07 01 67 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 E6 14 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 92 FA 03 00 35 04 06 00 39 B2 9E 73 FE 24 61 19 54 80 AA 0D BA 34 [15:36: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 30 4F 00 00 00 93 91 47 00 8E B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 92 FA 03 00 F4 03 04 00 3B BE C1 66 B6 04 01 00 00 27 58 77 4D F6 DE 91 FB [15:36:03]CommunicateWithHost err = 0 [15:36:03]CheckOFDResponse [15:36:03]1017 (14) - 77093643461234 [15:36:03]1041 (16) - 0000000000871820 [15:36:03]1040 (4) - 260754 [15:36:03]1012 (4) - 18.08.2024 09:26 [15:36:03]1206 (1) - 0 [15:36:03]OFD Sender: Remove packet 260754 [15:36:03]ProducePacketName [15:36:03]name=ofd_packets/00260754 [15:36:03]NVStorageDeleteData [15:36:03]Write to MH i2c: 01 00 00 08 96 9E [15:36:03]Write i2c OK [15:36:03]MH_I2C_Read... [15:36:03]Read from MH i2c: 01 [15:36:03]MH_I2C_Read... [15:36:03]Read from MH i2c: 01 07 00 [15:36:03]MH_I2C_Read... [15:36:03]Read from MH i2c: 01 07 00 08 96 00 00 00 00 00 71 0C 22 [15:36:03]RasterBufferAndPrint [15:36:03]line [15:36:03]line [15:36:03]line [15:36:03]line [15:36:03]line [15:36:03]written 0, free lines is 3188 [15:36:03]MH_Cut [15:36:03]Write to MH i2c: D1 01 00 0F 96 01 77 [15:36:03]Write i2c OK [15:36:03]MH_I2C_Read... [15:36:03]Read from MH i2c: D1 [15:36:03]MH_I2C_Read... [15:36:03]Read from MH i2c: D1 01 00 [15:36:03]MH_I2C_Read... [15:36:03]Read from MH i2c: D1 01 00 0F 96 00 76 [15:36:03]Write to MH i2c: 01 00 00 10 96 A6 [15:36:03]Write i2c OK [15:36:03]MH_I2C_Read... [15:36:03]OFD Sender: No OFD packet to send [15:36:04]*** Cut start [15:36:04]*** Purtial cut [15:36:04]*** Stage 1: CUTSNS_PIN = 1 [15:36:06]Read from MH i2c: 01 [15:36:06]MH_I2C_Read... [15:36:06]*** Stop cut motor [15:36:06]*** Cut end [15:36:06]Read from MH i2c: 01 07 00 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: 01 07 00 10 96 00 00 00 00 00 FF 0F BB [15:36:06]process_action close_receipt done [15:36:06]requested_data is exist [15:36:06]produce_requested_data [15:36:06]requested_item fm.sn is exist - process it [15:36:06]wFMCommunicate request_size=4 [15:36:06]MH_SAM_APDU [15:36:06]CAPDU: 80 11 00 00 [15:36:06]Write to MH i2c: E2 08 00 11 96 80 11 00 00 00 00 00 00 21 [15:36:06]Write i2c OK [15:36:06]MH_I2C_Read... [15:36:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:06]Read from MH i2c: E2 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: E2 17 00 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: E2 17 00 11 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 6E [15:36:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:36:06]wFMCommunicate OK [15:36:06]requested_item fd.num is exist - process it [15:36:06]SAM_PROTO_GetFieldsCounters [15:36:06]wFMCommunicate request_size=4 [15:36:06]MH_SAM_APDU [15:36:06]CAPDU: 80 13 00 00 [15:36:06]Write to MH i2c: E2 08 00 12 96 80 13 00 00 00 00 00 00 24 [15:36:06]Write i2c OK [15:36:06]MH_I2C_Read... [15:36:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:06]Read from MH i2c: E2 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: E2 62 00 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: E2 62 00 12 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 92 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 3F [15:36: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 92 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:36:06]wFMCommunicate OK [15:36:06]SAM_PROTO_GetFieldsCounters done [15:36:06]requested_item shift.num is exist - process it [15:36:06]requested_item shift.opened is exist - process it [15:36:06]req_shift_opened [15:36:06]FM_GetShiftState [15:36:06]SAM_PROTO_GetShiftState [15:36:06]wFMCommunicate request_size=4 [15:36:06]MH_SAM_APDU [15:36:06]CAPDU: 80 13 01 00 [15:36:06]Write to MH i2c: E2 08 00 13 96 80 13 01 00 00 00 00 00 26 [15:36:06]Write i2c OK [15:36:06]MH_I2C_Read... [15:36:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:06]Read from MH i2c: E2 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: E2 0E 00 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: E2 0E 00 13 96 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 63 [15:36:06]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:36:06]wFMCommunicate OK [15:36:06]SAM_PROTO_GetShiftState done [15:36:06]FM_GetShiftState done [15:36:06]req_shift_opened done [15:36:06]requested_item shift.open_date is exist - process it [15:36:06]req_shift_open_date [15:36:06]req_shift_open_date done [15:36:06]produce_requested_data done [15:36:06]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260754,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [15:36:06]process_action_free close_receipt [15:36:06]json_value_free [15:36:06]json_value_free done [15:36:06]process_json_proto returns [15:36:06]Send response to host [15:36:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260754,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [15:36:06]free response buf [15:36:06]execute_script done [15:36:06]execute_script returns [15:36:06]free content buf [15:36:06]Sock 9.Close socket [15:36:06]Sock 9.Thread stoped [15:36:08]accept exits with 7 [15:36:08]New connection [15:36:08]New thread 3066617188 created [15:36:08]Thread 3066473828 joined [15:36:08]Waiting for new connection... [15:36:08] Sock 7.Parse request [15:36:08]Sock 7.Check first char [15:36:08]Sock 7.First char is OK [15:36:08]request: POST /json_proto HTTP/1.0 [15:36:08]Method: POST [15:36:08]URL: /json_proto [15:36:08]Method is POST - this is cgi request [15:36:08]url: /json_proto [15:36:08]query_string will be loaded in cgi processing [15:36:08]execute_cgi json_proto POST (null) [15:36:08]execute_cgi path=json_proto method=POST [15:36:08]POST find Content-Length [15:36:08]Host: 172.17.55.133:8080 [15:36:08]Content-Length: 678 [15:36:08]Content-Type: application/json [15:36:08] [15:36:08]POST finish read [15:36:08]Found Content-Length = 678 [15:36:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:08]execute_script... [15:36: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)1036307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:08]POST & json_proto [15:36:08]process_json_proto [15:36:08]json parsed OK: [15:36:08]protocol is kg_v1.0 [15:36:08]action value=close_receipt [15:36:08]process_action close_receipt [15:36:08]cmd_close_receipt [15:36:08]MH_GetDate [15:36:08]Write to MH i2c: F0 00 00 14 96 99 [15:36:08]Write i2c OK [15:36:08]MH_I2C_Read... [15:36:08]Read from MH i2c: F0 [15:36:08]MH_I2C_Read... [15:36:08]Read from MH i2c: F0 09 00 [15:36:08]MH_I2C_Read... [15:36:08]Read from MH i2c: F0 09 00 14 96 00 ED 14 C2 66 34 48 D8 65 84 [15:36:08]GetLastDocTimeStamp 1723995366 [15:36:08]current date 1723995373 [15:36:08]FM_GetShiftState [15:36:08]SAM_PROTO_GetShiftState [15:36:08]wFMCommunicate request_size=4 [15:36:08]MH_SAM_APDU [15:36:08]CAPDU: 80 13 01 00 [15:36:08]Write to MH i2c: E2 08 00 15 96 80 13 01 00 00 00 00 00 28 [15:36:08]Write i2c OK [15:36:08]MH_I2C_Read... [15:36:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:08]Read from MH i2c: E2 [15:36:08]MH_I2C_Read... [15:36:08]Read from MH i2c: E2 0E 00 [15:36:08]MH_I2C_Read... [15:36:08]Read from MH i2c: E2 0E 00 15 96 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 65 [15:36:08]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:36:08]wFMCommunicate OK [15:36:08]SAM_PROTO_GetShiftState done [15:36:08]FM_GetShiftState done [15:36:08]opened in 1723940556 [15:36:08]opened+sec_in_day 1724026956 [15:36:08]quantity*price = 50036 [15:36:08]sum+1 = 50037 [15:36:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 313 18.08.2024 15:36 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260755 ФПД: 139002329645912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T153614&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260755&fm=139002329645912&tin=02508201610067®Number=0000000000091865&sum=50000 [15:36:09]StoreToDocumentArchive [15:36:09]shift 449 fd 260755 [15:36:09]save to /storage/0449/doc_00260755 [15:36:09]save last doc name /storage/0449/doc_00260755 to /storage/kkm_last_doc_name [15:36:09]save OK [15:36:09]Clear old archive folders... [15:36:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:36:09]tlvbuf is 0049F950 [15:36:09]SAM_PROTO_ClearQueue [15:36:09]wFMCommunicate request_size=4 [15:36:09]MH_SAM_APDU [15:36:09]CAPDU: 80 09 00 00 [15:36:09]Write to MH i2c: E2 08 00 22 96 80 09 00 00 00 00 00 00 2A [15:36:09]Write i2c OK [15:36:09]MH_I2C_Read... [15:36:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:09]Read from MH i2c: E2 [15:36:09]MH_I2C_Read... [15:36:09]Read from MH i2c: E2 03 00 [15:36:09]MH_I2C_Read... [15:36:09]Read from MH i2c: E2 03 00 22 96 00 90 00 2C [15:36:09]RAPDU: 90 00 [15:36:09]wFMCommunicate OK [15:36:09]SAM_PROTO_ClearQueue done [15:36:09]KKMCreateOFDPacket [15:36:09]OFDProtocolAddRootSTLVToBuf [15:36:09]FM_MakeSignedData [15:36:09]FM_MakeSignedData [15:36:09]SAM_PROTO_SignData [15:36:09]wFMCommunicate request_size=4 [15:36:09]MH_SAM_APDU [15:36:09]CAPDU: 80 0D 01 02 [15:36:09]Write to MH i2c: E2 08 00 23 96 80 0D 01 02 00 00 00 00 32 [15:36:09]Write i2c OK [15:36:09]MH_I2C_Read... [15:36:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:09]Read from MH i2c: E2 [15:36:09]MH_I2C_Read... [15:36:09]Read from MH i2c: E2 03 00 [15:36:09]MH_I2C_Read... [15:36:09]Read from MH i2c: E2 03 00 23 96 00 90 00 2D [15:36:09]RAPDU: 90 00 [15:36:09]wFMCommunicate OK [15:36:09]wFMCommunicate request_size=255 [15:36:09]MH_SAM_APDU [15:36:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 39 01 00 00 F4 03 04 00 EE 14 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 93 FA 03 00 35 04 06 00 7E [15:36:09]Write to MH i2c: E2 02 01 24 96 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 39 01 00 00 F4 03 04 00 EE 14 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 93 FA 03 00 35 04 06 00 7E 00 00 E3 [15:36:09]Write i2c OK [15:36:09]MH_I2C_Read... [15:36:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:10]Read from MH i2c: E2 [15:36:10]MH_I2C_Read... [15:36:10]Read from MH i2c: E2 03 00 [15:36:10]MH_I2C_Read... [15:36:10]Read from MH i2c: E2 03 00 24 96 00 90 00 2E [15:36:10]RAPDU: 90 00 [15:36:10]wFMCommunicate OK [15:36:10]wFMCommunicate request_size=10 [15:36:10]MH_SAM_APDU [15:36:10]CAPDU: 80 0D 02 02 05 6C 00 7B 43 58 [15:36:10]Write to MH i2c: E2 0D 00 25 96 80 0D 02 02 05 00 6C 00 7B 43 58 00 00 C1 [15:36:10]Write i2c OK [15:36:10]MH_I2C_Read... [15:36:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:10]Read from MH i2c: E2 [15:36:10]MH_I2C_Read... [15:36:10]Read from MH i2c: E2 03 00 [15:36:10]MH_I2C_Read... [15:36:10]Read from MH i2c: E2 03 00 25 96 00 90 00 2F [15:36:10]RAPDU: 90 00 [15:36:10]wFMCommunicate OK [15:36:10]wFMCommunicate request_size=4 [15:36:10]MH_SAM_APDU [15:36:10]CAPDU: 80 0D 03 02 [15:36:10]Write to MH i2c: E2 08 00 26 96 80 0D 03 02 00 00 00 00 37 [15:36:10]Write i2c OK [15:36:10]MH_I2C_Read... [15:36:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:10]Read from MH i2c: E2 [15:36:10]MH_I2C_Read... [15:36:10]Read from MH i2c: E2 0B 00 [15:36:10]MH_I2C_Read... [15:36:10]Read from MH i2c: E2 0B 00 26 96 00 6F 41 B8 BB 92 E9 90 90 90 00 F6 [15:36:10]RAPDU: 6F 41 B8 BB 92 E9 90 90 90 00 [15:36:10]wFMCommunicate OK [15:36:10]SAM_PROTO_SignData done [15:36:10]FM_MakeSignedData done [15:36:10]CreateOFDProtocolMessage [15:36:10]wFMCommunicate request_size=4 [15:36:10]MH_SAM_APDU [15:36:10]CAPDU: 80 11 00 00 [15:36:10]Write to MH i2c: E2 08 00 27 96 80 11 00 00 00 00 00 00 37 [15:36:10]Write i2c OK [15:36:10]MH_I2C_Read... [15:36:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:10]Read from MH i2c: E2 [15:36:10]MH_I2C_Read... [15:36:10]Read from MH i2c: E2 17 00 [15:36:10]MH_I2C_Read... [15:36:10]Read from MH i2c: E2 17 00 27 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 84 [15:36:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:36:10]wFMCommunicate OK [15:36:10]CreateOFDProtocolMessage done [15:36:10]OFDSenderStorePacket 260755 [15:36:10]StoreOFDPacket docnum=260755 [15:36:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 49 AC 07 01 16 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 39 01 00 00 F4 03 04 00 EE 14 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 93 FA 03 00 35 04 06 00 7E 6C 00 7B 43 58 6F 41 B8 BB 92 E9 90 90 [15:36:10]CheckFolder [15:36:10]dirname=/storage/ofd_packets [15:36:10]CheckFolder done [15:36:10]ProducePacketName [15:36:10]name=ofd_packets/00260755 [15:36:10]NVStorageSaveData ofd_packets/00260755 [15:36:10]File name is /storage/ofd_packets/00260755 [15:36:10]Write 301 bytes [15:36:10]NVStorageSaveData done [15:36:10]OFDSenderStorePacket done [15:36:10]KKMCreateOFDPacket done [15:36:10]NVStorageSaveData kkm_last_timestamp [15:36:10]File name is /storage/kkm_last_timestamp [15:36:10]Write 4 bytes [15:36:10]NVStorageSaveData done [15:36:10]ExternCall_PrintAddStr [15:36:10]wPrintStart [15:36:10]Write to MH i2c: 01 00 00 28 96 BE [15:36:10]Write i2c OK [15:36:10]MH_I2C_Read... [15:36:10]Read from MH i2c: 01 [15:36:10]MH_I2C_Read... [15:36:10]Read from MH i2c: 01 07 00 [15:36:10]MH_I2C_Read... [15:36:10]Read from MH i2c: 01 07 00 28 96 00 00 00 00 00 FF 0F D3 [15:36:10]RasterBufferAndPrint [15:36:10]line Счет N : (1)1036307 [15:36:10]line ИНН: 02508201610067 [15:36:10]line Контрольно-Кассовый Чек [15:36:10]line ПРОДАЖА [15:36:10]line ТРК (МРК, ГНК) : 22 [15:36:10]line Товар: 2710124130 [15:36:10]line Аи-92-К-5 [15:36:10]line 7.380 * 67.80 [15:36:10]line = 500.36 [15:36:10]line НДС 12% НСП 1% [15:36:10]line > о реализуемом товаре [15:36:10]line ОКРУГЛЕНИЕ: -0.36 [15:36:10]line ИТОГО: 500.00 [15:36:10]line Внесено: 500.00 [15:36:10]line СДАЧА: 0.00 [15:36:10]line НСП 1% : 4.43 [15:36:10]line НДС 12% : 53.14 [15:36:10]line Наличными: 500.00 [15:36:10]line Безнал.: 0.00 [15:36:10]line Место: АЗС № 94 "Партнер Нефть" [15:36:10]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [15:36:10]line СНО: Общий режим [15:36:10]line Чек 313 18.08.2024 15:36 [15:36:10]line Смена: 449 ФФД: 1.0 [15:36:10]line ЗНМ: 0300000099 [15:36:10]line РНМ: 0000000000091865 [15:36:10]line Версия ККМ: 001 [15:36:10]line ФМ: 0000000000871820 [15:36:10]line ФД: 260755 [15:36:10]line ФПД: 139002329645912 [15:36:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T153614&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260755&fm=139002329645912&tin=02508201610067®Number=0000000000091865&sum=50000 [15:36:10]written 0, free lines is 4095 [15:36:10]OFD Sender: Processing packet 260755 [packets to send 192, broken 191] [15:36:10]ProducePacketName [15:36:10]name=ofd_packets/00260755 [15:36:10]OFD Sender: To server: pG, [15:36:10]CommunicateWithHost lk.salyk.kg:30040 [15:36:10]ConnectInit lk.salyk.kg [15:36:10]Connected sock=10 [15:36: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 30 0F 01 00 00 49 AC 07 01 16 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 39 01 00 00 F4 03 04 00 EE 14 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 93 FA 03 00 35 04 06 00 7E 6C 00 7B 43 58 6F 41 B8 BB 92 E9 90 90 [15:36: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 30 4F 00 00 00 9A 9E 47 00 1C 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 30 10 04 04 00 93 FA 03 00 F4 03 04 00 42 BE C1 66 B6 04 01 00 00 B7 13 02 BB 25 31 C8 07 [15:36:10]CommunicateWithHost err = 0 [15:36:10]CheckOFDResponse [15:36:10]1017 (14) - 77093643461234 [15:36:10]1041 (16) - 0000000000871820 [15:36:10]1040 (4) - 260755 [15:36:10]1012 (4) - 18.08.2024 09:26 [15:36:10]1206 (1) - 0 [15:36:10]OFD Sender: Remove packet 260755 [15:36:10]ProducePacketName [15:36:10]name=ofd_packets/00260755 [15:36:10]NVStorageDeleteData [15:36:10]Write to MH i2c: 01 00 00 53 96 E9 [15:36:10]Write i2c OK [15:36:10]MH_I2C_Read... [15:36:10]Read from MH i2c: 01 [15:36:10]MH_I2C_Read... [15:36:10]Read from MH i2c: 01 07 00 [15:36:10]MH_I2C_Read... [15:36:10]Read from MH i2c: 01 07 00 53 96 00 00 00 00 00 77 0C 73 [15:36:10]RasterBufferAndPrint [15:36:10]line [15:36:10]line [15:36:10]line [15:36:10]line [15:36:10]line [15:36:10]written 0, free lines is 3198 [15:36:10]MH_Cut [15:36:10]Write to MH i2c: D1 01 00 5A 96 01 C2 [15:36:10]Write i2c OK [15:36:10]MH_I2C_Read... [15:36:10]Read from MH i2c: D1 [15:36:10]MH_I2C_Read... [15:36:10]Read from MH i2c: D1 01 00 [15:36:10]MH_I2C_Read... [15:36:10]Read from MH i2c: D1 01 00 5A 96 00 C1 [15:36:10]Write to MH i2c: 01 00 00 5B 96 F1 [15:36:10]Write i2c OK [15:36:10]MH_I2C_Read... [15:36:11]OFD Sender: No OFD packet to send [15:36:11]*** Cut start [15:36:11]*** Purtial cut [15:36:11]*** Stage 1: CUTSNS_PIN = 1 [15:36:13]Read from MH i2c: 01 [15:36:13]MH_I2C_Read... [15:36:13]*** Stop cut motor [15:36:13]*** Cut end [15:36:13]Read from MH i2c: 01 07 00 [15:36:13]MH_I2C_Read... [15:36:13]Read from MH i2c: 01 07 00 5B 96 00 00 00 00 00 FF 0F 06 [15:36:13]process_action close_receipt done [15:36:13]requested_data is exist [15:36:13]produce_requested_data [15:36:13]requested_item fm.sn is exist - process it [15:36:13]wFMCommunicate request_size=4 [15:36:13]MH_SAM_APDU [15:36:13]CAPDU: 80 11 00 00 [15:36:13]Write to MH i2c: E2 08 00 5C 96 80 11 00 00 00 00 00 00 6C [15:36:13]Write i2c OK [15:36:13]MH_I2C_Read... [15:36:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:13]Read from MH i2c: E2 [15:36:13]MH_I2C_Read... [15:36:13]Read from MH i2c: E2 17 00 [15:36:13]MH_I2C_Read... [15:36:13]Read from MH i2c: E2 17 00 5C 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B9 [15:36:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:36:13]wFMCommunicate OK [15:36:13]requested_item fd.num is exist - process it [15:36:13]SAM_PROTO_GetFieldsCounters [15:36:13]wFMCommunicate request_size=4 [15:36:13]MH_SAM_APDU [15:36:13]CAPDU: 80 13 00 00 [15:36:13]Write to MH i2c: E2 08 00 5D 96 80 13 00 00 00 00 00 00 6F [15:36:13]Write i2c OK [15:36:13]MH_I2C_Read... [15:36:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:14]Read from MH i2c: E2 [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: E2 62 00 [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: E2 62 00 5D 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 93 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 8E [15:36: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 93 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:36:14]wFMCommunicate OK [15:36:14]SAM_PROTO_GetFieldsCounters done [15:36:14]requested_item shift.num is exist - process it [15:36:14]requested_item shift.opened is exist - process it [15:36:14]req_shift_opened [15:36:14]FM_GetShiftState [15:36:14]SAM_PROTO_GetShiftState [15:36:14]wFMCommunicate request_size=4 [15:36:14]MH_SAM_APDU [15:36:14]CAPDU: 80 13 01 00 [15:36:14]Write to MH i2c: E2 08 00 5E 96 80 13 01 00 00 00 00 00 71 [15:36:14]Write i2c OK [15:36:14]MH_I2C_Read... [15:36:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:14]Read from MH i2c: E2 [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: E2 0E 00 [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: E2 0E 00 5E 96 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 AE [15:36:14]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:36:14]wFMCommunicate OK [15:36:14]SAM_PROTO_GetShiftState done [15:36:14]FM_GetShiftState done [15:36:14]req_shift_opened done [15:36:14]requested_item shift.open_date is exist - process it [15:36:14]req_shift_open_date [15:36:14]req_shift_open_date done [15:36:14]produce_requested_data done [15:36:14]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260755,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [15:36:14]process_action_free close_receipt [15:36:14]json_value_free [15:36:14]json_value_free done [15:36:14]process_json_proto returns [15:36:14]Send response to host [15:36:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260755,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [15:36:14]free response buf [15:36:14]execute_script done [15:36:14]execute_script returns [15:36:14]free content buf [15:36:14]Sock 7.Close socket [15:36:14]Sock 7.Thread stoped [15:36:16]OFD Sender: No OFD packet to send [15:36:21]OFD Sender: No OFD packet to send [15:36:26]OFD Sender: No OFD packet to send [15:36:31]OFD Sender: No OFD packet to send [15:36:36]OFD Sender: No OFD packet to send [15:36:41]OFD Sender: No OFD packet to send [15:36:46]OFD Sender: No OFD packet to send [15:36:51]OFD Sender: No OFD packet to send [15:36:56]OFD Sender: No OFD packet to send [15:37:01]OFD Sender: No OFD packet to send [15:37:06]OFD Sender: No OFD packet to send [15:37:11]OFD Sender: No OFD packet to send [15:37:16]OFD Sender: No OFD packet to send [15:37:21]OFD Sender: No OFD packet to send [15:37:26]OFD Sender: No OFD packet to send [15:37:31]OFD Sender: No OFD packet to send [15:37:36]OFD Sender: No OFD packet to send [15:37:41]OFD Sender: No OFD packet to send [15:37:46]OFD Sender: No OFD packet to send [15:37:51]OFD Sender: No OFD packet to send [15:37:56]OFD Sender: No OFD packet to send [15:38:01]OFD Sender: No OFD packet to send [15:38:06]OFD Sender: No OFD packet to send [15:38:11]OFD Sender: No OFD packet to send [15:38:16]OFD Sender: No OFD packet to send [15:38:21]OFD Sender: No OFD packet to send [15:38:26]OFD Sender: No OFD packet to send [15:38:31]OFD Sender: No OFD packet to send [15:38:36]OFD Sender: No OFD packet to send [15:38:41]OFD Sender: No OFD packet to send [15:38:46]OFD Sender: No OFD packet to send [15:38:51]OFD Sender: No OFD packet to send [15:38:56]OFD Sender: No OFD packet to send [15:39:01]OFD Sender: No OFD packet to send [15:39:06]OFD Sender: No OFD packet to send [15:39:11]OFD Sender: No OFD packet to send [15:39:16]OFD Sender: No OFD packet to send [15:39:21]OFD Sender: No OFD packet to send [15:39:26]OFD Sender: No OFD packet to send [15:39:31]OFD Sender: No OFD packet to send [15:39:36]OFD Sender: No OFD packet to send [15:39:41]OFD Sender: No OFD packet to send [15:39:46]OFD Sender: No OFD packet to send [15:39:51]OFD Sender: No OFD packet to send [15:39:56]OFD Sender: No OFD packet to send [15:40:01]OFD Sender: No OFD packet to send [15:40:06]OFD Sender: No OFD packet to send [15:40:11]OFD Sender: No OFD packet to send [15:40:16]OFD Sender: No OFD packet to send [15:40:21]OFD Sender: No OFD packet to send [15:40:26]OFD Sender: No OFD packet to send [15:40:31]OFD Sender: No OFD packet to send [15:40:36]OFD Sender: No OFD packet to send [15:40:41]OFD Sender: No OFD packet to send [15:40:46]OFD Sender: No OFD packet to send [15:40:51]OFD Sender: No OFD packet to send [15:40:56]OFD Sender: No OFD packet to send [15:41:01]OFD Sender: No OFD packet to send [15:41:06]OFD Sender: No OFD packet to send [15:41:11]OFD Sender: No OFD packet to send [15:41:16]OFD Sender: No OFD packet to send [15:41:21]OFD Sender: No OFD packet to send [15:41:26]OFD Sender: No OFD packet to send [15:41:29]accept exits with 9 [15:41:29]New connection [15:41:29]New thread 3066473828 created [15:41:29]Thread 3066617188 joined [15:41:29]Waiting for new connection... [15:41:29] Sock 9.Parse request [15:41:29]Sock 9.Check first char [15:41:29]Sock 9.First char is OK [15:41:29]request: POST /json_proto HTTP/1.0 [15:41:29]Method: POST [15:41:29]URL: /json_proto [15:41:29]Method is POST - this is cgi request [15:41:29]url: /json_proto [15:41:29]query_string will be loaded in cgi processing [15:41:29]execute_cgi json_proto POST (null) [15:41:29]execute_cgi path=json_proto method=POST [15:41:29]POST find Content-Length [15:41:29]Host: 172.17.55.133:8080 [15:41:29]Content-Length: 683 [15:41:29]Content-Type: application/json [15:41:29] [15:41:29]POST finish read [15:41:29]Found Content-Length = 683 [15:41:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036308", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:29]execute_script... [15:41: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)1036308", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:29]POST & json_proto [15:41:29]process_json_proto [15:41:29]json parsed OK: [15:41:29]protocol is kg_v1.0 [15:41:29]action value=close_receipt [15:41:29]process_action close_receipt [15:41:29]cmd_close_receipt [15:41:29]MH_GetDate [15:41:29]Write to MH i2c: F0 00 00 5F 96 E4 [15:41:29]Write i2c OK [15:41:29]MH_I2C_Read... [15:41:29]Read from MH i2c: F0 [15:41:29]MH_I2C_Read... [15:41:29]Read from MH i2c: F0 09 00 [15:41:29]MH_I2C_Read... [15:41:29]Read from MH i2c: F0 09 00 5F 96 00 2F 16 C2 66 34 48 D8 65 13 [15:41:29]GetLastDocTimeStamp 1723995374 [15:41:29]current date 1723995695 [15:41:29]FM_GetShiftState [15:41:29]SAM_PROTO_GetShiftState [15:41:29]wFMCommunicate request_size=4 [15:41:29]MH_SAM_APDU [15:41:29]CAPDU: 80 13 01 00 [15:41:29]Write to MH i2c: E2 08 00 60 96 80 13 01 00 00 00 00 00 73 [15:41:29]Write i2c OK [15:41:29]MH_I2C_Read... [15:41:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:29]Read from MH i2c: E2 [15:41:29]MH_I2C_Read... [15:41:29]Read from MH i2c: E2 0E 00 [15:41:29]MH_I2C_Read... [15:41:29]Read from MH i2c: E2 0E 00 60 96 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B0 [15:41:29]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:41:29]wFMCommunicate OK [15:41:29]SAM_PROTO_GetShiftState done [15:41:29]FM_GetShiftState done [15:41:29]opened in 1723940556 [15:41:29]opened+sec_in_day 1724026956 [15:41:29]quantity*price = 100021 [15:41:29]sum+1 = 100023 [15:41:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 314 18.08.2024 15:41 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260756 ФПД: 135004632069818 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154135&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260756&fm=135004632069818&tin=02508201610067®Number=0000000000091865&sum=100000 [15:41:30]StoreToDocumentArchive [15:41:30]shift 449 fd 260756 [15:41:30]save to /storage/0449/doc_00260756 [15:41:30]save last doc name /storage/0449/doc_00260756 to /storage/kkm_last_doc_name [15:41:30]save OK [15:41:30]Clear old archive folders... [15:41:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:41:30]tlvbuf is 00656970 [15:41:30]SAM_PROTO_ClearQueue [15:41:30]wFMCommunicate request_size=4 [15:41:30]MH_SAM_APDU [15:41:30]CAPDU: 80 09 00 00 [15:41:30]Write to MH i2c: E2 08 00 6D 96 80 09 00 00 00 00 00 00 75 [15:41:30]Write i2c OK [15:41:30]MH_I2C_Read... [15:41:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:30]Read from MH i2c: E2 [15:41:30]MH_I2C_Read... [15:41:30]Read from MH i2c: E2 03 00 [15:41:30]MH_I2C_Read... [15:41:30]Read from MH i2c: E2 03 00 6D 96 00 90 00 77 [15:41:30]RAPDU: 90 00 [15:41:30]wFMCommunicate OK [15:41:30]SAM_PROTO_ClearQueue done [15:41:30]KKMCreateOFDPacket [15:41:30]OFDProtocolAddRootSTLVToBuf [15:41:30]FM_MakeSignedData [15:41:30]FM_MakeSignedData [15:41:30]SAM_PROTO_SignData [15:41:30]wFMCommunicate request_size=4 [15:41:30]MH_SAM_APDU [15:41:30]CAPDU: 80 0D 01 02 [15:41:30]Write to MH i2c: E2 08 00 6E 96 80 0D 01 02 00 00 00 00 7D [15:41:30]Write i2c OK [15:41:30]MH_I2C_Read... [15:41:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:30]Read from MH i2c: E2 [15:41:30]MH_I2C_Read... [15:41:30]Read from MH i2c: E2 03 00 [15:41:30]MH_I2C_Read... [15:41:30]Read from MH i2c: E2 03 00 6E 96 00 90 00 78 [15:41:30]RAPDU: 90 00 [15:41:30]wFMCommunicate OK [15:41:30]wFMCommunicate request_size=255 [15:41:30]MH_SAM_APDU [15:41: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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 2F 16 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 94 FA 03 00 35 04 06 00 7A [15:41:30]Write to MH i2c: E2 02 01 6F 96 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 2F 16 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 94 FA 03 00 35 04 06 00 7A 00 00 9C [15:41:30]Write i2c OK [15:41:30]MH_I2C_Read... [15:41:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:31]Read from MH i2c: E2 [15:41:31]MH_I2C_Read... [15:41:31]Read from MH i2c: E2 03 00 [15:41:31]MH_I2C_Read... [15:41:31]Read from MH i2c: E2 03 00 6F 96 00 90 00 79 [15:41:31]RAPDU: 90 00 [15:41:31]wFMCommunicate OK [15:41:31]wFMCommunicate request_size=10 [15:41:31]MH_SAM_APDU [15:41:31]CAPDU: 80 0D 02 02 05 C9 37 23 36 BA [15:41:31]Write to MH i2c: E2 0D 00 70 96 80 0D 02 02 05 00 C9 37 23 36 BA 00 00 9D [15:41:31]Write i2c OK [15:41:31]MH_I2C_Read... [15:41:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:31]Read from MH i2c: E2 [15:41:31]MH_I2C_Read... [15:41:31]Read from MH i2c: E2 03 00 [15:41:31]MH_I2C_Read... [15:41:31]Read from MH i2c: E2 03 00 70 96 00 90 00 7A [15:41:31]RAPDU: 90 00 [15:41:31]wFMCommunicate OK [15:41:31]wFMCommunicate request_size=4 [15:41:31]MH_SAM_APDU [15:41:31]CAPDU: 80 0D 03 02 [15:41:31]Write to MH i2c: E2 08 00 71 96 80 0D 03 02 00 00 00 00 82 [15:41:31]Write i2c OK [15:41:31]MH_I2C_Read... [15:41:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:31]Read from MH i2c: E2 [15:41:31]MH_I2C_Read... [15:41:31]Read from MH i2c: E2 0B 00 [15:41:31]MH_I2C_Read... [15:41:31]Read from MH i2c: E2 0B 00 71 96 00 26 0F 89 33 87 2C A8 34 90 00 03 [15:41:31]RAPDU: 26 0F 89 33 87 2C A8 34 90 00 [15:41:31]wFMCommunicate OK [15:41:31]SAM_PROTO_SignData done [15:41:31]FM_MakeSignedData done [15:41:31]CreateOFDProtocolMessage [15:41:31]wFMCommunicate request_size=4 [15:41:31]MH_SAM_APDU [15:41:31]CAPDU: 80 11 00 00 [15:41:31]Write to MH i2c: E2 08 00 72 96 80 11 00 00 00 00 00 00 82 [15:41:31]Write i2c OK [15:41:31]MH_I2C_Read... [15:41:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:31]Read from MH i2c: E2 [15:41:31]MH_I2C_Read... [15:41:31]Read from MH i2c: E2 17 00 [15:41:31]MH_I2C_Read... [15:41:31]Read from MH i2c: E2 17 00 72 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 CF [15:41:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:41:31]wFMCommunicate OK [15:41:31]CreateOFDProtocolMessage done [15:41:31]OFDSenderStorePacket 260756 [15:41:31]StoreOFDPacket docnum=260756 [15:41:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 79 5C 07 01 10 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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 2F 16 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 94 FA 03 00 35 04 06 00 7A C9 37 23 36 BA 26 0F 89 33 87 2C A8 34 [15:41:31]CheckFolder [15:41:31]dirname=/storage/ofd_packets [15:41:31]CheckFolder done [15:41:31]ProducePacketName [15:41:31]name=ofd_packets/00260756 [15:41:31]NVStorageSaveData ofd_packets/00260756 [15:41:31]File name is /storage/ofd_packets/00260756 [15:41:31]Write 301 bytes [15:41:31]NVStorageSaveData done [15:41:31]OFDSenderStorePacket done [15:41:31]KKMCreateOFDPacket done [15:41:31]NVStorageSaveData kkm_last_timestamp [15:41:31]File name is /storage/kkm_last_timestamp [15:41:31]Write 4 bytes [15:41:31]NVStorageSaveData done [15:41:31]ExternCall_PrintAddStr [15:41:31]wPrintStart [15:41:31]Write to MH i2c: 01 00 00 73 96 09 [15:41:31]Write i2c OK [15:41:31]MH_I2C_Read... [15:41:31]Read from MH i2c: 01 [15:41:31]MH_I2C_Read... [15:41:31]Read from MH i2c: 01 07 00 [15:41:31]MH_I2C_Read... [15:41:31]Read from MH i2c: 01 07 00 73 96 00 00 00 00 00 FF 0F 1E [15:41:31]RasterBufferAndPrint [15:41:31]line Счет N : (1)1036308 [15:41:31]line ИНН: 02508201610067 [15:41:31]line Контрольно-Кассовый Чек [15:41:31]line ПРОДАЖА [15:41:31]line ТРК (МРК, ГНК) : 13 [15:41:31]line Товар: 2710124500 [15:41:31]line Аи-95-К-5 [15:41:31]line 13.480 * 74.20 [15:41:31]line = 1000.22 [15:41:31]line НДС 12% НСП 1% [15:41:31]line > о реализуемом товаре [15:41:31]line ОКРУГЛЕНИЕ: -0.22 [15:41:31]line ИТОГО: 1000.00 [15:41:31]line Внесено: 1000.00 [15:41:31]line СДАЧА: 0.00 [15:41:31]line НСП 1% : 8.85 [15:41:31]line НДС 12% : 106.22 [15:41:31]line Наличными: 1000.00 [15:41:31]line Безнал.: 0.00 [15:41:31]line Место: АЗС № 94 "Партнер Нефть" [15:41:31]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [15:41:31]line СНО: Общий режим [15:41:31]line Чек 314 18.08.2024 15:41 [15:41:31]line Смена: 449 ФФД: 1.0 [15:41:31]line ЗНМ: 0300000099 [15:41:31]line РНМ: 0000000000091865 [15:41:31]line Версия ККМ: 001 [15:41:31]line ФМ: 0000000000871820 [15:41:31]line ФД: 260756 [15:41:31]line ФПД: 135004632069818 [15:41:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154135&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260756&fm=135004632069818&tin=02508201610067®Number=0000000000091865&sum=100000 [15:41:31]written 0, free lines is 4095 [15:41:31]OFD Sender: Processing packet 260756 [packets to send 192, broken 191] [15:41:31]ProducePacketName [15:41:31]name=ofd_packets/00260756 [15:41:31]OFD Sender: To server: pG, [15:41:31]CommunicateWithHost lk.salyk.kg:30040 [15:41:31]ConnectInit lk.salyk.kg [15:41:31]Connected sock=10 [15:41: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 30 0F 01 00 00 79 5C 07 01 10 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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 2F 16 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 94 FA 03 00 35 04 06 00 7A C9 37 23 36 BA 26 0F 89 33 87 2C A8 34 [15:41: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 30 4F 00 00 00 A7 87 47 00 F6 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 94 FA 03 00 F4 03 04 00 83 BF C1 66 B6 04 01 00 00 92 CE 5B B3 81 F9 E7 4E [15:41:31]CommunicateWithHost err = 0 [15:41:31]CheckOFDResponse [15:41:31]1017 (14) - 77093643461234 [15:41:31]1041 (16) - 0000000000871820 [15:41:31]1040 (4) - 260756 [15:41:31]1012 (4) - 18.08.2024 09:31 [15:41:31]1206 (1) - 0 [15:41:31]OFD Sender: Remove packet 260756 [15:41:31]ProducePacketName [15:41:31]name=ofd_packets/00260756 [15:41:31]NVStorageDeleteData [15:41:32]Write to MH i2c: 01 00 00 9E 96 34 [15:41:32]Write i2c OK [15:41:32]MH_I2C_Read... [15:41:32]Read from MH i2c: 01 [15:41:32]MH_I2C_Read... [15:41:32]Read from MH i2c: 01 07 00 [15:41:32]MH_I2C_Read... [15:41:32]Read from MH i2c: 01 07 00 9E 96 00 00 00 00 00 72 0C B9 [15:41:32]RasterBufferAndPrint [15:41:32]line [15:41:32]line [15:41:32]line [15:41:32]line [15:41:32]line [15:41:32]written 0, free lines is 3188 [15:41:32]MH_Cut [15:41:32]Write to MH i2c: D1 01 00 A5 96 01 0D [15:41:32]Write i2c OK [15:41:32]MH_I2C_Read... [15:41:32]Read from MH i2c: D1 [15:41:32]MH_I2C_Read... [15:41:32]Read from MH i2c: D1 01 00 [15:41:32]MH_I2C_Read... [15:41:32]Read from MH i2c: D1 01 00 A5 96 00 0C [15:41:32]Write to MH i2c: 01 00 00 A6 96 3C [15:41:32]Write i2c OK [15:41:32]MH_I2C_Read... [15:41:32]OFD Sender: No OFD packet to send [15:41:33]*** Cut start [15:41:33]*** Purtial cut [15:41:33]*** Stage 1: CUTSNS_PIN = 1 [15:41:35]Read from MH i2c: 01 [15:41:35]MH_I2C_Read... [15:41:35]*** Stop cut motor [15:41:35]*** Cut end [15:41:35]Read from MH i2c: 01 07 00 [15:41:35]MH_I2C_Read... [15:41:35]Read from MH i2c: 01 07 00 A6 96 00 00 00 00 00 FF 0F 51 [15:41:35]process_action close_receipt done [15:41:35]requested_data is exist [15:41:35]produce_requested_data [15:41:35]requested_item fm.sn is exist - process it [15:41:35]wFMCommunicate request_size=4 [15:41:35]MH_SAM_APDU [15:41:35]CAPDU: 80 11 00 00 [15:41:35]Write to MH i2c: E2 08 00 A7 96 80 11 00 00 00 00 00 00 B7 [15:41:35]Write i2c OK [15:41:35]MH_I2C_Read... [15:41:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:35]Read from MH i2c: E2 [15:41:35]MH_I2C_Read... [15:41:35]Read from MH i2c: E2 17 00 [15:41:35]MH_I2C_Read... [15:41:35]Read from MH i2c: E2 17 00 A7 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 04 [15:41:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:41:35]wFMCommunicate OK [15:41:35]requested_item fd.num is exist - process it [15:41:35]SAM_PROTO_GetFieldsCounters [15:41:35]wFMCommunicate request_size=4 [15:41:35]MH_SAM_APDU [15:41:35]CAPDU: 80 13 00 00 [15:41:35]Write to MH i2c: E2 08 00 A8 96 80 13 00 00 00 00 00 00 BA [15:41:35]Write i2c OK [15:41:35]MH_I2C_Read... [15:41:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:35]Read from MH i2c: E2 [15:41:35]MH_I2C_Read... [15:41:35]Read from MH i2c: E2 62 00 [15:41:35]MH_I2C_Read... [15:41:35]Read from MH i2c: E2 62 00 A8 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 94 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 DD [15:41: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 94 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:41:35]wFMCommunicate OK [15:41:35]SAM_PROTO_GetFieldsCounters done [15:41:35]requested_item shift.num is exist - process it [15:41:35]requested_item shift.opened is exist - process it [15:41:35]req_shift_opened [15:41:35]FM_GetShiftState [15:41:35]SAM_PROTO_GetShiftState [15:41:35]wFMCommunicate request_size=4 [15:41:35]MH_SAM_APDU [15:41:35]CAPDU: 80 13 01 00 [15:41:35]Write to MH i2c: E2 08 00 A9 96 80 13 01 00 00 00 00 00 BC [15:41:35]Write i2c OK [15:41:35]MH_I2C_Read... [15:41:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:35]Read from MH i2c: E2 [15:41:35]MH_I2C_Read... [15:41:35]Read from MH i2c: E2 0E 00 [15:41:35]MH_I2C_Read... [15:41:35]Read from MH i2c: E2 0E 00 A9 96 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F9 [15:41:35]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:41:35]wFMCommunicate OK [15:41:35]SAM_PROTO_GetShiftState done [15:41:35]FM_GetShiftState done [15:41:35]req_shift_opened done [15:41:35]requested_item shift.open_date is exist - process it [15:41:35]req_shift_open_date [15:41:35]req_shift_open_date done [15:41:35]produce_requested_data done [15:41:35]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260756,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [15:41:35]process_action_free close_receipt [15:41:35]json_value_free [15:41:35]json_value_free done [15:41:35]process_json_proto returns [15:41:35]Send response to host [15:41:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260756,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [15:41:35]free response buf [15:41:35]execute_script done [15:41:35]execute_script returns [15:41:35]free content buf [15:41:35]Sock 9.Close socket [15:41:35]Sock 9.Thread stoped [15:41:37]OFD Sender: No OFD packet to send [15:41:42]OFD Sender: No OFD packet to send [15:41:47]OFD Sender: No OFD packet to send [15:41:52]OFD Sender: No OFD packet to send [15:41:57]OFD Sender: No OFD packet to send [15:42:02]OFD Sender: No OFD packet to send [15:42:07]OFD Sender: No OFD packet to send [15:42:12]OFD Sender: No OFD packet to send [15:42:17]OFD Sender: No OFD packet to send [15:42:22]OFD Sender: No OFD packet to send [15:42:27]OFD Sender: No OFD packet to send [15:42:32]OFD Sender: No OFD packet to send [15:42:37]OFD Sender: No OFD packet to send [15:42:42]OFD Sender: No OFD packet to send [15:42:47]OFD Sender: No OFD packet to send [15:42:52]OFD Sender: No OFD packet to send [15:42:56]accept exits with 7 [15:42:56]New connection [15:42:56]New thread 3066617188 created [15:42:56]Thread 3066473828 joined [15:42:56]Waiting for new connection... [15:42:56] Sock 7.Parse request [15:42:56]Sock 7.Check first char [15:42:56]Sock 7.First char is OK [15:42:56]request: POST /json_proto HTTP/1.0 [15:42:56]Method: POST [15:42:56]URL: /json_proto [15:42:56]Method is POST - this is cgi request [15:42:56]url: /json_proto [15:42:56]query_string will be loaded in cgi processing [15:42:56]execute_cgi json_proto POST (null) [15:42:56]execute_cgi path=json_proto method=POST [15:42:56]POST find Content-Length [15:42:56]Host: 172.17.55.133:8080 [15:42:56]Content-Length: 678 [15:42:56]Content-Type: application/json [15:42:56] [15:42:56]POST finish read [15:42:56]Found Content-Length = 678 [15:42:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036309", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:56]execute_script... [15:42:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036309", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:56]POST & json_proto [15:42:56]process_json_proto [15:42:56]json parsed OK: [15:42:56]protocol is kg_v1.0 [15:42:56]action value=close_receipt [15:42:56]process_action close_receipt [15:42:56]cmd_close_receipt [15:42:56]MH_GetDate [15:42:56]Write to MH i2c: F0 00 00 AA 96 2F [15:42:56]Write i2c OK [15:42:56]MH_I2C_Read... [15:42:56]Read from MH i2c: F0 [15:42:56]MH_I2C_Read... [15:42:56]Read from MH i2c: F0 09 00 [15:42:56]MH_I2C_Read... [15:42:56]Read from MH i2c: F0 09 00 AA 96 00 86 16 C2 66 34 48 D8 65 B5 [15:42:56]GetLastDocTimeStamp 1723995695 [15:42:56]current date 1723995782 [15:42:56]FM_GetShiftState [15:42:56]SAM_PROTO_GetShiftState [15:42:56]wFMCommunicate request_size=4 [15:42:56]MH_SAM_APDU [15:42:56]CAPDU: 80 13 01 00 [15:42:56]Write to MH i2c: E2 08 00 AB 96 80 13 01 00 00 00 00 00 BE [15:42:56]Write i2c OK [15:42:56]MH_I2C_Read... [15:42:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:56]Read from MH i2c: E2 [15:42:56]MH_I2C_Read... [15:42:56]Read from MH i2c: E2 0E 00 [15:42:56]MH_I2C_Read... [15:42:56]Read from MH i2c: E2 0E 00 AB 96 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 FB [15:42:56]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:42:56]wFMCommunicate OK [15:42:56]SAM_PROTO_GetShiftState done [15:42:56]FM_GetShiftState done [15:42:56]opened in 1723940556 [15:42:56]opened+sec_in_day 1724026956 [15:42:56]quantity*price = 50010 [15:42:56]sum+1 = 50012 [15:42:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 315 18.08.2024 15:43 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260757 ФПД: 103199091059478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154302&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260757&fm=103199091059478&tin=02508201610067®Number=0000000000091865&sum=50000 [15:42:57]StoreToDocumentArchive [15:42:57]shift 449 fd 260757 [15:42:57]save to /storage/0449/doc_00260757 [15:42:57]save last doc name /storage/0449/doc_00260757 to /storage/kkm_last_doc_name [15:42:57]save OK [15:42:57]Clear old archive folders... [15:42:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:42:57]tlvbuf is 003366E0 [15:42:57]SAM_PROTO_ClearQueue [15:42:57]wFMCommunicate request_size=4 [15:42:57]MH_SAM_APDU [15:42:57]CAPDU: 80 09 00 00 [15:42:57]Write to MH i2c: E2 08 00 B8 96 80 09 00 00 00 00 00 00 C0 [15:42:57]Write i2c OK [15:42:57]MH_I2C_Read... [15:42:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:57]Read from MH i2c: E2 [15:42:57]MH_I2C_Read... [15:42:57]Read from MH i2c: E2 03 00 [15:42:57]MH_I2C_Read... [15:42:57]Read from MH i2c: E2 03 00 B8 96 00 90 00 C2 [15:42:57]RAPDU: 90 00 [15:42:57]wFMCommunicate OK [15:42:57]SAM_PROTO_ClearQueue done [15:42:57]KKMCreateOFDPacket [15:42:57]OFDProtocolAddRootSTLVToBuf [15:42:57]FM_MakeSignedData [15:42:57]FM_MakeSignedData [15:42:57]SAM_PROTO_SignData [15:42:57]wFMCommunicate request_size=4 [15:42:57]MH_SAM_APDU [15:42:57]CAPDU: 80 0D 01 02 [15:42:57]Write to MH i2c: E2 08 00 B9 96 80 0D 01 02 00 00 00 00 C8 [15:42:57]Write i2c OK [15:42:57]MH_I2C_Read... [15:42:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:57]Read from MH i2c: E2 [15:42:57]MH_I2C_Read... [15:42:57]Read from MH i2c: E2 03 00 [15:42:57]MH_I2C_Read... [15:42:57]Read from MH i2c: E2 03 00 B9 96 00 90 00 C3 [15:42:57]RAPDU: 90 00 [15:42:57]wFMCommunicate OK [15:42:57]wFMCommunicate request_size=255 [15:42:57]MH_SAM_APDU [15:42:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 86 16 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 95 FA 03 00 35 04 06 00 5D [15:42:57]Write to MH i2c: E2 02 01 BA 96 80 0D 02 02 FA 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 86 16 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 95 FA 03 00 35 04 06 00 5D 00 00 DE [15:42:58]Write i2c OK [15:42:58]MH_I2C_Read... [15:42:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:58]Read from MH i2c: E2 [15:42:58]MH_I2C_Read... [15:42:58]Read from MH i2c: E2 03 00 [15:42:58]MH_I2C_Read... [15:42:58]Read from MH i2c: E2 03 00 BA 96 00 90 00 C4 [15:42:58]RAPDU: 90 00 [15:42:58]wFMCommunicate OK [15:42:58]wFMCommunicate request_size=10 [15:42:58]MH_SAM_APDU [15:42:58]CAPDU: 80 0D 02 02 05 DB E9 29 EB 16 [15:42:58]Write to MH i2c: E2 0D 00 BB 96 80 0D 02 02 05 00 DB E9 29 EB 16 00 00 C3 [15:42:58]Write i2c OK [15:42:58]MH_I2C_Read... [15:42:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:58]Read from MH i2c: E2 [15:42:58]MH_I2C_Read... [15:42:58]Read from MH i2c: E2 03 00 [15:42:58]MH_I2C_Read... [15:42:58]Read from MH i2c: E2 03 00 BB 96 00 90 00 C5 [15:42:58]RAPDU: 90 00 [15:42:58]wFMCommunicate OK [15:42:58]wFMCommunicate request_size=4 [15:42:58]MH_SAM_APDU [15:42:58]CAPDU: 80 0D 03 02 [15:42:58]Write to MH i2c: E2 08 00 BC 96 80 0D 03 02 00 00 00 00 CD [15:42:58]Write i2c OK [15:42:58]MH_I2C_Read... [15:42:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:58]Read from MH i2c: E2 [15:42:58]MH_I2C_Read... [15:42:58]Read from MH i2c: E2 0B 00 [15:42:58]MH_I2C_Read... [15:42:58]Read from MH i2c: E2 0B 00 BC 96 00 BC F1 3E 1E 4D 6D F5 78 90 00 FE [15:42:58]RAPDU: BC F1 3E 1E 4D 6D F5 78 90 00 [15:42:58]wFMCommunicate OK [15:42:58]SAM_PROTO_SignData done [15:42:58]FM_MakeSignedData done [15:42:58]CreateOFDProtocolMessage [15:42:58]wFMCommunicate request_size=4 [15:42:58]MH_SAM_APDU [15:42:58]CAPDU: 80 11 00 00 [15:42:58]Write to MH i2c: E2 08 00 BD 96 80 11 00 00 00 00 00 00 CD [15:42:58]Write i2c OK [15:42:58]MH_I2C_Read... [15:42:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:58]Read from MH i2c: E2 [15:42:58]MH_I2C_Read... [15:42:58]Read from MH i2c: E2 17 00 [15:42:58]MH_I2C_Read... [15:42:58]Read from MH i2c: E2 17 00 BD 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 1A [15:42:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:42:58]wFMCommunicate OK [15:42:58]CreateOFDProtocolMessage done [15:42:58]OFDSenderStorePacket 260757 [15:42:58]StoreOFDPacket docnum=260757 [15:42:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 67 5A 07 01 26 C2 5A 03 01 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 86 16 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 95 FA 03 00 35 04 06 00 5D DB E9 29 EB 16 BC F1 3E 1E 4D 6D F5 78 [15:42:58]CheckFolder [15:42:58]dirname=/storage/ofd_packets [15:42:58]CheckFolder done [15:42:58]ProducePacketName [15:42:58]name=ofd_packets/00260757 [15:42:58]NVStorageSaveData ofd_packets/00260757 [15:42:58]File name is /storage/ofd_packets/00260757 [15:42:58]Write 301 bytes [15:42:58]NVStorageSaveData done [15:42:58]OFDSenderStorePacket done [15:42:58]KKMCreateOFDPacket done [15:42:58]NVStorageSaveData kkm_last_timestamp [15:42:58]File name is /storage/kkm_last_timestamp [15:42:58]Write 4 bytes [15:42:58]NVStorageSaveData done [15:42:58]OFD Sender: Processing packet 260757 [packets to send 192, broken 191] [15:42:58]ProducePacketName [15:42:58]name=ofd_packets/00260757 [15:42:58]OFD Sender: To server: pG, [15:42:58]CommunicateWithHost lk.salyk.kg:30040 [15:42:58]ConnectInit lk.salyk.kg [15:42:58]ExternCall_PrintAddStr [15:42:58]wPrintStart [15:42:58]Write to MH i2c: 01 00 00 BE 96 54 [15:42:58]Write i2c OK [15:42:58]MH_I2C_Read... [15:42:58]Read from MH i2c: 01 [15:42:58]MH_I2C_Read... [15:42:58]Read from MH i2c: 01 07 00 [15:42:58]MH_I2C_Read... [15:42:58]Read from MH i2c: 01 07 00 BE 96 00 00 00 00 00 FF 0F 69 [15:42:58]RasterBufferAndPrint [15:42:58]line Счет N : (1)1036309 [15:42:58]line ИНН: 02508201610067 [15:42:58]line Контрольно-Кассовый Чек [15:42:58]line ПРОДАЖА [15:42:58]line ТРК (МРК, ГНК) : 13 [15:42:58]line Товар: 2710124500 [15:42:58]line Аи-95-К-5 [15:42:58]line 6.740 * 74.20 [15:42:58]line = 500.11 [15:42:58]line НДС 12% НСП 1% [15:42:58]line > о реализуемом товаре [15:42:58]line ОКРУГЛЕНИЕ: -0.11 [15:42:58]line ИТОГО: 500.00 [15:42:58]line Внесено: 500.00 [15:42:58]line СДАЧА: 0.00 [15:42:58]line НСП 1% : 4.43 [15:42:58]line НДС 12% : 53.11 [15:42:58]line Наличными: 500.00 [15:42:58]line Безнал.: 0.00 [15:42:58]line Место: АЗС № 94 "Партнер Нефть" [15:42:58]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [15:42:58]line СНО: Общий режим [15:42:58]line Чек 315 18.08.2024 15:43 [15:42:58]line Смена: 449 ФФД: 1.0 [15:42:58]line ЗНМ: 0300000099 [15:42:58]line РНМ: 0000000000091865 [15:42:58]line Версия ККМ: 001 [15:42:58]line ФМ: 0000000000871820 [15:42:58]line ФД: 260757 [15:42:58]line ФПД: 103199091059478 [15:42:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154302&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260757&fm=103199091059478&tin=02508201610067®Number=0000000000091865&sum=50000 [15:42:58]Connected sock=11 [15:42:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 67 5A 07 01 26 C2 5A 03 01 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 86 16 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 95 FA 03 00 35 04 06 00 5D DB E9 29 EB 16 BC F1 3E 1E 4D 6D F5 78 [15:42:58]written 0, free lines is 4095 [15:42:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 4F 00 00 00 F4 59 47 00 99 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 30 10 04 04 00 95 FA 03 00 F4 03 04 00 DA BF C1 66 B6 04 01 00 00 1A 2B B2 F2 D9 75 1D 74 [15:42:58]CommunicateWithHost err = 0 [15:42:58]CheckOFDResponse [15:42:58]1017 (14) - 77093643461234 [15:42:58]1041 (16) - 0000000000871820 [15:42:58]1040 (4) - 260757 [15:42:58]1012 (4) - 18.08.2024 09:33 [15:42:58]1206 (1) - 0 [15:42:58]OFD Sender: Remove packet 260757 [15:42:58]ProducePacketName [15:42:58]name=ofd_packets/00260757 [15:42:58]NVStorageDeleteData [15:42:59]Write to MH i2c: 01 00 00 E9 96 7F [15:42:59]Write i2c OK [15:42:59]MH_I2C_Read... [15:42:59]Read from MH i2c: 01 [15:42:59]MH_I2C_Read... [15:42:59]Read from MH i2c: 01 07 00 [15:42:59]MH_I2C_Read... [15:42:59]Read from MH i2c: 01 07 00 E9 96 00 00 00 00 00 70 0C 02 [15:42:59]RasterBufferAndPrint [15:42:59]line [15:42:59]line [15:42:59]line [15:42:59]line [15:42:59]line [15:42:59]written 0, free lines is 3187 [15:42:59]MH_Cut [15:42:59]Write to MH i2c: D1 01 00 F0 96 01 58 [15:42:59]Write i2c OK [15:42:59]MH_I2C_Read... [15:42:59]Read from MH i2c: D1 [15:42:59]MH_I2C_Read... [15:42:59]Read from MH i2c: D1 01 00 [15:42:59]MH_I2C_Read... [15:42:59]Read from MH i2c: D1 01 00 F0 96 00 57 [15:42:59]Write to MH i2c: 01 00 00 F1 96 87 [15:42:59]Write i2c OK [15:42:59]MH_I2C_Read... [15:42:59]OFD Sender: No OFD packet to send [15:43:00]*** Cut start [15:43:00]*** Purtial cut [15:43:00]*** Stage 1: CUTSNS_PIN = 1 [15:43:02]Read from MH i2c: 01 [15:43:02]MH_I2C_Read... [15:43:02]*** Stop cut motor [15:43:02]*** Cut end [15:43:02]Read from MH i2c: 01 07 00 [15:43:02]MH_I2C_Read... [15:43:02]Read from MH i2c: 01 07 00 F1 96 00 00 00 00 00 FF 0F 9C [15:43:02]process_action close_receipt done [15:43:02]requested_data is exist [15:43:02]produce_requested_data [15:43:02]requested_item fm.sn is exist - process it [15:43:02]wFMCommunicate request_size=4 [15:43:02]MH_SAM_APDU [15:43:02]CAPDU: 80 11 00 00 [15:43:02]Write to MH i2c: E2 08 00 F2 96 80 11 00 00 00 00 00 00 02 [15:43:02]Write i2c OK [15:43:02]MH_I2C_Read... [15:43:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:02]Read from MH i2c: E2 [15:43:02]MH_I2C_Read... [15:43:02]Read from MH i2c: E2 17 00 [15:43:02]MH_I2C_Read... [15:43:02]Read from MH i2c: E2 17 00 F2 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 4F [15:43:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:43:02]wFMCommunicate OK [15:43:02]requested_item fd.num is exist - process it [15:43:02]SAM_PROTO_GetFieldsCounters [15:43:02]wFMCommunicate request_size=4 [15:43:02]MH_SAM_APDU [15:43:02]CAPDU: 80 13 00 00 [15:43:02]Write to MH i2c: E2 08 00 F3 96 80 13 00 00 00 00 00 00 05 [15:43:02]Write i2c OK [15:43:02]MH_I2C_Read... [15:43:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:02]Read from MH i2c: E2 [15:43:02]MH_I2C_Read... [15:43:02]Read from MH i2c: E2 62 00 [15:43:02]MH_I2C_Read... [15:43:02]Read from MH i2c: E2 62 00 F3 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 95 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 2C [15:43: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 95 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:43:02]wFMCommunicate OK [15:43:02]SAM_PROTO_GetFieldsCounters done [15:43:02]requested_item shift.num is exist - process it [15:43:02]requested_item shift.opened is exist - process it [15:43:02]req_shift_opened [15:43:02]FM_GetShiftState [15:43:02]SAM_PROTO_GetShiftState [15:43:02]wFMCommunicate request_size=4 [15:43:02]MH_SAM_APDU [15:43:02]CAPDU: 80 13 01 00 [15:43:02]Write to MH i2c: E2 08 00 F4 96 80 13 01 00 00 00 00 00 07 [15:43:02]Write i2c OK [15:43:02]MH_I2C_Read... [15:43:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:02]Read from MH i2c: E2 [15:43:02]MH_I2C_Read... [15:43:02]Read from MH i2c: E2 0E 00 [15:43:02]MH_I2C_Read... [15:43:02]Read from MH i2c: E2 0E 00 F4 96 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 44 [15:43:02]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:43:02]wFMCommunicate OK [15:43:02]SAM_PROTO_GetShiftState done [15:43:02]FM_GetShiftState done [15:43:02]req_shift_opened done [15:43:02]requested_item shift.open_date is exist - process it [15:43:02]req_shift_open_date [15:43:02]req_shift_open_date done [15:43:02]produce_requested_data done [15:43:02]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260757,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [15:43:02]process_action_free close_receipt [15:43:02]json_value_free [15:43:02]json_value_free done [15:43:02]process_json_proto returns [15:43:02]Send response to host [15:43:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260757,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [15:43:02]free response buf [15:43:02]execute_script done [15:43:02]execute_script returns [15:43:02]free content buf [15:43:02]Sock 7.Close socket [15:43:02]Sock 7.Thread stoped [15:43:04]OFD Sender: No OFD packet to send [15:43:09]OFD Sender: No OFD packet to send [15:43:14]OFD Sender: No OFD packet to send [15:43:18]accept exits with 9 [15:43:18]New connection [15:43:18]New thread 3066473828 created [15:43:18]Thread 3066617188 joined [15:43:18]Waiting for new connection... [15:43:18] Sock 9.Parse request [15:43:18]Sock 9.Check first char [15:43:18]Sock 9.First char is OK [15:43:18]request: POST /json_proto HTTP/1.0 [15:43:18]Method: POST [15:43:18]URL: /json_proto [15:43:18]Method is POST - this is cgi request [15:43:18]url: /json_proto [15:43:18]query_string will be loaded in cgi processing [15:43:18]execute_cgi json_proto POST (null) [15:43:18]execute_cgi path=json_proto method=POST [15:43:18]POST find Content-Length [15:43:18]Host: 172.17.55.133:8080 [15:43:18]Content-Length: 683 [15:43:18]Content-Type: application/json [15:43:18] [15:43:18]POST finish read [15:43:18]Found Content-Length = 683 [15:43:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:18]execute_script... [15:43: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)1036310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:18]POST & json_proto [15:43:18]process_json_proto [15:43:18]json parsed OK: [15:43:18]protocol is kg_v1.0 [15:43:18]action value=close_receipt [15:43:18]process_action close_receipt [15:43:18]cmd_close_receipt [15:43:18]MH_GetDate [15:43:18]Write to MH i2c: F0 00 00 F5 96 7A [15:43:18]Write i2c OK [15:43:18]MH_I2C_Read... [15:43:18]Read from MH i2c: F0 [15:43:18]MH_I2C_Read... [15:43:18]Read from MH i2c: F0 09 00 [15:43:18]MH_I2C_Read... [15:43:18]Read from MH i2c: F0 09 00 F5 96 00 9B 16 C2 66 34 48 D8 65 15 [15:43:18]GetLastDocTimeStamp 1723995782 [15:43:18]current date 1723995803 [15:43:18]FM_GetShiftState [15:43:18]SAM_PROTO_GetShiftState [15:43:18]wFMCommunicate request_size=4 [15:43:18]MH_SAM_APDU [15:43:18]CAPDU: 80 13 01 00 [15:43:18]Write to MH i2c: E2 08 00 F6 96 80 13 01 00 00 00 00 00 09 [15:43:18]Write i2c OK [15:43:18]MH_I2C_Read... [15:43:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:18]Read from MH i2c: E2 [15:43:18]MH_I2C_Read... [15:43:18]Read from MH i2c: E2 0E 00 [15:43:18]MH_I2C_Read... [15:43:18]Read from MH i2c: E2 0E 00 F6 96 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 46 [15:43:18]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:43:18]wFMCommunicate OK [15:43:18]SAM_PROTO_GetShiftState done [15:43:18]FM_GetShiftState done [15:43:18]opened in 1723940556 [15:43:18]opened+sec_in_day 1724026956 [15:43:18]quantity*price = 100005 [15:43:18]sum+1 = 100006 [15:43:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 316 18.08.2024 15:43 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260758 ФПД: 21178078767016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154323&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260758&fm=21178078767016&tin=02508201610067®Number=0000000000091865&sum=100000 [15:43:19]StoreToDocumentArchive [15:43:19]shift 449 fd 260758 [15:43:19]save to /storage/0449/doc_00260758 [15:43:19]save last doc name /storage/0449/doc_00260758 to /storage/kkm_last_doc_name [15:43:19]save OK [15:43:19]Clear old archive folders... [15:43:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:43:19]tlvbuf is 004A2260 [15:43:19]SAM_PROTO_ClearQueue [15:43:19]wFMCommunicate request_size=4 [15:43:19]MH_SAM_APDU [15:43:19]CAPDU: 80 09 00 00 [15:43:19]Write to MH i2c: E2 08 00 03 97 80 09 00 00 00 00 00 00 0C [15:43:19]Write i2c OK [15:43:19]MH_I2C_Read... [15:43:19]OFD Sender: No OFD packet to send [15:43:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:43:19]Read from MH i2c: E2 [15:43:19]MH_I2C_Read... [15:43:19]Read from MH i2c: E2 03 00 [15:43:19]MH_I2C_Read... [15:43:19]Read from MH i2c: E2 03 00 03 97 00 90 00 0E [15:43:19]RAPDU: 90 00 [15:43:19]wFMCommunicate OK [15:43:19]SAM_PROTO_ClearQueue done [15:43:19]KKMCreateOFDPacket [15:43:19]OFDProtocolAddRootSTLVToBuf [15:43:19]FM_MakeSignedData [15:43:19]FM_MakeSignedData [15:43:19]SAM_PROTO_SignData [15:43:19]wFMCommunicate request_size=4 [15:43:19]MH_SAM_APDU [15:43:19]CAPDU: 80 0D 01 02 [15:43:19]Write to MH i2c: E2 08 00 04 97 80 0D 01 02 00 00 00 00 14 [15:43:19]Write i2c OK [15:43:19]MH_I2C_Read... [15:43:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:43:19]Read from MH i2c: E2 [15:43:19]MH_I2C_Read... [15:43:19]Read from MH i2c: E2 03 00 [15:43:19]MH_I2C_Read... [15:43:19]Read from MH i2c: E2 03 00 04 97 00 90 00 0F [15:43:19]RAPDU: 90 00 [15:43:19]wFMCommunicate OK [15:43:19]wFMCommunicate request_size=255 [15:43:19]MH_SAM_APDU [15:43:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 9B 16 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 96 FA 03 00 35 04 06 00 13 [15:43:19]Write to MH i2c: E2 02 01 05 97 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 9B 16 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 96 FA 03 00 35 04 06 00 13 00 00 9E [15:43:19]Write i2c OK [15:43:19]MH_I2C_Read... [15:43:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:19]Read from MH i2c: E2 [15:43:19]MH_I2C_Read... [15:43:19]Read from MH i2c: E2 03 00 [15:43:19]MH_I2C_Read... [15:43:19]Read from MH i2c: E2 03 00 05 97 00 90 00 10 [15:43:19]RAPDU: 90 00 [15:43:19]wFMCommunicate OK [15:43:19]wFMCommunicate request_size=10 [15:43:19]MH_SAM_APDU [15:43:19]CAPDU: 80 0D 02 02 05 42 E7 DC A7 A8 [15:43:19]Write to MH i2c: E2 0D 00 06 97 80 0D 02 02 05 00 42 E7 DC A7 A8 00 00 75 [15:43:19]Write i2c OK [15:43:19]MH_I2C_Read... [15:43:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:19]Read from MH i2c: E2 [15:43:19]MH_I2C_Read... [15:43:19]Read from MH i2c: E2 03 00 [15:43:19]MH_I2C_Read... [15:43:19]Read from MH i2c: E2 03 00 06 97 00 90 00 11 [15:43:19]RAPDU: 90 00 [15:43:19]wFMCommunicate OK [15:43:19]wFMCommunicate request_size=4 [15:43:19]MH_SAM_APDU [15:43:19]CAPDU: 80 0D 03 02 [15:43:19]Write to MH i2c: E2 08 00 07 97 80 0D 03 02 00 00 00 00 19 [15:43:19]Write i2c OK [15:43:19]MH_I2C_Read... [15:43:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:43:19]Read from MH i2c: E2 [15:43:19]MH_I2C_Read... [15:43:19]Read from MH i2c: E2 0B 00 [15:43:19]MH_I2C_Read... [15:43:19]Read from MH i2c: E2 0B 00 07 97 00 CA A6 CA DB 0D 40 80 D6 90 00 D2 [15:43:19]RAPDU: CA A6 CA DB 0D 40 80 D6 90 00 [15:43:19]wFMCommunicate OK [15:43:19]SAM_PROTO_SignData done [15:43:19]FM_MakeSignedData done [15:43:19]CreateOFDProtocolMessage [15:43:19]wFMCommunicate request_size=4 [15:43:19]MH_SAM_APDU [15:43:19]CAPDU: 80 11 00 00 [15:43:19]Write to MH i2c: E2 08 00 08 97 80 11 00 00 00 00 00 00 19 [15:43:19]Write i2c OK [15:43:19]MH_I2C_Read... [15:43:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:20]Read from MH i2c: E2 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: E2 17 00 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: E2 17 00 08 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 66 [15:43:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:43:20]wFMCommunicate OK [15:43:20]CreateOFDProtocolMessage done [15:43:20]OFDSenderStorePacket 260758 [15:43:20]StoreOFDPacket docnum=260758 [15:43:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 F0 5E 07 01 7B A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 9B 16 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 96 FA 03 00 35 04 06 00 13 42 E7 DC A7 A8 CA A6 CA DB 0D 40 80 D6 [15:43:20]CheckFolder [15:43:20]dirname=/storage/ofd_packets [15:43:20]CheckFolder done [15:43:20]ProducePacketName [15:43:20]name=ofd_packets/00260758 [15:43:20]NVStorageSaveData ofd_packets/00260758 [15:43:20]File name is /storage/ofd_packets/00260758 [15:43:20]Write 301 bytes [15:43:20]NVStorageSaveData done [15:43:20]OFDSenderStorePacket done [15:43:20]KKMCreateOFDPacket done [15:43:20]NVStorageSaveData kkm_last_timestamp [15:43:20]File name is /storage/kkm_last_timestamp [15:43:20]Write 4 bytes [15:43:20]NVStorageSaveData done [15:43:20]ExternCall_PrintAddStr [15:43:20]wPrintStart [15:43:20]Write to MH i2c: 01 00 00 09 97 A0 [15:43:20]Write i2c OK [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: 01 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: 01 07 00 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: 01 07 00 09 97 00 00 00 00 00 FF 0F B5 [15:43:20]RasterBufferAndPrint [15:43:20]line Счет N : (1)1036310 [15:43:20]line ИНН: 02508201610067 [15:43:20]line Контрольно-Кассовый Чек [15:43:20]line ПРОДАЖА [15:43:20]line ТРК (МРК, ГНК) : 22 [15:43:20]line Товар: 2710124130 [15:43:20]line Аи-92-К-5 [15:43:20]line 14.750 * 67.80 [15:43:20]line = 1000.05 [15:43:20]line НДС 12% НСП 1% [15:43:20]line > о реализуемом товаре [15:43:20]line ОКРУГЛЕНИЕ: -0.05 [15:43:20]line ИТОГО: 1000.00 [15:43:20]line Внесено: 1000.00 [15:43:20]line СДАЧА: 0.00 [15:43:20]line НСП 1% : 8.85 [15:43:20]line НДС 12% : 106.20 [15:43:20]line Наличными: 1000.00 [15:43:20]line Безнал.: 0.00 [15:43:20]line Место: АЗС № 94 "Партнер Нефть" [15:43:20]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [15:43:20]line СНО: Общий режим [15:43:20]line Чек 316 18.08.2024 15:43 [15:43:20]line Смена: 449 ФФД: 1.0 [15:43:20]line ЗНМ: 0300000099 [15:43:20]line РНМ: 0000000000091865 [15:43:20]line Версия ККМ: 001 [15:43:20]line ФМ: 0000000000871820 [15:43:20]line ФД: 260758 [15:43:20]line ФПД: 21178078767016 [15:43:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154323&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260758&fm=21178078767016&tin=02508201610067®Number=0000000000091865&sum=100000 [15:43:20]OFD Sender: Processing packet 260758 [packets to send 192, broken 191] [15:43:20]ProducePacketName [15:43:20]name=ofd_packets/00260758 [15:43:20]OFD Sender: To server: pG, [15:43:20]CommunicateWithHost lk.salyk.kg:30040 [15:43:20]ConnectInit lk.salyk.kg [15:43:20]written 0, free lines is 4095 [15:43:20]Connected sock=7 [15:43: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 30 0F 01 00 00 F0 5E 07 01 7B A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 9B 16 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 96 FA 03 00 35 04 06 00 13 42 E7 DC A7 A8 CA A6 CA DB 0D 40 80 D6 [15:43: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 30 4F 00 00 00 70 78 47 00 41 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 30 10 04 04 00 96 FA 03 00 F4 03 04 00 F0 BF C1 66 B6 04 01 00 00 F3 7F B1 E4 B6 2B 78 DE [15:43:20]CommunicateWithHost err = 0 [15:43:20]CheckOFDResponse [15:43:20]1017 (14) - 77093643461234 [15:43:20]1041 (16) - 0000000000871820 [15:43:20]1040 (4) - 260758 [15:43:20]1012 (4) - 18.08.2024 09:33 [15:43:20]1206 (1) - 0 [15:43:20]OFD Sender: Remove packet 260758 [15:43:20]ProducePacketName [15:43:20]name=ofd_packets/00260758 [15:43:20]NVStorageDeleteData [15:43:20]Write to MH i2c: 01 00 00 34 97 CB [15:43:20]Write i2c OK [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: 01 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: 01 07 00 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: 01 07 00 34 97 00 00 00 00 00 6C 0C 4A [15:43:20]RasterBufferAndPrint [15:43:20]line [15:43:20]line [15:43:20]line [15:43:20]line [15:43:20]line [15:43:20]written 0, free lines is 3184 [15:43:20]MH_Cut [15:43:20]Write to MH i2c: D1 01 00 3B 97 01 A4 [15:43:20]Write i2c OK [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: D1 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: D1 01 00 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: D1 01 00 3B 97 00 A3 [15:43:20]Write to MH i2c: 01 00 00 3C 97 D3 [15:43:20]Write i2c OK [15:43:20]MH_I2C_Read... [15:43:21]OFD Sender: No OFD packet to send [15:43:21]*** Cut start [15:43:21]*** Purtial cut [15:43:21]*** Stage 1: CUTSNS_PIN = 1 [15:43:23]Read from MH i2c: 01 [15:43:23]MH_I2C_Read... [15:43:23]*** Stop cut motor [15:43:24]*** Cut end [15:43:24]Read from MH i2c: 01 07 00 [15:43:24]MH_I2C_Read... [15:43:24]Read from MH i2c: 01 07 00 3C 97 00 00 00 00 00 FF 0F E8 [15:43:24]process_action close_receipt done [15:43:24]requested_data is exist [15:43:24]produce_requested_data [15:43:24]requested_item fm.sn is exist - process it [15:43:24]wFMCommunicate request_size=4 [15:43:24]MH_SAM_APDU [15:43:24]CAPDU: 80 11 00 00 [15:43:24]Write to MH i2c: E2 08 00 3D 97 80 11 00 00 00 00 00 00 4E [15:43:24]Write i2c OK [15:43:24]MH_I2C_Read... [15:43:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:24]Read from MH i2c: E2 [15:43:24]MH_I2C_Read... [15:43:24]Read from MH i2c: E2 17 00 [15:43:24]MH_I2C_Read... [15:43:24]Read from MH i2c: E2 17 00 3D 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 9B [15:43:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:43:24]wFMCommunicate OK [15:43:24]requested_item fd.num is exist - process it [15:43:24]SAM_PROTO_GetFieldsCounters [15:43:24]wFMCommunicate request_size=4 [15:43:24]MH_SAM_APDU [15:43:24]CAPDU: 80 13 00 00 [15:43:24]Write to MH i2c: E2 08 00 3E 97 80 13 00 00 00 00 00 00 51 [15:43:24]Write i2c OK [15:43:24]MH_I2C_Read... [15:43:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:24]Read from MH i2c: E2 [15:43:24]MH_I2C_Read... [15:43:24]Read from MH i2c: E2 62 00 [15:43:24]MH_I2C_Read... [15:43:24]Read from MH i2c: E2 62 00 3E 97 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 96 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 7C [15:43: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 96 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:43:24]wFMCommunicate OK [15:43:24]SAM_PROTO_GetFieldsCounters done [15:43:24]requested_item shift.num is exist - process it [15:43:24]requested_item shift.opened is exist - process it [15:43:24]req_shift_opened [15:43:24]FM_GetShiftState [15:43:24]SAM_PROTO_GetShiftState [15:43:24]wFMCommunicate request_size=4 [15:43:24]MH_SAM_APDU [15:43:24]CAPDU: 80 13 01 00 [15:43:24]Write to MH i2c: E2 08 00 3F 97 80 13 01 00 00 00 00 00 53 [15:43:24]Write i2c OK [15:43:24]MH_I2C_Read... [15:43:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:24]Read from MH i2c: E2 [15:43:24]MH_I2C_Read... [15:43:24]Read from MH i2c: E2 0E 00 [15:43:24]MH_I2C_Read... [15:43:24]Read from MH i2c: E2 0E 00 3F 97 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 90 [15:43:24]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:43:24]wFMCommunicate OK [15:43:24]SAM_PROTO_GetShiftState done [15:43:24]FM_GetShiftState done [15:43:24]req_shift_opened done [15:43:24]requested_item shift.open_date is exist - process it [15:43:24]req_shift_open_date [15:43:24]req_shift_open_date done [15:43:24]produce_requested_data done [15:43:24]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260758,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [15:43:24]process_action_free close_receipt [15:43:24]json_value_free [15:43:24]json_value_free done [15:43:24]process_json_proto returns [15:43:24]Send response to host [15:43:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260758,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [15:43:24]free response buf [15:43:24]execute_script done [15:43:24]execute_script returns [15:43:24]free content buf [15:43:24]Sock 9.Close socket [15:43:24]Sock 9.Thread stoped [15:43:26]OFD Sender: No OFD packet to send [15:43:31]OFD Sender: No OFD packet to send [15:43:36]OFD Sender: No OFD packet to send [15:43:41]OFD Sender: No OFD packet to send [15:43:46]OFD Sender: No OFD packet to send [15:43:51]OFD Sender: No OFD packet to send [15:43:56]OFD Sender: No OFD packet to send [15:44:01]OFD Sender: No OFD packet to send [15:44:06]OFD Sender: No OFD packet to send [15:44:11]OFD Sender: No OFD packet to send [15:44:16]OFD Sender: No OFD packet to send [15:44:21]OFD Sender: No OFD packet to send [15:44:26]OFD Sender: No OFD packet to send [15:44:31]OFD Sender: No OFD packet to send [15:44:36]OFD Sender: No OFD packet to send [15:44:41]OFD Sender: No OFD packet to send [15:44:46]OFD Sender: No OFD packet to send [15:44:51]OFD Sender: No OFD packet to send [15:44:53]accept exits with 10 [15:44:53]New connection [15:44:53]New thread 3066617188 created [15:44:53]Thread 3066473828 joined [15:44:53]Waiting for new connection... [15:44:53] Sock 10.Parse request [15:44:53]Sock 10.Check first char [15:44:53]Sock 10.First char is OK [15:44:53]request: POST /json_proto HTTP/1.0 [15:44:53]Method: POST [15:44:53]URL: /json_proto [15:44:53]Method is POST - this is cgi request [15:44:53]url: /json_proto [15:44:53]query_string will be loaded in cgi processing [15:44:53]execute_cgi json_proto POST (null) [15:44:53]execute_cgi path=json_proto method=POST [15:44:53]POST find Content-Length [15:44:53]Host: 172.17.55.133:8080 [15:44:53]Content-Length: 684 [15:44:53]Content-Type: application/json [15:44:53] [15:44:53]POST finish read [15:44:53]Found Content-Length = 684 [15:44:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "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" ] } } [15:44:53]execute_script... [15:44: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)1036311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "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" ] } } [15:44:53]POST & json_proto [15:44:53]process_json_proto [15:44:53]json parsed OK: [15:44:53]protocol is kg_v1.0 [15:44:53]action value=close_receipt [15:44:53]process_action close_receipt [15:44:53]cmd_close_receipt [15:44:53]MH_GetDate [15:44:53]Write to MH i2c: F0 00 00 40 97 C6 [15:44:53]Write i2c OK [15:44:53]MH_I2C_Read... [15:44:53]Read from MH i2c: F0 [15:44:53]MH_I2C_Read... [15:44:53]Read from MH i2c: F0 09 00 [15:44:53]MH_I2C_Read... [15:44:53]Read from MH i2c: F0 09 00 40 97 00 FA 16 C2 66 34 48 D8 65 C0 [15:44:53]GetLastDocTimeStamp 1723995803 [15:44:53]current date 1723995898 [15:44:53]FM_GetShiftState [15:44:53]SAM_PROTO_GetShiftState [15:44:53]wFMCommunicate request_size=4 [15:44:53]MH_SAM_APDU [15:44:53]CAPDU: 80 13 01 00 [15:44:53]Write to MH i2c: E2 08 00 41 97 80 13 01 00 00 00 00 00 55 [15:44:53]Write i2c OK [15:44:53]MH_I2C_Read... [15:44:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:53]Read from MH i2c: E2 [15:44:53]MH_I2C_Read... [15:44:53]Read from MH i2c: E2 0E 00 [15:44:53]MH_I2C_Read... [15:44:53]Read from MH i2c: E2 0E 00 41 97 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 92 [15:44:53]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:44:53]wFMCommunicate OK [15:44:53]SAM_PROTO_GetShiftState done [15:44:53]FM_GetShiftState done [15:44:53]opened in 1723940556 [15:44:53]opened+sec_in_day 1724026956 [15:44:53]quantity*price = 80010 [15:44:53]sum+1 = 80011 [15:44:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 317 18.08.2024 15:44 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260759 ФПД: 164522591052760 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154458&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260759&fm=164522591052760&tin=02508201610067®Number=0000000000091865&sum=80000 [15:44:54]StoreToDocumentArchive [15:44:54]shift 449 fd 260759 [15:44:54]save to /storage/0449/doc_00260759 [15:44:54]save last doc name /storage/0449/doc_00260759 to /storage/kkm_last_doc_name [15:44:54]save OK [15:44:54]Clear old archive folders... [15:44:54]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:44:54]tlvbuf is 004A4450 [15:44:54]SAM_PROTO_ClearQueue [15:44:54]wFMCommunicate request_size=4 [15:44:54]MH_SAM_APDU [15:44:54]CAPDU: 80 09 00 00 [15:44:54]Write to MH i2c: E2 08 00 4E 97 80 09 00 00 00 00 00 00 57 [15:44:54]Write i2c OK [15:44:54]MH_I2C_Read... [15:44:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:54]Read from MH i2c: E2 [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: E2 03 00 [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: E2 03 00 4E 97 00 90 00 59 [15:44:54]RAPDU: 90 00 [15:44:54]wFMCommunicate OK [15:44:54]SAM_PROTO_ClearQueue done [15:44:54]KKMCreateOFDPacket [15:44:54]OFDProtocolAddRootSTLVToBuf [15:44:54]FM_MakeSignedData [15:44:54]FM_MakeSignedData [15:44:54]SAM_PROTO_SignData [15:44:54]wFMCommunicate request_size=4 [15:44:54]MH_SAM_APDU [15:44:54]CAPDU: 80 0D 01 02 [15:44:54]Write to MH i2c: E2 08 00 4F 97 80 0D 01 02 00 00 00 00 5F [15:44:54]Write i2c OK [15:44:54]MH_I2C_Read... [15:44:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:54]Read from MH i2c: E2 [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: E2 03 00 [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: E2 03 00 4F 97 00 90 00 5A [15:44:54]RAPDU: 90 00 [15:44:54]wFMCommunicate OK [15:44:54]wFMCommunicate request_size=255 [15:44:54]MH_SAM_APDU [15:44:54]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 FA 16 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 97 FA 03 00 35 04 06 00 [15:44:54]Write to MH i2c: E2 02 01 50 97 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 FA 16 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 97 FA 03 00 35 04 06 00 00 00 C8 [15:44:54]Write i2c OK [15:44:54]MH_I2C_Read... [15:44:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:54]Read from MH i2c: E2 [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: E2 03 00 [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: E2 03 00 50 97 00 90 00 5B [15:44:54]RAPDU: 90 00 [15:44:54]wFMCommunicate OK [15:44:54]wFMCommunicate request_size=11 [15:44:54]MH_SAM_APDU [15:44:54]CAPDU: 80 0D 02 02 06 95 A1 E6 98 E3 D8 [15:44:54]Write to MH i2c: E2 0E 00 51 97 80 0D 02 02 06 00 95 A1 E6 98 E3 D8 00 00 DD [15:44:54]Write i2c OK [15:44:54]MH_I2C_Read... [15:44:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:54]Read from MH i2c: E2 [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: E2 03 00 [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: E2 03 00 51 97 00 90 00 5C [15:44:54]RAPDU: 90 00 [15:44:54]wFMCommunicate OK [15:44:54]wFMCommunicate request_size=4 [15:44:54]MH_SAM_APDU [15:44:54]CAPDU: 80 0D 03 02 [15:44:54]Write to MH i2c: E2 08 00 52 97 80 0D 03 02 00 00 00 00 64 [15:44:54]Write i2c OK [15:44:54]MH_I2C_Read... [15:44:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:54]Read from MH i2c: E2 [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: E2 0B 00 [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: E2 0B 00 52 97 00 D2 FF 3D B4 DC B5 B6 72 90 00 E0 [15:44:54]RAPDU: D2 FF 3D B4 DC B5 B6 72 90 00 [15:44:54]wFMCommunicate OK [15:44:54]SAM_PROTO_SignData done [15:44:54]FM_MakeSignedData done [15:44:54]CreateOFDProtocolMessage [15:44:54]wFMCommunicate request_size=4 [15:44:54]MH_SAM_APDU [15:44:54]CAPDU: 80 11 00 00 [15:44:54]Write to MH i2c: E2 08 00 53 97 80 11 00 00 00 00 00 00 64 [15:44:54]Write i2c OK [15:44:54]MH_I2C_Read... [15:44:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:54]Read from MH i2c: E2 [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: E2 17 00 [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: E2 17 00 53 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B1 [15:44:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:44:54]wFMCommunicate OK [15:44:54]CreateOFDProtocolMessage done [15:44:54]OFDSenderStorePacket 260759 [15:44:54]StoreOFDPacket docnum=260759 [15:44:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 73 2A 08 01 EC AA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 FA 16 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 97 FA 03 00 35 04 06 00 95 A1 E6 98 E3 D8 D2 FF 3D B4 DC B5 B6 72 [15:44:54]CheckFolder [15:44:54]dirname=/storage/ofd_packets [15:44:54]CheckFolder done [15:44:54]ProducePacketName [15:44:54]name=ofd_packets/00260759 [15:44:54]NVStorageSaveData ofd_packets/00260759 [15:44:54]File name is /storage/ofd_packets/00260759 [15:44:54]Write 302 bytes [15:44:54]NVStorageSaveData done [15:44:54]OFDSenderStorePacket done [15:44:54]KKMCreateOFDPacket done [15:44:54]NVStorageSaveData kkm_last_timestamp [15:44:54]File name is /storage/kkm_last_timestamp [15:44:54]Write 4 bytes [15:44:54]NVStorageSaveData done [15:44:54]ExternCall_PrintAddStr [15:44:54]wPrintStart [15:44:54]Write to MH i2c: 01 00 00 54 97 EB [15:44:54]OFD Sender: Processing packet 260759 [packets to send 192, broken 191] [15:44:54]ProducePacketName [15:44:54]name=ofd_packets/00260759 [15:44:54]OFD Sender: To server: pG, [15:44:54]CommunicateWithHost lk.salyk.kg:30040 [15:44:54]ConnectInit lk.salyk.kg [15:44:54]Write i2c OK [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: 01 [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: 01 07 00 [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: 01 07 00 54 97 00 00 00 00 00 FF 0F 00 [15:44:54]RasterBufferAndPrint [15:44:54]line Счет N : (1)1036311 [15:44:54]line ИНН: 02508201610067 [15:44:54]line Контрольно-Кассовый Чек [15:44:54]line ПРОДАЖА [15:44:54]line ТРК (МРК, ГНК) : 43 [15:44:54]line Товар: 2710194210 [15:44:54]line ДТ(л)-К-4 [15:44:54]line 10.500 * 76.20 [15:44:54]line = 800.10 [15:44:54]line НДС 12% НСП 1% [15:44:54]line > о реализуемом товаре [15:44:54]line ОКРУГЛЕНИЕ: -0.10 [15:44:54]line ИТОГО: 800.00 [15:44:54]line Внесено: 800.00 [15:44:54]line СДАЧА: 0.00 [15:44:54]line НСП 1% : 7.08 [15:44:54]line НДС 12% : 84.97 [15:44:54]line Наличными: 800.00 [15:44:54]line Безнал.: 0.00 [15:44:54]line Место: АЗС № 94 "Партнер Нефть" [15:44:54]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [15:44:54]line СНО: Общий режим [15:44:54]line Чек 317 18.08.2024 15:44 [15:44:54]line Смена: 449 ФФД: 1.0 [15:44:54]line ЗНМ: 0300000099 [15:44:54]line РНМ: 0000000000091865 [15:44:54]line Версия ККМ: 001 [15:44:54]line ФМ: 0000000000871820 [15:44:54]line ФД: 260759 [15:44:54]line ФПД: 164522591052760 [15:44:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154458&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260759&fm=164522591052760&tin=02508201610067®Number=0000000000091865&sum=80000 [15:44:55]written 0, free lines is 4095 [15:44:55]Connected sock=9 [15:44: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 30 10 01 00 00 73 2A 08 01 EC AA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 FA 16 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 97 FA 03 00 35 04 06 00 95 A1 E6 98 E3 D8 D2 FF 3D B4 DC B5 B6 72 [15:44: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 30 4F 00 00 00 6D 8B 47 00 6C 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 97 FA 03 00 F4 03 04 00 4F C0 C1 66 B6 04 01 00 00 7B 1A C5 04 DC 9A 27 30 [15:44:55]CommunicateWithHost err = 0 [15:44:55]CheckOFDResponse [15:44:55]1017 (14) - 77093643461234 [15:44:55]1041 (16) - 0000000000871820 [15:44:55]1040 (4) - 260759 [15:44:55]1012 (4) - 18.08.2024 09:35 [15:44:55]1206 (1) - 0 [15:44:55]OFD Sender: Remove packet 260759 [15:44:55]ProducePacketName [15:44:55]name=ofd_packets/00260759 [15:44:55]NVStorageDeleteData [15:44:55]Write to MH i2c: 01 00 00 7F 97 16 [15:44:55]Write i2c OK [15:44:55]MH_I2C_Read... [15:44:55]Read from MH i2c: 01 [15:44:55]MH_I2C_Read... [15:44:55]Read from MH i2c: 01 07 00 [15:44:55]MH_I2C_Read... [15:44:55]Read from MH i2c: 01 07 00 7F 97 00 00 00 00 00 72 0C 9B [15:44:55]RasterBufferAndPrint [15:44:55]line [15:44:55]line [15:44:55]line [15:44:55]line [15:44:55]line [15:44:55]written 0, free lines is 3188 [15:44:55]MH_Cut [15:44:55]Write to MH i2c: D1 01 00 86 97 01 EF [15:44:55]Write i2c OK [15:44:55]MH_I2C_Read... [15:44:55]Read from MH i2c: D1 [15:44:55]MH_I2C_Read... [15:44:55]Read from MH i2c: D1 01 00 [15:44:55]MH_I2C_Read... [15:44:55]Read from MH i2c: D1 01 00 86 97 00 EE [15:44:55]Write to MH i2c: 01 00 00 87 97 1E [15:44:55]Write i2c OK [15:44:55]MH_I2C_Read... [15:44:55]OFD Sender: No OFD packet to send [15:44:56]*** Cut start [15:44:56]*** Purtial cut [15:44:56]*** Stage 1: CUTSNS_PIN = 1 [15:44:58]Read from MH i2c: 01 [15:44:58]MH_I2C_Read... [15:44:58]*** Stop cut motor [15:44:58]*** Cut end [15:44:58]Read from MH i2c: 01 07 00 [15:44:58]MH_I2C_Read... [15:44:58]Read from MH i2c: 01 07 00 87 97 00 00 00 00 00 FF 0F 33 [15:44:58]process_action close_receipt done [15:44:58]requested_data is exist [15:44:58]produce_requested_data [15:44:58]requested_item fm.sn is exist - process it [15:44:58]wFMCommunicate request_size=4 [15:44:58]MH_SAM_APDU [15:44:58]CAPDU: 80 11 00 00 [15:44:58]Write to MH i2c: E2 08 00 88 97 80 11 00 00 00 00 00 00 99 [15:44:58]Write i2c OK [15:44:58]MH_I2C_Read... [15:44:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:58]Read from MH i2c: E2 [15:44:58]MH_I2C_Read... [15:44:58]Read from MH i2c: E2 17 00 [15:44:58]MH_I2C_Read... [15:44:58]Read from MH i2c: E2 17 00 88 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E6 [15:44:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:44:58]wFMCommunicate OK [15:44:58]requested_item fd.num is exist - process it [15:44:58]SAM_PROTO_GetFieldsCounters [15:44:58]wFMCommunicate request_size=4 [15:44:58]MH_SAM_APDU [15:44:58]CAPDU: 80 13 00 00 [15:44:58]Write to MH i2c: E2 08 00 89 97 80 13 00 00 00 00 00 00 9C [15:44:58]Write i2c OK [15:44:58]MH_I2C_Read... [15:44:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:58]Read from MH i2c: E2 [15:44:58]MH_I2C_Read... [15:44:58]Read from MH i2c: E2 62 00 [15:44:58]MH_I2C_Read... [15:44:58]Read from MH i2c: E2 62 00 89 97 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 97 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 CB [15:44: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 97 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:44:58]wFMCommunicate OK [15:44:58]SAM_PROTO_GetFieldsCounters done [15:44:58]requested_item shift.num is exist - process it [15:44:58]requested_item shift.opened is exist - process it [15:44:58]req_shift_opened [15:44:58]FM_GetShiftState [15:44:58]SAM_PROTO_GetShiftState [15:44:58]wFMCommunicate request_size=4 [15:44:58]MH_SAM_APDU [15:44:58]CAPDU: 80 13 01 00 [15:44:58]Write to MH i2c: E2 08 00 8A 97 80 13 01 00 00 00 00 00 9E [15:44:58]Write i2c OK [15:44:58]MH_I2C_Read... [15:44:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:58]Read from MH i2c: E2 [15:44:58]MH_I2C_Read... [15:44:58]Read from MH i2c: E2 0E 00 [15:44:58]MH_I2C_Read... [15:44:58]Read from MH i2c: E2 0E 00 8A 97 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 DB [15:44:58]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:44:58]wFMCommunicate OK [15:44:58]SAM_PROTO_GetShiftState done [15:44:58]FM_GetShiftState done [15:44:58]req_shift_opened done [15:44:58]requested_item shift.open_date is exist - process it [15:44:58]req_shift_open_date [15:44:58]req_shift_open_date done [15:44:58]produce_requested_data done [15:44:58]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260759,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [15:44:58]process_action_free close_receipt [15:44:58]json_value_free [15:44:58]json_value_free done [15:44:58]process_json_proto returns [15:44:58]Send response to host [15:44:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260759,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [15:44:58]free response buf [15:44:58]execute_script done [15:44:58]execute_script returns [15:44:58]free content buf [15:44:58]Sock 10.Close socket [15:44:58]Sock 10.Thread stoped [15:45:00]OFD Sender: No OFD packet to send [15:45:05]OFD Sender: No OFD packet to send [15:45:10]OFD Sender: No OFD packet to send [15:45:15]OFD Sender: No OFD packet to send [15:45:20]OFD Sender: No OFD packet to send [15:45:25]OFD Sender: No OFD packet to send [15:45:30]OFD Sender: No OFD packet to send [15:45:35]OFD Sender: No OFD packet to send [15:45:40]OFD Sender: No OFD packet to send [15:45:45]OFD Sender: No OFD packet to send [15:45:50]OFD Sender: No OFD packet to send [15:45:55]OFD Sender: No OFD packet to send [15:46:00]OFD Sender: No OFD packet to send [15:46:05]OFD Sender: No OFD packet to send [15:46:10]OFD Sender: No OFD packet to send [15:46:15]OFD Sender: No OFD packet to send [15:46:20]OFD Sender: No OFD packet to send [15:46:25]OFD Sender: No OFD packet to send [15:46:30]OFD Sender: No OFD packet to send [15:46:35]OFD Sender: No OFD packet to send [15:46:40]OFD Sender: No OFD packet to send [15:46:45]OFD Sender: No OFD packet to send [15:46:50]OFD Sender: No OFD packet to send [15:46:55]OFD Sender: No OFD packet to send [15:47:00]OFD Sender: No OFD packet to send [15:47:05]OFD Sender: No OFD packet to send [15:47:10]OFD Sender: No OFD packet to send [15:47:15]OFD Sender: No OFD packet to send [15:47:20]OFD Sender: No OFD packet to send [15:47:26]OFD Sender: No OFD packet to send [15:47:31]OFD Sender: No OFD packet to send [15:47:36]OFD Sender: No OFD packet to send [15:47:41]OFD Sender: No OFD packet to send [15:47:46]OFD Sender: No OFD packet to send [15:47:51]OFD Sender: No OFD packet to send [15:47:56]OFD Sender: No OFD packet to send [15:48:01]OFD Sender: No OFD packet to send [15:48:06]OFD Sender: No OFD packet to send [15:48:11]OFD Sender: No OFD packet to send [15:48:16]OFD Sender: No OFD packet to send [15:48:21]OFD Sender: No OFD packet to send [15:48:26]OFD Sender: No OFD packet to send [15:48:31]OFD Sender: No OFD packet to send [15:48:36]OFD Sender: No OFD packet to send [15:48:41]OFD Sender: No OFD packet to send [15:48:46]OFD Sender: No OFD packet to send [15:48:51]OFD Sender: No OFD packet to send [15:48:56]OFD Sender: No OFD packet to send [15:49:01]OFD Sender: No OFD packet to send [15:49:06]OFD Sender: No OFD packet to send [15:49:11]OFD Sender: No OFD packet to send [15:49:16]OFD Sender: No OFD packet to send [15:49:21]OFD Sender: No OFD packet to send [15:49:26]OFD Sender: No OFD packet to send [15:49:31]OFD Sender: No OFD packet to send [15:49:36]OFD Sender: No OFD packet to send [15:49:41]OFD Sender: No OFD packet to send [15:49:46]OFD Sender: No OFD packet to send [15:49:51]OFD Sender: No OFD packet to send [15:49:51]accept exits with 7 [15:49:51]New connection [15:49:51]New thread 3066473828 created [15:49:51]Thread 3066617188 joined [15:49:51]Waiting for new connection... [15:49:51] Sock 7.Parse request [15:49:51]Sock 7.Check first char [15:49:51]Sock 7.First char is OK [15:49:51]request: POST /json_proto HTTP/1.0 [15:49:51]Method: POST [15:49:51]URL: /json_proto [15:49:51]Method is POST - this is cgi request [15:49:51]url: /json_proto [15:49:51]query_string will be loaded in cgi processing [15:49:51]execute_cgi json_proto POST (null) [15:49:51]execute_cgi path=json_proto method=POST [15:49:51]POST find Content-Length [15:49:51]Host: 172.17.55.133:8080 [15:49:51]Content-Length: 683 [15:49:51]Content-Type: application/json [15:49:51] [15:49:51]POST finish read [15:49:51]Found Content-Length = 683 [15:49:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036312", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:51]execute_script... [15:49: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)1036312", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:51]POST & json_proto [15:49:51]process_json_proto [15:49:51]json parsed OK: [15:49:51]protocol is kg_v1.0 [15:49:51]action value=close_receipt [15:49:51]process_action close_receipt [15:49:51]cmd_close_receipt [15:49:51]MH_GetDate [15:49:51]Write to MH i2c: F0 00 00 8B 97 11 [15:49:51]Write i2c OK [15:49:51]MH_I2C_Read... [15:49:51]Read from MH i2c: F0 [15:49:51]MH_I2C_Read... [15:49:51]Read from MH i2c: F0 09 00 [15:49:51]MH_I2C_Read... [15:49:51]Read from MH i2c: F0 09 00 8B 97 00 25 18 C2 66 34 48 D8 65 38 [15:49:51]GetLastDocTimeStamp 1723995898 [15:49:51]current date 1723996197 [15:49:51]FM_GetShiftState [15:49:51]SAM_PROTO_GetShiftState [15:49:51]wFMCommunicate request_size=4 [15:49:51]MH_SAM_APDU [15:49:51]CAPDU: 80 13 01 00 [15:49:51]Write to MH i2c: E2 08 00 8C 97 80 13 01 00 00 00 00 00 A0 [15:49:51]Write i2c OK [15:49:51]MH_I2C_Read... [15:49:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:51]Read from MH i2c: E2 [15:49:51]MH_I2C_Read... [15:49:51]Read from MH i2c: E2 0E 00 [15:49:51]MH_I2C_Read... [15:49:51]Read from MH i2c: E2 0E 00 8C 97 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 DD [15:49:51]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:49:51]wFMCommunicate OK [15:49:51]SAM_PROTO_GetShiftState done [15:49:51]FM_GetShiftState done [15:49:51]opened in 1723940556 [15:49:51]opened+sec_in_day 1724026956 [15:49:51]quantity*price = 100021 [15:49:51]sum+1 = 100023 [15:49:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 318 18.08.2024 15:49 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260760 ФПД: 35537409992449 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154957&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260760&fm=35537409992449&tin=02508201610067®Number=0000000000091865&sum=100000 [15:49:52]StoreToDocumentArchive [15:49:52]shift 449 fd 260760 [15:49:52]save to /storage/0449/doc_00260760 [15:49:52]save last doc name /storage/0449/doc_00260760 to /storage/kkm_last_doc_name [15:49:52]save OK [15:49:52]Clear old archive folders... [15:49:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:49:52]tlvbuf is 00540690 [15:49:52]SAM_PROTO_ClearQueue [15:49:52]wFMCommunicate request_size=4 [15:49:52]MH_SAM_APDU [15:49:52]CAPDU: 80 09 00 00 [15:49:52]Write to MH i2c: E2 08 00 99 97 80 09 00 00 00 00 00 00 A2 [15:49:52]Write i2c OK [15:49:52]MH_I2C_Read... [15:49:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:49:52]Read from MH i2c: E2 [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: E2 03 00 [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: E2 03 00 99 97 00 90 00 A4 [15:49:52]RAPDU: 90 00 [15:49:52]wFMCommunicate OK [15:49:52]SAM_PROTO_ClearQueue done [15:49:52]KKMCreateOFDPacket [15:49:52]OFDProtocolAddRootSTLVToBuf [15:49:52]FM_MakeSignedData [15:49:52]FM_MakeSignedData [15:49:52]SAM_PROTO_SignData [15:49:52]wFMCommunicate request_size=4 [15:49:52]MH_SAM_APDU [15:49:52]CAPDU: 80 0D 01 02 [15:49:52]Write to MH i2c: E2 08 00 9A 97 80 0D 01 02 00 00 00 00 AA [15:49:52]Write i2c OK [15:49:52]MH_I2C_Read... [15:49:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:49:52]Read from MH i2c: E2 [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: E2 03 00 [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: E2 03 00 9A 97 00 90 00 A5 [15:49:52]RAPDU: 90 00 [15:49:52]wFMCommunicate OK [15:49:52]wFMCommunicate request_size=255 [15:49:52]MH_SAM_APDU [15:49: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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 25 18 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 98 FA 03 00 35 04 06 00 20 [15:49:52]Write to MH i2c: E2 02 01 9B 97 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 25 18 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 98 FA 03 00 35 04 06 00 20 00 00 6F [15:49:52]Write i2c OK [15:49:52]MH_I2C_Read... [15:49:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:53]Read from MH i2c: E2 [15:49:53]MH_I2C_Read... [15:49:53]Read from MH i2c: E2 03 00 [15:49:53]MH_I2C_Read... [15:49:53]Read from MH i2c: E2 03 00 9B 97 00 90 00 A6 [15:49:53]RAPDU: 90 00 [15:49:53]wFMCommunicate OK [15:49:53]wFMCommunicate request_size=10 [15:49:53]MH_SAM_APDU [15:49:53]CAPDU: 80 0D 02 02 05 52 32 B2 E7 01 [15:49:53]Write to MH i2c: E2 0D 00 9C 97 80 0D 02 02 05 00 52 32 B2 E7 01 00 00 D5 [15:49:53]Write i2c OK [15:49:53]MH_I2C_Read... [15:49:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:53]Read from MH i2c: E2 [15:49:53]MH_I2C_Read... [15:49:53]Read from MH i2c: E2 03 00 [15:49:53]MH_I2C_Read... [15:49:53]Read from MH i2c: E2 03 00 9C 97 00 90 00 A7 [15:49:53]RAPDU: 90 00 [15:49:53]wFMCommunicate OK [15:49:53]wFMCommunicate request_size=4 [15:49:53]MH_SAM_APDU [15:49:53]CAPDU: 80 0D 03 02 [15:49:53]Write to MH i2c: E2 08 00 9D 97 80 0D 03 02 00 00 00 00 AF [15:49:53]Write i2c OK [15:49:53]MH_I2C_Read... [15:49:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:49:53]Read from MH i2c: E2 [15:49:53]MH_I2C_Read... [15:49:53]Read from MH i2c: E2 0B 00 [15:49:53]MH_I2C_Read... [15:49:53]Read from MH i2c: E2 0B 00 9D 97 00 17 22 27 A8 E4 7E C3 5E 90 00 3B [15:49:53]RAPDU: 17 22 27 A8 E4 7E C3 5E 90 00 [15:49:53]wFMCommunicate OK [15:49:53]SAM_PROTO_SignData done [15:49:53]FM_MakeSignedData done [15:49:53]CreateOFDProtocolMessage [15:49:53]wFMCommunicate request_size=4 [15:49:53]MH_SAM_APDU [15:49:53]CAPDU: 80 11 00 00 [15:49:53]Write to MH i2c: E2 08 00 9E 97 80 11 00 00 00 00 00 00 AF [15:49:53]Write i2c OK [15:49:53]MH_I2C_Read... [15:49:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:53]Read from MH i2c: E2 [15:49:53]MH_I2C_Read... [15:49:53]Read from MH i2c: E2 17 00 [15:49:53]MH_I2C_Read... [15:49:53]Read from MH i2c: E2 17 00 9E 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 FC [15:49:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:49:53]wFMCommunicate OK [15:49:53]CreateOFDProtocolMessage done [15:49:53]OFDSenderStorePacket 260760 [15:49:53]StoreOFDPacket docnum=260760 [15:49:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 4D 19 07 01 A9 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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 25 18 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 98 FA 03 00 35 04 06 00 20 52 32 B2 E7 01 17 22 27 A8 E4 7E C3 5E [15:49:53]CheckFolder [15:49:53]dirname=/storage/ofd_packets [15:49:53]CheckFolder done [15:49:53]ProducePacketName [15:49:53]name=ofd_packets/00260760 [15:49:53]NVStorageSaveData ofd_packets/00260760 [15:49:53]File name is /storage/ofd_packets/00260760 [15:49:53]Write 301 bytes [15:49:53]NVStorageSaveData done [15:49:53]OFDSenderStorePacket done [15:49:53]KKMCreateOFDPacket done [15:49:53]NVStorageSaveData kkm_last_timestamp [15:49:53]File name is /storage/kkm_last_timestamp [15:49:53]Write 4 bytes [15:49:53]NVStorageSaveData done [15:49:53]ExternCall_PrintAddStr [15:49:53]wPrintStart [15:49:53]Write to MH i2c: 01 00 00 9F 97 36 [15:49:53]Write i2c OK [15:49:53]MH_I2C_Read... [15:49:53]Read from MH i2c: 01 [15:49:53]MH_I2C_Read... [15:49:53]Read from MH i2c: 01 07 00 [15:49:53]MH_I2C_Read... [15:49:53]Read from MH i2c: 01 07 00 9F 97 00 00 00 00 00 FF 0F 4B [15:49:53]RasterBufferAndPrint [15:49:53]line Счет N : (1)1036312 [15:49:53]line ИНН: 02508201610067 [15:49:53]line Контрольно-Кассовый Чек [15:49:53]line ПРОДАЖА [15:49:53]line ТРК (МРК, ГНК) : 23 [15:49:53]line Товар: 2710124500 [15:49:53]line Аи-95-К-5 [15:49:53]line 13.480 * 74.20 [15:49:53]line = 1000.22 [15:49:53]line НДС 12% НСП 1% [15:49:53]line > о реализуемом товаре [15:49:53]line ОКРУГЛЕНИЕ: -0.22 [15:49:53]line ИТОГО: 1000.00 [15:49:53]line Внесено: 1000.00 [15:49:53]line СДАЧА: 0.00 [15:49:53]line НСП 1% : 8.85 [15:49:53]line НДС 12% : 106.22 [15:49:53]line Наличными: 1000.00 [15:49:53]line Безнал.: 0.00 [15:49:53]line Место: АЗС № 94 "Партнер Нефть" [15:49:53]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [15:49:53]line СНО: Общий режим [15:49:53]line Чек 318 18.08.2024 15:49 [15:49:53]line Смена: 449 ФФД: 1.0 [15:49:53]line ЗНМ: 0300000099 [15:49:53]line РНМ: 0000000000091865 [15:49:53]line Версия ККМ: 001 [15:49:53]line ФМ: 0000000000871820 [15:49:53]line ФД: 260760 [15:49:53]line ФПД: 35537409992449 [15:49:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T154957&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260760&fm=35537409992449&tin=02508201610067®Number=0000000000091865&sum=100000 [15:49:53]OFD Sender: Processing packet 260760 [packets to send 192, broken 191] [15:49:53]ProducePacketName [15:49:53]name=ofd_packets/00260760 [15:49:53]OFD Sender: To server: pG, [15:49:53]CommunicateWithHost lk.salyk.kg:30040 [15:49:53]ConnectInit lk.salyk.kg [15:49:53]written 0, free lines is 4095 [15:49:53]Connected sock=10 [15:49: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 30 0F 01 00 00 4D 19 07 01 A9 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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 25 18 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 98 FA 03 00 35 04 06 00 20 52 32 B2 E7 01 17 22 27 A8 E4 7E C3 5E [15:49: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 30 4F 00 00 00 0B B4 47 00 1A 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 30 10 04 04 00 98 FA 03 00 F4 03 04 00 79 C1 C1 66 B6 04 01 00 00 02 97 8D D7 AF E8 2F D0 [15:49:53]CommunicateWithHost err = 0 [15:49:53]CheckOFDResponse [15:49:53]1017 (14) - 77093643461234 [15:49:53]1041 (16) - 0000000000871820 [15:49:53]1040 (4) - 260760 [15:49:53]1012 (4) - 18.08.2024 09:40 [15:49:53]1206 (1) - 0 [15:49:53]OFD Sender: Remove packet 260760 [15:49:53]ProducePacketName [15:49:53]name=ofd_packets/00260760 [15:49:53]NVStorageDeleteData [15:49:54]Write to MH i2c: 01 00 00 CA 97 61 [15:49:54]Write i2c OK [15:49:54]MH_I2C_Read... [15:49:54]Read from MH i2c: 01 [15:49:54]MH_I2C_Read... [15:49:54]Read from MH i2c: 01 07 00 [15:49:54]MH_I2C_Read... [15:49:54]Read from MH i2c: 01 07 00 CA 97 00 00 00 00 00 74 0C E8 [15:49:54]RasterBufferAndPrint [15:49:54]line [15:49:54]line [15:49:54]line [15:49:54]line [15:49:54]line [15:49:54]written 0, free lines is 3191 [15:49:54]MH_Cut [15:49:54]Write to MH i2c: D1 01 00 D1 97 01 3A [15:49:54]Write i2c OK [15:49:54]MH_I2C_Read... [15:49:54]Read from MH i2c: D1 [15:49:54]MH_I2C_Read... [15:49:54]Read from MH i2c: D1 01 00 [15:49:54]MH_I2C_Read... [15:49:54]Read from MH i2c: D1 01 00 D1 97 00 39 [15:49:54]Write to MH i2c: 01 00 00 D2 97 69 [15:49:54]Write i2c OK [15:49:54]MH_I2C_Read... [15:49:54]OFD Sender: No OFD packet to send [15:49:55]*** Cut start [15:49:55]*** Purtial cut [15:49:55]*** Stage 1: CUTSNS_PIN = 1 [15:49:57]Read from MH i2c: 01 [15:49:57]MH_I2C_Read... [15:49:57]*** Stop cut motor [15:49:57]*** Cut end [15:49:57]Read from MH i2c: 01 07 00 [15:49:57]MH_I2C_Read... [15:49:57]Read from MH i2c: 01 07 00 D2 97 00 00 00 00 00 FF 0F 7E [15:49:57]process_action close_receipt done [15:49:57]requested_data is exist [15:49:57]produce_requested_data [15:49:57]requested_item fm.sn is exist - process it [15:49:57]wFMCommunicate request_size=4 [15:49:57]MH_SAM_APDU [15:49:57]CAPDU: 80 11 00 00 [15:49:57]Write to MH i2c: E2 08 00 D3 97 80 11 00 00 00 00 00 00 E4 [15:49:57]Write i2c OK [15:49:57]MH_I2C_Read... [15:49:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:57]Read from MH i2c: E2 [15:49:57]MH_I2C_Read... [15:49:57]Read from MH i2c: E2 17 00 [15:49:57]MH_I2C_Read... [15:49:57]Read from MH i2c: E2 17 00 D3 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 31 [15:49:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:49:57]wFMCommunicate OK [15:49:57]requested_item fd.num is exist - process it [15:49:57]SAM_PROTO_GetFieldsCounters [15:49:57]wFMCommunicate request_size=4 [15:49:57]MH_SAM_APDU [15:49:57]CAPDU: 80 13 00 00 [15:49:57]Write to MH i2c: E2 08 00 D4 97 80 13 00 00 00 00 00 00 E7 [15:49:57]Write i2c OK [15:49:57]MH_I2C_Read... [15:49:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49:57]Read from MH i2c: E2 [15:49:57]MH_I2C_Read... [15:49:57]Read from MH i2c: E2 62 00 [15:49:57]MH_I2C_Read... [15:49:57]Read from MH i2c: E2 62 00 D4 97 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 98 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 1A [15:49: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 98 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:49:57]wFMCommunicate OK [15:49:57]SAM_PROTO_GetFieldsCounters done [15:49:57]requested_item shift.num is exist - process it [15:49:57]requested_item shift.opened is exist - process it [15:49:57]req_shift_opened [15:49:57]FM_GetShiftState [15:49:57]SAM_PROTO_GetShiftState [15:49:57]wFMCommunicate request_size=4 [15:49:57]MH_SAM_APDU [15:49:57]CAPDU: 80 13 01 00 [15:49:57]Write to MH i2c: E2 08 00 D5 97 80 13 01 00 00 00 00 00 E9 [15:49:57]Write i2c OK [15:49:57]MH_I2C_Read... [15:49:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:57]Read from MH i2c: E2 [15:49:57]MH_I2C_Read... [15:49:57]Read from MH i2c: E2 0E 00 [15:49:57]MH_I2C_Read... [15:49:57]Read from MH i2c: E2 0E 00 D5 97 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 26 [15:49:57]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:49:57]wFMCommunicate OK [15:49:57]SAM_PROTO_GetShiftState done [15:49:57]FM_GetShiftState done [15:49:57]req_shift_opened done [15:49:57]requested_item shift.open_date is exist - process it [15:49:57]req_shift_open_date [15:49:57]req_shift_open_date done [15:49:57]produce_requested_data done [15:49:57]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260760,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [15:49:57]process_action_free close_receipt [15:49:57]json_value_free [15:49:57]json_value_free done [15:49:57]process_json_proto returns [15:49:57]Send response to host [15:49:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260760,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [15:49:57]free response buf [15:49:57]execute_script done [15:49:57]execute_script returns [15:49:57]free content buf [15:49:57]Sock 7.Close socket [15:49:57]Sock 7.Thread stoped [15:49:59]OFD Sender: No OFD packet to send [15:50:04]OFD Sender: No OFD packet to send [15:50:09]OFD Sender: No OFD packet to send [15:50:14]OFD Sender: No OFD packet to send [15:50:19]OFD Sender: No OFD packet to send [15:50:24]OFD Sender: No OFD packet to send [15:50:29]OFD Sender: No OFD packet to send [15:50:32]accept exits with 9 [15:50:32]New connection [15:50:32]New thread 3066617188 created [15:50:32]Thread 3066473828 joined [15:50:32]Waiting for new connection... [15:50:32] Sock 9.Parse request [15:50:32]Sock 9.Check first char [15:50:32]Sock 9.First char is OK [15:50:32]request: POST /json_proto HTTP/1.0 [15:50:32]Method: POST [15:50:32]URL: /json_proto [15:50:32]Method is POST - this is cgi request [15:50:32]url: /json_proto [15:50:32]query_string will be loaded in cgi processing [15:50:32]execute_cgi json_proto POST (null) [15:50:32]execute_cgi path=json_proto method=POST [15:50:32]POST find Content-Length [15:50:32]Host: 172.17.55.133:8080 [15:50:32]Content-Length: 678 [15:50:32]Content-Type: application/json [15:50:32] [15:50:32]POST finish read [15:50:32]Found Content-Length = 678 [15:50:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:32]execute_script... [15:50: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)1036313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:32]POST & json_proto [15:50:32]process_json_proto [15:50:32]json parsed OK: [15:50:32]protocol is kg_v1.0 [15:50:32]action value=close_receipt [15:50:32]process_action close_receipt [15:50:32]cmd_close_receipt [15:50:32]MH_GetDate [15:50:32]Write to MH i2c: F0 00 00 D6 97 5C [15:50:32]Write i2c OK [15:50:32]MH_I2C_Read... [15:50:32]Read from MH i2c: F0 [15:50:32]MH_I2C_Read... [15:50:32]Read from MH i2c: F0 09 00 [15:50:32]MH_I2C_Read... [15:50:32]Read from MH i2c: F0 09 00 D6 97 00 4D 18 C2 66 34 48 D8 65 AB [15:50:32]GetLastDocTimeStamp 1723996197 [15:50:32]current date 1723996237 [15:50:32]FM_GetShiftState [15:50:32]SAM_PROTO_GetShiftState [15:50:32]wFMCommunicate request_size=4 [15:50:32]MH_SAM_APDU [15:50:32]CAPDU: 80 13 01 00 [15:50:32]Write to MH i2c: E2 08 00 D7 97 80 13 01 00 00 00 00 00 EB [15:50:32]Write i2c OK [15:50:32]MH_I2C_Read... [15:50:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:32]Read from MH i2c: E2 [15:50:32]MH_I2C_Read... [15:50:32]Read from MH i2c: E2 0E 00 [15:50:32]MH_I2C_Read... [15:50:32]Read from MH i2c: E2 0E 00 D7 97 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 28 [15:50:32]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:50:32]wFMCommunicate OK [15:50:32]SAM_PROTO_GetShiftState done [15:50:32]FM_GetShiftState done [15:50:32]opened in 1723940556 [15:50:32]opened+sec_in_day 1724026956 [15:50:32]quantity*price = 50036 [15:50:32]sum+1 = 50037 [15:50:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 319 18.08.2024 15:50 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260761 ФПД: 35353401298382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T155037&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260761&fm=35353401298382&tin=02508201610067®Number=0000000000091865&sum=50000 [15:50:33]StoreToDocumentArchive [15:50:33]shift 449 fd 260761 [15:50:33]save to /storage/0449/doc_00260761 [15:50:33]save last doc name /storage/0449/doc_00260761 to /storage/kkm_last_doc_name [15:50:33]save OK [15:50:33]Clear old archive folders... [15:50:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:50:33]tlvbuf is 0057B240 [15:50:33]SAM_PROTO_ClearQueue [15:50:33]wFMCommunicate request_size=4 [15:50:33]MH_SAM_APDU [15:50:33]CAPDU: 80 09 00 00 [15:50:33]Write to MH i2c: E2 08 00 E4 97 80 09 00 00 00 00 00 00 ED [15:50:33]Write i2c OK [15:50:33]MH_I2C_Read... [15:50:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:50:33]Read from MH i2c: E2 [15:50:33]MH_I2C_Read... [15:50:33]Read from MH i2c: E2 03 00 [15:50:33]MH_I2C_Read... [15:50:33]Read from MH i2c: E2 03 00 E4 97 00 90 00 EF [15:50:33]RAPDU: 90 00 [15:50:33]wFMCommunicate OK [15:50:33]SAM_PROTO_ClearQueue done [15:50:33]KKMCreateOFDPacket [15:50:33]OFDProtocolAddRootSTLVToBuf [15:50:33]FM_MakeSignedData [15:50:33]FM_MakeSignedData [15:50:33]SAM_PROTO_SignData [15:50:33]wFMCommunicate request_size=4 [15:50:33]MH_SAM_APDU [15:50:33]CAPDU: 80 0D 01 02 [15:50:33]Write to MH i2c: E2 08 00 E5 97 80 0D 01 02 00 00 00 00 F5 [15:50:33]Write i2c OK [15:50:33]MH_I2C_Read... [15:50:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:50:33]Read from MH i2c: E2 [15:50:33]MH_I2C_Read... [15:50:33]Read from MH i2c: E2 03 00 [15:50:33]MH_I2C_Read... [15:50:33]Read from MH i2c: E2 03 00 E5 97 00 90 00 F0 [15:50:33]RAPDU: 90 00 [15:50:33]wFMCommunicate OK [15:50:33]wFMCommunicate request_size=255 [15:50:33]MH_SAM_APDU [15:50:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3F 01 00 00 F4 03 04 00 4D 18 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 99 FA 03 00 35 04 06 00 20 [15:50:33]Write to MH i2c: E2 02 01 E6 97 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3F 01 00 00 F4 03 04 00 4D 18 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 99 FA 03 00 35 04 06 00 20 00 00 B7 [15:50:33]Write i2c OK [15:50:33]MH_I2C_Read... [15:50:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:33]Read from MH i2c: E2 [15:50:33]MH_I2C_Read... [15:50:33]Read from MH i2c: E2 03 00 [15:50:33]MH_I2C_Read... [15:50:33]Read from MH i2c: E2 03 00 E6 97 00 90 00 F1 [15:50:33]RAPDU: 90 00 [15:50:33]wFMCommunicate OK [15:50:33]wFMCommunicate request_size=10 [15:50:33]MH_SAM_APDU [15:50:33]CAPDU: 80 0D 02 02 05 27 5A ED 0D CE [15:50:33]Write to MH i2c: E2 0D 00 E7 97 80 0D 02 02 05 00 27 5A ED 0D CE 00 00 4B [15:50:33]Write i2c OK [15:50:33]MH_I2C_Read... [15:50:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:33]Read from MH i2c: E2 [15:50:33]MH_I2C_Read... [15:50:33]Read from MH i2c: E2 03 00 [15:50:33]MH_I2C_Read... [15:50:33]Read from MH i2c: E2 03 00 E7 97 00 90 00 F2 [15:50:33]RAPDU: 90 00 [15:50:33]wFMCommunicate OK [15:50:33]wFMCommunicate request_size=4 [15:50:33]MH_SAM_APDU [15:50:33]CAPDU: 80 0D 03 02 [15:50:33]Write to MH i2c: E2 08 00 E8 97 80 0D 03 02 00 00 00 00 FA [15:50:33]Write i2c OK [15:50:33]MH_I2C_Read... [15:50:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:50:34]Read from MH i2c: E2 [15:50:34]MH_I2C_Read... [15:50:34]Read from MH i2c: E2 0B 00 [15:50:34]MH_I2C_Read... [15:50:34]Read from MH i2c: E2 0B 00 E8 97 00 26 51 66 B3 E5 28 9D F2 90 00 27 [15:50:34]RAPDU: 26 51 66 B3 E5 28 9D F2 90 00 [15:50:34]wFMCommunicate OK [15:50:34]SAM_PROTO_SignData done [15:50:34]FM_MakeSignedData done [15:50:34]CreateOFDProtocolMessage [15:50:34]wFMCommunicate request_size=4 [15:50:34]MH_SAM_APDU [15:50:34]CAPDU: 80 11 00 00 [15:50:34]Write to MH i2c: E2 08 00 E9 97 80 11 00 00 00 00 00 00 FA [15:50:34]Write i2c OK [15:50:34]MH_I2C_Read... [15:50:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:34]Read from MH i2c: E2 [15:50:34]MH_I2C_Read... [15:50:34]Read from MH i2c: E2 17 00 [15:50:34]MH_I2C_Read... [15:50:34]Read from MH i2c: E2 17 00 E9 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 47 [15:50:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:50:34]wFMCommunicate OK [15:50:34]CreateOFDProtocolMessage done [15:50:34]OFDSenderStorePacket 260761 [15:50:34]StoreOFDPacket docnum=260761 [15:50:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 7B 8F 07 01 A3 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3F 01 00 00 F4 03 04 00 4D 18 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 99 FA 03 00 35 04 06 00 20 27 5A ED 0D CE 26 51 66 B3 E5 28 9D F2 [15:50:34]CheckFolder [15:50:34]dirname=/storage/ofd_packets [15:50:34]CheckFolder done [15:50:34]ProducePacketName [15:50:34]name=ofd_packets/00260761 [15:50:34]NVStorageSaveData ofd_packets/00260761 [15:50:34]File name is /storage/ofd_packets/00260761 [15:50:34]Write 301 bytes [15:50:34]NVStorageSaveData done [15:50:34]OFDSenderStorePacket done [15:50:34]KKMCreateOFDPacket done [15:50:34]NVStorageSaveData kkm_last_timestamp [15:50:34]File name is /storage/kkm_last_timestamp [15:50:34]Write 4 bytes [15:50:34]NVStorageSaveData done [15:50:34]ExternCall_PrintAddStr [15:50:34]wPrintStart [15:50:34]Write to MH i2c: 01 00 00 EA 97 81 [15:50:34]Write i2c OK [15:50:34]MH_I2C_Read... [15:50:34]Read from MH i2c: 01 [15:50:34]MH_I2C_Read... [15:50:34]Read from MH i2c: 01 07 00 [15:50:34]MH_I2C_Read... [15:50:34]Read from MH i2c: 01 07 00 EA 97 00 00 00 00 00 FF 0F 96 [15:50:34]RasterBufferAndPrint [15:50:34]line Счет N : (1)1036313 [15:50:34]line ИНН: 02508201610067 [15:50:34]line Контрольно-Кассовый Чек [15:50:34]line ПРОДАЖА [15:50:34]line ТРК (МРК, ГНК) : 42 [15:50:34]line Товар: 2710124130 [15:50:34]line Аи-92-К-5 [15:50:34]line 7.380 * 67.80 [15:50:34]line = 500.36 [15:50:34]line НДС 12% НСП 1% [15:50:34]line > о реализуемом товаре [15:50:34]line ОКРУГЛЕНИЕ: -0.36 [15:50:34]line ИТОГО: 500.00 [15:50:34]line Внесено: 500.00 [15:50:34]line СДАЧА: 0.00 [15:50:34]line НСП 1% : 4.43 [15:50:34]line НДС 12% : 53.14 [15:50:34]line Наличными: 500.00 [15:50:34]line Безнал.: 0.00 [15:50:34]line Место: АЗС № 94 "Партнер Нефть" [15:50:34]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [15:50:34]line СНО: Общий режим [15:50:34]line Чек 319 18.08.2024 15:50 [15:50:34]line Смена: 449 ФФД: 1.0 [15:50:34]line ЗНМ: 0300000099 [15:50:34]line РНМ: 0000000000091865 [15:50:34]line Версия ККМ: 001 [15:50:34]line ФМ: 0000000000871820 [15:50:34]line ФД: 260761 [15:50:34]line ФПД: 35353401298382 [15:50:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T155037&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260761&fm=35353401298382&tin=02508201610067®Number=0000000000091865&sum=50000 [15:50:34]written 0, free lines is 4095 [15:50:34]OFD Sender: Processing packet 260761 [packets to send 192, broken 191] [15:50:34]ProducePacketName [15:50:34]name=ofd_packets/00260761 [15:50:34]OFD Sender: To server: pG, [15:50:34]CommunicateWithHost lk.salyk.kg:30040 [15:50:34]ConnectInit lk.salyk.kg [15:50:34]Connected sock=10 [15:50: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 30 0F 01 00 00 7B 8F 07 01 A3 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3F 01 00 00 F4 03 04 00 4D 18 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 99 FA 03 00 35 04 06 00 20 27 5A ED 0D CE 26 51 66 B3 E5 28 9D F2 [15:50: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 30 4F 00 00 00 5E 60 47 00 AB 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 30 10 04 04 00 99 FA 03 00 F4 03 04 00 A2 C1 C1 66 B6 04 01 00 00 66 9B EC F2 58 C2 1A 89 [15:50:34]CommunicateWithHost err = 0 [15:50:34]CheckOFDResponse [15:50:34]1017 (14) - 77093643461234 [15:50:34]1041 (16) - 0000000000871820 [15:50:34]1040 (4) - 260761 [15:50:34]1012 (4) - 18.08.2024 09:40 [15:50:34]1206 (1) - 0 [15:50:34]OFD Sender: Remove packet 260761 [15:50:34]ProducePacketName [15:50:34]name=ofd_packets/00260761 [15:50:34]NVStorageDeleteData [15:50:34]Write to MH i2c: 01 00 00 15 98 AD [15:50:34]Write i2c OK [15:50:34]MH_I2C_Read... [15:50:34]Read from MH i2c: 01 [15:50:34]MH_I2C_Read... [15:50:34]Read from MH i2c: 01 07 00 [15:50:34]MH_I2C_Read... [15:50:34]Read from MH i2c: 01 07 00 15 98 00 00 00 00 00 69 0C 29 [15:50:34]RasterBufferAndPrint [15:50:34]line [15:50:34]line [15:50:34]line [15:50:34]line [15:50:34]line [15:50:34]written 0, free lines is 3181 [15:50:34]MH_Cut [15:50:34]Write to MH i2c: D1 01 00 1C 98 01 86 [15:50:34]Write i2c OK [15:50:34]MH_I2C_Read... [15:50:34]Read from MH i2c: D1 [15:50:34]MH_I2C_Read... [15:50:34]Read from MH i2c: D1 01 00 [15:50:34]MH_I2C_Read... [15:50:34]Read from MH i2c: D1 01 00 1C 98 00 85 [15:50:34]Write to MH i2c: 01 00 00 1D 98 B5 [15:50:34]Write i2c OK [15:50:34]MH_I2C_Read... [15:50:34]OFD Sender: No OFD packet to send [15:50:35]*** Cut start [15:50:35]*** Purtial cut [15:50:35]*** Stage 1: CUTSNS_PIN = 1 [15:50:37]Read from MH i2c: 01 [15:50:37]MH_I2C_Read... [15:50:37]*** Stop cut motor [15:50:37]*** Cut end [15:50:37]Read from MH i2c: 01 07 00 [15:50:37]MH_I2C_Read... [15:50:37]Read from MH i2c: 01 07 00 1D 98 00 00 00 00 00 FF 0F CA [15:50:37]process_action close_receipt done [15:50:37]requested_data is exist [15:50:37]produce_requested_data [15:50:37]requested_item fm.sn is exist - process it [15:50:37]wFMCommunicate request_size=4 [15:50:37]MH_SAM_APDU [15:50:37]CAPDU: 80 11 00 00 [15:50:37]Write to MH i2c: E2 08 00 1E 98 80 11 00 00 00 00 00 00 30 [15:50:37]Write i2c OK [15:50:37]MH_I2C_Read... [15:50:37]Read from MH i2c: E2 [15:50:37]MH_I2C_Read... [15:50:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:37]Read from MH i2c: E2 17 00 [15:50:37]MH_I2C_Read... [15:50:37]Read from MH i2c: E2 17 00 1E 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 7D [15:50:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:50:37]wFMCommunicate OK [15:50:37]requested_item fd.num is exist - process it [15:50:37]SAM_PROTO_GetFieldsCounters [15:50:37]wFMCommunicate request_size=4 [15:50:37]MH_SAM_APDU [15:50:37]CAPDU: 80 13 00 00 [15:50:37]Write to MH i2c: E2 08 00 1F 98 80 13 00 00 00 00 00 00 33 [15:50:37]Write i2c OK [15:50:37]MH_I2C_Read... [15:50:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:50:37]Read from MH i2c: E2 [15:50:37]MH_I2C_Read... [15:50:37]Read from MH i2c: E2 62 00 [15:50:37]MH_I2C_Read... [15:50:37]Read from MH i2c: E2 62 00 1F 98 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 99 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 6A [15:50: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 99 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:50:37]wFMCommunicate OK [15:50:37]SAM_PROTO_GetFieldsCounters done [15:50:37]requested_item shift.num is exist - process it [15:50:37]requested_item shift.opened is exist - process it [15:50:37]req_shift_opened [15:50:37]FM_GetShiftState [15:50:37]SAM_PROTO_GetShiftState [15:50:37]wFMCommunicate request_size=4 [15:50:37]MH_SAM_APDU [15:50:37]CAPDU: 80 13 01 00 [15:50:37]Write to MH i2c: E2 08 00 20 98 80 13 01 00 00 00 00 00 35 [15:50:37]Write i2c OK [15:50:37]MH_I2C_Read... [15:50:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:37]Read from MH i2c: E2 [15:50:37]MH_I2C_Read... [15:50:37]Read from MH i2c: E2 0E 00 [15:50:37]MH_I2C_Read... [15:50:37]Read from MH i2c: E2 0E 00 20 98 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 72 [15:50:37]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:50:37]wFMCommunicate OK [15:50:37]SAM_PROTO_GetShiftState done [15:50:37]FM_GetShiftState done [15:50:37]req_shift_opened done [15:50:37]requested_item shift.open_date is exist - process it [15:50:37]req_shift_open_date [15:50:37]req_shift_open_date done [15:50:37]produce_requested_data done [15:50:37]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260761,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [15:50:37]process_action_free close_receipt [15:50:37]json_value_free [15:50:37]json_value_free done [15:50:37]process_json_proto returns [15:50:37]Send response to host [15:50:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260761,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [15:50:37]free response buf [15:50:37]execute_script done [15:50:37]execute_script returns [15:50:37]free content buf [15:50:37]Sock 9.Close socket [15:50:37]Sock 9.Thread stoped [15:50:39]OFD Sender: No OFD packet to send [15:50:44]OFD Sender: No OFD packet to send [15:50:49]OFD Sender: No OFD packet to send [15:50:54]OFD Sender: No OFD packet to send [15:50:59]OFD Sender: No OFD packet to send [15:51:05]OFD Sender: No OFD packet to send [15:51:10]OFD Sender: No OFD packet to send [15:51:15]OFD Sender: No OFD packet to send [15:51:20]OFD Sender: No OFD packet to send [15:51:25]OFD Sender: No OFD packet to send [15:51:30]OFD Sender: No OFD packet to send [15:51:35]OFD Sender: No OFD packet to send [15:51:40]OFD Sender: No OFD packet to send [15:51:45]OFD Sender: No OFD packet to send [15:51:50]OFD Sender: No OFD packet to send [15:51:55]OFD Sender: No OFD packet to send [15:52:00]OFD Sender: No OFD packet to send [15:52:05]OFD Sender: No OFD packet to send [15:52:10]OFD Sender: No OFD packet to send [15:52:15]OFD Sender: No OFD packet to send [15:52:20]OFD Sender: No OFD packet to send [15:52:25]OFD Sender: No OFD packet to send [15:52:30]OFD Sender: No OFD packet to send [15:52:35]OFD Sender: No OFD packet to send [15:52:40]OFD Sender: No OFD packet to send [15:52:45]OFD Sender: No OFD packet to send [15:52:50]OFD Sender: No OFD packet to send [15:52:53]accept exits with 7 [15:52:53]New connection [15:52:53]New thread 3066473828 created [15:52:53]Thread 3066617188 joined [15:52:53]Waiting for new connection... [15:52:53] Sock 7.Parse request [15:52:53]Sock 7.Check first char [15:52:53]Sock 7.First char is OK [15:52:53]request: POST /json_proto HTTP/1.0 [15:52:53]Method: POST [15:52:53]URL: /json_proto [15:52:53]Method is POST - this is cgi request [15:52:53]url: /json_proto [15:52:53]query_string will be loaded in cgi processing [15:52:53]execute_cgi json_proto POST (null) [15:52:53]execute_cgi path=json_proto method=POST [15:52:53]POST find Content-Length [15:52:53]Host: 172.17.55.133:8080 [15:52:53]Content-Length: 678 [15:52:53]Content-Type: application/json [15:52:53] [15:52:53]POST finish read [15:52:53]Found Content-Length = 678 [15:52:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:53]execute_script... [15:52: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)1036314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:53]POST & json_proto [15:52:53]process_json_proto [15:52:53]json parsed OK: [15:52:53]protocol is kg_v1.0 [15:52:53]action value=close_receipt [15:52:53]process_action close_receipt [15:52:53]cmd_close_receipt [15:52:53]MH_GetDate [15:52:53]Write to MH i2c: F0 00 00 21 98 A8 [15:52:53]Write i2c OK [15:52:53]MH_I2C_Read... [15:52:53]Read from MH i2c: F0 [15:52:53]MH_I2C_Read... [15:52:53]Read from MH i2c: F0 09 00 [15:52:53]MH_I2C_Read... [15:52:53]Read from MH i2c: F0 09 00 21 98 00 DA 18 C2 66 34 48 D8 65 84 [15:52:53]GetLastDocTimeStamp 1723996237 [15:52:53]current date 1723996378 [15:52:53]FM_GetShiftState [15:52:53]SAM_PROTO_GetShiftState [15:52:53]wFMCommunicate request_size=4 [15:52:53]MH_SAM_APDU [15:52:53]CAPDU: 80 13 01 00 [15:52:53]Write to MH i2c: E2 08 00 22 98 80 13 01 00 00 00 00 00 37 [15:52:53]Write i2c OK [15:52:53]MH_I2C_Read... [15:52:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:53]Read from MH i2c: E2 [15:52:53]MH_I2C_Read... [15:52:53]Read from MH i2c: E2 0E 00 [15:52:53]MH_I2C_Read... [15:52:53]Read from MH i2c: E2 0E 00 22 98 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 74 [15:52:53]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:52:53]wFMCommunicate OK [15:52:53]SAM_PROTO_GetShiftState done [15:52:53]FM_GetShiftState done [15:52:53]opened in 1723940556 [15:52:53]opened+sec_in_day 1724026956 [15:52:53]quantity*price = 30035 [15:52:53]sum+1 = 30036 [15:52:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 320 18.08.2024 15:52 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260762 ФПД: 91110360311915 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T155258&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260762&fm=91110360311915&tin=02508201610067®Number=0000000000091865&sum=30000 [15:52:54]StoreToDocumentArchive [15:52:54]shift 449 fd 260762 [15:52:54]save to /storage/0449/doc_00260762 [15:52:54]save last doc name /storage/0449/doc_00260762 to /storage/kkm_last_doc_name [15:52:54]save OK [15:52:54]Clear old archive folders... [15:52:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:52:54]tlvbuf is 004A47E0 [15:52:54]SAM_PROTO_ClearQueue [15:52:54]wFMCommunicate request_size=4 [15:52:54]MH_SAM_APDU [15:52:54]CAPDU: 80 09 00 00 [15:52:54]Write to MH i2c: E2 08 00 2F 98 80 09 00 00 00 00 00 00 39 [15:52:54]Write i2c OK [15:52:54]MH_I2C_Read... [15:52:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:52:54]Read from MH i2c: E2 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: E2 03 00 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: E2 03 00 2F 98 00 90 00 3B [15:52:54]RAPDU: 90 00 [15:52:54]wFMCommunicate OK [15:52:54]SAM_PROTO_ClearQueue done [15:52:54]KKMCreateOFDPacket [15:52:54]OFDProtocolAddRootSTLVToBuf [15:52:54]FM_MakeSignedData [15:52:54]FM_MakeSignedData [15:52:54]SAM_PROTO_SignData [15:52:54]wFMCommunicate request_size=4 [15:52:54]MH_SAM_APDU [15:52:54]CAPDU: 80 0D 01 02 [15:52:54]Write to MH i2c: E2 08 00 30 98 80 0D 01 02 00 00 00 00 41 [15:52:54]Write i2c OK [15:52:54]MH_I2C_Read... [15:52:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:52:54]Read from MH i2c: E2 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: E2 03 00 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: E2 03 00 30 98 00 90 00 3C [15:52:54]RAPDU: 90 00 [15:52:54]wFMCommunicate OK [15:52:54]wFMCommunicate request_size=255 [15:52:54]MH_SAM_APDU [15:52:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 DA 18 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9A FA 03 00 35 04 06 00 52 [15:52:54]Write to MH i2c: E2 02 01 31 98 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 DA 18 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9A FA 03 00 35 04 06 00 52 00 00 E3 [15:52:54]Write i2c OK [15:52:54]MH_I2C_Read... [15:52:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:54]Read from MH i2c: E2 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: E2 03 00 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: E2 03 00 31 98 00 90 00 3D [15:52:54]RAPDU: 90 00 [15:52:54]wFMCommunicate OK [15:52:54]wFMCommunicate request_size=10 [15:52:54]MH_SAM_APDU [15:52:54]CAPDU: 80 0D 02 02 05 DD 48 A9 68 6B [15:52:54]Write to MH i2c: E2 0D 00 32 98 80 0D 02 02 05 00 DD 48 A9 68 6B 00 00 EF [15:52:54]Write i2c OK [15:52:54]MH_I2C_Read... [15:52:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:54]Read from MH i2c: E2 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: E2 03 00 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: E2 03 00 32 98 00 90 00 3E [15:52:54]RAPDU: 90 00 [15:52:54]wFMCommunicate OK [15:52:54]wFMCommunicate request_size=4 [15:52:54]MH_SAM_APDU [15:52:54]CAPDU: 80 0D 03 02 [15:52:54]Write to MH i2c: E2 08 00 33 98 80 0D 03 02 00 00 00 00 46 [15:52:54]Write i2c OK [15:52:54]MH_I2C_Read... [15:52:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:52:54]Read from MH i2c: E2 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: E2 0B 00 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: E2 0B 00 33 98 00 16 B8 0C D3 5B 95 E3 83 90 00 4A [15:52:54]RAPDU: 16 B8 0C D3 5B 95 E3 83 90 00 [15:52:54]wFMCommunicate OK [15:52:54]SAM_PROTO_SignData done [15:52:54]FM_MakeSignedData done [15:52:54]CreateOFDProtocolMessage [15:52:54]wFMCommunicate request_size=4 [15:52:54]MH_SAM_APDU [15:52:54]CAPDU: 80 11 00 00 [15:52:54]Write to MH i2c: E2 08 00 34 98 80 11 00 00 00 00 00 00 46 [15:52:54]Write i2c OK [15:52:54]MH_I2C_Read... [15:52:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:54]Read from MH i2c: E2 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: E2 17 00 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: E2 17 00 34 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 93 [15:52:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:52:54]wFMCommunicate OK [15:52:54]CreateOFDProtocolMessage done [15:52:54]OFDSenderStorePacket 260762 [15:52:54]StoreOFDPacket docnum=260762 [15:52:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 5B A9 07 01 C0 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 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 DA 18 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9A FA 03 00 35 04 06 00 52 DD 48 A9 68 6B 16 B8 0C D3 5B 95 E3 83 [15:52:54]CheckFolder [15:52:54]dirname=/storage/ofd_packets [15:52:54]CheckFolder done [15:52:54]ProducePacketName [15:52:54]name=ofd_packets/00260762 [15:52:54]NVStorageSaveData ofd_packets/00260762 [15:52:54]File name is /storage/ofd_packets/00260762 [15:52:54]Write 301 bytes [15:52:54]NVStorageSaveData done [15:52:54]OFDSenderStorePacket done [15:52:54]KKMCreateOFDPacket done [15:52:54]NVStorageSaveData kkm_last_timestamp [15:52:54]File name is /storage/kkm_last_timestamp [15:52:54]Write 4 bytes [15:52:54]NVStorageSaveData done [15:52:54]ExternCall_PrintAddStr [15:52:54]wPrintStart [15:52:54]Write to MH i2c: 01 00 00 35 98 CD [15:52:54]Write i2c OK [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: 01 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: 01 07 00 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: 01 07 00 35 98 00 00 00 00 00 FF 0F E2 [15:52:54]RasterBufferAndPrint [15:52:54]line Счет N : (1)1036314 [15:52:54]line ИНН: 02508201610067 [15:52:54]line Контрольно-Кассовый Чек [15:52:54]line ПРОДАЖА [15:52:54]line ТРК (МРК, ГНК) : 22 [15:52:54]line Товар: 2710124130 [15:52:54]line Аи-92-К-5 [15:52:54]line 4.430 * 67.80 [15:52:54]line = 300.35 [15:52:54]line НДС 12% НСП 1% [15:52:54]line > о реализуемом товаре [15:52:54]line ОКРУГЛЕНИЕ: -0.35 [15:52:54]line ИТОГО: 300.00 [15:52:54]line Внесено: 300.00 [15:52:54]line СДАЧА: 0.00 [15:52:54]line НСП 1% : 2.66 [15:52:54]line НДС 12% : 31.90 [15:52:54]line Наличными: 300.00 [15:52:54]line Безнал.: 0.00 [15:52:54]line Место: АЗС № 94 "Партнер Нефть" [15:52:54]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [15:52:54]line СНО: Общий режим [15:52:54]line Чек 320 18.08.2024 15:52 [15:52:54]line Смена: 449 ФФД: 1.0 [15:52:54]line ЗНМ: 0300000099 [15:52:54]line РНМ: 0000000000091865 [15:52:54]line Версия ККМ: 001 [15:52:54]line ФМ: 0000000000871820 [15:52:54]line ФД: 260762 [15:52:54]line ФПД: 91110360311915 [15:52:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T155258&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260762&fm=91110360311915&tin=02508201610067®Number=0000000000091865&sum=30000 [15:52:55]written 0, free lines is 4095 [15:52:55]OFD Sender: Processing packet 260762 [packets to send 192, broken 191] [15:52:55]ProducePacketName [15:52:55]name=ofd_packets/00260762 [15:52:55]OFD Sender: To server: pG, [15:52:55]CommunicateWithHost lk.salyk.kg:30040 [15:52:55]ConnectInit lk.salyk.kg [15:52:55]Connected sock=10 [15:52: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 30 0F 01 00 00 5B A9 07 01 C0 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 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 DA 18 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9A FA 03 00 35 04 06 00 52 DD 48 A9 68 6B 16 B8 0C D3 5B 95 E3 83 [15:52: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 30 4F 00 00 00 02 2D 47 00 01 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 9A FA 03 00 F4 03 04 00 2F C2 C1 66 B6 04 01 00 00 59 5F 1E C1 7D C2 50 C5 [15:52:55]CommunicateWithHost err = 0 [15:52:55]CheckOFDResponse [15:52:55]1017 (14) - 77093643461234 [15:52:55]1041 (16) - 0000000000871820 [15:52:55]1040 (4) - 260762 [15:52:55]1012 (4) - 18.08.2024 09:43 [15:52:55]1206 (1) - 0 [15:52:55]OFD Sender: Remove packet 260762 [15:52:55]ProducePacketName [15:52:55]name=ofd_packets/00260762 [15:52:55]NVStorageDeleteData [15:52:55]Write to MH i2c: 01 00 00 60 98 F8 [15:52:55]Write i2c OK [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: 01 [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: 01 07 00 [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: 01 07 00 60 98 00 00 00 00 00 6D 0C 78 [15:52:55]RasterBufferAndPrint [15:52:55]line [15:52:55]line [15:52:55]line [15:52:55]line [15:52:55]line [15:52:55]written 0, free lines is 3184 [15:52:55]MH_Cut [15:52:55]Write to MH i2c: D1 01 00 67 98 01 D1 [15:52:55]Write i2c OK [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: D1 [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: D1 01 00 [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: D1 01 00 67 98 00 D0 [15:52:55]Write to MH i2c: 01 00 00 68 98 00 [15:52:55]Write i2c OK [15:52:55]MH_I2C_Read... [15:52:56]OFD Sender: No OFD packet to send [15:52:56]*** Cut start [15:52:56]*** Purtial cut [15:52:56]*** Stage 1: CUTSNS_PIN = 1 [15:52:58]Read from MH i2c: 01 [15:52:58]MH_I2C_Read... [15:52:58]*** Stop cut motor [15:52:58]*** Cut end [15:52:58]Read from MH i2c: 01 07 00 [15:52:58]MH_I2C_Read... [15:52:58]Read from MH i2c: 01 07 00 68 98 00 00 00 00 00 FF 0F 15 [15:52:58]process_action close_receipt done [15:52:58]requested_data is exist [15:52:58]produce_requested_data [15:52:58]requested_item fm.sn is exist - process it [15:52:58]wFMCommunicate request_size=4 [15:52:58]MH_SAM_APDU [15:52:58]CAPDU: 80 11 00 00 [15:52:58]Write to MH i2c: E2 08 00 69 98 80 11 00 00 00 00 00 00 7B [15:52:58]Write i2c OK [15:52:58]MH_I2C_Read... [15:52:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:58]Read from MH i2c: E2 [15:52:58]MH_I2C_Read... [15:52:58]Read from MH i2c: E2 17 00 [15:52:58]MH_I2C_Read... [15:52:58]Read from MH i2c: E2 17 00 69 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C8 [15:52:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:52:58]wFMCommunicate OK [15:52:58]requested_item fd.num is exist - process it [15:52:58]SAM_PROTO_GetFieldsCounters [15:52:58]wFMCommunicate request_size=4 [15:52:58]MH_SAM_APDU [15:52:58]CAPDU: 80 13 00 00 [15:52:58]Write to MH i2c: E2 08 00 6A 98 80 13 00 00 00 00 00 00 7E [15:52:58]Write i2c OK [15:52:58]MH_I2C_Read... [15:52:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:59]Read from MH i2c: E2 [15:52:59]MH_I2C_Read... [15:52:59]Read from MH i2c: E2 62 00 [15:52:59]MH_I2C_Read... [15:52:59]Read from MH i2c: E2 62 00 6A 98 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 9A FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 B9 [15:52: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 9A FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:52:59]wFMCommunicate OK [15:52:59]SAM_PROTO_GetFieldsCounters done [15:52:59]requested_item shift.num is exist - process it [15:52:59]requested_item shift.opened is exist - process it [15:52:59]req_shift_opened [15:52:59]FM_GetShiftState [15:52:59]SAM_PROTO_GetShiftState [15:52:59]wFMCommunicate request_size=4 [15:52:59]MH_SAM_APDU [15:52:59]CAPDU: 80 13 01 00 [15:52:59]Write to MH i2c: E2 08 00 6B 98 80 13 01 00 00 00 00 00 80 [15:52:59]Write i2c OK [15:52:59]MH_I2C_Read... [15:52:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:59]Read from MH i2c: E2 [15:52:59]MH_I2C_Read... [15:52:59]Read from MH i2c: E2 0E 00 [15:52:59]MH_I2C_Read... [15:52:59]Read from MH i2c: E2 0E 00 6B 98 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 BD [15:52:59]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:52:59]wFMCommunicate OK [15:52:59]SAM_PROTO_GetShiftState done [15:52:59]FM_GetShiftState done [15:52:59]req_shift_opened done [15:52:59]requested_item shift.open_date is exist - process it [15:52:59]req_shift_open_date [15:52:59]req_shift_open_date done [15:52:59]produce_requested_data done [15:52:59]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260762,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [15:52:59]process_action_free close_receipt [15:52:59]json_value_free [15:52:59]json_value_free done [15:52:59]process_json_proto returns [15:52:59]Send response to host [15:52:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260762,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [15:52:59]free response buf [15:52:59]execute_script done [15:52:59]execute_script returns [15:52:59]free content buf [15:52:59]Sock 7.Close socket [15:52:59]Sock 7.Thread stoped [15:53:01]OFD Sender: No OFD packet to send [15:53:06]OFD Sender: No OFD packet to send [15:53:11]OFD Sender: No OFD packet to send [15:53:16]OFD Sender: No OFD packet to send [15:53:21]OFD Sender: No OFD packet to send [15:53:26]OFD Sender: No OFD packet to send [15:53:31]OFD Sender: No OFD packet to send [15:53:36]OFD Sender: No OFD packet to send [15:53:41]OFD Sender: No OFD packet to send [15:53:46]OFD Sender: No OFD packet to send [15:53:51]OFD Sender: No OFD packet to send [15:53:56]OFD Sender: No OFD packet to send [15:54:01]OFD Sender: No OFD packet to send [15:54:06]OFD Sender: No OFD packet to send [15:54:11]OFD Sender: No OFD packet to send [15:54:16]OFD Sender: No OFD packet to send [15:54:21]OFD Sender: No OFD packet to send [15:54:26]OFD Sender: No OFD packet to send [15:54:31]OFD Sender: No OFD packet to send [15:54:36]OFD Sender: No OFD packet to send [15:54:41]OFD Sender: No OFD packet to send [15:54:46]OFD Sender: No OFD packet to send [15:54:51]OFD Sender: No OFD packet to send [15:54:56]OFD Sender: No OFD packet to send [15:55:01]OFD Sender: No OFD packet to send [15:55:06]OFD Sender: No OFD packet to send [15:55:07]accept exits with 9 [15:55:07]New connection [15:55:07]New thread 3066617188 created [15:55:07]Thread 3066473828 joined [15:55:07]Waiting for new connection... [15:55:07] Sock 9.Parse request [15:55:07]Sock 9.Check first char [15:55:07]Sock 9.First char is OK [15:55:07]request: POST /json_proto HTTP/1.0 [15:55:07]Method: POST [15:55:07]URL: /json_proto [15:55:07]Method is POST - this is cgi request [15:55:07]url: /json_proto [15:55:07]query_string will be loaded in cgi processing [15:55:07]execute_cgi json_proto POST (null) [15:55:07]execute_cgi path=json_proto method=POST [15:55:07]POST find Content-Length [15:55:07]Host: 172.17.55.133:8080 [15:55:07]Content-Length: 678 [15:55:07]Content-Type: application/json [15:55:07] [15:55:07]POST finish read [15:55:07]Found Content-Length = 678 [15:55:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:07]execute_script... [15:55: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)1036315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:07]POST & json_proto [15:55:07]process_json_proto [15:55:07]json parsed OK: [15:55:07]protocol is kg_v1.0 [15:55:07]action value=close_receipt [15:55:07]process_action close_receipt [15:55:07]cmd_close_receipt [15:55:07]MH_GetDate [15:55:07]Write to MH i2c: F0 00 00 6C 98 F3 [15:55:07]Write i2c OK [15:55:07]MH_I2C_Read... [15:55:07]Read from MH i2c: F0 [15:55:07]MH_I2C_Read... [15:55:07]Read from MH i2c: F0 09 00 [15:55:07]MH_I2C_Read... [15:55:07]Read from MH i2c: F0 09 00 6C 98 00 60 19 C2 66 34 48 D8 65 56 [15:55:07]GetLastDocTimeStamp 1723996378 [15:55:07]current date 1723996512 [15:55:07]FM_GetShiftState [15:55:07]SAM_PROTO_GetShiftState [15:55:07]wFMCommunicate request_size=4 [15:55:07]MH_SAM_APDU [15:55:07]CAPDU: 80 13 01 00 [15:55:07]Write to MH i2c: E2 08 00 6D 98 80 13 01 00 00 00 00 00 82 [15:55:07]Write i2c OK [15:55:07]MH_I2C_Read... [15:55:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:07]Read from MH i2c: E2 [15:55:07]MH_I2C_Read... [15:55:07]Read from MH i2c: E2 0E 00 [15:55:07]MH_I2C_Read... [15:55:07]Read from MH i2c: E2 0E 00 6D 98 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 BF [15:55:07]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:55:07]wFMCommunicate OK [15:55:07]SAM_PROTO_GetShiftState done [15:55:07]FM_GetShiftState done [15:55:07]opened in 1723940556 [15:55:07]opened+sec_in_day 1724026956 [15:55:07]quantity*price = 30035 [15:55:07]sum+1 = 30036 [15:55:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 321 18.08.2024 15:55 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260763 ФПД: 200921718554092 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T155512&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260763&fm=200921718554092&tin=02508201610067®Number=0000000000091865&sum=30000 [15:55:08]StoreToDocumentArchive [15:55:08]shift 449 fd 260763 [15:55:08]save to /storage/0449/doc_00260763 [15:55:08]save last doc name /storage/0449/doc_00260763 to /storage/kkm_last_doc_name [15:55:08]save OK [15:55:08]Clear old archive folders... [15:55:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:55:08]tlvbuf is 00383190 [15:55:08]SAM_PROTO_ClearQueue [15:55:08]wFMCommunicate request_size=4 [15:55:08]MH_SAM_APDU [15:55:08]CAPDU: 80 09 00 00 [15:55:08]Write to MH i2c: E2 08 00 7A 98 80 09 00 00 00 00 00 00 84 [15:55:08]Write i2c OK [15:55:08]MH_I2C_Read... [15:55:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:55:08]Read from MH i2c: E2 [15:55:08]MH_I2C_Read... [15:55:08]Read from MH i2c: E2 03 00 [15:55:08]MH_I2C_Read... [15:55:08]Read from MH i2c: E2 03 00 7A 98 00 90 00 86 [15:55:08]RAPDU: 90 00 [15:55:08]wFMCommunicate OK [15:55:08]SAM_PROTO_ClearQueue done [15:55:08]KKMCreateOFDPacket [15:55:08]OFDProtocolAddRootSTLVToBuf [15:55:08]FM_MakeSignedData [15:55:08]FM_MakeSignedData [15:55:08]SAM_PROTO_SignData [15:55:08]wFMCommunicate request_size=4 [15:55:08]MH_SAM_APDU [15:55:08]CAPDU: 80 0D 01 02 [15:55:08]Write to MH i2c: E2 08 00 7B 98 80 0D 01 02 00 00 00 00 8C [15:55:08]Write i2c OK [15:55:08]MH_I2C_Read... [15:55:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:55:08]Read from MH i2c: E2 [15:55:08]MH_I2C_Read... [15:55:08]Read from MH i2c: E2 03 00 [15:55:08]MH_I2C_Read... [15:55:08]Read from MH i2c: E2 03 00 7B 98 00 90 00 87 [15:55:08]RAPDU: 90 00 [15:55:08]wFMCommunicate OK [15:55:08]wFMCommunicate request_size=255 [15:55:08]MH_SAM_APDU [15:55:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 60 19 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9B FA 03 00 35 04 06 00 B6 [15:55:08]Write to MH i2c: E2 02 01 7C 98 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 60 19 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9B FA 03 00 35 04 06 00 B6 00 00 1B [15:55:08]Write i2c OK [15:55:08]MH_I2C_Read... [15:55:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:08]Read from MH i2c: E2 [15:55:08]MH_I2C_Read... [15:55:08]Read from MH i2c: E2 03 00 [15:55:08]MH_I2C_Read... [15:55:08]Read from MH i2c: E2 03 00 7C 98 00 90 00 88 [15:55:08]RAPDU: 90 00 [15:55:08]wFMCommunicate OK [15:55:08]wFMCommunicate request_size=10 [15:55:08]MH_SAM_APDU [15:55:08]CAPDU: 80 0D 02 02 05 BC BB A9 7D EC [15:55:08]Write to MH i2c: E2 0D 00 7D 98 80 0D 02 02 05 00 BC BB A9 7D EC 00 00 22 [15:55:08]Write i2c OK [15:55:08]MH_I2C_Read... [15:55:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:08]Read from MH i2c: E2 [15:55:08]MH_I2C_Read... [15:55:08]Read from MH i2c: E2 03 00 [15:55:08]MH_I2C_Read... [15:55:08]Read from MH i2c: E2 03 00 7D 98 00 90 00 89 [15:55:08]RAPDU: 90 00 [15:55:08]wFMCommunicate OK [15:55:08]wFMCommunicate request_size=4 [15:55:08]MH_SAM_APDU [15:55:08]CAPDU: 80 0D 03 02 [15:55:08]Write to MH i2c: E2 08 00 7E 98 80 0D 03 02 00 00 00 00 91 [15:55:08]Write i2c OK [15:55:08]MH_I2C_Read... [15:55:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:55:08]Read from MH i2c: E2 [15:55:08]MH_I2C_Read... [15:55:08]Read from MH i2c: E2 0B 00 [15:55:08]MH_I2C_Read... [15:55:08]Read from MH i2c: E2 0B 00 7E 98 00 75 9F 9F 2E 8A EE 65 47 90 00 97 [15:55:08]RAPDU: 75 9F 9F 2E 8A EE 65 47 90 00 [15:55:08]wFMCommunicate OK [15:55:08]SAM_PROTO_SignData done [15:55:08]FM_MakeSignedData done [15:55:08]CreateOFDProtocolMessage [15:55:08]wFMCommunicate request_size=4 [15:55:08]MH_SAM_APDU [15:55:08]CAPDU: 80 11 00 00 [15:55:08]Write to MH i2c: E2 08 00 7F 98 80 11 00 00 00 00 00 00 91 [15:55:08]Write i2c OK [15:55:08]MH_I2C_Read... [15:55:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:08]Read from MH i2c: E2 [15:55:08]MH_I2C_Read... [15:55:08]Read from MH i2c: E2 17 00 [15:55:08]MH_I2C_Read... [15:55:08]Read from MH i2c: E2 17 00 7F 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 DE [15:55:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:55:08]wFMCommunicate OK [15:55:08]CreateOFDProtocolMessage done [15:55:08]OFDSenderStorePacket 260763 [15:55:08]StoreOFDPacket docnum=260763 [15: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 30 0F 01 00 00 64 4D 07 01 3F 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 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 60 19 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9B FA 03 00 35 04 06 00 B6 BC BB A9 7D EC 75 9F 9F 2E 8A EE 65 47 [15:55:08]CheckFolder [15:55:08]dirname=/storage/ofd_packets [15:55:08]CheckFolder done [15:55:08]ProducePacketName [15:55:08]name=ofd_packets/00260763 [15:55:08]NVStorageSaveData ofd_packets/00260763 [15:55:08]File name is /storage/ofd_packets/00260763 [15:55:08]Write 301 bytes [15:55:08]NVStorageSaveData done [15:55:08]OFDSenderStorePacket done [15:55:08]KKMCreateOFDPacket done [15:55:08]NVStorageSaveData kkm_last_timestamp [15:55:08]File name is /storage/kkm_last_timestamp [15:55:08]Write 4 bytes [15:55:08]NVStorageSaveData done [15:55:08]ExternCall_PrintAddStr [15:55:08]wPrintStart [15:55:08]Write to MH i2c: 01 00 00 80 98 18 [15:55:08]Write i2c OK [15:55:08]MH_I2C_Read... [15:55:08]Read from MH i2c: 01 [15:55:08]MH_I2C_Read... [15:55:08]Read from MH i2c: 01 07 00 [15:55:08]MH_I2C_Read... [15:55:08]Read from MH i2c: 01 07 00 80 98 00 00 00 00 00 FF 0F 2D [15:55:08]RasterBufferAndPrint [15:55:08]line Счет N : (1)1036315 [15:55:08]line ИНН: 02508201610067 [15:55:08]line Контрольно-Кассовый Чек [15:55:08]line ПРОДАЖА [15:55:08]line ТРК (МРК, ГНК) : 42 [15:55:08]line Товар: 2710124130 [15:55:08]line Аи-92-К-5 [15:55:08]line 4.430 * 67.80 [15:55:08]line = 300.35 [15:55:08]line НДС 12% НСП 1% [15:55:08]line > о реализуемом товаре [15:55:08]line ОКРУГЛЕНИЕ: -0.35 [15:55:08]line ИТОГО: 300.00 [15:55:08]line Внесено: 300.00 [15:55:08]line СДАЧА: 0.00 [15:55:08]line НСП 1% : 2.66 [15:55:08]line НДС 12% : 31.90 [15:55:08]line Наличными: 300.00 [15:55:08]line Безнал.: 0.00 [15:55:08]line Место: АЗС № 94 "Партнер Нефть" [15:55:08]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [15:55:08]line СНО: Общий режим [15:55:08]line Чек 321 18.08.2024 15:55 [15:55:08]line Смена: 449 ФФД: 1.0 [15:55:08]line ЗНМ: 0300000099 [15:55:08]line РНМ: 0000000000091865 [15:55:08]line Версия ККМ: 001 [15:55:08]line ФМ: 0000000000871820 [15:55:08]line ФД: 260763 [15:55:08]line ФПД: 200921718554092 [15:55:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T155512&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260763&fm=200921718554092&tin=02508201610067®Number=0000000000091865&sum=30000 [15:55:08]written 0, free lines is 4095 [15:55:08]OFD Sender: Processing packet 260763 [packets to send 192, broken 191] [15:55:08]ProducePacketName [15:55:08]name=ofd_packets/00260763 [15:55:08]OFD Sender: To server: pG, [15:55:08]CommunicateWithHost lk.salyk.kg:30040 [15:55:08]ConnectInit lk.salyk.kg [15:55:08]Connected sock=10 [15: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 30 0F 01 00 00 64 4D 07 01 3F 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 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 60 19 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9B FA 03 00 35 04 06 00 B6 BC BB A9 7D EC 75 9F 9F 2E 8A EE 65 47 [15: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 30 4F 00 00 00 19 35 47 00 1F 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 9B FA 03 00 F4 03 04 00 B4 C2 C1 66 B6 04 01 00 00 46 E9 1F EC 16 6E 3A 62 [15:55:09]CommunicateWithHost err = 0 [15:55:09]CheckOFDResponse [15:55:09]1017 (14) - 77093643461234 [15:55:09]1041 (16) - 0000000000871820 [15:55:09]1040 (4) - 260763 [15:55:09]1012 (4) - 18.08.2024 09:45 [15:55:09]1206 (1) - 0 [15:55:09]OFD Sender: Remove packet 260763 [15:55:09]ProducePacketName [15:55:09]name=ofd_packets/00260763 [15:55:09]NVStorageDeleteData [15:55:09]Write to MH i2c: 01 00 00 AB 98 43 [15:55:09]Write i2c OK [15:55:09]MH_I2C_Read... [15:55:09]Read from MH i2c: 01 [15:55:09]MH_I2C_Read... [15:55:09]Read from MH i2c: 01 07 00 [15:55:09]MH_I2C_Read... [15:55:09]Read from MH i2c: 01 07 00 AB 98 00 00 00 00 00 74 0C CA [15:55:09]RasterBufferAndPrint [15:55:09]line [15:55:09]line [15:55:09]line [15:55:09]line [15:55:09]line [15:55:09]written 0, free lines is 3190 [15:55:09]MH_Cut [15:55:09]Write to MH i2c: D1 01 00 B2 98 01 1C [15:55:09]Write i2c OK [15:55:09]MH_I2C_Read... [15:55:09]Read from MH i2c: D1 [15:55:09]MH_I2C_Read... [15:55:09]Read from MH i2c: D1 01 00 [15:55:09]MH_I2C_Read... [15:55:09]Read from MH i2c: D1 01 00 B2 98 00 1B [15:55:09]Write to MH i2c: 01 00 00 B3 98 4B [15:55:09]Write i2c OK [15:55:09]MH_I2C_Read... [15:55:09]OFD Sender: No OFD packet to send [15:55:10]*** Cut start [15:55:10]*** Purtial cut [15:55:10]*** Stage 1: CUTSNS_PIN = 1 [15:55:12]Read from MH i2c: 01 [15:55:12]MH_I2C_Read... [15:55:12]*** Stop cut motor [15:55:12]*** Cut end [15:55:12]Read from MH i2c: 01 07 00 [15:55:12]MH_I2C_Read... [15:55:12]Read from MH i2c: 01 07 00 B3 98 00 00 00 00 00 FF 0F 60 [15:55:12]process_action close_receipt done [15:55:12]requested_data is exist [15:55:12]produce_requested_data [15:55:12]requested_item fm.sn is exist - process it [15:55:12]wFMCommunicate request_size=4 [15:55:12]MH_SAM_APDU [15:55:12]CAPDU: 80 11 00 00 [15:55:12]Write to MH i2c: E2 08 00 B4 98 80 11 00 00 00 00 00 00 C6 [15:55:12]Write i2c OK [15:55:12]MH_I2C_Read... [15:55:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:12]Read from MH i2c: E2 [15:55:12]MH_I2C_Read... [15:55:12]Read from MH i2c: E2 17 00 [15:55:12]MH_I2C_Read... [15:55:12]Read from MH i2c: E2 17 00 B4 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 13 [15:55:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:55:12]wFMCommunicate OK [15:55:12]requested_item fd.num is exist - process it [15:55:12]SAM_PROTO_GetFieldsCounters [15:55:12]wFMCommunicate request_size=4 [15:55:12]MH_SAM_APDU [15:55:12]CAPDU: 80 13 00 00 [15:55:12]Write to MH i2c: E2 08 00 B5 98 80 13 00 00 00 00 00 00 C9 [15:55:12]Write i2c OK [15:55:12]MH_I2C_Read... [15:55:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:55:12]Read from MH i2c: E2 [15:55:12]MH_I2C_Read... [15:55:12]Read from MH i2c: E2 62 00 [15:55:12]MH_I2C_Read... [15:55:12]Read from MH i2c: E2 62 00 B5 98 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 9B FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 08 [15:55: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 9B FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:55:12]wFMCommunicate OK [15:55:12]SAM_PROTO_GetFieldsCounters done [15:55:12]requested_item shift.num is exist - process it [15:55:12]requested_item shift.opened is exist - process it [15:55:12]req_shift_opened [15:55:12]FM_GetShiftState [15:55:12]SAM_PROTO_GetShiftState [15:55:12]wFMCommunicate request_size=4 [15:55:12]MH_SAM_APDU [15:55:12]CAPDU: 80 13 01 00 [15:55:12]Write to MH i2c: E2 08 00 B6 98 80 13 01 00 00 00 00 00 CB [15:55:12]Write i2c OK [15:55:12]MH_I2C_Read... [15:55:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:12]Read from MH i2c: E2 [15:55:12]MH_I2C_Read... [15:55:12]Read from MH i2c: E2 0E 00 [15:55:12]MH_I2C_Read... [15:55:12]Read from MH i2c: E2 0E 00 B6 98 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 08 [15:55:12]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:55:12]wFMCommunicate OK [15:55:12]SAM_PROTO_GetShiftState done [15:55:12]FM_GetShiftState done [15:55:12]req_shift_opened done [15:55:12]requested_item shift.open_date is exist - process it [15:55:12]req_shift_open_date [15:55:12]req_shift_open_date done [15:55:12]produce_requested_data done [15:55:12]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260763,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [15:55:12]process_action_free close_receipt [15:55:12]json_value_free [15:55:12]json_value_free done [15:55:12]process_json_proto returns [15:55:12]Send response to host [15:55:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260763,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [15:55:12]free response buf [15:55:12]execute_script done [15:55:12]execute_script returns [15:55:12]free content buf [15:55:12]Sock 9.Close socket [15:55:12]Sock 9.Thread stoped [15:55:14]OFD Sender: No OFD packet to send [15:55:19]OFD Sender: No OFD packet to send [15:55:24]OFD Sender: No OFD packet to send [15:55:29]OFD Sender: No OFD packet to send [15:55:34]OFD Sender: No OFD packet to send [15:55:39]OFD Sender: No OFD packet to send [15:55:44]OFD Sender: No OFD packet to send [15:55:49]OFD Sender: No OFD packet to send [15:55:54]OFD Sender: No OFD packet to send [15:55:59]OFD Sender: No OFD packet to send [15:56:04]OFD Sender: No OFD packet to send [15:56:09]OFD Sender: No OFD packet to send [15:56:14]OFD Sender: No OFD packet to send [15:56:19]OFD Sender: No OFD packet to send [15:56:24]OFD Sender: No OFD packet to send [15:56:29]OFD Sender: No OFD packet to send [15:56:34]OFD Sender: No OFD packet to send [15:56:39]OFD Sender: No OFD packet to send [15:56:44]OFD Sender: No OFD packet to send [15:56:49]OFD Sender: No OFD packet to send [15:56:54]OFD Sender: No OFD packet to send [15:56:59]OFD Sender: No OFD packet to send [15:57:04]OFD Sender: No OFD packet to send [15:57:09]OFD Sender: No OFD packet to send [15:57:14]OFD Sender: No OFD packet to send [15:57:19]OFD Sender: No OFD packet to send [15:57:24]OFD Sender: No OFD packet to send [15:57:29]OFD Sender: No OFD packet to send [15:57:34]OFD Sender: No OFD packet to send [15:57:39]OFD Sender: No OFD packet to send [15:57:44]OFD Sender: No OFD packet to send [15:57:49]OFD Sender: No OFD packet to send [15:57:54]accept exits with 7 [15:57:54]New connection [15:57:54]New thread 3066473828 created [15:57:54]Thread 3066617188 joined [15:57:54]Waiting for new connection... [15:57:54] Sock 7.Parse request [15:57:54]Sock 7.Check first char [15:57:54]Sock 7.First char is OK [15:57:54]request: POST /json_proto HTTP/1.0 [15:57:54]Method: POST [15:57:54]URL: /json_proto [15:57:54]Method is POST - this is cgi request [15:57:54]url: /json_proto [15:57:54]query_string will be loaded in cgi processing [15:57:54]execute_cgi json_proto POST (null) [15:57:54]execute_cgi path=json_proto method=POST [15:57:54]POST find Content-Length [15:57:54]Host: 172.17.55.133:8080 [15:57:54]Content-Length: 678 [15:57:54]Content-Type: application/json [15:57:54] [15:57:54]POST finish read [15:57:54]Found Content-Length = 678 [15:57:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "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" ] } } [15:57:54]execute_script... [15:57: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)1036316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "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" ] } } [15:57:54]POST & json_proto [15:57:54]process_json_proto [15:57:54]json parsed OK: [15:57:54]protocol is kg_v1.0 [15:57:54]action value=close_receipt [15:57:54]process_action close_receipt [15:57:54]cmd_close_receipt [15:57:54]MH_GetDate [15:57:54]Write to MH i2c: F0 00 00 B7 98 3E [15:57:54]Write i2c OK [15:57:54]MH_I2C_Read... [15:57:54]Read from MH i2c: F0 [15:57:54]MH_I2C_Read... [15:57:54]Read from MH i2c: F0 09 00 [15:57:54]MH_I2C_Read... [15:57:54]Read from MH i2c: F0 09 00 B7 98 00 08 1A C2 66 34 48 D8 65 4A [15:57:54]GetLastDocTimeStamp 1723996512 [15:57:54]current date 1723996680 [15:57:54]FM_GetShiftState [15:57:54]SAM_PROTO_GetShiftState [15:57:54]wFMCommunicate request_size=4 [15:57:54]MH_SAM_APDU [15:57:54]CAPDU: 80 13 01 00 [15:57:54]Write to MH i2c: E2 08 00 B8 98 80 13 01 00 00 00 00 00 CD [15:57:54]Write i2c OK [15:57:54]MH_I2C_Read... [15:57:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:54]Read from MH i2c: E2 [15:57:54]MH_I2C_Read... [15:57:54]Read from MH i2c: E2 0E 00 [15:57:54]MH_I2C_Read... [15:57:54]Read from MH i2c: E2 0E 00 B8 98 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 0A [15:57:54]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:57:54]wFMCommunicate OK [15:57:54]SAM_PROTO_GetShiftState done [15:57:54]FM_GetShiftState done [15:57:54]opened in 1723940556 [15:57:54]opened+sec_in_day 1724026956 [15:57:54]quantity*price = 35052 [15:57:54]sum+1 = 35054 [15:57:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 322 18.08.2024 15:58 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260764 ФПД: 226520087818914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T155800&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260764&fm=226520087818914&tin=02508201610067®Number=0000000000091865&sum=35000 [15:57:55]StoreToDocumentArchive [15:57:55]shift 449 fd 260764 [15:57:55]save to /storage/0449/doc_00260764 [15:57:55]save last doc name /storage/0449/doc_00260764 to /storage/kkm_last_doc_name [15:57:55]save OK [15:57:55]Clear old archive folders... [15:57:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:57:55]tlvbuf is 003A0CD0 [15:57:55]SAM_PROTO_ClearQueue [15:57:55]wFMCommunicate request_size=4 [15:57:55]MH_SAM_APDU [15:57:55]CAPDU: 80 09 00 00 [15:57:55]Write to MH i2c: E2 08 00 C5 98 80 09 00 00 00 00 00 00 CF [15:57:55]Write i2c OK [15:57:55]MH_I2C_Read... [15:57:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:55]Read from MH i2c: E2 [15:57:55]MH_I2C_Read... [15:57:55]Read from MH i2c: E2 03 00 [15:57:55]MH_I2C_Read... [15:57:55]Read from MH i2c: E2 03 00 C5 98 00 90 00 D1 [15:57:55]RAPDU: 90 00 [15:57:55]wFMCommunicate OK [15:57:55]SAM_PROTO_ClearQueue done [15:57:55]KKMCreateOFDPacket [15:57:55]OFDProtocolAddRootSTLVToBuf [15:57:55]FM_MakeSignedData [15:57:55]FM_MakeSignedData [15:57:55]SAM_PROTO_SignData [15:57:55]wFMCommunicate request_size=4 [15:57:55]MH_SAM_APDU [15:57:55]CAPDU: 80 0D 01 02 [15:57:55]Write to MH i2c: E2 08 00 C6 98 80 0D 01 02 00 00 00 00 D7 [15:57:55]Write i2c OK [15:57:55]MH_I2C_Read... [15:57:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:55]Read from MH i2c: E2 [15:57:55]MH_I2C_Read... [15:57:55]Read from MH i2c: E2 03 00 [15:57:55]MH_I2C_Read... [15:57:55]Read from MH i2c: E2 03 00 C6 98 00 90 00 D2 [15:57:55]RAPDU: 90 00 [15:57:55]wFMCommunicate OK [15:57:55]wFMCommunicate request_size=255 [15:57:55]MH_SAM_APDU [15:57:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 42 01 00 00 F4 03 04 00 08 1A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9C FA 03 00 35 04 06 00 CE [15:57:55]Write to MH i2c: E2 02 01 C7 98 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 42 01 00 00 F4 03 04 00 08 1A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9C FA 03 00 35 04 06 00 CE 00 00 35 [15:57:55]Write i2c OK [15:57:55]MH_I2C_Read... [15:57:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:56]Read from MH i2c: E2 [15:57:56]MH_I2C_Read... [15:57:56]Read from MH i2c: E2 03 00 [15:57:56]MH_I2C_Read... [15:57:56]Read from MH i2c: E2 03 00 C7 98 00 90 00 D3 [15:57:56]RAPDU: 90 00 [15:57:56]wFMCommunicate OK [15:57:56]wFMCommunicate request_size=10 [15:57:56]MH_SAM_APDU [15:57:56]CAPDU: 80 0D 02 02 05 04 D1 5E 72 A2 [15:57:56]Write to MH i2c: E2 0D 00 C8 98 80 0D 02 02 05 00 04 D1 5E 72 A2 00 00 2B [15:57:56]Write i2c OK [15:57:56]MH_I2C_Read... [15:57:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:56]Read from MH i2c: E2 [15:57:56]MH_I2C_Read... [15:57:56]Read from MH i2c: E2 03 00 [15:57:56]MH_I2C_Read... [15:57:56]Read from MH i2c: E2 03 00 C8 98 00 90 00 D4 [15:57:56]RAPDU: 90 00 [15:57:56]wFMCommunicate OK [15:57:56]wFMCommunicate request_size=4 [15:57:56]MH_SAM_APDU [15:57:56]CAPDU: 80 0D 03 02 [15:57:56]Write to MH i2c: E2 08 00 C9 98 80 0D 03 02 00 00 00 00 DC [15:57:56]Write i2c OK [15:57:56]MH_I2C_Read... [15:57:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:56]Read from MH i2c: E2 [15:57:56]MH_I2C_Read... [15:57:56]Read from MH i2c: E2 0B 00 [15:57:56]MH_I2C_Read... [15:57:56]Read from MH i2c: E2 0B 00 C9 98 00 50 16 C9 29 3D B7 36 02 90 00 61 [15:57:56]RAPDU: 50 16 C9 29 3D B7 36 02 90 00 [15:57:56]wFMCommunicate OK [15:57:56]SAM_PROTO_SignData done [15:57:56]FM_MakeSignedData done [15:57:56]CreateOFDProtocolMessage [15:57:56]wFMCommunicate request_size=4 [15:57:56]MH_SAM_APDU [15:57:56]CAPDU: 80 11 00 00 [15:57:56]Write to MH i2c: E2 08 00 CA 98 80 11 00 00 00 00 00 00 DC [15:57:56]Write i2c OK [15:57:56]MH_I2C_Read... [15:57:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:56]Read from MH i2c: E2 [15:57:56]MH_I2C_Read... [15:57:56]Read from MH i2c: E2 17 00 [15:57:56]MH_I2C_Read... [15:57:56]Read from MH i2c: E2 17 00 CA 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 29 [15:57:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:57:56]wFMCommunicate OK [15:57:56]CreateOFDProtocolMessage done [15:57:56]OFDSenderStorePacket 260764 [15:57:56]StoreOFDPacket docnum=260764 [15:57:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 B3 9C 07 01 F6 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 42 01 00 00 F4 03 04 00 08 1A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9C FA 03 00 35 04 06 00 CE 04 D1 5E 72 A2 50 16 C9 29 3D B7 36 02 [15:57:56]CheckFolder [15:57:56]dirname=/storage/ofd_packets [15:57:56]CheckFolder done [15:57:56]ProducePacketName [15:57:56]name=ofd_packets/00260764 [15:57:56]NVStorageSaveData ofd_packets/00260764 [15:57:56]File name is /storage/ofd_packets/00260764 [15:57:56]Write 301 bytes [15:57:56]NVStorageSaveData done [15:57:56]OFDSenderStorePacket done [15:57:56]KKMCreateOFDPacket done [15:57:56]NVStorageSaveData kkm_last_timestamp [15:57:56]File name is /storage/kkm_last_timestamp [15:57:56]Write 4 bytes [15:57:56]NVStorageSaveData done [15:57:56]ExternCall_PrintAddStr [15:57:56]wPrintStart [15:57:56]Write to MH i2c: 01 00 00 CB 98 63 [15:57:56]Write i2c OK [15:57:56]MH_I2C_Read... [15:57:56]Read from MH i2c: 01 [15:57:56]MH_I2C_Read... [15:57:56]Read from MH i2c: 01 07 00 [15:57:56]MH_I2C_Read... [15:57:56]Read from MH i2c: 01 07 00 CB 98 00 00 00 00 00 FF 0F 78 [15:57:56]RasterBufferAndPrint [15:57:56]line Счет N : (1)1036316 [15:57:56]line ИНН: 02508201610067 [15:57:56]line Контрольно-Кассовый Чек [15:57:56]line ПРОДАЖА [15:57:56]line ТРК (МРК, ГНК) : 22 [15:57:56]line Товар: 2710124130 [15:57:56]line Аи-92-К-5 [15:57:56]line 5.170 * 67.80 [15:57:56]line = 350.53 [15:57:56]line НДС 12% НСП 1% [15:57:56]line > о реализуемом товаре [15:57:56]line ОКРУГЛЕНИЕ: -0.53 [15:57:56]line ИТОГО: 350.00 [15:57:56]line Внесено: 350.00 [15:57:56]line СДАЧА: 0.00 [15:57:56]line НСП 1% : 3.10 [15:57:56]line НДС 12% : 37.22 [15:57:56]line Наличными: 350.00 [15:57:56]line Безнал.: 0.00 [15:57:56]line Место: АЗС № 94 "Партнер Нефть" [15:57:56]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [15:57:56]line СНО: Общий режим [15:57:56]line Чек 322 18.08.2024 15:58 [15:57:56]line Смена: 449 ФФД: 1.0 [15:57:56]line ЗНМ: 0300000099 [15:57:56]line РНМ: 0000000000091865 [15:57:56]line Версия ККМ: 001 [15:57:56]line ФМ: 0000000000871820 [15:57:56]line ФД: 260764 [15:57:56]line ФПД: 226520087818914 [15:57:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T155800&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260764&fm=226520087818914&tin=02508201610067®Number=0000000000091865&sum=35000 [15:57:56]written 0, free lines is 4095 [15:57:56]OFD Sender: Processing packet 260764 [packets to send 192, broken 191] [15:57:56]ProducePacketName [15:57:56]name=ofd_packets/00260764 [15:57:56]OFD Sender: To server: pG, [15:57:56]CommunicateWithHost lk.salyk.kg:30040 [15:57:56]ConnectInit lk.salyk.kg [15:57:56]Connected sock=10 [15:57: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 30 0F 01 00 00 B3 9C 07 01 F6 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 42 01 00 00 F4 03 04 00 08 1A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9C FA 03 00 35 04 06 00 CE 04 D1 5E 72 A2 50 16 C9 29 3D B7 36 02 [15:57:56]Write to MH i2c: 01 00 00 F6 98 8E [15:57:56]Write i2c OK [15:57:56]MH_I2C_Read... [15:57:56]Read from MH i2c: 01 [15:57:56]MH_I2C_Read... [15:57:56]Read from MH i2c: 01 07 00 [15:57:56]MH_I2C_Read... [15:57:56]Read from MH i2c: 01 07 00 F6 98 00 00 00 00 00 6D 0C 0E [15:57:56]RasterBufferAndPrint [15:57:56]line [15:57:56]line [15:57:56]line [15:57:56]line [15:57:56]line [15:57:56]written 0, free lines is 3185 [15:57:56]MH_Cut [15:57:56]Write to MH i2c: D1 01 00 FD 98 01 67 [15:57:56]Write i2c OK [15:57:56]MH_I2C_Read... [15:57:56]Read from MH i2c: D1 [15:57:56]MH_I2C_Read... [15:57:56]Read from MH i2c: D1 01 00 [15:57:56]MH_I2C_Read... [15:57:56]Read from MH i2c: D1 01 00 FD 98 00 66 [15:57:56]Write to MH i2c: 01 00 00 FE 98 96 [15:57:56]Write i2c OK [15:57:56]MH_I2C_Read... [15:57: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 30 4F 00 00 00 D5 1B 47 00 22 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 30 10 04 04 00 9C FA 03 00 F4 03 04 00 5C C3 C1 66 B6 04 01 00 00 AD 8A 75 7A 64 0D 98 0F [15:57:56]CommunicateWithHost err = 0 [15:57:56]CheckOFDResponse [15:57:56]1017 (14) - 77093643461234 [15:57:56]1041 (16) - 0000000000871820 [15:57:56]1040 (4) - 260764 [15:57:56]1012 (4) - 18.08.2024 09:48 [15:57:56]1206 (1) - 0 [15:57:56]OFD Sender: Remove packet 260764 [15:57:56]ProducePacketName [15:57:56]name=ofd_packets/00260764 [15:57:56]NVStorageDeleteData [15:57:57]OFD Sender: No OFD packet to send [15:57:57]*** Cut start [15:57:57]*** Purtial cut [15:57:57]*** Stage 1: CUTSNS_PIN = 1 [15:57:59]Read from MH i2c: 01 [15:57:59]MH_I2C_Read... [15:57:59]*** Stop cut motor [15:57:59]*** Cut end [15:57:59]Read from MH i2c: 01 07 00 [15:57:59]MH_I2C_Read... [15:57:59]Read from MH i2c: 01 07 00 FE 98 00 00 00 00 00 FF 0F AB [15:57:59]process_action close_receipt done [15:57:59]requested_data is exist [15:57:59]produce_requested_data [15:57:59]requested_item fm.sn is exist - process it [15:57:59]wFMCommunicate request_size=4 [15:57:59]MH_SAM_APDU [15:57:59]CAPDU: 80 11 00 00 [15:57:59]Write to MH i2c: E2 08 00 FF 98 80 11 00 00 00 00 00 00 11 [15:57:59]Write i2c OK [15:57:59]MH_I2C_Read... [15:58:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:00]Read from MH i2c: E2 [15:58:00]MH_I2C_Read... [15:58:00]Read from MH i2c: E2 17 00 [15:58:00]MH_I2C_Read... [15:58:00]Read from MH i2c: E2 17 00 FF 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 5E [15:58:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:58:00]wFMCommunicate OK [15:58:00]requested_item fd.num is exist - process it [15:58:00]SAM_PROTO_GetFieldsCounters [15:58:00]wFMCommunicate request_size=4 [15:58:00]MH_SAM_APDU [15:58:00]CAPDU: 80 13 00 00 [15:58:00]Write to MH i2c: E2 08 00 00 99 80 13 00 00 00 00 00 00 15 [15:58:00]Write i2c OK [15:58:00]MH_I2C_Read... [15:58:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:00]Read from MH i2c: E2 [15:58:00]MH_I2C_Read... [15:58:00]Read from MH i2c: E2 62 00 [15:58:00]MH_I2C_Read... [15:58:00]Read from MH i2c: E2 62 00 00 99 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 9C FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 58 [15:58: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 9C FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:58:00]wFMCommunicate OK [15:58:00]SAM_PROTO_GetFieldsCounters done [15:58:00]requested_item shift.num is exist - process it [15:58:00]requested_item shift.opened is exist - process it [15:58:00]req_shift_opened [15:58:00]FM_GetShiftState [15:58:00]SAM_PROTO_GetShiftState [15:58:00]wFMCommunicate request_size=4 [15:58:00]MH_SAM_APDU [15:58:00]CAPDU: 80 13 01 00 [15:58:00]Write to MH i2c: E2 08 00 01 99 80 13 01 00 00 00 00 00 17 [15:58:00]Write i2c OK [15:58:00]MH_I2C_Read... [15:58:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:00]Read from MH i2c: E2 [15:58:00]MH_I2C_Read... [15:58:00]Read from MH i2c: E2 0E 00 [15:58:00]MH_I2C_Read... [15:58:00]Read from MH i2c: E2 0E 00 01 99 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 54 [15:58:00]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:58:00]wFMCommunicate OK [15:58:00]SAM_PROTO_GetShiftState done [15:58:00]FM_GetShiftState done [15:58:00]req_shift_opened done [15:58:00]requested_item shift.open_date is exist - process it [15:58:00]req_shift_open_date [15:58:00]req_shift_open_date done [15:58:00]produce_requested_data done [15:58:00]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260764,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [15:58:00]process_action_free close_receipt [15:58:00]json_value_free [15:58:00]json_value_free done [15:58:00]process_json_proto returns [15:58:00]Send response to host [15:58:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260764,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [15:58:00]free response buf [15:58:00]execute_script done [15:58:00]execute_script returns [15:58:00]free content buf [15:58:00]Sock 7.Close socket [15:58:00]Sock 7.Thread stoped [15:58:02]OFD Sender: No OFD packet to send [15:58:07]OFD Sender: No OFD packet to send [15:58:12]OFD Sender: No OFD packet to send [15:58:17]OFD Sender: No OFD packet to send [15:58:22]OFD Sender: No OFD packet to send [15:58:27]OFD Sender: No OFD packet to send [15:58:32]OFD Sender: No OFD packet to send [15:58:37]OFD Sender: No OFD packet to send [15:58:42]OFD Sender: No OFD packet to send [15:58:47]OFD Sender: No OFD packet to send [15:58:52]OFD Sender: No OFD packet to send [15:58:57]OFD Sender: No OFD packet to send [15:59:02]OFD Sender: No OFD packet to send [15:59:07]OFD Sender: No OFD packet to send [15:59:12]OFD Sender: No OFD packet to send [15:59:17]OFD Sender: No OFD packet to send [15:59:22]OFD Sender: No OFD packet to send [15:59:27]OFD Sender: No OFD packet to send [15:59:31]accept exits with 9 [15:59:31]New connection [15:59:31]New thread 3066617188 created [15:59:31]Thread 3066473828 joined [15:59:31]Waiting for new connection... [15:59:31] Sock 9.Parse request [15:59:31]Sock 9.Check first char [15:59:31]Sock 9.First char is OK [15:59:31]request: POST /json_proto HTTP/1.0 [15:59:31]Method: POST [15:59:31]URL: /json_proto [15:59:31]Method is POST - this is cgi request [15:59:31]url: /json_proto [15:59:31]query_string will be loaded in cgi processing [15:59:31]execute_cgi json_proto POST (null) [15:59:31]execute_cgi path=json_proto method=POST [15:59:31]POST find Content-Length [15:59:31]Host: 172.17.55.133:8080 [15:59:31]Content-Length: 678 [15:59:31]Content-Type: application/json [15:59:31] [15:59:31]POST finish read [15:59:31]Found Content-Length = 678 [15:59:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:31]execute_script... [15:59: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)1036317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:31]POST & json_proto [15:59:31]process_json_proto [15:59:31]json parsed OK: [15:59:31]protocol is kg_v1.0 [15:59:31]action value=close_receipt [15:59:31]process_action close_receipt [15:59:31]cmd_close_receipt [15:59:31]MH_GetDate [15:59:31]Write to MH i2c: F0 00 00 02 99 8A [15:59:31]Write i2c OK [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: F0 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: F0 09 00 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: F0 09 00 02 99 00 69 1A C2 66 34 48 D8 65 F7 [15:59:31]GetLastDocTimeStamp 1723996680 [15:59:31]current date 1723996777 [15:59:31]FM_GetShiftState [15:59:31]SAM_PROTO_GetShiftState [15:59:31]wFMCommunicate request_size=4 [15:59:31]MH_SAM_APDU [15:59:31]CAPDU: 80 13 01 00 [15:59:31]Write to MH i2c: E2 08 00 03 99 80 13 01 00 00 00 00 00 19 [15:59:31]Write i2c OK [15:59:31]MH_I2C_Read... [15:59:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:31]Read from MH i2c: E2 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: E2 0E 00 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: E2 0E 00 03 99 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 56 [15:59:31]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:59:31]wFMCommunicate OK [15:59:31]SAM_PROTO_GetShiftState done [15:59:31]FM_GetShiftState done [15:59:31]opened in 1723940556 [15:59:31]opened+sec_in_day 1724026956 [15:59:31]quantity*price = 50036 [15:59:31]sum+1 = 50037 [15:59:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 323 18.08.2024 15:59 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260765 ФПД: 231225296902498 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T155937&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260765&fm=231225296902498&tin=02508201610067®Number=0000000000091865&sum=50000 [15:59:32]StoreToDocumentArchive [15:59:32]shift 449 fd 260765 [15:59:32]save to /storage/0449/doc_00260765 [15:59:32]save last doc name /storage/0449/doc_00260765 to /storage/kkm_last_doc_name [15:59:32]save OK [15:59:32]Clear old archive folders... [15:59:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:59:32]tlvbuf is 00385720 [15:59:32]SAM_PROTO_ClearQueue [15:59:32]wFMCommunicate request_size=4 [15:59:32]MH_SAM_APDU [15:59:32]CAPDU: 80 09 00 00 [15:59:32]Write to MH i2c: E2 08 00 10 99 80 09 00 00 00 00 00 00 1B [15:59:32]Write i2c OK [15:59:32]MH_I2C_Read... [15:59:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:32]Read from MH i2c: E2 [15:59:32]MH_I2C_Read... [15:59:32]Read from MH i2c: E2 03 00 [15:59:32]MH_I2C_Read... [15:59:32]Read from MH i2c: E2 03 00 10 99 00 90 00 1D [15:59:32]RAPDU: 90 00 [15:59:32]wFMCommunicate OK [15:59:32]SAM_PROTO_ClearQueue done [15:59:32]KKMCreateOFDPacket [15:59:32]OFDProtocolAddRootSTLVToBuf [15:59:32]FM_MakeSignedData [15:59:32]FM_MakeSignedData [15:59:32]SAM_PROTO_SignData [15:59:32]wFMCommunicate request_size=4 [15:59:32]MH_SAM_APDU [15:59:32]CAPDU: 80 0D 01 02 [15:59:32]Write to MH i2c: E2 08 00 11 99 80 0D 01 02 00 00 00 00 23 [15:59:32]Write i2c OK [15:59:32]MH_I2C_Read... [15:59:32]OFD Sender: No OFD packet to send [15:59:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:32]Read from MH i2c: E2 [15:59:32]MH_I2C_Read... [15:59:32]Read from MH i2c: E2 03 00 [15:59:32]MH_I2C_Read... [15:59:32]Read from MH i2c: E2 03 00 11 99 00 90 00 1E [15:59:32]RAPDU: 90 00 [15:59:32]wFMCommunicate OK [15:59:32]wFMCommunicate request_size=255 [15:59:32]MH_SAM_APDU [15:59:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 43 01 00 00 F4 03 04 00 69 1A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9D FA 03 00 35 04 06 00 D2 [15:59:32]Write to MH i2c: E2 02 01 12 99 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 43 01 00 00 F4 03 04 00 69 1A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9D FA 03 00 35 04 06 00 D2 00 00 BD [15:59:32]Write i2c OK [15:59:32]MH_I2C_Read... [15:59:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:32]Read from MH i2c: E2 [15:59:32]MH_I2C_Read... [15:59:32]Read from MH i2c: E2 03 00 [15:59:32]MH_I2C_Read... [15:59:32]Read from MH i2c: E2 03 00 12 99 00 90 00 1F [15:59:32]RAPDU: 90 00 [15:59:32]wFMCommunicate OK [15:59:32]wFMCommunicate request_size=10 [15:59:32]MH_SAM_APDU [15:59:32]CAPDU: 80 0D 02 02 05 4C 55 AF 59 62 [15:59:32]Write to MH i2c: E2 0D 00 13 99 80 0D 02 02 05 00 4C 55 AF 59 62 00 00 3B [15:59:32]Write i2c OK [15:59:32]MH_I2C_Read... [15:59:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:32]Read from MH i2c: E2 [15:59:32]MH_I2C_Read... [15:59:32]Read from MH i2c: E2 03 00 [15:59:32]MH_I2C_Read... [15:59:32]Read from MH i2c: E2 03 00 13 99 00 90 00 20 [15:59:32]RAPDU: 90 00 [15:59:32]wFMCommunicate OK [15:59:32]wFMCommunicate request_size=4 [15:59:32]MH_SAM_APDU [15:59:32]CAPDU: 80 0D 03 02 [15:59:32]Write to MH i2c: E2 08 00 14 99 80 0D 03 02 00 00 00 00 28 [15:59:32]Write i2c OK [15:59:32]MH_I2C_Read... [15:59:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:33]Read from MH i2c: E2 [15:59:33]MH_I2C_Read... [15:59:33]Read from MH i2c: E2 0B 00 [15:59:33]MH_I2C_Read... [15:59:33]Read from MH i2c: E2 0B 00 14 99 00 38 FE 68 3C D3 C3 12 95 90 00 40 [15:59:33]RAPDU: 38 FE 68 3C D3 C3 12 95 90 00 [15:59:33]wFMCommunicate OK [15:59:33]SAM_PROTO_SignData done [15:59:33]FM_MakeSignedData done [15:59:33]CreateOFDProtocolMessage [15:59:33]wFMCommunicate request_size=4 [15:59:33]MH_SAM_APDU [15:59:33]CAPDU: 80 11 00 00 [15:59:33]Write to MH i2c: E2 08 00 15 99 80 11 00 00 00 00 00 00 28 [15:59:33]Write i2c OK [15:59:33]MH_I2C_Read... [15:59:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:33]Read from MH i2c: E2 [15:59:33]MH_I2C_Read... [15:59:33]Read from MH i2c: E2 17 00 [15:59:33]MH_I2C_Read... [15:59:33]Read from MH i2c: E2 17 00 15 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 75 [15:59:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:59:33]wFMCommunicate OK [15:59:33]CreateOFDProtocolMessage done [15:59:33]OFDSenderStorePacket 260765 [15:59:33]StoreOFDPacket docnum=260765 [15:59:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 1D 02 07 01 77 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 43 01 00 00 F4 03 04 00 69 1A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9D FA 03 00 35 04 06 00 D2 4C 55 AF 59 62 38 FE 68 3C D3 C3 12 95 [15:59:33]CheckFolder [15:59:33]dirname=/storage/ofd_packets [15:59:33]CheckFolder done [15:59:33]ProducePacketName [15:59:33]name=ofd_packets/00260765 [15:59:33]NVStorageSaveData ofd_packets/00260765 [15:59:33]File name is /storage/ofd_packets/00260765 [15:59:33]Write 301 bytes [15:59:33]NVStorageSaveData done [15:59:33]OFDSenderStorePacket done [15:59:33]KKMCreateOFDPacket done [15:59:33]NVStorageSaveData kkm_last_timestamp [15:59:33]File name is /storage/kkm_last_timestamp [15:59:33]Write 4 bytes [15:59:33]NVStorageSaveData done [15:59:33]ExternCall_PrintAddStr [15:59:33]wPrintStart [15:59:33]Write to MH i2c: 01 00 00 16 99 AF [15:59:33]Write i2c OK [15:59:33]MH_I2C_Read... [15:59:33]Read from MH i2c: 01 [15:59:33]MH_I2C_Read... [15:59:33]Read from MH i2c: 01 07 00 [15:59:33]MH_I2C_Read... [15:59:33]Read from MH i2c: 01 07 00 16 99 00 00 00 00 00 FF 0F C4 [15:59:33]RasterBufferAndPrint [15:59:33]line Счет N : (1)1036317 [15:59:33]line ИНН: 02508201610067 [15:59:33]line Контрольно-Кассовый Чек [15:59:33]line ПРОДАЖА [15:59:33]line ТРК (МРК, ГНК) : 12 [15:59:33]line Товар: 2710124130 [15:59:33]line Аи-92-К-5 [15:59:33]line 7.380 * 67.80 [15:59:33]line = 500.36 [15:59:33]line НДС 12% НСП 1% [15:59:33]line > о реализуемом товаре [15:59:33]line ОКРУГЛЕНИЕ: -0.36 [15:59:33]line ИТОГО: 500.00 [15:59:33]line Внесено: 500.00 [15:59:33]line СДАЧА: 0.00 [15:59:33]line НСП 1% : 4.43 [15:59:33]line НДС 12% : 53.14 [15:59:33]line Наличными: 500.00 [15:59:33]line Безнал.: 0.00 [15:59:33]line Место: АЗС № 94 "Партнер Нефть" [15:59:33]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [15:59:33]line СНО: Общий режим [15:59:33]line Чек 323 18.08.2024 15:59 [15:59:33]line Смена: 449 ФФД: 1.0 [15:59:33]line ЗНМ: 0300000099 [15:59:33]line РНМ: 0000000000091865 [15:59:33]line Версия ККМ: 001 [15:59:33]line ФМ: 0000000000871820 [15:59:33]line ФД: 260765 [15:59:33]line ФПД: 231225296902498 [15:59:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T155937&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260765&fm=231225296902498&tin=02508201610067®Number=0000000000091865&sum=50000 [15:59:33]OFD Sender: Processing packet 260765 [packets to send 192, broken 191] [15:59:33]ProducePacketName [15:59:33]name=ofd_packets/00260765 [15:59:33]OFD Sender: To server: pG, [15:59:33]CommunicateWithHost lk.salyk.kg:30040 [15:59:33]ConnectInit lk.salyk.kg [15:59:33]written 0, free lines is 4095 [15:59:33]Connected sock=10 [15:59: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 30 0F 01 00 00 1D 02 07 01 77 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 43 01 00 00 F4 03 04 00 69 1A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9D FA 03 00 35 04 06 00 D2 4C 55 AF 59 62 38 FE 68 3C D3 C3 12 95 [15:59: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 30 4F 00 00 00 D4 EC 47 00 05 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9D FA 03 00 F4 03 04 00 BD C3 C1 66 B6 04 01 00 00 29 A7 AA E3 21 CD 6F 90 [15:59:33]CommunicateWithHost err = 0 [15:59:33]CheckOFDResponse [15:59:33]1017 (14) - 77093643461234 [15:59:33]1041 (16) - 0000000000871820 [15:59:33]1040 (4) - 260765 [15:59:33]1012 (4) - 18.08.2024 09:49 [15:59:33]1206 (1) - 0 [15:59:33]OFD Sender: Remove packet 260765 [15:59:33]ProducePacketName [15:59:33]name=ofd_packets/00260765 [15:59:33]NVStorageDeleteData [15:59:33]Write to MH i2c: 01 00 00 41 99 DA [15:59:33]Write i2c OK [15:59:33]MH_I2C_Read... [15:59:33]Read from MH i2c: 01 [15:59:33]MH_I2C_Read... [15:59:33]Read from MH i2c: 01 07 00 [15:59:33]MH_I2C_Read... [15:59:33]Read from MH i2c: 01 07 00 41 99 00 00 00 00 00 6D 0C 5A [15:59:33]RasterBufferAndPrint [15:59:33]line [15:59:33]line [15:59:33]line [15:59:33]line [15:59:33]line [15:59:33]written 0, free lines is 3184 [15:59:33]MH_Cut [15:59:33]Write to MH i2c: D1 01 00 48 99 01 B3 [15:59:33]Write i2c OK [15:59:33]MH_I2C_Read... [15:59:33]Read from MH i2c: D1 [15:59:33]MH_I2C_Read... [15:59:33]Read from MH i2c: D1 01 00 [15:59:33]MH_I2C_Read... [15:59:33]Read from MH i2c: D1 01 00 48 99 00 B2 [15:59:33]Write to MH i2c: 01 00 00 49 99 E2 [15:59:33]Write i2c OK [15:59:33]MH_I2C_Read... [15:59:34]OFD Sender: No OFD packet to send [15:59:35]*** Cut start [15:59:35]*** Purtial cut [15:59:35]*** Stage 1: CUTSNS_PIN = 1 [15:59:37]Read from MH i2c: 01 [15:59:37]MH_I2C_Read... [15:59:37]*** Stop cut motor [15:59:37]*** Cut end [15:59:37]Read from MH i2c: 01 07 00 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: 01 07 00 49 99 00 00 00 00 00 FF 0F F7 [15:59:37]process_action close_receipt done [15:59:37]requested_data is exist [15:59:37]produce_requested_data [15:59:37]requested_item fm.sn is exist - process it [15:59:37]wFMCommunicate request_size=4 [15:59:37]MH_SAM_APDU [15:59:37]CAPDU: 80 11 00 00 [15:59:37]Write to MH i2c: E2 08 00 4A 99 80 11 00 00 00 00 00 00 5D [15:59:37]Write i2c OK [15:59:37]MH_I2C_Read... [15:59:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:37]Read from MH i2c: E2 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: E2 17 00 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: E2 17 00 4A 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 AA [15:59:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [15:59:37]wFMCommunicate OK [15:59:37]requested_item fd.num is exist - process it [15:59:37]SAM_PROTO_GetFieldsCounters [15:59:37]wFMCommunicate request_size=4 [15:59:37]MH_SAM_APDU [15:59:37]CAPDU: 80 13 00 00 [15:59:37]Write to MH i2c: E2 08 00 4B 99 80 13 00 00 00 00 00 00 60 [15:59:37]Write i2c OK [15:59:37]MH_I2C_Read... [15:59:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:37]Read from MH i2c: E2 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: E2 62 00 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: E2 62 00 4B 99 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 9D FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 A7 [15:59: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 9D FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:59:37]wFMCommunicate OK [15:59:37]SAM_PROTO_GetFieldsCounters done [15:59:37]requested_item shift.num is exist - process it [15:59:37]requested_item shift.opened is exist - process it [15:59:37]req_shift_opened [15:59:37]FM_GetShiftState [15:59:37]SAM_PROTO_GetShiftState [15:59:37]wFMCommunicate request_size=4 [15:59:37]MH_SAM_APDU [15:59:37]CAPDU: 80 13 01 00 [15:59:37]Write to MH i2c: E2 08 00 4C 99 80 13 01 00 00 00 00 00 62 [15:59:37]Write i2c OK [15:59:37]MH_I2C_Read... [15:59:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:37]Read from MH i2c: E2 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: E2 0E 00 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: E2 0E 00 4C 99 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 9F [15:59:37]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [15:59:37]wFMCommunicate OK [15:59:37]SAM_PROTO_GetShiftState done [15:59:37]FM_GetShiftState done [15:59:37]req_shift_opened done [15:59:37]requested_item shift.open_date is exist - process it [15:59:37]req_shift_open_date [15:59:37]req_shift_open_date done [15:59:37]produce_requested_data done [15:59:37]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260765,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [15:59:37]process_action_free close_receipt [15:59:37]json_value_free [15:59:37]json_value_free done [15:59:37]process_json_proto returns [15:59:37]Send response to host [15:59:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260765,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [15:59:37]free response buf [15:59:37]execute_script done [15:59:37]execute_script returns [15:59:37]free content buf [15:59:37]Sock 9.Close socket [15:59:37]Sock 9.Thread stoped [15:59:39]OFD Sender: No OFD packet to send [15:59:44]OFD Sender: No OFD packet to send [15:59:49]OFD Sender: No OFD packet to send [15:59:54]OFD Sender: No OFD packet to send [15:59:59]OFD Sender: No OFD packet to send [16:00:04]OFD Sender: No OFD packet to send [16:00:09]OFD Sender: No OFD packet to send [16:00:14]OFD Sender: No OFD packet to send [16:00:19]OFD Sender: No OFD packet to send [16:00:24]OFD Sender: No OFD packet to send [16:00:29]OFD Sender: No OFD packet to send [16:00:34]OFD Sender: No OFD packet to send [16:00:39]OFD Sender: No OFD packet to send [16:00:44]OFD Sender: No OFD packet to send [16:00:49]OFD Sender: No OFD packet to send [16:00:52]accept exits with 7 [16:00:52]New connection [16:00:52]New thread 3066473828 created [16:00:52]Thread 3066617188 joined [16:00:52]Waiting for new connection... [16:00:52] Sock 7.Parse request [16:00:52]Sock 7.Check first char [16:00:52]Sock 7.First char is OK [16:00:52]request: POST /json_proto HTTP/1.0 [16:00:52]Method: POST [16:00:52]URL: /json_proto [16:00:52]Method is POST - this is cgi request [16:00:52]url: /json_proto [16:00:52]query_string will be loaded in cgi processing [16:00:52]execute_cgi json_proto POST (null) [16:00:52]execute_cgi path=json_proto method=POST [16:00:52]POST find Content-Length [16:00:52]Host: 172.17.55.133:8080 [16:00:52]Content-Length: 678 [16:00:52]Content-Type: application/json [16:00:52] [16:00:52]POST finish read [16:00:52]Found Content-Length = 678 [16:00:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036319", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:52]execute_script... [16:00: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)1036319", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:52]POST & json_proto [16:00:52]process_json_proto [16:00:52]json parsed OK: [16:00:52]protocol is kg_v1.0 [16:00:52]action value=close_receipt [16:00:52]process_action close_receipt [16:00:52]cmd_close_receipt [16:00:52]MH_GetDate [16:00:52]Write to MH i2c: F0 00 00 4D 99 D5 [16:00:52]Write i2c OK [16:00:52]MH_I2C_Read... [16:00:52]Read from MH i2c: F0 [16:00:52]MH_I2C_Read... [16:00:52]Read from MH i2c: F0 09 00 [16:00:52]MH_I2C_Read... [16:00:52]Read from MH i2c: F0 09 00 4D 99 00 BA 1A C2 66 34 48 D8 65 93 [16:00:52]GetLastDocTimeStamp 1723996777 [16:00:52]current date 1723996858 [16:00:52]FM_GetShiftState [16:00:52]SAM_PROTO_GetShiftState [16:00:52]wFMCommunicate request_size=4 [16:00:52]MH_SAM_APDU [16:00:52]CAPDU: 80 13 01 00 [16:00:52]Write to MH i2c: E2 08 00 4E 99 80 13 01 00 00 00 00 00 64 [16:00:52]Write i2c OK [16:00:52]MH_I2C_Read... [16:00:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:52]Read from MH i2c: E2 [16:00:52]MH_I2C_Read... [16:00:52]Read from MH i2c: E2 0E 00 [16:00:52]MH_I2C_Read... [16:00:52]Read from MH i2c: E2 0E 00 4E 99 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A1 [16:00:52]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:00:52]wFMCommunicate OK [16:00:52]SAM_PROTO_GetShiftState done [16:00:52]FM_GetShiftState done [16:00:52]opened in 1723940556 [16:00:52]opened+sec_in_day 1724026956 [16:00:52]quantity*price = 50010 [16:00:52]sum+1 = 50012 [16:00:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 324 18.08.2024 16:00 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260766 ФПД: 84673498211843 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T160058&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260766&fm=84673498211843&tin=02508201610067®Number=0000000000091865&sum=50000 [16:00:53]StoreToDocumentArchive [16:00:53]shift 449 fd 260766 [16:00:53]save to /storage/0449/doc_00260766 [16:00:53]save last doc name /storage/0449/doc_00260766 to /storage/kkm_last_doc_name [16:00:53]save OK [16:00:53]Clear old archive folders... [16:00:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:00:53]tlvbuf is 004A1E80 [16:00:53]SAM_PROTO_ClearQueue [16:00:53]wFMCommunicate request_size=4 [16:00:53]MH_SAM_APDU [16:00:53]CAPDU: 80 09 00 00 [16:00:53]Write to MH i2c: E2 08 00 5B 99 80 09 00 00 00 00 00 00 66 [16:00:53]Write i2c OK [16:00:53]MH_I2C_Read... [16:00:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:53]Read from MH i2c: E2 [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: E2 03 00 [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: E2 03 00 5B 99 00 90 00 68 [16:00:53]RAPDU: 90 00 [16:00:53]wFMCommunicate OK [16:00:53]SAM_PROTO_ClearQueue done [16:00:53]KKMCreateOFDPacket [16:00:53]OFDProtocolAddRootSTLVToBuf [16:00:53]FM_MakeSignedData [16:00:53]FM_MakeSignedData [16:00:53]SAM_PROTO_SignData [16:00:53]wFMCommunicate request_size=4 [16:00:53]MH_SAM_APDU [16:00:53]CAPDU: 80 0D 01 02 [16:00:53]Write to MH i2c: E2 08 00 5C 99 80 0D 01 02 00 00 00 00 6E [16:00:53]Write i2c OK [16:00:53]MH_I2C_Read... [16:00:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:53]Read from MH i2c: E2 [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: E2 03 00 [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: E2 03 00 5C 99 00 90 00 69 [16:00:53]RAPDU: 90 00 [16:00:53]wFMCommunicate OK [16:00:53]wFMCommunicate request_size=255 [16:00:53]MH_SAM_APDU [16:00:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 BA 1A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9E FA 03 00 35 04 06 00 4D [16:00:53]Write to MH i2c: E2 02 01 5D 99 80 0D 02 02 FA 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 BA 1A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9E FA 03 00 35 04 06 00 4D 00 00 BE [16:00:53]Write i2c OK [16:00:53]MH_I2C_Read... [16:00:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:54]Read from MH i2c: E2 [16:00:54]MH_I2C_Read... [16:00:54]Read from MH i2c: E2 03 00 [16:00:54]MH_I2C_Read... [16:00:54]Read from MH i2c: E2 03 00 5D 99 00 90 00 6A [16:00:54]RAPDU: 90 00 [16:00:54]wFMCommunicate OK [16:00:54]wFMCommunicate request_size=10 [16:00:54]MH_SAM_APDU [16:00:54]CAPDU: 80 0D 02 02 05 02 95 C8 66 03 [16:00:54]Write to MH i2c: E2 0D 00 5E 99 80 0D 02 02 05 00 02 95 C8 66 03 00 00 43 [16:00:54]Write i2c OK [16:00:54]MH_I2C_Read... [16:00:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:54]Read from MH i2c: E2 [16:00:54]MH_I2C_Read... [16:00:54]Read from MH i2c: E2 03 00 [16:00:54]MH_I2C_Read... [16:00:54]Read from MH i2c: E2 03 00 5E 99 00 90 00 6B [16:00:54]RAPDU: 90 00 [16:00:54]wFMCommunicate OK [16:00:54]wFMCommunicate request_size=4 [16:00:54]MH_SAM_APDU [16:00:54]CAPDU: 80 0D 03 02 [16:00:54]Write to MH i2c: E2 08 00 5F 99 80 0D 03 02 00 00 00 00 73 [16:00:54]Write i2c OK [16:00:54]MH_I2C_Read... [16:00:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:54]Read from MH i2c: E2 [16:00:54]MH_I2C_Read... [16:00:54]Read from MH i2c: E2 0B 00 [16:00:54]MH_I2C_Read... [16:00:54]Read from MH i2c: E2 0B 00 5F 99 00 EA 88 F0 1E 70 FC C6 8B 90 00 B1 [16:00:54]RAPDU: EA 88 F0 1E 70 FC C6 8B 90 00 [16:00:54]wFMCommunicate OK [16:00:54]SAM_PROTO_SignData done [16:00:54]FM_MakeSignedData done [16:00:54]CreateOFDProtocolMessage [16:00:54]wFMCommunicate request_size=4 [16:00:54]MH_SAM_APDU [16:00:54]CAPDU: 80 11 00 00 [16:00:54]Write to MH i2c: E2 08 00 60 99 80 11 00 00 00 00 00 00 73 [16:00:54]Write i2c OK [16:00:54]MH_I2C_Read... [16:00:54]OFD Sender: No OFD packet to send [16:00:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:54]Read from MH i2c: E2 [16:00:54]MH_I2C_Read... [16:00:54]Read from MH i2c: E2 17 00 [16:00:54]MH_I2C_Read... [16:00:54]Read from MH i2c: E2 17 00 60 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C0 [16:00:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:00:54]wFMCommunicate OK [16:00:54]CreateOFDProtocolMessage done [16:00:54]OFDSenderStorePacket 260766 [16:00:54]StoreOFDPacket docnum=260766 [16:00:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 C8 E7 07 01 A8 52 5A 03 01 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 BA 1A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9E FA 03 00 35 04 06 00 4D 02 95 C8 66 03 EA 88 F0 1E 70 FC C6 8B [16:00:54]CheckFolder [16:00:54]dirname=/storage/ofd_packets [16:00:54]CheckFolder done [16:00:54]ProducePacketName [16:00:54]name=ofd_packets/00260766 [16:00:54]NVStorageSaveData ofd_packets/00260766 [16:00:54]File name is /storage/ofd_packets/00260766 [16:00:54]Write 301 bytes [16:00:54]NVStorageSaveData done [16:00:54]OFDSenderStorePacket done [16:00:54]KKMCreateOFDPacket done [16:00:54]NVStorageSaveData kkm_last_timestamp [16:00:54]File name is /storage/kkm_last_timestamp [16:00:54]Write 4 bytes [16:00:54]NVStorageSaveData done [16:00:54]ExternCall_PrintAddStr [16:00:54]wPrintStart [16:00:54]Write to MH i2c: 01 00 00 61 99 FA [16:00:54]Write i2c OK [16:00:54]MH_I2C_Read... [16:00:54]Read from MH i2c: 01 [16:00:54]MH_I2C_Read... [16:00:54]Read from MH i2c: 01 07 00 [16:00:54]MH_I2C_Read... [16:00:54]Read from MH i2c: 01 07 00 61 99 00 00 00 00 00 FF 0F 0F [16:00:54]RasterBufferAndPrint [16:00:54]line Счет N : (1)1036319 [16:00:54]line ИНН: 02508201610067 [16:00:54]line Контрольно-Кассовый Чек [16:00:54]line ПРОДАЖА [16:00:54]line ТРК (МРК, ГНК) : 13 [16:00:54]line Товар: 2710124500 [16:00:54]line Аи-95-К-5 [16:00:54]line 6.740 * 74.20 [16:00:54]line = 500.11 [16:00:54]line НДС 12% НСП 1% [16:00:54]line > о реализуемом товаре [16:00:54]line ОКРУГЛЕНИЕ: -0.11 [16:00:54]line ИТОГО: 500.00 [16:00:54]line Внесено: 500.00 [16:00:54]line СДАЧА: 0.00 [16:00:54]line НСП 1% : 4.43 [16:00:54]line НДС 12% : 53.11 [16:00:54]line Наличными: 500.00 [16:00:54]line Безнал.: 0.00 [16:00:54]line Место: АЗС № 94 "Партнер Нефть" [16:00:54]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [16:00:54]line СНО: Общий режим [16:00:54]line Чек 324 18.08.2024 16:00 [16:00:54]line Смена: 449 ФФД: 1.0 [16:00:54]line ЗНМ: 0300000099 [16:00:54]line РНМ: 0000000000091865 [16:00:54]line Версия ККМ: 001 [16:00:54]line ФМ: 0000000000871820 [16:00:54]line ФД: 260766 [16:00:54]line ФПД: 84673498211843 [16:00:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T160058&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260766&fm=84673498211843&tin=02508201610067®Number=0000000000091865&sum=50000 [16:00:54]OFD Sender: Processing packet 260766 [packets to send 192, broken 191] [16:00:54]ProducePacketName [16:00:54]name=ofd_packets/00260766 [16:00:54]OFD Sender: To server: pG, [16:00:54]CommunicateWithHost lk.salyk.kg:30040 [16:00:54]ConnectInit lk.salyk.kg [16:00:54]written 0, free lines is 4095 [16:00:54]Connected sock=10 [16:00:54]Data 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 30 0F 01 00 00 C8 E7 07 01 A8 52 5A 03 01 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 BA 1A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9E FA 03 00 35 04 06 00 4D 02 95 C8 66 03 EA 88 F0 1E 70 FC C6 8B [16:00: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 30 4F 00 00 00 10 B4 47 00 32 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 30 10 04 04 00 9E FA 03 00 F4 03 04 00 0E C4 C1 66 B6 04 01 00 00 77 1B 30 6B 8A B7 B3 5E [16:00:55]CommunicateWithHost err = 0 [16:00:55]CheckOFDResponse [16:00:55]1017 (14) - 77093643461234 [16:00:55]1041 (16) - 0000000000871820 [16:00:55]1040 (4) - 260766 [16:00:55]1012 (4) - 18.08.2024 09:51 [16:00:55]1206 (1) - 0 [16:00:55]OFD Sender: Remove packet 260766 [16:00:55]ProducePacketName [16:00:55]name=ofd_packets/00260766 [16:00:55]NVStorageDeleteData [16:00:55]Write to MH i2c: 01 00 00 8C 99 25 [16:00:55]Write i2c OK [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: 01 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: 01 07 00 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: 01 07 00 8C 99 00 00 00 00 00 6C 0C A4 [16:00:55]RasterBufferAndPrint [16:00:55]line [16:00:55]line [16:00:55]line [16:00:55]line [16:00:55]line [16:00:55]written 0, free lines is 3184 [16:00:55]MH_Cut [16:00:55]Write to MH i2c: D1 01 00 93 99 01 FE [16:00:55]Write i2c OK [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: D1 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: D1 01 00 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: D1 01 00 93 99 00 FD [16:00:55]Write to MH i2c: 01 00 00 94 99 2D [16:00:55]Write i2c OK [16:00:55]MH_I2C_Read... [16:00:55]OFD Sender: No OFD packet to send [16:00:56]*** Cut start [16:00:56]*** Purtial cut [16:00:56]*** Stage 1: CUTSNS_PIN = 1 [16:00:58]Read from MH i2c: 01 [16:00:58]MH_I2C_Read... [16:00:58]*** Stop cut motor [16:00:58]*** Cut end [16:00:58]Read from MH i2c: 01 07 00 [16:00:58]MH_I2C_Read... [16:00:58]Read from MH i2c: 01 07 00 94 99 00 00 00 00 00 FF 0F 42 [16:00:58]process_action close_receipt done [16:00:58]requested_data is exist [16:00:58]produce_requested_data [16:00:58]requested_item fm.sn is exist - process it [16:00:58]wFMCommunicate request_size=4 [16:00:58]MH_SAM_APDU [16:00:58]CAPDU: 80 11 00 00 [16:00:58]Write to MH i2c: E2 08 00 95 99 80 11 00 00 00 00 00 00 A8 [16:00:58]Write i2c OK [16:00:58]MH_I2C_Read... [16:00:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:58]Read from MH i2c: E2 [16:00:58]MH_I2C_Read... [16:00:58]Read from MH i2c: E2 17 00 [16:00:58]MH_I2C_Read... [16:00:58]Read from MH i2c: E2 17 00 95 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F5 [16:00:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:00:58]wFMCommunicate OK [16:00:58]requested_item fd.num is exist - process it [16:00:58]SAM_PROTO_GetFieldsCounters [16:00:58]wFMCommunicate request_size=4 [16:00:58]MH_SAM_APDU [16:00:58]CAPDU: 80 13 00 00 [16:00:58]Write to MH i2c: E2 08 00 96 99 80 13 00 00 00 00 00 00 AB [16:00:58]Write i2c OK [16:00:58]MH_I2C_Read... [16:00:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:58]Read from MH i2c: E2 [16:00:58]MH_I2C_Read... [16:00:58]Read from MH i2c: E2 62 00 [16:00:58]MH_I2C_Read... [16:00:58]Read from MH i2c: E2 62 00 96 99 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 9E FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 F6 [16:00: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 9E FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:00:58]wFMCommunicate OK [16:00:58]SAM_PROTO_GetFieldsCounters done [16:00:58]requested_item shift.num is exist - process it [16:00:58]requested_item shift.opened is exist - process it [16:00:58]req_shift_opened [16:00:58]FM_GetShiftState [16:00:58]SAM_PROTO_GetShiftState [16:00:58]wFMCommunicate request_size=4 [16:00:58]MH_SAM_APDU [16:00:58]CAPDU: 80 13 01 00 [16:00:58]Write to MH i2c: E2 08 00 97 99 80 13 01 00 00 00 00 00 AD [16:00:58]Write i2c OK [16:00:58]MH_I2C_Read... [16:00:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:58]Read from MH i2c: E2 [16:00:58]MH_I2C_Read... [16:00:58]Read from MH i2c: E2 0E 00 [16:00:58]MH_I2C_Read... [16:00:58]Read from MH i2c: E2 0E 00 97 99 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 EA [16:00:58]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:00:58]wFMCommunicate OK [16:00:58]SAM_PROTO_GetShiftState done [16:00:58]FM_GetShiftState done [16:00:58]req_shift_opened done [16:00:58]requested_item shift.open_date is exist - process it [16:00:58]req_shift_open_date [16:00:58]req_shift_open_date done [16:00:58]produce_requested_data done [16:00:58]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260766,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [16:00:58]process_action_free close_receipt [16:00:58]json_value_free [16:00:58]json_value_free done [16:00:58]process_json_proto returns [16:00:58]Send response to host [16:00:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260766,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [16:00:58]free response buf [16:00:58]execute_script done [16:00:58]execute_script returns [16:00:58]free content buf [16:00:58]Sock 7.Close socket [16:00:58]Sock 7.Thread stoped [16:01:00]OFD Sender: No OFD packet to send [16:01:05]OFD Sender: No OFD packet to send [16:01:10]accept exits with 9 [16:01:10]New connection [16:01:10]New thread 3066617188 created [16:01:10]Thread 3066473828 joined [16:01:10]Waiting for new connection... [16:01:10] Sock 9.Parse request [16:01:10]Sock 9.Check first char [16:01:10]Sock 9.First char is OK [16:01:10]request: POST /json_proto HTTP/1.0 [16:01:10]Method: POST [16:01:10]URL: /json_proto [16:01:10]Method is POST - this is cgi request [16:01:10]url: /json_proto [16:01:10]query_string will be loaded in cgi processing [16:01:10]execute_cgi json_proto POST (null) [16:01:10]execute_cgi path=json_proto method=POST [16:01:10]POST find Content-Length [16:01:10]Host: 172.17.55.133:8080 [16:01:10]Content-Length: 688 [16:01:10]Content-Type: application/json [16:01:10] [16:01:10]POST finish read [16:01:10]Found Content-Length = 688 [16:01:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:10]execute_script... [16:01:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:10]POST & json_proto [16:01:10]process_json_proto [16:01:10]json parsed OK: [16:01:10]protocol is kg_v1.0 [16:01:10]action value=close_receipt [16:01:10]process_action close_receipt [16:01:10]cmd_close_receipt [16:01:10]MH_GetDate [16:01:10]Write to MH i2c: F0 00 00 98 99 20 [16:01:10]Write i2c OK [16:01:10]MH_I2C_Read... [16:01:10]Read from MH i2c: F0 [16:01:10]MH_I2C_Read... [16:01:10]Read from MH i2c: F0 09 00 [16:01:10]MH_I2C_Read... [16:01:10]Read from MH i2c: F0 09 00 98 99 00 CB 1A C2 66 34 48 D8 65 EF [16:01:10]GetLastDocTimeStamp 1723996858 [16:01:10]current date 1723996875 [16:01:10]FM_GetShiftState [16:01:10]SAM_PROTO_GetShiftState [16:01:10]wFMCommunicate request_size=4 [16:01:10]MH_SAM_APDU [16:01:10]CAPDU: 80 13 01 00 [16:01:10]Write to MH i2c: E2 08 00 99 99 80 13 01 00 00 00 00 00 AF [16:01:10]Write i2c OK [16:01:10]MH_I2C_Read... [16:01:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:10]Read from MH i2c: E2 [16:01:10]MH_I2C_Read... [16:01:10]Read from MH i2c: E2 0E 00 [16:01:10]MH_I2C_Read... [16:01:10]Read from MH i2c: E2 0E 00 99 99 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 EC [16:01:10]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:01:10]wFMCommunicate OK [16:01:10]SAM_PROTO_GetShiftState done [16:01:10]FM_GetShiftState done [16:01:10]opened in 1723940556 [16:01:10]opened+sec_in_day 1724026956 [16:01:10]quantity*price = 200025 [16:01:10]sum+1 = 200026 [16:01:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 325 18.08.2024 16:01 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260767 ФПД: 144048610461168 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T160115&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260767&fm=144048610461168&tin=02508201610067®Number=0000000000091865&sum=200000 [16:01:11]StoreToDocumentArchive [16:01:11]shift 449 fd 260767 [16:01:11]save to /storage/0449/doc_00260767 [16:01:11]save last doc name /storage/0449/doc_00260767 to /storage/kkm_last_doc_name [16:01:11]save OK [16:01:11]Clear old archive folders... [16:01:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:01:11]tlvbuf is 00540A30 [16:01:11]SAM_PROTO_ClearQueue [16:01:11]wFMCommunicate request_size=4 [16:01:11]MH_SAM_APDU [16:01:11]CAPDU: 80 09 00 00 [16:01:11]Write to MH i2c: E2 08 00 A6 99 80 09 00 00 00 00 00 00 B1 [16:01:11]Write i2c OK [16:01:11]MH_I2C_Read... [16:01:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:01:11]Read from MH i2c: E2 [16:01:11]MH_I2C_Read... [16:01:11]Read from MH i2c: E2 03 00 [16:01:11]MH_I2C_Read... [16:01:11]Read from MH i2c: E2 03 00 A6 99 00 90 00 B3 [16:01:11]RAPDU: 90 00 [16:01:11]wFMCommunicate OK [16:01:11]SAM_PROTO_ClearQueue done [16:01:11]KKMCreateOFDPacket [16:01:11]OFDProtocolAddRootSTLVToBuf [16:01:11]FM_MakeSignedData [16:01:11]FM_MakeSignedData [16:01:11]SAM_PROTO_SignData [16:01:11]wFMCommunicate request_size=4 [16:01:11]MH_SAM_APDU [16:01:11]CAPDU: 80 0D 01 02 [16:01:11]Write to MH i2c: E2 08 00 A7 99 80 0D 01 02 00 00 00 00 B9 [16:01:11]Write i2c OK [16:01:11]MH_I2C_Read... [16:01:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:01:11]Read from MH i2c: E2 [16:01:11]MH_I2C_Read... [16:01:11]Read from MH i2c: E2 03 00 [16:01:11]MH_I2C_Read... [16:01:11]Read from MH i2c: E2 03 00 A7 99 00 90 00 B4 [16:01:11]RAPDU: 90 00 [16:01:11]wFMCommunicate OK [16:01:11]wFMCommunicate request_size=255 [16:01:11]MH_SAM_APDU [16:01:11]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 45 01 00 00 F4 03 04 00 CB 1A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9F FA 03 00 35 04 06 00 [16:01:11]Write to MH i2c: E2 02 01 A8 99 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 45 01 00 00 F4 03 04 00 CB 1A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9F FA 03 00 35 04 06 00 00 00 C2 [16:01:11]Write i2c OK [16:01:11]MH_I2C_Read... [16:01:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:11]Read from MH i2c: E2 [16:01:11]MH_I2C_Read... [16:01:11]Read from MH i2c: E2 03 00 [16:01:11]MH_I2C_Read... [16:01:11]Read from MH i2c: E2 03 00 A8 99 00 90 00 B5 [16:01:11]RAPDU: 90 00 [16:01:11]wFMCommunicate OK [16:01:11]wFMCommunicate request_size=11 [16:01:11]MH_SAM_APDU [16:01:11]CAPDU: 80 0D 02 02 06 83 02 EE 41 C5 F0 [16:01:11]Write to MH i2c: E2 0E 00 A9 99 80 0D 02 02 06 00 83 02 EE 41 C5 F0 00 00 31 [16:01:11]Write i2c OK [16:01:11]MH_I2C_Read... [16:01:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:11]Read from MH i2c: E2 [16:01:11]MH_I2C_Read... [16:01:11]Read from MH i2c: E2 03 00 [16:01:11]MH_I2C_Read... [16:01:11]Read from MH i2c: E2 03 00 A9 99 00 90 00 B6 [16:01:11]RAPDU: 90 00 [16:01:11]wFMCommunicate OK [16:01:11]wFMCommunicate request_size=4 [16:01:11]MH_SAM_APDU [16:01:11]CAPDU: 80 0D 03 02 [16:01:11]Write to MH i2c: E2 08 00 AA 99 80 0D 03 02 00 00 00 00 BE [16:01:11]Write i2c OK [16:01:11]MH_I2C_Read... [16:01:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:01:11]Read from MH i2c: E2 [16:01:11]MH_I2C_Read... [16:01:11]Read from MH i2c: E2 0B 00 [16:01:11]MH_I2C_Read... [16:01:11]Read from MH i2c: E2 0B 00 AA 99 00 D0 23 5A F0 20 12 B5 76 90 00 59 [16:01:11]RAPDU: D0 23 5A F0 20 12 B5 76 90 00 [16:01:11]wFMCommunicate OK [16:01:11]SAM_PROTO_SignData done [16:01:11]FM_MakeSignedData done [16:01:11]CreateOFDProtocolMessage [16:01:11]wFMCommunicate request_size=4 [16:01:11]MH_SAM_APDU [16:01:11]CAPDU: 80 11 00 00 [16:01:11]Write to MH i2c: E2 08 00 AB 99 80 11 00 00 00 00 00 00 BE [16:01:11]Write i2c OK [16:01:11]MH_I2C_Read... [16:01:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:11]Read from MH i2c: E2 [16:01:11]MH_I2C_Read... [16:01:11]Read from MH i2c: E2 17 00 [16:01:11]MH_I2C_Read... [16:01:11]Read from MH i2c: E2 17 00 AB 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 0B [16:01:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:01:11]wFMCommunicate OK [16:01:11]CreateOFDProtocolMessage done [16:01:11]OFDSenderStorePacket 260767 [16:01:11]StoreOFDPacket docnum=260767 [16:01:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 CF CA 08 01 4C 3D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 45 01 00 00 F4 03 04 00 CB 1A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9F FA 03 00 35 04 06 00 83 02 EE 41 C5 F0 D0 23 5A F0 20 12 B5 76 [16:01:11]CheckFolder [16:01:11]dirname=/storage/ofd_packets [16:01:11]CheckFolder done [16:01:11]ProducePacketName [16:01:11]name=ofd_packets/00260767 [16:01:11]NVStorageSaveData ofd_packets/00260767 [16:01:11]File name is /storage/ofd_packets/00260767 [16:01:11]Write 302 bytes [16:01:11]NVStorageSaveData done [16:01:11]OFDSenderStorePacket done [16:01:11]KKMCreateOFDPacket done [16:01:11]NVStorageSaveData kkm_last_timestamp [16:01:11]File name is /storage/kkm_last_timestamp [16:01:11]Write 4 bytes [16:01:11]NVStorageSaveData done [16:01:11]ExternCall_PrintAddStr [16:01:11]wPrintStart [16:01:11]Write to MH i2c: 01 00 00 AC 99 45 [16:01:11]Write i2c OK [16:01:11]MH_I2C_Read... [16:01:11]Read from MH i2c: 01 [16:01:11]MH_I2C_Read... [16:01:11]Read from MH i2c: 01 07 00 [16:01:11]MH_I2C_Read... [16:01:11]Read from MH i2c: 01 07 00 AC 99 00 00 00 00 00 FF 0F 5A [16:01:11]RasterBufferAndPrint [16:01:11]line Счет N : (1)1036318 [16:01:11]line ИНН: 02508201610067 [16:01:11]line Контрольно-Кассовый Чек [16:01:11]line ПРОДАЖА [16:01:11]line ТРК (МРК, ГНК) : 33 [16:01:11]line Товар: 2710194210 [16:01:11]line ДТ(л)-К-4 [16:01:11]line 26.250 * 76.20 [16:01:11]line = 2000.25 [16:01:11]line НДС 12% НСП 1% [16:01:11]line > о реализуемом товаре [16:01:11]line ОКРУГЛЕНИЕ: -0.25 [16:01:11]line ИТОГО: 2000.00 [16:01:11]line Внесено: 2000.00 [16:01:11]line СДАЧА: 0.00 [16:01:11]line НСП 1% : 17.70 [16:01:11]line НДС 12% : 212.42 [16:01:11]line Наличными: 2000.00 [16:01:11]line Безнал.: 0.00 [16:01:11]line Место: АЗС № 94 "Партнер Нефть" [16:01:11]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [16:01:11]line СНО: Общий режим [16:01:11]line Чек 325 18.08.2024 16:01 [16:01:11]line Смена: 449 ФФД: 1.0 [16:01:11]line ЗНМ: 0300000099 [16:01:11]line РНМ: 0000000000091865 [16:01:11]line Версия ККМ: 001 [16:01:11]line ФМ: 0000000000871820 [16:01:11]line ФД: 260767 [16:01:11]line ФПД: 144048610461168 [16:01:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T160115&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260767&fm=144048610461168&tin=02508201610067®Number=0000000000091865&sum=200000 [16:01:12]OFD Sender: Processing packet 260767 [packets to send 192, broken 191] [16:01:12]ProducePacketName [16:01:12]name=ofd_packets/00260767 [16:01:12]OFD Sender: To server: pG, [16:01:12]CommunicateWithHost lk.salyk.kg:30040 [16:01:12]ConnectInit lk.salyk.kg [16:01:12]written 0, free lines is 4095 [16:01:12]Connected sock=11 [16:01: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 30 10 01 00 00 CF CA 08 01 4C 3D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 45 01 00 00 F4 03 04 00 CB 1A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9F FA 03 00 35 04 06 00 83 02 EE 41 C5 F0 D0 23 5A F0 20 12 B5 76 [16:01:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 4F 00 00 00 D3 D7 47 00 87 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9F FA 03 00 F4 03 04 00 20 C4 C1 66 B6 04 01 00 00 29 C4 CB 59 3C 57 B6 4D [16:01:12]CommunicateWithHost err = 0 [16:01:12]CheckOFDResponse [16:01:12]1017 (14) - 77093643461234 [16:01:12]1041 (16) - 0000000000871820 [16:01:12]1040 (4) - 260767 [16:01:12]1012 (4) - 18.08.2024 09:51 [16:01:12]1206 (1) - 0 [16:01:12]OFD Sender: Remove packet 260767 [16:01:12]ProducePacketName [16:01:12]name=ofd_packets/00260767 [16:01:12]NVStorageDeleteData [16:01:12]Write to MH i2c: 01 00 00 D7 99 70 [16:01:12]Write i2c OK [16:01:12]MH_I2C_Read... [16:01:12]Read from MH i2c: 01 [16:01:12]MH_I2C_Read... [16:01:12]Read from MH i2c: 01 07 00 [16:01:12]MH_I2C_Read... [16:01:12]Read from MH i2c: 01 07 00 D7 99 00 00 00 00 00 70 0C F3 [16:01:12]RasterBufferAndPrint [16:01:12]line [16:01:12]line [16:01:12]line [16:01:12]line [16:01:12]line [16:01:12]written 0, free lines is 3186 [16:01:12]MH_Cut [16:01:12]Write to MH i2c: D1 01 00 DE 99 01 49 [16:01:12]Write i2c OK [16:01:12]MH_I2C_Read... [16:01:12]Read from MH i2c: D1 [16:01:12]MH_I2C_Read... [16:01:12]Read from MH i2c: D1 01 00 [16:01:12]MH_I2C_Read... [16:01:12]Read from MH i2c: D1 01 00 DE 99 00 48 [16:01:12]Write to MH i2c: 01 00 00 DF 99 78 [16:01:12]Write i2c OK [16:01:12]MH_I2C_Read... [16:01:12]OFD Sender: No OFD packet to send [16:01:13]*** Cut start [16:01:13]*** Purtial cut [16:01:13]*** Stage 1: CUTSNS_PIN = 1 [16:01:15]Read from MH i2c: 01 [16:01:15]MH_I2C_Read... [16:01:15]*** Stop cut motor [16:01:15]*** Cut end [16:01:15]Read from MH i2c: 01 07 00 [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: 01 07 00 DF 99 00 00 00 00 00 FF 0F 8D [16:01:15]process_action close_receipt done [16:01:15]requested_data is exist [16:01:15]produce_requested_data [16:01:15]requested_item fm.sn is exist - process it [16:01:15]wFMCommunicate request_size=4 [16:01:15]MH_SAM_APDU [16:01:15]CAPDU: 80 11 00 00 [16:01:15]Write to MH i2c: E2 08 00 E0 99 80 11 00 00 00 00 00 00 F3 [16:01:15]Write i2c OK [16:01:15]MH_I2C_Read... [16:01:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:15]Read from MH i2c: E2 [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: E2 17 00 [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: E2 17 00 E0 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 40 [16:01:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:01:15]wFMCommunicate OK [16:01:15]requested_item fd.num is exist - process it [16:01:15]SAM_PROTO_GetFieldsCounters [16:01:15]wFMCommunicate request_size=4 [16:01:15]MH_SAM_APDU [16:01:15]CAPDU: 80 13 00 00 [16:01:15]Write to MH i2c: E2 08 00 E1 99 80 13 00 00 00 00 00 00 F6 [16:01:15]Write i2c OK [16:01:15]MH_I2C_Read... [16:01:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:15]Read from MH i2c: E2 [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: E2 62 00 [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: E2 62 00 E1 99 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 9F FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 45 [16:01: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 9F FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:01:15]wFMCommunicate OK [16:01:15]SAM_PROTO_GetFieldsCounters done [16:01:15]requested_item shift.num is exist - process it [16:01:15]requested_item shift.opened is exist - process it [16:01:15]req_shift_opened [16:01:15]FM_GetShiftState [16:01:15]SAM_PROTO_GetShiftState [16:01:15]wFMCommunicate request_size=4 [16:01:15]MH_SAM_APDU [16:01:15]CAPDU: 80 13 01 00 [16:01:15]Write to MH i2c: E2 08 00 E2 99 80 13 01 00 00 00 00 00 F8 [16:01:15]Write i2c OK [16:01:15]MH_I2C_Read... [16:01:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:16]Read from MH i2c: E2 [16:01:16]MH_I2C_Read... [16:01:16]Read from MH i2c: E2 0E 00 [16:01:16]MH_I2C_Read... [16:01:16]Read from MH i2c: E2 0E 00 E2 99 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 35 [16:01:16]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:01:16]wFMCommunicate OK [16:01:16]SAM_PROTO_GetShiftState done [16:01:16]FM_GetShiftState done [16:01:16]req_shift_opened done [16:01:16]requested_item shift.open_date is exist - process it [16:01:16]req_shift_open_date [16:01:16]req_shift_open_date done [16:01:16]produce_requested_data done [16:01:16]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260767,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [16:01:16]process_action_free close_receipt [16:01:16]json_value_free [16:01:16]json_value_free done [16:01:16]process_json_proto returns [16:01:16]Send response to host [16:01:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260767,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [16:01:16]free response buf [16:01:16]execute_script done [16:01:16]execute_script returns [16:01:16]free content buf [16:01:16]Sock 9.Close socket [16:01:16]Sock 9.Thread stoped [16:01:17]OFD Sender: No OFD packet to send [16:01:22]OFD Sender: No OFD packet to send [16:01:27]OFD Sender: No OFD packet to send [16:01:32]OFD Sender: No OFD packet to send [16:01:37]OFD Sender: No OFD packet to send [16:01:39]accept exits with 7 [16:01:39]New connection [16:01:39]New thread 3066473828 created [16:01:39]Thread 3066617188 joined [16:01:39]Waiting for new connection... [16:01:39] Sock 7.Parse request [16:01:39]Sock 7.Check first char [16:01:39]Sock 7.First char is OK [16:01:39]request: POST /json_proto HTTP/1.0 [16:01:39]Method: POST [16:01:39]URL: /json_proto [16:01:39]Method is POST - this is cgi request [16:01:39]url: /json_proto [16:01:39]query_string will be loaded in cgi processing [16:01:39]execute_cgi json_proto POST (null) [16:01:39]execute_cgi path=json_proto method=POST [16:01:39]POST find Content-Length [16:01:39]Host: 172.17.55.133:8080 [16:01:39]Content-Length: 683 [16:01:39]Content-Type: application/json [16:01:39] [16:01:39]POST finish read [16:01:39]Found Content-Length = 683 [16:01:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036320", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:39]execute_script... [16:01: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)1036320", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:39]POST & json_proto [16:01:39]process_json_proto [16:01:39]json parsed OK: [16:01:39]protocol is kg_v1.0 [16:01:39]action value=close_receipt [16:01:39]process_action close_receipt [16:01:39]cmd_close_receipt [16:01:39]MH_GetDate [16:01:39]Write to MH i2c: F0 00 00 E3 99 6B [16:01:39]Write i2c OK [16:01:39]MH_I2C_Read... [16:01:39]Read from MH i2c: F0 [16:01:39]MH_I2C_Read... [16:01:39]Read from MH i2c: F0 09 00 [16:01:39]MH_I2C_Read... [16:01:39]Read from MH i2c: F0 09 00 E3 99 00 E9 1A C2 66 34 48 D8 65 58 [16:01:39]GetLastDocTimeStamp 1723996875 [16:01:39]current date 1723996905 [16:01:39]FM_GetShiftState [16:01:39]SAM_PROTO_GetShiftState [16:01:39]wFMCommunicate request_size=4 [16:01:39]MH_SAM_APDU [16:01:39]CAPDU: 80 13 01 00 [16:01:39]Write to MH i2c: E2 08 00 E4 99 80 13 01 00 00 00 00 00 FA [16:01:39]Write i2c OK [16:01:39]MH_I2C_Read... [16:01:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:39]Read from MH i2c: E2 [16:01:39]MH_I2C_Read... [16:01:39]Read from MH i2c: E2 0E 00 [16:01:39]MH_I2C_Read... [16:01:39]Read from MH i2c: E2 0E 00 E4 99 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 37 [16:01:39]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:01:39]wFMCommunicate OK [16:01:39]SAM_PROTO_GetShiftState done [16:01:39]FM_GetShiftState done [16:01:39]opened in 1723940556 [16:01:39]opened+sec_in_day 1724026956 [16:01:39]quantity*price = 100021 [16:01:39]sum+1 = 100023 [16:01:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 326 18.08.2024 16:01 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260768 ФПД: 93397833969464 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T160145&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260768&fm=93397833969464&tin=02508201610067®Number=0000000000091865&sum=100000 [16:01:40]StoreToDocumentArchive [16:01:40]shift 449 fd 260768 [16:01:40]save to /storage/0449/doc_00260768 [16:01:40]save last doc name /storage/0449/doc_00260768 to /storage/kkm_last_doc_name [16:01:40]save OK [16:01:40]Clear old archive folders... [16:01:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:01:40]tlvbuf is 00453510 [16:01:40]SAM_PROTO_ClearQueue [16:01:40]wFMCommunicate request_size=4 [16:01:40]MH_SAM_APDU [16:01:40]CAPDU: 80 09 00 00 [16:01:40]Write to MH i2c: E2 08 00 F1 99 80 09 00 00 00 00 00 00 FC [16:01:40]Write i2c OK [16:01:40]MH_I2C_Read... [16:01:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:01:40]Read from MH i2c: E2 [16:01:40]MH_I2C_Read... [16:01:40]Read from MH i2c: E2 03 00 [16:01:40]MH_I2C_Read... [16:01:40]Read from MH i2c: E2 03 00 F1 99 00 90 00 FE [16:01:40]RAPDU: 90 00 [16:01:40]wFMCommunicate OK [16:01:40]SAM_PROTO_ClearQueue done [16:01:40]KKMCreateOFDPacket [16:01:40]OFDProtocolAddRootSTLVToBuf [16:01:40]FM_MakeSignedData [16:01:40]FM_MakeSignedData [16:01:40]SAM_PROTO_SignData [16:01:40]wFMCommunicate request_size=4 [16:01:40]MH_SAM_APDU [16:01:40]CAPDU: 80 0D 01 02 [16:01:40]Write to MH i2c: E2 08 00 F2 99 80 0D 01 02 00 00 00 00 04 [16:01:40]Write i2c OK [16:01:40]MH_I2C_Read... [16:01:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:01:40]Read from MH i2c: E2 [16:01:40]MH_I2C_Read... [16:01:40]Read from MH i2c: E2 03 00 [16:01:40]MH_I2C_Read... [16:01:40]Read from MH i2c: E2 03 00 F2 99 00 90 00 FF [16:01:40]RAPDU: 90 00 [16:01:40]wFMCommunicate OK [16:01:40]wFMCommunicate request_size=255 [16:01:40]MH_SAM_APDU [16:01:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 E9 1A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A0 FA 03 00 35 04 06 00 54 [16:01:40]Write to MH i2c: E2 02 01 F3 99 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 E9 1A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A0 FA 03 00 35 04 06 00 54 00 00 D3 [16:01:40]Write i2c OK [16:01:40]MH_I2C_Read... [16:01:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:41]Read from MH i2c: E2 [16:01:41]MH_I2C_Read... [16:01:41]Read from MH i2c: E2 03 00 [16:01:41]MH_I2C_Read... [16:01:41]Read from MH i2c: E2 03 00 F3 99 00 90 00 00 [16:01:41]RAPDU: 90 00 [16:01:41]wFMCommunicate OK [16:01:41]wFMCommunicate request_size=10 [16:01:41]MH_SAM_APDU [16:01:41]CAPDU: 80 0D 02 02 05 F1 E0 B7 6F 38 [16:01:41]Write to MH i2c: E2 0D 00 F4 99 80 0D 02 02 05 00 F1 E0 B7 6F 38 00 00 40 [16:01:41]Write i2c OK [16:01:41]MH_I2C_Read... [16:01:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:41]Read from MH i2c: E2 [16:01:41]MH_I2C_Read... [16:01:41]Read from MH i2c: E2 03 00 [16:01:41]MH_I2C_Read... [16:01:41]Read from MH i2c: E2 03 00 F4 99 00 90 00 01 [16:01:41]RAPDU: 90 00 [16:01:41]wFMCommunicate OK [16:01:41]wFMCommunicate request_size=4 [16:01:41]MH_SAM_APDU [16:01:41]CAPDU: 80 0D 03 02 [16:01:41]Write to MH i2c: E2 08 00 F5 99 80 0D 03 02 00 00 00 00 09 [16:01:41]Write i2c OK [16:01:41]MH_I2C_Read... [16:01:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:01:41]Read from MH i2c: E2 [16:01:41]MH_I2C_Read... [16:01:41]Read from MH i2c: E2 0B 00 [16:01:41]MH_I2C_Read... [16:01:41]Read from MH i2c: E2 0B 00 F5 99 00 AA 7D A5 D4 C4 23 DD 46 90 00 B4 [16:01:41]RAPDU: AA 7D A5 D4 C4 23 DD 46 90 00 [16:01:41]wFMCommunicate OK [16:01:41]SAM_PROTO_SignData done [16:01:41]FM_MakeSignedData done [16:01:41]CreateOFDProtocolMessage [16:01:41]wFMCommunicate request_size=4 [16:01:41]MH_SAM_APDU [16:01:41]CAPDU: 80 11 00 00 [16:01:41]Write to MH i2c: E2 08 00 F6 99 80 11 00 00 00 00 00 00 09 [16:01:41]Write i2c OK [16:01:41]MH_I2C_Read... [16:01:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:41]Read from MH i2c: E2 [16:01:41]MH_I2C_Read... [16:01:41]Read from MH i2c: E2 17 00 [16:01:41]MH_I2C_Read... [16:01:41]Read from MH i2c: E2 17 00 F6 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 56 [16:01:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:01:41]wFMCommunicate OK [16:01:41]CreateOFDProtocolMessage done [16:01:41]OFDSenderStorePacket 260768 [16:01:41]StoreOFDPacket docnum=260768 [16:01:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 34 17 07 01 02 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 E9 1A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A0 FA 03 00 35 04 06 00 54 F1 E0 B7 6F 38 AA 7D A5 D4 C4 23 DD 46 [16:01:41]CheckFolder [16:01:41]dirname=/storage/ofd_packets [16:01:41]CheckFolder done [16:01:41]ProducePacketName [16:01:41]name=ofd_packets/00260768 [16:01:41]NVStorageSaveData ofd_packets/00260768 [16:01:41]File name is /storage/ofd_packets/00260768 [16:01:41]Write 301 bytes [16:01:41]NVStorageSaveData done [16:01:41]OFDSenderStorePacket done [16:01:41]KKMCreateOFDPacket done [16:01:41]NVStorageSaveData kkm_last_timestamp [16:01:41]File name is /storage/kkm_last_timestamp [16:01:41]Write 4 bytes [16:01:41]NVStorageSaveData done [16:01:41]ExternCall_PrintAddStr [16:01:41]wPrintStart [16:01:41]Write to MH i2c: 01 00 00 F7 99 90 [16:01:41]Write i2c OK [16:01:41]MH_I2C_Read... [16:01:41]Read from MH i2c: 01 [16:01:41]MH_I2C_Read... [16:01:41]Read from MH i2c: 01 07 00 [16:01:41]MH_I2C_Read... [16:01:41]Read from MH i2c: 01 07 00 F7 99 00 00 00 00 00 FF 0F A5 [16:01:41]RasterBufferAndPrint [16:01:41]line Счет N : (1)1036320 [16:01:41]line ИНН: 02508201610067 [16:01:41]line Контрольно-Кассовый Чек [16:01:41]line ПРОДАЖА [16:01:41]line ТРК (МРК, ГНК) : 23 [16:01:41]line Товар: 2710124500 [16:01:41]line Аи-95-К-5 [16:01:41]line 13.480 * 74.20 [16:01:41]line = 1000.22 [16:01:41]line НДС 12% НСП 1% [16:01:41]line > о реализуемом товаре [16:01:41]line ОКРУГЛЕНИЕ: -0.22 [16:01:41]line ИТОГО: 1000.00 [16:01:41]line Внесено: 1000.00 [16:01:41]line СДАЧА: 0.00 [16:01:41]line НСП 1% : 8.85 [16:01:41]line НДС 12% : 106.22 [16:01:41]line Наличными: 1000.00 [16:01:41]line Безнал.: 0.00 [16:01:41]line Место: АЗС № 94 "Партнер Нефть" [16:01:41]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [16:01:41]line СНО: Общий режим [16:01:41]line Чек 326 18.08.2024 16:01 [16:01:41]line Смена: 449 ФФД: 1.0 [16:01:41]line ЗНМ: 0300000099 [16:01:41]line РНМ: 0000000000091865 [16:01:41]line Версия ККМ: 001 [16:01:41]line ФМ: 0000000000871820 [16:01:41]line ФД: 260768 [16:01:41]line ФПД: 93397833969464 [16:01:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T160145&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260768&fm=93397833969464&tin=02508201610067®Number=0000000000091865&sum=100000 [16:01:41]written 0, free lines is 4095 [16:01:41]OFD Sender: Processing packet 260768 [packets to send 192, broken 191] [16:01:41]ProducePacketName [16:01:41]name=ofd_packets/00260768 [16:01:41]OFD Sender: To server: pG, [16:01:41]CommunicateWithHost lk.salyk.kg:30040 [16:01:41]ConnectInit lk.salyk.kg [16:01:41]Connected sock=10 [16:01: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 30 0F 01 00 00 34 17 07 01 02 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 E9 1A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A0 FA 03 00 35 04 06 00 54 F1 E0 B7 6F 38 AA 7D A5 D4 C4 23 DD 46 [16:01: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 30 4F 00 00 00 1E 6D 47 00 F7 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A0 FA 03 00 F4 03 04 00 3D C4 C1 66 B6 04 01 00 00 07 FB 64 D9 8F 97 81 1E [16:01:41]CommunicateWithHost err = 0 [16:01:41]CheckOFDResponse [16:01:41]1017 (14) - 77093643461234 [16:01:41]1041 (16) - 0000000000871820 [16:01:41]1040 (4) - 260768 [16:01:41]1012 (4) - 18.08.2024 09:51 [16:01:41]1206 (1) - 0 [16:01:41]OFD Sender: Remove packet 260768 [16:01:41]ProducePacketName [16:01:41]name=ofd_packets/00260768 [16:01:41]NVStorageDeleteData [16:01:41]Write to MH i2c: 01 00 00 22 9A BC [16:01:41]Write i2c OK [16:01:41]MH_I2C_Read... [16:01:41]Read from MH i2c: 01 [16:01:41]MH_I2C_Read... [16:01:41]Read from MH i2c: 01 07 00 [16:01:41]MH_I2C_Read... [16:01:41]Read from MH i2c: 01 07 00 22 9A 00 00 00 00 00 72 0C 41 [16:01:41]RasterBufferAndPrint [16:01:41]line [16:01:41]line [16:01:41]line [16:01:41]line [16:01:41]line [16:01:41]written 0, free lines is 3189 [16:01:42]MH_Cut [16:01:42]Write to MH i2c: D1 01 00 29 9A 01 95 [16:01:42]Write i2c OK [16:01:42]MH_I2C_Read... [16:01:42]Read from MH i2c: D1 [16:01:42]MH_I2C_Read... [16:01:42]Read from MH i2c: D1 01 00 [16:01:42]MH_I2C_Read... [16:01:42]Read from MH i2c: D1 01 00 29 9A 00 94 [16:01:42]Write to MH i2c: 01 00 00 2A 9A C4 [16:01:42]Write i2c OK [16:01:42]MH_I2C_Read... [16:01:42]OFD Sender: No OFD packet to send [16:01:43]*** Cut start [16:01:43]*** Purtial cut [16:01:43]*** Stage 1: CUTSNS_PIN = 1 [16:01:45]Read from MH i2c: 01 [16:01:45]MH_I2C_Read... [16:01:45]*** Stop cut motor [16:01:45]*** Cut end [16:01:45]Read from MH i2c: 01 07 00 [16:01:45]MH_I2C_Read... [16:01:45]Read from MH i2c: 01 07 00 2A 9A 00 00 00 00 00 FF 0F D9 [16:01:45]process_action close_receipt done [16:01:45]requested_data is exist [16:01:45]produce_requested_data [16:01:45]requested_item fm.sn is exist - process it [16:01:45]wFMCommunicate request_size=4 [16:01:45]MH_SAM_APDU [16:01:45]CAPDU: 80 11 00 00 [16:01:45]Write to MH i2c: E2 08 00 2B 9A 80 11 00 00 00 00 00 00 3F [16:01:45]Write i2c OK [16:01:45]MH_I2C_Read... [16:01:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:45]Read from MH i2c: E2 [16:01:45]MH_I2C_Read... [16:01:45]Read from MH i2c: E2 17 00 [16:01:45]MH_I2C_Read... [16:01:45]Read from MH i2c: E2 17 00 2B 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 8C [16:01:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:01:45]wFMCommunicate OK [16:01:45]requested_item fd.num is exist - process it [16:01:45]SAM_PROTO_GetFieldsCounters [16:01:45]wFMCommunicate request_size=4 [16:01:45]MH_SAM_APDU [16:01:45]CAPDU: 80 13 00 00 [16:01:45]Write to MH i2c: E2 08 00 2C 9A 80 13 00 00 00 00 00 00 42 [16:01:45]Write i2c OK [16:01:45]MH_I2C_Read... [16:01:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:45]Read from MH i2c: E2 [16:01:45]MH_I2C_Read... [16:01:45]Read from MH i2c: E2 62 00 [16:01:45]MH_I2C_Read... [16:01:45]Read from MH i2c: E2 62 00 2C 9A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A0 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 95 [16:01: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A0 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:01:45]wFMCommunicate OK [16:01:45]SAM_PROTO_GetFieldsCounters done [16:01:45]requested_item shift.num is exist - process it [16:01:45]requested_item shift.opened is exist - process it [16:01:45]req_shift_opened [16:01:45]FM_GetShiftState [16:01:45]SAM_PROTO_GetShiftState [16:01:45]wFMCommunicate request_size=4 [16:01:45]MH_SAM_APDU [16:01:45]CAPDU: 80 13 01 00 [16:01:45]Write to MH i2c: E2 08 00 2D 9A 80 13 01 00 00 00 00 00 44 [16:01:45]Write i2c OK [16:01:45]MH_I2C_Read... [16:01:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:45]Read from MH i2c: E2 [16:01:45]MH_I2C_Read... [16:01:45]Read from MH i2c: E2 0E 00 [16:01:45]MH_I2C_Read... [16:01:45]Read from MH i2c: E2 0E 00 2D 9A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 81 [16:01:45]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:01:45]wFMCommunicate OK [16:01:45]SAM_PROTO_GetShiftState done [16:01:45]FM_GetShiftState done [16:01:45]req_shift_opened done [16:01:45]requested_item shift.open_date is exist - process it [16:01:45]req_shift_open_date [16:01:45]req_shift_open_date done [16:01:45]produce_requested_data done [16:01:45]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260768,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [16:01:45]process_action_free close_receipt [16:01:45]json_value_free [16:01:45]json_value_free done [16:01:45]process_json_proto returns [16:01:45]Send response to host [16:01:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260768,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [16:01:45]free response buf [16:01:45]execute_script done [16:01:45]execute_script returns [16:01:45]free content buf [16:01:45]Sock 7.Close socket [16:01:45]Sock 7.Thread stoped [16:01:47]OFD Sender: No OFD packet to send [16:01:52]OFD Sender: No OFD packet to send [16:01:57]OFD Sender: No OFD packet to send [16:02:02]OFD Sender: No OFD packet to send [16:02:07]OFD Sender: No OFD packet to send [16:02:12]OFD Sender: No OFD packet to send [16:02:17]OFD Sender: No OFD packet to send [16:02:22]OFD Sender: No OFD packet to send [16:02:27]OFD Sender: No OFD packet to send [16:02:32]OFD Sender: No OFD packet to send [16:02:37]OFD Sender: No OFD packet to send [16:02:42]OFD Sender: No OFD packet to send [16:02:47]OFD Sender: No OFD packet to send [16:02:52]OFD Sender: No OFD packet to send [16:02:57]OFD Sender: No OFD packet to send [16:03:02]OFD Sender: No OFD packet to send [16:03:07]OFD Sender: No OFD packet to send [16:03:12]OFD Sender: No OFD packet to send [16:03:17]OFD Sender: No OFD packet to send [16:03:22]OFD Sender: No OFD packet to send [16:03:27]OFD Sender: No OFD packet to send [16:03:32]OFD Sender: No OFD packet to send [16:03:37]OFD Sender: No OFD packet to send [16:03:42]OFD Sender: No OFD packet to send [16:03:47]OFD Sender: No OFD packet to send [16:03:52]OFD Sender: No OFD packet to send [16:03:57]OFD Sender: No OFD packet to send [16:04:02]OFD Sender: No OFD packet to send [16:04:07]OFD Sender: No OFD packet to send [16:04:12]OFD Sender: No OFD packet to send [16:04:17]OFD Sender: No OFD packet to send [16:04:22]OFD Sender: No OFD packet to send [16:04:27]OFD Sender: No OFD packet to send [16:04:32]OFD Sender: No OFD packet to send [16:04:37]OFD Sender: No OFD packet to send [16:04:42]OFD Sender: No OFD packet to send [16:04:47]OFD Sender: No OFD packet to send [16:04:52]OFD Sender: No OFD packet to send [16:04:57]OFD Sender: No OFD packet to send [16:05:02]OFD Sender: No OFD packet to send [16:05:07]OFD Sender: No OFD packet to send [16:05:12]OFD Sender: No OFD packet to send [16:05:17]OFD Sender: No OFD packet to send [16:05:22]OFD Sender: No OFD packet to send [16:05:27]OFD Sender: No OFD packet to send [16:05:31]accept exits with 9 [16:05:31]New connection [16:05:31]New thread 3066617188 created [16:05:31]Thread 3066473828 joined [16:05:31]Waiting for new connection... [16:05:31] Sock 9.Parse request [16:05:31]Sock 9.Check first char [16:05:31]Sock 9.First char is OK [16:05:31]request: POST /json_proto HTTP/1.0 [16:05:31]Method: POST [16:05:31]URL: /json_proto [16:05:31]Method is POST - this is cgi request [16:05:31]url: /json_proto [16:05:31]query_string will be loaded in cgi processing [16:05:31]execute_cgi json_proto POST (null) [16:05:31]execute_cgi path=json_proto method=POST [16:05:31]POST find Content-Length [16:05:31]Host: 172.17.55.133:8080 [16:05:31]Content-Length: 683 [16:05:31]Content-Type: application/json [16:05:31] [16:05:31]POST finish read [16:05:31]Found Content-Length = 683 [16:05:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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" ] } } [16:05:31]execute_script... [16:05: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)1036321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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" ] } } [16:05:31]POST & json_proto [16:05:31]process_json_proto [16:05:31]json parsed OK: [16:05:31]protocol is kg_v1.0 [16:05:31]action value=close_receipt [16:05:31]process_action close_receipt [16:05:31]cmd_close_receipt [16:05:31]MH_GetDate [16:05:31]Write to MH i2c: F0 00 00 2E 9A B7 [16:05:31]Write i2c OK [16:05:31]MH_I2C_Read... [16:05:31]Read from MH i2c: F0 [16:05:31]MH_I2C_Read... [16:05:31]Read from MH i2c: F0 09 00 [16:05:31]MH_I2C_Read... [16:05:31]Read from MH i2c: F0 09 00 2E 9A 00 D1 1B C2 66 34 48 D8 65 8D [16:05:31]GetLastDocTimeStamp 1723996905 [16:05:31]current date 1723997137 [16:05:31]FM_GetShiftState [16:05:31]SAM_PROTO_GetShiftState [16:05:31]wFMCommunicate request_size=4 [16:05:31]MH_SAM_APDU [16:05:31]CAPDU: 80 13 01 00 [16:05:31]Write to MH i2c: E2 08 00 2F 9A 80 13 01 00 00 00 00 00 46 [16:05:31]Write i2c OK [16:05:31]MH_I2C_Read... [16:05:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:31]Read from MH i2c: E2 [16:05:31]MH_I2C_Read... [16:05:31]Read from MH i2c: E2 0E 00 [16:05:31]MH_I2C_Read... [16:05:31]Read from MH i2c: E2 0E 00 2F 9A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 83 [16:05:31]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:05:31]wFMCommunicate OK [16:05:31]SAM_PROTO_GetShiftState done [16:05:31]FM_GetShiftState done [16:05:31]opened in 1723940556 [16:05:31]opened+sec_in_day 1724026956 [16:05:31]quantity*price = 150041 [16:05:31]sum+1 = 150042 [16:05:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 327 18.08.2024 16:05 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260769 ФПД: 112778990720977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T160537&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260769&fm=112778990720977&tin=02508201610067®Number=0000000000091865&sum=150000 [16:05:32]StoreToDocumentArchive [16:05:32]shift 449 fd 260769 [16:05:32]save to /storage/0449/doc_00260769 [16:05:32]save last doc name /storage/0449/doc_00260769 to /storage/kkm_last_doc_name [16:05:32]save OK [16:05:32]Clear old archive folders... [16:05:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:05:32]tlvbuf is 003E9450 [16:05:32]SAM_PROTO_ClearQueue [16:05:32]wFMCommunicate request_size=4 [16:05:32]MH_SAM_APDU [16:05:32]CAPDU: 80 09 00 00 [16:05:32]Write to MH i2c: E2 08 00 3C 9A 80 09 00 00 00 00 00 00 48 [16:05:32]Write i2c OK [16:05:32]MH_I2C_Read... [16:05:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:05:32]Read from MH i2c: E2 [16:05:32]MH_I2C_Read... [16:05:32]Read from MH i2c: E2 03 00 [16:05:32]MH_I2C_Read... [16:05:32]Read from MH i2c: E2 03 00 3C 9A 00 90 00 4A [16:05:32]RAPDU: 90 00 [16:05:32]wFMCommunicate OK [16:05:32]SAM_PROTO_ClearQueue done [16:05:32]KKMCreateOFDPacket [16:05:32]OFDProtocolAddRootSTLVToBuf [16:05:32]FM_MakeSignedData [16:05:32]FM_MakeSignedData [16:05:32]SAM_PROTO_SignData [16:05:32]wFMCommunicate request_size=4 [16:05:32]MH_SAM_APDU [16:05:32]CAPDU: 80 0D 01 02 [16:05:32]Write to MH i2c: E2 08 00 3D 9A 80 0D 01 02 00 00 00 00 50 [16:05:32]Write i2c OK [16:05:32]MH_I2C_Read... [16:05:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:05:32]Read from MH i2c: E2 [16:05:32]MH_I2C_Read... [16:05:32]Read from MH i2c: E2 03 00 [16:05:32]MH_I2C_Read... [16:05:32]Read from MH i2c: E2 03 00 3D 9A 00 90 00 4B [16:05:32]RAPDU: 90 00 [16:05:32]wFMCommunicate OK [16:05:32]wFMCommunicate request_size=255 [16:05:32]MH_SAM_APDU [16:05:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 47 01 00 00 F4 03 04 00 D1 1B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A1 FA 03 00 35 04 06 00 66 [16:05:32]Write to MH i2c: E2 02 01 3E 9A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 47 01 00 00 F4 03 04 00 D1 1B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A1 FA 03 00 35 04 06 00 66 00 00 64 [16:05:32]Write i2c OK [16:05:32]MH_I2C_Read... [16:05:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:33]Read from MH i2c: E2 [16:05:33]MH_I2C_Read... [16:05:33]Read from MH i2c: E2 03 00 [16:05:33]MH_I2C_Read... [16:05:33]Read from MH i2c: E2 03 00 3E 9A 00 90 00 4C [16:05:33]RAPDU: 90 00 [16:05:33]wFMCommunicate OK [16:05:33]wFMCommunicate request_size=10 [16:05:33]MH_SAM_APDU [16:05:33]CAPDU: 80 0D 02 02 05 92 67 AE 17 D1 [16:05:33]Write to MH i2c: E2 0D 00 3F 9A 80 0D 02 02 05 00 92 67 AE 17 D1 00 00 EC [16:05:33]Write i2c OK [16:05:33]MH_I2C_Read... [16:05:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:33]Read from MH i2c: E2 [16:05:33]MH_I2C_Read... [16:05:33]Read from MH i2c: E2 03 00 [16:05:33]MH_I2C_Read... [16:05:33]Read from MH i2c: E2 03 00 3F 9A 00 90 00 4D [16:05:33]RAPDU: 90 00 [16:05:33]wFMCommunicate OK [16:05:33]wFMCommunicate request_size=4 [16:05:33]MH_SAM_APDU [16:05:33]CAPDU: 80 0D 03 02 [16:05:33]Write to MH i2c: E2 08 00 40 9A 80 0D 03 02 00 00 00 00 55 [16:05:33]Write i2c OK [16:05:33]MH_I2C_Read... [16:05:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:05:33]Read from MH i2c: E2 [16:05:33]MH_I2C_Read... [16:05:33]Read from MH i2c: E2 0B 00 [16:05:33]MH_I2C_Read... [16:05:33]Read from MH i2c: E2 0B 00 40 9A 00 67 29 93 80 B2 2A E9 03 90 00 C1 [16:05:33]RAPDU: 67 29 93 80 B2 2A E9 03 90 00 [16:05:33]wFMCommunicate OK [16:05:33]SAM_PROTO_SignData done [16:05:33]FM_MakeSignedData done [16:05:33]CreateOFDProtocolMessage [16:05:33]wFMCommunicate request_size=4 [16:05:33]MH_SAM_APDU [16:05:33]CAPDU: 80 11 00 00 [16:05:33]Write to MH i2c: E2 08 00 41 9A 80 11 00 00 00 00 00 00 55 [16:05:33]Write i2c OK [16:05:33]MH_I2C_Read... [16:05:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:33]Read from MH i2c: E2 [16:05:33]MH_I2C_Read... [16:05:33]Read from MH i2c: E2 17 00 [16:05:33]MH_I2C_Read... [16:05:33]Read from MH i2c: E2 17 00 41 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A2 [16:05:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:05:33]wFMCommunicate OK [16:05:33]CreateOFDProtocolMessage done [16:05:33]OFDSenderStorePacket 260769 [16:05:33]StoreOFDPacket docnum=260769 [16:05:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 98 33 07 01 09 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 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 47 01 00 00 F4 03 04 00 D1 1B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A1 FA 03 00 35 04 06 00 66 92 67 AE 17 D1 67 29 93 80 B2 2A E9 03 [16:05:33]CheckFolder [16:05:33]dirname=/storage/ofd_packets [16:05:33]CheckFolder done [16:05:33]ProducePacketName [16:05:33]name=ofd_packets/00260769 [16:05:33]NVStorageSaveData ofd_packets/00260769 [16:05:33]File name is /storage/ofd_packets/00260769 [16:05:33]Write 301 bytes [16:05:33]NVStorageSaveData done [16:05:33]OFDSenderStorePacket done [16:05:33]KKMCreateOFDPacket done [16:05:33]NVStorageSaveData kkm_last_timestamp [16:05:33]File name is /storage/kkm_last_timestamp [16:05:33]Write 4 bytes [16:05:33]NVStorageSaveData done [16:05:33]ExternCall_PrintAddStr [16:05:33]wPrintStart [16:05:33]Write to MH i2c: 01 00 00 42 9A DC [16:05:33]Write i2c OK [16:05:33]MH_I2C_Read... [16:05:33]Read from MH i2c: 01 [16:05:33]MH_I2C_Read... [16:05:33]Read from MH i2c: 01 07 00 [16:05:33]MH_I2C_Read... [16:05:33]Read from MH i2c: 01 07 00 42 9A 00 00 00 00 00 FF 0F F1 [16:05:33]RasterBufferAndPrint [16:05:33]line Счет N : (1)1036321 [16:05:33]line ИНН: 02508201610067 [16:05:33]line Контрольно-Кассовый Чек [16:05:33]line ПРОДАЖА [16:05:33]line ТРК (МРК, ГНК) : 32 [16:05:33]line Товар: 2710124130 [16:05:33]line Аи-92-К-5 [16:05:33]line 22.130 * 67.80 [16:05:33]line = 1500.41 [16:05:33]line НДС 12% НСП 1% [16:05:33]line > о реализуемом товаре [16:05:33]line ОКРУГЛЕНИЕ: -0.41 [16:05:33]line ИТОГО: 1500.00 [16:05:33]line Внесено: 1500.00 [16:05:33]line СДАЧА: 0.00 [16:05:33]line НСП 1% : 13.28 [16:05:33]line НДС 12% : 159.34 [16:05:33]line Наличными: 1500.00 [16:05:33]line Безнал.: 0.00 [16:05:33]line Место: АЗС № 94 "Партнер Нефть" [16:05:33]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [16:05:33]line СНО: Общий режим [16:05:33]line Чек 327 18.08.2024 16:05 [16:05:33]line Смена: 449 ФФД: 1.0 [16:05:33]line ЗНМ: 0300000099 [16:05:33]line РНМ: 0000000000091865 [16:05:33]line Версия ККМ: 001 [16:05:33]line ФМ: 0000000000871820 [16:05:33]line ФД: 260769 [16:05:33]line ФПД: 112778990720977 [16:05:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T160537&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260769&fm=112778990720977&tin=02508201610067®Number=0000000000091865&sum=150000 [16:05:33]written 0, free lines is 4095 [16:05:33]OFD Sender: Processing packet 260769 [packets to send 192, broken 191] [16:05:33]ProducePacketName [16:05:33]name=ofd_packets/00260769 [16:05:33]OFD Sender: To server: pG, [16:05:33]CommunicateWithHost lk.salyk.kg:30040 [16:05:33]ConnectInit lk.salyk.kg [16:05:33]Connected sock=10 [16:05: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 30 0F 01 00 00 98 33 07 01 09 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 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 47 01 00 00 F4 03 04 00 D1 1B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A1 FA 03 00 35 04 06 00 66 92 67 AE 17 D1 67 29 93 80 B2 2A E9 03 [16:05: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 30 4F 00 00 00 21 D3 47 00 6C 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A1 FA 03 00 F4 03 04 00 25 C5 C1 66 B6 04 01 00 00 7F 14 19 11 1B 34 23 6B [16:05:33]CommunicateWithHost err = 0 [16:05:33]CheckOFDResponse [16:05:33]1017 (14) - 77093643461234 [16:05:33]1041 (16) - 0000000000871820 [16:05:33]1040 (4) - 260769 [16:05:33]1012 (4) - 18.08.2024 09:55 [16:05:33]1206 (1) - 0 [16:05:33]OFD Sender: Remove packet 260769 [16:05:33]ProducePacketName [16:05:33]name=ofd_packets/00260769 [16:05:33]NVStorageDeleteData [16:05:33]Write to MH i2c: 01 00 00 6D 9A 07 [16:05:33]Write i2c OK [16:05:33]MH_I2C_Read... [16:05:33]Read from MH i2c: 01 [16:05:33]MH_I2C_Read... [16:05:33]Read from MH i2c: 01 07 00 [16:05:33]MH_I2C_Read... [16:05:33]Read from MH i2c: 01 07 00 6D 9A 00 00 00 00 00 65 0C 7F [16:05:33]RasterBufferAndPrint [16:05:33]line [16:05:33]line [16:05:33]line [16:05:33]line [16:05:33]line [16:05:33]written 0, free lines is 3178 [16:05:33]MH_Cut [16:05:33]Write to MH i2c: D1 01 00 74 9A 01 E0 [16:05:33]Write i2c OK [16:05:33]MH_I2C_Read... [16:05:33]Read from MH i2c: D1 [16:05:33]MH_I2C_Read... [16:05:33]Read from MH i2c: D1 01 00 [16:05:33]MH_I2C_Read... [16:05:33]Read from MH i2c: D1 01 00 74 9A 00 DF [16:05:33]Write to MH i2c: 01 00 00 75 9A 0F [16:05:33]Write i2c OK [16:05:33]MH_I2C_Read... [16:05:34]OFD Sender: No OFD packet to send [16:05:34]*** Cut start [16:05:34]*** Purtial cut [16:05:34]*** Stage 1: CUTSNS_PIN = 1 [16:05:36]Read from MH i2c: 01 [16:05:36]MH_I2C_Read... [16:05:36]*** Stop cut motor [16:05:36]*** Cut end [16:05:36]Read from MH i2c: 01 07 00 [16:05:36]MH_I2C_Read... [16:05:36]Read from MH i2c: 01 07 00 75 9A 00 00 00 00 00 FF 0F 24 [16:05:36]process_action close_receipt done [16:05:36]requested_data is exist [16:05:36]produce_requested_data [16:05:36]requested_item fm.sn is exist - process it [16:05:36]wFMCommunicate request_size=4 [16:05:36]MH_SAM_APDU [16:05:36]CAPDU: 80 11 00 00 [16:05:36]Write to MH i2c: E2 08 00 76 9A 80 11 00 00 00 00 00 00 8A [16:05:36]Write i2c OK [16:05:36]MH_I2C_Read... [16:05:36]Read from MH i2c: E2 [16:05:36]MH_I2C_Read... [16:05:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:36]Read from MH i2c: E2 17 00 [16:05:36]MH_I2C_Read... [16:05:36]Read from MH i2c: E2 17 00 76 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D7 [16:05:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:05:36]wFMCommunicate OK [16:05:36]requested_item fd.num is exist - process it [16:05:36]SAM_PROTO_GetFieldsCounters [16:05:36]wFMCommunicate request_size=4 [16:05:36]MH_SAM_APDU [16:05:36]CAPDU: 80 13 00 00 [16:05:36]Write to MH i2c: E2 08 00 77 9A 80 13 00 00 00 00 00 00 8D [16:05:36]Write i2c OK [16:05:36]MH_I2C_Read... [16:05:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:37]Read from MH i2c: E2 [16:05:37]MH_I2C_Read... [16:05:37]Read from MH i2c: E2 62 00 [16:05:37]MH_I2C_Read... [16:05:37]Read from MH i2c: E2 62 00 77 9A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A1 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 E4 [16:05: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A1 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:05:37]wFMCommunicate OK [16:05:37]SAM_PROTO_GetFieldsCounters done [16:05:37]requested_item shift.num is exist - process it [16:05:37]requested_item shift.opened is exist - process it [16:05:37]req_shift_opened [16:05:37]FM_GetShiftState [16:05:37]SAM_PROTO_GetShiftState [16:05:37]wFMCommunicate request_size=4 [16:05:37]MH_SAM_APDU [16:05:37]CAPDU: 80 13 01 00 [16:05:37]Write to MH i2c: E2 08 00 78 9A 80 13 01 00 00 00 00 00 8F [16:05:37]Write i2c OK [16:05:37]MH_I2C_Read... [16:05:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:37]Read from MH i2c: E2 [16:05:37]MH_I2C_Read... [16:05:37]Read from MH i2c: E2 0E 00 [16:05:37]MH_I2C_Read... [16:05:37]Read from MH i2c: E2 0E 00 78 9A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 CC [16:05:37]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:05:37]wFMCommunicate OK [16:05:37]SAM_PROTO_GetShiftState done [16:05:37]FM_GetShiftState done [16:05:37]req_shift_opened done [16:05:37]requested_item shift.open_date is exist - process it [16:05:37]req_shift_open_date [16:05:37]req_shift_open_date done [16:05:37]produce_requested_data done [16:05:37]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260769,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [16:05:37]process_action_free close_receipt [16:05:37]json_value_free [16:05:37]json_value_free done [16:05:37]process_json_proto returns [16:05:37]Send response to host [16:05:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260769,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [16:05:37]free response buf [16:05:37]execute_script done [16:05:37]execute_script returns [16:05:37]free content buf [16:05:37]Sock 9.Close socket [16:05:37]Sock 9.Thread stoped [16:05:39]OFD Sender: No OFD packet to send [16:05:44]OFD Sender: No OFD packet to send [16:05:49]OFD Sender: No OFD packet to send [16:05:54]OFD Sender: No OFD packet to send [16:05:59]OFD Sender: No OFD packet to send [16:06:04]OFD Sender: No OFD packet to send [16:06:09]OFD Sender: No OFD packet to send [16:06:14]OFD Sender: No OFD packet to send [16:06:19]OFD Sender: No OFD packet to send [16:06:24]OFD Sender: No OFD packet to send [16:06:29]OFD Sender: No OFD packet to send [16:06:30]accept exits with 7 [16:06:30]New connection [16:06:30]New thread 3066473828 created [16:06:30]Thread 3066617188 joined [16:06:30]Waiting for new connection... [16:06:30] Sock 7.Parse request [16:06:30]Sock 7.Check first char [16:06:30]Sock 7.First char is OK [16:06:30]request: POST /json_proto HTTP/1.0 [16:06:30]Method: POST [16:06:30]URL: /json_proto [16:06:30]Method is POST - this is cgi request [16:06:30]url: /json_proto [16:06:30]query_string will be loaded in cgi processing [16:06:30]execute_cgi json_proto POST (null) [16:06:30]execute_cgi path=json_proto method=POST [16:06:30]POST find Content-Length [16:06:30]Host: 172.17.55.133:8080 [16:06:30]Content-Length: 678 [16:06:30]Content-Type: application/json [16:06:30] [16:06:30]POST finish read [16:06:30]Found Content-Length = 678 [16:06:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:30]execute_script... [16:06: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)1036322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:30]POST & json_proto [16:06:30]process_json_proto [16:06:30]json parsed OK: [16:06:30]protocol is kg_v1.0 [16:06:30]action value=close_receipt [16:06:30]process_action close_receipt [16:06:30]cmd_close_receipt [16:06:30]MH_GetDate [16:06:30]Write to MH i2c: F0 00 00 79 9A 02 [16:06:30]Write i2c OK [16:06:30]MH_I2C_Read... [16:06:30]Read from MH i2c: F0 [16:06:30]MH_I2C_Read... [16:06:30]Read from MH i2c: F0 09 00 [16:06:30]MH_I2C_Read... [16:06:30]Read from MH i2c: F0 09 00 79 9A 00 0C 1C C2 66 34 48 D8 65 14 [16:06:30]GetLastDocTimeStamp 1723997137 [16:06:30]current date 1723997196 [16:06:30]FM_GetShiftState [16:06:30]SAM_PROTO_GetShiftState [16:06:30]wFMCommunicate request_size=4 [16:06:30]MH_SAM_APDU [16:06:30]CAPDU: 80 13 01 00 [16:06:30]Write to MH i2c: E2 08 00 7A 9A 80 13 01 00 00 00 00 00 91 [16:06:30]Write i2c OK [16:06:30]MH_I2C_Read... [16:06:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:30]Read from MH i2c: E2 [16:06:30]MH_I2C_Read... [16:06:30]Read from MH i2c: E2 0E 00 [16:06:30]MH_I2C_Read... [16:06:30]Read from MH i2c: E2 0E 00 7A 9A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 CE [16:06:30]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:06:30]wFMCommunicate OK [16:06:30]SAM_PROTO_GetShiftState done [16:06:30]FM_GetShiftState done [16:06:30]opened in 1723940556 [16:06:30]opened+sec_in_day 1724026956 [16:06:30]quantity*price = 50036 [16:06:30]sum+1 = 50037 [16:06:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 328 18.08.2024 16:06 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260770 ФПД: 38283808906344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T160636&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260770&fm=38283808906344&tin=02508201610067®Number=0000000000091865&sum=50000 [16:06:31]StoreToDocumentArchive [16:06:31]shift 449 fd 260770 [16:06:31]save to /storage/0449/doc_00260770 [16:06:31]save last doc name /storage/0449/doc_00260770 to /storage/kkm_last_doc_name [16:06:31]save OK [16:06:31]Clear old archive folders... [16:06:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:06:31]tlvbuf is 003830C0 [16:06:31]SAM_PROTO_ClearQueue [16:06:31]wFMCommunicate request_size=4 [16:06:31]MH_SAM_APDU [16:06:31]CAPDU: 80 09 00 00 [16:06:31]Write to MH i2c: E2 08 00 87 9A 80 09 00 00 00 00 00 00 93 [16:06:31]Write i2c OK [16:06:31]MH_I2C_Read... [16:06:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:31]Read from MH i2c: E2 [16:06:31]MH_I2C_Read... [16:06:31]Read from MH i2c: E2 03 00 [16:06:31]MH_I2C_Read... [16:06:31]Read from MH i2c: E2 03 00 87 9A 00 90 00 95 [16:06:31]RAPDU: 90 00 [16:06:31]wFMCommunicate OK [16:06:31]SAM_PROTO_ClearQueue done [16:06:31]KKMCreateOFDPacket [16:06:31]OFDProtocolAddRootSTLVToBuf [16:06:31]FM_MakeSignedData [16:06:31]FM_MakeSignedData [16:06:31]SAM_PROTO_SignData [16:06:31]wFMCommunicate request_size=4 [16:06:31]MH_SAM_APDU [16:06:31]CAPDU: 80 0D 01 02 [16:06:31]Write to MH i2c: E2 08 00 88 9A 80 0D 01 02 00 00 00 00 9B [16:06:31]Write i2c OK [16:06:31]MH_I2C_Read... [16:06:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:32]Read from MH i2c: E2 [16:06:32]MH_I2C_Read... [16:06:32]Read from MH i2c: E2 03 00 [16:06:32]MH_I2C_Read... [16:06:32]Read from MH i2c: E2 03 00 88 9A 00 90 00 96 [16:06:32]RAPDU: 90 00 [16:06:32]wFMCommunicate OK [16:06:32]wFMCommunicate request_size=255 [16:06:32]MH_SAM_APDU [16:06:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 48 01 00 00 F4 03 04 00 0C 1C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A2 FA 03 00 35 04 06 00 22 [16:06:32]Write to MH i2c: E2 02 01 89 9A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 48 01 00 00 F4 03 04 00 0C 1C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A2 FA 03 00 35 04 06 00 22 00 00 34 [16:06:32]Write i2c OK [16:06:32]MH_I2C_Read... [16:06:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:32]Read from MH i2c: E2 [16:06:32]MH_I2C_Read... [16:06:32]Read from MH i2c: E2 03 00 [16:06:32]MH_I2C_Read... [16:06:32]Read from MH i2c: E2 03 00 89 9A 00 90 00 97 [16:06:32]RAPDU: 90 00 [16:06:32]wFMCommunicate OK [16:06:32]wFMCommunicate request_size=10 [16:06:32]MH_SAM_APDU [16:06:32]CAPDU: 80 0D 02 02 05 D1 A4 D4 9C 68 [16:06:32]Write to MH i2c: E2 0D 00 8A 9A 80 0D 02 02 05 00 D1 A4 D4 9C 68 00 00 F5 [16:06:32]Write i2c OK [16:06:32]MH_I2C_Read... [16:06:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:32]Read from MH i2c: E2 [16:06:32]MH_I2C_Read... [16:06:32]Read from MH i2c: E2 03 00 [16:06:32]MH_I2C_Read... [16:06:32]Read from MH i2c: E2 03 00 8A 9A 00 90 00 98 [16:06:32]RAPDU: 90 00 [16:06:32]wFMCommunicate OK [16:06:32]wFMCommunicate request_size=4 [16:06:32]MH_SAM_APDU [16:06:32]CAPDU: 80 0D 03 02 [16:06:32]Write to MH i2c: E2 08 00 8B 9A 80 0D 03 02 00 00 00 00 A0 [16:06:32]Write i2c OK [16:06:32]MH_I2C_Read... [16:06:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:32]Read from MH i2c: E2 [16:06:32]MH_I2C_Read... [16:06:32]Read from MH i2c: E2 0B 00 [16:06:32]MH_I2C_Read... [16:06:32]Read from MH i2c: E2 0B 00 8B 9A 00 F3 9C C2 18 15 59 7A 05 90 00 F7 [16:06:32]RAPDU: F3 9C C2 18 15 59 7A 05 90 00 [16:06:32]wFMCommunicate OK [16:06:32]SAM_PROTO_SignData done [16:06:32]FM_MakeSignedData done [16:06:32]CreateOFDProtocolMessage [16:06:32]wFMCommunicate request_size=4 [16:06:32]MH_SAM_APDU [16:06:32]CAPDU: 80 11 00 00 [16:06:32]Write to MH i2c: E2 08 00 8C 9A 80 11 00 00 00 00 00 00 A0 [16:06:32]Write i2c OK [16:06:32]MH_I2C_Read... [16:06:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:32]Read from MH i2c: E2 [16:06:32]MH_I2C_Read... [16:06:32]Read from MH i2c: E2 17 00 [16:06:32]MH_I2C_Read... [16:06:32]Read from MH i2c: E2 17 00 8C 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 ED [16:06:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:06:32]wFMCommunicate OK [16:06:32]CreateOFDProtocolMessage done [16:06:32]OFDSenderStorePacket 260770 [16:06:32]StoreOFDPacket docnum=260770 [16: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 30 0F 01 00 00 7A 12 07 01 C5 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 48 01 00 00 F4 03 04 00 0C 1C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A2 FA 03 00 35 04 06 00 22 D1 A4 D4 9C 68 F3 9C C2 18 15 59 7A 05 [16:06:32]CheckFolder [16:06:32]dirname=/storage/ofd_packets [16:06:32]CheckFolder done [16:06:32]ProducePacketName [16:06:32]name=ofd_packets/00260770 [16:06:32]NVStorageSaveData ofd_packets/00260770 [16:06:32]File name is /storage/ofd_packets/00260770 [16:06:32]Write 301 bytes [16:06:32]NVStorageSaveData done [16:06:32]OFDSenderStorePacket done [16:06:32]KKMCreateOFDPacket done [16:06:32]NVStorageSaveData kkm_last_timestamp [16:06:32]File name is /storage/kkm_last_timestamp [16:06:32]Write 4 bytes [16:06:32]NVStorageSaveData done [16:06:32]ExternCall_PrintAddStr [16:06:32]wPrintStart [16:06:32]Write to MH i2c: 01 00 00 8D 9A 27 [16:06:32]Write i2c OK [16:06:32]MH_I2C_Read... [16:06:32]Read from MH i2c: 01 [16:06:32]MH_I2C_Read... [16:06:32]Read from MH i2c: 01 07 00 [16:06:32]MH_I2C_Read... [16:06:32]Read from MH i2c: 01 07 00 8D 9A 00 00 00 00 00 FF 0F 3C [16:06:32]RasterBufferAndPrint [16:06:32]line Счет N : (1)1036322 [16:06:32]line ИНН: 02508201610067 [16:06:32]line Контрольно-Кассовый Чек [16:06:32]line ПРОДАЖА [16:06:32]line ТРК (МРК, ГНК) : 22 [16:06:32]line Товар: 2710124130 [16:06:32]line Аи-92-К-5 [16:06:32]line 7.380 * 67.80 [16:06:32]line = 500.36 [16:06:32]line НДС 12% НСП 1% [16:06:32]line > о реализуемом товаре [16:06:32]line ОКРУГЛЕНИЕ: -0.36 [16:06:32]line ИТОГО: 500.00 [16:06:32]line Внесено: 500.00 [16:06:32]line СДАЧА: 0.00 [16:06:32]line НСП 1% : 4.43 [16:06:32]line НДС 12% : 53.14 [16:06:32]line Наличными: 500.00 [16:06:32]line Безнал.: 0.00 [16:06:32]line Место: АЗС № 94 "Партнер Нефть" [16:06:32]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [16:06:32]line СНО: Общий режим [16:06:32]line Чек 328 18.08.2024 16:06 [16:06:32]line Смена: 449 ФФД: 1.0 [16:06:32]line ЗНМ: 0300000099 [16:06:32]line РНМ: 0000000000091865 [16:06:32]line Версия ККМ: 001 [16:06:32]line ФМ: 0000000000871820 [16:06:32]line ФД: 260770 [16:06:32]line ФПД: 38283808906344 [16:06:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T160636&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260770&fm=38283808906344&tin=02508201610067®Number=0000000000091865&sum=50000 [16:06:32]written 0, free lines is 4095 [16:06:32]OFD Sender: Processing packet 260770 [packets to send 192, broken 191] [16:06:32]ProducePacketName [16:06:32]name=ofd_packets/00260770 [16:06:32]OFD Sender: To server: pG, [16:06:32]CommunicateWithHost lk.salyk.kg:30040 [16:06:32]ConnectInit lk.salyk.kg [16:06:32]Connected sock=10 [16:06: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 30 0F 01 00 00 7A 12 07 01 C5 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 48 01 00 00 F4 03 04 00 0C 1C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A2 FA 03 00 35 04 06 00 22 D1 A4 D4 9C 68 F3 9C C2 18 15 59 7A 05 [16:06: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 30 4F 00 00 00 79 B1 47 00 CD D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A2 FA 03 00 F4 03 04 00 60 C5 C1 66 B6 04 01 00 00 CB 2C 1A 87 04 32 34 A6 [16:06:32]CommunicateWithHost err = 0 [16:06:32]CheckOFDResponse [16:06:32]1017 (14) - 77093643461234 [16:06:32]1041 (16) - 0000000000871820 [16:06:32]1040 (4) - 260770 [16:06:32]1012 (4) - 18.08.2024 09:56 [16:06:32]1206 (1) - 0 [16:06:32]OFD Sender: Remove packet 260770 [16:06:32]ProducePacketName [16:06:32]name=ofd_packets/00260770 [16:06:32]NVStorageDeleteData [16:06:32]Write to MH i2c: 01 00 00 B8 9A 52 [16:06:32]Write i2c OK [16:06:32]MH_I2C_Read... [16:06:32]Read from MH i2c: 01 [16:06:32]MH_I2C_Read... [16:06:32]Read from MH i2c: 01 07 00 [16:06:32]MH_I2C_Read... [16:06:32]Read from MH i2c: 01 07 00 B8 9A 00 00 00 00 00 74 0C D9 [16:06:32]RasterBufferAndPrint [16:06:32]line [16:06:32]line [16:06:32]line [16:06:32]line [16:06:32]line [16:06:32]written 0, free lines is 3192 [16:06:32]MH_Cut [16:06:32]Write to MH i2c: D1 01 00 BF 9A 01 2B [16:06:32]Write i2c OK [16:06:32]MH_I2C_Read... [16:06:32]Read from MH i2c: D1 [16:06:32]MH_I2C_Read... [16:06:32]Read from MH i2c: D1 01 00 [16:06:32]MH_I2C_Read... [16:06:32]Read from MH i2c: D1 01 00 BF 9A 00 2A [16:06:32]Write to MH i2c: 01 00 00 C0 9A 5A [16:06:32]Write i2c OK [16:06:32]MH_I2C_Read... [16:06:33]OFD Sender: No OFD packet to send [16:06:34]*** Cut start [16:06:34]*** Purtial cut [16:06:34]*** Stage 1: CUTSNS_PIN = 1 [16:06:36]Read from MH i2c: 01 [16:06:36]MH_I2C_Read... [16:06:36]*** Stop cut motor [16:06:36]*** Cut end [16:06:36]Read from MH i2c: 01 07 00 [16:06:36]MH_I2C_Read... [16:06:36]Read from MH i2c: 01 07 00 C0 9A 00 00 00 00 00 FF 0F 6F [16:06:36]process_action close_receipt done [16:06:36]requested_data is exist [16:06:36]produce_requested_data [16:06:36]requested_item fm.sn is exist - process it [16:06:36]wFMCommunicate request_size=4 [16:06:36]MH_SAM_APDU [16:06:36]CAPDU: 80 11 00 00 [16:06:36]Write to MH i2c: E2 08 00 C1 9A 80 11 00 00 00 00 00 00 D5 [16:06:36]Write i2c OK [16:06:36]MH_I2C_Read... [16:06:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:36]Read from MH i2c: E2 [16:06:36]MH_I2C_Read... [16:06:36]Read from MH i2c: E2 17 00 [16:06:36]MH_I2C_Read... [16:06:36]Read from MH i2c: E2 17 00 C1 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 22 [16:06:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:06:36]wFMCommunicate OK [16:06:36]requested_item fd.num is exist - process it [16:06:36]SAM_PROTO_GetFieldsCounters [16:06:36]wFMCommunicate request_size=4 [16:06:36]MH_SAM_APDU [16:06:36]CAPDU: 80 13 00 00 [16:06:36]Write to MH i2c: E2 08 00 C2 9A 80 13 00 00 00 00 00 00 D8 [16:06:36]Write i2c OK [16:06:36]MH_I2C_Read... [16:06:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:36]Read from MH i2c: E2 [16:06:36]MH_I2C_Read... [16:06:36]Read from MH i2c: E2 62 00 [16:06:36]MH_I2C_Read... [16:06:36]Read from MH i2c: E2 62 00 C2 9A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A2 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 33 [16:06: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A2 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:06:36]wFMCommunicate OK [16:06:36]SAM_PROTO_GetFieldsCounters done [16:06:36]requested_item shift.num is exist - process it [16:06:36]requested_item shift.opened is exist - process it [16:06:36]req_shift_opened [16:06:36]FM_GetShiftState [16:06:36]SAM_PROTO_GetShiftState [16:06:36]wFMCommunicate request_size=4 [16:06:36]MH_SAM_APDU [16:06:36]CAPDU: 80 13 01 00 [16:06:36]Write to MH i2c: E2 08 00 C3 9A 80 13 01 00 00 00 00 00 DA [16:06:36]Write i2c OK [16:06:36]MH_I2C_Read... [16:06:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:36]Read from MH i2c: E2 [16:06:36]MH_I2C_Read... [16:06:36]Read from MH i2c: E2 0E 00 [16:06:36]MH_I2C_Read... [16:06:36]Read from MH i2c: E2 0E 00 C3 9A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 17 [16:06:36]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:06:36]wFMCommunicate OK [16:06:36]SAM_PROTO_GetShiftState done [16:06:36]FM_GetShiftState done [16:06:36]req_shift_opened done [16:06:36]requested_item shift.open_date is exist - process it [16:06:36]req_shift_open_date [16:06:36]req_shift_open_date done [16:06:36]produce_requested_data done [16:06:36]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260770,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [16:06:36]process_action_free close_receipt [16:06:36]json_value_free [16:06:36]json_value_free done [16:06:36]process_json_proto returns [16:06:36]Send response to host [16:06:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260770,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [16:06:36]free response buf [16:06:36]execute_script done [16:06:36]execute_script returns [16:06:36]free content buf [16:06:36]Sock 7.Close socket [16:06:36]Sock 7.Thread stoped [16:06:38]OFD Sender: No OFD packet to send [16:06:43]OFD Sender: No OFD packet to send [16:06:48]OFD Sender: No OFD packet to send [16:06:53]OFD Sender: No OFD packet to send [16:06:58]OFD Sender: No OFD packet to send [16:07:03]OFD Sender: No OFD packet to send [16:07:08]OFD Sender: No OFD packet to send [16:07:13]OFD Sender: No OFD packet to send [16:07:18]OFD Sender: No OFD packet to send [16:07:23]OFD Sender: No OFD packet to send [16:07:28]OFD Sender: No OFD packet to send [16:07:33]OFD Sender: No OFD packet to send [16:07:38]OFD Sender: No OFD packet to send [16:07:43]OFD Sender: No OFD packet to send [16:07:48]OFD Sender: No OFD packet to send [16:07:53]OFD Sender: No OFD packet to send [16:07:53]accept exits with 9 [16:07:53]New connection [16:07:53]New thread 3066617188 created [16:07:53]Thread 3066473828 joined [16:07:53]Waiting for new connection... [16:07:53] Sock 9.Parse request [16:07:53]Sock 9.Check first char [16:07:53]Sock 9.First char is OK [16:07:53]request: POST /json_proto HTTP/1.0 [16:07:53]Method: POST [16:07:53]URL: /json_proto [16:07:53]Method is POST - this is cgi request [16:07:53]url: /json_proto [16:07:53]query_string will be loaded in cgi processing [16:07:53]execute_cgi json_proto POST (null) [16:07:53]execute_cgi path=json_proto method=POST [16:07:53]POST find Content-Length [16:07:53]Host: 172.17.55.133:8080 [16:07:53]Content-Length: 678 [16:07:53]Content-Type: application/json [16:07:53] [16:07:53]POST finish read [16:07:53]Found Content-Length = 678 [16:07:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:53]execute_script... [16:07: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)1036323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:53]POST & json_proto [16:07:53]process_json_proto [16:07:53]json parsed OK: [16:07:53]protocol is kg_v1.0 [16:07:53]action value=close_receipt [16:07:53]process_action close_receipt [16:07:53]cmd_close_receipt [16:07:53]MH_GetDate [16:07:53]Write to MH i2c: F0 00 00 C4 9A 4D [16:07:53]Write i2c OK [16:07:53]MH_I2C_Read... [16:07:53]Read from MH i2c: F0 [16:07:53]MH_I2C_Read... [16:07:53]Read from MH i2c: F0 09 00 [16:07:53]MH_I2C_Read... [16:07:53]Read from MH i2c: F0 09 00 C4 9A 00 5F 1C C2 66 34 48 D8 65 B2 [16:07:53]GetLastDocTimeStamp 1723997196 [16:07:53]current date 1723997279 [16:07:53]FM_GetShiftState [16:07:53]SAM_PROTO_GetShiftState [16:07:53]wFMCommunicate request_size=4 [16:07:53]MH_SAM_APDU [16:07:53]CAPDU: 80 13 01 00 [16:07:53]Write to MH i2c: E2 08 00 C5 9A 80 13 01 00 00 00 00 00 DC [16:07:53]Write i2c OK [16:07:53]MH_I2C_Read... [16:07:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:53]Read from MH i2c: E2 [16:07:53]MH_I2C_Read... [16:07:53]Read from MH i2c: E2 0E 00 [16:07:53]MH_I2C_Read... [16:07:53]Read from MH i2c: E2 0E 00 C5 9A 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 19 [16:07:53]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:07:53]wFMCommunicate OK [16:07:53]SAM_PROTO_GetShiftState done [16:07:53]FM_GetShiftState done [16:07:53]opened in 1723940556 [16:07:53]opened+sec_in_day 1724026956 [16:07:53]quantity*price = 50036 [16:07:53]sum+1 = 50037 [16:07:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 329 18.08.2024 16:07 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260771 ФПД: 42645070750790 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T160759&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260771&fm=42645070750790&tin=02508201610067®Number=0000000000091865&sum=50000 [16:07:54]StoreToDocumentArchive [16:07:54]shift 449 fd 260771 [16:07:54]save to /storage/0449/doc_00260771 [16:07:54]save last doc name /storage/0449/doc_00260771 to /storage/kkm_last_doc_name [16:07:54]save OK [16:07:54]Clear old archive folders... [16:07:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:07:54]tlvbuf is 00336590 [16:07:54]SAM_PROTO_ClearQueue [16:07:54]wFMCommunicate request_size=4 [16:07:54]MH_SAM_APDU [16:07:54]CAPDU: 80 09 00 00 [16:07:54]Write to MH i2c: E2 08 00 D2 9A 80 09 00 00 00 00 00 00 DE [16:07:54]Write i2c OK [16:07:54]MH_I2C_Read... [16:07:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:07:54]Read from MH i2c: E2 [16:07:54]MH_I2C_Read... [16:07:54]Read from MH i2c: E2 03 00 [16:07:54]MH_I2C_Read... [16:07:54]Read from MH i2c: E2 03 00 D2 9A 00 90 00 E0 [16:07:54]RAPDU: 90 00 [16:07:54]wFMCommunicate OK [16:07:54]SAM_PROTO_ClearQueue done [16:07:54]KKMCreateOFDPacket [16:07:54]OFDProtocolAddRootSTLVToBuf [16:07:54]FM_MakeSignedData [16:07:54]FM_MakeSignedData [16:07:54]SAM_PROTO_SignData [16:07:54]wFMCommunicate request_size=4 [16:07:54]MH_SAM_APDU [16:07:54]CAPDU: 80 0D 01 02 [16:07:54]Write to MH i2c: E2 08 00 D3 9A 80 0D 01 02 00 00 00 00 E6 [16:07:54]Write i2c OK [16:07:54]MH_I2C_Read... [16:07:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:07:54]Read from MH i2c: E2 [16:07:54]MH_I2C_Read... [16:07:54]Read from MH i2c: E2 03 00 [16:07:54]MH_I2C_Read... [16:07:54]Read from MH i2c: E2 03 00 D3 9A 00 90 00 E1 [16:07:54]RAPDU: 90 00 [16:07:54]wFMCommunicate OK [16:07:54]wFMCommunicate request_size=255 [16:07:54]MH_SAM_APDU [16:07:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 49 01 00 00 F4 03 04 00 5F 1C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A3 FA 03 00 35 04 06 00 26 [16:07:54]Write to MH i2c: E2 02 01 D4 9A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 49 01 00 00 F4 03 04 00 5F 1C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A3 FA 03 00 35 04 06 00 26 00 00 D8 [16:07:54]Write i2c OK [16:07:54]MH_I2C_Read... [16:07:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:55]Read from MH i2c: E2 [16:07:55]MH_I2C_Read... [16:07:55]Read from MH i2c: E2 03 00 [16:07:55]MH_I2C_Read... [16:07:55]Read from MH i2c: E2 03 00 D4 9A 00 90 00 E2 [16:07:55]RAPDU: 90 00 [16:07:55]wFMCommunicate OK [16:07:55]wFMCommunicate request_size=10 [16:07:55]MH_SAM_APDU [16:07:55]CAPDU: 80 0D 02 02 05 C9 14 4B 24 46 [16:07:55]Write to MH i2c: E2 0D 00 D5 9A 80 0D 02 02 05 00 C9 14 4B 24 46 00 00 85 [16:07:55]Write i2c OK [16:07:55]MH_I2C_Read... [16:07:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:55]Read from MH i2c: E2 [16:07:55]MH_I2C_Read... [16:07:55]Read from MH i2c: E2 03 00 [16:07:55]MH_I2C_Read... [16:07:55]Read from MH i2c: E2 03 00 D5 9A 00 90 00 E3 [16:07:55]RAPDU: 90 00 [16:07:55]wFMCommunicate OK [16:07:55]wFMCommunicate request_size=4 [16:07:55]MH_SAM_APDU [16:07:55]CAPDU: 80 0D 03 02 [16:07:55]Write to MH i2c: E2 08 00 D6 9A 80 0D 03 02 00 00 00 00 EB [16:07:55]Write i2c OK [16:07:55]MH_I2C_Read... [16:07:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:07:55]Read from MH i2c: E2 [16:07:55]MH_I2C_Read... [16:07:55]Read from MH i2c: E2 0B 00 [16:07:55]MH_I2C_Read... [16:07:55]Read from MH i2c: E2 0B 00 D6 9A 00 26 9B B5 00 D2 2C 66 DD 90 00 A3 [16:07:55]RAPDU: 26 9B B5 00 D2 2C 66 DD 90 00 [16:07:55]wFMCommunicate OK [16:07:55]SAM_PROTO_SignData done [16:07:55]FM_MakeSignedData done [16:07:55]CreateOFDProtocolMessage [16:07:55]wFMCommunicate request_size=4 [16:07:55]MH_SAM_APDU [16:07:55]CAPDU: 80 11 00 00 [16:07:55]Write to MH i2c: E2 08 00 D7 9A 80 11 00 00 00 00 00 00 EB [16:07:55]Write i2c OK [16:07:55]MH_I2C_Read... [16:07:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:55]Read from MH i2c: E2 [16:07:55]MH_I2C_Read... [16:07:55]Read from MH i2c: E2 17 00 [16:07:55]MH_I2C_Read... [16:07:55]Read from MH i2c: E2 17 00 D7 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 38 [16:07:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:07:55]wFMCommunicate OK [16:07:55]CreateOFDProtocolMessage done [16:07:55]OFDSenderStorePacket 260771 [16:07:55]StoreOFDPacket docnum=260771 [16:07:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 FB AC 07 01 99 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 49 01 00 00 F4 03 04 00 5F 1C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A3 FA 03 00 35 04 06 00 26 C9 14 4B 24 46 26 9B B5 00 D2 2C 66 DD [16:07:55]CheckFolder [16:07:55]dirname=/storage/ofd_packets [16:07:55]CheckFolder done [16:07:55]ProducePacketName [16:07:55]name=ofd_packets/00260771 [16:07:55]NVStorageSaveData ofd_packets/00260771 [16:07:55]File name is /storage/ofd_packets/00260771 [16:07:55]Write 301 bytes [16:07:55]NVStorageSaveData done [16:07:55]OFDSenderStorePacket done [16:07:55]KKMCreateOFDPacket done [16:07:55]NVStorageSaveData kkm_last_timestamp [16:07:55]File name is /storage/kkm_last_timestamp [16:07:55]Write 4 bytes [16:07:55]NVStorageSaveData done [16:07:55]ExternCall_PrintAddStr [16:07:55]wPrintStart [16:07:55]Write to MH i2c: 01 00 00 D8 9A 72 [16:07:55]Write i2c OK [16:07:55]MH_I2C_Read... [16:07:55]Read from MH i2c: 01 [16:07:55]MH_I2C_Read... [16:07:55]Read from MH i2c: 01 07 00 [16:07:55]MH_I2C_Read... [16:07:55]Read from MH i2c: 01 07 00 D8 9A 00 00 00 00 00 FF 0F 87 [16:07:55]RasterBufferAndPrint [16:07:55]line Счет N : (1)1036323 [16:07:55]line ИНН: 02508201610067 [16:07:55]line Контрольно-Кассовый Чек [16:07:55]line ПРОДАЖА [16:07:55]line ТРК (МРК, ГНК) : 42 [16:07:55]line Товар: 2710124130 [16:07:55]line Аи-92-К-5 [16:07:55]line 7.380 * 67.80 [16:07:55]line = 500.36 [16:07:55]line НДС 12% НСП 1% [16:07:55]line > о реализуемом товаре [16:07:55]line ОКРУГЛЕНИЕ: -0.36 [16:07:55]line ИТОГО: 500.00 [16:07:55]line Внесено: 500.00 [16:07:55]line СДАЧА: 0.00 [16:07:55]line НСП 1% : 4.43 [16:07:55]line НДС 12% : 53.14 [16:07:55]line Наличными: 500.00 [16:07:55]line Безнал.: 0.00 [16:07:55]line Место: АЗС № 94 "Партнер Нефть" [16:07:55]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [16:07:55]line СНО: Общий режим [16:07:55]line Чек 329 18.08.2024 16:07 [16:07:55]line Смена: 449 ФФД: 1.0 [16:07:55]line ЗНМ: 0300000099 [16:07:55]line РНМ: 0000000000091865 [16:07:55]line Версия ККМ: 001 [16:07:55]line ФМ: 0000000000871820 [16:07:55]line ФД: 260771 [16:07:55]line ФПД: 42645070750790 [16:07:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T160759&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260771&fm=42645070750790&tin=02508201610067®Number=0000000000091865&sum=50000 [16:07:55]written 0, free lines is 4095 [16:07:55]OFD Sender: Processing packet 260771 [packets to send 192, broken 191] [16:07:55]ProducePacketName [16:07:55]name=ofd_packets/00260771 [16:07:55]OFD Sender: To server: pG, [16:07:55]CommunicateWithHost lk.salyk.kg:30040 [16:07:55]ConnectInit lk.salyk.kg [16:07:55]Connected sock=10 [16:07: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 30 0F 01 00 00 FB AC 07 01 99 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 49 01 00 00 F4 03 04 00 5F 1C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A3 FA 03 00 35 04 06 00 26 C9 14 4B 24 46 26 9B B5 00 D2 2C 66 DD [16:07: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 30 4F 00 00 00 BC C0 47 00 F5 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 30 10 04 04 00 A3 FA 03 00 F4 03 04 00 B3 C5 C1 66 B6 04 01 00 00 37 1B B5 94 3B 01 31 59 [16:07:55]CommunicateWithHost err = 0 [16:07:55]CheckOFDResponse [16:07:55]1017 (14) - 77093643461234 [16:07:55]1041 (16) - 0000000000871820 [16:07:55]1040 (4) - 260771 [16:07:55]1012 (4) - 18.08.2024 09:58 [16:07:55]1206 (1) - 0 [16:07:55]OFD Sender: Remove packet 260771 [16:07:55]ProducePacketName [16:07:55]name=ofd_packets/00260771 [16:07:55]NVStorageDeleteData [16:07:55]Write to MH i2c: 01 00 00 03 9B 9E [16:07:55]Write i2c OK [16:07:55]MH_I2C_Read... [16:07:55]Read from MH i2c: 01 [16:07:55]MH_I2C_Read... [16:07:55]Read from MH i2c: 01 07 00 [16:07:55]MH_I2C_Read... [16:07:55]Read from MH i2c: 01 07 00 03 9B 00 00 00 00 00 6D 0C 1E [16:07:55]RasterBufferAndPrint [16:07:55]line [16:07:55]line [16:07:55]line [16:07:55]line [16:07:55]line [16:07:55]written 0, free lines is 3184 [16:07:55]MH_Cut [16:07:55]Write to MH i2c: D1 01 00 0A 9B 01 77 [16:07:55]Write i2c OK [16:07:55]MH_I2C_Read... [16:07:55]Read from MH i2c: D1 [16:07:55]MH_I2C_Read... [16:07:55]Read from MH i2c: D1 01 00 [16:07:55]MH_I2C_Read... [16:07:55]Read from MH i2c: D1 01 00 0A 9B 00 76 [16:07:55]Write to MH i2c: 01 00 00 0B 9B A6 [16:07:55]Write i2c OK [16:07:55]MH_I2C_Read... [16:07:56]OFD Sender: No OFD packet to send [16:07:56]*** Cut start [16:07:56]*** Purtial cut [16:07:56]*** Stage 1: CUTSNS_PIN = 1 [16:07:58]Read from MH i2c: 01 [16:07:58]MH_I2C_Read... [16:07:58]*** Stop cut motor [16:07:58]*** Cut end [16:07:58]Read from MH i2c: 01 07 00 [16:07:58]MH_I2C_Read... [16:07:58]Read from MH i2c: 01 07 00 0B 9B 00 00 00 00 00 FF 0F BB [16:07:58]process_action close_receipt done [16:07:58]requested_data is exist [16:07:58]produce_requested_data [16:07:58]requested_item fm.sn is exist - process it [16:07:58]wFMCommunicate request_size=4 [16:07:58]MH_SAM_APDU [16:07:58]CAPDU: 80 11 00 00 [16:07:58]Write to MH i2c: E2 08 00 0C 9B 80 11 00 00 00 00 00 00 21 [16:07:58]Write i2c OK [16:07:58]MH_I2C_Read... [16:07:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:58]Read from MH i2c: E2 [16:07:58]MH_I2C_Read... [16:07:58]Read from MH i2c: E2 17 00 [16:07:58]MH_I2C_Read... [16:07:58]Read from MH i2c: E2 17 00 0C 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 6E [16:07:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:07:58]wFMCommunicate OK [16:07:58]requested_item fd.num is exist - process it [16:07:58]SAM_PROTO_GetFieldsCounters [16:07:58]wFMCommunicate request_size=4 [16:07:58]MH_SAM_APDU [16:07:58]CAPDU: 80 13 00 00 [16:07:58]Write to MH i2c: E2 08 00 0D 9B 80 13 00 00 00 00 00 00 24 [16:07:58]Write i2c OK [16:07:58]MH_I2C_Read... [16:07:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:07:59]Read from MH i2c: E2 [16:07:59]MH_I2C_Read... [16:07:59]Read from MH i2c: E2 62 00 [16:07:59]MH_I2C_Read... [16:07:59]Read from MH i2c: E2 62 00 0D 9B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A3 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 83 [16:07: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A3 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:07:59]wFMCommunicate OK [16:07:59]SAM_PROTO_GetFieldsCounters done [16:07:59]requested_item shift.num is exist - process it [16:07:59]requested_item shift.opened is exist - process it [16:07:59]req_shift_opened [16:07:59]FM_GetShiftState [16:07:59]SAM_PROTO_GetShiftState [16:07:59]wFMCommunicate request_size=4 [16:07:59]MH_SAM_APDU [16:07:59]CAPDU: 80 13 01 00 [16:07:59]Write to MH i2c: E2 08 00 0E 9B 80 13 01 00 00 00 00 00 26 [16:07:59]Write i2c OK [16:07:59]MH_I2C_Read... [16:07:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:59]Read from MH i2c: E2 [16:07:59]MH_I2C_Read... [16:07:59]Read from MH i2c: E2 0E 00 [16:07:59]MH_I2C_Read... [16:07:59]Read from MH i2c: E2 0E 00 0E 9B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 63 [16:07:59]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:07:59]wFMCommunicate OK [16:07:59]SAM_PROTO_GetShiftState done [16:07:59]FM_GetShiftState done [16:07:59]req_shift_opened done [16:07:59]requested_item shift.open_date is exist - process it [16:07:59]req_shift_open_date [16:07:59]req_shift_open_date done [16:07:59]produce_requested_data done [16:07:59]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260771,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [16:07:59]process_action_free close_receipt [16:07:59]json_value_free [16:07:59]json_value_free done [16:07:59]process_json_proto returns [16:07:59]Send response to host [16:07:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260771,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [16:07:59]free response buf [16:07:59]execute_script done [16:07:59]execute_script returns [16:07:59]free content buf [16:07:59]Sock 9.Close socket [16:07:59]Sock 9.Thread stoped [16:08:01]OFD Sender: No OFD packet to send [16:08:06]OFD Sender: No OFD packet to send [16:08:11]OFD Sender: No OFD packet to send [16:08:16]OFD Sender: No OFD packet to send [16:08:21]OFD Sender: No OFD packet to send [16:08:26]OFD Sender: No OFD packet to send [16:08:31]OFD Sender: No OFD packet to send [16:08:36]OFD Sender: No OFD packet to send [16:08:41]OFD Sender: No OFD packet to send [16:08:46]OFD Sender: No OFD packet to send [16:08:51]OFD Sender: No OFD packet to send [16:08:56]OFD Sender: No OFD packet to send [16:09:01]OFD Sender: No OFD packet to send [16:09:06]OFD Sender: No OFD packet to send [16:09:11]OFD Sender: No OFD packet to send [16:09:16]OFD Sender: No OFD packet to send [16:09:21]OFD Sender: No OFD packet to send [16:09:26]OFD Sender: No OFD packet to send [16:09:28]accept exits with 7 [16:09:28]New connection [16:09:28]New thread 3066473828 created [16:09:28]Thread 3066617188 joined [16:09:28]Waiting for new connection... [16:09:28] Sock 7.Parse request [16:09:28]Sock 7.Check first char [16:09:28]Sock 7.First char is OK [16:09:28]request: POST /json_proto HTTP/1.0 [16:09:28]Method: POST [16:09:28]URL: /json_proto [16:09:28]Method is POST - this is cgi request [16:09:28]url: /json_proto [16:09:28]query_string will be loaded in cgi processing [16:09:28]execute_cgi json_proto POST (null) [16:09:28]execute_cgi path=json_proto method=POST [16:09:28]POST find Content-Length [16:09:28]Host: 172.17.55.133:8080 [16:09:28]Content-Length: 679 [16:09:28]Content-Type: application/json [16:09:28] [16:09:28]POST finish read [16:09:28]Found Content-Length = 679 [16:09:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:28]execute_script... [16:09: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)1036324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:28]POST & json_proto [16:09:28]process_json_proto [16:09:28]json parsed OK: [16:09:28]protocol is kg_v1.0 [16:09:28]action value=close_receipt [16:09:28]process_action close_receipt [16:09:28]cmd_close_receipt [16:09:28]MH_GetDate [16:09:28]Write to MH i2c: F0 00 00 0F 9B 99 [16:09:28]Write i2c OK [16:09:28]MH_I2C_Read... [16:09:28]Read from MH i2c: F0 [16:09:28]MH_I2C_Read... [16:09:28]Read from MH i2c: F0 09 00 [16:09:28]MH_I2C_Read... [16:09:28]Read from MH i2c: F0 09 00 0F 9B 00 BE 1C C2 66 34 48 D8 65 5D [16:09:28]GetLastDocTimeStamp 1723997279 [16:09:28]current date 1723997374 [16:09:28]FM_GetShiftState [16:09:28]SAM_PROTO_GetShiftState [16:09:28]wFMCommunicate request_size=4 [16:09:28]MH_SAM_APDU [16:09:28]CAPDU: 80 13 01 00 [16:09:28]Write to MH i2c: E2 08 00 10 9B 80 13 01 00 00 00 00 00 28 [16:09:28]Write i2c OK [16:09:28]MH_I2C_Read... [16:09:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:28]Read from MH i2c: E2 [16:09:28]MH_I2C_Read... [16:09:28]Read from MH i2c: E2 0E 00 [16:09:28]MH_I2C_Read... [16:09:28]Read from MH i2c: E2 0E 00 10 9B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 65 [16:09:28]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:09:28]wFMCommunicate OK [16:09:28]SAM_PROTO_GetShiftState done [16:09:28]FM_GetShiftState done [16:09:28]opened in 1723940556 [16:09:28]opened+sec_in_day 1724026956 [16:09:28]quantity*price = 70037 [16:09:28]sum+1 = 70038 [16:09:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 330 18.08.2024 16:09 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260772 ФПД: 59174025357751 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T160934&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260772&fm=59174025357751&tin=02508201610067®Number=0000000000091865&sum=70000 [16:09:29]StoreToDocumentArchive [16:09:29]shift 449 fd 260772 [16:09:29]save to /storage/0449/doc_00260772 [16:09:29]save last doc name /storage/0449/doc_00260772 to /storage/kkm_last_doc_name [16:09:29]save OK [16:09:29]Clear old archive folders... [16:09:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:09:29]tlvbuf is 0036F4E0 [16:09:29]SAM_PROTO_ClearQueue [16:09:29]wFMCommunicate request_size=4 [16:09:29]MH_SAM_APDU [16:09:29]CAPDU: 80 09 00 00 [16:09:29]Write to MH i2c: E2 08 00 1D 9B 80 09 00 00 00 00 00 00 2A [16:09:29]Write i2c OK [16:09:29]MH_I2C_Read... [16:09:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:09:29]Read from MH i2c: E2 [16:09:29]MH_I2C_Read... [16:09:29]Read from MH i2c: E2 03 00 [16:09:29]MH_I2C_Read... [16:09:29]Read from MH i2c: E2 03 00 1D 9B 00 90 00 2C [16:09:29]RAPDU: 90 00 [16:09:29]wFMCommunicate OK [16:09:29]SAM_PROTO_ClearQueue done [16:09:29]KKMCreateOFDPacket [16:09:29]OFDProtocolAddRootSTLVToBuf [16:09:29]FM_MakeSignedData [16:09:29]FM_MakeSignedData [16:09:29]SAM_PROTO_SignData [16:09:29]wFMCommunicate request_size=4 [16:09:29]MH_SAM_APDU [16:09:29]CAPDU: 80 0D 01 02 [16:09:29]Write to MH i2c: E2 08 00 1E 9B 80 0D 01 02 00 00 00 00 32 [16:09:29]Write i2c OK [16:09:29]MH_I2C_Read... [16:09:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:09:29]Read from MH i2c: E2 [16:09:29]MH_I2C_Read... [16:09:29]Read from MH i2c: E2 03 00 [16:09:29]MH_I2C_Read... [16:09:29]Read from MH i2c: E2 03 00 1E 9B 00 90 00 2D [16:09:29]RAPDU: 90 00 [16:09:29]wFMCommunicate OK [16:09:29]wFMCommunicate request_size=255 [16:09:29]MH_SAM_APDU [16:09:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 4A 01 00 00 F4 03 04 00 BE 1C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A4 FA 03 00 35 04 06 00 35 [16:09:29]Write to MH i2c: E2 02 01 1F 9B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 4A 01 00 00 F4 03 04 00 BE 1C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A4 FA 03 00 35 04 06 00 35 00 00 7B [16:09:29]Write i2c OK [16:09:29]MH_I2C_Read... [16:09:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:30]Read from MH i2c: E2 [16:09:30]MH_I2C_Read... [16:09:30]Read from MH i2c: E2 03 00 [16:09:30]MH_I2C_Read... [16:09:30]Read from MH i2c: E2 03 00 1F 9B 00 90 00 2E [16:09:30]RAPDU: 90 00 [16:09:30]wFMCommunicate OK [16:09:30]wFMCommunicate request_size=10 [16:09:30]MH_SAM_APDU [16:09:30]CAPDU: 80 0D 02 02 05 D1 86 C2 E9 B7 [16:09:30]Write to MH i2c: E2 0D 00 20 9B 80 0D 02 02 05 00 D1 86 C2 E9 B7 00 00 F8 [16:09:30]Write i2c OK [16:09:30]MH_I2C_Read... [16:09:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:30]Read from MH i2c: E2 [16:09:30]MH_I2C_Read... [16:09:30]Read from MH i2c: E2 03 00 [16:09:30]MH_I2C_Read... [16:09:30]Read from MH i2c: E2 03 00 20 9B 00 90 00 2F [16:09:30]RAPDU: 90 00 [16:09:30]wFMCommunicate OK [16:09:30]wFMCommunicate request_size=4 [16:09:30]MH_SAM_APDU [16:09:30]CAPDU: 80 0D 03 02 [16:09:30]Write to MH i2c: E2 08 00 21 9B 80 0D 03 02 00 00 00 00 37 [16:09:30]Write i2c OK [16:09:30]MH_I2C_Read... [16:09:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:09:30]Read from MH i2c: E2 [16:09:30]MH_I2C_Read... [16:09:30]Read from MH i2c: E2 0B 00 [16:09:30]MH_I2C_Read... [16:09:30]Read from MH i2c: E2 0B 00 21 9B 00 6C 5D 26 95 56 E1 4F 24 90 00 66 [16:09:30]RAPDU: 6C 5D 26 95 56 E1 4F 24 90 00 [16:09:30]wFMCommunicate OK [16:09:30]SAM_PROTO_SignData done [16:09:30]FM_MakeSignedData done [16:09:30]CreateOFDProtocolMessage [16:09:30]wFMCommunicate request_size=4 [16:09:30]MH_SAM_APDU [16:09:30]CAPDU: 80 11 00 00 [16:09:30]Write to MH i2c: E2 08 00 22 9B 80 11 00 00 00 00 00 00 37 [16:09:30]Write i2c OK [16:09:30]MH_I2C_Read... [16:09:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:30]Read from MH i2c: E2 [16:09:30]MH_I2C_Read... [16:09:30]Read from MH i2c: E2 17 00 [16:09:30]MH_I2C_Read... [16:09:30]Read from MH i2c: E2 17 00 22 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 84 [16:09:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:09:30]wFMCommunicate OK [16:09:30]CreateOFDProtocolMessage done [16:09:30]OFDSenderStorePacket 260772 [16:09:30]StoreOFDPacket docnum=260772 [16:09:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 41 EF 07 01 2C AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 4A 01 00 00 F4 03 04 00 BE 1C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A4 FA 03 00 35 04 06 00 35 D1 86 C2 E9 B7 6C 5D 26 95 56 E1 4F 24 [16:09:30]CheckFolder [16:09:30]dirname=/storage/ofd_packets [16:09:30]CheckFolder done [16:09:30]ProducePacketName [16:09:30]name=ofd_packets/00260772 [16:09:30]NVStorageSaveData ofd_packets/00260772 [16:09:30]File name is /storage/ofd_packets/00260772 [16:09:30]Write 301 bytes [16:09:30]NVStorageSaveData done [16:09:30]OFDSenderStorePacket done [16:09:30]KKMCreateOFDPacket done [16:09:30]NVStorageSaveData kkm_last_timestamp [16:09:30]File name is /storage/kkm_last_timestamp [16:09:30]Write 4 bytes [16:09:30]NVStorageSaveData done [16:09:30]ExternCall_PrintAddStr [16:09:30]wPrintStart [16:09:30]Write to MH i2c: 01 00 00 23 9B BE [16:09:30]Write i2c OK [16:09:30]MH_I2C_Read... [16:09:30]Read from MH i2c: 01 [16:09:30]MH_I2C_Read... [16:09:30]Read from MH i2c: 01 07 00 [16:09:30]MH_I2C_Read... [16:09:30]Read from MH i2c: 01 07 00 23 9B 00 00 00 00 00 FF 0F D3 [16:09:30]RasterBufferAndPrint [16:09:30]line Счет N : (1)1036324 [16:09:30]line ИНН: 02508201610067 [16:09:30]line Контрольно-Кассовый Чек [16:09:30]line ПРОДАЖА [16:09:30]line ТРК (МРК, ГНК) : 32 [16:09:30]line Товар: 2710124130 [16:09:30]line Аи-92-К-5 [16:09:30]line 10.330 * 67.80 [16:09:30]line = 700.37 [16:09:30]line НДС 12% НСП 1% [16:09:30]line > о реализуемом товаре [16:09:30]line ОКРУГЛЕНИЕ: -0.37 [16:09:30]line ИТОГО: 700.00 [16:09:30]line Внесено: 700.00 [16:09:30]line СДАЧА: 0.00 [16:09:30]line НСП 1% : 6.20 [16:09:30]line НДС 12% : 74.38 [16:09:30]line Наличными: 700.00 [16:09:30]line Безнал.: 0.00 [16:09:30]line Место: АЗС № 94 "Партнер Нефть" [16:09:30]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [16:09:30]line СНО: Общий режим [16:09:30]line Чек 330 18.08.2024 16:09 [16:09:30]line Смена: 449 ФФД: 1.0 [16:09:30]line ЗНМ: 0300000099 [16:09:30]line РНМ: 0000000000091865 [16:09:30]line Версия ККМ: 001 [16:09:30]line ФМ: 0000000000871820 [16:09:30]line ФД: 260772 [16:09:30]line ФПД: 59174025357751 [16:09:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T160934&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260772&fm=59174025357751&tin=02508201610067®Number=0000000000091865&sum=70000 [16:09:30]written 0, free lines is 4095 [16:09:30]OFD Sender: Processing packet 260772 [packets to send 192, broken 191] [16:09:30]ProducePacketName [16:09:30]name=ofd_packets/00260772 [16:09:30]OFD Sender: To server: pG, [16:09:30]CommunicateWithHost lk.salyk.kg:30040 [16:09:30]ConnectInit lk.salyk.kg [16:09:30]Connected sock=10 [16:09: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 30 0F 01 00 00 41 EF 07 01 2C AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 4A 01 00 00 F4 03 04 00 BE 1C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A4 FA 03 00 35 04 06 00 35 D1 86 C2 E9 B7 6C 5D 26 95 56 E1 4F 24 [16:09: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 30 4F 00 00 00 77 2F 47 00 23 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A4 FA 03 00 F4 03 04 00 12 C6 C1 66 B6 04 01 00 00 83 CB 8E A2 25 94 03 1B [16:09:30]CommunicateWithHost err = 0 [16:09:30]CheckOFDResponse [16:09:30]1017 (14) - 77093643461234 [16:09:30]1041 (16) - 0000000000871820 [16:09:30]1040 (4) - 260772 [16:09:30]1012 (4) - 18.08.2024 09:59 [16:09:30]1206 (1) - 0 [16:09:30]OFD Sender: Remove packet 260772 [16:09:30]ProducePacketName [16:09:30]name=ofd_packets/00260772 [16:09:30]NVStorageDeleteData [16:09:30]Write to MH i2c: 01 00 00 4E 9B E9 [16:09:30]Write i2c OK [16:09:30]MH_I2C_Read... [16:09:30]Read from MH i2c: 01 [16:09:30]MH_I2C_Read... [16:09:30]Read from MH i2c: 01 07 00 [16:09:30]MH_I2C_Read... [16:09:30]Read from MH i2c: 01 07 00 4E 9B 00 00 00 00 00 6D 0C 69 [16:09:30]RasterBufferAndPrint [16:09:30]line [16:09:30]line [16:09:30]line [16:09:30]line [16:09:30]line [16:09:30]written 0, free lines is 3185 [16:09:30]MH_Cut [16:09:30]Write to MH i2c: D1 01 00 55 9B 01 C2 [16:09:30]Write i2c OK [16:09:30]MH_I2C_Read... [16:09:30]Read from MH i2c: D1 [16:09:30]MH_I2C_Read... [16:09:30]Read from MH i2c: D1 01 00 [16:09:30]MH_I2C_Read... [16:09:30]Read from MH i2c: D1 01 00 55 9B 00 C1 [16:09:30]Write to MH i2c: 01 00 00 56 9B F1 [16:09:30]Write i2c OK [16:09:30]MH_I2C_Read... [16:09:31]OFD Sender: No OFD packet to send [16:09:31]*** Cut start [16:09:31]*** Purtial cut [16:09:31]*** Stage 1: CUTSNS_PIN = 1 [16:09:33]Read from MH i2c: 01 [16:09:33]MH_I2C_Read... [16:09:33]*** Stop cut motor [16:09:33]*** Cut end [16:09:33]Read from MH i2c: 01 07 00 [16:09:33]MH_I2C_Read... [16:09:33]Read from MH i2c: 01 07 00 56 9B 00 00 00 00 00 FF 0F 06 [16:09:33]process_action close_receipt done [16:09:33]requested_data is exist [16:09:33]produce_requested_data [16:09:33]requested_item fm.sn is exist - process it [16:09:33]wFMCommunicate request_size=4 [16:09:33]MH_SAM_APDU [16:09:33]CAPDU: 80 11 00 00 [16:09:33]Write to MH i2c: E2 08 00 57 9B 80 11 00 00 00 00 00 00 6C [16:09:33]Write i2c OK [16:09:33]MH_I2C_Read... [16:09:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:34]Read from MH i2c: E2 [16:09:34]MH_I2C_Read... [16:09:34]Read from MH i2c: E2 17 00 [16:09:34]MH_I2C_Read... [16:09:34]Read from MH i2c: E2 17 00 57 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B9 [16:09:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:09:34]wFMCommunicate OK [16:09:34]requested_item fd.num is exist - process it [16:09:34]SAM_PROTO_GetFieldsCounters [16:09:34]wFMCommunicate request_size=4 [16:09:34]MH_SAM_APDU [16:09:34]CAPDU: 80 13 00 00 [16:09:34]Write to MH i2c: E2 08 00 58 9B 80 13 00 00 00 00 00 00 6F [16:09:34]Write i2c OK [16:09:34]MH_I2C_Read... [16:09:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:34]Read from MH i2c: E2 [16:09:34]MH_I2C_Read... [16:09:34]Read from MH i2c: E2 62 00 [16:09:34]MH_I2C_Read... [16:09:34]Read from MH i2c: E2 62 00 58 9B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A4 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 D2 [16:09: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A4 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:09:34]wFMCommunicate OK [16:09:34]SAM_PROTO_GetFieldsCounters done [16:09:34]requested_item shift.num is exist - process it [16:09:34]requested_item shift.opened is exist - process it [16:09:34]req_shift_opened [16:09:34]FM_GetShiftState [16:09:34]SAM_PROTO_GetShiftState [16:09:34]wFMCommunicate request_size=4 [16:09:34]MH_SAM_APDU [16:09:34]CAPDU: 80 13 01 00 [16:09:34]Write to MH i2c: E2 08 00 59 9B 80 13 01 00 00 00 00 00 71 [16:09:34]Write i2c OK [16:09:34]MH_I2C_Read... [16:09:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:34]Read from MH i2c: E2 [16:09:34]MH_I2C_Read... [16:09:34]Read from MH i2c: E2 0E 00 [16:09:34]MH_I2C_Read... [16:09:34]Read from MH i2c: E2 0E 00 59 9B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 AE [16:09:34]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:09:34]wFMCommunicate OK [16:09:34]SAM_PROTO_GetShiftState done [16:09:34]FM_GetShiftState done [16:09:34]req_shift_opened done [16:09:34]requested_item shift.open_date is exist - process it [16:09:34]req_shift_open_date [16:09:34]req_shift_open_date done [16:09:34]produce_requested_data done [16:09:34]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260772,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [16:09:34]process_action_free close_receipt [16:09:34]json_value_free [16:09:34]json_value_free done [16:09:34]process_json_proto returns [16:09:34]Send response to host [16:09:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260772,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [16:09:34]free response buf [16:09:34]execute_script done [16:09:34]execute_script returns [16:09:34]free content buf [16:09:34]Sock 7.Close socket [16:09:34]Sock 7.Thread stoped [16:09:36]OFD Sender: No OFD packet to send [16:09:41]OFD Sender: No OFD packet to send [16:09:46]OFD Sender: No OFD packet to send [16:09:51]OFD Sender: No OFD packet to send [16:09:56]OFD Sender: No OFD packet to send [16:10:01]OFD Sender: No OFD packet to send [16:10:06]OFD Sender: No OFD packet to send [16:10:11]OFD Sender: No OFD packet to send [16:10:16]OFD Sender: No OFD packet to send [16:10:21]OFD Sender: No OFD packet to send [16:10:26]OFD Sender: No OFD packet to send [16:10:31]OFD Sender: No OFD packet to send [16:10:36]OFD Sender: No OFD packet to send [16:10:41]OFD Sender: No OFD packet to send [16:10:46]OFD Sender: No OFD packet to send [16:10:51]OFD Sender: No OFD packet to send [16:10:56]OFD Sender: No OFD packet to send [16:11:01]OFD Sender: No OFD packet to send [16:11:06]OFD Sender: No OFD packet to send [16:11:11]OFD Sender: No OFD packet to send [16:11:16]OFD Sender: No OFD packet to send [16:11:21]OFD Sender: No OFD packet to send [16:11:26]OFD Sender: No OFD packet to send [16:11:31]OFD Sender: No OFD packet to send [16:11:36]OFD Sender: No OFD packet to send [16:11:41]OFD Sender: No OFD packet to send [16:11:46]OFD Sender: No OFD packet to send [16:11:51]OFD Sender: No OFD packet to send [16:11:56]OFD Sender: No OFD packet to send [16:11:59]accept exits with 9 [16:11:59]New connection [16:11:59]New thread 3066617188 created [16:11:59]Thread 3066473828 joined [16:11:59]Waiting for new connection... [16:11:59] Sock 9.Parse request [16:11:59]Sock 9.Check first char [16:11:59]Sock 9.First char is OK [16:11:59]request: POST /json_proto HTTP/1.0 [16:11:59]Method: POST [16:11:59]URL: /json_proto [16:11:59]Method is POST - this is cgi request [16:11:59]url: /json_proto [16:11:59]query_string will be loaded in cgi processing [16:11:59]execute_cgi json_proto POST (null) [16:11:59]execute_cgi path=json_proto method=POST [16:11:59]POST find Content-Length [16:11:59]Host: 172.17.55.133:8080 [16:11:59]Content-Length: 683 [16:11:59]Content-Type: application/json [16:11:59] [16:11:59]POST finish read [16:11:59]Found Content-Length = 683 [16:11:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:59]execute_script... [16:11:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:59]POST & json_proto [16:11:59]process_json_proto [16:11:59]json parsed OK: [16:11:59]protocol is kg_v1.0 [16:11:59]action value=close_receipt [16:11:59]process_action close_receipt [16:11:59]cmd_close_receipt [16:11:59]MH_GetDate [16:11:59]Write to MH i2c: F0 00 00 5A 9B E4 [16:11:59]Write i2c OK [16:11:59]MH_I2C_Read... [16:11:59]Read from MH i2c: F0 [16:11:59]MH_I2C_Read... [16:11:59]Read from MH i2c: F0 09 00 [16:11:59]MH_I2C_Read... [16:11:59]Read from MH i2c: F0 09 00 5A 9B 00 55 1D C2 66 34 48 D8 65 40 [16:11:59]GetLastDocTimeStamp 1723997374 [16:11:59]current date 1723997525 [16:11:59]FM_GetShiftState [16:11:59]SAM_PROTO_GetShiftState [16:11:59]wFMCommunicate request_size=4 [16:11:59]MH_SAM_APDU [16:11:59]CAPDU: 80 13 01 00 [16:11:59]Write to MH i2c: E2 08 00 5B 9B 80 13 01 00 00 00 00 00 73 [16:11:59]Write i2c OK [16:11:59]MH_I2C_Read... [16:11:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:59]Read from MH i2c: E2 [16:11:59]MH_I2C_Read... [16:11:59]Read from MH i2c: E2 0E 00 [16:11:59]MH_I2C_Read... [16:11:59]Read from MH i2c: E2 0E 00 5B 9B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B0 [16:11:59]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:11:59]wFMCommunicate OK [16:11:59]SAM_PROTO_GetShiftState done [16:11:59]FM_GetShiftState done [16:11:59]opened in 1723940556 [16:11:59]opened+sec_in_day 1724026956 [16:11:59]quantity*price = 100005 [16:11:59]sum+1 = 100006 [16:11:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 331 18.08.2024 16:12 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260773 ФПД: 111808148918802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T161205&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260773&fm=111808148918802&tin=02508201610067®Number=0000000000091865&sum=100000 [16:12:00]StoreToDocumentArchive [16:12:00]shift 449 fd 260773 [16:12:00]save to /storage/0449/doc_00260773 [16:12:00]save last doc name /storage/0449/doc_00260773 to /storage/kkm_last_doc_name [16:12:00]save OK [16:12:00]Clear old archive folders... [16:12:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:12:00]tlvbuf is 004535B0 [16:12:00]SAM_PROTO_ClearQueue [16:12:00]wFMCommunicate request_size=4 [16:12:00]MH_SAM_APDU [16:12:00]CAPDU: 80 09 00 00 [16:12:00]Write to MH i2c: E2 08 00 68 9B 80 09 00 00 00 00 00 00 75 [16:12:00]Write i2c OK [16:12:00]MH_I2C_Read... [16:12:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:12:01]Read from MH i2c: E2 [16:12:01]MH_I2C_Read... [16:12:01]Read from MH i2c: E2 03 00 [16:12:01]MH_I2C_Read... [16:12:01]Read from MH i2c: E2 03 00 68 9B 00 90 00 77 [16:12:01]RAPDU: 90 00 [16:12:01]wFMCommunicate OK [16:12:01]SAM_PROTO_ClearQueue done [16:12:01]KKMCreateOFDPacket [16:12:01]OFDProtocolAddRootSTLVToBuf [16:12:01]FM_MakeSignedData [16:12:01]FM_MakeSignedData [16:12:01]SAM_PROTO_SignData [16:12:01]wFMCommunicate request_size=4 [16:12:01]MH_SAM_APDU [16:12:01]CAPDU: 80 0D 01 02 [16:12:01]Write to MH i2c: E2 08 00 69 9B 80 0D 01 02 00 00 00 00 7D [16:12:01]Write i2c OK [16:12:01]MH_I2C_Read... [16:12:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:12:01]Read from MH i2c: E2 [16:12:01]MH_I2C_Read... [16:12:01]Read from MH i2c: E2 03 00 [16:12:01]MH_I2C_Read... [16:12:01]Read from MH i2c: E2 03 00 69 9B 00 90 00 78 [16:12:01]RAPDU: 90 00 [16:12:01]wFMCommunicate OK [16:12:01]wFMCommunicate request_size=255 [16:12:01]MH_SAM_APDU [16:12:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 55 1D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A5 FA 03 00 35 04 06 00 65 [16:12:01]Write to MH i2c: E2 02 01 6A 9B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 55 1D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A5 FA 03 00 35 04 06 00 65 00 00 38 [16:12:01]Write i2c OK [16:12:01]MH_I2C_Read... [16:12:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:01]Read from MH i2c: E2 [16:12:01]MH_I2C_Read... [16:12:01]Read from MH i2c: E2 03 00 [16:12:01]MH_I2C_Read... [16:12:01]Read from MH i2c: E2 03 00 6A 9B 00 90 00 79 [16:12:01]RAPDU: 90 00 [16:12:01]wFMCommunicate OK [16:12:01]wFMCommunicate request_size=10 [16:12:01]MH_SAM_APDU [16:12:01]CAPDU: 80 0D 02 02 05 B0 5C FF D2 12 [16:12:01]Write to MH i2c: E2 0D 00 6B 9B 80 0D 02 02 05 00 B0 5C FF D2 12 00 00 79 [16:12:01]OFD Sender: No OFD packet to send [16:12:01]Write i2c OK [16:12:01]MH_I2C_Read... [16:12:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:01]Read from MH i2c: E2 [16:12:01]MH_I2C_Read... [16:12:01]Read from MH i2c: E2 03 00 [16:12:01]MH_I2C_Read... [16:12:01]Read from MH i2c: E2 03 00 6B 9B 00 90 00 7A [16:12:01]RAPDU: 90 00 [16:12:01]wFMCommunicate OK [16:12:01]wFMCommunicate request_size=4 [16:12:01]MH_SAM_APDU [16:12:01]CAPDU: 80 0D 03 02 [16:12:01]Write to MH i2c: E2 08 00 6C 9B 80 0D 03 02 00 00 00 00 82 [16:12:01]Write i2c OK [16:12:01]MH_I2C_Read... [16:12:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:12:01]Read from MH i2c: E2 [16:12:01]MH_I2C_Read... [16:12:01]Read from MH i2c: E2 0B 00 [16:12:01]MH_I2C_Read... [16:12:01]Read from MH i2c: E2 0B 00 6C 9B 00 42 C5 09 2A B8 58 CA 54 90 00 EB [16:12:01]RAPDU: 42 C5 09 2A B8 58 CA 54 90 00 [16:12:01]wFMCommunicate OK [16:12:01]SAM_PROTO_SignData done [16:12:01]FM_MakeSignedData done [16:12:01]CreateOFDProtocolMessage [16:12:01]wFMCommunicate request_size=4 [16:12:01]MH_SAM_APDU [16:12:01]CAPDU: 80 11 00 00 [16:12:01]Write to MH i2c: E2 08 00 6D 9B 80 11 00 00 00 00 00 00 82 [16:12:01]Write i2c OK [16:12:01]MH_I2C_Read... [16:12:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:01]Read from MH i2c: E2 [16:12:01]MH_I2C_Read... [16:12:01]Read from MH i2c: E2 17 00 [16:12:01]MH_I2C_Read... [16:12:01]Read from MH i2c: E2 17 00 6D 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 CF [16:12:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:12:01]wFMCommunicate OK [16:12:01]CreateOFDProtocolMessage done [16:12:01]OFDSenderStorePacket 260773 [16:12:01]StoreOFDPacket docnum=260773 [16:12:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 82 57 07 01 57 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 55 1D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A5 FA 03 00 35 04 06 00 65 B0 5C FF D2 12 42 C5 09 2A B8 58 CA 54 [16:12:01]CheckFolder [16:12:01]dirname=/storage/ofd_packets [16:12:01]CheckFolder done [16:12:01]ProducePacketName [16:12:01]name=ofd_packets/00260773 [16:12:01]NVStorageSaveData ofd_packets/00260773 [16:12:01]File name is /storage/ofd_packets/00260773 [16:12:01]Write 301 bytes [16:12:01]NVStorageSaveData done [16:12:01]OFDSenderStorePacket done [16:12:01]KKMCreateOFDPacket done [16:12:01]NVStorageSaveData kkm_last_timestamp [16:12:01]File name is /storage/kkm_last_timestamp [16:12:01]Write 4 bytes [16:12:01]NVStorageSaveData done [16:12:01]ExternCall_PrintAddStr [16:12:01]wPrintStart [16:12:01]Write to MH i2c: 01 00 00 6E 9B 09 [16:12:01]Write i2c OK [16:12:01]MH_I2C_Read... [16:12:01]Read from MH i2c: 01 [16:12:01]MH_I2C_Read... [16:12:01]Read from MH i2c: 01 07 00 [16:12:01]MH_I2C_Read... [16:12:01]Read from MH i2c: 01 07 00 6E 9B 00 00 00 00 00 FF 0F 1E [16:12:01]RasterBufferAndPrint [16:12:01]line Счет N : (1)1036325 [16:12:01]line ИНН: 02508201610067 [16:12:01]line Контрольно-Кассовый Чек [16:12:01]line ПРОДАЖА [16:12:01]line ТРК (МРК, ГНК) : 32 [16:12:01]line Товар: 2710124130 [16:12:01]line Аи-92-К-5 [16:12:01]line 14.750 * 67.80 [16:12:01]line = 1000.05 [16:12:01]line НДС 12% НСП 1% [16:12:01]line > о реализуемом товаре [16:12:01]line ОКРУГЛЕНИЕ: -0.05 [16:12:01]line ИТОГО: 1000.00 [16:12:01]line Внесено: 1000.00 [16:12:01]line СДАЧА: 0.00 [16:12:01]line НСП 1% : 8.85 [16:12:01]line НДС 12% : 106.20 [16:12:01]line Наличными: 1000.00 [16:12:01]line Безнал.: 0.00 [16:12:01]line Место: АЗС № 94 "Партнер Нефть" [16:12:01]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [16:12:01]line СНО: Общий режим [16:12:01]line Чек 331 18.08.2024 16:12 [16:12:01]line Смена: 449 ФФД: 1.0 [16:12:01]line ЗНМ: 0300000099 [16:12:01]line РНМ: 0000000000091865 [16:12:01]line Версия ККМ: 001 [16:12:01]line ФМ: 0000000000871820 [16:12:01]line ФД: 260773 [16:12:01]line ФПД: 111808148918802 [16:12:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T161205&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260773&fm=111808148918802&tin=02508201610067®Number=0000000000091865&sum=100000 [16:12:01]OFD Sender: Processing packet 260773 [packets to send 192, broken 191] [16:12:01]ProducePacketName [16:12:01]name=ofd_packets/00260773 [16:12:01]OFD Sender: To server: pG, [16:12:01]CommunicateWithHost lk.salyk.kg:30040 [16:12:01]ConnectInit lk.salyk.kg [16:12:01]written 0, free lines is 4095 [16:12:01]Connected sock=7 [16:12: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 30 0F 01 00 00 82 57 07 01 57 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 55 1D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A5 FA 03 00 35 04 06 00 65 B0 5C FF D2 12 42 C5 09 2A B8 58 CA 54 [16:12: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 30 4F 00 00 00 01 D8 47 00 65 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A5 FA 03 00 F4 03 04 00 AA C6 C1 66 B6 04 01 00 00 0F B9 92 5C AB 9B D5 C0 [16:12:02]CommunicateWithHost err = 0 [16:12:02]CheckOFDResponse [16:12:02]1017 (14) - 77093643461234 [16:12:02]1041 (16) - 0000000000871820 [16:12:02]1040 (4) - 260773 [16:12:02]1012 (4) - 18.08.2024 10:02 [16:12:02]1206 (1) - 0 [16:12:02]OFD Sender: Remove packet 260773 [16:12:02]ProducePacketName [16:12:02]name=ofd_packets/00260773 [16:12:02]NVStorageDeleteData [16:12:02]Write to MH i2c: 01 00 00 99 9B 34 [16:12:02]Write i2c OK [16:12:02]MH_I2C_Read... [16:12:02]Read from MH i2c: 01 [16:12:02]MH_I2C_Read... [16:12:02]Read from MH i2c: 01 07 00 [16:12:02]MH_I2C_Read... [16:12:02]Read from MH i2c: 01 07 00 99 9B 00 00 00 00 00 70 0C B7 [16:12:02]RasterBufferAndPrint [16:12:02]line [16:12:02]line [16:12:02]line [16:12:02]line [16:12:02]line [16:12:02]written 0, free lines is 3187 [16:12:02]MH_Cut [16:12:02]Write to MH i2c: D1 01 00 A0 9B 01 0D [16:12:02]Write i2c OK [16:12:02]MH_I2C_Read... [16:12:02]Read from MH i2c: D1 [16:12:02]MH_I2C_Read... [16:12:02]Read from MH i2c: D1 01 00 [16:12:02]MH_I2C_Read... [16:12:02]Read from MH i2c: D1 01 00 A0 9B 00 0C [16:12:02]Write to MH i2c: 01 00 00 A1 9B 3C [16:12:02]Write i2c OK [16:12:02]MH_I2C_Read... [16:12:02]OFD Sender: No OFD packet to send [16:12:03]*** Cut start [16:12:03]*** Purtial cut [16:12:03]*** Stage 1: CUTSNS_PIN = 1 [16:12:05]Read from MH i2c: 01 [16:12:05]MH_I2C_Read... [16:12:05]*** Stop cut motor [16:12:05]*** Cut end [16:12:05]Read from MH i2c: 01 07 00 [16:12:05]MH_I2C_Read... [16:12:05]Read from MH i2c: 01 07 00 A1 9B 00 00 00 00 00 FF 0F 51 [16:12:05]process_action close_receipt done [16:12:05]requested_data is exist [16:12:05]produce_requested_data [16:12:05]requested_item fm.sn is exist - process it [16:12:05]wFMCommunicate request_size=4 [16:12:05]MH_SAM_APDU [16:12:05]CAPDU: 80 11 00 00 [16:12:05]Write to MH i2c: E2 08 00 A2 9B 80 11 00 00 00 00 00 00 B7 [16:12:05]Write i2c OK [16:12:05]MH_I2C_Read... [16:12:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:05]Read from MH i2c: E2 [16:12:05]MH_I2C_Read... [16:12:05]Read from MH i2c: E2 17 00 [16:12:05]MH_I2C_Read... [16:12:05]Read from MH i2c: E2 17 00 A2 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 04 [16:12:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:12:05]wFMCommunicate OK [16:12:05]requested_item fd.num is exist - process it [16:12:05]SAM_PROTO_GetFieldsCounters [16:12:05]wFMCommunicate request_size=4 [16:12:05]MH_SAM_APDU [16:12:05]CAPDU: 80 13 00 00 [16:12:05]Write to MH i2c: E2 08 00 A3 9B 80 13 00 00 00 00 00 00 BA [16:12:05]Write i2c OK [16:12:05]MH_I2C_Read... [16:12:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:12:05]Read from MH i2c: E2 [16:12:05]MH_I2C_Read... [16:12:05]Read from MH i2c: E2 62 00 [16:12:05]MH_I2C_Read... [16:12:05]Read from MH i2c: E2 62 00 A3 9B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A5 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 21 [16:12: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A5 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:12:05]wFMCommunicate OK [16:12:05]SAM_PROTO_GetFieldsCounters done [16:12:05]requested_item shift.num is exist - process it [16:12:05]requested_item shift.opened is exist - process it [16:12:05]req_shift_opened [16:12:05]FM_GetShiftState [16:12:05]SAM_PROTO_GetShiftState [16:12:05]wFMCommunicate request_size=4 [16:12:05]MH_SAM_APDU [16:12:05]CAPDU: 80 13 01 00 [16:12:05]Write to MH i2c: E2 08 00 A4 9B 80 13 01 00 00 00 00 00 BC [16:12:05]Write i2c OK [16:12:05]MH_I2C_Read... [16:12:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:05]Read from MH i2c: E2 [16:12:05]MH_I2C_Read... [16:12:05]Read from MH i2c: E2 0E 00 [16:12:05]MH_I2C_Read... [16:12:05]Read from MH i2c: E2 0E 00 A4 9B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F9 [16:12:05]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:12:05]wFMCommunicate OK [16:12:05]SAM_PROTO_GetShiftState done [16:12:05]FM_GetShiftState done [16:12:05]req_shift_opened done [16:12:05]requested_item shift.open_date is exist - process it [16:12:05]req_shift_open_date [16:12:05]req_shift_open_date done [16:12:05]produce_requested_data done [16:12:05]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260773,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [16:12:05]process_action_free close_receipt [16:12:05]json_value_free [16:12:05]json_value_free done [16:12:05]process_json_proto returns [16:12:05]Send response to host [16:12:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260773,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [16:12:05]free response buf [16:12:05]execute_script done [16:12:05]execute_script returns [16:12:05]free content buf [16:12:05]Sock 9.Close socket [16:12:05]Sock 9.Thread stoped [16:12:07]OFD Sender: No OFD packet to send [16:12:12]OFD Sender: No OFD packet to send [16:12:17]OFD Sender: No OFD packet to send [16:12:21]accept exits with 10 [16:12:21]New connection [16:12:21]New thread 3066473828 created [16:12:21]Thread 3066617188 joined [16:12:21]Waiting for new connection... [16:12:21] Sock 10.Parse request [16:12:21]Sock 10.Check first char [16:12:21]Sock 10.First char is OK [16:12:21]request: POST /json_proto HTTP/1.0 [16:12:21]Method: POST [16:12:21]URL: /json_proto [16:12:21]Method is POST - this is cgi request [16:12:21]url: /json_proto [16:12:21]query_string will be loaded in cgi processing [16:12:21]execute_cgi json_proto POST (null) [16:12:21]execute_cgi path=json_proto method=POST [16:12:21]POST find Content-Length [16:12:21]Host: 172.17.55.133:8080 [16:12:21]Content-Length: 683 [16:12:21]Content-Type: application/json [16:12:21] [16:12:21]POST finish read [16:12:21]Found Content-Length = 683 [16:12:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036326", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:21]execute_script... [16:12: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)1036326", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:21]POST & json_proto [16:12:21]process_json_proto [16:12:21]json parsed OK: [16:12:21]protocol is kg_v1.0 [16:12:21]action value=close_receipt [16:12:21]process_action close_receipt [16:12:21]cmd_close_receipt [16:12:21]MH_GetDate [16:12:21]Write to MH i2c: F0 00 00 A5 9B 2F [16:12:21]Write i2c OK [16:12:21]MH_I2C_Read... [16:12:21]Read from MH i2c: F0 [16:12:21]MH_I2C_Read... [16:12:21]Read from MH i2c: F0 09 00 [16:12:21]MH_I2C_Read... [16:12:21]Read from MH i2c: F0 09 00 A5 9B 00 6B 1D C2 66 34 48 D8 65 A1 [16:12:21]GetLastDocTimeStamp 1723997525 [16:12:21]current date 1723997547 [16:12:21]FM_GetShiftState [16:12:21]SAM_PROTO_GetShiftState [16:12:21]wFMCommunicate request_size=4 [16:12:21]MH_SAM_APDU [16:12:21]CAPDU: 80 13 01 00 [16:12:21]Write to MH i2c: E2 08 00 A6 9B 80 13 01 00 00 00 00 00 BE [16:12:21]Write i2c OK [16:12:21]MH_I2C_Read... [16:12:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:21]Read from MH i2c: E2 [16:12:21]MH_I2C_Read... [16:12:21]Read from MH i2c: E2 0E 00 [16:12:21]MH_I2C_Read... [16:12:21]Read from MH i2c: E2 0E 00 A6 9B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 FB [16:12:21]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:12:21]wFMCommunicate OK [16:12:21]SAM_PROTO_GetShiftState done [16:12:21]FM_GetShiftState done [16:12:21]opened in 1723940556 [16:12:21]opened+sec_in_day 1724026956 [16:12:21]quantity*price = 100021 [16:12:21]sum+1 = 100023 [16:12:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 332 18.08.2024 16:12 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260774 ФПД: 134828228999221 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T161227&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260774&fm=134828228999221&tin=02508201610067®Number=0000000000091865&sum=100000 [16:12:22]StoreToDocumentArchive [16:12:22]shift 449 fd 260774 [16:12:22]save to /storage/0449/doc_00260774 [16:12:22]save last doc name /storage/0449/doc_00260774 to /storage/kkm_last_doc_name [16:12:22]save OK [16:12:22]Clear old archive folders... [16:12:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:12:22]tlvbuf is 005C0FE0 [16:12:22]SAM_PROTO_ClearQueue [16:12:22]wFMCommunicate request_size=4 [16:12:22]MH_SAM_APDU [16:12:22]CAPDU: 80 09 00 00 [16:12:22]Write to MH i2c: E2 08 00 B3 9B 80 09 00 00 00 00 00 00 C0 [16:12:22]Write i2c OK [16:12:22]MH_I2C_Read... [16:12:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:12:22]Read from MH i2c: E2 [16:12:22]MH_I2C_Read... [16:12:22]Read from MH i2c: E2 03 00 [16:12:22]MH_I2C_Read... [16:12:22]Read from MH i2c: E2 03 00 B3 9B 00 90 00 C2 [16:12:22]RAPDU: 90 00 [16:12:22]wFMCommunicate OK [16:12:22]SAM_PROTO_ClearQueue done [16:12:22]KKMCreateOFDPacket [16:12:22]OFDProtocolAddRootSTLVToBuf [16:12:22]FM_MakeSignedData [16:12:22]FM_MakeSignedData [16:12:22]SAM_PROTO_SignData [16:12:22]wFMCommunicate request_size=4 [16:12:22]MH_SAM_APDU [16:12:22]CAPDU: 80 0D 01 02 [16:12:22]Write to MH i2c: E2 08 00 B4 9B 80 0D 01 02 00 00 00 00 C8 [16:12:22]Write i2c OK [16:12:22]MH_I2C_Read... [16:12:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:12:22]Read from MH i2c: E2 [16:12:22]MH_I2C_Read... [16:12:22]Read from MH i2c: E2 03 00 [16:12:22]MH_I2C_Read... [16:12:22]Read from MH i2c: E2 03 00 B4 9B 00 90 00 C3 [16:12:22]RAPDU: 90 00 [16:12:22]wFMCommunicate OK [16:12:22]wFMCommunicate request_size=255 [16:12:22]MH_SAM_APDU [16:12: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 6B 1D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A6 FA 03 00 35 04 06 00 7A [16:12:22]Write to MH i2c: E2 02 01 B5 9B 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 6B 1D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A6 FA 03 00 35 04 06 00 7A 00 00 4E [16:12:22]Write i2c OK [16:12:22]MH_I2C_Read... [16:12:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:23]Read from MH i2c: E2 [16:12:23]MH_I2C_Read... [16:12:23]Read from MH i2c: E2 03 00 [16:12:23]MH_I2C_Read... [16:12:23]Read from MH i2c: E2 03 00 B5 9B 00 90 00 C4 [16:12:23]RAPDU: 90 00 [16:12:23]wFMCommunicate OK [16:12:23]wFMCommunicate request_size=10 [16:12:23]MH_SAM_APDU [16:12:23]CAPDU: 80 0D 02 02 05 A0 24 B1 F8 35 [16:12:23]Write to MH i2c: E2 0D 00 B6 9B 80 0D 02 02 05 00 A0 24 B1 F8 35 00 00 77 [16:12:23]Write i2c OK [16:12:23]MH_I2C_Read... [16:12:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:23]Read from MH i2c: E2 [16:12:23]MH_I2C_Read... [16:12:23]Read from MH i2c: E2 03 00 [16:12:23]MH_I2C_Read... [16:12:23]Read from MH i2c: E2 03 00 B6 9B 00 90 00 C5 [16:12:23]RAPDU: 90 00 [16:12:23]wFMCommunicate OK [16:12:23]wFMCommunicate request_size=4 [16:12:23]MH_SAM_APDU [16:12:23]CAPDU: 80 0D 03 02 [16:12:23]Write to MH i2c: E2 08 00 B7 9B 80 0D 03 02 00 00 00 00 CD [16:12:23]Write i2c OK [16:12:23]MH_I2C_Read... [16:12:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:12:23]Read from MH i2c: E2 [16:12:23]MH_I2C_Read... [16:12:23]Read from MH i2c: E2 0B 00 [16:12:23]MH_I2C_Read... [16:12:23]Read from MH i2c: E2 0B 00 B7 9B 00 D0 78 67 AE B2 70 4D 0C 90 00 A6 [16:12:23]RAPDU: D0 78 67 AE B2 70 4D 0C 90 00 [16:12:23]wFMCommunicate OK [16:12:23]SAM_PROTO_SignData done [16:12:23]FM_MakeSignedData done [16:12:23]CreateOFDProtocolMessage [16:12:23]wFMCommunicate request_size=4 [16:12:23]MH_SAM_APDU [16:12:23]CAPDU: 80 11 00 00 [16:12:23]Write to MH i2c: E2 08 00 B8 9B 80 11 00 00 00 00 00 00 CD [16:12:23]Write i2c OK [16:12:23]MH_I2C_Read... [16:12:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:23]Read from MH i2c: E2 [16:12:23]MH_I2C_Read... [16:12:23]Read from MH i2c: E2 17 00 [16:12:23]MH_I2C_Read... [16:12:23]Read from MH i2c: E2 17 00 B8 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 1A [16:12:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:12:23]wFMCommunicate OK [16:12:23]CreateOFDProtocolMessage done [16:12:23]OFDSenderStorePacket 260774 [16:12:23]StoreOFDPacket docnum=260774 [16:12:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 F4 74 07 01 01 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 6B 1D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A6 FA 03 00 35 04 06 00 7A A0 24 B1 F8 35 D0 78 67 AE B2 70 4D 0C [16:12:23]CheckFolder [16:12:23]dirname=/storage/ofd_packets [16:12:23]CheckFolder done [16:12:23]ProducePacketName [16:12:23]name=ofd_packets/00260774 [16:12:23]NVStorageSaveData ofd_packets/00260774 [16:12:23]File name is /storage/ofd_packets/00260774 [16:12:23]Write 301 bytes [16:12:23]NVStorageSaveData done [16:12:23]OFDSenderStorePacket done [16:12:23]KKMCreateOFDPacket done [16:12:23]NVStorageSaveData kkm_last_timestamp [16:12:23]File name is /storage/kkm_last_timestamp [16:12:23]Write 4 bytes [16:12:23]NVStorageSaveData done [16:12:23]ExternCall_PrintAddStr [16:12:23]wPrintStart [16:12:23]Write to MH i2c: 01 00 00 B9 9B 54 [16:12:23]Write i2c OK [16:12:23]MH_I2C_Read... [16:12:23]Read from MH i2c: 01 [16:12:23]MH_I2C_Read... [16:12:23]Read from MH i2c: 01 07 00 [16:12:23]MH_I2C_Read... [16:12:23]Read from MH i2c: 01 07 00 B9 9B 00 00 00 00 00 FF 0F 69 [16:12:23]RasterBufferAndPrint [16:12:23]line Счет N : (1)1036326 [16:12:23]line ИНН: 02508201610067 [16:12:23]line Контрольно-Кассовый Чек [16:12:23]line ПРОДАЖА [16:12:23]line ТРК (МРК, ГНК) : 13 [16:12:23]line Товар: 2710124500 [16:12:23]line Аи-95-К-5 [16:12:23]line 13.480 * 74.20 [16:12:23]line = 1000.22 [16:12:23]line НДС 12% НСП 1% [16:12:23]line > о реализуемом товаре [16:12:23]line ОКРУГЛЕНИЕ: -0.22 [16:12:23]line ИТОГО: 1000.00 [16:12:23]line Внесено: 1000.00 [16:12:23]line СДАЧА: 0.00 [16:12:23]line НСП 1% : 8.85 [16:12:23]line НДС 12% : 106.22 [16:12:23]line Наличными: 1000.00 [16:12:23]line Безнал.: 0.00 [16:12:23]line Место: АЗС № 94 "Партнер Нефть" [16:12:23]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [16:12:23]line СНО: Общий режим [16:12:23]line Чек 332 18.08.2024 16:12 [16:12:23]line Смена: 449 ФФД: 1.0 [16:12:23]line ЗНМ: 0300000099 [16:12:23]line РНМ: 0000000000091865 [16:12:23]line Версия ККМ: 001 [16:12:23]line ФМ: 0000000000871820 [16:12:23]line ФД: 260774 [16:12:23]line ФПД: 134828228999221 [16:12:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T161227&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260774&fm=134828228999221&tin=02508201610067®Number=0000000000091865&sum=100000 [16:12:23]written 0, free lines is 4095 [16:12:23]OFD Sender: Processing packet 260774 [packets to send 192, broken 191] [16:12:23]ProducePacketName [16:12:23]name=ofd_packets/00260774 [16:12:23]OFD Sender: To server: pG, [16:12:23]CommunicateWithHost lk.salyk.kg:30040 [16:12:23]ConnectInit lk.salyk.kg [16:12:23]Connected sock=9 [16:12: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 30 0F 01 00 00 F4 74 07 01 01 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 6B 1D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A6 FA 03 00 35 04 06 00 7A A0 24 B1 F8 35 D0 78 67 AE B2 70 4D 0C [16:12: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 30 4F 00 00 00 8F C6 47 00 E7 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 A6 FA 03 00 F4 03 04 00 BF C6 C1 66 B6 04 01 00 00 17 B7 F3 08 D6 38 9B 0F [16:12:23]CommunicateWithHost err = 0 [16:12:23]CheckOFDResponse [16:12:23]1017 (14) - 77093643461234 [16:12:23]1041 (16) - 0000000000871820 [16:12:23]1040 (4) - 260774 [16:12:23]1012 (4) - 18.08.2024 10:02 [16:12:23]1206 (1) - 0 [16:12:23]OFD Sender: Remove packet 260774 [16:12:23]ProducePacketName [16:12:23]name=ofd_packets/00260774 [16:12:23]NVStorageDeleteData [16:12:23]Write to MH i2c: 01 00 00 E4 9B 7F [16:12:23]Write i2c OK [16:12:23]MH_I2C_Read... [16:12:23]Read from MH i2c: 01 [16:12:23]MH_I2C_Read... [16:12:23]Read from MH i2c: 01 07 00 [16:12:23]MH_I2C_Read... [16:12:23]Read from MH i2c: 01 07 00 E4 9B 00 00 00 00 00 74 0C 06 [16:12:23]RasterBufferAndPrint [16:12:23]line [16:12:23]line [16:12:23]line [16:12:23]line [16:12:23]line [16:12:23]written 0, free lines is 3191 [16:12:23]MH_Cut [16:12:23]Write to MH i2c: D1 01 00 EB 9B 01 58 [16:12:23]Write i2c OK [16:12:23]MH_I2C_Read... [16:12:23]Read from MH i2c: D1 [16:12:23]MH_I2C_Read... [16:12:23]Read from MH i2c: D1 01 00 [16:12:23]MH_I2C_Read... [16:12:23]Read from MH i2c: D1 01 00 EB 9B 00 57 [16:12:23]Write to MH i2c: 01 00 00 EC 9B 87 [16:12:23]Write i2c OK [16:12:23]MH_I2C_Read... [16:12:24]OFD Sender: No OFD packet to send [16:12:24]*** Cut start [16:12:24]*** Purtial cut [16:12:24]*** Stage 1: CUTSNS_PIN = 1 [16:12:26]Read from MH i2c: 01 [16:12:26]MH_I2C_Read... [16:12:26]*** Stop cut motor [16:12:26]*** Cut end [16:12:26]Read from MH i2c: 01 07 00 [16:12:26]MH_I2C_Read... [16:12:26]Read from MH i2c: 01 07 00 EC 9B 00 00 00 00 00 FF 0F 9C [16:12:26]process_action close_receipt done [16:12:26]requested_data is exist [16:12:26]produce_requested_data [16:12:26]requested_item fm.sn is exist - process it [16:12:26]wFMCommunicate request_size=4 [16:12:26]MH_SAM_APDU [16:12:26]CAPDU: 80 11 00 00 [16:12:26]Write to MH i2c: E2 08 00 ED 9B 80 11 00 00 00 00 00 00 02 [16:12:26]Write i2c OK [16:12:26]MH_I2C_Read... [16:12:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:27]Read from MH i2c: E2 [16:12:27]MH_I2C_Read... [16:12:27]Read from MH i2c: E2 17 00 [16:12:27]MH_I2C_Read... [16:12:27]Read from MH i2c: E2 17 00 ED 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 4F [16:12:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:12:27]wFMCommunicate OK [16:12:27]requested_item fd.num is exist - process it [16:12:27]SAM_PROTO_GetFieldsCounters [16:12:27]wFMCommunicate request_size=4 [16:12:27]MH_SAM_APDU [16:12:27]CAPDU: 80 13 00 00 [16:12:27]Write to MH i2c: E2 08 00 EE 9B 80 13 00 00 00 00 00 00 05 [16:12:27]Write i2c OK [16:12:27]MH_I2C_Read... [16:12:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:12:27]Read from MH i2c: E2 [16:12:27]MH_I2C_Read... [16:12:27]Read from MH i2c: E2 62 00 [16:12:27]MH_I2C_Read... [16:12:27]Read from MH i2c: E2 62 00 EE 9B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A6 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 70 [16:12:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A6 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:12:27]wFMCommunicate OK [16:12:27]SAM_PROTO_GetFieldsCounters done [16:12:27]requested_item shift.num is exist - process it [16:12:27]requested_item shift.opened is exist - process it [16:12:27]req_shift_opened [16:12:27]FM_GetShiftState [16:12:27]SAM_PROTO_GetShiftState [16:12:27]wFMCommunicate request_size=4 [16:12:27]MH_SAM_APDU [16:12:27]CAPDU: 80 13 01 00 [16:12:27]Write to MH i2c: E2 08 00 EF 9B 80 13 01 00 00 00 00 00 07 [16:12:27]Write i2c OK [16:12:27]MH_I2C_Read... [16:12:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:27]Read from MH i2c: E2 [16:12:27]MH_I2C_Read... [16:12:27]Read from MH i2c: E2 0E 00 [16:12:27]MH_I2C_Read... [16:12:27]Read from MH i2c: E2 0E 00 EF 9B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 44 [16:12:27]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:12:27]wFMCommunicate OK [16:12:27]SAM_PROTO_GetShiftState done [16:12:27]FM_GetShiftState done [16:12:27]req_shift_opened done [16:12:27]requested_item shift.open_date is exist - process it [16:12:27]req_shift_open_date [16:12:27]req_shift_open_date done [16:12:27]produce_requested_data done [16:12:27]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260774,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [16:12:27]process_action_free close_receipt [16:12:27]json_value_free [16:12:27]json_value_free done [16:12:27]process_json_proto returns [16:12:27]Send response to host [16:12:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260774,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [16:12:27]free response buf [16:12:27]execute_script done [16:12:27]execute_script returns [16:12:27]free content buf [16:12:27]Sock 10.Close socket [16:12:27]Sock 10.Thread stoped [16:12:29]OFD Sender: No OFD packet to send [16:12:32]accept exits with 7 [16:12:32]New connection [16:12:32]New thread 3066617188 created [16:12:32]Thread 3066473828 joined [16:12:32]Waiting for new connection... [16:12:32] Sock 7.Parse request [16:12:32]Sock 7.Check first char [16:12:32]Sock 7.First char is OK [16:12:32]request: POST /json_proto HTTP/1.0 [16:12:32]Method: POST [16:12:32]URL: /json_proto [16:12:32]Method is POST - this is cgi request [16:12:32]url: /json_proto [16:12:32]query_string will be loaded in cgi processing [16:12:32]execute_cgi json_proto POST (null) [16:12:32]execute_cgi path=json_proto method=POST [16:12:32]POST find Content-Length [16:12:32]Host: 172.17.55.133:8080 [16:12:32]Content-Length: 678 [16:12:32]Content-Type: application/json [16:12:32] [16:12:32]POST finish read [16:12:32]Found Content-Length = 678 [16:12:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:32]execute_script... [16:12: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)1036327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:32]POST & json_proto [16:12:32]process_json_proto [16:12:32]json parsed OK: [16:12:32]protocol is kg_v1.0 [16:12:32]action value=close_receipt [16:12:32]process_action close_receipt [16:12:32]cmd_close_receipt [16:12:32]MH_GetDate [16:12:32]Write to MH i2c: F0 00 00 F0 9B 7A [16:12:32]Write i2c OK [16:12:32]MH_I2C_Read... [16:12:32]Read from MH i2c: F0 [16:12:32]MH_I2C_Read... [16:12:32]Read from MH i2c: F0 09 00 [16:12:32]MH_I2C_Read... [16:12:32]Read from MH i2c: F0 09 00 F0 9B 00 76 1D C2 66 34 48 D8 65 F7 [16:12:32]GetLastDocTimeStamp 1723997547 [16:12:32]current date 1723997558 [16:12:32]FM_GetShiftState [16:12:32]SAM_PROTO_GetShiftState [16:12:32]wFMCommunicate request_size=4 [16:12:32]MH_SAM_APDU [16:12:32]CAPDU: 80 13 01 00 [16:12:32]Write to MH i2c: E2 08 00 F1 9B 80 13 01 00 00 00 00 00 09 [16:12:32]Write i2c OK [16:12:32]MH_I2C_Read... [16:12:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:32]Read from MH i2c: E2 [16:12:32]MH_I2C_Read... [16:12:32]Read from MH i2c: E2 0E 00 [16:12:32]MH_I2C_Read... [16:12:32]Read from MH i2c: E2 0E 00 F1 9B 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 46 [16:12:32]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:12:32]wFMCommunicate OK [16:12:32]SAM_PROTO_GetShiftState done [16:12:32]FM_GetShiftState done [16:12:32]opened in 1723940556 [16:12:32]opened+sec_in_day 1724026956 [16:12:32]quantity*price = 50036 [16:12:32]sum+1 = 50037 [16:12:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 333 18.08.2024 16:12 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260775 ФПД: 237127467427690 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T161238&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260775&fm=237127467427690&tin=02508201610067®Number=0000000000091865&sum=50000 [16:12:33]StoreToDocumentArchive [16:12:33]shift 449 fd 260775 [16:12:33]save to /storage/0449/doc_00260775 [16:12:33]save last doc name /storage/0449/doc_00260775 to /storage/kkm_last_doc_name [16:12:33]save OK [16:12:33]Clear old archive folders... [16:12:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:12:33]tlvbuf is 003366A0 [16:12:33]SAM_PROTO_ClearQueue [16:12:33]wFMCommunicate request_size=4 [16:12:33]MH_SAM_APDU [16:12:33]CAPDU: 80 09 00 00 [16:12:33]Write to MH i2c: E2 08 00 FE 9B 80 09 00 00 00 00 00 00 0B [16:12:33]Write i2c OK [16:12:33]MH_I2C_Read... [16:12:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:12:33]Read from MH i2c: E2 [16:12:33]MH_I2C_Read... [16:12:33]Read from MH i2c: E2 03 00 [16:12:33]MH_I2C_Read... [16:12:33]Read from MH i2c: E2 03 00 FE 9B 00 90 00 0D [16:12:33]RAPDU: 90 00 [16:12:33]wFMCommunicate OK [16:12:33]SAM_PROTO_ClearQueue done [16:12:33]KKMCreateOFDPacket [16:12:33]OFDProtocolAddRootSTLVToBuf [16:12:33]FM_MakeSignedData [16:12:33]FM_MakeSignedData [16:12:33]SAM_PROTO_SignData [16:12:33]wFMCommunicate request_size=4 [16:12:33]MH_SAM_APDU [16:12:33]CAPDU: 80 0D 01 02 [16:12:33]Write to MH i2c: E2 08 00 FF 9B 80 0D 01 02 00 00 00 00 13 [16:12:33]Write i2c OK [16:12:33]MH_I2C_Read... [16:12:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:12:34]Read from MH i2c: E2 [16:12:34]MH_I2C_Read... [16:12:34]Read from MH i2c: E2 03 00 [16:12:34]MH_I2C_Read... [16:12:34]Read from MH i2c: E2 03 00 FF 9B 00 90 00 0E [16:12:34]RAPDU: 90 00 [16:12:34]wFMCommunicate OK [16:12:34]wFMCommunicate request_size=255 [16:12:34]MH_SAM_APDU [16:12:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4D 01 00 00 F4 03 04 00 76 1D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A7 FA 03 00 35 04 06 00 D7 [16:12:34]Write to MH i2c: E2 02 01 00 9C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4D 01 00 00 F4 03 04 00 76 1D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A7 FA 03 00 35 04 06 00 D7 00 00 D7 [16:12:34]Write i2c OK [16:12:34]MH_I2C_Read... [16:12:34]OFD Sender: No OFD packet to send [16:12:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:34]Read from MH i2c: E2 [16:12:34]MH_I2C_Read... [16:12:34]Read from MH i2c: E2 03 00 [16:12:34]MH_I2C_Read... [16:12:34]Read from MH i2c: E2 03 00 00 9C 00 90 00 10 [16:12:34]RAPDU: 90 00 [16:12:34]wFMCommunicate OK [16:12:34]wFMCommunicate request_size=10 [16:12:34]MH_SAM_APDU [16:12:34]CAPDU: 80 0D 02 02 05 AA 8A 76 67 6A [16:12:34]Write to MH i2c: E2 0D 00 01 9C 80 0D 02 02 05 00 AA 8A 76 67 6A 00 00 9C [16:12:34]Write i2c OK [16:12:34]MH_I2C_Read... [16:12:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:34]Read from MH i2c: E2 [16:12:34]MH_I2C_Read... [16:12:34]Read from MH i2c: E2 03 00 [16:12:34]MH_I2C_Read... [16:12:34]Read from MH i2c: E2 03 00 01 9C 00 90 00 11 [16:12:34]RAPDU: 90 00 [16:12:34]wFMCommunicate OK [16:12:34]wFMCommunicate request_size=4 [16:12:34]MH_SAM_APDU [16:12:34]CAPDU: 80 0D 03 02 [16:12:34]Write to MH i2c: E2 08 00 02 9C 80 0D 03 02 00 00 00 00 19 [16:12:34]Write i2c OK [16:12:34]MH_I2C_Read... [16:12:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:12:34]Read from MH i2c: E2 [16:12:34]MH_I2C_Read... [16:12:34]Read from MH i2c: E2 0B 00 [16:12:34]MH_I2C_Read... [16:12:34]Read from MH i2c: E2 0B 00 02 9C 00 AE 3C 39 8E 70 84 0B 45 90 00 0F [16:12:34]RAPDU: AE 3C 39 8E 70 84 0B 45 90 00 [16:12:34]wFMCommunicate OK [16:12:34]SAM_PROTO_SignData done [16:12:34]FM_MakeSignedData done [16:12:34]CreateOFDProtocolMessage [16:12:34]wFMCommunicate request_size=4 [16:12:34]MH_SAM_APDU [16:12:34]CAPDU: 80 11 00 00 [16:12:34]Write to MH i2c: E2 08 00 03 9C 80 11 00 00 00 00 00 00 19 [16:12:34]Write i2c OK [16:12:34]MH_I2C_Read... [16:12:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:34]Read from MH i2c: E2 [16:12:34]MH_I2C_Read... [16:12:34]Read from MH i2c: E2 17 00 [16:12:34]MH_I2C_Read... [16:12:34]Read from MH i2c: E2 17 00 03 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 66 [16:12:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:12:34]wFMCommunicate OK [16:12:34]CreateOFDProtocolMessage done [16:12:34]OFDSenderStorePacket 260775 [16:12:34]StoreOFDPacket docnum=260775 [16:12:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 14 A8 07 01 98 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4D 01 00 00 F4 03 04 00 76 1D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A7 FA 03 00 35 04 06 00 D7 AA 8A 76 67 6A AE 3C 39 8E 70 84 0B 45 [16:12:34]CheckFolder [16:12:34]dirname=/storage/ofd_packets [16:12:34]CheckFolder done [16:12:34]ProducePacketName [16:12:34]name=ofd_packets/00260775 [16:12:34]NVStorageSaveData ofd_packets/00260775 [16:12:34]File name is /storage/ofd_packets/00260775 [16:12:34]Write 301 bytes [16:12:34]NVStorageSaveData done [16:12:34]OFDSenderStorePacket done [16:12:34]KKMCreateOFDPacket done [16:12:34]NVStorageSaveData kkm_last_timestamp [16:12:34]File name is /storage/kkm_last_timestamp [16:12:34]Write 4 bytes [16:12:34]NVStorageSaveData done [16:12:34]ExternCall_PrintAddStr [16:12:34]wPrintStart [16:12:34]Write to MH i2c: 01 00 00 04 9C A0 [16:12:34]Write i2c OK [16:12:34]MH_I2C_Read... [16:12:34]Read from MH i2c: 01 [16:12:34]MH_I2C_Read... [16:12:34]Read from MH i2c: 01 07 00 [16:12:34]MH_I2C_Read... [16:12:34]Read from MH i2c: 01 07 00 04 9C 00 00 00 00 00 FF 0F B5 [16:12:34]RasterBufferAndPrint [16:12:34]line Счет N : (1)1036327 [16:12:34]line ИНН: 02508201610067 [16:12:34]line Контрольно-Кассовый Чек [16:12:34]line ПРОДАЖА [16:12:34]line ТРК (МРК, ГНК) : 22 [16:12:34]line Товар: 2710124130 [16:12:34]line Аи-92-К-5 [16:12:34]line 7.380 * 67.80 [16:12:34]line = 500.36 [16:12:34]line НДС 12% НСП 1% [16:12:34]line > о реализуемом товаре [16:12:34]line ОКРУГЛЕНИЕ: -0.36 [16:12:34]line ИТОГО: 500.00 [16:12:34]line Внесено: 500.00 [16:12:34]line СДАЧА: 0.00 [16:12:34]line НСП 1% : 4.43 [16:12:34]line НДС 12% : 53.14 [16:12:34]line Наличными: 500.00 [16:12:34]line Безнал.: 0.00 [16:12:34]line Место: АЗС № 94 "Партнер Нефть" [16:12:34]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [16:12:34]line СНО: Общий режим [16:12:34]line Чек 333 18.08.2024 16:12 [16:12:34]line Смена: 449 ФФД: 1.0 [16:12:34]line ЗНМ: 0300000099 [16:12:34]line РНМ: 0000000000091865 [16:12:34]line Версия ККМ: 001 [16:12:34]line ФМ: 0000000000871820 [16:12:34]line ФД: 260775 [16:12:34]line ФПД: 237127467427690 [16:12:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T161238&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260775&fm=237127467427690&tin=02508201610067®Number=0000000000091865&sum=50000 [16:12:34]written 0, free lines is 4095 [16:12:34]OFD Sender: Processing packet 260775 [packets to send 192, broken 191] [16:12:34]ProducePacketName [16:12:34]name=ofd_packets/00260775 [16:12:34]OFD Sender: To server: pG, [16:12:34]CommunicateWithHost lk.salyk.kg:30040 [16:12:34]ConnectInit lk.salyk.kg [16:12:34]Connected sock=10 [16:12: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 30 0F 01 00 00 14 A8 07 01 98 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4D 01 00 00 F4 03 04 00 76 1D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A7 FA 03 00 35 04 06 00 D7 AA 8A 76 67 6A AE 3C 39 8E 70 84 0B 45 [16:12: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 30 4F 00 00 00 F0 5E 47 00 AD 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A7 FA 03 00 F4 03 04 00 CA C6 C1 66 B6 04 01 00 00 EA 48 D2 26 D8 34 5F 92 [16:12:34]CommunicateWithHost err = 0 [16:12:34]CheckOFDResponse [16:12:34]1017 (14) - 77093643461234 [16:12:34]1041 (16) - 0000000000871820 [16:12:34]1040 (4) - 260775 [16:12:34]1012 (4) - 18.08.2024 10:02 [16:12:34]1206 (1) - 0 [16:12:34]OFD Sender: Remove packet 260775 [16:12:34]ProducePacketName [16:12:34]name=ofd_packets/00260775 [16:12:34]NVStorageDeleteData [16:12:34]Write to MH i2c: 01 00 00 2F 9C CB [16:12:34]Write i2c OK [16:12:34]MH_I2C_Read... [16:12:34]Read from MH i2c: 01 [16:12:34]MH_I2C_Read... [16:12:34]Read from MH i2c: 01 07 00 [16:12:34]MH_I2C_Read... [16:12:34]Read from MH i2c: 01 07 00 2F 9C 00 00 00 00 00 6C 0C 4A [16:12:34]RasterBufferAndPrint [16:12:34]line [16:12:34]line [16:12:34]line [16:12:34]line [16:12:34]line [16:12:34]written 0, free lines is 3186 [16:12:34]MH_Cut [16:12:34]Write to MH i2c: D1 01 00 36 9C 01 A4 [16:12:34]Write i2c OK [16:12:34]MH_I2C_Read... [16:12:34]Read from MH i2c: D1 [16:12:34]MH_I2C_Read... [16:12:34]Read from MH i2c: D1 01 00 [16:12:34]MH_I2C_Read... [16:12:34]Read from MH i2c: D1 01 00 36 9C 00 A3 [16:12:34]Write to MH i2c: 01 00 00 37 9C D3 [16:12:34]Write i2c OK [16:12:34]MH_I2C_Read... [16:12:35]OFD Sender: No OFD packet to send [16:12:36]*** Cut start [16:12:36]*** Purtial cut [16:12:36]*** Stage 1: CUTSNS_PIN = 1 [16:12:38]Read from MH i2c: 01 [16:12:38]MH_I2C_Read... [16:12:38]*** Stop cut motor [16:12:38]*** Cut end [16:12:38]Read from MH i2c: 01 07 00 [16:12:38]MH_I2C_Read... [16:12:38]Read from MH i2c: 01 07 00 37 9C 00 00 00 00 00 FF 0F E8 [16:12:38]process_action close_receipt done [16:12:38]requested_data is exist [16:12:38]produce_requested_data [16:12:38]requested_item fm.sn is exist - process it [16:12:38]wFMCommunicate request_size=4 [16:12:38]MH_SAM_APDU [16:12:38]CAPDU: 80 11 00 00 [16:12:38]Write to MH i2c: E2 08 00 38 9C 80 11 00 00 00 00 00 00 4E [16:12:38]Write i2c OK [16:12:38]MH_I2C_Read... [16:12:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:38]Read from MH i2c: E2 [16:12:38]MH_I2C_Read... [16:12:38]Read from MH i2c: E2 17 00 [16:12:38]MH_I2C_Read... [16:12:38]Read from MH i2c: E2 17 00 38 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 9B [16:12:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:12:38]wFMCommunicate OK [16:12:38]requested_item fd.num is exist - process it [16:12:38]SAM_PROTO_GetFieldsCounters [16:12:38]wFMCommunicate request_size=4 [16:12:38]MH_SAM_APDU [16:12:38]CAPDU: 80 13 00 00 [16:12:38]Write to MH i2c: E2 08 00 39 9C 80 13 00 00 00 00 00 00 51 [16:12:38]Write i2c OK [16:12:38]MH_I2C_Read... [16:12:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:12:38]Read from MH i2c: E2 [16:12:38]MH_I2C_Read... [16:12:38]Read from MH i2c: E2 62 00 [16:12:38]MH_I2C_Read... [16:12:38]Read from MH i2c: E2 62 00 39 9C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A7 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 C0 [16:12: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A7 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:12:38]wFMCommunicate OK [16:12:38]SAM_PROTO_GetFieldsCounters done [16:12:38]requested_item shift.num is exist - process it [16:12:38]requested_item shift.opened is exist - process it [16:12:38]req_shift_opened [16:12:38]FM_GetShiftState [16:12:38]SAM_PROTO_GetShiftState [16:12:38]wFMCommunicate request_size=4 [16:12:38]MH_SAM_APDU [16:12:38]CAPDU: 80 13 01 00 [16:12:38]Write to MH i2c: E2 08 00 3A 9C 80 13 01 00 00 00 00 00 53 [16:12:38]Write i2c OK [16:12:38]MH_I2C_Read... [16:12:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:38]Read from MH i2c: E2 [16:12:38]MH_I2C_Read... [16:12:38]Read from MH i2c: E2 0E 00 [16:12:38]MH_I2C_Read... [16:12:38]Read from MH i2c: E2 0E 00 3A 9C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 90 [16:12:38]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:12:38]wFMCommunicate OK [16:12:38]SAM_PROTO_GetShiftState done [16:12:38]FM_GetShiftState done [16:12:38]req_shift_opened done [16:12:38]requested_item shift.open_date is exist - process it [16:12:38]req_shift_open_date [16:12:38]req_shift_open_date done [16:12:38]produce_requested_data done [16:12:38]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260775,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [16:12:38]process_action_free close_receipt [16:12:38]json_value_free [16:12:38]json_value_free done [16:12:38]process_json_proto returns [16:12:38]Send response to host [16:12:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260775,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [16:12:38]free response buf [16:12:38]execute_script done [16:12:38]execute_script returns [16:12:38]free content buf [16:12:38]Sock 7.Close socket [16:12:38]Sock 7.Thread stoped [16:12:40]OFD Sender: No OFD packet to send [16:12:45]OFD Sender: No OFD packet to send [16:12:50]OFD Sender: No OFD packet to send [16:12:55]OFD Sender: No OFD packet to send [16:13:00]OFD Sender: No OFD packet to send [16:13:05]OFD Sender: No OFD packet to send [16:13:10]OFD Sender: No OFD packet to send [16:13:15]OFD Sender: No OFD packet to send [16:13:20]OFD Sender: No OFD packet to send [16:13:21]accept exits with 9 [16:13:21]New connection [16:13:21]New thread 3066473828 created [16:13:21]Thread 3066617188 joined [16:13:21]Waiting for new connection... [16:13:21] Sock 9.Parse request [16:13:21]Sock 9.Check first char [16:13:21]Sock 9.First char is OK [16:13:21]request: POST /json_proto HTTP/1.0 [16:13:21]Method: POST [16:13:21]URL: /json_proto [16:13:21]Method is POST - this is cgi request [16:13:21]url: /json_proto [16:13:21]query_string will be loaded in cgi processing [16:13:21]execute_cgi json_proto POST (null) [16:13:21]execute_cgi path=json_proto method=POST [16:13:21]POST find Content-Length [16:13:21]Host: 172.17.55.133:8080 [16:13:21]Content-Length: 678 [16:13:21]Content-Type: application/json [16:13:21] [16:13:21]POST finish read [16:13:21]Found Content-Length = 678 [16:13:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:21]execute_script... [16:13: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)1036328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:21]POST & json_proto [16:13:21]process_json_proto [16:13:21]json parsed OK: [16:13:21]protocol is kg_v1.0 [16:13:21]action value=close_receipt [16:13:21]process_action close_receipt [16:13:21]cmd_close_receipt [16:13:21]MH_GetDate [16:13:21]Write to MH i2c: F0 00 00 3B 9C C6 [16:13:21]Write i2c OK [16:13:21]MH_I2C_Read... [16:13:21]Read from MH i2c: F0 [16:13:21]MH_I2C_Read... [16:13:21]Read from MH i2c: F0 09 00 [16:13:21]MH_I2C_Read... [16:13:21]Read from MH i2c: F0 09 00 3B 9C 00 A7 1D C2 66 34 48 D8 65 74 [16:13:21]GetLastDocTimeStamp 1723997558 [16:13:21]current date 1723997607 [16:13:21]FM_GetShiftState [16:13:21]SAM_PROTO_GetShiftState [16:13:21]wFMCommunicate request_size=4 [16:13:21]MH_SAM_APDU [16:13:21]CAPDU: 80 13 01 00 [16:13:21]Write to MH i2c: E2 08 00 3C 9C 80 13 01 00 00 00 00 00 55 [16:13:21]Write i2c OK [16:13:21]MH_I2C_Read... [16:13:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:21]Read from MH i2c: E2 [16:13:21]MH_I2C_Read... [16:13:21]Read from MH i2c: E2 0E 00 [16:13:21]MH_I2C_Read... [16:13:21]Read from MH i2c: E2 0E 00 3C 9C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 92 [16:13:21]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:13:21]wFMCommunicate OK [16:13:21]SAM_PROTO_GetShiftState done [16:13:21]FM_GetShiftState done [16:13:21]opened in 1723940556 [16:13:21]opened+sec_in_day 1724026956 [16:13:21]quantity*price = 50036 [16:13:21]sum+1 = 50037 [16:13:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 334 18.08.2024 16:13 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260776 ФПД: 18144728228074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T161327&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260776&fm=18144728228074&tin=02508201610067®Number=0000000000091865&sum=50000 [16:13:22]StoreToDocumentArchive [16:13:22]shift 449 fd 260776 [16:13:22]save to /storage/0449/doc_00260776 [16:13:22]save last doc name /storage/0449/doc_00260776 to /storage/kkm_last_doc_name [16:13:22]save OK [16:13:22]Clear old archive folders... [16:13:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:13:22]tlvbuf is 00383870 [16:13:22]SAM_PROTO_ClearQueue [16:13:22]wFMCommunicate request_size=4 [16:13:22]MH_SAM_APDU [16:13:22]CAPDU: 80 09 00 00 [16:13:22]Write to MH i2c: E2 08 00 49 9C 80 09 00 00 00 00 00 00 57 [16:13:22]Write i2c OK [16:13:22]MH_I2C_Read... [16:13:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:22]Read from MH i2c: E2 [16:13:22]MH_I2C_Read... [16:13:22]Read from MH i2c: E2 03 00 [16:13:22]MH_I2C_Read... [16:13:22]Read from MH i2c: E2 03 00 49 9C 00 90 00 59 [16:13:22]RAPDU: 90 00 [16:13:22]wFMCommunicate OK [16:13:22]SAM_PROTO_ClearQueue done [16:13:22]KKMCreateOFDPacket [16:13:22]OFDProtocolAddRootSTLVToBuf [16:13:22]FM_MakeSignedData [16:13:22]FM_MakeSignedData [16:13:22]SAM_PROTO_SignData [16:13:22]wFMCommunicate request_size=4 [16:13:22]MH_SAM_APDU [16:13:22]CAPDU: 80 0D 01 02 [16:13:22]Write to MH i2c: E2 08 00 4A 9C 80 0D 01 02 00 00 00 00 5F [16:13:22]Write i2c OK [16:13:22]MH_I2C_Read... [16:13:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:22]Read from MH i2c: E2 [16:13:22]MH_I2C_Read... [16:13:22]Read from MH i2c: E2 03 00 [16:13:22]MH_I2C_Read... [16:13:22]Read from MH i2c: E2 03 00 4A 9C 00 90 00 5A [16:13:22]RAPDU: 90 00 [16:13:22]wFMCommunicate OK [16:13:22]wFMCommunicate request_size=255 [16:13:22]MH_SAM_APDU [16:13:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4E 01 00 00 F4 03 04 00 A7 1D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A8 FA 03 00 35 04 06 00 10 [16:13:22]Write to MH i2c: E2 02 01 4B 9C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4E 01 00 00 F4 03 04 00 A7 1D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A8 FA 03 00 35 04 06 00 10 00 00 8E [16:13:22]Write i2c OK [16:13:22]MH_I2C_Read... [16:13:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:23]Read from MH i2c: E2 [16:13:23]MH_I2C_Read... [16:13:23]Read from MH i2c: E2 03 00 [16:13:23]MH_I2C_Read... [16:13:23]Read from MH i2c: E2 03 00 4B 9C 00 90 00 5B [16:13:23]RAPDU: 90 00 [16:13:23]wFMCommunicate OK [16:13:23]wFMCommunicate request_size=10 [16:13:23]MH_SAM_APDU [16:13:23]CAPDU: 80 0D 02 02 05 80 A6 14 A0 EA [16:13:23]Write to MH i2c: E2 0D 00 4C 9C 80 0D 02 02 05 00 80 A6 14 A0 EA 00 00 30 [16:13:23]Write i2c OK [16:13:23]MH_I2C_Read... [16:13:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:23]Read from MH i2c: E2 [16:13:23]MH_I2C_Read... [16:13:23]Read from MH i2c: E2 03 00 [16:13:23]MH_I2C_Read... [16:13:23]Read from MH i2c: E2 03 00 4C 9C 00 90 00 5C [16:13:23]RAPDU: 90 00 [16:13:23]wFMCommunicate OK [16:13:23]wFMCommunicate request_size=4 [16:13:23]MH_SAM_APDU [16:13:23]CAPDU: 80 0D 03 02 [16:13:23]Write to MH i2c: E2 08 00 4D 9C 80 0D 03 02 00 00 00 00 64 [16:13:23]Write i2c OK [16:13:23]MH_I2C_Read... [16:13:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:23]Read from MH i2c: E2 [16:13:23]MH_I2C_Read... [16:13:23]Read from MH i2c: E2 0B 00 [16:13:23]MH_I2C_Read... [16:13:23]Read from MH i2c: E2 0B 00 4D 9C 00 36 7C FF A8 6F 81 E2 C8 90 00 58 [16:13:23]RAPDU: 36 7C FF A8 6F 81 E2 C8 90 00 [16:13:23]wFMCommunicate OK [16:13:23]SAM_PROTO_SignData done [16:13:23]FM_MakeSignedData done [16:13:23]CreateOFDProtocolMessage [16:13:23]wFMCommunicate request_size=4 [16:13:23]MH_SAM_APDU [16:13:23]CAPDU: 80 11 00 00 [16:13:23]Write to MH i2c: E2 08 00 4E 9C 80 11 00 00 00 00 00 00 64 [16:13:23]Write i2c OK [16:13:23]MH_I2C_Read... [16:13:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:23]Read from MH i2c: E2 [16:13:23]MH_I2C_Read... [16:13:23]Read from MH i2c: E2 17 00 [16:13:23]MH_I2C_Read... [16:13:23]Read from MH i2c: E2 17 00 4E 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B1 [16:13:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:13:23]wFMCommunicate OK [16:13:23]CreateOFDProtocolMessage done [16:13:23]OFDSenderStorePacket 260776 [16:13:23]StoreOFDPacket docnum=260776 [16:13:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 0F 64 07 01 77 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4E 01 00 00 F4 03 04 00 A7 1D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A8 FA 03 00 35 04 06 00 10 80 A6 14 A0 EA 36 7C FF A8 6F 81 E2 C8 [16:13:23]CheckFolder [16:13:23]dirname=/storage/ofd_packets [16:13:23]CheckFolder done [16:13:23]ProducePacketName [16:13:23]name=ofd_packets/00260776 [16:13:23]NVStorageSaveData ofd_packets/00260776 [16:13:23]File name is /storage/ofd_packets/00260776 [16:13:23]Write 301 bytes [16:13:23]NVStorageSaveData done [16:13:23]OFDSenderStorePacket done [16:13:23]KKMCreateOFDPacket done [16:13:23]NVStorageSaveData kkm_last_timestamp [16:13:23]File name is /storage/kkm_last_timestamp [16:13:23]Write 4 bytes [16:13:23]NVStorageSaveData done [16:13:23]ExternCall_PrintAddStr [16:13:23]wPrintStart [16:13:23]Write to MH i2c: 01 00 00 4F 9C EB [16:13:23]Write i2c OK [16:13:23]MH_I2C_Read... [16:13:23]Read from MH i2c: 01 [16:13:23]MH_I2C_Read... [16:13:23]Read from MH i2c: 01 07 00 [16:13:23]MH_I2C_Read... [16:13:23]Read from MH i2c: 01 07 00 4F 9C 00 00 00 00 00 FF 0F 00 [16:13:23]RasterBufferAndPrint [16:13:23]line Счет N : (1)1036328 [16:13:23]line ИНН: 02508201610067 [16:13:23]line Контрольно-Кассовый Чек [16:13:23]line ПРОДАЖА [16:13:23]line ТРК (МРК, ГНК) : 22 [16:13:23]line Товар: 2710124130 [16:13:23]line Аи-92-К-5 [16:13:23]line 7.380 * 67.80 [16:13:23]line = 500.36 [16:13:23]line НДС 12% НСП 1% [16:13:23]line > о реализуемом товаре [16:13:23]line ОКРУГЛЕНИЕ: -0.36 [16:13:23]line ИТОГО: 500.00 [16:13:23]line Внесено: 500.00 [16:13:23]line СДАЧА: 0.00 [16:13:23]line НСП 1% : 4.43 [16:13:23]line НДС 12% : 53.14 [16:13:23]line Наличными: 500.00 [16:13:23]line Безнал.: 0.00 [16:13:23]line Место: АЗС № 94 "Партнер Нефть" [16:13:23]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [16:13:23]line СНО: Общий режим [16:13:23]line Чек 334 18.08.2024 16:13 [16:13:23]line Смена: 449 ФФД: 1.0 [16:13:23]line ЗНМ: 0300000099 [16:13:23]line РНМ: 0000000000091865 [16:13:23]line Версия ККМ: 001 [16:13:23]line ФМ: 0000000000871820 [16:13:23]line ФД: 260776 [16:13:23]line ФПД: 18144728228074 [16:13:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T161327&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260776&fm=18144728228074&tin=02508201610067®Number=0000000000091865&sum=50000 [16:13:23]written 0, free lines is 4095 [16:13:23]OFD Sender: Processing packet 260776 [packets to send 192, broken 191] [16:13:23]ProducePacketName [16:13:23]name=ofd_packets/00260776 [16:13:23]OFD Sender: To server: pG, [16:13:23]CommunicateWithHost lk.salyk.kg:30040 [16:13:23]ConnectInit lk.salyk.kg [16:13:23]Connected sock=10 [16:13: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 30 0F 01 00 00 0F 64 07 01 77 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4E 01 00 00 F4 03 04 00 A7 1D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A8 FA 03 00 35 04 06 00 10 80 A6 14 A0 EA 36 7C FF A8 6F 81 E2 C8 [16:13: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 30 4F 00 00 00 60 0D 47 00 75 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 30 10 04 04 00 A8 FA 03 00 F4 03 04 00 FB C6 C1 66 B6 04 01 00 00 F9 A1 67 33 1A 37 0F 66 [16:13:23]CommunicateWithHost err = 0 [16:13:23]CheckOFDResponse [16:13:23]1017 (14) - 77093643461234 [16:13:23]1041 (16) - 0000000000871820 [16:13:23]1040 (4) - 260776 [16:13:23]1012 (4) - 18.08.2024 10:03 [16:13:23]1206 (1) - 0 [16:13:23]OFD Sender: Remove packet 260776 [16:13:23]ProducePacketName [16:13:23]name=ofd_packets/00260776 [16:13:23]NVStorageDeleteData [16:13:23]Write to MH i2c: 01 00 00 7A 9C 16 [16:13:23]Write i2c OK [16:13:23]MH_I2C_Read... [16:13:23]Read from MH i2c: 01 [16:13:23]MH_I2C_Read... [16:13:23]Read from MH i2c: 01 07 00 [16:13:23]MH_I2C_Read... [16:13:23]Read from MH i2c: 01 07 00 7A 9C 00 00 00 00 00 6D 0C 96 [16:13:23]RasterBufferAndPrint [16:13:23]line [16:13:23]line [16:13:23]line [16:13:23]line [16:13:23]line [16:13:23]written 0, free lines is 3185 [16:13:23]MH_Cut [16:13:23]Write to MH i2c: D1 01 00 81 9C 01 EF [16:13:23]Write i2c OK [16:13:23]MH_I2C_Read... [16:13:23]Read from MH i2c: D1 [16:13:23]MH_I2C_Read... [16:13:23]Read from MH i2c: D1 01 00 [16:13:23]MH_I2C_Read... [16:13:23]Read from MH i2c: D1 01 00 81 9C 00 EE [16:13:23]Write to MH i2c: 01 00 00 82 9C 1E [16:13:23]Write i2c OK [16:13:23]MH_I2C_Read... [16:13:24]OFD Sender: No OFD packet to send [16:13:24]*** Cut start [16:13:24]*** Purtial cut [16:13:24]*** Stage 1: CUTSNS_PIN = 1 [16:13:26]Read from MH i2c: 01 [16:13:26]MH_I2C_Read... [16:13:26]*** Stop cut motor [16:13:26]*** Cut end [16:13:26]Read from MH i2c: 01 07 00 [16:13:26]MH_I2C_Read... [16:13:26]Read from MH i2c: 01 07 00 82 9C 00 00 00 00 00 FF 0F 33 [16:13:26]process_action close_receipt done [16:13:26]requested_data is exist [16:13:26]produce_requested_data [16:13:26]requested_item fm.sn is exist - process it [16:13:26]wFMCommunicate request_size=4 [16:13:26]MH_SAM_APDU [16:13:26]CAPDU: 80 11 00 00 [16:13:26]Write to MH i2c: E2 08 00 83 9C 80 11 00 00 00 00 00 00 99 [16:13:26]Write i2c OK [16:13:26]MH_I2C_Read... [16:13:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:26]Read from MH i2c: E2 [16:13:26]MH_I2C_Read... [16:13:26]Read from MH i2c: E2 17 00 [16:13:26]MH_I2C_Read... [16:13:26]Read from MH i2c: E2 17 00 83 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E6 [16:13:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:13:26]wFMCommunicate OK [16:13:26]requested_item fd.num is exist - process it [16:13:26]SAM_PROTO_GetFieldsCounters [16:13:26]wFMCommunicate request_size=4 [16:13:26]MH_SAM_APDU [16:13:26]CAPDU: 80 13 00 00 [16:13:26]Write to MH i2c: E2 08 00 84 9C 80 13 00 00 00 00 00 00 9C [16:13:26]Write i2c OK [16:13:26]MH_I2C_Read... [16:13:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:27]Read from MH i2c: E2 [16:13:27]MH_I2C_Read... [16:13:27]Read from MH i2c: E2 62 00 [16:13:27]MH_I2C_Read... [16:13:27]Read from MH i2c: E2 62 00 84 9C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A8 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 0F [16:13: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A8 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:13:27]wFMCommunicate OK [16:13:27]SAM_PROTO_GetFieldsCounters done [16:13:27]requested_item shift.num is exist - process it [16:13:27]requested_item shift.opened is exist - process it [16:13:27]req_shift_opened [16:13:27]FM_GetShiftState [16:13:27]SAM_PROTO_GetShiftState [16:13:27]wFMCommunicate request_size=4 [16:13:27]MH_SAM_APDU [16:13:27]CAPDU: 80 13 01 00 [16:13:27]Write to MH i2c: E2 08 00 85 9C 80 13 01 00 00 00 00 00 9E [16:13:27]Write i2c OK [16:13:27]MH_I2C_Read... [16:13:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:27]Read from MH i2c: E2 [16:13:27]MH_I2C_Read... [16:13:27]Read from MH i2c: E2 0E 00 [16:13:27]MH_I2C_Read... [16:13:27]Read from MH i2c: E2 0E 00 85 9C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 DB [16:13:27]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:13:27]wFMCommunicate OK [16:13:27]SAM_PROTO_GetShiftState done [16:13:27]FM_GetShiftState done [16:13:27]req_shift_opened done [16:13:27]requested_item shift.open_date is exist - process it [16:13:27]req_shift_open_date [16:13:27]req_shift_open_date done [16:13:27]produce_requested_data done [16:13:27]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260776,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [16:13:27]process_action_free close_receipt [16:13:27]json_value_free [16:13:27]json_value_free done [16:13:27]process_json_proto returns [16:13:27]Send response to host [16:13:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260776,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [16:13:27]free response buf [16:13:27]execute_script done [16:13:27]execute_script returns [16:13:27]free content buf [16:13:27]Sock 9.Close socket [16:13:27]Sock 9.Thread stoped [16:13:29]OFD Sender: No OFD packet to send [16:13:34]OFD Sender: No OFD packet to send [16:13:39]OFD Sender: No OFD packet to send [16:13:44]OFD Sender: No OFD packet to send [16:13:49]OFD Sender: No OFD packet to send [16:13:54]OFD Sender: No OFD packet to send [16:13:59]OFD Sender: No OFD packet to send [16:14:04]OFD Sender: No OFD packet to send [16:14:09]OFD Sender: No OFD packet to send [16:14:14]OFD Sender: No OFD packet to send [16:14:19]OFD Sender: No OFD packet to send [16:14:24]OFD Sender: No OFD packet to send [16:14:29]OFD Sender: No OFD packet to send [16:14:34]OFD Sender: No OFD packet to send [16:14:39]OFD Sender: No OFD packet to send [16:14:44]OFD Sender: No OFD packet to send [16:14:45]accept exits with 7 [16:14:45]New connection [16:14:45]New thread 3066617188 created [16:14:45]Thread 3066473828 joined [16:14:45]Waiting for new connection... [16:14:45] Sock 7.Parse request [16:14:45]Sock 7.Check first char [16:14:45]Sock 7.First char is OK [16:14:45]request: POST /json_proto HTTP/1.0 [16:14:45]Method: POST [16:14:45]URL: /json_proto [16:14:45]Method is POST - this is cgi request [16:14:45]url: /json_proto [16:14:45]query_string will be loaded in cgi processing [16:14:45]execute_cgi json_proto POST (null) [16:14:45]execute_cgi path=json_proto method=POST [16:14:45]POST find Content-Length [16:14:45]Host: 172.17.55.133:8080 [16:14:45]Content-Length: 688 [16:14:45]Content-Type: application/json [16:14:45] [16:14:45]POST finish read [16:14:45]Found Content-Length = 688 [16:14:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:45]execute_script... [16:14: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)1036329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:45]POST & json_proto [16:14:45]process_json_proto [16:14:45]json parsed OK: [16:14:45]protocol is kg_v1.0 [16:14:45]action value=close_receipt [16:14:45]process_action close_receipt [16:14:45]cmd_close_receipt [16:14:45]MH_GetDate [16:14:45]Write to MH i2c: F0 00 00 86 9C 11 [16:14:45]Write i2c OK [16:14:45]MH_I2C_Read... [16:14:45]Read from MH i2c: F0 [16:14:45]MH_I2C_Read... [16:14:45]Read from MH i2c: F0 09 00 [16:14:45]MH_I2C_Read... [16:14:45]Read from MH i2c: F0 09 00 86 9C 00 FB 1D C2 66 34 48 D8 65 13 [16:14:45]GetLastDocTimeStamp 1723997607 [16:14:45]current date 1723997691 [16:14:45]FM_GetShiftState [16:14:45]SAM_PROTO_GetShiftState [16:14:45]wFMCommunicate request_size=4 [16:14:45]MH_SAM_APDU [16:14:45]CAPDU: 80 13 01 00 [16:14:45]Write to MH i2c: E2 08 00 87 9C 80 13 01 00 00 00 00 00 A0 [16:14:45]Write i2c OK [16:14:45]MH_I2C_Read... [16:14:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:45]Read from MH i2c: E2 [16:14:45]MH_I2C_Read... [16:14:45]Read from MH i2c: E2 0E 00 [16:14:45]MH_I2C_Read... [16:14:45]Read from MH i2c: E2 0E 00 87 9C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 DD [16:14:45]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:14:45]wFMCommunicate OK [16:14:45]SAM_PROTO_GetShiftState done [16:14:45]FM_GetShiftState done [16:14:45]opened in 1723940556 [16:14:45]opened+sec_in_day 1724026956 [16:14:45]quantity*price = 100050 [16:14:45]sum+1 = 100052 [16:14:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 335 18.08.2024 16:14 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260777 ФПД: 78461816334937 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T161451&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260777&fm=78461816334937&tin=02508201610067®Number=0000000000091865&sum=100000 [16:14:46]StoreToDocumentArchive [16:14:46]shift 449 fd 260777 [16:14:46]save to /storage/0449/doc_00260777 [16:14:46]save last doc name /storage/0449/doc_00260777 to /storage/kkm_last_doc_name [16:14:46]save OK [16:14:46]Clear old archive folders... [16:14:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:14:46]tlvbuf is 0036EC40 [16:14:46]SAM_PROTO_ClearQueue [16:14:46]wFMCommunicate request_size=4 [16:14:46]MH_SAM_APDU [16:14:46]CAPDU: 80 09 00 00 [16:14:46]Write to MH i2c: E2 08 00 94 9C 80 09 00 00 00 00 00 00 A2 [16:14:46]Write i2c OK [16:14:46]MH_I2C_Read... [16:14:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:14:46]Read from MH i2c: E2 [16:14:46]MH_I2C_Read... [16:14:46]Read from MH i2c: E2 03 00 [16:14:46]MH_I2C_Read... [16:14:46]Read from MH i2c: E2 03 00 94 9C 00 90 00 A4 [16:14:46]RAPDU: 90 00 [16:14:46]wFMCommunicate OK [16:14:46]SAM_PROTO_ClearQueue done [16:14:46]KKMCreateOFDPacket [16:14:46]OFDProtocolAddRootSTLVToBuf [16:14:46]FM_MakeSignedData [16:14:46]FM_MakeSignedData [16:14:46]SAM_PROTO_SignData [16:14:46]wFMCommunicate request_size=4 [16:14:46]MH_SAM_APDU [16:14:46]CAPDU: 80 0D 01 02 [16:14:46]Write to MH i2c: E2 08 00 95 9C 80 0D 01 02 00 00 00 00 AA [16:14:46]Write i2c OK [16:14:46]MH_I2C_Read... [16:14:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:14:46]Read from MH i2c: E2 [16:14:46]MH_I2C_Read... [16:14:46]Read from MH i2c: E2 03 00 [16:14:46]MH_I2C_Read... [16:14:46]Read from MH i2c: E2 03 00 95 9C 00 90 00 A5 [16:14:46]RAPDU: 90 00 [16:14:46]wFMCommunicate OK [16:14:46]wFMCommunicate request_size=255 [16:14:46]MH_SAM_APDU [16:14:46]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 FB 1D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A9 FA 03 00 35 04 06 00 [16:14:46]Write to MH i2c: E2 02 01 96 9C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 FB 1D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A9 FA 03 00 35 04 06 00 00 00 0C [16:14:46]Write i2c OK [16:14:46]MH_I2C_Read... [16:14:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:47]Read from MH i2c: E2 [16:14:47]MH_I2C_Read... [16:14:47]Read from MH i2c: E2 03 00 [16:14:47]MH_I2C_Read... [16:14:47]Read from MH i2c: E2 03 00 96 9C 00 90 00 A6 [16:14:47]RAPDU: 90 00 [16:14:47]wFMCommunicate OK [16:14:47]wFMCommunicate request_size=11 [16:14:47]MH_SAM_APDU [16:14:47]CAPDU: 80 0D 02 02 06 47 5C 50 B0 EA 59 [16:14:47]Write to MH i2c: E2 0E 00 97 9C 80 0D 02 02 06 00 47 5C 50 B0 EA 59 00 00 9F [16:14:47]Write i2c OK [16:14:47]MH_I2C_Read... [16:14:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:47]Read from MH i2c: E2 [16:14:47]MH_I2C_Read... [16:14:47]Read from MH i2c: E2 03 00 [16:14:47]MH_I2C_Read... [16:14:47]Read from MH i2c: E2 03 00 97 9C 00 90 00 A7 [16:14:47]RAPDU: 90 00 [16:14:47]wFMCommunicate OK [16:14:47]wFMCommunicate request_size=4 [16:14:47]MH_SAM_APDU [16:14:47]CAPDU: 80 0D 03 02 [16:14:47]Write to MH i2c: E2 08 00 98 9C 80 0D 03 02 00 00 00 00 AF [16:14:47]Write i2c OK [16:14:47]MH_I2C_Read... [16:14:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:14:47]Read from MH i2c: E2 [16:14:47]MH_I2C_Read... [16:14:47]Read from MH i2c: E2 0B 00 [16:14:47]MH_I2C_Read... [16:14:47]Read from MH i2c: E2 0B 00 98 9C 00 CB 51 FA 6B 50 3D 3B 67 90 00 60 [16:14:47]RAPDU: CB 51 FA 6B 50 3D 3B 67 90 00 [16:14:47]wFMCommunicate OK [16:14:47]SAM_PROTO_SignData done [16:14:47]FM_MakeSignedData done [16:14:47]CreateOFDProtocolMessage [16:14:47]wFMCommunicate request_size=4 [16:14:47]MH_SAM_APDU [16:14:47]CAPDU: 80 11 00 00 [16:14:47]Write to MH i2c: E2 08 00 99 9C 80 11 00 00 00 00 00 00 AF [16:14:47]Write i2c OK [16:14:47]MH_I2C_Read... [16:14:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:47]Read from MH i2c: E2 [16:14:47]MH_I2C_Read... [16:14:47]Read from MH i2c: E2 17 00 [16:14:47]MH_I2C_Read... [16:14:47]Read from MH i2c: E2 17 00 99 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 FC [16:14:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:14:47]wFMCommunicate OK [16:14:47]CreateOFDProtocolMessage done [16:14:47]OFDSenderStorePacket 260777 [16:14:47]StoreOFDPacket docnum=260777 [16:14:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 1B 8B 08 01 17 66 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 FB 1D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A9 FA 03 00 35 04 06 00 47 5C 50 B0 EA 59 CB 51 FA 6B 50 3D 3B 67 [16:14:47]CheckFolder [16:14:47]dirname=/storage/ofd_packets [16:14:47]CheckFolder done [16:14:47]ProducePacketName [16:14:47]name=ofd_packets/00260777 [16:14:47]NVStorageSaveData ofd_packets/00260777 [16:14:47]File name is /storage/ofd_packets/00260777 [16:14:47]Write 302 bytes [16:14:47]NVStorageSaveData done [16:14:47]OFDSenderStorePacket done [16:14:47]KKMCreateOFDPacket done [16:14:47]NVStorageSaveData kkm_last_timestamp [16:14:47]File name is /storage/kkm_last_timestamp [16:14:47]Write 4 bytes [16:14:47]NVStorageSaveData done [16:14:47]ExternCall_PrintAddStr [16:14:47]wPrintStart [16:14:47]Write to MH i2c: 01 00 00 9A 9C 36 [16:14:47]Write i2c OK [16:14:47]MH_I2C_Read... [16:14:47]Read from MH i2c: 01 [16:14:47]MH_I2C_Read... [16:14:47]Read from MH i2c: 01 07 00 [16:14:47]MH_I2C_Read... [16:14:47]Read from MH i2c: 01 07 00 9A 9C 00 00 00 00 00 FF 0F 4B [16:14:47]RasterBufferAndPrint [16:14:47]line Счет N : (1)1036329 [16:14:47]line ИНН: 02508201610067 [16:14:47]line Контрольно-Кассовый Чек [16:14:47]line ПРОДАЖА [16:14:47]line ТРК (МРК, ГНК) : 43 [16:14:47]line Товар: 2710194210 [16:14:47]line ДТ(л)-К-4 [16:14:47]line 13.130 * 76.20 [16:14:47]line = 1000.51 [16:14:47]line НДС 12% НСП 1% [16:14:47]line > о реализуемом товаре [16:14:47]line ОКРУГЛЕНИЕ: -0.51 [16:14:47]line ИТОГО: 1000.00 [16:14:47]line Внесено: 1000.00 [16:14:47]line СДАЧА: 0.00 [16:14:47]line НСП 1% : 8.85 [16:14:47]line НДС 12% : 106.25 [16:14:47]line Наличными: 1000.00 [16:14:47]line Безнал.: 0.00 [16:14:47]line Место: АЗС № 94 "Партнер Нефть" [16:14:47]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [16:14:47]line СНО: Общий режим [16:14:47]line Чек 335 18.08.2024 16:14 [16:14:47]line Смена: 449 ФФД: 1.0 [16:14:47]line ЗНМ: 0300000099 [16:14:47]line РНМ: 0000000000091865 [16:14:47]line Версия ККМ: 001 [16:14:47]line ФМ: 0000000000871820 [16:14:47]line ФД: 260777 [16:14:47]line ФПД: 78461816334937 [16:14:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T161451&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260777&fm=78461816334937&tin=02508201610067®Number=0000000000091865&sum=100000 [16:14:47]OFD Sender: Processing packet 260777 [packets to send 192, broken 191] [16:14:47]ProducePacketName [16:14:47]name=ofd_packets/00260777 [16:14:47]OFD Sender: To server: pG, [16:14:47]CommunicateWithHost lk.salyk.kg:30040 [16:14:47]ConnectInit lk.salyk.kg [16:14:47]written 0, free lines is 4095 [16:14:47]Connected sock=10 [16:14: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 30 10 01 00 00 1B 8B 08 01 17 66 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 FB 1D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A9 FA 03 00 35 04 06 00 47 5C 50 B0 EA 59 CB 51 FA 6B 50 3D 3B 67 [16:14: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 30 4F 00 00 00 24 73 47 00 AE 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A9 FA 03 00 F4 03 04 00 4F C7 C1 66 B6 04 01 00 00 8F 05 FB F9 0E 75 8A 23 [16:14:48]CommunicateWithHost err = 0 [16:14:48]CheckOFDResponse [16:14:48]1017 (14) - 77093643461234 [16:14:48]1041 (16) - 0000000000871820 [16:14:48]1040 (4) - 260777 [16:14:48]1012 (4) - 18.08.2024 10:05 [16:14:48]1206 (1) - 0 [16:14:48]OFD Sender: Remove packet 260777 [16:14:48]ProducePacketName [16:14:48]name=ofd_packets/00260777 [16:14:48]NVStorageDeleteData [16:14:48]Write to MH i2c: 01 00 00 C5 9C 61 [16:14:48]Write i2c OK [16:14:48]MH_I2C_Read... [16:14:48]Read from MH i2c: 01 [16:14:48]MH_I2C_Read... [16:14:48]Read from MH i2c: 01 07 00 [16:14:48]MH_I2C_Read... [16:14:48]Read from MH i2c: 01 07 00 C5 9C 00 00 00 00 00 72 0C E6 [16:14:48]RasterBufferAndPrint [16:14:48]line [16:14:48]line [16:14:48]line [16:14:48]line [16:14:48]line [16:14:48]written 0, free lines is 3188 [16:14:48]MH_Cut [16:14:48]Write to MH i2c: D1 01 00 CC 9C 01 3A [16:14:48]Write i2c OK [16:14:48]MH_I2C_Read... [16:14:48]Read from MH i2c: D1 [16:14:48]MH_I2C_Read... [16:14:48]Read from MH i2c: D1 01 00 [16:14:48]MH_I2C_Read... [16:14:48]Read from MH i2c: D1 01 00 CC 9C 00 39 [16:14:48]Write to MH i2c: 01 00 00 CD 9C 69 [16:14:48]Write i2c OK [16:14:48]MH_I2C_Read... [16:14:48]OFD Sender: No OFD packet to send [16:14:49]*** Cut start [16:14:49]*** Purtial cut [16:14:49]*** Stage 1: CUTSNS_PIN = 1 [16:14:51]Read from MH i2c: 01 [16:14:51]MH_I2C_Read... [16:14:51]*** Stop cut motor [16:14:51]*** Cut end [16:14:51]Read from MH i2c: 01 07 00 [16:14:51]MH_I2C_Read... [16:14:51]Read from MH i2c: 01 07 00 CD 9C 00 00 00 00 00 FF 0F 7E [16:14:51]process_action close_receipt done [16:14:51]requested_data is exist [16:14:51]produce_requested_data [16:14:51]requested_item fm.sn is exist - process it [16:14:51]wFMCommunicate request_size=4 [16:14:51]MH_SAM_APDU [16:14:51]CAPDU: 80 11 00 00 [16:14:51]Write to MH i2c: E2 08 00 CE 9C 80 11 00 00 00 00 00 00 E4 [16:14:51]Write i2c OK [16:14:51]MH_I2C_Read... [16:14:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:51]Read from MH i2c: E2 [16:14:51]MH_I2C_Read... [16:14:51]Read from MH i2c: E2 17 00 [16:14:51]MH_I2C_Read... [16:14:51]Read from MH i2c: E2 17 00 CE 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 31 [16:14:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:14:51]wFMCommunicate OK [16:14:51]requested_item fd.num is exist - process it [16:14:51]SAM_PROTO_GetFieldsCounters [16:14:51]wFMCommunicate request_size=4 [16:14:51]MH_SAM_APDU [16:14:51]CAPDU: 80 13 00 00 [16:14:51]Write to MH i2c: E2 08 00 CF 9C 80 13 00 00 00 00 00 00 E7 [16:14:51]Write i2c OK [16:14:51]MH_I2C_Read... [16:14:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:14:51]Read from MH i2c: E2 [16:14:51]MH_I2C_Read... [16:14:51]Read from MH i2c: E2 62 00 [16:14:51]MH_I2C_Read... [16:14:51]Read from MH i2c: E2 62 00 CF 9C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A9 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 5E [16:14: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A9 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:14:51]wFMCommunicate OK [16:14:51]SAM_PROTO_GetFieldsCounters done [16:14:51]requested_item shift.num is exist - process it [16:14:51]requested_item shift.opened is exist - process it [16:14:51]req_shift_opened [16:14:51]FM_GetShiftState [16:14:51]SAM_PROTO_GetShiftState [16:14:51]wFMCommunicate request_size=4 [16:14:51]MH_SAM_APDU [16:14:51]CAPDU: 80 13 01 00 [16:14:51]Write to MH i2c: E2 08 00 D0 9C 80 13 01 00 00 00 00 00 E9 [16:14:51]Write i2c OK [16:14:51]MH_I2C_Read... [16:14:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:51]Read from MH i2c: E2 [16:14:51]MH_I2C_Read... [16:14:51]Read from MH i2c: E2 0E 00 [16:14:51]MH_I2C_Read... [16:14:51]Read from MH i2c: E2 0E 00 D0 9C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 26 [16:14:51]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:14:51]wFMCommunicate OK [16:14:51]SAM_PROTO_GetShiftState done [16:14:51]FM_GetShiftState done [16:14:51]req_shift_opened done [16:14:51]requested_item shift.open_date is exist - process it [16:14:51]req_shift_open_date [16:14:51]req_shift_open_date done [16:14:51]produce_requested_data done [16:14:51]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260777,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [16:14:51]process_action_free close_receipt [16:14:51]json_value_free [16:14:51]json_value_free done [16:14:51]process_json_proto returns [16:14:51]Send response to host [16:14:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260777,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [16:14:51]free response buf [16:14:51]execute_script done [16:14:51]execute_script returns [16:14:51]free content buf [16:14:51]Sock 7.Close socket [16:14:51]Sock 7.Thread stoped [16:14:53]OFD Sender: No OFD packet to send [16:14:58]OFD Sender: No OFD packet to send [16:15:03]OFD Sender: No OFD packet to send [16:15:08]OFD Sender: No OFD packet to send [16:15:13]OFD Sender: No OFD packet to send [16:15:18]OFD Sender: No OFD packet to send [16:15:23]OFD Sender: No OFD packet to send [16:15:28]OFD Sender: No OFD packet to send [16:15:33]OFD Sender: No OFD packet to send [16:15:38]OFD Sender: No OFD packet to send [16:15:43]OFD Sender: No OFD packet to send [16:15:48]OFD Sender: No OFD packet to send [16:15:53]OFD Sender: No OFD packet to send [16:15:58]OFD Sender: No OFD packet to send [16:16:03]OFD Sender: No OFD packet to send [16:16:08]OFD Sender: No OFD packet to send [16:16:13]OFD Sender: No OFD packet to send [16:16:18]OFD Sender: No OFD packet to send [16:16:23]OFD Sender: No OFD packet to send [16:16:28]OFD Sender: No OFD packet to send [16:16:33]OFD Sender: No OFD packet to send [16:16:38]OFD Sender: No OFD packet to send [16:16:43]OFD Sender: No OFD packet to send [16:16:48]OFD Sender: No OFD packet to send [16:16:53]OFD Sender: No OFD packet to send [16:16:58]OFD Sender: No OFD packet to send [16:17:03]OFD Sender: No OFD packet to send [16:17:05]accept exits with 9 [16:17:05]New connection [16:17:05]New thread 3066473828 created [16:17:05]Thread 3066617188 joined [16:17:05]Waiting for new connection... [16:17:05] Sock 9.Parse request [16:17:05]Sock 9.Check first char [16:17:05]Sock 9.First char is OK [16:17:05]request: POST /json_proto HTTP/1.0 [16:17:05]Method: POST [16:17:05]URL: /json_proto [16:17:05]Method is POST - this is cgi request [16:17:05]url: /json_proto [16:17:05]query_string will be loaded in cgi processing [16:17:05]execute_cgi json_proto POST (null) [16:17:05]execute_cgi path=json_proto method=POST [16:17:05]POST find Content-Length [16:17:05]Host: 172.17.55.133:8080 [16:17:05]Content-Length: 683 [16:17:05]Content-Type: application/json [16:17:05] [16:17:05]POST finish read [16:17:05]Found Content-Length = 683 [16:17:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036330", "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" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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" ] } } [16:17:05]execute_script... [16:17: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)1036330", "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" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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" ] } } [16:17:05]POST & json_proto [16:17:05]process_json_proto [16:17:05]json parsed OK: [16:17:05]protocol is kg_v1.0 [16:17:05]action value=close_receipt [16:17:05]process_action close_receipt [16:17:05]cmd_close_receipt [16:17:05]MH_GetDate [16:17:05]Write to MH i2c: F0 00 00 D1 9C 5C [16:17:05]Write i2c OK [16:17:05]MH_I2C_Read... [16:17:05]Read from MH i2c: F0 [16:17:05]MH_I2C_Read... [16:17:05]Read from MH i2c: F0 09 00 [16:17:05]MH_I2C_Read... [16:17:05]Read from MH i2c: F0 09 00 D1 9C 00 87 1E C2 66 34 48 D8 65 EB [16:17:05]GetLastDocTimeStamp 1723997691 [16:17:05]current date 1723997831 [16:17:05]FM_GetShiftState [16:17:05]SAM_PROTO_GetShiftState [16:17:05]wFMCommunicate request_size=4 [16:17:05]MH_SAM_APDU [16:17:05]CAPDU: 80 13 01 00 [16:17:05]Write to MH i2c: E2 08 00 D2 9C 80 13 01 00 00 00 00 00 EB [16:17:05]Write i2c OK [16:17:05]MH_I2C_Read... [16:17:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:06]Read from MH i2c: E2 [16:17:06]MH_I2C_Read... [16:17:06]Read from MH i2c: E2 0E 00 [16:17:06]MH_I2C_Read... [16:17:06]Read from MH i2c: E2 0E 00 D2 9C 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 28 [16:17:06]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:17:06]wFMCommunicate OK [16:17:06]SAM_PROTO_GetShiftState done [16:17:06]FM_GetShiftState done [16:17:06]opened in 1723940556 [16:17:06]opened+sec_in_day 1724026956 [16:17:06]quantity*price = 150032 [16:17:06]sum+1 = 150033 [16:17:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 336 18.08.2024 16:17 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260778 ФПД: 112750232721404 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T161711&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260778&fm=112750232721404&tin=02508201610067®Number=0000000000091865&sum=150000 [16:17:07]StoreToDocumentArchive [16:17:07]shift 449 fd 260778 [16:17:07]save to /storage/0449/doc_00260778 [16:17:07]save last doc name /storage/0449/doc_00260778 to /storage/kkm_last_doc_name [16:17:07]save OK [16:17:07]Clear old archive folders... [16:17:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:17:07]tlvbuf is 003E95E0 [16:17:07]SAM_PROTO_ClearQueue [16:17:07]wFMCommunicate request_size=4 [16:17:07]MH_SAM_APDU [16:17:07]CAPDU: 80 09 00 00 [16:17:07]Write to MH i2c: E2 08 00 DF 9C 80 09 00 00 00 00 00 00 ED [16:17:07]Write i2c OK [16:17:07]MH_I2C_Read... [16:17:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:17:07]Read from MH i2c: E2 [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: E2 03 00 [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: E2 03 00 DF 9C 00 90 00 EF [16:17:07]RAPDU: 90 00 [16:17:07]wFMCommunicate OK [16:17:07]SAM_PROTO_ClearQueue done [16:17:07]KKMCreateOFDPacket [16:17:07]OFDProtocolAddRootSTLVToBuf [16:17:07]FM_MakeSignedData [16:17:07]FM_MakeSignedData [16:17:07]SAM_PROTO_SignData [16:17:07]wFMCommunicate request_size=4 [16:17:07]MH_SAM_APDU [16:17:07]CAPDU: 80 0D 01 02 [16:17:07]Write to MH i2c: E2 08 00 E0 9C 80 0D 01 02 00 00 00 00 F5 [16:17:07]Write i2c OK [16:17:07]MH_I2C_Read... [16:17:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:17:07]Read from MH i2c: E2 [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: E2 03 00 [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: E2 03 00 E0 9C 00 90 00 F0 [16:17:07]RAPDU: 90 00 [16:17:07]wFMCommunicate OK [16:17:07]wFMCommunicate request_size=255 [16:17:07]MH_SAM_APDU [16:17: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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 50 01 00 00 F4 03 04 00 87 1E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AA FA 03 00 35 04 06 00 66 [16:17:07]Write to MH i2c: E2 02 01 E1 9C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 50 01 00 00 F4 03 04 00 87 1E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AA FA 03 00 35 04 06 00 66 00 00 D2 [16:17:07]Write i2c OK [16:17:07]MH_I2C_Read... [16:17:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:07]Read from MH i2c: E2 [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: E2 03 00 [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: E2 03 00 E1 9C 00 90 00 F1 [16:17:07]RAPDU: 90 00 [16:17:07]wFMCommunicate OK [16:17:07]wFMCommunicate request_size=10 [16:17:07]MH_SAM_APDU [16:17:07]CAPDU: 80 0D 02 02 05 8B B5 91 D7 FC [16:17:07]Write to MH i2c: E2 0D 00 E2 9C 80 0D 02 02 05 00 8B B5 91 D7 FC 00 00 A6 [16:17:07]Write i2c OK [16:17:07]MH_I2C_Read... [16:17:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:07]Read from MH i2c: E2 [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: E2 03 00 [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: E2 03 00 E2 9C 00 90 00 F2 [16:17:07]RAPDU: 90 00 [16:17:07]wFMCommunicate OK [16:17:07]wFMCommunicate request_size=4 [16:17:07]MH_SAM_APDU [16:17:07]CAPDU: 80 0D 03 02 [16:17:07]Write to MH i2c: E2 08 00 E3 9C 80 0D 03 02 00 00 00 00 FA [16:17:07]Write i2c OK [16:17:07]MH_I2C_Read... [16:17:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:17:07]Read from MH i2c: E2 [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: E2 0B 00 [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: E2 0B 00 E3 9C 00 0D C8 F3 9C 9F 35 13 1C 90 00 62 [16:17:07]RAPDU: 0D C8 F3 9C 9F 35 13 1C 90 00 [16:17:07]wFMCommunicate OK [16:17:07]SAM_PROTO_SignData done [16:17:07]FM_MakeSignedData done [16:17:07]CreateOFDProtocolMessage [16:17:07]wFMCommunicate request_size=4 [16:17:07]MH_SAM_APDU [16:17:07]CAPDU: 80 11 00 00 [16:17:07]Write to MH i2c: E2 08 00 E4 9C 80 11 00 00 00 00 00 00 FA [16:17:07]Write i2c OK [16:17:07]MH_I2C_Read... [16:17:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:07]Read from MH i2c: E2 [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: E2 17 00 [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: E2 17 00 E4 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 47 [16:17:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:17:07]wFMCommunicate OK [16:17:07]CreateOFDProtocolMessage done [16:17:07]OFDSenderStorePacket 260778 [16:17:07]StoreOFDPacket docnum=260778 [16:17:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 15 50 07 01 14 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 50 01 00 00 F4 03 04 00 87 1E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AA FA 03 00 35 04 06 00 66 8B B5 91 D7 FC 0D C8 F3 9C 9F 35 13 1C [16:17:07]CheckFolder [16:17:07]dirname=/storage/ofd_packets [16:17:07]CheckFolder done [16:17:07]ProducePacketName [16:17:07]name=ofd_packets/00260778 [16:17:07]NVStorageSaveData ofd_packets/00260778 [16:17:07]File name is /storage/ofd_packets/00260778 [16:17:07]Write 301 bytes [16:17:07]NVStorageSaveData done [16:17:07]OFDSenderStorePacket done [16:17:07]KKMCreateOFDPacket done [16:17:07]NVStorageSaveData kkm_last_timestamp [16:17:07]File name is /storage/kkm_last_timestamp [16:17:07]Write 4 bytes [16:17:07]NVStorageSaveData done [16:17:07]ExternCall_PrintAddStr [16:17:07]wPrintStart [16:17:07]Write to MH i2c: 01 00 00 E5 9C 81 [16:17:07]Write i2c OK [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: 01 [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: 01 07 00 [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: 01 07 00 E5 9C 00 00 00 00 00 FF 0F 96 [16:17:07]RasterBufferAndPrint [16:17:07]line Счет N : (1)1036330 [16:17:07]line ИНН: 02508201610067 [16:17:07]line Контрольно-Кассовый Чек [16:17:07]line ПРОДАЖА [16:17:07]line ТРК (МРК, ГНК) : 23 [16:17:07]line Товар: 2710124500 [16:17:07]line Аи-95-К-5 [16:17:07]line 20.220 * 74.20 [16:17:07]line = 1500.32 [16:17:07]line НДС 12% НСП 1% [16:17:07]line > о реализуемом товаре [16:17:07]line ОКРУГЛЕНИЕ: -0.32 [16:17:07]line ИТОГО: 1500.00 [16:17:07]line Внесено: 1500.00 [16:17:07]line СДАЧА: 0.00 [16:17:07]line НСП 1% : 13.28 [16:17:07]line НДС 12% : 159.33 [16:17:07]line Наличными: 1500.00 [16:17:07]line Безнал.: 0.00 [16:17:07]line Место: АЗС № 94 "Партнер Нефть" [16:17:07]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [16:17:07]line СНО: Общий режим [16:17:07]line Чек 336 18.08.2024 16:17 [16:17:07]line Смена: 449 ФФД: 1.0 [16:17:07]line ЗНМ: 0300000099 [16:17:07]line РНМ: 0000000000091865 [16:17:07]line Версия ККМ: 001 [16:17:07]line ФМ: 0000000000871820 [16:17:07]line ФД: 260778 [16:17:07]line ФПД: 112750232721404 [16:17:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T161711&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260778&fm=112750232721404&tin=02508201610067®Number=0000000000091865&sum=150000 [16:17:07]written 0, free lines is 4095 [16:17:07]OFD Sender: Processing packet 260778 [packets to send 192, broken 191] [16:17:07]ProducePacketName [16:17:07]name=ofd_packets/00260778 [16:17:07]OFD Sender: To server: pG, [16:17:07]CommunicateWithHost lk.salyk.kg:30040 [16:17:07]ConnectInit lk.salyk.kg [16:17:07]Connected sock=10 [16:17: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 30 0F 01 00 00 15 50 07 01 14 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 50 01 00 00 F4 03 04 00 87 1E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AA FA 03 00 35 04 06 00 66 8B B5 91 D7 FC 0D C8 F3 9C 9F 35 13 1C [16:17: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 30 4F 00 00 00 3F 43 47 00 C9 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 30 10 04 04 00 AA FA 03 00 F4 03 04 00 DB C7 C1 66 B6 04 01 00 00 62 8B 9E 2B C5 95 EB 3D [16:17:08]CommunicateWithHost err = 0 [16:17:08]CheckOFDResponse [16:17:08]1017 (14) - 77093643461234 [16:17:08]1041 (16) - 0000000000871820 [16:17:08]1040 (4) - 260778 [16:17:08]1012 (4) - 18.08.2024 10:07 [16:17:08]1206 (1) - 0 [16:17:08]OFD Sender: Remove packet 260778 [16:17:08]ProducePacketName [16:17:08]name=ofd_packets/00260778 [16:17:08]NVStorageDeleteData [16:17:08]Write to MH i2c: 01 00 00 10 9D AD [16:17:08]Write i2c OK [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: 01 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: 01 07 00 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: 01 07 00 10 9D 00 00 00 00 00 68 0C 28 [16:17:08]RasterBufferAndPrint [16:17:08]line [16:17:08]line [16:17:08]line [16:17:08]line [16:17:08]line [16:17:08]written 0, free lines is 3180 [16:17:08]MH_Cut [16:17:08]Write to MH i2c: D1 01 00 17 9D 01 86 [16:17:08]Write i2c OK [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: D1 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: D1 01 00 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: D1 01 00 17 9D 00 85 [16:17:08]Write to MH i2c: 01 00 00 18 9D B5 [16:17:08]Write i2c OK [16:17:08]MH_I2C_Read... [16:17:08]OFD Sender: No OFD packet to send [16:17:09]*** Cut start [16:17:09]*** Purtial cut [16:17:09]*** Stage 1: CUTSNS_PIN = 1 [16:17:11]Read from MH i2c: 01 [16:17:11]MH_I2C_Read... [16:17:11]*** Stop cut motor [16:17:11]*** Cut end [16:17:11]Read from MH i2c: 01 07 00 [16:17:11]MH_I2C_Read... [16:17:11]Read from MH i2c: 01 07 00 18 9D 00 00 00 00 00 FF 0F CA [16:17:11]process_action close_receipt done [16:17:11]requested_data is exist [16:17:11]produce_requested_data [16:17:11]requested_item fm.sn is exist - process it [16:17:11]wFMCommunicate request_size=4 [16:17:11]MH_SAM_APDU [16:17:11]CAPDU: 80 11 00 00 [16:17:11]Write to MH i2c: E2 08 00 19 9D 80 11 00 00 00 00 00 00 30 [16:17:11]Write i2c OK [16:17:11]MH_I2C_Read... [16:17:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:11]Read from MH i2c: E2 [16:17:11]MH_I2C_Read... [16:17:11]Read from MH i2c: E2 17 00 [16:17:11]MH_I2C_Read... [16:17:11]Read from MH i2c: E2 17 00 19 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 7D [16:17:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:17:11]wFMCommunicate OK [16:17:11]requested_item fd.num is exist - process it [16:17:11]SAM_PROTO_GetFieldsCounters [16:17:11]wFMCommunicate request_size=4 [16:17:11]MH_SAM_APDU [16:17:11]CAPDU: 80 13 00 00 [16:17:11]Write to MH i2c: E2 08 00 1A 9D 80 13 00 00 00 00 00 00 33 [16:17:11]Write i2c OK [16:17:11]MH_I2C_Read... [16:17:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:17:11]Read from MH i2c: E2 [16:17:11]MH_I2C_Read... [16:17:11]Read from MH i2c: E2 62 00 [16:17:11]MH_I2C_Read... [16:17:11]Read from MH i2c: E2 62 00 1A 9D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 AA FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 AE [16:17: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 AA FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:17:11]wFMCommunicate OK [16:17:11]SAM_PROTO_GetFieldsCounters done [16:17:11]requested_item shift.num is exist - process it [16:17:11]requested_item shift.opened is exist - process it [16:17:11]req_shift_opened [16:17:11]FM_GetShiftState [16:17:11]SAM_PROTO_GetShiftState [16:17:11]wFMCommunicate request_size=4 [16:17:11]MH_SAM_APDU [16:17:11]CAPDU: 80 13 01 00 [16:17:11]Write to MH i2c: E2 08 00 1B 9D 80 13 01 00 00 00 00 00 35 [16:17:11]Write i2c OK [16:17:11]MH_I2C_Read... [16:17:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:11]Read from MH i2c: E2 [16:17:11]MH_I2C_Read... [16:17:11]Read from MH i2c: E2 0E 00 [16:17:11]MH_I2C_Read... [16:17:11]Read from MH i2c: E2 0E 00 1B 9D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 72 [16:17:11]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:17:11]wFMCommunicate OK [16:17:11]SAM_PROTO_GetShiftState done [16:17:11]FM_GetShiftState done [16:17:11]req_shift_opened done [16:17:11]requested_item shift.open_date is exist - process it [16:17:11]req_shift_open_date [16:17:11]req_shift_open_date done [16:17:11]produce_requested_data done [16:17:11]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260778,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [16:17:11]process_action_free close_receipt [16:17:11]json_value_free [16:17:11]json_value_free done [16:17:11]process_json_proto returns [16:17:11]Send response to host [16:17:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260778,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [16:17:11]free response buf [16:17:11]execute_script done [16:17:11]execute_script returns [16:17:11]free content buf [16:17:11]Sock 9.Close socket [16:17:11]Sock 9.Thread stoped [16:17:13]OFD Sender: No OFD packet to send [16:17:18]OFD Sender: No OFD packet to send [16:17:23]OFD Sender: No OFD packet to send [16:17:28]OFD Sender: No OFD packet to send [16:17:33]OFD Sender: No OFD packet to send [16:17:38]OFD Sender: No OFD packet to send [16:17:43]OFD Sender: No OFD packet to send [16:17:48]OFD Sender: No OFD packet to send [16:17:53]OFD Sender: No OFD packet to send [16:17:58]OFD Sender: No OFD packet to send [16:18:03]OFD Sender: No OFD packet to send [16:18:08]OFD Sender: No OFD packet to send [16:18:13]OFD Sender: No OFD packet to send [16:18:18]OFD Sender: No OFD packet to send [16:18:23]OFD Sender: No OFD packet to send [16:18:28]OFD Sender: No OFD packet to send [16:18:33]OFD Sender: No OFD packet to send [16:18:38]OFD Sender: No OFD packet to send [16:18:43]OFD Sender: No OFD packet to send [16:18:48]OFD Sender: No OFD packet to send [16:18:53]OFD Sender: No OFD packet to send [16:18:58]OFD Sender: No OFD packet to send [16:19:03]OFD Sender: No OFD packet to send [16:19:08]OFD Sender: No OFD packet to send [16:19:13]OFD Sender: No OFD packet to send [16:19:18]OFD Sender: No OFD packet to send [16:19:23]OFD Sender: No OFD packet to send [16:19:27]accept exits with 7 [16:19:27]New connection [16:19:27]New thread 3066617188 created [16:19:27]Thread 3066473828 joined [16:19:27]Waiting for new connection... [16:19:27] Sock 7.Parse request [16:19:27]Sock 7.Check first char [16:19:27]Sock 7.First char is OK [16:19:27]request: POST /json_proto HTTP/1.0 [16:19:27]Method: POST [16:19:27]URL: /json_proto [16:19:27]Method is POST - this is cgi request [16:19:27]url: /json_proto [16:19:27]query_string will be loaded in cgi processing [16:19:27]execute_cgi json_proto POST (null) [16:19:27]execute_cgi path=json_proto method=POST [16:19:27]POST find Content-Length [16:19:27]Host: 172.17.55.133:8080 [16:19:27]Content-Length: 688 [16:19:27]Content-Type: application/json [16:19:27] [16:19:27]POST finish read [16:19:27]Found Content-Length = 688 [16:19:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:27]execute_script... [16:19: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)1036332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:27]POST & json_proto [16:19:27]process_json_proto [16:19:27]json parsed OK: [16:19:27]protocol is kg_v1.0 [16:19:27]action value=close_receipt [16:19:27]process_action close_receipt [16:19:27]cmd_close_receipt [16:19:27]MH_GetDate [16:19:27]Write to MH i2c: F0 00 00 1C 9D A8 [16:19:27]Write i2c OK [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: F0 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: F0 09 00 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: F0 09 00 1C 9D 00 15 1F C2 66 34 48 D8 65 C6 [16:19:27]GetLastDocTimeStamp 1723997831 [16:19:27]current date 1723997973 [16:19:27]FM_GetShiftState [16:19:27]SAM_PROTO_GetShiftState [16:19:27]wFMCommunicate request_size=4 [16:19:27]MH_SAM_APDU [16:19:27]CAPDU: 80 13 01 00 [16:19:27]Write to MH i2c: E2 08 00 1D 9D 80 13 01 00 00 00 00 00 37 [16:19:27]Write i2c OK [16:19:27]MH_I2C_Read... [16:19:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:27]Read from MH i2c: E2 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 0E 00 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 0E 00 1D 9D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 74 [16:19:27]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:19:27]wFMCommunicate OK [16:19:27]SAM_PROTO_GetShiftState done [16:19:27]FM_GetShiftState done [16:19:27]opened in 1723940556 [16:19:27]opened+sec_in_day 1724026956 [16:19:27]quantity*price = 100050 [16:19:27]sum+1 = 100052 [16:19:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 337 18.08.2024 16:19 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260779 ФПД: 280678222228763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T161933&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260779&fm=280678222228763&tin=02508201610067®Number=0000000000091865&sum=100000 [16:19:28]StoreToDocumentArchive [16:19:28]shift 449 fd 260779 [16:19:28]save to /storage/0449/doc_00260779 [16:19:28]save last doc name /storage/0449/doc_00260779 to /storage/kkm_last_doc_name [16:19:28]save OK [16:19:28]Clear old archive folders... [16:19:28]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:19:28]tlvbuf is 00336600 [16:19:28]SAM_PROTO_ClearQueue [16:19:28]wFMCommunicate request_size=4 [16:19:28]MH_SAM_APDU [16:19:28]CAPDU: 80 09 00 00 [16:19:28]Write to MH i2c: E2 08 00 2A 9D 80 09 00 00 00 00 00 00 39 [16:19:28]Write i2c OK [16:19:28]MH_I2C_Read... [16:19:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:19:28]Read from MH i2c: E2 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: E2 03 00 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: E2 03 00 2A 9D 00 90 00 3B [16:19:28]RAPDU: 90 00 [16:19:28]wFMCommunicate OK [16:19:28]SAM_PROTO_ClearQueue done [16:19:28]KKMCreateOFDPacket [16:19:28]OFDProtocolAddRootSTLVToBuf [16:19:28]FM_MakeSignedData [16:19:28]FM_MakeSignedData [16:19:28]SAM_PROTO_SignData [16:19:28]wFMCommunicate request_size=4 [16:19:28]MH_SAM_APDU [16:19:28]CAPDU: 80 0D 01 02 [16:19:28]Write to MH i2c: E2 08 00 2B 9D 80 0D 01 02 00 00 00 00 41 [16:19:28]Write i2c OK [16:19:28]MH_I2C_Read... [16:19:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:19:28]Read from MH i2c: E2 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: E2 03 00 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: E2 03 00 2B 9D 00 90 00 3C [16:19:28]RAPDU: 90 00 [16:19:28]wFMCommunicate OK [16:19:28]wFMCommunicate request_size=255 [16:19:28]MH_SAM_APDU [16:19:28]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 15 1F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AB FA 03 00 35 04 06 00 [16:19:28]Write to MH i2c: E2 02 01 2C 9D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 15 1F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AB FA 03 00 35 04 06 00 00 00 C3 [16:19:28]Write i2c OK [16:19:28]MH_I2C_Read... [16:19:28]OFD Sender: No OFD packet to send [16:19:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:29]Read from MH i2c: E2 [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: E2 03 00 [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: E2 03 00 2C 9D 00 90 00 3D [16:19:29]RAPDU: 90 00 [16:19:29]wFMCommunicate OK [16:19:29]wFMCommunicate request_size=11 [16:19:29]MH_SAM_APDU [16:19:29]CAPDU: 80 0D 02 02 06 FF 46 7D BB 6D 1B [16:19:29]Write to MH i2c: E2 0E 00 2D 9D 80 0D 02 02 06 00 FF 46 7D BB 6D 1B 00 00 55 [16:19:29]Write i2c OK [16:19:29]MH_I2C_Read... [16:19:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:29]Read from MH i2c: E2 [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: E2 03 00 [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: E2 03 00 2D 9D 00 90 00 3E [16:19:29]RAPDU: 90 00 [16:19:29]wFMCommunicate OK [16:19:29]wFMCommunicate request_size=4 [16:19:29]MH_SAM_APDU [16:19:29]CAPDU: 80 0D 03 02 [16:19:29]Write to MH i2c: E2 08 00 2E 9D 80 0D 03 02 00 00 00 00 46 [16:19:29]Write i2c OK [16:19:29]MH_I2C_Read... [16:19:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:19:29]Read from MH i2c: E2 [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: E2 0B 00 [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: E2 0B 00 2E 9D 00 08 B9 1B 98 A0 A8 4A 79 90 00 C6 [16:19:29]RAPDU: 08 B9 1B 98 A0 A8 4A 79 90 00 [16:19:29]wFMCommunicate OK [16:19:29]SAM_PROTO_SignData done [16:19:29]FM_MakeSignedData done [16:19:29]CreateOFDProtocolMessage [16:19:29]wFMCommunicate request_size=4 [16:19:29]MH_SAM_APDU [16:19:29]CAPDU: 80 11 00 00 [16:19:29]Write to MH i2c: E2 08 00 2F 9D 80 11 00 00 00 00 00 00 46 [16:19:29]Write i2c OK [16:19:29]MH_I2C_Read... [16:19:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:29]Read from MH i2c: E2 [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: E2 17 00 [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: E2 17 00 2F 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 93 [16:19:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:19:29]wFMCommunicate OK [16:19:29]CreateOFDProtocolMessage done [16:19:29]OFDSenderStorePacket 260779 [16:19:29]StoreOFDPacket docnum=260779 [16:19:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 6F CC 08 01 78 14 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 15 1F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AB FA 03 00 35 04 06 00 FF 46 7D BB 6D 1B 08 B9 1B 98 A0 A8 4A 79 [16:19:29]CheckFolder [16:19:29]dirname=/storage/ofd_packets [16:19:29]CheckFolder done [16:19:29]ProducePacketName [16:19:29]name=ofd_packets/00260779 [16:19:29]NVStorageSaveData ofd_packets/00260779 [16:19:29]File name is /storage/ofd_packets/00260779 [16:19:29]Write 302 bytes [16:19:29]NVStorageSaveData done [16:19:29]OFDSenderStorePacket done [16:19:29]KKMCreateOFDPacket done [16:19:29]NVStorageSaveData kkm_last_timestamp [16:19:29]File name is /storage/kkm_last_timestamp [16:19:29]Write 4 bytes [16:19:29]NVStorageSaveData done [16:19:29]ExternCall_PrintAddStr [16:19:29]wPrintStart [16:19:29]Write to MH i2c: 01 00 00 30 9D CD [16:19:29]Write i2c OK [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: 01 [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: 01 07 00 [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: 01 07 00 30 9D 00 00 00 00 00 FF 0F E2 [16:19:29]RasterBufferAndPrint [16:19:29]line Счет N : (1)1036332 [16:19:29]line ИНН: 02508201610067 [16:19:29]line Контрольно-Кассовый Чек [16:19:29]line ПРОДАЖА [16:19:29]line ТРК (МРК, ГНК) : 33 [16:19:29]line Товар: 2710194210 [16:19:29]line ДТ(л)-К-4 [16:19:29]line 13.130 * 76.20 [16:19:29]line = 1000.51 [16:19:29]line НДС 12% НСП 1% [16:19:29]line > о реализуемом товаре [16:19:29]line ОКРУГЛЕНИЕ: -0.51 [16:19:29]line ИТОГО: 1000.00 [16:19:29]line Внесено: 1000.00 [16:19:29]line СДАЧА: 0.00 [16:19:29]line НСП 1% : 8.85 [16:19:29]line НДС 12% : 106.25 [16:19:29]line Наличными: 1000.00 [16:19:29]line Безнал.: 0.00 [16:19:29]line Место: АЗС № 94 "Партнер Нефть" [16:19:29]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [16:19:29]line СНО: Общий режим [16:19:29]line Чек 337 18.08.2024 16:19 [16:19:29]line Смена: 449 ФФД: 1.0 [16:19:29]line ЗНМ: 0300000099 [16:19:29]line РНМ: 0000000000091865 [16:19:29]line Версия ККМ: 001 [16:19:29]line ФМ: 0000000000871820 [16:19:29]line ФД: 260779 [16:19:29]line ФПД: 280678222228763 [16:19:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T161933&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260779&fm=280678222228763&tin=02508201610067®Number=0000000000091865&sum=100000 [16:19:29]OFD Sender: Processing packet 260779 [packets to send 192, broken 191] [16:19:29]ProducePacketName [16:19:29]name=ofd_packets/00260779 [16:19:29]OFD Sender: To server: pG, [16:19:29]CommunicateWithHost lk.salyk.kg:30040 [16:19:29]ConnectInit lk.salyk.kg [16:19:29]written 0, free lines is 4095 [16:19:29]Connected sock=10 [16:19: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 30 10 01 00 00 6F CC 08 01 78 14 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 15 1F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AB FA 03 00 35 04 06 00 FF 46 7D BB 6D 1B 08 B9 1B 98 A0 A8 4A 79 [16:19: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 30 4F 00 00 00 CC 61 47 00 C2 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 30 10 04 04 00 AB FA 03 00 F4 03 04 00 69 C8 C1 66 B6 04 01 00 00 E5 4A D7 53 E0 C6 02 78 [16:19:29]CommunicateWithHost err = 0 [16:19:29]CheckOFDResponse [16:19:29]1017 (14) - 77093643461234 [16:19:29]1041 (16) - 0000000000871820 [16:19:29]1040 (4) - 260779 [16:19:29]1012 (4) - 18.08.2024 10:09 [16:19:29]1206 (1) - 0 [16:19:29]OFD Sender: Remove packet 260779 [16:19:29]ProducePacketName [16:19:29]name=ofd_packets/00260779 [16:19:29]NVStorageDeleteData [16:19:30]Write to MH i2c: 01 00 00 5B 9D F8 [16:19:30]Write i2c OK [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: 01 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: 01 07 00 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: 01 07 00 5B 9D 00 00 00 00 00 70 0C 7B [16:19:30]RasterBufferAndPrint [16:19:30]line [16:19:30]line [16:19:30]line [16:19:30]line [16:19:30]line [16:19:30]written 0, free lines is 3187 [16:19:30]MH_Cut [16:19:30]Write to MH i2c: D1 01 00 62 9D 01 D1 [16:19:30]Write i2c OK [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: D1 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: D1 01 00 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: D1 01 00 62 9D 00 D0 [16:19:30]Write to MH i2c: 01 00 00 63 9D 00 [16:19:30]Write i2c OK [16:19:30]MH_I2C_Read... [16:19:30]OFD Sender: No OFD packet to send [16:19:31]*** Cut start [16:19:31]*** Purtial cut [16:19:31]*** Stage 1: CUTSNS_PIN = 1 [16:19:33]Read from MH i2c: 01 [16:19:33]MH_I2C_Read... [16:19:33]*** Stop cut motor [16:19:33]*** Cut end [16:19:33]Read from MH i2c: 01 07 00 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: 01 07 00 63 9D 00 00 00 00 00 FF 0F 15 [16:19:33]process_action close_receipt done [16:19:33]requested_data is exist [16:19:33]produce_requested_data [16:19:33]requested_item fm.sn is exist - process it [16:19:33]wFMCommunicate request_size=4 [16:19:33]MH_SAM_APDU [16:19:33]CAPDU: 80 11 00 00 [16:19:33]Write to MH i2c: E2 08 00 64 9D 80 11 00 00 00 00 00 00 7B [16:19:33]Write i2c OK [16:19:33]MH_I2C_Read... [16:19:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:33]Read from MH i2c: E2 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: E2 17 00 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: E2 17 00 64 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C8 [16:19:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:19:33]wFMCommunicate OK [16:19:33]requested_item fd.num is exist - process it [16:19:33]SAM_PROTO_GetFieldsCounters [16:19:33]wFMCommunicate request_size=4 [16:19:33]MH_SAM_APDU [16:19:33]CAPDU: 80 13 00 00 [16:19:33]Write to MH i2c: E2 08 00 65 9D 80 13 00 00 00 00 00 00 7E [16:19:33]Write i2c OK [16:19:33]MH_I2C_Read... [16:19:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:19:33]Read from MH i2c: E2 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: E2 62 00 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: E2 62 00 65 9D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 AB FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 FD [16:19: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 AB FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:19:33]wFMCommunicate OK [16:19:33]SAM_PROTO_GetFieldsCounters done [16:19:33]requested_item shift.num is exist - process it [16:19:33]requested_item shift.opened is exist - process it [16:19:33]req_shift_opened [16:19:33]FM_GetShiftState [16:19:33]SAM_PROTO_GetShiftState [16:19:33]wFMCommunicate request_size=4 [16:19:33]MH_SAM_APDU [16:19:33]CAPDU: 80 13 01 00 [16:19:33]Write to MH i2c: E2 08 00 66 9D 80 13 01 00 00 00 00 00 80 [16:19:33]Write i2c OK [16:19:33]MH_I2C_Read... [16:19:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:33]Read from MH i2c: E2 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: E2 0E 00 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: E2 0E 00 66 9D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 BD [16:19:33]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:19:33]wFMCommunicate OK [16:19:33]SAM_PROTO_GetShiftState done [16:19:33]FM_GetShiftState done [16:19:33]req_shift_opened done [16:19:33]requested_item shift.open_date is exist - process it [16:19:33]req_shift_open_date [16:19:33]req_shift_open_date done [16:19:33]produce_requested_data done [16:19:33]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260779,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [16:19:33]process_action_free close_receipt [16:19:33]json_value_free [16:19:33]json_value_free done [16:19:33]process_json_proto returns [16:19:33]Send response to host [16:19:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260779,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [16:19:33]free response buf [16:19:33]execute_script done [16:19:33]execute_script returns [16:19:33]free content buf [16:19:33]Sock 7.Close socket [16:19:33]Sock 7.Thread stoped [16:19:35]OFD Sender: No OFD packet to send [16:19:40]OFD Sender: No OFD packet to send [16:19:45]OFD Sender: No OFD packet to send [16:19:48]accept exits with 9 [16:19:48]New connection [16:19:48]New thread 3066473828 created [16:19:48]Thread 3066617188 joined [16:19:48]Waiting for new connection... [16:19:48] Sock 9.Parse request [16:19:48]Sock 9.Check first char [16:19:48]Sock 9.First char is OK [16:19:48]request: POST /json_proto HTTP/1.0 [16:19:48]Method: POST [16:19:48]URL: /json_proto [16:19:48]Method is POST - this is cgi request [16:19:48]url: /json_proto [16:19:48]query_string will be loaded in cgi processing [16:19:48]execute_cgi json_proto POST (null) [16:19:48]execute_cgi path=json_proto method=POST [16:19:48]POST find Content-Length [16:19:48]Host: 172.17.55.133:8080 [16:19:48]Content-Length: 793 [16:19:48]Content-Type: application/json [16:19:48] [16:19:48]POST finish read [16:19:48]Found Content-Length = 793 [16:19:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 29.500, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68807", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:48]execute_script... [16:19: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)1036331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 29.500, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68807", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:48]POST & json_proto [16:19:48]process_json_proto [16:19:48]json parsed OK: [16:19:48]protocol is kg_v1.0 [16:19:48]action value=close_receipt [16:19:48]process_action close_receipt [16:19:48]cmd_close_receipt [16:19:48]MH_GetDate [16:19:48]Write to MH i2c: F0 00 00 67 9D F3 [16:19:48]Write i2c OK [16:19:48]MH_I2C_Read... [16:19:48]Read from MH i2c: F0 [16:19:48]MH_I2C_Read... [16:19:48]Read from MH i2c: F0 09 00 [16:19:48]MH_I2C_Read... [16:19:48]Read from MH i2c: F0 09 00 67 9D 00 29 1F C2 66 34 48 D8 65 25 [16:19:48]GetLastDocTimeStamp 1723997973 [16:19:48]current date 1723997993 [16:19:48]FM_GetShiftState [16:19:48]SAM_PROTO_GetShiftState [16:19:48]wFMCommunicate request_size=4 [16:19:48]MH_SAM_APDU [16:19:48]CAPDU: 80 13 01 00 [16:19:48]Write to MH i2c: E2 08 00 68 9D 80 13 01 00 00 00 00 00 82 [16:19:48]Write i2c OK [16:19:48]MH_I2C_Read... [16:19:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:48]Read from MH i2c: E2 [16:19:48]MH_I2C_Read... [16:19:48]Read from MH i2c: E2 0E 00 [16:19:48]MH_I2C_Read... [16:19:48]Read from MH i2c: E2 0E 00 68 9D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 BF [16:19:48]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:19:48]wFMCommunicate OK [16:19:48]SAM_PROTO_GetShiftState done [16:19:48]FM_GetShiftState done [16:19:48]opened in 1723940556 [16:19:48]opened+sec_in_day 1724026956 [16:19:48]quantity*price = 0 [16:19:48]sum+1 = 1 [16:19:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 338 18.08.2024 16:19 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: Топливная Карта 68807 ФМ: 0000000000871820 ФД: 260780 ФПД: 71702715305010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T161954&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260780&fm=71702715305010&tin=02508201610067®Number=0000000000091865&sum=0 [16:19:49]StoreToDocumentArchive [16:19:49]shift 449 fd 260780 [16:19:49]save to /storage/0449/doc_00260780 [16:19:49]save last doc name /storage/0449/doc_00260780 to /storage/kkm_last_doc_name [16:19:49]save OK [16:19:49]Clear old archive folders... [16:19:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:19:49]tlvbuf is 0036EDB0 [16:19:49]SAM_PROTO_ClearQueue [16:19:49]wFMCommunicate request_size=4 [16:19:49]MH_SAM_APDU [16:19:49]CAPDU: 80 09 00 00 [16:19:49]Write to MH i2c: E2 08 00 75 9D 80 09 00 00 00 00 00 00 84 [16:19:49]Write i2c OK [16:19:49]MH_I2C_Read... [16:19:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:19:49]Read from MH i2c: E2 [16:19:49]MH_I2C_Read... [16:19:49]Read from MH i2c: E2 03 00 [16:19:49]MH_I2C_Read... [16:19:49]Read from MH i2c: E2 03 00 75 9D 00 90 00 86 [16:19:49]RAPDU: 90 00 [16:19:49]wFMCommunicate OK [16:19:49]SAM_PROTO_ClearQueue done [16:19:49]KKMCreateOFDPacket [16:19:49]OFDProtocolAddRootSTLVToBuf [16:19:49]FM_MakeSignedData [16:19:49]FM_MakeSignedData [16:19:49]SAM_PROTO_SignData [16:19:49]wFMCommunicate request_size=4 [16:19:49]MH_SAM_APDU [16:19:49]CAPDU: 80 0D 01 02 [16:19:49]Write to MH i2c: E2 08 00 76 9D 80 0D 01 02 00 00 00 00 8C [16:19:49]Write i2c OK [16:19:49]MH_I2C_Read... [16:19:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:19:49]Read from MH i2c: E2 [16:19:49]MH_I2C_Read... [16:19:49]Read from MH i2c: E2 03 00 [16:19:49]MH_I2C_Read... [16:19:49]Read from MH i2c: E2 03 00 76 9D 00 90 00 87 [16:19:49]RAPDU: 90 00 [16:19:49]wFMCommunicate OK [16:19:49]wFMCommunicate request_size=255 [16:19:49]MH_SAM_APDU [16:19:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 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 01 00 00 F4 03 04 00 2A 1F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AC FA 03 00 35 04 06 00 41 [16:19:49]Write to MH i2c: E2 02 01 77 9D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 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 01 00 00 F4 03 04 00 2A 1F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AC FA 03 00 35 04 06 00 41 00 00 B3 [16:19:49]Write i2c OK [16:19:49]MH_I2C_Read... [16:19:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:49]Read from MH i2c: E2 [16:19:49]MH_I2C_Read... [16:19:49]Read from MH i2c: E2 03 00 [16:19:49]MH_I2C_Read... [16:19:49]Read from MH i2c: E2 03 00 77 9D 00 90 00 88 [16:19:49]RAPDU: 90 00 [16:19:49]wFMCommunicate OK [16:19:49]wFMCommunicate request_size=10 [16:19:49]MH_SAM_APDU [16:19:49]CAPDU: 80 0D 02 02 05 36 96 E0 0C 32 [16:19:49]Write to MH i2c: E2 0D 00 78 9D 80 0D 02 02 05 00 36 96 E0 0C 32 00 00 83 [16:19:49]Write i2c OK [16:19:49]MH_I2C_Read... [16:19:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:49]Read from MH i2c: E2 [16:19:49]MH_I2C_Read... [16:19:49]Read from MH i2c: E2 03 00 [16:19:49]MH_I2C_Read... [16:19:49]Read from MH i2c: E2 03 00 78 9D 00 90 00 89 [16:19:49]RAPDU: 90 00 [16:19:49]wFMCommunicate OK [16:19:49]wFMCommunicate request_size=4 [16:19:49]MH_SAM_APDU [16:19:49]CAPDU: 80 0D 03 02 [16:19:49]Write to MH i2c: E2 08 00 79 9D 80 0D 03 02 00 00 00 00 91 [16:19:49]Write i2c OK [16:19:49]MH_I2C_Read... [16:19:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:19:49]Read from MH i2c: E2 [16:19:49]MH_I2C_Read... [16:19:49]Read from MH i2c: E2 0B 00 [16:19:49]MH_I2C_Read... [16:19:49]Read from MH i2c: E2 0B 00 79 9D 00 CE F6 9A 34 99 DD 36 51 90 00 21 [16:19:49]RAPDU: CE F6 9A 34 99 DD 36 51 90 00 [16:19:49]wFMCommunicate OK [16:19:49]SAM_PROTO_SignData done [16:19:49]FM_MakeSignedData done [16:19:49]CreateOFDProtocolMessage [16:19:49]wFMCommunicate request_size=4 [16:19:49]MH_SAM_APDU [16:19:49]CAPDU: 80 11 00 00 [16:19:49]Write to MH i2c: E2 08 00 7A 9D 80 11 00 00 00 00 00 00 91 [16:19:49]Write i2c OK [16:19:49]MH_I2C_Read... [16:19:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:49]Read from MH i2c: E2 [16:19:49]MH_I2C_Read... [16:19:49]Read from MH i2c: E2 17 00 [16:19:49]MH_I2C_Read... [16:19:49]Read from MH i2c: E2 17 00 7A 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 DE [16:19:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:19:49]wFMCommunicate OK [16:19:49]CreateOFDProtocolMessage done [16:19:49]OFDSenderStorePacket 260780 [16:19:49]StoreOFDPacket docnum=260780 [16:19:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 52 39 07 01 35 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 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 01 00 00 F4 03 04 00 2A 1F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AC FA 03 00 35 04 06 00 41 36 96 E0 0C 32 CE F6 9A 34 99 DD 36 51 [16:19:49]CheckFolder [16:19:49]dirname=/storage/ofd_packets [16:19:49]CheckFolder done [16:19:49]ProducePacketName [16:19:49]name=ofd_packets/00260780 [16:19:49]NVStorageSaveData ofd_packets/00260780 [16:19:49]File name is /storage/ofd_packets/00260780 [16:19:49]Write 301 bytes [16:19:49]NVStorageSaveData done [16:19:49]OFDSenderStorePacket done [16:19:49]KKMCreateOFDPacket done [16:19:49]NVStorageSaveData kkm_last_timestamp [16:19:49]File name is /storage/kkm_last_timestamp [16:19:49]Write 4 bytes [16:19:49]NVStorageSaveData done [16:19:49]ExternCall_PrintAddStr [16:19:49]wPrintStart [16:19:49]Write to MH i2c: 01 00 00 7B 9D 18 [16:19:49]Write i2c OK [16:19:49]MH_I2C_Read... [16:19:49]Read from MH i2c: 01 [16:19:49]MH_I2C_Read... [16:19:49]Read from MH i2c: 01 07 00 [16:19:49]MH_I2C_Read... [16:19:49]Read from MH i2c: 01 07 00 7B 9D 00 00 00 00 00 FF 0F 2D [16:19:49]RasterBufferAndPrint [16:19:49]line Счет N : (1)1036331 [16:19:49]line ИНН: 02508201610067 [16:19:49]line Контрольно-Кассовый Чек [16:19:49]line ПРОДАЖА [16:19:49]line ТРК (МРК, ГНК) : 12 [16:19:49]line Товар: 2710124130 [16:19:49]line Аи-92-К-5 [16:19:49]line 29.500 * 0.00 [16:19:49]line = 0.00 [16:19:49]line НДС 12% НСП 1% [16:19:49]line > о реализуемом товаре [16:19:49]line ИТОГО: 0.00 [16:19:49]line НСП 1% : 0.00 [16:19:49]line НДС 12% : 0.00 [16:19:49]line Наличными: 0.00 [16:19:49]line Безнал.: 0.00 [16:19:49]line Место: АЗС № 94 "Партнер Нефть" [16:19:49]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [16:19:49]line СНО: Общий режим [16:19:49]line Чек 338 18.08.2024 16:19 [16:19:49]line Смена: 449 ФФД: 1.0 [16:19:49]line ЗНМ: 0300000099 [16:19:49]line РНМ: 0000000000091865 [16:19:49]line Версия ККМ: 001 [16:19:49]line Талоны: Топливная Карта [16:19:49]line 68807 [16:19:50]line ФМ: 0000000000871820 [16:19:50]line ФД: 260780 [16:19:50]line ФПД: 71702715305010 [16:19:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T161954&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260780&fm=71702715305010&tin=02508201610067®Number=0000000000091865&sum=0 [16:19:50]written 0, free lines is 4095 [16:19:50]OFD Sender: Processing packet 260780 [packets to send 192, broken 191] [16:19:50]ProducePacketName [16:19:50]name=ofd_packets/00260780 [16:19:50]OFD Sender: To server: pG, [16:19:50]CommunicateWithHost lk.salyk.kg:30040 [16:19:50]ConnectInit lk.salyk.kg [16:19:50]Connected sock=10 [16:19: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 30 0F 01 00 00 52 39 07 01 35 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 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 01 00 00 F4 03 04 00 2A 1F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AC FA 03 00 35 04 06 00 41 36 96 E0 0C 32 CE F6 9A 34 99 DD 36 51 [16:19: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 30 4F 00 00 00 DB EA 47 00 BD 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AC FA 03 00 F4 03 04 00 7E C8 C1 66 B6 04 01 00 00 85 BF A7 0D 53 7E 84 4A [16:19:50]CommunicateWithHost err = 0 [16:19:50]CheckOFDResponse [16:19:50]1017 (14) - 77093643461234 [16:19:50]1041 (16) - 0000000000871820 [16:19:50]1040 (4) - 260780 [16:19:50]1012 (4) - 18.08.2024 10:10 [16:19:50]1206 (1) - 0 [16:19:50]OFD Sender: Remove packet 260780 [16:19:50]ProducePacketName [16:19:50]name=ofd_packets/00260780 [16:19:50]NVStorageDeleteData [16:19:50]Write to MH i2c: 01 00 00 A5 9D 42 [16:19:50]Write i2c OK [16:19:50]MH_I2C_Read... [16:19:50]Read from MH i2c: 01 [16:19:50]MH_I2C_Read... [16:19:50]Read from MH i2c: 01 07 00 [16:19:50]MH_I2C_Read... [16:19:50]Read from MH i2c: 01 07 00 A5 9D 00 00 00 00 00 8E 0C E3 [16:19:50]RasterBufferAndPrint [16:19:50]line [16:19:50]line [16:19:50]line [16:19:50]line [16:19:50]line [16:19:50]written 0, free lines is 3219 [16:19:50]MH_Cut [16:19:50]Write to MH i2c: D1 01 00 AC 9D 01 1B [16:19:50]Write i2c OK [16:19:50]MH_I2C_Read... [16:19:50]Read from MH i2c: D1 [16:19:50]MH_I2C_Read... [16:19:50]Read from MH i2c: D1 01 00 [16:19:50]MH_I2C_Read... [16:19:50]Read from MH i2c: D1 01 00 AC 9D 00 1A [16:19:50]Write to MH i2c: 01 00 00 AD 9D 4A [16:19:50]Write i2c OK [16:19:50]MH_I2C_Read... [16:19:50]OFD Sender: No OFD packet to send [16:19:51]*** Cut start [16:19:51]*** Purtial cut [16:19:51]*** Stage 1: CUTSNS_PIN = 1 [16:19:53]Read from MH i2c: 01 [16:19:53]MH_I2C_Read... [16:19:53]*** Stop cut motor [16:19:53]*** Cut end [16:19:53]Read from MH i2c: 01 07 00 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: 01 07 00 AD 9D 00 00 00 00 00 FF 0F 5F [16:19:53]process_action close_receipt done [16:19:53]requested_data is exist [16:19:53]produce_requested_data [16:19:53]requested_item fm.sn is exist - process it [16:19:53]wFMCommunicate request_size=4 [16:19:53]MH_SAM_APDU [16:19:53]CAPDU: 80 11 00 00 [16:19:53]Write to MH i2c: E2 08 00 AE 9D 80 11 00 00 00 00 00 00 C5 [16:19:53]Write i2c OK [16:19:53]MH_I2C_Read... [16:19:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:53]Read from MH i2c: E2 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: E2 17 00 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: E2 17 00 AE 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 12 [16:19:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:19:53]wFMCommunicate OK [16:19:53]requested_item fd.num is exist - process it [16:19:53]SAM_PROTO_GetFieldsCounters [16:19:53]wFMCommunicate request_size=4 [16:19:53]MH_SAM_APDU [16:19:53]CAPDU: 80 13 00 00 [16:19:53]Write to MH i2c: E2 08 00 AF 9D 80 13 00 00 00 00 00 00 C8 [16:19:53]Write i2c OK [16:19:53]MH_I2C_Read... [16:19:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:19:53]Read from MH i2c: E2 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: E2 62 00 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: E2 62 00 AF 9D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 AC FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 4B [16:19: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 AC FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:19:53]wFMCommunicate OK [16:19:53]SAM_PROTO_GetFieldsCounters done [16:19:53]requested_item shift.num is exist - process it [16:19:53]requested_item shift.opened is exist - process it [16:19:53]req_shift_opened [16:19:53]FM_GetShiftState [16:19:53]SAM_PROTO_GetShiftState [16:19:53]wFMCommunicate request_size=4 [16:19:53]MH_SAM_APDU [16:19:53]CAPDU: 80 13 01 00 [16:19:53]Write to MH i2c: E2 08 00 B0 9D 80 13 01 00 00 00 00 00 CA [16:19:53]Write i2c OK [16:19:53]MH_I2C_Read... [16:19:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:53]Read from MH i2c: E2 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: E2 0E 00 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: E2 0E 00 B0 9D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 07 [16:19:53]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:19:53]wFMCommunicate OK [16:19:53]SAM_PROTO_GetShiftState done [16:19:53]FM_GetShiftState done [16:19:53]req_shift_opened done [16:19:53]requested_item shift.open_date is exist - process it [16:19:53]req_shift_open_date [16:19:53]req_shift_open_date done [16:19:53]produce_requested_data done [16:19:53]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260780,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [16:19:53]process_action_free close_receipt [16:19:53]json_value_free [16:19:53]json_value_free done [16:19:53]process_json_proto returns [16:19:53]Send response to host [16:19:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260780,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [16:19:53]free response buf [16:19:53]execute_script done [16:19:53]execute_script returns [16:19:53]free content buf [16:19:53]Sock 9.Close socket [16:19:53]Sock 9.Thread stoped [16:19:55]OFD Sender: No OFD packet to send [16:20:00]OFD Sender: No OFD packet to send [16:20:05]OFD Sender: No OFD packet to send [16:20:10]OFD Sender: No OFD packet to send [16:20:15]OFD Sender: No OFD packet to send [16:20:20]OFD Sender: No OFD packet to send [16:20:25]OFD Sender: No OFD packet to send [16:20:30]OFD Sender: No OFD packet to send [16:20:35]OFD Sender: No OFD packet to send [16:20:40]OFD Sender: No OFD packet to send [16:20:45]OFD Sender: No OFD packet to send [16:20:50]OFD Sender: No OFD packet to send [16:20:55]OFD Sender: No OFD packet to send [16:21:00]OFD Sender: No OFD packet to send [16:21:05]OFD Sender: No OFD packet to send [16:21:10]OFD Sender: No OFD packet to send [16:21:11]accept exits with 7 [16:21:11]New connection [16:21:11]New thread 3066617188 created [16:21:11]Thread 3066473828 joined [16:21:11]Waiting for new connection... [16:21:11] Sock 7.Parse request [16:21:11]Sock 7.Check first char [16:21:11]Sock 7.First char is OK [16:21:11]request: POST /json_proto HTTP/1.0 [16:21:11]Method: POST [16:21:11]URL: /json_proto [16:21:11]Method is POST - this is cgi request [16:21:11]url: /json_proto [16:21:11]query_string will be loaded in cgi processing [16:21:11]execute_cgi json_proto POST (null) [16:21:11]execute_cgi path=json_proto method=POST [16:21:11]POST find Content-Length [16:21:11]Host: 172.17.55.133:8080 [16:21:11]Content-Length: 678 [16:21:11]Content-Type: application/json [16:21:11] [16:21:11]POST finish read [16:21:11]Found Content-Length = 678 [16:21:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036333", "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" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:11]execute_script... [16:21: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)1036333", "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" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:11]POST & json_proto [16:21:11]process_json_proto [16:21:11]json parsed OK: [16:21:11]protocol is kg_v1.0 [16:21:11]action value=close_receipt [16:21:11]process_action close_receipt [16:21:11]cmd_close_receipt [16:21:11]MH_GetDate [16:21:11]Write to MH i2c: F0 00 00 B1 9D 3D [16:21:11]Write i2c OK [16:21:11]MH_I2C_Read... [16:21:11]Read from MH i2c: F0 [16:21:11]MH_I2C_Read... [16:21:11]Read from MH i2c: F0 09 00 [16:21:11]MH_I2C_Read... [16:21:11]Read from MH i2c: F0 09 00 B1 9D 00 7D 1F C2 66 34 48 D8 65 C3 [16:21:11]GetLastDocTimeStamp 1723997994 [16:21:11]current date 1723998077 [16:21:11]FM_GetShiftState [16:21:11]SAM_PROTO_GetShiftState [16:21:11]wFMCommunicate request_size=4 [16:21:11]MH_SAM_APDU [16:21:11]CAPDU: 80 13 01 00 [16:21:11]Write to MH i2c: E2 08 00 B2 9D 80 13 01 00 00 00 00 00 CC [16:21:11]Write i2c OK [16:21:11]MH_I2C_Read... [16:21:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:11]Read from MH i2c: E2 [16:21:11]MH_I2C_Read... [16:21:11]Read from MH i2c: E2 0E 00 [16:21:11]MH_I2C_Read... [16:21:11]Read from MH i2c: E2 0E 00 B2 9D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 09 [16:21:11]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:21:11]wFMCommunicate OK [16:21:11]SAM_PROTO_GetShiftState done [16:21:11]FM_GetShiftState done [16:21:11]opened in 1723940556 [16:21:11]opened+sec_in_day 1724026956 [16:21:11]quantity*price = 40068 [16:21:11]sum+1 = 40069 [16:21:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 339 18.08.2024 16:21 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260781 ФПД: 103728602149421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T162117&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260781&fm=103728602149421&tin=02508201610067®Number=0000000000091865&sum=40000 [16:21:13]StoreToDocumentArchive [16:21:13]shift 449 fd 260781 [16:21:13]save to /storage/0449/doc_00260781 [16:21:13]save last doc name /storage/0449/doc_00260781 to /storage/kkm_last_doc_name [16:21:13]save OK [16:21:13]Clear old archive folders... [16:21:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:21:13]tlvbuf is 00433050 [16:21:13]SAM_PROTO_ClearQueue [16:21:13]wFMCommunicate request_size=4 [16:21:13]MH_SAM_APDU [16:21:13]CAPDU: 80 09 00 00 [16:21:13]Write to MH i2c: E2 08 00 BF 9D 80 09 00 00 00 00 00 00 CE [16:21:13]Write i2c OK [16:21:13]MH_I2C_Read... [16:21:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:13]Read from MH i2c: E2 [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: E2 03 00 [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: E2 03 00 BF 9D 00 90 00 D0 [16:21:13]RAPDU: 90 00 [16:21:13]wFMCommunicate OK [16:21:13]SAM_PROTO_ClearQueue done [16:21:13]KKMCreateOFDPacket [16:21:13]OFDProtocolAddRootSTLVToBuf [16:21:13]FM_MakeSignedData [16:21:13]FM_MakeSignedData [16:21:13]SAM_PROTO_SignData [16:21:13]wFMCommunicate request_size=4 [16:21:13]MH_SAM_APDU [16:21:13]CAPDU: 80 0D 01 02 [16:21:13]Write to MH i2c: E2 08 00 C0 9D 80 0D 01 02 00 00 00 00 D6 [16:21:13]Write i2c OK [16:21:13]MH_I2C_Read... [16:21:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:13]Read from MH i2c: E2 [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: E2 03 00 [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: E2 03 00 C0 9D 00 90 00 D1 [16:21:13]RAPDU: 90 00 [16:21:13]wFMCommunicate OK [16:21:13]wFMCommunicate request_size=255 [16:21:13]MH_SAM_APDU [16:21: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 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 53 01 00 00 F4 03 04 00 7D 1F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AD FA 03 00 35 04 06 00 5E [16:21:13]Write to MH i2c: E2 02 01 C1 9D 80 0D 02 02 FA 00 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 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 53 01 00 00 F4 03 04 00 7D 1F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AD FA 03 00 35 04 06 00 5E 00 00 F4 [16:21:13]Write i2c OK [16:21:13]MH_I2C_Read... [16:21:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:13]Read from MH i2c: E2 [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: E2 03 00 [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: E2 03 00 C1 9D 00 90 00 D2 [16:21:13]RAPDU: 90 00 [16:21:13]wFMCommunicate OK [16:21:13]wFMCommunicate request_size=10 [16:21:13]MH_SAM_APDU [16:21:13]CAPDU: 80 0D 02 02 05 57 32 7B F2 2D [16:21:13]Write to MH i2c: E2 0D 00 C2 9D 80 0D 02 02 05 00 57 32 7B F2 2D 00 00 06 [16:21:13]Write i2c OK [16:21:13]MH_I2C_Read... [16:21:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:13]Read from MH i2c: E2 [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: E2 03 00 [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: E2 03 00 C2 9D 00 90 00 D3 [16:21:13]RAPDU: 90 00 [16:21:13]wFMCommunicate OK [16:21:13]wFMCommunicate request_size=4 [16:21:13]MH_SAM_APDU [16:21:13]CAPDU: 80 0D 03 02 [16:21:13]Write to MH i2c: E2 08 00 C3 9D 80 0D 03 02 00 00 00 00 DB [16:21:13]Write i2c OK [16:21:13]MH_I2C_Read... [16:21:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:13]Read from MH i2c: E2 [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: E2 0B 00 [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: E2 0B 00 C3 9D 00 8A D6 51 64 A6 78 81 0D 90 00 9D [16:21:13]RAPDU: 8A D6 51 64 A6 78 81 0D 90 00 [16:21:13]wFMCommunicate OK [16:21:13]SAM_PROTO_SignData done [16:21:13]FM_MakeSignedData done [16:21:13]CreateOFDProtocolMessage [16:21:13]wFMCommunicate request_size=4 [16:21:13]MH_SAM_APDU [16:21:13]CAPDU: 80 11 00 00 [16:21:13]Write to MH i2c: E2 08 00 C4 9D 80 11 00 00 00 00 00 00 DB [16:21:13]Write i2c OK [16:21:13]MH_I2C_Read... [16:21:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:13]Read from MH i2c: E2 [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: E2 17 00 [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: E2 17 00 C4 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 28 [16:21:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:21:13]wFMCommunicate OK [16:21:13]CreateOFDProtocolMessage done [16:21:13]OFDSenderStorePacket 260781 [16:21:13]StoreOFDPacket docnum=260781 [16:21:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 A9 F4 07 01 FC A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 53 01 00 00 F4 03 04 00 7D 1F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AD FA 03 00 35 04 06 00 5E 57 32 7B F2 2D 8A D6 51 64 A6 78 81 0D [16:21:13]CheckFolder [16:21:13]dirname=/storage/ofd_packets [16:21:13]CheckFolder done [16:21:13]ProducePacketName [16:21:13]name=ofd_packets/00260781 [16:21:13]NVStorageSaveData ofd_packets/00260781 [16:21:13]File name is /storage/ofd_packets/00260781 [16:21:13]Write 301 bytes [16:21:13]NVStorageSaveData done [16:21:13]OFDSenderStorePacket done [16:21:13]KKMCreateOFDPacket done [16:21:13]NVStorageSaveData kkm_last_timestamp [16:21:13]File name is /storage/kkm_last_timestamp [16:21:13]Write 4 bytes [16:21:13]NVStorageSaveData done [16:21:13]ExternCall_PrintAddStr [16:21:13]wPrintStart [16:21:13]Write to MH i2c: 01 00 00 C5 9D 62 [16:21:13]Write i2c OK [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: 01 [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: 01 07 00 [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: 01 07 00 C5 9D 00 00 00 00 00 FF 0F 77 [16:21:13]RasterBufferAndPrint [16:21:13]line Счет N : (1)1036333 [16:21:13]line ИНН: 02508201610067 [16:21:13]line Контрольно-Кассовый Чек [16:21:13]line ПРОДАЖА [16:21:13]line ТРК (МРК, ГНК) : 13 [16:21:13]line Товар: 2710124500 [16:21:13]line Аи-95-К-5 [16:21:13]line 5.400 * 74.20 [16:21:13]line = 400.68 [16:21:13]line НДС 12% НСП 1% [16:21:13]line > о реализуемом товаре [16:21:13]line ОКРУГЛЕНИЕ: -0.68 [16:21:13]line ИТОГО: 400.00 [16:21:13]line Внесено: 400.00 [16:21:13]line СДАЧА: 0.00 [16:21:13]line НСП 1% : 3.55 [16:21:13]line НДС 12% : 42.55 [16:21:13]line Наличными: 400.00 [16:21:13]line Безнал.: 0.00 [16:21:13]line Место: АЗС № 94 "Партнер Нефть" [16:21:13]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [16:21:13]line СНО: Общий режим [16:21:13]line Чек 339 18.08.2024 16:21 [16:21:13]line Смена: 449 ФФД: 1.0 [16:21:13]line ЗНМ: 0300000099 [16:21:13]line РНМ: 0000000000091865 [16:21:13]line Версия ККМ: 001 [16:21:13]line ФМ: 0000000000871820 [16:21:13]line ФД: 260781 [16:21:13]line ФПД: 103728602149421 [16:21:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T162117&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260781&fm=103728602149421&tin=02508201610067®Number=0000000000091865&sum=40000 [16:21:13]written 0, free lines is 4095 [16:21:13]OFD Sender: Processing packet 260781 [packets to send 192, broken 191] [16:21:13]ProducePacketName [16:21:13]name=ofd_packets/00260781 [16:21:13]OFD Sender: To server: pG, [16:21:13]CommunicateWithHost lk.salyk.kg:30040 [16:21:13]ConnectInit lk.salyk.kg [16:21:13]Connected sock=10 [16:21: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 30 0F 01 00 00 A9 F4 07 01 FC A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 53 01 00 00 F4 03 04 00 7D 1F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AD FA 03 00 35 04 06 00 5E 57 32 7B F2 2D 8A D6 51 64 A6 78 81 0D [16:21: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 30 4F 00 00 00 EC E4 47 00 74 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 30 10 04 04 00 AD FA 03 00 F4 03 04 00 D2 C8 C1 66 B6 04 01 00 00 83 A2 2A 26 54 2B AA 2B [16:21:14]CommunicateWithHost err = 0 [16:21:14]CheckOFDResponse [16:21:14]1017 (14) - 77093643461234 [16:21:14]1041 (16) - 0000000000871820 [16:21:14]1040 (4) - 260781 [16:21:14]1012 (4) - 18.08.2024 10:11 [16:21:14]1206 (1) - 0 [16:21:14]OFD Sender: Remove packet 260781 [16:21:14]ProducePacketName [16:21:14]name=ofd_packets/00260781 [16:21:14]NVStorageDeleteData [16:21:14]Write to MH i2c: 01 00 00 F0 9D 8D [16:21:14]Write i2c OK [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: 01 [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: 01 07 00 [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: 01 07 00 F0 9D 00 00 00 00 00 70 0C 10 [16:21:14]RasterBufferAndPrint [16:21:14]line [16:21:14]line [16:21:14]line [16:21:14]line [16:21:14]line [16:21:14]written 0, free lines is 3187 [16:21:14]MH_Cut [16:21:14]Write to MH i2c: D1 01 00 F7 9D 01 66 [16:21:14]Write i2c OK [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: D1 [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: D1 01 00 [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: D1 01 00 F7 9D 00 65 [16:21:14]Write to MH i2c: 01 00 00 F8 9D 95 [16:21:14]Write i2c OK [16:21:14]MH_I2C_Read... [16:21:14]OFD Sender: No OFD packet to send [16:21:15]*** Cut start [16:21:15]*** Purtial cut [16:21:15]*** Stage 1: CUTSNS_PIN = 1 [16:21:17]Read from MH i2c: 01 [16:21:17]MH_I2C_Read... [16:21:17]*** Stop cut motor [16:21:17]*** Cut end [16:21:17]Read from MH i2c: 01 07 00 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: 01 07 00 F8 9D 00 00 00 00 00 FF 0F AA [16:21:17]process_action close_receipt done [16:21:17]requested_data is exist [16:21:17]produce_requested_data [16:21:17]requested_item fm.sn is exist - process it [16:21:17]wFMCommunicate request_size=4 [16:21:17]MH_SAM_APDU [16:21:17]CAPDU: 80 11 00 00 [16:21:17]Write to MH i2c: E2 08 00 F9 9D 80 11 00 00 00 00 00 00 10 [16:21:17]Write i2c OK [16:21:17]MH_I2C_Read... [16:21:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:17]Read from MH i2c: E2 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 17 00 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 17 00 F9 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 5D [16:21:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:21:17]wFMCommunicate OK [16:21:17]requested_item fd.num is exist - process it [16:21:17]SAM_PROTO_GetFieldsCounters [16:21:17]wFMCommunicate request_size=4 [16:21:17]MH_SAM_APDU [16:21:17]CAPDU: 80 13 00 00 [16:21:17]Write to MH i2c: E2 08 00 FA 9D 80 13 00 00 00 00 00 00 13 [16:21:17]Write i2c OK [16:21:17]MH_I2C_Read... [16:21:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:17]Read from MH i2c: E2 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 62 00 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 62 00 FA 9D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 AD FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 9A [16:21: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 AD FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:21:17]wFMCommunicate OK [16:21:17]SAM_PROTO_GetFieldsCounters done [16:21:17]requested_item shift.num is exist - process it [16:21:17]requested_item shift.opened is exist - process it [16:21:17]req_shift_opened [16:21:17]FM_GetShiftState [16:21:17]SAM_PROTO_GetShiftState [16:21:17]wFMCommunicate request_size=4 [16:21:17]MH_SAM_APDU [16:21:17]CAPDU: 80 13 01 00 [16:21:17]Write to MH i2c: E2 08 00 FB 9D 80 13 01 00 00 00 00 00 15 [16:21:17]Write i2c OK [16:21:17]MH_I2C_Read... [16:21:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:17]Read from MH i2c: E2 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 0E 00 [16:21:17]MH_I2C_Read... [16:21:17]Read from MH i2c: E2 0E 00 FB 9D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 52 [16:21:17]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:21:17]wFMCommunicate OK [16:21:17]SAM_PROTO_GetShiftState done [16:21:17]FM_GetShiftState done [16:21:17]req_shift_opened done [16:21:17]requested_item shift.open_date is exist - process it [16:21:17]req_shift_open_date [16:21:17]req_shift_open_date done [16:21:17]produce_requested_data done [16:21:17]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260781,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [16:21:17]process_action_free close_receipt [16:21:17]json_value_free [16:21:17]json_value_free done [16:21:17]process_json_proto returns [16:21:17]Send response to host [16:21:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260781,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [16:21:17]free response buf [16:21:17]execute_script done [16:21:17]execute_script returns [16:21:17]free content buf [16:21:17]Sock 7.Close socket [16:21:17]Sock 7.Thread stoped [16:21:19]OFD Sender: No OFD packet to send [16:21:24]OFD Sender: No OFD packet to send [16:21:29]OFD Sender: No OFD packet to send [16:21:34]OFD Sender: No OFD packet to send [16:21:39]OFD Sender: No OFD packet to send [16:21:44]OFD Sender: No OFD packet to send [16:21:49]OFD Sender: No OFD packet to send [16:21:54]OFD Sender: No OFD packet to send [16:21:59]OFD Sender: No OFD packet to send [16:22:04]OFD Sender: No OFD packet to send [16:22:09]OFD Sender: No OFD packet to send [16:22:14]OFD Sender: No OFD packet to send [16:22:19]OFD Sender: No OFD packet to send [16:22:24]OFD Sender: No OFD packet to send [16:22:29]OFD Sender: No OFD packet to send [16:22:34]OFD Sender: No OFD packet to send [16:22:39]OFD Sender: No OFD packet to send [16:22:44]OFD Sender: No OFD packet to send [16:22:49]OFD Sender: No OFD packet to send [16:22:54]OFD Sender: No OFD packet to send [16:22:59]OFD Sender: No OFD packet to send [16:23:04]OFD Sender: No OFD packet to send [16:23:09]OFD Sender: No OFD packet to send [16:23:14]OFD Sender: No OFD packet to send [16:23:19]OFD Sender: No OFD packet to send [16:23:24]OFD Sender: No OFD packet to send [16:23:29]OFD Sender: No OFD packet to send [16:23:34]OFD Sender: No OFD packet to send [16:23:39]OFD Sender: No OFD packet to send [16:23:44]OFD Sender: No OFD packet to send [16:23:49]OFD Sender: No OFD packet to send [16:23:54]OFD Sender: No OFD packet to send [16:23:59]OFD Sender: No OFD packet to send [16:24:04]OFD Sender: No OFD packet to send [16:24:08]accept exits with 9 [16:24:08]New connection [16:24:08]New thread 3066473828 created [16:24:08]Thread 3066617188 joined [16:24:08]Waiting for new connection... [16:24:08] Sock 9.Parse request [16:24:08]Sock 9.Check first char [16:24:08]Sock 9.First char is OK [16:24:08]request: POST /json_proto HTTP/1.0 [16:24:08]Method: POST [16:24:08]URL: /json_proto [16:24:08]Method is POST - this is cgi request [16:24:08]url: /json_proto [16:24:08]query_string will be loaded in cgi processing [16:24:08]execute_cgi json_proto POST (null) [16:24:08]execute_cgi path=json_proto method=POST [16:24:08]POST find Content-Length [16:24:08]Host: 172.17.55.133:8080 [16:24:08]Content-Length: 683 [16:24:08]Content-Type: application/json [16:24:08] [16:24:08]POST finish read [16:24:08]Found Content-Length = 683 [16:24:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036334", "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" : 74.20, "quantity" : 29.650, "sum" : 2200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:08]execute_script... [16:24: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)1036334", "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" : 74.20, "quantity" : 29.650, "sum" : 2200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:08]POST & json_proto [16:24:08]process_json_proto [16:24:08]json parsed OK: [16:24:08]protocol is kg_v1.0 [16:24:08]action value=close_receipt [16:24:08]process_action close_receipt [16:24:08]cmd_close_receipt [16:24:08]MH_GetDate [16:24:08]Write to MH i2c: F0 00 00 FC 9D 88 [16:24:08]Write i2c OK [16:24:08]MH_I2C_Read... [16:24:08]Read from MH i2c: F0 [16:24:08]MH_I2C_Read... [16:24:08]Read from MH i2c: F0 09 00 [16:24:08]MH_I2C_Read... [16:24:08]Read from MH i2c: F0 09 00 FC 9D 00 2E 20 C2 66 34 48 D8 65 C0 [16:24:08]GetLastDocTimeStamp 1723998077 [16:24:08]current date 1723998254 [16:24:08]FM_GetShiftState [16:24:08]SAM_PROTO_GetShiftState [16:24:08]wFMCommunicate request_size=4 [16:24:08]MH_SAM_APDU [16:24:08]CAPDU: 80 13 01 00 [16:24:08]Write to MH i2c: E2 08 00 FD 9D 80 13 01 00 00 00 00 00 17 [16:24:08]Write i2c OK [16:24:08]MH_I2C_Read... [16:24:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:08]Read from MH i2c: E2 [16:24:08]MH_I2C_Read... [16:24:08]Read from MH i2c: E2 0E 00 [16:24:08]MH_I2C_Read... [16:24:08]Read from MH i2c: E2 0E 00 FD 9D 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 54 [16:24:08]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:24:08]wFMCommunicate OK [16:24:08]SAM_PROTO_GetShiftState done [16:24:08]FM_GetShiftState done [16:24:08]opened in 1723940556 [16:24:08]opened+sec_in_day 1724026956 [16:24:08]quantity*price = 220003 [16:24:08]sum+1 = 220004 [16:24:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 2200.00 Внесено: 2200.00 СДАЧА: 0.00 НСП 1% : 19.47 НДС 12% : 233.63 Наличными: 2200.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 340 18.08.2024 16:24 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260782 ФПД: 82604027405513 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T162414&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260782&fm=82604027405513&tin=02508201610067®Number=0000000000091865&sum=220000 [16:24:09]StoreToDocumentArchive [16:24:09]shift 449 fd 260782 [16:24:09]save to /storage/0449/doc_00260782 [16:24:09]save last doc name /storage/0449/doc_00260782 to /storage/kkm_last_doc_name [16:24:09]save OK [16:24:09]Clear old archive folders... [16:24:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:24:09]tlvbuf is 003830A0 [16:24:09]SAM_PROTO_ClearQueue [16:24:09]wFMCommunicate request_size=4 [16:24:09]MH_SAM_APDU [16:24:09]CAPDU: 80 09 00 00 [16:24:09]Write to MH i2c: E2 08 00 0A 9E 80 09 00 00 00 00 00 00 1A [16:24:09]Write i2c OK [16:24:09]MH_I2C_Read... [16:24:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:09]Read from MH i2c: E2 [16:24:09]MH_I2C_Read... [16:24:09]Read from MH i2c: E2 03 00 [16:24:09]MH_I2C_Read... [16:24:09]Read from MH i2c: E2 03 00 0A 9E 00 90 00 1C [16:24:09]RAPDU: 90 00 [16:24:09]wFMCommunicate OK [16:24:09]SAM_PROTO_ClearQueue done [16:24:09]KKMCreateOFDPacket [16:24:09]OFDProtocolAddRootSTLVToBuf [16:24:09]FM_MakeSignedData [16:24:09]FM_MakeSignedData [16:24:09]SAM_PROTO_SignData [16:24:09]wFMCommunicate request_size=4 [16:24:09]MH_SAM_APDU [16:24:09]CAPDU: 80 0D 01 02 [16:24:09]Write to MH i2c: E2 08 00 0B 9E 80 0D 01 02 00 00 00 00 22 [16:24:09]Write i2c OK [16:24:09]MH_I2C_Read... [16:24:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:09]Read from MH i2c: E2 [16:24:09]MH_I2C_Read... [16:24:09]Read from MH i2c: E2 03 00 [16:24:09]MH_I2C_Read... [16:24:09]Read from MH i2c: E2 03 00 0B 9E 00 90 00 1D [16:24:09]RAPDU: 90 00 [16:24:09]wFMCommunicate OK [16:24:09]wFMCommunicate request_size=255 [16:24:09]MH_SAM_APDU [16:24:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 73 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 2E 20 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AE FA 03 00 35 04 06 00 4B [16:24:09]Write to MH i2c: E2 02 01 0C 9E 80 0D 02 02 FA 00 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 D2 73 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 2E 20 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AE FA 03 00 35 04 06 00 4B 00 00 8B [16:24:09]Write i2c OK [16:24:09]MH_I2C_Read... [16:24:09]OFD Sender: No OFD packet to send [16:24:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:10]Read from MH i2c: E2 [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: E2 03 00 [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: E2 03 00 0C 9E 00 90 00 1E [16:24:10]RAPDU: 90 00 [16:24:10]wFMCommunicate OK [16:24:10]wFMCommunicate request_size=10 [16:24:10]MH_SAM_APDU [16:24:10]CAPDU: 80 0D 02 02 05 20 BF B5 E4 C9 [16:24:10]Write to MH i2c: E2 0D 00 0D 9E 80 0D 02 02 05 00 20 BF B5 E4 C9 00 00 70 [16:24:10]Write i2c OK [16:24:10]MH_I2C_Read... [16:24:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:10]Read from MH i2c: E2 [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: E2 03 00 [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: E2 03 00 0D 9E 00 90 00 1F [16:24:10]RAPDU: 90 00 [16:24:10]wFMCommunicate OK [16:24:10]wFMCommunicate request_size=4 [16:24:10]MH_SAM_APDU [16:24:10]CAPDU: 80 0D 03 02 [16:24:10]Write to MH i2c: E2 08 00 0E 9E 80 0D 03 02 00 00 00 00 27 [16:24:10]Write i2c OK [16:24:10]MH_I2C_Read... [16:24:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:10]Read from MH i2c: E2 [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: E2 0B 00 [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: E2 0B 00 0E 9E 00 6C 7E 0D 3F 6F 33 6C 41 90 00 AD [16:24:10]RAPDU: 6C 7E 0D 3F 6F 33 6C 41 90 00 [16:24:10]wFMCommunicate OK [16:24:10]SAM_PROTO_SignData done [16:24:10]FM_MakeSignedData done [16:24:10]CreateOFDProtocolMessage [16:24:10]wFMCommunicate request_size=4 [16:24:10]MH_SAM_APDU [16:24:10]CAPDU: 80 11 00 00 [16:24:10]Write to MH i2c: E2 08 00 0F 9E 80 11 00 00 00 00 00 00 27 [16:24:10]Write i2c OK [16:24:10]MH_I2C_Read... [16:24:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:10]Read from MH i2c: E2 [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: E2 17 00 [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: E2 17 00 0F 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 74 [16:24:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:24:10]wFMCommunicate OK [16:24:10]CreateOFDProtocolMessage done [16:24:10]OFDSenderStorePacket 260782 [16:24:10]StoreOFDPacket docnum=260782 [16:24:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 E1 B3 07 01 3E 65 5A 03 01 00 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 D2 73 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 2E 20 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AE FA 03 00 35 04 06 00 4B 20 BF B5 E4 C9 6C 7E 0D 3F 6F 33 6C 41 [16:24:10]CheckFolder [16:24:10]dirname=/storage/ofd_packets [16:24:10]CheckFolder done [16:24:10]ProducePacketName [16:24:10]name=ofd_packets/00260782 [16:24:10]NVStorageSaveData ofd_packets/00260782 [16:24:10]File name is /storage/ofd_packets/00260782 [16:24:10]Write 301 bytes [16:24:10]NVStorageSaveData done [16:24:10]OFDSenderStorePacket done [16:24:10]KKMCreateOFDPacket done [16:24:10]NVStorageSaveData kkm_last_timestamp [16:24:10]File name is /storage/kkm_last_timestamp [16:24:10]Write 4 bytes [16:24:10]NVStorageSaveData done [16:24:10]ExternCall_PrintAddStr [16:24:10]wPrintStart [16:24:10]Write to MH i2c: 01 00 00 10 9E AE [16:24:10]Write i2c OK [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: 01 [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: 01 07 00 [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: 01 07 00 10 9E 00 00 00 00 00 FF 0F C3 [16:24:10]RasterBufferAndPrint [16:24:10]line Счет N : (1)1036334 [16:24:10]line ИНН: 02508201610067 [16:24:10]line Контрольно-Кассовый Чек [16:24:10]line ПРОДАЖА [16:24:10]line ТРК (МРК, ГНК) : 23 [16:24:10]line Товар: 2710124500 [16:24:10]line Аи-95-К-5 [16:24:10]line 29.650 * 74.20 [16:24:10]line = 2200.03 [16:24:10]line НДС 12% НСП 1% [16:24:10]line > о реализуемом товаре [16:24:10]line ОКРУГЛЕНИЕ: -0.03 [16:24:10]line ИТОГО: 2200.00 [16:24:10]line Внесено: 2200.00 [16:24:10]line СДАЧА: 0.00 [16:24:10]line НСП 1% : 19.47 [16:24:10]line НДС 12% : 233.63 [16:24:10]line Наличными: 2200.00 [16:24:10]line Безнал.: 0.00 [16:24:10]line Место: АЗС № 94 "Партнер Нефть" [16:24:10]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [16:24:10]line СНО: Общий режим [16:24:10]line Чек 340 18.08.2024 16:24 [16:24:10]line Смена: 449 ФФД: 1.0 [16:24:10]line ЗНМ: 0300000099 [16:24:10]line РНМ: 0000000000091865 [16:24:10]line Версия ККМ: 001 [16:24:10]line ФМ: 0000000000871820 [16:24:10]line ФД: 260782 [16:24:10]line ФПД: 82604027405513 [16:24:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T162414&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260782&fm=82604027405513&tin=02508201610067®Number=0000000000091865&sum=220000 [16:24:10]OFD Sender: Processing packet 260782 [packets to send 192, broken 191] [16:24:10]ProducePacketName [16:24:10]name=ofd_packets/00260782 [16:24:10]OFD Sender: To server: pG, [16:24:10]CommunicateWithHost lk.salyk.kg:30040 [16:24:10]ConnectInit lk.salyk.kg [16:24:10]written 0, free lines is 4095 [16:24:10]Connected sock=10 [16:24: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 30 0F 01 00 00 E1 B3 07 01 3E 65 5A 03 01 00 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 D2 73 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 2E 20 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AE FA 03 00 35 04 06 00 4B 20 BF B5 E4 C9 6C 7E 0D 3F 6F 33 6C 41 [16:24: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 30 4F 00 00 00 6B 47 47 00 AC 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AE FA 03 00 F4 03 04 00 82 C9 C1 66 B6 04 01 00 00 47 36 32 A4 77 63 F8 CE [16:24:10]CommunicateWithHost err = 0 [16:24:10]CheckOFDResponse [16:24:10]1017 (14) - 77093643461234 [16:24:10]1041 (16) - 0000000000871820 [16:24:10]1040 (4) - 260782 [16:24:10]1012 (4) - 18.08.2024 10:14 [16:24:10]1206 (1) - 0 [16:24:10]OFD Sender: Remove packet 260782 [16:24:10]ProducePacketName [16:24:10]name=ofd_packets/00260782 [16:24:10]NVStorageDeleteData [16:24:11]Write to MH i2c: 01 00 00 3B 9E D9 [16:24:11]Write i2c OK [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: 01 [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: 01 07 00 [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: 01 07 00 3B 9E 00 00 00 00 00 71 0C 5D [16:24:11]RasterBufferAndPrint [16:24:11]line [16:24:11]line [16:24:11]line [16:24:11]line [16:24:11]line [16:24:11]written 0, free lines is 3187 [16:24:11]MH_Cut [16:24:11]Write to MH i2c: D1 01 00 42 9E 01 B2 [16:24:11]Write i2c OK [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: D1 [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: D1 01 00 [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: D1 01 00 42 9E 00 B1 [16:24:11]Write to MH i2c: 01 00 00 43 9E E1 [16:24:11]Write i2c OK [16:24:11]MH_I2C_Read... [16:24:11]OFD Sender: No OFD packet to send [16:24:12]*** Cut start [16:24:12]*** Purtial cut [16:24:12]*** Stage 1: CUTSNS_PIN = 1 [16:24:14]Read from MH i2c: 01 [16:24:14]MH_I2C_Read... [16:24:14]*** Stop cut motor [16:24:14]*** Cut end [16:24:14]Read from MH i2c: 01 07 00 [16:24:14]MH_I2C_Read... [16:24:14]Read from MH i2c: 01 07 00 43 9E 00 00 00 00 00 FF 0F F6 [16:24:14]process_action close_receipt done [16:24:14]requested_data is exist [16:24:14]produce_requested_data [16:24:14]requested_item fm.sn is exist - process it [16:24:14]wFMCommunicate request_size=4 [16:24:14]MH_SAM_APDU [16:24:14]CAPDU: 80 11 00 00 [16:24:14]Write to MH i2c: E2 08 00 44 9E 80 11 00 00 00 00 00 00 5C [16:24:14]Write i2c OK [16:24:14]MH_I2C_Read... [16:24:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:14]Read from MH i2c: E2 [16:24:14]MH_I2C_Read... [16:24:14]Read from MH i2c: E2 17 00 [16:24:14]MH_I2C_Read... [16:24:14]Read from MH i2c: E2 17 00 44 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A9 [16:24:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:24:14]wFMCommunicate OK [16:24:14]requested_item fd.num is exist - process it [16:24:14]SAM_PROTO_GetFieldsCounters [16:24:14]wFMCommunicate request_size=4 [16:24:14]MH_SAM_APDU [16:24:14]CAPDU: 80 13 00 00 [16:24:14]Write to MH i2c: E2 08 00 45 9E 80 13 00 00 00 00 00 00 5F [16:24:14]Write i2c OK [16:24:14]MH_I2C_Read... [16:24:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:14]Read from MH i2c: E2 [16:24:14]MH_I2C_Read... [16:24:14]Read from MH i2c: E2 62 00 [16:24:14]MH_I2C_Read... [16:24:14]Read from MH i2c: E2 62 00 45 9E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 AE FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 EA [16:24: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 AE FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:24:14]wFMCommunicate OK [16:24:14]SAM_PROTO_GetFieldsCounters done [16:24:14]requested_item shift.num is exist - process it [16:24:14]requested_item shift.opened is exist - process it [16:24:14]req_shift_opened [16:24:14]FM_GetShiftState [16:24:14]SAM_PROTO_GetShiftState [16:24:14]wFMCommunicate request_size=4 [16:24:14]MH_SAM_APDU [16:24:14]CAPDU: 80 13 01 00 [16:24:14]Write to MH i2c: E2 08 00 46 9E 80 13 01 00 00 00 00 00 61 [16:24:14]Write i2c OK [16:24:14]MH_I2C_Read... [16:24:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:14]Read from MH i2c: E2 [16:24:14]MH_I2C_Read... [16:24:14]Read from MH i2c: E2 0E 00 [16:24:14]MH_I2C_Read... [16:24:14]Read from MH i2c: E2 0E 00 46 9E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 9E [16:24:14]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:24:14]wFMCommunicate OK [16:24:14]SAM_PROTO_GetShiftState done [16:24:14]FM_GetShiftState done [16:24:14]req_shift_opened done [16:24:14]requested_item shift.open_date is exist - process it [16:24:14]req_shift_open_date [16:24:14]req_shift_open_date done [16:24:14]produce_requested_data done [16:24:14]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260782,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [16:24:14]process_action_free close_receipt [16:24:14]json_value_free [16:24:14]json_value_free done [16:24:14]process_json_proto returns [16:24:14]Send response to host [16:24:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260782,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [16:24:14]free response buf [16:24:14]execute_script done [16:24:14]execute_script returns [16:24:14]free content buf [16:24:14]Sock 9.Close socket [16:24:14]Sock 9.Thread stoped [16:24:16]OFD Sender: No OFD packet to send [16:24:21]OFD Sender: No OFD packet to send [16:24:26]OFD Sender: No OFD packet to send [16:24:31]OFD Sender: No OFD packet to send [16:24:36]OFD Sender: No OFD packet to send [16:24:41]OFD Sender: No OFD packet to send [16:24:46]OFD Sender: No OFD packet to send [16:24:51]OFD Sender: No OFD packet to send [16:24:56]OFD Sender: No OFD packet to send [16:24:58]accept exits with 7 [16:24:58]New connection [16:24:58]New thread 3066617188 created [16:24:58]Thread 3066473828 joined [16:24:58]Waiting for new connection... [16:24:58] Sock 7.Parse request [16:24:58]Sock 7.Check first char [16:24:58]Sock 7.First char is OK [16:24:58]request: POST /json_proto HTTP/1.0 [16:24:58]Method: POST [16:24:58]URL: /json_proto [16:24:58]Method is POST - this is cgi request [16:24:58]url: /json_proto [16:24:58]query_string will be loaded in cgi processing [16:24:58]execute_cgi json_proto POST (null) [16:24:58]execute_cgi path=json_proto method=POST [16:24:58]POST find Content-Length [16:24:58]Host: 172.17.55.133:8080 [16:24:58]Content-Length: 683 [16:24:58]Content-Type: application/json [16:24:58] [16:24:58]POST finish read [16:24:58]Found Content-Length = 683 [16:24:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 23.600, "sum" : 1600.08, "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" ] } } [16:24:58]execute_script... [16:24: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)1036335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 23.600, "sum" : 1600.08, "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" ] } } [16:24:58]POST & json_proto [16:24:58]process_json_proto [16:24:58]json parsed OK: [16:24:58]protocol is kg_v1.0 [16:24:58]action value=close_receipt [16:24:58]process_action close_receipt [16:24:58]cmd_close_receipt [16:24:58]MH_GetDate [16:24:58]Write to MH i2c: F0 00 00 47 9E D4 [16:24:58]Write i2c OK [16:24:58]MH_I2C_Read... [16:24:58]Read from MH i2c: F0 [16:24:58]MH_I2C_Read... [16:24:58]Read from MH i2c: F0 09 00 [16:24:58]MH_I2C_Read... [16:24:58]Read from MH i2c: F0 09 00 47 9E 00 60 20 C2 66 34 48 D8 65 3E [16:24:58]GetLastDocTimeStamp 1723998254 [16:24:58]current date 1723998304 [16:24:58]FM_GetShiftState [16:24:58]SAM_PROTO_GetShiftState [16:24:58]wFMCommunicate request_size=4 [16:24:58]MH_SAM_APDU [16:24:58]CAPDU: 80 13 01 00 [16:24:58]Write to MH i2c: E2 08 00 48 9E 80 13 01 00 00 00 00 00 63 [16:24:58]Write i2c OK [16:24:58]MH_I2C_Read... [16:24:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:58]Read from MH i2c: E2 [16:24:58]MH_I2C_Read... [16:24:58]Read from MH i2c: E2 0E 00 [16:24:58]MH_I2C_Read... [16:24:58]Read from MH i2c: E2 0E 00 48 9E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A0 [16:24:58]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:24:58]wFMCommunicate OK [16:24:58]SAM_PROTO_GetShiftState done [16:24:58]FM_GetShiftState done [16:24:58]opened in 1723940556 [16:24:58]opened+sec_in_day 1724026956 [16:24:58]quantity*price = 160008 [16:24:58]sum+1 = 160009 [16:24:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.92 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 341 18.08.2024 16:25 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260783 ФПД: 211222640035034 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T162504&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260783&fm=211222640035034&tin=02508201610067®Number=0000000000091865&sum=160000 [16:25:00]StoreToDocumentArchive [16:25:00]shift 449 fd 260783 [16:25:00]save to /storage/0449/doc_00260783 [16:25:00]save last doc name /storage/0449/doc_00260783 to /storage/kkm_last_doc_name [16:25:00]save OK [16:25:00]Clear old archive folders... [16:25:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:25:00]tlvbuf is 003E2C90 [16:25:00]SAM_PROTO_ClearQueue [16:25:00]wFMCommunicate request_size=4 [16:25:00]MH_SAM_APDU [16:25:00]CAPDU: 80 09 00 00 [16:25:00]Write to MH i2c: E2 08 00 55 9E 80 09 00 00 00 00 00 00 65 [16:25:00]Write i2c OK [16:25:00]MH_I2C_Read... [16:25:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:00]Read from MH i2c: E2 [16:25:00]MH_I2C_Read... [16:25:00]Read from MH i2c: E2 03 00 [16:25:00]MH_I2C_Read... [16:25:00]Read from MH i2c: E2 03 00 55 9E 00 90 00 67 [16:25:00]RAPDU: 90 00 [16:25:00]wFMCommunicate OK [16:25:00]SAM_PROTO_ClearQueue done [16:25:00]KKMCreateOFDPacket [16:25:00]OFDProtocolAddRootSTLVToBuf [16:25:00]FM_MakeSignedData [16:25:00]FM_MakeSignedData [16:25:00]SAM_PROTO_SignData [16:25:00]wFMCommunicate request_size=4 [16:25:00]MH_SAM_APDU [16:25:00]CAPDU: 80 0D 01 02 [16:25:00]Write to MH i2c: E2 08 00 56 9E 80 0D 01 02 00 00 00 00 6D [16:25:00]Write i2c OK [16:25:00]MH_I2C_Read... [16:25:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:00]Read from MH i2c: E2 [16:25:00]MH_I2C_Read... [16:25:00]Read from MH i2c: E2 03 00 [16:25:00]MH_I2C_Read... [16:25:00]Read from MH i2c: E2 03 00 56 9E 00 90 00 68 [16:25:00]RAPDU: 90 00 [16:25:00]wFMCommunicate OK [16:25:00]wFMCommunicate request_size=255 [16:25:00]MH_SAM_APDU [16:25:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 5C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 08 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 60 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 55 01 00 00 F4 03 04 00 60 20 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AF FA 03 00 35 04 06 00 C0 [16:25:00]Write to MH i2c: E2 02 01 57 9E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 5C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 08 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 60 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 55 01 00 00 F4 03 04 00 60 20 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AF FA 03 00 35 04 06 00 C0 00 00 53 [16:25:00]Write i2c OK [16:25:00]MH_I2C_Read... [16:25:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:00]Read from MH i2c: E2 [16:25:00]MH_I2C_Read... [16:25:00]Read from MH i2c: E2 03 00 [16:25:00]MH_I2C_Read... [16:25:00]Read from MH i2c: E2 03 00 57 9E 00 90 00 69 [16:25:00]RAPDU: 90 00 [16:25:00]wFMCommunicate OK [16:25:00]wFMCommunicate request_size=10 [16:25:00]MH_SAM_APDU [16:25:00]CAPDU: 80 0D 02 02 05 1B 1A 6D 84 DA [16:25:00]Write to MH i2c: E2 0D 00 58 9E 80 0D 02 02 05 00 1B 1A 6D 84 DA 00 00 7A [16:25:00]Write i2c OK [16:25:00]MH_I2C_Read... [16:25:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:00]Read from MH i2c: E2 [16:25:00]MH_I2C_Read... [16:25:00]Read from MH i2c: E2 03 00 [16:25:00]MH_I2C_Read... [16:25:00]Read from MH i2c: E2 03 00 58 9E 00 90 00 6A [16:25:00]RAPDU: 90 00 [16:25:00]wFMCommunicate OK [16:25:00]wFMCommunicate request_size=4 [16:25:00]MH_SAM_APDU [16:25:00]CAPDU: 80 0D 03 02 [16:25:00]Write to MH i2c: E2 08 00 59 9E 80 0D 03 02 00 00 00 00 72 [16:25:00]Write i2c OK [16:25:00]MH_I2C_Read... [16:25:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:00]Read from MH i2c: E2 [16:25:00]MH_I2C_Read... [16:25:00]Read from MH i2c: E2 0B 00 [16:25:00]MH_I2C_Read... [16:25:00]Read from MH i2c: E2 0B 00 59 9E 00 21 8C D7 85 C6 7A 87 8B 90 00 CE [16:25:00]RAPDU: 21 8C D7 85 C6 7A 87 8B 90 00 [16:25:00]wFMCommunicate OK [16:25:00]SAM_PROTO_SignData done [16:25:00]FM_MakeSignedData done [16:25:00]CreateOFDProtocolMessage [16:25:00]wFMCommunicate request_size=4 [16:25:00]MH_SAM_APDU [16:25:00]CAPDU: 80 11 00 00 [16:25:00]Write to MH i2c: E2 08 00 5A 9E 80 11 00 00 00 00 00 00 72 [16:25:00]Write i2c OK [16:25:00]MH_I2C_Read... [16:25:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:00]Read from MH i2c: E2 [16:25:00]MH_I2C_Read... [16:25:00]Read from MH i2c: E2 17 00 [16:25:00]MH_I2C_Read... [16:25:00]Read from MH i2c: E2 17 00 5A 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 BF [16:25:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:25:00]wFMCommunicate OK [16:25:00]CreateOFDProtocolMessage done [16:25:00]OFDSenderStorePacket 260783 [16:25:00]StoreOFDPacket docnum=260783 [16:25:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 80 17 07 01 75 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 35 FF 03 08 00 03 30 5C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 08 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 60 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 55 01 00 00 F4 03 04 00 60 20 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AF FA 03 00 35 04 06 00 C0 1B 1A 6D 84 DA 21 8C D7 85 C6 7A 87 8B [16:25:00]CheckFolder [16:25:00]dirname=/storage/ofd_packets [16:25:00]CheckFolder done [16:25:00]ProducePacketName [16:25:00]name=ofd_packets/00260783 [16:25:00]NVStorageSaveData ofd_packets/00260783 [16:25:00]File name is /storage/ofd_packets/00260783 [16:25:00]Write 301 bytes [16:25:00]NVStorageSaveData done [16:25:00]OFDSenderStorePacket done [16:25:00]KKMCreateOFDPacket done [16:25:00]NVStorageSaveData kkm_last_timestamp [16:25:00]File name is /storage/kkm_last_timestamp [16:25:00]Write 4 bytes [16:25:00]NVStorageSaveData done [16:25:00]ExternCall_PrintAddStr [16:25:00]wPrintStart [16:25:00]Write to MH i2c: 01 00 00 5B 9E F9 [16:25:00]Write i2c OK [16:25:00]MH_I2C_Read... [16:25:00]Read from MH i2c: 01 [16:25:00]MH_I2C_Read... [16:25:00]Read from MH i2c: 01 07 00 [16:25:00]MH_I2C_Read... [16:25:00]Read from MH i2c: 01 07 00 5B 9E 00 00 00 00 00 FF 0F 0E [16:25:00]RasterBufferAndPrint [16:25:00]line Счет N : (1)1036335 [16:25:00]line ИНН: 02508201610067 [16:25:00]line Контрольно-Кассовый Чек [16:25:00]line ПРОДАЖА [16:25:00]line ТРК (МРК, ГНК) : 12 [16:25:00]line Товар: 2710124130 [16:25:00]line Аи-92-К-5 [16:25:00]line 23.600 * 67.80 [16:25:00]line = 1600.08 [16:25:00]line НДС 12% НСП 1% [16:25:00]line > о реализуемом товаре [16:25:00]line ОКРУГЛЕНИЕ: -0.08 [16:25:00]line ИТОГО: 1600.00 [16:25:00]line Внесено: 1600.00 [16:25:00]line СДАЧА: 0.00 [16:25:00]line НСП 1% : 14.16 [16:25:00]line НДС 12% : 169.92 [16:25:00]line Наличными: 1600.00 [16:25:00]line Безнал.: 0.00 [16:25:00]line Место: АЗС № 94 "Партнер Нефть" [16:25:00]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [16:25:00]line СНО: Общий режим [16:25:00]line Чек 341 18.08.2024 16:25 [16:25:00]line Смена: 449 ФФД: 1.0 [16:25:00]line ЗНМ: 0300000099 [16:25:00]line РНМ: 0000000000091865 [16:25:00]line Версия ККМ: 001 [16:25:00]line ФМ: 0000000000871820 [16:25:00]line ФД: 260783 [16:25:00]line ФПД: 211222640035034 [16:25:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T162504&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260783&fm=211222640035034&tin=02508201610067®Number=0000000000091865&sum=160000 [16:25:00]written 0, free lines is 4095 [16:25:00]OFD Sender: Processing packet 260783 [packets to send 192, broken 191] [16:25:00]ProducePacketName [16:25:00]name=ofd_packets/00260783 [16:25:00]OFD Sender: To server: pG, [16:25:00]CommunicateWithHost lk.salyk.kg:30040 [16:25:00]ConnectInit lk.salyk.kg [16:25:00]Connected sock=10 [16:25: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 30 0F 01 00 00 80 17 07 01 75 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 35 FF 03 08 00 03 30 5C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 08 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 60 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 55 01 00 00 F4 03 04 00 60 20 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AF FA 03 00 35 04 06 00 C0 1B 1A 6D 84 DA 21 8C D7 85 C6 7A 87 8B [16:25: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 30 4F 00 00 00 31 9A 47 00 0C 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 30 10 04 04 00 AF FA 03 00 F4 03 04 00 B4 C9 C1 66 B6 04 01 00 00 B8 04 AC 0C FD B7 A3 BF [16:25:00]CommunicateWithHost err = 0 [16:25:00]CheckOFDResponse [16:25:00]1017 (14) - 77093643461234 [16:25:00]1041 (16) - 0000000000871820 [16:25:00]1040 (4) - 260783 [16:25:00]1012 (4) - 18.08.2024 10:15 [16:25:00]1206 (1) - 0 [16:25:00]OFD Sender: Remove packet 260783 [16:25:00]ProducePacketName [16:25:00]name=ofd_packets/00260783 [16:25:00]NVStorageDeleteData [16:25:01]Write to MH i2c: 01 00 00 86 9E 24 [16:25:01]Write i2c OK [16:25:01]MH_I2C_Read... [16:25:01]Read from MH i2c: 01 [16:25:01]MH_I2C_Read... [16:25:01]Read from MH i2c: 01 07 00 [16:25:01]MH_I2C_Read... [16:25:01]Read from MH i2c: 01 07 00 86 9E 00 00 00 00 00 6B 0C A2 [16:25:01]RasterBufferAndPrint [16:25:01]line [16:25:01]line [16:25:01]line [16:25:01]line [16:25:01]line [16:25:01]written 0, free lines is 3183 [16:25:01]MH_Cut [16:25:01]Write to MH i2c: D1 01 00 8D 9E 01 FD [16:25:01]Write i2c OK [16:25:01]MH_I2C_Read... [16:25:01]Read from MH i2c: D1 [16:25:01]MH_I2C_Read... [16:25:01]Read from MH i2c: D1 01 00 [16:25:01]MH_I2C_Read... [16:25:01]Read from MH i2c: D1 01 00 8D 9E 00 FC [16:25:01]Write to MH i2c: 01 00 00 8E 9E 2C [16:25:01]Write i2c OK [16:25:01]MH_I2C_Read... [16:25:01]OFD Sender: No OFD packet to send [16:25:02]*** Cut start [16:25:02]*** Purtial cut [16:25:02]*** Stage 1: CUTSNS_PIN = 1 [16:25:04]Read from MH i2c: 01 [16:25:04]MH_I2C_Read... [16:25:04]*** Stop cut motor [16:25:04]*** Cut end [16:25:04]Read from MH i2c: 01 07 00 [16:25:04]MH_I2C_Read... [16:25:04]Read from MH i2c: 01 07 00 8E 9E 00 00 00 00 00 FF 0F 41 [16:25:04]process_action close_receipt done [16:25:04]requested_data is exist [16:25:04]produce_requested_data [16:25:04]requested_item fm.sn is exist - process it [16:25:04]wFMCommunicate request_size=4 [16:25:04]MH_SAM_APDU [16:25:04]CAPDU: 80 11 00 00 [16:25:04]Write to MH i2c: E2 08 00 8F 9E 80 11 00 00 00 00 00 00 A7 [16:25:04]Write i2c OK [16:25:04]MH_I2C_Read... [16:25:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:04]Read from MH i2c: E2 [16:25:04]MH_I2C_Read... [16:25:04]Read from MH i2c: E2 17 00 [16:25:04]MH_I2C_Read... [16:25:04]Read from MH i2c: E2 17 00 8F 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F4 [16:25:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:25:04]wFMCommunicate OK [16:25:04]requested_item fd.num is exist - process it [16:25:04]SAM_PROTO_GetFieldsCounters [16:25:04]wFMCommunicate request_size=4 [16:25:04]MH_SAM_APDU [16:25:04]CAPDU: 80 13 00 00 [16:25:04]Write to MH i2c: E2 08 00 90 9E 80 13 00 00 00 00 00 00 AA [16:25:04]Write i2c OK [16:25:04]MH_I2C_Read... [16:25:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:04]Read from MH i2c: E2 [16:25:04]MH_I2C_Read... [16:25:04]Read from MH i2c: E2 62 00 [16:25:04]MH_I2C_Read... [16:25:04]Read from MH i2c: E2 62 00 90 9E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 AF FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 39 [16:25: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 AF FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:25:04]wFMCommunicate OK [16:25:04]SAM_PROTO_GetFieldsCounters done [16:25:04]requested_item shift.num is exist - process it [16:25:04]requested_item shift.opened is exist - process it [16:25:04]req_shift_opened [16:25:04]FM_GetShiftState [16:25:04]SAM_PROTO_GetShiftState [16:25:04]wFMCommunicate request_size=4 [16:25:04]MH_SAM_APDU [16:25:04]CAPDU: 80 13 01 00 [16:25:04]Write to MH i2c: E2 08 00 91 9E 80 13 01 00 00 00 00 00 AC [16:25:04]Write i2c OK [16:25:04]MH_I2C_Read... [16:25:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:04]Read from MH i2c: E2 [16:25:04]MH_I2C_Read... [16:25:04]Read from MH i2c: E2 0E 00 [16:25:04]MH_I2C_Read... [16:25:04]Read from MH i2c: E2 0E 00 91 9E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E9 [16:25:04]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:25:04]wFMCommunicate OK [16:25:04]SAM_PROTO_GetShiftState done [16:25:04]FM_GetShiftState done [16:25:04]req_shift_opened done [16:25:04]requested_item shift.open_date is exist - process it [16:25:04]req_shift_open_date [16:25:04]req_shift_open_date done [16:25:04]produce_requested_data done [16:25:04]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260783,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [16:25:04]process_action_free close_receipt [16:25:04]json_value_free [16:25:04]json_value_free done [16:25:04]process_json_proto returns [16:25:04]Send response to host [16:25:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260783,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [16:25:04]free response buf [16:25:04]execute_script done [16:25:04]execute_script returns [16:25:04]free content buf [16:25:04]Sock 7.Close socket [16:25:04]Sock 7.Thread stoped [16:25:06]OFD Sender: No OFD packet to send [16:25:11]OFD Sender: No OFD packet to send [16:25:16]OFD Sender: No OFD packet to send [16:25:21]OFD Sender: No OFD packet to send [16:25:26]OFD Sender: No OFD packet to send [16:25:31]OFD Sender: No OFD packet to send [16:25:36]OFD Sender: No OFD packet to send [16:25:38]accept exits with 9 [16:25:38]New connection [16:25:38]New thread 3066473828 created [16:25:38]Thread 3066617188 joined [16:25:38]Waiting for new connection... [16:25:38] Sock 9.Parse request [16:25:38]Sock 9.Check first char [16:25:38]Sock 9.First char is OK [16:25:38]request: POST /json_proto HTTP/1.0 [16:25:38]Method: POST [16:25:38]URL: /json_proto [16:25:38]Method is POST - this is cgi request [16:25:38]url: /json_proto [16:25:38]query_string will be loaded in cgi processing [16:25:38]execute_cgi json_proto POST (null) [16:25:38]execute_cgi path=json_proto method=POST [16:25:38]POST find Content-Length [16:25:38]Host: 172.17.55.133:8080 [16:25:38]Content-Length: 809 [16:25:38]Content-Type: application/json [16:25:38] [16:25:38]POST finish read [16:25:38]Found Content-Length = 809 [16:25:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:38]execute_script... [16:25: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)1036336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:38]POST & json_proto [16:25:38]process_json_proto [16:25:38]json parsed OK: [16:25:38]protocol is kg_v1.0 [16:25:38]action value=close_receipt [16:25:38]process_action close_receipt [16:25:38]cmd_close_receipt [16:25:38]MH_GetDate [16:25:38]Write to MH i2c: F0 00 00 92 9E 1F [16:25:38]Write i2c OK [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: F0 [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: F0 09 00 [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: F0 09 00 92 9E 00 87 20 C2 66 34 48 D8 65 B0 [16:25:38]GetLastDocTimeStamp 1723998304 [16:25:38]current date 1723998343 [16:25:38]FM_GetShiftState [16:25:38]SAM_PROTO_GetShiftState [16:25:38]wFMCommunicate request_size=4 [16:25:38]MH_SAM_APDU [16:25:38]CAPDU: 80 13 01 00 [16:25:38]Write to MH i2c: E2 08 00 93 9E 80 13 01 00 00 00 00 00 AE [16:25:38]Write i2c OK [16:25:38]MH_I2C_Read... [16:25:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:38]Read from MH i2c: E2 [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: E2 0E 00 [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: E2 0E 00 93 9E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 EB [16:25:38]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:25:38]wFMCommunicate OK [16:25:38]SAM_PROTO_GetShiftState done [16:25:38]FM_GetShiftState done [16:25:38]opened in 1723940556 [16:25:38]opened+sec_in_day 1724026956 [16:25:38]quantity*price = 100050 [16:25:38]sum+1 = 100052 [16:25:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 342 18.08.2024 16:25 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260784 ФПД: 146064966522345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T162543&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260784&fm=146064966522345&tin=02508201610067®Number=0000000000091865&sum=100051 [16:25:39]StoreToDocumentArchive [16:25:39]shift 449 fd 260784 [16:25:39]save to /storage/0449/doc_00260784 [16:25:39]save last doc name /storage/0449/doc_00260784 to /storage/kkm_last_doc_name [16:25:39]save OK [16:25:39]Clear old archive folders... [16:25:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:25:39]tlvbuf is 00450F90 [16:25:39]SAM_PROTO_ClearQueue [16:25:39]wFMCommunicate request_size=4 [16:25:39]MH_SAM_APDU [16:25:39]CAPDU: 80 09 00 00 [16:25:39]Write to MH i2c: E2 08 00 A0 9E 80 09 00 00 00 00 00 00 B0 [16:25:39]Write i2c OK [16:25:39]MH_I2C_Read... [16:25:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:39]Read from MH i2c: E2 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: E2 03 00 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: E2 03 00 A0 9E 00 90 00 B2 [16:25:39]RAPDU: 90 00 [16:25:39]wFMCommunicate OK [16:25:39]SAM_PROTO_ClearQueue done [16:25:39]KKMCreateOFDPacket [16:25:39]OFDProtocolAddRootSTLVToBuf [16:25:39]FM_MakeSignedData [16:25:39]FM_MakeSignedData [16:25:39]SAM_PROTO_SignData [16:25:39]wFMCommunicate request_size=4 [16:25:39]MH_SAM_APDU [16:25:39]CAPDU: 80 0D 01 02 [16:25:39]Write to MH i2c: E2 08 00 A1 9E 80 0D 01 02 00 00 00 00 B8 [16:25:39]Write i2c OK [16:25:39]MH_I2C_Read... [16:25:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:39]Read from MH i2c: E2 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: E2 03 00 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: E2 03 00 A1 9E 00 90 00 B3 [16:25:39]RAPDU: 90 00 [16:25:39]wFMCommunicate OK [16:25:39]wFMCommunicate request_size=255 [16:25:39]MH_SAM_APDU [16:25:39]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 87 20 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B0 FA 03 00 35 04 06 00 [16:25:39]Write to MH i2c: E2 02 01 A2 9E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 87 20 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B0 FA 03 00 35 04 06 00 00 00 1D [16:25:39]Write i2c OK [16:25:39]MH_I2C_Read... [16:25:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:39]Read from MH i2c: E2 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: E2 03 00 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: E2 03 00 A2 9E 00 90 00 B4 [16:25:39]RAPDU: 90 00 [16:25:39]wFMCommunicate OK [16:25:39]wFMCommunicate request_size=11 [16:25:39]MH_SAM_APDU [16:25:39]CAPDU: 80 0D 02 02 06 84 D8 66 71 95 E9 [16:25:39]Write to MH i2c: E2 0E 00 A3 9E 80 0D 02 02 06 00 84 D8 66 71 95 E9 00 00 78 [16:25:39]Write i2c OK [16:25:39]MH_I2C_Read... [16:25:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:39]Read from MH i2c: E2 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: E2 03 00 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: E2 03 00 A3 9E 00 90 00 B5 [16:25:39]RAPDU: 90 00 [16:25:39]wFMCommunicate OK [16:25:39]wFMCommunicate request_size=4 [16:25:39]MH_SAM_APDU [16:25:39]CAPDU: 80 0D 03 02 [16:25:39]Write to MH i2c: E2 08 00 A4 9E 80 0D 03 02 00 00 00 00 BD [16:25:39]Write i2c OK [16:25:39]MH_I2C_Read... [16:25:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:39]Read from MH i2c: E2 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: E2 0B 00 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: E2 0B 00 A4 9E 00 12 F4 62 CC 21 5A 20 38 90 00 C5 [16:25:39]RAPDU: 12 F4 62 CC 21 5A 20 38 90 00 [16:25:39]wFMCommunicate OK [16:25:39]SAM_PROTO_SignData done [16:25:39]FM_MakeSignedData done [16:25:39]CreateOFDProtocolMessage [16:25:39]wFMCommunicate request_size=4 [16:25:39]MH_SAM_APDU [16:25:39]CAPDU: 80 11 00 00 [16:25:39]Write to MH i2c: E2 08 00 A5 9E 80 11 00 00 00 00 00 00 BD [16:25:39]Write i2c OK [16:25:39]MH_I2C_Read... [16:25:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:39]Read from MH i2c: E2 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: E2 17 00 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: E2 17 00 A5 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 0A [16:25:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:25:39]wFMCommunicate OK [16:25:39]CreateOFDProtocolMessage done [16:25:39]OFDSenderStorePacket 260784 [16:25:39]StoreOFDPacket docnum=260784 [16:25:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 85 76 08 01 85 90 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 87 20 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B0 FA 03 00 35 04 06 00 84 D8 66 71 95 E9 12 F4 62 CC 21 5A 20 38 [16:25:39]CheckFolder [16:25:39]dirname=/storage/ofd_packets [16:25:39]CheckFolder done [16:25:39]ProducePacketName [16:25:39]name=ofd_packets/00260784 [16:25:39]NVStorageSaveData ofd_packets/00260784 [16:25:39]File name is /storage/ofd_packets/00260784 [16:25:39]Write 302 bytes [16:25:39]NVStorageSaveData done [16:25:39]OFDSenderStorePacket done [16:25:39]KKMCreateOFDPacket done [16:25:39]NVStorageSaveData kkm_last_timestamp [16:25:39]File name is /storage/kkm_last_timestamp [16:25:39]Write 4 bytes [16:25:39]NVStorageSaveData done [16:25:39]ExternCall_PrintAddStr [16:25:39]wPrintStart [16:25:39]Write to MH i2c: 01 00 00 A6 9E 44 [16:25:39]Write i2c OK [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: 01 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: 01 07 00 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: 01 07 00 A6 9E 00 00 00 00 00 FF 0F 59 [16:25:39]RasterBufferAndPrint [16:25:39]line Счет N : (1)1036336 [16:25:39]line ИНН: 02508201610067 [16:25:39]line Контрольно-Кассовый Чек [16:25:39]line ПРОДАЖА [16:25:39]line ТРК (МРК, ГНК) : 43 [16:25:39]line Товар: 2710194210 [16:25:39]line ДТ(л)-К-4 [16:25:39]line 13.130 * 76.20 [16:25:39]line = 1000.51 [16:25:39]line НДС 12% НСП 1% [16:25:39]line > о реализуемом товаре [16:25:39]line ИТОГО: 1000.51 [16:25:39]line НСП 1% : 8.85 [16:25:39]line НДС 12% : 106.25 [16:25:39]line Наличными: 0.00 [16:25:39]line Безнал.: 1000.51 [16:25:39]line Место: АЗС № 94 "Партнер Нефть" [16:25:39]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [16:25:39]line СНО: Общий режим [16:25:39]line Чек 342 18.08.2024 16:25 [16:25:39]line Смена: 449 ФФД: 1.0 [16:25:39]line ЗНМ: 0300000099 [16:25:39]line РНМ: 0000000000091865 [16:25:39]line Версия ККМ: 001 [16:25:39]line Платежная система: O! деньги [16:25:39]line ФМ: 0000000000871820 [16:25:39]line ФД: 260784 [16:25:39]line ФПД: 146064966522345 [16:25:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T162543&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260784&fm=146064966522345&tin=02508201610067®Number=0000000000091865&sum=100051 [16:25:39]written 0, free lines is 4095 [16:25:39]OFD Sender: Processing packet 260784 [packets to send 192, broken 191] [16:25:39]ProducePacketName [16:25:39]name=ofd_packets/00260784 [16:25:39]OFD Sender: To server: pG, [16:25:39]CommunicateWithHost lk.salyk.kg:30040 [16:25:39]ConnectInit lk.salyk.kg [16:25:40]Connected sock=10 [16:25: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 30 10 01 00 00 85 76 08 01 85 90 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 87 20 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B0 FA 03 00 35 04 06 00 84 D8 66 71 95 E9 12 F4 62 CC 21 5A 20 38 [16:25: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 30 4F 00 00 00 79 95 47 00 CA 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B0 FA 03 00 F4 03 04 00 DC C9 C1 66 B6 04 01 00 00 FF 8C 4E E4 ED 5F AE 67 [16:25:40]CommunicateWithHost err = 0 [16:25:40]CheckOFDResponse [16:25:40]1017 (14) - 77093643461234 [16:25:40]1041 (16) - 0000000000871820 [16:25:40]1040 (4) - 260784 [16:25:40]1012 (4) - 18.08.2024 10:15 [16:25:40]1206 (1) - 0 [16:25:40]OFD Sender: Remove packet 260784 [16:25:40]ProducePacketName [16:25:40]name=ofd_packets/00260784 [16:25:40]NVStorageDeleteData [16:25:40]Write to MH i2c: 01 00 00 D0 9E 6E [16:25:40]Write i2c OK [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: 01 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: 01 07 00 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: 01 07 00 D0 9E 00 00 00 00 00 88 0C 09 [16:25:40]RasterBufferAndPrint [16:25:40]line [16:25:40]line [16:25:40]line [16:25:40]line [16:25:40]line [16:25:40]written 0, free lines is 3212 [16:25:40]MH_Cut [16:25:40]Write to MH i2c: D1 01 00 D7 9E 01 47 [16:25:40]Write i2c OK [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: D1 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: D1 01 00 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: D1 01 00 D7 9E 00 46 [16:25:40]Write to MH i2c: 01 00 00 D8 9E 76 [16:25:40]Write i2c OK [16:25:40]MH_I2C_Read... [16:25:40]OFD Sender: No OFD packet to send [16:25:41]*** Cut start [16:25:41]*** Purtial cut [16:25:41]*** Stage 1: CUTSNS_PIN = 1 [16:25:43]Read from MH i2c: 01 [16:25:43]MH_I2C_Read... [16:25:43]*** Stop cut motor [16:25:43]*** Cut end [16:25:43]Read from MH i2c: 01 07 00 [16:25:43]MH_I2C_Read... [16:25:43]Read from MH i2c: 01 07 00 D8 9E 00 00 00 00 00 FF 0F 8B [16:25:43]process_action close_receipt done [16:25:43]requested_data is exist [16:25:43]produce_requested_data [16:25:43]requested_item fm.sn is exist - process it [16:25:43]wFMCommunicate request_size=4 [16:25:43]MH_SAM_APDU [16:25:43]CAPDU: 80 11 00 00 [16:25:43]Write to MH i2c: E2 08 00 D9 9E 80 11 00 00 00 00 00 00 F1 [16:25:43]Write i2c OK [16:25:43]MH_I2C_Read... [16:25:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:43]Read from MH i2c: E2 [16:25:43]MH_I2C_Read... [16:25:43]Read from MH i2c: E2 17 00 [16:25:43]MH_I2C_Read... [16:25:43]Read from MH i2c: E2 17 00 D9 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 3E [16:25:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:25:43]wFMCommunicate OK [16:25:43]requested_item fd.num is exist - process it [16:25:43]SAM_PROTO_GetFieldsCounters [16:25:43]wFMCommunicate request_size=4 [16:25:43]MH_SAM_APDU [16:25:43]CAPDU: 80 13 00 00 [16:25:43]Write to MH i2c: E2 08 00 DA 9E 80 13 00 00 00 00 00 00 F4 [16:25:43]Write i2c OK [16:25:43]MH_I2C_Read... [16:25:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:43]Read from MH i2c: E2 [16:25:43]MH_I2C_Read... [16:25:43]Read from MH i2c: E2 62 00 [16:25:43]MH_I2C_Read... [16:25:43]Read from MH i2c: E2 62 00 DA 9E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B0 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 87 [16:25: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B0 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:25:43]wFMCommunicate OK [16:25:43]SAM_PROTO_GetFieldsCounters done [16:25:43]requested_item shift.num is exist - process it [16:25:43]requested_item shift.opened is exist - process it [16:25:43]req_shift_opened [16:25:43]FM_GetShiftState [16:25:43]SAM_PROTO_GetShiftState [16:25:43]wFMCommunicate request_size=4 [16:25:43]MH_SAM_APDU [16:25:43]CAPDU: 80 13 01 00 [16:25:43]Write to MH i2c: E2 08 00 DB 9E 80 13 01 00 00 00 00 00 F6 [16:25:43]Write i2c OK [16:25:43]MH_I2C_Read... [16:25:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:43]Read from MH i2c: E2 [16:25:43]MH_I2C_Read... [16:25:43]Read from MH i2c: E2 0E 00 [16:25:43]MH_I2C_Read... [16:25:43]Read from MH i2c: E2 0E 00 DB 9E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 33 [16:25:43]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:25:43]wFMCommunicate OK [16:25:43]SAM_PROTO_GetShiftState done [16:25:43]FM_GetShiftState done [16:25:43]req_shift_opened done [16:25:43]requested_item shift.open_date is exist - process it [16:25:43]req_shift_open_date [16:25:43]req_shift_open_date done [16:25:43]produce_requested_data done [16:25:43]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260784,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [16:25:43]process_action_free close_receipt [16:25:43]json_value_free [16:25:43]json_value_free done [16:25:43]process_json_proto returns [16:25:43]Send response to host [16:25:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260784,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [16:25:43]free response buf [16:25:43]execute_script done [16:25:43]execute_script returns [16:25:43]free content buf [16:25:43]Sock 9.Close socket [16:25:43]Sock 9.Thread stoped [16:25:45]OFD Sender: No OFD packet to send [16:25:50]OFD Sender: No OFD packet to send [16:25:55]OFD Sender: No OFD packet to send [16:26:00]OFD Sender: No OFD packet to send [16:26:05]OFD Sender: No OFD packet to send [16:26:10]OFD Sender: No OFD packet to send [16:26:15]OFD Sender: No OFD packet to send [16:26:20]OFD Sender: No OFD packet to send [16:26:25]OFD Sender: No OFD packet to send [16:26:30]OFD Sender: No OFD packet to send [16:26:35]OFD Sender: No OFD packet to send [16:26:40]OFD Sender: No OFD packet to send [16:26:45]OFD Sender: No OFD packet to send [16:26:50]OFD Sender: No OFD packet to send [16:26:55]OFD Sender: No OFD packet to send [16:27:00]OFD Sender: No OFD packet to send [16:27:05]OFD Sender: No OFD packet to send [16:27:09]accept exits with 7 [16:27:09]New connection [16:27:09]New thread 3066617188 created [16:27:09]Thread 3066473828 joined [16:27:09]Waiting for new connection... [16:27:09] Sock 7.Parse request [16:27:09]Sock 7.Check first char [16:27:09]Sock 7.First char is OK [16:27:09]request: POST /json_proto HTTP/1.0 [16:27:09]Method: POST [16:27:09]URL: /json_proto [16:27:09]Method is POST - this is cgi request [16:27:09]url: /json_proto [16:27:09]query_string will be loaded in cgi processing [16:27:09]execute_cgi json_proto POST (null) [16:27:09]execute_cgi path=json_proto method=POST [16:27:09]POST find Content-Length [16:27:09]Host: 172.17.55.133:8080 [16:27:09]Content-Length: 678 [16:27:09]Content-Type: application/json [16:27:09] [16:27:09]POST finish read [16:27:09]Found Content-Length = 678 [16:27:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036337", "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" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:09]execute_script... [16:27: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)1036337", "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" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:09]POST & json_proto [16:27:09]process_json_proto [16:27:09]json parsed OK: [16:27:09]protocol is kg_v1.0 [16:27:09]action value=close_receipt [16:27:09]process_action close_receipt [16:27:09]cmd_close_receipt [16:27:09]MH_GetDate [16:27:09]Write to MH i2c: F0 00 00 DC 9E 69 [16:27:09]Write i2c OK [16:27:09]MH_I2C_Read... [16:27:09]Read from MH i2c: F0 [16:27:09]MH_I2C_Read... [16:27:09]Read from MH i2c: F0 09 00 [16:27:09]MH_I2C_Read... [16:27:09]Read from MH i2c: F0 09 00 DC 9E 00 E3 20 C2 66 34 48 D8 65 56 [16:27:09]GetLastDocTimeStamp 1723998343 [16:27:09]current date 1723998435 [16:27:09]FM_GetShiftState [16:27:09]SAM_PROTO_GetShiftState [16:27:09]wFMCommunicate request_size=4 [16:27:09]MH_SAM_APDU [16:27:09]CAPDU: 80 13 01 00 [16:27:09]Write to MH i2c: E2 08 00 DD 9E 80 13 01 00 00 00 00 00 F8 [16:27:09]Write i2c OK [16:27:09]MH_I2C_Read... [16:27:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:09]Read from MH i2c: E2 [16:27:09]MH_I2C_Read... [16:27:09]Read from MH i2c: E2 0E 00 [16:27:09]MH_I2C_Read... [16:27:09]Read from MH i2c: E2 0E 00 DD 9E 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 35 [16:27:09]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:27:09]wFMCommunicate OK [16:27:09]SAM_PROTO_GetShiftState done [16:27:09]FM_GetShiftState done [16:27:09]opened in 1723940556 [16:27:09]opened+sec_in_day 1724026956 [16:27:09]quantity*price = 70044 [16:27:09]sum+1 = 70046 [16:27:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 343 18.08.2024 16:27 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260785 ФПД: 257816397917762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T162715&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260785&fm=257816397917762&tin=02508201610067®Number=0000000000091865&sum=70000 [16:27:11]StoreToDocumentArchive [16:27:11]shift 449 fd 260785 [16:27:11]save to /storage/0449/doc_00260785 [16:27:11]save last doc name /storage/0449/doc_00260785 to /storage/kkm_last_doc_name [16:27:11]save OK [16:27:11]Clear old archive folders... [16:27:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:27:11]tlvbuf is 003E2C10 [16:27:11]SAM_PROTO_ClearQueue [16:27:11]wFMCommunicate request_size=4 [16:27:11]MH_SAM_APDU [16:27:11]CAPDU: 80 09 00 00 [16:27:11]Write to MH i2c: E2 08 00 EA 9E 80 09 00 00 00 00 00 00 FA [16:27:11]Write i2c OK [16:27:11]MH_I2C_Read... [16:27:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:27:11]Read from MH i2c: E2 [16:27:11]MH_I2C_Read... [16:27:11]Read from MH i2c: E2 03 00 [16:27:11]MH_I2C_Read... [16:27:11]Read from MH i2c: E2 03 00 EA 9E 00 90 00 FC [16:27:11]RAPDU: 90 00 [16:27:11]wFMCommunicate OK [16:27:11]SAM_PROTO_ClearQueue done [16:27:11]KKMCreateOFDPacket [16:27:11]OFDProtocolAddRootSTLVToBuf [16:27:11]FM_MakeSignedData [16:27:11]FM_MakeSignedData [16:27:11]SAM_PROTO_SignData [16:27:11]wFMCommunicate request_size=4 [16:27:11]MH_SAM_APDU [16:27:11]CAPDU: 80 0D 01 02 [16:27:11]Write to MH i2c: E2 08 00 EB 9E 80 0D 01 02 00 00 00 00 02 [16:27:11]Write i2c OK [16:27:11]MH_I2C_Read... [16:27:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:27:11]Read from MH i2c: E2 [16:27:11]MH_I2C_Read... [16:27:11]Read from MH i2c: E2 03 00 [16:27:11]MH_I2C_Read... [16:27:11]Read from MH i2c: E2 03 00 EB 9E 00 90 00 FD [16:27:11]RAPDU: 90 00 [16:27:11]wFMCommunicate OK [16:27:11]wFMCommunicate request_size=255 [16:27:11]MH_SAM_APDU [16:27: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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 57 01 00 00 F4 03 04 00 E3 20 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B1 FA 03 00 35 04 06 00 EA [16:27:11]Write to MH i2c: E2 02 01 EC 9E 80 0D 02 02 FA 00 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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 57 01 00 00 F4 03 04 00 E3 20 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B1 FA 03 00 35 04 06 00 EA 00 00 53 [16:27:11]Write i2c OK [16:27:11]MH_I2C_Read... [16:27:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:11]Read from MH i2c: E2 [16:27:11]MH_I2C_Read... [16:27:11]Read from MH i2c: E2 03 00 [16:27:11]MH_I2C_Read... [16:27:11]Read from MH i2c: E2 03 00 EC 9E 00 90 00 FE [16:27:11]RAPDU: 90 00 [16:27:11]wFMCommunicate OK [16:27:11]wFMCommunicate request_size=10 [16:27:11]MH_SAM_APDU [16:27:11]CAPDU: 80 0D 02 02 05 7B 8E D0 AE 42 [16:27:11]Write to MH i2c: E2 0D 00 ED 9E 80 0D 02 02 05 00 7B 8E D0 AE 42 00 00 D8 [16:27:11]Write i2c OK [16:27:11]MH_I2C_Read... [16:27:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:11]Read from MH i2c: E2 [16:27:11]MH_I2C_Read... [16:27:11]Read from MH i2c: E2 03 00 [16:27:11]MH_I2C_Read... [16:27:11]Read from MH i2c: E2 03 00 ED 9E 00 90 00 FF [16:27:11]RAPDU: 90 00 [16:27:11]wFMCommunicate OK [16:27:11]wFMCommunicate request_size=4 [16:27:11]MH_SAM_APDU [16:27:11]CAPDU: 80 0D 03 02 [16:27:11]Write to MH i2c: E2 08 00 EE 9E 80 0D 03 02 00 00 00 00 07 [16:27:11]Write i2c OK [16:27:11]MH_I2C_Read... [16:27:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:27:11]Read from MH i2c: E2 [16:27:11]MH_I2C_Read... [16:27:11]Read from MH i2c: E2 0B 00 [16:27:11]MH_I2C_Read... [16:27:11]Read from MH i2c: E2 0B 00 EE 9E 00 DF FE 8F D5 05 1E E2 C5 90 00 13 [16:27:11]RAPDU: DF FE 8F D5 05 1E E2 C5 90 00 [16:27:11]wFMCommunicate OK [16:27:11]SAM_PROTO_SignData done [16:27:11]FM_MakeSignedData done [16:27:11]CreateOFDProtocolMessage [16:27:11]wFMCommunicate request_size=4 [16:27:11]MH_SAM_APDU [16:27:11]CAPDU: 80 11 00 00 [16:27:11]Write to MH i2c: E2 08 00 EF 9E 80 11 00 00 00 00 00 00 07 [16:27:11]Write i2c OK [16:27:11]MH_I2C_Read... [16:27:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:11]Read from MH i2c: E2 [16:27:11]MH_I2C_Read... [16:27:11]Read from MH i2c: E2 17 00 [16:27:11]MH_I2C_Read... [16:27:11]Read from MH i2c: E2 17 00 EF 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 54 [16:27:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:27:11]wFMCommunicate OK [16:27:11]CreateOFDProtocolMessage done [16:27:11]OFDSenderStorePacket 260785 [16:27:11]StoreOFDPacket docnum=260785 [16:27:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 F0 9E 07 01 4E 0B 5A 03 01 00 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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 57 01 00 00 F4 03 04 00 E3 20 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B1 FA 03 00 35 04 06 00 EA 7B 8E D0 AE 42 DF FE 8F D5 05 1E E2 C5 [16:27:11]CheckFolder [16:27:11]dirname=/storage/ofd_packets [16:27:11]CheckFolder done [16:27:11]ProducePacketName [16:27:11]name=ofd_packets/00260785 [16:27:11]NVStorageSaveData ofd_packets/00260785 [16:27:11]File name is /storage/ofd_packets/00260785 [16:27:11]Write 301 bytes [16:27:11]NVStorageSaveData done [16:27:11]OFDSenderStorePacket done [16:27:11]KKMCreateOFDPacket done [16:27:11]NVStorageSaveData kkm_last_timestamp [16:27:11]File name is /storage/kkm_last_timestamp [16:27:11]Write 4 bytes [16:27:11]NVStorageSaveData done [16:27:11]ExternCall_PrintAddStr [16:27:11]wPrintStart [16:27:11]Write to MH i2c: 01 00 00 F0 9E 8E [16:27:11]Write i2c OK [16:27:11]MH_I2C_Read... [16:27:11]Read from MH i2c: 01 [16:27:11]MH_I2C_Read... [16:27:11]Read from MH i2c: 01 07 00 [16:27:11]MH_I2C_Read... [16:27:11]Read from MH i2c: 01 07 00 F0 9E 00 00 00 00 00 FF 0F A3 [16:27:11]RasterBufferAndPrint [16:27:11]line Счет N : (1)1036337 [16:27:11]line ИНН: 02508201610067 [16:27:11]line Контрольно-Кассовый Чек [16:27:11]line ПРОДАЖА [16:27:11]line ТРК (МРК, ГНК) : 13 [16:27:11]line Товар: 2710124500 [16:27:11]line Аи-95-К-5 [16:27:11]line 9.440 * 74.20 [16:27:11]line = 700.45 [16:27:11]line НДС 12% НСП 1% [16:27:11]line > о реализуемом товаре [16:27:11]line ОКРУГЛЕНИЕ: -0.45 [16:27:11]line ИТОГО: 700.00 [16:27:11]line Внесено: 700.00 [16:27:11]line СДАЧА: 0.00 [16:27:11]line НСП 1% : 6.20 [16:27:11]line НДС 12% : 74.38 [16:27:11]line Наличными: 700.00 [16:27:11]line Безнал.: 0.00 [16:27:11]line Место: АЗС № 94 "Партнер Нефть" [16:27:11]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [16:27:11]line СНО: Общий режим [16:27:11]line Чек 343 18.08.2024 16:27 [16:27:11]line Смена: 449 ФФД: 1.0 [16:27:11]line ЗНМ: 0300000099 [16:27:11]line РНМ: 0000000000091865 [16:27:11]line Версия ККМ: 001 [16:27:11]line ФМ: 0000000000871820 [16:27:11]line ФД: 260785 [16:27:11]line ФПД: 257816397917762 [16:27:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T162715&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260785&fm=257816397917762&tin=02508201610067®Number=0000000000091865&sum=70000 [16:27:11]written 0, free lines is 4095 [16:27:11]OFD Sender: Processing packet 260785 [packets to send 192, broken 191] [16:27:11]ProducePacketName [16:27:11]name=ofd_packets/00260785 [16:27:11]OFD Sender: To server: pG, [16:27:11]CommunicateWithHost lk.salyk.kg:30040 [16:27:11]ConnectInit lk.salyk.kg [16:27:12]Connected sock=10 [16:27: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 30 0F 01 00 00 F0 9E 07 01 4E 0B 5A 03 01 00 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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 57 01 00 00 F4 03 04 00 E3 20 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B1 FA 03 00 35 04 06 00 EA 7B 8E D0 AE 42 DF FE 8F D5 05 1E E2 C5 [16:27: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 30 4F 00 00 00 65 1C 47 00 8B 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 30 10 04 04 00 B1 FA 03 00 F4 03 04 00 38 CA C1 66 B6 04 01 00 00 21 71 49 DD C2 7D 6D A1 [16:27:12]CommunicateWithHost err = 0 [16:27:12]CheckOFDResponse [16:27:12]1017 (14) - 77093643461234 [16:27:12]1041 (16) - 0000000000871820 [16:27:12]1040 (4) - 260785 [16:27:12]1012 (4) - 18.08.2024 10:17 [16:27:12]1206 (1) - 0 [16:27:12]OFD Sender: Remove packet 260785 [16:27:12]ProducePacketName [16:27:12]name=ofd_packets/00260785 [16:27:12]NVStorageDeleteData [16:27:12]Write to MH i2c: 01 00 00 1B 9F BA [16:27:12]Write i2c OK [16:27:12]MH_I2C_Read... [16:27:12]Read from MH i2c: 01 [16:27:12]MH_I2C_Read... [16:27:12]Read from MH i2c: 01 07 00 [16:27:12]MH_I2C_Read... [16:27:12]Read from MH i2c: 01 07 00 1B 9F 00 00 00 00 00 6F 0C 3C [16:27:12]RasterBufferAndPrint [16:27:12]line [16:27:12]line [16:27:12]line [16:27:12]line [16:27:12]line [16:27:12]written 0, free lines is 3186 [16:27:12]MH_Cut [16:27:12]Write to MH i2c: D1 01 00 22 9F 01 93 [16:27:12]Write i2c OK [16:27:12]MH_I2C_Read... [16:27:12]Read from MH i2c: D1 [16:27:12]MH_I2C_Read... [16:27:12]Read from MH i2c: D1 01 00 [16:27:12]MH_I2C_Read... [16:27:12]Read from MH i2c: D1 01 00 22 9F 00 92 [16:27:12]Write to MH i2c: 01 00 00 23 9F C2 [16:27:12]Write i2c OK [16:27:12]MH_I2C_Read... [16:27:12]OFD Sender: No OFD packet to send [16:27:13]*** Cut start [16:27:13]*** Purtial cut [16:27:13]*** Stage 1: CUTSNS_PIN = 1 [16:27:15]Read from MH i2c: 01 [16:27:15]MH_I2C_Read... [16:27:15]*** Stop cut motor [16:27:15]*** Cut end [16:27:15]Read from MH i2c: 01 07 00 [16:27:15]MH_I2C_Read... [16:27:15]Read from MH i2c: 01 07 00 23 9F 00 00 00 00 00 FF 0F D7 [16:27:15]process_action close_receipt done [16:27:15]requested_data is exist [16:27:15]produce_requested_data [16:27:15]requested_item fm.sn is exist - process it [16:27:15]wFMCommunicate request_size=4 [16:27:15]MH_SAM_APDU [16:27:15]CAPDU: 80 11 00 00 [16:27:15]Write to MH i2c: E2 08 00 24 9F 80 11 00 00 00 00 00 00 3D [16:27:15]Write i2c OK [16:27:15]MH_I2C_Read... [16:27:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:15]Read from MH i2c: E2 [16:27:15]MH_I2C_Read... [16:27:15]Read from MH i2c: E2 17 00 [16:27:15]MH_I2C_Read... [16:27:15]Read from MH i2c: E2 17 00 24 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 8A [16:27:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:27:15]wFMCommunicate OK [16:27:15]requested_item fd.num is exist - process it [16:27:15]SAM_PROTO_GetFieldsCounters [16:27:15]wFMCommunicate request_size=4 [16:27:15]MH_SAM_APDU [16:27:15]CAPDU: 80 13 00 00 [16:27:15]Write to MH i2c: E2 08 00 25 9F 80 13 00 00 00 00 00 00 40 [16:27:15]Write i2c OK [16:27:15]MH_I2C_Read... [16:27:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:27:15]Read from MH i2c: E2 [16:27:15]MH_I2C_Read... [16:27:15]Read from MH i2c: E2 62 00 [16:27:15]MH_I2C_Read... [16:27:15]Read from MH i2c: E2 62 00 25 9F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B1 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 D7 [16:27: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B1 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:27:15]wFMCommunicate OK [16:27:15]SAM_PROTO_GetFieldsCounters done [16:27:15]requested_item shift.num is exist - process it [16:27:15]requested_item shift.opened is exist - process it [16:27:15]req_shift_opened [16:27:15]FM_GetShiftState [16:27:15]SAM_PROTO_GetShiftState [16:27:15]wFMCommunicate request_size=4 [16:27:15]MH_SAM_APDU [16:27:15]CAPDU: 80 13 01 00 [16:27:15]Write to MH i2c: E2 08 00 26 9F 80 13 01 00 00 00 00 00 42 [16:27:15]Write i2c OK [16:27:15]MH_I2C_Read... [16:27:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:15]Read from MH i2c: E2 [16:27:15]MH_I2C_Read... [16:27:15]Read from MH i2c: E2 0E 00 [16:27:15]MH_I2C_Read... [16:27:15]Read from MH i2c: E2 0E 00 26 9F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 7F [16:27:15]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:27:15]wFMCommunicate OK [16:27:15]SAM_PROTO_GetShiftState done [16:27:15]FM_GetShiftState done [16:27:15]req_shift_opened done [16:27:15]requested_item shift.open_date is exist - process it [16:27:15]req_shift_open_date [16:27:15]req_shift_open_date done [16:27:15]produce_requested_data done [16:27:15]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260785,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [16:27:15]process_action_free close_receipt [16:27:15]json_value_free [16:27:15]json_value_free done [16:27:15]process_json_proto returns [16:27:15]Send response to host [16:27:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260785,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [16:27:15]free response buf [16:27:15]execute_script done [16:27:15]execute_script returns [16:27:15]free content buf [16:27:15]Sock 7.Close socket [16:27:15]Sock 7.Thread stoped [16:27:17]OFD Sender: No OFD packet to send [16:27:22]OFD Sender: No OFD packet to send [16:27:27]OFD Sender: No OFD packet to send [16:27:32]OFD Sender: No OFD packet to send [16:27:37]OFD Sender: No OFD packet to send [16:27:42]OFD Sender: No OFD packet to send [16:27:47]OFD Sender: No OFD packet to send [16:27:52]OFD Sender: No OFD packet to send [16:27:57]OFD Sender: No OFD packet to send [16:28:02]OFD Sender: No OFD packet to send [16:28:07]OFD Sender: No OFD packet to send [16:28:12]OFD Sender: No OFD packet to send [16:28:17]OFD Sender: No OFD packet to send [16:28:22]OFD Sender: No OFD packet to send [16:28:27]OFD Sender: No OFD packet to send [16:28:32]OFD Sender: No OFD packet to send [16:28:37]OFD Sender: No OFD packet to send [16:28:42]OFD Sender: No OFD packet to send [16:28:47]OFD Sender: No OFD packet to send [16:28:52]OFD Sender: No OFD packet to send [16:28:57]OFD Sender: No OFD packet to send [16:28:58]accept exits with 9 [16:28:58]New connection [16:28:58]New thread 3066473828 created [16:28:58]Thread 3066617188 joined [16:28:58]Waiting for new connection... [16:28:58] Sock 9.Parse request [16:28:58]Sock 9.Check first char [16:28:58]Sock 9.First char is OK [16:28:58]request: POST /json_proto HTTP/1.0 [16:28:58]Method: POST [16:28:58]URL: /json_proto [16:28:58]Method is POST - this is cgi request [16:28:58]url: /json_proto [16:28:58]query_string will be loaded in cgi processing [16:28:58]execute_cgi json_proto POST (null) [16:28:58]execute_cgi path=json_proto method=POST [16:28:58]POST find Content-Length [16:28:58]Host: 172.17.55.133:8080 [16:28:58]Content-Length: 817 [16:28:58]Content-Type: application/json [16:28:58] [16:28:58]POST finish read [16:28:58]Found Content-Length = 817 [16:28:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036338", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:58]execute_script... [16:28: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)1036338", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:58]POST & json_proto [16:28:58]process_json_proto [16:28:58]json parsed OK: [16:28:58]protocol is kg_v1.0 [16:28:58]action value=close_receipt [16:28:58]process_action close_receipt [16:28:58]cmd_close_receipt [16:28:58]MH_GetDate [16:28:58]Write to MH i2c: F0 00 00 27 9F B5 [16:28:58]Write i2c OK [16:28:58]MH_I2C_Read... [16:28:58]Read from MH i2c: F0 [16:28:58]MH_I2C_Read... [16:28:58]Read from MH i2c: F0 09 00 [16:28:58]MH_I2C_Read... [16:28:58]Read from MH i2c: F0 09 00 27 9F 00 50 21 C2 66 34 48 D8 65 10 [16:28:58]GetLastDocTimeStamp 1723998435 [16:28:58]current date 1723998544 [16:28:58]FM_GetShiftState [16:28:58]SAM_PROTO_GetShiftState [16:28:58]wFMCommunicate request_size=4 [16:28:58]MH_SAM_APDU [16:28:58]CAPDU: 80 13 01 00 [16:28:58]Write to MH i2c: E2 08 00 28 9F 80 13 01 00 00 00 00 00 44 [16:28:58]Write i2c OK [16:28:58]MH_I2C_Read... [16:28:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:58]Read from MH i2c: E2 [16:28:58]MH_I2C_Read... [16:28:58]Read from MH i2c: E2 0E 00 [16:28:58]MH_I2C_Read... [16:28:58]Read from MH i2c: E2 0E 00 28 9F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 81 [16:28:58]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:28:58]wFMCommunicate OK [16:28:58]SAM_PROTO_GetShiftState done [16:28:58]FM_GetShiftState done [16:28:58]opened in 1723940556 [16:28:58]opened+sec_in_day 1724026956 [16:28:58]quantity*price = 50010 [16:28:58]sum+1 = 50012 [16:28:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 344 18.08.2024 16:29 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871820 ФД: 260786 ФПД: 218851908225710 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T162904&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260786&fm=218851908225710&tin=02508201610067®Number=0000000000091865&sum=50011 [16:29:00]StoreToDocumentArchive [16:29:00]shift 449 fd 260786 [16:29:00]save to /storage/0449/doc_00260786 [16:29:00]save last doc name /storage/0449/doc_00260786 to /storage/kkm_last_doc_name [16:29:00]save OK [16:29:00]Clear old archive folders... [16:29:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:29:00]tlvbuf is 004A4250 [16:29:00]SAM_PROTO_ClearQueue [16:29:00]wFMCommunicate request_size=4 [16:29:00]MH_SAM_APDU [16:29:00]CAPDU: 80 09 00 00 [16:29:00]Write to MH i2c: E2 08 00 35 9F 80 09 00 00 00 00 00 00 46 [16:29:00]Write i2c OK [16:29:00]MH_I2C_Read... [16:29:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:00]Read from MH i2c: E2 [16:29:00]MH_I2C_Read... [16:29:00]Read from MH i2c: E2 03 00 [16:29:00]MH_I2C_Read... [16:29:00]Read from MH i2c: E2 03 00 35 9F 00 90 00 48 [16:29:00]RAPDU: 90 00 [16:29:00]wFMCommunicate OK [16:29:00]SAM_PROTO_ClearQueue done [16:29:00]KKMCreateOFDPacket [16:29:00]OFDProtocolAddRootSTLVToBuf [16:29:00]FM_MakeSignedData [16:29:00]FM_MakeSignedData [16:29:00]SAM_PROTO_SignData [16:29:00]wFMCommunicate request_size=4 [16:29:00]MH_SAM_APDU [16:29:00]CAPDU: 80 0D 01 02 [16:29:00]Write to MH i2c: E2 08 00 36 9F 80 0D 01 02 00 00 00 00 4E [16:29:00]Write i2c OK [16:29:00]MH_I2C_Read... [16:29:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:00]Read from MH i2c: E2 [16:29:00]MH_I2C_Read... [16:29:00]Read from MH i2c: E2 03 00 [16:29:00]MH_I2C_Read... [16:29:00]Read from MH i2c: E2 03 00 36 9F 00 90 00 49 [16:29:00]RAPDU: 90 00 [16:29:00]wFMCommunicate OK [16:29:00]wFMCommunicate request_size=255 [16:29:00]MH_SAM_APDU [16:29:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 50 21 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B2 FA 03 00 35 04 06 00 C7 [16:29:00]Write to MH i2c: E2 02 01 37 9F 80 0D 02 02 FA 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 50 21 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B2 FA 03 00 35 04 06 00 C7 00 00 F3 [16:29:00]Write i2c OK [16:29:00]MH_I2C_Read... [16:29:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:00]Read from MH i2c: E2 [16:29:00]MH_I2C_Read... [16:29:00]Read from MH i2c: E2 03 00 [16:29:00]MH_I2C_Read... [16:29:00]Read from MH i2c: E2 03 00 37 9F 00 90 00 4A [16:29:00]RAPDU: 90 00 [16:29:00]wFMCommunicate OK [16:29:00]wFMCommunicate request_size=10 [16:29:00]MH_SAM_APDU [16:29:00]CAPDU: 80 0D 02 02 05 0B 6E 3F 8A AE [16:29:00]Write to MH i2c: E2 0D 00 38 9F 80 0D 02 02 05 00 0B 6E 3F 8A AE 00 00 4B [16:29:00]Write i2c OK [16:29:00]MH_I2C_Read... [16:29:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:00]Read from MH i2c: E2 [16:29:00]MH_I2C_Read... [16:29:00]Read from MH i2c: E2 03 00 [16:29:00]MH_I2C_Read... [16:29:00]Read from MH i2c: E2 03 00 38 9F 00 90 00 4B [16:29:00]RAPDU: 90 00 [16:29:00]wFMCommunicate OK [16:29:00]wFMCommunicate request_size=4 [16:29:00]MH_SAM_APDU [16:29:00]CAPDU: 80 0D 03 02 [16:29:00]Write to MH i2c: E2 08 00 39 9F 80 0D 03 02 00 00 00 00 53 [16:29:00]Write i2c OK [16:29:00]MH_I2C_Read... [16:29:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:00]Read from MH i2c: E2 [16:29:00]MH_I2C_Read... [16:29:00]Read from MH i2c: E2 0B 00 [16:29:00]MH_I2C_Read... [16:29:00]Read from MH i2c: E2 0B 00 39 9F 00 1C C7 01 4F 66 73 68 7F 90 00 47 [16:29:00]RAPDU: 1C C7 01 4F 66 73 68 7F 90 00 [16:29:00]wFMCommunicate OK [16:29:00]SAM_PROTO_SignData done [16:29:00]FM_MakeSignedData done [16:29:00]CreateOFDProtocolMessage [16:29:00]wFMCommunicate request_size=4 [16:29:00]MH_SAM_APDU [16:29:00]CAPDU: 80 11 00 00 [16:29:00]Write to MH i2c: E2 08 00 3A 9F 80 11 00 00 00 00 00 00 53 [16:29:00]Write i2c OK [16:29:00]MH_I2C_Read... [16:29:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:00]Read from MH i2c: E2 [16:29:00]MH_I2C_Read... [16:29:00]Read from MH i2c: E2 17 00 [16:29:00]MH_I2C_Read... [16:29:00]Read from MH i2c: E2 17 00 3A 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A0 [16:29:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:29:00]wFMCommunicate OK [16:29:00]CreateOFDProtocolMessage done [16:29:00]OFDSenderStorePacket 260786 [16:29:00]StoreOFDPacket docnum=260786 [16:29:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 6D 27 07 01 62 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 50 21 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B2 FA 03 00 35 04 06 00 C7 0B 6E 3F 8A AE 1C C7 01 4F 66 73 68 7F [16:29:00]CheckFolder [16:29:00]dirname=/storage/ofd_packets [16:29:00]CheckFolder done [16:29:00]ProducePacketName [16:29:00]name=ofd_packets/00260786 [16:29:00]NVStorageSaveData ofd_packets/00260786 [16:29:00]File name is /storage/ofd_packets/00260786 [16:29:00]Write 301 bytes [16:29:00]NVStorageSaveData done [16:29:00]OFDSenderStorePacket done [16:29:00]KKMCreateOFDPacket done [16:29:00]NVStorageSaveData kkm_last_timestamp [16:29:00]File name is /storage/kkm_last_timestamp [16:29:00]Write 4 bytes [16:29:00]NVStorageSaveData done [16:29:00]ExternCall_PrintAddStr [16:29:00]wPrintStart [16:29:00]Write to MH i2c: 01 00 00 3B 9F DA [16:29:00]Write i2c OK [16:29:00]MH_I2C_Read... [16:29:00]Read from MH i2c: 01 [16:29:00]MH_I2C_Read... [16:29:00]Read from MH i2c: 01 07 00 [16:29:00]MH_I2C_Read... [16:29:00]Read from MH i2c: 01 07 00 3B 9F 00 00 00 00 00 FF 0F EF [16:29:00]RasterBufferAndPrint [16:29:00]line Счет N : (1)1036338 [16:29:00]line ИНН: 02508201610067 [16:29:00]line Контрольно-Кассовый Чек [16:29:00]line ПРОДАЖА [16:29:00]line ТРК (МРК, ГНК) : 13 [16:29:00]line Товар: 2710124500 [16:29:00]line Аи-95-К-5 [16:29:00]line 6.740 * 74.20 [16:29:00]line = 500.11 [16:29:00]line НДС 12% НСП 1% [16:29:00]line > о реализуемом товаре [16:29:00]line ИТОГО: 500.11 [16:29:00]line НСП 1% : 4.43 [16:29:00]line НДС 12% : 53.11 [16:29:00]line Наличными: 0.00 [16:29:00]line Безнал.: 500.11 [16:29:00]line Место: АЗС № 94 "Партнер Нефть" [16:29:00]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [16:29:00]line СНО: Общий режим [16:29:00]line Чек 344 18.08.2024 16:29 [16:29:00]line Смена: 449 ФФД: 1.0 [16:29:00]line ЗНМ: 0300000099 [16:29:00]line РНМ: 0000000000091865 [16:29:00]line Версия ККМ: 001 [16:29:00]line Платежная система: Бакай Банк [16:29:00]line ФМ: 0000000000871820 [16:29:00]line ФД: 260786 [16:29:00]line ФПД: 218851908225710 [16:29:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T162904&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260786&fm=218851908225710&tin=02508201610067®Number=0000000000091865&sum=50011 [16:29:00]written 0, free lines is 4095 [16:29:00]OFD Sender: Processing packet 260786 [packets to send 192, broken 191] [16:29:00]ProducePacketName [16:29:00]name=ofd_packets/00260786 [16:29:00]OFD Sender: To server: pG, [16:29:00]CommunicateWithHost lk.salyk.kg:30040 [16:29:00]ConnectInit lk.salyk.kg [16:29:01]Write to MH i2c: 01 00 00 65 9F 04 [16:29:01]Write i2c OK [16:29:01]MH_I2C_Read... [16:29:01]Read from MH i2c: 01 [16:29:01]MH_I2C_Read... [16:29:01]Read from MH i2c: 01 07 00 [16:29:01]MH_I2C_Read... [16:29:01]Read from MH i2c: 01 07 00 65 9F 00 00 00 00 00 87 0C 9E [16:29:01]RasterBufferAndPrint [16:29:01]line [16:29:01]line [16:29:01]line [16:29:01]line [16:29:01]line [16:29:01]written 0, free lines is 3209 [16:29:01]MH_Cut [16:29:01]Write to MH i2c: D1 01 00 6C 9F 01 DD [16:29:01]Write i2c OK [16:29:01]MH_I2C_Read... [16:29:01]Read from MH i2c: D1 [16:29:01]MH_I2C_Read... [16:29:01]Read from MH i2c: D1 01 00 [16:29:01]MH_I2C_Read... [16:29:01]Read from MH i2c: D1 01 00 6C 9F 00 DC [16:29:01]Write to MH i2c: 01 00 00 6D 9F 0C [16:29:01]Write i2c OK [16:29:01]MH_I2C_Read... [16:29:02]*** Cut start [16:29:02]*** Purtial cut [16:29:02]*** Stage 1: CUTSNS_PIN = 1 [16:29:04]Read from MH i2c: 01 [16:29:04]MH_I2C_Read... [16:29:04]*** Stop cut motor [16:29:04]*** Cut end [16:29:04]Read from MH i2c: 01 07 00 [16:29:04]MH_I2C_Read... [16:29:04]Read from MH i2c: 01 07 00 6D 9F 00 00 00 00 00 FF 0F 21 [16:29:04]process_action close_receipt done [16:29:04]requested_data is exist [16:29:04]produce_requested_data [16:29:04]requested_item fm.sn is exist - process it [16:29:04]wFMCommunicate request_size=4 [16:29:04]MH_SAM_APDU [16:29:04]CAPDU: 80 11 00 00 [16:29:04]Write to MH i2c: E2 08 00 6E 9F 80 11 00 00 00 00 00 00 87 [16:29:04]Write i2c OK [16:29:04]MH_I2C_Read... [16:29:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:04]Read from MH i2c: E2 [16:29:04]MH_I2C_Read... [16:29:04]Read from MH i2c: E2 17 00 [16:29:04]MH_I2C_Read... [16:29:04]Read from MH i2c: E2 17 00 6E 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D4 [16:29:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:29:04]wFMCommunicate OK [16:29:04]requested_item fd.num is exist - process it [16:29:04]SAM_PROTO_GetFieldsCounters [16:29:04]wFMCommunicate request_size=4 [16:29:04]MH_SAM_APDU [16:29:04]CAPDU: 80 13 00 00 [16:29:04]Write to MH i2c: E2 08 00 6F 9F 80 13 00 00 00 00 00 00 8A [16:29:04]Write i2c OK [16:29:04]MH_I2C_Read... [16:29:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:04]Read from MH i2c: E2 [16:29:04]MH_I2C_Read... [16:29:04]Read from MH i2c: E2 62 00 [16:29:04]MH_I2C_Read... [16:29:04]Read from MH i2c: E2 62 00 6F 9F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B2 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 25 [16:29: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B2 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:29:04]wFMCommunicate OK [16:29:04]SAM_PROTO_GetFieldsCounters done [16:29:04]requested_item shift.num is exist - process it [16:29:04]requested_item shift.opened is exist - process it [16:29:04]req_shift_opened [16:29:04]FM_GetShiftState [16:29:04]SAM_PROTO_GetShiftState [16:29:04]wFMCommunicate request_size=4 [16:29:04]MH_SAM_APDU [16:29:04]CAPDU: 80 13 01 00 [16:29:04]Write to MH i2c: E2 08 00 70 9F 80 13 01 00 00 00 00 00 8C [16:29:04]Write i2c OK [16:29:04]MH_I2C_Read... [16:29:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:04]Read from MH i2c: E2 [16:29:04]MH_I2C_Read... [16:29:04]Read from MH i2c: E2 0E 00 [16:29:04]MH_I2C_Read... [16:29:04]Read from MH i2c: E2 0E 00 70 9F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C9 [16:29:04]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:29:04]wFMCommunicate OK [16:29:04]SAM_PROTO_GetShiftState done [16:29:04]FM_GetShiftState done [16:29:04]req_shift_opened done [16:29:04]requested_item shift.open_date is exist - process it [16:29:04]req_shift_open_date [16:29:04]req_shift_open_date done [16:29:04]produce_requested_data done [16:29:04]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260786,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [16:29:04]process_action_free close_receipt [16:29:04]json_value_free [16:29:04]json_value_free done [16:29:04]process_json_proto returns [16:29:04]Send response to host [16:29:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260786,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [16:29:04]free response buf [16:29:04]execute_script done [16:29:04]execute_script returns [16:29:04]free content buf [16:29:04]Sock 9.Close socket [16:29:04]Sock 9.Thread stoped [16:31:12]ConnectInit Can't connect to host [16:31:12]CommunicateWithHost connect error [16:31:12]CommunicateWithHost err = -1 [16:31:12]OFD Sender: Server communicate error [16:31:17]OFD Sender: Processing packet 260786 [packets to send 192, broken 191] [16:31:17]ProducePacketName [16:31:17]name=ofd_packets/00260786 [16:31:17]OFD Sender: To server: pG, [16:31:17]CommunicateWithHost lk.salyk.kg:30040 [16:31:17]ConnectInit lk.salyk.kg [16:31:17]Connected sock=9 [16:31: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 30 0F 01 00 00 6D 27 07 01 62 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 50 21 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B2 FA 03 00 35 04 06 00 C7 0B 6E 3F 8A AE 1C C7 01 4F 66 73 68 7F [16:31: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 30 4F 00 00 00 78 A7 47 00 07 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B2 FA 03 00 F4 03 04 00 2D CB C1 66 B6 04 01 00 00 BA AA 5D BA C9 D5 9C FF [16:31:17]CommunicateWithHost err = 0 [16:31:17]CheckOFDResponse [16:31:17]1017 (14) - 77093643461234 [16:31:17]1041 (16) - 0000000000871820 [16:31:17]1040 (4) - 260786 [16:31:17]1012 (4) - 18.08.2024 10:21 [16:31:17]1206 (1) - 0 [16:31:17]OFD Sender: Remove packet 260786 [16:31:17]ProducePacketName [16:31:17]name=ofd_packets/00260786 [16:31:17]NVStorageDeleteData [16:31:17]OFD Sender: No OFD packet to send [16:31:20]accept exits with 7 [16:31:20]New connection [16:31:20]New thread 3066617188 created [16:31:20]Thread 3066473828 joined [16:31:20]Waiting for new connection... [16:31:20] Sock 7.Parse request [16:31:20]Sock 7.Check first char [16:31:20]Sock 7.First char is OK [16:31:20]request: POST /json_proto HTTP/1.0 [16:31:20]Method: POST [16:31:20]URL: /json_proto [16:31:20]Method is POST - this is cgi request [16:31:20]url: /json_proto [16:31:20]query_string will be loaded in cgi processing [16:31:20]execute_cgi json_proto POST (null) [16:31:20]execute_cgi path=json_proto method=POST [16:31:20]POST find Content-Length [16:31:20]Host: 172.17.55.133:8080 [16:31:20]Content-Length: 678 [16:31:20]Content-Type: application/json [16:31:20] [16:31:20]POST finish read [16:31:20]Found Content-Length = 678 [16:31:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:20]execute_script... [16:31: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)1036339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:20]POST & json_proto [16:31:20]process_json_proto [16:31:20]json parsed OK: [16:31:20]protocol is kg_v1.0 [16:31:20]action value=close_receipt [16:31:20]process_action close_receipt [16:31:20]cmd_close_receipt [16:31:20]MH_GetDate [16:31:20]Write to MH i2c: F0 00 00 71 9F FF [16:31:20]Write i2c OK [16:31:20]MH_I2C_Read... [16:31:20]Read from MH i2c: F0 [16:31:20]MH_I2C_Read... [16:31:20]Read from MH i2c: F0 09 00 [16:31:20]MH_I2C_Read... [16:31:20]Read from MH i2c: F0 09 00 71 9F 00 DD 21 C2 66 34 48 D8 65 E7 [16:31:20]GetLastDocTimeStamp 1723998544 [16:31:20]current date 1723998685 [16:31:20]FM_GetShiftState [16:31:20]SAM_PROTO_GetShiftState [16:31:20]wFMCommunicate request_size=4 [16:31:20]MH_SAM_APDU [16:31:20]CAPDU: 80 13 01 00 [16:31:20]Write to MH i2c: E2 08 00 72 9F 80 13 01 00 00 00 00 00 8E [16:31:20]Write i2c OK [16:31:20]MH_I2C_Read... [16:31:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:20]Read from MH i2c: E2 [16:31:20]MH_I2C_Read... [16:31:20]Read from MH i2c: E2 0E 00 [16:31:20]MH_I2C_Read... [16:31:20]Read from MH i2c: E2 0E 00 72 9F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 CB [16:31:20]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:31:20]wFMCommunicate OK [16:31:20]SAM_PROTO_GetShiftState done [16:31:20]FM_GetShiftState done [16:31:20]opened in 1723940556 [16:31:20]opened+sec_in_day 1724026956 [16:31:20]quantity*price = 50036 [16:31:20]sum+1 = 50037 [16:31:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 345 18.08.2024 16:31 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260787 ФПД: 210882503006961 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T163125&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260787&fm=210882503006961&tin=02508201610067®Number=0000000000091865&sum=50000 [16:31:21]StoreToDocumentArchive [16:31:21]shift 449 fd 260787 [16:31:21]save to /storage/0449/doc_00260787 [16:31:21]save last doc name /storage/0449/doc_00260787 to /storage/kkm_last_doc_name [16:31:21]save OK [16:31:21]Clear old archive folders... [16:31:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:31:21]tlvbuf is 00656A80 [16:31:21]SAM_PROTO_ClearQueue [16:31:21]wFMCommunicate request_size=4 [16:31:21]MH_SAM_APDU [16:31:21]CAPDU: 80 09 00 00 [16:31:21]Write to MH i2c: E2 08 00 7F 9F 80 09 00 00 00 00 00 00 90 [16:31:21]Write i2c OK [16:31:21]MH_I2C_Read... [16:31:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:31:21]Read from MH i2c: E2 [16:31:21]MH_I2C_Read... [16:31:21]Read from MH i2c: E2 03 00 [16:31:21]MH_I2C_Read... [16:31:21]Read from MH i2c: E2 03 00 7F 9F 00 90 00 92 [16:31:21]RAPDU: 90 00 [16:31:21]wFMCommunicate OK [16:31:21]SAM_PROTO_ClearQueue done [16:31:21]KKMCreateOFDPacket [16:31:21]OFDProtocolAddRootSTLVToBuf [16:31:21]FM_MakeSignedData [16:31:21]FM_MakeSignedData [16:31:21]SAM_PROTO_SignData [16:31:21]wFMCommunicate request_size=4 [16:31:21]MH_SAM_APDU [16:31:21]CAPDU: 80 0D 01 02 [16:31:21]Write to MH i2c: E2 08 00 80 9F 80 0D 01 02 00 00 00 00 98 [16:31:21]Write i2c OK [16:31:21]MH_I2C_Read... [16:31:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:31:21]Read from MH i2c: E2 [16:31:21]MH_I2C_Read... [16:31:21]Read from MH i2c: E2 03 00 [16:31:21]MH_I2C_Read... [16:31:21]Read from MH i2c: E2 03 00 80 9F 00 90 00 93 [16:31:21]RAPDU: 90 00 [16:31:21]wFMCommunicate OK [16:31:21]wFMCommunicate request_size=255 [16:31:21]MH_SAM_APDU [16:31:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 59 01 00 00 F4 03 04 00 DD 21 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B3 FA 03 00 35 04 06 00 BF [16:31:21]Write to MH i2c: E2 02 01 81 9F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 59 01 00 00 F4 03 04 00 DD 21 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B3 FA 03 00 35 04 06 00 BF 00 00 C6 [16:31:21]Write i2c OK [16:31:21]MH_I2C_Read... [16:31:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:21]Read from MH i2c: E2 [16:31:21]MH_I2C_Read... [16:31:21]Read from MH i2c: E2 03 00 [16:31:21]MH_I2C_Read... [16:31:21]Read from MH i2c: E2 03 00 81 9F 00 90 00 94 [16:31:21]RAPDU: 90 00 [16:31:21]wFMCommunicate OK [16:31:21]wFMCommunicate request_size=10 [16:31:21]MH_SAM_APDU [16:31:21]CAPDU: 80 0D 02 02 05 CB E8 AE 5A F1 [16:31:21]Write to MH i2c: E2 0D 00 82 9F 80 0D 02 02 05 00 CB E8 AE 5A F1 00 00 51 [16:31:21]Write i2c OK [16:31:21]MH_I2C_Read... [16:31:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:21]Read from MH i2c: E2 [16:31:21]MH_I2C_Read... [16:31:21]Read from MH i2c: E2 03 00 [16:31:21]MH_I2C_Read... [16:31:21]Read from MH i2c: E2 03 00 82 9F 00 90 00 95 [16:31:21]RAPDU: 90 00 [16:31:21]wFMCommunicate OK [16:31:21]wFMCommunicate request_size=4 [16:31:21]MH_SAM_APDU [16:31:21]CAPDU: 80 0D 03 02 [16:31:21]Write to MH i2c: E2 08 00 83 9F 80 0D 03 02 00 00 00 00 9D [16:31:21]Write i2c OK [16:31:21]MH_I2C_Read... [16:31:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:31:21]Read from MH i2c: E2 [16:31:21]MH_I2C_Read... [16:31:21]Read from MH i2c: E2 0B 00 [16:31:21]MH_I2C_Read... [16:31:21]Read from MH i2c: E2 0B 00 83 9F 00 BD D2 8E 6E 81 D9 9B AD 90 00 CB [16:31:21]RAPDU: BD D2 8E 6E 81 D9 9B AD 90 00 [16:31:21]wFMCommunicate OK [16:31:21]SAM_PROTO_SignData done [16:31:21]FM_MakeSignedData done [16:31:21]CreateOFDProtocolMessage [16:31:21]wFMCommunicate request_size=4 [16:31:21]MH_SAM_APDU [16:31:21]CAPDU: 80 11 00 00 [16:31:21]Write to MH i2c: E2 08 00 84 9F 80 11 00 00 00 00 00 00 9D [16:31:21]Write i2c OK [16:31:21]MH_I2C_Read... [16:31:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:21]Read from MH i2c: E2 [16:31:21]MH_I2C_Read... [16:31:21]Read from MH i2c: E2 17 00 [16:31:21]MH_I2C_Read... [16:31:21]Read from MH i2c: E2 17 00 84 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 EA [16:31:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:31:21]wFMCommunicate OK [16:31:21]CreateOFDProtocolMessage done [16:31:21]OFDSenderStorePacket 260787 [16:31:21]StoreOFDPacket docnum=260787 [16:31:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 1A 59 07 01 E0 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 59 01 00 00 F4 03 04 00 DD 21 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B3 FA 03 00 35 04 06 00 BF CB E8 AE 5A F1 BD D2 8E 6E 81 D9 9B AD [16:31:21]CheckFolder [16:31:21]dirname=/storage/ofd_packets [16:31:21]CheckFolder done [16:31:21]ProducePacketName [16:31:21]name=ofd_packets/00260787 [16:31:21]NVStorageSaveData ofd_packets/00260787 [16:31:21]File name is /storage/ofd_packets/00260787 [16:31:21]Write 301 bytes [16:31:21]NVStorageSaveData done [16:31:21]OFDSenderStorePacket done [16:31:21]KKMCreateOFDPacket done [16:31:21]NVStorageSaveData kkm_last_timestamp [16:31:21]File name is /storage/kkm_last_timestamp [16:31:21]Write 4 bytes [16:31:21]NVStorageSaveData done [16:31:21]ExternCall_PrintAddStr [16:31:21]wPrintStart [16:31:21]Write to MH i2c: 01 00 00 85 9F 24 [16:31:21]Write i2c OK [16:31:21]MH_I2C_Read... [16:31:21]Read from MH i2c: 01 [16:31:21]MH_I2C_Read... [16:31:21]Read from MH i2c: 01 07 00 [16:31:21]MH_I2C_Read... [16:31:21]Read from MH i2c: 01 07 00 85 9F 00 00 00 00 00 FF 0F 39 [16:31:21]RasterBufferAndPrint [16:31:21]line Счет N : (1)1036339 [16:31:21]line ИНН: 02508201610067 [16:31:21]line Контрольно-Кассовый Чек [16:31:21]line ПРОДАЖА [16:31:21]line ТРК (МРК, ГНК) : 12 [16:31:21]line Товар: 2710124130 [16:31:21]line Аи-92-К-5 [16:31:21]line 7.380 * 67.80 [16:31:21]line = 500.36 [16:31:21]line НДС 12% НСП 1% [16:31:21]line > о реализуемом товаре [16:31:21]line ОКРУГЛЕНИЕ: -0.36 [16:31:21]line ИТОГО: 500.00 [16:31:21]line Внесено: 500.00 [16:31:21]line СДАЧА: 0.00 [16:31:21]line НСП 1% : 4.43 [16:31:21]line НДС 12% : 53.14 [16:31:21]line Наличными: 500.00 [16:31:21]line Безнал.: 0.00 [16:31:21]line Место: АЗС № 94 "Партнер Нефть" [16:31:21]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [16:31:21]line СНО: Общий режим [16:31:21]line Чек 345 18.08.2024 16:31 [16:31:21]line Смена: 449 ФФД: 1.0 [16:31:21]line ЗНМ: 0300000099 [16:31:21]line РНМ: 0000000000091865 [16:31:21]line Версия ККМ: 001 [16:31:21]line ФМ: 0000000000871820 [16:31:21]line ФД: 260787 [16:31:21]line ФПД: 210882503006961 [16:31:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T163125&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260787&fm=210882503006961&tin=02508201610067®Number=0000000000091865&sum=50000 [16:31:21]written 0, free lines is 4095 [16:31:21]OFD Sender: Processing packet 260787 [packets to send 192, broken 191] [16:31:21]ProducePacketName [16:31:21]name=ofd_packets/00260787 [16:31:21]OFD Sender: To server: pG, [16:31:21]CommunicateWithHost lk.salyk.kg:30040 [16:31:21]ConnectInit lk.salyk.kg [16:31:21]Connected sock=11 [16:31: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 30 0F 01 00 00 1A 59 07 01 E0 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 59 01 00 00 F4 03 04 00 DD 21 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B3 FA 03 00 35 04 06 00 BF CB E8 AE 5A F1 BD D2 8E 6E 81 D9 9B AD [16:31: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 30 4F 00 00 00 F3 5E 47 00 6C A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 B3 FA 03 00 F4 03 04 00 32 CB C1 66 B6 04 01 00 00 80 D6 85 29 F6 1D 97 D2 [16:31:22]CommunicateWithHost err = 0 [16:31:22]CheckOFDResponse [16:31:22]1017 (14) - 77093643461234 [16:31:22]1041 (16) - 0000000000871820 [16:31:22]1040 (4) - 260787 [16:31:22]1012 (4) - 18.08.2024 10:21 [16:31:22]1206 (1) - 0 [16:31:22]OFD Sender: Remove packet 260787 [16:31:22]ProducePacketName [16:31:22]name=ofd_packets/00260787 [16:31:22]NVStorageDeleteData [16:31:22]Write to MH i2c: 01 00 00 B0 9F 4F [16:31:22]Write i2c OK [16:31:22]MH_I2C_Read... [16:31:22]Read from MH i2c: 01 [16:31:22]MH_I2C_Read... [16:31:22]Read from MH i2c: 01 07 00 [16:31:22]MH_I2C_Read... [16:31:22]Read from MH i2c: 01 07 00 B0 9F 00 00 00 00 00 69 0C CB [16:31:22]RasterBufferAndPrint [16:31:22]line [16:31:22]line [16:31:22]line [16:31:22]line [16:31:22]line [16:31:22]written 0, free lines is 3180 [16:31:22]MH_Cut [16:31:22]Write to MH i2c: D1 01 00 B7 9F 01 28 [16:31:22]Write i2c OK [16:31:22]MH_I2C_Read... [16:31:22]Read from MH i2c: D1 [16:31:22]MH_I2C_Read... [16:31:22]Read from MH i2c: D1 01 00 [16:31:22]MH_I2C_Read... [16:31:22]Read from MH i2c: D1 01 00 B7 9F 00 27 [16:31:22]Write to MH i2c: 01 00 00 B8 9F 57 [16:31:22]Write i2c OK [16:31:22]MH_I2C_Read... [16:31:22]OFD Sender: No OFD packet to send [16:31:23]*** Cut start [16:31:23]*** Purtial cut [16:31:23]*** Stage 1: CUTSNS_PIN = 1 [16:31:25]Read from MH i2c: 01 [16:31:25]MH_I2C_Read... [16:31:25]*** Stop cut motor [16:31:25]*** Cut end [16:31:25]Read from MH i2c: 01 07 00 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: 01 07 00 B8 9F 00 00 00 00 00 FF 0F 6C [16:31:25]process_action close_receipt done [16:31:25]requested_data is exist [16:31:25]produce_requested_data [16:31:25]requested_item fm.sn is exist - process it [16:31:25]wFMCommunicate request_size=4 [16:31:25]MH_SAM_APDU [16:31:25]CAPDU: 80 11 00 00 [16:31:25]Write to MH i2c: E2 08 00 B9 9F 80 11 00 00 00 00 00 00 D2 [16:31:25]Write i2c OK [16:31:25]MH_I2C_Read... [16:31:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:25]Read from MH i2c: E2 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: E2 17 00 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: E2 17 00 B9 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 1F [16:31:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:31:25]wFMCommunicate OK [16:31:25]requested_item fd.num is exist - process it [16:31:25]SAM_PROTO_GetFieldsCounters [16:31:25]wFMCommunicate request_size=4 [16:31:25]MH_SAM_APDU [16:31:25]CAPDU: 80 13 00 00 [16:31:25]Write to MH i2c: E2 08 00 BA 9F 80 13 00 00 00 00 00 00 D5 [16:31:25]Write i2c OK [16:31:25]MH_I2C_Read... [16:31:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:31:25]Read from MH i2c: E2 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: E2 62 00 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: E2 62 00 BA 9F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B3 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 74 [16:31: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B3 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:31:25]wFMCommunicate OK [16:31:25]SAM_PROTO_GetFieldsCounters done [16:31:25]requested_item shift.num is exist - process it [16:31:25]requested_item shift.opened is exist - process it [16:31:25]req_shift_opened [16:31:25]FM_GetShiftState [16:31:25]SAM_PROTO_GetShiftState [16:31:25]wFMCommunicate request_size=4 [16:31:25]MH_SAM_APDU [16:31:25]CAPDU: 80 13 01 00 [16:31:25]Write to MH i2c: E2 08 00 BB 9F 80 13 01 00 00 00 00 00 D7 [16:31:25]Write i2c OK [16:31:25]MH_I2C_Read... [16:31:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:25]Read from MH i2c: E2 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: E2 0E 00 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: E2 0E 00 BB 9F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 14 [16:31:25]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:31:25]wFMCommunicate OK [16:31:25]SAM_PROTO_GetShiftState done [16:31:25]FM_GetShiftState done [16:31:25]req_shift_opened done [16:31:25]requested_item shift.open_date is exist - process it [16:31:25]req_shift_open_date [16:31:25]req_shift_open_date done [16:31:25]produce_requested_data done [16:31:25]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260787,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [16:31:25]process_action_free close_receipt [16:31:25]json_value_free [16:31:25]json_value_free done [16:31:25]process_json_proto returns [16:31:25]Send response to host [16:31:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260787,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [16:31:25]free response buf [16:31:25]execute_script done [16:31:25]execute_script returns [16:31:25]free content buf [16:31:25]Sock 7.Close socket [16:31:25]Sock 7.Thread stoped [16:31:27]OFD Sender: No OFD packet to send [16:31:32]OFD Sender: No OFD packet to send [16:31:37]OFD Sender: No OFD packet to send [16:31:42]OFD Sender: No OFD packet to send [16:31:47]OFD Sender: No OFD packet to send [16:31:52]OFD Sender: No OFD packet to send [16:31:57]OFD Sender: No OFD packet to send [16:32:02]OFD Sender: No OFD packet to send [16:32:07]OFD Sender: No OFD packet to send [16:32:12]OFD Sender: No OFD packet to send [16:32:17]OFD Sender: No OFD packet to send [16:32:22]OFD Sender: No OFD packet to send [16:32:27]OFD Sender: No OFD packet to send [16:32:32]OFD Sender: No OFD packet to send [16:32:37]OFD Sender: No OFD packet to send [16:32:42]OFD Sender: No OFD packet to send [16:32:47]OFD Sender: No OFD packet to send [16:32:52]OFD Sender: No OFD packet to send [16:32:57]OFD Sender: No OFD packet to send [16:33:02]OFD Sender: No OFD packet to send [16:33:07]OFD Sender: No OFD packet to send [16:33:12]OFD Sender: No OFD packet to send [16:33:17]OFD Sender: No OFD packet to send [16:33:22]OFD Sender: No OFD packet to send [16:33:27]OFD Sender: No OFD packet to send [16:33:32]OFD Sender: No OFD packet to send [16:33:37]OFD Sender: No OFD packet to send [16:33:42]OFD Sender: No OFD packet to send [16:33:44]accept exits with 9 [16:33:44]New connection [16:33:44]New thread 3066473828 created [16:33:44]Thread 3066617188 joined [16:33:44]Waiting for new connection... [16:33:44] Sock 9.Parse request [16:33:44]Sock 9.Check first char [16:33:44]Sock 9.First char is OK [16:33:44]request: POST /json_proto HTTP/1.0 [16:33:44]Method: POST [16:33:44]URL: /json_proto [16:33:44]Method is POST - this is cgi request [16:33:44]url: /json_proto [16:33:44]query_string will be loaded in cgi processing [16:33:44]execute_cgi json_proto POST (null) [16:33:44]execute_cgi path=json_proto method=POST [16:33:44]POST find Content-Length [16:33:44]Host: 172.17.55.133:8080 [16:33:44]Content-Length: 678 [16:33:44]Content-Type: application/json [16:33:44] [16:33:44]POST finish read [16:33:44]Found Content-Length = 678 [16:33:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:44]execute_script... [16:33: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)1036340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:44]POST & json_proto [16:33:44]process_json_proto [16:33:44]json parsed OK: [16:33:44]protocol is kg_v1.0 [16:33:44]action value=close_receipt [16:33:44]process_action close_receipt [16:33:44]cmd_close_receipt [16:33:44]MH_GetDate [16:33:44]Write to MH i2c: F0 00 00 BC 9F 4A [16:33:44]Write i2c OK [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: F0 [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: F0 09 00 [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: F0 09 00 BC 9F 00 6E 22 C2 66 34 48 D8 65 C4 [16:33:44]GetLastDocTimeStamp 1723998685 [16:33:44]current date 1723998830 [16:33:44]FM_GetShiftState [16:33:44]SAM_PROTO_GetShiftState [16:33:44]wFMCommunicate request_size=4 [16:33:44]MH_SAM_APDU [16:33:44]CAPDU: 80 13 01 00 [16:33:44]Write to MH i2c: E2 08 00 BD 9F 80 13 01 00 00 00 00 00 D9 [16:33:44]Write i2c OK [16:33:44]MH_I2C_Read... [16:33:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:44]Read from MH i2c: E2 [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: E2 0E 00 [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: E2 0E 00 BD 9F 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 16 [16:33:44]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:33:44]wFMCommunicate OK [16:33:44]SAM_PROTO_GetShiftState done [16:33:44]FM_GetShiftState done [16:33:44]opened in 1723940556 [16:33:44]opened+sec_in_day 1724026956 [16:33:44]quantity*price = 50036 [16:33:44]sum+1 = 50037 [16:33:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 346 18.08.2024 16:33 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260788 ФПД: 242290213830026 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T163350&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260788&fm=242290213830026&tin=02508201610067®Number=0000000000091865&sum=50000 [16:33:45]StoreToDocumentArchive [16:33:45]shift 449 fd 260788 [16:33:45]save to /storage/0449/doc_00260788 [16:33:45]save last doc name /storage/0449/doc_00260788 to /storage/kkm_last_doc_name [16:33:45]save OK [16:33:45]Clear old archive folders... [16:33:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:33:45]tlvbuf is 004A44C0 [16:33:45]SAM_PROTO_ClearQueue [16:33:45]wFMCommunicate request_size=4 [16:33:45]MH_SAM_APDU [16:33:45]CAPDU: 80 09 00 00 [16:33:45]Write to MH i2c: E2 08 00 CA 9F 80 09 00 00 00 00 00 00 DB [16:33:45]Write i2c OK [16:33:45]MH_I2C_Read... [16:33:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:33:45]Read from MH i2c: E2 [16:33:45]MH_I2C_Read... [16:33:45]Read from MH i2c: E2 03 00 [16:33:45]MH_I2C_Read... [16:33:45]Read from MH i2c: E2 03 00 CA 9F 00 90 00 DD [16:33:45]RAPDU: 90 00 [16:33:45]wFMCommunicate OK [16:33:45]SAM_PROTO_ClearQueue done [16:33:45]KKMCreateOFDPacket [16:33:45]OFDProtocolAddRootSTLVToBuf [16:33:45]FM_MakeSignedData [16:33:45]FM_MakeSignedData [16:33:45]SAM_PROTO_SignData [16:33:45]wFMCommunicate request_size=4 [16:33:45]MH_SAM_APDU [16:33:45]CAPDU: 80 0D 01 02 [16:33:45]Write to MH i2c: E2 08 00 CB 9F 80 0D 01 02 00 00 00 00 E3 [16:33:45]Write i2c OK [16:33:45]MH_I2C_Read... [16:33:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:33:45]Read from MH i2c: E2 [16:33:45]MH_I2C_Read... [16:33:45]Read from MH i2c: E2 03 00 [16:33:45]MH_I2C_Read... [16:33:45]Read from MH i2c: E2 03 00 CB 9F 00 90 00 DE [16:33:45]RAPDU: 90 00 [16:33:45]wFMCommunicate OK [16:33:45]wFMCommunicate request_size=255 [16:33:45]MH_SAM_APDU [16:33:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5A 01 00 00 F4 03 04 00 6E 22 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B4 FA 03 00 35 04 06 00 DC [16:33:45]Write to MH i2c: E2 02 01 CC 9F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5A 01 00 00 F4 03 04 00 6E 22 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B4 FA 03 00 35 04 06 00 DC 00 00 C2 [16:33:45]Write i2c OK [16:33:45]MH_I2C_Read... [16:33:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:45]Read from MH i2c: E2 [16:33:45]MH_I2C_Read... [16:33:45]Read from MH i2c: E2 03 00 [16:33:45]MH_I2C_Read... [16:33:45]Read from MH i2c: E2 03 00 CC 9F 00 90 00 DF [16:33:45]RAPDU: 90 00 [16:33:45]wFMCommunicate OK [16:33:45]wFMCommunicate request_size=10 [16:33:45]MH_SAM_APDU [16:33:45]CAPDU: 80 0D 02 02 05 5C 96 20 BD 8A [16:33:45]Write to MH i2c: E2 0D 00 CD 9F 80 0D 02 02 05 00 5C 96 20 BD 8A 00 00 49 [16:33:45]Write i2c OK [16:33:45]MH_I2C_Read... [16:33:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:45]Read from MH i2c: E2 [16:33:45]MH_I2C_Read... [16:33:45]Read from MH i2c: E2 03 00 [16:33:45]MH_I2C_Read... [16:33:45]Read from MH i2c: E2 03 00 CD 9F 00 90 00 E0 [16:33:45]RAPDU: 90 00 [16:33:45]wFMCommunicate OK [16:33:45]wFMCommunicate request_size=4 [16:33:45]MH_SAM_APDU [16:33:45]CAPDU: 80 0D 03 02 [16:33:45]Write to MH i2c: E2 08 00 CE 9F 80 0D 03 02 00 00 00 00 E8 [16:33:45]Write i2c OK [16:33:45]MH_I2C_Read... [16:33:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:33:45]Read from MH i2c: E2 [16:33:45]MH_I2C_Read... [16:33:45]Read from MH i2c: E2 0B 00 [16:33:45]MH_I2C_Read... [16:33:45]Read from MH i2c: E2 0B 00 CE 9F 00 E6 86 AD 97 C3 71 AC 1A 90 00 93 [16:33:45]RAPDU: E6 86 AD 97 C3 71 AC 1A 90 00 [16:33:45]wFMCommunicate OK [16:33:45]SAM_PROTO_SignData done [16:33:45]FM_MakeSignedData done [16:33:45]CreateOFDProtocolMessage [16:33:45]wFMCommunicate request_size=4 [16:33:45]MH_SAM_APDU [16:33:45]CAPDU: 80 11 00 00 [16:33:45]Write to MH i2c: E2 08 00 CF 9F 80 11 00 00 00 00 00 00 E8 [16:33:45]Write i2c OK [16:33:45]MH_I2C_Read... [16:33:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:45]Read from MH i2c: E2 [16:33:46]MH_I2C_Read... [16:33:46]Read from MH i2c: E2 17 00 [16:33:46]MH_I2C_Read... [16:33:46]Read from MH i2c: E2 17 00 CF 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 35 [16:33:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:33:46]wFMCommunicate OK [16:33:46]CreateOFDProtocolMessage done [16:33:46]OFDSenderStorePacket 260788 [16:33:46]StoreOFDPacket docnum=260788 [16:33:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 02 28 07 01 83 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5A 01 00 00 F4 03 04 00 6E 22 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B4 FA 03 00 35 04 06 00 DC 5C 96 20 BD 8A E6 86 AD 97 C3 71 AC 1A [16:33:46]CheckFolder [16:33:46]dirname=/storage/ofd_packets [16:33:46]CheckFolder done [16:33:46]ProducePacketName [16:33:46]name=ofd_packets/00260788 [16:33:46]NVStorageSaveData ofd_packets/00260788 [16:33:46]File name is /storage/ofd_packets/00260788 [16:33:46]Write 301 bytes [16:33:46]NVStorageSaveData done [16:33:46]OFDSenderStorePacket done [16:33:46]KKMCreateOFDPacket done [16:33:46]NVStorageSaveData kkm_last_timestamp [16:33:46]File name is /storage/kkm_last_timestamp [16:33:46]Write 4 bytes [16:33:46]NVStorageSaveData done [16:33:46]ExternCall_PrintAddStr [16:33:46]wPrintStart [16:33:46]Write to MH i2c: 01 00 00 D0 9F 6F [16:33:46]Write i2c OK [16:33:46]MH_I2C_Read... [16:33:46]Read from MH i2c: 01 [16:33:46]MH_I2C_Read... [16:33:46]Read from MH i2c: 01 07 00 [16:33:46]MH_I2C_Read... [16:33:46]Read from MH i2c: 01 07 00 D0 9F 00 00 00 00 00 FF 0F 84 [16:33:46]RasterBufferAndPrint [16:33:46]line Счет N : (1)1036340 [16:33:46]line ИНН: 02508201610067 [16:33:46]line Контрольно-Кассовый Чек [16:33:46]line ПРОДАЖА [16:33:46]line ТРК (МРК, ГНК) : 22 [16:33:46]line Товар: 2710124130 [16:33:46]line Аи-92-К-5 [16:33:46]line 7.380 * 67.80 [16:33:46]line = 500.36 [16:33:46]line НДС 12% НСП 1% [16:33:46]line > о реализуемом товаре [16:33:46]line ОКРУГЛЕНИЕ: -0.36 [16:33:46]line ИТОГО: 500.00 [16:33:46]line Внесено: 500.00 [16:33:46]line СДАЧА: 0.00 [16:33:46]line НСП 1% : 4.43 [16:33:46]line НДС 12% : 53.14 [16:33:46]line Наличными: 500.00 [16:33:46]line Безнал.: 0.00 [16:33:46]line Место: АЗС № 94 "Партнер Нефть" [16:33:46]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [16:33:46]line СНО: Общий режим [16:33:46]line Чек 346 18.08.2024 16:33 [16:33:46]line Смена: 449 ФФД: 1.0 [16:33:46]line ЗНМ: 0300000099 [16:33:46]line РНМ: 0000000000091865 [16:33:46]line Версия ККМ: 001 [16:33:46]line ФМ: 0000000000871820 [16:33:46]line ФД: 260788 [16:33:46]line ФПД: 242290213830026 [16:33:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T163350&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260788&fm=242290213830026&tin=02508201610067®Number=0000000000091865&sum=50000 [16:33:46]written 0, free lines is 4095 [16:33:46]OFD Sender: Processing packet 260788 [packets to send 192, broken 191] [16:33:46]ProducePacketName [16:33:46]name=ofd_packets/00260788 [16:33:46]OFD Sender: To server: pG, [16:33:46]CommunicateWithHost lk.salyk.kg:30040 [16:33:46]ConnectInit lk.salyk.kg [16:33:46]Connected sock=10 [16:33: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 30 0F 01 00 00 02 28 07 01 83 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5A 01 00 00 F4 03 04 00 6E 22 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B4 FA 03 00 35 04 06 00 DC 5C 96 20 BD 8A E6 86 AD 97 C3 71 AC 1A [16:33: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 30 4F 00 00 00 90 20 47 00 73 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 30 10 04 04 00 B4 FA 03 00 F4 03 04 00 C2 CB C1 66 B6 04 01 00 00 DC 87 9D AC 49 CF 29 4B [16:33:46]CommunicateWithHost err = 0 [16:33:46]CheckOFDResponse [16:33:46]1017 (14) - 77093643461234 [16:33:46]1041 (16) - 0000000000871820 [16:33:46]1040 (4) - 260788 [16:33:46]1012 (4) - 18.08.2024 10:24 [16:33:46]1206 (1) - 0 [16:33:46]OFD Sender: Remove packet 260788 [16:33:46]ProducePacketName [16:33:46]name=ofd_packets/00260788 [16:33:46]NVStorageDeleteData [16:33:46]Write to MH i2c: 01 00 00 FB 9F 9A [16:33:46]Write i2c OK [16:33:46]MH_I2C_Read... [16:33:46]Read from MH i2c: 01 [16:33:46]MH_I2C_Read... [16:33:46]Read from MH i2c: 01 07 00 [16:33:46]MH_I2C_Read... [16:33:46]Read from MH i2c: 01 07 00 FB 9F 00 00 00 00 00 72 0C 1F [16:33:46]RasterBufferAndPrint [16:33:46]line [16:33:46]line [16:33:46]line [16:33:46]line [16:33:46]line [16:33:46]written 0, free lines is 3188 [16:33:46]MH_Cut [16:33:46]Write to MH i2c: D1 01 00 02 A0 01 74 [16:33:46]Write i2c OK [16:33:46]MH_I2C_Read... [16:33:46]Read from MH i2c: D1 [16:33:46]MH_I2C_Read... [16:33:46]Read from MH i2c: D1 01 00 [16:33:46]MH_I2C_Read... [16:33:46]Read from MH i2c: D1 01 00 02 A0 00 73 [16:33:46]Write to MH i2c: 01 00 00 03 A0 A3 [16:33:46]Write i2c OK [16:33:46]MH_I2C_Read... [16:33:46]OFD Sender: No OFD packet to send [16:33:47]*** Cut start [16:33:47]*** Purtial cut [16:33:47]*** Stage 1: CUTSNS_PIN = 1 [16:33:49]Read from MH i2c: 01 [16:33:49]MH_I2C_Read... [16:33:49]*** Stop cut motor [16:33:49]*** Cut end [16:33:49]Read from MH i2c: 01 07 00 [16:33:49]MH_I2C_Read... [16:33:49]Read from MH i2c: 01 07 00 03 A0 00 00 00 00 00 FF 0F B8 [16:33:49]process_action close_receipt done [16:33:49]requested_data is exist [16:33:49]produce_requested_data [16:33:49]requested_item fm.sn is exist - process it [16:33:49]wFMCommunicate request_size=4 [16:33:49]MH_SAM_APDU [16:33:49]CAPDU: 80 11 00 00 [16:33:49]Write to MH i2c: E2 08 00 04 A0 80 11 00 00 00 00 00 00 1E [16:33:49]Write i2c OK [16:33:49]MH_I2C_Read... [16:33:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:49]Read from MH i2c: E2 [16:33:49]MH_I2C_Read... [16:33:49]Read from MH i2c: E2 17 00 [16:33:49]MH_I2C_Read... [16:33:49]Read from MH i2c: E2 17 00 04 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 6B [16:33:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:33:49]wFMCommunicate OK [16:33:49]requested_item fd.num is exist - process it [16:33:49]SAM_PROTO_GetFieldsCounters [16:33:49]wFMCommunicate request_size=4 [16:33:49]MH_SAM_APDU [16:33:49]CAPDU: 80 13 00 00 [16:33:49]Write to MH i2c: E2 08 00 05 A0 80 13 00 00 00 00 00 00 21 [16:33:49]Write i2c OK [16:33:49]MH_I2C_Read... [16:33:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:33:49]Read from MH i2c: E2 [16:33:49]MH_I2C_Read... [16:33:49]Read from MH i2c: E2 62 00 [16:33:49]MH_I2C_Read... [16:33:49]Read from MH i2c: E2 62 00 05 A0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B4 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 C4 [16:33: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B4 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:33:49]wFMCommunicate OK [16:33:49]SAM_PROTO_GetFieldsCounters done [16:33:49]requested_item shift.num is exist - process it [16:33:49]requested_item shift.opened is exist - process it [16:33:49]req_shift_opened [16:33:49]FM_GetShiftState [16:33:49]SAM_PROTO_GetShiftState [16:33:49]wFMCommunicate request_size=4 [16:33:49]MH_SAM_APDU [16:33:49]CAPDU: 80 13 01 00 [16:33:49]Write to MH i2c: E2 08 00 06 A0 80 13 01 00 00 00 00 00 23 [16:33:49]Write i2c OK [16:33:49]MH_I2C_Read... [16:33:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:49]Read from MH i2c: E2 [16:33:49]MH_I2C_Read... [16:33:49]Read from MH i2c: E2 0E 00 [16:33:49]MH_I2C_Read... [16:33:49]Read from MH i2c: E2 0E 00 06 A0 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 60 [16:33:49]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:33:49]wFMCommunicate OK [16:33:49]SAM_PROTO_GetShiftState done [16:33:49]FM_GetShiftState done [16:33:49]req_shift_opened done [16:33:49]requested_item shift.open_date is exist - process it [16:33:49]req_shift_open_date [16:33:49]req_shift_open_date done [16:33:49]produce_requested_data done [16:33:49]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260788,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [16:33:49]process_action_free close_receipt [16:33:49]json_value_free [16:33:49]json_value_free done [16:33:49]process_json_proto returns [16:33:49]Send response to host [16:33:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260788,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [16:33:49]free response buf [16:33:49]execute_script done [16:33:49]execute_script returns [16:33:49]free content buf [16:33:49]Sock 9.Close socket [16:33:49]Sock 9.Thread stoped [16:33:51]OFD Sender: No OFD packet to send [16:33:56]OFD Sender: No OFD packet to send [16:34:01]OFD Sender: No OFD packet to send [16:34:06]OFD Sender: No OFD packet to send [16:34:11]OFD Sender: No OFD packet to send [16:34:16]OFD Sender: No OFD packet to send [16:34:21]OFD Sender: No OFD packet to send [16:34:26]OFD Sender: No OFD packet to send [16:34:31]OFD Sender: No OFD packet to send [16:34:36]OFD Sender: No OFD packet to send [16:34:41]OFD Sender: No OFD packet to send [16:34:46]OFD Sender: No OFD packet to send [16:34:51]OFD Sender: No OFD packet to send [16:34:56]OFD Sender: No OFD packet to send [16:34:57]accept exits with 7 [16:34:57]New connection [16:34:57]New thread 3066617188 created [16:34:57]Thread 3066473828 joined [16:34:57]Waiting for new connection... [16:34:57] Sock 7.Parse request [16:34:57]Sock 7.Check first char [16:34:57]Sock 7.First char is OK [16:34:57]request: POST /json_proto HTTP/1.0 [16:34:57]Method: POST [16:34:57]URL: /json_proto [16:34:57]Method is POST - this is cgi request [16:34:57]url: /json_proto [16:34:57]query_string will be loaded in cgi processing [16:34:57]execute_cgi json_proto POST (null) [16:34:57]execute_cgi path=json_proto method=POST [16:34:57]POST find Content-Length [16:34:57]Host: 172.17.55.133:8080 [16:34:57]Content-Length: 801 [16:34:57]Content-Type: application/json [16:34:57] [16:34:57]POST finish read [16:34:57]Found Content-Length = 801 [16:34:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:57]execute_script... [16:34: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)1036341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:57]POST & json_proto [16:34:57]process_json_proto [16:34:57]json parsed OK: [16:34:57]protocol is kg_v1.0 [16:34:57]action value=close_receipt [16:34:57]process_action close_receipt [16:34:57]cmd_close_receipt [16:34:57]MH_GetDate [16:34:57]Write to MH i2c: F0 00 00 07 A0 96 [16:34:57]Write i2c OK [16:34:57]MH_I2C_Read... [16:34:57]Read from MH i2c: F0 [16:34:57]MH_I2C_Read... [16:34:57]Read from MH i2c: F0 09 00 [16:34:57]MH_I2C_Read... [16:34:57]Read from MH i2c: F0 09 00 07 A0 00 B6 22 C2 66 34 48 D8 65 58 [16:34:57]GetLastDocTimeStamp 1723998830 [16:34:57]current date 1723998902 [16:34:57]FM_GetShiftState [16:34:57]SAM_PROTO_GetShiftState [16:34:57]wFMCommunicate request_size=4 [16:34:57]MH_SAM_APDU [16:34:57]CAPDU: 80 13 01 00 [16:34:57]Write to MH i2c: E2 08 00 08 A0 80 13 01 00 00 00 00 00 25 [16:34:57]Write i2c OK [16:34:57]MH_I2C_Read... [16:34:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:57]Read from MH i2c: E2 [16:34:57]MH_I2C_Read... [16:34:57]Read from MH i2c: E2 0E 00 [16:34:57]MH_I2C_Read... [16:34:57]Read from MH i2c: E2 0E 00 08 A0 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 62 [16:34:57]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:34:57]wFMCommunicate OK [16:34:57]SAM_PROTO_GetShiftState done [16:34:57]FM_GetShiftState done [16:34:57]opened in 1723940556 [16:34:57]opened+sec_in_day 1724026956 [16:34:57]quantity*price = 50036 [16:34:57]sum+1 = 50037 [16:34:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 347 18.08.2024 16:35 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260789 ФПД: 189357890578019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T163502&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260789&fm=189357890578019&tin=02508201610067®Number=0000000000091865&sum=50036 [16:34:58]StoreToDocumentArchive [16:34:58]shift 449 fd 260789 [16:34:58]save to /storage/0449/doc_00260789 [16:34:58]save last doc name /storage/0449/doc_00260789 to /storage/kkm_last_doc_name [16:34:58]save OK [16:34:58]Clear old archive folders... [16:34:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:34:58]tlvbuf is 00387500 [16:34:58]SAM_PROTO_ClearQueue [16:34:58]wFMCommunicate request_size=4 [16:34:58]MH_SAM_APDU [16:34:58]CAPDU: 80 09 00 00 [16:34:58]Write to MH i2c: E2 08 00 15 A0 80 09 00 00 00 00 00 00 27 [16:34:58]Write i2c OK [16:34:58]MH_I2C_Read... [16:34:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:34:58]Read from MH i2c: E2 [16:34:58]MH_I2C_Read... [16:34:58]Read from MH i2c: E2 03 00 [16:34:58]MH_I2C_Read... [16:34:58]Read from MH i2c: E2 03 00 15 A0 00 90 00 29 [16:34:58]RAPDU: 90 00 [16:34:58]wFMCommunicate OK [16:34:58]SAM_PROTO_ClearQueue done [16:34:58]KKMCreateOFDPacket [16:34:58]OFDProtocolAddRootSTLVToBuf [16:34:58]FM_MakeSignedData [16:34:58]FM_MakeSignedData [16:34:58]SAM_PROTO_SignData [16:34:58]wFMCommunicate request_size=4 [16:34:58]MH_SAM_APDU [16:34:58]CAPDU: 80 0D 01 02 [16:34:58]Write to MH i2c: E2 08 00 16 A0 80 0D 01 02 00 00 00 00 2F [16:34:58]Write i2c OK [16:34:58]MH_I2C_Read... [16:34:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:34:58]Read from MH i2c: E2 [16:34:58]MH_I2C_Read... [16:34:58]Read from MH i2c: E2 03 00 [16:34:58]MH_I2C_Read... [16:34:58]Read from MH i2c: E2 03 00 16 A0 00 90 00 2A [16:34:58]RAPDU: 90 00 [16:34:58]wFMCommunicate OK [16:34:58]wFMCommunicate request_size=255 [16:34:58]MH_SAM_APDU [16:34:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 B6 22 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B5 FA 03 00 35 04 06 00 AC [16:34:58]Write to MH i2c: E2 02 01 17 A0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 B6 22 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B5 FA 03 00 35 04 06 00 AC 00 00 70 [16:34:58]Write i2c OK [16:34:58]MH_I2C_Read... [16:34:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:58]Read from MH i2c: E2 [16:34:58]MH_I2C_Read... [16:34:58]Read from MH i2c: E2 03 00 [16:34:58]MH_I2C_Read... [16:34:58]Read from MH i2c: E2 03 00 17 A0 00 90 00 2B [16:34:58]RAPDU: 90 00 [16:34:58]wFMCommunicate OK [16:34:58]wFMCommunicate request_size=10 [16:34:58]MH_SAM_APDU [16:34:58]CAPDU: 80 0D 02 02 05 38 51 CD A6 63 [16:34:58]Write to MH i2c: E2 0D 00 18 A0 80 0D 02 02 05 00 38 51 CD A6 63 00 00 9B [16:34:58]Write i2c OK [16:34:58]MH_I2C_Read... [16:34:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:58]Read from MH i2c: E2 [16:34:58]MH_I2C_Read... [16:34:58]Read from MH i2c: E2 03 00 [16:34:58]MH_I2C_Read... [16:34:58]Read from MH i2c: E2 03 00 18 A0 00 90 00 2C [16:34:58]RAPDU: 90 00 [16:34:58]wFMCommunicate OK [16:34:58]wFMCommunicate request_size=4 [16:34:58]MH_SAM_APDU [16:34:58]CAPDU: 80 0D 03 02 [16:34:58]Write to MH i2c: E2 08 00 19 A0 80 0D 03 02 00 00 00 00 34 [16:34:58]Write i2c OK [16:34:58]MH_I2C_Read... [16:34:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:58]Read from MH i2c: E2 [16:34:58]MH_I2C_Read... [16:34:58]Read from MH i2c: E2 0B 00 [16:34:58]MH_I2C_Read... [16:34:58]Read from MH i2c: E2 0B 00 19 A0 00 35 11 CA DF 0D E1 77 53 90 00 DC [16:34:58]RAPDU: 35 11 CA DF 0D E1 77 53 90 00 [16:34:58]wFMCommunicate OK [16:34:58]SAM_PROTO_SignData done [16:34:58]FM_MakeSignedData done [16:34:58]CreateOFDProtocolMessage [16:34:58]wFMCommunicate request_size=4 [16:34:58]MH_SAM_APDU [16:34:58]CAPDU: 80 11 00 00 [16:34:58]Write to MH i2c: E2 08 00 1A A0 80 11 00 00 00 00 00 00 34 [16:34:58]Write i2c OK [16:34:58]MH_I2C_Read... [16:34:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:58]Read from MH i2c: E2 [16:34:58]MH_I2C_Read... [16:34:58]Read from MH i2c: E2 17 00 [16:34:58]MH_I2C_Read... [16:34:58]Read from MH i2c: E2 17 00 1A A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 81 [16:34:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:34:58]wFMCommunicate OK [16:34:58]CreateOFDProtocolMessage done [16:34:58]OFDSenderStorePacket 260789 [16:34:58]StoreOFDPacket docnum=260789 [16: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 30 0F 01 00 00 F1 56 07 01 37 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 B6 22 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B5 FA 03 00 35 04 06 00 AC 38 51 CD A6 63 35 11 CA DF 0D E1 77 53 [16:34:58]CheckFolder [16:34:58]dirname=/storage/ofd_packets [16:34:58]CheckFolder done [16:34:58]ProducePacketName [16:34:58]name=ofd_packets/00260789 [16:34:58]NVStorageSaveData ofd_packets/00260789 [16:34:58]File name is /storage/ofd_packets/00260789 [16:34:58]Write 301 bytes [16:34:58]NVStorageSaveData done [16:34:58]OFDSenderStorePacket done [16:34:58]KKMCreateOFDPacket done [16:34:58]NVStorageSaveData kkm_last_timestamp [16:34:58]File name is /storage/kkm_last_timestamp [16:34:58]Write 4 bytes [16:34:58]NVStorageSaveData done [16:34:58]ExternCall_PrintAddStr [16:34:58]wPrintStart [16:34:58]Write to MH i2c: 01 00 00 1B A0 BB [16:34:58]Write i2c OK [16:34:58]MH_I2C_Read... [16:34:58]Read from MH i2c: 01 [16:34:58]MH_I2C_Read... [16:34:58]Read from MH i2c: 01 07 00 [16:34:58]MH_I2C_Read... [16:34:58]Read from MH i2c: 01 07 00 1B A0 00 00 00 00 00 FF 0F D0 [16:34:58]RasterBufferAndPrint [16:34:58]line Счет N : (1)1036341 [16:34:58]line ИНН: 02508201610067 [16:34:58]line Контрольно-Кассовый Чек [16:34:58]line ПРОДАЖА [16:34:58]line ТРК (МРК, ГНК) : 12 [16:34:58]line Товар: 2710124130 [16:34:58]line Аи-92-К-5 [16:34:58]line 7.380 * 67.80 [16:34:58]line = 500.36 [16:34:58]line НДС 12% НСП 1% [16:34:58]line > о реализуемом товаре [16:34:58]line ИТОГО: 500.36 [16:34:58]line НСП 1% : 4.43 [16:34:58]line НДС 12% : 53.14 [16:34:58]line Наличными: 0.00 [16:34:58]line Безнал.: 500.36 [16:34:58]line Место: АЗС № 94 "Партнер Нефть" [16:34:58]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [16:34:58]line СНО: Общий режим [16:34:58]line Чек 347 18.08.2024 16:35 [16:34:58]line Смена: 449 ФФД: 1.0 [16:34:58]line ЗНМ: 0300000099 [16:34:58]line РНМ: 0000000000091865 [16:34:58]line Версия ККМ: 001 [16:34:58]line Платежная система: O! деньги [16:34:58]line ФМ: 0000000000871820 [16:34:58]line ФД: 260789 [16:34:58]line ФПД: 189357890578019 [16:34:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T163502&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260789&fm=189357890578019&tin=02508201610067®Number=0000000000091865&sum=50036 [16:34:59]OFD Sender: Processing packet 260789 [packets to send 192, broken 191] [16:34:59]ProducePacketName [16:34:59]name=ofd_packets/00260789 [16:34:59]OFD Sender: To server: pG, [16:34:59]CommunicateWithHost lk.salyk.kg:30040 [16:34:59]ConnectInit lk.salyk.kg [16:34:59]written 0, free lines is 4095 [16:34:59]Connected sock=10 [16:34: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 30 0F 01 00 00 F1 56 07 01 37 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 B6 22 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B5 FA 03 00 35 04 06 00 AC 38 51 CD A6 63 35 11 CA DF 0D E1 77 53 [16:34: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 30 4F 00 00 00 96 98 47 00 46 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 30 10 04 04 00 B5 FA 03 00 F4 03 04 00 0B CC C1 66 B6 04 01 00 00 42 74 18 89 13 13 76 BC [16:34:59]CommunicateWithHost err = 0 [16:34:59]CheckOFDResponse [16:34:59]1017 (14) - 77093643461234 [16:34:59]1041 (16) - 0000000000871820 [16:34:59]1040 (4) - 260789 [16:34:59]1012 (4) - 18.08.2024 10:25 [16:34:59]1206 (1) - 0 [16:34:59]OFD Sender: Remove packet 260789 [16:34:59]ProducePacketName [16:34:59]name=ofd_packets/00260789 [16:34:59]NVStorageDeleteData [16:34:59]Write to MH i2c: 01 00 00 45 A0 E5 [16:34:59]Write i2c OK [16:34:59]MH_I2C_Read... [16:34:59]Read from MH i2c: 01 [16:34:59]MH_I2C_Read... [16:34:59]Read from MH i2c: 01 07 00 [16:34:59]MH_I2C_Read... [16:34:59]Read from MH i2c: 01 07 00 45 A0 00 00 00 00 00 88 0C 80 [16:34:59]RasterBufferAndPrint [16:34:59]line [16:34:59]line [16:34:59]line [16:34:59]line [16:34:59]line [16:34:59]written 0, free lines is 3211 [16:34:59]MH_Cut [16:34:59]Write to MH i2c: D1 01 00 4C A0 01 BE [16:34:59]Write i2c OK [16:34:59]MH_I2C_Read... [16:34:59]Read from MH i2c: D1 [16:34:59]MH_I2C_Read... [16:34:59]Read from MH i2c: D1 01 00 [16:34:59]MH_I2C_Read... [16:34:59]Read from MH i2c: D1 01 00 4C A0 00 BD [16:34:59]Write to MH i2c: 01 00 00 4D A0 ED [16:34:59]Write i2c OK [16:34:59]MH_I2C_Read... [16:35:00]OFD Sender: No OFD packet to send [16:35:00]*** Cut start [16:35:00]*** Purtial cut [16:35:00]*** Stage 1: CUTSNS_PIN = 1 [16:35:02]Read from MH i2c: 01 [16:35:02]MH_I2C_Read... [16:35:02]*** Stop cut motor [16:35:02]*** Cut end [16:35:02]Read from MH i2c: 01 07 00 [16:35:02]MH_I2C_Read... [16:35:02]Read from MH i2c: 01 07 00 4D A0 00 00 00 00 00 FF 0F 02 [16:35:02]process_action close_receipt done [16:35:02]requested_data is exist [16:35:02]produce_requested_data [16:35:02]requested_item fm.sn is exist - process it [16:35:02]wFMCommunicate request_size=4 [16:35:02]MH_SAM_APDU [16:35:02]CAPDU: 80 11 00 00 [16:35:02]Write to MH i2c: E2 08 00 4E A0 80 11 00 00 00 00 00 00 68 [16:35:02]Write i2c OK [16:35:02]MH_I2C_Read... [16:35:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:02]Read from MH i2c: E2 [16:35:02]MH_I2C_Read... [16:35:02]Read from MH i2c: E2 17 00 [16:35:02]MH_I2C_Read... [16:35:02]Read from MH i2c: E2 17 00 4E A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B5 [16:35:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:35:02]wFMCommunicate OK [16:35:02]requested_item fd.num is exist - process it [16:35:02]SAM_PROTO_GetFieldsCounters [16:35:02]wFMCommunicate request_size=4 [16:35:02]MH_SAM_APDU [16:35:02]CAPDU: 80 13 00 00 [16:35:02]Write to MH i2c: E2 08 00 4F A0 80 13 00 00 00 00 00 00 6B [16:35:02]Write i2c OK [16:35:02]MH_I2C_Read... [16:35:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:03]Read from MH i2c: E2 [16:35:03]MH_I2C_Read... [16:35:03]Read from MH i2c: E2 62 00 [16:35:03]MH_I2C_Read... [16:35:03]Read from MH i2c: E2 62 00 4F A0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B5 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 12 [16:35: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B5 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:35:03]wFMCommunicate OK [16:35:03]SAM_PROTO_GetFieldsCounters done [16:35:03]requested_item shift.num is exist - process it [16:35:03]requested_item shift.opened is exist - process it [16:35:03]req_shift_opened [16:35:03]FM_GetShiftState [16:35:03]SAM_PROTO_GetShiftState [16:35:03]wFMCommunicate request_size=4 [16:35:03]MH_SAM_APDU [16:35:03]CAPDU: 80 13 01 00 [16:35:03]Write to MH i2c: E2 08 00 50 A0 80 13 01 00 00 00 00 00 6D [16:35:03]Write i2c OK [16:35:03]MH_I2C_Read... [16:35:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:03]Read from MH i2c: E2 [16:35:03]MH_I2C_Read... [16:35:03]Read from MH i2c: E2 0E 00 [16:35:03]MH_I2C_Read... [16:35:03]Read from MH i2c: E2 0E 00 50 A0 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 AA [16:35:03]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:35:03]wFMCommunicate OK [16:35:03]SAM_PROTO_GetShiftState done [16:35:03]FM_GetShiftState done [16:35:03]req_shift_opened done [16:35:03]requested_item shift.open_date is exist - process it [16:35:03]req_shift_open_date [16:35:03]req_shift_open_date done [16:35:03]produce_requested_data done [16:35:03]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260789,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [16:35:03]process_action_free close_receipt [16:35:03]json_value_free [16:35:03]json_value_free done [16:35:03]process_json_proto returns [16:35:03]Send response to host [16:35:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260789,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [16:35:03]free response buf [16:35:03]execute_script done [16:35:03]execute_script returns [16:35:03]free content buf [16:35:03]Sock 7.Close socket [16:35:03]Sock 7.Thread stoped [16:35:05]OFD Sender: No OFD packet to send [16:35:10]OFD Sender: No OFD packet to send [16:35:15]OFD Sender: No OFD packet to send [16:35:20]OFD Sender: No OFD packet to send [16:35:25]OFD Sender: No OFD packet to send [16:35:30]OFD Sender: No OFD packet to send [16:35:35]OFD Sender: No OFD packet to send [16:35:40]OFD Sender: No OFD packet to send [16:35:45]OFD Sender: No OFD packet to send [16:35:50]OFD Sender: No OFD packet to send [16:35:55]OFD Sender: No OFD packet to send [16:36:00]OFD Sender: No OFD packet to send [16:36:05]OFD Sender: No OFD packet to send [16:36:10]OFD Sender: No OFD packet to send [16:36:15]OFD Sender: No OFD packet to send [16:36:17]accept exits with 9 [16:36:17]New connection [16:36:17]New thread 3066473828 created [16:36:17]Thread 3066617188 joined [16:36:17]Waiting for new connection... [16:36:17] Sock 9.Parse request [16:36:17]Sock 9.Check first char [16:36:17]Sock 9.First char is OK [16:36:17]request: POST /json_proto HTTP/1.0 [16:36:17]Method: POST [16:36:17]URL: /json_proto [16:36:17]Method is POST - this is cgi request [16:36:17]url: /json_proto [16:36:17]query_string will be loaded in cgi processing [16:36:17]execute_cgi json_proto POST (null) [16:36:17]execute_cgi path=json_proto method=POST [16:36:17]POST find Content-Length [16:36:17]Host: 172.17.55.133:8080 [16:36:17]Content-Length: 804 [16:36:17]Content-Type: application/json [16:36:17] [16:36:17]POST finish read [16:36:17]Found Content-Length = 804 [16:36:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036342", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:17]execute_script... [16:36: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)1036342", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:17]POST & json_proto [16:36:17]process_json_proto [16:36:17]json parsed OK: [16:36:17]protocol is kg_v1.0 [16:36:17]action value=close_receipt [16:36:17]process_action close_receipt [16:36:17]cmd_close_receipt [16:36:17]MH_GetDate [16:36:17]Write to MH i2c: F0 00 00 51 A0 E0 [16:36:17]Write i2c OK [16:36:17]MH_I2C_Read... [16:36:17]Read from MH i2c: F0 [16:36:17]MH_I2C_Read... [16:36:17]Read from MH i2c: F0 09 00 [16:36:17]MH_I2C_Read... [16:36:17]Read from MH i2c: F0 09 00 51 A0 00 06 23 C2 66 34 48 D8 65 F3 [16:36:17]GetLastDocTimeStamp 1723998902 [16:36:17]current date 1723998982 [16:36:17]FM_GetShiftState [16:36:17]SAM_PROTO_GetShiftState [16:36:17]wFMCommunicate request_size=4 [16:36:17]MH_SAM_APDU [16:36:17]CAPDU: 80 13 01 00 [16:36:17]Write to MH i2c: E2 08 00 52 A0 80 13 01 00 00 00 00 00 6F [16:36:17]Write i2c OK [16:36:17]MH_I2C_Read... [16:36:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:17]Read from MH i2c: E2 [16:36:17]MH_I2C_Read... [16:36:17]Read from MH i2c: E2 0E 00 [16:36:17]MH_I2C_Read... [16:36:17]Read from MH i2c: E2 0E 00 52 A0 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 AC [16:36:17]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:36:17]wFMCommunicate OK [16:36:17]SAM_PROTO_GetShiftState done [16:36:17]FM_GetShiftState done [16:36:17]opened in 1723940556 [16:36:17]opened+sec_in_day 1724026956 [16:36:17]quantity*price = 100021 [16:36:17]sum+1 = 100023 [16:36:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 348 18.08.2024 16:36 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260790 ФПД: 228586625277270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T163622&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260790&fm=228586625277270&tin=02508201610067®Number=0000000000091865&sum=100022 [16:36:18]StoreToDocumentArchive [16:36:18]shift 449 fd 260790 [16:36:18]save to /storage/0449/doc_00260790 [16:36:18]save last doc name /storage/0449/doc_00260790 to /storage/kkm_last_doc_name [16:36:18]save OK [16:36:18]Clear old archive folders... [16:36:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:36:18]tlvbuf is 005C0E70 [16:36:18]SAM_PROTO_ClearQueue [16:36:18]wFMCommunicate request_size=4 [16:36:18]MH_SAM_APDU [16:36:18]CAPDU: 80 09 00 00 [16:36:18]Write to MH i2c: E2 08 00 5F A0 80 09 00 00 00 00 00 00 71 [16:36:18]Write i2c OK [16:36:18]MH_I2C_Read... [16:36:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:36:18]Read from MH i2c: E2 [16:36:18]MH_I2C_Read... [16:36:18]Read from MH i2c: E2 03 00 [16:36:18]MH_I2C_Read... [16:36:18]Read from MH i2c: E2 03 00 5F A0 00 90 00 73 [16:36:18]RAPDU: 90 00 [16:36:18]wFMCommunicate OK [16:36:18]SAM_PROTO_ClearQueue done [16:36:18]KKMCreateOFDPacket [16:36:18]OFDProtocolAddRootSTLVToBuf [16:36:18]FM_MakeSignedData [16:36:18]FM_MakeSignedData [16:36:18]SAM_PROTO_SignData [16:36:18]wFMCommunicate request_size=4 [16:36:18]MH_SAM_APDU [16:36:18]CAPDU: 80 0D 01 02 [16:36:18]Write to MH i2c: E2 08 00 60 A0 80 0D 01 02 00 00 00 00 79 [16:36:18]Write i2c OK [16:36:18]MH_I2C_Read... [16:36:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:36:18]Read from MH i2c: E2 [16:36:18]MH_I2C_Read... [16:36:18]Read from MH i2c: E2 03 00 [16:36:18]MH_I2C_Read... [16:36:18]Read from MH i2c: E2 03 00 60 A0 00 90 00 74 [16:36:18]RAPDU: 90 00 [16:36:18]wFMCommunicate OK [16:36:18]wFMCommunicate request_size=255 [16:36:18]MH_SAM_APDU [16:36: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 06 23 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B6 FA 03 00 35 04 06 00 CF [16:36:18]Write to MH i2c: E2 02 01 61 A0 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 06 23 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B6 FA 03 00 35 04 06 00 CF 00 00 41 [16:36:18]Write i2c OK [16:36:18]MH_I2C_Read... [16:36:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:18]Read from MH i2c: E2 [16:36:18]MH_I2C_Read... [16:36:18]Read from MH i2c: E2 03 00 [16:36:18]MH_I2C_Read... [16:36:18]Read from MH i2c: E2 03 00 61 A0 00 90 00 75 [16:36:18]RAPDU: 90 00 [16:36:18]wFMCommunicate OK [16:36:18]wFMCommunicate request_size=10 [16:36:18]MH_SAM_APDU [16:36:18]CAPDU: 80 0D 02 02 05 E5 F8 99 9D 56 [16:36:18]Write to MH i2c: E2 0D 00 62 A0 80 0D 02 02 05 00 E5 F8 99 9D 56 00 00 EF [16:36:18]Write i2c OK [16:36:18]MH_I2C_Read... [16:36:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:18]Read from MH i2c: E2 [16:36:18]MH_I2C_Read... [16:36:18]Read from MH i2c: E2 03 00 [16:36:18]MH_I2C_Read... [16:36:18]Read from MH i2c: E2 03 00 62 A0 00 90 00 76 [16:36:18]RAPDU: 90 00 [16:36:18]wFMCommunicate OK [16:36:18]wFMCommunicate request_size=4 [16:36:18]MH_SAM_APDU [16:36:18]CAPDU: 80 0D 03 02 [16:36:18]Write to MH i2c: E2 08 00 63 A0 80 0D 03 02 00 00 00 00 7E [16:36:18]Write i2c OK [16:36:18]MH_I2C_Read... [16:36:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:36:18]Read from MH i2c: E2 [16:36:18]MH_I2C_Read... [16:36:18]Read from MH i2c: E2 0B 00 [16:36:18]MH_I2C_Read... [16:36:18]Read from MH i2c: E2 0B 00 63 A0 00 C0 BA 65 ED C0 54 C9 5B 90 00 83 [16:36:18]RAPDU: C0 BA 65 ED C0 54 C9 5B 90 00 [16:36:18]wFMCommunicate OK [16:36:18]SAM_PROTO_SignData done [16:36:18]FM_MakeSignedData done [16:36:18]CreateOFDProtocolMessage [16:36:18]wFMCommunicate request_size=4 [16:36:18]MH_SAM_APDU [16:36:18]CAPDU: 80 11 00 00 [16:36:18]Write to MH i2c: E2 08 00 64 A0 80 11 00 00 00 00 00 00 7E [16:36:18]Write i2c OK [16:36:18]MH_I2C_Read... [16:36:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:18]Read from MH i2c: E2 [16:36:18]MH_I2C_Read... [16:36:18]Read from MH i2c: E2 17 00 [16:36:18]MH_I2C_Read... [16:36:18]Read from MH i2c: E2 17 00 64 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 CB [16:36:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:36:18]wFMCommunicate OK [16:36:18]CreateOFDProtocolMessage done [16:36:18]OFDSenderStorePacket 260790 [16:36:18]StoreOFDPacket docnum=260790 [16: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 30 0F 01 00 00 CC AD 07 01 9D 35 5A 03 01 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 06 23 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B6 FA 03 00 35 04 06 00 CF E5 F8 99 9D 56 C0 BA 65 ED C0 54 C9 5B [16:36:18]CheckFolder [16:36:18]dirname=/storage/ofd_packets [16:36:18]CheckFolder done [16:36:18]ProducePacketName [16:36:18]name=ofd_packets/00260790 [16:36:18]NVStorageSaveData ofd_packets/00260790 [16:36:18]File name is /storage/ofd_packets/00260790 [16:36:18]Write 301 bytes [16:36:18]NVStorageSaveData done [16:36:18]OFDSenderStorePacket done [16:36:18]KKMCreateOFDPacket done [16:36:18]NVStorageSaveData kkm_last_timestamp [16:36:18]File name is /storage/kkm_last_timestamp [16:36:18]Write 4 bytes [16:36:18]NVStorageSaveData done [16:36:18]ExternCall_PrintAddStr [16:36:18]wPrintStart [16:36:18]Write to MH i2c: 01 00 00 65 A0 05 [16:36:18]Write i2c OK [16:36:18]MH_I2C_Read... [16:36:18]Read from MH i2c: 01 [16:36:18]MH_I2C_Read... [16:36:18]Read from MH i2c: 01 07 00 [16:36:18]MH_I2C_Read... [16:36:18]Read from MH i2c: 01 07 00 65 A0 00 00 00 00 00 FF 0F 1A [16:36:18]RasterBufferAndPrint [16:36:18]line Счет N : (1)1036342 [16:36:18]line ИНН: 02508201610067 [16:36:18]line Контрольно-Кассовый Чек [16:36:18]line ПРОДАЖА [16:36:18]line ТРК (МРК, ГНК) : 23 [16:36:18]line Товар: 2710124500 [16:36:18]line Аи-95-К-5 [16:36:18]line 13.480 * 74.20 [16:36:18]line = 1000.22 [16:36:18]line НДС 12% НСП 1% [16:36:18]line > о реализуемом товаре [16:36:18]line ИТОГО: 1000.22 [16:36:18]line НСП 1% : 8.85 [16:36:18]line НДС 12% : 106.22 [16:36:18]line Наличными: 0.00 [16:36:18]line Безнал.: 1000.22 [16:36:18]line Место: АЗС № 94 "Партнер Нефть" [16:36:18]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [16:36:18]line СНО: Общий режим [16:36:18]line Чек 348 18.08.2024 16:36 [16:36:18]line Смена: 449 ФФД: 1.0 [16:36:18]line ЗНМ: 0300000099 [16:36:18]line РНМ: 0000000000091865 [16:36:18]line Версия ККМ: 001 [16:36:18]line Платежная система: O! деньги [16:36:18]line ФМ: 0000000000871820 [16:36:18]line ФД: 260790 [16:36:18]line ФПД: 228586625277270 [16:36:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T163622&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260790&fm=228586625277270&tin=02508201610067®Number=0000000000091865&sum=100022 [16:36:18]written 0, free lines is 4095 [16:36:18]OFD Sender: Processing packet 260790 [packets to send 192, broken 191] [16:36:18]ProducePacketName [16:36:18]name=ofd_packets/00260790 [16:36:18]OFD Sender: To server: pG, [16:36:18]CommunicateWithHost lk.salyk.kg:30040 [16:36:18]ConnectInit lk.salyk.kg [16:36:19]Connected sock=10 [16:36: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 30 0F 01 00 00 CC AD 07 01 9D 35 5A 03 01 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 06 23 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B6 FA 03 00 35 04 06 00 CF E5 F8 99 9D 56 C0 BA 65 ED C0 54 C9 5B [16:36: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 30 4F 00 00 00 37 A3 47 00 2F 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 30 10 04 04 00 B6 FA 03 00 F4 03 04 00 5B CC C1 66 B6 04 01 00 00 8E B1 0A 30 DD A5 0F FA [16:36:19]CommunicateWithHost err = 0 [16:36:19]CheckOFDResponse [16:36:19]1017 (14) - 77093643461234 [16:36:19]1041 (16) - 0000000000871820 [16:36:19]1040 (4) - 260790 [16:36:19]1012 (4) - 18.08.2024 10:26 [16:36:19]1206 (1) - 0 [16:36:19]OFD Sender: Remove packet 260790 [16:36:19]ProducePacketName [16:36:19]name=ofd_packets/00260790 [16:36:19]NVStorageDeleteData [16:36:19]Write to MH i2c: 01 00 00 8F A0 2F [16:36:19]Write i2c OK [16:36:19]MH_I2C_Read... [16:36:19]Read from MH i2c: 01 [16:36:19]MH_I2C_Read... [16:36:19]Read from MH i2c: 01 07 00 [16:36:19]MH_I2C_Read... [16:36:19]Read from MH i2c: 01 07 00 8F A0 00 00 00 00 00 8C 0C CE [16:36:19]RasterBufferAndPrint [16:36:19]line [16:36:19]line [16:36:19]line [16:36:19]line [16:36:19]line [16:36:19]written 0, free lines is 3215 [16:36:19]MH_Cut [16:36:19]Write to MH i2c: D1 01 00 96 A0 01 08 [16:36:19]Write i2c OK [16:36:19]MH_I2C_Read... [16:36:19]Read from MH i2c: D1 [16:36:19]MH_I2C_Read... [16:36:19]Read from MH i2c: D1 01 00 [16:36:19]MH_I2C_Read... [16:36:19]Read from MH i2c: D1 01 00 96 A0 00 07 [16:36:19]Write to MH i2c: 01 00 00 97 A0 37 [16:36:19]Write i2c OK [16:36:19]MH_I2C_Read... [16:36:19]OFD Sender: No OFD packet to send [16:36:20]*** Cut start [16:36:20]*** Purtial cut [16:36:20]*** Stage 1: CUTSNS_PIN = 1 [16:36:22]Read from MH i2c: 01 [16:36:22]MH_I2C_Read... [16:36:22]*** Stop cut motor [16:36:22]*** Cut end [16:36:22]Read from MH i2c: 01 07 00 [16:36:22]MH_I2C_Read... [16:36:22]Read from MH i2c: 01 07 00 97 A0 00 00 00 00 00 FF 0F 4C [16:36:22]process_action close_receipt done [16:36:22]requested_data is exist [16:36:22]produce_requested_data [16:36:22]requested_item fm.sn is exist - process it [16:36:22]wFMCommunicate request_size=4 [16:36:22]MH_SAM_APDU [16:36:22]CAPDU: 80 11 00 00 [16:36:22]Write to MH i2c: E2 08 00 98 A0 80 11 00 00 00 00 00 00 B2 [16:36:22]Write i2c OK [16:36:22]MH_I2C_Read... [16:36:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:22]Read from MH i2c: E2 [16:36:22]MH_I2C_Read... [16:36:22]Read from MH i2c: E2 17 00 [16:36:22]MH_I2C_Read... [16:36:22]Read from MH i2c: E2 17 00 98 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 FF [16:36:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:36:22]wFMCommunicate OK [16:36:22]requested_item fd.num is exist - process it [16:36:22]SAM_PROTO_GetFieldsCounters [16:36:22]wFMCommunicate request_size=4 [16:36:22]MH_SAM_APDU [16:36:22]CAPDU: 80 13 00 00 [16:36:22]Write to MH i2c: E2 08 00 99 A0 80 13 00 00 00 00 00 00 B5 [16:36:22]Write i2c OK [16:36:22]MH_I2C_Read... [16:36:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:36:22]Read from MH i2c: E2 [16:36:22]MH_I2C_Read... [16:36:22]Read from MH i2c: E2 62 00 [16:36:22]MH_I2C_Read... [16:36:22]Read from MH i2c: E2 62 00 99 A0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B6 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 60 [16:36: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B6 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:36:22]wFMCommunicate OK [16:36:22]SAM_PROTO_GetFieldsCounters done [16:36:22]requested_item shift.num is exist - process it [16:36:22]requested_item shift.opened is exist - process it [16:36:22]req_shift_opened [16:36:22]FM_GetShiftState [16:36:22]SAM_PROTO_GetShiftState [16:36:22]wFMCommunicate request_size=4 [16:36:22]MH_SAM_APDU [16:36:22]CAPDU: 80 13 01 00 [16:36:22]Write to MH i2c: E2 08 00 9A A0 80 13 01 00 00 00 00 00 B7 [16:36:22]Write i2c OK [16:36:22]MH_I2C_Read... [16:36:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:22]Read from MH i2c: E2 [16:36:22]MH_I2C_Read... [16:36:22]Read from MH i2c: E2 0E 00 [16:36:22]MH_I2C_Read... [16:36:22]Read from MH i2c: E2 0E 00 9A A0 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F4 [16:36:22]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:36:22]wFMCommunicate OK [16:36:22]SAM_PROTO_GetShiftState done [16:36:22]FM_GetShiftState done [16:36:22]req_shift_opened done [16:36:22]requested_item shift.open_date is exist - process it [16:36:22]req_shift_open_date [16:36:22]req_shift_open_date done [16:36:22]produce_requested_data done [16:36:22]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260790,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [16:36:22]process_action_free close_receipt [16:36:22]json_value_free [16:36:22]json_value_free done [16:36:22]process_json_proto returns [16:36:22]Send response to host [16:36:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260790,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [16:36:22]free response buf [16:36:22]execute_script done [16:36:22]execute_script returns [16:36:22]free content buf [16:36:22]Sock 9.Close socket [16:36:22]Sock 9.Thread stoped [16:36:24]OFD Sender: No OFD packet to send [16:36:29]OFD Sender: No OFD packet to send [16:36:34]OFD Sender: No OFD packet to send [16:36:39]OFD Sender: No OFD packet to send [16:36:44]OFD Sender: No OFD packet to send [16:36:49]OFD Sender: No OFD packet to send [16:36:54]OFD Sender: No OFD packet to send [16:36:59]OFD Sender: No OFD packet to send [16:37:04]accept exits with 7 [16:37:04]New connection [16:37:04]New thread 3066617188 created [16:37:04]Thread 3066473828 joined [16:37:04]Waiting for new connection... [16:37:04] Sock 7.Parse request [16:37:04]Sock 7.Check first char [16:37:04]Sock 7.First char is OK [16:37:04]request: POST /json_proto HTTP/1.0 [16:37:04]Method: POST [16:37:04]URL: /json_proto [16:37:04]Method is POST - this is cgi request [16:37:04]url: /json_proto [16:37:04]query_string will be loaded in cgi processing [16:37:04]execute_cgi json_proto POST (null) [16:37:04]execute_cgi path=json_proto method=POST [16:37:04]POST find Content-Length [16:37:04]Host: 172.17.55.133:8080 [16:37:04]Content-Length: 678 [16:37:04]Content-Type: application/json [16:37:04] [16:37:04]POST finish read [16:37:04]Found Content-Length = 678 [16:37:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:04]execute_script... [16:37:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:04]POST & json_proto [16:37:04]process_json_proto [16:37:04]json parsed OK: [16:37:04]protocol is kg_v1.0 [16:37:04]action value=close_receipt [16:37:04]process_action close_receipt [16:37:04]cmd_close_receipt [16:37:04]MH_GetDate [16:37:04]Write to MH i2c: F0 00 00 9B A0 2A [16:37:04]Write i2c OK [16:37:04]MH_I2C_Read... [16:37:04]Read from MH i2c: F0 [16:37:04]MH_I2C_Read... [16:37:04]Read from MH i2c: F0 09 00 [16:37:04]MH_I2C_Read... [16:37:04]Read from MH i2c: F0 09 00 9B A0 00 36 23 C2 66 34 48 D8 65 6D [16:37:04]GetLastDocTimeStamp 1723998982 [16:37:04]current date 1723999030 [16:37:04]FM_GetShiftState [16:37:04]SAM_PROTO_GetShiftState [16:37:04]wFMCommunicate request_size=4 [16:37:04]MH_SAM_APDU [16:37:04]CAPDU: 80 13 01 00 [16:37:04]Write to MH i2c: E2 08 00 9C A0 80 13 01 00 00 00 00 00 B9 [16:37:04]Write i2c OK [16:37:04]MH_I2C_Read... [16:37:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:04]Read from MH i2c: E2 [16:37:04]MH_I2C_Read... [16:37:04]Read from MH i2c: E2 0E 00 [16:37:04]MH_I2C_Read... [16:37:04]Read from MH i2c: E2 0E 00 9C A0 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F6 [16:37:04]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:37:04]wFMCommunicate OK [16:37:04]SAM_PROTO_GetShiftState done [16:37:04]FM_GetShiftState done [16:37:04]opened in 1723940556 [16:37:04]opened+sec_in_day 1724026956 [16:37:04]quantity*price = 50036 [16:37:04]sum+1 = 50037 [16:37:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 349 18.08.2024 16:37 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260791 ФПД: 33666746719900 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T163710&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260791&fm=33666746719900&tin=02508201610067®Number=0000000000091865&sum=50000 [16:37:05]StoreToDocumentArchive [16:37:05]shift 449 fd 260791 [16:37:05]save to /storage/0449/doc_00260791 [16:37:05]save last doc name /storage/0449/doc_00260791 to /storage/kkm_last_doc_name [16:37:05]save OK [16:37:05]Clear old archive folders... [16:37:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:37:05]tlvbuf is 004A47D0 [16:37:05]SAM_PROTO_ClearQueue [16:37:05]wFMCommunicate request_size=4 [16:37:05]MH_SAM_APDU [16:37:05]CAPDU: 80 09 00 00 [16:37:05]Write to MH i2c: E2 08 00 A9 A0 80 09 00 00 00 00 00 00 BB [16:37:05]Write i2c OK [16:37:05]MH_I2C_Read... [16:37:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:05]Read from MH i2c: E2 [16:37:05]MH_I2C_Read... [16:37:05]Read from MH i2c: E2 03 00 [16:37:05]MH_I2C_Read... [16:37:05]Read from MH i2c: E2 03 00 A9 A0 00 90 00 BD [16:37:05]RAPDU: 90 00 [16:37:05]wFMCommunicate OK [16:37:05]SAM_PROTO_ClearQueue done [16:37:05]KKMCreateOFDPacket [16:37:05]OFDProtocolAddRootSTLVToBuf [16:37:05]FM_MakeSignedData [16:37:05]FM_MakeSignedData [16:37:05]SAM_PROTO_SignData [16:37:05]wFMCommunicate request_size=4 [16:37:05]MH_SAM_APDU [16:37:05]CAPDU: 80 0D 01 02 [16:37:05]Write to MH i2c: E2 08 00 AA A0 80 0D 01 02 00 00 00 00 C3 [16:37:05]Write i2c OK [16:37:05]MH_I2C_Read... [16:37:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:05]Read from MH i2c: E2 [16:37:05]MH_I2C_Read... [16:37:05]Read from MH i2c: E2 03 00 [16:37:05]MH_I2C_Read... [16:37:05]Read from MH i2c: E2 03 00 AA A0 00 90 00 BE [16:37:05]RAPDU: 90 00 [16:37:05]wFMCommunicate OK [16:37:05]wFMCommunicate request_size=255 [16:37:05]MH_SAM_APDU [16:37:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5D 01 00 00 F4 03 04 00 36 23 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B7 FA 03 00 35 04 06 00 1E [16:37:05]Write to MH i2c: E2 02 01 AB A0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5D 01 00 00 F4 03 04 00 36 23 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B7 FA 03 00 35 04 06 00 1E 00 00 B3 [16:37:05]Write i2c OK [16:37:05]MH_I2C_Read... [16:37:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:06]Read from MH i2c: E2 [16:37:06]MH_I2C_Read... [16:37:06]Read from MH i2c: E2 03 00 [16:37:06]MH_I2C_Read... [16:37:06]Read from MH i2c: E2 03 00 AB A0 00 90 00 BF [16:37:06]RAPDU: 90 00 [16:37:06]wFMCommunicate OK [16:37:06]wFMCommunicate request_size=10 [16:37:06]MH_SAM_APDU [16:37:06]CAPDU: 80 0D 02 02 05 9E A6 7A 9E 9C [16:37:06]Write to MH i2c: E2 0D 00 AC A0 80 0D 02 02 05 00 9E A6 7A 9E 9C 00 00 C8 [16:37:06]Write i2c OK [16:37:06]MH_I2C_Read... [16:37:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:06]Read from MH i2c: E2 [16:37:06]MH_I2C_Read... [16:37:06]Read from MH i2c: E2 03 00 [16:37:06]MH_I2C_Read... [16:37:06]Read from MH i2c: E2 03 00 AC A0 00 90 00 C0 [16:37:06]RAPDU: 90 00 [16:37:06]wFMCommunicate OK [16:37:06]wFMCommunicate request_size=4 [16:37:06]MH_SAM_APDU [16:37:06]CAPDU: 80 0D 03 02 [16:37:06]Write to MH i2c: E2 08 00 AD A0 80 0D 03 02 00 00 00 00 C8 [16:37:06]Write i2c OK [16:37:06]MH_I2C_Read... [16:37:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:06]Read from MH i2c: E2 [16:37:06]MH_I2C_Read... [16:37:06]Read from MH i2c: E2 0B 00 [16:37:06]MH_I2C_Read... [16:37:06]Read from MH i2c: E2 0B 00 AD A0 00 6D F3 10 23 53 EE 9F 04 90 00 40 [16:37:06]RAPDU: 6D F3 10 23 53 EE 9F 04 90 00 [16:37:06]wFMCommunicate OK [16:37:06]SAM_PROTO_SignData done [16:37:06]FM_MakeSignedData done [16:37:06]CreateOFDProtocolMessage [16:37:06]wFMCommunicate request_size=4 [16:37:06]MH_SAM_APDU [16:37:06]CAPDU: 80 11 00 00 [16:37:06]Write to MH i2c: E2 08 00 AE A0 80 11 00 00 00 00 00 00 C8 [16:37:06]Write i2c OK [16:37:06]MH_I2C_Read... [16:37:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:06]Read from MH i2c: E2 [16:37:06]MH_I2C_Read... [16:37:06]Read from MH i2c: E2 17 00 [16:37:06]MH_I2C_Read... [16:37:06]Read from MH i2c: E2 17 00 AE A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 15 [16:37:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:37:06]wFMCommunicate OK [16:37:06]CreateOFDProtocolMessage done [16:37:06]OFDSenderStorePacket 260791 [16:37:06]StoreOFDPacket docnum=260791 [16:37:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 58 FC 07 01 24 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5D 01 00 00 F4 03 04 00 36 23 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B7 FA 03 00 35 04 06 00 1E 9E A6 7A 9E 9C 6D F3 10 23 53 EE 9F 04 [16:37:06]CheckFolder [16:37:06]dirname=/storage/ofd_packets [16:37:06]CheckFolder done [16:37:06]ProducePacketName [16:37:06]name=ofd_packets/00260791 [16:37:06]NVStorageSaveData ofd_packets/00260791 [16:37:06]File name is /storage/ofd_packets/00260791 [16:37:06]Write 301 bytes [16:37:06]NVStorageSaveData done [16:37:06]OFDSenderStorePacket done [16:37:06]KKMCreateOFDPacket done [16:37:06]NVStorageSaveData kkm_last_timestamp [16:37:06]File name is /storage/kkm_last_timestamp [16:37:06]Write 4 bytes [16:37:06]NVStorageSaveData done [16:37:06]ExternCall_PrintAddStr [16:37:06]wPrintStart [16:37:06]Write to MH i2c: 01 00 00 AF A0 4F [16:37:06]Write i2c OK [16:37:06]MH_I2C_Read... [16:37:06]Read from MH i2c: 01 [16:37:06]MH_I2C_Read... [16:37:06]Read from MH i2c: 01 07 00 [16:37:06]MH_I2C_Read... [16:37:06]Read from MH i2c: 01 07 00 AF A0 00 00 00 00 00 FF 0F 64 [16:37:06]RasterBufferAndPrint [16:37:06]line Счет N : (1)1036344 [16:37:06]line ИНН: 02508201610067 [16:37:06]line Контрольно-Кассовый Чек [16:37:06]line ПРОДАЖА [16:37:06]line ТРК (МРК, ГНК) : 42 [16:37:06]line Товар: 2710124130 [16:37:06]line Аи-92-К-5 [16:37:06]line 7.380 * 67.80 [16:37:06]line = 500.36 [16:37:06]line НДС 12% НСП 1% [16:37:06]line > о реализуемом товаре [16:37:06]line ОКРУГЛЕНИЕ: -0.36 [16:37:06]line ИТОГО: 500.00 [16:37:06]line Внесено: 500.00 [16:37:06]line СДАЧА: 0.00 [16:37:06]line НСП 1% : 4.43 [16:37:06]line НДС 12% : 53.14 [16:37:06]line Наличными: 500.00 [16:37:06]line Безнал.: 0.00 [16:37:06]line Место: АЗС № 94 "Партнер Нефть" [16:37:06]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [16:37:06]line СНО: Общий режим [16:37:06]line Чек 349 18.08.2024 16:37 [16:37:06]line Смена: 449 ФФД: 1.0 [16:37:06]line ЗНМ: 0300000099 [16:37:06]line РНМ: 0000000000091865 [16:37:06]line Версия ККМ: 001 [16:37:06]line ФМ: 0000000000871820 [16:37:06]line ФД: 260791 [16:37:06]line ФПД: 33666746719900 [16:37:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T163710&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260791&fm=33666746719900&tin=02508201610067®Number=0000000000091865&sum=50000 [16:37:06]written 0, free lines is 4095 [16:37:06]OFD Sender: Processing packet 260791 [packets to send 192, broken 191] [16:37:06]ProducePacketName [16:37:06]name=ofd_packets/00260791 [16:37:06]OFD Sender: To server: pG, [16:37:06]CommunicateWithHost lk.salyk.kg:30040 [16:37:06]ConnectInit lk.salyk.kg [16:37:06]Connected sock=10 [16:37: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 30 0F 01 00 00 58 FC 07 01 24 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5D 01 00 00 F4 03 04 00 36 23 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B7 FA 03 00 35 04 06 00 1E 9E A6 7A 9E 9C 6D F3 10 23 53 EE 9F 04 [16:37: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 30 4F 00 00 00 48 F1 47 00 26 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B7 FA 03 00 F4 03 04 00 8A CC C1 66 B6 04 01 00 00 DF E9 EF 52 04 45 75 5E [16:37:06]CommunicateWithHost err = 0 [16:37:06]CheckOFDResponse [16:37:06]1017 (14) - 77093643461234 [16:37:06]1041 (16) - 0000000000871820 [16:37:06]1040 (4) - 260791 [16:37:06]1012 (4) - 18.08.2024 10:27 [16:37:06]1206 (1) - 0 [16:37:06]OFD Sender: Remove packet 260791 [16:37:06]ProducePacketName [16:37:06]name=ofd_packets/00260791 [16:37:06]NVStorageDeleteData [16:37:06]Write to MH i2c: 01 00 00 DA A0 7A [16:37:06]Write i2c OK [16:37:06]MH_I2C_Read... [16:37:06]Read from MH i2c: 01 [16:37:06]MH_I2C_Read... [16:37:06]Read from MH i2c: 01 07 00 [16:37:06]MH_I2C_Read... [16:37:06]Read from MH i2c: 01 07 00 DA A0 00 00 00 00 00 6C 0C F9 [16:37:06]RasterBufferAndPrint [16:37:06]line [16:37:06]line [16:37:06]line [16:37:06]line [16:37:06]line [16:37:06]written 0, free lines is 3184 [16:37:06]MH_Cut [16:37:06]Write to MH i2c: D1 01 00 E1 A0 01 53 [16:37:06]Write i2c OK [16:37:06]MH_I2C_Read... [16:37:06]Read from MH i2c: D1 [16:37:06]MH_I2C_Read... [16:37:06]Read from MH i2c: D1 01 00 [16:37:06]MH_I2C_Read... [16:37:06]Read from MH i2c: D1 01 00 E1 A0 00 52 [16:37:06]Write to MH i2c: 01 00 00 E2 A0 82 [16:37:06]Write i2c OK [16:37:06]MH_I2C_Read... [16:37:07]OFD Sender: No OFD packet to send [16:37:07]*** Cut start [16:37:07]*** Purtial cut [16:37:07]*** Stage 1: CUTSNS_PIN = 1 [16:37:09]Read from MH i2c: 01 [16:37:09]MH_I2C_Read... [16:37:09]*** Stop cut motor [16:37:10]*** Cut end [16:37:10]Read from MH i2c: 01 07 00 [16:37:10]MH_I2C_Read... [16:37:10]Read from MH i2c: 01 07 00 E2 A0 00 00 00 00 00 FF 0F 97 [16:37:10]process_action close_receipt done [16:37:10]requested_data is exist [16:37:10]produce_requested_data [16:37:10]requested_item fm.sn is exist - process it [16:37:10]wFMCommunicate request_size=4 [16:37:10]MH_SAM_APDU [16:37:10]CAPDU: 80 11 00 00 [16:37:10]Write to MH i2c: E2 08 00 E3 A0 80 11 00 00 00 00 00 00 FD [16:37:10]Write i2c OK [16:37:10]MH_I2C_Read... [16:37:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:10]Read from MH i2c: E2 [16:37:10]MH_I2C_Read... [16:37:10]Read from MH i2c: E2 17 00 [16:37:10]MH_I2C_Read... [16:37:10]Read from MH i2c: E2 17 00 E3 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 4A [16:37:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:37:10]wFMCommunicate OK [16:37:10]requested_item fd.num is exist - process it [16:37:10]SAM_PROTO_GetFieldsCounters [16:37:10]wFMCommunicate request_size=4 [16:37:10]MH_SAM_APDU [16:37:10]CAPDU: 80 13 00 00 [16:37:10]Write to MH i2c: E2 08 00 E4 A0 80 13 00 00 00 00 00 00 00 [16:37:10]Write i2c OK [16:37:10]MH_I2C_Read... [16:37:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:10]Read from MH i2c: E2 [16:37:10]MH_I2C_Read... [16:37:10]Read from MH i2c: E2 62 00 [16:37:10]MH_I2C_Read... [16:37:10]Read from MH i2c: E2 62 00 E4 A0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B7 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 AF [16:37: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B7 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:37:10]wFMCommunicate OK [16:37:10]SAM_PROTO_GetFieldsCounters done [16:37:10]requested_item shift.num is exist - process it [16:37:10]requested_item shift.opened is exist - process it [16:37:10]req_shift_opened [16:37:10]FM_GetShiftState [16:37:10]SAM_PROTO_GetShiftState [16:37:10]wFMCommunicate request_size=4 [16:37:10]MH_SAM_APDU [16:37:10]CAPDU: 80 13 01 00 [16:37:10]Write to MH i2c: E2 08 00 E5 A0 80 13 01 00 00 00 00 00 02 [16:37:10]Write i2c OK [16:37:10]MH_I2C_Read... [16:37:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:10]Read from MH i2c: E2 [16:37:10]MH_I2C_Read... [16:37:10]Read from MH i2c: E2 0E 00 [16:37:10]MH_I2C_Read... [16:37:10]Read from MH i2c: E2 0E 00 E5 A0 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 3F [16:37:10]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:37:10]wFMCommunicate OK [16:37:10]SAM_PROTO_GetShiftState done [16:37:10]FM_GetShiftState done [16:37:10]req_shift_opened done [16:37:10]requested_item shift.open_date is exist - process it [16:37:10]req_shift_open_date [16:37:10]req_shift_open_date done [16:37:10]produce_requested_data done [16:37:10]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260791,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [16:37:10]process_action_free close_receipt [16:37:10]json_value_free [16:37:10]json_value_free done [16:37:10]process_json_proto returns [16:37:10]Send response to host [16:37:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260791,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [16:37:10]free response buf [16:37:10]execute_script done [16:37:10]execute_script returns [16:37:10]free content buf [16:37:10]Sock 7.Close socket [16:37:10]Sock 7.Thread stoped [16:37:12]OFD Sender: No OFD packet to send [16:37:13]accept exits with 9 [16:37:13]New connection [16:37:13]New thread 3066473828 created [16:37:13]Thread 3066617188 joined [16:37:13]Waiting for new connection... [16:37:13] Sock 9.Parse request [16:37:13]Sock 9.Check first char [16:37:13]Sock 9.First char is OK [16:37:13]request: POST /json_proto HTTP/1.0 [16:37:13]Method: POST [16:37:13]URL: /json_proto [16:37:13]Method is POST - this is cgi request [16:37:13]url: /json_proto [16:37:13]query_string will be loaded in cgi processing [16:37:13]execute_cgi json_proto POST (null) [16:37:13]execute_cgi path=json_proto method=POST [16:37:13]POST find Content-Length [16:37:13]Host: 172.17.55.133:8080 [16:37:13]Content-Length: 683 [16:37:13]Content-Type: application/json [16:37:13] [16:37:13]POST finish read [16:37:13]Found Content-Length = 683 [16:37:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:13]execute_script... [16:37:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:13]POST & json_proto [16:37:13]process_json_proto [16:37:13]json parsed OK: [16:37:13]protocol is kg_v1.0 [16:37:13]action value=close_receipt [16:37:13]process_action close_receipt [16:37:13]cmd_close_receipt [16:37:13]MH_GetDate [16:37:13]Write to MH i2c: F0 00 00 E6 A0 75 [16:37:13]Write i2c OK [16:37:13]MH_I2C_Read... [16:37:13]Read from MH i2c: F0 [16:37:13]MH_I2C_Read... [16:37:13]Read from MH i2c: F0 09 00 [16:37:13]MH_I2C_Read... [16:37:13]Read from MH i2c: F0 09 00 E6 A0 00 3F 23 C2 66 34 48 D8 65 C1 [16:37:13]GetLastDocTimeStamp 1723999030 [16:37:13]current date 1723999039 [16:37:13]FM_GetShiftState [16:37:13]SAM_PROTO_GetShiftState [16:37:13]wFMCommunicate request_size=4 [16:37:13]MH_SAM_APDU [16:37:13]CAPDU: 80 13 01 00 [16:37:13]Write to MH i2c: E2 08 00 E7 A0 80 13 01 00 00 00 00 00 04 [16:37:13]Write i2c OK [16:37:13]MH_I2C_Read... [16:37:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:13]Read from MH i2c: E2 [16:37:13]MH_I2C_Read... [16:37:13]Read from MH i2c: E2 0E 00 [16:37:13]MH_I2C_Read... [16:37:13]Read from MH i2c: E2 0E 00 E7 A0 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 41 [16:37:13]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:37:13]wFMCommunicate OK [16:37:13]SAM_PROTO_GetShiftState done [16:37:13]FM_GetShiftState done [16:37:13]opened in 1723940556 [16:37:13]opened+sec_in_day 1724026956 [16:37:13]quantity*price = 100005 [16:37:13]sum+1 = 100006 [16:37:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 350 18.08.2024 16:37 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260792 ФПД: 137279513671417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T163719&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260792&fm=137279513671417&tin=02508201610067®Number=0000000000091865&sum=100000 [16:37:14]StoreToDocumentArchive [16:37:14]shift 449 fd 260792 [16:37:14]save to /storage/0449/doc_00260792 [16:37:14]save last doc name /storage/0449/doc_00260792 to /storage/kkm_last_doc_name [16:37:14]save OK [16:37:14]Clear old archive folders... [16:37:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:37:14]tlvbuf is 004A1EA0 [16:37:14]SAM_PROTO_ClearQueue [16:37:14]wFMCommunicate request_size=4 [16:37:14]MH_SAM_APDU [16:37:14]CAPDU: 80 09 00 00 [16:37:14]Write to MH i2c: E2 08 00 F4 A0 80 09 00 00 00 00 00 00 06 [16:37:14]Write i2c OK [16:37:14]MH_I2C_Read... [16:37:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:14]Read from MH i2c: E2 [16:37:14]MH_I2C_Read... [16:37:14]Read from MH i2c: E2 03 00 [16:37:14]MH_I2C_Read... [16:37:14]Read from MH i2c: E2 03 00 F4 A0 00 90 00 08 [16:37:14]RAPDU: 90 00 [16:37:14]wFMCommunicate OK [16:37:14]SAM_PROTO_ClearQueue done [16:37:14]KKMCreateOFDPacket [16:37:14]OFDProtocolAddRootSTLVToBuf [16:37:14]FM_MakeSignedData [16:37:14]FM_MakeSignedData [16:37:14]SAM_PROTO_SignData [16:37:14]wFMCommunicate request_size=4 [16:37:14]MH_SAM_APDU [16:37:14]CAPDU: 80 0D 01 02 [16:37:14]Write to MH i2c: E2 08 00 F5 A0 80 0D 01 02 00 00 00 00 0E [16:37:14]Write i2c OK [16:37:14]MH_I2C_Read... [16:37:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:14]Read from MH i2c: E2 [16:37:14]MH_I2C_Read... [16:37:14]Read from MH i2c: E2 03 00 [16:37:14]MH_I2C_Read... [16:37:14]Read from MH i2c: E2 03 00 F5 A0 00 90 00 09 [16:37:14]RAPDU: 90 00 [16:37:14]wFMCommunicate OK [16:37:14]wFMCommunicate request_size=255 [16:37:14]MH_SAM_APDU [16:37:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 3F 23 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B8 FA 03 00 35 04 06 00 7C [16:37:14]Write to MH i2c: E2 02 01 F6 A0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 3F 23 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B8 FA 03 00 35 04 06 00 7C 00 00 F6 [16:37:14]Write i2c OK [16:37:14]MH_I2C_Read... [16:37:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:15]Read from MH i2c: E2 [16:37:15]MH_I2C_Read... [16:37:15]Read from MH i2c: E2 03 00 [16:37:15]MH_I2C_Read... [16:37:15]Read from MH i2c: E2 03 00 F6 A0 00 90 00 0A [16:37:15]RAPDU: 90 00 [16:37:15]wFMCommunicate OK [16:37:15]wFMCommunicate request_size=10 [16:37:15]MH_SAM_APDU [16:37:15]CAPDU: 80 0D 02 02 05 DA E0 A5 B6 F9 [16:37:15]Write to MH i2c: E2 0D 00 F7 A0 80 0D 02 02 05 00 DA E0 A5 B6 F9 00 00 29 [16:37:15]Write i2c OK [16:37:15]MH_I2C_Read... [16:37:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:15]Read from MH i2c: E2 [16:37:15]MH_I2C_Read... [16:37:15]Read from MH i2c: E2 03 00 [16:37:15]MH_I2C_Read... [16:37:15]Read from MH i2c: E2 03 00 F7 A0 00 90 00 0B [16:37:15]RAPDU: 90 00 [16:37:15]wFMCommunicate OK [16:37:15]wFMCommunicate request_size=4 [16:37:15]MH_SAM_APDU [16:37:15]CAPDU: 80 0D 03 02 [16:37:15]Write to MH i2c: E2 08 00 F8 A0 80 0D 03 02 00 00 00 00 13 [16:37:15]Write i2c OK [16:37:15]MH_I2C_Read... [16:37:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:15]Read from MH i2c: E2 [16:37:15]MH_I2C_Read... [16:37:15]Read from MH i2c: E2 0B 00 [16:37:15]MH_I2C_Read... [16:37:15]Read from MH i2c: E2 0B 00 F8 A0 00 F9 57 D0 3A E2 D5 1A EC 90 00 2B [16:37:15]RAPDU: F9 57 D0 3A E2 D5 1A EC 90 00 [16:37:15]wFMCommunicate OK [16:37:15]SAM_PROTO_SignData done [16:37:15]FM_MakeSignedData done [16:37:15]CreateOFDProtocolMessage [16:37:15]wFMCommunicate request_size=4 [16:37:15]MH_SAM_APDU [16:37:15]CAPDU: 80 11 00 00 [16:37:15]Write to MH i2c: E2 08 00 F9 A0 80 11 00 00 00 00 00 00 13 [16:37:15]Write i2c OK [16:37:15]MH_I2C_Read... [16:37:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:15]Read from MH i2c: E2 [16:37:15]MH_I2C_Read... [16:37:15]Read from MH i2c: E2 17 00 [16:37:15]MH_I2C_Read... [16:37:15]Read from MH i2c: E2 17 00 F9 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 60 [16:37:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:37:15]wFMCommunicate OK [16:37:15]CreateOFDProtocolMessage done [16:37:15]OFDSenderStorePacket 260792 [16:37:15]StoreOFDPacket docnum=260792 [16:37:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 AC 6E 07 01 9F 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 3F 23 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B8 FA 03 00 35 04 06 00 7C DA E0 A5 B6 F9 F9 57 D0 3A E2 D5 1A EC [16:37:15]CheckFolder [16:37:15]dirname=/storage/ofd_packets [16:37:15]CheckFolder done [16:37:15]ProducePacketName [16:37:15]name=ofd_packets/00260792 [16:37:15]NVStorageSaveData ofd_packets/00260792 [16:37:15]File name is /storage/ofd_packets/00260792 [16:37:15]Write 301 bytes [16:37:15]NVStorageSaveData done [16:37:15]OFDSenderStorePacket done [16:37:15]KKMCreateOFDPacket done [16:37:15]NVStorageSaveData kkm_last_timestamp [16:37:15]File name is /storage/kkm_last_timestamp [16:37:15]Write 4 bytes [16:37:15]NVStorageSaveData done [16:37:15]ExternCall_PrintAddStr [16:37:15]wPrintStart [16:37:15]Write to MH i2c: 01 00 00 FA A0 9A [16:37:15]Write i2c OK [16:37:15]MH_I2C_Read... [16:37:15]Read from MH i2c: 01 [16:37:15]MH_I2C_Read... [16:37:15]Read from MH i2c: 01 07 00 [16:37:15]MH_I2C_Read... [16:37:15]Read from MH i2c: 01 07 00 FA A0 00 00 00 00 00 FF 0F AF [16:37:15]RasterBufferAndPrint [16:37:15]line Счет N : (1)1036343 [16:37:15]line ИНН: 02508201610067 [16:37:15]line Контрольно-Кассовый Чек [16:37:15]line ПРОДАЖА [16:37:15]line ТРК (МРК, ГНК) : 12 [16:37:15]line Товар: 2710124130 [16:37:15]line Аи-92-К-5 [16:37:15]line 14.750 * 67.80 [16:37:15]line = 1000.05 [16:37:15]line НДС 12% НСП 1% [16:37:15]line > о реализуемом товаре [16:37:15]line ОКРУГЛЕНИЕ: -0.05 [16:37:15]line ИТОГО: 1000.00 [16:37:15]line Внесено: 1000.00 [16:37:15]line СДАЧА: 0.00 [16:37:15]line НСП 1% : 8.85 [16:37:15]line НДС 12% : 106.20 [16:37:15]line Наличными: 1000.00 [16:37:15]line Безнал.: 0.00 [16:37:15]line Место: АЗС № 94 "Партнер Нефть" [16:37:15]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [16:37:15]line СНО: Общий режим [16:37:15]line Чек 350 18.08.2024 16:37 [16:37:15]line Смена: 449 ФФД: 1.0 [16:37:15]line ЗНМ: 0300000099 [16:37:15]line РНМ: 0000000000091865 [16:37:15]line Версия ККМ: 001 [16:37:15]line ФМ: 0000000000871820 [16:37:15]line ФД: 260792 [16:37:15]line ФПД: 137279513671417 [16:37:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T163719&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260792&fm=137279513671417&tin=02508201610067®Number=0000000000091865&sum=100000 [16:37:15]OFD Sender: Processing packet 260792 [packets to send 192, broken 191] [16:37:15]ProducePacketName [16:37:15]name=ofd_packets/00260792 [16:37:15]OFD Sender: To server: pG, [16:37:15]CommunicateWithHost lk.salyk.kg:30040 [16:37:15]ConnectInit lk.salyk.kg [16:37:15]written 0, free lines is 4095 [16:37:15]Connected sock=10 [16:37: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 30 0F 01 00 00 AC 6E 07 01 9F 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 3F 23 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B8 FA 03 00 35 04 06 00 7C DA E0 A5 B6 F9 F9 57 D0 3A E2 D5 1A EC [16:37: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 30 4F 00 00 00 B3 B1 47 00 6F 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 30 10 04 04 00 B8 FA 03 00 F4 03 04 00 93 CC C1 66 B6 04 01 00 00 42 49 0E 74 19 62 4A C9 [16:37:15]CommunicateWithHost err = 0 [16:37:15]CheckOFDResponse [16:37:15]1017 (14) - 77093643461234 [16:37:15]1041 (16) - 0000000000871820 [16:37:15]1040 (4) - 260792 [16:37:15]1012 (4) - 18.08.2024 10:27 [16:37:15]1206 (1) - 0 [16:37:15]OFD Sender: Remove packet 260792 [16:37:15]ProducePacketName [16:37:15]name=ofd_packets/00260792 [16:37:15]NVStorageDeleteData [16:37:15]Write to MH i2c: 01 00 00 25 A1 C6 [16:37:15]Write i2c OK [16:37:15]MH_I2C_Read... [16:37:15]Read from MH i2c: 01 [16:37:15]MH_I2C_Read... [16:37:15]Read from MH i2c: 01 07 00 [16:37:15]MH_I2C_Read... [16:37:15]Read from MH i2c: 01 07 00 25 A1 00 00 00 00 00 74 0C 4D [16:37:15]RasterBufferAndPrint [16:37:15]line [16:37:15]line [16:37:15]line [16:37:15]line [16:37:15]line [16:37:15]written 0, free lines is 3193 [16:37:15]MH_Cut [16:37:15]Write to MH i2c: D1 01 00 2C A1 01 9F [16:37:15]Write i2c OK [16:37:15]MH_I2C_Read... [16:37:15]Read from MH i2c: D1 [16:37:15]MH_I2C_Read... [16:37:15]Read from MH i2c: D1 01 00 [16:37:15]MH_I2C_Read... [16:37:15]Read from MH i2c: D1 01 00 2C A1 00 9E [16:37:15]Write to MH i2c: 01 00 00 2D A1 CE [16:37:15]Write i2c OK [16:37:15]MH_I2C_Read... [16:37:16]OFD Sender: No OFD packet to send [16:37:17]*** Cut start [16:37:17]*** Purtial cut [16:37:17]*** Stage 1: CUTSNS_PIN = 1 [16:37:19]Read from MH i2c: 01 [16:37:19]MH_I2C_Read... [16:37:19]*** Stop cut motor [16:37:19]*** Cut end [16:37:19]Read from MH i2c: 01 07 00 [16:37:19]MH_I2C_Read... [16:37:19]Read from MH i2c: 01 07 00 2D A1 00 00 00 00 00 FF 0F E3 [16:37:19]process_action close_receipt done [16:37:19]requested_data is exist [16:37:19]produce_requested_data [16:37:19]requested_item fm.sn is exist - process it [16:37:19]wFMCommunicate request_size=4 [16:37:19]MH_SAM_APDU [16:37:19]CAPDU: 80 11 00 00 [16:37:19]Write to MH i2c: E2 08 00 2E A1 80 11 00 00 00 00 00 00 49 [16:37:19]Write i2c OK [16:37:19]MH_I2C_Read... [16:37:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:19]Read from MH i2c: E2 [16:37:19]MH_I2C_Read... [16:37:19]Read from MH i2c: E2 17 00 [16:37:19]MH_I2C_Read... [16:37:19]Read from MH i2c: E2 17 00 2E A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 96 [16:37:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:37:19]wFMCommunicate OK [16:37:19]requested_item fd.num is exist - process it [16:37:19]SAM_PROTO_GetFieldsCounters [16:37:19]wFMCommunicate request_size=4 [16:37:19]MH_SAM_APDU [16:37:19]CAPDU: 80 13 00 00 [16:37:19]Write to MH i2c: E2 08 00 2F A1 80 13 00 00 00 00 00 00 4C [16:37:19]Write i2c OK [16:37:19]MH_I2C_Read... [16:37:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:19]Read from MH i2c: E2 [16:37:19]MH_I2C_Read... [16:37:19]Read from MH i2c: E2 62 00 [16:37:19]MH_I2C_Read... [16:37:19]Read from MH i2c: E2 62 00 2F A1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B8 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 FF [16:37: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B8 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:37:19]wFMCommunicate OK [16:37:19]SAM_PROTO_GetFieldsCounters done [16:37:19]requested_item shift.num is exist - process it [16:37:19]requested_item shift.opened is exist - process it [16:37:19]req_shift_opened [16:37:19]FM_GetShiftState [16:37:19]SAM_PROTO_GetShiftState [16:37:19]wFMCommunicate request_size=4 [16:37:19]MH_SAM_APDU [16:37:19]CAPDU: 80 13 01 00 [16:37:19]Write to MH i2c: E2 08 00 30 A1 80 13 01 00 00 00 00 00 4E [16:37:19]Write i2c OK [16:37:19]MH_I2C_Read... [16:37:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:19]Read from MH i2c: E2 [16:37:19]MH_I2C_Read... [16:37:19]Read from MH i2c: E2 0E 00 [16:37:19]MH_I2C_Read... [16:37:19]Read from MH i2c: E2 0E 00 30 A1 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 8B [16:37:19]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:37:19]wFMCommunicate OK [16:37:19]SAM_PROTO_GetShiftState done [16:37:19]FM_GetShiftState done [16:37:19]req_shift_opened done [16:37:19]requested_item shift.open_date is exist - process it [16:37:19]req_shift_open_date [16:37:19]req_shift_open_date done [16:37:19]produce_requested_data done [16:37:19]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260792,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [16:37:19]process_action_free close_receipt [16:37:19]json_value_free [16:37:19]json_value_free done [16:37:19]process_json_proto returns [16:37:19]Send response to host [16:37:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260792,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [16:37:19]free response buf [16:37:19]execute_script done [16:37:19]execute_script returns [16:37:19]free content buf [16:37:19]Sock 9.Close socket [16:37:19]Sock 9.Thread stoped [16:37:21]OFD Sender: No OFD packet to send [16:37:26]OFD Sender: No OFD packet to send [16:37:31]OFD Sender: No OFD packet to send [16:37:36]OFD Sender: No OFD packet to send [16:37:41]OFD Sender: No OFD packet to send [16:37:46]OFD Sender: No OFD packet to send [16:37:51]OFD Sender: No OFD packet to send [16:37:56]OFD Sender: No OFD packet to send [16:38:01]OFD Sender: No OFD packet to send [16:38:01]accept exits with 7 [16:38:01]New connection [16:38:01]New thread 3066617188 created [16:38:01]Thread 3066473828 joined [16:38:01]Waiting for new connection... [16:38:01] Sock 7.Parse request [16:38:01]Sock 7.Check first char [16:38:01]Sock 7.First char is OK [16:38:01]request: POST /json_proto HTTP/1.0 [16:38:01]Method: POST [16:38:01]URL: /json_proto [16:38:01]Method is POST - this is cgi request [16:38:01]url: /json_proto [16:38:01]query_string will be loaded in cgi processing [16:38:01]execute_cgi json_proto POST (null) [16:38:01]execute_cgi path=json_proto method=POST [16:38:01]POST find Content-Length [16:38:01]Host: 172.17.55.133:8080 [16:38:01]Content-Length: 683 [16:38:01]Content-Type: application/json [16:38:01] [16:38:01]POST finish read [16:38:01]Found Content-Length = 683 [16:38:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:01]execute_script... [16:38: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)1036345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:01]POST & json_proto [16:38:01]process_json_proto [16:38:01]json parsed OK: [16:38:01]protocol is kg_v1.0 [16:38:01]action value=close_receipt [16:38:01]process_action close_receipt [16:38:01]cmd_close_receipt [16:38:01]MH_GetDate [16:38:01]Write to MH i2c: F0 00 00 31 A1 C1 [16:38:01]Write i2c OK [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: F0 [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: F0 09 00 [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: F0 09 00 31 A1 00 6F 23 C2 66 34 48 D8 65 3D [16:38:01]GetLastDocTimeStamp 1723999039 [16:38:01]current date 1723999087 [16:38:01]FM_GetShiftState [16:38:01]SAM_PROTO_GetShiftState [16:38:01]wFMCommunicate request_size=4 [16:38:01]MH_SAM_APDU [16:38:01]CAPDU: 80 13 01 00 [16:38:01]Write to MH i2c: E2 08 00 32 A1 80 13 01 00 00 00 00 00 50 [16:38:01]Write i2c OK [16:38:01]MH_I2C_Read... [16:38:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:01]Read from MH i2c: E2 [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: E2 0E 00 [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: E2 0E 00 32 A1 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 8D [16:38:01]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:38:01]wFMCommunicate OK [16:38:01]SAM_PROTO_GetShiftState done [16:38:01]FM_GetShiftState done [16:38:01]opened in 1723940556 [16:38:01]opened+sec_in_day 1724026956 [16:38:01]quantity*price = 50063 [16:38:01]sum+1 = 50064 [16:38:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 351 18.08.2024 16:38 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260793 ФПД: 82570564059303 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T163807&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260793&fm=82570564059303&tin=02508201610067®Number=0000000000091865&sum=50000 [16:38:02]StoreToDocumentArchive [16:38:02]shift 449 fd 260793 [16:38:02]save to /storage/0449/doc_00260793 [16:38:02]save last doc name /storage/0449/doc_00260793 to /storage/kkm_last_doc_name [16:38:02]save OK [16:38:02]Clear old archive folders... [16:38:02]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:38:02]tlvbuf is 004333C0 [16:38:02]SAM_PROTO_ClearQueue [16:38:02]wFMCommunicate request_size=4 [16:38:02]MH_SAM_APDU [16:38:02]CAPDU: 80 09 00 00 [16:38:02]Write to MH i2c: E2 08 00 3F A1 80 09 00 00 00 00 00 00 52 [16:38:02]Write i2c OK [16:38:02]MH_I2C_Read... [16:38:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:38:02]Read from MH i2c: E2 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: E2 03 00 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: E2 03 00 3F A1 00 90 00 54 [16:38:02]RAPDU: 90 00 [16:38:02]wFMCommunicate OK [16:38:02]SAM_PROTO_ClearQueue done [16:38:02]KKMCreateOFDPacket [16:38:02]OFDProtocolAddRootSTLVToBuf [16:38:02]FM_MakeSignedData [16:38:02]FM_MakeSignedData [16:38:02]SAM_PROTO_SignData [16:38:02]wFMCommunicate request_size=4 [16:38:02]MH_SAM_APDU [16:38:02]CAPDU: 80 0D 01 02 [16:38:02]Write to MH i2c: E2 08 00 40 A1 80 0D 01 02 00 00 00 00 5A [16:38:02]Write i2c OK [16:38:02]MH_I2C_Read... [16:38:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:38:02]Read from MH i2c: E2 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: E2 03 00 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: E2 03 00 40 A1 00 90 00 55 [16:38:02]RAPDU: 90 00 [16:38:02]wFMCommunicate OK [16:38:02]wFMCommunicate request_size=255 [16:38:02]MH_SAM_APDU [16:38:02]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 6F 23 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B9 FA 03 00 35 04 06 00 [16:38:02]Write to MH i2c: E2 02 01 41 A1 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 6F 23 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B9 FA 03 00 35 04 06 00 00 00 DE [16:38:02]Write i2c OK [16:38:02]MH_I2C_Read... [16:38:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:03]Read from MH i2c: E2 [16:38:03]MH_I2C_Read... [16:38:03]Read from MH i2c: E2 03 00 [16:38:03]MH_I2C_Read... [16:38:03]Read from MH i2c: E2 03 00 41 A1 00 90 00 56 [16:38:03]RAPDU: 90 00 [16:38:03]wFMCommunicate OK [16:38:03]wFMCommunicate request_size=11 [16:38:03]MH_SAM_APDU [16:38:03]CAPDU: 80 0D 02 02 06 4B 18 F5 23 C0 A7 [16:38:03]Write to MH i2c: E2 0E 00 42 A1 80 0D 02 02 06 00 4B 18 F5 23 C0 A7 00 00 4B [16:38:03]Write i2c OK [16:38:03]MH_I2C_Read... [16:38:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:03]Read from MH i2c: E2 [16:38:03]MH_I2C_Read... [16:38:03]Read from MH i2c: E2 03 00 [16:38:03]MH_I2C_Read... [16:38:03]Read from MH i2c: E2 03 00 42 A1 00 90 00 57 [16:38:03]RAPDU: 90 00 [16:38:03]wFMCommunicate OK [16:38:03]wFMCommunicate request_size=4 [16:38:03]MH_SAM_APDU [16:38:03]CAPDU: 80 0D 03 02 [16:38:03]Write to MH i2c: E2 08 00 43 A1 80 0D 03 02 00 00 00 00 5F [16:38:03]Write i2c OK [16:38:03]MH_I2C_Read... [16:38:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:38:03]Read from MH i2c: E2 [16:38:03]MH_I2C_Read... [16:38:03]Read from MH i2c: E2 0B 00 [16:38:03]MH_I2C_Read... [16:38:03]Read from MH i2c: E2 0B 00 43 A1 00 87 62 E9 3B EE CD 0E 83 90 00 B9 [16:38:03]RAPDU: 87 62 E9 3B EE CD 0E 83 90 00 [16:38:03]wFMCommunicate OK [16:38:03]SAM_PROTO_SignData done [16:38:03]FM_MakeSignedData done [16:38:03]CreateOFDProtocolMessage [16:38:03]wFMCommunicate request_size=4 [16:38:03]MH_SAM_APDU [16:38:03]CAPDU: 80 11 00 00 [16:38:03]Write to MH i2c: E2 08 00 44 A1 80 11 00 00 00 00 00 00 5F [16:38:03]Write i2c OK [16:38:03]MH_I2C_Read... [16:38:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:03]Read from MH i2c: E2 [16:38:03]MH_I2C_Read... [16:38:03]Read from MH i2c: E2 17 00 [16:38:03]MH_I2C_Read... [16:38:03]Read from MH i2c: E2 17 00 44 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 AC [16:38:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:38:03]wFMCommunicate OK [16:38:03]CreateOFDProtocolMessage done [16:38:03]OFDSenderStorePacket 260793 [16:38:03]StoreOFDPacket docnum=260793 [16:38:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 44 BB 08 01 94 08 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 6F 23 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B9 FA 03 00 35 04 06 00 4B 18 F5 23 C0 A7 87 62 E9 3B EE CD 0E 83 [16:38:03]CheckFolder [16:38:03]dirname=/storage/ofd_packets [16:38:03]CheckFolder done [16:38:03]ProducePacketName [16:38:03]name=ofd_packets/00260793 [16:38:03]NVStorageSaveData ofd_packets/00260793 [16:38:03]File name is /storage/ofd_packets/00260793 [16:38:03]Write 302 bytes [16:38:03]NVStorageSaveData done [16:38:03]OFDSenderStorePacket done [16:38:03]KKMCreateOFDPacket done [16:38:03]NVStorageSaveData kkm_last_timestamp [16:38:03]File name is /storage/kkm_last_timestamp [16:38:03]Write 4 bytes [16:38:03]NVStorageSaveData done [16:38:03]ExternCall_PrintAddStr [16:38:03]wPrintStart [16:38:03]Write to MH i2c: 01 00 00 45 A1 E6 [16:38:03]Write i2c OK [16:38:03]MH_I2C_Read... [16:38:03]Read from MH i2c: 01 [16:38:03]MH_I2C_Read... [16:38:03]Read from MH i2c: 01 07 00 [16:38:03]MH_I2C_Read... [16:38:03]Read from MH i2c: 01 07 00 45 A1 00 00 00 00 00 FF 0F FB [16:38:03]RasterBufferAndPrint [16:38:03]line Счет N : (1)1036345 [16:38:03]line ИНН: 02508201610067 [16:38:03]line Контрольно-Кассовый Чек [16:38:03]line ПРОДАЖА [16:38:03]line ТРК (МРК, ГНК) : 33 [16:38:03]line Товар: 2710194210 [16:38:03]line ДТ(л)-К-4 [16:38:03]line 6.570 * 76.20 [16:38:03]line = 500.63 [16:38:03]line НДС 12% НСП 1% [16:38:03]line > о реализуемом товаре [16:38:03]line ОКРУГЛЕНИЕ: -0.63 [16:38:03]line ИТОГО: 500.00 [16:38:03]line Внесено: 500.00 [16:38:03]line СДАЧА: 0.00 [16:38:03]line НСП 1% : 4.43 [16:38:03]line НДС 12% : 53.16 [16:38:03]line Наличными: 500.00 [16:38:03]line Безнал.: 0.00 [16:38:03]line Место: АЗС № 94 "Партнер Нефть" [16:38:03]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [16:38:03]line СНО: Общий режим [16:38:03]line Чек 351 18.08.2024 16:38 [16:38:03]line Смена: 449 ФФД: 1.0 [16:38:03]line ЗНМ: 0300000099 [16:38:03]line РНМ: 0000000000091865 [16:38:03]line Версия ККМ: 001 [16:38:03]line ФМ: 0000000000871820 [16:38:03]line ФД: 260793 [16:38:03]line ФПД: 82570564059303 [16:38:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T163807&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260793&fm=82570564059303&tin=02508201610067®Number=0000000000091865&sum=50000 [16:38:03]OFD Sender: Processing packet 260793 [packets to send 192, broken 191] [16:38:03]ProducePacketName [16:38:03]name=ofd_packets/00260793 [16:38:03]OFD Sender: To server: pG, [16:38:03]CommunicateWithHost lk.salyk.kg:30040 [16:38:03]ConnectInit lk.salyk.kg [16:38:03]written 0, free lines is 4095 [16:38:03]Connected sock=10 [16:38: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 30 10 01 00 00 44 BB 08 01 94 08 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 6F 23 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B9 FA 03 00 35 04 06 00 4B 18 F5 23 C0 A7 87 62 E9 3B EE CD 0E 83 [16:38: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 30 4F 00 00 00 3A BC 47 00 50 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 30 10 04 04 00 B9 FA 03 00 F4 03 04 00 C3 CC C1 66 B6 04 01 00 00 C3 58 3F 92 A1 89 AA AC [16:38:03]CommunicateWithHost err = 0 [16:38:03]CheckOFDResponse [16:38:03]1017 (14) - 77093643461234 [16:38:03]1041 (16) - 0000000000871820 [16:38:03]1040 (4) - 260793 [16:38:03]1012 (4) - 18.08.2024 10:28 [16:38:03]1206 (1) - 0 [16:38:03]OFD Sender: Remove packet 260793 [16:38:03]ProducePacketName [16:38:03]name=ofd_packets/00260793 [16:38:03]NVStorageDeleteData [16:38:04]Write to MH i2c: 01 00 00 70 A1 11 [16:38:04]Write i2c OK [16:38:04]MH_I2C_Read... [16:38:04]Read from MH i2c: 01 [16:38:04]MH_I2C_Read... [16:38:04]Read from MH i2c: 01 07 00 [16:38:04]MH_I2C_Read... [16:38:04]Read from MH i2c: 01 07 00 70 A1 00 00 00 00 00 6C 0C 90 [16:38:04]RasterBufferAndPrint [16:38:04]line [16:38:04]line [16:38:04]line [16:38:04]line [16:38:04]line [16:38:04]written 0, free lines is 3183 [16:38:04]MH_Cut [16:38:04]Write to MH i2c: D1 01 00 77 A1 01 EA [16:38:04]Write i2c OK [16:38:04]MH_I2C_Read... [16:38:04]Read from MH i2c: D1 [16:38:04]MH_I2C_Read... [16:38:04]Read from MH i2c: D1 01 00 [16:38:04]MH_I2C_Read... [16:38:04]Read from MH i2c: D1 01 00 77 A1 00 E9 [16:38:04]Write to MH i2c: 01 00 00 78 A1 19 [16:38:04]Write i2c OK [16:38:04]MH_I2C_Read... [16:38:04]OFD Sender: No OFD packet to send [16:38:05]*** Cut start [16:38:05]*** Purtial cut [16:38:05]*** Stage 1: CUTSNS_PIN = 1 [16:38:07]Read from MH i2c: 01 [16:38:07]MH_I2C_Read... [16:38:07]*** Stop cut motor [16:38:07]*** Cut end [16:38:07]Read from MH i2c: 01 07 00 [16:38:07]MH_I2C_Read... [16:38:07]Read from MH i2c: 01 07 00 78 A1 00 00 00 00 00 FF 0F 2E [16:38:07]process_action close_receipt done [16:38:07]requested_data is exist [16:38:07]produce_requested_data [16:38:07]requested_item fm.sn is exist - process it [16:38:07]wFMCommunicate request_size=4 [16:38:07]MH_SAM_APDU [16:38:07]CAPDU: 80 11 00 00 [16:38:07]Write to MH i2c: E2 08 00 79 A1 80 11 00 00 00 00 00 00 94 [16:38:07]Write i2c OK [16:38:07]MH_I2C_Read... [16:38:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:07]Read from MH i2c: E2 [16:38:07]MH_I2C_Read... [16:38:07]Read from MH i2c: E2 17 00 [16:38:07]MH_I2C_Read... [16:38:07]Read from MH i2c: E2 17 00 79 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E1 [16:38:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:38:07]wFMCommunicate OK [16:38:07]requested_item fd.num is exist - process it [16:38:07]SAM_PROTO_GetFieldsCounters [16:38:07]wFMCommunicate request_size=4 [16:38:07]MH_SAM_APDU [16:38:07]CAPDU: 80 13 00 00 [16:38:07]Write to MH i2c: E2 08 00 7A A1 80 13 00 00 00 00 00 00 97 [16:38:07]Write i2c OK [16:38:07]MH_I2C_Read... [16:38:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:07]Read from MH i2c: E2 [16:38:07]MH_I2C_Read... [16:38:07]Read from MH i2c: E2 62 00 [16:38:07]MH_I2C_Read... [16:38:07]Read from MH i2c: E2 62 00 7A A1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B9 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 4E [16:38: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B9 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:38:07]wFMCommunicate OK [16:38:07]SAM_PROTO_GetFieldsCounters done [16:38:07]requested_item shift.num is exist - process it [16:38:07]requested_item shift.opened is exist - process it [16:38:07]req_shift_opened [16:38:07]FM_GetShiftState [16:38:07]SAM_PROTO_GetShiftState [16:38:07]wFMCommunicate request_size=4 [16:38:07]MH_SAM_APDU [16:38:07]CAPDU: 80 13 01 00 [16:38:07]Write to MH i2c: E2 08 00 7B A1 80 13 01 00 00 00 00 00 99 [16:38:07]Write i2c OK [16:38:07]MH_I2C_Read... [16:38:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:07]Read from MH i2c: E2 [16:38:07]MH_I2C_Read... [16:38:07]Read from MH i2c: E2 0E 00 [16:38:07]MH_I2C_Read... [16:38:07]Read from MH i2c: E2 0E 00 7B A1 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D6 [16:38:07]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:38:07]wFMCommunicate OK [16:38:07]SAM_PROTO_GetShiftState done [16:38:07]FM_GetShiftState done [16:38:07]req_shift_opened done [16:38:07]requested_item shift.open_date is exist - process it [16:38:07]req_shift_open_date [16:38:07]req_shift_open_date done [16:38:07]produce_requested_data done [16:38:07]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260793,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [16:38:07]process_action_free close_receipt [16:38:07]json_value_free [16:38:07]json_value_free done [16:38:07]process_json_proto returns [16:38:07]Send response to host [16:38:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260793,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [16:38:07]free response buf [16:38:07]execute_script done [16:38:07]execute_script returns [16:38:07]free content buf [16:38:07]Sock 7.Close socket [16:38:07]Sock 7.Thread stoped [16:38:09]OFD Sender: No OFD packet to send [16:38:14]OFD Sender: No OFD packet to send [16:38:19]OFD Sender: No OFD packet to send [16:38:24]OFD Sender: No OFD packet to send [16:38:29]OFD Sender: No OFD packet to send [16:38:34]OFD Sender: No OFD packet to send [16:38:39]OFD Sender: No OFD packet to send [16:38:44]OFD Sender: No OFD packet to send [16:38:49]OFD Sender: No OFD packet to send [16:38:54]OFD Sender: No OFD packet to send [16:38:59]OFD Sender: No OFD packet to send [16:39:04]OFD Sender: No OFD packet to send [16:39:09]OFD Sender: No OFD packet to send [16:39:14]OFD Sender: No OFD packet to send [16:39:19]OFD Sender: No OFD packet to send [16:39:24]OFD Sender: No OFD packet to send [16:39:29]OFD Sender: No OFD packet to send [16:39:34]OFD Sender: No OFD packet to send [16:39:39]OFD Sender: No OFD packet to send [16:39:44]OFD Sender: No OFD packet to send [16:39:49]OFD Sender: No OFD packet to send [16:39:54]OFD Sender: No OFD packet to send [16:39:59]OFD Sender: No OFD packet to send [16:40:04]OFD Sender: No OFD packet to send [16:40:09]OFD Sender: No OFD packet to send [16:40:14]OFD Sender: No OFD packet to send [16:40:19]OFD Sender: No OFD packet to send [16:40:24]OFD Sender: No OFD packet to send [16:40:29]OFD Sender: No OFD packet to send [16:40:34]OFD Sender: No OFD packet to send [16:40:39]OFD Sender: No OFD packet to send [16:40:44]OFD Sender: No OFD packet to send [16:40:49]OFD Sender: No OFD packet to send [16:40:54]OFD Sender: No OFD packet to send [16:40:59]OFD Sender: No OFD packet to send [16:41:04]OFD Sender: No OFD packet to send [16:41:09]OFD Sender: No OFD packet to send [16:41:14]OFD Sender: No OFD packet to send [16:41:19]OFD Sender: No OFD packet to send [16:41:24]OFD Sender: No OFD packet to send [16:41:29]OFD Sender: No OFD packet to send [16:41:34]OFD Sender: No OFD packet to send [16:41:39]OFD Sender: No OFD packet to send [16:41:44]OFD Sender: No OFD packet to send [16:41:49]OFD Sender: No OFD packet to send [16:41:54]OFD Sender: No OFD packet to send [16:41:59]OFD Sender: No OFD packet to send [16:42:03]accept exits with 9 [16:42:03]New connection [16:42:03]New thread 3066473828 created [16:42:03]Thread 3066617188 joined [16:42:03]Waiting for new connection... [16:42:03] Sock 9.Parse request [16:42:03]Sock 9.Check first char [16:42:03]Sock 9.First char is OK [16:42:03]request: POST /json_proto HTTP/1.0 [16:42:03]Method: POST [16:42:03]URL: /json_proto [16:42:03]Method is POST - this is cgi request [16:42:03]url: /json_proto [16:42:03]query_string will be loaded in cgi processing [16:42:03]execute_cgi json_proto POST (null) [16:42:03]execute_cgi path=json_proto method=POST [16:42:03]POST find Content-Length [16:42:03]Host: 172.17.55.133:8080 [16:42:03]Content-Length: 679 [16:42:03]Content-Type: application/json [16:42:03] [16:42:03]POST finish read [16:42:03]Found Content-Length = 679 [16:42:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:03]execute_script... [16:42: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)1036346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:03]POST & json_proto [16:42:03]process_json_proto [16:42:03]json parsed OK: [16:42:03]protocol is kg_v1.0 [16:42:03]action value=close_receipt [16:42:03]process_action close_receipt [16:42:03]cmd_close_receipt [16:42:03]MH_GetDate [16:42:03]Write to MH i2c: F0 00 00 7C A1 0C [16:42:03]Write i2c OK [16:42:03]MH_I2C_Read... [16:42:03]Read from MH i2c: F0 [16:42:03]MH_I2C_Read... [16:42:03]Read from MH i2c: F0 09 00 [16:42:03]MH_I2C_Read... [16:42:03]Read from MH i2c: F0 09 00 7C A1 00 61 24 C2 66 34 48 D8 65 7B [16:42:03]GetLastDocTimeStamp 1723999087 [16:42:03]current date 1723999329 [16:42:03]FM_GetShiftState [16:42:03]SAM_PROTO_GetShiftState [16:42:03]wFMCommunicate request_size=4 [16:42:03]MH_SAM_APDU [16:42:03]CAPDU: 80 13 01 00 [16:42:03]Write to MH i2c: E2 08 00 7D A1 80 13 01 00 00 00 00 00 9B [16:42:03]Write i2c OK [16:42:03]MH_I2C_Read... [16:42:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:03]Read from MH i2c: E2 [16:42:03]MH_I2C_Read... [16:42:03]Read from MH i2c: E2 0E 00 [16:42:03]MH_I2C_Read... [16:42:03]Read from MH i2c: E2 0E 00 7D A1 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D8 [16:42:03]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:42:03]wFMCommunicate OK [16:42:03]SAM_PROTO_GetShiftState done [16:42:03]FM_GetShiftState done [16:42:03]opened in 1723940556 [16:42:03]opened+sec_in_day 1724026956 [16:42:03]quantity*price = 70037 [16:42:03]sum+1 = 70038 [16:42:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 352 18.08.2024 16:42 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260794 ФПД: 441814666516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T164209&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260794&fm=441814666516&tin=02508201610067®Number=0000000000091865&sum=70000 [16:42:04]StoreToDocumentArchive [16:42:04]shift 449 fd 260794 [16:42:04]save to /storage/0449/doc_00260794 [16:42:04]save last doc name /storage/0449/doc_00260794 to /storage/kkm_last_doc_name [16:42:04]save OK [16:42:04]Clear old archive folders... [16:42:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:42:04]tlvbuf is 00451460 [16:42:04]SAM_PROTO_ClearQueue [16:42:04]wFMCommunicate request_size=4 [16:42:04]MH_SAM_APDU [16:42:04]CAPDU: 80 09 00 00 [16:42:04]Write to MH i2c: E2 08 00 8A A1 80 09 00 00 00 00 00 00 9D [16:42:04]Write i2c OK [16:42:04]MH_I2C_Read... [16:42:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:42:04]Read from MH i2c: E2 [16:42:04]MH_I2C_Read... [16:42:04]Read from MH i2c: E2 03 00 [16:42:04]MH_I2C_Read... [16:42:04]Read from MH i2c: E2 03 00 8A A1 00 90 00 9F [16:42:04]RAPDU: 90 00 [16:42:04]wFMCommunicate OK [16:42:04]SAM_PROTO_ClearQueue done [16:42:04]KKMCreateOFDPacket [16:42:04]OFDProtocolAddRootSTLVToBuf [16:42:04]FM_MakeSignedData [16:42:04]FM_MakeSignedData [16:42:04]SAM_PROTO_SignData [16:42:04]wFMCommunicate request_size=4 [16:42:04]MH_SAM_APDU [16:42:04]CAPDU: 80 0D 01 02 [16:42:04]Write to MH i2c: E2 08 00 8B A1 80 0D 01 02 00 00 00 00 A5 [16:42:04]Write i2c OK [16:42:04]MH_I2C_Read... [16:42:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:42:04]Read from MH i2c: E2 [16:42:04]MH_I2C_Read... [16:42:04]Read from MH i2c: E2 03 00 [16:42:04]MH_I2C_Read... [16:42:04]Read from MH i2c: E2 03 00 8B A1 00 90 00 A0 [16:42:04]RAPDU: 90 00 [16:42:04]wFMCommunicate OK [16:42:04]wFMCommunicate request_size=255 [16:42:04]MH_SAM_APDU [16:42:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 60 01 00 00 F4 03 04 00 61 24 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BA FA 03 00 35 04 06 00 00 [16:42:04]Write to MH i2c: E2 02 01 8C A1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 60 01 00 00 F4 03 04 00 61 24 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BA FA 03 00 35 04 06 00 00 00 00 90 [16:42:04]Write i2c OK [16:42:04]MH_I2C_Read... [16:42:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:05]Read from MH i2c: E2 [16:42:05]MH_I2C_Read... [16:42:05]Read from MH i2c: E2 03 00 [16:42:05]MH_I2C_Read... [16:42:05]Read from MH i2c: E2 03 00 8C A1 00 90 00 A1 [16:42:05]RAPDU: 90 00 [16:42:05]wFMCommunicate OK [16:42:05]wFMCommunicate request_size=10 [16:42:05]MH_SAM_APDU [16:42:05]CAPDU: 80 0D 02 02 05 66 DE 34 CD 14 [16:42:05]Write to MH i2c: E2 0D 00 8D A1 80 0D 02 02 05 00 66 DE 34 CD 14 00 00 0B [16:42:05]Write i2c OK [16:42:05]MH_I2C_Read... [16:42:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:05]Read from MH i2c: E2 [16:42:05]MH_I2C_Read... [16:42:05]Read from MH i2c: E2 03 00 [16:42:05]MH_I2C_Read... [16:42:05]Read from MH i2c: E2 03 00 8D A1 00 90 00 A2 [16:42:05]RAPDU: 90 00 [16:42:05]wFMCommunicate OK [16:42:05]wFMCommunicate request_size=4 [16:42:05]MH_SAM_APDU [16:42:05]CAPDU: 80 0D 03 02 [16:42:05]Write to MH i2c: E2 08 00 8E A1 80 0D 03 02 00 00 00 00 AA [16:42:05]Write i2c OK [16:42:05]MH_I2C_Read... [16:42:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:42:05]Read from MH i2c: E2 [16:42:05]MH_I2C_Read... [16:42:05]Read from MH i2c: E2 0B 00 [16:42:05]MH_I2C_Read... [16:42:05]Read from MH i2c: E2 0B 00 8E A1 00 DF AA 9E 82 D6 5E 7A D8 90 00 DA [16:42:05]RAPDU: DF AA 9E 82 D6 5E 7A D8 90 00 [16:42:05]wFMCommunicate OK [16:42:05]SAM_PROTO_SignData done [16:42:05]FM_MakeSignedData done [16:42:05]CreateOFDProtocolMessage [16:42:05]wFMCommunicate request_size=4 [16:42:05]MH_SAM_APDU [16:42:05]CAPDU: 80 11 00 00 [16:42:05]Write to MH i2c: E2 08 00 8F A1 80 11 00 00 00 00 00 00 AA [16:42:05]Write i2c OK [16:42:05]MH_I2C_Read... [16:42:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:05]Read from MH i2c: E2 [16:42:05]MH_I2C_Read... [16:42:05]Read from MH i2c: E2 17 00 [16:42:05]MH_I2C_Read... [16:42:05]Read from MH i2c: E2 17 00 8F A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F7 [16:42:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:42:05]wFMCommunicate OK [16:42:05]CreateOFDProtocolMessage done [16:42:05]OFDSenderStorePacket 260794 [16:42:05]StoreOFDPacket docnum=260794 [16:42:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 B5 AC 07 01 FB 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 60 01 00 00 F4 03 04 00 61 24 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BA FA 03 00 35 04 06 00 00 66 DE 34 CD 14 DF AA 9E 82 D6 5E 7A D8 [16:42:05]CheckFolder [16:42:05]dirname=/storage/ofd_packets [16:42:05]CheckFolder done [16:42:05]ProducePacketName [16:42:05]name=ofd_packets/00260794 [16:42:05]NVStorageSaveData ofd_packets/00260794 [16:42:05]File name is /storage/ofd_packets/00260794 [16:42:05]Write 301 bytes [16:42:05]NVStorageSaveData done [16:42:05]OFDSenderStorePacket done [16:42:05]KKMCreateOFDPacket done [16:42:05]NVStorageSaveData kkm_last_timestamp [16:42:05]File name is /storage/kkm_last_timestamp [16:42:05]Write 4 bytes [16:42:05]NVStorageSaveData done [16:42:05]ExternCall_PrintAddStr [16:42:05]wPrintStart [16:42:05]Write to MH i2c: 01 00 00 90 A1 31 [16:42:05]Write i2c OK [16:42:05]MH_I2C_Read... [16:42:05]Read from MH i2c: 01 [16:42:05]MH_I2C_Read... [16:42:05]Read from MH i2c: 01 07 00 [16:42:05]MH_I2C_Read... [16:42:05]Read from MH i2c: 01 07 00 90 A1 00 00 00 00 00 FF 0F 46 [16:42:05]RasterBufferAndPrint [16:42:05]line Счет N : (1)1036346 [16:42:05]line ИНН: 02508201610067 [16:42:05]line Контрольно-Кассовый Чек [16:42:05]line ПРОДАЖА [16:42:05]line ТРК (МРК, ГНК) : 22 [16:42:05]line Товар: 2710124130 [16:42:05]line Аи-92-К-5 [16:42:05]line 10.330 * 67.80 [16:42:05]line = 700.37 [16:42:05]line НДС 12% НСП 1% [16:42:05]line > о реализуемом товаре [16:42:05]line ОКРУГЛЕНИЕ: -0.37 [16:42:05]line ИТОГО: 700.00 [16:42:05]line Внесено: 700.00 [16:42:05]line СДАЧА: 0.00 [16:42:05]line НСП 1% : 6.20 [16:42:05]line НДС 12% : 74.38 [16:42:05]line Наличными: 700.00 [16:42:05]line Безнал.: 0.00 [16:42:05]line Место: АЗС № 94 "Партнер Нефть" [16:42:05]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [16:42:05]line СНО: Общий режим [16:42:05]line Чек 352 18.08.2024 16:42 [16:42:05]line Смена: 449 ФФД: 1.0 [16:42:05]line ЗНМ: 0300000099 [16:42:05]line РНМ: 0000000000091865 [16:42:05]line Версия ККМ: 001 [16:42:05]line ФМ: 0000000000871820 [16:42:05]line ФД: 260794 [16:42:05]line ФПД: 441814666516 [16:42:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T164209&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260794&fm=441814666516&tin=02508201610067®Number=0000000000091865&sum=70000 [16:42:05]OFD Sender: Processing packet 260794 [packets to send 192, broken 191] [16:42:05]ProducePacketName [16:42:05]name=ofd_packets/00260794 [16:42:05]OFD Sender: To server: pG, [16:42:05]CommunicateWithHost lk.salyk.kg:30040 [16:42:05]ConnectInit lk.salyk.kg [16:42:05]written 0, free lines is 4095 [16:42:05]Connected sock=10 [16:42: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 30 0F 01 00 00 B5 AC 07 01 FB 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 60 01 00 00 F4 03 04 00 61 24 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BA FA 03 00 35 04 06 00 00 66 DE 34 CD 14 DF AA 9E 82 D6 5E 7A D8 [16:42: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 30 4F 00 00 00 B8 B3 47 00 34 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 30 10 04 04 00 BA FA 03 00 F4 03 04 00 B5 CD C1 66 B6 04 01 00 00 63 11 F1 0D 18 2F 9E 30 [16:42:05]CommunicateWithHost err = 0 [16:42:05]CheckOFDResponse [16:42:05]1017 (14) - 77093643461234 [16:42:05]1041 (16) - 0000000000871820 [16:42:05]1040 (4) - 260794 [16:42:05]1012 (4) - 18.08.2024 10:32 [16:42:05]1206 (1) - 0 [16:42:05]OFD Sender: Remove packet 260794 [16:42:05]ProducePacketName [16:42:05]name=ofd_packets/00260794 [16:42:05]NVStorageDeleteData [16:42:06]Write to MH i2c: 01 00 00 BB A1 5C [16:42:06]Write i2c OK [16:42:06]MH_I2C_Read... [16:42:06]Read from MH i2c: 01 [16:42:06]MH_I2C_Read... [16:42:06]Read from MH i2c: 01 07 00 [16:42:06]MH_I2C_Read... [16:42:06]Read from MH i2c: 01 07 00 BB A1 00 00 00 00 00 6C 0C DB [16:42:06]RasterBufferAndPrint [16:42:06]line [16:42:06]line [16:42:06]line [16:42:06]line [16:42:06]line [16:42:06]written 0, free lines is 3183 [16:42:06]MH_Cut [16:42:06]Write to MH i2c: D1 01 00 C2 A1 01 35 [16:42:06]Write i2c OK [16:42:06]MH_I2C_Read... [16:42:06]Read from MH i2c: D1 [16:42:06]MH_I2C_Read... [16:42:06]Read from MH i2c: D1 01 00 [16:42:06]MH_I2C_Read... [16:42:06]Read from MH i2c: D1 01 00 C2 A1 00 34 [16:42:06]Write to MH i2c: 01 00 00 C3 A1 64 [16:42:06]Write i2c OK [16:42:06]MH_I2C_Read... [16:42:06]OFD Sender: No OFD packet to send [16:42:07]*** Cut start [16:42:07]*** Purtial cut [16:42:07]*** Stage 1: CUTSNS_PIN = 1 [16:42:09]Read from MH i2c: 01 [16:42:09]MH_I2C_Read... [16:42:09]*** Stop cut motor [16:42:09]*** Cut end [16:42:09]Read from MH i2c: 01 07 00 [16:42:09]MH_I2C_Read... [16:42:09]Read from MH i2c: 01 07 00 C3 A1 00 00 00 00 00 FF 0F 79 [16:42:09]process_action close_receipt done [16:42:09]requested_data is exist [16:42:09]produce_requested_data [16:42:09]requested_item fm.sn is exist - process it [16:42:09]wFMCommunicate request_size=4 [16:42:09]MH_SAM_APDU [16:42:09]CAPDU: 80 11 00 00 [16:42:09]Write to MH i2c: E2 08 00 C4 A1 80 11 00 00 00 00 00 00 DF [16:42:09]Write i2c OK [16:42:09]MH_I2C_Read... [16:42:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:09]Read from MH i2c: E2 [16:42:09]MH_I2C_Read... [16:42:09]Read from MH i2c: E2 17 00 [16:42:09]MH_I2C_Read... [16:42:09]Read from MH i2c: E2 17 00 C4 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 2C [16:42:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:42:09]wFMCommunicate OK [16:42:09]requested_item fd.num is exist - process it [16:42:09]SAM_PROTO_GetFieldsCounters [16:42:09]wFMCommunicate request_size=4 [16:42:09]MH_SAM_APDU [16:42:09]CAPDU: 80 13 00 00 [16:42:09]Write to MH i2c: E2 08 00 C5 A1 80 13 00 00 00 00 00 00 E2 [16:42:09]Write i2c OK [16:42:09]MH_I2C_Read... [16:42:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:42:09]Read from MH i2c: E2 [16:42:09]MH_I2C_Read... [16:42:09]Read from MH i2c: E2 62 00 [16:42:09]MH_I2C_Read... [16:42:09]Read from MH i2c: E2 62 00 C5 A1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 BA FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 9D [16:42: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 BA FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:42:09]wFMCommunicate OK [16:42:09]SAM_PROTO_GetFieldsCounters done [16:42:09]requested_item shift.num is exist - process it [16:42:09]requested_item shift.opened is exist - process it [16:42:09]req_shift_opened [16:42:09]FM_GetShiftState [16:42:09]SAM_PROTO_GetShiftState [16:42:09]wFMCommunicate request_size=4 [16:42:09]MH_SAM_APDU [16:42:09]CAPDU: 80 13 01 00 [16:42:09]Write to MH i2c: E2 08 00 C6 A1 80 13 01 00 00 00 00 00 E4 [16:42:09]Write i2c OK [16:42:09]MH_I2C_Read... [16:42:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:09]Read from MH i2c: E2 [16:42:09]MH_I2C_Read... [16:42:09]Read from MH i2c: E2 0E 00 [16:42:09]MH_I2C_Read... [16:42:09]Read from MH i2c: E2 0E 00 C6 A1 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 21 [16:42:09]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:42:09]wFMCommunicate OK [16:42:09]SAM_PROTO_GetShiftState done [16:42:09]FM_GetShiftState done [16:42:09]req_shift_opened done [16:42:09]requested_item shift.open_date is exist - process it [16:42:09]req_shift_open_date [16:42:09]req_shift_open_date done [16:42:09]produce_requested_data done [16:42:09]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260794,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [16:42:09]process_action_free close_receipt [16:42:09]json_value_free [16:42:09]json_value_free done [16:42:09]process_json_proto returns [16:42:09]Send response to host [16:42:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260794,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [16:42:09]free response buf [16:42:09]execute_script done [16:42:09]execute_script returns [16:42:09]free content buf [16:42:09]Sock 9.Close socket [16:42:09]Sock 9.Thread stoped [16:42:11]OFD Sender: No OFD packet to send [16:42:16]OFD Sender: No OFD packet to send [16:42:21]OFD Sender: No OFD packet to send [16:42:26]OFD Sender: No OFD packet to send [16:42:31]OFD Sender: No OFD packet to send [16:42:36]OFD Sender: No OFD packet to send [16:42:41]OFD Sender: No OFD packet to send [16:42:46]OFD Sender: No OFD packet to send [16:42:51]OFD Sender: No OFD packet to send [16:42:56]OFD Sender: No OFD packet to send [16:43:01]OFD Sender: No OFD packet to send [16:43:06]OFD Sender: No OFD packet to send [16:43:11]OFD Sender: No OFD packet to send [16:43:16]OFD Sender: No OFD packet to send [16:43:21]OFD Sender: No OFD packet to send [16:43:26]OFD Sender: No OFD packet to send [16:43:31]OFD Sender: No OFD packet to send [16:43:36]OFD Sender: No OFD packet to send [16:43:41]OFD Sender: No OFD packet to send [16:43:46]OFD Sender: No OFD packet to send [16:43:51]OFD Sender: No OFD packet to send [16:43:56]OFD Sender: No OFD packet to send [16:44:01]OFD Sender: No OFD packet to send [16:44:06]OFD Sender: No OFD packet to send [16:44:11]OFD Sender: No OFD packet to send [16:44:16]OFD Sender: No OFD packet to send [16:44:21]OFD Sender: No OFD packet to send [16:44:26]OFD Sender: No OFD packet to send [16:44:31]OFD Sender: No OFD packet to send [16:44:36]OFD Sender: No OFD packet to send [16:44:41]OFD Sender: No OFD packet to send [16:44:46]OFD Sender: No OFD packet to send [16:44:51]OFD Sender: No OFD packet to send [16:44:56]OFD Sender: No OFD packet to send [16:45:01]OFD Sender: No OFD packet to send [16:45:06]OFD Sender: No OFD packet to send [16:45:11]OFD Sender: No OFD packet to send [16:45:16]OFD Sender: No OFD packet to send [16:45:21]OFD Sender: No OFD packet to send [16:45:26]OFD Sender: No OFD packet to send [16:45:31]OFD Sender: No OFD packet to send [16:45:36]OFD Sender: No OFD packet to send [16:45:41]OFD Sender: No OFD packet to send [16:45:46]OFD Sender: No OFD packet to send [16:45:51]OFD Sender: No OFD packet to send [16:45:54]accept exits with 7 [16:45:54]New connection [16:45:54]New thread 3066617188 created [16:45:54]Thread 3066473828 joined [16:45:54]Waiting for new connection... [16:45:54] Sock 7.Parse request [16:45:54]Sock 7.Check first char [16:45:54]Sock 7.First char is OK [16:45:54]request: POST /json_proto HTTP/1.0 [16:45:54]Method: POST [16:45:54]URL: /json_proto [16:45:54]Method is POST - this is cgi request [16:45:54]url: /json_proto [16:45:54]query_string will be loaded in cgi processing [16:45:54]execute_cgi json_proto POST (null) [16:45:54]execute_cgi path=json_proto method=POST [16:45:54]POST find Content-Length [16:45:54]Host: 172.17.55.133:8080 [16:45:54]Content-Length: 678 [16:45:54]Content-Type: application/json [16:45:54] [16:45:54]POST finish read [16:45:54]Found Content-Length = 678 [16:45:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:54]execute_script... [16:45:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:54]POST & json_proto [16:45:54]process_json_proto [16:45:54]json parsed OK: [16:45:54]protocol is kg_v1.0 [16:45:54]action value=close_receipt [16:45:54]process_action close_receipt [16:45:54]cmd_close_receipt [16:45:54]MH_GetDate [16:45:54]Write to MH i2c: F0 00 00 C7 A1 57 [16:45:54]Write i2c OK [16:45:54]MH_I2C_Read... [16:45:54]Read from MH i2c: F0 [16:45:54]MH_I2C_Read... [16:45:54]Read from MH i2c: F0 09 00 [16:45:54]MH_I2C_Read... [16:45:54]Read from MH i2c: F0 09 00 C7 A1 00 48 25 C2 66 34 48 D8 65 AE [16:45:54]GetLastDocTimeStamp 1723999329 [16:45:54]current date 1723999560 [16:45:54]FM_GetShiftState [16:45:54]SAM_PROTO_GetShiftState [16:45:54]wFMCommunicate request_size=4 [16:45:54]MH_SAM_APDU [16:45:54]CAPDU: 80 13 01 00 [16:45:54]Write to MH i2c: E2 08 00 C8 A1 80 13 01 00 00 00 00 00 E6 [16:45:54]Write i2c OK [16:45:54]MH_I2C_Read... [16:45:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:54]Read from MH i2c: E2 [16:45:54]MH_I2C_Read... [16:45:54]Read from MH i2c: E2 0E 00 [16:45:54]MH_I2C_Read... [16:45:54]Read from MH i2c: E2 0E 00 C8 A1 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 23 [16:45:54]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:45:54]wFMCommunicate OK [16:45:54]SAM_PROTO_GetShiftState done [16:45:54]FM_GetShiftState done [16:45:54]opened in 1723940556 [16:45:54]opened+sec_in_day 1724026956 [16:45:54]quantity*price = 50036 [16:45:54]sum+1 = 50037 [16:45:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 353 18.08.2024 16:46 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260795 ФПД: 64433672186361 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T164600&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260795&fm=64433672186361&tin=02508201610067®Number=0000000000091865&sum=50000 [16:45:55]StoreToDocumentArchive [16:45:55]shift 449 fd 260795 [16:45:55]save to /storage/0449/doc_00260795 [16:45:55]save last doc name /storage/0449/doc_00260795 to /storage/kkm_last_doc_name [16:45:55]save OK [16:45:55]Clear old archive folders... [16:45:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:45:55]tlvbuf is 004536F0 [16:45:55]SAM_PROTO_ClearQueue [16:45:55]wFMCommunicate request_size=4 [16:45:55]MH_SAM_APDU [16:45:55]CAPDU: 80 09 00 00 [16:45:55]Write to MH i2c: E2 08 00 D5 A1 80 09 00 00 00 00 00 00 E8 [16:45:55]Write i2c OK [16:45:55]MH_I2C_Read... [16:45:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:45:55]Read from MH i2c: E2 [16:45:55]MH_I2C_Read... [16:45:55]Read from MH i2c: E2 03 00 [16:45:55]MH_I2C_Read... [16:45:55]Read from MH i2c: E2 03 00 D5 A1 00 90 00 EA [16:45:55]RAPDU: 90 00 [16:45:55]wFMCommunicate OK [16:45:55]SAM_PROTO_ClearQueue done [16:45:55]KKMCreateOFDPacket [16:45:55]OFDProtocolAddRootSTLVToBuf [16:45:55]FM_MakeSignedData [16:45:55]FM_MakeSignedData [16:45:55]SAM_PROTO_SignData [16:45:55]wFMCommunicate request_size=4 [16:45:55]MH_SAM_APDU [16:45:55]CAPDU: 80 0D 01 02 [16:45:55]Write to MH i2c: E2 08 00 D6 A1 80 0D 01 02 00 00 00 00 F0 [16:45:55]Write i2c OK [16:45:55]MH_I2C_Read... [16:45:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:45:55]Read from MH i2c: E2 [16:45:55]MH_I2C_Read... [16:45:55]Read from MH i2c: E2 03 00 [16:45:55]MH_I2C_Read... [16:45:55]Read from MH i2c: E2 03 00 D6 A1 00 90 00 EB [16:45:55]RAPDU: 90 00 [16:45:55]wFMCommunicate OK [16:45:55]wFMCommunicate request_size=255 [16:45:55]MH_SAM_APDU [16:45:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 61 01 00 00 F4 03 04 00 48 25 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BB FA 03 00 35 04 06 00 3A [16:45:55]Write to MH i2c: E2 02 01 D7 A1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 61 01 00 00 F4 03 04 00 48 25 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BB FA 03 00 35 04 06 00 3A 00 00 18 [16:45:55]Write i2c OK [16:45:55]MH_I2C_Read... [16:45:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:55]Read from MH i2c: E2 [16:45:55]MH_I2C_Read... [16:45:55]Read from MH i2c: E2 03 00 [16:45:55]MH_I2C_Read... [16:45:55]Read from MH i2c: E2 03 00 D7 A1 00 90 00 EC [16:45:55]RAPDU: 90 00 [16:45:55]wFMCommunicate OK [16:45:55]wFMCommunicate request_size=10 [16:45:55]MH_SAM_APDU [16:45:55]CAPDU: 80 0D 02 02 05 9A 22 24 69 F9 [16:45:55]Write to MH i2c: E2 0D 00 D8 A1 80 0D 02 02 05 00 9A 22 24 69 F9 00 00 3F [16:45:55]Write i2c OK [16:45:55]MH_I2C_Read... [16:45:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:56]Read from MH i2c: E2 [16:45:56]MH_I2C_Read... [16:45:56]Read from MH i2c: E2 03 00 [16:45:56]MH_I2C_Read... [16:45:56]Read from MH i2c: E2 03 00 D8 A1 00 90 00 ED [16:45:56]RAPDU: 90 00 [16:45:56]wFMCommunicate OK [16:45:56]wFMCommunicate request_size=4 [16:45:56]MH_SAM_APDU [16:45:56]CAPDU: 80 0D 03 02 [16:45:56]Write to MH i2c: E2 08 00 D9 A1 80 0D 03 02 00 00 00 00 F5 [16:45:56]Write i2c OK [16:45:56]MH_I2C_Read... [16:45:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:45:56]Read from MH i2c: E2 [16:45:56]MH_I2C_Read... [16:45:56]Read from MH i2c: E2 0B 00 [16:45:56]MH_I2C_Read... [16:45:56]Read from MH i2c: E2 0B 00 D9 A1 00 EE 2E AD 38 44 54 F4 13 90 00 96 [16:45:56]RAPDU: EE 2E AD 38 44 54 F4 13 90 00 [16:45:56]wFMCommunicate OK [16:45:56]SAM_PROTO_SignData done [16:45:56]FM_MakeSignedData done [16:45:56]CreateOFDProtocolMessage [16:45:56]wFMCommunicate request_size=4 [16:45:56]MH_SAM_APDU [16:45:56]CAPDU: 80 11 00 00 [16:45:56]Write to MH i2c: E2 08 00 DA A1 80 11 00 00 00 00 00 00 F5 [16:45:56]Write i2c OK [16:45:56]MH_I2C_Read... [16:45:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:56]Read from MH i2c: E2 [16:45:56]MH_I2C_Read... [16:45:56]Read from MH i2c: E2 17 00 [16:45:56]MH_I2C_Read... [16:45:56]Read from MH i2c: E2 17 00 DA A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 42 [16:45:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:45:56]wFMCommunicate OK [16:45:56]CreateOFDProtocolMessage done [16:45:56]OFDSenderStorePacket 260795 [16:45:56]StoreOFDPacket docnum=260795 [16:45:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 89 CA 07 01 B0 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 61 01 00 00 F4 03 04 00 48 25 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BB FA 03 00 35 04 06 00 3A 9A 22 24 69 F9 EE 2E AD 38 44 54 F4 13 [16:45:56]CheckFolder [16:45:56]dirname=/storage/ofd_packets [16:45:56]CheckFolder done [16:45:56]ProducePacketName [16:45:56]name=ofd_packets/00260795 [16:45:56]NVStorageSaveData ofd_packets/00260795 [16:45:56]File name is /storage/ofd_packets/00260795 [16:45:56]Write 301 bytes [16:45:56]NVStorageSaveData done [16:45:56]OFDSenderStorePacket done [16:45:56]KKMCreateOFDPacket done [16:45:56]NVStorageSaveData kkm_last_timestamp [16:45:56]File name is /storage/kkm_last_timestamp [16:45:56]Write 4 bytes [16:45:56]NVStorageSaveData done [16:45:56]ExternCall_PrintAddStr [16:45:56]wPrintStart [16:45:56]Write to MH i2c: 01 00 00 DB A1 7C [16:45:56]Write i2c OK [16:45:56]MH_I2C_Read... [16:45:56]Read from MH i2c: 01 [16:45:56]MH_I2C_Read... [16:45:56]Read from MH i2c: 01 07 00 [16:45:56]MH_I2C_Read... [16:45:56]Read from MH i2c: 01 07 00 DB A1 00 00 00 00 00 FF 0F 91 [16:45:56]RasterBufferAndPrint [16:45:56]line Счет N : (1)1036347 [16:45:56]line ИНН: 02508201610067 [16:45:56]line Контрольно-Кассовый Чек [16:45:56]line ПРОДАЖА [16:45:56]line ТРК (МРК, ГНК) : 22 [16:45:56]line Товар: 2710124130 [16:45:56]line Аи-92-К-5 [16:45:56]line 7.380 * 67.80 [16:45:56]line = 500.36 [16:45:56]line НДС 12% НСП 1% [16:45:56]line > о реализуемом товаре [16:45:56]line ОКРУГЛЕНИЕ: -0.36 [16:45:56]line ИТОГО: 500.00 [16:45:56]line Внесено: 500.00 [16:45:56]line СДАЧА: 0.00 [16:45:56]line НСП 1% : 4.43 [16:45:56]line НДС 12% : 53.14 [16:45:56]line Наличными: 500.00 [16:45:56]line Безнал.: 0.00 [16:45:56]line Место: АЗС № 94 "Партнер Нефть" [16:45:56]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [16:45:56]line СНО: Общий режим [16:45:56]line Чек 353 18.08.2024 16:46 [16:45:56]line Смена: 449 ФФД: 1.0 [16:45:56]line ЗНМ: 0300000099 [16:45:56]line РНМ: 0000000000091865 [16:45:56]line Версия ККМ: 001 [16:45:56]line ФМ: 0000000000871820 [16:45:56]line ФД: 260795 [16:45:56]line ФПД: 64433672186361 [16:45:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T164600&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260795&fm=64433672186361&tin=02508201610067®Number=0000000000091865&sum=50000 [16:45:56]written 0, free lines is 4095 [16:45:56]OFD Sender: Processing packet 260795 [packets to send 192, broken 191] [16:45:56]ProducePacketName [16:45:56]name=ofd_packets/00260795 [16:45:56]OFD Sender: To server: pG, [16:45:56]CommunicateWithHost lk.salyk.kg:30040 [16:45:56]ConnectInit lk.salyk.kg [16:45:56]Connected sock=10 [16:45: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 30 0F 01 00 00 89 CA 07 01 B0 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 61 01 00 00 F4 03 04 00 48 25 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BB FA 03 00 35 04 06 00 3A 9A 22 24 69 F9 EE 2E AD 38 44 54 F4 13 [16:45: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 30 4F 00 00 00 88 04 47 00 F8 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 30 10 04 04 00 BB FA 03 00 F4 03 04 00 9C CE C1 66 B6 04 01 00 00 91 96 16 FF 50 EE 9B EF [16:45:56]CommunicateWithHost err = 0 [16:45:56]CheckOFDResponse [16:45:56]1017 (14) - 77093643461234 [16:45:56]1041 (16) - 0000000000871820 [16:45:56]1040 (4) - 260795 [16:45:56]1012 (4) - 18.08.2024 10:36 [16:45:56]1206 (1) - 0 [16:45:56]OFD Sender: Remove packet 260795 [16:45:56]ProducePacketName [16:45:56]name=ofd_packets/00260795 [16:45:56]NVStorageDeleteData [16:45:56]Write to MH i2c: 01 00 00 06 A2 A8 [16:45:56]Write i2c OK [16:45:56]MH_I2C_Read... [16:45:56]Read from MH i2c: 01 [16:45:56]MH_I2C_Read... [16:45:56]Read from MH i2c: 01 07 00 [16:45:56]MH_I2C_Read... [16:45:56]Read from MH i2c: 01 07 00 06 A2 00 00 00 00 00 5F 0C 1A [16:45:56]RasterBufferAndPrint [16:45:56]line [16:45:56]line [16:45:56]line [16:45:56]line [16:45:56]line [16:45:56]written 0, free lines is 3170 [16:45:56]MH_Cut [16:45:56]Write to MH i2c: D1 01 00 0D A2 01 81 [16:45:56]Write i2c OK [16:45:56]MH_I2C_Read... [16:45:56]Read from MH i2c: D1 [16:45:56]MH_I2C_Read... [16:45:56]Read from MH i2c: D1 01 00 [16:45:56]MH_I2C_Read... [16:45:56]Read from MH i2c: D1 01 00 0D A2 00 80 [16:45:56]Write to MH i2c: 01 00 00 0E A2 B0 [16:45:56]Write i2c OK [16:45:56]MH_I2C_Read... [16:45:57]OFD Sender: No OFD packet to send [16:45:58]*** Cut start [16:45:58]*** Purtial cut [16:45:58]*** Stage 1: CUTSNS_PIN = 1 [16:46:00]Read from MH i2c: 01 [16:46:00]MH_I2C_Read... [16:46:00]*** Stop cut motor [16:46:00]*** Cut end [16:46:00]Read from MH i2c: 01 07 00 [16:46:00]MH_I2C_Read... [16:46:00]Read from MH i2c: 01 07 00 0E A2 00 00 00 00 00 FF 0F C5 [16:46:00]process_action close_receipt done [16:46:00]requested_data is exist [16:46:00]produce_requested_data [16:46:00]requested_item fm.sn is exist - process it [16:46:00]wFMCommunicate request_size=4 [16:46:00]MH_SAM_APDU [16:46:00]CAPDU: 80 11 00 00 [16:46:00]Write to MH i2c: E2 08 00 0F A2 80 11 00 00 00 00 00 00 2B [16:46:00]Write i2c OK [16:46:00]MH_I2C_Read... [16:46:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:00]Read from MH i2c: E2 [16:46:00]MH_I2C_Read... [16:46:00]Read from MH i2c: E2 17 00 [16:46:00]MH_I2C_Read... [16:46:00]Read from MH i2c: E2 17 00 0F A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 78 [16:46:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:46:00]wFMCommunicate OK [16:46:00]requested_item fd.num is exist - process it [16:46:00]SAM_PROTO_GetFieldsCounters [16:46:00]wFMCommunicate request_size=4 [16:46:00]MH_SAM_APDU [16:46:00]CAPDU: 80 13 00 00 [16:46:00]Write to MH i2c: E2 08 00 10 A2 80 13 00 00 00 00 00 00 2E [16:46:00]Write i2c OK [16:46:00]MH_I2C_Read... [16:46:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:00]Read from MH i2c: E2 [16:46:00]MH_I2C_Read... [16:46:00]Read from MH i2c: E2 62 00 [16:46:00]MH_I2C_Read... [16:46:00]Read from MH i2c: E2 62 00 10 A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 BB FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 ED [16:46: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 BB FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:46:00]wFMCommunicate OK [16:46:00]SAM_PROTO_GetFieldsCounters done [16:46:00]requested_item shift.num is exist - process it [16:46:00]requested_item shift.opened is exist - process it [16:46:00]req_shift_opened [16:46:00]FM_GetShiftState [16:46:00]SAM_PROTO_GetShiftState [16:46:00]wFMCommunicate request_size=4 [16:46:00]MH_SAM_APDU [16:46:00]CAPDU: 80 13 01 00 [16:46:00]Write to MH i2c: E2 08 00 11 A2 80 13 01 00 00 00 00 00 30 [16:46:00]Write i2c OK [16:46:00]MH_I2C_Read... [16:46:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:00]Read from MH i2c: E2 [16:46:00]MH_I2C_Read... [16:46:00]Read from MH i2c: E2 0E 00 [16:46:00]MH_I2C_Read... [16:46:00]Read from MH i2c: E2 0E 00 11 A2 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 6D [16:46:00]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:46:00]wFMCommunicate OK [16:46:00]SAM_PROTO_GetShiftState done [16:46:00]FM_GetShiftState done [16:46:00]req_shift_opened done [16:46:00]requested_item shift.open_date is exist - process it [16:46:00]req_shift_open_date [16:46:00]req_shift_open_date done [16:46:00]produce_requested_data done [16:46:00]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260795,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [16:46:00]process_action_free close_receipt [16:46:00]json_value_free [16:46:00]json_value_free done [16:46:00]process_json_proto returns [16:46:00]Send response to host [16:46:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260795,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [16:46:00]free response buf [16:46:00]execute_script done [16:46:00]execute_script returns [16:46:00]free content buf [16:46:00]Sock 7.Close socket [16:46:00]Sock 7.Thread stoped [16:46:02]OFD Sender: No OFD packet to send [16:46:07]OFD Sender: No OFD packet to send [16:46:12]OFD Sender: No OFD packet to send [16:46:17]OFD Sender: No OFD packet to send [16:46:22]OFD Sender: No OFD packet to send [16:46:27]OFD Sender: No OFD packet to send [16:46:32]OFD Sender: No OFD packet to send [16:46:37]OFD Sender: No OFD packet to send [16:46:42]OFD Sender: No OFD packet to send [16:46:47]OFD Sender: No OFD packet to send [16:46:52]OFD Sender: No OFD packet to send [16:46:57]OFD Sender: No OFD packet to send [16:47:02]OFD Sender: No OFD packet to send [16:47:07]OFD Sender: No OFD packet to send [16:47:12]OFD Sender: No OFD packet to send [16:47:17]OFD Sender: No OFD packet to send [16:47:22]OFD Sender: No OFD packet to send [16:47:27]OFD Sender: No OFD packet to send [16:47:32]OFD Sender: No OFD packet to send [16:47:37]OFD Sender: No OFD packet to send [16:47:42]OFD Sender: No OFD packet to send [16:47:47]OFD Sender: No OFD packet to send [16:47:52]OFD Sender: No OFD packet to send [16:47:57]OFD Sender: No OFD packet to send [16:48:00]accept exits with 9 [16:48:00]New connection [16:48:00]New thread 3066473828 created [16:48:00]Thread 3066617188 joined [16:48:00]Waiting for new connection... [16:48:00] Sock 9.Parse request [16:48:00]Sock 9.Check first char [16:48:00]Sock 9.First char is OK [16:48:00]request: POST /json_proto HTTP/1.0 [16:48:00]Method: POST [16:48:00]URL: /json_proto [16:48:00]Method is POST - this is cgi request [16:48:00]url: /json_proto [16:48:00]query_string will be loaded in cgi processing [16:48:00]execute_cgi json_proto POST (null) [16:48:00]execute_cgi path=json_proto method=POST [16:48:00]POST find Content-Length [16:48:00]Host: 172.17.55.133:8080 [16:48:00]Content-Length: 683 [16:48:00]Content-Type: application/json [16:48:00] [16:48:00]POST finish read [16:48:00]Found Content-Length = 683 [16:48:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:00]execute_script... [16:48: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)1036348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:00]POST & json_proto [16:48:00]process_json_proto [16:48:00]json parsed OK: [16:48:00]protocol is kg_v1.0 [16:48:00]action value=close_receipt [16:48:00]process_action close_receipt [16:48:00]cmd_close_receipt [16:48:00]MH_GetDate [16:48:00]Write to MH i2c: F0 00 00 12 A2 A3 [16:48:00]Write i2c OK [16:48:00]MH_I2C_Read... [16:48:00]Read from MH i2c: F0 [16:48:00]MH_I2C_Read... [16:48:00]Read from MH i2c: F0 09 00 [16:48:00]MH_I2C_Read... [16:48:00]Read from MH i2c: F0 09 00 12 A2 00 C6 25 C2 66 34 48 D8 65 78 [16:48:00]GetLastDocTimeStamp 1723999560 [16:48:00]current date 1723999686 [16:48:00]FM_GetShiftState [16:48:00]SAM_PROTO_GetShiftState [16:48:00]wFMCommunicate request_size=4 [16:48:00]MH_SAM_APDU [16:48:00]CAPDU: 80 13 01 00 [16:48:00]Write to MH i2c: E2 08 00 13 A2 80 13 01 00 00 00 00 00 32 [16:48:00]Write i2c OK [16:48:00]MH_I2C_Read... [16:48:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:00]Read from MH i2c: E2 [16:48:00]MH_I2C_Read... [16:48:00]Read from MH i2c: E2 0E 00 [16:48:00]MH_I2C_Read... [16:48:00]Read from MH i2c: E2 0E 00 13 A2 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 6F [16:48:00]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:48:00]wFMCommunicate OK [16:48:00]SAM_PROTO_GetShiftState done [16:48:00]FM_GetShiftState done [16:48:00]opened in 1723940556 [16:48:00]opened+sec_in_day 1724026956 [16:48:00]quantity*price = 100005 [16:48:00]sum+1 = 100006 [16:48:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 354 18.08.2024 16:48 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260796 ФПД: 196531573848829 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T164806&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260796&fm=196531573848829&tin=02508201610067®Number=0000000000091865&sum=100000 [16:48:01]StoreToDocumentArchive [16:48:01]shift 449 fd 260796 [16:48:01]save to /storage/0449/doc_00260796 [16:48:01]save last doc name /storage/0449/doc_00260796 to /storage/kkm_last_doc_name [16:48:01]save OK [16:48:01]Clear old archive folders... [16:48:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:48:01]tlvbuf is 006B9470 [16:48:01]SAM_PROTO_ClearQueue [16:48:01]wFMCommunicate request_size=4 [16:48:01]MH_SAM_APDU [16:48:01]CAPDU: 80 09 00 00 [16:48:01]Write to MH i2c: E2 08 00 20 A2 80 09 00 00 00 00 00 00 34 [16:48:01]Write i2c OK [16:48:01]MH_I2C_Read... [16:48:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:01]Read from MH i2c: E2 [16:48:01]MH_I2C_Read... [16:48:01]Read from MH i2c: E2 03 00 [16:48:01]MH_I2C_Read... [16:48:01]Read from MH i2c: E2 03 00 20 A2 00 90 00 36 [16:48:01]RAPDU: 90 00 [16:48:01]wFMCommunicate OK [16:48:01]SAM_PROTO_ClearQueue done [16:48:01]KKMCreateOFDPacket [16:48:01]OFDProtocolAddRootSTLVToBuf [16:48:01]FM_MakeSignedData [16:48:01]FM_MakeSignedData [16:48:01]SAM_PROTO_SignData [16:48:01]wFMCommunicate request_size=4 [16:48:01]MH_SAM_APDU [16:48:01]CAPDU: 80 0D 01 02 [16:48:01]Write to MH i2c: E2 08 00 21 A2 80 0D 01 02 00 00 00 00 3C [16:48:01]Write i2c OK [16:48:01]MH_I2C_Read... [16:48:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:01]Read from MH i2c: E2 [16:48:01]MH_I2C_Read... [16:48:01]Read from MH i2c: E2 03 00 [16:48:01]MH_I2C_Read... [16:48:01]Read from MH i2c: E2 03 00 21 A2 00 90 00 37 [16:48:01]RAPDU: 90 00 [16:48:01]wFMCommunicate OK [16:48:01]wFMCommunicate request_size=255 [16:48:01]MH_SAM_APDU [16:48:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 C6 25 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BC FA 03 00 35 04 06 00 B2 [16:48:01]Write to MH i2c: E2 02 01 22 A2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 C6 25 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BC FA 03 00 35 04 06 00 B2 00 00 EB [16:48:01]Write i2c OK [16:48:01]MH_I2C_Read... [16:48:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:02]Read from MH i2c: E2 [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: E2 03 00 [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: E2 03 00 22 A2 00 90 00 38 [16:48:02]RAPDU: 90 00 [16:48:02]wFMCommunicate OK [16:48:02]wFMCommunicate request_size=10 [16:48:02]MH_SAM_APDU [16:48:02]CAPDU: 80 0D 02 02 05 BE 92 A5 7A FD [16:48:02]Write to MH i2c: E2 0D 00 23 A2 80 0D 02 02 05 00 BE 92 A5 7A FD 00 00 B5 [16:48:02]Write i2c OK [16:48:02]MH_I2C_Read... [16:48:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:02]Read from MH i2c: E2 [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: E2 03 00 [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: E2 03 00 23 A2 00 90 00 39 [16:48:02]RAPDU: 90 00 [16:48:02]wFMCommunicate OK [16:48:02]wFMCommunicate request_size=4 [16:48:02]MH_SAM_APDU [16:48:02]CAPDU: 80 0D 03 02 [16:48:02]Write to MH i2c: E2 08 00 24 A2 80 0D 03 02 00 00 00 00 41 [16:48:02]Write i2c OK [16:48:02]MH_I2C_Read... [16:48:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:02]Read from MH i2c: E2 [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: E2 0B 00 [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: E2 0B 00 24 A2 00 E8 6E 63 F3 3F 23 14 51 90 00 B5 [16:48:02]RAPDU: E8 6E 63 F3 3F 23 14 51 90 00 [16:48:02]wFMCommunicate OK [16:48:02]SAM_PROTO_SignData done [16:48:02]FM_MakeSignedData done [16:48:02]CreateOFDProtocolMessage [16:48:02]wFMCommunicate request_size=4 [16:48:02]MH_SAM_APDU [16:48:02]CAPDU: 80 11 00 00 [16:48:02]Write to MH i2c: E2 08 00 25 A2 80 11 00 00 00 00 00 00 41 [16:48:02]Write i2c OK [16:48:02]MH_I2C_Read... [16:48:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:02]Read from MH i2c: E2 [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: E2 17 00 [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: E2 17 00 25 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 8E [16:48:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:48:02]wFMCommunicate OK [16:48:02]CreateOFDProtocolMessage done [16:48:02]OFDSenderStorePacket 260796 [16:48:02]StoreOFDPacket docnum=260796 [16:48:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 F1 C3 07 01 9A AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 C6 25 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BC FA 03 00 35 04 06 00 B2 BE 92 A5 7A FD E8 6E 63 F3 3F 23 14 51 [16:48:02]CheckFolder [16:48:02]dirname=/storage/ofd_packets [16:48:02]CheckFolder done [16:48:02]ProducePacketName [16:48:02]name=ofd_packets/00260796 [16:48:02]NVStorageSaveData ofd_packets/00260796 [16:48:02]File name is /storage/ofd_packets/00260796 [16:48:02]Write 301 bytes [16:48:02]NVStorageSaveData done [16:48:02]OFDSenderStorePacket done [16:48:02]KKMCreateOFDPacket done [16:48:02]NVStorageSaveData kkm_last_timestamp [16:48:02]File name is /storage/kkm_last_timestamp [16:48:02]Write 4 bytes [16:48:02]NVStorageSaveData done [16:48:02]ExternCall_PrintAddStr [16:48:02]wPrintStart [16:48:02]Write to MH i2c: 01 00 00 26 A2 C8 [16:48:02]Write i2c OK [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: 01 [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: 01 07 00 [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: 01 07 00 26 A2 00 00 00 00 00 FF 0F DD [16:48:02]RasterBufferAndPrint [16:48:02]line Счет N : (1)1036348 [16:48:02]line ИНН: 02508201610067 [16:48:02]line Контрольно-Кассовый Чек [16:48:02]line ПРОДАЖА [16:48:02]line ТРК (МРК, ГНК) : 22 [16:48:02]line Товар: 2710124130 [16:48:02]line Аи-92-К-5 [16:48:02]line 14.750 * 67.80 [16:48:02]line = 1000.05 [16:48:02]line НДС 12% НСП 1% [16:48:02]line > о реализуемом товаре [16:48:02]line ОКРУГЛЕНИЕ: -0.05 [16:48:02]line ИТОГО: 1000.00 [16:48:02]line Внесено: 1000.00 [16:48:02]line СДАЧА: 0.00 [16:48:02]line НСП 1% : 8.85 [16:48:02]line НДС 12% : 106.20 [16:48:02]line Наличными: 1000.00 [16:48:02]line Безнал.: 0.00 [16:48:02]line Место: АЗС № 94 "Партнер Нефть" [16:48:02]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [16:48:02]line СНО: Общий режим [16:48:02]line Чек 354 18.08.2024 16:48 [16:48:02]line Смена: 449 ФФД: 1.0 [16:48:02]line ЗНМ: 0300000099 [16:48:02]line РНМ: 0000000000091865 [16:48:02]line Версия ККМ: 001 [16:48:02]line ФМ: 0000000000871820 [16:48:02]line ФД: 260796 [16:48:02]line ФПД: 196531573848829 [16:48:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T164806&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260796&fm=196531573848829&tin=02508201610067®Number=0000000000091865&sum=100000 [16:48:02]written 0, free lines is 4095 [16:48:02]OFD Sender: Processing packet 260796 [packets to send 192, broken 191] [16:48:02]ProducePacketName [16:48:02]name=ofd_packets/00260796 [16:48:02]OFD Sender: To server: pG, [16:48:02]CommunicateWithHost lk.salyk.kg:30040 [16:48:02]ConnectInit lk.salyk.kg [16:48:02]Connected sock=10 [16:48: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 30 0F 01 00 00 F1 C3 07 01 9A AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 C6 25 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BC FA 03 00 35 04 06 00 B2 BE 92 A5 7A FD E8 6E 63 F3 3F 23 14 51 [16:48: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 30 4F 00 00 00 C7 DD 47 00 0C 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 30 10 04 04 00 BC FA 03 00 F4 03 04 00 1A CF C1 66 B6 04 01 00 00 6A F4 1E FB CD 42 39 F0 [16:48:02]CommunicateWithHost err = 0 [16:48:02]CheckOFDResponse [16:48:02]1017 (14) - 77093643461234 [16:48:02]1041 (16) - 0000000000871820 [16:48:02]1040 (4) - 260796 [16:48:02]1012 (4) - 18.08.2024 10:38 [16:48:02]1206 (1) - 0 [16:48:02]OFD Sender: Remove packet 260796 [16:48:02]ProducePacketName [16:48:02]name=ofd_packets/00260796 [16:48:02]NVStorageDeleteData [16:48:02]Write to MH i2c: 01 00 00 51 A2 F3 [16:48:02]Write i2c OK [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: 01 [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: 01 07 00 [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: 01 07 00 51 A2 00 00 00 00 00 64 0C 6A [16:48:02]RasterBufferAndPrint [16:48:02]line [16:48:02]line [16:48:02]line [16:48:02]line [16:48:02]line [16:48:02]written 0, free lines is 3176 [16:48:02]MH_Cut [16:48:02]Write to MH i2c: D1 01 00 58 A2 01 CC [16:48:02]Write i2c OK [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: D1 [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: D1 01 00 [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: D1 01 00 58 A2 00 CB [16:48:02]Write to MH i2c: 01 00 00 59 A2 FB [16:48:02]Write i2c OK [16:48:02]MH_I2C_Read... [16:48:03]OFD Sender: No OFD packet to send [16:48:03]*** Cut start [16:48:03]*** Purtial cut [16:48:03]*** Stage 1: CUTSNS_PIN = 1 [16:48:06]Read from MH i2c: 01 [16:48:06]MH_I2C_Read... [16:48:06]*** Stop cut motor [16:48:06]*** Cut end [16:48:06]Read from MH i2c: 01 07 00 [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: 01 07 00 59 A2 00 00 00 00 00 FF 0F 10 [16:48:06]process_action close_receipt done [16:48:06]requested_data is exist [16:48:06]produce_requested_data [16:48:06]requested_item fm.sn is exist - process it [16:48:06]wFMCommunicate request_size=4 [16:48:06]MH_SAM_APDU [16:48:06]CAPDU: 80 11 00 00 [16:48:06]Write to MH i2c: E2 08 00 5A A2 80 11 00 00 00 00 00 00 76 [16:48:06]Write i2c OK [16:48:06]MH_I2C_Read... [16:48:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:06]Read from MH i2c: E2 [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: E2 17 00 [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: E2 17 00 5A A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C3 [16:48:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:48:06]wFMCommunicate OK [16:48:06]requested_item fd.num is exist - process it [16:48:06]SAM_PROTO_GetFieldsCounters [16:48:06]wFMCommunicate request_size=4 [16:48:06]MH_SAM_APDU [16:48:06]CAPDU: 80 13 00 00 [16:48:06]Write to MH i2c: E2 08 00 5B A2 80 13 00 00 00 00 00 00 79 [16:48:06]Write i2c OK [16:48:06]MH_I2C_Read... [16:48:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:06]Read from MH i2c: E2 [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: E2 62 00 [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: E2 62 00 5B A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 BC FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 3C [16:48: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 BC FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:06]wFMCommunicate OK [16:48:06]SAM_PROTO_GetFieldsCounters done [16:48:06]requested_item shift.num is exist - process it [16:48:06]requested_item shift.opened is exist - process it [16:48:06]req_shift_opened [16:48:06]FM_GetShiftState [16:48:06]SAM_PROTO_GetShiftState [16:48:06]wFMCommunicate request_size=4 [16:48:06]MH_SAM_APDU [16:48:06]CAPDU: 80 13 01 00 [16:48:06]Write to MH i2c: E2 08 00 5C A2 80 13 01 00 00 00 00 00 7B [16:48:06]Write i2c OK [16:48:06]MH_I2C_Read... [16:48:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:06]Read from MH i2c: E2 [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: E2 0E 00 [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: E2 0E 00 5C A2 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B8 [16:48:06]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:48:06]wFMCommunicate OK [16:48:06]SAM_PROTO_GetShiftState done [16:48:06]FM_GetShiftState done [16:48:06]req_shift_opened done [16:48:06]requested_item shift.open_date is exist - process it [16:48:06]req_shift_open_date [16:48:06]req_shift_open_date done [16:48:06]produce_requested_data done [16:48:06]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260796,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [16:48:06]process_action_free close_receipt [16:48:06]json_value_free [16:48:06]json_value_free done [16:48:06]process_json_proto returns [16:48:06]Send response to host [16:48:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260796,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [16:48:06]free response buf [16:48:06]execute_script done [16:48:06]execute_script returns [16:48:06]free content buf [16:48:06]Sock 9.Close socket [16:48:06]Sock 9.Thread stoped [16:48:08]OFD Sender: No OFD packet to send [16:48:13]OFD Sender: No OFD packet to send [16:48:18]OFD Sender: No OFD packet to send [16:48:23]OFD Sender: No OFD packet to send [16:48:28]OFD Sender: No OFD packet to send [16:48:33]OFD Sender: No OFD packet to send [16:48:38]OFD Sender: No OFD packet to send [16:48:43]OFD Sender: No OFD packet to send [16:48:48]OFD Sender: No OFD packet to send [16:48:53]OFD Sender: No OFD packet to send [16:48:58]OFD Sender: No OFD packet to send [16:49:03]OFD Sender: No OFD packet to send [16:49:08]OFD Sender: No OFD packet to send [16:49:13]OFD Sender: No OFD packet to send [16:49:18]OFD Sender: No OFD packet to send [16:49:23]OFD Sender: No OFD packet to send [16:49:28]OFD Sender: No OFD packet to send [16:49:33]OFD Sender: No OFD packet to send [16:49:38]OFD Sender: No OFD packet to send [16:49:43]OFD Sender: No OFD packet to send [16:49:48]OFD Sender: No OFD packet to send [16:49:53]OFD Sender: No OFD packet to send [16:49:58]OFD Sender: No OFD packet to send [16:50:03]OFD Sender: No OFD packet to send [16:50:08]OFD Sender: No OFD packet to send [16:50:13]OFD Sender: No OFD packet to send [16:50:18]OFD Sender: No OFD packet to send [16:50:23]OFD Sender: No OFD packet to send [16:50:28]OFD Sender: No OFD packet to send [16:50:33]OFD Sender: No OFD packet to send [16:50:38]OFD Sender: No OFD packet to send [16:50:38]accept exits with 7 [16:50:38]New connection [16:50:38]New thread 3066617188 created [16:50:38]Thread 3066473828 joined [16:50:38]Waiting for new connection... [16:50:38] Sock 7.Parse request [16:50:38]Sock 7.Check first char [16:50:38]Sock 7.First char is OK [16:50:38]request: POST /json_proto HTTP/1.0 [16:50:38]Method: POST [16:50:38]URL: /json_proto [16:50:38]Method is POST - this is cgi request [16:50:38]url: /json_proto [16:50:38]query_string will be loaded in cgi processing [16:50:38]execute_cgi json_proto POST (null) [16:50:38]execute_cgi path=json_proto method=POST [16:50:38]POST find Content-Length [16:50:38]Host: 172.17.55.133:8080 [16:50:38]Content-Length: 801 [16:50:38]Content-Type: application/json [16:50:38] [16:50:38]POST finish read [16:50:38]Found Content-Length = 801 [16:50:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.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" : 600.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:38]execute_script... [16:50: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)1036349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.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" : 600.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:38]POST & json_proto [16:50:38]process_json_proto [16:50:38]json parsed OK: [16:50:38]protocol is kg_v1.0 [16:50:38]action value=close_receipt [16:50:38]process_action close_receipt [16:50:38]cmd_close_receipt [16:50:38]MH_GetDate [16:50:38]Write to MH i2c: F0 00 00 5D A2 EE [16:50:38]Write i2c OK [16:50:38]MH_I2C_Read... [16:50:38]Read from MH i2c: F0 [16:50:38]MH_I2C_Read... [16:50:38]Read from MH i2c: F0 09 00 [16:50:38]MH_I2C_Read... [16:50:38]Read from MH i2c: F0 09 00 5D A2 00 64 26 C2 66 34 48 D8 65 62 [16:50:38]GetLastDocTimeStamp 1723999686 [16:50:38]current date 1723999844 [16:50:38]FM_GetShiftState [16:50:38]SAM_PROTO_GetShiftState [16:50:38]wFMCommunicate request_size=4 [16:50:38]MH_SAM_APDU [16:50:38]CAPDU: 80 13 01 00 [16:50:38]Write to MH i2c: E2 08 00 5E A2 80 13 01 00 00 00 00 00 7D [16:50:38]Write i2c OK [16:50:38]MH_I2C_Read... [16:50:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:39]Read from MH i2c: E2 [16:50:39]MH_I2C_Read... [16:50:39]Read from MH i2c: E2 0E 00 [16:50:39]MH_I2C_Read... [16:50:39]Read from MH i2c: E2 0E 00 5E A2 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 BA [16:50:39]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:50:39]wFMCommunicate OK [16:50:39]SAM_PROTO_GetShiftState done [16:50:39]FM_GetShiftState done [16:50:39]opened in 1723940556 [16:50:39]opened+sec_in_day 1724026956 [16:50:39]quantity*price = 60003 [16:50:39]sum+1 = 60004 [16:50:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.03 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.03 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 355 18.08.2024 16:50 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260797 ФПД: 92440303610765 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T165044&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260797&fm=92440303610765&tin=02508201610067®Number=0000000000091865&sum=60003 [16:50:40]StoreToDocumentArchive [16:50:40]shift 449 fd 260797 [16:50:40]save to /storage/0449/doc_00260797 [16:50:40]save last doc name /storage/0449/doc_00260797 to /storage/kkm_last_doc_name [16:50:40]save OK [16:50:40]Clear old archive folders... [16:50:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:50:40]tlvbuf is 00332A10 [16:50:40]SAM_PROTO_ClearQueue [16:50:40]wFMCommunicate request_size=4 [16:50:40]MH_SAM_APDU [16:50:40]CAPDU: 80 09 00 00 [16:50:40]Write to MH i2c: E2 08 00 6B A2 80 09 00 00 00 00 00 00 7F [16:50:40]Write i2c OK [16:50:40]MH_I2C_Read... [16:50:40]Read from MH i2c: E2 [16:50:40]MH_I2C_Read... [16:50:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:40]Read from MH i2c: E2 03 00 [16:50:40]MH_I2C_Read... [16:50:40]Read from MH i2c: E2 03 00 6B A2 00 90 00 81 [16:50:40]RAPDU: 90 00 [16:50:40]wFMCommunicate OK [16:50:40]SAM_PROTO_ClearQueue done [16:50:40]KKMCreateOFDPacket [16:50:40]OFDProtocolAddRootSTLVToBuf [16:50:40]FM_MakeSignedData [16:50:40]FM_MakeSignedData [16:50:40]SAM_PROTO_SignData [16:50:40]wFMCommunicate request_size=4 [16:50:40]MH_SAM_APDU [16:50:40]CAPDU: 80 0D 01 02 [16:50:40]Write to MH i2c: E2 08 00 6C A2 80 0D 01 02 00 00 00 00 87 [16:50:40]Write i2c OK [16:50:40]MH_I2C_Read... [16:50:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:40]Read from MH i2c: E2 [16:50:40]MH_I2C_Read... [16:50:40]Read from MH i2c: E2 03 00 [16:50:40]MH_I2C_Read... [16:50:40]Read from MH i2c: E2 03 00 6C A2 00 90 00 82 [16:50:40]RAPDU: 90 00 [16:50:40]wFMCommunicate OK [16:50:40]wFMCommunicate request_size=255 [16:50:40]MH_SAM_APDU [16:50:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 64 26 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BD FA 03 00 35 04 06 00 54 [16:50:40]Write to MH i2c: E2 02 01 6D A2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 64 26 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BD FA 03 00 35 04 06 00 54 00 00 B7 [16:50:40]Write i2c OK [16:50:40]MH_I2C_Read... [16:50:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:40]Read from MH i2c: E2 [16:50:40]MH_I2C_Read... [16:50:40]Read from MH i2c: E2 03 00 [16:50:40]MH_I2C_Read... [16:50:40]Read from MH i2c: E2 03 00 6D A2 00 90 00 83 [16:50:40]RAPDU: 90 00 [16:50:40]wFMCommunicate OK [16:50:40]wFMCommunicate request_size=10 [16:50:40]MH_SAM_APDU [16:50:40]CAPDU: 80 0D 02 02 05 12 EF 75 AB 8D [16:50:40]Write to MH i2c: E2 0D 00 6E A2 80 0D 02 02 05 00 12 EF 75 AB 8D 00 00 42 [16:50:40]Write i2c OK [16:50:40]MH_I2C_Read... [16:50:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:40]Read from MH i2c: E2 [16:50:40]MH_I2C_Read... [16:50:40]Read from MH i2c: E2 03 00 [16:50:40]MH_I2C_Read... [16:50:40]Read from MH i2c: E2 03 00 6E A2 00 90 00 84 [16:50:40]RAPDU: 90 00 [16:50:40]wFMCommunicate OK [16:50:40]wFMCommunicate request_size=4 [16:50:40]MH_SAM_APDU [16:50:40]CAPDU: 80 0D 03 02 [16:50:40]Write to MH i2c: E2 08 00 6F A2 80 0D 03 02 00 00 00 00 8C [16:50:40]Write i2c OK [16:50:40]MH_I2C_Read... [16:50:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:40]Read from MH i2c: E2 [16:50:40]MH_I2C_Read... [16:50:40]Read from MH i2c: E2 0B 00 [16:50:40]MH_I2C_Read... [16:50:40]Read from MH i2c: E2 0B 00 6F A2 00 F9 1E 2B 7E 1F 2B CC BA 90 00 1D [16:50:40]RAPDU: F9 1E 2B 7E 1F 2B CC BA 90 00 [16:50:40]wFMCommunicate OK [16:50:40]SAM_PROTO_SignData done [16:50:40]FM_MakeSignedData done [16:50:40]CreateOFDProtocolMessage [16:50:40]wFMCommunicate request_size=4 [16:50:40]MH_SAM_APDU [16:50:40]CAPDU: 80 11 00 00 [16:50:40]Write to MH i2c: E2 08 00 70 A2 80 11 00 00 00 00 00 00 8C [16:50:40]Write i2c OK [16:50:40]MH_I2C_Read... [16:50:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:40]Read from MH i2c: E2 [16:50:40]MH_I2C_Read... [16:50:40]Read from MH i2c: E2 17 00 [16:50:40]MH_I2C_Read... [16:50:40]Read from MH i2c: E2 17 00 70 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D9 [16:50:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:50:40]wFMCommunicate OK [16:50:40]CreateOFDProtocolMessage done [16:50:40]OFDSenderStorePacket 260797 [16:50:40]StoreOFDPacket docnum=260797 [16:50:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 86 8E 07 01 F3 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 64 26 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BD FA 03 00 35 04 06 00 54 12 EF 75 AB 8D F9 1E 2B 7E 1F 2B CC BA [16:50:40]CheckFolder [16:50:40]dirname=/storage/ofd_packets [16:50:40]CheckFolder done [16:50:40]ProducePacketName [16:50:40]name=ofd_packets/00260797 [16:50:40]NVStorageSaveData ofd_packets/00260797 [16:50:40]File name is /storage/ofd_packets/00260797 [16:50:40]Write 301 bytes [16:50:40]NVStorageSaveData done [16:50:40]OFDSenderStorePacket done [16:50:40]KKMCreateOFDPacket done [16:50:40]NVStorageSaveData kkm_last_timestamp [16:50:40]File name is /storage/kkm_last_timestamp [16:50:40]Write 4 bytes [16:50:40]NVStorageSaveData done [16:50:40]ExternCall_PrintAddStr [16:50:40]wPrintStart [16:50:40]Write to MH i2c: 01 00 00 71 A2 13 [16:50:40]Write i2c OK [16:50:40]MH_I2C_Read... [16:50:40]Read from MH i2c: 01 [16:50:40]MH_I2C_Read... [16:50:40]Read from MH i2c: 01 07 00 [16:50:40]MH_I2C_Read... [16:50:40]Read from MH i2c: 01 07 00 71 A2 00 00 00 00 00 FF 0F 28 [16:50:40]RasterBufferAndPrint [16:50:40]line Счет N : (1)1036349 [16:50:40]line ИНН: 02508201610067 [16:50:40]line Контрольно-Кассовый Чек [16:50:40]line ПРОДАЖА [16:50:40]line ТРК (МРК, ГНК) : 32 [16:50:40]line Товар: 2710124130 [16:50:40]line Аи-92-К-5 [16:50:40]line 8.850 * 67.80 [16:50:40]line = 600.03 [16:50:40]line НДС 12% НСП 1% [16:50:40]line > о реализуемом товаре [16:50:40]line ИТОГО: 600.03 [16:50:40]line НСП 1% : 5.31 [16:50:40]line НДС 12% : 63.72 [16:50:40]line Наличными: 0.00 [16:50:40]line Безнал.: 600.03 [16:50:40]line Место: АЗС № 94 "Партнер Нефть" [16:50:40]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [16:50:40]line СНО: Общий режим [16:50:40]line Чек 355 18.08.2024 16:50 [16:50:40]line Смена: 449 ФФД: 1.0 [16:50:40]line ЗНМ: 0300000099 [16:50:40]line РНМ: 0000000000091865 [16:50:40]line Версия ККМ: 001 [16:50:40]line Платежная система: O! деньги [16:50:40]line ФМ: 0000000000871820 [16:50:40]line ФД: 260797 [16:50:40]line ФПД: 92440303610765 [16:50:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T165044&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260797&fm=92440303610765&tin=02508201610067®Number=0000000000091865&sum=60003 [16:50:40]OFD Sender: Processing packet 260797 [packets to send 192, broken 191] [16:50:40]ProducePacketName [16:50:40]name=ofd_packets/00260797 [16:50:40]OFD Sender: To server: pG, [16:50:40]CommunicateWithHost lk.salyk.kg:30040 [16:50:40]ConnectInit lk.salyk.kg [16:50:40]written 0, free lines is 4095 [16:50:41]Connected sock=10 [16:50: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 30 0F 01 00 00 86 8E 07 01 F3 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 64 26 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BD FA 03 00 35 04 06 00 54 12 EF 75 AB 8D F9 1E 2B 7E 1F 2B CC BA [16:50: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 30 4F 00 00 00 51 D4 47 00 BE 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 30 10 04 04 00 BD FA 03 00 F4 03 04 00 B9 CF C1 66 B6 04 01 00 00 D1 62 74 F7 26 2E 3C 38 [16:50:41]CommunicateWithHost err = 0 [16:50:41]CheckOFDResponse [16:50:41]1017 (14) - 77093643461234 [16:50:41]1041 (16) - 0000000000871820 [16:50:41]1040 (4) - 260797 [16:50:41]1012 (4) - 18.08.2024 10:40 [16:50:41]1206 (1) - 0 [16:50:41]OFD Sender: Remove packet 260797 [16:50:41]ProducePacketName [16:50:41]name=ofd_packets/00260797 [16:50:41]NVStorageDeleteData [16:50:41]Write to MH i2c: 01 00 00 9B A2 3D [16:50:41]Write i2c OK [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: 01 [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: 01 07 00 [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: 01 07 00 9B A2 00 00 00 00 00 79 0C C9 [16:50:41]RasterBufferAndPrint [16:50:41]line [16:50:41]line [16:50:41]line [16:50:41]line [16:50:41]line [16:50:41]written 0, free lines is 3196 [16:50:41]MH_Cut [16:50:41]Write to MH i2c: D1 01 00 A2 A2 01 16 [16:50:41]Write i2c OK [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: D1 [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: D1 01 00 [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: D1 01 00 A2 A2 00 15 [16:50:41]Write to MH i2c: 01 00 00 A3 A2 45 [16:50:41]Write i2c OK [16:50:41]MH_I2C_Read... [16:50:41]OFD Sender: No OFD packet to send [16:50:42]*** Cut start [16:50:42]*** Purtial cut [16:50:42]*** Stage 1: CUTSNS_PIN = 1 [16:50:44]Read from MH i2c: 01 [16:50:44]MH_I2C_Read... [16:50:44]*** Stop cut motor [16:50:44]*** Cut end [16:50:44]Read from MH i2c: 01 07 00 [16:50:44]MH_I2C_Read... [16:50:44]Read from MH i2c: 01 07 00 A3 A2 00 00 00 00 00 FF 0F 5A [16:50:44]process_action close_receipt done [16:50:44]requested_data is exist [16:50:44]produce_requested_data [16:50:44]requested_item fm.sn is exist - process it [16:50:44]wFMCommunicate request_size=4 [16:50:44]MH_SAM_APDU [16:50:44]CAPDU: 80 11 00 00 [16:50:44]Write to MH i2c: E2 08 00 A4 A2 80 11 00 00 00 00 00 00 C0 [16:50:44]Write i2c OK [16:50:44]MH_I2C_Read... [16:50:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:44]Read from MH i2c: E2 [16:50:44]MH_I2C_Read... [16:50:44]Read from MH i2c: E2 17 00 [16:50:44]MH_I2C_Read... [16:50:44]Read from MH i2c: E2 17 00 A4 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 0D [16:50:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:50:44]wFMCommunicate OK [16:50:44]requested_item fd.num is exist - process it [16:50:44]SAM_PROTO_GetFieldsCounters [16:50:44]wFMCommunicate request_size=4 [16:50:44]MH_SAM_APDU [16:50:44]CAPDU: 80 13 00 00 [16:50:44]Write to MH i2c: E2 08 00 A5 A2 80 13 00 00 00 00 00 00 C3 [16:50:44]Write i2c OK [16:50:44]MH_I2C_Read... [16:50:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:44]Read from MH i2c: E2 [16:50:44]MH_I2C_Read... [16:50:44]Read from MH i2c: E2 62 00 [16:50:44]MH_I2C_Read... [16:50:44]Read from MH i2c: E2 62 00 A5 A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 BD FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 8A [16:50: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 BD FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:50:44]wFMCommunicate OK [16:50:44]SAM_PROTO_GetFieldsCounters done [16:50:44]requested_item shift.num is exist - process it [16:50:44]requested_item shift.opened is exist - process it [16:50:44]req_shift_opened [16:50:44]FM_GetShiftState [16:50:44]SAM_PROTO_GetShiftState [16:50:44]wFMCommunicate request_size=4 [16:50:44]MH_SAM_APDU [16:50:44]CAPDU: 80 13 01 00 [16:50:44]Write to MH i2c: E2 08 00 A6 A2 80 13 01 00 00 00 00 00 C5 [16:50:44]Write i2c OK [16:50:44]MH_I2C_Read... [16:50:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:44]Read from MH i2c: E2 [16:50:44]MH_I2C_Read... [16:50:44]Read from MH i2c: E2 0E 00 [16:50:44]MH_I2C_Read... [16:50:44]Read from MH i2c: E2 0E 00 A6 A2 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 02 [16:50:44]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:50:44]wFMCommunicate OK [16:50:44]SAM_PROTO_GetShiftState done [16:50:44]FM_GetShiftState done [16:50:44]req_shift_opened done [16:50:44]requested_item shift.open_date is exist - process it [16:50:44]req_shift_open_date [16:50:44]req_shift_open_date done [16:50:44]produce_requested_data done [16:50:44]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260797,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [16:50:44]process_action_free close_receipt [16:50:44]json_value_free [16:50:44]json_value_free done [16:50:44]process_json_proto returns [16:50:44]Send response to host [16:50:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260797,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [16:50:44]free response buf [16:50:44]execute_script done [16:50:44]execute_script returns [16:50:44]free content buf [16:50:44]Sock 7.Close socket [16:50:44]Sock 7.Thread stoped [16:50:46]OFD Sender: No OFD packet to send [16:50:51]OFD Sender: No OFD packet to send [16:50:56]OFD Sender: No OFD packet to send [16:51:01]OFD Sender: No OFD packet to send [16:51:06]OFD Sender: No OFD packet to send [16:51:11]OFD Sender: No OFD packet to send [16:51:16]OFD Sender: No OFD packet to send [16:51:21]OFD Sender: No OFD packet to send [16:51:26]OFD Sender: No OFD packet to send [16:51:31]OFD Sender: No OFD packet to send [16:51:36]OFD Sender: No OFD packet to send [16:51:41]OFD Sender: No OFD packet to send [16:51:46]OFD Sender: No OFD packet to send [16:51:51]OFD Sender: No OFD packet to send [16:51:56]OFD Sender: No OFD packet to send [16:52:01]OFD Sender: No OFD packet to send [16:52:06]OFD Sender: No OFD packet to send [16:52:11]OFD Sender: No OFD packet to send [16:52:16]OFD Sender: No OFD packet to send [16:52:18]accept exits with 9 [16:52:18]New connection [16:52:18]New thread 3066473828 created [16:52:18]Thread 3066617188 joined [16:52:18]Waiting for new connection... [16:52:18] Sock 9.Parse request [16:52:18]Sock 9.Check first char [16:52:18]Sock 9.First char is OK [16:52:18]request: POST /json_proto HTTP/1.0 [16:52:18]Method: POST [16:52:18]URL: /json_proto [16:52:18]Method is POST - this is cgi request [16:52:18]url: /json_proto [16:52:18]query_string will be loaded in cgi processing [16:52:18]execute_cgi json_proto POST (null) [16:52:18]execute_cgi path=json_proto method=POST [16:52:18]POST find Content-Length [16:52:18]Host: 172.17.55.133:8080 [16:52:18]Content-Length: 683 [16:52:18]Content-Type: application/json [16:52:18] [16:52:18]POST finish read [16:52:18]Found Content-Length = 683 [16:52:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036350", "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" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:18]execute_script... [16:52: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)1036350", "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" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:18]POST & json_proto [16:52:18]process_json_proto [16:52:18]json parsed OK: [16:52:18]protocol is kg_v1.0 [16:52:18]action value=close_receipt [16:52:18]process_action close_receipt [16:52:18]cmd_close_receipt [16:52:18]MH_GetDate [16:52:18]Write to MH i2c: F0 00 00 A7 A2 38 [16:52:18]Write i2c OK [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: F0 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: F0 09 00 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: F0 09 00 A7 A2 00 C8 26 C2 66 34 48 D8 65 10 [16:52:18]GetLastDocTimeStamp 1723999844 [16:52:18]current date 1723999944 [16:52:18]FM_GetShiftState [16:52:18]SAM_PROTO_GetShiftState [16:52:18]wFMCommunicate request_size=4 [16:52:18]MH_SAM_APDU [16:52:18]CAPDU: 80 13 01 00 [16:52:18]Write to MH i2c: E2 08 00 A8 A2 80 13 01 00 00 00 00 00 C7 [16:52:18]Write i2c OK [16:52:18]MH_I2C_Read... [16:52:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:18]Read from MH i2c: E2 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: E2 0E 00 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: E2 0E 00 A8 A2 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 04 [16:52:18]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:52:18]wFMCommunicate OK [16:52:18]SAM_PROTO_GetShiftState done [16:52:18]FM_GetShiftState done [16:52:18]opened in 1723940556 [16:52:18]opened+sec_in_day 1724026956 [16:52:18]quantity*price = 200043 [16:52:18]sum+1 = 200044 [16:52:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 6000.00 СДАЧА: 4000.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 356 18.08.2024 16:52 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260798 ФПД: 223344514532115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T165224&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260798&fm=223344514532115&tin=02508201610067®Number=0000000000091865&sum=200000 [16:52:19]StoreToDocumentArchive [16:52:19]shift 449 fd 260798 [16:52:19]save to /storage/0449/doc_00260798 [16:52:19]save last doc name /storage/0449/doc_00260798 to /storage/kkm_last_doc_name [16:52:19]save OK [16:52:19]Clear old archive folders... [16:52:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:52:19]tlvbuf is 00387740 [16:52:19]SAM_PROTO_ClearQueue [16:52:19]wFMCommunicate request_size=4 [16:52:19]MH_SAM_APDU [16:52:19]CAPDU: 80 09 00 00 [16:52:19]Write to MH i2c: E2 08 00 B5 A2 80 09 00 00 00 00 00 00 C9 [16:52:19]Write i2c OK [16:52:19]MH_I2C_Read... [16:52:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:52:19]Read from MH i2c: E2 [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: E2 03 00 [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: E2 03 00 B5 A2 00 90 00 CB [16:52:19]RAPDU: 90 00 [16:52:19]wFMCommunicate OK [16:52:19]SAM_PROTO_ClearQueue done [16:52:19]KKMCreateOFDPacket [16:52:19]OFDProtocolAddRootSTLVToBuf [16:52:19]FM_MakeSignedData [16:52:19]FM_MakeSignedData [16:52:19]SAM_PROTO_SignData [16:52:19]wFMCommunicate request_size=4 [16:52:19]MH_SAM_APDU [16:52:19]CAPDU: 80 0D 01 02 [16:52:19]Write to MH i2c: E2 08 00 B6 A2 80 0D 01 02 00 00 00 00 D1 [16:52:19]Write i2c OK [16:52:19]MH_I2C_Read... [16:52:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:19]Read from MH i2c: E2 [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: E2 03 00 [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: E2 03 00 B6 A2 00 90 00 CC [16:52:19]RAPDU: 90 00 [16:52:19]wFMCommunicate OK [16:52:19]wFMCommunicate request_size=255 [16:52:19]MH_SAM_APDU [16:52:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 C8 26 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BE FA 03 00 35 04 06 00 CB [16:52:19]Write to MH i2c: E2 02 01 B7 A2 80 0D 02 02 FA 00 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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 C8 26 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BE FA 03 00 35 04 06 00 CB 00 00 C9 [16:52:19]Write i2c OK [16:52:19]MH_I2C_Read... [16:52:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:20]Read from MH i2c: E2 [16:52:20]MH_I2C_Read... [16:52:20]Read from MH i2c: E2 03 00 [16:52:20]MH_I2C_Read... [16:52:20]Read from MH i2c: E2 03 00 B7 A2 00 90 00 CD [16:52:20]RAPDU: 90 00 [16:52:20]wFMCommunicate OK [16:52:20]wFMCommunicate request_size=10 [16:52:20]MH_SAM_APDU [16:52:20]CAPDU: 80 0D 02 02 05 21 72 73 83 13 [16:52:20]Write to MH i2c: E2 0D 00 B8 A2 80 0D 02 02 05 00 21 72 73 83 13 00 00 7A [16:52:20]Write i2c OK [16:52:20]MH_I2C_Read... [16:52:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:20]Read from MH i2c: E2 [16:52:20]MH_I2C_Read... [16:52:20]Read from MH i2c: E2 03 00 [16:52:20]MH_I2C_Read... [16:52:20]Read from MH i2c: E2 03 00 B8 A2 00 90 00 CE [16:52:20]RAPDU: 90 00 [16:52:20]wFMCommunicate OK [16:52:20]wFMCommunicate request_size=4 [16:52:20]MH_SAM_APDU [16:52:20]CAPDU: 80 0D 03 02 [16:52:20]Write to MH i2c: E2 08 00 B9 A2 80 0D 03 02 00 00 00 00 D6 [16:52:20]Write i2c OK [16:52:20]MH_I2C_Read... [16:52:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:20]Read from MH i2c: E2 [16:52:20]MH_I2C_Read... [16:52:20]Read from MH i2c: E2 0B 00 [16:52:20]MH_I2C_Read... [16:52:20]Read from MH i2c: E2 0B 00 B9 A2 00 A7 9B 5D 0B CC 5F E6 EA 90 00 7C [16:52:20]RAPDU: A7 9B 5D 0B CC 5F E6 EA 90 00 [16:52:20]wFMCommunicate OK [16:52:20]SAM_PROTO_SignData done [16:52:20]FM_MakeSignedData done [16:52:20]CreateOFDProtocolMessage [16:52:20]wFMCommunicate request_size=4 [16:52:20]MH_SAM_APDU [16:52:20]CAPDU: 80 11 00 00 [16:52:20]Write to MH i2c: E2 08 00 BA A2 80 11 00 00 00 00 00 00 D6 [16:52:20]Write i2c OK [16:52:20]MH_I2C_Read... [16:52:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:20]Read from MH i2c: E2 [16:52:20]MH_I2C_Read... [16:52:20]Read from MH i2c: E2 17 00 [16:52:20]MH_I2C_Read... [16:52:20]Read from MH i2c: E2 17 00 BA A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 23 [16:52:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:52:20]wFMCommunicate OK [16:52:20]CreateOFDProtocolMessage done [16:52:20]OFDSenderStorePacket 260798 [16:52:20]StoreOFDPacket docnum=260798 [16:52:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 69 73 07 01 44 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 C8 26 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BE FA 03 00 35 04 06 00 CB 21 72 73 83 13 A7 9B 5D 0B CC 5F E6 EA [16:52:20]CheckFolder [16:52:20]dirname=/storage/ofd_packets [16:52:20]CheckFolder done [16:52:20]ProducePacketName [16:52:20]name=ofd_packets/00260798 [16:52:20]NVStorageSaveData ofd_packets/00260798 [16:52:20]File name is /storage/ofd_packets/00260798 [16:52:20]Write 301 bytes [16:52:20]NVStorageSaveData done [16:52:20]OFDSenderStorePacket done [16:52:20]KKMCreateOFDPacket done [16:52:20]NVStorageSaveData kkm_last_timestamp [16:52:20]File name is /storage/kkm_last_timestamp [16:52:20]Write 4 bytes [16:52:20]NVStorageSaveData done [16:52:20]ExternCall_PrintAddStr [16:52:20]wPrintStart [16:52:20]Write to MH i2c: 01 00 00 BB A2 5D [16:52:20]Write i2c OK [16:52:20]MH_I2C_Read... [16:52:20]Read from MH i2c: 01 [16:52:20]MH_I2C_Read... [16:52:20]Read from MH i2c: 01 07 00 [16:52:20]MH_I2C_Read... [16:52:20]Read from MH i2c: 01 07 00 BB A2 00 00 00 00 00 FF 0F 72 [16:52:20]RasterBufferAndPrint [16:52:20]line Счет N : (1)1036350 [16:52:20]line ИНН: 02508201610067 [16:52:20]line Контрольно-Кассовый Чек [16:52:20]line ПРОДАЖА [16:52:20]line ТРК (МРК, ГНК) : 23 [16:52:20]line Товар: 2710124500 [16:52:20]line Аи-95-К-5 [16:52:20]line 26.960 * 74.20 [16:52:20]line = 2000.43 [16:52:20]line НДС 12% НСП 1% [16:52:20]line > о реализуемом товаре [16:52:20]line ОКРУГЛЕНИЕ: -0.43 [16:52:20]line ИТОГО: 2000.00 [16:52:20]line Внесено: 6000.00 [16:52:20]line СДАЧА: 4000.00 [16:52:20]line НСП 1% : 17.70 [16:52:20]line НДС 12% : 212.43 [16:52:20]line Наличными: 2000.00 [16:52:20]line Безнал.: 0.00 [16:52:20]line Место: АЗС № 94 "Партнер Нефть" [16:52:20]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [16:52:20]line СНО: Общий режим [16:52:20]line Чек 356 18.08.2024 16:52 [16:52:20]line Смена: 449 ФФД: 1.0 [16:52:20]line ЗНМ: 0300000099 [16:52:20]line РНМ: 0000000000091865 [16:52:20]line Версия ККМ: 001 [16:52:20]line ФМ: 0000000000871820 [16:52:20]line ФД: 260798 [16:52:20]line ФПД: 223344514532115 [16:52:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T165224&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260798&fm=223344514532115&tin=02508201610067®Number=0000000000091865&sum=200000 [16:52:20]OFD Sender: Processing packet 260798 [packets to send 192, broken 191] [16:52:20]ProducePacketName [16:52:20]name=ofd_packets/00260798 [16:52:20]OFD Sender: To server: pG, [16:52:20]CommunicateWithHost lk.salyk.kg:30040 [16:52:20]ConnectInit lk.salyk.kg [16:52:20]written 0, free lines is 4095 [16:52:20]Connected sock=10 [16:52: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 30 0F 01 00 00 69 73 07 01 44 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 C8 26 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BE FA 03 00 35 04 06 00 CB 21 72 73 83 13 A7 9B 5D 0B CC 5F E6 EA [16:52: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 30 4F 00 00 00 39 79 47 00 58 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BE FA 03 00 F4 03 04 00 1C D0 C1 66 B6 04 01 00 00 E4 46 D5 E7 9B 23 BA 81 [16:52:20]CommunicateWithHost err = 0 [16:52:20]CheckOFDResponse [16:52:20]1017 (14) - 77093643461234 [16:52:20]1041 (16) - 0000000000871820 [16:52:20]1040 (4) - 260798 [16:52:20]1012 (4) - 18.08.2024 10:42 [16:52:20]1206 (1) - 0 [16:52:20]OFD Sender: Remove packet 260798 [16:52:20]ProducePacketName [16:52:20]name=ofd_packets/00260798 [16:52:20]NVStorageDeleteData [16:52:20]Write to MH i2c: 01 00 00 E6 A2 88 [16:52:20]Write i2c OK [16:52:20]MH_I2C_Read... [16:52:20]Read from MH i2c: 01 [16:52:20]MH_I2C_Read... [16:52:20]Read from MH i2c: 01 07 00 [16:52:20]MH_I2C_Read... [16:52:20]Read from MH i2c: 01 07 00 E6 A2 00 00 00 00 00 61 0C FC [16:52:20]RasterBufferAndPrint [16:52:20]line [16:52:20]line [16:52:20]line [16:52:20]line [16:52:20]line [16:52:20]written 0, free lines is 3174 [16:52:21]MH_Cut [16:52:21]Write to MH i2c: D1 01 00 ED A2 01 61 [16:52:21]Write i2c OK [16:52:21]MH_I2C_Read... [16:52:21]Read from MH i2c: D1 [16:52:21]MH_I2C_Read... [16:52:21]Read from MH i2c: D1 01 00 [16:52:21]MH_I2C_Read... [16:52:21]Read from MH i2c: D1 01 00 ED A2 00 60 [16:52:21]Write to MH i2c: 01 00 00 EE A2 90 [16:52:21]Write i2c OK [16:52:21]MH_I2C_Read... [16:52:21]OFD Sender: No OFD packet to send [16:52:22]*** Cut start [16:52:22]*** Purtial cut [16:52:22]*** Stage 1: CUTSNS_PIN = 1 [16:52:24]Read from MH i2c: 01 [16:52:24]MH_I2C_Read... [16:52:24]*** Stop cut motor [16:52:24]*** Cut end [16:52:24]Read from MH i2c: 01 07 00 [16:52:24]MH_I2C_Read... [16:52:24]Read from MH i2c: 01 07 00 EE A2 00 00 00 00 00 FF 0F A5 [16:52:24]process_action close_receipt done [16:52:24]requested_data is exist [16:52:24]produce_requested_data [16:52:24]requested_item fm.sn is exist - process it [16:52:24]wFMCommunicate request_size=4 [16:52:24]MH_SAM_APDU [16:52:24]CAPDU: 80 11 00 00 [16:52:24]Write to MH i2c: E2 08 00 EF A2 80 11 00 00 00 00 00 00 0B [16:52:24]Write i2c OK [16:52:24]MH_I2C_Read... [16:52:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:24]Read from MH i2c: E2 [16:52:24]MH_I2C_Read... [16:52:24]Read from MH i2c: E2 17 00 [16:52:24]MH_I2C_Read... [16:52:24]Read from MH i2c: E2 17 00 EF A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 58 [16:52:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:52:24]wFMCommunicate OK [16:52:24]requested_item fd.num is exist - process it [16:52:24]SAM_PROTO_GetFieldsCounters [16:52:24]wFMCommunicate request_size=4 [16:52:24]MH_SAM_APDU [16:52:24]CAPDU: 80 13 00 00 [16:52:24]Write to MH i2c: E2 08 00 F0 A2 80 13 00 00 00 00 00 00 0E [16:52:24]Write i2c OK [16:52:24]MH_I2C_Read... [16:52:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:24]Read from MH i2c: E2 [16:52:24]MH_I2C_Read... [16:52:24]Read from MH i2c: E2 62 00 [16:52:24]MH_I2C_Read... [16:52:24]Read from MH i2c: E2 62 00 F0 A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 BE FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 D9 [16:52: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 BE FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:52:24]wFMCommunicate OK [16:52:24]SAM_PROTO_GetFieldsCounters done [16:52:24]requested_item shift.num is exist - process it [16:52:24]requested_item shift.opened is exist - process it [16:52:24]req_shift_opened [16:52:24]FM_GetShiftState [16:52:24]SAM_PROTO_GetShiftState [16:52:24]wFMCommunicate request_size=4 [16:52:24]MH_SAM_APDU [16:52:24]CAPDU: 80 13 01 00 [16:52:24]Write to MH i2c: E2 08 00 F1 A2 80 13 01 00 00 00 00 00 10 [16:52:24]Write i2c OK [16:52:24]MH_I2C_Read... [16:52:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:24]Read from MH i2c: E2 [16:52:24]MH_I2C_Read... [16:52:24]Read from MH i2c: E2 0E 00 [16:52:24]MH_I2C_Read... [16:52:24]Read from MH i2c: E2 0E 00 F1 A2 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 4D [16:52:24]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:52:24]wFMCommunicate OK [16:52:24]SAM_PROTO_GetShiftState done [16:52:24]FM_GetShiftState done [16:52:24]req_shift_opened done [16:52:24]requested_item shift.open_date is exist - process it [16:52:24]req_shift_open_date [16:52:24]req_shift_open_date done [16:52:24]produce_requested_data done [16:52:24]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260798,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [16:52:24]process_action_free close_receipt [16:52:24]json_value_free [16:52:24]json_value_free done [16:52:24]process_json_proto returns [16:52:24]Send response to host [16:52:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260798,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [16:52:24]free response buf [16:52:24]execute_script done [16:52:24]execute_script returns [16:52:24]free content buf [16:52:24]Sock 9.Close socket [16:52:24]Sock 9.Thread stoped [16:52:26]OFD Sender: No OFD packet to send [16:52:31]OFD Sender: No OFD packet to send [16:52:36]OFD Sender: No OFD packet to send [16:52:41]OFD Sender: No OFD packet to send [16:52:46]OFD Sender: No OFD packet to send [16:52:51]OFD Sender: No OFD packet to send [16:52:56]OFD Sender: No OFD packet to send [16:53:01]OFD Sender: No OFD packet to send [16:53:06]OFD Sender: No OFD packet to send [16:53:11]OFD Sender: No OFD packet to send [16:53:16]OFD Sender: No OFD packet to send [16:53:21]OFD Sender: No OFD packet to send [16:53:26]OFD Sender: No OFD packet to send [16:53:31]OFD Sender: No OFD packet to send [16:53:36]OFD Sender: No OFD packet to send [16:53:41]OFD Sender: No OFD packet to send [16:53:46]OFD Sender: No OFD packet to send [16:53:51]OFD Sender: No OFD packet to send [16:53:56]OFD Sender: No OFD packet to send [16:54:01]OFD Sender: No OFD packet to send [16:54:06]OFD Sender: No OFD packet to send [16:54:11]OFD Sender: No OFD packet to send [16:54:16]OFD Sender: No OFD packet to send [16:54:21]OFD Sender: No OFD packet to send [16:54:26]OFD Sender: No OFD packet to send [16:54:31]OFD Sender: No OFD packet to send [16:54:36]OFD Sender: No OFD packet to send [16:54:41]OFD Sender: No OFD packet to send [16:54:46]OFD Sender: No OFD packet to send [16:54:51]OFD Sender: No OFD packet to send [16:54:56]OFD Sender: No OFD packet to send [16:55:01]OFD Sender: No OFD packet to send [16:55:06]OFD Sender: No OFD packet to send [16:55:11]OFD Sender: No OFD packet to send [16:55:16]OFD Sender: No OFD packet to send [16:55:21]OFD Sender: No OFD packet to send [16:55:26]OFD Sender: No OFD packet to send [16:55:31]OFD Sender: No OFD packet to send [16:55:36]OFD Sender: No OFD packet to send [16:55:41]OFD Sender: No OFD packet to send [16:55:46]OFD Sender: No OFD packet to send [16:55:51]OFD Sender: No OFD packet to send [16:55:56]OFD Sender: No OFD packet to send [16:56:01]OFD Sender: No OFD packet to send [16:56:06]OFD Sender: No OFD packet to send [16:56:11]OFD Sender: No OFD packet to send [16:56:16]OFD Sender: No OFD packet to send [16:56:21]OFD Sender: No OFD packet to send [16:56:26]OFD Sender: No OFD packet to send [16:56:31]OFD Sender: No OFD packet to send [16:56:36]OFD Sender: No OFD packet to send [16:56:41]OFD Sender: No OFD packet to send [16:56:46]OFD Sender: No OFD packet to send [16:56:51]OFD Sender: No OFD packet to send [16:56:56]OFD Sender: No OFD packet to send [16:57:01]OFD Sender: No OFD packet to send [16:57:06]OFD Sender: No OFD packet to send [16:57:11]OFD Sender: No OFD packet to send [16:57:16]OFD Sender: No OFD packet to send [16:57:21]OFD Sender: No OFD packet to send [16:57:26]OFD Sender: No OFD packet to send [16:57:31]OFD Sender: No OFD packet to send [16:57:36]OFD Sender: No OFD packet to send [16:57:41]OFD Sender: No OFD packet to send [16:57:46]OFD Sender: No OFD packet to send [16:57:51]OFD Sender: No OFD packet to send [16:57:56]OFD Sender: No OFD packet to send [16:58:01]OFD Sender: No OFD packet to send [16:58:06]OFD Sender: No OFD packet to send [16:58:11]OFD Sender: No OFD packet to send [16:58:16]OFD Sender: No OFD packet to send [16:58:21]OFD Sender: No OFD packet to send [16:58:26]OFD Sender: No OFD packet to send [16:58:31]OFD Sender: No OFD packet to send [16:58:35]accept exits with 7 [16:58:35]New connection [16:58:35]New thread 3066617188 created [16:58:35]Thread 3066473828 joined [16:58:35]Waiting for new connection... [16:58:35] Sock 7.Parse request [16:58:35]Sock 7.Check first char [16:58:35]Sock 7.First char is OK [16:58:35]request: POST /json_proto HTTP/1.0 [16:58:35]Method: POST [16:58:35]URL: /json_proto [16:58:35]Method is POST - this is cgi request [16:58:35]url: /json_proto [16:58:35]query_string will be loaded in cgi processing [16:58:35]execute_cgi json_proto POST (null) [16:58:35]execute_cgi path=json_proto method=POST [16:58:35]POST find Content-Length [16:58:35]Host: 172.17.55.133:8080 [16:58:35]Content-Length: 678 [16:58:35]Content-Type: application/json [16:58:35] [16:58:35]POST finish read [16:58:35]Found Content-Length = 678 [16:58:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "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" ] } } [16:58:35]execute_script... [16:58: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)1036351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "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" ] } } [16:58:35]POST & json_proto [16:58:35]process_json_proto [16:58:35]json parsed OK: [16:58:35]protocol is kg_v1.0 [16:58:35]action value=close_receipt [16:58:35]process_action close_receipt [16:58:35]cmd_close_receipt [16:58:35]MH_GetDate [16:58:35]Write to MH i2c: F0 00 00 F2 A2 83 [16:58:35]Write i2c OK [16:58:35]MH_I2C_Read... [16:58:35]Read from MH i2c: F0 [16:58:35]MH_I2C_Read... [16:58:35]Read from MH i2c: F0 09 00 [16:58:35]MH_I2C_Read... [16:58:35]Read from MH i2c: F0 09 00 F2 A2 00 41 28 C2 66 34 48 D8 65 D6 [16:58:35]GetLastDocTimeStamp 1723999944 [16:58:35]current date 1724000321 [16:58:35]FM_GetShiftState [16:58:35]SAM_PROTO_GetShiftState [16:58:35]wFMCommunicate request_size=4 [16:58:35]MH_SAM_APDU [16:58:35]CAPDU: 80 13 01 00 [16:58:35]Write to MH i2c: E2 08 00 F3 A2 80 13 01 00 00 00 00 00 12 [16:58:35]Write i2c OK [16:58:35]MH_I2C_Read... [16:58:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:35]Read from MH i2c: E2 [16:58:35]MH_I2C_Read... [16:58:35]Read from MH i2c: E2 0E 00 [16:58:35]MH_I2C_Read... [16:58:35]Read from MH i2c: E2 0E 00 F3 A2 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 4F [16:58:35]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:58:35]wFMCommunicate OK [16:58:35]SAM_PROTO_GetShiftState done [16:58:35]FM_GetShiftState done [16:58:35]opened in 1723940556 [16:58:35]opened+sec_in_day 1724026956 [16:58:35]quantity*price = 25018 [16:58:35]sum+1 = 25019 [16:58:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 357 18.08.2024 16:58 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260799 ФПД: 85497923136541 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T165841&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260799&fm=85497923136541&tin=02508201610067®Number=0000000000091865&sum=25000 [16:58:36]StoreToDocumentArchive [16:58:36]shift 449 fd 260799 [16:58:36]save to /storage/0449/doc_00260799 [16:58:36]save last doc name /storage/0449/doc_00260799 to /storage/kkm_last_doc_name [16:58:36]save OK [16:58:36]Clear old archive folders... [16:58:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:58:36]tlvbuf is 00336640 [16:58:36]SAM_PROTO_ClearQueue [16:58:36]wFMCommunicate request_size=4 [16:58:36]MH_SAM_APDU [16:58:36]CAPDU: 80 09 00 00 [16:58:36]Write to MH i2c: E2 08 00 00 A3 80 09 00 00 00 00 00 00 15 [16:58:36]Write i2c OK [16:58:36]MH_I2C_Read... [16:58:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:58:36]Read from MH i2c: E2 [16:58:36]MH_I2C_Read... [16:58:36]Read from MH i2c: E2 03 00 [16:58:36]MH_I2C_Read... [16:58:36]Read from MH i2c: E2 03 00 00 A3 00 90 00 17 [16:58:36]RAPDU: 90 00 [16:58:36]wFMCommunicate OK [16:58:36]SAM_PROTO_ClearQueue done [16:58:36]KKMCreateOFDPacket [16:58:36]OFDProtocolAddRootSTLVToBuf [16:58:36]FM_MakeSignedData [16:58:36]FM_MakeSignedData [16:58:36]SAM_PROTO_SignData [16:58:36]wFMCommunicate request_size=4 [16:58:36]MH_SAM_APDU [16:58:36]CAPDU: 80 0D 01 02 [16:58:36]Write to MH i2c: E2 08 00 01 A3 80 0D 01 02 00 00 00 00 1D [16:58:36]Write i2c OK [16:58:36]MH_I2C_Read... [16:58:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:58:36]Read from MH i2c: E2 [16:58:36]MH_I2C_Read... [16:58:36]Read from MH i2c: E2 03 00 [16:58:36]MH_I2C_Read... [16:58:36]Read from MH i2c: E2 03 00 01 A3 00 90 00 18 [16:58:36]RAPDU: 90 00 [16:58:36]wFMCommunicate OK [16:58:36]wFMCommunicate request_size=255 [16:58:36]MH_SAM_APDU [16:58:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 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 65 01 00 00 F4 03 04 00 41 28 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BF FA 03 00 35 04 06 00 4D [16:58:36]Write to MH i2c: E2 02 01 02 A3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 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 65 01 00 00 F4 03 04 00 41 28 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BF FA 03 00 35 04 06 00 4D 00 00 6A [16:58:36]Write i2c OK [16:58:36]MH_I2C_Read... [16:58:36]OFD Sender: No OFD packet to send [16:58:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:36]Read from MH i2c: E2 [16:58:36]MH_I2C_Read... [16:58:36]Read from MH i2c: E2 03 00 [16:58:36]MH_I2C_Read... [16:58:36]Read from MH i2c: E2 03 00 02 A3 00 90 00 19 [16:58:36]RAPDU: 90 00 [16:58:36]wFMCommunicate OK [16:58:36]wFMCommunicate request_size=10 [16:58:36]MH_SAM_APDU [16:58:36]CAPDU: 80 0D 02 02 05 C2 89 56 6C 1D [16:58:36]Write to MH i2c: E2 0D 00 03 A3 80 0D 02 02 05 00 C2 89 56 6C 1D 00 00 54 [16:58:36]Write i2c OK [16:58:36]MH_I2C_Read... [16:58:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:37]Read from MH i2c: E2 [16:58:37]MH_I2C_Read... [16:58:37]Read from MH i2c: E2 03 00 [16:58:37]MH_I2C_Read... [16:58:37]Read from MH i2c: E2 03 00 03 A3 00 90 00 1A [16:58:37]RAPDU: 90 00 [16:58:37]wFMCommunicate OK [16:58:37]wFMCommunicate request_size=4 [16:58:37]MH_SAM_APDU [16:58:37]CAPDU: 80 0D 03 02 [16:58:37]Write to MH i2c: E2 08 00 04 A3 80 0D 03 02 00 00 00 00 22 [16:58:37]Write i2c OK [16:58:37]MH_I2C_Read... [16:58:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:58:37]Read from MH i2c: E2 [16:58:37]MH_I2C_Read... [16:58:37]Read from MH i2c: E2 0B 00 [16:58:37]MH_I2C_Read... [16:58:37]Read from MH i2c: E2 0B 00 04 A3 00 CD BC 8D 8E FD E4 90 C5 90 00 FD [16:58:37]RAPDU: CD BC 8D 8E FD E4 90 C5 90 00 [16:58:37]wFMCommunicate OK [16:58:37]SAM_PROTO_SignData done [16:58:37]FM_MakeSignedData done [16:58:37]CreateOFDProtocolMessage [16:58:37]wFMCommunicate request_size=4 [16:58:37]MH_SAM_APDU [16:58:37]CAPDU: 80 11 00 00 [16:58:37]Write to MH i2c: E2 08 00 05 A3 80 11 00 00 00 00 00 00 22 [16:58:37]Write i2c OK [16:58:37]MH_I2C_Read... [16:58:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:37]Read from MH i2c: E2 [16:58:37]MH_I2C_Read... [16:58:37]Read from MH i2c: E2 17 00 [16:58:37]MH_I2C_Read... [16:58:37]Read from MH i2c: E2 17 00 05 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 6F [16:58:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:58:37]wFMCommunicate OK [16:58:37]CreateOFDProtocolMessage done [16:58:37]OFDSenderStorePacket 260799 [16:58:37]StoreOFDPacket docnum=260799 [16:58:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 17 1F 07 01 FB 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 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 65 01 00 00 F4 03 04 00 41 28 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BF FA 03 00 35 04 06 00 4D C2 89 56 6C 1D CD BC 8D 8E FD E4 90 C5 [16:58:37]CheckFolder [16:58:37]dirname=/storage/ofd_packets [16:58:37]CheckFolder done [16:58:37]ProducePacketName [16:58:37]name=ofd_packets/00260799 [16:58:37]NVStorageSaveData ofd_packets/00260799 [16:58:37]File name is /storage/ofd_packets/00260799 [16:58:37]Write 301 bytes [16:58:37]NVStorageSaveData done [16:58:37]OFDSenderStorePacket done [16:58:37]KKMCreateOFDPacket done [16:58:37]NVStorageSaveData kkm_last_timestamp [16:58:37]File name is /storage/kkm_last_timestamp [16:58:37]Write 4 bytes [16:58:37]NVStorageSaveData done [16:58:37]ExternCall_PrintAddStr [16:58:37]wPrintStart [16:58:37]Write to MH i2c: 01 00 00 06 A3 A9 [16:58:37]Write i2c OK [16:58:37]MH_I2C_Read... [16:58:37]Read from MH i2c: 01 [16:58:37]MH_I2C_Read... [16:58:37]Read from MH i2c: 01 07 00 [16:58:37]MH_I2C_Read... [16:58:37]Read from MH i2c: 01 07 00 06 A3 00 00 00 00 00 FF 0F BE [16:58:37]RasterBufferAndPrint [16:58:37]line Счет N : (1)1036351 [16:58:37]line ИНН: 02508201610067 [16:58:37]line Контрольно-Кассовый Чек [16:58:37]line ПРОДАЖА [16:58:37]line ТРК (МРК, ГНК) : 12 [16:58:37]line Товар: 2710124130 [16:58:37]line Аи-92-К-5 [16:58:37]line 3.690 * 67.80 [16:58:37]line = 250.18 [16:58:37]line НДС 12% НСП 1% [16:58:37]line > о реализуемом товаре [16:58:37]line ОКРУГЛЕНИЕ: -0.18 [16:58:37]line ИТОГО: 250.00 [16:58:37]line Внесено: 250.00 [16:58:37]line СДАЧА: 0.00 [16:58:37]line НСП 1% : 2.21 [16:58:37]line НДС 12% : 26.57 [16:58:37]line Наличными: 250.00 [16:58:37]line Безнал.: 0.00 [16:58:37]line Место: АЗС № 94 "Партнер Нефть" [16:58:37]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [16:58:37]line СНО: Общий режим [16:58:37]line Чек 357 18.08.2024 16:58 [16:58:37]line Смена: 449 ФФД: 1.0 [16:58:37]line ЗНМ: 0300000099 [16:58:37]line РНМ: 0000000000091865 [16:58:37]line Версия ККМ: 001 [16:58:37]line ФМ: 0000000000871820 [16:58:37]line ФД: 260799 [16:58:37]line ФПД: 85497923136541 [16:58:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T165841&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260799&fm=85497923136541&tin=02508201610067®Number=0000000000091865&sum=25000 [16:58:37]OFD Sender: Processing packet 260799 [packets to send 192, broken 191] [16:58:37]ProducePacketName [16:58:37]name=ofd_packets/00260799 [16:58:37]OFD Sender: To server: pG, [16:58:37]CommunicateWithHost lk.salyk.kg:30040 [16:58:37]ConnectInit lk.salyk.kg [16:58:37]written 0, free lines is 4095 [16:58:37]Connected sock=10 [16:58: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 30 0F 01 00 00 17 1F 07 01 FB 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 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 65 01 00 00 F4 03 04 00 41 28 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BF FA 03 00 35 04 06 00 4D C2 89 56 6C 1D CD BC 8D 8E FD E4 90 C5 [16:58: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 30 4F 00 00 00 3C D6 47 00 75 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 30 10 04 04 00 BF FA 03 00 F4 03 04 00 95 D1 C1 66 B6 04 01 00 00 8C E5 31 A3 94 01 72 21 [16:58:37]CommunicateWithHost err = 0 [16:58:37]CheckOFDResponse [16:58:37]1017 (14) - 77093643461234 [16:58:37]1041 (16) - 0000000000871820 [16:58:37]1040 (4) - 260799 [16:58:37]1012 (4) - 18.08.2024 10:48 [16:58:37]1206 (1) - 0 [16:58:37]OFD Sender: Remove packet 260799 [16:58:37]ProducePacketName [16:58:37]name=ofd_packets/00260799 [16:58:37]NVStorageDeleteData [16:58:37]Write to MH i2c: 01 00 00 31 A3 D4 [16:58:37]Write i2c OK [16:58:37]MH_I2C_Read... [16:58:37]Read from MH i2c: 01 [16:58:37]MH_I2C_Read... [16:58:37]Read from MH i2c: 01 07 00 [16:58:37]MH_I2C_Read... [16:58:37]Read from MH i2c: 01 07 00 31 A3 00 00 00 00 00 68 0C 4F [16:58:37]RasterBufferAndPrint [16:58:37]line [16:58:37]line [16:58:37]line [16:58:37]line [16:58:37]line [16:58:37]written 0, free lines is 3180 [16:58:37]MH_Cut [16:58:37]Write to MH i2c: D1 01 00 38 A3 01 AD [16:58:37]Write i2c OK [16:58:37]MH_I2C_Read... [16:58:37]Read from MH i2c: D1 [16:58:37]MH_I2C_Read... [16:58:37]Read from MH i2c: D1 01 00 [16:58:37]MH_I2C_Read... [16:58:37]Read from MH i2c: D1 01 00 38 A3 00 AC [16:58:37]Write to MH i2c: 01 00 00 39 A3 DC [16:58:37]Write i2c OK [16:58:37]MH_I2C_Read... [16:58:38]OFD Sender: No OFD packet to send [16:58:39]*** Cut start [16:58:39]*** Purtial cut [16:58:39]*** Stage 1: CUTSNS_PIN = 1 [16:58:41]Read from MH i2c: 01 [16:58:41]MH_I2C_Read... [16:58:41]*** Stop cut motor [16:58:41]*** Cut end [16:58:41]Read from MH i2c: 01 07 00 [16:58:41]MH_I2C_Read... [16:58:41]Read from MH i2c: 01 07 00 39 A3 00 00 00 00 00 FF 0F F1 [16:58:41]process_action close_receipt done [16:58:41]requested_data is exist [16:58:41]produce_requested_data [16:58:41]requested_item fm.sn is exist - process it [16:58:41]wFMCommunicate request_size=4 [16:58:41]MH_SAM_APDU [16:58:41]CAPDU: 80 11 00 00 [16:58:41]Write to MH i2c: E2 08 00 3A A3 80 11 00 00 00 00 00 00 57 [16:58:41]Write i2c OK [16:58:41]MH_I2C_Read... [16:58:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:41]Read from MH i2c: E2 [16:58:41]MH_I2C_Read... [16:58:41]Read from MH i2c: E2 17 00 [16:58:41]MH_I2C_Read... [16:58:41]Read from MH i2c: E2 17 00 3A A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A4 [16:58:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:58:41]wFMCommunicate OK [16:58:41]requested_item fd.num is exist - process it [16:58:41]SAM_PROTO_GetFieldsCounters [16:58:41]wFMCommunicate request_size=4 [16:58:41]MH_SAM_APDU [16:58:41]CAPDU: 80 13 00 00 [16:58:41]Write to MH i2c: E2 08 00 3B A3 80 13 00 00 00 00 00 00 5A [16:58:41]Write i2c OK [16:58:41]MH_I2C_Read... [16:58:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:58:41]Read from MH i2c: E2 [16:58:41]MH_I2C_Read... [16:58:41]Read from MH i2c: E2 62 00 [16:58:41]MH_I2C_Read... [16:58:41]Read from MH i2c: E2 62 00 3B A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 BF FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 65 01 00 00 5E 04 04 00 65 01 00 00 57 04 04 00 66 01 00 00 19 04 04 00 00 00 00 00 90 00 29 [16:58: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 BF FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 65 01 00 00 5E 04 04 00 65 01 00 00 57 04 04 00 66 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:58:41]wFMCommunicate OK [16:58:41]SAM_PROTO_GetFieldsCounters done [16:58:41]requested_item shift.num is exist - process it [16:58:41]requested_item shift.opened is exist - process it [16:58:41]req_shift_opened [16:58:41]FM_GetShiftState [16:58:41]SAM_PROTO_GetShiftState [16:58:41]wFMCommunicate request_size=4 [16:58:41]MH_SAM_APDU [16:58:41]CAPDU: 80 13 01 00 [16:58:41]Write to MH i2c: E2 08 00 3C A3 80 13 01 00 00 00 00 00 5C [16:58:41]Write i2c OK [16:58:41]MH_I2C_Read... [16:58:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:41]Read from MH i2c: E2 [16:58:41]MH_I2C_Read... [16:58:41]Read from MH i2c: E2 0E 00 [16:58:41]MH_I2C_Read... [16:58:41]Read from MH i2c: E2 0E 00 3C A3 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 99 [16:58:41]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:58:41]wFMCommunicate OK [16:58:41]SAM_PROTO_GetShiftState done [16:58:41]FM_GetShiftState done [16:58:41]req_shift_opened done [16:58:41]requested_item shift.open_date is exist - process it [16:58:41]req_shift_open_date [16:58:41]req_shift_open_date done [16:58:41]produce_requested_data done [16:58:41]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260799,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [16:58:41]process_action_free close_receipt [16:58:41]json_value_free [16:58:41]json_value_free done [16:58:41]process_json_proto returns [16:58:41]Send response to host [16:58:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260799,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [16:58:41]free response buf [16:58:41]execute_script done [16:58:41]execute_script returns [16:58:41]free content buf [16:58:41]Sock 7.Close socket [16:58:41]Sock 7.Thread stoped [16:58:43]OFD Sender: No OFD packet to send [16:58:48]OFD Sender: No OFD packet to send [16:58:53]OFD Sender: No OFD packet to send [16:58:58]OFD Sender: No OFD packet to send [16:59:03]OFD Sender: No OFD packet to send [16:59:03]accept exits with 9 [16:59:03]New connection [16:59:03]New thread 3066473828 created [16:59:03]Thread 3066617188 joined [16:59:03]Waiting for new connection... [16:59:03] Sock 9.Parse request [16:59:03]Sock 9.Check first char [16:59:03]Sock 9.First char is OK [16:59:03]request: POST /json_proto HTTP/1.0 [16:59:03]Method: POST [16:59:03]URL: /json_proto [16:59:03]Method is POST - this is cgi request [16:59:03]url: /json_proto [16:59:03]query_string will be loaded in cgi processing [16:59:03]execute_cgi json_proto POST (null) [16:59:03]execute_cgi path=json_proto method=POST [16:59:03]POST find Content-Length [16:59:03]Host: 172.17.55.133:8080 [16:59:03]Content-Length: 683 [16:59:03]Content-Type: application/json [16:59:03] [16:59:03]POST finish read [16:59:03]Found Content-Length = 683 [16:59:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036352", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:03]execute_script... [16:59: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)1036352", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:03]POST & json_proto [16:59:03]process_json_proto [16:59:03]json parsed OK: [16:59:03]protocol is kg_v1.0 [16:59:03]action value=close_receipt [16:59:03]process_action close_receipt [16:59:03]cmd_close_receipt [16:59:03]MH_GetDate [16:59:03]Write to MH i2c: F0 00 00 3D A3 CF [16:59:03]Write i2c OK [16:59:03]MH_I2C_Read... [16:59:03]Read from MH i2c: F0 [16:59:03]MH_I2C_Read... [16:59:03]Read from MH i2c: F0 09 00 [16:59:03]MH_I2C_Read... [16:59:03]Read from MH i2c: F0 09 00 3D A3 00 5D 28 C2 66 34 48 D8 65 3E [16:59:03]GetLastDocTimeStamp 1724000321 [16:59:03]current date 1724000349 [16:59:03]FM_GetShiftState [16:59:03]SAM_PROTO_GetShiftState [16:59:03]wFMCommunicate request_size=4 [16:59:03]MH_SAM_APDU [16:59:03]CAPDU: 80 13 01 00 [16:59:03]Write to MH i2c: E2 08 00 3E A3 80 13 01 00 00 00 00 00 5E [16:59:03]Write i2c OK [16:59:03]MH_I2C_Read... [16:59:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:03]Read from MH i2c: E2 [16:59:03]MH_I2C_Read... [16:59:03]Read from MH i2c: E2 0E 00 [16:59:03]MH_I2C_Read... [16:59:03]Read from MH i2c: E2 0E 00 3E A3 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 9B [16:59:03]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:59:03]wFMCommunicate OK [16:59:03]SAM_PROTO_GetShiftState done [16:59:03]FM_GetShiftState done [16:59:03]opened in 1723940556 [16:59:03]opened+sec_in_day 1724026956 [16:59:03]quantity*price = 100021 [16:59:03]sum+1 = 100023 [16:59:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 358 18.08.2024 16:59 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260800 ФПД: 252642417340770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T165909&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260800&fm=252642417340770&tin=02508201610067®Number=0000000000091865&sum=100000 [16:59:04]StoreToDocumentArchive [16:59:04]shift 449 fd 260800 [16:59:04]save to /storage/0449/doc_00260800 [16:59:04]save last doc name /storage/0449/doc_00260800 to /storage/kkm_last_doc_name [16:59:04]save OK [16:59:04]Clear old archive folders... [16:59:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:59:04]tlvbuf is 00433380 [16:59:04]SAM_PROTO_ClearQueue [16:59:04]wFMCommunicate request_size=4 [16:59:04]MH_SAM_APDU [16:59:04]CAPDU: 80 09 00 00 [16:59:04]Write to MH i2c: E2 08 00 4B A3 80 09 00 00 00 00 00 00 60 [16:59:04]Write i2c OK [16:59:04]MH_I2C_Read... [16:59:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:59:04]Read from MH i2c: E2 [16:59:04]MH_I2C_Read... [16:59:04]Read from MH i2c: E2 03 00 [16:59:04]MH_I2C_Read... [16:59:04]Read from MH i2c: E2 03 00 4B A3 00 90 00 62 [16:59:04]RAPDU: 90 00 [16:59:04]wFMCommunicate OK [16:59:04]SAM_PROTO_ClearQueue done [16:59:04]KKMCreateOFDPacket [16:59:04]OFDProtocolAddRootSTLVToBuf [16:59:04]FM_MakeSignedData [16:59:04]FM_MakeSignedData [16:59:04]SAM_PROTO_SignData [16:59:04]wFMCommunicate request_size=4 [16:59:04]MH_SAM_APDU [16:59:04]CAPDU: 80 0D 01 02 [16:59:04]Write to MH i2c: E2 08 00 4C A3 80 0D 01 02 00 00 00 00 68 [16:59:04]Write i2c OK [16:59:04]MH_I2C_Read... [16:59:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:59:04]Read from MH i2c: E2 [16:59:04]MH_I2C_Read... [16:59:04]Read from MH i2c: E2 03 00 [16:59:04]MH_I2C_Read... [16:59:04]Read from MH i2c: E2 03 00 4C A3 00 90 00 63 [16:59:04]RAPDU: 90 00 [16:59:04]wFMCommunicate OK [16:59:04]wFMCommunicate request_size=255 [16:59:04]MH_SAM_APDU [16:59:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 5D 28 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C0 FA 03 00 35 04 06 00 E5 [16:59:04]Write to MH i2c: E2 02 01 4D A3 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 5D 28 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C0 FA 03 00 35 04 06 00 E5 00 00 8A [16:59:04]Write i2c OK [16:59:04]MH_I2C_Read... [16:59:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:05]Read from MH i2c: E2 [16:59:05]MH_I2C_Read... [16:59:05]Read from MH i2c: E2 03 00 [16:59:05]MH_I2C_Read... [16:59:05]Read from MH i2c: E2 03 00 4D A3 00 90 00 64 [16:59:05]RAPDU: 90 00 [16:59:05]wFMCommunicate OK [16:59:05]wFMCommunicate request_size=10 [16:59:05]MH_SAM_APDU [16:59:05]CAPDU: 80 0D 02 02 05 C6 E5 8A 71 62 [16:59:05]Write to MH i2c: E2 0D 00 4E A3 80 0D 02 02 05 00 C6 E5 8A 71 62 00 00 7D [16:59:05]Write i2c OK [16:59:05]MH_I2C_Read... [16:59:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:05]Read from MH i2c: E2 [16:59:05]MH_I2C_Read... [16:59:05]Read from MH i2c: E2 03 00 [16:59:05]MH_I2C_Read... [16:59:05]Read from MH i2c: E2 03 00 4E A3 00 90 00 65 [16:59:05]RAPDU: 90 00 [16:59:05]wFMCommunicate OK [16:59:05]wFMCommunicate request_size=4 [16:59:05]MH_SAM_APDU [16:59:05]CAPDU: 80 0D 03 02 [16:59:05]Write to MH i2c: E2 08 00 4F A3 80 0D 03 02 00 00 00 00 6D [16:59:05]Write i2c OK [16:59:05]MH_I2C_Read... [16:59:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:59:05]Read from MH i2c: E2 [16:59:05]MH_I2C_Read... [16:59:05]Read from MH i2c: E2 0B 00 [16:59:05]MH_I2C_Read... [16:59:05]Read from MH i2c: E2 0B 00 4F A3 00 A3 33 F8 02 10 CB 37 C4 90 00 14 [16:59:05]RAPDU: A3 33 F8 02 10 CB 37 C4 90 00 [16:59:05]wFMCommunicate OK [16:59:05]SAM_PROTO_SignData done [16:59:05]FM_MakeSignedData done [16:59:05]CreateOFDProtocolMessage [16:59:05]wFMCommunicate request_size=4 [16:59:05]MH_SAM_APDU [16:59:05]CAPDU: 80 11 00 00 [16:59:05]Write to MH i2c: E2 08 00 50 A3 80 11 00 00 00 00 00 00 6D [16:59:05]Write i2c OK [16:59:05]MH_I2C_Read... [16:59:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:05]Read from MH i2c: E2 [16:59:05]MH_I2C_Read... [16:59:05]Read from MH i2c: E2 17 00 [16:59:05]MH_I2C_Read... [16:59:05]Read from MH i2c: E2 17 00 50 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 BA [16:59:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:59:05]wFMCommunicate OK [16:59:05]CreateOFDProtocolMessage done [16:59:05]OFDSenderStorePacket 260800 [16:59:05]StoreOFDPacket docnum=260800 [16:59:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 07 B7 07 01 45 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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 5D 28 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C0 FA 03 00 35 04 06 00 E5 C6 E5 8A 71 62 A3 33 F8 02 10 CB 37 C4 [16:59:05]CheckFolder [16:59:05]dirname=/storage/ofd_packets [16:59:05]CheckFolder done [16:59:05]ProducePacketName [16:59:05]name=ofd_packets/00260800 [16:59:05]NVStorageSaveData ofd_packets/00260800 [16:59:05]File name is /storage/ofd_packets/00260800 [16:59:05]Write 301 bytes [16:59:05]NVStorageSaveData done [16:59:05]OFDSenderStorePacket done [16:59:05]KKMCreateOFDPacket done [16:59:05]NVStorageSaveData kkm_last_timestamp [16:59:05]File name is /storage/kkm_last_timestamp [16:59:05]Write 4 bytes [16:59:05]NVStorageSaveData done [16:59:05]ExternCall_PrintAddStr [16:59:05]wPrintStart [16:59:05]Write to MH i2c: 01 00 00 51 A3 F4 [16:59:05]Write i2c OK [16:59:05]MH_I2C_Read... [16:59:05]Read from MH i2c: 01 [16:59:05]MH_I2C_Read... [16:59:05]Read from MH i2c: 01 07 00 [16:59:05]MH_I2C_Read... [16:59:05]Read from MH i2c: 01 07 00 51 A3 00 00 00 00 00 FF 0F 09 [16:59:05]RasterBufferAndPrint [16:59:05]line Счет N : (1)1036352 [16:59:05]line ИНН: 02508201610067 [16:59:05]line Контрольно-Кассовый Чек [16:59:05]line ПРОДАЖА [16:59:05]line ТРК (МРК, ГНК) : 23 [16:59:05]line Товар: 2710124500 [16:59:05]line Аи-95-К-5 [16:59:05]line 13.480 * 74.20 [16:59:05]line = 1000.22 [16:59:05]line НДС 12% НСП 1% [16:59:05]line > о реализуемом товаре [16:59:05]line ОКРУГЛЕНИЕ: -0.22 [16:59:05]line ИТОГО: 1000.00 [16:59:05]line Внесено: 1000.00 [16:59:05]line СДАЧА: 0.00 [16:59:05]line НСП 1% : 8.85 [16:59:05]line НДС 12% : 106.22 [16:59:05]line Наличными: 1000.00 [16:59:05]line Безнал.: 0.00 [16:59:05]line Место: АЗС № 94 "Партнер Нефть" [16:59:05]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [16:59:05]line СНО: Общий режим [16:59:05]line Чек 358 18.08.2024 16:59 [16:59:05]line Смена: 449 ФФД: 1.0 [16:59:05]line ЗНМ: 0300000099 [16:59:05]line РНМ: 0000000000091865 [16:59:05]line Версия ККМ: 001 [16:59:05]line ФМ: 0000000000871820 [16:59:05]line ФД: 260800 [16:59:05]line ФПД: 252642417340770 [16:59:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T165909&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260800&fm=252642417340770&tin=02508201610067®Number=0000000000091865&sum=100000 [16:59:05]written 0, free lines is 4095 [16:59:05]OFD Sender: Processing packet 260800 [packets to send 192, broken 191] [16:59:05]ProducePacketName [16:59:05]name=ofd_packets/00260800 [16:59:05]OFD Sender: To server: pG, [16:59:05]CommunicateWithHost lk.salyk.kg:30040 [16:59:05]ConnectInit lk.salyk.kg [16:59:05]Connected sock=10 [16:59: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 30 0F 01 00 00 07 B7 07 01 45 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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 5D 28 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C0 FA 03 00 35 04 06 00 E5 C6 E5 8A 71 62 A3 33 F8 02 10 CB 37 C4 [16:59: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 30 4F 00 00 00 96 DC 47 00 BA 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C0 FA 03 00 F4 03 04 00 B1 D1 C1 66 B6 04 01 00 00 0E 89 1A FA C8 D1 D0 60 [16:59:05]CommunicateWithHost err = 0 [16:59:05]CheckOFDResponse [16:59:05]1017 (14) - 77093643461234 [16:59:05]1041 (16) - 0000000000871820 [16:59:05]1040 (4) - 260800 [16:59:05]1012 (4) - 18.08.2024 10:49 [16:59:05]1206 (1) - 0 [16:59:05]OFD Sender: Remove packet 260800 [16:59:05]ProducePacketName [16:59:05]name=ofd_packets/00260800 [16:59:05]NVStorageDeleteData [16:59:05]Write to MH i2c: 01 00 00 7C A3 1F [16:59:05]Write i2c OK [16:59:05]MH_I2C_Read... [16:59:05]Read from MH i2c: 01 [16:59:05]MH_I2C_Read... [16:59:05]Read from MH i2c: 01 07 00 [16:59:05]MH_I2C_Read... [16:59:05]Read from MH i2c: 01 07 00 7C A3 00 00 00 00 00 6F 0C A1 [16:59:05]RasterBufferAndPrint [16:59:05]line [16:59:05]line [16:59:05]line [16:59:05]line [16:59:05]line [16:59:05]written 0, free lines is 3186 [16:59:05]MH_Cut [16:59:05]Write to MH i2c: D1 01 00 83 A3 01 F8 [16:59:05]Write i2c OK [16:59:05]MH_I2C_Read... [16:59:05]Read from MH i2c: D1 [16:59:05]MH_I2C_Read... [16:59:05]Read from MH i2c: D1 01 00 [16:59:05]MH_I2C_Read... [16:59:05]Read from MH i2c: D1 01 00 83 A3 00 F7 [16:59:05]Write to MH i2c: 01 00 00 84 A3 27 [16:59:05]Write i2c OK [16:59:05]MH_I2C_Read... [16:59:06]OFD Sender: No OFD packet to send [16:59:06]*** Cut start [16:59:06]*** Purtial cut [16:59:06]*** Stage 1: CUTSNS_PIN = 1 [16:59:08]Read from MH i2c: 01 [16:59:08]MH_I2C_Read... [16:59:08]*** Stop cut motor [16:59:08]*** Cut end [16:59:08]Read from MH i2c: 01 07 00 [16:59:08]MH_I2C_Read... [16:59:08]Read from MH i2c: 01 07 00 84 A3 00 00 00 00 00 FF 0F 3C [16:59:08]process_action close_receipt done [16:59:08]requested_data is exist [16:59:08]produce_requested_data [16:59:08]requested_item fm.sn is exist - process it [16:59:08]wFMCommunicate request_size=4 [16:59:08]MH_SAM_APDU [16:59:08]CAPDU: 80 11 00 00 [16:59:08]Write to MH i2c: E2 08 00 85 A3 80 11 00 00 00 00 00 00 A2 [16:59:08]Write i2c OK [16:59:08]MH_I2C_Read... [16:59:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:08]Read from MH i2c: E2 [16:59:08]MH_I2C_Read... [16:59:08]Read from MH i2c: E2 17 00 [16:59:08]MH_I2C_Read... [16:59:08]Read from MH i2c: E2 17 00 85 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 EF [16:59:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:59:08]wFMCommunicate OK [16:59:08]requested_item fd.num is exist - process it [16:59:08]SAM_PROTO_GetFieldsCounters [16:59:08]wFMCommunicate request_size=4 [16:59:08]MH_SAM_APDU [16:59:08]CAPDU: 80 13 00 00 [16:59:08]Write to MH i2c: E2 08 00 86 A3 80 13 00 00 00 00 00 00 A5 [16:59:08]Write i2c OK [16:59:08]MH_I2C_Read... [16:59:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:59:09]Read from MH i2c: E2 [16:59:09]MH_I2C_Read... [16:59:09]Read from MH i2c: E2 62 00 [16:59:09]MH_I2C_Read... [16:59:09]Read from MH i2c: E2 62 00 86 A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C0 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 66 01 00 00 5E 04 04 00 66 01 00 00 57 04 04 00 67 01 00 00 19 04 04 00 00 00 00 00 90 00 78 [16:59: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C0 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 66 01 00 00 5E 04 04 00 66 01 00 00 57 04 04 00 67 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:59:09]wFMCommunicate OK [16:59:09]SAM_PROTO_GetFieldsCounters done [16:59:09]requested_item shift.num is exist - process it [16:59:09]requested_item shift.opened is exist - process it [16:59:09]req_shift_opened [16:59:09]FM_GetShiftState [16:59:09]SAM_PROTO_GetShiftState [16:59:09]wFMCommunicate request_size=4 [16:59:09]MH_SAM_APDU [16:59:09]CAPDU: 80 13 01 00 [16:59:09]Write to MH i2c: E2 08 00 87 A3 80 13 01 00 00 00 00 00 A7 [16:59:09]Write i2c OK [16:59:09]MH_I2C_Read... [16:59:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:09]Read from MH i2c: E2 [16:59:09]MH_I2C_Read... [16:59:09]Read from MH i2c: E2 0E 00 [16:59:09]MH_I2C_Read... [16:59:09]Read from MH i2c: E2 0E 00 87 A3 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E4 [16:59:09]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:59:09]wFMCommunicate OK [16:59:09]SAM_PROTO_GetShiftState done [16:59:09]FM_GetShiftState done [16:59:09]req_shift_opened done [16:59:09]requested_item shift.open_date is exist - process it [16:59:09]req_shift_open_date [16:59:09]req_shift_open_date done [16:59:09]produce_requested_data done [16:59:09]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260800,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [16:59:09]process_action_free close_receipt [16:59:09]json_value_free [16:59:09]json_value_free done [16:59:09]process_json_proto returns [16:59:09]Send response to host [16:59:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260800,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [16:59:09]free response buf [16:59:09]execute_script done [16:59:09]execute_script returns [16:59:09]free content buf [16:59:09]Sock 9.Close socket [16:59:09]Sock 9.Thread stoped [16:59:11]OFD Sender: No OFD packet to send [16:59:16]OFD Sender: No OFD packet to send [16:59:21]OFD Sender: No OFD packet to send [16:59:26]OFD Sender: No OFD packet to send [16:59:31]OFD Sender: No OFD packet to send [16:59:36]OFD Sender: No OFD packet to send [16:59:41]OFD Sender: No OFD packet to send [16:59:46]OFD Sender: No OFD packet to send [16:59:51]OFD Sender: No OFD packet to send [16:59:53]accept exits with 7 [16:59:53]New connection [16:59:53]New thread 3066617188 created [16:59:53]Thread 3066473828 joined [16:59:53]Waiting for new connection... [16:59:53] Sock 7.Parse request [16:59:53]Sock 7.Check first char [16:59:53]Sock 7.First char is OK [16:59:53]request: POST /json_proto HTTP/1.0 [16:59:53]Method: POST [16:59:53]URL: /json_proto [16:59:53]Method is POST - this is cgi request [16:59:53]url: /json_proto [16:59:53]query_string will be loaded in cgi processing [16:59:53]execute_cgi json_proto POST (null) [16:59:53]execute_cgi path=json_proto method=POST [16:59:53]POST find Content-Length [16:59:53]Host: 172.17.55.133:8080 [16:59:53]Content-Length: 809 [16:59:53]Content-Type: application/json [16:59:53] [16:59:53]POST finish read [16:59:53]Found Content-Length = 809 [16:59:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:53]execute_script... [16:59: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)1036353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:53]POST & json_proto [16:59:53]process_json_proto [16:59:53]json parsed OK: [16:59:53]protocol is kg_v1.0 [16:59:53]action value=close_receipt [16:59:53]process_action close_receipt [16:59:53]cmd_close_receipt [16:59:53]MH_GetDate [16:59:53]Write to MH i2c: F0 00 00 88 A3 1A [16:59:53]Write i2c OK [16:59:53]MH_I2C_Read... [16:59:53]Read from MH i2c: F0 [16:59:53]MH_I2C_Read... [16:59:53]Read from MH i2c: F0 09 00 [16:59:53]MH_I2C_Read... [16:59:53]Read from MH i2c: F0 09 00 88 A3 00 8F 28 C2 66 34 48 D8 65 BB [16:59:53]GetLastDocTimeStamp 1724000349 [16:59:53]current date 1724000399 [16:59:53]FM_GetShiftState [16:59:53]SAM_PROTO_GetShiftState [16:59:53]wFMCommunicate request_size=4 [16:59:53]MH_SAM_APDU [16:59:53]CAPDU: 80 13 01 00 [16:59:53]Write to MH i2c: E2 08 00 89 A3 80 13 01 00 00 00 00 00 A9 [16:59:53]Write i2c OK [16:59:53]MH_I2C_Read... [16:59:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:53]Read from MH i2c: E2 [16:59:53]MH_I2C_Read... [16:59:53]Read from MH i2c: E2 0E 00 [16:59:53]MH_I2C_Read... [16:59:53]Read from MH i2c: E2 0E 00 89 A3 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E6 [16:59:53]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:59:53]wFMCommunicate OK [16:59:53]SAM_PROTO_GetShiftState done [16:59:53]FM_GetShiftState done [16:59:53]opened in 1723940556 [16:59:53]opened+sec_in_day 1724026956 [16:59:53]quantity*price = 100050 [16:59:53]sum+1 = 100052 [16:59:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 359 18.08.2024 16:59 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260801 ФПД: 53605571628185 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T165959&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260801&fm=53605571628185&tin=02508201610067®Number=0000000000091865&sum=100051 [16:59:54]StoreToDocumentArchive [16:59:54]shift 449 fd 260801 [16:59:54]save to /storage/0449/doc_00260801 [16:59:54]save last doc name /storage/0449/doc_00260801 to /storage/kkm_last_doc_name [16:59:54]save OK [16:59:54]Clear old archive folders... [16:59:54]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:59:54]tlvbuf is 004537A0 [16:59:54]SAM_PROTO_ClearQueue [16:59:54]wFMCommunicate request_size=4 [16:59:54]MH_SAM_APDU [16:59:54]CAPDU: 80 09 00 00 [16:59:54]Write to MH i2c: E2 08 00 96 A3 80 09 00 00 00 00 00 00 AB [16:59:54]Write i2c OK [16:59:54]MH_I2C_Read... [16:59:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:59:54]Read from MH i2c: E2 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: E2 03 00 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: E2 03 00 96 A3 00 90 00 AD [16:59:54]RAPDU: 90 00 [16:59:54]wFMCommunicate OK [16:59:54]SAM_PROTO_ClearQueue done [16:59:54]KKMCreateOFDPacket [16:59:54]OFDProtocolAddRootSTLVToBuf [16:59:54]FM_MakeSignedData [16:59:54]FM_MakeSignedData [16:59:54]SAM_PROTO_SignData [16:59:54]wFMCommunicate request_size=4 [16:59:54]MH_SAM_APDU [16:59:54]CAPDU: 80 0D 01 02 [16:59:54]Write to MH i2c: E2 08 00 97 A3 80 0D 01 02 00 00 00 00 B3 [16:59:54]Write i2c OK [16:59:54]MH_I2C_Read... [16:59:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:59:54]Read from MH i2c: E2 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: E2 03 00 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: E2 03 00 97 A3 00 90 00 AE [16:59:54]RAPDU: 90 00 [16:59:54]wFMCommunicate OK [16:59:54]wFMCommunicate request_size=255 [16:59:54]MH_SAM_APDU [16:59:54]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 8F 28 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C1 FA 03 00 35 04 06 00 [16:59:54]Write to MH i2c: E2 02 01 98 A3 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 8F 28 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C1 FA 03 00 35 04 06 00 00 00 4A [16:59:54]Write i2c OK [16:59:54]MH_I2C_Read... [16:59:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:54]Read from MH i2c: E2 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: E2 03 00 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: E2 03 00 98 A3 00 90 00 AF [16:59:54]RAPDU: 90 00 [16:59:54]wFMCommunicate OK [16:59:54]wFMCommunicate request_size=11 [16:59:54]MH_SAM_APDU [16:59:54]CAPDU: 80 0D 02 02 06 30 C1 05 0E 0C 99 [16:59:54]Write to MH i2c: E2 0E 00 99 A3 80 0D 02 02 06 00 30 C1 05 0E 0C 99 00 00 6B [16:59:54]Write i2c OK [16:59:54]MH_I2C_Read... [16:59:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:54]Read from MH i2c: E2 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: E2 03 00 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: E2 03 00 99 A3 00 90 00 B0 [16:59:54]RAPDU: 90 00 [16:59:54]wFMCommunicate OK [16:59:54]wFMCommunicate request_size=4 [16:59:54]MH_SAM_APDU [16:59:54]CAPDU: 80 0D 03 02 [16:59:54]Write to MH i2c: E2 08 00 9A A3 80 0D 03 02 00 00 00 00 B8 [16:59:54]Write i2c OK [16:59:54]MH_I2C_Read... [16:59:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:59:54]Read from MH i2c: E2 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: E2 0B 00 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: E2 0B 00 9A A3 00 4B 4A F4 2E 57 D5 58 18 90 00 0C [16:59:54]RAPDU: 4B 4A F4 2E 57 D5 58 18 90 00 [16:59:54]wFMCommunicate OK [16:59:54]SAM_PROTO_SignData done [16:59:54]FM_MakeSignedData done [16:59:54]CreateOFDProtocolMessage [16:59:54]wFMCommunicate request_size=4 [16:59:54]MH_SAM_APDU [16:59:54]CAPDU: 80 11 00 00 [16:59:54]Write to MH i2c: E2 08 00 9B A3 80 11 00 00 00 00 00 00 B8 [16:59:54]Write i2c OK [16:59:54]MH_I2C_Read... [16:59:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:55]Read from MH i2c: E2 [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: E2 17 00 [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: E2 17 00 9B A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 05 [16:59:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:59:55]wFMCommunicate OK [16:59:55]CreateOFDProtocolMessage done [16:59:55]OFDSenderStorePacket 260801 [16:59:55]StoreOFDPacket docnum=260801 [16:59:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 26 C8 08 01 3D E6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 8F 28 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C1 FA 03 00 35 04 06 00 30 C1 05 0E 0C 99 4B 4A F4 2E 57 D5 58 18 [16:59:55]CheckFolder [16:59:55]dirname=/storage/ofd_packets [16:59:55]CheckFolder done [16:59:55]ProducePacketName [16:59:55]name=ofd_packets/00260801 [16:59:55]NVStorageSaveData ofd_packets/00260801 [16:59:55]File name is /storage/ofd_packets/00260801 [16:59:55]Write 302 bytes [16:59:55]NVStorageSaveData done [16:59:55]OFDSenderStorePacket done [16:59:55]KKMCreateOFDPacket done [16:59:55]NVStorageSaveData kkm_last_timestamp [16:59:55]File name is /storage/kkm_last_timestamp [16:59:55]Write 4 bytes [16:59:55]NVStorageSaveData done [16:59:55]ExternCall_PrintAddStr [16:59:55]wPrintStart [16:59:55]Write to MH i2c: 01 00 00 9C A3 3F [16:59:55]Write i2c OK [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: 01 [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: 01 07 00 [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: 01 07 00 9C A3 00 00 00 00 00 FF 0F 54 [16:59:55]RasterBufferAndPrint [16:59:55]line Счет N : (1)1036353 [16:59:55]line ИНН: 02508201610067 [16:59:55]line Контрольно-Кассовый Чек [16:59:55]line ПРОДАЖА [16:59:55]line ТРК (МРК, ГНК) : 33 [16:59:55]line Товар: 2710194210 [16:59:55]line ДТ(л)-К-4 [16:59:55]line 13.130 * 76.20 [16:59:55]line = 1000.51 [16:59:55]line НДС 12% НСП 1% [16:59:55]line > о реализуемом товаре [16:59:55]line ИТОГО: 1000.51 [16:59:55]line НСП 1% : 8.85 [16:59:55]line НДС 12% : 106.25 [16:59:55]line Наличными: 0.00 [16:59:55]line Безнал.: 1000.51 [16:59:55]line Место: АЗС № 94 "Партнер Нефть" [16:59:55]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [16:59:55]line СНО: Общий режим [16:59:55]line Чек 359 18.08.2024 16:59 [16:59:55]line Смена: 449 ФФД: 1.0 [16:59:55]line ЗНМ: 0300000099 [16:59:55]line РНМ: 0000000000091865 [16:59:55]line Версия ККМ: 001 [16:59:55]line Платежная система: O! деньги [16:59:55]line ФМ: 0000000000871820 [16:59:55]line ФД: 260801 [16:59:55]line ФПД: 53605571628185 [16:59:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T165959&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260801&fm=53605571628185&tin=02508201610067®Number=0000000000091865&sum=100051 [16:59:55]written 0, free lines is 4095 [16:59:55]OFD Sender: Processing packet 260801 [packets to send 192, broken 191] [16:59:55]ProducePacketName [16:59:55]name=ofd_packets/00260801 [16:59:55]OFD Sender: To server: pG, [16:59:55]CommunicateWithHost lk.salyk.kg:30040 [16:59:55]ConnectInit lk.salyk.kg [16:59:55]Connected sock=10 [16:59: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 30 10 01 00 00 26 C8 08 01 3D E6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 8F 28 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C1 FA 03 00 35 04 06 00 30 C1 05 0E 0C 99 4B 4A F4 2E 57 D5 58 18 [16:59:55]Write to MH i2c: 01 00 00 C6 A3 69 [16:59:55]Write i2c OK [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: 01 [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: 01 07 00 [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: 01 07 00 C6 A3 00 00 00 00 00 7E 0C FA [16:59:55]RasterBufferAndPrint [16:59:55]line [16:59:55]line [16:59:55]line [16:59:55]line [16:59:55]line [16:59:55]written 0, free lines is 3202 [16:59:55]MH_Cut [16:59:55]Write to MH i2c: D1 01 00 CD A3 01 42 [16:59:55]Write i2c OK [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: D1 [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: D1 01 00 [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: D1 01 00 CD A3 00 41 [16:59:55]Write to MH i2c: 01 00 00 CE A3 71 [16:59:55]Write i2c OK [16:59:55]MH_I2C_Read... [16:59: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 30 4F 00 00 00 E8 0D 47 00 27 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 30 10 04 04 00 C1 FA 03 00 F4 03 04 00 E3 D1 C1 66 B6 04 01 00 00 C2 7B 63 4B 80 78 45 4A [16:59:55]CommunicateWithHost err = 0 [16:59:55]CheckOFDResponse [16:59:55]1017 (14) - 77093643461234 [16:59:55]1041 (16) - 0000000000871820 [16:59:55]1040 (4) - 260801 [16:59:55]1012 (4) - 18.08.2024 10:50 [16:59:55]1206 (1) - 0 [16:59:55]OFD Sender: Remove packet 260801 [16:59:55]ProducePacketName [16:59:55]name=ofd_packets/00260801 [16:59:55]NVStorageDeleteData [16:59:56]OFD Sender: No OFD packet to send [16:59:56]*** Cut start [16:59:56]*** Purtial cut [16:59:56]*** Stage 1: CUTSNS_PIN = 1 [16:59:58]Read from MH i2c: 01 [16:59:58]MH_I2C_Read... [16:59:58]*** Stop cut motor [16:59:58]*** Cut end [16:59:58]Read from MH i2c: 01 07 00 [16:59:58]MH_I2C_Read... [16:59:58]Read from MH i2c: 01 07 00 CE A3 00 00 00 00 00 FF 0F 86 [16:59:58]process_action close_receipt done [16:59:58]requested_data is exist [16:59:58]produce_requested_data [16:59:58]requested_item fm.sn is exist - process it [16:59:58]wFMCommunicate request_size=4 [16:59:58]MH_SAM_APDU [16:59:58]CAPDU: 80 11 00 00 [16:59:58]Write to MH i2c: E2 08 00 CF A3 80 11 00 00 00 00 00 00 EC [16:59:58]Write i2c OK [16:59:58]MH_I2C_Read... [16:59:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:58]Read from MH i2c: E2 [16:59:58]MH_I2C_Read... [16:59:58]Read from MH i2c: E2 17 00 [16:59:58]MH_I2C_Read... [16:59:58]Read from MH i2c: E2 17 00 CF A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 39 [16:59:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [16:59:58]wFMCommunicate OK [16:59:58]requested_item fd.num is exist - process it [16:59:58]SAM_PROTO_GetFieldsCounters [16:59:58]wFMCommunicate request_size=4 [16:59:58]MH_SAM_APDU [16:59:58]CAPDU: 80 13 00 00 [16:59:58]Write to MH i2c: E2 08 00 D0 A3 80 13 00 00 00 00 00 00 EF [16:59:58]Write i2c OK [16:59:58]MH_I2C_Read... [16:59:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:59:58]Read from MH i2c: E2 [16:59:58]MH_I2C_Read... [16:59:58]Read from MH i2c: E2 62 00 [16:59:58]MH_I2C_Read... [16:59:58]Read from MH i2c: E2 62 00 D0 A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C1 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 C6 [16: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C1 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:59:58]wFMCommunicate OK [16:59:58]SAM_PROTO_GetFieldsCounters done [16:59:58]requested_item shift.num is exist - process it [16:59:58]requested_item shift.opened is exist - process it [16:59:58]req_shift_opened [16:59:58]FM_GetShiftState [16:59:58]SAM_PROTO_GetShiftState [16:59:58]wFMCommunicate request_size=4 [16:59:58]MH_SAM_APDU [16:59:58]CAPDU: 80 13 01 00 [16:59:58]Write to MH i2c: E2 08 00 D1 A3 80 13 01 00 00 00 00 00 F1 [16:59:58]Write i2c OK [16:59:58]MH_I2C_Read... [16:59:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:58]Read from MH i2c: E2 [16:59:58]MH_I2C_Read... [16:59:58]Read from MH i2c: E2 0E 00 [16:59:58]MH_I2C_Read... [16:59:58]Read from MH i2c: E2 0E 00 D1 A3 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 2E [16:59:58]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [16:59:58]wFMCommunicate OK [16:59:58]SAM_PROTO_GetShiftState done [16:59:58]FM_GetShiftState done [16:59:58]req_shift_opened done [16:59:58]requested_item shift.open_date is exist - process it [16:59:58]req_shift_open_date [16:59:58]req_shift_open_date done [16:59:58]produce_requested_data done [16:59:58]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260801,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [16:59:58]process_action_free close_receipt [16:59:58]json_value_free [16:59:58]json_value_free done [16:59:58]process_json_proto returns [16:59:58]Send response to host [16:59:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260801,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [16:59:58]free response buf [16:59:58]execute_script done [16:59:58]execute_script returns [16:59:58]free content buf [16:59:58]Sock 7.Close socket [16:59:58]Sock 7.Thread stoped [17:00:01]OFD Sender: No OFD packet to send [17:00:06]OFD Sender: No OFD packet to send [17:00:11]OFD Sender: No OFD packet to send [17:00:16]OFD Sender: No OFD packet to send [17:00:21]OFD Sender: No OFD packet to send [17:00:26]OFD Sender: No OFD packet to send [17:00:31]OFD Sender: No OFD packet to send [17:00:36]OFD Sender: No OFD packet to send [17:00:41]OFD Sender: No OFD packet to send [17:00:46]OFD Sender: No OFD packet to send [17:00:51]OFD Sender: No OFD packet to send [17:00:56]OFD Sender: No OFD packet to send [17:01:01]OFD Sender: No OFD packet to send [17:01:06]OFD Sender: No OFD packet to send [17:01:11]OFD Sender: No OFD packet to send [17:01:16]OFD Sender: No OFD packet to send [17:01:18]accept exits with 9 [17:01:18]New connection [17:01:18]New thread 3066473828 created [17:01:18]Thread 3066617188 joined [17:01:18]Waiting for new connection... [17:01:18] Sock 9.Parse request [17:01:18]Sock 9.Check first char [17:01:18]Sock 9.First char is OK [17:01:18]request: POST /json_proto HTTP/1.0 [17:01:18]Method: POST [17:01:18]URL: /json_proto [17:01:18]Method is POST - this is cgi request [17:01:18]url: /json_proto [17:01:18]query_string will be loaded in cgi processing [17:01:18]execute_cgi json_proto POST (null) [17:01:18]execute_cgi path=json_proto method=POST [17:01:18]POST find Content-Length [17:01:18]Host: 172.17.55.133:8080 [17:01:18]Content-Length: 688 [17:01:18]Content-Type: application/json [17:01:18] [17:01:18]POST finish read [17:01:18]Found Content-Length = 688 [17:01:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:18]execute_script... [17:01: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)1036354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:18]POST & json_proto [17:01:18]process_json_proto [17:01:18]json parsed OK: [17:01:18]protocol is kg_v1.0 [17:01:18]action value=close_receipt [17:01:18]process_action close_receipt [17:01:18]cmd_close_receipt [17:01:18]MH_GetDate [17:01:18]Write to MH i2c: F0 00 00 D2 A3 64 [17:01:18]Write i2c OK [17:01:18]MH_I2C_Read... [17:01:18]Read from MH i2c: F0 [17:01:18]MH_I2C_Read... [17:01:18]Read from MH i2c: F0 09 00 [17:01:18]MH_I2C_Read... [17:01:18]Read from MH i2c: F0 09 00 D2 A3 00 E4 28 C2 66 34 48 D8 65 5A [17:01:18]GetLastDocTimeStamp 1724000399 [17:01:18]current date 1724000484 [17:01:18]FM_GetShiftState [17:01:18]SAM_PROTO_GetShiftState [17:01:18]wFMCommunicate request_size=4 [17:01:18]MH_SAM_APDU [17:01:18]CAPDU: 80 13 01 00 [17:01:18]Write to MH i2c: E2 08 00 D3 A3 80 13 01 00 00 00 00 00 F3 [17:01:18]Write i2c OK [17:01:18]MH_I2C_Read... [17:01:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:18]Read from MH i2c: E2 [17:01:18]MH_I2C_Read... [17:01:18]Read from MH i2c: E2 0E 00 [17:01:18]MH_I2C_Read... [17:01:18]Read from MH i2c: E2 0E 00 D3 A3 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 30 [17:01:18]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:01:18]wFMCommunicate OK [17:01:18]SAM_PROTO_GetShiftState done [17:01:18]FM_GetShiftState done [17:01:18]opened in 1723940556 [17:01:18]opened+sec_in_day 1724026956 [17:01:18]quantity*price = 100050 [17:01:18]sum+1 = 100052 [17:01:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 360 18.08.2024 17:01 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260802 ФПД: 175475643589423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T170124&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260802&fm=175475643589423&tin=02508201610067®Number=0000000000091865&sum=100000 [17:01:19]StoreToDocumentArchive [17:01:19]shift 449 fd 260802 [17:01:19]save to /storage/0449/doc_00260802 [17:01:19]save last doc name /storage/0449/doc_00260802 to /storage/kkm_last_doc_name [17:01:19]save OK [17:01:19]Clear old archive folders... [17:01:19]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:01:19]tlvbuf is 006B9600 [17:01:19]SAM_PROTO_ClearQueue [17:01:19]wFMCommunicate request_size=4 [17:01:19]MH_SAM_APDU [17:01:19]CAPDU: 80 09 00 00 [17:01:19]Write to MH i2c: E2 08 00 E0 A3 80 09 00 00 00 00 00 00 F5 [17:01:19]Write i2c OK [17:01:19]MH_I2C_Read... [17:01:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:01:19]Read from MH i2c: E2 [17:01:19]MH_I2C_Read... [17:01:19]Read from MH i2c: E2 03 00 [17:01:19]MH_I2C_Read... [17:01:19]Read from MH i2c: E2 03 00 E0 A3 00 90 00 F7 [17:01:19]RAPDU: 90 00 [17:01:19]wFMCommunicate OK [17:01:19]SAM_PROTO_ClearQueue done [17:01:19]KKMCreateOFDPacket [17:01:19]OFDProtocolAddRootSTLVToBuf [17:01:19]FM_MakeSignedData [17:01:19]FM_MakeSignedData [17:01:19]SAM_PROTO_SignData [17:01:19]wFMCommunicate request_size=4 [17:01:19]MH_SAM_APDU [17:01:19]CAPDU: 80 0D 01 02 [17:01:19]Write to MH i2c: E2 08 00 E1 A3 80 0D 01 02 00 00 00 00 FD [17:01:19]Write i2c OK [17:01:19]MH_I2C_Read... [17:01:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:01:19]Read from MH i2c: E2 [17:01:19]MH_I2C_Read... [17:01:19]Read from MH i2c: E2 03 00 [17:01:19]MH_I2C_Read... [17:01:19]Read from MH i2c: E2 03 00 E1 A3 00 90 00 F8 [17:01:19]RAPDU: 90 00 [17:01:19]wFMCommunicate OK [17:01:19]wFMCommunicate request_size=255 [17:01:19]MH_SAM_APDU [17:01:19]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 E4 28 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C2 FA 03 00 35 04 06 00 [17:01:19]Write to MH i2c: E2 02 01 E2 A3 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 E4 28 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C2 FA 03 00 35 04 06 00 00 00 85 [17:01:19]Write i2c OK [17:01:19]MH_I2C_Read... [17:01:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:19]Read from MH i2c: E2 [17:01:19]MH_I2C_Read... [17:01:19]Read from MH i2c: E2 03 00 [17:01:19]MH_I2C_Read... [17:01:19]Read from MH i2c: E2 03 00 E2 A3 00 90 00 F9 [17:01:19]RAPDU: 90 00 [17:01:19]wFMCommunicate OK [17:01:19]wFMCommunicate request_size=11 [17:01:19]MH_SAM_APDU [17:01:19]CAPDU: 80 0D 02 02 06 9F 98 1B 67 23 2F [17:01:19]Write to MH i2c: E2 0E 00 E3 A3 80 0D 02 02 06 00 9F 98 1B 67 23 2F 00 00 17 [17:01:19]Write i2c OK [17:01:19]MH_I2C_Read... [17:01:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:19]Read from MH i2c: E2 [17:01:19]MH_I2C_Read... [17:01:19]Read from MH i2c: E2 03 00 [17:01:19]MH_I2C_Read... [17:01:19]Read from MH i2c: E2 03 00 E3 A3 00 90 00 FA [17:01:19]RAPDU: 90 00 [17:01:19]wFMCommunicate OK [17:01:19]wFMCommunicate request_size=4 [17:01:19]MH_SAM_APDU [17:01:19]CAPDU: 80 0D 03 02 [17:01:19]Write to MH i2c: E2 08 00 E4 A3 80 0D 03 02 00 00 00 00 02 [17:01:19]Write i2c OK [17:01:19]MH_I2C_Read... [17:01:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:01:19]Read from MH i2c: E2 [17:01:19]MH_I2C_Read... [17:01:19]Read from MH i2c: E2 0B 00 [17:01:19]MH_I2C_Read... [17:01:19]Read from MH i2c: E2 0B 00 E4 A3 00 7C 3B 9C 23 34 E7 E1 71 90 00 E6 [17:01:19]RAPDU: 7C 3B 9C 23 34 E7 E1 71 90 00 [17:01:19]wFMCommunicate OK [17:01:19]SAM_PROTO_SignData done [17:01:19]FM_MakeSignedData done [17:01:19]CreateOFDProtocolMessage [17:01:19]wFMCommunicate request_size=4 [17:01:19]MH_SAM_APDU [17:01:19]CAPDU: 80 11 00 00 [17:01:19]Write to MH i2c: E2 08 00 E5 A3 80 11 00 00 00 00 00 00 02 [17:01:19]Write i2c OK [17:01:19]MH_I2C_Read... [17:01:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:19]Read from MH i2c: E2 [17:01:19]MH_I2C_Read... [17:01:19]Read from MH i2c: E2 17 00 [17:01:19]MH_I2C_Read... [17:01:19]Read from MH i2c: E2 17 00 E5 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 4F [17:01:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:01:19]wFMCommunicate OK [17:01:19]CreateOFDProtocolMessage done [17:01:19]OFDSenderStorePacket 260802 [17:01:19]StoreOFDPacket docnum=260802 [17:01:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 59 4D 08 01 0D E6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 E4 28 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C2 FA 03 00 35 04 06 00 9F 98 1B 67 23 2F 7C 3B 9C 23 34 E7 E1 71 [17:01:19]CheckFolder [17:01:19]dirname=/storage/ofd_packets [17:01:19]CheckFolder done [17:01:19]ProducePacketName [17:01:19]name=ofd_packets/00260802 [17:01:19]NVStorageSaveData ofd_packets/00260802 [17:01:19]File name is /storage/ofd_packets/00260802 [17:01:19]Write 302 bytes [17:01:19]NVStorageSaveData done [17:01:19]OFDSenderStorePacket done [17:01:19]KKMCreateOFDPacket done [17:01:19]NVStorageSaveData kkm_last_timestamp [17:01:19]File name is /storage/kkm_last_timestamp [17:01:19]Write 4 bytes [17:01:19]NVStorageSaveData done [17:01:19]ExternCall_PrintAddStr [17:01:19]wPrintStart [17:01:19]Write to MH i2c: 01 00 00 E6 A3 89 [17:01:19]Write i2c OK [17:01:19]MH_I2C_Read... [17:01:19]Read from MH i2c: 01 [17:01:19]MH_I2C_Read... [17:01:19]Read from MH i2c: 01 07 00 [17:01:19]MH_I2C_Read... [17:01:19]Read from MH i2c: 01 07 00 E6 A3 00 00 00 00 00 FF 0F 9E [17:01:19]RasterBufferAndPrint [17:01:19]line Счет N : (1)1036354 [17:01:19]line ИНН: 02508201610067 [17:01:19]line Контрольно-Кассовый Чек [17:01:19]line ПРОДАЖА [17:01:19]line ТРК (МРК, ГНК) : 43 [17:01:19]line Товар: 2710194210 [17:01:19]line ДТ(л)-К-4 [17:01:19]line 13.130 * 76.20 [17:01:19]line = 1000.51 [17:01:19]line НДС 12% НСП 1% [17:01:19]line > о реализуемом товаре [17:01:19]line ОКРУГЛЕНИЕ: -0.51 [17:01:19]line ИТОГО: 1000.00 [17:01:19]line Внесено: 1000.00 [17:01:19]line СДАЧА: 0.00 [17:01:19]line НСП 1% : 8.85 [17:01:19]line НДС 12% : 106.25 [17:01:19]line Наличными: 1000.00 [17:01:19]line Безнал.: 0.00 [17:01:19]line Место: АЗС № 94 "Партнер Нефть" [17:01:19]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [17:01:19]line СНО: Общий режим [17:01:19]line Чек 360 18.08.2024 17:01 [17:01:19]line Смена: 449 ФФД: 1.0 [17:01:19]line ЗНМ: 0300000099 [17:01:19]line РНМ: 0000000000091865 [17:01:19]line Версия ККМ: 001 [17:01:19]line ФМ: 0000000000871820 [17:01:19]line ФД: 260802 [17:01:19]line ФПД: 175475643589423 [17:01:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T170124&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260802&fm=175475643589423&tin=02508201610067®Number=0000000000091865&sum=100000 [17:01:20]OFD Sender: Processing packet 260802 [packets to send 192, broken 191] [17:01:20]ProducePacketName [17:01:20]name=ofd_packets/00260802 [17:01:20]OFD Sender: To server: pG, [17:01:20]CommunicateWithHost lk.salyk.kg:30040 [17:01:20]ConnectInit lk.salyk.kg [17:01:20]written 0, free lines is 4095 [17:01:20]Connected sock=10 [17:01: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 30 10 01 00 00 59 4D 08 01 0D E6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 E4 28 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C2 FA 03 00 35 04 06 00 9F 98 1B 67 23 2F 7C 3B 9C 23 34 E7 E1 71 [17:01: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 30 4F 00 00 00 84 A8 47 00 5C 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C2 FA 03 00 F4 03 04 00 38 D2 C1 66 B6 04 01 00 00 FC 62 68 27 39 AB 06 2F [17:01:20]CommunicateWithHost err = 0 [17:01:20]CheckOFDResponse [17:01:20]1017 (14) - 77093643461234 [17:01:20]1041 (16) - 0000000000871820 [17:01:20]1040 (4) - 260802 [17:01:20]1012 (4) - 18.08.2024 10:51 [17:01:20]1206 (1) - 0 [17:01:20]OFD Sender: Remove packet 260802 [17:01:20]ProducePacketName [17:01:20]name=ofd_packets/00260802 [17:01:20]NVStorageDeleteData [17:01:20]Write to MH i2c: 01 00 00 11 A4 B5 [17:01:20]Write i2c OK [17:01:20]MH_I2C_Read... [17:01:20]Read from MH i2c: 01 [17:01:20]MH_I2C_Read... [17:01:20]Read from MH i2c: 01 07 00 [17:01:20]MH_I2C_Read... [17:01:20]Read from MH i2c: 01 07 00 11 A4 00 00 00 00 00 60 0C 28 [17:01:20]RasterBufferAndPrint [17:01:20]line [17:01:20]line [17:01:20]line [17:01:20]line [17:01:20]line [17:01:20]written 0, free lines is 3172 [17:01:20]MH_Cut [17:01:20]Write to MH i2c: D1 01 00 18 A4 01 8E [17:01:20]Write i2c OK [17:01:20]MH_I2C_Read... [17:01:20]Read from MH i2c: D1 [17:01:20]MH_I2C_Read... [17:01:20]Read from MH i2c: D1 01 00 [17:01:20]MH_I2C_Read... [17:01:20]Read from MH i2c: D1 01 00 18 A4 00 8D [17:01:20]Write to MH i2c: 01 00 00 19 A4 BD [17:01:20]Write i2c OK [17:01:20]MH_I2C_Read... [17:01:20]OFD Sender: No OFD packet to send [17:01:21]*** Cut start [17:01:21]*** Purtial cut [17:01:21]*** Stage 1: CUTSNS_PIN = 1 [17:01:23]Read from MH i2c: 01 [17:01:23]MH_I2C_Read... [17:01:23]*** Stop cut motor [17:01:23]*** Cut end [17:01:23]Read from MH i2c: 01 07 00 [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: 01 07 00 19 A4 00 00 00 00 00 FF 0F D2 [17:01:23]process_action close_receipt done [17:01:23]requested_data is exist [17:01:23]produce_requested_data [17:01:23]requested_item fm.sn is exist - process it [17:01:23]wFMCommunicate request_size=4 [17:01:23]MH_SAM_APDU [17:01:23]CAPDU: 80 11 00 00 [17:01:23]Write to MH i2c: E2 08 00 1A A4 80 11 00 00 00 00 00 00 38 [17:01:23]Write i2c OK [17:01:23]MH_I2C_Read... [17:01:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:23]Read from MH i2c: E2 [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: E2 17 00 [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: E2 17 00 1A A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 85 [17:01:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:01:23]wFMCommunicate OK [17:01:23]requested_item fd.num is exist - process it [17:01:23]SAM_PROTO_GetFieldsCounters [17:01:23]wFMCommunicate request_size=4 [17:01:23]MH_SAM_APDU [17:01:23]CAPDU: 80 13 00 00 [17:01:23]Write to MH i2c: E2 08 00 1B A4 80 13 00 00 00 00 00 00 3B [17:01:23]Write i2c OK [17:01:23]MH_I2C_Read... [17:01:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:01:24]Read from MH i2c: E2 [17:01:24]MH_I2C_Read... [17:01:24]Read from MH i2c: E2 62 00 [17:01:24]MH_I2C_Read... [17:01:24]Read from MH i2c: E2 62 00 1B A4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C2 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 68 01 00 00 5E 04 04 00 68 01 00 00 57 04 04 00 69 01 00 00 19 04 04 00 00 00 00 00 90 00 16 [17:01: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C2 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 68 01 00 00 5E 04 04 00 68 01 00 00 57 04 04 00 69 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:01:24]wFMCommunicate OK [17:01:24]SAM_PROTO_GetFieldsCounters done [17:01:24]requested_item shift.num is exist - process it [17:01:24]requested_item shift.opened is exist - process it [17:01:24]req_shift_opened [17:01:24]FM_GetShiftState [17:01:24]SAM_PROTO_GetShiftState [17:01:24]wFMCommunicate request_size=4 [17:01:24]MH_SAM_APDU [17:01:24]CAPDU: 80 13 01 00 [17:01:24]Write to MH i2c: E2 08 00 1C A4 80 13 01 00 00 00 00 00 3D [17:01:24]Write i2c OK [17:01:24]MH_I2C_Read... [17:01:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:24]Read from MH i2c: E2 [17:01:24]MH_I2C_Read... [17:01:24]Read from MH i2c: E2 0E 00 [17:01:24]MH_I2C_Read... [17:01:24]Read from MH i2c: E2 0E 00 1C A4 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 7A [17:01:24]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:01:24]wFMCommunicate OK [17:01:24]SAM_PROTO_GetShiftState done [17:01:24]FM_GetShiftState done [17:01:24]req_shift_opened done [17:01:24]requested_item shift.open_date is exist - process it [17:01:24]req_shift_open_date [17:01:24]req_shift_open_date done [17:01:24]produce_requested_data done [17:01:24]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260802,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [17:01:24]process_action_free close_receipt [17:01:24]json_value_free [17:01:24]json_value_free done [17:01:24]process_json_proto returns [17:01:24]Send response to host [17:01:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260802,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [17:01:24]free response buf [17:01:24]execute_script done [17:01:24]execute_script returns [17:01:24]free content buf [17:01:24]Sock 9.Close socket [17:01:24]Sock 9.Thread stoped [17:01:25]OFD Sender: No OFD packet to send [17:01:30]OFD Sender: No OFD packet to send [17:01:36]OFD Sender: No OFD packet to send [17:01:41]OFD Sender: No OFD packet to send [17:01:46]OFD Sender: No OFD packet to send [17:01:51]OFD Sender: No OFD packet to send [17:01:56]OFD Sender: No OFD packet to send [17:02:01]OFD Sender: No OFD packet to send [17:02:06]OFD Sender: No OFD packet to send [17:02:11]OFD Sender: No OFD packet to send [17:02:16]OFD Sender: No OFD packet to send [17:02:21]OFD Sender: No OFD packet to send [17:02:26]OFD Sender: No OFD packet to send [17:02:31]OFD Sender: No OFD packet to send [17:02:33]accept exits with 7 [17:02:33]New connection [17:02:33]New thread 3066617188 created [17:02:33]Thread 3066473828 joined [17:02:33]Waiting for new connection... [17:02:33] Sock 7.Parse request [17:02:33]Sock 7.Check first char [17:02:33]Sock 7.First char is OK [17:02:33]request: POST /json_proto HTTP/1.0 [17:02:33]Method: POST [17:02:33]URL: /json_proto [17:02:33]Method is POST - this is cgi request [17:02:33]url: /json_proto [17:02:33]query_string will be loaded in cgi processing [17:02:33]execute_cgi json_proto POST (null) [17:02:33]execute_cgi path=json_proto method=POST [17:02:33]POST find Content-Length [17:02:33]Host: 172.17.55.133:8080 [17:02:33]Content-Length: 678 [17:02:33]Content-Type: application/json [17:02:33] [17:02:33]POST finish read [17:02:33]Found Content-Length = 678 [17:02:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036355", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:33]execute_script... [17:02:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036355", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:33]POST & json_proto [17:02:33]process_json_proto [17:02:33]json parsed OK: [17:02:33]protocol is kg_v1.0 [17:02:33]action value=close_receipt [17:02:33]process_action close_receipt [17:02:33]cmd_close_receipt [17:02:33]MH_GetDate [17:02:33]Write to MH i2c: F0 00 00 1D A4 B0 [17:02:33]Write i2c OK [17:02:33]MH_I2C_Read... [17:02:33]Read from MH i2c: F0 [17:02:33]MH_I2C_Read... [17:02:33]Read from MH i2c: F0 09 00 [17:02:33]MH_I2C_Read... [17:02:33]Read from MH i2c: F0 09 00 1D A4 00 2F 29 C2 66 34 48 D8 65 F2 [17:02:33]GetLastDocTimeStamp 1724000484 [17:02:33]current date 1724000559 [17:02:33]FM_GetShiftState [17:02:33]SAM_PROTO_GetShiftState [17:02:33]wFMCommunicate request_size=4 [17:02:33]MH_SAM_APDU [17:02:33]CAPDU: 80 13 01 00 [17:02:33]Write to MH i2c: E2 08 00 1E A4 80 13 01 00 00 00 00 00 3F [17:02:33]Write i2c OK [17:02:33]MH_I2C_Read... [17:02:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:33]Read from MH i2c: E2 [17:02:33]MH_I2C_Read... [17:02:33]Read from MH i2c: E2 0E 00 [17:02:33]MH_I2C_Read... [17:02:33]Read from MH i2c: E2 0E 00 1E A4 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 7C [17:02:33]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:02:33]wFMCommunicate OK [17:02:33]SAM_PROTO_GetShiftState done [17:02:33]FM_GetShiftState done [17:02:33]opened in 1723940556 [17:02:33]opened+sec_in_day 1724026956 [17:02:33]quantity*price = 50010 [17:02:33]sum+1 = 50012 [17:02:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 361 18.08.2024 17:02 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260803 ФПД: 172729805613683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T170239&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260803&fm=172729805613683&tin=02508201610067®Number=0000000000091865&sum=50000 [17:02:34]StoreToDocumentArchive [17:02:34]shift 449 fd 260803 [17:02:34]save to /storage/0449/doc_00260803 [17:02:34]save last doc name /storage/0449/doc_00260803 to /storage/kkm_last_doc_name [17:02:34]save OK [17:02:34]Clear old archive folders... [17:02:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:02:34]tlvbuf is 00453850 [17:02:34]SAM_PROTO_ClearQueue [17:02:34]wFMCommunicate request_size=4 [17:02:34]MH_SAM_APDU [17:02:34]CAPDU: 80 09 00 00 [17:02:34]Write to MH i2c: E2 08 00 2B A4 80 09 00 00 00 00 00 00 41 [17:02:34]Write i2c OK [17:02:34]MH_I2C_Read... [17:02:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:02:34]Read from MH i2c: E2 [17:02:34]MH_I2C_Read... [17:02:34]Read from MH i2c: E2 03 00 [17:02:34]MH_I2C_Read... [17:02:34]Read from MH i2c: E2 03 00 2B A4 00 90 00 43 [17:02:34]RAPDU: 90 00 [17:02:34]wFMCommunicate OK [17:02:34]SAM_PROTO_ClearQueue done [17:02:34]KKMCreateOFDPacket [17:02:34]OFDProtocolAddRootSTLVToBuf [17:02:34]FM_MakeSignedData [17:02:34]FM_MakeSignedData [17:02:34]SAM_PROTO_SignData [17:02:34]wFMCommunicate request_size=4 [17:02:34]MH_SAM_APDU [17:02:34]CAPDU: 80 0D 01 02 [17:02:34]Write to MH i2c: E2 08 00 2C A4 80 0D 01 02 00 00 00 00 49 [17:02:34]Write i2c OK [17:02:34]MH_I2C_Read... [17:02:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:02:34]Read from MH i2c: E2 [17:02:34]MH_I2C_Read... [17:02:34]Read from MH i2c: E2 03 00 [17:02:34]MH_I2C_Read... [17:02:34]Read from MH i2c: E2 03 00 2C A4 00 90 00 44 [17:02:34]RAPDU: 90 00 [17:02:34]wFMCommunicate OK [17:02:34]wFMCommunicate request_size=255 [17:02:34]MH_SAM_APDU [17:02:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 2F 29 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C3 FA 03 00 35 04 06 00 9D [17:02:34]Write to MH i2c: E2 02 01 2D A4 80 0D 02 02 FA 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 2F 29 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C3 FA 03 00 35 04 06 00 9D 00 00 B7 [17:02:34]Write i2c OK [17:02:34]MH_I2C_Read... [17:02:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:35]Read from MH i2c: E2 [17:02:35]MH_I2C_Read... [17:02:35]Read from MH i2c: E2 03 00 [17:02:35]MH_I2C_Read... [17:02:35]Read from MH i2c: E2 03 00 2D A4 00 90 00 45 [17:02:35]RAPDU: 90 00 [17:02:35]wFMCommunicate OK [17:02:35]wFMCommunicate request_size=10 [17:02:35]MH_SAM_APDU [17:02:35]CAPDU: 80 0D 02 02 05 18 CA B4 AA 73 [17:02:35]Write to MH i2c: E2 0D 00 2E A4 80 0D 02 02 05 00 18 CA B4 AA 73 00 00 09 [17:02:35]Write i2c OK [17:02:35]MH_I2C_Read... [17:02:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:35]Read from MH i2c: E2 [17:02:35]MH_I2C_Read... [17:02:35]Read from MH i2c: E2 03 00 [17:02:35]MH_I2C_Read... [17:02:35]Read from MH i2c: E2 03 00 2E A4 00 90 00 46 [17:02:35]RAPDU: 90 00 [17:02:35]wFMCommunicate OK [17:02:35]wFMCommunicate request_size=4 [17:02:35]MH_SAM_APDU [17:02:35]CAPDU: 80 0D 03 02 [17:02:35]Write to MH i2c: E2 08 00 2F A4 80 0D 03 02 00 00 00 00 4E [17:02:35]Write i2c OK [17:02:35]MH_I2C_Read... [17:02:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:02:35]Read from MH i2c: E2 [17:02:35]MH_I2C_Read... [17:02:35]Read from MH i2c: E2 0B 00 [17:02:35]MH_I2C_Read... [17:02:35]Read from MH i2c: E2 0B 00 2F A4 00 F2 20 76 27 9D B0 20 DA 90 00 45 [17:02:35]RAPDU: F2 20 76 27 9D B0 20 DA 90 00 [17:02:35]wFMCommunicate OK [17:02:35]SAM_PROTO_SignData done [17:02:35]FM_MakeSignedData done [17:02:35]CreateOFDProtocolMessage [17:02:35]wFMCommunicate request_size=4 [17:02:35]MH_SAM_APDU [17:02:35]CAPDU: 80 11 00 00 [17:02:35]Write to MH i2c: E2 08 00 30 A4 80 11 00 00 00 00 00 00 4E [17:02:35]Write i2c OK [17:02:35]MH_I2C_Read... [17:02:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:35]Read from MH i2c: E2 [17:02:35]MH_I2C_Read... [17:02:35]Read from MH i2c: E2 17 00 [17:02:35]MH_I2C_Read... [17:02:35]Read from MH i2c: E2 17 00 30 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 9B [17:02:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:02:35]wFMCommunicate OK [17:02:35]CreateOFDProtocolMessage done [17:02:35]OFDSenderStorePacket 260803 [17:02:35]StoreOFDPacket docnum=260803 [17:02:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 38 09 07 01 EF 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 2F 29 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C3 FA 03 00 35 04 06 00 9D 18 CA B4 AA 73 F2 20 76 27 9D B0 20 DA [17:02:35]CheckFolder [17:02:35]dirname=/storage/ofd_packets [17:02:35]CheckFolder done [17:02:35]ProducePacketName [17:02:35]name=ofd_packets/00260803 [17:02:35]NVStorageSaveData ofd_packets/00260803 [17:02:35]File name is /storage/ofd_packets/00260803 [17:02:35]Write 301 bytes [17:02:35]NVStorageSaveData done [17:02:35]OFDSenderStorePacket done [17:02:35]KKMCreateOFDPacket done [17:02:35]NVStorageSaveData kkm_last_timestamp [17:02:35]File name is /storage/kkm_last_timestamp [17:02:35]Write 4 bytes [17:02:35]NVStorageSaveData done [17:02:35]ExternCall_PrintAddStr [17:02:35]wPrintStart [17:02:35]Write to MH i2c: 01 00 00 31 A4 D5 [17:02:35]Write i2c OK [17:02:35]MH_I2C_Read... [17:02:35]Read from MH i2c: 01 [17:02:35]MH_I2C_Read... [17:02:35]Read from MH i2c: 01 07 00 [17:02:35]MH_I2C_Read... [17:02:35]Read from MH i2c: 01 07 00 31 A4 00 00 00 00 00 FF 0F EA [17:02:35]RasterBufferAndPrint [17:02:35]line Счет N : (1)1036355 [17:02:35]line ИНН: 02508201610067 [17:02:35]line Контрольно-Кассовый Чек [17:02:35]line ПРОДАЖА [17:02:35]line ТРК (МРК, ГНК) : 13 [17:02:35]line Товар: 2710124500 [17:02:35]line Аи-95-К-5 [17:02:35]line 6.740 * 74.20 [17:02:35]line = 500.11 [17:02:35]line НДС 12% НСП 1% [17:02:35]line > о реализуемом товаре [17:02:35]line ОКРУГЛЕНИЕ: -0.11 [17:02:35]line ИТОГО: 500.00 [17:02:35]line Внесено: 500.00 [17:02:35]line СДАЧА: 0.00 [17:02:35]line НСП 1% : 4.43 [17:02:35]line НДС 12% : 53.11 [17:02:35]line Наличными: 500.00 [17:02:35]line Безнал.: 0.00 [17:02:35]line Место: АЗС № 94 "Партнер Нефть" [17:02:35]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [17:02:35]line СНО: Общий режим [17:02:35]line Чек 361 18.08.2024 17:02 [17:02:35]line Смена: 449 ФФД: 1.0 [17:02:35]line ЗНМ: 0300000099 [17:02:35]line РНМ: 0000000000091865 [17:02:35]line Версия ККМ: 001 [17:02:35]line ФМ: 0000000000871820 [17:02:35]line ФД: 260803 [17:02:35]line ФПД: 172729805613683 [17:02:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T170239&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260803&fm=172729805613683&tin=02508201610067®Number=0000000000091865&sum=50000 [17:02:35]written 0, free lines is 4095 [17:02:35]OFD Sender: Processing packet 260803 [packets to send 192, broken 191] [17:02:35]ProducePacketName [17:02:35]name=ofd_packets/00260803 [17:02:35]OFD Sender: To server: pG, [17:02:35]CommunicateWithHost lk.salyk.kg:30040 [17:02:35]ConnectInit lk.salyk.kg [17:02:35]Connected sock=10 [17:02: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 30 0F 01 00 00 38 09 07 01 EF 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 2F 29 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C3 FA 03 00 35 04 06 00 9D 18 CA B4 AA 73 F2 20 76 27 9D B0 20 DA [17:02: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 30 4F 00 00 00 E1 B3 47 00 AA 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 30 10 04 04 00 C3 FA 03 00 F4 03 04 00 83 D2 C1 66 B6 04 01 00 00 DA DB 1F 09 B2 09 8C AA [17:02:35]CommunicateWithHost err = 0 [17:02:35]CheckOFDResponse [17:02:35]1017 (14) - 77093643461234 [17:02:35]1041 (16) - 0000000000871820 [17:02:35]1040 (4) - 260803 [17:02:35]1012 (4) - 18.08.2024 10:52 [17:02:35]1206 (1) - 0 [17:02:35]OFD Sender: Remove packet 260803 [17:02:35]ProducePacketName [17:02:35]name=ofd_packets/00260803 [17:02:35]NVStorageDeleteData [17:02:35]Write to MH i2c: 01 00 00 5C A4 00 [17:02:35]Write i2c OK [17:02:35]MH_I2C_Read... [17:02:35]Read from MH i2c: 01 [17:02:35]MH_I2C_Read... [17:02:35]Read from MH i2c: 01 07 00 [17:02:35]MH_I2C_Read... [17:02:35]Read from MH i2c: 01 07 00 5C A4 00 00 00 00 00 6B 0C 7E [17:02:35]RasterBufferAndPrint [17:02:35]line [17:02:35]line [17:02:35]line [17:02:35]line [17:02:35]line [17:02:35]written 0, free lines is 3183 [17:02:35]MH_Cut [17:02:35]Write to MH i2c: D1 01 00 63 A4 01 D9 [17:02:35]Write i2c OK [17:02:35]MH_I2C_Read... [17:02:35]Read from MH i2c: D1 [17:02:35]MH_I2C_Read... [17:02:35]Read from MH i2c: D1 01 00 [17:02:35]MH_I2C_Read... [17:02:35]Read from MH i2c: D1 01 00 63 A4 00 D8 [17:02:35]Write to MH i2c: 01 00 00 64 A4 08 [17:02:35]Write i2c OK [17:02:35]MH_I2C_Read... [17:02:36]OFD Sender: No OFD packet to send [17:02:36]*** Cut start [17:02:36]*** Purtial cut [17:02:36]*** Stage 1: CUTSNS_PIN = 1 [17:02:38]Read from MH i2c: 01 [17:02:38]MH_I2C_Read... [17:02:38]*** Stop cut motor [17:02:38]*** Cut end [17:02:38]Read from MH i2c: 01 07 00 [17:02:38]MH_I2C_Read... [17:02:38]Read from MH i2c: 01 07 00 64 A4 00 00 00 00 00 FF 0F 1D [17:02:38]process_action close_receipt done [17:02:38]requested_data is exist [17:02:38]produce_requested_data [17:02:38]requested_item fm.sn is exist - process it [17:02:38]wFMCommunicate request_size=4 [17:02:38]MH_SAM_APDU [17:02:38]CAPDU: 80 11 00 00 [17:02:38]Write to MH i2c: E2 08 00 65 A4 80 11 00 00 00 00 00 00 83 [17:02:38]Write i2c OK [17:02:38]MH_I2C_Read... [17:02:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:38]Read from MH i2c: E2 [17:02:38]MH_I2C_Read... [17:02:38]Read from MH i2c: E2 17 00 [17:02:38]MH_I2C_Read... [17:02:38]Read from MH i2c: E2 17 00 65 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D0 [17:02:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:02:38]wFMCommunicate OK [17:02:38]requested_item fd.num is exist - process it [17:02:38]SAM_PROTO_GetFieldsCounters [17:02:38]wFMCommunicate request_size=4 [17:02:38]MH_SAM_APDU [17:02:38]CAPDU: 80 13 00 00 [17:02:38]Write to MH i2c: E2 08 00 66 A4 80 13 00 00 00 00 00 00 86 [17:02:38]Write i2c OK [17:02:38]MH_I2C_Read... [17:02:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:02:39]Read from MH i2c: E2 [17:02:39]MH_I2C_Read... [17:02:39]Read from MH i2c: E2 62 00 [17:02:39]MH_I2C_Read... [17:02:39]Read from MH i2c: E2 62 00 66 A4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C3 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 65 [17:02: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C3 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:02:39]wFMCommunicate OK [17:02:39]SAM_PROTO_GetFieldsCounters done [17:02:39]requested_item shift.num is exist - process it [17:02:39]requested_item shift.opened is exist - process it [17:02:39]req_shift_opened [17:02:39]FM_GetShiftState [17:02:39]SAM_PROTO_GetShiftState [17:02:39]wFMCommunicate request_size=4 [17:02:39]MH_SAM_APDU [17:02:39]CAPDU: 80 13 01 00 [17:02:39]Write to MH i2c: E2 08 00 67 A4 80 13 01 00 00 00 00 00 88 [17:02:39]Write i2c OK [17:02:39]MH_I2C_Read... [17:02:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:39]Read from MH i2c: E2 [17:02:39]MH_I2C_Read... [17:02:39]Read from MH i2c: E2 0E 00 [17:02:39]MH_I2C_Read... [17:02:39]Read from MH i2c: E2 0E 00 67 A4 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C5 [17:02:39]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:02:39]wFMCommunicate OK [17:02:39]SAM_PROTO_GetShiftState done [17:02:39]FM_GetShiftState done [17:02:39]req_shift_opened done [17:02:39]requested_item shift.open_date is exist - process it [17:02:39]req_shift_open_date [17:02:39]req_shift_open_date done [17:02:39]produce_requested_data done [17:02:39]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260803,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [17:02:39]process_action_free close_receipt [17:02:39]json_value_free [17:02:39]json_value_free done [17:02:39]process_json_proto returns [17:02:39]Send response to host [17:02:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260803,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [17:02:39]free response buf [17:02:39]execute_script done [17:02:39]execute_script returns [17:02:39]free content buf [17:02:39]Sock 7.Close socket [17:02:39]Sock 7.Thread stoped [17:02:41]OFD Sender: No OFD packet to send [17:02:46]OFD Sender: No OFD packet to send [17:02:51]OFD Sender: No OFD packet to send [17:02:56]OFD Sender: No OFD packet to send [17:03:01]OFD Sender: No OFD packet to send [17:03:06]OFD Sender: No OFD packet to send [17:03:11]OFD Sender: No OFD packet to send [17:03:16]OFD Sender: No OFD packet to send [17:03:21]OFD Sender: No OFD packet to send [17:03:26]OFD Sender: No OFD packet to send [17:03:31]OFD Sender: No OFD packet to send [17:03:36]OFD Sender: No OFD packet to send [17:03:41]OFD Sender: No OFD packet to send [17:03:46]OFD Sender: No OFD packet to send [17:03:51]OFD Sender: No OFD packet to send [17:03:56]OFD Sender: No OFD packet to send [17:04:01]OFD Sender: No OFD packet to send [17:04:06]OFD Sender: No OFD packet to send [17:04:11]OFD Sender: No OFD packet to send [17:04:16]OFD Sender: No OFD packet to send [17:04:21]OFD Sender: No OFD packet to send [17:04:26]OFD Sender: No OFD packet to send [17:04:31]OFD Sender: No OFD packet to send [17:04:36]OFD Sender: No OFD packet to send [17:04:41]OFD Sender: No OFD packet to send [17:04:46]OFD Sender: No OFD packet to send [17:04:51]OFD Sender: No OFD packet to send [17:04:56]OFD Sender: No OFD packet to send [17:05:01]OFD Sender: No OFD packet to send [17:05:06]OFD Sender: No OFD packet to send [17:05:11]OFD Sender: No OFD packet to send [17:05:16]OFD Sender: No OFD packet to send [17:05:21]OFD Sender: No OFD packet to send [17:05:26]OFD Sender: No OFD packet to send [17:05:31]OFD Sender: No OFD packet to send [17:05:36]OFD Sender: No OFD packet to send [17:05:41]OFD Sender: No OFD packet to send [17:05:46]OFD Sender: No OFD packet to send [17:05:51]OFD Sender: No OFD packet to send [17:05:56]OFD Sender: No OFD packet to send [17:06:01]OFD Sender: No OFD packet to send [17:06:05]accept exits with 9 [17:06:05]New connection [17:06:05]New thread 3066473828 created [17:06:05]Thread 3066617188 joined [17:06:05]Waiting for new connection... [17:06:05] Sock 9.Parse request [17:06:05]Sock 9.Check first char [17:06:05]Sock 9.First char is OK [17:06:05]request: POST /json_proto HTTP/1.0 [17:06:05]Method: POST [17:06:05]URL: /json_proto [17:06:05]Method is POST - this is cgi request [17:06:05]url: /json_proto [17:06:05]query_string will be loaded in cgi processing [17:06:05]execute_cgi json_proto POST (null) [17:06:05]execute_cgi path=json_proto method=POST [17:06:05]POST find Content-Length [17:06:05]Host: 172.17.55.133:8080 [17:06:05]Content-Length: 678 [17:06:05]Content-Type: application/json [17:06:05] [17:06:05]POST finish read [17:06:05]Found Content-Length = 678 [17:06:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:05]execute_script... [17:06: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)1036356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:05]POST & json_proto [17:06:05]process_json_proto [17:06:05]json parsed OK: [17:06:05]protocol is kg_v1.0 [17:06:05]action value=close_receipt [17:06:05]process_action close_receipt [17:06:05]cmd_close_receipt [17:06:05]MH_GetDate [17:06:05]Write to MH i2c: F0 00 00 68 A4 FB [17:06:05]Write i2c OK [17:06:05]MH_I2C_Read... [17:06:05]Read from MH i2c: F0 [17:06:05]MH_I2C_Read... [17:06:05]Read from MH i2c: F0 09 00 [17:06:05]MH_I2C_Read... [17:06:05]Read from MH i2c: F0 09 00 68 A4 00 03 2A C2 66 34 48 D8 65 12 [17:06:05]GetLastDocTimeStamp 1724000559 [17:06:05]current date 1724000771 [17:06:05]FM_GetShiftState [17:06:05]SAM_PROTO_GetShiftState [17:06:05]wFMCommunicate request_size=4 [17:06:05]MH_SAM_APDU [17:06:05]CAPDU: 80 13 01 00 [17:06:05]Write to MH i2c: E2 08 00 69 A4 80 13 01 00 00 00 00 00 8A [17:06:05]Write i2c OK [17:06:05]MH_I2C_Read... [17:06:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:05]Read from MH i2c: E2 [17:06:05]MH_I2C_Read... [17:06:05]Read from MH i2c: E2 0E 00 [17:06:05]MH_I2C_Read... [17:06:05]Read from MH i2c: E2 0E 00 69 A4 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C7 [17:06:05]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:06:05]wFMCommunicate OK [17:06:05]SAM_PROTO_GetShiftState done [17:06:05]FM_GetShiftState done [17:06:05]opened in 1723940556 [17:06:05]opened+sec_in_day 1724026956 [17:06:05]quantity*price = 30035 [17:06:05]sum+1 = 30036 [17:06:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 362 18.08.2024 17:06 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260804 ФПД: 131320160916398 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T170611&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260804&fm=131320160916398&tin=02508201610067®Number=0000000000091865&sum=30000 [17:06:06]StoreToDocumentArchive [17:06:06]shift 449 fd 260804 [17:06:06]save to /storage/0449/doc_00260804 [17:06:06]save last doc name /storage/0449/doc_00260804 to /storage/kkm_last_doc_name [17:06:06]save OK [17:06:06]Clear old archive folders... [17:06:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:06:06]tlvbuf is 00383230 [17:06:06]SAM_PROTO_ClearQueue [17:06:06]wFMCommunicate request_size=4 [17:06:06]MH_SAM_APDU [17:06:06]CAPDU: 80 09 00 00 [17:06:06]Write to MH i2c: E2 08 00 76 A4 80 09 00 00 00 00 00 00 8C [17:06:06]Write i2c OK [17:06:06]MH_I2C_Read... [17:06:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:06]OFD Sender: No OFD packet to send [17:06:06]Read from MH i2c: E2 [17:06:06]MH_I2C_Read... [17:06:06]Read from MH i2c: E2 03 00 [17:06:06]MH_I2C_Read... [17:06:06]Read from MH i2c: E2 03 00 76 A4 00 90 00 8E [17:06:06]RAPDU: 90 00 [17:06:06]wFMCommunicate OK [17:06:06]SAM_PROTO_ClearQueue done [17:06:06]KKMCreateOFDPacket [17:06:06]OFDProtocolAddRootSTLVToBuf [17:06:06]FM_MakeSignedData [17:06:06]FM_MakeSignedData [17:06:06]SAM_PROTO_SignData [17:06:06]wFMCommunicate request_size=4 [17:06:06]MH_SAM_APDU [17:06:06]CAPDU: 80 0D 01 02 [17:06:06]Write to MH i2c: E2 08 00 77 A4 80 0D 01 02 00 00 00 00 94 [17:06:06]Write i2c OK [17:06:06]MH_I2C_Read... [17:06:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:06]Read from MH i2c: E2 [17:06:06]MH_I2C_Read... [17:06:06]Read from MH i2c: E2 03 00 [17:06:06]MH_I2C_Read... [17:06:06]Read from MH i2c: E2 03 00 77 A4 00 90 00 8F [17:06:06]RAPDU: 90 00 [17:06:06]wFMCommunicate OK [17:06:06]wFMCommunicate request_size=255 [17:06:06]MH_SAM_APDU [17:06:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 03 2A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C4 FA 03 00 35 04 06 00 77 [17:06:06]Write to MH i2c: E2 02 01 78 A4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 03 2A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C4 FA 03 00 35 04 06 00 77 00 00 EA [17:06:06]Write i2c OK [17:06:06]MH_I2C_Read... [17:06:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:06]Read from MH i2c: E2 [17:06:06]MH_I2C_Read... [17:06:06]Read from MH i2c: E2 03 00 [17:06:06]MH_I2C_Read... [17:06:06]Read from MH i2c: E2 03 00 78 A4 00 90 00 90 [17:06:06]RAPDU: 90 00 [17:06:06]wFMCommunicate OK [17:06:06]wFMCommunicate request_size=10 [17:06:06]MH_SAM_APDU [17:06:06]CAPDU: 80 0D 02 02 05 6F 5B 8B 13 AE [17:06:06]Write to MH i2c: E2 0D 00 79 A4 80 0D 02 02 05 00 6F 5B 8B 13 AE 00 00 B7 [17:06:06]Write i2c OK [17:06:06]MH_I2C_Read... [17:06:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:06]Read from MH i2c: E2 [17:06:06]MH_I2C_Read... [17:06:06]Read from MH i2c: E2 03 00 [17:06:06]MH_I2C_Read... [17:06:06]Read from MH i2c: E2 03 00 79 A4 00 90 00 91 [17:06:06]RAPDU: 90 00 [17:06:06]wFMCommunicate OK [17:06:06]wFMCommunicate request_size=4 [17:06:06]MH_SAM_APDU [17:06:06]CAPDU: 80 0D 03 02 [17:06:06]Write to MH i2c: E2 08 00 7A A4 80 0D 03 02 00 00 00 00 99 [17:06:06]Write i2c OK [17:06:06]MH_I2C_Read... [17:06:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:06:06]Read from MH i2c: E2 [17:06:06]MH_I2C_Read... [17:06:06]Read from MH i2c: E2 0B 00 [17:06:06]MH_I2C_Read... [17:06:06]Read from MH i2c: E2 0B 00 7A A4 00 66 E2 30 F0 AF EF F5 8A 90 00 1F [17:06:06]RAPDU: 66 E2 30 F0 AF EF F5 8A 90 00 [17:06:06]wFMCommunicate OK [17:06:06]SAM_PROTO_SignData done [17:06:06]FM_MakeSignedData done [17:06:06]CreateOFDProtocolMessage [17:06:06]wFMCommunicate request_size=4 [17:06:06]MH_SAM_APDU [17:06:06]CAPDU: 80 11 00 00 [17:06:06]Write to MH i2c: E2 08 00 7B A4 80 11 00 00 00 00 00 00 99 [17:06:06]Write i2c OK [17:06:06]MH_I2C_Read... [17:06:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:06]Read from MH i2c: E2 [17:06:06]MH_I2C_Read... [17:06:06]Read from MH i2c: E2 17 00 [17:06:06]MH_I2C_Read... [17:06:06]Read from MH i2c: E2 17 00 7B A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E6 [17:06:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:06:06]wFMCommunicate OK [17:06:06]CreateOFDProtocolMessage done [17:06:06]OFDSenderStorePacket 260804 [17:06:06]StoreOFDPacket docnum=260804 [17:06:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 89 84 07 01 9E DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 03 2A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C4 FA 03 00 35 04 06 00 77 6F 5B 8B 13 AE 66 E2 30 F0 AF EF F5 8A [17:06:06]CheckFolder [17:06:06]dirname=/storage/ofd_packets [17:06:06]CheckFolder done [17:06:06]ProducePacketName [17:06:06]name=ofd_packets/00260804 [17:06:06]NVStorageSaveData ofd_packets/00260804 [17:06:06]File name is /storage/ofd_packets/00260804 [17:06:06]Write 301 bytes [17:06:06]NVStorageSaveData done [17:06:06]OFDSenderStorePacket done [17:06:06]KKMCreateOFDPacket done [17:06:06]NVStorageSaveData kkm_last_timestamp [17:06:06]File name is /storage/kkm_last_timestamp [17:06:06]Write 4 bytes [17:06:06]NVStorageSaveData done [17:06:06]ExternCall_PrintAddStr [17:06:06]wPrintStart [17:06:06]Write to MH i2c: 01 00 00 7C A4 20 [17:06:06]Write i2c OK [17:06:06]MH_I2C_Read... [17:06:06]Read from MH i2c: 01 [17:06:06]MH_I2C_Read... [17:06:06]Read from MH i2c: 01 07 00 [17:06:06]MH_I2C_Read... [17:06:06]Read from MH i2c: 01 07 00 7C A4 00 00 00 00 00 FF 0F 35 [17:06:06]RasterBufferAndPrint [17:06:06]line Счет N : (1)1036356 [17:06:06]line ИНН: 02508201610067 [17:06:06]line Контрольно-Кассовый Чек [17:06:06]line ПРОДАЖА [17:06:06]line ТРК (МРК, ГНК) : 22 [17:06:06]line Товар: 2710124130 [17:06:06]line Аи-92-К-5 [17:06:06]line 4.430 * 67.80 [17:06:06]line = 300.35 [17:06:06]line НДС 12% НСП 1% [17:06:06]line > о реализуемом товаре [17:06:06]line ОКРУГЛЕНИЕ: -0.35 [17:06:06]line ИТОГО: 300.00 [17:06:06]line Внесено: 300.00 [17:06:06]line СДАЧА: 0.00 [17:06:06]line НСП 1% : 2.66 [17:06:06]line НДС 12% : 31.90 [17:06:06]line Наличными: 300.00 [17:06:06]line Безнал.: 0.00 [17:06:06]line Место: АЗС № 94 "Партнер Нефть" [17:06:06]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [17:06:06]line СНО: Общий режим [17:06:06]line Чек 362 18.08.2024 17:06 [17:06:06]line Смена: 449 ФФД: 1.0 [17:06:06]line ЗНМ: 0300000099 [17:06:06]line РНМ: 0000000000091865 [17:06:06]line Версия ККМ: 001 [17:06:06]line ФМ: 0000000000871820 [17:06:06]line ФД: 260804 [17:06:06]line ФПД: 131320160916398 [17:06:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T170611&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260804&fm=131320160916398&tin=02508201610067®Number=0000000000091865&sum=30000 [17:06:07]OFD Sender: Processing packet 260804 [packets to send 192, broken 191] [17:06:07]ProducePacketName [17:06:07]name=ofd_packets/00260804 [17:06:07]OFD Sender: To server: pG, [17:06:07]CommunicateWithHost lk.salyk.kg:30040 [17:06:07]ConnectInit lk.salyk.kg [17:06:07]written 0, free lines is 4095 [17:06:07]Connected sock=10 [17:06: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 30 0F 01 00 00 89 84 07 01 9E DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 03 2A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C4 FA 03 00 35 04 06 00 77 6F 5B 8B 13 AE 66 E2 30 F0 AF EF F5 8A [17:06: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 30 4F 00 00 00 21 83 47 00 9E 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 30 10 04 04 00 C4 FA 03 00 F4 03 04 00 57 D3 C1 66 B6 04 01 00 00 6F 9E B9 BF 01 6E BB F9 [17:06:07]CommunicateWithHost err = 0 [17:06:07]CheckOFDResponse [17:06:07]1017 (14) - 77093643461234 [17:06:07]1041 (16) - 0000000000871820 [17:06:07]1040 (4) - 260804 [17:06:07]1012 (4) - 18.08.2024 10:56 [17:06:07]1206 (1) - 0 [17:06:07]OFD Sender: Remove packet 260804 [17:06:07]ProducePacketName [17:06:07]name=ofd_packets/00260804 [17:06:07]NVStorageDeleteData [17:06:07]Write to MH i2c: 01 00 00 A7 A4 4B [17:06:07]Write i2c OK [17:06:07]MH_I2C_Read... [17:06:07]Read from MH i2c: 01 [17:06:07]MH_I2C_Read... [17:06:07]Read from MH i2c: 01 07 00 [17:06:07]MH_I2C_Read... [17:06:07]Read from MH i2c: 01 07 00 A7 A4 00 00 00 00 00 6F 0C CD [17:06:07]RasterBufferAndPrint [17:06:07]line [17:06:07]line [17:06:07]line [17:06:07]line [17:06:07]line [17:06:07]written 0, free lines is 3185 [17:06:07]MH_Cut [17:06:07]Write to MH i2c: D1 01 00 AE A4 01 24 [17:06:07]Write i2c OK [17:06:07]MH_I2C_Read... [17:06:07]Read from MH i2c: D1 [17:06:07]MH_I2C_Read... [17:06:07]Read from MH i2c: D1 01 00 [17:06:07]MH_I2C_Read... [17:06:07]Read from MH i2c: D1 01 00 AE A4 00 23 [17:06:07]Write to MH i2c: 01 00 00 AF A4 53 [17:06:07]Write i2c OK [17:06:07]MH_I2C_Read... [17:06:08]OFD Sender: No OFD packet to send [17:06:08]*** Cut start [17:06:08]*** Purtial cut [17:06:08]*** Stage 1: CUTSNS_PIN = 1 [17:06:10]Read from MH i2c: 01 [17:06:10]MH_I2C_Read... [17:06:10]*** Stop cut motor [17:06:10]*** Cut end [17:06:10]Read from MH i2c: 01 07 00 [17:06:10]MH_I2C_Read... [17:06:10]Read from MH i2c: 01 07 00 AF A4 00 00 00 00 00 FF 0F 68 [17:06:10]process_action close_receipt done [17:06:10]requested_data is exist [17:06:10]produce_requested_data [17:06:10]requested_item fm.sn is exist - process it [17:06:10]wFMCommunicate request_size=4 [17:06:10]MH_SAM_APDU [17:06:10]CAPDU: 80 11 00 00 [17:06:10]Write to MH i2c: E2 08 00 B0 A4 80 11 00 00 00 00 00 00 CE [17:06:10]Write i2c OK [17:06:10]MH_I2C_Read... [17:06:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:10]Read from MH i2c: E2 [17:06:10]MH_I2C_Read... [17:06:10]Read from MH i2c: E2 17 00 [17:06:10]MH_I2C_Read... [17:06:10]Read from MH i2c: E2 17 00 B0 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 1B [17:06:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:06:10]wFMCommunicate OK [17:06:10]requested_item fd.num is exist - process it [17:06:10]SAM_PROTO_GetFieldsCounters [17:06:10]wFMCommunicate request_size=4 [17:06:10]MH_SAM_APDU [17:06:10]CAPDU: 80 13 00 00 [17:06:10]Write to MH i2c: E2 08 00 B1 A4 80 13 00 00 00 00 00 00 D1 [17:06:10]Write i2c OK [17:06:10]MH_I2C_Read... [17:06:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:11]Read from MH i2c: E2 [17:06:11]MH_I2C_Read... [17:06:11]Read from MH i2c: E2 62 00 [17:06:11]MH_I2C_Read... [17:06:11]Read from MH i2c: E2 62 00 B1 A4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C4 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 6A 01 00 00 5E 04 04 00 6A 01 00 00 57 04 04 00 6B 01 00 00 19 04 04 00 00 00 00 00 90 00 B4 [17:06: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C4 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 6A 01 00 00 5E 04 04 00 6A 01 00 00 57 04 04 00 6B 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:06:11]wFMCommunicate OK [17:06:11]SAM_PROTO_GetFieldsCounters done [17:06:11]requested_item shift.num is exist - process it [17:06:11]requested_item shift.opened is exist - process it [17:06:11]req_shift_opened [17:06:11]FM_GetShiftState [17:06:11]SAM_PROTO_GetShiftState [17:06:11]wFMCommunicate request_size=4 [17:06:11]MH_SAM_APDU [17:06:11]CAPDU: 80 13 01 00 [17:06:11]Write to MH i2c: E2 08 00 B2 A4 80 13 01 00 00 00 00 00 D3 [17:06:11]Write i2c OK [17:06:11]MH_I2C_Read... [17:06:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:11]Read from MH i2c: E2 [17:06:11]MH_I2C_Read... [17:06:11]Read from MH i2c: E2 0E 00 [17:06:11]MH_I2C_Read... [17:06:11]Read from MH i2c: E2 0E 00 B2 A4 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 10 [17:06:11]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:06:11]wFMCommunicate OK [17:06:11]SAM_PROTO_GetShiftState done [17:06:11]FM_GetShiftState done [17:06:11]req_shift_opened done [17:06:11]requested_item shift.open_date is exist - process it [17:06:11]req_shift_open_date [17:06:11]req_shift_open_date done [17:06:11]produce_requested_data done [17:06:11]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260804,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [17:06:11]process_action_free close_receipt [17:06:11]json_value_free [17:06:11]json_value_free done [17:06:11]process_json_proto returns [17:06:11]Send response to host [17:06:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260804,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [17:06:11]free response buf [17:06:11]execute_script done [17:06:11]execute_script returns [17:06:11]free content buf [17:06:11]Sock 9.Close socket [17:06:11]Sock 9.Thread stoped [17:06:13]OFD Sender: No OFD packet to send [17:06:18]OFD Sender: No OFD packet to send [17:06:23]OFD Sender: No OFD packet to send [17:06:28]OFD Sender: No OFD packet to send [17:06:33]OFD Sender: No OFD packet to send [17:06:38]OFD Sender: No OFD packet to send [17:06:43]OFD Sender: No OFD packet to send [17:06:48]OFD Sender: No OFD packet to send [17:06:49]accept exits with 7 [17:06:49]New connection [17:06:49]New thread 3066617188 created [17:06:49]Thread 3066473828 joined [17:06:49]Waiting for new connection... [17:06:49] Sock 7.Parse request [17:06:49]Sock 7.Check first char [17:06:49]Sock 7.First char is OK [17:06:49]request: POST /json_proto HTTP/1.0 [17:06:49]Method: POST [17:06:49]URL: /json_proto [17:06:49]Method is POST - this is cgi request [17:06:49]url: /json_proto [17:06:49]query_string will be loaded in cgi processing [17:06:49]execute_cgi json_proto POST (null) [17:06:49]execute_cgi path=json_proto method=POST [17:06:49]POST find Content-Length [17:06:49]Host: 172.17.55.133:8080 [17:06:49]Content-Length: 801 [17:06:49]Content-Type: application/json [17:06:49] [17:06:49]POST finish read [17:06:49]Found Content-Length = 801 [17:06:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:49]execute_script... [17:06: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)1036357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:49]POST & json_proto [17:06:49]process_json_proto [17:06:49]json parsed OK: [17:06:49]protocol is kg_v1.0 [17:06:49]action value=close_receipt [17:06:49]process_action close_receipt [17:06:49]cmd_close_receipt [17:06:49]MH_GetDate [17:06:49]Write to MH i2c: F0 00 00 B3 A4 46 [17:06:49]Write i2c OK [17:06:49]MH_I2C_Read... [17:06:49]Read from MH i2c: F0 [17:06:49]MH_I2C_Read... [17:06:49]Read from MH i2c: F0 09 00 [17:06:49]MH_I2C_Read... [17:06:49]Read from MH i2c: F0 09 00 B3 A4 00 2F 2A C2 66 34 48 D8 65 89 [17:06:49]GetLastDocTimeStamp 1724000771 [17:06:49]current date 1724000815 [17:06:49]FM_GetShiftState [17:06:49]SAM_PROTO_GetShiftState [17:06:49]wFMCommunicate request_size=4 [17:06:49]MH_SAM_APDU [17:06:49]CAPDU: 80 13 01 00 [17:06:49]Write to MH i2c: E2 08 00 B4 A4 80 13 01 00 00 00 00 00 D5 [17:06:49]Write i2c OK [17:06:49]MH_I2C_Read... [17:06:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:49]Read from MH i2c: E2 [17:06:49]MH_I2C_Read... [17:06:49]Read from MH i2c: E2 0E 00 [17:06:49]MH_I2C_Read... [17:06:49]Read from MH i2c: E2 0E 00 B4 A4 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 12 [17:06:49]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:06:49]wFMCommunicate OK [17:06:49]SAM_PROTO_GetShiftState done [17:06:49]FM_GetShiftState done [17:06:49]opened in 1723940556 [17:06:49]opened+sec_in_day 1724026956 [17:06:49]quantity*price = 40002 [17:06:49]sum+1 = 40003 [17:06:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.02 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.02 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 363 18.08.2024 17:06 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260805 ФПД: 213183841561431 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T170655&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260805&fm=213183841561431&tin=02508201610067®Number=0000000000091865&sum=40002 [17:06:50]StoreToDocumentArchive [17:06:50]shift 449 fd 260805 [17:06:50]save to /storage/0449/doc_00260805 [17:06:50]save last doc name /storage/0449/doc_00260805 to /storage/kkm_last_doc_name [17:06:50]save OK [17:06:50]Clear old archive folders... [17:06:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:06:50]tlvbuf is 00540540 [17:06:50]SAM_PROTO_ClearQueue [17:06:50]wFMCommunicate request_size=4 [17:06:50]MH_SAM_APDU [17:06:50]CAPDU: 80 09 00 00 [17:06:50]Write to MH i2c: E2 08 00 C1 A4 80 09 00 00 00 00 00 00 D7 [17:06:50]Write i2c OK [17:06:50]MH_I2C_Read... [17:06:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:50]Read from MH i2c: E2 [17:06:50]MH_I2C_Read... [17:06:50]Read from MH i2c: E2 03 00 [17:06:50]MH_I2C_Read... [17:06:50]Read from MH i2c: E2 03 00 C1 A4 00 90 00 D9 [17:06:50]RAPDU: 90 00 [17:06:50]wFMCommunicate OK [17:06:50]SAM_PROTO_ClearQueue done [17:06:50]KKMCreateOFDPacket [17:06:50]OFDProtocolAddRootSTLVToBuf [17:06:50]FM_MakeSignedData [17:06:50]FM_MakeSignedData [17:06:50]SAM_PROTO_SignData [17:06:50]wFMCommunicate request_size=4 [17:06:50]MH_SAM_APDU [17:06:50]CAPDU: 80 0D 01 02 [17:06:50]Write to MH i2c: E2 08 00 C2 A4 80 0D 01 02 00 00 00 00 DF [17:06:50]Write i2c OK [17:06:50]MH_I2C_Read... [17:06:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:50]Read from MH i2c: E2 [17:06:50]MH_I2C_Read... [17:06:50]Read from MH i2c: E2 03 00 [17:06:50]MH_I2C_Read... [17:06:50]Read from MH i2c: E2 03 00 C2 A4 00 90 00 DA [17:06:51]RAPDU: 90 00 [17:06:51]wFMCommunicate OK [17:06:51]wFMCommunicate request_size=255 [17:06:51]MH_SAM_APDU [17:06:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 2F 2A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C5 FA 03 00 35 04 06 00 C1 [17:06:51]Write to MH i2c: E2 02 01 C3 A4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 2F 2A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C5 FA 03 00 35 04 06 00 C1 00 00 77 [17:06:51]Write i2c OK [17:06:51]MH_I2C_Read... [17:06:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:51]Read from MH i2c: E2 [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: E2 03 00 [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: E2 03 00 C3 A4 00 90 00 DB [17:06:51]RAPDU: 90 00 [17:06:51]wFMCommunicate OK [17:06:51]wFMCommunicate request_size=10 [17:06:51]MH_SAM_APDU [17:06:51]CAPDU: 80 0D 02 02 05 E3 BB 25 EB 57 [17:06:51]Write to MH i2c: E2 0D 00 C4 A4 80 0D 02 02 05 00 E3 BB 25 EB 57 00 00 F1 [17:06:51]Write i2c OK [17:06:51]MH_I2C_Read... [17:06:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:51]Read from MH i2c: E2 [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: E2 03 00 [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: E2 03 00 C4 A4 00 90 00 DC [17:06:51]RAPDU: 90 00 [17:06:51]wFMCommunicate OK [17:06:51]wFMCommunicate request_size=4 [17:06:51]MH_SAM_APDU [17:06:51]CAPDU: 80 0D 03 02 [17:06:51]Write to MH i2c: E2 08 00 C5 A4 80 0D 03 02 00 00 00 00 E4 [17:06:51]Write i2c OK [17:06:51]MH_I2C_Read... [17:06:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:06:51]Read from MH i2c: E2 [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: E2 0B 00 [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: E2 0B 00 C5 A4 00 40 13 45 E4 5B 03 75 BB 90 00 EF [17:06:51]RAPDU: 40 13 45 E4 5B 03 75 BB 90 00 [17:06:51]wFMCommunicate OK [17:06:51]SAM_PROTO_SignData done [17:06:51]FM_MakeSignedData done [17:06:51]CreateOFDProtocolMessage [17:06:51]wFMCommunicate request_size=4 [17:06:51]MH_SAM_APDU [17:06:51]CAPDU: 80 11 00 00 [17:06:51]Write to MH i2c: E2 08 00 C6 A4 80 11 00 00 00 00 00 00 E4 [17:06:51]Write i2c OK [17:06:51]MH_I2C_Read... [17:06:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:51]Read from MH i2c: E2 [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: E2 17 00 [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: E2 17 00 C6 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 31 [17:06:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:06:51]wFMCommunicate OK [17:06:51]CreateOFDProtocolMessage done [17:06:51]OFDSenderStorePacket 260805 [17:06:51]StoreOFDPacket docnum=260805 [17:06:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 35 1F 07 01 C9 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 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 2F 2A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C5 FA 03 00 35 04 06 00 C1 E3 BB 25 EB 57 40 13 45 E4 5B 03 75 BB [17:06:51]CheckFolder [17:06:51]dirname=/storage/ofd_packets [17:06:51]CheckFolder done [17:06:51]ProducePacketName [17:06:51]name=ofd_packets/00260805 [17:06:51]NVStorageSaveData ofd_packets/00260805 [17:06:51]File name is /storage/ofd_packets/00260805 [17:06:51]Write 301 bytes [17:06:51]NVStorageSaveData done [17:06:51]OFDSenderStorePacket done [17:06:51]KKMCreateOFDPacket done [17:06:51]NVStorageSaveData kkm_last_timestamp [17:06:51]File name is /storage/kkm_last_timestamp [17:06:51]Write 4 bytes [17:06:51]NVStorageSaveData done [17:06:51]ExternCall_PrintAddStr [17:06:51]wPrintStart [17:06:51]Write to MH i2c: 01 00 00 C7 A4 6B [17:06:51]Write i2c OK [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: 01 [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: 01 07 00 [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: 01 07 00 C7 A4 00 00 00 00 00 FF 0F 80 [17:06:51]RasterBufferAndPrint [17:06:51]line Счет N : (1)1036357 [17:06:51]line ИНН: 02508201610067 [17:06:51]line Контрольно-Кассовый Чек [17:06:51]line ПРОДАЖА [17:06:51]line ТРК (МРК, ГНК) : 12 [17:06:51]line Товар: 2710124130 [17:06:51]line Аи-92-К-5 [17:06:51]line 5.900 * 67.80 [17:06:51]line = 400.02 [17:06:51]line НДС 12% НСП 1% [17:06:51]line > о реализуемом товаре [17:06:51]line ИТОГО: 400.02 [17:06:51]line НСП 1% : 3.54 [17:06:51]line НДС 12% : 42.48 [17:06:51]line Наличными: 0.00 [17:06:51]line Безнал.: 400.02 [17:06:51]line Место: АЗС № 94 "Партнер Нефть" [17:06:51]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [17:06:51]line СНО: Общий режим [17:06:51]line Чек 363 18.08.2024 17:06 [17:06:51]line Смена: 449 ФФД: 1.0 [17:06:51]line ЗНМ: 0300000099 [17:06:51]line РНМ: 0000000000091865 [17:06:51]line Версия ККМ: 001 [17:06:51]line Платежная система: O! деньги [17:06:51]line ФМ: 0000000000871820 [17:06:51]line ФД: 260805 [17:06:51]line ФПД: 213183841561431 [17:06:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T170655&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260805&fm=213183841561431&tin=02508201610067®Number=0000000000091865&sum=40002 [17:06:51]written 0, free lines is 4095 [17:06:51]OFD Sender: Processing packet 260805 [packets to send 192, broken 191] [17:06:51]ProducePacketName [17:06:51]name=ofd_packets/00260805 [17:06:51]OFD Sender: To server: pG, [17:06:51]CommunicateWithHost lk.salyk.kg:30040 [17:06:51]ConnectInit lk.salyk.kg [17:06:51]Connected sock=10 [17:06: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 30 0F 01 00 00 35 1F 07 01 C9 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 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 2F 2A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C5 FA 03 00 35 04 06 00 C1 E3 BB 25 EB 57 40 13 45 E4 5B 03 75 BB [17:06:51]Write to MH i2c: 01 00 00 F1 A4 95 [17:06:51]Write i2c OK [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: 01 [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: 01 07 00 [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: 01 07 00 F1 A4 00 00 00 00 00 88 0C 30 [17:06:51]RasterBufferAndPrint [17:06:51]line [17:06:51]line [17:06:51]line [17:06:51]line [17:06:51]line [17:06:51]written 0, free lines is 3212 [17:06:51]MH_Cut [17:06:51]Write to MH i2c: D1 01 00 F8 A4 01 6E [17:06:51]Write i2c OK [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: D1 [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: D1 01 00 [17:06:51]MH_I2C_Read... [17:06:51]Read from MH i2c: D1 01 00 F8 A4 00 6D [17:06:51]Write to MH i2c: 01 00 00 F9 A4 9D [17:06:51]Write i2c OK [17:06:51]MH_I2C_Read... [17:06: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 30 4F 00 00 00 CB 69 47 00 BD F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C5 FA 03 00 F4 03 04 00 84 D3 C1 66 B6 04 01 00 00 00 DF 26 F2 C5 2B 3D 3D [17:06:52]CommunicateWithHost err = 0 [17:06:52]CheckOFDResponse [17:06:52]1017 (14) - 77093643461234 [17:06:52]1041 (16) - 0000000000871820 [17:06:52]1040 (4) - 260805 [17:06:52]1012 (4) - 18.08.2024 10:57 [17:06:52]1206 (1) - 0 [17:06:52]OFD Sender: Remove packet 260805 [17:06:52]ProducePacketName [17:06:52]name=ofd_packets/00260805 [17:06:52]NVStorageDeleteData [17:06:52]OFD Sender: No OFD packet to send [17:06:53]*** Cut start [17:06:53]*** Purtial cut [17:06:53]*** Stage 1: CUTSNS_PIN = 1 [17:06:55]Read from MH i2c: 01 [17:06:55]MH_I2C_Read... [17:06:55]*** Stop cut motor [17:06:55]*** Cut end [17:06:55]Read from MH i2c: 01 07 00 [17:06:55]MH_I2C_Read... [17:06:55]Read from MH i2c: 01 07 00 F9 A4 00 00 00 00 00 FF 0F B2 [17:06:55]process_action close_receipt done [17:06:55]requested_data is exist [17:06:55]produce_requested_data [17:06:55]requested_item fm.sn is exist - process it [17:06:55]wFMCommunicate request_size=4 [17:06:55]MH_SAM_APDU [17:06:55]CAPDU: 80 11 00 00 [17:06:55]Write to MH i2c: E2 08 00 FA A4 80 11 00 00 00 00 00 00 18 [17:06:55]Write i2c OK [17:06:55]MH_I2C_Read... [17:06:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:55]Read from MH i2c: E2 [17:06:55]MH_I2C_Read... [17:06:55]Read from MH i2c: E2 17 00 [17:06:55]MH_I2C_Read... [17:06:55]Read from MH i2c: E2 17 00 FA A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 65 [17:06:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:06:55]wFMCommunicate OK [17:06:55]requested_item fd.num is exist - process it [17:06:55]SAM_PROTO_GetFieldsCounters [17:06:55]wFMCommunicate request_size=4 [17:06:55]MH_SAM_APDU [17:06:55]CAPDU: 80 13 00 00 [17:06:55]Write to MH i2c: E2 08 00 FB A4 80 13 00 00 00 00 00 00 1B [17:06:55]Write i2c OK [17:06:55]MH_I2C_Read... [17:06:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:55]Read from MH i2c: E2 [17:06:55]MH_I2C_Read... [17:06:55]Read from MH i2c: E2 62 00 [17:06:55]MH_I2C_Read... [17:06:55]Read from MH i2c: E2 62 00 FB A4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C5 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 6B 01 00 00 5E 04 04 00 6B 01 00 00 57 04 04 00 6C 01 00 00 19 04 04 00 00 00 00 00 90 00 02 [17:06: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C5 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 6B 01 00 00 5E 04 04 00 6B 01 00 00 57 04 04 00 6C 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:06:55]wFMCommunicate OK [17:06:55]SAM_PROTO_GetFieldsCounters done [17:06:55]requested_item shift.num is exist - process it [17:06:55]requested_item shift.opened is exist - process it [17:06:55]req_shift_opened [17:06:55]FM_GetShiftState [17:06:55]SAM_PROTO_GetShiftState [17:06:55]wFMCommunicate request_size=4 [17:06:55]MH_SAM_APDU [17:06:55]CAPDU: 80 13 01 00 [17:06:55]Write to MH i2c: E2 08 00 FC A4 80 13 01 00 00 00 00 00 1D [17:06:55]Write i2c OK [17:06:55]MH_I2C_Read... [17:06:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:55]Read from MH i2c: E2 [17:06:55]MH_I2C_Read... [17:06:55]Read from MH i2c: E2 0E 00 [17:06:55]MH_I2C_Read... [17:06:55]Read from MH i2c: E2 0E 00 FC A4 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 5A [17:06:55]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:06:55]wFMCommunicate OK [17:06:55]SAM_PROTO_GetShiftState done [17:06:55]FM_GetShiftState done [17:06:55]req_shift_opened done [17:06:55]requested_item shift.open_date is exist - process it [17:06:55]req_shift_open_date [17:06:55]req_shift_open_date done [17:06:55]produce_requested_data done [17:06:55]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260805,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [17:06:55]process_action_free close_receipt [17:06:55]json_value_free [17:06:55]json_value_free done [17:06:55]process_json_proto returns [17:06:55]Send response to host [17:06:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260805,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [17:06:55]free response buf [17:06:55]execute_script done [17:06:55]execute_script returns [17:06:55]free content buf [17:06:55]Sock 7.Close socket [17:06:55]Sock 7.Thread stoped [17:06:57]OFD Sender: No OFD packet to send [17:07:02]OFD Sender: No OFD packet to send [17:07:07]OFD Sender: No OFD packet to send [17:07:12]OFD Sender: No OFD packet to send [17:07:17]OFD Sender: No OFD packet to send [17:07:22]OFD Sender: No OFD packet to send [17:07:27]OFD Sender: No OFD packet to send [17:07:32]OFD Sender: No OFD packet to send [17:07:37]OFD Sender: No OFD packet to send [17:07:42]OFD Sender: No OFD packet to send [17:07:47]OFD Sender: No OFD packet to send [17:07:52]OFD Sender: No OFD packet to send [17:07:57]OFD Sender: No OFD packet to send [17:08:02]OFD Sender: No OFD packet to send [17:08:07]OFD Sender: No OFD packet to send [17:08:12]OFD Sender: No OFD packet to send [17:08:13]accept exits with 9 [17:08:13]New connection [17:08:13]New thread 3066473828 created [17:08:13]Thread 3066617188 joined [17:08:13]Waiting for new connection... [17:08:13] Sock 9.Parse request [17:08:13]Sock 9.Check first char [17:08:13]Sock 9.First char is OK [17:08:13]request: POST /json_proto HTTP/1.0 [17:08:13]Method: POST [17:08:13]URL: /json_proto [17:08:13]Method is POST - this is cgi request [17:08:13]url: /json_proto [17:08:13]query_string will be loaded in cgi processing [17:08:13]execute_cgi json_proto POST (null) [17:08:13]execute_cgi path=json_proto method=POST [17:08:13]POST find Content-Length [17:08:13]Host: 172.17.55.133:8080 [17:08:13]Content-Length: 683 [17:08:13]Content-Type: application/json [17:08:13] [17:08:13]POST finish read [17:08:13]Found Content-Length = 683 [17:08:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "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" ] } } [17:08:13]execute_script... [17:08:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "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" ] } } [17:08:13]POST & json_proto [17:08:13]process_json_proto [17:08:13]json parsed OK: [17:08:13]protocol is kg_v1.0 [17:08:13]action value=close_receipt [17:08:13]process_action close_receipt [17:08:13]cmd_close_receipt [17:08:13]MH_GetDate [17:08:13]Write to MH i2c: F0 00 00 FD A4 90 [17:08:13]Write i2c OK [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: F0 [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: F0 09 00 [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: F0 09 00 FD A4 00 83 2A C2 66 34 48 D8 65 27 [17:08:13]GetLastDocTimeStamp 1724000815 [17:08:13]current date 1724000899 [17:08:13]FM_GetShiftState [17:08:13]SAM_PROTO_GetShiftState [17:08:13]wFMCommunicate request_size=4 [17:08:13]MH_SAM_APDU [17:08:13]CAPDU: 80 13 01 00 [17:08:13]Write to MH i2c: E2 08 00 FE A4 80 13 01 00 00 00 00 00 1F [17:08:13]Write i2c OK [17:08:13]MH_I2C_Read... [17:08:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:13]Read from MH i2c: E2 [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: E2 0E 00 [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: E2 0E 00 FE A4 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 5C [17:08:13]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:08:13]wFMCommunicate OK [17:08:13]SAM_PROTO_GetShiftState done [17:08:13]FM_GetShiftState done [17:08:13]opened in 1723940556 [17:08:13]opened+sec_in_day 1724026956 [17:08:13]quantity*price = 200010 [17:08:13]sum+1 = 200011 [17:08:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 364 18.08.2024 17:08 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260806 ФПД: 196741143854209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T170819&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260806&fm=196741143854209&tin=02508201610067®Number=0000000000091865&sum=200000 [17:08:14]StoreToDocumentArchive [17:08:14]shift 449 fd 260806 [17:08:14]save to /storage/0449/doc_00260806 [17:08:14]save last doc name /storage/0449/doc_00260806 to /storage/kkm_last_doc_name [17:08:14]save OK [17:08:14]Clear old archive folders... [17:08:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:08:14]tlvbuf is 0057B680 [17:08:14]SAM_PROTO_ClearQueue [17:08:14]wFMCommunicate request_size=4 [17:08:14]MH_SAM_APDU [17:08:14]CAPDU: 80 09 00 00 [17:08:14]Write to MH i2c: E2 08 00 0B A5 80 09 00 00 00 00 00 00 22 [17:08:14]Write i2c OK [17:08:14]MH_I2C_Read... [17:08:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:08:14]Read from MH i2c: E2 [17:08:14]MH_I2C_Read... [17:08:14]Read from MH i2c: E2 03 00 [17:08:14]MH_I2C_Read... [17:08:14]Read from MH i2c: E2 03 00 0B A5 00 90 00 24 [17:08:14]RAPDU: 90 00 [17:08:14]wFMCommunicate OK [17:08:14]SAM_PROTO_ClearQueue done [17:08:14]KKMCreateOFDPacket [17:08:14]OFDProtocolAddRootSTLVToBuf [17:08:14]FM_MakeSignedData [17:08:14]FM_MakeSignedData [17:08:14]SAM_PROTO_SignData [17:08:14]wFMCommunicate request_size=4 [17:08:14]MH_SAM_APDU [17:08:14]CAPDU: 80 0D 01 02 [17:08:14]Write to MH i2c: E2 08 00 0C A5 80 0D 01 02 00 00 00 00 2A [17:08:14]Write i2c OK [17:08:14]MH_I2C_Read... [17:08:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:08:14]Read from MH i2c: E2 [17:08:14]MH_I2C_Read... [17:08:14]Read from MH i2c: E2 03 00 [17:08:14]MH_I2C_Read... [17:08:14]Read from MH i2c: E2 03 00 0C A5 00 90 00 25 [17:08:14]RAPDU: 90 00 [17:08:14]wFMCommunicate OK [17:08:14]wFMCommunicate request_size=255 [17:08:14]MH_SAM_APDU [17:08:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 6C 01 00 00 F4 03 04 00 83 2A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C6 FA 03 00 35 04 06 00 B2 [17:08:14]Write to MH i2c: E2 02 01 0D A5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 6C 01 00 00 F4 03 04 00 83 2A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C6 FA 03 00 35 04 06 00 B2 00 00 24 [17:08:14]Write i2c OK [17:08:14]MH_I2C_Read... [17:08:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:15]Read from MH i2c: E2 [17:08:15]MH_I2C_Read... [17:08:15]Read from MH i2c: E2 03 00 [17:08:15]MH_I2C_Read... [17:08:15]Read from MH i2c: E2 03 00 0D A5 00 90 00 26 [17:08:15]RAPDU: 90 00 [17:08:15]wFMCommunicate OK [17:08:15]wFMCommunicate request_size=10 [17:08:15]MH_SAM_APDU [17:08:15]CAPDU: 80 0D 02 02 05 EF 5D FD FC 81 [17:08:15]Write to MH i2c: E2 0D 00 0E A5 80 0D 02 02 05 00 EF 5D FD FC 81 00 00 FD [17:08:15]Write i2c OK [17:08:15]MH_I2C_Read... [17:08:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:15]Read from MH i2c: E2 [17:08:15]MH_I2C_Read... [17:08:15]Read from MH i2c: E2 03 00 [17:08:15]MH_I2C_Read... [17:08:15]Read from MH i2c: E2 03 00 0E A5 00 90 00 27 [17:08:15]RAPDU: 90 00 [17:08:15]wFMCommunicate OK [17:08:15]wFMCommunicate request_size=4 [17:08:15]MH_SAM_APDU [17:08:15]CAPDU: 80 0D 03 02 [17:08:15]Write to MH i2c: E2 08 00 0F A5 80 0D 03 02 00 00 00 00 2F [17:08:15]Write i2c OK [17:08:15]MH_I2C_Read... [17:08:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:08:15]Read from MH i2c: E2 [17:08:15]MH_I2C_Read... [17:08:15]Read from MH i2c: E2 0B 00 [17:08:15]MH_I2C_Read... [17:08:15]Read from MH i2c: E2 0B 00 0F A5 00 E1 54 12 3C F1 75 15 B2 90 00 E0 [17:08:15]RAPDU: E1 54 12 3C F1 75 15 B2 90 00 [17:08:15]wFMCommunicate OK [17:08:15]SAM_PROTO_SignData done [17:08:15]FM_MakeSignedData done [17:08:15]CreateOFDProtocolMessage [17:08:15]wFMCommunicate request_size=4 [17:08:15]MH_SAM_APDU [17:08:15]CAPDU: 80 11 00 00 [17:08:15]Write to MH i2c: E2 08 00 10 A5 80 11 00 00 00 00 00 00 2F [17:08:15]Write i2c OK [17:08:15]MH_I2C_Read... [17:08:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:15]Read from MH i2c: E2 [17:08:15]MH_I2C_Read... [17:08:15]Read from MH i2c: E2 17 00 [17:08:15]MH_I2C_Read... [17:08:15]Read from MH i2c: E2 17 00 10 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 7C [17:08:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:08:15]wFMCommunicate OK [17:08:15]CreateOFDProtocolMessage done [17:08:15]OFDSenderStorePacket 260806 [17:08:15]StoreOFDPacket docnum=260806 [17:08:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 1D 76 07 01 C4 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 6C 01 00 00 F4 03 04 00 83 2A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C6 FA 03 00 35 04 06 00 B2 EF 5D FD FC 81 E1 54 12 3C F1 75 15 B2 [17:08:15]CheckFolder [17:08:15]dirname=/storage/ofd_packets [17:08:15]CheckFolder done [17:08:15]ProducePacketName [17:08:15]name=ofd_packets/00260806 [17:08:15]NVStorageSaveData ofd_packets/00260806 [17:08:15]File name is /storage/ofd_packets/00260806 [17:08:15]Write 301 bytes [17:08:15]NVStorageSaveData done [17:08:15]OFDSenderStorePacket done [17:08:15]KKMCreateOFDPacket done [17:08:15]NVStorageSaveData kkm_last_timestamp [17:08:15]File name is /storage/kkm_last_timestamp [17:08:15]Write 4 bytes [17:08:15]NVStorageSaveData done [17:08:15]ExternCall_PrintAddStr [17:08:15]wPrintStart [17:08:15]Write to MH i2c: 01 00 00 11 A5 B6 [17:08:15]Write i2c OK [17:08:15]MH_I2C_Read... [17:08:15]Read from MH i2c: 01 [17:08:15]MH_I2C_Read... [17:08:15]Read from MH i2c: 01 07 00 [17:08:15]MH_I2C_Read... [17:08:15]Read from MH i2c: 01 07 00 11 A5 00 00 00 00 00 FF 0F CB [17:08:15]RasterBufferAndPrint [17:08:15]line Счет N : (1)1036358 [17:08:15]line ИНН: 02508201610067 [17:08:15]line Контрольно-Кассовый Чек [17:08:15]line ПРОДАЖА [17:08:15]line ТРК (МРК, ГНК) : 22 [17:08:15]line Товар: 2710124130 [17:08:15]line Аи-92-К-5 [17:08:15]line 29.500 * 67.80 [17:08:15]line = 2000.10 [17:08:15]line НДС 12% НСП 1% [17:08:15]line > о реализуемом товаре [17:08:15]line ОКРУГЛЕНИЕ: -0.10 [17:08:15]line ИТОГО: 2000.00 [17:08:15]line Внесено: 2000.00 [17:08:15]line СДАЧА: 0.00 [17:08:15]line НСП 1% : 17.70 [17:08:15]line НДС 12% : 212.40 [17:08:15]line Наличными: 2000.00 [17:08:15]line Безнал.: 0.00 [17:08:15]line Место: АЗС № 94 "Партнер Нефть" [17:08:15]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [17:08:15]line СНО: Общий режим [17:08:15]line Чек 364 18.08.2024 17:08 [17:08:15]line Смена: 449 ФФД: 1.0 [17:08:15]line ЗНМ: 0300000099 [17:08:15]line РНМ: 0000000000091865 [17:08:15]line Версия ККМ: 001 [17:08:15]line ФМ: 0000000000871820 [17:08:15]line ФД: 260806 [17:08:15]line ФПД: 196741143854209 [17:08:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T170819&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260806&fm=196741143854209&tin=02508201610067®Number=0000000000091865&sum=200000 [17:08:15]written 0, free lines is 4095 [17:08:15]OFD Sender: Processing packet 260806 [packets to send 192, broken 191] [17:08:15]ProducePacketName [17:08:15]name=ofd_packets/00260806 [17:08:15]OFD Sender: To server: pG, [17:08:15]CommunicateWithHost lk.salyk.kg:30040 [17:08:15]ConnectInit lk.salyk.kg [17:08:15]Connected sock=10 [17:08: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 30 0F 01 00 00 1D 76 07 01 C4 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 6C 01 00 00 F4 03 04 00 83 2A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C6 FA 03 00 35 04 06 00 B2 EF 5D FD FC 81 E1 54 12 3C F1 75 15 B2 [17:08: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 30 4F 00 00 00 C8 35 47 00 95 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 30 10 04 04 00 C6 FA 03 00 F4 03 04 00 D7 D3 C1 66 B6 04 01 00 00 93 2E 9F 96 18 85 0E 93 [17:08:15]CommunicateWithHost err = 0 [17:08:15]CheckOFDResponse [17:08:15]1017 (14) - 77093643461234 [17:08:15]1041 (16) - 0000000000871820 [17:08:15]1040 (4) - 260806 [17:08:15]1012 (4) - 18.08.2024 10:58 [17:08:15]1206 (1) - 0 [17:08:15]OFD Sender: Remove packet 260806 [17:08:15]ProducePacketName [17:08:15]name=ofd_packets/00260806 [17:08:15]NVStorageDeleteData [17:08:15]Write to MH i2c: 01 00 00 3C A5 E1 [17:08:15]Write i2c OK [17:08:15]MH_I2C_Read... [17:08:15]Read from MH i2c: 01 [17:08:15]MH_I2C_Read... [17:08:15]Read from MH i2c: 01 07 00 [17:08:15]MH_I2C_Read... [17:08:15]Read from MH i2c: 01 07 00 3C A5 00 00 00 00 00 65 0C 59 [17:08:15]RasterBufferAndPrint [17:08:15]line [17:08:15]line [17:08:15]line [17:08:15]line [17:08:15]line [17:08:15]written 0, free lines is 3177 [17:08:15]MH_Cut [17:08:15]Write to MH i2c: D1 01 00 43 A5 01 BA [17:08:15]Write i2c OK [17:08:15]MH_I2C_Read... [17:08:15]Read from MH i2c: D1 [17:08:15]MH_I2C_Read... [17:08:15]Read from MH i2c: D1 01 00 [17:08:15]MH_I2C_Read... [17:08:15]Read from MH i2c: D1 01 00 43 A5 00 B9 [17:08:15]Write to MH i2c: 01 00 00 44 A5 E9 [17:08:15]Write i2c OK [17:08:15]MH_I2C_Read... [17:08:16]OFD Sender: No OFD packet to send [17:08:16]*** Cut start [17:08:16]*** Purtial cut [17:08:16]*** Stage 1: CUTSNS_PIN = 1 [17:08:18]Read from MH i2c: 01 [17:08:18]MH_I2C_Read... [17:08:18]*** Stop cut motor [17:08:18]*** Cut end [17:08:18]Read from MH i2c: 01 07 00 [17:08:18]MH_I2C_Read... [17:08:18]Read from MH i2c: 01 07 00 44 A5 00 00 00 00 00 FF 0F FE [17:08:18]process_action close_receipt done [17:08:18]requested_data is exist [17:08:18]produce_requested_data [17:08:18]requested_item fm.sn is exist - process it [17:08:18]wFMCommunicate request_size=4 [17:08:18]MH_SAM_APDU [17:08:18]CAPDU: 80 11 00 00 [17:08:18]Write to MH i2c: E2 08 00 45 A5 80 11 00 00 00 00 00 00 64 [17:08:18]Write i2c OK [17:08:18]MH_I2C_Read... [17:08:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:19]Read from MH i2c: E2 [17:08:19]MH_I2C_Read... [17:08:19]Read from MH i2c: E2 17 00 [17:08:19]MH_I2C_Read... [17:08:19]Read from MH i2c: E2 17 00 45 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B1 [17:08:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:08:19]wFMCommunicate OK [17:08:19]requested_item fd.num is exist - process it [17:08:19]SAM_PROTO_GetFieldsCounters [17:08:19]wFMCommunicate request_size=4 [17:08:19]MH_SAM_APDU [17:08:19]CAPDU: 80 13 00 00 [17:08:19]Write to MH i2c: E2 08 00 46 A5 80 13 00 00 00 00 00 00 67 [17:08:19]Write i2c OK [17:08:19]MH_I2C_Read... [17:08:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:08:19]Read from MH i2c: E2 [17:08:19]MH_I2C_Read... [17:08:19]Read from MH i2c: E2 62 00 [17:08:19]MH_I2C_Read... [17:08:19]Read from MH i2c: E2 62 00 46 A5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C6 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 52 [17:08: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C6 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:08:19]wFMCommunicate OK [17:08:19]SAM_PROTO_GetFieldsCounters done [17:08:19]requested_item shift.num is exist - process it [17:08:19]requested_item shift.opened is exist - process it [17:08:19]req_shift_opened [17:08:19]FM_GetShiftState [17:08:19]SAM_PROTO_GetShiftState [17:08:19]wFMCommunicate request_size=4 [17:08:19]MH_SAM_APDU [17:08:19]CAPDU: 80 13 01 00 [17:08:19]Write to MH i2c: E2 08 00 47 A5 80 13 01 00 00 00 00 00 69 [17:08:19]Write i2c OK [17:08:19]MH_I2C_Read... [17:08:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:19]Read from MH i2c: E2 [17:08:19]MH_I2C_Read... [17:08:19]Read from MH i2c: E2 0E 00 [17:08:19]MH_I2C_Read... [17:08:19]Read from MH i2c: E2 0E 00 47 A5 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A6 [17:08:19]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:08:19]wFMCommunicate OK [17:08:19]SAM_PROTO_GetShiftState done [17:08:19]FM_GetShiftState done [17:08:19]req_shift_opened done [17:08:19]requested_item shift.open_date is exist - process it [17:08:19]req_shift_open_date [17:08:19]req_shift_open_date done [17:08:19]produce_requested_data done [17:08:19]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260806,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [17:08:19]process_action_free close_receipt [17:08:19]json_value_free [17:08:19]json_value_free done [17:08:19]process_json_proto returns [17:08:19]Send response to host [17:08:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260806,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [17:08:19]free response buf [17:08:19]execute_script done [17:08:19]execute_script returns [17:08:19]free content buf [17:08:19]Sock 9.Close socket [17:08:19]Sock 9.Thread stoped [17:08:21]OFD Sender: No OFD packet to send [17:08:26]OFD Sender: No OFD packet to send [17:08:31]OFD Sender: No OFD packet to send [17:08:36]OFD Sender: No OFD packet to send [17:08:41]OFD Sender: No OFD packet to send [17:08:46]OFD Sender: No OFD packet to send [17:08:51]OFD Sender: No OFD packet to send [17:08:56]OFD Sender: No OFD packet to send [17:09:01]OFD Sender: No OFD packet to send [17:09:06]OFD Sender: No OFD packet to send [17:09:11]OFD Sender: No OFD packet to send [17:09:16]OFD Sender: No OFD packet to send [17:09:21]OFD Sender: No OFD packet to send [17:09:26]OFD Sender: No OFD packet to send [17:09:31]OFD Sender: No OFD packet to send [17:09:36]OFD Sender: No OFD packet to send [17:09:37]accept exits with 7 [17:09:37]New connection [17:09:37]New thread 3066617188 created [17:09:37]Thread 3066473828 joined [17:09:37]Waiting for new connection... [17:09:37] Sock 7.Parse request [17:09:37]Sock 7.Check first char [17:09:37]Sock 7.First char is OK [17:09:37]request: POST /json_proto HTTP/1.0 [17:09:37]Method: POST [17:09:37]URL: /json_proto [17:09:37]Method is POST - this is cgi request [17:09:37]url: /json_proto [17:09:37]query_string will be loaded in cgi processing [17:09:37]execute_cgi json_proto POST (null) [17:09:37]execute_cgi path=json_proto method=POST [17:09:37]POST find Content-Length [17:09:37]Host: 172.17.55.133:8080 [17:09:37]Content-Length: 683 [17:09:37]Content-Type: application/json [17:09:37] [17:09:37]POST finish read [17:09:37]Found Content-Length = 683 [17:09:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:37]execute_script... [17:09: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)1036360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:37]POST & json_proto [17:09:37]process_json_proto [17:09:37]json parsed OK: [17:09:37]protocol is kg_v1.0 [17:09:37]action value=close_receipt [17:09:37]process_action close_receipt [17:09:37]cmd_close_receipt [17:09:37]MH_GetDate [17:09:37]Write to MH i2c: F0 00 00 48 A5 DC [17:09:37]Write i2c OK [17:09:37]MH_I2C_Read... [17:09:37]Read from MH i2c: F0 [17:09:37]MH_I2C_Read... [17:09:37]Read from MH i2c: F0 09 00 [17:09:37]MH_I2C_Read... [17:09:37]Read from MH i2c: F0 09 00 48 A5 00 D7 2A C2 66 34 48 D8 65 C7 [17:09:37]GetLastDocTimeStamp 1724000899 [17:09:37]current date 1724000983 [17:09:37]FM_GetShiftState [17:09:37]SAM_PROTO_GetShiftState [17:09:37]wFMCommunicate request_size=4 [17:09:37]MH_SAM_APDU [17:09:37]CAPDU: 80 13 01 00 [17:09:37]Write to MH i2c: E2 08 00 49 A5 80 13 01 00 00 00 00 00 6B [17:09:37]Write i2c OK [17:09:37]MH_I2C_Read... [17:09:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:37]Read from MH i2c: E2 [17:09:37]MH_I2C_Read... [17:09:37]Read from MH i2c: E2 0E 00 [17:09:37]MH_I2C_Read... [17:09:37]Read from MH i2c: E2 0E 00 49 A5 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A8 [17:09:37]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:09:37]wFMCommunicate OK [17:09:37]SAM_PROTO_GetShiftState done [17:09:37]FM_GetShiftState done [17:09:37]opened in 1723940556 [17:09:37]opened+sec_in_day 1724026956 [17:09:37]quantity*price = 100005 [17:09:37]sum+1 = 100006 [17:09:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 365 18.08.2024 17:09 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260807 ФПД: 172756726304168 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T170943&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260807&fm=172756726304168&tin=02508201610067®Number=0000000000091865&sum=100000 [17:09:38]StoreToDocumentArchive [17:09:38]shift 449 fd 260807 [17:09:38]save to /storage/0449/doc_00260807 [17:09:38]save last doc name /storage/0449/doc_00260807 to /storage/kkm_last_doc_name [17:09:38]save OK [17:09:38]Clear old archive folders... [17:09:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:09:38]tlvbuf is 006B9560 [17:09:38]SAM_PROTO_ClearQueue [17:09:38]wFMCommunicate request_size=4 [17:09:38]MH_SAM_APDU [17:09:38]CAPDU: 80 09 00 00 [17:09:38]Write to MH i2c: E2 08 00 56 A5 80 09 00 00 00 00 00 00 6D [17:09:38]Write i2c OK [17:09:38]MH_I2C_Read... [17:09:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:38]Read from MH i2c: E2 [17:09:38]MH_I2C_Read... [17:09:38]Read from MH i2c: E2 03 00 [17:09:38]MH_I2C_Read... [17:09:38]Read from MH i2c: E2 03 00 56 A5 00 90 00 6F [17:09:38]RAPDU: 90 00 [17:09:38]wFMCommunicate OK [17:09:38]SAM_PROTO_ClearQueue done [17:09:38]KKMCreateOFDPacket [17:09:38]OFDProtocolAddRootSTLVToBuf [17:09:38]FM_MakeSignedData [17:09:38]FM_MakeSignedData [17:09:38]SAM_PROTO_SignData [17:09:38]wFMCommunicate request_size=4 [17:09:38]MH_SAM_APDU [17:09:38]CAPDU: 80 0D 01 02 [17:09:38]Write to MH i2c: E2 08 00 57 A5 80 0D 01 02 00 00 00 00 75 [17:09:38]Write i2c OK [17:09:38]MH_I2C_Read... [17:09:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:38]Read from MH i2c: E2 [17:09:38]MH_I2C_Read... [17:09:38]Read from MH i2c: E2 03 00 [17:09:38]MH_I2C_Read... [17:09:38]Read from MH i2c: E2 03 00 57 A5 00 90 00 70 [17:09:38]RAPDU: 90 00 [17:09:38]wFMCommunicate OK [17:09:38]wFMCommunicate request_size=255 [17:09:38]MH_SAM_APDU [17:09:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 D7 2A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C7 FA 03 00 35 04 06 00 9D [17:09:38]Write to MH i2c: E2 02 01 58 A5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 D7 2A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C7 FA 03 00 35 04 06 00 9D 00 00 3B [17:09:38]Write i2c OK [17:09:38]MH_I2C_Read... [17:09:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:38]Read from MH i2c: E2 [17:09:38]MH_I2C_Read... [17:09:38]Read from MH i2c: E2 03 00 [17:09:38]MH_I2C_Read... [17:09:38]Read from MH i2c: E2 03 00 58 A5 00 90 00 71 [17:09:38]RAPDU: 90 00 [17:09:38]wFMCommunicate OK [17:09:38]wFMCommunicate request_size=10 [17:09:38]MH_SAM_APDU [17:09:38]CAPDU: 80 0D 02 02 05 1F 0F 4D CD A8 [17:09:38]Write to MH i2c: E2 0D 00 59 A5 80 0D 02 02 05 00 1F 0F 4D CD A8 00 00 72 [17:09:38]Write i2c OK [17:09:38]MH_I2C_Read... [17:09:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:38]Read from MH i2c: E2 [17:09:38]MH_I2C_Read... [17:09:38]Read from MH i2c: E2 03 00 [17:09:38]MH_I2C_Read... [17:09:38]Read from MH i2c: E2 03 00 59 A5 00 90 00 72 [17:09:38]RAPDU: 90 00 [17:09:38]wFMCommunicate OK [17:09:38]wFMCommunicate request_size=4 [17:09:38]MH_SAM_APDU [17:09:38]CAPDU: 80 0D 03 02 [17:09:38]Write to MH i2c: E2 08 00 5A A5 80 0D 03 02 00 00 00 00 7A [17:09:38]Write i2c OK [17:09:38]MH_I2C_Read... [17:09:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:38]Read from MH i2c: E2 [17:09:38]MH_I2C_Read... [17:09:38]Read from MH i2c: E2 0B 00 [17:09:38]MH_I2C_Read... [17:09:38]Read from MH i2c: E2 0B 00 5A A5 00 F1 23 0A 09 58 42 F9 54 90 00 89 [17:09:38]RAPDU: F1 23 0A 09 58 42 F9 54 90 00 [17:09:38]wFMCommunicate OK [17:09:38]SAM_PROTO_SignData done [17:09:38]FM_MakeSignedData done [17:09:38]CreateOFDProtocolMessage [17:09:38]wFMCommunicate request_size=4 [17:09:38]MH_SAM_APDU [17:09:38]CAPDU: 80 11 00 00 [17:09:38]Write to MH i2c: E2 08 00 5B A5 80 11 00 00 00 00 00 00 7A [17:09:38]Write i2c OK [17:09:38]MH_I2C_Read... [17:09:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:38]Read from MH i2c: E2 [17:09:38]MH_I2C_Read... [17:09:38]Read from MH i2c: E2 17 00 [17:09:38]MH_I2C_Read... [17:09:38]Read from MH i2c: E2 17 00 5B A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C7 [17:09:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:09:38]wFMCommunicate OK [17:09:39]CreateOFDProtocolMessage done [17:09:39]OFDSenderStorePacket 260807 [17:09:39]StoreOFDPacket docnum=260807 [17:09:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 63 C2 07 01 E6 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 D7 2A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C7 FA 03 00 35 04 06 00 9D 1F 0F 4D CD A8 F1 23 0A 09 58 42 F9 54 [17:09:39]CheckFolder [17:09:39]dirname=/storage/ofd_packets [17:09:39]CheckFolder done [17:09:39]ProducePacketName [17:09:39]name=ofd_packets/00260807 [17:09:39]NVStorageSaveData ofd_packets/00260807 [17:09:39]File name is /storage/ofd_packets/00260807 [17:09:39]Write 301 bytes [17:09:39]NVStorageSaveData done [17:09:39]OFDSenderStorePacket done [17:09:39]KKMCreateOFDPacket done [17:09:39]NVStorageSaveData kkm_last_timestamp [17:09:39]File name is /storage/kkm_last_timestamp [17:09:39]Write 4 bytes [17:09:39]NVStorageSaveData done [17:09:39]ExternCall_PrintAddStr [17:09:39]wPrintStart [17:09:39]Write to MH i2c: 01 00 00 5C A5 01 [17:09:39]Write i2c OK [17:09:39]MH_I2C_Read... [17:09:39]Read from MH i2c: 01 [17:09:39]MH_I2C_Read... [17:09:39]Read from MH i2c: 01 07 00 [17:09:39]MH_I2C_Read... [17:09:39]Read from MH i2c: 01 07 00 5C A5 00 00 00 00 00 FF 0F 16 [17:09:39]RasterBufferAndPrint [17:09:39]line Счет N : (1)1036360 [17:09:39]line ИНН: 02508201610067 [17:09:39]line Контрольно-Кассовый Чек [17:09:39]line ПРОДАЖА [17:09:39]line ТРК (МРК, ГНК) : 22 [17:09:39]line Товар: 2710124130 [17:09:39]line Аи-92-К-5 [17:09:39]line 14.750 * 67.80 [17:09:39]line = 1000.05 [17:09:39]line НДС 12% НСП 1% [17:09:39]line > о реализуемом товаре [17:09:39]line ОКРУГЛЕНИЕ: -0.05 [17:09:39]line ИТОГО: 1000.00 [17:09:39]line Внесено: 1000.00 [17:09:39]line СДАЧА: 0.00 [17:09:39]line НСП 1% : 8.85 [17:09:39]line НДС 12% : 106.20 [17:09:39]line Наличными: 1000.00 [17:09:39]line Безнал.: 0.00 [17:09:39]line Место: АЗС № 94 "Партнер Нефть" [17:09:39]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [17:09:39]line СНО: Общий режим [17:09:39]line Чек 365 18.08.2024 17:09 [17:09:39]line Смена: 449 ФФД: 1.0 [17:09:39]line ЗНМ: 0300000099 [17:09:39]line РНМ: 0000000000091865 [17:09:39]line Версия ККМ: 001 [17:09:39]line ФМ: 0000000000871820 [17:09:39]line ФД: 260807 [17:09:39]line ФПД: 172756726304168 [17:09:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T170943&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260807&fm=172756726304168&tin=02508201610067®Number=0000000000091865&sum=100000 [17:09:39]written 0, free lines is 4095 [17:09:39]OFD Sender: Processing packet 260807 [packets to send 192, broken 191] [17:09:39]ProducePacketName [17:09:39]name=ofd_packets/00260807 [17:09:39]OFD Sender: To server: pG, [17:09:39]CommunicateWithHost lk.salyk.kg:30040 [17:09:39]ConnectInit lk.salyk.kg [17:09:39]Connected sock=9 [17:09: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 30 0F 01 00 00 63 C2 07 01 E6 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 D7 2A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C7 FA 03 00 35 04 06 00 9D 1F 0F 4D CD A8 F1 23 0A 09 58 42 F9 54 [17:09:39]Write to MH i2c: 01 00 00 87 A5 2C [17:09:39]Write i2c OK [17:09:39]MH_I2C_Read... [17:09:39]Read from MH i2c: 01 [17:09:39]MH_I2C_Read... [17:09:39]Read from MH i2c: 01 07 00 [17:09:39]MH_I2C_Read... [17:09:39]Read from MH i2c: 01 07 00 87 A5 00 00 00 00 00 6B 0C AA [17:09:39]RasterBufferAndPrint [17:09:39]line [17:09:39]line [17:09:39]line [17:09:39]line [17:09:39]line [17:09:39]written 0, free lines is 3182 [17:09:39]MH_Cut [17:09:39]Write to MH i2c: D1 01 00 8E A5 01 05 [17:09:39]Write i2c OK [17:09:39]MH_I2C_Read... [17:09:39]Read from MH i2c: D1 [17:09:39]MH_I2C_Read... [17:09:39]Read from MH i2c: D1 01 00 [17:09:39]MH_I2C_Read... [17:09:39]Read from MH i2c: D1 01 00 8E A5 00 04 [17:09:39]Write to MH i2c: 01 00 00 8F A5 34 [17:09:39]Write i2c OK [17:09:39]MH_I2C_Read... [17:09: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 30 4F 00 00 00 9A 2F 47 00 03 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C7 FA 03 00 F4 03 04 00 2B D4 C1 66 B6 04 01 00 00 CD 1B 60 C1 73 99 39 5E [17:09:39]CommunicateWithHost err = 0 [17:09:39]CheckOFDResponse [17:09:39]1017 (14) - 77093643461234 [17:09:39]1041 (16) - 0000000000871820 [17:09:39]1040 (4) - 260807 [17:09:39]1012 (4) - 18.08.2024 10:59 [17:09:39]1206 (1) - 0 [17:09:39]OFD Sender: Remove packet 260807 [17:09:39]ProducePacketName [17:09:39]name=ofd_packets/00260807 [17:09:39]NVStorageDeleteData [17:09:40]OFD Sender: No OFD packet to send [17:09:40]*** Cut start [17:09:40]*** Purtial cut [17:09:40]*** Stage 1: CUTSNS_PIN = 1 [17:09:42]Read from MH i2c: 01 [17:09:42]MH_I2C_Read... [17:09:42]*** Stop cut motor [17:09:42]*** Cut end [17:09:42]Read from MH i2c: 01 07 00 [17:09:42]MH_I2C_Read... [17:09:42]Read from MH i2c: 01 07 00 8F A5 00 00 00 00 00 FF 0F 49 [17:09:42]process_action close_receipt done [17:09:42]requested_data is exist [17:09:42]produce_requested_data [17:09:42]requested_item fm.sn is exist - process it [17:09:42]wFMCommunicate request_size=4 [17:09:42]MH_SAM_APDU [17:09:42]CAPDU: 80 11 00 00 [17:09:42]Write to MH i2c: E2 08 00 90 A5 80 11 00 00 00 00 00 00 AF [17:09:42]Write i2c OK [17:09:42]MH_I2C_Read... [17:09:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:42]Read from MH i2c: E2 [17:09:42]MH_I2C_Read... [17:09:42]Read from MH i2c: E2 17 00 [17:09:42]MH_I2C_Read... [17:09:42]Read from MH i2c: E2 17 00 90 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 FC [17:09:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:09:42]wFMCommunicate OK [17:09:42]requested_item fd.num is exist - process it [17:09:42]SAM_PROTO_GetFieldsCounters [17:09:42]wFMCommunicate request_size=4 [17:09:42]MH_SAM_APDU [17:09:42]CAPDU: 80 13 00 00 [17:09:42]Write to MH i2c: E2 08 00 91 A5 80 13 00 00 00 00 00 00 B2 [17:09:42]Write i2c OK [17:09:42]MH_I2C_Read... [17:09:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:42]Read from MH i2c: E2 [17:09:42]MH_I2C_Read... [17:09:42]Read from MH i2c: E2 62 00 [17:09:42]MH_I2C_Read... [17:09:42]Read from MH i2c: E2 62 00 91 A5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C7 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 6D 01 00 00 5E 04 04 00 6D 01 00 00 57 04 04 00 6E 01 00 00 19 04 04 00 00 00 00 00 90 00 A1 [17:09: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C7 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 6D 01 00 00 5E 04 04 00 6D 01 00 00 57 04 04 00 6E 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:09:42]wFMCommunicate OK [17:09:42]SAM_PROTO_GetFieldsCounters done [17:09:42]requested_item shift.num is exist - process it [17:09:42]requested_item shift.opened is exist - process it [17:09:42]req_shift_opened [17:09:42]FM_GetShiftState [17:09:42]SAM_PROTO_GetShiftState [17:09:42]wFMCommunicate request_size=4 [17:09:42]MH_SAM_APDU [17:09:42]CAPDU: 80 13 01 00 [17:09:42]Write to MH i2c: E2 08 00 92 A5 80 13 01 00 00 00 00 00 B4 [17:09:42]Write i2c OK [17:09:42]MH_I2C_Read... [17:09:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:42]Read from MH i2c: E2 [17:09:42]MH_I2C_Read... [17:09:42]Read from MH i2c: E2 0E 00 [17:09:42]MH_I2C_Read... [17:09:42]Read from MH i2c: E2 0E 00 92 A5 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F1 [17:09:42]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:09:42]wFMCommunicate OK [17:09:42]SAM_PROTO_GetShiftState done [17:09:42]FM_GetShiftState done [17:09:42]req_shift_opened done [17:09:42]requested_item shift.open_date is exist - process it [17:09:42]req_shift_open_date [17:09:42]req_shift_open_date done [17:09:42]produce_requested_data done [17:09:42]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260807,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [17:09:42]process_action_free close_receipt [17:09:42]json_value_free [17:09:42]json_value_free done [17:09:42]process_json_proto returns [17:09:42]Send response to host [17:09:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260807,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [17:09:42]free response buf [17:09:42]execute_script done [17:09:42]execute_script returns [17:09:42]free content buf [17:09:42]Sock 7.Close socket [17:09:42]Sock 7.Thread stoped [17:09:45]OFD Sender: No OFD packet to send [17:09:50]OFD Sender: No OFD packet to send [17:09:55]OFD Sender: No OFD packet to send [17:10:00]OFD Sender: No OFD packet to send [17:10:05]OFD Sender: No OFD packet to send [17:10:08]accept exits with 10 [17:10:08]New connection [17:10:08]New thread 3066473828 created [17:10:08]Thread 3066617188 joined [17:10:08]Waiting for new connection... [17:10:08] Sock 10.Parse request [17:10:08]Sock 10.Check first char [17:10:08]Sock 10.First char is OK [17:10:08]request: POST /json_proto HTTP/1.0 [17:10:08]Method: POST [17:10:08]URL: /json_proto [17:10:08]Method is POST - this is cgi request [17:10:08]url: /json_proto [17:10:08]query_string will be loaded in cgi processing [17:10:08]execute_cgi json_proto POST (null) [17:10:08]execute_cgi path=json_proto method=POST [17:10:08]POST find Content-Length [17:10:08]Host: 172.17.55.133:8080 [17:10:08]Content-Length: 793 [17:10:08]Content-Type: application/json [17:10:08] [17:10:08]POST finish read [17:10:08]Found Content-Length = 793 [17:10:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 13.170, "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\u000A74763", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:09]execute_script... [17:10: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)1036359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 13.170, "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\u000A74763", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:09]POST & json_proto [17:10:09]process_json_proto [17:10:09]json parsed OK: [17:10:09]protocol is kg_v1.0 [17:10:09]action value=close_receipt [17:10:09]process_action close_receipt [17:10:09]cmd_close_receipt [17:10:09]MH_GetDate [17:10:09]Write to MH i2c: F0 00 00 93 A5 27 [17:10:09]Write i2c OK [17:10:09]MH_I2C_Read... [17:10:09]Read from MH i2c: F0 [17:10:09]MH_I2C_Read... [17:10:09]Read from MH i2c: F0 09 00 [17:10:09]MH_I2C_Read... [17:10:09]Read from MH i2c: F0 09 00 93 A5 00 F6 2A C2 66 34 48 D8 65 31 [17:10:09]GetLastDocTimeStamp 1724000983 [17:10:09]current date 1724001014 [17:10:09]FM_GetShiftState [17:10:09]SAM_PROTO_GetShiftState [17:10:09]wFMCommunicate request_size=4 [17:10:09]MH_SAM_APDU [17:10:09]CAPDU: 80 13 01 00 [17:10:09]Write to MH i2c: E2 08 00 94 A5 80 13 01 00 00 00 00 00 B6 [17:10:09]Write i2c OK [17:10:09]MH_I2C_Read... [17:10:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:09]Read from MH i2c: E2 [17:10:09]MH_I2C_Read... [17:10:09]Read from MH i2c: E2 0E 00 [17:10:09]MH_I2C_Read... [17:10:09]Read from MH i2c: E2 0E 00 94 A5 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F3 [17:10:09]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:10:09]wFMCommunicate OK [17:10:09]SAM_PROTO_GetShiftState done [17:10:09]FM_GetShiftState done [17:10:09]opened in 1723940556 [17:10:09]opened+sec_in_day 1724026956 [17:10:09]quantity*price = 0 [17:10:09]sum+1 = 1 [17:10:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 366 18.08.2024 17:10 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: Топливная Карта 74763 ФМ: 0000000000871820 ФД: 260808 ФПД: 234581880893600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T171014&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260808&fm=234581880893600&tin=02508201610067®Number=0000000000091865&sum=0 [17:10:10]StoreToDocumentArchive [17:10:10]shift 449 fd 260808 [17:10:10]save to /storage/0449/doc_00260808 [17:10:10]save last doc name /storage/0449/doc_00260808 to /storage/kkm_last_doc_name [17:10:10]save OK [17:10:10]Clear old archive folders... [17:10:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:10:10]tlvbuf is 005C0D80 [17:10:10]SAM_PROTO_ClearQueue [17:10:10]wFMCommunicate request_size=4 [17:10:10]MH_SAM_APDU [17:10:10]CAPDU: 80 09 00 00 [17:10:10]Write to MH i2c: E2 08 00 A1 A5 80 09 00 00 00 00 00 00 B8 [17:10:10]Write i2c OK [17:10:10]MH_I2C_Read... [17:10:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:10:10]Read from MH i2c: E2 [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: E2 03 00 [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: E2 03 00 A1 A5 00 90 00 BA [17:10:10]RAPDU: 90 00 [17:10:10]wFMCommunicate OK [17:10:10]SAM_PROTO_ClearQueue done [17:10:10]KKMCreateOFDPacket [17:10:10]OFDProtocolAddRootSTLVToBuf [17:10:10]FM_MakeSignedData [17:10:10]FM_MakeSignedData [17:10:10]SAM_PROTO_SignData [17:10:10]wFMCommunicate request_size=4 [17:10:10]MH_SAM_APDU [17:10:10]CAPDU: 80 0D 01 02 [17:10:10]Write to MH i2c: E2 08 00 A2 A5 80 0D 01 02 00 00 00 00 C0 [17:10:10]Write i2c OK [17:10:10]MH_I2C_Read... [17:10:10]OFD Sender: No OFD packet to send [17:10:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:10:10]Read from MH i2c: E2 [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: E2 03 00 [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: E2 03 00 A2 A5 00 90 00 BB [17:10:10]RAPDU: 90 00 [17:10:10]wFMCommunicate OK [17:10:10]wFMCommunicate request_size=255 [17:10:10]MH_SAM_APDU [17:10:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 33 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 6E 01 00 00 F4 03 04 00 F6 2A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C8 FA 03 00 35 04 06 00 D5 [17:10:10]Write to MH i2c: E2 02 01 A3 A5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 33 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 6E 01 00 00 F4 03 04 00 F6 2A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C8 FA 03 00 35 04 06 00 D5 00 00 80 [17:10:10]Write i2c OK [17:10:10]MH_I2C_Read... [17:10:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:10]Read from MH i2c: E2 [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: E2 03 00 [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: E2 03 00 A3 A5 00 90 00 BC [17:10:10]RAPDU: 90 00 [17:10:10]wFMCommunicate OK [17:10:10]wFMCommunicate request_size=10 [17:10:10]MH_SAM_APDU [17:10:10]CAPDU: 80 0D 02 02 05 59 D9 AE 70 A0 [17:10:10]Write to MH i2c: E2 0D 00 A4 A5 80 0D 02 02 05 00 59 D9 AE 70 A0 00 00 BD [17:10:10]Write i2c OK [17:10:10]MH_I2C_Read... [17:10:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:10]Read from MH i2c: E2 [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: E2 03 00 [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: E2 03 00 A4 A5 00 90 00 BD [17:10:10]RAPDU: 90 00 [17:10:10]wFMCommunicate OK [17:10:10]wFMCommunicate request_size=4 [17:10:10]MH_SAM_APDU [17:10:10]CAPDU: 80 0D 03 02 [17:10:10]Write to MH i2c: E2 08 00 A5 A5 80 0D 03 02 00 00 00 00 C5 [17:10:10]Write i2c OK [17:10:10]MH_I2C_Read... [17:10:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:10]Read from MH i2c: E2 [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: E2 0B 00 [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: E2 0B 00 A5 A5 00 69 CB 7C C9 C1 85 DB C2 90 00 22 [17:10:10]RAPDU: 69 CB 7C C9 C1 85 DB C2 90 00 [17:10:10]wFMCommunicate OK [17:10:10]SAM_PROTO_SignData done [17:10:10]FM_MakeSignedData done [17:10:10]CreateOFDProtocolMessage [17:10:10]wFMCommunicate request_size=4 [17:10:10]MH_SAM_APDU [17:10:10]CAPDU: 80 11 00 00 [17:10:10]Write to MH i2c: E2 08 00 A6 A5 80 11 00 00 00 00 00 00 C5 [17:10:10]Write i2c OK [17:10:10]MH_I2C_Read... [17:10:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:10]Read from MH i2c: E2 [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: E2 17 00 [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: E2 17 00 A6 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 12 [17:10:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:10:10]wFMCommunicate OK [17:10:10]CreateOFDProtocolMessage done [17:10:10]OFDSenderStorePacket 260808 [17:10:10]StoreOFDPacket docnum=260808 [17:10:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 0C 86 07 01 0B 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 35 FF 03 08 00 03 72 33 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 6E 01 00 00 F4 03 04 00 F6 2A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C8 FA 03 00 35 04 06 00 D5 59 D9 AE 70 A0 69 CB 7C C9 C1 85 DB C2 [17:10:10]CheckFolder [17:10:10]dirname=/storage/ofd_packets [17:10:10]CheckFolder done [17:10:10]ProducePacketName [17:10:10]name=ofd_packets/00260808 [17:10:10]NVStorageSaveData ofd_packets/00260808 [17:10:10]File name is /storage/ofd_packets/00260808 [17:10:10]Write 301 bytes [17:10:10]NVStorageSaveData done [17:10:10]OFDSenderStorePacket done [17:10:10]KKMCreateOFDPacket done [17:10:10]NVStorageSaveData kkm_last_timestamp [17:10:10]File name is /storage/kkm_last_timestamp [17:10:10]Write 4 bytes [17:10:10]NVStorageSaveData done [17:10:10]ExternCall_PrintAddStr [17:10:10]wPrintStart [17:10:10]Write to MH i2c: 01 00 00 A7 A5 4C [17:10:10]Write i2c OK [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: 01 [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: 01 07 00 [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: 01 07 00 A7 A5 00 00 00 00 00 FF 0F 61 [17:10:10]RasterBufferAndPrint [17:10:10]line Счет N : (1)1036359 [17:10:10]line ИНН: 02508201610067 [17:10:10]line Контрольно-Кассовый Чек [17:10:10]line ПРОДАЖА [17:10:10]line ТРК (МРК, ГНК) : 12 [17:10:10]line Товар: 2710124130 [17:10:10]line Аи-92-К-5 [17:10:10]line 13.170 * 0.00 [17:10:10]line = 0.00 [17:10:10]line НДС 12% НСП 1% [17:10:10]line > о реализуемом товаре [17:10:10]line ИТОГО: 0.00 [17:10:10]line НСП 1% : 0.00 [17:10:10]line НДС 12% : 0.00 [17:10:10]line Наличными: 0.00 [17:10:10]line Безнал.: 0.00 [17:10:10]line Место: АЗС № 94 "Партнер Нефть" [17:10:10]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [17:10:10]line СНО: Общий режим [17:10:10]line Чек 366 18.08.2024 17:10 [17:10:10]line Смена: 449 ФФД: 1.0 [17:10:10]line ЗНМ: 0300000099 [17:10:10]line РНМ: 0000000000091865 [17:10:10]line Версия ККМ: 001 [17:10:10]line Талоны: Топливная Карта [17:10:10]line 74763 [17:10:10]line ФМ: 0000000000871820 [17:10:10]line ФД: 260808 [17:10:10]line ФПД: 234581880893600 [17:10:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T171014&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260808&fm=234581880893600&tin=02508201610067®Number=0000000000091865&sum=0 [17:10:11]OFD Sender: Processing packet 260808 [packets to send 192, broken 191] [17:10:11]ProducePacketName [17:10:11]name=ofd_packets/00260808 [17:10:11]OFD Sender: To server: pG, [17:10:11]CommunicateWithHost lk.salyk.kg:30040 [17:10:11]ConnectInit lk.salyk.kg [17:10:11]written 0, free lines is 4095 [17:10:11]Connected sock=7 [17:10: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 30 0F 01 00 00 0C 86 07 01 0B 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 35 FF 03 08 00 03 72 33 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 6E 01 00 00 F4 03 04 00 F6 2A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C8 FA 03 00 35 04 06 00 D5 59 D9 AE 70 A0 69 CB 7C C9 C1 85 DB C2 [17:10: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 30 4F 00 00 00 48 CE 47 00 C0 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C8 FA 03 00 F4 03 04 00 4B D4 C1 66 B6 04 01 00 00 69 6C 01 54 F1 17 2B 0F [17:10:11]CommunicateWithHost err = 0 [17:10:11]CheckOFDResponse [17:10:11]1017 (14) - 77093643461234 [17:10:11]1041 (16) - 0000000000871820 [17:10:11]1040 (4) - 260808 [17:10:11]1012 (4) - 18.08.2024 11:00 [17:10:11]1206 (1) - 0 [17:10:11]OFD Sender: Remove packet 260808 [17:10:11]ProducePacketName [17:10:11]name=ofd_packets/00260808 [17:10:11]NVStorageDeleteData [17:10:11]Write to MH i2c: 01 00 00 D1 A5 76 [17:10:11]Write i2c OK [17:10:11]MH_I2C_Read... [17:10:11]Read from MH i2c: 01 [17:10:11]MH_I2C_Read... [17:10:11]Read from MH i2c: 01 07 00 [17:10:11]MH_I2C_Read... [17:10:11]Read from MH i2c: 01 07 00 D1 A5 00 00 00 00 00 88 0C 11 [17:10:11]RasterBufferAndPrint [17:10:11]line [17:10:11]line [17:10:11]line [17:10:11]line [17:10:11]line [17:10:11]written 0, free lines is 3213 [17:10:11]MH_Cut [17:10:11]Write to MH i2c: D1 01 00 D8 A5 01 4F [17:10:11]Write i2c OK [17:10:11]MH_I2C_Read... [17:10:11]Read from MH i2c: D1 [17:10:11]MH_I2C_Read... [17:10:11]Read from MH i2c: D1 01 00 [17:10:11]MH_I2C_Read... [17:10:11]Read from MH i2c: D1 01 00 D8 A5 00 4E [17:10:11]Write to MH i2c: 01 00 00 D9 A5 7E [17:10:11]Write i2c OK [17:10:11]MH_I2C_Read... [17:10:11]OFD Sender: No OFD packet to send [17:10:12]*** Cut start [17:10:12]*** Purtial cut [17:10:12]*** Stage 1: CUTSNS_PIN = 1 [17:10:14]Read from MH i2c: 01 [17:10:14]MH_I2C_Read... [17:10:14]*** Stop cut motor [17:10:14]*** Cut end [17:10:14]Read from MH i2c: 01 07 00 [17:10:14]MH_I2C_Read... [17:10:14]Read from MH i2c: 01 07 00 D9 A5 00 00 00 00 00 FF 0F 93 [17:10:14]process_action close_receipt done [17:10:14]requested_data is exist [17:10:14]produce_requested_data [17:10:14]requested_item fm.sn is exist - process it [17:10:14]wFMCommunicate request_size=4 [17:10:14]MH_SAM_APDU [17:10:14]CAPDU: 80 11 00 00 [17:10:14]Write to MH i2c: E2 08 00 DA A5 80 11 00 00 00 00 00 00 F9 [17:10:14]Write i2c OK [17:10:14]MH_I2C_Read... [17:10:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:14]Read from MH i2c: E2 [17:10:14]MH_I2C_Read... [17:10:14]Read from MH i2c: E2 17 00 [17:10:14]MH_I2C_Read... [17:10:14]Read from MH i2c: E2 17 00 DA A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 46 [17:10:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:10:14]wFMCommunicate OK [17:10:14]requested_item fd.num is exist - process it [17:10:14]SAM_PROTO_GetFieldsCounters [17:10:14]wFMCommunicate request_size=4 [17:10:14]MH_SAM_APDU [17:10:14]CAPDU: 80 13 00 00 [17:10:14]Write to MH i2c: E2 08 00 DB A5 80 13 00 00 00 00 00 00 FC [17:10:14]Write i2c OK [17:10:14]MH_I2C_Read... [17:10:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:14]Read from MH i2c: E2 [17:10:14]MH_I2C_Read... [17:10:14]Read from MH i2c: E2 62 00 [17:10:14]MH_I2C_Read... [17:10:14]Read from MH i2c: E2 62 00 DB A5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C8 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 6E 01 00 00 5E 04 04 00 6E 01 00 00 57 04 04 00 6F 01 00 00 19 04 04 00 00 00 00 00 90 00 EF [17: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C8 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 6E 01 00 00 5E 04 04 00 6E 01 00 00 57 04 04 00 6F 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:10:14]wFMCommunicate OK [17:10:14]SAM_PROTO_GetFieldsCounters done [17:10:14]requested_item shift.num is exist - process it [17:10:14]requested_item shift.opened is exist - process it [17:10:14]req_shift_opened [17:10:14]FM_GetShiftState [17:10:14]SAM_PROTO_GetShiftState [17:10:14]wFMCommunicate request_size=4 [17:10:14]MH_SAM_APDU [17:10:14]CAPDU: 80 13 01 00 [17:10:14]Write to MH i2c: E2 08 00 DC A5 80 13 01 00 00 00 00 00 FE [17:10:14]Write i2c OK [17:10:14]MH_I2C_Read... [17:10:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:14]Read from MH i2c: E2 [17:10:14]MH_I2C_Read... [17:10:14]Read from MH i2c: E2 0E 00 [17:10:14]MH_I2C_Read... [17:10:14]Read from MH i2c: E2 0E 00 DC A5 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 3B [17:10:14]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:10:14]wFMCommunicate OK [17:10:14]SAM_PROTO_GetShiftState done [17:10:14]FM_GetShiftState done [17:10:14]req_shift_opened done [17:10:14]requested_item shift.open_date is exist - process it [17:10:14]req_shift_open_date [17:10:14]req_shift_open_date done [17:10:14]produce_requested_data done [17:10:14]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260808,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [17:10:14]process_action_free close_receipt [17:10:14]json_value_free [17:10:14]json_value_free done [17:10:14]process_json_proto returns [17:10:14]Send response to host [17:10:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260808,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [17:10:14]free response buf [17:10:14]execute_script done [17:10:14]execute_script returns [17:10:14]free content buf [17:10:14]Sock 10.Close socket [17:10:14]Sock 10.Thread stoped [17:10:16]OFD Sender: No OFD packet to send [17:10:21]OFD Sender: No OFD packet to send [17:10:26]OFD Sender: No OFD packet to send [17:10:31]OFD Sender: No OFD packet to send [17:10:36]OFD Sender: No OFD packet to send [17:10:41]OFD Sender: No OFD packet to send [17:10:46]OFD Sender: No OFD packet to send [17:10:51]OFD Sender: No OFD packet to send [17:10:56]OFD Sender: No OFD packet to send [17:11:01]OFD Sender: No OFD packet to send [17:11:06]OFD Sender: No OFD packet to send [17:11:11]OFD Sender: No OFD packet to send [17:11:16]OFD Sender: No OFD packet to send [17:11:21]OFD Sender: No OFD packet to send [17:11:26]OFD Sender: No OFD packet to send [17:11:31]OFD Sender: No OFD packet to send [17:11:36]OFD Sender: No OFD packet to send [17:11:41]OFD Sender: No OFD packet to send [17:11:46]OFD Sender: No OFD packet to send [17:11:51]OFD Sender: No OFD packet to send [17:11:56]OFD Sender: No OFD packet to send [17:12:01]OFD Sender: No OFD packet to send [17:12:06]OFD Sender: No OFD packet to send [17:12:11]OFD Sender: No OFD packet to send [17:12:16]OFD Sender: No OFD packet to send [17:12:21]OFD Sender: No OFD packet to send [17:12:26]OFD Sender: No OFD packet to send [17:12:32]OFD Sender: No OFD packet to send [17:12:37]OFD Sender: No OFD packet to send [17:12:42]OFD Sender: No OFD packet to send [17:12:47]OFD Sender: No OFD packet to send [17:12:52]OFD Sender: No OFD packet to send [17:12:54]accept exits with 9 [17:12:54]New connection [17:12:54]New thread 3066617188 created [17:12:54]Thread 3066473828 joined [17:12:54]Waiting for new connection... [17:12:54] Sock 9.Parse request [17:12:54]Sock 9.Check first char [17:12:54]Sock 9.First char is OK [17:12:54]request: POST /json_proto HTTP/1.0 [17:12:54]Method: POST [17:12:54]URL: /json_proto [17:12:54]Method is POST - this is cgi request [17:12:54]url: /json_proto [17:12:54]query_string will be loaded in cgi processing [17:12:54]execute_cgi json_proto POST (null) [17:12:54]execute_cgi path=json_proto method=POST [17:12:54]POST find Content-Length [17:12:54]Host: 172.17.55.133:8080 [17:12:54]Content-Length: 804 [17:12:54]Content-Type: application/json [17:12:54] [17:12:54]POST finish read [17:12:54]Found Content-Length = 804 [17:12:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036361", "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" : 74.20, "quantity" : 38.410, "sum" : 2850.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2850.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:54]execute_script... [17:12: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)1036361", "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" : 74.20, "quantity" : 38.410, "sum" : 2850.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2850.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:54]POST & json_proto [17:12:54]process_json_proto [17:12:54]json parsed OK: [17:12:54]protocol is kg_v1.0 [17:12:54]action value=close_receipt [17:12:54]process_action close_receipt [17:12:54]cmd_close_receipt [17:12:54]MH_GetDate [17:12:54]Write to MH i2c: F0 00 00 DD A5 71 [17:12:54]Write i2c OK [17:12:54]MH_I2C_Read... [17:12:54]Read from MH i2c: F0 [17:12:54]MH_I2C_Read... [17:12:54]Read from MH i2c: F0 09 00 [17:12:54]MH_I2C_Read... [17:12:54]Read from MH i2c: F0 09 00 DD A5 00 9C 2B C2 66 34 48 D8 65 22 [17:12:54]GetLastDocTimeStamp 1724001014 [17:12:54]current date 1724001180 [17:12:54]FM_GetShiftState [17:12:54]SAM_PROTO_GetShiftState [17:12:54]wFMCommunicate request_size=4 [17:12:54]MH_SAM_APDU [17:12:54]CAPDU: 80 13 01 00 [17:12:54]Write to MH i2c: E2 08 00 DE A5 80 13 01 00 00 00 00 00 00 [17:12:54]Write i2c OK [17:12:54]MH_I2C_Read... [17:12:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:54]Read from MH i2c: E2 [17:12:54]MH_I2C_Read... [17:12:54]Read from MH i2c: E2 0E 00 [17:12:54]MH_I2C_Read... [17:12:54]Read from MH i2c: E2 0E 00 DE A5 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 3D [17:12:54]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:12:54]wFMCommunicate OK [17:12:54]SAM_PROTO_GetShiftState done [17:12:54]FM_GetShiftState done [17:12:54]opened in 1723940556 [17:12:54]opened+sec_in_day 1724026956 [17:12:54]quantity*price = 285002 [17:12:54]sum+1 = 285003 [17:12:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2850.02 НСП 1% : 25.22 НДС 12% : 302.66 Наличными: 0.00 Безнал.: 2850.02 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 367 18.08.2024 17:13 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260809 ФПД: 167963202832012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T171300&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260809&fm=167963202832012&tin=02508201610067®Number=0000000000091865&sum=285002 [17:12:56]StoreToDocumentArchive [17:12:56]shift 449 fd 260809 [17:12:56]save to /storage/0449/doc_00260809 [17:12:56]save last doc name /storage/0449/doc_00260809 to /storage/kkm_last_doc_name [17:12:56]save OK [17:12:56]Clear old archive folders... [17:12:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:12:56]tlvbuf is 004A4250 [17:12:56]SAM_PROTO_ClearQueue [17:12:56]wFMCommunicate request_size=4 [17:12:56]MH_SAM_APDU [17:12:56]CAPDU: 80 09 00 00 [17:12:56]Write to MH i2c: E2 08 00 EB A5 80 09 00 00 00 00 00 00 02 [17:12:56]Write i2c OK [17:12:56]MH_I2C_Read... [17:12:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:12:56]Read from MH i2c: E2 [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: E2 03 00 [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: E2 03 00 EB A5 00 90 00 04 [17:12:56]RAPDU: 90 00 [17:12:56]wFMCommunicate OK [17:12:56]SAM_PROTO_ClearQueue done [17:12:56]KKMCreateOFDPacket [17:12:56]OFDProtocolAddRootSTLVToBuf [17:12:56]FM_MakeSignedData [17:12:56]FM_MakeSignedData [17:12:56]SAM_PROTO_SignData [17:12:56]wFMCommunicate request_size=4 [17:12:56]MH_SAM_APDU [17:12:56]CAPDU: 80 0D 01 02 [17:12:56]Write to MH i2c: E2 08 00 EC A5 80 0D 01 02 00 00 00 00 0A [17:12:56]Write i2c OK [17:12:56]MH_I2C_Read... [17:12:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:12:56]Read from MH i2c: E2 [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: E2 03 00 [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: E2 03 00 EC A5 00 90 00 05 [17:12:56]RAPDU: 90 00 [17:12:56]wFMCommunicate OK [17:12:56]wFMCommunicate request_size=255 [17:12:56]MH_SAM_APDU [17:12: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0A 96 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 4A 59 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 59 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 76 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 59 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 9C 2B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C9 FA 03 00 35 04 06 00 98 [17:12:56]Write to MH i2c: E2 02 01 ED A5 80 0D 02 02 FA 00 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 0A 96 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 4A 59 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 59 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 76 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 59 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 9C 2B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C9 FA 03 00 35 04 06 00 98 00 00 D5 [17:12:56]Write i2c OK [17:12:56]MH_I2C_Read... [17:12:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:56]Read from MH i2c: E2 [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: E2 03 00 [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: E2 03 00 ED A5 00 90 00 06 [17:12:56]RAPDU: 90 00 [17:12:56]wFMCommunicate OK [17:12:56]wFMCommunicate request_size=10 [17:12:56]MH_SAM_APDU [17:12:56]CAPDU: 80 0D 02 02 05 C2 FB 0A 46 8C [17:12:56]Write to MH i2c: E2 0D 00 EE A5 80 0D 02 02 05 00 C2 FB 0A 46 8C 00 00 B0 [17:12:56]Write i2c OK [17:12:56]MH_I2C_Read... [17:12:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:56]Read from MH i2c: E2 [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: E2 03 00 [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: E2 03 00 EE A5 00 90 00 07 [17:12:56]RAPDU: 90 00 [17:12:56]wFMCommunicate OK [17:12:56]wFMCommunicate request_size=4 [17:12:56]MH_SAM_APDU [17:12:56]CAPDU: 80 0D 03 02 [17:12:56]Write to MH i2c: E2 08 00 EF A5 80 0D 03 02 00 00 00 00 0F [17:12:56]Write i2c OK [17:12:56]MH_I2C_Read... [17:12:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:56]Read from MH i2c: E2 [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: E2 0B 00 [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: E2 0B 00 EF A5 00 1F C8 4D CC 03 4B 0E 99 90 00 05 [17:12:56]RAPDU: 1F C8 4D CC 03 4B 0E 99 90 00 [17:12:56]wFMCommunicate OK [17:12:56]SAM_PROTO_SignData done [17:12:56]FM_MakeSignedData done [17:12:56]CreateOFDProtocolMessage [17:12:56]wFMCommunicate request_size=4 [17:12:56]MH_SAM_APDU [17:12:56]CAPDU: 80 11 00 00 [17:12:56]Write to MH i2c: E2 08 00 F0 A5 80 11 00 00 00 00 00 00 0F [17:12:56]Write i2c OK [17:12:56]MH_I2C_Read... [17:12:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:56]Read from MH i2c: E2 [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: E2 17 00 [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: E2 17 00 F0 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 5C [17:12:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:12:56]wFMCommunicate OK [17:12:56]CreateOFDProtocolMessage done [17:12:56]OFDSenderStorePacket 260809 [17:12:56]StoreOFDPacket docnum=260809 [17:12:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 D3 D7 07 01 54 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0A 96 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 4A 59 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 59 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 76 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 59 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 9C 2B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C9 FA 03 00 35 04 06 00 98 C2 FB 0A 46 8C 1F C8 4D CC 03 4B 0E 99 [17:12:56]CheckFolder [17:12:56]dirname=/storage/ofd_packets [17:12:56]CheckFolder done [17:12:56]ProducePacketName [17:12:56]name=ofd_packets/00260809 [17:12:56]NVStorageSaveData ofd_packets/00260809 [17:12:56]File name is /storage/ofd_packets/00260809 [17:12:56]Write 301 bytes [17:12:56]NVStorageSaveData done [17:12:56]OFDSenderStorePacket done [17:12:56]KKMCreateOFDPacket done [17:12:56]NVStorageSaveData kkm_last_timestamp [17:12:56]File name is /storage/kkm_last_timestamp [17:12:56]Write 4 bytes [17:12:56]NVStorageSaveData done [17:12:56]ExternCall_PrintAddStr [17:12:56]wPrintStart [17:12:56]Write to MH i2c: 01 00 00 F1 A5 96 [17:12:56]Write i2c OK [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: 01 [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: 01 07 00 [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: 01 07 00 F1 A5 00 00 00 00 00 FF 0F AB [17:12:56]RasterBufferAndPrint [17:12:56]line Счет N : (1)1036361 [17:12:56]line ИНН: 02508201610067 [17:12:56]line Контрольно-Кассовый Чек [17:12:56]line ПРОДАЖА [17:12:56]line ТРК (МРК, ГНК) : 13 [17:12:56]line Товар: 2710124500 [17:12:56]line Аи-95-К-5 [17:12:56]line 38.410 * 74.20 [17:12:56]line = 2850.02 [17:12:56]line НДС 12% НСП 1% [17:12:56]line > о реализуемом товаре [17:12:56]line ИТОГО: 2850.02 [17:12:56]line НСП 1% : 25.22 [17:12:56]line НДС 12% : 302.66 [17:12:56]line Наличными: 0.00 [17:12:56]line Безнал.: 2850.02 [17:12:56]line Место: АЗС № 94 "Партнер Нефть" [17:12:56]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [17:12:56]line СНО: Общий режим [17:12:56]line Чек 367 18.08.2024 17:13 [17:12:56]line Смена: 449 ФФД: 1.0 [17:12:56]line ЗНМ: 0300000099 [17:12:56]line РНМ: 0000000000091865 [17:12:56]line Версия ККМ: 001 [17:12:56]line Платежная система: O! деньги [17:12:56]line ФМ: 0000000000871820 [17:12:56]line ФД: 260809 [17:12:56]line ФПД: 167963202832012 [17:12:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T171300&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260809&fm=167963202832012&tin=02508201610067®Number=0000000000091865&sum=285002 [17:12:56]written 0, free lines is 4095 [17:12:56]OFD Sender: Processing packet 260809 [packets to send 192, broken 191] [17:12:56]ProducePacketName [17:12:56]name=ofd_packets/00260809 [17:12:56]OFD Sender: To server: pG, [17:12:56]CommunicateWithHost lk.salyk.kg:30040 [17:12:56]ConnectInit lk.salyk.kg [17:12:56]Connected sock=10 [17:12: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 30 0F 01 00 00 D3 D7 07 01 54 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0A 96 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 4A 59 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 59 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 76 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 59 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 9C 2B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 C9 FA 03 00 35 04 06 00 98 C2 FB 0A 46 8C 1F C8 4D CC 03 4B 0E 99 [17:12: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 30 4F 00 00 00 1E 02 47 00 86 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 30 10 04 04 00 C9 FA 03 00 F4 03 04 00 F0 D4 C1 66 B6 04 01 00 00 FD E9 05 0D DA 81 68 5B [17:12:56]CommunicateWithHost err = 0 [17:12:56]CheckOFDResponse [17:12:56]1017 (14) - 77093643461234 [17:12:56]1041 (16) - 0000000000871820 [17:12:56]1040 (4) - 260809 [17:12:56]1012 (4) - 18.08.2024 11:03 [17:12:56]1206 (1) - 0 [17:12:56]OFD Sender: Remove packet 260809 [17:12:56]ProducePacketName [17:12:56]name=ofd_packets/00260809 [17:12:56]NVStorageDeleteData [17:12:57]Write to MH i2c: 01 00 00 1B A6 C1 [17:12:57]Write i2c OK [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: 01 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: 01 07 00 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: 01 07 00 1B A6 00 00 00 00 00 8F 0C 63 [17:12:57]RasterBufferAndPrint [17:12:57]line [17:12:57]line [17:12:57]line [17:12:57]line [17:12:57]line [17:12:57]written 0, free lines is 3217 [17:12:57]MH_Cut [17:12:57]Write to MH i2c: D1 01 00 22 A6 01 9A [17:12:57]Write i2c OK [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: D1 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: D1 01 00 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: D1 01 00 22 A6 00 99 [17:12:57]Write to MH i2c: 01 00 00 23 A6 C9 [17:12:57]Write i2c OK [17:12:57]MH_I2C_Read... [17:12:57]OFD Sender: No OFD packet to send [17:12:58]*** Cut start [17:12:58]*** Purtial cut [17:12:58]*** Stage 1: CUTSNS_PIN = 1 [17:13:00]Read from MH i2c: 01 [17:13:00]MH_I2C_Read... [17:13:00]*** Stop cut motor [17:13:00]*** Cut end [17:13:00]Read from MH i2c: 01 07 00 [17:13:00]MH_I2C_Read... [17:13:00]Read from MH i2c: 01 07 00 23 A6 00 00 00 00 00 FF 0F DE [17:13:00]process_action close_receipt done [17:13:00]requested_data is exist [17:13:00]produce_requested_data [17:13:00]requested_item fm.sn is exist - process it [17:13:00]wFMCommunicate request_size=4 [17:13:00]MH_SAM_APDU [17:13:00]CAPDU: 80 11 00 00 [17:13:00]Write to MH i2c: E2 08 00 24 A6 80 11 00 00 00 00 00 00 44 [17:13:00]Write i2c OK [17:13:00]MH_I2C_Read... [17:13:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:00]Read from MH i2c: E2 [17:13:00]MH_I2C_Read... [17:13:00]Read from MH i2c: E2 17 00 [17:13:00]MH_I2C_Read... [17:13:00]Read from MH i2c: E2 17 00 24 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 91 [17:13:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:13:00]wFMCommunicate OK [17:13:00]requested_item fd.num is exist - process it [17:13:00]SAM_PROTO_GetFieldsCounters [17:13:00]wFMCommunicate request_size=4 [17:13:00]MH_SAM_APDU [17:13:00]CAPDU: 80 13 00 00 [17:13:00]Write to MH i2c: E2 08 00 25 A6 80 13 00 00 00 00 00 00 47 [17:13:00]Write i2c OK [17:13:00]MH_I2C_Read... [17:13:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:00]Read from MH i2c: E2 [17:13:00]MH_I2C_Read... [17:13:00]Read from MH i2c: E2 62 00 [17:13:00]MH_I2C_Read... [17:13:00]Read from MH i2c: E2 62 00 25 A6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C9 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 3E [17:13: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 C9 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:13:00]wFMCommunicate OK [17:13:00]SAM_PROTO_GetFieldsCounters done [17:13:00]requested_item shift.num is exist - process it [17:13:00]requested_item shift.opened is exist - process it [17:13:00]req_shift_opened [17:13:00]FM_GetShiftState [17:13:00]SAM_PROTO_GetShiftState [17:13:00]wFMCommunicate request_size=4 [17:13:00]MH_SAM_APDU [17:13:00]CAPDU: 80 13 01 00 [17:13:00]Write to MH i2c: E2 08 00 26 A6 80 13 01 00 00 00 00 00 49 [17:13:00]Write i2c OK [17:13:00]MH_I2C_Read... [17:13:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:00]Read from MH i2c: E2 [17:13:00]MH_I2C_Read... [17:13:00]Read from MH i2c: E2 0E 00 [17:13:00]MH_I2C_Read... [17:13:00]Read from MH i2c: E2 0E 00 26 A6 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 86 [17:13:00]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:13:00]wFMCommunicate OK [17:13:00]SAM_PROTO_GetShiftState done [17:13:00]FM_GetShiftState done [17:13:00]req_shift_opened done [17:13:00]requested_item shift.open_date is exist - process it [17:13:00]req_shift_open_date [17:13:00]req_shift_open_date done [17:13:00]produce_requested_data done [17:13:00]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260809,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [17:13:00]process_action_free close_receipt [17:13:00]json_value_free [17:13:00]json_value_free done [17:13:00]process_json_proto returns [17:13:00]Send response to host [17:13:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260809,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [17:13:00]free response buf [17:13:00]execute_script done [17:13:00]execute_script returns [17:13:00]free content buf [17:13:00]Sock 9.Close socket [17:13:00]Sock 9.Thread stoped [17:13:02]OFD Sender: No OFD packet to send [17:13:07]OFD Sender: No OFD packet to send [17:13:12]OFD Sender: No OFD packet to send [17:13:17]OFD Sender: No OFD packet to send [17:13:22]OFD Sender: No OFD packet to send [17:13:27]OFD Sender: No OFD packet to send [17:13:32]OFD Sender: No OFD packet to send [17:13:37]OFD Sender: No OFD packet to send [17:13:42]OFD Sender: No OFD packet to send [17:13:47]OFD Sender: No OFD packet to send [17:13:52]OFD Sender: No OFD packet to send [17:13:57]OFD Sender: No OFD packet to send [17:14:02]OFD Sender: No OFD packet to send [17:14:07]OFD Sender: No OFD packet to send [17:14:12]OFD Sender: No OFD packet to send [17:14:17]OFD Sender: No OFD packet to send [17:14:22]OFD Sender: No OFD packet to send [17:14:27]OFD Sender: No OFD packet to send [17:14:32]OFD Sender: No OFD packet to send [17:14:37]OFD Sender: No OFD packet to send [17:14:42]OFD Sender: No OFD packet to send [17:14:47]OFD Sender: No OFD packet to send [17:14:52]OFD Sender: No OFD packet to send [17:14:56]accept exits with 7 [17:14:56]New connection [17:14:56]New thread 3066473828 created [17:14:56]Thread 3066617188 joined [17:14:56]Waiting for new connection... [17:14:56] Sock 7.Parse request [17:14:56]Sock 7.Check first char [17:14:56]Sock 7.First char is OK [17:14:56]request: POST /json_proto HTTP/1.0 [17:14:56]Method: POST [17:14:56]URL: /json_proto [17:14:56]Method is POST - this is cgi request [17:14:56]url: /json_proto [17:14:56]query_string will be loaded in cgi processing [17:14:56]execute_cgi json_proto POST (null) [17:14:56]execute_cgi path=json_proto method=POST [17:14:56]POST find Content-Length [17:14:56]Host: 172.17.55.133:8080 [17:14:56]Content-Length: 688 [17:14:56]Content-Type: application/json [17:14:56] [17:14:56]POST finish read [17:14:56]Found Content-Length = 688 [17:14:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:56]execute_script... [17:14: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)1036362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:56]POST & json_proto [17:14:56]process_json_proto [17:14:56]json parsed OK: [17:14:56]protocol is kg_v1.0 [17:14:56]action value=close_receipt [17:14:56]process_action close_receipt [17:14:56]cmd_close_receipt [17:14:56]MH_GetDate [17:14:56]Write to MH i2c: F0 00 00 27 A6 BC [17:14:56]Write i2c OK [17:14:56]MH_I2C_Read... [17:14:56]Read from MH i2c: F0 [17:14:56]MH_I2C_Read... [17:14:56]Read from MH i2c: F0 09 00 [17:14:56]MH_I2C_Read... [17:14:56]Read from MH i2c: F0 09 00 27 A6 00 16 2C C2 66 34 48 D8 65 E8 [17:14:56]GetLastDocTimeStamp 1724001180 [17:14:56]current date 1724001302 [17:14:56]FM_GetShiftState [17:14:56]SAM_PROTO_GetShiftState [17:14:56]wFMCommunicate request_size=4 [17:14:56]MH_SAM_APDU [17:14:56]CAPDU: 80 13 01 00 [17:14:56]Write to MH i2c: E2 08 00 28 A6 80 13 01 00 00 00 00 00 4B [17:14:56]Write i2c OK [17:14:56]MH_I2C_Read... [17:14:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:56]Read from MH i2c: E2 [17:14:56]MH_I2C_Read... [17:14:56]Read from MH i2c: E2 0E 00 [17:14:56]MH_I2C_Read... [17:14:56]Read from MH i2c: E2 0E 00 28 A6 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 88 [17:14:56]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:14:56]wFMCommunicate OK [17:14:56]SAM_PROTO_GetShiftState done [17:14:56]FM_GetShiftState done [17:14:56]opened in 1723940556 [17:14:56]opened+sec_in_day 1724026956 [17:14:56]quantity*price = 100050 [17:14:56]sum+1 = 100052 [17:14:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 368 18.08.2024 17:15 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260810 ФПД: 29006783753249 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T171502&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260810&fm=29006783753249&tin=02508201610067®Number=0000000000091865&sum=100000 [17:14:57]StoreToDocumentArchive [17:14:57]shift 449 fd 260810 [17:14:57]save to /storage/0449/doc_00260810 [17:14:57]save last doc name /storage/0449/doc_00260810 to /storage/kkm_last_doc_name [17:14:57]save OK [17:14:57]Clear old archive folders... [17:14:57]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:14:57]tlvbuf is 003A0640 [17:14:57]SAM_PROTO_ClearQueue [17:14:57]wFMCommunicate request_size=4 [17:14:57]MH_SAM_APDU [17:14:57]CAPDU: 80 09 00 00 [17:14:57]Write to MH i2c: E2 08 00 35 A6 80 09 00 00 00 00 00 00 4D [17:14:57]Write i2c OK [17:14:57]MH_I2C_Read... [17:14:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:14:57]Read from MH i2c: E2 [17:14:57]MH_I2C_Read... [17:14:57]Read from MH i2c: E2 03 00 [17:14:57]MH_I2C_Read... [17:14:57]Read from MH i2c: E2 03 00 35 A6 00 90 00 4F [17:14:57]RAPDU: 90 00 [17:14:57]wFMCommunicate OK [17:14:57]SAM_PROTO_ClearQueue done [17:14:57]KKMCreateOFDPacket [17:14:57]OFDProtocolAddRootSTLVToBuf [17:14:57]FM_MakeSignedData [17:14:57]FM_MakeSignedData [17:14:57]SAM_PROTO_SignData [17:14:57]wFMCommunicate request_size=4 [17:14:57]MH_SAM_APDU [17:14:57]CAPDU: 80 0D 01 02 [17:14:57]Write to MH i2c: E2 08 00 36 A6 80 0D 01 02 00 00 00 00 55 [17:14:57]Write i2c OK [17:14:57]MH_I2C_Read... [17:14:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:14:57]Read from MH i2c: E2 [17:14:57]MH_I2C_Read... [17:14:57]Read from MH i2c: E2 03 00 [17:14:57]MH_I2C_Read... [17:14:57]Read from MH i2c: E2 03 00 36 A6 00 90 00 50 [17:14:57]RAPDU: 90 00 [17:14:57]wFMCommunicate OK [17:14:57]wFMCommunicate request_size=255 [17:14:57]MH_SAM_APDU [17:14:57]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 16 2C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CA FA 03 00 35 04 06 00 [17:14:57]Write to MH i2c: E2 02 01 37 A6 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 16 2C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CA FA 03 00 35 04 06 00 00 00 23 [17:14:58]Write i2c OK [17:14:58]MH_I2C_Read... [17:14:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:58]Read from MH i2c: E2 [17:14:58]MH_I2C_Read... [17:14:58]Read from MH i2c: E2 03 00 [17:14:58]MH_I2C_Read... [17:14:58]Read from MH i2c: E2 03 00 37 A6 00 90 00 51 [17:14:58]RAPDU: 90 00 [17:14:58]wFMCommunicate OK [17:14:58]wFMCommunicate request_size=11 [17:14:58]MH_SAM_APDU [17:14:58]CAPDU: 80 0D 02 02 06 1A 61 AB 0A AC 21 [17:14:58]Write to MH i2c: E2 0E 00 38 A6 80 0D 02 02 06 00 1A 61 AB 0A AC 21 00 00 61 [17:14:58]Write i2c OK [17:14:58]MH_I2C_Read... [17:14:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:58]Read from MH i2c: E2 [17:14:58]MH_I2C_Read... [17:14:58]Read from MH i2c: E2 03 00 [17:14:58]MH_I2C_Read... [17:14:58]Read from MH i2c: E2 03 00 38 A6 00 90 00 52 [17:14:58]RAPDU: 90 00 [17:14:58]wFMCommunicate OK [17:14:58]wFMCommunicate request_size=4 [17:14:58]MH_SAM_APDU [17:14:58]CAPDU: 80 0D 03 02 [17:14:58]Write to MH i2c: E2 08 00 39 A6 80 0D 03 02 00 00 00 00 5A [17:14:58]Write i2c OK [17:14:58]MH_I2C_Read... [17:14:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:14:58]Read from MH i2c: E2 [17:14:58]MH_I2C_Read... [17:14:58]Read from MH i2c: E2 0B 00 [17:14:58]MH_I2C_Read... [17:14:58]Read from MH i2c: E2 0B 00 39 A6 00 82 C1 74 08 08 B0 56 B0 90 00 D8 [17:14:58]RAPDU: 82 C1 74 08 08 B0 56 B0 90 00 [17:14:58]wFMCommunicate OK [17:14:58]SAM_PROTO_SignData done [17:14:58]FM_MakeSignedData done [17:14:58]CreateOFDProtocolMessage [17:14:58]wFMCommunicate request_size=4 [17:14:58]MH_SAM_APDU [17:14:58]CAPDU: 80 11 00 00 [17:14:58]Write to MH i2c: E2 08 00 3A A6 80 11 00 00 00 00 00 00 5A [17:14:58]Write i2c OK [17:14:58]MH_I2C_Read... [17:14:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:58]Read from MH i2c: E2 [17:14:58]MH_I2C_Read... [17:14:58]Read from MH i2c: E2 17 00 [17:14:58]MH_I2C_Read... [17:14:58]Read from MH i2c: E2 17 00 3A A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A7 [17:14:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:14:58]wFMCommunicate OK [17:14:58]CreateOFDProtocolMessage done [17:14:58]OFDSenderStorePacket 260810 [17:14:58]StoreOFDPacket docnum=260810 [17:14:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 BF 4A 08 01 93 AE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 16 2C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CA FA 03 00 35 04 06 00 1A 61 AB 0A AC 21 82 C1 74 08 08 B0 56 B0 [17:14:58]CheckFolder [17:14:58]dirname=/storage/ofd_packets [17:14:58]CheckFolder done [17:14:58]ProducePacketName [17:14:58]name=ofd_packets/00260810 [17:14:58]NVStorageSaveData ofd_packets/00260810 [17:14:58]File name is /storage/ofd_packets/00260810 [17:14:58]Write 302 bytes [17:14:58]NVStorageSaveData done [17:14:58]OFDSenderStorePacket done [17:14:58]KKMCreateOFDPacket done [17:14:58]NVStorageSaveData kkm_last_timestamp [17:14:58]File name is /storage/kkm_last_timestamp [17:14:58]Write 4 bytes [17:14:58]NVStorageSaveData done [17:14:58]ExternCall_PrintAddStr [17:14:58]wPrintStart [17:14:58]Write to MH i2c: 01 00 00 3B A6 E1 [17:14:58]Write i2c OK [17:14:58]MH_I2C_Read... [17:14:58]Read from MH i2c: 01 [17:14:58]MH_I2C_Read... [17:14:58]Read from MH i2c: 01 07 00 [17:14:58]MH_I2C_Read... [17:14:58]Read from MH i2c: 01 07 00 3B A6 00 00 00 00 00 FF 0F F6 [17:14:58]RasterBufferAndPrint [17:14:58]line Счет N : (1)1036362 [17:14:58]line ИНН: 02508201610067 [17:14:58]line Контрольно-Кассовый Чек [17:14:58]line ПРОДАЖА [17:14:58]line ТРК (МРК, ГНК) : 43 [17:14:58]line Товар: 2710194210 [17:14:58]line ДТ(л)-К-4 [17:14:58]line 13.130 * 76.20 [17:14:58]line = 1000.51 [17:14:58]line НДС 12% НСП 1% [17:14:58]line > о реализуемом товаре [17:14:58]line ОКРУГЛЕНИЕ: -0.51 [17:14:58]line ИТОГО: 1000.00 [17:14:58]line Внесено: 1000.00 [17:14:58]line СДАЧА: 0.00 [17:14:58]line НСП 1% : 8.85 [17:14:58]line НДС 12% : 106.25 [17:14:58]line Наличными: 1000.00 [17:14:58]line Безнал.: 0.00 [17:14:58]line Место: АЗС № 94 "Партнер Нефть" [17:14:58]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [17:14:58]line СНО: Общий режим [17:14:58]line Чек 368 18.08.2024 17:15 [17:14:58]line Смена: 449 ФФД: 1.0 [17:14:58]line ЗНМ: 0300000099 [17:14:58]line РНМ: 0000000000091865 [17:14:58]line Версия ККМ: 001 [17:14:58]line ФМ: 0000000000871820 [17:14:58]line ФД: 260810 [17:14:58]line ФПД: 29006783753249 [17:14:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T171502&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260810&fm=29006783753249&tin=02508201610067®Number=0000000000091865&sum=100000 [17:14:58]OFD Sender: Processing packet 260810 [packets to send 192, broken 191] [17:14:58]ProducePacketName [17:14:58]name=ofd_packets/00260810 [17:14:58]OFD Sender: To server: pG, [17:14:58]CommunicateWithHost lk.salyk.kg:30040 [17:14:58]ConnectInit lk.salyk.kg [17:14:58]written 0, free lines is 4095 [17:14:58]Connected sock=10 [17:14: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 30 10 01 00 00 BF 4A 08 01 93 AE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 16 2C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CA FA 03 00 35 04 06 00 1A 61 AB 0A AC 21 82 C1 74 08 08 B0 56 B0 [17:14: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 30 4F 00 00 00 9B FF 47 00 B2 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CA FA 03 00 F4 03 04 00 6B D5 C1 66 B6 04 01 00 00 61 0B 95 93 FE C2 5A 59 [17:14:59]CommunicateWithHost err = 0 [17:14:59]CheckOFDResponse [17:14:59]1017 (14) - 77093643461234 [17:14:59]1041 (16) - 0000000000871820 [17:14:59]1040 (4) - 260810 [17:14:59]1012 (4) - 18.08.2024 11:05 [17:14:59]1206 (1) - 0 [17:14:59]OFD Sender: Remove packet 260810 [17:14:59]ProducePacketName [17:14:59]name=ofd_packets/00260810 [17:14:59]NVStorageDeleteData [17:14:59]Write to MH i2c: 01 00 00 66 A6 0C [17:14:59]Write i2c OK [17:14:59]MH_I2C_Read... [17:14:59]Read from MH i2c: 01 [17:14:59]MH_I2C_Read... [17:14:59]Read from MH i2c: 01 07 00 [17:14:59]MH_I2C_Read... [17:14:59]Read from MH i2c: 01 07 00 66 A6 00 00 00 00 00 60 0C 7F [17:14:59]RasterBufferAndPrint [17:14:59]line [17:14:59]line [17:14:59]line [17:14:59]line [17:14:59]line [17:14:59]written 0, free lines is 3171 [17:14:59]MH_Cut [17:14:59]Write to MH i2c: D1 01 00 6D A6 01 E5 [17:14:59]Write i2c OK [17:14:59]MH_I2C_Read... [17:14:59]Read from MH i2c: D1 [17:14:59]MH_I2C_Read... [17:14:59]Read from MH i2c: D1 01 00 [17:14:59]MH_I2C_Read... [17:14:59]Read from MH i2c: D1 01 00 6D A6 00 E4 [17:14:59]Write to MH i2c: 01 00 00 6E A6 14 [17:14:59]Write i2c OK [17:14:59]MH_I2C_Read... [17:14:59]OFD Sender: No OFD packet to send [17:15:00]*** Cut start [17:15:00]*** Purtial cut [17:15:00]*** Stage 1: CUTSNS_PIN = 1 [17:15:02]Read from MH i2c: 01 [17:15:02]MH_I2C_Read... [17:15:02]*** Stop cut motor [17:15:02]*** Cut end [17:15:02]Read from MH i2c: 01 07 00 [17:15:02]MH_I2C_Read... [17:15:02]Read from MH i2c: 01 07 00 6E A6 00 00 00 00 00 FF 0F 29 [17:15:02]process_action close_receipt done [17:15:02]requested_data is exist [17:15:02]produce_requested_data [17:15:02]requested_item fm.sn is exist - process it [17:15:02]wFMCommunicate request_size=4 [17:15:02]MH_SAM_APDU [17:15:02]CAPDU: 80 11 00 00 [17:15:02]Write to MH i2c: E2 08 00 6F A6 80 11 00 00 00 00 00 00 8F [17:15:02]Write i2c OK [17:15:02]MH_I2C_Read... [17:15:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:02]Read from MH i2c: E2 [17:15:02]MH_I2C_Read... [17:15:02]Read from MH i2c: E2 17 00 [17:15:02]MH_I2C_Read... [17:15:02]Read from MH i2c: E2 17 00 6F A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 DC [17:15:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:15:02]wFMCommunicate OK [17:15:02]requested_item fd.num is exist - process it [17:15:02]SAM_PROTO_GetFieldsCounters [17:15:02]wFMCommunicate request_size=4 [17:15:02]MH_SAM_APDU [17:15:02]CAPDU: 80 13 00 00 [17:15:02]Write to MH i2c: E2 08 00 70 A6 80 13 00 00 00 00 00 00 92 [17:15:02]Write i2c OK [17:15:02]MH_I2C_Read... [17:15:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:15:02]Read from MH i2c: E2 [17:15:02]MH_I2C_Read... [17:15:02]Read from MH i2c: E2 62 00 [17:15:02]MH_I2C_Read... [17:15:02]Read from MH i2c: E2 62 00 70 A6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 CA FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 70 01 00 00 5E 04 04 00 70 01 00 00 57 04 04 00 71 01 00 00 19 04 04 00 00 00 00 00 90 00 8D [17:15: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 CA FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 70 01 00 00 5E 04 04 00 70 01 00 00 57 04 04 00 71 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:15:02]wFMCommunicate OK [17:15:02]SAM_PROTO_GetFieldsCounters done [17:15:02]requested_item shift.num is exist - process it [17:15:02]requested_item shift.opened is exist - process it [17:15:02]req_shift_opened [17:15:02]FM_GetShiftState [17:15:02]SAM_PROTO_GetShiftState [17:15:02]wFMCommunicate request_size=4 [17:15:02]MH_SAM_APDU [17:15:02]CAPDU: 80 13 01 00 [17:15:02]Write to MH i2c: E2 08 00 71 A6 80 13 01 00 00 00 00 00 94 [17:15:02]Write i2c OK [17:15:02]MH_I2C_Read... [17:15:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:02]Read from MH i2c: E2 [17:15:02]MH_I2C_Read... [17:15:02]Read from MH i2c: E2 0E 00 [17:15:02]MH_I2C_Read... [17:15:02]Read from MH i2c: E2 0E 00 71 A6 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D1 [17:15:02]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:15:02]wFMCommunicate OK [17:15:02]SAM_PROTO_GetShiftState done [17:15:02]FM_GetShiftState done [17:15:02]req_shift_opened done [17:15:02]requested_item shift.open_date is exist - process it [17:15:02]req_shift_open_date [17:15:02]req_shift_open_date done [17:15:02]produce_requested_data done [17:15:02]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260810,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [17:15:02]process_action_free close_receipt [17:15:02]json_value_free [17:15:02]json_value_free done [17:15:02]process_json_proto returns [17:15:02]Send response to host [17:15:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260810,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [17:15:02]free response buf [17:15:02]execute_script done [17:15:02]execute_script returns [17:15:02]free content buf [17:15:02]Sock 7.Close socket [17:15:02]Sock 7.Thread stoped [17:15:04]OFD Sender: No OFD packet to send [17:15:09]OFD Sender: No OFD packet to send [17:15:14]OFD Sender: No OFD packet to send [17:15:19]OFD Sender: No OFD packet to send [17:15:24]OFD Sender: No OFD packet to send [17:15:29]OFD Sender: No OFD packet to send [17:15:34]OFD Sender: No OFD packet to send [17:15:39]OFD Sender: No OFD packet to send [17:15:44]OFD Sender: No OFD packet to send [17:15:47]accept exits with 9 [17:15:47]New connection [17:15:47]New thread 3066617188 created [17:15:47]Thread 3066473828 joined [17:15:47]Waiting for new connection... [17:15:47] Sock 9.Parse request [17:15:47]Sock 9.Check first char [17:15:47]Sock 9.First char is OK [17:15:47]request: POST /json_proto HTTP/1.0 [17:15:47]Method: POST [17:15:47]URL: /json_proto [17:15:47]Method is POST - this is cgi request [17:15:47]url: /json_proto [17:15:47]query_string will be loaded in cgi processing [17:15:47]execute_cgi json_proto POST (null) [17:15:47]execute_cgi path=json_proto method=POST [17:15:47]POST find Content-Length [17:15:47]Host: 172.17.55.133:8080 [17:15:47]Content-Length: 804 [17:15:47]Content-Type: application/json [17:15:47] [17:15:47]POST finish read [17:15:47]Found Content-Length = 804 [17:15:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036363", "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" : 74.20, "quantity" : 26.960, "sum" : 2000.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" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:47]execute_script... [17:15:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036363", "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" : 74.20, "quantity" : 26.960, "sum" : 2000.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" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:47]POST & json_proto [17:15:47]process_json_proto [17:15:47]json parsed OK: [17:15:47]protocol is kg_v1.0 [17:15:47]action value=close_receipt [17:15:47]process_action close_receipt [17:15:47]cmd_close_receipt [17:15:47]MH_GetDate [17:15:47]Write to MH i2c: F0 00 00 72 A6 07 [17:15:47]Write i2c OK [17:15:47]MH_I2C_Read... [17:15:47]Read from MH i2c: F0 [17:15:47]MH_I2C_Read... [17:15:47]Read from MH i2c: F0 09 00 [17:15:47]MH_I2C_Read... [17:15:47]Read from MH i2c: F0 09 00 72 A6 00 49 2C C2 66 34 48 D8 65 66 [17:15:47]GetLastDocTimeStamp 1724001302 [17:15:47]current date 1724001353 [17:15:47]FM_GetShiftState [17:15:47]SAM_PROTO_GetShiftState [17:15:47]wFMCommunicate request_size=4 [17:15:47]MH_SAM_APDU [17:15:47]CAPDU: 80 13 01 00 [17:15:47]Write to MH i2c: E2 08 00 73 A6 80 13 01 00 00 00 00 00 96 [17:15:47]Write i2c OK [17:15:47]MH_I2C_Read... [17:15:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:47]Read from MH i2c: E2 [17:15:47]MH_I2C_Read... [17:15:47]Read from MH i2c: E2 0E 00 [17:15:47]MH_I2C_Read... [17:15:47]Read from MH i2c: E2 0E 00 73 A6 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D3 [17:15:47]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:15:47]wFMCommunicate OK [17:15:47]SAM_PROTO_GetShiftState done [17:15:47]FM_GetShiftState done [17:15:47]opened in 1723940556 [17:15:47]opened+sec_in_day 1724026956 [17:15:47]quantity*price = 200043 [17:15:47]sum+1 = 200044 [17:15:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 369 18.08.2024 17:15 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260811 ФПД: 120405890715680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T171553&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260811&fm=120405890715680&tin=02508201610067®Number=0000000000091865&sum=200043 [17:15:48]StoreToDocumentArchive [17:15:48]shift 449 fd 260811 [17:15:48]save to /storage/0449/doc_00260811 [17:15:48]save last doc name /storage/0449/doc_00260811 to /storage/kkm_last_doc_name [17:15:48]save OK [17:15:48]Clear old archive folders... [17:15:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:15:48]tlvbuf is 00433610 [17:15:48]SAM_PROTO_ClearQueue [17:15:48]wFMCommunicate request_size=4 [17:15:48]MH_SAM_APDU [17:15:48]CAPDU: 80 09 00 00 [17:15:48]Write to MH i2c: E2 08 00 80 A6 80 09 00 00 00 00 00 00 98 [17:15:48]Write i2c OK [17:15:48]MH_I2C_Read... [17:15:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:15:48]Read from MH i2c: E2 [17:15:48]MH_I2C_Read... [17:15:48]Read from MH i2c: E2 03 00 [17:15:48]MH_I2C_Read... [17:15:48]Read from MH i2c: E2 03 00 80 A6 00 90 00 9A [17:15:48]RAPDU: 90 00 [17:15:48]wFMCommunicate OK [17:15:48]SAM_PROTO_ClearQueue done [17:15:48]KKMCreateOFDPacket [17:15:48]OFDProtocolAddRootSTLVToBuf [17:15:48]FM_MakeSignedData [17:15:48]FM_MakeSignedData [17:15:48]SAM_PROTO_SignData [17:15:48]wFMCommunicate request_size=4 [17:15:48]MH_SAM_APDU [17:15:48]CAPDU: 80 0D 01 02 [17:15:48]Write to MH i2c: E2 08 00 81 A6 80 0D 01 02 00 00 00 00 A0 [17:15:48]Write i2c OK [17:15:48]MH_I2C_Read... [17:15:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:15:48]Read from MH i2c: E2 [17:15:48]MH_I2C_Read... [17:15:48]Read from MH i2c: E2 03 00 [17:15:48]MH_I2C_Read... [17:15:48]Read from MH i2c: E2 03 00 81 A6 00 90 00 9B [17:15:48]RAPDU: 90 00 [17:15:48]wFMCommunicate OK [17:15:48]wFMCommunicate request_size=255 [17:15:48]MH_SAM_APDU [17:15:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 49 2C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CB FA 03 00 35 04 06 00 6D [17:15:48]Write to MH i2c: E2 02 01 82 A6 80 0D 02 02 FA 00 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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 49 2C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CB FA 03 00 35 04 06 00 6D 00 00 31 [17:15:48]Write i2c OK [17:15:48]MH_I2C_Read... [17:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:49]Read from MH i2c: E2 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: E2 03 00 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: E2 03 00 82 A6 00 90 00 9C [17:15:49]RAPDU: 90 00 [17:15:49]wFMCommunicate OK [17:15:49]wFMCommunicate request_size=10 [17:15:49]MH_SAM_APDU [17:15:49]CAPDU: 80 0D 02 02 05 82 2E 58 50 20 [17:15:49]Write to MH i2c: E2 0D 00 83 A6 80 0D 02 02 05 00 82 2E 58 50 20 00 00 25 [17:15:49]Write i2c OK [17:15:49]MH_I2C_Read... [17:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:49]Read from MH i2c: E2 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: E2 03 00 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: E2 03 00 83 A6 00 90 00 9D [17:15:49]RAPDU: 90 00 [17:15:49]wFMCommunicate OK [17:15:49]wFMCommunicate request_size=4 [17:15:49]MH_SAM_APDU [17:15:49]CAPDU: 80 0D 03 02 [17:15:49]Write to MH i2c: E2 08 00 84 A6 80 0D 03 02 00 00 00 00 A5 [17:15:49]Write i2c OK [17:15:49]MH_I2C_Read... [17:15:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:15:49]Read from MH i2c: E2 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: E2 0B 00 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: E2 0B 00 84 A6 00 75 EF A2 06 5A 30 81 44 90 00 01 [17:15:49]RAPDU: 75 EF A2 06 5A 30 81 44 90 00 [17:15:49]wFMCommunicate OK [17:15:49]SAM_PROTO_SignData done [17:15:49]FM_MakeSignedData done [17:15:49]CreateOFDProtocolMessage [17:15:49]wFMCommunicate request_size=4 [17:15:49]MH_SAM_APDU [17:15:49]CAPDU: 80 11 00 00 [17:15:49]Write to MH i2c: E2 08 00 85 A6 80 11 00 00 00 00 00 00 A5 [17:15:49]Write i2c OK [17:15:49]MH_I2C_Read... [17:15:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:49]Read from MH i2c: E2 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: E2 17 00 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: E2 17 00 85 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F2 [17:15:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:15:49]wFMCommunicate OK [17:15:49]CreateOFDProtocolMessage done [17:15:49]OFDSenderStorePacket 260811 [17:15:49]StoreOFDPacket docnum=260811 [17:15:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 C1 CF 07 01 8F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 49 2C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CB FA 03 00 35 04 06 00 6D 82 2E 58 50 20 75 EF A2 06 5A 30 81 44 [17:15:49]CheckFolder [17:15:49]dirname=/storage/ofd_packets [17:15:49]CheckFolder done [17:15:49]ProducePacketName [17:15:49]name=ofd_packets/00260811 [17:15:49]NVStorageSaveData ofd_packets/00260811 [17:15:49]File name is /storage/ofd_packets/00260811 [17:15:49]Write 301 bytes [17:15:49]NVStorageSaveData done [17:15:49]OFDSenderStorePacket done [17:15:49]KKMCreateOFDPacket done [17:15:49]NVStorageSaveData kkm_last_timestamp [17:15:49]File name is /storage/kkm_last_timestamp [17:15:49]Write 4 bytes [17:15:49]NVStorageSaveData done [17:15:49]ExternCall_PrintAddStr [17:15:49]wPrintStart [17:15:49]Write to MH i2c: 01 00 00 86 A6 2C [17:15:49]Write i2c OK [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: 01 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: 01 07 00 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: 01 07 00 86 A6 00 00 00 00 00 FF 0F 41 [17:15:49]RasterBufferAndPrint [17:15:49]line Счет N : (1)1036363 [17:15:49]line ИНН: 02508201610067 [17:15:49]line Контрольно-Кассовый Чек [17:15:49]line ПРОДАЖА [17:15:49]line ТРК (МРК, ГНК) : 13 [17:15:49]line Товар: 2710124500 [17:15:49]line Аи-95-К-5 [17:15:49]line 26.960 * 74.20 [17:15:49]line = 2000.43 [17:15:49]line НДС 12% НСП 1% [17:15:49]line > о реализуемом товаре [17:15:49]line ИТОГО: 2000.43 [17:15:49]line НСП 1% : 17.70 [17:15:49]line НДС 12% : 212.43 [17:15:49]line Наличными: 0.00 [17:15:49]line Безнал.: 2000.43 [17:15:49]line Место: АЗС № 94 "Партнер Нефть" [17:15:49]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [17:15:49]line СНО: Общий режим [17:15:49]line Чек 369 18.08.2024 17:15 [17:15:49]line Смена: 449 ФФД: 1.0 [17:15:49]line ЗНМ: 0300000099 [17:15:49]line РНМ: 0000000000091865 [17:15:49]line Версия ККМ: 001 [17:15:49]line Платежная система: O! деньги [17:15:49]line ФМ: 0000000000871820 [17:15:49]line ФД: 260811 [17:15:49]line ФПД: 120405890715680 [17:15:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T171553&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260811&fm=120405890715680&tin=02508201610067®Number=0000000000091865&sum=200043 [17:15:49]written 0, free lines is 4095 [17:15:49]OFD Sender: Processing packet 260811 [packets to send 192, broken 191] [17:15:49]ProducePacketName [17:15:49]name=ofd_packets/00260811 [17:15:49]OFD Sender: To server: pG, [17:15:49]CommunicateWithHost lk.salyk.kg:30040 [17:15:49]ConnectInit lk.salyk.kg [17:15:49]Connected sock=10 [17:15: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 30 0F 01 00 00 C1 CF 07 01 8F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 49 2C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CB FA 03 00 35 04 06 00 6D 82 2E 58 50 20 75 EF A2 06 5A 30 81 44 [17:15:49]Write to MH i2c: 01 00 00 B0 A6 56 [17:15:49]Write i2c OK [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: 01 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: 01 07 00 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: 01 07 00 B0 A6 00 00 00 00 00 82 0C EB [17:15:49]RasterBufferAndPrint [17:15:49]line [17:15:49]line [17:15:49]line [17:15:49]line [17:15:49]line [17:15:49]written 0, free lines is 3207 [17:15:49]MH_Cut [17:15:49]Write to MH i2c: D1 01 00 B7 A6 01 2F [17:15:49]Write i2c OK [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: D1 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: D1 01 00 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: D1 01 00 B7 A6 00 2E [17:15:49]Write to MH i2c: 01 00 00 B8 A6 5E [17:15:49]Write i2c OK [17:15:49]MH_I2C_Read... [17:15: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 30 4F 00 00 00 CB D4 47 00 DC 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 30 10 04 04 00 CB FA 03 00 F4 03 04 00 9D D5 C1 66 B6 04 01 00 00 EA BB 7F 15 FA 36 C2 76 [17:15:49]CommunicateWithHost err = 0 [17:15:49]CheckOFDResponse [17:15:49]1017 (14) - 77093643461234 [17:15:49]1041 (16) - 0000000000871820 [17:15:49]1040 (4) - 260811 [17:15:49]1012 (4) - 18.08.2024 11:06 [17:15:49]1206 (1) - 0 [17:15:49]OFD Sender: Remove packet 260811 [17:15:49]ProducePacketName [17:15:49]name=ofd_packets/00260811 [17:15:49]NVStorageDeleteData [17:15:50]OFD Sender: No OFD packet to send [17:15:50]*** Cut start [17:15:50]*** Purtial cut [17:15:50]*** Stage 1: CUTSNS_PIN = 1 [17:15:52]Read from MH i2c: 01 [17:15:52]MH_I2C_Read... [17:15:52]*** Stop cut motor [17:15:52]*** Cut end [17:15:52]Read from MH i2c: 01 07 00 [17:15:52]MH_I2C_Read... [17:15:52]Read from MH i2c: 01 07 00 B8 A6 00 00 00 00 00 FF 0F 73 [17:15:52]process_action close_receipt done [17:15:52]requested_data is exist [17:15:52]produce_requested_data [17:15:52]requested_item fm.sn is exist - process it [17:15:52]wFMCommunicate request_size=4 [17:15:52]MH_SAM_APDU [17:15:52]CAPDU: 80 11 00 00 [17:15:52]Write to MH i2c: E2 08 00 B9 A6 80 11 00 00 00 00 00 00 D9 [17:15:52]Write i2c OK [17:15:52]MH_I2C_Read... [17:15:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:52]Read from MH i2c: E2 [17:15:52]MH_I2C_Read... [17:15:52]Read from MH i2c: E2 17 00 [17:15:52]MH_I2C_Read... [17:15:52]Read from MH i2c: E2 17 00 B9 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 26 [17:15:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:15:52]wFMCommunicate OK [17:15:52]requested_item fd.num is exist - process it [17:15:52]SAM_PROTO_GetFieldsCounters [17:15:52]wFMCommunicate request_size=4 [17:15:52]MH_SAM_APDU [17:15:52]CAPDU: 80 13 00 00 [17:15:52]Write to MH i2c: E2 08 00 BA A6 80 13 00 00 00 00 00 00 DC [17:15:52]Write i2c OK [17:15:52]MH_I2C_Read... [17:15:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:15:53]Read from MH i2c: E2 [17:15:53]MH_I2C_Read... [17:15:53]Read from MH i2c: E2 62 00 [17:15:53]MH_I2C_Read... [17:15:53]Read from MH i2c: E2 62 00 BA A6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 CB FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 DB [17:15: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 CB FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:15:53]wFMCommunicate OK [17:15:53]SAM_PROTO_GetFieldsCounters done [17:15:53]requested_item shift.num is exist - process it [17:15:53]requested_item shift.opened is exist - process it [17:15:53]req_shift_opened [17:15:53]FM_GetShiftState [17:15:53]SAM_PROTO_GetShiftState [17:15:53]wFMCommunicate request_size=4 [17:15:53]MH_SAM_APDU [17:15:53]CAPDU: 80 13 01 00 [17:15:53]Write to MH i2c: E2 08 00 BB A6 80 13 01 00 00 00 00 00 DE [17:15:53]Write i2c OK [17:15:53]MH_I2C_Read... [17:15:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:53]Read from MH i2c: E2 [17:15:53]MH_I2C_Read... [17:15:53]Read from MH i2c: E2 0E 00 [17:15:53]MH_I2C_Read... [17:15:53]Read from MH i2c: E2 0E 00 BB A6 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 1B [17:15:53]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:15:53]wFMCommunicate OK [17:15:53]SAM_PROTO_GetShiftState done [17:15:53]FM_GetShiftState done [17:15:53]req_shift_opened done [17:15:53]requested_item shift.open_date is exist - process it [17:15:53]req_shift_open_date [17:15:53]req_shift_open_date done [17:15:53]produce_requested_data done [17:15:53]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260811,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [17:15:53]process_action_free close_receipt [17:15:53]json_value_free [17:15:53]json_value_free done [17:15:53]process_json_proto returns [17:15:53]Send response to host [17:15:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260811,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [17:15:53]free response buf [17:15:53]execute_script done [17:15:53]execute_script returns [17:15:53]free content buf [17:15:53]Sock 9.Close socket [17:15:53]Sock 9.Thread stoped [17:15:55]OFD Sender: No OFD packet to send [17:16:00]OFD Sender: No OFD packet to send [17:16:05]OFD Sender: No OFD packet to send [17:16:10]OFD Sender: No OFD packet to send [17:16:15]OFD Sender: No OFD packet to send [17:16:20]OFD Sender: No OFD packet to send [17:16:25]OFD Sender: No OFD packet to send [17:16:30]OFD Sender: No OFD packet to send [17:16:35]OFD Sender: No OFD packet to send [17:16:40]OFD Sender: No OFD packet to send [17:16:45]OFD Sender: No OFD packet to send [17:16:50]OFD Sender: No OFD packet to send [17:16:55]OFD Sender: No OFD packet to send [17:17:00]OFD Sender: No OFD packet to send [17:17:05]OFD Sender: No OFD packet to send [17:17:10]OFD Sender: No OFD packet to send [17:17:15]OFD Sender: No OFD packet to send [17:17:20]OFD Sender: No OFD packet to send [17:17:25]OFD Sender: No OFD packet to send [17:17:30]OFD Sender: No OFD packet to send [17:17:35]OFD Sender: No OFD packet to send [17:17:40]OFD Sender: No OFD packet to send [17:17:45]OFD Sender: No OFD packet to send [17:17:50]OFD Sender: No OFD packet to send [17:17:55]OFD Sender: No OFD packet to send [17:18:00]OFD Sender: No OFD packet to send [17:18:05]OFD Sender: No OFD packet to send [17:18:10]OFD Sender: No OFD packet to send [17:18:15]OFD Sender: No OFD packet to send [17:18:20]OFD Sender: No OFD packet to send [17:18:25]OFD Sender: No OFD packet to send [17:18:30]OFD Sender: No OFD packet to send [17:18:35]OFD Sender: No OFD packet to send [17:18:40]OFD Sender: No OFD packet to send [17:18:45]OFD Sender: No OFD packet to send [17:18:50]OFD Sender: No OFD packet to send [17:18:55]OFD Sender: No OFD packet to send [17:19:00]OFD Sender: No OFD packet to send [17:19:05]OFD Sender: No OFD packet to send [17:19:10]OFD Sender: No OFD packet to send [17:19:15]OFD Sender: No OFD packet to send [17:19:20]OFD Sender: No OFD packet to send [17:19:25]OFD Sender: No OFD packet to send [17:19:30]OFD Sender: No OFD packet to send [17:19:35]OFD Sender: No OFD packet to send [17:19:40]OFD Sender: No OFD packet to send [17:19:44]accept exits with 7 [17:19:44]New connection [17:19:44]New thread 3066473828 created [17:19:44]Thread 3066617188 joined [17:19:44]Waiting for new connection... [17:19:44] Sock 7.Parse request [17:19:44]Sock 7.Check first char [17:19:44]Sock 7.First char is OK [17:19:44]request: POST /json_proto HTTP/1.0 [17:19:44]Method: POST [17:19:44]URL: /json_proto [17:19:44]Method is POST - this is cgi request [17:19:44]url: /json_proto [17:19:44]query_string will be loaded in cgi processing [17:19:44]execute_cgi json_proto POST (null) [17:19:44]execute_cgi path=json_proto method=POST [17:19:44]POST find Content-Length [17:19:44]Host: 172.17.55.133:8080 [17:19:44]Content-Length: 683 [17:19:44]Content-Type: application/json [17:19:44] [17:19:44]POST finish read [17:19:44]Found Content-Length = 683 [17:19:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036364", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:44]execute_script... [17:19: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)1036364", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:44]POST & json_proto [17:19:44]process_json_proto [17:19:44]json parsed OK: [17:19:44]protocol is kg_v1.0 [17:19:44]action value=close_receipt [17:19:44]process_action close_receipt [17:19:44]cmd_close_receipt [17:19:44]MH_GetDate [17:19:44]Write to MH i2c: F0 00 00 BC A6 51 [17:19:44]Write i2c OK [17:19:44]MH_I2C_Read... [17:19:44]Read from MH i2c: F0 [17:19:44]MH_I2C_Read... [17:19:44]Read from MH i2c: F0 09 00 [17:19:44]MH_I2C_Read... [17:19:44]Read from MH i2c: F0 09 00 BC A6 00 36 2D C2 66 34 48 D8 65 9E [17:19:44]GetLastDocTimeStamp 1724001353 [17:19:44]current date 1724001590 [17:19:44]FM_GetShiftState [17:19:44]SAM_PROTO_GetShiftState [17:19:44]wFMCommunicate request_size=4 [17:19:44]MH_SAM_APDU [17:19:44]CAPDU: 80 13 01 00 [17:19:44]Write to MH i2c: E2 08 00 BD A6 80 13 01 00 00 00 00 00 E0 [17:19:44]Write i2c OK [17:19:44]MH_I2C_Read... [17:19:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:44]Read from MH i2c: E2 [17:19:44]MH_I2C_Read... [17:19:44]Read from MH i2c: E2 0E 00 [17:19:44]MH_I2C_Read... [17:19:44]Read from MH i2c: E2 0E 00 BD A6 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 1D [17:19:44]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:19:44]wFMCommunicate OK [17:19:44]SAM_PROTO_GetShiftState done [17:19:44]FM_GetShiftState done [17:19:44]opened in 1723940556 [17:19:44]opened+sec_in_day 1724026956 [17:19:44]quantity*price = 100021 [17:19:44]sum+1 = 100023 [17:19:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 370 18.08.2024 17:19 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260812 ФПД: 234725696512102 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T171950&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260812&fm=234725696512102&tin=02508201610067®Number=0000000000091865&sum=100000 [17:19:45]StoreToDocumentArchive [17:19:45]shift 449 fd 260812 [17:19:45]save to /storage/0449/doc_00260812 [17:19:45]save last doc name /storage/0449/doc_00260812 to /storage/kkm_last_doc_name [17:19:45]save OK [17:19:45]Clear old archive folders... [17:19:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:19:45]tlvbuf is 00383100 [17:19:45]SAM_PROTO_ClearQueue [17:19:45]wFMCommunicate request_size=4 [17:19:45]MH_SAM_APDU [17:19:45]CAPDU: 80 09 00 00 [17:19:45]Write to MH i2c: E2 08 00 CA A6 80 09 00 00 00 00 00 00 E2 [17:19:45]Write i2c OK [17:19:45]MH_I2C_Read... [17:19:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:45]Read from MH i2c: E2 [17:19:45]MH_I2C_Read... [17:19:45]Read from MH i2c: E2 03 00 [17:19:45]MH_I2C_Read... [17:19:45]Read from MH i2c: E2 03 00 CA A6 00 90 00 E4 [17:19:45]RAPDU: 90 00 [17:19:45]wFMCommunicate OK [17:19:45]SAM_PROTO_ClearQueue done [17:19:45]KKMCreateOFDPacket [17:19:45]OFDProtocolAddRootSTLVToBuf [17:19:45]FM_MakeSignedData [17:19:45]FM_MakeSignedData [17:19:45]SAM_PROTO_SignData [17:19:45]wFMCommunicate request_size=4 [17:19:45]MH_SAM_APDU [17:19:45]CAPDU: 80 0D 01 02 [17:19:45]Write to MH i2c: E2 08 00 CB A6 80 0D 01 02 00 00 00 00 EA [17:19:45]Write i2c OK [17:19:45]MH_I2C_Read... [17:19:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:45]Read from MH i2c: E2 [17:19:45]MH_I2C_Read... [17:19:45]Read from MH i2c: E2 03 00 [17:19:45]MH_I2C_Read... [17:19:45]Read from MH i2c: E2 03 00 CB A6 00 90 00 E5 [17:19:45]RAPDU: 90 00 [17:19:45]wFMCommunicate OK [17:19:45]wFMCommunicate request_size=255 [17:19:45]MH_SAM_APDU [17:19: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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 36 2D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CC FA 03 00 35 04 06 00 D5 [17:19:45]Write to MH i2c: E2 02 01 CC A6 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 36 2D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CC FA 03 00 35 04 06 00 D5 00 00 F2 [17:19:45]Write i2c OK [17:19:45]MH_I2C_Read... [17:19:45]OFD Sender: No OFD packet to send [17:19:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:45]Read from MH i2c: E2 [17:19:45]MH_I2C_Read... [17:19:45]Read from MH i2c: E2 03 00 [17:19:45]MH_I2C_Read... [17:19:45]Read from MH i2c: E2 03 00 CC A6 00 90 00 E6 [17:19:45]RAPDU: 90 00 [17:19:45]wFMCommunicate OK [17:19:45]wFMCommunicate request_size=10 [17:19:45]MH_SAM_APDU [17:19:45]CAPDU: 80 0D 02 02 05 7B 55 C2 A0 66 [17:19:45]Write to MH i2c: E2 0D 00 CD A6 80 0D 02 02 05 00 7B 55 C2 A0 66 00 00 8F [17:19:45]Write i2c OK [17:19:45]MH_I2C_Read... [17:19:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:45]Read from MH i2c: E2 [17:19:45]MH_I2C_Read... [17:19:45]Read from MH i2c: E2 03 00 [17:19:45]MH_I2C_Read... [17:19:45]Read from MH i2c: E2 03 00 CD A6 00 90 00 E7 [17:19:45]RAPDU: 90 00 [17:19:45]wFMCommunicate OK [17:19:45]wFMCommunicate request_size=4 [17:19:45]MH_SAM_APDU [17:19:45]CAPDU: 80 0D 03 02 [17:19:45]Write to MH i2c: E2 08 00 CE A6 80 0D 03 02 00 00 00 00 EF [17:19:45]Write i2c OK [17:19:45]MH_I2C_Read... [17:19:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:46]Read from MH i2c: E2 [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: E2 0B 00 [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: E2 0B 00 CE A6 00 5A 3F D4 AD 0F 96 9D 39 90 00 85 [17:19:46]RAPDU: 5A 3F D4 AD 0F 96 9D 39 90 00 [17:19:46]wFMCommunicate OK [17:19:46]SAM_PROTO_SignData done [17:19:46]FM_MakeSignedData done [17:19:46]CreateOFDProtocolMessage [17:19:46]wFMCommunicate request_size=4 [17:19:46]MH_SAM_APDU [17:19:46]CAPDU: 80 11 00 00 [17:19:46]Write to MH i2c: E2 08 00 CF A6 80 11 00 00 00 00 00 00 EF [17:19:46]Write i2c OK [17:19:46]MH_I2C_Read... [17:19:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:46]Read from MH i2c: E2 [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: E2 17 00 [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: E2 17 00 CF A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 3C [17:19:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:19:46]wFMCommunicate OK [17:19:46]CreateOFDProtocolMessage done [17:19:46]OFDSenderStorePacket 260812 [17:19:46]StoreOFDPacket docnum=260812 [17:19:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 9B E1 07 01 80 35 5A 03 01 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 36 2D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CC FA 03 00 35 04 06 00 D5 7B 55 C2 A0 66 5A 3F D4 AD 0F 96 9D 39 [17:19:46]CheckFolder [17:19:46]dirname=/storage/ofd_packets [17:19:46]CheckFolder done [17:19:46]ProducePacketName [17:19:46]name=ofd_packets/00260812 [17:19:46]NVStorageSaveData ofd_packets/00260812 [17:19:46]File name is /storage/ofd_packets/00260812 [17:19:46]Write 301 bytes [17:19:46]NVStorageSaveData done [17:19:46]OFDSenderStorePacket done [17:19:46]KKMCreateOFDPacket done [17:19:46]NVStorageSaveData kkm_last_timestamp [17:19:46]File name is /storage/kkm_last_timestamp [17:19:46]Write 4 bytes [17:19:46]NVStorageSaveData done [17:19:46]ExternCall_PrintAddStr [17:19:46]wPrintStart [17:19:46]Write to MH i2c: 01 00 00 D0 A6 76 [17:19:46]Write i2c OK [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: 01 [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: 01 07 00 [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: 01 07 00 D0 A6 00 00 00 00 00 FF 0F 8B [17:19:46]RasterBufferAndPrint [17:19:46]line Счет N : (1)1036364 [17:19:46]line ИНН: 02508201610067 [17:19:46]line Контрольно-Кассовый Чек [17:19:46]line ПРОДАЖА [17:19:46]line ТРК (МРК, ГНК) : 13 [17:19:46]line Товар: 2710124500 [17:19:46]line Аи-95-К-5 [17:19:46]line 13.480 * 74.20 [17:19:46]line = 1000.22 [17:19:46]line НДС 12% НСП 1% [17:19:46]line > о реализуемом товаре [17:19:46]line ОКРУГЛЕНИЕ: -0.22 [17:19:46]line ИТОГО: 1000.00 [17:19:46]line Внесено: 1000.00 [17:19:46]line СДАЧА: 0.00 [17:19:46]line НСП 1% : 8.85 [17:19:46]line НДС 12% : 106.22 [17:19:46]line Наличными: 1000.00 [17:19:46]line Безнал.: 0.00 [17:19:46]line Место: АЗС № 94 "Партнер Нефть" [17:19:46]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [17:19:46]line СНО: Общий режим [17:19:46]line Чек 370 18.08.2024 17:19 [17:19:46]line Смена: 449 ФФД: 1.0 [17:19:46]line ЗНМ: 0300000099 [17:19:46]line РНМ: 0000000000091865 [17:19:46]line Версия ККМ: 001 [17:19:46]line ФМ: 0000000000871820 [17:19:46]line ФД: 260812 [17:19:46]line ФПД: 234725696512102 [17:19:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T171950&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260812&fm=234725696512102&tin=02508201610067®Number=0000000000091865&sum=100000 [17:19:46]OFD Sender: Processing packet 260812 [packets to send 192, broken 191] [17:19:46]ProducePacketName [17:19:46]name=ofd_packets/00260812 [17:19:46]OFD Sender: To server: pG, [17:19:46]CommunicateWithHost lk.salyk.kg:30040 [17:19:46]ConnectInit lk.salyk.kg [17:19:46]written 0, free lines is 4095 [17:19:46]Connected sock=10 [17:19: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 30 0F 01 00 00 9B E1 07 01 80 35 5A 03 01 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 36 2D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CC FA 03 00 35 04 06 00 D5 7B 55 C2 A0 66 5A 3F D4 AD 0F 96 9D 39 [17:19: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 30 4F 00 00 00 BB 8F 47 00 A1 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CC FA 03 00 F4 03 04 00 8A D6 C1 66 B6 04 01 00 00 16 5F 77 C4 1C A7 86 96 [17:19:46]CommunicateWithHost err = 0 [17:19:46]CheckOFDResponse [17:19:46]1017 (14) - 77093643461234 [17:19:46]1041 (16) - 0000000000871820 [17:19:46]1040 (4) - 260812 [17:19:46]1012 (4) - 18.08.2024 11:10 [17:19:46]1206 (1) - 0 [17:19:46]OFD Sender: Remove packet 260812 [17:19:46]ProducePacketName [17:19:46]name=ofd_packets/00260812 [17:19:46]NVStorageDeleteData [17:19:46]Write to MH i2c: 01 00 00 FB A6 A1 [17:19:46]Write i2c OK [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: 01 [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: 01 07 00 [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: 01 07 00 FB A6 00 00 00 00 00 6C 0C 20 [17:19:46]RasterBufferAndPrint [17:19:46]line [17:19:46]line [17:19:46]line [17:19:46]line [17:19:46]line [17:19:46]written 0, free lines is 3183 [17:19:46]MH_Cut [17:19:46]Write to MH i2c: D1 01 00 02 A7 01 7B [17:19:46]Write i2c OK [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: D1 [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: D1 01 00 [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: D1 01 00 02 A7 00 7A [17:19:46]Write to MH i2c: 01 00 00 03 A7 AA [17:19:46]Write i2c OK [17:19:46]MH_I2C_Read... [17:19:47]OFD Sender: No OFD packet to send [17:19:48]*** Cut start [17:19:48]*** Purtial cut [17:19:48]*** Stage 1: CUTSNS_PIN = 1 [17:19:50]Read from MH i2c: 01 [17:19:50]MH_I2C_Read... [17:19:50]*** Stop cut motor [17:19:50]*** Cut end [17:19:50]Read from MH i2c: 01 07 00 [17:19:50]MH_I2C_Read... [17:19:50]Read from MH i2c: 01 07 00 03 A7 00 00 00 00 00 FF 0F BF [17:19:50]process_action close_receipt done [17:19:50]requested_data is exist [17:19:50]produce_requested_data [17:19:50]requested_item fm.sn is exist - process it [17:19:50]wFMCommunicate request_size=4 [17:19:50]MH_SAM_APDU [17:19:50]CAPDU: 80 11 00 00 [17:19:50]Write to MH i2c: E2 08 00 04 A7 80 11 00 00 00 00 00 00 25 [17:19:50]Write i2c OK [17:19:50]MH_I2C_Read... [17:19:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:50]Read from MH i2c: E2 [17:19:50]MH_I2C_Read... [17:19:50]Read from MH i2c: E2 17 00 [17:19:50]MH_I2C_Read... [17:19:50]Read from MH i2c: E2 17 00 04 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 72 [17:19:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:19:50]wFMCommunicate OK [17:19:50]requested_item fd.num is exist - process it [17:19:50]SAM_PROTO_GetFieldsCounters [17:19:50]wFMCommunicate request_size=4 [17:19:50]MH_SAM_APDU [17:19:50]CAPDU: 80 13 00 00 [17:19:50]Write to MH i2c: E2 08 00 05 A7 80 13 00 00 00 00 00 00 28 [17:19:50]Write i2c OK [17:19:50]MH_I2C_Read... [17:19:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:50]Read from MH i2c: E2 [17:19:50]MH_I2C_Read... [17:19:50]Read from MH i2c: E2 62 00 [17:19:50]MH_I2C_Read... [17:19:50]Read from MH i2c: E2 62 00 05 A7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 CC FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 72 01 00 00 5E 04 04 00 72 01 00 00 57 04 04 00 73 01 00 00 19 04 04 00 00 00 00 00 90 00 2B [17:19: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 CC FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 72 01 00 00 5E 04 04 00 72 01 00 00 57 04 04 00 73 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:50]wFMCommunicate OK [17:19:50]SAM_PROTO_GetFieldsCounters done [17:19:50]requested_item shift.num is exist - process it [17:19:50]requested_item shift.opened is exist - process it [17:19:50]req_shift_opened [17:19:50]FM_GetShiftState [17:19:50]SAM_PROTO_GetShiftState [17:19:50]wFMCommunicate request_size=4 [17:19:50]MH_SAM_APDU [17:19:50]CAPDU: 80 13 01 00 [17:19:50]Write to MH i2c: E2 08 00 06 A7 80 13 01 00 00 00 00 00 2A [17:19:50]Write i2c OK [17:19:50]MH_I2C_Read... [17:19:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:50]Read from MH i2c: E2 [17:19:50]MH_I2C_Read... [17:19:50]Read from MH i2c: E2 0E 00 [17:19:50]MH_I2C_Read... [17:19:50]Read from MH i2c: E2 0E 00 06 A7 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 67 [17:19:50]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:19:50]wFMCommunicate OK [17:19:50]SAM_PROTO_GetShiftState done [17:19:50]FM_GetShiftState done [17:19:50]req_shift_opened done [17:19:50]requested_item shift.open_date is exist - process it [17:19:50]req_shift_open_date [17:19:50]req_shift_open_date done [17:19:50]produce_requested_data done [17:19:50]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260812,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [17:19:50]process_action_free close_receipt [17:19:50]json_value_free [17:19:50]json_value_free done [17:19:50]process_json_proto returns [17:19:50]Send response to host [17:19:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260812,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [17:19:50]free response buf [17:19:50]execute_script done [17:19:50]execute_script returns [17:19:50]free content buf [17:19:50]Sock 7.Close socket [17:19:50]Sock 7.Thread stoped [17:19:52]OFD Sender: No OFD packet to send [17:19:57]OFD Sender: No OFD packet to send [17:20:02]OFD Sender: No OFD packet to send [17:20:07]OFD Sender: No OFD packet to send [17:20:12]OFD Sender: No OFD packet to send [17:20:17]OFD Sender: No OFD packet to send [17:20:22]OFD Sender: No OFD packet to send [17:20:27]OFD Sender: No OFD packet to send [17:20:32]OFD Sender: No OFD packet to send [17:20:37]OFD Sender: No OFD packet to send [17:20:39]accept exits with 9 [17:20:39]New connection [17:20:39]New thread 3066617188 created [17:20:39]Thread 3066473828 joined [17:20:39]Waiting for new connection... [17:20:39] Sock 9.Parse request [17:20:39]Sock 9.Check first char [17:20:39]Sock 9.First char is OK [17:20:39]request: POST /json_proto HTTP/1.0 [17:20:39]Method: POST [17:20:39]URL: /json_proto [17:20:39]Method is POST - this is cgi request [17:20:39]url: /json_proto [17:20:39]query_string will be loaded in cgi processing [17:20:39]execute_cgi json_proto POST (null) [17:20:39]execute_cgi path=json_proto method=POST [17:20:39]POST find Content-Length [17:20:39]Host: 172.17.55.133:8080 [17:20:39]Content-Length: 679 [17:20:39]Content-Type: application/json [17:20:39] [17:20:39]POST finish read [17:20:39]Found Content-Length = 679 [17:20:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:39]execute_script... [17:20: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)1036365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:39]POST & json_proto [17:20:39]process_json_proto [17:20:39]json parsed OK: [17:20:39]protocol is kg_v1.0 [17:20:39]action value=close_receipt [17:20:39]process_action close_receipt [17:20:39]cmd_close_receipt [17:20:39]MH_GetDate [17:20:39]Write to MH i2c: F0 00 00 07 A7 9D [17:20:39]Write i2c OK [17:20:39]MH_I2C_Read... [17:20:39]Read from MH i2c: F0 [17:20:39]MH_I2C_Read... [17:20:39]Read from MH i2c: F0 09 00 [17:20:39]MH_I2C_Read... [17:20:39]Read from MH i2c: F0 09 00 07 A7 00 6D 2D C2 66 34 48 D8 65 21 [17:20:39]GetLastDocTimeStamp 1724001590 [17:20:39]current date 1724001645 [17:20:39]FM_GetShiftState [17:20:39]SAM_PROTO_GetShiftState [17:20:39]wFMCommunicate request_size=4 [17:20:39]MH_SAM_APDU [17:20:39]CAPDU: 80 13 01 00 [17:20:39]Write to MH i2c: E2 08 00 08 A7 80 13 01 00 00 00 00 00 2C [17:20:39]Write i2c OK [17:20:39]MH_I2C_Read... [17:20:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:39]Read from MH i2c: E2 [17:20:39]MH_I2C_Read... [17:20:39]Read from MH i2c: E2 0E 00 [17:20:39]MH_I2C_Read... [17:20:39]Read from MH i2c: E2 0E 00 08 A7 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 69 [17:20:39]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:20:39]wFMCommunicate OK [17:20:39]SAM_PROTO_GetShiftState done [17:20:39]FM_GetShiftState done [17:20:39]opened in 1723940556 [17:20:39]opened+sec_in_day 1724026956 [17:20:39]quantity*price = 70037 [17:20:39]sum+1 = 70038 [17:20:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 371 18.08.2024 17:20 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260813 ФПД: 238203292866260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T172045&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260813&fm=238203292866260&tin=02508201610067®Number=0000000000091865&sum=70000 [17:20:40]StoreToDocumentArchive [17:20:40]shift 449 fd 260813 [17:20:40]save to /storage/0449/doc_00260813 [17:20:40]save last doc name /storage/0449/doc_00260813 to /storage/kkm_last_doc_name [17:20:40]save OK [17:20:40]Clear old archive folders... [17:20:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:20:40]tlvbuf is 00351D80 [17:20:40]SAM_PROTO_ClearQueue [17:20:40]wFMCommunicate request_size=4 [17:20:40]MH_SAM_APDU [17:20:40]CAPDU: 80 09 00 00 [17:20:40]Write to MH i2c: E2 08 00 15 A7 80 09 00 00 00 00 00 00 2E [17:20:40]Write i2c OK [17:20:40]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 [17:20:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 03 00 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 03 00 15 A7 00 90 00 30 [17:20:41]RAPDU: 90 00 [17:20:41]wFMCommunicate OK [17:20:41]SAM_PROTO_ClearQueue done [17:20:41]KKMCreateOFDPacket [17:20:41]OFDProtocolAddRootSTLVToBuf [17:20:41]FM_MakeSignedData [17:20:41]FM_MakeSignedData [17:20:41]SAM_PROTO_SignData [17:20:41]wFMCommunicate request_size=4 [17:20:41]MH_SAM_APDU [17:20:41]CAPDU: 80 0D 01 02 [17:20:41]Write to MH i2c: E2 08 00 16 A7 80 0D 01 02 00 00 00 00 36 [17:20:41]Write i2c OK [17:20:41]MH_I2C_Read... [17:20:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:20:41]Read from MH i2c: E2 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 03 00 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 03 00 16 A7 00 90 00 31 [17:20:41]RAPDU: 90 00 [17:20:41]wFMCommunicate OK [17:20:41]wFMCommunicate request_size=255 [17:20:41]MH_SAM_APDU [17:20:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 73 01 00 00 F4 03 04 00 6D 2D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CD FA 03 00 35 04 06 00 D8 [17:20:41]Write to MH i2c: E2 02 01 17 A7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 73 01 00 00 F4 03 04 00 6D 2D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CD FA 03 00 35 04 06 00 D8 00 00 34 [17:20:41]Write i2c OK [17:20:41]MH_I2C_Read... [17:20:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:41]Read from MH i2c: E2 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 03 00 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 03 00 17 A7 00 90 00 32 [17:20:41]RAPDU: 90 00 [17:20:41]wFMCommunicate OK [17:20:41]wFMCommunicate request_size=10 [17:20:41]MH_SAM_APDU [17:20:41]CAPDU: 80 0D 02 02 05 A5 06 A7 D6 D4 [17:20:41]Write to MH i2c: E2 0D 00 18 A7 80 0D 02 02 05 00 A5 06 A7 D6 D4 00 00 3F [17:20:41]Write i2c OK [17:20:41]MH_I2C_Read... [17:20:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:41]Read from MH i2c: E2 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 03 00 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 03 00 18 A7 00 90 00 33 [17:20:41]RAPDU: 90 00 [17:20:41]wFMCommunicate OK [17:20:41]wFMCommunicate request_size=4 [17:20:41]MH_SAM_APDU [17:20:41]CAPDU: 80 0D 03 02 [17:20:41]Write to MH i2c: E2 08 00 19 A7 80 0D 03 02 00 00 00 00 3B [17:20:41]Write i2c OK [17:20:41]MH_I2C_Read... [17:20:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:20:41]Read from MH i2c: E2 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 0B 00 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 0B 00 19 A7 00 97 36 39 E6 89 63 DD A4 90 00 95 [17:20:41]RAPDU: 97 36 39 E6 89 63 DD A4 90 00 [17:20:41]wFMCommunicate OK [17:20:41]SAM_PROTO_SignData done [17:20:41]FM_MakeSignedData done [17:20:41]CreateOFDProtocolMessage [17:20:41]wFMCommunicate request_size=4 [17:20:41]MH_SAM_APDU [17:20:41]CAPDU: 80 11 00 00 [17:20:41]Write to MH i2c: E2 08 00 1A A7 80 11 00 00 00 00 00 00 3B [17:20:41]Write i2c OK [17:20:41]MH_I2C_Read... [17:20:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:41]Read from MH i2c: E2 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 17 00 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 17 00 1A A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 88 [17:20:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:20:41]wFMCommunicate OK [17:20:41]CreateOFDProtocolMessage done [17:20:41]OFDSenderStorePacket 260813 [17:20:41]StoreOFDPacket docnum=260813 [17:20:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 D4 83 07 01 0E 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 73 01 00 00 F4 03 04 00 6D 2D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CD FA 03 00 35 04 06 00 D8 A5 06 A7 D6 D4 97 36 39 E6 89 63 DD A4 [17:20:41]CheckFolder [17:20:41]dirname=/storage/ofd_packets [17:20:41]CheckFolder done [17:20:41]ProducePacketName [17:20:41]name=ofd_packets/00260813 [17:20:41]NVStorageSaveData ofd_packets/00260813 [17:20:41]File name is /storage/ofd_packets/00260813 [17:20:41]Write 301 bytes [17:20:41]NVStorageSaveData done [17:20:41]OFDSenderStorePacket done [17:20:41]KKMCreateOFDPacket done [17:20:41]NVStorageSaveData kkm_last_timestamp [17:20:41]File name is /storage/kkm_last_timestamp [17:20:41]Write 4 bytes [17:20:41]NVStorageSaveData done [17:20:41]ExternCall_PrintAddStr [17:20:41]wPrintStart [17:20:41]Write to MH i2c: 01 00 00 1B A7 C2 [17:20:41]Write i2c OK [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: 01 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: 01 07 00 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: 01 07 00 1B A7 00 00 00 00 00 FF 0F D7 [17:20:41]RasterBufferAndPrint [17:20:41]line Счет N : (1)1036365 [17:20:41]line ИНН: 02508201610067 [17:20:41]line Контрольно-Кассовый Чек [17:20:41]line ПРОДАЖА [17:20:41]line ТРК (МРК, ГНК) : 32 [17:20:41]line Товар: 2710124130 [17:20:41]line Аи-92-К-5 [17:20:41]line 10.330 * 67.80 [17:20:41]line = 700.37 [17:20:41]line НДС 12% НСП 1% [17:20:41]line > о реализуемом товаре [17:20:41]line ОКРУГЛЕНИЕ: -0.37 [17:20:41]line ИТОГО: 700.00 [17:20:41]line Внесено: 700.00 [17:20:41]line СДАЧА: 0.00 [17:20:41]line НСП 1% : 6.20 [17:20:41]line НДС 12% : 74.38 [17:20:41]line Наличными: 700.00 [17:20:41]line Безнал.: 0.00 [17:20:41]line Место: АЗС № 94 "Партнер Нефть" [17:20:41]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [17:20:41]line СНО: Общий режим [17:20:41]line Чек 371 18.08.2024 17:20 [17:20:41]line Смена: 449 ФФД: 1.0 [17:20:41]line ЗНМ: 0300000099 [17:20:41]line РНМ: 0000000000091865 [17:20:41]line Версия ККМ: 001 [17:20:41]line ФМ: 0000000000871820 [17:20:41]line ФД: 260813 [17:20:41]line ФПД: 238203292866260 [17:20:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T172045&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260813&fm=238203292866260&tin=02508201610067®Number=0000000000091865&sum=70000 [17:20:41]OFD Sender: Processing packet 260813 [packets to send 192, broken 191] [17:20:41]ProducePacketName [17:20:41]name=ofd_packets/00260813 [17:20:41]OFD Sender: To server: pG, [17:20:41]CommunicateWithHost lk.salyk.kg:30040 [17:20:41]ConnectInit lk.salyk.kg [17:20:41]written 0, free lines is 4095 [17:20:41]Connected sock=10 [17:20: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 30 0F 01 00 00 D4 83 07 01 0E 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 73 01 00 00 F4 03 04 00 6D 2D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CD FA 03 00 35 04 06 00 D8 A5 06 A7 D6 D4 97 36 39 E6 89 63 DD A4 [17:20: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 30 4F 00 00 00 54 17 47 00 35 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 30 10 04 04 00 CD FA 03 00 F4 03 04 00 C2 D6 C1 66 B6 04 01 00 00 0A A1 DB 44 57 CF 2F 6A [17:20:42]CommunicateWithHost err = 0 [17:20:42]CheckOFDResponse [17:20:42]1017 (14) - 77093643461234 [17:20:42]1041 (16) - 0000000000871820 [17:20:42]1040 (4) - 260813 [17:20:42]1012 (4) - 18.08.2024 11:10 [17:20:42]1206 (1) - 0 [17:20:42]OFD Sender: Remove packet 260813 [17:20:42]ProducePacketName [17:20:42]name=ofd_packets/00260813 [17:20:42]NVStorageDeleteData [17:20:42]Write to MH i2c: 01 00 00 46 A7 ED [17:20:42]Write i2c OK [17:20:42]MH_I2C_Read... [17:20:42]Read from MH i2c: 01 [17:20:42]MH_I2C_Read... [17:20:42]Read from MH i2c: 01 07 00 [17:20:42]MH_I2C_Read... [17:20:42]Read from MH i2c: 01 07 00 46 A7 00 00 00 00 00 6B 0C 6B [17:20:42]RasterBufferAndPrint [17:20:42]line [17:20:42]line [17:20:42]line [17:20:42]line [17:20:42]line [17:20:42]written 0, free lines is 3183 [17:20:42]MH_Cut [17:20:42]Write to MH i2c: D1 01 00 4D A7 01 C6 [17:20:42]Write i2c OK [17:20:42]MH_I2C_Read... [17:20:42]Read from MH i2c: D1 [17:20:42]MH_I2C_Read... [17:20:42]Read from MH i2c: D1 01 00 [17:20:42]MH_I2C_Read... [17:20:42]Read from MH i2c: D1 01 00 4D A7 00 C5 [17:20:42]Write to MH i2c: 01 00 00 4E A7 F5 [17:20:42]Write i2c OK [17:20:42]MH_I2C_Read... [17:20:42]OFD Sender: No OFD packet to send [17:20:43]*** Cut start [17:20:43]*** Purtial cut [17:20:43]*** Stage 1: CUTSNS_PIN = 1 [17:20:45]Read from MH i2c: 01 [17:20:45]MH_I2C_Read... [17:20:45]*** Stop cut motor [17:20:45]*** Cut end [17:20:45]Read from MH i2c: 01 07 00 [17:20:45]MH_I2C_Read... [17:20:45]Read from MH i2c: 01 07 00 4E A7 00 00 00 00 00 FF 0F 0A [17:20:45]process_action close_receipt done [17:20:45]requested_data is exist [17:20:45]produce_requested_data [17:20:45]requested_item fm.sn is exist - process it [17:20:45]wFMCommunicate request_size=4 [17:20:45]MH_SAM_APDU [17:20:45]CAPDU: 80 11 00 00 [17:20:45]Write to MH i2c: E2 08 00 4F A7 80 11 00 00 00 00 00 00 70 [17:20:45]Write i2c OK [17:20:45]MH_I2C_Read... [17:20:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:45]Read from MH i2c: E2 [17:20:45]MH_I2C_Read... [17:20:45]Read from MH i2c: E2 17 00 [17:20:45]MH_I2C_Read... [17:20:45]Read from MH i2c: E2 17 00 4F A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 BD [17:20:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:20:45]wFMCommunicate OK [17:20:45]requested_item fd.num is exist - process it [17:20:45]SAM_PROTO_GetFieldsCounters [17:20:45]wFMCommunicate request_size=4 [17:20:45]MH_SAM_APDU [17:20:45]CAPDU: 80 13 00 00 [17:20:45]Write to MH i2c: E2 08 00 50 A7 80 13 00 00 00 00 00 00 73 [17:20:45]Write i2c OK [17:20:45]MH_I2C_Read... [17:20:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:20:45]Read from MH i2c: E2 [17:20:45]MH_I2C_Read... [17:20:45]Read from MH i2c: E2 62 00 [17:20:45]MH_I2C_Read... [17:20:45]Read from MH i2c: E2 62 00 50 A7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 CD FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 73 01 00 00 5E 04 04 00 73 01 00 00 57 04 04 00 74 01 00 00 19 04 04 00 00 00 00 00 90 00 7A [17:20: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 CD FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 73 01 00 00 5E 04 04 00 73 01 00 00 57 04 04 00 74 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:20:45]wFMCommunicate OK [17:20:45]SAM_PROTO_GetFieldsCounters done [17:20:45]requested_item shift.num is exist - process it [17:20:45]requested_item shift.opened is exist - process it [17:20:45]req_shift_opened [17:20:45]FM_GetShiftState [17:20:45]SAM_PROTO_GetShiftState [17:20:45]wFMCommunicate request_size=4 [17:20:45]MH_SAM_APDU [17:20:45]CAPDU: 80 13 01 00 [17:20:45]Write to MH i2c: E2 08 00 51 A7 80 13 01 00 00 00 00 00 75 [17:20:45]Write i2c OK [17:20:45]MH_I2C_Read... [17:20:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:45]Read from MH i2c: E2 [17:20:45]MH_I2C_Read... [17:20:45]Read from MH i2c: E2 0E 00 [17:20:45]MH_I2C_Read... [17:20:45]Read from MH i2c: E2 0E 00 51 A7 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B2 [17:20:45]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:20:45]wFMCommunicate OK [17:20:45]SAM_PROTO_GetShiftState done [17:20:45]FM_GetShiftState done [17:20:45]req_shift_opened done [17:20:45]requested_item shift.open_date is exist - process it [17:20:45]req_shift_open_date [17:20:45]req_shift_open_date done [17:20:45]produce_requested_data done [17:20:45]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260813,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [17:20:45]process_action_free close_receipt [17:20:45]json_value_free [17:20:45]json_value_free done [17:20:45]process_json_proto returns [17:20:45]Send response to host [17:20:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260813,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [17:20:45]free response buf [17:20:45]execute_script done [17:20:45]execute_script returns [17:20:45]free content buf [17:20:45]Sock 9.Close socket [17:20:45]Sock 9.Thread stoped [17:20:47]OFD Sender: No OFD packet to send [17:20:52]OFD Sender: No OFD packet to send [17:20:57]OFD Sender: No OFD packet to send [17:21:02]OFD Sender: No OFD packet to send [17:21:07]OFD Sender: No OFD packet to send [17:21:12]OFD Sender: No OFD packet to send [17:21:17]OFD Sender: No OFD packet to send [17:21:22]OFD Sender: No OFD packet to send [17:21:27]OFD Sender: No OFD packet to send [17:21:32]OFD Sender: No OFD packet to send [17:21:37]OFD Sender: No OFD packet to send [17:21:42]OFD Sender: No OFD packet to send [17:21:47]OFD Sender: No OFD packet to send [17:21:52]OFD Sender: No OFD packet to send [17:21:57]OFD Sender: No OFD packet to send [17:22:02]OFD Sender: No OFD packet to send [17:22:07]OFD Sender: No OFD packet to send [17:22:12]OFD Sender: No OFD packet to send [17:22:17]OFD Sender: No OFD packet to send [17:22:22]OFD Sender: No OFD packet to send [17:22:27]OFD Sender: No OFD packet to send [17:22:32]OFD Sender: No OFD packet to send [17:22:37]OFD Sender: No OFD packet to send [17:22:42]OFD Sender: No OFD packet to send [17:22:47]OFD Sender: No OFD packet to send [17:22:52]OFD Sender: No OFD packet to send [17:22:57]OFD Sender: No OFD packet to send [17:23:02]OFD Sender: No OFD packet to send [17:23:07]OFD Sender: No OFD packet to send [17:23:12]OFD Sender: No OFD packet to send [17:23:17]OFD Sender: No OFD packet to send [17:23:22]OFD Sender: No OFD packet to send [17:23:27]OFD Sender: No OFD packet to send [17:23:32]OFD Sender: No OFD packet to send [17:23:37]OFD Sender: No OFD packet to send [17:23:42]OFD Sender: No OFD packet to send [17:23:47]OFD Sender: No OFD packet to send [17:23:52]OFD Sender: No OFD packet to send [17:23:57]OFD Sender: No OFD packet to send [17:24:02]OFD Sender: No OFD packet to send [17:24:07]OFD Sender: No OFD packet to send [17:24:12]OFD Sender: No OFD packet to send [17:24:17]OFD Sender: No OFD packet to send [17:24:22]OFD Sender: No OFD packet to send [17:24:27]OFD Sender: No OFD packet to send [17:24:32]OFD Sender: No OFD packet to send [17:24:38]OFD Sender: No OFD packet to send [17:24:43]OFD Sender: No OFD packet to send [17:24:48]OFD Sender: No OFD packet to send [17:24:53]OFD Sender: No OFD packet to send [17:24:58]OFD Sender: No OFD packet to send [17:25:03]OFD Sender: No OFD packet to send [17:25:08]OFD Sender: No OFD packet to send [17:25:13]OFD Sender: No OFD packet to send [17:25:18]OFD Sender: No OFD packet to send [17:25:23]OFD Sender: No OFD packet to send [17:25:28]OFD Sender: No OFD packet to send [17:25:33]OFD Sender: No OFD packet to send [17:25:38]OFD Sender: No OFD packet to send [17:25:43]OFD Sender: No OFD packet to send [17:25:48]OFD Sender: No OFD packet to send [17:25:53]OFD Sender: No OFD packet to send [17:25:58]OFD Sender: No OFD packet to send [17:26:00]accept exits with 7 [17:26:00]New connection [17:26:00]New thread 3066473828 created [17:26:00]Thread 3066617188 joined [17:26:00]Waiting for new connection... [17:26:00] Sock 7.Parse request [17:26:00]Sock 7.Check first char [17:26:00]Sock 7.First char is OK [17:26:00]request: POST /json_proto HTTP/1.0 [17:26:00]Method: POST [17:26:00]URL: /json_proto [17:26:00]Method is POST - this is cgi request [17:26:00]url: /json_proto [17:26:00]query_string will be loaded in cgi processing [17:26:00]execute_cgi json_proto POST (null) [17:26:00]execute_cgi path=json_proto method=POST [17:26:00]POST find Content-Length [17:26:00]Host: 172.17.55.133:8080 [17:26:00]Content-Length: 678 [17:26:00]Content-Type: application/json [17:26:00] [17:26:00]POST finish read [17:26:00]Found Content-Length = 678 [17:26:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:00]execute_script... [17:26: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)1036367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:00]POST & json_proto [17:26:00]process_json_proto [17:26:00]json parsed OK: [17:26:00]protocol is kg_v1.0 [17:26:00]action value=close_receipt [17:26:00]process_action close_receipt [17:26:00]cmd_close_receipt [17:26:00]MH_GetDate [17:26:00]Write to MH i2c: F0 00 00 52 A7 E8 [17:26:00]Write i2c OK [17:26:00]MH_I2C_Read... [17:26:00]Read from MH i2c: F0 [17:26:00]MH_I2C_Read... [17:26:00]Read from MH i2c: F0 09 00 [17:26:00]MH_I2C_Read... [17:26:00]Read from MH i2c: F0 09 00 52 A7 00 AE 2E C2 66 34 48 D8 65 AE [17:26:00]GetLastDocTimeStamp 1724001645 [17:26:00]current date 1724001966 [17:26:00]FM_GetShiftState [17:26:00]SAM_PROTO_GetShiftState [17:26:00]wFMCommunicate request_size=4 [17:26:00]MH_SAM_APDU [17:26:00]CAPDU: 80 13 01 00 [17:26:00]Write to MH i2c: E2 08 00 53 A7 80 13 01 00 00 00 00 00 77 [17:26:00]Write i2c OK [17:26:00]MH_I2C_Read... [17:26:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:00]Read from MH i2c: E2 [17:26:00]MH_I2C_Read... [17:26:00]Read from MH i2c: E2 0E 00 [17:26:00]MH_I2C_Read... [17:26:00]Read from MH i2c: E2 0E 00 53 A7 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B4 [17:26:00]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:26:00]wFMCommunicate OK [17:26:00]SAM_PROTO_GetShiftState done [17:26:00]FM_GetShiftState done [17:26:00]opened in 1723940556 [17:26:00]opened+sec_in_day 1724026956 [17:26:00]quantity*price = 20001 [17:26:00]sum+1 = 20002 [17:26:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 372 18.08.2024 17:26 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260814 ФПД: 178459475590466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T172606&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260814&fm=178459475590466&tin=02508201610067®Number=0000000000091865&sum=20000 [17:26:01]StoreToDocumentArchive [17:26:01]shift 449 fd 260814 [17:26:01]save to /storage/0449/doc_00260814 [17:26:01]save last doc name /storage/0449/doc_00260814 to /storage/kkm_last_doc_name [17:26:01]save OK [17:26:01]Clear old archive folders... [17:26:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:26:01]tlvbuf is 0038B2E0 [17:26:01]SAM_PROTO_ClearQueue [17:26:01]wFMCommunicate request_size=4 [17:26:01]MH_SAM_APDU [17:26:01]CAPDU: 80 09 00 00 [17:26:01]Write to MH i2c: E2 08 00 60 A7 80 09 00 00 00 00 00 00 79 [17:26:01]Write i2c OK [17:26:01]MH_I2C_Read... [17:26:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:01]Read from MH i2c: E2 [17:26:01]MH_I2C_Read... [17:26:01]Read from MH i2c: E2 03 00 [17:26:01]MH_I2C_Read... [17:26:01]Read from MH i2c: E2 03 00 60 A7 00 90 00 7B [17:26:01]RAPDU: 90 00 [17:26:01]wFMCommunicate OK [17:26:01]SAM_PROTO_ClearQueue done [17:26:01]KKMCreateOFDPacket [17:26:01]OFDProtocolAddRootSTLVToBuf [17:26:01]FM_MakeSignedData [17:26:01]FM_MakeSignedData [17:26:01]SAM_PROTO_SignData [17:26:01]wFMCommunicate request_size=4 [17:26:01]MH_SAM_APDU [17:26:01]CAPDU: 80 0D 01 02 [17:26:01]Write to MH i2c: E2 08 00 61 A7 80 0D 01 02 00 00 00 00 81 [17:26:01]Write i2c OK [17:26:01]MH_I2C_Read... [17:26:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:01]Read from MH i2c: E2 [17:26:01]MH_I2C_Read... [17:26:01]Read from MH i2c: E2 03 00 [17:26:01]MH_I2C_Read... [17:26:01]Read from MH i2c: E2 03 00 61 A7 00 90 00 7C [17:26:01]RAPDU: 90 00 [17:26:01]wFMCommunicate OK [17:26:01]wFMCommunicate request_size=255 [17:26:01]MH_SAM_APDU [17:26:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 AE 2E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CE FA 03 00 35 04 06 00 A2 [17:26:01]Write to MH i2c: E2 02 01 62 A7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 AE 2E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CE FA 03 00 35 04 06 00 A2 00 00 A8 [17:26:01]Write i2c OK [17:26:01]MH_I2C_Read... [17:26:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:01]Read from MH i2c: E2 [17:26:01]MH_I2C_Read... [17:26:01]Read from MH i2c: E2 03 00 [17:26:01]MH_I2C_Read... [17:26:01]Read from MH i2c: E2 03 00 62 A7 00 90 00 7D [17:26:01]RAPDU: 90 00 [17:26:01]wFMCommunicate OK [17:26:01]wFMCommunicate request_size=10 [17:26:01]MH_SAM_APDU [17:26:01]CAPDU: 80 0D 02 02 05 4E D5 A6 3D 42 [17:26:01]Write to MH i2c: E2 0D 00 63 A7 80 0D 02 02 05 00 4E D5 A6 3D 42 00 00 D6 [17:26:01]Write i2c OK [17:26:01]MH_I2C_Read... [17:26:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:02]Read from MH i2c: E2 [17:26:02]MH_I2C_Read... [17:26:02]Read from MH i2c: E2 03 00 [17:26:02]MH_I2C_Read... [17:26:02]Read from MH i2c: E2 03 00 63 A7 00 90 00 7E [17:26:02]RAPDU: 90 00 [17:26:02]wFMCommunicate OK [17:26:02]wFMCommunicate request_size=4 [17:26:02]MH_SAM_APDU [17:26:02]CAPDU: 80 0D 03 02 [17:26:02]Write to MH i2c: E2 08 00 64 A7 80 0D 03 02 00 00 00 00 86 [17:26:02]Write i2c OK [17:26:02]MH_I2C_Read... [17:26:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:02]Read from MH i2c: E2 [17:26:02]MH_I2C_Read... [17:26:02]Read from MH i2c: E2 0B 00 [17:26:02]MH_I2C_Read... [17:26:02]Read from MH i2c: E2 0B 00 64 A7 00 6E E8 33 16 2B 19 0C 39 90 00 AF [17:26:02]RAPDU: 6E E8 33 16 2B 19 0C 39 90 00 [17:26:02]wFMCommunicate OK [17:26:02]SAM_PROTO_SignData done [17:26:02]FM_MakeSignedData done [17:26:02]CreateOFDProtocolMessage [17:26:02]wFMCommunicate request_size=4 [17:26:02]MH_SAM_APDU [17:26:02]CAPDU: 80 11 00 00 [17:26:02]Write to MH i2c: E2 08 00 65 A7 80 11 00 00 00 00 00 00 86 [17:26:02]Write i2c OK [17:26:02]MH_I2C_Read... [17:26:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:02]Read from MH i2c: E2 [17:26:02]MH_I2C_Read... [17:26:02]Read from MH i2c: E2 17 00 [17:26:02]MH_I2C_Read... [17:26:02]Read from MH i2c: E2 17 00 65 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D3 [17:26:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:26:02]wFMCommunicate OK [17:26:02]CreateOFDProtocolMessage done [17:26:02]OFDSenderStorePacket 260814 [17:26:02]StoreOFDPacket docnum=260814 [17:26:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 1F 0C 07 01 FC 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 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 AE 2E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CE FA 03 00 35 04 06 00 A2 4E D5 A6 3D 42 6E E8 33 16 2B 19 0C 39 [17:26:02]CheckFolder [17:26:02]dirname=/storage/ofd_packets [17:26:02]CheckFolder done [17:26:02]ProducePacketName [17:26:02]name=ofd_packets/00260814 [17:26:02]NVStorageSaveData ofd_packets/00260814 [17:26:02]File name is /storage/ofd_packets/00260814 [17:26:02]Write 301 bytes [17:26:02]NVStorageSaveData done [17:26:02]OFDSenderStorePacket done [17:26:02]KKMCreateOFDPacket done [17:26:02]NVStorageSaveData kkm_last_timestamp [17:26:02]File name is /storage/kkm_last_timestamp [17:26:02]Write 4 bytes [17:26:02]NVStorageSaveData done [17:26:02]ExternCall_PrintAddStr [17:26:02]wPrintStart [17:26:02]Write to MH i2c: 01 00 00 66 A7 0D [17:26:02]Write i2c OK [17:26:02]MH_I2C_Read... [17:26:02]Read from MH i2c: 01 [17:26:02]MH_I2C_Read... [17:26:02]Read from MH i2c: 01 07 00 [17:26:02]MH_I2C_Read... [17:26:02]Read from MH i2c: 01 07 00 66 A7 00 00 00 00 00 FF 0F 22 [17:26:02]RasterBufferAndPrint [17:26:02]line Счет N : (1)1036367 [17:26:02]line ИНН: 02508201610067 [17:26:02]line Контрольно-Кассовый Чек [17:26:02]line ПРОДАЖА [17:26:02]line ТРК (МРК, ГНК) : 12 [17:26:02]line Товар: 2710124130 [17:26:02]line Аи-92-К-5 [17:26:02]line 2.950 * 67.80 [17:26:02]line = 200.01 [17:26:02]line НДС 12% НСП 1% [17:26:02]line > о реализуемом товаре [17:26:02]line ОКРУГЛЕНИЕ: -0.01 [17:26:02]line ИТОГО: 200.00 [17:26:02]line Внесено: 200.00 [17:26:02]line СДАЧА: 0.00 [17:26:02]line НСП 1% : 1.77 [17:26:02]line НДС 12% : 21.24 [17:26:02]line Наличными: 200.00 [17:26:02]line Безнал.: 0.00 [17:26:02]line Место: АЗС № 94 "Партнер Нефть" [17:26:02]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [17:26:02]line СНО: Общий режим [17:26:02]line Чек 372 18.08.2024 17:26 [17:26:02]line Смена: 449 ФФД: 1.0 [17:26:02]line ЗНМ: 0300000099 [17:26:02]line РНМ: 0000000000091865 [17:26:02]line Версия ККМ: 001 [17:26:02]line ФМ: 0000000000871820 [17:26:02]line ФД: 260814 [17:26:02]line ФПД: 178459475590466 [17:26:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T172606&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260814&fm=178459475590466&tin=02508201610067®Number=0000000000091865&sum=20000 [17:26:02]OFD Sender: Processing packet 260814 [packets to send 192, broken 191] [17:26:02]ProducePacketName [17:26:02]name=ofd_packets/00260814 [17:26:02]OFD Sender: To server: pG, [17:26:02]CommunicateWithHost lk.salyk.kg:30040 [17:26:02]ConnectInit lk.salyk.kg [17:26:02]written 0, free lines is 4095 [17:26:02]Connected sock=10 [17:26:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 1F 0C 07 01 FC 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 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 AE 2E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CE FA 03 00 35 04 06 00 A2 4E D5 A6 3D 42 6E E8 33 16 2B 19 0C 39 [17:26:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 4F 00 00 00 61 77 47 00 3A 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 30 10 04 04 00 CE FA 03 00 F4 03 04 00 02 D8 C1 66 B6 04 01 00 00 7B 75 3B 47 59 A3 AD 7D [17:26:02]CommunicateWithHost err = 0 [17:26:02]CheckOFDResponse [17:26:02]1017 (14) - 77093643461234 [17:26:02]1041 (16) - 0000000000871820 [17:26:02]1040 (4) - 260814 [17:26:02]1012 (4) - 18.08.2024 11:16 [17:26:02]1206 (1) - 0 [17:26:02]OFD Sender: Remove packet 260814 [17:26:02]ProducePacketName [17:26:02]name=ofd_packets/00260814 [17:26:02]NVStorageDeleteData [17:26:02]Write to MH i2c: 01 00 00 91 A7 38 [17:26:02]Write i2c OK [17:26:02]MH_I2C_Read... [17:26:02]Read from MH i2c: 01 [17:26:02]MH_I2C_Read... [17:26:02]Read from MH i2c: 01 07 00 [17:26:02]MH_I2C_Read... [17:26:02]Read from MH i2c: 01 07 00 91 A7 00 00 00 00 00 68 0C B3 [17:26:02]RasterBufferAndPrint [17:26:02]line [17:26:02]line [17:26:02]line [17:26:02]line [17:26:02]line [17:26:02]written 0, free lines is 3179 [17:26:02]MH_Cut [17:26:02]Write to MH i2c: D1 01 00 98 A7 01 11 [17:26:02]Write i2c OK [17:26:02]MH_I2C_Read... [17:26:02]Read from MH i2c: D1 [17:26:02]MH_I2C_Read... [17:26:02]Read from MH i2c: D1 01 00 [17:26:02]MH_I2C_Read... [17:26:02]Read from MH i2c: D1 01 00 98 A7 00 10 [17:26:02]Write to MH i2c: 01 00 00 99 A7 40 [17:26:02]Write i2c OK [17:26:02]MH_I2C_Read... [17:26:03]OFD Sender: No OFD packet to send [17:26:04]*** Cut start [17:26:04]*** Purtial cut [17:26:04]*** Stage 1: CUTSNS_PIN = 1 [17:26:06]Read from MH i2c: 01 [17:26:06]MH_I2C_Read... [17:26:06]*** Stop cut motor [17:26:06]*** Cut end [17:26:06]Read from MH i2c: 01 07 00 [17:26:06]MH_I2C_Read... [17:26:06]Read from MH i2c: 01 07 00 99 A7 00 00 00 00 00 FF 0F 55 [17:26:06]process_action close_receipt done [17:26:06]requested_data is exist [17:26:06]produce_requested_data [17:26:06]requested_item fm.sn is exist - process it [17:26:06]wFMCommunicate request_size=4 [17:26:06]MH_SAM_APDU [17:26:06]CAPDU: 80 11 00 00 [17:26:06]Write to MH i2c: E2 08 00 9A A7 80 11 00 00 00 00 00 00 BB [17:26:06]Write i2c OK [17:26:06]MH_I2C_Read... [17:26:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:06]Read from MH i2c: E2 [17:26:06]MH_I2C_Read... [17:26:06]Read from MH i2c: E2 17 00 [17:26:06]MH_I2C_Read... [17:26:06]Read from MH i2c: E2 17 00 9A A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 08 [17:26:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:26:06]wFMCommunicate OK [17:26:06]requested_item fd.num is exist - process it [17:26:06]SAM_PROTO_GetFieldsCounters [17:26:06]wFMCommunicate request_size=4 [17:26:06]MH_SAM_APDU [17:26:06]CAPDU: 80 13 00 00 [17:26:06]Write to MH i2c: E2 08 00 9B A7 80 13 00 00 00 00 00 00 BE [17:26:06]Write i2c OK [17:26:06]MH_I2C_Read... [17:26:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:06]Read from MH i2c: E2 [17:26:06]MH_I2C_Read... [17:26:06]Read from MH i2c: E2 62 00 [17:26:06]MH_I2C_Read... [17:26:06]Read from MH i2c: E2 62 00 9B A7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 CE FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 74 01 00 00 5E 04 04 00 74 01 00 00 57 04 04 00 75 01 00 00 19 04 04 00 00 00 00 00 90 00 C9 [17:26: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 CE FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 74 01 00 00 5E 04 04 00 74 01 00 00 57 04 04 00 75 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:26:06]wFMCommunicate OK [17:26:06]SAM_PROTO_GetFieldsCounters done [17:26:06]requested_item shift.num is exist - process it [17:26:06]requested_item shift.opened is exist - process it [17:26:06]req_shift_opened [17:26:06]FM_GetShiftState [17:26:06]SAM_PROTO_GetShiftState [17:26:06]wFMCommunicate request_size=4 [17:26:06]MH_SAM_APDU [17:26:06]CAPDU: 80 13 01 00 [17:26:06]Write to MH i2c: E2 08 00 9C A7 80 13 01 00 00 00 00 00 C0 [17:26:06]Write i2c OK [17:26:06]MH_I2C_Read... [17:26:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:06]Read from MH i2c: E2 [17:26:06]MH_I2C_Read... [17:26:06]Read from MH i2c: E2 0E 00 [17:26:06]MH_I2C_Read... [17:26:06]Read from MH i2c: E2 0E 00 9C A7 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 FD [17:26:06]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:26:06]wFMCommunicate OK [17:26:06]SAM_PROTO_GetShiftState done [17:26:06]FM_GetShiftState done [17:26:06]req_shift_opened done [17:26:06]requested_item shift.open_date is exist - process it [17:26:06]req_shift_open_date [17:26:06]req_shift_open_date done [17:26:06]produce_requested_data done [17:26:06]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260814,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [17:26:06]process_action_free close_receipt [17:26:06]json_value_free [17:26:06]json_value_free done [17:26:06]process_json_proto returns [17:26:06]Send response to host [17:26:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260814,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [17:26:06]free response buf [17:26:06]execute_script done [17:26:06]execute_script returns [17:26:06]free content buf [17:26:06]Sock 7.Close socket [17:26:06]Sock 7.Thread stoped [17:26:08]OFD Sender: No OFD packet to send [17:26:13]OFD Sender: No OFD packet to send [17:26:18]OFD Sender: No OFD packet to send [17:26:18]accept exits with 9 [17:26:18]New connection [17:26:18]New thread 3066617188 created [17:26:18]Thread 3066473828 joined [17:26:18]Waiting for new connection... [17:26:18] Sock 9.Parse request [17:26:18]Sock 9.Check first char [17:26:18]Sock 9.First char is OK [17:26:18]request: POST /json_proto HTTP/1.0 [17:26:18]Method: POST [17:26:18]URL: /json_proto [17:26:18]Method is POST - this is cgi request [17:26:18]url: /json_proto [17:26:18]query_string will be loaded in cgi processing [17:26:18]execute_cgi json_proto POST (null) [17:26:18]execute_cgi path=json_proto method=POST [17:26:18]POST find Content-Length [17:26:18]Host: 172.17.55.133:8080 [17:26:18]Content-Length: 683 [17:26:18]Content-Type: application/json [17:26:18] [17:26:18]POST finish read [17:26:18]Found Content-Length = 683 [17:26:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:18]execute_script... [17:26:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:18]POST & json_proto [17:26:18]process_json_proto [17:26:18]json parsed OK: [17:26:18]protocol is kg_v1.0 [17:26:18]action value=close_receipt [17:26:18]process_action close_receipt [17:26:18]cmd_close_receipt [17:26:18]MH_GetDate [17:26:18]Write to MH i2c: F0 00 00 9D A7 33 [17:26:18]Write i2c OK [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: F0 [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: F0 09 00 [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: F0 09 00 9D A7 00 C0 2E C2 66 34 48 D8 65 0B [17:26:18]GetLastDocTimeStamp 1724001966 [17:26:18]current date 1724001984 [17:26:18]FM_GetShiftState [17:26:18]SAM_PROTO_GetShiftState [17:26:18]wFMCommunicate request_size=4 [17:26:18]MH_SAM_APDU [17:26:18]CAPDU: 80 13 01 00 [17:26:18]Write to MH i2c: E2 08 00 9E A7 80 13 01 00 00 00 00 00 C2 [17:26:18]Write i2c OK [17:26:18]MH_I2C_Read... [17:26:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:18]Read from MH i2c: E2 [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: E2 0E 00 [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: E2 0E 00 9E A7 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 FF [17:26:18]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:26:18]wFMCommunicate OK [17:26:18]SAM_PROTO_GetShiftState done [17:26:18]FM_GetShiftState done [17:26:18]opened in 1723940556 [17:26:18]opened+sec_in_day 1724026956 [17:26:18]quantity*price = 100005 [17:26:18]sum+1 = 100006 [17:26:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 373 18.08.2024 17:26 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260815 ФПД: 194074124917620 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T172624&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260815&fm=194074124917620&tin=02508201610067®Number=0000000000091865&sum=100000 [17:26:19]StoreToDocumentArchive [17:26:19]shift 449 fd 260815 [17:26:19]save to /storage/0449/doc_00260815 [17:26:19]save last doc name /storage/0449/doc_00260815 to /storage/kkm_last_doc_name [17:26:19]save OK [17:26:19]Clear old archive folders... [17:26:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:26:19]tlvbuf is 006B9060 [17:26:19]SAM_PROTO_ClearQueue [17:26:19]wFMCommunicate request_size=4 [17:26:19]MH_SAM_APDU [17:26:19]CAPDU: 80 09 00 00 [17:26:19]Write to MH i2c: E2 08 00 AB A7 80 09 00 00 00 00 00 00 C4 [17:26:19]Write i2c OK [17:26:19]MH_I2C_Read... [17:26:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:19]Read from MH i2c: E2 [17:26:19]MH_I2C_Read... [17:26:19]Read from MH i2c: E2 03 00 [17:26:19]MH_I2C_Read... [17:26:19]Read from MH i2c: E2 03 00 AB A7 00 90 00 C6 [17:26:19]RAPDU: 90 00 [17:26:19]wFMCommunicate OK [17:26:19]SAM_PROTO_ClearQueue done [17:26:19]KKMCreateOFDPacket [17:26:19]OFDProtocolAddRootSTLVToBuf [17:26:19]FM_MakeSignedData [17:26:19]FM_MakeSignedData [17:26:19]SAM_PROTO_SignData [17:26:19]wFMCommunicate request_size=4 [17:26:19]MH_SAM_APDU [17:26:19]CAPDU: 80 0D 01 02 [17:26:19]Write to MH i2c: E2 08 00 AC A7 80 0D 01 02 00 00 00 00 CC [17:26:19]Write i2c OK [17:26:19]MH_I2C_Read... [17:26:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:19]Read from MH i2c: E2 [17:26:19]MH_I2C_Read... [17:26:19]Read from MH i2c: E2 03 00 [17:26:19]MH_I2C_Read... [17:26:19]Read from MH i2c: E2 03 00 AC A7 00 90 00 C7 [17:26:19]RAPDU: 90 00 [17:26:19]wFMCommunicate OK [17:26:19]wFMCommunicate request_size=255 [17:26:19]MH_SAM_APDU [17:26:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 C0 2E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CF FA 03 00 35 04 06 00 B0 [17:26:19]Write to MH i2c: E2 02 01 AD A7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 C0 2E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CF FA 03 00 35 04 06 00 B0 00 00 A2 [17:26:19]Write i2c OK [17:26:19]MH_I2C_Read... [17:26:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:20]Read from MH i2c: E2 [17:26:20]MH_I2C_Read... [17:26:20]Read from MH i2c: E2 03 00 [17:26:20]MH_I2C_Read... [17:26:20]Read from MH i2c: E2 03 00 AD A7 00 90 00 C8 [17:26:20]RAPDU: 90 00 [17:26:20]wFMCommunicate OK [17:26:20]wFMCommunicate request_size=10 [17:26:20]MH_SAM_APDU [17:26:20]CAPDU: 80 0D 02 02 05 82 67 46 9B 74 [17:26:20]Write to MH i2c: E2 0D 00 AE A7 80 0D 02 02 05 00 82 67 46 9B 74 00 00 17 [17:26:20]Write i2c OK [17:26:20]MH_I2C_Read... [17:26:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:20]Read from MH i2c: E2 [17:26:20]MH_I2C_Read... [17:26:20]Read from MH i2c: E2 03 00 [17:26:20]MH_I2C_Read... [17:26:20]Read from MH i2c: E2 03 00 AE A7 00 90 00 C9 [17:26:20]RAPDU: 90 00 [17:26:20]wFMCommunicate OK [17:26:20]wFMCommunicate request_size=4 [17:26:20]MH_SAM_APDU [17:26:20]CAPDU: 80 0D 03 02 [17:26:20]Write to MH i2c: E2 08 00 AF A7 80 0D 03 02 00 00 00 00 D1 [17:26:20]Write i2c OK [17:26:20]MH_I2C_Read... [17:26:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:20]Read from MH i2c: E2 [17:26:20]MH_I2C_Read... [17:26:20]Read from MH i2c: E2 0B 00 [17:26:20]MH_I2C_Read... [17:26:20]Read from MH i2c: E2 0B 00 AF A7 00 FC CB 81 4B 7C 5C 82 7B 90 00 3A [17:26:20]RAPDU: FC CB 81 4B 7C 5C 82 7B 90 00 [17:26:20]wFMCommunicate OK [17:26:20]SAM_PROTO_SignData done [17:26:20]FM_MakeSignedData done [17:26:20]CreateOFDProtocolMessage [17:26:20]wFMCommunicate request_size=4 [17:26:20]MH_SAM_APDU [17:26:20]CAPDU: 80 11 00 00 [17:26:20]Write to MH i2c: E2 08 00 B0 A7 80 11 00 00 00 00 00 00 D1 [17:26:20]Write i2c OK [17:26:20]MH_I2C_Read... [17:26:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:20]Read from MH i2c: E2 [17:26:20]MH_I2C_Read... [17:26:20]Read from MH i2c: E2 17 00 [17:26:20]MH_I2C_Read... [17:26:20]Read from MH i2c: E2 17 00 B0 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 1E [17:26:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:26:20]wFMCommunicate OK [17:26:20]CreateOFDProtocolMessage done [17:26:20]OFDSenderStorePacket 260815 [17:26:20]StoreOFDPacket docnum=260815 [17:26:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 EF 87 07 01 D6 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 C0 2E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CF FA 03 00 35 04 06 00 B0 82 67 46 9B 74 FC CB 81 4B 7C 5C 82 7B [17:26:20]CheckFolder [17:26:20]dirname=/storage/ofd_packets [17:26:20]CheckFolder done [17:26:20]ProducePacketName [17:26:20]name=ofd_packets/00260815 [17:26:20]NVStorageSaveData ofd_packets/00260815 [17:26:20]File name is /storage/ofd_packets/00260815 [17:26:20]Write 301 bytes [17:26:20]NVStorageSaveData done [17:26:20]OFDSenderStorePacket done [17:26:20]KKMCreateOFDPacket done [17:26:20]NVStorageSaveData kkm_last_timestamp [17:26:20]File name is /storage/kkm_last_timestamp [17:26:20]Write 4 bytes [17:26:20]NVStorageSaveData done [17:26:20]ExternCall_PrintAddStr [17:26:20]wPrintStart [17:26:20]Write to MH i2c: 01 00 00 B1 A7 58 [17:26:20]Write i2c OK [17:26:20]MH_I2C_Read... [17:26:20]Read from MH i2c: 01 [17:26:20]MH_I2C_Read... [17:26:20]Read from MH i2c: 01 07 00 [17:26:20]MH_I2C_Read... [17:26:20]Read from MH i2c: 01 07 00 B1 A7 00 00 00 00 00 FF 0F 6D [17:26:20]RasterBufferAndPrint [17:26:20]line Счет N : (1)1036366 [17:26:20]line ИНН: 02508201610067 [17:26:20]line Контрольно-Кассовый Чек [17:26:20]line ПРОДАЖА [17:26:20]line ТРК (МРК, ГНК) : 32 [17:26:20]line Товар: 2710124130 [17:26:20]line Аи-92-К-5 [17:26:20]line 14.750 * 67.80 [17:26:20]line = 1000.05 [17:26:20]line НДС 12% НСП 1% [17:26:20]line > о реализуемом товаре [17:26:20]line ОКРУГЛЕНИЕ: -0.05 [17:26:20]line ИТОГО: 1000.00 [17:26:20]line Внесено: 1000.00 [17:26:20]line СДАЧА: 0.00 [17:26:20]line НСП 1% : 8.85 [17:26:20]line НДС 12% : 106.20 [17:26:20]line Наличными: 1000.00 [17:26:20]line Безнал.: 0.00 [17:26:20]line Место: АЗС № 94 "Партнер Нефть" [17:26:20]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [17:26:20]line СНО: Общий режим [17:26:20]line Чек 373 18.08.2024 17:26 [17:26:20]line Смена: 449 ФФД: 1.0 [17:26:20]line ЗНМ: 0300000099 [17:26:20]line РНМ: 0000000000091865 [17:26:20]line Версия ККМ: 001 [17:26:20]line ФМ: 0000000000871820 [17:26:20]line ФД: 260815 [17:26:20]line ФПД: 194074124917620 [17:26:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T172624&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260815&fm=194074124917620&tin=02508201610067®Number=0000000000091865&sum=100000 [17:26:20]written 0, free lines is 4095 [17:26:20]OFD Sender: Processing packet 260815 [packets to send 192, broken 191] [17:26:20]ProducePacketName [17:26:20]name=ofd_packets/00260815 [17:26:20]OFD Sender: To server: pG, [17:26:20]CommunicateWithHost lk.salyk.kg:30040 [17:26:20]ConnectInit lk.salyk.kg [17:26:20]Connected sock=10 [17:26: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 30 0F 01 00 00 EF 87 07 01 D6 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 C0 2E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 CF FA 03 00 35 04 06 00 B0 82 67 46 9B 74 FC CB 81 4B 7C 5C 82 7B [17:26:20]Write to MH i2c: 01 00 00 DC A7 83 [17:26:20]Write i2c OK [17:26:20]MH_I2C_Read... [17:26:20]Read from MH i2c: 01 [17:26:20]MH_I2C_Read... [17:26:20]Read from MH i2c: 01 07 00 [17:26:20]MH_I2C_Read... [17:26:20]Read from MH i2c: 01 07 00 DC A7 00 00 00 00 00 65 0C FB [17:26:20]RasterBufferAndPrint [17:26:20]line [17:26:20]line [17:26:20]line [17:26:20]line [17:26:20]line [17:26:20]written 0, free lines is 3177 [17:26:20]MH_Cut [17:26:20]Write to MH i2c: D1 01 00 E3 A7 01 5C [17:26:20]Write i2c OK [17:26:20]MH_I2C_Read... [17:26:20]Read from MH i2c: D1 [17:26:20]MH_I2C_Read... [17:26:20]Read from MH i2c: D1 01 00 [17:26:20]MH_I2C_Read... [17:26:20]Read from MH i2c: D1 01 00 E3 A7 00 5B [17:26:20]Write to MH i2c: 01 00 00 E4 A7 8B [17:26:20]Write i2c OK [17:26:20]MH_I2C_Read... [17:26: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 30 4F 00 00 00 C5 EC 47 00 91 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 30 10 04 04 00 CF FA 03 00 F4 03 04 00 14 D8 C1 66 B6 04 01 00 00 0F 3A B2 ED B6 4E 0D D3 [17:26:20]CommunicateWithHost err = 0 [17:26:20]CheckOFDResponse [17:26:20]1017 (14) - 77093643461234 [17:26:20]1041 (16) - 0000000000871820 [17:26:20]1040 (4) - 260815 [17:26:20]1012 (4) - 18.08.2024 11:16 [17:26:20]1206 (1) - 0 [17:26:20]OFD Sender: Remove packet 260815 [17:26:20]ProducePacketName [17:26:20]name=ofd_packets/00260815 [17:26:20]NVStorageDeleteData [17:26:21]OFD Sender: No OFD packet to send [17:26:21]*** Cut start [17:26:21]*** Purtial cut [17:26:21]*** Stage 1: CUTSNS_PIN = 1 [17:26:23]Read from MH i2c: 01 [17:26:23]MH_I2C_Read... [17:26:23]*** Stop cut motor [17:26:23]*** Cut end [17:26:23]Read from MH i2c: 01 07 00 [17:26:23]MH_I2C_Read... [17:26:23]Read from MH i2c: 01 07 00 E4 A7 00 00 00 00 00 FF 0F A0 [17:26:23]process_action close_receipt done [17:26:23]requested_data is exist [17:26:23]produce_requested_data [17:26:23]requested_item fm.sn is exist - process it [17:26:23]wFMCommunicate request_size=4 [17:26:23]MH_SAM_APDU [17:26:23]CAPDU: 80 11 00 00 [17:26:23]Write to MH i2c: E2 08 00 E5 A7 80 11 00 00 00 00 00 00 06 [17:26:23]Write i2c OK [17:26:23]MH_I2C_Read... [17:26:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:23]Read from MH i2c: E2 [17:26:23]MH_I2C_Read... [17:26:23]Read from MH i2c: E2 17 00 [17:26:23]MH_I2C_Read... [17:26:23]Read from MH i2c: E2 17 00 E5 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 53 [17:26:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:26:23]wFMCommunicate OK [17:26:23]requested_item fd.num is exist - process it [17:26:23]SAM_PROTO_GetFieldsCounters [17:26:23]wFMCommunicate request_size=4 [17:26:23]MH_SAM_APDU [17:26:23]CAPDU: 80 13 00 00 [17:26:23]Write to MH i2c: E2 08 00 E6 A7 80 13 00 00 00 00 00 00 09 [17:26:23]Write i2c OK [17:26:23]MH_I2C_Read... [17:26:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:24]Read from MH i2c: E2 [17:26:24]MH_I2C_Read... [17:26:24]Read from MH i2c: E2 62 00 [17:26:24]MH_I2C_Read... [17:26:24]Read from MH i2c: E2 62 00 E6 A7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 CF FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 75 01 00 00 5E 04 04 00 75 01 00 00 57 04 04 00 76 01 00 00 19 04 04 00 00 00 00 00 90 00 18 [17:26: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 CF FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 75 01 00 00 5E 04 04 00 75 01 00 00 57 04 04 00 76 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:26:24]wFMCommunicate OK [17:26:24]SAM_PROTO_GetFieldsCounters done [17:26:24]requested_item shift.num is exist - process it [17:26:24]requested_item shift.opened is exist - process it [17:26:24]req_shift_opened [17:26:24]FM_GetShiftState [17:26:24]SAM_PROTO_GetShiftState [17:26:24]wFMCommunicate request_size=4 [17:26:24]MH_SAM_APDU [17:26:24]CAPDU: 80 13 01 00 [17:26:24]Write to MH i2c: E2 08 00 E7 A7 80 13 01 00 00 00 00 00 0B [17:26:24]Write i2c OK [17:26:24]MH_I2C_Read... [17:26:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:24]Read from MH i2c: E2 [17:26:24]MH_I2C_Read... [17:26:24]Read from MH i2c: E2 0E 00 [17:26:24]MH_I2C_Read... [17:26:24]Read from MH i2c: E2 0E 00 E7 A7 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 48 [17:26:24]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:26:24]wFMCommunicate OK [17:26:24]SAM_PROTO_GetShiftState done [17:26:24]FM_GetShiftState done [17:26:24]req_shift_opened done [17:26:24]requested_item shift.open_date is exist - process it [17:26:24]req_shift_open_date [17:26:24]req_shift_open_date done [17:26:24]produce_requested_data done [17:26:24]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260815,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [17:26:24]process_action_free close_receipt [17:26:24]json_value_free [17:26:24]json_value_free done [17:26:24]process_json_proto returns [17:26:24]Send response to host [17:26:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260815,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [17:26:24]free response buf [17:26:24]execute_script done [17:26:24]execute_script returns [17:26:24]free content buf [17:26:24]Sock 9.Close socket [17:26:24]Sock 9.Thread stoped [17:26:26]OFD Sender: No OFD packet to send [17:26:31]OFD Sender: No OFD packet to send [17:26:36]OFD Sender: No OFD packet to send [17:26:41]OFD Sender: No OFD packet to send [17:26:46]OFD Sender: No OFD packet to send [17:26:51]OFD Sender: No OFD packet to send [17:26:56]OFD Sender: No OFD packet to send [17:27:01]OFD Sender: No OFD packet to send [17:27:06]OFD Sender: No OFD packet to send [17:27:11]OFD Sender: No OFD packet to send [17:27:16]OFD Sender: No OFD packet to send [17:27:21]OFD Sender: No OFD packet to send [17:27:26]OFD Sender: No OFD packet to send [17:27:31]OFD Sender: No OFD packet to send [17:27:35]accept exits with 7 [17:27:35]New connection [17:27:35]New thread 3066473828 created [17:27:35]Thread 3066617188 joined [17:27:35]Waiting for new connection... [17:27:35] Sock 7.Parse request [17:27:35]Sock 7.Check first char [17:27:35]Sock 7.First char is OK [17:27:35]request: POST /json_proto HTTP/1.0 [17:27:35]Method: POST [17:27:35]URL: /json_proto [17:27:35]Method is POST - this is cgi request [17:27:35]url: /json_proto [17:27:35]query_string will be loaded in cgi processing [17:27:35]execute_cgi json_proto POST (null) [17:27:35]execute_cgi path=json_proto method=POST [17:27:35]POST find Content-Length [17:27:35]Host: 172.17.55.133:8080 [17:27:35]Content-Length: 678 [17:27:35]Content-Type: application/json [17:27:35] [17:27:35]POST finish read [17:27:35]Found Content-Length = 678 [17:27:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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" ] } } [17:27:35]execute_script... [17:27: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)1036368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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" ] } } [17:27:35]POST & json_proto [17:27:35]process_json_proto [17:27:35]json parsed OK: [17:27:35]protocol is kg_v1.0 [17:27:35]action value=close_receipt [17:27:35]process_action close_receipt [17:27:35]cmd_close_receipt [17:27:35]MH_GetDate [17:27:35]Write to MH i2c: F0 00 00 E8 A7 7E [17:27:35]Write i2c OK [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: F0 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: F0 09 00 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: F0 09 00 E8 A7 00 0D 2F C2 66 34 48 D8 65 A4 [17:27:35]GetLastDocTimeStamp 1724001984 [17:27:35]current date 1724002061 [17:27:35]FM_GetShiftState [17:27:35]SAM_PROTO_GetShiftState [17:27:35]wFMCommunicate request_size=4 [17:27:35]MH_SAM_APDU [17:27:35]CAPDU: 80 13 01 00 [17:27:35]Write to MH i2c: E2 08 00 E9 A7 80 13 01 00 00 00 00 00 0D [17:27:35]Write i2c OK [17:27:35]MH_I2C_Read... [17:27:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:35]Read from MH i2c: E2 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: E2 0E 00 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: E2 0E 00 E9 A7 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 4A [17:27:35]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:27:35]wFMCommunicate OK [17:27:35]SAM_PROTO_GetShiftState done [17:27:35]FM_GetShiftState done [17:27:35]opened in 1723940556 [17:27:35]opened+sec_in_day 1724026956 [17:27:35]quantity*price = 50036 [17:27:35]sum+1 = 50037 [17:27:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 374 18.08.2024 17:27 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260816 ФПД: 129939091076451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T172741&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260816&fm=129939091076451&tin=02508201610067®Number=0000000000091865&sum=50000 [17:27:36]StoreToDocumentArchive [17:27:36]shift 449 fd 260816 [17:27:36]save to /storage/0449/doc_00260816 [17:27:36]save last doc name /storage/0449/doc_00260816 to /storage/kkm_last_doc_name [17:27:36]save OK [17:27:36]Clear old archive folders... [17:27:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:27:36]tlvbuf is 003329E0 [17:27:36]SAM_PROTO_ClearQueue [17:27:36]wFMCommunicate request_size=4 [17:27:36]MH_SAM_APDU [17:27:36]CAPDU: 80 09 00 00 [17:27:36]Write to MH i2c: E2 08 00 F6 A7 80 09 00 00 00 00 00 00 0F [17:27:36]Write i2c OK [17:27:36]MH_I2C_Read... [17:27:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:36]Read from MH i2c: E2 [17:27:36]MH_I2C_Read... [17:27:36]Read from MH i2c: E2 03 00 [17:27:36]MH_I2C_Read... [17:27:36]Read from MH i2c: E2 03 00 F6 A7 00 90 00 11 [17:27:36]RAPDU: 90 00 [17:27:36]wFMCommunicate OK [17:27:36]SAM_PROTO_ClearQueue done [17:27:36]KKMCreateOFDPacket [17:27:36]OFDProtocolAddRootSTLVToBuf [17:27:36]FM_MakeSignedData [17:27:36]FM_MakeSignedData [17:27:36]SAM_PROTO_SignData [17:27:36]wFMCommunicate request_size=4 [17:27:36]MH_SAM_APDU [17:27:36]CAPDU: 80 0D 01 02 [17:27:36]Write to MH i2c: E2 08 00 F7 A7 80 0D 01 02 00 00 00 00 17 [17:27:36]Write i2c OK [17:27:36]MH_I2C_Read... [17:27:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:36]Read from MH i2c: E2 [17:27:36]MH_I2C_Read... [17:27:36]Read from MH i2c: E2 03 00 [17:27:36]MH_I2C_Read... [17:27:36]Read from MH i2c: E2 03 00 F7 A7 00 90 00 12 [17:27:36]RAPDU: 90 00 [17:27:36]wFMCommunicate OK [17:27:36]wFMCommunicate request_size=255 [17:27:36]MH_SAM_APDU [17:27:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 76 01 00 00 F4 03 04 00 0D 2F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D0 FA 03 00 35 04 06 00 76 [17:27:36]Write to MH i2c: E2 02 01 F8 A7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 76 01 00 00 F4 03 04 00 0D 2F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D0 FA 03 00 35 04 06 00 76 00 00 74 [17:27:36]Write i2c OK [17:27:36]MH_I2C_Read... [17:27:36]OFD Sender: No OFD packet to send [17:27:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:36]Read from MH i2c: E2 [17:27:36]MH_I2C_Read... [17:27:36]Read from MH i2c: E2 03 00 [17:27:36]MH_I2C_Read... [17:27:36]Read from MH i2c: E2 03 00 F8 A7 00 90 00 13 [17:27:36]RAPDU: 90 00 [17:27:36]wFMCommunicate OK [17:27:36]wFMCommunicate request_size=10 [17:27:36]MH_SAM_APDU [17:27:36]CAPDU: 80 0D 02 02 05 2D CD 5D B5 63 [17:27:36]Write to MH i2c: E2 0D 00 F9 A7 80 0D 02 02 05 00 2D CD 5D B5 63 00 00 93 [17:27:36]Write i2c OK [17:27:36]MH_I2C_Read... [17:27:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:36]Read from MH i2c: E2 [17:27:36]MH_I2C_Read... [17:27:36]Read from MH i2c: E2 03 00 [17:27:36]MH_I2C_Read... [17:27:36]Read from MH i2c: E2 03 00 F9 A7 00 90 00 14 [17:27:36]RAPDU: 90 00 [17:27:36]wFMCommunicate OK [17:27:36]wFMCommunicate request_size=4 [17:27:36]MH_SAM_APDU [17:27:36]CAPDU: 80 0D 03 02 [17:27:36]Write to MH i2c: E2 08 00 FA A7 80 0D 03 02 00 00 00 00 1C [17:27:36]Write i2c OK [17:27:36]MH_I2C_Read... [17:27:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:36]Read from MH i2c: E2 [17:27:36]MH_I2C_Read... [17:27:36]Read from MH i2c: E2 0B 00 [17:27:36]MH_I2C_Read... [17:27:36]Read from MH i2c: E2 0B 00 FA A7 00 FF 1E C2 89 3D 47 58 3D 90 00 9E [17:27:36]RAPDU: FF 1E C2 89 3D 47 58 3D 90 00 [17:27:36]wFMCommunicate OK [17:27:36]SAM_PROTO_SignData done [17:27:36]FM_MakeSignedData done [17:27:36]CreateOFDProtocolMessage [17:27:36]wFMCommunicate request_size=4 [17:27:36]MH_SAM_APDU [17:27:36]CAPDU: 80 11 00 00 [17:27:36]Write to MH i2c: E2 08 00 FB A7 80 11 00 00 00 00 00 00 1C [17:27:36]Write i2c OK [17:27:36]MH_I2C_Read... [17:27:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:36]Read from MH i2c: E2 [17:27:36]MH_I2C_Read... [17:27:36]Read from MH i2c: E2 17 00 [17:27:36]MH_I2C_Read... [17:27:36]Read from MH i2c: E2 17 00 FB A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 69 [17:27:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:27:36]wFMCommunicate OK [17:27:36]CreateOFDProtocolMessage done [17:27:36]OFDSenderStorePacket 260816 [17:27:36]StoreOFDPacket docnum=260816 [17:27:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 B2 51 07 01 2A F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 76 01 00 00 F4 03 04 00 0D 2F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D0 FA 03 00 35 04 06 00 76 2D CD 5D B5 63 FF 1E C2 89 3D 47 58 3D [17:27:36]CheckFolder [17:27:36]dirname=/storage/ofd_packets [17:27:36]CheckFolder done [17:27:36]ProducePacketName [17:27:36]name=ofd_packets/00260816 [17:27:36]NVStorageSaveData ofd_packets/00260816 [17:27:36]File name is /storage/ofd_packets/00260816 [17:27:36]Write 301 bytes [17:27:36]NVStorageSaveData done [17:27:36]OFDSenderStorePacket done [17:27:36]KKMCreateOFDPacket done [17:27:36]NVStorageSaveData kkm_last_timestamp [17:27:36]File name is /storage/kkm_last_timestamp [17:27:36]Write 4 bytes [17:27:36]NVStorageSaveData done [17:27:36]ExternCall_PrintAddStr [17:27:36]wPrintStart [17:27:36]Write to MH i2c: 01 00 00 FC A7 A3 [17:27:36]Write i2c OK [17:27:36]MH_I2C_Read... [17:27:36]Read from MH i2c: 01 [17:27:36]MH_I2C_Read... [17:27:36]Read from MH i2c: 01 07 00 [17:27:36]MH_I2C_Read... [17:27:36]Read from MH i2c: 01 07 00 FC A7 00 00 00 00 00 FF 0F B8 [17:27:36]RasterBufferAndPrint [17:27:36]line Счет N : (1)1036368 [17:27:36]line ИНН: 02508201610067 [17:27:36]line Контрольно-Кассовый Чек [17:27:36]line ПРОДАЖА [17:27:36]line ТРК (МРК, ГНК) : 12 [17:27:36]line Товар: 2710124130 [17:27:36]line Аи-92-К-5 [17:27:36]line 7.380 * 67.80 [17:27:36]line = 500.36 [17:27:36]line НДС 12% НСП 1% [17:27:36]line > о реализуемом товаре [17:27:36]line ОКРУГЛЕНИЕ: -0.36 [17:27:36]line ИТОГО: 500.00 [17:27:36]line Внесено: 500.00 [17:27:36]line СДАЧА: 0.00 [17:27:36]line НСП 1% : 4.43 [17:27:36]line НДС 12% : 53.14 [17:27:36]line Наличными: 500.00 [17:27:36]line Безнал.: 0.00 [17:27:36]line Место: АЗС № 94 "Партнер Нефть" [17:27:36]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [17:27:36]line СНО: Общий режим [17:27:36]line Чек 374 18.08.2024 17:27 [17:27:36]line Смена: 449 ФФД: 1.0 [17:27:36]line ЗНМ: 0300000099 [17:27:36]line РНМ: 0000000000091865 [17:27:36]line Версия ККМ: 001 [17:27:37]line ФМ: 0000000000871820 [17:27:37]line ФД: 260816 [17:27:37]line ФПД: 129939091076451 [17:27:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T172741&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260816&fm=129939091076451&tin=02508201610067®Number=0000000000091865&sum=50000 [17:27:37]OFD Sender: Processing packet 260816 [packets to send 192, broken 191] [17:27:37]ProducePacketName [17:27:37]name=ofd_packets/00260816 [17:27:37]OFD Sender: To server: pG, [17:27:37]CommunicateWithHost lk.salyk.kg:30040 [17:27:37]ConnectInit lk.salyk.kg [17:27:37]written 0, free lines is 4095 [17:27:37]Connected sock=10 [17:27: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 30 0F 01 00 00 B2 51 07 01 2A F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 76 01 00 00 F4 03 04 00 0D 2F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D0 FA 03 00 35 04 06 00 76 2D CD 5D B5 63 FF 1E C2 89 3D 47 58 3D [17:27: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 30 4F 00 00 00 0E 53 47 00 F3 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 30 10 04 04 00 D0 FA 03 00 F4 03 04 00 61 D8 C1 66 B6 04 01 00 00 4F EF E8 00 1C 42 BD 13 [17:27:37]CommunicateWithHost err = 0 [17:27:37]CheckOFDResponse [17:27:37]1017 (14) - 77093643461234 [17:27:37]1041 (16) - 0000000000871820 [17:27:37]1040 (4) - 260816 [17:27:37]1012 (4) - 18.08.2024 11:17 [17:27:37]1206 (1) - 0 [17:27:37]OFD Sender: Remove packet 260816 [17:27:37]ProducePacketName [17:27:37]name=ofd_packets/00260816 [17:27:37]NVStorageDeleteData [17:27:37]Write to MH i2c: 01 00 00 27 A8 CF [17:27:37]Write i2c OK [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: 01 [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: 01 07 00 [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: 01 07 00 27 A8 00 00 00 00 00 68 0C 4A [17:27:37]RasterBufferAndPrint [17:27:37]line [17:27:37]line [17:27:37]line [17:27:37]line [17:27:37]line [17:27:37]written 0, free lines is 3179 [17:27:37]MH_Cut [17:27:37]Write to MH i2c: D1 01 00 2E A8 01 A8 [17:27:37]Write i2c OK [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: D1 [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: D1 01 00 [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: D1 01 00 2E A8 00 A7 [17:27:37]Write to MH i2c: 01 00 00 2F A8 D7 [17:27:37]Write i2c OK [17:27:37]MH_I2C_Read... [17:27:37]OFD Sender: No OFD packet to send [17:27:38]*** Cut start [17:27:38]*** Purtial cut [17:27:38]*** Stage 1: CUTSNS_PIN = 1 [17:27:40]Read from MH i2c: 01 [17:27:40]MH_I2C_Read... [17:27:40]*** Stop cut motor [17:27:40]*** Cut end [17:27:40]Read from MH i2c: 01 07 00 [17:27:40]MH_I2C_Read... [17:27:40]Read from MH i2c: 01 07 00 2F A8 00 00 00 00 00 FF 0F EC [17:27:40]process_action close_receipt done [17:27:40]requested_data is exist [17:27:40]produce_requested_data [17:27:40]requested_item fm.sn is exist - process it [17:27:40]wFMCommunicate request_size=4 [17:27:40]MH_SAM_APDU [17:27:40]CAPDU: 80 11 00 00 [17:27:40]Write to MH i2c: E2 08 00 30 A8 80 11 00 00 00 00 00 00 52 [17:27:40]Write i2c OK [17:27:40]MH_I2C_Read... [17:27:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:40]Read from MH i2c: E2 [17:27:40]MH_I2C_Read... [17:27:40]Read from MH i2c: E2 17 00 [17:27:40]MH_I2C_Read... [17:27:40]Read from MH i2c: E2 17 00 30 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 9F [17:27:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:27:40]wFMCommunicate OK [17:27:40]requested_item fd.num is exist - process it [17:27:40]SAM_PROTO_GetFieldsCounters [17:27:40]wFMCommunicate request_size=4 [17:27:40]MH_SAM_APDU [17:27:40]CAPDU: 80 13 00 00 [17:27:40]Write to MH i2c: E2 08 00 31 A8 80 13 00 00 00 00 00 00 55 [17:27:40]Write i2c OK [17:27:40]MH_I2C_Read... [17:27:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:41]Read from MH i2c: E2 [17:27:41]MH_I2C_Read... [17:27:41]Read from MH i2c: E2 62 00 [17:27:41]MH_I2C_Read... [17:27:41]Read from MH i2c: E2 62 00 31 A8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D0 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 68 [17:27: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D0 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:27:41]wFMCommunicate OK [17:27:41]SAM_PROTO_GetFieldsCounters done [17:27:41]requested_item shift.num is exist - process it [17:27:41]requested_item shift.opened is exist - process it [17:27:41]req_shift_opened [17:27:41]FM_GetShiftState [17:27:41]SAM_PROTO_GetShiftState [17:27:41]wFMCommunicate request_size=4 [17:27:41]MH_SAM_APDU [17:27:41]CAPDU: 80 13 01 00 [17:27:41]Write to MH i2c: E2 08 00 32 A8 80 13 01 00 00 00 00 00 57 [17:27:41]Write i2c OK [17:27:41]MH_I2C_Read... [17:27:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:41]Read from MH i2c: E2 [17:27:41]MH_I2C_Read... [17:27:41]Read from MH i2c: E2 0E 00 [17:27:41]MH_I2C_Read... [17:27:41]Read from MH i2c: E2 0E 00 32 A8 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 94 [17:27:41]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:27:41]wFMCommunicate OK [17:27:41]SAM_PROTO_GetShiftState done [17:27:41]FM_GetShiftState done [17:27:41]req_shift_opened done [17:27:41]requested_item shift.open_date is exist - process it [17:27:41]req_shift_open_date [17:27:41]req_shift_open_date done [17:27:41]produce_requested_data done [17:27:41]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260816,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [17:27:41]process_action_free close_receipt [17:27:41]json_value_free [17:27:41]json_value_free done [17:27:41]process_json_proto returns [17:27:41]Send response to host [17:27:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260816,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [17:27:41]free response buf [17:27:41]execute_script done [17:27:41]execute_script returns [17:27:41]free content buf [17:27:41]Sock 7.Close socket [17:27:41]Sock 7.Thread stoped [17:27:42]OFD Sender: No OFD packet to send [17:27:47]OFD Sender: No OFD packet to send [17:27:52]OFD Sender: No OFD packet to send [17:27:57]OFD Sender: No OFD packet to send [17:28:02]OFD Sender: No OFD packet to send [17:28:07]OFD Sender: No OFD packet to send [17:28:10]accept exits with 9 [17:28:10]New connection [17:28:10]New thread 3066617188 created [17:28:10]Thread 3066473828 joined [17:28:10]Waiting for new connection... [17:28:10] Sock 9.Parse request [17:28:10]Sock 9.Check first char [17:28:10]Sock 9.First char is OK [17:28:10]request: POST /json_proto HTTP/1.0 [17:28:10]Method: POST [17:28:10]URL: /json_proto [17:28:10]Method is POST - this is cgi request [17:28:10]url: /json_proto [17:28:10]query_string will be loaded in cgi processing [17:28:10]execute_cgi json_proto POST (null) [17:28:10]execute_cgi path=json_proto method=POST [17:28:10]POST find Content-Length [17:28:10]Host: 172.17.55.133:8080 [17:28:10]Content-Length: 678 [17:28:10]Content-Type: application/json [17:28:10] [17:28:10]POST finish read [17:28:10]Found Content-Length = 678 [17:28:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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" ] } } [17:28:10]execute_script... [17:28:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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" ] } } [17:28:10]POST & json_proto [17:28:10]process_json_proto [17:28:10]json parsed OK: [17:28:10]protocol is kg_v1.0 [17:28:10]action value=close_receipt [17:28:10]process_action close_receipt [17:28:10]cmd_close_receipt [17:28:10]MH_GetDate [17:28:10]Write to MH i2c: F0 00 00 33 A8 CA [17:28:10]Write i2c OK [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: F0 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: F0 09 00 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: F0 09 00 33 A8 00 30 2F C2 66 34 48 D8 65 13 [17:28:10]GetLastDocTimeStamp 1724002061 [17:28:10]current date 1724002096 [17:28:10]FM_GetShiftState [17:28:10]SAM_PROTO_GetShiftState [17:28:10]wFMCommunicate request_size=4 [17:28:10]MH_SAM_APDU [17:28:10]CAPDU: 80 13 01 00 [17:28:10]Write to MH i2c: E2 08 00 34 A8 80 13 01 00 00 00 00 00 59 [17:28:10]Write i2c OK [17:28:10]MH_I2C_Read... [17:28:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:10]Read from MH i2c: E2 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: E2 0E 00 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: E2 0E 00 34 A8 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 96 [17:28:10]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:28:10]wFMCommunicate OK [17:28:10]SAM_PROTO_GetShiftState done [17:28:10]FM_GetShiftState done [17:28:10]opened in 1723940556 [17:28:10]opened+sec_in_day 1724026956 [17:28:10]quantity*price = 50036 [17:28:10]sum+1 = 50037 [17:28:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 375 18.08.2024 17:28 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260817 ФПД: 7191175469477 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T172816&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260817&fm=7191175469477&tin=02508201610067®Number=0000000000091865&sum=50000 [17:28:11]StoreToDocumentArchive [17:28:11]shift 449 fd 260817 [17:28:11]save to /storage/0449/doc_00260817 [17:28:11]save last doc name /storage/0449/doc_00260817 to /storage/kkm_last_doc_name [17:28:11]save OK [17:28:11]Clear old archive folders... [17:28:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:28:11]tlvbuf is 00451400 [17:28:11]SAM_PROTO_ClearQueue [17:28:11]wFMCommunicate request_size=4 [17:28:11]MH_SAM_APDU [17:28:11]CAPDU: 80 09 00 00 [17:28:11]Write to MH i2c: E2 08 00 41 A8 80 09 00 00 00 00 00 00 5B [17:28:11]Write i2c OK [17:28:11]MH_I2C_Read... [17:28:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:11]Read from MH i2c: E2 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: E2 03 00 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: E2 03 00 41 A8 00 90 00 5D [17:28:11]RAPDU: 90 00 [17:28:11]wFMCommunicate OK [17:28:11]SAM_PROTO_ClearQueue done [17:28:11]KKMCreateOFDPacket [17:28:11]OFDProtocolAddRootSTLVToBuf [17:28:11]FM_MakeSignedData [17:28:11]FM_MakeSignedData [17:28:11]SAM_PROTO_SignData [17:28:11]wFMCommunicate request_size=4 [17:28:11]MH_SAM_APDU [17:28:11]CAPDU: 80 0D 01 02 [17:28:11]Write to MH i2c: E2 08 00 42 A8 80 0D 01 02 00 00 00 00 63 [17:28:11]Write i2c OK [17:28:11]MH_I2C_Read... [17:28:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:11]Read from MH i2c: E2 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: E2 03 00 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: E2 03 00 42 A8 00 90 00 5E [17:28:11]RAPDU: 90 00 [17:28:11]wFMCommunicate OK [17:28:11]wFMCommunicate request_size=255 [17:28:11]MH_SAM_APDU [17:28:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 77 01 00 00 F4 03 04 00 30 2F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D1 FA 03 00 35 04 06 00 06 [17:28:11]Write to MH i2c: E2 02 01 43 A8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 77 01 00 00 F4 03 04 00 30 2F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D1 FA 03 00 35 04 06 00 06 00 00 75 [17:28:11]Write i2c OK [17:28:11]MH_I2C_Read... [17:28:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:11]Read from MH i2c: E2 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: E2 03 00 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: E2 03 00 43 A8 00 90 00 5F [17:28:11]RAPDU: 90 00 [17:28:11]wFMCommunicate OK [17:28:11]wFMCommunicate request_size=10 [17:28:11]MH_SAM_APDU [17:28:11]CAPDU: 80 0D 02 02 05 8A 53 75 99 A5 [17:28:11]Write to MH i2c: E2 0D 00 44 A8 80 0D 02 02 05 00 8A 53 75 99 A5 00 00 00 [17:28:11]Write i2c OK [17:28:11]MH_I2C_Read... [17:28:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:11]Read from MH i2c: E2 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: E2 03 00 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: E2 03 00 44 A8 00 90 00 60 [17:28:11]RAPDU: 90 00 [17:28:11]wFMCommunicate OK [17:28:11]wFMCommunicate request_size=4 [17:28:11]MH_SAM_APDU [17:28:11]CAPDU: 80 0D 03 02 [17:28:11]Write to MH i2c: E2 08 00 45 A8 80 0D 03 02 00 00 00 00 68 [17:28:11]Write i2c OK [17:28:11]MH_I2C_Read... [17:28:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:11]Read from MH i2c: E2 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: E2 0B 00 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: E2 0B 00 45 A8 00 1B 5F ED D4 D9 72 7F FF 90 00 6D [17:28:11]RAPDU: 1B 5F ED D4 D9 72 7F FF 90 00 [17:28:11]wFMCommunicate OK [17:28:11]SAM_PROTO_SignData done [17:28:11]FM_MakeSignedData done [17:28:11]CreateOFDProtocolMessage [17:28:11]wFMCommunicate request_size=4 [17:28:11]MH_SAM_APDU [17:28:11]CAPDU: 80 11 00 00 [17:28:11]Write to MH i2c: E2 08 00 46 A8 80 11 00 00 00 00 00 00 68 [17:28:11]Write i2c OK [17:28:11]MH_I2C_Read... [17:28:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:11]Read from MH i2c: E2 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: E2 17 00 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: E2 17 00 46 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B5 [17:28:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:28:11]wFMCommunicate OK [17:28:11]CreateOFDProtocolMessage done [17:28:11]OFDSenderStorePacket 260817 [17:28:11]StoreOFDPacket docnum=260817 [17:28:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 0A 98 07 01 E0 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 77 01 00 00 F4 03 04 00 30 2F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D1 FA 03 00 35 04 06 00 06 8A 53 75 99 A5 1B 5F ED D4 D9 72 7F FF [17:28:11]CheckFolder [17:28:11]dirname=/storage/ofd_packets [17:28:11]CheckFolder done [17:28:11]ProducePacketName [17:28:11]name=ofd_packets/00260817 [17:28:11]NVStorageSaveData ofd_packets/00260817 [17:28:11]File name is /storage/ofd_packets/00260817 [17:28:11]Write 301 bytes [17:28:11]NVStorageSaveData done [17:28:11]OFDSenderStorePacket done [17:28:11]KKMCreateOFDPacket done [17:28:11]NVStorageSaveData kkm_last_timestamp [17:28:11]File name is /storage/kkm_last_timestamp [17:28:11]Write 4 bytes [17:28:11]NVStorageSaveData done [17:28:11]ExternCall_PrintAddStr [17:28:11]wPrintStart [17:28:11]Write to MH i2c: 01 00 00 47 A8 EF [17:28:11]Write i2c OK [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: 01 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: 01 07 00 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: 01 07 00 47 A8 00 00 00 00 00 FF 0F 04 [17:28:11]RasterBufferAndPrint [17:28:11]line Счет N : (1)1036369 [17:28:11]line ИНН: 02508201610067 [17:28:11]line Контрольно-Кассовый Чек [17:28:11]line ПРОДАЖА [17:28:11]line ТРК (МРК, ГНК) : 42 [17:28:11]line Товар: 2710124130 [17:28:11]line Аи-92-К-5 [17:28:11]line 7.380 * 67.80 [17:28:11]line = 500.36 [17:28:11]line НДС 12% НСП 1% [17:28:11]line > о реализуемом товаре [17:28:11]line ОКРУГЛЕНИЕ: -0.36 [17:28:11]line ИТОГО: 500.00 [17:28:11]line Внесено: 500.00 [17:28:11]line СДАЧА: 0.00 [17:28:11]line НСП 1% : 4.43 [17:28:11]line НДС 12% : 53.14 [17:28:11]line Наличными: 500.00 [17:28:11]line Безнал.: 0.00 [17:28:11]line Место: АЗС № 94 "Партнер Нефть" [17:28:11]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [17:28:11]line СНО: Общий режим [17:28:11]line Чек 375 18.08.2024 17:28 [17:28:11]line Смена: 449 ФФД: 1.0 [17:28:11]line ЗНМ: 0300000099 [17:28:11]line РНМ: 0000000000091865 [17:28:11]line Версия ККМ: 001 [17:28:11]line ФМ: 0000000000871820 [17:28:11]line ФД: 260817 [17:28:11]line ФПД: 7191175469477 [17:28:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T172816&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260817&fm=7191175469477&tin=02508201610067®Number=0000000000091865&sum=50000 [17:28:11]written 0, free lines is 4095 [17:28:11]OFD Sender: Processing packet 260817 [packets to send 192, broken 191] [17:28:11]ProducePacketName [17:28:12]name=ofd_packets/00260817 [17:28:12]OFD Sender: To server: pG, [17:28:12]CommunicateWithHost lk.salyk.kg:30040 [17:28:12]ConnectInit lk.salyk.kg [17:28:12]Connected sock=10 [17:28: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 30 0F 01 00 00 0A 98 07 01 E0 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 77 01 00 00 F4 03 04 00 30 2F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D1 FA 03 00 35 04 06 00 06 8A 53 75 99 A5 1B 5F ED D4 D9 72 7F FF [17:28:12]Write to MH i2c: 01 00 00 72 A8 1A [17:28:12]Write i2c OK [17:28:12]MH_I2C_Read... [17:28:12]Read from MH i2c: 01 [17:28:12]MH_I2C_Read... [17:28:12]Read from MH i2c: 01 07 00 [17:28:12]MH_I2C_Read... [17:28:12]Read from MH i2c: 01 07 00 72 A8 00 00 00 00 00 6B 0C 98 [17:28:12]RasterBufferAndPrint [17:28:12]line [17:28:12]line [17:28:12]line [17:28:12]line [17:28:12]line [17:28:12]written 0, free lines is 3183 [17:28:12]MH_Cut [17:28:12]Write to MH i2c: D1 01 00 79 A8 01 F3 [17:28:12]Write i2c OK [17:28:12]MH_I2C_Read... [17:28:12]Read from MH i2c: D1 [17:28:12]MH_I2C_Read... [17:28:12]Read from MH i2c: D1 01 00 [17:28:12]MH_I2C_Read... [17:28:12]Read from MH i2c: D1 01 00 79 A8 00 F2 [17:28:12]Write to MH i2c: 01 00 00 7A A8 22 [17:28:12]Write i2c OK [17:28:12]MH_I2C_Read... [17:28: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 30 4F 00 00 00 24 5B 47 00 B2 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D1 FA 03 00 F4 03 04 00 84 D8 C1 66 B6 04 01 00 00 11 A4 59 13 78 B9 9F 50 [17:28:12]CommunicateWithHost err = 0 [17:28:12]CheckOFDResponse [17:28:12]1017 (14) - 77093643461234 [17:28:12]1041 (16) - 0000000000871820 [17:28:12]1040 (4) - 260817 [17:28:12]1012 (4) - 18.08.2024 11:18 [17:28:12]1206 (1) - 0 [17:28:12]OFD Sender: Remove packet 260817 [17:28:12]ProducePacketName [17:28:12]name=ofd_packets/00260817 [17:28:12]NVStorageDeleteData [17:28:12]OFD Sender: No OFD packet to send [17:28:13]*** Cut start [17:28:13]*** Purtial cut [17:28:13]*** Stage 1: CUTSNS_PIN = 1 [17:28:15]Read from MH i2c: 01 [17:28:15]MH_I2C_Read... [17:28:15]*** Stop cut motor [17:28:15]*** Cut end [17:28:15]Read from MH i2c: 01 07 00 [17:28:15]MH_I2C_Read... [17:28:15]Read from MH i2c: 01 07 00 7A A8 00 00 00 00 00 FF 0F 37 [17:28:15]process_action close_receipt done [17:28:15]requested_data is exist [17:28:15]produce_requested_data [17:28:15]requested_item fm.sn is exist - process it [17:28:15]wFMCommunicate request_size=4 [17:28:15]MH_SAM_APDU [17:28:15]CAPDU: 80 11 00 00 [17:28:15]Write to MH i2c: E2 08 00 7B A8 80 11 00 00 00 00 00 00 9D [17:28:15]Write i2c OK [17:28:15]MH_I2C_Read... [17:28:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:15]Read from MH i2c: E2 [17:28:15]MH_I2C_Read... [17:28:15]Read from MH i2c: E2 17 00 [17:28:15]MH_I2C_Read... [17:28:15]Read from MH i2c: E2 17 00 7B A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 EA [17:28:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:28:15]wFMCommunicate OK [17:28:15]requested_item fd.num is exist - process it [17:28:15]SAM_PROTO_GetFieldsCounters [17:28:15]wFMCommunicate request_size=4 [17:28:15]MH_SAM_APDU [17:28:15]CAPDU: 80 13 00 00 [17:28:15]Write to MH i2c: E2 08 00 7C A8 80 13 00 00 00 00 00 00 A0 [17:28:15]Write i2c OK [17:28:15]MH_I2C_Read... [17:28:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:15]Read from MH i2c: E2 [17:28:15]MH_I2C_Read... [17:28:15]Read from MH i2c: E2 62 00 [17:28:15]MH_I2C_Read... [17:28:15]Read from MH i2c: E2 62 00 7C A8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D1 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 77 01 00 00 5E 04 04 00 77 01 00 00 57 04 04 00 78 01 00 00 19 04 04 00 00 00 00 00 90 00 B7 [17:28: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D1 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 77 01 00 00 5E 04 04 00 77 01 00 00 57 04 04 00 78 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:28:15]wFMCommunicate OK [17:28:15]SAM_PROTO_GetFieldsCounters done [17:28:15]requested_item shift.num is exist - process it [17:28:15]requested_item shift.opened is exist - process it [17:28:15]req_shift_opened [17:28:15]FM_GetShiftState [17:28:15]SAM_PROTO_GetShiftState [17:28:15]wFMCommunicate request_size=4 [17:28:15]MH_SAM_APDU [17:28:15]CAPDU: 80 13 01 00 [17:28:15]Write to MH i2c: E2 08 00 7D A8 80 13 01 00 00 00 00 00 A2 [17:28:15]Write i2c OK [17:28:15]MH_I2C_Read... [17:28:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:15]Read from MH i2c: E2 [17:28:15]MH_I2C_Read... [17:28:15]Read from MH i2c: E2 0E 00 [17:28:15]MH_I2C_Read... [17:28:15]Read from MH i2c: E2 0E 00 7D A8 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 DF [17:28:15]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:28:15]wFMCommunicate OK [17:28:15]SAM_PROTO_GetShiftState done [17:28:15]FM_GetShiftState done [17:28:15]req_shift_opened done [17:28:15]requested_item shift.open_date is exist - process it [17:28:15]req_shift_open_date [17:28:15]req_shift_open_date done [17:28:15]produce_requested_data done [17:28:15]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260817,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [17:28:15]process_action_free close_receipt [17:28:15]json_value_free [17:28:15]json_value_free done [17:28:15]process_json_proto returns [17:28:15]Send response to host [17:28:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260817,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [17:28:15]free response buf [17:28:15]execute_script done [17:28:15]execute_script returns [17:28:15]free content buf [17:28:15]Sock 9.Close socket [17:28:15]Sock 9.Thread stoped [17:28:17]OFD Sender: No OFD packet to send [17:28:22]OFD Sender: No OFD packet to send [17:28:27]OFD Sender: No OFD packet to send [17:28:32]OFD Sender: No OFD packet to send [17:28:37]OFD Sender: No OFD packet to send [17:28:42]OFD Sender: No OFD packet to send [17:28:47]OFD Sender: No OFD packet to send [17:28:52]OFD Sender: No OFD packet to send [17:28:57]OFD Sender: No OFD packet to send [17:29:02]OFD Sender: No OFD packet to send [17:29:05]accept exits with 7 [17:29:05]New connection [17:29:05]New thread 3066473828 created [17:29:05]Thread 3066617188 joined [17:29:05]Waiting for new connection... [17:29:05] Sock 7.Parse request [17:29:05]Sock 7.Check first char [17:29:05]Sock 7.First char is OK [17:29:05]request: POST /json_proto HTTP/1.0 [17:29:05]Method: POST [17:29:05]URL: /json_proto [17:29:05]Method is POST - this is cgi request [17:29:05]url: /json_proto [17:29:05]query_string will be loaded in cgi processing [17:29:05]execute_cgi json_proto POST (null) [17:29:05]execute_cgi path=json_proto method=POST [17:29:05]POST find Content-Length [17:29:05]Host: 172.17.55.133:8080 [17:29:05]Content-Length: 678 [17:29:05]Content-Type: application/json [17:29:05] [17:29:05]POST finish read [17:29:05]Found Content-Length = 678 [17:29:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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" ] } } [17:29:05]execute_script... [17: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)1036370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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" ] } } [17:29:05]POST & json_proto [17:29:05]process_json_proto [17:29:05]json parsed OK: [17:29:05]protocol is kg_v1.0 [17:29:05]action value=close_receipt [17:29:05]process_action close_receipt [17:29:05]cmd_close_receipt [17:29:05]MH_GetDate [17:29:05]Write to MH i2c: F0 00 00 7E A8 15 [17:29:05]Write i2c OK [17:29:05]MH_I2C_Read... [17:29:05]Read from MH i2c: F0 [17:29:05]MH_I2C_Read... [17:29:05]Read from MH i2c: F0 09 00 [17:29:05]MH_I2C_Read... [17:29:05]Read from MH i2c: F0 09 00 7E A8 00 67 2F C2 66 34 48 D8 65 95 [17:29:05]GetLastDocTimeStamp 1724002096 [17:29:05]current date 1724002151 [17:29:05]FM_GetShiftState [17:29:05]SAM_PROTO_GetShiftState [17:29:05]wFMCommunicate request_size=4 [17:29:05]MH_SAM_APDU [17:29:05]CAPDU: 80 13 01 00 [17:29:05]Write to MH i2c: E2 08 00 7F A8 80 13 01 00 00 00 00 00 A4 [17:29:05]Write i2c OK [17:29:05]MH_I2C_Read... [17:29:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:05]Read from MH i2c: E2 [17:29:05]MH_I2C_Read... [17:29:05]Read from MH i2c: E2 0E 00 [17:29:05]MH_I2C_Read... [17:29:05]Read from MH i2c: E2 0E 00 7F A8 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E1 [17:29:05]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:29:05]wFMCommunicate OK [17:29:05]SAM_PROTO_GetShiftState done [17:29:05]FM_GetShiftState done [17:29:05]opened in 1723940556 [17:29:05]opened+sec_in_day 1724026956 [17:29:05]quantity*price = 50036 [17:29:05]sum+1 = 50037 [17:29:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 376 18.08.2024 17:29 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260818 ФПД: 254265895694074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T172911&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260818&fm=254265895694074&tin=02508201610067®Number=0000000000091865&sum=50000 [17:29:06]StoreToDocumentArchive [17:29:06]shift 449 fd 260818 [17:29:06]save to /storage/0449/doc_00260818 [17:29:06]save last doc name /storage/0449/doc_00260818 to /storage/kkm_last_doc_name [17:29:06]save OK [17:29:06]Clear old archive folders... [17:29:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:29:06]tlvbuf is 006B90E0 [17:29:06]SAM_PROTO_ClearQueue [17:29:06]wFMCommunicate request_size=4 [17:29:06]MH_SAM_APDU [17:29:06]CAPDU: 80 09 00 00 [17:29:06]Write to MH i2c: E2 08 00 8C A8 80 09 00 00 00 00 00 00 A6 [17:29:06]Write i2c OK [17:29:06]MH_I2C_Read... [17:29:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:29:06]Read from MH i2c: E2 [17:29:06]MH_I2C_Read... [17:29:06]Read from MH i2c: E2 03 00 [17:29:06]MH_I2C_Read... [17:29:06]Read from MH i2c: E2 03 00 8C A8 00 90 00 A8 [17:29:06]RAPDU: 90 00 [17:29:06]wFMCommunicate OK [17:29:06]SAM_PROTO_ClearQueue done [17:29:06]KKMCreateOFDPacket [17:29:06]OFDProtocolAddRootSTLVToBuf [17:29:06]FM_MakeSignedData [17:29:06]FM_MakeSignedData [17:29:06]SAM_PROTO_SignData [17:29:06]wFMCommunicate request_size=4 [17:29:06]MH_SAM_APDU [17:29:06]CAPDU: 80 0D 01 02 [17:29:06]Write to MH i2c: E2 08 00 8D A8 80 0D 01 02 00 00 00 00 AE [17:29:06]Write i2c OK [17:29:06]MH_I2C_Read... [17:29:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:29:06]Read from MH i2c: E2 [17:29:06]MH_I2C_Read... [17:29:06]Read from MH i2c: E2 03 00 [17:29:06]MH_I2C_Read... [17:29:06]Read from MH i2c: E2 03 00 8D A8 00 90 00 A9 [17:29:06]RAPDU: 90 00 [17:29:06]wFMCommunicate OK [17:29:06]wFMCommunicate request_size=255 [17:29:06]MH_SAM_APDU [17:29:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 78 01 00 00 F4 03 04 00 67 2F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D2 FA 03 00 35 04 06 00 E7 [17:29:06]Write to MH i2c: E2 02 01 8E A8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 78 01 00 00 F4 03 04 00 67 2F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D2 FA 03 00 35 04 06 00 E7 00 00 DA [17:29:06]Write i2c OK [17:29:06]MH_I2C_Read... [17:29:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:07]Read from MH i2c: E2 [17:29:07]MH_I2C_Read... [17:29:07]Read from MH i2c: E2 03 00 [17:29:07]MH_I2C_Read... [17:29:07]Read from MH i2c: E2 03 00 8E A8 00 90 00 AA [17:29:07]RAPDU: 90 00 [17:29:07]wFMCommunicate OK [17:29:07]wFMCommunicate request_size=10 [17:29:07]MH_SAM_APDU [17:29:07]CAPDU: 80 0D 02 02 05 40 E4 64 2E FA [17:29:07]Write to MH i2c: E2 0D 00 8F A8 80 0D 02 02 05 00 40 E4 64 2E FA 00 00 6B [17:29:07]Write i2c OK [17:29:07]MH_I2C_Read... [17:29:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:07]Read from MH i2c: E2 [17:29:07]MH_I2C_Read... [17:29:07]Read from MH i2c: E2 03 00 [17:29:07]MH_I2C_Read... [17:29:07]Read from MH i2c: E2 03 00 8F A8 00 90 00 AB [17:29:07]RAPDU: 90 00 [17:29:07]wFMCommunicate OK [17:29:07]wFMCommunicate request_size=4 [17:29:07]MH_SAM_APDU [17:29:07]CAPDU: 80 0D 03 02 [17:29:07]Write to MH i2c: E2 08 00 90 A8 80 0D 03 02 00 00 00 00 B3 [17:29:07]Write i2c OK [17:29:07]MH_I2C_Read... [17:29:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:29:07]Read from MH i2c: E2 [17:29:07]MH_I2C_Read... [17:29:07]Read from MH i2c: E2 0B 00 [17:29:07]MH_I2C_Read... [17:29:07]Read from MH i2c: E2 0B 00 90 A8 00 1C 97 8B 37 D3 D7 B3 81 90 00 07 [17:29:07]RAPDU: 1C 97 8B 37 D3 D7 B3 81 90 00 [17:29:07]wFMCommunicate OK [17:29:07]SAM_PROTO_SignData done [17:29:07]FM_MakeSignedData done [17:29:07]CreateOFDProtocolMessage [17:29:07]wFMCommunicate request_size=4 [17:29:07]MH_SAM_APDU [17:29:07]CAPDU: 80 11 00 00 [17:29:07]Write to MH i2c: E2 08 00 91 A8 80 11 00 00 00 00 00 00 B3 [17:29:07]Write i2c OK [17:29:07]MH_I2C_Read... [17:29:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:07]Read from MH i2c: E2 [17:29:07]MH_I2C_Read... [17:29:07]Read from MH i2c: E2 17 00 [17:29:07]MH_I2C_Read... [17:29:07]Read from MH i2c: E2 17 00 91 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 00 [17:29:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:29:07]wFMCommunicate OK [17:29:07]CreateOFDProtocolMessage done [17:29:07]OFDSenderStorePacket 260818 [17:29:07]StoreOFDPacket docnum=260818 [17: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 30 0F 01 00 00 0A 43 07 01 63 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 78 01 00 00 F4 03 04 00 67 2F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D2 FA 03 00 35 04 06 00 E7 40 E4 64 2E FA 1C 97 8B 37 D3 D7 B3 81 [17:29:07]CheckFolder [17:29:07]dirname=/storage/ofd_packets [17:29:07]CheckFolder done [17:29:07]ProducePacketName [17:29:07]name=ofd_packets/00260818 [17:29:07]NVStorageSaveData ofd_packets/00260818 [17:29:07]File name is /storage/ofd_packets/00260818 [17:29:07]Write 301 bytes [17:29:07]NVStorageSaveData done [17:29:07]OFDSenderStorePacket done [17:29:07]KKMCreateOFDPacket done [17:29:07]NVStorageSaveData kkm_last_timestamp [17:29:07]File name is /storage/kkm_last_timestamp [17:29:07]Write 4 bytes [17:29:07]NVStorageSaveData done [17:29:07]ExternCall_PrintAddStr [17:29:07]wPrintStart [17:29:07]Write to MH i2c: 01 00 00 92 A8 3A [17:29:07]Write i2c OK [17:29:07]MH_I2C_Read... [17:29:07]Read from MH i2c: 01 [17:29:07]MH_I2C_Read... [17:29:07]Read from MH i2c: 01 07 00 [17:29:07]MH_I2C_Read... [17:29:07]Read from MH i2c: 01 07 00 92 A8 00 00 00 00 00 FF 0F 4F [17:29:07]RasterBufferAndPrint [17:29:07]line Счет N : (1)1036370 [17:29:07]line ИНН: 02508201610067 [17:29:07]line Контрольно-Кассовый Чек [17:29:07]line ПРОДАЖА [17:29:07]line ТРК (МРК, ГНК) : 32 [17:29:07]line Товар: 2710124130 [17:29:07]line Аи-92-К-5 [17:29:07]line 7.380 * 67.80 [17:29:07]line = 500.36 [17:29:07]line НДС 12% НСП 1% [17:29:07]line > о реализуемом товаре [17:29:07]line ОКРУГЛЕНИЕ: -0.36 [17:29:07]line ИТОГО: 500.00 [17:29:07]line Внесено: 500.00 [17:29:07]line СДАЧА: 0.00 [17:29:07]line НСП 1% : 4.43 [17:29:07]line НДС 12% : 53.14 [17:29:07]line Наличными: 500.00 [17:29:07]line Безнал.: 0.00 [17:29:07]line Место: АЗС № 94 "Партнер Нефть" [17:29:07]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [17:29:07]line СНО: Общий режим [17:29:07]line Чек 376 18.08.2024 17:29 [17:29:07]line Смена: 449 ФФД: 1.0 [17:29:07]line ЗНМ: 0300000099 [17:29:07]line РНМ: 0000000000091865 [17:29:07]line Версия ККМ: 001 [17:29:07]line ФМ: 0000000000871820 [17:29:07]line ФД: 260818 [17:29:07]line ФПД: 254265895694074 [17:29:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T172911&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260818&fm=254265895694074&tin=02508201610067®Number=0000000000091865&sum=50000 [17:29:07]written 0, free lines is 4095 [17:29:07]OFD Sender: Processing packet 260818 [packets to send 192, broken 191] [17:29:07]ProducePacketName [17:29:07]name=ofd_packets/00260818 [17:29:07]OFD Sender: To server: pG, [17:29:07]CommunicateWithHost lk.salyk.kg:30040 [17:29:07]ConnectInit lk.salyk.kg [17:29:07]Connected sock=10 [17: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 30 0F 01 00 00 0A 43 07 01 63 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 78 01 00 00 F4 03 04 00 67 2F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D2 FA 03 00 35 04 06 00 E7 40 E4 64 2E FA 1C 97 8B 37 D3 D7 B3 81 [17: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 30 4F 00 00 00 26 4E 47 00 0B 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D2 FA 03 00 F4 03 04 00 BB D8 C1 66 B6 04 01 00 00 51 57 BD 5C A1 87 23 B4 [17:29:07]CommunicateWithHost err = 0 [17:29:07]CheckOFDResponse [17:29:07]1017 (14) - 77093643461234 [17:29:07]1041 (16) - 0000000000871820 [17:29:07]1040 (4) - 260818 [17:29:07]1012 (4) - 18.08.2024 11:19 [17:29:07]1206 (1) - 0 [17:29:07]OFD Sender: Remove packet 260818 [17:29:07]ProducePacketName [17:29:07]name=ofd_packets/00260818 [17:29:07]NVStorageDeleteData [17:29:07]Write to MH i2c: 01 00 00 BD A8 65 [17:29:07]Write i2c OK [17:29:07]MH_I2C_Read... [17:29:07]Read from MH i2c: 01 [17:29:07]MH_I2C_Read... [17:29:07]Read from MH i2c: 01 07 00 [17:29:07]MH_I2C_Read... [17:29:07]Read from MH i2c: 01 07 00 BD A8 00 00 00 00 00 66 0C DE [17:29:07]RasterBufferAndPrint [17:29:07]line [17:29:07]line [17:29:07]line [17:29:07]line [17:29:07]line [17:29:07]written 0, free lines is 3178 [17:29:07]MH_Cut [17:29:07]Write to MH i2c: D1 01 00 C4 A8 01 3E [17:29:07]Write i2c OK [17:29:07]MH_I2C_Read... [17:29:07]Read from MH i2c: D1 [17:29:07]MH_I2C_Read... [17:29:07]Read from MH i2c: D1 01 00 [17:29:07]MH_I2C_Read... [17:29:07]Read from MH i2c: D1 01 00 C4 A8 00 3D [17:29:07]Write to MH i2c: 01 00 00 C5 A8 6D [17:29:07]Write i2c OK [17:29:07]MH_I2C_Read... [17:29:08]OFD Sender: No OFD packet to send [17:29:09]*** Cut start [17:29:09]*** Purtial cut [17:29:09]*** Stage 1: CUTSNS_PIN = 1 [17:29:11]Read from MH i2c: 01 [17:29:11]MH_I2C_Read... [17:29:11]*** Stop cut motor [17:29:11]*** Cut end [17:29:11]Read from MH i2c: 01 07 00 [17:29:11]MH_I2C_Read... [17:29:11]Read from MH i2c: 01 07 00 C5 A8 00 00 00 00 00 FF 0F 82 [17:29:11]process_action close_receipt done [17:29:11]requested_data is exist [17:29:11]produce_requested_data [17:29:11]requested_item fm.sn is exist - process it [17:29:11]wFMCommunicate request_size=4 [17:29:11]MH_SAM_APDU [17:29:11]CAPDU: 80 11 00 00 [17:29:11]Write to MH i2c: E2 08 00 C6 A8 80 11 00 00 00 00 00 00 E8 [17:29:11]Write i2c OK [17:29:11]MH_I2C_Read... [17:29:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:11]Read from MH i2c: E2 [17:29:11]MH_I2C_Read... [17:29:11]Read from MH i2c: E2 17 00 [17:29:11]MH_I2C_Read... [17:29:11]Read from MH i2c: E2 17 00 C6 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 35 [17:29:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:29:11]wFMCommunicate OK [17:29:11]requested_item fd.num is exist - process it [17:29:11]SAM_PROTO_GetFieldsCounters [17:29:11]wFMCommunicate request_size=4 [17:29:11]MH_SAM_APDU [17:29:11]CAPDU: 80 13 00 00 [17:29:11]Write to MH i2c: E2 08 00 C7 A8 80 13 00 00 00 00 00 00 EB [17:29:11]Write i2c OK [17:29:11]MH_I2C_Read... [17:29:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:29:11]Read from MH i2c: E2 [17:29:11]MH_I2C_Read... [17:29:11]Read from MH i2c: E2 62 00 [17:29:11]MH_I2C_Read... [17:29:11]Read from MH i2c: E2 62 00 C7 A8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D2 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 78 01 00 00 5E 04 04 00 78 01 00 00 57 04 04 00 79 01 00 00 19 04 04 00 00 00 00 00 90 00 06 [17: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D2 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 78 01 00 00 5E 04 04 00 78 01 00 00 57 04 04 00 79 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:29:11]wFMCommunicate OK [17:29:11]SAM_PROTO_GetFieldsCounters done [17:29:11]requested_item shift.num is exist - process it [17:29:11]requested_item shift.opened is exist - process it [17:29:11]req_shift_opened [17:29:11]FM_GetShiftState [17:29:11]SAM_PROTO_GetShiftState [17:29:11]wFMCommunicate request_size=4 [17:29:11]MH_SAM_APDU [17:29:11]CAPDU: 80 13 01 00 [17:29:11]Write to MH i2c: E2 08 00 C8 A8 80 13 01 00 00 00 00 00 ED [17:29:11]Write i2c OK [17:29:11]MH_I2C_Read... [17:29:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:11]Read from MH i2c: E2 [17:29:11]MH_I2C_Read... [17:29:11]Read from MH i2c: E2 0E 00 [17:29:11]MH_I2C_Read... [17:29:11]Read from MH i2c: E2 0E 00 C8 A8 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 2A [17:29:11]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:29:11]wFMCommunicate OK [17:29:11]SAM_PROTO_GetShiftState done [17:29:11]FM_GetShiftState done [17:29:11]req_shift_opened done [17:29:11]requested_item shift.open_date is exist - process it [17:29:11]req_shift_open_date [17:29:11]req_shift_open_date done [17:29:11]produce_requested_data done [17:29:11]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260818,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [17:29:11]process_action_free close_receipt [17:29:11]json_value_free [17:29:11]json_value_free done [17:29:11]process_json_proto returns [17:29:11]Send response to host [17:29:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260818,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [17:29:11]free response buf [17:29:11]execute_script done [17:29:11]execute_script returns [17:29:11]free content buf [17:29:11]Sock 7.Close socket [17:29:11]Sock 7.Thread stoped [17:29:13]OFD Sender: No OFD packet to send [17:29:18]OFD Sender: No OFD packet to send [17:29:23]OFD Sender: No OFD packet to send [17:29:28]OFD Sender: No OFD packet to send [17:29:33]OFD Sender: No OFD packet to send [17:29:38]OFD Sender: No OFD packet to send [17:29:43]OFD Sender: No OFD packet to send [17:29:48]OFD Sender: No OFD packet to send [17:29:53]OFD Sender: No OFD packet to send [17:29:58]OFD Sender: No OFD packet to send [17:30:03]OFD Sender: No OFD packet to send [17:30:08]OFD Sender: No OFD packet to send [17:30:13]OFD Sender: No OFD packet to send [17:30:18]OFD Sender: No OFD packet to send [17:30:23]OFD Sender: No OFD packet to send [17:30:28]OFD Sender: No OFD packet to send [17:30:33]OFD Sender: No OFD packet to send [17:30:38]OFD Sender: No OFD packet to send [17:30:43]OFD Sender: No OFD packet to send [17:30:48]OFD Sender: No OFD packet to send [17:30:53]OFD Sender: No OFD packet to send [17:30:58]OFD Sender: No OFD packet to send [17:31:03]OFD Sender: No OFD packet to send [17:31:08]OFD Sender: No OFD packet to send [17:31:13]OFD Sender: No OFD packet to send [17:31:17]accept exits with 9 [17:31:17]New connection [17:31:17]New thread 3066617188 created [17:31:17]Thread 3066473828 joined [17:31:17]Waiting for new connection... [17:31:17] Sock 9.Parse request [17:31:17]Sock 9.Check first char [17:31:17]Sock 9.First char is OK [17:31:17]request: POST /json_proto HTTP/1.0 [17:31:17]Method: POST [17:31:17]URL: /json_proto [17:31:17]Method is POST - this is cgi request [17:31:17]url: /json_proto [17:31:17]query_string will be loaded in cgi processing [17:31:17]execute_cgi json_proto POST (null) [17:31:17]execute_cgi path=json_proto method=POST [17:31:17]POST find Content-Length [17:31:17]Host: 172.17.55.133:8080 [17:31:17]Content-Length: 679 [17:31:17]Content-Type: application/json [17:31:17] [17:31:17]POST finish read [17:31:17]Found Content-Length = 679 [17:31:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:17]execute_script... [17:31: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)1036371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:17]POST & json_proto [17:31:17]process_json_proto [17:31:17]json parsed OK: [17:31:17]protocol is kg_v1.0 [17:31:17]action value=close_receipt [17:31:17]process_action close_receipt [17:31:17]cmd_close_receipt [17:31:17]MH_GetDate [17:31:17]Write to MH i2c: F0 00 00 C9 A8 60 [17:31:17]Write i2c OK [17:31:17]MH_I2C_Read... [17:31:17]Read from MH i2c: F0 [17:31:17]MH_I2C_Read... [17:31:17]Read from MH i2c: F0 09 00 [17:31:17]MH_I2C_Read... [17:31:17]Read from MH i2c: F0 09 00 C9 A8 00 EB 2F C2 66 34 48 D8 65 64 [17:31:17]GetLastDocTimeStamp 1724002151 [17:31:17]current date 1724002283 [17:31:17]FM_GetShiftState [17:31:17]SAM_PROTO_GetShiftState [17:31:17]wFMCommunicate request_size=4 [17:31:17]MH_SAM_APDU [17:31:17]CAPDU: 80 13 01 00 [17:31:17]Write to MH i2c: E2 08 00 CA A8 80 13 01 00 00 00 00 00 EF [17:31:17]Write i2c OK [17:31:17]MH_I2C_Read... [17:31:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:18]Read from MH i2c: E2 [17:31:18]MH_I2C_Read... [17:31:18]Read from MH i2c: E2 0E 00 [17:31:18]MH_I2C_Read... [17:31:18]Read from MH i2c: E2 0E 00 CA A8 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 2C [17:31:18]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:31:18]wFMCommunicate OK [17:31:18]SAM_PROTO_GetShiftState done [17:31:18]FM_GetShiftState done [17:31:18]opened in 1723940556 [17:31:18]opened+sec_in_day 1724026956 [17:31:18]quantity*price = 70037 [17:31:18]sum+1 = 70038 [17:31:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 377 18.08.2024 17:31 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260819 ФПД: 129246118383643 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T173124&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260819&fm=129246118383643&tin=02508201610067®Number=0000000000091865&sum=70000 [17:31:19]StoreToDocumentArchive [17:31:19]shift 449 fd 260819 [17:31:19]save to /storage/0449/doc_00260819 [17:31:19]save last doc name /storage/0449/doc_00260819 to /storage/kkm_last_doc_name [17:31:19]save OK [17:31:19]Clear old archive folders... [17:31:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:31:19]tlvbuf is 00453720 [17:31:19]SAM_PROTO_ClearQueue [17:31:19]wFMCommunicate request_size=4 [17:31:19]MH_SAM_APDU [17:31:19]CAPDU: 80 09 00 00 [17:31:19]Write to MH i2c: E2 08 00 D7 A8 80 09 00 00 00 00 00 00 F1 [17:31:19]Write i2c OK [17:31:19]MH_I2C_Read... [17:31:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:19]Read from MH i2c: E2 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 03 00 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 03 00 D7 A8 00 90 00 F3 [17:31:19]RAPDU: 90 00 [17:31:19]wFMCommunicate OK [17:31:19]SAM_PROTO_ClearQueue done [17:31:19]KKMCreateOFDPacket [17:31:19]OFDProtocolAddRootSTLVToBuf [17:31:19]FM_MakeSignedData [17:31:19]FM_MakeSignedData [17:31:19]SAM_PROTO_SignData [17:31:19]wFMCommunicate request_size=4 [17:31:19]MH_SAM_APDU [17:31:19]CAPDU: 80 0D 01 02 [17:31:19]Write to MH i2c: E2 08 00 D8 A8 80 0D 01 02 00 00 00 00 F9 [17:31:19]Write i2c OK [17:31:19]MH_I2C_Read... [17:31:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:19]Read from MH i2c: E2 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 03 00 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 03 00 D8 A8 00 90 00 F4 [17:31:19]RAPDU: 90 00 [17:31:19]wFMCommunicate OK [17:31:19]wFMCommunicate request_size=255 [17:31:19]MH_SAM_APDU [17:31:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 79 01 00 00 F4 03 04 00 EC 2F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D3 FA 03 00 35 04 06 00 75 [17:31:19]Write to MH i2c: E2 02 01 D9 A8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 79 01 00 00 F4 03 04 00 EC 2F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D3 FA 03 00 35 04 06 00 75 00 00 21 [17:31:19]Write i2c OK [17:31:19]MH_I2C_Read... [17:31:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:19]Read from MH i2c: E2 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 03 00 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 03 00 D9 A8 00 90 00 F5 [17:31:19]RAPDU: 90 00 [17:31:19]wFMCommunicate OK [17:31:19]wFMCommunicate request_size=10 [17:31:19]MH_SAM_APDU [17:31:19]CAPDU: 80 0D 02 02 05 8C 74 F9 90 1B [17:31:19]Write to MH i2c: E2 0D 00 DA A8 80 0D 02 02 05 00 8C 74 F9 90 1B 00 00 AA [17:31:19]Write i2c OK [17:31:19]MH_I2C_Read... [17:31:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:19]Read from MH i2c: E2 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 03 00 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 03 00 DA A8 00 90 00 F6 [17:31:19]RAPDU: 90 00 [17:31:19]wFMCommunicate OK [17:31:19]wFMCommunicate request_size=4 [17:31:19]MH_SAM_APDU [17:31:19]CAPDU: 80 0D 03 02 [17:31:19]Write to MH i2c: E2 08 00 DB A8 80 0D 03 02 00 00 00 00 FE [17:31:19]Write i2c OK [17:31:19]MH_I2C_Read... [17:31:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:19]Read from MH i2c: E2 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 0B 00 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 0B 00 DB A8 00 CD 08 7A 6B 17 55 1A 3A 90 00 79 [17:31:19]RAPDU: CD 08 7A 6B 17 55 1A 3A 90 00 [17:31:19]wFMCommunicate OK [17:31:19]SAM_PROTO_SignData done [17:31:19]FM_MakeSignedData done [17:31:19]CreateOFDProtocolMessage [17:31:19]wFMCommunicate request_size=4 [17:31:19]MH_SAM_APDU [17:31:19]CAPDU: 80 11 00 00 [17:31:19]Write to MH i2c: E2 08 00 DC A8 80 11 00 00 00 00 00 00 FE [17:31:19]Write i2c OK [17:31:19]MH_I2C_Read... [17:31:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:19]Read from MH i2c: E2 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 17 00 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 17 00 DC A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 4B [17:31:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:31:19]wFMCommunicate OK [17:31:19]CreateOFDProtocolMessage done [17:31:19]OFDSenderStorePacket 260819 [17:31:19]StoreOFDPacket docnum=260819 [17:31:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 3C 08 07 01 D6 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 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 79 01 00 00 F4 03 04 00 EC 2F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D3 FA 03 00 35 04 06 00 75 8C 74 F9 90 1B CD 08 7A 6B 17 55 1A 3A [17:31:19]CheckFolder [17:31:19]dirname=/storage/ofd_packets [17:31:19]CheckFolder done [17:31:19]ProducePacketName [17:31:19]name=ofd_packets/00260819 [17:31:19]NVStorageSaveData ofd_packets/00260819 [17:31:19]File name is /storage/ofd_packets/00260819 [17:31:19]Write 301 bytes [17:31:19]NVStorageSaveData done [17:31:19]OFDSenderStorePacket done [17:31:19]KKMCreateOFDPacket done [17:31:19]NVStorageSaveData kkm_last_timestamp [17:31:19]File name is /storage/kkm_last_timestamp [17:31:19]Write 4 bytes [17:31:19]NVStorageSaveData done [17:31:19]ExternCall_PrintAddStr [17:31:19]wPrintStart [17:31:19]Write to MH i2c: 01 00 00 DD A8 85 [17:31:19]Write i2c OK [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: 01 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: 01 07 00 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: 01 07 00 DD A8 00 00 00 00 00 FF 0F 9A [17:31:19]RasterBufferAndPrint [17:31:19]line Счет N : (1)1036371 [17:31:19]line ИНН: 02508201610067 [17:31:19]line Контрольно-Кассовый Чек [17:31:19]line ПРОДАЖА [17:31:19]line ТРК (МРК, ГНК) : 32 [17:31:19]line Товар: 2710124130 [17:31:19]line Аи-92-К-5 [17:31:19]line 10.330 * 67.80 [17:31:19]line = 700.37 [17:31:19]line НДС 12% НСП 1% [17:31:19]line > о реализуемом товаре [17:31:19]line ОКРУГЛЕНИЕ: -0.37 [17:31:19]line ИТОГО: 700.00 [17:31:19]line Внесено: 700.00 [17:31:19]line СДАЧА: 0.00 [17:31:19]line НСП 1% : 6.20 [17:31:19]line НДС 12% : 74.38 [17:31:19]line Наличными: 700.00 [17:31:19]line Безнал.: 0.00 [17:31:19]line Место: АЗС № 94 "Партнер Нефть" [17:31:19]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [17:31:19]line СНО: Общий режим [17:31:19]line Чек 377 18.08.2024 17:31 [17:31:19]line Смена: 449 ФФД: 1.0 [17:31:19]line ЗНМ: 0300000099 [17:31:19]line РНМ: 0000000000091865 [17:31:19]line Версия ККМ: 001 [17:31:19]line ФМ: 0000000000871820 [17:31:19]line ФД: 260819 [17:31:19]line ФПД: 129246118383643 [17:31:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T173124&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260819&fm=129246118383643&tin=02508201610067®Number=0000000000091865&sum=70000 [17:31:19]written 0, free lines is 4095 [17:31:19]OFD Sender: Processing packet 260819 [packets to send 192, broken 191] [17:31:19]ProducePacketName [17:31:19]name=ofd_packets/00260819 [17:31:19]OFD Sender: To server: pG, [17:31:19]CommunicateWithHost lk.salyk.kg:30040 [17:31:19]ConnectInit lk.salyk.kg [17:31:19]Connected sock=10 [17:31: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 30 0F 01 00 00 3C 08 07 01 D6 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 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 79 01 00 00 F4 03 04 00 EC 2F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D3 FA 03 00 35 04 06 00 75 8C 74 F9 90 1B CD 08 7A 6B 17 55 1A 3A [17:31: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 30 4F 00 00 00 C3 B9 47 00 71 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 30 10 04 04 00 D3 FA 03 00 F4 03 04 00 40 D9 C1 66 B6 04 01 00 00 76 8F 78 F4 69 A1 20 BE [17:31:20]CommunicateWithHost err = 0 [17:31:20]CheckOFDResponse [17:31:20]1017 (14) - 77093643461234 [17:31:20]1041 (16) - 0000000000871820 [17:31:20]1040 (4) - 260819 [17:31:20]1012 (4) - 18.08.2024 11:21 [17:31:20]1206 (1) - 0 [17:31:20]OFD Sender: Remove packet 260819 [17:31:20]ProducePacketName [17:31:20]name=ofd_packets/00260819 [17:31:20]NVStorageDeleteData [17:31:20]Write to MH i2c: 01 00 00 08 A9 B1 [17:31:20]Write i2c OK [17:31:20]MH_I2C_Read... [17:31:20]Read from MH i2c: 01 [17:31:20]MH_I2C_Read... [17:31:20]Read from MH i2c: 01 07 00 [17:31:20]MH_I2C_Read... [17:31:20]Read from MH i2c: 01 07 00 08 A9 00 00 00 00 00 5F 0C 23 [17:31:20]RasterBufferAndPrint [17:31:20]line [17:31:20]line [17:31:20]line [17:31:20]line [17:31:20]line [17:31:20]written 0, free lines is 3171 [17:31:20]MH_Cut [17:31:20]Write to MH i2c: D1 01 00 0F A9 01 8A [17:31:20]Write i2c OK [17:31:20]MH_I2C_Read... [17:31:20]Read from MH i2c: D1 [17:31:20]MH_I2C_Read... [17:31:20]Read from MH i2c: D1 01 00 [17:31:20]MH_I2C_Read... [17:31:20]Read from MH i2c: D1 01 00 0F A9 00 89 [17:31:20]Write to MH i2c: 01 00 00 10 A9 B9 [17:31:20]Write i2c OK [17:31:20]MH_I2C_Read... [17:31:20]OFD Sender: No OFD packet to send [17:31:21]*** Cut start [17:31:21]*** Purtial cut [17:31:21]*** Stage 1: CUTSNS_PIN = 1 [17:31:23]Read from MH i2c: 01 [17:31:23]MH_I2C_Read... [17:31:23]*** Stop cut motor [17:31:23]*** Cut end [17:31:23]Read from MH i2c: 01 07 00 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: 01 07 00 10 A9 00 00 00 00 00 FF 0F CE [17:31:23]process_action close_receipt done [17:31:23]requested_data is exist [17:31:23]produce_requested_data [17:31:23]requested_item fm.sn is exist - process it [17:31:23]wFMCommunicate request_size=4 [17:31:23]MH_SAM_APDU [17:31:23]CAPDU: 80 11 00 00 [17:31:23]Write to MH i2c: E2 08 00 11 A9 80 11 00 00 00 00 00 00 34 [17:31:23]Write i2c OK [17:31:23]MH_I2C_Read... [17:31:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:23]Read from MH i2c: E2 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: E2 17 00 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: E2 17 00 11 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 81 [17:31:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:31:23]wFMCommunicate OK [17:31:23]requested_item fd.num is exist - process it [17:31:23]SAM_PROTO_GetFieldsCounters [17:31:23]wFMCommunicate request_size=4 [17:31:23]MH_SAM_APDU [17:31:23]CAPDU: 80 13 00 00 [17:31:23]Write to MH i2c: E2 08 00 12 A9 80 13 00 00 00 00 00 00 37 [17:31:23]Write i2c OK [17:31:23]MH_I2C_Read... [17:31:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:23]Read from MH i2c: E2 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: E2 62 00 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: E2 62 00 12 A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D3 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 79 01 00 00 5E 04 04 00 79 01 00 00 57 04 04 00 7A 01 00 00 19 04 04 00 00 00 00 00 90 00 56 [17:31: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D3 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 79 01 00 00 5E 04 04 00 79 01 00 00 57 04 04 00 7A 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:31:23]wFMCommunicate OK [17:31:23]SAM_PROTO_GetFieldsCounters done [17:31:23]requested_item shift.num is exist - process it [17:31:23]requested_item shift.opened is exist - process it [17:31:23]req_shift_opened [17:31:23]FM_GetShiftState [17:31:23]SAM_PROTO_GetShiftState [17:31:23]wFMCommunicate request_size=4 [17:31:23]MH_SAM_APDU [17:31:23]CAPDU: 80 13 01 00 [17:31:23]Write to MH i2c: E2 08 00 13 A9 80 13 01 00 00 00 00 00 39 [17:31:23]Write i2c OK [17:31:23]MH_I2C_Read... [17:31:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:23]Read from MH i2c: E2 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: E2 0E 00 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: E2 0E 00 13 A9 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 76 [17:31:23]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:31:23]wFMCommunicate OK [17:31:23]SAM_PROTO_GetShiftState done [17:31:23]FM_GetShiftState done [17:31:23]req_shift_opened done [17:31:23]requested_item shift.open_date is exist - process it [17:31:23]req_shift_open_date [17:31:23]req_shift_open_date done [17:31:23]produce_requested_data done [17:31:23]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260819,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [17:31:23]process_action_free close_receipt [17:31:23]json_value_free [17:31:23]json_value_free done [17:31:23]process_json_proto returns [17:31:23]Send response to host [17:31:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260819,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [17:31:23]free response buf [17:31:23]execute_script done [17:31:23]execute_script returns [17:31:23]free content buf [17:31:23]Sock 9.Close socket [17:31:23]Sock 9.Thread stoped [17:31:25]OFD Sender: No OFD packet to send [17:31:30]OFD Sender: No OFD packet to send [17:31:35]OFD Sender: No OFD packet to send [17:31:40]OFD Sender: No OFD packet to send [17:31:45]OFD Sender: No OFD packet to send [17:31:50]OFD Sender: No OFD packet to send [17:31:55]OFD Sender: No OFD packet to send [17:32:00]OFD Sender: No OFD packet to send [17:32:05]OFD Sender: No OFD packet to send [17:32:10]OFD Sender: No OFD packet to send [17:32:15]OFD Sender: No OFD packet to send [17:32:20]OFD Sender: No OFD packet to send [17:32:25]OFD Sender: No OFD packet to send [17:32:30]OFD Sender: No OFD packet to send [17:32:35]OFD Sender: No OFD packet to send [17:32:40]OFD Sender: No OFD packet to send [17:32:45]OFD Sender: No OFD packet to send [17:32:50]OFD Sender: No OFD packet to send [17:32:55]OFD Sender: No OFD packet to send [17:33:00]OFD Sender: No OFD packet to send [17:33:05]OFD Sender: No OFD packet to send [17:33:10]OFD Sender: No OFD packet to send [17:33:15]OFD Sender: No OFD packet to send [17:33:20]OFD Sender: No OFD packet to send [17:33:25]OFD Sender: No OFD packet to send [17:33:30]OFD Sender: No OFD packet to send [17:33:35]OFD Sender: No OFD packet to send [17:33:40]OFD Sender: No OFD packet to send [17:33:45]OFD Sender: No OFD packet to send [17:33:50]OFD Sender: No OFD packet to send [17:33:55]OFD Sender: No OFD packet to send [17:34:00]OFD Sender: No OFD packet to send [17:34:05]OFD Sender: No OFD packet to send [17:34:10]OFD Sender: No OFD packet to send [17:34:15]OFD Sender: No OFD packet to send [17:34:20]OFD Sender: No OFD packet to send [17:34:25]OFD Sender: No OFD packet to send [17:34:30]OFD Sender: No OFD packet to send [17:34:35]OFD Sender: No OFD packet to send [17:34:40]OFD Sender: No OFD packet to send [17:34:45]OFD Sender: No OFD packet to send [17:34:50]OFD Sender: No OFD packet to send [17:34:55]OFD Sender: No OFD packet to send [17:35:00]OFD Sender: No OFD packet to send [17:35:05]OFD Sender: No OFD packet to send [17:35:10]OFD Sender: No OFD packet to send [17:35:15]OFD Sender: No OFD packet to send [17:35:20]OFD Sender: No OFD packet to send [17:35:25]OFD Sender: No OFD packet to send [17:35:30]OFD Sender: No OFD packet to send [17:35:35]OFD Sender: No OFD packet to send [17:35:40]OFD Sender: No OFD packet to send [17:35:45]OFD Sender: No OFD packet to send [17:35:50]OFD Sender: No OFD packet to send [17:35:55]OFD Sender: No OFD packet to send [17:36:00]OFD Sender: No OFD packet to send [17:36:05]OFD Sender: No OFD packet to send [17:36:10]OFD Sender: No OFD packet to send [17:36:15]OFD Sender: No OFD packet to send [17:36:20]OFD Sender: No OFD packet to send [17:36:25]OFD Sender: No OFD packet to send [17:36:31]OFD Sender: No OFD packet to send [17:36:36]OFD Sender: No OFD packet to send [17:36:41]OFD Sender: No OFD packet to send [17:36:46]OFD Sender: No OFD packet to send [17:36:51]OFD Sender: No OFD packet to send [17:36:56]OFD Sender: No OFD packet to send [17:37:01]OFD Sender: No OFD packet to send [17:37:06]OFD Sender: No OFD packet to send [17:37:11]OFD Sender: No OFD packet to send [17:37:16]OFD Sender: No OFD packet to send [17:37:21]OFD Sender: No OFD packet to send [17:37:26]OFD Sender: No OFD packet to send [17:37:31]OFD Sender: No OFD packet to send [17:37:36]OFD Sender: No OFD packet to send [17:37:36]accept exits with 7 [17:37:36]New connection [17:37:36]New thread 3066473828 created [17:37:36]Thread 3066617188 joined [17:37:36]Waiting for new connection... [17:37:36] Sock 7.Parse request [17:37:36]Sock 7.Check first char [17:37:36]Sock 7.First char is OK [17:37:36]request: POST /json_proto HTTP/1.0 [17:37:36]Method: POST [17:37:36]URL: /json_proto [17:37:36]Method is POST - this is cgi request [17:37:36]url: /json_proto [17:37:36]query_string will be loaded in cgi processing [17:37:36]execute_cgi json_proto POST (null) [17:37:36]execute_cgi path=json_proto method=POST [17:37:36]POST find Content-Length [17:37:36]Host: 172.17.55.133:8080 [17:37:36]Content-Length: 683 [17:37:36]Content-Type: application/json [17:37:36] [17:37:36]POST finish read [17:37:36]Found Content-Length = 683 [17:37:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:36]execute_script... [17:37: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)1036372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:36]POST & json_proto [17:37:36]process_json_proto [17:37:36]json parsed OK: [17:37:36]protocol is kg_v1.0 [17:37:36]action value=close_receipt [17:37:36]process_action close_receipt [17:37:36]cmd_close_receipt [17:37:36]MH_GetDate [17:37:36]Write to MH i2c: F0 00 00 14 A9 AC [17:37:36]Write i2c OK [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: F0 [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: F0 09 00 [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: F0 09 00 14 A9 00 66 31 C2 66 34 48 D8 65 2D [17:37:36]GetLastDocTimeStamp 1724002284 [17:37:36]current date 1724002662 [17:37:36]FM_GetShiftState [17:37:36]SAM_PROTO_GetShiftState [17:37:36]wFMCommunicate request_size=4 [17:37:36]MH_SAM_APDU [17:37:36]CAPDU: 80 13 01 00 [17:37:36]Write to MH i2c: E2 08 00 15 A9 80 13 01 00 00 00 00 00 3B [17:37:36]Write i2c OK [17:37:36]MH_I2C_Read... [17:37:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:36]Read from MH i2c: E2 [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: E2 0E 00 [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: E2 0E 00 15 A9 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 78 [17:37:36]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:37:36]wFMCommunicate OK [17:37:36]SAM_PROTO_GetShiftState done [17:37:36]FM_GetShiftState done [17:37:36]opened in 1723940556 [17:37:36]opened+sec_in_day 1724026956 [17:37:36]quantity*price = 100005 [17:37:36]sum+1 = 100006 [17:37:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 378 18.08.2024 17:37 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260820 ФПД: 119623258501744 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T173742&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260820&fm=119623258501744&tin=02508201610067®Number=0000000000091865&sum=100000 [17:37:37]StoreToDocumentArchive [17:37:37]shift 449 fd 260820 [17:37:37]save to /storage/0449/doc_00260820 [17:37:37]save last doc name /storage/0449/doc_00260820 to /storage/kkm_last_doc_name [17:37:37]save OK [17:37:37]Clear old archive folders... [17:37:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:37:37]tlvbuf is 003E26D0 [17:37:37]SAM_PROTO_ClearQueue [17:37:37]wFMCommunicate request_size=4 [17:37:37]MH_SAM_APDU [17:37:37]CAPDU: 80 09 00 00 [17:37:37]Write to MH i2c: E2 08 00 22 A9 80 09 00 00 00 00 00 00 3D [17:37:37]Write i2c OK [17:37:37]MH_I2C_Read... [17:37:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:37:38]Read from MH i2c: E2 [17:37:38]MH_I2C_Read... [17:37:38]Read from MH i2c: E2 03 00 [17:37:38]MH_I2C_Read... [17:37:38]Read from MH i2c: E2 03 00 22 A9 00 90 00 3F [17:37:38]RAPDU: 90 00 [17:37:38]wFMCommunicate OK [17:37:38]SAM_PROTO_ClearQueue done [17:37:38]KKMCreateOFDPacket [17:37:38]OFDProtocolAddRootSTLVToBuf [17:37:38]FM_MakeSignedData [17:37:38]FM_MakeSignedData [17:37:38]SAM_PROTO_SignData [17:37:38]wFMCommunicate request_size=4 [17:37:38]MH_SAM_APDU [17:37:38]CAPDU: 80 0D 01 02 [17:37:38]Write to MH i2c: E2 08 00 23 A9 80 0D 01 02 00 00 00 00 45 [17:37:38]Write i2c OK [17:37:38]MH_I2C_Read... [17:37:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:37:38]Read from MH i2c: E2 [17:37:38]MH_I2C_Read... [17:37:38]Read from MH i2c: E2 03 00 [17:37:38]MH_I2C_Read... [17:37:38]Read from MH i2c: E2 03 00 23 A9 00 90 00 40 [17:37:38]RAPDU: 90 00 [17:37:38]wFMCommunicate OK [17:37:38]wFMCommunicate request_size=255 [17:37:38]MH_SAM_APDU [17:37:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 01 00 00 F4 03 04 00 66 31 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D4 FA 03 00 35 04 06 00 6C [17:37:38]Write to MH i2c: E2 02 01 24 A9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 01 00 00 F4 03 04 00 66 31 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D4 FA 03 00 35 04 06 00 6C 00 00 8A [17:37:38]Write i2c OK [17:37:38]MH_I2C_Read... [17:37:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:38]Read from MH i2c: E2 [17:37:38]MH_I2C_Read... [17:37:38]Read from MH i2c: E2 03 00 [17:37:38]MH_I2C_Read... [17:37:38]Read from MH i2c: E2 03 00 24 A9 00 90 00 41 [17:37:38]RAPDU: 90 00 [17:37:38]wFMCommunicate OK [17:37:38]wFMCommunicate request_size=10 [17:37:38]MH_SAM_APDU [17:37:38]CAPDU: 80 0D 02 02 05 CB F5 D4 72 70 [17:37:38]Write to MH i2c: E2 0D 00 25 A9 80 0D 02 02 05 00 CB F5 D4 72 70 00 00 C8 [17:37:38]Write i2c OK [17:37:38]MH_I2C_Read... [17:37:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:38]Read from MH i2c: E2 [17:37:38]MH_I2C_Read... [17:37:38]Read from MH i2c: E2 03 00 [17:37:38]MH_I2C_Read... [17:37:38]Read from MH i2c: E2 03 00 25 A9 00 90 00 42 [17:37:38]RAPDU: 90 00 [17:37:38]wFMCommunicate OK [17:37:38]wFMCommunicate request_size=4 [17:37:38]MH_SAM_APDU [17:37:38]CAPDU: 80 0D 03 02 [17:37:38]Write to MH i2c: E2 08 00 26 A9 80 0D 03 02 00 00 00 00 4A [17:37:38]Write i2c OK [17:37:38]MH_I2C_Read... [17:37:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:37:38]Read from MH i2c: E2 [17:37:38]MH_I2C_Read... [17:37:38]Read from MH i2c: E2 0B 00 [17:37:38]MH_I2C_Read... [17:37:38]Read from MH i2c: E2 0B 00 26 A9 00 DD F0 B1 B6 96 01 BE 4E 90 00 22 [17:37:38]RAPDU: DD F0 B1 B6 96 01 BE 4E 90 00 [17:37:38]wFMCommunicate OK [17:37:38]SAM_PROTO_SignData done [17:37:38]FM_MakeSignedData done [17:37:38]CreateOFDProtocolMessage [17:37:38]wFMCommunicate request_size=4 [17:37:38]MH_SAM_APDU [17:37:38]CAPDU: 80 11 00 00 [17:37:38]Write to MH i2c: E2 08 00 27 A9 80 11 00 00 00 00 00 00 4A [17:37:38]Write i2c OK [17:37:38]MH_I2C_Read... [17:37:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:38]Read from MH i2c: E2 [17:37:38]MH_I2C_Read... [17:37:38]Read from MH i2c: E2 17 00 [17:37:38]MH_I2C_Read... [17:37:38]Read from MH i2c: E2 17 00 27 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 97 [17:37:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:37:38]wFMCommunicate OK [17:37:38]CreateOFDProtocolMessage done [17:37:38]OFDSenderStorePacket 260820 [17:37:38]StoreOFDPacket docnum=260820 [17:37:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 85 FA 07 01 3C 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 01 00 00 F4 03 04 00 66 31 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D4 FA 03 00 35 04 06 00 6C CB F5 D4 72 70 DD F0 B1 B6 96 01 BE 4E [17:37:38]CheckFolder [17:37:38]dirname=/storage/ofd_packets [17:37:38]CheckFolder done [17:37:38]ProducePacketName [17:37:38]name=ofd_packets/00260820 [17:37:38]NVStorageSaveData ofd_packets/00260820 [17:37:38]File name is /storage/ofd_packets/00260820 [17:37:38]Write 301 bytes [17:37:38]NVStorageSaveData done [17:37:38]OFDSenderStorePacket done [17:37:38]KKMCreateOFDPacket done [17:37:38]NVStorageSaveData kkm_last_timestamp [17:37:38]File name is /storage/kkm_last_timestamp [17:37:38]Write 4 bytes [17:37:38]NVStorageSaveData done [17:37:38]ExternCall_PrintAddStr [17:37:38]wPrintStart [17:37:38]Write to MH i2c: 01 00 00 28 A9 D1 [17:37:38]Write i2c OK [17:37:38]MH_I2C_Read... [17:37:38]Read from MH i2c: 01 [17:37:38]MH_I2C_Read... [17:37:38]Read from MH i2c: 01 07 00 [17:37:38]MH_I2C_Read... [17:37:38]Read from MH i2c: 01 07 00 28 A9 00 00 00 00 00 FF 0F E6 [17:37:38]RasterBufferAndPrint [17:37:38]line Счет N : (1)1036372 [17:37:38]line ИНН: 02508201610067 [17:37:38]line Контрольно-Кассовый Чек [17:37:38]line ПРОДАЖА [17:37:38]line ТРК (МРК, ГНК) : 12 [17:37:38]line Товар: 2710124130 [17:37:38]line Аи-92-К-5 [17:37:38]line 14.750 * 67.80 [17:37:38]line = 1000.05 [17:37:38]line НДС 12% НСП 1% [17:37:38]line > о реализуемом товаре [17:37:38]line ОКРУГЛЕНИЕ: -0.05 [17:37:38]line ИТОГО: 1000.00 [17:37:38]line Внесено: 1000.00 [17:37:38]line СДАЧА: 0.00 [17:37:38]line НСП 1% : 8.85 [17:37:38]line НДС 12% : 106.20 [17:37:38]line Наличными: 1000.00 [17:37:38]line Безнал.: 0.00 [17:37:38]line Место: АЗС № 94 "Партнер Нефть" [17:37:38]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [17:37:38]line СНО: Общий режим [17:37:38]line Чек 378 18.08.2024 17:37 [17:37:38]line Смена: 449 ФФД: 1.0 [17:37:38]line ЗНМ: 0300000099 [17:37:38]line РНМ: 0000000000091865 [17:37:38]line Версия ККМ: 001 [17:37:38]line ФМ: 0000000000871820 [17:37:38]line ФД: 260820 [17:37:38]line ФПД: 119623258501744 [17:37:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T173742&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260820&fm=119623258501744&tin=02508201610067®Number=0000000000091865&sum=100000 [17:37:38]written 0, free lines is 4095 [17:37:38]OFD Sender: Processing packet 260820 [packets to send 192, broken 191] [17:37:38]ProducePacketName [17:37:38]name=ofd_packets/00260820 [17:37:38]OFD Sender: To server: pG, [17:37:38]CommunicateWithHost lk.salyk.kg:30040 [17:37:38]ConnectInit lk.salyk.kg [17:37:38]Connected sock=10 [17:37: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 30 0F 01 00 00 85 FA 07 01 3C 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 01 00 00 F4 03 04 00 66 31 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D4 FA 03 00 35 04 06 00 6C CB F5 D4 72 70 DD F0 B1 B6 96 01 BE 4E [17: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 30 4F 00 00 00 B4 38 47 00 25 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D4 FA 03 00 F4 03 04 00 BB DA C1 66 B6 04 01 00 00 C7 F9 9B D6 87 5B 7D 58 [17:37:39]CommunicateWithHost err = 0 [17:37:39]CheckOFDResponse [17:37:39]1017 (14) - 77093643461234 [17:37:39]1041 (16) - 0000000000871820 [17:37:39]1040 (4) - 260820 [17:37:39]1012 (4) - 18.08.2024 11:27 [17:37:39]1206 (1) - 0 [17:37:39]OFD Sender: Remove packet 260820 [17:37:39]ProducePacketName [17:37:39]name=ofd_packets/00260820 [17:37:39]NVStorageDeleteData [17:37:39]Write to MH i2c: 01 00 00 53 A9 FC [17:37:39]Write i2c OK [17:37:39]MH_I2C_Read... [17:37:39]Read from MH i2c: 01 [17:37:39]MH_I2C_Read... [17:37:39]Read from MH i2c: 01 07 00 [17:37:39]MH_I2C_Read... [17:37:39]Read from MH i2c: 01 07 00 53 A9 00 00 00 00 00 5F 0C 6E [17:37:39]RasterBufferAndPrint [17:37:39]line [17:37:39]line [17:37:39]line [17:37:39]line [17:37:39]line [17:37:39]written 0, free lines is 3171 [17:37:39]MH_Cut [17:37:39]Write to MH i2c: D1 01 00 5A A9 01 D5 [17:37:39]Write i2c OK [17:37:39]MH_I2C_Read... [17:37:39]Read from MH i2c: D1 [17:37:39]MH_I2C_Read... [17:37:39]Read from MH i2c: D1 01 00 [17:37:39]MH_I2C_Read... [17:37:39]Read from MH i2c: D1 01 00 5A A9 00 D4 [17:37:39]Write to MH i2c: 01 00 00 5B A9 04 [17:37:39]Write i2c OK [17:37:39]MH_I2C_Read... [17:37:39]OFD Sender: No OFD packet to send [17:37:40]*** Cut start [17:37:40]*** Purtial cut [17:37:40]*** Stage 1: CUTSNS_PIN = 1 [17:37:42]Read from MH i2c: 01 [17:37:42]MH_I2C_Read... [17:37:42]*** Stop cut motor [17:37:42]*** Cut end [17:37:42]Read from MH i2c: 01 07 00 [17:37:42]MH_I2C_Read... [17:37:42]Read from MH i2c: 01 07 00 5B A9 00 00 00 00 00 FF 0F 19 [17:37:42]process_action close_receipt done [17:37:42]requested_data is exist [17:37:42]produce_requested_data [17:37:42]requested_item fm.sn is exist - process it [17:37:42]wFMCommunicate request_size=4 [17:37:42]MH_SAM_APDU [17:37:42]CAPDU: 80 11 00 00 [17:37:42]Write to MH i2c: E2 08 00 5C A9 80 11 00 00 00 00 00 00 7F [17:37:42]Write i2c OK [17:37:42]MH_I2C_Read... [17:37:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:42]Read from MH i2c: E2 [17:37:42]MH_I2C_Read... [17:37:42]Read from MH i2c: E2 17 00 [17:37:42]MH_I2C_Read... [17:37:42]Read from MH i2c: E2 17 00 5C A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 CC [17:37:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:37:42]wFMCommunicate OK [17:37:42]requested_item fd.num is exist - process it [17:37:42]SAM_PROTO_GetFieldsCounters [17:37:42]wFMCommunicate request_size=4 [17:37:42]MH_SAM_APDU [17:37:42]CAPDU: 80 13 00 00 [17:37:42]Write to MH i2c: E2 08 00 5D A9 80 13 00 00 00 00 00 00 82 [17:37:42]Write i2c OK [17:37:42]MH_I2C_Read... [17:37:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:37:42]Read from MH i2c: E2 [17:37:42]MH_I2C_Read... [17:37:42]Read from MH i2c: E2 62 00 [17:37:42]MH_I2C_Read... [17:37:42]Read from MH i2c: E2 62 00 5D A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D4 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 7A 01 00 00 5E 04 04 00 7A 01 00 00 57 04 04 00 7B 01 00 00 19 04 04 00 00 00 00 00 90 00 A5 [17:37: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D4 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 7A 01 00 00 5E 04 04 00 7A 01 00 00 57 04 04 00 7B 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:37:42]wFMCommunicate OK [17:37:42]SAM_PROTO_GetFieldsCounters done [17:37:42]requested_item shift.num is exist - process it [17:37:42]requested_item shift.opened is exist - process it [17:37:42]req_shift_opened [17:37:42]FM_GetShiftState [17:37:42]SAM_PROTO_GetShiftState [17:37:42]wFMCommunicate request_size=4 [17:37:42]MH_SAM_APDU [17:37:42]CAPDU: 80 13 01 00 [17:37:42]Write to MH i2c: E2 08 00 5E A9 80 13 01 00 00 00 00 00 84 [17:37:42]Write i2c OK [17:37:42]MH_I2C_Read... [17:37:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:42]Read from MH i2c: E2 [17:37:42]MH_I2C_Read... [17:37:42]Read from MH i2c: E2 0E 00 [17:37:42]MH_I2C_Read... [17:37:42]Read from MH i2c: E2 0E 00 5E A9 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C1 [17:37:42]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:37:42]wFMCommunicate OK [17:37:42]SAM_PROTO_GetShiftState done [17:37:42]FM_GetShiftState done [17:37:42]req_shift_opened done [17:37:42]requested_item shift.open_date is exist - process it [17:37:42]req_shift_open_date [17:37:42]req_shift_open_date done [17:37:42]produce_requested_data done [17:37:42]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260820,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [17:37:42]process_action_free close_receipt [17:37:42]json_value_free [17:37:42]json_value_free done [17:37:42]process_json_proto returns [17:37:42]Send response to host [17:37:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260820,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [17:37:42]free response buf [17:37:42]execute_script done [17:37:42]execute_script returns [17:37:42]free content buf [17:37:42]Sock 7.Close socket [17:37:42]Sock 7.Thread stoped [17:37:44]OFD Sender: No OFD packet to send [17:37:49]OFD Sender: No OFD packet to send [17:37:54]OFD Sender: No OFD packet to send [17:37:59]OFD Sender: No OFD packet to send [17:38:04]OFD Sender: No OFD packet to send [17:38:09]OFD Sender: No OFD packet to send [17:38:14]OFD Sender: No OFD packet to send [17:38:19]OFD Sender: No OFD packet to send [17:38:24]OFD Sender: No OFD packet to send [17:38:29]OFD Sender: No OFD packet to send [17:38:34]OFD Sender: No OFD packet to send [17:38:39]OFD Sender: No OFD packet to send [17:38:44]OFD Sender: No OFD packet to send [17:38:49]OFD Sender: No OFD packet to send [17:38:54]OFD Sender: No OFD packet to send [17:38:59]OFD Sender: No OFD packet to send [17:39:04]OFD Sender: No OFD packet to send [17:39:09]OFD Sender: No OFD packet to send [17:39:14]OFD Sender: No OFD packet to send [17:39:19]OFD Sender: No OFD packet to send [17:39:24]OFD Sender: No OFD packet to send [17:39:29]OFD Sender: No OFD packet to send [17:39:34]OFD Sender: No OFD packet to send [17:39:39]OFD Sender: No OFD packet to send [17:39:44]OFD Sender: No OFD packet to send [17:39:49]OFD Sender: No OFD packet to send [17:39:54]OFD Sender: No OFD packet to send [17:39:59]OFD Sender: No OFD packet to send [17:40:04]OFD Sender: No OFD packet to send [17:40:09]OFD Sender: No OFD packet to send [17:40:14]OFD Sender: No OFD packet to send [17:40:19]OFD Sender: No OFD packet to send [17:40:24]OFD Sender: No OFD packet to send [17:40:29]OFD Sender: No OFD packet to send [17:40:34]OFD Sender: No OFD packet to send [17:40:39]OFD Sender: No OFD packet to send [17:40:44]OFD Sender: No OFD packet to send [17:40:49]OFD Sender: No OFD packet to send [17:40:54]OFD Sender: No OFD packet to send [17:40:59]OFD Sender: No OFD packet to send [17:41:04]OFD Sender: No OFD packet to send [17:41:09]OFD Sender: No OFD packet to send [17:41:14]OFD Sender: No OFD packet to send [17:41:19]OFD Sender: No OFD packet to send [17:41:22]accept exits with 9 [17:41:22]New connection [17:41:22]New thread 3066617188 created [17:41:22]Thread 3066473828 joined [17:41:22]Waiting for new connection... [17:41:22] Sock 9.Parse request [17:41:22]Sock 9.Check first char [17:41:22]Sock 9.First char is OK [17:41:22]request: POST /json_proto HTTP/1.0 [17:41:22]Method: POST [17:41:22]URL: /json_proto [17:41:22]Method is POST - this is cgi request [17:41:22]url: /json_proto [17:41:22]query_string will be loaded in cgi processing [17:41:22]execute_cgi json_proto POST (null) [17:41:22]execute_cgi path=json_proto method=POST [17:41:22]POST find Content-Length [17:41:22]Host: 172.17.55.133:8080 [17:41:22]Content-Length: 688 [17:41:22]Content-Type: application/json [17:41:22] [17:41:22]POST finish read [17:41:22]Found Content-Length = 688 [17:41:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 27.430, "sum" : 2090.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2090.00, "total" : 2090.00, "payments": [ { "type": 0, "sum" : 2090.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:22]execute_script... [17: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)1036373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 27.430, "sum" : 2090.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2090.00, "total" : 2090.00, "payments": [ { "type": 0, "sum" : 2090.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:22]POST & json_proto [17:41:22]process_json_proto [17:41:22]json parsed OK: [17:41:22]protocol is kg_v1.0 [17:41:22]action value=close_receipt [17:41:22]process_action close_receipt [17:41:22]cmd_close_receipt [17:41:22]MH_GetDate [17:41:22]Write to MH i2c: F0 00 00 5F A9 F7 [17:41:22]Write i2c OK [17:41:22]MH_I2C_Read... [17:41:22]Read from MH i2c: F0 [17:41:22]MH_I2C_Read... [17:41:22]Read from MH i2c: F0 09 00 [17:41:22]MH_I2C_Read... [17:41:22]Read from MH i2c: F0 09 00 5F A9 00 48 32 C2 66 34 48 D8 65 5B [17:41:22]GetLastDocTimeStamp 1724002662 [17:41:22]current date 1724002888 [17:41:22]FM_GetShiftState [17:41:22]SAM_PROTO_GetShiftState [17:41:22]wFMCommunicate request_size=4 [17:41:22]MH_SAM_APDU [17:41:22]CAPDU: 80 13 01 00 [17:41:22]Write to MH i2c: E2 08 00 60 A9 80 13 01 00 00 00 00 00 86 [17:41:22]Write i2c OK [17:41:22]MH_I2C_Read... [17:41:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:22]Read from MH i2c: E2 [17:41:22]MH_I2C_Read... [17:41:22]Read from MH i2c: E2 0E 00 [17:41:22]MH_I2C_Read... [17:41:22]Read from MH i2c: E2 0E 00 60 A9 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C3 [17:41:22]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:41:22]wFMCommunicate OK [17:41:22]SAM_PROTO_GetShiftState done [17:41:22]FM_GetShiftState done [17:41:22]opened in 1723940556 [17:41:22]opened+sec_in_day 1724026956 [17:41:22]quantity*price = 209016 [17:41:22]sum+1 = 209018 [17:41:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 2090.00 Внесено: 2090.00 СДАЧА: 0.00 НСП 1% : 18.50 НДС 12% : 221.96 Наличными: 2090.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 379 18.08.2024 17:41 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260821 ФПД: 180308770845201 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T174128&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260821&fm=180308770845201&tin=02508201610067®Number=0000000000091865&sum=209000 [17:41:23]StoreToDocumentArchive [17:41:23]shift 449 fd 260821 [17:41:23]save to /storage/0449/doc_00260821 [17:41:23]save last doc name /storage/0449/doc_00260821 to /storage/kkm_last_doc_name [17:41:23]save OK [17:41:23]Clear old archive folders... [17:41:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:41:23]tlvbuf is 004334B0 [17:41:23]SAM_PROTO_ClearQueue [17:41:23]wFMCommunicate request_size=4 [17:41:23]MH_SAM_APDU [17:41:23]CAPDU: 80 09 00 00 [17:41:23]Write to MH i2c: E2 08 00 6D A9 80 09 00 00 00 00 00 00 88 [17:41:23]Write i2c OK [17:41:23]MH_I2C_Read... [17:41:23]Read from MH i2c: E2 [17:41:23]MH_I2C_Read... [17:41:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:41:23]Read from MH i2c: E2 03 00 [17:41:23]MH_I2C_Read... [17:41:23]Read from MH i2c: E2 03 00 6D A9 00 90 00 8A [17:41:23]RAPDU: 90 00 [17:41:23]wFMCommunicate OK [17:41:23]SAM_PROTO_ClearQueue done [17:41:23]KKMCreateOFDPacket [17:41:23]OFDProtocolAddRootSTLVToBuf [17:41:23]FM_MakeSignedData [17:41:23]FM_MakeSignedData [17:41:23]SAM_PROTO_SignData [17:41:23]wFMCommunicate request_size=4 [17:41:23]MH_SAM_APDU [17:41:23]CAPDU: 80 0D 01 02 [17:41:23]Write to MH i2c: E2 08 00 6E A9 80 0D 01 02 00 00 00 00 90 [17:41:23]Write i2c OK [17:41:23]MH_I2C_Read... [17:41:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:41:23]Read from MH i2c: E2 [17:41:23]MH_I2C_Read... [17:41:23]Read from MH i2c: E2 03 00 [17:41:23]MH_I2C_Read... [17:41:23]Read from MH i2c: E2 03 00 6E A9 00 90 00 8B [17:41:23]RAPDU: 90 00 [17:41:23]wFMCommunicate OK [17:41:23]wFMCommunicate request_size=255 [17:41:23]MH_SAM_APDU [17:41:23]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 26 6B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 79 30 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 30 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 56 00 00 00 00 07 04 06 00 68 30 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 48 32 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D5 FA 03 00 35 04 06 00 [17:41:23]Write to MH i2c: E2 02 01 6F A9 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 26 6B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 79 30 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 30 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 56 00 00 00 00 07 04 06 00 68 30 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 48 32 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D5 FA 03 00 35 04 06 00 00 00 23 [17:41:23]Write i2c OK [17:41:23]MH_I2C_Read... [17:41:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:23]Read from MH i2c: E2 [17:41:23]MH_I2C_Read... [17:41:23]Read from MH i2c: E2 03 00 [17:41:23]MH_I2C_Read... [17:41:23]Read from MH i2c: E2 03 00 6F A9 00 90 00 8C [17:41:23]RAPDU: 90 00 [17:41:23]wFMCommunicate OK [17:41:23]wFMCommunicate request_size=11 [17:41:23]MH_SAM_APDU [17:41:23]CAPDU: 80 0D 02 02 06 A3 FD 68 3C 72 11 [17:41:23]Write to MH i2c: E2 0E 00 70 A9 80 0D 02 02 06 00 A3 FD 68 3C 72 11 00 00 66 [17:41:23]Write i2c OK [17:41:23]MH_I2C_Read... [17:41:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:23]Read from MH i2c: E2 [17:41:23]MH_I2C_Read... [17:41:23]Read from MH i2c: E2 03 00 [17:41:23]MH_I2C_Read... [17:41:23]Read from MH i2c: E2 03 00 70 A9 00 90 00 8D [17:41:23]RAPDU: 90 00 [17:41:23]wFMCommunicate OK [17:41:23]wFMCommunicate request_size=4 [17:41:23]MH_SAM_APDU [17:41:23]CAPDU: 80 0D 03 02 [17:41:23]Write to MH i2c: E2 08 00 71 A9 80 0D 03 02 00 00 00 00 95 [17:41:23]Write i2c OK [17:41:23]MH_I2C_Read... [17:41:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:41:23]Read from MH i2c: E2 [17:41:23]MH_I2C_Read... [17:41:23]Read from MH i2c: E2 0B 00 [17:41:23]MH_I2C_Read... [17:41:23]Read from MH i2c: E2 0B 00 71 A9 00 D3 C8 0B 6E 30 F3 87 EC 90 00 40 [17:41:23]RAPDU: D3 C8 0B 6E 30 F3 87 EC 90 00 [17:41:23]wFMCommunicate OK [17:41:23]SAM_PROTO_SignData done [17:41:23]FM_MakeSignedData done [17:41:23]CreateOFDProtocolMessage [17:41:23]wFMCommunicate request_size=4 [17:41:23]MH_SAM_APDU [17:41:23]CAPDU: 80 11 00 00 [17:41:23]Write to MH i2c: E2 08 00 72 A9 80 11 00 00 00 00 00 00 95 [17:41:23]Write i2c OK [17:41:23]MH_I2C_Read... [17:41:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:23]Read from MH i2c: E2 [17:41:23]MH_I2C_Read... [17:41:23]Read from MH i2c: E2 17 00 [17:41:23]MH_I2C_Read... [17:41:23]Read from MH i2c: E2 17 00 72 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E2 [17:41:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:41:23]wFMCommunicate OK [17:41:23]CreateOFDProtocolMessage done [17:41:23]OFDSenderStorePacket 260821 [17:41:23]StoreOFDPacket docnum=260821 [17: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 30 10 01 00 00 21 82 08 01 F4 D4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 26 6B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 79 30 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 30 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 56 00 00 00 00 07 04 06 00 68 30 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 48 32 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D5 FA 03 00 35 04 06 00 A3 FD 68 3C 72 11 D3 C8 0B 6E 30 F3 87 EC [17:41:23]CheckFolder [17:41:23]dirname=/storage/ofd_packets [17:41:23]CheckFolder done [17:41:23]ProducePacketName [17:41:23]name=ofd_packets/00260821 [17:41:23]NVStorageSaveData ofd_packets/00260821 [17:41:23]File name is /storage/ofd_packets/00260821 [17:41:23]Write 302 bytes [17:41:23]NVStorageSaveData done [17:41:23]OFDSenderStorePacket done [17:41:23]KKMCreateOFDPacket done [17:41:23]NVStorageSaveData kkm_last_timestamp [17:41:23]File name is /storage/kkm_last_timestamp [17:41:23]Write 4 bytes [17:41:23]NVStorageSaveData done [17:41:23]ExternCall_PrintAddStr [17:41:23]wPrintStart [17:41:23]Write to MH i2c: 01 00 00 73 A9 1C [17:41:23]Write i2c OK [17:41:23]MH_I2C_Read... [17:41:23]Read from MH i2c: 01 [17:41:23]MH_I2C_Read... [17:41:23]Read from MH i2c: 01 07 00 [17:41:23]MH_I2C_Read... [17:41:23]Read from MH i2c: 01 07 00 73 A9 00 00 00 00 00 FF 0F 31 [17:41:23]RasterBufferAndPrint [17:41:23]line Счет N : (1)1036373 [17:41:23]line ИНН: 02508201610067 [17:41:23]line Контрольно-Кассовый Чек [17:41:23]line ПРОДАЖА [17:41:23]line ТРК (МРК, ГНК) : 33 [17:41:23]line Товар: 2710194210 [17:41:23]line ДТ(л)-К-4 [17:41:23]line 27.430 * 76.20 [17:41:23]line = 2090.17 [17:41:23]line НДС 12% НСП 1% [17:41:23]line > о реализуемом товаре [17:41:23]line ОКРУГЛЕНИЕ: -0.17 [17:41:23]line ИТОГО: 2090.00 [17:41:23]line Внесено: 2090.00 [17:41:23]line СДАЧА: 0.00 [17:41:23]line НСП 1% : 18.50 [17:41:23]line НДС 12% : 221.96 [17:41:23]line Наличными: 2090.00 [17:41:23]line Безнал.: 0.00 [17:41:23]line Место: АЗС № 94 "Партнер Нефть" [17:41:23]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [17:41:23]line СНО: Общий режим [17:41:23]line Чек 379 18.08.2024 17:41 [17:41:23]line Смена: 449 ФФД: 1.0 [17:41:23]line ЗНМ: 0300000099 [17:41:23]line РНМ: 0000000000091865 [17:41:23]line Версия ККМ: 001 [17:41:23]line ФМ: 0000000000871820 [17:41:24]line ФД: 260821 [17:41:24]line ФПД: 180308770845201 [17:41:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T174128&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260821&fm=180308770845201&tin=02508201610067®Number=0000000000091865&sum=209000 [17:41:24]OFD Sender: Processing packet 260821 [packets to send 192, broken 191] [17:41:24]ProducePacketName [17:41:24]name=ofd_packets/00260821 [17:41:24]OFD Sender: To server: pG, [17:41:24]CommunicateWithHost lk.salyk.kg:30040 [17:41:24]ConnectInit lk.salyk.kg [17:41:24]written 0, free lines is 4095 [17:41:24]Connected sock=10 [17: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 30 10 01 00 00 21 82 08 01 F4 D4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 26 6B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 79 30 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 30 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 56 00 00 00 00 07 04 06 00 68 30 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 48 32 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D5 FA 03 00 35 04 06 00 A3 FD 68 3C 72 11 D3 C8 0B 6E 30 F3 87 EC [17: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 30 4F 00 00 00 0C 29 47 00 5E CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D5 FA 03 00 F4 03 04 00 9C DB C1 66 B6 04 01 00 00 90 0B E6 8C 36 3C F4 66 [17:41:24]CommunicateWithHost err = 0 [17:41:24]CheckOFDResponse [17:41:24]1017 (14) - 77093643461234 [17:41:24]1041 (16) - 0000000000871820 [17:41:24]1040 (4) - 260821 [17:41:24]1012 (4) - 18.08.2024 11:31 [17:41:24]1206 (1) - 0 [17:41:24]OFD Sender: Remove packet 260821 [17:41:24]ProducePacketName [17:41:24]name=ofd_packets/00260821 [17:41:24]NVStorageDeleteData [17:41:24]Write to MH i2c: 01 00 00 9E A9 47 [17:41:24]Write i2c OK [17:41:24]MH_I2C_Read... [17:41:24]Read from MH i2c: 01 [17:41:24]MH_I2C_Read... [17:41:24]Read from MH i2c: 01 07 00 [17:41:24]MH_I2C_Read... [17:41:24]Read from MH i2c: 01 07 00 9E A9 00 00 00 00 00 64 0C BE [17:41:24]RasterBufferAndPrint [17:41:24]line [17:41:24]line [17:41:24]line [17:41:24]line [17:41:24]line [17:41:24]written 0, free lines is 3176 [17:41:24]MH_Cut [17:41:24]Write to MH i2c: D1 01 00 A5 A9 01 20 [17:41:24]Write i2c OK [17:41:24]MH_I2C_Read... [17:41:24]Read from MH i2c: D1 [17:41:24]MH_I2C_Read... [17:41:24]Read from MH i2c: D1 01 00 [17:41:24]MH_I2C_Read... [17:41:24]Read from MH i2c: D1 01 00 A5 A9 00 1F [17:41:24]Write to MH i2c: 01 00 00 A6 A9 4F [17:41:24]Write i2c OK [17:41:24]MH_I2C_Read... [17:41:25]OFD Sender: No OFD packet to send [17:41:25]*** Cut start [17:41:25]*** Purtial cut [17:41:25]*** Stage 1: CUTSNS_PIN = 1 [17:41:27]Read from MH i2c: 01 [17:41:27]MH_I2C_Read... [17:41:27]*** Stop cut motor [17:41:27]*** Cut end [17:41:27]Read from MH i2c: 01 07 00 [17:41:27]MH_I2C_Read... [17:41:27]Read from MH i2c: 01 07 00 A6 A9 00 00 00 00 00 FF 0F 64 [17:41:27]process_action close_receipt done [17:41:27]requested_data is exist [17:41:27]produce_requested_data [17:41:27]requested_item fm.sn is exist - process it [17:41:27]wFMCommunicate request_size=4 [17:41:27]MH_SAM_APDU [17:41:27]CAPDU: 80 11 00 00 [17:41:27]Write to MH i2c: E2 08 00 A7 A9 80 11 00 00 00 00 00 00 CA [17:41:27]Write i2c OK [17:41:27]MH_I2C_Read... [17:41:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:27]Read from MH i2c: E2 [17:41:27]MH_I2C_Read... [17:41:27]Read from MH i2c: E2 17 00 [17:41:27]MH_I2C_Read... [17:41:27]Read from MH i2c: E2 17 00 A7 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 17 [17:41:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:41:27]wFMCommunicate OK [17:41:27]requested_item fd.num is exist - process it [17:41:27]SAM_PROTO_GetFieldsCounters [17:41:27]wFMCommunicate request_size=4 [17:41:27]MH_SAM_APDU [17:41:27]CAPDU: 80 13 00 00 [17:41:27]Write to MH i2c: E2 08 00 A8 A9 80 13 00 00 00 00 00 00 CD [17:41:27]Write i2c OK [17:41:27]MH_I2C_Read... [17:41:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:41:28]Read from MH i2c: E2 [17:41:28]MH_I2C_Read... [17:41:28]Read from MH i2c: E2 62 00 [17:41:28]MH_I2C_Read... [17:41:28]Read from MH i2c: E2 62 00 A8 A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D5 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 7B 01 00 00 5E 04 04 00 7B 01 00 00 57 04 04 00 7C 01 00 00 19 04 04 00 00 00 00 00 90 00 F4 [17:41: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D5 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 7B 01 00 00 5E 04 04 00 7B 01 00 00 57 04 04 00 7C 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:41:28]wFMCommunicate OK [17:41:28]SAM_PROTO_GetFieldsCounters done [17:41:28]requested_item shift.num is exist - process it [17:41:28]requested_item shift.opened is exist - process it [17:41:28]req_shift_opened [17:41:28]FM_GetShiftState [17:41:28]SAM_PROTO_GetShiftState [17:41:28]wFMCommunicate request_size=4 [17:41:28]MH_SAM_APDU [17:41:28]CAPDU: 80 13 01 00 [17:41:28]Write to MH i2c: E2 08 00 A9 A9 80 13 01 00 00 00 00 00 CF [17:41:28]Write i2c OK [17:41:28]MH_I2C_Read... [17:41:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:28]Read from MH i2c: E2 [17:41:28]MH_I2C_Read... [17:41:28]Read from MH i2c: E2 0E 00 [17:41:28]MH_I2C_Read... [17:41:28]Read from MH i2c: E2 0E 00 A9 A9 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 0C [17:41:28]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:41:28]wFMCommunicate OK [17:41:28]SAM_PROTO_GetShiftState done [17:41:28]FM_GetShiftState done [17:41:28]req_shift_opened done [17:41:28]requested_item shift.open_date is exist - process it [17:41:28]req_shift_open_date [17:41:28]req_shift_open_date done [17:41:28]produce_requested_data done [17:41:28]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260821,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [17:41:28]process_action_free close_receipt [17:41:28]json_value_free [17:41:28]json_value_free done [17:41:28]process_json_proto returns [17:41:28]Send response to host [17:41:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260821,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [17:41:28]free response buf [17:41:28]execute_script done [17:41:28]execute_script returns [17:41:28]free content buf [17:41:28]Sock 9.Close socket [17:41:28]Sock 9.Thread stoped [17:41:30]OFD Sender: No OFD packet to send [17:41:35]OFD Sender: No OFD packet to send [17:41:40]OFD Sender: No OFD packet to send [17:41:45]OFD Sender: No OFD packet to send [17:41:48]accept exits with 7 [17:41:48]New connection [17:41:48]New thread 3066473828 created [17:41:48]Thread 3066617188 joined [17:41:48]Waiting for new connection... [17:41:48] Sock 7.Parse request [17:41:48]Sock 7.Check first char [17:41:48]Sock 7.First char is OK [17:41:48]request: POST /json_proto HTTP/1.0 [17:41:48]Method: POST [17:41:48]URL: /json_proto [17:41:48]Method is POST - this is cgi request [17:41:48]url: /json_proto [17:41:48]query_string will be loaded in cgi processing [17:41:48]execute_cgi json_proto POST (null) [17:41:48]execute_cgi path=json_proto method=POST [17:41:48]POST find Content-Length [17:41:48]Host: 172.17.55.133:8080 [17:41:48]Content-Length: 678 [17:41:48]Content-Type: application/json [17:41:48] [17:41:48]POST finish read [17:41:48]Found Content-Length = 678 [17:41:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:48]execute_script... [17:41: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)1036374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:48]POST & json_proto [17:41:48]process_json_proto [17:41:48]json parsed OK: [17:41:48]protocol is kg_v1.0 [17:41:48]action value=close_receipt [17:41:48]process_action close_receipt [17:41:48]cmd_close_receipt [17:41:48]MH_GetDate [17:41:48]Write to MH i2c: F0 00 00 AA A9 42 [17:41:48]Write i2c OK [17:41:48]MH_I2C_Read... [17:41:48]Read from MH i2c: F0 [17:41:48]MH_I2C_Read... [17:41:48]Read from MH i2c: F0 09 00 [17:41:48]MH_I2C_Read... [17:41:48]Read from MH i2c: F0 09 00 AA A9 00 62 32 C2 66 34 48 D8 65 C0 [17:41:48]GetLastDocTimeStamp 1724002888 [17:41:48]current date 1724002914 [17:41:48]FM_GetShiftState [17:41:48]SAM_PROTO_GetShiftState [17:41:48]wFMCommunicate request_size=4 [17:41:48]MH_SAM_APDU [17:41:48]CAPDU: 80 13 01 00 [17:41:48]Write to MH i2c: E2 08 00 AB A9 80 13 01 00 00 00 00 00 D1 [17:41:48]Write i2c OK [17:41:48]MH_I2C_Read... [17:41:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:48]Read from MH i2c: E2 [17:41:48]MH_I2C_Read... [17:41:48]Read from MH i2c: E2 0E 00 [17:41:48]MH_I2C_Read... [17:41:48]Read from MH i2c: E2 0E 00 AB A9 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 0E [17:41:48]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:41:48]wFMCommunicate OK [17:41:48]SAM_PROTO_GetShiftState done [17:41:48]FM_GetShiftState done [17:41:48]opened in 1723940556 [17:41:48]opened+sec_in_day 1724026956 [17:41:48]quantity*price = 60003 [17:41:48]sum+1 = 60004 [17:41:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 380 18.08.2024 17:41 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260822 ФПД: 118548943728469 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T174154&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260822&fm=118548943728469&tin=02508201610067®Number=0000000000091865&sum=60000 [17:41:49]StoreToDocumentArchive [17:41:49]shift 449 fd 260822 [17:41:49]save to /storage/0449/doc_00260822 [17:41:49]save last doc name /storage/0449/doc_00260822 to /storage/kkm_last_doc_name [17:41:49]save OK [17:41:49]Clear old archive folders... [17:41:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:41:49]tlvbuf is 00332B20 [17:41:49]SAM_PROTO_ClearQueue [17:41:49]wFMCommunicate request_size=4 [17:41:49]MH_SAM_APDU [17:41:49]CAPDU: 80 09 00 00 [17:41:49]Write to MH i2c: E2 08 00 B8 A9 80 09 00 00 00 00 00 00 D3 [17:41:49]Write i2c OK [17:41:49]MH_I2C_Read... [17:41:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:41:49]Read from MH i2c: E2 [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: E2 03 00 [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: E2 03 00 B8 A9 00 90 00 D5 [17:41:49]RAPDU: 90 00 [17:41:49]wFMCommunicate OK [17:41:49]SAM_PROTO_ClearQueue done [17:41:49]KKMCreateOFDPacket [17:41:49]OFDProtocolAddRootSTLVToBuf [17:41:49]FM_MakeSignedData [17:41:49]FM_MakeSignedData [17:41:49]SAM_PROTO_SignData [17:41:49]wFMCommunicate request_size=4 [17:41:49]MH_SAM_APDU [17:41:49]CAPDU: 80 0D 01 02 [17:41:49]Write to MH i2c: E2 08 00 B9 A9 80 0D 01 02 00 00 00 00 DB [17:41:49]Write i2c OK [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: E2 [17:41:49]MH_I2C_Read... [17:41:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:41:49]Read from MH i2c: E2 03 00 [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: E2 03 00 B9 A9 00 90 00 D6 [17:41:49]RAPDU: 90 00 [17:41:49]wFMCommunicate OK [17:41:49]wFMCommunicate request_size=255 [17:41:49]MH_SAM_APDU [17:41:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 62 32 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D6 FA 03 00 35 04 06 00 6B [17:41:49]Write to MH i2c: E2 02 01 BA A9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 62 32 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D6 FA 03 00 35 04 06 00 6B 00 00 58 [17:41:49]Write i2c OK [17:41:49]MH_I2C_Read... [17:41:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:49]Read from MH i2c: E2 [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: E2 03 00 [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: E2 03 00 BA A9 00 90 00 D7 [17:41:49]RAPDU: 90 00 [17:41:49]wFMCommunicate OK [17:41:49]wFMCommunicate request_size=10 [17:41:49]MH_SAM_APDU [17:41:49]CAPDU: 80 0D 02 02 05 D1 D3 AD EF 55 [17:41:49]Write to MH i2c: E2 0D 00 BB A9 80 0D 02 02 05 00 D1 D3 AD EF 55 00 00 7D [17:41:49]Write i2c OK [17:41:49]MH_I2C_Read... [17:41:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:49]Read from MH i2c: E2 [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: E2 03 00 [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: E2 03 00 BB A9 00 90 00 D8 [17:41:49]RAPDU: 90 00 [17:41:49]wFMCommunicate OK [17:41:49]wFMCommunicate request_size=4 [17:41:49]MH_SAM_APDU [17:41:49]CAPDU: 80 0D 03 02 [17:41:49]Write to MH i2c: E2 08 00 BC A9 80 0D 03 02 00 00 00 00 E0 [17:41:49]Write i2c OK [17:41:49]MH_I2C_Read... [17:41:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:41:49]Read from MH i2c: E2 [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: E2 0B 00 [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: E2 0B 00 BC A9 00 78 7F 64 0D 2E A8 AD BF 90 00 8B [17:41:49]RAPDU: 78 7F 64 0D 2E A8 AD BF 90 00 [17:41:49]wFMCommunicate OK [17:41:49]SAM_PROTO_SignData done [17:41:49]FM_MakeSignedData done [17:41:49]CreateOFDProtocolMessage [17:41:49]wFMCommunicate request_size=4 [17:41:49]MH_SAM_APDU [17:41:49]CAPDU: 80 11 00 00 [17:41:49]Write to MH i2c: E2 08 00 BD A9 80 11 00 00 00 00 00 00 E0 [17:41:49]Write i2c OK [17:41:49]MH_I2C_Read... [17:41:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:49]Read from MH i2c: E2 [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: E2 17 00 [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: E2 17 00 BD A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 2D [17:41:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:41:49]wFMCommunicate OK [17:41:49]CreateOFDProtocolMessage done [17:41:49]OFDSenderStorePacket 260822 [17:41:49]StoreOFDPacket docnum=260822 [17: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 30 0F 01 00 00 AC 75 07 01 AE 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 62 32 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D6 FA 03 00 35 04 06 00 6B D1 D3 AD EF 55 78 7F 64 0D 2E A8 AD BF [17:41:49]CheckFolder [17:41:49]dirname=/storage/ofd_packets [17:41:49]CheckFolder done [17:41:49]ProducePacketName [17:41:49]name=ofd_packets/00260822 [17:41:49]NVStorageSaveData ofd_packets/00260822 [17:41:49]File name is /storage/ofd_packets/00260822 [17:41:49]Write 301 bytes [17:41:49]NVStorageSaveData done [17:41:49]OFDSenderStorePacket done [17:41:49]KKMCreateOFDPacket done [17:41:49]NVStorageSaveData kkm_last_timestamp [17:41:49]File name is /storage/kkm_last_timestamp [17:41:49]Write 4 bytes [17:41:49]NVStorageSaveData done [17:41:49]ExternCall_PrintAddStr [17:41:49]wPrintStart [17:41:49]Write to MH i2c: 01 00 00 BE A9 67 [17:41:49]Write i2c OK [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: 01 [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: 01 07 00 [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: 01 07 00 BE A9 00 00 00 00 00 FF 0F 7C [17:41:49]RasterBufferAndPrint [17:41:49]line Счет N : (1)1036374 [17:41:49]line ИНН: 02508201610067 [17:41:49]line Контрольно-Кассовый Чек [17:41:49]line ПРОДАЖА [17:41:49]line ТРК (МРК, ГНК) : 22 [17:41:49]line Товар: 2710124130 [17:41:49]line Аи-92-К-5 [17:41:49]line 8.850 * 67.80 [17:41:49]line = 600.03 [17:41:49]line НДС 12% НСП 1% [17:41:49]line > о реализуемом товаре [17:41:49]line ОКРУГЛЕНИЕ: -0.03 [17:41:49]line ИТОГО: 600.00 [17:41:49]line Внесено: 600.00 [17:41:49]line СДАЧА: 0.00 [17:41:49]line НСП 1% : 5.31 [17:41:49]line НДС 12% : 63.72 [17:41:49]line Наличными: 600.00 [17:41:49]line Безнал.: 0.00 [17:41:49]line Место: АЗС № 94 "Партнер Нефть" [17:41:49]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [17:41:49]line СНО: Общий режим [17:41:49]line Чек 380 18.08.2024 17:41 [17:41:49]line Смена: 449 ФФД: 1.0 [17:41:49]line ЗНМ: 0300000099 [17:41:49]line РНМ: 0000000000091865 [17:41:49]line Версия ККМ: 001 [17:41:49]line ФМ: 0000000000871820 [17:41:49]line ФД: 260822 [17:41:50]line ФПД: 118548943728469 [17:41:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T174154&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260822&fm=118548943728469&tin=02508201610067®Number=0000000000091865&sum=60000 [17:41:50]OFD Sender: Processing packet 260822 [packets to send 192, broken 191] [17:41:50]ProducePacketName [17:41:50]name=ofd_packets/00260822 [17:41:50]OFD Sender: To server: pG, [17:41:50]CommunicateWithHost lk.salyk.kg:30040 [17:41:50]ConnectInit lk.salyk.kg [17:41:50]written 0, free lines is 4095 [17:41:50]Connected sock=10 [17:41: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 30 0F 01 00 00 AC 75 07 01 AE 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 62 32 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D6 FA 03 00 35 04 06 00 6B D1 D3 AD EF 55 78 7F 64 0D 2E A8 AD BF [17:41: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 30 4F 00 00 00 1E 3D 47 00 43 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 30 10 04 04 00 D6 FA 03 00 F4 03 04 00 B6 DB C1 66 B6 04 01 00 00 0C 3E E5 77 BA E7 8B 5B [17:41:50]CommunicateWithHost err = 0 [17:41:50]CheckOFDResponse [17:41:50]1017 (14) - 77093643461234 [17:41:50]1041 (16) - 0000000000871820 [17:41:50]1040 (4) - 260822 [17:41:50]1012 (4) - 18.08.2024 11:32 [17:41:50]1206 (1) - 0 [17:41:50]OFD Sender: Remove packet 260822 [17:41:50]ProducePacketName [17:41:50]name=ofd_packets/00260822 [17:41:50]NVStorageDeleteData [17:41:50]Write to MH i2c: 01 00 00 E9 A9 92 [17:41:50]Write i2c OK [17:41:50]MH_I2C_Read... [17:41:50]Read from MH i2c: 01 [17:41:50]MH_I2C_Read... [17:41:50]Read from MH i2c: 01 07 00 [17:41:50]MH_I2C_Read... [17:41:50]Read from MH i2c: 01 07 00 E9 A9 00 00 00 00 00 6A 0C 0F [17:41:50]RasterBufferAndPrint [17:41:50]line [17:41:50]line [17:41:50]line [17:41:50]line [17:41:50]line [17:41:50]written 0, free lines is 3180 [17:41:50]MH_Cut [17:41:50]Write to MH i2c: D1 01 00 F0 A9 01 6B [17:41:50]Write i2c OK [17:41:50]MH_I2C_Read... [17:41:50]Read from MH i2c: D1 [17:41:50]MH_I2C_Read... [17:41:50]Read from MH i2c: D1 01 00 [17:41:50]MH_I2C_Read... [17:41:50]Read from MH i2c: D1 01 00 F0 A9 00 6A [17:41:50]Write to MH i2c: 01 00 00 F1 A9 9A [17:41:50]Write i2c OK [17:41:50]MH_I2C_Read... [17:41:50]OFD Sender: No OFD packet to send [17:41:51]*** Cut start [17:41:51]*** Purtial cut [17:41:51]*** Stage 1: CUTSNS_PIN = 1 [17:41:53]Read from MH i2c: 01 [17:41:53]MH_I2C_Read... [17:41:53]*** Stop cut motor [17:41:53]*** Cut end [17:41:53]Read from MH i2c: 01 07 00 [17:41:53]MH_I2C_Read... [17:41:53]Read from MH i2c: 01 07 00 F1 A9 00 00 00 00 00 FF 0F AF [17:41:53]process_action close_receipt done [17:41:53]requested_data is exist [17:41:53]produce_requested_data [17:41:53]requested_item fm.sn is exist - process it [17:41:53]wFMCommunicate request_size=4 [17:41:53]MH_SAM_APDU [17:41:53]CAPDU: 80 11 00 00 [17:41:53]Write to MH i2c: E2 08 00 F2 A9 80 11 00 00 00 00 00 00 15 [17:41:53]Write i2c OK [17:41:53]MH_I2C_Read... [17:41:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:53]Read from MH i2c: E2 [17:41:53]MH_I2C_Read... [17:41:53]Read from MH i2c: E2 17 00 [17:41:53]MH_I2C_Read... [17:41:53]Read from MH i2c: E2 17 00 F2 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 62 [17:41:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:41:53]wFMCommunicate OK [17:41:53]requested_item fd.num is exist - process it [17:41:53]SAM_PROTO_GetFieldsCounters [17:41:53]wFMCommunicate request_size=4 [17:41:53]MH_SAM_APDU [17:41:53]CAPDU: 80 13 00 00 [17:41:53]Write to MH i2c: E2 08 00 F3 A9 80 13 00 00 00 00 00 00 18 [17:41:53]Write i2c OK [17:41:53]MH_I2C_Read... [17:41:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:41:53]Read from MH i2c: E2 [17:41:53]MH_I2C_Read... [17:41:53]Read from MH i2c: E2 62 00 [17:41:53]MH_I2C_Read... [17:41:53]Read from MH i2c: E2 62 00 F3 A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D6 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 7C 01 00 00 5E 04 04 00 7C 01 00 00 57 04 04 00 7D 01 00 00 19 04 04 00 00 00 00 00 90 00 43 [17:41: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D6 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 7C 01 00 00 5E 04 04 00 7C 01 00 00 57 04 04 00 7D 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:41:53]wFMCommunicate OK [17:41:53]SAM_PROTO_GetFieldsCounters done [17:41:53]requested_item shift.num is exist - process it [17:41:53]requested_item shift.opened is exist - process it [17:41:53]req_shift_opened [17:41:53]FM_GetShiftState [17:41:53]SAM_PROTO_GetShiftState [17:41:53]wFMCommunicate request_size=4 [17:41:53]MH_SAM_APDU [17:41:53]CAPDU: 80 13 01 00 [17:41:53]Write to MH i2c: E2 08 00 F4 A9 80 13 01 00 00 00 00 00 1A [17:41:53]Write i2c OK [17:41:53]MH_I2C_Read... [17:41:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:54]Read from MH i2c: E2 [17:41:54]MH_I2C_Read... [17:41:54]Read from MH i2c: E2 0E 00 [17:41:54]MH_I2C_Read... [17:41:54]Read from MH i2c: E2 0E 00 F4 A9 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 57 [17:41:54]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:41:54]wFMCommunicate OK [17:41:54]SAM_PROTO_GetShiftState done [17:41:54]FM_GetShiftState done [17:41:54]req_shift_opened done [17:41:54]requested_item shift.open_date is exist - process it [17:41:54]req_shift_open_date [17:41:54]req_shift_open_date done [17:41:54]produce_requested_data done [17:41:54]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260822,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [17:41:54]process_action_free close_receipt [17:41:54]json_value_free [17:41:54]json_value_free done [17:41:54]process_json_proto returns [17:41:54]Send response to host [17:41:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260822,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [17:41:54]free response buf [17:41:54]execute_script done [17:41:54]execute_script returns [17:41:54]free content buf [17:41:54]Sock 7.Close socket [17:41:54]Sock 7.Thread stoped [17:41:55]OFD Sender: No OFD packet to send [17:42:00]OFD Sender: No OFD packet to send [17:42:05]OFD Sender: No OFD packet to send [17:42:10]OFD Sender: No OFD packet to send [17:42:15]OFD Sender: No OFD packet to send [17:42:20]OFD Sender: No OFD packet to send [17:42:25]OFD Sender: No OFD packet to send [17:42:30]OFD Sender: No OFD packet to send [17:42:35]OFD Sender: No OFD packet to send [17:42:40]accept exits with 9 [17:42:40]New connection [17:42:40]New thread 3066617188 created [17:42:40]Thread 3066473828 joined [17:42:40]Waiting for new connection... [17:42:40] Sock 9.Parse request [17:42:40]Sock 9.Check first char [17:42:40]Sock 9.First char is OK [17:42:40]request: POST /json_proto HTTP/1.0 [17:42:40]Method: POST [17:42:40]URL: /json_proto [17:42:40]Method is POST - this is cgi request [17:42:40]url: /json_proto [17:42:40]query_string will be loaded in cgi processing [17:42:40]execute_cgi json_proto POST (null) [17:42:40]execute_cgi path=json_proto method=POST [17:42:40]POST find Content-Length [17:42:40]Host: 172.17.55.133:8080 [17:42:40]Content-Length: 678 [17:42:40]Content-Type: application/json [17:42:40] [17:42:40]POST finish read [17:42:40]Found Content-Length = 678 [17:42:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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" ] } } [17:42:40]execute_script... [17:42: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)1036375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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" ] } } [17:42:40]POST & json_proto [17:42:40]process_json_proto [17:42:40]json parsed OK: [17:42:40]protocol is kg_v1.0 [17:42:40]action value=close_receipt [17:42:40]process_action close_receipt [17:42:40]cmd_close_receipt [17:42:40]MH_GetDate [17:42:40]Write to MH i2c: F0 00 00 F5 A9 8D [17:42:40]Write i2c OK [17:42:40]MH_I2C_Read... [17:42:40]Read from MH i2c: F0 [17:42:40]MH_I2C_Read... [17:42:40]Read from MH i2c: F0 09 00 [17:42:40]MH_I2C_Read... [17:42:40]Read from MH i2c: F0 09 00 F5 A9 00 96 32 C2 66 34 48 D8 65 3F [17:42:40]GetLastDocTimeStamp 1724002914 [17:42:40]current date 1724002966 [17:42:40]FM_GetShiftState [17:42:40]SAM_PROTO_GetShiftState [17:42:40]wFMCommunicate request_size=4 [17:42:40]MH_SAM_APDU [17:42:40]CAPDU: 80 13 01 00 [17:42:40]Write to MH i2c: E2 08 00 F6 A9 80 13 01 00 00 00 00 00 1C [17:42:40]Write i2c OK [17:42:40]MH_I2C_Read... [17:42:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:40]Read from MH i2c: E2 [17:42:40]MH_I2C_Read... [17:42:40]Read from MH i2c: E2 0E 00 [17:42:40]MH_I2C_Read... [17:42:40]Read from MH i2c: E2 0E 00 F6 A9 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 59 [17:42:40]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:42:40]wFMCommunicate OK [17:42:40]SAM_PROTO_GetShiftState done [17:42:40]FM_GetShiftState done [17:42:40]opened in 1723940556 [17:42:40]opened+sec_in_day 1724026956 [17:42:40]quantity*price = 50036 [17:42:40]sum+1 = 50037 [17:42:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 381 18.08.2024 17:42 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260823 ФПД: 44760194743586 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T174246&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260823&fm=44760194743586&tin=02508201610067®Number=0000000000091865&sum=50000 [17:42:41]StoreToDocumentArchive [17:42:41]shift 449 fd 260823 [17:42:41]save to /storage/0449/doc_00260823 [17:42:41]save last doc name /storage/0449/doc_00260823 to /storage/kkm_last_doc_name [17:42:41]save OK [17:42:41]Clear old archive folders... [17:42:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:42:41]tlvbuf is 004A1FB0 [17:42:41]SAM_PROTO_ClearQueue [17:42:41]wFMCommunicate request_size=4 [17:42:41]MH_SAM_APDU [17:42:41]CAPDU: 80 09 00 00 [17:42:41]Write to MH i2c: E2 08 00 03 AA 80 09 00 00 00 00 00 00 1F [17:42:41]Write i2c OK [17:42:41]MH_I2C_Read... [17:42:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:41]Read from MH i2c: E2 [17:42:41]MH_I2C_Read... [17:42:41]Read from MH i2c: E2 03 00 [17:42:41]MH_I2C_Read... [17:42:41]Read from MH i2c: E2 03 00 03 AA 00 90 00 21 [17:42:41]RAPDU: 90 00 [17:42:41]wFMCommunicate OK [17:42:41]SAM_PROTO_ClearQueue done [17:42:41]KKMCreateOFDPacket [17:42:41]OFDProtocolAddRootSTLVToBuf [17:42:41]FM_MakeSignedData [17:42:41]FM_MakeSignedData [17:42:41]SAM_PROTO_SignData [17:42:41]wFMCommunicate request_size=4 [17:42:41]MH_SAM_APDU [17:42:41]CAPDU: 80 0D 01 02 [17:42:41]Write to MH i2c: E2 08 00 04 AA 80 0D 01 02 00 00 00 00 27 [17:42:41]Write i2c OK [17:42:41]MH_I2C_Read... [17:42:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:41]Read from MH i2c: E2 [17:42:41]MH_I2C_Read... [17:42:41]Read from MH i2c: E2 03 00 [17:42:41]MH_I2C_Read... [17:42:41]Read from MH i2c: E2 03 00 04 AA 00 90 00 22 [17:42:41]RAPDU: 90 00 [17:42:41]wFMCommunicate OK [17:42:41]wFMCommunicate request_size=255 [17:42:41]MH_SAM_APDU [17:42:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7D 01 00 00 F4 03 04 00 96 32 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D7 FA 03 00 35 04 06 00 28 [17:42:41]Write to MH i2c: E2 02 01 05 AA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7D 01 00 00 F4 03 04 00 96 32 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D7 FA 03 00 35 04 06 00 28 00 00 D0 [17:42:41]Write i2c OK [17:42:41]MH_I2C_Read... [17:42:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:41]Read from MH i2c: E2 [17:42:41]MH_I2C_Read... [17:42:41]Read from MH i2c: E2 03 00 [17:42:41]MH_I2C_Read... [17:42:41]Read from MH i2c: E2 03 00 05 AA 00 90 00 23 [17:42:41]RAPDU: 90 00 [17:42:41]wFMCommunicate OK [17:42:41]wFMCommunicate request_size=10 [17:42:41]MH_SAM_APDU [17:42:41]CAPDU: 80 0D 02 02 05 B5 8B 81 FD 22 [17:42:41]Write to MH i2c: E2 0D 00 06 AA 80 0D 02 02 05 00 B5 8B 81 FD 22 00 00 14 [17:42:41]Write i2c OK [17:42:41]MH_I2C_Read... [17:42:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:41]Read from MH i2c: E2 [17:42:41]MH_I2C_Read... [17:42:41]Read from MH i2c: E2 03 00 [17:42:41]MH_I2C_Read... [17:42:41]Read from MH i2c: E2 03 00 06 AA 00 90 00 24 [17:42:41]RAPDU: 90 00 [17:42:41]wFMCommunicate OK [17:42:41]wFMCommunicate request_size=4 [17:42:41]MH_SAM_APDU [17:42:41]CAPDU: 80 0D 03 02 [17:42:41]Write to MH i2c: E2 08 00 07 AA 80 0D 03 02 00 00 00 00 2C [17:42:41]Write i2c OK [17:42:41]MH_I2C_Read... [17:42:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:41]Read from MH i2c: E2 [17:42:41]MH_I2C_Read... [17:42:41]Read from MH i2c: E2 0B 00 [17:42:41]MH_I2C_Read... [17:42:41]Read from MH i2c: E2 0B 00 07 AA 00 EB 8A 41 B1 55 FC 47 23 90 00 4F [17:42:41]RAPDU: EB 8A 41 B1 55 FC 47 23 90 00 [17:42:41]wFMCommunicate OK [17:42:41]SAM_PROTO_SignData done [17:42:41]FM_MakeSignedData done [17:42:41]CreateOFDProtocolMessage [17:42:41]wFMCommunicate request_size=4 [17:42:41]MH_SAM_APDU [17:42:41]CAPDU: 80 11 00 00 [17:42:41]Write to MH i2c: E2 08 00 08 AA 80 11 00 00 00 00 00 00 2C [17:42:41]Write i2c OK [17:42:41]MH_I2C_Read... [17:42:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:41]Read from MH i2c: E2 [17:42:41]MH_I2C_Read... [17:42:41]Read from MH i2c: E2 17 00 [17:42:41]MH_I2C_Read... [17:42:41]Read from MH i2c: E2 17 00 08 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 79 [17:42:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:42:42]wFMCommunicate OK [17:42:42]CreateOFDProtocolMessage done [17:42:42]OFDSenderStorePacket 260823 [17:42:42]StoreOFDPacket docnum=260823 [17:42:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 A2 CC 07 01 43 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7D 01 00 00 F4 03 04 00 96 32 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D7 FA 03 00 35 04 06 00 28 B5 8B 81 FD 22 EB 8A 41 B1 55 FC 47 23 [17:42:42]CheckFolder [17:42:42]dirname=/storage/ofd_packets [17:42:42]CheckFolder done [17:42:42]ProducePacketName [17:42:42]name=ofd_packets/00260823 [17:42:42]NVStorageSaveData ofd_packets/00260823 [17:42:42]File name is /storage/ofd_packets/00260823 [17:42:42]Write 301 bytes [17:42:42]NVStorageSaveData done [17:42:42]OFDSenderStorePacket done [17:42:42]KKMCreateOFDPacket done [17:42:42]NVStorageSaveData kkm_last_timestamp [17:42:42]File name is /storage/kkm_last_timestamp [17:42:42]Write 4 bytes [17:42:42]NVStorageSaveData done [17:42:42]ExternCall_PrintAddStr [17:42:42]wPrintStart [17:42:42]Write to MH i2c: 01 00 00 09 AA B3 [17:42:42]OFD Sender: Processing packet 260823 [packets to send 192, broken 191] [17:42:42]ProducePacketName [17:42:42]name=ofd_packets/00260823 [17:42:42]OFD Sender: To server: pG, [17:42:42]CommunicateWithHost lk.salyk.kg:30040 [17:42:42]ConnectInit lk.salyk.kg [17:42:42]Write i2c OK [17:42:42]MH_I2C_Read... [17:42:42]Read from MH i2c: 01 [17:42:42]MH_I2C_Read... [17:42:42]Read from MH i2c: 01 07 00 [17:42:42]MH_I2C_Read... [17:42:42]Read from MH i2c: 01 07 00 09 AA 00 00 00 00 00 FF 0F C8 [17:42:42]RasterBufferAndPrint [17:42:42]line Счет N : (1)1036375 [17:42:42]line ИНН: 02508201610067 [17:42:42]line Контрольно-Кассовый Чек [17:42:42]line ПРОДАЖА [17:42:42]line ТРК (МРК, ГНК) : 12 [17:42:42]line Товар: 2710124130 [17:42:42]line Аи-92-К-5 [17:42:42]line 7.380 * 67.80 [17:42:42]line = 500.36 [17:42:42]line НДС 12% НСП 1% [17:42:42]line > о реализуемом товаре [17:42:42]line ОКРУГЛЕНИЕ: -0.36 [17:42:42]line ИТОГО: 500.00 [17:42:42]line Внесено: 500.00 [17:42:42]line СДАЧА: 0.00 [17:42:42]line НСП 1% : 4.43 [17:42:42]line НДС 12% : 53.14 [17:42:42]line Наличными: 500.00 [17:42:42]line Безнал.: 0.00 [17:42:42]line Место: АЗС № 94 "Партнер Нефть" [17:42:42]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [17:42:42]line СНО: Общий режим [17:42:42]line Чек 381 18.08.2024 17:42 [17:42:42]line Смена: 449 ФФД: 1.0 [17:42:42]line ЗНМ: 0300000099 [17:42:42]line РНМ: 0000000000091865 [17:42:42]line Версия ККМ: 001 [17:42:42]line ФМ: 0000000000871820 [17:42:42]line ФД: 260823 [17:42:42]line ФПД: 44760194743586 [17:42:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T174246&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260823&fm=44760194743586&tin=02508201610067®Number=0000000000091865&sum=50000 [17:42:42]written 0, free lines is 4095 [17:42:42]Connected sock=11 [17:42: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 30 0F 01 00 00 A2 CC 07 01 43 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7D 01 00 00 F4 03 04 00 96 32 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D7 FA 03 00 35 04 06 00 28 B5 8B 81 FD 22 EB 8A 41 B1 55 FC 47 23 [17:42: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 30 4F 00 00 00 9A 43 47 00 A5 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D7 FA 03 00 F4 03 04 00 EA DB C1 66 B6 04 01 00 00 3A F8 B3 87 35 20 D9 18 [17:42:42]CommunicateWithHost err = 0 [17:42:42]CheckOFDResponse [17:42:42]1017 (14) - 77093643461234 [17:42:42]1041 (16) - 0000000000871820 [17:42:42]1040 (4) - 260823 [17:42:42]1012 (4) - 18.08.2024 11:32 [17:42:42]1206 (1) - 0 [17:42:42]OFD Sender: Remove packet 260823 [17:42:42]ProducePacketName [17:42:42]name=ofd_packets/00260823 [17:42:42]NVStorageDeleteData [17:42:42]Write to MH i2c: 01 00 00 34 AA DE [17:42:42]Write i2c OK [17:42:42]MH_I2C_Read... [17:42:42]Read from MH i2c: 01 [17:42:42]MH_I2C_Read... [17:42:42]Read from MH i2c: 01 07 00 [17:42:42]MH_I2C_Read... [17:42:42]Read from MH i2c: 01 07 00 34 AA 00 00 00 00 00 6A 0C 5B [17:42:42]RasterBufferAndPrint [17:42:42]line [17:42:42]line [17:42:42]line [17:42:42]line [17:42:42]line [17:42:42]written 0, free lines is 3181 [17:42:42]MH_Cut [17:42:42]Write to MH i2c: D1 01 00 3B AA 01 B7 [17:42:42]Write i2c OK [17:42:42]MH_I2C_Read... [17:42:42]Read from MH i2c: D1 [17:42:42]MH_I2C_Read... [17:42:42]Read from MH i2c: D1 01 00 [17:42:42]MH_I2C_Read... [17:42:42]Read from MH i2c: D1 01 00 3B AA 00 B6 [17:42:42]Write to MH i2c: 01 00 00 3C AA E6 [17:42:42]Write i2c OK [17:42:42]MH_I2C_Read... [17:42:42]OFD Sender: No OFD packet to send [17:42:43]*** Cut start [17:42:43]*** Purtial cut [17:42:43]*** Stage 1: CUTSNS_PIN = 1 [17:42:45]Read from MH i2c: 01 [17:42:45]MH_I2C_Read... [17:42:45]*** Stop cut motor [17:42:45]*** Cut end [17:42:45]Read from MH i2c: 01 07 00 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: 01 07 00 3C AA 00 00 00 00 00 FF 0F FB [17:42:45]process_action close_receipt done [17:42:45]requested_data is exist [17:42:45]produce_requested_data [17:42:45]requested_item fm.sn is exist - process it [17:42:45]wFMCommunicate request_size=4 [17:42:45]MH_SAM_APDU [17:42:45]CAPDU: 80 11 00 00 [17:42:45]Write to MH i2c: E2 08 00 3D AA 80 11 00 00 00 00 00 00 61 [17:42:45]Write i2c OK [17:42:45]MH_I2C_Read... [17:42:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:45]Read from MH i2c: E2 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: E2 17 00 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: E2 17 00 3D AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 AE [17:42:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:42:45]wFMCommunicate OK [17:42:45]requested_item fd.num is exist - process it [17:42:45]SAM_PROTO_GetFieldsCounters [17:42:45]wFMCommunicate request_size=4 [17:42:45]MH_SAM_APDU [17:42:45]CAPDU: 80 13 00 00 [17:42:45]Write to MH i2c: E2 08 00 3E AA 80 13 00 00 00 00 00 00 64 [17:42:45]Write i2c OK [17:42:45]MH_I2C_Read... [17:42:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:45]Read from MH i2c: E2 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: E2 62 00 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: E2 62 00 3E AA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D7 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 7D 01 00 00 5E 04 04 00 7D 01 00 00 57 04 04 00 7E 01 00 00 19 04 04 00 00 00 00 00 90 00 93 [17: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D7 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 7D 01 00 00 5E 04 04 00 7D 01 00 00 57 04 04 00 7E 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:42:45]wFMCommunicate OK [17:42:45]SAM_PROTO_GetFieldsCounters done [17:42:45]requested_item shift.num is exist - process it [17:42:45]requested_item shift.opened is exist - process it [17:42:45]req_shift_opened [17:42:45]FM_GetShiftState [17:42:45]SAM_PROTO_GetShiftState [17:42:45]wFMCommunicate request_size=4 [17:42:45]MH_SAM_APDU [17:42:45]CAPDU: 80 13 01 00 [17:42:45]Write to MH i2c: E2 08 00 3F AA 80 13 01 00 00 00 00 00 66 [17:42:45]Write i2c OK [17:42:45]MH_I2C_Read... [17:42:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:45]Read from MH i2c: E2 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: E2 0E 00 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: E2 0E 00 3F AA 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A3 [17:42:45]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:42:45]wFMCommunicate OK [17:42:45]SAM_PROTO_GetShiftState done [17:42:45]FM_GetShiftState done [17:42:45]req_shift_opened done [17:42:45]requested_item shift.open_date is exist - process it [17:42:45]req_shift_open_date [17:42:45]req_shift_open_date done [17:42:45]produce_requested_data done [17:42:45]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260823,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [17:42:45]process_action_free close_receipt [17:42:45]json_value_free [17:42:45]json_value_free done [17:42:45]process_json_proto returns [17:42:45]Send response to host [17:42:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260823,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [17:42:45]free response buf [17:42:45]execute_script done [17:42:45]execute_script returns [17:42:45]free content buf [17:42:45]Sock 9.Close socket [17:42:45]Sock 9.Thread stoped [17:42:47]OFD Sender: No OFD packet to send [17:42:52]OFD Sender: No OFD packet to send [17:42:57]OFD Sender: No OFD packet to send [17:43:02]OFD Sender: No OFD packet to send [17:43:07]OFD Sender: No OFD packet to send [17:43:12]OFD Sender: No OFD packet to send [17:43:17]OFD Sender: No OFD packet to send [17:43:22]OFD Sender: No OFD packet to send [17:43:27]OFD Sender: No OFD packet to send [17:43:32]OFD Sender: No OFD packet to send [17:43:37]OFD Sender: No OFD packet to send [17:43:42]OFD Sender: No OFD packet to send [17:43:46]accept exits with 7 [17:43:46]New connection [17:43:46]New thread 3066473828 created [17:43:46]Thread 3066617188 joined [17:43:46]Waiting for new connection... [17:43:46] Sock 7.Parse request [17:43:46]Sock 7.Check first char [17:43:46]Sock 7.First char is OK [17:43:46]request: POST /json_proto HTTP/1.0 [17:43:46]Method: POST [17:43:46]URL: /json_proto [17:43:46]Method is POST - this is cgi request [17:43:46]url: /json_proto [17:43:46]query_string will be loaded in cgi processing [17:43:46]execute_cgi json_proto POST (null) [17:43:46]execute_cgi path=json_proto method=POST [17:43:46]POST find Content-Length [17:43:46]Host: 172.17.55.133:8080 [17:43:46]Content-Length: 678 [17:43:46]Content-Type: application/json [17:43:46] [17:43:46]POST finish read [17:43:46]Found Content-Length = 678 [17:43:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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" ] } } [17:43:46]execute_script... [17:43: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)1036376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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" ] } } [17:43:46]POST & json_proto [17:43:46]process_json_proto [17:43:46]json parsed OK: [17:43:46]protocol is kg_v1.0 [17:43:46]action value=close_receipt [17:43:46]process_action close_receipt [17:43:46]cmd_close_receipt [17:43:46]MH_GetDate [17:43:46]Write to MH i2c: F0 00 00 40 AA D9 [17:43:46]Write i2c OK [17:43:46]MH_I2C_Read... [17:43:46]Read from MH i2c: F0 [17:43:46]MH_I2C_Read... [17:43:46]Read from MH i2c: F0 09 00 [17:43:46]MH_I2C_Read... [17:43:46]Read from MH i2c: F0 09 00 40 AA 00 D8 32 C2 66 34 48 D8 65 CD [17:43:46]GetLastDocTimeStamp 1724002966 [17:43:46]current date 1724003032 [17:43:46]FM_GetShiftState [17:43:46]SAM_PROTO_GetShiftState [17:43:46]wFMCommunicate request_size=4 [17:43:46]MH_SAM_APDU [17:43:46]CAPDU: 80 13 01 00 [17:43:46]Write to MH i2c: E2 08 00 41 AA 80 13 01 00 00 00 00 00 68 [17:43:46]Write i2c OK [17:43:46]MH_I2C_Read... [17:43:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:46]Read from MH i2c: E2 [17:43:46]MH_I2C_Read... [17:43:46]Read from MH i2c: E2 0E 00 [17:43:46]MH_I2C_Read... [17:43:46]Read from MH i2c: E2 0E 00 41 AA 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A5 [17:43:46]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:43:46]wFMCommunicate OK [17:43:46]SAM_PROTO_GetShiftState done [17:43:46]FM_GetShiftState done [17:43:46]opened in 1723940556 [17:43:46]opened+sec_in_day 1724026956 [17:43:46]quantity*price = 50036 [17:43:46]sum+1 = 50037 [17:43:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 382 18.08.2024 17:43 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260824 ФПД: 72899606253391 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T174352&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260824&fm=72899606253391&tin=02508201610067®Number=0000000000091865&sum=50000 [17:43:47]StoreToDocumentArchive [17:43:47]shift 449 fd 260824 [17:43:47]save to /storage/0449/doc_00260824 [17:43:47]save last doc name /storage/0449/doc_00260824 to /storage/kkm_last_doc_name [17:43:47]save OK [17:43:47]Clear old archive folders... [17:43:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:43:47]tlvbuf is 00453920 [17:43:47]SAM_PROTO_ClearQueue [17:43:47]wFMCommunicate request_size=4 [17:43:47]MH_SAM_APDU [17:43:47]CAPDU: 80 09 00 00 [17:43:47]Write to MH i2c: E2 08 00 4E AA 80 09 00 00 00 00 00 00 6A [17:43:47]Write i2c OK [17:43:47]MH_I2C_Read... [17:43:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:43:47]Read from MH i2c: E2 [17:43:47]MH_I2C_Read... [17:43:47]Read from MH i2c: E2 03 00 [17:43:47]MH_I2C_Read... [17:43:47]Read from MH i2c: E2 03 00 4E AA 00 90 00 6C [17:43:47]RAPDU: 90 00 [17:43:47]wFMCommunicate OK [17:43:47]SAM_PROTO_ClearQueue done [17:43:47]KKMCreateOFDPacket [17:43:47]OFDProtocolAddRootSTLVToBuf [17:43:47]FM_MakeSignedData [17:43:47]FM_MakeSignedData [17:43:47]SAM_PROTO_SignData [17:43:47]wFMCommunicate request_size=4 [17:43:47]MH_SAM_APDU [17:43:47]CAPDU: 80 0D 01 02 [17:43:47]Write to MH i2c: E2 08 00 4F AA 80 0D 01 02 00 00 00 00 72 [17:43:47]Write i2c OK [17:43:47]MH_I2C_Read... [17:43:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:43:47]Read from MH i2c: E2 [17:43:47]MH_I2C_Read... [17:43:47]Read from MH i2c: E2 03 00 [17:43:47]MH_I2C_Read... [17:43:47]Read from MH i2c: E2 03 00 4F AA 00 90 00 6D [17:43:47]RAPDU: 90 00 [17:43:47]wFMCommunicate OK [17:43:47]wFMCommunicate request_size=255 [17:43:47]MH_SAM_APDU [17:43:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7E 01 00 00 F4 03 04 00 D8 32 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D8 FA 03 00 35 04 06 00 42 [17:43:47]Write to MH i2c: E2 02 01 50 AA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7E 01 00 00 F4 03 04 00 D8 32 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D8 FA 03 00 35 04 06 00 42 00 00 79 [17:43:47]Write i2c OK [17:43:47]MH_I2C_Read... [17:43:47]OFD Sender: No OFD packet to send [17:43:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:47]Read from MH i2c: E2 [17:43:47]MH_I2C_Read... [17:43:47]Read from MH i2c: E2 03 00 [17:43:47]MH_I2C_Read... [17:43:47]Read from MH i2c: E2 03 00 50 AA 00 90 00 6E [17:43:47]RAPDU: 90 00 [17:43:47]wFMCommunicate OK [17:43:47]wFMCommunicate request_size=10 [17:43:47]MH_SAM_APDU [17:43:47]CAPDU: 80 0D 02 02 05 4D 43 22 8F 4F [17:43:47]Write to MH i2c: E2 0D 00 51 AA 80 0D 02 02 05 00 4D 43 22 8F 4F 00 00 0F [17:43:47]Write i2c OK [17:43:47]MH_I2C_Read... [17:43:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:48]Read from MH i2c: E2 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 03 00 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 03 00 51 AA 00 90 00 6F [17:43:48]RAPDU: 90 00 [17:43:48]wFMCommunicate OK [17:43:48]wFMCommunicate request_size=4 [17:43:48]MH_SAM_APDU [17:43:48]CAPDU: 80 0D 03 02 [17:43:48]Write to MH i2c: E2 08 00 52 AA 80 0D 03 02 00 00 00 00 77 [17:43:48]Write i2c OK [17:43:48]MH_I2C_Read... [17:43:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:43:48]Read from MH i2c: E2 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 0B 00 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 0B 00 52 AA 00 C4 43 35 AA 56 2B 9A 39 90 00 B2 [17:43:48]RAPDU: C4 43 35 AA 56 2B 9A 39 90 00 [17:43:48]wFMCommunicate OK [17:43:48]SAM_PROTO_SignData done [17:43:48]FM_MakeSignedData done [17:43:48]CreateOFDProtocolMessage [17:43:48]wFMCommunicate request_size=4 [17:43:48]MH_SAM_APDU [17:43:48]CAPDU: 80 11 00 00 [17:43:48]Write to MH i2c: E2 08 00 53 AA 80 11 00 00 00 00 00 00 77 [17:43:48]Write i2c OK [17:43:48]MH_I2C_Read... [17:43:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:48]Read from MH i2c: E2 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 17 00 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 17 00 53 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C4 [17:43:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:43:48]wFMCommunicate OK [17:43:48]CreateOFDProtocolMessage done [17:43:48]OFDSenderStorePacket 260824 [17:43:48]StoreOFDPacket docnum=260824 [17:43:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 26 0F 07 01 5E 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7E 01 00 00 F4 03 04 00 D8 32 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D8 FA 03 00 35 04 06 00 42 4D 43 22 8F 4F C4 43 35 AA 56 2B 9A 39 [17:43:48]CheckFolder [17:43:48]dirname=/storage/ofd_packets [17:43:48]CheckFolder done [17:43:48]ProducePacketName [17:43:48]name=ofd_packets/00260824 [17:43:48]NVStorageSaveData ofd_packets/00260824 [17:43:48]File name is /storage/ofd_packets/00260824 [17:43:48]Write 301 bytes [17:43:48]NVStorageSaveData done [17:43:48]OFDSenderStorePacket done [17:43:48]KKMCreateOFDPacket done [17:43:48]NVStorageSaveData kkm_last_timestamp [17:43:48]File name is /storage/kkm_last_timestamp [17:43:48]Write 4 bytes [17:43:48]NVStorageSaveData done [17:43:48]ExternCall_PrintAddStr [17:43:48]wPrintStart [17:43:48]Write to MH i2c: 01 00 00 54 AA FE [17:43:48]Write i2c OK [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: 01 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: 01 07 00 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: 01 07 00 54 AA 00 00 00 00 00 FF 0F 13 [17:43:48]RasterBufferAndPrint [17:43:48]line Счет N : (1)1036376 [17:43:48]line ИНН: 02508201610067 [17:43:48]line Контрольно-Кассовый Чек [17:43:48]line ПРОДАЖА [17:43:48]line ТРК (МРК, ГНК) : 42 [17:43:48]line Товар: 2710124130 [17:43:48]line Аи-92-К-5 [17:43:48]line 7.380 * 67.80 [17:43:48]line = 500.36 [17:43:48]line НДС 12% НСП 1% [17:43:48]line > о реализуемом товаре [17:43:48]line ОКРУГЛЕНИЕ: -0.36 [17:43:48]line ИТОГО: 500.00 [17:43:48]line Внесено: 500.00 [17:43:48]line СДАЧА: 0.00 [17:43:48]line НСП 1% : 4.43 [17:43:48]line НДС 12% : 53.14 [17:43:48]line Наличными: 500.00 [17:43:48]line Безнал.: 0.00 [17:43:48]line Место: АЗС № 94 "Партнер Нефть" [17:43:48]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [17:43:48]line СНО: Общий режим [17:43:48]line Чек 382 18.08.2024 17:43 [17:43:48]line Смена: 449 ФФД: 1.0 [17:43:48]line ЗНМ: 0300000099 [17:43:48]line РНМ: 0000000000091865 [17:43:48]line Версия ККМ: 001 [17:43:48]line ФМ: 0000000000871820 [17:43:48]line ФД: 260824 [17:43:48]line ФПД: 72899606253391 [17:43:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T174352&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260824&fm=72899606253391&tin=02508201610067®Number=0000000000091865&sum=50000 [17:43:48]OFD Sender: Processing packet 260824 [packets to send 192, broken 191] [17:43:48]ProducePacketName [17:43:48]name=ofd_packets/00260824 [17:43:48]OFD Sender: To server: pG, [17:43:48]CommunicateWithHost lk.salyk.kg:30040 [17:43:48]ConnectInit lk.salyk.kg [17:43:48]written 0, free lines is 4095 [17:43:48]Connected sock=10 [17:43: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 30 0F 01 00 00 26 0F 07 01 5E 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7E 01 00 00 F4 03 04 00 D8 32 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D8 FA 03 00 35 04 06 00 42 4D 43 22 8F 4F C4 43 35 AA 56 2B 9A 39 [17:43: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 30 4F 00 00 00 9E 33 47 00 90 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D8 FA 03 00 F4 03 04 00 2C DC C1 66 B6 04 01 00 00 6A 5E 9B C7 F0 21 E4 6E [17:43:48]CommunicateWithHost err = 0 [17:43:48]CheckOFDResponse [17:43:48]1017 (14) - 77093643461234 [17:43:48]1041 (16) - 0000000000871820 [17:43:48]1040 (4) - 260824 [17:43:48]1012 (4) - 18.08.2024 11:34 [17:43:48]1206 (1) - 0 [17:43:48]OFD Sender: Remove packet 260824 [17:43:48]ProducePacketName [17:43:48]name=ofd_packets/00260824 [17:43:48]NVStorageDeleteData [17:43:48]Write to MH i2c: 01 00 00 7F AA 29 [17:43:48]Write i2c OK [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: 01 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: 01 07 00 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: 01 07 00 7F AA 00 00 00 00 00 68 0C A4 [17:43:48]RasterBufferAndPrint [17:43:48]line [17:43:48]line [17:43:48]line [17:43:48]line [17:43:48]line [17:43:48]written 0, free lines is 3180 [17:43:48]MH_Cut [17:43:48]Write to MH i2c: D1 01 00 86 AA 01 02 [17:43:48]Write i2c OK [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: D1 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: D1 01 00 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: D1 01 00 86 AA 00 01 [17:43:48]Write to MH i2c: 01 00 00 87 AA 31 [17:43:48]Write i2c OK [17:43:48]MH_I2C_Read... [17:43:49]OFD Sender: No OFD packet to send [17:43:50]*** Cut start [17:43:50]*** Purtial cut [17:43:50]*** Stage 1: CUTSNS_PIN = 1 [17:43:52]Read from MH i2c: 01 [17:43:52]MH_I2C_Read... [17:43:52]*** Stop cut motor [17:43:52]*** Cut end [17:43:52]Read from MH i2c: 01 07 00 [17:43:52]MH_I2C_Read... [17:43:52]Read from MH i2c: 01 07 00 87 AA 00 00 00 00 00 FF 0F 46 [17:43:52]process_action close_receipt done [17:43:52]requested_data is exist [17:43:52]produce_requested_data [17:43:52]requested_item fm.sn is exist - process it [17:43:52]wFMCommunicate request_size=4 [17:43:52]MH_SAM_APDU [17:43:52]CAPDU: 80 11 00 00 [17:43:52]Write to MH i2c: E2 08 00 88 AA 80 11 00 00 00 00 00 00 AC [17:43:52]Write i2c OK [17:43:52]MH_I2C_Read... [17:43:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:52]Read from MH i2c: E2 [17:43:52]MH_I2C_Read... [17:43:52]Read from MH i2c: E2 17 00 [17:43:52]MH_I2C_Read... [17:43:52]Read from MH i2c: E2 17 00 88 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F9 [17:43:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:43:52]wFMCommunicate OK [17:43:52]requested_item fd.num is exist - process it [17:43:52]SAM_PROTO_GetFieldsCounters [17:43:52]wFMCommunicate request_size=4 [17:43:52]MH_SAM_APDU [17:43:52]CAPDU: 80 13 00 00 [17:43:52]Write to MH i2c: E2 08 00 89 AA 80 13 00 00 00 00 00 00 AF [17:43:52]Write i2c OK [17:43:52]MH_I2C_Read... [17:43:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:52]Read from MH i2c: E2 [17:43:52]MH_I2C_Read... [17:43:52]Read from MH i2c: E2 62 00 [17:43:52]MH_I2C_Read... [17:43:52]Read from MH i2c: E2 62 00 89 AA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D8 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 7E 01 00 00 5E 04 04 00 7E 01 00 00 57 04 04 00 7F 01 00 00 19 04 04 00 00 00 00 00 90 00 E2 [17: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D8 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 7E 01 00 00 5E 04 04 00 7E 01 00 00 57 04 04 00 7F 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:43:52]wFMCommunicate OK [17:43:52]SAM_PROTO_GetFieldsCounters done [17:43:52]requested_item shift.num is exist - process it [17:43:52]requested_item shift.opened is exist - process it [17:43:52]req_shift_opened [17:43:52]FM_GetShiftState [17:43:52]SAM_PROTO_GetShiftState [17:43:52]wFMCommunicate request_size=4 [17:43:52]MH_SAM_APDU [17:43:52]CAPDU: 80 13 01 00 [17:43:52]Write to MH i2c: E2 08 00 8A AA 80 13 01 00 00 00 00 00 B1 [17:43:52]Write i2c OK [17:43:52]MH_I2C_Read... [17:43:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:52]Read from MH i2c: E2 [17:43:52]MH_I2C_Read... [17:43:52]Read from MH i2c: E2 0E 00 [17:43:52]MH_I2C_Read... [17:43:52]Read from MH i2c: E2 0E 00 8A AA 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 EE [17:43:52]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:43:52]wFMCommunicate OK [17:43:52]SAM_PROTO_GetShiftState done [17:43:52]FM_GetShiftState done [17:43:52]req_shift_opened done [17:43:52]requested_item shift.open_date is exist - process it [17:43:52]req_shift_open_date [17:43:52]req_shift_open_date done [17:43:52]produce_requested_data done [17:43:52]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260824,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [17:43:52]process_action_free close_receipt [17:43:52]json_value_free [17:43:52]json_value_free done [17:43:52]process_json_proto returns [17:43:52]Send response to host [17:43:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260824,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [17:43:52]free response buf [17:43:52]execute_script done [17:43:52]execute_script returns [17:43:52]free content buf [17:43:52]Sock 7.Close socket [17:43:52]Sock 7.Thread stoped [17:43:54]OFD Sender: No OFD packet to send [17:43:59]OFD Sender: No OFD packet to send [17:44:04]OFD Sender: No OFD packet to send [17:44:09]OFD Sender: No OFD packet to send [17:44:14]OFD Sender: No OFD packet to send [17:44:19]OFD Sender: No OFD packet to send [17:44:24]OFD Sender: No OFD packet to send [17:44:29]OFD Sender: No OFD packet to send [17:44:34]OFD Sender: No OFD packet to send [17:44:36]accept exits with 9 [17:44:36]New connection [17:44:36]New thread 3066617188 created [17:44:36]Thread 3066473828 joined [17:44:36]Waiting for new connection... [17:44:36] Sock 9.Parse request [17:44:36]Sock 9.Check first char [17:44:36]Sock 9.First char is OK [17:44:36]request: POST /json_proto HTTP/1.0 [17:44:36]Method: POST [17:44:36]URL: /json_proto [17:44:36]Method is POST - this is cgi request [17:44:36]url: /json_proto [17:44:36]query_string will be loaded in cgi processing [17:44:36]execute_cgi json_proto POST (null) [17:44:36]execute_cgi path=json_proto method=POST [17:44:36]POST find Content-Length [17:44:36]Host: 172.17.55.133:8080 [17:44:36]Content-Length: 678 [17:44:36]Content-Type: application/json [17:44:36] [17:44:36]POST finish read [17:44:36]Found Content-Length = 678 [17:44:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:36]execute_script... [17:44: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)1036377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:36]POST & json_proto [17:44:36]process_json_proto [17:44:36]json parsed OK: [17:44:36]protocol is kg_v1.0 [17:44:36]action value=close_receipt [17:44:36]process_action close_receipt [17:44:36]cmd_close_receipt [17:44:36]MH_GetDate [17:44:36]Write to MH i2c: F0 00 00 8B AA 24 [17:44:36]Write i2c OK [17:44:36]MH_I2C_Read... [17:44:36]Read from MH i2c: F0 [17:44:36]MH_I2C_Read... [17:44:36]Read from MH i2c: F0 09 00 [17:44:36]MH_I2C_Read... [17:44:36]Read from MH i2c: F0 09 00 8B AA 00 0A 33 C2 66 34 48 D8 65 4B [17:44:36]GetLastDocTimeStamp 1724003032 [17:44:36]current date 1724003082 [17:44:36]FM_GetShiftState [17:44:36]SAM_PROTO_GetShiftState [17:44:36]wFMCommunicate request_size=4 [17:44:36]MH_SAM_APDU [17:44:36]CAPDU: 80 13 01 00 [17:44:36]Write to MH i2c: E2 08 00 8C AA 80 13 01 00 00 00 00 00 B3 [17:44:36]Write i2c OK [17:44:36]MH_I2C_Read... [17:44:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:36]Read from MH i2c: E2 [17:44:36]MH_I2C_Read... [17:44:36]Read from MH i2c: E2 0E 00 [17:44:36]MH_I2C_Read... [17:44:36]Read from MH i2c: E2 0E 00 8C AA 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F0 [17:44:36]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:44:36]wFMCommunicate OK [17:44:36]SAM_PROTO_GetShiftState done [17:44:36]FM_GetShiftState done [17:44:36]opened in 1723940556 [17:44:36]opened+sec_in_day 1724026956 [17:44:36]quantity*price = 20001 [17:44:36]sum+1 = 20002 [17:44:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 383 18.08.2024 17:44 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260825 ФПД: 57287770114142 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T174442&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260825&fm=57287770114142&tin=02508201610067®Number=0000000000091865&sum=20000 [17:44:37]StoreToDocumentArchive [17:44:37]shift 449 fd 260825 [17:44:37]save to /storage/0449/doc_00260825 [17:44:37]save last doc name /storage/0449/doc_00260825 to /storage/kkm_last_doc_name [17:44:37]save OK [17:44:37]Clear old archive folders... [17:44:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:44:37]tlvbuf is 00540900 [17:44:37]SAM_PROTO_ClearQueue [17:44:37]wFMCommunicate request_size=4 [17:44:37]MH_SAM_APDU [17:44:37]CAPDU: 80 09 00 00 [17:44:37]Write to MH i2c: E2 08 00 99 AA 80 09 00 00 00 00 00 00 B5 [17:44:37]Write i2c OK [17:44:37]MH_I2C_Read... [17:44:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:44:37]Read from MH i2c: E2 [17:44:37]MH_I2C_Read... [17:44:37]Read from MH i2c: E2 03 00 [17:44:37]MH_I2C_Read... [17:44:37]Read from MH i2c: E2 03 00 99 AA 00 90 00 B7 [17:44:37]RAPDU: 90 00 [17:44:37]wFMCommunicate OK [17:44:37]SAM_PROTO_ClearQueue done [17:44:37]KKMCreateOFDPacket [17:44:37]OFDProtocolAddRootSTLVToBuf [17:44:37]FM_MakeSignedData [17:44:37]FM_MakeSignedData [17:44:37]SAM_PROTO_SignData [17:44:37]wFMCommunicate request_size=4 [17:44:37]MH_SAM_APDU [17:44:37]CAPDU: 80 0D 01 02 [17:44:37]Write to MH i2c: E2 08 00 9A AA 80 0D 01 02 00 00 00 00 BD [17:44:37]Write i2c OK [17:44:37]MH_I2C_Read... [17:44:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:44:37]Read from MH i2c: E2 [17:44:37]MH_I2C_Read... [17:44:37]Read from MH i2c: E2 03 00 [17:44:37]MH_I2C_Read... [17:44:37]Read from MH i2c: E2 03 00 9A AA 00 90 00 B8 [17:44:37]RAPDU: 90 00 [17:44:37]wFMCommunicate OK [17:44:37]wFMCommunicate request_size=255 [17:44:37]MH_SAM_APDU [17:44:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 0A 33 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D9 FA 03 00 35 04 06 00 34 [17:44:37]Write to MH i2c: E2 02 01 9B AA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 0A 33 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D9 FA 03 00 35 04 06 00 34 00 00 ED [17:44:37]Write i2c OK [17:44:37]MH_I2C_Read... [17:44:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:37]Read from MH i2c: E2 [17:44:37]MH_I2C_Read... [17:44:37]Read from MH i2c: E2 03 00 [17:44:37]MH_I2C_Read... [17:44:37]Read from MH i2c: E2 03 00 9B AA 00 90 00 B9 [17:44:37]RAPDU: 90 00 [17:44:37]wFMCommunicate OK [17:44:37]wFMCommunicate request_size=10 [17:44:37]MH_SAM_APDU [17:44:37]CAPDU: 80 0D 02 02 05 1A 59 30 08 5E [17:44:37]Write to MH i2c: E2 0D 00 9C AA 80 0D 02 02 05 00 1A 59 30 08 5E 00 00 D3 [17:44:37]Write i2c OK [17:44:37]MH_I2C_Read... [17:44:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:37]Read from MH i2c: E2 [17:44:37]MH_I2C_Read... [17:44:37]Read from MH i2c: E2 03 00 [17:44:37]MH_I2C_Read... [17:44:37]Read from MH i2c: E2 03 00 9C AA 00 90 00 BA [17:44:37]RAPDU: 90 00 [17:44:37]wFMCommunicate OK [17:44:37]wFMCommunicate request_size=4 [17:44:37]MH_SAM_APDU [17:44:37]CAPDU: 80 0D 03 02 [17:44:37]Write to MH i2c: E2 08 00 9D AA 80 0D 03 02 00 00 00 00 C2 [17:44:37]Write i2c OK [17:44:37]MH_I2C_Read... [17:44:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:44:37]Read from MH i2c: E2 [17:44:37]MH_I2C_Read... [17:44:37]Read from MH i2c: E2 0B 00 [17:44:37]MH_I2C_Read... [17:44:37]Read from MH i2c: E2 0B 00 9D AA 00 08 DF 3D F8 74 D1 5A EE 90 00 6C [17:44:37]RAPDU: 08 DF 3D F8 74 D1 5A EE 90 00 [17:44:37]wFMCommunicate OK [17:44:37]SAM_PROTO_SignData done [17:44:37]FM_MakeSignedData done [17:44:37]CreateOFDProtocolMessage [17:44:37]wFMCommunicate request_size=4 [17:44:37]MH_SAM_APDU [17:44:37]CAPDU: 80 11 00 00 [17:44:37]Write to MH i2c: E2 08 00 9E AA 80 11 00 00 00 00 00 00 C2 [17:44:37]Write i2c OK [17:44:37]MH_I2C_Read... [17:44:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:37]Read from MH i2c: E2 [17:44:37]MH_I2C_Read... [17:44:37]Read from MH i2c: E2 17 00 [17:44:37]MH_I2C_Read... [17:44:37]Read from MH i2c: E2 17 00 9E AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 0F [17:44:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:44:37]wFMCommunicate OK [17:44:37]CreateOFDProtocolMessage done [17:44:37]OFDSenderStorePacket 260825 [17:44:37]StoreOFDPacket docnum=260825 [17:44:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 1D 79 07 01 09 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 0A 33 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D9 FA 03 00 35 04 06 00 34 1A 59 30 08 5E 08 DF 3D F8 74 D1 5A EE [17:44:37]CheckFolder [17:44:37]dirname=/storage/ofd_packets [17:44:37]CheckFolder done [17:44:37]ProducePacketName [17:44:37]name=ofd_packets/00260825 [17:44:37]NVStorageSaveData ofd_packets/00260825 [17:44:37]File name is /storage/ofd_packets/00260825 [17:44:37]Write 301 bytes [17:44:37]NVStorageSaveData done [17:44:37]OFDSenderStorePacket done [17:44:37]KKMCreateOFDPacket done [17:44:37]NVStorageSaveData kkm_last_timestamp [17:44:37]File name is /storage/kkm_last_timestamp [17:44:37]Write 4 bytes [17:44:37]NVStorageSaveData done [17:44:37]OFD Sender: Processing packet 260825 [packets to send 192, broken 191] [17:44:37]ProducePacketName [17:44:37]name=ofd_packets/00260825 [17:44:37]OFD Sender: To server: pG, [17:44:37]CommunicateWithHost lk.salyk.kg:30040 [17:44:37]ConnectInit lk.salyk.kg [17:44:37]ExternCall_PrintAddStr [17:44:37]wPrintStart [17:44:37]Write to MH i2c: 01 00 00 9F AA 49 [17:44:37]Write i2c OK [17:44:37]MH_I2C_Read... [17:44:37]Read from MH i2c: 01 [17:44:37]MH_I2C_Read... [17:44:37]Read from MH i2c: 01 07 00 [17:44:37]MH_I2C_Read... [17:44:37]Read from MH i2c: 01 07 00 9F AA 00 00 00 00 00 FF 0F 5E [17:44:37]RasterBufferAndPrint [17:44:37]line Счет N : (1)1036377 [17:44:37]line ИНН: 02508201610067 [17:44:37]line Контрольно-Кассовый Чек [17:44:37]line ПРОДАЖА [17:44:37]line ТРК (МРК, ГНК) : 12 [17:44:37]line Товар: 2710124130 [17:44:37]line Аи-92-К-5 [17:44:37]line 2.950 * 67.80 [17:44:37]line = 200.01 [17:44:37]line НДС 12% НСП 1% [17:44:37]line > о реализуемом товаре [17:44:37]line ОКРУГЛЕНИЕ: -0.01 [17:44:37]line ИТОГО: 200.00 [17:44:37]line Внесено: 200.00 [17:44:37]line СДАЧА: 0.00 [17:44:37]line НСП 1% : 1.77 [17:44:37]line НДС 12% : 21.24 [17:44:37]line Наличными: 200.00 [17:44:37]line Безнал.: 0.00 [17:44:37]line Место: АЗС № 94 "Партнер Нефть" [17:44:37]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [17:44:37]line СНО: Общий режим [17:44:37]line Чек 383 18.08.2024 17:44 [17:44:37]line Смена: 449 ФФД: 1.0 [17:44:37]line ЗНМ: 0300000099 [17:44:37]line РНМ: 0000000000091865 [17:44:37]line Версия ККМ: 001 [17:44:37]line ФМ: 0000000000871820 [17:44:37]line ФД: 260825 [17:44:37]line ФПД: 57287770114142 [17:44:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T174442&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260825&fm=57287770114142&tin=02508201610067®Number=0000000000091865&sum=20000 [17:44:38]Connected sock=11 [17:44: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 30 0F 01 00 00 1D 79 07 01 09 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 0A 33 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 D9 FA 03 00 35 04 06 00 34 1A 59 30 08 5E 08 DF 3D F8 74 D1 5A EE [17:44:38]written 0, free lines is 4095 [17:44: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 30 4F 00 00 00 C5 3D 47 00 33 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 30 10 04 04 00 D9 FA 03 00 F4 03 04 00 5E DC C1 66 B6 04 01 00 00 54 92 A1 EA 30 74 CC D7 [17:44:38]CommunicateWithHost err = 0 [17:44:38]CheckOFDResponse [17:44:38]1017 (14) - 77093643461234 [17:44:38]1041 (16) - 0000000000871820 [17:44:38]1040 (4) - 260825 [17:44:38]1012 (4) - 18.08.2024 11:34 [17:44:38]1206 (1) - 0 [17:44:38]OFD Sender: Remove packet 260825 [17:44:38]ProducePacketName [17:44:38]name=ofd_packets/00260825 [17:44:38]NVStorageDeleteData [17:44:38]Write to MH i2c: 01 00 00 CA AA 74 [17:44:38]Write i2c OK [17:44:38]MH_I2C_Read... [17:44:38]Read from MH i2c: 01 [17:44:38]MH_I2C_Read... [17:44:38]Read from MH i2c: 01 07 00 [17:44:38]MH_I2C_Read... [17:44:38]Read from MH i2c: 01 07 00 CA AA 00 00 00 00 00 62 0C E9 [17:44:38]RasterBufferAndPrint [17:44:38]line [17:44:38]line [17:44:38]line [17:44:38]line [17:44:38]line [17:44:38]written 0, free lines is 3174 [17:44:38]MH_Cut [17:44:38]Write to MH i2c: D1 01 00 D1 AA 01 4D [17:44:38]Write i2c OK [17:44:38]MH_I2C_Read... [17:44:38]Read from MH i2c: D1 [17:44:38]MH_I2C_Read... [17:44:38]Read from MH i2c: D1 01 00 [17:44:38]MH_I2C_Read... [17:44:38]Read from MH i2c: D1 01 00 D1 AA 00 4C [17:44:38]Write to MH i2c: 01 00 00 D2 AA 7C [17:44:38]Write i2c OK [17:44:38]MH_I2C_Read... [17:44:38]OFD Sender: No OFD packet to send [17:44:39]*** Cut start [17:44:39]*** Purtial cut [17:44:39]*** Stage 1: CUTSNS_PIN = 1 [17:44:41]Read from MH i2c: 01 [17:44:41]MH_I2C_Read... [17:44:41]*** Stop cut motor [17:44:41]*** Cut end [17:44:41]Read from MH i2c: 01 07 00 [17:44:41]MH_I2C_Read... [17:44:41]Read from MH i2c: 01 07 00 D2 AA 00 00 00 00 00 FF 0F 91 [17:44:41]process_action close_receipt done [17:44:41]requested_data is exist [17:44:41]produce_requested_data [17:44:41]requested_item fm.sn is exist - process it [17:44:41]wFMCommunicate request_size=4 [17:44:41]MH_SAM_APDU [17:44:41]CAPDU: 80 11 00 00 [17:44:41]Write to MH i2c: E2 08 00 D3 AA 80 11 00 00 00 00 00 00 F7 [17:44:41]Write i2c OK [17:44:41]MH_I2C_Read... [17:44:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:41]Read from MH i2c: E2 [17:44:41]MH_I2C_Read... [17:44:41]Read from MH i2c: E2 17 00 [17:44:41]MH_I2C_Read... [17:44:41]Read from MH i2c: E2 17 00 D3 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 44 [17:44:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:44:41]wFMCommunicate OK [17:44:41]requested_item fd.num is exist - process it [17:44:41]SAM_PROTO_GetFieldsCounters [17:44:41]wFMCommunicate request_size=4 [17:44:41]MH_SAM_APDU [17:44:41]CAPDU: 80 13 00 00 [17:44:41]Write to MH i2c: E2 08 00 D4 AA 80 13 00 00 00 00 00 00 FA [17:44:41]Write i2c OK [17:44:41]MH_I2C_Read... [17:44:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:44:42]Read from MH i2c: E2 [17:44:42]MH_I2C_Read... [17:44:42]Read from MH i2c: E2 62 00 [17:44:42]MH_I2C_Read... [17:44:42]Read from MH i2c: E2 62 00 D4 AA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D9 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 7F 01 00 00 5E 04 04 00 7F 01 00 00 57 04 04 00 80 01 00 00 19 04 04 00 00 00 00 00 90 00 31 [17:44: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 D9 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 7F 01 00 00 5E 04 04 00 7F 01 00 00 57 04 04 00 80 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:44:42]wFMCommunicate OK [17:44:42]SAM_PROTO_GetFieldsCounters done [17:44:42]requested_item shift.num is exist - process it [17:44:42]requested_item shift.opened is exist - process it [17:44:42]req_shift_opened [17:44:42]FM_GetShiftState [17:44:42]SAM_PROTO_GetShiftState [17:44:42]wFMCommunicate request_size=4 [17:44:42]MH_SAM_APDU [17:44:42]CAPDU: 80 13 01 00 [17:44:42]Write to MH i2c: E2 08 00 D5 AA 80 13 01 00 00 00 00 00 FC [17:44:42]Write i2c OK [17:44:42]MH_I2C_Read... [17:44:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:42]Read from MH i2c: E2 [17:44:42]MH_I2C_Read... [17:44:42]Read from MH i2c: E2 0E 00 [17:44:42]MH_I2C_Read... [17:44:42]Read from MH i2c: E2 0E 00 D5 AA 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 39 [17:44:42]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:44:42]wFMCommunicate OK [17:44:42]SAM_PROTO_GetShiftState done [17:44:42]FM_GetShiftState done [17:44:42]req_shift_opened done [17:44:42]requested_item shift.open_date is exist - process it [17:44:42]req_shift_open_date [17:44:42]req_shift_open_date done [17:44:42]produce_requested_data done [17:44:42]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260825,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [17:44:42]process_action_free close_receipt [17:44:42]json_value_free [17:44:42]json_value_free done [17:44:42]process_json_proto returns [17:44:42]Send response to host [17:44:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260825,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [17:44:42]free response buf [17:44:42]execute_script done [17:44:42]execute_script returns [17:44:42]free content buf [17:44:42]Sock 9.Close socket [17:44:42]Sock 9.Thread stoped [17:44:43]OFD Sender: No OFD packet to send [17:44:48]OFD Sender: No OFD packet to send [17:44:53]OFD Sender: No OFD packet to send [17:44:58]OFD Sender: No OFD packet to send [17:45:03]OFD Sender: No OFD packet to send [17:45:08]OFD Sender: No OFD packet to send [17:45:13]OFD Sender: No OFD packet to send [17:45:14]accept exits with 7 [17:45:14]New connection [17:45:14]New thread 3066473828 created [17:45:14]Thread 3066617188 joined [17:45:14]Waiting for new connection... [17:45:14] Sock 7.Parse request [17:45:14]Sock 7.Check first char [17:45:14]Sock 7.First char is OK [17:45:14]request: POST /json_proto HTTP/1.0 [17:45:14]Method: POST [17:45:14]URL: /json_proto [17:45:14]Method is POST - this is cgi request [17:45:14]url: /json_proto [17:45:14]query_string will be loaded in cgi processing [17:45:14]execute_cgi json_proto POST (null) [17:45:14]execute_cgi path=json_proto method=POST [17:45:14]POST find Content-Length [17:45:14]Host: 172.17.55.133:8080 [17:45:14]Content-Length: 804 [17:45:14]Content-Type: application/json [17:45:14] [17:45:14]POST finish read [17:45:14]Found Content-Length = 804 [17:45:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036378", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:14]execute_script... [17:45: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)1036378", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:14]POST & json_proto [17:45:14]process_json_proto [17:45:14]json parsed OK: [17:45:14]protocol is kg_v1.0 [17:45:14]action value=close_receipt [17:45:14]process_action close_receipt [17:45:14]cmd_close_receipt [17:45:14]MH_GetDate [17:45:14]Write to MH i2c: F0 00 00 D6 AA 6F [17:45:14]Write i2c OK [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: F0 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: F0 09 00 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: F0 09 00 D6 AA 00 30 33 C2 66 34 48 D8 65 BC [17:45:14]GetLastDocTimeStamp 1724003082 [17:45:14]current date 1724003120 [17:45:14]FM_GetShiftState [17:45:14]SAM_PROTO_GetShiftState [17:45:14]wFMCommunicate request_size=4 [17:45:14]MH_SAM_APDU [17:45:14]CAPDU: 80 13 01 00 [17:45:14]Write to MH i2c: E2 08 00 D7 AA 80 13 01 00 00 00 00 00 FE [17:45:14]Write i2c OK [17:45:14]MH_I2C_Read... [17:45:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:14]Read from MH i2c: E2 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 0E 00 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 0E 00 D7 AA 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 3B [17:45:14]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:45:14]wFMCommunicate OK [17:45:14]SAM_PROTO_GetShiftState done [17:45:14]FM_GetShiftState done [17:45:14]opened in 1723940556 [17:45:14]opened+sec_in_day 1724026956 [17:45:14]quantity*price = 100021 [17:45:14]sum+1 = 100023 [17:45:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 384 18.08.2024 17:45 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260826 ФПД: 30082147549527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T174520&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260826&fm=30082147549527&tin=02508201610067®Number=0000000000091865&sum=100022 [17:45:15]StoreToDocumentArchive [17:45:15]shift 449 fd 260826 [17:45:15]save to /storage/0449/doc_00260826 [17:45:15]save last doc name /storage/0449/doc_00260826 to /storage/kkm_last_doc_name [17:45:15]save OK [17:45:15]Clear old archive folders... [17:45:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:45:15]tlvbuf is 006B9220 [17:45:15]SAM_PROTO_ClearQueue [17:45:15]wFMCommunicate request_size=4 [17:45:15]MH_SAM_APDU [17:45:15]CAPDU: 80 09 00 00 [17:45:16]Write to MH i2c: E2 08 00 E4 AA 80 09 00 00 00 00 00 00 00 [17:45:16]Write i2c OK [17:45:16]MH_I2C_Read... [17:45:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:16]Read from MH i2c: E2 [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: E2 03 00 [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: E2 03 00 E4 AA 00 90 00 02 [17:45:16]RAPDU: 90 00 [17:45:16]wFMCommunicate OK [17:45:16]SAM_PROTO_ClearQueue done [17:45:16]KKMCreateOFDPacket [17:45:16]OFDProtocolAddRootSTLVToBuf [17:45:16]FM_MakeSignedData [17:45:16]FM_MakeSignedData [17:45:16]SAM_PROTO_SignData [17:45:16]wFMCommunicate request_size=4 [17:45:16]MH_SAM_APDU [17:45:16]CAPDU: 80 0D 01 02 [17:45:16]Write to MH i2c: E2 08 00 E5 AA 80 0D 01 02 00 00 00 00 08 [17:45:16]Write i2c OK [17:45:16]MH_I2C_Read... [17:45:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:16]Read from MH i2c: E2 [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: E2 03 00 [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: E2 03 00 E5 AA 00 90 00 03 [17:45:16]RAPDU: 90 00 [17:45:16]wFMCommunicate OK [17:45:16]wFMCommunicate request_size=255 [17:45:16]MH_SAM_APDU [17:45: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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 30 33 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DA FA 03 00 35 04 06 00 1B [17:45:16]Write to MH i2c: E2 02 01 E6 AA 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 30 33 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DA FA 03 00 35 04 06 00 1B 00 00 9E [17:45:16]Write i2c OK [17:45:16]MH_I2C_Read... [17:45:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:16]Read from MH i2c: E2 [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: E2 03 00 [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: E2 03 00 E6 AA 00 90 00 04 [17:45:16]RAPDU: 90 00 [17:45:16]wFMCommunicate OK [17:45:16]wFMCommunicate request_size=10 [17:45:16]MH_SAM_APDU [17:45:16]CAPDU: 80 0D 02 02 05 5C 0B B8 01 57 [17:45:16]Write to MH i2c: E2 0D 00 E7 AA 80 0D 02 02 05 00 5C 0B B8 01 57 00 00 8C [17:45:16]Write i2c OK [17:45:16]MH_I2C_Read... [17:45:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:16]Read from MH i2c: E2 [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: E2 03 00 [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: E2 03 00 E7 AA 00 90 00 05 [17:45:16]RAPDU: 90 00 [17:45:16]wFMCommunicate OK [17:45:16]wFMCommunicate request_size=4 [17:45:16]MH_SAM_APDU [17:45:16]CAPDU: 80 0D 03 02 [17:45:16]Write to MH i2c: E2 08 00 E8 AA 80 0D 03 02 00 00 00 00 0D [17:45:16]Write i2c OK [17:45:16]MH_I2C_Read... [17:45:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:16]Read from MH i2c: E2 [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: E2 0B 00 [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: E2 0B 00 E8 AA 00 1B 41 13 25 88 45 AD 9E 90 00 BA [17:45:16]RAPDU: 1B 41 13 25 88 45 AD 9E 90 00 [17:45:16]wFMCommunicate OK [17:45:16]SAM_PROTO_SignData done [17:45:16]FM_MakeSignedData done [17:45:16]CreateOFDProtocolMessage [17:45:16]wFMCommunicate request_size=4 [17:45:16]MH_SAM_APDU [17:45:16]CAPDU: 80 11 00 00 [17:45:16]Write to MH i2c: E2 08 00 E9 AA 80 11 00 00 00 00 00 00 0D [17:45:16]Write i2c OK [17:45:16]MH_I2C_Read... [17:45:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:16]Read from MH i2c: E2 [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: E2 17 00 [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: E2 17 00 E9 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 5A [17:45:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:45:16]wFMCommunicate OK [17:45:16]CreateOFDProtocolMessage done [17:45:16]OFDSenderStorePacket 260826 [17:45:16]StoreOFDPacket docnum=260826 [17:45:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 D7 B5 07 01 3C 52 5A 03 01 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 30 33 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DA FA 03 00 35 04 06 00 1B 5C 0B B8 01 57 1B 41 13 25 88 45 AD 9E [17:45:16]CheckFolder [17:45:16]dirname=/storage/ofd_packets [17:45:16]CheckFolder done [17:45:16]ProducePacketName [17:45:16]name=ofd_packets/00260826 [17:45:16]NVStorageSaveData ofd_packets/00260826 [17:45:16]File name is /storage/ofd_packets/00260826 [17:45:16]Write 301 bytes [17:45:16]NVStorageSaveData done [17:45:16]OFDSenderStorePacket done [17:45:16]KKMCreateOFDPacket done [17:45:16]NVStorageSaveData kkm_last_timestamp [17:45:16]File name is /storage/kkm_last_timestamp [17:45:16]Write 4 bytes [17:45:16]NVStorageSaveData done [17:45:16]ExternCall_PrintAddStr [17:45:16]wPrintStart [17:45:16]Write to MH i2c: 01 00 00 EA AA 94 [17:45:16]Write i2c OK [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: 01 [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: 01 07 00 [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: 01 07 00 EA AA 00 00 00 00 00 FF 0F A9 [17:45:16]RasterBufferAndPrint [17:45:16]line Счет N : (1)1036378 [17:45:16]line ИНН: 02508201610067 [17:45:16]line Контрольно-Кассовый Чек [17:45:16]line ПРОДАЖА [17:45:16]line ТРК (МРК, ГНК) : 23 [17:45:16]line Товар: 2710124500 [17:45:16]line Аи-95-К-5 [17:45:16]line 13.480 * 74.20 [17:45:16]line = 1000.22 [17:45:16]line НДС 12% НСП 1% [17:45:16]line > о реализуемом товаре [17:45:16]line ИТОГО: 1000.22 [17:45:16]line НСП 1% : 8.85 [17:45:16]line НДС 12% : 106.22 [17:45:16]line Наличными: 0.00 [17:45:16]line Безнал.: 1000.22 [17:45:16]line Место: АЗС № 94 "Партнер Нефть" [17:45:16]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [17:45:16]line СНО: Общий режим [17:45:16]line Чек 384 18.08.2024 17:45 [17:45:16]line Смена: 449 ФФД: 1.0 [17:45:16]line ЗНМ: 0300000099 [17:45:16]line РНМ: 0000000000091865 [17:45:16]line Версия ККМ: 001 [17:45:16]line Платежная система: O! деньги [17:45:16]line ФМ: 0000000000871820 [17:45:16]line ФД: 260826 [17:45:16]line ФПД: 30082147549527 [17:45:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T174520&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260826&fm=30082147549527&tin=02508201610067®Number=0000000000091865&sum=100022 [17:45:16]written 0, free lines is 4095 [17:45:16]OFD Sender: Processing packet 260826 [packets to send 192, broken 191] [17:45:16]ProducePacketName [17:45:16]name=ofd_packets/00260826 [17:45:16]OFD Sender: To server: pG, [17:45:16]CommunicateWithHost lk.salyk.kg:30040 [17:45:16]ConnectInit lk.salyk.kg [17:45:16]Connected sock=10 [17:45: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 30 0F 01 00 00 D7 B5 07 01 3C 52 5A 03 01 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 30 33 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DA FA 03 00 35 04 06 00 1B 5C 0B B8 01 57 1B 41 13 25 88 45 AD 9E [17:45: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 30 4F 00 00 00 D4 76 47 00 F2 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 30 10 04 04 00 DA FA 03 00 F4 03 04 00 84 DC C1 66 B6 04 01 00 00 2C E1 39 D5 D5 93 FB 53 [17:45:16]CommunicateWithHost err = 0 [17:45:16]CheckOFDResponse [17:45:16]1017 (14) - 77093643461234 [17:45:16]1041 (16) - 0000000000871820 [17:45:16]1040 (4) - 260826 [17:45:16]1012 (4) - 18.08.2024 11:35 [17:45:16]1206 (1) - 0 [17:45:16]OFD Sender: Remove packet 260826 [17:45:16]ProducePacketName [17:45:16]name=ofd_packets/00260826 [17:45:16]NVStorageDeleteData [17:45:16]Write to MH i2c: 01 00 00 14 AB BF [17:45:16]Write i2c OK [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: 01 [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: 01 07 00 [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: 01 07 00 14 AB 00 00 00 00 00 86 0C 58 [17:45:16]RasterBufferAndPrint [17:45:16]line [17:45:16]line [17:45:16]line [17:45:16]line [17:45:16]line [17:45:16]written 0, free lines is 3210 [17:45:16]MH_Cut [17:45:16]Write to MH i2c: D1 01 00 1B AB 01 98 [17:45:16]Write i2c OK [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: D1 [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: D1 01 00 [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: D1 01 00 1B AB 00 97 [17:45:17]Write to MH i2c: 01 00 00 1C AB C7 [17:45:17]Write i2c OK [17:45:17]MH_I2C_Read... [17:45:17]OFD Sender: No OFD packet to send [17:45:18]*** Cut start [17:45:18]*** Purtial cut [17:45:18]*** Stage 1: CUTSNS_PIN = 1 [17:45:20]Read from MH i2c: 01 [17:45:20]MH_I2C_Read... [17:45:20]*** Stop cut motor [17:45:20]*** Cut end [17:45:20]Read from MH i2c: 01 07 00 [17:45:20]MH_I2C_Read... [17:45:20]Read from MH i2c: 01 07 00 1C AB 00 00 00 00 00 FF 0F DC [17:45:20]process_action close_receipt done [17:45:20]requested_data is exist [17:45:20]produce_requested_data [17:45:20]requested_item fm.sn is exist - process it [17:45:20]wFMCommunicate request_size=4 [17:45:20]MH_SAM_APDU [17:45:20]CAPDU: 80 11 00 00 [17:45:20]Write to MH i2c: E2 08 00 1D AB 80 11 00 00 00 00 00 00 42 [17:45:20]Write i2c OK [17:45:20]MH_I2C_Read... [17:45:20]Read from MH i2c: E2 [17:45:20]MH_I2C_Read... [17:45:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:20]Read from MH i2c: E2 17 00 [17:45:20]MH_I2C_Read... [17:45:20]Read from MH i2c: E2 17 00 1D AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 8F [17:45:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:45:20]wFMCommunicate OK [17:45:20]requested_item fd.num is exist - process it [17:45:20]SAM_PROTO_GetFieldsCounters [17:45:20]wFMCommunicate request_size=4 [17:45:20]MH_SAM_APDU [17:45:20]CAPDU: 80 13 00 00 [17:45:20]Write to MH i2c: E2 08 00 1E AB 80 13 00 00 00 00 00 00 45 [17:45:20]Write i2c OK [17:45:20]MH_I2C_Read... [17:45:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:20]Read from MH i2c: E2 [17:45:20]MH_I2C_Read... [17:45:20]Read from MH i2c: E2 62 00 [17:45:20]MH_I2C_Read... [17:45:20]Read from MH i2c: E2 62 00 1E AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 DA FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 80 01 00 00 5E 04 04 00 80 01 00 00 57 04 04 00 81 01 00 00 19 04 04 00 00 00 00 00 90 00 80 [17:45: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 DA FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 80 01 00 00 5E 04 04 00 80 01 00 00 57 04 04 00 81 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:45:20]wFMCommunicate OK [17:45:20]SAM_PROTO_GetFieldsCounters done [17:45:20]requested_item shift.num is exist - process it [17:45:20]requested_item shift.opened is exist - process it [17:45:20]req_shift_opened [17:45:20]FM_GetShiftState [17:45:20]SAM_PROTO_GetShiftState [17:45:20]wFMCommunicate request_size=4 [17:45:20]MH_SAM_APDU [17:45:20]CAPDU: 80 13 01 00 [17:45:20]Write to MH i2c: E2 08 00 1F AB 80 13 01 00 00 00 00 00 47 [17:45:20]Write i2c OK [17:45:20]MH_I2C_Read... [17:45:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:20]Read from MH i2c: E2 [17:45:20]MH_I2C_Read... [17:45:20]Read from MH i2c: E2 0E 00 [17:45:20]MH_I2C_Read... [17:45:20]Read from MH i2c: E2 0E 00 1F AB 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 84 [17:45:20]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:45:20]wFMCommunicate OK [17:45:20]SAM_PROTO_GetShiftState done [17:45:20]FM_GetShiftState done [17:45:20]req_shift_opened done [17:45:20]requested_item shift.open_date is exist - process it [17:45:20]req_shift_open_date [17:45:20]req_shift_open_date done [17:45:20]produce_requested_data done [17:45:20]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260826,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [17:45:20]process_action_free close_receipt [17:45:20]json_value_free [17:45:20]json_value_free done [17:45:20]process_json_proto returns [17:45:20]Send response to host [17:45:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260826,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [17:45:20]free response buf [17:45:20]execute_script done [17:45:20]execute_script returns [17:45:20]free content buf [17:45:20]Sock 7.Close socket [17:45:20]Sock 7.Thread stoped [17:45:22]OFD Sender: No OFD packet to send [17:45:27]OFD Sender: No OFD packet to send [17:45:32]OFD Sender: No OFD packet to send [17:45:37]OFD Sender: No OFD packet to send [17:45:42]OFD Sender: No OFD packet to send [17:45:47]OFD Sender: No OFD packet to send [17:45:52]OFD Sender: No OFD packet to send [17:45:57]OFD Sender: No OFD packet to send [17:46:02]OFD Sender: No OFD packet to send [17:46:07]OFD Sender: No OFD packet to send [17:46:12]OFD Sender: No OFD packet to send [17:46:17]OFD Sender: No OFD packet to send [17:46:22]OFD Sender: No OFD packet to send [17:46:27]OFD Sender: No OFD packet to send [17:46:32]OFD Sender: No OFD packet to send [17:46:37]OFD Sender: No OFD packet to send [17:46:42]OFD Sender: No OFD packet to send [17:46:47]OFD Sender: No OFD packet to send [17:46:52]OFD Sender: No OFD packet to send [17:46:57]OFD Sender: No OFD packet to send [17:47:02]OFD Sender: No OFD packet to send [17:47:07]OFD Sender: No OFD packet to send [17:47:12]OFD Sender: No OFD packet to send [17:47:17]OFD Sender: No OFD packet to send [17:47:22]OFD Sender: No OFD packet to send [17:47:27]OFD Sender: No OFD packet to send [17:47:30]accept exits with 9 [17:47:30]New connection [17:47:30]New thread 3066617188 created [17:47:30]Thread 3066473828 joined [17:47:30]Waiting for new connection... [17:47:30] Sock 9.Parse request [17:47:30]Sock 9.Check first char [17:47:30]Sock 9.First char is OK [17:47:30]request: POST /json_proto HTTP/1.0 [17:47:30]Method: POST [17:47:30]URL: /json_proto [17:47:30]Method is POST - this is cgi request [17:47:30]url: /json_proto [17:47:30]query_string will be loaded in cgi processing [17:47:30]execute_cgi json_proto POST (null) [17:47:30]execute_cgi path=json_proto method=POST [17:47:30]POST find Content-Length [17:47:30]Host: 172.17.55.133:8080 [17:47:30]Content-Length: 679 [17:47:30]Content-Type: application/json [17:47:30] [17:47:30]POST finish read [17:47:30]Found Content-Length = 679 [17:47:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:30]execute_script... [17:47: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)1036379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:30]POST & json_proto [17:47:30]process_json_proto [17:47:30]json parsed OK: [17:47:30]protocol is kg_v1.0 [17:47:30]action value=close_receipt [17:47:30]process_action close_receipt [17:47:30]cmd_close_receipt [17:47:30]MH_GetDate [17:47:30]Write to MH i2c: F0 00 00 20 AB BA [17:47:30]Write i2c OK [17:47:30]MH_I2C_Read... [17:47:30]Read from MH i2c: F0 [17:47:30]MH_I2C_Read... [17:47:30]Read from MH i2c: F0 09 00 [17:47:30]MH_I2C_Read... [17:47:30]Read from MH i2c: F0 09 00 20 AB 00 B8 33 C2 66 34 48 D8 65 8F [17:47:30]GetLastDocTimeStamp 1724003120 [17:47:30]current date 1724003256 [17:47:30]FM_GetShiftState [17:47:30]SAM_PROTO_GetShiftState [17:47:30]wFMCommunicate request_size=4 [17:47:30]MH_SAM_APDU [17:47:30]CAPDU: 80 13 01 00 [17:47:30]Write to MH i2c: E2 08 00 21 AB 80 13 01 00 00 00 00 00 49 [17:47:30]Write i2c OK [17:47:30]MH_I2C_Read... [17:47:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:30]Read from MH i2c: E2 [17:47:30]MH_I2C_Read... [17:47:30]Read from MH i2c: E2 0E 00 [17:47:30]MH_I2C_Read... [17:47:30]Read from MH i2c: E2 0E 00 21 AB 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 86 [17:47:30]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:47:30]wFMCommunicate OK [17:47:30]SAM_PROTO_GetShiftState done [17:47:30]FM_GetShiftState done [17:47:30]opened in 1723940556 [17:47:30]opened+sec_in_day 1724026956 [17:47:30]quantity*price = 70037 [17:47:30]sum+1 = 70038 [17:47:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 385 18.08.2024 17:47 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260827 ФПД: 31060355082971 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T174736&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260827&fm=31060355082971&tin=02508201610067®Number=0000000000091865&sum=70000 [17:47:31]StoreToDocumentArchive [17:47:31]shift 449 fd 260827 [17:47:31]save to /storage/0449/doc_00260827 [17:47:31]save last doc name /storage/0449/doc_00260827 to /storage/kkm_last_doc_name [17:47:31]save OK [17:47:31]Clear old archive folders... [17:47:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:47:31]tlvbuf is 004330B0 [17:47:31]SAM_PROTO_ClearQueue [17:47:31]wFMCommunicate request_size=4 [17:47:31]MH_SAM_APDU [17:47:31]CAPDU: 80 09 00 00 [17:47:31]Write to MH i2c: E2 08 00 2E AB 80 09 00 00 00 00 00 00 4B [17:47:31]Write i2c OK [17:47:31]MH_I2C_Read... [17:47:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:31]Read from MH i2c: E2 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: E2 03 00 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: E2 03 00 2E AB 00 90 00 4D [17:47:31]RAPDU: 90 00 [17:47:31]wFMCommunicate OK [17:47:31]SAM_PROTO_ClearQueue done [17:47:31]KKMCreateOFDPacket [17:47:31]OFDProtocolAddRootSTLVToBuf [17:47:31]FM_MakeSignedData [17:47:31]FM_MakeSignedData [17:47:31]SAM_PROTO_SignData [17:47:31]wFMCommunicate request_size=4 [17:47:31]MH_SAM_APDU [17:47:31]CAPDU: 80 0D 01 02 [17:47:31]Write to MH i2c: E2 08 00 2F AB 80 0D 01 02 00 00 00 00 53 [17:47:31]Write i2c OK [17:47:31]MH_I2C_Read... [17:47:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:31]Read from MH i2c: E2 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: E2 03 00 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: E2 03 00 2F AB 00 90 00 4E [17:47:31]RAPDU: 90 00 [17:47:31]wFMCommunicate OK [17:47:31]wFMCommunicate request_size=255 [17:47:31]MH_SAM_APDU [17:47:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 81 01 00 00 F4 03 04 00 B8 33 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DB FA 03 00 35 04 06 00 1C [17:47:31]Write to MH i2c: E2 02 01 30 AB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 81 01 00 00 F4 03 04 00 B8 33 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DB FA 03 00 35 04 06 00 1C 00 00 02 [17:47:31]Write i2c OK [17:47:31]MH_I2C_Read... [17:47:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:31]Read from MH i2c: E2 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: E2 03 00 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: E2 03 00 30 AB 00 90 00 4F [17:47:31]RAPDU: 90 00 [17:47:31]wFMCommunicate OK [17:47:31]wFMCommunicate request_size=10 [17:47:31]MH_SAM_APDU [17:47:31]CAPDU: 80 0D 02 02 05 3F CD 6E 6A DB [17:47:31]Write to MH i2c: E2 0D 00 31 AB 80 0D 02 02 05 00 3F CD 6E 6A DB 00 00 1F [17:47:31]Write i2c OK [17:47:31]MH_I2C_Read... [17:47:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:31]Read from MH i2c: E2 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: E2 03 00 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: E2 03 00 31 AB 00 90 00 50 [17:47:31]RAPDU: 90 00 [17:47:31]wFMCommunicate OK [17:47:31]wFMCommunicate request_size=4 [17:47:31]MH_SAM_APDU [17:47:31]CAPDU: 80 0D 03 02 [17:47:31]Write to MH i2c: E2 08 00 32 AB 80 0D 03 02 00 00 00 00 58 [17:47:31]Write i2c OK [17:47:31]MH_I2C_Read... [17:47:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:31]Read from MH i2c: E2 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: E2 0B 00 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: E2 0B 00 32 AB 00 2A 7C 59 A3 FB 1C 6F DD 90 00 5E [17:47:31]RAPDU: 2A 7C 59 A3 FB 1C 6F DD 90 00 [17:47:31]wFMCommunicate OK [17:47:31]SAM_PROTO_SignData done [17:47:31]FM_MakeSignedData done [17:47:31]CreateOFDProtocolMessage [17:47:31]wFMCommunicate request_size=4 [17:47:31]MH_SAM_APDU [17:47:31]CAPDU: 80 11 00 00 [17:47:31]Write to MH i2c: E2 08 00 33 AB 80 11 00 00 00 00 00 00 58 [17:47:31]Write i2c OK [17:47:31]MH_I2C_Read... [17:47:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:31]Read from MH i2c: E2 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: E2 17 00 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: E2 17 00 33 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A5 [17:47:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:47:31]wFMCommunicate OK [17:47:31]CreateOFDProtocolMessage done [17:47:31]OFDSenderStorePacket 260827 [17:47:31]StoreOFDPacket docnum=260827 [17:47:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 9F B5 07 01 A6 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 81 01 00 00 F4 03 04 00 B8 33 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DB FA 03 00 35 04 06 00 1C 3F CD 6E 6A DB 2A 7C 59 A3 FB 1C 6F DD [17:47:31]CheckFolder [17:47:31]dirname=/storage/ofd_packets [17:47:31]CheckFolder done [17:47:31]ProducePacketName [17:47:31]name=ofd_packets/00260827 [17:47:31]NVStorageSaveData ofd_packets/00260827 [17:47:31]File name is /storage/ofd_packets/00260827 [17:47:31]Write 301 bytes [17:47:31]NVStorageSaveData done [17:47:31]OFDSenderStorePacket done [17:47:31]KKMCreateOFDPacket done [17:47:31]NVStorageSaveData kkm_last_timestamp [17:47:31]File name is /storage/kkm_last_timestamp [17:47:31]Write 4 bytes [17:47:31]NVStorageSaveData done [17:47:31]ExternCall_PrintAddStr [17:47:31]wPrintStart [17:47:31]Write to MH i2c: 01 00 00 34 AB DF [17:47:31]Write i2c OK [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: 01 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: 01 07 00 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: 01 07 00 34 AB 00 00 00 00 00 FF 0F F4 [17:47:31]RasterBufferAndPrint [17:47:31]line Счет N : (1)1036379 [17:47:31]line ИНН: 02508201610067 [17:47:31]line Контрольно-Кассовый Чек [17:47:31]line ПРОДАЖА [17:47:31]line ТРК (МРК, ГНК) : 42 [17:47:31]line Товар: 2710124130 [17:47:31]line Аи-92-К-5 [17:47:31]line 10.330 * 67.80 [17:47:31]line = 700.37 [17:47:31]line НДС 12% НСП 1% [17:47:31]line > о реализуемом товаре [17:47:31]line ОКРУГЛЕНИЕ: -0.37 [17:47:31]line ИТОГО: 700.00 [17:47:31]line Внесено: 700.00 [17:47:31]line СДАЧА: 0.00 [17:47:31]line НСП 1% : 6.20 [17:47:31]line НДС 12% : 74.38 [17:47:31]line Наличными: 700.00 [17:47:31]line Безнал.: 0.00 [17:47:31]line Место: АЗС № 94 "Партнер Нефть" [17:47:31]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [17:47:31]line СНО: Общий режим [17:47:31]line Чек 385 18.08.2024 17:47 [17:47:31]line Смена: 449 ФФД: 1.0 [17:47:31]line ЗНМ: 0300000099 [17:47:31]line РНМ: 0000000000091865 [17:47:31]line Версия ККМ: 001 [17:47:31]line ФМ: 0000000000871820 [17:47:31]line ФД: 260827 [17:47:31]line ФПД: 31060355082971 [17:47:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T174736&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260827&fm=31060355082971&tin=02508201610067®Number=0000000000091865&sum=70000 [17:47:32]written 0, free lines is 4095 [17:47:32]OFD Sender: Processing packet 260827 [packets to send 192, broken 191] [17:47:32]ProducePacketName [17:47:32]name=ofd_packets/00260827 [17:47:32]OFD Sender: To server: pG, [17:47:32]CommunicateWithHost lk.salyk.kg:30040 [17:47:32]ConnectInit lk.salyk.kg [17:47:32]Connected sock=10 [17:47: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 30 0F 01 00 00 9F B5 07 01 A6 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 81 01 00 00 F4 03 04 00 B8 33 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DB FA 03 00 35 04 06 00 1C 3F CD 6E 6A DB 2A 7C 59 A3 FB 1C 6F DD [17:47: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 30 4F 00 00 00 48 D9 47 00 19 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DB FA 03 00 F4 03 04 00 0C DD C1 66 B6 04 01 00 00 30 92 3B 44 C3 94 8B 5C [17:47:32]CommunicateWithHost err = 0 [17:47:32]CheckOFDResponse [17:47:32]1017 (14) - 77093643461234 [17:47:32]1041 (16) - 0000000000871820 [17:47:32]1040 (4) - 260827 [17:47:32]1012 (4) - 18.08.2024 11:37 [17:47:32]1206 (1) - 0 [17:47:32]OFD Sender: Remove packet 260827 [17:47:32]ProducePacketName [17:47:32]name=ofd_packets/00260827 [17:47:32]NVStorageDeleteData [17:47:32]Write to MH i2c: 01 00 00 5F AB 0A [17:47:32]Write i2c OK [17:47:32]MH_I2C_Read... [17:47:32]Read from MH i2c: 01 [17:47:32]MH_I2C_Read... [17:47:32]Read from MH i2c: 01 07 00 [17:47:32]MH_I2C_Read... [17:47:32]Read from MH i2c: 01 07 00 5F AB 00 00 00 00 00 62 0C 7F [17:47:32]RasterBufferAndPrint [17:47:32]line [17:47:32]line [17:47:32]line [17:47:32]line [17:47:32]line [17:47:32]written 0, free lines is 3174 [17:47:32]MH_Cut [17:47:32]Write to MH i2c: D1 01 00 66 AB 01 E3 [17:47:32]Write i2c OK [17:47:32]MH_I2C_Read... [17:47:32]Read from MH i2c: D1 [17:47:32]MH_I2C_Read... [17:47:32]Read from MH i2c: D1 01 00 [17:47:32]MH_I2C_Read... [17:47:32]Read from MH i2c: D1 01 00 66 AB 00 E2 [17:47:32]Write to MH i2c: 01 00 00 67 AB 12 [17:47:32]Write i2c OK [17:47:32]MH_I2C_Read... [17:47:32]OFD Sender: No OFD packet to send [17:47:33]*** Cut start [17:47:33]*** Purtial cut [17:47:33]*** Stage 1: CUTSNS_PIN = 1 [17:47:35]Read from MH i2c: 01 [17:47:35]MH_I2C_Read... [17:47:35]*** Stop cut motor [17:47:35]*** Cut end [17:47:35]Read from MH i2c: 01 07 00 [17:47:35]MH_I2C_Read... [17:47:35]Read from MH i2c: 01 07 00 67 AB 00 00 00 00 00 FF 0F 27 [17:47:35]process_action close_receipt done [17:47:35]requested_data is exist [17:47:35]produce_requested_data [17:47:35]requested_item fm.sn is exist - process it [17:47:35]wFMCommunicate request_size=4 [17:47:35]MH_SAM_APDU [17:47:35]CAPDU: 80 11 00 00 [17:47:35]Write to MH i2c: E2 08 00 68 AB 80 11 00 00 00 00 00 00 8D [17:47:35]Write i2c OK [17:47:35]MH_I2C_Read... [17:47:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:35]Read from MH i2c: E2 [17:47:35]MH_I2C_Read... [17:47:35]Read from MH i2c: E2 17 00 [17:47:35]MH_I2C_Read... [17:47:35]Read from MH i2c: E2 17 00 68 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 DA [17:47:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:47:35]wFMCommunicate OK [17:47:35]requested_item fd.num is exist - process it [17:47:35]SAM_PROTO_GetFieldsCounters [17:47:35]wFMCommunicate request_size=4 [17:47:35]MH_SAM_APDU [17:47:35]CAPDU: 80 13 00 00 [17:47:35]Write to MH i2c: E2 08 00 69 AB 80 13 00 00 00 00 00 00 90 [17:47:35]Write i2c OK [17:47:35]MH_I2C_Read... [17:47:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:35]Read from MH i2c: E2 [17:47:35]MH_I2C_Read... [17:47:35]Read from MH i2c: E2 62 00 [17:47:35]MH_I2C_Read... [17:47:35]Read from MH i2c: E2 62 00 69 AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 DB FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 81 01 00 00 5E 04 04 00 81 01 00 00 57 04 04 00 82 01 00 00 19 04 04 00 00 00 00 00 90 00 CF [17:47: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 DB FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 81 01 00 00 5E 04 04 00 81 01 00 00 57 04 04 00 82 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:47:35]wFMCommunicate OK [17:47:35]SAM_PROTO_GetFieldsCounters done [17:47:35]requested_item shift.num is exist - process it [17:47:35]requested_item shift.opened is exist - process it [17:47:35]req_shift_opened [17:47:35]FM_GetShiftState [17:47:35]SAM_PROTO_GetShiftState [17:47:35]wFMCommunicate request_size=4 [17:47:35]MH_SAM_APDU [17:47:35]CAPDU: 80 13 01 00 [17:47:35]Write to MH i2c: E2 08 00 6A AB 80 13 01 00 00 00 00 00 92 [17:47:35]Write i2c OK [17:47:35]MH_I2C_Read... [17:47:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:35]Read from MH i2c: E2 [17:47:35]MH_I2C_Read... [17:47:35]Read from MH i2c: E2 0E 00 [17:47:35]MH_I2C_Read... [17:47:35]Read from MH i2c: E2 0E 00 6A AB 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 CF [17:47:35]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:47:35]wFMCommunicate OK [17:47:35]SAM_PROTO_GetShiftState done [17:47:35]FM_GetShiftState done [17:47:35]req_shift_opened done [17:47:35]requested_item shift.open_date is exist - process it [17:47:35]req_shift_open_date [17:47:35]req_shift_open_date done [17:47:35]produce_requested_data done [17:47:35]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260827,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [17:47:35]process_action_free close_receipt [17:47:35]json_value_free [17:47:35]json_value_free done [17:47:35]process_json_proto returns [17:47:35]Send response to host [17:47:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260827,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [17:47:35]free response buf [17:47:35]execute_script done [17:47:35]execute_script returns [17:47:35]free content buf [17:47:35]Sock 9.Close socket [17:47:35]Sock 9.Thread stoped [17:47:37]OFD Sender: No OFD packet to send [17:47:42]OFD Sender: No OFD packet to send [17:47:47]OFD Sender: No OFD packet to send [17:47:52]OFD Sender: No OFD packet to send [17:47:57]OFD Sender: No OFD packet to send [17:48:02]OFD Sender: No OFD packet to send [17:48:07]OFD Sender: No OFD packet to send [17:48:12]OFD Sender: No OFD packet to send [17:48:17]OFD Sender: No OFD packet to send [17:48:22]OFD Sender: No OFD packet to send [17:48:27]OFD Sender: No OFD packet to send [17:48:32]OFD Sender: No OFD packet to send [17:48:37]OFD Sender: No OFD packet to send [17:48:42]OFD Sender: No OFD packet to send [17:48:47]OFD Sender: No OFD packet to send [17:48:51]accept exits with 7 [17:48:51]New connection [17:48:51]New thread 3066473828 created [17:48:51]Thread 3066617188 joined [17:48:51]Waiting for new connection... [17:48:51] Sock 7.Parse request [17:48:51]Sock 7.Check first char [17:48:51]Sock 7.First char is OK [17:48:51]request: POST /json_proto HTTP/1.0 [17:48:51]Method: POST [17:48:51]URL: /json_proto [17:48:51]Method is POST - this is cgi request [17:48:51]url: /json_proto [17:48:51]query_string will be loaded in cgi processing [17:48:51]execute_cgi json_proto POST (null) [17:48:51]execute_cgi path=json_proto method=POST [17:48:51]POST find Content-Length [17:48:51]Host: 172.17.55.133:8080 [17:48:51]Content-Length: 678 [17:48:51]Content-Type: application/json [17:48:51] [17:48:51]POST finish read [17:48:51]Found Content-Length = 678 [17:48:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036381", "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" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:51]execute_script... [17:48: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)1036381", "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" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:51]POST & json_proto [17:48:51]process_json_proto [17:48:51]json parsed OK: [17:48:51]protocol is kg_v1.0 [17:48:51]action value=close_receipt [17:48:51]process_action close_receipt [17:48:51]cmd_close_receipt [17:48:51]MH_GetDate [17:48:51]Write to MH i2c: F0 00 00 6B AB 05 [17:48:51]Write i2c OK [17:48:51]MH_I2C_Read... [17:48:51]Read from MH i2c: F0 [17:48:51]MH_I2C_Read... [17:48:51]Read from MH i2c: F0 09 00 [17:48:51]MH_I2C_Read... [17:48:51]Read from MH i2c: F0 09 00 6B AB 00 09 34 C2 66 34 48 D8 65 2C [17:48:51]GetLastDocTimeStamp 1724003256 [17:48:51]current date 1724003337 [17:48:51]FM_GetShiftState [17:48:51]SAM_PROTO_GetShiftState [17:48:51]wFMCommunicate request_size=4 [17:48:51]MH_SAM_APDU [17:48:51]CAPDU: 80 13 01 00 [17:48:51]Write to MH i2c: E2 08 00 6C AB 80 13 01 00 00 00 00 00 94 [17:48:51]Write i2c OK [17:48:51]MH_I2C_Read... [17:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:51]Read from MH i2c: E2 [17:48:51]MH_I2C_Read... [17:48:51]Read from MH i2c: E2 0E 00 [17:48:51]MH_I2C_Read... [17:48:51]Read from MH i2c: E2 0E 00 6C AB 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D1 [17:48:51]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:48:51]wFMCommunicate OK [17:48:51]SAM_PROTO_GetShiftState done [17:48:51]FM_GetShiftState done [17:48:51]opened in 1723940556 [17:48:51]opened+sec_in_day 1724026956 [17:48:51]quantity*price = 30051 [17:48:51]sum+1 = 30052 [17:48:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 386 18.08.2024 17:48 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260828 ФПД: 135898748445557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T174857&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260828&fm=135898748445557&tin=02508201610067®Number=0000000000091865&sum=30000 [17:48:52]StoreToDocumentArchive [17:48:52]shift 449 fd 260828 [17:48:52]save to /storage/0449/doc_00260828 [17:48:52]save last doc name /storage/0449/doc_00260828 to /storage/kkm_last_doc_name [17:48:52]save OK [17:48:52]Clear old archive folders... [17:48:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:48:52]tlvbuf is 00540990 [17:48:52]SAM_PROTO_ClearQueue [17:48:52]wFMCommunicate request_size=4 [17:48:52]MH_SAM_APDU [17:48:52]CAPDU: 80 09 00 00 [17:48:52]Write to MH i2c: E2 08 00 79 AB 80 09 00 00 00 00 00 00 96 [17:48:52]Write i2c OK [17:48:52]MH_I2C_Read... [17:48:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:52]Read from MH i2c: E2 [17:48:52]MH_I2C_Read... [17:48:52]Read from MH i2c: E2 03 00 [17:48:52]MH_I2C_Read... [17:48:52]Read from MH i2c: E2 03 00 79 AB 00 90 00 98 [17:48:52]RAPDU: 90 00 [17:48:52]wFMCommunicate OK [17:48:52]SAM_PROTO_ClearQueue done [17:48:52]KKMCreateOFDPacket [17:48:52]OFDProtocolAddRootSTLVToBuf [17:48:52]FM_MakeSignedData [17:48:52]FM_MakeSignedData [17:48:52]SAM_PROTO_SignData [17:48:52]wFMCommunicate request_size=4 [17:48:52]MH_SAM_APDU [17:48:52]CAPDU: 80 0D 01 02 [17:48:52]Write to MH i2c: E2 08 00 7A AB 80 0D 01 02 00 00 00 00 9E [17:48:52]Write i2c OK [17:48:52]MH_I2C_Read... [17:48:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:52]Read from MH i2c: E2 [17:48:52]MH_I2C_Read... [17:48:52]Read from MH i2c: E2 03 00 [17:48:52]MH_I2C_Read... [17:48:52]Read from MH i2c: E2 03 00 7A AB 00 90 00 99 [17:48:52]RAPDU: 90 00 [17:48:52]wFMCommunicate OK [17:48:52]wFMCommunicate request_size=255 [17:48:52]MH_SAM_APDU [17:48: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 82 01 00 00 F4 03 04 00 09 34 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DC FA 03 00 35 04 06 00 7B [17:48:52]Write to MH i2c: E2 02 01 7B AB 80 0D 02 02 FA 00 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 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 82 01 00 00 F4 03 04 00 09 34 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DC FA 03 00 35 04 06 00 7B 00 00 51 [17:48:52]Write i2c OK [17:48:52]MH_I2C_Read... [17:48:53]OFD Sender: No OFD packet to send [17:48:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:53]Read from MH i2c: E2 [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: E2 03 00 [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: E2 03 00 7B AB 00 90 00 9A [17:48:53]RAPDU: 90 00 [17:48:53]wFMCommunicate OK [17:48:53]wFMCommunicate request_size=10 [17:48:53]MH_SAM_APDU [17:48:53]CAPDU: 80 0D 02 02 05 99 64 A0 63 75 [17:48:53]Write to MH i2c: E2 0D 00 7C AB 80 0D 02 02 05 00 99 64 A0 63 75 00 00 20 [17:48:53]Write i2c OK [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: E2 [17:48:53]MH_I2C_Read... [17:48:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:53]Read from MH i2c: E2 03 00 [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: E2 03 00 7C AB 00 90 00 9B [17:48:53]RAPDU: 90 00 [17:48:53]wFMCommunicate OK [17:48:53]wFMCommunicate request_size=4 [17:48:53]MH_SAM_APDU [17:48:53]CAPDU: 80 0D 03 02 [17:48:53]Write to MH i2c: E2 08 00 7D AB 80 0D 03 02 00 00 00 00 A3 [17:48:53]Write i2c OK [17:48:53]MH_I2C_Read... [17:48:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:53]Read from MH i2c: E2 [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: E2 0B 00 [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: E2 0B 00 7D AB 00 4A 92 AB BF 53 0A 8F D6 90 00 AC [17:48:53]RAPDU: 4A 92 AB BF 53 0A 8F D6 90 00 [17:48:53]wFMCommunicate OK [17:48:53]SAM_PROTO_SignData done [17:48:53]FM_MakeSignedData done [17:48:53]CreateOFDProtocolMessage [17:48:53]wFMCommunicate request_size=4 [17:48:53]MH_SAM_APDU [17:48:53]CAPDU: 80 11 00 00 [17:48:53]Write to MH i2c: E2 08 00 7E AB 80 11 00 00 00 00 00 00 A3 [17:48:53]Write i2c OK [17:48:53]MH_I2C_Read... [17:48:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:53]Read from MH i2c: E2 [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: E2 17 00 [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: E2 17 00 7E AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F0 [17:48:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:48:53]wFMCommunicate OK [17:48:53]CreateOFDProtocolMessage done [17:48:53]OFDSenderStorePacket 260828 [17:48:53]StoreOFDPacket docnum=260828 [17:48:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 07 C0 07 01 E8 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 82 01 00 00 F4 03 04 00 09 34 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DC FA 03 00 35 04 06 00 7B 99 64 A0 63 75 4A 92 AB BF 53 0A 8F D6 [17:48:53]CheckFolder [17:48:53]dirname=/storage/ofd_packets [17:48:53]CheckFolder done [17:48:53]ProducePacketName [17:48:53]name=ofd_packets/00260828 [17:48:53]NVStorageSaveData ofd_packets/00260828 [17:48:53]File name is /storage/ofd_packets/00260828 [17:48:53]Write 301 bytes [17:48:53]NVStorageSaveData done [17:48:53]OFDSenderStorePacket done [17:48:53]KKMCreateOFDPacket done [17:48:53]NVStorageSaveData kkm_last_timestamp [17:48:53]File name is /storage/kkm_last_timestamp [17:48:53]Write 4 bytes [17:48:53]NVStorageSaveData done [17:48:53]ExternCall_PrintAddStr [17:48:53]wPrintStart [17:48:53]Write to MH i2c: 01 00 00 7F AB 2A [17:48:53]Write i2c OK [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: 01 [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: 01 07 00 [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: 01 07 00 7F AB 00 00 00 00 00 FF 0F 3F [17:48:53]RasterBufferAndPrint [17:48:53]line Счет N : (1)1036381 [17:48:53]line ИНН: 02508201610067 [17:48:53]line Контрольно-Кассовый Чек [17:48:53]line ПРОДАЖА [17:48:53]line ТРК (МРК, ГНК) : 23 [17:48:53]line Товар: 2710124500 [17:48:53]line Аи-95-К-5 [17:48:53]line 4.050 * 74.20 [17:48:53]line = 300.51 [17:48:53]line НДС 12% НСП 1% [17:48:53]line > о реализуемом товаре [17:48:53]line ОКРУГЛЕНИЕ: -0.51 [17:48:53]line ИТОГО: 300.00 [17:48:53]line Внесено: 300.00 [17:48:53]line СДАЧА: 0.00 [17:48:53]line НСП 1% : 2.66 [17:48:53]line НДС 12% : 31.91 [17:48:53]line Наличными: 300.00 [17:48:53]line Безнал.: 0.00 [17:48:53]line Место: АЗС № 94 "Партнер Нефть" [17:48:53]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [17:48:53]line СНО: Общий режим [17:48:53]line Чек 386 18.08.2024 17:48 [17:48:53]line Смена: 449 ФФД: 1.0 [17:48:53]line ЗНМ: 0300000099 [17:48:53]line РНМ: 0000000000091865 [17:48:53]line Версия ККМ: 001 [17:48:53]line ФМ: 0000000000871820 [17:48:53]line ФД: 260828 [17:48:53]line ФПД: 135898748445557 [17:48:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T174857&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260828&fm=135898748445557&tin=02508201610067®Number=0000000000091865&sum=30000 [17:48:53]written 0, free lines is 4095 [17:48:53]OFD Sender: Processing packet 260828 [packets to send 192, broken 191] [17:48:53]ProducePacketName [17:48:53]name=ofd_packets/00260828 [17:48:53]OFD Sender: To server: pG, [17:48:53]CommunicateWithHost lk.salyk.kg:30040 [17:48:53]ConnectInit lk.salyk.kg [17:48:53]Connected sock=10 [17:48: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 30 0F 01 00 00 07 C0 07 01 E8 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 82 01 00 00 F4 03 04 00 09 34 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DC FA 03 00 35 04 06 00 7B 99 64 A0 63 75 4A 92 AB BF 53 0A 8F D6 [17:48: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 30 4F 00 00 00 0A 64 47 00 AB C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DC FA 03 00 F4 03 04 00 5D DD C1 66 B6 04 01 00 00 E0 6F 31 0F 93 A5 9A E1 [17:48:53]CommunicateWithHost err = 0 [17:48:53]CheckOFDResponse [17:48:53]1017 (14) - 77093643461234 [17:48:53]1041 (16) - 0000000000871820 [17:48:53]1040 (4) - 260828 [17:48:53]1012 (4) - 18.08.2024 11:39 [17:48:53]1206 (1) - 0 [17:48:53]OFD Sender: Remove packet 260828 [17:48:53]ProducePacketName [17:48:53]name=ofd_packets/00260828 [17:48:53]NVStorageDeleteData [17:48:53]Write to MH i2c: 01 00 00 AA AB 55 [17:48:53]Write i2c OK [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: 01 [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: 01 07 00 [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: 01 07 00 AA AB 00 00 00 00 00 76 0C DE [17:48:53]RasterBufferAndPrint [17:48:53]line [17:48:53]line [17:48:53]line [17:48:53]line [17:48:53]line [17:48:53]written 0, free lines is 3193 [17:48:53]MH_Cut [17:48:53]Write to MH i2c: D1 01 00 B1 AB 01 2E [17:48:53]Write i2c OK [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: D1 [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: D1 01 00 [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: D1 01 00 B1 AB 00 2D [17:48:53]Write to MH i2c: 01 00 00 B2 AB 5D [17:48:53]Write i2c OK [17:48:53]MH_I2C_Read... [17:48:54]OFD Sender: No OFD packet to send [17:48:54]*** Cut start [17:48:54]*** Purtial cut [17:48:54]*** Stage 1: CUTSNS_PIN = 1 [17:48:56]Read from MH i2c: 01 [17:48:56]MH_I2C_Read... [17:48:56]*** Stop cut motor [17:48:56]*** Cut end [17:48:56]Read from MH i2c: 01 07 00 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: 01 07 00 B2 AB 00 00 00 00 00 FF 0F 72 [17:48:56]process_action close_receipt done [17:48:56]requested_data is exist [17:48:56]produce_requested_data [17:48:56]requested_item fm.sn is exist - process it [17:48:56]wFMCommunicate request_size=4 [17:48:56]MH_SAM_APDU [17:48:56]CAPDU: 80 11 00 00 [17:48:56]Write to MH i2c: E2 08 00 B3 AB 80 11 00 00 00 00 00 00 D8 [17:48:56]Write i2c OK [17:48:56]MH_I2C_Read... [17:48:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:56]Read from MH i2c: E2 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: E2 17 00 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: E2 17 00 B3 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 25 [17:48:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:48:56]wFMCommunicate OK [17:48:56]requested_item fd.num is exist - process it [17:48:56]SAM_PROTO_GetFieldsCounters [17:48:56]wFMCommunicate request_size=4 [17:48:56]MH_SAM_APDU [17:48:56]CAPDU: 80 13 00 00 [17:48:56]Write to MH i2c: E2 08 00 B4 AB 80 13 00 00 00 00 00 00 DB [17:48:56]Write i2c OK [17:48:56]MH_I2C_Read... [17:48:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:57]Read from MH i2c: E2 [17:48:57]MH_I2C_Read... [17:48:57]Read from MH i2c: E2 62 00 [17:48:57]MH_I2C_Read... [17:48:57]Read from MH i2c: E2 62 00 B4 AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 DC FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 82 01 00 00 5E 04 04 00 82 01 00 00 57 04 04 00 83 01 00 00 19 04 04 00 00 00 00 00 90 00 1E [17:48: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 DC FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 82 01 00 00 5E 04 04 00 82 01 00 00 57 04 04 00 83 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:48:57]wFMCommunicate OK [17:48:57]SAM_PROTO_GetFieldsCounters done [17:48:57]requested_item shift.num is exist - process it [17:48:57]requested_item shift.opened is exist - process it [17:48:57]req_shift_opened [17:48:57]FM_GetShiftState [17:48:57]SAM_PROTO_GetShiftState [17:48:57]wFMCommunicate request_size=4 [17:48:57]MH_SAM_APDU [17:48:57]CAPDU: 80 13 01 00 [17:48:57]Write to MH i2c: E2 08 00 B5 AB 80 13 01 00 00 00 00 00 DD [17:48:57]Write i2c OK [17:48:57]MH_I2C_Read... [17:48:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:57]Read from MH i2c: E2 [17:48:57]MH_I2C_Read... [17:48:57]Read from MH i2c: E2 0E 00 [17:48:57]MH_I2C_Read... [17:48:57]Read from MH i2c: E2 0E 00 B5 AB 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 1A [17:48:57]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:48:57]wFMCommunicate OK [17:48:57]SAM_PROTO_GetShiftState done [17:48:57]FM_GetShiftState done [17:48:57]req_shift_opened done [17:48:57]requested_item shift.open_date is exist - process it [17:48:57]req_shift_open_date [17:48:57]req_shift_open_date done [17:48:57]produce_requested_data done [17:48:57]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260828,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [17:48:57]process_action_free close_receipt [17:48:57]json_value_free [17:48:57]json_value_free done [17:48:57]process_json_proto returns [17:48:57]Send response to host [17:48:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260828,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [17:48:57]free response buf [17:48:57]execute_script done [17:48:57]execute_script returns [17:48:57]free content buf [17:48:57]Sock 7.Close socket [17:48:57]Sock 7.Thread stoped [17:48:59]OFD Sender: No OFD packet to send [17:49:00]accept exits with 9 [17:49:00]New connection [17:49:00]New thread 3066617188 created [17:49:00]Thread 3066473828 joined [17:49:00]Waiting for new connection... [17:49:00] Sock 9.Parse request [17:49:00]Sock 9.Check first char [17:49:00]Sock 9.First char is OK [17:49:00]request: POST /json_proto HTTP/1.0 [17:49:00]Method: POST [17:49:00]URL: /json_proto [17:49:00]Method is POST - this is cgi request [17:49:00]url: /json_proto [17:49:00]query_string will be loaded in cgi processing [17:49:00]execute_cgi json_proto POST (null) [17:49:00]execute_cgi path=json_proto method=POST [17:49:00]POST find Content-Length [17:49:00]Host: 172.17.55.133:8080 [17:49:00]Content-Length: 683 [17:49:00]Content-Type: application/json [17:49:00] [17:49:00]POST finish read [17:49:00]Found Content-Length = 683 [17:49:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036380", "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" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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" ] } } [17:49:00]execute_script... [17:49: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)1036380", "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" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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" ] } } [17:49:00]POST & json_proto [17:49:00]process_json_proto [17:49:00]json parsed OK: [17:49:00]protocol is kg_v1.0 [17:49:00]action value=close_receipt [17:49:00]process_action close_receipt [17:49:00]cmd_close_receipt [17:49:00]MH_GetDate [17:49:00]Write to MH i2c: F0 00 00 B6 AB 50 [17:49:00]Write i2c OK [17:49:00]MH_I2C_Read... [17:49:00]Read from MH i2c: F0 [17:49:00]MH_I2C_Read... [17:49:00]Read from MH i2c: F0 09 00 [17:49:00]MH_I2C_Read... [17:49:00]Read from MH i2c: F0 09 00 B6 AB 00 12 34 C2 66 34 48 D8 65 80 [17:49:00]GetLastDocTimeStamp 1724003337 [17:49:00]current date 1724003346 [17:49:00]FM_GetShiftState [17:49:00]SAM_PROTO_GetShiftState [17:49:00]wFMCommunicate request_size=4 [17:49:00]MH_SAM_APDU [17:49:00]CAPDU: 80 13 01 00 [17:49:00]Write to MH i2c: E2 08 00 B7 AB 80 13 01 00 00 00 00 00 DF [17:49:00]Write i2c OK [17:49:00]MH_I2C_Read... [17:49:00]Read from MH i2c: E2 *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:00] [17:49:00]MH_I2C_Read... [17:49:00]Read from MH i2c: E2 0E 00 [17:49:00]MH_I2C_Read... [17:49:00]Read from MH i2c: E2 0E 00 B7 AB 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 1C [17:49:00]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:49:00]wFMCommunicate OK [17:49:00]SAM_PROTO_GetShiftState done [17:49:00]FM_GetShiftState done [17:49:00]opened in 1723940556 [17:49:00]opened+sec_in_day 1724026956 [17:49:00]quantity*price = 150032 [17:49:00]sum+1 = 150033 [17:49:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 387 18.08.2024 17:49 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260829 ФПД: 68949531014248 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T174906&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260829&fm=68949531014248&tin=02508201610067®Number=0000000000091865&sum=150000 [17:49:01]StoreToDocumentArchive [17:49:01]shift 449 fd 260829 [17:49:01]save to /storage/0449/doc_00260829 [17:49:01]save last doc name /storage/0449/doc_00260829 to /storage/kkm_last_doc_name [17:49:01]save OK [17:49:01]Clear old archive folders... [17:49:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:49:01]tlvbuf is 00451570 [17:49:01]SAM_PROTO_ClearQueue [17:49:01]wFMCommunicate request_size=4 [17:49:01]MH_SAM_APDU [17:49:01]CAPDU: 80 09 00 00 [17:49:01]Write to MH i2c: E2 08 00 C4 AB 80 09 00 00 00 00 00 00 E1 [17:49:01]Write i2c OK [17:49:01]MH_I2C_Read... [17:49:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:49:01]Read from MH i2c: E2 [17:49:01]MH_I2C_Read... [17:49:01]Read from MH i2c: E2 03 00 [17:49:01]MH_I2C_Read... [17:49:01]Read from MH i2c: E2 03 00 C4 AB 00 90 00 E3 [17:49:01]RAPDU: 90 00 [17:49:01]wFMCommunicate OK [17:49:01]SAM_PROTO_ClearQueue done [17:49:01]KKMCreateOFDPacket [17:49:01]OFDProtocolAddRootSTLVToBuf [17:49:01]FM_MakeSignedData [17:49:01]FM_MakeSignedData [17:49:01]SAM_PROTO_SignData [17:49:01]wFMCommunicate request_size=4 [17:49:01]MH_SAM_APDU [17:49:01]CAPDU: 80 0D 01 02 [17:49:01]Write to MH i2c: E2 08 00 C5 AB 80 0D 01 02 00 00 00 00 E9 [17:49:01]Write i2c OK [17:49:01]MH_I2C_Read... [17:49:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:49:01]Read from MH i2c: E2 [17:49:01]MH_I2C_Read... [17:49:01]Read from MH i2c: E2 03 00 [17:49:01]MH_I2C_Read... [17:49:01]Read from MH i2c: E2 03 00 C5 AB 00 90 00 E4 [17:49:01]RAPDU: 90 00 [17:49:01]wFMCommunicate OK [17:49:01]wFMCommunicate request_size=255 [17:49:01]MH_SAM_APDU [17:49: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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 83 01 00 00 F4 03 04 00 12 34 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DD FA 03 00 35 04 06 00 3E [17:49:01]Write to MH i2c: E2 02 01 C6 AB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 83 01 00 00 F4 03 04 00 12 34 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DD FA 03 00 35 04 06 00 3E 00 00 A5 [17:49:01]Write i2c OK [17:49:01]MH_I2C_Read... [17:49:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:01]Read from MH i2c: E2 [17:49:01]MH_I2C_Read... [17:49:01]Read from MH i2c: E2 03 00 [17:49:01]MH_I2C_Read... [17:49:01]Read from MH i2c: E2 03 00 C6 AB 00 90 00 E5 [17:49:01]RAPDU: 90 00 [17:49:01]wFMCommunicate OK [17:49:01]wFMCommunicate request_size=10 [17:49:01]MH_SAM_APDU [17:49:01]CAPDU: 80 0D 02 02 05 B5 90 4D B4 68 [17:49:01]Write to MH i2c: E2 0D 00 C7 AB 80 0D 02 02 05 00 B5 90 4D B4 68 00 00 A4 [17:49:01]Write i2c OK [17:49:01]MH_I2C_Read... [17:49:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:01]Read from MH i2c: E2 [17:49:01]MH_I2C_Read... [17:49:01]Read from MH i2c: E2 03 00 [17:49:01]MH_I2C_Read... [17:49:01]Read from MH i2c: E2 03 00 C7 AB 00 90 00 E6 [17:49:01]RAPDU: 90 00 [17:49:01]wFMCommunicate OK [17:49:01]wFMCommunicate request_size=4 [17:49:01]MH_SAM_APDU [17:49:01]CAPDU: 80 0D 03 02 [17:49:01]Write to MH i2c: E2 08 00 C8 AB 80 0D 03 02 00 00 00 00 EE [17:49:02]Write i2c OK [17:49:02]MH_I2C_Read... [17:49:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:49:02]Read from MH i2c: E2 [17:49:02]MH_I2C_Read... [17:49:02]Read from MH i2c: E2 0B 00 [17:49:02]MH_I2C_Read... [17:49:02]Read from MH i2c: E2 0B 00 C8 AB 00 A2 C6 8A 32 CC F2 15 82 90 00 68 [17:49:02]RAPDU: A2 C6 8A 32 CC F2 15 82 90 00 [17:49:02]wFMCommunicate OK [17:49:02]SAM_PROTO_SignData done [17:49:02]FM_MakeSignedData done [17:49:02]CreateOFDProtocolMessage [17:49:02]wFMCommunicate request_size=4 [17:49:02]MH_SAM_APDU [17:49:02]CAPDU: 80 11 00 00 [17:49:02]Write to MH i2c: E2 08 00 C9 AB 80 11 00 00 00 00 00 00 EE [17:49:02]Write i2c OK [17:49:02]MH_I2C_Read... [17:49:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:02]Read from MH i2c: E2 [17:49:02]MH_I2C_Read... [17:49:02]Read from MH i2c: E2 17 00 [17:49:02]MH_I2C_Read... [17:49:02]Read from MH i2c: E2 17 00 C9 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 3B [17:49:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:49:02]wFMCommunicate OK [17:49:02]CreateOFDProtocolMessage done [17:49:02]OFDSenderStorePacket 260829 [17:49:02]StoreOFDPacket docnum=260829 [17:49:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 59 C8 07 01 4E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 83 01 00 00 F4 03 04 00 12 34 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DD FA 03 00 35 04 06 00 3E B5 90 4D B4 68 A2 C6 8A 32 CC F2 15 82 [17:49:02]CheckFolder [17:49:02]dirname=/storage/ofd_packets [17:49:02]CheckFolder done [17:49:02]ProducePacketName [17:49:02]name=ofd_packets/00260829 [17:49:02]NVStorageSaveData ofd_packets/00260829 [17:49:02]File name is /storage/ofd_packets/00260829 [17:49:02]Write 301 bytes [17:49:02]NVStorageSaveData done [17:49:02]OFDSenderStorePacket done [17:49:02]KKMCreateOFDPacket done [17:49:02]NVStorageSaveData kkm_last_timestamp [17:49:02]File name is /storage/kkm_last_timestamp [17:49:02]Write 4 bytes [17:49:02]NVStorageSaveData done [17:49:02]ExternCall_PrintAddStr [17:49:02]wPrintStart [17:49:02]Write to MH i2c: 01 00 00 CA AB 75 [17:49:02]Write i2c OK [17:49:02]MH_I2C_Read... [17:49:02]Read from MH i2c: 01 [17:49:02]MH_I2C_Read... [17:49:02]Read from MH i2c: 01 07 00 [17:49:02]MH_I2C_Read... [17:49:02]Read from MH i2c: 01 07 00 CA AB 00 00 00 00 00 FF 0F 8A [17:49:02]RasterBufferAndPrint [17:49:02]line Счет N : (1)1036380 [17:49:02]line ИНН: 02508201610067 [17:49:02]line Контрольно-Кассовый Чек [17:49:02]line ПРОДАЖА [17:49:02]line ТРК (МРК, ГНК) : 13 [17:49:02]line Товар: 2710124500 [17:49:02]line Аи-95-К-5 [17:49:02]line 20.220 * 74.20 [17:49:02]line = 1500.32 [17:49:02]line НДС 12% НСП 1% [17:49:02]line > о реализуемом товаре [17:49:02]line ОКРУГЛЕНИЕ: -0.32 [17:49:02]line ИТОГО: 1500.00 [17:49:02]line Внесено: 1500.00 [17:49:02]line СДАЧА: 0.00 [17:49:02]line НСП 1% : 13.28 [17:49:02]line НДС 12% : 159.33 [17:49:02]line Наличными: 1500.00 [17:49:02]line Безнал.: 0.00 [17:49:02]line Место: АЗС № 94 "Партнер Нефть" [17:49:02]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [17:49:02]line СНО: Общий режим [17:49:02]line Чек 387 18.08.2024 17:49 [17:49:02]line Смена: 449 ФФД: 1.0 [17:49:02]line ЗНМ: 0300000099 [17:49:02]line РНМ: 0000000000091865 [17:49:02]line Версия ККМ: 001 [17:49:02]line ФМ: 0000000000871820 [17:49:02]line ФД: 260829 [17:49:02]line ФПД: 68949531014248 [17:49:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T174906&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260829&fm=68949531014248&tin=02508201610067®Number=0000000000091865&sum=150000 [17:49:02]written 0, free lines is 4095 [17:49:02]OFD Sender: Processing packet 260829 [packets to send 192, broken 191] [17:49:02]ProducePacketName [17:49:02]name=ofd_packets/00260829 [17:49:02]OFD Sender: To server: pG, [17:49:02]CommunicateWithHost lk.salyk.kg:30040 [17:49:02]ConnectInit lk.salyk.kg [17:49:02]Connected sock=10 [17:49: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 30 0F 01 00 00 59 C8 07 01 4E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 83 01 00 00 F4 03 04 00 12 34 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DD FA 03 00 35 04 06 00 3E B5 90 4D B4 68 A2 C6 8A 32 CC F2 15 82 [17:49: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 30 4F 00 00 00 CD AA 47 00 B1 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 30 10 04 04 00 DD FA 03 00 F4 03 04 00 66 DD C1 66 B6 04 01 00 00 E4 21 BD 2F 95 B7 7C EA [17:49:02]CommunicateWithHost err = 0 [17:49:02]CheckOFDResponse [17:49:02]1017 (14) - 77093643461234 [17:49:02]1041 (16) - 0000000000871820 [17:49:02]1040 (4) - 260829 [17:49:02]1012 (4) - 18.08.2024 11:39 [17:49:02]1206 (1) - 0 [17:49:02]OFD Sender: Remove packet 260829 [17:49:02]ProducePacketName [17:49:02]name=ofd_packets/00260829 [17:49:02]NVStorageDeleteData [17:49:02]Write to MH i2c: 01 00 00 F5 AB A0 [17:49:02]Write i2c OK [17:49:02]MH_I2C_Read... [17:49:02]Read from MH i2c: 01 [17:49:02]MH_I2C_Read... [17:49:02]Read from MH i2c: 01 07 00 [17:49:02]MH_I2C_Read... [17:49:02]Read from MH i2c: 01 07 00 F5 AB 00 00 00 00 00 69 0C 1C [17:49:02]RasterBufferAndPrint [17:49:02]line [17:49:02]line [17:49:02]line [17:49:02]line [17:49:02]line [17:49:02]written 0, free lines is 3182 [17:49:02]MH_Cut [17:49:02]Write to MH i2c: D1 01 00 FC AB 01 79 [17:49:02]Write i2c OK [17:49:02]MH_I2C_Read... [17:49:02]Read from MH i2c: D1 [17:49:02]MH_I2C_Read... [17:49:02]Read from MH i2c: D1 01 00 [17:49:02]MH_I2C_Read... [17:49:02]Read from MH i2c: D1 01 00 FC AB 00 78 [17:49:02]Write to MH i2c: 01 00 00 FD AB A8 [17:49:02]Write i2c OK [17:49:02]MH_I2C_Read... [17:49:02]OFD Sender: No OFD packet to send [17:49:03]*** Cut start [17:49:03]*** Purtial cut [17:49:03]*** Stage 1: CUTSNS_PIN = 1 [17:49:05]Read from MH i2c: 01 [17:49:05]MH_I2C_Read... [17:49:05]*** Stop cut motor [17:49:05]*** Cut end [17:49:05]Read from MH i2c: 01 07 00 [17:49:05]MH_I2C_Read... [17:49:05]Read from MH i2c: 01 07 00 FD AB 00 00 00 00 00 FF 0F BD [17:49:05]process_action close_receipt done [17:49:05]requested_data is exist [17:49:05]produce_requested_data [17:49:05]requested_item fm.sn is exist - process it [17:49:05]wFMCommunicate request_size=4 [17:49:05]MH_SAM_APDU [17:49:05]CAPDU: 80 11 00 00 [17:49:05]Write to MH i2c: E2 08 00 FE AB 80 11 00 00 00 00 00 00 23 [17:49:05]Write i2c OK [17:49:05]MH_I2C_Read... [17:49:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:05]Read from MH i2c: E2 [17:49:05]MH_I2C_Read... [17:49:05]Read from MH i2c: E2 17 00 [17:49:05]MH_I2C_Read... [17:49:05]Read from MH i2c: E2 17 00 FE AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 70 [17:49:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:49:05]wFMCommunicate OK [17:49:05]requested_item fd.num is exist - process it [17:49:05]SAM_PROTO_GetFieldsCounters [17:49:05]wFMCommunicate request_size=4 [17:49:05]MH_SAM_APDU [17:49:05]CAPDU: 80 13 00 00 [17:49:05]Write to MH i2c: E2 08 00 FF AB 80 13 00 00 00 00 00 00 26 [17:49:05]Write i2c OK [17:49:05]MH_I2C_Read... [17:49:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:49:05]Read from MH i2c: E2 [17:49:05]MH_I2C_Read... [17:49:05]Read from MH i2c: E2 62 00 [17:49:05]MH_I2C_Read... [17:49:05]Read from MH i2c: E2 62 00 FF AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 DD FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 83 01 00 00 5E 04 04 00 83 01 00 00 57 04 04 00 84 01 00 00 19 04 04 00 00 00 00 00 90 00 6D [17:49: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 DD FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 83 01 00 00 5E 04 04 00 83 01 00 00 57 04 04 00 84 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:49:05]wFMCommunicate OK [17:49:05]SAM_PROTO_GetFieldsCounters done [17:49:05]requested_item shift.num is exist - process it [17:49:05]requested_item shift.opened is exist - process it [17:49:05]req_shift_opened [17:49:05]FM_GetShiftState [17:49:05]SAM_PROTO_GetShiftState [17:49:05]wFMCommunicate request_size=4 [17:49:05]MH_SAM_APDU [17:49:05]CAPDU: 80 13 01 00 [17:49:05]Write to MH i2c: E2 08 00 00 AC 80 13 01 00 00 00 00 00 29 [17:49:05]Write i2c OK [17:49:05]MH_I2C_Read... [17:49:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:05]Read from MH i2c: E2 [17:49:05]MH_I2C_Read... [17:49:05]Read from MH i2c: E2 0E 00 [17:49:05]MH_I2C_Read... [17:49:05]Read from MH i2c: E2 0E 00 00 AC 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 66 [17:49:06]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:49:06]wFMCommunicate OK [17:49:06]SAM_PROTO_GetShiftState done [17:49:06]FM_GetShiftState done [17:49:06]req_shift_opened done [17:49:06]requested_item shift.open_date is exist - process it [17:49:06]req_shift_open_date [17:49:06]req_shift_open_date done [17:49:06]produce_requested_data done [17:49:06]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260829,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [17:49:06]process_action_free close_receipt [17:49:06]json_value_free [17:49:06]json_value_free done [17:49:06]process_json_proto returns [17:49:06]Send response to host [17:49:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260829,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [17:49:06]free response buf [17:49:06]execute_script done [17:49:06]execute_script returns [17:49:06]free content buf [17:49:06]Sock 9.Close socket [17:49:06]Sock 9.Thread stoped [17:49:07]OFD Sender: No OFD packet to send [17:49:12]OFD Sender: No OFD packet to send [17:49:17]OFD Sender: No OFD packet to send [17:49:22]OFD Sender: No OFD packet to send [17:49:28]OFD Sender: No OFD packet to send [17:49:33]OFD Sender: No OFD packet to send [17:49:38]OFD Sender: No OFD packet to send [17:49:43]OFD Sender: No OFD packet to send [17:49:48]OFD Sender: No OFD packet to send [17:49:53]OFD Sender: No OFD packet to send [17:49:58]OFD Sender: No OFD packet to send [17:50:03]OFD Sender: No OFD packet to send [17:50:08]OFD Sender: No OFD packet to send [17:50:13]OFD Sender: No OFD packet to send [17:50:18]OFD Sender: No OFD packet to send [17:50:23]OFD Sender: No OFD packet to send [17:50:26]accept exits with 7 [17:50:26]New connection [17:50:26]New thread 3066473828 created [17:50:26]Thread 3066617188 joined [17:50:26]Waiting for new connection... [17:50:26] Sock 7.Parse request [17:50:26]Sock 7.Check first char [17:50:26]Sock 7.First char is OK [17:50:26]request: POST /json_proto HTTP/1.0 [17:50:26]Method: POST [17:50:26]URL: /json_proto [17:50:26]Method is POST - this is cgi request [17:50:26]url: /json_proto [17:50:26]query_string will be loaded in cgi processing [17:50:26]execute_cgi json_proto POST (null) [17:50:26]execute_cgi path=json_proto method=POST [17:50:26]POST find Content-Length [17:50:26]Host: 172.17.55.133:8080 [17:50:26]Content-Length: 678 [17:50:26]Content-Type: application/json [17:50:26] [17:50:26]POST finish read [17:50:26]Found Content-Length = 678 [17:50:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:26]execute_script... [17:50: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)1036382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:26]POST & json_proto [17:50:26]process_json_proto [17:50:26]json parsed OK: [17:50:26]protocol is kg_v1.0 [17:50:26]action value=close_receipt [17:50:26]process_action close_receipt [17:50:26]cmd_close_receipt [17:50:26]MH_GetDate [17:50:26]Write to MH i2c: F0 00 00 01 AC 9C [17:50:26]Write i2c OK [17:50:26]MH_I2C_Read... [17:50:26]Read from MH i2c: F0 [17:50:26]MH_I2C_Read... [17:50:26]Read from MH i2c: F0 09 00 [17:50:26]MH_I2C_Read... [17:50:26]Read from MH i2c: F0 09 00 01 AC 00 68 34 C2 66 34 48 D8 65 22 [17:50:26]GetLastDocTimeStamp 1724003346 [17:50:26]current date 1724003432 [17:50:26]FM_GetShiftState [17:50:26]SAM_PROTO_GetShiftState [17:50:26]wFMCommunicate request_size=4 [17:50:26]MH_SAM_APDU [17:50:26]CAPDU: 80 13 01 00 [17:50:26]Write to MH i2c: E2 08 00 02 AC 80 13 01 00 00 00 00 00 2B [17:50:26]Write i2c OK [17:50:26]MH_I2C_Read... [17:50:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:26]Read from MH i2c: E2 [17:50:26]MH_I2C_Read... [17:50:26]Read from MH i2c: E2 0E 00 [17:50:26]MH_I2C_Read... [17:50:26]Read from MH i2c: E2 0E 00 02 AC 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 68 [17:50:26]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:50:26]wFMCommunicate OK [17:50:26]SAM_PROTO_GetShiftState done [17:50:26]FM_GetShiftState done [17:50:26]opened in 1723940556 [17:50:26]opened+sec_in_day 1724026956 [17:50:26]quantity*price = 20001 [17:50:26]sum+1 = 20002 [17:50:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 388 18.08.2024 17:50 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260830 ФПД: 217680577597047 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T175032&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260830&fm=217680577597047&tin=02508201610067®Number=0000000000091865&sum=20000 [17:50:27]StoreToDocumentArchive [17:50:27]shift 449 fd 260830 [17:50:27]save to /storage/0449/doc_00260830 [17:50:27]save last doc name /storage/0449/doc_00260830 to /storage/kkm_last_doc_name [17:50:27]save OK [17:50:27]Clear old archive folders... [17:50:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:50:27]tlvbuf is 0057B080 [17:50:27]SAM_PROTO_ClearQueue [17:50:27]wFMCommunicate request_size=4 [17:50:27]MH_SAM_APDU [17:50:27]CAPDU: 80 09 00 00 [17:50:27]Write to MH i2c: E2 08 00 0F AC 80 09 00 00 00 00 00 00 2D [17:50:27]Write i2c OK [17:50:27]MH_I2C_Read... [17:50:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:27]Read from MH i2c: E2 [17:50:27]MH_I2C_Read... [17:50:27]Read from MH i2c: E2 03 00 [17:50:27]MH_I2C_Read... [17:50:27]Read from MH i2c: E2 03 00 0F AC 00 90 00 2F [17:50:27]RAPDU: 90 00 [17:50:27]wFMCommunicate OK [17:50:27]SAM_PROTO_ClearQueue done [17:50:27]KKMCreateOFDPacket [17:50:27]OFDProtocolAddRootSTLVToBuf [17:50:27]FM_MakeSignedData [17:50:27]FM_MakeSignedData [17:50:27]SAM_PROTO_SignData [17:50:27]wFMCommunicate request_size=4 [17:50:27]MH_SAM_APDU [17:50:27]CAPDU: 80 0D 01 02 [17:50:27]Write to MH i2c: E2 08 00 10 AC 80 0D 01 02 00 00 00 00 35 [17:50:27]Write i2c OK [17:50:27]MH_I2C_Read... [17:50:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:27]Read from MH i2c: E2 [17:50:27]MH_I2C_Read... [17:50:27]Read from MH i2c: E2 03 00 [17:50:27]MH_I2C_Read... [17:50:27]Read from MH i2c: E2 03 00 10 AC 00 90 00 30 [17:50:27]RAPDU: 90 00 [17:50:27]wFMCommunicate OK [17:50:27]wFMCommunicate request_size=255 [17:50:27]MH_SAM_APDU [17:50:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 01 00 00 F4 03 04 00 68 34 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DE FA 03 00 35 04 06 00 C5 [17:50:27]Write to MH i2c: E2 02 01 11 AC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 01 00 00 F4 03 04 00 68 34 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DE FA 03 00 35 04 06 00 C5 00 00 5F [17:50:27]Write i2c OK [17:50:27]MH_I2C_Read... [17:50:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:27]Read from MH i2c: E2 [17:50:27]MH_I2C_Read... [17:50:27]Read from MH i2c: E2 03 00 [17:50:27]MH_I2C_Read... [17:50:27]Read from MH i2c: E2 03 00 11 AC 00 90 00 31 [17:50:27]RAPDU: 90 00 [17:50:27]wFMCommunicate OK [17:50:27]wFMCommunicate request_size=10 [17:50:27]MH_SAM_APDU [17:50:27]CAPDU: 80 0D 02 02 05 FA B5 80 8E 77 [17:50:27]Write to MH i2c: E2 0D 00 12 AC 80 0D 02 02 05 00 FA B5 80 8E 77 00 00 76 [17:50:27]Write i2c OK [17:50:27]MH_I2C_Read... [17:50:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:27]Read from MH i2c: E2 [17:50:27]MH_I2C_Read... [17:50:27]Read from MH i2c: E2 03 00 [17:50:27]MH_I2C_Read... [17:50:27]Read from MH i2c: E2 03 00 12 AC 00 90 00 32 [17:50:27]RAPDU: 90 00 [17:50:27]wFMCommunicate OK [17:50:27]wFMCommunicate request_size=4 [17:50:27]MH_SAM_APDU [17:50:27]CAPDU: 80 0D 03 02 [17:50:27]Write to MH i2c: E2 08 00 13 AC 80 0D 03 02 00 00 00 00 3A [17:50:27]Write i2c OK [17:50:27]MH_I2C_Read... [17:50:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:27]Read from MH i2c: E2 [17:50:27]MH_I2C_Read... [17:50:27]Read from MH i2c: E2 0B 00 [17:50:27]MH_I2C_Read... [17:50:27]Read from MH i2c: E2 0B 00 13 AC 00 70 DD 26 16 EF 38 FF AF 90 00 99 [17:50:27]RAPDU: 70 DD 26 16 EF 38 FF AF 90 00 [17:50:27]wFMCommunicate OK [17:50:27]SAM_PROTO_SignData done [17:50:27]FM_MakeSignedData done [17:50:27]CreateOFDProtocolMessage [17:50:27]wFMCommunicate request_size=4 [17:50:27]MH_SAM_APDU [17:50:27]CAPDU: 80 11 00 00 [17:50:27]Write to MH i2c: E2 08 00 14 AC 80 11 00 00 00 00 00 00 3A [17:50:27]Write i2c OK [17:50:27]MH_I2C_Read... [17:50:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:27]Read from MH i2c: E2 [17:50:27]MH_I2C_Read... [17:50:27]Read from MH i2c: E2 17 00 [17:50:27]MH_I2C_Read... [17:50:27]Read from MH i2c: E2 17 00 14 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 87 [17:50:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:50:27]wFMCommunicate OK [17:50:27]CreateOFDProtocolMessage done [17:50:27]OFDSenderStorePacket 260830 [17:50:27]StoreOFDPacket docnum=260830 [17:50:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 B3 9C 07 01 71 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 01 00 00 F4 03 04 00 68 34 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DE FA 03 00 35 04 06 00 C5 FA B5 80 8E 77 70 DD 26 16 EF 38 FF AF [17:50:27]CheckFolder [17:50:27]dirname=/storage/ofd_packets [17:50:27]CheckFolder done [17:50:27]ProducePacketName [17:50:27]name=ofd_packets/00260830 [17:50:27]NVStorageSaveData ofd_packets/00260830 [17:50:27]File name is /storage/ofd_packets/00260830 [17:50:27]Write 301 bytes [17:50:27]NVStorageSaveData done [17:50:27]OFDSenderStorePacket done [17:50:27]KKMCreateOFDPacket done [17:50:27]NVStorageSaveData kkm_last_timestamp [17:50:27]File name is /storage/kkm_last_timestamp [17:50:27]Write 4 bytes [17:50:27]NVStorageSaveData done [17:50:27]OFD Sender: Processing packet 260830 [packets to send 192, broken 191] [17:50:27]ProducePacketName [17:50:27]name=ofd_packets/00260830 [17:50:27]OFD Sender: To server: pG, [17:50:27]CommunicateWithHost lk.salyk.kg:30040 [17:50:27]ConnectInit lk.salyk.kg [17:50:27]ExternCall_PrintAddStr [17:50:27]wPrintStart [17:50:27]Write to MH i2c: 01 00 00 15 AC C1 [17:50:27]Write i2c OK [17:50:27]MH_I2C_Read... [17:50:27]Read from MH i2c: 01 [17:50:27]MH_I2C_Read... [17:50:27]Read from MH i2c: 01 07 00 [17:50:27]MH_I2C_Read... [17:50:27]Read from MH i2c: 01 07 00 15 AC 00 00 00 00 00 FF 0F D6 [17:50:27]RasterBufferAndPrint [17:50:27]line Счет N : (1)1036382 [17:50:27]line ИНН: 02508201610067 [17:50:27]line Контрольно-Кассовый Чек [17:50:27]line ПРОДАЖА [17:50:27]line ТРК (МРК, ГНК) : 22 [17:50:27]line Товар: 2710124130 [17:50:27]line Аи-92-К-5 [17:50:27]line 2.950 * 67.80 [17:50:27]line = 200.01 [17:50:27]line НДС 12% НСП 1% [17:50:27]line > о реализуемом товаре [17:50:27]line ОКРУГЛЕНИЕ: -0.01 [17:50:27]line ИТОГО: 200.00 [17:50:27]line Внесено: 200.00 [17:50:27]line СДАЧА: 0.00 [17:50:27]line НСП 1% : 1.77 [17:50:27]line НДС 12% : 21.24 [17:50:27]line Наличными: 200.00 [17:50:27]line Безнал.: 0.00 [17:50:27]line Место: АЗС № 94 "Партнер Нефть" [17:50:27]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [17:50:27]line СНО: Общий режим [17:50:27]line Чек 388 18.08.2024 17:50 [17:50:27]line Смена: 449 ФФД: 1.0 [17:50:27]line ЗНМ: 0300000099 [17:50:27]line РНМ: 0000000000091865 [17:50:27]line Версия ККМ: 001 [17:50:27]line ФМ: 0000000000871820 [17:50:27]line ФД: 260830 [17:50:27]line ФПД: 217680577597047 [17:50:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T175032&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260830&fm=217680577597047&tin=02508201610067®Number=0000000000091865&sum=20000 [17:50:28]Connected sock=11 [17:50: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 30 0F 01 00 00 B3 9C 07 01 71 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 01 00 00 F4 03 04 00 68 34 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DE FA 03 00 35 04 06 00 C5 FA B5 80 8E 77 70 DD 26 16 EF 38 FF AF [17:50:28]written 0, free lines is 4095 [17:50: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 30 4F 00 00 00 13 F3 47 00 BD 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DE FA 03 00 F4 03 04 00 BC DD C1 66 B6 04 01 00 00 9C B0 E5 F6 F8 60 F1 04 [17:50:28]CommunicateWithHost err = 0 [17:50:28]CheckOFDResponse [17:50:28]1017 (14) - 77093643461234 [17:50:28]1041 (16) - 0000000000871820 [17:50:28]1040 (4) - 260830 [17:50:28]1012 (4) - 18.08.2024 11:40 [17:50:28]1206 (1) - 0 [17:50:28]OFD Sender: Remove packet 260830 [17:50:28]ProducePacketName [17:50:28]name=ofd_packets/00260830 [17:50:28]NVStorageDeleteData [17:50:28]Write to MH i2c: 01 00 00 40 AC EC [17:50:28]Write i2c OK [17:50:28]MH_I2C_Read... [17:50:28]Read from MH i2c: 01 [17:50:28]MH_I2C_Read... [17:50:28]Read from MH i2c: 01 07 00 [17:50:28]MH_I2C_Read... [17:50:28]Read from MH i2c: 01 07 00 40 AC 00 00 00 00 00 6C 0C 6B [17:50:28]RasterBufferAndPrint [17:50:28]line [17:50:28]line [17:50:28]line [17:50:28]line [17:50:28]line [17:50:28]written 0, free lines is 3184 [17:50:28]MH_Cut [17:50:28]Write to MH i2c: D1 01 00 47 AC 01 C5 [17:50:28]Write i2c OK [17:50:28]MH_I2C_Read... [17:50:28]Read from MH i2c: D1 [17:50:28]MH_I2C_Read... [17:50:28]Read from MH i2c: D1 01 00 [17:50:28]MH_I2C_Read... [17:50:28]Read from MH i2c: D1 01 00 47 AC 00 C4 [17:50:28]Write to MH i2c: 01 00 00 48 AC F4 [17:50:28]Write i2c OK [17:50:28]MH_I2C_Read... [17:50:28]OFD Sender: No OFD packet to send [17:50:29]*** Cut start [17:50:29]*** Purtial cut [17:50:29]*** Stage 1: CUTSNS_PIN = 1 [17:50:31]Read from MH i2c: 01 [17:50:31]MH_I2C_Read... [17:50:31]*** Stop cut motor [17:50:31]*** Cut end [17:50:31]Read from MH i2c: 01 07 00 [17:50:31]MH_I2C_Read... [17:50:31]Read from MH i2c: 01 07 00 48 AC 00 00 00 00 00 FF 0F 09 [17:50:31]process_action close_receipt done [17:50:31]requested_data is exist [17:50:31]produce_requested_data [17:50:31]requested_item fm.sn is exist - process it [17:50:31]wFMCommunicate request_size=4 [17:50:31]MH_SAM_APDU [17:50:31]CAPDU: 80 11 00 00 [17:50:31]Write to MH i2c: E2 08 00 49 AC 80 11 00 00 00 00 00 00 6F [17:50:31]Write i2c OK [17:50:31]MH_I2C_Read... [17:50:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:31]Read from MH i2c: E2 [17:50:31]MH_I2C_Read... [17:50:31]Read from MH i2c: E2 17 00 [17:50:31]MH_I2C_Read... [17:50:31]Read from MH i2c: E2 17 00 49 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 BC [17:50:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:50:31]wFMCommunicate OK [17:50:31]requested_item fd.num is exist - process it [17:50:31]SAM_PROTO_GetFieldsCounters [17:50:31]wFMCommunicate request_size=4 [17:50:31]MH_SAM_APDU [17:50:31]CAPDU: 80 13 00 00 [17:50:31]Write to MH i2c: E2 08 00 4A AC 80 13 00 00 00 00 00 00 72 [17:50:31]Write i2c OK [17:50:31]MH_I2C_Read... [17:50:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:50:31]Read from MH i2c: E2 [17:50:31]MH_I2C_Read... [17:50:31]Read from MH i2c: E2 62 00 [17:50:31]MH_I2C_Read... [17:50:31]Read from MH i2c: E2 62 00 4A AC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 DE FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 84 01 00 00 5E 04 04 00 84 01 00 00 57 04 04 00 85 01 00 00 19 04 04 00 00 00 00 00 90 00 BD [17:50: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 DE FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 84 01 00 00 5E 04 04 00 84 01 00 00 57 04 04 00 85 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:50:31]wFMCommunicate OK [17:50:31]SAM_PROTO_GetFieldsCounters done [17:50:31]requested_item shift.num is exist - process it [17:50:31]requested_item shift.opened is exist - process it [17:50:31]req_shift_opened [17:50:31]FM_GetShiftState [17:50:31]SAM_PROTO_GetShiftState [17:50:31]wFMCommunicate request_size=4 [17:50:31]MH_SAM_APDU [17:50:31]CAPDU: 80 13 01 00 [17:50:31]Write to MH i2c: E2 08 00 4B AC 80 13 01 00 00 00 00 00 74 [17:50:31]Write i2c OK [17:50:31]MH_I2C_Read... [17:50:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:31]Read from MH i2c: E2 [17:50:31]MH_I2C_Read... [17:50:31]Read from MH i2c: E2 0E 00 [17:50:31]MH_I2C_Read... [17:50:31]Read from MH i2c: E2 0E 00 4B AC 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B1 [17:50:31]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:50:31]wFMCommunicate OK [17:50:31]SAM_PROTO_GetShiftState done [17:50:31]FM_GetShiftState done [17:50:31]req_shift_opened done [17:50:31]requested_item shift.open_date is exist - process it [17:50:31]req_shift_open_date [17:50:31]req_shift_open_date done [17:50:31]produce_requested_data done [17:50:31]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260830,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [17:50:31]process_action_free close_receipt [17:50:31]json_value_free [17:50:31]json_value_free done [17:50:31]process_json_proto returns [17:50:31]Send response to host [17:50:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260830,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [17:50:31]free response buf [17:50:31]execute_script done [17:50:31]execute_script returns [17:50:31]free content buf [17:50:31]Sock 7.Close socket [17:50:31]Sock 7.Thread stoped [17:50:33]OFD Sender: No OFD packet to send [17:50:38]OFD Sender: No OFD packet to send [17:50:43]OFD Sender: No OFD packet to send [17:50:48]OFD Sender: No OFD packet to send [17:50:53]OFD Sender: No OFD packet to send [17:50:58]OFD Sender: No OFD packet to send [17:51:03]OFD Sender: No OFD packet to send [17:51:08]OFD Sender: No OFD packet to send [17:51:13]OFD Sender: No OFD packet to send [17:51:18]OFD Sender: No OFD packet to send [17:51:23]OFD Sender: No OFD packet to send [17:51:28]accept exits with 9 [17:51:28]New connection [17:51:28]New thread 3066617188 created [17:51:28]Thread 3066473828 joined [17:51:28]Waiting for new connection... [17:51:28] Sock 9.Parse request [17:51:28]Sock 9.Check first char [17:51:28]Sock 9.First char is OK [17:51:28]request: POST /json_proto HTTP/1.0 [17:51:28]Method: POST [17:51:28]URL: /json_proto [17:51:28]Method is POST - this is cgi request [17:51:28]url: /json_proto [17:51:28]query_string will be loaded in cgi processing [17:51:28]execute_cgi json_proto POST (null) [17:51:28]execute_cgi path=json_proto method=POST [17:51:28]POST find Content-Length [17:51:28]Host: 172.17.55.133:8080 [17:51:28]Content-Length: 683 [17:51:28]Content-Type: application/json [17:51:28] [17:51:28]POST finish read [17:51:28]Found Content-Length = 683 [17:51:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036383", "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" : 74.20, "quantity" : 21.570, "sum" : 1600.49, "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" ] } } [17:51:28]execute_script... [17:51: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)1036383", "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" : 74.20, "quantity" : 21.570, "sum" : 1600.49, "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" ] } } [17:51:28]POST & json_proto [17:51:28]process_json_proto [17:51:28]json parsed OK: [17:51:28]protocol is kg_v1.0 [17:51:28]action value=close_receipt [17:51:28]process_action close_receipt [17:51:28]cmd_close_receipt [17:51:28]MH_GetDate [17:51:28]Write to MH i2c: F0 00 00 4C AC E7 [17:51:28]Write i2c OK [17:51:28]MH_I2C_Read... [17:51:28]Read from MH i2c: F0 [17:51:28]MH_I2C_Read... [17:51:28]Read from MH i2c: F0 09 00 [17:51:28]MH_I2C_Read... [17:51:28]Read from MH i2c: F0 09 00 4C AC 00 A6 34 C2 66 34 48 D8 65 AB [17:51:28]GetLastDocTimeStamp 1724003432 [17:51:28]current date 1724003494 [17:51:28]FM_GetShiftState [17:51:28]SAM_PROTO_GetShiftState [17:51:28]wFMCommunicate request_size=4 [17:51:28]MH_SAM_APDU [17:51:28]CAPDU: 80 13 01 00 [17:51:28]Write to MH i2c: E2 08 00 4D AC 80 13 01 00 00 00 00 00 76 [17:51:28]Write i2c OK [17:51:28]MH_I2C_Read... [17:51:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:28]Read from MH i2c: E2 [17:51:28]MH_I2C_Read... [17:51:28]Read from MH i2c: E2 0E 00 [17:51:28]MH_I2C_Read... [17:51:28]Read from MH i2c: E2 0E 00 4D AC 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B3 [17:51:28]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:51:28]wFMCommunicate OK [17:51:28]SAM_PROTO_GetShiftState done [17:51:28]FM_GetShiftState done [17:51:28]opened in 1723940556 [17:51:28]opened+sec_in_day 1724026956 [17:51:28]quantity*price = 160049 [17:51:28]sum+1 = 160050 [17:51:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.96 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 389 18.08.2024 17:51 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260831 ФПД: 68292981125850 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T175134&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260831&fm=68292981125850&tin=02508201610067®Number=0000000000091865&sum=160000 [17:51:29]StoreToDocumentArchive [17:51:29]shift 449 fd 260831 [17:51:29]save to /storage/0449/doc_00260831 [17:51:29]save last doc name /storage/0449/doc_00260831 to /storage/kkm_last_doc_name [17:51:29]save OK [17:51:29]Clear old archive folders... [17:51:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:51:29]tlvbuf is 004A2190 [17:51:29]SAM_PROTO_ClearQueue [17:51:29]wFMCommunicate request_size=4 [17:51:29]MH_SAM_APDU [17:51:29]CAPDU: 80 09 00 00 [17:51:29]Write to MH i2c: E2 08 00 5A AC 80 09 00 00 00 00 00 00 78 [17:51:29]Write i2c OK [17:51:29]MH_I2C_Read... [17:51:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:51:29]Read from MH i2c: E2 [17:51:29]MH_I2C_Read... [17:51:29]Read from MH i2c: E2 03 00 [17:51:29]MH_I2C_Read... [17:51:29]Read from MH i2c: E2 03 00 5A AC 00 90 00 7A [17:51:29]RAPDU: 90 00 [17:51:29]wFMCommunicate OK [17:51:29]SAM_PROTO_ClearQueue done [17:51:29]KKMCreateOFDPacket [17:51:29]OFDProtocolAddRootSTLVToBuf [17:51:29]FM_MakeSignedData [17:51:29]FM_MakeSignedData [17:51:29]SAM_PROTO_SignData [17:51:29]wFMCommunicate request_size=4 [17:51:29]MH_SAM_APDU [17:51:29]CAPDU: 80 0D 01 02 [17:51:29]Write to MH i2c: E2 08 00 5B AC 80 0D 01 02 00 00 00 00 80 [17:51:29]Write i2c OK [17:51:29]MH_I2C_Read... [17:51:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:51:29]Read from MH i2c: E2 [17:51:29]MH_I2C_Read... [17:51:29]Read from MH i2c: E2 03 00 [17:51:29]MH_I2C_Read... [17:51:29]Read from MH i2c: E2 03 00 5B AC 00 90 00 7B [17:51:29]RAPDU: 90 00 [17:51:29]wFMCommunicate OK [17:51:29]wFMCommunicate request_size=255 [17:51:29]MH_SAM_APDU [17:51: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 42 54 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 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 64 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 85 01 00 00 F4 03 04 00 A6 34 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DF FA 03 00 35 04 06 00 3E [17:51:29]Write to MH i2c: E2 02 01 5C AC 80 0D 02 02 FA 00 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 42 54 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 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 64 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 85 01 00 00 F4 03 04 00 A6 34 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DF FA 03 00 35 04 06 00 3E 00 00 5B [17:51:29]Write i2c OK [17:51:29]MH_I2C_Read... [17:51:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:30]Read from MH i2c: E2 [17:51:30]MH_I2C_Read... [17:51:30]Read from MH i2c: E2 03 00 [17:51:30]MH_I2C_Read... [17:51:30]Read from MH i2c: E2 03 00 5C AC 00 90 00 7C [17:51:30]RAPDU: 90 00 [17:51:30]wFMCommunicate OK [17:51:30]wFMCommunicate request_size=10 [17:51:30]MH_SAM_APDU [17:51:30]CAPDU: 80 0D 02 02 05 1C B2 E1 72 DA [17:51:30]Write to MH i2c: E2 0D 00 5D AC 80 0D 02 02 05 00 1C B2 E1 72 DA 00 00 88 [17:51:30]Write i2c OK [17:51:30]MH_I2C_Read... [17:51:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:30]Read from MH i2c: E2 [17:51:30]MH_I2C_Read... [17:51:30]Read from MH i2c: E2 03 00 [17:51:30]MH_I2C_Read... [17:51:30]Read from MH i2c: E2 03 00 5D AC 00 90 00 7D [17:51:30]RAPDU: 90 00 [17:51:30]wFMCommunicate OK [17:51:30]wFMCommunicate request_size=4 [17:51:30]MH_SAM_APDU [17:51:30]CAPDU: 80 0D 03 02 [17:51:30]Write to MH i2c: E2 08 00 5E AC 80 0D 03 02 00 00 00 00 85 [17:51:30]Write i2c OK [17:51:30]MH_I2C_Read... [17:51:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:51:30]Read from MH i2c: E2 [17:51:30]MH_I2C_Read... [17:51:30]Read from MH i2c: E2 0B 00 [17:51:30]MH_I2C_Read... [17:51:30]Read from MH i2c: E2 0B 00 5E AC 00 64 C6 7F 45 59 F5 AC CD 90 00 3B [17:51:30]RAPDU: 64 C6 7F 45 59 F5 AC CD 90 00 [17:51:30]wFMCommunicate OK [17:51:30]SAM_PROTO_SignData done [17:51:30]FM_MakeSignedData done [17:51:30]CreateOFDProtocolMessage [17:51:30]wFMCommunicate request_size=4 [17:51:30]MH_SAM_APDU [17:51:30]CAPDU: 80 11 00 00 [17:51:30]Write to MH i2c: E2 08 00 5F AC 80 11 00 00 00 00 00 00 85 [17:51:30]Write i2c OK [17:51:30]MH_I2C_Read... [17:51:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:30]Read from MH i2c: E2 [17:51:30]MH_I2C_Read... [17:51:30]Read from MH i2c: E2 17 00 [17:51:30]MH_I2C_Read... [17:51:30]Read from MH i2c: E2 17 00 5F AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D2 [17:51:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:51:30]wFMCommunicate OK [17:51:30]CreateOFDProtocolMessage done [17:51:30]OFDSenderStorePacket 260831 [17:51:30]StoreOFDPacket docnum=260831 [17:51:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 64 74 07 01 3B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 42 54 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 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 64 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 85 01 00 00 F4 03 04 00 A6 34 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DF FA 03 00 35 04 06 00 3E 1C B2 E1 72 DA 64 C6 7F 45 59 F5 AC CD [17:51:30]CheckFolder [17:51:30]dirname=/storage/ofd_packets [17:51:30]CheckFolder done [17:51:30]ProducePacketName [17:51:30]name=ofd_packets/00260831 [17:51:30]NVStorageSaveData ofd_packets/00260831 [17:51:30]File name is /storage/ofd_packets/00260831 [17:51:30]Write 301 bytes [17:51:30]NVStorageSaveData done [17:51:30]OFDSenderStorePacket done [17:51:30]KKMCreateOFDPacket done [17:51:30]NVStorageSaveData kkm_last_timestamp [17:51:30]File name is /storage/kkm_last_timestamp [17:51:30]Write 4 bytes [17:51:30]NVStorageSaveData done [17:51:30]ExternCall_PrintAddStr [17:51:30]wPrintStart [17:51:30]Write to MH i2c: 01 00 00 60 AC 0C [17:51:30]OFD Sender: Processing packet 260831 [packets to send 192, broken 191] [17:51:30]ProducePacketName [17:51:30]name=ofd_packets/00260831 [17:51:30]OFD Sender: To server: pG, [17:51:30]CommunicateWithHost lk.salyk.kg:30040 [17:51:30]ConnectInit lk.salyk.kg [17:51:30]Write i2c OK [17:51:30]MH_I2C_Read... [17:51:30]Read from MH i2c: 01 [17:51:30]MH_I2C_Read... [17:51:30]Read from MH i2c: 01 07 00 [17:51:30]MH_I2C_Read... [17:51:30]Read from MH i2c: 01 07 00 60 AC 00 00 00 00 00 FF 0F 21 [17:51:30]RasterBufferAndPrint [17:51:30]line Счет N : (1)1036383 [17:51:30]line ИНН: 02508201610067 [17:51:30]line Контрольно-Кассовый Чек [17:51:30]line ПРОДАЖА [17:51:30]line ТРК (МРК, ГНК) : 13 [17:51:30]line Товар: 2710124500 [17:51:30]line Аи-95-К-5 [17:51:30]line 21.570 * 74.20 [17:51:30]line = 1600.49 [17:51:30]line НДС 12% НСП 1% [17:51:30]line > о реализуемом товаре [17:51:30]line ОКРУГЛЕНИЕ: -0.49 [17:51:30]line ИТОГО: 1600.00 [17:51:30]line Внесено: 1600.00 [17:51:30]line СДАЧА: 0.00 [17:51:30]line НСП 1% : 14.16 [17:51:30]line НДС 12% : 169.96 [17:51:30]line Наличными: 1600.00 [17:51:30]line Безнал.: 0.00 [17:51:30]line Место: АЗС № 94 "Партнер Нефть" [17:51:30]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [17:51:30]line СНО: Общий режим [17:51:30]line Чек 389 18.08.2024 17:51 [17:51:30]line Смена: 449 ФФД: 1.0 [17:51:30]line ЗНМ: 0300000099 [17:51:30]line РНМ: 0000000000091865 [17:51:30]line Версия ККМ: 001 [17:51:30]line ФМ: 0000000000871820 [17:51:30]line ФД: 260831 [17:51:30]line ФПД: 68292981125850 [17:51:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T175134&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260831&fm=68292981125850&tin=02508201610067®Number=0000000000091865&sum=160000 [17:51:30]written 0, free lines is 4095 [17:51:30]Connected sock=10 [17:51: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 30 0F 01 00 00 64 74 07 01 3B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 42 54 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 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 64 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 85 01 00 00 F4 03 04 00 A6 34 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 DF FA 03 00 35 04 06 00 3E 1C B2 E1 72 DA 64 C6 7F 45 59 F5 AC CD [17:51: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 30 4F 00 00 00 70 00 47 00 E9 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 30 10 04 04 00 DF FA 03 00 F4 03 04 00 FA DD C1 66 B6 04 01 00 00 5B DA B5 E4 19 9F 06 F8 [17:51:30]CommunicateWithHost err = 0 [17:51:30]CheckOFDResponse [17:51:30]1017 (14) - 77093643461234 [17:51:30]1041 (16) - 0000000000871820 [17:51:30]1040 (4) - 260831 [17:51:30]1012 (4) - 18.08.2024 11:41 [17:51:30]1206 (1) - 0 [17:51:30]OFD Sender: Remove packet 260831 [17:51:30]ProducePacketName [17:51:30]name=ofd_packets/00260831 [17:51:30]NVStorageDeleteData [17:51:30]Write to MH i2c: 01 00 00 8B AC 37 [17:51:30]Write i2c OK [17:51:30]MH_I2C_Read... [17:51:30]Read from MH i2c: 01 [17:51:30]MH_I2C_Read... [17:51:30]Read from MH i2c: 01 07 00 [17:51:30]MH_I2C_Read... [17:51:30]Read from MH i2c: 01 07 00 8B AC 00 00 00 00 00 7C 0C C6 [17:51:30]RasterBufferAndPrint [17:51:30]line [17:51:30]line [17:51:30]line [17:51:30]line [17:51:30]line [17:51:30]written 0, free lines is 3199 [17:51:30]MH_Cut [17:51:30]Write to MH i2c: D1 01 00 92 AC 01 10 [17:51:30]Write i2c OK [17:51:30]MH_I2C_Read... [17:51:30]Read from MH i2c: D1 [17:51:30]MH_I2C_Read... [17:51:30]Read from MH i2c: D1 01 00 [17:51:30]MH_I2C_Read... [17:51:30]Read from MH i2c: D1 01 00 92 AC 00 0F [17:51:30]Write to MH i2c: 01 00 00 93 AC 3F [17:51:30]Write i2c OK [17:51:30]MH_I2C_Read... [17:51:31]OFD Sender: No OFD packet to send [17:51:31]*** Cut start [17:51:31]*** Purtial cut [17:51:31]*** Stage 1: CUTSNS_PIN = 1 [17:51:33]Read from MH i2c: 01 [17:51:33]MH_I2C_Read... [17:51:33]*** Stop cut motor [17:51:33]*** Cut end [17:51:33]Read from MH i2c: 01 07 00 [17:51:33]MH_I2C_Read... [17:51:33]Read from MH i2c: 01 07 00 93 AC 00 00 00 00 00 FF 0F 54 [17:51:33]process_action close_receipt done [17:51:33]requested_data is exist [17:51:33]produce_requested_data [17:51:33]requested_item fm.sn is exist - process it [17:51:33]wFMCommunicate request_size=4 [17:51:33]MH_SAM_APDU [17:51:33]CAPDU: 80 11 00 00 [17:51:33]Write to MH i2c: E2 08 00 94 AC 80 11 00 00 00 00 00 00 BA [17:51:33]Write i2c OK [17:51:33]MH_I2C_Read... [17:51:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:34]Read from MH i2c: E2 [17:51:34]MH_I2C_Read... [17:51:34]Read from MH i2c: E2 17 00 [17:51:34]MH_I2C_Read... [17:51:34]Read from MH i2c: E2 17 00 94 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 07 [17:51:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:51:34]wFMCommunicate OK [17:51:34]requested_item fd.num is exist - process it [17:51:34]SAM_PROTO_GetFieldsCounters [17:51:34]wFMCommunicate request_size=4 [17:51:34]MH_SAM_APDU [17:51:34]CAPDU: 80 13 00 00 [17:51:34]Write to MH i2c: E2 08 00 95 AC 80 13 00 00 00 00 00 00 BD [17:51:34]Write i2c OK [17:51:34]MH_I2C_Read... [17:51:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:34]Read from MH i2c: E2 [17:51:34]MH_I2C_Read... [17:51:34]Read from MH i2c: E2 62 00 [17:51:34]MH_I2C_Read... [17:51:34]Read from MH i2c: E2 62 00 95 AC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 DF FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 85 01 00 00 5E 04 04 00 85 01 00 00 57 04 04 00 86 01 00 00 19 04 04 00 00 00 00 00 90 00 0C [17:51: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 DF FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 85 01 00 00 5E 04 04 00 85 01 00 00 57 04 04 00 86 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:51:34]wFMCommunicate OK [17:51:34]SAM_PROTO_GetFieldsCounters done [17:51:34]requested_item shift.num is exist - process it [17:51:34]requested_item shift.opened is exist - process it [17:51:34]req_shift_opened [17:51:34]FM_GetShiftState [17:51:34]SAM_PROTO_GetShiftState [17:51:34]wFMCommunicate request_size=4 [17:51:34]MH_SAM_APDU [17:51:34]CAPDU: 80 13 01 00 [17:51:34]Write to MH i2c: E2 08 00 96 AC 80 13 01 00 00 00 00 00 BF [17:51:34]Write i2c OK [17:51:34]MH_I2C_Read... [17:51:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:34]Read from MH i2c: E2 [17:51:34]MH_I2C_Read... [17:51:34]Read from MH i2c: E2 0E 00 [17:51:34]MH_I2C_Read... [17:51:34]Read from MH i2c: E2 0E 00 96 AC 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 FC [17:51:34]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:51:34]wFMCommunicate OK [17:51:34]SAM_PROTO_GetShiftState done [17:51:34]FM_GetShiftState done [17:51:34]req_shift_opened done [17:51:34]requested_item shift.open_date is exist - process it [17:51:34]req_shift_open_date [17:51:34]req_shift_open_date done [17:51:34]produce_requested_data done [17:51:34]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260831,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [17:51:34]process_action_free close_receipt [17:51:34]json_value_free [17:51:34]json_value_free done [17:51:34]process_json_proto returns [17:51:34]Send response to host [17:51:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260831,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [17:51:34]free response buf [17:51:34]execute_script done [17:51:34]execute_script returns [17:51:34]free content buf [17:51:34]Sock 9.Close socket [17:51:34]Sock 9.Thread stoped [17:51:36]OFD Sender: No OFD packet to send [17:51:41]OFD Sender: No OFD packet to send [17:51:46]OFD Sender: No OFD packet to send [17:51:51]OFD Sender: No OFD packet to send [17:51:56]OFD Sender: No OFD packet to send [17:52:01]OFD Sender: No OFD packet to send [17:52:06]OFD Sender: No OFD packet to send [17:52:11]OFD Sender: No OFD packet to send [17:52:16]OFD Sender: No OFD packet to send [17:52:21]OFD Sender: No OFD packet to send [17:52:26]OFD Sender: No OFD packet to send [17:52:31]OFD Sender: No OFD packet to send [17:52:36]OFD Sender: No OFD packet to send [17:52:41]OFD Sender: No OFD packet to send [17:52:46]OFD Sender: No OFD packet to send [17:52:49]accept exits with 7 [17:52:49]New connection [17:52:49]New thread 3066473828 created [17:52:49]Thread 3066617188 joined [17:52:49]Waiting for new connection... [17:52:49] Sock 7.Parse request [17:52:49]Sock 7.Check first char [17:52:49]Sock 7.First char is OK [17:52:49]request: POST /json_proto HTTP/1.0 [17:52:49]Method: POST [17:52:49]URL: /json_proto [17:52:49]Method is POST - this is cgi request [17:52:49]url: /json_proto [17:52:49]query_string will be loaded in cgi processing [17:52:49]execute_cgi json_proto POST (null) [17:52:49]execute_cgi path=json_proto method=POST [17:52:49]POST find Content-Length [17:52:49]Host: 172.17.55.133:8080 [17:52:49]Content-Length: 683 [17:52:49]Content-Type: application/json [17:52:49] [17:52:49]POST finish read [17:52:49]Found Content-Length = 683 [17:52:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036384", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:49]execute_script... [17:52: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)1036384", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:49]POST & json_proto [17:52:49]process_json_proto [17:52:49]json parsed OK: [17:52:49]protocol is kg_v1.0 [17:52:49]action value=close_receipt [17:52:49]process_action close_receipt [17:52:49]cmd_close_receipt [17:52:49]MH_GetDate [17:52:49]Write to MH i2c: F0 00 00 97 AC 32 [17:52:49]Write i2c OK [17:52:49]MH_I2C_Read... [17:52:49]Read from MH i2c: F0 [17:52:49]MH_I2C_Read... [17:52:49]Read from MH i2c: F0 09 00 [17:52:49]MH_I2C_Read... [17:52:49]Read from MH i2c: F0 09 00 97 AC 00 F7 34 C2 66 34 48 D8 65 47 [17:52:49]GetLastDocTimeStamp 1724003494 [17:52:49]current date 1724003575 [17:52:49]FM_GetShiftState [17:52:49]SAM_PROTO_GetShiftState [17:52:49]wFMCommunicate request_size=4 [17:52:49]MH_SAM_APDU [17:52:49]CAPDU: 80 13 01 00 [17:52:49]Write to MH i2c: E2 08 00 98 AC 80 13 01 00 00 00 00 00 C1 [17:52:49]Write i2c OK [17:52:49]MH_I2C_Read... [17:52:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:49]Read from MH i2c: E2 [17:52:49]MH_I2C_Read... [17:52:49]Read from MH i2c: E2 0E 00 [17:52:49]MH_I2C_Read... [17:52:49]Read from MH i2c: E2 0E 00 98 AC 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 FE [17:52:49]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:52:49]wFMCommunicate OK [17:52:49]SAM_PROTO_GetShiftState done [17:52:49]FM_GetShiftState done [17:52:49]opened in 1723940556 [17:52:49]opened+sec_in_day 1724026956 [17:52:49]quantity*price = 100021 [17:52:49]sum+1 = 100023 [17:52:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 390 18.08.2024 17:52 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260832 ФПД: 106098569329113 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T175255&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260832&fm=106098569329113&tin=02508201610067®Number=0000000000091865&sum=100000 [17:52:50]StoreToDocumentArchive [17:52:50]shift 449 fd 260832 [17:52:50]save to /storage/0449/doc_00260832 [17:52:50]save last doc name /storage/0449/doc_00260832 to /storage/kkm_last_doc_name [17:52:50]save OK [17:52:50]Clear old archive folders... [17:52:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:52:50]tlvbuf is 005403C0 [17:52:50]SAM_PROTO_ClearQueue [17:52:50]wFMCommunicate request_size=4 [17:52:50]MH_SAM_APDU [17:52:50]CAPDU: 80 09 00 00 [17:52:50]Write to MH i2c: E2 08 00 A5 AC 80 09 00 00 00 00 00 00 C3 [17:52:50]Write i2c OK [17:52:50]MH_I2C_Read... [17:52:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:52:50]Read from MH i2c: E2 [17:52:50]MH_I2C_Read... [17:52:50]Read from MH i2c: E2 03 00 [17:52:50]MH_I2C_Read... [17:52:50]Read from MH i2c: E2 03 00 A5 AC 00 90 00 C5 [17:52:50]RAPDU: 90 00 [17:52:50]wFMCommunicate OK [17:52:50]SAM_PROTO_ClearQueue done [17:52:50]KKMCreateOFDPacket [17:52:50]OFDProtocolAddRootSTLVToBuf [17:52:50]FM_MakeSignedData [17:52:50]FM_MakeSignedData [17:52:50]SAM_PROTO_SignData [17:52:50]wFMCommunicate request_size=4 [17:52:50]MH_SAM_APDU [17:52:50]CAPDU: 80 0D 01 02 [17:52:50]Write to MH i2c: E2 08 00 A6 AC 80 0D 01 02 00 00 00 00 CB [17:52:50]Write i2c OK [17:52:50]MH_I2C_Read... [17:52:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:52:50]Read from MH i2c: E2 [17:52:50]MH_I2C_Read... [17:52:50]Read from MH i2c: E2 03 00 [17:52:50]MH_I2C_Read... [17:52:50]Read from MH i2c: E2 03 00 A6 AC 00 90 00 C6 [17:52:50]RAPDU: 90 00 [17:52:50]wFMCommunicate OK [17:52:50]wFMCommunicate request_size=255 [17:52:50]MH_SAM_APDU [17:52: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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 01 00 00 F4 03 04 00 F7 34 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E0 FA 03 00 35 04 06 00 60 [17:52:50]Write to MH i2c: E2 02 01 A7 AC 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 01 00 00 F4 03 04 00 F7 34 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E0 FA 03 00 35 04 06 00 60 00 00 4E [17:52:50]Write i2c OK [17:52:50]MH_I2C_Read... [17:52:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:50]Read from MH i2c: E2 [17:52:50]MH_I2C_Read... [17:52:50]Read from MH i2c: E2 03 00 [17:52:50]MH_I2C_Read... [17:52:50]Read from MH i2c: E2 03 00 A7 AC 00 90 00 C7 [17:52:50]RAPDU: 90 00 [17:52:50]wFMCommunicate OK [17:52:50]wFMCommunicate request_size=10 [17:52:50]MH_SAM_APDU [17:52:50]CAPDU: 80 0D 02 02 05 7E FF 89 39 D9 [17:52:50]Write to MH i2c: E2 0D 00 A8 AC 80 0D 02 02 05 00 7E FF 89 39 D9 00 00 F0 [17:52:50]Write i2c OK [17:52:50]MH_I2C_Read... [17:52:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:50]Read from MH i2c: E2 [17:52:50]MH_I2C_Read... [17:52:50]Read from MH i2c: E2 03 00 [17:52:50]MH_I2C_Read... [17:52:50]Read from MH i2c: E2 03 00 A8 AC 00 90 00 C8 [17:52:50]RAPDU: 90 00 [17:52:50]wFMCommunicate OK [17:52:50]wFMCommunicate request_size=4 [17:52:50]MH_SAM_APDU [17:52:50]CAPDU: 80 0D 03 02 [17:52:50]Write to MH i2c: E2 08 00 A9 AC 80 0D 03 02 00 00 00 00 D0 [17:52:50]Write i2c OK [17:52:50]MH_I2C_Read... [17:52:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:52:50]Read from MH i2c: E2 [17:52:50]MH_I2C_Read... [17:52:50]Read from MH i2c: E2 0B 00 [17:52:50]MH_I2C_Read... [17:52:50]Read from MH i2c: E2 0B 00 A9 AC 00 07 EF 65 B1 9F B7 3A A7 90 00 14 [17:52:50]RAPDU: 07 EF 65 B1 9F B7 3A A7 90 00 [17:52:50]wFMCommunicate OK [17:52:50]SAM_PROTO_SignData done [17:52:50]FM_MakeSignedData done [17:52:50]CreateOFDProtocolMessage [17:52:50]wFMCommunicate request_size=4 [17:52:50]MH_SAM_APDU [17:52:50]CAPDU: 80 11 00 00 [17:52:50]Write to MH i2c: E2 08 00 AA AC 80 11 00 00 00 00 00 00 D0 [17:52:50]Write i2c OK [17:52:50]MH_I2C_Read... [17:52:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:50]Read from MH i2c: E2 [17:52:50]MH_I2C_Read... [17:52:50]Read from MH i2c: E2 17 00 [17:52:50]MH_I2C_Read... [17:52:50]Read from MH i2c: E2 17 00 AA AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 1D [17:52:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:52:50]wFMCommunicate OK [17:52:50]CreateOFDProtocolMessage done [17:52:50]OFDSenderStorePacket 260832 [17:52:50]StoreOFDPacket docnum=260832 [17:52:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 75 53 07 01 23 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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 01 00 00 F4 03 04 00 F7 34 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E0 FA 03 00 35 04 06 00 60 7E FF 89 39 D9 07 EF 65 B1 9F B7 3A A7 [17:52:50]CheckFolder [17:52:50]dirname=/storage/ofd_packets [17:52:50]CheckFolder done [17:52:50]ProducePacketName [17:52:50]name=ofd_packets/00260832 [17:52:50]NVStorageSaveData ofd_packets/00260832 [17:52:50]File name is /storage/ofd_packets/00260832 [17:52:50]Write 301 bytes [17:52:50]NVStorageSaveData done [17:52:50]OFDSenderStorePacket done [17:52:50]KKMCreateOFDPacket done [17:52:50]NVStorageSaveData kkm_last_timestamp [17:52:50]File name is /storage/kkm_last_timestamp [17:52:50]Write 4 bytes [17:52:50]NVStorageSaveData done [17:52:50]ExternCall_PrintAddStr [17:52:50]wPrintStart [17:52:50]Write to MH i2c: 01 00 00 AB AC 57 [17:52:50]Write i2c OK [17:52:50]MH_I2C_Read... [17:52:50]Read from MH i2c: 01 [17:52:50]MH_I2C_Read... [17:52:50]Read from MH i2c: 01 07 00 [17:52:50]MH_I2C_Read... [17:52:50]Read from MH i2c: 01 07 00 AB AC 00 00 00 00 00 FF 0F 6C [17:52:50]RasterBufferAndPrint [17:52:50]line Счет N : (1)1036384 [17:52:50]line ИНН: 02508201610067 [17:52:50]line Контрольно-Кассовый Чек [17:52:50]line ПРОДАЖА [17:52:50]line ТРК (МРК, ГНК) : 23 [17:52:50]line Товар: 2710124500 [17:52:50]line Аи-95-К-5 [17:52:50]line 13.480 * 74.20 [17:52:50]line = 1000.22 [17:52:50]line НДС 12% НСП 1% [17:52:50]line > о реализуемом товаре [17:52:50]line ОКРУГЛЕНИЕ: -0.22 [17:52:50]line ИТОГО: 1000.00 [17:52:50]line Внесено: 1000.00 [17:52:50]line СДАЧА: 0.00 [17:52:50]line НСП 1% : 8.85 [17:52:50]line НДС 12% : 106.22 [17:52:50]line Наличными: 1000.00 [17:52:50]line Безнал.: 0.00 [17:52:50]line Место: АЗС № 94 "Партнер Нефть" [17:52:50]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [17:52:50]line СНО: Общий режим [17:52:50]line Чек 390 18.08.2024 17:52 [17:52:50]line Смена: 449 ФФД: 1.0 [17:52:50]line ЗНМ: 0300000099 [17:52:50]line РНМ: 0000000000091865 [17:52:50]line Версия ККМ: 001 [17:52:50]line ФМ: 0000000000871820 [17:52:50]line ФД: 260832 [17:52:50]line ФПД: 106098569329113 [17:52:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T175255&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260832&fm=106098569329113&tin=02508201610067®Number=0000000000091865&sum=100000 [17:52:51]written 0, free lines is 4095 [17:52:51]OFD Sender: Processing packet 260832 [packets to send 192, broken 191] [17:52:51]ProducePacketName [17:52:51]name=ofd_packets/00260832 [17:52:51]OFD Sender: To server: pG, [17:52:51]CommunicateWithHost lk.salyk.kg:30040 [17:52:51]ConnectInit lk.salyk.kg [17:52:51]Connected sock=10 [17:52: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 30 0F 01 00 00 75 53 07 01 23 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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 01 00 00 F4 03 04 00 F7 34 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E0 FA 03 00 35 04 06 00 60 7E FF 89 39 D9 07 EF 65 B1 9F B7 3A A7 [17:52: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 30 4F 00 00 00 80 36 47 00 2D 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 E0 FA 03 00 F4 03 04 00 4B DE C1 66 B6 04 01 00 00 C7 CF E0 5A 04 AE 7F 59 [17:52:51]CommunicateWithHost err = 0 [17:52:51]CheckOFDResponse [17:52:51]1017 (14) - 77093643461234 [17:52:51]1041 (16) - 0000000000871820 [17:52:51]1040 (4) - 260832 [17:52:51]1012 (4) - 18.08.2024 11:43 [17:52:51]1206 (1) - 0 [17:52:51]OFD Sender: Remove packet 260832 [17:52:51]ProducePacketName [17:52:51]name=ofd_packets/00260832 [17:52:51]NVStorageDeleteData [17:52:51]Write to MH i2c: 01 00 00 D6 AC 82 [17:52:51]Write i2c OK [17:52:51]MH_I2C_Read... [17:52:51]Read from MH i2c: 01 [17:52:51]MH_I2C_Read... [17:52:51]Read from MH i2c: 01 07 00 [17:52:51]MH_I2C_Read... [17:52:51]Read from MH i2c: 01 07 00 D6 AC 00 00 00 00 00 6F 0C 04 [17:52:51]RasterBufferAndPrint [17:52:51]line [17:52:51]line [17:52:51]line [17:52:51]line [17:52:51]line [17:52:51]written 0, free lines is 3187 [17:52:51]MH_Cut [17:52:51]Write to MH i2c: D1 01 00 DD AC 01 5B [17:52:51]Write i2c OK [17:52:51]MH_I2C_Read... [17:52:51]Read from MH i2c: D1 [17:52:51]MH_I2C_Read... [17:52:51]Read from MH i2c: D1 01 00 [17:52:51]MH_I2C_Read... [17:52:51]Read from MH i2c: D1 01 00 DD AC 00 5A [17:52:51]Write to MH i2c: 01 00 00 DE AC 8A [17:52:51]Write i2c OK [17:52:51]MH_I2C_Read... [17:52:52]OFD Sender: No OFD packet to send [17:52:52]*** Cut start [17:52:52]*** Purtial cut [17:52:52]*** Stage 1: CUTSNS_PIN = 1 [17:52:54]Read from MH i2c: 01 [17:52:54]MH_I2C_Read... [17:52:54]*** Stop cut motor [17:52:54]*** Cut end [17:52:54]Read from MH i2c: 01 07 00 [17:52:54]MH_I2C_Read... [17:52:54]Read from MH i2c: 01 07 00 DE AC 00 00 00 00 00 FF 0F 9F [17:52:54]process_action close_receipt done [17:52:54]requested_data is exist [17:52:54]produce_requested_data [17:52:54]requested_item fm.sn is exist - process it [17:52:54]wFMCommunicate request_size=4 [17:52:54]MH_SAM_APDU [17:52:54]CAPDU: 80 11 00 00 [17:52:54]Write to MH i2c: E2 08 00 DF AC 80 11 00 00 00 00 00 00 05 [17:52:54]Write i2c OK [17:52:54]MH_I2C_Read... [17:52:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:54]Read from MH i2c: E2 [17:52:54]MH_I2C_Read... [17:52:54]Read from MH i2c: E2 17 00 [17:52:54]MH_I2C_Read... [17:52:54]Read from MH i2c: E2 17 00 DF AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 52 [17:52:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:52:54]wFMCommunicate OK [17:52:54]requested_item fd.num is exist - process it [17:52:54]SAM_PROTO_GetFieldsCounters [17:52:54]wFMCommunicate request_size=4 [17:52:54]MH_SAM_APDU [17:52:54]CAPDU: 80 13 00 00 [17:52:54]Write to MH i2c: E2 08 00 E0 AC 80 13 00 00 00 00 00 00 08 [17:52:54]Write i2c OK [17:52:54]MH_I2C_Read... [17:52:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:52:55]Read from MH i2c: E2 [17:52:55]MH_I2C_Read... [17:52:55]Read from MH i2c: E2 62 00 [17:52:55]MH_I2C_Read... [17:52:55]Read from MH i2c: E2 62 00 E0 AC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E0 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 86 01 00 00 5E 04 04 00 86 01 00 00 57 04 04 00 87 01 00 00 19 04 04 00 00 00 00 00 90 00 5B [17:52: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E0 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 86 01 00 00 5E 04 04 00 86 01 00 00 57 04 04 00 87 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:52:55]wFMCommunicate OK [17:52:55]SAM_PROTO_GetFieldsCounters done [17:52:55]requested_item shift.num is exist - process it [17:52:55]requested_item shift.opened is exist - process it [17:52:55]req_shift_opened [17:52:55]FM_GetShiftState [17:52:55]SAM_PROTO_GetShiftState [17:52:55]wFMCommunicate request_size=4 [17:52:55]MH_SAM_APDU [17:52:55]CAPDU: 80 13 01 00 [17:52:55]Write to MH i2c: E2 08 00 E1 AC 80 13 01 00 00 00 00 00 0A [17:52:55]Write i2c OK [17:52:55]MH_I2C_Read... [17:52:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:55]Read from MH i2c: E2 [17:52:55]MH_I2C_Read... [17:52:55]Read from MH i2c: E2 0E 00 [17:52:55]MH_I2C_Read... [17:52:55]Read from MH i2c: E2 0E 00 E1 AC 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 47 [17:52:55]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:52:55]wFMCommunicate OK [17:52:55]SAM_PROTO_GetShiftState done [17:52:55]FM_GetShiftState done [17:52:55]req_shift_opened done [17:52:55]requested_item shift.open_date is exist - process it [17:52:55]req_shift_open_date [17:52:55]req_shift_open_date done [17:52:55]produce_requested_data done [17:52:55]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260832,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [17:52:55]process_action_free close_receipt [17:52:55]json_value_free [17:52:55]json_value_free done [17:52:55]process_json_proto returns [17:52:55]Send response to host [17:52:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260832,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [17:52:55]free response buf [17:52:55]execute_script done [17:52:55]execute_script returns [17:52:55]free content buf [17:52:55]Sock 7.Close socket [17:52:55]Sock 7.Thread stoped [17:52:57]OFD Sender: No OFD packet to send [17:53:02]OFD Sender: No OFD packet to send [17:53:07]OFD Sender: No OFD packet to send [17:53:12]OFD Sender: No OFD packet to send [17:53:17]OFD Sender: No OFD packet to send [17:53:22]OFD Sender: No OFD packet to send [17:53:27]OFD Sender: No OFD packet to send [17:53:32]OFD Sender: No OFD packet to send [17:53:37]OFD Sender: No OFD packet to send [17:53:42]OFD Sender: No OFD packet to send [17:53:47]OFD Sender: No OFD packet to send [17:53:52]OFD Sender: No OFD packet to send [17:53:57]OFD Sender: No OFD packet to send [17:54:02]OFD Sender: No OFD packet to send [17:54:07]OFD Sender: No OFD packet to send [17:54:12]OFD Sender: No OFD packet to send [17:54:17]OFD Sender: No OFD packet to send [17:54:18]accept exits with 9 [17:54:18]New connection [17:54:18]New thread 3066617188 created [17:54:18]Thread 3066473828 joined [17:54:18]Waiting for new connection... [17:54:18] Sock 9.Parse request [17:54:18]Sock 9.Check first char [17:54:18]Sock 9.First char is OK [17:54:18]request: POST /json_proto HTTP/1.0 [17:54:18]Method: POST [17:54:18]URL: /json_proto [17:54:18]Method is POST - this is cgi request [17:54:18]url: /json_proto [17:54:18]query_string will be loaded in cgi processing [17:54:18]execute_cgi json_proto POST (null) [17:54:18]execute_cgi path=json_proto method=POST [17:54:18]POST find Content-Length [17:54:18]Host: 172.17.55.133:8080 [17:54:18]Content-Length: 760 [17:54:18]Content-Type: application/json [17:54:18] [17:54:18]POST finish read [17:54:18]Found Content-Length = 760 [17:54:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30020533", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:18]execute_script... [17:54: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)1036385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30020533", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:18]POST & json_proto [17:54:18]process_json_proto [17:54:18]json parsed OK: [17:54:18]protocol is kg_v1.0 [17:54:18]action value=close_receipt [17:54:18]process_action close_receipt [17:54:18]cmd_close_receipt [17:54:18]MH_GetDate [17:54:18]Write to MH i2c: F0 00 00 E2 AC 7D [17:54:18]Write i2c OK [17:54:18]MH_I2C_Read... [17:54:18]Read from MH i2c: F0 [17:54:18]MH_I2C_Read... [17:54:18]Read from MH i2c: F0 09 00 [17:54:18]MH_I2C_Read... [17:54:18]Read from MH i2c: F0 09 00 E2 AC 00 50 35 C2 66 34 48 D8 65 EC [17:54:18]GetLastDocTimeStamp 1724003575 [17:54:18]current date 1724003664 [17:54:18]FM_GetShiftState [17:54:18]SAM_PROTO_GetShiftState [17:54:18]wFMCommunicate request_size=4 [17:54:18]MH_SAM_APDU [17:54:18]CAPDU: 80 13 01 00 [17:54:18]Write to MH i2c: E2 08 00 E3 AC 80 13 01 00 00 00 00 00 0C [17:54:18]Write i2c OK [17:54:18]MH_I2C_Read... [17:54:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:18]Read from MH i2c: E2 [17:54:18]MH_I2C_Read... [17:54:18]Read from MH i2c: E2 0E 00 [17:54:18]MH_I2C_Read... [17:54:18]Read from MH i2c: E2 0E 00 E3 AC 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 49 [17:54:18]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:54:18]wFMCommunicate OK [17:54:18]SAM_PROTO_GetShiftState done [17:54:18]FM_GetShiftState done [17:54:18]opened in 1723940556 [17:54:18]opened+sec_in_day 1724026956 [17:54:18]quantity*price = 0 [17:54:18]sum+1 = 1 [17:54:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 391 18.08.2024 17:54 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: ТК ГПНА Online 30020533 ФМ: 0000000000871820 ФД: 260833 ФПД: 122406056842175 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T175425&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260833&fm=122406056842175&tin=02508201610067®Number=0000000000091865&sum=0 [17:54:20]StoreToDocumentArchive [17:54:20]shift 449 fd 260833 [17:54:20]save to /storage/0449/doc_00260833 [17:54:20]save last doc name /storage/0449/doc_00260833 to /storage/kkm_last_doc_name [17:54:20]save OK [17:54:20]Clear old archive folders... [17:54:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:54:20]tlvbuf is 003A0770 [17:54:20]SAM_PROTO_ClearQueue [17:54:20]wFMCommunicate request_size=4 [17:54:20]MH_SAM_APDU [17:54:20]CAPDU: 80 09 00 00 [17:54:20]Write to MH i2c: E2 08 00 F0 AC 80 09 00 00 00 00 00 00 0E [17:54:20]Write i2c OK [17:54:20]MH_I2C_Read... [17:54:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:54:20]Read from MH i2c: E2 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 03 00 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 03 00 F0 AC 00 90 00 10 [17:54:20]RAPDU: 90 00 [17:54:20]wFMCommunicate OK [17:54:20]SAM_PROTO_ClearQueue done [17:54:20]KKMCreateOFDPacket [17:54:20]OFDProtocolAddRootSTLVToBuf [17:54:20]FM_MakeSignedData [17:54:20]FM_MakeSignedData [17:54:20]SAM_PROTO_SignData [17:54:20]wFMCommunicate request_size=4 [17:54:20]MH_SAM_APDU [17:54:20]CAPDU: 80 0D 01 02 [17:54:20]Write to MH i2c: E2 08 00 F1 AC 80 0D 01 02 00 00 00 00 16 [17:54:20]Write i2c OK [17:54:20]MH_I2C_Read... [17:54:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:54:20]Read from MH i2c: E2 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 03 00 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 03 00 F1 AC 00 90 00 11 [17:54:20]RAPDU: 90 00 [17:54:20]wFMCommunicate OK [17:54:20]wFMCommunicate request_size=255 [17:54:20]MH_SAM_APDU [17:54:20]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 01 00 00 F4 03 04 00 51 35 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E1 FA 03 00 35 04 06 00 [17:54:20]Write to MH i2c: E2 02 01 F2 AC 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 01 00 00 F4 03 04 00 51 35 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E1 FA 03 00 35 04 06 00 00 00 D3 [17:54:20]Write i2c OK [17:54:20]MH_I2C_Read... [17:54:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:20]Read from MH i2c: E2 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 03 00 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 03 00 F2 AC 00 90 00 12 [17:54:20]RAPDU: 90 00 [17:54:20]wFMCommunicate OK [17:54:20]wFMCommunicate request_size=11 [17:54:20]MH_SAM_APDU [17:54:20]CAPDU: 80 0D 02 02 06 6F 53 E1 89 53 BF [17:54:20]Write to MH i2c: E2 0E 00 F3 AC 80 0D 02 02 06 00 6F 53 E1 89 53 BF 00 00 63 [17:54:20]Write i2c OK [17:54:20]MH_I2C_Read... [17:54:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:20]Read from MH i2c: E2 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 03 00 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 03 00 F3 AC 00 90 00 13 [17:54:20]RAPDU: 90 00 [17:54:20]wFMCommunicate OK [17:54:20]wFMCommunicate request_size=4 [17:54:20]MH_SAM_APDU [17:54:20]CAPDU: 80 0D 03 02 [17:54:20]Write to MH i2c: E2 08 00 F4 AC 80 0D 03 02 00 00 00 00 1B [17:54:20]Write i2c OK [17:54:20]MH_I2C_Read... [17:54:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:54:20]Read from MH i2c: E2 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 0B 00 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 0B 00 F4 AC 00 97 EC 22 21 8F C1 A3 B7 90 00 8C [17:54:20]RAPDU: 97 EC 22 21 8F C1 A3 B7 90 00 [17:54:20]wFMCommunicate OK [17:54:20]SAM_PROTO_SignData done [17:54:20]FM_MakeSignedData done [17:54:20]CreateOFDProtocolMessage [17:54:20]wFMCommunicate request_size=4 [17:54:20]MH_SAM_APDU [17:54:20]CAPDU: 80 11 00 00 [17:54:20]Write to MH i2c: E2 08 00 F5 AC 80 11 00 00 00 00 00 00 1B [17:54:20]Write i2c OK [17:54:20]MH_I2C_Read... [17:54:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:20]Read from MH i2c: E2 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 17 00 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 17 00 F5 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 68 [17:54:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:54:20]wFMCommunicate OK [17:54:20]CreateOFDProtocolMessage done [17:54:20]OFDSenderStorePacket 260833 [17:54:20]StoreOFDPacket docnum=260833 [17:54:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 B9 9B 08 01 36 E0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 01 00 00 F4 03 04 00 51 35 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E1 FA 03 00 35 04 06 00 6F 53 E1 89 53 BF 97 EC 22 21 8F C1 A3 B7 [17:54:20]CheckFolder [17:54:20]dirname=/storage/ofd_packets [17:54:20]CheckFolder done [17:54:20]ProducePacketName [17:54:20]name=ofd_packets/00260833 [17:54:20]NVStorageSaveData ofd_packets/00260833 [17:54:20]File name is /storage/ofd_packets/00260833 [17:54:20]Write 302 bytes [17:54:20]NVStorageSaveData done [17:54:20]OFDSenderStorePacket done [17:54:20]KKMCreateOFDPacket done [17:54:20]NVStorageSaveData kkm_last_timestamp [17:54:20]File name is /storage/kkm_last_timestamp [17:54:20]Write 4 bytes [17:54:20]NVStorageSaveData done [17:54:20]ExternCall_PrintAddStr [17:54:20]wPrintStart [17:54:20]Write to MH i2c: 01 00 00 F6 AC A2 [17:54:20]Write i2c OK [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: 01 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: 01 07 00 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: 01 07 00 F6 AC 00 00 00 00 00 FF 0F B7 [17:54:20]RasterBufferAndPrint [17:54:20]line Счет N : (1)1036385 [17:54:20]line ИНН: 02508201610067 [17:54:20]line Контрольно-Кассовый Чек [17:54:20]line ПРОДАЖА [17:54:20]line ТРК (МРК, ГНК) : 43 [17:54:20]line Товар: 2710194210 [17:54:20]line ДТ(л)-К-4 [17:54:20]line 30.000 * 0.00 [17:54:20]line = 0.00 [17:54:20]line НДС 12% НСП 1% [17:54:20]line > о реализуемом товаре [17:54:20]line ИТОГО: 0.00 [17:54:20]line НСП 1% : 0.00 [17:54:20]line НДС 12% : 0.00 [17:54:20]line Наличными: 0.00 [17:54:20]line Безнал.: 0.00 [17:54:20]line Место: АЗС № 94 "Партнер Нефть" [17:54:20]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [17:54:20]line СНО: Общий режим [17:54:20]line Чек 391 18.08.2024 17:54 [17:54:20]line Смена: 449 ФФД: 1.0 [17:54:20]line ЗНМ: 0300000099 [17:54:20]line РНМ: 0000000000091865 [17:54:20]line Версия ККМ: 001 [17:54:20]line Талоны: ТК ГПНА Online [17:54:20]line 30020533 [17:54:20]line ФМ: 0000000000871820 [17:54:20]line ФД: 260833 [17:54:20]line ФПД: 122406056842175 [17:54:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T175425&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260833&fm=122406056842175&tin=02508201610067®Number=0000000000091865&sum=0 [17:54:20]written 0, free lines is 4095 [17:54:20]OFD Sender: Processing packet 260833 [packets to send 192, broken 191] [17:54:20]ProducePacketName [17:54:20]name=ofd_packets/00260833 [17:54:20]OFD Sender: To server: pG, [17:54:20]CommunicateWithHost lk.salyk.kg:30040 [17:54:20]ConnectInit lk.salyk.kg [17:54:20]Connected sock=10 [17:54: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 30 10 01 00 00 B9 9B 08 01 36 E0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 01 00 00 F4 03 04 00 51 35 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E1 FA 03 00 35 04 06 00 6F 53 E1 89 53 BF 97 EC 22 21 8F C1 A3 B7 [17:54: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 30 4F 00 00 00 EA 48 47 00 2A 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 30 10 04 04 00 E1 FA 03 00 F4 03 04 00 A5 DE C1 66 B6 04 01 00 00 36 E9 F3 F5 D0 59 CF FB [17:54:20]CommunicateWithHost err = 0 [17:54:20]CheckOFDResponse [17:54:20]1017 (14) - 77093643461234 [17:54:20]1041 (16) - 0000000000871820 [17:54:20]1040 (4) - 260833 [17:54:20]1012 (4) - 18.08.2024 11:44 [17:54:20]1206 (1) - 0 [17:54:20]OFD Sender: Remove packet 260833 [17:54:20]ProducePacketName [17:54:20]name=ofd_packets/00260833 [17:54:20]NVStorageDeleteData [17:54:21]Write to MH i2c: 01 00 00 20 AD CD [17:54:21]Write i2c OK [17:54:21]MH_I2C_Read... [17:54:21]Read from MH i2c: 01 [17:54:21]MH_I2C_Read... [17:54:21]Read from MH i2c: 01 07 00 [17:54:21]MH_I2C_Read... [17:54:21]Read from MH i2c: 01 07 00 20 AD 00 00 00 00 00 87 0C 67 [17:54:21]RasterBufferAndPrint [17:54:21]line [17:54:21]line [17:54:21]line [17:54:21]line [17:54:21]line [17:54:21]written 0, free lines is 3211 [17:54:21]MH_Cut [17:54:21]Write to MH i2c: D1 01 00 27 AD 01 A6 [17:54:21]Write i2c OK [17:54:21]MH_I2C_Read... [17:54:21]Read from MH i2c: D1 [17:54:21]MH_I2C_Read... [17:54:21]Read from MH i2c: D1 01 00 [17:54:21]MH_I2C_Read... [17:54:21]Read from MH i2c: D1 01 00 27 AD 00 A5 [17:54:21]Write to MH i2c: 01 00 00 28 AD D5 [17:54:21]Write i2c OK [17:54:21]MH_I2C_Read... [17:54:21]OFD Sender: No OFD packet to send [17:54:22]*** Cut start [17:54:22]*** Purtial cut [17:54:22]*** Stage 1: CUTSNS_PIN = 1 [17:54:24]Read from MH i2c: 01 [17:54:24]MH_I2C_Read... [17:54:24]*** Stop cut motor [17:54:24]*** Cut end [17:54:24]Read from MH i2c: 01 07 00 [17:54:24]MH_I2C_Read... [17:54:24]Read from MH i2c: 01 07 00 28 AD 00 00 00 00 00 FF 0F EA [17:54:24]process_action close_receipt done [17:54:24]requested_data is exist [17:54:24]produce_requested_data [17:54:24]requested_item fm.sn is exist - process it [17:54:24]wFMCommunicate request_size=4 [17:54:24]MH_SAM_APDU [17:54:24]CAPDU: 80 11 00 00 [17:54:24]Write to MH i2c: E2 08 00 29 AD 80 11 00 00 00 00 00 00 50 [17:54:24]Write i2c OK [17:54:24]MH_I2C_Read... [17:54:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:24]Read from MH i2c: E2 [17:54:24]MH_I2C_Read... [17:54:24]Read from MH i2c: E2 17 00 [17:54:24]MH_I2C_Read... [17:54:24]Read from MH i2c: E2 17 00 29 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 9D [17:54:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:54:24]wFMCommunicate OK [17:54:24]requested_item fd.num is exist - process it [17:54:24]SAM_PROTO_GetFieldsCounters [17:54:24]wFMCommunicate request_size=4 [17:54:24]MH_SAM_APDU [17:54:24]CAPDU: 80 13 00 00 [17:54:24]Write to MH i2c: E2 08 00 2A AD 80 13 00 00 00 00 00 00 53 [17:54:24]Write i2c OK [17:54:24]MH_I2C_Read... [17:54:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:24]Read from MH i2c: E2 [17:54:24]MH_I2C_Read... [17:54:24]Read from MH i2c: E2 62 00 [17:54:24]MH_I2C_Read... [17:54:24]Read from MH i2c: E2 62 00 2A AD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E1 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 87 01 00 00 5E 04 04 00 87 01 00 00 57 04 04 00 88 01 00 00 19 04 04 00 00 00 00 00 90 00 AA [17:54: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E1 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 87 01 00 00 5E 04 04 00 87 01 00 00 57 04 04 00 88 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:54:24]wFMCommunicate OK [17:54:24]SAM_PROTO_GetFieldsCounters done [17:54:24]requested_item shift.num is exist - process it [17:54:24]requested_item shift.opened is exist - process it [17:54:24]req_shift_opened [17:54:24]FM_GetShiftState [17:54:24]SAM_PROTO_GetShiftState [17:54:24]wFMCommunicate request_size=4 [17:54:24]MH_SAM_APDU [17:54:24]CAPDU: 80 13 01 00 [17:54:24]Write to MH i2c: E2 08 00 2B AD 80 13 01 00 00 00 00 00 55 [17:54:24]Write i2c OK [17:54:24]MH_I2C_Read... [17:54:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:24]Read from MH i2c: E2 [17:54:24]MH_I2C_Read... [17:54:24]Read from MH i2c: E2 0E 00 [17:54:24]MH_I2C_Read... [17:54:24]Read from MH i2c: E2 0E 00 2B AD 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 92 [17:54:24]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:54:24]wFMCommunicate OK [17:54:24]SAM_PROTO_GetShiftState done [17:54:24]FM_GetShiftState done [17:54:24]req_shift_opened done [17:54:24]requested_item shift.open_date is exist - process it [17:54:24]req_shift_open_date [17:54:24]req_shift_open_date done [17:54:24]produce_requested_data done [17:54:24]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260833,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [17:54:24]process_action_free close_receipt [17:54:24]json_value_free [17:54:24]json_value_free done [17:54:24]process_json_proto returns [17:54:24]Send response to host [17:54:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260833,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [17:54:24]free response buf [17:54:24]execute_script done [17:54:24]execute_script returns [17:54:24]free content buf [17:54:24]Sock 9.Close socket [17:54:24]Sock 9.Thread stoped [17:54:26]OFD Sender: No OFD packet to send [17:54:31]OFD Sender: No OFD packet to send [17:54:36]OFD Sender: No OFD packet to send [17:54:41]OFD Sender: No OFD packet to send [17:54:46]OFD Sender: No OFD packet to send [17:54:51]OFD Sender: No OFD packet to send [17:54:56]OFD Sender: No OFD packet to send [17:55:01]OFD Sender: No OFD packet to send [17:55:06]OFD Sender: No OFD packet to send [17:55:11]OFD Sender: No OFD packet to send [17:55:16]OFD Sender: No OFD packet to send [17:55:21]OFD Sender: No OFD packet to send [17:55:26]OFD Sender: No OFD packet to send [17:55:31]OFD Sender: No OFD packet to send [17:55:36]OFD Sender: No OFD packet to send [17:55:41]OFD Sender: No OFD packet to send [17:55:46]OFD Sender: No OFD packet to send [17:55:51]OFD Sender: No OFD packet to send [17:55:56]OFD Sender: No OFD packet to send [17:56:01]OFD Sender: No OFD packet to send [17:56:06]OFD Sender: No OFD packet to send [17:56:11]OFD Sender: No OFD packet to send [17:56:16]OFD Sender: No OFD packet to send [17:56:21]OFD Sender: No OFD packet to send [17:56:26]OFD Sender: No OFD packet to send [17:56:31]OFD Sender: No OFD packet to send [17:56:36]OFD Sender: No OFD packet to send [17:56:41]OFD Sender: No OFD packet to send [17:56:46]OFD Sender: No OFD packet to send [17:56:51]OFD Sender: No OFD packet to send [17:56:56]OFD Sender: No OFD packet to send [17:57:01]OFD Sender: No OFD packet to send [17:57:06]OFD Sender: No OFD packet to send [17:57:11]OFD Sender: No OFD packet to send [17:57:16]OFD Sender: No OFD packet to send [17:57:21]OFD Sender: No OFD packet to send [17:57:26]OFD Sender: No OFD packet to send [17:57:31]OFD Sender: No OFD packet to send [17:57:36]OFD Sender: No OFD packet to send [17:57:41]OFD Sender: No OFD packet to send [17:57:46]OFD Sender: No OFD packet to send [17:57:51]OFD Sender: No OFD packet to send [17:57:56]OFD Sender: No OFD packet to send [17:58:01]OFD Sender: No OFD packet to send [17:58:06]OFD Sender: No OFD packet to send [17:58:11]OFD Sender: No OFD packet to send [17:58:15]accept exits with 7 [17:58:15]New connection [17:58:15]New thread 3066473828 created [17:58:15]Thread 3066617188 joined [17:58:15]Waiting for new connection... [17:58:15] Sock 7.Parse request [17:58:15]Sock 7.Check first char [17:58:15]Sock 7.First char is OK [17:58:15]request: POST /json_proto HTTP/1.0 [17:58:15]Method: POST [17:58:15]URL: /json_proto [17:58:15]Method is POST - this is cgi request [17:58:15]url: /json_proto [17:58:15]query_string will be loaded in cgi processing [17:58:15]execute_cgi json_proto POST (null) [17:58:15]execute_cgi path=json_proto method=POST [17:58:15]POST find Content-Length [17:58:15]Host: 172.17.55.133:8080 [17:58:15]Content-Length: 801 [17:58:15]Content-Type: application/json [17:58:15] [17:58:15]POST finish read [17:58:15]Found Content-Length = 801 [17:58:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3916590", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:15]execute_script... [17:58: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)1036386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3916590", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:15]POST & json_proto [17:58:15]process_json_proto [17:58:15]json parsed OK: [17:58:15]protocol is kg_v1.0 [17:58:15]action value=close_receipt [17:58:15]process_action close_receipt [17:58:15]cmd_close_receipt [17:58:15]MH_GetDate [17:58:15]Write to MH i2c: F0 00 00 2C AD C8 [17:58:15]Write i2c OK [17:58:15]MH_I2C_Read... [17:58:15]Read from MH i2c: F0 [17:58:15]MH_I2C_Read... [17:58:15]Read from MH i2c: F0 09 00 [17:58:15]MH_I2C_Read... [17:58:15]Read from MH i2c: F0 09 00 2C AD 00 3D 36 C2 66 34 48 D8 65 25 [17:58:15]GetLastDocTimeStamp 1724003665 [17:58:15]current date 1724003901 [17:58:15]FM_GetShiftState [17:58:15]SAM_PROTO_GetShiftState [17:58:15]wFMCommunicate request_size=4 [17:58:15]MH_SAM_APDU [17:58:15]CAPDU: 80 13 01 00 [17:58:15]Write to MH i2c: E2 08 00 2D AD 80 13 01 00 00 00 00 00 57 [17:58:15]Write i2c OK [17:58:15]MH_I2C_Read... [17:58:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:15]Read from MH i2c: E2 [17:58:15]MH_I2C_Read... [17:58:15]Read from MH i2c: E2 0E 00 [17:58:15]MH_I2C_Read... [17:58:15]Read from MH i2c: E2 0E 00 2D AD 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 94 [17:58:15]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:58:15]wFMCommunicate OK [17:58:15]SAM_PROTO_GetShiftState done [17:58:15]FM_GetShiftState done [17:58:15]opened in 1723940556 [17:58:15]opened+sec_in_day 1724026956 [17:58:15]quantity*price = 0 [17:58:15]sum+1 = 1 [17:58:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 392 18.08.2024 17:58 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: Топливные Талоны 3916590 ФМ: 0000000000871820 ФД: 260834 ФПД: 191763674248376 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T175821&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260834&fm=191763674248376&tin=02508201610067®Number=0000000000091865&sum=0 [17:58:16]StoreToDocumentArchive [17:58:16]shift 449 fd 260834 [17:58:16]save to /storage/0449/doc_00260834 [17:58:16]save last doc name /storage/0449/doc_00260834 to /storage/kkm_last_doc_name [17:58:16]save OK [17:58:16]Clear old archive folders... [17:58:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:58:16]tlvbuf is 004A1D20 [17:58:16]SAM_PROTO_ClearQueue [17:58:16]wFMCommunicate request_size=4 [17:58:16]MH_SAM_APDU [17:58:16]CAPDU: 80 09 00 00 [17:58:16]Write to MH i2c: E2 08 00 3A AD 80 09 00 00 00 00 00 00 59 [17:58:16]Write i2c OK [17:58:16]MH_I2C_Read... [17:58:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:16]Read from MH i2c: E2 [17:58:16]MH_I2C_Read... [17:58:16]Read from MH i2c: E2 03 00 [17:58:16]MH_I2C_Read... [17:58:16]Read from MH i2c: E2 03 00 3A AD 00 90 00 5B [17:58:16]RAPDU: 90 00 [17:58:16]wFMCommunicate OK [17:58:16]SAM_PROTO_ClearQueue done [17:58:16]KKMCreateOFDPacket [17:58:16]OFDProtocolAddRootSTLVToBuf [17:58:16]FM_MakeSignedData [17:58:16]FM_MakeSignedData [17:58:16]SAM_PROTO_SignData [17:58:16]wFMCommunicate request_size=4 [17:58:16]MH_SAM_APDU [17:58:16]CAPDU: 80 0D 01 02 [17:58:16]Write to MH i2c: E2 08 00 3B AD 80 0D 01 02 00 00 00 00 61 [17:58:16]Write i2c OK [17:58:16]MH_I2C_Read... [17:58:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:16]Read from MH i2c: E2 [17:58:16]MH_I2C_Read... [17:58:16]Read from MH i2c: E2 03 00 [17:58:16]MH_I2C_Read... [17:58:16]Read from MH i2c: E2 03 00 3B AD 00 90 00 5C [17:58:16]RAPDU: 90 00 [17:58:16]wFMCommunicate OK [17:58:16]wFMCommunicate request_size=255 [17:58:16]MH_SAM_APDU [17:58:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 88 01 00 00 F4 03 04 00 3D 36 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E2 FA 03 00 35 04 06 00 AE [17:58:16]Write to MH i2c: E2 02 01 3C AD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 01 00 00 F4 03 04 00 3D 36 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E2 FA 03 00 35 04 06 00 AE 00 00 13 [17:58:16]Write i2c OK [17:58:16]MH_I2C_Read... [17:58:16]OFD Sender: No OFD packet to send [17:58:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:17]Read from MH i2c: E2 [17:58:17]MH_I2C_Read... [17:58:17]Read from MH i2c: E2 03 00 [17:58:17]MH_I2C_Read... [17:58:17]Read from MH i2c: E2 03 00 3C AD 00 90 00 5D [17:58:17]RAPDU: 90 00 [17:58:17]wFMCommunicate OK [17:58:17]wFMCommunicate request_size=10 [17:58:17]MH_SAM_APDU [17:58:17]CAPDU: 80 0D 02 02 05 68 75 AF 34 B8 [17:58:17]Write to MH i2c: E2 0D 00 3D AD 80 0D 02 02 05 00 68 75 AF 34 B8 00 00 E6 [17:58:17]Write i2c OK [17:58:17]MH_I2C_Read... [17:58:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:17]Read from MH i2c: E2 [17:58:17]MH_I2C_Read... [17:58:17]Read from MH i2c: E2 03 00 [17:58:17]MH_I2C_Read... [17:58:17]Read from MH i2c: E2 03 00 3D AD 00 90 00 5E [17:58:17]RAPDU: 90 00 [17:58:17]wFMCommunicate OK [17:58:17]wFMCommunicate request_size=4 [17:58:17]MH_SAM_APDU [17:58:17]CAPDU: 80 0D 03 02 [17:58:17]Write to MH i2c: E2 08 00 3E AD 80 0D 03 02 00 00 00 00 66 [17:58:17]Write i2c OK [17:58:17]MH_I2C_Read... [17:58:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:17]Read from MH i2c: E2 [17:58:17]MH_I2C_Read... [17:58:17]Read from MH i2c: E2 0B 00 [17:58:17]MH_I2C_Read... [17:58:17]Read from MH i2c: E2 0B 00 3E AD 00 04 B4 4A 2D A4 E4 06 6B 90 00 8F [17:58:17]RAPDU: 04 B4 4A 2D A4 E4 06 6B 90 00 [17:58:17]wFMCommunicate OK [17:58:17]SAM_PROTO_SignData done [17:58:17]FM_MakeSignedData done [17:58:17]CreateOFDProtocolMessage [17:58:17]wFMCommunicate request_size=4 [17:58:17]MH_SAM_APDU [17:58:17]CAPDU: 80 11 00 00 [17:58:17]Write to MH i2c: E2 08 00 3F AD 80 11 00 00 00 00 00 00 66 [17:58:17]Write i2c OK [17:58:17]MH_I2C_Read... [17:58:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:17]Read from MH i2c: E2 [17:58:17]MH_I2C_Read... [17:58:17]Read from MH i2c: E2 17 00 [17:58:17]MH_I2C_Read... [17:58:17]Read from MH i2c: E2 17 00 3F AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B3 [17:58:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:58:17]wFMCommunicate OK [17:58:17]CreateOFDProtocolMessage done [17:58:17]OFDSenderStorePacket 260834 [17:58:17]StoreOFDPacket docnum=260834 [17:58:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 9C 2A 07 01 98 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 88 01 00 00 F4 03 04 00 3D 36 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E2 FA 03 00 35 04 06 00 AE 68 75 AF 34 B8 04 B4 4A 2D A4 E4 06 6B [17:58:17]CheckFolder [17:58:17]dirname=/storage/ofd_packets [17:58:17]CheckFolder done [17:58:17]ProducePacketName [17:58:17]name=ofd_packets/00260834 [17:58:17]NVStorageSaveData ofd_packets/00260834 [17:58:17]File name is /storage/ofd_packets/00260834 [17:58:17]Write 301 bytes [17:58:17]NVStorageSaveData done [17:58:17]OFDSenderStorePacket done [17:58:17]KKMCreateOFDPacket done [17:58:17]NVStorageSaveData kkm_last_timestamp [17:58:17]File name is /storage/kkm_last_timestamp [17:58:17]Write 4 bytes [17:58:17]NVStorageSaveData done [17:58:17]ExternCall_PrintAddStr [17:58:17]wPrintStart [17:58:17]Write to MH i2c: 01 00 00 40 AD ED [17:58:17]Write i2c OK [17:58:17]MH_I2C_Read... [17:58:17]Read from MH i2c: 01 [17:58:17]MH_I2C_Read... [17:58:17]Read from MH i2c: 01 07 00 [17:58:17]MH_I2C_Read... [17:58:17]Read from MH i2c: 01 07 00 40 AD 00 00 00 00 00 FF 0F 02 [17:58:17]RasterBufferAndPrint [17:58:17]line Счет N : (1)1036386 [17:58:17]line ИНН: 02508201610067 [17:58:17]line Контрольно-Кассовый Чек [17:58:17]line ПРОДАЖА [17:58:17]line ТРК (МРК, ГНК) : 12 [17:58:17]line Товар: 2710124130 [17:58:17]line Аи-92-К-5 [17:58:17]line 10.000 * 0.00 [17:58:17]line = 0.00 [17:58:17]line НДС 12% НСП 1% [17:58:17]line > о реализуемом товаре [17:58:17]line ИТОГО: 0.00 [17:58:17]line НСП 1% : 0.00 [17:58:17]line НДС 12% : 0.00 [17:58:17]line Наличными: 0.00 [17:58:17]line Безнал.: 0.00 [17:58:17]line Место: АЗС № 94 "Партнер Нефть" [17:58:17]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [17:58:17]line СНО: Общий режим [17:58:17]line Чек 392 18.08.2024 17:58 [17:58:17]line Смена: 449 ФФД: 1.0 [17:58:17]line ЗНМ: 0300000099 [17:58:17]line РНМ: 0000000000091865 [17:58:17]line Версия ККМ: 001 [17:58:17]line Талоны: Топливные Талоны [17:58:17]line 3916590 [17:58:17]line ФМ: 0000000000871820 [17:58:17]line ФД: 260834 [17:58:17]line ФПД: 191763674248376 [17:58:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T175821&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260834&fm=191763674248376&tin=02508201610067®Number=0000000000091865&sum=0 [17:58:17]OFD Sender: Processing packet 260834 [packets to send 192, broken 191] [17:58:17]ProducePacketName [17:58:17]name=ofd_packets/00260834 [17:58:17]OFD Sender: To server: pG, [17:58:17]CommunicateWithHost lk.salyk.kg:30040 [17:58:17]ConnectInit lk.salyk.kg [17:58:17]written 0, free lines is 4095 [17:58:17]Connected sock=10 [17:58: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 30 0F 01 00 00 9C 2A 07 01 98 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 88 01 00 00 F4 03 04 00 3D 36 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E2 FA 03 00 35 04 06 00 AE 68 75 AF 34 B8 04 B4 4A 2D A4 E4 06 6B [17:58: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 30 4F 00 00 00 F8 6C 47 00 3E 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E2 FA 03 00 F4 03 04 00 91 DF C1 66 B6 04 01 00 00 BF ED 1E 8E 4E 27 05 84 [17:58:17]CommunicateWithHost err = 0 [17:58:17]CheckOFDResponse [17:58:17]1017 (14) - 77093643461234 [17:58:17]1041 (16) - 0000000000871820 [17:58:17]1040 (4) - 260834 [17:58:17]1012 (4) - 18.08.2024 11:48 [17:58:17]1206 (1) - 0 [17:58:17]OFD Sender: Remove packet 260834 [17:58:17]ProducePacketName [17:58:17]name=ofd_packets/00260834 [17:58:17]NVStorageDeleteData [17:58:18]Write to MH i2c: 01 00 00 6A AD 17 [17:58:18]Write i2c OK [17:58:18]MH_I2C_Read... [17:58:18]Read from MH i2c: 01 [17:58:18]MH_I2C_Read... [17:58:18]Read from MH i2c: 01 07 00 [17:58:18]MH_I2C_Read... [17:58:18]Read from MH i2c: 01 07 00 6A AD 00 00 00 00 00 8D 0C B7 [17:58:18]RasterBufferAndPrint [17:58:18]line [17:58:18]line [17:58:18]line [17:58:18]line [17:58:18]line [17:58:18]written 0, free lines is 3217 [17:58:18]MH_Cut [17:58:18]Write to MH i2c: D1 01 00 71 AD 01 F0 [17:58:18]Write i2c OK [17:58:18]MH_I2C_Read... [17:58:18]Read from MH i2c: D1 [17:58:18]MH_I2C_Read... [17:58:18]Read from MH i2c: D1 01 00 [17:58:18]MH_I2C_Read... [17:58:18]Read from MH i2c: D1 01 00 71 AD 00 EF [17:58:18]Write to MH i2c: 01 00 00 72 AD 1F [17:58:18]Write i2c OK [17:58:18]MH_I2C_Read... [17:58:18]OFD Sender: No OFD packet to send [17:58:19]*** Cut start [17:58:19]*** Purtial cut [17:58:19]*** Stage 1: CUTSNS_PIN = 1 [17:58:21]Read from MH i2c: 01 [17:58:21]MH_I2C_Read... [17:58:21]*** Stop cut motor [17:58:21]*** Cut end [17:58:21]Read from MH i2c: 01 07 00 [17:58:21]MH_I2C_Read... [17:58:21]Read from MH i2c: 01 07 00 72 AD 00 00 00 00 00 FF 0F 34 [17:58:21]process_action close_receipt done [17:58:21]requested_data is exist [17:58:21]produce_requested_data [17:58:21]requested_item fm.sn is exist - process it [17:58:21]wFMCommunicate request_size=4 [17:58:21]MH_SAM_APDU [17:58:21]CAPDU: 80 11 00 00 [17:58:21]Write to MH i2c: E2 08 00 73 AD 80 11 00 00 00 00 00 00 9A [17:58:21]Write i2c OK [17:58:21]MH_I2C_Read... [17:58:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:21]Read from MH i2c: E2 [17:58:21]MH_I2C_Read... [17:58:21]Read from MH i2c: E2 17 00 [17:58:21]MH_I2C_Read... [17:58:21]Read from MH i2c: E2 17 00 73 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E7 [17:58:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [17:58:21]wFMCommunicate OK [17:58:21]requested_item fd.num is exist - process it [17:58:21]SAM_PROTO_GetFieldsCounters [17:58:21]wFMCommunicate request_size=4 [17:58:21]MH_SAM_APDU [17:58:21]CAPDU: 80 13 00 00 [17:58:21]Write to MH i2c: E2 08 00 74 AD 80 13 00 00 00 00 00 00 9D [17:58:21]Write i2c OK [17:58:21]MH_I2C_Read... [17:58:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:21]Read from MH i2c: E2 [17:58:21]MH_I2C_Read... [17:58:21]Read from MH i2c: E2 62 00 [17:58:21]MH_I2C_Read... [17:58:21]Read from MH i2c: E2 62 00 74 AD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E2 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 88 01 00 00 5E 04 04 00 88 01 00 00 57 04 04 00 89 01 00 00 19 04 04 00 00 00 00 00 90 00 F8 [17:58: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E2 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 88 01 00 00 5E 04 04 00 88 01 00 00 57 04 04 00 89 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:58:21]wFMCommunicate OK [17:58:21]SAM_PROTO_GetFieldsCounters done [17:58:21]requested_item shift.num is exist - process it [17:58:21]requested_item shift.opened is exist - process it [17:58:21]req_shift_opened [17:58:21]FM_GetShiftState [17:58:21]SAM_PROTO_GetShiftState [17:58:21]wFMCommunicate request_size=4 [17:58:21]MH_SAM_APDU [17:58:21]CAPDU: 80 13 01 00 [17:58:21]Write to MH i2c: E2 08 00 75 AD 80 13 01 00 00 00 00 00 9F [17:58:21]Write i2c OK [17:58:21]MH_I2C_Read... [17:58:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:21]Read from MH i2c: E2 [17:58:21]MH_I2C_Read... [17:58:21]Read from MH i2c: E2 0E 00 [17:58:21]MH_I2C_Read... [17:58:21]Read from MH i2c: E2 0E 00 75 AD 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 DC [17:58:21]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [17:58:21]wFMCommunicate OK [17:58:21]SAM_PROTO_GetShiftState done [17:58:21]FM_GetShiftState done [17:58:21]req_shift_opened done [17:58:21]requested_item shift.open_date is exist - process it [17:58:21]req_shift_open_date [17:58:21]req_shift_open_date done [17:58:21]produce_requested_data done [17:58:21]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260834,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [17:58:21]process_action_free close_receipt [17:58:21]json_value_free [17:58:21]json_value_free done [17:58:21]process_json_proto returns [17:58:21]Send response to host [17:58:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260834,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [17:58:21]free response buf [17:58:21]execute_script done [17:58:21]execute_script returns [17:58:21]free content buf [17:58:21]Sock 7.Close socket [17:58:21]Sock 7.Thread stoped [17:58:23]OFD Sender: No OFD packet to send [17:58:28]OFD Sender: No OFD packet to send [17:58:33]OFD Sender: No OFD packet to send [17:58:38]OFD Sender: No OFD packet to send [17:58:43]OFD Sender: No OFD packet to send [17:58:48]OFD Sender: No OFD packet to send [17:58:53]OFD Sender: No OFD packet to send [17:58:58]OFD Sender: No OFD packet to send [17:59:03]OFD Sender: No OFD packet to send [17:59:08]OFD Sender: No OFD packet to send [17:59:13]OFD Sender: No OFD packet to send [17:59:18]OFD Sender: No OFD packet to send [17:59:23]OFD Sender: No OFD packet to send [17:59:28]OFD Sender: No OFD packet to send [17:59:33]OFD Sender: No OFD packet to send [17:59:38]OFD Sender: No OFD packet to send [17:59:43]OFD Sender: No OFD packet to send [17:59:48]OFD Sender: No OFD packet to send [17:59:53]OFD Sender: No OFD packet to send [17:59:58]OFD Sender: No OFD packet to send [18:00:03]OFD Sender: No OFD packet to send [18:00:05]accept exits with 9 [18:00:05]New connection [18:00:05]New thread 3066617188 created [18:00:05]Thread 3066473828 joined [18:00:05]Waiting for new connection... [18:00:05] Sock 9.Parse request [18:00:05]Sock 9.Check first char [18:00:05]Sock 9.First char is OK [18:00:05]request: POST /json_proto HTTP/1.0 [18:00:05]Method: POST [18:00:05]URL: /json_proto [18:00:05]Method is POST - this is cgi request [18:00:05]url: /json_proto [18:00:05]query_string will be loaded in cgi processing [18:00:05]execute_cgi json_proto POST (null) [18:00:05]execute_cgi path=json_proto method=POST [18:00:05]POST find Content-Length [18:00:05]Host: 172.17.55.133:8080 [18:00:05]Content-Length: 678 [18:00:05]Content-Type: application/json [18:00:05] [18:00:05]POST finish read [18:00:05]Found Content-Length = 678 [18:00:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:05]execute_script... [18: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)1036387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:05]POST & json_proto [18:00:05]process_json_proto [18:00:05]json parsed OK: [18:00:05]protocol is kg_v1.0 [18:00:05]action value=close_receipt [18:00:05]process_action close_receipt [18:00:05]cmd_close_receipt [18:00:05]MH_GetDate [18:00:05]Write to MH i2c: F0 00 00 76 AD 12 [18:00:05]Write i2c OK [18:00:05]MH_I2C_Read... [18:00:05]Read from MH i2c: F0 [18:00:05]MH_I2C_Read... [18:00:05]Read from MH i2c: F0 09 00 [18:00:05]MH_I2C_Read... [18:00:05]Read from MH i2c: F0 09 00 76 AD 00 AB 36 C2 66 34 48 D8 65 DD [18:00:05]GetLastDocTimeStamp 1724003901 [18:00:05]current date 1724004011 [18:00:05]FM_GetShiftState [18:00:05]SAM_PROTO_GetShiftState [18:00:05]wFMCommunicate request_size=4 [18:00:05]MH_SAM_APDU [18:00:05]CAPDU: 80 13 01 00 [18:00:05]Write to MH i2c: E2 08 00 77 AD 80 13 01 00 00 00 00 00 A1 [18:00:05]Write i2c OK [18:00:05]MH_I2C_Read... [18:00:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:05]Read from MH i2c: E2 [18:00:05]MH_I2C_Read... [18:00:05]Read from MH i2c: E2 0E 00 [18:00:05]MH_I2C_Read... [18:00:05]Read from MH i2c: E2 0E 00 77 AD 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 DE [18:00:05]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:00:05]wFMCommunicate OK [18:00:05]SAM_PROTO_GetShiftState done [18:00:05]FM_GetShiftState done [18:00:05]opened in 1723940556 [18:00:05]opened+sec_in_day 1724026956 [18:00:05]quantity*price = 50036 [18:00:05]sum+1 = 50037 [18:00:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 393 18.08.2024 18:00 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260835 ФПД: 121446768531167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T180011&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260835&fm=121446768531167&tin=02508201610067®Number=0000000000091865&sum=50000 [18:00:06]StoreToDocumentArchive [18:00:06]shift 449 fd 260835 [18:00:06]save to /storage/0449/doc_00260835 [18:00:06]save last doc name /storage/0449/doc_00260835 to /storage/kkm_last_doc_name [18:00:06]save OK [18:00:06]Clear old archive folders... [18:00:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:00:06]tlvbuf is 006B8F30 [18:00:06]SAM_PROTO_ClearQueue [18:00:06]wFMCommunicate request_size=4 [18:00:06]MH_SAM_APDU [18:00:06]CAPDU: 80 09 00 00 [18:00:06]Write to MH i2c: E2 08 00 84 AD 80 09 00 00 00 00 00 00 A3 [18:00:06]Write i2c OK [18:00:06]MH_I2C_Read... [18:00:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:00:06]Read from MH i2c: E2 [18:00:06]MH_I2C_Read... [18:00:06]Read from MH i2c: E2 03 00 [18:00:06]MH_I2C_Read... [18:00:06]Read from MH i2c: E2 03 00 84 AD 00 90 00 A5 [18:00:06]RAPDU: 90 00 [18:00:06]wFMCommunicate OK [18:00:06]SAM_PROTO_ClearQueue done [18:00:06]KKMCreateOFDPacket [18:00:06]OFDProtocolAddRootSTLVToBuf [18:00:06]FM_MakeSignedData [18:00:06]FM_MakeSignedData [18:00:06]SAM_PROTO_SignData [18:00:06]wFMCommunicate request_size=4 [18:00:06]MH_SAM_APDU [18:00:06]CAPDU: 80 0D 01 02 [18:00:06]Write to MH i2c: E2 08 00 85 AD 80 0D 01 02 00 00 00 00 AB [18:00:06]Write i2c OK [18:00:06]MH_I2C_Read... [18:00:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:00:06]Read from MH i2c: E2 [18:00:06]MH_I2C_Read... [18:00:06]Read from MH i2c: E2 03 00 [18:00:06]MH_I2C_Read... [18:00:06]Read from MH i2c: E2 03 00 85 AD 00 90 00 A6 [18:00:06]RAPDU: 90 00 [18:00:06]wFMCommunicate OK [18:00:06]wFMCommunicate request_size=255 [18:00:06]MH_SAM_APDU [18: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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 89 01 00 00 F4 03 04 00 AB 36 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E3 FA 03 00 35 04 06 00 6E [18:00:06]Write to MH i2c: E2 02 01 86 AD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 89 01 00 00 F4 03 04 00 AB 36 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E3 FA 03 00 35 04 06 00 6E 00 00 CB [18:00:06]Write i2c OK [18:00:06]MH_I2C_Read... [18:00:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:06]Read from MH i2c: E2 [18:00:06]MH_I2C_Read... [18:00:06]Read from MH i2c: E2 03 00 [18:00:06]MH_I2C_Read... [18:00:06]Read from MH i2c: E2 03 00 86 AD 00 90 00 A7 [18:00:06]RAPDU: 90 00 [18:00:06]wFMCommunicate OK [18:00:06]wFMCommunicate request_size=10 [18:00:06]MH_SAM_APDU [18:00:06]CAPDU: 80 0D 02 02 05 74 87 7F 56 DF [18:00:06]Write to MH i2c: E2 0D 00 87 AD 80 0D 02 02 05 00 74 87 7F 56 DF 00 00 67 [18:00:06]Write i2c OK [18:00:06]MH_I2C_Read... [18:00:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:06]Read from MH i2c: E2 [18:00:06]MH_I2C_Read... [18:00:06]Read from MH i2c: E2 03 00 [18:00:06]MH_I2C_Read... [18:00:06]Read from MH i2c: E2 03 00 87 AD 00 90 00 A8 [18:00:06]RAPDU: 90 00 [18:00:06]wFMCommunicate OK [18:00:06]wFMCommunicate request_size=4 [18:00:06]MH_SAM_APDU [18:00:06]CAPDU: 80 0D 03 02 [18:00:06]Write to MH i2c: E2 08 00 88 AD 80 0D 03 02 00 00 00 00 B0 [18:00:06]Write i2c OK [18:00:06]MH_I2C_Read... [18:00:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:00:06]Read from MH i2c: E2 [18:00:06]MH_I2C_Read... [18:00:06]Read from MH i2c: E2 0B 00 [18:00:06]MH_I2C_Read... [18:00:06]Read from MH i2c: E2 0B 00 88 AD 00 F9 20 C6 06 44 F3 37 2C 90 00 30 [18:00:06]RAPDU: F9 20 C6 06 44 F3 37 2C 90 00 [18:00:06]wFMCommunicate OK [18:00:06]SAM_PROTO_SignData done [18:00:06]FM_MakeSignedData done [18:00:06]CreateOFDProtocolMessage [18:00:06]wFMCommunicate request_size=4 [18:00:06]MH_SAM_APDU [18:00:06]CAPDU: 80 11 00 00 [18:00:06]Write to MH i2c: E2 08 00 89 AD 80 11 00 00 00 00 00 00 B0 [18:00:06]Write i2c OK [18:00:06]MH_I2C_Read... [18:00:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:06]Read from MH i2c: E2 [18:00:06]MH_I2C_Read... [18:00:06]Read from MH i2c: E2 17 00 [18:00:06]MH_I2C_Read... [18:00:06]Read from MH i2c: E2 17 00 89 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 FD [18:00:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:00:06]wFMCommunicate OK [18:00:06]CreateOFDProtocolMessage done [18:00:06]OFDSenderStorePacket 260835 [18:00:06]StoreOFDPacket docnum=260835 [18:00:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 86 7E 07 01 B4 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 89 01 00 00 F4 03 04 00 AB 36 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E3 FA 03 00 35 04 06 00 6E 74 87 7F 56 DF F9 20 C6 06 44 F3 37 2C [18:00:06]CheckFolder [18:00:06]dirname=/storage/ofd_packets [18:00:06]CheckFolder done [18:00:06]ProducePacketName [18:00:06]name=ofd_packets/00260835 [18:00:06]NVStorageSaveData ofd_packets/00260835 [18:00:06]File name is /storage/ofd_packets/00260835 [18:00:06]Write 301 bytes [18:00:06]NVStorageSaveData done [18:00:06]OFDSenderStorePacket done [18:00:06]KKMCreateOFDPacket done [18:00:06]NVStorageSaveData kkm_last_timestamp [18:00:06]File name is /storage/kkm_last_timestamp [18:00:06]Write 4 bytes [18:00:06]NVStorageSaveData done [18:00:06]ExternCall_PrintAddStr [18:00:06]wPrintStart [18:00:06]Write to MH i2c: 01 00 00 8A AD 37 [18:00:06]Write i2c OK [18:00:06]MH_I2C_Read... [18:00:06]Read from MH i2c: 01 [18:00:06]MH_I2C_Read... [18:00:06]Read from MH i2c: 01 07 00 [18:00:06]MH_I2C_Read... [18:00:06]Read from MH i2c: 01 07 00 8A AD 00 00 00 00 00 FF 0F 4C [18:00:06]RasterBufferAndPrint [18:00:06]line Счет N : (1)1036387 [18:00:06]line ИНН: 02508201610067 [18:00:06]line Контрольно-Кассовый Чек [18:00:06]line ПРОДАЖА [18:00:06]line ТРК (МРК, ГНК) : 12 [18:00:06]line Товар: 2710124130 [18:00:06]line Аи-92-К-5 [18:00:06]line 7.380 * 67.80 [18:00:06]line = 500.36 [18:00:06]line НДС 12% НСП 1% [18:00:06]line > о реализуемом товаре [18:00:06]line ОКРУГЛЕНИЕ: -0.36 [18:00:06]line ИТОГО: 500.00 [18:00:06]line Внесено: 500.00 [18:00:06]line СДАЧА: 0.00 [18:00:06]line НСП 1% : 4.43 [18:00:06]line НДС 12% : 53.14 [18:00:06]line Наличными: 500.00 [18:00:06]line Безнал.: 0.00 [18:00:06]line Место: АЗС № 94 "Партнер Нефть" [18:00:06]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:00:06]line СНО: Общий режим [18:00:06]line Чек 393 18.08.2024 18:00 [18:00:06]line Смена: 449 ФФД: 1.0 [18:00:06]line ЗНМ: 0300000099 [18:00:06]line РНМ: 0000000000091865 [18:00:06]line Версия ККМ: 001 [18:00:06]line ФМ: 0000000000871820 [18:00:06]line ФД: 260835 [18:00:06]line ФПД: 121446768531167 [18:00:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T180011&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260835&fm=121446768531167&tin=02508201610067®Number=0000000000091865&sum=50000 [18:00:06]written 0, free lines is 4095 [18:00:06]OFD Sender: Processing packet 260835 [packets to send 192, broken 191] [18:00:06]ProducePacketName [18:00:07]name=ofd_packets/00260835 [18:00:07]OFD Sender: To server: pG, [18:00:07]CommunicateWithHost lk.salyk.kg:30040 [18:00:07]ConnectInit lk.salyk.kg [18:00:07]Connected sock=10 [18: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 30 0F 01 00 00 86 7E 07 01 B4 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 89 01 00 00 F4 03 04 00 AB 36 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E3 FA 03 00 35 04 06 00 6E 74 87 7F 56 DF F9 20 C6 06 44 F3 37 2C [18:00:07]Write to MH i2c: 01 00 00 B5 AD 62 [18:00:07]Write i2c OK [18:00:07]MH_I2C_Read... [18:00:07]Read from MH i2c: 01 [18:00:07]MH_I2C_Read... [18:00:07]Read from MH i2c: 01 07 00 [18:00:07]MH_I2C_Read... [18:00:07]Read from MH i2c: 01 07 00 B5 AD 00 00 00 00 00 69 0C DE [18:00:07]RasterBufferAndPrint [18:00:07]line [18:00:07]line [18:00:07]line [18:00:07]line [18:00:07]line [18:00:07]written 0, free lines is 3181 [18:00:07]MH_Cut [18:00:07]Write to MH i2c: D1 01 00 BC AD 01 3B [18:00:07]Write i2c OK [18:00:07]MH_I2C_Read... [18:00:07]Read from MH i2c: D1 [18:00:07]MH_I2C_Read... [18:00:07]Read from MH i2c: D1 01 00 [18:00:07]MH_I2C_Read... [18:00:07]Read from MH i2c: D1 01 00 BC AD 00 3A [18:00:07]Write to MH i2c: 01 00 00 BD AD 6A [18:00:07]Write i2c OK [18:00:07]MH_I2C_Read... [18:00: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 30 4F 00 00 00 89 39 47 00 BF 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E3 FA 03 00 F4 03 04 00 FF DF C1 66 B6 04 01 00 00 18 B0 DC 1E ED BA 68 67 [18:00:07]CommunicateWithHost err = 0 [18:00:07]CheckOFDResponse [18:00:07]1017 (14) - 77093643461234 [18:00:07]1041 (16) - 0000000000871820 [18:00:07]1040 (4) - 260835 [18:00:07]1012 (4) - 18.08.2024 11:50 [18:00:07]1206 (1) - 0 [18:00:07]OFD Sender: Remove packet 260835 [18:00:07]ProducePacketName [18:00:07]name=ofd_packets/00260835 [18:00:07]NVStorageDeleteData [18:00:08]OFD Sender: No OFD packet to send [18:00:08]*** Cut start [18:00:08]*** Purtial cut [18:00:08]*** Stage 1: CUTSNS_PIN = 1 [18:00:10]Read from MH i2c: 01 [18:00:10]MH_I2C_Read... [18:00:10]*** Stop cut motor [18:00:10]*** Cut end [18:00:10]Read from MH i2c: 01 07 00 [18:00:10]MH_I2C_Read... [18:00:10]Read from MH i2c: 01 07 00 BD AD 00 00 00 00 00 FF 0F 7F [18:00:10]process_action close_receipt done [18:00:10]requested_data is exist [18:00:10]produce_requested_data [18:00:10]requested_item fm.sn is exist - process it [18:00:10]wFMCommunicate request_size=4 [18:00:10]MH_SAM_APDU [18:00:10]CAPDU: 80 11 00 00 [18:00:10]Write to MH i2c: E2 08 00 BE AD 80 11 00 00 00 00 00 00 E5 [18:00:10]Write i2c OK [18:00:10]MH_I2C_Read... [18:00:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:10]Read from MH i2c: E2 [18:00:10]MH_I2C_Read... [18:00:10]Read from MH i2c: E2 17 00 [18:00:10]MH_I2C_Read... [18:00:10]Read from MH i2c: E2 17 00 BE AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 32 [18:00:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:00:10]wFMCommunicate OK [18:00:10]requested_item fd.num is exist - process it [18:00:10]SAM_PROTO_GetFieldsCounters [18:00:10]wFMCommunicate request_size=4 [18:00:10]MH_SAM_APDU [18:00:10]CAPDU: 80 13 00 00 [18:00:10]Write to MH i2c: E2 08 00 BF AD 80 13 00 00 00 00 00 00 E8 [18:00:10]Write i2c OK [18:00:10]MH_I2C_Read... [18:00:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:00:10]Read from MH i2c: E2 [18:00:10]MH_I2C_Read... [18:00:10]Read from MH i2c: E2 62 00 [18:00:10]MH_I2C_Read... [18:00:10]Read from MH i2c: E2 62 00 BF AD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E3 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 89 01 00 00 5E 04 04 00 89 01 00 00 57 04 04 00 8A 01 00 00 19 04 04 00 00 00 00 00 90 00 47 [18:00:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E3 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 89 01 00 00 5E 04 04 00 89 01 00 00 57 04 04 00 8A 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:00:10]wFMCommunicate OK [18:00:10]SAM_PROTO_GetFieldsCounters done [18:00:10]requested_item shift.num is exist - process it [18:00:10]requested_item shift.opened is exist - process it [18:00:10]req_shift_opened [18:00:10]FM_GetShiftState [18:00:10]SAM_PROTO_GetShiftState [18:00:10]wFMCommunicate request_size=4 [18:00:10]MH_SAM_APDU [18:00:10]CAPDU: 80 13 01 00 [18:00:10]Write to MH i2c: E2 08 00 C0 AD 80 13 01 00 00 00 00 00 EA [18:00:10]Write i2c OK [18:00:10]MH_I2C_Read... [18:00:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:10]Read from MH i2c: E2 [18:00:10]MH_I2C_Read... [18:00:10]Read from MH i2c: E2 0E 00 [18:00:10]MH_I2C_Read... [18:00:10]Read from MH i2c: E2 0E 00 C0 AD 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 27 [18:00:10]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:00:10]wFMCommunicate OK [18:00:10]SAM_PROTO_GetShiftState done [18:00:10]FM_GetShiftState done [18:00:10]req_shift_opened done [18:00:10]requested_item shift.open_date is exist - process it [18:00:10]req_shift_open_date [18:00:10]req_shift_open_date done [18:00:10]produce_requested_data done [18:00:10]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260835,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:00:10]process_action_free close_receipt [18:00:10]json_value_free [18:00:10]json_value_free done [18:00:10]process_json_proto returns [18:00:10]Send response to host [18:00:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260835,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:00:10]free response buf [18:00:10]execute_script done [18:00:10]execute_script returns [18:00:10]free content buf [18:00:10]Sock 9.Close socket [18:00:10]Sock 9.Thread stoped [18:00:13]OFD Sender: No OFD packet to send [18:00:18]OFD Sender: No OFD packet to send [18:00:23]OFD Sender: No OFD packet to send [18:00:28]OFD Sender: No OFD packet to send [18:00:33]OFD Sender: No OFD packet to send [18:00:38]OFD Sender: No OFD packet to send [18:00:43]OFD Sender: No OFD packet to send [18:00:48]OFD Sender: No OFD packet to send [18:00:53]OFD Sender: No OFD packet to send [18:00:58]OFD Sender: No OFD packet to send [18:01:03]OFD Sender: No OFD packet to send [18:01:08]OFD Sender: No OFD packet to send [18:01:13]OFD Sender: No OFD packet to send [18:01:18]OFD Sender: No OFD packet to send [18:01:23]OFD Sender: No OFD packet to send [18:01:28]OFD Sender: No OFD packet to send [18:01:33]OFD Sender: No OFD packet to send [18:01:38]OFD Sender: No OFD packet to send [18:01:43]OFD Sender: No OFD packet to send [18:01:48]OFD Sender: No OFD packet to send [18:01:53]OFD Sender: No OFD packet to send [18:01:53]accept exits with 7 [18:01:53]New connection [18:01:53]New thread 3066473828 created [18:01:53]Thread 3066617188 joined [18:01:53]Waiting for new connection... [18:01:53] Sock 7.Parse request [18:01:53]Sock 7.Check first char [18:01:53]Sock 7.First char is OK [18:01:53]request: POST /json_proto HTTP/1.0 [18:01:53]Method: POST [18:01:53]URL: /json_proto [18:01:53]Method is POST - this is cgi request [18:01:53]url: /json_proto [18:01:53]query_string will be loaded in cgi processing [18:01:53]execute_cgi json_proto POST (null) [18:01:53]execute_cgi path=json_proto method=POST [18:01:53]POST find Content-Length [18:01:53]Host: 172.17.55.133:8080 [18:01:53]Content-Length: 678 [18:01:53]Content-Type: application/json [18:01:53] [18:01:53]POST finish read [18:01:53]Found Content-Length = 678 [18:01:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036388", "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" : 74.20, "quantity" : 8.360, "sum" : 620.31, "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" ] } } [18:01:53]execute_script... [18:01:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036388", "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" : 74.20, "quantity" : 8.360, "sum" : 620.31, "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" ] } } [18:01:53]POST & json_proto [18:01:53]process_json_proto [18:01:53]json parsed OK: [18:01:53]protocol is kg_v1.0 [18:01:53]action value=close_receipt [18:01:53]process_action close_receipt [18:01:53]cmd_close_receipt [18:01:53]MH_GetDate [18:01:53]Write to MH i2c: F0 00 00 C1 AD 5D [18:01:53]Write i2c OK [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: F0 [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: F0 09 00 [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: F0 09 00 C1 AD 00 17 37 C2 66 34 48 D8 65 95 [18:01:53]GetLastDocTimeStamp 1724004011 [18:01:53]current date 1724004119 [18:01:53]FM_GetShiftState [18:01:53]SAM_PROTO_GetShiftState [18:01:53]wFMCommunicate request_size=4 [18:01:53]MH_SAM_APDU [18:01:53]CAPDU: 80 13 01 00 [18:01:53]Write to MH i2c: E2 08 00 C2 AD 80 13 01 00 00 00 00 00 EC [18:01:53]Write i2c OK [18:01:53]MH_I2C_Read... [18:01:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:53]Read from MH i2c: E2 [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: E2 0E 00 [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: E2 0E 00 C2 AD 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 29 [18:01:53]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:01:53]wFMCommunicate OK [18:01:53]SAM_PROTO_GetShiftState done [18:01:53]FM_GetShiftState done [18:01:53]opened in 1723940556 [18:01:53]opened+sec_in_day 1724026956 [18:01:53]quantity*price = 62031 [18:01:53]sum+1 = 62032 [18:01:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 620.00 Внесено: 620.00 СДАЧА: 0.00 НСП 1% : 5.49 НДС 12% : 65.87 Наличными: 620.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 394 18.08.2024 18:01 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260836 ФПД: 222364204382626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T180159&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260836&fm=222364204382626&tin=02508201610067®Number=0000000000091865&sum=62000 [18:01:54]StoreToDocumentArchive [18:01:54]shift 449 fd 260836 [18:01:54]save to /storage/0449/doc_00260836 [18:01:54]save last doc name /storage/0449/doc_00260836 to /storage/kkm_last_doc_name [18:01:54]save OK [18:01:54]Clear old archive folders... [18:01:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:01:54]tlvbuf is 00383260 [18:01:54]SAM_PROTO_ClearQueue [18:01:54]wFMCommunicate request_size=4 [18:01:54]MH_SAM_APDU [18:01:54]CAPDU: 80 09 00 00 [18:01:54]Write to MH i2c: E2 08 00 CF AD 80 09 00 00 00 00 00 00 EE [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:54]Read from MH i2c: E2 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 03 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 03 00 CF AD 00 90 00 F0 [18:01:54]RAPDU: 90 00 [18:01:54]wFMCommunicate OK [18:01:54]SAM_PROTO_ClearQueue done [18:01:54]KKMCreateOFDPacket [18:01:54]OFDProtocolAddRootSTLVToBuf [18:01:54]FM_MakeSignedData [18:01:54]FM_MakeSignedData [18:01:54]SAM_PROTO_SignData [18:01:54]wFMCommunicate request_size=4 [18:01:54]MH_SAM_APDU [18:01:54]CAPDU: 80 0D 01 02 [18:01:54]Write to MH i2c: E2 08 00 D0 AD 80 0D 01 02 00 00 00 00 F6 [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:54]Read from MH i2c: E2 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 03 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 03 00 D0 AD 00 90 00 F1 [18:01:54]RAPDU: 90 00 [18:01:54]wFMCommunicate OK [18:01:54]wFMCommunicate request_size=255 [18:01:54]MH_SAM_APDU [18:01: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 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 20 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 4F 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 BB 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 8A 01 00 00 F4 03 04 00 17 37 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E4 FA 03 00 35 04 06 00 CA [18:01:54]Write to MH i2c: E2 02 01 D1 AD 80 0D 02 02 FA 00 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 20 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 4F 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 BB 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 8A 01 00 00 F4 03 04 00 17 37 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E4 FA 03 00 35 04 06 00 CA 00 00 D0 [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:54]Read from MH i2c: E2 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 03 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 03 00 D1 AD 00 90 00 F2 [18:01:54]RAPDU: 90 00 [18:01:54]wFMCommunicate OK [18:01:54]wFMCommunicate request_size=10 [18:01:54]MH_SAM_APDU [18:01:54]CAPDU: 80 0D 02 02 05 3D 33 69 B9 A2 [18:01:54]Write to MH i2c: E2 0D 00 D2 AD 80 0D 02 02 05 00 3D 33 69 B9 A2 00 00 37 [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:54]Read from MH i2c: E2 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 03 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 03 00 D2 AD 00 90 00 F3 [18:01:54]RAPDU: 90 00 [18:01:54]wFMCommunicate OK [18:01:54]wFMCommunicate request_size=4 [18:01:54]MH_SAM_APDU [18:01:54]CAPDU: 80 0D 03 02 [18:01:54]Write to MH i2c: E2 08 00 D3 AD 80 0D 03 02 00 00 00 00 FB [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:54]Read from MH i2c: E2 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 0B 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 0B 00 D3 AD 00 89 9F 39 67 A2 7E 94 20 90 00 98 [18:01:54]RAPDU: 89 9F 39 67 A2 7E 94 20 90 00 [18:01:54]wFMCommunicate OK [18:01:54]SAM_PROTO_SignData done [18:01:54]FM_MakeSignedData done [18:01:54]CreateOFDProtocolMessage [18:01:54]wFMCommunicate request_size=4 [18:01:54]MH_SAM_APDU [18:01:54]CAPDU: 80 11 00 00 [18:01:54]Write to MH i2c: E2 08 00 D4 AD 80 11 00 00 00 00 00 00 FB [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:55]Read from MH i2c: E2 [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: E2 17 00 [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: E2 17 00 D4 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 48 [18:01:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:01:55]wFMCommunicate OK [18:01:55]CreateOFDProtocolMessage done [18:01:55]OFDSenderStorePacket 260836 [18:01:55]StoreOFDPacket docnum=260836 [18:01:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 FD 14 07 01 B3 D4 5A 03 01 00 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 20 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 4F 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 BB 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 8A 01 00 00 F4 03 04 00 17 37 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E4 FA 03 00 35 04 06 00 CA 3D 33 69 B9 A2 89 9F 39 67 A2 7E 94 20 [18:01:55]CheckFolder [18:01:55]dirname=/storage/ofd_packets [18:01:55]CheckFolder done [18:01:55]ProducePacketName [18:01:55]name=ofd_packets/00260836 [18:01:55]NVStorageSaveData ofd_packets/00260836 [18:01:55]File name is /storage/ofd_packets/00260836 [18:01:55]Write 301 bytes [18:01:55]NVStorageSaveData done [18:01:55]OFDSenderStorePacket done [18:01:55]KKMCreateOFDPacket done [18:01:55]NVStorageSaveData kkm_last_timestamp [18:01:55]File name is /storage/kkm_last_timestamp [18:01:55]Write 4 bytes [18:01:55]NVStorageSaveData done [18:01:55]ExternCall_PrintAddStr [18:01:55]wPrintStart [18:01:55]Write to MH i2c: 01 00 00 D5 AD 82 [18:01:55]Write i2c OK [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: 01 [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: 01 07 00 [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: 01 07 00 D5 AD 00 00 00 00 00 FF 0F 97 [18:01:55]RasterBufferAndPrint [18:01:55]line Счет N : (1)1036388 [18:01:55]line ИНН: 02508201610067 [18:01:55]line Контрольно-Кассовый Чек [18:01:55]line ПРОДАЖА [18:01:55]line ТРК (МРК, ГНК) : 13 [18:01:55]line Товар: 2710124500 [18:01:55]line Аи-95-К-5 [18:01:55]line 8.360 * 74.20 [18:01:55]line = 620.31 [18:01:55]line НДС 12% НСП 1% [18:01:55]line > о реализуемом товаре [18:01:55]line ОКРУГЛЕНИЕ: -0.31 [18:01:55]line ИТОГО: 620.00 [18:01:55]line Внесено: 620.00 [18:01:55]line СДАЧА: 0.00 [18:01:55]line НСП 1% : 5.49 [18:01:55]line НДС 12% : 65.87 [18:01:55]line Наличными: 620.00 [18:01:55]line Безнал.: 0.00 [18:01:55]line Место: АЗС № 94 "Партнер Нефть" [18:01:55]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:01:55]line СНО: Общий режим [18:01:55]line Чек 394 18.08.2024 18:01 [18:01:55]line Смена: 449 ФФД: 1.0 [18:01:55]line ЗНМ: 0300000099 [18:01:55]line РНМ: 0000000000091865 [18:01:55]line Версия ККМ: 001 [18:01:55]line ФМ: 0000000000871820 [18:01:55]line ФД: 260836 [18:01:55]line ФПД: 222364204382626 [18:01:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T180159&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260836&fm=222364204382626&tin=02508201610067®Number=0000000000091865&sum=62000 [18:01:55]written 0, free lines is 4095 [18:01:55]OFD Sender: Processing packet 260836 [packets to send 192, broken 191] [18:01:55]ProducePacketName [18:01:55]name=ofd_packets/00260836 [18:01:55]OFD Sender: To server: pG, [18:01:55]CommunicateWithHost lk.salyk.kg:30040 [18:01:55]ConnectInit lk.salyk.kg [18:01:55]Connected sock=10 [18:01: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 30 0F 01 00 00 FD 14 07 01 B3 D4 5A 03 01 00 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 20 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 4F 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 BB 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 8A 01 00 00 F4 03 04 00 17 37 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E4 FA 03 00 35 04 06 00 CA 3D 33 69 B9 A2 89 9F 39 67 A2 7E 94 20 [18:01: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 30 4F 00 00 00 5D 81 47 00 E2 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 30 10 04 04 00 E4 FA 03 00 F4 03 04 00 6B E0 C1 66 B6 04 01 00 00 70 EC 19 7E 28 72 3D 7D [18:01:55]CommunicateWithHost err = 0 [18:01:55]CheckOFDResponse [18:01:55]1017 (14) - 77093643461234 [18:01:55]1041 (16) - 0000000000871820 [18:01:55]1040 (4) - 260836 [18:01:55]1012 (4) - 18.08.2024 11:52 [18:01:55]1206 (1) - 0 [18:01:55]OFD Sender: Remove packet 260836 [18:01:55]ProducePacketName [18:01:55]name=ofd_packets/00260836 [18:01:55]NVStorageDeleteData [18:01:55]Write to MH i2c: 01 00 00 00 AE AE [18:01:55]Write i2c OK [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: 01 [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: 01 07 00 [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: 01 07 00 00 AE 00 00 00 00 00 6D 0C 2E [18:01:55]RasterBufferAndPrint [18:01:55]line [18:01:55]line [18:01:55]line [18:01:55]line [18:01:55]line [18:01:55]written 0, free lines is 3184 [18:01:55]MH_Cut [18:01:55]Write to MH i2c: D1 01 00 07 AE 01 87 [18:01:55]Write i2c OK [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: D1 [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: D1 01 00 [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: D1 01 00 07 AE 00 86 [18:01:55]Write to MH i2c: 01 00 00 08 AE B6 [18:01:55]Write i2c OK [18:01:55]MH_I2C_Read... [18:01:56]OFD Sender: No OFD packet to send [18:01:56]*** Cut start [18:01:56]*** Purtial cut [18:01:56]*** Stage 1: CUTSNS_PIN = 1 [18:01:58]Read from MH i2c: 01 [18:01:58]MH_I2C_Read... [18:01:58]*** Stop cut motor [18:01:58]*** Cut end [18:01:58]Read from MH i2c: 01 07 00 [18:01:58]MH_I2C_Read... [18:01:58]Read from MH i2c: 01 07 00 08 AE 00 00 00 00 00 FF 0F CB [18:01:58]process_action close_receipt done [18:01:58]requested_data is exist [18:01:58]produce_requested_data [18:01:58]requested_item fm.sn is exist - process it [18:01:58]wFMCommunicate request_size=4 [18:01:58]MH_SAM_APDU [18:01:58]CAPDU: 80 11 00 00 [18:01:58]Write to MH i2c: E2 08 00 09 AE 80 11 00 00 00 00 00 00 31 [18:01:58]Write i2c OK [18:01:58]MH_I2C_Read... [18:01:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:59]Read from MH i2c: E2 [18:01:59]MH_I2C_Read... [18:01:59]Read from MH i2c: E2 17 00 [18:01:59]MH_I2C_Read... [18:01:59]Read from MH i2c: E2 17 00 09 AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 7E [18:01:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:01:59]wFMCommunicate OK [18:01:59]requested_item fd.num is exist - process it [18:01:59]SAM_PROTO_GetFieldsCounters [18:01:59]wFMCommunicate request_size=4 [18:01:59]MH_SAM_APDU [18:01:59]CAPDU: 80 13 00 00 [18:01:59]Write to MH i2c: E2 08 00 0A AE 80 13 00 00 00 00 00 00 34 [18:01:59]Write i2c OK [18:01:59]MH_I2C_Read... [18:01:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:59]Read from MH i2c: E2 [18:01:59]MH_I2C_Read... [18:01:59]Read from MH i2c: E2 62 00 [18:01:59]MH_I2C_Read... [18:01:59]Read from MH i2c: E2 62 00 0A AE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E4 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 8A 01 00 00 5E 04 04 00 8A 01 00 00 57 04 04 00 8B 01 00 00 19 04 04 00 00 00 00 00 90 00 97 [18:01: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E4 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 8A 01 00 00 5E 04 04 00 8A 01 00 00 57 04 04 00 8B 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:01:59]wFMCommunicate OK [18:01:59]SAM_PROTO_GetFieldsCounters done [18:01:59]requested_item shift.num is exist - process it [18:01:59]requested_item shift.opened is exist - process it [18:01:59]req_shift_opened [18:01:59]FM_GetShiftState [18:01:59]SAM_PROTO_GetShiftState [18:01:59]wFMCommunicate request_size=4 [18:01:59]MH_SAM_APDU [18:01:59]CAPDU: 80 13 01 00 [18:01:59]Write to MH i2c: E2 08 00 0B AE 80 13 01 00 00 00 00 00 36 [18:01:59]Write i2c OK [18:01:59]MH_I2C_Read... [18:01:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:59]Read from MH i2c: E2 [18:01:59]MH_I2C_Read... [18:01:59]Read from MH i2c: E2 0E 00 [18:01:59]MH_I2C_Read... [18:01:59]Read from MH i2c: E2 0E 00 0B AE 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 73 [18:01:59]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:01:59]wFMCommunicate OK [18:01:59]SAM_PROTO_GetShiftState done [18:01:59]FM_GetShiftState done [18:01:59]req_shift_opened done [18:01:59]requested_item shift.open_date is exist - process it [18:01:59]req_shift_open_date [18:01:59]req_shift_open_date done [18:01:59]produce_requested_data done [18:01:59]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260836,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:01:59]process_action_free close_receipt [18:01:59]json_value_free [18:01:59]json_value_free done [18:01:59]process_json_proto returns [18:01:59]Send response to host [18:01:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260836,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:01:59]free response buf [18:01:59]execute_script done [18:01:59]execute_script returns [18:01:59]free content buf [18:01:59]Sock 7.Close socket [18:01:59]Sock 7.Thread stoped [18:01:59]accept exits with 9 [18:01:59]New connection [18:01:59]New thread 3066617188 created [18:01:59]Thread 3066473828 joined [18:01:59]Waiting for new connection... [18:01:59] Sock 9.Parse request [18:01:59]Sock 9.Check first char [18:01:59]Sock 9.First char is OK [18:01:59]request: POST /json_proto HTTP/1.0 [18:01:59]Method: POST [18:01:59]URL: /json_proto [18:01:59]Method is POST - this is cgi request [18:01:59]url: /json_proto [18:01:59]query_string will be loaded in cgi processing [18:01:59]execute_cgi json_proto POST (null) [18:01:59]execute_cgi path=json_proto method=POST [18:01:59]POST find Content-Length [18:01:59]Host: 172.17.55.133:8080 [18:01:59]Content-Length: 688 [18:01:59]Content-Type: application/json [18:01:59] [18:01:59]POST finish read [18:01:59]Found Content-Length = 688 [18:01:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:59]execute_script... [18: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)1036389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:59]POST & json_proto [18:01:59]process_json_proto [18:01:59]json parsed OK: [18:01:59]protocol is kg_v1.0 [18:01:59]action value=close_receipt [18:01:59]process_action close_receipt [18:01:59]cmd_close_receipt [18:01:59]MH_GetDate [18:01:59]Write to MH i2c: F0 00 00 0C AE A9 [18:01:59]Write i2c OK [18:01:59]MH_I2C_Read... [18:01:59]Read from MH i2c: F0 [18:01:59]MH_I2C_Read... [18:01:59]Read from MH i2c: F0 09 00 [18:01:59]MH_I2C_Read... [18:01:59]Read from MH i2c: F0 09 00 0C AE 00 1D 37 C2 66 34 48 D8 65 E7 [18:01:59]GetLastDocTimeStamp 1724004119 [18:01:59]current date 1724004125 [18:01:59]FM_GetShiftState [18:01:59]SAM_PROTO_GetShiftState [18:01:59]wFMCommunicate request_size=4 [18:01:59]MH_SAM_APDU [18:01:59]CAPDU: 80 13 01 00 [18:01:59]Write to MH i2c: E2 08 00 0D AE 80 13 01 00 00 00 00 00 38 [18:01:59]Write i2c OK [18:01:59]MH_I2C_Read... [18:01:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:59]Read from MH i2c: E2 [18:01:59]MH_I2C_Read... [18:01:59]Read from MH i2c: E2 0E 00 [18:01:59]MH_I2C_Read... [18:01:59]Read from MH i2c: E2 0E 00 0D AE 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 75 [18:01:59]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:01:59]wFMCommunicate OK [18:01:59]SAM_PROTO_GetShiftState done [18:01:59]FM_GetShiftState done [18:01:59]opened in 1723940556 [18:01:59]opened+sec_in_day 1724026956 [18:01:59]quantity*price = 100050 [18:01:59]sum+1 = 100052 [18:01:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 395 18.08.2024 18:02 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260837 ФПД: 23928233536516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T180205&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260837&fm=23928233536516&tin=02508201610067®Number=0000000000091865&sum=100000 [18:02:01]StoreToDocumentArchive [18:02:01]shift 449 fd 260837 [18:02:01]save to /storage/0449/doc_00260837 [18:02:01]save last doc name /storage/0449/doc_00260837 to /storage/kkm_last_doc_name [18:02:01]save OK [18:02:01]Clear old archive folders... [18:02:01]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:02:01]tlvbuf is 0057B4D0 [18:02:01]SAM_PROTO_ClearQueue [18:02:01]wFMCommunicate request_size=4 [18:02:01]MH_SAM_APDU [18:02:01]CAPDU: 80 09 00 00 [18:02:01]Write to MH i2c: E2 08 00 1A AE 80 09 00 00 00 00 00 00 3A [18:02:01]Write i2c OK [18:02:01]MH_I2C_Read... [18:02:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:02:01]Read from MH i2c: E2 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: E2 03 00 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: E2 03 00 1A AE 00 90 00 3C [18:02:01]RAPDU: 90 00 [18:02:01]wFMCommunicate OK [18:02:01]SAM_PROTO_ClearQueue done [18:02:01]KKMCreateOFDPacket [18:02:01]OFDProtocolAddRootSTLVToBuf [18:02:01]FM_MakeSignedData [18:02:01]FM_MakeSignedData [18:02:01]SAM_PROTO_SignData [18:02:01]wFMCommunicate request_size=4 [18:02:01]MH_SAM_APDU [18:02:01]CAPDU: 80 0D 01 02 [18:02:01]Write to MH i2c: E2 08 00 1B AE 80 0D 01 02 00 00 00 00 42 [18:02:01]Write i2c OK [18:02:01]MH_I2C_Read... [18:02:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:02:01]Read from MH i2c: E2 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: E2 03 00 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: E2 03 00 1B AE 00 90 00 3D [18:02:01]RAPDU: 90 00 [18:02:01]wFMCommunicate OK [18:02:01]wFMCommunicate request_size=255 [18:02:01]MH_SAM_APDU [18:02:01]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 01 00 00 F4 03 04 00 1D 37 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E5 FA 03 00 35 04 06 00 [18:02:01]Write to MH i2c: E2 02 01 1C AE 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 01 00 00 F4 03 04 00 1D 37 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E5 FA 03 00 35 04 06 00 00 00 58 [18:02:01]OFD Sender: No OFD packet to send [18:02:01]Write i2c OK [18:02:01]MH_I2C_Read... [18:02:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:01]Read from MH i2c: E2 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: E2 03 00 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: E2 03 00 1C AE 00 90 00 3E [18:02:01]RAPDU: 90 00 [18:02:01]wFMCommunicate OK [18:02:01]wFMCommunicate request_size=11 [18:02:01]MH_SAM_APDU [18:02:01]CAPDU: 80 0D 02 02 06 15 C3 39 DC 2C 04 [18:02:01]Write to MH i2c: E2 0E 00 1D AE 80 0D 02 02 06 00 15 C3 39 DC 2C 04 00 00 6E [18:02:01]Write i2c OK [18:02:01]MH_I2C_Read... [18:02:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:01]Read from MH i2c: E2 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: E2 03 00 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: E2 03 00 1D AE 00 90 00 3F [18:02:01]RAPDU: 90 00 [18:02:01]wFMCommunicate OK [18:02:01]wFMCommunicate request_size=4 [18:02:01]MH_SAM_APDU [18:02:01]CAPDU: 80 0D 03 02 [18:02:01]Write to MH i2c: E2 08 00 1E AE 80 0D 03 02 00 00 00 00 47 [18:02:01]Write i2c OK [18:02:01]MH_I2C_Read... [18:02:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:02:01]Read from MH i2c: E2 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: E2 0B 00 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: E2 0B 00 1E AE 00 E6 7E DF D8 67 9C C5 6C 90 00 97 [18:02:01]RAPDU: E6 7E DF D8 67 9C C5 6C 90 00 [18:02:01]wFMCommunicate OK [18:02:01]SAM_PROTO_SignData done [18:02:01]FM_MakeSignedData done [18:02:01]CreateOFDProtocolMessage [18:02:01]wFMCommunicate request_size=4 [18:02:01]MH_SAM_APDU [18:02:01]CAPDU: 80 11 00 00 [18:02:01]Write to MH i2c: E2 08 00 1F AE 80 11 00 00 00 00 00 00 47 [18:02:01]Write i2c OK [18:02:01]MH_I2C_Read... [18:02:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:01]Read from MH i2c: E2 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: E2 17 00 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: E2 17 00 1F AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 94 [18:02:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:02:01]wFMCommunicate OK [18:02:01]CreateOFDProtocolMessage done [18:02:01]OFDSenderStorePacket 260837 [18:02:01]StoreOFDPacket docnum=260837 [18: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 30 10 01 00 00 44 69 08 01 83 B1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 01 00 00 F4 03 04 00 1D 37 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E5 FA 03 00 35 04 06 00 15 C3 39 DC 2C 04 E6 7E DF D8 67 9C C5 6C [18:02:01]CheckFolder [18:02:01]dirname=/storage/ofd_packets [18:02:01]CheckFolder done [18:02:01]ProducePacketName [18:02:01]name=ofd_packets/00260837 [18:02:01]NVStorageSaveData ofd_packets/00260837 [18:02:01]File name is /storage/ofd_packets/00260837 [18:02:01]Write 302 bytes [18:02:01]NVStorageSaveData done [18:02:01]OFDSenderStorePacket done [18:02:01]KKMCreateOFDPacket done [18:02:01]NVStorageSaveData kkm_last_timestamp [18:02:01]File name is /storage/kkm_last_timestamp [18:02:01]Write 4 bytes [18:02:01]NVStorageSaveData done [18:02:01]ExternCall_PrintAddStr [18:02:01]wPrintStart [18:02:01]Write to MH i2c: 01 00 00 20 AE CE [18:02:01]Write i2c OK [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: 01 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: 01 07 00 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: 01 07 00 20 AE 00 00 00 00 00 FF 0F E3 [18:02:01]RasterBufferAndPrint [18:02:01]line Счет N : (1)1036389 [18:02:01]line ИНН: 02508201610067 [18:02:01]line Контрольно-Кассовый Чек [18:02:01]line ПРОДАЖА [18:02:01]line ТРК (МРК, ГНК) : 33 [18:02:01]line Товар: 2710194210 [18:02:01]line ДТ(л)-К-4 [18:02:01]line 13.130 * 76.20 [18:02:01]line = 1000.51 [18:02:01]line НДС 12% НСП 1% [18:02:01]line > о реализуемом товаре [18:02:01]line ОКРУГЛЕНИЕ: -0.51 [18:02:01]line ИТОГО: 1000.00 [18:02:01]line Внесено: 1000.00 [18:02:01]line СДАЧА: 0.00 [18:02:01]line НСП 1% : 8.85 [18:02:01]line НДС 12% : 106.25 [18:02:01]line Наличными: 1000.00 [18:02:01]line Безнал.: 0.00 [18:02:01]line Место: АЗС № 94 "Партнер Нефть" [18:02:01]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:02:01]line СНО: Общий режим [18:02:01]line Чек 395 18.08.2024 18:02 [18:02:01]line Смена: 449 ФФД: 1.0 [18:02:01]line ЗНМ: 0300000099 [18:02:01]line РНМ: 0000000000091865 [18:02:01]line Версия ККМ: 001 [18:02:01]line ФМ: 0000000000871820 [18:02:01]line ФД: 260837 [18:02:01]line ФПД: 23928233536516 [18:02:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T180205&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260837&fm=23928233536516&tin=02508201610067®Number=0000000000091865&sum=100000 [18:02:01]written 0, free lines is 4095 [18:02:01]OFD Sender: Processing packet 260837 [packets to send 192, broken 191] [18:02:01]ProducePacketName [18:02:01]name=ofd_packets/00260837 [18:02:01]OFD Sender: To server: pG, [18:02:01]CommunicateWithHost lk.salyk.kg:30040 [18:02:01]ConnectInit lk.salyk.kg [18:02:01]Connected sock=10 [18:02: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 30 10 01 00 00 44 69 08 01 83 B1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 01 00 00 F4 03 04 00 1D 37 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E5 FA 03 00 35 04 06 00 15 C3 39 DC 2C 04 E6 7E DF D8 67 9C C5 6C [18: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 30 4F 00 00 00 46 5C 47 00 50 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E5 FA 03 00 F4 03 04 00 72 E0 C1 66 B6 04 01 00 00 D5 1E 98 9E 9D BA 85 2B [18:02:02]CommunicateWithHost err = 0 [18:02:02]CheckOFDResponse [18:02:02]1017 (14) - 77093643461234 [18:02:02]1041 (16) - 0000000000871820 [18:02:02]1040 (4) - 260837 [18:02:02]1012 (4) - 18.08.2024 11:52 [18:02:02]1206 (1) - 0 [18:02:02]OFD Sender: Remove packet 260837 [18:02:02]ProducePacketName [18:02:02]name=ofd_packets/00260837 [18:02:02]NVStorageDeleteData [18:02:02]Write to MH i2c: 01 00 00 4B AE F9 [18:02:02]Write i2c OK [18:02:02]MH_I2C_Read... [18:02:02]Read from MH i2c: 01 [18:02:02]MH_I2C_Read... [18:02:02]Read from MH i2c: 01 07 00 [18:02:02]MH_I2C_Read... [18:02:02]Read from MH i2c: 01 07 00 4B AE 00 00 00 00 00 6C 0C 78 [18:02:02]RasterBufferAndPrint [18:02:02]line [18:02:02]line [18:02:02]line [18:02:02]line [18:02:02]line [18:02:02]written 0, free lines is 3185 [18:02:02]MH_Cut [18:02:02]Write to MH i2c: D1 01 00 52 AE 01 D2 [18:02:02]Write i2c OK [18:02:02]MH_I2C_Read... [18:02:02]Read from MH i2c: D1 [18:02:02]MH_I2C_Read... [18:02:02]Read from MH i2c: D1 01 00 [18:02:02]MH_I2C_Read... [18:02:02]Read from MH i2c: D1 01 00 52 AE 00 D1 [18:02:02]Write to MH i2c: 01 00 00 53 AE 01 [18:02:02]Write i2c OK [18:02:02]MH_I2C_Read... [18:02:02]OFD Sender: No OFD packet to send [18:02:03]*** Cut start [18:02:03]*** Purtial cut [18:02:03]*** Stage 1: CUTSNS_PIN = 1 [18:02:05]Read from MH i2c: 01 [18:02:05]MH_I2C_Read... [18:02:05]*** Stop cut motor [18:02:05]*** Cut end [18:02:05]Read from MH i2c: 01 07 00 [18:02:05]MH_I2C_Read... [18:02:05]Read from MH i2c: 01 07 00 53 AE 00 00 00 00 00 FF 0F 16 [18:02:05]process_action close_receipt done [18:02:05]requested_data is exist [18:02:05]produce_requested_data [18:02:05]requested_item fm.sn is exist - process it [18:02:05]wFMCommunicate request_size=4 [18:02:05]MH_SAM_APDU [18:02:05]CAPDU: 80 11 00 00 [18:02:05]Write to MH i2c: E2 08 00 54 AE 80 11 00 00 00 00 00 00 7C [18:02:05]Write i2c OK [18:02:05]MH_I2C_Read... [18:02:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:05]Read from MH i2c: E2 [18:02:05]MH_I2C_Read... [18:02:05]Read from MH i2c: E2 17 00 [18:02:05]MH_I2C_Read... [18:02:05]Read from MH i2c: E2 17 00 54 AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C9 [18:02:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:02:05]wFMCommunicate OK [18:02:05]requested_item fd.num is exist - process it [18:02:05]SAM_PROTO_GetFieldsCounters [18:02:05]wFMCommunicate request_size=4 [18:02:05]MH_SAM_APDU [18:02:05]CAPDU: 80 13 00 00 [18:02:05]Write to MH i2c: E2 08 00 55 AE 80 13 00 00 00 00 00 00 7F [18:02:05]Write i2c OK [18:02:05]MH_I2C_Read... [18:02:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:02:05]Read from MH i2c: E2 [18:02:05]MH_I2C_Read... [18:02:05]Read from MH i2c: E2 62 00 [18:02:05]MH_I2C_Read... [18:02:05]Read from MH i2c: E2 62 00 55 AE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E5 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 8B 01 00 00 5E 04 04 00 8B 01 00 00 57 04 04 00 8C 01 00 00 19 04 04 00 00 00 00 00 90 00 E6 [18:02: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E5 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 8B 01 00 00 5E 04 04 00 8B 01 00 00 57 04 04 00 8C 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:02:05]wFMCommunicate OK [18:02:05]SAM_PROTO_GetFieldsCounters done [18:02:05]requested_item shift.num is exist - process it [18:02:05]requested_item shift.opened is exist - process it [18:02:05]req_shift_opened [18:02:05]FM_GetShiftState [18:02:05]SAM_PROTO_GetShiftState [18:02:05]wFMCommunicate request_size=4 [18:02:05]MH_SAM_APDU [18:02:05]CAPDU: 80 13 01 00 [18:02:05]Write to MH i2c: E2 08 00 56 AE 80 13 01 00 00 00 00 00 81 [18:02:05]Write i2c OK [18:02:05]MH_I2C_Read... [18:02:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:05]Read from MH i2c: E2 [18:02:05]MH_I2C_Read... [18:02:05]Read from MH i2c: E2 0E 00 [18:02:05]MH_I2C_Read... [18:02:05]Read from MH i2c: E2 0E 00 56 AE 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 BE [18:02:05]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:02:05]wFMCommunicate OK [18:02:05]SAM_PROTO_GetShiftState done [18:02:05]FM_GetShiftState done [18:02:05]req_shift_opened done [18:02:05]requested_item shift.open_date is exist - process it [18:02:05]req_shift_open_date [18:02:05]req_shift_open_date done [18:02:05]produce_requested_data done [18:02:05]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260837,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:02:05]process_action_free close_receipt [18:02:05]json_value_free [18:02:05]json_value_free done [18:02:05]process_json_proto returns [18:02:05]Send response to host [18:02:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260837,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:02:05]free response buf [18:02:05]execute_script done [18:02:05]execute_script returns [18:02:05]free content buf [18:02:05]Sock 9.Close socket [18:02:05]Sock 9.Thread stoped [18:02:07]OFD Sender: No OFD packet to send [18:02:12]OFD Sender: No OFD packet to send [18:02:17]OFD Sender: No OFD packet to send [18:02:22]OFD Sender: No OFD packet to send [18:02:27]OFD Sender: No OFD packet to send [18:02:32]OFD Sender: No OFD packet to send [18:02:37]OFD Sender: No OFD packet to send [18:02:42]OFD Sender: No OFD packet to send [18:02:47]OFD Sender: No OFD packet to send [18:02:52]OFD Sender: No OFD packet to send [18:02:57]OFD Sender: No OFD packet to send [18:03:02]OFD Sender: No OFD packet to send [18:03:07]OFD Sender: No OFD packet to send [18:03:12]OFD Sender: No OFD packet to send [18:03:17]OFD Sender: No OFD packet to send [18:03:22]OFD Sender: No OFD packet to send [18:03:27]OFD Sender: No OFD packet to send [18:03:32]OFD Sender: No OFD packet to send [18:03:37]OFD Sender: No OFD packet to send [18:03:42]OFD Sender: No OFD packet to send [18:03:47]OFD Sender: No OFD packet to send [18:03:52]OFD Sender: No OFD packet to send [18:03:57]OFD Sender: No OFD packet to send [18:04:02]OFD Sender: No OFD packet to send [18:04:07]OFD Sender: No OFD packet to send [18:04:12]OFD Sender: No OFD packet to send [18:04:17]OFD Sender: No OFD packet to send [18:04:22]OFD Sender: No OFD packet to send [18:04:27]OFD Sender: No OFD packet to send [18:04:32]OFD Sender: No OFD packet to send [18:04:37]OFD Sender: No OFD packet to send [18:04:42]accept exits with 7 [18:04:42]New connection [18:04:42]New thread 3066473828 created [18:04:42]Thread 3066617188 joined [18:04:42]Waiting for new connection... [18:04:42] Sock 7.Parse request [18:04:42]Sock 7.Check first char [18:04:42]Sock 7.First char is OK [18:04:42]request: POST /json_proto HTTP/1.0 [18:04:42]Method: POST [18:04:42]URL: /json_proto [18:04:42]Method is POST - this is cgi request [18:04:42]url: /json_proto [18:04:42]query_string will be loaded in cgi processing [18:04:42]execute_cgi json_proto POST (null) [18:04:42]execute_cgi path=json_proto method=POST [18:04:42]POST find Content-Length [18:04:42]Host: 172.17.55.133:8080 [18:04:42]Content-Length: 678 [18:04:42]Content-Type: application/json [18:04:42] [18:04:42]POST finish read [18:04:42]Found Content-Length = 678 [18:04:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "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" ] } } [18:04:42]execute_script... [18:04: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)1036391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "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" ] } } [18:04:42]POST & json_proto [18:04:42]process_json_proto [18:04:42]json parsed OK: [18:04:42]protocol is kg_v1.0 [18:04:42]action value=close_receipt [18:04:42]process_action close_receipt [18:04:42]cmd_close_receipt [18:04:42]MH_GetDate [18:04:42]Write to MH i2c: F0 00 00 57 AE F4 [18:04:42]Write i2c OK [18:04:42]MH_I2C_Read... [18:04:42]Read from MH i2c: F0 [18:04:42]MH_I2C_Read... [18:04:42]Read from MH i2c: F0 09 00 [18:04:42]MH_I2C_Read... [18:04:42]Read from MH i2c: F0 09 00 57 AE 00 C0 37 C2 66 34 48 D8 65 D5 [18:04:42]GetLastDocTimeStamp 1724004125 [18:04:42]current date 1724004288 [18:04:42]FM_GetShiftState [18:04:42]SAM_PROTO_GetShiftState [18:04:42]wFMCommunicate request_size=4 [18:04:42]MH_SAM_APDU [18:04:42]CAPDU: 80 13 01 00 [18:04:42]Write to MH i2c: E2 08 00 58 AE 80 13 01 00 00 00 00 00 83 [18:04:42]Write i2c OK [18:04:42]MH_I2C_Read... [18:04:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:42]OFD Sender: No OFD packet to send [18:04:42]Read from MH i2c: E2 [18:04:42]MH_I2C_Read... [18:04:42]Read from MH i2c: E2 0E 00 [18:04:42]MH_I2C_Read... [18:04:42]Read from MH i2c: E2 0E 00 58 AE 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C0 [18:04:42]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:04:42]wFMCommunicate OK [18:04:42]SAM_PROTO_GetShiftState done [18:04:42]FM_GetShiftState done [18:04:42]opened in 1723940556 [18:04:42]opened+sec_in_day 1724026956 [18:04:42]quantity*price = 25018 [18:04:42]sum+1 = 25019 [18:04:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 396 18.08.2024 18:04 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260838 ФПД: 95329597409925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T180448&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260838&fm=95329597409925&tin=02508201610067®Number=0000000000091865&sum=25000 [18:04:43]StoreToDocumentArchive [18:04:43]shift 449 fd 260838 [18:04:43]save to /storage/0449/doc_00260838 [18:04:43]save last doc name /storage/0449/doc_00260838 to /storage/kkm_last_doc_name [18:04:43]save OK [18:04:43]Clear old archive folders... [18:04:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:04:43]tlvbuf is 003F50A0 [18:04:43]SAM_PROTO_ClearQueue [18:04:43]wFMCommunicate request_size=4 [18:04:43]MH_SAM_APDU [18:04:43]CAPDU: 80 09 00 00 [18:04:43]Write to MH i2c: E2 08 00 65 AE 80 09 00 00 00 00 00 00 85 [18:04:43]Write i2c OK [18:04:43]MH_I2C_Read... [18:04:43]Read from MH i2c: E2 [18:04:43]MH_I2C_Read... [18:04:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:04:43]Read from MH i2c: E2 03 00 [18:04:43]MH_I2C_Read... [18:04:43]Read from MH i2c: E2 03 00 65 AE 00 90 00 87 [18:04:43]RAPDU: 90 00 [18:04:43]wFMCommunicate OK [18:04:43]SAM_PROTO_ClearQueue done [18:04:43]KKMCreateOFDPacket [18:04:43]OFDProtocolAddRootSTLVToBuf [18:04:43]FM_MakeSignedData [18:04:43]FM_MakeSignedData [18:04:43]SAM_PROTO_SignData [18:04:43]wFMCommunicate request_size=4 [18:04:43]MH_SAM_APDU [18:04:43]CAPDU: 80 0D 01 02 [18:04:43]Write to MH i2c: E2 08 00 66 AE 80 0D 01 02 00 00 00 00 8D [18:04:43]Write i2c OK [18:04:43]MH_I2C_Read... [18:04:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:04:44]Read from MH i2c: E2 [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: E2 03 00 [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: E2 03 00 66 AE 00 90 00 88 [18:04:44]RAPDU: 90 00 [18:04:44]wFMCommunicate OK [18:04:44]wFMCommunicate request_size=255 [18:04:44]MH_SAM_APDU [18:04:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 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 8C 01 00 00 F4 03 04 00 C0 37 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E6 FA 03 00 35 04 06 00 56 [18:04:44]Write to MH i2c: E2 02 01 67 AE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 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 8C 01 00 00 F4 03 04 00 C0 37 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E6 FA 03 00 35 04 06 00 56 00 00 BF [18:04:44]Write i2c OK [18:04:44]MH_I2C_Read... [18:04:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:44]Read from MH i2c: E2 [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: E2 03 00 [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: E2 03 00 67 AE 00 90 00 89 [18:04:44]RAPDU: 90 00 [18:04:44]wFMCommunicate OK [18:04:44]wFMCommunicate request_size=10 [18:04:44]MH_SAM_APDU [18:04:44]CAPDU: 80 0D 02 02 05 B3 A6 CA 4A 85 [18:04:44]Write to MH i2c: E2 0D 00 68 AE 80 0D 02 02 05 00 B3 A6 CA 4A 85 00 00 8C [18:04:44]Write i2c OK [18:04:44]MH_I2C_Read... [18:04:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:44]Read from MH i2c: E2 [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: E2 03 00 [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: E2 03 00 68 AE 00 90 00 8A [18:04:44]RAPDU: 90 00 [18:04:44]wFMCommunicate OK [18:04:44]wFMCommunicate request_size=4 [18:04:44]MH_SAM_APDU [18:04:44]CAPDU: 80 0D 03 02 [18:04:44]Write to MH i2c: E2 08 00 69 AE 80 0D 03 02 00 00 00 00 92 [18:04:44]Write i2c OK [18:04:44]MH_I2C_Read... [18:04:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:04:44]Read from MH i2c: E2 [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: E2 0B 00 [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: E2 0B 00 69 AE 00 DF 97 FC 8E 37 9B 2D F2 90 00 84 [18:04:44]RAPDU: DF 97 FC 8E 37 9B 2D F2 90 00 [18:04:44]wFMCommunicate OK [18:04:44]SAM_PROTO_SignData done [18:04:44]FM_MakeSignedData done [18:04:44]CreateOFDProtocolMessage [18:04:44]wFMCommunicate request_size=4 [18:04:44]MH_SAM_APDU [18:04:44]CAPDU: 80 11 00 00 [18:04:44]Write to MH i2c: E2 08 00 6A AE 80 11 00 00 00 00 00 00 92 [18:04:44]Write i2c OK [18:04:44]MH_I2C_Read... [18:04:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:44]Read from MH i2c: E2 [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: E2 17 00 [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: E2 17 00 6A AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 DF [18:04:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:04:44]wFMCommunicate OK [18:04:44]CreateOFDProtocolMessage done [18:04:44]OFDSenderStorePacket 260838 [18:04:44]StoreOFDPacket docnum=260838 [18:04:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 EE B3 07 01 BC 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 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 8C 01 00 00 F4 03 04 00 C0 37 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E6 FA 03 00 35 04 06 00 56 B3 A6 CA 4A 85 DF 97 FC 8E 37 9B 2D F2 [18:04:44]CheckFolder [18:04:44]dirname=/storage/ofd_packets [18:04:44]CheckFolder done [18:04:44]ProducePacketName [18:04:44]name=ofd_packets/00260838 [18:04:44]NVStorageSaveData ofd_packets/00260838 [18:04:44]File name is /storage/ofd_packets/00260838 [18:04:44]Write 301 bytes [18:04:44]NVStorageSaveData done [18:04:44]OFDSenderStorePacket done [18:04:44]KKMCreateOFDPacket done [18:04:44]NVStorageSaveData kkm_last_timestamp [18:04:44]File name is /storage/kkm_last_timestamp [18:04:44]Write 4 bytes [18:04:44]NVStorageSaveData done [18:04:44]ExternCall_PrintAddStr [18:04:44]wPrintStart [18:04:44]Write to MH i2c: 01 00 00 6B AE 19 [18:04:44]Write i2c OK [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: 01 [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: 01 07 00 [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: 01 07 00 6B AE 00 00 00 00 00 FF 0F 2E [18:04:44]RasterBufferAndPrint [18:04:44]line Счет N : (1)1036391 [18:04:44]line ИНН: 02508201610067 [18:04:44]line Контрольно-Кассовый Чек [18:04:44]line ПРОДАЖА [18:04:44]line ТРК (МРК, ГНК) : 32 [18:04:44]line Товар: 2710124130 [18:04:44]line Аи-92-К-5 [18:04:44]line 3.690 * 67.80 [18:04:44]line = 250.18 [18:04:44]line НДС 12% НСП 1% [18:04:44]line > о реализуемом товаре [18:04:44]line ОКРУГЛЕНИЕ: -0.18 [18:04:44]line ИТОГО: 250.00 [18:04:44]line Внесено: 250.00 [18:04:44]line СДАЧА: 0.00 [18:04:44]line НСП 1% : 2.21 [18:04:44]line НДС 12% : 26.57 [18:04:44]line Наличными: 250.00 [18:04:44]line Безнал.: 0.00 [18:04:44]line Место: АЗС № 94 "Партнер Нефть" [18:04:44]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:04:44]line СНО: Общий режим [18:04:44]line Чек 396 18.08.2024 18:04 [18:04:44]line Смена: 449 ФФД: 1.0 [18:04:44]line ЗНМ: 0300000099 [18:04:44]line РНМ: 0000000000091865 [18:04:44]line Версия ККМ: 001 [18:04:44]line ФМ: 0000000000871820 [18:04:44]line ФД: 260838 [18:04:44]line ФПД: 95329597409925 [18:04:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T180448&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260838&fm=95329597409925&tin=02508201610067®Number=0000000000091865&sum=25000 [18:04:44]OFD Sender: Processing packet 260838 [packets to send 192, broken 191] [18:04:44]ProducePacketName [18:04:44]name=ofd_packets/00260838 [18:04:44]OFD Sender: To server: pG, [18:04:44]CommunicateWithHost lk.salyk.kg:30040 [18:04:44]ConnectInit lk.salyk.kg [18:04:44]written 0, free lines is 4095 [18:04:44]Connected sock=10 [18:04: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 30 0F 01 00 00 EE B3 07 01 BC 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 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 8C 01 00 00 F4 03 04 00 C0 37 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E6 FA 03 00 35 04 06 00 56 B3 A6 CA 4A 85 DF 97 FC 8E 37 9B 2D F2 [18:04: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 30 4F 00 00 00 A2 14 47 00 AC D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E6 FA 03 00 F4 03 04 00 15 E1 C1 66 B6 04 01 00 00 1E 2F 9A 2E 18 D2 88 64 [18:04:45]CommunicateWithHost err = 0 [18:04:45]CheckOFDResponse [18:04:45]1017 (14) - 77093643461234 [18:04:45]1041 (16) - 0000000000871820 [18:04:45]1040 (4) - 260838 [18:04:45]1012 (4) - 18.08.2024 11:55 [18:04:45]1206 (1) - 0 [18:04:45]OFD Sender: Remove packet 260838 [18:04:45]ProducePacketName [18:04:45]name=ofd_packets/00260838 [18:04:45]NVStorageDeleteData [18:04:45]Write to MH i2c: 01 00 00 96 AE 44 [18:04:45]Write i2c OK [18:04:45]MH_I2C_Read... [18:04:45]Read from MH i2c: 01 [18:04:45]MH_I2C_Read... [18:04:45]Read from MH i2c: 01 07 00 [18:04:45]MH_I2C_Read... [18:04:45]Read from MH i2c: 01 07 00 96 AE 00 00 00 00 00 6F 0C C6 [18:04:45]RasterBufferAndPrint [18:04:45]line [18:04:45]line [18:04:45]line [18:04:45]line [18:04:45]line [18:04:45]written 0, free lines is 3186 [18:04:45]MH_Cut [18:04:45]Write to MH i2c: D1 01 00 9D AE 01 1D [18:04:45]Write i2c OK [18:04:45]MH_I2C_Read... [18:04:45]Read from MH i2c: D1 [18:04:45]MH_I2C_Read... [18:04:45]Read from MH i2c: D1 01 00 [18:04:45]MH_I2C_Read... [18:04:45]Read from MH i2c: D1 01 00 9D AE 00 1C [18:04:45]Write to MH i2c: 01 00 00 9E AE 4C [18:04:45]Write i2c OK [18:04:45]MH_I2C_Read... [18:04:45]OFD Sender: No OFD packet to send [18:04:46]*** Cut start [18:04:46]*** Purtial cut [18:04:46]*** Stage 1: CUTSNS_PIN = 1 [18:04:48]Read from MH i2c: 01 [18:04:48]MH_I2C_Read... [18:04:48]*** Stop cut motor [18:04:48]*** Cut end [18:04:48]Read from MH i2c: 01 07 00 [18:04:48]MH_I2C_Read... [18:04:48]Read from MH i2c: 01 07 00 9E AE 00 00 00 00 00 FF 0F 61 [18:04:48]process_action close_receipt done [18:04:48]requested_data is exist [18:04:48]produce_requested_data [18:04:48]requested_item fm.sn is exist - process it [18:04:48]wFMCommunicate request_size=4 [18:04:48]MH_SAM_APDU [18:04:48]CAPDU: 80 11 00 00 [18:04:48]Write to MH i2c: E2 08 00 9F AE 80 11 00 00 00 00 00 00 C7 [18:04:48]Write i2c OK [18:04:48]MH_I2C_Read... [18:04:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:48]Read from MH i2c: E2 [18:04:48]MH_I2C_Read... [18:04:48]Read from MH i2c: E2 17 00 [18:04:48]MH_I2C_Read... [18:04:48]Read from MH i2c: E2 17 00 9F AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 14 [18:04:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:04:48]wFMCommunicate OK [18:04:48]requested_item fd.num is exist - process it [18:04:48]SAM_PROTO_GetFieldsCounters [18:04:48]wFMCommunicate request_size=4 [18:04:48]MH_SAM_APDU [18:04:48]CAPDU: 80 13 00 00 [18:04:48]Write to MH i2c: E2 08 00 A0 AE 80 13 00 00 00 00 00 00 CA [18:04:48]Write i2c OK [18:04:48]MH_I2C_Read... [18:04:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:04:48]Read from MH i2c: E2 [18:04:48]MH_I2C_Read... [18:04:48]Read from MH i2c: E2 62 00 [18:04:48]MH_I2C_Read... [18:04:48]Read from MH i2c: E2 62 00 A0 AE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E6 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 8C 01 00 00 5E 04 04 00 8C 01 00 00 57 04 04 00 8D 01 00 00 19 04 04 00 00 00 00 00 90 00 35 [18:04: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E6 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 8C 01 00 00 5E 04 04 00 8C 01 00 00 57 04 04 00 8D 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:04:48]wFMCommunicate OK [18:04:48]SAM_PROTO_GetFieldsCounters done [18:04:48]requested_item shift.num is exist - process it [18:04:48]requested_item shift.opened is exist - process it [18:04:48]req_shift_opened [18:04:48]FM_GetShiftState [18:04:48]SAM_PROTO_GetShiftState [18:04:48]wFMCommunicate request_size=4 [18:04:48]MH_SAM_APDU [18:04:48]CAPDU: 80 13 01 00 [18:04:48]Write to MH i2c: E2 08 00 A1 AE 80 13 01 00 00 00 00 00 CC [18:04:48]Write i2c OK [18:04:48]MH_I2C_Read... [18:04:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:48]Read from MH i2c: E2 [18:04:48]MH_I2C_Read... [18:04:48]Read from MH i2c: E2 0E 00 [18:04:48]MH_I2C_Read... [18:04:48]Read from MH i2c: E2 0E 00 A1 AE 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 09 [18:04:48]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:04:48]wFMCommunicate OK [18:04:48]SAM_PROTO_GetShiftState done [18:04:48]FM_GetShiftState done [18:04:48]req_shift_opened done [18:04:48]requested_item shift.open_date is exist - process it [18:04:48]req_shift_open_date [18:04:48]req_shift_open_date done [18:04:48]produce_requested_data done [18:04:48]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260838,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:04:48]process_action_free close_receipt [18:04:48]json_value_free [18:04:48]json_value_free done [18:04:48]process_json_proto returns [18:04:48]Send response to host [18:04:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260838,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:04:48]free response buf [18:04:48]execute_script done [18:04:48]execute_script returns [18:04:48]free content buf [18:04:48]Sock 7.Close socket [18:04:48]Sock 7.Thread stoped [18:04:50]OFD Sender: No OFD packet to send [18:04:55]OFD Sender: No OFD packet to send [18:05:00]OFD Sender: No OFD packet to send [18:05:05]OFD Sender: No OFD packet to send [18:05:10]OFD Sender: No OFD packet to send [18:05:15]OFD Sender: No OFD packet to send [18:05:20]OFD Sender: No OFD packet to send [18:05:25]OFD Sender: No OFD packet to send [18:05:29]accept exits with 9 [18:05:29]New connection [18:05:29]New thread 3066617188 created [18:05:29]Thread 3066473828 joined [18:05:29]Waiting for new connection... [18:05:29] Sock 9.Parse request [18:05:29]Sock 9.Check first char [18:05:29]Sock 9.First char is OK [18:05:29]request: POST /json_proto HTTP/1.0 [18:05:29]Method: POST [18:05:29]URL: /json_proto [18:05:29]Method is POST - this is cgi request [18:05:29]url: /json_proto [18:05:29]query_string will be loaded in cgi processing [18:05:29]execute_cgi json_proto POST (null) [18:05:29]execute_cgi path=json_proto method=POST [18:05:29]POST find Content-Length [18:05:29]Host: 172.17.55.133:8080 [18:05:29]Content-Length: 793 [18:05:29]Content-Type: application/json [18:05:29] [18:05:29]POST finish read [18:05:29]Found Content-Length = 793 [18:05:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03508", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:29]execute_script... [18:05: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)1036390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03508", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:29]POST & json_proto [18:05:29]process_json_proto [18:05:29]json parsed OK: [18:05:29]protocol is kg_v1.0 [18:05:30]action value=close_receipt [18:05:30]process_action close_receipt [18:05:30]cmd_close_receipt [18:05:30]MH_GetDate [18:05:30]Write to MH i2c: F0 00 00 A2 AE 3F [18:05:30]Write i2c OK [18:05:30]MH_I2C_Read... [18:05:30]Read from MH i2c: F0 [18:05:30]MH_I2C_Read... [18:05:30]Read from MH i2c: F0 09 00 [18:05:30]MH_I2C_Read... [18:05:30]Read from MH i2c: F0 09 00 A2 AE 00 F0 37 C2 66 34 48 D8 65 50 [18:05:30]GetLastDocTimeStamp 1724004288 [18:05:30]current date 1724004336 [18:05:30]FM_GetShiftState [18:05:30]SAM_PROTO_GetShiftState [18:05:30]wFMCommunicate request_size=4 [18:05:30]MH_SAM_APDU [18:05:30]CAPDU: 80 13 01 00 [18:05:30]Write to MH i2c: E2 08 00 A3 AE 80 13 01 00 00 00 00 00 CE [18:05:30]Write i2c OK [18:05:30]MH_I2C_Read... [18:05:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:30]Read from MH i2c: E2 [18:05:30]MH_I2C_Read... [18:05:30]Read from MH i2c: E2 0E 00 [18:05:30]MH_I2C_Read... [18:05:30]Read from MH i2c: E2 0E 00 A3 AE 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 0B [18:05:30]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:05:30]wFMCommunicate OK [18:05:30]SAM_PROTO_GetShiftState done [18:05:30]FM_GetShiftState done [18:05:30]opened in 1723940556 [18:05:30]opened+sec_in_day 1724026956 [18:05:30]quantity*price = 0 [18:05:30]sum+1 = 1 [18:05:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 397 18.08.2024 18:05 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: Топливная Карта 03508 ФМ: 0000000000871820 ФД: 260839 ФПД: 33080566843963 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T180536&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260839&fm=33080566843963&tin=02508201610067®Number=0000000000091865&sum=0 [18:05:31]StoreToDocumentArchive [18:05:31]shift 449 fd 260839 [18:05:31]save to /storage/0449/doc_00260839 [18:05:31]save last doc name /storage/0449/doc_00260839 to /storage/kkm_last_doc_name [18:05:31]save OK [18:05:31]Clear old archive folders... [18:05:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:05:31]tlvbuf is 004C8C00 [18:05:31]SAM_PROTO_ClearQueue [18:05:31]wFMCommunicate request_size=4 [18:05:31]MH_SAM_APDU [18:05:31]CAPDU: 80 09 00 00 [18:05:31]Write to MH i2c: E2 08 00 B0 AE 80 09 00 00 00 00 00 00 D0 [18:05:31]Write i2c OK [18:05:31]MH_I2C_Read... [18:05:31]Read from MH i2c: E2 [18:05:31]MH_I2C_Read... [18:05:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:05:31]Read from MH i2c: E2 03 00 [18:05:31]MH_I2C_Read... [18:05:31]Read from MH i2c: E2 03 00 B0 AE 00 90 00 D2 [18:05:31]RAPDU: 90 00 [18:05:31]wFMCommunicate OK [18:05:31]SAM_PROTO_ClearQueue done [18:05:31]KKMCreateOFDPacket [18:05:31]OFDProtocolAddRootSTLVToBuf [18:05:31]FM_MakeSignedData [18:05:31]FM_MakeSignedData [18:05:31]SAM_PROTO_SignData [18:05:31]wFMCommunicate request_size=4 [18:05:31]MH_SAM_APDU [18:05:31]CAPDU: 80 0D 01 02 [18:05:31]Write to MH i2c: E2 08 00 B1 AE 80 0D 01 02 00 00 00 00 D8 [18:05:31]Write i2c OK [18:05:31]MH_I2C_Read... [18:05:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:05:31]Read from MH i2c: E2 [18:05:31]MH_I2C_Read... [18:05:31]Read from MH i2c: E2 03 00 [18:05:31]MH_I2C_Read... [18:05:31]Read from MH i2c: E2 03 00 B1 AE 00 90 00 D3 [18:05:31]RAPDU: 90 00 [18:05:31]wFMCommunicate OK [18:05:31]wFMCommunicate request_size=255 [18:05:31]MH_SAM_APDU [18:05:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8D 01 00 00 F4 03 04 00 F0 37 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E7 FA 03 00 35 04 06 00 1E [18:05:31]Write to MH i2c: E2 02 01 B2 AE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 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 8D 01 00 00 F4 03 04 00 F0 37 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E7 FA 03 00 35 04 06 00 1E 00 00 5D [18:05:31]Write i2c OK [18:05:31]MH_I2C_Read... [18:05:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:31]Read from MH i2c: E2 [18:05:31]MH_I2C_Read... [18:05:31]Read from MH i2c: E2 03 00 [18:05:31]MH_I2C_Read... [18:05:31]Read from MH i2c: E2 03 00 B2 AE 00 90 00 D4 [18:05:31]RAPDU: 90 00 [18:05:31]wFMCommunicate OK [18:05:31]wFMCommunicate request_size=10 [18:05:31]MH_SAM_APDU [18:05:31]CAPDU: 80 0D 02 02 05 16 2B 6F 8A 3B [18:05:31]Write to MH i2c: E2 0D 00 B3 AE 80 0D 02 02 05 00 16 2B 6F 8A 3B 00 00 5A [18:05:31]Write i2c OK [18:05:31]MH_I2C_Read... [18:05:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:31]Read from MH i2c: E2 [18:05:31]MH_I2C_Read... [18:05:31]Read from MH i2c: E2 03 00 [18:05:31]MH_I2C_Read... [18:05:31]Read from MH i2c: E2 03 00 B3 AE 00 90 00 D5 [18:05:31]RAPDU: 90 00 [18:05:31]wFMCommunicate OK [18:05:31]wFMCommunicate request_size=4 [18:05:31]MH_SAM_APDU [18:05:31]CAPDU: 80 0D 03 02 [18:05:31]Write to MH i2c: E2 08 00 B4 AE 80 0D 03 02 00 00 00 00 DD [18:05:31]Write i2c OK [18:05:31]MH_I2C_Read... [18:05:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:05:31]Read from MH i2c: E2 [18:05:31]MH_I2C_Read... [18:05:31]Read from MH i2c: E2 0B 00 [18:05:31]MH_I2C_Read... [18:05:31]Read from MH i2c: E2 0B 00 B4 AE 00 90 80 05 F2 E1 46 53 20 90 00 7F [18:05:31]RAPDU: 90 80 05 F2 E1 46 53 20 90 00 [18:05:31]wFMCommunicate OK [18:05:31]SAM_PROTO_SignData done [18:05:31]FM_MakeSignedData done [18:05:31]CreateOFDProtocolMessage [18:05:31]wFMCommunicate request_size=4 [18:05:31]MH_SAM_APDU [18:05:31]CAPDU: 80 11 00 00 [18:05:31]Write to MH i2c: E2 08 00 B5 AE 80 11 00 00 00 00 00 00 DD [18:05:31]Write i2c OK [18:05:31]MH_I2C_Read... [18:05:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:31]Read from MH i2c: E2 [18:05:31]MH_I2C_Read... [18:05:31]Read from MH i2c: E2 17 00 [18:05:31]MH_I2C_Read... [18:05:31]Read from MH i2c: E2 17 00 B5 AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 2A [18:05:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:05:31]wFMCommunicate OK [18:05:31]CreateOFDProtocolMessage done [18:05:31]OFDSenderStorePacket 260839 [18:05:31]StoreOFDPacket docnum=260839 [18:05:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 21 A8 07 01 5D 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8D 01 00 00 F4 03 04 00 F0 37 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E7 FA 03 00 35 04 06 00 1E 16 2B 6F 8A 3B 90 80 05 F2 E1 46 53 20 [18:05:31]CheckFolder [18:05:31]dirname=/storage/ofd_packets [18:05:31]CheckFolder done [18:05:31]ProducePacketName [18:05:31]name=ofd_packets/00260839 [18:05:31]NVStorageSaveData ofd_packets/00260839 [18:05:31]File name is /storage/ofd_packets/00260839 [18:05:31]Write 301 bytes [18:05:31]NVStorageSaveData done [18:05:31]OFDSenderStorePacket done [18:05:31]KKMCreateOFDPacket done [18:05:31]NVStorageSaveData kkm_last_timestamp [18:05:31]File name is /storage/kkm_last_timestamp [18:05:31]Write 4 bytes [18:05:31]NVStorageSaveData done [18:05:31]ExternCall_PrintAddStr [18:05:31]wPrintStart [18:05:31]Write to MH i2c: 01 00 00 B6 AE 64 [18:05:31]Write i2c OK [18:05:31]MH_I2C_Read... [18:05:31]Read from MH i2c: 01 [18:05:31]MH_I2C_Read... [18:05:31]Read from MH i2c: 01 07 00 [18:05:31]MH_I2C_Read... [18:05:31]Read from MH i2c: 01 07 00 B6 AE 00 00 00 00 00 FF 0F 79 [18:05:31]RasterBufferAndPrint [18:05:31]line Счет N : (1)1036390 [18:05:31]line ИНН: 02508201610067 [18:05:31]line Контрольно-Кассовый Чек [18:05:31]line ПРОДАЖА [18:05:31]line ТРК (МРК, ГНК) : 12 [18:05:31]line Товар: 2710124130 [18:05:31]line Аи-92-К-5 [18:05:31]line 40.000 * 0.00 [18:05:31]line = 0.00 [18:05:31]line НДС 12% НСП 1% [18:05:31]line > о реализуемом товаре [18:05:31]line ИТОГО: 0.00 [18:05:31]line НСП 1% : 0.00 [18:05:31]line НДС 12% : 0.00 [18:05:31]line Наличными: 0.00 [18:05:31]line Безнал.: 0.00 [18:05:31]line Место: АЗС № 94 "Партнер Нефть" [18:05:31]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:05:31]line СНО: Общий режим [18:05:31]line Чек 397 18.08.2024 18:05 [18:05:31]line Смена: 449 ФФД: 1.0 [18:05:31]line ЗНМ: 0300000099 [18:05:31]line РНМ: 0000000000091865 [18:05:31]line Версия ККМ: 001 [18:05:31]line Талоны: Топливная Карта [18:05:31]line 03508 [18:05:31]line ФМ: 0000000000871820 [18:05:31]line ФД: 260839 [18:05:31]line ФПД: 33080566843963 [18:05:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T180536&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260839&fm=33080566843963&tin=02508201610067®Number=0000000000091865&sum=0 [18:05:32]OFD Sender: Processing packet 260839 [packets to send 192, broken 191] [18:05:32]ProducePacketName [18:05:32]name=ofd_packets/00260839 [18:05:32]OFD Sender: To server: pG, [18:05:32]CommunicateWithHost lk.salyk.kg:30040 [18:05:32]ConnectInit lk.salyk.kg [18:05:32]written 0, free lines is 4095 [18:05:32]Connected sock=10 [18:05: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 30 0F 01 00 00 21 A8 07 01 5D 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8D 01 00 00 F4 03 04 00 F0 37 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E7 FA 03 00 35 04 06 00 1E 16 2B 6F 8A 3B 90 80 05 F2 E1 46 53 20 [18:05: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 30 4F 00 00 00 1E 26 47 00 E4 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 30 10 04 04 00 E7 FA 03 00 F4 03 04 00 44 E1 C1 66 B6 04 01 00 00 7F 5E 8B 7B EE 50 87 A9 [18:05:32]CommunicateWithHost err = 0 [18:05:32]CheckOFDResponse [18:05:32]1017 (14) - 77093643461234 [18:05:32]1041 (16) - 0000000000871820 [18:05:32]1040 (4) - 260839 [18:05:32]1012 (4) - 18.08.2024 11:55 [18:05:32]1206 (1) - 0 [18:05:32]OFD Sender: Remove packet 260839 [18:05:32]ProducePacketName [18:05:32]name=ofd_packets/00260839 [18:05:32]NVStorageDeleteData [18:05:32]Write to MH i2c: 01 00 00 E0 AE 8E [18:05:32]Write i2c OK [18:05:32]MH_I2C_Read... [18:05:32]Read from MH i2c: 01 [18:05:32]MH_I2C_Read... [18:05:32]Read from MH i2c: 01 07 00 [18:05:32]MH_I2C_Read... [18:05:32]Read from MH i2c: 01 07 00 E0 AE 00 00 00 00 00 89 0C 2A [18:05:32]RasterBufferAndPrint [18:05:32]line [18:05:32]line [18:05:32]line [18:05:32]line [18:05:32]line [18:05:32]written 0, free lines is 3213 [18:05:32]MH_Cut [18:05:32]Write to MH i2c: D1 01 00 E7 AE 01 67 [18:05:32]Write i2c OK [18:05:32]MH_I2C_Read... [18:05:32]Read from MH i2c: D1 [18:05:32]MH_I2C_Read... [18:05:32]Read from MH i2c: D1 01 00 [18:05:32]MH_I2C_Read... [18:05:32]Read from MH i2c: D1 01 00 E7 AE 00 66 [18:05:32]Write to MH i2c: 01 00 00 E8 AE 96 [18:05:32]Write i2c OK [18:05:32]MH_I2C_Read... [18:05:32]OFD Sender: No OFD packet to send [18:05:33]*** Cut start [18:05:33]*** Purtial cut [18:05:33]*** Stage 1: CUTSNS_PIN = 1 [18:05:35]Read from MH i2c: 01 [18:05:35]MH_I2C_Read... [18:05:35]*** Stop cut motor [18:05:35]*** Cut end [18:05:35]Read from MH i2c: 01 07 00 [18:05:35]MH_I2C_Read... [18:05:35]Read from MH i2c: 01 07 00 E8 AE 00 00 00 00 00 FF 0F AB [18:05:35]process_action close_receipt done [18:05:35]requested_data is exist [18:05:35]produce_requested_data [18:05:35]requested_item fm.sn is exist - process it [18:05:35]wFMCommunicate request_size=4 [18:05:35]MH_SAM_APDU [18:05:35]CAPDU: 80 11 00 00 [18:05:35]Write to MH i2c: E2 08 00 E9 AE 80 11 00 00 00 00 00 00 11 [18:05:35]Write i2c OK [18:05:35]MH_I2C_Read... [18:05:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:35]Read from MH i2c: E2 [18:05:35]MH_I2C_Read... [18:05:35]Read from MH i2c: E2 17 00 [18:05:35]MH_I2C_Read... [18:05:35]Read from MH i2c: E2 17 00 E9 AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 5E [18:05:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:05:35]wFMCommunicate OK [18:05:35]requested_item fd.num is exist - process it [18:05:35]SAM_PROTO_GetFieldsCounters [18:05:35]wFMCommunicate request_size=4 [18:05:35]MH_SAM_APDU [18:05:35]CAPDU: 80 13 00 00 [18:05:35]Write to MH i2c: E2 08 00 EA AE 80 13 00 00 00 00 00 00 14 [18:05:35]Write i2c OK [18:05:35]MH_I2C_Read... [18:05:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:05:35]Read from MH i2c: E2 [18:05:35]MH_I2C_Read... [18:05:35]Read from MH i2c: E2 62 00 [18:05:35]MH_I2C_Read... [18:05:35]Read from MH i2c: E2 62 00 EA AE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E7 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 8D 01 00 00 5E 04 04 00 8D 01 00 00 57 04 04 00 8E 01 00 00 19 04 04 00 00 00 00 00 90 00 83 [18:05: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E7 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 8D 01 00 00 5E 04 04 00 8D 01 00 00 57 04 04 00 8E 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:05:35]wFMCommunicate OK [18:05:35]SAM_PROTO_GetFieldsCounters done [18:05:35]requested_item shift.num is exist - process it [18:05:35]requested_item shift.opened is exist - process it [18:05:35]req_shift_opened [18:05:35]FM_GetShiftState [18:05:35]SAM_PROTO_GetShiftState [18:05:35]wFMCommunicate request_size=4 [18:05:35]MH_SAM_APDU [18:05:35]CAPDU: 80 13 01 00 [18:05:35]Write to MH i2c: E2 08 00 EB AE 80 13 01 00 00 00 00 00 16 [18:05:35]Write i2c OK [18:05:35]MH_I2C_Read... [18:05:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:35]Read from MH i2c: E2 [18:05:35]MH_I2C_Read... [18:05:35]Read from MH i2c: E2 0E 00 [18:05:35]MH_I2C_Read... [18:05:35]Read from MH i2c: E2 0E 00 EB AE 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 53 [18:05:35]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:05:35]wFMCommunicate OK [18:05:35]SAM_PROTO_GetShiftState done [18:05:35]FM_GetShiftState done [18:05:35]req_shift_opened done [18:05:35]requested_item shift.open_date is exist - process it [18:05:35]req_shift_open_date [18:05:35]req_shift_open_date done [18:05:35]produce_requested_data done [18:05:35]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260839,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:05:35]process_action_free close_receipt [18:05:35]json_value_free [18:05:35]json_value_free done [18:05:35]process_json_proto returns [18:05:35]Send response to host [18:05:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260839,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:05:35]free response buf [18:05:35]execute_script done [18:05:35]execute_script returns [18:05:35]free content buf [18:05:35]Sock 9.Close socket [18:05:35]Sock 9.Thread stoped [18:05:37]OFD Sender: No OFD packet to send [18:05:42]OFD Sender: No OFD packet to send [18:05:47]OFD Sender: No OFD packet to send [18:05:52]OFD Sender: No OFD packet to send [18:05:57]OFD Sender: No OFD packet to send [18:06:02]OFD Sender: No OFD packet to send [18:06:07]OFD Sender: No OFD packet to send [18:06:12]OFD Sender: No OFD packet to send [18:06:17]OFD Sender: No OFD packet to send [18:06:22]OFD Sender: No OFD packet to send [18:06:27]OFD Sender: No OFD packet to send [18:06:32]OFD Sender: No OFD packet to send [18:06:37]OFD Sender: No OFD packet to send [18:06:42]OFD Sender: No OFD packet to send [18:06:47]OFD Sender: No OFD packet to send [18:06:52]OFD Sender: No OFD packet to send [18:06:57]OFD Sender: No OFD packet to send [18:07:02]OFD Sender: No OFD packet to send [18:07:07]OFD Sender: No OFD packet to send [18:07:12]OFD Sender: No OFD packet to send [18:07:17]OFD Sender: No OFD packet to send [18:07:22]OFD Sender: No OFD packet to send [18:07:28]OFD Sender: No OFD packet to send [18:07:33]OFD Sender: No OFD packet to send [18:07:38]OFD Sender: No OFD packet to send [18:07:43]OFD Sender: No OFD packet to send [18:07:48]OFD Sender: No OFD packet to send [18:07:53]OFD Sender: No OFD packet to send [18:07:58]OFD Sender: No OFD packet to send [18:08:03]OFD Sender: No OFD packet to send [18:08:06]accept exits with 7 [18:08:06]New connection [18:08:06]New thread 3066473828 created [18:08:06]Thread 3066617188 joined [18:08:06]Waiting for new connection... [18:08:06] Sock 7.Parse request [18:08:06]Sock 7.Check first char [18:08:06]Sock 7.First char is OK [18:08:06]request: POST /json_proto HTTP/1.0 [18:08:06]Method: POST [18:08:06]URL: /json_proto [18:08:06]Method is POST - this is cgi request [18:08:06]url: /json_proto [18:08:06]query_string will be loaded in cgi processing [18:08:06]execute_cgi json_proto POST (null) [18:08:06]execute_cgi path=json_proto method=POST [18:08:06]POST find Content-Length [18:08:06]Host: 172.17.55.133:8080 [18:08:06]Content-Length: 683 [18:08:06]Content-Type: application/json [18:08:06] [18:08:06]POST finish read [18:08:06]Found Content-Length = 683 [18:08:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "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" ] } } [18:08:06]execute_script... [18:08: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)1036392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "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" ] } } [18:08:06]POST & json_proto [18:08:06]process_json_proto [18:08:06]json parsed OK: [18:08:06]protocol is kg_v1.0 [18:08:06]action value=close_receipt [18:08:06]process_action close_receipt [18:08:06]cmd_close_receipt [18:08:06]MH_GetDate [18:08:06]Write to MH i2c: F0 00 00 EC AE 89 [18:08:06]Write i2c OK [18:08:06]MH_I2C_Read... [18:08:06]Read from MH i2c: F0 [18:08:06]MH_I2C_Read... [18:08:06]Read from MH i2c: F0 09 00 [18:08:06]MH_I2C_Read... [18:08:06]Read from MH i2c: F0 09 00 EC AE 00 8C 38 C2 66 34 48 D8 65 37 [18:08:06]GetLastDocTimeStamp 1724004336 [18:08:06]current date 1724004492 [18:08:06]FM_GetShiftState [18:08:06]SAM_PROTO_GetShiftState [18:08:06]wFMCommunicate request_size=4 [18:08:06]MH_SAM_APDU [18:08:06]CAPDU: 80 13 01 00 [18:08:06]Write to MH i2c: E2 08 00 ED AE 80 13 01 00 00 00 00 00 18 [18:08:06]Write i2c OK [18:08:06]MH_I2C_Read... [18:08:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:06]Read from MH i2c: E2 [18:08:06]MH_I2C_Read... [18:08:06]Read from MH i2c: E2 0E 00 [18:08:06]MH_I2C_Read... [18:08:06]Read from MH i2c: E2 0E 00 ED AE 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 55 [18:08:06]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:08:06]wFMCommunicate OK [18:08:06]SAM_PROTO_GetShiftState done [18:08:06]FM_GetShiftState done [18:08:06]opened in 1723940556 [18:08:06]opened+sec_in_day 1724026956 [18:08:06]quantity*price = 40005 [18:08:06]sum+1 = 40006 [18:08:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 398 18.08.2024 18:08 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260840 ФПД: 101131125809931 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T180812&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260840&fm=101131125809931&tin=02508201610067®Number=0000000000091865&sum=40000 [18:08:07]StoreToDocumentArchive [18:08:07]shift 449 fd 260840 [18:08:07]save to /storage/0449/doc_00260840 [18:08:07]save last doc name /storage/0449/doc_00260840 to /storage/kkm_last_doc_name [18:08:07]save OK [18:08:07]Clear old archive folders... [18:08:07]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:08:07]tlvbuf is 005C0E60 [18:08:07]SAM_PROTO_ClearQueue [18:08:07]wFMCommunicate request_size=4 [18:08:07]MH_SAM_APDU [18:08:07]CAPDU: 80 09 00 00 [18:08:07]Write to MH i2c: E2 08 00 FA AE 80 09 00 00 00 00 00 00 1A [18:08:07]Write i2c OK [18:08:07]MH_I2C_Read... [18:08:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:08:07]Read from MH i2c: E2 [18:08:07]MH_I2C_Read... [18:08:07]Read from MH i2c: E2 03 00 [18:08:07]MH_I2C_Read... [18:08:07]Read from MH i2c: E2 03 00 FA AE 00 90 00 1C [18:08:07]RAPDU: 90 00 [18:08:07]wFMCommunicate OK [18:08:07]SAM_PROTO_ClearQueue done [18:08:07]KKMCreateOFDPacket [18:08:07]OFDProtocolAddRootSTLVToBuf [18:08:07]FM_MakeSignedData [18:08:07]FM_MakeSignedData [18:08:07]SAM_PROTO_SignData [18:08:07]wFMCommunicate request_size=4 [18:08:07]MH_SAM_APDU [18:08:07]CAPDU: 80 0D 01 02 [18:08:07]Write to MH i2c: E2 08 00 FB AE 80 0D 01 02 00 00 00 00 22 [18:08:07]Write i2c OK [18:08:07]MH_I2C_Read... [18:08:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:08:07]Read from MH i2c: E2 [18:08:07]MH_I2C_Read... [18:08:07]Read from MH i2c: E2 03 00 [18:08:07]MH_I2C_Read... [18:08:07]Read from MH i2c: E2 03 00 FB AE 00 90 00 1D [18:08:07]RAPDU: 90 00 [18:08:07]wFMCommunicate OK [18:08:07]wFMCommunicate request_size=255 [18:08:07]MH_SAM_APDU [18:08:07]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 8C 38 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E8 FA 03 00 35 04 06 00 [18:08:07]Write to MH i2c: E2 02 01 FC AE 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 8C 38 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E8 FA 03 00 35 04 06 00 00 00 A1 [18:08:07]Write i2c OK [18:08:07]MH_I2C_Read... [18:08:08]OFD Sender: No OFD packet to send [18:08:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:08]Read from MH i2c: E2 [18:08:08]MH_I2C_Read... [18:08:08]Read from MH i2c: E2 03 00 [18:08:08]MH_I2C_Read... [18:08:08]Read from MH i2c: E2 03 00 FC AE 00 90 00 1E [18:08:08]RAPDU: 90 00 [18:08:08]wFMCommunicate OK [18:08:08]wFMCommunicate request_size=11 [18:08:08]MH_SAM_APDU [18:08:08]CAPDU: 80 0D 02 02 06 5B FA 6C D4 63 0B [18:08:08]Write to MH i2c: E2 0E 00 FD AE 80 0D 02 02 06 00 5B FA 6C D4 63 0B 00 00 34 [18:08:08]Write i2c OK [18:08:08]MH_I2C_Read... [18:08:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:08]Read from MH i2c: E2 [18:08:08]MH_I2C_Read... [18:08:08]Read from MH i2c: E2 03 00 [18:08:08]MH_I2C_Read... [18:08:08]Read from MH i2c: E2 03 00 FD AE 00 90 00 1F [18:08:08]RAPDU: 90 00 [18:08:08]wFMCommunicate OK [18:08:08]wFMCommunicate request_size=4 [18:08:08]MH_SAM_APDU [18:08:08]CAPDU: 80 0D 03 02 [18:08:08]Write to MH i2c: E2 08 00 FE AE 80 0D 03 02 00 00 00 00 27 [18:08:08]Write i2c OK [18:08:08]MH_I2C_Read... [18:08:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:08:08]Read from MH i2c: E2 [18:08:08]MH_I2C_Read... [18:08:08]Read from MH i2c: E2 0B 00 [18:08:08]MH_I2C_Read... [18:08:08]Read from MH i2c: E2 0B 00 FE AE 00 C9 76 42 44 43 B7 C9 1A 90 00 CA [18:08:08]RAPDU: C9 76 42 44 43 B7 C9 1A 90 00 [18:08:08]wFMCommunicate OK [18:08:08]SAM_PROTO_SignData done [18:08:08]FM_MakeSignedData done [18:08:08]CreateOFDProtocolMessage [18:08:08]wFMCommunicate request_size=4 [18:08:08]MH_SAM_APDU [18:08:08]CAPDU: 80 11 00 00 [18:08:08]Write to MH i2c: E2 08 00 FF AE 80 11 00 00 00 00 00 00 27 [18:08:08]Write i2c OK [18:08:08]MH_I2C_Read... [18:08:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:08]Read from MH i2c: E2 [18:08:08]MH_I2C_Read... [18:08:08]Read from MH i2c: E2 17 00 [18:08:08]MH_I2C_Read... [18:08:08]Read from MH i2c: E2 17 00 FF AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 74 [18:08:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:08:08]wFMCommunicate OK [18:08:08]CreateOFDProtocolMessage done [18:08:08]OFDSenderStorePacket 260840 [18:08:08]StoreOFDPacket docnum=260840 [18:08:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 A9 35 08 01 26 A2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 8C 38 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E8 FA 03 00 35 04 06 00 5B FA 6C D4 63 0B C9 76 42 44 43 B7 C9 1A [18:08:08]CheckFolder [18:08:08]dirname=/storage/ofd_packets [18:08:08]CheckFolder done [18:08:08]ProducePacketName [18:08:08]name=ofd_packets/00260840 [18:08:08]NVStorageSaveData ofd_packets/00260840 [18:08:08]File name is /storage/ofd_packets/00260840 [18:08:08]Write 302 bytes [18:08:08]NVStorageSaveData done [18:08:08]OFDSenderStorePacket done [18:08:08]KKMCreateOFDPacket done [18:08:08]NVStorageSaveData kkm_last_timestamp [18:08:08]File name is /storage/kkm_last_timestamp [18:08:08]Write 4 bytes [18:08:08]NVStorageSaveData done [18:08:08]ExternCall_PrintAddStr [18:08:08]wPrintStart [18:08:08]Write to MH i2c: 01 00 00 00 AF AF [18:08:08]Write i2c OK [18:08:08]MH_I2C_Read... [18:08:08]Read from MH i2c: 01 [18:08:08]MH_I2C_Read... [18:08:08]Read from MH i2c: 01 07 00 [18:08:08]MH_I2C_Read... [18:08:08]Read from MH i2c: 01 07 00 00 AF 00 00 00 00 00 FF 0F C4 [18:08:08]RasterBufferAndPrint [18:08:08]line Счет N : (1)1036392 [18:08:08]line ИНН: 02508201610067 [18:08:08]line Контрольно-Кассовый Чек [18:08:08]line ПРОДАЖА [18:08:08]line ТРК (МРК, ГНК) : 33 [18:08:08]line Товар: 2710194210 [18:08:08]line ДТ(л)-К-4 [18:08:08]line 5.250 * 76.20 [18:08:08]line = 400.05 [18:08:08]line НДС 12% НСП 1% [18:08:08]line > о реализуемом товаре [18:08:08]line ОКРУГЛЕНИЕ: -0.05 [18:08:08]line ИТОГО: 400.00 [18:08:08]line Внесено: 400.00 [18:08:08]line СДАЧА: 0.00 [18:08:08]line НСП 1% : 3.54 [18:08:08]line НДС 12% : 42.48 [18:08:08]line Наличными: 400.00 [18:08:08]line Безнал.: 0.00 [18:08:08]line Место: АЗС № 94 "Партнер Нефть" [18:08:08]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:08:08]line СНО: Общий режим [18:08:08]line Чек 398 18.08.2024 18:08 [18:08:08]line Смена: 449 ФФД: 1.0 [18:08:08]line ЗНМ: 0300000099 [18:08:08]line РНМ: 0000000000091865 [18:08:08]line Версия ККМ: 001 [18:08:08]line ФМ: 0000000000871820 [18:08:08]line ФД: 260840 [18:08:08]line ФПД: 101131125809931 [18:08:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T180812&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260840&fm=101131125809931&tin=02508201610067®Number=0000000000091865&sum=40000 [18:08:08]OFD Sender: Processing packet 260840 [packets to send 192, broken 191] [18:08:08]ProducePacketName [18:08:08]name=ofd_packets/00260840 [18:08:08]OFD Sender: To server: pG, [18:08:08]CommunicateWithHost lk.salyk.kg:30040 [18:08:08]ConnectInit lk.salyk.kg [18:08:08]written 0, free lines is 4095 [18:08:08]Connected sock=11 [18:08: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 30 10 01 00 00 A9 35 08 01 26 A2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 8C 38 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E8 FA 03 00 35 04 06 00 5B FA 6C D4 63 0B C9 76 42 44 43 B7 C9 1A [18:08: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 30 4F 00 00 00 DA 87 47 00 4E 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E8 FA 03 00 F4 03 04 00 E1 E1 C1 66 B6 04 01 00 00 11 AC AC 31 95 A8 C4 3E [18:08:08]CommunicateWithHost err = 0 [18:08:08]CheckOFDResponse [18:08:08]1017 (14) - 77093643461234 [18:08:08]1041 (16) - 0000000000871820 [18:08:08]1040 (4) - 260840 [18:08:08]1012 (4) - 18.08.2024 11:58 [18:08:08]1206 (1) - 0 [18:08:08]OFD Sender: Remove packet 260840 [18:08:08]ProducePacketName [18:08:08]name=ofd_packets/00260840 [18:08:08]NVStorageDeleteData [18:08:09]Write to MH i2c: 01 00 00 2B AF DA [18:08:09]Write i2c OK [18:08:09]MH_I2C_Read... [18:08:09]Read from MH i2c: 01 [18:08:09]MH_I2C_Read... [18:08:09]Read from MH i2c: 01 07 00 [18:08:09]MH_I2C_Read... [18:08:09]Read from MH i2c: 01 07 00 2B AF 00 00 00 00 00 64 0C 51 [18:08:09]RasterBufferAndPrint [18:08:09]line [18:08:09]line [18:08:09]line [18:08:09]line [18:08:09]line [18:08:09]written 0, free lines is 3176 [18:08:09]MH_Cut [18:08:09]Write to MH i2c: D1 01 00 32 AF 01 B3 [18:08:09]Write i2c OK [18:08:09]MH_I2C_Read... [18:08:09]Read from MH i2c: D1 [18:08:09]MH_I2C_Read... [18:08:09]Read from MH i2c: D1 01 00 [18:08:09]MH_I2C_Read... [18:08:09]Read from MH i2c: D1 01 00 32 AF 00 B2 [18:08:09]Write to MH i2c: 01 00 00 33 AF E2 [18:08:09]Write i2c OK [18:08:09]MH_I2C_Read... [18:08:09]OFD Sender: No OFD packet to send [18:08:10]*** Cut start [18:08:10]*** Purtial cut [18:08:10]*** Stage 1: CUTSNS_PIN = 1 [18:08:12]Read from MH i2c: 01 [18:08:12]MH_I2C_Read... [18:08:12]*** Stop cut motor [18:08:12]*** Cut end [18:08:12]Read from MH i2c: 01 07 00 [18:08:12]MH_I2C_Read... [18:08:12]Read from MH i2c: 01 07 00 33 AF 00 00 00 00 00 FF 0F F7 [18:08:12]process_action close_receipt done [18:08:12]requested_data is exist [18:08:12]produce_requested_data [18:08:12]requested_item fm.sn is exist - process it [18:08:12]wFMCommunicate request_size=4 [18:08:12]MH_SAM_APDU [18:08:12]CAPDU: 80 11 00 00 [18:08:12]Write to MH i2c: E2 08 00 34 AF 80 11 00 00 00 00 00 00 5D [18:08:12]Write i2c OK [18:08:12]MH_I2C_Read... [18:08:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:12]Read from MH i2c: E2 [18:08:12]MH_I2C_Read... [18:08:12]Read from MH i2c: E2 17 00 [18:08:12]MH_I2C_Read... [18:08:12]Read from MH i2c: E2 17 00 34 AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 AA [18:08:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:08:12]wFMCommunicate OK [18:08:12]requested_item fd.num is exist - process it [18:08:12]SAM_PROTO_GetFieldsCounters [18:08:12]wFMCommunicate request_size=4 [18:08:12]MH_SAM_APDU [18:08:12]CAPDU: 80 13 00 00 [18:08:12]Write to MH i2c: E2 08 00 35 AF 80 13 00 00 00 00 00 00 60 [18:08:12]Write i2c OK [18:08:12]MH_I2C_Read... [18:08:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:08:12]Read from MH i2c: E2 [18:08:12]MH_I2C_Read... [18:08:12]Read from MH i2c: E2 62 00 [18:08:12]MH_I2C_Read... [18:08:12]Read from MH i2c: E2 62 00 35 AF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E8 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 8E 01 00 00 5E 04 04 00 8E 01 00 00 57 04 04 00 8F 01 00 00 19 04 04 00 00 00 00 00 90 00 D3 [18:08: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E8 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 8E 01 00 00 5E 04 04 00 8E 01 00 00 57 04 04 00 8F 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:08:12]wFMCommunicate OK [18:08:12]SAM_PROTO_GetFieldsCounters done [18:08:12]requested_item shift.num is exist - process it [18:08:12]requested_item shift.opened is exist - process it [18:08:12]req_shift_opened [18:08:12]FM_GetShiftState [18:08:12]SAM_PROTO_GetShiftState [18:08:12]wFMCommunicate request_size=4 [18:08:12]MH_SAM_APDU [18:08:12]CAPDU: 80 13 01 00 [18:08:12]Write to MH i2c: E2 08 00 36 AF 80 13 01 00 00 00 00 00 62 [18:08:12]Write i2c OK [18:08:12]MH_I2C_Read... [18:08:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:12]Read from MH i2c: E2 [18:08:12]MH_I2C_Read... [18:08:12]Read from MH i2c: E2 0E 00 [18:08:12]MH_I2C_Read... [18:08:12]Read from MH i2c: E2 0E 00 36 AF 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 9F [18:08:12]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:08:12]wFMCommunicate OK [18:08:12]SAM_PROTO_GetShiftState done [18:08:12]FM_GetShiftState done [18:08:12]req_shift_opened done [18:08:12]requested_item shift.open_date is exist - process it [18:08:12]req_shift_open_date [18:08:12]req_shift_open_date done [18:08:12]produce_requested_data done [18:08:12]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260840,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:08:12]process_action_free close_receipt [18:08:12]json_value_free [18:08:12]json_value_free done [18:08:12]process_json_proto returns [18:08:12]Send response to host [18:08:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260840,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:08:12]free response buf [18:08:12]execute_script done [18:08:12]execute_script returns [18:08:12]free content buf [18:08:12]Sock 7.Close socket [18:08:12]Sock 7.Thread stoped [18:08:14]OFD Sender: No OFD packet to send [18:08:19]OFD Sender: No OFD packet to send [18:08:24]OFD Sender: No OFD packet to send [18:08:29]OFD Sender: No OFD packet to send [18:08:34]OFD Sender: No OFD packet to send [18:08:39]OFD Sender: No OFD packet to send [18:08:44]OFD Sender: No OFD packet to send [18:08:49]OFD Sender: No OFD packet to send [18:08:54]OFD Sender: No OFD packet to send [18:08:59]OFD Sender: No OFD packet to send [18:09:04]OFD Sender: No OFD packet to send [18:09:09]OFD Sender: No OFD packet to send [18:09:14]OFD Sender: No OFD packet to send [18:09:19]OFD Sender: No OFD packet to send [18:09:24]OFD Sender: No OFD packet to send [18:09:29]OFD Sender: No OFD packet to send [18:09:34]OFD Sender: No OFD packet to send [18:09:39]OFD Sender: No OFD packet to send [18:09:40]accept exits with 9 [18:09:40]New connection [18:09:40]New thread 3066617188 created [18:09:40]Thread 3066473828 joined [18:09:40]Waiting for new connection... [18:09:40] Sock 9.Parse request [18:09:40]Sock 9.Check first char [18:09:40]Sock 9.First char is OK [18:09:40]request: POST /json_proto HTTP/1.0 [18:09:40]Method: POST [18:09:40]URL: /json_proto [18:09:40]Method is POST - this is cgi request [18:09:40]url: /json_proto [18:09:40]query_string will be loaded in cgi processing [18:09:40]execute_cgi json_proto POST (null) [18:09:40]execute_cgi path=json_proto method=POST [18:09:40]POST find Content-Length [18:09:40]Host: 172.17.55.133:8080 [18:09:40]Content-Length: 802 [18:09:40]Content-Type: application/json [18:09:40] [18:09:40]POST finish read [18:09:40]Found Content-Length = 802 [18:09:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:40]execute_script... [18:09: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)1036393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:40]POST & json_proto [18:09:40]process_json_proto [18:09:40]json parsed OK: [18:09:40]protocol is kg_v1.0 [18:09:40]action value=close_receipt [18:09:40]process_action close_receipt [18:09:40]cmd_close_receipt [18:09:40]MH_GetDate [18:09:40]Write to MH i2c: F0 00 00 37 AF D5 [18:09:40]Write i2c OK [18:09:40]MH_I2C_Read... [18:09:40]Read from MH i2c: F0 [18:09:40]MH_I2C_Read... [18:09:40]Read from MH i2c: F0 09 00 [18:09:40]MH_I2C_Read... [18:09:40]Read from MH i2c: F0 09 00 37 AF 00 EA 38 C2 66 34 48 D8 65 E1 [18:09:40]GetLastDocTimeStamp 1724004492 [18:09:40]current date 1724004586 [18:09:40]FM_GetShiftState [18:09:40]SAM_PROTO_GetShiftState [18:09:40]wFMCommunicate request_size=4 [18:09:40]MH_SAM_APDU [18:09:40]CAPDU: 80 13 01 00 [18:09:40]Write to MH i2c: E2 08 00 38 AF 80 13 01 00 00 00 00 00 64 [18:09:40]Write i2c OK [18:09:40]MH_I2C_Read... [18:09:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:40]Read from MH i2c: E2 [18:09:40]MH_I2C_Read... [18:09:40]Read from MH i2c: E2 0E 00 [18:09:40]MH_I2C_Read... [18:09:40]Read from MH i2c: E2 0E 00 38 AF 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A1 [18:09:40]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:09:40]wFMCommunicate OK [18:09:40]SAM_PROTO_GetShiftState done [18:09:40]FM_GetShiftState done [18:09:40]opened in 1723940556 [18:09:40]opened+sec_in_day 1724026956 [18:09:40]quantity*price = 70037 [18:09:40]sum+1 = 70038 [18:09:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.37 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.37 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 399 18.08.2024 18:09 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260841 ФПД: 276653809078488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T180946&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260841&fm=276653809078488&tin=02508201610067®Number=0000000000091865&sum=70037 [18:09:41]StoreToDocumentArchive [18:09:41]shift 449 fd 260841 [18:09:41]save to /storage/0449/doc_00260841 [18:09:41]save last doc name /storage/0449/doc_00260841 to /storage/kkm_last_doc_name [18:09:41]save OK [18:09:41]Clear old archive folders... [18:09:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:09:41]tlvbuf is 0057B1E0 [18:09:41]SAM_PROTO_ClearQueue [18:09:41]wFMCommunicate request_size=4 [18:09:41]MH_SAM_APDU [18:09:41]CAPDU: 80 09 00 00 [18:09:41]Write to MH i2c: E2 08 00 45 AF 80 09 00 00 00 00 00 00 66 [18:09:41]Write i2c OK [18:09:41]MH_I2C_Read... [18:09:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:09:41]Read from MH i2c: E2 [18:09:41]MH_I2C_Read... [18:09:41]Read from MH i2c: E2 03 00 [18:09:41]MH_I2C_Read... [18:09:41]Read from MH i2c: E2 03 00 45 AF 00 90 00 68 [18:09:41]RAPDU: 90 00 [18:09:41]wFMCommunicate OK [18:09:41]SAM_PROTO_ClearQueue done [18:09:41]KKMCreateOFDPacket [18:09:41]OFDProtocolAddRootSTLVToBuf [18:09:41]FM_MakeSignedData [18:09:41]FM_MakeSignedData [18:09:41]SAM_PROTO_SignData [18:09:41]wFMCommunicate request_size=4 [18:09:41]MH_SAM_APDU [18:09:41]CAPDU: 80 0D 01 02 [18:09:41]Write to MH i2c: E2 08 00 46 AF 80 0D 01 02 00 00 00 00 6E [18:09:41]Write i2c OK [18:09:41]MH_I2C_Read... [18:09:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:09:41]Read from MH i2c: E2 [18:09:41]MH_I2C_Read... [18:09:41]Read from MH i2c: E2 03 00 [18:09:41]MH_I2C_Read... [18:09:41]Read from MH i2c: E2 03 00 46 AF 00 90 00 69 [18:09:41]RAPDU: 90 00 [18:09:41]wFMCommunicate OK [18:09:41]wFMCommunicate request_size=255 [18:09:41]MH_SAM_APDU [18:09:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 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 95 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 01 00 00 F4 03 04 00 EA 38 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E9 FA 03 00 35 04 06 00 FB [18:09:41]Write to MH i2c: E2 02 01 47 AF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 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 95 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 01 00 00 F4 03 04 00 EA 38 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E9 FA 03 00 35 04 06 00 FB 00 00 99 [18:09:41]Write i2c OK [18:09:41]MH_I2C_Read... [18:09:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:42]Read from MH i2c: E2 [18:09:42]MH_I2C_Read... [18:09:42]Read from MH i2c: E2 03 00 [18:09:42]MH_I2C_Read... [18:09:42]Read from MH i2c: E2 03 00 47 AF 00 90 00 6A [18:09:42]RAPDU: 90 00 [18:09:42]wFMCommunicate OK [18:09:42]wFMCommunicate request_size=10 [18:09:42]MH_SAM_APDU [18:09:42]CAPDU: 80 0D 02 02 05 9D 7C 04 10 D8 [18:09:42]Write to MH i2c: E2 0D 00 48 AF 80 0D 02 02 05 00 9D 7C 04 10 D8 00 00 80 [18:09:42]Write i2c OK [18:09:42]MH_I2C_Read... [18:09:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:42]Read from MH i2c: E2 [18:09:42]MH_I2C_Read... [18:09:42]Read from MH i2c: E2 03 00 [18:09:42]MH_I2C_Read... [18:09:42]Read from MH i2c: E2 03 00 48 AF 00 90 00 6B [18:09:42]RAPDU: 90 00 [18:09:42]wFMCommunicate OK [18:09:42]wFMCommunicate request_size=4 [18:09:42]MH_SAM_APDU [18:09:42]CAPDU: 80 0D 03 02 [18:09:42]Write to MH i2c: E2 08 00 49 AF 80 0D 03 02 00 00 00 00 73 [18:09:42]Write i2c OK [18:09:42]MH_I2C_Read... [18:09:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:09:42]Read from MH i2c: E2 [18:09:42]MH_I2C_Read... [18:09:42]Read from MH i2c: E2 0B 00 [18:09:42]MH_I2C_Read... [18:09:42]Read from MH i2c: E2 0B 00 49 AF 00 E7 11 F8 5E FE 4E 6C C0 90 00 3A [18:09:42]RAPDU: E7 11 F8 5E FE 4E 6C C0 90 00 [18:09:42]wFMCommunicate OK [18:09:42]SAM_PROTO_SignData done [18:09:42]FM_MakeSignedData done [18:09:42]CreateOFDProtocolMessage [18:09:42]wFMCommunicate request_size=4 [18:09:42]MH_SAM_APDU [18:09:42]CAPDU: 80 11 00 00 [18:09:42]Write to MH i2c: E2 08 00 4A AF 80 11 00 00 00 00 00 00 73 [18:09:42]Write i2c OK [18:09:42]MH_I2C_Read... [18:09:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:42]Read from MH i2c: E2 [18:09:42]MH_I2C_Read... [18:09:42]Read from MH i2c: E2 17 00 [18:09:42]MH_I2C_Read... [18:09:42]Read from MH i2c: E2 17 00 4A AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C0 [18:09:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:09:42]wFMCommunicate OK [18:09:42]CreateOFDProtocolMessage done [18:09:42]OFDSenderStorePacket 260841 [18:09:42]StoreOFDPacket docnum=260841 [18:09:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 3D 6C 07 01 81 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 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 95 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 01 00 00 F4 03 04 00 EA 38 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E9 FA 03 00 35 04 06 00 FB 9D 7C 04 10 D8 E7 11 F8 5E FE 4E 6C C0 [18:09:42]CheckFolder [18:09:42]dirname=/storage/ofd_packets [18:09:42]CheckFolder done [18:09:42]ProducePacketName [18:09:42]name=ofd_packets/00260841 [18:09:42]NVStorageSaveData ofd_packets/00260841 [18:09:42]File name is /storage/ofd_packets/00260841 [18:09:42]Write 301 bytes [18:09:42]NVStorageSaveData done [18:09:42]OFDSenderStorePacket done [18:09:42]KKMCreateOFDPacket done [18:09:42]NVStorageSaveData kkm_last_timestamp [18:09:42]File name is /storage/kkm_last_timestamp [18:09:42]Write 4 bytes [18:09:42]NVStorageSaveData done [18:09:42]ExternCall_PrintAddStr [18:09:42]wPrintStart [18:09:42]Write to MH i2c: 01 00 00 4B AF FA [18:09:42]Write i2c OK [18:09:42]MH_I2C_Read... [18:09:42]Read from MH i2c: 01 [18:09:42]MH_I2C_Read... [18:09:42]Read from MH i2c: 01 07 00 [18:09:42]MH_I2C_Read... [18:09:42]Read from MH i2c: 01 07 00 4B AF 00 00 00 00 00 FF 0F 0F [18:09:42]RasterBufferAndPrint [18:09:42]line Счет N : (1)1036393 [18:09:42]line ИНН: 02508201610067 [18:09:42]line Контрольно-Кассовый Чек [18:09:42]line ПРОДАЖА [18:09:42]line ТРК (МРК, ГНК) : 12 [18:09:42]line Товар: 2710124130 [18:09:42]line Аи-92-К-5 [18:09:42]line 10.330 * 67.80 [18:09:42]line = 700.37 [18:09:42]line НДС 12% НСП 1% [18:09:42]line > о реализуемом товаре [18:09:42]line ИТОГО: 700.37 [18:09:42]line НСП 1% : 6.20 [18:09:42]line НДС 12% : 74.38 [18:09:42]line Наличными: 0.00 [18:09:42]line Безнал.: 700.37 [18:09:42]line Место: АЗС № 94 "Партнер Нефть" [18:09:42]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:09:42]line СНО: Общий режим [18:09:42]line Чек 399 18.08.2024 18:09 [18:09:42]line Смена: 449 ФФД: 1.0 [18:09:42]line ЗНМ: 0300000099 [18:09:42]line РНМ: 0000000000091865 [18:09:42]line Версия ККМ: 001 [18:09:42]line Платежная система: O! деньги [18:09:42]line ФМ: 0000000000871820 [18:09:42]line ФД: 260841 [18:09:42]line ФПД: 276653809078488 [18:09:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T180946&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260841&fm=276653809078488&tin=02508201610067®Number=0000000000091865&sum=70037 [18:09:42]written 0, free lines is 4095 [18:09:42]OFD Sender: Processing packet 260841 [packets to send 192, broken 191] [18:09:42]ProducePacketName [18:09:42]name=ofd_packets/00260841 [18:09:42]OFD Sender: To server: pG, [18:09:42]CommunicateWithHost lk.salyk.kg:30040 [18:09:42]ConnectInit lk.salyk.kg [18:09:42]Connected sock=10 [18:09: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 30 0F 01 00 00 3D 6C 07 01 81 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 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 95 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 01 00 00 F4 03 04 00 EA 38 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E9 FA 03 00 35 04 06 00 FB 9D 7C 04 10 D8 E7 11 F8 5E FE 4E 6C C0 [18:09:42]Write to MH i2c: 01 00 00 75 AF 24 [18:09:42]Write i2c OK [18:09:42]MH_I2C_Read... [18:09:42]Read from MH i2c: 01 [18:09:42]MH_I2C_Read... [18:09:42]Read from MH i2c: 01 07 00 [18:09:42]MH_I2C_Read... [18:09:42]Read from MH i2c: 01 07 00 75 AF 00 00 00 00 00 7A 0C B1 [18:09:42]RasterBufferAndPrint [18:09:42]line [18:09:42]line [18:09:42]line [18:09:42]line [18:09:42]line [18:09:42]written 0, free lines is 3198 [18:09:42]MH_Cut [18:09:42]Write to MH i2c: D1 01 00 7C AF 01 FD [18:09:42]Write i2c OK [18:09:42]MH_I2C_Read... [18:09:42]Read from MH i2c: D1 [18:09:42]MH_I2C_Read... [18:09:42]Read from MH i2c: D1 01 00 [18:09:42]MH_I2C_Read... [18:09:42]Read from MH i2c: D1 01 00 7C AF 00 FC [18:09:42]Write to MH i2c: 01 00 00 7D AF 2C [18:09:42]Write i2c OK [18:09:42]MH_I2C_Read... [18:09: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 30 4F 00 00 00 C6 E3 47 00 DA CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 E9 FA 03 00 F4 03 04 00 3E E2 C1 66 B6 04 01 00 00 C9 5C 5E D2 0D 8E 35 84 [18:09:42]CommunicateWithHost err = 0 [18:09:42]CheckOFDResponse [18:09:42]1017 (14) - 77093643461234 [18:09:42]1041 (16) - 0000000000871820 [18:09:42]1040 (4) - 260841 [18:09:42]1012 (4) - 18.08.2024 11:59 [18:09:42]1206 (1) - 0 [18:09:42]OFD Sender: Remove packet 260841 [18:09:42]ProducePacketName [18:09:42]name=ofd_packets/00260841 [18:09:42]NVStorageDeleteData [18:09:43]OFD Sender: No OFD packet to send [18:09:43]*** Cut start [18:09:43]*** Purtial cut [18:09:43]*** Stage 1: CUTSNS_PIN = 1 [18:09:45]Read from MH i2c: 01 [18:09:45]MH_I2C_Read... [18:09:45]*** Stop cut motor [18:09:45]*** Cut end [18:09:45]Read from MH i2c: 01 07 00 [18:09:45]MH_I2C_Read... [18:09:45]Read from MH i2c: 01 07 00 7D AF 00 00 00 00 00 FF 0F 41 [18:09:45]process_action close_receipt done [18:09:45]requested_data is exist [18:09:45]produce_requested_data [18:09:45]requested_item fm.sn is exist - process it [18:09:45]wFMCommunicate request_size=4 [18:09:45]MH_SAM_APDU [18:09:45]CAPDU: 80 11 00 00 [18:09:45]Write to MH i2c: E2 08 00 7E AF 80 11 00 00 00 00 00 00 A7 [18:09:45]Write i2c OK [18:09:45]MH_I2C_Read... [18:09:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:45]Read from MH i2c: E2 [18:09:45]MH_I2C_Read... [18:09:45]Read from MH i2c: E2 17 00 [18:09:45]MH_I2C_Read... [18:09:45]Read from MH i2c: E2 17 00 7E AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F4 [18:09:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:09:45]wFMCommunicate OK [18:09:45]requested_item fd.num is exist - process it [18:09:45]SAM_PROTO_GetFieldsCounters [18:09:45]wFMCommunicate request_size=4 [18:09:45]MH_SAM_APDU [18:09:45]CAPDU: 80 13 00 00 [18:09:45]Write to MH i2c: E2 08 00 7F AF 80 13 00 00 00 00 00 00 AA [18:09:45]Write i2c OK [18:09:45]MH_I2C_Read... [18:09:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:09:46]Read from MH i2c: E2 [18:09:46]MH_I2C_Read... [18:09:46]Read from MH i2c: E2 62 00 [18:09:46]MH_I2C_Read... [18:09:46]Read from MH i2c: E2 62 00 7F AF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E9 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 8F 01 00 00 5E 04 04 00 8F 01 00 00 57 04 04 00 90 01 00 00 19 04 04 00 00 00 00 00 90 00 21 [18:09: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 E9 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 8F 01 00 00 5E 04 04 00 8F 01 00 00 57 04 04 00 90 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:09:46]wFMCommunicate OK [18:09:46]SAM_PROTO_GetFieldsCounters done [18:09:46]requested_item shift.num is exist - process it [18:09:46]requested_item shift.opened is exist - process it [18:09:46]req_shift_opened [18:09:46]FM_GetShiftState [18:09:46]SAM_PROTO_GetShiftState [18:09:46]wFMCommunicate request_size=4 [18:09:46]MH_SAM_APDU [18:09:46]CAPDU: 80 13 01 00 [18:09:46]Write to MH i2c: E2 08 00 80 AF 80 13 01 00 00 00 00 00 AC [18:09:46]Write i2c OK [18:09:46]MH_I2C_Read... [18:09:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:46]Read from MH i2c: E2 [18:09:46]MH_I2C_Read... [18:09:46]Read from MH i2c: E2 0E 00 [18:09:46]MH_I2C_Read... [18:09:46]Read from MH i2c: E2 0E 00 80 AF 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E9 [18:09:46]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:09:46]wFMCommunicate OK [18:09:46]SAM_PROTO_GetShiftState done [18:09:46]FM_GetShiftState done [18:09:46]req_shift_opened done [18:09:46]requested_item shift.open_date is exist - process it [18:09:46]req_shift_open_date [18:09:46]req_shift_open_date done [18:09:46]produce_requested_data done [18:09:46]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260841,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:09:46]process_action_free close_receipt [18:09:46]json_value_free [18:09:46]json_value_free done [18:09:46]process_json_proto returns [18:09:46]Send response to host [18:09:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260841,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:09:46]free response buf [18:09:46]execute_script done [18:09:46]execute_script returns [18:09:46]free content buf [18:09:46]Sock 9.Close socket [18:09:46]Sock 9.Thread stoped [18:09:48]OFD Sender: No OFD packet to send [18:09:53]OFD Sender: No OFD packet to send [18:09:58]OFD Sender: No OFD packet to send [18:10:03]OFD Sender: No OFD packet to send [18:10:08]OFD Sender: No OFD packet to send [18:10:13]OFD Sender: No OFD packet to send [18:10:18]OFD Sender: No OFD packet to send [18:10:23]OFD Sender: No OFD packet to send [18:10:24]accept exits with 7 [18:10:24]New connection [18:10:24]New thread 3066473828 created [18:10:24]Thread 3066617188 joined [18:10:24]Waiting for new connection... [18:10:24] Sock 7.Parse request [18:10:24]Sock 7.Check first char [18:10:24]Sock 7.First char is OK [18:10:24]request: POST /json_proto HTTP/1.0 [18:10:24]Method: POST [18:10:24]URL: /json_proto [18:10:24]Method is POST - this is cgi request [18:10:24]url: /json_proto [18:10:24]query_string will be loaded in cgi processing [18:10:24]execute_cgi json_proto POST (null) [18:10:24]execute_cgi path=json_proto method=POST [18:10:24]POST find Content-Length [18:10:24]Host: 172.17.55.133:8080 [18:10:24]Content-Length: 678 [18:10:24]Content-Type: application/json [18:10:24] [18:10:24]POST finish read [18:10:24]Found Content-Length = 678 [18:10:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:24]execute_script... [18:10: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)1036394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:24]POST & json_proto [18:10:24]process_json_proto [18:10:24]json parsed OK: [18:10:24]protocol is kg_v1.0 [18:10:24]action value=close_receipt [18:10:24]process_action close_receipt [18:10:24]cmd_close_receipt [18:10:24]MH_GetDate [18:10:24]Write to MH i2c: F0 00 00 81 AF 1F [18:10:24]Write i2c OK [18:10:24]MH_I2C_Read... [18:10:24]Read from MH i2c: F0 [18:10:24]MH_I2C_Read... [18:10:24]Read from MH i2c: F0 09 00 [18:10:24]MH_I2C_Read... [18:10:24]Read from MH i2c: F0 09 00 81 AF 00 16 39 C2 66 34 48 D8 65 58 [18:10:24]GetLastDocTimeStamp 1724004586 [18:10:24]current date 1724004630 [18:10:24]FM_GetShiftState [18:10:24]SAM_PROTO_GetShiftState [18:10:24]wFMCommunicate request_size=4 [18:10:24]MH_SAM_APDU [18:10:24]CAPDU: 80 13 01 00 [18:10:24]Write to MH i2c: E2 08 00 82 AF 80 13 01 00 00 00 00 00 AE [18:10:24]Write i2c OK [18:10:24]MH_I2C_Read... [18:10:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:24]Read from MH i2c: E2 [18:10:24]MH_I2C_Read... [18:10:24]Read from MH i2c: E2 0E 00 [18:10:24]MH_I2C_Read... [18:10:24]Read from MH i2c: E2 0E 00 82 AF 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 EB [18:10:24]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:10:24]wFMCommunicate OK [18:10:24]SAM_PROTO_GetShiftState done [18:10:24]FM_GetShiftState done [18:10:24]opened in 1723940556 [18:10:24]opened+sec_in_day 1724026956 [18:10:24]quantity*price = 60003 [18:10:24]sum+1 = 60004 [18:10:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 400 18.08.2024 18:10 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260842 ФПД: 205949809170997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T181031&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260842&fm=205949809170997&tin=02508201610067®Number=0000000000091865&sum=60000 [18:10:25]StoreToDocumentArchive [18:10:25]shift 449 fd 260842 [18:10:25]save to /storage/0449/doc_00260842 [18:10:25]save last doc name /storage/0449/doc_00260842 to /storage/kkm_last_doc_name [18:10:25]save OK [18:10:25]Clear old archive folders... [18:10:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:10:25]tlvbuf is 0052AFE0 [18:10:25]SAM_PROTO_ClearQueue [18:10:25]wFMCommunicate request_size=4 [18:10:25]MH_SAM_APDU [18:10:25]CAPDU: 80 09 00 00 [18:10:25]Write to MH i2c: E2 08 00 8F AF 80 09 00 00 00 00 00 00 B0 [18:10:25]Write i2c OK [18:10:25]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 [18:10:26]MH_I2C_Read... [18:10:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:26]Read from MH i2c: E2 03 00 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 03 00 8F AF 00 90 00 B2 [18:10:26]RAPDU: 90 00 [18:10:26]wFMCommunicate OK [18:10:26]SAM_PROTO_ClearQueue done [18:10:26]KKMCreateOFDPacket [18:10:26]OFDProtocolAddRootSTLVToBuf [18:10:26]FM_MakeSignedData [18:10:26]FM_MakeSignedData [18:10:26]SAM_PROTO_SignData [18:10:26]wFMCommunicate request_size=4 [18:10:26]MH_SAM_APDU [18:10:26]CAPDU: 80 0D 01 02 [18:10:26]Write to MH i2c: E2 08 00 90 AF 80 0D 01 02 00 00 00 00 B8 [18:10:26]Write i2c OK [18:10:26]MH_I2C_Read... [18:10:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:26]Read from MH i2c: E2 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 03 00 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 03 00 90 AF 00 90 00 B3 [18:10:26]RAPDU: 90 00 [18:10:26]wFMCommunicate OK [18:10:26]wFMCommunicate request_size=255 [18:10:26]MH_SAM_APDU [18:10:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 01 00 00 F4 03 04 00 17 39 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EA FA 03 00 35 04 06 00 BB [18:10:26]Write to MH i2c: E2 02 01 91 AF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 01 00 00 F4 03 04 00 17 39 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EA FA 03 00 35 04 06 00 BB 00 00 69 [18:10:26]Write i2c OK [18:10:26]MH_I2C_Read... [18:10:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:26]Read from MH i2c: E2 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 03 00 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 03 00 91 AF 00 90 00 B4 [18:10:26]RAPDU: 90 00 [18:10:26]wFMCommunicate OK [18:10:26]wFMCommunicate request_size=10 [18:10:26]MH_SAM_APDU [18:10:26]CAPDU: 80 0D 02 02 05 4F 6D 37 9A 35 [18:10:26]Write to MH i2c: E2 0D 00 92 AF 80 0D 02 02 05 00 4F 6D 37 9A 35 00 00 87 [18:10:26]Write i2c OK [18:10:26]MH_I2C_Read... [18:10:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:26]Read from MH i2c: E2 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 03 00 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 03 00 92 AF 00 90 00 B5 [18:10:26]RAPDU: 90 00 [18:10:26]wFMCommunicate OK [18:10:26]wFMCommunicate request_size=4 [18:10:26]MH_SAM_APDU [18:10:26]CAPDU: 80 0D 03 02 [18:10:26]Write to MH i2c: E2 08 00 93 AF 80 0D 03 02 00 00 00 00 BD [18:10:26]Write i2c OK [18:10:26]MH_I2C_Read... [18:10:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:26]Read from MH i2c: E2 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 0B 00 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 0B 00 93 AF 00 32 1F 54 36 FA A4 68 66 90 00 05 [18:10:26]RAPDU: 32 1F 54 36 FA A4 68 66 90 00 [18:10:26]wFMCommunicate OK [18:10:26]SAM_PROTO_SignData done [18:10:26]FM_MakeSignedData done [18:10:26]CreateOFDProtocolMessage [18:10:26]wFMCommunicate request_size=4 [18:10:26]MH_SAM_APDU [18:10:26]CAPDU: 80 11 00 00 [18:10:26]Write to MH i2c: E2 08 00 94 AF 80 11 00 00 00 00 00 00 BD [18:10:26]Write i2c OK [18:10:26]MH_I2C_Read... [18:10:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:26]Read from MH i2c: E2 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 17 00 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 17 00 94 AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 0A [18:10:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:10:26]wFMCommunicate OK [18:10:26]CreateOFDProtocolMessage done [18:10:26]OFDSenderStorePacket 260842 [18:10:26]StoreOFDPacket docnum=260842 [18:10:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 CD 5C 07 01 67 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 01 00 00 F4 03 04 00 17 39 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EA FA 03 00 35 04 06 00 BB 4F 6D 37 9A 35 32 1F 54 36 FA A4 68 66 [18:10:26]CheckFolder [18:10:26]dirname=/storage/ofd_packets [18:10:26]CheckFolder done [18:10:26]ProducePacketName [18:10:26]name=ofd_packets/00260842 [18:10:26]NVStorageSaveData ofd_packets/00260842 [18:10:26]File name is /storage/ofd_packets/00260842 [18:10:26]Write 301 bytes [18:10:26]NVStorageSaveData done [18:10:26]OFDSenderStorePacket done [18:10:26]KKMCreateOFDPacket done [18:10:26]NVStorageSaveData kkm_last_timestamp [18:10:26]File name is /storage/kkm_last_timestamp [18:10:26]Write 4 bytes [18:10:26]NVStorageSaveData done [18:10:26]ExternCall_PrintAddStr [18:10:26]wPrintStart [18:10:26]Write to MH i2c: 01 00 00 95 AF 44 [18:10:26]Write i2c OK [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: 01 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: 01 07 00 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: 01 07 00 95 AF 00 00 00 00 00 FF 0F 59 [18:10:26]RasterBufferAndPrint [18:10:26]line Счет N : (1)1036394 [18:10:26]line ИНН: 02508201610067 [18:10:26]line Контрольно-Кассовый Чек [18:10:26]line ПРОДАЖА [18:10:26]line ТРК (МРК, ГНК) : 32 [18:10:26]line Товар: 2710124130 [18:10:26]line Аи-92-К-5 [18:10:26]line 8.850 * 67.80 [18:10:26]line = 600.03 [18:10:26]line НДС 12% НСП 1% [18:10:26]line > о реализуемом товаре [18:10:26]line ОКРУГЛЕНИЕ: -0.03 [18:10:26]line ИТОГО: 600.00 [18:10:26]line Внесено: 600.00 [18:10:26]line СДАЧА: 0.00 [18:10:26]line НСП 1% : 5.31 [18:10:26]line НДС 12% : 63.72 [18:10:26]line Наличными: 600.00 [18:10:26]line Безнал.: 0.00 [18:10:26]line Место: АЗС № 94 "Партнер Нефть" [18:10:26]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:10:26]line СНО: Общий режим [18:10:26]line Чек 400 18.08.2024 18:10 [18:10:26]line Смена: 449 ФФД: 1.0 [18:10:26]line ЗНМ: 0300000099 [18:10:26]line РНМ: 0000000000091865 [18:10:26]line Версия ККМ: 001 [18:10:26]line ФМ: 0000000000871820 [18:10:26]line ФД: 260842 [18:10:26]line ФПД: 205949809170997 [18:10:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T181031&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260842&fm=205949809170997&tin=02508201610067®Number=0000000000091865&sum=60000 [18:10:26]OFD Sender: Processing packet 260842 [packets to send 192, broken 191] [18:10:26]ProducePacketName [18:10:26]name=ofd_packets/00260842 [18:10:26]OFD Sender: To server: pG, [18:10:26]CommunicateWithHost lk.salyk.kg:30040 [18:10:26]ConnectInit lk.salyk.kg [18:10:26]written 0, free lines is 4095 [18:10:26]Connected sock=10 [18:10: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 30 0F 01 00 00 CD 5C 07 01 67 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 01 00 00 F4 03 04 00 17 39 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EA FA 03 00 35 04 06 00 BB 4F 6D 37 9A 35 32 1F 54 36 FA A4 68 66 [18:10: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 30 4F 00 00 00 F7 9C 47 00 91 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 30 10 04 04 00 EA FA 03 00 F4 03 04 00 6B E2 C1 66 B6 04 01 00 00 B8 A4 C1 1C E1 AC 1C 81 [18:10:27]CommunicateWithHost err = 0 [18:10:27]CheckOFDResponse [18:10:27]1017 (14) - 77093643461234 [18:10:27]1041 (16) - 0000000000871820 [18:10:27]1040 (4) - 260842 [18:10:27]1012 (4) - 18.08.2024 12:00 [18:10:27]1206 (1) - 0 [18:10:27]OFD Sender: Remove packet 260842 [18:10:27]ProducePacketName [18:10:27]name=ofd_packets/00260842 [18:10:27]NVStorageDeleteData [18:10:27]Write to MH i2c: 01 00 00 C0 AF 6F [18:10:27]Write i2c OK [18:10:27]MH_I2C_Read... [18:10:27]Read from MH i2c: 01 [18:10:27]MH_I2C_Read... [18:10:27]Read from MH i2c: 01 07 00 [18:10:27]MH_I2C_Read... [18:10:27]Read from MH i2c: 01 07 00 C0 AF 00 00 00 00 00 6A 0C EC [18:10:27]RasterBufferAndPrint [18:10:27]line [18:10:27]line [18:10:27]line [18:10:27]line [18:10:27]line [18:10:27]written 0, free lines is 3181 [18:10:27]MH_Cut [18:10:27]Write to MH i2c: D1 01 00 C7 AF 01 48 [18:10:27]Write i2c OK [18:10:27]MH_I2C_Read... [18:10:27]Read from MH i2c: D1 [18:10:27]MH_I2C_Read... [18:10:27]Read from MH i2c: D1 01 00 [18:10:27]MH_I2C_Read... [18:10:27]Read from MH i2c: D1 01 00 C7 AF 00 47 [18:10:27]Write to MH i2c: 01 00 00 C8 AF 77 [18:10:27]Write i2c OK [18:10:27]MH_I2C_Read... [18:10:27]OFD Sender: No OFD packet to send [18:10:28]*** Cut start [18:10:28]*** Purtial cut [18:10:28]*** Stage 1: CUTSNS_PIN = 1 [18:10:30]Read from MH i2c: 01 [18:10:30]MH_I2C_Read... [18:10:30]*** Stop cut motor [18:10:30]*** Cut end [18:10:30]Read from MH i2c: 01 07 00 [18:10:30]MH_I2C_Read... [18:10:30]Read from MH i2c: 01 07 00 C8 AF 00 00 00 00 00 FF 0F 8C [18:10:30]process_action close_receipt done [18:10:30]requested_data is exist [18:10:30]produce_requested_data [18:10:30]requested_item fm.sn is exist - process it [18:10:30]wFMCommunicate request_size=4 [18:10:30]MH_SAM_APDU [18:10:30]CAPDU: 80 11 00 00 [18:10:30]Write to MH i2c: E2 08 00 C9 AF 80 11 00 00 00 00 00 00 F2 [18:10:30]Write i2c OK [18:10:30]MH_I2C_Read... [18:10:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:30]Read from MH i2c: E2 [18:10:30]MH_I2C_Read... [18:10:30]Read from MH i2c: E2 17 00 [18:10:30]MH_I2C_Read... [18:10:30]Read from MH i2c: E2 17 00 C9 AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 3F [18:10:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:10:30]wFMCommunicate OK [18:10:30]requested_item fd.num is exist - process it [18:10:30]SAM_PROTO_GetFieldsCounters [18:10:30]wFMCommunicate request_size=4 [18:10:30]MH_SAM_APDU [18:10:30]CAPDU: 80 13 00 00 [18:10:30]Write to MH i2c: E2 08 00 CA AF 80 13 00 00 00 00 00 00 F5 [18:10:30]Write i2c OK [18:10:30]MH_I2C_Read... [18:10:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:30]Read from MH i2c: E2 [18:10:30]MH_I2C_Read... [18:10:30]Read from MH i2c: E2 62 00 [18:10:30]MH_I2C_Read... [18:10:30]Read from MH i2c: E2 62 00 CA AF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 EA FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 90 01 00 00 5E 04 04 00 90 01 00 00 57 04 04 00 91 01 00 00 19 04 04 00 00 00 00 00 90 00 70 [18:10: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 EA FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 90 01 00 00 5E 04 04 00 90 01 00 00 57 04 04 00 91 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:10:30]wFMCommunicate OK [18:10:30]SAM_PROTO_GetFieldsCounters done [18:10:30]requested_item shift.num is exist - process it [18:10:30]requested_item shift.opened is exist - process it [18:10:30]req_shift_opened [18:10:30]FM_GetShiftState [18:10:30]SAM_PROTO_GetShiftState [18:10:30]wFMCommunicate request_size=4 [18:10:30]MH_SAM_APDU [18:10:30]CAPDU: 80 13 01 00 [18:10:30]Write to MH i2c: E2 08 00 CB AF 80 13 01 00 00 00 00 00 F7 [18:10:30]Write i2c OK [18:10:30]MH_I2C_Read... [18:10:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:30]Read from MH i2c: E2 [18:10:30]MH_I2C_Read... [18:10:30]Read from MH i2c: E2 0E 00 [18:10:30]MH_I2C_Read... [18:10:30]Read from MH i2c: E2 0E 00 CB AF 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 34 [18:10:30]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:10:30]wFMCommunicate OK [18:10:30]SAM_PROTO_GetShiftState done [18:10:30]FM_GetShiftState done [18:10:30]req_shift_opened done [18:10:30]requested_item shift.open_date is exist - process it [18:10:30]req_shift_open_date [18:10:30]req_shift_open_date done [18:10:30]produce_requested_data done [18:10:30]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260842,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:10:30]process_action_free close_receipt [18:10:30]json_value_free [18:10:30]json_value_free done [18:10:30]process_json_proto returns [18:10:30]Send response to host [18:10:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260842,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:10:30]free response buf [18:10:30]execute_script done [18:10:30]execute_script returns [18:10:30]free content buf [18:10:30]Sock 7.Close socket [18:10:30]Sock 7.Thread stoped [18:10:32]OFD Sender: No OFD packet to send [18:10:37]OFD Sender: No OFD packet to send [18:10:42]OFD Sender: No OFD packet to send [18:10:47]OFD Sender: No OFD packet to send [18:10:52]OFD Sender: No OFD packet to send [18:10:57]OFD Sender: No OFD packet to send [18:11:02]OFD Sender: No OFD packet to send [18:11:07]OFD Sender: No OFD packet to send [18:11:12]OFD Sender: No OFD packet to send [18:11:17]OFD Sender: No OFD packet to send [18:11:22]OFD Sender: No OFD packet to send [18:11:27]OFD Sender: No OFD packet to send [18:11:32]OFD Sender: No OFD packet to send [18:11:37]OFD Sender: No OFD packet to send [18:11:42]OFD Sender: No OFD packet to send [18:11:47]OFD Sender: No OFD packet to send [18:11:52]OFD Sender: No OFD packet to send [18:11:57]OFD Sender: No OFD packet to send [18:12:02]OFD Sender: No OFD packet to send [18:12:07]OFD Sender: No OFD packet to send [18:12:12]OFD Sender: No OFD packet to send [18:12:17]OFD Sender: No OFD packet to send [18:12:22]OFD Sender: No OFD packet to send [18:12:27]OFD Sender: No OFD packet to send [18:12:32]OFD Sender: No OFD packet to send [18:12:37]OFD Sender: No OFD packet to send [18:12:42]OFD Sender: No OFD packet to send [18:12:47]OFD Sender: No OFD packet to send [18:12:52]OFD Sender: No OFD packet to send [18:12:57]OFD Sender: No OFD packet to send [18:13:02]OFD Sender: No OFD packet to send [18:13:07]OFD Sender: No OFD packet to send [18:13:12]OFD Sender: No OFD packet to send [18:13:17]OFD Sender: No OFD packet to send [18:13:22]OFD Sender: No OFD packet to send [18:13:27]OFD Sender: No OFD packet to send [18:13:32]OFD Sender: No OFD packet to send [18:13:37]OFD Sender: No OFD packet to send [18:13:42]OFD Sender: No OFD packet to send [18:13:47]OFD Sender: No OFD packet to send [18:13:52]OFD Sender: No OFD packet to send [18:13:57]OFD Sender: No OFD packet to send [18:14:02]OFD Sender: No OFD packet to send [18:14:07]OFD Sender: No OFD packet to send [18:14:12]OFD Sender: No OFD packet to send [18:14:17]OFD Sender: No OFD packet to send [18:14:22]OFD Sender: No OFD packet to send [18:14:27]OFD Sender: No OFD packet to send [18:14:32]OFD Sender: No OFD packet to send [18:14:37]OFD Sender: No OFD packet to send [18:14:42]OFD Sender: No OFD packet to send [18:14:47]OFD Sender: No OFD packet to send [18:14:52]OFD Sender: No OFD packet to send [18:14:57]OFD Sender: No OFD packet to send [18:15:03]OFD Sender: No OFD packet to send [18:15:08]OFD Sender: No OFD packet to send [18:15:13]OFD Sender: No OFD packet to send [18:15:18]OFD Sender: No OFD packet to send [18:15:23]OFD Sender: No OFD packet to send [18:15:28]OFD Sender: No OFD packet to send [18:15:33]OFD Sender: No OFD packet to send [18:15:38]OFD Sender: No OFD packet to send [18:15:43]OFD Sender: No OFD packet to send [18:15:48]OFD Sender: No OFD packet to send [18:15:53]OFD Sender: No OFD packet to send [18:15:58]OFD Sender: No OFD packet to send [18:16:03]OFD Sender: No OFD packet to send [18:16:08]OFD Sender: No OFD packet to send [18:16:13]OFD Sender: No OFD packet to send [18:16:18]OFD Sender: No OFD packet to send [18:16:23]OFD Sender: No OFD packet to send [18:16:28]OFD Sender: No OFD packet to send [18:16:33]OFD Sender: No OFD packet to send [18:16:38]OFD Sender: No OFD packet to send [18:16:42]accept exits with 9 [18:16:42]New connection [18:16:42]New thread 3066617188 created [18:16:42]Thread 3066473828 joined [18:16:42]Waiting for new connection... [18:16:42] Sock 9.Parse request [18:16:42]Sock 9.Check first char [18:16:42]Sock 9.First char is OK [18:16:42]request: POST /json_proto HTTP/1.0 [18:16:42]Method: POST [18:16:42]URL: /json_proto [18:16:42]Method is POST - this is cgi request [18:16:42]url: /json_proto [18:16:42]query_string will be loaded in cgi processing [18:16:42]execute_cgi json_proto POST (null) [18:16:42]execute_cgi path=json_proto method=POST [18:16:42]POST find Content-Length [18:16:42]Host: 172.17.55.133:8080 [18:16:42]Content-Length: 683 [18:16:42]Content-Type: application/json [18:16:42] [18:16:42]POST finish read [18:16:42]Found Content-Length = 683 [18:16:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036395", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:42]execute_script... [18:16: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)1036395", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:42]POST & json_proto [18:16:42]process_json_proto [18:16:42]json parsed OK: [18:16:42]protocol is kg_v1.0 [18:16:42]action value=close_receipt [18:16:42]process_action close_receipt [18:16:42]cmd_close_receipt [18:16:42]MH_GetDate [18:16:42]Write to MH i2c: F0 00 00 CC AF 6A [18:16:43]Write i2c OK [18:16:43]MH_I2C_Read... [18:16:43]Read from MH i2c: F0 [18:16:43]MH_I2C_Read... [18:16:43]Read from MH i2c: F0 09 00 [18:16:43]MH_I2C_Read... [18:16:43]Read from MH i2c: F0 09 00 CC AF 00 91 3A C2 66 34 48 D8 65 1F [18:16:43]GetLastDocTimeStamp 1724004631 [18:16:43]current date 1724005009 [18:16:43]FM_GetShiftState [18:16:43]SAM_PROTO_GetShiftState [18:16:43]wFMCommunicate request_size=4 [18:16:43]MH_SAM_APDU [18:16:43]CAPDU: 80 13 01 00 [18:16:43]Write to MH i2c: E2 08 00 CD AF 80 13 01 00 00 00 00 00 F9 [18:16:43]Write i2c OK [18:16:43]MH_I2C_Read... [18:16:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:43]Read from MH i2c: E2 [18:16:43]MH_I2C_Read... [18:16:43]Read from MH i2c: E2 0E 00 [18:16:43]MH_I2C_Read... [18:16:43]Read from MH i2c: E2 0E 00 CD AF 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 36 [18:16:43]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:16:43]wFMCommunicate OK [18:16:43]SAM_PROTO_GetShiftState done [18:16:43]FM_GetShiftState done [18:16:43]opened in 1723940556 [18:16:43]opened+sec_in_day 1724026956 [18:16:43]quantity*price = 100021 [18:16:43]sum+1 = 100023 [18:16:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 401 18.08.2024 18:16 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260843 ФПД: 225735615022967 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T181649&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260843&fm=225735615022967&tin=02508201610067®Number=0000000000091865&sum=100000 [18:16:44]StoreToDocumentArchive [18:16:44]shift 449 fd 260843 [18:16:44]save to /storage/0449/doc_00260843 [18:16:44]save last doc name /storage/0449/doc_00260843 to /storage/kkm_last_doc_name [18:16:44]save OK [18:16:44]Clear old archive folders... [18:16:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:16:44]tlvbuf is 00433200 [18:16:44]SAM_PROTO_ClearQueue [18:16:44]wFMCommunicate request_size=4 [18:16:44]MH_SAM_APDU [18:16:44]CAPDU: 80 09 00 00 [18:16:44]Write to MH i2c: E2 08 00 DA AF 80 09 00 00 00 00 00 00 FB [18:16:44]Write i2c OK [18:16:44]MH_I2C_Read... [18:16:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:16:44]Read from MH i2c: E2 [18:16:44]MH_I2C_Read... [18:16:44]Read from MH i2c: E2 03 00 [18:16:44]MH_I2C_Read... [18:16:44]Read from MH i2c: E2 03 00 DA AF 00 90 00 FD [18:16:44]RAPDU: 90 00 [18:16:44]wFMCommunicate OK [18:16:44]SAM_PROTO_ClearQueue done [18:16:44]KKMCreateOFDPacket [18:16:44]OFDProtocolAddRootSTLVToBuf [18:16:44]FM_MakeSignedData [18:16:44]FM_MakeSignedData [18:16:44]SAM_PROTO_SignData [18:16:44]wFMCommunicate request_size=4 [18:16:44]MH_SAM_APDU [18:16:44]CAPDU: 80 0D 01 02 [18:16:44]Write to MH i2c: E2 08 00 DB AF 80 0D 01 02 00 00 00 00 03 [18:16:44]Write i2c OK [18:16:44]MH_I2C_Read... [18:16:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:16:44]Read from MH i2c: E2 [18:16:44]MH_I2C_Read... [18:16:44]Read from MH i2c: E2 03 00 [18:16:44]MH_I2C_Read... [18:16:44]Read from MH i2c: E2 03 00 DB AF 00 90 00 FE [18:16:44]RAPDU: 90 00 [18:16:44]wFMCommunicate OK [18:16:44]wFMCommunicate request_size=255 [18:16:44]MH_SAM_APDU [18:16: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 01 00 00 F4 03 04 00 91 3A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EB FA 03 00 35 04 06 00 CD [18:16:44]Write to MH i2c: E2 02 01 DC AF 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 01 00 00 F4 03 04 00 91 3A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EB FA 03 00 35 04 06 00 CD 00 00 A9 [18:16:44]Write i2c OK [18:16:44]MH_I2C_Read... [18:16:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:44]Read from MH i2c: E2 [18:16:44]MH_I2C_Read... [18:16:44]Read from MH i2c: E2 03 00 [18:16:44]MH_I2C_Read... [18:16:44]Read from MH i2c: E2 03 00 DC AF 00 90 00 FF [18:16:44]RAPDU: 90 00 [18:16:44]wFMCommunicate OK [18:16:44]wFMCommunicate request_size=10 [18:16:44]MH_SAM_APDU [18:16:44]CAPDU: 80 0D 02 02 05 4E 2B 25 87 77 [18:16:44]Write to MH i2c: E2 0D 00 DD AF 80 0D 02 02 05 00 4E 2B 25 87 77 00 00 AC [18:16:44]Write i2c OK [18:16:44]MH_I2C_Read... [18:16:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:44]Read from MH i2c: E2 [18:16:44]MH_I2C_Read... [18:16:44]Read from MH i2c: E2 03 00 [18:16:44]MH_I2C_Read... [18:16:44]Read from MH i2c: E2 03 00 DD AF 00 90 00 00 [18:16:44]RAPDU: 90 00 [18:16:44]wFMCommunicate OK [18:16:44]wFMCommunicate request_size=4 [18:16:44]MH_SAM_APDU [18:16:44]CAPDU: 80 0D 03 02 [18:16:44]Write to MH i2c: E2 08 00 DE AF 80 0D 03 02 00 00 00 00 08 [18:16:44]Write i2c OK [18:16:44]MH_I2C_Read... [18:16:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:16:44]Read from MH i2c: E2 [18:16:44]MH_I2C_Read... [18:16:44]Read from MH i2c: E2 0B 00 [18:16:44]MH_I2C_Read... [18:16:44]Read from MH i2c: E2 0B 00 DE AF 00 2F 68 F1 45 C9 DC 0E 5A 90 00 E3 [18:16:44]RAPDU: 2F 68 F1 45 C9 DC 0E 5A 90 00 [18:16:44]wFMCommunicate OK [18:16:44]SAM_PROTO_SignData done [18:16:44]FM_MakeSignedData done [18:16:44]CreateOFDProtocolMessage [18:16:44]wFMCommunicate request_size=4 [18:16:44]MH_SAM_APDU [18:16:44]CAPDU: 80 11 00 00 [18:16:44]Write to MH i2c: E2 08 00 DF AF 80 11 00 00 00 00 00 00 08 [18:16:44]Write i2c OK [18:16:44]MH_I2C_Read... [18:16:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:44]Read from MH i2c: E2 [18:16:44]MH_I2C_Read... [18:16:44]Read from MH i2c: E2 17 00 [18:16:44]MH_I2C_Read... [18:16:44]Read from MH i2c: E2 17 00 DF AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 55 [18:16:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:16:44]wFMCommunicate OK [18:16:44]CreateOFDProtocolMessage done [18:16:44]OFDSenderStorePacket 260843 [18:16:44]StoreOFDPacket docnum=260843 [18:16:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 B0 CA 07 01 0C 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 01 00 00 F4 03 04 00 91 3A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EB FA 03 00 35 04 06 00 CD 4E 2B 25 87 77 2F 68 F1 45 C9 DC 0E 5A [18:16:44]CheckFolder [18:16:44]dirname=/storage/ofd_packets [18:16:44]CheckFolder done [18:16:44]ProducePacketName [18:16:44]name=ofd_packets/00260843 [18:16:44]NVStorageSaveData ofd_packets/00260843 [18:16:44]File name is /storage/ofd_packets/00260843 [18:16:44]Write 301 bytes [18:16:44]NVStorageSaveData done [18:16:44]OFDSenderStorePacket done [18:16:44]KKMCreateOFDPacket done [18:16:44]NVStorageSaveData kkm_last_timestamp [18:16:44]File name is /storage/kkm_last_timestamp [18:16:44]Write 4 bytes [18:16:44]NVStorageSaveData done [18:16:44]ExternCall_PrintAddStr [18:16:44]wPrintStart [18:16:44]Write to MH i2c: 01 00 00 E0 AF 8F [18:16:44]Write i2c OK [18:16:44]MH_I2C_Read... [18:16:44]Read from MH i2c: 01 [18:16:44]MH_I2C_Read... [18:16:44]Read from MH i2c: 01 07 00 [18:16:44]MH_I2C_Read... [18:16:44]Read from MH i2c: 01 07 00 E0 AF 00 00 00 00 00 FF 0F A4 [18:16:44]RasterBufferAndPrint [18:16:44]line Счет N : (1)1036395 [18:16:44]line ИНН: 02508201610067 [18:16:44]line Контрольно-Кассовый Чек [18:16:44]line ПРОДАЖА [18:16:44]line ТРК (МРК, ГНК) : 13 [18:16:44]line Товар: 2710124500 [18:16:44]line Аи-95-К-5 [18:16:44]line 13.480 * 74.20 [18:16:44]line = 1000.22 [18:16:44]line НДС 12% НСП 1% [18:16:44]line > о реализуемом товаре [18:16:44]line ОКРУГЛЕНИЕ: -0.22 [18:16:44]line ИТОГО: 1000.00 [18:16:44]line Внесено: 1000.00 [18:16:44]line СДАЧА: 0.00 [18:16:44]line НСП 1% : 8.85 [18:16:44]line НДС 12% : 106.22 [18:16:44]line Наличными: 1000.00 [18:16:44]line Безнал.: 0.00 [18:16:44]line Место: АЗС № 94 "Партнер Нефть" [18:16:44]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:16:44]line СНО: Общий режим [18:16:44]line Чек 401 18.08.2024 18:16 [18:16:44]line Смена: 449 ФФД: 1.0 [18:16:44]line ЗНМ: 0300000099 [18:16:44]line РНМ: 0000000000091865 [18:16:44]line Версия ККМ: 001 [18:16:44]line ФМ: 0000000000871820 [18:16:44]line ФД: 260843 [18:16:44]line ФПД: 225735615022967 [18:16:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T181649&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260843&fm=225735615022967&tin=02508201610067®Number=0000000000091865&sum=100000 [18:16:45]OFD Sender: Processing packet 260843 [packets to send 192, broken 191] [18:16:45]ProducePacketName [18:16:45]name=ofd_packets/00260843 [18:16:45]OFD Sender: To server: pG, [18:16:45]CommunicateWithHost lk.salyk.kg:30040 [18:16:45]ConnectInit lk.salyk.kg [18:16:45]written 0, free lines is 4095 [18:16:45]Connected sock=10 [18:16: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 30 0F 01 00 00 B0 CA 07 01 0C 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 01 00 00 F4 03 04 00 91 3A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EB FA 03 00 35 04 06 00 CD 4E 2B 25 87 77 2F 68 F1 45 C9 DC 0E 5A [18:16: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 30 4F 00 00 00 E8 A8 47 00 53 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EB FA 03 00 F4 03 04 00 E5 E3 C1 66 B6 04 01 00 00 D5 56 9C E2 7C 92 E4 73 [18:16:45]CommunicateWithHost err = 0 [18:16:45]CheckOFDResponse [18:16:45]1017 (14) - 77093643461234 [18:16:45]1041 (16) - 0000000000871820 [18:16:45]1040 (4) - 260843 [18:16:45]1012 (4) - 18.08.2024 12:07 [18:16:45]1206 (1) - 0 [18:16:45]OFD Sender: Remove packet 260843 [18:16:45]ProducePacketName [18:16:45]name=ofd_packets/00260843 [18:16:45]NVStorageDeleteData [18:16:45]Write to MH i2c: 01 00 00 0B B0 BB [18:16:45]Write i2c OK [18:16:45]MH_I2C_Read... [18:16:45]Read from MH i2c: 01 [18:16:45]MH_I2C_Read... [18:16:45]Read from MH i2c: 01 07 00 [18:16:45]MH_I2C_Read... [18:16:45]Read from MH i2c: 01 07 00 0B B0 00 00 00 00 00 6E 0C 3C [18:16:45]RasterBufferAndPrint [18:16:45]line [18:16:45]line [18:16:45]line [18:16:45]line [18:16:45]line [18:16:45]written 0, free lines is 3185 [18:16:45]MH_Cut [18:16:45]Write to MH i2c: D1 01 00 12 B0 01 94 [18:16:45]Write i2c OK [18:16:45]MH_I2C_Read... [18:16:45]Read from MH i2c: D1 [18:16:45]MH_I2C_Read... [18:16:45]Read from MH i2c: D1 01 00 [18:16:45]MH_I2C_Read... [18:16:45]Read from MH i2c: D1 01 00 12 B0 00 93 [18:16:45]Write to MH i2c: 01 00 00 13 B0 C3 [18:16:45]Write i2c OK [18:16:45]MH_I2C_Read... [18:16:45]OFD Sender: No OFD packet to send [18:16:46]*** Cut start [18:16:46]*** Purtial cut [18:16:46]*** Stage 1: CUTSNS_PIN = 1 [18:16:48]Read from MH i2c: 01 [18:16:48]MH_I2C_Read... [18:16:48]*** Stop cut motor [18:16:48]*** Cut end [18:16:48]Read from MH i2c: 01 07 00 [18:16:48]MH_I2C_Read... [18:16:48]Read from MH i2c: 01 07 00 13 B0 00 00 00 00 00 FF 0F D8 [18:16:48]process_action close_receipt done [18:16:48]requested_data is exist [18:16:48]produce_requested_data [18:16:48]requested_item fm.sn is exist - process it [18:16:48]wFMCommunicate request_size=4 [18:16:48]MH_SAM_APDU [18:16:48]CAPDU: 80 11 00 00 [18:16:48]Write to MH i2c: E2 08 00 14 B0 80 11 00 00 00 00 00 00 3E [18:16:48]Write i2c OK [18:16:48]MH_I2C_Read... [18:16:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:48]Read from MH i2c: E2 [18:16:48]MH_I2C_Read... [18:16:48]Read from MH i2c: E2 17 00 [18:16:48]MH_I2C_Read... [18:16:48]Read from MH i2c: E2 17 00 14 B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 8B [18:16:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:16:48]wFMCommunicate OK [18:16:48]requested_item fd.num is exist - process it [18:16:48]SAM_PROTO_GetFieldsCounters [18:16:48]wFMCommunicate request_size=4 [18:16:48]MH_SAM_APDU [18:16:48]CAPDU: 80 13 00 00 [18:16:48]Write to MH i2c: E2 08 00 15 B0 80 13 00 00 00 00 00 00 41 [18:16:48]Write i2c OK [18:16:48]MH_I2C_Read... [18:16:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:16:48]Read from MH i2c: E2 [18:16:48]MH_I2C_Read... [18:16:48]Read from MH i2c: E2 62 00 [18:16:48]MH_I2C_Read... [18:16:48]Read from MH i2c: E2 62 00 15 B0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 EB FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 91 01 00 00 5E 04 04 00 91 01 00 00 57 04 04 00 92 01 00 00 19 04 04 00 00 00 00 00 90 00 C0 [18:16: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 EB FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 91 01 00 00 5E 04 04 00 91 01 00 00 57 04 04 00 92 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:16:48]wFMCommunicate OK [18:16:48]SAM_PROTO_GetFieldsCounters done [18:16:48]requested_item shift.num is exist - process it [18:16:48]requested_item shift.opened is exist - process it [18:16:48]req_shift_opened [18:16:48]FM_GetShiftState [18:16:48]SAM_PROTO_GetShiftState [18:16:48]wFMCommunicate request_size=4 [18:16:48]MH_SAM_APDU [18:16:48]CAPDU: 80 13 01 00 [18:16:48]Write to MH i2c: E2 08 00 16 B0 80 13 01 00 00 00 00 00 43 [18:16:48]Write i2c OK [18:16:48]MH_I2C_Read... [18:16:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:48]Read from MH i2c: E2 [18:16:48]MH_I2C_Read... [18:16:48]Read from MH i2c: E2 0E 00 [18:16:48]MH_I2C_Read... [18:16:48]Read from MH i2c: E2 0E 00 16 B0 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 80 [18:16:48]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:16:48]wFMCommunicate OK [18:16:48]SAM_PROTO_GetShiftState done [18:16:48]FM_GetShiftState done [18:16:48]req_shift_opened done [18:16:48]requested_item shift.open_date is exist - process it [18:16:48]req_shift_open_date [18:16:48]req_shift_open_date done [18:16:48]produce_requested_data done [18:16:48]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260843,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:16:48]process_action_free close_receipt [18:16:48]json_value_free [18:16:48]json_value_free done [18:16:48]process_json_proto returns [18:16:48]Send response to host [18:16:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260843,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:16:48]free response buf [18:16:48]execute_script done [18:16:48]execute_script returns [18:16:48]free content buf [18:16:48]Sock 9.Close socket [18:16:48]Sock 9.Thread stoped [18:16:50]OFD Sender: No OFD packet to send [18:16:55]OFD Sender: No OFD packet to send [18:17:00]OFD Sender: No OFD packet to send [18:17:05]OFD Sender: No OFD packet to send [18:17:10]OFD Sender: No OFD packet to send [18:17:15]OFD Sender: No OFD packet to send [18:17:20]OFD Sender: No OFD packet to send [18:17:25]OFD Sender: No OFD packet to send [18:17:30]OFD Sender: No OFD packet to send [18:17:35]OFD Sender: No OFD packet to send [18:17:40]OFD Sender: No OFD packet to send [18:17:45]OFD Sender: No OFD packet to send [18:17:46]accept exits with 7 [18:17:46]New connection [18:17:46]New thread 3066473828 created [18:17:46]Thread 3066617188 joined [18:17:46]Waiting for new connection... [18:17:46] Sock 7.Parse request [18:17:46]Sock 7.Check first char [18:17:46]Sock 7.First char is OK [18:17:46]request: POST /json_proto HTTP/1.0 [18:17:46]Method: POST [18:17:46]URL: /json_proto [18:17:46]Method is POST - this is cgi request [18:17:46]url: /json_proto [18:17:46]query_string will be loaded in cgi processing [18:17:46]execute_cgi json_proto POST (null) [18:17:46]execute_cgi path=json_proto method=POST [18:17:46]POST find Content-Length [18:17:46]Host: 172.17.55.133:8080 [18:17:46]Content-Length: 683 [18:17:46]Content-Type: application/json [18:17:46] [18:17:46]POST finish read [18:17:46]Found Content-Length = 683 [18:17:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 44.250, "sum" : 3000.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:46]execute_script... [18:17: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)1036396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 44.250, "sum" : 3000.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:46]POST & json_proto [18:17:46]process_json_proto [18:17:46]json parsed OK: [18:17:46]protocol is kg_v1.0 [18:17:46]action value=close_receipt [18:17:46]process_action close_receipt [18:17:46]cmd_close_receipt [18:17:46]MH_GetDate [18:17:46]Write to MH i2c: F0 00 00 17 B0 B6 [18:17:46]Write i2c OK [18:17:46]MH_I2C_Read... [18:17:46]Read from MH i2c: F0 [18:17:46]MH_I2C_Read... [18:17:46]Read from MH i2c: F0 09 00 [18:17:46]MH_I2C_Read... [18:17:46]Read from MH i2c: F0 09 00 17 B0 00 D0 3A C2 66 34 48 D8 65 AA [18:17:46]GetLastDocTimeStamp 1724005009 [18:17:46]current date 1724005072 [18:17:46]FM_GetShiftState [18:17:46]SAM_PROTO_GetShiftState [18:17:46]wFMCommunicate request_size=4 [18:17:46]MH_SAM_APDU [18:17:46]CAPDU: 80 13 01 00 [18:17:46]Write to MH i2c: E2 08 00 18 B0 80 13 01 00 00 00 00 00 45 [18:17:46]Write i2c OK [18:17:46]MH_I2C_Read... [18:17:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:46]Read from MH i2c: E2 [18:17:46]MH_I2C_Read... [18:17:46]Read from MH i2c: E2 0E 00 [18:17:46]MH_I2C_Read... [18:17:46]Read from MH i2c: E2 0E 00 18 B0 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 82 [18:17:46]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:17:46]wFMCommunicate OK [18:17:46]SAM_PROTO_GetShiftState done [18:17:46]FM_GetShiftState done [18:17:46]opened in 1723940556 [18:17:46]opened+sec_in_day 1724026956 [18:17:46]quantity*price = 300015 [18:17:46]sum+1 = 300016 [18:17:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.60 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 402 18.08.2024 18:17 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260844 ФПД: 178548211780120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T181752&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260844&fm=178548211780120&tin=02508201610067®Number=0000000000091865&sum=300000 [18:17:47]StoreToDocumentArchive [18:17:47]shift 449 fd 260844 [18:17:47]save to /storage/0449/doc_00260844 [18:17:47]save last doc name /storage/0449/doc_00260844 to /storage/kkm_last_doc_name [18:17:47]save OK [18:17:47]Clear old archive folders... [18:17:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:17:47]tlvbuf is 00336570 [18:17:47]SAM_PROTO_ClearQueue [18:17:47]wFMCommunicate request_size=4 [18:17:47]MH_SAM_APDU [18:17:47]CAPDU: 80 09 00 00 [18:17:47]Write to MH i2c: E2 08 00 25 B0 80 09 00 00 00 00 00 00 47 [18:17:47]Write i2c OK [18:17:47]MH_I2C_Read... [18:17:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:17:47]Read from MH i2c: E2 [18:17:47]MH_I2C_Read... [18:17:47]Read from MH i2c: E2 03 00 [18:17:47]MH_I2C_Read... [18:17:47]Read from MH i2c: E2 03 00 25 B0 00 90 00 49 [18:17:47]RAPDU: 90 00 [18:17:47]wFMCommunicate OK [18:17:47]SAM_PROTO_ClearQueue done [18:17:47]KKMCreateOFDPacket [18:17:47]OFDProtocolAddRootSTLVToBuf [18:17:47]FM_MakeSignedData [18:17:47]FM_MakeSignedData [18:17:47]SAM_PROTO_SignData [18:17:47]wFMCommunicate request_size=4 [18:17:47]MH_SAM_APDU [18:17:47]CAPDU: 80 0D 01 02 [18:17:47]Write to MH i2c: E2 08 00 26 B0 80 0D 01 02 00 00 00 00 4F [18:17:47]Write i2c OK [18:17:47]MH_I2C_Read... [18:17:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:17:47]Read from MH i2c: E2 [18:17:47]MH_I2C_Read... [18:17:47]Read from MH i2c: E2 03 00 [18:17:47]MH_I2C_Read... [18:17:47]Read from MH i2c: E2 03 00 26 B0 00 90 00 4A [18:17:47]RAPDU: 90 00 [18:17:47]wFMCommunicate OK [18:17:47]wFMCommunicate request_size=255 [18:17:47]MH_SAM_APDU [18:17:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA AC 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 EF 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 74 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 92 01 00 00 F4 03 04 00 D0 3A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EC FA 03 00 35 04 06 00 A2 [18:17:47]Write to MH i2c: E2 02 01 27 B0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA AC 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 EF 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 74 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 92 01 00 00 F4 03 04 00 D0 3A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EC FA 03 00 35 04 06 00 A2 00 00 52 [18:17:47]Write i2c OK [18:17:47]MH_I2C_Read... [18:17:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:47]Read from MH i2c: E2 [18:17:47]MH_I2C_Read... [18:17:47]Read from MH i2c: E2 03 00 [18:17:47]MH_I2C_Read... [18:17:47]Read from MH i2c: E2 03 00 27 B0 00 90 00 4B [18:17:47]RAPDU: 90 00 [18:17:47]wFMCommunicate OK [18:17:47]wFMCommunicate request_size=10 [18:17:47]MH_SAM_APDU [18:17:47]CAPDU: 80 0D 02 02 05 63 7E BD 0A 18 [18:17:47]Write to MH i2c: E2 0D 00 28 B0 80 0D 02 02 05 00 63 7E BD 0A 18 00 00 1C [18:17:47]Write i2c OK [18:17:47]MH_I2C_Read... [18:17:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:47]Read from MH i2c: E2 [18:17:47]MH_I2C_Read... [18:17:47]Read from MH i2c: E2 03 00 [18:17:47]MH_I2C_Read... [18:17:47]Read from MH i2c: E2 03 00 28 B0 00 90 00 4C [18:17:47]RAPDU: 90 00 [18:17:47]wFMCommunicate OK [18:17:47]wFMCommunicate request_size=4 [18:17:47]MH_SAM_APDU [18:17:47]CAPDU: 80 0D 03 02 [18:17:47]Write to MH i2c: E2 08 00 29 B0 80 0D 03 02 00 00 00 00 54 [18:17:47]Write i2c OK [18:17:47]MH_I2C_Read... [18:17:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:17:47]Read from MH i2c: E2 [18:17:47]MH_I2C_Read... [18:17:47]Read from MH i2c: E2 0B 00 [18:17:47]MH_I2C_Read... [18:17:47]Read from MH i2c: E2 0B 00 29 B0 00 55 13 0D 35 BE 88 5C 7C 90 00 1D [18:17:47]RAPDU: 55 13 0D 35 BE 88 5C 7C 90 00 [18:17:47]wFMCommunicate OK [18:17:47]SAM_PROTO_SignData done [18:17:47]FM_MakeSignedData done [18:17:47]CreateOFDProtocolMessage [18:17:47]wFMCommunicate request_size=4 [18:17:47]MH_SAM_APDU [18:17:47]CAPDU: 80 11 00 00 [18:17:47]Write to MH i2c: E2 08 00 2A B0 80 11 00 00 00 00 00 00 54 [18:17:47]Write i2c OK [18:17:47]MH_I2C_Read... [18:17:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:47]Read from MH i2c: E2 [18:17:47]MH_I2C_Read... [18:17:47]Read from MH i2c: E2 17 00 [18:17:47]MH_I2C_Read... [18:17:47]Read from MH i2c: E2 17 00 2A B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A1 [18:17:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:17:47]wFMCommunicate OK [18:17:47]CreateOFDProtocolMessage done [18:17:47]OFDSenderStorePacket 260844 [18:17:47]StoreOFDPacket docnum=260844 [18:17:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 8D 04 07 01 F6 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA AC 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 EF 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 74 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 92 01 00 00 F4 03 04 00 D0 3A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EC FA 03 00 35 04 06 00 A2 63 7E BD 0A 18 55 13 0D 35 BE 88 5C 7C [18:17:47]CheckFolder [18:17:47]dirname=/storage/ofd_packets [18:17:47]CheckFolder done [18:17:47]ProducePacketName [18:17:47]name=ofd_packets/00260844 [18:17:47]NVStorageSaveData ofd_packets/00260844 [18:17:47]File name is /storage/ofd_packets/00260844 [18:17:47]Write 301 bytes [18:17:47]NVStorageSaveData done [18:17:47]OFDSenderStorePacket done [18:17:47]KKMCreateOFDPacket done [18:17:47]NVStorageSaveData kkm_last_timestamp [18:17:47]File name is /storage/kkm_last_timestamp [18:17:47]Write 4 bytes [18:17:47]NVStorageSaveData done [18:17:47]ExternCall_PrintAddStr [18:17:47]wPrintStart [18:17:47]Write to MH i2c: 01 00 00 2B B0 DB [18:17:47]Write i2c OK [18:17:47]MH_I2C_Read... [18:17:47]Read from MH i2c: 01 [18:17:47]MH_I2C_Read... [18:17:47]Read from MH i2c: 01 07 00 [18:17:47]MH_I2C_Read... [18:17:47]Read from MH i2c: 01 07 00 2B B0 00 00 00 00 00 FF 0F F0 [18:17:47]RasterBufferAndPrint [18:17:47]line Счет N : (1)1036396 [18:17:47]line ИНН: 02508201610067 [18:17:47]line Контрольно-Кассовый Чек [18:17:47]line ПРОДАЖА [18:17:47]line ТРК (МРК, ГНК) : 22 [18:17:47]line Товар: 2710124130 [18:17:47]line Аи-92-К-5 [18:17:47]line 44.250 * 67.80 [18:17:47]line = 3000.15 [18:17:47]line НДС 12% НСП 1% [18:17:47]line > о реализуемом товаре [18:17:47]line ОКРУГЛЕНИЕ: -0.15 [18:17:47]line ИТОГО: 3000.00 [18:17:47]line Внесено: 3000.00 [18:17:47]line СДАЧА: 0.00 [18:17:47]line НСП 1% : 26.55 [18:17:47]line НДС 12% : 318.60 [18:17:47]line Наличными: 3000.00 [18:17:47]line Безнал.: 0.00 [18:17:47]line Место: АЗС № 94 "Партнер Нефть" [18:17:47]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:17:47]line СНО: Общий режим [18:17:47]line Чек 402 18.08.2024 18:17 [18:17:47]line Смена: 449 ФФД: 1.0 [18:17:47]line ЗНМ: 0300000099 [18:17:47]line РНМ: 0000000000091865 [18:17:47]line Версия ККМ: 001 [18:17:47]line ФМ: 0000000000871820 [18:17:47]line ФД: 260844 [18:17:47]line ФПД: 178548211780120 [18:17:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T181752&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260844&fm=178548211780120&tin=02508201610067®Number=0000000000091865&sum=300000 [18:17:48]written 0, free lines is 4095 [18:17:48]OFD Sender: Processing packet 260844 [packets to send 192, broken 191] [18:17:48]ProducePacketName [18:17:48]name=ofd_packets/00260844 [18:17:48]OFD Sender: To server: pG, [18:17:48]CommunicateWithHost lk.salyk.kg:30040 [18:17:48]ConnectInit lk.salyk.kg [18:17:48]Connected sock=10 [18:17: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 30 0F 01 00 00 8D 04 07 01 F6 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA AC 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 EF 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 74 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 92 01 00 00 F4 03 04 00 D0 3A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EC FA 03 00 35 04 06 00 A2 63 7E BD 0A 18 55 13 0D 35 BE 88 5C 7C [18:17: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 30 4F 00 00 00 8F 82 47 00 5D 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EC FA 03 00 F4 03 04 00 24 E4 C1 66 B6 04 01 00 00 1C 0C CE 40 72 C5 07 DC [18:17:48]CommunicateWithHost err = 0 [18:17:48]CheckOFDResponse [18:17:48]1017 (14) - 77093643461234 [18:17:48]1041 (16) - 0000000000871820 [18:17:48]1040 (4) - 260844 [18:17:48]1012 (4) - 18.08.2024 12:08 [18:17:48]1206 (1) - 0 [18:17:48]OFD Sender: Remove packet 260844 [18:17:48]ProducePacketName [18:17:48]name=ofd_packets/00260844 [18:17:48]NVStorageDeleteData [18:17:48]Write to MH i2c: 01 00 00 56 B0 06 [18:17:48]Write i2c OK [18:17:48]MH_I2C_Read... [18:17:48]Read from MH i2c: 01 [18:17:48]MH_I2C_Read... [18:17:48]Read from MH i2c: 01 07 00 [18:17:48]MH_I2C_Read... [18:17:48]Read from MH i2c: 01 07 00 56 B0 00 00 00 00 00 6B 0C 84 [18:17:48]RasterBufferAndPrint [18:17:48]line [18:17:48]line [18:17:48]line [18:17:48]line [18:17:48]line [18:17:48]written 0, free lines is 3182 [18:17:48]MH_Cut [18:17:48]Write to MH i2c: D1 01 00 5D B0 01 DF [18:17:48]Write i2c OK [18:17:48]MH_I2C_Read... [18:17:48]Read from MH i2c: D1 [18:17:48]MH_I2C_Read... [18:17:48]Read from MH i2c: D1 01 00 [18:17:48]MH_I2C_Read... [18:17:48]Read from MH i2c: D1 01 00 5D B0 00 DE [18:17:48]Write to MH i2c: 01 00 00 5E B0 0E [18:17:48]Write i2c OK [18:17:48]MH_I2C_Read... [18:17:49]OFD Sender: No OFD packet to send [18:17:49]*** Cut start [18:17:49]*** Purtial cut [18:17:49]*** Stage 1: CUTSNS_PIN = 1 [18:17:51]Read from MH i2c: 01 [18:17:51]MH_I2C_Read... [18:17:51]*** Stop cut motor [18:17:51]*** Cut end [18:17:51]Read from MH i2c: 01 07 00 [18:17:51]MH_I2C_Read... [18:17:51]Read from MH i2c: 01 07 00 5E B0 00 00 00 00 00 FF 0F 23 [18:17:51]process_action close_receipt done [18:17:51]requested_data is exist [18:17:51]produce_requested_data [18:17:51]requested_item fm.sn is exist - process it [18:17:51]wFMCommunicate request_size=4 [18:17:51]MH_SAM_APDU [18:17:51]CAPDU: 80 11 00 00 [18:17:51]Write to MH i2c: E2 08 00 5F B0 80 11 00 00 00 00 00 00 89 [18:17:51]Write i2c OK [18:17:51]MH_I2C_Read... [18:17:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:51]Read from MH i2c: E2 [18:17:51]MH_I2C_Read... [18:17:51]Read from MH i2c: E2 17 00 [18:17:51]MH_I2C_Read... [18:17:51]Read from MH i2c: E2 17 00 5F B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D6 [18:17:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:17:51]wFMCommunicate OK [18:17:51]requested_item fd.num is exist - process it [18:17:51]SAM_PROTO_GetFieldsCounters [18:17:51]wFMCommunicate request_size=4 [18:17:51]MH_SAM_APDU [18:17:51]CAPDU: 80 13 00 00 [18:17:51]Write to MH i2c: E2 08 00 60 B0 80 13 00 00 00 00 00 00 8C [18:17:51]Write i2c OK [18:17:51]MH_I2C_Read... [18:17:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:17:52]Read from MH i2c: E2 [18:17:52]MH_I2C_Read... [18:17:52]Read from MH i2c: E2 62 00 [18:17:52]MH_I2C_Read... [18:17:52]Read from MH i2c: E2 62 00 60 B0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 EC FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 92 01 00 00 5E 04 04 00 92 01 00 00 57 04 04 00 93 01 00 00 19 04 04 00 00 00 00 00 90 00 0F [18:17: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 EC FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 92 01 00 00 5E 04 04 00 92 01 00 00 57 04 04 00 93 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:17:52]wFMCommunicate OK [18:17:52]SAM_PROTO_GetFieldsCounters done [18:17:52]requested_item shift.num is exist - process it [18:17:52]requested_item shift.opened is exist - process it [18:17:52]req_shift_opened [18:17:52]FM_GetShiftState [18:17:52]SAM_PROTO_GetShiftState [18:17:52]wFMCommunicate request_size=4 [18:17:52]MH_SAM_APDU [18:17:52]CAPDU: 80 13 01 00 [18:17:52]Write to MH i2c: E2 08 00 61 B0 80 13 01 00 00 00 00 00 8E [18:17:52]Write i2c OK [18:17:52]MH_I2C_Read... [18:17:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:52]Read from MH i2c: E2 [18:17:52]MH_I2C_Read... [18:17:52]Read from MH i2c: E2 0E 00 [18:17:52]MH_I2C_Read... [18:17:52]Read from MH i2c: E2 0E 00 61 B0 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 CB [18:17:52]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:17:52]wFMCommunicate OK [18:17:52]SAM_PROTO_GetShiftState done [18:17:52]FM_GetShiftState done [18:17:52]req_shift_opened done [18:17:52]requested_item shift.open_date is exist - process it [18:17:52]req_shift_open_date [18:17:52]req_shift_open_date done [18:17:52]produce_requested_data done [18:17:52]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260844,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:17:52]process_action_free close_receipt [18:17:52]json_value_free [18:17:52]json_value_free done [18:17:52]process_json_proto returns [18:17:52]Send response to host [18:17:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260844,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:17:52]free response buf [18:17:52]execute_script done [18:17:52]execute_script returns [18:17:52]free content buf [18:17:52]Sock 7.Close socket [18:17:52]Sock 7.Thread stoped [18:17:54]OFD Sender: No OFD packet to send [18:17:59]OFD Sender: No OFD packet to send [18:18:04]OFD Sender: No OFD packet to send [18:18:09]OFD Sender: No OFD packet to send [18:18:14]OFD Sender: No OFD packet to send [18:18:19]OFD Sender: No OFD packet to send [18:18:24]OFD Sender: No OFD packet to send [18:18:29]OFD Sender: No OFD packet to send [18:18:34]OFD Sender: No OFD packet to send [18:18:39]OFD Sender: No OFD packet to send [18:18:44]OFD Sender: No OFD packet to send [18:18:49]OFD Sender: No OFD packet to send [18:18:54]OFD Sender: No OFD packet to send [18:18:59]OFD Sender: No OFD packet to send [18:19:04]OFD Sender: No OFD packet to send [18:19:09]OFD Sender: No OFD packet to send [18:19:14]OFD Sender: No OFD packet to send [18:19:19]OFD Sender: No OFD packet to send [18:19:24]OFD Sender: No OFD packet to send [18:19:29]OFD Sender: No OFD packet to send [18:19:34]OFD Sender: No OFD packet to send [18:19:39]OFD Sender: No OFD packet to send [18:19:44]OFD Sender: No OFD packet to send [18:19:49]OFD Sender: No OFD packet to send [18:19:54]OFD Sender: No OFD packet to send [18:19:59]OFD Sender: No OFD packet to send [18:20:04]OFD Sender: No OFD packet to send [18:20:09]OFD Sender: No OFD packet to send [18:20:14]OFD Sender: No OFD packet to send [18:20:19]OFD Sender: No OFD packet to send [18:20:24]OFD Sender: No OFD packet to send [18:20:28]accept exits with 9 [18:20:28]New connection [18:20:28]New thread 3066617188 created [18:20:28]Thread 3066473828 joined [18:20:28]Waiting for new connection... [18:20:28] Sock 9.Parse request [18:20:28]Sock 9.Check first char [18:20:28]Sock 9.First char is OK [18:20:28]request: POST /json_proto HTTP/1.0 [18:20:28]Method: POST [18:20:28]URL: /json_proto [18:20:28]Method is POST - this is cgi request [18:20:28]url: /json_proto [18:20:28]query_string will be loaded in cgi processing [18:20:28]execute_cgi json_proto POST (null) [18:20:28]execute_cgi path=json_proto method=POST [18:20:28]POST find Content-Length [18:20:28]Host: 172.17.55.133:8080 [18:20:28]Content-Length: 683 [18:20:28]Content-Type: application/json [18:20:28] [18:20:28]POST finish read [18:20:28]Found Content-Length = 683 [18:20:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "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" ] } } [18:20:28]execute_script... [18:20: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)1036397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "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" ] } } [18:20:28]POST & json_proto [18:20:28]process_json_proto [18:20:28]json parsed OK: [18:20:28]protocol is kg_v1.0 [18:20:28]action value=close_receipt [18:20:28]process_action close_receipt [18:20:28]cmd_close_receipt [18:20:28]MH_GetDate [18:20:28]Write to MH i2c: F0 00 00 62 B0 01 [18:20:28]Write i2c OK [18:20:28]MH_I2C_Read... [18:20:28]Read from MH i2c: F0 [18:20:28]MH_I2C_Read... [18:20:28]Read from MH i2c: F0 09 00 [18:20:28]MH_I2C_Read... [18:20:28]Read from MH i2c: F0 09 00 62 B0 00 72 3B C2 66 34 48 D8 65 98 [18:20:28]GetLastDocTimeStamp 1724005072 [18:20:28]current date 1724005234 [18:20:28]FM_GetShiftState [18:20:28]SAM_PROTO_GetShiftState [18:20:28]wFMCommunicate request_size=4 [18:20:28]MH_SAM_APDU [18:20:28]CAPDU: 80 13 01 00 [18:20:28]Write to MH i2c: E2 08 00 63 B0 80 13 01 00 00 00 00 00 90 [18:20:28]Write i2c OK [18:20:28]MH_I2C_Read... [18:20:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:28]Read from MH i2c: E2 [18:20:28]MH_I2C_Read... [18:20:28]Read from MH i2c: E2 0E 00 [18:20:28]MH_I2C_Read... [18:20:28]Read from MH i2c: E2 0E 00 63 B0 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 CD [18:20:28]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:20:28]wFMCommunicate OK [18:20:28]SAM_PROTO_GetShiftState done [18:20:28]FM_GetShiftState done [18:20:28]opened in 1723940556 [18:20:28]opened+sec_in_day 1724026956 [18:20:28]quantity*price = 200010 [18:20:28]sum+1 = 200011 [18:20:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 403 18.08.2024 18:20 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260845 ФПД: 85076462629679 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T182034&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260845&fm=85076462629679&tin=02508201610067®Number=0000000000091865&sum=200000 [18:20:29]StoreToDocumentArchive [18:20:29]shift 449 fd 260845 [18:20:29]save to /storage/0449/doc_00260845 [18:20:29]save last doc name /storage/0449/doc_00260845 to /storage/kkm_last_doc_name [18:20:29]save OK [18:20:29]Clear old archive folders... [18:20:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:20:29]tlvbuf is 00451030 [18:20:29]SAM_PROTO_ClearQueue [18:20:29]wFMCommunicate request_size=4 [18:20:29]MH_SAM_APDU [18:20:29]CAPDU: 80 09 00 00 [18:20:29]Write to MH i2c: E2 08 00 70 B0 80 09 00 00 00 00 00 00 92 [18:20:29]Write i2c OK [18:20:29]MH_I2C_Read... [18:20:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:20:29]OFD Sender: No OFD packet to send [18:20:29]Read from MH i2c: E2 [18:20:29]MH_I2C_Read... [18:20:29]Read from MH i2c: E2 03 00 [18:20:29]MH_I2C_Read... [18:20:29]Read from MH i2c: E2 03 00 70 B0 00 90 00 94 [18:20:29]RAPDU: 90 00 [18:20:29]wFMCommunicate OK [18:20:29]SAM_PROTO_ClearQueue done [18:20:29]KKMCreateOFDPacket [18:20:29]OFDProtocolAddRootSTLVToBuf [18:20:29]FM_MakeSignedData [18:20:29]FM_MakeSignedData [18:20:29]SAM_PROTO_SignData [18:20:29]wFMCommunicate request_size=4 [18:20:29]MH_SAM_APDU [18:20:29]CAPDU: 80 0D 01 02 [18:20:29]Write to MH i2c: E2 08 00 71 B0 80 0D 01 02 00 00 00 00 9A [18:20:29]Write i2c OK [18:20:29]MH_I2C_Read... [18:20:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:20:29]Read from MH i2c: E2 [18:20:29]MH_I2C_Read... [18:20:29]Read from MH i2c: E2 03 00 [18:20:29]MH_I2C_Read... [18:20:29]Read from MH i2c: E2 03 00 71 B0 00 90 00 95 [18:20:29]RAPDU: 90 00 [18:20:29]wFMCommunicate OK [18:20:29]wFMCommunicate request_size=255 [18:20:29]MH_SAM_APDU [18:20:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 93 01 00 00 F4 03 04 00 72 3B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 ED FA 03 00 35 04 06 00 4D [18:20:29]Write to MH i2c: E2 02 01 72 B0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 93 01 00 00 F4 03 04 00 72 3B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 ED FA 03 00 35 04 06 00 4D 00 00 7D [18:20:29]Write i2c OK [18:20:29]MH_I2C_Read... [18:20:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:29]Read from MH i2c: E2 [18:20:29]MH_I2C_Read... [18:20:29]Read from MH i2c: E2 03 00 [18:20:29]MH_I2C_Read... [18:20:29]Read from MH i2c: E2 03 00 72 B0 00 90 00 96 [18:20:29]RAPDU: 90 00 [18:20:29]wFMCommunicate OK [18:20:29]wFMCommunicate request_size=10 [18:20:29]MH_SAM_APDU [18:20:29]CAPDU: 80 0D 02 02 05 60 68 55 73 2F [18:20:29]Write to MH i2c: E2 0D 00 73 B0 80 0D 02 02 05 00 60 68 55 73 2F 00 00 66 [18:20:29]Write i2c OK [18:20:29]MH_I2C_Read... [18:20:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:29]Read from MH i2c: E2 [18:20:29]MH_I2C_Read... [18:20:29]Read from MH i2c: E2 03 00 [18:20:29]MH_I2C_Read... [18:20:29]Read from MH i2c: E2 03 00 73 B0 00 90 00 97 [18:20:29]RAPDU: 90 00 [18:20:29]wFMCommunicate OK [18:20:29]wFMCommunicate request_size=4 [18:20:29]MH_SAM_APDU [18:20:29]CAPDU: 80 0D 03 02 [18:20:29]Write to MH i2c: E2 08 00 74 B0 80 0D 03 02 00 00 00 00 9F [18:20:29]Write i2c OK [18:20:29]MH_I2C_Read... [18:20:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:20:29]Read from MH i2c: E2 [18:20:29]MH_I2C_Read... [18:20:29]Read from MH i2c: E2 0B 00 [18:20:29]MH_I2C_Read... [18:20:29]Read from MH i2c: E2 0B 00 74 B0 00 7A 70 0F 70 3F 1A F3 4D 90 00 A2 [18:20:29]RAPDU: 7A 70 0F 70 3F 1A F3 4D 90 00 [18:20:29]wFMCommunicate OK [18:20:29]SAM_PROTO_SignData done [18:20:29]FM_MakeSignedData done [18:20:29]CreateOFDProtocolMessage [18:20:29]wFMCommunicate request_size=4 [18:20:29]MH_SAM_APDU [18:20:29]CAPDU: 80 11 00 00 [18:20:29]Write to MH i2c: E2 08 00 75 B0 80 11 00 00 00 00 00 00 9F [18:20:29]Write i2c OK [18:20:29]MH_I2C_Read... [18:20:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:29]Read from MH i2c: E2 [18:20:29]MH_I2C_Read... [18:20:29]Read from MH i2c: E2 17 00 [18:20:29]MH_I2C_Read... [18:20:29]Read from MH i2c: E2 17 00 75 B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 EC [18:20:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:20:29]wFMCommunicate OK [18:20:29]CreateOFDProtocolMessage done [18:20:29]OFDSenderStorePacket 260845 [18:20:29]StoreOFDPacket docnum=260845 [18:20:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 5D 96 07 01 00 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 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 93 01 00 00 F4 03 04 00 72 3B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 ED FA 03 00 35 04 06 00 4D 60 68 55 73 2F 7A 70 0F 70 3F 1A F3 4D [18:20:29]CheckFolder [18:20:29]dirname=/storage/ofd_packets [18:20:29]CheckFolder done [18:20:29]ProducePacketName [18:20:29]name=ofd_packets/00260845 [18:20:29]NVStorageSaveData ofd_packets/00260845 [18:20:29]File name is /storage/ofd_packets/00260845 [18:20:29]Write 301 bytes [18:20:29]NVStorageSaveData done [18:20:29]OFDSenderStorePacket done [18:20:29]KKMCreateOFDPacket done [18:20:29]NVStorageSaveData kkm_last_timestamp [18:20:29]File name is /storage/kkm_last_timestamp [18:20:29]Write 4 bytes [18:20:29]NVStorageSaveData done [18:20:29]ExternCall_PrintAddStr [18:20:29]wPrintStart [18:20:29]Write to MH i2c: 01 00 00 76 B0 26 [18:20:29]Write i2c OK [18:20:29]MH_I2C_Read... [18:20:29]Read from MH i2c: 01 [18:20:29]MH_I2C_Read... [18:20:29]Read from MH i2c: 01 07 00 [18:20:29]MH_I2C_Read... [18:20:29]Read from MH i2c: 01 07 00 76 B0 00 00 00 00 00 FF 0F 3B [18:20:29]RasterBufferAndPrint [18:20:29]line Счет N : (1)1036397 [18:20:29]line ИНН: 02508201610067 [18:20:29]line Контрольно-Кассовый Чек [18:20:29]line ПРОДАЖА [18:20:29]line ТРК (МРК, ГНК) : 22 [18:20:29]line Товар: 2710124130 [18:20:29]line Аи-92-К-5 [18:20:29]line 29.500 * 67.80 [18:20:29]line = 2000.10 [18:20:29]line НДС 12% НСП 1% [18:20:29]line > о реализуемом товаре [18:20:29]line ОКРУГЛЕНИЕ: -0.10 [18:20:29]line ИТОГО: 2000.00 [18:20:29]line Внесено: 2000.00 [18:20:29]line СДАЧА: 0.00 [18:20:29]line НСП 1% : 17.70 [18:20:29]line НДС 12% : 212.40 [18:20:29]line Наличными: 2000.00 [18:20:29]line Безнал.: 0.00 [18:20:29]line Место: АЗС № 94 "Партнер Нефть" [18:20:29]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:20:29]line СНО: Общий режим [18:20:29]line Чек 403 18.08.2024 18:20 [18:20:29]line Смена: 449 ФФД: 1.0 [18:20:29]line ЗНМ: 0300000099 [18:20:29]line РНМ: 0000000000091865 [18:20:29]line Версия ККМ: 001 [18:20:29]line ФМ: 0000000000871820 [18:20:29]line ФД: 260845 [18:20:29]line ФПД: 85076462629679 [18:20:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T182034&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260845&fm=85076462629679&tin=02508201610067®Number=0000000000091865&sum=200000 [18:20:30]OFD Sender: Processing packet 260845 [packets to send 192, broken 191] [18:20:30]ProducePacketName [18:20:30]name=ofd_packets/00260845 [18:20:30]OFD Sender: To server: pG, [18:20:30]CommunicateWithHost lk.salyk.kg:30040 [18:20:30]ConnectInit lk.salyk.kg [18:20:30]written 0, free lines is 4095 [18:20:30]Connected sock=10 [18:20: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 30 0F 01 00 00 5D 96 07 01 00 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 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 93 01 00 00 F4 03 04 00 72 3B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 ED FA 03 00 35 04 06 00 4D 60 68 55 73 2F 7A 70 0F 70 3F 1A F3 4D [18:20: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 30 4F 00 00 00 C4 DD 47 00 A8 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 ED FA 03 00 F4 03 04 00 C6 E4 C1 66 B6 04 01 00 00 56 0D CC 56 2A A4 D9 CF [18:20:30]CommunicateWithHost err = 0 [18:20:30]CheckOFDResponse [18:20:30]1017 (14) - 77093643461234 [18:20:30]1041 (16) - 0000000000871820 [18:20:30]1040 (4) - 260845 [18:20:30]1012 (4) - 18.08.2024 12:10 [18:20:30]1206 (1) - 0 [18:20:30]OFD Sender: Remove packet 260845 [18:20:30]ProducePacketName [18:20:30]name=ofd_packets/00260845 [18:20:30]NVStorageDeleteData [18:20:30]Write to MH i2c: 01 00 00 A1 B0 51 [18:20:30]Write i2c OK [18:20:30]MH_I2C_Read... [18:20:30]Read from MH i2c: 01 [18:20:30]MH_I2C_Read... [18:20:30]Read from MH i2c: 01 07 00 [18:20:30]MH_I2C_Read... [18:20:30]Read from MH i2c: 01 07 00 A1 B0 00 00 00 00 00 62 0C C6 [18:20:30]RasterBufferAndPrint [18:20:30]line [18:20:30]line [18:20:30]line [18:20:30]line [18:20:30]line [18:20:30]written 0, free lines is 3175 [18:20:30]MH_Cut [18:20:30]Write to MH i2c: D1 01 00 A8 B0 01 2A [18:20:30]Write i2c OK [18:20:30]MH_I2C_Read... [18:20:30]Read from MH i2c: D1 [18:20:30]MH_I2C_Read... [18:20:30]Read from MH i2c: D1 01 00 [18:20:30]MH_I2C_Read... [18:20:30]Read from MH i2c: D1 01 00 A8 B0 00 29 [18:20:30]Write to MH i2c: 01 00 00 A9 B0 59 [18:20:30]Write i2c OK [18:20:30]MH_I2C_Read... [18:20:30]OFD Sender: No OFD packet to send [18:20:31]*** Cut start [18:20:31]*** Purtial cut [18:20:31]*** Stage 1: CUTSNS_PIN = 1 [18:20:33]Read from MH i2c: 01 [18:20:33]MH_I2C_Read... [18:20:33]*** Stop cut motor [18:20:33]*** Cut end [18:20:33]Read from MH i2c: 01 07 00 [18:20:33]MH_I2C_Read... [18:20:33]Read from MH i2c: 01 07 00 A9 B0 00 00 00 00 00 FF 0F 6E [18:20:33]process_action close_receipt done [18:20:33]requested_data is exist [18:20:33]produce_requested_data [18:20:33]requested_item fm.sn is exist - process it [18:20:33]wFMCommunicate request_size=4 [18:20:33]MH_SAM_APDU [18:20:33]CAPDU: 80 11 00 00 [18:20:33]Write to MH i2c: E2 08 00 AA B0 80 11 00 00 00 00 00 00 D4 [18:20:33]Write i2c OK [18:20:33]MH_I2C_Read... [18:20:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:33]Read from MH i2c: E2 [18:20:33]MH_I2C_Read... [18:20:33]Read from MH i2c: E2 17 00 [18:20:33]MH_I2C_Read... [18:20:33]Read from MH i2c: E2 17 00 AA B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 21 [18:20:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:20:33]wFMCommunicate OK [18:20:33]requested_item fd.num is exist - process it [18:20:33]SAM_PROTO_GetFieldsCounters [18:20:33]wFMCommunicate request_size=4 [18:20:33]MH_SAM_APDU [18:20:33]CAPDU: 80 13 00 00 [18:20:33]Write to MH i2c: E2 08 00 AB B0 80 13 00 00 00 00 00 00 D7 [18:20:33]Write i2c OK [18:20:33]MH_I2C_Read... [18:20:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:20:33]Read from MH i2c: E2 [18:20:33]MH_I2C_Read... [18:20:33]Read from MH i2c: E2 62 00 [18:20:33]MH_I2C_Read... [18:20:33]Read from MH i2c: E2 62 00 AB B0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 ED FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 93 01 00 00 5E 04 04 00 93 01 00 00 57 04 04 00 94 01 00 00 19 04 04 00 00 00 00 00 90 00 5E [18:20: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 ED FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 93 01 00 00 5E 04 04 00 93 01 00 00 57 04 04 00 94 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:20:33]wFMCommunicate OK [18:20:33]SAM_PROTO_GetFieldsCounters done [18:20:33]requested_item shift.num is exist - process it [18:20:33]requested_item shift.opened is exist - process it [18:20:33]req_shift_opened [18:20:33]FM_GetShiftState [18:20:33]SAM_PROTO_GetShiftState [18:20:33]wFMCommunicate request_size=4 [18:20:33]MH_SAM_APDU [18:20:33]CAPDU: 80 13 01 00 [18:20:33]Write to MH i2c: E2 08 00 AC B0 80 13 01 00 00 00 00 00 D9 [18:20:33]Write i2c OK [18:20:33]MH_I2C_Read... [18:20:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:34]Read from MH i2c: E2 [18:20:34]MH_I2C_Read... [18:20:34]Read from MH i2c: E2 0E 00 [18:20:34]MH_I2C_Read... [18:20:34]Read from MH i2c: E2 0E 00 AC B0 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 16 [18:20:34]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:20:34]wFMCommunicate OK [18:20:34]SAM_PROTO_GetShiftState done [18:20:34]FM_GetShiftState done [18:20:34]req_shift_opened done [18:20:34]requested_item shift.open_date is exist - process it [18:20:34]req_shift_open_date [18:20:34]req_shift_open_date done [18:20:34]produce_requested_data done [18:20:34]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260845,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:20:34]process_action_free close_receipt [18:20:34]json_value_free [18:20:34]json_value_free done [18:20:34]process_json_proto returns [18:20:34]Send response to host [18:20:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260845,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:20:34]free response buf [18:20:34]execute_script done [18:20:34]execute_script returns [18:20:34]free content buf [18:20:34]Sock 9.Close socket [18:20:34]Sock 9.Thread stoped [18:20:34]accept exits with 7 [18:20:34]New connection [18:20:34]New thread 3066473828 created [18:20:34]Thread 3066617188 joined [18:20:34]Waiting for new connection... [18:20:34] Sock 7.Parse request [18:20:34]Sock 7.Check first char [18:20:34]Sock 7.First char is OK [18:20:34]request: POST /json_proto HTTP/1.0 [18:20:34]Method: POST [18:20:34]URL: /json_proto [18:20:34]Method is POST - this is cgi request [18:20:34]url: /json_proto [18:20:34]query_string will be loaded in cgi processing [18:20:34]execute_cgi json_proto POST (null) [18:20:34]execute_cgi path=json_proto method=POST [18:20:34]POST find Content-Length [18:20:34]Host: 172.17.55.133:8080 [18:20:34]Content-Length: 804 [18:20:34]Content-Type: application/json [18:20:34] [18:20:34]POST finish read [18:20:34]Found Content-Length = 804 [18:20:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036398", "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" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:34]execute_script... [18:20:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036398", "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" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:34]POST & json_proto [18:20:34]process_json_proto [18:20:34]json parsed OK: [18:20:34]protocol is kg_v1.0 [18:20:34]action value=close_receipt [18:20:34]process_action close_receipt [18:20:34]cmd_close_receipt [18:20:34]MH_GetDate [18:20:34]Write to MH i2c: F0 00 00 AD B0 4C [18:20:34]Write i2c OK [18:20:34]MH_I2C_Read... [18:20:34]Read from MH i2c: F0 [18:20:34]MH_I2C_Read... [18:20:34]Read from MH i2c: F0 09 00 [18:20:34]MH_I2C_Read... [18:20:34]Read from MH i2c: F0 09 00 AD B0 00 78 3B C2 66 34 48 D8 65 E9 [18:20:34]GetLastDocTimeStamp 1724005234 [18:20:34]current date 1724005240 [18:20:34]FM_GetShiftState [18:20:34]SAM_PROTO_GetShiftState [18:20:34]wFMCommunicate request_size=4 [18:20:34]MH_SAM_APDU [18:20:34]CAPDU: 80 13 01 00 [18:20:34]Write to MH i2c: E2 08 00 AE B0 80 13 01 00 00 00 00 00 DB [18:20:34]Write i2c OK [18:20:34]MH_I2C_Read... [18:20:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:34]Read from MH i2c: E2 [18:20:34]MH_I2C_Read... [18:20:34]Read from MH i2c: E2 0E 00 [18:20:34]MH_I2C_Read... [18:20:34]Read from MH i2c: E2 0E 00 AE B0 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 18 [18:20:34]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:20:34]wFMCommunicate OK [18:20:34]SAM_PROTO_GetShiftState done [18:20:34]FM_GetShiftState done [18:20:34]opened in 1723940556 [18:20:34]opened+sec_in_day 1724026956 [18:20:34]quantity*price = 150032 [18:20:34]sum+1 = 150033 [18:20:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.32 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.32 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 404 18.08.2024 18:20 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260846 ФПД: 230566447586298 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T182040&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260846&fm=230566447586298&tin=02508201610067®Number=0000000000091865&sum=150032 [18:20:35]StoreToDocumentArchive [18:20:35]shift 449 fd 260846 [18:20:35]save to /storage/0449/doc_00260846 [18:20:35]save last doc name /storage/0449/doc_00260846 to /storage/kkm_last_doc_name [18:20:35]save OK [18:20:35]Clear old archive folders... [18:20:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:20:35]tlvbuf is 004E5490 [18:20:35]SAM_PROTO_ClearQueue [18:20:35]wFMCommunicate request_size=4 [18:20:35]MH_SAM_APDU [18:20:35]CAPDU: 80 09 00 00 [18:20:35]Write to MH i2c: E2 08 00 BB B0 80 09 00 00 00 00 00 00 DD [18:20:35]Write i2c OK [18:20:35]MH_I2C_Read... [18:20:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:20:35]Read from MH i2c: E2 [18:20:35]MH_I2C_Read... [18:20:35]Read from MH i2c: E2 03 00 [18:20:35]MH_I2C_Read... [18:20:35]Read from MH i2c: E2 03 00 BB B0 00 90 00 DF [18:20:35]RAPDU: 90 00 [18:20:35]wFMCommunicate OK [18:20:35]SAM_PROTO_ClearQueue done [18:20:35]KKMCreateOFDPacket [18:20:35]OFDProtocolAddRootSTLVToBuf [18:20:35]FM_MakeSignedData [18:20:35]FM_MakeSignedData [18:20:35]SAM_PROTO_SignData [18:20:35]wFMCommunicate request_size=4 [18:20:35]MH_SAM_APDU [18:20:35]CAPDU: 80 0D 01 02 [18:20:35]Write to MH i2c: E2 08 00 BC B0 80 0D 01 02 00 00 00 00 E5 [18:20:35]Write i2c OK [18:20:35]MH_I2C_Read... [18:20:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:20:35]Read from MH i2c: E2 [18:20:35]MH_I2C_Read... [18:20:35]Read from MH i2c: E2 03 00 [18:20:35]MH_I2C_Read... [18:20:35]Read from MH i2c: E2 03 00 BC B0 00 90 00 E0 [18:20:35]RAPDU: 90 00 [18:20:35]wFMCommunicate OK [18:20:35]wFMCommunicate request_size=255 [18:20:35]MH_SAM_APDU [18:20: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 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 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 78 3B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EE FA 03 00 35 04 06 00 D1 [18:20:35]Write to MH i2c: E2 02 01 BD B0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 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 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 78 3B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EE FA 03 00 35 04 06 00 D1 00 00 05 [18:20:35]Write i2c OK [18:20:35]MH_I2C_Read... [18:20:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:36]Read from MH i2c: OFD Sender: No OFD packet to send [18:20:36]E2 [18:20:36]MH_I2C_Read... [18:20:36]Read from MH i2c: E2 03 00 [18:20:36]MH_I2C_Read... [18:20:36]Read from MH i2c: E2 03 00 BD B0 00 90 00 E1 [18:20:36]RAPDU: 90 00 [18:20:36]wFMCommunicate OK [18:20:36]wFMCommunicate request_size=10 [18:20:36]MH_SAM_APDU [18:20:36]CAPDU: 80 0D 02 02 05 B2 EF 34 9B FA [18:20:36]Write to MH i2c: E2 0D 00 BE B0 80 0D 02 02 05 00 B2 EF 34 9B FA 00 00 5C [18:20:36]Write i2c OK [18:20:36]MH_I2C_Read... [18:20:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:36]Read from MH i2c: E2 [18:20:36]MH_I2C_Read... [18:20:36]Read from MH i2c: E2 03 00 [18:20:36]MH_I2C_Read... [18:20:36]Read from MH i2c: E2 03 00 BE B0 00 90 00 E2 [18:20:36]RAPDU: 90 00 [18:20:36]wFMCommunicate OK [18:20:36]wFMCommunicate request_size=4 [18:20:36]MH_SAM_APDU [18:20:36]CAPDU: 80 0D 03 02 [18:20:36]Write to MH i2c: E2 08 00 BF B0 80 0D 03 02 00 00 00 00 EA [18:20:36]Write i2c OK [18:20:36]MH_I2C_Read... [18:20:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:20:36]Read from MH i2c: E2 [18:20:36]MH_I2C_Read... [18:20:36]Read from MH i2c: E2 0B 00 [18:20:36]MH_I2C_Read... [18:20:36]Read from MH i2c: E2 0B 00 BF B0 00 8E 42 5B 2B 8B 2B D7 C7 90 00 95 [18:20:36]RAPDU: 8E 42 5B 2B 8B 2B D7 C7 90 00 [18:20:36]wFMCommunicate OK [18:20:36]SAM_PROTO_SignData done [18:20:36]FM_MakeSignedData done [18:20:36]CreateOFDProtocolMessage [18:20:36]wFMCommunicate request_size=4 [18:20:36]MH_SAM_APDU [18:20:36]CAPDU: 80 11 00 00 [18:20:36]Write to MH i2c: E2 08 00 C0 B0 80 11 00 00 00 00 00 00 EA [18:20:36]Write i2c OK [18:20:36]MH_I2C_Read... [18:20:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:36]Read from MH i2c: E2 [18:20:36]MH_I2C_Read... [18:20:36]Read from MH i2c: E2 17 00 [18:20:36]MH_I2C_Read... [18:20:36]Read from MH i2c: E2 17 00 C0 B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 37 [18:20:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:20:36]wFMCommunicate OK [18:20:36]CreateOFDProtocolMessage done [18:20:36]OFDSenderStorePacket 260846 [18:20:36]StoreOFDPacket docnum=260846 [18:20:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 1A 50 07 01 96 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 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 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 78 3B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EE FA 03 00 35 04 06 00 D1 B2 EF 34 9B FA 8E 42 5B 2B 8B 2B D7 C7 [18:20:36]CheckFolder [18:20:36]dirname=/storage/ofd_packets [18:20:36]CheckFolder done [18:20:36]ProducePacketName [18:20:36]name=ofd_packets/00260846 [18:20:36]NVStorageSaveData ofd_packets/00260846 [18:20:36]File name is /storage/ofd_packets/00260846 [18:20:36]Write 301 bytes [18:20:36]NVStorageSaveData done [18:20:36]OFDSenderStorePacket done [18:20:36]KKMCreateOFDPacket done [18:20:36]NVStorageSaveData kkm_last_timestamp [18:20:36]File name is /storage/kkm_last_timestamp [18:20:36]Write 4 bytes [18:20:36]NVStorageSaveData done [18:20:36]ExternCall_PrintAddStr [18:20:36]wPrintStart [18:20:36]Write to MH i2c: 01 00 00 C1 B0 71 [18:20:36]Write i2c OK [18:20:36]MH_I2C_Read... [18:20:36]Read from MH i2c: 01 [18:20:36]MH_I2C_Read... [18:20:36]OFD Sender: Processing packet 260846 [packets to send 192, broken 191] [18:20:36]ProducePacketName [18:20:36]name=ofd_packets/00260846 [18:20:36]OFD Sender: To server: pG, [18:20:36]CommunicateWithHost lk.salyk.kg:30040 [18:20:36]ConnectInit lk.salyk.kg [18:20:36]Read from MH i2c: 01 07 00 [18:20:36]MH_I2C_Read... [18:20:36]Read from MH i2c: 01 07 00 C1 B0 00 00 00 00 00 FF 0F 86 [18:20:36]RasterBufferAndPrint [18:20:36]line Счет N : (1)1036398 [18:20:36]line ИНН: 02508201610067 [18:20:36]line Контрольно-Кассовый Чек [18:20:36]line ПРОДАЖА [18:20:36]line ТРК (МРК, ГНК) : 13 [18:20:36]line Товар: 2710124500 [18:20:36]line Аи-95-К-5 [18:20:36]line 20.220 * 74.20 [18:20:36]line = 1500.32 [18:20:36]line НДС 12% НСП 1% [18:20:36]line > о реализуемом товаре [18:20:36]line ИТОГО: 1500.32 [18:20:36]line НСП 1% : 13.28 [18:20:36]line НДС 12% : 159.33 [18:20:36]line Наличными: 0.00 [18:20:36]line Безнал.: 1500.32 [18:20:36]line Место: АЗС № 94 "Партнер Нефть" [18:20:36]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:20:36]line СНО: Общий режим [18:20:36]line Чек 404 18.08.2024 18:20 [18:20:36]line Смена: 449 ФФД: 1.0 [18:20:36]line ЗНМ: 0300000099 [18:20:36]line РНМ: 0000000000091865 [18:20:36]line Версия ККМ: 001 [18:20:36]line Платежная система: O! деньги [18:20:36]line ФМ: 0000000000871820 [18:20:36]line ФД: 260846 [18:20:36]line ФПД: 230566447586298 [18:20:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T182040&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260846&fm=230566447586298&tin=02508201610067®Number=0000000000091865&sum=150032 [18:20:36]written 0, free lines is 4095 [18:20:36]Connected sock=10 [18:20: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 30 0F 01 00 00 1A 50 07 01 96 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 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 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 78 3B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EE FA 03 00 35 04 06 00 D1 B2 EF 34 9B FA 8E 42 5B 2B 8B 2B D7 C7 [18:20: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 30 4F 00 00 00 72 31 47 00 57 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 30 10 04 04 00 EE FA 03 00 F4 03 04 00 CD E4 C1 66 B6 04 01 00 00 1F 5B 56 8B A0 CC D6 04 [18:20:37]CommunicateWithHost err = 0 [18:20:37]CheckOFDResponse [18:20:37]1017 (14) - 77093643461234 [18:20:37]1041 (16) - 0000000000871820 [18:20:37]1040 (4) - 260846 [18:20:37]1012 (4) - 18.08.2024 12:10 [18:20:37]1206 (1) - 0 [18:20:37]OFD Sender: Remove packet 260846 [18:20:37]ProducePacketName [18:20:37]name=ofd_packets/00260846 [18:20:37]NVStorageDeleteData [18:20:37]Write to MH i2c: 01 00 00 EB B0 9B [18:20:37]Write i2c OK [18:20:37]MH_I2C_Read... [18:20:37]Read from MH i2c: 01 [18:20:37]MH_I2C_Read... [18:20:37]Read from MH i2c: 01 07 00 [18:20:37]MH_I2C_Read... [18:20:37]Read from MH i2c: 01 07 00 EB B0 00 00 00 00 00 87 0C 35 [18:20:37]RasterBufferAndPrint [18:20:37]line [18:20:37]line [18:20:37]line [18:20:37]line [18:20:37]line [18:20:37]written 0, free lines is 3213 [18:20:37]MH_Cut [18:20:37]Write to MH i2c: D1 01 00 F2 B0 01 74 [18:20:37]Write i2c OK [18:20:37]MH_I2C_Read... [18:20:37]Read from MH i2c: D1 [18:20:37]MH_I2C_Read... [18:20:37]Read from MH i2c: D1 01 00 [18:20:37]MH_I2C_Read... [18:20:37]Read from MH i2c: D1 01 00 F2 B0 00 73 [18:20:37]Write to MH i2c: 01 00 00 F3 B0 A3 [18:20:37]Write i2c OK [18:20:37]MH_I2C_Read... [18:20:37]OFD Sender: No OFD packet to send [18:20:38]*** Cut start [18:20:38]*** Purtial cut [18:20:38]*** Stage 1: CUTSNS_PIN = 1 [18:20:40]Read from MH i2c: 01 [18:20:40]MH_I2C_Read... [18:20:40]*** Stop cut motor [18:20:40]*** Cut end [18:20:40]Read from MH i2c: 01 07 00 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: 01 07 00 F3 B0 00 00 00 00 00 FF 0F B8 [18:20:40]process_action close_receipt done [18:20:40]requested_data is exist [18:20:40]produce_requested_data [18:20:40]requested_item fm.sn is exist - process it [18:20:40]wFMCommunicate request_size=4 [18:20:40]MH_SAM_APDU [18:20:40]CAPDU: 80 11 00 00 [18:20:40]Write to MH i2c: E2 08 00 F4 B0 80 11 00 00 00 00 00 00 1E [18:20:40]Write i2c OK [18:20:40]MH_I2C_Read... [18:20:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:40]Read from MH i2c: E2 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: E2 17 00 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: E2 17 00 F4 B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 6B [18:20:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:20:40]wFMCommunicate OK [18:20:40]requested_item fd.num is exist - process it [18:20:40]SAM_PROTO_GetFieldsCounters [18:20:40]wFMCommunicate request_size=4 [18:20:40]MH_SAM_APDU [18:20:40]CAPDU: 80 13 00 00 [18:20:40]Write to MH i2c: E2 08 00 F5 B0 80 13 00 00 00 00 00 00 21 [18:20:40]Write i2c OK [18:20:40]MH_I2C_Read... [18:20:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:20:40]Read from MH i2c: E2 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: E2 62 00 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: E2 62 00 F5 B0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 EE FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 94 01 00 00 5E 04 04 00 94 01 00 00 57 04 04 00 95 01 00 00 19 04 04 00 00 00 00 00 90 00 AC [18:20: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 EE FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 94 01 00 00 5E 04 04 00 94 01 00 00 57 04 04 00 95 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:20:40]wFMCommunicate OK [18:20:40]SAM_PROTO_GetFieldsCounters done [18:20:40]requested_item shift.num is exist - process it [18:20:40]requested_item shift.opened is exist - process it [18:20:40]req_shift_opened [18:20:40]FM_GetShiftState [18:20:40]SAM_PROTO_GetShiftState [18:20:40]wFMCommunicate request_size=4 [18:20:40]MH_SAM_APDU [18:20:40]CAPDU: 80 13 01 00 [18:20:40]Write to MH i2c: E2 08 00 F6 B0 80 13 01 00 00 00 00 00 23 [18:20:40]Write i2c OK [18:20:40]MH_I2C_Read... [18:20:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:40]Read from MH i2c: E2 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: E2 0E 00 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: E2 0E 00 F6 B0 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 60 [18:20:40]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:20:40]wFMCommunicate OK [18:20:40]SAM_PROTO_GetShiftState done [18:20:40]FM_GetShiftState done [18:20:40]req_shift_opened done [18:20:40]requested_item shift.open_date is exist - process it [18:20:40]req_shift_open_date [18:20:40]req_shift_open_date done [18:20:40]produce_requested_data done [18:20:40]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260846,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:20:40]process_action_free close_receipt [18:20:40]json_value_free [18:20:40]json_value_free done [18:20:40]process_json_proto returns [18:20:40]Send response to host [18:20:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260846,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:20:40]free response buf [18:20:40]execute_script done [18:20:40]execute_script returns [18:20:40]free content buf [18:20:40]Sock 7.Close socket [18:20:40]Sock 7.Thread stoped [18:20:42]OFD Sender: No OFD packet to send [18:20:47]OFD Sender: No OFD packet to send [18:20:52]OFD Sender: No OFD packet to send [18:20:57]OFD Sender: No OFD packet to send [18:21:02]OFD Sender: No OFD packet to send [18:21:07]OFD Sender: No OFD packet to send [18:21:12]OFD Sender: No OFD packet to send [18:21:17]OFD Sender: No OFD packet to send [18:21:22]OFD Sender: No OFD packet to send [18:21:27]OFD Sender: No OFD packet to send [18:21:32]OFD Sender: No OFD packet to send [18:21:37]OFD Sender: No OFD packet to send [18:21:42]OFD Sender: No OFD packet to send [18:21:47]OFD Sender: No OFD packet to send [18:21:52]OFD Sender: No OFD packet to send [18:21:57]OFD Sender: No OFD packet to send [18:22:02]OFD Sender: No OFD packet to send [18:22:07]OFD Sender: No OFD packet to send [18:22:12]OFD Sender: No OFD packet to send [18:22:17]OFD Sender: No OFD packet to send [18:22:22]OFD Sender: No OFD packet to send [18:22:27]OFD Sender: No OFD packet to send [18:22:32]OFD Sender: No OFD packet to send [18:22:37]OFD Sender: No OFD packet to send [18:22:42]OFD Sender: No OFD packet to send [18:22:47]OFD Sender: No OFD packet to send [18:22:49]accept exits with 9 [18:22:49]New connection [18:22:49]New thread 3066617188 created [18:22:49]Thread 3066473828 joined [18:22:49]Waiting for new connection... [18:22:49] Sock 9.Parse request [18:22:49]Sock 9.Check first char [18:22:49]Sock 9.First char is OK [18:22:49]request: POST /json_proto HTTP/1.0 [18:22:49]Method: POST [18:22:49]URL: /json_proto [18:22:49]Method is POST - this is cgi request [18:22:49]url: /json_proto [18:22:49]query_string will be loaded in cgi processing [18:22:49]execute_cgi json_proto POST (null) [18:22:49]execute_cgi path=json_proto method=POST [18:22:49]POST find Content-Length [18:22:49]Host: 172.17.55.133:8080 [18:22:49]Content-Length: 679 [18:22:49]Content-Type: application/json [18:22:49] [18:22:49]POST finish read [18:22:49]Found Content-Length = 679 [18:22:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 13.280, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:49]execute_script... [18:22: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)1036399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 13.280, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:49]POST & json_proto [18:22:49]process_json_proto [18:22:49]json parsed OK: [18:22:49]protocol is kg_v1.0 [18:22:49]action value=close_receipt [18:22:49]process_action close_receipt [18:22:49]cmd_close_receipt [18:22:49]MH_GetDate [18:22:49]Write to MH i2c: F0 00 00 F7 B0 96 [18:22:49]Write i2c OK [18:22:49]MH_I2C_Read... [18:22:49]Read from MH i2c: F0 [18:22:49]MH_I2C_Read... [18:22:49]Read from MH i2c: F0 09 00 [18:22:49]MH_I2C_Read... [18:22:49]Read from MH i2c: F0 09 00 F7 B0 00 FF 3B C2 66 34 48 D8 65 BA [18:22:49]GetLastDocTimeStamp 1724005240 [18:22:49]current date 1724005375 [18:22:49]FM_GetShiftState [18:22:49]SAM_PROTO_GetShiftState [18:22:49]wFMCommunicate request_size=4 [18:22:49]MH_SAM_APDU [18:22:49]CAPDU: 80 13 01 00 [18:22:49]Write to MH i2c: E2 08 00 F8 B0 80 13 01 00 00 00 00 00 25 [18:22:49]Write i2c OK [18:22:49]MH_I2C_Read... [18:22:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:49]Read from MH i2c: E2 [18:22:49]MH_I2C_Read... [18:22:49]Read from MH i2c: E2 0E 00 [18:22:49]MH_I2C_Read... [18:22:49]Read from MH i2c: E2 0E 00 F8 B0 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 62 [18:22:49]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:22:49]wFMCommunicate OK [18:22:49]SAM_PROTO_GetShiftState done [18:22:49]FM_GetShiftState done [18:22:49]opened in 1723940556 [18:22:49]opened+sec_in_day 1724026956 [18:22:49]quantity*price = 90038 [18:22:49]sum+1 = 90039 [18:22:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 405 18.08.2024 18:22 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260847 ФПД: 164808862227037 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T182255&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260847&fm=164808862227037&tin=02508201610067®Number=0000000000091865&sum=90000 [18:22:50]StoreToDocumentArchive [18:22:50]shift 449 fd 260847 [18:22:50]save to /storage/0449/doc_00260847 [18:22:50]save last doc name /storage/0449/doc_00260847 to /storage/kkm_last_doc_name [18:22:50]save OK [18:22:50]Clear old archive folders... [18:22:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:22:50]tlvbuf is 00387EC0 [18:22:50]SAM_PROTO_ClearQueue [18:22:50]wFMCommunicate request_size=4 [18:22:50]MH_SAM_APDU [18:22:50]CAPDU: 80 09 00 00 [18:22:50]Write to MH i2c: E2 08 00 05 B1 80 09 00 00 00 00 00 00 28 [18:22:50]Write i2c OK [18:22:50]MH_I2C_Read... [18:22:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:22:50]Read from MH i2c: E2 [18:22:50]MH_I2C_Read... [18:22:50]Read from MH i2c: E2 03 00 [18:22:50]MH_I2C_Read... [18:22:50]Read from MH i2c: E2 03 00 05 B1 00 90 00 2A [18:22:50]RAPDU: 90 00 [18:22:50]wFMCommunicate OK [18:22:50]SAM_PROTO_ClearQueue done [18:22:50]KKMCreateOFDPacket [18:22:50]OFDProtocolAddRootSTLVToBuf [18:22:50]FM_MakeSignedData [18:22:50]FM_MakeSignedData [18:22:50]SAM_PROTO_SignData [18:22:50]wFMCommunicate request_size=4 [18:22:50]MH_SAM_APDU [18:22:50]CAPDU: 80 0D 01 02 [18:22:50]Write to MH i2c: E2 08 00 06 B1 80 0D 01 02 00 00 00 00 30 [18:22:50]Write i2c OK [18:22:50]MH_I2C_Read... [18:22:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:22:50]Read from MH i2c: E2 [18:22:50]MH_I2C_Read... [18:22:50]Read from MH i2c: E2 03 00 [18:22:50]MH_I2C_Read... [18:22:50]Read from MH i2c: E2 03 00 06 B1 00 90 00 2B [18:22:50]RAPDU: 90 00 [18:22:50]wFMCommunicate OK [18:22:50]wFMCommunicate request_size=255 [18:22:50]MH_SAM_APDU [18:22:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 01 00 00 F4 03 04 00 FF 3B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EF FA 03 00 35 04 06 00 95 [18:22:50]Write to MH i2c: E2 02 01 07 B1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 01 00 00 F4 03 04 00 FF 3B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EF FA 03 00 35 04 06 00 95 00 00 B1 [18:22:50]Write i2c OK [18:22:50]MH_I2C_Read... [18:22:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:50]Read from MH i2c: E2 [18:22:50]MH_I2C_Read... [18:22:50]Read from MH i2c: E2 03 00 [18:22:50]MH_I2C_Read... [18:22:50]Read from MH i2c: E2 03 00 07 B1 00 90 00 2C [18:22:50]RAPDU: 90 00 [18:22:50]wFMCommunicate OK [18:22:50]wFMCommunicate request_size=10 [18:22:50]MH_SAM_APDU [18:22:50]CAPDU: 80 0D 02 02 05 E4 8D B0 5A 5D [18:22:50]Write to MH i2c: E2 0D 00 08 B1 80 0D 02 02 05 00 E4 8D B0 5A 5D 00 00 15 [18:22:50]Write i2c OK [18:22:50]MH_I2C_Read... [18:22:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:50]Read from MH i2c: E2 [18:22:50]MH_I2C_Read... [18:22:50]Read from MH i2c: E2 03 00 [18:22:50]MH_I2C_Read... [18:22:50]Read from MH i2c: E2 03 00 08 B1 00 90 00 2D [18:22:50]RAPDU: 90 00 [18:22:50]wFMCommunicate OK [18:22:50]wFMCommunicate request_size=4 [18:22:50]MH_SAM_APDU [18:22:50]CAPDU: 80 0D 03 02 [18:22:50]Write to MH i2c: E2 08 00 09 B1 80 0D 03 02 00 00 00 00 35 [18:22:50]Write i2c OK [18:22:50]MH_I2C_Read... [18:22:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:22:50]Read from MH i2c: E2 [18:22:50]MH_I2C_Read... [18:22:50]Read from MH i2c: E2 0B 00 [18:22:50]MH_I2C_Read... [18:22:50]Read from MH i2c: E2 0B 00 09 B1 00 7F FE 3C DF 9D F2 CF 03 90 00 2F [18:22:50]RAPDU: 7F FE 3C DF 9D F2 CF 03 90 00 [18:22:50]wFMCommunicate OK [18:22:50]SAM_PROTO_SignData done [18:22:50]FM_MakeSignedData done [18:22:50]CreateOFDProtocolMessage [18:22:50]wFMCommunicate request_size=4 [18:22:50]MH_SAM_APDU [18:22:50]CAPDU: 80 11 00 00 [18:22:50]Write to MH i2c: E2 08 00 0A B1 80 11 00 00 00 00 00 00 35 [18:22:50]Write i2c OK [18:22:50]MH_I2C_Read... [18:22:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:50]Read from MH i2c: E2 [18:22:50]MH_I2C_Read... [18:22:50]Read from MH i2c: E2 17 00 [18:22:50]MH_I2C_Read... [18:22:50]Read from MH i2c: E2 17 00 0A B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 82 [18:22:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:22:50]wFMCommunicate OK [18:22:50]CreateOFDProtocolMessage done [18:22:50]OFDSenderStorePacket 260847 [18:22:50]StoreOFDPacket docnum=260847 [18:22:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 A3 BF 07 01 71 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 01 00 00 F4 03 04 00 FF 3B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EF FA 03 00 35 04 06 00 95 E4 8D B0 5A 5D 7F FE 3C DF 9D F2 CF 03 [18:22:50]CheckFolder [18:22:50]dirname=/storage/ofd_packets [18:22:50]CheckFolder done [18:22:50]ProducePacketName [18:22:50]name=ofd_packets/00260847 [18:22:50]NVStorageSaveData ofd_packets/00260847 [18:22:50]File name is /storage/ofd_packets/00260847 [18:22:50]Write 301 bytes [18:22:50]NVStorageSaveData done [18:22:50]OFDSenderStorePacket done [18:22:50]KKMCreateOFDPacket done [18:22:50]NVStorageSaveData kkm_last_timestamp [18:22:50]File name is /storage/kkm_last_timestamp [18:22:50]Write 4 bytes [18:22:50]NVStorageSaveData done [18:22:50]ExternCall_PrintAddStr [18:22:50]wPrintStart [18:22:50]Write to MH i2c: 01 00 00 0B B1 BC [18:22:50]Write i2c OK [18:22:50]MH_I2C_Read... [18:22:50]Read from MH i2c: 01 [18:22:50]MH_I2C_Read... [18:22:50]Read from MH i2c: 01 07 00 [18:22:50]MH_I2C_Read... [18:22:50]Read from MH i2c: 01 07 00 0B B1 00 00 00 00 00 FF 0F D1 [18:22:50]RasterBufferAndPrint [18:22:50]line Счет N : (1)1036399 [18:22:50]line ИНН: 02508201610067 [18:22:50]line Контрольно-Кассовый Чек [18:22:50]line ПРОДАЖА [18:22:50]line ТРК (МРК, ГНК) : 42 [18:22:50]line Товар: 2710124130 [18:22:50]line Аи-92-К-5 [18:22:50]line 13.280 * 67.80 [18:22:50]line = 900.38 [18:22:50]line НДС 12% НСП 1% [18:22:50]line > о реализуемом товаре [18:22:50]line ОКРУГЛЕНИЕ: -0.38 [18:22:50]line ИТОГО: 900.00 [18:22:50]line Внесено: 900.00 [18:22:50]line СДАЧА: 0.00 [18:22:50]line НСП 1% : 7.97 [18:22:50]line НДС 12% : 95.62 [18:22:50]line Наличными: 900.00 [18:22:50]line Безнал.: 0.00 [18:22:50]line Место: АЗС № 94 "Партнер Нефть" [18:22:50]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:22:50]line СНО: Общий режим [18:22:50]line Чек 405 18.08.2024 18:22 [18:22:50]line Смена: 449 ФФД: 1.0 [18:22:50]line ЗНМ: 0300000099 [18:22:50]line РНМ: 0000000000091865 [18:22:50]line Версия ККМ: 001 [18:22:50]line ФМ: 0000000000871820 [18:22:50]line ФД: 260847 [18:22:50]line ФПД: 164808862227037 [18:22:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T182255&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260847&fm=164808862227037&tin=02508201610067®Number=0000000000091865&sum=90000 [18:22:50]written 0, free lines is 4095 [18:22:50]OFD Sender: Processing packet 260847 [packets to send 192, broken 191] [18:22:50]ProducePacketName [18:22:50]name=ofd_packets/00260847 [18:22:50]OFD Sender: To server: pG, [18:22:50]CommunicateWithHost lk.salyk.kg:30040 [18:22:50]ConnectInit lk.salyk.kg [18:22:51]Connected sock=10 [18:22: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 30 0F 01 00 00 A3 BF 07 01 71 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 01 00 00 F4 03 04 00 FF 3B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 EF FA 03 00 35 04 06 00 95 E4 8D B0 5A 5D 7F FE 3C DF 9D F2 CF 03 [18:22: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 30 4F 00 00 00 33 45 47 00 F6 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 30 10 04 04 00 EF FA 03 00 F4 03 04 00 53 E5 C1 66 B6 04 01 00 00 29 0C 48 36 09 37 30 DC [18:22:51]CommunicateWithHost err = 0 [18:22:51]CheckOFDResponse [18:22:51]1017 (14) - 77093643461234 [18:22:51]1041 (16) - 0000000000871820 [18:22:51]1040 (4) - 260847 [18:22:51]1012 (4) - 18.08.2024 12:13 [18:22:51]1206 (1) - 0 [18:22:51]OFD Sender: Remove packet 260847 [18:22:51]ProducePacketName [18:22:51]name=ofd_packets/00260847 [18:22:51]NVStorageDeleteData [18:22:51]Write to MH i2c: 01 00 00 36 B1 E7 [18:22:51]Write i2c OK [18:22:51]MH_I2C_Read... [18:22:51]Read from MH i2c: 01 [18:22:51]MH_I2C_Read... [18:22:51]Read from MH i2c: 01 07 00 [18:22:51]MH_I2C_Read... [18:22:51]Read from MH i2c: 01 07 00 36 B1 00 00 00 00 00 68 0C 62 [18:22:51]RasterBufferAndPrint [18:22:51]line [18:22:51]line [18:22:51]line [18:22:51]line [18:22:51]line [18:22:51]written 0, free lines is 3180 [18:22:51]MH_Cut [18:22:51]Write to MH i2c: D1 01 00 3D B1 01 C0 [18:22:51]Write i2c OK [18:22:51]MH_I2C_Read... [18:22:51]Read from MH i2c: D1 [18:22:51]MH_I2C_Read... [18:22:51]Read from MH i2c: D1 01 00 [18:22:51]MH_I2C_Read... [18:22:51]Read from MH i2c: D1 01 00 3D B1 00 BF [18:22:51]Write to MH i2c: 01 00 00 3E B1 EF [18:22:51]Write i2c OK [18:22:51]MH_I2C_Read... [18:22:51]OFD Sender: No OFD packet to send [18:22:52]*** Cut start [18:22:52]*** Purtial cut [18:22:52]*** Stage 1: CUTSNS_PIN = 1 [18:22:54]Read from MH i2c: 01 [18:22:54]MH_I2C_Read... [18:22:54]*** Stop cut motor [18:22:54]*** Cut end [18:22:54]Read from MH i2c: 01 07 00 [18:22:54]MH_I2C_Read... [18:22:54]Read from MH i2c: 01 07 00 3E B1 00 00 00 00 00 FF 0F 04 [18:22:54]process_action close_receipt done [18:22:54]requested_data is exist [18:22:54]produce_requested_data [18:22:54]requested_item fm.sn is exist - process it [18:22:54]wFMCommunicate request_size=4 [18:22:54]MH_SAM_APDU [18:22:54]CAPDU: 80 11 00 00 [18:22:54]Write to MH i2c: E2 08 00 3F B1 80 11 00 00 00 00 00 00 6A [18:22:54]Write i2c OK [18:22:54]MH_I2C_Read... [18:22:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:54]Read from MH i2c: E2 [18:22:54]MH_I2C_Read... [18:22:54]Read from MH i2c: E2 17 00 [18:22:54]MH_I2C_Read... [18:22:54]Read from MH i2c: E2 17 00 3F B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B7 [18:22:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:22:54]wFMCommunicate OK [18:22:54]requested_item fd.num is exist - process it [18:22:54]SAM_PROTO_GetFieldsCounters [18:22:54]wFMCommunicate request_size=4 [18:22:54]MH_SAM_APDU [18:22:54]CAPDU: 80 13 00 00 [18:22:54]Write to MH i2c: E2 08 00 40 B1 80 13 00 00 00 00 00 00 6D [18:22:54]Write i2c OK [18:22:54]MH_I2C_Read... [18:22:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:22:54]Read from MH i2c: E2 [18:22:54]MH_I2C_Read... [18:22:54]Read from MH i2c: E2 62 00 [18:22:54]MH_I2C_Read... [18:22:54]Read from MH i2c: E2 62 00 40 B1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 EF FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 95 01 00 00 5E 04 04 00 95 01 00 00 57 04 04 00 96 01 00 00 19 04 04 00 00 00 00 00 90 00 FC [18:22: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 EF FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 95 01 00 00 5E 04 04 00 95 01 00 00 57 04 04 00 96 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:22:54]wFMCommunicate OK [18:22:54]SAM_PROTO_GetFieldsCounters done [18:22:54]requested_item shift.num is exist - process it [18:22:54]requested_item shift.opened is exist - process it [18:22:54]req_shift_opened [18:22:54]FM_GetShiftState [18:22:54]SAM_PROTO_GetShiftState [18:22:54]wFMCommunicate request_size=4 [18:22:54]MH_SAM_APDU [18:22:54]CAPDU: 80 13 01 00 [18:22:54]Write to MH i2c: E2 08 00 41 B1 80 13 01 00 00 00 00 00 6F [18:22:54]Write i2c OK [18:22:54]MH_I2C_Read... [18:22:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:54]Read from MH i2c: E2 [18:22:54]MH_I2C_Read... [18:22:54]Read from MH i2c: E2 0E 00 [18:22:54]MH_I2C_Read... [18:22:54]Read from MH i2c: E2 0E 00 41 B1 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 AC [18:22:54]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:22:54]wFMCommunicate OK [18:22:54]SAM_PROTO_GetShiftState done [18:22:54]FM_GetShiftState done [18:22:54]req_shift_opened done [18:22:54]requested_item shift.open_date is exist - process it [18:22:54]req_shift_open_date [18:22:54]req_shift_open_date done [18:22:54]produce_requested_data done [18:22:54]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260847,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:22:54]process_action_free close_receipt [18:22:54]json_value_free [18:22:54]json_value_free done [18:22:54]process_json_proto returns [18:22:54]Send response to host [18:22:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260847,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:22:54]free response buf [18:22:54]execute_script done [18:22:54]execute_script returns [18:22:54]free content buf [18:22:54]Sock 9.Close socket [18:22:54]Sock 9.Thread stoped [18:22:56]OFD Sender: No OFD packet to send [18:23:01]OFD Sender: No OFD packet to send [18:23:06]OFD Sender: No OFD packet to send [18:23:11]OFD Sender: No OFD packet to send [18:23:16]OFD Sender: No OFD packet to send [18:23:21]OFD Sender: No OFD packet to send [18:23:26]OFD Sender: No OFD packet to send [18:23:31]OFD Sender: No OFD packet to send [18:23:36]OFD Sender: No OFD packet to send [18:23:41]OFD Sender: No OFD packet to send [18:23:46]OFD Sender: No OFD packet to send [18:23:51]OFD Sender: No OFD packet to send [18:23:56]OFD Sender: No OFD packet to send [18:24:01]OFD Sender: No OFD packet to send [18:24:06]OFD Sender: No OFD packet to send [18:24:11]OFD Sender: No OFD packet to send [18:24:16]OFD Sender: No OFD packet to send [18:24:21]OFD Sender: No OFD packet to send [18:24:26]OFD Sender: No OFD packet to send [18:24:31]OFD Sender: No OFD packet to send [18:24:36]OFD Sender: No OFD packet to send [18:24:41]OFD Sender: No OFD packet to send [18:24:46]OFD Sender: No OFD packet to send [18:24:51]OFD Sender: No OFD packet to send [18:24:56]OFD Sender: No OFD packet to send [18:25:01]OFD Sender: No OFD packet to send [18:25:06]OFD Sender: No OFD packet to send [18:25:11]OFD Sender: No OFD packet to send [18:25:16]OFD Sender: No OFD packet to send [18:25:21]OFD Sender: No OFD packet to send [18:25:26]OFD Sender: No OFD packet to send [18:25:31]OFD Sender: No OFD packet to send [18:25:37]OFD Sender: No OFD packet to send [18:25:42]OFD Sender: No OFD packet to send [18:25:47]OFD Sender: No OFD packet to send [18:25:52]OFD Sender: No OFD packet to send [18:25:57]OFD Sender: No OFD packet to send [18:26:02]OFD Sender: No OFD packet to send [18:26:07]OFD Sender: No OFD packet to send [18:26:12]OFD Sender: No OFD packet to send [18:26:17]OFD Sender: No OFD packet to send [18:26:22]OFD Sender: No OFD packet to send [18:26:27]OFD Sender: No OFD packet to send [18:26:32]OFD Sender: No OFD packet to send [18:26:37]OFD Sender: No OFD packet to send [18:26:42]OFD Sender: No OFD packet to send [18:26:47]OFD Sender: No OFD packet to send [18:26:52]OFD Sender: No OFD packet to send [18:26:57]OFD Sender: No OFD packet to send [18:27:02]OFD Sender: No OFD packet to send [18:27:07]OFD Sender: No OFD packet to send [18:27:12]OFD Sender: No OFD packet to send [18:27:17]OFD Sender: No OFD packet to send [18:27:19]accept exits with 7 [18:27:19]New connection [18:27:19]New thread 3066473828 created [18:27:19]Thread 3066617188 joined [18:27:19]Waiting for new connection... [18:27:19] Sock 7.Parse request [18:27:19]Sock 7.Check first char [18:27:19]Sock 7.First char is OK [18:27:19]request: POST /json_proto HTTP/1.0 [18:27:19]Method: POST [18:27:19]URL: /json_proto [18:27:19]Method is POST - this is cgi request [18:27:19]url: /json_proto [18:27:19]query_string will be loaded in cgi processing [18:27:19]execute_cgi json_proto POST (null) [18:27:19]execute_cgi path=json_proto method=POST [18:27:19]POST find Content-Length [18:27:19]Host: 172.17.55.133:8080 [18:27:19]Content-Length: 679 [18:27:19]Content-Type: application/json [18:27:19] [18:27:19]POST finish read [18:27:19]Found Content-Length = 679 [18:27:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036401", "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" : 74.20, "quantity" : 10.110, "sum" : 750.16, "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" ] } } [18:27:19]execute_script... [18:27: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)1036401", "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" : 74.20, "quantity" : 10.110, "sum" : 750.16, "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" ] } } [18:27:19]POST & json_proto [18:27:19]process_json_proto [18:27:19]json parsed OK: [18:27:19]protocol is kg_v1.0 [18:27:19]action value=close_receipt [18:27:19]process_action close_receipt [18:27:19]cmd_close_receipt [18:27:19]MH_GetDate [18:27:19]Write to MH i2c: F0 00 00 42 B1 E2 [18:27:19]Write i2c OK [18:27:19]MH_I2C_Read... [18:27:19]Read from MH i2c: F0 [18:27:19]MH_I2C_Read... [18:27:19]Read from MH i2c: F0 09 00 [18:27:19]MH_I2C_Read... [18:27:19]Read from MH i2c: F0 09 00 42 B1 00 0D 3D C2 66 34 48 D8 65 16 [18:27:19]GetLastDocTimeStamp 1724005375 [18:27:19]current date 1724005645 [18:27:19]FM_GetShiftState [18:27:19]SAM_PROTO_GetShiftState [18:27:19]wFMCommunicate request_size=4 [18:27:19]MH_SAM_APDU [18:27:19]CAPDU: 80 13 01 00 [18:27:19]Write to MH i2c: E2 08 00 43 B1 80 13 01 00 00 00 00 00 71 [18:27:19]Write i2c OK [18:27:19]MH_I2C_Read... [18:27:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:19]Read from MH i2c: E2 [18:27:19]MH_I2C_Read... [18:27:19]Read from MH i2c: E2 0E 00 [18:27:19]MH_I2C_Read... [18:27:19]Read from MH i2c: E2 0E 00 43 B1 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 AE [18:27:19]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:27:19]wFMCommunicate OK [18:27:19]SAM_PROTO_GetShiftState done [18:27:19]FM_GetShiftState done [18:27:19]opened in 1723940556 [18:27:19]opened+sec_in_day 1724026956 [18:27:19]quantity*price = 75016 [18:27:19]sum+1 = 75017 [18:27:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.66 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 406 18.08.2024 18:27 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260848 ФПД: 147735965926907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T182725&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260848&fm=147735965926907&tin=02508201610067®Number=0000000000091865&sum=75000 [18:27:20]StoreToDocumentArchive [18:27:20]shift 449 fd 260848 [18:27:20]save to /storage/0449/doc_00260848 [18:27:20]save last doc name /storage/0449/doc_00260848 to /storage/kkm_last_doc_name [18:27:20]save OK [18:27:20]Clear old archive folders... [18:27:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:27:20]tlvbuf is 00387940 [18:27:20]SAM_PROTO_ClearQueue [18:27:20]wFMCommunicate request_size=4 [18:27:20]MH_SAM_APDU [18:27:20]CAPDU: 80 09 00 00 [18:27:20]Write to MH i2c: E2 08 00 50 B1 80 09 00 00 00 00 00 00 73 [18:27:20]Write i2c OK [18:27:20]MH_I2C_Read... [18:27:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:20]Read from MH i2c: E2 [18:27:20]MH_I2C_Read... [18:27:20]Read from MH i2c: E2 03 00 [18:27:20]MH_I2C_Read... [18:27:20]Read from MH i2c: E2 03 00 50 B1 00 90 00 75 [18:27:20]RAPDU: 90 00 [18:27:20]wFMCommunicate OK [18:27:20]SAM_PROTO_ClearQueue done [18:27:20]KKMCreateOFDPacket [18:27:20]OFDProtocolAddRootSTLVToBuf [18:27:20]FM_MakeSignedData [18:27:20]FM_MakeSignedData [18:27:20]SAM_PROTO_SignData [18:27:20]wFMCommunicate request_size=4 [18:27:20]MH_SAM_APDU [18:27:20]CAPDU: 80 0D 01 02 [18:27:20]Write to MH i2c: E2 08 00 51 B1 80 0D 01 02 00 00 00 00 7B [18:27:20]Write i2c OK [18:27:20]MH_I2C_Read... [18:27:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:20]Read from MH i2c: E2 [18:27:20]MH_I2C_Read... [18:27:20]Read from MH i2c: E2 03 00 [18:27:20]MH_I2C_Read... [18:27:20]Read from MH i2c: E2 03 00 51 B1 00 90 00 76 [18:27:20]RAPDU: 90 00 [18:27:20]wFMCommunicate OK [18:27:20]wFMCommunicate request_size=255 [18:27:20]MH_SAM_APDU [18:27: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 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 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 1E 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 96 01 00 00 F4 03 04 00 0D 3D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F0 FA 03 00 35 04 06 00 86 [18:27:20]Write to MH i2c: E2 02 01 52 B1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 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 1E 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 96 01 00 00 F4 03 04 00 0D 3D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F0 FA 03 00 35 04 06 00 86 00 00 C1 [18:27:20]Write i2c OK [18:27:20]MH_I2C_Read... [18:27:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:21]Read from MH i2c: E2 [18:27:21]MH_I2C_Read... [18:27:21]Read from MH i2c: E2 03 00 [18:27:21]MH_I2C_Read... [18:27:21]Read from MH i2c: E2 03 00 52 B1 00 90 00 77 [18:27:21]RAPDU: 90 00 [18:27:21]wFMCommunicate OK [18:27:21]wFMCommunicate request_size=10 [18:27:21]MH_SAM_APDU [18:27:21]CAPDU: 80 0D 02 02 05 5D 75 C5 05 FB [18:27:21]Write to MH i2c: E2 0D 00 53 B1 80 0D 02 02 05 00 5D 75 C5 05 FB 00 00 1F [18:27:21]Write i2c OK [18:27:21]MH_I2C_Read... [18:27:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:21]Read from MH i2c: E2 [18:27:21]MH_I2C_Read... [18:27:21]Read from MH i2c: E2 03 00 [18:27:21]MH_I2C_Read... [18:27:21]Read from MH i2c: E2 03 00 53 B1 00 90 00 78 [18:27:21]RAPDU: 90 00 [18:27:21]wFMCommunicate OK [18:27:21]wFMCommunicate request_size=4 [18:27:21]MH_SAM_APDU [18:27:21]CAPDU: 80 0D 03 02 [18:27:21]Write to MH i2c: E2 08 00 54 B1 80 0D 03 02 00 00 00 00 80 [18:27:21]Write i2c OK [18:27:21]MH_I2C_Read... [18:27:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:21]Read from MH i2c: E2 [18:27:21]MH_I2C_Read... [18:27:21]Read from MH i2c: E2 0B 00 [18:27:21]MH_I2C_Read... [18:27:21]Read from MH i2c: E2 0B 00 54 B1 00 81 B0 3F A4 48 D9 84 E7 90 00 21 [18:27:21]RAPDU: 81 B0 3F A4 48 D9 84 E7 90 00 [18:27:21]wFMCommunicate OK [18:27:21]SAM_PROTO_SignData done [18:27:21]FM_MakeSignedData done [18:27:21]CreateOFDProtocolMessage [18:27:21]wFMCommunicate request_size=4 [18:27:21]MH_SAM_APDU [18:27:21]CAPDU: 80 11 00 00 [18:27:21]Write to MH i2c: E2 08 00 55 B1 80 11 00 00 00 00 00 00 80 [18:27:21]Write i2c OK [18:27:21]MH_I2C_Read... [18:27:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:21]Read from MH i2c: E2 [18:27:21]MH_I2C_Read... [18:27:21]Read from MH i2c: E2 17 00 [18:27:21]MH_I2C_Read... [18:27:21]Read from MH i2c: E2 17 00 55 B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 CD [18:27:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:27:21]wFMCommunicate OK [18:27:21]CreateOFDProtocolMessage done [18:27:21]OFDSenderStorePacket 260848 [18:27:21]StoreOFDPacket docnum=260848 [18:27:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 DF 87 07 01 97 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 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 1E 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 96 01 00 00 F4 03 04 00 0D 3D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F0 FA 03 00 35 04 06 00 86 5D 75 C5 05 FB 81 B0 3F A4 48 D9 84 E7 [18:27:21]CheckFolder [18:27:21]dirname=/storage/ofd_packets [18:27:21]CheckFolder done [18:27:21]ProducePacketName [18:27:21]name=ofd_packets/00260848 [18:27:21]NVStorageSaveData ofd_packets/00260848 [18:27:21]File name is /storage/ofd_packets/00260848 [18:27:21]Write 301 bytes [18:27:21]NVStorageSaveData done [18:27:21]OFDSenderStorePacket done [18:27:21]KKMCreateOFDPacket done [18:27:21]NVStorageSaveData kkm_last_timestamp [18:27:21]File name is /storage/kkm_last_timestamp [18:27:21]Write 4 bytes [18:27:21]NVStorageSaveData done [18:27:21]ExternCall_PrintAddStr [18:27:21]wPrintStart [18:27:21]Write to MH i2c: 01 00 00 56 B1 07 [18:27:21]Write i2c OK [18:27:21]MH_I2C_Read... [18:27:21]Read from MH i2c: 01 [18:27:21]MH_I2C_Read... [18:27:21]Read from MH i2c: 01 07 00 [18:27:21]MH_I2C_Read... [18:27:21]Read from MH i2c: 01 07 00 56 B1 00 00 00 00 00 FF 0F 1C [18:27:21]RasterBufferAndPrint [18:27:21]line Счет N : (1)1036401 [18:27:21]line ИНН: 02508201610067 [18:27:21]line Контрольно-Кассовый Чек [18:27:21]line ПРОДАЖА [18:27:21]line ТРК (МРК, ГНК) : 23 [18:27:21]line Товар: 2710124500 [18:27:21]line Аи-95-К-5 [18:27:21]line 10.110 * 74.20 [18:27:21]line = 750.16 [18:27:21]line НДС 12% НСП 1% [18:27:21]line > о реализуемом товаре [18:27:21]line ОКРУГЛЕНИЕ: -0.16 [18:27:21]line ИТОГО: 750.00 [18:27:21]line Внесено: 750.00 [18:27:21]line СДАЧА: 0.00 [18:27:21]line НСП 1% : 6.64 [18:27:21]line НДС 12% : 79.66 [18:27:21]line Наличными: 750.00 [18:27:21]line Безнал.: 0.00 [18:27:21]line Место: АЗС № 94 "Партнер Нефть" [18:27:21]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:27:21]line СНО: Общий режим [18:27:21]line Чек 406 18.08.2024 18:27 [18:27:21]line Смена: 449 ФФД: 1.0 [18:27:21]line ЗНМ: 0300000099 [18:27:21]line РНМ: 0000000000091865 [18:27:21]line Версия ККМ: 001 [18:27:21]line ФМ: 0000000000871820 [18:27:21]line ФД: 260848 [18:27:21]line ФПД: 147735965926907 [18:27:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T182725&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260848&fm=147735965926907&tin=02508201610067®Number=0000000000091865&sum=75000 [18:27:21]written 0, free lines is 4095 [18:27:21]OFD Sender: Processing packet 260848 [packets to send 192, broken 191] [18:27:21]ProducePacketName [18:27:21]name=ofd_packets/00260848 [18:27:21]OFD Sender: To server: pG, [18:27:21]CommunicateWithHost lk.salyk.kg:30040 [18:27:21]ConnectInit lk.salyk.kg [18:27:21]Connected sock=10 [18:27: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 30 0F 01 00 00 DF 87 07 01 97 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 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 1E 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 96 01 00 00 F4 03 04 00 0D 3D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F0 FA 03 00 35 04 06 00 86 5D 75 C5 05 FB 81 B0 3F A4 48 D9 84 E7 [18:27: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 30 4F 00 00 00 9A 13 47 00 74 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 30 10 04 04 00 F0 FA 03 00 F4 03 04 00 61 E6 C1 66 B6 04 01 00 00 F2 9E 56 01 DB 9C D8 F6 [18:27:21]CommunicateWithHost err = 0 [18:27:21]CheckOFDResponse [18:27:21]1017 (14) - 77093643461234 [18:27:21]1041 (16) - 0000000000871820 [18:27:21]1040 (4) - 260848 [18:27:21]1012 (4) - 18.08.2024 12:17 [18:27:21]1206 (1) - 0 [18:27:21]OFD Sender: Remove packet 260848 [18:27:21]ProducePacketName [18:27:21]name=ofd_packets/00260848 [18:27:21]NVStorageDeleteData [18:27:21]Write to MH i2c: 01 00 00 81 B1 32 [18:27:21]Write i2c OK [18:27:21]MH_I2C_Read... [18:27:21]Read from MH i2c: 01 [18:27:21]MH_I2C_Read... [18:27:21]Read from MH i2c: 01 07 00 [18:27:21]MH_I2C_Read... [18:27:21]Read from MH i2c: 01 07 00 81 B1 00 00 00 00 00 6E 0C B3 [18:27:21]RasterBufferAndPrint [18:27:21]line [18:27:21]line [18:27:21]line [18:27:21]line [18:27:21]line [18:27:21]written 0, free lines is 3185 [18:27:21]MH_Cut [18:27:21]Write to MH i2c: D1 01 00 88 B1 01 0B [18:27:21]Write i2c OK [18:27:21]MH_I2C_Read... [18:27:21]Read from MH i2c: D1 [18:27:21]MH_I2C_Read... [18:27:21]Read from MH i2c: D1 01 00 [18:27:21]MH_I2C_Read... [18:27:21]Read from MH i2c: D1 01 00 88 B1 00 0A [18:27:21]Write to MH i2c: 01 00 00 89 B1 3A [18:27:21]Write i2c OK [18:27:21]MH_I2C_Read... [18:27:22]OFD Sender: No OFD packet to send [18:27:22]*** Cut start [18:27:22]*** Purtial cut [18:27:22]*** Stage 1: CUTSNS_PIN = 1 [18:27:24]Read from MH i2c: 01 [18:27:24]MH_I2C_Read... [18:27:24]*** Stop cut motor [18:27:24]*** Cut end [18:27:24]Read from MH i2c: 01 07 00 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: 01 07 00 89 B1 00 00 00 00 00 FF 0F 4F [18:27:24]process_action close_receipt done [18:27:24]requested_data is exist [18:27:24]produce_requested_data [18:27:24]requested_item fm.sn is exist - process it [18:27:24]wFMCommunicate request_size=4 [18:27:24]MH_SAM_APDU [18:27:24]CAPDU: 80 11 00 00 [18:27:24]Write to MH i2c: E2 08 00 8A B1 80 11 00 00 00 00 00 00 B5 [18:27:24]Write i2c OK [18:27:24]MH_I2C_Read... [18:27:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:24]Read from MH i2c: E2 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 17 00 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 17 00 8A B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 02 [18:27:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:27:24]wFMCommunicate OK [18:27:24]requested_item fd.num is exist - process it [18:27:24]SAM_PROTO_GetFieldsCounters [18:27:24]wFMCommunicate request_size=4 [18:27:24]MH_SAM_APDU [18:27:24]CAPDU: 80 13 00 00 [18:27:24]Write to MH i2c: E2 08 00 8B B1 80 13 00 00 00 00 00 00 B8 [18:27:24]Write i2c OK [18:27:24]MH_I2C_Read... [18:27:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:25]Read from MH i2c: E2 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: E2 62 00 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: E2 62 00 8B B1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F0 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 96 01 00 00 5E 04 04 00 96 01 00 00 57 04 04 00 97 01 00 00 19 04 04 00 00 00 00 00 90 00 4B [18:27: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F0 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 96 01 00 00 5E 04 04 00 96 01 00 00 57 04 04 00 97 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:27:25]wFMCommunicate OK [18:27:25]SAM_PROTO_GetFieldsCounters done [18:27:25]requested_item shift.num is exist - process it [18:27:25]requested_item shift.opened is exist - process it [18:27:25]req_shift_opened [18:27:25]FM_GetShiftState [18:27:25]SAM_PROTO_GetShiftState [18:27:25]wFMCommunicate request_size=4 [18:27:25]MH_SAM_APDU [18:27:25]CAPDU: 80 13 01 00 [18:27:25]Write to MH i2c: E2 08 00 8C B1 80 13 01 00 00 00 00 00 BA [18:27:25]Write i2c OK [18:27:25]MH_I2C_Read... [18:27:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:25]Read from MH i2c: E2 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: E2 0E 00 [18:27:25]MH_I2C_Read... [18:27:25]Read from MH i2c: E2 0E 00 8C B1 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F7 [18:27:25]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:27:25]wFMCommunicate OK [18:27:25]SAM_PROTO_GetShiftState done [18:27:25]FM_GetShiftState done [18:27:25]req_shift_opened done [18:27:25]requested_item shift.open_date is exist - process it [18:27:25]req_shift_open_date [18:27:25]req_shift_open_date done [18:27:25]produce_requested_data done [18:27:25]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260848,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:27:25]process_action_free close_receipt [18:27:25]json_value_free [18:27:25]json_value_free done [18:27:25]process_json_proto returns [18:27:25]Send response to host [18:27:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260848,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:27:25]free response buf [18:27:25]execute_script done [18:27:25]execute_script returns [18:27:25]free content buf [18:27:25]Sock 7.Close socket [18:27:25]Sock 7.Thread stoped [18:27:27]OFD Sender: No OFD packet to send [18:27:32]OFD Sender: No OFD packet to send [18:27:37]OFD Sender: No OFD packet to send [18:27:42]OFD Sender: No OFD packet to send [18:27:42]accept exits with 9 [18:27:42]New connection [18:27:42]New thread 3066617188 created [18:27:42]Thread 3066473828 joined [18:27:42]Waiting for new connection... [18:27:42] Sock 9.Parse request [18:27:42]Sock 9.Check first char [18:27:42]Sock 9.First char is OK [18:27:42]request: POST /json_proto HTTP/1.0 [18:27:42]Method: POST [18:27:42]URL: /json_proto [18:27:42]Method is POST - this is cgi request [18:27:42]url: /json_proto [18:27:42]query_string will be loaded in cgi processing [18:27:42]execute_cgi json_proto POST (null) [18:27:42]execute_cgi path=json_proto method=POST [18:27:42]POST find Content-Length [18:27:42]Host: 172.17.55.133:8080 [18:27:42]Content-Length: 804 [18:27:42]Content-Type: application/json [18:27:42] [18:27:42]POST finish read [18:27:42]Found Content-Length = 804 [18:27:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036400", "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" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:42]execute_script... [18:27: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)1036400", "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" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:42]POST & json_proto [18:27:42]process_json_proto [18:27:42]json parsed OK: [18:27:42]protocol is kg_v1.0 [18:27:42]action value=close_receipt [18:27:42]process_action close_receipt [18:27:42]cmd_close_receipt [18:27:42]MH_GetDate [18:27:42]Write to MH i2c: F0 00 00 8D B1 2D [18:27:42]Write i2c OK [18:27:42]MH_I2C_Read... [18:27:42]Read from MH i2c: F0 [18:27:42]MH_I2C_Read... [18:27:42]Read from MH i2c: F0 09 00 [18:27:42]MH_I2C_Read... [18:27:42]Read from MH i2c: F0 09 00 8D B1 00 25 3D C2 66 34 48 D8 65 79 [18:27:42]GetLastDocTimeStamp 1724005645 [18:27:42]current date 1724005669 [18:27:42]FM_GetShiftState [18:27:42]SAM_PROTO_GetShiftState [18:27:42]wFMCommunicate request_size=4 [18:27:42]MH_SAM_APDU [18:27:42]CAPDU: 80 13 01 00 [18:27:42]Write to MH i2c: E2 08 00 8E B1 80 13 01 00 00 00 00 00 BC [18:27:42]Write i2c OK [18:27:42]MH_I2C_Read... [18:27:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:43]Read from MH i2c: E2 [18:27:43]MH_I2C_Read... [18:27:43]Read from MH i2c: E2 0E 00 [18:27:43]MH_I2C_Read... [18:27:43]Read from MH i2c: E2 0E 00 8E B1 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F9 [18:27:43]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:27:43]wFMCommunicate OK [18:27:43]SAM_PROTO_GetShiftState done [18:27:43]FM_GetShiftState done [18:27:43]opened in 1723940556 [18:27:43]opened+sec_in_day 1724026956 [18:27:43]quantity*price = 300064 [18:27:43]sum+1 = 300066 [18:27:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.65 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 0.00 Безнал.: 3000.65 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 407 18.08.2024 18:27 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260849 ФПД: 142685300008781 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T182749&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260849&fm=142685300008781&tin=02508201610067®Number=0000000000091865&sum=300065 [18:27:44]StoreToDocumentArchive [18:27:44]shift 449 fd 260849 [18:27:44]save to /storage/0449/doc_00260849 [18:27:44]save last doc name /storage/0449/doc_00260849 to /storage/kkm_last_doc_name [18:27:44]save OK [18:27:44]Clear old archive folders... [18:27:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:27:44]tlvbuf is 006B8F80 [18:27:44]SAM_PROTO_ClearQueue [18:27:44]wFMCommunicate request_size=4 [18:27:44]MH_SAM_APDU [18:27:44]CAPDU: 80 09 00 00 [18:27:44]Write to MH i2c: E2 08 00 9B B1 80 09 00 00 00 00 00 00 BE [18:27:44]Write i2c OK [18:27:44]MH_I2C_Read... [18:27:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:44]Read from MH i2c: E2 [18:27:44]MH_I2C_Read... [18:27:44]Read from MH i2c: E2 03 00 [18:27:44]MH_I2C_Read... [18:27:44]Read from MH i2c: E2 03 00 9B B1 00 90 00 C0 [18:27:44]RAPDU: 90 00 [18:27:44]wFMCommunicate OK [18:27:44]SAM_PROTO_ClearQueue done [18:27:44]KKMCreateOFDPacket [18:27:44]OFDProtocolAddRootSTLVToBuf [18:27:44]FM_MakeSignedData [18:27:44]FM_MakeSignedData [18:27:44]SAM_PROTO_SignData [18:27:44]wFMCommunicate request_size=4 [18:27:44]MH_SAM_APDU [18:27:44]CAPDU: 80 0D 01 02 [18:27:44]Write to MH i2c: E2 08 00 9C B1 80 0D 01 02 00 00 00 00 C6 [18:27:44]Write i2c OK [18:27:44]MH_I2C_Read... [18:27:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:44]Read from MH i2c: E2 [18:27:44]MH_I2C_Read... [18:27:44]Read from MH i2c: E2 03 00 [18:27:44]MH_I2C_Read... [18:27:44]Read from MH i2c: E2 03 00 9C B1 00 90 00 C1 [18:27:44]RAPDU: 90 00 [18:27:44]wFMCommunicate OK [18:27:44]wFMCommunicate request_size=255 [18:27:44]MH_SAM_APDU [18:27: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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 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 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 01 00 00 F4 03 04 00 25 3D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F1 FA 03 00 35 04 06 00 81 [18:27:44]Write to MH i2c: E2 02 01 9D B1 80 0D 02 02 FA 00 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 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 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 01 00 00 F4 03 04 00 25 3D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F1 FA 03 00 35 04 06 00 81 00 00 5B [18:27:44]Write i2c OK [18:27:44]MH_I2C_Read... [18:27:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:44]Read from MH i2c: E2 [18:27:44]MH_I2C_Read... [18:27:44]Read from MH i2c: E2 03 00 [18:27:44]MH_I2C_Read... [18:27:44]Read from MH i2c: E2 03 00 9D B1 00 90 00 C2 [18:27:44]RAPDU: 90 00 [18:27:44]wFMCommunicate OK [18:27:44]wFMCommunicate request_size=10 [18:27:44]MH_SAM_APDU [18:27:44]CAPDU: 80 0D 02 02 05 C5 82 9F 27 4D [18:27:44]Write to MH i2c: E2 0D 00 9E B1 80 0D 02 02 05 00 C5 82 9F 27 4D 00 00 2D [18:27:44]Write i2c OK [18:27:44]MH_I2C_Read... [18:27:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:44]Read from MH i2c: E2 [18:27:44]MH_I2C_Read... [18:27:44]Read from MH i2c: E2 03 00 [18:27:44]MH_I2C_Read... [18:27:44]Read from MH i2c: E2 03 00 9E B1 00 90 00 C3 [18:27:44]RAPDU: 90 00 [18:27:44]wFMCommunicate OK [18:27:44]wFMCommunicate request_size=4 [18:27:44]MH_SAM_APDU [18:27:44]CAPDU: 80 0D 03 02 [18:27:44]Write to MH i2c: E2 08 00 9F B1 80 0D 03 02 00 00 00 00 CB [18:27:44]Write i2c OK [18:27:44]MH_I2C_Read... [18:27:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:44]Read from MH i2c: E2 [18:27:44]MH_I2C_Read... [18:27:44]Read from MH i2c: E2 0B 00 [18:27:44]MH_I2C_Read... [18:27:44]Read from MH i2c: E2 0B 00 9F B1 00 E4 DA B9 EA BD 63 59 03 90 00 A9 [18:27:44]RAPDU: E4 DA B9 EA BD 63 59 03 90 00 [18:27:44]wFMCommunicate OK [18:27:44]SAM_PROTO_SignData done [18:27:44]FM_MakeSignedData done [18:27:44]CreateOFDProtocolMessage [18:27:44]wFMCommunicate request_size=4 [18:27:44]MH_SAM_APDU [18:27:44]CAPDU: 80 11 00 00 [18:27:44]Write to MH i2c: E2 08 00 A0 B1 80 11 00 00 00 00 00 00 CB [18:27:44]Write i2c OK [18:27:44]MH_I2C_Read... [18:27:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:44]Read from MH i2c: E2 [18:27:44]MH_I2C_Read... [18:27:44]Read from MH i2c: E2 17 00 [18:27:44]MH_I2C_Read... [18:27:44]Read from MH i2c: E2 17 00 A0 B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 18 [18:27:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:27:44]wFMCommunicate OK [18:27:44]CreateOFDProtocolMessage done [18:27:44]OFDSenderStorePacket 260849 [18:27:44]StoreOFDPacket docnum=260849 [18:27:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 0A 02 07 01 07 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 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 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 01 00 00 F4 03 04 00 25 3D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F1 FA 03 00 35 04 06 00 81 C5 82 9F 27 4D E4 DA B9 EA BD 63 59 03 [18:27:44]CheckFolder [18:27:44]dirname=/storage/ofd_packets [18:27:44]CheckFolder done [18:27:44]ProducePacketName [18:27:44]name=ofd_packets/00260849 [18:27:44]NVStorageSaveData ofd_packets/00260849 [18:27:44]File name is /storage/ofd_packets/00260849 [18:27:44]Write 301 bytes [18:27:44]NVStorageSaveData done [18:27:44]OFDSenderStorePacket done [18:27:44]KKMCreateOFDPacket done [18:27:44]NVStorageSaveData kkm_last_timestamp [18:27:44]File name is /storage/kkm_last_timestamp [18:27:44]Write 4 bytes [18:27:44]NVStorageSaveData done [18:27:44]ExternCall_PrintAddStr [18:27:44]wPrintStart [18:27:44]Write to MH i2c: 01 00 00 A1 B1 52 [18:27:44]Write i2c OK [18:27:44]MH_I2C_Read... [18:27:44]Read from MH i2c: 01 [18:27:44]MH_I2C_Read... [18:27:44]Read from MH i2c: 01 07 00 [18:27:44]MH_I2C_Read... [18:27:44]Read from MH i2c: 01 07 00 A1 B1 00 00 00 00 00 FF 0F 67 [18:27:44]RasterBufferAndPrint [18:27:44]line Счет N : (1)1036400 [18:27:44]line ИНН: 02508201610067 [18:27:44]line Контрольно-Кассовый Чек [18:27:44]line ПРОДАЖА [18:27:44]line ТРК (МРК, ГНК) : 13 [18:27:44]line Товар: 2710124500 [18:27:44]line Аи-95-К-5 [18:27:44]line 40.440 * 74.20 [18:27:44]line = 3000.65 [18:27:44]line НДС 12% НСП 1% [18:27:44]line > о реализуемом товаре [18:27:44]line ИТОГО: 3000.65 [18:27:44]line НСП 1% : 26.55 [18:27:44]line НДС 12% : 318.65 [18:27:44]line Наличными: 0.00 [18:27:44]line Безнал.: 3000.65 [18:27:44]line Место: АЗС № 94 "Партнер Нефть" [18:27:44]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:27:44]line СНО: Общий режим [18:27:44]line Чек 407 18.08.2024 18:27 [18:27:44]line Смена: 449 ФФД: 1.0 [18:27:44]line ЗНМ: 0300000099 [18:27:44]line РНМ: 0000000000091865 [18:27:44]line Версия ККМ: 001 [18:27:44]line Платежная система: O! деньги [18:27:44]line ФМ: 0000000000871820 [18:27:44]line ФД: 260849 [18:27:44]line ФПД: 142685300008781 [18:27:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T182749&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260849&fm=142685300008781&tin=02508201610067®Number=0000000000091865&sum=300065 [18:27:44]written 0, free lines is 4095 [18:27:44]OFD Sender: Processing packet 260849 [packets to send 192, broken 191] [18:27:44]ProducePacketName [18:27:44]name=ofd_packets/00260849 [18:27:44]OFD Sender: To server: pG, [18:27:44]CommunicateWithHost lk.salyk.kg:30040 [18:27:44]ConnectInit lk.salyk.kg [18:27:44]Connected sock=10 [18:27: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 30 0F 01 00 00 0A 02 07 01 07 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 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 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 01 00 00 F4 03 04 00 25 3D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F1 FA 03 00 35 04 06 00 81 C5 82 9F 27 4D E4 DA B9 EA BD 63 59 03 [18:27: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 30 4F 00 00 00 C4 C5 47 00 D8 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F1 FA 03 00 F4 03 04 00 79 E6 C1 66 B6 04 01 00 00 B2 DA 7F A8 E0 C0 90 62 [18:27:45]CommunicateWithHost err = 0 [18:27:45]CheckOFDResponse [18:27:45]1017 (14) - 77093643461234 [18:27:45]1041 (16) - 0000000000871820 [18:27:45]1040 (4) - 260849 [18:27:45]1012 (4) - 18.08.2024 12:18 [18:27:45]1206 (1) - 0 [18:27:45]OFD Sender: Remove packet 260849 [18:27:45]ProducePacketName [18:27:45]name=ofd_packets/00260849 [18:27:45]NVStorageDeleteData [18:27:45]Write to MH i2c: 01 00 00 CB B1 7C [18:27:45]Write i2c OK [18:27:45]MH_I2C_Read... [18:27:45]Read from MH i2c: 01 [18:27:45]MH_I2C_Read... [18:27:45]Read from MH i2c: 01 07 00 [18:27:45]MH_I2C_Read... [18:27:45]Read from MH i2c: 01 07 00 CB B1 00 00 00 00 00 82 0C 11 [18:27:45]RasterBufferAndPrint [18:27:45]line [18:27:45]line [18:27:45]line [18:27:45]line [18:27:45]line [18:27:45]written 0, free lines is 3207 [18:27:45]MH_Cut [18:27:45]Write to MH i2c: D1 01 00 D2 B1 01 55 [18:27:45]Write i2c OK [18:27:45]MH_I2C_Read... [18:27:45]Read from MH i2c: D1 [18:27:45]MH_I2C_Read... [18:27:45]Read from MH i2c: D1 01 00 [18:27:45]MH_I2C_Read... [18:27:45]Read from MH i2c: D1 01 00 D2 B1 00 54 [18:27:45]Write to MH i2c: 01 00 00 D3 B1 84 [18:27:45]Write i2c OK [18:27:45]MH_I2C_Read... [18:27:45]OFD Sender: No OFD packet to send [18:27:46]*** Cut start [18:27:46]*** Purtial cut [18:27:46]*** Stage 1: CUTSNS_PIN = 1 [18:27:48]Read from MH i2c: 01 [18:27:48]MH_I2C_Read... [18:27:48]*** Stop cut motor [18:27:48]*** Cut end [18:27:48]Read from MH i2c: 01 07 00 [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: 01 07 00 D3 B1 00 00 00 00 00 FF 0F 99 [18:27:48]process_action close_receipt done [18:27:48]requested_data is exist [18:27:48]produce_requested_data [18:27:48]requested_item fm.sn is exist - process it [18:27:48]wFMCommunicate request_size=4 [18:27:48]MH_SAM_APDU [18:27:48]CAPDU: 80 11 00 00 [18:27:48]Write to MH i2c: E2 08 00 D4 B1 80 11 00 00 00 00 00 00 FF [18:27:48]Write i2c OK [18:27:48]MH_I2C_Read... [18:27:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:48]Read from MH i2c: E2 [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: E2 17 00 [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: E2 17 00 D4 B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 4C [18:27:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:27:48]wFMCommunicate OK [18:27:48]requested_item fd.num is exist - process it [18:27:48]SAM_PROTO_GetFieldsCounters [18:27:48]wFMCommunicate request_size=4 [18:27:48]MH_SAM_APDU [18:27:48]CAPDU: 80 13 00 00 [18:27:48]Write to MH i2c: E2 08 00 D5 B1 80 13 00 00 00 00 00 00 02 [18:27:48]Write i2c OK [18:27:48]MH_I2C_Read... [18:27:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:48]Read from MH i2c: E2 [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: E2 62 00 [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: E2 62 00 D5 B1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F1 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 97 01 00 00 5E 04 04 00 97 01 00 00 57 04 04 00 98 01 00 00 19 04 04 00 00 00 00 00 90 00 99 [18:27: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F1 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 97 01 00 00 5E 04 04 00 97 01 00 00 57 04 04 00 98 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:27:48]wFMCommunicate OK [18:27:48]SAM_PROTO_GetFieldsCounters done [18:27:48]requested_item shift.num is exist - process it [18:27:48]requested_item shift.opened is exist - process it [18:27:48]req_shift_opened [18:27:48]FM_GetShiftState [18:27:48]SAM_PROTO_GetShiftState [18:27:48]wFMCommunicate request_size=4 [18:27:48]MH_SAM_APDU [18:27:48]CAPDU: 80 13 01 00 [18:27:48]Write to MH i2c: E2 08 00 D6 B1 80 13 01 00 00 00 00 00 04 [18:27:48]Write i2c OK [18:27:48]MH_I2C_Read... [18:27:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:48]Read from MH i2c: E2 [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: E2 0E 00 [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: E2 0E 00 D6 B1 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 41 [18:27:48]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:27:48]wFMCommunicate OK [18:27:48]SAM_PROTO_GetShiftState done [18:27:48]FM_GetShiftState done [18:27:48]req_shift_opened done [18:27:48]requested_item shift.open_date is exist - process it [18:27:48]req_shift_open_date [18:27:48]req_shift_open_date done [18:27:48]produce_requested_data done [18:27:48]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260849,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:27:48]process_action_free close_receipt [18:27:48]json_value_free [18:27:48]json_value_free done [18:27:48]process_json_proto returns [18:27:48]Send response to host [18:27:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260849,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:27:48]free response buf [18:27:48]execute_script done [18:27:48]execute_script returns [18:27:48]free content buf [18:27:48]Sock 9.Close socket [18:27:48]Sock 9.Thread stoped [18:27:50]OFD Sender: No OFD packet to send [18:27:55]OFD Sender: No OFD packet to send [18:28:00]OFD Sender: No OFD packet to send [18:28:05]OFD Sender: No OFD packet to send [18:28:10]OFD Sender: No OFD packet to send [18:28:15]OFD Sender: No OFD packet to send [18:28:20]OFD Sender: No OFD packet to send [18:28:25]OFD Sender: No OFD packet to send [18:28:30]OFD Sender: No OFD packet to send [18:28:35]OFD Sender: No OFD packet to send [18:28:40]OFD Sender: No OFD packet to send [18:28:45]OFD Sender: No OFD packet to send [18:28:50]OFD Sender: No OFD packet to send [18:28:55]OFD Sender: No OFD packet to send [18:29:00]OFD Sender: No OFD packet to send [18:29:05]OFD Sender: No OFD packet to send [18:29:10]OFD Sender: No OFD packet to send [18:29:15]OFD Sender: No OFD packet to send [18:29:20]OFD Sender: No OFD packet to send [18:29:25]OFD Sender: No OFD packet to send [18:29:30]OFD Sender: No OFD packet to send [18:29:35]OFD Sender: No OFD packet to send [18:29:40]OFD Sender: No OFD packet to send [18:29:45]OFD Sender: No OFD packet to send [18:29:50]OFD Sender: No OFD packet to send [18:29:55]OFD Sender: No OFD packet to send [18:30:00]OFD Sender: No OFD packet to send [18:30:05]OFD Sender: No OFD packet to send [18:30:10]OFD Sender: No OFD packet to send [18:30:15]OFD Sender: No OFD packet to send [18:30:20]OFD Sender: No OFD packet to send [18:30:25]OFD Sender: No OFD packet to send [18:30:30]OFD Sender: No OFD packet to send [18:30:35]OFD Sender: No OFD packet to send [18:30:40]OFD Sender: No OFD packet to send [18:30:45]OFD Sender: No OFD packet to send [18:30:50]OFD Sender: No OFD packet to send [18:30:55]OFD Sender: No OFD packet to send [18:31:00]OFD Sender: No OFD packet to send [18:31:05]OFD Sender: No OFD packet to send [18:31:10]OFD Sender: No OFD packet to send [18:31:15]OFD Sender: No OFD packet to send [18:31:18]accept exits with 7 [18:31:18]New connection [18:31:18]New thread 3066473828 created [18:31:18]Thread 3066617188 joined [18:31:18]Waiting for new connection... [18:31:18] Sock 7.Parse request [18:31:18]Sock 7.Check first char [18:31:18]Sock 7.First char is OK [18:31:18]request: POST /json_proto HTTP/1.0 [18:31:18]Method: POST [18:31:18]URL: /json_proto [18:31:18]Method is POST - this is cgi request [18:31:18]url: /json_proto [18:31:18]query_string will be loaded in cgi processing [18:31:18]execute_cgi json_proto POST (null) [18:31:18]execute_cgi path=json_proto method=POST [18:31:18]POST find Content-Length [18:31:18]Host: 172.17.55.133:8080 [18:31:18]Content-Length: 683 [18:31:18]Content-Type: application/json [18:31:18] [18:31:18]POST finish read [18:31:18]Found Content-Length = 683 [18:31:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036402", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:18]execute_script... [18:31: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)1036402", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:18]POST & json_proto [18:31:18]process_json_proto [18:31:18]json parsed OK: [18:31:18]protocol is kg_v1.0 [18:31:18]action value=close_receipt [18:31:18]process_action close_receipt [18:31:18]cmd_close_receipt [18:31:18]MH_GetDate [18:31:18]Write to MH i2c: F0 00 00 D7 B1 77 [18:31:18]Write i2c OK [18:31:18]MH_I2C_Read... [18:31:18]Read from MH i2c: F0 [18:31:18]MH_I2C_Read... [18:31:18]Read from MH i2c: F0 09 00 [18:31:18]MH_I2C_Read... [18:31:18]Read from MH i2c: F0 09 00 D7 B1 00 FD 3D C2 66 34 48 D8 65 9B [18:31:18]GetLastDocTimeStamp 1724005669 [18:31:18]current date 1724005885 [18:31:18]FM_GetShiftState [18:31:18]SAM_PROTO_GetShiftState [18:31:18]wFMCommunicate request_size=4 [18:31:18]MH_SAM_APDU [18:31:18]CAPDU: 80 13 01 00 [18:31:18]Write to MH i2c: E2 08 00 D8 B1 80 13 01 00 00 00 00 00 06 [18:31:18]Write i2c OK [18:31:18]MH_I2C_Read... [18:31:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:18]Read from MH i2c: E2 [18:31:18]MH_I2C_Read... [18:31:18]Read from MH i2c: E2 0E 00 [18:31:18]MH_I2C_Read... [18:31:18]Read from MH i2c: E2 0E 00 D8 B1 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 43 [18:31:18]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:31:18]wFMCommunicate OK [18:31:18]SAM_PROTO_GetShiftState done [18:31:18]FM_GetShiftState done [18:31:18]opened in 1723940556 [18:31:18]opened+sec_in_day 1724026956 [18:31:18]quantity*price = 100021 [18:31:18]sum+1 = 100023 [18:31:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 408 18.08.2024 18:31 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260850 ФПД: 227616066720975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T183125&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260850&fm=227616066720975&tin=02508201610067®Number=0000000000091865&sum=100000 [18:31:20]StoreToDocumentArchive [18:31:20]shift 449 fd 260850 [18:31:20]save to /storage/0449/doc_00260850 [18:31:20]save last doc name /storage/0449/doc_00260850 to /storage/kkm_last_doc_name [18:31:20]save OK [18:31:20]Clear old archive folders... [18:31:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:31:20]tlvbuf is 00387A40 [18:31:20]SAM_PROTO_ClearQueue [18:31:20]wFMCommunicate request_size=4 [18:31:20]MH_SAM_APDU [18:31:20]CAPDU: 80 09 00 00 [18:31:20]Write to MH i2c: E2 08 00 E5 B1 80 09 00 00 00 00 00 00 08 [18:31:20]Write i2c OK [18:31:20]MH_I2C_Read... [18:31:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:31:20]Read from MH i2c: E2 [18:31:20]MH_I2C_Read... [18:31:20]Read from MH i2c: E2 03 00 [18:31:20]MH_I2C_Read... [18:31:20]Read from MH i2c: E2 03 00 E5 B1 00 90 00 0A [18:31:20]RAPDU: 90 00 [18:31:20]wFMCommunicate OK [18:31:20]SAM_PROTO_ClearQueue done [18:31:20]KKMCreateOFDPacket [18:31:20]OFDProtocolAddRootSTLVToBuf [18:31:20]FM_MakeSignedData [18:31:20]FM_MakeSignedData [18:31:20]SAM_PROTO_SignData [18:31:20]wFMCommunicate request_size=4 [18:31:20]MH_SAM_APDU [18:31:20]CAPDU: 80 0D 01 02 [18:31:20]Write to MH i2c: E2 08 00 E6 B1 80 0D 01 02 00 00 00 00 10 [18:31:20]Write i2c OK [18:31:20]MH_I2C_Read... [18:31:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:31:20]Read from MH i2c: E2 [18:31:20]MH_I2C_Read... [18:31:20]Read from MH i2c: E2 03 00 [18:31:20]MH_I2C_Read... [18:31:20]Read from MH i2c: E2 03 00 E6 B1 00 90 00 0B [18:31:20]RAPDU: 90 00 [18:31:20]wFMCommunicate OK [18:31:20]wFMCommunicate request_size=255 [18:31:20]MH_SAM_APDU [18:31: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 01 00 00 F4 03 04 00 FD 3D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F2 FA 03 00 35 04 06 00 CF [18:31:20]Write to MH i2c: E2 02 01 E7 B1 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 01 00 00 F4 03 04 00 FD 3D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F2 FA 03 00 35 04 06 00 CF 00 00 35 [18:31:20]Write i2c OK [18:31:20]MH_I2C_Read... [18:31:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:20]Read from MH i2c: E2 [18:31:20]MH_I2C_Read... [18:31:20]Read from MH i2c: E2 03 00 [18:31:20]MH_I2C_Read... [18:31:20]Read from MH i2c: E2 03 00 E7 B1 00 90 00 0C [18:31:20]RAPDU: 90 00 [18:31:20]wFMCommunicate OK [18:31:20]wFMCommunicate request_size=10 [18:31:20]MH_SAM_APDU [18:31:20]CAPDU: 80 0D 02 02 05 03 FE CD 54 CF [18:31:20]Write to MH i2c: E2 0D 00 E8 B1 80 0D 02 02 05 00 03 FE CD 54 CF 00 00 0E [18:31:20]Write i2c OK [18:31:20]MH_I2C_Read... [18:31:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:20]Read from MH i2c: E2 [18:31:20]MH_I2C_Read... [18:31:20]Read from MH i2c: E2 03 00 [18:31:20]MH_I2C_Read... [18:31:20]Read from MH i2c: E2 03 00 E8 B1 00 90 00 0D [18:31:20]RAPDU: 90 00 [18:31:20]wFMCommunicate OK [18:31:20]wFMCommunicate request_size=4 [18:31:20]MH_SAM_APDU [18:31:20]CAPDU: 80 0D 03 02 [18:31:20]Write to MH i2c: E2 08 00 E9 B1 80 0D 03 02 00 00 00 00 15 [18:31:20]Write i2c OK [18:31:20]MH_I2C_Read... [18:31:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:31:20]Read from MH i2c: E2 [18:31:20]MH_I2C_Read... [18:31:20]Read from MH i2c: E2 0B 00 [18:31:20]MH_I2C_Read... [18:31:20]Read from MH i2c: E2 0B 00 E9 B1 00 F0 7D 31 F7 44 6B 77 6C 90 00 3D [18:31:20]RAPDU: F0 7D 31 F7 44 6B 77 6C 90 00 [18:31:20]wFMCommunicate OK [18:31:20]SAM_PROTO_SignData done [18:31:20]FM_MakeSignedData done [18:31:20]CreateOFDProtocolMessage [18:31:20]wFMCommunicate request_size=4 [18:31:20]MH_SAM_APDU [18:31:20]CAPDU: 80 11 00 00 [18:31:20]Write to MH i2c: E2 08 00 EA B1 80 11 00 00 00 00 00 00 15 [18:31:20]Write i2c OK [18:31:20]MH_I2C_Read... [18:31:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:20]Read from MH i2c: E2 [18:31:20]MH_I2C_Read... [18:31:20]Read from MH i2c: E2 17 00 [18:31:20]MH_I2C_Read... [18:31:20]Read from MH i2c: E2 17 00 EA B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 62 [18:31:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:31:20]wFMCommunicate OK [18:31:20]CreateOFDProtocolMessage done [18:31:20]OFDSenderStorePacket 260850 [18:31:20]StoreOFDPacket docnum=260850 [18:31:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 21 A8 07 01 DA 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 01 00 00 F4 03 04 00 FD 3D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F2 FA 03 00 35 04 06 00 CF 03 FE CD 54 CF F0 7D 31 F7 44 6B 77 6C [18:31:20]CheckFolder [18:31:20]dirname=/storage/ofd_packets [18:31:20]CheckFolder done [18:31:20]ProducePacketName [18:31:20]name=ofd_packets/00260850 [18:31:20]NVStorageSaveData ofd_packets/00260850 [18:31:20]File name is /storage/ofd_packets/00260850 [18:31:20]Write 301 bytes [18:31:20]NVStorageSaveData done [18:31:20]OFDSenderStorePacket done [18:31:20]KKMCreateOFDPacket done [18:31:20]NVStorageSaveData kkm_last_timestamp [18:31:20]File name is /storage/kkm_last_timestamp [18:31:20]Write 4 bytes [18:31:20]NVStorageSaveData done [18:31:20]ExternCall_PrintAddStr [18:31:20]wPrintStart [18:31:20]Write to MH i2c: 01 00 00 EB B1 9C [18:31:20]Write i2c OK [18:31:20]MH_I2C_Read... [18:31:20]Read from MH i2c: 01 [18:31:20]MH_I2C_Read... [18:31:20]Read from MH i2c: 01 07 00 [18:31:20]MH_I2C_Read... [18:31:20]Read from MH i2c: 01 07 00 EB B1 00 00 00 00 00 FF 0F B1 [18:31:20]RasterBufferAndPrint [18:31:20]line Счет N : (1)1036402 [18:31:20]line ИНН: 02508201610067 [18:31:20]line Контрольно-Кассовый Чек [18:31:20]line ПРОДАЖА [18:31:20]line ТРК (МРК, ГНК) : 13 [18:31:20]line Товар: 2710124500 [18:31:20]line Аи-95-К-5 [18:31:20]line 13.480 * 74.20 [18:31:20]line = 1000.22 [18:31:20]line НДС 12% НСП 1% [18:31:20]line > о реализуемом товаре [18:31:20]line ОКРУГЛЕНИЕ: -0.22 [18:31:20]line ИТОГО: 1000.00 [18:31:20]line Внесено: 1000.00 [18:31:20]line СДАЧА: 0.00 [18:31:20]line НСП 1% : 8.85 [18:31:20]line НДС 12% : 106.22 [18:31:20]line Наличными: 1000.00 [18:31:20]line Безнал.: 0.00 [18:31:20]line Место: АЗС № 94 "Партнер Нефть" [18:31:20]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:31:20]line СНО: Общий режим [18:31:20]line Чек 408 18.08.2024 18:31 [18:31:20]line Смена: 449 ФФД: 1.0 [18:31:20]line ЗНМ: 0300000099 [18:31:20]line РНМ: 0000000000091865 [18:31:20]line Версия ККМ: 001 [18:31:20]line ФМ: 0000000000871820 [18:31:20]line ФД: 260850 [18:31:20]line ФПД: 227616066720975 [18:31:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T183125&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260850&fm=227616066720975&tin=02508201610067®Number=0000000000091865&sum=100000 [18:31:20]written 0, free lines is 4095 [18:31:20]OFD Sender: Processing packet 260850 [packets to send 192, broken 191] [18:31:20]ProducePacketName [18:31:20]name=ofd_packets/00260850 [18:31:20]OFD Sender: To server: pG, [18:31:20]CommunicateWithHost lk.salyk.kg:30040 [18:31:20]ConnectInit lk.salyk.kg [18:31:20]Connected sock=10 [18:31: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 30 0F 01 00 00 21 A8 07 01 DA 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 01 00 00 F4 03 04 00 FD 3D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F2 FA 03 00 35 04 06 00 CF 03 FE CD 54 CF F0 7D 31 F7 44 6B 77 6C [18:31: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 30 4F 00 00 00 CE DD 47 00 71 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F2 FA 03 00 F4 03 04 00 51 E7 C1 66 B6 04 01 00 00 4D 3B B3 B6 AC 90 39 6B [18:31:20]CommunicateWithHost err = 0 [18:31:20]CheckOFDResponse [18:31:20]1017 (14) - 77093643461234 [18:31:20]1041 (16) - 0000000000871820 [18:31:20]1040 (4) - 260850 [18:31:20]1012 (4) - 18.08.2024 12:21 [18:31:20]1206 (1) - 0 [18:31:20]OFD Sender: Remove packet 260850 [18:31:20]ProducePacketName [18:31:20]name=ofd_packets/00260850 [18:31:20]NVStorageDeleteData [18:31:21]Write to MH i2c: 01 00 00 16 B2 C8 [18:31:21]Write i2c OK [18:31:21]MH_I2C_Read... [18:31:21]Read from MH i2c: 01 [18:31:21]MH_I2C_Read... [18:31:21]Read from MH i2c: 01 07 00 [18:31:21]MH_I2C_Read... [18:31:21]Read from MH i2c: 01 07 00 16 B2 00 00 00 00 00 7B 0C 56 [18:31:21]RasterBufferAndPrint [18:31:21]line [18:31:21]line [18:31:21]line [18:31:21]line [18:31:21]line [18:31:21]written 0, free lines is 3198 [18:31:21]MH_Cut [18:31:21]Write to MH i2c: D1 01 00 1D B2 01 A1 [18:31:21]Write i2c OK [18:31:21]MH_I2C_Read... [18:31:21]Read from MH i2c: D1 [18:31:21]MH_I2C_Read... [18:31:21]Read from MH i2c: D1 01 00 [18:31:21]MH_I2C_Read... [18:31:21]Read from MH i2c: D1 01 00 1D B2 00 A0 [18:31:21]Write to MH i2c: 01 00 00 1E B2 D0 [18:31:21]Write i2c OK [18:31:21]MH_I2C_Read... [18:31:21]OFD Sender: No OFD packet to send [18:31:22]*** Cut start [18:31:22]*** Purtial cut [18:31:22]*** Stage 1: CUTSNS_PIN = 1 [18:31:24]Read from MH i2c: 01 [18:31:24]MH_I2C_Read... [18:31:24]*** Stop cut motor [18:31:24]*** Cut end [18:31:24]Read from MH i2c: 01 07 00 [18:31:24]MH_I2C_Read... [18:31:24]Read from MH i2c: 01 07 00 1E B2 00 00 00 00 00 FF 0F E5 [18:31:24]process_action close_receipt done [18:31:24]requested_data is exist [18:31:24]produce_requested_data [18:31:24]requested_item fm.sn is exist - process it [18:31:24]wFMCommunicate request_size=4 [18:31:24]MH_SAM_APDU [18:31:24]CAPDU: 80 11 00 00 [18:31:24]Write to MH i2c: E2 08 00 1F B2 80 11 00 00 00 00 00 00 4B [18:31:24]Write i2c OK [18:31:24]MH_I2C_Read... [18:31:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:24]Read from MH i2c: E2 [18:31:24]MH_I2C_Read... [18:31:24]Read from MH i2c: E2 17 00 [18:31:24]MH_I2C_Read... [18:31:24]Read from MH i2c: E2 17 00 1F B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 98 [18:31:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:31:24]wFMCommunicate OK [18:31:24]requested_item fd.num is exist - process it [18:31:24]SAM_PROTO_GetFieldsCounters [18:31:24]wFMCommunicate request_size=4 [18:31:24]MH_SAM_APDU [18:31:24]CAPDU: 80 13 00 00 [18:31:24]Write to MH i2c: E2 08 00 20 B2 80 13 00 00 00 00 00 00 4E [18:31:24]Write i2c OK [18:31:24]MH_I2C_Read... [18:31:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:24]Read from MH i2c: E2 [18:31:24]MH_I2C_Read... [18:31:24]Read from MH i2c: E2 62 00 [18:31:24]MH_I2C_Read... [18:31:24]Read from MH i2c: E2 62 00 20 B2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F2 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 98 01 00 00 5E 04 04 00 98 01 00 00 57 04 04 00 99 01 00 00 19 04 04 00 00 00 00 00 90 00 E9 [18:31: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F2 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 98 01 00 00 5E 04 04 00 98 01 00 00 57 04 04 00 99 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:31:24]wFMCommunicate OK [18:31:24]SAM_PROTO_GetFieldsCounters done [18:31:24]requested_item shift.num is exist - process it [18:31:24]requested_item shift.opened is exist - process it [18:31:24]req_shift_opened [18:31:24]FM_GetShiftState [18:31:24]SAM_PROTO_GetShiftState [18:31:24]wFMCommunicate request_size=4 [18:31:24]MH_SAM_APDU [18:31:24]CAPDU: 80 13 01 00 [18:31:24]Write to MH i2c: E2 08 00 21 B2 80 13 01 00 00 00 00 00 50 [18:31:24]Write i2c OK [18:31:24]MH_I2C_Read... [18:31:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:24]Read from MH i2c: E2 [18:31:24]MH_I2C_Read... [18:31:24]Read from MH i2c: E2 0E 00 [18:31:24]MH_I2C_Read... [18:31:24]Read from MH i2c: E2 0E 00 21 B2 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 8D [18:31:24]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:31:24]wFMCommunicate OK [18:31:24]SAM_PROTO_GetShiftState done [18:31:24]FM_GetShiftState done [18:31:24]req_shift_opened done [18:31:24]requested_item shift.open_date is exist - process it [18:31:24]req_shift_open_date [18:31:24]req_shift_open_date done [18:31:24]produce_requested_data done [18:31:24]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260850,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:31:24]process_action_free close_receipt [18:31:24]json_value_free [18:31:24]json_value_free done [18:31:24]process_json_proto returns [18:31:24]Send response to host [18:31:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260850,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:31:24]free response buf [18:31:24]execute_script done [18:31:24]execute_script returns [18:31:24]free content buf [18:31:24]Sock 7.Close socket [18:31:24]Sock 7.Thread stoped [18:31:26]OFD Sender: No OFD packet to send [18:31:31]OFD Sender: No OFD packet to send [18:31:36]OFD Sender: No OFD packet to send [18:31:41]OFD Sender: No OFD packet to send [18:31:46]OFD Sender: No OFD packet to send [18:31:51]OFD Sender: No OFD packet to send [18:31:56]OFD Sender: No OFD packet to send [18:32:01]OFD Sender: No OFD packet to send [18:32:06]OFD Sender: No OFD packet to send [18:32:10]accept exits with 9 [18:32:10]New connection [18:32:10]New thread 3066617188 created [18:32:10]Thread 3066473828 joined [18:32:10]Waiting for new connection... [18:32:10] Sock 9.Parse request [18:32:10]Sock 9.Check first char [18:32:10]Sock 9.First char is OK [18:32:10]request: POST /json_proto HTTP/1.0 [18:32:10]Method: POST [18:32:10]URL: /json_proto [18:32:10]Method is POST - this is cgi request [18:32:10]url: /json_proto [18:32:10]query_string will be loaded in cgi processing [18:32:10]execute_cgi json_proto POST (null) [18:32:10]execute_cgi path=json_proto method=POST [18:32:10]POST find Content-Length [18:32:10]Host: 172.17.55.133:8080 [18:32:10]Content-Length: 678 [18:32:10]Content-Type: application/json [18:32:10] [18:32:10]POST finish read [18:32:10]Found Content-Length = 678 [18:32:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.400, "sum" : 230.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 230.00, "total" : 230.00, "payments": [ { "type": 0, "sum" : 230.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:32:10]execute_script... [18:32: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)1036403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.400, "sum" : 230.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 230.00, "total" : 230.00, "payments": [ { "type": 0, "sum" : 230.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:32:10]POST & json_proto [18:32:10]process_json_proto [18:32:10]json parsed OK: [18:32:10]protocol is kg_v1.0 [18:32:10]action value=close_receipt [18:32:10]process_action close_receipt [18:32:10]cmd_close_receipt [18:32:10]MH_GetDate [18:32:10]Write to MH i2c: F0 00 00 22 B2 C3 [18:32:10]Write i2c OK [18:32:10]MH_I2C_Read... [18:32:10]Read from MH i2c: F0 [18:32:10]MH_I2C_Read... [18:32:10]Read from MH i2c: F0 09 00 [18:32:10]MH_I2C_Read... [18:32:10]Read from MH i2c: F0 09 00 22 B2 00 30 3E C2 66 34 48 D8 65 1B [18:32:10]GetLastDocTimeStamp 1724005885 [18:32:10]current date 1724005936 [18:32:10]FM_GetShiftState [18:32:10]SAM_PROTO_GetShiftState [18:32:10]wFMCommunicate request_size=4 [18:32:10]MH_SAM_APDU [18:32:10]CAPDU: 80 13 01 00 [18:32:10]Write to MH i2c: E2 08 00 23 B2 80 13 01 00 00 00 00 00 52 [18:32:10]Write i2c OK [18:32:10]MH_I2C_Read... [18:32:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:10]Read from MH i2c: E2 [18:32:10]MH_I2C_Read... [18:32:10]Read from MH i2c: E2 0E 00 [18:32:10]MH_I2C_Read... [18:32:10]Read from MH i2c: E2 0E 00 23 B2 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 8F [18:32:10]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:32:10]wFMCommunicate OK [18:32:10]SAM_PROTO_GetShiftState done [18:32:10]FM_GetShiftState done [18:32:10]opened in 1723940556 [18:32:10]opened+sec_in_day 1724026956 [18:32:10]quantity*price = 23052 [18:32:10]sum+1 = 23053 [18:32:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 230.00 Внесено: 230.00 СДАЧА: 0.00 НСП 1% : 2.04 НДС 12% : 24.48 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 409 18.08.2024 18:32 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260851 ФПД: 147837695265523 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T183217&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260851&fm=147837695265523&tin=02508201610067®Number=0000000000091865&sum=23000 [18:32:11]StoreToDocumentArchive [18:32:11]shift 449 fd 260851 [18:32:11]save to /storage/0449/doc_00260851 [18:32:11]save last doc name /storage/0449/doc_00260851 to /storage/kkm_last_doc_name [18:32:11]save OK [18:32:11]Clear old archive folders... [18:32:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:32:11]tlvbuf is 00387F60 [18:32:11]SAM_PROTO_ClearQueue [18:32:11]wFMCommunicate request_size=4 [18:32:11]MH_SAM_APDU [18:32:11]CAPDU: 80 09 00 00 [18:32:11]Write to MH i2c: E2 08 00 30 B2 80 09 00 00 00 00 00 00 54 [18:32:11]Write i2c OK [18:32:11]MH_I2C_Read... [18:32:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:32:11]Read from MH i2c: E2 [18:32:11]MH_I2C_Read... [18:32:11]Read from MH i2c: E2 03 00 [18:32:11]MH_I2C_Read... [18:32:11]Read from MH i2c: E2 03 00 30 B2 00 90 00 56 [18:32:11]RAPDU: 90 00 [18:32:11]wFMCommunicate OK [18:32:11]SAM_PROTO_ClearQueue done [18:32:11]KKMCreateOFDPacket [18:32:11]OFDProtocolAddRootSTLVToBuf [18:32:11]FM_MakeSignedData [18:32:11]FM_MakeSignedData [18:32:11]SAM_PROTO_SignData [18:32:11]wFMCommunicate request_size=4 [18:32:11]MH_SAM_APDU [18:32:11]CAPDU: 80 0D 01 02 [18:32:11]Write to MH i2c: E2 08 00 31 B2 80 0D 01 02 00 00 00 00 5C [18:32:11]Write i2c OK [18:32:11]MH_I2C_Read... [18:32:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:32:11]Read from MH i2c: E2 [18:32:11]MH_I2C_Read... [18:32:11]Read from MH i2c: E2 03 00 [18:32:11]MH_I2C_Read... [18:32:11]Read from MH i2c: E2 03 00 31 B2 00 90 00 57 [18:32:11]RAPDU: 90 00 [18:32:11]wFMCommunicate OK [18:32:11]wFMCommunicate request_size=255 [18:32:11]MH_SAM_APDU [18:32:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 0D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0C 5A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 01 00 00 F4 03 04 00 31 3E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F3 FA 03 00 35 04 06 00 86 [18:32:11]Write to MH i2c: E2 02 01 32 B2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 0D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0C 5A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 01 00 00 F4 03 04 00 31 3E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F3 FA 03 00 35 04 06 00 86 00 00 E5 [18:32:12]Write i2c OK [18:32:12]MH_I2C_Read... [18:32:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:12]Read from MH i2c: E2 [18:32:12]MH_I2C_Read... [18:32:12]Read from MH i2c: E2 03 00 [18:32:12]MH_I2C_Read... [18:32:12]Read from MH i2c: E2 03 00 32 B2 00 90 00 58 [18:32:12]RAPDU: 90 00 [18:32:12]wFMCommunicate OK [18:32:12]wFMCommunicate request_size=10 [18:32:12]MH_SAM_APDU [18:32:12]CAPDU: 80 0D 02 02 05 75 25 4F 8A F3 [18:32:12]Write to MH i2c: E2 0D 00 33 B2 80 0D 02 02 05 00 75 25 4F 8A F3 00 00 CF [18:32:12]Write i2c OK [18:32:12]MH_I2C_Read... [18:32:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:12]Read from MH i2c: E2 [18:32:12]MH_I2C_Read... [18:32:12]Read from MH i2c: E2 03 00 [18:32:12]MH_I2C_Read... [18:32:12]Read from MH i2c: E2 03 00 33 B2 00 90 00 59 [18:32:12]RAPDU: 90 00 [18:32:12]wFMCommunicate OK [18:32:12]wFMCommunicate request_size=4 [18:32:12]MH_SAM_APDU [18:32:12]CAPDU: 80 0D 03 02 [18:32:12]Write to MH i2c: E2 08 00 34 B2 80 0D 03 02 00 00 00 00 61 [18:32:12]Write i2c OK [18:32:12]MH_I2C_Read... [18:32:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:32:12]Read from MH i2c: E2 [18:32:12]MH_I2C_Read... [18:32:12]Read from MH i2c: E2 0B 00 [18:32:12]MH_I2C_Read... [18:32:12]Read from MH i2c: E2 0B 00 34 B2 00 00 DE 8E CB B3 2B 02 B4 90 00 2D [18:32:12]RAPDU: 00 DE 8E CB B3 2B 02 B4 90 00 [18:32:12]wFMCommunicate OK [18:32:12]SAM_PROTO_SignData done [18:32:12]FM_MakeSignedData done [18:32:12]CreateOFDProtocolMessage [18:32:12]wFMCommunicate request_size=4 [18:32:12]MH_SAM_APDU [18:32:12]CAPDU: 80 11 00 00 [18:32:12]Write to MH i2c: E2 08 00 35 B2 80 11 00 00 00 00 00 00 61 [18:32:12]Write i2c OK [18:32:12]MH_I2C_Read... [18:32:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:12]Read from MH i2c: E2 [18:32:12]MH_I2C_Read... [18:32:12]Read from MH i2c: E2 17 00 [18:32:12]MH_I2C_Read... [18:32:12]Read from MH i2c: E2 17 00 35 B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 AE [18:32:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:32:12]wFMCommunicate OK [18:32:12]CreateOFDProtocolMessage done [18:32:12]OFDSenderStorePacket 260851 [18:32:12]StoreOFDPacket docnum=260851 [18:32:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 62 36 07 01 B9 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 0D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0C 5A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 01 00 00 F4 03 04 00 31 3E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F3 FA 03 00 35 04 06 00 86 75 25 4F 8A F3 00 DE 8E CB B3 2B 02 B4 [18:32:12]CheckFolder [18:32:12]dirname=/storage/ofd_packets [18:32:12]CheckFolder done [18:32:12]ProducePacketName [18:32:12]name=ofd_packets/00260851 [18:32:12]NVStorageSaveData ofd_packets/00260851 [18:32:12]File name is /storage/ofd_packets/00260851 [18:32:12]Write 301 bytes [18:32:12]NVStorageSaveData done [18:32:12]OFDSenderStorePacket done [18:32:12]KKMCreateOFDPacket done [18:32:12]NVStorageSaveData kkm_last_timestamp [18:32:12]File name is /storage/kkm_last_timestamp [18:32:12]Write 4 bytes [18:32:12]NVStorageSaveData done [18:32:12]ExternCall_PrintAddStr [18:32:12]wPrintStart [18:32:12]Write to MH i2c: 01 00 00 36 B2 E8 [18:32:12]Write i2c OK [18:32:12]MH_I2C_Read... [18:32:12]Read from MH i2c: 01 [18:32:12]MH_I2C_Read... [18:32:12]Read from MH i2c: 01 07 00 [18:32:12]MH_I2C_Read... [18:32:12]Read from MH i2c: 01 07 00 36 B2 00 00 00 00 00 FF 0F FD [18:32:12]RasterBufferAndPrint [18:32:12]line Счет N : (1)1036403 [18:32:12]line ИНН: 02508201610067 [18:32:12]line Контрольно-Кассовый Чек [18:32:12]line ПРОДАЖА [18:32:12]line ТРК (МРК, ГНК) : 42 [18:32:12]line Товар: 2710124130 [18:32:12]line Аи-92-К-5 [18:32:12]line 3.400 * 67.80 [18:32:12]line = 230.52 [18:32:12]line НДС 12% НСП 1% [18:32:12]line > о реализуемом товаре [18:32:12]line ОКРУГЛЕНИЕ: -0.52 [18:32:12]line ИТОГО: 230.00 [18:32:12]line Внесено: 230.00 [18:32:12]line СДАЧА: 0.00 [18:32:12]line НСП 1% : 2.04 [18:32:12]line НДС 12% : 24.48 [18:32:12]line Наличными: 230.00 [18:32:12]line Безнал.: 0.00 [18:32:12]line Место: АЗС № 94 "Партнер Нефть" [18:32:12]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:32:12]line СНО: Общий режим [18:32:12]line Чек 409 18.08.2024 18:32 [18:32:12]line Смена: 449 ФФД: 1.0 [18:32:12]line ЗНМ: 0300000099 [18:32:12]line РНМ: 0000000000091865 [18:32:12]line Версия ККМ: 001 [18:32:12]line ФМ: 0000000000871820 [18:32:12]line ФД: 260851 [18:32:12]line ФПД: 147837695265523 [18:32:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T183217&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260851&fm=147837695265523&tin=02508201610067®Number=0000000000091865&sum=23000 [18:32:12]written 0, free lines is 4095 [18:32:12]OFD Sender: Processing packet 260851 [packets to send 192, broken 191] [18:32:12]ProducePacketName [18:32:12]name=ofd_packets/00260851 [18:32:12]OFD Sender: To server: pG, [18:32:12]CommunicateWithHost lk.salyk.kg:30040 [18:32:12]ConnectInit lk.salyk.kg [18:32:12]Connected sock=10 [18:32: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 30 0F 01 00 00 62 36 07 01 B9 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 0D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0C 5A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 01 00 00 F4 03 04 00 31 3E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F3 FA 03 00 35 04 06 00 86 75 25 4F 8A F3 00 DE 8E CB B3 2B 02 B4 [18:32: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 30 4F 00 00 00 D5 28 47 00 99 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 30 10 04 04 00 F3 FA 03 00 F4 03 04 00 85 E7 C1 66 B6 04 01 00 00 79 7A 5C 02 9F 67 00 FE [18:32:13]CommunicateWithHost err = 0 [18:32:13]CheckOFDResponse [18:32:13]1017 (14) - 77093643461234 [18:32:13]1041 (16) - 0000000000871820 [18:32:13]1040 (4) - 260851 [18:32:13]1012 (4) - 18.08.2024 12:22 [18:32:13]1206 (1) - 0 [18:32:13]OFD Sender: Remove packet 260851 [18:32:13]ProducePacketName [18:32:13]name=ofd_packets/00260851 [18:32:13]NVStorageDeleteData [18:32:13]Write to MH i2c: 01 00 00 61 B2 13 [18:32:13]Write i2c OK [18:32:13]MH_I2C_Read... [18:32:13]Read from MH i2c: 01 [18:32:13]MH_I2C_Read... [18:32:13]Read from MH i2c: 01 07 00 [18:32:13]MH_I2C_Read... [18:32:13]Read from MH i2c: 01 07 00 61 B2 00 00 00 00 00 73 0C 99 [18:32:13]RasterBufferAndPrint [18:32:13]line [18:32:13]line [18:32:13]line [18:32:13]line [18:32:13]line [18:32:13]written 0, free lines is 3191 [18:32:13]MH_Cut [18:32:13]Write to MH i2c: D1 01 00 68 B2 01 EC [18:32:13]Write i2c OK [18:32:13]MH_I2C_Read... [18:32:13]Read from MH i2c: D1 [18:32:13]MH_I2C_Read... [18:32:13]Read from MH i2c: D1 01 00 [18:32:13]MH_I2C_Read... [18:32:13]Read from MH i2c: D1 01 00 68 B2 00 EB [18:32:13]Write to MH i2c: 01 00 00 69 B2 1B [18:32:13]Write i2c OK [18:32:13]MH_I2C_Read... [18:32:13]OFD Sender: No OFD packet to send [18:32:14]*** Cut start [18:32:14]*** Purtial cut [18:32:14]*** Stage 1: CUTSNS_PIN = 1 [18:32:16]Read from MH i2c: 01 [18:32:16]MH_I2C_Read... [18:32:16]*** Stop cut motor [18:32:16]*** Cut end [18:32:16]Read from MH i2c: 01 07 00 [18:32:16]MH_I2C_Read... [18:32:16]Read from MH i2c: 01 07 00 69 B2 00 00 00 00 00 FF 0F 30 [18:32:16]process_action close_receipt done [18:32:16]requested_data is exist [18:32:16]produce_requested_data [18:32:16]requested_item fm.sn is exist - process it [18:32:16]wFMCommunicate request_size=4 [18:32:16]MH_SAM_APDU [18:32:16]CAPDU: 80 11 00 00 [18:32:16]Write to MH i2c: E2 08 00 6A B2 80 11 00 00 00 00 00 00 96 [18:32:16]Write i2c OK [18:32:16]MH_I2C_Read... [18:32:16]Read from MH i2c: E2 [18:32:16]MH_I2C_Read... [18:32:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:16]Read from MH i2c: E2 17 00 [18:32:16]MH_I2C_Read... [18:32:16]Read from MH i2c: E2 17 00 6A B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E3 [18:32:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:32:16]wFMCommunicate OK [18:32:16]requested_item fd.num is exist - process it [18:32:16]SAM_PROTO_GetFieldsCounters [18:32:16]wFMCommunicate request_size=4 [18:32:16]MH_SAM_APDU [18:32:16]CAPDU: 80 13 00 00 [18:32:16]Write to MH i2c: E2 08 00 6B B2 80 13 00 00 00 00 00 00 99 [18:32:16]Write i2c OK [18:32:16]MH_I2C_Read... [18:32:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:32:16]Read from MH i2c: E2 [18:32:16]MH_I2C_Read... [18:32:16]Read from MH i2c: E2 62 00 [18:32:16]MH_I2C_Read... [18:32:16]Read from MH i2c: E2 62 00 6B B2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F3 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 99 01 00 00 5E 04 04 00 99 01 00 00 57 04 04 00 9A 01 00 00 19 04 04 00 00 00 00 00 90 00 38 [18:32:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F3 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 99 01 00 00 5E 04 04 00 99 01 00 00 57 04 04 00 9A 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:32:16]wFMCommunicate OK [18:32:16]SAM_PROTO_GetFieldsCounters done [18:32:16]requested_item shift.num is exist - process it [18:32:16]requested_item shift.opened is exist - process it [18:32:16]req_shift_opened [18:32:16]FM_GetShiftState [18:32:16]SAM_PROTO_GetShiftState [18:32:16]wFMCommunicate request_size=4 [18:32:16]MH_SAM_APDU [18:32:16]CAPDU: 80 13 01 00 [18:32:16]Write to MH i2c: E2 08 00 6C B2 80 13 01 00 00 00 00 00 9B [18:32:16]Write i2c OK [18:32:16]MH_I2C_Read... [18:32:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:16]Read from MH i2c: E2 [18:32:16]MH_I2C_Read... [18:32:16]Read from MH i2c: E2 0E 00 [18:32:16]MH_I2C_Read... [18:32:16]Read from MH i2c: E2 0E 00 6C B2 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D8 [18:32:16]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:32:16]wFMCommunicate OK [18:32:16]SAM_PROTO_GetShiftState done [18:32:16]FM_GetShiftState done [18:32:16]req_shift_opened done [18:32:16]requested_item shift.open_date is exist - process it [18:32:16]req_shift_open_date [18:32:16]req_shift_open_date done [18:32:16]produce_requested_data done [18:32:16]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260851,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:32:16]process_action_free close_receipt [18:32:16]json_value_free [18:32:16]json_value_free done [18:32:16]process_json_proto returns [18:32:16]Send response to host [18:32:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260851,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:32:16]free response buf [18:32:16]execute_script done [18:32:16]execute_script returns [18:32:16]free content buf [18:32:16]Sock 9.Close socket [18:32:16]Sock 9.Thread stoped [18:32:18]OFD Sender: No OFD packet to send [18:32:23]OFD Sender: No OFD packet to send [18:32:28]OFD Sender: No OFD packet to send [18:32:33]OFD Sender: No OFD packet to send [18:32:38]OFD Sender: No OFD packet to send [18:32:43]OFD Sender: No OFD packet to send [18:32:48]OFD Sender: No OFD packet to send [18:32:53]OFD Sender: No OFD packet to send [18:32:58]OFD Sender: No OFD packet to send [18:33:03]OFD Sender: No OFD packet to send [18:33:08]OFD Sender: No OFD packet to send [18:33:13]OFD Sender: No OFD packet to send [18:33:18]OFD Sender: No OFD packet to send [18:33:23]OFD Sender: No OFD packet to send [18:33:28]OFD Sender: No OFD packet to send [18:33:33]OFD Sender: No OFD packet to send [18:33:38]OFD Sender: No OFD packet to send [18:33:43]OFD Sender: No OFD packet to send [18:33:48]OFD Sender: No OFD packet to send [18:33:53]OFD Sender: No OFD packet to send [18:33:58]OFD Sender: No OFD packet to send [18:34:03]OFD Sender: No OFD packet to send [18:34:08]OFD Sender: No OFD packet to send [18:34:13]OFD Sender: No OFD packet to send [18:34:18]OFD Sender: No OFD packet to send [18:34:19]accept exits with 7 [18:34:19]New connection [18:34:19]New thread 3066473828 created [18:34:19]Thread 3066617188 joined [18:34:19]Waiting for new connection... [18:34:19] Sock 7.Parse request [18:34:19]Sock 7.Check first char [18:34:19]Sock 7.First char is OK [18:34:19]request: POST /json_proto HTTP/1.0 [18:34:19]Method: POST [18:34:19]URL: /json_proto [18:34:19]Method is POST - this is cgi request [18:34:19]url: /json_proto [18:34:19]query_string will be loaded in cgi processing [18:34:19]execute_cgi json_proto POST (null) [18:34:19]execute_cgi path=json_proto method=POST [18:34:19]POST find Content-Length [18:34:19]Host: 172.17.55.133:8080 [18:34:19]Content-Length: 683 [18:34:19]Content-Type: application/json [18:34:19] [18:34:19]POST finish read [18:34:19]Found Content-Length = 683 [18:34:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "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" ] } } [18:34:19]execute_script... [18:34: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)1036404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "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" ] } } [18:34:19]POST & json_proto [18:34:19]process_json_proto [18:34:19]json parsed OK: [18:34:19]protocol is kg_v1.0 [18:34:19]action value=close_receipt [18:34:19]process_action close_receipt [18:34:19]cmd_close_receipt [18:34:19]MH_GetDate [18:34:19]Write to MH i2c: F0 00 00 6D B2 0E [18:34:19]Write i2c OK [18:34:19]MH_I2C_Read... [18:34:19]Read from MH i2c: F0 [18:34:19]MH_I2C_Read... [18:34:19]Read from MH i2c: F0 09 00 [18:34:19]MH_I2C_Read... [18:34:19]Read from MH i2c: F0 09 00 6D B2 00 B2 3E C2 66 34 48 D8 65 E8 [18:34:19]GetLastDocTimeStamp 1724005937 [18:34:19]current date 1724006066 [18:34:19]FM_GetShiftState [18:34:19]SAM_PROTO_GetShiftState [18:34:19]wFMCommunicate request_size=4 [18:34:19]MH_SAM_APDU [18:34:19]CAPDU: 80 13 01 00 [18:34:19]Write to MH i2c: E2 08 00 6E B2 80 13 01 00 00 00 00 00 9D [18:34:19]Write i2c OK [18:34:19]MH_I2C_Read... [18:34:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:19]Read from MH i2c: E2 [18:34:19]MH_I2C_Read... [18:34:19]Read from MH i2c: E2 0E 00 [18:34:19]MH_I2C_Read... [18:34:19]Read from MH i2c: E2 0E 00 6E B2 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 DA [18:34:19]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:34:19]wFMCommunicate OK [18:34:19]SAM_PROTO_GetShiftState done [18:34:19]FM_GetShiftState done [18:34:19]opened in 1723940556 [18:34:19]opened+sec_in_day 1724026956 [18:34:19]quantity*price = 40005 [18:34:19]sum+1 = 40006 [18:34:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 410 18.08.2024 18:34 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260852 ФПД: 236003438131083 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T183426&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260852&fm=236003438131083&tin=02508201610067®Number=0000000000091865&sum=40000 [18:34:21]StoreToDocumentArchive [18:34:21]shift 449 fd 260852 [18:34:21]save to /storage/0449/doc_00260852 [18:34:21]save last doc name /storage/0449/doc_00260852 to /storage/kkm_last_doc_name [18:34:21]save OK [18:34:21]Clear old archive folders... [18:34:21]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:34:21]tlvbuf is 004510A0 [18:34:21]SAM_PROTO_ClearQueue [18:34:21]wFMCommunicate request_size=4 [18:34:21]MH_SAM_APDU [18:34:21]CAPDU: 80 09 00 00 [18:34:21]Write to MH i2c: E2 08 00 7B B2 80 09 00 00 00 00 00 00 9F [18:34:21]Write i2c OK [18:34:21]MH_I2C_Read... [18:34:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:34:21]Read from MH i2c: E2 [18:34:21]MH_I2C_Read... [18:34:21]Read from MH i2c: E2 03 00 [18:34:21]MH_I2C_Read... [18:34:21]Read from MH i2c: E2 03 00 7B B2 00 90 00 A1 [18:34:21]RAPDU: 90 00 [18:34:21]wFMCommunicate OK [18:34:21]SAM_PROTO_ClearQueue done [18:34:21]KKMCreateOFDPacket [18:34:21]OFDProtocolAddRootSTLVToBuf [18:34:21]FM_MakeSignedData [18:34:21]FM_MakeSignedData [18:34:21]SAM_PROTO_SignData [18:34:21]wFMCommunicate request_size=4 [18:34:21]MH_SAM_APDU [18:34:21]CAPDU: 80 0D 01 02 [18:34:21]Write to MH i2c: E2 08 00 7C B2 80 0D 01 02 00 00 00 00 A7 [18:34:21]Write i2c OK [18:34:21]MH_I2C_Read... [18:34:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:34:21]Read from MH i2c: E2 [18:34:21]MH_I2C_Read... [18:34:21]Read from MH i2c: E2 03 00 [18:34:21]MH_I2C_Read... [18:34:21]Read from MH i2c: E2 03 00 7C B2 00 90 00 A2 [18:34:21]RAPDU: 90 00 [18:34:21]wFMCommunicate OK [18:34:21]wFMCommunicate request_size=255 [18:34:21]MH_SAM_APDU [18:34:21]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 01 00 00 F4 03 04 00 B2 3E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F4 FA 03 00 35 04 06 00 [18:34:21]Write to MH i2c: E2 02 01 7D B2 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 01 00 00 F4 03 04 00 B2 3E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F4 FA 03 00 35 04 06 00 00 00 6A [18:34:21]Write i2c OK [18:34:21]MH_I2C_Read... [18:34:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:21]Read from MH i2c: E2 [18:34:21]MH_I2C_Read... [18:34:21]Read from MH i2c: E2 03 00 [18:34:21]MH_I2C_Read... [18:34:21]Read from MH i2c: E2 03 00 7D B2 00 90 00 A3 [18:34:21]RAPDU: 90 00 [18:34:21]wFMCommunicate OK [18:34:21]wFMCommunicate request_size=11 [18:34:21]MH_SAM_APDU [18:34:21]CAPDU: 80 0D 02 02 06 D6 A4 D5 18 77 8B [18:34:21]Write to MH i2c: E2 0E 00 7E B2 80 0D 02 02 06 00 D6 A4 D5 18 77 8B 00 00 1F [18:34:21]Write i2c OK [18:34:21]MH_I2C_Read... [18:34:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:21]Read from MH i2c: E2 [18:34:21]MH_I2C_Read... [18:34:21]Read from MH i2c: E2 03 00 [18:34:21]MH_I2C_Read... [18:34:21]Read from MH i2c: E2 03 00 7E B2 00 90 00 A4 [18:34:21]RAPDU: 90 00 [18:34:21]wFMCommunicate OK [18:34:21]wFMCommunicate request_size=4 [18:34:21]MH_SAM_APDU [18:34:21]CAPDU: 80 0D 03 02 [18:34:21]Write to MH i2c: E2 08 00 7F B2 80 0D 03 02 00 00 00 00 AC [18:34:21]Write i2c OK [18:34:21]MH_I2C_Read... [18:34:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:34:21]Read from MH i2c: E2 [18:34:21]MH_I2C_Read... [18:34:21]Read from MH i2c: E2 0B 00 [18:34:21]MH_I2C_Read... [18:34:21]Read from MH i2c: E2 0B 00 7F B2 00 1B FF 3D 3B CE CD 45 B1 90 00 D0 [18:34:21]RAPDU: 1B FF 3D 3B CE CD 45 B1 90 00 [18:34:21]wFMCommunicate OK [18:34:21]SAM_PROTO_SignData done [18:34:21]FM_MakeSignedData done [18:34:21]CreateOFDProtocolMessage [18:34:21]wFMCommunicate request_size=4 [18:34:21]MH_SAM_APDU [18:34:21]CAPDU: 80 11 00 00 [18:34:21]Write to MH i2c: E2 08 00 80 B2 80 11 00 00 00 00 00 00 AC [18:34:21]Write i2c OK [18:34:21]MH_I2C_Read... [18:34:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:21]Read from MH i2c: E2 [18:34:21]MH_I2C_Read... [18:34:21]Read from MH i2c: E2 17 00 [18:34:21]MH_I2C_Read... [18:34:21]Read from MH i2c: E2 17 00 80 B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F9 [18:34:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:34:21]wFMCommunicate OK [18:34:21]CreateOFDProtocolMessage done [18:34:21]OFDSenderStorePacket 260852 [18:34:21]StoreOFDPacket docnum=260852 [18:34:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 94 D3 08 01 4C 81 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 01 00 00 F4 03 04 00 B2 3E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F4 FA 03 00 35 04 06 00 D6 A4 D5 18 77 8B 1B FF 3D 3B CE CD 45 B1 [18:34:21]CheckFolder [18:34:21]dirname=/storage/ofd_packets [18:34:21]CheckFolder done [18:34:21]ProducePacketName [18:34:21]name=ofd_packets/00260852 [18:34:21]NVStorageSaveData ofd_packets/00260852 [18:34:21]File name is /storage/ofd_packets/00260852 [18:34:21]Write 302 bytes [18:34:21]NVStorageSaveData done [18:34:21]OFDSenderStorePacket done [18:34:21]KKMCreateOFDPacket done [18:34:21]NVStorageSaveData kkm_last_timestamp [18:34:21]File name is /storage/kkm_last_timestamp [18:34:21]Write 4 bytes [18:34:21]NVStorageSaveData done [18:34:21]ExternCall_PrintAddStr [18:34:21]wPrintStart [18:34:21]Write to MH i2c: 01 00 00 81 B2 33 [18:34:21]Write i2c OK [18:34:21]MH_I2C_Read... [18:34:21]Read from MH i2c: 01 [18:34:21]MH_I2C_Read... [18:34:21]Read from MH i2c: 01 07 00 [18:34:21]MH_I2C_Read... [18:34:21]Read from MH i2c: 01 07 00 81 B2 00 00 00 00 00 FF 0F 48 [18:34:21]RasterBufferAndPrint [18:34:21]line Счет N : (1)1036404 [18:34:21]line ИНН: 02508201610067 [18:34:21]line Контрольно-Кассовый Чек [18:34:21]line ПРОДАЖА [18:34:21]line ТРК (МРК, ГНК) : 33 [18:34:21]line Товар: 2710194210 [18:34:21]line ДТ(л)-К-4 [18:34:21]line 5.250 * 76.20 [18:34:21]line = 400.05 [18:34:21]line НДС 12% НСП 1% [18:34:21]line > о реализуемом товаре [18:34:21]line ОКРУГЛЕНИЕ: -0.05 [18:34:21]line ИТОГО: 400.00 [18:34:21]line Внесено: 400.00 [18:34:21]line СДАЧА: 0.00 [18:34:21]line НСП 1% : 3.54 [18:34:21]line НДС 12% : 42.48 [18:34:21]line Наличными: 400.00 [18:34:21]line Безнал.: 0.00 [18:34:21]line Место: АЗС № 94 "Партнер Нефть" [18:34:21]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:34:21]line СНО: Общий режим [18:34:21]line Чек 410 18.08.2024 18:34 [18:34:21]line Смена: 449 ФФД: 1.0 [18:34:21]line ЗНМ: 0300000099 [18:34:21]line РНМ: 0000000000091865 [18:34:21]line Версия ККМ: 001 [18:34:21]line ФМ: 0000000000871820 [18:34:21]line ФД: 260852 [18:34:21]line ФПД: 236003438131083 [18:34:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T183426&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260852&fm=236003438131083&tin=02508201610067®Number=0000000000091865&sum=40000 [18:34:21]OFD Sender: Processing packet 260852 [packets to send 192, broken 191] [18:34:21]ProducePacketName [18:34:21]name=ofd_packets/00260852 [18:34:21]OFD Sender: To server: pG, [18:34:21]CommunicateWithHost lk.salyk.kg:30040 [18:34:21]ConnectInit lk.salyk.kg [18:34:21]written 0, free lines is 4095 [18:34:21]Connected sock=10 [18:34: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 30 10 01 00 00 94 D3 08 01 4C 81 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 01 00 00 F4 03 04 00 B2 3E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F4 FA 03 00 35 04 06 00 D6 A4 D5 18 77 8B 1B FF 3D 3B CE CD 45 B1 [18:34: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 30 4F 00 00 00 A9 F8 47 00 B3 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 F4 FA 03 00 F4 03 04 00 06 E8 C1 66 B6 04 01 00 00 37 B1 30 DD 9C AE AB 25 [18:34:22]CommunicateWithHost err = 0 [18:34:22]CheckOFDResponse [18:34:22]1017 (14) - 77093643461234 [18:34:22]1041 (16) - 0000000000871820 [18:34:22]1040 (4) - 260852 [18:34:22]1012 (4) - 18.08.2024 12:24 [18:34:22]1206 (1) - 0 [18:34:22]OFD Sender: Remove packet 260852 [18:34:22]ProducePacketName [18:34:22]name=ofd_packets/00260852 [18:34:22]NVStorageDeleteData [18:34:22]Write to MH i2c: 01 00 00 AC B2 5E [18:34:22]Write i2c OK [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: 01 [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: 01 07 00 [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: 01 07 00 AC B2 00 00 00 00 00 62 0C D3 [18:34:22]RasterBufferAndPrint [18:34:22]line [18:34:22]line [18:34:22]line [18:34:22]line [18:34:22]line [18:34:22]written 0, free lines is 3175 [18:34:22]MH_Cut [18:34:22]Write to MH i2c: D1 01 00 B3 B2 01 37 [18:34:22]Write i2c OK [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: D1 [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: D1 01 00 [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: D1 01 00 B3 B2 00 36 [18:34:22]Write to MH i2c: 01 00 00 B4 B2 66 [18:34:22]Write i2c OK [18:34:22]MH_I2C_Read... [18:34:22]OFD Sender: No OFD packet to send [18:34:23]*** Cut start [18:34:23]*** Purtial cut [18:34:23]*** Stage 1: CUTSNS_PIN = 1 [18:34:25]Read from MH i2c: 01 [18:34:25]MH_I2C_Read... [18:34:25]*** Stop cut motor [18:34:25]*** Cut end [18:34:25]Read from MH i2c: 01 07 00 [18:34:25]MH_I2C_Read... [18:34:25]Read from MH i2c: 01 07 00 B4 B2 00 00 00 00 00 FF 0F 7B [18:34:25]process_action close_receipt done [18:34:25]requested_data is exist [18:34:25]produce_requested_data [18:34:25]requested_item fm.sn is exist - process it [18:34:25]wFMCommunicate request_size=4 [18:34:25]MH_SAM_APDU [18:34:25]CAPDU: 80 11 00 00 [18:34:25]Write to MH i2c: E2 08 00 B5 B2 80 11 00 00 00 00 00 00 E1 [18:34:25]Write i2c OK [18:34:25]MH_I2C_Read... [18:34:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:25]Read from MH i2c: E2 [18:34:25]MH_I2C_Read... [18:34:25]Read from MH i2c: E2 17 00 [18:34:25]MH_I2C_Read... [18:34:25]Read from MH i2c: E2 17 00 B5 B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 2E [18:34:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:34:25]wFMCommunicate OK [18:34:25]requested_item fd.num is exist - process it [18:34:25]SAM_PROTO_GetFieldsCounters [18:34:25]wFMCommunicate request_size=4 [18:34:25]MH_SAM_APDU [18:34:25]CAPDU: 80 13 00 00 [18:34:25]Write to MH i2c: E2 08 00 B6 B2 80 13 00 00 00 00 00 00 E4 [18:34:25]Write i2c OK [18:34:25]MH_I2C_Read... [18:34:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:25]Read from MH i2c: E2 [18:34:25]MH_I2C_Read... [18:34:25]Read from MH i2c: E2 62 00 [18:34:25]MH_I2C_Read... [18:34:25]Read from MH i2c: E2 62 00 B6 B2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F4 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 9A 01 00 00 5E 04 04 00 9A 01 00 00 57 04 04 00 9B 01 00 00 19 04 04 00 00 00 00 00 90 00 87 [18:34: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F4 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 9A 01 00 00 5E 04 04 00 9A 01 00 00 57 04 04 00 9B 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:34:25]wFMCommunicate OK [18:34:25]SAM_PROTO_GetFieldsCounters done [18:34:25]requested_item shift.num is exist - process it [18:34:25]requested_item shift.opened is exist - process it [18:34:25]req_shift_opened [18:34:25]FM_GetShiftState [18:34:25]SAM_PROTO_GetShiftState [18:34:25]wFMCommunicate request_size=4 [18:34:25]MH_SAM_APDU [18:34:25]CAPDU: 80 13 01 00 [18:34:25]Write to MH i2c: E2 08 00 B7 B2 80 13 01 00 00 00 00 00 E6 [18:34:25]Write i2c OK [18:34:25]MH_I2C_Read... [18:34:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:25]Read from MH i2c: E2 [18:34:25]MH_I2C_Read... [18:34:25]Read from MH i2c: E2 0E 00 [18:34:25]MH_I2C_Read... [18:34:25]Read from MH i2c: E2 0E 00 B7 B2 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 23 [18:34:25]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:34:25]wFMCommunicate OK [18:34:25]SAM_PROTO_GetShiftState done [18:34:25]FM_GetShiftState done [18:34:25]req_shift_opened done [18:34:25]requested_item shift.open_date is exist - process it [18:34:25]req_shift_open_date [18:34:25]req_shift_open_date done [18:34:25]produce_requested_data done [18:34:25]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260852,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:34:25]process_action_free close_receipt [18:34:25]json_value_free [18:34:25]json_value_free done [18:34:25]process_json_proto returns [18:34:25]Send response to host [18:34:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260852,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:34:25]free response buf [18:34:25]execute_script done [18:34:25]execute_script returns [18:34:25]free content buf [18:34:25]Sock 7.Close socket [18:34:25]Sock 7.Thread stoped [18:34:27]OFD Sender: No OFD packet to send [18:34:32]accept exits with 9 [18:34:32]New connection [18:34:32]New thread 3066617188 created [18:34:32]Thread 3066473828 joined [18:34:32]Waiting for new connection... [18:34:32] Sock 9.Parse request [18:34:32]Sock 9.Check first char [18:34:32]Sock 9.First char is OK [18:34:32]request: POST /json_proto HTTP/1.0 [18:34:32]Method: POST [18:34:32]URL: /json_proto [18:34:32]Method is POST - this is cgi request [18:34:32]url: /json_proto [18:34:32]query_string will be loaded in cgi processing [18:34:32]execute_cgi json_proto POST (null) [18:34:32]execute_cgi path=json_proto method=POST [18:34:32]POST find Content-Length [18:34:32]Host: 172.17.55.133:8080 [18:34:32]Content-Length: 678 [18:34:32]Content-Type: application/json [18:34:32] [18:34:32]POST finish read [18:34:32]Found Content-Length = 678 [18:34:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:32]execute_script... [18:34: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)1036405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:32]POST & json_proto [18:34:32]process_json_proto [18:34:32]json parsed OK: [18:34:32]protocol is kg_v1.0 [18:34:32]action value=close_receipt [18:34:32]process_action close_receipt [18:34:32]cmd_close_receipt [18:34:32]MH_GetDate [18:34:32]Write to MH i2c: F0 00 00 B8 B2 59 [18:34:32]Write i2c OK [18:34:32]MH_I2C_Read... [18:34:32]Read from MH i2c: F0 [18:34:32]MH_I2C_Read... [18:34:32]Read from MH i2c: F0 09 00 [18:34:32]MH_I2C_Read... [18:34:32]Read from MH i2c: F0 09 00 B8 B2 00 BE 3E C2 66 34 48 D8 65 3F [18:34:32]GetLastDocTimeStamp 1724006066 [18:34:32]current date 1724006078 [18:34:32]FM_GetShiftState [18:34:32]SAM_PROTO_GetShiftState [18:34:32]wFMCommunicate request_size=4 [18:34:32]MH_SAM_APDU [18:34:32]CAPDU: 80 13 01 00 [18:34:32]Write to MH i2c: E2 08 00 B9 B2 80 13 01 00 00 00 00 00 E8 [18:34:32]Write i2c OK [18:34:32]MH_I2C_Read... [18:34:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:32]Read from MH i2c: E2 [18:34:32]MH_I2C_Read... [18:34:32]Read from MH i2c: E2 0E 00 [18:34:32]MH_I2C_Read... [18:34:32]Read from MH i2c: E2 0E 00 B9 B2 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 25 [18:34:32]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:34:32]wFMCommunicate OK [18:34:32]SAM_PROTO_GetShiftState done [18:34:32]FM_GetShiftState done [18:34:32]opened in 1723940556 [18:34:32]opened+sec_in_day 1724026956 [18:34:32]quantity*price = 50036 [18:34:32]sum+1 = 50037 [18:34:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 411 18.08.2024 18:34 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260853 ФПД: 95565946393961 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T183438&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260853&fm=95565946393961&tin=02508201610067®Number=0000000000091865&sum=50000 [18:34:33]StoreToDocumentArchive [18:34:33]shift 449 fd 260853 [18:34:33]save to /storage/0449/doc_00260853 [18:34:33]save last doc name /storage/0449/doc_00260853 to /storage/kkm_last_doc_name [18:34:33]save OK [18:34:33]Clear old archive folders... [18:34:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:34:33]tlvbuf is 00387500 [18:34:33]SAM_PROTO_ClearQueue [18:34:33]wFMCommunicate request_size=4 [18:34:33]MH_SAM_APDU [18:34:33]CAPDU: 80 09 00 00 [18:34:33]Write to MH i2c: E2 08 00 C6 B2 80 09 00 00 00 00 00 00 EA [18:34:33]Write i2c OK [18:34:33]MH_I2C_Read... [18:34:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:34:33]Read from MH i2c: E2 [18:34:33]MH_I2C_Read... [18:34:33]Read from MH i2c: E2 03 00 [18:34:33]MH_I2C_Read... [18:34:33]Read from MH i2c: E2 03 00 C6 B2 00 90 00 EC [18:34:33]RAPDU: 90 00 [18:34:33]wFMCommunicate OK [18:34:33]SAM_PROTO_ClearQueue done [18:34:33]KKMCreateOFDPacket [18:34:33]OFDProtocolAddRootSTLVToBuf [18:34:33]FM_MakeSignedData [18:34:33]FM_MakeSignedData [18:34:33]SAM_PROTO_SignData [18:34:33]wFMCommunicate request_size=4 [18:34:33]MH_SAM_APDU [18:34:33]CAPDU: 80 0D 01 02 [18:34:33]Write to MH i2c: E2 08 00 C7 B2 80 0D 01 02 00 00 00 00 F2 [18:34:33]Write i2c OK [18:34:33]MH_I2C_Read... [18:34:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:34:33]Read from MH i2c: E2 [18:34:33]MH_I2C_Read... [18:34:33]Read from MH i2c: E2 03 00 [18:34:33]MH_I2C_Read... [18:34:33]Read from MH i2c: E2 03 00 C7 B2 00 90 00 ED [18:34:33]RAPDU: 90 00 [18:34:33]wFMCommunicate OK [18:34:33]wFMCommunicate request_size=255 [18:34:33]MH_SAM_APDU [18:34:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9B 01 00 00 F4 03 04 00 BE 3E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F5 FA 03 00 35 04 06 00 56 [18:34:33]Write to MH i2c: E2 02 01 C8 B2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9B 01 00 00 F4 03 04 00 BE 3E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F5 FA 03 00 35 04 06 00 56 00 00 39 [18:34:33]Write i2c OK [18:34:33]MH_I2C_Read... [18:34:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:34]Read from MH i2c: E2 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 03 00 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 03 00 C8 B2 00 90 00 EE [18:34:34]RAPDU: 90 00 [18:34:34]wFMCommunicate OK [18:34:34]wFMCommunicate request_size=10 [18:34:34]MH_SAM_APDU [18:34:34]CAPDU: 80 0D 02 02 05 EA AE 49 95 69 [18:34:34]Write to MH i2c: E2 0D 00 C9 B2 80 0D 02 02 05 00 EA AE 49 95 69 00 00 DE [18:34:34]Write i2c OK [18:34:34]MH_I2C_Read... [18:34:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:34]Read from MH i2c: E2 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 03 00 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 03 00 C9 B2 00 90 00 EF [18:34:34]RAPDU: 90 00 [18:34:34]wFMCommunicate OK [18:34:34]wFMCommunicate request_size=4 [18:34:34]MH_SAM_APDU [18:34:34]CAPDU: 80 0D 03 02 [18:34:34]Write to MH i2c: E2 08 00 CA B2 80 0D 03 02 00 00 00 00 F7 [18:34:34]Write i2c OK [18:34:34]MH_I2C_Read... [18:34:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:34:34]Read from MH i2c: E2 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 0B 00 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 0B 00 CA B2 00 CB 34 63 6F 12 20 B7 2B 90 00 DD [18:34:34]RAPDU: CB 34 63 6F 12 20 B7 2B 90 00 [18:34:34]wFMCommunicate OK [18:34:34]SAM_PROTO_SignData done [18:34:34]FM_MakeSignedData done [18:34:34]CreateOFDProtocolMessage [18:34:34]wFMCommunicate request_size=4 [18:34:34]MH_SAM_APDU [18:34:34]CAPDU: 80 11 00 00 [18:34:34]Write to MH i2c: E2 08 00 CB B2 80 11 00 00 00 00 00 00 F7 [18:34:34]Write i2c OK [18:34:34]MH_I2C_Read... [18:34:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:34]Read from MH i2c: E2 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 17 00 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 17 00 CB B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 44 [18:34:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:34:34]wFMCommunicate OK [18:34:34]CreateOFDProtocolMessage done [18:34:34]OFDSenderStorePacket 260853 [18:34:34]StoreOFDPacket docnum=260853 [18:34:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 02 A3 07 01 3D 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9B 01 00 00 F4 03 04 00 BE 3E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F5 FA 03 00 35 04 06 00 56 EA AE 49 95 69 CB 34 63 6F 12 20 B7 2B [18:34:34]CheckFolder [18:34:34]dirname=/storage/ofd_packets [18:34:34]CheckFolder done [18:34:34]ProducePacketName [18:34:34]name=ofd_packets/00260853 [18:34:34]NVStorageSaveData ofd_packets/00260853 [18:34:34]File name is /storage/ofd_packets/00260853 [18:34:34]Write 301 bytes [18:34:34]NVStorageSaveData done [18:34:34]OFDSenderStorePacket done [18:34:34]KKMCreateOFDPacket done [18:34:34]NVStorageSaveData kkm_last_timestamp [18:34:34]File name is /storage/kkm_last_timestamp [18:34:34]Write 4 bytes [18:34:34]NVStorageSaveData done [18:34:34]ExternCall_PrintAddStr [18:34:34]wPrintStart [18:34:34]Write to MH i2c: 01 00 00 CC B2 7E [18:34:34]Write i2c OK [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: 01 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: 01 07 00 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: 01 07 00 CC B2 00 00 00 00 00 FF 0F 93 [18:34:34]RasterBufferAndPrint [18:34:34]line Счет N : (1)1036405 [18:34:34]line ИНН: 02508201610067 [18:34:34]line Контрольно-Кассовый Чек [18:34:34]line ПРОДАЖА [18:34:34]line ТРК (МРК, ГНК) : 12 [18:34:34]line Товар: 2710124130 [18:34:34]line Аи-92-К-5 [18:34:34]line 7.380 * 67.80 [18:34:34]line = 500.36 [18:34:34]line НДС 12% НСП 1% [18:34:34]line > о реализуемом товаре [18:34:34]line ОКРУГЛЕНИЕ: -0.36 [18:34:34]line ИТОГО: 500.00 [18:34:34]line Внесено: 500.00 [18:34:34]line СДАЧА: 0.00 [18:34:34]line НСП 1% : 4.43 [18:34:34]line НДС 12% : 53.14 [18:34:34]line Наличными: 500.00 [18:34:34]line Безнал.: 0.00 [18:34:34]line Место: АЗС № 94 "Партнер Нефть" [18:34:34]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:34:34]line СНО: Общий режим [18:34:34]line Чек 411 18.08.2024 18:34 [18:34:34]line Смена: 449 ФФД: 1.0 [18:34:34]line ЗНМ: 0300000099 [18:34:34]line РНМ: 0000000000091865 [18:34:34]line Версия ККМ: 001 [18:34:34]line ФМ: 0000000000871820 [18:34:34]line ФД: 260853 [18:34:34]line ФПД: 95565946393961 [18:34:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T183438&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260853&fm=95565946393961&tin=02508201610067®Number=0000000000091865&sum=50000 [18:34:34]written 0, free lines is 4095 [18:34:34]OFD Sender: Processing packet 260853 [packets to send 192, broken 191] [18:34:34]ProducePacketName [18:34:34]name=ofd_packets/00260853 [18:34:34]OFD Sender: To server: pG, [18:34:34]CommunicateWithHost lk.salyk.kg:30040 [18:34:34]ConnectInit lk.salyk.kg [18:34:34]Connected sock=10 [18:34: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 30 0F 01 00 00 02 A3 07 01 3D 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9B 01 00 00 F4 03 04 00 BE 3E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F5 FA 03 00 35 04 06 00 56 EA AE 49 95 69 CB 34 63 6F 12 20 B7 2B [18:34:34]Write to MH i2c: 01 00 00 F7 B2 A9 [18:34:34]Write i2c OK [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: 01 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: 01 07 00 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: 01 07 00 F7 B2 00 00 00 00 00 70 0C 2C [18:34:34]RasterBufferAndPrint [18:34:34]line [18:34:34]line [18:34:34]line [18:34:34]line [18:34:34]line [18:34:34]written 0, free lines is 3186 [18:34:34]MH_Cut [18:34:34]Write to MH i2c: D1 01 00 FE B2 01 82 [18:34:34]Write i2c OK [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: D1 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: D1 01 00 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: D1 01 00 FE B2 00 81 [18:34:34]Write to MH i2c: 01 00 00 FF B2 B1 [18:34:34]Write i2c OK [18:34:34]MH_I2C_Read... [18:34: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 30 4F 00 00 00 AA 9B 47 00 18 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 30 10 04 04 00 F5 FA 03 00 F4 03 04 00 12 E8 C1 66 B6 04 01 00 00 87 FD 19 FF 97 AD 1F DD [18:34:34]CommunicateWithHost err = 0 [18:34:34]CheckOFDResponse [18:34:34]1017 (14) - 77093643461234 [18:34:34]1041 (16) - 0000000000871820 [18:34:34]1040 (4) - 260853 [18:34:34]1012 (4) - 18.08.2024 12:24 [18:34:34]1206 (1) - 0 [18:34:34]OFD Sender: Remove packet 260853 [18:34:34]ProducePacketName [18:34:34]name=ofd_packets/00260853 [18:34:34]NVStorageDeleteData [18:34:35]OFD Sender: No OFD packet to send [18:34:35]*** Cut start [18:34:35]*** Purtial cut [18:34:35]*** Stage 1: CUTSNS_PIN = 1 [18:34:37]Read from MH i2c: 01 [18:34:37]MH_I2C_Read... [18:34:37]*** Stop cut motor [18:34:37]*** Cut end [18:34:37]Read from MH i2c: 01 07 00 [18:34:37]MH_I2C_Read... [18:34:37]Read from MH i2c: 01 07 00 FF B2 00 00 00 00 00 FF 0F C6 [18:34:37]process_action close_receipt done [18:34:37]requested_data is exist [18:34:37]produce_requested_data [18:34:37]requested_item fm.sn is exist - process it [18:34:37]wFMCommunicate request_size=4 [18:34:37]MH_SAM_APDU [18:34:37]CAPDU: 80 11 00 00 [18:34:37]Write to MH i2c: E2 08 00 00 B3 80 11 00 00 00 00 00 00 2D [18:34:37]Write i2c OK [18:34:37]MH_I2C_Read... [18:34:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:37]Read from MH i2c: E2 [18:34:37]MH_I2C_Read... [18:34:37]Read from MH i2c: E2 17 00 [18:34:37]MH_I2C_Read... [18:34:37]Read from MH i2c: E2 17 00 00 B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 7A [18:34:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:34:37]wFMCommunicate OK [18:34:37]requested_item fd.num is exist - process it [18:34:37]SAM_PROTO_GetFieldsCounters [18:34:37]wFMCommunicate request_size=4 [18:34:37]MH_SAM_APDU [18:34:37]CAPDU: 80 13 00 00 [18:34:37]Write to MH i2c: E2 08 00 01 B3 80 13 00 00 00 00 00 00 30 [18:34:37]Write i2c OK [18:34:37]MH_I2C_Read... [18:34:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:38]Read from MH i2c: E2 [18:34:38]MH_I2C_Read... [18:34:38]Read from MH i2c: E2 62 00 [18:34:38]MH_I2C_Read... [18:34:38]Read from MH i2c: E2 62 00 01 B3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F5 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 9B 01 00 00 5E 04 04 00 9B 01 00 00 57 04 04 00 9C 01 00 00 19 04 04 00 00 00 00 00 90 00 D7 [18:34: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F5 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 9B 01 00 00 5E 04 04 00 9B 01 00 00 57 04 04 00 9C 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:34:38]wFMCommunicate OK [18:34:38]SAM_PROTO_GetFieldsCounters done [18:34:38]requested_item shift.num is exist - process it [18:34:38]requested_item shift.opened is exist - process it [18:34:38]req_shift_opened [18:34:38]FM_GetShiftState [18:34:38]SAM_PROTO_GetShiftState [18:34:38]wFMCommunicate request_size=4 [18:34:38]MH_SAM_APDU [18:34:38]CAPDU: 80 13 01 00 [18:34:38]Write to MH i2c: E2 08 00 02 B3 80 13 01 00 00 00 00 00 32 [18:34:38]Write i2c OK [18:34:38]MH_I2C_Read... [18:34:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:38]Read from MH i2c: E2 [18:34:38]MH_I2C_Read... [18:34:38]Read from MH i2c: E2 0E 00 [18:34:38]MH_I2C_Read... [18:34:38]Read from MH i2c: E2 0E 00 02 B3 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 6F [18:34:38]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:34:38]wFMCommunicate OK [18:34:38]SAM_PROTO_GetShiftState done [18:34:38]FM_GetShiftState done [18:34:38]req_shift_opened done [18:34:38]requested_item shift.open_date is exist - process it [18:34:38]req_shift_open_date [18:34:38]req_shift_open_date done [18:34:38]produce_requested_data done [18:34:38]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260853,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:34:38]process_action_free close_receipt [18:34:38]json_value_free [18:34:38]json_value_free done [18:34:38]process_json_proto returns [18:34:38]Send response to host [18:34:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260853,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:34:38]free response buf [18:34:38]execute_script done [18:34:38]execute_script returns [18:34:38]free content buf [18:34:38]Sock 9.Close socket [18:34:38]Sock 9.Thread stoped [18:34:40]OFD Sender: No OFD packet to send [18:34:45]OFD Sender: No OFD packet to send [18:34:50]OFD Sender: No OFD packet to send [18:34:55]OFD Sender: No OFD packet to send [18:35:00]OFD Sender: No OFD packet to send [18:35:05]OFD Sender: No OFD packet to send [18:35:10]OFD Sender: No OFD packet to send [18:35:15]OFD Sender: No OFD packet to send [18:35:20]OFD Sender: No OFD packet to send [18:35:25]OFD Sender: No OFD packet to send [18:35:30]OFD Sender: No OFD packet to send [18:35:35]OFD Sender: No OFD packet to send [18:35:40]OFD Sender: No OFD packet to send [18:35:45]OFD Sender: No OFD packet to send [18:35:50]OFD Sender: No OFD packet to send [18:35:55]OFD Sender: No OFD packet to send [18:36:00]OFD Sender: No OFD packet to send [18:36:05]OFD Sender: No OFD packet to send [18:36:10]OFD Sender: No OFD packet to send [18:36:15]OFD Sender: No OFD packet to send [18:36:20]OFD Sender: No OFD packet to send [18:36:25]OFD Sender: No OFD packet to send [18:36:30]OFD Sender: No OFD packet to send [18:36:35]OFD Sender: No OFD packet to send [18:36:40]OFD Sender: No OFD packet to send [18:36:45]OFD Sender: No OFD packet to send [18:36:50]OFD Sender: No OFD packet to send [18:36:55]OFD Sender: No OFD packet to send [18:37:00]OFD Sender: No OFD packet to send [18:37:05]OFD Sender: No OFD packet to send [18:37:10]OFD Sender: No OFD packet to send [18:37:15]OFD Sender: No OFD packet to send [18:37:20]OFD Sender: No OFD packet to send [18:37:25]OFD Sender: No OFD packet to send [18:37:30]OFD Sender: No OFD packet to send [18:37:35]OFD Sender: No OFD packet to send [18:37:40]OFD Sender: No OFD packet to send [18:37:45]OFD Sender: No OFD packet to send [18:37:47]accept exits with 7 [18:37:47]New connection [18:37:47]New thread 3066473828 created [18:37:47]Thread 3066617188 joined [18:37:47]Waiting for new connection... [18:37:47] Sock 7.Parse request [18:37:47]Sock 7.Check first char [18:37:47]Sock 7.First char is OK [18:37:47]request: POST /json_proto HTTP/1.0 [18:37:47]Method: POST [18:37:47]URL: /json_proto [18:37:47]Method is POST - this is cgi request [18:37:47]url: /json_proto [18:37:47]query_string will be loaded in cgi processing [18:37:47]execute_cgi json_proto POST (null) [18:37:47]execute_cgi path=json_proto method=POST [18:37:47]POST find Content-Length [18:37:47]Host: 172.17.55.133:8080 [18:37:47]Content-Length: 683 [18:37:47]Content-Type: application/json [18:37:47] [18:37:47]POST finish read [18:37:47]Found Content-Length = 683 [18:37:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:37:47]execute_script... [18:37: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)1036407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:37:47]POST & json_proto [18:37:47]process_json_proto [18:37:47]json parsed OK: [18:37:47]protocol is kg_v1.0 [18:37:47]action value=close_receipt [18:37:47]process_action close_receipt [18:37:47]cmd_close_receipt [18:37:47]MH_GetDate [18:37:47]Write to MH i2c: F0 00 00 03 B3 A5 [18:37:47]Write i2c OK [18:37:47]MH_I2C_Read... [18:37:47]Read from MH i2c: F0 [18:37:47]MH_I2C_Read... [18:37:47]Read from MH i2c: F0 09 00 [18:37:47]MH_I2C_Read... [18:37:47]Read from MH i2c: F0 09 00 03 B3 00 81 3F C2 66 34 48 D8 65 4F [18:37:47]GetLastDocTimeStamp 1724006078 [18:37:47]current date 1724006273 [18:37:47]FM_GetShiftState [18:37:47]SAM_PROTO_GetShiftState [18:37:47]wFMCommunicate request_size=4 [18:37:47]MH_SAM_APDU [18:37:47]CAPDU: 80 13 01 00 [18:37:47]Write to MH i2c: E2 08 00 04 B3 80 13 01 00 00 00 00 00 34 [18:37:47]Write i2c OK [18:37:47]MH_I2C_Read... [18:37:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:47]Read from MH i2c: E2 [18:37:47]MH_I2C_Read... [18:37:47]Read from MH i2c: E2 0E 00 [18:37:47]MH_I2C_Read... [18:37:47]Read from MH i2c: E2 0E 00 04 B3 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 71 [18:37:47]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:37:47]wFMCommunicate OK [18:37:47]SAM_PROTO_GetShiftState done [18:37:47]FM_GetShiftState done [18:37:47]opened in 1723940556 [18:37:47]opened+sec_in_day 1724026956 [18:37:47]quantity*price = 100005 [18:37:47]sum+1 = 100006 [18:37:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 412 18.08.2024 18:37 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260854 ФПД: 151317949810759 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T183753&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260854&fm=151317949810759&tin=02508201610067®Number=0000000000091865&sum=100000 [18:37:48]StoreToDocumentArchive [18:37:48]shift 449 fd 260854 [18:37:48]save to /storage/0449/doc_00260854 [18:37:48]save last doc name /storage/0449/doc_00260854 to /storage/kkm_last_doc_name [18:37:48]save OK [18:37:48]Clear old archive folders... [18:37:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:37:48]tlvbuf is 005F9710 [18:37:48]SAM_PROTO_ClearQueue [18:37:48]wFMCommunicate request_size=4 [18:37:48]MH_SAM_APDU [18:37:48]CAPDU: 80 09 00 00 [18:37:48]Write to MH i2c: E2 08 00 11 B3 80 09 00 00 00 00 00 00 36 [18:37:48]Write i2c OK [18:37:48]MH_I2C_Read... [18:37:48]Read from MH i2c: E2 [18:37:48]MH_I2C_Read... [18:37:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:37:48]Read from MH i2c: E2 03 00 [18:37:48]MH_I2C_Read... [18:37:48]Read from MH i2c: E2 03 00 11 B3 00 90 00 38 [18:37:48]RAPDU: 90 00 [18:37:48]wFMCommunicate OK [18:37:48]SAM_PROTO_ClearQueue done [18:37:48]KKMCreateOFDPacket [18:37:48]OFDProtocolAddRootSTLVToBuf [18:37:48]FM_MakeSignedData [18:37:48]FM_MakeSignedData [18:37:48]SAM_PROTO_SignData [18:37:48]wFMCommunicate request_size=4 [18:37:48]MH_SAM_APDU [18:37:48]CAPDU: 80 0D 01 02 [18:37:48]Write to MH i2c: E2 08 00 12 B3 80 0D 01 02 00 00 00 00 3E [18:37:48]Write i2c OK [18:37:48]MH_I2C_Read... [18:37:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:37:48]Read from MH i2c: E2 [18:37:48]MH_I2C_Read... [18:37:48]Read from MH i2c: E2 03 00 [18:37:48]MH_I2C_Read... [18:37:48]Read from MH i2c: E2 03 00 12 B3 00 90 00 39 [18:37:48]RAPDU: 90 00 [18:37:48]wFMCommunicate OK [18:37:48]wFMCommunicate request_size=255 [18:37:48]MH_SAM_APDU [18:37:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 01 00 00 F4 03 04 00 81 3F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F6 FA 03 00 35 04 06 00 89 [18:37:48]Write to MH i2c: E2 02 01 13 B3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 01 00 00 F4 03 04 00 81 3F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F6 FA 03 00 35 04 06 00 89 00 00 0D [18:37:48]Write i2c OK [18:37:48]MH_I2C_Read... [18:37:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:48]Read from MH i2c: E2 [18:37:48]MH_I2C_Read... [18:37:48]Read from MH i2c: E2 03 00 [18:37:48]MH_I2C_Read... [18:37:48]Read from MH i2c: E2 03 00 13 B3 00 90 00 3A [18:37:48]RAPDU: 90 00 [18:37:48]wFMCommunicate OK [18:37:48]wFMCommunicate request_size=10 [18:37:48]MH_SAM_APDU [18:37:48]CAPDU: 80 0D 02 02 05 9F 74 A5 88 47 [18:37:48]Write to MH i2c: E2 0D 00 14 B3 80 0D 02 02 05 00 9F 74 A5 88 47 00 00 D2 [18:37:48]Write i2c OK [18:37:48]MH_I2C_Read... [18:37:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:48]Read from MH i2c: E2 [18:37:48]MH_I2C_Read... [18:37:48]Read from MH i2c: E2 03 00 [18:37:48]MH_I2C_Read... [18:37:48]Read from MH i2c: E2 03 00 14 B3 00 90 00 3B [18:37:48]RAPDU: 90 00 [18:37:48]wFMCommunicate OK [18:37:48]wFMCommunicate request_size=4 [18:37:48]MH_SAM_APDU [18:37:48]CAPDU: 80 0D 03 02 [18:37:48]Write to MH i2c: E2 08 00 15 B3 80 0D 03 02 00 00 00 00 43 [18:37:48]Write i2c OK [18:37:48]MH_I2C_Read... [18:37:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:37:48]Read from MH i2c: E2 [18:37:48]MH_I2C_Read... [18:37:48]Read from MH i2c: E2 0B 00 [18:37:48]MH_I2C_Read... [18:37:48]Read from MH i2c: E2 0B 00 15 B3 00 59 92 72 90 87 3C BC 13 90 00 C3 [18:37:48]RAPDU: 59 92 72 90 87 3C BC 13 90 00 [18:37:48]wFMCommunicate OK [18:37:48]SAM_PROTO_SignData done [18:37:48]FM_MakeSignedData done [18:37:48]CreateOFDProtocolMessage [18:37:48]wFMCommunicate request_size=4 [18:37:48]MH_SAM_APDU [18:37:48]CAPDU: 80 11 00 00 [18:37:48]Write to MH i2c: E2 08 00 16 B3 80 11 00 00 00 00 00 00 43 [18:37:48]Write i2c OK [18:37:48]MH_I2C_Read... [18:37:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:48]Read from MH i2c: E2 [18:37:48]MH_I2C_Read... [18:37:48]Read from MH i2c: E2 17 00 [18:37:48]MH_I2C_Read... [18:37:48]Read from MH i2c: E2 17 00 16 B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 90 [18:37:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:37:48]wFMCommunicate OK [18:37:48]CreateOFDProtocolMessage done [18:37:48]OFDSenderStorePacket 260854 [18:37:48]StoreOFDPacket docnum=260854 [18:37:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 A6 AB 07 01 8E 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 01 00 00 F4 03 04 00 81 3F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F6 FA 03 00 35 04 06 00 89 9F 74 A5 88 47 59 92 72 90 87 3C BC 13 [18:37:48]CheckFolder [18:37:48]dirname=/storage/ofd_packets [18:37:48]CheckFolder done [18:37:48]ProducePacketName [18:37:48]name=ofd_packets/00260854 [18:37:48]NVStorageSaveData ofd_packets/00260854 [18:37:48]File name is /storage/ofd_packets/00260854 [18:37:48]Write 301 bytes [18:37:48]NVStorageSaveData done [18:37:48]OFDSenderStorePacket done [18:37:48]KKMCreateOFDPacket done [18:37:48]NVStorageSaveData kkm_last_timestamp [18:37:48]File name is /storage/kkm_last_timestamp [18:37:48]Write 4 bytes [18:37:48]NVStorageSaveData done [18:37:48]ExternCall_PrintAddStr [18:37:48]wPrintStart [18:37:48]Write to MH i2c: 01 00 00 17 B3 CA [18:37:48]Write i2c OK [18:37:48]MH_I2C_Read... [18:37:48]Read from MH i2c: 01 [18:37:48]MH_I2C_Read... [18:37:48]Read from MH i2c: 01 07 00 [18:37:48]MH_I2C_Read... [18:37:48]Read from MH i2c: 01 07 00 17 B3 00 00 00 00 00 FF 0F DF [18:37:48]RasterBufferAndPrint [18:37:48]line Счет N : (1)1036407 [18:37:48]line ИНН: 02508201610067 [18:37:48]line Контрольно-Кассовый Чек [18:37:48]line ПРОДАЖА [18:37:48]line ТРК (МРК, ГНК) : 22 [18:37:48]line Товар: 2710124130 [18:37:48]line Аи-92-К-5 [18:37:48]line 14.750 * 67.80 [18:37:48]line = 1000.05 [18:37:48]line НДС 12% НСП 1% [18:37:48]line > о реализуемом товаре [18:37:48]line ОКРУГЛЕНИЕ: -0.05 [18:37:48]line ИТОГО: 1000.00 [18:37:48]line Внесено: 1000.00 [18:37:48]line СДАЧА: 0.00 [18:37:48]line НСП 1% : 8.85 [18:37:48]line НДС 12% : 106.20 [18:37:48]line Наличными: 1000.00 [18:37:48]line Безнал.: 0.00 [18:37:48]line Место: АЗС № 94 "Партнер Нефть" [18:37:48]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:37:48]line СНО: Общий режим [18:37:48]line Чек 412 18.08.2024 18:37 [18:37:48]line Смена: 449 ФФД: 1.0 [18:37:48]line ЗНМ: 0300000099 [18:37:48]line РНМ: 0000000000091865 [18:37:48]line Версия ККМ: 001 [18:37:48]line ФМ: 0000000000871820 [18:37:48]line ФД: 260854 [18:37:48]line ФПД: 151317949810759 [18:37:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T183753&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260854&fm=151317949810759&tin=02508201610067®Number=0000000000091865&sum=100000 [18:37:49]OFD Sender: Processing packet 260854 [packets to send 192, broken 191] [18:37:49]ProducePacketName [18:37:49]name=ofd_packets/00260854 [18:37:49]OFD Sender: To server: pG, [18:37:49]CommunicateWithHost lk.salyk.kg:30040 [18:37:49]ConnectInit lk.salyk.kg [18:37:49]written 0, free lines is 4095 [18:37:49]Connected sock=10 [18:37: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 30 0F 01 00 00 A6 AB 07 01 8E 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 01 00 00 F4 03 04 00 81 3F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F6 FA 03 00 35 04 06 00 89 9F 74 A5 88 47 59 92 72 90 87 3C BC 13 [18:37: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 30 4F 00 00 00 CC DF 47 00 11 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 30 10 04 04 00 F6 FA 03 00 F4 03 04 00 D5 E8 C1 66 B6 04 01 00 00 D5 8E C2 FB B4 C8 CE A3 [18:37:49]CommunicateWithHost err = 0 [18:37:49]CheckOFDResponse [18:37:49]1017 (14) - 77093643461234 [18:37:49]1041 (16) - 0000000000871820 [18:37:49]1040 (4) - 260854 [18:37:49]1012 (4) - 18.08.2024 12:28 [18:37:49]1206 (1) - 0 [18:37:49]OFD Sender: Remove packet 260854 [18:37:49]ProducePacketName [18:37:49]name=ofd_packets/00260854 [18:37:49]NVStorageDeleteData [18:37:49]Write to MH i2c: 01 00 00 42 B3 F5 [18:37:49]Write i2c OK [18:37:49]MH_I2C_Read... [18:37:49]Read from MH i2c: 01 [18:37:49]MH_I2C_Read... [18:37:49]Read from MH i2c: 01 07 00 [18:37:49]MH_I2C_Read... [18:37:49]Read from MH i2c: 01 07 00 42 B3 00 00 00 00 00 6D 0C 75 [18:37:49]RasterBufferAndPrint [18:37:49]line [18:37:49]line [18:37:49]line [18:37:49]line [18:37:49]line [18:37:49]written 0, free lines is 3184 [18:37:49]MH_Cut [18:37:49]Write to MH i2c: D1 01 00 49 B3 01 CE [18:37:49]Write i2c OK [18:37:49]MH_I2C_Read... [18:37:49]Read from MH i2c: D1 [18:37:49]MH_I2C_Read... [18:37:49]Read from MH i2c: D1 01 00 [18:37:49]MH_I2C_Read... [18:37:49]Read from MH i2c: D1 01 00 49 B3 00 CD [18:37:49]Write to MH i2c: 01 00 00 4A B3 FD [18:37:49]Write i2c OK [18:37:49]MH_I2C_Read... [18:37:49]OFD Sender: No OFD packet to send [18:37:50]*** Cut start [18:37:50]*** Purtial cut [18:37:50]*** Stage 1: CUTSNS_PIN = 1 [18:37:52]Read from MH i2c: 01 [18:37:52]MH_I2C_Read... [18:37:52]*** Stop cut motor [18:37:52]*** Cut end [18:37:52]Read from MH i2c: 01 07 00 [18:37:52]MH_I2C_Read... [18:37:52]Read from MH i2c: 01 07 00 4A B3 00 00 00 00 00 FF 0F 12 [18:37:52]process_action close_receipt done [18:37:52]requested_data is exist [18:37:52]produce_requested_data [18:37:52]requested_item fm.sn is exist - process it [18:37:52]wFMCommunicate request_size=4 [18:37:52]MH_SAM_APDU [18:37:52]CAPDU: 80 11 00 00 [18:37:52]Write to MH i2c: E2 08 00 4B B3 80 11 00 00 00 00 00 00 78 [18:37:52]Write i2c OK [18:37:52]MH_I2C_Read... [18:37:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:52]Read from MH i2c: E2 [18:37:52]MH_I2C_Read... [18:37:52]Read from MH i2c: E2 17 00 [18:37:52]MH_I2C_Read... [18:37:52]Read from MH i2c: E2 17 00 4B B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C5 [18:37:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:37:52]wFMCommunicate OK [18:37:52]requested_item fd.num is exist - process it [18:37:52]SAM_PROTO_GetFieldsCounters [18:37:52]wFMCommunicate request_size=4 [18:37:52]MH_SAM_APDU [18:37:52]CAPDU: 80 13 00 00 [18:37:52]Write to MH i2c: E2 08 00 4C B3 80 13 00 00 00 00 00 00 7B [18:37:52]Write i2c OK [18:37:52]MH_I2C_Read... [18:37:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:37:52]Read from MH i2c: E2 [18:37:52]MH_I2C_Read... [18:37:52]Read from MH i2c: E2 62 00 [18:37:52]MH_I2C_Read... [18:37:52]Read from MH i2c: E2 62 00 4C B3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F6 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 9C 01 00 00 5E 04 04 00 9C 01 00 00 57 04 04 00 9D 01 00 00 19 04 04 00 00 00 00 00 90 00 26 [18:37: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F6 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 9C 01 00 00 5E 04 04 00 9C 01 00 00 57 04 04 00 9D 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:37:52]wFMCommunicate OK [18:37:52]SAM_PROTO_GetFieldsCounters done [18:37:52]requested_item shift.num is exist - process it [18:37:52]requested_item shift.opened is exist - process it [18:37:52]req_shift_opened [18:37:52]FM_GetShiftState [18:37:52]SAM_PROTO_GetShiftState [18:37:52]wFMCommunicate request_size=4 [18:37:52]MH_SAM_APDU [18:37:52]CAPDU: 80 13 01 00 [18:37:52]Write to MH i2c: E2 08 00 4D B3 80 13 01 00 00 00 00 00 7D [18:37:52]Write i2c OK [18:37:52]MH_I2C_Read... [18:37:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:53]Read from MH i2c: E2 [18:37:53]MH_I2C_Read... [18:37:53]Read from MH i2c: E2 0E 00 [18:37:53]MH_I2C_Read... [18:37:53]Read from MH i2c: E2 0E 00 4D B3 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 BA [18:37:53]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:37:53]wFMCommunicate OK [18:37:53]SAM_PROTO_GetShiftState done [18:37:53]FM_GetShiftState done [18:37:53]req_shift_opened done [18:37:53]requested_item shift.open_date is exist - process it [18:37:53]req_shift_open_date [18:37:53]req_shift_open_date done [18:37:53]produce_requested_data done [18:37:53]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260854,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:37:53]process_action_free close_receipt [18:37:53]json_value_free [18:37:53]json_value_free done [18:37:53]process_json_proto returns [18:37:53]Send response to host [18:37:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260854,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:37:53]free response buf [18:37:53]execute_script done [18:37:53]execute_script returns [18:37:53]free content buf [18:37:53]Sock 7.Close socket [18:37:53]Sock 7.Thread stoped [18:37:53]accept exits with 9 [18:37:53]New connection [18:37:53]New thread 3066617188 created [18:37:53]Thread 3066473828 joined [18:37:53]Waiting for new connection... [18:37:53] Sock 9.Parse request [18:37:53]Sock 9.Check first char [18:37:53]Sock 9.First char is OK [18:37:53]request: POST /json_proto HTTP/1.0 [18:37:53]Method: POST [18:37:53]URL: /json_proto [18:37:53]Method is POST - this is cgi request [18:37:53]url: /json_proto [18:37:53]query_string will be loaded in cgi processing [18:37:53]execute_cgi json_proto POST (null) [18:37:53]execute_cgi path=json_proto method=POST [18:37:53]POST find Content-Length [18:37:53]Host: 172.17.55.133:8080 [18:37:53]Content-Length: 688 [18:37:53]Content-Type: application/json [18:37:53] [18:37:53]POST finish read [18:37:53]Found Content-Length = 688 [18:37:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "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" ] } } [18:37:53]execute_script... [18:37: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)1036406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "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" ] } } [18:37:53]POST & json_proto [18:37:53]process_json_proto [18:37:53]json parsed OK: [18:37:53]protocol is kg_v1.0 [18:37:53]action value=close_receipt [18:37:53]process_action close_receipt [18:37:53]cmd_close_receipt [18:37:53]MH_GetDate [18:37:53]Write to MH i2c: F0 00 00 4E B3 F0 [18:37:53]Write i2c OK [18:37:53]MH_I2C_Read... [18:37:53]Read from MH i2c: F0 [18:37:53]MH_I2C_Read... [18:37:53]Read from MH i2c: F0 09 00 [18:37:53]MH_I2C_Read... [18:37:53]Read from MH i2c: F0 09 00 4E B3 00 87 3F C2 66 34 48 D8 65 A0 [18:37:53]GetLastDocTimeStamp 1724006273 [18:37:53]current date 1724006279 [18:37:53]FM_GetShiftState [18:37:53]SAM_PROTO_GetShiftState [18:37:53]wFMCommunicate request_size=4 [18:37:53]MH_SAM_APDU [18:37:53]CAPDU: 80 13 01 00 [18:37:53]Write to MH i2c: E2 08 00 4F B3 80 13 01 00 00 00 00 00 7F [18:37:53]Write i2c OK [18:37:53]MH_I2C_Read... [18:37:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:53]Read from MH i2c: E2 [18:37:53]MH_I2C_Read... [18:37:53]Read from MH i2c: E2 0E 00 [18:37:53]MH_I2C_Read... [18:37:53]Read from MH i2c: E2 0E 00 4F B3 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 BC [18:37:53]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:37:53]wFMCommunicate OK [18:37:53]SAM_PROTO_GetShiftState done [18:37:53]FM_GetShiftState done [18:37:53]opened in 1723940556 [18:37:53]opened+sec_in_day 1724026956 [18:37:53]quantity*price = 200025 [18:37:53]sum+1 = 200026 [18:37:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 413 18.08.2024 18:37 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260855 ФПД: 8797778560596 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T183759&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260855&fm=8797778560596&tin=02508201610067®Number=0000000000091865&sum=200000 [18:37:54]StoreToDocumentArchive [18:37:54]shift 449 fd 260855 [18:37:54]save to /storage/0449/doc_00260855 [18:37:54]save last doc name /storage/0449/doc_00260855 to /storage/kkm_last_doc_name [18:37:54]save OK [18:37:54]Clear old archive folders... [18:37:54]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:37:54]tlvbuf is 0037ACC0 [18:37:54]SAM_PROTO_ClearQueue [18:37:54]wFMCommunicate request_size=4 [18:37:54]MH_SAM_APDU [18:37:54]CAPDU: 80 09 00 00 [18:37:54]Write to MH i2c: E2 08 00 5C B3 80 09 00 00 00 00 00 00 81 [18:37:54]Write i2c OK [18:37:54]MH_I2C_Read... [18:37:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:37:54]Read from MH i2c: E2 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: E2 03 00 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: E2 03 00 5C B3 00 90 00 83 [18:37:54]RAPDU: 90 00 [18:37:54]wFMCommunicate OK [18:37:54]SAM_PROTO_ClearQueue done [18:37:54]KKMCreateOFDPacket [18:37:54]OFDProtocolAddRootSTLVToBuf [18:37:54]FM_MakeSignedData [18:37:54]FM_MakeSignedData [18:37:54]SAM_PROTO_SignData [18:37:54]wFMCommunicate request_size=4 [18:37:54]MH_SAM_APDU [18:37:54]CAPDU: 80 0D 01 02 [18:37:54]Write to MH i2c: E2 08 00 5D B3 80 0D 01 02 00 00 00 00 89 [18:37:54]Write i2c OK [18:37:54]MH_I2C_Read... [18:37:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:37:54]Read from MH i2c: E2 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: E2 03 00 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: E2 03 00 5D B3 00 90 00 84 [18:37:54]RAPDU: 90 00 [18:37:54]wFMCommunicate OK [18:37:54]wFMCommunicate request_size=255 [18:37:54]MH_SAM_APDU [18:37:54]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 9D 01 00 00 F4 03 04 00 87 3F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F7 FA 03 00 35 04 06 00 [18:37:54]Write to MH i2c: E2 02 01 5E B3 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 9D 01 00 00 F4 03 04 00 87 3F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F7 FA 03 00 35 04 06 00 00 00 23 [18:37:54]OFD Sender: No OFD packet to send [18:37:54]Write i2c OK [18:37:54]MH_I2C_Read... [18:37:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:55]Read from MH i2c: E2 [18:37:55]MH_I2C_Read... [18:37:55]Read from MH i2c: E2 03 00 [18:37:55]MH_I2C_Read... [18:37:55]Read from MH i2c: E2 03 00 5E B3 00 90 00 85 [18:37:55]RAPDU: 90 00 [18:37:55]wFMCommunicate OK [18:37:55]wFMCommunicate request_size=11 [18:37:55]MH_SAM_APDU [18:37:55]CAPDU: 80 0D 02 02 06 08 00 64 77 46 54 [18:37:55]Write to MH i2c: E2 0E 00 5F B3 80 0D 02 02 06 00 08 00 64 77 46 54 00 00 15 [18:37:55]Write i2c OK [18:37:55]MH_I2C_Read... [18:37:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:55]Read from MH i2c: E2 [18:37:55]MH_I2C_Read... [18:37:55]Read from MH i2c: E2 03 00 [18:37:55]MH_I2C_Read... [18:37:55]Read from MH i2c: E2 03 00 5F B3 00 90 00 86 [18:37:55]RAPDU: 90 00 [18:37:55]wFMCommunicate OK [18:37:55]wFMCommunicate request_size=4 [18:37:55]MH_SAM_APDU [18:37:55]CAPDU: 80 0D 03 02 [18:37:55]Write to MH i2c: E2 08 00 60 B3 80 0D 03 02 00 00 00 00 8E [18:37:55]Write i2c OK [18:37:55]MH_I2C_Read... [18:37:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:37:55]Read from MH i2c: E2 [18:37:55]MH_I2C_Read... [18:37:55]Read from MH i2c: E2 0B 00 [18:37:55]MH_I2C_Read... [18:37:55]Read from MH i2c: E2 0B 00 60 B3 00 69 73 2A 9A D3 5F D3 37 90 00 6B [18:37:55]RAPDU: 69 73 2A 9A D3 5F D3 37 90 00 [18:37:55]wFMCommunicate OK [18:37:55]SAM_PROTO_SignData done [18:37:55]FM_MakeSignedData done [18:37:55]CreateOFDProtocolMessage [18:37:55]wFMCommunicate request_size=4 [18:37:55]MH_SAM_APDU [18:37:55]CAPDU: 80 11 00 00 [18:37:55]Write to MH i2c: E2 08 00 61 B3 80 11 00 00 00 00 00 00 8E [18:37:55]Write i2c OK [18:37:55]MH_I2C_Read... [18:37:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:55]Read from MH i2c: E2 [18:37:55]MH_I2C_Read... [18:37:55]Read from MH i2c: E2 17 00 [18:37:55]MH_I2C_Read... [18:37:55]Read from MH i2c: E2 17 00 61 B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 DB [18:37:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:37:55]wFMCommunicate OK [18:37:55]CreateOFDProtocolMessage done [18:37:55]OFDSenderStorePacket 260855 [18:37:55]StoreOFDPacket docnum=260855 [18:37:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 44 D4 08 01 ED 92 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 9D 01 00 00 F4 03 04 00 87 3F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F7 FA 03 00 35 04 06 00 08 00 64 77 46 54 69 73 2A 9A D3 5F D3 37 [18:37:55]CheckFolder [18:37:55]dirname=/storage/ofd_packets [18:37:55]CheckFolder done [18:37:55]ProducePacketName [18:37:55]name=ofd_packets/00260855 [18:37:55]NVStorageSaveData ofd_packets/00260855 [18:37:55]File name is /storage/ofd_packets/00260855 [18:37:55]Write 302 bytes [18:37:55]NVStorageSaveData done [18:37:55]OFDSenderStorePacket done [18:37:55]KKMCreateOFDPacket done [18:37:55]NVStorageSaveData kkm_last_timestamp [18:37:55]File name is /storage/kkm_last_timestamp [18:37:55]Write 4 bytes [18:37:55]NVStorageSaveData done [18:37:55]ExternCall_PrintAddStr [18:37:55]wPrintStart [18:37:55]Write to MH i2c: 01 00 00 62 B3 15 [18:37:55]Write i2c OK [18:37:55]MH_I2C_Read... [18:37:55]Read from MH i2c: 01 [18:37:55]MH_I2C_Read... [18:37:55]Read from MH i2c: 01 07 00 [18:37:55]MH_I2C_Read... [18:37:55]Read from MH i2c: 01 07 00 62 B3 00 00 00 00 00 FF 0F 2A [18:37:55]RasterBufferAndPrint [18:37:55]line Счет N : (1)1036406 [18:37:55]line ИНН: 02508201610067 [18:37:55]line Контрольно-Кассовый Чек [18:37:55]line ПРОДАЖА [18:37:55]line ТРК (МРК, ГНК) : 33 [18:37:55]line Товар: 2710194210 [18:37:55]line ДТ(л)-К-4 [18:37:55]line 26.250 * 76.20 [18:37:55]line = 2000.25 [18:37:55]line НДС 12% НСП 1% [18:37:55]line > о реализуемом товаре [18:37:55]line ОКРУГЛЕНИЕ: -0.25 [18:37:55]line ИТОГО: 2000.00 [18:37:55]line Внесено: 2000.00 [18:37:55]line СДАЧА: 0.00 [18:37:55]line НСП 1% : 17.70 [18:37:55]line НДС 12% : 212.42 [18:37:55]line Наличными: 2000.00 [18:37:55]line Безнал.: 0.00 [18:37:55]line Место: АЗС № 94 "Партнер Нефть" [18:37:55]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:37:55]line СНО: Общий режим [18:37:55]line Чек 413 18.08.2024 18:37 [18:37:55]line Смена: 449 ФФД: 1.0 [18:37:55]line ЗНМ: 0300000099 [18:37:55]line РНМ: 0000000000091865 [18:37:55]line Версия ККМ: 001 [18:37:55]line ФМ: 0000000000871820 [18:37:55]line ФД: 260855 [18:37:55]line ФПД: 8797778560596 [18:37:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T183759&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260855&fm=8797778560596&tin=02508201610067®Number=0000000000091865&sum=200000 [18:37:55]OFD Sender: Processing packet 260855 [packets to send 192, broken 191] [18:37:55]ProducePacketName [18:37:55]name=ofd_packets/00260855 [18:37:55]OFD Sender: To server: pG, [18:37:55]CommunicateWithHost lk.salyk.kg:30040 [18:37:55]ConnectInit lk.salyk.kg [18:37:55]written 0, free lines is 4095 [18:37:55]Connected sock=7 [18:37: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 30 10 01 00 00 44 D4 08 01 ED 92 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 9D 01 00 00 F4 03 04 00 87 3F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F7 FA 03 00 35 04 06 00 08 00 64 77 46 54 69 73 2A 9A D3 5F D3 37 [18:37: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 30 4F 00 00 00 F1 DE 47 00 A8 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F7 FA 03 00 F4 03 04 00 DC E8 C1 66 B6 04 01 00 00 AB 2E D3 79 82 33 D7 4F [18:37:56]CommunicateWithHost err = 0 [18:37:56]CheckOFDResponse [18:37:56]1017 (14) - 77093643461234 [18:37:56]1041 (16) - 0000000000871820 [18:37:56]1040 (4) - 260855 [18:37:56]1012 (4) - 18.08.2024 12:28 [18:37:56]1206 (1) - 0 [18:37:56]OFD Sender: Remove packet 260855 [18:37:56]ProducePacketName [18:37:56]name=ofd_packets/00260855 [18:37:56]NVStorageDeleteData [18:37:56]Write to MH i2c: 01 00 00 8D B3 40 [18:37:56]Write i2c OK [18:37:56]MH_I2C_Read... [18:37:56]Read from MH i2c: 01 [18:37:56]MH_I2C_Read... [18:37:56]Read from MH i2c: 01 07 00 [18:37:56]MH_I2C_Read... [18:37:56]Read from MH i2c: 01 07 00 8D B3 00 00 00 00 00 78 0C CB [18:37:56]RasterBufferAndPrint [18:37:56]line [18:37:56]line [18:37:56]line [18:37:56]line [18:37:56]line [18:37:56]written 0, free lines is 3197 [18:37:56]MH_Cut [18:37:56]Write to MH i2c: D1 01 00 94 B3 01 19 [18:37:56]Write i2c OK [18:37:56]MH_I2C_Read... [18:37:56]Read from MH i2c: D1 [18:37:56]MH_I2C_Read... [18:37:56]Read from MH i2c: D1 01 00 [18:37:56]MH_I2C_Read... [18:37:56]Read from MH i2c: D1 01 00 94 B3 00 18 [18:37:56]Write to MH i2c: 01 00 00 95 B3 48 [18:37:56]Write i2c OK [18:37:56]MH_I2C_Read... [18:37:56]OFD Sender: No OFD packet to send [18:37:57]*** Cut start [18:37:57]*** Purtial cut [18:37:57]*** Stage 1: CUTSNS_PIN = 1 [18:37:59]Read from MH i2c: 01 [18:37:59]MH_I2C_Read... [18:37:59]*** Stop cut motor [18:37:59]*** Cut end [18:37:59]Read from MH i2c: 01 07 00 [18:37:59]MH_I2C_Read... [18:37:59]Read from MH i2c: 01 07 00 95 B3 00 00 00 00 00 FF 0F 5D [18:37:59]process_action close_receipt done [18:37:59]requested_data is exist [18:37:59]produce_requested_data [18:37:59]requested_item fm.sn is exist - process it [18:37:59]wFMCommunicate request_size=4 [18:37:59]MH_SAM_APDU [18:37:59]CAPDU: 80 11 00 00 [18:37:59]Write to MH i2c: E2 08 00 96 B3 80 11 00 00 00 00 00 00 C3 [18:37:59]Write i2c OK [18:37:59]MH_I2C_Read... [18:37:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:59]Read from MH i2c: E2 [18:37:59]MH_I2C_Read... [18:37:59]Read from MH i2c: E2 17 00 [18:37:59]MH_I2C_Read... [18:37:59]Read from MH i2c: E2 17 00 96 B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 10 [18:37:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:37:59]wFMCommunicate OK [18:37:59]requested_item fd.num is exist - process it [18:37:59]SAM_PROTO_GetFieldsCounters [18:37:59]wFMCommunicate request_size=4 [18:37:59]MH_SAM_APDU [18:37:59]CAPDU: 80 13 00 00 [18:37:59]Write to MH i2c: E2 08 00 97 B3 80 13 00 00 00 00 00 00 C6 [18:37:59]Write i2c OK [18:37:59]MH_I2C_Read... [18:37:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:37:59]Read from MH i2c: E2 [18:37:59]MH_I2C_Read... [18:37:59]Read from MH i2c: E2 62 00 [18:37:59]MH_I2C_Read... [18:37:59]Read from MH i2c: E2 62 00 97 B3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F7 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 9D 01 00 00 5E 04 04 00 9D 01 00 00 57 04 04 00 9E 01 00 00 19 04 04 00 00 00 00 00 90 00 75 [18:37: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F7 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 9D 01 00 00 5E 04 04 00 9D 01 00 00 57 04 04 00 9E 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:37:59]wFMCommunicate OK [18:37:59]SAM_PROTO_GetFieldsCounters done [18:37:59]requested_item shift.num is exist - process it [18:37:59]requested_item shift.opened is exist - process it [18:37:59]req_shift_opened [18:37:59]FM_GetShiftState [18:37:59]SAM_PROTO_GetShiftState [18:37:59]wFMCommunicate request_size=4 [18:37:59]MH_SAM_APDU [18:37:59]CAPDU: 80 13 01 00 [18:37:59]Write to MH i2c: E2 08 00 98 B3 80 13 01 00 00 00 00 00 C8 [18:37:59]Write i2c OK [18:37:59]MH_I2C_Read... [18:37:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:59]Read from MH i2c: E2 [18:37:59]MH_I2C_Read... [18:37:59]Read from MH i2c: E2 0E 00 [18:37:59]MH_I2C_Read... [18:37:59]Read from MH i2c: E2 0E 00 98 B3 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 05 [18:37:59]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:37:59]wFMCommunicate OK [18:37:59]SAM_PROTO_GetShiftState done [18:37:59]FM_GetShiftState done [18:37:59]req_shift_opened done [18:37:59]requested_item shift.open_date is exist - process it [18:37:59]req_shift_open_date [18:37:59]req_shift_open_date done [18:37:59]produce_requested_data done [18:37:59]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260855,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:37:59]process_action_free close_receipt [18:37:59]json_value_free [18:37:59]json_value_free done [18:37:59]process_json_proto returns [18:37:59]Send response to host [18:37:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260855,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:37:59]free response buf [18:37:59]execute_script done [18:37:59]execute_script returns [18:37:59]free content buf [18:37:59]Sock 9.Close socket [18:37:59]Sock 9.Thread stoped [18:38:01]OFD Sender: No OFD packet to send [18:38:06]OFD Sender: No OFD packet to send [18:38:11]OFD Sender: No OFD packet to send [18:38:16]OFD Sender: No OFD packet to send [18:38:21]OFD Sender: No OFD packet to send [18:38:26]OFD Sender: No OFD packet to send [18:38:31]OFD Sender: No OFD packet to send [18:38:36]OFD Sender: No OFD packet to send [18:38:41]OFD Sender: No OFD packet to send [18:38:46]OFD Sender: No OFD packet to send [18:38:51]OFD Sender: No OFD packet to send [18:38:55]accept exits with 10 [18:38:55]New connection [18:38:55]New thread 3066473828 created [18:38:55]Thread 3066617188 joined [18:38:55]Waiting for new connection... [18:38:55] Sock 10.Parse request [18:38:55]Sock 10.Check first char [18:38:55]Sock 10.First char is OK [18:38:55]request: POST /json_proto HTTP/1.0 [18:38:55]Method: POST [18:38:55]URL: /json_proto [18:38:55]Method is POST - this is cgi request [18:38:55]url: /json_proto [18:38:55]query_string will be loaded in cgi processing [18:38:55]execute_cgi json_proto POST (null) [18:38:55]execute_cgi path=json_proto method=POST [18:38:55]POST find Content-Length [18:38:55]Host: 172.17.55.133:8080 [18:38:55]Content-Length: 802 [18:38:55]Content-Type: application/json [18:38:55] [18:38:55]POST finish read [18:38:55]Found Content-Length = 802 [18:38:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 13.280, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 900.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:55]execute_script... [18:38:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 13.280, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 900.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:55]POST & json_proto [18:38:55]process_json_proto [18:38:55]json parsed OK: [18:38:55]protocol is kg_v1.0 [18:38:55]action value=close_receipt [18:38:55]process_action close_receipt [18:38:55]cmd_close_receipt [18:38:55]MH_GetDate [18:38:55]Write to MH i2c: F0 00 00 99 B3 3B [18:38:55]Write i2c OK [18:38:55]MH_I2C_Read... [18:38:55]Read from MH i2c: F0 [18:38:55]MH_I2C_Read... [18:38:55]Read from MH i2c: F0 09 00 [18:38:55]MH_I2C_Read... [18:38:55]Read from MH i2c: F0 09 00 99 B3 00 C5 3F C2 66 34 48 D8 65 29 [18:38:55]GetLastDocTimeStamp 1724006279 [18:38:55]current date 1724006341 [18:38:55]FM_GetShiftState [18:38:55]SAM_PROTO_GetShiftState [18:38:55]wFMCommunicate request_size=4 [18:38:55]MH_SAM_APDU [18:38:55]CAPDU: 80 13 01 00 [18:38:55]Write to MH i2c: E2 08 00 9A B3 80 13 01 00 00 00 00 00 CA [18:38:55]Write i2c OK [18:38:55]MH_I2C_Read... [18:38:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:55]Read from MH i2c: E2 [18:38:55]MH_I2C_Read... [18:38:55]Read from MH i2c: E2 0E 00 [18:38:55]MH_I2C_Read... [18:38:55]Read from MH i2c: E2 0E 00 9A B3 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 07 [18:38:55]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:38:55]wFMCommunicate OK [18:38:55]SAM_PROTO_GetShiftState done [18:38:55]FM_GetShiftState done [18:38:55]opened in 1723940556 [18:38:55]opened+sec_in_day 1724026956 [18:38:55]quantity*price = 90038 [18:38:55]sum+1 = 90039 [18:38:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 900.38 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 0.00 Безнал.: 900.38 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 414 18.08.2024 18:39 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260856 ФПД: 98591843811904 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T183901&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260856&fm=98591843811904&tin=02508201610067®Number=0000000000091865&sum=90038 [18:38:56]StoreToDocumentArchive [18:38:56]shift 449 fd 260856 [18:38:56]save to /storage/0449/doc_00260856 [18:38:56]save last doc name /storage/0449/doc_00260856 to /storage/kkm_last_doc_name [18:38:56]save OK [18:38:56]Clear old archive folders... [18:38:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:38:56]tlvbuf is 0035A8A0 [18:38:56]SAM_PROTO_ClearQueue [18:38:56]wFMCommunicate request_size=4 [18:38:56]MH_SAM_APDU [18:38:56]CAPDU: 80 09 00 00 [18:38:56]Write to MH i2c: E2 08 00 A7 B3 80 09 00 00 00 00 00 00 CC [18:38:56]Write i2c OK [18:38:56]MH_I2C_Read... [18:38:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:38:56]Read from MH i2c: E2 [18:38:56]MH_I2C_Read... [18:38:56]Read from MH i2c: E2 03 00 [18:38:56]MH_I2C_Read... [18:38:56]Read from MH i2c: E2 03 00 A7 B3 00 90 00 CE [18:38:56]RAPDU: 90 00 [18:38:56]wFMCommunicate OK [18:38:56]SAM_PROTO_ClearQueue done [18:38:56]KKMCreateOFDPacket [18:38:56]OFDProtocolAddRootSTLVToBuf [18:38:56]FM_MakeSignedData [18:38:56]FM_MakeSignedData [18:38:56]SAM_PROTO_SignData [18:38:56]wFMCommunicate request_size=4 [18:38:56]MH_SAM_APDU [18:38:56]CAPDU: 80 0D 01 02 [18:38:56]Write to MH i2c: E2 08 00 A8 B3 80 0D 01 02 00 00 00 00 D4 [18:38:56]Write i2c OK [18:38:56]MH_I2C_Read... [18:38:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:38:56]Read from MH i2c: E2 [18:38:56]MH_I2C_Read... [18:38:56]Read from MH i2c: E2 03 00 [18:38:56]MH_I2C_Read... [18:38:56]Read from MH i2c: E2 03 00 A8 B3 00 90 00 CF [18:38:56]RAPDU: 90 00 [18:38:56]wFMCommunicate OK [18:38:56]wFMCommunicate request_size=255 [18:38:56]MH_SAM_APDU [18:38:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 C5 3F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F8 FA 03 00 35 04 06 00 59 [18:38:56]Write to MH i2c: E2 02 01 A9 B3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 C5 3F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F8 FA 03 00 35 04 06 00 59 00 00 41 [18:38:56]Write i2c OK [18:38:56]MH_I2C_Read... [18:38:56]OFD Sender: No OFD packet to send [18:38:56]Read from MH i2c: E2 [18:38:56]MH_I2C_Read... [18:38:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:56]Read from MH i2c: E2 03 00 [18:38:56]MH_I2C_Read... [18:38:56]Read from MH i2c: E2 03 00 A9 B3 00 90 00 D0 [18:38:56]RAPDU: 90 00 [18:38:56]wFMCommunicate OK [18:38:56]wFMCommunicate request_size=10 [18:38:56]MH_SAM_APDU [18:38:56]CAPDU: 80 0D 02 02 05 AB 33 D4 02 40 [18:38:56]Write to MH i2c: E2 0D 00 AA B3 80 0D 02 02 05 00 AB 33 D4 02 40 00 00 D5 [18:38:56]Write i2c OK [18:38:56]MH_I2C_Read... [18:38:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:56]Read from MH i2c: E2 [18:38:56]MH_I2C_Read... [18:38:56]Read from MH i2c: E2 03 00 [18:38:56]MH_I2C_Read... [18:38:56]Read from MH i2c: E2 03 00 AA B3 00 90 00 D1 [18:38:56]RAPDU: 90 00 [18:38:56]wFMCommunicate OK [18:38:56]wFMCommunicate request_size=4 [18:38:56]MH_SAM_APDU [18:38:56]CAPDU: 80 0D 03 02 [18:38:56]Write to MH i2c: E2 08 00 AB B3 80 0D 03 02 00 00 00 00 D9 [18:38:56]Write i2c OK [18:38:56]MH_I2C_Read... [18:38:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:38:56]Read from MH i2c: E2 [18:38:56]MH_I2C_Read... [18:38:56]Read from MH i2c: E2 0B 00 [18:38:56]MH_I2C_Read... [18:38:56]Read from MH i2c: E2 0B 00 AB B3 00 AB C0 29 92 D6 C5 6E 2F 90 00 38 [18:38:56]RAPDU: AB C0 29 92 D6 C5 6E 2F 90 00 [18:38:56]wFMCommunicate OK [18:38:56]SAM_PROTO_SignData done [18:38:56]FM_MakeSignedData done [18:38:56]CreateOFDProtocolMessage [18:38:56]wFMCommunicate request_size=4 [18:38:56]MH_SAM_APDU [18:38:56]CAPDU: 80 11 00 00 [18:38:56]Write to MH i2c: E2 08 00 AC B3 80 11 00 00 00 00 00 00 D9 [18:38:56]Write i2c OK [18:38:56]MH_I2C_Read... [18:38:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:56]Read from MH i2c: E2 [18:38:56]MH_I2C_Read... [18:38:56]Read from MH i2c: E2 17 00 [18:38:56]MH_I2C_Read... [18:38:56]Read from MH i2c: E2 17 00 AC B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 26 [18:38:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:38:57]wFMCommunicate OK [18:38:57]CreateOFDProtocolMessage done [18:38:57]OFDSenderStorePacket 260856 [18:38:57]StoreOFDPacket docnum=260856 [18:38:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 11 EC 07 01 DD 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 C5 3F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F8 FA 03 00 35 04 06 00 59 AB 33 D4 02 40 AB C0 29 92 D6 C5 6E 2F [18:38:57]CheckFolder [18:38:57]dirname=/storage/ofd_packets [18:38:57]CheckFolder done [18:38:57]ProducePacketName [18:38:57]name=ofd_packets/00260856 [18:38:57]NVStorageSaveData ofd_packets/00260856 [18:38:57]File name is /storage/ofd_packets/00260856 [18:38:57]Write 301 bytes [18:38:57]NVStorageSaveData done [18:38:57]OFDSenderStorePacket done [18:38:57]KKMCreateOFDPacket done [18:38:57]NVStorageSaveData kkm_last_timestamp [18:38:57]File name is /storage/kkm_last_timestamp [18:38:57]Write 4 bytes [18:38:57]NVStorageSaveData done [18:38:57]ExternCall_PrintAddStr [18:38:57]wPrintStart [18:38:57]Write to MH i2c: 01 00 00 AD B3 60 [18:38:57]Write i2c OK [18:38:57]MH_I2C_Read... [18:38:57]Read from MH i2c: 01 [18:38:57]MH_I2C_Read... [18:38:57]Read from MH i2c: 01 07 00 [18:38:57]MH_I2C_Read... [18:38:57]Read from MH i2c: 01 07 00 AD B3 00 00 00 00 00 FF 0F 75 [18:38:57]RasterBufferAndPrint [18:38:57]line Счет N : (1)1036408 [18:38:57]line ИНН: 02508201610067 [18:38:57]line Контрольно-Кассовый Чек [18:38:57]line ПРОДАЖА [18:38:57]line ТРК (МРК, ГНК) : 42 [18:38:57]line Товар: 2710124130 [18:38:57]line Аи-92-К-5 [18:38:57]line 13.280 * 67.80 [18:38:57]line = 900.38 [18:38:57]line НДС 12% НСП 1% [18:38:57]line > о реализуемом товаре [18:38:57]line ИТОГО: 900.38 [18:38:57]line НСП 1% : 7.97 [18:38:57]line НДС 12% : 95.62 [18:38:57]line Наличными: 0.00 [18:38:57]line Безнал.: 900.38 [18:38:57]line Место: АЗС № 94 "Партнер Нефть" [18:38:57]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:38:57]line СНО: Общий режим [18:38:57]line Чек 414 18.08.2024 18:39 [18:38:57]line Смена: 449 ФФД: 1.0 [18:38:57]line ЗНМ: 0300000099 [18:38:57]line РНМ: 0000000000091865 [18:38:57]line Версия ККМ: 001 [18:38:57]line Платежная система: O! деньги [18:38:57]line ФМ: 0000000000871820 [18:38:57]line ФД: 260856 [18:38:57]line ФПД: 98591843811904 [18:38:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T183901&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260856&fm=98591843811904&tin=02508201610067®Number=0000000000091865&sum=90038 [18:38:57]OFD Sender: Processing packet 260856 [packets to send 192, broken 191] [18:38:57]ProducePacketName [18:38:57]name=ofd_packets/00260856 [18:38:57]OFD Sender: To server: pG, [18:38:57]CommunicateWithHost lk.salyk.kg:30040 [18:38:57]ConnectInit lk.salyk.kg [18:38:57]written 0, free lines is 4095 [18:38:57]Connected sock=9 [18:38: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 30 0F 01 00 00 11 EC 07 01 DD 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 C5 3F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F8 FA 03 00 35 04 06 00 59 AB 33 D4 02 40 AB C0 29 92 D6 C5 6E 2F [18:38: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 30 4F 00 00 00 08 0A 47 00 6D C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 F8 FA 03 00 F4 03 04 00 19 E9 C1 66 B6 04 01 00 00 ED C5 F8 6C E7 96 C2 A4 [18:38:57]CommunicateWithHost err = 0 [18:38:57]CheckOFDResponse [18:38:57]1017 (14) - 77093643461234 [18:38:57]1041 (16) - 0000000000871820 [18:38:57]1040 (4) - 260856 [18:38:57]1012 (4) - 18.08.2024 12:29 [18:38:57]1206 (1) - 0 [18:38:57]OFD Sender: Remove packet 260856 [18:38:57]ProducePacketName [18:38:57]name=ofd_packets/00260856 [18:38:57]NVStorageDeleteData [18:38:57]Write to MH i2c: 01 00 00 D7 B3 8A [18:38:57]Write i2c OK [18:38:57]MH_I2C_Read... [18:38:57]Read from MH i2c: 01 [18:38:57]MH_I2C_Read... [18:38:57]Read from MH i2c: 01 07 00 [18:38:57]MH_I2C_Read... [18:38:57]Read from MH i2c: 01 07 00 D7 B3 00 00 00 00 00 85 0C 22 [18:38:57]RasterBufferAndPrint [18:38:57]line [18:38:57]line [18:38:57]line [18:38:57]line [18:38:57]line [18:38:57]written 0, free lines is 3208 [18:38:57]MH_Cut [18:38:57]Write to MH i2c: D1 01 00 DE B3 01 63 [18:38:57]Write i2c OK [18:38:57]MH_I2C_Read... [18:38:57]Read from MH i2c: D1 [18:38:57]MH_I2C_Read... [18:38:57]Read from MH i2c: D1 01 00 [18:38:57]MH_I2C_Read... [18:38:57]Read from MH i2c: D1 01 00 DE B3 00 62 [18:38:57]Write to MH i2c: 01 00 00 DF B3 92 [18:38:57]Write i2c OK [18:38:57]MH_I2C_Read... [18:38:58]OFD Sender: No OFD packet to send [18:38:58]*** Cut start [18:38:58]*** Purtial cut [18:38:58]*** Stage 1: CUTSNS_PIN = 1 [18:39:00]Read from MH i2c: 01 [18:39:00]MH_I2C_Read... [18:39:00]*** Stop cut motor [18:39:00]*** Cut end [18:39:00]Read from MH i2c: 01 07 00 [18:39:00]MH_I2C_Read... [18:39:00]Read from MH i2c: 01 07 00 DF B3 00 00 00 00 00 FF 0F A7 [18:39:00]process_action close_receipt done [18:39:00]requested_data is exist [18:39:00]produce_requested_data [18:39:00]requested_item fm.sn is exist - process it [18:39:00]wFMCommunicate request_size=4 [18:39:00]MH_SAM_APDU [18:39:00]CAPDU: 80 11 00 00 [18:39:00]Write to MH i2c: E2 08 00 E0 B3 80 11 00 00 00 00 00 00 0D [18:39:00]Write i2c OK [18:39:00]MH_I2C_Read... [18:39:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:01]Read from MH i2c: E2 [18:39:01]MH_I2C_Read... [18:39:01]Read from MH i2c: E2 17 00 [18:39:01]MH_I2C_Read... [18:39:01]Read from MH i2c: E2 17 00 E0 B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 5A [18:39:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:39:01]wFMCommunicate OK [18:39:01]requested_item fd.num is exist - process it [18:39:01]SAM_PROTO_GetFieldsCounters [18:39:01]wFMCommunicate request_size=4 [18:39:01]MH_SAM_APDU [18:39:01]CAPDU: 80 13 00 00 [18:39:01]Write to MH i2c: E2 08 00 E1 B3 80 13 00 00 00 00 00 00 10 [18:39:01]Write i2c OK [18:39:01]MH_I2C_Read... [18:39:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:39:01]Read from MH i2c: E2 [18:39:01]MH_I2C_Read... [18:39:01]Read from MH i2c: E2 62 00 [18:39:01]MH_I2C_Read... [18:39:01]Read from MH i2c: E2 62 00 E1 B3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F8 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 9E 01 00 00 5E 04 04 00 9E 01 00 00 57 04 04 00 9F 01 00 00 19 04 04 00 00 00 00 00 90 00 C3 [18:39: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F8 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 9E 01 00 00 5E 04 04 00 9E 01 00 00 57 04 04 00 9F 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:39:01]wFMCommunicate OK [18:39:01]SAM_PROTO_GetFieldsCounters done [18:39:01]requested_item shift.num is exist - process it [18:39:01]requested_item shift.opened is exist - process it [18:39:01]req_shift_opened [18:39:01]FM_GetShiftState [18:39:01]SAM_PROTO_GetShiftState [18:39:01]wFMCommunicate request_size=4 [18:39:01]MH_SAM_APDU [18:39:01]CAPDU: 80 13 01 00 [18:39:01]Write to MH i2c: E2 08 00 E2 B3 80 13 01 00 00 00 00 00 12 [18:39:01]Write i2c OK [18:39:01]MH_I2C_Read... [18:39:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:01]Read from MH i2c: E2 [18:39:01]MH_I2C_Read... [18:39:01]Read from MH i2c: E2 0E 00 [18:39:01]MH_I2C_Read... [18:39:01]Read from MH i2c: E2 0E 00 E2 B3 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 4F [18:39:01]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:39:01]wFMCommunicate OK [18:39:01]SAM_PROTO_GetShiftState done [18:39:01]FM_GetShiftState done [18:39:01]req_shift_opened done [18:39:01]requested_item shift.open_date is exist - process it [18:39:01]req_shift_open_date [18:39:01]req_shift_open_date done [18:39:01]produce_requested_data done [18:39:01]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260856,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:39:01]process_action_free close_receipt [18:39:01]json_value_free [18:39:01]json_value_free done [18:39:01]process_json_proto returns [18:39:01]Send response to host [18:39:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260856,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:39:01]free response buf [18:39:01]execute_script done [18:39:01]execute_script returns [18:39:01]free content buf [18:39:01]Sock 10.Close socket [18:39:01]Sock 10.Thread stoped [18:39:03]OFD Sender: No OFD packet to send [18:39:08]OFD Sender: No OFD packet to send [18:39:13]OFD Sender: No OFD packet to send [18:39:17]accept exits with 7 [18:39:17]New connection [18:39:17]New thread 3066617188 created [18:39:17]Thread 3066473828 joined [18:39:17]Waiting for new connection... [18:39:17] Sock 7.Parse request [18:39:17]Sock 7.Check first char [18:39:17]Sock 7.First char is OK [18:39:17]request: POST /json_proto HTTP/1.0 [18:39:17]Method: POST [18:39:17]URL: /json_proto [18:39:17]Method is POST - this is cgi request [18:39:17]url: /json_proto [18:39:17]query_string will be loaded in cgi processing [18:39:17]execute_cgi json_proto POST (null) [18:39:17]execute_cgi path=json_proto method=POST [18:39:17]POST find Content-Length [18:39:17]Host: 172.17.55.133:8080 [18:39:17]Content-Length: 678 [18:39:17]Content-Type: application/json [18:39:17] [18:39:17]POST finish read [18:39:17]Found Content-Length = 678 [18:39:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:17]execute_script... [18: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)1036409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:17]POST & json_proto [18:39:17]process_json_proto [18:39:17]json parsed OK: [18:39:17]protocol is kg_v1.0 [18:39:17]action value=close_receipt [18:39:17]process_action close_receipt [18:39:17]cmd_close_receipt [18:39:17]MH_GetDate [18:39:17]Write to MH i2c: F0 00 00 E3 B3 85 [18:39:17]Write i2c OK [18:39:17]MH_I2C_Read... [18:39:17]Read from MH i2c: F0 [18:39:17]MH_I2C_Read... [18:39:17]Read from MH i2c: F0 09 00 [18:39:17]MH_I2C_Read... [18:39:17]Read from MH i2c: F0 09 00 E3 B3 00 DB 3F C2 66 34 48 D8 65 89 [18:39:17]GetLastDocTimeStamp 1724006341 [18:39:17]current date 1724006363 [18:39:17]FM_GetShiftState [18:39:17]SAM_PROTO_GetShiftState [18:39:17]wFMCommunicate request_size=4 [18:39:17]MH_SAM_APDU [18:39:17]CAPDU: 80 13 01 00 [18:39:17]Write to MH i2c: E2 08 00 E4 B3 80 13 01 00 00 00 00 00 14 [18:39:17]Write i2c OK [18:39:17]MH_I2C_Read... [18:39:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:17]Read from MH i2c: E2 [18:39:17]MH_I2C_Read... [18:39:17]Read from MH i2c: E2 0E 00 [18:39:17]MH_I2C_Read... [18:39:17]Read from MH i2c: E2 0E 00 E4 B3 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 51 [18:39:17]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:39:17]wFMCommunicate OK [18:39:17]SAM_PROTO_GetShiftState done [18:39:17]FM_GetShiftState done [18:39:17]opened in 1723940556 [18:39:17]opened+sec_in_day 1724026956 [18:39:17]quantity*price = 60003 [18:39:17]sum+1 = 60004 [18:39:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 415 18.08.2024 18:39 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260857 ФПД: 18396490289106 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T183923&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260857&fm=18396490289106&tin=02508201610067®Number=0000000000091865&sum=60000 [18:39:18]StoreToDocumentArchive [18:39:18]shift 449 fd 260857 [18:39:18]save to /storage/0449/doc_00260857 [18:39:18]save last doc name /storage/0449/doc_00260857 to /storage/kkm_last_doc_name [18:39:18]save OK [18:39:18]Clear old archive folders... [18:39:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:39:18]tlvbuf is 0055F650 [18:39:18]SAM_PROTO_ClearQueue [18:39:18]wFMCommunicate request_size=4 [18:39:18]MH_SAM_APDU [18:39:18]CAPDU: 80 09 00 00 [18:39:18]Write to MH i2c: E2 08 00 F1 B3 80 09 00 00 00 00 00 00 16 [18:39:18]Write i2c OK [18:39:18]MH_I2C_Read... [18:39:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:39:18]Read from MH i2c: E2 [18:39:18]MH_I2C_Read... [18:39:18]Read from MH i2c: E2 03 00 [18:39:18]MH_I2C_Read... [18:39:18]Read from MH i2c: E2 03 00 F1 B3 00 90 00 18 [18:39:18]RAPDU: 90 00 [18:39:18]wFMCommunicate OK [18:39:18]SAM_PROTO_ClearQueue done [18:39:18]KKMCreateOFDPacket [18:39:18]OFDProtocolAddRootSTLVToBuf [18:39:18]FM_MakeSignedData [18:39:18]FM_MakeSignedData [18:39:18]SAM_PROTO_SignData [18:39:18]wFMCommunicate request_size=4 [18:39:18]MH_SAM_APDU [18:39:18]CAPDU: 80 0D 01 02 [18:39:18]Write to MH i2c: E2 08 00 F2 B3 80 0D 01 02 00 00 00 00 1E [18:39:18]Write i2c OK [18:39:18]MH_I2C_Read... [18:39:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:39:18]Read from MH i2c: E2 [18:39:18]MH_I2C_Read... [18:39:18]Read from MH i2c: E2 03 00 [18:39:18]MH_I2C_Read... [18:39:18]Read from MH i2c: E2 03 00 F2 B3 00 90 00 19 [18:39:18]RAPDU: 90 00 [18:39:18]wFMCommunicate OK [18:39:18]wFMCommunicate request_size=255 [18:39:18]MH_SAM_APDU [18: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 01 00 00 F4 03 04 00 DB 3F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F9 FA 03 00 35 04 06 00 10 [18:39:18]Write to MH i2c: E2 02 01 F3 B3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 01 00 00 F4 03 04 00 DB 3F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F9 FA 03 00 35 04 06 00 10 00 00 0C [18:39:18]Write i2c OK [18:39:18]MH_I2C_Read... [18:39:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:18]Read from MH i2c: E2 [18:39:18]MH_I2C_Read... [18:39:18]Read from MH i2c: E2 03 00 [18:39:18]MH_I2C_Read... [18:39:18]Read from MH i2c: E2 03 00 F3 B3 00 90 00 1A [18:39:18]RAPDU: 90 00 [18:39:18]wFMCommunicate OK [18:39:18]wFMCommunicate request_size=10 [18:39:18]MH_SAM_APDU [18:39:18]CAPDU: 80 0D 02 02 05 BB 44 44 CF D2 [18:39:18]Write to MH i2c: E2 0D 00 F4 B3 80 0D 02 02 05 00 BB 44 44 CF D2 00 00 0F [18:39:18]Write i2c OK [18:39:18]MH_I2C_Read... [18:39:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:18]Read from MH i2c: E2 [18:39:18]MH_I2C_Read... [18:39:18]Read from MH i2c: E2 03 00 [18:39:18]MH_I2C_Read... [18:39:18]Read from MH i2c: E2 03 00 F4 B3 00 90 00 1B [18:39:18]RAPDU: 90 00 [18:39:18]wFMCommunicate OK [18:39:18]wFMCommunicate request_size=4 [18:39:18]MH_SAM_APDU [18:39:18]CAPDU: 80 0D 03 02 [18:39:18]Write to MH i2c: E2 08 00 F5 B3 80 0D 03 02 00 00 00 00 23 [18:39:18]Write i2c OK [18:39:18]MH_I2C_Read... [18:39:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:39:18]Read from MH i2c: E2 [18:39:18]MH_I2C_Read... [18:39:18]Read from MH i2c: E2 0B 00 [18:39:18]MH_I2C_Read... [18:39:18]Read from MH i2c: E2 0B 00 F5 B3 00 CF 42 65 2E E4 5A 26 F8 90 00 24 [18:39:18]RAPDU: CF 42 65 2E E4 5A 26 F8 90 00 [18:39:18]wFMCommunicate OK [18:39:18]SAM_PROTO_SignData done [18:39:18]FM_MakeSignedData done [18:39:18]CreateOFDProtocolMessage [18:39:18]wFMCommunicate request_size=4 [18:39:18]MH_SAM_APDU [18:39:18]CAPDU: 80 11 00 00 [18:39:18]Write to MH i2c: E2 08 00 F6 B3 80 11 00 00 00 00 00 00 23 [18:39:18]Write i2c OK [18:39:18]MH_I2C_Read... [18:39:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:18]Read from MH i2c: E2 [18:39:18]MH_I2C_Read... [18:39:18]Read from MH i2c: E2 17 00 [18:39:18]MH_I2C_Read... [18:39:18]Read from MH i2c: E2 17 00 F6 B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 70 [18:39:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:39:18]wFMCommunicate OK [18:39:18]CreateOFDProtocolMessage done [18:39:18]OFDSenderStorePacket 260857 [18:39:18]StoreOFDPacket docnum=260857 [18: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 30 0F 01 00 00 B1 16 07 01 89 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 01 00 00 F4 03 04 00 DB 3F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F9 FA 03 00 35 04 06 00 10 BB 44 44 CF D2 CF 42 65 2E E4 5A 26 F8 [18:39:18]CheckFolder [18:39:18]dirname=/storage/ofd_packets [18:39:18]CheckFolder done [18:39:18]ProducePacketName [18:39:18]name=ofd_packets/00260857 [18:39:18]NVStorageSaveData ofd_packets/00260857 [18:39:18]File name is /storage/ofd_packets/00260857 [18:39:18]Write 301 bytes [18:39:18]NVStorageSaveData done [18:39:18]OFDSenderStorePacket done [18:39:18]KKMCreateOFDPacket done [18:39:18]NVStorageSaveData kkm_last_timestamp [18:39:18]File name is /storage/kkm_last_timestamp [18:39:18]Write 4 bytes [18:39:18]NVStorageSaveData done [18:39:18]ExternCall_PrintAddStr [18:39:18]wPrintStart [18:39:18]Write to MH i2c: 01 00 00 F7 B3 AA [18:39:18]Write i2c OK [18:39:18]MH_I2C_Read... [18:39:18]Read from MH i2c: 01 [18:39:18]MH_I2C_Read... [18:39:18]Read from MH i2c: 01 07 00 [18:39:18]MH_I2C_Read... [18:39:18]Read from MH i2c: 01 07 00 F7 B3 00 00 00 00 00 FF 0F BF [18:39:18]RasterBufferAndPrint [18:39:18]line Счет N : (1)1036409 [18:39:18]line ИНН: 02508201610067 [18:39:18]line Контрольно-Кассовый Чек [18:39:18]line ПРОДАЖА [18:39:18]line ТРК (МРК, ГНК) : 22 [18:39:18]line Товар: 2710124130 [18:39:18]line Аи-92-К-5 [18:39:18]line 8.850 * 67.80 [18:39:18]line = 600.03 [18:39:18]line НДС 12% НСП 1% [18:39:18]line > о реализуемом товаре [18:39:18]line ОКРУГЛЕНИЕ: -0.03 [18:39:18]line ИТОГО: 600.00 [18:39:18]line Внесено: 600.00 [18:39:18]line СДАЧА: 0.00 [18:39:18]line НСП 1% : 5.31 [18:39:18]line НДС 12% : 63.72 [18:39:18]line Наличными: 600.00 [18:39:18]line Безнал.: 0.00 [18:39:18]line Место: АЗС № 94 "Партнер Нефть" [18:39:18]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:39:18]line СНО: Общий режим [18:39:18]line Чек 415 18.08.2024 18:39 [18:39:18]line Смена: 449 ФФД: 1.0 [18:39:18]line ЗНМ: 0300000099 [18:39:18]line РНМ: 0000000000091865 [18:39:18]line Версия ККМ: 001 [18:39:18]line ФМ: 0000000000871820 [18:39:18]line ФД: 260857 [18:39:18]line ФПД: 18396490289106 [18:39:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T183923&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260857&fm=18396490289106&tin=02508201610067®Number=0000000000091865&sum=60000 [18:39:19]written 0, free lines is 4095 [18:39:19]OFD Sender: Processing packet 260857 [packets to send 192, broken 191] [18:39:19]ProducePacketName [18:39:19]name=ofd_packets/00260857 [18:39:19]OFD Sender: To server: pG, [18:39:19]CommunicateWithHost lk.salyk.kg:30040 [18:39:19]ConnectInit lk.salyk.kg [18:39:19]Connected sock=10 [18: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 30 0F 01 00 00 B1 16 07 01 89 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 01 00 00 F4 03 04 00 DB 3F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 F9 FA 03 00 35 04 06 00 10 BB 44 44 CF D2 CF 42 65 2E E4 5A 26 F8 [18: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 30 4F 00 00 00 8E BC 47 00 CD 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 30 10 04 04 00 F9 FA 03 00 F4 03 04 00 2F E9 C1 66 B6 04 01 00 00 C3 06 D1 10 35 03 B7 DF [18:39:19]CommunicateWithHost err = 0 [18:39:19]CheckOFDResponse [18:39:19]1017 (14) - 77093643461234 [18:39:19]1041 (16) - 0000000000871820 [18:39:19]1040 (4) - 260857 [18:39:19]1012 (4) - 18.08.2024 12:29 [18:39:19]1206 (1) - 0 [18:39:19]OFD Sender: Remove packet 260857 [18:39:19]ProducePacketName [18:39:19]name=ofd_packets/00260857 [18:39:19]NVStorageDeleteData [18:39:19]Write to MH i2c: 01 00 00 22 B4 D6 [18:39:19]Write i2c OK [18:39:19]MH_I2C_Read... [18:39:19]Read from MH i2c: 01 [18:39:19]MH_I2C_Read... [18:39:19]Read from MH i2c: 01 07 00 [18:39:19]MH_I2C_Read... [18:39:19]Read from MH i2c: 01 07 00 22 B4 00 00 00 00 00 71 0C 5A [18:39:19]RasterBufferAndPrint [18:39:19]line [18:39:19]line [18:39:19]line [18:39:19]line [18:39:19]line [18:39:19]written 0, free lines is 3187 [18:39:19]MH_Cut [18:39:19]Write to MH i2c: D1 01 00 29 B4 01 AF [18:39:19]Write i2c OK [18:39:19]MH_I2C_Read... [18:39:19]Read from MH i2c: D1 [18:39:19]MH_I2C_Read... [18:39:19]Read from MH i2c: D1 01 00 [18:39:19]MH_I2C_Read... [18:39:19]Read from MH i2c: D1 01 00 29 B4 00 AE [18:39:19]Write to MH i2c: 01 00 00 2A B4 DE [18:39:19]Write i2c OK [18:39:19]MH_I2C_Read... [18:39:20]OFD Sender: No OFD packet to send [18:39:20]*** Cut start [18:39:20]*** Purtial cut [18:39:20]*** Stage 1: CUTSNS_PIN = 1 [18:39:22]Read from MH i2c: 01 [18:39:22]MH_I2C_Read... [18:39:22]*** Stop cut motor [18:39:22]*** Cut end [18:39:22]Read from MH i2c: 01 07 00 [18:39:22]MH_I2C_Read... [18:39:22]Read from MH i2c: 01 07 00 2A B4 00 00 00 00 00 FF 0F F3 [18:39:22]process_action close_receipt done [18:39:22]requested_data is exist [18:39:22]produce_requested_data [18:39:22]requested_item fm.sn is exist - process it [18:39:22]wFMCommunicate request_size=4 [18:39:22]MH_SAM_APDU [18:39:22]CAPDU: 80 11 00 00 [18:39:22]Write to MH i2c: E2 08 00 2B B4 80 11 00 00 00 00 00 00 59 [18:39:22]Write i2c OK [18:39:22]MH_I2C_Read... [18:39:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:22]Read from MH i2c: E2 [18:39:22]MH_I2C_Read... [18:39:22]Read from MH i2c: E2 17 00 [18:39:22]MH_I2C_Read... [18:39:22]Read from MH i2c: E2 17 00 2B B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A6 [18:39:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:39:22]wFMCommunicate OK [18:39:22]requested_item fd.num is exist - process it [18:39:22]SAM_PROTO_GetFieldsCounters [18:39:22]wFMCommunicate request_size=4 [18:39:22]MH_SAM_APDU [18:39:22]CAPDU: 80 13 00 00 [18:39:22]Write to MH i2c: E2 08 00 2C B4 80 13 00 00 00 00 00 00 5C [18:39:22]Write i2c OK [18:39:22]MH_I2C_Read... [18:39:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:39:23]Read from MH i2c: E2 [18:39:23]MH_I2C_Read... [18:39:23]Read from MH i2c: E2 62 00 [18:39:23]MH_I2C_Read... [18:39:23]Read from MH i2c: E2 62 00 2C B4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F9 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 9F 01 00 00 5E 04 04 00 9F 01 00 00 57 04 04 00 A0 01 00 00 19 04 04 00 00 00 00 00 90 00 13 [18:39: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 F9 FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 9F 01 00 00 5E 04 04 00 9F 01 00 00 57 04 04 00 A0 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:39:23]wFMCommunicate OK [18:39:23]SAM_PROTO_GetFieldsCounters done [18:39:23]requested_item shift.num is exist - process it [18:39:23]requested_item shift.opened is exist - process it [18:39:23]req_shift_opened [18:39:23]FM_GetShiftState [18:39:23]SAM_PROTO_GetShiftState [18:39:23]wFMCommunicate request_size=4 [18:39:23]MH_SAM_APDU [18:39:23]CAPDU: 80 13 01 00 [18:39:23]Write to MH i2c: E2 08 00 2D B4 80 13 01 00 00 00 00 00 5E [18:39:23]Write i2c OK [18:39:23]MH_I2C_Read... [18:39:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:23]Read from MH i2c: E2 [18:39:23]MH_I2C_Read... [18:39:23]Read from MH i2c: E2 0E 00 [18:39:23]MH_I2C_Read... [18:39:23]Read from MH i2c: E2 0E 00 2D B4 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 9B [18:39:23]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:39:23]wFMCommunicate OK [18:39:23]SAM_PROTO_GetShiftState done [18:39:23]FM_GetShiftState done [18:39:23]req_shift_opened done [18:39:23]requested_item shift.open_date is exist - process it [18:39:23]req_shift_open_date [18:39:23]req_shift_open_date done [18:39:23]produce_requested_data done [18:39:23]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260857,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:39:23]process_action_free close_receipt [18:39:23]json_value_free [18:39:23]json_value_free done [18:39:23]process_json_proto returns [18:39:23]Send response to host [18:39:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260857,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:39:23]free response buf [18:39:23]execute_script done [18:39:23]execute_script returns [18:39:23]free content buf [18:39:23]Sock 7.Close socket [18:39:23]Sock 7.Thread stoped [18:39:25]OFD Sender: No OFD packet to send [18:39:30]OFD Sender: No OFD packet to send [18:39:35]OFD Sender: No OFD packet to send [18:39:40]OFD Sender: No OFD packet to send [18:39:45]OFD Sender: No OFD packet to send [18:39:50]OFD Sender: No OFD packet to send [18:39:55]OFD Sender: No OFD packet to send [18:40:00]OFD Sender: No OFD packet to send [18:40:05]OFD Sender: No OFD packet to send [18:40:10]OFD Sender: No OFD packet to send [18:40:15]OFD Sender: No OFD packet to send [18:40:20]OFD Sender: No OFD packet to send [18:40:25]OFD Sender: No OFD packet to send [18:40:30]OFD Sender: No OFD packet to send [18:40:35]OFD Sender: No OFD packet to send [18:40:37]accept exits with 9 [18:40:37]New connection [18:40:37]New thread 3066473828 created [18:40:37]Thread 3066617188 joined [18:40:37]Waiting for new connection... [18:40:37] Sock 9.Parse request [18:40:37]Sock 9.Check first char [18:40:37]Sock 9.First char is OK [18:40:37]request: POST /json_proto HTTP/1.0 [18:40:37]Method: POST [18:40:37]URL: /json_proto [18:40:37]Method is POST - this is cgi request [18:40:37]url: /json_proto [18:40:37]query_string will be loaded in cgi processing [18:40:37]execute_cgi json_proto POST (null) [18:40:37]execute_cgi path=json_proto method=POST [18:40:37]POST find Content-Length [18:40:37]Host: 172.17.55.133:8080 [18:40:37]Content-Length: 806 [18:40:37]Content-Type: application/json [18:40:37] [18:40:37]POST finish read [18:40:37]Found Content-Length = 806 [18:40:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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\u000A4011779", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:37]execute_script... [18:40: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)1036410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "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\u000A4011779", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:37]POST & json_proto [18:40:37]process_json_proto [18:40:37]json parsed OK: [18:40:37]protocol is kg_v1.0 [18:40:37]action value=close_receipt [18:40:37]process_action close_receipt [18:40:37]cmd_close_receipt [18:40:37]MH_GetDate [18:40:37]Write to MH i2c: F0 00 00 2E B4 D1 [18:40:37]Write i2c OK [18:40:37]MH_I2C_Read... [18:40:37]Read from MH i2c: F0 [18:40:37]MH_I2C_Read... [18:40:37]Read from MH i2c: F0 09 00 [18:40:37]MH_I2C_Read... [18:40:37]Read from MH i2c: F0 09 00 2E B4 00 2B 40 C2 66 34 48 D8 65 26 [18:40:37]GetLastDocTimeStamp 1724006363 [18:40:37]current date 1724006443 [18:40:37]FM_GetShiftState [18:40:37]SAM_PROTO_GetShiftState [18:40:37]wFMCommunicate request_size=4 [18:40:37]MH_SAM_APDU [18:40:37]CAPDU: 80 13 01 00 [18:40:37]Write to MH i2c: E2 08 00 2F B4 80 13 01 00 00 00 00 00 60 [18:40:37]Write i2c OK [18:40:37]MH_I2C_Read... [18:40:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:37]Read from MH i2c: E2 [18:40:37]MH_I2C_Read... [18:40:37]Read from MH i2c: E2 0E 00 [18:40:37]MH_I2C_Read... [18:40:37]Read from MH i2c: E2 0E 00 2F B4 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 9D [18:40:37]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:40:37]wFMCommunicate OK [18:40:37]SAM_PROTO_GetShiftState done [18:40:37]FM_GetShiftState done [18:40:37]opened in 1723940556 [18:40:37]opened+sec_in_day 1724026956 [18:40:37]quantity*price = 0 [18:40:37]sum+1 = 1 [18:40:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 416 18.08.2024 18:40 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: Топливные Талоны 4011779 ФМ: 0000000000871820 ФД: 260858 ФПД: 128713148606416 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T184043&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260858&fm=128713148606416&tin=02508201610067®Number=0000000000091865&sum=0 [18:40:38]StoreToDocumentArchive [18:40:38]shift 449 fd 260858 [18:40:38]save to /storage/0449/doc_00260858 [18:40:38]save last doc name /storage/0449/doc_00260858 to /storage/kkm_last_doc_name [18:40:38]save OK [18:40:38]Clear old archive folders... [18:40:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:40:38]tlvbuf is 00382F50 [18:40:38]SAM_PROTO_ClearQueue [18:40:38]wFMCommunicate request_size=4 [18:40:38]MH_SAM_APDU [18:40:38]CAPDU: 80 09 00 00 [18:40:38]Write to MH i2c: E2 08 00 3C B4 80 09 00 00 00 00 00 00 62 [18:40:38]Write i2c OK [18:40:38]MH_I2C_Read... [18:40:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:40:38]Read from MH i2c: E2 [18:40:38]MH_I2C_Read... [18:40:38]Read from MH i2c: E2 03 00 [18:40:38]MH_I2C_Read... [18:40:38]Read from MH i2c: E2 03 00 3C B4 00 90 00 64 [18:40:38]RAPDU: 90 00 [18:40:38]wFMCommunicate OK [18:40:38]SAM_PROTO_ClearQueue done [18:40:38]KKMCreateOFDPacket [18:40:38]OFDProtocolAddRootSTLVToBuf [18:40:38]FM_MakeSignedData [18:40:38]FM_MakeSignedData [18:40:38]SAM_PROTO_SignData [18:40:38]wFMCommunicate request_size=4 [18:40:38]MH_SAM_APDU [18:40:38]CAPDU: 80 0D 01 02 [18:40:38]Write to MH i2c: E2 08 00 3D B4 80 0D 01 02 00 00 00 00 6A [18:40:38]Write i2c OK [18:40:38]MH_I2C_Read... [18:40:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:40:38]Read from MH i2c: E2 [18:40:38]MH_I2C_Read... [18:40:38]Read from MH i2c: E2 03 00 [18:40:38]MH_I2C_Read... [18:40:38]Read from MH i2c: E2 03 00 3D B4 00 90 00 65 [18:40:38]RAPDU: 90 00 [18:40:38]wFMCommunicate OK [18:40:38]wFMCommunicate request_size=255 [18:40:38]MH_SAM_APDU [18:40:38]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 A0 01 00 00 F4 03 04 00 2B 40 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FA FA 03 00 35 04 06 00 [18:40:38]Write to MH i2c: E2 02 01 3E B4 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 A0 01 00 00 F4 03 04 00 2B 40 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FA FA 03 00 35 04 06 00 00 00 D0 [18:40:38]Write i2c OK [18:40:38]MH_I2C_Read... [18:40:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:38]Read from MH i2c: E2 [18:40:38]MH_I2C_Read... [18:40:38]Read from MH i2c: E2 03 00 [18:40:38]MH_I2C_Read... [18:40:38]Read from MH i2c: E2 03 00 3E B4 00 90 00 66 [18:40:38]RAPDU: 90 00 [18:40:38]wFMCommunicate OK [18:40:38]wFMCommunicate request_size=11 [18:40:38]MH_SAM_APDU [18:40:38]CAPDU: 80 0D 02 02 06 75 10 5D 80 27 D0 [18:40:38]Write to MH i2c: E2 0E 00 3F B4 80 0D 02 02 06 00 75 10 5D 80 27 D0 00 00 D2 [18:40:38]Write i2c OK [18:40:38]MH_I2C_Read... [18:40:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:39]Read from MH i2c: E2 [18:40:39]MH_I2C_Read... [18:40:39]Read from MH i2c: E2 03 00 [18:40:39]MH_I2C_Read... [18:40:39]Read from MH i2c: E2 03 00 3F B4 00 90 00 67 [18:40:39]RAPDU: 90 00 [18:40:39]wFMCommunicate OK [18:40:39]wFMCommunicate request_size=4 [18:40:39]MH_SAM_APDU [18:40:39]CAPDU: 80 0D 03 02 [18:40:39]Write to MH i2c: E2 08 00 40 B4 80 0D 03 02 00 00 00 00 6F [18:40:39]Write i2c OK [18:40:39]MH_I2C_Read... [18:40:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:40:39]Read from MH i2c: E2 [18:40:39]MH_I2C_Read... [18:40:39]Read from MH i2c: E2 0B 00 [18:40:39]MH_I2C_Read... [18:40:39]Read from MH i2c: E2 0B 00 40 B4 00 FB 3B 49 F6 95 D6 BC 64 90 00 70 [18:40:39]RAPDU: FB 3B 49 F6 95 D6 BC 64 90 00 [18:40:39]wFMCommunicate OK [18:40:39]SAM_PROTO_SignData done [18:40:39]FM_MakeSignedData done [18:40:39]CreateOFDProtocolMessage [18:40:39]wFMCommunicate request_size=4 [18:40:39]MH_SAM_APDU [18:40:39]CAPDU: 80 11 00 00 [18:40:39]Write to MH i2c: E2 08 00 41 B4 80 11 00 00 00 00 00 00 6F [18:40:39]Write i2c OK [18:40:39]MH_I2C_Read... [18:40:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:39]Read from MH i2c: E2 [18:40:39]MH_I2C_Read... [18:40:39]Read from MH i2c: E2 17 00 [18:40:39]MH_I2C_Read... [18:40:39]Read from MH i2c: E2 17 00 41 B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 BC [18:40:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:40:39]wFMCommunicate OK [18:40:39]CreateOFDProtocolMessage done [18:40:39]OFDSenderStorePacket 260858 [18:40:39]StoreOFDPacket docnum=260858 [18:40:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 44 CC 08 01 5E 15 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 A0 01 00 00 F4 03 04 00 2B 40 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FA FA 03 00 35 04 06 00 75 10 5D 80 27 D0 FB 3B 49 F6 95 D6 BC 64 [18:40:39]CheckFolder [18:40:39]dirname=/storage/ofd_packets [18:40:39]CheckFolder done [18:40:39]ProducePacketName [18:40:39]name=ofd_packets/00260858 [18:40:39]NVStorageSaveData ofd_packets/00260858 [18:40:39]File name is /storage/ofd_packets/00260858 [18:40:39]Write 302 bytes [18:40:39]NVStorageSaveData done [18:40:39]OFDSenderStorePacket done [18:40:39]KKMCreateOFDPacket done [18:40:39]NVStorageSaveData kkm_last_timestamp [18:40:39]File name is /storage/kkm_last_timestamp [18:40:39]Write 4 bytes [18:40:39]NVStorageSaveData done [18:40:39]ExternCall_PrintAddStr [18:40:39]wPrintStart [18:40:39]Write to MH i2c: 01 00 00 42 B4 F6 [18:40:39]Write i2c OK [18:40:39]MH_I2C_Read... [18:40:39]Read from MH i2c: 01 [18:40:39]MH_I2C_Read... [18:40:39]Read from MH i2c: 01 07 00 [18:40:39]MH_I2C_Read... [18:40:39]Read from MH i2c: 01 07 00 42 B4 00 00 00 00 00 FF 0F 0B [18:40:39]RasterBufferAndPrint [18:40:39]line Счет N : (1)1036410 [18:40:39]line ИНН: 02508201610067 [18:40:39]line Контрольно-Кассовый Чек [18:40:39]line ПРОДАЖА [18:40:39]line ТРК (МРК, ГНК) : 33 [18:40:39]line Товар: 2710194210 [18:40:39]line ДТ(л)-К-4 [18:40:39]line 10.000 * 0.00 [18:40:39]line = 0.00 [18:40:39]line НДС 12% НСП 1% [18:40:39]line > о реализуемом товаре [18:40:39]line ИТОГО: 0.00 [18:40:39]line НСП 1% : 0.00 [18:40:39]line НДС 12% : 0.00 [18:40:39]line Наличными: 0.00 [18:40:39]line Безнал.: 0.00 [18:40:39]line Место: АЗС № 94 "Партнер Нефть" [18:40:39]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:40:39]line СНО: Общий режим [18:40:39]line Чек 416 18.08.2024 18:40 [18:40:39]line Смена: 449 ФФД: 1.0 [18:40:39]line ЗНМ: 0300000099 [18:40:39]line РНМ: 0000000000091865 [18:40:39]line Версия ККМ: 001 [18:40:39]line Талоны: Топливные Талоны [18:40:39]line 4011779 [18:40:39]line ФМ: 0000000000871820 [18:40:39]line ФД: 260858 [18:40:39]line ФПД: 128713148606416 [18:40:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T184043&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260858&fm=128713148606416&tin=02508201610067®Number=0000000000091865&sum=0 [18:40:39]written 0, free lines is 4095 [18:40:39]OFD Sender: Processing packet 260858 [packets to send 192, broken 191] [18:40:39]ProducePacketName [18:40:39]name=ofd_packets/00260858 [18:40:39]OFD Sender: To server: pG, [18:40:39]CommunicateWithHost lk.salyk.kg:30040 [18:40:39]ConnectInit lk.salyk.kg [18:40:39]Connected sock=10 [18:40: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 30 10 01 00 00 44 CC 08 01 5E 15 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 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 A0 01 00 00 F4 03 04 00 2B 40 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FA FA 03 00 35 04 06 00 75 10 5D 80 27 D0 FB 3B 49 F6 95 D6 BC 64 [18:40: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 30 4F 00 00 00 CD 82 47 00 C8 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 30 10 04 04 00 FA FA 03 00 F4 03 04 00 7F E9 C1 66 B6 04 01 00 00 C9 E3 89 25 CA E2 2D F4 [18:40:39]CommunicateWithHost err = 0 [18:40:39]CheckOFDResponse [18:40:39]1017 (14) - 77093643461234 [18:40:39]1041 (16) - 0000000000871820 [18:40:39]1040 (4) - 260858 [18:40:39]1012 (4) - 18.08.2024 12:30 [18:40:39]1206 (1) - 0 [18:40:39]OFD Sender: Remove packet 260858 [18:40:39]ProducePacketName [18:40:39]name=ofd_packets/00260858 [18:40:39]NVStorageDeleteData [18:40:39]Write to MH i2c: 01 00 00 6C B4 20 [18:40:39]Write i2c OK [18:40:39]MH_I2C_Read... [18:40:39]Read from MH i2c: 01 [18:40:39]MH_I2C_Read... [18:40:39]Read from MH i2c: 01 07 00 [18:40:39]MH_I2C_Read... [18:40:39]Read from MH i2c: 01 07 00 6C B4 00 00 00 00 00 96 0C C9 [18:40:39]RasterBufferAndPrint [18:40:39]line [18:40:39]line [18:40:39]line [18:40:39]line [18:40:39]line [18:40:39]written 0, free lines is 3226 [18:40:39]MH_Cut [18:40:39]Write to MH i2c: D1 01 00 73 B4 01 F9 [18:40:39]Write i2c OK [18:40:39]MH_I2C_Read... [18:40:39]Read from MH i2c: D1 [18:40:39]MH_I2C_Read... [18:40:39]Read from MH i2c: D1 01 00 [18:40:39]MH_I2C_Read... [18:40:39]Read from MH i2c: D1 01 00 73 B4 00 F8 [18:40:39]Write to MH i2c: 01 00 00 74 B4 28 [18:40:39]Write i2c OK [18:40:39]MH_I2C_Read... [18:40:40]OFD Sender: No OFD packet to send [18:40:40]*** Cut start [18:40:40]*** Purtial cut [18:40:40]*** Stage 1: CUTSNS_PIN = 1 [18:40:42]Read from MH i2c: 01 [18:40:43]MH_I2C_Read... [18:40:43]*** Stop cut motor [18:40:43]*** Cut end [18:40:43]Read from MH i2c: 01 07 00 [18:40:43]MH_I2C_Read... [18:40:43]Read from MH i2c: 01 07 00 74 B4 00 00 00 00 00 FF 0F 3D [18:40:43]process_action close_receipt done [18:40:43]requested_data is exist [18:40:43]produce_requested_data [18:40:43]requested_item fm.sn is exist - process it [18:40:43]wFMCommunicate request_size=4 [18:40:43]MH_SAM_APDU [18:40:43]CAPDU: 80 11 00 00 [18:40:43]Write to MH i2c: E2 08 00 75 B4 80 11 00 00 00 00 00 00 A3 [18:40:43]Write i2c OK [18:40:43]MH_I2C_Read... [18:40:43]Read from MH i2c: E2 [18:40:43]MH_I2C_Read... [18:40:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:43]Read from MH i2c: E2 17 00 [18:40:43]MH_I2C_Read... [18:40:43]Read from MH i2c: E2 17 00 75 B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F0 [18:40:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:40:43]wFMCommunicate OK [18:40:43]requested_item fd.num is exist - process it [18:40:43]SAM_PROTO_GetFieldsCounters [18:40:43]wFMCommunicate request_size=4 [18:40:43]MH_SAM_APDU [18:40:43]CAPDU: 80 13 00 00 [18:40:43]Write to MH i2c: E2 08 00 76 B4 80 13 00 00 00 00 00 00 A6 [18:40:43]Write i2c OK [18:40:43]MH_I2C_Read... [18:40:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:40:43]Read from MH i2c: E2 [18:40:43]MH_I2C_Read... [18:40:43]Read from MH i2c: E2 62 00 [18:40:43]MH_I2C_Read... [18:40:43]Read from MH i2c: E2 62 00 76 B4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 FA FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A0 01 00 00 5E 04 04 00 A0 01 00 00 57 04 04 00 A1 01 00 00 19 04 04 00 00 00 00 00 90 00 61 [18:40: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 FA FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A0 01 00 00 5E 04 04 00 A0 01 00 00 57 04 04 00 A1 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:40:43]wFMCommunicate OK [18:40:43]SAM_PROTO_GetFieldsCounters done [18:40:43]requested_item shift.num is exist - process it [18:40:43]requested_item shift.opened is exist - process it [18:40:43]req_shift_opened [18:40:43]FM_GetShiftState [18:40:43]SAM_PROTO_GetShiftState [18:40:43]wFMCommunicate request_size=4 [18:40:43]MH_SAM_APDU [18:40:43]CAPDU: 80 13 01 00 [18:40:43]Write to MH i2c: E2 08 00 77 B4 80 13 01 00 00 00 00 00 A8 [18:40:43]Write i2c OK [18:40:43]MH_I2C_Read... [18:40:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:43]Read from MH i2c: E2 [18:40:43]MH_I2C_Read... [18:40:43]Read from MH i2c: E2 0E 00 [18:40:43]MH_I2C_Read... [18:40:43]Read from MH i2c: E2 0E 00 77 B4 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E5 [18:40:43]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:40:43]wFMCommunicate OK [18:40:43]SAM_PROTO_GetShiftState done [18:40:43]FM_GetShiftState done [18:40:43]req_shift_opened done [18:40:43]requested_item shift.open_date is exist - process it [18:40:43]req_shift_open_date [18:40:43]req_shift_open_date done [18:40:43]produce_requested_data done [18:40:43]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260858,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:40:43]process_action_free close_receipt [18:40:43]json_value_free [18:40:43]json_value_free done [18:40:43]process_json_proto returns [18:40:43]Send response to host [18:40:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260858,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:40:43]free response buf [18:40:43]execute_script done [18:40:43]execute_script returns [18:40:43]free content buf [18:40:43]Sock 9.Close socket [18:40:43]Sock 9.Thread stoped [18:40:45]OFD Sender: No OFD packet to send [18:40:48]accept exits with 7 [18:40:48]New connection [18:40:48]New thread 3066617188 created [18:40:48]Thread 3066473828 joined [18:40:48]Waiting for new connection... [18:40:48] Sock 7.Parse request [18:40:48]Sock 7.Check first char [18:40:48]Sock 7.First char is OK [18:40:48]request: POST /json_proto HTTP/1.0 [18:40:48]Method: POST [18:40:48]URL: /json_proto [18:40:48]Method is POST - this is cgi request [18:40:48]url: /json_proto [18:40:48]query_string will be loaded in cgi processing [18:40:48]execute_cgi json_proto POST (null) [18:40:48]execute_cgi path=json_proto method=POST [18:40:48]POST find Content-Length [18:40:48]Host: 172.17.55.133:8080 [18:40:48]Content-Length: 683 [18:40:48]Content-Type: application/json [18:40:48] [18:40:48]POST finish read [18:40:48]Found Content-Length = 683 [18:40:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:40:48]execute_script... [18:40:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:40:48]POST & json_proto [18:40:48]process_json_proto [18:40:48]json parsed OK: [18:40:48]protocol is kg_v1.0 [18:40:48]action value=close_receipt [18:40:48]process_action close_receipt [18:40:48]cmd_close_receipt [18:40:48]MH_GetDate [18:40:48]Write to MH i2c: F0 00 00 78 B4 1B [18:40:48]Write i2c OK [18:40:48]MH_I2C_Read... [18:40:48]Read from MH i2c: F0 [18:40:48]MH_I2C_Read... [18:40:48]Read from MH i2c: F0 09 00 [18:40:48]MH_I2C_Read... [18:40:48]Read from MH i2c: F0 09 00 78 B4 00 36 40 C2 66 34 48 D8 65 7B [18:40:48]GetLastDocTimeStamp 1724006443 [18:40:48]current date 1724006454 [18:40:48]FM_GetShiftState [18:40:48]SAM_PROTO_GetShiftState [18:40:48]wFMCommunicate request_size=4 [18:40:48]MH_SAM_APDU [18:40:48]CAPDU: 80 13 01 00 [18:40:48]Write to MH i2c: E2 08 00 79 B4 80 13 01 00 00 00 00 00 AA [18:40:48]Write i2c OK [18:40:48]MH_I2C_Read... [18:40:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:48]Read from MH i2c: E2 [18:40:48]MH_I2C_Read... [18:40:48]Read from MH i2c: E2 0E 00 [18:40:48]MH_I2C_Read... [18:40:48]Read from MH i2c: E2 0E 00 79 B4 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E7 [18:40:48]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:40:48]wFMCommunicate OK [18:40:48]SAM_PROTO_GetShiftState done [18:40:48]FM_GetShiftState done [18:40:48]opened in 1723940556 [18:40:48]opened+sec_in_day 1724026956 [18:40:48]quantity*price = 100005 [18:40:48]sum+1 = 100006 [18:40:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 417 18.08.2024 18:40 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260859 ФПД: 132577700322118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T184054&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260859&fm=132577700322118&tin=02508201610067®Number=0000000000091865&sum=100000 [18:40:49]StoreToDocumentArchive [18:40:49]shift 449 fd 260859 [18:40:49]save to /storage/0449/doc_00260859 [18:40:49]save last doc name /storage/0449/doc_00260859 to /storage/kkm_last_doc_name [18:40:49]save OK [18:40:49]Clear old archive folders... [18:40:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:40:49]tlvbuf is 0033C080 [18:40:49]SAM_PROTO_ClearQueue [18:40:49]wFMCommunicate request_size=4 [18:40:49]MH_SAM_APDU [18:40:49]CAPDU: 80 09 00 00 [18:40:49]Write to MH i2c: E2 08 00 86 B4 80 09 00 00 00 00 00 00 AC [18:40:49]Write i2c OK [18:40:49]MH_I2C_Read... [18:40:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:40:49]Read from MH i2c: E2 [18:40:49]MH_I2C_Read... [18:40:49]Read from MH i2c: E2 03 00 [18:40:49]MH_I2C_Read... [18:40:49]Read from MH i2c: E2 03 00 86 B4 00 90 00 AE [18:40:49]RAPDU: 90 00 [18:40:49]wFMCommunicate OK [18:40:49]SAM_PROTO_ClearQueue done [18:40:49]KKMCreateOFDPacket [18:40:49]OFDProtocolAddRootSTLVToBuf [18:40:49]FM_MakeSignedData [18:40:49]FM_MakeSignedData [18:40:49]SAM_PROTO_SignData [18:40:49]wFMCommunicate request_size=4 [18:40:49]MH_SAM_APDU [18:40:49]CAPDU: 80 0D 01 02 [18:40:49]Write to MH i2c: E2 08 00 87 B4 80 0D 01 02 00 00 00 00 B4 [18:40:49]Write i2c OK [18:40:49]MH_I2C_Read... [18:40:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:40:49]Read from MH i2c: E2 [18:40:49]MH_I2C_Read... [18:40:49]Read from MH i2c: E2 03 00 [18:40:49]MH_I2C_Read... [18:40:49]Read from MH i2c: E2 03 00 87 B4 00 90 00 AF [18:40:49]RAPDU: 90 00 [18:40:49]wFMCommunicate OK [18:40:49]wFMCommunicate request_size=255 [18:40:49]MH_SAM_APDU [18:40:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 01 00 00 F4 03 04 00 36 40 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FB FA 03 00 35 04 06 00 78 [18:40:49]Write to MH i2c: E2 02 01 88 B4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 01 00 00 F4 03 04 00 36 40 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FB FA 03 00 35 04 06 00 78 00 00 32 [18:40:49]Write i2c OK [18:40:49]MH_I2C_Read... [18:40:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:50]Read from MH i2c: E2 [18:40:50]MH_I2C_Read... [18:40:50]Read from MH i2c: E2 03 00 [18:40:50]MH_I2C_Read... [18:40:50]Read from MH i2c: E2 03 00 88 B4 00 90 00 B0 [18:40:50]RAPDU: 90 00 [18:40:50]wFMCommunicate OK [18:40:50]wFMCommunicate request_size=10 [18:40:50]MH_SAM_APDU [18:40:50]CAPDU: 80 0D 02 02 05 94 26 BB 9B 46 [18:40:50]Write to MH i2c: E2 0D 00 89 B4 80 0D 02 02 05 00 94 26 BB 9B 46 00 00 17 [18:40:50]Write i2c OK [18:40:50]MH_I2C_Read... [18:40:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:50]Read from MH i2c: E2 [18:40:50]MH_I2C_Read... [18:40:50]Read from MH i2c: E2 03 00 [18:40:50]MH_I2C_Read... [18:40:50]Read from MH i2c: E2 03 00 89 B4 00 90 00 B1 [18:40:50]RAPDU: 90 00 [18:40:50]wFMCommunicate OK [18:40:50]wFMCommunicate request_size=4 [18:40:50]MH_SAM_APDU [18:40:50]CAPDU: 80 0D 03 02 [18:40:50]Write to MH i2c: E2 08 00 8A B4 80 0D 03 02 00 00 00 00 B9 [18:40:50]Write i2c OK [18:40:50]MH_I2C_Read... [18:40:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:40:50]Read from MH i2c: E2 [18:40:50]MH_I2C_Read... [18:40:50]Read from MH i2c: E2 0B 00 [18:40:50]MH_I2C_Read... [18:40:50]Read from MH i2c: E2 0B 00 8A B4 00 91 7E B1 1D E9 03 7E 81 90 00 82 [18:40:50]RAPDU: 91 7E B1 1D E9 03 7E 81 90 00 [18:40:50]wFMCommunicate OK [18:40:50]SAM_PROTO_SignData done [18:40:50]FM_MakeSignedData done [18:40:50]CreateOFDProtocolMessage [18:40:50]wFMCommunicate request_size=4 [18:40:50]MH_SAM_APDU [18:40:50]CAPDU: 80 11 00 00 [18:40:50]Write to MH i2c: E2 08 00 8B B4 80 11 00 00 00 00 00 00 B9 [18:40:50]Write i2c OK [18:40:50]MH_I2C_Read... [18:40:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:50]Read from MH i2c: E2 [18:40:50]MH_I2C_Read... [18:40:50]Read from MH i2c: E2 17 00 [18:40:50]MH_I2C_Read... [18:40:50]Read from MH i2c: E2 17 00 8B B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 06 [18:40:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:40:50]wFMCommunicate OK [18:40:50]CreateOFDProtocolMessage done [18:40:50]OFDSenderStorePacket 260859 [18:40:50]StoreOFDPacket docnum=260859 [18:40:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 CE F0 07 01 B2 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 01 00 00 F4 03 04 00 36 40 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FB FA 03 00 35 04 06 00 78 94 26 BB 9B 46 91 7E B1 1D E9 03 7E 81 [18:40:50]CheckFolder [18:40:50]dirname=/storage/ofd_packets [18:40:50]CheckFolder done [18:40:50]ProducePacketName [18:40:50]name=ofd_packets/00260859 [18:40:50]NVStorageSaveData ofd_packets/00260859 [18:40:50]File name is /storage/ofd_packets/00260859 [18:40:50]Write 301 bytes [18:40:50]NVStorageSaveData done [18:40:50]OFDSenderStorePacket done [18:40:50]KKMCreateOFDPacket done [18:40:50]NVStorageSaveData kkm_last_timestamp [18:40:50]File name is /storage/kkm_last_timestamp [18:40:50]Write 4 bytes [18:40:50]NVStorageSaveData done [18:40:50]ExternCall_PrintAddStr [18:40:50]wPrintStart [18:40:50]Write to MH i2c: 01 00 00 8C B4 40 [18:40:50]Write i2c OK [18:40:50]MH_I2C_Read... [18:40:50]Read from MH i2c: 01 [18:40:50]MH_I2C_Read... [18:40:50]Read from MH i2c: 01 07 00 [18:40:50]MH_I2C_Read... [18:40:50]Read from MH i2c: 01 07 00 8C B4 00 00 00 00 00 FF 0F 55 [18:40:50]RasterBufferAndPrint [18:40:50]line Счет N : (1)1036411 [18:40:50]line ИНН: 02508201610067 [18:40:50]line Контрольно-Кассовый Чек [18:40:50]line ПРОДАЖА [18:40:50]line ТРК (МРК, ГНК) : 12 [18:40:50]line Товар: 2710124130 [18:40:50]line Аи-92-К-5 [18:40:50]line 14.750 * 67.80 [18:40:50]line = 1000.05 [18:40:50]line НДС 12% НСП 1% [18:40:50]line > о реализуемом товаре [18:40:50]line ОКРУГЛЕНИЕ: -0.05 [18:40:50]line ИТОГО: 1000.00 [18:40:50]line Внесено: 1000.00 [18:40:50]line СДАЧА: 0.00 [18:40:50]line НСП 1% : 8.85 [18:40:50]line НДС 12% : 106.20 [18:40:50]line Наличными: 1000.00 [18:40:50]line Безнал.: 0.00 [18:40:50]line Место: АЗС № 94 "Партнер Нефть" [18:40:50]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:40:50]line СНО: Общий режим [18:40:50]line Чек 417 18.08.2024 18:40 [18:40:50]line Смена: 449 ФФД: 1.0 [18:40:50]line ЗНМ: 0300000099 [18:40:50]line РНМ: 0000000000091865 [18:40:50]line Версия ККМ: 001 [18:40:50]line ФМ: 0000000000871820 [18:40:50]line ФД: 260859 [18:40:50]line ФПД: 132577700322118 [18:40:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T184054&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260859&fm=132577700322118&tin=02508201610067®Number=0000000000091865&sum=100000 [18:40:50]written 0, free lines is 4095 [18:40:50]OFD Sender: Processing packet 260859 [packets to send 192, broken 191] [18:40:50]ProducePacketName [18:40:50]name=ofd_packets/00260859 [18:40:50]OFD Sender: To server: pG, [18:40:50]CommunicateWithHost lk.salyk.kg:30040 [18:40:50]ConnectInit lk.salyk.kg [18:40:50]Connected sock=10 [18:40: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 30 0F 01 00 00 CE F0 07 01 B2 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 01 00 00 F4 03 04 00 36 40 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FB FA 03 00 35 04 06 00 78 94 26 BB 9B 46 91 7E B1 1D E9 03 7E 81 [18:40: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 30 4F 00 00 00 A4 55 47 00 42 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 30 10 04 04 00 FB FA 03 00 F4 03 04 00 8A E9 C1 66 B6 04 01 00 00 0B EA 59 17 E2 EE E3 36 [18:40:50]CommunicateWithHost err = 0 [18:40:50]CheckOFDResponse [18:40:50]1017 (14) - 77093643461234 [18:40:50]1041 (16) - 0000000000871820 [18:40:50]1040 (4) - 260859 [18:40:50]1012 (4) - 18.08.2024 12:31 [18:40:50]1206 (1) - 0 [18:40:50]OFD Sender: Remove packet 260859 [18:40:50]ProducePacketName [18:40:50]name=ofd_packets/00260859 [18:40:50]NVStorageDeleteData [18:40:50]Write to MH i2c: 01 00 00 B7 B4 6B [18:40:50]Write i2c OK [18:40:50]MH_I2C_Read... [18:40:50]Read from MH i2c: 01 [18:40:50]MH_I2C_Read... [18:40:50]Read from MH i2c: 01 07 00 [18:40:50]MH_I2C_Read... [18:40:50]Read from MH i2c: 01 07 00 B7 B4 00 00 00 00 00 76 0C F4 [18:40:50]RasterBufferAndPrint [18:40:50]line [18:40:50]line [18:40:50]line [18:40:50]line [18:40:50]line [18:40:50]written 0, free lines is 3195 [18:40:50]MH_Cut [18:40:50]Write to MH i2c: D1 01 00 BE B4 01 44 [18:40:50]Write i2c OK [18:40:50]MH_I2C_Read... [18:40:50]Read from MH i2c: D1 [18:40:50]MH_I2C_Read... [18:40:50]Read from MH i2c: D1 01 00 [18:40:50]MH_I2C_Read... [18:40:50]Read from MH i2c: D1 01 00 BE B4 00 43 [18:40:50]Write to MH i2c: 01 00 00 BF B4 73 [18:40:50]Write i2c OK [18:40:50]MH_I2C_Read... [18:40:51]OFD Sender: No OFD packet to send [18:40:51]*** Cut start [18:40:51]*** Purtial cut [18:40:51]*** Stage 1: CUTSNS_PIN = 1 [18:40:53]Read from MH i2c: 01 [18:40:53]MH_I2C_Read... [18:40:53]*** Stop cut motor [18:40:53]*** Cut end [18:40:53]Read from MH i2c: 01 07 00 [18:40:53]MH_I2C_Read... [18:40:53]Read from MH i2c: 01 07 00 BF B4 00 00 00 00 00 FF 0F 88 [18:40:53]process_action close_receipt done [18:40:53]requested_data is exist [18:40:53]produce_requested_data [18:40:53]requested_item fm.sn is exist - process it [18:40:53]wFMCommunicate request_size=4 [18:40:53]MH_SAM_APDU [18:40:53]CAPDU: 80 11 00 00 [18:40:53]Write to MH i2c: E2 08 00 C0 B4 80 11 00 00 00 00 00 00 EE [18:40:53]Write i2c OK [18:40:53]MH_I2C_Read... [18:40:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:53]Read from MH i2c: E2 [18:40:53]MH_I2C_Read... [18:40:53]Read from MH i2c: E2 17 00 [18:40:53]MH_I2C_Read... [18:40:53]Read from MH i2c: E2 17 00 C0 B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 3B [18:40:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:40:53]wFMCommunicate OK [18:40:53]requested_item fd.num is exist - process it [18:40:53]SAM_PROTO_GetFieldsCounters [18:40:53]wFMCommunicate request_size=4 [18:40:53]MH_SAM_APDU [18:40:53]CAPDU: 80 13 00 00 [18:40:53]Write to MH i2c: E2 08 00 C1 B4 80 13 00 00 00 00 00 00 F1 [18:40:53]Write i2c OK [18:40:53]MH_I2C_Read... [18:40:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:40:54]Read from MH i2c: E2 [18:40:54]MH_I2C_Read... [18:40:54]Read from MH i2c: E2 62 00 [18:40:54]MH_I2C_Read... [18:40:54]Read from MH i2c: E2 62 00 C1 B4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 FB FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A1 01 00 00 5E 04 04 00 A1 01 00 00 57 04 04 00 A2 01 00 00 19 04 04 00 00 00 00 00 90 00 B0 [18:40: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 FB FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A1 01 00 00 5E 04 04 00 A1 01 00 00 57 04 04 00 A2 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:40:54]wFMCommunicate OK [18:40:54]SAM_PROTO_GetFieldsCounters done [18:40:54]requested_item shift.num is exist - process it [18:40:54]requested_item shift.opened is exist - process it [18:40:54]req_shift_opened [18:40:54]FM_GetShiftState [18:40:54]SAM_PROTO_GetShiftState [18:40:54]wFMCommunicate request_size=4 [18:40:54]MH_SAM_APDU [18:40:54]CAPDU: 80 13 01 00 [18:40:54]Write to MH i2c: E2 08 00 C2 B4 80 13 01 00 00 00 00 00 F3 [18:40:54]Write i2c OK [18:40:54]MH_I2C_Read... [18:40:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:54]Read from MH i2c: E2 [18:40:54]MH_I2C_Read... [18:40:54]Read from MH i2c: E2 0E 00 [18:40:54]MH_I2C_Read... [18:40:54]Read from MH i2c: E2 0E 00 C2 B4 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 30 [18:40:54]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:40:54]wFMCommunicate OK [18:40:54]SAM_PROTO_GetShiftState done [18:40:54]FM_GetShiftState done [18:40:54]req_shift_opened done [18:40:54]requested_item shift.open_date is exist - process it [18:40:54]req_shift_open_date [18:40:54]req_shift_open_date done [18:40:54]produce_requested_data done [18:40:54]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260859,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:40:54]process_action_free close_receipt [18:40:54]json_value_free [18:40:54]json_value_free done [18:40:54]process_json_proto returns [18:40:54]Send response to host [18:40:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260859,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:40:54]free response buf [18:40:54]execute_script done [18:40:54]execute_script returns [18:40:54]free content buf [18:40:54]Sock 7.Close socket [18:40:54]Sock 7.Thread stoped [18:40:56]OFD Sender: No OFD packet to send [18:41:01]OFD Sender: No OFD packet to send [18:41:06]OFD Sender: No OFD packet to send [18:41:11]OFD Sender: No OFD packet to send [18:41:16]OFD Sender: No OFD packet to send [18:41:21]OFD Sender: No OFD packet to send [18:41:22]accept exits with 9 [18:41:22]New connection [18:41:22]New thread 3066473828 created [18:41:22]Thread 3066617188 joined [18:41:22]Waiting for new connection... [18:41:22] Sock 9.Parse request [18:41:22]Sock 9.Check first char [18:41:22]Sock 9.First char is OK [18:41:22]request: POST /json_proto HTTP/1.0 [18:41:22]Method: POST [18:41:22]URL: /json_proto [18:41:22]Method is POST - this is cgi request [18:41:22]url: /json_proto [18:41:22]query_string will be loaded in cgi processing [18:41:22]execute_cgi json_proto POST (null) [18:41:22]execute_cgi path=json_proto method=POST [18:41:22]POST find Content-Length [18:41:22]Host: 172.17.55.133:8080 [18:41:22]Content-Length: 683 [18:41:22]Content-Type: application/json [18:41:22] [18:41:22]POST finish read [18:41:22]Found Content-Length = 683 [18:41:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 3.130, "sum" : 238.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 238.00, "total" : 238.00, "payments": [ { "type": 0, "sum" : 238.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:41:22]execute_script... [18: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)1036412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 3.130, "sum" : 238.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 238.00, "total" : 238.00, "payments": [ { "type": 0, "sum" : 238.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:41:22]POST & json_proto [18:41:22]process_json_proto [18:41:22]json parsed OK: [18:41:22]protocol is kg_v1.0 [18:41:22]action value=close_receipt [18:41:22]process_action close_receipt [18:41:22]cmd_close_receipt [18:41:22]MH_GetDate [18:41:22]Write to MH i2c: F0 00 00 C3 B4 66 [18:41:22]Write i2c OK [18:41:22]MH_I2C_Read... [18:41:22]Read from MH i2c: F0 [18:41:22]MH_I2C_Read... [18:41:22]Read from MH i2c: F0 09 00 [18:41:22]MH_I2C_Read... [18:41:22]Read from MH i2c: F0 09 00 C3 B4 00 59 40 C2 66 34 48 D8 65 E9 [18:41:22]GetLastDocTimeStamp 1724006454 [18:41:22]current date 1724006489 [18:41:22]FM_GetShiftState [18:41:22]SAM_PROTO_GetShiftState [18:41:22]wFMCommunicate request_size=4 [18:41:22]MH_SAM_APDU [18:41:22]CAPDU: 80 13 01 00 [18:41:22]Write to MH i2c: E2 08 00 C4 B4 80 13 01 00 00 00 00 00 F5 [18:41:22]Write i2c OK [18:41:22]MH_I2C_Read... [18:41:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:23]Read from MH i2c: E2 [18:41:23]MH_I2C_Read... [18:41:23]Read from MH i2c: E2 0E 00 [18:41:23]MH_I2C_Read... [18:41:23]Read from MH i2c: E2 0E 00 C4 B4 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 32 [18:41:23]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:41:23]wFMCommunicate OK [18:41:23]SAM_PROTO_GetShiftState done [18:41:23]FM_GetShiftState done [18:41:23]opened in 1723940556 [18:41:23]opened+sec_in_day 1724026956 [18:41:23]quantity*price = 23850 [18:41:23]sum+1 = 23852 [18:41:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 238.00 Внесено: 238.00 СДАЧА: 0.00 НСП 1% : 2.11 НДС 12% : 25.33 Наличными: 238.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 418 18.08.2024 18:41 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260860 ФПД: 169878663189529 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T184129&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260860&fm=169878663189529&tin=02508201610067®Number=0000000000091865&sum=23800 [18:41:24]StoreToDocumentArchive [18:41:24]shift 449 fd 260860 [18:41:24]save to /storage/0449/doc_00260860 [18:41:24]save last doc name /storage/0449/doc_00260860 to /storage/kkm_last_doc_name [18:41:24]save OK [18:41:24]Clear old archive folders... [18:41:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:41:24]tlvbuf is 0041F9A0 [18:41:24]SAM_PROTO_ClearQueue [18:41:24]wFMCommunicate request_size=4 [18:41:24]MH_SAM_APDU [18:41:24]CAPDU: 80 09 00 00 [18:41:24]Write to MH i2c: E2 08 00 D1 B4 80 09 00 00 00 00 00 00 F7 [18:41:24]Write i2c OK [18:41:24]MH_I2C_Read... [18:41:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:41:24]Read from MH i2c: E2 [18:41:24]MH_I2C_Read... [18:41:24]Read from MH i2c: E2 03 00 [18:41:24]MH_I2C_Read... [18:41:24]Read from MH i2c: E2 03 00 D1 B4 00 90 00 F9 [18:41:24]RAPDU: 90 00 [18:41:24]wFMCommunicate OK [18:41:24]SAM_PROTO_ClearQueue done [18:41:24]KKMCreateOFDPacket [18:41:24]OFDProtocolAddRootSTLVToBuf [18:41:24]FM_MakeSignedData [18:41:24]FM_MakeSignedData [18:41:24]SAM_PROTO_SignData [18:41:24]wFMCommunicate request_size=4 [18:41:24]MH_SAM_APDU [18:41:24]CAPDU: 80 0D 01 02 [18:41:24]Write to MH i2c: E2 08 00 D2 B4 80 0D 01 02 00 00 00 00 FF [18:41:24]Write i2c OK [18:41:24]MH_I2C_Read... [18:41:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:41:24]Read from MH i2c: E2 [18:41:24]MH_I2C_Read... [18:41:24]Read from MH i2c: E2 03 00 [18:41:24]MH_I2C_Read... [18:41:24]Read from MH i2c: E2 03 00 D2 B4 00 90 00 FA [18:41:24]RAPDU: 90 00 [18:41:24]wFMCommunicate OK [18:41:24]wFMCommunicate request_size=255 [18:41:24]MH_SAM_APDU [18:41:24]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 3A 0C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2B 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 09 00 00 00 00 07 04 06 00 F8 5C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 01 00 00 F4 03 04 00 59 40 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FC FA 03 00 35 04 06 00 [18:41:24]Write to MH i2c: E2 02 01 D3 B4 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 3A 0C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2B 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 09 00 00 00 00 07 04 06 00 F8 5C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 01 00 00 F4 03 04 00 59 40 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FC FA 03 00 35 04 06 00 00 00 78 [18:41:24]Write i2c OK [18:41:24]MH_I2C_Read... [18:41:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:24]Read from MH i2c: E2 [18:41:24]MH_I2C_Read... [18:41:24]Read from MH i2c: E2 03 00 [18:41:24]MH_I2C_Read... [18:41:24]Read from MH i2c: E2 03 00 D3 B4 00 90 00 FB [18:41:24]RAPDU: 90 00 [18:41:24]wFMCommunicate OK [18:41:24]wFMCommunicate request_size=11 [18:41:24]MH_SAM_APDU [18:41:24]CAPDU: 80 0D 02 02 06 9A 80 F5 5F D4 19 [18:41:24]Write to MH i2c: E2 0E 00 D4 B4 80 0D 02 02 06 00 9A 80 F5 5F D4 19 00 00 69 [18:41:24]Write i2c OK [18:41:24]MH_I2C_Read... [18:41:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:24]Read from MH i2c: E2 [18:41:24]MH_I2C_Read... [18:41:24]Read from MH i2c: E2 03 00 [18:41:24]MH_I2C_Read... [18:41:24]Read from MH i2c: E2 03 00 D4 B4 00 90 00 FC [18:41:24]RAPDU: 90 00 [18:41:24]wFMCommunicate OK [18:41:24]wFMCommunicate request_size=4 [18:41:24]MH_SAM_APDU [18:41:24]CAPDU: 80 0D 03 02 [18:41:24]Write to MH i2c: E2 08 00 D5 B4 80 0D 03 02 00 00 00 00 04 [18:41:24]Write i2c OK [18:41:24]MH_I2C_Read... [18:41:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:41:24]Read from MH i2c: E2 [18:41:24]MH_I2C_Read... [18:41:24]Read from MH i2c: E2 0B 00 [18:41:24]MH_I2C_Read... [18:41:24]Read from MH i2c: E2 0B 00 D5 B4 00 1C 4E AE 7E D9 A5 6A 54 90 00 D7 [18:41:24]RAPDU: 1C 4E AE 7E D9 A5 6A 54 90 00 [18:41:24]wFMCommunicate OK [18:41:24]SAM_PROTO_SignData done [18:41:24]FM_MakeSignedData done [18:41:24]CreateOFDProtocolMessage [18:41:24]wFMCommunicate request_size=4 [18:41:24]MH_SAM_APDU [18:41:24]CAPDU: 80 11 00 00 [18:41:24]Write to MH i2c: E2 08 00 D6 B4 80 11 00 00 00 00 00 00 04 [18:41:24]Write i2c OK [18:41:24]MH_I2C_Read... [18:41:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:24]Read from MH i2c: E2 [18:41:24]MH_I2C_Read... [18:41:24]Read from MH i2c: E2 17 00 [18:41:24]MH_I2C_Read... [18:41:24]Read from MH i2c: E2 17 00 D6 B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 51 [18:41:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:41:24]wFMCommunicate OK [18:41:24]CreateOFDProtocolMessage done [18:41:24]OFDSenderStorePacket 260860 [18:41:24]StoreOFDPacket docnum=260860 [18:41:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 96 0A 08 01 3B 56 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 3A 0C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2B 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 09 00 00 00 00 07 04 06 00 F8 5C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 01 00 00 F4 03 04 00 59 40 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FC FA 03 00 35 04 06 00 9A 80 F5 5F D4 19 1C 4E AE 7E D9 A5 6A 54 [18:41:24]CheckFolder [18:41:24]dirname=/storage/ofd_packets [18:41:24]CheckFolder done [18:41:24]ProducePacketName [18:41:24]name=ofd_packets/00260860 [18:41:24]NVStorageSaveData ofd_packets/00260860 [18:41:24]File name is /storage/ofd_packets/00260860 [18:41:24]Write 302 bytes [18:41:24]NVStorageSaveData done [18:41:24]OFDSenderStorePacket done [18:41:24]KKMCreateOFDPacket done [18:41:24]NVStorageSaveData kkm_last_timestamp [18:41:24]File name is /storage/kkm_last_timestamp [18:41:24]Write 4 bytes [18:41:24]NVStorageSaveData done [18:41:24]ExternCall_PrintAddStr [18:41:24]wPrintStart [18:41:24]Write to MH i2c: 01 00 00 D7 B4 8B [18:41:24]Write i2c OK [18:41:24]MH_I2C_Read... [18:41:24]Read from MH i2c: 01 [18:41:24]MH_I2C_Read... [18:41:24]Read from MH i2c: 01 07 00 [18:41:24]MH_I2C_Read... [18:41:24]Read from MH i2c: 01 07 00 D7 B4 00 00 00 00 00 FF 0F A0 [18:41:24]RasterBufferAndPrint [18:41:24]line Счет N : (1)1036412 [18:41:24]line ИНН: 02508201610067 [18:41:24]line Контрольно-Кассовый Чек [18:41:24]line ПРОДАЖА [18:41:24]line ТРК (МРК, ГНК) : 33 [18:41:24]line Товар: 2710194210 [18:41:24]line ДТ(л)-К-4 [18:41:24]line 3.130 * 76.20 [18:41:24]line = 238.51 [18:41:24]line НДС 12% НСП 1% [18:41:24]line > о реализуемом товаре [18:41:24]line ОКРУГЛЕНИЕ: -0.51 [18:41:24]line ИТОГО: 238.00 [18:41:24]line Внесено: 238.00 [18:41:24]line СДАЧА: 0.00 [18:41:24]line НСП 1% : 2.11 [18:41:24]line НДС 12% : 25.33 [18:41:24]line Наличными: 238.00 [18:41:24]line Безнал.: 0.00 [18:41:24]line Место: АЗС № 94 "Партнер Нефть" [18:41:24]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:41:24]line СНО: Общий режим [18:41:24]line Чек 418 18.08.2024 18:41 [18:41:24]line Смена: 449 ФФД: 1.0 [18:41:24]line ЗНМ: 0300000099 [18:41:24]line РНМ: 0000000000091865 [18:41:24]line Версия ККМ: 001 [18:41:24]line ФМ: 0000000000871820 [18:41:24]line ФД: 260860 [18:41:24]line ФПД: 169878663189529 [18:41:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T184129&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260860&fm=169878663189529&tin=02508201610067®Number=0000000000091865&sum=23800 [18:41:25]OFD Sender: Processing packet 260860 [packets to send 192, broken 191] [18:41:25]ProducePacketName [18:41:25]name=ofd_packets/00260860 [18:41:25]OFD Sender: To server: pG, [18:41:25]CommunicateWithHost lk.salyk.kg:30040 [18:41:25]ConnectInit lk.salyk.kg [18:41:25]written 0, free lines is 4095 [18:41:25]Connected sock=10 [18:41: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 30 10 01 00 00 96 0A 08 01 3B 56 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 3A 0C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2B 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 09 00 00 00 00 07 04 06 00 F8 5C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 01 00 00 F4 03 04 00 59 40 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FC FA 03 00 35 04 06 00 9A 80 F5 5F D4 19 1C 4E AE 7E D9 A5 6A 54 [18:41: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 30 4F 00 00 00 7C 59 47 00 8D 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FC FA 03 00 F4 03 04 00 AD E9 C1 66 B6 04 01 00 00 50 2B E6 26 8F 92 82 13 [18:41:25]CommunicateWithHost err = 0 [18:41:25]CheckOFDResponse [18:41:25]1017 (14) - 77093643461234 [18:41:25]1041 (16) - 0000000000871820 [18:41:25]1040 (4) - 260860 [18:41:25]1012 (4) - 18.08.2024 12:31 [18:41:25]1206 (1) - 0 [18:41:25]OFD Sender: Remove packet 260860 [18:41:25]ProducePacketName [18:41:25]name=ofd_packets/00260860 [18:41:25]NVStorageDeleteData [18:41:25]Write to MH i2c: 01 00 00 02 B5 B7 [18:41:25]Write i2c OK [18:41:25]MH_I2C_Read... [18:41:25]Read from MH i2c: 01 [18:41:25]MH_I2C_Read... [18:41:25]Read from MH i2c: 01 07 00 [18:41:25]MH_I2C_Read... [18:41:25]Read from MH i2c: 01 07 00 02 B5 00 00 00 00 00 72 0C 3C [18:41:25]RasterBufferAndPrint [18:41:25]line [18:41:25]line [18:41:25]line [18:41:25]line [18:41:25]line [18:41:25]written 0, free lines is 3188 [18:41:25]MH_Cut [18:41:25]Write to MH i2c: D1 01 00 09 B5 01 90 [18:41:25]Write i2c OK [18:41:25]MH_I2C_Read... [18:41:25]Read from MH i2c: D1 [18:41:25]MH_I2C_Read... [18:41:25]Read from MH i2c: D1 01 00 [18:41:25]MH_I2C_Read... [18:41:25]Read from MH i2c: D1 01 00 09 B5 00 8F [18:41:25]Write to MH i2c: 01 00 00 0A B5 BF [18:41:25]Write i2c OK [18:41:25]MH_I2C_Read... [18:41:25]OFD Sender: No OFD packet to send [18:41:26]*** Cut start [18:41:26]*** Purtial cut [18:41:26]*** Stage 1: CUTSNS_PIN = 1 [18:41:28]Read from MH i2c: 01 [18:41:28]MH_I2C_Read... [18:41:28]*** Stop cut motor [18:41:28]*** Cut end [18:41:28]Read from MH i2c: 01 07 00 [18:41:28]MH_I2C_Read... [18:41:28]Read from MH i2c: 01 07 00 0A B5 00 00 00 00 00 FF 0F D4 [18:41:28]process_action close_receipt done [18:41:28]requested_data is exist [18:41:28]produce_requested_data [18:41:28]requested_item fm.sn is exist - process it [18:41:28]wFMCommunicate request_size=4 [18:41:28]MH_SAM_APDU [18:41:28]CAPDU: 80 11 00 00 [18:41:28]Write to MH i2c: E2 08 00 0B B5 80 11 00 00 00 00 00 00 3A [18:41:28]Write i2c OK [18:41:28]MH_I2C_Read... [18:41:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:28]Read from MH i2c: E2 [18:41:28]MH_I2C_Read... [18:41:28]Read from MH i2c: E2 17 00 [18:41:28]MH_I2C_Read... [18:41:28]Read from MH i2c: E2 17 00 0B B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 87 [18:41:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:41:28]wFMCommunicate OK [18:41:28]requested_item fd.num is exist - process it [18:41:28]SAM_PROTO_GetFieldsCounters [18:41:28]wFMCommunicate request_size=4 [18:41:28]MH_SAM_APDU [18:41:28]CAPDU: 80 13 00 00 [18:41:28]Write to MH i2c: E2 08 00 0C B5 80 13 00 00 00 00 00 00 3D [18:41:28]Write i2c OK [18:41:28]MH_I2C_Read... [18:41:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:41:28]Read from MH i2c: E2 [18:41:28]MH_I2C_Read... [18:41:28]Read from MH i2c: E2 62 00 [18:41:28]MH_I2C_Read... [18:41:28]Read from MH i2c: E2 62 00 0C B5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 FC FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A2 01 00 00 5E 04 04 00 A2 01 00 00 57 04 04 00 A3 01 00 00 19 04 04 00 00 00 00 00 90 00 00 [18:41: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 FC FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A2 01 00 00 5E 04 04 00 A2 01 00 00 57 04 04 00 A3 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:41:28]wFMCommunicate OK [18:41:28]SAM_PROTO_GetFieldsCounters done [18:41:28]requested_item shift.num is exist - process it [18:41:28]requested_item shift.opened is exist - process it [18:41:28]req_shift_opened [18:41:28]FM_GetShiftState [18:41:28]SAM_PROTO_GetShiftState [18:41:28]wFMCommunicate request_size=4 [18:41:28]MH_SAM_APDU [18:41:28]CAPDU: 80 13 01 00 [18:41:28]Write to MH i2c: E2 08 00 0D B5 80 13 01 00 00 00 00 00 3F [18:41:28]Write i2c OK [18:41:28]MH_I2C_Read... [18:41:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:28]Read from MH i2c: E2 [18:41:28]MH_I2C_Read... [18:41:28]Read from MH i2c: E2 0E 00 [18:41:28]MH_I2C_Read... [18:41:28]Read from MH i2c: E2 0E 00 0D B5 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 7C [18:41:28]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:41:28]wFMCommunicate OK [18:41:28]SAM_PROTO_GetShiftState done [18:41:28]FM_GetShiftState done [18:41:28]req_shift_opened done [18:41:28]requested_item shift.open_date is exist - process it [18:41:28]req_shift_open_date [18:41:28]req_shift_open_date done [18:41:28]produce_requested_data done [18:41:28]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260860,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:41:28]process_action_free close_receipt [18:41:28]json_value_free [18:41:28]json_value_free done [18:41:28]process_json_proto returns [18:41:28]Send response to host [18:41:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260860,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:41:28]free response buf [18:41:28]execute_script done [18:41:28]execute_script returns [18:41:28]free content buf [18:41:28]Sock 9.Close socket [18:41:28]Sock 9.Thread stoped [18:41:30]OFD Sender: No OFD packet to send [18:41:35]OFD Sender: No OFD packet to send [18:41:40]OFD Sender: No OFD packet to send [18:41:45]OFD Sender: No OFD packet to send [18:41:50]OFD Sender: No OFD packet to send [18:41:55]OFD Sender: No OFD packet to send [18:42:00]OFD Sender: No OFD packet to send [18:42:05]OFD Sender: No OFD packet to send [18:42:10]OFD Sender: No OFD packet to send [18:42:15]OFD Sender: No OFD packet to send [18:42:20]OFD Sender: No OFD packet to send [18:42:25]OFD Sender: No OFD packet to send [18:42:30]OFD Sender: No OFD packet to send [18:42:34]accept exits with 7 [18:42:34]New connection [18:42:34]New thread 3066617188 created [18:42:34]Thread 3066473828 joined [18:42:34]Waiting for new connection... [18:42:34] Sock 7.Parse request [18:42:34]Sock 7.Check first char [18:42:34]Sock 7.First char is OK [18:42:34]request: POST /json_proto HTTP/1.0 [18:42:34]Method: POST [18:42:34]URL: /json_proto [18:42:34]Method is POST - this is cgi request [18:42:34]url: /json_proto [18:42:34]query_string will be loaded in cgi processing [18:42:34]execute_cgi json_proto POST (null) [18:42:34]execute_cgi path=json_proto method=POST [18:42:34]POST find Content-Length [18:42:34]Host: 172.17.55.133:8080 [18:42:34]Content-Length: 678 [18:42:34]Content-Type: application/json [18:42:34] [18:42:34]POST finish read [18:42:34]Found Content-Length = 678 [18:42:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036413", "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" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:34]execute_script... [18:42: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)1036413", "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" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:34]POST & json_proto [18:42:34]process_json_proto [18:42:34]json parsed OK: [18:42:34]protocol is kg_v1.0 [18:42:34]action value=close_receipt [18:42:34]process_action close_receipt [18:42:34]cmd_close_receipt [18:42:34]MH_GetDate [18:42:34]Write to MH i2c: F0 00 00 0E B5 B2 [18:42:34]Write i2c OK [18:42:34]MH_I2C_Read... [18:42:34]Read from MH i2c: F0 [18:42:34]MH_I2C_Read... [18:42:34]Read from MH i2c: F0 09 00 [18:42:34]MH_I2C_Read... [18:42:34]Read from MH i2c: F0 09 00 0E B5 00 A0 40 C2 66 34 48 D8 65 7C [18:42:34]GetLastDocTimeStamp 1724006489 [18:42:34]current date 1724006560 [18:42:34]FM_GetShiftState [18:42:34]SAM_PROTO_GetShiftState [18:42:34]wFMCommunicate request_size=4 [18:42:34]MH_SAM_APDU [18:42:34]CAPDU: 80 13 01 00 [18:42:34]Write to MH i2c: E2 08 00 0F B5 80 13 01 00 00 00 00 00 41 [18:42:34]Write i2c OK [18:42:34]MH_I2C_Read... [18:42:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:34]Read from MH i2c: E2 [18:42:34]MH_I2C_Read... [18:42:34]Read from MH i2c: E2 0E 00 [18:42:34]MH_I2C_Read... [18:42:34]Read from MH i2c: E2 0E 00 0F B5 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 7E [18:42:34]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:42:34]wFMCommunicate OK [18:42:34]SAM_PROTO_GetShiftState done [18:42:34]FM_GetShiftState done [18:42:34]opened in 1723940556 [18:42:34]opened+sec_in_day 1724026956 [18:42:34]quantity*price = 30051 [18:42:34]sum+1 = 30052 [18:42:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 419 18.08.2024 18:42 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260861 ФПД: 231152487790068 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T184240&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260861&fm=231152487790068&tin=02508201610067®Number=0000000000091865&sum=30000 [18:42:35]StoreToDocumentArchive [18:42:35]shift 449 fd 260861 [18:42:35]save to /storage/0449/doc_00260861 [18:42:35]save last doc name /storage/0449/doc_00260861 to /storage/kkm_last_doc_name [18:42:35]save OK [18:42:35]Clear old archive folders... [18:42:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:42:35]tlvbuf is 003E9210 [18:42:35]SAM_PROTO_ClearQueue [18:42:35]wFMCommunicate request_size=4 [18:42:35]MH_SAM_APDU [18:42:35]CAPDU: 80 09 00 00 [18:42:35]Write to MH i2c: E2 08 00 1C B5 80 09 00 00 00 00 00 00 43 [18:42:35]Write i2c OK [18:42:35]MH_I2C_Read... [18:42:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:42:35]Read from MH i2c: E2 [18:42:35]MH_I2C_Read... [18:42:35]Read from MH i2c: E2 03 00 [18:42:35]MH_I2C_Read... [18:42:35]Read from MH i2c: E2 03 00 1C B5 00 90 00 45 [18:42:35]RAPDU: 90 00 [18:42:35]wFMCommunicate OK [18:42:35]SAM_PROTO_ClearQueue done [18:42:35]KKMCreateOFDPacket [18:42:35]OFDProtocolAddRootSTLVToBuf [18:42:35]FM_MakeSignedData [18:42:35]FM_MakeSignedData [18:42:35]SAM_PROTO_SignData [18:42:35]wFMCommunicate request_size=4 [18:42:35]MH_SAM_APDU [18:42:35]CAPDU: 80 0D 01 02 [18:42:35]Write to MH i2c: E2 08 00 1D B5 80 0D 01 02 00 00 00 00 4B [18:42:35]Write i2c OK [18:42:35]MH_I2C_Read... [18:42:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:42:35]Read from MH i2c: E2 [18:42:35]MH_I2C_Read... [18:42:35]Read from MH i2c: E2 03 00 [18:42:35]MH_I2C_Read... [18:42:35]Read from MH i2c: E2 03 00 1D B5 00 90 00 46 [18:42:35]RAPDU: 90 00 [18:42:35]wFMCommunicate OK [18:42:35]wFMCommunicate request_size=255 [18:42:35]MH_SAM_APDU [18:42: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 01 00 00 F4 03 04 00 A0 40 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FD FA 03 00 35 04 06 00 D2 [18:42:35]Write to MH i2c: E2 02 01 1E B5 80 0D 02 02 FA 00 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 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 01 00 00 F4 03 04 00 A0 40 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FD FA 03 00 35 04 06 00 D2 00 00 3A [18:42:35]Write i2c OK [18:42:35]MH_I2C_Read... [18:42:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:35]Read from MH i2c: E2 [18:42:35]MH_I2C_Read... [18:42:35]Read from MH i2c: E2 03 00 [18:42:35]MH_I2C_Read... [18:42:35]Read from MH i2c: E2 03 00 1E B5 00 90 00 47 [18:42:35]RAPDU: 90 00 [18:42:35]wFMCommunicate OK [18:42:35]wFMCommunicate request_size=10 [18:42:35]MH_SAM_APDU [18:42:35]CAPDU: 80 0D 02 02 05 3B 61 EC 75 F4 [18:42:35]Write to MH i2c: E2 0D 00 1F B5 80 0D 02 02 05 00 3B 61 EC 75 F4 00 00 49 [18:42:35]Write i2c OK [18:42:35]MH_I2C_Read... [18:42:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:35]Read from MH i2c: E2 [18:42:35]MH_I2C_Read... [18:42:35]Read from MH i2c: E2 03 00 [18:42:35]MH_I2C_Read... [18:42:35]Read from MH i2c: E2 03 00 1F B5 00 90 00 48 [18:42:35]RAPDU: 90 00 [18:42:35]wFMCommunicate OK [18:42:35]wFMCommunicate request_size=4 [18:42:35]MH_SAM_APDU [18:42:35]CAPDU: 80 0D 03 02 [18:42:35]Write to MH i2c: E2 08 00 20 B5 80 0D 03 02 00 00 00 00 50 [18:42:35]Write i2c OK [18:42:35]MH_I2C_Read... [18:42:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:42:35]Read from MH i2c: E2 [18:42:35]MH_I2C_Read... [18:42:35]Read from MH i2c: E2 0B 00 [18:42:35]MH_I2C_Read... [18:42:35]Read from MH i2c: E2 0B 00 20 B5 00 96 15 C8 22 2B 68 8B BA 90 00 BE [18:42:35]RAPDU: 96 15 C8 22 2B 68 8B BA 90 00 [18:42:35]wFMCommunicate OK [18:42:35]SAM_PROTO_SignData done [18:42:35]FM_MakeSignedData done [18:42:35]CreateOFDProtocolMessage [18:42:35]wFMCommunicate request_size=4 [18:42:35]MH_SAM_APDU [18:42:35]CAPDU: 80 11 00 00 [18:42:35]Write to MH i2c: E2 08 00 21 B5 80 11 00 00 00 00 00 00 50 [18:42:35]Write i2c OK [18:42:35]MH_I2C_Read... [18:42:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:35]Read from MH i2c: E2 [18:42:35]MH_I2C_Read... [18:42:35]Read from MH i2c: E2 17 00 [18:42:35]MH_I2C_Read... [18:42:35]Read from MH i2c: E2 17 00 21 B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 9D [18:42:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:42:35]wFMCommunicate OK [18:42:35]CreateOFDProtocolMessage done [18:42:35]OFDSenderStorePacket 260861 [18:42:35]StoreOFDPacket docnum=260861 [18:42:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 07 F3 07 01 84 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 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 01 00 00 F4 03 04 00 A0 40 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FD FA 03 00 35 04 06 00 D2 3B 61 EC 75 F4 96 15 C8 22 2B 68 8B BA [18:42:35]CheckFolder [18:42:35]dirname=/storage/ofd_packets [18:42:35]CheckFolder done [18:42:35]ProducePacketName [18:42:35]name=ofd_packets/00260861 [18:42:35]NVStorageSaveData ofd_packets/00260861 [18:42:35]File name is /storage/ofd_packets/00260861 [18:42:35]Write 301 bytes [18:42:35]NVStorageSaveData done [18:42:35]OFDSenderStorePacket done [18:42:35]KKMCreateOFDPacket done [18:42:35]NVStorageSaveData kkm_last_timestamp [18:42:35]File name is /storage/kkm_last_timestamp [18:42:35]Write 4 bytes [18:42:35]NVStorageSaveData done [18:42:35]ExternCall_PrintAddStr [18:42:35]wPrintStart [18:42:35]Write to MH i2c: 01 00 00 22 B5 D7 [18:42:35]Write i2c OK [18:42:35]MH_I2C_Read... [18:42:35]Read from MH i2c: 01 [18:42:35]MH_I2C_Read... [18:42:35]Read from MH i2c: 01 07 00 [18:42:35]MH_I2C_Read... [18:42:35]Read from MH i2c: 01 07 00 22 B5 00 00 00 00 00 FF 0F EC [18:42:35]RasterBufferAndPrint [18:42:35]line Счет N : (1)1036413 [18:42:35]line ИНН: 02508201610067 [18:42:35]line Контрольно-Кассовый Чек [18:42:35]line ПРОДАЖА [18:42:35]line ТРК (МРК, ГНК) : 13 [18:42:35]line Товар: 2710124500 [18:42:35]line Аи-95-К-5 [18:42:35]line 4.050 * 74.20 [18:42:35]line = 300.51 [18:42:35]line НДС 12% НСП 1% [18:42:35]line > о реализуемом товаре [18:42:35]line ОКРУГЛЕНИЕ: -0.51 [18:42:35]line ИТОГО: 300.00 [18:42:35]line Внесено: 300.00 [18:42:35]line СДАЧА: 0.00 [18:42:35]line НСП 1% : 2.66 [18:42:35]line НДС 12% : 31.91 [18:42:35]line Наличными: 300.00 [18:42:35]line Безнал.: 0.00 [18:42:35]line Место: АЗС № 94 "Партнер Нефть" [18:42:35]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:42:35]line СНО: Общий режим [18:42:35]line Чек 419 18.08.2024 18:42 [18:42:35]line Смена: 449 ФФД: 1.0 [18:42:35]line ЗНМ: 0300000099 [18:42:35]line РНМ: 0000000000091865 [18:42:35]line Версия ККМ: 001 [18:42:35]line ФМ: 0000000000871820 [18:42:35]line ФД: 260861 [18:42:35]line ФПД: 231152487790068 [18:42:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T184240&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260861&fm=231152487790068&tin=02508201610067®Number=0000000000091865&sum=30000 [18:42:35]written 0, free lines is 4095 [18:42:35]OFD Sender: Processing packet 260861 [packets to send 192, broken 191] [18:42:35]ProducePacketName [18:42:35]name=ofd_packets/00260861 [18:42:35]OFD Sender: To server: pG, [18:42:35]CommunicateWithHost lk.salyk.kg:30040 [18:42:35]ConnectInit lk.salyk.kg [18:42:36]Connected sock=10 [18:42: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 30 0F 01 00 00 07 F3 07 01 84 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 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 01 00 00 F4 03 04 00 A0 40 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FD FA 03 00 35 04 06 00 D2 3B 61 EC 75 F4 96 15 C8 22 2B 68 8B BA [18:42: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 30 4F 00 00 00 7F 36 47 00 7B 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 30 10 04 04 00 FD FA 03 00 F4 03 04 00 F4 E9 C1 66 B6 04 01 00 00 0D F4 D8 1F 5C A7 BD 7B [18:42:36]CommunicateWithHost err = 0 [18:42:36]CheckOFDResponse [18:42:36]1017 (14) - 77093643461234 [18:42:36]1041 (16) - 0000000000871820 [18:42:36]1040 (4) - 260861 [18:42:36]1012 (4) - 18.08.2024 12:32 [18:42:36]1206 (1) - 0 [18:42:36]OFD Sender: Remove packet 260861 [18:42:36]ProducePacketName [18:42:36]name=ofd_packets/00260861 [18:42:36]NVStorageDeleteData [18:42:36]Write to MH i2c: 01 00 00 4D B5 02 [18:42:36]Write i2c OK [18:42:36]MH_I2C_Read... [18:42:36]Read from MH i2c: 01 [18:42:36]MH_I2C_Read... [18:42:36]Read from MH i2c: 01 07 00 [18:42:36]MH_I2C_Read... [18:42:36]Read from MH i2c: 01 07 00 4D B5 00 00 00 00 00 79 0C 8E [18:42:36]RasterBufferAndPrint [18:42:36]line [18:42:36]line [18:42:36]line [18:42:36]line [18:42:36]line [18:42:36]written 0, free lines is 3197 [18:42:36]MH_Cut [18:42:36]Write to MH i2c: D1 01 00 54 B5 01 DB [18:42:36]Write i2c OK [18:42:36]MH_I2C_Read... [18:42:36]Read from MH i2c: D1 [18:42:36]MH_I2C_Read... [18:42:36]Read from MH i2c: D1 01 00 [18:42:36]MH_I2C_Read... [18:42:36]Read from MH i2c: D1 01 00 54 B5 00 DA [18:42:36]Write to MH i2c: 01 00 00 55 B5 0A [18:42:36]Write i2c OK [18:42:36]MH_I2C_Read... [18:42:36]OFD Sender: No OFD packet to send [18:42:37]*** Cut start [18:42:37]*** Purtial cut [18:42:37]*** Stage 1: CUTSNS_PIN = 1 [18:42:39]Read from MH i2c: 01 [18:42:39]MH_I2C_Read... [18:42:39]*** Stop cut motor [18:42:39]*** Cut end [18:42:39]Read from MH i2c: 01 07 00 [18:42:39]MH_I2C_Read... [18:42:39]Read from MH i2c: 01 07 00 55 B5 00 00 00 00 00 FF 0F 1F [18:42:39]process_action close_receipt done [18:42:39]requested_data is exist [18:42:39]produce_requested_data [18:42:39]requested_item fm.sn is exist - process it [18:42:39]wFMCommunicate request_size=4 [18:42:39]MH_SAM_APDU [18:42:39]CAPDU: 80 11 00 00 [18:42:39]Write to MH i2c: E2 08 00 56 B5 80 11 00 00 00 00 00 00 85 [18:42:39]Write i2c OK [18:42:39]MH_I2C_Read... [18:42:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:39]Read from MH i2c: E2 [18:42:39]MH_I2C_Read... [18:42:39]Read from MH i2c: E2 17 00 [18:42:39]MH_I2C_Read... [18:42:39]Read from MH i2c: E2 17 00 56 B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D2 [18:42:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:42:39]wFMCommunicate OK [18:42:39]requested_item fd.num is exist - process it [18:42:39]SAM_PROTO_GetFieldsCounters [18:42:39]wFMCommunicate request_size=4 [18:42:39]MH_SAM_APDU [18:42:39]CAPDU: 80 13 00 00 [18:42:39]Write to MH i2c: E2 08 00 57 B5 80 13 00 00 00 00 00 00 88 [18:42:39]Write i2c OK [18:42:39]MH_I2C_Read... [18:42:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:42:39]Read from MH i2c: E2 [18:42:39]MH_I2C_Read... [18:42:39]Read from MH i2c: E2 62 00 [18:42:39]MH_I2C_Read... [18:42:39]Read from MH i2c: E2 62 00 57 B5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 FD FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A3 01 00 00 5E 04 04 00 A3 01 00 00 57 04 04 00 A4 01 00 00 19 04 04 00 00 00 00 00 90 00 4F [18:42: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 FD FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A3 01 00 00 5E 04 04 00 A3 01 00 00 57 04 04 00 A4 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:42:39]wFMCommunicate OK [18:42:39]SAM_PROTO_GetFieldsCounters done [18:42:39]requested_item shift.num is exist - process it [18:42:39]requested_item shift.opened is exist - process it [18:42:39]req_shift_opened [18:42:39]FM_GetShiftState [18:42:39]SAM_PROTO_GetShiftState [18:42:39]wFMCommunicate request_size=4 [18:42:39]MH_SAM_APDU [18:42:39]CAPDU: 80 13 01 00 [18:42:39]Write to MH i2c: E2 08 00 58 B5 80 13 01 00 00 00 00 00 8A [18:42:39]Write i2c OK [18:42:39]MH_I2C_Read... [18:42:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:39]Read from MH i2c: E2 [18:42:39]MH_I2C_Read... [18:42:39]Read from MH i2c: E2 0E 00 [18:42:39]MH_I2C_Read... [18:42:39]Read from MH i2c: E2 0E 00 58 B5 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C7 [18:42:39]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:42:39]wFMCommunicate OK [18:42:39]SAM_PROTO_GetShiftState done [18:42:39]FM_GetShiftState done [18:42:39]req_shift_opened done [18:42:39]requested_item shift.open_date is exist - process it [18:42:39]req_shift_open_date [18:42:39]req_shift_open_date done [18:42:39]produce_requested_data done [18:42:39]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260861,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:42:39]process_action_free close_receipt [18:42:39]json_value_free [18:42:39]json_value_free done [18:42:39]process_json_proto returns [18:42:39]Send response to host [18:42:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260861,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:42:39]free response buf [18:42:39]execute_script done [18:42:39]execute_script returns [18:42:39]free content buf [18:42:39]Sock 7.Close socket [18:42:39]Sock 7.Thread stoped [18:42:41]OFD Sender: No OFD packet to send [18:42:46]OFD Sender: No OFD packet to send [18:42:51]OFD Sender: No OFD packet to send [18:42:56]OFD Sender: No OFD packet to send [18:43:01]OFD Sender: No OFD packet to send [18:43:06]OFD Sender: No OFD packet to send [18:43:11]OFD Sender: No OFD packet to send [18:43:16]OFD Sender: No OFD packet to send [18:43:17]accept exits with 9 [18:43:17]New connection [18:43:17]New thread 3066473828 created [18:43:17]Thread 3066617188 joined [18:43:17]Waiting for new connection... [18:43:17] Sock 9.Parse request [18:43:17]Sock 9.Check first char [18:43:17]Sock 9.First char is OK [18:43:17]request: POST /json_proto HTTP/1.0 [18:43:17]Method: POST [18:43:17]URL: /json_proto [18:43:17]Method is POST - this is cgi request [18:43:17]url: /json_proto [18:43:17]query_string will be loaded in cgi processing [18:43:17]execute_cgi json_proto POST (null) [18:43:17]execute_cgi path=json_proto method=POST [18:43:17]POST find Content-Length [18:43:17]Host: 172.17.55.133:8080 [18:43:17]Content-Length: 679 [18:43:17]Content-Type: application/json [18:43:17] [18:43:17]POST finish read [18:43:17]Found Content-Length = 679 [18:43:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:17]execute_script... [18:43: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)1036414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:17]POST & json_proto [18:43:17]process_json_proto [18:43:17]json parsed OK: [18:43:17]protocol is kg_v1.0 [18:43:17]action value=close_receipt [18:43:17]process_action close_receipt [18:43:17]cmd_close_receipt [18:43:17]MH_GetDate [18:43:17]Write to MH i2c: F0 00 00 59 B5 FD [18:43:17]Write i2c OK [18:43:17]MH_I2C_Read... [18:43:17]Read from MH i2c: F0 [18:43:17]MH_I2C_Read... [18:43:17]Read from MH i2c: F0 09 00 [18:43:17]MH_I2C_Read... [18:43:17]Read from MH i2c: F0 09 00 59 B5 00 CB 40 C2 66 34 48 D8 65 F2 [18:43:17]GetLastDocTimeStamp 1724006560 [18:43:17]current date 1724006603 [18:43:17]FM_GetShiftState [18:43:17]SAM_PROTO_GetShiftState [18:43:17]wFMCommunicate request_size=4 [18:43:17]MH_SAM_APDU [18:43:17]CAPDU: 80 13 01 00 [18:43:17]Write to MH i2c: E2 08 00 5A B5 80 13 01 00 00 00 00 00 8C [18:43:17]Write i2c OK [18:43:17]MH_I2C_Read... [18:43:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:17]Read from MH i2c: E2 [18:43:17]MH_I2C_Read... [18:43:17]Read from MH i2c: E2 0E 00 [18:43:17]MH_I2C_Read... [18:43:17]Read from MH i2c: E2 0E 00 5A B5 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C9 [18:43:17]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:43:17]wFMCommunicate OK [18:43:17]SAM_PROTO_GetShiftState done [18:43:17]FM_GetShiftState done [18:43:17]opened in 1723940556 [18:43:17]opened+sec_in_day 1724026956 [18:43:17]quantity*price = 70037 [18:43:17]sum+1 = 70038 [18:43:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 420 18.08.2024 18:43 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260862 ФПД: 226502356496666 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T184323&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260862&fm=226502356496666&tin=02508201610067®Number=0000000000091865&sum=70000 [18:43:18]StoreToDocumentArchive [18:43:18]shift 449 fd 260862 [18:43:18]save to /storage/0449/doc_00260862 [18:43:18]save last doc name /storage/0449/doc_00260862 to /storage/kkm_last_doc_name [18:43:18]save OK [18:43:18]Clear old archive folders... [18:43:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:43:18]tlvbuf is 0036EA80 [18:43:18]SAM_PROTO_ClearQueue [18:43:18]wFMCommunicate request_size=4 [18:43:18]MH_SAM_APDU [18:43:18]CAPDU: 80 09 00 00 [18:43:18]Write to MH i2c: E2 08 00 67 B5 80 09 00 00 00 00 00 00 8E [18:43:18]Write i2c OK [18:43:18]MH_I2C_Read... [18:43:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:43:18]Read from MH i2c: E2 [18:43:18]MH_I2C_Read... [18:43:18]Read from MH i2c: E2 03 00 [18:43:18]MH_I2C_Read... [18:43:18]Read from MH i2c: E2 03 00 67 B5 00 90 00 90 [18:43:18]RAPDU: 90 00 [18:43:18]wFMCommunicate OK [18:43:18]SAM_PROTO_ClearQueue done [18:43:18]KKMCreateOFDPacket [18:43:18]OFDProtocolAddRootSTLVToBuf [18:43:18]FM_MakeSignedData [18:43:18]FM_MakeSignedData [18:43:18]SAM_PROTO_SignData [18:43:18]wFMCommunicate request_size=4 [18:43:18]MH_SAM_APDU [18:43:18]CAPDU: 80 0D 01 02 [18:43:18]Write to MH i2c: E2 08 00 68 B5 80 0D 01 02 00 00 00 00 96 [18:43:18]Write i2c OK [18:43:18]MH_I2C_Read... [18:43:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:43:18]Read from MH i2c: E2 [18:43:18]MH_I2C_Read... [18:43:18]Read from MH i2c: E2 03 00 [18:43:18]MH_I2C_Read... [18:43:18]Read from MH i2c: E2 03 00 68 B5 00 90 00 91 [18:43:18]RAPDU: 90 00 [18:43:18]wFMCommunicate OK [18:43:18]wFMCommunicate request_size=255 [18:43:18]MH_SAM_APDU [18:43:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 A4 01 00 00 F4 03 04 00 CB 40 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FE FA 03 00 35 04 06 00 CE [18:43:18]Write to MH i2c: E2 02 01 69 B5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 A4 01 00 00 F4 03 04 00 CB 40 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FE FA 03 00 35 04 06 00 CE 00 00 5D [18:43:18]Write i2c OK [18:43:18]MH_I2C_Read... [18:43:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:19]Read from MH i2c: E2 [18:43:19]MH_I2C_Read... [18:43:19]Read from MH i2c: E2 03 00 [18:43:19]MH_I2C_Read... [18:43:19]Read from MH i2c: E2 03 00 69 B5 00 90 00 92 [18:43:19]RAPDU: 90 00 [18:43:19]wFMCommunicate OK [18:43:19]wFMCommunicate request_size=10 [18:43:19]MH_SAM_APDU [18:43:19]CAPDU: 80 0D 02 02 05 00 B0 7F F1 1A [18:43:19]Write to MH i2c: E2 0D 00 6A B5 80 0D 02 02 05 00 00 B0 7F F1 1A 00 00 DD [18:43:19]Write i2c OK [18:43:19]MH_I2C_Read... [18:43:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:19]Read from MH i2c: E2 [18:43:19]MH_I2C_Read... [18:43:19]Read from MH i2c: E2 03 00 [18:43:19]MH_I2C_Read... [18:43:19]Read from MH i2c: E2 03 00 6A B5 00 90 00 93 [18:43:19]RAPDU: 90 00 [18:43:19]wFMCommunicate OK [18:43:19]wFMCommunicate request_size=4 [18:43:19]MH_SAM_APDU [18:43:19]CAPDU: 80 0D 03 02 [18:43:19]Write to MH i2c: E2 08 00 6B B5 80 0D 03 02 00 00 00 00 9B [18:43:19]Write i2c OK [18:43:19]MH_I2C_Read... [18:43:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:43:19]Read from MH i2c: E2 [18:43:19]MH_I2C_Read... [18:43:19]Read from MH i2c: E2 0B 00 [18:43:19]MH_I2C_Read... [18:43:19]Read from MH i2c: E2 0B 00 6B B5 00 61 FC E4 56 4F A3 22 8F 90 00 D6 [18:43:19]RAPDU: 61 FC E4 56 4F A3 22 8F 90 00 [18:43:19]wFMCommunicate OK [18:43:19]SAM_PROTO_SignData done [18:43:19]FM_MakeSignedData done [18:43:19]CreateOFDProtocolMessage [18:43:19]wFMCommunicate request_size=4 [18:43:19]MH_SAM_APDU [18:43:19]CAPDU: 80 11 00 00 [18:43:19]Write to MH i2c: E2 08 00 6C B5 80 11 00 00 00 00 00 00 9B [18:43:19]Write i2c OK [18:43:19]MH_I2C_Read... [18:43:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:19]Read from MH i2c: E2 [18:43:19]MH_I2C_Read... [18:43:19]Read from MH i2c: E2 17 00 [18:43:19]MH_I2C_Read... [18:43:19]Read from MH i2c: E2 17 00 6C B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E8 [18:43:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:43:19]wFMCommunicate OK [18:43:19]CreateOFDProtocolMessage done [18:43:19]OFDSenderStorePacket 260862 [18:43:19]StoreOFDPacket docnum=260862 [18:43:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 39 EF 07 01 F7 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 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 A4 01 00 00 F4 03 04 00 CB 40 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FE FA 03 00 35 04 06 00 CE 00 B0 7F F1 1A 61 FC E4 56 4F A3 22 8F [18:43:19]CheckFolder [18:43:19]dirname=/storage/ofd_packets [18:43:19]CheckFolder done [18:43:19]ProducePacketName [18:43:19]name=ofd_packets/00260862 [18:43:19]NVStorageSaveData ofd_packets/00260862 [18:43:19]File name is /storage/ofd_packets/00260862 [18:43:19]Write 301 bytes [18:43:19]NVStorageSaveData done [18:43:19]OFDSenderStorePacket done [18:43:19]KKMCreateOFDPacket done [18:43:19]NVStorageSaveData kkm_last_timestamp [18:43:19]File name is /storage/kkm_last_timestamp [18:43:19]Write 4 bytes [18:43:19]NVStorageSaveData done [18:43:19]ExternCall_PrintAddStr [18:43:19]wPrintStart [18:43:19]Write to MH i2c: 01 00 00 6D B5 22 [18:43:19]Write i2c OK [18:43:19]MH_I2C_Read... [18:43:19]Read from MH i2c: 01 [18:43:19]MH_I2C_Read... [18:43:19]Read from MH i2c: 01 07 00 [18:43:19]MH_I2C_Read... [18:43:19]Read from MH i2c: 01 07 00 6D B5 00 00 00 00 00 FF 0F 37 [18:43:19]RasterBufferAndPrint [18:43:19]line Счет N : (1)1036414 [18:43:19]line ИНН: 02508201610067 [18:43:19]line Контрольно-Кассовый Чек [18:43:19]line ПРОДАЖА [18:43:19]line ТРК (МРК, ГНК) : 42 [18:43:19]line Товар: 2710124130 [18:43:19]line Аи-92-К-5 [18:43:19]line 10.330 * 67.80 [18:43:19]line = 700.37 [18:43:19]line НДС 12% НСП 1% [18:43:19]line > о реализуемом товаре [18:43:19]line ОКРУГЛЕНИЕ: -0.37 [18:43:19]line ИТОГО: 700.00 [18:43:19]line Внесено: 700.00 [18:43:19]line СДАЧА: 0.00 [18:43:19]line НСП 1% : 6.20 [18:43:19]line НДС 12% : 74.38 [18:43:19]line Наличными: 700.00 [18:43:19]line Безнал.: 0.00 [18:43:19]line Место: АЗС № 94 "Партнер Нефть" [18:43:19]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:43:19]line СНО: Общий режим [18:43:19]line Чек 420 18.08.2024 18:43 [18:43:19]line Смена: 449 ФФД: 1.0 [18:43:19]line ЗНМ: 0300000099 [18:43:19]line РНМ: 0000000000091865 [18:43:19]line Версия ККМ: 001 [18:43:19]line ФМ: 0000000000871820 [18:43:19]line ФД: 260862 [18:43:19]line ФПД: 226502356496666 [18:43:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T184323&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260862&fm=226502356496666&tin=02508201610067®Number=0000000000091865&sum=70000 [18:43:19]written 0, free lines is 4095 [18:43:19]OFD Sender: Processing packet 260862 [packets to send 192, broken 191] [18:43:19]ProducePacketName [18:43:19]name=ofd_packets/00260862 [18:43:19]OFD Sender: To server: pG, [18:43:19]CommunicateWithHost lk.salyk.kg:30040 [18:43:19]ConnectInit lk.salyk.kg [18:43:19]Connected sock=10 [18:43: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 30 0F 01 00 00 39 EF 07 01 F7 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 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 A4 01 00 00 F4 03 04 00 CB 40 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FE FA 03 00 35 04 06 00 CE 00 B0 7F F1 1A 61 FC E4 56 4F A3 22 8F [18:43: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 30 4F 00 00 00 86 17 47 00 38 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 30 10 04 04 00 FE FA 03 00 F4 03 04 00 1F EA C1 66 B6 04 01 00 00 F9 00 67 87 5D 30 6E E7 [18:43:19]CommunicateWithHost err = 0 [18:43:19]CheckOFDResponse [18:43:19]1017 (14) - 77093643461234 [18:43:19]1041 (16) - 0000000000871820 [18:43:19]1040 (4) - 260862 [18:43:19]1012 (4) - 18.08.2024 12:33 [18:43:19]1206 (1) - 0 [18:43:19]OFD Sender: Remove packet 260862 [18:43:19]ProducePacketName [18:43:19]name=ofd_packets/00260862 [18:43:19]NVStorageDeleteData [18:43:19]Write to MH i2c: 01 00 00 98 B5 4D [18:43:19]Write i2c OK [18:43:19]MH_I2C_Read... [18:43:19]Read from MH i2c: 01 [18:43:19]MH_I2C_Read... [18:43:19]Read from MH i2c: 01 07 00 [18:43:19]MH_I2C_Read... [18:43:19]Read from MH i2c: 01 07 00 98 B5 00 00 00 00 00 73 0C D3 [18:43:19]RasterBufferAndPrint [18:43:19]line [18:43:19]line [18:43:19]line [18:43:19]line [18:43:19]line [18:43:19]written 0, free lines is 3190 [18:43:19]MH_Cut [18:43:19]Write to MH i2c: D1 01 00 9F B5 01 26 [18:43:19]Write i2c OK [18:43:19]MH_I2C_Read... [18:43:19]Read from MH i2c: D1 [18:43:19]MH_I2C_Read... [18:43:19]Read from MH i2c: D1 01 00 [18:43:19]MH_I2C_Read... [18:43:19]Read from MH i2c: D1 01 00 9F B5 00 25 [18:43:19]Write to MH i2c: 01 00 00 A0 B5 55 [18:43:19]Write i2c OK [18:43:19]MH_I2C_Read... [18:43:20]OFD Sender: No OFD packet to send [18:43:20]*** Cut start [18:43:20]*** Purtial cut [18:43:20]*** Stage 1: CUTSNS_PIN = 1 [18:43:22]Read from MH i2c: 01 [18:43:22]MH_I2C_Read... [18:43:22]*** Stop cut motor [18:43:22]*** Cut end [18:43:22]Read from MH i2c: 01 07 00 [18:43:22]MH_I2C_Read... [18:43:22]Read from MH i2c: 01 07 00 A0 B5 00 00 00 00 00 FF 0F 6A [18:43:22]process_action close_receipt done [18:43:22]requested_data is exist [18:43:22]produce_requested_data [18:43:22]requested_item fm.sn is exist - process it [18:43:22]wFMCommunicate request_size=4 [18:43:22]MH_SAM_APDU [18:43:22]CAPDU: 80 11 00 00 [18:43:22]Write to MH i2c: E2 08 00 A1 B5 80 11 00 00 00 00 00 00 D0 [18:43:22]Write i2c OK [18:43:22]MH_I2C_Read... [18:43:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:22]Read from MH i2c: E2 [18:43:22]MH_I2C_Read... [18:43:22]Read from MH i2c: E2 17 00 [18:43:22]MH_I2C_Read... [18:43:22]Read from MH i2c: E2 17 00 A1 B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 1D [18:43:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:43:22]wFMCommunicate OK [18:43:22]requested_item fd.num is exist - process it [18:43:22]SAM_PROTO_GetFieldsCounters [18:43:22]wFMCommunicate request_size=4 [18:43:22]MH_SAM_APDU [18:43:22]CAPDU: 80 13 00 00 [18:43:22]Write to MH i2c: E2 08 00 A2 B5 80 13 00 00 00 00 00 00 D3 [18:43:22]Write i2c OK [18:43:22]MH_I2C_Read... [18:43:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:43:22]Read from MH i2c: E2 [18:43:22]MH_I2C_Read... [18:43:22]Read from MH i2c: E2 62 00 [18:43:22]MH_I2C_Read... [18:43:22]Read from MH i2c: E2 62 00 A2 B5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 FE FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A4 01 00 00 5E 04 04 00 A4 01 00 00 57 04 04 00 A5 01 00 00 19 04 04 00 00 00 00 00 90 00 9E [18:43: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 FE FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A4 01 00 00 5E 04 04 00 A4 01 00 00 57 04 04 00 A5 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:43:22]wFMCommunicate OK [18:43:22]SAM_PROTO_GetFieldsCounters done [18:43:22]requested_item shift.num is exist - process it [18:43:22]requested_item shift.opened is exist - process it [18:43:22]req_shift_opened [18:43:22]FM_GetShiftState [18:43:22]SAM_PROTO_GetShiftState [18:43:22]wFMCommunicate request_size=4 [18:43:22]MH_SAM_APDU [18:43:22]CAPDU: 80 13 01 00 [18:43:22]Write to MH i2c: E2 08 00 A3 B5 80 13 01 00 00 00 00 00 D5 [18:43:22]Write i2c OK [18:43:22]MH_I2C_Read... [18:43:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:23]Read from MH i2c: E2 [18:43:23]MH_I2C_Read... [18:43:23]Read from MH i2c: E2 0E 00 [18:43:23]MH_I2C_Read... [18:43:23]Read from MH i2c: E2 0E 00 A3 B5 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 12 [18:43:23]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:43:23]wFMCommunicate OK [18:43:23]SAM_PROTO_GetShiftState done [18:43:23]FM_GetShiftState done [18:43:23]req_shift_opened done [18:43:23]requested_item shift.open_date is exist - process it [18:43:23]req_shift_open_date [18:43:23]req_shift_open_date done [18:43:23]produce_requested_data done [18:43:23]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260862,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:43:23]process_action_free close_receipt [18:43:23]json_value_free [18:43:23]json_value_free done [18:43:23]process_json_proto returns [18:43:23]Send response to host [18:43:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260862,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:43:23]free response buf [18:43:23]execute_script done [18:43:23]execute_script returns [18:43:23]free content buf [18:43:23]Sock 9.Close socket [18:43:23]Sock 9.Thread stoped [18:43:25]OFD Sender: No OFD packet to send [18:43:30]OFD Sender: No OFD packet to send [18:43:35]OFD Sender: No OFD packet to send [18:43:40]OFD Sender: No OFD packet to send [18:43:45]OFD Sender: No OFD packet to send [18:43:50]OFD Sender: No OFD packet to send [18:43:55]OFD Sender: No OFD packet to send [18:44:00]OFD Sender: No OFD packet to send [18:44:05]OFD Sender: No OFD packet to send [18:44:10]OFD Sender: No OFD packet to send [18:44:15]OFD Sender: No OFD packet to send [18:44:20]OFD Sender: No OFD packet to send [18:44:25]OFD Sender: No OFD packet to send [18:44:30]OFD Sender: No OFD packet to send [18:44:35]OFD Sender: No OFD packet to send [18:44:40]OFD Sender: No OFD packet to send [18:44:45]OFD Sender: No OFD packet to send [18:44:50]OFD Sender: No OFD packet to send [18:44:55]OFD Sender: No OFD packet to send [18:45:00]OFD Sender: No OFD packet to send [18:45:05]OFD Sender: No OFD packet to send [18:45:10]OFD Sender: No OFD packet to send [18:45:15]OFD Sender: No OFD packet to send [18:45:20]OFD Sender: No OFD packet to send [18:45:25]OFD Sender: No OFD packet to send [18:45:27]accept exits with 7 [18:45:27]New connection [18:45:27]New thread 3066617188 created [18:45:27]Thread 3066473828 joined [18:45:27]Waiting for new connection... [18:45:27] Sock 7.Parse request [18:45:27]Sock 7.Check first char [18:45:27]Sock 7.First char is OK [18:45:27]request: POST /json_proto HTTP/1.0 [18:45:27]Method: POST [18:45:27]URL: /json_proto [18:45:27]Method is POST - this is cgi request [18:45:27]url: /json_proto [18:45:27]query_string will be loaded in cgi processing [18:45:27]execute_cgi json_proto POST (null) [18:45:27]execute_cgi path=json_proto method=POST [18:45:27]POST find Content-Length [18:45:27]Host: 172.17.55.133:8080 [18:45:27]Content-Length: 683 [18:45:27]Content-Type: application/json [18:45:27] [18:45:27]POST finish read [18:45:27]Found Content-Length = 683 [18:45:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036415", "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" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "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" ] } } [18:45:27]execute_script... [18:45: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)1036415", "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" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "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" ] } } [18:45:27]POST & json_proto [18:45:27]process_json_proto [18:45:27]json parsed OK: [18:45:27]protocol is kg_v1.0 [18:45:27]action value=close_receipt [18:45:27]process_action close_receipt [18:45:27]cmd_close_receipt [18:45:27]MH_GetDate [18:45:27]Write to MH i2c: F0 00 00 A4 B5 48 [18:45:27]Write i2c OK [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: F0 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: F0 09 00 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: F0 09 00 A4 B5 00 4E 41 C2 66 34 48 D8 65 C1 [18:45:27]GetLastDocTimeStamp 1724006603 [18:45:27]current date 1724006734 [18:45:27]FM_GetShiftState [18:45:27]SAM_PROTO_GetShiftState [18:45:27]wFMCommunicate request_size=4 [18:45:27]MH_SAM_APDU [18:45:27]CAPDU: 80 13 01 00 [18:45:27]Write to MH i2c: E2 08 00 A5 B5 80 13 01 00 00 00 00 00 D7 [18:45:27]Write i2c OK [18:45:27]MH_I2C_Read... [18:45:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:27]Read from MH i2c: E2 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 0E 00 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 0E 00 A5 B5 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 14 [18:45:27]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:45:27]wFMCommunicate OK [18:45:27]SAM_PROTO_GetShiftState done [18:45:27]FM_GetShiftState done [18:45:27]opened in 1723940556 [18:45:27]opened+sec_in_day 1724026956 [18:45:27]quantity*price = 200043 [18:45:27]sum+1 = 200044 [18:45:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 421 18.08.2024 18:45 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260863 ФПД: 145059084696604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T184534&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260863&fm=145059084696604&tin=02508201610067®Number=0000000000091865&sum=200000 [18:45:29]StoreToDocumentArchive [18:45:29]shift 449 fd 260863 [18:45:29]save to /storage/0449/doc_00260863 [18:45:29]save last doc name /storage/0449/doc_00260863 to /storage/kkm_last_doc_name [18:45:29]save OK [18:45:29]Clear old archive folders... [18:45:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:45:29]tlvbuf is 00336460 [18:45:29]SAM_PROTO_ClearQueue [18:45:29]wFMCommunicate request_size=4 [18:45:29]MH_SAM_APDU [18:45:29]CAPDU: 80 09 00 00 [18:45:29]Write to MH i2c: E2 08 00 B2 B5 80 09 00 00 00 00 00 00 D9 [18:45:29]Write i2c OK [18:45:29]MH_I2C_Read... [18:45:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:29]Read from MH i2c: E2 [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: E2 03 00 [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: E2 03 00 B2 B5 00 90 00 DB [18:45:29]RAPDU: 90 00 [18:45:29]wFMCommunicate OK [18:45:29]SAM_PROTO_ClearQueue done [18:45:29]KKMCreateOFDPacket [18:45:29]OFDProtocolAddRootSTLVToBuf [18:45:29]FM_MakeSignedData [18:45:29]FM_MakeSignedData [18:45:29]SAM_PROTO_SignData [18:45:29]wFMCommunicate request_size=4 [18:45:29]MH_SAM_APDU [18:45:29]CAPDU: 80 0D 01 02 [18:45:29]Write to MH i2c: E2 08 00 B3 B5 80 0D 01 02 00 00 00 00 E1 [18:45:29]Write i2c OK [18:45:29]MH_I2C_Read... [18:45:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:29]Read from MH i2c: E2 [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: E2 03 00 [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: E2 03 00 B3 B5 00 90 00 DC [18:45:29]RAPDU: 90 00 [18:45:29]wFMCommunicate OK [18:45:29]wFMCommunicate request_size=255 [18:45:29]MH_SAM_APDU [18:45: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 01 00 00 F4 03 04 00 4E 41 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FF FA 03 00 35 04 06 00 83 [18:45:29]Write to MH i2c: E2 02 01 B4 B5 80 0D 02 02 FA 00 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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 01 00 00 F4 03 04 00 4E 41 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FF FA 03 00 35 04 06 00 83 00 00 B4 [18:45:29]Write i2c OK [18:45:29]MH_I2C_Read... [18:45:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:29]Read from MH i2c: E2 [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: E2 03 00 [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: E2 03 00 B4 B5 00 90 00 DD [18:45:29]RAPDU: 90 00 [18:45:29]wFMCommunicate OK [18:45:29]wFMCommunicate request_size=10 [18:45:29]MH_SAM_APDU [18:45:29]CAPDU: 80 0D 02 02 05 EE 33 36 FC 1C [18:45:29]Write to MH i2c: E2 0D 00 B5 B5 80 0D 02 02 05 00 EE 33 36 FC 1C 00 00 5D [18:45:29]Write i2c OK [18:45:29]MH_I2C_Read... [18:45:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:29]Read from MH i2c: E2 [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: E2 03 00 [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: E2 03 00 B5 B5 00 90 00 DE [18:45:29]RAPDU: 90 00 [18:45:29]wFMCommunicate OK [18:45:29]wFMCommunicate request_size=4 [18:45:29]MH_SAM_APDU [18:45:29]CAPDU: 80 0D 03 02 [18:45:29]Write to MH i2c: E2 08 00 B6 B5 80 0D 03 02 00 00 00 00 E6 [18:45:29]Write i2c OK [18:45:29]MH_I2C_Read... [18:45:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:29]Read from MH i2c: E2 [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: E2 0B 00 [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: E2 0B 00 B6 B5 00 1A A4 AF F3 4C AC 2D 50 90 00 BC [18:45:29]RAPDU: 1A A4 AF F3 4C AC 2D 50 90 00 [18:45:29]wFMCommunicate OK [18:45:29]SAM_PROTO_SignData done [18:45:29]FM_MakeSignedData done [18:45:29]CreateOFDProtocolMessage [18:45:29]wFMCommunicate request_size=4 [18:45:29]MH_SAM_APDU [18:45:29]CAPDU: 80 11 00 00 [18:45:29]Write to MH i2c: E2 08 00 B7 B5 80 11 00 00 00 00 00 00 E6 [18:45:29]Write i2c OK [18:45:29]MH_I2C_Read... [18:45:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:29]Read from MH i2c: E2 [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: E2 17 00 [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: E2 17 00 B7 B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 33 [18:45:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:45:29]wFMCommunicate OK [18:45:29]CreateOFDProtocolMessage done [18:45:29]OFDSenderStorePacket 260863 [18:45:29]StoreOFDPacket docnum=260863 [18:45:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 85 2D 07 01 EB 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 01 00 00 F4 03 04 00 4E 41 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FF FA 03 00 35 04 06 00 83 EE 33 36 FC 1C 1A A4 AF F3 4C AC 2D 50 [18:45:29]CheckFolder [18:45:29]dirname=/storage/ofd_packets [18:45:29]CheckFolder done [18:45:29]ProducePacketName [18:45:29]name=ofd_packets/00260863 [18:45:29]NVStorageSaveData ofd_packets/00260863 [18:45:29]File name is /storage/ofd_packets/00260863 [18:45:29]Write 301 bytes [18:45:29]NVStorageSaveData done [18:45:29]OFDSenderStorePacket done [18:45:29]KKMCreateOFDPacket done [18:45:29]NVStorageSaveData kkm_last_timestamp [18:45:29]File name is /storage/kkm_last_timestamp [18:45:29]Write 4 bytes [18:45:29]NVStorageSaveData done [18:45:29]ExternCall_PrintAddStr [18:45:29]wPrintStart [18:45:29]Write to MH i2c: 01 00 00 B8 B5 6D [18:45:29]Write i2c OK [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: 01 [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: 01 07 00 [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: 01 07 00 B8 B5 00 00 00 00 00 FF 0F 82 [18:45:29]RasterBufferAndPrint [18:45:29]line Счет N : (1)1036415 [18:45:29]line ИНН: 02508201610067 [18:45:29]line Контрольно-Кассовый Чек [18:45:29]line ПРОДАЖА [18:45:29]line ТРК (МРК, ГНК) : 23 [18:45:29]line Товар: 2710124500 [18:45:29]line Аи-95-К-5 [18:45:29]line 26.960 * 74.20 [18:45:29]line = 2000.43 [18:45:29]line НДС 12% НСП 1% [18:45:29]line > о реализуемом товаре [18:45:29]line ОКРУГЛЕНИЕ: -0.43 [18:45:29]line ИТОГО: 2000.00 [18:45:29]line Внесено: 2000.00 [18:45:29]line СДАЧА: 0.00 [18:45:29]line НСП 1% : 17.70 [18:45:29]line НДС 12% : 212.43 [18:45:29]line Наличными: 2000.00 [18:45:29]line Безнал.: 0.00 [18:45:29]line Место: АЗС № 94 "Партнер Нефть" [18:45:29]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:45:29]line СНО: Общий режим [18:45:29]line Чек 421 18.08.2024 18:45 [18:45:29]line Смена: 449 ФФД: 1.0 [18:45:29]line ЗНМ: 0300000099 [18:45:29]line РНМ: 0000000000091865 [18:45:29]line Версия ККМ: 001 [18:45:29]line ФМ: 0000000000871820 [18:45:29]line ФД: 260863 [18:45:29]line ФПД: 145059084696604 [18:45:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T184534&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260863&fm=145059084696604&tin=02508201610067®Number=0000000000091865&sum=200000 [18:45:29]written 0, free lines is 4095 [18:45:29]OFD Sender: Processing packet 260863 [packets to send 192, broken 191] [18:45:29]ProducePacketName [18:45:29]name=ofd_packets/00260863 [18:45:29]OFD Sender: To server: pG, [18:45:29]CommunicateWithHost lk.salyk.kg:30040 [18:45:29]ConnectInit lk.salyk.kg [18:45:29]Connected sock=10 [18:45: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 30 0F 01 00 00 85 2D 07 01 EB 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 01 00 00 F4 03 04 00 4E 41 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 FF FA 03 00 35 04 06 00 83 EE 33 36 FC 1C 1A A4 AF F3 4C AC 2D 50 [18:45: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 30 4F 00 00 00 ED 07 47 00 38 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 30 10 04 04 00 FF FA 03 00 F4 03 04 00 A2 EA C1 66 B6 04 01 00 00 2E 89 4E 44 35 2E C9 1F [18:45:29]CommunicateWithHost err = 0 [18:45:29]CheckOFDResponse [18:45:29]1017 (14) - 77093643461234 [18:45:29]1041 (16) - 0000000000871820 [18:45:29]1040 (4) - 260863 [18:45:29]1012 (4) - 18.08.2024 12:35 [18:45:29]1206 (1) - 0 [18:45:29]OFD Sender: Remove packet 260863 [18:45:29]ProducePacketName [18:45:29]name=ofd_packets/00260863 [18:45:29]NVStorageDeleteData [18:45:30]Write to MH i2c: 01 00 00 E3 B5 98 [18:45:30]Write i2c OK [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: 01 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: 01 07 00 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: 01 07 00 E3 B5 00 00 00 00 00 78 0C 23 [18:45:30]RasterBufferAndPrint [18:45:30]line [18:45:30]line [18:45:30]line [18:45:30]line [18:45:30]line [18:45:30]written 0, free lines is 3196 [18:45:30]MH_Cut [18:45:30]Write to MH i2c: D1 01 00 EA B5 01 71 [18:45:30]Write i2c OK [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: D1 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: D1 01 00 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: D1 01 00 EA B5 00 70 [18:45:30]Write to MH i2c: 01 00 00 EB B5 A0 [18:45:30]Write i2c OK [18:45:30]MH_I2C_Read... [18:45:30]OFD Sender: No OFD packet to send [18:45:31]*** Cut start [18:45:31]*** Purtial cut [18:45:31]*** Stage 1: CUTSNS_PIN = 1 [18:45:33]Read from MH i2c: 01 [18:45:33]MH_I2C_Read... [18:45:33]*** Stop cut motor [18:45:33]*** Cut end [18:45:33]Read from MH i2c: 01 07 00 [18:45:33]MH_I2C_Read... [18:45:33]Read from MH i2c: 01 07 00 EB B5 00 00 00 00 00 FF 0F B5 [18:45:33]process_action close_receipt done [18:45:33]requested_data is exist [18:45:33]produce_requested_data [18:45:33]requested_item fm.sn is exist - process it [18:45:33]wFMCommunicate request_size=4 [18:45:33]MH_SAM_APDU [18:45:33]CAPDU: 80 11 00 00 [18:45:33]Write to MH i2c: E2 08 00 EC B5 80 11 00 00 00 00 00 00 1B [18:45:33]Write i2c OK [18:45:33]MH_I2C_Read... [18:45:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:33]Read from MH i2c: E2 [18:45:33]MH_I2C_Read... [18:45:33]Read from MH i2c: E2 17 00 [18:45:33]MH_I2C_Read... [18:45:33]Read from MH i2c: E2 17 00 EC B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 68 [18:45:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:45:33]wFMCommunicate OK [18:45:33]requested_item fd.num is exist - process it [18:45:33]SAM_PROTO_GetFieldsCounters [18:45:33]wFMCommunicate request_size=4 [18:45:33]MH_SAM_APDU [18:45:33]CAPDU: 80 13 00 00 [18:45:33]Write to MH i2c: E2 08 00 ED B5 80 13 00 00 00 00 00 00 1E [18:45:33]Write i2c OK [18:45:33]MH_I2C_Read... [18:45:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:33]Read from MH i2c: E2 [18:45:33]MH_I2C_Read... [18:45:33]Read from MH i2c: E2 62 00 [18:45:33]MH_I2C_Read... [18:45:33]Read from MH i2c: E2 62 00 ED B5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 FF FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A5 01 00 00 5E 04 04 00 A5 01 00 00 57 04 04 00 A6 01 00 00 19 04 04 00 00 00 00 00 90 00 ED [18:45: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 FF FA 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A5 01 00 00 5E 04 04 00 A5 01 00 00 57 04 04 00 A6 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:33]wFMCommunicate OK [18:45:33]SAM_PROTO_GetFieldsCounters done [18:45:33]requested_item shift.num is exist - process it [18:45:33]requested_item shift.opened is exist - process it [18:45:33]req_shift_opened [18:45:33]FM_GetShiftState [18:45:33]SAM_PROTO_GetShiftState [18:45:33]wFMCommunicate request_size=4 [18:45:33]MH_SAM_APDU [18:45:33]CAPDU: 80 13 01 00 [18:45:33]Write to MH i2c: E2 08 00 EE B5 80 13 01 00 00 00 00 00 20 [18:45:33]Write i2c OK [18:45:33]MH_I2C_Read... [18:45:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:33]Read from MH i2c: E2 [18:45:33]MH_I2C_Read... [18:45:33]Read from MH i2c: E2 0E 00 [18:45:33]MH_I2C_Read... [18:45:33]Read from MH i2c: E2 0E 00 EE B5 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 5D [18:45:33]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:45:33]wFMCommunicate OK [18:45:33]SAM_PROTO_GetShiftState done [18:45:33]FM_GetShiftState done [18:45:33]req_shift_opened done [18:45:33]requested_item shift.open_date is exist - process it [18:45:33]req_shift_open_date [18:45:33]req_shift_open_date done [18:45:33]produce_requested_data done [18:45:33]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260863,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:45:33]process_action_free close_receipt [18:45:33]json_value_free [18:45:33]json_value_free done [18:45:33]process_json_proto returns [18:45:33]Send response to host [18:45:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260863,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:45:33]free response buf [18:45:33]execute_script done [18:45:33]execute_script returns [18:45:33]free content buf [18:45:33]Sock 7.Close socket [18:45:33]Sock 7.Thread stoped [18:45:35]OFD Sender: No OFD packet to send [18:45:40]OFD Sender: No OFD packet to send [18:45:45]OFD Sender: No OFD packet to send [18:45:50]OFD Sender: No OFD packet to send [18:45:55]OFD Sender: No OFD packet to send [18:46:00]OFD Sender: No OFD packet to send [18:46:05]OFD Sender: No OFD packet to send [18:46:10]OFD Sender: No OFD packet to send [18:46:15]OFD Sender: No OFD packet to send [18:46:20]OFD Sender: No OFD packet to send [18:46:25]OFD Sender: No OFD packet to send [18:46:30]OFD Sender: No OFD packet to send [18:46:35]OFD Sender: No OFD packet to send [18:46:40]OFD Sender: No OFD packet to send [18:46:44]accept exits with 9 [18:46:44]New connection [18:46:44]New thread 3066473828 created [18:46:44]Thread 3066617188 joined [18:46:44]Waiting for new connection... [18:46:44] Sock 9.Parse request [18:46:44]Sock 9.Check first char [18:46:44]Sock 9.First char is OK [18:46:44]request: POST /json_proto HTTP/1.0 [18:46:44]Method: POST [18:46:44]URL: /json_proto [18:46:44]Method is POST - this is cgi request [18:46:44]url: /json_proto [18:46:44]query_string will be loaded in cgi processing [18:46:44]execute_cgi json_proto POST (null) [18:46:44]execute_cgi path=json_proto method=POST [18:46:44]POST find Content-Length [18:46:44]Host: 172.17.55.133:8080 [18:46:44]Content-Length: 688 [18:46:44]Content-Type: application/json [18:46:44] [18:46:44]POST finish read [18:46:44]Found Content-Length = 688 [18:46:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:44]execute_script... [18:46: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)1036416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:44]POST & json_proto [18:46:44]process_json_proto [18:46:44]json parsed OK: [18:46:44]protocol is kg_v1.0 [18:46:44]action value=close_receipt [18:46:44]process_action close_receipt [18:46:44]cmd_close_receipt [18:46:44]MH_GetDate [18:46:44]Write to MH i2c: F0 00 00 EF B5 93 [18:46:44]Write i2c OK [18:46:44]MH_I2C_Read... [18:46:44]Read from MH i2c: F0 [18:46:44]MH_I2C_Read... [18:46:44]Read from MH i2c: F0 09 00 [18:46:44]MH_I2C_Read... [18:46:44]Read from MH i2c: F0 09 00 EF B5 00 9B 41 C2 66 34 48 D8 65 59 [18:46:44]GetLastDocTimeStamp 1724006734 [18:46:44]current date 1724006811 [18:46:44]FM_GetShiftState [18:46:44]SAM_PROTO_GetShiftState [18:46:44]wFMCommunicate request_size=4 [18:46:44]MH_SAM_APDU [18:46:44]CAPDU: 80 13 01 00 [18:46:44]Write to MH i2c: E2 08 00 F0 B5 80 13 01 00 00 00 00 00 22 [18:46:44]Write i2c OK [18:46:44]MH_I2C_Read... [18:46:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:44]Read from MH i2c: E2 [18:46:44]MH_I2C_Read... [18:46:44]Read from MH i2c: E2 0E 00 [18:46:44]MH_I2C_Read... [18:46:44]Read from MH i2c: E2 0E 00 F0 B5 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 5F [18:46:44]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:46:44]wFMCommunicate OK [18:46:44]SAM_PROTO_GetShiftState done [18:46:44]FM_GetShiftState done [18:46:44]opened in 1723940556 [18:46:44]opened+sec_in_day 1724026956 [18:46:44]quantity*price = 150037 [18:46:44]sum+1 = 150039 [18:46:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 422 18.08.2024 18:46 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260864 ФПД: 103201954473671 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T184651&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260864&fm=103201954473671&tin=02508201610067®Number=0000000000091865&sum=150000 [18:46:46]StoreToDocumentArchive [18:46:46]shift 449 fd 260864 [18:46:46]save to /storage/0449/doc_00260864 [18:46:46]save last doc name /storage/0449/doc_00260864 to /storage/kkm_last_doc_name [18:46:46]save OK [18:46:46]Clear old archive folders... [18:46:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:46:46]tlvbuf is 004A1D20 [18:46:46]SAM_PROTO_ClearQueue [18:46:46]wFMCommunicate request_size=4 [18:46:46]MH_SAM_APDU [18:46:46]CAPDU: 80 09 00 00 [18:46:46]Write to MH i2c: E2 08 00 FD B5 80 09 00 00 00 00 00 00 24 [18:46:46]Write i2c OK [18:46:46]MH_I2C_Read... [18:46:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:46]Read from MH i2c: E2 [18:46:46]MH_I2C_Read... [18:46:46]Read from MH i2c: E2 03 00 [18:46:46]MH_I2C_Read... [18:46:46]Read from MH i2c: E2 03 00 FD B5 00 90 00 26 [18:46:46]RAPDU: 90 00 [18:46:46]wFMCommunicate OK [18:46:46]SAM_PROTO_ClearQueue done [18:46:46]KKMCreateOFDPacket [18:46:46]OFDProtocolAddRootSTLVToBuf [18:46:46]FM_MakeSignedData [18:46:46]FM_MakeSignedData [18:46:46]SAM_PROTO_SignData [18:46:46]wFMCommunicate request_size=4 [18:46:46]MH_SAM_APDU [18:46:46]CAPDU: 80 0D 01 02 [18:46:46]Write to MH i2c: E2 08 00 FE B5 80 0D 01 02 00 00 00 00 2C [18:46:46]Write i2c OK [18:46:46]MH_I2C_Read... [18:46:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:46]Read from MH i2c: E2 [18:46:46]MH_I2C_Read... [18:46:46]Read from MH i2c: E2 03 00 [18:46:46]MH_I2C_Read... [18:46:46]Read from MH i2c: E2 03 00 FE B5 00 90 00 27 [18:46:46]RAPDU: 90 00 [18:46:46]wFMCommunicate OK [18:46:46]wFMCommunicate request_size=255 [18:46:46]MH_SAM_APDU [18:46:46]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 01 00 00 F4 03 04 00 9B 41 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 00 FB 03 00 35 04 06 00 [18:46:46]Write to MH i2c: E2 02 01 FF B5 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 01 00 00 F4 03 04 00 9B 41 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 00 FB 03 00 35 04 06 00 00 00 78 [18:46:46]Write i2c OK [18:46:46]MH_I2C_Read... [18:46:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:46]Read from MH i2c: E2 [18:46:46]MH_I2C_Read... [18:46:46]Read from MH i2c: E2 03 00 [18:46:46]MH_I2C_Read... [18:46:46]Read from MH i2c: E2 03 00 FF B5 00 90 00 28 [18:46:46]RAPDU: 90 00 [18:46:46]wFMCommunicate OK [18:46:46]wFMCommunicate request_size=11 [18:46:46]MH_SAM_APDU [18:46:46]CAPDU: 80 0D 02 02 06 5D DC 93 D6 26 C7 [18:46:46]Write to MH i2c: E2 0E 00 00 B6 80 0D 02 02 06 00 5D DC 93 D6 26 C7 00 00 CB [18:46:46]Write i2c OK [18:46:46]MH_I2C_Read... [18:46:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:46]Read from MH i2c: E2 [18:46:46]MH_I2C_Read... [18:46:46]Read from MH i2c: E2 03 00 [18:46:46]MH_I2C_Read... [18:46:46]Read from MH i2c: E2 03 00 00 B6 00 90 00 2A [18:46:46]RAPDU: 90 00 [18:46:46]wFMCommunicate OK [18:46:46]wFMCommunicate request_size=4 [18:46:46]MH_SAM_APDU [18:46:46]CAPDU: 80 0D 03 02 [18:46:46]Write to MH i2c: E2 08 00 01 B6 80 0D 03 02 00 00 00 00 32 [18:46:46]Write i2c OK [18:46:46]MH_I2C_Read... [18:46:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:46]Read from MH i2c: E2 [18:46:46]MH_I2C_Read... [18:46:46]Read from MH i2c: E2 0B 00 [18:46:46]MH_I2C_Read... [18:46:46]Read from MH i2c: E2 0B 00 01 B6 00 D3 9B 8F C7 01 91 2C 31 90 00 E6 [18:46:46]RAPDU: D3 9B 8F C7 01 91 2C 31 90 00 [18:46:46]wFMCommunicate OK [18:46:46]SAM_PROTO_SignData done [18:46:46]FM_MakeSignedData done [18:46:46]CreateOFDProtocolMessage [18:46:46]wFMCommunicate request_size=4 [18:46:46]MH_SAM_APDU [18:46:46]CAPDU: 80 11 00 00 [18:46:46]Write to MH i2c: E2 08 00 02 B6 80 11 00 00 00 00 00 00 32 [18:46:46]Write i2c OK [18:46:46]MH_I2C_Read... [18:46:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:46]Read from MH i2c: E2 [18:46:46]MH_I2C_Read... [18:46:46]Read from MH i2c: E2 17 00 [18:46:46]MH_I2C_Read... [18:46:46]Read from MH i2c: E2 17 00 02 B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 7F [18:46:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:46:46]wFMCommunicate OK [18:46:46]CreateOFDProtocolMessage done [18:46:46]OFDSenderStorePacket 260864 [18:46:46]StoreOFDPacket docnum=260864 [18:46:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 13 9E 08 01 BD D1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 01 00 00 F4 03 04 00 9B 41 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 00 FB 03 00 35 04 06 00 5D DC 93 D6 26 C7 D3 9B 8F C7 01 91 2C 31 [18:46:46]CheckFolder [18:46:46]dirname=/storage/ofd_packets [18:46:46]CheckFolder done [18:46:46]ProducePacketName [18:46:46]name=ofd_packets/00260864 [18:46:46]NVStorageSaveData ofd_packets/00260864 [18:46:46]File name is /storage/ofd_packets/00260864 [18:46:46]Write 302 bytes [18:46:46]NVStorageSaveData done [18:46:46]OFDSenderStorePacket done [18:46:46]KKMCreateOFDPacket done [18:46:46]NVStorageSaveData kkm_last_timestamp [18:46:46]File name is /storage/kkm_last_timestamp [18:46:46]Write 4 bytes [18:46:46]NVStorageSaveData done [18:46:46]ExternCall_PrintAddStr [18:46:46]wPrintStart [18:46:46]Write to MH i2c: 01 00 00 03 B6 B9 [18:46:46]Write i2c OK [18:46:46]MH_I2C_Read... [18:46:46]Read from MH i2c: 01 [18:46:46]MH_I2C_Read... [18:46:46]Read from MH i2c: 01 07 00 [18:46:46]MH_I2C_Read... [18:46:46]Read from MH i2c: 01 07 00 03 B6 00 00 00 00 00 FF 0F CE [18:46:46]RasterBufferAndPrint [18:46:46]line Счет N : (1)1036416 [18:46:46]line ИНН: 02508201610067 [18:46:46]line Контрольно-Кассовый Чек [18:46:46]line ПРОДАЖА [18:46:46]line ТРК (МРК, ГНК) : 33 [18:46:46]line Товар: 2710194210 [18:46:46]line ДТ(л)-К-4 [18:46:46]line 19.690 * 76.20 [18:46:46]line = 1500.38 [18:46:46]line НДС 12% НСП 1% [18:46:46]line > о реализуемом товаре [18:46:46]line ОКРУГЛЕНИЕ: -0.38 [18:46:46]line ИТОГО: 1500.00 [18:46:46]line Внесено: 1500.00 [18:46:46]line СДАЧА: 0.00 [18:46:46]line НСП 1% : 13.28 [18:46:46]line НДС 12% : 159.33 [18:46:46]line Наличными: 1500.00 [18:46:46]line Безнал.: 0.00 [18:46:46]line Место: АЗС № 94 "Партнер Нефть" [18:46:46]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:46:46]line СНО: Общий режим [18:46:46]line Чек 422 18.08.2024 18:46 [18:46:46]line Смена: 449 ФФД: 1.0 [18:46:46]line ЗНМ: 0300000099 [18:46:46]line РНМ: 0000000000091865 [18:46:46]line Версия ККМ: 001 [18:46:46]line ФМ: 0000000000871820 [18:46:46]line ФД: 260864 [18:46:46]line ФПД: 103201954473671 [18:46:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T184651&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260864&fm=103201954473671&tin=02508201610067®Number=0000000000091865&sum=150000 [18:46:46]OFD Sender: Processing packet 260864 [packets to send 192, broken 191] [18:46:46]ProducePacketName [18:46:46]name=ofd_packets/00260864 [18:46:46]OFD Sender: To server: pG, [18:46:46]CommunicateWithHost lk.salyk.kg:30040 [18:46:46]ConnectInit lk.salyk.kg [18:46:46]written 0, free lines is 4095 [18:46:47]Connected sock=7 [18:46: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 30 10 01 00 00 13 9E 08 01 BD D1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 01 00 00 F4 03 04 00 9B 41 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 00 FB 03 00 35 04 06 00 5D DC 93 D6 26 C7 D3 9B 8F C7 01 91 2C 31 [18:46: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 30 4F 00 00 00 C8 D8 47 00 40 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 30 10 04 04 00 00 FB 03 00 F4 03 04 00 EF EA C1 66 B6 04 01 00 00 B5 1B FD 64 0B 7F 39 07 [18:46:47]CommunicateWithHost err = 0 [18:46:47]CheckOFDResponse [18:46:47]1017 (14) - 77093643461234 [18:46:47]1041 (16) - 0000000000871820 [18:46:47]1040 (4) - 260864 [18:46:47]1012 (4) - 18.08.2024 12:37 [18:46:47]1206 (1) - 0 [18:46:47]OFD Sender: Remove packet 260864 [18:46:47]ProducePacketName [18:46:47]name=ofd_packets/00260864 [18:46:47]NVStorageDeleteData [18:46:47]Write to MH i2c: 01 00 00 2E B6 E4 [18:46:47]Write i2c OK [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: 01 [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: 01 07 00 [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: 01 07 00 2E B6 00 00 00 00 00 77 0C 6E [18:46:47]RasterBufferAndPrint [18:46:47]line [18:46:47]line [18:46:47]line [18:46:47]line [18:46:47]line [18:46:47]written 0, free lines is 3193 [18:46:47]MH_Cut [18:46:47]Write to MH i2c: D1 01 00 35 B6 01 BD [18:46:47]Write i2c OK [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: D1 [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: D1 01 00 [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: D1 01 00 35 B6 00 BC [18:46:47]Write to MH i2c: 01 00 00 36 B6 EC [18:46:47]Write i2c OK [18:46:47]MH_I2C_Read... [18:46:47]OFD Sender: No OFD packet to send [18:46:48]*** Cut start [18:46:48]*** Purtial cut [18:46:48]*** Stage 1: CUTSNS_PIN = 1 [18:46:50]Read from MH i2c: 01 [18:46:50]MH_I2C_Read... [18:46:50]*** Stop cut motor [18:46:50]*** Cut end [18:46:50]Read from MH i2c: 01 07 00 [18:46:50]MH_I2C_Read... [18:46:50]Read from MH i2c: 01 07 00 36 B6 00 00 00 00 00 FF 0F 01 [18:46:50]process_action close_receipt done [18:46:50]requested_data is exist [18:46:50]produce_requested_data [18:46:50]requested_item fm.sn is exist - process it [18:46:50]wFMCommunicate request_size=4 [18:46:50]MH_SAM_APDU [18:46:50]CAPDU: 80 11 00 00 [18:46:50]Write to MH i2c: E2 08 00 37 B6 80 11 00 00 00 00 00 00 67 [18:46:50]Write i2c OK [18:46:50]MH_I2C_Read... [18:46:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:50]Read from MH i2c: E2 [18:46:50]MH_I2C_Read... [18:46:50]Read from MH i2c: E2 17 00 [18:46:50]MH_I2C_Read... [18:46:50]Read from MH i2c: E2 17 00 37 B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B4 [18:46:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:46:50]wFMCommunicate OK [18:46:50]requested_item fd.num is exist - process it [18:46:50]SAM_PROTO_GetFieldsCounters [18:46:50]wFMCommunicate request_size=4 [18:46:50]MH_SAM_APDU [18:46:50]CAPDU: 80 13 00 00 [18:46:50]Write to MH i2c: E2 08 00 38 B6 80 13 00 00 00 00 00 00 6A [18:46:50]Write i2c OK [18:46:50]MH_I2C_Read... [18:46:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:46:50]Read from MH i2c: E2 [18:46:50]MH_I2C_Read... [18:46:50]Read from MH i2c: E2 62 00 [18:46:50]MH_I2C_Read... [18:46:50]Read from MH i2c: E2 62 00 38 B6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 00 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A6 01 00 00 5E 04 04 00 A6 01 00 00 57 04 04 00 A7 01 00 00 19 04 04 00 00 00 00 00 90 00 3E [18:46: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 00 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A6 01 00 00 5E 04 04 00 A6 01 00 00 57 04 04 00 A7 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:46:50]wFMCommunicate OK [18:46:50]SAM_PROTO_GetFieldsCounters done [18:46:50]requested_item shift.num is exist - process it [18:46:50]requested_item shift.opened is exist - process it [18:46:50]req_shift_opened [18:46:50]FM_GetShiftState [18:46:50]SAM_PROTO_GetShiftState [18:46:50]wFMCommunicate request_size=4 [18:46:50]MH_SAM_APDU [18:46:50]CAPDU: 80 13 01 00 [18:46:50]Write to MH i2c: E2 08 00 39 B6 80 13 01 00 00 00 00 00 6C [18:46:50]Write i2c OK [18:46:50]MH_I2C_Read... [18:46:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:50]Read from MH i2c: E2 [18:46:50]MH_I2C_Read... [18:46:50]Read from MH i2c: E2 0E 00 [18:46:50]MH_I2C_Read... [18:46:50]Read from MH i2c: E2 0E 00 39 B6 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A9 [18:46:50]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:46:50]wFMCommunicate OK [18:46:50]SAM_PROTO_GetShiftState done [18:46:50]FM_GetShiftState done [18:46:50]req_shift_opened done [18:46:50]requested_item shift.open_date is exist - process it [18:46:50]req_shift_open_date [18:46:50]req_shift_open_date done [18:46:50]produce_requested_data done [18:46:50]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260864,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:46:50]process_action_free close_receipt [18:46:50]json_value_free [18:46:50]json_value_free done [18:46:50]process_json_proto returns [18:46:50]Send response to host [18:46:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260864,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:46:50]free response buf [18:46:50]execute_script done [18:46:50]execute_script returns [18:46:50]free content buf [18:46:50]Sock 9.Close socket [18:46:50]Sock 9.Thread stoped [18:46:52]OFD Sender: No OFD packet to send [18:46:57]OFD Sender: No OFD packet to send [18:47:02]OFD Sender: No OFD packet to send [18:47:07]OFD Sender: No OFD packet to send [18:47:12]OFD Sender: No OFD packet to send [18:47:17]OFD Sender: No OFD packet to send [18:47:22]OFD Sender: No OFD packet to send [18:47:27]OFD Sender: No OFD packet to send [18:47:32]OFD Sender: No OFD packet to send [18:47:37]OFD Sender: No OFD packet to send [18:47:38]accept exits with 10 [18:47:38]New connection [18:47:38]New thread 3066617188 created [18:47:38]Thread 3066473828 joined [18:47:38]Waiting for new connection... [18:47:38] Sock 10.Parse request [18:47:38]Sock 10.Check first char [18:47:38]Sock 10.First char is OK [18:47:38]request: POST /json_proto HTTP/1.0 [18:47:38]Method: POST [18:47:38]URL: /json_proto [18:47:38]Method is POST - this is cgi request [18:47:38]url: /json_proto [18:47:38]query_string will be loaded in cgi processing [18:47:38]execute_cgi json_proto POST (null) [18:47:38]execute_cgi path=json_proto method=POST [18:47:38]POST find Content-Length [18:47:38]Host: 172.17.55.133:8080 [18:47:38]Content-Length: 683 [18:47:38]Content-Type: application/json [18:47:38] [18:47:38]POST finish read [18:47:38]Found Content-Length = 683 [18:47:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036417", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:38]execute_script... [18:47:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036417", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:38]POST & json_proto [18:47:38]process_json_proto [18:47:38]json parsed OK: [18:47:38]protocol is kg_v1.0 [18:47:38]action value=close_receipt [18:47:38]process_action close_receipt [18:47:38]cmd_close_receipt [18:47:38]MH_GetDate [18:47:38]Write to MH i2c: F0 00 00 3A B6 DF [18:47:38]Write i2c OK [18:47:38]MH_I2C_Read... [18:47:38]Read from MH i2c: F0 [18:47:38]MH_I2C_Read... [18:47:38]Read from MH i2c: F0 09 00 [18:47:38]MH_I2C_Read... [18:47:38]Read from MH i2c: F0 09 00 3A B6 00 D0 41 C2 66 34 48 D8 65 DA [18:47:38]GetLastDocTimeStamp 1724006811 [18:47:38]current date 1724006864 [18:47:38]FM_GetShiftState [18:47:38]SAM_PROTO_GetShiftState [18:47:38]wFMCommunicate request_size=4 [18:47:38]MH_SAM_APDU [18:47:38]CAPDU: 80 13 01 00 [18:47:38]Write to MH i2c: E2 08 00 3B B6 80 13 01 00 00 00 00 00 6E [18:47:38]Write i2c OK [18:47:38]MH_I2C_Read... [18:47:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:38]Read from MH i2c: E2 [18:47:38]MH_I2C_Read... [18:47:38]Read from MH i2c: E2 0E 00 [18:47:38]MH_I2C_Read... [18:47:38]Read from MH i2c: E2 0E 00 3B B6 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 AB [18:47:38]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:47:38]wFMCommunicate OK [18:47:38]SAM_PROTO_GetShiftState done [18:47:38]FM_GetShiftState done [18:47:38]opened in 1723940556 [18:47:38]opened+sec_in_day 1724026956 [18:47:38]quantity*price = 100021 [18:47:38]sum+1 = 100023 [18:47:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 423 18.08.2024 18:47 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260865 ФПД: 633454396909 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T184745&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260865&fm=633454396909&tin=02508201610067®Number=0000000000091865&sum=100000 [18:47:39]StoreToDocumentArchive [18:47:39]shift 449 fd 260865 [18:47:39]save to /storage/0449/doc_00260865 [18:47:39]save last doc name /storage/0449/doc_00260865 to /storage/kkm_last_doc_name [18:47:39]save OK [18:47:39]Clear old archive folders... [18:47:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:47:39]tlvbuf is 00387EC0 [18:47:39]SAM_PROTO_ClearQueue [18:47:39]wFMCommunicate request_size=4 [18:47:39]MH_SAM_APDU [18:47:39]CAPDU: 80 09 00 00 [18:47:39]Write to MH i2c: E2 08 00 48 B6 80 09 00 00 00 00 00 00 70 [18:47:39]Write i2c OK [18:47:39]MH_I2C_Read... [18:47:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:47:39]Read from MH i2c: E2 [18:47:39]MH_I2C_Read... [18:47:39]Read from MH i2c: E2 03 00 [18:47:39]MH_I2C_Read... [18:47:39]Read from MH i2c: E2 03 00 48 B6 00 90 00 72 [18:47:39]RAPDU: 90 00 [18:47:39]wFMCommunicate OK [18:47:39]SAM_PROTO_ClearQueue done [18:47:39]KKMCreateOFDPacket [18:47:39]OFDProtocolAddRootSTLVToBuf [18:47:39]FM_MakeSignedData [18:47:39]FM_MakeSignedData [18:47:39]SAM_PROTO_SignData [18:47:39]wFMCommunicate request_size=4 [18:47:39]MH_SAM_APDU [18:47:39]CAPDU: 80 0D 01 02 [18:47:39]Write to MH i2c: E2 08 00 49 B6 80 0D 01 02 00 00 00 00 78 [18:47:39]Write i2c OK [18:47:39]MH_I2C_Read... [18:47:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:47:39]Read from MH i2c: E2 [18:47:39]MH_I2C_Read... [18:47:39]Read from MH i2c: E2 03 00 [18:47:39]MH_I2C_Read... [18:47:39]Read from MH i2c: E2 03 00 49 B6 00 90 00 73 [18:47:39]RAPDU: 90 00 [18:47:39]wFMCommunicate OK [18:47:39]wFMCommunicate request_size=255 [18:47:39]MH_SAM_APDU [18:47: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 D1 41 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 01 FB 03 00 35 04 06 00 00 [18:47:39]Write to MH i2c: E2 02 01 4A B6 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 D1 41 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 01 FB 03 00 35 04 06 00 00 00 00 C5 [18:47:39]Write i2c OK [18:47:39]MH_I2C_Read... [18:47:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:40]Read from MH i2c: E2 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: E2 03 00 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: E2 03 00 4A B6 00 90 00 74 [18:47:40]RAPDU: 90 00 [18:47:40]wFMCommunicate OK [18:47:40]wFMCommunicate request_size=10 [18:47:40]MH_SAM_APDU [18:47:40]CAPDU: 80 0D 02 02 05 93 7C D3 05 ED [18:47:40]Write to MH i2c: E2 0D 00 4B B6 80 0D 02 02 05 00 93 7C D3 05 ED 00 00 59 [18:47:40]Write i2c OK [18:47:40]MH_I2C_Read... [18:47:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:40]Read from MH i2c: E2 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: E2 03 00 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: E2 03 00 4B B6 00 90 00 75 [18:47:40]RAPDU: 90 00 [18:47:40]wFMCommunicate OK [18:47:40]wFMCommunicate request_size=4 [18:47:40]MH_SAM_APDU [18:47:40]CAPDU: 80 0D 03 02 [18:47:40]Write to MH i2c: E2 08 00 4C B6 80 0D 03 02 00 00 00 00 7D [18:47:40]Write i2c OK [18:47:40]MH_I2C_Read... [18:47:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:47:40]Read from MH i2c: E2 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: E2 0B 00 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: E2 0B 00 4C B6 00 4B 7D E9 CE B5 F9 18 96 90 00 59 [18:47:40]RAPDU: 4B 7D E9 CE B5 F9 18 96 90 00 [18:47:40]wFMCommunicate OK [18:47:40]SAM_PROTO_SignData done [18:47:40]FM_MakeSignedData done [18:47:40]CreateOFDProtocolMessage [18:47:40]wFMCommunicate request_size=4 [18:47:40]MH_SAM_APDU [18:47:40]CAPDU: 80 11 00 00 [18:47:40]Write to MH i2c: E2 08 00 4D B6 80 11 00 00 00 00 00 00 7D [18:47:40]Write i2c OK [18:47:40]MH_I2C_Read... [18:47:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:40]Read from MH i2c: E2 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: E2 17 00 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: E2 17 00 4D B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 CA [18:47:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:47:40]wFMCommunicate OK [18:47:40]CreateOFDProtocolMessage done [18:47:40]OFDSenderStorePacket 260865 [18:47:40]StoreOFDPacket docnum=260865 [18:47:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 B4 F7 07 01 13 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 D1 41 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 01 FB 03 00 35 04 06 00 00 93 7C D3 05 ED 4B 7D E9 CE B5 F9 18 96 [18:47:40]CheckFolder [18:47:40]dirname=/storage/ofd_packets [18:47:40]CheckFolder done [18:47:40]ProducePacketName [18:47:40]name=ofd_packets/00260865 [18:47:40]NVStorageSaveData ofd_packets/00260865 [18:47:40]File name is /storage/ofd_packets/00260865 [18:47:40]Write 301 bytes [18:47:40]NVStorageSaveData done [18:47:40]OFDSenderStorePacket done [18:47:40]KKMCreateOFDPacket done [18:47:40]NVStorageSaveData kkm_last_timestamp [18:47:40]File name is /storage/kkm_last_timestamp [18:47:40]Write 4 bytes [18:47:40]NVStorageSaveData done [18:47:40]ExternCall_PrintAddStr [18:47:40]wPrintStart [18:47:40]Write to MH i2c: 01 00 00 4E B6 04 [18:47:40]Write i2c OK [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: 01 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: 01 07 00 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: 01 07 00 4E B6 00 00 00 00 00 FF 0F 19 [18:47:40]RasterBufferAndPrint [18:47:40]line Счет N : (1)1036417 [18:47:40]line ИНН: 02508201610067 [18:47:40]line Контрольно-Кассовый Чек [18:47:40]line ПРОДАЖА [18:47:40]line ТРК (МРК, ГНК) : 13 [18:47:40]line Товар: 2710124500 [18:47:40]line Аи-95-К-5 [18:47:40]line 13.480 * 74.20 [18:47:40]line = 1000.22 [18:47:40]line НДС 12% НСП 1% [18:47:40]line > о реализуемом товаре [18:47:40]line ОКРУГЛЕНИЕ: -0.22 [18:47:40]line ИТОГО: 1000.00 [18:47:40]line Внесено: 1000.00 [18:47:40]line СДАЧА: 0.00 [18:47:40]line НСП 1% : 8.85 [18:47:40]line НДС 12% : 106.22 [18:47:40]line Наличными: 1000.00 [18:47:40]line Безнал.: 0.00 [18:47:40]line Место: АЗС № 94 "Партнер Нефть" [18:47:40]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:47:40]line СНО: Общий режим [18:47:40]line Чек 423 18.08.2024 18:47 [18:47:40]line Смена: 449 ФФД: 1.0 [18:47:40]line ЗНМ: 0300000099 [18:47:40]line РНМ: 0000000000091865 [18:47:40]line Версия ККМ: 001 [18:47:40]line ФМ: 0000000000871820 [18:47:40]line ФД: 260865 [18:47:40]line ФПД: 633454396909 [18:47:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T184745&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260865&fm=633454396909&tin=02508201610067®Number=0000000000091865&sum=100000 [18:47:40]written 0, free lines is 4095 [18:47:40]OFD Sender: Processing packet 260865 [packets to send 192, broken 191] [18:47:40]ProducePacketName [18:47:40]name=ofd_packets/00260865 [18:47:40]OFD Sender: To server: pG, [18:47:40]CommunicateWithHost lk.salyk.kg:30040 [18:47:40]ConnectInit lk.salyk.kg [18:47:40]Connected sock=9 [18:47: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 30 0F 01 00 00 B4 F7 07 01 13 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 D1 41 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 01 FB 03 00 35 04 06 00 00 93 7C D3 05 ED 4B 7D E9 CE B5 F9 18 96 [18:47: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 30 4F 00 00 00 98 E8 47 00 CF 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 30 10 04 04 00 01 FB 03 00 F4 03 04 00 24 EB C1 66 B6 04 01 00 00 A5 EB 19 4B 3E 91 53 AD [18:47:40]CommunicateWithHost err = 0 [18:47:40]CheckOFDResponse [18:47:40]1017 (14) - 77093643461234 [18:47:40]1041 (16) - 0000000000871820 [18:47:40]1040 (4) - 260865 [18:47:40]1012 (4) - 18.08.2024 12:37 [18:47:40]1206 (1) - 0 [18:47:40]OFD Sender: Remove packet 260865 [18:47:40]ProducePacketName [18:47:40]name=ofd_packets/00260865 [18:47:40]NVStorageDeleteData [18:47:40]Write to MH i2c: 01 00 00 79 B6 2F [18:47:40]Write i2c OK [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: 01 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: 01 07 00 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: 01 07 00 79 B6 00 00 00 00 00 79 0C BB [18:47:40]RasterBufferAndPrint [18:47:40]line [18:47:40]line [18:47:40]line [18:47:40]line [18:47:40]line [18:47:40]written 0, free lines is 3197 [18:47:40]MH_Cut [18:47:40]Write to MH i2c: D1 01 00 80 B6 01 08 [18:47:40]Write i2c OK [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: D1 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: D1 01 00 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: D1 01 00 80 B6 00 07 [18:47:40]Write to MH i2c: 01 00 00 81 B6 37 [18:47:40]Write i2c OK [18:47:40]MH_I2C_Read... [18:47:41]OFD Sender: No OFD packet to send [18:47:41]*** Cut start [18:47:41]*** Purtial cut [18:47:41]*** Stage 1: CUTSNS_PIN = 1 [18:47:43]Read from MH i2c: 01 [18:47:44]MH_I2C_Read... [18:47:44]*** Stop cut motor [18:47:44]*** Cut end [18:47:44]Read from MH i2c: 01 07 00 [18:47:44]MH_I2C_Read... [18:47:44]Read from MH i2c: 01 07 00 81 B6 00 00 00 00 00 FF 0F 4C [18:47:44]process_action close_receipt done [18:47:44]requested_data is exist [18:47:44]produce_requested_data [18:47:44]requested_item fm.sn is exist - process it [18:47:44]wFMCommunicate request_size=4 [18:47:44]MH_SAM_APDU [18:47:44]CAPDU: 80 11 00 00 [18:47:44]Write to MH i2c: E2 08 00 82 B6 80 11 00 00 00 00 00 00 B2 [18:47:44]Write i2c OK [18:47:44]MH_I2C_Read... [18:47:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:44]Read from MH i2c: E2 [18:47:44]MH_I2C_Read... [18:47:44]Read from MH i2c: E2 17 00 [18:47:44]MH_I2C_Read... [18:47:44]Read from MH i2c: E2 17 00 82 B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 FF [18:47:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:47:44]wFMCommunicate OK [18:47:44]requested_item fd.num is exist - process it [18:47:44]SAM_PROTO_GetFieldsCounters [18:47:44]wFMCommunicate request_size=4 [18:47:44]MH_SAM_APDU [18:47:44]CAPDU: 80 13 00 00 [18:47:44]Write to MH i2c: E2 08 00 83 B6 80 13 00 00 00 00 00 00 B5 [18:47:44]Write i2c OK [18:47:44]MH_I2C_Read... [18:47:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:47:44]Read from MH i2c: E2 [18:47:44]MH_I2C_Read... [18:47:44]Read from MH i2c: E2 62 00 [18:47:44]MH_I2C_Read... [18:47:44]Read from MH i2c: E2 62 00 83 B6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 01 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A7 01 00 00 5E 04 04 00 A7 01 00 00 57 04 04 00 A8 01 00 00 19 04 04 00 00 00 00 00 90 00 8D [18:47: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 01 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A7 01 00 00 5E 04 04 00 A7 01 00 00 57 04 04 00 A8 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:47:44]wFMCommunicate OK [18:47:44]SAM_PROTO_GetFieldsCounters done [18:47:44]requested_item shift.num is exist - process it [18:47:44]requested_item shift.opened is exist - process it [18:47:44]req_shift_opened [18:47:44]FM_GetShiftState [18:47:44]SAM_PROTO_GetShiftState [18:47:44]wFMCommunicate request_size=4 [18:47:44]MH_SAM_APDU [18:47:44]CAPDU: 80 13 01 00 [18:47:44]Write to MH i2c: E2 08 00 84 B6 80 13 01 00 00 00 00 00 B7 [18:47:44]Write i2c OK [18:47:44]MH_I2C_Read... [18:47:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:44]Read from MH i2c: E2 [18:47:44]MH_I2C_Read... [18:47:44]Read from MH i2c: E2 0E 00 [18:47:44]MH_I2C_Read... [18:47:44]Read from MH i2c: E2 0E 00 84 B6 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F4 [18:47:44]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:47:44]wFMCommunicate OK [18:47:44]SAM_PROTO_GetShiftState done [18:47:44]FM_GetShiftState done [18:47:44]req_shift_opened done [18:47:44]requested_item shift.open_date is exist - process it [18:47:44]req_shift_open_date [18:47:44]req_shift_open_date done [18:47:44]produce_requested_data done [18:47:44]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260865,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:47:44]process_action_free close_receipt [18:47:44]json_value_free [18:47:44]json_value_free done [18:47:44]process_json_proto returns [18:47:44]Send response to host [18:47:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260865,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:47:44]free response buf [18:47:44]execute_script done [18:47:44]execute_script returns [18:47:44]free content buf [18:47:44]Sock 10.Close socket [18:47:44]Sock 10.Thread stoped [18:47:46]OFD Sender: No OFD packet to send [18:47:51]OFD Sender: No OFD packet to send [18:47:56]OFD Sender: No OFD packet to send [18:48:01]OFD Sender: No OFD packet to send [18:48:06]OFD Sender: No OFD packet to send [18:48:11]OFD Sender: No OFD packet to send [18:48:16]OFD Sender: No OFD packet to send [18:48:21]OFD Sender: No OFD packet to send [18:48:26]OFD Sender: No OFD packet to send [18:48:31]OFD Sender: No OFD packet to send [18:48:36]OFD Sender: No OFD packet to send [18:48:41]OFD Sender: No OFD packet to send [18:48:46]OFD Sender: No OFD packet to send [18:48:51]OFD Sender: No OFD packet to send [18:48:56]OFD Sender: No OFD packet to send [18:49:01]OFD Sender: No OFD packet to send [18:49:06]OFD Sender: No OFD packet to send [18:49:11]OFD Sender: No OFD packet to send [18:49:16]OFD Sender: No OFD packet to send [18:49:21]OFD Sender: No OFD packet to send [18:49:26]OFD Sender: No OFD packet to send [18:49:31]OFD Sender: No OFD packet to send [18:49:36]OFD Sender: No OFD packet to send [18:49:41]OFD Sender: No OFD packet to send [18:49:46]OFD Sender: No OFD packet to send [18:49:51]OFD Sender: No OFD packet to send [18:49:56]OFD Sender: No OFD packet to send [18:50:01]OFD Sender: No OFD packet to send [18:50:06]OFD Sender: No OFD packet to send [18:50:11]OFD Sender: No OFD packet to send [18:50:16]OFD Sender: No OFD packet to send [18:50:21]OFD Sender: No OFD packet to send [18:50:26]OFD Sender: No OFD packet to send [18:50:31]OFD Sender: No OFD packet to send [18:50:36]OFD Sender: No OFD packet to send [18:50:41]OFD Sender: No OFD packet to send [18:50:46]OFD Sender: No OFD packet to send [18:50:51]OFD Sender: No OFD packet to send [18:50:56]OFD Sender: No OFD packet to send [18:51:01]OFD Sender: No OFD packet to send [18:51:06]OFD Sender: No OFD packet to send [18:51:11]OFD Sender: No OFD packet to send [18:51:16]OFD Sender: No OFD packet to send [18:51:18]accept exits with 7 [18:51:18]New connection [18:51:18]New thread 3066473828 created [18:51:18]Thread 3066617188 joined [18:51:18]Waiting for new connection... [18:51:18] Sock 7.Parse request [18:51:18]Sock 7.Check first char [18:51:18]Sock 7.First char is OK [18:51:18]request: POST /json_proto HTTP/1.0 [18:51:18]Method: POST [18:51:18]URL: /json_proto [18:51:18]Method is POST - this is cgi request [18:51:18]url: /json_proto [18:51:18]query_string will be loaded in cgi processing [18:51:18]execute_cgi json_proto POST (null) [18:51:18]execute_cgi path=json_proto method=POST [18:51:18]POST find Content-Length [18:51:18]Host: 172.17.55.133:8080 [18:51:18]Content-Length: 678 [18:51:18]Content-Type: application/json [18:51:18] [18:51:18]POST finish read [18:51:18]Found Content-Length = 678 [18:51:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 9.590, "sum" : 650.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:18]execute_script... [18:51: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)1036418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 9.590, "sum" : 650.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:18]POST & json_proto [18:51:18]process_json_proto [18:51:18]json parsed OK: [18:51:18]protocol is kg_v1.0 [18:51:18]action value=close_receipt [18:51:18]process_action close_receipt [18:51:18]cmd_close_receipt [18:51:18]MH_GetDate [18:51:18]Write to MH i2c: F0 00 00 85 B6 2A [18:51:18]Write i2c OK [18:51:18]MH_I2C_Read... [18:51:18]Read from MH i2c: F0 [18:51:18]MH_I2C_Read... [18:51:18]Read from MH i2c: F0 09 00 [18:51:18]MH_I2C_Read... [18:51:18]Read from MH i2c: F0 09 00 85 B6 00 AD 42 C2 66 34 48 D8 65 03 [18:51:18]GetLastDocTimeStamp 1724006865 [18:51:18]current date 1724007085 [18:51:18]FM_GetShiftState [18:51:18]SAM_PROTO_GetShiftState [18:51:18]wFMCommunicate request_size=4 [18:51:18]MH_SAM_APDU [18:51:18]CAPDU: 80 13 01 00 [18:51:18]Write to MH i2c: E2 08 00 86 B6 80 13 01 00 00 00 00 00 B9 [18:51:18]Write i2c OK [18:51:18]MH_I2C_Read... [18:51:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:19]Read from MH i2c: E2 [18:51:19]MH_I2C_Read... [18:51:19]Read from MH i2c: E2 0E 00 [18:51:19]MH_I2C_Read... [18:51:19]Read from MH i2c: E2 0E 00 86 B6 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F6 [18:51:19]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:51:19]wFMCommunicate OK [18:51:19]SAM_PROTO_GetShiftState done [18:51:19]FM_GetShiftState done [18:51:19]opened in 1723940556 [18:51:19]opened+sec_in_day 1724026956 [18:51:19]quantity*price = 65020 [18:51:19]sum+1 = 65021 [18:51:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.05 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 424 18.08.2024 18:51 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260866 ФПД: 147602761980544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T185125&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260866&fm=147602761980544&tin=02508201610067®Number=0000000000091865&sum=65000 [18:51:20]StoreToDocumentArchive [18:51:20]shift 449 fd 260866 [18:51:20]save to /storage/0449/doc_00260866 [18:51:20]save last doc name /storage/0449/doc_00260866 to /storage/kkm_last_doc_name [18:51:20]save OK [18:51:20]Clear old archive folders... [18:51:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:51:20]tlvbuf is 0057B020 [18:51:20]SAM_PROTO_ClearQueue [18:51:20]wFMCommunicate request_size=4 [18:51:20]MH_SAM_APDU [18:51:20]CAPDU: 80 09 00 00 [18:51:20]Write to MH i2c: E2 08 00 93 B6 80 09 00 00 00 00 00 00 BB [18:51:20]Write i2c OK [18:51:20]MH_I2C_Read... [18:51:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:51:20]Read from MH i2c: E2 [18:51:20]MH_I2C_Read... [18:51:20]Read from MH i2c: E2 03 00 [18:51:20]MH_I2C_Read... [18:51:20]Read from MH i2c: E2 03 00 93 B6 00 90 00 BD [18:51:20]RAPDU: 90 00 [18:51:20]wFMCommunicate OK [18:51:20]SAM_PROTO_ClearQueue done [18:51:20]KKMCreateOFDPacket [18:51:20]OFDProtocolAddRootSTLVToBuf [18:51:20]FM_MakeSignedData [18:51:20]FM_MakeSignedData [18:51:20]SAM_PROTO_SignData [18:51:20]wFMCommunicate request_size=4 [18:51:20]MH_SAM_APDU [18:51:20]CAPDU: 80 0D 01 02 [18:51:20]Write to MH i2c: E2 08 00 94 B6 80 0D 01 02 00 00 00 00 C3 [18:51:20]Write i2c OK [18:51:20]MH_I2C_Read... [18:51:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:51:20]Read from MH i2c: E2 [18:51:20]MH_I2C_Read... [18:51:20]Read from MH i2c: E2 03 00 [18:51:20]MH_I2C_Read... [18:51:20]Read from MH i2c: E2 03 00 94 B6 00 90 00 BE [18:51:20]RAPDU: 90 00 [18:51:20]wFMCommunicate OK [18:51:20]wFMCommunicate request_size=255 [18:51:20]MH_SAM_APDU [18:51:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 25 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FC FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 A8 01 00 00 F4 03 04 00 AD 42 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 02 FB 03 00 35 04 06 00 86 [18:51:20]Write to MH i2c: E2 02 01 95 B6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 25 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FC FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 A8 01 00 00 F4 03 04 00 AD 42 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 02 FB 03 00 35 04 06 00 86 00 00 1B [18:51:20]Write i2c OK [18:51:20]MH_I2C_Read... [18:51:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:20]Read from MH i2c: E2 [18:51:20]MH_I2C_Read... [18:51:20]Read from MH i2c: E2 03 00 [18:51:20]MH_I2C_Read... [18:51:20]Read from MH i2c: E2 03 00 95 B6 00 90 00 BF [18:51:20]RAPDU: 90 00 [18:51:20]wFMCommunicate OK [18:51:20]wFMCommunicate request_size=10 [18:51:20]MH_SAM_APDU [18:51:20]CAPDU: 80 0D 02 02 05 3E 72 32 1A 80 [18:51:20]Write to MH i2c: E2 0D 00 96 B6 80 0D 02 02 05 00 3E 72 32 1A 80 00 00 4C [18:51:20]Write i2c OK [18:51:20]MH_I2C_Read... [18:51:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:20]Read from MH i2c: E2 [18:51:20]MH_I2C_Read... [18:51:20]Read from MH i2c: E2 03 00 [18:51:20]MH_I2C_Read... [18:51:20]Read from MH i2c: E2 03 00 96 B6 00 90 00 C0 [18:51:20]RAPDU: 90 00 [18:51:20]wFMCommunicate OK [18:51:20]wFMCommunicate request_size=4 [18:51:20]MH_SAM_APDU [18:51:20]CAPDU: 80 0D 03 02 [18:51:20]Write to MH i2c: E2 08 00 97 B6 80 0D 03 02 00 00 00 00 C8 [18:51:20]Write i2c OK [18:51:20]MH_I2C_Read... [18:51:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:51:20]Read from MH i2c: E2 [18:51:20]MH_I2C_Read... [18:51:20]Read from MH i2c: E2 0B 00 [18:51:20]MH_I2C_Read... [18:51:20]Read from MH i2c: E2 0B 00 97 B6 00 3A 93 E0 C5 4D C2 1C 93 90 00 F9 [18:51:20]RAPDU: 3A 93 E0 C5 4D C2 1C 93 90 00 [18:51:20]wFMCommunicate OK [18:51:20]SAM_PROTO_SignData done [18:51:20]FM_MakeSignedData done [18:51:20]CreateOFDProtocolMessage [18:51:20]wFMCommunicate request_size=4 [18:51:20]MH_SAM_APDU [18:51:20]CAPDU: 80 11 00 00 [18:51:20]Write to MH i2c: E2 08 00 98 B6 80 11 00 00 00 00 00 00 C8 [18:51:20]Write i2c OK [18:51:20]MH_I2C_Read... [18:51:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:20]Read from MH i2c: E2 [18:51:20]MH_I2C_Read... [18:51:20]Read from MH i2c: E2 17 00 [18:51:20]MH_I2C_Read... [18:51:20]Read from MH i2c: E2 17 00 98 B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 15 [18:51:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:51:20]wFMCommunicate OK [18:51:20]CreateOFDProtocolMessage done [18:51:20]OFDSenderStorePacket 260866 [18:51:20]StoreOFDPacket docnum=260866 [18:51:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 65 D9 07 01 2F C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 25 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FC FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 A8 01 00 00 F4 03 04 00 AD 42 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 02 FB 03 00 35 04 06 00 86 3E 72 32 1A 80 3A 93 E0 C5 4D C2 1C 93 [18:51:20]CheckFolder [18:51:20]dirname=/storage/ofd_packets [18:51:20]CheckFolder done [18:51:20]ProducePacketName [18:51:20]name=ofd_packets/00260866 [18:51:20]NVStorageSaveData ofd_packets/00260866 [18:51:20]File name is /storage/ofd_packets/00260866 [18:51:20]Write 301 bytes [18:51:20]NVStorageSaveData done [18:51:20]OFDSenderStorePacket done [18:51:20]KKMCreateOFDPacket done [18:51:20]NVStorageSaveData kkm_last_timestamp [18:51:20]File name is /storage/kkm_last_timestamp [18:51:20]Write 4 bytes [18:51:20]NVStorageSaveData done [18:51:20]ExternCall_PrintAddStr [18:51:20]wPrintStart [18:51:20]Write to MH i2c: 01 00 00 99 B6 4F [18:51:20]Write i2c OK [18:51:20]MH_I2C_Read... [18:51:20]Read from MH i2c: 01 [18:51:20]MH_I2C_Read... [18:51:20]Read from MH i2c: 01 07 00 [18:51:20]MH_I2C_Read... [18:51:20]Read from MH i2c: 01 07 00 99 B6 00 00 00 00 00 FF 0F 64 [18:51:20]RasterBufferAndPrint [18:51:20]line Счет N : (1)1036418 [18:51:20]line ИНН: 02508201610067 [18:51:20]line Контрольно-Кассовый Чек [18:51:20]line ПРОДАЖА [18:51:20]line ТРК (МРК, ГНК) : 22 [18:51:20]line Товар: 2710124130 [18:51:20]line Аи-92-К-5 [18:51:20]line 9.590 * 67.80 [18:51:20]line = 650.20 [18:51:20]line НДС 12% НСП 1% [18:51:20]line > о реализуемом товаре [18:51:20]line ОКРУГЛЕНИЕ: -0.20 [18:51:20]line ИТОГО: 650.00 [18:51:20]line Внесено: 650.00 [18:51:20]line СДАЧА: 0.00 [18:51:20]line НСП 1% : 5.75 [18:51:20]line НДС 12% : 69.05 [18:51:20]line Наличными: 650.00 [18:51:20]line Безнал.: 0.00 [18:51:20]line Место: АЗС № 94 "Партнер Нефть" [18:51:20]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:51:20]line СНО: Общий режим [18:51:20]line Чек 424 18.08.2024 18:51 [18:51:20]line Смена: 449 ФФД: 1.0 [18:51:20]line ЗНМ: 0300000099 [18:51:20]line РНМ: 0000000000091865 [18:51:20]line Версия ККМ: 001 [18:51:20]line ФМ: 0000000000871820 [18:51:20]line ФД: 260866 [18:51:20]line ФПД: 147602761980544 [18:51:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T185125&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260866&fm=147602761980544&tin=02508201610067®Number=0000000000091865&sum=65000 [18:51:20]written 0, free lines is 4095 [18:51:20]OFD Sender: Processing packet 260866 [packets to send 192, broken 191] [18:51:20]ProducePacketName [18:51:20]name=ofd_packets/00260866 [18:51:20]OFD Sender: To server: pG, [18:51:20]CommunicateWithHost lk.salyk.kg:30040 [18:51:20]ConnectInit lk.salyk.kg [18:51:20]Connected sock=9 [18:51: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 30 0F 01 00 00 65 D9 07 01 2F C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 25 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FC FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 A8 01 00 00 F4 03 04 00 AD 42 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 02 FB 03 00 35 04 06 00 86 3E 72 32 1A 80 3A 93 E0 C5 4D C2 1C 93 [18:51: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 30 4F 00 00 00 71 B0 47 00 C6 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 30 10 04 04 00 02 FB 03 00 F4 03 04 00 01 EC C1 66 B6 04 01 00 00 A3 92 47 30 02 0D 8B 44 [18:51:20]CommunicateWithHost err = 0 [18:51:20]CheckOFDResponse [18:51:20]1017 (14) - 77093643461234 [18:51:20]1041 (16) - 0000000000871820 [18:51:20]1040 (4) - 260866 [18:51:20]1012 (4) - 18.08.2024 12:41 [18:51:20]1206 (1) - 0 [18:51:20]OFD Sender: Remove packet 260866 [18:51:20]ProducePacketName [18:51:20]name=ofd_packets/00260866 [18:51:20]NVStorageDeleteData [18:51:21]Write to MH i2c: 01 00 00 C4 B6 7A [18:51:21]Write i2c OK [18:51:21]MH_I2C_Read... [18:51:21]Read from MH i2c: 01 [18:51:21]MH_I2C_Read... [18:51:21]Read from MH i2c: 01 07 00 [18:51:21]MH_I2C_Read... [18:51:21]Read from MH i2c: 01 07 00 C4 B6 00 00 00 00 00 77 0C 04 [18:51:21]RasterBufferAndPrint [18:51:21]line [18:51:21]line [18:51:21]line [18:51:21]line [18:51:21]line [18:51:21]written 0, free lines is 3195 [18:51:21]MH_Cut [18:51:21]Write to MH i2c: D1 01 00 CB B6 01 53 [18:51:21]Write i2c OK [18:51:21]MH_I2C_Read... [18:51:21]Read from MH i2c: D1 [18:51:21]MH_I2C_Read... [18:51:21]Read from MH i2c: D1 01 00 [18:51:21]MH_I2C_Read... [18:51:21]Read from MH i2c: D1 01 00 CB B6 00 52 [18:51:21]Write to MH i2c: 01 00 00 CC B6 82 [18:51:21]Write i2c OK [18:51:21]MH_I2C_Read... [18:51:21]OFD Sender: No OFD packet to send [18:51:22]*** Cut start [18:51:22]*** Purtial cut [18:51:22]*** Stage 1: CUTSNS_PIN = 1 [18:51:24]Read from MH i2c: 01 [18:51:24]MH_I2C_Read... [18:51:24]*** Stop cut motor [18:51:24]*** Cut end [18:51:24]Read from MH i2c: 01 07 00 [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: 01 07 00 CC B6 00 00 00 00 00 FF 0F 97 [18:51:24]process_action close_receipt done [18:51:24]requested_data is exist [18:51:24]produce_requested_data [18:51:24]requested_item fm.sn is exist - process it [18:51:24]wFMCommunicate request_size=4 [18:51:24]MH_SAM_APDU [18:51:24]CAPDU: 80 11 00 00 [18:51:24]Write to MH i2c: E2 08 00 CD B6 80 11 00 00 00 00 00 00 FD [18:51:24]Write i2c OK [18:51:24]MH_I2C_Read... [18:51:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:24]Read from MH i2c: E2 [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: E2 17 00 [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: E2 17 00 CD B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 4A [18:51:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:51:24]wFMCommunicate OK [18:51:24]requested_item fd.num is exist - process it [18:51:24]SAM_PROTO_GetFieldsCounters [18:51:24]wFMCommunicate request_size=4 [18:51:24]MH_SAM_APDU [18:51:24]CAPDU: 80 13 00 00 [18:51:24]Write to MH i2c: E2 08 00 CE B6 80 13 00 00 00 00 00 00 00 [18:51:24]Write i2c OK [18:51:24]MH_I2C_Read... [18:51:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:51:24]Read from MH i2c: E2 [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: E2 62 00 [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: E2 62 00 CE B6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 02 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A8 01 00 00 5E 04 04 00 A8 01 00 00 57 04 04 00 A9 01 00 00 19 04 04 00 00 00 00 00 90 00 DC [18:51: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 02 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A8 01 00 00 5E 04 04 00 A8 01 00 00 57 04 04 00 A9 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:51:24]wFMCommunicate OK [18:51:24]SAM_PROTO_GetFieldsCounters done [18:51:24]requested_item shift.num is exist - process it [18:51:24]requested_item shift.opened is exist - process it [18:51:24]req_shift_opened [18:51:24]FM_GetShiftState [18:51:24]SAM_PROTO_GetShiftState [18:51:24]wFMCommunicate request_size=4 [18:51:24]MH_SAM_APDU [18:51:24]CAPDU: 80 13 01 00 [18:51:24]Write to MH i2c: E2 08 00 CF B6 80 13 01 00 00 00 00 00 02 [18:51:24]Write i2c OK [18:51:24]MH_I2C_Read... [18:51:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:24]Read from MH i2c: E2 [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: E2 0E 00 [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: E2 0E 00 CF B6 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 3F [18:51:24]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:51:24]wFMCommunicate OK [18:51:24]SAM_PROTO_GetShiftState done [18:51:24]FM_GetShiftState done [18:51:24]req_shift_opened done [18:51:24]requested_item shift.open_date is exist - process it [18:51:24]req_shift_open_date [18:51:24]req_shift_open_date done [18:51:24]produce_requested_data done [18:51:24]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260866,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:51:24]process_action_free close_receipt [18:51:24]json_value_free [18:51:24]json_value_free done [18:51:24]process_json_proto returns [18:51:24]Send response to host [18:51:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260866,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:51:24]free response buf [18:51:24]execute_script done [18:51:24]execute_script returns [18:51:24]free content buf [18:51:24]Sock 7.Close socket [18:51:24]Sock 7.Thread stoped [18:51:26]OFD Sender: No OFD packet to send [18:51:31]OFD Sender: No OFD packet to send [18:51:36]OFD Sender: No OFD packet to send [18:51:41]OFD Sender: No OFD packet to send [18:51:46]OFD Sender: No OFD packet to send [18:51:51]OFD Sender: No OFD packet to send [18:51:56]OFD Sender: No OFD packet to send [18:52:01]OFD Sender: No OFD packet to send [18:52:06]OFD Sender: No OFD packet to send [18:52:11]OFD Sender: No OFD packet to send [18:52:16]OFD Sender: No OFD packet to send [18:52:21]OFD Sender: No OFD packet to send [18:52:26]OFD Sender: No OFD packet to send [18:52:31]OFD Sender: No OFD packet to send [18:52:36]OFD Sender: No OFD packet to send [18:52:41]OFD Sender: No OFD packet to send [18:52:46]OFD Sender: No OFD packet to send [18:52:51]OFD Sender: No OFD packet to send [18:52:56]OFD Sender: No OFD packet to send [18:53:01]OFD Sender: No OFD packet to send [18:53:06]OFD Sender: No OFD packet to send [18:53:11]OFD Sender: No OFD packet to send [18:53:16]OFD Sender: No OFD packet to send [18:53:21]OFD Sender: No OFD packet to send [18:53:26]OFD Sender: No OFD packet to send [18:53:31]OFD Sender: No OFD packet to send [18:53:32]accept exits with 10 [18:53:32]New connection [18:53:32]New thread 3066617188 created [18:53:32]Thread 3066473828 joined [18:53:32]Waiting for new connection... [18:53:32] Sock 10.Parse request [18:53:32]Sock 10.Check first char [18:53:32]Sock 10.First char is OK [18:53:32]request: POST /json_proto HTTP/1.0 [18:53:32]Method: POST [18:53:32]URL: /json_proto [18:53:32]Method is POST - this is cgi request [18:53:32]url: /json_proto [18:53:32]query_string will be loaded in cgi processing [18:53:32]execute_cgi json_proto POST (null) [18:53:32]execute_cgi path=json_proto method=POST [18:53:32]POST find Content-Length [18:53:32]Host: 172.17.55.133:8080 [18:53:32]Content-Length: 678 [18:53:32]Content-Type: application/json [18:53:32] [18:53:32]POST finish read [18:53:32]Found Content-Length = 678 [18:53:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:32]execute_script... [18:53: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)1036419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:32]POST & json_proto [18:53:32]process_json_proto [18:53:32]json parsed OK: [18:53:32]protocol is kg_v1.0 [18:53:32]action value=close_receipt [18:53:32]process_action close_receipt [18:53:32]cmd_close_receipt [18:53:32]MH_GetDate [18:53:32]Write to MH i2c: F0 00 00 D0 B6 75 [18:53:32]Write i2c OK [18:53:32]MH_I2C_Read... [18:53:32]Read from MH i2c: F0 [18:53:32]MH_I2C_Read... [18:53:32]Read from MH i2c: F0 09 00 [18:53:32]MH_I2C_Read... [18:53:32]Read from MH i2c: F0 09 00 D0 B6 00 32 43 C2 66 34 48 D8 65 D4 [18:53:32]GetLastDocTimeStamp 1724007085 [18:53:32]current date 1724007218 [18:53:32]FM_GetShiftState [18:53:32]SAM_PROTO_GetShiftState [18:53:32]wFMCommunicate request_size=4 [18:53:32]MH_SAM_APDU [18:53:32]CAPDU: 80 13 01 00 [18:53:32]Write to MH i2c: E2 08 00 D1 B6 80 13 01 00 00 00 00 00 04 [18:53:32]Write i2c OK [18:53:32]MH_I2C_Read... [18:53:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:32]Read from MH i2c: E2 [18:53:32]MH_I2C_Read... [18:53:32]Read from MH i2c: E2 0E 00 [18:53:32]MH_I2C_Read... [18:53:32]Read from MH i2c: E2 0E 00 D1 B6 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 41 [18:53:32]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:53:32]wFMCommunicate OK [18:53:32]SAM_PROTO_GetShiftState done [18:53:32]FM_GetShiftState done [18:53:32]opened in 1723940556 [18:53:32]opened+sec_in_day 1724026956 [18:53:32]quantity*price = 50036 [18:53:32]sum+1 = 50037 [18:53:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 425 18.08.2024 18:53 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260867 ФПД: 200626919122580 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T185338&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260867&fm=200626919122580&tin=02508201610067®Number=0000000000091865&sum=50000 [18:53:33]StoreToDocumentArchive [18:53:33]shift 449 fd 260867 [18:53:33]save to /storage/0449/doc_00260867 [18:53:33]save last doc name /storage/0449/doc_00260867 to /storage/kkm_last_doc_name [18:53:33]save OK [18:53:33]Clear old archive folders... [18:53:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:53:33]tlvbuf is 003A03A0 [18:53:33]SAM_PROTO_ClearQueue [18:53:33]wFMCommunicate request_size=4 [18:53:33]MH_SAM_APDU [18:53:33]CAPDU: 80 09 00 00 [18:53:33]Write to MH i2c: E2 08 00 DE B6 80 09 00 00 00 00 00 00 06 [18:53:33]Write i2c OK [18:53:33]MH_I2C_Read... [18:53:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:53:33]Read from MH i2c: E2 [18:53:33]MH_I2C_Read... [18:53:33]Read from MH i2c: E2 03 00 [18:53:33]MH_I2C_Read... [18:53:33]Read from MH i2c: E2 03 00 DE B6 00 90 00 08 [18:53:33]RAPDU: 90 00 [18:53:33]wFMCommunicate OK [18:53:33]SAM_PROTO_ClearQueue done [18:53:33]KKMCreateOFDPacket [18:53:33]OFDProtocolAddRootSTLVToBuf [18:53:33]FM_MakeSignedData [18:53:33]FM_MakeSignedData [18:53:33]SAM_PROTO_SignData [18:53:33]wFMCommunicate request_size=4 [18:53:33]MH_SAM_APDU [18:53:33]CAPDU: 80 0D 01 02 [18:53:33]Write to MH i2c: E2 08 00 DF B6 80 0D 01 02 00 00 00 00 0E [18:53:33]Write i2c OK [18:53:33]MH_I2C_Read... [18:53:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:53:33]Read from MH i2c: E2 [18:53:33]MH_I2C_Read... [18:53:33]Read from MH i2c: E2 03 00 [18:53:33]MH_I2C_Read... [18:53:33]Read from MH i2c: E2 03 00 DF B6 00 90 00 09 [18:53:33]RAPDU: 90 00 [18:53:33]wFMCommunicate OK [18:53:33]wFMCommunicate request_size=255 [18:53:33]MH_SAM_APDU [18:53:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A9 01 00 00 F4 03 04 00 32 43 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 03 FB 03 00 35 04 06 00 B6 [18:53:33]Write to MH i2c: E2 02 01 E0 B6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A9 01 00 00 F4 03 04 00 32 43 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 03 FB 03 00 35 04 06 00 B6 00 00 4B [18:53:33]Write i2c OK [18:53:33]MH_I2C_Read... [18:53:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:34]Read from MH i2c: E2 [18:53:34]MH_I2C_Read... [18:53:34]Read from MH i2c: E2 03 00 [18:53:34]MH_I2C_Read... [18:53:34]Read from MH i2c: E2 03 00 E0 B6 00 90 00 0A [18:53:34]RAPDU: 90 00 [18:53:34]wFMCommunicate OK [18:53:34]wFMCommunicate request_size=10 [18:53:34]MH_SAM_APDU [18:53:34]CAPDU: 80 0D 02 02 05 78 18 3F 26 94 [18:53:34]Write to MH i2c: E2 0D 00 E1 B6 80 0D 02 02 05 00 78 18 3F 26 94 00 00 A4 [18:53:34]Write i2c OK [18:53:34]MH_I2C_Read... [18:53:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:34]Read from MH i2c: E2 [18:53:34]MH_I2C_Read... [18:53:34]Read from MH i2c: E2 03 00 [18:53:34]MH_I2C_Read... [18:53:34]Read from MH i2c: E2 03 00 E1 B6 00 90 00 0B [18:53:34]RAPDU: 90 00 [18:53:34]wFMCommunicate OK [18:53:34]wFMCommunicate request_size=4 [18:53:34]MH_SAM_APDU [18:53:34]CAPDU: 80 0D 03 02 [18:53:34]Write to MH i2c: E2 08 00 E2 B6 80 0D 03 02 00 00 00 00 13 [18:53:34]Write i2c OK [18:53:34]MH_I2C_Read... [18:53:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:53:34]Read from MH i2c: E2 [18:53:34]MH_I2C_Read... [18:53:34]Read from MH i2c: E2 0B 00 [18:53:34]MH_I2C_Read... [18:53:34]Read from MH i2c: E2 0B 00 E2 B6 00 2F 74 A0 3C 1C 11 52 A1 90 00 B3 [18:53:34]RAPDU: 2F 74 A0 3C 1C 11 52 A1 90 00 [18:53:34]wFMCommunicate OK [18:53:34]SAM_PROTO_SignData done [18:53:34]FM_MakeSignedData done [18:53:34]CreateOFDProtocolMessage [18:53:34]wFMCommunicate request_size=4 [18:53:34]MH_SAM_APDU [18:53:34]CAPDU: 80 11 00 00 [18:53:34]Write to MH i2c: E2 08 00 E3 B6 80 11 00 00 00 00 00 00 13 [18:53:34]Write i2c OK [18:53:34]MH_I2C_Read... [18:53:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:34]Read from MH i2c: E2 [18:53:34]MH_I2C_Read... [18:53:34]Read from MH i2c: E2 17 00 [18:53:34]MH_I2C_Read... [18:53:34]Read from MH i2c: E2 17 00 E3 B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 60 [18:53:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:53:34]wFMCommunicate OK [18:53:34]CreateOFDProtocolMessage done [18:53:34]OFDSenderStorePacket 260867 [18:53:34]StoreOFDPacket docnum=260867 [18:53:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 D8 97 07 01 8B C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A9 01 00 00 F4 03 04 00 32 43 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 03 FB 03 00 35 04 06 00 B6 78 18 3F 26 94 2F 74 A0 3C 1C 11 52 A1 [18:53:34]CheckFolder [18:53:34]dirname=/storage/ofd_packets [18:53:34]CheckFolder done [18:53:34]ProducePacketName [18:53:34]name=ofd_packets/00260867 [18:53:34]NVStorageSaveData ofd_packets/00260867 [18:53:34]File name is /storage/ofd_packets/00260867 [18:53:34]Write 301 bytes [18:53:34]NVStorageSaveData done [18:53:34]OFDSenderStorePacket done [18:53:34]KKMCreateOFDPacket done [18:53:34]NVStorageSaveData kkm_last_timestamp [18:53:34]File name is /storage/kkm_last_timestamp [18:53:34]Write 4 bytes [18:53:34]NVStorageSaveData done [18:53:34]ExternCall_PrintAddStr [18:53:34]wPrintStart [18:53:34]Write to MH i2c: 01 00 00 E4 B6 9A [18:53:34]Write i2c OK [18:53:34]MH_I2C_Read... [18:53:34]Read from MH i2c: 01 [18:53:34]MH_I2C_Read... [18:53:34]Read from MH i2c: 01 07 00 [18:53:34]MH_I2C_Read... [18:53:34]Read from MH i2c: 01 07 00 E4 B6 00 00 00 00 00 FF 0F AF [18:53:34]RasterBufferAndPrint [18:53:34]line Счет N : (1)1036419 [18:53:34]line ИНН: 02508201610067 [18:53:34]line Контрольно-Кассовый Чек [18:53:34]line ПРОДАЖА [18:53:34]line ТРК (МРК, ГНК) : 32 [18:53:34]line Товар: 2710124130 [18:53:34]line Аи-92-К-5 [18:53:34]line 7.380 * 67.80 [18:53:34]line = 500.36 [18:53:34]line НДС 12% НСП 1% [18:53:34]line > о реализуемом товаре [18:53:34]line ОКРУГЛЕНИЕ: -0.36 [18:53:34]line ИТОГО: 500.00 [18:53:34]line Внесено: 500.00 [18:53:34]line СДАЧА: 0.00 [18:53:34]line НСП 1% : 4.43 [18:53:34]line НДС 12% : 53.14 [18:53:34]line Наличными: 500.00 [18:53:34]line Безнал.: 0.00 [18:53:34]line Место: АЗС № 94 "Партнер Нефть" [18:53:34]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:53:34]line СНО: Общий режим [18:53:34]line Чек 425 18.08.2024 18:53 [18:53:34]line Смена: 449 ФФД: 1.0 [18:53:34]line ЗНМ: 0300000099 [18:53:34]line РНМ: 0000000000091865 [18:53:34]line Версия ККМ: 001 [18:53:34]line ФМ: 0000000000871820 [18:53:34]line ФД: 260867 [18:53:34]line ФПД: 200626919122580 [18:53:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T185338&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260867&fm=200626919122580&tin=02508201610067®Number=0000000000091865&sum=50000 [18:53:34]written 0, free lines is 4095 [18:53:34]OFD Sender: Processing packet 260867 [packets to send 192, broken 191] [18:53:34]ProducePacketName [18:53:34]name=ofd_packets/00260867 [18:53:34]OFD Sender: To server: pG, [18:53:34]CommunicateWithHost lk.salyk.kg:30040 [18:53:34]ConnectInit lk.salyk.kg [18:53:34]Connected sock=9 [18:53: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 30 0F 01 00 00 D8 97 07 01 8B C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A9 01 00 00 F4 03 04 00 32 43 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 03 FB 03 00 35 04 06 00 B6 78 18 3F 26 94 2F 74 A0 3C 1C 11 52 A1 [18:53:34]Write to MH i2c: 01 00 00 0F B7 C6 [18:53:34]Write i2c OK [18:53:34]MH_I2C_Read... [18:53:34]Read from MH i2c: 01 [18:53:34]MH_I2C_Read... [18:53:34]Read from MH i2c: 01 07 00 [18:53:34]MH_I2C_Read... [18:53:34]Read from MH i2c: 01 07 00 0F B7 00 00 00 00 00 70 0C 49 [18:53:34]RasterBufferAndPrint [18:53:34]line [18:53:34]line [18:53:34]line [18:53:34]line [18:53:34]line [18:53:34]written 0, free lines is 3187 [18:53:34]MH_Cut [18:53:34]Write to MH i2c: D1 01 00 16 B7 01 9F [18:53:34]Write i2c OK [18:53:34]MH_I2C_Read... [18:53:34]Read from MH i2c: D1 [18:53:34]MH_I2C_Read... [18:53:34]Read from MH i2c: D1 01 00 [18:53:34]MH_I2C_Read... [18:53:34]Read from MH i2c: D1 01 00 16 B7 00 9E [18:53:34]Write to MH i2c: 01 00 00 17 B7 CE [18:53:34]Write i2c OK [18:53:34]MH_I2C_Read... [18:53: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 30 4F 00 00 00 97 82 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 30 10 04 04 00 03 FB 03 00 F4 03 04 00 87 EC C1 66 B6 04 01 00 00 3E 3F 76 F9 E2 21 1F 95 [18:53:34]CommunicateWithHost err = 0 [18:53:34]CheckOFDResponse [18:53:34]1017 (14) - 77093643461234 [18:53:34]1041 (16) - 0000000000871820 [18:53:34]1040 (4) - 260867 [18:53:34]1012 (4) - 18.08.2024 12:43 [18:53:34]1206 (1) - 0 [18:53:34]OFD Sender: Remove packet 260867 [18:53:34]ProducePacketName [18:53:34]name=ofd_packets/00260867 [18:53:34]NVStorageDeleteData [18:53:35]OFD Sender: No OFD packet to send [18:53:35]*** Cut start [18:53:35]*** Purtial cut [18:53:35]*** Stage 1: CUTSNS_PIN = 1 [18:53:37]Read from MH i2c: 01 [18:53:37]*** Stop cut motor [18:53:37]*** Cut end [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: 01 07 00 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: 01 07 00 17 B7 00 00 00 00 00 FF 0F E3 [18:53:37]process_action close_receipt done [18:53:37]requested_data is exist [18:53:37]produce_requested_data [18:53:37]requested_item fm.sn is exist - process it [18:53:37]wFMCommunicate request_size=4 [18:53:37]MH_SAM_APDU [18:53:37]CAPDU: 80 11 00 00 [18:53:37]Write to MH i2c: E2 08 00 18 B7 80 11 00 00 00 00 00 00 49 [18:53:37]Write i2c OK [18:53:37]MH_I2C_Read... [18:53:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:37]Read from MH i2c: E2 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: E2 17 00 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: E2 17 00 18 B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 96 [18:53:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:53:37]wFMCommunicate OK [18:53:37]requested_item fd.num is exist - process it [18:53:37]SAM_PROTO_GetFieldsCounters [18:53:37]wFMCommunicate request_size=4 [18:53:37]MH_SAM_APDU [18:53:37]CAPDU: 80 13 00 00 [18:53:37]Write to MH i2c: E2 08 00 19 B7 80 13 00 00 00 00 00 00 4C [18:53:37]Write i2c OK [18:53:37]MH_I2C_Read... [18:53:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:38]Read from MH i2c: E2 [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: E2 62 00 [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: E2 62 00 19 B7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 03 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A9 01 00 00 5E 04 04 00 A9 01 00 00 57 04 04 00 AA 01 00 00 19 04 04 00 00 00 00 00 90 00 2C [18:53: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 03 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 A9 01 00 00 5E 04 04 00 A9 01 00 00 57 04 04 00 AA 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:53:38]wFMCommunicate OK [18:53:38]SAM_PROTO_GetFieldsCounters done [18:53:38]requested_item shift.num is exist - process it [18:53:38]requested_item shift.opened is exist - process it [18:53:38]req_shift_opened [18:53:38]FM_GetShiftState [18:53:38]SAM_PROTO_GetShiftState [18:53:38]wFMCommunicate request_size=4 [18:53:38]MH_SAM_APDU [18:53:38]CAPDU: 80 13 01 00 [18:53:38]Write to MH i2c: E2 08 00 1A B7 80 13 01 00 00 00 00 00 4E [18:53:38]Write i2c OK [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: E2 [18:53:38]MH_I2C_Read... [18:53:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:38]Read from MH i2c: E2 0E 00 [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: E2 0E 00 1A B7 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 8B [18:53:38]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:53:38]wFMCommunicate OK [18:53:38]SAM_PROTO_GetShiftState done [18:53:38]FM_GetShiftState done [18:53:38]req_shift_opened done [18:53:38]requested_item shift.open_date is exist - process it [18:53:38]req_shift_open_date [18:53:38]req_shift_open_date done [18:53:38]produce_requested_data done [18:53:38]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260867,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:53:38]process_action_free close_receipt [18:53:38]json_value_free [18:53:38]json_value_free done [18:53:38]process_json_proto returns [18:53:38]Send response to host [18:53:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260867,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:53:38]free response buf [18:53:38]execute_script done [18:53:38]execute_script returns [18:53:38]free content buf [18:53:38]Sock 10.Close socket [18:53:38]Sock 10.Thread stoped [18:53:40]OFD Sender: No OFD packet to send [18:53:45]OFD Sender: No OFD packet to send [18:53:50]OFD Sender: No OFD packet to send [18:53:55]OFD Sender: No OFD packet to send [18:54:00]OFD Sender: No OFD packet to send [18:54:05]OFD Sender: No OFD packet to send [18:54:10]OFD Sender: No OFD packet to send [18:54:15]OFD Sender: No OFD packet to send [18:54:20]OFD Sender: No OFD packet to send [18:54:25]OFD Sender: No OFD packet to send [18:54:30]OFD Sender: No OFD packet to send [18:54:34]accept exits with 7 [18:54:34]New connection [18:54:34]New thread 3066473828 created [18:54:34]Thread 3066617188 joined [18:54:34]Waiting for new connection... [18:54:34] Sock 7.Parse request [18:54:34]Sock 7.Check first char [18:54:34]Sock 7.First char is OK [18:54:34]request: POST /json_proto HTTP/1.0 [18:54:34]Method: POST [18:54:34]URL: /json_proto [18:54:34]Method is POST - this is cgi request [18:54:34]url: /json_proto [18:54:34]query_string will be loaded in cgi processing [18:54:34]execute_cgi json_proto POST (null) [18:54:34]execute_cgi path=json_proto method=POST [18:54:34]POST find Content-Length [18:54:34]Host: 172.17.55.133:8080 [18:54:34]Content-Length: 683 [18:54:34]Content-Type: application/json [18:54:34] [18:54:34]POST finish read [18:54:34]Found Content-Length = 683 [18:54:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:54:34]execute_script... [18:54: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)1036420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:54:34]POST & json_proto [18:54:34]process_json_proto [18:54:34]json parsed OK: [18:54:34]protocol is kg_v1.0 [18:54:34]action value=close_receipt [18:54:34]process_action close_receipt [18:54:34]cmd_close_receipt [18:54:34]MH_GetDate [18:54:34]Write to MH i2c: F0 00 00 1B B7 C1 [18:54:34]Write i2c OK [18:54:34]MH_I2C_Read... [18:54:34]Read from MH i2c: F0 [18:54:34]MH_I2C_Read... [18:54:34]Read from MH i2c: F0 09 00 [18:54:34]MH_I2C_Read... [18:54:34]Read from MH i2c: F0 09 00 1B B7 00 71 43 C2 66 34 48 D8 65 5F [18:54:34]GetLastDocTimeStamp 1724007218 [18:54:34]current date 1724007281 [18:54:34]FM_GetShiftState [18:54:34]SAM_PROTO_GetShiftState [18:54:34]wFMCommunicate request_size=4 [18:54:34]MH_SAM_APDU [18:54:34]CAPDU: 80 13 01 00 [18:54:34]Write to MH i2c: E2 08 00 1C B7 80 13 01 00 00 00 00 00 50 [18:54:34]Write i2c OK [18:54:34]MH_I2C_Read... [18:54:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:34]Read from MH i2c: E2 [18:54:34]MH_I2C_Read... [18:54:34]Read from MH i2c: E2 0E 00 [18:54:34]MH_I2C_Read... [18:54:34]Read from MH i2c: E2 0E 00 1C B7 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 8D [18:54:34]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:54:34]wFMCommunicate OK [18:54:34]SAM_PROTO_GetShiftState done [18:54:34]FM_GetShiftState done [18:54:34]opened in 1723940556 [18:54:34]opened+sec_in_day 1724026956 [18:54:34]quantity*price = 100005 [18:54:34]sum+1 = 100006 [18:54:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 426 18.08.2024 18:54 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260868 ФПД: 160795551127433 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T185441&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260868&fm=160795551127433&tin=02508201610067®Number=0000000000091865&sum=100000 [18:54:35]StoreToDocumentArchive [18:54:35]shift 449 fd 260868 [18:54:35]save to /storage/0449/doc_00260868 [18:54:35]save last doc name /storage/0449/doc_00260868 to /storage/kkm_last_doc_name [18:54:35]save OK [18:54:35]Clear old archive folders... [18:54:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:54:35]tlvbuf is 003E2B40 [18:54:35]SAM_PROTO_ClearQueue [18:54:35]wFMCommunicate request_size=4 [18:54:35]MH_SAM_APDU [18:54:35]CAPDU: 80 09 00 00 [18:54:35]Write to MH i2c: E2 08 00 29 B7 80 09 00 00 00 00 00 00 52 [18:54:35]Write i2c OK [18:54:35]MH_I2C_Read... [18:54:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:35]Read from MH i2c: E2 [18:54:35]MH_I2C_Read... [18:54:35]Read from MH i2c: E2 03 00 [18:54:35]MH_I2C_Read... [18:54:35]Read from MH i2c: E2 03 00 29 B7 00 90 00 54 [18:54:35]RAPDU: 90 00 [18:54:35]wFMCommunicate OK [18:54:35]SAM_PROTO_ClearQueue done [18:54:35]KKMCreateOFDPacket [18:54:35]OFDProtocolAddRootSTLVToBuf [18:54:35]FM_MakeSignedData [18:54:35]FM_MakeSignedData [18:54:35]SAM_PROTO_SignData [18:54:35]wFMCommunicate request_size=4 [18:54:35]MH_SAM_APDU [18:54:35]CAPDU: 80 0D 01 02 [18:54:35]Write to MH i2c: E2 08 00 2A B7 80 0D 01 02 00 00 00 00 5A [18:54:35]Write i2c OK [18:54:35]MH_I2C_Read... [18:54:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:35]Read from MH i2c: E2 [18:54:35]MH_I2C_Read... [18:54:35]Read from MH i2c: E2 03 00 [18:54:35]MH_I2C_Read... [18:54:35]Read from MH i2c: E2 03 00 2A B7 00 90 00 55 [18:54:35]RAPDU: 90 00 [18:54:35]wFMCommunicate OK [18:54:35]wFMCommunicate request_size=255 [18:54:35]MH_SAM_APDU [18:54:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 01 00 00 F4 03 04 00 71 43 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 04 FB 03 00 35 04 06 00 92 [18:54:35]Write to MH i2c: E2 02 01 2B B7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 01 00 00 F4 03 04 00 71 43 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 04 FB 03 00 35 04 06 00 92 00 00 43 [18:54:35]Write i2c OK [18:54:35]MH_I2C_Read... [18:54:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:36]Read from MH i2c: E2 [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: E2 03 00 [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: E2 03 00 2B B7 00 90 00 56 [18:54:36]RAPDU: 90 00 [18:54:36]wFMCommunicate OK [18:54:36]wFMCommunicate request_size=10 [18:54:36]MH_SAM_APDU [18:54:36]CAPDU: 80 0D 02 02 05 3E 21 B4 D7 89 [18:54:36]Write to MH i2c: E2 0D 00 2C B7 80 0D 02 02 05 00 3E 21 B4 D7 89 00 00 DA [18:54:36]Write i2c OK [18:54:36]MH_I2C_Read... [18:54:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:36]Read from MH i2c: E2 [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: E2 03 00 [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: E2 03 00 2C B7 00 90 00 57 [18:54:36]RAPDU: 90 00 [18:54:36]wFMCommunicate OK [18:54:36]wFMCommunicate request_size=4 [18:54:36]MH_SAM_APDU [18:54:36]CAPDU: 80 0D 03 02 [18:54:36]Write to MH i2c: E2 08 00 2D B7 80 0D 03 02 00 00 00 00 5F [18:54:36]Write i2c OK [18:54:36]MH_I2C_Read... [18:54:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:36]Read from MH i2c: E2 [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: E2 0B 00 [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: E2 0B 00 2D B7 00 88 17 E4 73 49 29 1A 91 90 00 73 [18:54:36]RAPDU: 88 17 E4 73 49 29 1A 91 90 00 [18:54:36]wFMCommunicate OK [18:54:36]SAM_PROTO_SignData done [18:54:36]FM_MakeSignedData done [18:54:36]CreateOFDProtocolMessage [18:54:36]wFMCommunicate request_size=4 [18:54:36]MH_SAM_APDU [18:54:36]CAPDU: 80 11 00 00 [18:54:36]Write to MH i2c: E2 08 00 2E B7 80 11 00 00 00 00 00 00 5F [18:54:36]Write i2c OK [18:54:36]MH_I2C_Read... [18:54:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:36]Read from MH i2c: E2 [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: E2 17 00 [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: E2 17 00 2E B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 AC [18:54:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:54:36]wFMCommunicate OK [18:54:36]CreateOFDProtocolMessage done [18:54:36]OFDSenderStorePacket 260868 [18:54:36]StoreOFDPacket docnum=260868 [18:54:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 D1 31 07 01 B7 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 01 00 00 F4 03 04 00 71 43 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 04 FB 03 00 35 04 06 00 92 3E 21 B4 D7 89 88 17 E4 73 49 29 1A 91 [18:54:36]CheckFolder [18:54:36]dirname=/storage/ofd_packets [18:54:36]CheckFolder done [18:54:36]ProducePacketName [18:54:36]name=ofd_packets/00260868 [18:54:36]NVStorageSaveData ofd_packets/00260868 [18:54:36]File name is /storage/ofd_packets/00260868 [18:54:36]Write 301 bytes [18:54:36]NVStorageSaveData done [18:54:36]OFDSenderStorePacket done [18:54:36]KKMCreateOFDPacket done [18:54:36]NVStorageSaveData kkm_last_timestamp [18:54:36]File name is /storage/kkm_last_timestamp [18:54:36]Write 4 bytes [18:54:36]NVStorageSaveData done [18:54:36]ExternCall_PrintAddStr [18:54:36]wPrintStart [18:54:36]Write to MH i2c: 01 00 00 2F B7 E6 [18:54:36]Write i2c OK [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: 01 [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: 01 07 00 [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: 01 07 00 2F B7 00 00 00 00 00 FF 0F FB [18:54:36]RasterBufferAndPrint [18:54:36]line Счет N : (1)1036420 [18:54:36]line ИНН: 02508201610067 [18:54:36]line Контрольно-Кассовый Чек [18:54:36]line ПРОДАЖА [18:54:36]line ТРК (МРК, ГНК) : 12 [18:54:36]line Товар: 2710124130 [18:54:36]line Аи-92-К-5 [18:54:36]line 14.750 * 67.80 [18:54:36]line = 1000.05 [18:54:36]line НДС 12% НСП 1% [18:54:36]line > о реализуемом товаре [18:54:36]line ОКРУГЛЕНИЕ: -0.05 [18:54:36]line ИТОГО: 1000.00 [18:54:36]line Внесено: 1000.00 [18:54:36]line СДАЧА: 0.00 [18:54:36]line НСП 1% : 8.85 [18:54:36]line НДС 12% : 106.20 [18:54:36]line Наличными: 1000.00 [18:54:36]line Безнал.: 0.00 [18:54:36]line Место: АЗС № 94 "Партнер Нефть" [18:54:36]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:54:36]line СНО: Общий режим [18:54:36]line Чек 426 18.08.2024 18:54 [18:54:36]line Смена: 449 ФФД: 1.0 [18:54:36]line ЗНМ: 0300000099 [18:54:36]line РНМ: 0000000000091865 [18:54:36]line Версия ККМ: 001 [18:54:36]line ФМ: 0000000000871820 [18:54:36]line ФД: 260868 [18:54:36]line ФПД: 160795551127433 [18:54:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T185441&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260868&fm=160795551127433&tin=02508201610067®Number=0000000000091865&sum=100000 [18:54:36]written 0, free lines is 4095 [18:54:36]OFD Sender: Processing packet 260868 [packets to send 192, broken 191] [18:54:36]ProducePacketName [18:54:36]name=ofd_packets/00260868 [18:54:36]OFD Sender: To server: pG, [18:54:36]CommunicateWithHost lk.salyk.kg:30040 [18:54:36]ConnectInit lk.salyk.kg [18:54:36]Connected sock=10 [18:54: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 30 0F 01 00 00 D1 31 07 01 B7 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 01 00 00 F4 03 04 00 71 43 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 04 FB 03 00 35 04 06 00 92 3E 21 B4 D7 89 88 17 E4 73 49 29 1A 91 [18:54: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 30 4F 00 00 00 10 F0 47 00 88 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 30 10 04 04 00 04 FB 03 00 F4 03 04 00 C5 EC C1 66 B6 04 01 00 00 77 3D 3F D1 C9 F4 1E 91 [18:54:37]CommunicateWithHost err = 0 [18:54:37]CheckOFDResponse [18:54:37]1017 (14) - 77093643461234 [18:54:37]1041 (16) - 0000000000871820 [18:54:37]1040 (4) - 260868 [18:54:37]1012 (4) - 18.08.2024 12:44 [18:54:37]1206 (1) - 0 [18:54:37]OFD Sender: Remove packet 260868 [18:54:37]ProducePacketName [18:54:37]name=ofd_packets/00260868 [18:54:37]NVStorageDeleteData [18:54:37]Write to MH i2c: 01 00 00 5A B7 11 [18:54:37]Write i2c OK [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: 01 [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: 01 07 00 [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: 01 07 00 5A B7 00 00 00 00 00 6F 0C 93 [18:54:37]RasterBufferAndPrint [18:54:37]line [18:54:37]line [18:54:37]line [18:54:37]line [18:54:37]line [18:54:37]written 0, free lines is 3186 [18:54:37]MH_Cut [18:54:37]Write to MH i2c: D1 01 00 61 B7 01 EA [18:54:37]Write i2c OK [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: D1 [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: D1 01 00 [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: D1 01 00 61 B7 00 E9 [18:54:37]Write to MH i2c: 01 00 00 62 B7 19 [18:54:37]Write i2c OK [18:54:37]MH_I2C_Read... [18:54:37]OFD Sender: No OFD packet to send [18:54:38]*** Cut start [18:54:38]*** Purtial cut [18:54:38]*** Stage 1: CUTSNS_PIN = 1 [18:54:40]Read from MH i2c: 01 [18:54:40]MH_I2C_Read... [18:54:40]*** Stop cut motor [18:54:40]*** Cut end [18:54:40]Read from MH i2c: 01 07 00 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: 01 07 00 62 B7 00 00 00 00 00 FF 0F 2E [18:54:40]process_action close_receipt done [18:54:40]requested_data is exist [18:54:40]produce_requested_data [18:54:40]requested_item fm.sn is exist - process it [18:54:40]wFMCommunicate request_size=4 [18:54:40]MH_SAM_APDU [18:54:40]CAPDU: 80 11 00 00 [18:54:40]Write to MH i2c: E2 08 00 63 B7 80 11 00 00 00 00 00 00 94 [18:54:40]Write i2c OK [18:54:40]MH_I2C_Read... [18:54:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:40]Read from MH i2c: E2 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 17 00 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 17 00 63 B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E1 [18:54:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:54:40]wFMCommunicate OK [18:54:40]requested_item fd.num is exist - process it [18:54:40]SAM_PROTO_GetFieldsCounters [18:54:40]wFMCommunicate request_size=4 [18:54:40]MH_SAM_APDU [18:54:40]CAPDU: 80 13 00 00 [18:54:40]Write to MH i2c: E2 08 00 64 B7 80 13 00 00 00 00 00 00 97 [18:54:40]Write i2c OK [18:54:40]MH_I2C_Read... [18:54:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:40]Read from MH i2c: E2 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 62 00 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 62 00 64 B7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 04 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 AA 01 00 00 5E 04 04 00 AA 01 00 00 57 04 04 00 AB 01 00 00 19 04 04 00 00 00 00 00 90 00 7B [18:54: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 04 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 AA 01 00 00 5E 04 04 00 AA 01 00 00 57 04 04 00 AB 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:54:40]wFMCommunicate OK [18:54:40]SAM_PROTO_GetFieldsCounters done [18:54:40]requested_item shift.num is exist - process it [18:54:40]requested_item shift.opened is exist - process it [18:54:40]req_shift_opened [18:54:40]FM_GetShiftState [18:54:40]SAM_PROTO_GetShiftState [18:54:40]wFMCommunicate request_size=4 [18:54:40]MH_SAM_APDU [18:54:40]CAPDU: 80 13 01 00 [18:54:40]Write to MH i2c: E2 08 00 65 B7 80 13 01 00 00 00 00 00 99 [18:54:40]Write i2c OK [18:54:40]MH_I2C_Read... [18:54:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:40]Read from MH i2c: E2 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 0E 00 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: E2 0E 00 65 B7 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D6 [18:54:40]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:54:40]wFMCommunicate OK [18:54:40]SAM_PROTO_GetShiftState done [18:54:40]FM_GetShiftState done [18:54:40]req_shift_opened done [18:54:40]requested_item shift.open_date is exist - process it [18:54:40]req_shift_open_date [18:54:40]req_shift_open_date done [18:54:40]produce_requested_data done [18:54:40]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260868,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:54:40]process_action_free close_receipt [18:54:40]json_value_free [18:54:40]json_value_free done [18:54:40]process_json_proto returns [18:54:40]Send response to host [18:54:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260868,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:54:40]free response buf [18:54:40]execute_script done [18:54:40]execute_script returns [18:54:40]free content buf [18:54:40]Sock 7.Close socket [18:54:40]Sock 7.Thread stoped [18:54:42]OFD Sender: No OFD packet to send [18:54:47]OFD Sender: No OFD packet to send [18:54:52]OFD Sender: No OFD packet to send [18:54:57]OFD Sender: No OFD packet to send [18:55:02]OFD Sender: No OFD packet to send [18:55:07]OFD Sender: No OFD packet to send [18:55:12]OFD Sender: No OFD packet to send [18:55:17]OFD Sender: No OFD packet to send [18:55:22]OFD Sender: No OFD packet to send [18:55:27]OFD Sender: No OFD packet to send [18:55:31]accept exits with 9 [18:55:31]New connection [18:55:31]New thread 3066617188 created [18:55:31]Thread 3066473828 joined [18:55:31]Waiting for new connection... [18:55:31] Sock 9.Parse request [18:55:31]Sock 9.Check first char [18:55:31]Sock 9.First char is OK [18:55:31]request: POST /json_proto HTTP/1.0 [18:55:31]Method: POST [18:55:31]URL: /json_proto [18:55:31]Method is POST - this is cgi request [18:55:31]url: /json_proto [18:55:31]query_string will be loaded in cgi processing [18:55:31]execute_cgi json_proto POST (null) [18:55:31]execute_cgi path=json_proto method=POST [18:55:31]POST find Content-Length [18:55:31]Host: 172.17.55.133:8080 [18:55:31]Content-Length: 683 [18:55:31]Content-Type: application/json [18:55:31] [18:55:31]POST finish read [18:55:31]Found Content-Length = 683 [18:55:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:31]execute_script... [18:55: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)1036421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:31]POST & json_proto [18:55:31]process_json_proto [18:55:31]json parsed OK: [18:55:31]protocol is kg_v1.0 [18:55:31]action value=close_receipt [18:55:31]process_action close_receipt [18:55:31]cmd_close_receipt [18:55:31]MH_GetDate [18:55:31]Write to MH i2c: F0 00 00 66 B7 0C [18:55:31]Write i2c OK [18:55:31]MH_I2C_Read... [18:55:31]Read from MH i2c: F0 [18:55:31]MH_I2C_Read... [18:55:31]Read from MH i2c: F0 09 00 [18:55:31]MH_I2C_Read... [18:55:31]Read from MH i2c: F0 09 00 66 B7 00 AA 43 C2 66 34 48 D8 65 E3 [18:55:31]GetLastDocTimeStamp 1724007281 [18:55:31]current date 1724007338 [18:55:31]FM_GetShiftState [18:55:31]SAM_PROTO_GetShiftState [18:55:31]wFMCommunicate request_size=4 [18:55:31]MH_SAM_APDU [18:55:31]CAPDU: 80 13 01 00 [18:55:31]Write to MH i2c: E2 08 00 67 B7 80 13 01 00 00 00 00 00 9B [18:55:31]Write i2c OK [18:55:31]MH_I2C_Read... [18:55:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:31]Read from MH i2c: E2 [18:55:31]MH_I2C_Read... [18:55:31]Read from MH i2c: E2 0E 00 [18:55:31]MH_I2C_Read... [18:55:31]Read from MH i2c: E2 0E 00 67 B7 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D8 [18:55:31]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:55:31]wFMCommunicate OK [18:55:31]SAM_PROTO_GetShiftState done [18:55:31]FM_GetShiftState done [18:55:31]opened in 1723940556 [18:55:31]opened+sec_in_day 1724026956 [18:55:31]quantity*price = 50063 [18:55:31]sum+1 = 50064 [18:55:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 427 18.08.2024 18:55 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260869 ФПД: 178538100736644 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T185538&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260869&fm=178538100736644&tin=02508201610067®Number=0000000000091865&sum=50000 [18:55:32]StoreToDocumentArchive [18:55:32]shift 449 fd 260869 [18:55:32]save to /storage/0449/doc_00260869 [18:55:32]save last doc name /storage/0449/doc_00260869 to /storage/kkm_last_doc_name [18:55:32]save OK [18:55:32]Clear old archive folders... [18:55:32]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:55:32]tlvbuf is 00387940 [18:55:32]SAM_PROTO_ClearQueue [18:55:32]wFMCommunicate request_size=4 [18:55:32]MH_SAM_APDU [18:55:32]CAPDU: 80 09 00 00 [18:55:32]Write to MH i2c: E2 08 00 74 B7 80 09 00 00 00 00 00 00 9D [18:55:32]Write i2c OK [18:55:32]MH_I2C_Read... [18:55:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:55:33]Read from MH i2c: E2 [18:55:33]MH_I2C_Read... [18:55:33]Read from MH i2c: E2 03 00 [18:55:33]MH_I2C_Read... [18:55:33]Read from MH i2c: E2 03 00 74 B7 00 90 00 9F [18:55:33]RAPDU: 90 00 [18:55:33]wFMCommunicate OK [18:55:33]SAM_PROTO_ClearQueue done [18:55:33]KKMCreateOFDPacket [18:55:33]OFDProtocolAddRootSTLVToBuf [18:55:33]FM_MakeSignedData [18:55:33]FM_MakeSignedData [18:55:33]SAM_PROTO_SignData [18:55:33]wFMCommunicate request_size=4 [18:55:33]MH_SAM_APDU [18:55:33]CAPDU: 80 0D 01 02 [18:55:33]Write to MH i2c: E2 08 00 75 B7 80 0D 01 02 00 00 00 00 A5 [18:55:33]Write i2c OK [18:55:33]MH_I2C_Read... [18:55:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:55:33]Read from MH i2c: E2 [18:55:33]MH_I2C_Read... [18:55:33]Read from MH i2c: E2 03 00 [18:55:33]MH_I2C_Read... [18:55:33]Read from MH i2c: E2 03 00 75 B7 00 90 00 A0 [18:55:33]RAPDU: 90 00 [18:55:33]wFMCommunicate OK [18:55:33]wFMCommunicate request_size=255 [18:55:33]MH_SAM_APDU [18:55:33]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 01 00 00 F4 03 04 00 AA 43 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 05 FB 03 00 35 04 06 00 [18:55:33]Write to MH i2c: E2 02 01 76 B7 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 01 00 00 F4 03 04 00 AA 43 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 05 FB 03 00 35 04 06 00 00 00 1D [18:55:33]Write i2c OK [18:55:33]MH_I2C_Read... [18:55:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:33]Read from MH i2c: E2 [18:55:33]MH_I2C_Read... [18:55:33]Read from MH i2c: E2 03 00 [18:55:33]MH_I2C_Read... [18:55:33]Read from MH i2c: E2 03 00 76 B7 00 90 00 A1 [18:55:33]RAPDU: 90 00 [18:55:33]wFMCommunicate OK [18:55:33]wFMCommunicate request_size=11 [18:55:33]MH_SAM_APDU [18:55:33]CAPDU: 80 0D 02 02 06 A2 61 24 12 C2 84 [18:55:33]Write to MH i2c: E2 0E 00 77 B7 80 0D 02 02 06 00 A2 61 24 12 C2 84 00 00 33 [18:55:33]Write i2c OK [18:55:33]MH_I2C_Read... [18:55:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:33]Read from MH i2c: E2 [18:55:33]MH_I2C_Read... [18:55:33]Read from MH i2c: E2 03 00 [18:55:33]MH_I2C_Read... [18:55:33]Read from MH i2c: E2 03 00 77 B7 00 90 00 A2 [18:55:33]RAPDU: 90 00 [18:55:33]wFMCommunicate OK [18:55:33]wFMCommunicate request_size=4 [18:55:33]MH_SAM_APDU [18:55:33]CAPDU: 80 0D 03 02 [18:55:33]Write to MH i2c: E2 08 00 78 B7 80 0D 03 02 00 00 00 00 AA [18:55:33]Write i2c OK [18:55:33]MH_I2C_Read... [18:55:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:55:33]Read from MH i2c: E2 [18:55:33]MH_I2C_Read... [18:55:33]Read from MH i2c: E2 0B 00 [18:55:33]MH_I2C_Read... [18:55:33]Read from MH i2c: E2 0B 00 78 B7 00 7F 57 AE EC FA C6 C9 54 90 00 F8 [18:55:33]RAPDU: 7F 57 AE EC FA C6 C9 54 90 00 [18:55:33]wFMCommunicate OK [18:55:33]SAM_PROTO_SignData done [18:55:33]FM_MakeSignedData done [18:55:33]CreateOFDProtocolMessage [18:55:33]wFMCommunicate request_size=4 [18:55:33]MH_SAM_APDU [18:55:33]CAPDU: 80 11 00 00 [18:55:33]Write to MH i2c: E2 08 00 79 B7 80 11 00 00 00 00 00 00 AA [18:55:33]Write i2c OK [18:55:33]MH_I2C_Read... [18:55:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:33]Read from MH i2c: E2 [18:55:33]MH_I2C_Read... [18:55:33]Read from MH i2c: E2 17 00 [18:55:33]MH_I2C_Read... [18:55:33]Read from MH i2c: E2 17 00 79 B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F7 [18:55:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:55:33]wFMCommunicate OK [18:55:33]CreateOFDProtocolMessage done [18:55:33]OFDSenderStorePacket 260869 [18:55:33]StoreOFDPacket docnum=260869 [18:55:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 FA E8 08 01 FC 94 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 01 00 00 F4 03 04 00 AA 43 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 05 FB 03 00 35 04 06 00 A2 61 24 12 C2 84 7F 57 AE EC FA C6 C9 54 [18:55:33]CheckFolder [18:55:33]dirname=/storage/ofd_packets [18:55:33]CheckFolder done [18:55:33]ProducePacketName [18:55:33]name=ofd_packets/00260869 [18:55:33]NVStorageSaveData ofd_packets/00260869 [18:55:33]File name is /storage/ofd_packets/00260869 [18:55:33]Write 302 bytes [18:55:33]NVStorageSaveData done [18:55:33]OFDSenderStorePacket done [18:55:33]KKMCreateOFDPacket done [18:55:33]NVStorageSaveData kkm_last_timestamp [18:55:33]File name is /storage/kkm_last_timestamp [18:55:33]Write 4 bytes [18:55:33]NVStorageSaveData done [18:55:33]ExternCall_PrintAddStr [18:55:33]wPrintStart [18:55:33]Write to MH i2c: 01 00 00 7A B7 31 [18:55:33]Write i2c OK [18:55:33]MH_I2C_Read... [18:55:33]Read from MH i2c: 01 [18:55:33]MH_I2C_Read... [18:55:33]Read from MH i2c: 01 07 00 [18:55:33]MH_I2C_Read... [18:55:33]Read from MH i2c: 01 07 00 7A B7 00 00 00 00 00 FF 0F 46 [18:55:33]RasterBufferAndPrint [18:55:33]line Счет N : (1)1036421 [18:55:33]line ИНН: 02508201610067 [18:55:33]line Контрольно-Кассовый Чек [18:55:33]line ПРОДАЖА [18:55:33]line ТРК (МРК, ГНК) : 33 [18:55:33]line Товар: 2710194210 [18:55:33]line ДТ(л)-К-4 [18:55:33]line 6.570 * 76.20 [18:55:33]line = 500.63 [18:55:33]line НДС 12% НСП 1% [18:55:33]line > о реализуемом товаре [18:55:33]line ОКРУГЛЕНИЕ: -0.63 [18:55:33]line ИТОГО: 500.00 [18:55:33]line Внесено: 500.00 [18:55:33]line СДАЧА: 0.00 [18:55:33]line НСП 1% : 4.43 [18:55:33]line НДС 12% : 53.16 [18:55:33]line Наличными: 500.00 [18:55:33]line Безнал.: 0.00 [18:55:33]line Место: АЗС № 94 "Партнер Нефть" [18:55:33]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:55:33]line СНО: Общий режим [18:55:33]line Чек 427 18.08.2024 18:55 [18:55:33]line Смена: 449 ФФД: 1.0 [18:55:33]line ЗНМ: 0300000099 [18:55:33]line РНМ: 0000000000091865 [18:55:33]line Версия ККМ: 001 [18:55:33]line ФМ: 0000000000871820 [18:55:33]line ФД: 260869 [18:55:33]line ФПД: 178538100736644 [18:55:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T185538&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260869&fm=178538100736644&tin=02508201610067®Number=0000000000091865&sum=50000 [18:55:33]written 0, free lines is 4095 [18:55:33]OFD Sender: Processing packet 260869 [packets to send 192, broken 191] [18:55:33]ProducePacketName [18:55:33]name=ofd_packets/00260869 [18:55:33]OFD Sender: To server: pG, [18:55:33]CommunicateWithHost lk.salyk.kg:30040 [18:55:33]ConnectInit lk.salyk.kg [18:55:33]Connected sock=10 [18:55: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 30 10 01 00 00 FA E8 08 01 FC 94 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 01 00 00 F4 03 04 00 AA 43 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 05 FB 03 00 35 04 06 00 A2 61 24 12 C2 84 7F 57 AE EC FA C6 C9 54 [18:55: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 30 4F 00 00 00 ED B6 47 00 27 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 30 10 04 04 00 05 FB 03 00 F4 03 04 00 FE EC C1 66 B6 04 01 00 00 25 5A 10 88 37 60 1D 9B [18:55:33]CommunicateWithHost err = 0 [18:55:33]CheckOFDResponse [18:55:33]1017 (14) - 77093643461234 [18:55:33]1041 (16) - 0000000000871820 [18:55:33]1040 (4) - 260869 [18:55:33]1012 (4) - 18.08.2024 12:45 [18:55:33]1206 (1) - 0 [18:55:33]OFD Sender: Remove packet 260869 [18:55:33]ProducePacketName [18:55:33]name=ofd_packets/00260869 [18:55:33]NVStorageDeleteData [18:55:33]Write to MH i2c: 01 00 00 A5 B7 5C [18:55:33]Write i2c OK [18:55:33]MH_I2C_Read... [18:55:33]Read from MH i2c: 01 [18:55:33]MH_I2C_Read... [18:55:33]Read from MH i2c: 01 07 00 [18:55:33]MH_I2C_Read... [18:55:33]Read from MH i2c: 01 07 00 A5 B7 00 00 00 00 00 72 0C E1 [18:55:33]RasterBufferAndPrint [18:55:33]line [18:55:33]line [18:55:33]line [18:55:33]line [18:55:33]line [18:55:33]written 0, free lines is 3189 [18:55:33]MH_Cut [18:55:33]Write to MH i2c: D1 01 00 AC B7 01 35 [18:55:33]Write i2c OK [18:55:33]MH_I2C_Read... [18:55:33]Read from MH i2c: D1 [18:55:33]MH_I2C_Read... [18:55:33]Read from MH i2c: D1 01 00 [18:55:33]MH_I2C_Read... [18:55:33]Read from MH i2c: D1 01 00 AC B7 00 34 [18:55:33]Write to MH i2c: 01 00 00 AD B7 64 [18:55:33]Write i2c OK [18:55:33]MH_I2C_Read... [18:55:34]OFD Sender: No OFD packet to send [18:55:35]*** Cut start [18:55:35]*** Purtial cut [18:55:35]*** Stage 1: CUTSNS_PIN = 1 [18:55:37]Read from MH i2c: 01 [18:55:37]MH_I2C_Read... [18:55:37]*** Stop cut motor [18:55:37]*** Cut end [18:55:37]Read from MH i2c: 01 07 00 [18:55:37]MH_I2C_Read... [18:55:37]Read from MH i2c: 01 07 00 AD B7 00 00 00 00 00 FF 0F 79 [18:55:37]process_action close_receipt done [18:55:37]requested_data is exist [18:55:37]produce_requested_data [18:55:37]requested_item fm.sn is exist - process it [18:55:37]wFMCommunicate request_size=4 [18:55:37]MH_SAM_APDU [18:55:37]CAPDU: 80 11 00 00 [18:55:37]Write to MH i2c: E2 08 00 AE B7 80 11 00 00 00 00 00 00 DF [18:55:37]Write i2c OK [18:55:37]MH_I2C_Read... [18:55:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:37]Read from MH i2c: E2 [18:55:37]MH_I2C_Read... [18:55:37]Read from MH i2c: E2 17 00 [18:55:37]MH_I2C_Read... [18:55:37]Read from MH i2c: E2 17 00 AE B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 2C [18:55:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:55:37]wFMCommunicate OK [18:55:37]requested_item fd.num is exist - process it [18:55:37]SAM_PROTO_GetFieldsCounters [18:55:37]wFMCommunicate request_size=4 [18:55:37]MH_SAM_APDU [18:55:37]CAPDU: 80 13 00 00 [18:55:37]Write to MH i2c: E2 08 00 AF B7 80 13 00 00 00 00 00 00 E2 [18:55:37]Write i2c OK [18:55:37]MH_I2C_Read... [18:55:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:55:37]Read from MH i2c: E2 [18:55:37]MH_I2C_Read... [18:55:37]Read from MH i2c: E2 62 00 [18:55:37]MH_I2C_Read... [18:55:37]Read from MH i2c: E2 62 00 AF B7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 05 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 AB 01 00 00 5E 04 04 00 AB 01 00 00 57 04 04 00 AC 01 00 00 19 04 04 00 00 00 00 00 90 00 CA [18:55: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 05 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 AB 01 00 00 5E 04 04 00 AB 01 00 00 57 04 04 00 AC 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:55:37]wFMCommunicate OK [18:55:37]SAM_PROTO_GetFieldsCounters done [18:55:37]requested_item shift.num is exist - process it [18:55:37]requested_item shift.opened is exist - process it [18:55:37]req_shift_opened [18:55:37]FM_GetShiftState [18:55:37]SAM_PROTO_GetShiftState [18:55:37]wFMCommunicate request_size=4 [18:55:37]MH_SAM_APDU [18:55:37]CAPDU: 80 13 01 00 [18:55:37]Write to MH i2c: E2 08 00 B0 B7 80 13 01 00 00 00 00 00 E4 [18:55:37]Write i2c OK [18:55:37]MH_I2C_Read... [18:55:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:37]Read from MH i2c: E2 [18:55:37]MH_I2C_Read... [18:55:37]Read from MH i2c: E2 0E 00 [18:55:37]MH_I2C_Read... [18:55:37]Read from MH i2c: E2 0E 00 B0 B7 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 21 [18:55:37]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:55:37]wFMCommunicate OK [18:55:37]SAM_PROTO_GetShiftState done [18:55:37]FM_GetShiftState done [18:55:37]req_shift_opened done [18:55:37]requested_item shift.open_date is exist - process it [18:55:37]req_shift_open_date [18:55:37]req_shift_open_date done [18:55:37]produce_requested_data done [18:55:37]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260869,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:55:37]process_action_free close_receipt [18:55:37]json_value_free [18:55:37]json_value_free done [18:55:37]process_json_proto returns [18:55:37]Send response to host [18:55:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260869,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:55:37]free response buf [18:55:37]execute_script done [18:55:37]execute_script returns [18:55:37]free content buf [18:55:37]Sock 9.Close socket [18:55:37]Sock 9.Thread stoped [18:55:39]OFD Sender: No OFD packet to send [18:55:44]OFD Sender: No OFD packet to send [18:55:47]accept exits with 7 [18:55:47]New connection [18:55:47]New thread 3066473828 created [18:55:47]Thread 3066617188 joined [18:55:47]Waiting for new connection... [18:55:47] Sock 7.Parse request [18:55:47]Sock 7.Check first char [18:55:47]Sock 7.First char is OK [18:55:47]request: POST /json_proto HTTP/1.0 [18:55:47]Method: POST [18:55:47]URL: /json_proto [18:55:47]Method is POST - this is cgi request [18:55:47]url: /json_proto [18:55:47]query_string will be loaded in cgi processing [18:55:47]execute_cgi json_proto POST (null) [18:55:47]execute_cgi path=json_proto method=POST [18:55:47]POST find Content-Length [18:55:47]Host: 172.17.55.133:8080 [18:55:47]Content-Length: 688 [18:55:47]Content-Type: application/json [18:55:47] [18:55:47]POST finish read [18:55:47]Found Content-Length = 688 [18:55:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:47]execute_script... [18: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)1036422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:47]POST & json_proto [18:55:47]process_json_proto [18:55:47]json parsed OK: [18:55:47]protocol is kg_v1.0 [18:55:47]action value=close_receipt [18:55:47]process_action close_receipt [18:55:47]cmd_close_receipt [18:55:47]MH_GetDate [18:55:47]Write to MH i2c: F0 00 00 B1 B7 57 [18:55:47]Write i2c OK [18:55:47]MH_I2C_Read... [18:55:47]Read from MH i2c: F0 [18:55:47]MH_I2C_Read... [18:55:47]Read from MH i2c: F0 09 00 [18:55:47]MH_I2C_Read... [18:55:47]Read from MH i2c: F0 09 00 B1 B7 00 B9 43 C2 66 34 48 D8 65 3D [18:55:47]GetLastDocTimeStamp 1724007338 [18:55:47]current date 1724007353 [18:55:47]FM_GetShiftState [18:55:47]SAM_PROTO_GetShiftState [18:55:47]wFMCommunicate request_size=4 [18:55:47]MH_SAM_APDU [18:55:47]CAPDU: 80 13 01 00 [18:55:47]Write to MH i2c: E2 08 00 B2 B7 80 13 01 00 00 00 00 00 E6 [18:55:47]Write i2c OK [18:55:47]MH_I2C_Read... [18:55:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:47]Read from MH i2c: E2 [18:55:47]MH_I2C_Read... [18:55:47]Read from MH i2c: E2 0E 00 [18:55:47]MH_I2C_Read... [18:55:47]Read from MH i2c: E2 0E 00 B2 B7 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 23 [18:55:47]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:55:47]wFMCommunicate OK [18:55:47]SAM_PROTO_GetShiftState done [18:55:47]FM_GetShiftState done [18:55:47]opened in 1723940556 [18:55:47]opened+sec_in_day 1724026956 [18:55:47]quantity*price = 100050 [18:55:47]sum+1 = 100052 [18:55:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 428 18.08.2024 18:55 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260870 ФПД: 116056513094691 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T185553&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260870&fm=116056513094691&tin=02508201610067®Number=0000000000091865&sum=100000 [18:55:48]StoreToDocumentArchive [18:55:48]shift 449 fd 260870 [18:55:48]save to /storage/0449/doc_00260870 [18:55:48]save last doc name /storage/0449/doc_00260870 to /storage/kkm_last_doc_name [18:55:48]save OK [18:55:48]Clear old archive folders... [18:55:48]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:55:48]tlvbuf is 004332E0 [18:55:48]SAM_PROTO_ClearQueue [18:55:48]wFMCommunicate request_size=4 [18:55:48]MH_SAM_APDU [18:55:48]CAPDU: 80 09 00 00 [18:55:48]Write to MH i2c: E2 08 00 BF B7 80 09 00 00 00 00 00 00 E8 [18:55:48]Write i2c OK [18:55:48]MH_I2C_Read... [18:55:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:55:48]Read from MH i2c: E2 [18:55:48]MH_I2C_Read... [18:55:48]Read from MH i2c: E2 03 00 [18:55:48]MH_I2C_Read... [18:55:48]Read from MH i2c: E2 03 00 BF B7 00 90 00 EA [18:55:48]RAPDU: 90 00 [18:55:48]wFMCommunicate OK [18:55:48]SAM_PROTO_ClearQueue done [18:55:48]KKMCreateOFDPacket [18:55:48]OFDProtocolAddRootSTLVToBuf [18:55:48]FM_MakeSignedData [18:55:48]FM_MakeSignedData [18:55:48]SAM_PROTO_SignData [18:55:48]wFMCommunicate request_size=4 [18:55:48]MH_SAM_APDU [18:55:48]CAPDU: 80 0D 01 02 [18:55:48]Write to MH i2c: E2 08 00 C0 B7 80 0D 01 02 00 00 00 00 F0 [18:55:48]Write i2c OK [18:55:48]MH_I2C_Read... [18:55:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:55:48]Read from MH i2c: E2 [18:55:48]MH_I2C_Read... [18:55:48]Read from MH i2c: E2 03 00 [18:55:48]MH_I2C_Read... [18:55:48]Read from MH i2c: E2 03 00 C0 B7 00 90 00 EB [18:55:48]RAPDU: 90 00 [18:55:48]wFMCommunicate OK [18:55:48]wFMCommunicate request_size=255 [18:55:48]MH_SAM_APDU [18:55:48]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 01 00 00 F4 03 04 00 B9 43 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 06 FB 03 00 35 04 06 00 [18:55:48]Write to MH i2c: E2 02 01 C1 B7 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 01 00 00 F4 03 04 00 B9 43 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 06 FB 03 00 35 04 06 00 00 00 F1 [18:55:48]Write i2c OK [18:55:48]MH_I2C_Read... [18:55:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:49]Read from MH i2c: E2 [18:55:49]MH_I2C_Read... [18:55:49]Read from MH i2c: E2 03 00 [18:55:49]MH_I2C_Read... [18:55:49]Read from MH i2c: E2 03 00 C1 B7 00 90 00 EC [18:55:49]RAPDU: 90 00 [18:55:49]wFMCommunicate OK [18:55:49]wFMCommunicate request_size=11 [18:55:49]MH_SAM_APDU [18:55:49]CAPDU: 80 0D 02 02 06 69 8D 83 3C A4 23 [18:55:49]Write to MH i2c: E2 0E 00 C2 B7 80 0D 02 02 06 00 69 8D 83 3C A4 23 00 00 7B [18:55:49]Write i2c OK [18:55:49]MH_I2C_Read... [18:55:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:49]Read from MH i2c: E2 [18:55:49]MH_I2C_Read... [18:55:49]Read from MH i2c: E2 03 00 [18:55:49]MH_I2C_Read... [18:55:49]Read from MH i2c: E2 03 00 C2 B7 00 90 00 ED [18:55:49]RAPDU: 90 00 [18:55:49]wFMCommunicate OK [18:55:49]wFMCommunicate request_size=4 [18:55:49]MH_SAM_APDU [18:55:49]CAPDU: 80 0D 03 02 [18:55:49]Write to MH i2c: E2 08 00 C3 B7 80 0D 03 02 00 00 00 00 F5 [18:55:49]Write i2c OK [18:55:49]MH_I2C_Read... [18:55:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:55:49]Read from MH i2c: E2 [18:55:49]MH_I2C_Read... [18:55:49]Read from MH i2c: E2 0B 00 [18:55:49]MH_I2C_Read... [18:55:49]Read from MH i2c: E2 0B 00 C3 B7 00 73 FB 2F 97 4C 97 DC E0 90 00 C9 [18:55:49]RAPDU: 73 FB 2F 97 4C 97 DC E0 90 00 [18:55:49]wFMCommunicate OK [18:55:49]SAM_PROTO_SignData done [18:55:49]FM_MakeSignedData done [18:55:49]CreateOFDProtocolMessage [18:55:49]wFMCommunicate request_size=4 [18:55:49]MH_SAM_APDU [18:55:49]CAPDU: 80 11 00 00 [18:55:49]Write to MH i2c: E2 08 00 C4 B7 80 11 00 00 00 00 00 00 F5 [18:55:49]Write i2c OK [18:55:49]MH_I2C_Read... [18:55:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:49]Read from MH i2c: E2 [18:55:49]MH_I2C_Read... [18:55:49]Read from MH i2c: E2 17 00 [18:55:49]MH_I2C_Read... [18:55:49]Read from MH i2c: E2 17 00 C4 B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 42 [18:55:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:55:49]wFMCommunicate OK [18:55:49]CreateOFDProtocolMessage done [18:55:49]OFDSenderStorePacket 260870 [18:55:49]StoreOFDPacket docnum=260870 [18: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 30 10 01 00 00 04 45 08 01 BA A8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 01 00 00 F4 03 04 00 B9 43 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 06 FB 03 00 35 04 06 00 69 8D 83 3C A4 23 73 FB 2F 97 4C 97 DC E0 [18:55:49]CheckFolder [18:55:49]dirname=/storage/ofd_packets [18:55:49]CheckFolder done [18:55:49]ProducePacketName [18:55:49]name=ofd_packets/00260870 [18:55:49]NVStorageSaveData ofd_packets/00260870 [18:55:49]File name is /storage/ofd_packets/00260870 [18:55:49]Write 302 bytes [18:55:49]NVStorageSaveData done [18:55:49]OFDSenderStorePacket done [18:55:49]KKMCreateOFDPacket done [18:55:49]NVStorageSaveData kkm_last_timestamp [18:55:49]File name is /storage/kkm_last_timestamp [18:55:49]Write 4 bytes [18:55:49]NVStorageSaveData done [18:55:49]ExternCall_PrintAddStr [18:55:49]wPrintStart [18:55:49]Write to MH i2c: 01 00 00 C5 B7 7C [18:55:49]Write i2c OK [18:55:49]MH_I2C_Read... [18:55:49]Read from MH i2c: 01 [18:55:49]MH_I2C_Read... [18:55:49]Read from MH i2c: 01 07 00 [18:55:49]MH_I2C_Read... [18:55:49]Read from MH i2c: 01 07 00 C5 B7 00 00 00 00 00 FF 0F 91 [18:55:49]RasterBufferAndPrint [18:55:49]line Счет N : (1)1036422 [18:55:49]line ИНН: 02508201610067 [18:55:49]line Контрольно-Кассовый Чек [18:55:49]line ПРОДАЖА [18:55:49]line ТРК (МРК, ГНК) : 43 [18:55:49]line Товар: 2710194210 [18:55:49]line ДТ(л)-К-4 [18:55:49]line 13.130 * 76.20 [18:55:49]line = 1000.51 [18:55:49]line НДС 12% НСП 1% [18:55:49]line > о реализуемом товаре [18:55:49]line ОКРУГЛЕНИЕ: -0.51 [18:55:49]line ИТОГО: 1000.00 [18:55:49]line Внесено: 1000.00 [18:55:49]line СДАЧА: 0.00 [18:55:49]line НСП 1% : 8.85 [18:55:49]line НДС 12% : 106.25 [18:55:49]line Наличными: 1000.00 [18:55:49]line Безнал.: 0.00 [18:55:49]line Место: АЗС № 94 "Партнер Нефть" [18:55:49]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:55:49]line СНО: Общий режим [18:55:49]line Чек 428 18.08.2024 18:55 [18:55:49]line Смена: 449 ФФД: 1.0 [18:55:49]line ЗНМ: 0300000099 [18:55:49]line РНМ: 0000000000091865 [18:55:49]line Версия ККМ: 001 [18:55:49]line ФМ: 0000000000871820 [18:55:49]line ФД: 260870 [18:55:49]line ФПД: 116056513094691 [18:55:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T185553&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260870&fm=116056513094691&tin=02508201610067®Number=0000000000091865&sum=100000 [18:55:49]OFD Sender: Processing packet 260870 [packets to send 192, broken 191] [18:55:49]ProducePacketName [18:55:49]name=ofd_packets/00260870 [18:55:49]OFD Sender: To server: pG, [18:55:49]CommunicateWithHost lk.salyk.kg:30040 [18:55:49]ConnectInit lk.salyk.kg [18:55:49]written 0, free lines is 4095 [18:55:49]Connected sock=10 [18: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 30 10 01 00 00 04 45 08 01 BA A8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 01 00 00 F4 03 04 00 B9 43 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 06 FB 03 00 35 04 06 00 69 8D 83 3C A4 23 73 FB 2F 97 4C 97 DC E0 [18: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 30 4F 00 00 00 F2 33 47 00 D9 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 30 10 04 04 00 06 FB 03 00 F4 03 04 00 0E ED C1 66 B6 04 01 00 00 EF 79 94 71 6C 78 B5 19 [18:55:49]CommunicateWithHost err = 0 [18:55:49]CheckOFDResponse [18:55:49]1017 (14) - 77093643461234 [18:55:49]1041 (16) - 0000000000871820 [18:55:49]1040 (4) - 260870 [18:55:49]1012 (4) - 18.08.2024 12:46 [18:55:49]1206 (1) - 0 [18:55:49]OFD Sender: Remove packet 260870 [18:55:49]ProducePacketName [18:55:49]name=ofd_packets/00260870 [18:55:49]NVStorageDeleteData [18:55:50]Write to MH i2c: 01 00 00 F0 B7 A7 [18:55:50]Write i2c OK [18:55:50]MH_I2C_Read... [18:55:50]Read from MH i2c: 01 [18:55:50]MH_I2C_Read... [18:55:50]Read from MH i2c: 01 07 00 [18:55:50]MH_I2C_Read... [18:55:50]Read from MH i2c: 01 07 00 F0 B7 00 00 00 00 00 6B 0C 25 [18:55:50]RasterBufferAndPrint [18:55:50]line [18:55:50]line [18:55:50]line [18:55:50]line [18:55:50]line [18:55:50]written 0, free lines is 3183 [18:55:50]MH_Cut [18:55:50]Write to MH i2c: D1 01 00 F7 B7 01 80 [18:55:50]Write i2c OK [18:55:50]MH_I2C_Read... [18:55:50]Read from MH i2c: D1 [18:55:50]MH_I2C_Read... [18:55:50]Read from MH i2c: D1 01 00 [18:55:50]MH_I2C_Read... [18:55:50]Read from MH i2c: D1 01 00 F7 B7 00 7F [18:55:50]Write to MH i2c: 01 00 00 F8 B7 AF [18:55:50]Write i2c OK [18:55:50]MH_I2C_Read... [18:55:50]OFD Sender: No OFD packet to send [18:55:51]*** Cut start [18:55:51]*** Purtial cut [18:55:51]*** Stage 1: CUTSNS_PIN = 1 [18:55:53]Read from MH i2c: 01 [18:55:53]MH_I2C_Read... [18:55:53]*** Stop cut motor [18:55:53]*** Cut end [18:55:53]Read from MH i2c: 01 07 00 [18:55:53]MH_I2C_Read... [18:55:53]Read from MH i2c: 01 07 00 F8 B7 00 00 00 00 00 FF 0F C4 [18:55:53]process_action close_receipt done [18:55:53]requested_data is exist [18:55:53]produce_requested_data [18:55:53]requested_item fm.sn is exist - process it [18:55:53]wFMCommunicate request_size=4 [18:55:53]MH_SAM_APDU [18:55:53]CAPDU: 80 11 00 00 [18:55:53]Write to MH i2c: E2 08 00 F9 B7 80 11 00 00 00 00 00 00 2A [18:55:53]Write i2c OK [18:55:53]MH_I2C_Read... [18:55:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:53]Read from MH i2c: E2 [18:55:53]MH_I2C_Read... [18:55:53]Read from MH i2c: E2 17 00 [18:55:53]MH_I2C_Read... [18:55:53]Read from MH i2c: E2 17 00 F9 B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 77 [18:55:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:55:53]wFMCommunicate OK [18:55:53]requested_item fd.num is exist - process it [18:55:53]SAM_PROTO_GetFieldsCounters [18:55:53]wFMCommunicate request_size=4 [18:55:53]MH_SAM_APDU [18:55:53]CAPDU: 80 13 00 00 [18:55:53]Write to MH i2c: E2 08 00 FA B7 80 13 00 00 00 00 00 00 2D [18:55:53]Write i2c OK [18:55:53]MH_I2C_Read... [18:55:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:55:53]Read from MH i2c: E2 [18:55:53]MH_I2C_Read... [18:55:53]Read from MH i2c: E2 62 00 [18:55:53]MH_I2C_Read... [18:55:53]Read from MH i2c: E2 62 00 FA B7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 06 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 AC 01 00 00 5E 04 04 00 AC 01 00 00 57 04 04 00 AD 01 00 00 19 04 04 00 00 00 00 00 90 00 19 [18:55: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 06 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 AC 01 00 00 5E 04 04 00 AC 01 00 00 57 04 04 00 AD 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:55:53]wFMCommunicate OK [18:55:53]SAM_PROTO_GetFieldsCounters done [18:55:53]requested_item shift.num is exist - process it [18:55:53]requested_item shift.opened is exist - process it [18:55:53]req_shift_opened [18:55:53]FM_GetShiftState [18:55:53]SAM_PROTO_GetShiftState [18:55:53]wFMCommunicate request_size=4 [18:55:53]MH_SAM_APDU [18:55:53]CAPDU: 80 13 01 00 [18:55:53]Write to MH i2c: E2 08 00 FB B7 80 13 01 00 00 00 00 00 2F [18:55:53]Write i2c OK [18:55:53]MH_I2C_Read... [18:55:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:53]Read from MH i2c: E2 [18:55:53]MH_I2C_Read... [18:55:53]Read from MH i2c: E2 0E 00 [18:55:53]MH_I2C_Read... [18:55:53]Read from MH i2c: E2 0E 00 FB B7 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 6C [18:55:53]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:55:53]wFMCommunicate OK [18:55:53]SAM_PROTO_GetShiftState done [18:55:53]FM_GetShiftState done [18:55:53]req_shift_opened done [18:55:53]requested_item shift.open_date is exist - process it [18:55:53]req_shift_open_date [18:55:53]req_shift_open_date done [18:55:53]produce_requested_data done [18:55:53]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260870,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:55:53]process_action_free close_receipt [18:55:53]json_value_free [18:55:53]json_value_free done [18:55:53]process_json_proto returns [18:55:53]Send response to host [18:55:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260870,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:55:53]free response buf [18:55:53]execute_script done [18:55:53]execute_script returns [18:55:53]free content buf [18:55:53]Sock 7.Close socket [18:55:53]Sock 7.Thread stoped [18:55:55]OFD Sender: No OFD packet to send [18:56:00]OFD Sender: No OFD packet to send [18:56:05]OFD Sender: No OFD packet to send [18:56:10]OFD Sender: No OFD packet to send [18:56:15]OFD Sender: No OFD packet to send [18:56:20]OFD Sender: No OFD packet to send [18:56:25]OFD Sender: No OFD packet to send [18:56:30]OFD Sender: No OFD packet to send [18:56:35]OFD Sender: No OFD packet to send [18:56:40]OFD Sender: No OFD packet to send [18:56:45]OFD Sender: No OFD packet to send [18:56:50]OFD Sender: No OFD packet to send [18:56:55]OFD Sender: No OFD packet to send [18:57:00]OFD Sender: No OFD packet to send [18:57:05]OFD Sender: No OFD packet to send [18:57:10]OFD Sender: No OFD packet to send [18:57:15]OFD Sender: No OFD packet to send [18:57:20]OFD Sender: No OFD packet to send [18:57:25]OFD Sender: No OFD packet to send [18:57:30]OFD Sender: No OFD packet to send [18:57:35]OFD Sender: No OFD packet to send [18:57:40]OFD Sender: No OFD packet to send [18:57:45]OFD Sender: No OFD packet to send [18:57:50]OFD Sender: No OFD packet to send [18:57:55]OFD Sender: No OFD packet to send [18:57:56]accept exits with 9 [18:57:56]New connection [18:57:56]New thread 3066617188 created [18:57:56]Thread 3066473828 joined [18:57:56]Waiting for new connection... [18:57:56] Sock 9.Parse request [18:57:56]Sock 9.Check first char [18:57:56]Sock 9.First char is OK [18:57:56]request: POST /json_proto HTTP/1.0 [18:57:56]Method: POST [18:57:56]URL: /json_proto [18:57:56]Method is POST - this is cgi request [18:57:56]url: /json_proto [18:57:56]query_string will be loaded in cgi processing [18:57:56]execute_cgi json_proto POST (null) [18:57:56]execute_cgi path=json_proto method=POST [18:57:56]POST find Content-Length [18:57:56]Host: 172.17.55.133:8080 [18:57:56]Content-Length: 801 [18:57:56]Content-Type: application/json [18:57:56] [18:57:56]POST finish read [18:57:56]Found Content-Length = 801 [18:57:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.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" : 300.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:56]execute_script... [18:57: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)1036423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.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" : 300.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:56]POST & json_proto [18:57:56]process_json_proto [18:57:56]json parsed OK: [18:57:56]protocol is kg_v1.0 [18:57:56]action value=close_receipt [18:57:56]process_action close_receipt [18:57:56]cmd_close_receipt [18:57:56]MH_GetDate [18:57:56]Write to MH i2c: F0 00 00 FC B7 A2 [18:57:56]Write i2c OK [18:57:56]MH_I2C_Read... [18:57:56]Read from MH i2c: F0 [18:57:56]MH_I2C_Read... [18:57:56]Read from MH i2c: F0 09 00 [18:57:56]MH_I2C_Read... [18:57:56]Read from MH i2c: F0 09 00 FC B7 00 3B 44 C2 66 34 48 D8 65 0B [18:57:56]GetLastDocTimeStamp 1724007353 [18:57:56]current date 1724007483 [18:57:56]FM_GetShiftState [18:57:56]SAM_PROTO_GetShiftState [18:57:56]wFMCommunicate request_size=4 [18:57:56]MH_SAM_APDU [18:57:56]CAPDU: 80 13 01 00 [18:57:56]Write to MH i2c: E2 08 00 FD B7 80 13 01 00 00 00 00 00 31 [18:57:56]Write i2c OK [18:57:56]MH_I2C_Read... [18:57:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:56]Read from MH i2c: E2 [18:57:56]MH_I2C_Read... [18:57:56]Read from MH i2c: E2 0E 00 [18:57:56]MH_I2C_Read... [18:57:56]Read from MH i2c: E2 0E 00 FD B7 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 6E [18:57:56]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:57:56]wFMCommunicate OK [18:57:56]SAM_PROTO_GetShiftState done [18:57:56]FM_GetShiftState done [18:57:56]opened in 1723940556 [18:57:56]opened+sec_in_day 1724026956 [18:57:56]quantity*price = 30035 [18:57:56]sum+1 = 30036 [18:57:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.35 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.35 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 429 18.08.2024 18:58 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260871 ФПД: 15904269281138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T185803&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260871&fm=15904269281138&tin=02508201610067®Number=0000000000091865&sum=30035 [18:57:58]StoreToDocumentArchive [18:57:58]shift 449 fd 260871 [18:57:58]save to /storage/0449/doc_00260871 [18:57:58]save last doc name /storage/0449/doc_00260871 to /storage/kkm_last_doc_name [18:57:58]save OK [18:57:58]Clear old archive folders... [18:57:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:57:58]tlvbuf is 003A03A0 [18:57:58]SAM_PROTO_ClearQueue [18:57:58]wFMCommunicate request_size=4 [18:57:58]MH_SAM_APDU [18:57:58]CAPDU: 80 09 00 00 [18:57:58]Write to MH i2c: E2 08 00 0A B8 80 09 00 00 00 00 00 00 34 [18:57:58]Write i2c OK [18:57:58]MH_I2C_Read... [18:57:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:58]Read from MH i2c: E2 [18:57:58]MH_I2C_Read... [18:57:58]Read from MH i2c: E2 03 00 [18:57:58]MH_I2C_Read... [18:57:58]Read from MH i2c: E2 03 00 0A B8 00 90 00 36 [18:57:58]RAPDU: 90 00 [18:57:58]wFMCommunicate OK [18:57:58]SAM_PROTO_ClearQueue done [18:57:58]KKMCreateOFDPacket [18:57:58]OFDProtocolAddRootSTLVToBuf [18:57:58]FM_MakeSignedData [18:57:58]FM_MakeSignedData [18:57:58]SAM_PROTO_SignData [18:57:58]wFMCommunicate request_size=4 [18:57:58]MH_SAM_APDU [18:57:58]CAPDU: 80 0D 01 02 [18:57:58]Write to MH i2c: E2 08 00 0B B8 80 0D 01 02 00 00 00 00 3C [18:57:58]Write i2c OK [18:57:58]MH_I2C_Read... [18:57:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:58]Read from MH i2c: E2 [18:57:58]MH_I2C_Read... [18:57:58]Read from MH i2c: E2 03 00 [18:57:58]MH_I2C_Read... [18:57:58]Read from MH i2c: E2 03 00 0B B8 00 90 00 37 [18:57:58]RAPDU: 90 00 [18:57:58]wFMCommunicate OK [18:57:58]wFMCommunicate request_size=255 [18:57:58]MH_SAM_APDU [18:57:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 53 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 53 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 01 00 00 F4 03 04 00 3B 44 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 07 FB 03 00 35 04 06 00 0E [18:57:58]Write to MH i2c: E2 02 01 0C B8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 53 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 53 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 01 00 00 F4 03 04 00 3B 44 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 07 FB 03 00 35 04 06 00 0E 00 00 48 [18:57:58]Write i2c OK [18:57:58]MH_I2C_Read... [18:57:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:58]Read from MH i2c: E2 [18:57:58]MH_I2C_Read... [18:57:58]Read from MH i2c: E2 03 00 [18:57:58]MH_I2C_Read... [18:57:58]Read from MH i2c: E2 03 00 0C B8 00 90 00 38 [18:57:58]RAPDU: 90 00 [18:57:58]wFMCommunicate OK [18:57:58]wFMCommunicate request_size=10 [18:57:58]MH_SAM_APDU [18:57:58]CAPDU: 80 0D 02 02 05 77 00 52 27 72 [18:57:58]Write to MH i2c: E2 0D 00 0D B8 80 0D 02 02 05 00 77 00 52 27 72 00 00 AB [18:57:58]Write i2c OK [18:57:58]MH_I2C_Read... [18:57:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:58]Read from MH i2c: E2 [18:57:58]MH_I2C_Read... [18:57:58]Read from MH i2c: E2 03 00 [18:57:58]MH_I2C_Read... [18:57:58]Read from MH i2c: E2 03 00 0D B8 00 90 00 39 [18:57:58]RAPDU: 90 00 [18:57:58]wFMCommunicate OK [18:57:58]wFMCommunicate request_size=4 [18:57:58]MH_SAM_APDU [18:57:58]CAPDU: 80 0D 03 02 [18:57:58]Write to MH i2c: E2 08 00 0E B8 80 0D 03 02 00 00 00 00 41 [18:57:58]Write i2c OK [18:57:58]MH_I2C_Read... [18:57:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:58]Read from MH i2c: E2 [18:57:58]MH_I2C_Read... [18:57:58]Read from MH i2c: E2 0B 00 [18:57:58]MH_I2C_Read... [18:57:58]Read from MH i2c: E2 0B 00 0E B8 00 15 89 51 1F 79 6E C1 94 90 00 8C [18:57:58]RAPDU: 15 89 51 1F 79 6E C1 94 90 00 [18:57:58]wFMCommunicate OK [18:57:58]SAM_PROTO_SignData done [18:57:58]FM_MakeSignedData done [18:57:58]CreateOFDProtocolMessage [18:57:58]wFMCommunicate request_size=4 [18:57:58]MH_SAM_APDU [18:57:58]CAPDU: 80 11 00 00 [18:57:58]Write to MH i2c: E2 08 00 0F B8 80 11 00 00 00 00 00 00 41 [18:57:58]Write i2c OK [18:57:58]MH_I2C_Read... [18:57:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:58]Read from MH i2c: E2 [18:57:58]MH_I2C_Read... [18:57:58]Read from MH i2c: E2 17 00 [18:57:58]MH_I2C_Read... [18:57:58]Read from MH i2c: E2 17 00 0F B8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 8E [18:57:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:57:58]wFMCommunicate OK [18:57:58]CreateOFDProtocolMessage done [18:57:58]OFDSenderStorePacket 260871 [18:57:58]StoreOFDPacket docnum=260871 [18:57:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 73 47 07 01 A0 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 53 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 53 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 01 00 00 F4 03 04 00 3B 44 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 07 FB 03 00 35 04 06 00 0E 77 00 52 27 72 15 89 51 1F 79 6E C1 94 [18:57:58]CheckFolder [18:57:58]dirname=/storage/ofd_packets [18:57:58]CheckFolder done [18:57:58]ProducePacketName [18:57:58]name=ofd_packets/00260871 [18:57:58]NVStorageSaveData ofd_packets/00260871 [18:57:58]File name is /storage/ofd_packets/00260871 [18:57:58]Write 301 bytes [18:57:58]NVStorageSaveData done [18:57:58]OFDSenderStorePacket done [18:57:58]KKMCreateOFDPacket done [18:57:58]NVStorageSaveData kkm_last_timestamp [18:57:58]File name is /storage/kkm_last_timestamp [18:57:58]Write 4 bytes [18:57:58]NVStorageSaveData done [18:57:58]ExternCall_PrintAddStr [18:57:58]wPrintStart [18:57:58]Write to MH i2c: 01 00 00 10 B8 C8 [18:57:58]Write i2c OK [18:57:58]MH_I2C_Read... [18:57:58]Read from MH i2c: 01 [18:57:58]MH_I2C_Read... [18:57:58]Read from MH i2c: 01 07 00 [18:57:58]MH_I2C_Read... [18:57:58]Read from MH i2c: 01 07 00 10 B8 00 00 00 00 00 FF 0F DD [18:57:58]RasterBufferAndPrint [18:57:58]line Счет N : (1)1036423 [18:57:58]line ИНН: 02508201610067 [18:57:58]line Контрольно-Кассовый Чек [18:57:58]line ПРОДАЖА [18:57:58]line ТРК (МРК, ГНК) : 22 [18:57:58]line Товар: 2710124130 [18:57:58]line Аи-92-К-5 [18:57:58]line 4.430 * 67.80 [18:57:58]line = 300.35 [18:57:58]line НДС 12% НСП 1% [18:57:58]line > о реализуемом товаре [18:57:58]line ИТОГО: 300.35 [18:57:58]line НСП 1% : 2.66 [18:57:58]line НДС 12% : 31.90 [18:57:58]line Наличными: 0.00 [18:57:58]line Безнал.: 300.35 [18:57:58]line Место: АЗС № 94 "Партнер Нефть" [18:57:58]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [18:57:58]line СНО: Общий режим [18:57:58]line Чек 429 18.08.2024 18:58 [18:57:58]line Смена: 449 ФФД: 1.0 [18:57:58]line ЗНМ: 0300000099 [18:57:58]line РНМ: 0000000000091865 [18:57:58]line Версия ККМ: 001 [18:57:58]line Платежная система: O! деньги [18:57:58]line ФМ: 0000000000871820 [18:57:58]line ФД: 260871 [18:57:58]line ФПД: 15904269281138 [18:57:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T185803&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260871&fm=15904269281138&tin=02508201610067®Number=0000000000091865&sum=30035 [18:57:58]written 0, free lines is 4095 [18:57:58]OFD Sender: Processing packet 260871 [packets to send 192, broken 191] [18:57:58]ProducePacketName [18:57:58]name=ofd_packets/00260871 [18:57:58]OFD Sender: To server: pG, [18:57:58]CommunicateWithHost lk.salyk.kg:30040 [18:57:58]ConnectInit lk.salyk.kg [18:57:59]Write to MH i2c: 01 00 00 3A B8 F2 [18:57:59]Write i2c OK [18:57:59]MH_I2C_Read... [18:57:59]Read from MH i2c: 01 [18:57:59]MH_I2C_Read... [18:57:59]Read from MH i2c: 01 07 00 [18:57:59]MH_I2C_Read... [18:57:59]Read from MH i2c: 01 07 00 3A B8 00 00 00 00 00 8B 0C 90 [18:57:59]RasterBufferAndPrint [18:57:59]line [18:57:59]line [18:57:59]line [18:57:59]line [18:57:59]line [18:57:59]written 0, free lines is 3214 [18:57:59]MH_Cut [18:57:59]Write to MH i2c: D1 01 00 41 B8 01 CB [18:57:59]Write i2c OK [18:57:59]MH_I2C_Read... [18:57:59]Read from MH i2c: D1 [18:57:59]MH_I2C_Read... [18:57:59]Read from MH i2c: D1 01 00 [18:57:59]MH_I2C_Read... [18:57:59]Read from MH i2c: D1 01 00 41 B8 00 CA [18:57:59]Write to MH i2c: 01 00 00 42 B8 FA [18:57:59]Write i2c OK [18:57:59]MH_I2C_Read... [18:57:59]Connected sock=11 [18:57: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 30 0F 01 00 00 73 47 07 01 A0 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 53 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 53 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 01 00 00 F4 03 04 00 3B 44 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 07 FB 03 00 35 04 06 00 0E 77 00 52 27 72 15 89 51 1F 79 6E C1 94 [18:57: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 30 4F 00 00 00 A2 EE 47 00 E6 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 30 10 04 04 00 07 FB 03 00 F4 03 04 00 8F ED C1 66 B6 04 01 00 00 AD 8C 6E D7 08 F0 F3 7A [18:57:59]CommunicateWithHost err = 0 [18:57:59]CheckOFDResponse [18:57:59]1017 (14) - 77093643461234 [18:57:59]1041 (16) - 0000000000871820 [18:57:59]1040 (4) - 260871 [18:57:59]1012 (4) - 18.08.2024 12:48 [18:57:59]1206 (1) - 0 [18:57:59]OFD Sender: Remove packet 260871 [18:57:59]ProducePacketName [18:57:59]name=ofd_packets/00260871 [18:57:59]NVStorageDeleteData [18:57:59]OFD Sender: No OFD packet to send [18:58:00]*** Cut start [18:58:00]*** Purtial cut [18:58:00]*** Stage 1: CUTSNS_PIN = 1 [18:58:02]Read from MH i2c: 01 [18:58:02]MH_I2C_Read... [18:58:02]*** Stop cut motor [18:58:02]*** Cut end [18:58:02]Read from MH i2c: 01 07 00 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: 01 07 00 42 B8 00 00 00 00 00 FF 0F 0F [18:58:02]process_action close_receipt done [18:58:02]requested_data is exist [18:58:02]produce_requested_data [18:58:02]requested_item fm.sn is exist - process it [18:58:02]wFMCommunicate request_size=4 [18:58:02]MH_SAM_APDU [18:58:02]CAPDU: 80 11 00 00 [18:58:02]Write to MH i2c: E2 08 00 43 B8 80 11 00 00 00 00 00 00 75 [18:58:02]Write i2c OK [18:58:02]MH_I2C_Read... [18:58:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:02]Read from MH i2c: E2 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: E2 17 00 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: E2 17 00 43 B8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C2 [18:58:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [18:58:02]wFMCommunicate OK [18:58:02]requested_item fd.num is exist - process it [18:58:02]SAM_PROTO_GetFieldsCounters [18:58:02]wFMCommunicate request_size=4 [18:58:02]MH_SAM_APDU [18:58:02]CAPDU: 80 13 00 00 [18:58:02]Write to MH i2c: E2 08 00 44 B8 80 13 00 00 00 00 00 00 78 [18:58:02]Write i2c OK [18:58:02]MH_I2C_Read... [18:58:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:02]Read from MH i2c: E2 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: E2 62 00 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: E2 62 00 44 B8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 07 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 AD 01 00 00 5E 04 04 00 AD 01 00 00 57 04 04 00 AE 01 00 00 19 04 04 00 00 00 00 00 90 00 68 [18:58: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 07 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 AD 01 00 00 5E 04 04 00 AD 01 00 00 57 04 04 00 AE 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:58:02]wFMCommunicate OK [18:58:02]SAM_PROTO_GetFieldsCounters done [18:58:02]requested_item shift.num is exist - process it [18:58:02]requested_item shift.opened is exist - process it [18:58:02]req_shift_opened [18:58:02]FM_GetShiftState [18:58:02]SAM_PROTO_GetShiftState [18:58:02]wFMCommunicate request_size=4 [18:58:02]MH_SAM_APDU [18:58:02]CAPDU: 80 13 01 00 [18:58:02]Write to MH i2c: E2 08 00 45 B8 80 13 01 00 00 00 00 00 7A [18:58:02]Write i2c OK [18:58:02]MH_I2C_Read... [18:58:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:02]Read from MH i2c: E2 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: E2 0E 00 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: E2 0E 00 45 B8 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B7 [18:58:02]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [18:58:02]wFMCommunicate OK [18:58:02]SAM_PROTO_GetShiftState done [18:58:02]FM_GetShiftState done [18:58:02]req_shift_opened done [18:58:02]requested_item shift.open_date is exist - process it [18:58:02]req_shift_open_date [18:58:02]req_shift_open_date done [18:58:02]produce_requested_data done [18:58:02]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260871,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [18:58:02]process_action_free close_receipt [18:58:02]json_value_free [18:58:02]json_value_free done [18:58:02]process_json_proto returns [18:58:02]Send response to host [18:58:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260871,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [18:58:02]free response buf [18:58:02]execute_script done [18:58:02]execute_script returns [18:58:02]free content buf [18:58:02]Sock 9.Close socket [18:58:02]Sock 9.Thread stoped [18:58:04]OFD Sender: No OFD packet to send [18:58:09]OFD Sender: No OFD packet to send [18:58:14]OFD Sender: No OFD packet to send [18:58:19]OFD Sender: No OFD packet to send [18:58:24]OFD Sender: No OFD packet to send [18:58:29]OFD Sender: No OFD packet to send [18:58:34]OFD Sender: No OFD packet to send [18:58:39]OFD Sender: No OFD packet to send [18:58:44]OFD Sender: No OFD packet to send [18:58:49]OFD Sender: No OFD packet to send [18:58:54]OFD Sender: No OFD packet to send [18:58:59]OFD Sender: No OFD packet to send [18:59:04]OFD Sender: No OFD packet to send [18:59:09]OFD Sender: No OFD packet to send [18:59:14]OFD Sender: No OFD packet to send [18:59:19]OFD Sender: No OFD packet to send [18:59:24]OFD Sender: No OFD packet to send [18:59:29]OFD Sender: No OFD packet to send [18:59:34]OFD Sender: No OFD packet to send [18:59:39]OFD Sender: No OFD packet to send [18:59:44]OFD Sender: No OFD packet to send [18:59:49]OFD Sender: No OFD packet to send [18:59:54]OFD Sender: No OFD packet to send [18:59:59]OFD Sender: No OFD packet to send [19:00:04]OFD Sender: No OFD packet to send [19:00:09]OFD Sender: No OFD packet to send [19:00:11]accept exits with 7 [19:00:11]New connection [19:00:11]New thread 3066473828 created [19:00:11]Thread 3066617188 joined [19:00:11]Waiting for new connection... [19:00:11] Sock 7.Parse request [19:00:11]Sock 7.Check first char [19:00:11]Sock 7.First char is OK [19:00:11]request: POST /json_proto HTTP/1.0 [19:00:11]Method: POST [19:00:11]URL: /json_proto [19:00:11]Method is POST - this is cgi request [19:00:11]url: /json_proto [19:00:11]query_string will be loaded in cgi processing [19:00:11]execute_cgi json_proto POST (null) [19:00:11]execute_cgi path=json_proto method=POST [19:00:11]POST find Content-Length [19:00:11]Host: 172.17.55.133:8080 [19:00:11]Content-Length: 683 [19:00:11]Content-Type: application/json [19:00:11] [19:00:11]POST finish read [19:00:11]Found Content-Length = 683 [19:00:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036424", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:00:11]execute_script... [19:00: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)1036424", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:00:11]POST & json_proto [19:00:11]process_json_proto [19:00:11]json parsed OK: [19:00:11]protocol is kg_v1.0 [19:00:11]action value=close_receipt [19:00:11]process_action close_receipt [19:00:11]cmd_close_receipt [19:00:11]MH_GetDate [19:00:11]Write to MH i2c: F0 00 00 46 B8 ED [19:00:11]Write i2c OK [19:00:11]MH_I2C_Read... [19:00:11]Read from MH i2c: F0 [19:00:11]MH_I2C_Read... [19:00:11]Read from MH i2c: F0 09 00 [19:00:11]MH_I2C_Read... [19:00:11]Read from MH i2c: F0 09 00 46 B8 00 C2 44 C2 66 34 48 D8 65 DD [19:00:11]GetLastDocTimeStamp 1724007483 [19:00:11]current date 1724007618 [19:00:11]FM_GetShiftState [19:00:11]SAM_PROTO_GetShiftState [19:00:11]wFMCommunicate request_size=4 [19:00:11]MH_SAM_APDU [19:00:11]CAPDU: 80 13 01 00 [19:00:11]Write to MH i2c: E2 08 00 47 B8 80 13 01 00 00 00 00 00 7C [19:00:11]Write i2c OK [19:00:11]MH_I2C_Read... [19:00:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:11]Read from MH i2c: E2 [19:00:11]MH_I2C_Read... [19:00:11]Read from MH i2c: E2 0E 00 [19:00:11]MH_I2C_Read... [19:00:11]Read from MH i2c: E2 0E 00 47 B8 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B9 [19:00:11]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:00:11]wFMCommunicate OK [19:00:11]SAM_PROTO_GetShiftState done [19:00:11]FM_GetShiftState done [19:00:11]opened in 1723940556 [19:00:11]opened+sec_in_day 1724026956 [19:00:11]quantity*price = 100021 [19:00:11]sum+1 = 100023 [19:00:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 430 18.08.2024 19:00 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260872 ФПД: 80642712429980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T190018&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260872&fm=80642712429980&tin=02508201610067®Number=0000000000091865&sum=100000 [19:00:12]StoreToDocumentArchive [19:00:12]shift 449 fd 260872 [19:00:12]save to /storage/0449/doc_00260872 [19:00:12]save last doc name /storage/0449/doc_00260872 to /storage/kkm_last_doc_name [19:00:12]save OK [19:00:12]Clear old archive folders... [19:00:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:00:12]tlvbuf is 004A4690 [19:00:12]SAM_PROTO_ClearQueue [19:00:12]wFMCommunicate request_size=4 [19:00:12]MH_SAM_APDU [19:00:12]CAPDU: 80 09 00 00 [19:00:12]Write to MH i2c: E2 08 00 54 B8 80 09 00 00 00 00 00 00 7E [19:00:12]Write i2c OK [19:00:12]MH_I2C_Read... [19:00:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:00:12]Read from MH i2c: E2 [19:00:12]MH_I2C_Read... [19:00:12]Read from MH i2c: E2 03 00 [19:00:12]MH_I2C_Read... [19:00:12]Read from MH i2c: E2 03 00 54 B8 00 90 00 80 [19:00:12]RAPDU: 90 00 [19:00:12]wFMCommunicate OK [19:00:12]SAM_PROTO_ClearQueue done [19:00:12]KKMCreateOFDPacket [19:00:12]OFDProtocolAddRootSTLVToBuf [19:00:12]FM_MakeSignedData [19:00:12]FM_MakeSignedData [19:00:12]SAM_PROTO_SignData [19:00:12]wFMCommunicate request_size=4 [19:00:12]MH_SAM_APDU [19:00:12]CAPDU: 80 0D 01 02 [19:00:12]Write to MH i2c: E2 08 00 55 B8 80 0D 01 02 00 00 00 00 86 [19:00:12]Write i2c OK [19:00:12]MH_I2C_Read... [19:00:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:00:12]Read from MH i2c: E2 [19:00:12]MH_I2C_Read... [19:00:12]Read from MH i2c: E2 03 00 [19:00:12]MH_I2C_Read... [19:00:12]Read from MH i2c: E2 03 00 55 B8 00 90 00 81 [19:00:12]RAPDU: 90 00 [19:00:12]wFMCommunicate OK [19:00:12]wFMCommunicate request_size=255 [19:00:12]MH_SAM_APDU [19:00: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 C2 44 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 08 FB 03 00 35 04 06 00 49 [19:00:12]Write to MH i2c: E2 02 01 56 B8 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 C2 44 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 08 FB 03 00 35 04 06 00 49 00 00 1E [19:00:12]Write i2c OK [19:00:12]MH_I2C_Read... [19:00:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:13]Read from MH i2c: E2 [19:00:13]MH_I2C_Read... [19:00:13]Read from MH i2c: E2 03 00 [19:00:13]MH_I2C_Read... [19:00:13]Read from MH i2c: E2 03 00 56 B8 00 90 00 82 [19:00:13]RAPDU: 90 00 [19:00:13]wFMCommunicate OK [19:00:13]wFMCommunicate request_size=10 [19:00:13]MH_SAM_APDU [19:00:13]CAPDU: 80 0D 02 02 05 58 18 3A 65 9C [19:00:13]Write to MH i2c: E2 0D 00 57 B8 80 0D 02 02 05 00 58 18 3A 65 9C 00 00 3E [19:00:13]Write i2c OK [19:00:13]MH_I2C_Read... [19:00:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:13]Read from MH i2c: E2 [19:00:13]MH_I2C_Read... [19:00:13]Read from MH i2c: E2 03 00 [19:00:13]MH_I2C_Read... [19:00:13]Read from MH i2c: E2 03 00 57 B8 00 90 00 83 [19:00:13]RAPDU: 90 00 [19:00:13]wFMCommunicate OK [19:00:13]wFMCommunicate request_size=4 [19:00:13]MH_SAM_APDU [19:00:13]CAPDU: 80 0D 03 02 [19:00:13]Write to MH i2c: E2 08 00 58 B8 80 0D 03 02 00 00 00 00 8B [19:00:13]Write i2c OK [19:00:13]MH_I2C_Read... [19:00:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:00:13]Read from MH i2c: E2 [19:00:13]MH_I2C_Read... [19:00:13]Read from MH i2c: E2 0B 00 [19:00:13]MH_I2C_Read... [19:00:13]Read from MH i2c: E2 0B 00 58 B8 00 F4 E4 BE 93 2F 35 81 FE 90 00 98 [19:00:13]RAPDU: F4 E4 BE 93 2F 35 81 FE 90 00 [19:00:13]wFMCommunicate OK [19:00:13]SAM_PROTO_SignData done [19:00:13]FM_MakeSignedData done [19:00:13]CreateOFDProtocolMessage [19:00:13]wFMCommunicate request_size=4 [19:00:13]MH_SAM_APDU [19:00:13]CAPDU: 80 11 00 00 [19:00:13]Write to MH i2c: E2 08 00 59 B8 80 11 00 00 00 00 00 00 8B [19:00:13]Write i2c OK [19:00:13]MH_I2C_Read... [19:00:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:13]Read from MH i2c: E2 [19:00:13]MH_I2C_Read... [19:00:13]Read from MH i2c: E2 17 00 [19:00:13]MH_I2C_Read... [19:00:13]Read from MH i2c: E2 17 00 59 B8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D8 [19:00:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:00:13]wFMCommunicate OK [19:00:13]CreateOFDProtocolMessage done [19:00:13]OFDSenderStorePacket 260872 [19:00:13]StoreOFDPacket docnum=260872 [19:00:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 7F 0F 07 01 CB 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 C2 44 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 08 FB 03 00 35 04 06 00 49 58 18 3A 65 9C F4 E4 BE 93 2F 35 81 FE [19:00:13]CheckFolder [19:00:13]dirname=/storage/ofd_packets [19:00:13]CheckFolder done [19:00:13]ProducePacketName [19:00:13]name=ofd_packets/00260872 [19:00:13]NVStorageSaveData ofd_packets/00260872 [19:00:13]File name is /storage/ofd_packets/00260872 [19:00:13]Write 301 bytes [19:00:13]NVStorageSaveData done [19:00:13]OFDSenderStorePacket done [19:00:13]KKMCreateOFDPacket done [19:00:13]NVStorageSaveData kkm_last_timestamp [19:00:13]File name is /storage/kkm_last_timestamp [19:00:13]Write 4 bytes [19:00:13]NVStorageSaveData done [19:00:13]ExternCall_PrintAddStr [19:00:13]wPrintStart [19:00:13]Write to MH i2c: 01 00 00 5A B8 12 [19:00:13]OFD Sender: Processing packet 260872 [packets to send 192, broken 191] [19:00:13]ProducePacketName [19:00:13]name=ofd_packets/00260872 [19:00:13]OFD Sender: To server: pG, [19:00:13]Write i2c OK [19:00:13]MH_I2C_Read... [19:00:13]CommunicateWithHost lk.salyk.kg:30040 [19:00:13]ConnectInit lk.salyk.kg [19:00:13]Read from MH i2c: 01 [19:00:13]MH_I2C_Read... [19:00:13]Read from MH i2c: 01 07 00 [19:00:13]MH_I2C_Read... [19:00:13]Read from MH i2c: 01 07 00 5A B8 00 00 00 00 00 FF 0F 27 [19:00:13]RasterBufferAndPrint [19:00:13]line Счет N : (1)1036424 [19:00:13]line ИНН: 02508201610067 [19:00:13]line Контрольно-Кассовый Чек [19:00:13]line ПРОДАЖА [19:00:13]line ТРК (МРК, ГНК) : 13 [19:00:13]line Товар: 2710124500 [19:00:13]line Аи-95-К-5 [19:00:13]line 13.480 * 74.20 [19:00:13]line = 1000.22 [19:00:13]line НДС 12% НСП 1% [19:00:13]line > о реализуемом товаре [19:00:13]line ОКРУГЛЕНИЕ: -0.22 [19:00:13]line ИТОГО: 1000.00 [19:00:13]line Внесено: 1000.00 [19:00:13]line СДАЧА: 0.00 [19:00:13]line НСП 1% : 8.85 [19:00:13]line НДС 12% : 106.22 [19:00:13]line Наличными: 1000.00 [19:00:13]line Безнал.: 0.00 [19:00:13]line Место: АЗС № 94 "Партнер Нефть" [19:00:13]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [19:00:13]line СНО: Общий режим [19:00:13]line Чек 430 18.08.2024 19:00 [19:00:13]line Смена: 449 ФФД: 1.0 [19:00:13]line ЗНМ: 0300000099 [19:00:13]line РНМ: 0000000000091865 [19:00:13]line Версия ККМ: 001 [19:00:13]line ФМ: 0000000000871820 [19:00:13]line ФД: 260872 [19:00:13]line ФПД: 80642712429980 [19:00:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T190018&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260872&fm=80642712429980&tin=02508201610067®Number=0000000000091865&sum=100000 [19:00:13]written 0, free lines is 4095 [19:00:13]Connected sock=10 [19:00: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 30 0F 01 00 00 7F 0F 07 01 CB 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 C2 44 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 08 FB 03 00 35 04 06 00 49 58 18 3A 65 9C F4 E4 BE 93 2F 35 81 FE [19:00: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 30 4F 00 00 00 71 AB 47 00 04 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 30 10 04 04 00 08 FB 03 00 F4 03 04 00 15 EE C1 66 B6 04 01 00 00 4D 08 61 7F 89 21 A9 77 [19:00:13]CommunicateWithHost err = 0 [19:00:13]CheckOFDResponse [19:00:13]1017 (14) - 77093643461234 [19:00:13]1041 (16) - 0000000000871820 [19:00:13]1040 (4) - 260872 [19:00:13]1012 (4) - 18.08.2024 12:50 [19:00:13]1206 (1) - 0 [19:00:13]OFD Sender: Remove packet 260872 [19:00:13]ProducePacketName [19:00:13]name=ofd_packets/00260872 [19:00:13]NVStorageDeleteData [19:00:13]Write to MH i2c: 01 00 00 85 B8 3D [19:00:13]Write i2c OK [19:00:13]MH_I2C_Read... [19:00:13]Read from MH i2c: 01 [19:00:13]MH_I2C_Read... [19:00:13]Read from MH i2c: 01 07 00 [19:00:13]MH_I2C_Read... [19:00:13]Read from MH i2c: 01 07 00 85 B8 00 00 00 00 00 7D 0C CD [19:00:13]RasterBufferAndPrint [19:00:13]line [19:00:13]line [19:00:13]line [19:00:13]line [19:00:13]line [19:00:13]written 0, free lines is 3200 [19:00:13]MH_Cut [19:00:13]Write to MH i2c: D1 01 00 8C B8 01 16 [19:00:13]Write i2c OK [19:00:13]MH_I2C_Read... [19:00:13]Read from MH i2c: D1 [19:00:13]MH_I2C_Read... [19:00:13]Read from MH i2c: D1 01 00 [19:00:13]MH_I2C_Read... [19:00:13]Read from MH i2c: D1 01 00 8C B8 00 15 [19:00:13]Write to MH i2c: 01 00 00 8D B8 45 [19:00:13]Write i2c OK [19:00:13]MH_I2C_Read... [19:00:14]OFD Sender: No OFD packet to send [19:00:15]*** Cut start [19:00:15]*** Purtial cut [19:00:15]*** Stage 1: CUTSNS_PIN = 1 [19:00:17]Read from MH i2c: 01 [19:00:17]MH_I2C_Read... [19:00:17]*** Stop cut motor [19:00:17]*** Cut end [19:00:17]Read from MH i2c: 01 07 00 [19:00:17]MH_I2C_Read... [19:00:17]Read from MH i2c: 01 07 00 8D B8 00 00 00 00 00 FF 0F 5A [19:00:17]process_action close_receipt done [19:00:17]requested_data is exist [19:00:17]produce_requested_data [19:00:17]requested_item fm.sn is exist - process it [19:00:17]wFMCommunicate request_size=4 [19:00:17]MH_SAM_APDU [19:00:17]CAPDU: 80 11 00 00 [19:00:17]Write to MH i2c: E2 08 00 8E B8 80 11 00 00 00 00 00 00 C0 [19:00:17]Write i2c OK [19:00:17]MH_I2C_Read... [19:00:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:17]Read from MH i2c: E2 [19:00:17]MH_I2C_Read... [19:00:17]Read from MH i2c: E2 17 00 [19:00:17]MH_I2C_Read... [19:00:17]Read from MH i2c: E2 17 00 8E B8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 0D [19:00:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:00:17]wFMCommunicate OK [19:00:17]requested_item fd.num is exist - process it [19:00:17]SAM_PROTO_GetFieldsCounters [19:00:17]wFMCommunicate request_size=4 [19:00:17]MH_SAM_APDU [19:00:17]CAPDU: 80 13 00 00 [19:00:17]Write to MH i2c: E2 08 00 8F B8 80 13 00 00 00 00 00 00 C3 [19:00:17]Write i2c OK [19:00:17]MH_I2C_Read... [19:00:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:00:17]Read from MH i2c: E2 [19:00:17]MH_I2C_Read... [19:00:17]Read from MH i2c: E2 62 00 [19:00:17]MH_I2C_Read... [19:00:17]Read from MH i2c: E2 62 00 8F B8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 08 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 AE 01 00 00 5E 04 04 00 AE 01 00 00 57 04 04 00 AF 01 00 00 19 04 04 00 00 00 00 00 90 00 B7 [19:00: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 08 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 AE 01 00 00 5E 04 04 00 AE 01 00 00 57 04 04 00 AF 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:00:17]wFMCommunicate OK [19:00:17]SAM_PROTO_GetFieldsCounters done [19:00:17]requested_item shift.num is exist - process it [19:00:17]requested_item shift.opened is exist - process it [19:00:17]req_shift_opened [19:00:17]FM_GetShiftState [19:00:17]SAM_PROTO_GetShiftState [19:00:17]wFMCommunicate request_size=4 [19:00:17]MH_SAM_APDU [19:00:17]CAPDU: 80 13 01 00 [19:00:17]Write to MH i2c: E2 08 00 90 B8 80 13 01 00 00 00 00 00 C5 [19:00:17]Write i2c OK [19:00:17]MH_I2C_Read... [19:00:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:17]Read from MH i2c: E2 [19:00:17]MH_I2C_Read... [19:00:17]Read from MH i2c: E2 0E 00 [19:00:17]MH_I2C_Read... [19:00:17]Read from MH i2c: E2 0E 00 90 B8 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 02 [19:00:17]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:00:17]wFMCommunicate OK [19:00:17]SAM_PROTO_GetShiftState done [19:00:17]FM_GetShiftState done [19:00:17]req_shift_opened done [19:00:17]requested_item shift.open_date is exist - process it [19:00:17]req_shift_open_date [19:00:17]req_shift_open_date done [19:00:17]produce_requested_data done [19:00:17]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260872,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [19:00:17]process_action_free close_receipt [19:00:17]json_value_free [19:00:17]json_value_free done [19:00:17]process_json_proto returns [19:00:17]Send response to host [19:00:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260872,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [19:00:17]free response buf [19:00:17]execute_script done [19:00:17]execute_script returns [19:00:17]free content buf [19:00:17]Sock 7.Close socket [19:00:17]Sock 7.Thread stoped [19:00:19]OFD Sender: No OFD packet to send [19:00:24]OFD Sender: No OFD packet to send [19:00:29]OFD Sender: No OFD packet to send [19:00:34]OFD Sender: No OFD packet to send [19:00:39]OFD Sender: No OFD packet to send [19:00:44]OFD Sender: No OFD packet to send [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:27]accept exits with 9 [19:02:27]New connection [19:02:27]New thread 3066617188 created [19:02:27]Thread 3066473828 joined [19:02:27]Waiting for new connection... [19:02:27] Sock 9.Parse request [19:02:27]Sock 9.Check first char [19:02:27]Sock 9.First char is OK [19:02:27]request: POST /json_proto HTTP/1.0 [19:02:27]Method: POST [19:02:27]URL: /json_proto [19:02:27]Method is POST - this is cgi request [19:02:27]url: /json_proto [19:02:27]query_string will be loaded in cgi processing [19:02:27]execute_cgi json_proto POST (null) [19:02:27]execute_cgi path=json_proto method=POST [19:02:27]POST find Content-Length [19:02:27]Host: 172.17.55.133:8080 [19:02:27]Content-Length: 683 [19:02:27]Content-Type: application/json [19:02:27] [19:02:27]POST finish read [19:02:27]Found Content-Length = 683 [19:02:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:02:27]execute_script... [19:02: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)1036425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:02:27]POST & json_proto [19:02:27]process_json_proto [19:02:27]json parsed OK: [19:02:27]protocol is kg_v1.0 [19:02:27]action value=close_receipt [19:02:27]process_action close_receipt [19:02:27]cmd_close_receipt [19:02:27]MH_GetDate [19:02:27]Write to MH i2c: F0 00 00 91 B8 38 [19:02:27]Write i2c OK [19:02:27]MH_I2C_Read... [19:02:27]Read from MH i2c: F0 [19:02:27]MH_I2C_Read... [19:02:27]Read from MH i2c: F0 09 00 [19:02:27]MH_I2C_Read... [19:02:27]Read from MH i2c: F0 09 00 91 B8 00 4A 45 C2 66 34 48 D8 65 B1 [19:02:27]GetLastDocTimeStamp 1724007618 [19:02:27]current date 1724007754 [19:02:27]FM_GetShiftState [19:02:27]SAM_PROTO_GetShiftState [19:02:27]wFMCommunicate request_size=4 [19:02:27]MH_SAM_APDU [19:02:27]CAPDU: 80 13 01 00 [19:02:27]Write to MH i2c: E2 08 00 92 B8 80 13 01 00 00 00 00 00 C7 [19:02:27]Write i2c OK [19:02:27]MH_I2C_Read... [19:02:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:28]Read from MH i2c: E2 [19:02:28]MH_I2C_Read... [19:02:28]Read from MH i2c: E2 0E 00 [19:02:28]MH_I2C_Read... [19:02:28]Read from MH i2c: E2 0E 00 92 B8 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 04 [19:02:28]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:02:28]wFMCommunicate OK [19:02:28]SAM_PROTO_GetShiftState done [19:02:28]FM_GetShiftState done [19:02:28]opened in 1723940556 [19:02:28]opened+sec_in_day 1724026956 [19:02:28]quantity*price = 100005 [19:02:28]sum+1 = 100006 [19:02:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 431 18.08.2024 19:02 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260873 ФПД: 163202135205672 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T190234&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260873&fm=163202135205672&tin=02508201610067®Number=0000000000091865&sum=100000 [19:02:29]StoreToDocumentArchive [19:02:29]shift 449 fd 260873 [19:02:29]save to /storage/0449/doc_00260873 [19:02:29]save last doc name /storage/0449/doc_00260873 to /storage/kkm_last_doc_name [19:02:29]save OK [19:02:29]Clear old archive folders... [19:02:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:02:29]tlvbuf is 003E3090 [19:02:29]SAM_PROTO_ClearQueue [19:02:29]wFMCommunicate request_size=4 [19:02:29]MH_SAM_APDU [19:02:29]CAPDU: 80 09 00 00 [19:02:29]Write to MH i2c: E2 08 00 9F B8 80 09 00 00 00 00 00 00 C9 [19:02:29]Write i2c OK [19:02:29]MH_I2C_Read... [19:02:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:02:29]Read from MH i2c: E2 [19:02:29]MH_I2C_Read... [19:02:29]Read from MH i2c: E2 03 00 [19:02:29]MH_I2C_Read... [19:02:29]Read from MH i2c: E2 03 00 9F B8 00 90 00 CB [19:02:29]RAPDU: 90 00 [19:02:29]wFMCommunicate OK [19:02:29]SAM_PROTO_ClearQueue done [19:02:29]KKMCreateOFDPacket [19:02:29]OFDProtocolAddRootSTLVToBuf [19:02:29]FM_MakeSignedData [19:02:29]FM_MakeSignedData [19:02:29]SAM_PROTO_SignData [19:02:29]wFMCommunicate request_size=4 [19:02:29]MH_SAM_APDU [19:02:29]CAPDU: 80 0D 01 02 [19:02:29]Write to MH i2c: E2 08 00 A0 B8 80 0D 01 02 00 00 00 00 D1 [19:02:29]Write i2c OK [19:02:29]MH_I2C_Read... [19:02:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:02:29]Read from MH i2c: E2 [19:02:29]MH_I2C_Read... [19:02:29]Read from MH i2c: E2 03 00 [19:02:29]MH_I2C_Read... [19:02:29]Read from MH i2c: E2 03 00 A0 B8 00 90 00 CC [19:02:29]RAPDU: 90 00 [19:02:29]wFMCommunicate OK [19:02:29]wFMCommunicate request_size=255 [19:02:29]MH_SAM_APDU [19:02:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 01 00 00 F4 03 04 00 4A 45 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 09 FB 03 00 35 04 06 00 94 [19:02:29]Write to MH i2c: E2 02 01 A1 B8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 01 00 00 F4 03 04 00 4A 45 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 09 FB 03 00 35 04 06 00 94 00 00 A1 [19:02:29]Write i2c OK [19:02:29]MH_I2C_Read... [19:02:29]OFD Sender: No OFD packet to send [19:02:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:29]Read from MH i2c: E2 [19:02:29]MH_I2C_Read... [19:02:29]Read from MH i2c: E2 03 00 [19:02:29]MH_I2C_Read... [19:02:29]Read from MH i2c: E2 03 00 A1 B8 00 90 00 CD [19:02:29]RAPDU: 90 00 [19:02:29]wFMCommunicate OK [19:02:29]wFMCommunicate request_size=10 [19:02:29]MH_SAM_APDU [19:02:29]CAPDU: 80 0D 02 02 05 6E 75 4B A7 28 [19:02:29]Write to MH i2c: E2 0D 00 A2 B8 80 0D 02 02 05 00 6E 75 4B A7 28 00 00 DB [19:02:29]Write i2c OK [19:02:29]MH_I2C_Read... [19:02:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:29]Read from MH i2c: E2 [19:02:29]MH_I2C_Read... [19:02:29]Read from MH i2c: E2 03 00 [19:02:29]MH_I2C_Read... [19:02:29]Read from MH i2c: E2 03 00 A2 B8 00 90 00 CE [19:02:29]RAPDU: 90 00 [19:02:29]wFMCommunicate OK [19:02:29]wFMCommunicate request_size=4 [19:02:29]MH_SAM_APDU [19:02:29]CAPDU: 80 0D 03 02 [19:02:29]Write to MH i2c: E2 08 00 A3 B8 80 0D 03 02 00 00 00 00 D6 [19:02:29]Write i2c OK [19:02:29]MH_I2C_Read... [19:02:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:02:29]Read from MH i2c: E2 [19:02:29]MH_I2C_Read... [19:02:29]Read from MH i2c: E2 0B 00 [19:02:29]MH_I2C_Read... [19:02:29]Read from MH i2c: E2 0B 00 A3 B8 00 2B 5E F6 3C 00 0E 4E 6E 90 00 5C [19:02:29]RAPDU: 2B 5E F6 3C 00 0E 4E 6E 90 00 [19:02:29]wFMCommunicate OK [19:02:29]SAM_PROTO_SignData done [19:02:29]FM_MakeSignedData done [19:02:29]CreateOFDProtocolMessage [19:02:29]wFMCommunicate request_size=4 [19:02:29]MH_SAM_APDU [19:02:29]CAPDU: 80 11 00 00 [19:02:29]Write to MH i2c: E2 08 00 A4 B8 80 11 00 00 00 00 00 00 D6 [19:02:29]Write i2c OK [19:02:29]MH_I2C_Read... [19:02:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:29]Read from MH i2c: E2 [19:02:29]MH_I2C_Read... [19:02:29]Read from MH i2c: E2 17 00 [19:02:29]MH_I2C_Read... [19:02:29]Read from MH i2c: E2 17 00 A4 B8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 23 [19:02:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:02:29]wFMCommunicate OK [19:02:29]CreateOFDProtocolMessage done [19:02:29]OFDSenderStorePacket 260873 [19:02:29]StoreOFDPacket docnum=260873 [19:02:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 8B 54 07 01 B4 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 01 00 00 F4 03 04 00 4A 45 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 09 FB 03 00 35 04 06 00 94 6E 75 4B A7 28 2B 5E F6 3C 00 0E 4E 6E [19:02:29]CheckFolder [19:02:29]dirname=/storage/ofd_packets [19:02:29]CheckFolder done [19:02:29]ProducePacketName [19:02:29]name=ofd_packets/00260873 [19:02:29]NVStorageSaveData ofd_packets/00260873 [19:02:29]File name is /storage/ofd_packets/00260873 [19:02:29]Write 301 bytes [19:02:29]NVStorageSaveData done [19:02:29]OFDSenderStorePacket done [19:02:29]KKMCreateOFDPacket done [19:02:29]NVStorageSaveData kkm_last_timestamp [19:02:29]File name is /storage/kkm_last_timestamp [19:02:29]Write 4 bytes [19:02:29]NVStorageSaveData done [19:02:29]ExternCall_PrintAddStr [19:02:29]wPrintStart [19:02:29]Write to MH i2c: 01 00 00 A5 B8 5D [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 A5 B8 00 00 00 00 00 FF 0F 72 [19:02:29]RasterBufferAndPrint [19:02:29]line Счет N : (1)1036425 [19:02:29]line ИНН: 02508201610067 [19:02:29]line Контрольно-Кассовый Чек [19:02:29]line ПРОДАЖА [19:02:29]line ТРК (МРК, ГНК) : 12 [19:02:29]line Товар: 2710124130 [19:02:29]line Аи-92-К-5 [19:02:29]line 14.750 * 67.80 [19:02:29]line = 1000.05 [19:02:29]line НДС 12% НСП 1% [19:02:29]line > о реализуемом товаре [19:02:29]line ОКРУГЛЕНИЕ: -0.05 [19:02:29]line ИТОГО: 1000.00 [19:02:29]line Внесено: 1000.00 [19:02:29]line СДАЧА: 0.00 [19:02:29]line НСП 1% : 8.85 [19:02:29]line НДС 12% : 106.20 [19:02:29]line Наличными: 1000.00 [19:02:29]line Безнал.: 0.00 [19:02:29]line Место: АЗС № 94 "Партнер Нефть" [19:02:29]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [19:02:29]line СНО: Общий режим [19:02:29]line Чек 431 18.08.2024 19:02 [19:02:29]line Смена: 449 ФФД: 1.0 [19:02:29]line ЗНМ: 0300000099 [19:02:29]line РНМ: 0000000000091865 [19:02:29]line Версия ККМ: 001 [19:02:29]line ФМ: 0000000000871820 [19:02:29]line ФД: 260873 [19:02:29]line ФПД: 163202135205672 [19:02:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T190234&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260873&fm=163202135205672&tin=02508201610067®Number=0000000000091865&sum=100000 [19:02:30]OFD Sender: Processing packet 260873 [packets to send 192, broken 191] [19:02:30]ProducePacketName [19:02:30]name=ofd_packets/00260873 [19:02:30]OFD Sender: To server: pG, [19:02:30]CommunicateWithHost lk.salyk.kg:30040 [19:02:30]ConnectInit lk.salyk.kg [19:02:30]written 0, free lines is 4095 [19:02:30]Connected sock=10 [19:02: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 30 0F 01 00 00 8B 54 07 01 B4 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 01 00 00 F4 03 04 00 4A 45 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 09 FB 03 00 35 04 06 00 94 6E 75 4B A7 28 2B 5E F6 3C 00 0E 4E 6E [19:02: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 30 4F 00 00 00 E1 3D 47 00 70 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 09 FB 03 00 F4 03 04 00 9E EE C1 66 B6 04 01 00 00 73 1F 8A 0D 33 1B AB 78 [19:02:30]CommunicateWithHost err = 0 [19:02:30]CheckOFDResponse [19:02:30]1017 (14) - 77093643461234 [19:02:30]1041 (16) - 0000000000871820 [19:02:30]1040 (4) - 260873 [19:02:30]1012 (4) - 18.08.2024 12:52 [19:02:30]1206 (1) - 0 [19:02:30]OFD Sender: Remove packet 260873 [19:02:30]ProducePacketName [19:02:30]name=ofd_packets/00260873 [19:02:30]NVStorageDeleteData [19:02:30]Write to MH i2c: 01 00 00 D0 B8 88 [19:02:30]Write i2c OK [19:02:30]MH_I2C_Read... [19:02:30]Read from MH i2c: 01 [19:02:30]MH_I2C_Read... [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 D0 B8 00 00 00 00 00 6A 0C 05 [19:02:30]RasterBufferAndPrint [19:02:30]line [19:02:30]line [19:02:30]line [19:02:30]line [19:02:30]line [19:02:30]written 0, free lines is 3182 [19:02:30]MH_Cut [19:02:30]Write to MH i2c: D1 01 00 D7 B8 01 61 [19:02:30]Write i2c OK [19:02:30]MH_I2C_Read... [19:02:30]Read from MH i2c: D1 [19:02:30]MH_I2C_Read... [19:02:30]Read from MH i2c: D1 01 00 [19:02:30]MH_I2C_Read... [19:02:30]Read from MH i2c: D1 01 00 D7 B8 00 60 [19:02:30]Write to MH i2c: 01 00 00 D8 B8 90 [19:02:30]Write i2c OK [19:02:30]MH_I2C_Read... [19:02:30]OFD Sender: No OFD packet to send [19:02:31]*** Cut start [19:02:31]*** Purtial cut [19:02:31]*** Stage 1: CUTSNS_PIN = 1 [19:02:33]Read from MH i2c: 01 [19:02:33]MH_I2C_Read... [19:02:33]*** Stop cut motor [19:02:33]*** Cut end [19:02:33]Read from MH i2c: 01 07 00 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: 01 07 00 D8 B8 00 00 00 00 00 FF 0F A5 [19:02:33]process_action close_receipt done [19:02:33]requested_data is exist [19:02:33]produce_requested_data [19:02:33]requested_item fm.sn is exist - process it [19:02:33]wFMCommunicate request_size=4 [19:02:33]MH_SAM_APDU [19:02:33]CAPDU: 80 11 00 00 [19:02:33]Write to MH i2c: E2 08 00 D9 B8 80 11 00 00 00 00 00 00 0B [19:02:33]Write i2c OK [19:02:33]MH_I2C_Read... [19:02:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:33]Read from MH i2c: E2 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: E2 17 00 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: E2 17 00 D9 B8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 58 [19:02:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:02:33]wFMCommunicate OK [19:02:33]requested_item fd.num is exist - process it [19:02:33]SAM_PROTO_GetFieldsCounters [19:02:33]wFMCommunicate request_size=4 [19:02:33]MH_SAM_APDU [19:02:33]CAPDU: 80 13 00 00 [19:02:33]Write to MH i2c: E2 08 00 DA B8 80 13 00 00 00 00 00 00 0E [19:02:33]Write i2c OK [19:02:33]MH_I2C_Read... [19:02:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:02:33]Read from MH i2c: E2 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: E2 62 00 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: E2 62 00 DA B8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 09 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 AF 01 00 00 5E 04 04 00 AF 01 00 00 57 04 04 00 B0 01 00 00 19 04 04 00 00 00 00 00 90 00 06 [19:02: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 09 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 AF 01 00 00 5E 04 04 00 AF 01 00 00 57 04 04 00 B0 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:02:33]wFMCommunicate OK [19:02:33]SAM_PROTO_GetFieldsCounters done [19:02:33]requested_item shift.num is exist - process it [19:02:33]requested_item shift.opened is exist - process it [19:02:33]req_shift_opened [19:02:33]FM_GetShiftState [19:02:33]SAM_PROTO_GetShiftState [19:02:33]wFMCommunicate request_size=4 [19:02:33]MH_SAM_APDU [19:02:33]CAPDU: 80 13 01 00 [19:02:33]Write to MH i2c: E2 08 00 DB B8 80 13 01 00 00 00 00 00 10 [19:02:33]Write i2c OK [19:02:33]MH_I2C_Read... [19:02:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:33]Read from MH i2c: E2 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: E2 0E 00 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: E2 0E 00 DB B8 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 4D [19:02:33]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:02:33]wFMCommunicate OK [19:02:33]SAM_PROTO_GetShiftState done [19:02:33]FM_GetShiftState done [19:02:33]req_shift_opened done [19:02:33]requested_item shift.open_date is exist - process it [19:02:33]req_shift_open_date [19:02:33]req_shift_open_date done [19:02:33]produce_requested_data done [19:02:33]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260873,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [19:02:33]process_action_free close_receipt [19:02:33]json_value_free [19:02:33]json_value_free done [19:02:33]process_json_proto returns [19:02:33]Send response to host [19:02:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260873,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [19:02:33]free response buf [19:02:33]execute_script done [19:02:33]execute_script returns [19:02:33]free content buf [19:02:33]Sock 9.Close socket [19:02:33]Sock 9.Thread stoped [19:02:35]OFD Sender: No OFD packet to send [19:02:40]OFD Sender: No OFD packet to send [19:02:45]OFD Sender: No OFD packet to send [19:02:50]OFD Sender: No OFD packet to send [19:02:55]OFD Sender: No OFD packet to send [19:03:00]OFD Sender: No OFD packet to send [19:03:05]OFD Sender: No OFD packet to send [19:03:10]OFD Sender: No OFD packet to send [19:03:15]OFD Sender: No OFD packet to send [19:03:20]OFD Sender: No OFD packet to send [19:03:25]OFD Sender: No OFD packet to send [19:03:30]OFD Sender: No OFD packet to send [19:03:35]OFD Sender: No OFD packet to send [19:03:40]OFD Sender: No OFD packet to send [19:03:45]OFD Sender: No OFD packet to send [19:03:50]OFD Sender: No OFD packet to send [19:03:55]OFD Sender: No OFD packet to send [19:04:00]OFD Sender: No OFD packet to send [19:04:05]OFD Sender: No OFD packet to send [19:04:08]accept exits with 7 [19:04:08]New connection [19:04:08]New thread 3066473828 created [19:04:08]Thread 3066617188 joined [19:04:08]Waiting for new connection... [19:04:08] Sock 7.Parse request [19:04:08]Sock 7.Check first char [19:04:08]Sock 7.First char is OK [19:04:08]request: POST /json_proto HTTP/1.0 [19:04:08]Method: POST [19:04:08]URL: /json_proto [19:04:08]Method is POST - this is cgi request [19:04:08]url: /json_proto [19:04:08]query_string will be loaded in cgi processing [19:04:08]execute_cgi json_proto POST (null) [19:04:08]execute_cgi path=json_proto method=POST [19:04:08]POST find Content-Length [19:04:08]Host: 172.17.55.133:8080 [19:04:08]Content-Length: 683 [19:04:08]Content-Type: application/json [19:04:08] [19:04:08]POST finish read [19:04:08]Found Content-Length = 683 [19:04:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036426", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:08]execute_script... [19:04: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)1036426", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:08]POST & json_proto [19:04:08]process_json_proto [19:04:08]json parsed OK: [19:04:08]protocol is kg_v1.0 [19:04:08]action value=close_receipt [19:04:08]process_action close_receipt [19:04:08]cmd_close_receipt [19:04:08]MH_GetDate [19:04:08]Write to MH i2c: F0 00 00 DC B8 83 [19:04:08]Write i2c OK [19:04:08]MH_I2C_Read... [19:04:08]Read from MH i2c: F0 [19:04:08]MH_I2C_Read... [19:04:08]Read from MH i2c: F0 09 00 [19:04:08]MH_I2C_Read... [19:04:08]Read from MH i2c: F0 09 00 DC B8 00 AF 45 C2 66 34 48 D8 65 61 [19:04:08]GetLastDocTimeStamp 1724007754 [19:04:08]current date 1724007855 [19:04:08]FM_GetShiftState [19:04:08]SAM_PROTO_GetShiftState [19:04:08]wFMCommunicate request_size=4 [19:04:08]MH_SAM_APDU [19:04:08]CAPDU: 80 13 01 00 [19:04:08]Write to MH i2c: E2 08 00 DD B8 80 13 01 00 00 00 00 00 12 [19:04:08]Write i2c OK [19:04:08]MH_I2C_Read... [19:04:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:08]Read from MH i2c: E2 [19:04:08]MH_I2C_Read... [19:04:08]Read from MH i2c: E2 0E 00 [19:04:08]MH_I2C_Read... [19:04:08]Read from MH i2c: E2 0E 00 DD B8 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 4F [19:04:08]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:04:08]wFMCommunicate OK [19:04:08]SAM_PROTO_GetShiftState done [19:04:08]FM_GetShiftState done [19:04:08]opened in 1723940556 [19:04:08]opened+sec_in_day 1724026956 [19:04:08]quantity*price = 100021 [19:04:08]sum+1 = 100023 [19:04:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 432 18.08.2024 19:04 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260874 ФПД: 269645083986585 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T190415&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260874&fm=269645083986585&tin=02508201610067®Number=0000000000091865&sum=100000 [19:04:09]StoreToDocumentArchive [19:04:09]shift 449 fd 260874 [19:04:09]save to /storage/0449/doc_00260874 [19:04:09]save last doc name /storage/0449/doc_00260874 to /storage/kkm_last_doc_name [19:04:09]save OK [19:04:09]Clear old archive folders... [19:04:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:04:09]tlvbuf is 006B9950 [19:04:09]SAM_PROTO_ClearQueue [19:04:09]wFMCommunicate request_size=4 [19:04:09]MH_SAM_APDU [19:04:09]CAPDU: 80 09 00 00 [19:04:09]Write to MH i2c: E2 08 00 EA B8 80 09 00 00 00 00 00 00 14 [19:04:09]Write i2c OK [19:04:09]MH_I2C_Read... [19:04:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:04:09]Read from MH i2c: E2 [19:04:09]MH_I2C_Read... [19:04:09]Read from MH i2c: E2 03 00 [19:04:09]MH_I2C_Read... [19:04:09]Read from MH i2c: E2 03 00 EA B8 00 90 00 16 [19:04:09]RAPDU: 90 00 [19:04:09]wFMCommunicate OK [19:04:09]SAM_PROTO_ClearQueue done [19:04:09]KKMCreateOFDPacket [19:04:09]OFDProtocolAddRootSTLVToBuf [19:04:09]FM_MakeSignedData [19:04:09]FM_MakeSignedData [19:04:09]SAM_PROTO_SignData [19:04:09]wFMCommunicate request_size=4 [19:04:09]MH_SAM_APDU [19:04:09]CAPDU: 80 0D 01 02 [19:04:09]Write to MH i2c: E2 08 00 EB B8 80 0D 01 02 00 00 00 00 1C [19:04:09]Write i2c OK [19:04:09]MH_I2C_Read... [19:04:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:04:10]Read from MH i2c: E2 [19:04:10]MH_I2C_Read... [19:04:10]Read from MH i2c: E2 03 00 [19:04:10]MH_I2C_Read... [19:04:10]Read from MH i2c: E2 03 00 EB B8 00 90 00 17 [19:04:10]RAPDU: 90 00 [19:04:10]wFMCommunicate OK [19:04:10]wFMCommunicate request_size=255 [19:04:10]MH_SAM_APDU [19:04: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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 01 00 00 F4 03 04 00 AF 45 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0A FB 03 00 35 04 06 00 F5 [19:04:10]Write to MH i2c: E2 02 01 EC B8 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 01 00 00 F4 03 04 00 AF 45 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0A FB 03 00 35 04 06 00 F5 00 00 52 [19:04:10]Write i2c OK [19:04:10]MH_I2C_Read... [19:04:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:10]Read from MH i2c: E2 [19:04:10]MH_I2C_Read... [19:04:10]Read from MH i2c: E2 03 00 [19:04:10]MH_I2C_Read... [19:04:10]Read from MH i2c: E2 03 00 EC B8 00 90 00 18 [19:04:10]RAPDU: 90 00 [19:04:10]wFMCommunicate OK [19:04:10]wFMCommunicate request_size=10 [19:04:10]MH_SAM_APDU [19:04:10]CAPDU: 80 0D 02 02 05 3D A3 72 4A 99 [19:04:10]Write to MH i2c: E2 0D 00 ED B8 80 0D 02 02 05 00 3D A3 72 4A 99 00 00 5E [19:04:10]Write i2c OK [19:04:10]MH_I2C_Read... [19:04:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:10]Read from MH i2c: E2 [19:04:10]MH_I2C_Read... [19:04:10]Read from MH i2c: E2 03 00 [19:04:10]MH_I2C_Read... [19:04:10]Read from MH i2c: E2 03 00 ED B8 00 90 00 19 [19:04:10]RAPDU: 90 00 [19:04:10]wFMCommunicate OK [19:04:10]wFMCommunicate request_size=4 [19:04:10]MH_SAM_APDU [19:04:10]CAPDU: 80 0D 03 02 [19:04:10]Write to MH i2c: E2 08 00 EE B8 80 0D 03 02 00 00 00 00 21 [19:04:10]Write i2c OK [19:04:10]MH_I2C_Read... [19:04:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:04:10]Read from MH i2c: E2 [19:04:10]MH_I2C_Read... [19:04:10]Read from MH i2c: E2 0B 00 [19:04:10]MH_I2C_Read... [19:04:10]Read from MH i2c: E2 0B 00 EE B8 00 31 89 5A D2 04 20 08 C6 90 00 FA [19:04:10]RAPDU: 31 89 5A D2 04 20 08 C6 90 00 [19:04:10]wFMCommunicate OK [19:04:10]SAM_PROTO_SignData done [19:04:10]FM_MakeSignedData done [19:04:10]CreateOFDProtocolMessage [19:04:10]wFMCommunicate request_size=4 [19:04:10]MH_SAM_APDU [19:04:10]CAPDU: 80 11 00 00 [19:04:10]Write to MH i2c: E2 08 00 EF B8 80 11 00 00 00 00 00 00 21 [19:04:10]Write i2c OK [19:04:10]MH_I2C_Read... [19:04:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:10]Read from MH i2c: E2 [19:04:10]MH_I2C_Read... [19:04:10]Read from MH i2c: E2 17 00 [19:04:10]MH_I2C_Read... [19:04:10]Read from MH i2c: E2 17 00 EF B8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 6E [19:04:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:04:10]wFMCommunicate OK [19:04:10]CreateOFDProtocolMessage done [19:04:10]OFDSenderStorePacket 260874 [19:04:10]StoreOFDPacket docnum=260874 [19:04:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 14 B5 07 01 95 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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 01 00 00 F4 03 04 00 AF 45 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0A FB 03 00 35 04 06 00 F5 3D A3 72 4A 99 31 89 5A D2 04 20 08 C6 [19:04:10]CheckFolder [19:04:10]dirname=/storage/ofd_packets [19:04:10]CheckFolder done [19:04:10]ProducePacketName [19:04:10]name=ofd_packets/00260874 [19:04:10]NVStorageSaveData ofd_packets/00260874 [19:04:10]File name is /storage/ofd_packets/00260874 [19:04:10]Write 301 bytes [19:04:10]NVStorageSaveData done [19:04:10]OFDSenderStorePacket done [19:04:10]KKMCreateOFDPacket done [19:04:10]NVStorageSaveData kkm_last_timestamp [19:04:10]File name is /storage/kkm_last_timestamp [19:04:10]Write 4 bytes [19:04:10]NVStorageSaveData done [19:04:10]ExternCall_PrintAddStr [19:04:10]wPrintStart [19:04:10]Write to MH i2c: 01 00 00 F0 B8 A8 [19:04:10]Write i2c OK [19:04:10]MH_I2C_Read... [19:04:10]Read from MH i2c: 01 [19:04:10]MH_I2C_Read... [19:04:10]Read from MH i2c: 01 07 00 [19:04:10]MH_I2C_Read... [19:04:10]Read from MH i2c: 01 07 00 F0 B8 00 00 00 00 00 FF 0F BD [19:04:10]RasterBufferAndPrint [19:04:10]line Счет N : (1)1036426 [19:04:10]line ИНН: 02508201610067 [19:04:10]line Контрольно-Кассовый Чек [19:04:10]line ПРОДАЖА [19:04:10]line ТРК (МРК, ГНК) : 13 [19:04:10]line Товар: 2710124500 [19:04:10]line Аи-95-К-5 [19:04:10]line 13.480 * 74.20 [19:04:10]line = 1000.22 [19:04:10]line НДС 12% НСП 1% [19:04:10]line > о реализуемом товаре [19:04:10]line ОКРУГЛЕНИЕ: -0.22 [19:04:10]line ИТОГО: 1000.00 [19:04:10]line Внесено: 1000.00 [19:04:10]line СДАЧА: 0.00 [19:04:10]line НСП 1% : 8.85 [19:04:10]line НДС 12% : 106.22 [19:04:10]line Наличными: 1000.00 [19:04:10]line Безнал.: 0.00 [19:04:10]line Место: АЗС № 94 "Партнер Нефть" [19:04:10]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [19:04:10]line СНО: Общий режим [19:04:10]line Чек 432 18.08.2024 19:04 [19:04:10]line Смена: 449 ФФД: 1.0 [19:04:10]line ЗНМ: 0300000099 [19:04:10]line РНМ: 0000000000091865 [19:04:10]line Версия ККМ: 001 [19:04:10]line ФМ: 0000000000871820 [19:04:10]line ФД: 260874 [19:04:10]line ФПД: 269645083986585 [19:04:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T190415&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260874&fm=269645083986585&tin=02508201610067®Number=0000000000091865&sum=100000 [19:04:10]written 0, free lines is 4095 [19:04:10]OFD Sender: Processing packet 260874 [packets to send 192, broken 191] [19:04:10]ProducePacketName [19:04:10]name=ofd_packets/00260874 [19:04:10]OFD Sender: To server: pG, [19:04:10]CommunicateWithHost lk.salyk.kg:30040 [19:04:10]ConnectInit lk.salyk.kg [19:04:10]Connected sock=10 [19:04: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 30 0F 01 00 00 14 B5 07 01 95 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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 01 00 00 F4 03 04 00 AF 45 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0A FB 03 00 35 04 06 00 F5 3D A3 72 4A 99 31 89 5A D2 04 20 08 C6 [19:04: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 30 4F 00 00 00 66 92 47 00 D6 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 30 10 04 04 00 0A FB 03 00 F4 03 04 00 03 EF C1 66 B6 04 01 00 00 03 3E 42 6B B6 62 46 08 [19:04:10]CommunicateWithHost err = 0 [19:04:10]CheckOFDResponse [19:04:10]1017 (14) - 77093643461234 [19:04:10]1041 (16) - 0000000000871820 [19:04:10]1040 (4) - 260874 [19:04:10]1012 (4) - 18.08.2024 12:54 [19:04:10]1206 (1) - 0 [19:04:10]OFD Sender: Remove packet 260874 [19:04:10]ProducePacketName [19:04:10]name=ofd_packets/00260874 [19:04:10]NVStorageDeleteData [19:04:10]Write to MH i2c: 01 00 00 1B B9 D4 [19:04:10]Write i2c OK [19:04:10]MH_I2C_Read... [19:04:10]Read from MH i2c: 01 [19:04:10]MH_I2C_Read... [19:04:10]Read from MH i2c: 01 07 00 [19:04:10]MH_I2C_Read... [19:04:10]Read from MH i2c: 01 07 00 1B B9 00 00 00 00 00 73 0C 5A [19:04:10]RasterBufferAndPrint [19:04:10]line [19:04:10]line [19:04:10]line [19:04:10]line [19:04:10]line [19:04:10]written 0, free lines is 3190 [19:04:10]MH_Cut [19:04:10]Write to MH i2c: D1 01 00 22 B9 01 AD [19:04:10]Write i2c OK [19:04:10]MH_I2C_Read... [19:04:10]Read from MH i2c: D1 [19:04:10]MH_I2C_Read... [19:04:10]Read from MH i2c: D1 01 00 [19:04:10]MH_I2C_Read... [19:04:10]Read from MH i2c: D1 01 00 22 B9 00 AC [19:04:10]Write to MH i2c: 01 00 00 23 B9 DC [19:04:10]Write i2c OK [19:04:10]MH_I2C_Read... [19:04:11]OFD Sender: No OFD packet to send [19:04:12]*** Cut start [19:04:12]*** Purtial cut [19:04:12]*** Stage 1: CUTSNS_PIN = 1 [19:04:14]Read from MH i2c: 01 [19:04:14]MH_I2C_Read... [19:04:14]*** Stop cut motor [19:04:14]*** Cut end [19:04:14]Read from MH i2c: 01 07 00 [19:04:14]MH_I2C_Read... [19:04:14]Read from MH i2c: 01 07 00 23 B9 00 00 00 00 00 FF 0F F1 [19:04:14]process_action close_receipt done [19:04:14]requested_data is exist [19:04:14]produce_requested_data [19:04:14]requested_item fm.sn is exist - process it [19:04:14]wFMCommunicate request_size=4 [19:04:14]MH_SAM_APDU [19:04:14]CAPDU: 80 11 00 00 [19:04:14]Write to MH i2c: E2 08 00 24 B9 80 11 00 00 00 00 00 00 57 [19:04:14]Write i2c OK [19:04:14]MH_I2C_Read... [19:04:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:14]Read from MH i2c: E2 [19:04:14]MH_I2C_Read... [19:04:14]Read from MH i2c: E2 17 00 [19:04:14]MH_I2C_Read... [19:04:14]Read from MH i2c: E2 17 00 24 B9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A4 [19:04:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:04:14]wFMCommunicate OK [19:04:14]requested_item fd.num is exist - process it [19:04:14]SAM_PROTO_GetFieldsCounters [19:04:14]wFMCommunicate request_size=4 [19:04:14]MH_SAM_APDU [19:04:14]CAPDU: 80 13 00 00 [19:04:14]Write to MH i2c: E2 08 00 25 B9 80 13 00 00 00 00 00 00 5A [19:04:14]Write i2c OK [19:04:14]MH_I2C_Read... [19:04:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:04:14]Read from MH i2c: E2 [19:04:14]MH_I2C_Read... [19:04:14]Read from MH i2c: E2 62 00 [19:04:14]MH_I2C_Read... [19:04:14]Read from MH i2c: E2 62 00 25 B9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 0A FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B0 01 00 00 5E 04 04 00 B0 01 00 00 57 04 04 00 B1 01 00 00 19 04 04 00 00 00 00 00 90 00 56 [19:04: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 0A FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B0 01 00 00 5E 04 04 00 B0 01 00 00 57 04 04 00 B1 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:04:14]wFMCommunicate OK [19:04:14]SAM_PROTO_GetFieldsCounters done [19:04:14]requested_item shift.num is exist - process it [19:04:14]requested_item shift.opened is exist - process it [19:04:14]req_shift_opened [19:04:14]FM_GetShiftState [19:04:14]SAM_PROTO_GetShiftState [19:04:14]wFMCommunicate request_size=4 [19:04:14]MH_SAM_APDU [19:04:14]CAPDU: 80 13 01 00 [19:04:14]Write to MH i2c: E2 08 00 26 B9 80 13 01 00 00 00 00 00 5C [19:04:14]Write i2c OK [19:04:14]MH_I2C_Read... [19:04:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:14]Read from MH i2c: E2 [19:04:14]MH_I2C_Read... [19:04:14]Read from MH i2c: E2 0E 00 [19:04:14]MH_I2C_Read... [19:04:14]Read from MH i2c: E2 0E 00 26 B9 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 99 [19:04:14]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:04:14]wFMCommunicate OK [19:04:14]SAM_PROTO_GetShiftState done [19:04:14]FM_GetShiftState done [19:04:14]req_shift_opened done [19:04:14]requested_item shift.open_date is exist - process it [19:04:14]req_shift_open_date [19:04:14]req_shift_open_date done [19:04:14]produce_requested_data done [19:04:14]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260874,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [19:04:14]process_action_free close_receipt [19:04:14]json_value_free [19:04:14]json_value_free done [19:04:14]process_json_proto returns [19:04:14]Send response to host [19:04:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260874,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [19:04:14]free response buf [19:04:14]execute_script done [19:04:14]execute_script returns [19:04:14]free content buf [19:04:14]Sock 7.Close socket [19:04:14]Sock 7.Thread stoped [19:04:16]OFD Sender: No OFD packet to send [19:04:21]OFD Sender: No OFD packet to send [19:04:26]OFD Sender: No OFD packet to send [19:04:31]OFD Sender: No OFD packet to send [19:04:36]OFD Sender: No OFD packet to send [19:04:41]OFD Sender: No OFD packet to send [19:04:46]OFD Sender: No OFD packet to send [19:04:51]OFD Sender: No OFD packet to send [19:04:56]OFD Sender: No OFD packet to send [19:05:01]OFD Sender: No OFD packet to send [19:05:06]OFD Sender: No OFD packet to send [19:05:11]OFD Sender: No OFD packet to send [19:05:16]OFD Sender: No OFD packet to send [19:05:21]OFD Sender: No OFD packet to send [19:05:26]OFD Sender: No OFD packet to send [19:05:31]OFD Sender: No OFD packet to send [19:05:36]OFD Sender: No OFD packet to send [19:05:41]OFD Sender: No OFD packet to send [19:05:46]OFD Sender: No OFD packet to send [19:05:51]OFD Sender: No OFD packet to send [19:05:56]OFD Sender: No OFD packet to send [19:06:01]OFD Sender: No OFD packet to send [19:06:06]OFD Sender: No OFD packet to send [19:06:11]OFD Sender: No OFD packet to send [19:06:16]OFD Sender: No OFD packet to send [19:06:21]OFD Sender: No OFD packet to send [19:06:26]OFD Sender: No OFD packet to send [19:06:31]OFD Sender: No OFD packet to send [19:06:36]OFD Sender: No OFD packet to send [19:06:41]OFD Sender: No OFD packet to send [19:06:46]OFD Sender: No OFD packet to send [19:06:51]OFD Sender: No OFD packet to send [19:06:56]OFD Sender: No OFD packet to send [19:07:01]OFD Sender: No OFD packet to send [19:07:06]OFD Sender: No OFD packet to send [19:07:11]OFD Sender: No OFD packet to send [19:07:16]OFD Sender: No OFD packet to send [19:07:21]OFD Sender: No OFD packet to send [19:07:26]OFD Sender: No OFD packet to send [19:07:31]OFD Sender: No OFD packet to send [19:07:36]OFD Sender: No OFD packet to send [19:07:41]OFD Sender: No OFD packet to send [19:07:46]OFD Sender: No OFD packet to send [19:07:51]OFD Sender: No OFD packet to send [19:07:56]OFD Sender: No OFD packet to send [19:08:01]OFD Sender: No OFD packet to send [19:08:06]OFD Sender: No OFD packet to send [19:08:11]OFD Sender: No OFD packet to send [19:08:16]OFD Sender: No OFD packet to send [19:08:21]OFD Sender: No OFD packet to send [19:08:24]accept exits with 9 [19:08:24]New connection [19:08:24]New thread 3066617188 created [19:08:24]Thread 3066473828 joined [19:08:24]Waiting for new connection... [19:08:24] Sock 9.Parse request [19:08:24]Sock 9.Check first char [19:08:24]Sock 9.First char is OK [19:08:24]request: POST /json_proto HTTP/1.0 [19:08:24]Method: POST [19:08:24]URL: /json_proto [19:08:24]Method is POST - this is cgi request [19:08:24]url: /json_proto [19:08:24]query_string will be loaded in cgi processing [19:08:24]execute_cgi json_proto POST (null) [19:08:24]execute_cgi path=json_proto method=POST [19:08:24]POST find Content-Length [19:08:24]Host: 172.17.55.133:8080 [19:08:24]Content-Length: 683 [19:08:24]Content-Type: application/json [19:08:24] [19:08:24]POST finish read [19:08:24]Found Content-Length = 683 [19:08:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036427", "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" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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:08:24]execute_script... [19:08: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)1036427", "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" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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:08:24]POST & json_proto [19:08:24]process_json_proto [19:08:24]json parsed OK: [19:08:24]protocol is kg_v1.0 [19:08:24]action value=close_receipt [19:08:24]process_action close_receipt [19:08:24]cmd_close_receipt [19:08:24]MH_GetDate [19:08:24]Write to MH i2c: F0 00 00 27 B9 CF [19:08:24]Write i2c OK [19:08:24]MH_I2C_Read... [19:08:24]Read from MH i2c: F0 [19:08:24]MH_I2C_Read... [19:08:24]Read from MH i2c: F0 09 00 [19:08:24]MH_I2C_Read... [19:08:24]Read from MH i2c: F0 09 00 27 B9 00 AF 46 C2 66 34 48 D8 65 AE [19:08:24]GetLastDocTimeStamp 1724007855 [19:08:24]current date 1724008111 [19:08:24]FM_GetShiftState [19:08:24]SAM_PROTO_GetShiftState [19:08:24]wFMCommunicate request_size=4 [19:08:24]MH_SAM_APDU [19:08:24]CAPDU: 80 13 01 00 [19:08:24]Write to MH i2c: E2 08 00 28 B9 80 13 01 00 00 00 00 00 5E [19:08:24]Write i2c OK [19:08:24]MH_I2C_Read... [19:08:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:24]Read from MH i2c: E2 [19:08:24]MH_I2C_Read... [19:08:24]Read from MH i2c: E2 0E 00 [19:08:24]MH_I2C_Read... [19:08:24]Read from MH i2c: E2 0E 00 28 B9 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 9B [19:08:24]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:08:24]wFMCommunicate OK [19:08:24]SAM_PROTO_GetShiftState done [19:08:24]FM_GetShiftState done [19:08:24]opened in 1723940556 [19:08:24]opened+sec_in_day 1724026956 [19:08:24]quantity*price = 150032 [19:08:24]sum+1 = 150033 [19:08:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 433 18.08.2024 19:08 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260875 ФПД: 75314187678760 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T190831&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260875&fm=75314187678760&tin=02508201610067®Number=0000000000091865&sum=150000 [19:08:25]StoreToDocumentArchive [19:08:25]shift 449 fd 260875 [19:08:25]save to /storage/0449/doc_00260875 [19:08:25]save last doc name /storage/0449/doc_00260875 to /storage/kkm_last_doc_name [19:08:25]save OK [19:08:25]Clear old archive folders... [19:08:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:08:25]tlvbuf is 005C1590 [19:08:25]SAM_PROTO_ClearQueue [19:08:25]wFMCommunicate request_size=4 [19:08:25]MH_SAM_APDU [19:08:25]CAPDU: 80 09 00 00 [19:08:25]Write to MH i2c: E2 08 00 35 B9 80 09 00 00 00 00 00 00 60 [19:08:25]Write i2c OK [19:08:25]MH_I2C_Read... [19:08:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:08:25]Read from MH i2c: E2 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 03 00 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 03 00 35 B9 00 90 00 62 [19:08:25]RAPDU: 90 00 [19:08:25]wFMCommunicate OK [19:08:25]SAM_PROTO_ClearQueue done [19:08:25]KKMCreateOFDPacket [19:08:25]OFDProtocolAddRootSTLVToBuf [19:08:25]FM_MakeSignedData [19:08:25]FM_MakeSignedData [19:08:25]SAM_PROTO_SignData [19:08:25]wFMCommunicate request_size=4 [19:08:25]MH_SAM_APDU [19:08:25]CAPDU: 80 0D 01 02 [19:08:25]Write to MH i2c: E2 08 00 36 B9 80 0D 01 02 00 00 00 00 68 [19:08:25]Write i2c OK [19:08:25]MH_I2C_Read... [19:08:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:08:26]Read from MH i2c: E2 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: E2 03 00 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: E2 03 00 36 B9 00 90 00 63 [19:08:26]RAPDU: 90 00 [19:08:26]wFMCommunicate OK [19:08:26]wFMCommunicate request_size=255 [19:08:26]MH_SAM_APDU [19:08:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 B1 01 00 00 F4 03 04 00 AF 46 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0B FB 03 00 35 04 06 00 44 [19:08:26]Write to MH i2c: E2 02 01 37 B9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 B1 01 00 00 F4 03 04 00 AF 46 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0B FB 03 00 35 04 06 00 44 00 00 36 [19:08:26]Write i2c OK [19:08:26]MH_I2C_Read... [19:08:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:26]Read from MH i2c: E2 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: E2 03 00 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: E2 03 00 37 B9 00 90 00 64 [19:08:26]RAPDU: 90 00 [19:08:26]wFMCommunicate OK [19:08:26]wFMCommunicate request_size=10 [19:08:26]MH_SAM_APDU [19:08:26]CAPDU: 80 0D 02 02 05 7F 73 67 34 28 [19:08:26]Write to MH i2c: E2 0D 00 38 B9 80 0D 02 02 05 00 7F 73 67 34 28 00 00 2A [19:08:26]Write i2c OK [19:08:26]MH_I2C_Read... [19:08:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:26]Read from MH i2c: E2 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: E2 03 00 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: E2 03 00 38 B9 00 90 00 65 [19:08:26]RAPDU: 90 00 [19:08:26]wFMCommunicate OK [19:08:26]wFMCommunicate request_size=4 [19:08:26]MH_SAM_APDU [19:08:26]CAPDU: 80 0D 03 02 [19:08:26]Write to MH i2c: E2 08 00 39 B9 80 0D 03 02 00 00 00 00 6D [19:08:26]Write i2c OK [19:08:26]MH_I2C_Read... [19:08:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:08:26]Read from MH i2c: E2 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: E2 0B 00 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: E2 0B 00 39 B9 00 99 65 74 8C 7F DA 3E 1B 90 00 1E [19:08:26]RAPDU: 99 65 74 8C 7F DA 3E 1B 90 00 [19:08:26]wFMCommunicate OK [19:08:26]SAM_PROTO_SignData done [19:08:26]FM_MakeSignedData done [19:08:26]CreateOFDProtocolMessage [19:08:26]wFMCommunicate request_size=4 [19:08:26]MH_SAM_APDU [19:08:26]CAPDU: 80 11 00 00 [19:08:26]Write to MH i2c: E2 08 00 3A B9 80 11 00 00 00 00 00 00 6D [19:08:26]Write i2c OK [19:08:26]MH_I2C_Read... [19:08:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:26]Read from MH i2c: E2 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: E2 17 00 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: E2 17 00 3A B9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 BA [19:08:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:08:26]wFMCommunicate OK [19:08:26]CreateOFDProtocolMessage done [19:08:26]OFDSenderStorePacket 260875 [19:08:26]StoreOFDPacket docnum=260875 [19:08:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 F4 D2 07 01 C0 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 B1 01 00 00 F4 03 04 00 AF 46 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0B FB 03 00 35 04 06 00 44 7F 73 67 34 28 99 65 74 8C 7F DA 3E 1B [19:08:26]CheckFolder [19:08:26]dirname=/storage/ofd_packets [19:08:26]CheckFolder done [19:08:26]ProducePacketName [19:08:26]name=ofd_packets/00260875 [19:08:26]NVStorageSaveData ofd_packets/00260875 [19:08:26]File name is /storage/ofd_packets/00260875 [19:08:26]Write 301 bytes [19:08:26]NVStorageSaveData done [19:08:26]OFDSenderStorePacket done [19:08:26]KKMCreateOFDPacket done [19:08:26]NVStorageSaveData kkm_last_timestamp [19:08:26]File name is /storage/kkm_last_timestamp [19:08:26]Write 4 bytes [19:08:26]NVStorageSaveData done [19:08:26]ExternCall_PrintAddStr [19:08:26]wPrintStart [19:08:26]Write to MH i2c: 01 00 00 3B B9 F4 [19:08:26]Write i2c OK [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: 01 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: 01 07 00 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: 01 07 00 3B B9 00 00 00 00 00 FF 0F 09 [19:08:26]RasterBufferAndPrint [19:08:26]line Счет N : (1)1036427 [19:08:26]line ИНН: 02508201610067 [19:08:26]line Контрольно-Кассовый Чек [19:08:26]line ПРОДАЖА [19:08:26]line ТРК (МРК, ГНК) : 23 [19:08:26]line Товар: 2710124500 [19:08:26]line Аи-95-К-5 [19:08:26]line 20.220 * 74.20 [19:08:26]line = 1500.32 [19:08:26]line НДС 12% НСП 1% [19:08:26]line > о реализуемом товаре [19:08:26]line ОКРУГЛЕНИЕ: -0.32 [19:08:26]line ИТОГО: 1500.00 [19:08:26]line Внесено: 1500.00 [19:08:26]line СДАЧА: 0.00 [19:08:26]line НСП 1% : 13.28 [19:08:26]line НДС 12% : 159.33 [19:08:26]line Наличными: 1500.00 [19:08:26]line Безнал.: 0.00 [19:08:26]line Место: АЗС № 94 "Партнер Нефть" [19:08:26]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [19:08:26]line СНО: Общий режим [19:08:26]line Чек 433 18.08.2024 19:08 [19:08:26]line Смена: 449 ФФД: 1.0 [19:08:26]line ЗНМ: 0300000099 [19:08:26]line РНМ: 0000000000091865 [19:08:26]line Версия ККМ: 001 [19:08:26]line ФМ: 0000000000871820 [19:08:26]line ФД: 260875 [19:08:26]line ФПД: 75314187678760 [19:08:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T190831&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260875&fm=75314187678760&tin=02508201610067®Number=0000000000091865&sum=150000 [19:08:26]written 0, free lines is 4095 [19:08:26]OFD Sender: Processing packet 260875 [packets to send 192, broken 191] [19:08:26]ProducePacketName [19:08:26]name=ofd_packets/00260875 [19:08:26]OFD Sender: To server: pG, [19:08:26]CommunicateWithHost lk.salyk.kg:30040 [19:08:26]ConnectInit lk.salyk.kg [19:08:26]Connected sock=10 [19:08: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 30 0F 01 00 00 F4 D2 07 01 C0 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 B1 01 00 00 F4 03 04 00 AF 46 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0B FB 03 00 35 04 06 00 44 7F 73 67 34 28 99 65 74 8C 7F DA 3E 1B [19:08: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 30 4F 00 00 00 42 CD 47 00 ED 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 30 10 04 04 00 0B FB 03 00 F4 03 04 00 03 F0 C1 66 B6 04 01 00 00 21 29 85 7C 2F AD 42 12 [19:08:27]CommunicateWithHost err = 0 [19:08:27]CheckOFDResponse [19:08:27]1017 (14) - 77093643461234 [19:08:27]1041 (16) - 0000000000871820 [19:08:27]1040 (4) - 260875 [19:08:27]1012 (4) - 18.08.2024 12:58 [19:08:27]1206 (1) - 0 [19:08:27]OFD Sender: Remove packet 260875 [19:08:27]ProducePacketName [19:08:27]name=ofd_packets/00260875 [19:08:27]NVStorageDeleteData [19:08:27]Write to MH i2c: 01 00 00 66 B9 1F [19:08:27]Write i2c OK [19:08:27]MH_I2C_Read... [19:08:27]Read from MH i2c: 01 [19:08:27]MH_I2C_Read... [19:08:27]Read from MH i2c: 01 07 00 [19:08:27]MH_I2C_Read... [19:08:27]Read from MH i2c: 01 07 00 66 B9 00 00 00 00 00 71 0C A3 [19:08:27]RasterBufferAndPrint [19:08:27]line [19:08:27]line [19:08:27]line [19:08:27]line [19:08:27]line [19:08:27]written 0, free lines is 3188 [19:08:27]MH_Cut [19:08:27]Write to MH i2c: D1 01 00 6D B9 01 F8 [19:08:27]Write i2c OK [19:08:27]MH_I2C_Read... [19:08:27]Read from MH i2c: D1 [19:08:27]MH_I2C_Read... [19:08:27]Read from MH i2c: D1 01 00 [19:08:27]MH_I2C_Read... [19:08:27]Read from MH i2c: D1 01 00 6D B9 00 F7 [19:08:27]Write to MH i2c: 01 00 00 6E B9 27 [19:08:27]Write i2c OK [19:08:27]MH_I2C_Read... [19:08:27]OFD Sender: No OFD packet to send [19:08:28]*** Cut start [19:08:28]*** Purtial cut [19:08:28]*** Stage 1: CUTSNS_PIN = 1 [19:08:30]Read from MH i2c: 01 [19:08:30]MH_I2C_Read... [19:08:30]*** Stop cut motor [19:08:30]*** Cut end [19:08:30]Read from MH i2c: 01 07 00 [19:08:30]MH_I2C_Read... [19:08:30]Read from MH i2c: 01 07 00 6E B9 00 00 00 00 00 FF 0F 3C [19:08:30]process_action close_receipt done [19:08:30]requested_data is exist [19:08:30]produce_requested_data [19:08:30]requested_item fm.sn is exist - process it [19:08:30]wFMCommunicate request_size=4 [19:08:30]MH_SAM_APDU [19:08:30]CAPDU: 80 11 00 00 [19:08:30]Write to MH i2c: E2 08 00 6F B9 80 11 00 00 00 00 00 00 A2 [19:08:30]Write i2c OK [19:08:30]MH_I2C_Read... [19:08:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:30]Read from MH i2c: E2 [19:08:30]MH_I2C_Read... [19:08:30]Read from MH i2c: E2 17 00 [19:08:30]MH_I2C_Read... [19:08:30]Read from MH i2c: E2 17 00 6F B9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 EF [19:08:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:08:30]wFMCommunicate OK [19:08:30]requested_item fd.num is exist - process it [19:08:30]SAM_PROTO_GetFieldsCounters [19:08:30]wFMCommunicate request_size=4 [19:08:30]MH_SAM_APDU [19:08:30]CAPDU: 80 13 00 00 [19:08:30]Write to MH i2c: E2 08 00 70 B9 80 13 00 00 00 00 00 00 A5 [19:08:30]Write i2c OK [19:08:30]MH_I2C_Read... [19:08:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:30]Read from MH i2c: E2 [19:08:30]MH_I2C_Read... [19:08:30]Read from MH i2c: E2 62 00 [19:08:30]MH_I2C_Read... [19:08:30]Read from MH i2c: E2 62 00 70 B9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 0B FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B1 01 00 00 5E 04 04 00 B1 01 00 00 57 04 04 00 B2 01 00 00 19 04 04 00 00 00 00 00 90 00 A5 [19:08: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 0B FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B1 01 00 00 5E 04 04 00 B1 01 00 00 57 04 04 00 B2 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:08:30]wFMCommunicate OK [19:08:30]SAM_PROTO_GetFieldsCounters done [19:08:30]requested_item shift.num is exist - process it [19:08:30]requested_item shift.opened is exist - process it [19:08:30]req_shift_opened [19:08:30]FM_GetShiftState [19:08:30]SAM_PROTO_GetShiftState [19:08:30]wFMCommunicate request_size=4 [19:08:30]MH_SAM_APDU [19:08:30]CAPDU: 80 13 01 00 [19:08:30]Write to MH i2c: E2 08 00 71 B9 80 13 01 00 00 00 00 00 A7 [19:08:30]Write i2c OK [19:08:30]MH_I2C_Read... [19:08:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:30]Read from MH i2c: E2 [19:08:30]MH_I2C_Read... [19:08:30]Read from MH i2c: E2 0E 00 [19:08:30]MH_I2C_Read... [19:08:30]Read from MH i2c: E2 0E 00 71 B9 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E4 [19:08:30]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:08:30]wFMCommunicate OK [19:08:30]SAM_PROTO_GetShiftState done [19:08:30]FM_GetShiftState done [19:08:30]req_shift_opened done [19:08:30]requested_item shift.open_date is exist - process it [19:08:30]req_shift_open_date [19:08:30]req_shift_open_date done [19:08:30]produce_requested_data done [19:08:30]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260875,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [19:08:30]process_action_free close_receipt [19:08:30]json_value_free [19:08:30]json_value_free done [19:08:30]process_json_proto returns [19:08:30]Send response to host [19:08:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260875,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [19:08:30]free response buf [19:08:30]execute_script done [19:08:30]execute_script returns [19:08:30]free content buf [19:08:30]Sock 9.Close socket [19:08:30]Sock 9.Thread stoped [19:08:32]OFD Sender: No OFD packet to send [19:08:37]OFD Sender: No OFD packet to send [19:08:42]OFD Sender: No OFD packet to send [19:08:47]OFD Sender: No OFD packet to send [19:08:52]OFD Sender: No OFD packet to send [19:08:57]OFD Sender: No OFD packet to send [19:09:02]OFD Sender: No OFD packet to send [19:09:07]OFD Sender: No OFD packet to send [19:09:12]OFD Sender: No OFD packet to send [19:09:17]OFD Sender: No OFD packet to send [19:09:22]OFD Sender: No OFD packet to send [19:09:27]OFD Sender: No OFD packet to send [19:09:32]OFD Sender: No OFD packet to send [19:09:37]OFD Sender: No OFD packet to send [19:09:42]OFD Sender: No OFD packet to send [19:09:47]OFD Sender: No OFD packet to send [19:09:52]OFD Sender: No OFD packet to send [19:09:57]OFD Sender: No OFD packet to send [19:10:02]OFD Sender: No OFD packet to send [19:10:07]OFD Sender: No OFD packet to send [19:10:12]OFD Sender: No OFD packet to send [19:10:17]OFD Sender: No OFD packet to send [19:10:22]OFD Sender: No OFD packet to send [19:10:27]OFD Sender: No OFD packet to send [19:10:32]OFD Sender: No OFD packet to send [19:10:37]OFD Sender: No OFD packet to send [19:10:42]OFD Sender: No OFD packet to send [19:10:47]OFD Sender: No OFD packet to send [19:10:52]OFD Sender: No OFD packet to send [19:10:57]OFD Sender: No OFD packet to send [19:11:02]OFD Sender: No OFD packet to send [19:11:05]accept exits with 7 [19:11:05]New connection [19:11:05]New thread 3066473828 created [19:11:05]Thread 3066617188 joined [19:11:05]Waiting for new connection... [19:11:05] Sock 7.Parse request [19:11:05]Sock 7.Check first char [19:11:05]Sock 7.First char is OK [19:11:05]request: POST /json_proto HTTP/1.0 [19:11:05]Method: POST [19:11:05]URL: /json_proto [19:11:05]Method is POST - this is cgi request [19:11:05]url: /json_proto [19:11:05]query_string will be loaded in cgi processing [19:11:05]execute_cgi json_proto POST (null) [19:11:05]execute_cgi path=json_proto method=POST [19:11:05]POST find Content-Length [19:11:05]Host: 172.17.55.133:8080 [19:11:05]Content-Length: 678 [19:11:05]Content-Type: application/json [19:11:05] [19:11:05]POST finish read [19:11:05]Found Content-Length = 678 [19:11:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:11:05]execute_script... [19: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)1036428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:11:05]POST & json_proto [19:11:05]process_json_proto [19:11:05]json parsed OK: [19:11:05]protocol is kg_v1.0 [19:11:05]action value=close_receipt [19:11:05]process_action close_receipt [19:11:05]cmd_close_receipt [19:11:05]MH_GetDate [19:11:05]Write to MH i2c: F0 00 00 72 B9 1A [19:11:05]Write i2c OK [19:11:05]MH_I2C_Read... [19:11:05]Read from MH i2c: F0 [19:11:05]MH_I2C_Read... [19:11:05]Read from MH i2c: F0 09 00 [19:11:05]MH_I2C_Read... [19:11:05]Read from MH i2c: F0 09 00 72 B9 00 4F 47 C2 66 34 48 D8 65 9A [19:11:05]GetLastDocTimeStamp 1724008111 [19:11:05]current date 1724008271 [19:11:05]FM_GetShiftState [19:11:05]SAM_PROTO_GetShiftState [19:11:05]wFMCommunicate request_size=4 [19:11:05]MH_SAM_APDU [19:11:05]CAPDU: 80 13 01 00 [19:11:05]Write to MH i2c: E2 08 00 73 B9 80 13 01 00 00 00 00 00 A9 [19:11:05]Write i2c OK [19:11:05]MH_I2C_Read... [19:11:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:05]Read from MH i2c: E2 [19:11:05]MH_I2C_Read... [19:11:05]Read from MH i2c: E2 0E 00 [19:11:05]MH_I2C_Read... [19:11:05]Read from MH i2c: E2 0E 00 73 B9 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E6 [19:11:05]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:11:05]wFMCommunicate OK [19:11:05]SAM_PROTO_GetShiftState done [19:11:05]FM_GetShiftState done [19:11:05]opened in 1723940556 [19:11:05]opened+sec_in_day 1724026956 [19:11:05]quantity*price = 50036 [19:11:05]sum+1 = 50037 [19:11:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 434 18.08.2024 19:11 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260876 ФПД: 216088048273894 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T191112&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260876&fm=216088048273894&tin=02508201610067®Number=0000000000091865&sum=50000 [19:11:06]StoreToDocumentArchive [19:11:06]shift 449 fd 260876 [19:11:06]save to /storage/0449/doc_00260876 [19:11:06]save last doc name /storage/0449/doc_00260876 to /storage/kkm_last_doc_name [19:11:06]save OK [19:11:06]Clear old archive folders... [19:11:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:11:06]tlvbuf is 003E26D0 [19:11:06]SAM_PROTO_ClearQueue [19:11:06]wFMCommunicate request_size=4 [19:11:06]MH_SAM_APDU [19:11:06]CAPDU: 80 09 00 00 [19:11:06]Write to MH i2c: E2 08 00 80 B9 80 09 00 00 00 00 00 00 AB [19:11:06]Write i2c OK [19:11:06]MH_I2C_Read... [19:11:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:11:06]Read from MH i2c: E2 [19:11:06]MH_I2C_Read... [19:11:06]Read from MH i2c: E2 03 00 [19:11:06]MH_I2C_Read... [19:11:06]Read from MH i2c: E2 03 00 80 B9 00 90 00 AD [19:11:06]RAPDU: 90 00 [19:11:06]wFMCommunicate OK [19:11:06]SAM_PROTO_ClearQueue done [19:11:06]KKMCreateOFDPacket [19:11:06]OFDProtocolAddRootSTLVToBuf [19:11:06]FM_MakeSignedData [19:11:06]FM_MakeSignedData [19:11:06]SAM_PROTO_SignData [19:11:06]wFMCommunicate request_size=4 [19:11:06]MH_SAM_APDU [19:11:06]CAPDU: 80 0D 01 02 [19:11:06]Write to MH i2c: E2 08 00 81 B9 80 0D 01 02 00 00 00 00 B3 [19:11:06]Write i2c OK [19:11:06]MH_I2C_Read... [19:11:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:11:06]Read from MH i2c: E2 [19:11:06]MH_I2C_Read... [19:11:06]Read from MH i2c: E2 03 00 [19:11:06]MH_I2C_Read... [19:11:06]Read from MH i2c: E2 03 00 81 B9 00 90 00 AE [19:11:06]RAPDU: 90 00 [19:11:06]wFMCommunicate OK [19:11:06]wFMCommunicate request_size=255 [19:11:06]MH_SAM_APDU [19: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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B2 01 00 00 F4 03 04 00 50 47 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0C FB 03 00 35 04 06 00 C4 [19:11:06]Write to MH i2c: E2 02 01 82 B9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B2 01 00 00 F4 03 04 00 50 47 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0C FB 03 00 35 04 06 00 C4 00 00 32 [19:11:06]Write i2c OK [19:11:06]MH_I2C_Read... [19:11:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:07]Read from MH i2c: E2 [19:11:07]MH_I2C_Read... [19:11:07]Read from MH i2c: E2 03 00 [19:11:07]MH_I2C_Read... [19:11:07]Read from MH i2c: E2 03 00 82 B9 00 90 00 AF [19:11:07]RAPDU: 90 00 [19:11:07]wFMCommunicate OK [19:11:07]wFMCommunicate request_size=10 [19:11:07]MH_SAM_APDU [19:11:07]CAPDU: 80 0D 02 02 05 87 EB 5B 89 E6 [19:11:07]Write to MH i2c: E2 0D 00 83 B9 80 0D 02 02 05 00 87 EB 5B 89 E6 00 00 FC [19:11:07]Write i2c OK [19:11:07]MH_I2C_Read... [19:11:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:07]Read from MH i2c: E2 [19:11:07]MH_I2C_Read... [19:11:07]Read from MH i2c: E2 03 00 [19:11:07]MH_I2C_Read... [19:11:07]Read from MH i2c: E2 03 00 83 B9 00 90 00 B0 [19:11:07]RAPDU: 90 00 [19:11:07]wFMCommunicate OK [19:11:07]wFMCommunicate request_size=4 [19:11:07]MH_SAM_APDU [19:11:07]CAPDU: 80 0D 03 02 [19:11:07]Write to MH i2c: E2 08 00 84 B9 80 0D 03 02 00 00 00 00 B8 [19:11:07]Write i2c OK [19:11:07]MH_I2C_Read... [19:11:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:11:07]Read from MH i2c: E2 [19:11:07]MH_I2C_Read... [19:11:07]Read from MH i2c: E2 0B 00 [19:11:07]MH_I2C_Read... [19:11:07]Read from MH i2c: E2 0B 00 84 B9 00 3B 05 94 E0 61 04 99 54 90 00 BF [19:11:07]RAPDU: 3B 05 94 E0 61 04 99 54 90 00 [19:11:07]wFMCommunicate OK [19:11:07]SAM_PROTO_SignData done [19:11:07]FM_MakeSignedData done [19:11:07]CreateOFDProtocolMessage [19:11:07]wFMCommunicate request_size=4 [19:11:07]MH_SAM_APDU [19:11:07]CAPDU: 80 11 00 00 [19:11:07]Write to MH i2c: E2 08 00 85 B9 80 11 00 00 00 00 00 00 B8 [19:11:07]Write i2c OK [19:11:07]MH_I2C_Read... [19:11:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:07]Read from MH i2c: E2 [19:11:07]MH_I2C_Read... [19:11:07]Read from MH i2c: E2 17 00 [19:11:07]MH_I2C_Read... [19:11:07]Read from MH i2c: E2 17 00 85 B9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 05 [19:11:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:11:07]wFMCommunicate OK [19:11:07]CreateOFDProtocolMessage done [19:11:07]OFDSenderStorePacket 260876 [19:11:07]StoreOFDPacket docnum=260876 [19:11:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 BB 15 07 01 16 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B2 01 00 00 F4 03 04 00 50 47 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0C FB 03 00 35 04 06 00 C4 87 EB 5B 89 E6 3B 05 94 E0 61 04 99 54 [19:11:07]CheckFolder [19:11:07]dirname=/storage/ofd_packets [19:11:07]CheckFolder done [19:11:07]ProducePacketName [19:11:07]name=ofd_packets/00260876 [19:11:07]NVStorageSaveData ofd_packets/00260876 [19:11:07]File name is /storage/ofd_packets/00260876 [19:11:07]Write 301 bytes [19:11:07]NVStorageSaveData done [19:11:07]OFDSenderStorePacket done [19:11:07]KKMCreateOFDPacket done [19:11:07]NVStorageSaveData kkm_last_timestamp [19:11:07]File name is /storage/kkm_last_timestamp [19:11:07]Write 4 bytes [19:11:07]NVStorageSaveData done [19:11:07]ExternCall_PrintAddStr [19:11:07]wPrintStart [19:11:07]Write to MH i2c: 01 00 00 86 B9 3F [19:11:07]Write i2c OK [19:11:07]MH_I2C_Read... [19:11:07]Read from MH i2c: 01 [19:11:07]MH_I2C_Read... [19:11:07]Read from MH i2c: 01 07 00 [19:11:07]MH_I2C_Read... [19:11:07]Read from MH i2c: 01 07 00 86 B9 00 00 00 00 00 FF 0F 54 [19:11:07]RasterBufferAndPrint [19:11:07]line Счет N : (1)1036428 [19:11:07]line ИНН: 02508201610067 [19:11:07]line Контрольно-Кассовый Чек [19:11:07]line ПРОДАЖА [19:11:07]line ТРК (МРК, ГНК) : 22 [19:11:07]line Товар: 2710124130 [19:11:07]line Аи-92-К-5 [19:11:07]line 7.380 * 67.80 [19:11:07]line = 500.36 [19:11:07]line НДС 12% НСП 1% [19:11:07]line > о реализуемом товаре [19:11:07]line ОКРУГЛЕНИЕ: -0.36 [19:11:07]line ИТОГО: 500.00 [19:11:07]line Внесено: 500.00 [19:11:07]line СДАЧА: 0.00 [19:11:07]line НСП 1% : 4.43 [19:11:07]line НДС 12% : 53.14 [19:11:07]line Наличными: 500.00 [19:11:07]line Безнал.: 0.00 [19:11:07]line Место: АЗС № 94 "Партнер Нефть" [19:11:07]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [19:11:07]line СНО: Общий режим [19:11:07]line Чек 434 18.08.2024 19:11 [19:11:07]line Смена: 449 ФФД: 1.0 [19:11:07]line ЗНМ: 0300000099 [19:11:07]line РНМ: 0000000000091865 [19:11:07]line Версия ККМ: 001 [19:11:07]line ФМ: 0000000000871820 [19:11:07]line ФД: 260876 [19:11:07]line ФПД: 216088048273894 [19:11:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T191112&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260876&fm=216088048273894&tin=02508201610067®Number=0000000000091865&sum=50000 [19:11:07]written 0, free lines is 4095 [19:11:07]OFD Sender: Processing packet 260876 [packets to send 192, broken 191] [19:11:07]ProducePacketName [19:11:07]name=ofd_packets/00260876 [19:11:07]OFD Sender: To server: pG, [19:11:07]CommunicateWithHost lk.salyk.kg:30040 [19:11:07]ConnectInit lk.salyk.kg [19:11:07]Connected sock=10 [19: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 30 0F 01 00 00 BB 15 07 01 16 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B2 01 00 00 F4 03 04 00 50 47 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0C FB 03 00 35 04 06 00 C4 87 EB 5B 89 E6 3B 05 94 E0 61 04 99 54 [19: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 30 4F 00 00 00 B3 47 47 00 5B 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 30 10 04 04 00 0C FB 03 00 F4 03 04 00 A3 F0 C1 66 B6 04 01 00 00 B3 7E 74 C0 07 F9 C4 DB [19:11:07]CommunicateWithHost err = 0 [19:11:07]CheckOFDResponse [19:11:07]1017 (14) - 77093643461234 [19:11:07]1041 (16) - 0000000000871820 [19:11:07]1040 (4) - 260876 [19:11:07]1012 (4) - 18.08.2024 13:01 [19:11:07]1206 (1) - 0 [19:11:07]OFD Sender: Remove packet 260876 [19:11:07]ProducePacketName [19:11:07]name=ofd_packets/00260876 [19:11:07]NVStorageDeleteData [19:11:07]Write to MH i2c: 01 00 00 B1 B9 6A [19:11:07]Write i2c OK [19:11:07]MH_I2C_Read... [19:11:07]Read from MH i2c: 01 [19:11:07]MH_I2C_Read... [19:11:07]Read from MH i2c: 01 07 00 [19:11:07]MH_I2C_Read... [19:11:07]Read from MH i2c: 01 07 00 B1 B9 00 00 00 00 00 75 0C F2 [19:11:07]RasterBufferAndPrint [19:11:07]line [19:11:07]line [19:11:07]line [19:11:07]line [19:11:07]line [19:11:07]written 0, free lines is 3192 [19:11:07]MH_Cut [19:11:07]Write to MH i2c: D1 01 00 B8 B9 01 43 [19:11:07]Write i2c OK [19:11:07]MH_I2C_Read... [19:11:07]Read from MH i2c: D1 [19:11:07]MH_I2C_Read... [19:11:07]Read from MH i2c: D1 01 00 [19:11:07]MH_I2C_Read... [19:11:07]Read from MH i2c: D1 01 00 B8 B9 00 42 [19:11:07]Write to MH i2c: 01 00 00 B9 B9 72 [19:11:07]Write i2c OK [19:11:07]MH_I2C_Read... [19:11:08]OFD Sender: No OFD packet to send [19:11:08]*** Cut start [19:11:08]*** Purtial cut [19:11:08]*** Stage 1: CUTSNS_PIN = 1 [19:11:10]Read from MH i2c: 01 [19:11:10]MH_I2C_Read... [19:11:10]*** Stop cut motor [19:11:10]*** Cut end [19:11:10]Read from MH i2c: 01 07 00 [19:11:10]MH_I2C_Read... [19:11:10]Read from MH i2c: 01 07 00 B9 B9 00 00 00 00 00 FF 0F 87 [19:11:10]process_action close_receipt done [19:11:10]requested_data is exist [19:11:10]produce_requested_data [19:11:10]requested_item fm.sn is exist - process it [19:11:10]wFMCommunicate request_size=4 [19:11:10]MH_SAM_APDU [19:11:10]CAPDU: 80 11 00 00 [19:11:10]Write to MH i2c: E2 08 00 BA B9 80 11 00 00 00 00 00 00 ED [19:11:10]Write i2c OK [19:11:10]MH_I2C_Read... [19:11:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:10]Read from MH i2c: E2 [19:11:10]MH_I2C_Read... [19:11:10]Read from MH i2c: E2 17 00 [19:11:10]MH_I2C_Read... [19:11:10]Read from MH i2c: E2 17 00 BA B9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 3A [19:11:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:11:10]wFMCommunicate OK [19:11:10]requested_item fd.num is exist - process it [19:11:10]SAM_PROTO_GetFieldsCounters [19:11:10]wFMCommunicate request_size=4 [19:11:10]MH_SAM_APDU [19:11:10]CAPDU: 80 13 00 00 [19:11:10]Write to MH i2c: E2 08 00 BB B9 80 13 00 00 00 00 00 00 F0 [19:11:10]Write i2c OK [19:11:10]MH_I2C_Read... [19:11:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:11:11]Read from MH i2c: E2 [19:11:11]MH_I2C_Read... [19:11:11]Read from MH i2c: E2 62 00 [19:11:11]MH_I2C_Read... [19:11:11]Read from MH i2c: E2 62 00 BB B9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 0C FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B2 01 00 00 5E 04 04 00 B2 01 00 00 57 04 04 00 B3 01 00 00 19 04 04 00 00 00 00 00 90 00 F4 [19:11: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 0C FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B2 01 00 00 5E 04 04 00 B2 01 00 00 57 04 04 00 B3 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:11:11]wFMCommunicate OK [19:11:11]SAM_PROTO_GetFieldsCounters done [19:11:11]requested_item shift.num is exist - process it [19:11:11]requested_item shift.opened is exist - process it [19:11:11]req_shift_opened [19:11:11]FM_GetShiftState [19:11:11]SAM_PROTO_GetShiftState [19:11:11]wFMCommunicate request_size=4 [19:11:11]MH_SAM_APDU [19:11:11]CAPDU: 80 13 01 00 [19:11:11]Write to MH i2c: E2 08 00 BC B9 80 13 01 00 00 00 00 00 F2 [19:11:11]Write i2c OK [19:11:11]MH_I2C_Read... [19:11:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:11]Read from MH i2c: E2 [19:11:11]MH_I2C_Read... [19:11:11]Read from MH i2c: E2 0E 00 [19:11:11]MH_I2C_Read... [19:11:11]Read from MH i2c: E2 0E 00 BC B9 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 2F [19:11:11]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:11:11]wFMCommunicate OK [19:11:11]SAM_PROTO_GetShiftState done [19:11:11]FM_GetShiftState done [19:11:11]req_shift_opened done [19:11:11]requested_item shift.open_date is exist - process it [19:11:11]req_shift_open_date [19:11:11]req_shift_open_date done [19:11:11]produce_requested_data done [19:11:11]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260876,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [19:11:11]process_action_free close_receipt [19:11:11]json_value_free [19:11:11]json_value_free done [19:11:11]process_json_proto returns [19:11:11]Send response to host [19:11:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260876,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [19:11:11]free response buf [19:11:11]execute_script done [19:11:11]execute_script returns [19:11:11]free content buf [19:11:11]Sock 7.Close socket [19:11:11]Sock 7.Thread stoped [19:11:13]OFD Sender: No OFD packet to send [19:11:18]OFD Sender: No OFD packet to send [19:11:23]OFD Sender: No OFD packet to send [19:11:28]OFD Sender: No OFD packet to send [19:11:33]OFD Sender: No OFD packet to send [19:11:38]OFD Sender: No OFD packet to send [19:11:43]OFD Sender: No OFD packet to send [19:11:48]OFD Sender: No OFD packet to send [19:11:53]OFD Sender: No OFD packet to send [19:11:58]OFD Sender: No OFD packet to send [19:12:03]OFD Sender: No OFD packet to send [19:12:08]OFD Sender: No OFD packet to send [19:12:13]OFD Sender: No OFD packet to send [19:12:18]OFD Sender: No OFD packet to send [19:12:23]OFD Sender: No OFD packet to send [19:12:28]OFD Sender: No OFD packet to send [19:12:33]OFD Sender: No OFD packet to send [19:12:38]OFD Sender: No OFD packet to send [19:12:43]OFD Sender: No OFD packet to send [19:12:48]OFD Sender: No OFD packet to send [19:12:53]OFD Sender: No OFD packet to send [19:12:58]OFD Sender: No OFD packet to send [19:13:03]OFD Sender: No OFD packet to send [19:13:08]OFD Sender: No OFD packet to send [19:13:13]OFD Sender: No OFD packet to send [19:13:18]OFD Sender: No OFD packet to send [19:13:23]OFD Sender: No OFD packet to send [19:13:28]OFD Sender: No OFD packet to send [19:13:33]OFD Sender: No OFD packet to send [19:13:38]OFD Sender: No OFD packet to send [19:13:43]OFD Sender: No OFD packet to send [19:13:48]OFD Sender: No OFD packet to send [19:13:49]accept exits with 9 [19:13:49]New connection [19:13:49]New thread 3066617188 created [19:13:49]Thread 3066473828 joined [19:13:49]Waiting for new connection... [19:13:49] Sock 9.Parse request [19:13:49]Sock 9.Check first char [19:13:49]Sock 9.First char is OK [19:13:49]request: POST /json_proto HTTP/1.0 [19:13:49]Method: POST [19:13:49]URL: /json_proto [19:13:49]Method is POST - this is cgi request [19:13:49]url: /json_proto [19:13:49]query_string will be loaded in cgi processing [19:13:49]execute_cgi json_proto POST (null) [19:13:49]execute_cgi path=json_proto method=POST [19:13:49]POST find Content-Length [19:13:49]Host: 172.17.55.133:8080 [19:13:49]Content-Length: 801 [19:13:49]Content-Type: application/json [19:13:49] [19:13:49]POST finish read [19:13:49]Found Content-Length = 801 [19:13:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 200.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:49]execute_script... [19:13:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 200.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:49]POST & json_proto [19:13:49]process_json_proto [19:13:49]json parsed OK: [19:13:49]protocol is kg_v1.0 [19:13:49]action value=close_receipt [19:13:49]process_action close_receipt [19:13:49]cmd_close_receipt [19:13:49]MH_GetDate [19:13:49]Write to MH i2c: F0 00 00 BD B9 65 [19:13:49]Write i2c OK [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: F0 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: F0 09 00 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: F0 09 00 BD B9 00 F4 47 C2 66 34 48 D8 65 8A [19:13:49]GetLastDocTimeStamp 1724008272 [19:13:49]current date 1724008436 [19:13:49]FM_GetShiftState [19:13:49]SAM_PROTO_GetShiftState [19:13:49]wFMCommunicate request_size=4 [19:13:49]MH_SAM_APDU [19:13:49]CAPDU: 80 13 01 00 [19:13:49]Write to MH i2c: E2 08 00 BE B9 80 13 01 00 00 00 00 00 F4 [19:13:49]Write i2c OK [19:13:49]MH_I2C_Read... [19:13:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:49]Read from MH i2c: E2 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: E2 0E 00 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: E2 0E 00 BE B9 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 31 [19:13:49]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:13:49]wFMCommunicate OK [19:13:49]SAM_PROTO_GetShiftState done [19:13:49]FM_GetShiftState done [19:13:49]opened in 1723940556 [19:13:49]opened+sec_in_day 1724026956 [19:13:49]quantity*price = 20001 [19:13:49]sum+1 = 20002 [19:13:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.01 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.01 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 435 18.08.2024 19:13 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260877 ФПД: 89449945771263 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T191356&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260877&fm=89449945771263&tin=02508201610067®Number=0000000000091865&sum=20001 [19:13:50]StoreToDocumentArchive [19:13:50]shift 449 fd 260877 [19:13:50]save to /storage/0449/doc_00260877 [19:13:50]save last doc name /storage/0449/doc_00260877 to /storage/kkm_last_doc_name [19:13:50]save OK [19:13:50]Clear old archive folders... [19:13:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:13:50]tlvbuf is 006B99A0 [19:13:50]SAM_PROTO_ClearQueue [19:13:50]wFMCommunicate request_size=4 [19:13:50]MH_SAM_APDU [19:13:50]CAPDU: 80 09 00 00 [19:13:50]Write to MH i2c: E2 08 00 CB B9 80 09 00 00 00 00 00 00 F6 [19:13:50]Write i2c OK [19:13:50]MH_I2C_Read... [19:13:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:13:50]Read from MH i2c: E2 [19:13:50]MH_I2C_Read... [19:13:50]Read from MH i2c: E2 03 00 [19:13:50]MH_I2C_Read... [19:13:50]Read from MH i2c: E2 03 00 CB B9 00 90 00 F8 [19:13:50]RAPDU: 90 00 [19:13:50]wFMCommunicate OK [19:13:50]SAM_PROTO_ClearQueue done [19:13:50]KKMCreateOFDPacket [19:13:50]OFDProtocolAddRootSTLVToBuf [19:13:50]FM_MakeSignedData [19:13:50]FM_MakeSignedData [19:13:50]SAM_PROTO_SignData [19:13:50]wFMCommunicate request_size=4 [19:13:50]MH_SAM_APDU [19:13:50]CAPDU: 80 0D 01 02 [19:13:50]Write to MH i2c: E2 08 00 CC B9 80 0D 01 02 00 00 00 00 FE [19:13:50]Write i2c OK [19:13:50]MH_I2C_Read... [19:13:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:13:50]Read from MH i2c: E2 [19:13:50]MH_I2C_Read... [19:13:50]Read from MH i2c: E2 03 00 [19:13:50]MH_I2C_Read... [19:13:50]Read from MH i2c: E2 03 00 CC B9 00 90 00 F9 [19:13:50]RAPDU: 90 00 [19:13:50]wFMCommunicate OK [19:13:50]wFMCommunicate request_size=255 [19:13:50]MH_SAM_APDU [19:13:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 01 00 00 F4 03 04 00 F4 47 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0D FB 03 00 35 04 06 00 51 [19:13:50]Write to MH i2c: E2 02 01 CD B9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 01 00 00 F4 03 04 00 F4 47 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0D FB 03 00 35 04 06 00 51 00 00 B4 [19:13:50]Write i2c OK [19:13:50]MH_I2C_Read... [19:13:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:51]Read from MH i2c: E2 [19:13:51]MH_I2C_Read... [19:13:51]Read from MH i2c: E2 03 00 [19:13:51]MH_I2C_Read... [19:13:51]Read from MH i2c: E2 03 00 CD B9 00 90 00 FA [19:13:51]RAPDU: 90 00 [19:13:51]wFMCommunicate OK [19:13:51]wFMCommunicate request_size=10 [19:13:51]MH_SAM_APDU [19:13:51]CAPDU: 80 0D 02 02 05 5A B0 3E 2C FF [19:13:51]Write to MH i2c: E2 0D 00 CE B9 80 0D 02 02 05 00 5A B0 3E 2C FF 00 00 7E [19:13:51]Write i2c OK [19:13:51]MH_I2C_Read... [19:13:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:51]Read from MH i2c: E2 [19:13:51]MH_I2C_Read... [19:13:51]Read from MH i2c: E2 03 00 [19:13:51]MH_I2C_Read... [19:13:51]Read from MH i2c: E2 03 00 CE B9 00 90 00 FB [19:13:51]RAPDU: 90 00 [19:13:51]wFMCommunicate OK [19:13:51]wFMCommunicate request_size=4 [19:13:51]MH_SAM_APDU [19:13:51]CAPDU: 80 0D 03 02 [19:13:51]Write to MH i2c: E2 08 00 CF B9 80 0D 03 02 00 00 00 00 03 [19:13:51]Write i2c OK [19:13:51]MH_I2C_Read... [19:13:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:13:51]Read from MH i2c: E2 [19:13:51]MH_I2C_Read... [19:13:51]Read from MH i2c: E2 0B 00 [19:13:51]MH_I2C_Read... [19:13:51]Read from MH i2c: E2 0B 00 CF B9 00 1F 7E CB 22 F1 53 03 A9 90 00 7E [19:13:51]RAPDU: 1F 7E CB 22 F1 53 03 A9 90 00 [19:13:51]wFMCommunicate OK [19:13:51]SAM_PROTO_SignData done [19:13:51]FM_MakeSignedData done [19:13:51]CreateOFDProtocolMessage [19:13:51]wFMCommunicate request_size=4 [19:13:51]MH_SAM_APDU [19:13:51]CAPDU: 80 11 00 00 [19:13:51]Write to MH i2c: E2 08 00 D0 B9 80 11 00 00 00 00 00 00 03 [19:13:51]Write i2c OK [19:13:51]MH_I2C_Read... [19:13:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:51]Read from MH i2c: E2 [19:13:51]MH_I2C_Read... [19:13:51]Read from MH i2c: E2 17 00 [19:13:51]MH_I2C_Read... [19:13:51]Read from MH i2c: E2 17 00 D0 B9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 50 [19:13:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:13:51]wFMCommunicate OK [19:13:51]CreateOFDProtocolMessage done [19:13:51]OFDSenderStorePacket 260877 [19:13:51]StoreOFDPacket docnum=260877 [19:13:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 79 0A 07 01 96 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 01 00 00 F4 03 04 00 F4 47 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0D FB 03 00 35 04 06 00 51 5A B0 3E 2C FF 1F 7E CB 22 F1 53 03 A9 [19:13:51]CheckFolder [19:13:51]dirname=/storage/ofd_packets [19:13:51]CheckFolder done [19:13:51]ProducePacketName [19:13:51]name=ofd_packets/00260877 [19:13:51]NVStorageSaveData ofd_packets/00260877 [19:13:51]File name is /storage/ofd_packets/00260877 [19:13:51]Write 301 bytes [19:13:51]NVStorageSaveData done [19:13:51]OFDSenderStorePacket done [19:13:51]KKMCreateOFDPacket done [19:13:51]NVStorageSaveData kkm_last_timestamp [19:13:51]File name is /storage/kkm_last_timestamp [19:13:51]Write 4 bytes [19:13:51]NVStorageSaveData done [19:13:51]ExternCall_PrintAddStr [19:13:51]wPrintStart [19:13:51]Write to MH i2c: 01 00 00 D1 B9 8A [19:13:51]Write i2c OK [19:13:51]MH_I2C_Read... [19:13:51]Read from MH i2c: 01 [19:13:51]MH_I2C_Read... [19:13:51]Read from MH i2c: 01 07 00 [19:13:51]MH_I2C_Read... [19:13:51]Read from MH i2c: 01 07 00 D1 B9 00 00 00 00 00 FF 0F 9F [19:13:51]RasterBufferAndPrint [19:13:51]line Счет N : (1)1036430 [19:13:51]line ИНН: 02508201610067 [19:13:51]line Контрольно-Кассовый Чек [19:13:51]line ПРОДАЖА [19:13:51]line ТРК (МРК, ГНК) : 22 [19:13:51]line Товар: 2710124130 [19:13:51]line Аи-92-К-5 [19:13:51]line 2.950 * 67.80 [19:13:51]line = 200.01 [19:13:51]line НДС 12% НСП 1% [19:13:51]line > о реализуемом товаре [19:13:51]line ИТОГО: 200.01 [19:13:51]line НСП 1% : 1.77 [19:13:51]line НДС 12% : 21.24 [19:13:51]line Наличными: 0.00 [19:13:51]line Безнал.: 200.01 [19:13:51]line Место: АЗС № 94 "Партнер Нефть" [19:13:51]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [19:13:51]line СНО: Общий режим [19:13:51]line Чек 435 18.08.2024 19:13 [19:13:51]line Смена: 449 ФФД: 1.0 [19:13:51]line ЗНМ: 0300000099 [19:13:51]line РНМ: 0000000000091865 [19:13:51]line Версия ККМ: 001 [19:13:51]line Платежная система: O! деньги [19:13:51]line ФМ: 0000000000871820 [19:13:51]line ФД: 260877 [19:13:51]line ФПД: 89449945771263 [19:13:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T191356&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260877&fm=89449945771263&tin=02508201610067®Number=0000000000091865&sum=20001 [19:13:51]written 0, free lines is 4095 [19:13:51]OFD Sender: Processing packet 260877 [packets to send 192, broken 191] [19:13:51]ProducePacketName [19:13:51]name=ofd_packets/00260877 [19:13:51]OFD Sender: To server: pG, [19:13:51]CommunicateWithHost lk.salyk.kg:30040 [19:13:51]ConnectInit lk.salyk.kg [19:13:51]Connected sock=10 [19:13: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 30 0F 01 00 00 79 0A 07 01 96 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 01 00 00 F4 03 04 00 F4 47 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0D FB 03 00 35 04 06 00 51 5A B0 3E 2C FF 1F 7E CB 22 F1 53 03 A9 [19:13: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 30 4F 00 00 00 82 D6 47 00 77 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 30 10 04 04 00 0D FB 03 00 F4 03 04 00 47 F1 C1 66 B6 04 01 00 00 F9 BE 91 4A 3E DD D3 68 [19:13:51]CommunicateWithHost err = 0 [19:13:51]CheckOFDResponse [19:13:51]1017 (14) - 77093643461234 [19:13:51]1041 (16) - 0000000000871820 [19:13:51]1040 (4) - 260877 [19:13:51]1012 (4) - 18.08.2024 13:04 [19:13:51]1206 (1) - 0 [19:13:51]OFD Sender: Remove packet 260877 [19:13:51]ProducePacketName [19:13:51]name=ofd_packets/00260877 [19:13:51]NVStorageDeleteData [19:13:51]Write to MH i2c: 01 00 00 FB B9 B4 [19:13:51]Write i2c OK [19:13:51]MH_I2C_Read... [19:13:51]Read from MH i2c: 01 [19:13:51]MH_I2C_Read... [19:13:51]Read from MH i2c: 01 07 00 [19:13:51]MH_I2C_Read... [19:13:51]Read from MH i2c: 01 07 00 FB B9 00 00 00 00 00 87 0C 4E [19:13:51]RasterBufferAndPrint [19:13:51]line [19:13:51]line [19:13:51]line [19:13:51]line [19:13:51]line [19:13:51]written 0, free lines is 3210 [19:13:51]MH_Cut [19:13:51]Write to MH i2c: D1 01 00 02 BA 01 8E [19:13:51]Write i2c OK [19:13:51]MH_I2C_Read... [19:13:51]Read from MH i2c: D1 [19:13:51]MH_I2C_Read... [19:13:51]Read from MH i2c: D1 01 00 [19:13:51]MH_I2C_Read... [19:13:51]Read from MH i2c: D1 01 00 02 BA 00 8D [19:13:51]Write to MH i2c: 01 00 00 03 BA BD [19:13:51]Write i2c OK [19:13:51]MH_I2C_Read... [19:13:52]OFD Sender: No OFD packet to send [19:13:52]*** Cut start [19:13:52]*** Purtial cut [19:13:52]*** Stage 1: CUTSNS_PIN = 1 [19:13:54]Read from MH i2c: 01 [19:13:54]MH_I2C_Read... [19:13:54]*** Stop cut motor [19:13:54]*** Cut end [19:13:54]Read from MH i2c: 01 07 00 [19:13:54]MH_I2C_Read... [19:13:54]Read from MH i2c: 01 07 00 03 BA 00 00 00 00 00 FF 0F D2 [19:13:54]process_action close_receipt done [19:13:54]requested_data is exist [19:13:54]produce_requested_data [19:13:54]requested_item fm.sn is exist - process it [19:13:54]wFMCommunicate request_size=4 [19:13:54]MH_SAM_APDU [19:13:54]CAPDU: 80 11 00 00 [19:13:54]Write to MH i2c: E2 08 00 04 BA 80 11 00 00 00 00 00 00 38 [19:13:54]Write i2c OK [19:13:54]MH_I2C_Read... [19:13:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:54]Read from MH i2c: E2 [19:13:54]MH_I2C_Read... [19:13:54]Read from MH i2c: E2 17 00 [19:13:54]MH_I2C_Read... [19:13:54]Read from MH i2c: E2 17 00 04 BA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 85 [19:13:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:13:54]wFMCommunicate OK [19:13:54]requested_item fd.num is exist - process it [19:13:54]SAM_PROTO_GetFieldsCounters [19:13:54]wFMCommunicate request_size=4 [19:13:54]MH_SAM_APDU [19:13:54]CAPDU: 80 13 00 00 [19:13:54]Write to MH i2c: E2 08 00 05 BA 80 13 00 00 00 00 00 00 3B [19:13:54]Write i2c OK [19:13:54]MH_I2C_Read... [19:13:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:13:55]Read from MH i2c: E2 [19:13:55]MH_I2C_Read... [19:13:55]Read from MH i2c: E2 62 00 [19:13:55]MH_I2C_Read... [19:13:55]Read from MH i2c: E2 62 00 05 BA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 0D FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B3 01 00 00 5E 04 04 00 B3 01 00 00 57 04 04 00 B4 01 00 00 19 04 04 00 00 00 00 00 90 00 43 [19: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 0D FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B3 01 00 00 5E 04 04 00 B3 01 00 00 57 04 04 00 B4 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:13:55]wFMCommunicate OK [19:13:55]SAM_PROTO_GetFieldsCounters done [19:13:55]requested_item shift.num is exist - process it [19:13:55]requested_item shift.opened is exist - process it [19:13:55]req_shift_opened [19:13:55]FM_GetShiftState [19:13:55]SAM_PROTO_GetShiftState [19:13:55]wFMCommunicate request_size=4 [19:13:55]MH_SAM_APDU [19:13:55]CAPDU: 80 13 01 00 [19:13:55]Write to MH i2c: E2 08 00 06 BA 80 13 01 00 00 00 00 00 3D [19:13:55]Write i2c OK [19:13:55]MH_I2C_Read... [19:13:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:55]Read from MH i2c: E2 [19:13:55]MH_I2C_Read... [19:13:55]Read from MH i2c: E2 0E 00 [19:13:55]MH_I2C_Read... [19:13:55]Read from MH i2c: E2 0E 00 06 BA 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 7A [19:13:55]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:13:55]wFMCommunicate OK [19:13:55]SAM_PROTO_GetShiftState done [19:13:55]FM_GetShiftState done [19:13:55]req_shift_opened done [19:13:55]requested_item shift.open_date is exist - process it [19:13:55]req_shift_open_date [19:13:55]req_shift_open_date done [19:13:55]produce_requested_data done [19:13:55]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260877,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [19:13:55]process_action_free close_receipt [19:13:55]json_value_free [19:13:55]json_value_free done [19:13:55]process_json_proto returns [19:13:55]Send response to host [19:13:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260877,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [19:13:55]free response buf [19:13:55]execute_script done [19:13:55]execute_script returns [19:13:55]free content buf [19:13:55]Sock 9.Close socket [19:13:55]Sock 9.Thread stoped [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:19]accept exits with 7 [19:14:19]New connection [19:14:19]New thread 3066473828 created [19:14:19]Thread 3066617188 joined [19:14:19]Waiting for new connection... [19:14:19] Sock 7.Parse request [19:14:19]Sock 7.Check first char [19:14:19]Sock 7.First char is OK [19:14:19]request: POST /json_proto HTTP/1.0 [19:14:19]Method: POST [19:14:19]URL: /json_proto [19:14:19]Method is POST - this is cgi request [19:14:19]url: /json_proto [19:14:19]query_string will be loaded in cgi processing [19:14:19]execute_cgi json_proto POST (null) [19:14:19]execute_cgi path=json_proto method=POST [19:14:19]POST find Content-Length [19:14:19]Host: 172.17.55.133:8080 [19:14:19]Content-Length: 683 [19:14:19]Content-Type: application/json [19:14:19] [19:14:19]POST finish read [19:14:19]Found Content-Length = 683 [19:14:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:14:19]execute_script... [19:14: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)1036431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:14:19]POST & json_proto [19:14:19]process_json_proto [19:14:19]json parsed OK: [19:14:19]protocol is kg_v1.0 [19:14:19]action value=close_receipt [19:14:19]process_action close_receipt [19:14:19]cmd_close_receipt [19:14:19]MH_GetDate [19:14:19]Write to MH i2c: F0 00 00 07 BA B0 [19:14:19]Write i2c OK [19:14:19]MH_I2C_Read... [19:14:19]Read from MH i2c: F0 [19:14:19]MH_I2C_Read... [19:14:19]Read from MH i2c: F0 09 00 [19:14:19]MH_I2C_Read... [19:14:19]Read from MH i2c: F0 09 00 07 BA 00 12 48 C2 66 34 48 D8 65 F4 [19:14:19]GetLastDocTimeStamp 1724008436 [19:14:19]current date 1724008466 [19:14:19]FM_GetShiftState [19:14:19]SAM_PROTO_GetShiftState [19:14:19]wFMCommunicate request_size=4 [19:14:19]MH_SAM_APDU [19:14:19]CAPDU: 80 13 01 00 [19:14:19]Write to MH i2c: E2 08 00 08 BA 80 13 01 00 00 00 00 00 3F [19:14:19]Write i2c OK [19:14:19]MH_I2C_Read... [19:14:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:19]Read from MH i2c: E2 [19:14:19]MH_I2C_Read... [19:14:19]Read from MH i2c: E2 0E 00 [19:14:19]MH_I2C_Read... [19:14:19]Read from MH i2c: E2 0E 00 08 BA 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 7C [19:14:19]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:14:19]wFMCommunicate OK [19:14:19]SAM_PROTO_GetShiftState done [19:14:19]FM_GetShiftState done [19:14:19]opened in 1723940556 [19:14:19]opened+sec_in_day 1724026956 [19:14:19]quantity*price = 100005 [19:14:19]sum+1 = 100006 [19:14:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 436 18.08.2024 19:14 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260878 ФПД: 60137623804356 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T191426&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260878&fm=60137623804356&tin=02508201610067®Number=0000000000091865&sum=100000 [19:14:20]StoreToDocumentArchive [19:14:20]shift 449 fd 260878 [19:14:20]save to /storage/0449/doc_00260878 [19:14:20]save last doc name /storage/0449/doc_00260878 to /storage/kkm_last_doc_name [19:14:20]save OK [19:14:20]Clear old archive folders... [19:14:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:14:20]tlvbuf is 00387EC0 [19:14:20]SAM_PROTO_ClearQueue [19:14:20]wFMCommunicate request_size=4 [19:14:20]MH_SAM_APDU [19:14:20]CAPDU: 80 09 00 00 [19:14:20]Write to MH i2c: E2 08 00 15 BA 80 09 00 00 00 00 00 00 41 [19:14:20]Write i2c OK [19:14:20]MH_I2C_Read... [19:14:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:14:20]Read from MH i2c: E2 [19:14:20]MH_I2C_Read... [19:14:20]Read from MH i2c: E2 03 00 [19:14:20]MH_I2C_Read... [19:14:20]Read from MH i2c: E2 03 00 15 BA 00 90 00 43 [19:14:20]RAPDU: 90 00 [19:14:20]wFMCommunicate OK [19:14:20]SAM_PROTO_ClearQueue done [19:14:20]KKMCreateOFDPacket [19:14:20]OFDProtocolAddRootSTLVToBuf [19:14:20]FM_MakeSignedData [19:14:20]FM_MakeSignedData [19:14:20]SAM_PROTO_SignData [19:14:20]wFMCommunicate request_size=4 [19:14:20]MH_SAM_APDU [19:14:20]CAPDU: 80 0D 01 02 [19:14:20]Write to MH i2c: E2 08 00 16 BA 80 0D 01 02 00 00 00 00 49 [19:14:20]Write i2c OK [19:14:20]MH_I2C_Read... [19:14:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:14:20]Read from MH i2c: E2 [19:14:20]MH_I2C_Read... [19:14:20]Read from MH i2c: E2 03 00 [19:14:20]MH_I2C_Read... [19:14:20]Read from MH i2c: E2 03 00 16 BA 00 90 00 44 [19:14:20]RAPDU: 90 00 [19:14:20]wFMCommunicate OK [19:14:20]wFMCommunicate request_size=255 [19:14:20]MH_SAM_APDU [19:14:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 01 00 00 F4 03 04 00 12 48 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0E FB 03 00 35 04 06 00 36 [19:14:20]Write to MH i2c: E2 02 01 17 BA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 01 00 00 F4 03 04 00 12 48 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0E FB 03 00 35 04 06 00 36 00 00 90 [19:14:20]Write i2c OK [19:14:20]MH_I2C_Read... [19:14:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:21]Read from MH i2c: E2 [19:14:21]MH_I2C_Read... [19:14:21]Read from MH i2c: E2 03 00 [19:14:21]MH_I2C_Read... [19:14:21]Read from MH i2c: E2 03 00 17 BA 00 90 00 45 [19:14:21]RAPDU: 90 00 [19:14:21]wFMCommunicate OK [19:14:21]wFMCommunicate request_size=10 [19:14:21]MH_SAM_APDU [19:14:21]CAPDU: 80 0D 02 02 05 B1 E1 B4 59 C4 [19:14:21]Write to MH i2c: E2 0D 00 18 BA 80 0D 02 02 05 00 B1 E1 B4 59 C4 00 00 B9 [19:14:21]Write i2c OK [19:14:21]MH_I2C_Read... [19:14:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:21]Read from MH i2c: E2 [19:14:21]MH_I2C_Read... [19:14:21]Read from MH i2c: E2 03 00 [19:14:21]MH_I2C_Read... [19:14:21]Read from MH i2c: E2 03 00 18 BA 00 90 00 46 [19:14:21]RAPDU: 90 00 [19:14:21]wFMCommunicate OK [19:14:21]wFMCommunicate request_size=4 [19:14:21]MH_SAM_APDU [19:14:21]CAPDU: 80 0D 03 02 [19:14:21]Write to MH i2c: E2 08 00 19 BA 80 0D 03 02 00 00 00 00 4E [19:14:21]Write i2c OK [19:14:21]MH_I2C_Read... [19:14:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:14:21]Read from MH i2c: E2 [19:14:21]MH_I2C_Read... [19:14:21]Read from MH i2c: E2 0B 00 [19:14:21]MH_I2C_Read... [19:14:21]Read from MH i2c: E2 0B 00 19 BA 00 F8 C8 70 4A B0 C4 2B 21 90 00 89 [19:14:21]RAPDU: F8 C8 70 4A B0 C4 2B 21 90 00 [19:14:21]wFMCommunicate OK [19:14:21]SAM_PROTO_SignData done [19:14:21]FM_MakeSignedData done [19:14:21]CreateOFDProtocolMessage [19:14:21]wFMCommunicate request_size=4 [19:14:21]MH_SAM_APDU [19:14:21]CAPDU: 80 11 00 00 [19:14:21]Write to MH i2c: E2 08 00 1A BA 80 11 00 00 00 00 00 00 4E [19:14:21]Write i2c OK [19:14:21]MH_I2C_Read... [19:14:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:21]Read from MH i2c: E2 [19:14:21]MH_I2C_Read... [19:14:21]Read from MH i2c: E2 17 00 [19:14:21]MH_I2C_Read... [19:14:21]Read from MH i2c: E2 17 00 1A BA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 9B [19:14:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:14:21]wFMCommunicate OK [19:14:21]CreateOFDProtocolMessage done [19:14:21]OFDSenderStorePacket 260878 [19:14:21]StoreOFDPacket docnum=260878 [19:14:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 1C E4 07 01 E8 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 01 00 00 F4 03 04 00 12 48 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0E FB 03 00 35 04 06 00 36 B1 E1 B4 59 C4 F8 C8 70 4A B0 C4 2B 21 [19:14:21]CheckFolder [19:14:21]dirname=/storage/ofd_packets [19:14:21]CheckFolder done [19:14:21]ProducePacketName [19:14:21]name=ofd_packets/00260878 [19:14:21]NVStorageSaveData ofd_packets/00260878 [19:14:21]File name is /storage/ofd_packets/00260878 [19:14:21]Write 301 bytes [19:14:21]NVStorageSaveData done [19:14:21]OFDSenderStorePacket done [19:14:21]KKMCreateOFDPacket done [19:14:21]NVStorageSaveData kkm_last_timestamp [19:14:21]File name is /storage/kkm_last_timestamp [19:14:21]Write 4 bytes [19:14:21]NVStorageSaveData done [19:14:21]ExternCall_PrintAddStr [19:14:21]wPrintStart [19:14:21]Write to MH i2c: 01 00 00 1B BA D5 [19:14:21]Write i2c OK [19:14:21]MH_I2C_Read... [19:14:21]Read from MH i2c: 01 [19:14:21]MH_I2C_Read... [19:14:21]Read from MH i2c: 01 07 00 [19:14:21]MH_I2C_Read... [19:14:21]Read from MH i2c: 01 07 00 1B BA 00 00 00 00 00 FF 0F EA [19:14:21]RasterBufferAndPrint [19:14:21]line Счет N : (1)1036431 [19:14:21]line ИНН: 02508201610067 [19:14:21]line Контрольно-Кассовый Чек [19:14:21]line ПРОДАЖА [19:14:21]line ТРК (МРК, ГНК) : 32 [19:14:21]line Товар: 2710124130 [19:14:21]line Аи-92-К-5 [19:14:21]line 14.750 * 67.80 [19:14:21]line = 1000.05 [19:14:21]line НДС 12% НСП 1% [19:14:21]line > о реализуемом товаре [19:14:21]line ОКРУГЛЕНИЕ: -0.05 [19:14:21]line ИТОГО: 1000.00 [19:14:21]line Внесено: 1000.00 [19:14:21]line СДАЧА: 0.00 [19:14:21]line НСП 1% : 8.85 [19:14:21]line НДС 12% : 106.20 [19:14:21]line Наличными: 1000.00 [19:14:21]line Безнал.: 0.00 [19:14:21]line Место: АЗС № 94 "Партнер Нефть" [19:14:21]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [19:14:21]line СНО: Общий режим [19:14:21]line Чек 436 18.08.2024 19:14 [19:14:21]line Смена: 449 ФФД: 1.0 [19:14:21]line ЗНМ: 0300000099 [19:14:21]line РНМ: 0000000000091865 [19:14:21]line Версия ККМ: 001 [19:14:21]line ФМ: 0000000000871820 [19:14:21]line ФД: 260878 [19:14:21]line ФПД: 60137623804356 [19:14:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T191426&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260878&fm=60137623804356&tin=02508201610067®Number=0000000000091865&sum=100000 [19:14:21]written 0, free lines is 4095 [19:14:21]OFD Sender: Processing packet 260878 [packets to send 192, broken 191] [19:14:21]ProducePacketName [19:14:21]name=ofd_packets/00260878 [19:14:21]OFD Sender: To server: pG, [19:14:21]CommunicateWithHost lk.salyk.kg:30040 [19:14:21]ConnectInit lk.salyk.kg [19:14:21]Connected sock=10 [19:14: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 30 0F 01 00 00 1C E4 07 01 E8 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 01 00 00 F4 03 04 00 12 48 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0E FB 03 00 35 04 06 00 36 B1 E1 B4 59 C4 F8 C8 70 4A B0 C4 2B 21 [19:14: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 30 4F 00 00 00 DD AB 47 00 15 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 30 10 04 04 00 0E FB 03 00 F4 03 04 00 65 F1 C1 66 B6 04 01 00 00 14 40 90 3E D0 B3 1C 6D [19:14:21]CommunicateWithHost err = 0 [19:14:21]CheckOFDResponse [19:14:21]1017 (14) - 77093643461234 [19:14:21]1041 (16) - 0000000000871820 [19:14:21]1040 (4) - 260878 [19:14:21]1012 (4) - 18.08.2024 13:04 [19:14:21]1206 (1) - 0 [19:14:21]OFD Sender: Remove packet 260878 [19:14:21]ProducePacketName [19:14:21]name=ofd_packets/00260878 [19:14:21]NVStorageDeleteData [19:14:21]Write to MH i2c: 01 00 00 46 BA 00 [19:14:21]Write i2c OK [19:14:21]MH_I2C_Read... [19:14:21]Read from MH i2c: 01 [19:14:21]MH_I2C_Read... [19:14:21]Read from MH i2c: 01 07 00 [19:14:21]MH_I2C_Read... [19:14:21]Read from MH i2c: 01 07 00 46 BA 00 00 00 00 00 71 0C 84 [19:14:21]RasterBufferAndPrint [19:14:21]line [19:14:21]line [19:14:21]line [19:14:21]line [19:14:21]line [19:14:21]written 0, free lines is 3188 [19:14:21]MH_Cut [19:14:21]Write to MH i2c: D1 01 00 4D BA 01 D9 [19:14:21]Write i2c OK [19:14:21]MH_I2C_Read... [19:14:21]Read from MH i2c: D1 [19:14:21]MH_I2C_Read... [19:14:21]Read from MH i2c: D1 01 00 [19:14:21]MH_I2C_Read... [19:14:21]Read from MH i2c: D1 01 00 4D BA 00 D8 [19:14:21]Write to MH i2c: 01 00 00 4E BA 08 [19:14:21]Write i2c OK [19:14:21]MH_I2C_Read... [19:14:22]OFD Sender: No OFD packet to send [19:14:22]*** Cut start [19:14:22]*** Purtial cut [19:14:22]*** Stage 1: CUTSNS_PIN = 1 [19:14:24]Read from MH i2c: 01 [19:14:24]MH_I2C_Read... [19:14:24]*** Stop cut motor [19:14:24]*** Cut end [19:14:24]Read from MH i2c: 01 07 00 [19:14:24]MH_I2C_Read... [19:14:24]Read from MH i2c: 01 07 00 4E BA 00 00 00 00 00 FF 0F 1D [19:14:24]process_action close_receipt done [19:14:24]requested_data is exist [19:14:24]produce_requested_data [19:14:24]requested_item fm.sn is exist - process it [19:14:24]wFMCommunicate request_size=4 [19:14:24]MH_SAM_APDU [19:14:24]CAPDU: 80 11 00 00 [19:14:24]Write to MH i2c: E2 08 00 4F BA 80 11 00 00 00 00 00 00 83 [19:14:24]Write i2c OK [19:14:24]MH_I2C_Read... [19:14:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:24]Read from MH i2c: E2 [19:14:24]MH_I2C_Read... [19:14:24]Read from MH i2c: E2 17 00 [19:14:24]MH_I2C_Read... [19:14:24]Read from MH i2c: E2 17 00 4F BA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D0 [19:14:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:14:25]wFMCommunicate OK [19:14:25]requested_item fd.num is exist - process it [19:14:25]SAM_PROTO_GetFieldsCounters [19:14:25]wFMCommunicate request_size=4 [19:14:25]MH_SAM_APDU [19:14:25]CAPDU: 80 13 00 00 [19:14:25]Write to MH i2c: E2 08 00 50 BA 80 13 00 00 00 00 00 00 86 [19:14:25]Write i2c OK [19:14:25]MH_I2C_Read... [19:14:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:14:25]Read from MH i2c: E2 [19:14:25]MH_I2C_Read... [19:14:25]Read from MH i2c: E2 62 00 [19:14:25]MH_I2C_Read... [19:14:25]Read from MH i2c: E2 62 00 50 BA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 0E FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B4 01 00 00 5E 04 04 00 B4 01 00 00 57 04 04 00 B5 01 00 00 19 04 04 00 00 00 00 00 90 00 92 [19:14: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 0E FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B4 01 00 00 5E 04 04 00 B4 01 00 00 57 04 04 00 B5 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:14:25]wFMCommunicate OK [19:14:25]SAM_PROTO_GetFieldsCounters done [19:14:25]requested_item shift.num is exist - process it [19:14:25]requested_item shift.opened is exist - process it [19:14:25]req_shift_opened [19:14:25]FM_GetShiftState [19:14:25]SAM_PROTO_GetShiftState [19:14:25]wFMCommunicate request_size=4 [19:14:25]MH_SAM_APDU [19:14:25]CAPDU: 80 13 01 00 [19:14:25]Write to MH i2c: E2 08 00 51 BA 80 13 01 00 00 00 00 00 88 [19:14:25]Write i2c OK [19:14:25]MH_I2C_Read... [19:14:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:25]Read from MH i2c: E2 [19:14:25]MH_I2C_Read... [19:14:25]Read from MH i2c: E2 0E 00 [19:14:25]MH_I2C_Read... [19:14:25]Read from MH i2c: E2 0E 00 51 BA 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C5 [19:14:25]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:14:25]wFMCommunicate OK [19:14:25]SAM_PROTO_GetShiftState done [19:14:25]FM_GetShiftState done [19:14:25]req_shift_opened done [19:14:25]requested_item shift.open_date is exist - process it [19:14:25]req_shift_open_date [19:14:25]req_shift_open_date done [19:14:25]produce_requested_data done [19:14:25]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260878,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [19:14:25]process_action_free close_receipt [19:14:25]json_value_free [19:14:25]json_value_free done [19:14:25]process_json_proto returns [19:14:25]Send response to host [19:14:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260878,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [19:14:25]free response buf [19:14:25]execute_script done [19:14:25]execute_script returns [19:14:25]free content buf [19:14:25]Sock 7.Close socket [19:14:25]Sock 7.Thread stoped [19:14:25]accept exits with 9 [19:14:25]New connection [19:14:25]New thread 3066617188 created [19:14:25]Thread 3066473828 joined [19:14:25]Waiting for new connection... [19:14:25] Sock 9.Parse request [19:14:25]Sock 9.Check first char [19:14:25]Sock 9.First char is OK [19:14:25]request: POST /json_proto HTTP/1.0 [19:14:25]Method: POST [19:14:25]URL: /json_proto [19:14:25]Method is POST - this is cgi request [19:14:25]url: /json_proto [19:14:25]query_string will be loaded in cgi processing [19:14:25]execute_cgi json_proto POST (null) [19:14:25]execute_cgi path=json_proto method=POST [19:14:25]POST find Content-Length [19:14:25]Host: 172.17.55.133:8080 [19:14:25]Content-Length: 793 [19:14:25]Content-Type: application/json [19:14:25] [19:14:25]POST finish read [19:14:25]Found Content-Length = 793 [19:14:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036429", "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" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A65682", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:25]execute_script... [19:14: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)1036429", "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" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A65682", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:25]POST & json_proto [19:14:25]process_json_proto [19:14:25]json parsed OK: [19:14:25]protocol is kg_v1.0 [19:14:25]action value=close_receipt [19:14:25]process_action close_receipt [19:14:25]cmd_close_receipt [19:14:25]MH_GetDate [19:14:25]Write to MH i2c: F0 00 00 52 BA FB [19:14:25]Write i2c OK [19:14:25]MH_I2C_Read... [19:14:25]Read from MH i2c: F0 [19:14:25]MH_I2C_Read... [19:14:25]Read from MH i2c: F0 09 00 [19:14:25]MH_I2C_Read... [19:14:25]Read from MH i2c: F0 09 00 52 BA 00 17 48 C2 66 34 48 D8 65 44 [19:14:25]GetLastDocTimeStamp 1724008466 [19:14:25]current date 1724008471 [19:14:25]FM_GetShiftState [19:14:25]SAM_PROTO_GetShiftState [19:14:25]wFMCommunicate request_size=4 [19:14:25]MH_SAM_APDU [19:14:25]CAPDU: 80 13 01 00 [19:14:25]Write to MH i2c: E2 08 00 53 BA 80 13 01 00 00 00 00 00 8A [19:14:25]Write i2c OK [19:14:25]MH_I2C_Read... [19:14:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:25]Read from MH i2c: E2 [19:14:25]MH_I2C_Read... [19:14:25]Read from MH i2c: E2 0E 00 [19:14:25]MH_I2C_Read... [19:14:25]Read from MH i2c: E2 0E 00 53 BA 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C7 [19:14:25]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:14:25]wFMCommunicate OK [19:14:25]SAM_PROTO_GetShiftState done [19:14:25]FM_GetShiftState done [19:14:25]opened in 1723940556 [19:14:25]opened+sec_in_day 1724026956 [19:14:25]quantity*price = 0 [19:14:25]sum+1 = 1 [19:14:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 437 18.08.2024 19:14 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: Топливная Карта 65682 ФМ: 0000000000871820 ФД: 260879 ФПД: 93452336707044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T191431&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260879&fm=93452336707044&tin=02508201610067®Number=0000000000091865&sum=0 [19:14:26]StoreToDocumentArchive [19:14:26]shift 449 fd 260879 [19:14:26]save to /storage/0449/doc_00260879 [19:14:26]save last doc name /storage/0449/doc_00260879 to /storage/kkm_last_doc_name [19:14:26]save OK [19:14:26]Clear old archive folders... [19:14:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:14:26]tlvbuf is 00387940 [19:14:26]SAM_PROTO_ClearQueue [19:14:26]wFMCommunicate request_size=4 [19:14:26]MH_SAM_APDU [19:14:26]CAPDU: 80 09 00 00 [19:14:26]Write to MH i2c: E2 08 00 60 BA 80 09 00 00 00 00 00 00 8C [19:14:26]Write i2c OK [19:14:26]MH_I2C_Read... [19:14:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:14:26]Read from MH i2c: E2 [19:14:26]MH_I2C_Read... [19:14:26]Read from MH i2c: E2 03 00 [19:14:26]MH_I2C_Read... [19:14:26]Read from MH i2c: E2 03 00 60 BA 00 90 00 8E [19:14:26]RAPDU: 90 00 [19:14:26]wFMCommunicate OK [19:14:26]SAM_PROTO_ClearQueue done [19:14:26]KKMCreateOFDPacket [19:14:26]OFDProtocolAddRootSTLVToBuf [19:14:26]FM_MakeSignedData [19:14:26]FM_MakeSignedData [19:14:26]SAM_PROTO_SignData [19:14:26]wFMCommunicate request_size=4 [19:14:26]MH_SAM_APDU [19:14:26]CAPDU: 80 0D 01 02 [19:14:26]Write to MH i2c: E2 08 00 61 BA 80 0D 01 02 00 00 00 00 94 [19:14:26]Write i2c OK [19:14:26]MH_I2C_Read... [19:14:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:14:26]Read from MH i2c: E2 [19:14:26]MH_I2C_Read... [19:14:26]Read from MH i2c: E2 03 00 [19:14:26]MH_I2C_Read... [19:14:26]Read from MH i2c: E2 03 00 61 BA 00 90 00 8F [19:14:26]RAPDU: 90 00 [19:14:26]wFMCommunicate OK [19:14:26]wFMCommunicate request_size=255 [19:14:26]MH_SAM_APDU [19:14:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 01 00 00 F4 03 04 00 17 48 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0F FB 03 00 35 04 06 00 54 [19:14:26]Write to MH i2c: E2 02 01 62 BA 80 0D 02 02 FA 00 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 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 01 00 00 F4 03 04 00 17 48 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0F FB 03 00 35 04 06 00 54 00 00 A5 [19:14:26]Write i2c OK [19:14:26]MH_I2C_Read... [19:14:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:27]OFD Sender: No OFD packet to send [19:14:27]Read from MH i2c: E2 [19:14:27]MH_I2C_Read... [19:14:27]Read from MH i2c: E2 03 00 [19:14:27]MH_I2C_Read... [19:14:27]Read from MH i2c: E2 03 00 62 BA 00 90 00 90 [19:14:27]RAPDU: 90 00 [19:14:27]wFMCommunicate OK [19:14:27]wFMCommunicate request_size=10 [19:14:27]MH_SAM_APDU [19:14:27]CAPDU: 80 0D 02 02 05 FE 91 55 35 E4 [19:14:27]Write to MH i2c: E2 0D 00 63 BA 80 0D 02 02 05 00 FE 91 55 35 E4 00 00 9E [19:14:27]Write i2c OK [19:14:27]MH_I2C_Read... [19:14:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:27]Read from MH i2c: E2 [19:14:27]MH_I2C_Read... [19:14:27]Read from MH i2c: E2 03 00 [19:14:27]MH_I2C_Read... [19:14:27]Read from MH i2c: E2 03 00 63 BA 00 90 00 91 [19:14:27]RAPDU: 90 00 [19:14:27]wFMCommunicate OK [19:14:27]wFMCommunicate request_size=4 [19:14:27]MH_SAM_APDU [19:14:27]CAPDU: 80 0D 03 02 [19:14:27]Write to MH i2c: E2 08 00 64 BA 80 0D 03 02 00 00 00 00 99 [19:14:27]Write i2c OK [19:14:27]MH_I2C_Read... [19:14:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:14:27]Read from MH i2c: E2 [19:14:27]MH_I2C_Read... [19:14:27]Read from MH i2c: E2 0B 00 [19:14:27]MH_I2C_Read... [19:14:27]Read from MH i2c: E2 0B 00 64 BA 00 E0 E5 A1 12 A3 AB B5 20 90 00 35 [19:14:27]RAPDU: E0 E5 A1 12 A3 AB B5 20 90 00 [19:14:27]wFMCommunicate OK [19:14:27]SAM_PROTO_SignData done [19:14:27]FM_MakeSignedData done [19:14:27]CreateOFDProtocolMessage [19:14:27]wFMCommunicate request_size=4 [19:14:27]MH_SAM_APDU [19:14:27]CAPDU: 80 11 00 00 [19:14:27]Write to MH i2c: E2 08 00 65 BA 80 11 00 00 00 00 00 00 99 [19:14:27]Write i2c OK [19:14:27]MH_I2C_Read... [19:14:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:27]Read from MH i2c: E2 [19:14:27]MH_I2C_Read... [19:14:27]Read from MH i2c: E2 17 00 [19:14:27]MH_I2C_Read... [19:14:27]Read from MH i2c: E2 17 00 65 BA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E6 [19:14:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:14:27]wFMCommunicate OK [19:14:27]CreateOFDProtocolMessage done [19:14:27]OFDSenderStorePacket 260879 [19:14:27]StoreOFDPacket docnum=260879 [19:14:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 D0 09 07 01 89 B2 5A 03 01 00 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 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 01 00 00 F4 03 04 00 17 48 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0F FB 03 00 35 04 06 00 54 FE 91 55 35 E4 E0 E5 A1 12 A3 AB B5 20 [19:14:27]CheckFolder [19:14:27]dirname=/storage/ofd_packets [19:14:27]CheckFolder done [19:14:27]ProducePacketName [19:14:27]name=ofd_packets/00260879 [19:14:27]NVStorageSaveData ofd_packets/00260879 [19:14:27]File name is /storage/ofd_packets/00260879 [19:14:27]Write 301 bytes [19:14:27]NVStorageSaveData done [19:14:27]OFDSenderStorePacket done [19:14:27]KKMCreateOFDPacket done [19:14:27]NVStorageSaveData kkm_last_timestamp [19:14:27]File name is /storage/kkm_last_timestamp [19:14:27]Write 4 bytes [19:14:27]NVStorageSaveData done [19:14:27]ExternCall_PrintAddStr [19:14:27]wPrintStart [19:14:27]Write to MH i2c: 01 00 00 66 BA 20 [19:14:27]Write i2c OK [19:14:27]MH_I2C_Read... [19:14:27]Read from MH i2c: 01 [19:14:27]MH_I2C_Read... [19:14:27]Read from MH i2c: 01 07 00 [19:14:27]MH_I2C_Read... [19:14:27]Read from MH i2c: 01 07 00 66 BA 00 00 00 00 00 FF 0F 35 [19:14:27]RasterBufferAndPrint [19:14:27]line Счет N : (1)1036429 [19:14:27]line ИНН: 02508201610067 [19:14:27]line Контрольно-Кассовый Чек [19:14:27]line ПРОДАЖА [19:14:27]line ТРК (МРК, ГНК) : 13 [19:14:27]line Товар: 2710124500 [19:14:27]line Аи-95-К-5 [19:14:27]line 30.000 * 0.00 [19:14:27]line = 0.00 [19:14:27]line НДС 12% НСП 1% [19:14:27]line > о реализуемом товаре [19:14:27]line ИТОГО: 0.00 [19:14:27]line НСП 1% : 0.00 [19:14:27]line НДС 12% : 0.00 [19:14:27]line Наличными: 0.00 [19:14:27]line Безнал.: 0.00 [19:14:27]line Место: АЗС № 94 "Партнер Нефть" [19:14:27]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [19:14:27]line СНО: Общий режим [19:14:27]line Чек 437 18.08.2024 19:14 [19:14:27]line Смена: 449 ФФД: 1.0 [19:14:27]line ЗНМ: 0300000099 [19:14:28]line РНМ: 0000000000091865 [19:14:28]line Версия ККМ: 001 [19:14:28]line Талоны: Топливная Карта [19:14:28]line 65682 [19:14:28]line ФМ: 0000000000871820 [19:14:28]line ФД: 260879 [19:14:28]line ФПД: 93452336707044 [19:14:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T191431&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260879&fm=93452336707044&tin=02508201610067®Number=0000000000091865&sum=0 [19:14:28]OFD Sender: Processing packet 260879 [packets to send 192, broken 191] [19:14:28]ProducePacketName [19:14:28]name=ofd_packets/00260879 [19:14:28]OFD Sender: To server: pG, [19:14:28]CommunicateWithHost lk.salyk.kg:30040 [19:14:28]ConnectInit lk.salyk.kg [19:14:28]written 0, free lines is 4095 [19:14:28]Connected sock=10 [19:14:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 D0 09 07 01 89 B2 5A 03 01 00 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 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 01 00 00 F4 03 04 00 17 48 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 0F FB 03 00 35 04 06 00 54 FE 91 55 35 E4 E0 E5 A1 12 A3 AB B5 20 [19:14: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 30 4F 00 00 00 08 35 47 00 A8 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 30 10 04 04 00 0F FB 03 00 F4 03 04 00 6C F1 C1 66 B6 04 01 00 00 D0 5F 52 40 FD 18 14 84 [19:14:28]CommunicateWithHost err = 0 [19:14:28]CheckOFDResponse [19:14:28]1017 (14) - 77093643461234 [19:14:28]1041 (16) - 0000000000871820 [19:14:28]1040 (4) - 260879 [19:14:28]1012 (4) - 18.08.2024 13:04 [19:14:28]1206 (1) - 0 [19:14:28]OFD Sender: Remove packet 260879 [19:14:28]ProducePacketName [19:14:28]name=ofd_packets/00260879 [19:14:28]NVStorageDeleteData [19:14:28]Write to MH i2c: 01 00 00 90 BA 4A [19:14:28]Write i2c OK [19:14:28]MH_I2C_Read... [19:14:28]Read from MH i2c: 01 [19:14:28]MH_I2C_Read... [19:14:28]Read from MH i2c: 01 07 00 [19:14:28]MH_I2C_Read... [19:14:28]Read from MH i2c: 01 07 00 90 BA 00 00 00 00 00 A0 0C FD [19:14:28]RasterBufferAndPrint [19:14:28]line [19:14:28]line [19:14:28]line [19:14:28]line [19:14:28]line [19:14:28]written 0, free lines is 3237 [19:14:28]MH_Cut [19:14:28]Write to MH i2c: D1 01 00 97 BA 01 23 [19:14:28]Write i2c OK [19:14:28]MH_I2C_Read... [19:14:28]Read from MH i2c: D1 [19:14:28]MH_I2C_Read... [19:14:28]Read from MH i2c: D1 01 00 [19:14:28]MH_I2C_Read... [19:14:28]Read from MH i2c: D1 01 00 97 BA 00 22 [19:14:28]Write to MH i2c: 01 00 00 98 BA 52 [19:14:28]Write i2c OK [19:14:28]MH_I2C_Read... [19:14:28]OFD Sender: No OFD packet to send [19:14:29]*** Cut start [19:14:29]*** Purtial cut [19:14:29]*** Stage 1: CUTSNS_PIN = 1 [19:14:31]Read from MH i2c: 01 [19:14:31]MH_I2C_Read... [19:14:31]*** Stop cut motor [19:14:31]*** Cut end [19:14:31]Read from MH i2c: 01 07 00 [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: 01 07 00 98 BA 00 00 00 00 00 FF 0F 67 [19:14:31]process_action close_receipt done [19:14:31]requested_data is exist [19:14:31]produce_requested_data [19:14:31]requested_item fm.sn is exist - process it [19:14:31]wFMCommunicate request_size=4 [19:14:31]MH_SAM_APDU [19:14:31]CAPDU: 80 11 00 00 [19:14:31]Write to MH i2c: E2 08 00 99 BA 80 11 00 00 00 00 00 00 CD [19:14:31]Write i2c OK [19:14:31]MH_I2C_Read... [19:14:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:31]Read from MH i2c: E2 [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: E2 17 00 [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: E2 17 00 99 BA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 1A [19:14:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:14:31]wFMCommunicate OK [19:14:31]requested_item fd.num is exist - process it [19:14:31]SAM_PROTO_GetFieldsCounters [19:14:31]wFMCommunicate request_size=4 [19:14:31]MH_SAM_APDU [19:14:31]CAPDU: 80 13 00 00 [19:14:31]Write to MH i2c: E2 08 00 9A BA 80 13 00 00 00 00 00 00 D0 [19:14:31]Write i2c OK [19:14:31]MH_I2C_Read... [19:14:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:14:31]Read from MH i2c: E2 [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: E2 62 00 [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: E2 62 00 9A BA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 0F FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B5 01 00 00 5E 04 04 00 B5 01 00 00 57 04 04 00 B6 01 00 00 19 04 04 00 00 00 00 00 90 00 E0 [19:14:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 0F FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B5 01 00 00 5E 04 04 00 B5 01 00 00 57 04 04 00 B6 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:14:31]wFMCommunicate OK [19:14:31]SAM_PROTO_GetFieldsCounters done [19:14:31]requested_item shift.num is exist - process it [19:14:31]requested_item shift.opened is exist - process it [19:14:31]req_shift_opened [19:14:31]FM_GetShiftState [19:14:31]SAM_PROTO_GetShiftState [19:14:31]wFMCommunicate request_size=4 [19:14:31]MH_SAM_APDU [19:14:31]CAPDU: 80 13 01 00 [19:14:31]Write to MH i2c: E2 08 00 9B BA 80 13 01 00 00 00 00 00 D2 [19:14:31]Write i2c OK [19:14:31]MH_I2C_Read... [19:14:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:31]Read from MH i2c: E2 [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: E2 0E 00 [19:14:31]MH_I2C_Read... [19:14:31]Read from MH i2c: E2 0E 00 9B BA 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 0F [19:14:31]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:14:31]wFMCommunicate OK [19:14:31]SAM_PROTO_GetShiftState done [19:14:31]FM_GetShiftState done [19:14:31]req_shift_opened done [19:14:31]requested_item shift.open_date is exist - process it [19:14:31]req_shift_open_date [19:14:31]req_shift_open_date done [19:14:31]produce_requested_data done [19:14:31]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260879,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [19:14:31]process_action_free close_receipt [19:14:31]json_value_free [19:14:31]json_value_free done [19:14:31]process_json_proto returns [19:14:31]Send response to host [19:14:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260879,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [19:14:31]free response buf [19:14:31]execute_script done [19:14:31]execute_script returns [19:14:31]free content buf [19:14:31]Sock 9.Close socket [19:14:31]Sock 9.Thread stoped [19:14:33]int [19:14:33]Write to MH i2c: 01 00 00 9C BA 56 [19:14:33]*** FLAG_PRN_PAP1 set [19:14:33]Write i2c OK [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: 01 [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: 01 07 00 [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: 01 07 00 9C BA 00 01 00 00 00 FF 0F 6C [19:14:33]state=0 [19:14:33]No paper [19:14:33]int [19:14:33]Write to MH i2c: 01 00 00 9D BA 57 [19:14:33]*** FLAG_PRN_PAP2 set [19:14:33]Write i2c OK [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: 01 [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: 01 07 00 [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: 01 07 00 9D BA 00 03 00 00 00 FF 0F 6F [19:14:33]state=0 [19:14:33]No paper [19:14:33]Cover opened [19:14:33]OFD Sender: No OFD packet to send [19:14:33]int [19:14:33]Write to MH i2c: 01 00 00 9E BA 58 [19:14:33]*** FLAG_PRN_PAP2 reset [19:14:33]Write i2c OK [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: 01 [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: 01 07 00 [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: 01 07 00 9E BA 00 01 00 00 00 FF 0F 6E [19:14:33]state=3 [19:14:33]No paper [19:14:33]Cover closed [19:14:33]int [19:14:33]Write to MH i2c: 01 00 00 9F BA 59 [19:14:33]*** FLAG_PRN_PAP2 set [19:14:33]Write i2c OK [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: 01 [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: 01 07 00 [19:14:33]MH_I2C_Read... [19:14:33]Read from MH i2c: 01 07 00 9F BA 00 03 00 00 00 FF 0F 71 [19:14:33]state=0 [19:14:33]No paper [19:14:33]Cover opened [19:14:34]int [19:14:34]Write to MH i2c: 01 00 00 A0 BA 5A [19:14:34]*** FLAG_PRN_PAP2 reset [19:14:34]Write i2c OK [19:14:34]MH_I2C_Read... [19:14:34]Read from MH i2c: 01 [19:14:34]MH_I2C_Read... [19:14:34]Read from MH i2c: 01 07 00 [19:14:34]MH_I2C_Read... [19:14:34]Read from MH i2c: 01 07 00 A0 BA 00 01 00 00 00 FF 0F 70 [19:14:34]state=3 [19:14:34]No paper [19:14:34]Cover closed [19:14:34]int [19:14:34]Write to MH i2c: 01 00 00 A1 BA 5B [19:14:34]*** FLAG_PRN_PAP2 set [19:14:34]Write i2c OK [19:14:34]MH_I2C_Read... [19:14:34]Read from MH i2c: 01 [19:14:34]MH_I2C_Read... [19:14:34]Read from MH i2c: 01 07 00 [19:14:34]MH_I2C_Read... [19:14:34]Read from MH i2c: 01 07 00 A1 BA 00 03 00 00 00 FF 0F 73 [19:14:34]state=0 [19:14:34]No paper [19:14:34]Cover opened [19:14:34]int [19:14:34]Write to MH i2c: 01 00 00 A2 BA 5C [19:14:34]*** FLAG_PRN_PAP2 reset [19:14:34]Write i2c OK [19:14:34]MH_I2C_Read... [19:14:34]Read from MH i2c: 01 [19:14:34]MH_I2C_Read... [19:14:34]Read from MH i2c: 01 07 00 [19:14:34]MH_I2C_Read... [19:14:34]Read from MH i2c: 01 07 00 A2 BA 00 01 00 00 00 FF 0F 72 [19:14:34]state=3 [19:14:34]No paper [19:14:34]Cover closed [19:14:35]int [19:14:35]Write to MH i2c: 01 00 00 A3 BA 5D [19:14:35]*** FLAG_PRN_PAP2 set [19:14:35]Write i2c OK [19:14:35]MH_I2C_Read... [19:14:35]Read from MH i2c: 01 [19:14:35]MH_I2C_Read... [19:14:35]Read from MH i2c: 01 07 00 [19:14:35]MH_I2C_Read... [19:14:35]Read from MH i2c: 01 07 00 A3 BA 00 03 00 00 00 FF 0F 75 [19:14:35]state=0 [19:14:35]No paper [19:14:35]Cover opened [19:14:38]OFD Sender: No OFD packet to send [19:14:40]Write to MH i2c: 01 00 00 A4 BA 5E [19:14:40]Write i2c OK [19:14:40]MH_I2C_Read... [19:14:40]Read from MH i2c: 01 [19:14:40]MH_I2C_Read... [19:14:40]Read from MH i2c: 01 07 00 [19:14:40]MH_I2C_Read... [19:14:40]Read from MH i2c: 01 07 00 A4 BA 00 03 00 00 00 FF 0F 76 [19:14:40]state=3 [19:14:40]No paper [19:14:40]Cover opened [19:14:41]int [19:14:41]Write to MH i2c: 01 00 00 A5 BA 5F [19:14:41]*** FLAG_PRN_PAP1 reset [19:14:41]*** FLAG_PRN_PAP2 reset [19:14:41]Write i2c OK [19:14:41]MH_I2C_Read... [19:14:41]Read from MH i2c: 01 [19:14:41]MH_I2C_Read... [19:14:41]Read from MH i2c: 01 07 00 [19:14:41]MH_I2C_Read... [19:14:41]Read from MH i2c: 01 07 00 A5 BA 00 00 00 00 00 FF 0F 74 [19:14:41]state=3 [19:14:41]Cover closed [19:14:43]OFD Sender: No OFD packet to send [19:14:48]OFD Sender: No OFD packet to send [19:14:53]OFD Sender: No OFD packet to send [19:14:58]OFD Sender: No OFD packet to send [19:15:03]OFD Sender: No OFD packet to send [19:15:08]OFD Sender: No OFD packet to send [19:15:13]OFD Sender: No OFD packet to send [19:15:18]OFD Sender: No OFD packet to send [19:15:23]OFD Sender: No OFD packet to send [19:15:28]OFD Sender: No OFD packet to send [19:15:33]OFD Sender: No OFD packet to send [19:15:38]OFD Sender: No OFD packet to send [19:15:43]OFD Sender: No OFD packet to send [19:15:48]OFD Sender: No OFD packet to send [19:15:53]OFD Sender: No OFD packet to send [19:15:58]OFD Sender: No OFD packet to send [19:16:04]OFD Sender: No OFD packet to send [19:16:09]OFD Sender: No OFD packet to send [19:16:14]OFD Sender: No OFD packet to send [19:16:19]OFD Sender: No OFD packet to send [19:16:24]OFD Sender: No OFD packet to send [19:16:29]OFD Sender: No OFD packet to send [19:16:34]OFD Sender: No OFD packet to send [19:16:39]OFD Sender: No OFD packet to send [19:16:44]OFD Sender: No OFD packet to send [19:16:49]OFD Sender: No OFD packet to send [19:16:54]OFD Sender: No OFD packet to send [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:29]OFD Sender: No OFD packet to send [19:17:34]OFD Sender: No OFD packet to send [19:17:39]OFD Sender: No OFD packet to send [19:17:44]OFD Sender: No OFD packet to send [19:17:49]OFD Sender: No OFD packet to send [19:17:54]OFD Sender: No OFD packet to send [19:17:59]OFD Sender: No OFD packet to send [19:18:04]OFD Sender: No OFD packet to send [19:18:09]OFD Sender: No OFD packet to send [19:18:14]OFD Sender: No OFD packet to send [19:18:19]OFD Sender: No OFD packet to send [19:18:24]OFD Sender: No OFD packet to send [19:18:29]OFD Sender: No OFD packet to send [19:18:34]OFD Sender: No OFD packet to send [19:18:39]OFD Sender: No OFD packet to send [19:18:44]OFD Sender: No OFD packet to send [19:18:49]OFD Sender: No OFD packet to send [19:18:54]OFD Sender: No OFD packet to send [19:18:59]OFD Sender: No OFD packet to send [19:19:04]OFD Sender: No OFD packet to send [19:19:09]OFD Sender: No OFD packet to send [19:19:14]OFD Sender: No OFD packet to send [19:19:19]OFD Sender: No OFD packet to send [19:19:24]OFD Sender: No OFD packet to send [19:19:29]OFD Sender: No OFD packet to send [19:19:34]OFD Sender: No OFD packet to send [19:19:39]OFD Sender: No OFD packet to send [19:19:44]OFD Sender: No OFD packet to send [19:19:49]OFD Sender: No OFD packet to send [19:19:54]OFD Sender: No OFD packet to send [19:19:59]OFD Sender: No OFD packet to send [19:20:04]OFD Sender: No OFD packet to send [19:20:09]OFD Sender: No OFD packet to send [19:20:14]OFD Sender: No OFD packet to send [19:20:19]OFD Sender: No OFD packet to send [19:20:24]OFD Sender: No OFD packet to send [19:20:29]OFD Sender: No OFD packet to send [19:20:34]OFD Sender: No OFD packet to send [19:20:39]OFD Sender: No OFD packet to send [19:20:44]OFD Sender: No OFD packet to send [19:20:49]OFD Sender: No OFD packet to send [19:20:54]OFD Sender: No OFD packet to send [19:20:59]OFD Sender: No OFD packet to send [19:21:04]OFD Sender: No OFD packet to send [19:21:09]OFD Sender: No OFD packet to send [19:21:14]OFD Sender: No OFD packet to send [19:21:19]OFD Sender: No OFD packet to send [19:21:19]accept exits with 7 [19:21:19]New connection [19:21:19]New thread 3066473828 created [19:21:19]Thread 3066617188 joined [19:21:19]Waiting for new connection... [19:21:19] Sock 7.Parse request [19:21:19]Sock 7.Check first char [19:21:19]Sock 7.First char is OK [19:21:19]request: POST /json_proto HTTP/1.0 [19:21:19]Method: POST [19:21:19]URL: /json_proto [19:21:19]Method is POST - this is cgi request [19:21:19]url: /json_proto [19:21:19]query_string will be loaded in cgi processing [19:21:19]execute_cgi json_proto POST (null) [19:21:19]execute_cgi path=json_proto method=POST [19:21:19]POST find Content-Length [19:21:19]Host: 172.17.55.133:8080 [19:21:19]Content-Length: 755 [19:21:19]Content-Type: application/json [19:21:19] [19:21:19]POST finish read [19:21:19]Found Content-Length = 755 [19:21:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 45.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\u000A30068300", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:19]execute_script... [19:21:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 45.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\u000A30068300", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:19]POST & json_proto [19:21:19]process_json_proto [19:21:19]json parsed OK: [19:21:19]protocol is kg_v1.0 [19:21:19]action value=close_receipt [19:21:19]process_action close_receipt [19:21:19]cmd_close_receipt [19:21:19]MH_GetDate [19:21:19]Write to MH i2c: F0 00 00 A6 BA 4F [19:21:19]Write i2c OK [19:21:19]MH_I2C_Read... [19:21:19]Read from MH i2c: F0 [19:21:19]MH_I2C_Read... [19:21:19]Read from MH i2c: F0 09 00 [19:21:19]MH_I2C_Read... [19:21:19]Read from MH i2c: F0 09 00 A6 BA 00 B6 49 C2 66 34 48 D8 65 38 [19:21:19]GetLastDocTimeStamp 1724008471 [19:21:19]current date 1724008886 [19:21:19]FM_GetShiftState [19:21:19]SAM_PROTO_GetShiftState [19:21:19]wFMCommunicate request_size=4 [19:21:19]MH_SAM_APDU [19:21:19]CAPDU: 80 13 01 00 [19:21:19]Write to MH i2c: E2 08 00 A7 BA 80 13 01 00 00 00 00 00 DE [19:21:19]Write i2c OK [19:21:19]MH_I2C_Read... [19:21:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:19]Read from MH i2c: E2 [19:21:19]MH_I2C_Read... [19:21:19]Read from MH i2c: E2 0E 00 [19:21:19]MH_I2C_Read... [19:21:19]Read from MH i2c: E2 0E 00 A7 BA 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 1B [19:21:19]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:21:19]wFMCommunicate OK [19:21:19]SAM_PROTO_GetShiftState done [19:21:19]FM_GetShiftState done [19:21:19]opened in 1723940556 [19:21:19]opened+sec_in_day 1724026956 [19:21:19]quantity*price = 0 [19:21:19]sum+1 = 1 [19:21:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 438 18.08.2024 19:21 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: ТК ГПНА Online 30068300 ФМ: 0000000000871820 ФД: 260880 ФПД: 35849906328866 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T192126&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260880&fm=35849906328866&tin=02508201610067®Number=0000000000091865&sum=0 [19:21:20]StoreToDocumentArchive [19:21:20]shift 449 fd 260880 [19:21:20]save to /storage/0449/doc_00260880 [19:21:20]save last doc name /storage/0449/doc_00260880 to /storage/kkm_last_doc_name [19:21:20]save OK [19:21:20]Clear old archive folders... [19:21:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:21:20]tlvbuf is 0036F3E0 [19:21:20]SAM_PROTO_ClearQueue [19:21:20]wFMCommunicate request_size=4 [19:21:20]MH_SAM_APDU [19:21:20]CAPDU: 80 09 00 00 [19:21:20]Write to MH i2c: E2 08 00 B4 BA 80 09 00 00 00 00 00 00 E0 [19:21:20]Write i2c OK [19:21:20]MH_I2C_Read... [19:21:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:21:21]Read from MH i2c: E2 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: E2 03 00 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: E2 03 00 B4 BA 00 90 00 E2 [19:21:21]RAPDU: 90 00 [19:21:21]wFMCommunicate OK [19:21:21]SAM_PROTO_ClearQueue done [19:21:21]KKMCreateOFDPacket [19:21:21]OFDProtocolAddRootSTLVToBuf [19:21:21]FM_MakeSignedData [19:21:21]FM_MakeSignedData [19:21:21]SAM_PROTO_SignData [19:21:21]wFMCommunicate request_size=4 [19:21:21]MH_SAM_APDU [19:21:21]CAPDU: 80 0D 01 02 [19:21:21]Write to MH i2c: E2 08 00 B5 BA 80 0D 01 02 00 00 00 00 E8 [19:21:21]Write i2c OK [19:21:21]MH_I2C_Read... [19:21:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:21:21]Read from MH i2c: E2 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: E2 03 00 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: E2 03 00 B5 BA 00 90 00 E3 [19:21:21]RAPDU: 90 00 [19:21:21]wFMCommunicate OK [19:21:21]wFMCommunicate request_size=255 [19:21:21]MH_SAM_APDU [19:21:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 AF 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 B6 01 00 00 F4 03 04 00 B6 49 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 10 FB 03 00 35 04 06 00 20 [19:21:21]Write to MH i2c: E2 02 01 B6 BA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 AF 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 B6 01 00 00 F4 03 04 00 B6 49 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 10 FB 03 00 35 04 06 00 20 00 00 35 [19:21:21]Write i2c OK [19:21:21]MH_I2C_Read... [19:21:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:21]Read from MH i2c: E2 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: E2 03 00 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: E2 03 00 B6 BA 00 90 00 E4 [19:21:21]RAPDU: 90 00 [19:21:21]wFMCommunicate OK [19:21:21]wFMCommunicate request_size=10 [19:21:21]MH_SAM_APDU [19:21:21]CAPDU: 80 0D 02 02 05 9A F4 EE 95 22 [19:21:21]Write to MH i2c: E2 0D 00 B7 BA 80 0D 02 02 05 00 9A F4 EE 95 22 00 00 28 [19:21:21]Write i2c OK [19:21:21]MH_I2C_Read... [19:21:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:21]Read from MH i2c: E2 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: E2 03 00 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: E2 03 00 B7 BA 00 90 00 E5 [19:21:21]RAPDU: 90 00 [19:21:21]wFMCommunicate OK [19:21:21]wFMCommunicate request_size=4 [19:21:21]MH_SAM_APDU [19:21:21]CAPDU: 80 0D 03 02 [19:21:21]Write to MH i2c: E2 08 00 B8 BA 80 0D 03 02 00 00 00 00 ED [19:21:21]Write i2c OK [19:21:21]MH_I2C_Read... [19:21:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:21:21]Read from MH i2c: E2 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: E2 0B 00 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: E2 0B 00 B8 BA 00 F7 90 D7 F6 7A 30 65 C8 90 00 19 [19:21:21]RAPDU: F7 90 D7 F6 7A 30 65 C8 90 00 [19:21:21]wFMCommunicate OK [19:21:21]SAM_PROTO_SignData done [19:21:21]FM_MakeSignedData done [19:21:21]CreateOFDProtocolMessage [19:21:21]wFMCommunicate request_size=4 [19:21:21]MH_SAM_APDU [19:21:21]CAPDU: 80 11 00 00 [19:21:21]Write to MH i2c: E2 08 00 B9 BA 80 11 00 00 00 00 00 00 ED [19:21:21]Write i2c OK [19:21:21]MH_I2C_Read... [19:21:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:21]Read from MH i2c: E2 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: E2 17 00 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: E2 17 00 B9 BA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 3A [19:21:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:21:21]wFMCommunicate OK [19:21:21]CreateOFDProtocolMessage done [19:21:21]OFDSenderStorePacket 260880 [19:21:21]StoreOFDPacket docnum=260880 [19:21:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 D6 A3 07 01 E4 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 AF 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 B6 01 00 00 F4 03 04 00 B6 49 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 10 FB 03 00 35 04 06 00 20 9A F4 EE 95 22 F7 90 D7 F6 7A 30 65 C8 [19:21:21]CheckFolder [19:21:21]dirname=/storage/ofd_packets [19:21:21]CheckFolder done [19:21:21]ProducePacketName [19:21:21]name=ofd_packets/00260880 [19:21:21]NVStorageSaveData ofd_packets/00260880 [19:21:21]File name is /storage/ofd_packets/00260880 [19:21:21]Write 301 bytes [19:21:21]NVStorageSaveData done [19:21:21]OFDSenderStorePacket done [19:21:21]KKMCreateOFDPacket done [19:21:21]NVStorageSaveData kkm_last_timestamp [19:21:21]File name is /storage/kkm_last_timestamp [19:21:21]OFD Sender: Processing packet 260880 [packets to send 192, broken 191] [19:21:21]ProducePacketName [19:21:21]name=ofd_packets/00260880 [19:21:21]OFD Sender: To server: pG, [19:21:21]CommunicateWithHost lk.salyk.kg:30040 [19:21:21]ConnectInit lk.salyk.kg [19:21:21]Write 4 bytes [19:21:21]NVStorageSaveData done [19:21:21]ExternCall_PrintAddStr [19:21:21]wPrintStart [19:21:21]Write to MH i2c: 01 00 00 BA BA 74 [19:21:21]Write i2c OK [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: 01 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: 01 07 00 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: 01 07 00 BA BA 00 00 00 00 00 FF 0F 89 [19:21:21]RasterBufferAndPrint [19:21:21]line Счет N : (1)1036432 [19:21:21]line ИНН: 02508201610067 [19:21:21]line Контрольно-Кассовый Чек [19:21:21]line ПРОДАЖА [19:21:21]line ТРК (МРК, ГНК) : 12 [19:21:21]line Товар: 2710124130 [19:21:21]line Аи-92-К-5 [19:21:21]line 45.000 * 0.00 [19:21:21]line = 0.00 [19:21:21]line НДС 12% НСП 1% [19:21:21]line > о реализуемом товаре [19:21:21]line ИТОГО: 0.00 [19:21:21]line НСП 1% : 0.00 [19:21:21]line НДС 12% : 0.00 [19:21:21]line Наличными: 0.00 [19:21:21]line Безнал.: 0.00 [19:21:21]line Место: АЗС № 94 "Партнер Нефть" [19:21:21]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [19:21:21]line СНО: Общий режим [19:21:21]line Чек 438 18.08.2024 19:21 [19:21:21]line Смена: 449 ФФД: 1.0 [19:21:21]line ЗНМ: 0300000099 [19:21:21]line РНМ: 0000000000091865 [19:21:21]line Версия ККМ: 001 [19:21:21]line Талоны: ТК ГПНА Online [19:21:21]line 30068300 [19:21:21]line ФМ: 0000000000871820 [19:21:21]line ФД: 260880 [19:21:21]line ФПД: 35849906328866 [19:21:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T192126&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260880&fm=35849906328866&tin=02508201610067®Number=0000000000091865&sum=0 [19:21:21]Connected sock=11 [19:21: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 30 0F 01 00 00 D6 A3 07 01 E4 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 AF 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 B6 01 00 00 F4 03 04 00 B6 49 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 10 FB 03 00 35 04 06 00 20 9A F4 EE 95 22 F7 90 D7 F6 7A 30 65 C8 [19:21:21]written 0, free lines is 4095 [19:21: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 30 4F 00 00 00 62 D2 47 00 C9 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 30 10 04 04 00 10 FB 03 00 F4 03 04 00 0A F3 C1 66 B6 04 01 00 00 D8 26 F0 A9 9B DE 31 8D [19:21:22]CommunicateWithHost err = 0 [19:21:22]CheckOFDResponse [19:21:22]1017 (14) - 77093643461234 [19:21:22]1041 (16) - 0000000000871820 [19:21:22]1040 (4) - 260880 [19:21:22]1012 (4) - 18.08.2024 13:11 [19:21:22]1206 (1) - 0 [19:21:22]OFD Sender: Remove packet 260880 [19:21:22]ProducePacketName [19:21:22]name=ofd_packets/00260880 [19:21:22]NVStorageDeleteData [19:21:22]Write to MH i2c: 01 00 00 E4 BA 9E [19:21:22]Write i2c OK [19:21:22]MH_I2C_Read... [19:21:22]Read from MH i2c: 01 [19:21:22]MH_I2C_Read... [19:21:22]Read from MH i2c: 01 07 00 [19:21:22]MH_I2C_Read... [19:21:22]Read from MH i2c: 01 07 00 E4 BA 00 00 00 00 00 92 0C 43 [19:21:22]RasterBufferAndPrint [19:21:22]line [19:21:22]line [19:21:22]line [19:21:22]line [19:21:22]line [19:21:22]written 0, free lines is 3223 [19:21:22]MH_Cut [19:21:22]Write to MH i2c: D1 01 00 EB BA 01 77 [19:21:22]Write i2c OK [19:21:22]MH_I2C_Read... [19:21:22]Read from MH i2c: D1 [19:21:22]MH_I2C_Read... [19:21:22]Read from MH i2c: D1 01 00 [19:21:22]MH_I2C_Read... [19:21:22]Read from MH i2c: D1 01 00 EB BA 00 76 [19:21:22]Write to MH i2c: 01 00 00 EC BA A6 [19:21:22]Write i2c OK [19:21:22]MH_I2C_Read... [19:21:22]OFD Sender: No OFD packet to send [19:21:23]*** Cut start [19:21:23]*** Purtial cut [19:21:23]*** Stage 1: CUTSNS_PIN = 1 [19:21:25]Read from MH i2c: 01 [19:21:25]MH_I2C_Read... [19:21:25]*** Stop cut motor [19:21:25]*** Cut end [19:21:25]Read from MH i2c: 01 07 00 [19:21:25]MH_I2C_Read... [19:21:25]Read from MH i2c: 01 07 00 EC BA 00 00 00 00 00 FF 0F BB [19:21:25]process_action close_receipt done [19:21:25]requested_data is exist [19:21:25]produce_requested_data [19:21:25]requested_item fm.sn is exist - process it [19:21:25]wFMCommunicate request_size=4 [19:21:25]MH_SAM_APDU [19:21:25]CAPDU: 80 11 00 00 [19:21:25]Write to MH i2c: E2 08 00 ED BA 80 11 00 00 00 00 00 00 21 [19:21:25]Write i2c OK [19:21:25]MH_I2C_Read... [19:21:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:25]Read from MH i2c: E2 [19:21:25]MH_I2C_Read... [19:21:25]Read from MH i2c: E2 17 00 [19:21:25]MH_I2C_Read... [19:21:25]Read from MH i2c: E2 17 00 ED BA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 6E [19:21:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:21:25]wFMCommunicate OK [19:21:25]requested_item fd.num is exist - process it [19:21:25]SAM_PROTO_GetFieldsCounters [19:21:25]wFMCommunicate request_size=4 [19:21:25]MH_SAM_APDU [19:21:25]CAPDU: 80 13 00 00 [19:21:25]Write to MH i2c: E2 08 00 EE BA 80 13 00 00 00 00 00 00 24 [19:21:25]Write i2c OK [19:21:25]MH_I2C_Read... [19:21:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:21:25]Read from MH i2c: E2 [19:21:25]MH_I2C_Read... [19:21:25]Read from MH i2c: E2 62 00 [19:21:25]MH_I2C_Read... [19:21:25]Read from MH i2c: E2 62 00 EE BA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 10 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B6 01 00 00 5E 04 04 00 B6 01 00 00 57 04 04 00 B7 01 00 00 19 04 04 00 00 00 00 00 90 00 38 [19:21:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 10 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B6 01 00 00 5E 04 04 00 B6 01 00 00 57 04 04 00 B7 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:21:25]wFMCommunicate OK [19:21:25]SAM_PROTO_GetFieldsCounters done [19:21:25]requested_item shift.num is exist - process it [19:21:25]requested_item shift.opened is exist - process it [19:21:25]req_shift_opened [19:21:25]FM_GetShiftState [19:21:25]SAM_PROTO_GetShiftState [19:21:25]wFMCommunicate request_size=4 [19:21:25]MH_SAM_APDU [19:21:25]CAPDU: 80 13 01 00 [19:21:25]Write to MH i2c: E2 08 00 EF BA 80 13 01 00 00 00 00 00 26 [19:21:25]Write i2c OK [19:21:25]MH_I2C_Read... [19:21:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:25]Read from MH i2c: E2 [19:21:25]MH_I2C_Read... [19:21:25]Read from MH i2c: E2 0E 00 [19:21:25]MH_I2C_Read... [19:21:25]Read from MH i2c: E2 0E 00 EF BA 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 63 [19:21:25]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:21:25]wFMCommunicate OK [19:21:25]SAM_PROTO_GetShiftState done [19:21:25]FM_GetShiftState done [19:21:25]req_shift_opened done [19:21:25]requested_item shift.open_date is exist - process it [19:21:25]req_shift_open_date [19:21:25]req_shift_open_date done [19:21:25]produce_requested_data done [19:21:25]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260880,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [19:21:25]process_action_free close_receipt [19:21:25]json_value_free [19:21:25]json_value_free done [19:21:25]process_json_proto returns [19:21:25]Send response to host [19:21:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260880,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [19:21:25]free response buf [19:21:25]execute_script done [19:21:25]execute_script returns [19:21:25]free content buf [19:21:25]Sock 7.Close socket [19:21:25]Sock 7.Thread stoped [19:21:27]OFD Sender: No OFD packet to send [19:21:32]OFD Sender: No OFD packet to send [19:21:37]OFD Sender: No OFD packet to send [19:21:42]OFD Sender: No OFD packet to send [19:21:42]accept exits with 9 [19:21:42]New connection [19:21:42]New thread 3066617188 created [19:21:42]Thread 3066473828 joined [19:21:42]Waiting for new connection... [19:21:42] Sock 9.Parse request [19:21:42]Sock 9.Check first char [19:21:42]Sock 9.First char is OK [19:21:42]request: POST /json_proto HTTP/1.0 [19:21:42]Method: POST [19:21:42]URL: /json_proto [19:21:42]Method is POST - this is cgi request [19:21:42]url: /json_proto [19:21:42]query_string will be loaded in cgi processing [19:21:42]execute_cgi json_proto POST (null) [19:21:42]execute_cgi path=json_proto method=POST [19:21:42]POST find Content-Length [19:21:42]Host: 172.17.55.133:8080 [19:21:42]Content-Length: 678 [19:21:42]Content-Type: application/json [19:21:42] [19:21:42]POST finish read [19:21:42]Found Content-Length = 678 [19:21:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.560, "sum" : 580.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 580.00, "total" : 580.00, "payments": [ { "type": 0, "sum" : 580.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:42]execute_script... [19:21:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.560, "sum" : 580.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 580.00, "total" : 580.00, "payments": [ { "type": 0, "sum" : 580.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:42]POST & json_proto [19:21:42]process_json_proto [19:21:42]json parsed OK: [19:21:42]protocol is kg_v1.0 [19:21:42]action value=close_receipt [19:21:42]process_action close_receipt [19:21:42]cmd_close_receipt [19:21:42]MH_GetDate [19:21:42]Write to MH i2c: F0 00 00 F0 BA 99 [19:21:42]Write i2c OK [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: F0 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: F0 09 00 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: F0 09 00 F0 BA 00 CD 49 C2 66 34 48 D8 65 99 [19:21:42]GetLastDocTimeStamp 1724008886 [19:21:42]current date 1724008909 [19:21:42]FM_GetShiftState [19:21:42]SAM_PROTO_GetShiftState [19:21:42]wFMCommunicate request_size=4 [19:21:42]MH_SAM_APDU [19:21:42]CAPDU: 80 13 01 00 [19:21:42]Write to MH i2c: E2 08 00 F1 BA 80 13 01 00 00 00 00 00 28 [19:21:42]Write i2c OK [19:21:42]MH_I2C_Read... [19:21:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:42]Read from MH i2c: E2 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: E2 0E 00 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: E2 0E 00 F1 BA 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 65 [19:21:42]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:21:42]wFMCommunicate OK [19:21:42]SAM_PROTO_GetShiftState done [19:21:42]FM_GetShiftState done [19:21:42]opened in 1723940556 [19:21:42]opened+sec_in_day 1724026956 [19:21:42]quantity*price = 58036 [19:21:42]sum+1 = 58038 [19:21:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 580.00 Внесено: 580.00 СДАЧА: 0.00 НСП 1% : 5.14 НДС 12% : 61.63 Наличными: 580.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 439 18.08.2024 19:21 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260881 ФПД: 27116656521160 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T192149&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260881&fm=27116656521160&tin=02508201610067®Number=0000000000091865&sum=58000 [19:21:43]StoreToDocumentArchive [19:21:43]shift 449 fd 260881 [19:21:43]save to /storage/0449/doc_00260881 [19:21:43]save last doc name /storage/0449/doc_00260881 to /storage/kkm_last_doc_name [19:21:43]save OK [19:21:43]Clear old archive folders... [19:21:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:21:43]tlvbuf is 003E30B0 [19:21:43]SAM_PROTO_ClearQueue [19:21:43]wFMCommunicate request_size=4 [19:21:43]MH_SAM_APDU [19:21:43]CAPDU: 80 09 00 00 [19:21:43]Write to MH i2c: E2 08 00 FE BA 80 09 00 00 00 00 00 00 2A [19:21:43]Write i2c OK [19:21:43]MH_I2C_Read... [19:21:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:21:43]Read from MH i2c: E2 [19:21:43]MH_I2C_Read... [19:21:43]Read from MH i2c: E2 03 00 [19:21:43]MH_I2C_Read... [19:21:43]Read from MH i2c: E2 03 00 FE BA 00 90 00 2C [19:21:43]RAPDU: 90 00 [19:21:43]wFMCommunicate OK [19:21:43]SAM_PROTO_ClearQueue done [19:21:43]KKMCreateOFDPacket [19:21:43]OFDProtocolAddRootSTLVToBuf [19:21:43]FM_MakeSignedData [19:21:43]FM_MakeSignedData [19:21:43]SAM_PROTO_SignData [19:21:43]wFMCommunicate request_size=4 [19:21:43]MH_SAM_APDU [19:21:43]CAPDU: 80 0D 01 02 [19:21:43]Write to MH i2c: E2 08 00 FF BA 80 0D 01 02 00 00 00 00 32 [19:21:43]Write i2c OK [19:21:43]MH_I2C_Read... [19:21:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:21:43]Read from MH i2c: E2 [19:21:43]MH_I2C_Read... [19:21:43]Read from MH i2c: E2 03 00 [19:21:43]MH_I2C_Read... [19:21:43]Read from MH i2c: E2 03 00 FF BA 00 90 00 2D [19:21:43]RAPDU: 90 00 [19:21:43]wFMCommunicate OK [19:21:43]wFMCommunicate request_size=255 [19:21:43]MH_SAM_APDU [19:21:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 21 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B5 E2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 18 00 00 00 00 07 04 06 00 90 E2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 01 00 00 F4 03 04 00 CD 49 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 11 FB 03 00 35 04 06 00 18 [19:21:43]Write to MH i2c: E2 02 01 00 BB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 21 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B5 E2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 18 00 00 00 00 07 04 06 00 90 E2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 01 00 00 F4 03 04 00 CD 49 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 11 FB 03 00 35 04 06 00 18 00 00 EB [19:21:43]Write i2c OK [19:21:43]MH_I2C_Read... [19:21:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:44]Read from MH i2c: E2 [19:21:44]MH_I2C_Read... [19:21:44]Read from MH i2c: E2 03 00 [19:21:44]MH_I2C_Read... [19:21:44]Read from MH i2c: E2 03 00 00 BB 00 90 00 2F [19:21:44]RAPDU: 90 00 [19:21:44]wFMCommunicate OK [19:21:44]wFMCommunicate request_size=10 [19:21:44]MH_SAM_APDU [19:21:44]CAPDU: 80 0D 02 02 05 A9 96 AD EF C8 [19:21:44]Write to MH i2c: E2 0D 00 01 BB 80 0D 02 02 05 00 A9 96 AD EF C8 00 00 E3 [19:21:44]Write i2c OK [19:21:44]MH_I2C_Read... [19:21:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:44]Read from MH i2c: E2 [19:21:44]MH_I2C_Read... [19:21:44]Read from MH i2c: E2 03 00 [19:21:44]MH_I2C_Read... [19:21:44]Read from MH i2c: E2 03 00 01 BB 00 90 00 30 [19:21:44]RAPDU: 90 00 [19:21:44]wFMCommunicate OK [19:21:44]wFMCommunicate request_size=4 [19:21:44]MH_SAM_APDU [19:21:44]CAPDU: 80 0D 03 02 [19:21:44]Write to MH i2c: E2 08 00 02 BB 80 0D 03 02 00 00 00 00 38 [19:21:44]Write i2c OK [19:21:44]MH_I2C_Read... [19:21:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:21:44]Read from MH i2c: E2 [19:21:44]MH_I2C_Read... [19:21:44]Read from MH i2c: E2 0B 00 [19:21:44]MH_I2C_Read... [19:21:44]Read from MH i2c: E2 0B 00 02 BB 00 F8 6D A9 F5 EE FB D8 B0 90 00 AD [19:21:44]RAPDU: F8 6D A9 F5 EE FB D8 B0 90 00 [19:21:44]wFMCommunicate OK [19:21:44]SAM_PROTO_SignData done [19:21:44]FM_MakeSignedData done [19:21:44]CreateOFDProtocolMessage [19:21:44]wFMCommunicate request_size=4 [19:21:44]MH_SAM_APDU [19:21:44]CAPDU: 80 11 00 00 [19:21:44]Write to MH i2c: E2 08 00 03 BB 80 11 00 00 00 00 00 00 38 [19:21:44]Write i2c OK [19:21:44]MH_I2C_Read... [19:21:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:44]Read from MH i2c: E2 [19:21:44]MH_I2C_Read... [19:21:44]Read from MH i2c: E2 17 00 [19:21:44]MH_I2C_Read... [19:21:44]Read from MH i2c: E2 17 00 03 BB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 85 [19:21:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:21:44]wFMCommunicate OK [19:21:44]CreateOFDProtocolMessage done [19:21:44]OFDSenderStorePacket 260881 [19:21:44]StoreOFDPacket docnum=260881 [19:21:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 46 24 07 01 B3 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 21 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B5 E2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 18 00 00 00 00 07 04 06 00 90 E2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 01 00 00 F4 03 04 00 CD 49 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 11 FB 03 00 35 04 06 00 18 A9 96 AD EF C8 F8 6D A9 F5 EE FB D8 B0 [19:21:44]CheckFolder [19:21:44]dirname=/storage/ofd_packets [19:21:44]CheckFolder done [19:21:44]ProducePacketName [19:21:44]name=ofd_packets/00260881 [19:21:44]NVStorageSaveData ofd_packets/00260881 [19:21:44]File name is /storage/ofd_packets/00260881 [19:21:44]Write 301 bytes [19:21:44]NVStorageSaveData done [19:21:44]OFDSenderStorePacket done [19:21:44]KKMCreateOFDPacket done [19:21:44]NVStorageSaveData kkm_last_timestamp [19:21:44]File name is /storage/kkm_last_timestamp [19:21:44]Write 4 bytes [19:21:44]NVStorageSaveData done [19:21:44]ExternCall_PrintAddStr [19:21:44]wPrintStart [19:21:44]Write to MH i2c: 01 00 00 04 BB BF [19:21:44]Write i2c OK [19:21:44]MH_I2C_Read... [19:21:44]Read from MH i2c: 01 [19:21:44]MH_I2C_Read... [19:21:44]Read from MH i2c: 01 07 00 [19:21:44]MH_I2C_Read... [19:21:44]Read from MH i2c: 01 07 00 04 BB 00 00 00 00 00 FF 0F D4 [19:21:44]RasterBufferAndPrint [19:21:44]line Счет N : (1)1036433 [19:21:44]line ИНН: 02508201610067 [19:21:44]line Контрольно-Кассовый Чек [19:21:44]line ПРОДАЖА [19:21:44]line ТРК (МРК, ГНК) : 32 [19:21:44]line Товар: 2710124130 [19:21:44]line Аи-92-К-5 [19:21:44]line 8.560 * 67.80 [19:21:44]line = 580.37 [19:21:44]line НДС 12% НСП 1% [19:21:44]line > о реализуемом товаре [19:21:44]line ОКРУГЛЕНИЕ: -0.37 [19:21:44]line ИТОГО: 580.00 [19:21:44]line Внесено: 580.00 [19:21:44]line СДАЧА: 0.00 [19:21:44]line НСП 1% : 5.14 [19:21:44]line НДС 12% : 61.63 [19:21:44]line Наличными: 580.00 [19:21:44]line Безнал.: 0.00 [19:21:44]line Место: АЗС № 94 "Партнер Нефть" [19:21:44]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [19:21:44]line СНО: Общий режим [19:21:44]line Чек 439 18.08.2024 19:21 [19:21:44]line Смена: 449 ФФД: 1.0 [19:21:44]line ЗНМ: 0300000099 [19:21:44]line РНМ: 0000000000091865 [19:21:44]line Версия ККМ: 001 [19:21:44]line ФМ: 0000000000871820 [19:21:44]line ФД: 260881 [19:21:44]line ФПД: 27116656521160 [19:21:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T192149&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260881&fm=27116656521160&tin=02508201610067®Number=0000000000091865&sum=58000 [19:21:44]written 0, free lines is 4095 [19:21:44]OFD Sender: Processing packet 260881 [packets to send 192, broken 191] [19:21:44]ProducePacketName [19:21:44]name=ofd_packets/00260881 [19:21:44]OFD Sender: To server: pG, [19:21:44]CommunicateWithHost lk.salyk.kg:30040 [19:21:44]ConnectInit lk.salyk.kg [19:21:44]Connected sock=10 [19:21: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 30 0F 01 00 00 46 24 07 01 B3 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 21 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B5 E2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 18 00 00 00 00 07 04 06 00 90 E2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 01 00 00 F4 03 04 00 CD 49 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 11 FB 03 00 35 04 06 00 18 A9 96 AD EF C8 F8 6D A9 F5 EE FB D8 B0 [19:21: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 30 4F 00 00 00 5D 74 47 00 01 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 11 FB 03 00 F4 03 04 00 20 F3 C1 66 B6 04 01 00 00 C7 07 EF 54 F4 8C 0D 4B [19:21:44]CommunicateWithHost err = 0 [19:21:44]CheckOFDResponse [19:21:44]1017 (14) - 77093643461234 [19:21:44]1041 (16) - 0000000000871820 [19:21:44]1040 (4) - 260881 [19:21:44]1012 (4) - 18.08.2024 13:12 [19:21:44]1206 (1) - 0 [19:21:44]OFD Sender: Remove packet 260881 [19:21:44]ProducePacketName [19:21:44]name=ofd_packets/00260881 [19:21:44]NVStorageDeleteData [19:21:44]Write to MH i2c: 01 00 00 2F BB EA [19:21:44]Write i2c OK [19:21:44]MH_I2C_Read... [19:21:44]Read from MH i2c: 01 [19:21:44]MH_I2C_Read... [19:21:44]Read from MH i2c: 01 07 00 [19:21:44]MH_I2C_Read... [19:21:44]Read from MH i2c: 01 07 00 2F BB 00 00 00 00 00 73 0C 70 [19:21:44]RasterBufferAndPrint [19:21:44]line [19:21:44]line [19:21:44]line [19:21:44]line [19:21:44]line [19:21:44]written 0, free lines is 3190 [19:21:44]MH_Cut [19:21:44]Write to MH i2c: D1 01 00 36 BB 01 C3 [19:21:44]Write i2c OK [19:21:44]MH_I2C_Read... [19:21:44]Read from MH i2c: D1 [19:21:44]MH_I2C_Read... [19:21:44]Read from MH i2c: D1 01 00 [19:21:44]MH_I2C_Read... [19:21:44]Read from MH i2c: D1 01 00 36 BB 00 C2 [19:21:44]Write to MH i2c: 01 00 00 37 BB F2 [19:21:44]Write i2c OK [19:21:44]MH_I2C_Read... [19:21:45]OFD Sender: No OFD packet to send [19:21:45]*** Cut start [19:21:45]*** Purtial cut [19:21:45]*** Stage 1: CUTSNS_PIN = 1 [19:21:47]Read from MH i2c: 01 [19:21:48]MH_I2C_Read... [19:21:48]*** Stop cut motor [19:21:48]*** Cut end [19:21:48]Read from MH i2c: 01 07 00 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: 01 07 00 37 BB 00 00 00 00 00 FF 0F 07 [19:21:48]process_action close_receipt done [19:21:48]requested_data is exist [19:21:48]produce_requested_data [19:21:48]requested_item fm.sn is exist - process it [19:21:48]wFMCommunicate request_size=4 [19:21:48]MH_SAM_APDU [19:21:48]CAPDU: 80 11 00 00 [19:21:48]Write to MH i2c: E2 08 00 38 BB 80 11 00 00 00 00 00 00 6D [19:21:48]Write i2c OK [19:21:48]MH_I2C_Read... [19:21:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:48]Read from MH i2c: E2 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: E2 17 00 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: E2 17 00 38 BB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 BA [19:21:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:21:48]wFMCommunicate OK [19:21:48]requested_item fd.num is exist - process it [19:21:48]SAM_PROTO_GetFieldsCounters [19:21:48]wFMCommunicate request_size=4 [19:21:48]MH_SAM_APDU [19:21:48]CAPDU: 80 13 00 00 [19:21:48]Write to MH i2c: E2 08 00 39 BB 80 13 00 00 00 00 00 00 70 [19:21:48]Write i2c OK [19:21:48]MH_I2C_Read... [19:21:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:21:48]Read from MH i2c: E2 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: E2 62 00 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: E2 62 00 39 BB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 11 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B7 01 00 00 5E 04 04 00 B7 01 00 00 57 04 04 00 B8 01 00 00 19 04 04 00 00 00 00 00 90 00 88 [19:21: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 11 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B7 01 00 00 5E 04 04 00 B7 01 00 00 57 04 04 00 B8 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:21:48]wFMCommunicate OK [19:21:48]SAM_PROTO_GetFieldsCounters done [19:21:48]requested_item shift.num is exist - process it [19:21:48]requested_item shift.opened is exist - process it [19:21:48]req_shift_opened [19:21:48]FM_GetShiftState [19:21:48]SAM_PROTO_GetShiftState [19:21:48]wFMCommunicate request_size=4 [19:21:48]MH_SAM_APDU [19:21:48]CAPDU: 80 13 01 00 [19:21:48]Write to MH i2c: E2 08 00 3A BB 80 13 01 00 00 00 00 00 72 [19:21:48]Write i2c OK [19:21:48]MH_I2C_Read... [19:21:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:48]Read from MH i2c: E2 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: E2 0E 00 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: E2 0E 00 3A BB 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 AF [19:21:48]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:21:48]wFMCommunicate OK [19:21:48]SAM_PROTO_GetShiftState done [19:21:48]FM_GetShiftState done [19:21:48]req_shift_opened done [19:21:48]requested_item shift.open_date is exist - process it [19:21:48]req_shift_open_date [19:21:48]req_shift_open_date done [19:21:48]produce_requested_data done [19:21:48]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260881,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [19:21:48]process_action_free close_receipt [19:21:48]json_value_free [19:21:48]json_value_free done [19:21:48]process_json_proto returns [19:21:48]Send response to host [19:21:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260881,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [19:21:48]free response buf [19:21:48]execute_script done [19:21:48]execute_script returns [19:21:48]free content buf [19:21:48]Sock 9.Close socket [19:21:48]Sock 9.Thread stoped [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:05]OFD Sender: No OFD packet to send [19:24:10]OFD Sender: No OFD packet to send [19:24:15]OFD Sender: No OFD packet to send [19:24:20]OFD Sender: No OFD packet to send [19:24:25]OFD Sender: No OFD packet to send [19:24:30]OFD Sender: No OFD packet to send [19:24:35]OFD Sender: No OFD packet to send [19:24:40]OFD Sender: No OFD packet to send [19:24:45]OFD Sender: No OFD packet to send [19:24:50]OFD Sender: No OFD packet to send [19:24:55]OFD Sender: No OFD packet to send [19:25:00]OFD Sender: No OFD packet to send [19:25:05]OFD Sender: No OFD packet to send [19:25:10]OFD Sender: No OFD packet to send [19:25:15]OFD Sender: No OFD packet to send [19:25:20]OFD Sender: No OFD packet to send [19:25:25]OFD Sender: No OFD packet to send [19:25:30]accept exits with 7 [19:25:30]New connection [19:25:30]New thread 3066473828 created [19:25:30]Thread 3066617188 joined [19:25:30]Waiting for new connection... [19:25:30] Sock 7.Parse request [19:25:30]Sock 7.Check first char [19:25:30]Sock 7.First char is OK [19:25:30]request: POST /json_proto HTTP/1.0 [19:25:30]Method: POST [19:25:30]URL: /json_proto [19:25:30]Method is POST - this is cgi request [19:25:30]url: /json_proto [19:25:30]query_string will be loaded in cgi processing [19:25:30]execute_cgi json_proto POST (null) [19:25:30]execute_cgi path=json_proto method=POST [19:25:30]POST find Content-Length [19:25:30]Host: 172.17.55.133:8080 [19:25:30]Content-Length: 801 [19:25:30]Content-Type: application/json [19:25:30] [19:25:30]POST finish read [19:25:30]Found Content-Length = 801 [19:25:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036434", "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" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:30]execute_script... [19:25: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)1036434", "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" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:30]POST & json_proto [19:25:30]process_json_proto [19:25:30]json parsed OK: [19:25:30]protocol is kg_v1.0 [19:25:30]action value=close_receipt [19:25:30]process_action close_receipt [19:25:30]cmd_close_receipt [19:25:30]MH_GetDate [19:25:30]Write to MH i2c: F0 00 00 3B BB E5 [19:25:30]Write i2c OK [19:25:30]MH_I2C_Read... [19:25:30]Read from MH i2c: F0 [19:25:30]MH_I2C_Read... [19:25:30]Read from MH i2c: F0 09 00 [19:25:30]MH_I2C_Read... [19:25:30]Read from MH i2c: F0 09 00 3B BB 00 B0 4A C2 66 34 48 D8 65 C9 [19:25:30]GetLastDocTimeStamp 1724008909 [19:25:30]current date 1724009136 [19:25:30]FM_GetShiftState [19:25:30]SAM_PROTO_GetShiftState [19:25:30]wFMCommunicate request_size=4 [19:25:30]MH_SAM_APDU [19:25:30]CAPDU: 80 13 01 00 [19:25:30]Write to MH i2c: E2 08 00 3C BB 80 13 01 00 00 00 00 00 74 [19:25:30]Write i2c OK [19:25:30]MH_I2C_Read... [19:25:30]OFD Sender: No OFD packet to send [19:25:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:30]Read from MH i2c: E2 [19:25:30]MH_I2C_Read... [19:25:30]Read from MH i2c: E2 0E 00 [19:25:30]MH_I2C_Read... [19:25:30]Read from MH i2c: E2 0E 00 3C BB 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B1 [19:25:30]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:25:30]wFMCommunicate OK [19:25:30]SAM_PROTO_GetShiftState done [19:25:30]FM_GetShiftState done [19:25:30]opened in 1723940556 [19:25:30]opened+sec_in_day 1724026956 [19:25:30]quantity*price = 30051 [19:25:30]sum+1 = 30052 [19:25:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.51 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 0.00 Безнал.: 300.51 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 440 18.08.2024 19:25 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260882 ФПД: 112704847154617 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T192537&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260882&fm=112704847154617&tin=02508201610067®Number=0000000000091865&sum=30051 [19:25:31]StoreToDocumentArchive [19:25:31]shift 449 fd 260882 [19:25:31]save to /storage/0449/doc_00260882 [19:25:31]save last doc name /storage/0449/doc_00260882 to /storage/kkm_last_doc_name [19:25:31]save OK [19:25:31]Clear old archive folders... [19:25:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:25:31]tlvbuf is 00332A20 [19:25:31]SAM_PROTO_ClearQueue [19:25:31]wFMCommunicate request_size=4 [19:25:31]MH_SAM_APDU [19:25:31]CAPDU: 80 09 00 00 [19:25:31]Write to MH i2c: E2 08 00 49 BB 80 09 00 00 00 00 00 00 76 [19:25:31]Write i2c OK [19:25:31]MH_I2C_Read... [19:25:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:25:31]Read from MH i2c: E2 [19:25:31]MH_I2C_Read... [19:25:31]Read from MH i2c: E2 03 00 [19:25:31]MH_I2C_Read... [19:25:31]Read from MH i2c: E2 03 00 49 BB 00 90 00 78 [19:25:31]RAPDU: 90 00 [19:25:31]wFMCommunicate OK [19:25:31]SAM_PROTO_ClearQueue done [19:25:31]KKMCreateOFDPacket [19:25:31]OFDProtocolAddRootSTLVToBuf [19:25:31]FM_MakeSignedData [19:25:31]FM_MakeSignedData [19:25:31]SAM_PROTO_SignData [19:25:31]wFMCommunicate request_size=4 [19:25:31]MH_SAM_APDU [19:25:31]CAPDU: 80 0D 01 02 [19:25:31]Write to MH i2c: E2 08 00 4A BB 80 0D 01 02 00 00 00 00 7E [19:25:31]Write i2c OK [19:25:31]MH_I2C_Read... [19:25:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:25:31]Read from MH i2c: E2 [19:25:31]MH_I2C_Read... [19:25:31]Read from MH i2c: E2 03 00 [19:25:31]MH_I2C_Read... [19:25:31]Read from MH i2c: E2 03 00 4A BB 00 90 00 79 [19:25:31]RAPDU: 90 00 [19:25:31]wFMCommunicate OK [19:25:31]wFMCommunicate request_size=255 [19:25:31]MH_SAM_APDU [19:25: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 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 63 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 01 00 00 F4 03 04 00 B1 4A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 12 FB 03 00 35 04 06 00 66 [19:25:31]Write to MH i2c: E2 02 01 4B BB 80 0D 02 02 FA 00 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 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 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 63 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 01 00 00 F4 03 04 00 B1 4A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 12 FB 03 00 35 04 06 00 66 00 00 AD [19:25:31]Write i2c OK [19:25:31]MH_I2C_Read... [19:25:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:32]Read from MH i2c: E2 [19:25:32]MH_I2C_Read... [19:25:32]Read from MH i2c: E2 03 00 [19:25:32]MH_I2C_Read... [19:25:32]Read from MH i2c: E2 03 00 4B BB 00 90 00 7A [19:25:32]RAPDU: 90 00 [19:25:32]wFMCommunicate OK [19:25:32]wFMCommunicate request_size=10 [19:25:32]MH_SAM_APDU [19:25:32]CAPDU: 80 0D 02 02 05 81 24 61 0D B9 [19:25:32]Write to MH i2c: E2 0D 00 4C BB 80 0D 02 02 05 00 81 24 61 0D B9 00 00 57 [19:25:32]Write i2c OK [19:25:32]MH_I2C_Read... [19:25:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:32]Read from MH i2c: E2 [19:25:32]MH_I2C_Read... [19:25:32]Read from MH i2c: E2 03 00 [19:25:32]MH_I2C_Read... [19:25:32]Read from MH i2c: E2 03 00 4C BB 00 90 00 7B [19:25:32]RAPDU: 90 00 [19:25:32]wFMCommunicate OK [19:25:32]wFMCommunicate request_size=4 [19:25:32]MH_SAM_APDU [19:25:32]CAPDU: 80 0D 03 02 [19:25:32]Write to MH i2c: E2 08 00 4D BB 80 0D 03 02 00 00 00 00 83 [19:25:32]Write i2c OK [19:25:32]MH_I2C_Read... [19:25:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:25:32]Read from MH i2c: E2 [19:25:32]MH_I2C_Read... [19:25:32]Read from MH i2c: E2 0B 00 [19:25:32]MH_I2C_Read... [19:25:32]Read from MH i2c: E2 0B 00 4D BB 00 C0 91 0E B7 D7 63 93 00 90 00 67 [19:25:32]RAPDU: C0 91 0E B7 D7 63 93 00 90 00 [19:25:32]wFMCommunicate OK [19:25:32]SAM_PROTO_SignData done [19:25:32]FM_MakeSignedData done [19:25:32]CreateOFDProtocolMessage [19:25:32]wFMCommunicate request_size=4 [19:25:32]MH_SAM_APDU [19:25:32]CAPDU: 80 11 00 00 [19:25:32]Write to MH i2c: E2 08 00 4E BB 80 11 00 00 00 00 00 00 83 [19:25:32]Write i2c OK [19:25:32]MH_I2C_Read... [19:25:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:32]Read from MH i2c: E2 [19:25:32]MH_I2C_Read... [19:25:32]Read from MH i2c: E2 17 00 [19:25:32]MH_I2C_Read... [19:25:32]Read from MH i2c: E2 17 00 4E BB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D0 [19:25:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:25:32]wFMCommunicate OK [19:25:32]CreateOFDProtocolMessage done [19:25:32]OFDSenderStorePacket 260882 [19:25:32]StoreOFDPacket docnum=260882 [19:25:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 38 14 07 01 65 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 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 63 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 01 00 00 F4 03 04 00 B1 4A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 12 FB 03 00 35 04 06 00 66 81 24 61 0D B9 C0 91 0E B7 D7 63 93 00 [19:25:32]CheckFolder [19:25:32]dirname=/storage/ofd_packets [19:25:32]CheckFolder done [19:25:32]ProducePacketName [19:25:32]name=ofd_packets/00260882 [19:25:32]NVStorageSaveData ofd_packets/00260882 [19:25:32]File name is /storage/ofd_packets/00260882 [19:25:32]Write 301 bytes [19:25:32]NVStorageSaveData done [19:25:32]OFDSenderStorePacket done [19:25:32]KKMCreateOFDPacket done [19:25:32]NVStorageSaveData kkm_last_timestamp [19:25:32]File name is /storage/kkm_last_timestamp [19:25:32]Write 4 bytes [19:25:32]NVStorageSaveData done [19:25:32]ExternCall_PrintAddStr [19:25:32]wPrintStart [19:25:32]Write to MH i2c: 01 00 00 4F BB 0A [19:25:32]Write i2c OK [19:25:32]MH_I2C_Read... [19:25:32]Read from MH i2c: 01 [19:25:32]MH_I2C_Read... [19:25:32]Read from MH i2c: 01 07 00 [19:25:32]MH_I2C_Read... [19:25:32]Read from MH i2c: 01 07 00 4F BB 00 00 00 00 00 FF 0F 1F [19:25:32]RasterBufferAndPrint [19:25:32]line Счет N : (1)1036434 [19:25:32]line ИНН: 02508201610067 [19:25:32]line Контрольно-Кассовый Чек [19:25:32]line ПРОДАЖА [19:25:32]line ТРК (МРК, ГНК) : 13 [19:25:32]line Товар: 2710124500 [19:25:32]line Аи-95-К-5 [19:25:32]line 4.050 * 74.20 [19:25:32]line = 300.51 [19:25:32]line НДС 12% НСП 1% [19:25:32]line > о реализуемом товаре [19:25:32]line ИТОГО: 300.51 [19:25:32]line НСП 1% : 2.66 [19:25:32]line НДС 12% : 31.91 [19:25:32]line Наличными: 0.00 [19:25:32]line Безнал.: 300.51 [19:25:32]line Место: АЗС № 94 "Партнер Нефть" [19:25:32]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [19:25:32]line СНО: Общий режим [19:25:32]line Чек 440 18.08.2024 19:25 [19:25:32]line Смена: 449 ФФД: 1.0 [19:25:32]line ЗНМ: 0300000099 [19:25:32]line РНМ: 0000000000091865 [19:25:32]line Версия ККМ: 001 [19:25:32]line Платежная система: O! деньги [19:25:32]line ФМ: 0000000000871820 [19:25:32]line ФД: 260882 [19:25:32]line ФПД: 112704847154617 [19:25:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T192537&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260882&fm=112704847154617&tin=02508201610067®Number=0000000000091865&sum=30051 [19:25:32]OFD Sender: Processing packet 260882 [packets to send 192, broken 191] [19:25:32]ProducePacketName [19:25:32]name=ofd_packets/00260882 [19:25:32]OFD Sender: To server: pG, [19:25:32]CommunicateWithHost lk.salyk.kg:30040 [19:25:32]ConnectInit lk.salyk.kg [19:25:32]written 0, free lines is 4095 [19:25:32]Connected sock=10 [19:25: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 30 0F 01 00 00 38 14 07 01 65 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 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 63 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 01 00 00 F4 03 04 00 B1 4A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 12 FB 03 00 35 04 06 00 66 81 24 61 0D B9 C0 91 0E B7 D7 63 93 00 [19:25: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 30 4F 00 00 00 09 34 47 00 BB BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 12 FB 03 00 F4 03 04 00 05 F4 C1 66 B6 04 01 00 00 02 46 1F EF EF E5 71 BC [19:25:32]CommunicateWithHost err = 0 [19:25:32]CheckOFDResponse [19:25:32]1017 (14) - 77093643461234 [19:25:32]1041 (16) - 0000000000871820 [19:25:32]1040 (4) - 260882 [19:25:32]1012 (4) - 18.08.2024 13:15 [19:25:32]1206 (1) - 0 [19:25:32]OFD Sender: Remove packet 260882 [19:25:32]ProducePacketName [19:25:32]name=ofd_packets/00260882 [19:25:32]NVStorageDeleteData [19:25:32]Write to MH i2c: 01 00 00 79 BB 34 [19:25:32]Write i2c OK [19:25:32]MH_I2C_Read... [19:25:32]Read from MH i2c: 01 [19:25:32]MH_I2C_Read... [19:25:32]Read from MH i2c: 01 07 00 [19:25:32]MH_I2C_Read... [19:25:32]Read from MH i2c: 01 07 00 79 BB 00 00 00 00 00 8A 0C D1 [19:25:32]RasterBufferAndPrint [19:25:32]line [19:25:32]line [19:25:32]line [19:25:32]line [19:25:32]line [19:25:32]written 0, free lines is 3213 [19:25:32]MH_Cut [19:25:32]Write to MH i2c: D1 01 00 80 BB 01 0D [19:25:32]Write i2c OK [19:25:32]MH_I2C_Read... [19:25:32]Read from MH i2c: D1 [19:25:32]MH_I2C_Read... [19:25:32]Read from MH i2c: D1 01 00 [19:25:32]MH_I2C_Read... [19:25:32]Read from MH i2c: D1 01 00 80 BB 00 0C [19:25:32]Write to MH i2c: 01 00 00 81 BB 3C [19:25:32]Write i2c OK [19:25:32]MH_I2C_Read... [19:25:33]OFD Sender: No OFD packet to send [19:25:34]*** Cut start [19:25:34]*** Purtial cut [19:25:34]*** Stage 1: CUTSNS_PIN = 1 [19:25:36]Read from MH i2c: 01 [19:25:36]MH_I2C_Read... [19:25:36]*** Stop cut motor [19:25:36]*** Cut end [19:25:36]Read from MH i2c: 01 07 00 [19:25:36]MH_I2C_Read... [19:25:36]Read from MH i2c: 01 07 00 81 BB 00 00 00 00 00 FF 0F 51 [19:25:36]process_action close_receipt done [19:25:36]requested_data is exist [19:25:36]produce_requested_data [19:25:36]requested_item fm.sn is exist - process it [19:25:36]wFMCommunicate request_size=4 [19:25:36]MH_SAM_APDU [19:25:36]CAPDU: 80 11 00 00 [19:25:36]Write to MH i2c: E2 08 00 82 BB 80 11 00 00 00 00 00 00 B7 [19:25:36]Write i2c OK [19:25:36]MH_I2C_Read... [19:25:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:36]Read from MH i2c: E2 [19:25:36]MH_I2C_Read... [19:25:36]Read from MH i2c: E2 17 00 [19:25:36]MH_I2C_Read... [19:25:36]Read from MH i2c: E2 17 00 82 BB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 04 [19:25:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:25:36]wFMCommunicate OK [19:25:36]requested_item fd.num is exist - process it [19:25:36]SAM_PROTO_GetFieldsCounters [19:25:36]wFMCommunicate request_size=4 [19:25:36]MH_SAM_APDU [19:25:36]CAPDU: 80 13 00 00 [19:25:36]Write to MH i2c: E2 08 00 83 BB 80 13 00 00 00 00 00 00 BA [19:25:36]Write i2c OK [19:25:36]MH_I2C_Read... [19:25:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:25:36]Read from MH i2c: E2 [19:25:36]MH_I2C_Read... [19:25:36]Read from MH i2c: E2 62 00 [19:25:36]MH_I2C_Read... [19:25:36]Read from MH i2c: E2 62 00 83 BB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 12 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B8 01 00 00 5E 04 04 00 B8 01 00 00 57 04 04 00 B9 01 00 00 19 04 04 00 00 00 00 00 90 00 D6 [19:25: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 12 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B8 01 00 00 5E 04 04 00 B8 01 00 00 57 04 04 00 B9 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:25:36]wFMCommunicate OK [19:25:36]SAM_PROTO_GetFieldsCounters done [19:25:36]requested_item shift.num is exist - process it [19:25:36]requested_item shift.opened is exist - process it [19:25:36]req_shift_opened [19:25:36]FM_GetShiftState [19:25:36]SAM_PROTO_GetShiftState [19:25:36]wFMCommunicate request_size=4 [19:25:36]MH_SAM_APDU [19:25:36]CAPDU: 80 13 01 00 [19:25:36]Write to MH i2c: E2 08 00 84 BB 80 13 01 00 00 00 00 00 BC [19:25:36]Write i2c OK [19:25:36]MH_I2C_Read... [19:25:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:36]Read from MH i2c: E2 [19:25:36]MH_I2C_Read... [19:25:36]Read from MH i2c: E2 0E 00 [19:25:36]MH_I2C_Read... [19:25:36]Read from MH i2c: E2 0E 00 84 BB 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F9 [19:25:36]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:25:36]wFMCommunicate OK [19:25:36]SAM_PROTO_GetShiftState done [19:25:36]FM_GetShiftState done [19:25:36]req_shift_opened done [19:25:36]requested_item shift.open_date is exist - process it [19:25:36]req_shift_open_date [19:25:36]req_shift_open_date done [19:25:36]produce_requested_data done [19:25:36]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260882,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [19:25:36]process_action_free close_receipt [19:25:36]json_value_free [19:25:36]json_value_free done [19:25:36]process_json_proto returns [19:25:36]Send response to host [19:25:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260882,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [19:25:36]free response buf [19:25:36]execute_script done [19:25:36]execute_script returns [19:25:36]free content buf [19:25:36]Sock 7.Close socket [19:25:36]Sock 7.Thread stoped [19:25:36]accept exits with 9 [19:25:36]New connection [19:25:36]New thread 3066617188 created [19:25:36]Thread 3066473828 joined [19:25:36]Waiting for new connection... [19:25:36] Sock 9.Parse request [19:25:36]Sock 9.Check first char [19:25:36]Sock 9.First char is OK [19:25:36]request: POST /json_proto HTTP/1.0 [19:25:36]Method: POST [19:25:36]URL: /json_proto [19:25:36]Method is POST - this is cgi request [19:25:36]url: /json_proto [19:25:36]query_string will be loaded in cgi processing [19:25:36]execute_cgi json_proto POST (null) [19:25:36]execute_cgi path=json_proto method=POST [19:25:36]POST find Content-Length [19:25:36]Host: 172.17.55.133:8080 [19:25:36]Content-Length: 678 [19:25:36]Content-Type: application/json [19:25:36] [19:25:36]POST finish read [19:25:36]Found Content-Length = 678 [19:25:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:25:36]execute_script... [19:25: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)1036435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:25:36]POST & json_proto [19:25:36]process_json_proto [19:25:36]json parsed OK: [19:25:36]protocol is kg_v1.0 [19:25:36]action value=close_receipt [19:25:36]process_action close_receipt [19:25:36]cmd_close_receipt [19:25:36]MH_GetDate [19:25:36]Write to MH i2c: F0 00 00 85 BB 2F [19:25:36]Write i2c OK [19:25:36]MH_I2C_Read... [19:25:36]Read from MH i2c: F0 [19:25:36]MH_I2C_Read... [19:25:36]Read from MH i2c: F0 09 00 [19:25:36]MH_I2C_Read... [19:25:36]Read from MH i2c: F0 09 00 85 BB 00 B7 4A C2 66 34 48 D8 65 1A [19:25:36]GetLastDocTimeStamp 1724009137 [19:25:36]current date 1724009143 [19:25:36]FM_GetShiftState [19:25:36]SAM_PROTO_GetShiftState [19:25:36]wFMCommunicate request_size=4 [19:25:36]MH_SAM_APDU [19:25:36]CAPDU: 80 13 01 00 [19:25:36]Write to MH i2c: E2 08 00 86 BB 80 13 01 00 00 00 00 00 BE [19:25:36]Write i2c OK [19:25:36]MH_I2C_Read... [19:25:36]Read from MH i2c: E2 [19:25:36]MH_I2C_Read... [19:25:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:36]Read from MH i2c: E2 0E 00 [19:25:36]MH_I2C_Read... [19:25:36]Read from MH i2c: E2 0E 00 86 BB 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 FB [19:25:36]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:25:36]wFMCommunicate OK [19:25:36]SAM_PROTO_GetShiftState done [19:25:36]FM_GetShiftState done [19:25:36]opened in 1723940556 [19:25:36]opened+sec_in_day 1724026956 [19:25:36]quantity*price = 40002 [19:25:36]sum+1 = 40003 [19:25:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 441 18.08.2024 19:25 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260883 ФПД: 158628531237522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T192543&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260883&fm=158628531237522&tin=02508201610067®Number=0000000000091865&sum=40000 [19:25:38]StoreToDocumentArchive [19:25:38]shift 449 fd 260883 [19:25:38]save to /storage/0449/doc_00260883 [19:25:38]save last doc name /storage/0449/doc_00260883 to /storage/kkm_last_doc_name [19:25:38]save OK [19:25:38]Clear old archive folders... [19:25:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:25:38]tlvbuf is 003B79C0 [19:25:38]SAM_PROTO_ClearQueue [19:25:38]wFMCommunicate request_size=4 [19:25:38]MH_SAM_APDU [19:25:38]CAPDU: 80 09 00 00 [19:25:38]Write to MH i2c: E2 08 00 93 BB 80 09 00 00 00 00 00 00 C0 [19:25:38]Write i2c OK [19:25:38]MH_I2C_Read... [19:25:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:25:38]Read from MH i2c: E2 [19:25:38]MH_I2C_Read... [19:25:38]Read from MH i2c: E2 03 00 [19:25:38]MH_I2C_Read... [19:25:38]Read from MH i2c: E2 03 00 93 BB 00 90 00 C2 [19:25:38]RAPDU: 90 00 [19:25:38]wFMCommunicate OK [19:25:38]SAM_PROTO_ClearQueue done [19:25:38]KKMCreateOFDPacket [19:25:38]OFDProtocolAddRootSTLVToBuf [19:25:38]FM_MakeSignedData [19:25:38]FM_MakeSignedData [19:25:38]SAM_PROTO_SignData [19:25:38]wFMCommunicate request_size=4 [19:25:38]MH_SAM_APDU [19:25:38]CAPDU: 80 0D 01 02 [19:25:38]Write to MH i2c: E2 08 00 94 BB 80 0D 01 02 00 00 00 00 C8 [19:25:38]Write i2c OK [19:25:38]MH_I2C_Read... [19:25:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:25:38]Read from MH i2c: E2 [19:25:38]MH_I2C_Read... [19:25:38]Read from MH i2c: E2 03 00 [19:25:38]MH_I2C_Read... [19:25:38]Read from MH i2c: E2 03 00 94 BB 00 90 00 C3 [19:25:38]RAPDU: 90 00 [19:25:38]wFMCommunicate OK [19:25:38]wFMCommunicate request_size=255 [19:25:38]MH_SAM_APDU [19:25:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 01 00 00 F4 03 04 00 B7 4A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 13 FB 03 00 35 04 06 00 90 [19:25:38]Write to MH i2c: E2 02 01 95 BB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 01 00 00 F4 03 04 00 B7 4A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 13 FB 03 00 35 04 06 00 90 00 00 70 [19:25:38]Write i2c OK [19:25:38]MH_I2C_Read... [19:25:38]OFD Sender: No OFD packet to send [19:25:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:38]Read from MH i2c: E2 [19:25:38]MH_I2C_Read... [19:25:38]Read from MH i2c: E2 03 00 [19:25:38]MH_I2C_Read... [19:25:38]Read from MH i2c: E2 03 00 95 BB 00 90 00 C4 [19:25:38]RAPDU: 90 00 [19:25:38]wFMCommunicate OK [19:25:38]wFMCommunicate request_size=10 [19:25:38]MH_SAM_APDU [19:25:38]CAPDU: 80 0D 02 02 05 45 95 41 72 92 [19:25:38]Write to MH i2c: E2 0D 00 96 BB 80 0D 02 02 05 00 45 95 41 72 92 00 00 F4 [19:25:38]Write i2c OK [19:25:38]MH_I2C_Read... [19:25:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:38]Read from MH i2c: E2 [19:25:38]MH_I2C_Read... [19:25:38]Read from MH i2c: E2 03 00 [19:25:38]MH_I2C_Read... [19:25:38]Read from MH i2c: E2 03 00 96 BB 00 90 00 C5 [19:25:38]RAPDU: 90 00 [19:25:38]wFMCommunicate OK [19:25:38]wFMCommunicate request_size=4 [19:25:38]MH_SAM_APDU [19:25:38]CAPDU: 80 0D 03 02 [19:25:38]Write to MH i2c: E2 08 00 97 BB 80 0D 03 02 00 00 00 00 CD [19:25:38]Write i2c OK [19:25:38]MH_I2C_Read... [19:25:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:25:38]Read from MH i2c: E2 [19:25:38]MH_I2C_Read... [19:25:38]Read from MH i2c: E2 0B 00 [19:25:38]MH_I2C_Read... [19:25:38]Read from MH i2c: E2 0B 00 97 BB 00 16 67 07 4D 72 ED 34 4B 90 00 7D [19:25:38]RAPDU: 16 67 07 4D 72 ED 34 4B 90 00 [19:25:38]wFMCommunicate OK [19:25:38]SAM_PROTO_SignData done [19:25:38]FM_MakeSignedData done [19:25:38]CreateOFDProtocolMessage [19:25:38]wFMCommunicate request_size=4 [19:25:38]MH_SAM_APDU [19:25:38]CAPDU: 80 11 00 00 [19:25:38]Write to MH i2c: E2 08 00 98 BB 80 11 00 00 00 00 00 00 CD [19:25:38]Write i2c OK [19:25:38]MH_I2C_Read... [19:25:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:38]Read from MH i2c: E2 [19:25:38]MH_I2C_Read... [19:25:38]Read from MH i2c: E2 17 00 [19:25:38]MH_I2C_Read... [19:25:38]Read from MH i2c: E2 17 00 98 BB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 1A [19:25:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:25:38]wFMCommunicate OK [19:25:38]CreateOFDProtocolMessage done [19:25:38]OFDSenderStorePacket 260883 [19:25:38]StoreOFDPacket docnum=260883 [19:25:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 D2 92 07 01 AF 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 01 00 00 F4 03 04 00 B7 4A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 13 FB 03 00 35 04 06 00 90 45 95 41 72 92 16 67 07 4D 72 ED 34 4B [19:25:38]CheckFolder [19:25:38]dirname=/storage/ofd_packets [19:25:38]CheckFolder done [19:25:38]ProducePacketName [19:25:38]name=ofd_packets/00260883 [19:25:38]NVStorageSaveData ofd_packets/00260883 [19:25:38]File name is /storage/ofd_packets/00260883 [19:25:38]Write 301 bytes [19:25:38]NVStorageSaveData done [19:25:38]OFDSenderStorePacket done [19:25:38]KKMCreateOFDPacket done [19:25:38]NVStorageSaveData kkm_last_timestamp [19:25:38]File name is /storage/kkm_last_timestamp [19:25:38]Write 4 bytes [19:25:38]NVStorageSaveData done [19:25:38]ExternCall_PrintAddStr [19:25:38]wPrintStart [19:25:38]Write to MH i2c: 01 00 00 99 BB 54 [19:25:38]Write i2c OK [19:25:38]MH_I2C_Read... [19:25:38]Read from MH i2c: 01 [19:25:38]MH_I2C_Read... [19:25:38]Read from MH i2c: 01 07 00 [19:25:38]MH_I2C_Read... [19:25:38]Read from MH i2c: 01 07 00 99 BB 00 00 00 00 00 FF 0F 69 [19:25:38]RasterBufferAndPrint [19:25:38]line Счет N : (1)1036435 [19:25:38]line ИНН: 02508201610067 [19:25:38]line Контрольно-Кассовый Чек [19:25:38]line ПРОДАЖА [19:25:38]line ТРК (МРК, ГНК) : 22 [19:25:38]line Товар: 2710124130 [19:25:38]line Аи-92-К-5 [19:25:38]line 5.900 * 67.80 [19:25:38]line = 400.02 [19:25:38]line НДС 12% НСП 1% [19:25:38]line > о реализуемом товаре [19:25:38]line ОКРУГЛЕНИЕ: -0.02 [19:25:38]line ИТОГО: 400.00 [19:25:38]line Внесено: 400.00 [19:25:38]line СДАЧА: 0.00 [19:25:38]line НСП 1% : 3.54 [19:25:38]line НДС 12% : 42.48 [19:25:38]line Наличными: 400.00 [19:25:38]line Безнал.: 0.00 [19:25:38]line Место: АЗС № 94 "Партнер Нефть" [19:25:38]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [19:25:38]line СНО: Общий режим [19:25:38]line Чек 441 18.08.2024 19:25 [19:25:38]line Смена: 449 ФФД: 1.0 [19:25:38]line ЗНМ: 0300000099 [19:25:38]line РНМ: 0000000000091865 [19:25:38]line Версия ККМ: 001 [19:25:38]line ФМ: 0000000000871820 [19:25:38]line ФД: 260883 [19:25:38]line ФПД: 158628531237522 [19:25:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T192543&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260883&fm=158628531237522&tin=02508201610067®Number=0000000000091865&sum=40000 [19:25:38]written 0, free lines is 4095 [19:25:38]OFD Sender: Processing packet 260883 [packets to send 192, broken 191] [19:25:38]ProducePacketName [19:25:38]name=ofd_packets/00260883 [19:25:38]OFD Sender: To server: pG, [19:25:38]CommunicateWithHost lk.salyk.kg:30040 [19:25:38]ConnectInit lk.salyk.kg [19:25:38]Connected sock=10 [19:25: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 30 0F 01 00 00 D2 92 07 01 AF 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 01 00 00 F4 03 04 00 B7 4A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 13 FB 03 00 35 04 06 00 90 45 95 41 72 92 16 67 07 4D 72 ED 34 4B [19:25:39]Write to MH i2c: 01 00 00 C4 BB 7F [19:25: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 30 4F 00 00 00 A4 93 47 00 7F 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 13 FB 03 00 F4 03 04 00 0B F4 C1 66 B6 04 01 00 00 9F 1D 8D 62 7B 10 14 2D [19:25:39]CommunicateWithHost err = 0 [19:25:39]CheckOFDResponse [19:25:39]1017 (14) - 77093643461234 [19:25:39]1041 (16) - 0000000000871820 [19:25:39]1040 (4) - 260883 [19:25:39]1012 (4) - 18.08.2024 13:15 [19:25:39]1206 (1) - 0 [19:25:39]OFD Sender: Remove packet 260883 [19:25:39]ProducePacketName [19:25:39]name=ofd_packets/00260883 [19:25:39]NVStorageDeleteData [19:25:39]Write i2c OK [19:25:39]MH_I2C_Read... [19:25:39]Read from MH i2c: 01 [19:25:39]MH_I2C_Read... [19:25:39]Read from MH i2c: 01 07 00 [19:25:39]MH_I2C_Read... [19:25:39]Read from MH i2c: 01 07 00 C4 BB 00 00 00 00 00 7B 0C 0D [19:25:39]RasterBufferAndPrint [19:25:39]line [19:25:39]line [19:25:39]line [19:25:39]line [19:25:39]line [19:25:39]written 0, free lines is 3228 [19:25:39]MH_Cut [19:25:39]Write to MH i2c: D1 01 00 CB BB 01 58 [19:25:39]Write i2c OK [19:25:39]MH_I2C_Read... [19:25:39]Read from MH i2c: D1 [19:25:39]MH_I2C_Read... [19:25:39]Read from MH i2c: D1 01 00 [19:25:39]MH_I2C_Read... [19:25:39]Read from MH i2c: D1 01 00 CB BB 00 57 [19:25:39]Write to MH i2c: 01 00 00 CC BB 87 [19:25:39]Write i2c OK [19:25:39]MH_I2C_Read... [19:25:39]OFD Sender: No OFD packet to send [19:25:40]*** Cut start [19:25:40]*** Purtial cut [19:25:40]*** Stage 1: CUTSNS_PIN = 1 [19:25:42]*** Stop cut motor [19:25:42]*** Cut end [19:25:42]Read from MH i2c: 01 [19:25:42]MH_I2C_Read... [19:25:42]Read from MH i2c: 01 07 00 [19:25:42]MH_I2C_Read... [19:25:42]Read from MH i2c: 01 07 00 CC BB 00 00 00 00 00 FF 0F 9C [19:25:42]process_action close_receipt done [19:25:42]requested_data is exist [19:25:42]produce_requested_data [19:25:42]requested_item fm.sn is exist - process it [19:25:42]wFMCommunicate request_size=4 [19:25:42]MH_SAM_APDU [19:25:42]CAPDU: 80 11 00 00 [19:25:42]Write to MH i2c: E2 08 00 CD BB 80 11 00 00 00 00 00 00 02 [19:25:42]Write i2c OK [19:25:42]MH_I2C_Read... [19:25:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:42]Read from MH i2c: E2 [19:25:42]MH_I2C_Read... [19:25:42]Read from MH i2c: E2 17 00 [19:25:42]MH_I2C_Read... [19:25:42]Read from MH i2c: E2 17 00 CD BB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 4F [19:25:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:25:42]wFMCommunicate OK [19:25:42]requested_item fd.num is exist - process it [19:25:42]SAM_PROTO_GetFieldsCounters [19:25:42]wFMCommunicate request_size=4 [19:25:42]MH_SAM_APDU [19:25:42]CAPDU: 80 13 00 00 [19:25:42]Write to MH i2c: E2 08 00 CE BB 80 13 00 00 00 00 00 00 05 [19:25:42]Write i2c OK [19:25:42]MH_I2C_Read... [19:25:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:25:42]Read from MH i2c: E2 [19:25:42]MH_I2C_Read... [19:25:42]Read from MH i2c: E2 62 00 [19:25:42]MH_I2C_Read... [19:25:42]Read from MH i2c: E2 62 00 CE BB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 13 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B9 01 00 00 5E 04 04 00 B9 01 00 00 57 04 04 00 BA 01 00 00 19 04 04 00 00 00 00 00 90 00 25 [19:25: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 13 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 B9 01 00 00 5E 04 04 00 B9 01 00 00 57 04 04 00 BA 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:25:42]wFMCommunicate OK [19:25:42]SAM_PROTO_GetFieldsCounters done [19:25:42]requested_item shift.num is exist - process it [19:25:42]requested_item shift.opened is exist - process it [19:25:42]req_shift_opened [19:25:42]FM_GetShiftState [19:25:42]SAM_PROTO_GetShiftState [19:25:42]wFMCommunicate request_size=4 [19:25:42]MH_SAM_APDU [19:25:42]CAPDU: 80 13 01 00 [19:25:42]Write to MH i2c: E2 08 00 CF BB 80 13 01 00 00 00 00 00 07 [19:25:42]Write i2c OK [19:25:42]MH_I2C_Read... [19:25:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:42]Read from MH i2c: E2 [19:25:42]MH_I2C_Read... [19:25:42]Read from MH i2c: E2 0E 00 [19:25:42]MH_I2C_Read... [19:25:42]Read from MH i2c: E2 0E 00 CF BB 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 44 [19:25:42]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:25:42]wFMCommunicate OK [19:25:42]SAM_PROTO_GetShiftState done [19:25:42]FM_GetShiftState done [19:25:42]req_shift_opened done [19:25:42]requested_item shift.open_date is exist - process it [19:25:42]req_shift_open_date [19:25:42]req_shift_open_date done [19:25:42]produce_requested_data done [19:25:42]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260883,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [19:25:42]process_action_free close_receipt [19:25:42]json_value_free [19:25:42]json_value_free done [19:25:42]process_json_proto returns [19:25:42]Send response to host [19:25:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260883,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [19:25:42]free response buf [19:25:42]execute_script done [19:25:42]execute_script returns [19:25:42]free content buf [19:25:42]Sock 9.Close socket [19:25:42]Sock 9.Thread stoped [19:25:44]OFD Sender: No OFD packet to send [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:14]accept exits with 7 [19:27:14]New connection [19:27:14]New thread 3066473828 created [19:27:14]Thread 3066617188 joined [19:27:14]Waiting for new connection... [19:27:14] Sock 7.Parse request [19:27:14]Sock 7.Check first char [19:27:14]Sock 7.First char is OK [19:27:14]request: POST /json_proto HTTP/1.0 [19:27:14]Method: POST [19:27:14]URL: /json_proto [19:27:14]Method is POST - this is cgi request [19:27:14]url: /json_proto [19:27:14]query_string will be loaded in cgi processing [19:27:14]execute_cgi json_proto POST (null) [19:27:14]execute_cgi path=json_proto method=POST [19:27:14]POST find Content-Length [19:27:14]Host: 172.17.55.133:8080 [19:27:14]Content-Length: 678 [19:27:14]Content-Type: application/json [19:27:14] [19:27:14]POST finish read [19:27:14]Found Content-Length = 678 [19:27:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:27:14]execute_script... [19: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)1036436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:27:14]POST & json_proto [19:27:14]process_json_proto [19:27:14]json parsed OK: [19:27:14]protocol is kg_v1.0 [19:27:14]action value=close_receipt [19:27:14]process_action close_receipt [19:27:14]cmd_close_receipt [19:27:14]MH_GetDate [19:27:14]Write to MH i2c: F0 00 00 D0 BB 7A [19:27:14]Write i2c OK [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: F0 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: F0 09 00 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: F0 09 00 D0 BB 00 19 4B C2 66 34 48 D8 65 C8 [19:27:14]GetLastDocTimeStamp 1724009143 [19:27:14]current date 1724009241 [19:27:14]FM_GetShiftState [19:27:14]SAM_PROTO_GetShiftState [19:27:14]wFMCommunicate request_size=4 [19:27:14]MH_SAM_APDU [19:27:14]CAPDU: 80 13 01 00 [19:27:14]Write to MH i2c: E2 08 00 D1 BB 80 13 01 00 00 00 00 00 09 [19:27:14]Write i2c OK [19:27:14]MH_I2C_Read... [19:27:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:14]Read from MH i2c: E2 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: E2 0E 00 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: E2 0E 00 D1 BB 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 46 [19:27:14]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:27:14]wFMCommunicate OK [19:27:14]SAM_PROTO_GetShiftState done [19:27:14]FM_GetShiftState done [19:27:14]opened in 1723940556 [19:27:14]opened+sec_in_day 1724026956 [19:27:14]quantity*price = 50036 [19:27:14]sum+1 = 50037 [19:27:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 442 18.08.2024 19:27 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260884 ФПД: 253285543651094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T192721&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260884&fm=253285543651094&tin=02508201610067®Number=0000000000091865&sum=50000 [19:27:16]StoreToDocumentArchive [19:27:16]shift 449 fd 260884 [19:27:16]save to /storage/0449/doc_00260884 [19:27:16]save last doc name /storage/0449/doc_00260884 to /storage/kkm_last_doc_name [19:27:16]save OK [19:27:16]Clear old archive folders... [19:27:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:27:16]tlvbuf is 005C1460 [19:27:16]SAM_PROTO_ClearQueue [19:27:16]wFMCommunicate request_size=4 [19:27:16]MH_SAM_APDU [19:27:16]CAPDU: 80 09 00 00 [19:27:16]Write to MH i2c: E2 08 00 DE BB 80 09 00 00 00 00 00 00 0B [19:27:16]Write i2c OK [19:27:16]MH_I2C_Read... [19:27:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:27:16]Read from MH i2c: E2 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: E2 03 00 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: E2 03 00 DE BB 00 90 00 0D [19:27:16]RAPDU: 90 00 [19:27:16]wFMCommunicate OK [19:27:16]SAM_PROTO_ClearQueue done [19:27:16]KKMCreateOFDPacket [19:27:16]OFDProtocolAddRootSTLVToBuf [19:27:16]FM_MakeSignedData [19:27:16]FM_MakeSignedData [19:27:16]SAM_PROTO_SignData [19:27:16]wFMCommunicate request_size=4 [19:27:16]MH_SAM_APDU [19:27:16]CAPDU: 80 0D 01 02 [19:27:16]Write to MH i2c: E2 08 00 DF BB 80 0D 01 02 00 00 00 00 13 [19:27:16]Write i2c OK [19:27:16]MH_I2C_Read... [19:27:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:27:16]Read from MH i2c: E2 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: E2 03 00 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: E2 03 00 DF BB 00 90 00 0E [19:27:16]RAPDU: 90 00 [19:27:16]wFMCommunicate OK [19:27:16]wFMCommunicate request_size=255 [19:27:16]MH_SAM_APDU [19:27:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BA 01 00 00 F4 03 04 00 19 4B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 14 FB 03 00 35 04 06 00 E6 [19:27:16]Write to MH i2c: E2 02 01 E0 BB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BA 01 00 00 F4 03 04 00 19 4B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 14 FB 03 00 35 04 06 00 E6 00 00 91 [19:27:16]Write i2c OK [19:27:16]MH_I2C_Read... [19:27:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:16]Read from MH i2c: E2 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: E2 03 00 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: E2 03 00 E0 BB 00 90 00 0F [19:27:16]RAPDU: 90 00 [19:27:16]wFMCommunicate OK [19:27:16]wFMCommunicate request_size=10 [19:27:16]MH_SAM_APDU [19:27:16]CAPDU: 80 0D 02 02 05 5C A2 DB 27 16 [19:27:16]Write to MH i2c: E2 0D 00 E1 BB 80 0D 02 02 05 00 5C A2 DB 27 16 00 00 36 [19:27:16]Write i2c OK [19:27:16]MH_I2C_Read... [19:27:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:16]Read from MH i2c: E2 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: E2 03 00 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: E2 03 00 E1 BB 00 90 00 10 [19:27:16]RAPDU: 90 00 [19:27:16]wFMCommunicate OK [19:27:16]wFMCommunicate request_size=4 [19:27:16]MH_SAM_APDU [19:27:16]CAPDU: 80 0D 03 02 [19:27:16]Write to MH i2c: E2 08 00 E2 BB 80 0D 03 02 00 00 00 00 18 [19:27:16]Write i2c OK [19:27:16]MH_I2C_Read... [19:27:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:27:16]Read from MH i2c: E2 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: E2 0B 00 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: E2 0B 00 E2 BB 00 56 14 2A 64 B3 77 BA B4 90 00 A9 [19:27:16]RAPDU: 56 14 2A 64 B3 77 BA B4 90 00 [19:27:16]wFMCommunicate OK [19:27:16]SAM_PROTO_SignData done [19:27:16]FM_MakeSignedData done [19:27:16]CreateOFDProtocolMessage [19:27:16]wFMCommunicate request_size=4 [19:27:16]MH_SAM_APDU [19:27:16]CAPDU: 80 11 00 00 [19:27:16]Write to MH i2c: E2 08 00 E3 BB 80 11 00 00 00 00 00 00 18 [19:27:16]Write i2c OK [19:27:16]MH_I2C_Read... [19:27:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:16]Read from MH i2c: E2 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: E2 17 00 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: E2 17 00 E3 BB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 65 [19:27:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:27:16]wFMCommunicate OK [19:27:16]CreateOFDProtocolMessage done [19:27:16]OFDSenderStorePacket 260884 [19:27:16]StoreOFDPacket docnum=260884 [19: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 30 0F 01 00 00 05 02 07 01 85 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BA 01 00 00 F4 03 04 00 19 4B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 14 FB 03 00 35 04 06 00 E6 5C A2 DB 27 16 56 14 2A 64 B3 77 BA B4 [19:27:16]CheckFolder [19:27:16]dirname=/storage/ofd_packets [19:27:16]CheckFolder done [19:27:16]ProducePacketName [19:27:16]name=ofd_packets/00260884 [19:27:16]NVStorageSaveData ofd_packets/00260884 [19:27:16]File name is /storage/ofd_packets/00260884 [19:27:16]Write 301 bytes [19:27:16]NVStorageSaveData done [19:27:16]OFDSenderStorePacket done [19:27:16]KKMCreateOFDPacket done [19:27:16]NVStorageSaveData kkm_last_timestamp [19:27:16]File name is /storage/kkm_last_timestamp [19:27:16]Write 4 bytes [19:27:16]NVStorageSaveData done [19:27:16]ExternCall_PrintAddStr [19:27:16]wPrintStart [19:27:16]Write to MH i2c: 01 00 00 E4 BB 9F [19:27:16]Write i2c OK [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: 01 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: 01 07 00 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: 01 07 00 E4 BB 00 00 00 00 00 FF 0F B4 [19:27:16]RasterBufferAndPrint [19:27:16]line Счет N : (1)1036436 [19:27:16]line ИНН: 02508201610067 [19:27:16]line Контрольно-Кассовый Чек [19:27:16]line ПРОДАЖА [19:27:16]line ТРК (МРК, ГНК) : 32 [19:27:16]line Товар: 2710124130 [19:27:16]line Аи-92-К-5 [19:27:16]line 7.380 * 67.80 [19:27:16]line = 500.36 [19:27:16]line НДС 12% НСП 1% [19:27:16]line > о реализуемом товаре [19:27:16]line ОКРУГЛЕНИЕ: -0.36 [19:27:16]line ИТОГО: 500.00 [19:27:16]line Внесено: 500.00 [19:27:16]line СДАЧА: 0.00 [19:27:16]line НСП 1% : 4.43 [19:27:16]line НДС 12% : 53.14 [19:27:16]line Наличными: 500.00 [19:27:16]line Безнал.: 0.00 [19:27:16]line Место: АЗС № 94 "Партнер Нефть" [19:27:16]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [19:27:16]line СНО: Общий режим [19:27:16]line Чек 442 18.08.2024 19:27 [19:27:16]line Смена: 449 ФФД: 1.0 [19:27:16]line ЗНМ: 0300000099 [19:27:16]line РНМ: 0000000000091865 [19:27:16]line Версия ККМ: 001 [19:27:16]line ФМ: 0000000000871820 [19:27:16]line ФД: 260884 [19:27:16]line ФПД: 253285543651094 [19:27:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T192721&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260884&fm=253285543651094&tin=02508201610067®Number=0000000000091865&sum=50000 [19:27:16]written 0, free lines is 4095 [19:27:16]OFD Sender: Processing packet 260884 [packets to send 192, broken 191] [19:27:16]ProducePacketName [19:27:16]name=ofd_packets/00260884 [19:27:16]OFD Sender: To server: pG, [19:27:16]CommunicateWithHost lk.salyk.kg:30040 [19:27:16]ConnectInit lk.salyk.kg [19:27:16]Connected sock=10 [19: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 30 0F 01 00 00 05 02 07 01 85 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BA 01 00 00 F4 03 04 00 19 4B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 14 FB 03 00 35 04 06 00 E6 5C A2 DB 27 16 56 14 2A 64 B3 77 BA B4 [19:27: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 30 4F 00 00 00 BE 86 47 00 69 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 14 FB 03 00 F4 03 04 00 6D F4 C1 66 B6 04 01 00 00 44 F0 BA 16 16 71 E6 7B [19:27:16]CommunicateWithHost err = 0 [19:27:16]CheckOFDResponse [19:27:16]1017 (14) - 77093643461234 [19:27:16]1041 (16) - 0000000000871820 [19:27:16]1040 (4) - 260884 [19:27:16]1012 (4) - 18.08.2024 13:17 [19:27:16]1206 (1) - 0 [19:27:16]OFD Sender: Remove packet 260884 [19:27:16]ProducePacketName [19:27:16]name=ofd_packets/00260884 [19:27:16]NVStorageDeleteData [19:27:17]Write to MH i2c: 01 00 00 0F BC CB [19:27:17]Write i2c OK [19:27:17]MH_I2C_Read... [19:27:17]Read from MH i2c: 01 [19:27:17]MH_I2C_Read... [19:27:17]Read from MH i2c: 01 07 00 [19:27:17]MH_I2C_Read... [19:27:17]Read from MH i2c: 01 07 00 0F BC 00 00 00 00 00 6E 0C 4C [19:27:17]RasterBufferAndPrint [19:27:17]line [19:27:17]line [19:27:17]line [19:27:17]line [19:27:17]line [19:27:17]written 0, free lines is 3185 [19:27:17]MH_Cut [19:27:17]Write to MH i2c: D1 01 00 16 BC 01 A4 [19:27:17]Write i2c OK [19:27:17]MH_I2C_Read... [19:27:17]Read from MH i2c: D1 [19:27:17]MH_I2C_Read... [19:27:17]Read from MH i2c: D1 01 00 [19:27:17]MH_I2C_Read... [19:27:17]Read from MH i2c: D1 01 00 16 BC 00 A3 [19:27:17]Write to MH i2c: 01 00 00 17 BC D3 [19:27:17]Write i2c OK [19:27:17]MH_I2C_Read... [19:27:17]OFD Sender: No OFD packet to send [19:27:18]*** Cut start [19:27:18]*** Purtial cut [19:27:18]*** Stage 1: CUTSNS_PIN = 1 [19:27:20]Read from MH i2c: 01 [19:27:20]MH_I2C_Read... [19:27:20]*** Stop cut motor [19:27:20]*** Cut end [19:27:20]Read from MH i2c: 01 07 00 [19:27:20]MH_I2C_Read... [19:27:20]Read from MH i2c: 01 07 00 17 BC 00 00 00 00 00 FF 0F E8 [19:27:20]process_action close_receipt done [19:27:20]requested_data is exist [19:27:20]produce_requested_data [19:27:20]requested_item fm.sn is exist - process it [19:27:20]wFMCommunicate request_size=4 [19:27:20]MH_SAM_APDU [19:27:20]CAPDU: 80 11 00 00 [19:27:20]Write to MH i2c: E2 08 00 18 BC 80 11 00 00 00 00 00 00 4E [19:27:20]Write i2c OK [19:27:20]MH_I2C_Read... [19:27:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:20]Read from MH i2c: E2 [19:27:20]MH_I2C_Read... [19:27:20]Read from MH i2c: E2 17 00 [19:27:20]MH_I2C_Read... [19:27:20]Read from MH i2c: E2 17 00 18 BC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 9B [19:27:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:27:20]wFMCommunicate OK [19:27:20]requested_item fd.num is exist - process it [19:27:20]SAM_PROTO_GetFieldsCounters [19:27:20]wFMCommunicate request_size=4 [19:27:20]MH_SAM_APDU [19:27:20]CAPDU: 80 13 00 00 [19:27:20]Write to MH i2c: E2 08 00 19 BC 80 13 00 00 00 00 00 00 51 [19:27:20]Write i2c OK [19:27:20]MH_I2C_Read... [19:27:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:27:20]Read from MH i2c: E2 [19:27:20]MH_I2C_Read... [19:27:20]Read from MH i2c: E2 62 00 [19:27:20]MH_I2C_Read... [19:27:20]Read from MH i2c: E2 62 00 19 BC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 14 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 BA 01 00 00 5E 04 04 00 BA 01 00 00 57 04 04 00 BB 01 00 00 19 04 04 00 00 00 00 00 90 00 75 [19:27: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 14 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 BA 01 00 00 5E 04 04 00 BA 01 00 00 57 04 04 00 BB 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:27:20]wFMCommunicate OK [19:27:20]SAM_PROTO_GetFieldsCounters done [19:27:20]requested_item shift.num is exist - process it [19:27:20]requested_item shift.opened is exist - process it [19:27:20]req_shift_opened [19:27:20]FM_GetShiftState [19:27:20]SAM_PROTO_GetShiftState [19:27:20]wFMCommunicate request_size=4 [19:27:20]MH_SAM_APDU [19:27:20]CAPDU: 80 13 01 00 [19:27:20]Write to MH i2c: E2 08 00 1A BC 80 13 01 00 00 00 00 00 53 [19:27:20]Write i2c OK [19:27:20]MH_I2C_Read... [19:27:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:20]Read from MH i2c: E2 [19:27:20]MH_I2C_Read... [19:27:20]Read from MH i2c: E2 0E 00 [19:27:20]MH_I2C_Read... [19:27:20]Read from MH i2c: E2 0E 00 1A BC 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 90 [19:27:20]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:27:20]wFMCommunicate OK [19:27:20]SAM_PROTO_GetShiftState done [19:27:20]FM_GetShiftState done [19:27:20]req_shift_opened done [19:27:20]requested_item shift.open_date is exist - process it [19:27:20]req_shift_open_date [19:27:20]req_shift_open_date done [19:27:20]produce_requested_data done [19:27:20]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260884,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [19:27:20]process_action_free close_receipt [19:27:20]json_value_free [19:27:20]json_value_free done [19:27:20]process_json_proto returns [19:27:20]Send response to host [19:27:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260884,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [19:27:20]free response buf [19:27:20]execute_script done [19:27:20]execute_script returns [19:27:20]free content buf [19:27:20]Sock 7.Close socket [19:27:20]Sock 7.Thread stoped [19:27:22]OFD Sender: No OFD packet to send [19:27:27]OFD Sender: No OFD packet to send [19:27:32]OFD Sender: No OFD packet to send [19:27:37]OFD Sender: No OFD packet to send [19:27:38]accept exits with 9 [19:27:38]New connection [19:27:38]New thread 3066617188 created [19:27:38]Thread 3066473828 joined [19:27:38]Waiting for new connection... [19:27:38] Sock 9.Parse request [19:27:38]Sock 9.Check first char [19:27:38]Sock 9.First char is OK [19:27:38]request: POST /json_proto HTTP/1.0 [19:27:38]Method: POST [19:27:38]URL: /json_proto [19:27:38]Method is POST - this is cgi request [19:27:38]url: /json_proto [19:27:38]query_string will be loaded in cgi processing [19:27:38]execute_cgi json_proto POST (null) [19:27:38]execute_cgi path=json_proto method=POST [19:27:38]POST find Content-Length [19:27:38]Host: 172.17.55.133:8080 [19:27:38]Content-Length: 683 [19:27:38]Content-Type: application/json [19:27:38] [19:27:38]POST finish read [19:27:38]Found Content-Length = 683 [19:27:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:27:38]execute_script... [19:27: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)1036437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:27:38]POST & json_proto [19:27:38]process_json_proto [19:27:38]json parsed OK: [19:27:38]protocol is kg_v1.0 [19:27:38]action value=close_receipt [19:27:38]process_action close_receipt [19:27:38]cmd_close_receipt [19:27:38]MH_GetDate [19:27:38]Write to MH i2c: F0 00 00 1B BC C6 [19:27:38]Write i2c OK [19:27:38]MH_I2C_Read... [19:27:38]Read from MH i2c: F0 [19:27:38]MH_I2C_Read... [19:27:38]Read from MH i2c: F0 09 00 [19:27:38]MH_I2C_Read... [19:27:38]Read from MH i2c: F0 09 00 1B BC 00 31 4B C2 66 34 48 D8 65 2C [19:27:38]GetLastDocTimeStamp 1724009241 [19:27:38]current date 1724009265 [19:27:38]FM_GetShiftState [19:27:38]SAM_PROTO_GetShiftState [19:27:38]wFMCommunicate request_size=4 [19:27:38]MH_SAM_APDU [19:27:38]CAPDU: 80 13 01 00 [19:27:38]Write to MH i2c: E2 08 00 1C BC 80 13 01 00 00 00 00 00 55 [19:27:38]Write i2c OK [19:27:38]MH_I2C_Read... [19:27:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:38]Read from MH i2c: E2 [19:27:38]MH_I2C_Read... [19:27:38]Read from MH i2c: E2 0E 00 [19:27:38]MH_I2C_Read... [19:27:38]Read from MH i2c: E2 0E 00 1C BC 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 92 [19:27:38]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:27:38]wFMCommunicate OK [19:27:38]SAM_PROTO_GetShiftState done [19:27:38]FM_GetShiftState done [19:27:38]opened in 1723940556 [19:27:38]opened+sec_in_day 1724026956 [19:27:38]quantity*price = 100005 [19:27:38]sum+1 = 100006 [19:27:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 443 18.08.2024 19:27 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260885 ФПД: 202422907099248 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T192745&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260885&fm=202422907099248&tin=02508201610067®Number=0000000000091865&sum=100000 [19:27:39]StoreToDocumentArchive [19:27:39]shift 449 fd 260885 [19:27:39]save to /storage/0449/doc_00260885 [19:27:39]save last doc name /storage/0449/doc_00260885 to /storage/kkm_last_doc_name [19:27:39]save OK [19:27:39]Clear old archive folders... [19:27:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:27:39]tlvbuf is 00540E40 [19:27:39]SAM_PROTO_ClearQueue [19:27:39]wFMCommunicate request_size=4 [19:27:39]MH_SAM_APDU [19:27:39]CAPDU: 80 09 00 00 [19:27:39]Write to MH i2c: E2 08 00 29 BC 80 09 00 00 00 00 00 00 57 [19:27:39]Write i2c OK [19:27:39]MH_I2C_Read... [19:27:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:27:39]Read from MH i2c: E2 [19:27:39]MH_I2C_Read... [19:27:39]Read from MH i2c: E2 03 00 [19:27:39]MH_I2C_Read... [19:27:39]Read from MH i2c: E2 03 00 29 BC 00 90 00 59 [19:27:39]RAPDU: 90 00 [19:27:39]wFMCommunicate OK [19:27:39]SAM_PROTO_ClearQueue done [19:27:39]KKMCreateOFDPacket [19:27:39]OFDProtocolAddRootSTLVToBuf [19:27:39]FM_MakeSignedData [19:27:39]FM_MakeSignedData [19:27:39]SAM_PROTO_SignData [19:27:39]wFMCommunicate request_size=4 [19:27:39]MH_SAM_APDU [19:27:39]CAPDU: 80 0D 01 02 [19:27:39]Write to MH i2c: E2 08 00 2A BC 80 0D 01 02 00 00 00 00 5F [19:27:39]Write i2c OK [19:27:39]MH_I2C_Read... [19:27:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:27:39]Read from MH i2c: E2 [19:27:39]MH_I2C_Read... [19:27:39]Read from MH i2c: E2 03 00 [19:27:39]MH_I2C_Read... [19:27:39]Read from MH i2c: E2 03 00 2A BC 00 90 00 5A [19:27:39]RAPDU: 90 00 [19:27:39]wFMCommunicate OK [19:27:39]wFMCommunicate request_size=255 [19:27:39]MH_SAM_APDU [19:27:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 01 00 00 F4 03 04 00 31 4B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 15 FB 03 00 35 04 06 00 B8 [19:27:39]Write to MH i2c: E2 02 01 2B BC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 01 00 00 F4 03 04 00 31 4B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 15 FB 03 00 35 04 06 00 B8 00 00 58 [19:27:39]Write i2c OK [19:27:39]MH_I2C_Read... [19:27:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:40]Read from MH i2c: E2 [19:27:40]MH_I2C_Read... [19:27:40]Read from MH i2c: E2 03 00 [19:27:40]MH_I2C_Read... [19:27:40]Read from MH i2c: E2 03 00 2B BC 00 90 00 5B [19:27:40]RAPDU: 90 00 [19:27:40]wFMCommunicate OK [19:27:40]wFMCommunicate request_size=10 [19:27:40]MH_SAM_APDU [19:27:40]CAPDU: 80 0D 02 02 05 1A 41 78 D8 70 [19:27:40]Write to MH i2c: E2 0D 00 2C BC 80 0D 02 02 05 00 1A 41 78 D8 70 00 00 87 [19:27:40]Write i2c OK [19:27:40]MH_I2C_Read... [19:27:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:40]Read from MH i2c: E2 [19:27:40]MH_I2C_Read... [19:27:40]Read from MH i2c: E2 03 00 [19:27:40]MH_I2C_Read... [19:27:40]Read from MH i2c: E2 03 00 2C BC 00 90 00 5C [19:27:40]RAPDU: 90 00 [19:27:40]wFMCommunicate OK [19:27:40]wFMCommunicate request_size=4 [19:27:40]MH_SAM_APDU [19:27:40]CAPDU: 80 0D 03 02 [19:27:40]Write to MH i2c: E2 08 00 2D BC 80 0D 03 02 00 00 00 00 64 [19:27:40]Write i2c OK [19:27:40]MH_I2C_Read... [19:27:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:27:40]Read from MH i2c: E2 [19:27:40]MH_I2C_Read... [19:27:40]Read from MH i2c: E2 0B 00 [19:27:40]MH_I2C_Read... [19:27:40]Read from MH i2c: E2 0B 00 2D BC 00 F7 C6 57 01 C3 1B 49 A8 90 00 49 [19:27:40]RAPDU: F7 C6 57 01 C3 1B 49 A8 90 00 [19:27:40]wFMCommunicate OK [19:27:40]SAM_PROTO_SignData done [19:27:40]FM_MakeSignedData done [19:27:40]CreateOFDProtocolMessage [19:27:40]wFMCommunicate request_size=4 [19:27:40]MH_SAM_APDU [19:27:40]CAPDU: 80 11 00 00 [19:27:40]Write to MH i2c: E2 08 00 2E BC 80 11 00 00 00 00 00 00 64 [19:27:40]Write i2c OK [19:27:40]MH_I2C_Read... [19:27:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:40]Read from MH i2c: E2 [19:27:40]MH_I2C_Read... [19:27:40]Read from MH i2c: E2 17 00 [19:27:40]MH_I2C_Read... [19:27:40]Read from MH i2c: E2 17 00 2E BC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B1 [19:27:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:27:40]wFMCommunicate OK [19:27:40]CreateOFDProtocolMessage done [19:27:40]OFDSenderStorePacket 260885 [19:27:40]StoreOFDPacket docnum=260885 [19:27:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 84 85 07 01 5A 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 01 00 00 F4 03 04 00 31 4B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 15 FB 03 00 35 04 06 00 B8 1A 41 78 D8 70 F7 C6 57 01 C3 1B 49 A8 [19:27:40]CheckFolder [19:27:40]dirname=/storage/ofd_packets [19:27:40]CheckFolder done [19:27:40]ProducePacketName [19:27:40]name=ofd_packets/00260885 [19:27:40]NVStorageSaveData ofd_packets/00260885 [19:27:40]File name is /storage/ofd_packets/00260885 [19:27:40]Write 301 bytes [19:27:40]NVStorageSaveData done [19:27:40]OFDSenderStorePacket done [19:27:40]KKMCreateOFDPacket done [19:27:40]NVStorageSaveData kkm_last_timestamp [19:27:40]File name is /storage/kkm_last_timestamp [19:27:40]Write 4 bytes [19:27:40]NVStorageSaveData done [19:27:40]ExternCall_PrintAddStr [19:27:40]wPrintStart [19:27:40]Write to MH i2c: 01 00 00 2F BC EB [19:27:40]Write i2c OK [19:27:40]MH_I2C_Read... [19:27:40]Read from MH i2c: 01 [19:27:40]MH_I2C_Read... [19:27:40]Read from MH i2c: 01 07 00 [19:27:40]MH_I2C_Read... [19:27:40]Read from MH i2c: 01 07 00 2F BC 00 00 00 00 00 FF 0F 00 [19:27:40]RasterBufferAndPrint [19:27:40]line Счет N : (1)1036437 [19:27:40]line ИНН: 02508201610067 [19:27:40]line Контрольно-Кассовый Чек [19:27:40]line ПРОДАЖА [19:27:40]line ТРК (МРК, ГНК) : 22 [19:27:40]line Товар: 2710124130 [19:27:40]line Аи-92-К-5 [19:27:40]line 14.750 * 67.80 [19:27:40]line = 1000.05 [19:27:40]line НДС 12% НСП 1% [19:27:40]line > о реализуемом товаре [19:27:40]line ОКРУГЛЕНИЕ: -0.05 [19:27:40]line ИТОГО: 1000.00 [19:27:40]line Внесено: 1000.00 [19:27:40]line СДАЧА: 0.00 [19:27:40]line НСП 1% : 8.85 [19:27:40]line НДС 12% : 106.20 [19:27:40]line Наличными: 1000.00 [19:27:40]line Безнал.: 0.00 [19:27:40]line Место: АЗС № 94 "Партнер Нефть" [19:27:40]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [19:27:40]line СНО: Общий режим [19:27:40]line Чек 443 18.08.2024 19:27 [19:27:40]line Смена: 449 ФФД: 1.0 [19:27:40]line ЗНМ: 0300000099 [19:27:40]line РНМ: 0000000000091865 [19:27:40]line Версия ККМ: 001 [19:27:40]line ФМ: 0000000000871820 [19:27:40]line ФД: 260885 [19:27:40]line ФПД: 202422907099248 [19:27:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T192745&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260885&fm=202422907099248&tin=02508201610067®Number=0000000000091865&sum=100000 [19:27:40]written 0, free lines is 4095 [19:27:40]OFD Sender: Processing packet 260885 [packets to send 192, broken 191] [19:27:40]ProducePacketName [19:27:40]name=ofd_packets/00260885 [19:27:40]OFD Sender: To server: pG, [19:27:40]CommunicateWithHost lk.salyk.kg:30040 [19:27:40]ConnectInit lk.salyk.kg [19:27:40]Connected sock=10 [19:27: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 30 0F 01 00 00 84 85 07 01 5A 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 01 00 00 F4 03 04 00 31 4B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 15 FB 03 00 35 04 06 00 B8 1A 41 78 D8 70 F7 C6 57 01 C3 1B 49 A8 [19:27:40]Write to MH i2c: 01 00 00 5A BC 16 [19:27:40]Write i2c OK [19:27:40]MH_I2C_Read... [19:27:40]Read from MH i2c: 01 [19:27:40]MH_I2C_Read... [19:27:40]Read from MH i2c: 01 07 00 [19:27:40]MH_I2C_Read... [19:27:40]Read from MH i2c: 01 07 00 5A BC 00 00 00 00 00 74 0C 9D [19:27:40]RasterBufferAndPrint [19:27:40]line [19:27:40]line [19:27:40]line [19:27:40]line [19:27:40]line [19:27:40]written 0, free lines is 3191 [19:27:40]MH_Cut [19:27:40]Write to MH i2c: D1 01 00 61 BC 01 EF [19:27:40]Write i2c OK [19:27:40]MH_I2C_Read... [19:27:40]Read from MH i2c: D1 [19:27:40]MH_I2C_Read... [19:27:40]Read from MH i2c: D1 01 00 [19:27:40]MH_I2C_Read... [19:27:40]Read from MH i2c: D1 01 00 61 BC 00 EE [19:27:40]Write to MH i2c: 01 00 00 62 BC 1E [19:27:40]Write i2c OK [19:27:40]MH_I2C_Read... [19:27: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 30 4F 00 00 00 B9 00 47 00 CC 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 30 10 04 04 00 15 FB 03 00 F4 03 04 00 85 F4 C1 66 B6 04 01 00 00 CC 80 EA 83 EC 06 01 B0 [19:27:40]CommunicateWithHost err = 0 [19:27:40]CheckOFDResponse [19:27:40]1017 (14) - 77093643461234 [19:27:40]1041 (16) - 0000000000871820 [19:27:40]1040 (4) - 260885 [19:27:40]1012 (4) - 18.08.2024 13:17 [19:27:40]1206 (1) - 0 [19:27:40]OFD Sender: Remove packet 260885 [19:27:40]ProducePacketName [19:27:40]name=ofd_packets/00260885 [19:27:40]NVStorageDeleteData [19:27:41]OFD Sender: No OFD packet to send [19:27:41]*** Cut start [19:27:41]*** Purtial cut [19:27:41]*** Stage 1: CUTSNS_PIN = 1 [19:27:43]Read from MH i2c: 01 [19:27:43]MH_I2C_Read... [19:27:43]*** Stop cut motor [19:27:43]*** Cut end [19:27:43]Read from MH i2c: 01 07 00 [19:27:43]MH_I2C_Read... [19:27:43]Read from MH i2c: 01 07 00 62 BC 00 00 00 00 00 FF 0F 33 [19:27:43]process_action close_receipt done [19:27:43]requested_data is exist [19:27:43]produce_requested_data [19:27:43]requested_item fm.sn is exist - process it [19:27:43]wFMCommunicate request_size=4 [19:27:43]MH_SAM_APDU [19:27:43]CAPDU: 80 11 00 00 [19:27:43]Write to MH i2c: E2 08 00 63 BC 80 11 00 00 00 00 00 00 99 [19:27:43]Write i2c OK [19:27:43]MH_I2C_Read... [19:27:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:43]Read from MH i2c: E2 [19:27:43]MH_I2C_Read... [19:27:43]Read from MH i2c: E2 17 00 [19:27:43]MH_I2C_Read... [19:27:43]Read from MH i2c: E2 17 00 63 BC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E6 [19:27:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:27:43]wFMCommunicate OK [19:27:43]requested_item fd.num is exist - process it [19:27:43]SAM_PROTO_GetFieldsCounters [19:27:43]wFMCommunicate request_size=4 [19:27:43]MH_SAM_APDU [19:27:43]CAPDU: 80 13 00 00 [19:27:43]Write to MH i2c: E2 08 00 64 BC 80 13 00 00 00 00 00 00 9C [19:27:43]Write i2c OK [19:27:43]MH_I2C_Read... [19:27:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:27:44]Read from MH i2c: E2 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 62 00 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 62 00 64 BC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 15 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 BB 01 00 00 5E 04 04 00 BB 01 00 00 57 04 04 00 BC 01 00 00 19 04 04 00 00 00 00 00 90 00 C4 [19: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 15 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 BB 01 00 00 5E 04 04 00 BB 01 00 00 57 04 04 00 BC 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:27:44]wFMCommunicate OK [19:27:44]SAM_PROTO_GetFieldsCounters done [19:27:44]requested_item shift.num is exist - process it [19:27:44]requested_item shift.opened is exist - process it [19:27:44]req_shift_opened [19:27:44]FM_GetShiftState [19:27:44]SAM_PROTO_GetShiftState [19:27:44]wFMCommunicate request_size=4 [19:27:44]MH_SAM_APDU [19:27:44]CAPDU: 80 13 01 00 [19:27:44]Write to MH i2c: E2 08 00 65 BC 80 13 01 00 00 00 00 00 9E [19:27:44]Write i2c OK [19:27:44]MH_I2C_Read... [19:27:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:44]Read from MH i2c: E2 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 0E 00 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 0E 00 65 BC 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 DB [19:27:44]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:27:44]wFMCommunicate OK [19:27:44]SAM_PROTO_GetShiftState done [19:27:44]FM_GetShiftState done [19:27:44]req_shift_opened done [19:27:44]requested_item shift.open_date is exist - process it [19:27:44]req_shift_open_date [19:27:44]req_shift_open_date done [19:27:44]produce_requested_data done [19:27:44]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260885,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [19:27:44]process_action_free close_receipt [19:27:44]json_value_free [19:27:44]json_value_free done [19:27:44]process_json_proto returns [19:27:44]Send response to host [19:27:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260885,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [19:27:44]free response buf [19:27:44]execute_script done [19:27:44]execute_script returns [19:27:44]free content buf [19:27:44]Sock 9.Close socket [19:27:44]Sock 9.Thread stoped [19:27:46]OFD Sender: No OFD packet to send [19:27:51]OFD Sender: No OFD packet to send [19:27:56]OFD Sender: No OFD packet to send [19:28:01]OFD Sender: No OFD packet to send [19:28:06]OFD Sender: No OFD packet to send [19:28:11]OFD Sender: No OFD packet to send [19:28:16]OFD Sender: No OFD packet to send [19:28:20]accept exits with 7 [19:28:20]New connection [19:28:20]New thread 3066473828 created [19:28:20]Thread 3066617188 joined [19:28:20]Waiting for new connection... [19:28:20] Sock 7.Parse request [19:28:20]Sock 7.Check first char [19:28:20]Sock 7.First char is OK [19:28:20]request: POST /json_proto HTTP/1.0 [19:28:20]Method: POST [19:28:20]URL: /json_proto [19:28:20]Method is POST - this is cgi request [19:28:20]url: /json_proto [19:28:20]query_string will be loaded in cgi processing [19:28:20]execute_cgi json_proto POST (null) [19:28:20]execute_cgi path=json_proto method=POST [19:28:20]POST find Content-Length [19:28:20]Host: 172.17.55.133:8080 [19:28:20]Content-Length: 679 [19:28:20]Content-Type: application/json [19:28:20] [19:28:20]POST finish read [19:28:20]Found Content-Length = 679 [19:28:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.180, "sum" : 690.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 690.00, "total" : 690.00, "payments": [ { "type": 0, "sum" : 690.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:20]execute_script... [19:28: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)1036438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.180, "sum" : 690.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 690.00, "total" : 690.00, "payments": [ { "type": 0, "sum" : 690.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:20]POST & json_proto [19:28:20]process_json_proto [19:28:20]json parsed OK: [19:28:20]protocol is kg_v1.0 [19:28:20]action value=close_receipt [19:28:20]process_action close_receipt [19:28:20]cmd_close_receipt [19:28:20]MH_GetDate [19:28:20]Write to MH i2c: F0 00 00 66 BC 11 [19:28:20]Write i2c OK [19:28:20]MH_I2C_Read... [19:28:20]Read from MH i2c: F0 [19:28:20]MH_I2C_Read... [19:28:20]Read from MH i2c: F0 09 00 [19:28:20]MH_I2C_Read... [19:28:20]Read from MH i2c: F0 09 00 66 BC 00 5A 4B C2 66 34 48 D8 65 A0 [19:28:20]GetLastDocTimeStamp 1724009265 [19:28:20]current date 1724009306 [19:28:20]FM_GetShiftState [19:28:20]SAM_PROTO_GetShiftState [19:28:20]wFMCommunicate request_size=4 [19:28:20]MH_SAM_APDU [19:28:20]CAPDU: 80 13 01 00 [19:28:20]Write to MH i2c: E2 08 00 67 BC 80 13 01 00 00 00 00 00 A0 [19:28:20]Write i2c OK [19:28:20]MH_I2C_Read... [19:28:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:20]Read from MH i2c: E2 [19:28:20]MH_I2C_Read... [19:28:20]Read from MH i2c: E2 0E 00 [19:28:20]MH_I2C_Read... [19:28:20]Read from MH i2c: E2 0E 00 67 BC 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 DD [19:28:20]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:28:20]wFMCommunicate OK [19:28:20]SAM_PROTO_GetShiftState done [19:28:20]FM_GetShiftState done [19:28:20]opened in 1723940556 [19:28:20]opened+sec_in_day 1724026956 [19:28:20]quantity*price = 69020 [19:28:20]sum+1 = 69021 [19:28:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 690.00 Внесено: 690.00 СДАЧА: 0.00 НСП 1% : 6.11 НДС 12% : 73.30 Наличными: 690.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 444 18.08.2024 19:28 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260886 ФПД: 85958388018789 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T192826&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260886&fm=85958388018789&tin=02508201610067®Number=0000000000091865&sum=69000 [19:28:21]StoreToDocumentArchive [19:28:21]shift 449 fd 260886 [19:28:21]save to /storage/0449/doc_00260886 [19:28:21]save last doc name /storage/0449/doc_00260886 to /storage/kkm_last_doc_name [19:28:21]save OK [19:28:21]Clear old archive folders... [19:28:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:28:21]tlvbuf is 00336930 [19:28:21]SAM_PROTO_ClearQueue [19:28:21]wFMCommunicate request_size=4 [19:28:21]MH_SAM_APDU [19:28:21]CAPDU: 80 09 00 00 [19:28:21]Write to MH i2c: E2 08 00 74 BC 80 09 00 00 00 00 00 00 A2 [19:28:21]Write i2c OK [19:28:21]MH_I2C_Read... [19:28:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:28:21]Read from MH i2c: E2 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: E2 03 00 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: E2 03 00 74 BC 00 90 00 A4 [19:28:21]RAPDU: 90 00 [19:28:21]wFMCommunicate OK [19:28:21]SAM_PROTO_ClearQueue done [19:28:21]KKMCreateOFDPacket [19:28:21]OFDProtocolAddRootSTLVToBuf [19:28:21]FM_MakeSignedData [19:28:21]FM_MakeSignedData [19:28:21]SAM_PROTO_SignData [19:28:21]wFMCommunicate request_size=4 [19:28:21]MH_SAM_APDU [19:28:21]CAPDU: 80 0D 01 02 [19:28:21]Write to MH i2c: E2 08 00 75 BC 80 0D 01 02 00 00 00 00 AA [19:28:21]Write i2c OK [19:28:21]MH_I2C_Read... [19:28:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:28:21]Read from MH i2c: E2 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: E2 03 00 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: E2 03 00 75 BC 00 90 00 A5 [19:28:21]RAPDU: 90 00 [19:28:21]wFMCommunicate OK [19:28:21]wFMCommunicate request_size=255 [19:28:21]MH_SAM_APDU [19:28:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 9C 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 1C 00 00 00 00 07 04 06 00 88 0D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 01 00 00 F4 03 04 00 5A 4B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 16 FB 03 00 35 04 06 00 4E [19:28:21]Write to MH i2c: E2 02 01 76 BC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 9C 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 1C 00 00 00 00 07 04 06 00 88 0D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 01 00 00 F4 03 04 00 5A 4B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 16 FB 03 00 35 04 06 00 4E 00 00 DA [19:28:21]Write i2c OK [19:28:21]MH_I2C_Read... [19:28:21]OFD Sender: No OFD packet to send [19:28:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:21]Read from MH i2c: E2 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: E2 03 00 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: E2 03 00 76 BC 00 90 00 A6 [19:28:21]RAPDU: 90 00 [19:28:21]wFMCommunicate OK [19:28:21]wFMCommunicate request_size=10 [19:28:21]MH_SAM_APDU [19:28:21]CAPDU: 80 0D 02 02 05 2D BF 2E EE 65 [19:28:21]Write to MH i2c: E2 0D 00 77 BC 80 0D 02 02 05 00 2D BF 2E EE 65 00 00 24 [19:28:21]Write i2c OK [19:28:21]MH_I2C_Read... [19:28:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:21]Read from MH i2c: E2 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: E2 03 00 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: E2 03 00 77 BC 00 90 00 A7 [19:28:21]RAPDU: 90 00 [19:28:21]wFMCommunicate OK [19:28:21]wFMCommunicate request_size=4 [19:28:21]MH_SAM_APDU [19:28:21]CAPDU: 80 0D 03 02 [19:28:21]Write to MH i2c: E2 08 00 78 BC 80 0D 03 02 00 00 00 00 AF [19:28:21]Write i2c OK [19:28:21]MH_I2C_Read... [19:28:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:28:21]Read from MH i2c: E2 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: E2 0B 00 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: E2 0B 00 78 BC 00 AF 1C 52 5C 4F E6 C7 D2 90 00 F7 [19:28:21]RAPDU: AF 1C 52 5C 4F E6 C7 D2 90 00 [19:28:21]wFMCommunicate OK [19:28:21]SAM_PROTO_SignData done [19:28:21]FM_MakeSignedData done [19:28:21]CreateOFDProtocolMessage [19:28:21]wFMCommunicate request_size=4 [19:28:21]MH_SAM_APDU [19:28:21]CAPDU: 80 11 00 00 [19:28:21]Write to MH i2c: E2 08 00 79 BC 80 11 00 00 00 00 00 00 AF [19:28:21]Write i2c OK [19:28:21]MH_I2C_Read... [19:28:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:21]Read from MH i2c: E2 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: E2 17 00 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: E2 17 00 79 BC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 FC [19:28:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:28:21]wFMCommunicate OK [19:28:21]CreateOFDProtocolMessage done [19:28:21]OFDSenderStorePacket 260886 [19:28:21]StoreOFDPacket docnum=260886 [19:28:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 A8 D2 07 01 D1 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 9C 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 1C 00 00 00 00 07 04 06 00 88 0D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 01 00 00 F4 03 04 00 5A 4B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 16 FB 03 00 35 04 06 00 4E 2D BF 2E EE 65 AF 1C 52 5C 4F E6 C7 D2 [19:28:21]CheckFolder [19:28:21]dirname=/storage/ofd_packets [19:28:21]CheckFolder done [19:28:21]ProducePacketName [19:28:21]name=ofd_packets/00260886 [19:28:21]NVStorageSaveData ofd_packets/00260886 [19:28:21]File name is /storage/ofd_packets/00260886 [19:28:21]Write 301 bytes [19:28:21]NVStorageSaveData done [19:28:21]OFDSenderStorePacket done [19:28:21]KKMCreateOFDPacket done [19:28:21]NVStorageSaveData kkm_last_timestamp [19:28:21]File name is /storage/kkm_last_timestamp [19:28:21]Write 4 bytes [19:28:21]NVStorageSaveData done [19:28:21]ExternCall_PrintAddStr [19:28:21]wPrintStart [19:28:21]Write to MH i2c: 01 00 00 7A BC 36 [19:28:21]Write i2c OK [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: 01 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: 01 07 00 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: 01 07 00 7A BC 00 00 00 00 00 FF 0F 4B [19:28:21]RasterBufferAndPrint [19:28:21]line Счет N : (1)1036438 [19:28:21]line ИНН: 02508201610067 [19:28:21]line Контрольно-Кассовый Чек [19:28:21]line ПРОДАЖА [19:28:21]line ТРК (МРК, ГНК) : 42 [19:28:21]line Товар: 2710124130 [19:28:21]line Аи-92-К-5 [19:28:21]line 10.180 * 67.80 [19:28:21]line = 690.20 [19:28:21]line НДС 12% НСП 1% [19:28:21]line > о реализуемом товаре [19:28:21]line ОКРУГЛЕНИЕ: -0.20 [19:28:21]line ИТОГО: 690.00 [19:28:21]line Внесено: 690.00 [19:28:21]line СДАЧА: 0.00 [19:28:21]line НСП 1% : 6.11 [19:28:21]line НДС 12% : 73.30 [19:28:21]line Наличными: 690.00 [19:28:21]line Безнал.: 0.00 [19:28:21]line Место: АЗС № 94 "Партнер Нефть" [19:28:21]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [19:28:21]line СНО: Общий режим [19:28:21]line Чек 444 18.08.2024 19:28 [19:28:21]line Смена: 449 ФФД: 1.0 [19:28:21]line ЗНМ: 0300000099 [19:28:21]line РНМ: 0000000000091865 [19:28:21]line Версия ККМ: 001 [19:28:21]line ФМ: 0000000000871820 [19:28:21]line ФД: 260886 [19:28:21]line ФПД: 85958388018789 [19:28:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T192826&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260886&fm=85958388018789&tin=02508201610067®Number=0000000000091865&sum=69000 [19:28:22]OFD Sender: Processing packet 260886 [packets to send 192, broken 191] [19:28:22]ProducePacketName [19:28:22]name=ofd_packets/00260886 [19:28:22]OFD Sender: To server: pG, [19:28:22]CommunicateWithHost lk.salyk.kg:30040 [19:28:22]ConnectInit lk.salyk.kg [19:28:22]written 0, free lines is 4095 [19:28:22]Connected sock=10 [19:28: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 30 0F 01 00 00 A8 D2 07 01 D1 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 9C 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 1C 00 00 00 00 07 04 06 00 88 0D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 01 00 00 F4 03 04 00 5A 4B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 16 FB 03 00 35 04 06 00 4E 2D BF 2E EE 65 AF 1C 52 5C 4F E6 C7 D2 [19:28: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 30 4F 00 00 00 86 5C 47 00 4E D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 16 FB 03 00 F4 03 04 00 AE F4 C1 66 B6 04 01 00 00 25 49 EE 85 E9 D8 27 6A [19:28:22]CommunicateWithHost err = 0 [19:28:22]CheckOFDResponse [19:28:22]1017 (14) - 77093643461234 [19:28:22]1041 (16) - 0000000000871820 [19:28:22]1040 (4) - 260886 [19:28:22]1012 (4) - 18.08.2024 13:18 [19:28:22]1206 (1) - 0 [19:28:22]OFD Sender: Remove packet 260886 [19:28:22]ProducePacketName [19:28:22]name=ofd_packets/00260886 [19:28:22]NVStorageDeleteData [19:28:22]Write to MH i2c: 01 00 00 A5 BC 61 [19:28:22]Write i2c OK [19:28:22]MH_I2C_Read... [19:28:22]Read from MH i2c: 01 [19:28:22]MH_I2C_Read... [19:28:22]Read from MH i2c: 01 07 00 [19:28:22]MH_I2C_Read... [19:28:22]Read from MH i2c: 01 07 00 A5 BC 00 00 00 00 00 70 0C E4 [19:28:22]RasterBufferAndPrint [19:28:22]line [19:28:22]line [19:28:22]line [19:28:22]line [19:28:22]line [19:28:22]written 0, free lines is 3187 [19:28:22]MH_Cut [19:28:22]Write to MH i2c: D1 01 00 AC BC 01 3A [19:28:22]Write i2c OK [19:28:22]MH_I2C_Read... [19:28:22]Read from MH i2c: D1 [19:28:22]MH_I2C_Read... [19:28:22]Read from MH i2c: D1 01 00 [19:28:22]MH_I2C_Read... [19:28:22]Read from MH i2c: D1 01 00 AC BC 00 39 [19:28:22]Write to MH i2c: 01 00 00 AD BC 69 [19:28:22]Write i2c OK [19:28:22]MH_I2C_Read... [19:28:22]OFD Sender: No OFD packet to send [19:28:23]*** Cut start [19:28:23]*** Purtial cut [19:28:23]*** Stage 1: CUTSNS_PIN = 1 [19:28:25]Read from MH i2c: 01 [19:28:25]MH_I2C_Read... [19:28:25]*** Stop cut motor [19:28:25]*** Cut end [19:28:25]Read from MH i2c: 01 07 00 [19:28:25]MH_I2C_Read... [19:28:25]Read from MH i2c: 01 07 00 AD BC 00 00 00 00 00 FF 0F 7E [19:28:25]process_action close_receipt done [19:28:25]requested_data is exist [19:28:25]produce_requested_data [19:28:25]requested_item fm.sn is exist - process it [19:28:25]wFMCommunicate request_size=4 [19:28:25]MH_SAM_APDU [19:28:25]CAPDU: 80 11 00 00 [19:28:25]Write to MH i2c: E2 08 00 AE BC 80 11 00 00 00 00 00 00 E4 [19:28:25]Write i2c OK [19:28:25]MH_I2C_Read... [19:28:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:25]Read from MH i2c: E2 [19:28:25]MH_I2C_Read... [19:28:25]Read from MH i2c: E2 17 00 [19:28:25]MH_I2C_Read... [19:28:25]Read from MH i2c: E2 17 00 AE BC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 31 [19:28:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:28:25]wFMCommunicate OK [19:28:25]requested_item fd.num is exist - process it [19:28:25]SAM_PROTO_GetFieldsCounters [19:28:25]wFMCommunicate request_size=4 [19:28:25]MH_SAM_APDU [19:28:25]CAPDU: 80 13 00 00 [19:28:25]Write to MH i2c: E2 08 00 AF BC 80 13 00 00 00 00 00 00 E7 [19:28:25]Write i2c OK [19:28:25]MH_I2C_Read... [19:28:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:26]Read from MH i2c: E2 [19:28:26]MH_I2C_Read... [19:28:26]Read from MH i2c: E2 62 00 [19:28:26]MH_I2C_Read... [19:28:26]Read from MH i2c: E2 62 00 AF BC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 16 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 BC 01 00 00 5E 04 04 00 BC 01 00 00 57 04 04 00 BD 01 00 00 19 04 04 00 00 00 00 00 90 00 13 [19:28: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 16 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 BC 01 00 00 5E 04 04 00 BC 01 00 00 57 04 04 00 BD 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:28:26]wFMCommunicate OK [19:28:26]SAM_PROTO_GetFieldsCounters done [19:28:26]requested_item shift.num is exist - process it [19:28:26]requested_item shift.opened is exist - process it [19:28:26]req_shift_opened [19:28:26]FM_GetShiftState [19:28:26]SAM_PROTO_GetShiftState [19:28:26]wFMCommunicate request_size=4 [19:28:26]MH_SAM_APDU [19:28:26]CAPDU: 80 13 01 00 [19:28:26]Write to MH i2c: E2 08 00 B0 BC 80 13 01 00 00 00 00 00 E9 [19:28:26]Write i2c OK [19:28:26]MH_I2C_Read... [19:28:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:26]Read from MH i2c: E2 [19:28:26]MH_I2C_Read... [19:28:26]Read from MH i2c: E2 0E 00 [19:28:26]MH_I2C_Read... [19:28:26]Read from MH i2c: E2 0E 00 B0 BC 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 26 [19:28:26]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:28:26]wFMCommunicate OK [19:28:26]SAM_PROTO_GetShiftState done [19:28:26]FM_GetShiftState done [19:28:26]req_shift_opened done [19:28:26]requested_item shift.open_date is exist - process it [19:28:26]req_shift_open_date [19:28:26]req_shift_open_date done [19:28:26]produce_requested_data done [19:28:26]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260886,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [19:28:26]process_action_free close_receipt [19:28:26]json_value_free [19:28:26]json_value_free done [19:28:26]process_json_proto returns [19:28:26]Send response to host [19:28:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260886,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [19:28:26]free response buf [19:28:26]execute_script done [19:28:26]execute_script returns [19:28:26]free content buf [19:28:26]Sock 7.Close socket [19:28:26]Sock 7.Thread stoped [19:28:28]OFD Sender: No OFD packet to send [19:28:33]OFD Sender: No OFD packet to send [19:28:38]OFD Sender: No OFD packet to send [19:28:43]OFD Sender: No OFD packet to send [19:28:48]OFD Sender: No OFD packet to send [19:28:53]OFD Sender: No OFD packet to send [19:28:58]OFD Sender: No OFD packet to send [19:29:03]OFD Sender: No OFD packet to send [19:29:08]OFD Sender: No OFD packet to send [19:29:13]OFD Sender: No OFD packet to send [19:29:18]OFD Sender: No OFD packet to send [19:29:23]OFD Sender: No OFD packet to send [19:29:26]accept exits with 9 [19:29:26]New connection [19:29:26]New thread 3066617188 created [19:29:26]Thread 3066473828 joined [19:29:26]Waiting for new connection... [19:29:26] Sock 9.Parse request [19:29:26]Sock 9.Check first char [19:29:26]Sock 9.First char is OK [19:29:26]request: POST /json_proto HTTP/1.0 [19:29:26]Method: POST [19:29:26]URL: /json_proto [19:29:26]Method is POST - this is cgi request [19:29:26]url: /json_proto [19:29:26]query_string will be loaded in cgi processing [19:29:26]execute_cgi json_proto POST (null) [19:29:26]execute_cgi path=json_proto method=POST [19:29:26]POST find Content-Length [19:29:26]Host: 172.17.55.133:8080 [19:29:26]Content-Length: 678 [19:29:26]Content-Type: application/json [19:29:26] [19:29:26]POST finish read [19:29:26]Found Content-Length = 678 [19:29:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036439", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:26]execute_script... [19:29: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)1036439", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:26]POST & json_proto [19:29:26]process_json_proto [19:29:26]json parsed OK: [19:29:26]protocol is kg_v1.0 [19:29:26]action value=close_receipt [19:29:26]process_action close_receipt [19:29:26]cmd_close_receipt [19:29:26]MH_GetDate [19:29:26]Write to MH i2c: F0 00 00 B1 BC 5C [19:29:26]Write i2c OK [19:29:26]MH_I2C_Read... [19:29:26]Read from MH i2c: F0 [19:29:26]MH_I2C_Read... [19:29:26]Read from MH i2c: F0 09 00 [19:29:26]MH_I2C_Read... [19:29:26]Read from MH i2c: F0 09 00 B1 BC 00 9D 4B C2 66 34 48 D8 65 2E [19:29:26]GetLastDocTimeStamp 1724009306 [19:29:26]current date 1724009373 [19:29:26]FM_GetShiftState [19:29:26]SAM_PROTO_GetShiftState [19:29:26]wFMCommunicate request_size=4 [19:29:26]MH_SAM_APDU [19:29:26]CAPDU: 80 13 01 00 [19:29:26]Write to MH i2c: E2 08 00 B2 BC 80 13 01 00 00 00 00 00 EB [19:29:26]Write i2c OK [19:29:26]MH_I2C_Read... [19:29:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:26]Read from MH i2c: E2 [19:29:26]MH_I2C_Read... [19:29:26]Read from MH i2c: E2 0E 00 [19:29:26]MH_I2C_Read... [19:29:26]Read from MH i2c: E2 0E 00 B2 BC 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 28 [19:29:26]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:29:26]wFMCommunicate OK [19:29:26]SAM_PROTO_GetShiftState done [19:29:26]FM_GetShiftState done [19:29:26]opened in 1723940556 [19:29:26]opened+sec_in_day 1724026956 [19:29:26]quantity*price = 50010 [19:29:26]sum+1 = 50012 [19:29:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 445 18.08.2024 19:29 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260887 ФПД: 76052815985135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T192933&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260887&fm=76052815985135&tin=02508201610067®Number=0000000000091865&sum=50000 [19:29:27]StoreToDocumentArchive [19:29:27]shift 449 fd 260887 [19:29:27]save to /storage/0449/doc_00260887 [19:29:27]save last doc name /storage/0449/doc_00260887 to /storage/kkm_last_doc_name [19:29:27]save OK [19:29:27]Clear old archive folders... [19:29:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:29:27]tlvbuf is 00336450 [19:29:27]SAM_PROTO_ClearQueue [19:29:27]wFMCommunicate request_size=4 [19:29:27]MH_SAM_APDU [19:29:27]CAPDU: 80 09 00 00 [19:29:27]Write to MH i2c: E2 08 00 BF BC 80 09 00 00 00 00 00 00 ED [19:29:27]Write i2c OK [19:29:27]MH_I2C_Read... [19:29:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:29:27]Read from MH i2c: E2 [19:29:27]MH_I2C_Read... [19:29:27]Read from MH i2c: E2 03 00 [19:29:27]MH_I2C_Read... [19:29:27]Read from MH i2c: E2 03 00 BF BC 00 90 00 EF [19:29:27]RAPDU: 90 00 [19:29:27]wFMCommunicate OK [19:29:27]SAM_PROTO_ClearQueue done [19:29:27]KKMCreateOFDPacket [19:29:27]OFDProtocolAddRootSTLVToBuf [19:29:27]FM_MakeSignedData [19:29:27]FM_MakeSignedData [19:29:27]SAM_PROTO_SignData [19:29:27]wFMCommunicate request_size=4 [19:29:27]MH_SAM_APDU [19:29:27]CAPDU: 80 0D 01 02 [19:29:27]Write to MH i2c: E2 08 00 C0 BC 80 0D 01 02 00 00 00 00 F5 [19:29:27]Write i2c OK [19:29:27]MH_I2C_Read... [19:29:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:29:27]Read from MH i2c: E2 [19:29:27]MH_I2C_Read... [19:29:27]Read from MH i2c: E2 03 00 [19:29:27]MH_I2C_Read... [19:29:27]Read from MH i2c: E2 03 00 C0 BC 00 90 00 F0 [19:29:27]RAPDU: 90 00 [19:29:27]wFMCommunicate OK [19:29:27]wFMCommunicate request_size=255 [19:29:27]MH_SAM_APDU [19:29: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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 01 00 00 F4 03 04 00 9D 4B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 17 FB 03 00 35 04 06 00 45 [19:29:27]Write to MH i2c: E2 02 01 C1 BC 80 0D 02 02 FA 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 01 00 00 F4 03 04 00 9D 4B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 17 FB 03 00 35 04 06 00 45 00 00 44 [19:29:27]Write i2c OK [19:29:27]MH_I2C_Read... [19:29:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:28]Read from MH i2c: E2 [19:29:28]MH_I2C_Read... [19:29:28]Read from MH i2c: E2 03 00 [19:29:28]MH_I2C_Read... [19:29:28]Read from MH i2c: E2 03 00 C1 BC 00 90 00 F1 [19:29:28]RAPDU: 90 00 [19:29:28]wFMCommunicate OK [19:29:28]wFMCommunicate request_size=10 [19:29:28]MH_SAM_APDU [19:29:28]CAPDU: 80 0D 02 02 05 2B 6D 14 B9 EF [19:29:28]Write to MH i2c: E2 0D 00 C2 BC 80 0D 02 02 05 00 2B 6D 14 B9 EF 00 00 56 [19:29:28]Write i2c OK [19:29:28]MH_I2C_Read... [19:29:28]OFD Sender: No OFD packet to send [19:29:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:28]Read from MH i2c: E2 [19:29:28]MH_I2C_Read... [19:29:28]Read from MH i2c: E2 03 00 [19:29:28]MH_I2C_Read... [19:29:28]Read from MH i2c: E2 03 00 C2 BC 00 90 00 F2 [19:29:28]RAPDU: 90 00 [19:29:28]wFMCommunicate OK [19:29:28]wFMCommunicate request_size=4 [19:29:28]MH_SAM_APDU [19:29:28]CAPDU: 80 0D 03 02 [19:29:28]Write to MH i2c: E2 08 00 C3 BC 80 0D 03 02 00 00 00 00 FA [19:29:28]Write i2c OK [19:29:28]MH_I2C_Read... [19:29:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:29:28]Read from MH i2c: E2 [19:29:28]MH_I2C_Read... [19:29:28]Read from MH i2c: E2 0B 00 [19:29:28]MH_I2C_Read... [19:29:28]Read from MH i2c: E2 0B 00 C3 BC 00 32 10 FD A8 24 D7 57 C7 90 00 FB [19:29:28]RAPDU: 32 10 FD A8 24 D7 57 C7 90 00 [19:29:28]wFMCommunicate OK [19:29:28]SAM_PROTO_SignData done [19:29:28]FM_MakeSignedData done [19:29:28]CreateOFDProtocolMessage [19:29:28]wFMCommunicate request_size=4 [19:29:28]MH_SAM_APDU [19:29:28]CAPDU: 80 11 00 00 [19:29:28]Write to MH i2c: E2 08 00 C4 BC 80 11 00 00 00 00 00 00 FA [19:29:28]Write i2c OK [19:29:28]MH_I2C_Read... [19:29:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:28]Read from MH i2c: E2 [19:29:28]MH_I2C_Read... [19:29:28]Read from MH i2c: E2 17 00 [19:29:28]MH_I2C_Read... [19:29:28]Read from MH i2c: E2 17 00 C4 BC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 47 [19:29:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:29:28]wFMCommunicate OK [19:29:28]CreateOFDProtocolMessage done [19:29:28]OFDSenderStorePacket 260887 [19:29:28]StoreOFDPacket docnum=260887 [19:29:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 49 2E 07 01 59 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 01 00 00 F4 03 04 00 9D 4B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 17 FB 03 00 35 04 06 00 45 2B 6D 14 B9 EF 32 10 FD A8 24 D7 57 C7 [19:29:28]CheckFolder [19:29:28]dirname=/storage/ofd_packets [19:29:28]CheckFolder done [19:29:28]ProducePacketName [19:29:28]name=ofd_packets/00260887 [19:29:28]NVStorageSaveData ofd_packets/00260887 [19:29:28]File name is /storage/ofd_packets/00260887 [19:29:28]Write 301 bytes [19:29:28]NVStorageSaveData done [19:29:28]OFDSenderStorePacket done [19:29:28]KKMCreateOFDPacket done [19:29:28]NVStorageSaveData kkm_last_timestamp [19:29:28]File name is /storage/kkm_last_timestamp [19:29:28]Write 4 bytes [19:29:28]NVStorageSaveData done [19:29:28]ExternCall_PrintAddStr [19:29:28]wPrintStart [19:29:28]Write to MH i2c: 01 00 00 C5 BC 81 [19:29:28]Write i2c OK [19:29:28]MH_I2C_Read... [19:29:28]Read from MH i2c: 01 [19:29:28]MH_I2C_Read... [19:29:28]Read from MH i2c: 01 07 00 [19:29:28]MH_I2C_Read... [19:29:28]Read from MH i2c: 01 07 00 C5 BC 00 00 00 00 00 FF 0F 96 [19:29:28]RasterBufferAndPrint [19:29:28]line Счет N : (1)1036439 [19:29:28]line ИНН: 02508201610067 [19:29:28]line Контрольно-Кассовый Чек [19:29:28]line ПРОДАЖА [19:29:28]line ТРК (МРК, ГНК) : 13 [19:29:28]line Товар: 2710124500 [19:29:28]line Аи-95-К-5 [19:29:28]line 6.740 * 74.20 [19:29:28]line = 500.11 [19:29:28]line НДС 12% НСП 1% [19:29:28]line > о реализуемом товаре [19:29:28]line ОКРУГЛЕНИЕ: -0.11 [19:29:28]line ИТОГО: 500.00 [19:29:28]line Внесено: 500.00 [19:29:28]line СДАЧА: 0.00 [19:29:28]line НСП 1% : 4.43 [19:29:28]line НДС 12% : 53.11 [19:29:28]line Наличными: 500.00 [19:29:28]line Безнал.: 0.00 [19:29:28]line Место: АЗС № 94 "Партнер Нефть" [19:29:28]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [19:29:28]line СНО: Общий режим [19:29:28]line Чек 445 18.08.2024 19:29 [19:29:28]line Смена: 449 ФФД: 1.0 [19:29:28]line ЗНМ: 0300000099 [19:29:28]line РНМ: 0000000000091865 [19:29:28]line Версия ККМ: 001 [19:29:28]line ФМ: 0000000000871820 [19:29:28]line ФД: 260887 [19:29:28]line ФПД: 76052815985135 [19:29:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T192933&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260887&fm=76052815985135&tin=02508201610067®Number=0000000000091865&sum=50000 [19:29:28]written 0, free lines is 4095 [19:29:28]OFD Sender: Processing packet 260887 [packets to send 192, broken 191] [19:29:28]ProducePacketName [19:29:28]name=ofd_packets/00260887 [19:29:28]OFD Sender: To server: pG, [19:29:28]CommunicateWithHost lk.salyk.kg:30040 [19:29:28]ConnectInit lk.salyk.kg [19:29:28]Connected sock=10 [19:29: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 30 0F 01 00 00 49 2E 07 01 59 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 01 00 00 F4 03 04 00 9D 4B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 17 FB 03 00 35 04 06 00 45 2B 6D 14 B9 EF 32 10 FD A8 24 D7 57 C7 [19:29: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 30 4F 00 00 00 2B 76 47 00 C1 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 30 10 04 04 00 17 FB 03 00 F4 03 04 00 F0 F4 C1 66 B6 04 01 00 00 84 3F 24 CF 29 D6 91 4E [19:29:28]CommunicateWithHost err = 0 [19:29:28]CheckOFDResponse [19:29:28]1017 (14) - 77093643461234 [19:29:28]1041 (16) - 0000000000871820 [19:29:28]1040 (4) - 260887 [19:29:28]1012 (4) - 18.08.2024 13:19 [19:29:28]1206 (1) - 0 [19:29:28]OFD Sender: Remove packet 260887 [19:29:28]ProducePacketName [19:29:28]name=ofd_packets/00260887 [19:29:28]NVStorageDeleteData [19:29:28]Write to MH i2c: 01 00 00 F0 BC AC [19:29:28]Write i2c OK [19:29:28]MH_I2C_Read... [19:29:28]Read from MH i2c: 01 [19:29:28]MH_I2C_Read... [19:29:28]Read from MH i2c: 01 07 00 [19:29:28]MH_I2C_Read... [19:29:28]Read from MH i2c: 01 07 00 F0 BC 00 00 00 00 00 78 0C 37 [19:29:28]RasterBufferAndPrint [19:29:28]line [19:29:28]line [19:29:28]line [19:29:28]line [19:29:28]line [19:29:28]written 0, free lines is 3194 [19:29:28]MH_Cut [19:29:28]Write to MH i2c: D1 01 00 F7 BC 01 85 [19:29:28]Write i2c OK [19:29:28]MH_I2C_Read... [19:29:28]Read from MH i2c: D1 [19:29:28]MH_I2C_Read... [19:29:28]Read from MH i2c: D1 01 00 [19:29:28]MH_I2C_Read... [19:29:28]Read from MH i2c: D1 01 00 F7 BC 00 84 [19:29:28]Write to MH i2c: 01 00 00 F8 BC B4 [19:29:28]Write i2c OK [19:29:28]MH_I2C_Read... [19:29:29]OFD Sender: No OFD packet to send [19:29:29]*** Cut start [19:29:29]*** Purtial cut [19:29:29]*** Stage 1: CUTSNS_PIN = 1 [19:29:31]Read from MH i2c: 01 [19:29:31]MH_I2C_Read... [19:29:31]*** Stop cut motor [19:29:31]*** Cut end [19:29:31]Read from MH i2c: 01 07 00 [19:29:31]MH_I2C_Read... [19:29:31]Read from MH i2c: 01 07 00 F8 BC 00 00 00 00 00 FF 0F C9 [19:29:31]process_action close_receipt done [19:29:31]requested_data is exist [19:29:31]produce_requested_data [19:29:31]requested_item fm.sn is exist - process it [19:29:31]wFMCommunicate request_size=4 [19:29:31]MH_SAM_APDU [19:29:31]CAPDU: 80 11 00 00 [19:29:31]Write to MH i2c: E2 08 00 F9 BC 80 11 00 00 00 00 00 00 2F [19:29:31]Write i2c OK [19:29:31]MH_I2C_Read... [19:29:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:31]Read from MH i2c: E2 [19:29:31]MH_I2C_Read... [19:29:31]Read from MH i2c: E2 17 00 [19:29:31]MH_I2C_Read... [19:29:31]Read from MH i2c: E2 17 00 F9 BC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 7C [19:29:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:29:31]wFMCommunicate OK [19:29:31]requested_item fd.num is exist - process it [19:29:31]SAM_PROTO_GetFieldsCounters [19:29:31]wFMCommunicate request_size=4 [19:29:31]MH_SAM_APDU [19:29:31]CAPDU: 80 13 00 00 [19:29:31]Write to MH i2c: E2 08 00 FA BC 80 13 00 00 00 00 00 00 32 [19:29:31]Write i2c OK [19:29:31]MH_I2C_Read... [19:29:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:29:32]Read from MH i2c: E2 [19:29:32]MH_I2C_Read... [19:29:32]Read from MH i2c: E2 62 00 [19:29:32]MH_I2C_Read... [19:29:32]Read from MH i2c: E2 62 00 FA BC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 17 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 BD 01 00 00 5E 04 04 00 BD 01 00 00 57 04 04 00 BE 01 00 00 19 04 04 00 00 00 00 00 90 00 62 [19:29: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 17 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 BD 01 00 00 5E 04 04 00 BD 01 00 00 57 04 04 00 BE 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:29:32]wFMCommunicate OK [19:29:32]SAM_PROTO_GetFieldsCounters done [19:29:32]requested_item shift.num is exist - process it [19:29:32]requested_item shift.opened is exist - process it [19:29:32]req_shift_opened [19:29:32]FM_GetShiftState [19:29:32]SAM_PROTO_GetShiftState [19:29:32]wFMCommunicate request_size=4 [19:29:32]MH_SAM_APDU [19:29:32]CAPDU: 80 13 01 00 [19:29:32]Write to MH i2c: E2 08 00 FB BC 80 13 01 00 00 00 00 00 34 [19:29:32]Write i2c OK [19:29:32]MH_I2C_Read... [19:29:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:32]Read from MH i2c: E2 [19:29:32]MH_I2C_Read... [19:29:32]Read from MH i2c: E2 0E 00 [19:29:32]MH_I2C_Read... [19:29:32]Read from MH i2c: E2 0E 00 FB BC 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 71 [19:29:32]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:29:32]wFMCommunicate OK [19:29:32]SAM_PROTO_GetShiftState done [19:29:32]FM_GetShiftState done [19:29:32]req_shift_opened done [19:29:32]requested_item shift.open_date is exist - process it [19:29:32]req_shift_open_date [19:29:32]req_shift_open_date done [19:29:32]produce_requested_data done [19:29:32]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260887,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [19:29:32]process_action_free close_receipt [19:29:32]json_value_free [19:29:32]json_value_free done [19:29:32]process_json_proto returns [19:29:32]Send response to host [19:29:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260887,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [19:29:32]free response buf [19:29:32]execute_script done [19:29:32]execute_script returns [19:29:32]free content buf [19:29:32]Sock 9.Close socket [19:29:32]Sock 9.Thread stoped [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:28]accept exits with 7 [19:31:28]New connection [19:31:28]New thread 3066473828 created [19:31:28]Thread 3066617188 joined [19:31:28]Waiting for new connection... [19:31:28] Sock 7.Parse request [19:31:28]Sock 7.Check first char [19:31:28]Sock 7.First char is OK [19:31:28]request: POST /json_proto HTTP/1.0 [19:31:28]Method: POST [19:31:28]URL: /json_proto [19:31:28]Method is POST - this is cgi request [19:31:28]url: /json_proto [19:31:28]query_string will be loaded in cgi processing [19:31:28]execute_cgi json_proto POST (null) [19:31:28]execute_cgi path=json_proto method=POST [19:31:28]POST find Content-Length [19:31:28]Host: 172.17.55.133:8080 [19:31:28]Content-Length: 683 [19:31:28]Content-Type: application/json [19:31:28] [19:31:28]POST finish read [19:31:28]Found Content-Length = 683 [19:31:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036440", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:28]execute_script... [19:31: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)1036440", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:28]POST & json_proto [19:31:28]process_json_proto [19:31:28]json parsed OK: [19:31:28]protocol is kg_v1.0 [19:31:28]action value=close_receipt [19:31:28]process_action close_receipt [19:31:28]cmd_close_receipt [19:31:28]MH_GetDate [19:31:28]Write to MH i2c: F0 00 00 FC BC A7 [19:31:28]Write i2c OK [19:31:28]MH_I2C_Read... [19:31:28]Read from MH i2c: F0 [19:31:28]MH_I2C_Read... [19:31:28]Read from MH i2c: F0 09 00 [19:31:28]MH_I2C_Read... [19:31:28]Read from MH i2c: F0 09 00 FC BC 00 16 4C C2 66 34 48 D8 65 F3 [19:31:28]GetLastDocTimeStamp 1724009373 [19:31:28]current date 1724009494 [19:31:28]FM_GetShiftState [19:31:28]SAM_PROTO_GetShiftState [19:31:28]wFMCommunicate request_size=4 [19:31:28]MH_SAM_APDU [19:31:28]CAPDU: 80 13 01 00 [19:31:28]Write to MH i2c: E2 08 00 FD BC 80 13 01 00 00 00 00 00 36 [19:31:28]Write i2c OK [19:31:28]MH_I2C_Read... [19:31:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:28]Read from MH i2c: E2 [19:31:28]MH_I2C_Read... [19:31:28]Read from MH i2c: E2 0E 00 [19:31:28]MH_I2C_Read... [19:31:28]Read from MH i2c: E2 0E 00 FD BC 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 73 [19:31:28]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:31:28]wFMCommunicate OK [19:31:28]SAM_PROTO_GetShiftState done [19:31:28]FM_GetShiftState done [19:31:28]opened in 1723940556 [19:31:28]opened+sec_in_day 1724026956 [19:31:28]quantity*price = 100021 [19:31:28]sum+1 = 100023 [19:31:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 446 18.08.2024 19:31 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260888 ФПД: 101577755187773 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T193134&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260888&fm=101577755187773&tin=02508201610067®Number=0000000000091865&sum=100000 [19:31:29]StoreToDocumentArchive [19:31:29]shift 449 fd 260888 [19:31:29]save to /storage/0449/doc_00260888 [19:31:29]save last doc name /storage/0449/doc_00260888 to /storage/kkm_last_doc_name [19:31:29]save OK [19:31:29]Clear old archive folders... [19:31:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:31:29]tlvbuf is 004A2150 [19:31:29]SAM_PROTO_ClearQueue [19:31:29]wFMCommunicate request_size=4 [19:31:29]MH_SAM_APDU [19:31:29]CAPDU: 80 09 00 00 [19:31:29]Write to MH i2c: E2 08 00 0A BD 80 09 00 00 00 00 00 00 39 [19:31:29]Write i2c OK [19:31:29]MH_I2C_Read... [19:31:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:31:29]Read from MH i2c: E2 [19:31:29]MH_I2C_Read... [19:31:29]Read from MH i2c: E2 03 00 [19:31:29]MH_I2C_Read... [19:31:29]Read from MH i2c: E2 03 00 0A BD 00 90 00 3B [19:31:29]RAPDU: 90 00 [19:31:29]wFMCommunicate OK [19:31:29]SAM_PROTO_ClearQueue done [19:31:29]KKMCreateOFDPacket [19:31:29]OFDProtocolAddRootSTLVToBuf [19:31:29]FM_MakeSignedData [19:31:29]FM_MakeSignedData [19:31:29]SAM_PROTO_SignData [19:31:29]wFMCommunicate request_size=4 [19:31:29]MH_SAM_APDU [19:31:29]CAPDU: 80 0D 01 02 [19:31:29]Write to MH i2c: E2 08 00 0B BD 80 0D 01 02 00 00 00 00 41 [19:31:29]Write i2c OK [19:31:29]MH_I2C_Read... [19:31:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:31:29]Read from MH i2c: E2 [19:31:29]MH_I2C_Read... [19:31:29]Read from MH i2c: E2 03 00 [19:31:29]MH_I2C_Read... [19:31:29]Read from MH i2c: E2 03 00 0B BD 00 90 00 3C [19:31:29]RAPDU: 90 00 [19:31:29]wFMCommunicate OK [19:31:29]wFMCommunicate request_size=255 [19:31:29]MH_SAM_APDU [19:31: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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 01 00 00 F4 03 04 00 16 4C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 18 FB 03 00 35 04 06 00 5C [19:31:29]Write to MH i2c: E2 02 01 0C BD 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 01 00 00 F4 03 04 00 16 4C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 18 FB 03 00 35 04 06 00 5C 00 00 68 [19:31:29]Write i2c OK [19:31:29]MH_I2C_Read... [19:31:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:29]Read from MH i2c: E2 [19:31:29]MH_I2C_Read... [19:31:29]Read from MH i2c: E2 03 00 [19:31:29]MH_I2C_Read... [19:31:29]Read from MH i2c: E2 03 00 0C BD 00 90 00 3D [19:31:29]RAPDU: 90 00 [19:31:29]wFMCommunicate OK [19:31:29]wFMCommunicate request_size=10 [19:31:29]MH_SAM_APDU [19:31:29]CAPDU: 80 0D 02 02 05 62 6A 03 DA 3D [19:31:29]Write to MH i2c: E2 0D 00 0D BD 80 0D 02 02 05 00 62 6A 03 DA 3D 00 00 34 [19:31:29]Write i2c OK [19:31:29]MH_I2C_Read... [19:31:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:29]Read from MH i2c: E2 [19:31:29]MH_I2C_Read... [19:31:29]Read from MH i2c: E2 03 00 [19:31:29]MH_I2C_Read... [19:31:29]Read from MH i2c: E2 03 00 0D BD 00 90 00 3E [19:31:29]RAPDU: 90 00 [19:31:29]wFMCommunicate OK [19:31:29]wFMCommunicate request_size=4 [19:31:29]MH_SAM_APDU [19:31:29]CAPDU: 80 0D 03 02 [19:31:29]Write to MH i2c: E2 08 00 0E BD 80 0D 03 02 00 00 00 00 46 [19:31:29]Write i2c OK [19:31:29]MH_I2C_Read... [19:31:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:31:29]Read from MH i2c: E2 [19:31:29]MH_I2C_Read... [19:31:29]Read from MH i2c: E2 0B 00 [19:31:29]MH_I2C_Read... [19:31:29]Read from MH i2c: E2 0B 00 0E BD 00 AD 4C 25 4A F6 68 E2 73 90 00 62 [19:31:29]RAPDU: AD 4C 25 4A F6 68 E2 73 90 00 [19:31:29]wFMCommunicate OK [19:31:29]SAM_PROTO_SignData done [19:31:29]FM_MakeSignedData done [19:31:29]CreateOFDProtocolMessage [19:31:29]wFMCommunicate request_size=4 [19:31:29]MH_SAM_APDU [19:31:29]CAPDU: 80 11 00 00 [19:31:29]Write to MH i2c: E2 08 00 0F BD 80 11 00 00 00 00 00 00 46 [19:31:29]Write i2c OK [19:31:29]MH_I2C_Read... [19:31:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:30]Read from MH i2c: E2 [19:31:30]MH_I2C_Read... [19:31:30]Read from MH i2c: E2 17 00 [19:31:30]MH_I2C_Read... [19:31:30]Read from MH i2c: E2 17 00 0F BD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 93 [19:31:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:31:30]wFMCommunicate OK [19:31:30]CreateOFDProtocolMessage done [19:31:30]OFDSenderStorePacket 260888 [19:31:30]StoreOFDPacket docnum=260888 [19:31:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 D7 DA 07 01 BE 92 5A 03 01 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 01 00 00 F4 03 04 00 16 4C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 18 FB 03 00 35 04 06 00 5C 62 6A 03 DA 3D AD 4C 25 4A F6 68 E2 73 [19:31:30]CheckFolder [19:31:30]dirname=/storage/ofd_packets [19:31:30]CheckFolder done [19:31:30]ProducePacketName [19:31:30]name=ofd_packets/00260888 [19:31:30]NVStorageSaveData ofd_packets/00260888 [19:31:30]File name is /storage/ofd_packets/00260888 [19:31:30]Write 301 bytes [19:31:30]NVStorageSaveData done [19:31:30]OFDSenderStorePacket done [19:31:30]KKMCreateOFDPacket done [19:31:30]NVStorageSaveData kkm_last_timestamp [19:31:30]File name is /storage/kkm_last_timestamp [19:31:30]Write 4 bytes [19:31:30]NVStorageSaveData done [19:31:30]ExternCall_PrintAddStr [19:31:30]wPrintStart [19:31:30]Write to MH i2c: 01 00 00 10 BD CD [19:31:30]Write i2c OK [19:31:30]MH_I2C_Read... [19:31:30]Read from MH i2c: 01 [19:31:30]MH_I2C_Read... [19:31:30]Read from MH i2c: 01 07 00 [19:31:30]MH_I2C_Read... [19:31:30]Read from MH i2c: 01 07 00 10 BD 00 00 00 00 00 FF 0F E2 [19:31:30]RasterBufferAndPrint [19:31:30]line Счет N : (1)1036440 [19:31:30]line ИНН: 02508201610067 [19:31:30]line Контрольно-Кассовый Чек [19:31:30]line ПРОДАЖА [19:31:30]line ТРК (МРК, ГНК) : 13 [19:31:30]line Товар: 2710124500 [19:31:30]line Аи-95-К-5 [19:31:30]line 13.480 * 74.20 [19:31:30]line = 1000.22 [19:31:30]line НДС 12% НСП 1% [19:31:30]line > о реализуемом товаре [19:31:30]line ОКРУГЛЕНИЕ: -0.22 [19:31:30]line ИТОГО: 1000.00 [19:31:30]line Внесено: 1000.00 [19:31:30]line СДАЧА: 0.00 [19:31:30]line НСП 1% : 8.85 [19:31:30]line НДС 12% : 106.22 [19:31:30]line Наличными: 1000.00 [19:31:30]line Безнал.: 0.00 [19:31:30]line Место: АЗС № 94 "Партнер Нефть" [19:31:30]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [19:31:30]line СНО: Общий режим [19:31:30]line Чек 446 18.08.2024 19:31 [19:31:30]line Смена: 449 ФФД: 1.0 [19:31:30]line ЗНМ: 0300000099 [19:31:30]line РНМ: 0000000000091865 [19:31:30]line Версия ККМ: 001 [19:31:30]line ФМ: 0000000000871820 [19:31:30]line ФД: 260888 [19:31:30]line ФПД: 101577755187773 [19:31:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T193134&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260888&fm=101577755187773&tin=02508201610067®Number=0000000000091865&sum=100000 [19:31:30]written 0, free lines is 4095 [19:31:30]OFD Sender: Processing packet 260888 [packets to send 192, broken 191] [19:31:30]ProducePacketName [19:31:30]name=ofd_packets/00260888 [19:31:30]OFD Sender: To server: pG, [19:31:30]CommunicateWithHost lk.salyk.kg:30040 [19:31:30]ConnectInit lk.salyk.kg [19:31:30]Connected sock=10 [19:31: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 30 0F 01 00 00 D7 DA 07 01 BE 92 5A 03 01 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 01 00 00 F4 03 04 00 16 4C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 18 FB 03 00 35 04 06 00 5C 62 6A 03 DA 3D AD 4C 25 4A F6 68 E2 73 [19:31: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 30 4F 00 00 00 FD 41 47 00 D2 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 30 10 04 04 00 18 FB 03 00 F4 03 04 00 6A F5 C1 66 B6 04 01 00 00 A5 E5 BB 9A 6C 64 27 F4 [19:31:30]CommunicateWithHost err = 0 [19:31:30]CheckOFDResponse [19:31:30]1017 (14) - 77093643461234 [19:31:30]1041 (16) - 0000000000871820 [19:31:30]1040 (4) - 260888 [19:31:30]1012 (4) - 18.08.2024 13:21 [19:31:30]1206 (1) - 0 [19:31:30]OFD Sender: Remove packet 260888 [19:31:30]ProducePacketName [19:31:30]name=ofd_packets/00260888 [19:31:30]NVStorageDeleteData [19:31:30]Write to MH i2c: 01 00 00 3B BD F8 [19:31:30]Write i2c OK [19:31:30]MH_I2C_Read... [19:31:30]Read from MH i2c: 01 [19:31:30]MH_I2C_Read... [19:31:30]Read from MH i2c: 01 07 00 [19:31:30]MH_I2C_Read... [19:31:30]Read from MH i2c: 01 07 00 3B BD 00 00 00 00 00 76 0C 81 [19:31:30]RasterBufferAndPrint [19:31:30]line [19:31:30]line [19:31:30]line [19:31:30]line [19:31:30]line [19:31:30]written 0, free lines is 3192 [19:31:30]MH_Cut [19:31:30]Write to MH i2c: D1 01 00 42 BD 01 D1 [19:31:30]Write i2c OK [19:31:30]MH_I2C_Read... [19:31:30]Read from MH i2c: D1 [19:31:30]MH_I2C_Read... [19:31:30]Read from MH i2c: D1 01 00 [19:31:30]MH_I2C_Read... [19:31:30]Read from MH i2c: D1 01 00 42 BD 00 D0 [19:31:30]Write to MH i2c: 01 00 00 43 BD 00 [19:31:30]Write i2c OK [19:31:30]MH_I2C_Read... [19:31:31]OFD Sender: No OFD packet to send [19:31:31]*** Cut start [19:31:31]*** Purtial cut [19:31:31]*** Stage 1: CUTSNS_PIN = 1 [19:31:33]Read from MH i2c: 01 [19:31:33]MH_I2C_Read... [19:31:33]*** Stop cut motor [19:31:33]*** Cut end [19:31:33]Read from MH i2c: 01 07 00 [19:31:33]MH_I2C_Read... [19:31:33]Read from MH i2c: 01 07 00 43 BD 00 00 00 00 00 FF 0F 15 [19:31:33]process_action close_receipt done [19:31:33]requested_data is exist [19:31:33]produce_requested_data [19:31:33]requested_item fm.sn is exist - process it [19:31:33]wFMCommunicate request_size=4 [19:31:33]MH_SAM_APDU [19:31:33]CAPDU: 80 11 00 00 [19:31:33]Write to MH i2c: E2 08 00 44 BD 80 11 00 00 00 00 00 00 7B [19:31:33]Write i2c OK [19:31:33]MH_I2C_Read... [19:31:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:33]Read from MH i2c: E2 [19:31:33]MH_I2C_Read... [19:31:33]Read from MH i2c: E2 17 00 [19:31:33]MH_I2C_Read... [19:31:33]Read from MH i2c: E2 17 00 44 BD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C8 [19:31:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:31:33]wFMCommunicate OK [19:31:33]requested_item fd.num is exist - process it [19:31:33]SAM_PROTO_GetFieldsCounters [19:31:33]wFMCommunicate request_size=4 [19:31:33]MH_SAM_APDU [19:31:33]CAPDU: 80 13 00 00 [19:31:33]Write to MH i2c: E2 08 00 45 BD 80 13 00 00 00 00 00 00 7E [19:31:33]Write i2c OK [19:31:33]MH_I2C_Read... [19:31:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:31:34]Read from MH i2c: E2 [19:31:34]MH_I2C_Read... [19:31:34]Read from MH i2c: E2 62 00 [19:31:34]MH_I2C_Read... [19:31:34]Read from MH i2c: E2 62 00 45 BD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 18 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 BE 01 00 00 5E 04 04 00 BE 01 00 00 57 04 04 00 BF 01 00 00 19 04 04 00 00 00 00 00 90 00 B2 [19:31: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 18 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 BE 01 00 00 5E 04 04 00 BE 01 00 00 57 04 04 00 BF 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:31:34]wFMCommunicate OK [19:31:34]SAM_PROTO_GetFieldsCounters done [19:31:34]requested_item shift.num is exist - process it [19:31:34]requested_item shift.opened is exist - process it [19:31:34]req_shift_opened [19:31:34]FM_GetShiftState [19:31:34]SAM_PROTO_GetShiftState [19:31:34]wFMCommunicate request_size=4 [19:31:34]MH_SAM_APDU [19:31:34]CAPDU: 80 13 01 00 [19:31:34]Write to MH i2c: E2 08 00 46 BD 80 13 01 00 00 00 00 00 80 [19:31:34]Write i2c OK [19:31:34]MH_I2C_Read... [19:31:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:34]Read from MH i2c: E2 [19:31:34]MH_I2C_Read... [19:31:34]Read from MH i2c: E2 0E 00 [19:31:34]MH_I2C_Read... [19:31:34]Read from MH i2c: E2 0E 00 46 BD 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 BD [19:31:34]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:31:34]wFMCommunicate OK [19:31:34]SAM_PROTO_GetShiftState done [19:31:34]FM_GetShiftState done [19:31:34]req_shift_opened done [19:31:34]requested_item shift.open_date is exist - process it [19:31:34]req_shift_open_date [19:31:34]req_shift_open_date done [19:31:34]produce_requested_data done [19:31:34]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260888,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [19:31:34]process_action_free close_receipt [19:31:34]json_value_free [19:31:34]json_value_free done [19:31:34]process_json_proto returns [19:31:34]Send response to host [19:31:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260888,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [19:31:34]free response buf [19:31:34]execute_script done [19:31:34]execute_script returns [19:31:34]free content buf [19:31:34]Sock 7.Close socket [19:31:34]Sock 7.Thread stoped [19:31:36]OFD Sender: No OFD packet to send [19:31:41]OFD Sender: No OFD packet to send [19:31:46]OFD Sender: No OFD packet to send [19:31:51]OFD Sender: No OFD packet to send [19:31:56]OFD Sender: No OFD packet to send [19:32:01]OFD Sender: No OFD packet to send [19:32:06]OFD Sender: No OFD packet to send [19:32:11]OFD Sender: No OFD packet to send [19:32:16]OFD Sender: No OFD packet to send [19:32:21]OFD Sender: No OFD packet to send [19:32:26]OFD Sender: No OFD packet to send [19:32:31]OFD Sender: No OFD packet to send [19:32:36]OFD Sender: No OFD packet to send [19:32:41]OFD Sender: No OFD packet to send [19:32:46]OFD Sender: No OFD packet to send [19:32:51]OFD Sender: No OFD packet to send [19:32:56]OFD Sender: No OFD packet to send [19:33:01]OFD Sender: No OFD packet to send [19:33:06]OFD Sender: No OFD packet to send [19:33:11]OFD Sender: No OFD packet to send [19:33:15]accept exits with 9 [19:33:15]New connection [19:33:15]New thread 3066617188 created [19:33:15]Thread 3066473828 joined [19:33:15]Waiting for new connection... [19:33:15] Sock 9.Parse request [19:33:15]Sock 9.Check first char [19:33:15]Sock 9.First char is OK [19:33:15]request: POST /json_proto HTTP/1.0 [19:33:15]Method: POST [19:33:15]URL: /json_proto [19:33:15]Method is POST - this is cgi request [19:33:15]url: /json_proto [19:33:15]query_string will be loaded in cgi processing [19:33:15]execute_cgi json_proto POST (null) [19:33:15]execute_cgi path=json_proto method=POST [19:33:15]POST find Content-Length [19:33:15]Host: 172.17.55.133:8080 [19:33:15]Content-Length: 678 [19:33:15]Content-Type: application/json [19:33:15] [19:33:15]POST finish read [19:33:15]Found Content-Length = 678 [19:33:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:33:15]execute_script... [19:33: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)1036441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:33:15]POST & json_proto [19:33:15]process_json_proto [19:33:15]json parsed OK: [19:33:15]protocol is kg_v1.0 [19:33:15]action value=close_receipt [19:33:15]process_action close_receipt [19:33:15]cmd_close_receipt [19:33:15]MH_GetDate [19:33:15]Write to MH i2c: F0 00 00 47 BD F3 [19:33:15]Write i2c OK [19:33:15]MH_I2C_Read... [19:33:15]Read from MH i2c: F0 [19:33:15]MH_I2C_Read... [19:33:15]Read from MH i2c: F0 09 00 [19:33:15]MH_I2C_Read... [19:33:15]Read from MH i2c: F0 09 00 47 BD 00 81 4C C2 66 34 48 D8 65 AA [19:33:15]GetLastDocTimeStamp 1724009494 [19:33:15]current date 1724009601 [19:33:15]FM_GetShiftState [19:33:15]SAM_PROTO_GetShiftState [19:33:15]wFMCommunicate request_size=4 [19:33:15]MH_SAM_APDU [19:33:15]CAPDU: 80 13 01 00 [19:33:15]Write to MH i2c: E2 08 00 48 BD 80 13 01 00 00 00 00 00 82 [19:33:15]Write i2c OK [19:33:15]MH_I2C_Read... [19:33:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:15]Read from MH i2c: E2 [19:33:15]MH_I2C_Read... [19:33:15]Read from MH i2c: E2 0E 00 [19:33:15]MH_I2C_Read... [19:33:15]Read from MH i2c: E2 0E 00 48 BD 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 BF [19:33:15]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:33:15]wFMCommunicate OK [19:33:15]SAM_PROTO_GetShiftState done [19:33:15]FM_GetShiftState done [19:33:15]opened in 1723940556 [19:33:15]opened+sec_in_day 1724026956 [19:33:15]quantity*price = 50036 [19:33:15]sum+1 = 50037 [19:33:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 447 18.08.2024 19:33 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260889 ФПД: 45144609114558 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T193321&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260889&fm=45144609114558&tin=02508201610067®Number=0000000000091865&sum=50000 [19:33:16]StoreToDocumentArchive [19:33:16]shift 449 fd 260889 [19:33:16]save to /storage/0449/doc_00260889 [19:33:16]save last doc name /storage/0449/doc_00260889 to /storage/kkm_last_doc_name [19:33:16]save OK [19:33:16]Clear old archive folders... [19:33:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:33:16]tlvbuf is 00383890 [19:33:16]SAM_PROTO_ClearQueue [19:33:16]wFMCommunicate request_size=4 [19:33:16]MH_SAM_APDU [19:33:16]CAPDU: 80 09 00 00 [19:33:16]Write to MH i2c: E2 08 00 55 BD 80 09 00 00 00 00 00 00 84 [19:33:16]Write i2c OK [19:33:16]MH_I2C_Read... [19:33:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:33:16]Read from MH i2c: E2 [19:33:16]MH_I2C_Read... [19:33:16]Read from MH i2c: E2 03 00 [19:33:16]MH_I2C_Read... [19:33:16]Read from MH i2c: E2 03 00 55 BD 00 90 00 86 [19:33:16]RAPDU: 90 00 [19:33:16]wFMCommunicate OK [19:33:16]SAM_PROTO_ClearQueue done [19:33:16]KKMCreateOFDPacket [19:33:16]OFDProtocolAddRootSTLVToBuf [19:33:16]FM_MakeSignedData [19:33:16]FM_MakeSignedData [19:33:16]SAM_PROTO_SignData [19:33:16]wFMCommunicate request_size=4 [19:33:16]MH_SAM_APDU [19:33:16]CAPDU: 80 0D 01 02 [19:33:16]Write to MH i2c: E2 08 00 56 BD 80 0D 01 02 00 00 00 00 8C [19:33:16]Write i2c OK [19:33:16]MH_I2C_Read... [19:33:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:33:16]Read from MH i2c: E2 [19:33:16]MH_I2C_Read... [19:33:16]Read from MH i2c: E2 03 00 [19:33:16]MH_I2C_Read... [19:33:16]Read from MH i2c: E2 03 00 56 BD 00 90 00 87 [19:33:16]RAPDU: 90 00 [19:33:16]wFMCommunicate OK [19:33:16]wFMCommunicate request_size=255 [19:33:16]MH_SAM_APDU [19:33:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BF 01 00 00 F4 03 04 00 81 4C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 19 FB 03 00 35 04 06 00 29 [19:33:16]Write to MH i2c: E2 02 01 57 BD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BF 01 00 00 F4 03 04 00 81 4C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 19 FB 03 00 35 04 06 00 29 00 00 C0 [19:33:16]Write i2c OK [19:33:16]MH_I2C_Read... [19:33:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:16]Read from MH i2c: E2 [19:33:16]MH_I2C_Read... [19:33:16]Read from MH i2c: E2 03 00 [19:33:16]MH_I2C_Read... [19:33:16]Read from MH i2c: E2 03 00 57 BD 00 90 00 88 [19:33:16]RAPDU: 90 00 [19:33:16]wFMCommunicate OK [19:33:16]wFMCommunicate request_size=10 [19:33:16]MH_SAM_APDU [19:33:16]CAPDU: 80 0D 02 02 05 0F 0C 63 C9 BE [19:33:16]Write to MH i2c: E2 0D 00 58 BD 80 0D 02 02 05 00 0F 0C 63 C9 BE 00 00 9E [19:33:16]Write i2c OK [19:33:16]MH_I2C_Read... [19:33:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:17]Read from MH i2c: E2 [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: E2 03 00 [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: E2 03 00 58 BD 00 90 00 89 [19:33:17]RAPDU: 90 00 [19:33:17]wFMCommunicate OK [19:33:17]wFMCommunicate request_size=4 [19:33:17]MH_SAM_APDU [19:33:17]CAPDU: 80 0D 03 02 [19:33:17]Write to MH i2c: E2 08 00 59 BD 80 0D 03 02 00 00 00 00 91 [19:33:17]Write i2c OK [19:33:17]MH_I2C_Read... [19:33:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:33:17]Read from MH i2c: E2 [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: E2 0B 00 [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: E2 0B 00 59 BD 00 8A 34 F9 F4 EE 67 CE D7 90 00 37 [19:33:17]RAPDU: 8A 34 F9 F4 EE 67 CE D7 90 00 [19:33:17]wFMCommunicate OK [19:33:17]SAM_PROTO_SignData done [19:33:17]FM_MakeSignedData done [19:33:17]CreateOFDProtocolMessage [19:33:17]wFMCommunicate request_size=4 [19:33:17]MH_SAM_APDU [19:33:17]CAPDU: 80 11 00 00 [19:33:17]Write to MH i2c: E2 08 00 5A BD 80 11 00 00 00 00 00 00 91 [19:33:17]Write i2c OK [19:33:17]MH_I2C_Read... [19:33:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:17]Read from MH i2c: E2 [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: E2 17 00 [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: E2 17 00 5A BD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 DE [19:33:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:33:17]wFMCommunicate OK [19:33:17]CreateOFDProtocolMessage done [19:33:17]OFDSenderStorePacket 260889 [19:33:17]StoreOFDPacket docnum=260889 [19:33:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 9A 57 07 01 A5 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BF 01 00 00 F4 03 04 00 81 4C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 19 FB 03 00 35 04 06 00 29 0F 0C 63 C9 BE 8A 34 F9 F4 EE 67 CE D7 [19:33:17]CheckFolder [19:33:17]dirname=/storage/ofd_packets [19:33:17]CheckFolder done [19:33:17]ProducePacketName [19:33:17]name=ofd_packets/00260889 [19:33:17]NVStorageSaveData ofd_packets/00260889 [19:33:17]File name is /storage/ofd_packets/00260889 [19:33:17]Write 301 bytes [19:33:17]NVStorageSaveData done [19:33:17]OFDSenderStorePacket done [19:33:17]KKMCreateOFDPacket done [19:33:17]NVStorageSaveData kkm_last_timestamp [19:33:17]File name is /storage/kkm_last_timestamp [19:33:17]Write 4 bytes [19:33:17]NVStorageSaveData done [19:33:17]ExternCall_PrintAddStr [19:33:17]wPrintStart [19:33:17]Write to MH i2c: 01 00 00 5B BD 18 [19:33:17]Write i2c OK [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: 01 [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: 01 07 00 [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: 01 07 00 5B BD 00 00 00 00 00 FF 0F 2D [19:33:17]RasterBufferAndPrint [19:33:17]line Счет N : (1)1036441 [19:33:17]line ИНН: 02508201610067 [19:33:17]line Контрольно-Кассовый Чек [19:33:17]line ПРОДАЖА [19:33:17]line ТРК (МРК, ГНК) : 22 [19:33:17]line Товар: 2710124130 [19:33:17]line Аи-92-К-5 [19:33:17]line 7.380 * 67.80 [19:33:17]line = 500.36 [19:33:17]line НДС 12% НСП 1% [19:33:17]line > о реализуемом товаре [19:33:17]line ОКРУГЛЕНИЕ: -0.36 [19:33:17]line ИТОГО: 500.00 [19:33:17]line Внесено: 500.00 [19:33:17]line СДАЧА: 0.00 [19:33:17]line НСП 1% : 4.43 [19:33:17]line НДС 12% : 53.14 [19:33:17]line Наличными: 500.00 [19:33:17]line Безнал.: 0.00 [19:33:17]line Место: АЗС № 94 "Партнер Нефть" [19:33:17]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [19:33:17]line СНО: Общий режим [19:33:17]line Чек 447 18.08.2024 19:33 [19:33:17]line Смена: 449 ФФД: 1.0 [19:33:17]line ЗНМ: 0300000099 [19:33:17]line РНМ: 0000000000091865 [19:33:17]line Версия ККМ: 001 [19:33:17]line ФМ: 0000000000871820 [19:33:17]line ФД: 260889 [19:33:17]line ФПД: 45144609114558 [19:33:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T193321&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260889&fm=45144609114558&tin=02508201610067®Number=0000000000091865&sum=50000 [19:33:17]written 0, free lines is 4095 [19:33:17]OFD Sender: Processing packet 260889 [packets to send 192, broken 191] [19:33:17]ProducePacketName [19:33:17]name=ofd_packets/00260889 [19:33:17]OFD Sender: To server: pG, [19:33:17]CommunicateWithHost lk.salyk.kg:30040 [19:33:17]ConnectInit lk.salyk.kg [19:33:17]Connected sock=10 [19:33: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 30 0F 01 00 00 9A 57 07 01 A5 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BF 01 00 00 F4 03 04 00 81 4C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 19 FB 03 00 35 04 06 00 29 0F 0C 63 C9 BE 8A 34 F9 F4 EE 67 CE D7 [19:33: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 30 4F 00 00 00 20 A9 47 00 65 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 19 FB 03 00 F4 03 04 00 D5 F5 C1 66 B6 04 01 00 00 AE B1 D6 EF 07 7B 26 16 [19:33:17]CommunicateWithHost err = 0 [19:33:17]CheckOFDResponse [19:33:17]1017 (14) - 77093643461234 [19:33:17]1041 (16) - 0000000000871820 [19:33:17]1040 (4) - 260889 [19:33:17]1012 (4) - 18.08.2024 13:23 [19:33:17]1206 (1) - 0 [19:33:17]OFD Sender: Remove packet 260889 [19:33:17]ProducePacketName [19:33:17]name=ofd_packets/00260889 [19:33:17]NVStorageDeleteData [19:33:17]Write to MH i2c: 01 00 00 86 BD 43 [19:33:17]Write i2c OK [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: 01 [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: 01 07 00 [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: 01 07 00 86 BD 00 00 00 00 00 6D 0C C3 [19:33:17]RasterBufferAndPrint [19:33:17]line [19:33:17]line [19:33:17]line [19:33:17]line [19:33:17]line [19:33:17]written 0, free lines is 3184 [19:33:17]MH_Cut [19:33:17]Write to MH i2c: D1 01 00 8D BD 01 1C [19:33:17]Write i2c OK [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: D1 [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: D1 01 00 [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: D1 01 00 8D BD 00 1B [19:33:17]Write to MH i2c: 01 00 00 8E BD 4B [19:33:17]Write i2c OK [19:33:17]MH_I2C_Read... [19:33:18]OFD Sender: No OFD packet to send [19:33:19]*** Cut start [19:33:19]*** Purtial cut [19:33:19]*** Stage 1: CUTSNS_PIN = 1 [19:33:21]Read from MH i2c: 01 [19:33:21]MH_I2C_Read... [19:33:21]*** Stop cut motor [19:33:21]*** Cut end [19:33:21]Read from MH i2c: 01 07 00 [19:33:21]MH_I2C_Read... [19:33:21]Read from MH i2c: 01 07 00 8E BD 00 00 00 00 00 FF 0F 60 [19:33:21]process_action close_receipt done [19:33:21]requested_data is exist [19:33:21]produce_requested_data [19:33:21]requested_item fm.sn is exist - process it [19:33:21]wFMCommunicate request_size=4 [19:33:21]MH_SAM_APDU [19:33:21]CAPDU: 80 11 00 00 [19:33:21]Write to MH i2c: E2 08 00 8F BD 80 11 00 00 00 00 00 00 C6 [19:33:21]Write i2c OK [19:33:21]MH_I2C_Read... [19:33:21]Read from MH i2c: E2 [19:33:21]MH_I2C_Read... [19:33:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:21]Read from MH i2c: E2 17 00 [19:33:21]MH_I2C_Read... [19:33:21]Read from MH i2c: E2 17 00 8F BD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 13 [19:33:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:33:21]wFMCommunicate OK [19:33:21]requested_item fd.num is exist - process it [19:33:21]SAM_PROTO_GetFieldsCounters [19:33:21]wFMCommunicate request_size=4 [19:33:21]MH_SAM_APDU [19:33:21]CAPDU: 80 13 00 00 [19:33:21]Write to MH i2c: E2 08 00 90 BD 80 13 00 00 00 00 00 00 C9 [19:33:21]Write i2c OK [19:33:21]MH_I2C_Read... [19:33:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:21]Read from MH i2c: E2 [19:33:21]MH_I2C_Read... [19:33:21]Read from MH i2c: E2 62 00 [19:33:21]MH_I2C_Read... [19:33:21]Read from MH i2c: E2 62 00 90 BD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 19 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 BF 01 00 00 5E 04 04 00 BF 01 00 00 57 04 04 00 C0 01 00 00 19 04 04 00 00 00 00 00 90 00 01 [19:33: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 19 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 BF 01 00 00 5E 04 04 00 BF 01 00 00 57 04 04 00 C0 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:33:21]wFMCommunicate OK [19:33:21]SAM_PROTO_GetFieldsCounters done [19:33:21]requested_item shift.num is exist - process it [19:33:21]requested_item shift.opened is exist - process it [19:33:21]req_shift_opened [19:33:21]FM_GetShiftState [19:33:21]SAM_PROTO_GetShiftState [19:33:21]wFMCommunicate request_size=4 [19:33:21]MH_SAM_APDU [19:33:21]CAPDU: 80 13 01 00 [19:33:21]Write to MH i2c: E2 08 00 91 BD 80 13 01 00 00 00 00 00 CB [19:33:21]Write i2c OK [19:33:21]MH_I2C_Read... [19:33:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:21]Read from MH i2c: E2 [19:33:21]MH_I2C_Read... [19:33:21]Read from MH i2c: E2 0E 00 [19:33:21]MH_I2C_Read... [19:33:21]Read from MH i2c: E2 0E 00 91 BD 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 08 [19:33:21]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:33:21]wFMCommunicate OK [19:33:21]SAM_PROTO_GetShiftState done [19:33:21]FM_GetShiftState done [19:33:21]req_shift_opened done [19:33:21]requested_item shift.open_date is exist - process it [19:33:21]req_shift_open_date [19:33:21]req_shift_open_date done [19:33:21]produce_requested_data done [19:33:21]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260889,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [19:33:21]process_action_free close_receipt [19:33:21]json_value_free [19:33:21]json_value_free done [19:33:21]process_json_proto returns [19:33:21]Send response to host [19:33:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260889,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [19:33:21]free response buf [19:33:21]execute_script done [19:33:21]execute_script returns [19:33:21]free content buf [19:33:21]Sock 9.Close socket [19:33:21]Sock 9.Thread stoped [19:33:23]OFD Sender: No OFD packet to send [19:33:28]OFD Sender: No OFD packet to send [19:33:33]OFD Sender: No OFD packet to send [19:33:38]OFD Sender: No OFD packet to send [19:33:43]OFD Sender: No OFD packet to send [19:33:48]OFD Sender: No OFD packet to send [19:33:53]OFD Sender: No OFD packet to send [19:33:58]OFD Sender: No OFD packet to send [19:34:03]OFD Sender: No OFD packet to send [19:34:08]OFD Sender: No OFD packet to send [19:34:13]OFD Sender: No OFD packet to send [19:34:18]OFD Sender: No OFD packet to send [19:34:23]OFD Sender: No OFD packet to send [19:34:28]OFD Sender: No OFD packet to send [19:34:33]OFD Sender: No OFD packet to send [19:34:38]OFD Sender: No OFD packet to send [19:34:43]OFD Sender: No OFD packet to send [19:34:48]OFD Sender: No OFD packet to send [19:34:53]OFD Sender: No OFD packet to send [19:34:58]OFD Sender: No OFD packet to send [19:35:03]OFD Sender: No OFD packet to send [19:35:08]OFD Sender: No OFD packet to send [19:35:13]OFD Sender: No OFD packet to send [19:35:18]OFD Sender: No OFD packet to send [19:35:23]OFD Sender: No OFD packet to send [19:35:28]OFD Sender: No OFD packet to send [19:35:33]OFD Sender: No OFD packet to send [19:35:38]OFD Sender: No OFD packet to send [19:35:43]OFD Sender: No OFD packet to send [19:35:48]OFD Sender: No OFD packet to send [19:35:53]OFD Sender: No OFD packet to send [19:35:58]OFD Sender: No OFD packet to send [19:36:03]OFD Sender: No OFD packet to send [19:36:08]OFD Sender: No OFD packet to send [19:36:13]OFD Sender: No OFD packet to send [19:36:18]OFD Sender: No OFD packet to send [19:36:23]OFD Sender: No OFD packet to send [19:36:27]accept exits with 7 [19:36:27]New connection [19:36:27]New thread 3066473828 created [19:36:27]Thread 3066617188 joined [19:36:27]Waiting for new connection... [19:36:27] Sock 7.Parse request [19:36:27]Sock 7.Check first char [19:36:27]Sock 7.First char is OK [19:36:27]request: POST /json_proto HTTP/1.0 [19:36:27]Method: POST [19:36:27]URL: /json_proto [19:36:27]Method is POST - this is cgi request [19:36:27]url: /json_proto [19:36:27]query_string will be loaded in cgi processing [19:36:27]execute_cgi json_proto POST (null) [19:36:27]execute_cgi path=json_proto method=POST [19:36:27]POST find Content-Length [19:36:27]Host: 172.17.55.133:8080 [19:36:27]Content-Length: 804 [19:36:27]Content-Type: application/json [19:36:27] [19:36:27]POST finish read [19:36:27]Found Content-Length = 804 [19:36:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036442", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:27]execute_script... [19:36: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)1036442", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:27]POST & json_proto [19:36:27]process_json_proto [19:36:27]json parsed OK: [19:36:27]protocol is kg_v1.0 [19:36:27]action value=close_receipt [19:36:27]process_action close_receipt [19:36:27]cmd_close_receipt [19:36:27]MH_GetDate [19:36:27]Write to MH i2c: F0 00 00 92 BD 3E [19:36:27]Write i2c OK [19:36:27]MH_I2C_Read... [19:36:27]Read from MH i2c: F0 [19:36:27]MH_I2C_Read... [19:36:27]Read from MH i2c: F0 09 00 [19:36:27]MH_I2C_Read... [19:36:27]Read from MH i2c: F0 09 00 92 BD 00 41 4D C2 66 34 48 D8 65 B6 [19:36:27]GetLastDocTimeStamp 1724009601 [19:36:27]current date 1724009793 [19:36:27]FM_GetShiftState [19:36:27]SAM_PROTO_GetShiftState [19:36:27]wFMCommunicate request_size=4 [19:36:27]MH_SAM_APDU [19:36:27]CAPDU: 80 13 01 00 [19:36:27]Write to MH i2c: E2 08 00 93 BD 80 13 01 00 00 00 00 00 CD [19:36:27]Write i2c OK [19:36:27]MH_I2C_Read... [19:36:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:27]Read from MH i2c: E2 [19:36:27]MH_I2C_Read... [19:36:27]Read from MH i2c: E2 0E 00 [19:36:27]MH_I2C_Read... [19:36:27]Read from MH i2c: E2 0E 00 93 BD 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 0A [19:36:27]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:36:27]wFMCommunicate OK [19:36:27]SAM_PROTO_GetShiftState done [19:36:27]FM_GetShiftState done [19:36:27]opened in 1723940556 [19:36:27]opened+sec_in_day 1724026956 [19:36:27]quantity*price = 100021 [19:36:27]sum+1 = 100023 [19:36:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 448 18.08.2024 19:36 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260890 ФПД: 240835949860217 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T193633&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260890&fm=240835949860217&tin=02508201610067®Number=0000000000091865&sum=100022 [19:36:28]StoreToDocumentArchive [19:36:28]shift 449 fd 260890 [19:36:28]save to /storage/0449/doc_00260890 [19:36:28]save last doc name /storage/0449/doc_00260890 to /storage/kkm_last_doc_name [19:36:28]save OK [19:36:28]Clear old archive folders... [19:36:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:36:28]tlvbuf is 004337B0 [19:36:28]SAM_PROTO_ClearQueue [19:36:28]wFMCommunicate request_size=4 [19:36:28]MH_SAM_APDU [19:36:28]CAPDU: 80 09 00 00 [19:36:28]Write to MH i2c: E2 08 00 A0 BD 80 09 00 00 00 00 00 00 CF [19:36:28]Write i2c OK [19:36:28]MH_I2C_Read... [19:36:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:36:28]OFD Sender: No OFD packet to send [19:36:28]Read from MH i2c: E2 [19:36:28]MH_I2C_Read... [19:36:28]Read from MH i2c: E2 03 00 [19:36:28]MH_I2C_Read... [19:36:28]Read from MH i2c: E2 03 00 A0 BD 00 90 00 D1 [19:36:28]RAPDU: 90 00 [19:36:28]wFMCommunicate OK [19:36:28]SAM_PROTO_ClearQueue done [19:36:28]KKMCreateOFDPacket [19:36:28]OFDProtocolAddRootSTLVToBuf [19:36:28]FM_MakeSignedData [19:36:28]FM_MakeSignedData [19:36:28]SAM_PROTO_SignData [19:36:28]wFMCommunicate request_size=4 [19:36:28]MH_SAM_APDU [19:36:28]CAPDU: 80 0D 01 02 [19:36:28]Write to MH i2c: E2 08 00 A1 BD 80 0D 01 02 00 00 00 00 D7 [19:36:28]Write i2c OK [19:36:28]MH_I2C_Read... [19:36:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:36:28]Read from MH i2c: E2 [19:36:28]MH_I2C_Read... [19:36:28]Read from MH i2c: E2 03 00 [19:36:28]MH_I2C_Read... [19:36:28]Read from MH i2c: E2 03 00 A1 BD 00 90 00 D2 [19:36:28]RAPDU: 90 00 [19:36:28]wFMCommunicate OK [19:36:28]wFMCommunicate request_size=255 [19:36:28]MH_SAM_APDU [19:36: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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 01 00 00 F4 03 04 00 41 4D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1A FB 03 00 35 04 06 00 DB [19:36:28]Write to MH i2c: E2 02 01 A2 BD 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 01 00 00 F4 03 04 00 41 4D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1A FB 03 00 35 04 06 00 DB 00 00 D9 [19:36:28]Write i2c OK [19:36:28]MH_I2C_Read... [19:36:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:28]Read from MH i2c: E2 [19:36:28]MH_I2C_Read... [19:36:28]Read from MH i2c: E2 03 00 [19:36:28]MH_I2C_Read... [19:36:28]Read from MH i2c: E2 03 00 A2 BD 00 90 00 D3 [19:36:28]RAPDU: 90 00 [19:36:28]wFMCommunicate OK [19:36:28]wFMCommunicate request_size=10 [19:36:28]MH_SAM_APDU [19:36:28]CAPDU: 80 0D 02 02 05 09 FD 3D 95 79 [19:36:28]Write to MH i2c: E2 0D 00 A3 BD 80 0D 02 02 05 00 09 FD 3D 95 79 00 00 35 [19:36:28]Write i2c OK [19:36:28]MH_I2C_Read... [19:36:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:28]Read from MH i2c: E2 [19:36:28]MH_I2C_Read... [19:36:28]Read from MH i2c: E2 03 00 [19:36:28]MH_I2C_Read... [19:36:28]Read from MH i2c: E2 03 00 A3 BD 00 90 00 D4 [19:36:28]RAPDU: 90 00 [19:36:28]wFMCommunicate OK [19:36:28]wFMCommunicate request_size=4 [19:36:28]MH_SAM_APDU [19:36:28]CAPDU: 80 0D 03 02 [19:36:28]Write to MH i2c: E2 08 00 A4 BD 80 0D 03 02 00 00 00 00 DC [19:36:28]Write i2c OK [19:36:28]MH_I2C_Read... [19:36:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:36:28]Read from MH i2c: E2 [19:36:28]MH_I2C_Read... [19:36:28]Read from MH i2c: E2 0B 00 [19:36:28]MH_I2C_Read... [19:36:28]Read from MH i2c: E2 0B 00 A4 BD 00 2F 0D A0 31 04 8B 13 28 90 00 B4 [19:36:28]RAPDU: 2F 0D A0 31 04 8B 13 28 90 00 [19:36:28]wFMCommunicate OK [19:36:28]SAM_PROTO_SignData done [19:36:28]FM_MakeSignedData done [19:36:28]CreateOFDProtocolMessage [19:36:28]wFMCommunicate request_size=4 [19:36:28]MH_SAM_APDU [19:36:28]CAPDU: 80 11 00 00 [19:36:28]Write to MH i2c: E2 08 00 A5 BD 80 11 00 00 00 00 00 00 DC [19:36:29]Write i2c OK [19:36:29]MH_I2C_Read... [19:36:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:29]Read from MH i2c: E2 [19:36:29]MH_I2C_Read... [19:36:29]Read from MH i2c: E2 17 00 [19:36:29]MH_I2C_Read... [19:36:29]Read from MH i2c: E2 17 00 A5 BD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 29 [19:36:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:36:29]wFMCommunicate OK [19:36:29]CreateOFDProtocolMessage done [19:36:29]OFDSenderStorePacket 260890 [19:36:29]StoreOFDPacket docnum=260890 [19:36:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 A0 37 07 01 AD 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 01 00 00 F4 03 04 00 41 4D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1A FB 03 00 35 04 06 00 DB 09 FD 3D 95 79 2F 0D A0 31 04 8B 13 28 [19:36:29]CheckFolder [19:36:29]dirname=/storage/ofd_packets [19:36:29]CheckFolder done [19:36:29]ProducePacketName [19:36:29]name=ofd_packets/00260890 [19:36:29]NVStorageSaveData ofd_packets/00260890 [19:36:29]File name is /storage/ofd_packets/00260890 [19:36:29]Write 301 bytes [19:36:29]NVStorageSaveData done [19:36:29]OFDSenderStorePacket done [19:36:29]KKMCreateOFDPacket done [19:36:29]NVStorageSaveData kkm_last_timestamp [19:36:29]File name is /storage/kkm_last_timestamp [19:36:29]Write 4 bytes [19:36:29]NVStorageSaveData done [19:36:29]ExternCall_PrintAddStr [19:36:29]wPrintStart [19:36:29]Write to MH i2c: 01 00 00 A6 BD 63 [19:36:29]Write i2c OK [19:36:29]MH_I2C_Read... [19:36:29]Read from MH i2c: 01 [19:36:29]MH_I2C_Read... [19:36:29]Read from MH i2c: 01 07 00 [19:36:29]MH_I2C_Read... [19:36:29]Read from MH i2c: 01 07 00 A6 BD 00 00 00 00 00 FF 0F 78 [19:36:29]RasterBufferAndPrint [19:36:29]line Счет N : (1)1036442 [19:36:29]line ИНН: 02508201610067 [19:36:29]line Контрольно-Кассовый Чек [19:36:29]line ПРОДАЖА [19:36:29]line ТРК (МРК, ГНК) : 13 [19:36:29]line Товар: 2710124500 [19:36:29]line Аи-95-К-5 [19:36:29]line 13.480 * 74.20 [19:36:29]line = 1000.22 [19:36:29]line НДС 12% НСП 1% [19:36:29]line > о реализуемом товаре [19:36:29]line ИТОГО: 1000.22 [19:36:29]line НСП 1% : 8.85 [19:36:29]line НДС 12% : 106.22 [19:36:29]line Наличными: 0.00 [19:36:29]line Безнал.: 1000.22 [19:36:29]line Место: АЗС № 94 "Партнер Нефть" [19:36:29]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [19:36:29]line СНО: Общий режим [19:36:29]line Чек 448 18.08.2024 19:36 [19:36:29]line Смена: 449 ФФД: 1.0 [19:36:29]line ЗНМ: 0300000099 [19:36:29]line РНМ: 0000000000091865 [19:36:29]line Версия ККМ: 001 [19:36:29]line Платежная система: O! деньги [19:36:29]line ФМ: 0000000000871820 [19:36:29]line ФД: 260890 [19:36:29]line ФПД: 240835949860217 [19:36:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T193633&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260890&fm=240835949860217&tin=02508201610067®Number=0000000000091865&sum=100022 [19:36:29]OFD Sender: Processing packet 260890 [packets to send 192, broken 191] [19:36:29]ProducePacketName [19:36:29]name=ofd_packets/00260890 [19:36:29]OFD Sender: To server: pG, [19:36:29]CommunicateWithHost lk.salyk.kg:30040 [19:36:29]ConnectInit lk.salyk.kg [19:36:29]written 0, free lines is 4095 [19:36:29]Connected sock=10 [19:36: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 30 0F 01 00 00 A0 37 07 01 AD 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 01 00 00 F4 03 04 00 41 4D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1A FB 03 00 35 04 06 00 DB 09 FD 3D 95 79 2F 0D A0 31 04 8B 13 28 [19:36: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 30 4F 00 00 00 C8 FF 47 00 90 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 30 10 04 04 00 1A FB 03 00 F4 03 04 00 95 F6 C1 66 B6 04 01 00 00 53 23 20 80 C4 8F 77 65 [19:36:29]CommunicateWithHost err = 0 [19:36:29]CheckOFDResponse [19:36:29]1017 (14) - 77093643461234 [19:36:29]1041 (16) - 0000000000871820 [19:36:29]1040 (4) - 260890 [19:36:29]1012 (4) - 18.08.2024 13:26 [19:36:29]1206 (1) - 0 [19:36:29]OFD Sender: Remove packet 260890 [19:36:29]ProducePacketName [19:36:29]name=ofd_packets/00260890 [19:36:29]NVStorageDeleteData [19:36:29]Write to MH i2c: 01 00 00 D0 BD 8D [19:36:29]Write i2c OK [19:36:29]MH_I2C_Read... [19:36:29]Read from MH i2c: 01 [19:36:29]MH_I2C_Read... [19:36:29]Read from MH i2c: 01 07 00 [19:36:29]MH_I2C_Read... [19:36:29]Read from MH i2c: 01 07 00 D0 BD 00 00 00 00 00 8C 0C 2C [19:36:29]RasterBufferAndPrint [19:36:29]line [19:36:29]line [19:36:29]line [19:36:29]line [19:36:29]line [19:36:29]written 0, free lines is 3216 [19:36:29]MH_Cut [19:36:29]Write to MH i2c: D1 01 00 D7 BD 01 66 [19:36:29]Write i2c OK [19:36:29]MH_I2C_Read... [19:36:29]Read from MH i2c: D1 [19:36:29]MH_I2C_Read... [19:36:29]Read from MH i2c: D1 01 00 [19:36:29]MH_I2C_Read... [19:36:29]Read from MH i2c: D1 01 00 D7 BD 00 65 [19:36:29]Write to MH i2c: 01 00 00 D8 BD 95 [19:36:29]Write i2c OK [19:36:29]MH_I2C_Read... [19:36:30]OFD Sender: No OFD packet to send [19:36:30]*** Cut start [19:36:30]*** Purtial cut [19:36:30]*** Stage 1: CUTSNS_PIN = 1 [19:36:32]Read from MH i2c: 01 [19:36:32]MH_I2C_Read... [19:36:32]*** Stop cut motor [19:36:32]*** Cut end [19:36:32]Read from MH i2c: 01 07 00 [19:36:32]MH_I2C_Read... [19:36:32]Read from MH i2c: 01 07 00 D8 BD 00 00 00 00 00 FF 0F AA [19:36:32]process_action close_receipt done [19:36:32]requested_data is exist [19:36:32]produce_requested_data [19:36:32]requested_item fm.sn is exist - process it [19:36:32]wFMCommunicate request_size=4 [19:36:32]MH_SAM_APDU [19:36:32]CAPDU: 80 11 00 00 [19:36:32]Write to MH i2c: E2 08 00 D9 BD 80 11 00 00 00 00 00 00 10 [19:36:32]Write i2c OK [19:36:32]MH_I2C_Read... [19:36:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:33]Read from MH i2c: E2 [19:36:33]MH_I2C_Read... [19:36:33]Read from MH i2c: E2 17 00 [19:36:33]MH_I2C_Read... [19:36:33]Read from MH i2c: E2 17 00 D9 BD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 5D [19:36:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:36:33]wFMCommunicate OK [19:36:33]requested_item fd.num is exist - process it [19:36:33]SAM_PROTO_GetFieldsCounters [19:36:33]wFMCommunicate request_size=4 [19:36:33]MH_SAM_APDU [19:36:33]CAPDU: 80 13 00 00 [19:36:33]Write to MH i2c: E2 08 00 DA BD 80 13 00 00 00 00 00 00 13 [19:36:33]Write i2c OK [19:36:33]MH_I2C_Read... [19:36:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:36:33]Read from MH i2c: E2 [19:36:33]MH_I2C_Read... [19:36:33]Read from MH i2c: E2 62 00 [19:36:33]MH_I2C_Read... [19:36:33]Read from MH i2c: E2 62 00 DA BD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 1A FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C0 01 00 00 5E 04 04 00 C0 01 00 00 57 04 04 00 C1 01 00 00 19 04 04 00 00 00 00 00 90 00 4F [19:36: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 1A FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C0 01 00 00 5E 04 04 00 C0 01 00 00 57 04 04 00 C1 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:36:33]wFMCommunicate OK [19:36:33]SAM_PROTO_GetFieldsCounters done [19:36:33]requested_item shift.num is exist - process it [19:36:33]requested_item shift.opened is exist - process it [19:36:33]req_shift_opened [19:36:33]FM_GetShiftState [19:36:33]SAM_PROTO_GetShiftState [19:36:33]wFMCommunicate request_size=4 [19:36:33]MH_SAM_APDU [19:36:33]CAPDU: 80 13 01 00 [19:36:33]Write to MH i2c: E2 08 00 DB BD 80 13 01 00 00 00 00 00 15 [19:36:33]Write i2c OK [19:36:33]MH_I2C_Read... [19:36:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:33]Read from MH i2c: E2 [19:36:33]MH_I2C_Read... [19:36:33]Read from MH i2c: E2 0E 00 [19:36:33]MH_I2C_Read... [19:36:33]Read from MH i2c: E2 0E 00 DB BD 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 52 [19:36:33]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:36:33]wFMCommunicate OK [19:36:33]SAM_PROTO_GetShiftState done [19:36:33]FM_GetShiftState done [19:36:33]req_shift_opened done [19:36:33]requested_item shift.open_date is exist - process it [19:36:33]req_shift_open_date [19:36:33]req_shift_open_date done [19:36:33]produce_requested_data done [19:36:33]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260890,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [19:36:33]process_action_free close_receipt [19:36:33]json_value_free [19:36:33]json_value_free done [19:36:33]process_json_proto returns [19:36:33]Send response to host [19:36:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260890,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [19:36:33]free response buf [19:36:33]execute_script done [19:36:33]execute_script returns [19:36:33]free content buf [19:36:33]Sock 7.Close socket [19:36:33]Sock 7.Thread stoped [19:36:35]OFD Sender: No OFD packet to send [19:36:40]OFD Sender: No OFD packet to send [19:36:45]OFD Sender: No OFD packet to send [19:36:50]OFD Sender: No OFD packet to send [19:36:55]OFD Sender: No OFD packet to send [19:37:00]OFD Sender: No OFD packet to send [19:37:05]OFD Sender: No OFD packet to send [19:37:10]OFD Sender: No OFD packet to send [19:37:15]OFD Sender: No OFD packet to send [19:37:20]OFD Sender: No OFD packet to send [19:37:25]OFD Sender: No OFD packet to send [19:37:30]OFD Sender: No OFD packet to send [19:37:35]OFD Sender: No OFD packet to send [19:37:40]OFD Sender: No OFD packet to send [19:37:45]OFD Sender: No OFD packet to send [19:37:50]OFD Sender: No OFD packet to send [19:37:55]OFD Sender: No OFD packet to send [19:38:00]OFD Sender: No OFD packet to send [19:38:05]OFD Sender: No OFD packet to send [19:38:10]OFD Sender: No OFD packet to send [19:38:15]OFD Sender: No OFD packet to send [19:38:20]OFD Sender: No OFD packet to send [19:38:25]OFD Sender: No OFD packet to send [19:38:30]OFD Sender: No OFD packet to send [19:38:35]OFD Sender: No OFD packet to send [19:38:40]OFD Sender: No OFD packet to send [19:38:45]OFD Sender: No OFD packet to send [19:38:50]OFD Sender: No OFD packet to send [19:38:55]OFD Sender: No OFD packet to send [19:39:00]OFD Sender: No OFD packet to send [19:39:05]OFD Sender: No OFD packet to send [19:39:10]OFD Sender: No OFD packet to send [19:39:15]OFD Sender: No OFD packet to send [19:39:20]OFD Sender: No OFD packet to send [19:39:25]OFD Sender: No OFD packet to send [19:39:30]OFD Sender: No OFD packet to send [19:39:35]OFD Sender: No OFD packet to send [19:39:40]OFD Sender: No OFD packet to send [19:39:45]OFD Sender: No OFD packet to send [19:39:50]OFD Sender: No OFD packet to send [19:39:55]OFD Sender: No OFD packet to send [19:40:00]OFD Sender: No OFD packet to send [19:40:05]OFD Sender: No OFD packet to send [19:40:10]OFD Sender: No OFD packet to send [19:40:11]accept exits with 9 [19:40:11]New connection [19:40:11]New thread 3066617188 created [19:40:11]Thread 3066473828 joined [19:40:11]Waiting for new connection... [19:40:11] Sock 9.Parse request [19:40:11]Sock 9.Check first char [19:40:11]Sock 9.First char is OK [19:40:11]request: POST /json_proto HTTP/1.0 [19:40:11]Method: POST [19:40:11]URL: /json_proto [19:40:11]Method is POST - this is cgi request [19:40:11]url: /json_proto [19:40:11]query_string will be loaded in cgi processing [19:40:11]execute_cgi json_proto POST (null) [19:40:11]execute_cgi path=json_proto method=POST [19:40:11]POST find Content-Length [19:40:11]Host: 172.17.55.133:8080 [19:40:11]Content-Length: 678 [19:40:11]Content-Type: application/json [19:40:11] [19:40:11]POST finish read [19:40:11]Found Content-Length = 678 [19:40:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036443", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:11]execute_script... [19:40: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)1036443", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:11]POST & json_proto [19:40:11]process_json_proto [19:40:11]json parsed OK: [19:40:11]protocol is kg_v1.0 [19:40:11]action value=close_receipt [19:40:11]process_action close_receipt [19:40:11]cmd_close_receipt [19:40:11]MH_GetDate [19:40:11]Write to MH i2c: F0 00 00 DC BD 88 [19:40:11]Write i2c OK [19:40:11]MH_I2C_Read... [19:40:11]Read from MH i2c: F0 [19:40:11]MH_I2C_Read... [19:40:11]Read from MH i2c: F0 09 00 [19:40:11]MH_I2C_Read... [19:40:11]Read from MH i2c: F0 09 00 DC BD 00 22 4E C2 66 34 48 D8 65 E2 [19:40:11]GetLastDocTimeStamp 1724009793 [19:40:11]current date 1724010018 [19:40:11]FM_GetShiftState [19:40:11]SAM_PROTO_GetShiftState [19:40:11]wFMCommunicate request_size=4 [19:40:11]MH_SAM_APDU [19:40:11]CAPDU: 80 13 01 00 [19:40:11]Write to MH i2c: E2 08 00 DD BD 80 13 01 00 00 00 00 00 17 [19:40:11]Write i2c OK [19:40:11]MH_I2C_Read... [19:40:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:11]Read from MH i2c: E2 [19:40:11]MH_I2C_Read... [19:40:11]Read from MH i2c: E2 0E 00 [19:40:11]MH_I2C_Read... [19:40:11]Read from MH i2c: E2 0E 00 DD BD 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 54 [19:40:11]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:40:11]wFMCommunicate OK [19:40:11]SAM_PROTO_GetShiftState done [19:40:11]FM_GetShiftState done [19:40:11]opened in 1723940556 [19:40:11]opened+sec_in_day 1724026956 [19:40:11]quantity*price = 50010 [19:40:11]sum+1 = 50012 [19:40:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 449 18.08.2024 19:40 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260891 ФПД: 212889535101432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T194018&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260891&fm=212889535101432&tin=02508201610067®Number=0000000000091865&sum=50000 [19:40:12]StoreToDocumentArchive [19:40:12]shift 449 fd 260891 [19:40:12]save to /storage/0449/doc_00260891 [19:40:12]save last doc name /storage/0449/doc_00260891 to /storage/kkm_last_doc_name [19:40:12]save OK [19:40:12]Clear old archive folders... [19:40:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:40:12]tlvbuf is 005C1520 [19:40:12]SAM_PROTO_ClearQueue [19:40:12]wFMCommunicate request_size=4 [19:40:12]MH_SAM_APDU [19:40:12]CAPDU: 80 09 00 00 [19:40:12]Write to MH i2c: E2 08 00 EA BD 80 09 00 00 00 00 00 00 19 [19:40:12]Write i2c OK [19:40:12]MH_I2C_Read... [19:40:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:40:12]Read from MH i2c: E2 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 03 00 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 03 00 EA BD 00 90 00 1B [19:40:12]RAPDU: 90 00 [19:40:12]wFMCommunicate OK [19:40:12]SAM_PROTO_ClearQueue done [19:40:12]KKMCreateOFDPacket [19:40:12]OFDProtocolAddRootSTLVToBuf [19:40:12]FM_MakeSignedData [19:40:12]FM_MakeSignedData [19:40:12]SAM_PROTO_SignData [19:40:12]wFMCommunicate request_size=4 [19:40:12]MH_SAM_APDU [19:40:12]CAPDU: 80 0D 01 02 [19:40:12]Write to MH i2c: E2 08 00 EB BD 80 0D 01 02 00 00 00 00 21 [19:40:12]Write i2c OK [19:40:12]MH_I2C_Read... [19:40:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:40:12]Read from MH i2c: E2 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 03 00 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 03 00 EB BD 00 90 00 1C [19:40:12]RAPDU: 90 00 [19:40:12]wFMCommunicate OK [19:40:12]wFMCommunicate request_size=255 [19:40:12]MH_SAM_APDU [19:40: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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 01 00 00 F4 03 04 00 22 4E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1B FB 03 00 35 04 06 00 C1 [19:40:12]Write to MH i2c: E2 02 01 EC BD 80 0D 02 02 FA 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 01 00 00 F4 03 04 00 22 4E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1B FB 03 00 35 04 06 00 C1 00 00 7C [19:40:12]Write i2c OK [19:40:12]MH_I2C_Read... [19:40:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:13]Read from MH i2c: E2 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 03 00 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 03 00 EC BD 00 90 00 1D [19:40:13]RAPDU: 90 00 [19:40:13]wFMCommunicate OK [19:40:13]wFMCommunicate request_size=10 [19:40:13]MH_SAM_APDU [19:40:13]CAPDU: 80 0D 02 02 05 9F 35 1D B9 F8 [19:40:13]Write to MH i2c: E2 0D 00 ED BD 80 0D 02 02 05 00 9F 35 1D B9 F8 00 00 D0 [19:40:13]Write i2c OK [19:40:13]MH_I2C_Read... [19:40:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:13]Read from MH i2c: E2 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 03 00 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 03 00 ED BD 00 90 00 1E [19:40:13]RAPDU: 90 00 [19:40:13]wFMCommunicate OK [19:40:13]wFMCommunicate request_size=4 [19:40:13]MH_SAM_APDU [19:40:13]CAPDU: 80 0D 03 02 [19:40:13]Write to MH i2c: E2 08 00 EE BD 80 0D 03 02 00 00 00 00 26 [19:40:13]Write i2c OK [19:40:13]MH_I2C_Read... [19:40:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:40:13]Read from MH i2c: E2 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 0B 00 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 0B 00 EE BD 00 8D E7 C4 D5 55 EA 8B ED 90 00 EB [19:40:13]RAPDU: 8D E7 C4 D5 55 EA 8B ED 90 00 [19:40:13]wFMCommunicate OK [19:40:13]SAM_PROTO_SignData done [19:40:13]FM_MakeSignedData done [19:40:13]CreateOFDProtocolMessage [19:40:13]wFMCommunicate request_size=4 [19:40:13]MH_SAM_APDU [19:40:13]CAPDU: 80 11 00 00 [19:40:13]Write to MH i2c: E2 08 00 EF BD 80 11 00 00 00 00 00 00 26 [19:40:13]Write i2c OK [19:40:13]MH_I2C_Read... [19:40:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:13]Read from MH i2c: E2 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 17 00 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 17 00 EF BD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 73 [19:40:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:40:13]wFMCommunicate OK [19:40:13]CreateOFDProtocolMessage done [19:40:13]OFDSenderStorePacket 260891 [19:40:13]StoreOFDPacket docnum=260891 [19:40:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 09 E3 07 01 65 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 01 00 00 F4 03 04 00 22 4E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1B FB 03 00 35 04 06 00 C1 9F 35 1D B9 F8 8D E7 C4 D5 55 EA 8B ED [19:40:13]CheckFolder [19:40:13]dirname=/storage/ofd_packets [19:40:13]CheckFolder done [19:40:13]ProducePacketName [19:40:13]name=ofd_packets/00260891 [19:40:13]NVStorageSaveData ofd_packets/00260891 [19:40:13]File name is /storage/ofd_packets/00260891 [19:40:13]Write 301 bytes [19:40:13]NVStorageSaveData done [19:40:13]OFDSenderStorePacket done [19:40:13]KKMCreateOFDPacket done [19:40:13]NVStorageSaveData kkm_last_timestamp [19:40:13]File name is /storage/kkm_last_timestamp [19:40:13]Write 4 bytes [19:40:13]NVStorageSaveData done [19:40:13]ExternCall_PrintAddStr [19:40:13]wPrintStart [19:40:13]Write to MH i2c: 01 00 00 F0 BD AD [19:40:13]Write i2c OK [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: 01 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: 01 07 00 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: 01 07 00 F0 BD 00 00 00 00 00 FF 0F C2 [19:40:13]RasterBufferAndPrint [19:40:13]line Счет N : (1)1036443 [19:40:13]line ИНН: 02508201610067 [19:40:13]line Контрольно-Кассовый Чек [19:40:13]line ПРОДАЖА [19:40:13]line ТРК (МРК, ГНК) : 13 [19:40:13]line Товар: 2710124500 [19:40:13]line Аи-95-К-5 [19:40:13]line 6.740 * 74.20 [19:40:13]line = 500.11 [19:40:13]line НДС 12% НСП 1% [19:40:13]line > о реализуемом товаре [19:40:13]line ОКРУГЛЕНИЕ: -0.11 [19:40:13]line ИТОГО: 500.00 [19:40:13]line Внесено: 500.00 [19:40:13]line СДАЧА: 0.00 [19:40:13]line НСП 1% : 4.43 [19:40:13]line НДС 12% : 53.11 [19:40:13]line Наличными: 500.00 [19:40:13]line Безнал.: 0.00 [19:40:13]line Место: АЗС № 94 "Партнер Нефть" [19:40:13]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [19:40:13]line СНО: Общий режим [19:40:13]line Чек 449 18.08.2024 19:40 [19:40:13]line Смена: 449 ФФД: 1.0 [19:40:13]line ЗНМ: 0300000099 [19:40:13]line РНМ: 0000000000091865 [19:40:13]line Версия ККМ: 001 [19:40:13]line ФМ: 0000000000871820 [19:40:13]line ФД: 260891 [19:40:13]line ФПД: 212889535101432 [19:40:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T194018&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260891&fm=212889535101432&tin=02508201610067®Number=0000000000091865&sum=50000 [19:40:13]written 0, free lines is 4095 [19:40:13]OFD Sender: Processing packet 260891 [packets to send 192, broken 191] [19:40:13]ProducePacketName [19:40:13]name=ofd_packets/00260891 [19:40:13]OFD Sender: To server: pG, [19:40:13]CommunicateWithHost lk.salyk.kg:30040 [19:40:13]ConnectInit lk.salyk.kg [19:40:13]Connected sock=10 [19:40: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 30 0F 01 00 00 09 E3 07 01 65 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 01 00 00 F4 03 04 00 22 4E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1B FB 03 00 35 04 06 00 C1 9F 35 1D B9 F8 8D E7 C4 D5 55 EA 8B ED [19:40:13]Write to MH i2c: 01 00 00 1B BE D9 [19:40:13]Write i2c OK [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: 01 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: 01 07 00 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: 01 07 00 1B BE 00 00 00 00 00 73 0C 5F [19:40:13]RasterBufferAndPrint [19:40:13]line [19:40:13]line [19:40:13]line [19:40:13]line [19:40:13]line [19:40:13]written 0, free lines is 3190 [19:40:13]MH_Cut [19:40:13]Write to MH i2c: D1 01 00 22 BE 01 B2 [19:40:13]Write i2c OK [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: D1 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: D1 01 00 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: D1 01 00 22 BE 00 B1 [19:40:13]Write to MH i2c: 01 00 00 23 BE E1 [19:40:13]Write i2c OK [19:40:13]MH_I2C_Read... [19:40: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 30 4F 00 00 00 89 0A 47 00 42 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 30 10 04 04 00 1B FB 03 00 F4 03 04 00 76 F7 C1 66 B6 04 01 00 00 11 CC 69 42 B6 63 BB A2 [19:40:13]CommunicateWithHost err = 0 [19:40:13]CheckOFDResponse [19:40:13]1017 (14) - 77093643461234 [19:40:13]1041 (16) - 0000000000871820 [19:40:13]1040 (4) - 260891 [19:40:13]1012 (4) - 18.08.2024 13:30 [19:40:13]1206 (1) - 0 [19:40:13]OFD Sender: Remove packet 260891 [19:40:13]ProducePacketName [19:40:13]name=ofd_packets/00260891 [19:40:13]NVStorageDeleteData [19:40:14]OFD Sender: No OFD packet to send [19:40:14]*** Cut start [19:40:14]*** Purtial cut [19:40:14]*** Stage 1: CUTSNS_PIN = 1 [19:40:16]Read from MH i2c: 01 [19:40:16]MH_I2C_Read... [19:40:16]*** Stop cut motor [19:40:16]*** Cut end [19:40:16]Read from MH i2c: 01 07 00 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: 01 07 00 23 BE 00 00 00 00 00 FF 0F F6 [19:40:16]process_action close_receipt done [19:40:16]requested_data is exist [19:40:16]produce_requested_data [19:40:16]requested_item fm.sn is exist - process it [19:40:16]wFMCommunicate request_size=4 [19:40:16]MH_SAM_APDU [19:40:16]CAPDU: 80 11 00 00 [19:40:16]Write to MH i2c: E2 08 00 24 BE 80 11 00 00 00 00 00 00 5C [19:40:16]Write i2c OK [19:40:16]MH_I2C_Read... [19:40:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:16]Read from MH i2c: E2 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: E2 17 00 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: E2 17 00 24 BE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A9 [19:40:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:40:16]wFMCommunicate OK [19:40:16]requested_item fd.num is exist - process it [19:40:16]SAM_PROTO_GetFieldsCounters [19:40:16]wFMCommunicate request_size=4 [19:40:16]MH_SAM_APDU [19:40:16]CAPDU: 80 13 00 00 [19:40:16]Write to MH i2c: E2 08 00 25 BE 80 13 00 00 00 00 00 00 5F [19:40:16]Write i2c OK [19:40:16]MH_I2C_Read... [19:40:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:17]Read from MH i2c: E2 [19:40:17]MH_I2C_Read... [19:40:17]Read from MH i2c: E2 62 00 [19:40:17]MH_I2C_Read... [19:40:17]Read from MH i2c: E2 62 00 25 BE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 1B FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C1 01 00 00 5E 04 04 00 C1 01 00 00 57 04 04 00 C2 01 00 00 19 04 04 00 00 00 00 00 90 00 9F [19:40: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 1B FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C1 01 00 00 5E 04 04 00 C1 01 00 00 57 04 04 00 C2 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:40:17]wFMCommunicate OK [19:40:17]SAM_PROTO_GetFieldsCounters done [19:40:17]requested_item shift.num is exist - process it [19:40:17]requested_item shift.opened is exist - process it [19:40:17]req_shift_opened [19:40:17]FM_GetShiftState [19:40:17]SAM_PROTO_GetShiftState [19:40:17]wFMCommunicate request_size=4 [19:40:17]MH_SAM_APDU [19:40:17]CAPDU: 80 13 01 00 [19:40:17]Write to MH i2c: E2 08 00 26 BE 80 13 01 00 00 00 00 00 61 [19:40:17]Write i2c OK [19:40:17]MH_I2C_Read... [19:40:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:17]Read from MH i2c: E2 [19:40:17]MH_I2C_Read... [19:40:17]Read from MH i2c: E2 0E 00 [19:40:17]MH_I2C_Read... [19:40:17]Read from MH i2c: E2 0E 00 26 BE 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 9E [19:40:17]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:40:17]wFMCommunicate OK [19:40:17]SAM_PROTO_GetShiftState done [19:40:17]FM_GetShiftState done [19:40:17]req_shift_opened done [19:40:17]requested_item shift.open_date is exist - process it [19:40:17]req_shift_open_date [19:40:17]req_shift_open_date done [19:40:17]produce_requested_data done [19:40:17]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260891,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [19:40:17]process_action_free close_receipt [19:40:17]json_value_free [19:40:17]json_value_free done [19:40:17]process_json_proto returns [19:40:17]Send response to host [19:40:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260891,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [19:40:17]free response buf [19:40:17]execute_script done [19:40:17]execute_script returns [19:40:17]free content buf [19:40:17]Sock 9.Close socket [19:40:17]Sock 9.Thread stoped [19:40:19]OFD Sender: No OFD packet to send [19:40:24]OFD Sender: No OFD packet to send [19:40:29]OFD Sender: No OFD packet to send [19:40:34]OFD Sender: No OFD packet to send [19:40:39]OFD Sender: No OFD packet to send [19:40:44]OFD Sender: No OFD packet to send [19:40:49]OFD Sender: No OFD packet to send [19:40:54]OFD Sender: No OFD packet to send [19:40:59]OFD Sender: No OFD packet to send [19:41:04]OFD Sender: No OFD packet to send [19:41:07]accept exits with 7 [19:41:07]New connection [19:41:07]New thread 3066473828 created [19:41:07]Thread 3066617188 joined [19:41:07]Waiting for new connection... [19:41:07] Sock 7.Parse request [19:41:07]Sock 7.Check first char [19:41:07]Sock 7.First char is OK [19:41:07]request: POST /json_proto HTTP/1.0 [19:41:07]Method: POST [19:41:07]URL: /json_proto [19:41:07]Method is POST - this is cgi request [19:41:07]url: /json_proto [19:41:07]query_string will be loaded in cgi processing [19:41:07]execute_cgi json_proto POST (null) [19:41:07]execute_cgi path=json_proto method=POST [19:41:07]POST find Content-Length [19:41:07]Host: 172.17.55.133:8080 [19:41:07]Content-Length: 683 [19:41:07]Content-Type: application/json [19:41:07] [19:41:07]POST finish read [19:41:07]Found Content-Length = 683 [19:41:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036444", "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" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "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:41:07]execute_script... [19:41: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)1036444", "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" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "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:41:07]POST & json_proto [19:41:07]process_json_proto [19:41:07]json parsed OK: [19:41:07]protocol is kg_v1.0 [19:41:07]action value=close_receipt [19:41:07]process_action close_receipt [19:41:07]cmd_close_receipt [19:41:07]MH_GetDate [19:41:07]Write to MH i2c: F0 00 00 27 BE D4 [19:41:07]Write i2c OK [19:41:07]MH_I2C_Read... [19:41:07]Read from MH i2c: F0 [19:41:07]MH_I2C_Read... [19:41:07]Read from MH i2c: F0 09 00 [19:41:07]MH_I2C_Read... [19:41:07]Read from MH i2c: F0 09 00 27 BE 00 59 4E C2 66 34 48 D8 65 65 [19:41:07]GetLastDocTimeStamp 1724010018 [19:41:07]current date 1724010073 [19:41:07]FM_GetShiftState [19:41:07]SAM_PROTO_GetShiftState [19:41:07]wFMCommunicate request_size=4 [19:41:07]MH_SAM_APDU [19:41:07]CAPDU: 80 13 01 00 [19:41:07]Write to MH i2c: E2 08 00 28 BE 80 13 01 00 00 00 00 00 63 [19:41:07]Write i2c OK [19:41:07]MH_I2C_Read... [19:41:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:07]Read from MH i2c: E2 [19:41:07]MH_I2C_Read... [19:41:07]Read from MH i2c: E2 0E 00 [19:41:07]MH_I2C_Read... [19:41:07]Read from MH i2c: E2 0E 00 28 BE 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A0 [19:41:07]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:41:07]wFMCommunicate OK [19:41:07]SAM_PROTO_GetShiftState done [19:41:07]FM_GetShiftState done [19:41:07]opened in 1723940556 [19:41:07]opened+sec_in_day 1724026956 [19:41:07]quantity*price = 200043 [19:41:07]sum+1 = 200044 [19:41:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 450 18.08.2024 19:41 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260892 ФПД: 178587791840895 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T194114&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260892&fm=178587791840895&tin=02508201610067®Number=0000000000091865&sum=200000 [19:41:08]StoreToDocumentArchive [19:41:08]shift 449 fd 260892 [19:41:08]save to /storage/0449/doc_00260892 [19:41:08]save last doc name /storage/0449/doc_00260892 to /storage/kkm_last_doc_name [19:41:08]save OK [19:41:08]Clear old archive folders... [19:41:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:41:08]tlvbuf is 003B5F20 [19:41:08]SAM_PROTO_ClearQueue [19:41:08]wFMCommunicate request_size=4 [19:41:08]MH_SAM_APDU [19:41:08]CAPDU: 80 09 00 00 [19:41:08]Write to MH i2c: E2 08 00 35 BE 80 09 00 00 00 00 00 00 65 [19:41:08]Write i2c OK [19:41:08]MH_I2C_Read... [19:41:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:41:08]Read from MH i2c: E2 [19:41:08]MH_I2C_Read... [19:41:08]Read from MH i2c: E2 03 00 [19:41:08]MH_I2C_Read... [19:41:08]Read from MH i2c: E2 03 00 35 BE 00 90 00 67 [19:41:08]RAPDU: 90 00 [19:41:08]wFMCommunicate OK [19:41:08]SAM_PROTO_ClearQueue done [19:41:08]KKMCreateOFDPacket [19:41:08]OFDProtocolAddRootSTLVToBuf [19:41:08]FM_MakeSignedData [19:41:08]FM_MakeSignedData [19:41:08]SAM_PROTO_SignData [19:41:08]wFMCommunicate request_size=4 [19:41:08]MH_SAM_APDU [19:41:08]CAPDU: 80 0D 01 02 [19:41:08]Write to MH i2c: E2 08 00 36 BE 80 0D 01 02 00 00 00 00 6D [19:41:08]Write i2c OK [19:41:08]MH_I2C_Read... [19:41:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:41:08]Read from MH i2c: E2 [19:41:08]MH_I2C_Read... [19:41:08]Read from MH i2c: E2 03 00 [19:41:08]MH_I2C_Read... [19:41:08]Read from MH i2c: E2 03 00 36 BE 00 90 00 68 [19:41:08]RAPDU: 90 00 [19:41:08]wFMCommunicate OK [19:41:08]wFMCommunicate request_size=255 [19:41:08]MH_SAM_APDU [19:41: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 01 00 00 F4 03 04 00 5A 4E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1C FB 03 00 35 04 06 00 A2 [19:41:08]Write to MH i2c: E2 02 01 37 BE 80 0D 02 02 FA 00 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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 01 00 00 F4 03 04 00 5A 4E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1C FB 03 00 35 04 06 00 A2 00 00 B3 [19:41:08]Write i2c OK [19:41:08]MH_I2C_Read... [19:41:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:09]Read from MH i2c: E2 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 03 00 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 03 00 37 BE 00 90 00 69 [19:41:09]RAPDU: 90 00 [19:41:09]wFMCommunicate OK [19:41:09]wFMCommunicate request_size=10 [19:41:09]MH_SAM_APDU [19:41:09]CAPDU: 80 0D 02 02 05 6C B5 E4 D6 7F [19:41:09]Write to MH i2c: E2 0D 00 38 BE 80 0D 02 02 05 00 6C B5 E4 D6 7F 00 00 D4 [19:41:09]Write i2c OK [19:41:09]MH_I2C_Read... [19:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:09]Read from MH i2c: E2 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 03 00 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 03 00 38 BE 00 90 00 6A [19:41:09]RAPDU: 90 00 [19:41:09]wFMCommunicate OK [19:41:09]wFMCommunicate request_size=4 [19:41:09]MH_SAM_APDU [19:41:09]CAPDU: 80 0D 03 02 [19:41:09]Write to MH i2c: E2 08 00 39 BE 80 0D 03 02 00 00 00 00 72 [19:41:09]Write i2c OK [19:41:09]MH_I2C_Read... [19:41:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:41:09]Read from MH i2c: E2 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 0B 00 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 0B 00 39 BE 00 5A B1 4D E0 BC 53 F1 36 90 00 E1 [19:41:09]RAPDU: 5A B1 4D E0 BC 53 F1 36 90 00 [19:41:09]wFMCommunicate OK [19:41:09]SAM_PROTO_SignData done [19:41:09]FM_MakeSignedData done [19:41:09]CreateOFDProtocolMessage [19:41:09]wFMCommunicate request_size=4 [19:41:09]MH_SAM_APDU [19:41:09]CAPDU: 80 11 00 00 [19:41:09]Write to MH i2c: E2 08 00 3A BE 80 11 00 00 00 00 00 00 72 [19:41:09]Write i2c OK [19:41:09]MH_I2C_Read... [19:41:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:09]Read from MH i2c: E2 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 17 00 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 17 00 3A BE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 BF [19:41:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:41:09]wFMCommunicate OK [19:41:09]CreateOFDProtocolMessage done [19:41:09]OFDSenderStorePacket 260892 [19:41:09]StoreOFDPacket docnum=260892 [19:41:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 CB 5A 07 01 24 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 01 00 00 F4 03 04 00 5A 4E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1C FB 03 00 35 04 06 00 A2 6C B5 E4 D6 7F 5A B1 4D E0 BC 53 F1 36 [19:41:09]CheckFolder [19:41:09]dirname=/storage/ofd_packets [19:41:09]CheckFolder done [19:41:09]ProducePacketName [19:41:09]name=ofd_packets/00260892 [19:41:09]NVStorageSaveData ofd_packets/00260892 [19:41:09]File name is /storage/ofd_packets/00260892 [19:41:09]Write 301 bytes [19:41:09]NVStorageSaveData done [19:41:09]OFDSenderStorePacket done [19:41:09]KKMCreateOFDPacket done [19:41:09]NVStorageSaveData kkm_last_timestamp [19:41:09]File name is /storage/kkm_last_timestamp [19:41:09]Write 4 bytes [19:41:09]NVStorageSaveData done [19:41:09]ExternCall_PrintAddStr [19:41:09]wPrintStart [19:41:09]Write to MH i2c: 01 00 00 3B BE F9 [19:41:09]Write i2c OK [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: 01 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: 01 07 00 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: 01 07 00 3B BE 00 00 00 00 00 FF 0F 0E [19:41:09]RasterBufferAndPrint [19:41:09]line Счет N : (1)1036444 [19:41:09]line ИНН: 02508201610067 [19:41:09]line Контрольно-Кассовый Чек [19:41:09]line ПРОДАЖА [19:41:09]line ТРК (МРК, ГНК) : 23 [19:41:09]line Товар: 2710124500 [19:41:09]line Аи-95-К-5 [19:41:09]line 26.960 * 74.20 [19:41:09]line = 2000.43 [19:41:09]line НДС 12% НСП 1% [19:41:09]line > о реализуемом товаре [19:41:09]line ОКРУГЛЕНИЕ: -0.43 [19:41:09]line ИТОГО: 2000.00 [19:41:09]line Внесено: 2000.00 [19:41:09]line СДАЧА: 0.00 [19:41:09]line НСП 1% : 17.70 [19:41:09]line НДС 12% : 212.43 [19:41:09]line Наличными: 2000.00 [19:41:09]line Безнал.: 0.00 [19:41:09]line Место: АЗС № 94 "Партнер Нефть" [19:41:09]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [19:41:09]line СНО: Общий режим [19:41:09]line Чек 450 18.08.2024 19:41 [19:41:09]line Смена: 449 ФФД: 1.0 [19:41:09]line ЗНМ: 0300000099 [19:41:09]line РНМ: 0000000000091865 [19:41:09]line Версия ККМ: 001 [19:41:09]line ФМ: 0000000000871820 [19:41:09]line ФД: 260892 [19:41:09]line ФПД: 178587791840895 [19:41:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T194114&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260892&fm=178587791840895&tin=02508201610067®Number=0000000000091865&sum=200000 [19:41:09]written 0, free lines is 4095 [19:41:09]OFD Sender: Processing packet 260892 [packets to send 192, broken 191] [19:41:09]ProducePacketName [19:41:09]name=ofd_packets/00260892 [19:41:09]OFD Sender: To server: pG, [19:41:09]CommunicateWithHost lk.salyk.kg:30040 [19:41:09]ConnectInit lk.salyk.kg [19:41:09]Connected sock=10 [19:41: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 30 0F 01 00 00 CB 5A 07 01 24 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 01 00 00 F4 03 04 00 5A 4E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1C FB 03 00 35 04 06 00 A2 6C B5 E4 D6 7F 5A B1 4D E0 BC 53 F1 36 [19:41: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 30 4F 00 00 00 FD E8 47 00 D8 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 30 10 04 04 00 1C FB 03 00 F4 03 04 00 AE F7 C1 66 B6 04 01 00 00 86 79 86 13 1C 70 9B 2E [19:41:09]CommunicateWithHost err = 0 [19:41:09]CheckOFDResponse [19:41:09]1017 (14) - 77093643461234 [19:41:09]1041 (16) - 0000000000871820 [19:41:09]1040 (4) - 260892 [19:41:09]1012 (4) - 18.08.2024 13:31 [19:41:09]1206 (1) - 0 [19:41:09]OFD Sender: Remove packet 260892 [19:41:09]ProducePacketName [19:41:09]name=ofd_packets/00260892 [19:41:09]NVStorageDeleteData [19:41:09]Write to MH i2c: 01 00 00 66 BE 24 [19:41:09]Write i2c OK [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: 01 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: 01 07 00 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: 01 07 00 66 BE 00 00 00 00 00 6F 0C A6 [19:41:09]RasterBufferAndPrint [19:41:09]line [19:41:09]line [19:41:09]line [19:41:09]line [19:41:09]line [19:41:09]written 0, free lines is 3186 [19:41:09]MH_Cut [19:41:09]Write to MH i2c: D1 01 00 6D BE 01 FD [19:41:09]Write i2c OK [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: D1 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: D1 01 00 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: D1 01 00 6D BE 00 FC [19:41:09]Write to MH i2c: 01 00 00 6E BE 2C [19:41:09]Write i2c OK [19:41:09]MH_I2C_Read... [19:41:10]OFD Sender: No OFD packet to send [19:41:11]*** Cut start [19:41:11]*** Purtial cut [19:41:11]*** Stage 1: CUTSNS_PIN = 1 [19:41:13]Read from MH i2c: 01 [19:41:13]MH_I2C_Read... [19:41:13]*** Stop cut motor [19:41:13]*** Cut end [19:41:13]Read from MH i2c: 01 07 00 [19:41:13]MH_I2C_Read... [19:41:13]Read from MH i2c: 01 07 00 6E BE 00 00 00 00 00 FF 0F 41 [19:41:13]process_action close_receipt done [19:41:13]requested_data is exist [19:41:13]produce_requested_data [19:41:13]requested_item fm.sn is exist - process it [19:41:13]wFMCommunicate request_size=4 [19:41:13]MH_SAM_APDU [19:41:13]CAPDU: 80 11 00 00 [19:41:13]Write to MH i2c: E2 08 00 6F BE 80 11 00 00 00 00 00 00 A7 [19:41:13]Write i2c OK [19:41:13]MH_I2C_Read... [19:41:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:13]Read from MH i2c: E2 [19:41:13]MH_I2C_Read... [19:41:13]Read from MH i2c: E2 17 00 [19:41:13]MH_I2C_Read... [19:41:13]Read from MH i2c: E2 17 00 6F BE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F4 [19:41:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:41:13]wFMCommunicate OK [19:41:13]requested_item fd.num is exist - process it [19:41:13]SAM_PROTO_GetFieldsCounters [19:41:13]wFMCommunicate request_size=4 [19:41:13]MH_SAM_APDU [19:41:13]CAPDU: 80 13 00 00 [19:41:13]Write to MH i2c: E2 08 00 70 BE 80 13 00 00 00 00 00 00 AA [19:41:13]Write i2c OK [19:41:13]MH_I2C_Read... [19:41:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:41:13]Read from MH i2c: E2 [19:41:13]MH_I2C_Read... [19:41:13]Read from MH i2c: E2 62 00 [19:41:13]MH_I2C_Read... [19:41:13]Read from MH i2c: E2 62 00 70 BE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 1C FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C2 01 00 00 5E 04 04 00 C2 01 00 00 57 04 04 00 C3 01 00 00 19 04 04 00 00 00 00 00 90 00 EE [19:41: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 1C FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C2 01 00 00 5E 04 04 00 C2 01 00 00 57 04 04 00 C3 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:41:13]wFMCommunicate OK [19:41:13]SAM_PROTO_GetFieldsCounters done [19:41:13]requested_item shift.num is exist - process it [19:41:13]requested_item shift.opened is exist - process it [19:41:13]req_shift_opened [19:41:13]FM_GetShiftState [19:41:13]SAM_PROTO_GetShiftState [19:41:13]wFMCommunicate request_size=4 [19:41:13]MH_SAM_APDU [19:41:13]CAPDU: 80 13 01 00 [19:41:13]Write to MH i2c: E2 08 00 71 BE 80 13 01 00 00 00 00 00 AC [19:41:13]Write i2c OK [19:41:13]MH_I2C_Read... [19:41:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:13]Read from MH i2c: E2 [19:41:13]MH_I2C_Read... [19:41:13]Read from MH i2c: E2 0E 00 [19:41:13]MH_I2C_Read... [19:41:13]Read from MH i2c: E2 0E 00 71 BE 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E9 [19:41:13]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:41:13]wFMCommunicate OK [19:41:13]SAM_PROTO_GetShiftState done [19:41:13]FM_GetShiftState done [19:41:13]req_shift_opened done [19:41:13]requested_item shift.open_date is exist - process it [19:41:13]req_shift_open_date [19:41:13]req_shift_open_date done [19:41:13]produce_requested_data done [19:41:13]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260892,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [19:41:13]process_action_free close_receipt [19:41:13]json_value_free [19:41:13]json_value_free done [19:41:13]process_json_proto returns [19:41:13]Send response to host [19:41:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260892,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [19:41:13]free response buf [19:41:13]execute_script done [19:41:13]execute_script returns [19:41:13]free content buf [19:41:13]Sock 7.Close socket [19:41:13]Sock 7.Thread stoped [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:30]accept exits with 9 [19:41:30]New connection [19:41:30]New thread 3066617188 created [19:41:30]Thread 3066473828 joined [19:41:30]Waiting for new connection... [19:41:30] Sock 9.Parse request [19:41:30]Sock 9.Check first char [19:41:30]Sock 9.First char is OK [19:41:30]request: POST /json_proto HTTP/1.0 [19:41:30]Method: POST [19:41:30]URL: /json_proto [19:41:30]Method is POST - this is cgi request [19:41:30]url: /json_proto [19:41:30]query_string will be loaded in cgi processing [19:41:30]execute_cgi json_proto POST (null) [19:41:30]execute_cgi path=json_proto method=POST [19:41:30]POST find Content-Length [19:41:30]Host: 172.17.55.133:8080 [19:41:30]Content-Length: 683 [19:41:30]Content-Type: application/json [19:41:30] [19:41:30]POST finish read [19:41:30]Found Content-Length = 683 [19:41:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:41:30]execute_script... [19:41: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)1036445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:41:30]POST & json_proto [19:41:30]process_json_proto [19:41:30]json parsed OK: [19:41:30]protocol is kg_v1.0 [19:41:30]action value=close_receipt [19:41:30]process_action close_receipt [19:41:30]cmd_close_receipt [19:41:30]MH_GetDate [19:41:30]Write to MH i2c: F0 00 00 72 BE 1F [19:41:30]Write i2c OK [19:41:30]MH_I2C_Read... [19:41:30]Read from MH i2c: F0 [19:41:30]MH_I2C_Read... [19:41:30]Read from MH i2c: F0 09 00 [19:41:30]MH_I2C_Read... [19:41:30]Read from MH i2c: F0 09 00 72 BE 00 71 4E C2 66 34 48 D8 65 C8 [19:41:30]GetLastDocTimeStamp 1724010074 [19:41:30]current date 1724010097 [19:41:30]FM_GetShiftState [19:41:30]SAM_PROTO_GetShiftState [19:41:30]wFMCommunicate request_size=4 [19:41:30]MH_SAM_APDU [19:41:30]CAPDU: 80 13 01 00 [19:41:30]Write to MH i2c: E2 08 00 73 BE 80 13 01 00 00 00 00 00 AE [19:41:30]Write i2c OK [19:41:30]MH_I2C_Read... [19:41:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:31]Read from MH i2c: E2 [19:41:31]MH_I2C_Read... [19:41:31]Read from MH i2c: E2 0E 00 [19:41:31]MH_I2C_Read... [19:41:31]Read from MH i2c: E2 0E 00 73 BE 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 EB [19:41:31]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:41:31]wFMCommunicate OK [19:41:31]SAM_PROTO_GetShiftState done [19:41:31]FM_GetShiftState done [19:41:31]opened in 1723940556 [19:41:31]opened+sec_in_day 1724026956 [19:41:31]quantity*price = 100005 [19:41:31]sum+1 = 100006 [19:41:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 451 18.08.2024 19:41 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260893 ФПД: 195555262043146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T194137&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260893&fm=195555262043146&tin=02508201610067®Number=0000000000091865&sum=100000 [19:41:32]StoreToDocumentArchive [19:41:32]shift 449 fd 260893 [19:41:32]save to /storage/0449/doc_00260893 [19:41:32]save last doc name /storage/0449/doc_00260893 to /storage/kkm_last_doc_name [19:41:32]save OK [19:41:32]Clear old archive folders... [19:41:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:41:32]tlvbuf is 0055F5E0 [19:41:32]SAM_PROTO_ClearQueue [19:41:32]wFMCommunicate request_size=4 [19:41:32]MH_SAM_APDU [19:41:32]CAPDU: 80 09 00 00 [19:41:32]Write to MH i2c: E2 08 00 80 BE 80 09 00 00 00 00 00 00 B0 [19:41:32]Write i2c OK [19:41:32]MH_I2C_Read... [19:41:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:41:32]Read from MH i2c: E2 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: E2 03 00 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: E2 03 00 80 BE 00 90 00 B2 [19:41:32]RAPDU: 90 00 [19:41:32]wFMCommunicate OK [19:41:32]SAM_PROTO_ClearQueue done [19:41:32]KKMCreateOFDPacket [19:41:32]OFDProtocolAddRootSTLVToBuf [19:41:32]FM_MakeSignedData [19:41:32]FM_MakeSignedData [19:41:32]SAM_PROTO_SignData [19:41:32]wFMCommunicate request_size=4 [19:41:32]MH_SAM_APDU [19:41:32]CAPDU: 80 0D 01 02 [19:41:32]Write to MH i2c: E2 08 00 81 BE 80 0D 01 02 00 00 00 00 B8 [19:41:32]Write i2c OK [19:41:32]MH_I2C_Read... [19:41:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:41:32]Read from MH i2c: E2 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: E2 03 00 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: E2 03 00 81 BE 00 90 00 B3 [19:41:32]RAPDU: 90 00 [19:41:32]wFMCommunicate OK [19:41:32]wFMCommunicate request_size=255 [19:41:32]MH_SAM_APDU [19:41:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 01 00 00 F4 03 04 00 71 4E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1D FB 03 00 35 04 06 00 B1 [19:41:32]Write to MH i2c: E2 02 01 82 BE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 01 00 00 F4 03 04 00 71 4E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1D FB 03 00 35 04 06 00 B1 00 00 FD [19:41:32]Write i2c OK [19:41:32]MH_I2C_Read... [19:41:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:32]Read from MH i2c: E2 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: E2 03 00 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: E2 03 00 82 BE 00 90 00 B4 [19:41:32]RAPDU: 90 00 [19:41:32]wFMCommunicate OK [19:41:32]wFMCommunicate request_size=10 [19:41:32]MH_SAM_APDU [19:41:32]CAPDU: 80 0D 02 02 05 DB 41 ED 94 0A [19:41:32]Write to MH i2c: E2 0D 00 83 BE 80 0D 02 02 05 00 DB 41 ED 94 0A 00 00 6C [19:41:32]Write i2c OK [19:41:32]MH_I2C_Read... [19:41:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:32]Read from MH i2c: E2 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: E2 03 00 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: E2 03 00 83 BE 00 90 00 B5 [19:41:32]RAPDU: 90 00 [19:41:32]wFMCommunicate OK [19:41:32]wFMCommunicate request_size=4 [19:41:32]MH_SAM_APDU [19:41:32]CAPDU: 80 0D 03 02 [19:41:32]Write to MH i2c: E2 08 00 84 BE 80 0D 03 02 00 00 00 00 BD [19:41:32]Write i2c OK [19:41:32]MH_I2C_Read... [19:41:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:41:32]Read from MH i2c: E2 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: E2 0B 00 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: E2 0B 00 84 BE 00 23 83 02 2C 67 E2 AD B2 90 00 3A [19:41:32]RAPDU: 23 83 02 2C 67 E2 AD B2 90 00 [19:41:32]wFMCommunicate OK [19:41:32]SAM_PROTO_SignData done [19:41:32]FM_MakeSignedData done [19:41:32]CreateOFDProtocolMessage [19:41:32]wFMCommunicate request_size=4 [19:41:32]MH_SAM_APDU [19:41:32]CAPDU: 80 11 00 00 [19:41:32]Write to MH i2c: E2 08 00 85 BE 80 11 00 00 00 00 00 00 BD [19:41:32]Write i2c OK [19:41:32]MH_I2C_Read... [19:41:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:32]Read from MH i2c: E2 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: E2 17 00 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: E2 17 00 85 BE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 0A [19:41:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:41:32]wFMCommunicate OK [19:41:32]CreateOFDProtocolMessage done [19:41:32]OFDSenderStorePacket 260893 [19:41:32]StoreOFDPacket docnum=260893 [19:41:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 11 6D 07 01 0B 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 01 00 00 F4 03 04 00 71 4E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1D FB 03 00 35 04 06 00 B1 DB 41 ED 94 0A 23 83 02 2C 67 E2 AD B2 [19:41:32]CheckFolder [19:41:32]dirname=/storage/ofd_packets [19:41:32]CheckFolder done [19:41:32]ProducePacketName [19:41:32]name=ofd_packets/00260893 [19:41:32]NVStorageSaveData ofd_packets/00260893 [19:41:32]File name is /storage/ofd_packets/00260893 [19:41:32]Write 301 bytes [19:41:32]NVStorageSaveData done [19:41:32]OFDSenderStorePacket done [19:41:32]KKMCreateOFDPacket done [19:41:32]NVStorageSaveData kkm_last_timestamp [19:41:32]File name is /storage/kkm_last_timestamp [19:41:32]Write 4 bytes [19:41:32]NVStorageSaveData done [19:41:32]ExternCall_PrintAddStr [19:41:32]wPrintStart [19:41:32]Write to MH i2c: 01 00 00 86 BE 44 [19:41:32]Write i2c OK [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: 01 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: 01 07 00 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: 01 07 00 86 BE 00 00 00 00 00 FF 0F 59 [19:41:32]RasterBufferAndPrint [19:41:32]line Счет N : (1)1036445 [19:41:32]line ИНН: 02508201610067 [19:41:32]line Контрольно-Кассовый Чек [19:41:32]line ПРОДАЖА [19:41:32]line ТРК (МРК, ГНК) : 42 [19:41:32]line Товар: 2710124130 [19:41:32]line Аи-92-К-5 [19:41:32]line 14.750 * 67.80 [19:41:32]line = 1000.05 [19:41:32]line НДС 12% НСП 1% [19:41:32]line > о реализуемом товаре [19:41:32]line ОКРУГЛЕНИЕ: -0.05 [19:41:32]line ИТОГО: 1000.00 [19:41:32]line Внесено: 1000.00 [19:41:32]line СДАЧА: 0.00 [19:41:32]line НСП 1% : 8.85 [19:41:32]line НДС 12% : 106.20 [19:41:32]line Наличными: 1000.00 [19:41:32]line Безнал.: 0.00 [19:41:32]line Место: АЗС № 94 "Партнер Нефть" [19:41:32]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [19:41:32]line СНО: Общий режим [19:41:32]line Чек 451 18.08.2024 19:41 [19:41:32]line Смена: 449 ФФД: 1.0 [19:41:32]line ЗНМ: 0300000099 [19:41:32]line РНМ: 0000000000091865 [19:41:32]line Версия ККМ: 001 [19:41:32]line ФМ: 0000000000871820 [19:41:32]line ФД: 260893 [19:41:32]line ФПД: 195555262043146 [19:41:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T194137&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260893&fm=195555262043146&tin=02508201610067®Number=0000000000091865&sum=100000 [19:41:32]written 0, free lines is 4095 [19:41:32]OFD Sender: Processing packet 260893 [packets to send 192, broken 191] [19:41:32]ProducePacketName [19:41:32]name=ofd_packets/00260893 [19:41:32]OFD Sender: To server: pG, [19:41:32]CommunicateWithHost lk.salyk.kg:30040 [19:41:32]ConnectInit lk.salyk.kg [19:41:32]Connected sock=10 [19:41: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 30 0F 01 00 00 11 6D 07 01 0B 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 01 00 00 F4 03 04 00 71 4E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1D FB 03 00 35 04 06 00 B1 DB 41 ED 94 0A 23 83 02 2C 67 E2 AD B2 [19:41: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 30 4F 00 00 00 4C 7B 47 00 59 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 30 10 04 04 00 1D FB 03 00 F4 03 04 00 C5 F7 C1 66 B6 04 01 00 00 A1 E7 1D 01 93 0F 88 A9 [19:41:33]CommunicateWithHost err = 0 [19:41:33]CheckOFDResponse [19:41:33]1017 (14) - 77093643461234 [19:41:33]1041 (16) - 0000000000871820 [19:41:33]1040 (4) - 260893 [19:41:33]1012 (4) - 18.08.2024 13:31 [19:41:33]1206 (1) - 0 [19:41:33]OFD Sender: Remove packet 260893 [19:41:33]ProducePacketName [19:41:33]name=ofd_packets/00260893 [19:41:33]NVStorageDeleteData [19:41:33]Write to MH i2c: 01 00 00 B1 BE 6F [19:41:33]Write i2c OK [19:41:33]MH_I2C_Read... [19:41:33]Read from MH i2c: 01 [19:41:33]MH_I2C_Read... [19:41:33]Read from MH i2c: 01 07 00 [19:41:33]MH_I2C_Read... [19:41:33]Read from MH i2c: 01 07 00 B1 BE 00 00 00 00 00 75 0C F7 [19:41:33]RasterBufferAndPrint [19:41:33]line [19:41:33]line [19:41:33]line [19:41:33]line [19:41:33]line [19:41:33]written 0, free lines is 3192 [19:41:33]MH_Cut [19:41:33]Write to MH i2c: D1 01 00 B8 BE 01 48 [19:41:33]Write i2c OK [19:41:33]MH_I2C_Read... [19:41:33]Read from MH i2c: D1 [19:41:33]MH_I2C_Read... [19:41:33]Read from MH i2c: D1 01 00 [19:41:33]MH_I2C_Read... [19:41:33]Read from MH i2c: D1 01 00 B8 BE 00 47 [19:41:33]Write to MH i2c: 01 00 00 B9 BE 77 [19:41:33]Write i2c OK [19:41:33]MH_I2C_Read... [19:41:33]OFD Sender: No OFD packet to send [19:41:34]*** Cut start [19:41:34]*** Purtial cut [19:41:34]*** Stage 1: CUTSNS_PIN = 1 [19:41:36]Read from MH i2c: 01 [19:41:36]MH_I2C_Read... [19:41:36]*** Stop cut motor [19:41:36]*** Cut end [19:41:36]Read from MH i2c: 01 07 00 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: 01 07 00 B9 BE 00 00 00 00 00 FF 0F 8C [19:41:36]process_action close_receipt done [19:41:36]requested_data is exist [19:41:36]produce_requested_data [19:41:36]requested_item fm.sn is exist - process it [19:41:36]wFMCommunicate request_size=4 [19:41:36]MH_SAM_APDU [19:41:36]CAPDU: 80 11 00 00 [19:41:36]Write to MH i2c: E2 08 00 BA BE 80 11 00 00 00 00 00 00 F2 [19:41:36]Write i2c OK [19:41:36]MH_I2C_Read... [19:41:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:36]Read from MH i2c: E2 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 17 00 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 17 00 BA BE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 3F [19:41:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:41:36]wFMCommunicate OK [19:41:36]requested_item fd.num is exist - process it [19:41:36]SAM_PROTO_GetFieldsCounters [19:41:36]wFMCommunicate request_size=4 [19:41:36]MH_SAM_APDU [19:41:36]CAPDU: 80 13 00 00 [19:41:36]Write to MH i2c: E2 08 00 BB BE 80 13 00 00 00 00 00 00 F5 [19:41:36]Write i2c OK [19:41:36]MH_I2C_Read... [19:41:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:41:36]Read from MH i2c: E2 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 62 00 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 62 00 BB BE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 1D FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C3 01 00 00 5E 04 04 00 C3 01 00 00 57 04 04 00 C4 01 00 00 19 04 04 00 00 00 00 00 90 00 3D [19: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 1D FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C3 01 00 00 5E 04 04 00 C3 01 00 00 57 04 04 00 C4 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:41:36]wFMCommunicate OK [19:41:36]SAM_PROTO_GetFieldsCounters done [19:41:36]requested_item shift.num is exist - process it [19:41:36]requested_item shift.opened is exist - process it [19:41:36]req_shift_opened [19:41:36]FM_GetShiftState [19:41:36]SAM_PROTO_GetShiftState [19:41:36]wFMCommunicate request_size=4 [19:41:36]MH_SAM_APDU [19:41:36]CAPDU: 80 13 01 00 [19:41:36]Write to MH i2c: E2 08 00 BC BE 80 13 01 00 00 00 00 00 F7 [19:41:36]Write i2c OK [19:41:36]MH_I2C_Read... [19:41:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:36]Read from MH i2c: E2 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 0E 00 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 0E 00 BC BE 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 34 [19:41:36]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:41:36]wFMCommunicate OK [19:41:36]SAM_PROTO_GetShiftState done [19:41:36]FM_GetShiftState done [19:41:36]req_shift_opened done [19:41:36]requested_item shift.open_date is exist - process it [19:41:36]req_shift_open_date [19:41:36]req_shift_open_date done [19:41:36]produce_requested_data done [19:41:36]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260893,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [19:41:36]process_action_free close_receipt [19:41:36]json_value_free [19:41:36]json_value_free done [19:41:36]process_json_proto returns [19:41:36]Send response to host [19:41:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260893,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [19:41:36]free response buf [19:41:36]execute_script done [19:41:36]execute_script returns [19:41:36]free content buf [19:41:36]Sock 9.Close socket [19:41:36]Sock 9.Thread stoped [19:41:38]OFD Sender: No OFD packet to send [19:41:43]OFD Sender: No OFD packet to send [19:41:48]OFD Sender: No OFD packet to send [19:41:53]OFD Sender: No OFD packet to send [19:41:58]OFD Sender: No OFD packet to send [19:42:03]OFD Sender: No OFD packet to send [19:42:08]OFD Sender: No OFD packet to send [19:42:13]OFD Sender: No OFD packet to send [19:42:18]OFD Sender: No OFD packet to send [19:42:23]OFD Sender: No OFD packet to send [19:42:28]OFD Sender: No OFD packet to send [19:42:33]OFD Sender: No OFD packet to send [19:42:38]OFD Sender: No OFD packet to send [19:42:43]OFD Sender: No OFD packet to send [19:42:48]OFD Sender: No OFD packet to send [19:42:53]OFD Sender: No OFD packet to send [19:42:58]OFD Sender: No OFD packet to send [19:43:03]OFD Sender: No OFD packet to send [19:43:08]OFD Sender: No OFD packet to send [19:43:13]OFD Sender: No OFD packet to send [19:43:18]OFD Sender: No OFD packet to send [19:43:23]OFD Sender: No OFD packet to send [19:43:25]accept exits with 7 [19:43:25]New connection [19:43:25]New thread 3066473828 created [19:43:25]Thread 3066617188 joined [19:43:25]Waiting for new connection... [19:43:25] Sock 7.Parse request [19:43:25]Sock 7.Check first char [19:43:25]Sock 7.First char is OK [19:43:25]request: POST /json_proto HTTP/1.0 [19:43:25]Method: POST [19:43:25]URL: /json_proto [19:43:25]Method is POST - this is cgi request [19:43:25]url: /json_proto [19:43:25]query_string will be loaded in cgi processing [19:43:25]execute_cgi json_proto POST (null) [19:43:25]execute_cgi path=json_proto method=POST [19:43:25]POST find Content-Length [19:43:25]Host: 172.17.55.133:8080 [19:43:25]Content-Length: 679 [19:43:25]Content-Type: application/json [19:43:25] [19:43:25]POST finish read [19:43:25]Found Content-Length = 679 [19:43:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [19:43:25]execute_script... [19:43:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [19:43:25]POST & json_proto [19:43:25]process_json_proto [19:43:25]json parsed OK: [19:43:25]protocol is kg_v1.0 [19:43:25]action value=close_receipt [19:43:25]process_action close_receipt [19:43:25]cmd_close_receipt [19:43:25]MH_GetDate [19:43:25]Write to MH i2c: F0 00 00 BD BE 6A [19:43:25]Write i2c OK [19:43:25]MH_I2C_Read... [19:43:25]Read from MH i2c: F0 [19:43:25]MH_I2C_Read... [19:43:25]Read from MH i2c: F0 09 00 [19:43:25]MH_I2C_Read... [19:43:25]Read from MH i2c: F0 09 00 BD BE 00 E3 4E C2 66 34 48 D8 65 85 [19:43:25]GetLastDocTimeStamp 1724010097 [19:43:25]current date 1724010211 [19:43:25]FM_GetShiftState [19:43:25]SAM_PROTO_GetShiftState [19:43:25]wFMCommunicate request_size=4 [19:43:25]MH_SAM_APDU [19:43:25]CAPDU: 80 13 01 00 [19:43:25]Write to MH i2c: E2 08 00 BE BE 80 13 01 00 00 00 00 00 F9 [19:43:25]Write i2c OK [19:43:25]MH_I2C_Read... [19:43:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:25]Read from MH i2c: E2 [19:43:25]MH_I2C_Read... [19:43:25]Read from MH i2c: E2 0E 00 [19:43:25]MH_I2C_Read... [19:43:25]Read from MH i2c: E2 0E 00 BE BE 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 36 [19:43:25]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:43:25]wFMCommunicate OK [19:43:25]SAM_PROTO_GetShiftState done [19:43:25]FM_GetShiftState done [19:43:25]opened in 1723940556 [19:43:25]opened+sec_in_day 1724026956 [19:43:25]quantity*price = 70037 [19:43:25]sum+1 = 70038 [19:43:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 452 18.08.2024 19:43 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260894 ФПД: 168551336725910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T194332&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260894&fm=168551336725910&tin=02508201610067®Number=0000000000091865&sum=70000 [19:43:26]StoreToDocumentArchive [19:43:26]shift 449 fd 260894 [19:43:26]save to /storage/0449/doc_00260894 [19:43:26]save last doc name /storage/0449/doc_00260894 to /storage/kkm_last_doc_name [19:43:26]save OK [19:43:26]Clear old archive folders... [19:43:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:43:26]tlvbuf is 0057B460 [19:43:26]SAM_PROTO_ClearQueue [19:43:26]wFMCommunicate request_size=4 [19:43:26]MH_SAM_APDU [19:43:26]CAPDU: 80 09 00 00 [19:43:26]Write to MH i2c: E2 08 00 CB BE 80 09 00 00 00 00 00 00 FB [19:43:26]Write i2c OK [19:43:26]MH_I2C_Read... [19:43:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:43:26]Read from MH i2c: E2 [19:43:26]MH_I2C_Read... [19:43:26]Read from MH i2c: E2 03 00 [19:43:26]MH_I2C_Read... [19:43:26]Read from MH i2c: E2 03 00 CB BE 00 90 00 FD [19:43:26]RAPDU: 90 00 [19:43:26]wFMCommunicate OK [19:43:26]SAM_PROTO_ClearQueue done [19:43:26]KKMCreateOFDPacket [19:43:26]OFDProtocolAddRootSTLVToBuf [19:43:26]FM_MakeSignedData [19:43:26]FM_MakeSignedData [19:43:26]SAM_PROTO_SignData [19:43:26]wFMCommunicate request_size=4 [19:43:26]MH_SAM_APDU [19:43:26]CAPDU: 80 0D 01 02 [19:43:26]Write to MH i2c: E2 08 00 CC BE 80 0D 01 02 00 00 00 00 03 [19:43:26]Write i2c OK [19:43:26]MH_I2C_Read... [19:43:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:43:26]Read from MH i2c: E2 [19:43:26]MH_I2C_Read... [19:43:26]Read from MH i2c: E2 03 00 [19:43:26]MH_I2C_Read... [19:43:26]Read from MH i2c: E2 03 00 CC BE 00 90 00 FE [19:43:26]RAPDU: 90 00 [19:43:26]wFMCommunicate OK [19:43:26]wFMCommunicate request_size=255 [19:43:26]MH_SAM_APDU [19:43:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 C4 01 00 00 F4 03 04 00 E4 4E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1E FB 03 00 35 04 06 00 99 [19:43:26]Write to MH i2c: E2 02 01 CD BE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 C4 01 00 00 F4 03 04 00 E4 4E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1E FB 03 00 35 04 06 00 99 00 00 FD [19:43:26]Write i2c OK [19:43:26]MH_I2C_Read... [19:43:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:26]Read from MH i2c: E2 [19:43:26]MH_I2C_Read... [19:43:26]Read from MH i2c: E2 03 00 [19:43:26]MH_I2C_Read... [19:43:26]Read from MH i2c: E2 03 00 CD BE 00 90 00 FF [19:43:26]RAPDU: 90 00 [19:43:26]wFMCommunicate OK [19:43:26]wFMCommunicate request_size=10 [19:43:26]MH_SAM_APDU [19:43:26]CAPDU: 80 0D 02 02 05 4B EA 8D 4D 96 [19:43:26]Write to MH i2c: E2 0D 00 CE BE 80 0D 02 02 05 00 4B EA 8D 4D 96 00 00 B5 [19:43:26]Write i2c OK [19:43:26]MH_I2C_Read... [19:43:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:27]Read from MH i2c: E2 [19:43:27]MH_I2C_Read... [19:43:27]Read from MH i2c: E2 03 00 [19:43:27]MH_I2C_Read... [19:43:27]Read from MH i2c: E2 03 00 CE BE 00 90 00 00 [19:43:27]RAPDU: 90 00 [19:43:27]wFMCommunicate OK [19:43:27]wFMCommunicate request_size=4 [19:43:27]MH_SAM_APDU [19:43:27]CAPDU: 80 0D 03 02 [19:43:27]Write to MH i2c: E2 08 00 CF BE 80 0D 03 02 00 00 00 00 08 [19:43:27]Write i2c OK [19:43:27]MH_I2C_Read... [19:43:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:43:27]Read from MH i2c: E2 [19:43:27]MH_I2C_Read... [19:43:27]Read from MH i2c: E2 0B 00 [19:43:27]MH_I2C_Read... [19:43:27]Read from MH i2c: E2 0B 00 CF BE 00 5E 35 D9 8A A5 AB C0 5A 90 00 69 [19:43:27]RAPDU: 5E 35 D9 8A A5 AB C0 5A 90 00 [19:43:27]wFMCommunicate OK [19:43:27]SAM_PROTO_SignData done [19:43:27]FM_MakeSignedData done [19:43:27]CreateOFDProtocolMessage [19:43:27]wFMCommunicate request_size=4 [19:43:27]MH_SAM_APDU [19:43:27]CAPDU: 80 11 00 00 [19:43:27]Write to MH i2c: E2 08 00 D0 BE 80 11 00 00 00 00 00 00 08 [19:43:27]Write i2c OK [19:43:27]MH_I2C_Read... [19:43:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:27]Read from MH i2c: E2 [19:43:27]MH_I2C_Read... [19:43:27]Read from MH i2c: E2 17 00 [19:43:27]MH_I2C_Read... [19:43:27]Read from MH i2c: E2 17 00 D0 BE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 55 [19:43:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:43:27]wFMCommunicate OK [19:43:27]CreateOFDProtocolMessage done [19:43:27]OFDSenderStorePacket 260894 [19:43:27]StoreOFDPacket docnum=260894 [19:43:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 A9 13 07 01 59 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 C4 01 00 00 F4 03 04 00 E4 4E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1E FB 03 00 35 04 06 00 99 4B EA 8D 4D 96 5E 35 D9 8A A5 AB C0 5A [19:43:27]CheckFolder [19:43:27]dirname=/storage/ofd_packets [19:43:27]CheckFolder done [19:43:27]ProducePacketName [19:43:27]name=ofd_packets/00260894 [19:43:27]NVStorageSaveData ofd_packets/00260894 [19:43:27]File name is /storage/ofd_packets/00260894 [19:43:27]Write 301 bytes [19:43:27]NVStorageSaveData done [19:43:27]OFDSenderStorePacket done [19:43:27]KKMCreateOFDPacket done [19:43:27]NVStorageSaveData kkm_last_timestamp [19:43:27]File name is /storage/kkm_last_timestamp [19:43:27]Write 4 bytes [19:43:27]NVStorageSaveData done [19:43:27]ExternCall_PrintAddStr [19:43:27]wPrintStart [19:43:27]Write to MH i2c: 01 00 00 D1 BE 8F [19:43:27]Write i2c OK [19:43:27]MH_I2C_Read... [19:43:27]Read from MH i2c: 01 [19:43:27]MH_I2C_Read... [19:43:27]Read from MH i2c: 01 07 00 [19:43:27]MH_I2C_Read... [19:43:27]Read from MH i2c: 01 07 00 D1 BE 00 00 00 00 00 FF 0F A4 [19:43:27]RasterBufferAndPrint [19:43:27]line Счет N : (1)1036446 [19:43:27]line ИНН: 02508201610067 [19:43:27]line Контрольно-Кассовый Чек [19:43:27]line ПРОДАЖА [19:43:27]line ТРК (МРК, ГНК) : 22 [19:43:27]line Товар: 2710124130 [19:43:27]line Аи-92-К-5 [19:43:27]line 10.330 * 67.80 [19:43:27]line = 700.37 [19:43:27]line НДС 12% НСП 1% [19:43:27]line > о реализуемом товаре [19:43:27]line ОКРУГЛЕНИЕ: -0.37 [19:43:27]line ИТОГО: 700.00 [19:43:27]line Внесено: 700.00 [19:43:27]line СДАЧА: 0.00 [19:43:27]line НСП 1% : 6.20 [19:43:27]line НДС 12% : 74.38 [19:43:27]line Наличными: 700.00 [19:43:27]line Безнал.: 0.00 [19:43:27]line Место: АЗС № 94 "Партнер Нефть" [19:43:27]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [19:43:27]line СНО: Общий режим [19:43:27]line Чек 452 18.08.2024 19:43 [19:43:27]line Смена: 449 ФФД: 1.0 [19:43:27]line ЗНМ: 0300000099 [19:43:27]line РНМ: 0000000000091865 [19:43:27]line Версия ККМ: 001 [19:43:27]line ФМ: 0000000000871820 [19:43:27]line ФД: 260894 [19:43:27]line ФПД: 168551336725910 [19:43:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T194332&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260894&fm=168551336725910&tin=02508201610067®Number=0000000000091865&sum=70000 [19:43:27]OFD Sender: Processing packet 260894 [packets to send 192, broken 191] [19:43:27]ProducePacketName [19:43:27]name=ofd_packets/00260894 [19:43:27]OFD Sender: To server: pG, [19:43:27]CommunicateWithHost lk.salyk.kg:30040 [19:43:27]ConnectInit lk.salyk.kg [19:43:27]written 0, free lines is 4095 [19:43:27]Connected sock=10 [19:43:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 A9 13 07 01 59 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 C4 01 00 00 F4 03 04 00 E4 4E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1E FB 03 00 35 04 06 00 99 4B EA 8D 4D 96 5E 35 D9 8A A5 AB C0 5A [19:43:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 4F 00 00 00 15 D2 47 00 A8 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1E FB 03 00 F4 03 04 00 38 F8 C1 66 B6 04 01 00 00 AA 2E 61 CC 57 A9 AB 53 [19:43:27]CommunicateWithHost err = 0 [19:43:27]CheckOFDResponse [19:43:27]1017 (14) - 77093643461234 [19:43:27]1041 (16) - 0000000000871820 [19:43:27]1040 (4) - 260894 [19:43:27]1012 (4) - 18.08.2024 13:33 [19:43:27]1206 (1) - 0 [19:43:27]OFD Sender: Remove packet 260894 [19:43:27]ProducePacketName [19:43:27]name=ofd_packets/00260894 [19:43:27]NVStorageDeleteData [19:43:27]Write to MH i2c: 01 00 00 FC BE BA [19:43:27]Write i2c OK [19:43:27]MH_I2C_Read... [19:43:27]Read from MH i2c: 01 [19:43:27]MH_I2C_Read... [19:43:27]Read from MH i2c: 01 07 00 [19:43:27]MH_I2C_Read... [19:43:27]Read from MH i2c: 01 07 00 FC BE 00 00 00 00 00 70 0C 3D [19:43:27]RasterBufferAndPrint [19:43:27]line [19:43:27]line [19:43:27]line [19:43:27]line [19:43:27]line [19:43:27]written 0, free lines is 3187 [19:43:27]MH_Cut [19:43:27]Write to MH i2c: D1 01 00 03 BF 01 94 [19:43:27]Write i2c OK [19:43:27]MH_I2C_Read... [19:43:27]Read from MH i2c: D1 [19:43:27]MH_I2C_Read... [19:43:27]Read from MH i2c: D1 01 00 [19:43:27]MH_I2C_Read... [19:43:27]Read from MH i2c: D1 01 00 03 BF 00 93 [19:43:27]Write to MH i2c: 01 00 00 04 BF C3 [19:43:27]Write i2c OK [19:43:27]MH_I2C_Read... [19:43:28]OFD Sender: No OFD packet to send [19:43:29]*** Cut start [19:43:29]*** Purtial cut [19:43:29]*** Stage 1: CUTSNS_PIN = 1 [19:43:31]Read from MH i2c: 01 [19:43:31]MH_I2C_Read... [19:43:31]*** Stop cut motor [19:43:31]*** Cut end [19:43:31]Read from MH i2c: 01 07 00 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: 01 07 00 04 BF 00 00 00 00 00 FF 0F D8 [19:43:31]process_action close_receipt done [19:43:31]requested_data is exist [19:43:31]produce_requested_data [19:43:31]requested_item fm.sn is exist - process it [19:43:31]wFMCommunicate request_size=4 [19:43:31]MH_SAM_APDU [19:43:31]CAPDU: 80 11 00 00 [19:43:31]Write to MH i2c: E2 08 00 05 BF 80 11 00 00 00 00 00 00 3E [19:43:31]Write i2c OK [19:43:31]MH_I2C_Read... [19:43:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:31]Read from MH i2c: E2 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 17 00 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 17 00 05 BF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 8B [19:43:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:43:31]wFMCommunicate OK [19:43:31]requested_item fd.num is exist - process it [19:43:31]SAM_PROTO_GetFieldsCounters [19:43:31]wFMCommunicate request_size=4 [19:43:31]MH_SAM_APDU [19:43:31]CAPDU: 80 13 00 00 [19:43:31]Write to MH i2c: E2 08 00 06 BF 80 13 00 00 00 00 00 00 41 [19:43:31]Write i2c OK [19:43:31]MH_I2C_Read... [19:43:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:43:31]Read from MH i2c: E2 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 62 00 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 62 00 06 BF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 1E FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C4 01 00 00 5E 04 04 00 C4 01 00 00 57 04 04 00 C5 01 00 00 19 04 04 00 00 00 00 00 90 00 8D [19:43: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 1E FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C4 01 00 00 5E 04 04 00 C4 01 00 00 57 04 04 00 C5 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:43:31]wFMCommunicate OK [19:43:31]SAM_PROTO_GetFieldsCounters done [19:43:31]requested_item shift.num is exist - process it [19:43:31]requested_item shift.opened is exist - process it [19:43:31]req_shift_opened [19:43:31]FM_GetShiftState [19:43:31]SAM_PROTO_GetShiftState [19:43:31]wFMCommunicate request_size=4 [19:43:31]MH_SAM_APDU [19:43:31]CAPDU: 80 13 01 00 [19:43:31]Write to MH i2c: E2 08 00 07 BF 80 13 01 00 00 00 00 00 43 [19:43:31]Write i2c OK [19:43:31]MH_I2C_Read... [19:43:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:31]Read from MH i2c: E2 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 0E 00 [19:43:31]MH_I2C_Read... [19:43:31]Read from MH i2c: E2 0E 00 07 BF 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 80 [19:43:31]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:43:31]wFMCommunicate OK [19:43:31]SAM_PROTO_GetShiftState done [19:43:31]FM_GetShiftState done [19:43:31]req_shift_opened done [19:43:31]requested_item shift.open_date is exist - process it [19:43:31]req_shift_open_date [19:43:31]req_shift_open_date done [19:43:31]produce_requested_data done [19:43:31]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260894,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [19:43:31]process_action_free close_receipt [19:43:31]json_value_free [19:43:31]json_value_free done [19:43:31]process_json_proto returns [19:43:31]Send response to host [19:43:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260894,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [19:43:31]free response buf [19:43:31]execute_script done [19:43:31]execute_script returns [19:43:31]free content buf [19:43:31]Sock 7.Close socket [19:43:31]Sock 7.Thread stoped [19:43:33]OFD Sender: No OFD packet to send [19:43:38]OFD Sender: No OFD packet to send [19:43:43]OFD Sender: No OFD packet to send [19:43:48]OFD Sender: No OFD packet to send [19:43:53]OFD Sender: No OFD packet to send [19:43:58]OFD Sender: No OFD packet to send [19:44:03]OFD Sender: No OFD packet to send [19:44:08]OFD Sender: No OFD packet to send [19:44:13]OFD Sender: No OFD packet to send [19:44:18]OFD Sender: No OFD packet to send [19:44:23]OFD Sender: No OFD packet to send [19:44:28]OFD Sender: No OFD packet to send [19:44:33]OFD Sender: No OFD packet to send [19:44:38]OFD Sender: No OFD packet to send [19:44:43]OFD Sender: No OFD packet to send [19:44:48]OFD Sender: No OFD packet to send [19:44:53]OFD Sender: No OFD packet to send [19:44:58]OFD Sender: No OFD packet to send [19:45:03]OFD Sender: No OFD packet to send [19:45:08]OFD Sender: No OFD packet to send [19:45:13]OFD Sender: No OFD packet to send [19:45:18]OFD Sender: No OFD packet to send [19:45:23]OFD Sender: No OFD packet to send [19:45:28]OFD Sender: No OFD packet to send [19:45:33]OFD Sender: No OFD packet to send [19:45:38]OFD Sender: No OFD packet to send [19:45:43]OFD Sender: No OFD packet to send [19:45:48]OFD Sender: No OFD packet to send [19:45:53]OFD Sender: No OFD packet to send [19:45:58]OFD Sender: No OFD packet to send [19:46:03]OFD Sender: No OFD packet to send [19:46:08]OFD Sender: No OFD packet to send [19:46:13]OFD Sender: No OFD packet to send [19:46:18]OFD Sender: No OFD packet to send [19:46:23]OFD Sender: No OFD packet to send [19:46:28]OFD Sender: No OFD packet to send [19:46:33]OFD Sender: No OFD packet to send [19:46:36]accept exits with 9 [19:46:36]New connection [19:46:36]New thread 3066617188 created [19:46:36]Thread 3066473828 joined [19:46:36]Waiting for new connection... [19:46:36] Sock 9.Parse request [19:46:36]Sock 9.Check first char [19:46:36]Sock 9.First char is OK [19:46:36]request: POST /json_proto HTTP/1.0 [19:46:36]Method: POST [19:46:36]URL: /json_proto [19:46:36]Method is POST - this is cgi request [19:46:36]url: /json_proto [19:46:36]query_string will be loaded in cgi processing [19:46:36]execute_cgi json_proto POST (null) [19:46:36]execute_cgi path=json_proto method=POST [19:46:36]POST find Content-Length [19:46:36]Host: 172.17.55.133:8080 [19:46:36]Content-Length: 678 [19:46:36]Content-Type: application/json [19:46:36] [19:46:36]POST finish read [19:46:36]Found Content-Length = 678 [19:46:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036448", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:46:36]execute_script... [19:46: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)1036448", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:46:36]POST & json_proto [19:46:36]process_json_proto [19:46:36]json parsed OK: [19:46:36]protocol is kg_v1.0 [19:46:36]action value=close_receipt [19:46:36]process_action close_receipt [19:46:36]cmd_close_receipt [19:46:36]MH_GetDate [19:46:36]Write to MH i2c: F0 00 00 08 BF B6 [19:46:36]Write i2c OK [19:46:36]MH_I2C_Read... [19:46:36]Read from MH i2c: F0 [19:46:36]MH_I2C_Read... [19:46:36]Read from MH i2c: F0 09 00 [19:46:36]MH_I2C_Read... [19:46:36]Read from MH i2c: F0 09 00 08 BF 00 A2 4F C2 66 34 48 D8 65 91 [19:46:36]GetLastDocTimeStamp 1724010212 [19:46:36]current date 1724010402 [19:46:36]FM_GetShiftState [19:46:36]SAM_PROTO_GetShiftState [19:46:36]wFMCommunicate request_size=4 [19:46:36]MH_SAM_APDU [19:46:36]CAPDU: 80 13 01 00 [19:46:36]Write to MH i2c: E2 08 00 09 BF 80 13 01 00 00 00 00 00 45 [19:46:36]Write i2c OK [19:46:36]MH_I2C_Read... [19:46:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:36]Read from MH i2c: E2 [19:46:36]MH_I2C_Read... [19:46:36]Read from MH i2c: E2 0E 00 [19:46:36]MH_I2C_Read... [19:46:36]Read from MH i2c: E2 0E 00 09 BF 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 82 [19:46:36]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:46:36]wFMCommunicate OK [19:46:36]SAM_PROTO_GetShiftState done [19:46:36]FM_GetShiftState done [19:46:36]opened in 1723940556 [19:46:36]opened+sec_in_day 1724026956 [19:46:36]quantity*price = 50036 [19:46:36]sum+1 = 50037 [19:46:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 453 18.08.2024 19:46 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260895 ФПД: 87040431753944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T194642&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260895&fm=87040431753944&tin=02508201610067®Number=0000000000091865&sum=50000 [19:46:37]StoreToDocumentArchive [19:46:37]shift 449 fd 260895 [19:46:37]save to /storage/0449/doc_00260895 [19:46:37]save last doc name /storage/0449/doc_00260895 to /storage/kkm_last_doc_name [19:46:37]save OK [19:46:37]Clear old archive folders... [19:46:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:46:37]tlvbuf is 004A46E0 [19:46:37]SAM_PROTO_ClearQueue [19:46:37]wFMCommunicate request_size=4 [19:46:37]MH_SAM_APDU [19:46:37]CAPDU: 80 09 00 00 [19:46:37]Write to MH i2c: E2 08 00 16 BF 80 09 00 00 00 00 00 00 47 [19:46:37]Write i2c OK [19:46:37]MH_I2C_Read... [19:46:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:46:37]Read from MH i2c: E2 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: E2 03 00 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: E2 03 00 16 BF 00 90 00 49 [19:46:37]RAPDU: 90 00 [19:46:37]wFMCommunicate OK [19:46:37]SAM_PROTO_ClearQueue done [19:46:37]KKMCreateOFDPacket [19:46:37]OFDProtocolAddRootSTLVToBuf [19:46:37]FM_MakeSignedData [19:46:37]FM_MakeSignedData [19:46:37]SAM_PROTO_SignData [19:46:37]wFMCommunicate request_size=4 [19:46:37]MH_SAM_APDU [19:46:37]CAPDU: 80 0D 01 02 [19:46:37]Write to MH i2c: E2 08 00 17 BF 80 0D 01 02 00 00 00 00 4F [19:46:37]Write i2c OK [19:46:37]MH_I2C_Read... [19:46:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:46:37]Read from MH i2c: E2 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: E2 03 00 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: E2 03 00 17 BF 00 90 00 4A [19:46:37]RAPDU: 90 00 [19:46:37]wFMCommunicate OK [19:46:37]wFMCommunicate request_size=255 [19:46:37]MH_SAM_APDU [19:46:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 C5 01 00 00 F4 03 04 00 A2 4F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1F FB 03 00 35 04 06 00 4F [19:46:37]Write to MH i2c: E2 02 01 18 BF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 C5 01 00 00 F4 03 04 00 A2 4F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1F FB 03 00 35 04 06 00 4F 00 00 D9 [19:46:37]Write i2c OK [19:46:37]MH_I2C_Read... [19:46:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:37]Read from MH i2c: E2 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: E2 03 00 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: E2 03 00 18 BF 00 90 00 4B [19:46:37]RAPDU: 90 00 [19:46:37]wFMCommunicate OK [19:46:37]wFMCommunicate request_size=10 [19:46:37]MH_SAM_APDU [19:46:37]CAPDU: 80 0D 02 02 05 29 AE 04 0A D8 [19:46:37]Write to MH i2c: E2 0D 00 19 BF 80 0D 02 02 05 00 29 AE 04 0A D8 00 00 19 [19:46:37]Write i2c OK [19:46:37]MH_I2C_Read... [19:46:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:37]Read from MH i2c: E2 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: E2 03 00 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: E2 03 00 19 BF 00 90 00 4C [19:46:37]RAPDU: 90 00 [19:46:37]wFMCommunicate OK [19:46:37]wFMCommunicate request_size=4 [19:46:37]MH_SAM_APDU [19:46:37]CAPDU: 80 0D 03 02 [19:46:37]Write to MH i2c: E2 08 00 1A BF 80 0D 03 02 00 00 00 00 54 [19:46:37]Write i2c OK [19:46:37]MH_I2C_Read... [19:46:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:46:37]Read from MH i2c: E2 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: E2 0B 00 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: E2 0B 00 1A BF 00 31 79 84 A3 58 E6 20 95 90 00 19 [19:46:37]RAPDU: 31 79 84 A3 58 E6 20 95 90 00 [19:46:37]wFMCommunicate OK [19:46:37]SAM_PROTO_SignData done [19:46:37]FM_MakeSignedData done [19:46:37]CreateOFDProtocolMessage [19:46:37]wFMCommunicate request_size=4 [19:46:37]MH_SAM_APDU [19:46:37]CAPDU: 80 11 00 00 [19:46:37]Write to MH i2c: E2 08 00 1B BF 80 11 00 00 00 00 00 00 54 [19:46:37]Write i2c OK [19:46:37]MH_I2C_Read... [19:46:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:38]Read from MH i2c: E2 [19:46:38]MH_I2C_Read... [19:46:38]Read from MH i2c: E2 17 00 [19:46:38]MH_I2C_Read... [19:46:38]Read from MH i2c: E2 17 00 1B BF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A1 [19:46:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:46:38]wFMCommunicate OK [19:46:38]CreateOFDProtocolMessage done [19:46:38]OFDSenderStorePacket 260895 [19:46:38]StoreOFDPacket docnum=260895 [19:46:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 5F 68 07 01 CC 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 C5 01 00 00 F4 03 04 00 A2 4F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1F FB 03 00 35 04 06 00 4F 29 AE 04 0A D8 31 79 84 A3 58 E6 20 95 [19:46:38]CheckFolder [19:46:38]dirname=/storage/ofd_packets [19:46:38]CheckFolder done [19:46:38]ProducePacketName [19:46:38]name=ofd_packets/00260895 [19:46:38]NVStorageSaveData ofd_packets/00260895 [19:46:38]File name is /storage/ofd_packets/00260895 [19:46:38]Write 301 bytes [19:46:38]NVStorageSaveData done [19:46:38]OFDSenderStorePacket done [19:46:38]KKMCreateOFDPacket done [19:46:38]NVStorageSaveData kkm_last_timestamp [19:46:38]File name is /storage/kkm_last_timestamp [19:46:38]Write 4 bytes [19:46:38]NVStorageSaveData done [19:46:38]ExternCall_PrintAddStr [19:46:38]wPrintStart [19:46:38]Write to MH i2c: 01 00 00 1C BF DB [19:46:38]Write i2c OK [19:46:38]MH_I2C_Read... [19:46:38]Read from MH i2c: 01 [19:46:38]MH_I2C_Read... [19:46:38]Read from MH i2c: 01 07 00 [19:46:38]MH_I2C_Read... [19:46:38]Read from MH i2c: 01 07 00 1C BF 00 00 00 00 00 FF 0F F0 [19:46:38]RasterBufferAndPrint [19:46:38]line Счет N : (1)1036448 [19:46:38]line ИНН: 02508201610067 [19:46:38]line Контрольно-Кассовый Чек [19:46:38]line ПРОДАЖА [19:46:38]line ТРК (МРК, ГНК) : 22 [19:46:38]line Товар: 2710124130 [19:46:38]line Аи-92-К-5 [19:46:38]line 7.380 * 67.80 [19:46:38]line = 500.36 [19:46:38]line НДС 12% НСП 1% [19:46:38]line > о реализуемом товаре [19:46:38]line ОКРУГЛЕНИЕ: -0.36 [19:46:38]line ИТОГО: 500.00 [19:46:38]line Внесено: 500.00 [19:46:38]line СДАЧА: 0.00 [19:46:38]line НСП 1% : 4.43 [19:46:38]line НДС 12% : 53.14 [19:46:38]line Наличными: 500.00 [19:46:38]line Безнал.: 0.00 [19:46:38]line Место: АЗС № 94 "Партнер Нефть" [19:46:38]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [19:46:38]line СНО: Общий режим [19:46:38]line Чек 453 18.08.2024 19:46 [19:46:38]line Смена: 449 ФФД: 1.0 [19:46:38]line ЗНМ: 0300000099 [19:46:38]line РНМ: 0000000000091865 [19:46:38]line Версия ККМ: 001 [19:46:38]line ФМ: 0000000000871820 [19:46:38]line ФД: 260895 [19:46:38]line ФПД: 87040431753944 [19:46:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T194642&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260895&fm=87040431753944&tin=02508201610067®Number=0000000000091865&sum=50000 [19:46:38]written 0, free lines is 4095 [19:46:38]OFD Sender: Processing packet 260895 [packets to send 192, broken 191] [19:46:38]ProducePacketName [19:46:38]name=ofd_packets/00260895 [19:46:38]OFD Sender: To server: pG, [19:46:38]CommunicateWithHost lk.salyk.kg:30040 [19:46:38]ConnectInit lk.salyk.kg [19:46:38]Connected sock=10 [19:46: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 30 0F 01 00 00 5F 68 07 01 CC 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 C5 01 00 00 F4 03 04 00 A2 4F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1F FB 03 00 35 04 06 00 4F 29 AE 04 0A D8 31 79 84 A3 58 E6 20 95 [19:46: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 30 4F 00 00 00 BD 85 47 00 7F E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 1F FB 03 00 F4 03 04 00 F6 F8 C1 66 B6 04 01 00 00 6D CF 4C BB 82 C6 3D E8 [19:46:38]CommunicateWithHost err = 0 [19:46:38]CheckOFDResponse [19:46:38]1017 (14) - 77093643461234 [19:46:38]1041 (16) - 0000000000871820 [19:46:38]1040 (4) - 260895 [19:46:38]1012 (4) - 18.08.2024 13:36 [19:46:38]1206 (1) - 0 [19:46:38]OFD Sender: Remove packet 260895 [19:46:38]ProducePacketName [19:46:38]name=ofd_packets/00260895 [19:46:38]NVStorageDeleteData [19:46:38]Write to MH i2c: 01 00 00 47 BF 06 [19:46:38]Write i2c OK [19:46:38]MH_I2C_Read... [19:46:38]Read from MH i2c: 01 [19:46:38]MH_I2C_Read... [19:46:38]Read from MH i2c: 01 07 00 [19:46:38]MH_I2C_Read... [19:46:38]Read from MH i2c: 01 07 00 47 BF 00 00 00 00 00 71 0C 8A [19:46:38]RasterBufferAndPrint [19:46:38]line [19:46:38]line [19:46:38]line [19:46:38]line [19:46:38]line [19:46:38]written 0, free lines is 3188 [19:46:38]MH_Cut [19:46:38]Write to MH i2c: D1 01 00 4E BF 01 DF [19:46:38]Write i2c OK [19:46:38]MH_I2C_Read... [19:46:38]Read from MH i2c: D1 [19:46:38]MH_I2C_Read... [19:46:38]Read from MH i2c: D1 01 00 [19:46:38]MH_I2C_Read... [19:46:38]Read from MH i2c: D1 01 00 4E BF 00 DE [19:46:38]Write to MH i2c: 01 00 00 4F BF 0E [19:46:38]Write i2c OK [19:46:38]MH_I2C_Read... [19:46:38]OFD Sender: No OFD packet to send [19:46:39]*** Cut start [19:46:39]*** Purtial cut [19:46:39]*** Stage 1: CUTSNS_PIN = 1 [19:46:41]Read from MH i2c: 01 [19:46:41]MH_I2C_Read... [19:46:41]*** Stop cut motor [19:46:41]*** Cut end [19:46:41]Read from MH i2c: 01 07 00 [19:46:41]MH_I2C_Read... [19:46:41]Read from MH i2c: 01 07 00 4F BF 00 00 00 00 00 FF 0F 23 [19:46:41]process_action close_receipt done [19:46:41]requested_data is exist [19:46:41]produce_requested_data [19:46:41]requested_item fm.sn is exist - process it [19:46:41]wFMCommunicate request_size=4 [19:46:41]MH_SAM_APDU [19:46:41]CAPDU: 80 11 00 00 [19:46:41]Write to MH i2c: E2 08 00 50 BF 80 11 00 00 00 00 00 00 89 [19:46:41]Write i2c OK [19:46:41]MH_I2C_Read... [19:46:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:41]Read from MH i2c: E2 [19:46:41]MH_I2C_Read... [19:46:41]Read from MH i2c: E2 17 00 [19:46:41]MH_I2C_Read... [19:46:41]Read from MH i2c: E2 17 00 50 BF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D6 [19:46:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:46:41]wFMCommunicate OK [19:46:41]requested_item fd.num is exist - process it [19:46:41]SAM_PROTO_GetFieldsCounters [19:46:41]wFMCommunicate request_size=4 [19:46:41]MH_SAM_APDU [19:46:41]CAPDU: 80 13 00 00 [19:46:41]Write to MH i2c: E2 08 00 51 BF 80 13 00 00 00 00 00 00 8C [19:46:41]Write i2c OK [19:46:41]MH_I2C_Read... [19:46:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:46:41]Read from MH i2c: E2 [19:46:41]MH_I2C_Read... [19:46:41]Read from MH i2c: E2 62 00 [19:46:41]MH_I2C_Read... [19:46:41]Read from MH i2c: E2 62 00 51 BF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 1F FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C6 01 00 00 19 04 04 00 00 00 00 00 90 00 DC [19:46: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 1F FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C6 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:46:41]wFMCommunicate OK [19:46:41]SAM_PROTO_GetFieldsCounters done [19:46:41]requested_item shift.num is exist - process it [19:46:41]requested_item shift.opened is exist - process it [19:46:41]req_shift_opened [19:46:41]FM_GetShiftState [19:46:41]SAM_PROTO_GetShiftState [19:46:41]wFMCommunicate request_size=4 [19:46:41]MH_SAM_APDU [19:46:41]CAPDU: 80 13 01 00 [19:46:41]Write to MH i2c: E2 08 00 52 BF 80 13 01 00 00 00 00 00 8E [19:46:41]Write i2c OK [19:46:41]MH_I2C_Read... [19:46:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:41]Read from MH i2c: E2 [19:46:41]MH_I2C_Read... [19:46:41]Read from MH i2c: E2 0E 00 [19:46:41]MH_I2C_Read... [19:46:41]Read from MH i2c: E2 0E 00 52 BF 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 CB [19:46:41]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:46:41]wFMCommunicate OK [19:46:41]SAM_PROTO_GetShiftState done [19:46:41]FM_GetShiftState done [19:46:41]req_shift_opened done [19:46:41]requested_item shift.open_date is exist - process it [19:46:41]req_shift_open_date [19:46:41]req_shift_open_date done [19:46:41]produce_requested_data done [19:46:41]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260895,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [19:46:41]process_action_free close_receipt [19:46:41]json_value_free [19:46:41]json_value_free done [19:46:41]process_json_proto returns [19:46:41]Send response to host [19:46:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260895,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [19:46:41]free response buf [19:46:41]execute_script done [19:46:41]execute_script returns [19:46:41]free content buf [19:46:41]Sock 9.Close socket [19:46:41]Sock 9.Thread stoped [19:46:42]accept exits with 7 [19:46:42]New connection [19:46:42]New thread 3066473828 created [19:46:42]Thread 3066617188 joined [19:46:42]Waiting for new connection... [19:46:42] Sock 7.Parse request [19:46:42]Sock 7.Check first char [19:46:42]Sock 7.First char is OK [19:46:42]request: POST /json_proto HTTP/1.0 [19:46:42]Method: POST [19:46:42]URL: /json_proto [19:46:42]Method is POST - this is cgi request [19:46:42]url: /json_proto [19:46:42]query_string will be loaded in cgi processing [19:46:42]execute_cgi json_proto POST (null) [19:46:42]execute_cgi path=json_proto method=POST [19:46:42]POST find Content-Length [19:46:42]Host: 172.17.55.133:8080 [19:46:42]Content-Length: 817 [19:46:42]Content-Type: application/json [19:46:42] [19:46:42]POST finish read [19:46:42]Found Content-Length = 817 [19:46:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036447", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:42]execute_script... [19:46: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)1036447", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:42]POST & json_proto [19:46:42]process_json_proto [19:46:42]json parsed OK: [19:46:42]protocol is kg_v1.0 [19:46:42]action value=close_receipt [19:46:42]process_action close_receipt [19:46:42]cmd_close_receipt [19:46:42]MH_GetDate [19:46:42]Write to MH i2c: F0 00 00 53 BF 01 [19:46:42]Write i2c OK [19:46:42]MH_I2C_Read... [19:46:42]Read from MH i2c: F0 [19:46:42]MH_I2C_Read... [19:46:42]Read from MH i2c: F0 09 00 [19:46:42]MH_I2C_Read... [19:46:42]Read from MH i2c: F0 09 00 53 BF 00 A8 4F C2 66 34 48 D8 65 E2 [19:46:42]GetLastDocTimeStamp 1724010402 [19:46:42]current date 1724010408 [19:46:42]FM_GetShiftState [19:46:42]SAM_PROTO_GetShiftState [19:46:42]wFMCommunicate request_size=4 [19:46:42]MH_SAM_APDU [19:46:42]CAPDU: 80 13 01 00 [19:46:42]Write to MH i2c: E2 08 00 54 BF 80 13 01 00 00 00 00 00 90 [19:46:42]Write i2c OK [19:46:42]MH_I2C_Read... [19:46:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:42]Read from MH i2c: E2 [19:46:42]MH_I2C_Read... [19:46:42]Read from MH i2c: E2 0E 00 [19:46:42]MH_I2C_Read... [19:46:42]Read from MH i2c: E2 0E 00 54 BF 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 CD [19:46:42]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:46:42]wFMCommunicate OK [19:46:42]SAM_PROTO_GetShiftState done [19:46:42]FM_GetShiftState done [19:46:42]opened in 1723940556 [19:46:42]opened+sec_in_day 1724026956 [19:46:42]quantity*price = 50036 [19:46:42]sum+1 = 50037 [19:46:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 454 18.08.2024 19:46 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871820 ФД: 260896 ФПД: 212727251288554 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T194648&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260896&fm=212727251288554&tin=02508201610067®Number=0000000000091865&sum=50036 [19:46:43]StoreToDocumentArchive [19:46:43]shift 449 fd 260896 [19:46:43]save to /storage/0449/doc_00260896 [19:46:43]save last doc name /storage/0449/doc_00260896 to /storage/kkm_last_doc_name [19:46:43]save OK [19:46:43]Clear old archive folders... [19:46:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:46:43]tlvbuf is 0037AFD0 [19:46:43]SAM_PROTO_ClearQueue [19:46:43]wFMCommunicate request_size=4 [19:46:43]MH_SAM_APDU [19:46:43]CAPDU: 80 09 00 00 [19:46:43]Write to MH i2c: E2 08 00 61 BF 80 09 00 00 00 00 00 00 92 [19:46:43]Write i2c OK [19:46:43]MH_I2C_Read... [19:46:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:46:43]Read from MH i2c: E2 [19:46:43]MH_I2C_Read... [19:46:43]Read from MH i2c: E2 03 00 [19:46:43]MH_I2C_Read... [19:46:43]Read from MH i2c: E2 03 00 61 BF 00 90 00 94 [19:46:43]RAPDU: 90 00 [19:46:43]wFMCommunicate OK [19:46:43]SAM_PROTO_ClearQueue done [19:46:43]KKMCreateOFDPacket [19:46:43]OFDProtocolAddRootSTLVToBuf [19:46:43]FM_MakeSignedData [19:46:43]FM_MakeSignedData [19:46:43]SAM_PROTO_SignData [19:46:43]wFMCommunicate request_size=4 [19:46:43]MH_SAM_APDU [19:46:43]CAPDU: 80 0D 01 02 [19:46:43]Write to MH i2c: E2 08 00 62 BF 80 0D 01 02 00 00 00 00 9A [19:46:43]Write i2c OK [19:46:43]MH_I2C_Read... [19:46:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:46:43]Read from MH i2c: E2 [19:46:43]MH_I2C_Read... [19:46:43]Read from MH i2c: E2 03 00 [19:46:43]MH_I2C_Read... [19:46:43]Read from MH i2c: E2 03 00 62 BF 00 90 00 95 [19:46:43]RAPDU: 90 00 [19:46:43]wFMCommunicate OK [19:46:43]wFMCommunicate request_size=255 [19:46:43]MH_SAM_APDU [19:46:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 01 00 00 F4 03 04 00 A8 4F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 20 FB 03 00 35 04 06 00 C1 [19:46:43]Write to MH i2c: E2 02 01 63 BF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 01 00 00 F4 03 04 00 A8 4F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 20 FB 03 00 35 04 06 00 C1 00 00 E6 [19:46:43]Write i2c OK [19:46:43]MH_I2C_Read... [19:46:43]OFD Sender: No OFD packet to send [19:46:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:44]Read from MH i2c: E2 [19:46:44]MH_I2C_Read... [19:46:44]Read from MH i2c: E2 03 00 [19:46:44]MH_I2C_Read... [19:46:44]Read from MH i2c: E2 03 00 63 BF 00 90 00 96 [19:46:44]RAPDU: 90 00 [19:46:44]wFMCommunicate OK [19:46:44]wFMCommunicate request_size=10 [19:46:44]MH_SAM_APDU [19:46:44]CAPDU: 80 0D 02 02 05 79 6C 3F 41 EA [19:46:44]Write to MH i2c: E2 0D 00 64 BF 80 0D 02 02 05 00 79 6C 3F 41 EA 00 00 F6 [19:46:44]Write i2c OK [19:46:44]MH_I2C_Read... [19:46:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:44]Read from MH i2c: E2 [19:46:44]MH_I2C_Read... [19:46:44]Read from MH i2c: E2 03 00 [19:46:44]MH_I2C_Read... [19:46:44]Read from MH i2c: E2 03 00 64 BF 00 90 00 97 [19:46:44]RAPDU: 90 00 [19:46:44]wFMCommunicate OK [19:46:44]wFMCommunicate request_size=4 [19:46:44]MH_SAM_APDU [19:46:44]CAPDU: 80 0D 03 02 [19:46:44]Write to MH i2c: E2 08 00 65 BF 80 0D 03 02 00 00 00 00 9F [19:46:44]Write i2c OK [19:46:44]MH_I2C_Read... [19:46:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:46:44]Read from MH i2c: E2 [19:46:44]MH_I2C_Read... [19:46:44]Read from MH i2c: E2 0B 00 [19:46:44]MH_I2C_Read... [19:46:44]Read from MH i2c: E2 0B 00 65 BF 00 6C 97 40 0E 4A E7 2E F5 90 00 45 [19:46:44]RAPDU: 6C 97 40 0E 4A E7 2E F5 90 00 [19:46:44]wFMCommunicate OK [19:46:44]SAM_PROTO_SignData done [19:46:44]FM_MakeSignedData done [19:46:44]CreateOFDProtocolMessage [19:46:44]wFMCommunicate request_size=4 [19:46:44]MH_SAM_APDU [19:46:44]CAPDU: 80 11 00 00 [19:46:44]Write to MH i2c: E2 08 00 66 BF 80 11 00 00 00 00 00 00 9F [19:46:44]Write i2c OK [19:46:44]MH_I2C_Read... [19:46:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:44]Read from MH i2c: E2 [19:46:44]MH_I2C_Read... [19:46:44]Read from MH i2c: E2 17 00 [19:46:44]MH_I2C_Read... [19:46:44]Read from MH i2c: E2 17 00 66 BF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 EC [19:46:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:46:44]wFMCommunicate OK [19:46:44]CreateOFDProtocolMessage done [19:46:44]OFDSenderStorePacket 260896 [19:46:44]StoreOFDPacket docnum=260896 [19: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 30 0F 01 00 00 15 E8 07 01 C6 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 01 00 00 F4 03 04 00 A8 4F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 20 FB 03 00 35 04 06 00 C1 79 6C 3F 41 EA 6C 97 40 0E 4A E7 2E F5 [19:46:44]CheckFolder [19:46:44]dirname=/storage/ofd_packets [19:46:44]CheckFolder done [19:46:44]ProducePacketName [19:46:44]name=ofd_packets/00260896 [19:46:44]NVStorageSaveData ofd_packets/00260896 [19:46:44]File name is /storage/ofd_packets/00260896 [19:46:44]Write 301 bytes [19:46:44]NVStorageSaveData done [19:46:44]OFDSenderStorePacket done [19:46:44]KKMCreateOFDPacket done [19:46:44]NVStorageSaveData kkm_last_timestamp [19:46:44]File name is /storage/kkm_last_timestamp [19:46:44]Write 4 bytes [19:46:44]NVStorageSaveData done [19:46:44]ExternCall_PrintAddStr [19:46:44]wPrintStart [19:46:44]Write to MH i2c: 01 00 00 67 BF 26 [19:46:44]Write i2c OK [19:46:44]MH_I2C_Read... [19:46:44]Read from MH i2c: 01 [19:46:44]MH_I2C_Read... [19:46:44]Read from MH i2c: 01 07 00 [19:46:44]MH_I2C_Read... [19:46:44]Read from MH i2c: 01 07 00 67 BF 00 00 00 00 00 FF 0F 3B [19:46:44]RasterBufferAndPrint [19:46:44]line Счет N : (1)1036447 [19:46:44]line ИНН: 02508201610067 [19:46:44]line Контрольно-Кассовый Чек [19:46:44]line ПРОДАЖА [19:46:44]line ТРК (МРК, ГНК) : 12 [19:46:44]line Товар: 2710124130 [19:46:44]line Аи-92-К-5 [19:46:44]line 7.380 * 67.80 [19:46:44]line = 500.36 [19:46:44]line НДС 12% НСП 1% [19:46:44]line > о реализуемом товаре [19:46:44]line ИТОГО: 500.36 [19:46:44]line НСП 1% : 4.43 [19:46:44]line НДС 12% : 53.14 [19:46:44]line Наличными: 0.00 [19:46:44]line Безнал.: 500.36 [19:46:44]line Место: АЗС № 94 "Партнер Нефть" [19:46:44]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [19:46:44]line СНО: Общий режим [19:46:44]line Чек 454 18.08.2024 19:46 [19:46:44]line Смена: 449 ФФД: 1.0 [19:46:44]line ЗНМ: 0300000099 [19:46:44]line РНМ: 0000000000091865 [19:46:44]line Версия ККМ: 001 [19:46:44]line Платежная система: Бакай Банк [19:46:44]line ФМ: 0000000000871820 [19:46:44]line ФД: 260896 [19:46:44]line ФПД: 212727251288554 [19:46:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T194648&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260896&fm=212727251288554&tin=02508201610067®Number=0000000000091865&sum=50036 [19:46:44]OFD Sender: Processing packet 260896 [packets to send 192, broken 191] [19:46:44]ProducePacketName [19:46:44]name=ofd_packets/00260896 [19:46:44]OFD Sender: To server: pG, [19:46:44]CommunicateWithHost lk.salyk.kg:30040 [19:46:44]ConnectInit lk.salyk.kg [19:46:44]written 0, free lines is 4095 [19:46:44]Connected sock=10 [19:46: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 30 0F 01 00 00 15 E8 07 01 C6 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 01 00 00 F4 03 04 00 A8 4F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 20 FB 03 00 35 04 06 00 C1 79 6C 3F 41 EA 6C 97 40 0E 4A E7 2E F5 [19:46: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 30 4F 00 00 00 36 B6 47 00 57 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 30 10 04 04 00 20 FB 03 00 F4 03 04 00 FC F8 C1 66 B6 04 01 00 00 5E 5C 28 5A 04 34 8C D6 [19:46:44]CommunicateWithHost err = 0 [19:46:44]CheckOFDResponse [19:46:44]1017 (14) - 77093643461234 [19:46:44]1041 (16) - 0000000000871820 [19:46:44]1040 (4) - 260896 [19:46:44]1012 (4) - 18.08.2024 13:37 [19:46:44]1206 (1) - 0 [19:46:44]OFD Sender: Remove packet 260896 [19:46:44]ProducePacketName [19:46:44]name=ofd_packets/00260896 [19:46:44]NVStorageDeleteData [19:46:44]Write to MH i2c: 01 00 00 91 BF 50 [19:46:44]Write i2c OK [19:46:44]MH_I2C_Read... [19:46:44]Read from MH i2c: 01 [19:46:44]MH_I2C_Read... [19:46:44]Read from MH i2c: 01 07 00 [19:46:44]MH_I2C_Read... [19:46:44]Read from MH i2c: 01 07 00 91 BF 00 00 00 00 00 93 0C F6 [19:46:44]RasterBufferAndPrint [19:46:44]line [19:46:44]line [19:46:44]line [19:46:44]line [19:46:44]line [19:46:44]written 0, free lines is 3227 [19:46:44]MH_Cut [19:46:44]Write to MH i2c: D1 01 00 98 BF 01 29 [19:46:44]Write i2c OK [19:46:44]MH_I2C_Read... [19:46:44]Read from MH i2c: D1 [19:46:44]MH_I2C_Read... [19:46:44]Read from MH i2c: D1 01 00 [19:46:44]MH_I2C_Read... [19:46:44]Read from MH i2c: D1 01 00 98 BF 00 28 [19:46:44]Write to MH i2c: 01 00 00 99 BF 58 [19:46:44]Write i2c OK [19:46:44]MH_I2C_Read... [19:46:45]OFD Sender: No OFD packet to send [19:46:45]*** Cut start [19:46:45]*** Purtial cut [19:46:45]*** Stage 1: CUTSNS_PIN = 1 [19:46:47]Read from MH i2c: 01 [19:46:47]MH_I2C_Read... [19:46:47]*** Stop cut motor [19:46:47]*** Cut end [19:46:47]Read from MH i2c: 01 07 00 [19:46:47]MH_I2C_Read... [19:46:47]Read from MH i2c: 01 07 00 99 BF 00 00 00 00 00 FF 0F 6D [19:46:47]process_action close_receipt done [19:46:47]requested_data is exist [19:46:47]produce_requested_data [19:46:47]requested_item fm.sn is exist - process it [19:46:47]wFMCommunicate request_size=4 [19:46:47]MH_SAM_APDU [19:46:47]CAPDU: 80 11 00 00 [19:46:47]Write to MH i2c: E2 08 00 9A BF 80 11 00 00 00 00 00 00 D3 [19:46:47]Write i2c OK [19:46:47]MH_I2C_Read... [19:46:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:47]Read from MH i2c: E2 [19:46:47]MH_I2C_Read... [19:46:47]Read from MH i2c: E2 17 00 [19:46:47]MH_I2C_Read... [19:46:47]Read from MH i2c: E2 17 00 9A BF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 20 [19:46:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:46:47]wFMCommunicate OK [19:46:47]requested_item fd.num is exist - process it [19:46:47]SAM_PROTO_GetFieldsCounters [19:46:47]wFMCommunicate request_size=4 [19:46:47]MH_SAM_APDU [19:46:47]CAPDU: 80 13 00 00 [19:46:47]Write to MH i2c: E2 08 00 9B BF 80 13 00 00 00 00 00 00 D6 [19:46:47]Write i2c OK [19:46:47]MH_I2C_Read... [19:46:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:46:48]Read from MH i2c: E2 [19:46:48]MH_I2C_Read... [19:46:48]Read from MH i2c: E2 62 00 [19:46:48]MH_I2C_Read... [19:46:48]Read from MH i2c: E2 62 00 9B BF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 20 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C6 01 00 00 5E 04 04 00 C6 01 00 00 57 04 04 00 C7 01 00 00 19 04 04 00 00 00 00 00 90 00 2A [19:46: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 20 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C6 01 00 00 5E 04 04 00 C6 01 00 00 57 04 04 00 C7 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:46:48]wFMCommunicate OK [19:46:48]SAM_PROTO_GetFieldsCounters done [19:46:48]requested_item shift.num is exist - process it [19:46:48]requested_item shift.opened is exist - process it [19:46:48]req_shift_opened [19:46:48]FM_GetShiftState [19:46:48]SAM_PROTO_GetShiftState [19:46:48]wFMCommunicate request_size=4 [19:46:48]MH_SAM_APDU [19:46:48]CAPDU: 80 13 01 00 [19:46:48]Write to MH i2c: E2 08 00 9C BF 80 13 01 00 00 00 00 00 D8 [19:46:48]Write i2c OK [19:46:48]MH_I2C_Read... [19:46:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:48]Read from MH i2c: E2 [19:46:48]MH_I2C_Read... [19:46:48]Read from MH i2c: E2 0E 00 [19:46:48]MH_I2C_Read... [19:46:48]Read from MH i2c: E2 0E 00 9C BF 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 15 [19:46:48]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:46:48]wFMCommunicate OK [19:46:48]SAM_PROTO_GetShiftState done [19:46:48]FM_GetShiftState done [19:46:48]req_shift_opened done [19:46:48]requested_item shift.open_date is exist - process it [19:46:48]req_shift_open_date [19:46:48]req_shift_open_date done [19:46:48]produce_requested_data done [19:46:48]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260896,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [19:46:48]process_action_free close_receipt [19:46:48]json_value_free [19:46:48]json_value_free done [19:46:48]process_json_proto returns [19:46:48]Send response to host [19:46:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260896,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [19:46:48]free response buf [19:46:48]execute_script done [19:46:48]execute_script returns [19:46:48]free content buf [19:46:48]Sock 7.Close socket [19:46:48]Sock 7.Thread stoped [19:46:50]OFD Sender: No OFD packet to send [19:46:55]OFD Sender: No OFD packet to send [19:47:00]OFD Sender: No OFD packet to send [19:47:05]OFD Sender: No OFD packet to send [19:47:10]OFD Sender: No OFD packet to send [19:47:15]OFD Sender: No OFD packet to send [19:47:20]OFD Sender: No OFD packet to send [19:47:25]OFD Sender: No OFD packet to send [19:47:30]OFD Sender: No OFD packet to send [19:47:35]OFD Sender: No OFD packet to send [19:47:40]OFD Sender: No OFD packet to send [19:47:45]OFD Sender: No OFD packet to send [19:47:50]OFD Sender: No OFD packet to send [19:47:55]OFD Sender: No OFD packet to send [19:48:00]OFD Sender: No OFD packet to send [19:48:05]OFD Sender: No OFD packet to send [19:48:10]OFD Sender: No OFD packet to send [19:48:15]OFD Sender: No OFD packet to send [19:48:20]OFD Sender: No OFD packet to send [19:48:25]OFD Sender: No OFD packet to send [19:48:30]OFD Sender: No OFD packet to send [19:48:35]OFD Sender: No OFD packet to send [19:48:40]OFD Sender: No OFD packet to send [19:48:45]OFD Sender: No OFD packet to send [19:48:46]accept exits with 9 [19:48:46]New connection [19:48:46]New thread 3066617188 created [19:48:46]Thread 3066473828 joined [19:48:46]Waiting for new connection... [19:48:46] Sock 9.Parse request [19:48:46]Sock 9.Check first char [19:48:46]Sock 9.First char is OK [19:48:46]request: POST /json_proto HTTP/1.0 [19:48:46]Method: POST [19:48:46]URL: /json_proto [19:48:46]Method is POST - this is cgi request [19:48:46]url: /json_proto [19:48:46]query_string will be loaded in cgi processing [19:48:46]execute_cgi json_proto POST (null) [19:48:46]execute_cgi path=json_proto method=POST [19:48:46]POST find Content-Length [19:48:46]Host: 172.17.55.133:8080 [19:48:46]Content-Length: 683 [19:48:46]Content-Type: application/json [19:48:46] [19:48:46]POST finish read [19:48:46]Found Content-Length = 683 [19:48:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:46]execute_script... [19:48: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)1036450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:46]POST & json_proto [19:48:46]process_json_proto [19:48:46]json parsed OK: [19:48:46]protocol is kg_v1.0 [19:48:46]action value=close_receipt [19:48:46]process_action close_receipt [19:48:46]cmd_close_receipt [19:48:46]MH_GetDate [19:48:46]Write to MH i2c: F0 00 00 9D BF 4B [19:48:46]Write i2c OK [19:48:46]MH_I2C_Read... [19:48:46]Read from MH i2c: F0 [19:48:46]MH_I2C_Read... [19:48:46]Read from MH i2c: F0 09 00 [19:48:46]MH_I2C_Read... [19:48:46]Read from MH i2c: F0 09 00 9D BF 00 24 50 C2 66 34 48 D8 65 A9 [19:48:46]GetLastDocTimeStamp 1724010408 [19:48:46]current date 1724010532 [19:48:46]FM_GetShiftState [19:48:46]SAM_PROTO_GetShiftState [19:48:46]wFMCommunicate request_size=4 [19:48:46]MH_SAM_APDU [19:48:46]CAPDU: 80 13 01 00 [19:48:46]Write to MH i2c: E2 08 00 9E BF 80 13 01 00 00 00 00 00 DA [19:48:46]Write i2c OK [19:48:46]MH_I2C_Read... [19:48:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:46]Read from MH i2c: E2 [19:48:46]MH_I2C_Read... [19:48:46]Read from MH i2c: E2 0E 00 [19:48:46]MH_I2C_Read... [19:48:46]Read from MH i2c: E2 0E 00 9E BF 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 17 [19:48:46]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:48:46]wFMCommunicate OK [19:48:46]SAM_PROTO_GetShiftState done [19:48:46]FM_GetShiftState done [19:48:46]opened in 1723940556 [19:48:46]opened+sec_in_day 1724026956 [19:48:46]quantity*price = 100005 [19:48:46]sum+1 = 100006 [19:48:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 455 18.08.2024 19:48 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260897 ФПД: 18870593369964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T194852&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260897&fm=18870593369964&tin=02508201610067®Number=0000000000091865&sum=100000 [19:48:47]StoreToDocumentArchive [19:48:47]shift 449 fd 260897 [19:48:47]save to /storage/0449/doc_00260897 [19:48:47]save last doc name /storage/0449/doc_00260897 to /storage/kkm_last_doc_name [19:48:47]save OK [19:48:47]Clear old archive folders... [19:48:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:48:47]tlvbuf is 0057BA10 [19:48:47]SAM_PROTO_ClearQueue [19:48:47]wFMCommunicate request_size=4 [19:48:47]MH_SAM_APDU [19:48:47]CAPDU: 80 09 00 00 [19:48:47]Write to MH i2c: E2 08 00 AB BF 80 09 00 00 00 00 00 00 DC [19:48:47]Write i2c OK [19:48:47]MH_I2C_Read... [19:48:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:48:47]Read from MH i2c: E2 [19:48:47]MH_I2C_Read... [19:48:47]Read from MH i2c: E2 03 00 [19:48:47]MH_I2C_Read... [19:48:47]Read from MH i2c: E2 03 00 AB BF 00 90 00 DE [19:48:47]RAPDU: 90 00 [19:48:47]wFMCommunicate OK [19:48:47]SAM_PROTO_ClearQueue done [19:48:47]KKMCreateOFDPacket [19:48:47]OFDProtocolAddRootSTLVToBuf [19:48:47]FM_MakeSignedData [19:48:47]FM_MakeSignedData [19:48:47]SAM_PROTO_SignData [19:48:47]wFMCommunicate request_size=4 [19:48:47]MH_SAM_APDU [19:48:47]CAPDU: 80 0D 01 02 [19:48:47]Write to MH i2c: E2 08 00 AC BF 80 0D 01 02 00 00 00 00 E4 [19:48:47]Write i2c OK [19:48:47]MH_I2C_Read... [19:48:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:48:47]Read from MH i2c: E2 [19:48:47]MH_I2C_Read... [19:48:47]Read from MH i2c: E2 03 00 [19:48:47]MH_I2C_Read... [19:48:47]Read from MH i2c: E2 03 00 AC BF 00 90 00 DF [19:48:47]RAPDU: 90 00 [19:48:47]wFMCommunicate OK [19:48:47]wFMCommunicate request_size=255 [19:48:47]MH_SAM_APDU [19:48:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 01 00 00 F4 03 04 00 24 50 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 21 FB 03 00 35 04 06 00 11 [19:48:47]Write to MH i2c: E2 02 01 AD BF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 01 00 00 F4 03 04 00 24 50 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 21 FB 03 00 35 04 06 00 11 00 00 46 [19:48:47]Write i2c OK [19:48:47]MH_I2C_Read... [19:48:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:47]Read from MH i2c: E2 [19:48:47]MH_I2C_Read... [19:48:47]Read from MH i2c: E2 03 00 [19:48:47]MH_I2C_Read... [19:48:47]Read from MH i2c: E2 03 00 AD BF 00 90 00 E0 [19:48:47]RAPDU: 90 00 [19:48:47]wFMCommunicate OK [19:48:47]wFMCommunicate request_size=10 [19:48:47]MH_SAM_APDU [19:48:47]CAPDU: 80 0D 02 02 05 29 A7 03 B7 6C [19:48:47]Write to MH i2c: E2 0D 00 AE BF 80 0D 02 02 05 00 29 A7 03 B7 6C 00 00 E7 [19:48:47]Write i2c OK [19:48:47]MH_I2C_Read... [19:48:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:47]Read from MH i2c: E2 [19:48:47]MH_I2C_Read... [19:48:47]Read from MH i2c: E2 03 00 [19:48:47]MH_I2C_Read... [19:48:47]Read from MH i2c: E2 03 00 AE BF 00 90 00 E1 [19:48:47]RAPDU: 90 00 [19:48:47]wFMCommunicate OK [19:48:47]wFMCommunicate request_size=4 [19:48:47]MH_SAM_APDU [19:48:47]CAPDU: 80 0D 03 02 [19:48:47]Write to MH i2c: E2 08 00 AF BF 80 0D 03 02 00 00 00 00 E9 [19:48:47]Write i2c OK [19:48:47]MH_I2C_Read... [19:48:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:48:47]Read from MH i2c: E2 [19:48:47]MH_I2C_Read... [19:48:47]Read from MH i2c: E2 0B 00 [19:48:47]MH_I2C_Read... [19:48:47]Read from MH i2c: E2 0B 00 AF BF 00 7F 98 56 41 BD 17 96 D4 90 00 D6 [19:48:47]RAPDU: 7F 98 56 41 BD 17 96 D4 90 00 [19:48:47]wFMCommunicate OK [19:48:47]SAM_PROTO_SignData done [19:48:47]FM_MakeSignedData done [19:48:47]CreateOFDProtocolMessage [19:48:47]wFMCommunicate request_size=4 [19:48:47]MH_SAM_APDU [19:48:47]CAPDU: 80 11 00 00 [19:48:47]Write to MH i2c: E2 08 00 B0 BF 80 11 00 00 00 00 00 00 E9 [19:48:47]Write i2c OK [19:48:47]MH_I2C_Read... [19:48:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:47]Read from MH i2c: E2 [19:48:47]MH_I2C_Read... [19:48:47]Read from MH i2c: E2 17 00 [19:48:47]MH_I2C_Read... [19:48:47]Read from MH i2c: E2 17 00 B0 BF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 36 [19:48:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:48:47]wFMCommunicate OK [19:48:47]CreateOFDProtocolMessage done [19:48:47]OFDSenderStorePacket 260897 [19:48:47]StoreOFDPacket docnum=260897 [19:48:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 B5 71 07 01 C3 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 01 00 00 F4 03 04 00 24 50 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 21 FB 03 00 35 04 06 00 11 29 A7 03 B7 6C 7F 98 56 41 BD 17 96 D4 [19:48:47]CheckFolder [19:48:47]dirname=/storage/ofd_packets [19:48:47]CheckFolder done [19:48:47]ProducePacketName [19:48:47]name=ofd_packets/00260897 [19:48:47]NVStorageSaveData ofd_packets/00260897 [19:48:47]File name is /storage/ofd_packets/00260897 [19:48:47]Write 301 bytes [19:48:47]NVStorageSaveData done [19:48:47]OFDSenderStorePacket done [19:48:47]KKMCreateOFDPacket done [19:48:47]NVStorageSaveData kkm_last_timestamp [19:48:47]File name is /storage/kkm_last_timestamp [19:48:47]Write 4 bytes [19:48:47]NVStorageSaveData done [19:48:47]OFD Sender: Processing packet 260897 [packets to send 192, broken 191] [19:48:47]ProducePacketName [19:48:47]name=ofd_packets/00260897 [19:48:47]OFD Sender: To server: pG, [19:48:47]CommunicateWithHost lk.salyk.kg:30040 [19:48:47]ConnectInit lk.salyk.kg [19:48:47]ExternCall_PrintAddStr [19:48:47]wPrintStart [19:48:47]Write to MH i2c: 01 00 00 B1 BF 70 [19:48:47]Write i2c OK [19:48:47]MH_I2C_Read... [19:48:47]Read from MH i2c: 01 [19:48:47]MH_I2C_Read... [19:48:47]Read from MH i2c: 01 07 00 [19:48:47]MH_I2C_Read... [19:48:47]Read from MH i2c: 01 07 00 B1 BF 00 00 00 00 00 FF 0F 85 [19:48:47]RasterBufferAndPrint [19:48:47]line Счет N : (1)1036450 [19:48:47]line ИНН: 02508201610067 [19:48:47]line Контрольно-Кассовый Чек [19:48:47]line ПРОДАЖА [19:48:47]line ТРК (МРК, ГНК) : 12 [19:48:47]line Товар: 2710124130 [19:48:47]line Аи-92-К-5 [19:48:47]line 14.750 * 67.80 [19:48:47]line = 1000.05 [19:48:47]line НДС 12% НСП 1% [19:48:47]line > о реализуемом товаре [19:48:47]line ОКРУГЛЕНИЕ: -0.05 [19:48:47]line ИТОГО: 1000.00 [19:48:47]line Внесено: 1000.00 [19:48:47]line СДАЧА: 0.00 [19:48:47]line НСП 1% : 8.85 [19:48:47]line НДС 12% : 106.20 [19:48:47]line Наличными: 1000.00 [19:48:47]line Безнал.: 0.00 [19:48:47]line Место: АЗС № 94 "Партнер Нефть" [19:48:47]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [19:48:47]line СНО: Общий режим [19:48:47]line Чек 455 18.08.2024 19:48 [19:48:47]line Смена: 449 ФФД: 1.0 [19:48:47]line ЗНМ: 0300000099 [19:48:47]line РНМ: 0000000000091865 [19:48:47]line Версия ККМ: 001 [19:48:47]line ФМ: 0000000000871820 [19:48:47]line ФД: 260897 [19:48:47]line ФПД: 18870593369964 [19:48:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T194852&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260897&fm=18870593369964&tin=02508201610067®Number=0000000000091865&sum=100000 [19:48:48]Connected sock=11 [19:48: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 30 0F 01 00 00 B5 71 07 01 C3 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 01 00 00 F4 03 04 00 24 50 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 21 FB 03 00 35 04 06 00 11 29 A7 03 B7 6C 7F 98 56 41 BD 17 96 D4 [19:48:48]written 0, free lines is 4095 [19:48: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 30 4F 00 00 00 72 61 47 00 A5 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 30 10 04 04 00 21 FB 03 00 F4 03 04 00 78 F9 C1 66 B6 04 01 00 00 35 9B 28 7B C5 BD 5E EA [19:48:48]CommunicateWithHost err = 0 [19:48:48]CheckOFDResponse [19:48:48]1017 (14) - 77093643461234 [19:48:48]1041 (16) - 0000000000871820 [19:48:48]1040 (4) - 260897 [19:48:48]1012 (4) - 18.08.2024 13:39 [19:48:48]1206 (1) - 0 [19:48:48]OFD Sender: Remove packet 260897 [19:48:48]ProducePacketName [19:48:48]name=ofd_packets/00260897 [19:48:48]NVStorageDeleteData [19:48:48]Write to MH i2c: 01 00 00 DC BF 9B [19:48:48]Write i2c OK [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: 01 [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: 01 07 00 [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: 01 07 00 DC BF 00 00 00 00 00 73 0C 21 [19:48:48]RasterBufferAndPrint [19:48:48]line [19:48:48]line [19:48:48]line [19:48:48]line [19:48:48]line [19:48:48]written 0, free lines is 3190 [19:48:48]MH_Cut [19:48:48]Write to MH i2c: D1 01 00 E3 BF 01 74 [19:48:48]Write i2c OK [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: D1 [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: D1 01 00 [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: D1 01 00 E3 BF 00 73 [19:48:48]Write to MH i2c: 01 00 00 E4 BF A3 [19:48:48]Write i2c OK [19:48:48]MH_I2C_Read... [19:48:48]OFD Sender: No OFD packet to send [19:48:49]*** Cut start [19:48:49]*** Purtial cut [19:48:49]*** Stage 1: CUTSNS_PIN = 1 [19:48:51]Read from MH i2c: 01 [19:48:51]MH_I2C_Read... [19:48:51]*** Stop cut motor [19:48:51]*** Cut end [19:48:51]Read from MH i2c: 01 07 00 [19:48:51]MH_I2C_Read... [19:48:51]Read from MH i2c: 01 07 00 E4 BF 00 00 00 00 00 FF 0F B8 [19:48:51]process_action close_receipt done [19:48:51]requested_data is exist [19:48:51]produce_requested_data [19:48:51]requested_item fm.sn is exist - process it [19:48:51]wFMCommunicate request_size=4 [19:48:51]MH_SAM_APDU [19:48:51]CAPDU: 80 11 00 00 [19:48:51]Write to MH i2c: E2 08 00 E5 BF 80 11 00 00 00 00 00 00 1E [19:48:51]Write i2c OK [19:48:51]MH_I2C_Read... [19:48:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:51]Read from MH i2c: E2 [19:48:51]MH_I2C_Read... [19:48:51]Read from MH i2c: E2 17 00 [19:48:51]MH_I2C_Read... [19:48:51]Read from MH i2c: E2 17 00 E5 BF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 6B [19:48:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:48:51]wFMCommunicate OK [19:48:51]requested_item fd.num is exist - process it [19:48:51]SAM_PROTO_GetFieldsCounters [19:48:51]wFMCommunicate request_size=4 [19:48:51]MH_SAM_APDU [19:48:51]CAPDU: 80 13 00 00 [19:48:51]Write to MH i2c: E2 08 00 E6 BF 80 13 00 00 00 00 00 00 21 [19:48:51]Write i2c OK [19:48:51]MH_I2C_Read... [19:48:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:48:51]Read from MH i2c: E2 [19:48:51]MH_I2C_Read... [19:48:51]Read from MH i2c: E2 62 00 [19:48:51]MH_I2C_Read... [19:48:51]Read from MH i2c: E2 62 00 E6 BF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 21 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C7 01 00 00 5E 04 04 00 C7 01 00 00 57 04 04 00 C8 01 00 00 19 04 04 00 00 00 00 00 90 00 79 [19:48: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 21 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C7 01 00 00 5E 04 04 00 C7 01 00 00 57 04 04 00 C8 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:48:51]wFMCommunicate OK [19:48:51]SAM_PROTO_GetFieldsCounters done [19:48:51]requested_item shift.num is exist - process it [19:48:51]requested_item shift.opened is exist - process it [19:48:51]req_shift_opened [19:48:51]FM_GetShiftState [19:48:51]SAM_PROTO_GetShiftState [19:48:51]wFMCommunicate request_size=4 [19:48:51]MH_SAM_APDU [19:48:51]CAPDU: 80 13 01 00 [19:48:51]Write to MH i2c: E2 08 00 E7 BF 80 13 01 00 00 00 00 00 23 [19:48:51]Write i2c OK [19:48:51]MH_I2C_Read... [19:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:51]Read from MH i2c: E2 [19:48:51]MH_I2C_Read... [19:48:51]Read from MH i2c: E2 0E 00 [19:48:51]MH_I2C_Read... [19:48:51]Read from MH i2c: E2 0E 00 E7 BF 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 60 [19:48:51]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:48:51]wFMCommunicate OK [19:48:51]SAM_PROTO_GetShiftState done [19:48:51]FM_GetShiftState done [19:48:51]req_shift_opened done [19:48:51]requested_item shift.open_date is exist - process it [19:48:51]req_shift_open_date [19:48:51]req_shift_open_date done [19:48:51]produce_requested_data done [19:48:51]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260897,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [19:48:51]process_action_free close_receipt [19:48:51]json_value_free [19:48:51]json_value_free done [19:48:51]process_json_proto returns [19:48:51]Send response to host [19:48:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260897,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [19:48:51]free response buf [19:48:51]execute_script done [19:48:51]execute_script returns [19:48:51]free content buf [19:48:51]Sock 9.Close socket [19:48:51]Sock 9.Thread stoped [19:48:52]accept exits with 7 [19:48:52]New connection [19:48:52]New thread 3066473828 created [19:48:52]Thread 3066617188 joined [19:48:52]Waiting for new connection... [19:48:52] Sock 7.Parse request [19:48:52]Sock 7.Check first char [19:48:52]Sock 7.First char is OK [19:48:52]request: POST /json_proto HTTP/1.0 [19:48:52]Method: POST [19:48:52]URL: /json_proto [19:48:52]Method is POST - this is cgi request [19:48:52]url: /json_proto [19:48:52]query_string will be loaded in cgi processing [19:48:52]execute_cgi json_proto POST (null) [19:48:52]execute_cgi path=json_proto method=POST [19:48:52]POST find Content-Length [19:48:52]Host: 172.17.55.133:8080 [19:48:52]Content-Length: 683 [19:48:52]Content-Type: application/json [19:48:52] [19:48:52]POST finish read [19:48:52]Found Content-Length = 683 [19:48:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:52]execute_script... [19:48: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)1036449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:52]POST & json_proto [19:48:52]process_json_proto [19:48:52]json parsed OK: [19:48:52]protocol is kg_v1.0 [19:48:52]action value=close_receipt [19:48:52]process_action close_receipt [19:48:52]cmd_close_receipt [19:48:52]MH_GetDate [19:48:52]Write to MH i2c: F0 00 00 E8 BF 96 [19:48:52]Write i2c OK [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: F0 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: F0 09 00 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: F0 09 00 E8 BF 00 2A 50 C2 66 34 48 D8 65 FA [19:48:52]GetLastDocTimeStamp 1724010532 [19:48:52]current date 1724010538 [19:48:52]FM_GetShiftState [19:48:52]SAM_PROTO_GetShiftState [19:48:52]wFMCommunicate request_size=4 [19:48:52]MH_SAM_APDU [19:48:52]CAPDU: 80 13 01 00 [19:48:52]Write to MH i2c: E2 08 00 E9 BF 80 13 01 00 00 00 00 00 25 [19:48:52]Write i2c OK [19:48:52]MH_I2C_Read... [19:48:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:52]Read from MH i2c: E2 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: E2 0E 00 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: E2 0E 00 E9 BF 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 62 [19:48:52]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:48:52]wFMCommunicate OK [19:48:52]SAM_PROTO_GetShiftState done [19:48:52]FM_GetShiftState done [19:48:52]opened in 1723940556 [19:48:52]opened+sec_in_day 1724026956 [19:48:52]quantity*price = 100005 [19:48:52]sum+1 = 100006 [19:48:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 456 18.08.2024 19:48 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260898 ФПД: 27701116718276 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T194858&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260898&fm=27701116718276&tin=02508201610067®Number=0000000000091865&sum=100000 [19:48:53]StoreToDocumentArchive [19:48:53]shift 449 fd 260898 [19:48:53]save to /storage/0449/doc_00260898 [19:48:53]save last doc name /storage/0449/doc_00260898 to /storage/kkm_last_doc_name [19:48:53]save OK [19:48:53]Clear old archive folders... [19:48:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:48:53]tlvbuf is 0063D9D0 [19:48:53]SAM_PROTO_ClearQueue [19:48:53]wFMCommunicate request_size=4 [19:48:53]MH_SAM_APDU [19:48:53]CAPDU: 80 09 00 00 [19:48:53]Write to MH i2c: E2 08 00 F6 BF 80 09 00 00 00 00 00 00 27 [19:48:53]Write i2c OK [19:48:53]MH_I2C_Read... [19:48:53]OFD Sender: No OFD packet to send [19:48:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:48:53]Read from MH i2c: E2 [19:48:53]MH_I2C_Read... [19:48:53]Read from MH i2c: E2 03 00 [19:48:53]MH_I2C_Read... [19:48:53]Read from MH i2c: E2 03 00 F6 BF 00 90 00 29 [19:48:53]RAPDU: 90 00 [19:48:53]wFMCommunicate OK [19:48:53]SAM_PROTO_ClearQueue done [19:48:53]KKMCreateOFDPacket [19:48:53]OFDProtocolAddRootSTLVToBuf [19:48:53]FM_MakeSignedData [19:48:53]FM_MakeSignedData [19:48:53]SAM_PROTO_SignData [19:48:53]wFMCommunicate request_size=4 [19:48:53]MH_SAM_APDU [19:48:53]CAPDU: 80 0D 01 02 [19:48:53]Write to MH i2c: E2 08 00 F7 BF 80 0D 01 02 00 00 00 00 2F [19:48:53]Write i2c OK [19:48:53]MH_I2C_Read... [19:48:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:48:53]Read from MH i2c: E2 [19:48:53]MH_I2C_Read... [19:48:53]Read from MH i2c: E2 03 00 [19:48:53]MH_I2C_Read... [19:48:53]Read from MH i2c: E2 03 00 F7 BF 00 90 00 2A [19:48:53]RAPDU: 90 00 [19:48:53]wFMCommunicate OK [19:48:53]wFMCommunicate request_size=255 [19:48:53]MH_SAM_APDU [19:48:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 01 00 00 F4 03 04 00 2A 50 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 22 FB 03 00 35 04 06 00 19 [19:48:53]Write to MH i2c: E2 02 01 F8 BF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 01 00 00 F4 03 04 00 2A 50 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 22 FB 03 00 35 04 06 00 19 00 00 A1 [19:48:53]Write i2c OK [19:48:53]MH_I2C_Read... [19:48:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:54]Read from MH i2c: E2 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: E2 03 00 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: E2 03 00 F8 BF 00 90 00 2B [19:48:54]RAPDU: 90 00 [19:48:54]wFMCommunicate OK [19:48:54]wFMCommunicate request_size=10 [19:48:54]MH_SAM_APDU [19:48:54]CAPDU: 80 0D 02 02 05 31 AB 38 CC C4 [19:48:54]Write to MH i2c: E2 0D 00 F9 BF 80 0D 02 02 05 00 31 AB 38 CC C4 00 00 E0 [19:48:54]Write i2c OK [19:48:54]MH_I2C_Read... [19:48:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:54]Read from MH i2c: E2 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: E2 03 00 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: E2 03 00 F9 BF 00 90 00 2C [19:48:54]RAPDU: 90 00 [19:48:54]wFMCommunicate OK [19:48:54]wFMCommunicate request_size=4 [19:48:54]MH_SAM_APDU [19:48:54]CAPDU: 80 0D 03 02 [19:48:54]Write to MH i2c: E2 08 00 FA BF 80 0D 03 02 00 00 00 00 34 [19:48:54]Write i2c OK [19:48:54]MH_I2C_Read... [19:48:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:48:54]Read from MH i2c: E2 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: E2 0B 00 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: E2 0B 00 FA BF 00 9F 38 12 89 B1 9F CC EE 90 00 B1 [19:48:54]RAPDU: 9F 38 12 89 B1 9F CC EE 90 00 [19:48:54]wFMCommunicate OK [19:48:54]SAM_PROTO_SignData done [19:48:54]FM_MakeSignedData done [19:48:54]CreateOFDProtocolMessage [19:48:54]wFMCommunicate request_size=4 [19:48:54]MH_SAM_APDU [19:48:54]CAPDU: 80 11 00 00 [19:48:54]Write to MH i2c: E2 08 00 FB BF 80 11 00 00 00 00 00 00 34 [19:48:54]Write i2c OK [19:48:54]MH_I2C_Read... [19:48:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:54]Read from MH i2c: E2 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: E2 17 00 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: E2 17 00 FB BF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 81 [19:48:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:48:54]wFMCommunicate OK [19:48:54]CreateOFDProtocolMessage done [19:48:54]OFDSenderStorePacket 260898 [19:48:54]StoreOFDPacket docnum=260898 [19:48:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 5E DD 07 01 F7 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 01 00 00 F4 03 04 00 2A 50 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 22 FB 03 00 35 04 06 00 19 31 AB 38 CC C4 9F 38 12 89 B1 9F CC EE [19:48:54]CheckFolder [19:48:54]dirname=/storage/ofd_packets [19:48:54]CheckFolder done [19:48:54]ProducePacketName [19:48:54]name=ofd_packets/00260898 [19:48:54]NVStorageSaveData ofd_packets/00260898 [19:48:54]File name is /storage/ofd_packets/00260898 [19:48:54]Write 301 bytes [19:48:54]NVStorageSaveData done [19:48:54]OFDSenderStorePacket done [19:48:54]KKMCreateOFDPacket done [19:48:54]NVStorageSaveData kkm_last_timestamp [19:48:54]File name is /storage/kkm_last_timestamp [19:48:54]Write 4 bytes [19:48:54]NVStorageSaveData done [19:48:54]ExternCall_PrintAddStr [19:48:54]wPrintStart [19:48:54]Write to MH i2c: 01 00 00 FC BF BB [19:48:54]Write i2c OK [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: 01 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: 01 07 00 [19:48:54]MH_I2C_Read... [19:48:54]Read from MH i2c: 01 07 00 FC BF 00 00 00 00 00 FF 0F D0 [19:48:54]RasterBufferAndPrint [19:48:54]line Счет N : (1)1036449 [19:48:54]line ИНН: 02508201610067 [19:48:54]line Контрольно-Кассовый Чек [19:48:54]line ПРОДАЖА [19:48:54]line ТРК (МРК, ГНК) : 32 [19:48:54]line Товар: 2710124130 [19:48:54]line Аи-92-К-5 [19:48:54]line 14.750 * 67.80 [19:48:54]line = 1000.05 [19:48:54]line НДС 12% НСП 1% [19:48:54]line > о реализуемом товаре [19:48:54]line ОКРУГЛЕНИЕ: -0.05 [19:48:54]line ИТОГО: 1000.00 [19:48:54]line Внесено: 1000.00 [19:48:54]line СДАЧА: 0.00 [19:48:54]line НСП 1% : 8.85 [19:48:54]line НДС 12% : 106.20 [19:48:54]line Наличными: 1000.00 [19:48:54]line Безнал.: 0.00 [19:48:54]line Место: АЗС № 94 "Партнер Нефть" [19:48:54]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [19:48:54]line СНО: Общий режим [19:48:54]line Чек 456 18.08.2024 19:48 [19:48:54]line Смена: 449 ФФД: 1.0 [19:48:54]line ЗНМ: 0300000099 [19:48:54]line РНМ: 0000000000091865 [19:48:54]line Версия ККМ: 001 [19:48:54]line ФМ: 0000000000871820 [19:48:54]line ФД: 260898 [19:48:54]line ФПД: 27701116718276 [19:48:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T194858&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260898&fm=27701116718276&tin=02508201610067®Number=0000000000091865&sum=100000 [19:48:54]OFD Sender: Processing packet 260898 [packets to send 192, broken 191] [19:48:54]ProducePacketName [19:48:54]name=ofd_packets/00260898 [19:48:54]OFD Sender: To server: pG, [19:48:54]CommunicateWithHost lk.salyk.kg:30040 [19:48:54]ConnectInit lk.salyk.kg [19:48:54]written 0, free lines is 4095 [19:48:54]Connected sock=10 [19:48:54]Data 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 30 0F 01 00 00 5E DD 07 01 F7 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 01 00 00 F4 03 04 00 2A 50 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 22 FB 03 00 35 04 06 00 19 31 AB 38 CC C4 9F 38 12 89 B1 9F CC EE [19:48: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 30 4F 00 00 00 60 0D 47 00 56 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 22 FB 03 00 F4 03 04 00 7F F9 C1 66 B6 04 01 00 00 FB 73 E7 4D D1 19 2E EE [19:48:55]CommunicateWithHost err = 0 [19:48:55]CheckOFDResponse [19:48:55]1017 (14) - 77093643461234 [19:48:55]1041 (16) - 0000000000871820 [19:48:55]1040 (4) - 260898 [19:48:55]1012 (4) - 18.08.2024 13:39 [19:48:55]1206 (1) - 0 [19:48:55]OFD Sender: Remove packet 260898 [19:48:55]ProducePacketName [19:48:55]name=ofd_packets/00260898 [19:48:55]NVStorageDeleteData [19:48:55]Write to MH i2c: 01 00 00 27 C0 E7 [19:48:55]Write i2c OK [19:48:55]MH_I2C_Read... [19:48:55]Read from MH i2c: 01 [19:48:55]MH_I2C_Read... [19:48:55]Read from MH i2c: 01 07 00 [19:48:55]MH_I2C_Read... [19:48:55]Read from MH i2c: 01 07 00 27 C0 00 00 00 00 00 76 0C 70 [19:48:55]RasterBufferAndPrint [19:48:55]line [19:48:55]line [19:48:55]line [19:48:55]line [19:48:55]line [19:48:55]written 0, free lines is 3196 [19:48:55]MH_Cut [19:48:55]Write to MH i2c: D1 01 00 2E C0 01 C0 [19:48:55]Write i2c OK [19:48:55]MH_I2C_Read... [19:48:55]Read from MH i2c: D1 [19:48:55]MH_I2C_Read... [19:48:55]Read from MH i2c: D1 01 00 [19:48:55]MH_I2C_Read... [19:48:55]Read from MH i2c: D1 01 00 2E C0 00 BF [19:48:55]Write to MH i2c: 01 00 00 2F C0 EF [19:48:55]Write i2c OK [19:48:55]MH_I2C_Read... [19:48:55]OFD Sender: No OFD packet to send [19:48:56]*** Cut start [19:48:56]*** Purtial cut [19:48:56]*** Stage 1: CUTSNS_PIN = 1 [19:48:58]Read from MH i2c: 01 [19:48:58]MH_I2C_Read... [19:48:58]*** Stop cut motor [19:48:58]*** Cut end [19:48:58]Read from MH i2c: 01 07 00 [19:48:58]MH_I2C_Read... [19:48:58]Read from MH i2c: 01 07 00 2F C0 00 00 00 00 00 FF 0F 04 [19:48:58]process_action close_receipt done [19:48:58]requested_data is exist [19:48:58]produce_requested_data [19:48:58]requested_item fm.sn is exist - process it [19:48:58]wFMCommunicate request_size=4 [19:48:58]MH_SAM_APDU [19:48:58]CAPDU: 80 11 00 00 [19:48:58]Write to MH i2c: E2 08 00 30 C0 80 11 00 00 00 00 00 00 6A [19:48:58]Write i2c OK [19:48:58]MH_I2C_Read... [19:48:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:58]Read from MH i2c: E2 [19:48:58]MH_I2C_Read... [19:48:58]Read from MH i2c: E2 17 00 [19:48:58]MH_I2C_Read... [19:48:58]Read from MH i2c: E2 17 00 30 C0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B7 [19:48:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:48:58]wFMCommunicate OK [19:48:58]requested_item fd.num is exist - process it [19:48:58]SAM_PROTO_GetFieldsCounters [19:48:58]wFMCommunicate request_size=4 [19:48:58]MH_SAM_APDU [19:48:58]CAPDU: 80 13 00 00 [19:48:58]Write to MH i2c: E2 08 00 31 C0 80 13 00 00 00 00 00 00 6D [19:48:58]Write i2c OK [19:48:58]MH_I2C_Read... [19:48:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:48:58]Read from MH i2c: E2 [19:48:58]MH_I2C_Read... [19:48:58]Read from MH i2c: E2 62 00 [19:48:58]MH_I2C_Read... [19:48:58]Read from MH i2c: E2 62 00 31 C0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 22 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C8 01 00 00 5E 04 04 00 C8 01 00 00 57 04 04 00 C9 01 00 00 19 04 04 00 00 00 00 00 90 00 C9 [19:48: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 22 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C8 01 00 00 5E 04 04 00 C8 01 00 00 57 04 04 00 C9 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:48:58]wFMCommunicate OK [19:48:58]SAM_PROTO_GetFieldsCounters done [19:48:58]requested_item shift.num is exist - process it [19:48:58]requested_item shift.opened is exist - process it [19:48:58]req_shift_opened [19:48:58]FM_GetShiftState [19:48:58]SAM_PROTO_GetShiftState [19:48:58]wFMCommunicate request_size=4 [19:48:58]MH_SAM_APDU [19:48:58]CAPDU: 80 13 01 00 [19:48:58]Write to MH i2c: E2 08 00 32 C0 80 13 01 00 00 00 00 00 6F [19:48:58]Write i2c OK [19:48:58]MH_I2C_Read... [19:48:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:58]Read from MH i2c: E2 [19:48:58]MH_I2C_Read... [19:48:58]Read from MH i2c: E2 0E 00 [19:48:58]MH_I2C_Read... [19:48:58]Read from MH i2c: E2 0E 00 32 C0 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 AC [19:48:58]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:48:58]wFMCommunicate OK [19:48:58]SAM_PROTO_GetShiftState done [19:48:58]FM_GetShiftState done [19:48:58]req_shift_opened done [19:48:58]requested_item shift.open_date is exist - process it [19:48:58]req_shift_open_date [19:48:58]req_shift_open_date done [19:48:58]produce_requested_data done [19:48:58]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260898,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [19:48:58]process_action_free close_receipt [19:48:58]json_value_free [19:48:58]json_value_free done [19:48:58]process_json_proto returns [19:48:58]Send response to host [19:48:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260898,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [19:48:58]free response buf [19:48:58]execute_script done [19:48:58]execute_script returns [19:48:58]free content buf [19:48:58]Sock 7.Close socket [19:48:58]Sock 7.Thread stoped [19:49:00]OFD Sender: No OFD packet to send [19:49:05]OFD Sender: No OFD packet to send [19:49:10]OFD Sender: No OFD packet to send [19:49:15]OFD Sender: No OFD packet to send [19:49:20]OFD Sender: No OFD packet to send [19:49:25]OFD Sender: No OFD packet to send [19:49:30]OFD Sender: No OFD packet to send [19:49:35]OFD Sender: No OFD packet to send [19:49:40]OFD Sender: No OFD packet to send [19:49:45]OFD Sender: No OFD packet to send [19:49:50]OFD Sender: No OFD packet to send [19:49:55]OFD Sender: No OFD packet to send [19:50:00]OFD Sender: No OFD packet to send [19:50:05]OFD Sender: No OFD packet to send [19:50:10]OFD Sender: No OFD packet to send [19:50:15]OFD Sender: No OFD packet to send [19:50:20]OFD Sender: No OFD packet to send [19:50:25]OFD Sender: No OFD packet to send [19:50:29]accept exits with 9 [19:50:29]New connection [19:50:29]New thread 3066617188 created [19:50:29]Thread 3066473828 joined [19:50:29]Waiting for new connection... [19:50:29] Sock 9.Parse request [19:50:29]Sock 9.Check first char [19:50:29]Sock 9.First char is OK [19:50:29]request: POST /json_proto HTTP/1.0 [19:50:29]Method: POST [19:50:29]URL: /json_proto [19:50:29]Method is POST - this is cgi request [19:50:29]url: /json_proto [19:50:29]query_string will be loaded in cgi processing [19:50:29]execute_cgi json_proto POST (null) [19:50:29]execute_cgi path=json_proto method=POST [19:50:29]POST find Content-Length [19:50:29]Host: 172.17.55.133:8080 [19:50:29]Content-Length: 678 [19:50:29]Content-Type: application/json [19:50:29] [19:50:29]POST finish read [19:50:29]Found Content-Length = 678 [19:50:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:50:29]execute_script... [19:50: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)1036451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:50:29]POST & json_proto [19:50:29]process_json_proto [19:50:29]json parsed OK: [19:50:29]protocol is kg_v1.0 [19:50:29]action value=close_receipt [19:50:29]process_action close_receipt [19:50:29]cmd_close_receipt [19:50:29]MH_GetDate [19:50:29]Write to MH i2c: F0 00 00 33 C0 E2 [19:50:29]Write i2c OK [19:50:29]MH_I2C_Read... [19:50:29]Read from MH i2c: F0 [19:50:29]MH_I2C_Read... [19:50:29]Read from MH i2c: F0 09 00 [19:50:29]MH_I2C_Read... [19:50:29]Read from MH i2c: F0 09 00 33 C0 00 8B 50 C2 66 34 48 D8 65 A7 [19:50:29]GetLastDocTimeStamp 1724010538 [19:50:29]current date 1724010635 [19:50:29]FM_GetShiftState [19:50:29]SAM_PROTO_GetShiftState [19:50:29]wFMCommunicate request_size=4 [19:50:29]MH_SAM_APDU [19:50:29]CAPDU: 80 13 01 00 [19:50:29]Write to MH i2c: E2 08 00 34 C0 80 13 01 00 00 00 00 00 71 [19:50:29]Write i2c OK [19:50:29]MH_I2C_Read... [19:50:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:29]Read from MH i2c: E2 [19:50:29]MH_I2C_Read... [19:50:29]Read from MH i2c: E2 0E 00 [19:50:29]MH_I2C_Read... [19:50:29]Read from MH i2c: E2 0E 00 34 C0 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 AE [19:50:29]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:50:29]wFMCommunicate OK [19:50:29]SAM_PROTO_GetShiftState done [19:50:29]FM_GetShiftState done [19:50:29]opened in 1723940556 [19:50:29]opened+sec_in_day 1724026956 [19:50:29]quantity*price = 50036 [19:50:29]sum+1 = 50037 [19:50:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 457 18.08.2024 19:50 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260899 ФПД: 38144350742835 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T195036&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260899&fm=38144350742835&tin=02508201610067®Number=0000000000091865&sum=50000 [19:50:30]StoreToDocumentArchive [19:50:30]shift 449 fd 260899 [19:50:30]save to /storage/0449/doc_00260899 [19:50:30]save last doc name /storage/0449/doc_00260899 to /storage/kkm_last_doc_name [19:50:30]save OK [19:50:30]Clear old archive folders... [19:50:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:50:30]tlvbuf is 004A2230 [19:50:30]SAM_PROTO_ClearQueue [19:50:30]wFMCommunicate request_size=4 [19:50:30]MH_SAM_APDU [19:50:30]CAPDU: 80 09 00 00 [19:50:30]Write to MH i2c: E2 08 00 41 C0 80 09 00 00 00 00 00 00 73 [19:50:30]Write i2c OK [19:50:30]MH_I2C_Read... [19:50:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:50:30]Read from MH i2c: E2 [19:50:30]MH_I2C_Read... [19:50:30]Read from MH i2c: E2 03 00 [19:50:30]MH_I2C_Read... [19:50:30]Read from MH i2c: E2 03 00 41 C0 00 90 00 75 [19:50:30]RAPDU: 90 00 [19:50:30]wFMCommunicate OK [19:50:30]SAM_PROTO_ClearQueue done [19:50:30]KKMCreateOFDPacket [19:50:30]OFDProtocolAddRootSTLVToBuf [19:50:30]FM_MakeSignedData [19:50:30]FM_MakeSignedData [19:50:30]SAM_PROTO_SignData [19:50:30]wFMCommunicate request_size=4 [19:50:30]MH_SAM_APDU [19:50:30]CAPDU: 80 0D 01 02 [19:50:30]Write to MH i2c: E2 08 00 42 C0 80 0D 01 02 00 00 00 00 7B [19:50:30]Write i2c OK [19:50:30]MH_I2C_Read... [19:50:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:50:30]Read from MH i2c: E2 [19:50:30]MH_I2C_Read... [19:50:30]Read from MH i2c: E2 03 00 [19:50:30]MH_I2C_Read... [19:50:30]Read from MH i2c: E2 03 00 42 C0 00 90 00 76 [19:50:30]RAPDU: 90 00 [19:50:30]wFMCommunicate OK [19:50:30]wFMCommunicate request_size=255 [19:50:30]MH_SAM_APDU [19:50:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 C9 01 00 00 F4 03 04 00 8C 50 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 23 FB 03 00 35 04 06 00 22 [19:50:30]Write to MH i2c: E2 02 01 43 C0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 C9 01 00 00 F4 03 04 00 8C 50 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 23 FB 03 00 35 04 06 00 22 00 00 CB [19:50:30]Write i2c OK [19:50:30]MH_I2C_Read... [19:50:30]OFD Sender: No OFD packet to send [19:50:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:30]Read from MH i2c: E2 [19:50:30]MH_I2C_Read... [19:50:30]Read from MH i2c: E2 03 00 [19:50:30]MH_I2C_Read... [19:50:30]Read from MH i2c: E2 03 00 43 C0 00 90 00 77 [19:50:30]RAPDU: 90 00 [19:50:30]wFMCommunicate OK [19:50:30]wFMCommunicate request_size=10 [19:50:30]MH_SAM_APDU [19:50:30]CAPDU: 80 0D 02 02 05 B1 2C 79 E9 33 [19:50:30]Write to MH i2c: E2 0D 00 44 C0 80 0D 02 02 05 00 B1 2C 79 E9 33 00 00 FA [19:50:30]Write i2c OK [19:50:30]MH_I2C_Read... [19:50:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:31]Read from MH i2c: E2 [19:50:31]MH_I2C_Read... [19:50:31]Read from MH i2c: E2 03 00 [19:50:31]MH_I2C_Read... [19:50:31]Read from MH i2c: E2 03 00 44 C0 00 90 00 78 [19:50:31]RAPDU: 90 00 [19:50:31]wFMCommunicate OK [19:50:31]wFMCommunicate request_size=4 [19:50:31]MH_SAM_APDU [19:50:31]CAPDU: 80 0D 03 02 [19:50:31]Write to MH i2c: E2 08 00 45 C0 80 0D 03 02 00 00 00 00 80 [19:50:31]Write i2c OK [19:50:31]MH_I2C_Read... [19:50:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:50:31]Read from MH i2c: E2 [19:50:31]MH_I2C_Read... [19:50:31]Read from MH i2c: E2 0B 00 [19:50:31]MH_I2C_Read... [19:50:31]Read from MH i2c: E2 0B 00 45 C0 00 53 6E D7 8C A9 97 9D 2C 90 00 AE [19:50:31]RAPDU: 53 6E D7 8C A9 97 9D 2C 90 00 [19:50:31]wFMCommunicate OK [19:50:31]SAM_PROTO_SignData done [19:50:31]FM_MakeSignedData done [19:50:31]CreateOFDProtocolMessage [19:50:31]wFMCommunicate request_size=4 [19:50:31]MH_SAM_APDU [19:50:31]CAPDU: 80 11 00 00 [19:50:31]Write to MH i2c: E2 08 00 46 C0 80 11 00 00 00 00 00 00 80 [19:50:31]Write i2c OK [19:50:31]MH_I2C_Read... [19:50:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:31]Read from MH i2c: E2 [19:50:31]MH_I2C_Read... [19:50:31]Read from MH i2c: E2 17 00 [19:50:31]MH_I2C_Read... [19:50:31]Read from MH i2c: E2 17 00 46 C0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 CD [19:50:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:50:31]wFMCommunicate OK [19:50:31]CreateOFDProtocolMessage done [19:50:31]OFDSenderStorePacket 260899 [19:50:31]StoreOFDPacket docnum=260899 [19:50:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 87 F8 07 01 64 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 C9 01 00 00 F4 03 04 00 8C 50 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 23 FB 03 00 35 04 06 00 22 B1 2C 79 E9 33 53 6E D7 8C A9 97 9D 2C [19:50:31]CheckFolder [19:50:31]dirname=/storage/ofd_packets [19:50:31]CheckFolder done [19:50:31]ProducePacketName [19:50:31]name=ofd_packets/00260899 [19:50:31]NVStorageSaveData ofd_packets/00260899 [19:50:31]File name is /storage/ofd_packets/00260899 [19:50:31]Write 301 bytes [19:50:31]NVStorageSaveData done [19:50:31]OFDSenderStorePacket done [19:50:31]KKMCreateOFDPacket done [19:50:31]NVStorageSaveData kkm_last_timestamp [19:50:31]File name is /storage/kkm_last_timestamp [19:50:31]Write 4 bytes [19:50:31]NVStorageSaveData done [19:50:31]ExternCall_PrintAddStr [19:50:31]wPrintStart [19:50:31]Write to MH i2c: 01 00 00 47 C0 07 [19:50:31]Write i2c OK [19:50:31]MH_I2C_Read... [19:50:31]Read from MH i2c: 01 [19:50:31]MH_I2C_Read... [19:50:31]Read from MH i2c: 01 07 00 [19:50:31]MH_I2C_Read... [19:50:31]Read from MH i2c: 01 07 00 47 C0 00 00 00 00 00 FF 0F 1C [19:50:31]RasterBufferAndPrint [19:50:31]line Счет N : (1)1036451 [19:50:31]line ИНН: 02508201610067 [19:50:31]line Контрольно-Кассовый Чек [19:50:31]line ПРОДАЖА [19:50:31]line ТРК (МРК, ГНК) : 12 [19:50:31]line Товар: 2710124130 [19:50:31]line Аи-92-К-5 [19:50:31]line 7.380 * 67.80 [19:50:31]line = 500.36 [19:50:31]line НДС 12% НСП 1% [19:50:31]line > о реализуемом товаре [19:50:31]line ОКРУГЛЕНИЕ: -0.36 [19:50:31]line ИТОГО: 500.00 [19:50:31]line Внесено: 500.00 [19:50:31]line СДАЧА: 0.00 [19:50:31]line НСП 1% : 4.43 [19:50:31]line НДС 12% : 53.14 [19:50:31]line Наличными: 500.00 [19:50:31]line Безнал.: 0.00 [19:50:31]line Место: АЗС № 94 "Партнер Нефть" [19:50:31]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [19:50:31]line СНО: Общий режим [19:50:31]line Чек 457 18.08.2024 19:50 [19:50:31]line Смена: 449 ФФД: 1.0 [19:50:31]line ЗНМ: 0300000099 [19:50:31]line РНМ: 0000000000091865 [19:50:31]line Версия ККМ: 001 [19:50:31]line ФМ: 0000000000871820 [19:50:31]line ФД: 260899 [19:50:31]line ФПД: 38144350742835 [19:50:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T195036&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260899&fm=38144350742835&tin=02508201610067®Number=0000000000091865&sum=50000 [19:50:31]OFD Sender: Processing packet 260899 [packets to send 192, broken 191] [19:50:31]ProducePacketName [19:50:31]name=ofd_packets/00260899 [19:50:31]OFD Sender: To server: pG, [19:50:31]CommunicateWithHost lk.salyk.kg:30040 [19:50:31]ConnectInit lk.salyk.kg [19:50:31]written 0, free lines is 4095 [19:50:31]Connected sock=10 [19:50: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 30 0F 01 00 00 87 F8 07 01 64 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 C9 01 00 00 F4 03 04 00 8C 50 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 23 FB 03 00 35 04 06 00 22 B1 2C 79 E9 33 53 6E D7 8C A9 97 9D 2C [19:50: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 30 4F 00 00 00 80 FF 47 00 FF 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 30 10 04 04 00 23 FB 03 00 F4 03 04 00 E0 F9 C1 66 B6 04 01 00 00 12 E8 64 6F EB 51 4B 98 [19:50:31]CommunicateWithHost err = 0 [19:50:31]CheckOFDResponse [19:50:31]1017 (14) - 77093643461234 [19:50:31]1041 (16) - 0000000000871820 [19:50:31]1040 (4) - 260899 [19:50:31]1012 (4) - 18.08.2024 13:40 [19:50:31]1206 (1) - 0 [19:50:31]OFD Sender: Remove packet 260899 [19:50:31]ProducePacketName [19:50:31]name=ofd_packets/00260899 [19:50:31]NVStorageDeleteData [19:50:31]Write to MH i2c: 01 00 00 72 C0 32 [19:50:31]Write i2c OK [19:50:31]MH_I2C_Read... [19:50:31]Read from MH i2c: 01 [19:50:31]MH_I2C_Read... [19:50:31]Read from MH i2c: 01 07 00 [19:50:31]MH_I2C_Read... [19:50:31]Read from MH i2c: 01 07 00 72 C0 00 00 00 00 00 75 0C BA [19:50:31]RasterBufferAndPrint [19:50:31]line [19:50:31]line [19:50:31]line [19:50:31]line [19:50:31]line [19:50:31]written 0, free lines is 3192 [19:50:31]MH_Cut [19:50:31]Write to MH i2c: D1 01 00 79 C0 01 0B [19:50:31]Write i2c OK [19:50:31]MH_I2C_Read... [19:50:31]Read from MH i2c: D1 [19:50:31]MH_I2C_Read... [19:50:31]Read from MH i2c: D1 01 00 [19:50:31]MH_I2C_Read... [19:50:31]Read from MH i2c: D1 01 00 79 C0 00 0A [19:50:31]Write to MH i2c: 01 00 00 7A C0 3A [19:50:31]Write i2c OK [19:50:31]MH_I2C_Read... [19:50:32]OFD Sender: No OFD packet to send [19:50:32]*** Cut start [19:50:32]*** Purtial cut [19:50:32]*** Stage 1: CUTSNS_PIN = 1 [19:50:34]Read from MH i2c: 01 [19:50:35]MH_I2C_Read... [19:50:35]*** Stop cut motor [19:50:35]*** Cut end [19:50:35]Read from MH i2c: 01 07 00 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: 01 07 00 7A C0 00 00 00 00 00 FF 0F 4F [19:50:35]process_action close_receipt done [19:50:35]requested_data is exist [19:50:35]produce_requested_data [19:50:35]requested_item fm.sn is exist - process it [19:50:35]wFMCommunicate request_size=4 [19:50:35]MH_SAM_APDU [19:50:35]CAPDU: 80 11 00 00 [19:50:35]Write to MH i2c: E2 08 00 7B C0 80 11 00 00 00 00 00 00 B5 [19:50:35]Write i2c OK [19:50:35]MH_I2C_Read... [19:50:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:35]Read from MH i2c: E2 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 17 00 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 17 00 7B C0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 02 [19:50:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:50:35]wFMCommunicate OK [19:50:35]requested_item fd.num is exist - process it [19:50:35]SAM_PROTO_GetFieldsCounters [19:50:35]wFMCommunicate request_size=4 [19:50:35]MH_SAM_APDU [19:50:35]CAPDU: 80 13 00 00 [19:50:35]Write to MH i2c: E2 08 00 7C C0 80 13 00 00 00 00 00 00 B8 [19:50:35]Write i2c OK [19:50:35]MH_I2C_Read... [19:50:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:50:35]Read from MH i2c: E2 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 62 00 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 62 00 7C C0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 23 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C9 01 00 00 5E 04 04 00 C9 01 00 00 57 04 04 00 CA 01 00 00 19 04 04 00 00 00 00 00 90 00 18 [19:50: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 23 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 C9 01 00 00 5E 04 04 00 C9 01 00 00 57 04 04 00 CA 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:50:35]wFMCommunicate OK [19:50:35]SAM_PROTO_GetFieldsCounters done [19:50:35]requested_item shift.num is exist - process it [19:50:35]requested_item shift.opened is exist - process it [19:50:35]req_shift_opened [19:50:35]FM_GetShiftState [19:50:35]SAM_PROTO_GetShiftState [19:50:35]wFMCommunicate request_size=4 [19:50:35]MH_SAM_APDU [19:50:35]CAPDU: 80 13 01 00 [19:50:35]Write to MH i2c: E2 08 00 7D C0 80 13 01 00 00 00 00 00 BA [19:50:35]Write i2c OK [19:50:35]MH_I2C_Read... [19:50:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:35]Read from MH i2c: E2 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 0E 00 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 0E 00 7D C0 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F7 [19:50:35]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:50:35]wFMCommunicate OK [19:50:35]SAM_PROTO_GetShiftState done [19:50:35]FM_GetShiftState done [19:50:35]req_shift_opened done [19:50:35]requested_item shift.open_date is exist - process it [19:50:35]req_shift_open_date [19:50:35]req_shift_open_date done [19:50:35]produce_requested_data done [19:50:35]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260899,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [19:50:35]process_action_free close_receipt [19:50:35]json_value_free [19:50:35]json_value_free done [19:50:35]process_json_proto returns [19:50:35]Send response to host [19:50:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260899,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [19:50:35]free response buf [19:50:35]execute_script done [19:50:35]execute_script returns [19:50:35]free content buf [19:50:35]Sock 9.Close socket [19:50:35]Sock 9.Thread stoped [19:50:37]OFD Sender: No OFD packet to send [19:50:42]OFD Sender: No OFD packet to send [19:50:47]OFD Sender: No OFD packet to send [19:50:52]OFD Sender: No OFD packet to send [19:50:57]OFD Sender: No OFD packet to send [19:51:02]OFD Sender: No OFD packet to send [19:51:07]OFD Sender: No OFD packet to send [19:51:12]OFD Sender: No OFD packet to send [19:51:17]OFD Sender: No OFD packet to send [19:51:22]OFD Sender: No OFD packet to send [19:51:27]OFD Sender: No OFD packet to send [19:51:32]OFD Sender: No OFD packet to send [19:51:37]OFD Sender: No OFD packet to send [19:51:42]OFD Sender: No OFD packet to send [19:51:47]OFD Sender: No OFD packet to send [19:51:52]OFD Sender: No OFD packet to send [19:51:57]OFD Sender: No OFD packet to send [19:52:02]OFD Sender: No OFD packet to send [19:52:07]OFD Sender: No OFD packet to send [19:52:12]OFD Sender: No OFD packet to send [19:52:17]OFD Sender: No OFD packet to send [19:52:22]OFD Sender: No OFD packet to send [19:52:27]OFD Sender: No OFD packet to send [19:52:32]OFD Sender: No OFD packet to send [19:52:37]OFD Sender: No OFD packet to send [19:52:42]OFD Sender: No OFD packet to send [19:52:47]OFD Sender: No OFD packet to send [19:52:52]OFD Sender: No OFD packet to send [19:52:57]OFD Sender: No OFD packet to send [19:53:02]OFD Sender: No OFD packet to send [19:53:07]OFD Sender: No OFD packet to send [19:53:12]OFD Sender: No OFD packet to send [19:53:17]OFD Sender: No OFD packet to send [19:53:22]OFD Sender: No OFD packet to send [19:53:27]OFD Sender: No OFD packet to send [19:53:32]OFD Sender: No OFD packet to send [19:53:37]OFD Sender: No OFD packet to send [19:53:42]OFD Sender: No OFD packet to send [19:53:47]OFD Sender: No OFD packet to send [19:53:52]OFD Sender: No OFD packet to send [19:53:57]OFD Sender: No OFD packet to send [19:54:02]OFD Sender: No OFD packet to send [19:54:07]OFD Sender: No OFD packet to send [19:54:12]OFD Sender: No OFD packet to send [19:54:17]OFD Sender: No OFD packet to send [19:54:22]OFD Sender: No OFD packet to send [19:54:23]accept exits with 7 [19:54:23]New connection [19:54:23]New thread 3066473828 created [19:54:23]Thread 3066617188 joined [19:54:23]Waiting for new connection... [19:54:23] Sock 7.Parse request [19:54:23]Sock 7.Check first char [19:54:23]Sock 7.First char is OK [19:54:23]request: POST /json_proto HTTP/1.0 [19:54:23]Method: POST [19:54:23]URL: /json_proto [19:54:23]Method is POST - this is cgi request [19:54:23]url: /json_proto [19:54:23]query_string will be loaded in cgi processing [19:54:23]execute_cgi json_proto POST (null) [19:54:23]execute_cgi path=json_proto method=POST [19:54:23]POST find Content-Length [19:54:23]Host: 172.17.55.133:8080 [19:54:23]Content-Length: 678 [19:54:23]Content-Type: application/json [19:54:23] [19:54:23]POST finish read [19:54:23]Found Content-Length = 678 [19:54:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 6.640, "sum" : 450.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:23]execute_script... [19:54: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)1036452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 6.640, "sum" : 450.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:23]POST & json_proto [19:54:23]process_json_proto [19:54:23]json parsed OK: [19:54:23]protocol is kg_v1.0 [19:54:23]action value=close_receipt [19:54:23]process_action close_receipt [19:54:23]cmd_close_receipt [19:54:23]MH_GetDate [19:54:23]Write to MH i2c: F0 00 00 7E C0 2D [19:54:23]Write i2c OK [19:54:23]MH_I2C_Read... [19:54:23]Read from MH i2c: F0 [19:54:23]MH_I2C_Read... [19:54:23]Read from MH i2c: F0 09 00 [19:54:23]MH_I2C_Read... [19:54:23]Read from MH i2c: F0 09 00 7E C0 00 76 51 C2 66 34 48 D8 65 DE [19:54:23]GetLastDocTimeStamp 1724010636 [19:54:23]current date 1724010870 [19:54:23]FM_GetShiftState [19:54:23]SAM_PROTO_GetShiftState [19:54:23]wFMCommunicate request_size=4 [19:54:23]MH_SAM_APDU [19:54:23]CAPDU: 80 13 01 00 [19:54:23]Write to MH i2c: E2 08 00 7F C0 80 13 01 00 00 00 00 00 BC [19:54:23]Write i2c OK [19:54:23]MH_I2C_Read... [19:54:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:23]Read from MH i2c: E2 [19:54:23]MH_I2C_Read... [19:54:23]Read from MH i2c: E2 0E 00 [19:54:23]MH_I2C_Read... [19:54:23]Read from MH i2c: E2 0E 00 7F C0 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F9 [19:54:23]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:54:23]wFMCommunicate OK [19:54:23]SAM_PROTO_GetShiftState done [19:54:23]FM_GetShiftState done [19:54:23]opened in 1723940556 [19:54:23]opened+sec_in_day 1724026956 [19:54:23]quantity*price = 45019 [19:54:23]sum+1 = 45020 [19:54:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 458 18.08.2024 19:54 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260900 ФПД: 91860121699839 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T195430&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260900&fm=91860121699839&tin=02508201610067®Number=0000000000091865&sum=45000 [19:54:24]StoreToDocumentArchive [19:54:24]shift 449 fd 260900 [19:54:24]save to /storage/0449/doc_00260900 [19:54:24]save last doc name /storage/0449/doc_00260900 to /storage/kkm_last_doc_name [19:54:24]save OK [19:54:24]Clear old archive folders... [19:54:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:54:24]tlvbuf is 00540500 [19:54:24]SAM_PROTO_ClearQueue [19:54:24]wFMCommunicate request_size=4 [19:54:24]MH_SAM_APDU [19:54:24]CAPDU: 80 09 00 00 [19:54:24]Write to MH i2c: E2 08 00 8C C0 80 09 00 00 00 00 00 00 BE [19:54:24]Write i2c OK [19:54:24]MH_I2C_Read... [19:54:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:54:24]Read from MH i2c: E2 [19:54:24]MH_I2C_Read... [19:54:24]Read from MH i2c: E2 03 00 [19:54:24]MH_I2C_Read... [19:54:24]Read from MH i2c: E2 03 00 8C C0 00 90 00 C0 [19:54:24]RAPDU: 90 00 [19:54:24]wFMCommunicate OK [19:54:24]SAM_PROTO_ClearQueue done [19:54:24]KKMCreateOFDPacket [19:54:24]OFDProtocolAddRootSTLVToBuf [19:54:24]FM_MakeSignedData [19:54:24]FM_MakeSignedData [19:54:24]SAM_PROTO_SignData [19:54:24]wFMCommunicate request_size=4 [19:54:24]MH_SAM_APDU [19:54:24]CAPDU: 80 0D 01 02 [19:54:24]Write to MH i2c: E2 08 00 8D C0 80 0D 01 02 00 00 00 00 C6 [19:54:24]Write i2c OK [19:54:24]MH_I2C_Read... [19:54:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:54:25]Read from MH i2c: E2 [19:54:25]MH_I2C_Read... [19:54:25]Read from MH i2c: E2 03 00 [19:54:25]MH_I2C_Read... [19:54:25]Read from MH i2c: E2 03 00 8D C0 00 90 00 C1 [19:54:25]RAPDU: 90 00 [19:54:25]wFMCommunicate OK [19:54:25]wFMCommunicate request_size=255 [19:54:25]MH_SAM_APDU [19:54:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DB 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 AD 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 CA 01 00 00 F4 03 04 00 76 51 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 24 FB 03 00 35 04 06 00 53 [19:54:25]Write to MH i2c: E2 02 01 8E C0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DB 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 AD 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 CA 01 00 00 F4 03 04 00 76 51 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 24 FB 03 00 35 04 06 00 53 00 00 24 [19:54:25]Write i2c OK [19:54:25]MH_I2C_Read... [19:54:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:25]Read from MH i2c: E2 [19:54:25]MH_I2C_Read... [19:54:25]Read from MH i2c: E2 03 00 [19:54:25]MH_I2C_Read... [19:54:25]Read from MH i2c: E2 03 00 8E C0 00 90 00 C2 [19:54:25]RAPDU: 90 00 [19:54:25]wFMCommunicate OK [19:54:25]wFMCommunicate request_size=10 [19:54:25]MH_SAM_APDU [19:54:25]CAPDU: 80 0D 02 02 05 8B D9 EC 45 FF [19:54:25]Write to MH i2c: E2 0D 00 8F C0 80 0D 02 02 05 00 8B D9 EC 45 FF 00 00 67 [19:54:25]Write i2c OK [19:54:25]MH_I2C_Read... [19:54:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:25]Read from MH i2c: E2 [19:54:25]MH_I2C_Read... [19:54:25]Read from MH i2c: E2 03 00 [19:54:25]MH_I2C_Read... [19:54:25]Read from MH i2c: E2 03 00 8F C0 00 90 00 C3 [19:54:25]RAPDU: 90 00 [19:54:25]wFMCommunicate OK [19:54:25]wFMCommunicate request_size=4 [19:54:25]MH_SAM_APDU [19:54:25]CAPDU: 80 0D 03 02 [19:54:25]Write to MH i2c: E2 08 00 90 C0 80 0D 03 02 00 00 00 00 CB [19:54:25]Write i2c OK [19:54:25]MH_I2C_Read... [19:54:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:54:25]Read from MH i2c: E2 [19:54:25]MH_I2C_Read... [19:54:25]Read from MH i2c: E2 0B 00 [19:54:25]MH_I2C_Read... [19:54:25]Read from MH i2c: E2 0B 00 90 C0 00 62 71 2A EF A2 82 75 74 90 00 C5 [19:54:25]RAPDU: 62 71 2A EF A2 82 75 74 90 00 [19:54:25]wFMCommunicate OK [19:54:25]SAM_PROTO_SignData done [19:54:25]FM_MakeSignedData done [19:54:25]CreateOFDProtocolMessage [19:54:25]wFMCommunicate request_size=4 [19:54:25]MH_SAM_APDU [19:54:25]CAPDU: 80 11 00 00 [19:54:25]Write to MH i2c: E2 08 00 91 C0 80 11 00 00 00 00 00 00 CB [19:54:25]Write i2c OK [19:54:25]MH_I2C_Read... [19:54:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:25]Read from MH i2c: E2 [19:54:25]MH_I2C_Read... [19:54:25]Read from MH i2c: E2 17 00 [19:54:25]MH_I2C_Read... [19:54:25]Read from MH i2c: E2 17 00 91 C0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 18 [19:54:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:54:25]wFMCommunicate OK [19:54:25]CreateOFDProtocolMessage done [19:54:25]OFDSenderStorePacket 260900 [19:54:25]StoreOFDPacket docnum=260900 [19:54:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 CD 78 07 01 6E 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DB 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 AD 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 CA 01 00 00 F4 03 04 00 76 51 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 24 FB 03 00 35 04 06 00 53 8B D9 EC 45 FF 62 71 2A EF A2 82 75 74 [19:54:25]CheckFolder [19:54:25]dirname=/storage/ofd_packets [19:54:25]CheckFolder done [19:54:25]ProducePacketName [19:54:25]name=ofd_packets/00260900 [19:54:25]NVStorageSaveData ofd_packets/00260900 [19:54:25]File name is /storage/ofd_packets/00260900 [19:54:25]Write 301 bytes [19:54:25]NVStorageSaveData done [19:54:25]OFDSenderStorePacket done [19:54:25]KKMCreateOFDPacket done [19:54:25]NVStorageSaveData kkm_last_timestamp [19:54:25]File name is /storage/kkm_last_timestamp [19:54:25]Write 4 bytes [19:54:25]NVStorageSaveData done [19:54:25]ExternCall_PrintAddStr [19:54:25]wPrintStart [19:54:25]Write to MH i2c: 01 00 00 92 C0 52 [19:54:25]Write i2c OK [19:54:25]MH_I2C_Read... [19:54:25]Read from MH i2c: 01 [19:54:25]MH_I2C_Read... [19:54:25]Read from MH i2c: 01 07 00 [19:54:25]MH_I2C_Read... [19:54:25]Read from MH i2c: 01 07 00 92 C0 00 00 00 00 00 FF 0F 67 [19:54:25]RasterBufferAndPrint [19:54:25]line Счет N : (1)1036452 [19:54:25]line ИНН: 02508201610067 [19:54:25]line Контрольно-Кассовый Чек [19:54:25]line ПРОДАЖА [19:54:25]line ТРК (МРК, ГНК) : 12 [19:54:25]line Товар: 2710124130 [19:54:25]line Аи-92-К-5 [19:54:25]line 6.640 * 67.80 [19:54:25]line = 450.19 [19:54:25]line НДС 12% НСП 1% [19:54:25]line > о реализуемом товаре [19:54:25]line ОКРУГЛЕНИЕ: -0.19 [19:54:25]line ИТОГО: 450.00 [19:54:25]line Внесено: 450.00 [19:54:25]line СДАЧА: 0.00 [19:54:25]line НСП 1% : 3.98 [19:54:25]line НДС 12% : 47.81 [19:54:25]line Наличными: 450.00 [19:54:25]line Безнал.: 0.00 [19:54:25]line Место: АЗС № 94 "Партнер Нефть" [19:54:25]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [19:54:25]line СНО: Общий режим [19:54:25]line Чек 458 18.08.2024 19:54 [19:54:25]line Смена: 449 ФФД: 1.0 [19:54:25]line ЗНМ: 0300000099 [19:54:25]line РНМ: 0000000000091865 [19:54:25]line Версия ККМ: 001 [19:54:25]line ФМ: 0000000000871820 [19:54:25]line ФД: 260900 [19:54:25]line ФПД: 91860121699839 [19:54:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T195430&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260900&fm=91860121699839&tin=02508201610067®Number=0000000000091865&sum=45000 [19:54:25]written 0, free lines is 4095 [19:54:25]OFD Sender: Processing packet 260900 [packets to send 192, broken 191] [19:54:25]ProducePacketName [19:54:25]name=ofd_packets/00260900 [19:54:25]OFD Sender: To server: pG, [19:54:25]CommunicateWithHost lk.salyk.kg:30040 [19:54:25]ConnectInit lk.salyk.kg [19:54:25]Connected sock=10 [19:54: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 30 0F 01 00 00 CD 78 07 01 6E 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DB 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 AD 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 CA 01 00 00 F4 03 04 00 76 51 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 24 FB 03 00 35 04 06 00 53 8B D9 EC 45 FF 62 71 2A EF A2 82 75 74 [19:54: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 30 4F 00 00 00 56 80 47 00 0B 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 24 FB 03 00 F4 03 04 00 CA FA C1 66 B6 04 01 00 00 C4 BF B6 FB BF D7 36 21 [19:54:25]CommunicateWithHost err = 0 [19:54:25]CheckOFDResponse [19:54:25]1017 (14) - 77093643461234 [19:54:25]1041 (16) - 0000000000871820 [19:54:25]1040 (4) - 260900 [19:54:25]1012 (4) - 18.08.2024 13:44 [19:54:25]1206 (1) - 0 [19:54:25]OFD Sender: Remove packet 260900 [19:54:25]ProducePacketName [19:54:25]name=ofd_packets/00260900 [19:54:25]NVStorageDeleteData [19:54:25]Write to MH i2c: 01 00 00 BD C0 7D [19:54:25]Write i2c OK [19:54:25]MH_I2C_Read... [19:54:25]Read from MH i2c: 01 [19:54:25]MH_I2C_Read... [19:54:25]Read from MH i2c: 01 07 00 [19:54:25]MH_I2C_Read... [19:54:25]Read from MH i2c: 01 07 00 BD C0 00 00 00 00 00 78 0C 08 [19:54:25]RasterBufferAndPrint [19:54:25]line [19:54:25]line [19:54:25]line [19:54:25]line [19:54:25]line [19:54:25]written 0, free lines is 3196 [19:54:25]MH_Cut [19:54:25]Write to MH i2c: D1 01 00 C4 C0 01 56 [19:54:25]Write i2c OK [19:54:25]MH_I2C_Read... [19:54:25]Read from MH i2c: D1 [19:54:25]MH_I2C_Read... [19:54:25]Read from MH i2c: D1 01 00 [19:54:25]MH_I2C_Read... [19:54:25]Read from MH i2c: D1 01 00 C4 C0 00 55 [19:54:25]Write to MH i2c: 01 00 00 C5 C0 85 [19:54:25]Write i2c OK [19:54:25]MH_I2C_Read... [19:54:26]OFD Sender: No OFD packet to send [19:54:27]*** Cut start [19:54:27]*** Purtial cut [19:54:27]*** Stage 1: CUTSNS_PIN = 1 [19:54:29]Read from MH i2c: 01 [19:54:29]MH_I2C_Read... [19:54:29]*** Stop cut motor [19:54:29]*** Cut end [19:54:29]Read from MH i2c: 01 07 00 [19:54:29]MH_I2C_Read... [19:54:29]Read from MH i2c: 01 07 00 C5 C0 00 00 00 00 00 FF 0F 9A [19:54:29]process_action close_receipt done [19:54:29]requested_data is exist [19:54:29]produce_requested_data [19:54:29]requested_item fm.sn is exist - process it [19:54:29]wFMCommunicate request_size=4 [19:54:29]MH_SAM_APDU [19:54:29]CAPDU: 80 11 00 00 [19:54:29]Write to MH i2c: E2 08 00 C6 C0 80 11 00 00 00 00 00 00 00 [19:54:29]Write i2c OK [19:54:29]MH_I2C_Read... [19:54:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:29]Read from MH i2c: E2 [19:54:29]MH_I2C_Read... [19:54:29]Read from MH i2c: E2 17 00 [19:54:29]MH_I2C_Read... [19:54:29]Read from MH i2c: E2 17 00 C6 C0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 4D [19:54:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:54:29]wFMCommunicate OK [19:54:29]requested_item fd.num is exist - process it [19:54:29]SAM_PROTO_GetFieldsCounters [19:54:29]wFMCommunicate request_size=4 [19:54:29]MH_SAM_APDU [19:54:29]CAPDU: 80 13 00 00 [19:54:29]Write to MH i2c: E2 08 00 C7 C0 80 13 00 00 00 00 00 00 03 [19:54:29]Write i2c OK [19:54:29]MH_I2C_Read... [19:54:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:54:29]Read from MH i2c: E2 [19:54:29]MH_I2C_Read... [19:54:29]Read from MH i2c: E2 62 00 [19:54:29]MH_I2C_Read... [19:54:29]Read from MH i2c: E2 62 00 C7 C0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 24 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 CA 01 00 00 5E 04 04 00 CA 01 00 00 57 04 04 00 CB 01 00 00 19 04 04 00 00 00 00 00 90 00 67 [19:54: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 24 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 CA 01 00 00 5E 04 04 00 CA 01 00 00 57 04 04 00 CB 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:54:29]wFMCommunicate OK [19:54:29]SAM_PROTO_GetFieldsCounters done [19:54:29]requested_item shift.num is exist - process it [19:54:29]requested_item shift.opened is exist - process it [19:54:29]req_shift_opened [19:54:29]FM_GetShiftState [19:54:29]SAM_PROTO_GetShiftState [19:54:29]wFMCommunicate request_size=4 [19:54:29]MH_SAM_APDU [19:54:29]CAPDU: 80 13 01 00 [19:54:29]Write to MH i2c: E2 08 00 C8 C0 80 13 01 00 00 00 00 00 05 [19:54:29]Write i2c OK [19:54:29]MH_I2C_Read... [19:54:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:29]Read from MH i2c: E2 [19:54:29]MH_I2C_Read... [19:54:29]Read from MH i2c: E2 0E 00 [19:54:29]MH_I2C_Read... [19:54:29]Read from MH i2c: E2 0E 00 C8 C0 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 42 [19:54:29]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:54:29]wFMCommunicate OK [19:54:29]SAM_PROTO_GetShiftState done [19:54:29]FM_GetShiftState done [19:54:29]req_shift_opened done [19:54:29]requested_item shift.open_date is exist - process it [19:54:29]req_shift_open_date [19:54:29]req_shift_open_date done [19:54:29]produce_requested_data done [19:54:29]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260900,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [19:54:29]process_action_free close_receipt [19:54:29]json_value_free [19:54:29]json_value_free done [19:54:29]process_json_proto returns [19:54:29]Send response to host [19:54:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260900,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [19:54:29]free response buf [19:54:29]execute_script done [19:54:29]execute_script returns [19:54:29]free content buf [19:54:29]Sock 7.Close socket [19:54:29]Sock 7.Thread stoped [19:54:31]OFD Sender: No OFD packet to send [19:54:36]OFD Sender: No OFD packet to send [19:54:41]OFD Sender: No OFD packet to send [19:54:46]OFD Sender: No OFD packet to send [19:54:51]OFD Sender: No OFD packet to send [19:54:56]OFD Sender: No OFD packet to send [19:55:01]OFD Sender: No OFD packet to send [19:55:06]OFD Sender: No OFD packet to send [19:55:11]OFD Sender: No OFD packet to send [19:55:16]OFD Sender: No OFD packet to send [19:55:21]OFD Sender: No OFD packet to send [19:55:26]OFD Sender: No OFD packet to send [19:55:31]OFD Sender: No OFD packet to send [19:55:36]OFD Sender: No OFD packet to send [19:55:41]OFD Sender: No OFD packet to send [19:55:46]OFD Sender: No OFD packet to send [19:55:46]accept exits with 9 [19:55:46]New connection [19:55:46]New thread 3066617188 created [19:55:46]Thread 3066473828 joined [19:55:46]Waiting for new connection... [19:55:46] Sock 9.Parse request [19:55:46]Sock 9.Check first char [19:55:46]Sock 9.First char is OK [19:55:46]request: POST /json_proto HTTP/1.0 [19:55:46]Method: POST [19:55:46]URL: /json_proto [19:55:46]Method is POST - this is cgi request [19:55:46]url: /json_proto [19:55:46]query_string will be loaded in cgi processing [19:55:46]execute_cgi json_proto POST (null) [19:55:46]execute_cgi path=json_proto method=POST [19:55:46]POST find Content-Length [19:55:46]Host: 172.17.55.133:8080 [19:55:46]Content-Length: 678 [19:55:46]Content-Type: application/json [19:55:46] [19:55:46]POST finish read [19:55:46]Found Content-Length = 678 [19:55:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036453", "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" : 74.20, "quantity" : 5.670, "sum" : 420.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:46]execute_script... [19:55: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)1036453", "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" : 74.20, "quantity" : 5.670, "sum" : 420.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:46]POST & json_proto [19:55:46]process_json_proto [19:55:46]json parsed OK: [19:55:46]protocol is kg_v1.0 [19:55:46]action value=close_receipt [19:55:46]process_action close_receipt [19:55:46]cmd_close_receipt [19:55:46]MH_GetDate [19:55:46]Write to MH i2c: F0 00 00 C9 C0 78 [19:55:46]Write i2c OK [19:55:46]MH_I2C_Read... [19:55:46]Read from MH i2c: F0 [19:55:46]MH_I2C_Read... [19:55:46]Read from MH i2c: F0 09 00 [19:55:46]MH_I2C_Read... [19:55:46]Read from MH i2c: F0 09 00 C9 C0 00 C9 51 C2 66 34 48 D8 65 7C [19:55:46]GetLastDocTimeStamp 1724010870 [19:55:46]current date 1724010953 [19:55:46]FM_GetShiftState [19:55:46]SAM_PROTO_GetShiftState [19:55:46]wFMCommunicate request_size=4 [19:55:46]MH_SAM_APDU [19:55:46]CAPDU: 80 13 01 00 [19:55:46]Write to MH i2c: E2 08 00 CA C0 80 13 01 00 00 00 00 00 07 [19:55:46]Write i2c OK [19:55:46]MH_I2C_Read... [19:55:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:46]Read from MH i2c: E2 [19:55:46]MH_I2C_Read... [19:55:46]Read from MH i2c: E2 0E 00 [19:55:46]MH_I2C_Read... [19:55:46]Read from MH i2c: E2 0E 00 CA C0 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 44 [19:55:46]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:55:46]wFMCommunicate OK [19:55:46]SAM_PROTO_GetShiftState done [19:55:46]FM_GetShiftState done [19:55:46]opened in 1723940556 [19:55:46]opened+sec_in_day 1724026956 [19:55:46]quantity*price = 42071 [19:55:46]sum+1 = 42072 [19:55:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 420.00 Внесено: 420.00 СДАЧА: 0.00 НСП 1% : 3.72 НДС 12% : 44.68 Наличными: 420.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 459 18.08.2024 19:55 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260901 ФПД: 16430631255589 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T195553&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260901&fm=16430631255589&tin=02508201610067®Number=0000000000091865&sum=42000 [19:55:47]StoreToDocumentArchive [19:55:47]shift 449 fd 260901 [19:55:47]save to /storage/0449/doc_00260901 [19:55:47]save last doc name /storage/0449/doc_00260901 to /storage/kkm_last_doc_name [19:55:47]save OK [19:55:47]Clear old archive folders... [19:55:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:55:47]tlvbuf is 003858E0 [19:55:47]SAM_PROTO_ClearQueue [19:55:47]wFMCommunicate request_size=4 [19:55:47]MH_SAM_APDU [19:55:47]CAPDU: 80 09 00 00 [19:55:47]Write to MH i2c: E2 08 00 D7 C0 80 09 00 00 00 00 00 00 09 [19:55:47]Write i2c OK [19:55:47]MH_I2C_Read... [19:55:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:55:47]Read from MH i2c: E2 [19:55:47]MH_I2C_Read... [19:55:47]Read from MH i2c: E2 03 00 [19:55:47]MH_I2C_Read... [19:55:47]Read from MH i2c: E2 03 00 D7 C0 00 90 00 0B [19:55:47]RAPDU: 90 00 [19:55:47]wFMCommunicate OK [19:55:47]SAM_PROTO_ClearQueue done [19:55:47]KKMCreateOFDPacket [19:55:47]OFDProtocolAddRootSTLVToBuf [19:55:47]FM_MakeSignedData [19:55:47]FM_MakeSignedData [19:55:47]SAM_PROTO_SignData [19:55:47]wFMCommunicate request_size=4 [19:55:47]MH_SAM_APDU [19:55:47]CAPDU: 80 0D 01 02 [19:55:47]Write to MH i2c: E2 08 00 D8 C0 80 0D 01 02 00 00 00 00 11 [19:55:47]Write i2c OK [19:55:47]MH_I2C_Read... [19:55:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:55:47]Read from MH i2c: E2 [19:55:47]MH_I2C_Read... [19:55:47]Read from MH i2c: E2 03 00 [19:55:47]MH_I2C_Read... [19:55:47]Read from MH i2c: E2 03 00 D8 C0 00 90 00 0C [19:55:47]RAPDU: 90 00 [19:55:47]wFMCommunicate OK [19:55:47]wFMCommunicate request_size=255 [19:55:47]MH_SAM_APDU [19:55:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 16 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 57 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 01 00 00 F4 03 04 00 C9 51 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 25 FB 03 00 35 04 06 00 0E [19:55:47]Write to MH i2c: E2 02 01 D9 C0 80 0D 02 02 FA 00 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 26 16 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 57 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 01 00 00 F4 03 04 00 C9 51 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 25 FB 03 00 35 04 06 00 0E 00 00 CF [19:55:47]Write i2c OK [19:55:47]MH_I2C_Read... [19:55:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:48]Read from MH i2c: E2 [19:55:48]MH_I2C_Read... [19:55:48]Read from MH i2c: E2 03 00 [19:55:48]MH_I2C_Read... [19:55:48]Read from MH i2c: E2 03 00 D9 C0 00 90 00 0D [19:55:48]RAPDU: 90 00 [19:55:48]wFMCommunicate OK [19:55:48]wFMCommunicate request_size=10 [19:55:48]MH_SAM_APDU [19:55:48]CAPDU: 80 0D 02 02 05 F1 8D F0 7E 25 [19:55:48]Write to MH i2c: E2 0D 00 DA C0 80 0D 02 02 05 00 F1 8D F0 7E 25 00 00 2F [19:55:48]Write i2c OK [19:55:48]MH_I2C_Read... [19:55:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:48]Read from MH i2c: E2 [19:55:48]MH_I2C_Read... [19:55:48]Read from MH i2c: E2 03 00 [19:55:48]MH_I2C_Read... [19:55:48]Read from MH i2c: E2 03 00 DA C0 00 90 00 0E [19:55:48]RAPDU: 90 00 [19:55:48]wFMCommunicate OK [19:55:48]wFMCommunicate request_size=4 [19:55:48]MH_SAM_APDU [19:55:48]CAPDU: 80 0D 03 02 [19:55:48]Write to MH i2c: E2 08 00 DB C0 80 0D 03 02 00 00 00 00 16 [19:55:48]Write i2c OK [19:55:48]MH_I2C_Read... [19:55:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:55:48]Read from MH i2c: E2 [19:55:48]MH_I2C_Read... [19:55:48]Read from MH i2c: E2 0B 00 [19:55:48]MH_I2C_Read... [19:55:48]Read from MH i2c: E2 0B 00 DB C0 00 7C 3F AB 2C D5 21 4C 41 90 00 2C [19:55:48]RAPDU: 7C 3F AB 2C D5 21 4C 41 90 00 [19:55:48]wFMCommunicate OK [19:55:48]SAM_PROTO_SignData done [19:55:48]FM_MakeSignedData done [19:55:48]CreateOFDProtocolMessage [19:55:48]wFMCommunicate request_size=4 [19:55:48]MH_SAM_APDU [19:55:48]CAPDU: 80 11 00 00 [19:55:48]Write to MH i2c: E2 08 00 DC C0 80 11 00 00 00 00 00 00 16 [19:55:48]Write i2c OK [19:55:48]MH_I2C_Read... [19:55:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:48]Read from MH i2c: E2 [19:55:48]MH_I2C_Read... [19:55:48]Read from MH i2c: E2 17 00 [19:55:48]MH_I2C_Read... [19:55:48]Read from MH i2c: E2 17 00 DC C0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 63 [19:55:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:55:48]wFMCommunicate OK [19:55:48]CreateOFDProtocolMessage done [19:55:48]OFDSenderStorePacket 260901 [19:55:48]StoreOFDPacket docnum=260901 [19:55:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 EC C6 07 01 CE 9F 5A 03 01 00 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 26 16 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 57 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 01 00 00 F4 03 04 00 C9 51 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 25 FB 03 00 35 04 06 00 0E F1 8D F0 7E 25 7C 3F AB 2C D5 21 4C 41 [19:55:48]CheckFolder [19:55:48]dirname=/storage/ofd_packets [19:55:48]CheckFolder done [19:55:48]ProducePacketName [19:55:48]name=ofd_packets/00260901 [19:55:48]NVStorageSaveData ofd_packets/00260901 [19:55:48]File name is /storage/ofd_packets/00260901 [19:55:48]Write 301 bytes [19:55:48]NVStorageSaveData done [19:55:48]OFDSenderStorePacket done [19:55:48]KKMCreateOFDPacket done [19:55:48]NVStorageSaveData kkm_last_timestamp [19:55:48]File name is /storage/kkm_last_timestamp [19:55:48]Write 4 bytes [19:55:48]NVStorageSaveData done [19:55:48]ExternCall_PrintAddStr [19:55:48]wPrintStart [19:55:48]Write to MH i2c: 01 00 00 DD C0 9D [19:55:48]Write i2c OK [19:55:48]MH_I2C_Read... [19:55:48]Read from MH i2c: 01 [19:55:48]MH_I2C_Read... [19:55:48]Read from MH i2c: 01 07 00 [19:55:48]MH_I2C_Read... [19:55:48]Read from MH i2c: 01 07 00 DD C0 00 00 00 00 00 FF 0F B2 [19:55:48]RasterBufferAndPrint [19:55:48]line Счет N : (1)1036453 [19:55:48]line ИНН: 02508201610067 [19:55:48]line Контрольно-Кассовый Чек [19:55:48]line ПРОДАЖА [19:55:48]line ТРК (МРК, ГНК) : 23 [19:55:48]line Товар: 2710124500 [19:55:48]line Аи-95-К-5 [19:55:48]line 5.670 * 74.20 [19:55:48]line = 420.71 [19:55:48]line НДС 12% НСП 1% [19:55:48]line > о реализуемом товаре [19:55:48]line ОКРУГЛЕНИЕ: -0.71 [19:55:48]line ИТОГО: 420.00 [19:55:48]line Внесено: 420.00 [19:55:48]line СДАЧА: 0.00 [19:55:48]line НСП 1% : 3.72 [19:55:48]line НДС 12% : 44.68 [19:55:48]line Наличными: 420.00 [19:55:48]line Безнал.: 0.00 [19:55:48]line Место: АЗС № 94 "Партнер Нефть" [19:55:48]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [19:55:48]line СНО: Общий режим [19:55:48]line Чек 459 18.08.2024 19:55 [19:55:48]line Смена: 449 ФФД: 1.0 [19:55:48]line ЗНМ: 0300000099 [19:55:48]line РНМ: 0000000000091865 [19:55:48]line Версия ККМ: 001 [19:55:48]line ФМ: 0000000000871820 [19:55:48]line ФД: 260901 [19:55:48]line ФПД: 16430631255589 [19:55:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T195553&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260901&fm=16430631255589&tin=02508201610067®Number=0000000000091865&sum=42000 [19:55:48]OFD Sender: Processing packet 260901 [packets to send 192, broken 191] [19:55:48]ProducePacketName [19:55:48]name=ofd_packets/00260901 [19:55:48]OFD Sender: To server: pG, [19:55:48]CommunicateWithHost lk.salyk.kg:30040 [19:55:48]ConnectInit lk.salyk.kg [19:55:48]written 0, free lines is 4095 [19:55:48]Connected sock=10 [19:55: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 30 0F 01 00 00 EC C6 07 01 CE 9F 5A 03 01 00 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 26 16 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 57 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 01 00 00 F4 03 04 00 C9 51 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 25 FB 03 00 35 04 06 00 0E F1 8D F0 7E 25 7C 3F AB 2C D5 21 4C 41 [19: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 30 4F 00 00 00 F8 03 47 00 2A 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 25 FB 03 00 F4 03 04 00 1D FB C1 66 B6 04 01 00 00 2A 26 9F 86 E2 B4 D2 FE [19:55:49]CommunicateWithHost err = 0 [19:55:49]CheckOFDResponse [19:55:49]1017 (14) - 77093643461234 [19:55:49]1041 (16) - 0000000000871820 [19:55:49]1040 (4) - 260901 [19:55:49]1012 (4) - 18.08.2024 13:46 [19:55:49]1206 (1) - 0 [19:55:49]OFD Sender: Remove packet 260901 [19:55:49]ProducePacketName [19:55:49]name=ofd_packets/00260901 [19:55:49]NVStorageDeleteData [19:55:49]Write to MH i2c: 01 00 00 08 C1 C9 [19:55:49]Write i2c OK [19:55:49]MH_I2C_Read... [19:55:49]Read from MH i2c: 01 [19:55:49]MH_I2C_Read... [19:55:49]Read from MH i2c: 01 07 00 [19:55:49]MH_I2C_Read... [19:55:49]Read from MH i2c: 01 07 00 08 C1 00 00 00 00 00 7D 0C 59 [19:55:49]RasterBufferAndPrint [19:55:49]line [19:55:49]line [19:55:49]line [19:55:49]line [19:55:49]line [19:55:49]written 0, free lines is 3199 [19:55:49]MH_Cut [19:55:49]Write to MH i2c: D1 01 00 0F C1 01 A2 [19:55:49]Write i2c OK [19:55:49]MH_I2C_Read... [19:55:49]Read from MH i2c: D1 [19:55:49]MH_I2C_Read... [19:55:49]Read from MH i2c: D1 01 00 [19:55:49]MH_I2C_Read... [19:55:49]Read from MH i2c: D1 01 00 0F C1 00 A1 [19:55:49]Write to MH i2c: 01 00 00 10 C1 D1 [19:55:49]Write i2c OK [19:55:49]MH_I2C_Read... [19:55:49]OFD Sender: No OFD packet to send [19:55:50]*** Cut start [19:55:50]*** Purtial cut [19:55:50]*** Stage 1: CUTSNS_PIN = 1 [19:55:52]Read from MH i2c: 01 [19:55:52]MH_I2C_Read... [19:55:52]*** Stop cut motor [19:55:52]*** Cut end [19:55:52]Read from MH i2c: 01 07 00 [19:55:52]MH_I2C_Read... [19:55:52]Read from MH i2c: 01 07 00 10 C1 00 00 00 00 00 FF 0F E6 [19:55:52]process_action close_receipt done [19:55:52]requested_data is exist [19:55:52]produce_requested_data [19:55:52]requested_item fm.sn is exist - process it [19:55:52]wFMCommunicate request_size=4 [19:55:52]MH_SAM_APDU [19:55:52]CAPDU: 80 11 00 00 [19:55:52]Write to MH i2c: E2 08 00 11 C1 80 11 00 00 00 00 00 00 4C [19:55:52]Write i2c OK [19:55:52]MH_I2C_Read... [19:55:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:52]Read from MH i2c: E2 [19:55:52]MH_I2C_Read... [19:55:52]Read from MH i2c: E2 17 00 [19:55:52]MH_I2C_Read... [19:55:52]Read from MH i2c: E2 17 00 11 C1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 99 [19:55:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:55:52]wFMCommunicate OK [19:55:52]requested_item fd.num is exist - process it [19:55:52]SAM_PROTO_GetFieldsCounters [19:55:52]wFMCommunicate request_size=4 [19:55:52]MH_SAM_APDU [19:55:52]CAPDU: 80 13 00 00 [19:55:52]Write to MH i2c: E2 08 00 12 C1 80 13 00 00 00 00 00 00 4F [19:55:52]Write i2c OK [19:55:52]MH_I2C_Read... [19:55:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:55:52]Read from MH i2c: E2 [19:55:52]MH_I2C_Read... [19:55:52]Read from MH i2c: E2 62 00 [19:55:52]MH_I2C_Read... [19:55:52]Read from MH i2c: E2 62 00 12 C1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 25 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 CB 01 00 00 5E 04 04 00 CB 01 00 00 57 04 04 00 CC 01 00 00 19 04 04 00 00 00 00 00 90 00 B7 [19:55: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 25 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 CB 01 00 00 5E 04 04 00 CB 01 00 00 57 04 04 00 CC 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:55:52]wFMCommunicate OK [19:55:52]SAM_PROTO_GetFieldsCounters done [19:55:52]requested_item shift.num is exist - process it [19:55:52]requested_item shift.opened is exist - process it [19:55:52]req_shift_opened [19:55:52]FM_GetShiftState [19:55:52]SAM_PROTO_GetShiftState [19:55:52]wFMCommunicate request_size=4 [19:55:52]MH_SAM_APDU [19:55:52]CAPDU: 80 13 01 00 [19:55:52]Write to MH i2c: E2 08 00 13 C1 80 13 01 00 00 00 00 00 51 [19:55:52]Write i2c OK [19:55:52]MH_I2C_Read... [19:55:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:52]Read from MH i2c: E2 [19:55:52]MH_I2C_Read... [19:55:52]Read from MH i2c: E2 0E 00 [19:55:52]MH_I2C_Read... [19:55:52]Read from MH i2c: E2 0E 00 13 C1 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 8E [19:55:52]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:55:52]wFMCommunicate OK [19:55:52]SAM_PROTO_GetShiftState done [19:55:52]FM_GetShiftState done [19:55:52]req_shift_opened done [19:55:52]requested_item shift.open_date is exist - process it [19:55:52]req_shift_open_date [19:55:52]req_shift_open_date done [19:55:52]produce_requested_data done [19:55:52]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260901,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [19:55:52]process_action_free close_receipt [19:55:52]json_value_free [19:55:52]json_value_free done [19:55:52]process_json_proto returns [19:55:52]Send response to host [19:55:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260901,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [19:55:52]free response buf [19:55:52]execute_script done [19:55:52]execute_script returns [19:55:52]free content buf [19:55:52]Sock 9.Close socket [19:55:52]Sock 9.Thread stoped [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:27]accept exits with 7 [19:57:27]New connection [19:57:27]New thread 3066473828 created [19:57:27]Thread 3066617188 joined [19:57:27]Waiting for new connection... [19:57:27] Sock 7.Parse request [19:57:27]Sock 7.Check first char [19:57:27]Sock 7.First char is OK [19:57:27]request: POST /json_proto HTTP/1.0 [19:57:27]Method: POST [19:57:27]URL: /json_proto [19:57:27]Method is POST - this is cgi request [19:57:27]url: /json_proto [19:57:27]query_string will be loaded in cgi processing [19:57:27]execute_cgi json_proto POST (null) [19:57:27]execute_cgi path=json_proto method=POST [19:57:27]POST find Content-Length [19:57:27]Host: 172.17.55.133:8080 [19:57:27]Content-Length: 683 [19:57:27]Content-Type: application/json [19:57:27] [19:57:27]POST finish read [19:57:27]Found Content-Length = 683 [19:57:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036454", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:57:27]execute_script... [19:57: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)1036454", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:57:27]POST & json_proto [19:57:27]process_json_proto [19:57:27]json parsed OK: [19:57:27]protocol is kg_v1.0 [19:57:27]action value=close_receipt [19:57:27]process_action close_receipt [19:57:27]cmd_close_receipt [19:57:27]MH_GetDate [19:57:27]Write to MH i2c: F0 00 00 14 C1 C4 [19:57:27]Write i2c OK [19:57:27]MH_I2C_Read... [19:57:27]Read from MH i2c: F0 [19:57:27]MH_I2C_Read... [19:57:27]Read from MH i2c: F0 09 00 [19:57:27]MH_I2C_Read... [19:57:27]Read from MH i2c: F0 09 00 14 C1 00 2D 52 C2 66 34 48 D8 65 2D [19:57:27]GetLastDocTimeStamp 1724010953 [19:57:27]current date 1724011053 [19:57:27]FM_GetShiftState [19:57:27]SAM_PROTO_GetShiftState [19:57:27]wFMCommunicate request_size=4 [19:57:27]MH_SAM_APDU [19:57:27]CAPDU: 80 13 01 00 [19:57:27]Write to MH i2c: E2 08 00 15 C1 80 13 01 00 00 00 00 00 53 [19:57:27]Write i2c OK [19:57:27]MH_I2C_Read... [19:57:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:27]Read from MH i2c: E2 [19:57:27]MH_I2C_Read... [19:57:27]Read from MH i2c: E2 0E 00 [19:57:27]MH_I2C_Read... [19:57:27]Read from MH i2c: E2 0E 00 15 C1 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 90 [19:57:27]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:57:27]wFMCommunicate OK [19:57:27]SAM_PROTO_GetShiftState done [19:57:27]FM_GetShiftState done [19:57:27]opened in 1723940556 [19:57:27]opened+sec_in_day 1724026956 [19:57:27]quantity*price = 100005 [19:57:27]sum+1 = 100006 [19:57:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 460 18.08.2024 19:57 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260902 ФПД: 205253309513607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T195733&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260902&fm=205253309513607&tin=02508201610067®Number=0000000000091865&sum=100000 [19:57:28]StoreToDocumentArchive [19:57:28]shift 449 fd 260902 [19:57:28]save to /storage/0449/doc_00260902 [19:57:28]save last doc name /storage/0449/doc_00260902 to /storage/kkm_last_doc_name [19:57:28]save OK [19:57:28]Clear old archive folders... [19:57:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:57:28]tlvbuf is 003853F0 [19:57:28]SAM_PROTO_ClearQueue [19:57:28]wFMCommunicate request_size=4 [19:57:28]MH_SAM_APDU [19:57:28]CAPDU: 80 09 00 00 [19:57:28]Write to MH i2c: E2 08 00 22 C1 80 09 00 00 00 00 00 00 55 [19:57:28]Write i2c OK [19:57:28]MH_I2C_Read... [19:57:28]Read from MH i2c: E2 [19:57:28]MH_I2C_Read... [19:57:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:57:28]Read from MH i2c: E2 03 00 [19:57:28]MH_I2C_Read... [19:57:28]Read from MH i2c: E2 03 00 22 C1 00 90 00 57 [19:57:28]RAPDU: 90 00 [19:57:28]wFMCommunicate OK [19:57:28]SAM_PROTO_ClearQueue done [19:57:28]KKMCreateOFDPacket [19:57:28]OFDProtocolAddRootSTLVToBuf [19:57:28]FM_MakeSignedData [19:57:28]FM_MakeSignedData [19:57:28]SAM_PROTO_SignData [19:57:28]wFMCommunicate request_size=4 [19:57:28]MH_SAM_APDU [19:57:28]CAPDU: 80 0D 01 02 [19:57:28]Write to MH i2c: E2 08 00 23 C1 80 0D 01 02 00 00 00 00 5D [19:57:28]Write i2c OK [19:57:28]MH_I2C_Read... [19:57:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:57:28]Read from MH i2c: E2 [19:57:28]MH_I2C_Read... [19:57:28]Read from MH i2c: E2 03 00 [19:57:28]MH_I2C_Read... [19:57:28]Read from MH i2c: E2 03 00 23 C1 00 90 00 58 [19:57:28]RAPDU: 90 00 [19:57:28]wFMCommunicate OK [19:57:28]wFMCommunicate request_size=255 [19:57:28]MH_SAM_APDU [19:57: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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 01 00 00 F4 03 04 00 2D 52 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 26 FB 03 00 35 04 06 00 BA [19:57:28]Write to MH i2c: E2 02 01 24 C1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 01 00 00 F4 03 04 00 2D 52 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 26 FB 03 00 35 04 06 00 BA 00 00 7D [19:57:28]Write i2c OK [19:57:28]MH_I2C_Read... [19:57:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:28]Read from MH i2c: E2 [19:57:28]MH_I2C_Read... [19:57:28]Read from MH i2c: E2 03 00 [19:57:28]MH_I2C_Read... [19:57:28]Read from MH i2c: E2 03 00 24 C1 00 90 00 59 [19:57:28]RAPDU: 90 00 [19:57:28]wFMCommunicate OK [19:57:28]wFMCommunicate request_size=10 [19:57:28]MH_SAM_APDU [19:57:28]CAPDU: 80 0D 02 02 05 AD 42 9A 3F 87 [19:57:28]Write to MH i2c: E2 0D 00 25 C1 80 0D 02 02 05 00 AD 42 9A 3F 87 00 00 B9 [19:57:28]Write i2c OK [19:57:28]MH_I2C_Read... [19:57:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:28]Read from MH i2c: E2 [19:57:28]MH_I2C_Read... [19:57:28]Read from MH i2c: E2 03 00 [19:57:28]MH_I2C_Read... [19:57:28]Read from MH i2c: E2 03 00 25 C1 00 90 00 5A [19:57:28]RAPDU: 90 00 [19:57:28]wFMCommunicate OK [19:57:28]wFMCommunicate request_size=4 [19:57:28]MH_SAM_APDU [19:57:28]CAPDU: 80 0D 03 02 [19:57:28]Write to MH i2c: E2 08 00 26 C1 80 0D 03 02 00 00 00 00 62 [19:57:28]Write i2c OK [19:57:28]MH_I2C_Read... [19:57:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:57:28]Read from MH i2c: E2 [19:57:28]MH_I2C_Read... [19:57:28]Read from MH i2c: E2 0B 00 [19:57:28]MH_I2C_Read... [19:57:28]Read from MH i2c: E2 0B 00 26 C1 00 9D 6B 99 97 5C 2C 08 F3 90 00 1E [19:57:28]RAPDU: 9D 6B 99 97 5C 2C 08 F3 90 00 [19:57:28]wFMCommunicate OK [19:57:28]SAM_PROTO_SignData done [19:57:28]FM_MakeSignedData done [19:57:28]CreateOFDProtocolMessage [19:57:28]wFMCommunicate request_size=4 [19:57:28]MH_SAM_APDU [19:57:28]CAPDU: 80 11 00 00 [19:57:28]Write to MH i2c: E2 08 00 27 C1 80 11 00 00 00 00 00 00 62 [19:57:28]Write i2c OK [19:57:28]MH_I2C_Read... [19:57:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:28]Read from MH i2c: E2 [19:57:28]MH_I2C_Read... [19:57:28]Read from MH i2c: E2 17 00 [19:57:28]MH_I2C_Read... [19:57:28]Read from MH i2c: E2 17 00 27 C1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 AF [19:57:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:57:28]wFMCommunicate OK [19:57:28]CreateOFDProtocolMessage done [19:57:28]OFDSenderStorePacket 260902 [19:57:28]StoreOFDPacket docnum=260902 [19:57:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 27 37 07 01 60 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 01 00 00 F4 03 04 00 2D 52 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 26 FB 03 00 35 04 06 00 BA AD 42 9A 3F 87 9D 6B 99 97 5C 2C 08 F3 [19:57:28]CheckFolder [19:57:28]dirname=/storage/ofd_packets [19:57:28]CheckFolder done [19:57:28]ProducePacketName [19:57:28]name=ofd_packets/00260902 [19:57:28]NVStorageSaveData ofd_packets/00260902 [19:57:28]File name is /storage/ofd_packets/00260902 [19:57:28]Write 301 bytes [19:57:28]NVStorageSaveData done [19:57:28]OFDSenderStorePacket done [19:57:28]KKMCreateOFDPacket done [19:57:28]NVStorageSaveData kkm_last_timestamp [19:57:28]File name is /storage/kkm_last_timestamp [19:57:28]Write 4 bytes [19:57:28]NVStorageSaveData done [19:57:28]ExternCall_PrintAddStr [19:57:28]wPrintStart [19:57:28]Write to MH i2c: 01 00 00 28 C1 E9 [19:57:28]Write i2c OK [19:57:28]MH_I2C_Read... [19:57:28]Read from MH i2c: 01 [19:57:28]MH_I2C_Read... [19:57:28]Read from MH i2c: 01 07 00 [19:57:28]MH_I2C_Read... [19:57:28]Read from MH i2c: 01 07 00 28 C1 00 00 00 00 00 FF 0F FE [19:57:28]RasterBufferAndPrint [19:57:28]line Счет N : (1)1036454 [19:57:28]line ИНН: 02508201610067 [19:57:28]line Контрольно-Кассовый Чек [19:57:28]line ПРОДАЖА [19:57:28]line ТРК (МРК, ГНК) : 12 [19:57:28]line Товар: 2710124130 [19:57:28]line Аи-92-К-5 [19:57:28]line 14.750 * 67.80 [19:57:28]line = 1000.05 [19:57:28]line НДС 12% НСП 1% [19:57:28]line > о реализуемом товаре [19:57:28]line ОКРУГЛЕНИЕ: -0.05 [19:57:28]line ИТОГО: 1000.00 [19:57:28]line Внесено: 1000.00 [19:57:28]line СДАЧА: 0.00 [19:57:28]line НСП 1% : 8.85 [19:57:28]line НДС 12% : 106.20 [19:57:28]line Наличными: 1000.00 [19:57:28]line Безнал.: 0.00 [19:57:28]line Место: АЗС № 94 "Партнер Нефть" [19:57:28]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [19:57:28]line СНО: Общий режим [19:57:28]line Чек 460 18.08.2024 19:57 [19:57:28]line Смена: 449 ФФД: 1.0 [19:57:28]line ЗНМ: 0300000099 [19:57:28]line РНМ: 0000000000091865 [19:57:28]line Версия ККМ: 001 [19:57:28]line ФМ: 0000000000871820 [19:57:28]line ФД: 260902 [19:57:28]line ФПД: 205253309513607 [19:57:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T195733&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260902&fm=205253309513607&tin=02508201610067®Number=0000000000091865&sum=100000 [19:57:29]OFD Sender: Processing packet 260902 [packets to send 192, broken 191] [19:57:29]ProducePacketName [19:57:29]name=ofd_packets/00260902 [19:57:29]OFD Sender: To server: pG, [19:57:29]CommunicateWithHost lk.salyk.kg:30040 [19:57:29]ConnectInit lk.salyk.kg [19:57:29]written 0, free lines is 4095 [19:57:29]Connected sock=10 [19:57: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 30 0F 01 00 00 27 37 07 01 60 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 01 00 00 F4 03 04 00 2D 52 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 26 FB 03 00 35 04 06 00 BA AD 42 9A 3F 87 9D 6B 99 97 5C 2C 08 F3 [19:57: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 30 4F 00 00 00 E1 EC 47 00 F1 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 26 FB 03 00 F4 03 04 00 81 FB C1 66 B6 04 01 00 00 72 46 4D 37 51 6C 83 0E [19:57:29]CommunicateWithHost err = 0 [19:57:29]CheckOFDResponse [19:57:29]1017 (14) - 77093643461234 [19:57:29]1041 (16) - 0000000000871820 [19:57:29]1040 (4) - 260902 [19:57:29]1012 (4) - 18.08.2024 13:47 [19:57:29]1206 (1) - 0 [19:57:29]OFD Sender: Remove packet 260902 [19:57:29]ProducePacketName [19:57:29]name=ofd_packets/00260902 [19:57:29]NVStorageDeleteData [19:57:29]Write to MH i2c: 01 00 00 53 C1 14 [19:57:29]Write i2c OK [19:57:29]MH_I2C_Read... [19:57:29]Read from MH i2c: 01 [19:57:29]MH_I2C_Read... [19:57:29]Read from MH i2c: 01 07 00 [19:57:29]MH_I2C_Read... [19:57:29]Read from MH i2c: 01 07 00 53 C1 00 00 00 00 00 78 0C 9F [19:57:29]RasterBufferAndPrint [19:57:29]line [19:57:29]line [19:57:29]line [19:57:29]line [19:57:29]line [19:57:29]written 0, free lines is 3195 [19:57:29]MH_Cut [19:57:29]Write to MH i2c: D1 01 00 5A C1 01 ED [19:57:29]Write i2c OK [19:57:29]MH_I2C_Read... [19:57:29]Read from MH i2c: D1 [19:57:29]MH_I2C_Read... [19:57:29]Read from MH i2c: D1 01 00 [19:57:29]MH_I2C_Read... [19:57:29]Read from MH i2c: D1 01 00 5A C1 00 EC [19:57:29]Write to MH i2c: 01 00 00 5B C1 1C [19:57:29]Write i2c OK [19:57:29]MH_I2C_Read... [19:57:29]OFD Sender: No OFD packet to send [19:57:30]*** Cut start [19:57:30]*** Purtial cut [19:57:30]*** Stage 1: CUTSNS_PIN = 1 [19:57:32]Read from MH i2c: 01 [19:57:32]MH_I2C_Read... [19:57:32]*** Stop cut motor [19:57:32]*** Cut end [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 5B C1 00 00 00 00 00 FF 0F 31 [19:57:32]process_action close_receipt done [19:57:32]requested_data is exist [19:57:32]produce_requested_data [19:57:32]requested_item fm.sn is exist - process it [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 5C C1 80 11 00 00 00 00 00 00 97 [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 5C C1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E4 [19:57:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [19:57:32]wFMCommunicate OK [19:57:32]requested_item fd.num is exist - process it [19:57:32]SAM_PROTO_GetFieldsCounters [19:57:32]wFMCommunicate request_size=4 [19:57:32]MH_SAM_APDU [19:57:32]CAPDU: 80 13 00 00 [19:57:32]Write to MH i2c: E2 08 00 5D C1 80 13 00 00 00 00 00 00 9A [19:57:32]Write i2c OK [19:57:32]MH_I2C_Read... [19:57:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:57:32]Read from MH i2c: E2 [19:57:32]MH_I2C_Read... [19:57:32]Read from MH i2c: E2 62 00 [19:57:32]MH_I2C_Read... [19:57:32]Read from MH i2c: E2 62 00 5D C1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 26 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 CC 01 00 00 5E 04 04 00 CC 01 00 00 57 04 04 00 CD 01 00 00 19 04 04 00 00 00 00 00 90 00 06 [19:57: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 26 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 CC 01 00 00 5E 04 04 00 CC 01 00 00 57 04 04 00 CD 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:57:32]wFMCommunicate OK [19:57:32]SAM_PROTO_GetFieldsCounters done [19:57:32]requested_item shift.num is exist - process it [19:57:32]requested_item shift.opened is exist - process it [19:57:32]req_shift_opened [19:57:32]FM_GetShiftState [19:57:32]SAM_PROTO_GetShiftState [19:57:32]wFMCommunicate request_size=4 [19:57:32]MH_SAM_APDU [19:57:32]CAPDU: 80 13 01 00 [19:57:32]Write to MH i2c: E2 08 00 5E C1 80 13 01 00 00 00 00 00 9C [19:57:32]Write i2c OK [19:57:32]MH_I2C_Read... [19:57:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:32]Read from MH i2c: E2 [19:57:32]MH_I2C_Read... [19:57:32]Read from MH i2c: E2 0E 00 [19:57:32]MH_I2C_Read... [19:57:32]Read from MH i2c: E2 0E 00 5E C1 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D9 [19:57:32]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [19:57:32]wFMCommunicate OK [19:57:32]SAM_PROTO_GetShiftState done [19:57:32]FM_GetShiftState done [19:57:32]req_shift_opened done [19:57:32]requested_item shift.open_date is exist - process it [19:57:32]req_shift_open_date [19:57:32]req_shift_open_date done [19:57:32]produce_requested_data done [19:57:32]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260902,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [19:57:32]process_action_free close_receipt [19:57:32]json_value_free [19:57:32]json_value_free done [19:57:32]process_json_proto returns [19:57:32]Send response to host [19:57:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260902,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [19:57:32]free response buf [19:57:32]execute_script done [19:57:32]execute_script returns [19:57:32]free content buf [19:57:32]Sock 7.Close socket [19:57:32]Sock 7.Thread stoped [19:57:34]OFD Sender: No OFD packet to send [19:57:39]OFD Sender: No OFD packet to send [19:57:44]OFD Sender: No OFD packet to send [19:57:49]OFD Sender: No OFD packet to send [19:57:54]OFD Sender: No OFD packet to send [19:57:59]OFD Sender: No OFD packet to send [19:58:04]OFD Sender: No OFD packet to send [19:58:09]OFD Sender: No OFD packet to send [19:58:14]OFD Sender: No OFD packet to send [19:58:19]OFD Sender: No OFD packet to send [19:58:24]OFD Sender: No OFD packet to send [19:58:29]OFD Sender: No OFD packet to send [19:58:34]OFD Sender: No OFD packet to send [19:58:39]OFD Sender: No OFD packet to send [19:58:45]OFD Sender: No OFD packet to send [19:58:50]OFD Sender: No OFD packet to send [19:58:55]OFD Sender: No OFD packet to send [19:59:00]OFD Sender: No OFD packet to send [19:59:05]OFD Sender: No OFD packet to send [19:59:10]OFD Sender: No OFD packet to send [19:59:15]OFD Sender: No OFD packet to send [19:59:20]OFD Sender: No OFD packet to send [19:59:25]OFD Sender: No OFD packet to send [19:59:30]OFD Sender: No OFD packet to send [19:59:35]OFD Sender: No OFD packet to send [19:59:40]OFD Sender: No OFD packet to send [19:59:45]OFD Sender: No OFD packet to send [19:59:50]OFD Sender: No OFD packet to send [19:59:55]OFD Sender: No OFD packet to send [20:00:00]OFD Sender: No OFD packet to send [20:00:05]OFD Sender: No OFD packet to send [20:00:10]OFD Sender: No OFD packet to send [20:00:15]OFD Sender: No OFD packet to send [20:00:20]OFD Sender: No OFD packet to send [20:00:23]accept exits with 9 [20:00:23]New connection [20:00:23]New thread 3066617188 created [20:00:23]Thread 3066473828 joined [20:00:23]Waiting for new connection... [20:00:23] Sock 9.Parse request [20:00:23]Sock 9.Check first char [20:00:23]Sock 9.First char is OK [20:00:23]request: POST /json_proto HTTP/1.0 [20:00:23]Method: POST [20:00:23]URL: /json_proto [20:00:23]Method is POST - this is cgi request [20:00:23]url: /json_proto [20:00:23]query_string will be loaded in cgi processing [20:00:23]execute_cgi json_proto POST (null) [20:00:23]execute_cgi path=json_proto method=POST [20:00:23]POST find Content-Length [20:00:23]Host: 172.17.55.133:8080 [20:00:23]Content-Length: 754 [20:00:23]Content-Type: application/json [20:00:23] [20:00:23]POST finish read [20:00:23]Found Content-Length = 754 [20:00:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.750, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30105789", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:23]execute_script... [20:00: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)1036456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.750, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30105789", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:23]POST & json_proto [20:00:23]process_json_proto [20:00:23]json parsed OK: [20:00:23]protocol is kg_v1.0 [20:00:23]action value=close_receipt [20:00:23]process_action close_receipt [20:00:23]cmd_close_receipt [20:00:23]MH_GetDate [20:00:23]Write to MH i2c: F0 00 00 5F C1 0F [20:00:23]Write i2c OK [20:00:23]MH_I2C_Read... [20:00:23]Read from MH i2c: F0 [20:00:23]MH_I2C_Read... [20:00:23]Read from MH i2c: F0 09 00 [20:00:23]MH_I2C_Read... [20:00:23]Read from MH i2c: F0 09 00 5F C1 00 DD 52 C2 66 34 48 D8 65 28 [20:00:23]GetLastDocTimeStamp 1724011053 [20:00:23]current date 1724011229 [20:00:23]FM_GetShiftState [20:00:23]SAM_PROTO_GetShiftState [20:00:23]wFMCommunicate request_size=4 [20:00:23]MH_SAM_APDU [20:00:23]CAPDU: 80 13 01 00 [20:00:23]Write to MH i2c: E2 08 00 60 C1 80 13 01 00 00 00 00 00 9E [20:00:23]Write i2c OK [20:00:23]MH_I2C_Read... [20:00:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:23]Read from MH i2c: E2 [20:00:23]MH_I2C_Read... [20:00:23]Read from MH i2c: E2 0E 00 [20:00:23]MH_I2C_Read... [20:00:23]Read from MH i2c: E2 0E 00 60 C1 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 DB [20:00:23]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:00:23]wFMCommunicate OK [20:00:23]SAM_PROTO_GetShiftState done [20:00:23]FM_GetShiftState done [20:00:23]opened in 1723940556 [20:00:23]opened+sec_in_day 1724026956 [20:00:23]quantity*price = 0 [20:00:23]sum+1 = 1 [20:00:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 461 18.08.2024 20:00 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: ТК ГПНА Online 30105789 ФМ: 0000000000871820 ФД: 260903 ФПД: 141796931874704 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T200029&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260903&fm=141796931874704&tin=02508201610067®Number=0000000000091865&sum=0 [20:00:24]StoreToDocumentArchive [20:00:24]shift 449 fd 260903 [20:00:24]save to /storage/0449/doc_00260903 [20:00:24]save last doc name /storage/0449/doc_00260903 to /storage/kkm_last_doc_name [20:00:24]save OK [20:00:24]Clear old archive folders... [20:00:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:00:24]tlvbuf is 00540D30 [20:00:24]SAM_PROTO_ClearQueue [20:00:24]wFMCommunicate request_size=4 [20:00:24]MH_SAM_APDU [20:00:24]CAPDU: 80 09 00 00 [20:00:24]Write to MH i2c: E2 08 00 6D C1 80 09 00 00 00 00 00 00 A0 [20:00:24]Write i2c OK [20:00:24]MH_I2C_Read... [20:00:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:00:24]Read from MH i2c: E2 [20:00:24]MH_I2C_Read... [20:00:24]Read from MH i2c: E2 03 00 [20:00:24]MH_I2C_Read... [20:00:24]Read from MH i2c: E2 03 00 6D C1 00 90 00 A2 [20:00:24]RAPDU: 90 00 [20:00:24]wFMCommunicate OK [20:00:24]SAM_PROTO_ClearQueue done [20:00:24]KKMCreateOFDPacket [20:00:24]OFDProtocolAddRootSTLVToBuf [20:00:24]FM_MakeSignedData [20:00:24]FM_MakeSignedData [20:00:24]SAM_PROTO_SignData [20:00:24]wFMCommunicate request_size=4 [20:00:24]MH_SAM_APDU [20:00:24]CAPDU: 80 0D 01 02 [20:00:24]Write to MH i2c: E2 08 00 6E C1 80 0D 01 02 00 00 00 00 A8 [20:00:24]Write i2c OK [20:00:24]MH_I2C_Read... [20:00:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:00:24]Read from MH i2c: E2 [20:00:24]MH_I2C_Read... [20:00:24]Read from MH i2c: E2 03 00 [20:00:24]MH_I2C_Read... [20:00:24]Read from MH i2c: E2 03 00 6E C1 00 90 00 A3 [20:00:24]RAPDU: 90 00 [20:00:24]wFMCommunicate OK [20:00:24]wFMCommunicate request_size=255 [20:00:24]MH_SAM_APDU [20:00:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 16 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 CD 01 00 00 F4 03 04 00 DD 52 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 27 FB 03 00 35 04 06 00 80 [20:00:24]Write to MH i2c: E2 02 01 6F C1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 16 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 CD 01 00 00 F4 03 04 00 DD 52 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 27 FB 03 00 35 04 06 00 80 00 00 C8 [20:00:24]Write i2c OK [20:00:24]MH_I2C_Read... [20:00:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:24]Read from MH i2c: E2 [20:00:24]MH_I2C_Read... [20:00:24]Read from MH i2c: E2 03 00 [20:00:24]MH_I2C_Read... [20:00:24]Read from MH i2c: E2 03 00 6F C1 00 90 00 A4 [20:00:24]RAPDU: 90 00 [20:00:24]wFMCommunicate OK [20:00:24]wFMCommunicate request_size=10 [20:00:24]MH_SAM_APDU [20:00:24]CAPDU: 80 0D 02 02 05 F6 AB C1 2F 90 [20:00:24]Write to MH i2c: E2 0D 00 70 C1 80 0D 02 02 05 00 F6 AB C1 2F 90 00 00 D6 [20:00:24]Write i2c OK [20:00:24]MH_I2C_Read... [20:00:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:24]Read from MH i2c: E2 [20:00:24]MH_I2C_Read... [20:00:24]Read from MH i2c: E2 03 00 [20:00:24]MH_I2C_Read... [20:00:24]Read from MH i2c: E2 03 00 70 C1 00 90 00 A5 [20:00:24]RAPDU: 90 00 [20:00:24]wFMCommunicate OK [20:00:24]wFMCommunicate request_size=4 [20:00:24]MH_SAM_APDU [20:00:24]CAPDU: 80 0D 03 02 [20:00:24]Write to MH i2c: E2 08 00 71 C1 80 0D 03 02 00 00 00 00 AD [20:00:24]Write i2c OK [20:00:24]MH_I2C_Read... [20:00:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:00:24]Read from MH i2c: E2 [20:00:24]MH_I2C_Read... [20:00:24]Read from MH i2c: E2 0B 00 [20:00:24]MH_I2C_Read... [20:00:24]Read from MH i2c: E2 0B 00 71 C1 00 6A 69 BF 09 39 D9 6F C0 90 00 8A [20:00:24]RAPDU: 6A 69 BF 09 39 D9 6F C0 90 00 [20:00:24]wFMCommunicate OK [20:00:24]SAM_PROTO_SignData done [20:00:24]FM_MakeSignedData done [20:00:24]CreateOFDProtocolMessage [20:00:24]wFMCommunicate request_size=4 [20:00:24]MH_SAM_APDU [20:00:24]CAPDU: 80 11 00 00 [20:00:24]Write to MH i2c: E2 08 00 72 C1 80 11 00 00 00 00 00 00 AD [20:00:24]Write i2c OK [20:00:24]MH_I2C_Read... [20:00:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:24]Read from MH i2c: E2 [20:00:24]MH_I2C_Read... [20:00:24]Read from MH i2c: E2 17 00 [20:00:24]MH_I2C_Read... [20:00:24]Read from MH i2c: E2 17 00 72 C1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 FA [20:00:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:00:24]wFMCommunicate OK [20:00:24]CreateOFDProtocolMessage done [20:00:24]OFDSenderStorePacket 260903 [20:00:24]StoreOFDPacket docnum=260903 [20:00:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 24 20 07 01 79 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 16 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 CD 01 00 00 F4 03 04 00 DD 52 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 27 FB 03 00 35 04 06 00 80 F6 AB C1 2F 90 6A 69 BF 09 39 D9 6F C0 [20:00:24]CheckFolder [20:00:24]dirname=/storage/ofd_packets [20:00:24]CheckFolder done [20:00:24]ProducePacketName [20:00:24]name=ofd_packets/00260903 [20:00:24]NVStorageSaveData ofd_packets/00260903 [20:00:24]File name is /storage/ofd_packets/00260903 [20:00:24]Write 301 bytes [20:00:24]NVStorageSaveData done [20:00:24]OFDSenderStorePacket done [20:00:24]KKMCreateOFDPacket done [20:00:24]NVStorageSaveData kkm_last_timestamp [20:00:24]File name is /storage/kkm_last_timestamp [20:00:24]Write 4 bytes [20:00:24]NVStorageSaveData done [20:00:24]ExternCall_PrintAddStr [20:00:24]wPrintStart [20:00:24]Write to MH i2c: 01 00 00 73 C1 34 [20:00:24]Write i2c OK [20:00:24]MH_I2C_Read... [20:00:24]Read from MH i2c: 01 [20:00:24]MH_I2C_Read... [20:00:24]Read from MH i2c: 01 07 00 [20:00:24]MH_I2C_Read... [20:00:24]Read from MH i2c: 01 07 00 73 C1 00 00 00 00 00 FF 0F 49 [20:00:24]RasterBufferAndPrint [20:00:24]line Счет N : (1)1036456 [20:00:24]line ИНН: 02508201610067 [20:00:24]line Контрольно-Кассовый Чек [20:00:24]line ПРОДАЖА [20:00:24]line ТРК (МРК, ГНК) : 22 [20:00:24]line Товар: 2710124130 [20:00:24]line Аи-92-К-5 [20:00:24]line 5.750 * 0.00 [20:00:24]line = 0.00 [20:00:24]line НДС 12% НСП 1% [20:00:24]line > о реализуемом товаре [20:00:24]line ИТОГО: 0.00 [20:00:24]line НСП 1% : 0.00 [20:00:24]line НДС 12% : 0.00 [20:00:24]line Наличными: 0.00 [20:00:24]line Безнал.: 0.00 [20:00:24]line Место: АЗС № 94 "Партнер Нефть" [20:00:24]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:00:24]line СНО: Общий режим [20:00:24]line Чек 461 18.08.2024 20:00 [20:00:24]line Смена: 449 ФФД: 1.0 [20:00:24]line ЗНМ: 0300000099 [20:00:24]line РНМ: 0000000000091865 [20:00:24]line Версия ККМ: 001 [20:00:24]line Талоны: ТК ГПНА Online [20:00:24]line 30105789 [20:00:24]line ФМ: 0000000000871820 [20:00:24]line ФД: 260903 [20:00:24]line ФПД: 141796931874704 [20:00:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T200029&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260903&fm=141796931874704&tin=02508201610067®Number=0000000000091865&sum=0 [20:00:24]written 0, free lines is 4095 [20:00:24]OFD Sender: Processing packet 260903 [packets to send 192, broken 191] [20:00:24]ProducePacketName [20:00:24]name=ofd_packets/00260903 [20:00:24]OFD Sender: To server: pG, [20:00:24]CommunicateWithHost lk.salyk.kg:30040 [20:00:24]ConnectInit lk.salyk.kg [20:00:25]Connected sock=10 [20:00: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 30 0F 01 00 00 24 20 07 01 79 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 16 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 CD 01 00 00 F4 03 04 00 DD 52 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 27 FB 03 00 35 04 06 00 80 F6 AB C1 2F 90 6A 69 BF 09 39 D9 6F C0 [20:00: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 30 4F 00 00 00 B8 F7 47 00 8E 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 30 10 04 04 00 27 FB 03 00 F4 03 04 00 31 FC C1 66 B6 04 01 00 00 C9 F3 4E 9A BD 84 15 29 [20:00:25]CommunicateWithHost err = 0 [20:00:25]CheckOFDResponse [20:00:25]1017 (14) - 77093643461234 [20:00:25]1041 (16) - 0000000000871820 [20:00:25]1040 (4) - 260903 [20:00:25]1012 (4) - 18.08.2024 13:50 [20:00:25]1206 (1) - 0 [20:00:25]OFD Sender: Remove packet 260903 [20:00:25]ProducePacketName [20:00:25]name=ofd_packets/00260903 [20:00:25]NVStorageDeleteData [20:00:25]Write to MH i2c: 01 00 00 9D C1 5E [20:00:25]Write i2c OK [20:00:25]MH_I2C_Read... [20:00:25]Read from MH i2c: 01 [20:00:25]MH_I2C_Read... [20:00:25]Read from MH i2c: 01 07 00 [20:00:25]MH_I2C_Read... [20:00:25]Read from MH i2c: 01 07 00 9D C1 00 00 00 00 00 93 0C 04 [20:00:25]RasterBufferAndPrint [20:00:25]line [20:00:25]line [20:00:25]line [20:00:25]line [20:00:25]line [20:00:25]written 0, free lines is 3224 [20:00:25]MH_Cut [20:00:25]Write to MH i2c: D1 01 00 A4 C1 01 37 [20:00:25]Write i2c OK [20:00:25]MH_I2C_Read... [20:00:25]Read from MH i2c: D1 [20:00:25]MH_I2C_Read... [20:00:25]Read from MH i2c: D1 01 00 [20:00:25]MH_I2C_Read... [20:00:25]Read from MH i2c: D1 01 00 A4 C1 00 36 [20:00:25]Write to MH i2c: 01 00 00 A5 C1 66 [20:00:25]Write i2c OK [20:00:25]MH_I2C_Read... [20:00:25]OFD Sender: No OFD packet to send [20:00:26]*** Cut start [20:00:26]*** Purtial cut [20:00:26]*** Stage 1: CUTSNS_PIN = 1 [20:00:28]Read from MH i2c: 01 [20:00:28]MH_I2C_Read... [20:00:28]*** Stop cut motor [20:00:28]*** Cut end [20:00:28]Read from MH i2c: 01 07 00 [20:00:28]MH_I2C_Read... [20:00:28]Read from MH i2c: 01 07 00 A5 C1 00 00 00 00 00 FF 0F 7B [20:00:28]process_action close_receipt done [20:00:28]requested_data is exist [20:00:28]produce_requested_data [20:00:28]requested_item fm.sn is exist - process it [20:00:28]wFMCommunicate request_size=4 [20:00:28]MH_SAM_APDU [20:00:28]CAPDU: 80 11 00 00 [20:00:28]Write to MH i2c: E2 08 00 A6 C1 80 11 00 00 00 00 00 00 E1 [20:00:28]Write i2c OK [20:00:28]MH_I2C_Read... [20:00:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:28]Read from MH i2c: E2 [20:00:28]MH_I2C_Read... [20:00:28]Read from MH i2c: E2 17 00 [20:00:28]MH_I2C_Read... [20:00:28]Read from MH i2c: E2 17 00 A6 C1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 2E [20:00:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:00:28]wFMCommunicate OK [20:00:28]requested_item fd.num is exist - process it [20:00:28]SAM_PROTO_GetFieldsCounters [20:00:28]wFMCommunicate request_size=4 [20:00:28]MH_SAM_APDU [20:00:28]CAPDU: 80 13 00 00 [20:00:28]Write to MH i2c: E2 08 00 A7 C1 80 13 00 00 00 00 00 00 E4 [20:00:28]Write i2c OK [20:00:28]MH_I2C_Read... [20:00:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:00:28]Read from MH i2c: E2 [20:00:28]MH_I2C_Read... [20:00:28]Read from MH i2c: E2 62 00 [20:00:28]MH_I2C_Read... [20:00:28]Read from MH i2c: E2 62 00 A7 C1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 27 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 CD 01 00 00 5E 04 04 00 CD 01 00 00 57 04 04 00 CE 01 00 00 19 04 04 00 00 00 00 00 90 00 54 [20:00: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 27 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 CD 01 00 00 5E 04 04 00 CD 01 00 00 57 04 04 00 CE 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:00:28]wFMCommunicate OK [20:00:28]SAM_PROTO_GetFieldsCounters done [20:00:28]requested_item shift.num is exist - process it [20:00:28]requested_item shift.opened is exist - process it [20:00:28]req_shift_opened [20:00:28]FM_GetShiftState [20:00:28]SAM_PROTO_GetShiftState [20:00:28]wFMCommunicate request_size=4 [20:00:28]MH_SAM_APDU [20:00:28]CAPDU: 80 13 01 00 [20:00:28]Write to MH i2c: E2 08 00 A8 C1 80 13 01 00 00 00 00 00 E6 [20:00:28]Write i2c OK [20:00:28]MH_I2C_Read... [20:00:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:28]Read from MH i2c: E2 [20:00:28]MH_I2C_Read... [20:00:28]Read from MH i2c: E2 0E 00 [20:00:28]MH_I2C_Read... [20:00:28]Read from MH i2c: E2 0E 00 A8 C1 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 23 [20:00:28]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:00:28]wFMCommunicate OK [20:00:28]SAM_PROTO_GetShiftState done [20:00:28]FM_GetShiftState done [20:00:28]req_shift_opened done [20:00:28]requested_item shift.open_date is exist - process it [20:00:28]req_shift_open_date [20:00:28]req_shift_open_date done [20:00:28]produce_requested_data done [20:00:28]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260903,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:00:28]process_action_free close_receipt [20:00:28]json_value_free [20:00:28]json_value_free done [20:00:28]process_json_proto returns [20:00:28]Send response to host [20:00:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260903,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:00:28]free response buf [20:00:28]execute_script done [20:00:28]execute_script returns [20:00:28]free content buf [20:00:28]Sock 9.Close socket [20:00:28]Sock 9.Thread stoped [20:00:29]accept exits with 7 [20:00:29]New connection [20:00:29]New thread 3066473828 created [20:00:29]Thread 3066617188 joined [20:00:29]Waiting for new connection... [20:00:29] Sock 7.Parse request [20:00:29]Sock 7.Check first char [20:00:29]Sock 7.First char is OK [20:00:29]request: POST /json_proto HTTP/1.0 [20:00:29]Method: POST [20:00:29]URL: /json_proto [20:00:29]Method is POST - this is cgi request [20:00:29]url: /json_proto [20:00:29]query_string will be loaded in cgi processing [20:00:29]execute_cgi json_proto POST (null) [20:00:29]execute_cgi path=json_proto method=POST [20:00:29]POST find Content-Length [20:00:29]Host: 172.17.55.133:8080 [20:00:29]Content-Length: 688 [20:00:29]Content-Type: application/json [20:00:29] [20:00:29]POST finish read [20:00:29]Found Content-Length = 688 [20:00:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:29]execute_script... [20:00: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)1036455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:29]POST & json_proto [20:00:29]process_json_proto [20:00:29]json parsed OK: [20:00:29]protocol is kg_v1.0 [20:00:29]action value=close_receipt [20:00:29]process_action close_receipt [20:00:29]cmd_close_receipt [20:00:29]MH_GetDate [20:00:29]Write to MH i2c: F0 00 00 A9 C1 59 [20:00:29]Write i2c OK [20:00:29]MH_I2C_Read... [20:00:29]Read from MH i2c: F0 [20:00:29]MH_I2C_Read... [20:00:29]Read from MH i2c: F0 09 00 [20:00:29]MH_I2C_Read... [20:00:29]Read from MH i2c: F0 09 00 A9 C1 00 E3 52 C2 66 34 48 D8 65 78 [20:00:29]GetLastDocTimeStamp 1724011229 [20:00:29]current date 1724011235 [20:00:29]FM_GetShiftState [20:00:29]SAM_PROTO_GetShiftState [20:00:29]wFMCommunicate request_size=4 [20:00:29]MH_SAM_APDU [20:00:29]CAPDU: 80 13 01 00 [20:00:29]Write to MH i2c: E2 08 00 AA C1 80 13 01 00 00 00 00 00 E8 [20:00:29]Write i2c OK [20:00:29]MH_I2C_Read... [20:00:29]Read from MH i2c: E2 [20:00:29]MH_I2C_Read... [20:00:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:29]Read from MH i2c: E2 0E 00 [20:00:29]MH_I2C_Read... [20:00:29]Read from MH i2c: E2 0E 00 AA C1 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 25 [20:00:29]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:00:29]wFMCommunicate OK [20:00:29]SAM_PROTO_GetShiftState done [20:00:29]FM_GetShiftState done [20:00:29]opened in 1723940556 [20:00:29]opened+sec_in_day 1724026956 [20:00:29]quantity*price = 100050 [20:00:29]sum+1 = 100052 [20:00:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 462 18.08.2024 20:00 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260904 ФПД: 229137975834410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T200036&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260904&fm=229137975834410&tin=02508201610067®Number=0000000000091865&sum=100000 [20:00:30]StoreToDocumentArchive [20:00:30]shift 449 fd 260904 [20:00:30]save to /storage/0449/doc_00260904 [20:00:30]save last doc name /storage/0449/doc_00260904 to /storage/kkm_last_doc_name [20:00:30]save OK [20:00:30]Clear old archive folders... [20:00:30]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:00:30]tlvbuf is 003A03F0 [20:00:30]SAM_PROTO_ClearQueue [20:00:30]wFMCommunicate request_size=4 [20:00:30]MH_SAM_APDU [20:00:30]CAPDU: 80 09 00 00 [20:00:30]Write to MH i2c: E2 08 00 B7 C1 80 09 00 00 00 00 00 00 EA [20:00:30]Write i2c OK [20:00:30]MH_I2C_Read... [20:00:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:00:30]Read from MH i2c: E2 [20:00:30]MH_I2C_Read... [20:00:30]Read from MH i2c: E2 03 00 [20:00:30]MH_I2C_Read... [20:00:30]Read from MH i2c: E2 03 00 B7 C1 00 90 00 EC [20:00:30]RAPDU: 90 00 [20:00:30]wFMCommunicate OK [20:00:30]SAM_PROTO_ClearQueue done [20:00:30]KKMCreateOFDPacket [20:00:30]OFDProtocolAddRootSTLVToBuf [20:00:30]FM_MakeSignedData [20:00:30]FM_MakeSignedData [20:00:30]SAM_PROTO_SignData [20:00:30]wFMCommunicate request_size=4 [20:00:30]MH_SAM_APDU [20:00:30]CAPDU: 80 0D 01 02 [20:00:30]Write to MH i2c: E2 08 00 B8 C1 80 0D 01 02 00 00 00 00 F2 [20:00:30]Write i2c OK [20:00:30]MH_I2C_Read... [20:00:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:00:30]Read from MH i2c: E2 [20:00:30]MH_I2C_Read... [20:00:30]Read from MH i2c: E2 03 00 [20:00:30]MH_I2C_Read... [20:00:30]Read from MH i2c: E2 03 00 B8 C1 00 90 00 ED [20:00:30]RAPDU: 90 00 [20:00:30]wFMCommunicate OK [20:00:30]wFMCommunicate request_size=255 [20:00:30]MH_SAM_APDU [20:00:30]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 01 00 00 F4 03 04 00 E4 52 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 28 FB 03 00 35 04 06 00 [20:00:30]Write to MH i2c: E2 02 01 B9 C1 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 01 00 00 F4 03 04 00 E4 52 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 28 FB 03 00 35 04 06 00 00 00 71 [20:00:31]Write i2c OK [20:00:31]MH_I2C_Read... [20:00:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:31]Read from MH i2c: E2 [20:00:31]MH_I2C_Read... [20:00:31]Read from MH i2c: E2 03 00 [20:00:31]MH_I2C_Read... [20:00:31]Read from MH i2c: E2 03 00 B9 C1 00 90 00 EE [20:00:31]RAPDU: 90 00 [20:00:31]wFMCommunicate OK [20:00:31]wFMCommunicate request_size=11 [20:00:31]MH_SAM_APDU [20:00:31]CAPDU: 80 0D 02 02 06 D0 66 57 A7 77 2A [20:00:31]Write to MH i2c: E2 0E 00 BA C1 80 0D 02 02 06 00 D0 66 57 A7 77 2A 00 00 D6 [20:00:31]Write i2c OK [20:00:31]MH_I2C_Read... [20:00:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:31]Read from MH i2c: E2 [20:00:31]MH_I2C_Read... [20:00:31]Read from MH i2c: E2 03 00 [20:00:31]MH_I2C_Read... [20:00:31]Read from MH i2c: E2 03 00 BA C1 00 90 00 EF [20:00:31]RAPDU: 90 00 [20:00:31]wFMCommunicate OK [20:00:31]wFMCommunicate request_size=4 [20:00:31]MH_SAM_APDU [20:00:31]CAPDU: 80 0D 03 02 [20:00:31]Write to MH i2c: E2 08 00 BB C1 80 0D 03 02 00 00 00 00 F7 [20:00:31]Write i2c OK [20:00:31]MH_I2C_Read... [20:00:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:00:31]Read from MH i2c: E2 [20:00:31]MH_I2C_Read... [20:00:31]Read from MH i2c: E2 0B 00 [20:00:31]MH_I2C_Read... [20:00:31]Read from MH i2c: E2 0B 00 BB C1 00 F4 E3 CB 5F 24 AF 8D BD 90 00 16 [20:00:31]RAPDU: F4 E3 CB 5F 24 AF 8D BD 90 00 [20:00:31]wFMCommunicate OK [20:00:31]SAM_PROTO_SignData done [20:00:31]FM_MakeSignedData done [20:00:31]CreateOFDProtocolMessage [20:00:31]wFMCommunicate request_size=4 [20:00:31]MH_SAM_APDU [20:00:31]CAPDU: 80 11 00 00 [20:00:31]Write to MH i2c: E2 08 00 BC C1 80 11 00 00 00 00 00 00 F7 [20:00:31]Write i2c OK [20:00:31]MH_I2C_Read... [20:00:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:31]Read from MH i2c: E2 [20:00:31]MH_I2C_Read... [20:00:31]Read from MH i2c: E2 17 00 [20:00:31]MH_I2C_Read... [20:00:31]Read from MH i2c: E2 17 00 BC C1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 44 [20:00:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:00:31]wFMCommunicate OK [20:00:31]CreateOFDProtocolMessage done [20:00:31]OFDSenderStorePacket 260904 [20:00:31]StoreOFDPacket docnum=260904 [20:00:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 04 CE 08 01 DB 84 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 01 00 00 F4 03 04 00 E4 52 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 28 FB 03 00 35 04 06 00 D0 66 57 A7 77 2A F4 E3 CB 5F 24 AF 8D BD [20:00:31]CheckFolder [20:00:31]dirname=/storage/ofd_packets [20:00:31]CheckFolder done [20:00:31]ProducePacketName [20:00:31]name=ofd_packets/00260904 [20:00:31]NVStorageSaveData ofd_packets/00260904 [20:00:31]File name is /storage/ofd_packets/00260904 [20:00:31]Write 302 bytes [20:00:31]NVStorageSaveData done [20:00:31]OFDSenderStorePacket done [20:00:31]KKMCreateOFDPacket done [20:00:31]NVStorageSaveData kkm_last_timestamp [20:00:31]File name is /storage/kkm_last_timestamp [20:00:31]Write 4 bytes [20:00:31]NVStorageSaveData done [20:00:31]ExternCall_PrintAddStr [20:00:31]wPrintStart [20:00:31]Write to MH i2c: 01 00 00 BD C1 7E [20:00:31]Write i2c OK [20:00:31]MH_I2C_Read... [20:00:31]Read from MH i2c: 01 [20:00:31]MH_I2C_Read... [20:00:31]Read from MH i2c: 01 07 00 [20:00:31]MH_I2C_Read... [20:00:31]Read from MH i2c: 01 07 00 BD C1 00 00 00 00 00 FF 0F 93 [20:00:31]RasterBufferAndPrint [20:00:31]line Счет N : (1)1036455 [20:00:31]line ИНН: 02508201610067 [20:00:31]line Контрольно-Кассовый Чек [20:00:31]line ПРОДАЖА [20:00:31]line ТРК (МРК, ГНК) : 43 [20:00:31]line Товар: 2710194210 [20:00:31]line ДТ(л)-К-4 [20:00:31]line 13.130 * 76.20 [20:00:31]line = 1000.51 [20:00:31]line НДС 12% НСП 1% [20:00:31]line > о реализуемом товаре [20:00:31]line ОКРУГЛЕНИЕ: -0.51 [20:00:31]line ИТОГО: 1000.00 [20:00:31]line Внесено: 1000.00 [20:00:31]line СДАЧА: 0.00 [20:00:31]line НСП 1% : 8.85 [20:00:31]line НДС 12% : 106.25 [20:00:31]line Наличными: 1000.00 [20:00:31]line Безнал.: 0.00 [20:00:31]line Место: АЗС № 94 "Партнер Нефть" [20:00:31]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:00:31]line СНО: Общий режим [20:00:31]line Чек 462 18.08.2024 20:00 [20:00:31]line Смена: 449 ФФД: 1.0 [20:00:31]line ЗНМ: 0300000099 [20:00:31]line РНМ: 0000000000091865 [20:00:31]line Версия ККМ: 001 [20:00:31]line ФМ: 0000000000871820 [20:00:31]line ФД: 260904 [20:00:31]line ФПД: 229137975834410 [20:00:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T200036&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260904&fm=229137975834410&tin=02508201610067®Number=0000000000091865&sum=100000 [20:00:31]written 0, free lines is 4095 [20:00:31]OFD Sender: Processing packet 260904 [packets to send 192, broken 191] [20:00:31]ProducePacketName [20:00:31]name=ofd_packets/00260904 [20:00:31]OFD Sender: To server: pG, [20:00:31]CommunicateWithHost lk.salyk.kg:30040 [20:00:31]ConnectInit lk.salyk.kg [20:00:31]Connected sock=10 [20:00: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 30 10 01 00 00 04 CE 08 01 DB 84 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 01 00 00 F4 03 04 00 E4 52 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 28 FB 03 00 35 04 06 00 D0 66 57 A7 77 2A F4 E3 CB 5F 24 AF 8D BD [20:00: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 30 4F 00 00 00 8C D2 47 00 28 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 30 10 04 04 00 28 FB 03 00 F4 03 04 00 38 FC C1 66 B6 04 01 00 00 46 D6 EC F8 3C E2 62 F3 [20:00:31]CommunicateWithHost err = 0 [20:00:31]CheckOFDResponse [20:00:31]1017 (14) - 77093643461234 [20:00:31]1041 (16) - 0000000000871820 [20:00:31]1040 (4) - 260904 [20:00:31]1012 (4) - 18.08.2024 13:50 [20:00:31]1206 (1) - 0 [20:00:31]OFD Sender: Remove packet 260904 [20:00:31]ProducePacketName [20:00:31]name=ofd_packets/00260904 [20:00:31]NVStorageDeleteData [20:00:31]Write to MH i2c: 01 00 00 E8 C1 A9 [20:00:31]Write i2c OK [20:00:31]MH_I2C_Read... [20:00:31]Read from MH i2c: 01 [20:00:31]MH_I2C_Read... [20:00:31]Read from MH i2c: 01 07 00 [20:00:31]MH_I2C_Read... [20:00:31]Read from MH i2c: 01 07 00 E8 C1 00 00 00 00 00 79 0C 35 [20:00:31]RasterBufferAndPrint [20:00:31]line [20:00:31]line [20:00:31]line [20:00:31]line [20:00:31]line [20:00:31]written 0, free lines is 3218 [20:00:31]MH_Cut [20:00:31]Write to MH i2c: D1 01 00 EF C1 01 82 [20:00:31]Write i2c OK [20:00:31]MH_I2C_Read... [20:00:31]Read from MH i2c: D1 [20:00:31]MH_I2C_Read... [20:00:31]Read from MH i2c: D1 01 00 [20:00:31]MH_I2C_Read... [20:00:31]Read from MH i2c: D1 01 00 EF C1 00 81 [20:00:31]Write to MH i2c: 01 00 00 F0 C1 B1 [20:00:31]Write i2c OK [20:00:31]MH_I2C_Read... [20:00:32]OFD Sender: No OFD packet to send [20:00:33]*** Cut start [20:00:33]*** Purtial cut [20:00:33]*** Stage 1: CUTSNS_PIN = 1 [20:00:35]Read from MH i2c: 01 [20:00:35]MH_I2C_Read... [20:00:35]*** Stop cut motor [20:00:35]*** Cut end [20:00:35]Read from MH i2c: 01 07 00 [20:00:35]MH_I2C_Read... [20:00:35]Read from MH i2c: 01 07 00 F0 C1 00 00 00 00 00 FF 0F C6 [20:00:35]process_action close_receipt done [20:00:35]requested_data is exist [20:00:35]produce_requested_data [20:00:35]requested_item fm.sn is exist - process it [20:00:35]wFMCommunicate request_size=4 [20:00:35]MH_SAM_APDU [20:00:35]CAPDU: 80 11 00 00 [20:00:35]Write to MH i2c: E2 08 00 F1 C1 80 11 00 00 00 00 00 00 2C [20:00:35]Write i2c OK [20:00:35]MH_I2C_Read... [20:00:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:35]Read from MH i2c: E2 [20:00:35]MH_I2C_Read... [20:00:35]Read from MH i2c: E2 17 00 [20:00:35]MH_I2C_Read... [20:00:35]Read from MH i2c: E2 17 00 F1 C1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 79 [20:00:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:00:35]wFMCommunicate OK [20:00:35]requested_item fd.num is exist - process it [20:00:35]SAM_PROTO_GetFieldsCounters [20:00:35]wFMCommunicate request_size=4 [20:00:35]MH_SAM_APDU [20:00:35]CAPDU: 80 13 00 00 [20:00:35]Write to MH i2c: E2 08 00 F2 C1 80 13 00 00 00 00 00 00 2F [20:00:35]Write i2c OK [20:00:35]MH_I2C_Read... [20:00:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:00:35]Read from MH i2c: E2 [20:00:35]MH_I2C_Read... [20:00:35]Read from MH i2c: E2 62 00 [20:00:35]MH_I2C_Read... [20:00:35]Read from MH i2c: E2 62 00 F2 C1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 28 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 CE 01 00 00 5E 04 04 00 CE 01 00 00 57 04 04 00 CF 01 00 00 19 04 04 00 00 00 00 00 90 00 A3 [20: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 28 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 CE 01 00 00 5E 04 04 00 CE 01 00 00 57 04 04 00 CF 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:00:35]wFMCommunicate OK [20:00:35]SAM_PROTO_GetFieldsCounters done [20:00:35]requested_item shift.num is exist - process it [20:00:35]requested_item shift.opened is exist - process it [20:00:35]req_shift_opened [20:00:35]FM_GetShiftState [20:00:35]SAM_PROTO_GetShiftState [20:00:35]wFMCommunicate request_size=4 [20:00:35]MH_SAM_APDU [20:00:35]CAPDU: 80 13 01 00 [20:00:35]Write to MH i2c: E2 08 00 F3 C1 80 13 01 00 00 00 00 00 31 [20:00:35]Write i2c OK [20:00:35]MH_I2C_Read... [20:00:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:35]Read from MH i2c: E2 [20:00:35]MH_I2C_Read... [20:00:35]Read from MH i2c: E2 0E 00 [20:00:35]MH_I2C_Read... [20:00:35]Read from MH i2c: E2 0E 00 F3 C1 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 6E [20:00:35]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:00:35]wFMCommunicate OK [20:00:35]SAM_PROTO_GetShiftState done [20:00:35]FM_GetShiftState done [20:00:35]req_shift_opened done [20:00:35]requested_item shift.open_date is exist - process it [20:00:35]req_shift_open_date [20:00:35]req_shift_open_date done [20:00:35]produce_requested_data done [20:00:35]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260904,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:00:35]process_action_free close_receipt [20:00:35]json_value_free [20:00:35]json_value_free done [20:00:35]process_json_proto returns [20:00:35]Send response to host [20:00:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260904,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:00:35]free response buf [20:00:35]execute_script done [20:00:35]execute_script returns [20:00:35]free content buf [20:00:35]Sock 7.Close socket [20:00:35]Sock 7.Thread stoped [20:00:37]OFD Sender: No OFD packet to send [20:00:42]OFD Sender: No OFD packet to send [20:00:47]OFD Sender: No OFD packet to send [20:00:52]OFD Sender: No OFD packet to send [20:00:57]OFD Sender: No OFD packet to send [20:01:02]OFD Sender: No OFD packet to send [20:01:07]OFD Sender: No OFD packet to send [20:01:12]OFD Sender: No OFD packet to send [20:01:17]OFD Sender: No OFD packet to send [20:01:22]OFD Sender: No OFD packet to send [20:01:27]OFD Sender: No OFD packet to send [20:01:32]OFD Sender: No OFD packet to send [20:01:37]OFD Sender: No OFD packet to send [20:01:42]accept exits with 9 [20:01:42]New connection [20:01:42]New thread 3066617188 created [20:01:42]Thread 3066473828 joined [20:01:42]Waiting for new connection... [20:01:42] Sock 9.Parse request [20:01:42]Sock 9.Check first char [20:01:42]Sock 9.First char is OK [20:01:42]request: POST /json_proto HTTP/1.0 [20:01:42]Method: POST [20:01:42]URL: /json_proto [20:01:42]Method is POST - this is cgi request [20:01:42]url: /json_proto [20:01:42]query_string will be loaded in cgi processing [20:01:42]execute_cgi json_proto POST (null) [20:01:42]execute_cgi path=json_proto method=POST [20:01:42]POST find Content-Length [20:01:42]Host: 172.17.55.133:8080 [20:01:42]Content-Length: 678 [20:01:42]Content-Type: application/json [20:01:42] [20:01:42]POST finish read [20:01:42]Found Content-Length = 678 [20:01:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 1.640, "sum" : 111.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 111.00, "total" : 111.00, "payments": [ { "type": 0, "sum" : 111.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:42]execute_script... [20:01: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)1036458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 1.640, "sum" : 111.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 111.00, "total" : 111.00, "payments": [ { "type": 0, "sum" : 111.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:42]POST & json_proto [20:01:42]process_json_proto [20:01:42]json parsed OK: [20:01:42]protocol is kg_v1.0 [20:01:42]action value=close_receipt [20:01:42]process_action close_receipt [20:01:42]cmd_close_receipt [20:01:42]MH_GetDate [20:01:42]Write to MH i2c: F0 00 00 F4 C1 A4 [20:01:42]Write i2c OK [20:01:42]MH_I2C_Read... [20:01:42]Read from MH i2c: F0 [20:01:42]MH_I2C_Read... [20:01:42]Read from MH i2c: F0 09 00 [20:01:42]MH_I2C_Read... [20:01:42]Read from MH i2c: F0 09 00 F4 C1 00 2D 53 C2 66 34 48 D8 65 0E [20:01:42]GetLastDocTimeStamp 1724011236 [20:01:42]current date 1724011309 [20:01:42]FM_GetShiftState [20:01:42]SAM_PROTO_GetShiftState [20:01:42]wFMCommunicate request_size=4 [20:01:42]MH_SAM_APDU [20:01:42]CAPDU: 80 13 01 00 [20:01:42]Write to MH i2c: E2 08 00 F5 C1 80 13 01 00 00 00 00 00 33 [20:01:42]Write i2c OK [20:01:42]MH_I2C_Read... [20:01:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:42]Read from MH i2c: E2 [20:01:42]MH_I2C_Read... [20:01:42]Read from MH i2c: E2 0E 00 [20:01:42]MH_I2C_Read... [20:01:42]Read from MH i2c: E2 0E 00 F5 C1 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 70 [20:01:42]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:01:42]wFMCommunicate OK [20:01:42]SAM_PROTO_GetShiftState done [20:01:42]FM_GetShiftState done [20:01:42]opened in 1723940556 [20:01:42]opened+sec_in_day 1724026956 [20:01:42]quantity*price = 11119 [20:01:42]sum+1 = 11120 [20:01:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 111.00 Внесено: 111.00 СДАЧА: 0.00 НСП 1% : 0.98 НДС 12% : 11.81 Наличными: 111.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 463 18.08.2024 20:01 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260905 ФПД: 61515552330252 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T200149&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260905&fm=61515552330252&tin=02508201610067®Number=0000000000091865&sum=11100 [20:01:43]StoreToDocumentArchive [20:01:43]shift 449 fd 260905 [20:01:43]save to /storage/0449/doc_00260905 [20:01:43]save last doc name /storage/0449/doc_00260905 to /storage/kkm_last_doc_name [20:01:43]save OK [20:01:43]Clear old archive folders... [20:01:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:01:43]tlvbuf is 006B94F0 [20:01:43]SAM_PROTO_ClearQueue [20:01:43]wFMCommunicate request_size=4 [20:01:43]MH_SAM_APDU [20:01:43]CAPDU: 80 09 00 00 [20:01:43]Write to MH i2c: E2 08 00 02 C2 80 09 00 00 00 00 00 00 36 [20:01:43]Write i2c OK [20:01:43]MH_I2C_Read... [20:01:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:01:43]Read from MH i2c: E2 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: E2 03 00 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: E2 03 00 02 C2 00 90 00 38 [20:01:43]RAPDU: 90 00 [20:01:43]wFMCommunicate OK [20:01:43]SAM_PROTO_ClearQueue done [20:01:43]KKMCreateOFDPacket [20:01:43]OFDProtocolAddRootSTLVToBuf [20:01:43]FM_MakeSignedData [20:01:43]FM_MakeSignedData [20:01:43]SAM_PROTO_SignData [20:01:43]wFMCommunicate request_size=4 [20:01:43]MH_SAM_APDU [20:01:43]CAPDU: 80 0D 01 02 [20:01:43]Write to MH i2c: E2 08 00 03 C2 80 0D 01 02 00 00 00 00 3E [20:01:43]Write i2c OK [20:01:43]MH_I2C_Read... [20:01:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:01:43]Read from MH i2c: E2 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: E2 03 00 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: E2 03 00 03 C2 00 90 00 39 [20:01:43]RAPDU: 90 00 [20:01:43]wFMCommunicate OK [20:01:43]wFMCommunicate request_size=255 [20:01:43]MH_SAM_APDU [20:01:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 68 06 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6F 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 01 00 00 F4 03 04 00 2D 53 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 29 FB 03 00 35 04 06 00 37 [20:01:43]Write to MH i2c: E2 02 01 04 C2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 68 06 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6F 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 01 00 00 F4 03 04 00 2D 53 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 29 FB 03 00 35 04 06 00 37 00 00 8D [20:01:43]Write i2c OK [20:01:43]MH_I2C_Read... [20:01:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:43]Read from MH i2c: E2 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: E2 03 00 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: E2 03 00 04 C2 00 90 00 3A [20:01:43]RAPDU: 90 00 [20:01:43]wFMCommunicate OK [20:01:43]wFMCommunicate request_size=10 [20:01:43]MH_SAM_APDU [20:01:43]CAPDU: 80 0D 02 02 05 F2 B4 A5 12 0C [20:01:43]Write to MH i2c: E2 0D 00 05 C2 80 0D 02 02 05 00 F2 B4 A5 12 0C 00 00 B4 [20:01:43]Write i2c OK [20:01:43]MH_I2C_Read... [20:01:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:44]Read from MH i2c: E2 [20:01:44]MH_I2C_Read... [20:01:44]Read from MH i2c: E2 03 00 [20:01:44]MH_I2C_Read... [20:01:44]Read from MH i2c: E2 03 00 05 C2 00 90 00 3B [20:01:44]RAPDU: 90 00 [20:01:44]wFMCommunicate OK [20:01:44]wFMCommunicate request_size=4 [20:01:44]MH_SAM_APDU [20:01:44]CAPDU: 80 0D 03 02 [20:01:44]Write to MH i2c: E2 08 00 06 C2 80 0D 03 02 00 00 00 00 43 [20:01:44]Write i2c OK [20:01:44]MH_I2C_Read... [20:01:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:01:44]Read from MH i2c: E2 [20:01:44]MH_I2C_Read... [20:01:44]Read from MH i2c: E2 0B 00 [20:01:44]MH_I2C_Read... [20:01:44]Read from MH i2c: E2 0B 00 06 C2 00 2F BA D7 A0 99 18 DA FD 90 00 2C [20:01:44]RAPDU: 2F BA D7 A0 99 18 DA FD 90 00 [20:01:44]wFMCommunicate OK [20:01:44]SAM_PROTO_SignData done [20:01:44]FM_MakeSignedData done [20:01:44]CreateOFDProtocolMessage [20:01:44]wFMCommunicate request_size=4 [20:01:44]MH_SAM_APDU [20:01:44]CAPDU: 80 11 00 00 [20:01:44]Write to MH i2c: E2 08 00 07 C2 80 11 00 00 00 00 00 00 43 [20:01:44]Write i2c OK [20:01:44]MH_I2C_Read... [20:01:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:44]Read from MH i2c: E2 [20:01:44]MH_I2C_Read... [20:01:44]Read from MH i2c: E2 17 00 [20:01:44]MH_I2C_Read... [20:01:44]Read from MH i2c: E2 17 00 07 C2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 90 [20:01:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:01:44]wFMCommunicate OK [20:01:44]CreateOFDProtocolMessage done [20:01:44]OFDSenderStorePacket 260905 [20:01:44]StoreOFDPacket docnum=260905 [20:01:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 90 CD 07 01 44 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 68 06 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6F 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 01 00 00 F4 03 04 00 2D 53 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 29 FB 03 00 35 04 06 00 37 F2 B4 A5 12 0C 2F BA D7 A0 99 18 DA FD [20:01:44]CheckFolder [20:01:44]dirname=/storage/ofd_packets [20:01:44]CheckFolder done [20:01:44]ProducePacketName [20:01:44]name=ofd_packets/00260905 [20:01:44]NVStorageSaveData ofd_packets/00260905 [20:01:44]File name is /storage/ofd_packets/00260905 [20:01:44]Write 301 bytes [20:01:44]NVStorageSaveData done [20:01:44]OFDSenderStorePacket done [20:01:44]KKMCreateOFDPacket done [20:01:44]NVStorageSaveData kkm_last_timestamp [20:01:44]File name is /storage/kkm_last_timestamp [20:01:44]Write 4 bytes [20:01:44]NVStorageSaveData done [20:01:44]ExternCall_PrintAddStr [20:01:44]wPrintStart [20:01:44]Write to MH i2c: 01 00 00 08 C2 CA [20:01:44]Write i2c OK [20:01:44]MH_I2C_Read... [20:01:44]Read from MH i2c: 01 [20:01:44]MH_I2C_Read... [20:01:44]Read from MH i2c: 01 07 00 [20:01:44]MH_I2C_Read... [20:01:44]Read from MH i2c: 01 07 00 08 C2 00 00 00 00 00 FF 0F DF [20:01:44]RasterBufferAndPrint [20:01:44]line Счет N : (1)1036458 [20:01:44]line ИНН: 02508201610067 [20:01:44]line Контрольно-Кассовый Чек [20:01:44]line ПРОДАЖА [20:01:44]line ТРК (МРК, ГНК) : 22 [20:01:44]line Товар: 2710124130 [20:01:44]line Аи-92-К-5 [20:01:44]line 1.640 * 67.80 [20:01:44]line = 111.19 [20:01:44]line НДС 12% НСП 1% [20:01:44]line > о реализуемом товаре [20:01:44]line ОКРУГЛЕНИЕ: -0.19 [20:01:44]line ИТОГО: 111.00 [20:01:44]line Внесено: 111.00 [20:01:44]line СДАЧА: 0.00 [20:01:44]line НСП 1% : 0.98 [20:01:44]line НДС 12% : 11.81 [20:01:44]line Наличными: 111.00 [20:01:44]line Безнал.: 0.00 [20:01:44]line Место: АЗС № 94 "Партнер Нефть" [20:01:44]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:01:44]line СНО: Общий режим [20:01:44]line Чек 463 18.08.2024 20:01 [20:01:44]line Смена: 449 ФФД: 1.0 [20:01:44]line ЗНМ: 0300000099 [20:01:44]line РНМ: 0000000000091865 [20:01:44]line Версия ККМ: 001 [20:01:44]line ФМ: 0000000000871820 [20:01:44]line ФД: 260905 [20:01:44]line ФПД: 61515552330252 [20:01:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T200149&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260905&fm=61515552330252&tin=02508201610067®Number=0000000000091865&sum=11100 [20:01:44]OFD Sender: Processing packet 260905 [packets to send 192, broken 191] [20:01:44]ProducePacketName [20:01:44]name=ofd_packets/00260905 [20:01:44]OFD Sender: To server: pG, [20:01:44]CommunicateWithHost lk.salyk.kg:30040 [20:01:44]ConnectInit lk.salyk.kg [20:01:44]written 0, free lines is 4095 [20:01:44]Connected sock=10 [20:01: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 30 0F 01 00 00 90 CD 07 01 44 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 68 06 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6F 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 01 00 00 F4 03 04 00 2D 53 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 29 FB 03 00 35 04 06 00 37 F2 B4 A5 12 0C 2F BA D7 A0 99 18 DA FD [20:01: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 30 4F 00 00 00 F4 0A 47 00 9F 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 29 FB 03 00 F4 03 04 00 81 FC C1 66 B6 04 01 00 00 4E 3C AC 93 6F 5D 90 4C [20:01:44]CommunicateWithHost err = 0 [20:01:44]CheckOFDResponse [20:01:44]1017 (14) - 77093643461234 [20:01:44]1041 (16) - 0000000000871820 [20:01:44]1040 (4) - 260905 [20:01:44]1012 (4) - 18.08.2024 13:52 [20:01:44]1206 (1) - 0 [20:01:44]OFD Sender: Remove packet 260905 [20:01:44]ProducePacketName [20:01:44]name=ofd_packets/00260905 [20:01:44]NVStorageDeleteData [20:01:44]Write to MH i2c: 01 00 00 33 C2 F5 [20:01:44]Write i2c OK [20:01:44]MH_I2C_Read... [20:01:44]Read from MH i2c: 01 [20:01:44]MH_I2C_Read... [20:01:44]Read from MH i2c: 01 07 00 [20:01:44]MH_I2C_Read... [20:01:44]Read from MH i2c: 01 07 00 33 C2 00 00 00 00 00 7B 0C 83 [20:01:44]RasterBufferAndPrint [20:01:44]line [20:01:44]line [20:01:44]line [20:01:44]line [20:01:44]line [20:01:44]written 0, free lines is 3198 [20:01:44]MH_Cut [20:01:44]Write to MH i2c: D1 01 00 3A C2 01 CE [20:01:44]Write i2c OK [20:01:44]MH_I2C_Read... [20:01:44]Read from MH i2c: D1 [20:01:44]MH_I2C_Read... [20:01:44]Read from MH i2c: D1 01 00 [20:01:44]MH_I2C_Read... [20:01:44]Read from MH i2c: D1 01 00 3A C2 00 CD [20:01:44]Write to MH i2c: 01 00 00 3B C2 FD [20:01:44]Write i2c OK [20:01:44]MH_I2C_Read... [20:01:45]OFD Sender: No OFD packet to send [20:01:45]*** Cut start [20:01:45]*** Purtial cut [20:01:45]*** Stage 1: CUTSNS_PIN = 1 [20:01:47]Read from MH i2c: 01 [20:01:48]MH_I2C_Read... [20:01:48]*** Stop cut motor [20:01:48]*** Cut end [20:01:48]Read from MH i2c: 01 07 00 [20:01:48]MH_I2C_Read... [20:01:48]Read from MH i2c: 01 07 00 3B C2 00 00 00 00 00 FF 0F 12 [20:01:48]process_action close_receipt done [20:01:48]requested_data is exist [20:01:48]produce_requested_data [20:01:48]requested_item fm.sn is exist - process it [20:01:48]wFMCommunicate request_size=4 [20:01:48]MH_SAM_APDU [20:01:48]CAPDU: 80 11 00 00 [20:01:48]Write to MH i2c: E2 08 00 3C C2 80 11 00 00 00 00 00 00 78 [20:01:48]Write i2c OK [20:01:48]MH_I2C_Read... [20:01:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:48]Read from MH i2c: E2 [20:01:48]MH_I2C_Read... [20:01:48]Read from MH i2c: E2 17 00 [20:01:48]MH_I2C_Read... [20:01:48]Read from MH i2c: E2 17 00 3C C2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C5 [20:01:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:01:48]wFMCommunicate OK [20:01:48]requested_item fd.num is exist - process it [20:01:48]SAM_PROTO_GetFieldsCounters [20:01:48]wFMCommunicate request_size=4 [20:01:48]MH_SAM_APDU [20:01:48]CAPDU: 80 13 00 00 [20:01:48]Write to MH i2c: E2 08 00 3D C2 80 13 00 00 00 00 00 00 7B [20:01:48]Write i2c OK [20:01:48]MH_I2C_Read... [20:01:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:01:48]Read from MH i2c: E2 [20:01:48]MH_I2C_Read... [20:01:48]Read from MH i2c: E2 62 00 [20:01:48]MH_I2C_Read... [20:01:48]Read from MH i2c: E2 62 00 3D C2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 29 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 CF 01 00 00 5E 04 04 00 CF 01 00 00 57 04 04 00 D0 01 00 00 19 04 04 00 00 00 00 00 90 00 F3 [20:01: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 29 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 CF 01 00 00 5E 04 04 00 CF 01 00 00 57 04 04 00 D0 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:01:48]wFMCommunicate OK [20:01:48]SAM_PROTO_GetFieldsCounters done [20:01:48]requested_item shift.num is exist - process it [20:01:48]requested_item shift.opened is exist - process it [20:01:48]req_shift_opened [20:01:48]FM_GetShiftState [20:01:48]SAM_PROTO_GetShiftState [20:01:48]wFMCommunicate request_size=4 [20:01:48]MH_SAM_APDU [20:01:48]CAPDU: 80 13 01 00 [20:01:48]Write to MH i2c: E2 08 00 3E C2 80 13 01 00 00 00 00 00 7D [20:01:48]Write i2c OK [20:01:48]MH_I2C_Read... [20:01:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:48]Read from MH i2c: E2 [20:01:48]MH_I2C_Read... [20:01:48]Read from MH i2c: E2 0E 00 [20:01:48]MH_I2C_Read... [20:01:48]Read from MH i2c: E2 0E 00 3E C2 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 BA [20:01:48]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:01:48]wFMCommunicate OK [20:01:48]SAM_PROTO_GetShiftState done [20:01:48]FM_GetShiftState done [20:01:48]req_shift_opened done [20:01:48]requested_item shift.open_date is exist - process it [20:01:48]req_shift_open_date [20:01:48]req_shift_open_date done [20:01:48]produce_requested_data done [20:01:48]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260905,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:01:48]process_action_free close_receipt [20:01:48]json_value_free [20:01:48]json_value_free done [20:01:48]process_json_proto returns [20:01:48]Send response to host [20:01:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260905,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:01:48]free response buf [20:01:48]execute_script done [20:01:48]execute_script returns [20:01:48]free content buf [20:01:48]Sock 9.Close socket [20:01:48]Sock 9.Thread stoped [20:01:50]OFD Sender: No OFD packet to send [20:01:55]OFD Sender: No OFD packet to send [20:02:00]OFD Sender: No OFD packet to send [20:02:05]OFD Sender: No OFD packet to send [20:02:10]OFD Sender: No OFD packet to send [20:02:15]OFD Sender: No OFD packet to send [20:02:20]OFD Sender: No OFD packet to send [20:02:25]OFD Sender: No OFD packet to send [20:02:30]OFD Sender: No OFD packet to send [20:02:35]OFD Sender: No OFD packet to send [20:02:40]OFD Sender: No OFD packet to send [20:02:45]OFD Sender: No OFD packet to send [20:02:50]OFD Sender: No OFD packet to send [20:02:55]OFD Sender: No OFD packet to send [20:03:00]OFD Sender: No OFD packet to send [20:03:05]OFD Sender: No OFD packet to send [20:03:10]OFD Sender: No OFD packet to send [20:03:15]OFD Sender: No OFD packet to send [20:03:20]OFD Sender: No OFD packet to send [20:03:25]OFD Sender: No OFD packet to send [20:03:30]OFD Sender: No OFD packet to send [20:03:35]OFD Sender: No OFD packet to send [20:03:40]OFD Sender: No OFD packet to send [20:03:45]OFD Sender: No OFD packet to send [20:03:50]OFD Sender: No OFD packet to send [20:03:55]accept exits with 7 [20:03:55]New connection [20:03:55]New thread 3066473828 created [20:03:55]Thread 3066617188 joined [20:03:55]Waiting for new connection... [20:03:55] Sock 7.Parse request [20:03:55]Sock 7.Check first char [20:03:55]Sock 7.First char is OK [20:03:55]request: POST /json_proto HTTP/1.0 [20:03:55]Method: POST [20:03:55]URL: /json_proto [20:03:55]Method is POST - this is cgi request [20:03:55]url: /json_proto [20:03:55]query_string will be loaded in cgi processing [20:03:55]execute_cgi json_proto POST (null) [20:03:55]execute_cgi path=json_proto method=POST [20:03:55]POST find Content-Length [20:03:55]Host: 172.17.55.133:8080 [20:03:55]Content-Length: 678 [20:03:55]Content-Type: application/json [20:03:55] [20:03:55]POST finish read [20:03:55]Found Content-Length = 678 [20:03:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:03:55]execute_script... [20:03: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)1036459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:03:55]POST & json_proto [20:03:55]process_json_proto [20:03:55]json parsed OK: [20:03:55]protocol is kg_v1.0 [20:03:55]action value=close_receipt [20:03:55]process_action close_receipt [20:03:55]cmd_close_receipt [20:03:55]MH_GetDate [20:03:55]Write to MH i2c: F0 00 00 3F C2 F0 [20:03:55]Write i2c OK [20:03:55]MH_I2C_Read... [20:03:55]Read from MH i2c: F0 [20:03:55]MH_I2C_Read... [20:03:55]Read from MH i2c: F0 09 00 [20:03:55]MH_I2C_Read... [20:03:55]Read from MH i2c: F0 09 00 3F C2 00 B1 53 C2 66 34 48 D8 65 DE [20:03:55]GetLastDocTimeStamp 1724011309 [20:03:55]current date 1724011441 [20:03:55]FM_GetShiftState [20:03:55]SAM_PROTO_GetShiftState [20:03:55]wFMCommunicate request_size=4 [20:03:55]MH_SAM_APDU [20:03:55]CAPDU: 80 13 01 00 [20:03:55]Write to MH i2c: E2 08 00 40 C2 80 13 01 00 00 00 00 00 7F [20:03:55]Write i2c OK [20:03:55]MH_I2C_Read... [20:03:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:55]Read from MH i2c: E2 [20:03:55]MH_I2C_Read... [20:03:55]Read from MH i2c: E2 0E 00 [20:03:55]MH_I2C_Read... [20:03:55]Read from MH i2c: E2 0E 00 40 C2 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 BC [20:03:55]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:03:55]wFMCommunicate OK [20:03:55]SAM_PROTO_GetShiftState done [20:03:55]FM_GetShiftState done [20:03:55]opened in 1723940556 [20:03:55]opened+sec_in_day 1724026956 [20:03:55]quantity*price = 20001 [20:03:55]sum+1 = 20002 [20:03:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 464 18.08.2024 20:04 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260906 ФПД: 234929368881532 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T200401&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260906&fm=234929368881532&tin=02508201610067®Number=0000000000091865&sum=20000 [20:03:56]StoreToDocumentArchive [20:03:56]shift 449 fd 260906 [20:03:56]save to /storage/0449/doc_00260906 [20:03:56]save last doc name /storage/0449/doc_00260906 to /storage/kkm_last_doc_name [20:03:56]save OK [20:03:56]Clear old archive folders... [20:03:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:03:56]tlvbuf is 003E2F50 [20:03:56]SAM_PROTO_ClearQueue [20:03:56]wFMCommunicate request_size=4 [20:03:56]MH_SAM_APDU [20:03:56]CAPDU: 80 09 00 00 [20:03:56]Write to MH i2c: E2 08 00 4D C2 80 09 00 00 00 00 00 00 81 [20:03:56]Write i2c OK [20:03:56]MH_I2C_Read... [20:03:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:03:56]Read from MH i2c: E2 [20:03:56]MH_I2C_Read... [20:03:56]Read from MH i2c: E2 03 00 [20:03:56]MH_I2C_Read... [20:03:56]Read from MH i2c: E2 03 00 4D C2 00 90 00 83 [20:03:56]RAPDU: 90 00 [20:03:56]wFMCommunicate OK [20:03:56]SAM_PROTO_ClearQueue done [20:03:56]KKMCreateOFDPacket [20:03:56]OFDProtocolAddRootSTLVToBuf [20:03:56]FM_MakeSignedData [20:03:56]FM_MakeSignedData [20:03:56]SAM_PROTO_SignData [20:03:56]wFMCommunicate request_size=4 [20:03:56]MH_SAM_APDU [20:03:56]CAPDU: 80 0D 01 02 [20:03:56]Write to MH i2c: E2 08 00 4E C2 80 0D 01 02 00 00 00 00 89 [20:03:56]Write i2c OK [20:03:56]MH_I2C_Read... [20:03:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:03:56]Read from MH i2c: E2 [20:03:56]MH_I2C_Read... [20:03:56]Read from MH i2c: E2 03 00 [20:03:56]MH_I2C_Read... [20:03:56]Read from MH i2c: E2 03 00 4E C2 00 90 00 84 [20:03:56]RAPDU: 90 00 [20:03:56]wFMCommunicate OK [20:03:56]wFMCommunicate request_size=255 [20:03:56]MH_SAM_APDU [20:03:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 01 00 00 F4 03 04 00 B1 53 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2A FB 03 00 35 04 06 00 D5 [20:03:56]Write to MH i2c: E2 02 01 4F C2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 01 00 00 F4 03 04 00 B1 53 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2A FB 03 00 35 04 06 00 D5 00 00 C4 [20:03:56]Write i2c OK [20:03:56]MH_I2C_Read... [20:03:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:56]Read from MH i2c: E2 [20:03:56]MH_I2C_Read... [20:03:56]Read from MH i2c: E2 03 00 [20:03:56]MH_I2C_Read... [20:03:56]Read from MH i2c: E2 03 00 4F C2 00 90 00 85 [20:03:56]RAPDU: 90 00 [20:03:56]wFMCommunicate OK [20:03:56]wFMCommunicate request_size=10 [20:03:56]MH_SAM_APDU [20:03:56]CAPDU: 80 0D 02 02 05 AA C1 94 59 7C [20:03:56]Write to MH i2c: E2 0D 00 50 C2 80 0D 02 02 05 00 AA C1 94 59 7C 00 00 6A [20:03:56]Write i2c OK [20:03:56]MH_I2C_Read... [20:03:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:56]Read from MH i2c: E2 [20:03:56]MH_I2C_Read... [20:03:56]Read from MH i2c: E2 03 00 [20:03:56]MH_I2C_Read... [20:03:56]Read from MH i2c: E2 03 00 50 C2 00 90 00 86 [20:03:56]RAPDU: 90 00 [20:03:56]wFMCommunicate OK [20:03:56]wFMCommunicate request_size=4 [20:03:56]MH_SAM_APDU [20:03:56]CAPDU: 80 0D 03 02 [20:03:56]Write to MH i2c: E2 08 00 51 C2 80 0D 03 02 00 00 00 00 8E [20:03:56]Write i2c OK [20:03:56]MH_I2C_Read... [20:03:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:03:56]Read from MH i2c: E2 [20:03:56]MH_I2C_Read... [20:03:56]Read from MH i2c: E2 0B 00 [20:03:56]MH_I2C_Read... [20:03:56]Read from MH i2c: E2 0B 00 51 C2 00 3A 23 FE 93 F6 B5 B0 AA 90 00 82 [20:03:56]RAPDU: 3A 23 FE 93 F6 B5 B0 AA 90 00 [20:03:56]wFMCommunicate OK [20:03:56]SAM_PROTO_SignData done [20:03:56]FM_MakeSignedData done [20:03:56]CreateOFDProtocolMessage [20:03:56]wFMCommunicate request_size=4 [20:03:56]MH_SAM_APDU [20:03:56]CAPDU: 80 11 00 00 [20:03:56]Write to MH i2c: E2 08 00 52 C2 80 11 00 00 00 00 00 00 8E [20:03:56]Write i2c OK [20:03:56]MH_I2C_Read... [20:03:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:57]Read from MH i2c: E2 [20:03:57]MH_I2C_Read... [20:03:57]Read from MH i2c: E2 17 00 [20:03:57]MH_I2C_Read... [20:03:57]Read from MH i2c: E2 17 00 52 C2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 DB [20:03:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:03:57]wFMCommunicate OK [20:03:57]CreateOFDProtocolMessage done [20:03:57]OFDSenderStorePacket 260906 [20:03:57]StoreOFDPacket docnum=260906 [20:03:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 14 F8 07 01 A5 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 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 01 00 00 F4 03 04 00 B1 53 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2A FB 03 00 35 04 06 00 D5 AA C1 94 59 7C 3A 23 FE 93 F6 B5 B0 AA [20:03:57]CheckFolder [20:03:57]dirname=/storage/ofd_packets [20:03:57]CheckFolder done [20:03:57]ProducePacketName [20:03:57]name=ofd_packets/00260906 [20:03:57]NVStorageSaveData ofd_packets/00260906 [20:03:57]File name is /storage/ofd_packets/00260906 [20:03:57]Write 301 bytes [20:03:57]NVStorageSaveData done [20:03:57]OFDSenderStorePacket done [20:03:57]KKMCreateOFDPacket done [20:03:57]NVStorageSaveData kkm_last_timestamp [20:03:57]File name is /storage/kkm_last_timestamp [20:03:57]Write 4 bytes [20:03:57]NVStorageSaveData done [20:03:57]ExternCall_PrintAddStr [20:03:57]wPrintStart [20:03:57]Write to MH i2c: 01 00 00 53 C2 15 [20:03:57]Write i2c OK [20:03:57]MH_I2C_Read... [20:03:57]Read from MH i2c: 01 [20:03:57]MH_I2C_Read... [20:03:57]Read from MH i2c: 01 07 00 [20:03:57]MH_I2C_Read... [20:03:57]Read from MH i2c: 01 07 00 53 C2 00 00 00 00 00 FF 0F 2A [20:03:57]RasterBufferAndPrint [20:03:57]line Счет N : (1)1036459 [20:03:57]line ИНН: 02508201610067 [20:03:57]line Контрольно-Кассовый Чек [20:03:57]line ПРОДАЖА [20:03:57]line ТРК (МРК, ГНК) : 42 [20:03:57]line Товар: 2710124130 [20:03:57]line Аи-92-К-5 [20:03:57]line 2.950 * 67.80 [20:03:57]line = 200.01 [20:03:57]line НДС 12% НСП 1% [20:03:57]line > о реализуемом товаре [20:03:57]line ОКРУГЛЕНИЕ: -0.01 [20:03:57]line ИТОГО: 200.00 [20:03:57]line Внесено: 200.00 [20:03:57]line СДАЧА: 0.00 [20:03:57]line НСП 1% : 1.77 [20:03:57]line НДС 12% : 21.24 [20:03:57]line Наличными: 200.00 [20:03:57]line Безнал.: 0.00 [20:03:57]line Место: АЗС № 94 "Партнер Нефть" [20:03:57]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:03:57]line СНО: Общий режим [20:03:57]line Чек 464 18.08.2024 20:04 [20:03:57]line Смена: 449 ФФД: 1.0 [20:03:57]line ЗНМ: 0300000099 [20:03:57]line РНМ: 0000000000091865 [20:03:57]line Версия ККМ: 001 [20:03:57]line ФМ: 0000000000871820 [20:03:57]line ФД: 260906 [20:03:57]line ФПД: 234929368881532 [20:03:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T200401&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260906&fm=234929368881532&tin=02508201610067®Number=0000000000091865&sum=20000 [20:03:57]written 0, free lines is 4095 [20:03:57]OFD Sender: Processing packet 260906 [packets to send 192, broken 191] [20:03:57]ProducePacketName [20:03:57]name=ofd_packets/00260906 [20:03:57]OFD Sender: To server: pG, [20:03:57]CommunicateWithHost lk.salyk.kg:30040 [20:03:57]ConnectInit lk.salyk.kg [20:03:57]Connected sock=10 [20:03: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 30 0F 01 00 00 14 F8 07 01 A5 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 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 01 00 00 F4 03 04 00 B1 53 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2A FB 03 00 35 04 06 00 D5 AA C1 94 59 7C 3A 23 FE 93 F6 B5 B0 AA [20:03: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 30 4F 00 00 00 ED A2 47 00 4C 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2A FB 03 00 F4 03 04 00 05 FD C1 66 B6 04 01 00 00 AC 01 FA CC 69 0D 58 0F [20:03:57]CommunicateWithHost err = 0 [20:03:57]CheckOFDResponse [20:03:57]1017 (14) - 77093643461234 [20:03:57]1041 (16) - 0000000000871820 [20:03:57]1040 (4) - 260906 [20:03:57]1012 (4) - 18.08.2024 13:54 [20:03:57]1206 (1) - 0 [20:03:57]OFD Sender: Remove packet 260906 [20:03:57]ProducePacketName [20:03:57]name=ofd_packets/00260906 [20:03:57]NVStorageDeleteData [20:03:57]Write to MH i2c: 01 00 00 7E C2 40 [20:03:57]Write i2c OK [20:03:57]MH_I2C_Read... [20:03:57]Read from MH i2c: 01 [20:03:57]MH_I2C_Read... [20:03:57]Read from MH i2c: 01 07 00 [20:03:57]MH_I2C_Read... [20:03:57]Read from MH i2c: 01 07 00 7E C2 00 00 00 00 00 7B 0C CE [20:03:57]RasterBufferAndPrint [20:03:57]line [20:03:57]line [20:03:57]line [20:03:57]line [20:03:57]line [20:03:57]written 0, free lines is 3197 [20:03:57]MH_Cut [20:03:57]Write to MH i2c: D1 01 00 85 C2 01 19 [20:03:57]Write i2c OK [20:03:57]MH_I2C_Read... [20:03:57]Read from MH i2c: D1 [20:03:57]MH_I2C_Read... [20:03:57]Read from MH i2c: D1 01 00 [20:03:57]MH_I2C_Read... [20:03:57]Read from MH i2c: D1 01 00 85 C2 00 18 [20:03:57]Write to MH i2c: 01 00 00 86 C2 48 [20:03:57]Write i2c OK [20:03:57]MH_I2C_Read... [20:03:57]OFD Sender: No OFD packet to send [20:03:58]*** Cut start [20:03:58]*** Purtial cut [20:03:58]*** Stage 1: CUTSNS_PIN = 1 [20:04:00]Read from MH i2c: 01 [20:04:00]MH_I2C_Read... [20:04:00]*** Stop cut motor [20:04:00]*** Cut end [20:04:00]Read from MH i2c: 01 07 00 [20:04:00]MH_I2C_Read... [20:04:00]Read from MH i2c: 01 07 00 86 C2 00 00 00 00 00 FF 0F 5D [20:04:00]process_action close_receipt done [20:04:00]requested_data is exist [20:04:00]produce_requested_data [20:04:00]requested_item fm.sn is exist - process it [20:04:00]wFMCommunicate request_size=4 [20:04:00]MH_SAM_APDU [20:04:00]CAPDU: 80 11 00 00 [20:04:00]Write to MH i2c: E2 08 00 87 C2 80 11 00 00 00 00 00 00 C3 [20:04:00]Write i2c OK [20:04:00]MH_I2C_Read... [20:04:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:04:00]Read from MH i2c: E2 [20:04:00]MH_I2C_Read... [20:04:00]Read from MH i2c: E2 17 00 [20:04:00]MH_I2C_Read... [20:04:00]Read from MH i2c: E2 17 00 87 C2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 10 [20:04:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:04:00]wFMCommunicate OK [20:04:00]requested_item fd.num is exist - process it [20:04:00]SAM_PROTO_GetFieldsCounters [20:04:00]wFMCommunicate request_size=4 [20:04:00]MH_SAM_APDU [20:04:00]CAPDU: 80 13 00 00 [20:04:00]Write to MH i2c: E2 08 00 88 C2 80 13 00 00 00 00 00 00 C6 [20:04:00]Write i2c OK [20:04:00]MH_I2C_Read... [20:04:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:04:00]Read from MH i2c: E2 [20:04:00]MH_I2C_Read... [20:04:00]Read from MH i2c: E2 62 00 [20:04:00]MH_I2C_Read... [20:04:00]Read from MH i2c: E2 62 00 88 C2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 2A FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 D0 01 00 00 5E 04 04 00 D0 01 00 00 57 04 04 00 D1 01 00 00 19 04 04 00 00 00 00 00 90 00 42 [20:04: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 2A FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 D0 01 00 00 5E 04 04 00 D0 01 00 00 57 04 04 00 D1 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:04:00]wFMCommunicate OK [20:04:00]SAM_PROTO_GetFieldsCounters done [20:04:00]requested_item shift.num is exist - process it [20:04:00]requested_item shift.opened is exist - process it [20:04:00]req_shift_opened [20:04:00]FM_GetShiftState [20:04:00]SAM_PROTO_GetShiftState [20:04:00]wFMCommunicate request_size=4 [20:04:00]MH_SAM_APDU [20:04:00]CAPDU: 80 13 01 00 [20:04:00]Write to MH i2c: E2 08 00 89 C2 80 13 01 00 00 00 00 00 C8 [20:04:00]Write i2c OK [20:04:00]MH_I2C_Read... [20:04:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:04:00]Read from MH i2c: E2 [20:04:00]MH_I2C_Read... [20:04:00]Read from MH i2c: E2 0E 00 [20:04:00]MH_I2C_Read... [20:04:00]Read from MH i2c: E2 0E 00 89 C2 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 05 [20:04:00]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:04:00]wFMCommunicate OK [20:04:00]SAM_PROTO_GetShiftState done [20:04:00]FM_GetShiftState done [20:04:00]req_shift_opened done [20:04:00]requested_item shift.open_date is exist - process it [20:04:00]req_shift_open_date [20:04:00]req_shift_open_date done [20:04:00]produce_requested_data done [20:04:00]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260906,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:04:00]process_action_free close_receipt [20:04:00]json_value_free [20:04:00]json_value_free done [20:04:00]process_json_proto returns [20:04:00]Send response to host [20:04:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260906,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:04:00]free response buf [20:04:00]execute_script done [20:04:00]execute_script returns [20:04:00]free content buf [20:04:00]Sock 7.Close socket [20:04:00]Sock 7.Thread stoped [20:04:02]OFD Sender: No OFD packet to send [20:04:07]OFD Sender: No OFD packet to send [20:04:12]OFD Sender: No OFD packet to send [20:04:17]OFD Sender: No OFD packet to send [20:04:22]OFD Sender: No OFD packet to send [20:04:27]OFD Sender: No OFD packet to send [20:04:32]OFD Sender: No OFD packet to send [20:04:37]OFD Sender: No OFD packet to send [20:04:39]accept exits with 9 [20:04:39]New connection [20:04:39]New thread 3066617188 created [20:04:39]Thread 3066473828 joined [20:04:39]Waiting for new connection... [20:04:39] Sock 9.Parse request [20:04:39]Sock 9.Check first char [20:04:39]Sock 9.First char is OK [20:04:39]request: POST /json_proto HTTP/1.0 [20:04:39]Method: POST [20:04:39]URL: /json_proto [20:04:39]Method is POST - this is cgi request [20:04:39]url: /json_proto [20:04:39]query_string will be loaded in cgi processing [20:04:39]execute_cgi json_proto POST (null) [20:04:39]execute_cgi path=json_proto method=POST [20:04:39]POST find Content-Length [20:04:39]Host: 172.17.55.133:8080 [20:04:39]Content-Length: 804 [20:04:39]Content-Type: application/json [20:04:39] [20:04:39]POST finish read [20:04:39]Found Content-Length = 804 [20:04:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036460", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:04:39]execute_script... [20:04: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)1036460", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:04:39]POST & json_proto [20:04:39]process_json_proto [20:04:39]json parsed OK: [20:04:39]protocol is kg_v1.0 [20:04:39]action value=close_receipt [20:04:39]process_action close_receipt [20:04:39]cmd_close_receipt [20:04:39]MH_GetDate [20:04:39]Write to MH i2c: F0 00 00 8A C2 3B [20:04:39]Write i2c OK [20:04:39]MH_I2C_Read... [20:04:39]Read from MH i2c: F0 [20:04:39]MH_I2C_Read... [20:04:39]Read from MH i2c: F0 09 00 [20:04:39]MH_I2C_Read... [20:04:39]Read from MH i2c: F0 09 00 8A C2 00 DE 53 C2 66 34 48 D8 65 56 [20:04:39]GetLastDocTimeStamp 1724011441 [20:04:39]current date 1724011486 [20:04:39]FM_GetShiftState [20:04:39]SAM_PROTO_GetShiftState [20:04:39]wFMCommunicate request_size=4 [20:04:39]MH_SAM_APDU [20:04:39]CAPDU: 80 13 01 00 [20:04:39]Write to MH i2c: E2 08 00 8B C2 80 13 01 00 00 00 00 00 CA [20:04:39]Write i2c OK [20:04:39]MH_I2C_Read... [20:04:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:04:39]Read from MH i2c: E2 [20:04:39]MH_I2C_Read... [20:04:39]Read from MH i2c: E2 0E 00 [20:04:39]MH_I2C_Read... [20:04:39]Read from MH i2c: E2 0E 00 8B C2 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 07 [20:04:39]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:04:39]wFMCommunicate OK [20:04:39]SAM_PROTO_GetShiftState done [20:04:39]FM_GetShiftState done [20:04:39]opened in 1723940556 [20:04:39]opened+sec_in_day 1724026956 [20:04:39]quantity*price = 100021 [20:04:39]sum+1 = 100023 [20:04:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 465 18.08.2024 20:04 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260907 ФПД: 279166348054550 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T200446&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260907&fm=279166348054550&tin=02508201610067®Number=0000000000091865&sum=100022 [20:04:40]StoreToDocumentArchive [20:04:40]shift 449 fd 260907 [20:04:40]save to /storage/0449/doc_00260907 [20:04:40]save last doc name /storage/0449/doc_00260907 to /storage/kkm_last_doc_name [20:04:40]save OK [20:04:40]Clear old archive folders... [20:04:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:04:40]tlvbuf is 00451880 [20:04:40]SAM_PROTO_ClearQueue [20:04:40]wFMCommunicate request_size=4 [20:04:40]MH_SAM_APDU [20:04:40]CAPDU: 80 09 00 00 [20:04:40]Write to MH i2c: E2 08 00 98 C2 80 09 00 00 00 00 00 00 CC [20:04:40]Write i2c OK [20:04:40]MH_I2C_Read... [20:04:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:04:40]Read from MH i2c: E2 [20:04:40]MH_I2C_Read... [20:04:40]Read from MH i2c: E2 03 00 [20:04:40]MH_I2C_Read... [20:04:40]Read from MH i2c: E2 03 00 98 C2 00 90 00 CE [20:04:40]RAPDU: 90 00 [20:04:40]wFMCommunicate OK [20:04:40]SAM_PROTO_ClearQueue done [20:04:40]KKMCreateOFDPacket [20:04:40]OFDProtocolAddRootSTLVToBuf [20:04:40]FM_MakeSignedData [20:04:40]FM_MakeSignedData [20:04:40]SAM_PROTO_SignData [20:04:40]wFMCommunicate request_size=4 [20:04:40]MH_SAM_APDU [20:04:40]CAPDU: 80 0D 01 02 [20:04:40]Write to MH i2c: E2 08 00 99 C2 80 0D 01 02 00 00 00 00 D4 [20:04:40]Write i2c OK [20:04:40]MH_I2C_Read... [20:04:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:04:40]Read from MH i2c: E2 [20:04:40]MH_I2C_Read... [20:04:40]Read from MH i2c: E2 03 00 [20:04:40]MH_I2C_Read... [20:04:40]Read from MH i2c: E2 03 00 99 C2 00 90 00 CF [20:04:40]RAPDU: 90 00 [20:04:40]wFMCommunicate OK [20:04:40]wFMCommunicate request_size=255 [20:04:40]MH_SAM_APDU [20:04:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 01 00 00 F4 03 04 00 DE 53 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2B FB 03 00 35 04 06 00 FD [20:04:40]Write to MH i2c: E2 02 01 9A C2 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 01 00 00 F4 03 04 00 DE 53 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2B FB 03 00 35 04 06 00 FD 00 00 BD [20:04:40]Write i2c OK [20:04:40]MH_I2C_Read... [20:04:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:04:40]Read from MH i2c: E2 [20:04:40]MH_I2C_Read... [20:04:40]Read from MH i2c: E2 03 00 [20:04:40]MH_I2C_Read... [20:04:40]Read from MH i2c: E2 03 00 9A C2 00 90 00 D0 [20:04:40]RAPDU: 90 00 [20:04:40]wFMCommunicate OK [20:04:40]wFMCommunicate request_size=10 [20:04:40]MH_SAM_APDU [20:04:40]CAPDU: 80 0D 02 02 05 E6 7B 02 50 16 [20:04:40]Write to MH i2c: E2 0D 00 9B C2 80 0D 02 02 05 00 E6 7B 02 50 16 00 00 AA [20:04:40]Write i2c OK [20:04:40]MH_I2C_Read... [20:04:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:04:41]Read from MH i2c: E2 [20:04:41]MH_I2C_Read... [20:04:41]Read from MH i2c: E2 03 00 [20:04:41]MH_I2C_Read... [20:04:41]Read from MH i2c: E2 03 00 9B C2 00 90 00 D1 [20:04:41]RAPDU: 90 00 [20:04:41]wFMCommunicate OK [20:04:41]wFMCommunicate request_size=4 [20:04:41]MH_SAM_APDU [20:04:41]CAPDU: 80 0D 03 02 [20:04:41]Write to MH i2c: E2 08 00 9C C2 80 0D 03 02 00 00 00 00 D9 [20:04:41]Write i2c OK [20:04:41]MH_I2C_Read... [20:04:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:04:41]Read from MH i2c: E2 [20:04:41]MH_I2C_Read... [20:04:41]Read from MH i2c: E2 0B 00 [20:04:41]MH_I2C_Read... [20:04:41]Read from MH i2c: E2 0B 00 9C C2 00 D3 57 1A C8 55 65 E9 34 90 00 BD [20:04:41]RAPDU: D3 57 1A C8 55 65 E9 34 90 00 [20:04:41]wFMCommunicate OK [20:04:41]SAM_PROTO_SignData done [20:04:41]FM_MakeSignedData done [20:04:41]CreateOFDProtocolMessage [20:04:41]wFMCommunicate request_size=4 [20:04:41]MH_SAM_APDU [20:04:41]CAPDU: 80 11 00 00 [20:04:41]Write to MH i2c: E2 08 00 9D C2 80 11 00 00 00 00 00 00 D9 [20:04:41]Write i2c OK [20:04:41]MH_I2C_Read... [20:04:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:04:41]Read from MH i2c: E2 [20:04:41]MH_I2C_Read... [20:04:41]Read from MH i2c: E2 17 00 [20:04:41]MH_I2C_Read... [20:04:41]Read from MH i2c: E2 17 00 9D C2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 26 [20:04:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:04:41]wFMCommunicate OK [20:04:41]CreateOFDProtocolMessage done [20:04:41]OFDSenderStorePacket 260907 [20:04:41]StoreOFDPacket docnum=260907 [20:04:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 6F 32 07 01 5F 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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 01 00 00 F4 03 04 00 DE 53 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2B FB 03 00 35 04 06 00 FD E6 7B 02 50 16 D3 57 1A C8 55 65 E9 34 [20:04:41]CheckFolder [20:04:41]dirname=/storage/ofd_packets [20:04:41]CheckFolder done [20:04:41]ProducePacketName [20:04:41]name=ofd_packets/00260907 [20:04:41]NVStorageSaveData ofd_packets/00260907 [20:04:41]File name is /storage/ofd_packets/00260907 [20:04:41]Write 301 bytes [20:04:41]NVStorageSaveData done [20:04:41]OFDSenderStorePacket done [20:04:41]KKMCreateOFDPacket done [20:04:41]NVStorageSaveData kkm_last_timestamp [20:04:41]File name is /storage/kkm_last_timestamp [20:04:41]Write 4 bytes [20:04:41]NVStorageSaveData done [20:04:41]ExternCall_PrintAddStr [20:04:41]wPrintStart [20:04:41]Write to MH i2c: 01 00 00 9E C2 60 [20:04:41]Write i2c OK [20:04:41]MH_I2C_Read... [20:04:41]Read from MH i2c: 01 [20:04:41]MH_I2C_Read... [20:04:41]Read from MH i2c: 01 07 00 [20:04:41]MH_I2C_Read... [20:04:41]Read from MH i2c: 01 07 00 9E C2 00 00 00 00 00 FF 0F 75 [20:04:41]RasterBufferAndPrint [20:04:41]line Счет N : (1)1036460 [20:04:41]line ИНН: 02508201610067 [20:04:41]line Контрольно-Кассовый Чек [20:04:41]line ПРОДАЖА [20:04:41]line ТРК (МРК, ГНК) : 13 [20:04:41]line Товар: 2710124500 [20:04:41]line Аи-95-К-5 [20:04:41]line 13.480 * 74.20 [20:04:41]line = 1000.22 [20:04:41]line НДС 12% НСП 1% [20:04:41]line > о реализуемом товаре [20:04:41]line ИТОГО: 1000.22 [20:04:41]line НСП 1% : 8.85 [20:04:41]line НДС 12% : 106.22 [20:04:41]line Наличными: 0.00 [20:04:41]line Безнал.: 1000.22 [20:04:41]line Место: АЗС № 94 "Партнер Нефть" [20:04:41]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:04:41]line СНО: Общий режим [20:04:41]line Чек 465 18.08.2024 20:04 [20:04:41]line Смена: 449 ФФД: 1.0 [20:04:41]line ЗНМ: 0300000099 [20:04:41]line РНМ: 0000000000091865 [20:04:41]line Версия ККМ: 001 [20:04:41]line Платежная система: O! деньги [20:04:41]line ФМ: 0000000000871820 [20:04:41]line ФД: 260907 [20:04:41]line ФПД: 279166348054550 [20:04:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T200446&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260907&fm=279166348054550&tin=02508201610067®Number=0000000000091865&sum=100022 [20:04:41]written 0, free lines is 4095 [20:04:41]OFD Sender: Processing packet 260907 [packets to send 192, broken 191] [20:04:41]ProducePacketName [20:04:41]name=ofd_packets/00260907 [20:04:41]OFD Sender: To server: pG, [20:04:41]CommunicateWithHost lk.salyk.kg:30040 [20:04:41]ConnectInit lk.salyk.kg [20:04:41]Connected sock=7 [20:04: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 30 0F 01 00 00 6F 32 07 01 5F 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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 01 00 00 F4 03 04 00 DE 53 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2B FB 03 00 35 04 06 00 FD E6 7B 02 50 16 D3 57 1A C8 55 65 E9 34 [20:04: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 30 4F 00 00 00 8B B9 47 00 1E DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2B FB 03 00 F4 03 04 00 31 FD C1 66 B6 04 01 00 00 13 57 85 77 27 82 15 48 [20:04:41]CommunicateWithHost err = 0 [20:04:41]CheckOFDResponse [20:04:41]1017 (14) - 77093643461234 [20:04:41]1041 (16) - 0000000000871820 [20:04:41]1040 (4) - 260907 [20:04:41]1012 (4) - 18.08.2024 13:54 [20:04:41]1206 (1) - 0 [20:04:41]OFD Sender: Remove packet 260907 [20:04:41]ProducePacketName [20:04:41]name=ofd_packets/00260907 [20:04:41]NVStorageDeleteData [20:04:41]Write to MH i2c: 01 00 00 C8 C2 8A [20:04:41]Write i2c OK [20:04:41]MH_I2C_Read... [20:04:41]Read from MH i2c: 01 [20:04:41]MH_I2C_Read... [20:04:41]Read from MH i2c: 01 07 00 [20:04:41]MH_I2C_Read... [20:04:41]Read from MH i2c: 01 07 00 C8 C2 00 00 00 00 00 94 0C 31 [20:04:41]RasterBufferAndPrint [20:04:41]line [20:04:41]line [20:04:41]line [20:04:41]line [20:04:41]line [20:04:41]written 0, free lines is 3223 [20:04:41]MH_Cut [20:04:41]Write to MH i2c: D1 01 00 CF C2 01 63 [20:04:41]Write i2c OK [20:04:41]MH_I2C_Read... [20:04:41]Read from MH i2c: D1 [20:04:41]MH_I2C_Read... [20:04:41]Read from MH i2c: D1 01 00 [20:04:41]MH_I2C_Read... [20:04:41]Read from MH i2c: D1 01 00 CF C2 00 62 [20:04:41]Write to MH i2c: 01 00 00 D0 C2 92 [20:04:41]Write i2c OK [20:04:41]MH_I2C_Read... [20:04:41]OFD Sender: No OFD packet to send [20:04:42]*** Cut start [20:04:42]*** Purtial cut [20:04:42]*** Stage 1: CUTSNS_PIN = 1 [20:04:44]Read from MH i2c: 01 [20:04:44]MH_I2C_Read... [20:04:44]*** Stop cut motor [20:04:44]*** Cut end [20:04:44]Read from MH i2c: 01 07 00 [20:04:44]MH_I2C_Read... [20:04:44]Read from MH i2c: 01 07 00 D0 C2 00 00 00 00 00 FF 0F A7 [20:04:44]process_action close_receipt done [20:04:44]requested_data is exist [20:04:44]produce_requested_data [20:04:44]requested_item fm.sn is exist - process it [20:04:44]wFMCommunicate request_size=4 [20:04:44]MH_SAM_APDU [20:04:44]CAPDU: 80 11 00 00 [20:04:44]Write to MH i2c: E2 08 00 D1 C2 80 11 00 00 00 00 00 00 0D [20:04:44]Write i2c OK [20:04:44]MH_I2C_Read... [20:04:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:04:44]Read from MH i2c: E2 [20:04:44]MH_I2C_Read... [20:04:44]Read from MH i2c: E2 17 00 [20:04:44]MH_I2C_Read... [20:04:44]Read from MH i2c: E2 17 00 D1 C2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 5A [20:04:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:04:44]wFMCommunicate OK [20:04:44]requested_item fd.num is exist - process it [20:04:44]SAM_PROTO_GetFieldsCounters [20:04:44]wFMCommunicate request_size=4 [20:04:44]MH_SAM_APDU [20:04:44]CAPDU: 80 13 00 00 [20:04:44]Write to MH i2c: E2 08 00 D2 C2 80 13 00 00 00 00 00 00 10 [20:04:44]Write i2c OK [20:04:44]MH_I2C_Read... [20:04:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:04:44]Read from MH i2c: E2 [20:04:44]MH_I2C_Read... [20:04:44]Read from MH i2c: E2 62 00 [20:04:44]MH_I2C_Read... [20:04:44]Read from MH i2c: E2 62 00 D2 C2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 2B FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 D1 01 00 00 5E 04 04 00 D1 01 00 00 57 04 04 00 D2 01 00 00 19 04 04 00 00 00 00 00 90 00 90 [20:04: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 2B FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 D1 01 00 00 5E 04 04 00 D1 01 00 00 57 04 04 00 D2 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:04:44]wFMCommunicate OK [20:04:44]SAM_PROTO_GetFieldsCounters done [20:04:44]requested_item shift.num is exist - process it [20:04:44]requested_item shift.opened is exist - process it [20:04:44]req_shift_opened [20:04:44]FM_GetShiftState [20:04:44]SAM_PROTO_GetShiftState [20:04:44]wFMCommunicate request_size=4 [20:04:44]MH_SAM_APDU [20:04:44]CAPDU: 80 13 01 00 [20:04:44]Write to MH i2c: E2 08 00 D3 C2 80 13 01 00 00 00 00 00 12 [20:04:44]Write i2c OK [20:04:44]MH_I2C_Read... [20:04:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:04:44]Read from MH i2c: E2 [20:04:44]MH_I2C_Read... [20:04:44]Read from MH i2c: E2 0E 00 [20:04:44]MH_I2C_Read... [20:04:44]Read from MH i2c: E2 0E 00 D3 C2 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 4F [20:04:44]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:04:44]wFMCommunicate OK [20:04:44]SAM_PROTO_GetShiftState done [20:04:44]FM_GetShiftState done [20:04:44]req_shift_opened done [20:04:44]requested_item shift.open_date is exist - process it [20:04:44]req_shift_open_date [20:04:44]req_shift_open_date done [20:04:44]produce_requested_data done [20:04:44]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260907,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:04:44]process_action_free close_receipt [20:04:44]json_value_free [20:04:44]json_value_free done [20:04:44]process_json_proto returns [20:04:44]Send response to host [20:04:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260907,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:04:44]free response buf [20:04:44]execute_script done [20:04:44]execute_script returns [20:04:44]free content buf [20:04:44]Sock 9.Close socket [20:04:44]Sock 9.Thread stoped [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:07]OFD Sender: No OFD packet to send [20:05:12]OFD Sender: No OFD packet to send [20:05:17]OFD Sender: No OFD packet to send [20:05:22]OFD Sender: No OFD packet to send [20:05:27]OFD Sender: No OFD packet to send [20:05:31]accept exits with 10 [20:05:31]New connection [20:05:31]New thread 3066473828 created [20:05:31]Thread 3066617188 joined [20:05:31]Waiting for new connection... [20:05:31] Sock 10.Parse request [20:05:31]Sock 10.Check first char [20:05:31]Sock 10.First char is OK [20:05:31]request: POST /json_proto HTTP/1.0 [20:05:31]Method: POST [20:05:31]URL: /json_proto [20:05:31]Method is POST - this is cgi request [20:05:31]url: /json_proto [20:05:31]query_string will be loaded in cgi processing [20:05:31]execute_cgi json_proto POST (null) [20:05:31]execute_cgi path=json_proto method=POST [20:05:31]POST find Content-Length [20:05:31]Host: 172.17.55.133:8080 [20:05:31]Content-Length: 678 [20:05:31]Content-Type: application/json [20:05:31] [20:05:31]POST finish read [20:05:31]Found Content-Length = 678 [20:05:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:31]execute_script... [20:05: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)1036461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:31]POST & json_proto [20:05:31]process_json_proto [20:05:31]json parsed OK: [20:05:31]protocol is kg_v1.0 [20:05:31]action value=close_receipt [20:05:31]process_action close_receipt [20:05:31]cmd_close_receipt [20:05:31]MH_GetDate [20:05:31]Write to MH i2c: F0 00 00 D4 C2 85 [20:05:31]Write i2c OK [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: F0 [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: F0 09 00 [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: F0 09 00 D4 C2 00 12 54 C2 66 34 48 D8 65 D5 [20:05:31]GetLastDocTimeStamp 1724011486 [20:05:31]current date 1724011538 [20:05:31]FM_GetShiftState [20:05:31]SAM_PROTO_GetShiftState [20:05:31]wFMCommunicate request_size=4 [20:05:31]MH_SAM_APDU [20:05:31]CAPDU: 80 13 01 00 [20:05:31]Write to MH i2c: E2 08 00 D5 C2 80 13 01 00 00 00 00 00 14 [20:05:31]Write i2c OK [20:05:31]MH_I2C_Read... [20:05:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:31]Read from MH i2c: E2 [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: E2 0E 00 [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: E2 0E 00 D5 C2 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 51 [20:05:31]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:05:31]wFMCommunicate OK [20:05:31]SAM_PROTO_GetShiftState done [20:05:31]FM_GetShiftState done [20:05:31]opened in 1723940556 [20:05:31]opened+sec_in_day 1724026956 [20:05:31]quantity*price = 30035 [20:05:31]sum+1 = 30036 [20:05:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 466 18.08.2024 20:05 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260908 ФПД: 2344890797063 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T200538&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260908&fm=2344890797063&tin=02508201610067®Number=0000000000091865&sum=30000 [20:05:32]StoreToDocumentArchive [20:05:32]shift 449 fd 260908 [20:05:32]save to /storage/0449/doc_00260908 [20:05:32]save last doc name /storage/0449/doc_00260908 to /storage/kkm_last_doc_name [20:05:32]save OK [20:05:32]Clear old archive folders... [20:05:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:05:32]tlvbuf is 0057B3E0 [20:05:32]SAM_PROTO_ClearQueue [20:05:32]wFMCommunicate request_size=4 [20:05:32]MH_SAM_APDU [20:05:32]CAPDU: 80 09 00 00 [20:05:32]Write to MH i2c: E2 08 00 E2 C2 80 09 00 00 00 00 00 00 16 [20:05:32]Write i2c OK [20:05:32]MH_I2C_Read... [20:05:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:32]Read from MH i2c: E2 [20:05:32]MH_I2C_Read... [20:05:32]Read from MH i2c: E2 03 00 [20:05:32]MH_I2C_Read... [20:05:32]Read from MH i2c: E2 03 00 E2 C2 00 90 00 18 [20:05:32]RAPDU: 90 00 [20:05:32]wFMCommunicate OK [20:05:32]SAM_PROTO_ClearQueue done [20:05:32]KKMCreateOFDPacket [20:05:32]OFDProtocolAddRootSTLVToBuf [20:05:32]FM_MakeSignedData [20:05:32]FM_MakeSignedData [20:05:32]SAM_PROTO_SignData [20:05:32]wFMCommunicate request_size=4 [20:05:32]MH_SAM_APDU [20:05:32]CAPDU: 80 0D 01 02 [20:05:32]Write to MH i2c: E2 08 00 E3 C2 80 0D 01 02 00 00 00 00 1E [20:05:32]Write i2c OK [20:05:32]MH_I2C_Read... [20:05:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:32]Read from MH i2c: E2 [20:05:32]MH_I2C_Read... [20:05:32]Read from MH i2c: E2 03 00 [20:05:32]MH_I2C_Read... [20:05:32]Read from MH i2c: E2 03 00 E3 C2 00 90 00 19 [20:05:32]RAPDU: 90 00 [20:05:32]wFMCommunicate OK [20:05:32]wFMCommunicate request_size=255 [20:05:32]MH_SAM_APDU [20:05:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 01 00 00 F4 03 04 00 12 54 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2C FB 03 00 35 04 06 00 02 [20:05:32]Write to MH i2c: E2 02 01 E4 C2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 01 00 00 F4 03 04 00 12 54 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2C FB 03 00 35 04 06 00 02 00 00 09 [20:05:32]Write i2c OK [20:05:32]MH_I2C_Read... [20:05:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:33]Read from MH i2c: E2 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 03 00 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 03 00 E4 C2 00 90 00 1A [20:05:33]RAPDU: 90 00 [20:05:33]wFMCommunicate OK [20:05:33]wFMCommunicate request_size=10 [20:05:33]MH_SAM_APDU [20:05:33]CAPDU: 80 0D 02 02 05 21 F6 62 0C 07 [20:05:33]Write to MH i2c: E2 0D 00 E5 C2 80 0D 02 02 05 00 21 F6 62 0C 07 00 00 B7 [20:05:33]Write i2c OK [20:05:33]MH_I2C_Read... [20:05:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:33]Read from MH i2c: E2 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 03 00 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 03 00 E5 C2 00 90 00 1B [20:05:33]RAPDU: 90 00 [20:05:33]wFMCommunicate OK [20:05:33]wFMCommunicate request_size=4 [20:05:33]MH_SAM_APDU [20:05:33]CAPDU: 80 0D 03 02 [20:05:33]Write to MH i2c: E2 08 00 E6 C2 80 0D 03 02 00 00 00 00 23 [20:05:33]Write i2c OK [20:05:33]MH_I2C_Read... [20:05:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:33]Read from MH i2c: E2 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 0B 00 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 0B 00 E6 C2 00 21 31 F8 8F 37 D9 29 7B 90 00 B1 [20:05:33]RAPDU: 21 31 F8 8F 37 D9 29 7B 90 00 [20:05:33]wFMCommunicate OK [20:05:33]SAM_PROTO_SignData done [20:05:33]FM_MakeSignedData done [20:05:33]CreateOFDProtocolMessage [20:05:33]wFMCommunicate request_size=4 [20:05:33]MH_SAM_APDU [20:05:33]CAPDU: 80 11 00 00 [20:05:33]Write to MH i2c: E2 08 00 E7 C2 80 11 00 00 00 00 00 00 23 [20:05:33]Write i2c OK [20:05:33]MH_I2C_Read... [20:05:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:33]Read from MH i2c: E2 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 17 00 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 17 00 E7 C2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 70 [20:05:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:05:33]wFMCommunicate OK [20:05:33]CreateOFDProtocolMessage done [20:05:33]OFDSenderStorePacket 260908 [20:05:33]StoreOFDPacket docnum=260908 [20:05:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 54 2B 07 01 0D 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 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 01 00 00 F4 03 04 00 12 54 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2C FB 03 00 35 04 06 00 02 21 F6 62 0C 07 21 31 F8 8F 37 D9 29 7B [20:05:33]CheckFolder [20:05:33]dirname=/storage/ofd_packets [20:05:33]CheckFolder done [20:05:33]ProducePacketName [20:05:33]name=ofd_packets/00260908 [20:05:33]NVStorageSaveData ofd_packets/00260908 [20:05:33]File name is /storage/ofd_packets/00260908 [20:05:33]Write 301 bytes [20:05:33]NVStorageSaveData done [20:05:33]OFDSenderStorePacket done [20:05:33]KKMCreateOFDPacket done [20:05:33]NVStorageSaveData kkm_last_timestamp [20:05:33]File name is /storage/kkm_last_timestamp [20:05:33]Write 4 bytes [20:05:33]NVStorageSaveData done [20:05:33]ExternCall_PrintAddStr [20:05:33]wPrintStart [20:05:33]Write to MH i2c: 01 00 00 E8 C2 AA [20:05:33]Write i2c OK [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: 01 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: 01 07 00 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: 01 07 00 E8 C2 00 00 00 00 00 FF 0F BF [20:05:33]RasterBufferAndPrint [20:05:33]line Счет N : (1)1036461 [20:05:33]line ИНН: 02508201610067 [20:05:33]line Контрольно-Кассовый Чек [20:05:33]line ПРОДАЖА [20:05:33]line ТРК (МРК, ГНК) : 32 [20:05:33]line Товар: 2710124130 [20:05:33]line Аи-92-К-5 [20:05:33]line 4.430 * 67.80 [20:05:33]line = 300.35 [20:05:33]line НДС 12% НСП 1% [20:05:33]line > о реализуемом товаре [20:05:33]line ОКРУГЛЕНИЕ: -0.35 [20:05:33]line ИТОГО: 300.00 [20:05:33]line Внесено: 300.00 [20:05:33]line СДАЧА: 0.00 [20:05:33]line НСП 1% : 2.66 [20:05:33]line НДС 12% : 31.90 [20:05:33]line Наличными: 300.00 [20:05:33]line Безнал.: 0.00 [20:05:33]line Место: АЗС № 94 "Партнер Нефть" [20:05:33]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:05:33]line СНО: Общий режим [20:05:33]line Чек 466 18.08.2024 20:05 [20:05:33]line Смена: 449 ФФД: 1.0 [20:05:33]line ЗНМ: 0300000099 [20:05:33]line РНМ: 0000000000091865 [20:05:33]line Версия ККМ: 001 [20:05:33]line ФМ: 0000000000871820 [20:05:33]line ФД: 260908 [20:05:33]line ФПД: 2344890797063 [20:05:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T200538&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260908&fm=2344890797063&tin=02508201610067®Number=0000000000091865&sum=30000 [20:05:33]OFD Sender: Processing packet 260908 [packets to send 192, broken 191] [20:05:33]ProducePacketName [20:05:33]name=ofd_packets/00260908 [20:05:33]OFD Sender: To server: pG, [20:05:33]CommunicateWithHost lk.salyk.kg:30040 [20:05:33]ConnectInit lk.salyk.kg [20:05:33]written 0, free lines is 4095 [20:05:33]Connected sock=9 [20:05: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 30 0F 01 00 00 54 2B 07 01 0D 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 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 01 00 00 F4 03 04 00 12 54 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2C FB 03 00 35 04 06 00 02 21 F6 62 0C 07 21 31 F8 8F 37 D9 29 7B [20:05: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 30 4F 00 00 00 06 25 47 00 F9 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 2C FB 03 00 F4 03 04 00 66 FD C1 66 B6 04 01 00 00 88 C3 B7 4D B7 90 5C DA [20:05:34]CommunicateWithHost err = 0 [20:05:34]CheckOFDResponse [20:05:34]1017 (14) - 77093643461234 [20:05:34]1041 (16) - 0000000000871820 [20:05:34]1040 (4) - 260908 [20:05:34]1012 (4) - 18.08.2024 13:55 [20:05:34]1206 (1) - 0 [20:05:34]OFD Sender: Remove packet 260908 [20:05:34]ProducePacketName [20:05:34]name=ofd_packets/00260908 [20:05:34]NVStorageDeleteData [20:05:34]Write to MH i2c: 01 00 00 13 C3 D6 [20:05:34]Write i2c OK [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: 01 [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: 01 07 00 [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: 01 07 00 13 C3 00 00 00 00 00 7E 0C 67 [20:05:34]RasterBufferAndPrint [20:05:34]line [20:05:34]line [20:05:34]line [20:05:34]line [20:05:34]line [20:05:34]written 0, free lines is 3202 [20:05:34]MH_Cut [20:05:34]Write to MH i2c: D1 01 00 1A C3 01 AF [20:05:34]Write i2c OK [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: D1 [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: D1 01 00 [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: D1 01 00 1A C3 00 AE [20:05:34]Write to MH i2c: 01 00 00 1B C3 DE [20:05:34]Write i2c OK [20:05:34]MH_I2C_Read... [20:05:34]OFD Sender: No OFD packet to send [20:05:35]*** Cut start [20:05:35]*** Purtial cut [20:05:35]*** Stage 1: CUTSNS_PIN = 1 [20:05:37]Read from MH i2c: 01 [20:05:37]MH_I2C_Read... [20:05:37]*** Stop cut motor [20:05:37]*** Cut end [20:05:37]Read from MH i2c: 01 07 00 [20:05:37]MH_I2C_Read... [20:05:37]Read from MH i2c: 01 07 00 1B C3 00 00 00 00 00 FF 0F F3 [20:05:37]process_action close_receipt done [20:05:37]requested_data is exist [20:05:37]produce_requested_data [20:05:37]requested_item fm.sn is exist - process it [20:05:37]wFMCommunicate request_size=4 [20:05:37]MH_SAM_APDU [20:05:37]CAPDU: 80 11 00 00 [20:05:37]Write to MH i2c: E2 08 00 1C C3 80 11 00 00 00 00 00 00 59 [20:05:37]Write i2c OK [20:05:37]MH_I2C_Read... [20:05:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:37]Read from MH i2c: E2 [20:05:37]MH_I2C_Read... [20:05:37]Read from MH i2c: E2 17 00 [20:05:37]MH_I2C_Read... [20:05:37]Read from MH i2c: E2 17 00 1C C3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A6 [20:05:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:05:37]wFMCommunicate OK [20:05:37]requested_item fd.num is exist - process it [20:05:37]SAM_PROTO_GetFieldsCounters [20:05:37]wFMCommunicate request_size=4 [20:05:37]MH_SAM_APDU [20:05:37]CAPDU: 80 13 00 00 [20:05:37]Write to MH i2c: E2 08 00 1D C3 80 13 00 00 00 00 00 00 5C [20:05:37]Write i2c OK [20:05:37]MH_I2C_Read... [20:05:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:37]Read from MH i2c: E2 [20:05:37]MH_I2C_Read... [20:05:37]Read from MH i2c: E2 62 00 [20:05:37]MH_I2C_Read... [20:05:37]Read from MH i2c: E2 62 00 1D C3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 2C FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 D2 01 00 00 5E 04 04 00 D2 01 00 00 57 04 04 00 D3 01 00 00 19 04 04 00 00 00 00 00 90 00 E0 [20:05: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 2C FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 D2 01 00 00 5E 04 04 00 D2 01 00 00 57 04 04 00 D3 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:05:37]wFMCommunicate OK [20:05:37]SAM_PROTO_GetFieldsCounters done [20:05:37]requested_item shift.num is exist - process it [20:05:37]requested_item shift.opened is exist - process it [20:05:37]req_shift_opened [20:05:37]FM_GetShiftState [20:05:37]SAM_PROTO_GetShiftState [20:05:37]wFMCommunicate request_size=4 [20:05:37]MH_SAM_APDU [20:05:37]CAPDU: 80 13 01 00 [20:05:37]Write to MH i2c: E2 08 00 1E C3 80 13 01 00 00 00 00 00 5E [20:05:37]Write i2c OK [20:05:37]MH_I2C_Read... [20:05:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:37]Read from MH i2c: E2 [20:05:37]MH_I2C_Read... [20:05:37]Read from MH i2c: E2 0E 00 [20:05:37]MH_I2C_Read... [20:05:37]Read from MH i2c: E2 0E 00 1E C3 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 9B [20:05:37]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:05:37]wFMCommunicate OK [20:05:37]SAM_PROTO_GetShiftState done [20:05:37]FM_GetShiftState done [20:05:37]req_shift_opened done [20:05:37]requested_item shift.open_date is exist - process it [20:05:37]req_shift_open_date [20:05:37]req_shift_open_date done [20:05:37]produce_requested_data done [20:05:37]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260908,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:05:37]process_action_free close_receipt [20:05:37]json_value_free [20:05:37]json_value_free done [20:05:37]process_json_proto returns [20:05:37]Send response to host [20:05:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260908,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:05:37]free response buf [20:05:37]execute_script done [20:05:37]execute_script returns [20:05:37]free content buf [20:05:37]Sock 10.Close socket [20:05:37]Sock 10.Thread stoped [20:05:39]OFD Sender: No OFD packet to send [20:05:44]OFD Sender: No OFD packet to send [20:05:47]accept exits with 7 [20:05:47]New connection [20:05:47]New thread 3066617188 created [20:05:47]Thread 3066473828 joined [20:05:47]Waiting for new connection... [20:05:47] Sock 7.Parse request [20:05:47]Sock 7.Check first char [20:05:47]Sock 7.First char is OK [20:05:47]request: POST /json_proto HTTP/1.0 [20:05:47]Method: POST [20:05:47]URL: /json_proto [20:05:47]Method is POST - this is cgi request [20:05:47]url: /json_proto [20:05:47]query_string will be loaded in cgi processing [20:05:47]execute_cgi json_proto POST (null) [20:05:47]execute_cgi path=json_proto method=POST [20:05:47]POST find Content-Length [20:05:47]Host: 172.17.55.133:8080 [20:05:47]Content-Length: 678 [20:05:47]Content-Type: application/json [20:05:47] [20:05:47]POST finish read [20:05:47]Found Content-Length = 678 [20:05:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:47]execute_script... [20:05: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)1036462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:47]POST & json_proto [20:05:47]process_json_proto [20:05:47]json parsed OK: [20:05:47]protocol is kg_v1.0 [20:05:47]action value=close_receipt [20:05:47]process_action close_receipt [20:05:47]cmd_close_receipt [20:05:47]MH_GetDate [20:05:47]Write to MH i2c: F0 00 00 1F C3 D1 [20:05:47]Write i2c OK [20:05:47]MH_I2C_Read... [20:05:47]Read from MH i2c: F0 [20:05:47]MH_I2C_Read... [20:05:47]Read from MH i2c: F0 09 00 [20:05:47]MH_I2C_Read... [20:05:47]Read from MH i2c: F0 09 00 1F C3 00 21 54 C2 66 34 48 D8 65 30 [20:05:47]GetLastDocTimeStamp 1724011538 [20:05:47]current date 1724011553 [20:05:47]FM_GetShiftState [20:05:47]SAM_PROTO_GetShiftState [20:05:47]wFMCommunicate request_size=4 [20:05:47]MH_SAM_APDU [20:05:47]CAPDU: 80 13 01 00 [20:05:47]Write to MH i2c: E2 08 00 20 C3 80 13 01 00 00 00 00 00 60 [20:05:47]Write i2c OK [20:05:47]MH_I2C_Read... [20:05:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:47]Read from MH i2c: E2 [20:05:47]MH_I2C_Read... [20:05:47]Read from MH i2c: E2 0E 00 [20:05:47]MH_I2C_Read... [20:05:47]Read from MH i2c: E2 0E 00 20 C3 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 9D [20:05:47]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:05:47]wFMCommunicate OK [20:05:47]SAM_PROTO_GetShiftState done [20:05:47]FM_GetShiftState done [20:05:47]opened in 1723940556 [20:05:47]opened+sec_in_day 1724026956 [20:05:47]quantity*price = 30035 [20:05:47]sum+1 = 30036 [20:05:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 467 18.08.2024 20:05 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260909 ФПД: 43394783875037 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T200553&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260909&fm=43394783875037&tin=02508201610067®Number=0000000000091865&sum=30000 [20:05:48]StoreToDocumentArchive [20:05:48]shift 449 fd 260909 [20:05:48]save to /storage/0449/doc_00260909 [20:05:48]save last doc name /storage/0449/doc_00260909 to /storage/kkm_last_doc_name [20:05:48]save OK [20:05:48]Clear old archive folders... [20:05:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:05:48]tlvbuf is 005F9810 [20:05:48]SAM_PROTO_ClearQueue [20:05:48]wFMCommunicate request_size=4 [20:05:48]MH_SAM_APDU [20:05:48]CAPDU: 80 09 00 00 [20:05:48]Write to MH i2c: E2 08 00 2D C3 80 09 00 00 00 00 00 00 62 [20:05:48]Write i2c OK [20:05:48]MH_I2C_Read... [20:05:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:48]Read from MH i2c: E2 [20:05:48]MH_I2C_Read... [20:05:48]Read from MH i2c: E2 03 00 [20:05:48]MH_I2C_Read... [20:05:48]Read from MH i2c: E2 03 00 2D C3 00 90 00 64 [20:05:48]RAPDU: 90 00 [20:05:48]wFMCommunicate OK [20:05:48]SAM_PROTO_ClearQueue done [20:05:48]KKMCreateOFDPacket [20:05:48]OFDProtocolAddRootSTLVToBuf [20:05:48]FM_MakeSignedData [20:05:48]FM_MakeSignedData [20:05:48]SAM_PROTO_SignData [20:05:48]wFMCommunicate request_size=4 [20:05:48]MH_SAM_APDU [20:05:48]CAPDU: 80 0D 01 02 [20:05:48]Write to MH i2c: E2 08 00 2E C3 80 0D 01 02 00 00 00 00 6A [20:05:48]Write i2c OK [20:05:48]MH_I2C_Read... [20:05:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:48]Read from MH i2c: E2 [20:05:48]MH_I2C_Read... [20:05:48]Read from MH i2c: E2 03 00 [20:05:48]MH_I2C_Read... [20:05:48]Read from MH i2c: E2 03 00 2E C3 00 90 00 65 [20:05:48]RAPDU: 90 00 [20:05:48]wFMCommunicate OK [20:05:48]wFMCommunicate request_size=255 [20:05:48]MH_SAM_APDU [20: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 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 01 00 00 F4 03 04 00 21 54 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2D FB 03 00 35 04 06 00 27 [20:05:48]Write to MH i2c: E2 02 01 2F C3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 01 00 00 F4 03 04 00 21 54 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2D FB 03 00 35 04 06 00 27 00 00 8B [20:05:48]Write i2c OK [20:05:48]MH_I2C_Read... [20:05:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:48]Read from MH i2c: E2 [20:05:48]MH_I2C_Read... [20:05:48]Read from MH i2c: E2 03 00 [20:05:48]MH_I2C_Read... [20:05:48]Read from MH i2c: E2 03 00 2F C3 00 90 00 66 [20:05:48]RAPDU: 90 00 [20:05:48]wFMCommunicate OK [20:05:48]wFMCommunicate request_size=10 [20:05:48]MH_SAM_APDU [20:05:48]CAPDU: 80 0D 02 02 05 77 A2 AD 8F DD [20:05:48]Write to MH i2c: E2 0D 00 30 C3 80 0D 02 02 05 00 77 A2 AD 8F DD 00 00 A9 [20:05:48]Write i2c OK [20:05:48]MH_I2C_Read... [20:05:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:48]Read from MH i2c: E2 [20:05:48]MH_I2C_Read... [20:05:48]Read from MH i2c: E2 03 00 [20:05:48]MH_I2C_Read... [20:05:48]Read from MH i2c: E2 03 00 30 C3 00 90 00 67 [20:05:48]RAPDU: 90 00 [20:05:48]wFMCommunicate OK [20:05:48]wFMCommunicate request_size=4 [20:05:48]MH_SAM_APDU [20:05:48]CAPDU: 80 0D 03 02 [20:05:48]Write to MH i2c: E2 08 00 31 C3 80 0D 03 02 00 00 00 00 6F [20:05:48]Write i2c OK [20:05:48]MH_I2C_Read... [20:05:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:48]Read from MH i2c: E2 [20:05:48]MH_I2C_Read... [20:05:48]Read from MH i2c: E2 0B 00 [20:05:48]MH_I2C_Read... [20:05:48]Read from MH i2c: E2 0B 00 31 C3 00 67 7F 46 D4 82 87 50 52 90 00 1B [20:05:48]RAPDU: 67 7F 46 D4 82 87 50 52 90 00 [20:05:48]wFMCommunicate OK [20:05:48]SAM_PROTO_SignData done [20:05:48]FM_MakeSignedData done [20:05:48]CreateOFDProtocolMessage [20:05:48]wFMCommunicate request_size=4 [20:05:48]MH_SAM_APDU [20:05:48]CAPDU: 80 11 00 00 [20:05:48]Write to MH i2c: E2 08 00 32 C3 80 11 00 00 00 00 00 00 6F [20:05:48]Write i2c OK [20:05:48]MH_I2C_Read... [20:05:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:48]Read from MH i2c: E2 [20:05:48]MH_I2C_Read... [20:05:48]Read from MH i2c: E2 17 00 [20:05:48]MH_I2C_Read... [20:05:48]Read from MH i2c: E2 17 00 32 C3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 BC [20:05:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:05:48]wFMCommunicate OK [20:05:48]CreateOFDProtocolMessage done [20:05:48]OFDSenderStorePacket 260909 [20:05:48]StoreOFDPacket docnum=260909 [20:05:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 FA BC 07 01 7D F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 01 00 00 F4 03 04 00 21 54 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2D FB 03 00 35 04 06 00 27 77 A2 AD 8F DD 67 7F 46 D4 82 87 50 52 [20:05:48]CheckFolder [20:05:48]dirname=/storage/ofd_packets [20:05:48]CheckFolder done [20:05:48]ProducePacketName [20:05:48]name=ofd_packets/00260909 [20:05:48]NVStorageSaveData ofd_packets/00260909 [20:05:48]File name is /storage/ofd_packets/00260909 [20:05:48]Write 301 bytes [20:05:48]NVStorageSaveData done [20:05:48]OFDSenderStorePacket done [20:05:48]KKMCreateOFDPacket done [20:05:48]NVStorageSaveData kkm_last_timestamp [20:05:48]File name is /storage/kkm_last_timestamp [20:05:48]Write 4 bytes [20:05:48]NVStorageSaveData done [20:05:48]ExternCall_PrintAddStr [20:05:48]wPrintStart [20:05:48]Write to MH i2c: 01 00 00 33 C3 F6 [20:05:48]Write i2c OK [20:05:48]MH_I2C_Read... [20:05:48]Read from MH i2c: 01 [20:05:48]MH_I2C_Read... [20:05:48]Read from MH i2c: 01 07 00 [20:05:48]MH_I2C_Read... [20:05:48]Read from MH i2c: 01 07 00 33 C3 00 00 00 00 00 FF 0F 0B [20:05:48]RasterBufferAndPrint [20:05:48]line Счет N : (1)1036462 [20:05:48]line ИНН: 02508201610067 [20:05:48]line Контрольно-Кассовый Чек [20:05:48]line ПРОДАЖА [20:05:48]line ТРК (МРК, ГНК) : 22 [20:05:48]line Товар: 2710124130 [20:05:48]line Аи-92-К-5 [20:05:48]line 4.430 * 67.80 [20:05:48]line = 300.35 [20:05:48]line НДС 12% НСП 1% [20:05:48]line > о реализуемом товаре [20:05:48]line ОКРУГЛЕНИЕ: -0.35 [20:05:48]line ИТОГО: 300.00 [20:05:48]line Внесено: 300.00 [20:05:48]line СДАЧА: 0.00 [20:05:48]line НСП 1% : 2.66 [20:05:48]line НДС 12% : 31.90 [20:05:48]line Наличными: 300.00 [20:05:48]line Безнал.: 0.00 [20:05:48]line Место: АЗС № 94 "Партнер Нефть" [20:05:48]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:05:48]line СНО: Общий режим [20:05:48]line Чек 467 18.08.2024 20:05 [20:05:48]line Смена: 449 ФФД: 1.0 [20:05:48]line ЗНМ: 0300000099 [20:05:48]line РНМ: 0000000000091865 [20:05:48]line Версия ККМ: 001 [20:05:48]line ФМ: 0000000000871820 [20:05:48]line ФД: 260909 [20:05:48]line ФПД: 43394783875037 [20:05:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T200553&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260909&fm=43394783875037&tin=02508201610067®Number=0000000000091865&sum=30000 [20:05:49]OFD Sender: Processing packet 260909 [packets to send 192, broken 191] [20:05:49]ProducePacketName [20:05:49]name=ofd_packets/00260909 [20:05:49]OFD Sender: To server: pG, [20:05:49]CommunicateWithHost lk.salyk.kg:30040 [20:05:49]ConnectInit lk.salyk.kg [20:05:49]written 0, free lines is 4095 [20:05:49]Connected sock=10 [20: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 30 0F 01 00 00 FA BC 07 01 7D F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 01 00 00 F4 03 04 00 21 54 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2D FB 03 00 35 04 06 00 27 77 A2 AD 8F DD 67 7F 46 D4 82 87 50 52 [20: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 30 4F 00 00 00 2E 57 47 00 15 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 30 10 04 04 00 2D FB 03 00 F4 03 04 00 75 FD C1 66 B6 04 01 00 00 64 35 93 12 45 9E B6 C8 [20:05:49]CommunicateWithHost err = 0 [20:05:49]CheckOFDResponse [20:05:49]1017 (14) - 77093643461234 [20:05:49]1041 (16) - 0000000000871820 [20:05:49]1040 (4) - 260909 [20:05:49]1012 (4) - 18.08.2024 13:56 [20:05:49]1206 (1) - 0 [20:05:49]OFD Sender: Remove packet 260909 [20:05:49]ProducePacketName [20:05:49]name=ofd_packets/00260909 [20:05:49]NVStorageDeleteData [20:05:49]Write to MH i2c: 01 00 00 5E C3 21 [20:05:49]Write i2c OK [20:05:49]MH_I2C_Read... [20:05:49]Read from MH i2c: 01 [20:05:49]MH_I2C_Read... [20:05:49]Read from MH i2c: 01 07 00 [20:05:49]MH_I2C_Read... [20:05:49]Read from MH i2c: 01 07 00 5E C3 00 00 00 00 00 81 0C B5 [20:05:49]RasterBufferAndPrint [20:05:49]line [20:05:49]line [20:05:49]line [20:05:49]line [20:05:49]line [20:05:49]written 0, free lines is 3204 [20:05:49]MH_Cut [20:05:49]Write to MH i2c: D1 01 00 65 C3 01 FA [20:05:49]Write i2c OK [20:05:49]MH_I2C_Read... [20:05:49]Read from MH i2c: D1 [20:05:49]MH_I2C_Read... [20:05:49]Read from MH i2c: D1 01 00 [20:05:49]MH_I2C_Read... [20:05:49]Read from MH i2c: D1 01 00 65 C3 00 F9 [20:05:49]Write to MH i2c: 01 00 00 66 C3 29 [20:05:49]Write i2c OK [20:05:49]MH_I2C_Read... [20:05:50]OFD Sender: No OFD packet to send [20:05:50]*** Cut start [20:05:50]*** Purtial cut [20:05:50]*** Stage 1: CUTSNS_PIN = 1 [20:05:52]Read from MH i2c: 01 [20:05:52]MH_I2C_Read... [20:05:52]*** Stop cut motor [20:05:52]*** Cut end [20:05:52]Read from MH i2c: 01 07 00 [20:05:52]MH_I2C_Read... [20:05:52]Read from MH i2c: 01 07 00 66 C3 00 00 00 00 00 FF 0F 3E [20:05:52]process_action close_receipt done [20:05:52]requested_data is exist [20:05:52]produce_requested_data [20:05:52]requested_item fm.sn is exist - process it [20:05:52]wFMCommunicate request_size=4 [20:05:52]MH_SAM_APDU [20:05:52]CAPDU: 80 11 00 00 [20:05:52]Write to MH i2c: E2 08 00 67 C3 80 11 00 00 00 00 00 00 A4 [20:05:52]Write i2c OK [20:05:52]MH_I2C_Read... [20:05:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:52]Read from MH i2c: E2 [20:05:52]MH_I2C_Read... [20:05:52]Read from MH i2c: E2 17 00 [20:05:52]MH_I2C_Read... [20:05:52]Read from MH i2c: E2 17 00 67 C3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F1 [20:05:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:05:52]wFMCommunicate OK [20:05:52]requested_item fd.num is exist - process it [20:05:52]SAM_PROTO_GetFieldsCounters [20:05:52]wFMCommunicate request_size=4 [20:05:52]MH_SAM_APDU [20:05:52]CAPDU: 80 13 00 00 [20:05:52]Write to MH i2c: E2 08 00 68 C3 80 13 00 00 00 00 00 00 A7 [20:05:52]Write i2c OK [20:05:52]MH_I2C_Read... [20:05:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:53]Read from MH i2c: E2 [20:05:53]MH_I2C_Read... [20:05:53]Read from MH i2c: E2 62 00 [20:05:53]MH_I2C_Read... [20:05:53]Read from MH i2c: E2 62 00 68 C3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 2D FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 D3 01 00 00 5E 04 04 00 D3 01 00 00 57 04 04 00 D4 01 00 00 19 04 04 00 00 00 00 00 90 00 2F [20:05: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 2D FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 D3 01 00 00 5E 04 04 00 D3 01 00 00 57 04 04 00 D4 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:05:53]wFMCommunicate OK [20:05:53]SAM_PROTO_GetFieldsCounters done [20:05:53]requested_item shift.num is exist - process it [20:05:53]requested_item shift.opened is exist - process it [20:05:53]req_shift_opened [20:05:53]FM_GetShiftState [20:05:53]SAM_PROTO_GetShiftState [20:05:53]wFMCommunicate request_size=4 [20:05:53]MH_SAM_APDU [20:05:53]CAPDU: 80 13 01 00 [20:05:53]Write to MH i2c: E2 08 00 69 C3 80 13 01 00 00 00 00 00 A9 [20:05:53]Write i2c OK [20:05:53]MH_I2C_Read... [20:05:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:53]Read from MH i2c: E2 [20:05:53]MH_I2C_Read... [20:05:53]Read from MH i2c: E2 0E 00 [20:05:53]MH_I2C_Read... [20:05:53]Read from MH i2c: E2 0E 00 69 C3 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E6 [20:05:53]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:05:53]wFMCommunicate OK [20:05:53]SAM_PROTO_GetShiftState done [20:05:53]FM_GetShiftState done [20:05:53]req_shift_opened done [20:05:53]requested_item shift.open_date is exist - process it [20:05:53]req_shift_open_date [20:05:53]req_shift_open_date done [20:05:53]produce_requested_data done [20:05:53]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260909,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:05:53]process_action_free close_receipt [20:05:53]json_value_free [20:05:53]json_value_free done [20:05:53]process_json_proto returns [20:05:53]Send response to host [20:05:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260909,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:05:53]free response buf [20:05:53]execute_script done [20:05:53]execute_script returns [20:05:53]free content buf [20:05:53]Sock 7.Close socket [20:05:53]Sock 7.Thread stoped [20:05:55]OFD Sender: No OFD packet to send [20:06:00]OFD Sender: No OFD packet to send [20:06:05]OFD Sender: No OFD packet to send [20:06:10]OFD Sender: No OFD packet to send [20:06:15]OFD Sender: No OFD packet to send [20:06:20]OFD Sender: No OFD packet to send [20:06:25]OFD Sender: No OFD packet to send [20:06:30]OFD Sender: No OFD packet to send [20:06:35]OFD Sender: No OFD packet to send [20:06:40]OFD Sender: No OFD packet to send [20:06:45]OFD Sender: No OFD packet to send [20:06:50]OFD Sender: No OFD packet to send [20:06:55]OFD Sender: No OFD packet to send [20:06:57]accept exits with 9 [20:06:58]New connection [20:06:58]New thread 3066473828 created [20:06:58]Thread 3066617188 joined [20:06:58]Waiting for new connection... [20:06:58] Sock 9.Parse request [20:06:58]Sock 9.Check first char [20:06:58]Sock 9.First char is OK [20:06:58]request: POST /json_proto HTTP/1.0 [20:06:58]Method: POST [20:06:58]URL: /json_proto [20:06:58]Method is POST - this is cgi request [20:06:58]url: /json_proto [20:06:58]query_string will be loaded in cgi processing [20:06:58]execute_cgi json_proto POST (null) [20:06:58]execute_cgi path=json_proto method=POST [20:06:58]POST find Content-Length [20:06:58]Host: 172.17.55.133:8080 [20:06:58]Content-Length: 804 [20:06:58]Content-Type: application/json [20:06:58] [20:06:58]POST finish read [20:06:58]Found Content-Length = 804 [20:06:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036463", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:58]execute_script... [20:06: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)1036463", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:58]POST & json_proto [20:06:58]process_json_proto [20:06:58]json parsed OK: [20:06:58]protocol is kg_v1.0 [20:06:58]action value=close_receipt [20:06:58]process_action close_receipt [20:06:58]cmd_close_receipt [20:06:58]MH_GetDate [20:06:58]Write to MH i2c: F0 00 00 6A C3 1C [20:06:58]Write i2c OK [20:06:58]MH_I2C_Read... [20:06:58]Read from MH i2c: F0 [20:06:58]MH_I2C_Read... [20:06:58]Read from MH i2c: F0 09 00 [20:06:58]MH_I2C_Read... [20:06:58]Read from MH i2c: F0 09 00 6A C3 00 68 54 C2 66 34 48 D8 65 C2 [20:06:58]GetLastDocTimeStamp 1724011553 [20:06:58]current date 1724011624 [20:06:58]FM_GetShiftState [20:06:58]SAM_PROTO_GetShiftState [20:06:58]wFMCommunicate request_size=4 [20:06:58]MH_SAM_APDU [20:06:58]CAPDU: 80 13 01 00 [20:06:58]Write to MH i2c: E2 08 00 6B C3 80 13 01 00 00 00 00 00 AB [20:06:58]Write i2c OK [20:06:58]MH_I2C_Read... [20:06:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:58]Read from MH i2c: E2 [20:06:58]MH_I2C_Read... [20:06:58]Read from MH i2c: E2 0E 00 [20:06:58]MH_I2C_Read... [20:06:58]Read from MH i2c: E2 0E 00 6B C3 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E8 [20:06:58]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:06:58]wFMCommunicate OK [20:06:58]SAM_PROTO_GetShiftState done [20:06:58]FM_GetShiftState done [20:06:58]opened in 1723940556 [20:06:58]opened+sec_in_day 1724026956 [20:06:58]quantity*price = 100021 [20:06:58]sum+1 = 100023 [20:06:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 468 18.08.2024 20:07 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260910 ФПД: 42151521213840 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T200704&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260910&fm=42151521213840&tin=02508201610067®Number=0000000000091865&sum=100022 [20:06:59]StoreToDocumentArchive [20:06:59]shift 449 fd 260910 [20:06:59]save to /storage/0449/doc_00260910 [20:06:59]save last doc name /storage/0449/doc_00260910 to /storage/kkm_last_doc_name [20:06:59]save OK [20:06:59]Clear old archive folders... [20:06:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:06:59]tlvbuf is 00540CC0 [20:06:59]SAM_PROTO_ClearQueue [20:06:59]wFMCommunicate request_size=4 [20:06:59]MH_SAM_APDU [20:06:59]CAPDU: 80 09 00 00 [20:06:59]Write to MH i2c: E2 08 00 78 C3 80 09 00 00 00 00 00 00 AD [20:06:59]Write i2c OK [20:06:59]MH_I2C_Read... [20:06:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:06:59]Read from MH i2c: E2 [20:06:59]MH_I2C_Read... [20:06:59]Read from MH i2c: E2 03 00 [20:06:59]MH_I2C_Read... [20:06:59]Read from MH i2c: E2 03 00 78 C3 00 90 00 AF [20:06:59]RAPDU: 90 00 [20:06:59]wFMCommunicate OK [20:06:59]SAM_PROTO_ClearQueue done [20:06:59]KKMCreateOFDPacket [20:06:59]OFDProtocolAddRootSTLVToBuf [20:06:59]FM_MakeSignedData [20:06:59]FM_MakeSignedData [20:06:59]SAM_PROTO_SignData [20:06:59]wFMCommunicate request_size=4 [20:06:59]MH_SAM_APDU [20:06:59]CAPDU: 80 0D 01 02 [20:06:59]Write to MH i2c: E2 08 00 79 C3 80 0D 01 02 00 00 00 00 B5 [20:06:59]Write i2c OK [20:06:59]MH_I2C_Read... [20:06:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:06:59]Read from MH i2c: E2 [20:06:59]MH_I2C_Read... [20:06:59]Read from MH i2c: E2 03 00 [20:06:59]MH_I2C_Read... [20:06:59]Read from MH i2c: E2 03 00 79 C3 00 90 00 B0 [20:06:59]RAPDU: 90 00 [20:06:59]wFMCommunicate OK [20:06:59]wFMCommunicate request_size=255 [20:06:59]MH_SAM_APDU [20:06:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 01 00 00 F4 03 04 00 68 54 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2E FB 03 00 35 04 06 00 26 [20:06:59]Write to MH i2c: E2 02 01 7A C3 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 01 00 00 F4 03 04 00 68 54 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2E FB 03 00 35 04 06 00 26 00 00 58 [20:06:59]Write i2c OK [20:06:59]MH_I2C_Read... [20:06:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:59]Read from MH i2c: E2 [20:06:59]MH_I2C_Read... [20:06:59]Read from MH i2c: E2 03 00 [20:06:59]MH_I2C_Read... [20:06:59]Read from MH i2c: E2 03 00 7A C3 00 90 00 B1 [20:06:59]RAPDU: 90 00 [20:06:59]wFMCommunicate OK [20:06:59]wFMCommunicate request_size=10 [20:06:59]MH_SAM_APDU [20:06:59]CAPDU: 80 0D 02 02 05 56 2A 72 DD 90 [20:06:59]Write to MH i2c: E2 0D 00 7B C3 80 0D 02 02 05 00 56 2A 72 DD 90 00 00 21 [20:06:59]Write i2c OK [20:06:59]MH_I2C_Read... [20:06:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:59]Read from MH i2c: E2 [20:06:59]MH_I2C_Read... [20:06:59]Read from MH i2c: E2 03 00 [20:06:59]MH_I2C_Read... [20:06:59]Read from MH i2c: E2 03 00 7B C3 00 90 00 B2 [20:06:59]RAPDU: 90 00 [20:06:59]wFMCommunicate OK [20:06:59]wFMCommunicate request_size=4 [20:06:59]MH_SAM_APDU [20:06:59]CAPDU: 80 0D 03 02 [20:06:59]Write to MH i2c: E2 08 00 7C C3 80 0D 03 02 00 00 00 00 BA [20:06:59]Write i2c OK [20:06:59]MH_I2C_Read... [20:06:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:06:59]Read from MH i2c: E2 [20:06:59]MH_I2C_Read... [20:06:59]Read from MH i2c: E2 0B 00 [20:06:59]MH_I2C_Read... [20:06:59]Read from MH i2c: E2 0B 00 7C C3 00 CB 81 05 19 E8 EE 51 87 90 00 D3 [20:06:59]RAPDU: CB 81 05 19 E8 EE 51 87 90 00 [20:06:59]wFMCommunicate OK [20:06:59]SAM_PROTO_SignData done [20:06:59]FM_MakeSignedData done [20:06:59]CreateOFDProtocolMessage [20:06:59]wFMCommunicate request_size=4 [20:06:59]MH_SAM_APDU [20:06:59]CAPDU: 80 11 00 00 [20:06:59]Write to MH i2c: E2 08 00 7D C3 80 11 00 00 00 00 00 00 BA [20:06:59]Write i2c OK [20:06:59]MH_I2C_Read... [20:06:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:59]Read from MH i2c: E2 [20:06:59]MH_I2C_Read... [20:06:59]Read from MH i2c: E2 17 00 [20:06:59]MH_I2C_Read... [20:06:59]Read from MH i2c: E2 17 00 7D C3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 07 [20:06:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:06:59]wFMCommunicate OK [20:06:59]CreateOFDProtocolMessage done [20:06:59]OFDSenderStorePacket 260910 [20:06:59]StoreOFDPacket docnum=260910 [20:06:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 B3 06 07 01 11 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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 01 00 00 F4 03 04 00 68 54 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2E FB 03 00 35 04 06 00 26 56 2A 72 DD 90 CB 81 05 19 E8 EE 51 87 [20:06:59]CheckFolder [20:06:59]dirname=/storage/ofd_packets [20:06:59]CheckFolder done [20:06:59]ProducePacketName [20:06:59]name=ofd_packets/00260910 [20:06:59]NVStorageSaveData ofd_packets/00260910 [20:06:59]File name is /storage/ofd_packets/00260910 [20:06:59]Write 301 bytes [20:06:59]NVStorageSaveData done [20:06:59]OFDSenderStorePacket done [20:06:59]KKMCreateOFDPacket done [20:06:59]NVStorageSaveData kkm_last_timestamp [20:06:59]File name is /storage/kkm_last_timestamp [20:06:59]Write 4 bytes [20:06:59]NVStorageSaveData done [20:06:59]ExternCall_PrintAddStr [20:06:59]wPrintStart [20:06:59]Write to MH i2c: 01 00 00 7E C3 41 [20:06:59]Write i2c OK [20:06:59]MH_I2C_Read... [20:06:59]Read from MH i2c: 01 [20:06:59]MH_I2C_Read... [20:06:59]Read from MH i2c: 01 07 00 [20:06:59]MH_I2C_Read... [20:06:59]Read from MH i2c: 01 07 00 7E C3 00 00 00 00 00 FF 0F 56 [20:06:59]RasterBufferAndPrint [20:06:59]line Счет N : (1)1036463 [20:06:59]line ИНН: 02508201610067 [20:06:59]line Контрольно-Кассовый Чек [20:06:59]line ПРОДАЖА [20:06:59]line ТРК (МРК, ГНК) : 13 [20:06:59]line Товар: 2710124500 [20:06:59]line Аи-95-К-5 [20:06:59]line 13.480 * 74.20 [20:06:59]line = 1000.22 [20:06:59]line НДС 12% НСП 1% [20:06:59]line > о реализуемом товаре [20:06:59]line ИТОГО: 1000.22 [20:06:59]line НСП 1% : 8.85 [20:06:59]line НДС 12% : 106.22 [20:06:59]line Наличными: 0.00 [20:06:59]line Безнал.: 1000.22 [20:06:59]line Место: АЗС № 94 "Партнер Нефть" [20:06:59]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:06:59]line СНО: Общий режим [20:06:59]line Чек 468 18.08.2024 20:07 [20:06:59]line Смена: 449 ФФД: 1.0 [20:06:59]line ЗНМ: 0300000099 [20:06:59]line РНМ: 0000000000091865 [20:06:59]line Версия ККМ: 001 [20:06:59]line Платежная система: O! деньги [20:06:59]line ФМ: 0000000000871820 [20:06:59]line ФД: 260910 [20:06:59]line ФПД: 42151521213840 [20:06:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T200704&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260910&fm=42151521213840&tin=02508201610067®Number=0000000000091865&sum=100022 [20:06:59]written 0, free lines is 4095 [20:06:59]OFD Sender: Processing packet 260910 [packets to send 192, broken 191] [20:06:59]ProducePacketName [20:06:59]name=ofd_packets/00260910 [20:06:59]OFD Sender: To server: pG, [20:06:59]CommunicateWithHost lk.salyk.kg:30040 [20:06:59]ConnectInit lk.salyk.kg [20:06:59]Connected sock=10 [20:06: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 30 0F 01 00 00 B3 06 07 01 11 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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 01 00 00 F4 03 04 00 68 54 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2E FB 03 00 35 04 06 00 26 56 2A 72 DD 90 CB 81 05 19 E8 EE 51 87 [20:07: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 30 4F 00 00 00 3C AE 47 00 B8 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2E FB 03 00 F4 03 04 00 BC FD C1 66 B6 04 01 00 00 63 24 D1 E0 83 68 36 7C [20:07:00]CommunicateWithHost err = 0 [20:07:00]CheckOFDResponse [20:07:00]1017 (14) - 77093643461234 [20:07:00]1041 (16) - 0000000000871820 [20:07:00]1040 (4) - 260910 [20:07:00]1012 (4) - 18.08.2024 13:57 [20:07:00]1206 (1) - 0 [20:07:00]OFD Sender: Remove packet 260910 [20:07:00]ProducePacketName [20:07:00]name=ofd_packets/00260910 [20:07:00]NVStorageDeleteData [20:07:00]Write to MH i2c: 01 00 00 A8 C3 6B [20:07:00]Write i2c OK [20:07:00]MH_I2C_Read... [20:07:00]Read from MH i2c: 01 [20:07:00]MH_I2C_Read... [20:07:00]Read from MH i2c: 01 07 00 [20:07:00]MH_I2C_Read... [20:07:00]Read from MH i2c: 01 07 00 A8 C3 00 00 00 00 00 93 0C 11 [20:07:00]RasterBufferAndPrint [20:07:00]line [20:07:00]line [20:07:00]line [20:07:00]line [20:07:00]line [20:07:00]written 0, free lines is 3222 [20:07:00]MH_Cut [20:07:00]Write to MH i2c: D1 01 00 AF C3 01 44 [20:07:00]Write i2c OK [20:07:00]MH_I2C_Read... [20:07:00]Read from MH i2c: D1 [20:07:00]MH_I2C_Read... [20:07:00]Read from MH i2c: D1 01 00 [20:07:00]MH_I2C_Read... [20:07:00]Read from MH i2c: D1 01 00 AF C3 00 43 [20:07:00]Write to MH i2c: 01 00 00 B0 C3 73 [20:07:00]Write i2c OK [20:07:00]MH_I2C_Read... [20:07:00]OFD Sender: No OFD packet to send [20:07:01]*** Cut start [20:07:01]*** Purtial cut [20:07:01]*** Stage 1: CUTSNS_PIN = 1 [20:07:03]Read from MH i2c: 01 [20:07:03]MH_I2C_Read... [20:07:03]*** Stop cut motor [20:07:03]*** Cut end [20:07:03]Read from MH i2c: 01 07 00 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: 01 07 00 B0 C3 00 00 00 00 00 FF 0F 88 [20:07:03]process_action close_receipt done [20:07:03]requested_data is exist [20:07:03]produce_requested_data [20:07:03]requested_item fm.sn is exist - process it [20:07:03]wFMCommunicate request_size=4 [20:07:03]MH_SAM_APDU [20:07:03]CAPDU: 80 11 00 00 [20:07:03]Write to MH i2c: E2 08 00 B1 C3 80 11 00 00 00 00 00 00 EE [20:07:03]Write i2c OK [20:07:03]MH_I2C_Read... [20:07:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:03]Read from MH i2c: E2 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 17 00 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 17 00 B1 C3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 3B [20:07:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:07:03]wFMCommunicate OK [20:07:03]requested_item fd.num is exist - process it [20:07:03]SAM_PROTO_GetFieldsCounters [20:07:03]wFMCommunicate request_size=4 [20:07:03]MH_SAM_APDU [20:07:03]CAPDU: 80 13 00 00 [20:07:03]Write to MH i2c: E2 08 00 B2 C3 80 13 00 00 00 00 00 00 F1 [20:07:03]Write i2c OK [20:07:03]MH_I2C_Read... [20:07:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:07:03]Read from MH i2c: E2 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 62 00 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 62 00 B2 C3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 2E FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 D4 01 00 00 5E 04 04 00 D4 01 00 00 57 04 04 00 D5 01 00 00 19 04 04 00 00 00 00 00 90 00 7D [20:07: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 2E FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 D4 01 00 00 5E 04 04 00 D4 01 00 00 57 04 04 00 D5 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:07:03]wFMCommunicate OK [20:07:03]SAM_PROTO_GetFieldsCounters done [20:07:03]requested_item shift.num is exist - process it [20:07:03]requested_item shift.opened is exist - process it [20:07:03]req_shift_opened [20:07:03]FM_GetShiftState [20:07:03]SAM_PROTO_GetShiftState [20:07:03]wFMCommunicate request_size=4 [20:07:03]MH_SAM_APDU [20:07:03]CAPDU: 80 13 01 00 [20:07:03]Write to MH i2c: E2 08 00 B3 C3 80 13 01 00 00 00 00 00 F3 [20:07:03]Write i2c OK [20:07:03]MH_I2C_Read... [20:07:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:03]Read from MH i2c: E2 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 0E 00 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 0E 00 B3 C3 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 30 [20:07:03]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:07:03]wFMCommunicate OK [20:07:03]SAM_PROTO_GetShiftState done [20:07:03]FM_GetShiftState done [20:07:03]req_shift_opened done [20:07:03]requested_item shift.open_date is exist - process it [20:07:03]req_shift_open_date [20:07:03]req_shift_open_date done [20:07:03]produce_requested_data done [20:07:03]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260910,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:07:03]process_action_free close_receipt [20:07:03]json_value_free [20:07:03]json_value_free done [20:07:03]process_json_proto returns [20:07:03]Send response to host [20:07:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260910,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:07:03]free response buf [20:07:03]execute_script done [20:07:03]execute_script returns [20:07:03]free content buf [20:07:03]Sock 9.Close socket [20:07:03]Sock 9.Thread stoped [20:07:05]OFD Sender: No OFD packet to send [20:07:10]OFD Sender: No OFD packet to send [20:07:15]OFD Sender: No OFD packet to send [20:07:20]OFD Sender: No OFD packet to send [20:07:25]OFD Sender: No OFD packet to send [20:07:30]OFD Sender: No OFD packet to send [20:07:35]OFD Sender: No OFD packet to send [20:07:40]OFD Sender: No OFD packet to send [20:07:45]OFD Sender: No OFD packet to send [20:07:50]OFD Sender: No OFD packet to send [20:07:55]OFD Sender: No OFD packet to send [20:08:00]OFD Sender: No OFD packet to send [20:08:05]OFD Sender: No OFD packet to send [20:08:10]OFD Sender: No OFD packet to send [20:08:15]OFD Sender: No OFD packet to send [20:08:20]OFD Sender: No OFD packet to send [20:08:25]OFD Sender: No OFD packet to send [20:08:30]OFD Sender: No OFD packet to send [20:08:35]OFD Sender: No OFD packet to send [20:08:40]OFD Sender: No OFD packet to send [20:08:45]OFD Sender: No OFD packet to send [20:08:50]OFD Sender: No OFD packet to send [20:08:55]OFD Sender: No OFD packet to send [20:09:00]OFD Sender: No OFD packet to send [20:09:05]OFD Sender: No OFD packet to send [20:09:09]accept exits with 7 [20:09:09]New connection [20:09:09]New thread 3066617188 created [20:09:09]Thread 3066473828 joined [20:09:09]Waiting for new connection... [20:09:09] Sock 7.Parse request [20:09:09]Sock 7.Check first char [20:09:09]Sock 7.First char is OK [20:09:09]request: POST /json_proto HTTP/1.0 [20:09:09]Method: POST [20:09:09]URL: /json_proto [20:09:09]Method is POST - this is cgi request [20:09:09]url: /json_proto [20:09:09]query_string will be loaded in cgi processing [20:09:09]execute_cgi json_proto POST (null) [20:09:09]execute_cgi path=json_proto method=POST [20:09:09]POST find Content-Length [20:09:09]Host: 172.17.55.133:8080 [20:09:09]Content-Length: 804 [20:09:09]Content-Type: application/json [20:09:09] [20:09:09]POST finish read [20:09:09]Found Content-Length = 804 [20:09:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036464", "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" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:09]execute_script... [20:09: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)1036464", "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" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:09]POST & json_proto [20:09:09]process_json_proto [20:09:09]json parsed OK: [20:09:09]protocol is kg_v1.0 [20:09:09]action value=close_receipt [20:09:09]process_action close_receipt [20:09:09]cmd_close_receipt [20:09:09]MH_GetDate [20:09:09]Write to MH i2c: F0 00 00 B4 C3 66 [20:09:09]Write i2c OK [20:09:09]MH_I2C_Read... [20:09:09]Read from MH i2c: F0 [20:09:09]MH_I2C_Read... [20:09:09]Read from MH i2c: F0 09 00 [20:09:09]MH_I2C_Read... [20:09:09]Read from MH i2c: F0 09 00 B4 C3 00 EC 54 C2 66 34 48 D8 65 90 [20:09:09]GetLastDocTimeStamp 1724011624 [20:09:09]current date 1724011756 [20:09:09]FM_GetShiftState [20:09:09]SAM_PROTO_GetShiftState [20:09:09]wFMCommunicate request_size=4 [20:09:09]MH_SAM_APDU [20:09:09]CAPDU: 80 13 01 00 [20:09:09]Write to MH i2c: E2 08 00 B5 C3 80 13 01 00 00 00 00 00 F5 [20:09:09]Write i2c OK [20:09:09]MH_I2C_Read... [20:09:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:09]Read from MH i2c: E2 [20:09:09]MH_I2C_Read... [20:09:09]Read from MH i2c: E2 0E 00 [20:09:09]MH_I2C_Read... [20:09:09]Read from MH i2c: E2 0E 00 B5 C3 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 32 [20:09:09]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:09:09]wFMCommunicate OK [20:09:09]SAM_PROTO_GetShiftState done [20:09:09]FM_GetShiftState done [20:09:09]opened in 1723940556 [20:09:09]opened+sec_in_day 1724026956 [20:09:09]quantity*price = 150032 [20:09:09]sum+1 = 150033 [20:09:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.32 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.32 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 469 18.08.2024 20:09 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260911 ФПД: 14389712822158 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T200916&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260911&fm=14389712822158&tin=02508201610067®Number=0000000000091865&sum=150032 [20:09:10]StoreToDocumentArchive [20:09:10]shift 449 fd 260911 [20:09:10]save to /storage/0449/doc_00260911 [20:09:10]save last doc name /storage/0449/doc_00260911 to /storage/kkm_last_doc_name [20:09:10]save OK [20:09:10]Clear old archive folders... [20:09:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:09:10]tlvbuf is 00382E30 [20:09:10]SAM_PROTO_ClearQueue [20:09:10]wFMCommunicate request_size=4 [20:09:10]MH_SAM_APDU [20:09:10]CAPDU: 80 09 00 00 [20:09:10]Write to MH i2c: E2 08 00 C2 C3 80 09 00 00 00 00 00 00 F7 [20:09:10]Write i2c OK [20:09:10]MH_I2C_Read... [20:09:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:09:10]Read from MH i2c: E2 [20:09:10]MH_I2C_Read... [20:09:10]Read from MH i2c: E2 03 00 [20:09:10]MH_I2C_Read... [20:09:10]Read from MH i2c: E2 03 00 C2 C3 00 90 00 F9 [20:09:10]RAPDU: 90 00 [20:09:10]wFMCommunicate OK [20:09:10]SAM_PROTO_ClearQueue done [20:09:10]KKMCreateOFDPacket [20:09:10]OFDProtocolAddRootSTLVToBuf [20:09:10]FM_MakeSignedData [20:09:10]FM_MakeSignedData [20:09:10]SAM_PROTO_SignData [20:09:10]wFMCommunicate request_size=4 [20:09:10]MH_SAM_APDU [20:09:10]CAPDU: 80 0D 01 02 [20:09:10]Write to MH i2c: E2 08 00 C3 C3 80 0D 01 02 00 00 00 00 FF [20:09:10]Write i2c OK [20:09:10]MH_I2C_Read... [20:09:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:09:10]Read from MH i2c: E2 [20:09:10]MH_I2C_Read... [20:09:10]Read from MH i2c: E2 03 00 [20:09:10]MH_I2C_Read... [20:09:10]Read from MH i2c: E2 03 00 C3 C3 00 90 00 FA [20:09:10]RAPDU: 90 00 [20:09:10]wFMCommunicate OK [20:09:10]wFMCommunicate request_size=255 [20:09:10]MH_SAM_APDU [20:09: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 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 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 01 00 00 F4 03 04 00 EC 54 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2F FB 03 00 35 04 06 00 0D [20:09:10]Write to MH i2c: E2 02 01 C4 C3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 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 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 01 00 00 F4 03 04 00 EC 54 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2F FB 03 00 35 04 06 00 0D 00 00 6B [20:09:10]Write i2c OK [20:09:10]MH_I2C_Read... [20:09:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:11]Read from MH i2c: E2 [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: E2 03 00 [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: E2 03 00 C4 C3 00 90 00 FB [20:09:11]RAPDU: 90 00 [20:09:11]wFMCommunicate OK [20:09:11]wFMCommunicate request_size=10 [20:09:11]MH_SAM_APDU [20:09:11]CAPDU: 80 0D 02 02 05 16 5D B8 9F 8E [20:09:11]Write to MH i2c: E2 0D 00 C5 C3 80 0D 02 02 05 00 16 5D B8 9F 8E 00 00 64 [20:09:11]Write i2c OK [20:09:11]MH_I2C_Read... [20:09:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:11]Read from MH i2c: E2 [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: E2 03 00 [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: E2 03 00 C5 C3 00 90 00 FC [20:09:11]RAPDU: 90 00 [20:09:11]wFMCommunicate OK [20:09:11]wFMCommunicate request_size=4 [20:09:11]MH_SAM_APDU [20:09:11]CAPDU: 80 0D 03 02 [20:09:11]Write to MH i2c: E2 08 00 C6 C3 80 0D 03 02 00 00 00 00 04 [20:09:11]Write i2c OK [20:09:11]MH_I2C_Read... [20:09:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:09:11]Read from MH i2c: E2 [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: E2 0B 00 [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: E2 0B 00 C6 C3 00 17 ED 40 64 AA 35 18 72 90 00 16 [20:09:11]RAPDU: 17 ED 40 64 AA 35 18 72 90 00 [20:09:11]wFMCommunicate OK [20:09:11]SAM_PROTO_SignData done [20:09:11]FM_MakeSignedData done [20:09:11]CreateOFDProtocolMessage [20:09:11]wFMCommunicate request_size=4 [20:09:11]MH_SAM_APDU [20:09:11]CAPDU: 80 11 00 00 [20:09:11]Write to MH i2c: E2 08 00 C7 C3 80 11 00 00 00 00 00 00 04 [20:09:11]Write i2c OK [20:09:11]MH_I2C_Read... [20:09:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:11]Read from MH i2c: E2 [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: E2 17 00 [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: E2 17 00 C7 C3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 51 [20:09:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:09:11]wFMCommunicate OK [20:09:11]CreateOFDProtocolMessage done [20:09:11]OFDSenderStorePacket 260911 [20:09:11]StoreOFDPacket docnum=260911 [20:09:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 04 A6 07 01 E7 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 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 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 01 00 00 F4 03 04 00 EC 54 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2F FB 03 00 35 04 06 00 0D 16 5D B8 9F 8E 17 ED 40 64 AA 35 18 72 [20:09:11]CheckFolder [20:09:11]dirname=/storage/ofd_packets [20:09:11]CheckFolder done [20:09:11]ProducePacketName [20:09:11]name=ofd_packets/00260911 [20:09:11]NVStorageSaveData ofd_packets/00260911 [20:09:11]File name is /storage/ofd_packets/00260911 [20:09:11]Write 301 bytes [20:09:11]NVStorageSaveData done [20:09:11]OFDSenderStorePacket done [20:09:11]KKMCreateOFDPacket done [20:09:11]NVStorageSaveData kkm_last_timestamp [20:09:11]File name is /storage/kkm_last_timestamp [20:09:11]Write 4 bytes [20:09:11]NVStorageSaveData done [20:09:11]ExternCall_PrintAddStr [20:09:11]wPrintStart [20:09:11]Write to MH i2c: 01 00 00 C8 C3 8B [20:09:11]Write i2c OK [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: 01 [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: 01 07 00 [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: 01 07 00 C8 C3 00 00 00 00 00 FF 0F A0 [20:09:11]RasterBufferAndPrint [20:09:11]line Счет N : (1)1036464 [20:09:11]line ИНН: 02508201610067 [20:09:11]line Контрольно-Кассовый Чек [20:09:11]line ПРОДАЖА [20:09:11]line ТРК (МРК, ГНК) : 13 [20:09:11]line Товар: 2710124500 [20:09:11]line Аи-95-К-5 [20:09:11]line 20.220 * 74.20 [20:09:11]line = 1500.32 [20:09:11]line НДС 12% НСП 1% [20:09:11]line > о реализуемом товаре [20:09:11]line ИТОГО: 1500.32 [20:09:11]line НСП 1% : 13.28 [20:09:11]line НДС 12% : 159.33 [20:09:11]line Наличными: 0.00 [20:09:11]line Безнал.: 1500.32 [20:09:11]line Место: АЗС № 94 "Партнер Нефть" [20:09:11]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:09:11]line СНО: Общий режим [20:09:11]line Чек 469 18.08.2024 20:09 [20:09:11]line Смена: 449 ФФД: 1.0 [20:09:11]line ЗНМ: 0300000099 [20:09:11]line РНМ: 0000000000091865 [20:09:11]line Версия ККМ: 001 [20:09:11]line Платежная система: O! деньги [20:09:11]line ФМ: 0000000000871820 [20:09:11]line ФД: 260911 [20:09:11]line ФПД: 14389712822158 [20:09:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T200916&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260911&fm=14389712822158&tin=02508201610067®Number=0000000000091865&sum=150032 [20:09:11]written 0, free lines is 4095 [20:09:11]OFD Sender: Processing packet 260911 [packets to send 192, broken 191] [20:09:11]ProducePacketName [20:09:11]name=ofd_packets/00260911 [20:09:11]OFD Sender: To server: pG, [20:09:11]CommunicateWithHost lk.salyk.kg:30040 [20:09:11]ConnectInit lk.salyk.kg [20:09:11]Connected sock=10 [20:09: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 30 0F 01 00 00 04 A6 07 01 E7 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 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 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 01 00 00 F4 03 04 00 EC 54 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2F FB 03 00 35 04 06 00 0D 16 5D B8 9F 8E 17 ED 40 64 AA 35 18 72 [20:09: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 30 4F 00 00 00 5A B6 47 00 3D 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 2F FB 03 00 F4 03 04 00 40 FE C1 66 B6 04 01 00 00 25 FC 6F 1F 80 F6 21 80 [20:09:11]CommunicateWithHost err = 0 [20:09:11]CheckOFDResponse [20:09:11]1017 (14) - 77093643461234 [20:09:11]1041 (16) - 0000000000871820 [20:09:11]1040 (4) - 260911 [20:09:11]1012 (4) - 18.08.2024 13:59 [20:09:11]1206 (1) - 0 [20:09:11]OFD Sender: Remove packet 260911 [20:09:11]ProducePacketName [20:09:11]name=ofd_packets/00260911 [20:09:11]NVStorageDeleteData [20:09:11]Write to MH i2c: 01 00 00 F2 C3 B5 [20:09:11]Write i2c OK [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: 01 [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: 01 07 00 [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: 01 07 00 F2 C3 00 00 00 00 00 8B 0C 53 [20:09:11]RasterBufferAndPrint [20:09:11]line [20:09:11]line [20:09:11]line [20:09:11]line [20:09:11]line [20:09:11]written 0, free lines is 3215 [20:09:11]MH_Cut [20:09:11]Write to MH i2c: D1 01 00 F9 C3 01 8E [20:09:11]Write i2c OK [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: D1 [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: D1 01 00 [20:09:11]MH_I2C_Read... [20:09:11]Read from MH i2c: D1 01 00 F9 C3 00 8D [20:09:11]Write to MH i2c: 01 00 00 FA C3 BD [20:09:11]Write i2c OK [20:09:11]MH_I2C_Read... [20:09:12]OFD Sender: No OFD packet to send [20:09:12]*** Cut start [20:09:12]*** Purtial cut [20:09:12]*** Stage 1: CUTSNS_PIN = 1 [20:09:14]Read from MH i2c: 01 [20:09:14]MH_I2C_Read... [20:09:14]*** Stop cut motor [20:09:14]*** Cut end [20:09:14]Read from MH i2c: 01 07 00 [20:09:14]MH_I2C_Read... [20:09:14]Read from MH i2c: 01 07 00 FA C3 00 00 00 00 00 FF 0F D2 [20:09:14]process_action close_receipt done [20:09:14]requested_data is exist [20:09:14]produce_requested_data [20:09:14]requested_item fm.sn is exist - process it [20:09:14]wFMCommunicate request_size=4 [20:09:14]MH_SAM_APDU [20:09:14]CAPDU: 80 11 00 00 [20:09:14]Write to MH i2c: E2 08 00 FB C3 80 11 00 00 00 00 00 00 38 [20:09:14]Write i2c OK [20:09:14]MH_I2C_Read... [20:09:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:14]Read from MH i2c: E2 [20:09:14]MH_I2C_Read... [20:09:14]Read from MH i2c: E2 17 00 [20:09:14]MH_I2C_Read... [20:09:14]Read from MH i2c: E2 17 00 FB C3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 85 [20:09:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:09:14]wFMCommunicate OK [20:09:14]requested_item fd.num is exist - process it [20:09:14]SAM_PROTO_GetFieldsCounters [20:09:14]wFMCommunicate request_size=4 [20:09:14]MH_SAM_APDU [20:09:14]CAPDU: 80 13 00 00 [20:09:14]Write to MH i2c: E2 08 00 FC C3 80 13 00 00 00 00 00 00 3B [20:09:14]Write i2c OK [20:09:14]MH_I2C_Read... [20:09:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:09:15]Read from MH i2c: E2 [20:09:15]MH_I2C_Read... [20:09:15]Read from MH i2c: E2 62 00 [20:09:15]MH_I2C_Read... [20:09:15]Read from MH i2c: E2 62 00 FC C3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 2F FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 D5 01 00 00 5E 04 04 00 D5 01 00 00 57 04 04 00 D6 01 00 00 19 04 04 00 00 00 00 00 90 00 CB [20:09: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 2F FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 D5 01 00 00 5E 04 04 00 D5 01 00 00 57 04 04 00 D6 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:09:15]wFMCommunicate OK [20:09:15]SAM_PROTO_GetFieldsCounters done [20:09:15]requested_item shift.num is exist - process it [20:09:15]requested_item shift.opened is exist - process it [20:09:15]req_shift_opened [20:09:15]FM_GetShiftState [20:09:15]SAM_PROTO_GetShiftState [20:09:15]wFMCommunicate request_size=4 [20:09:15]MH_SAM_APDU [20:09:15]CAPDU: 80 13 01 00 [20:09:15]Write to MH i2c: E2 08 00 FD C3 80 13 01 00 00 00 00 00 3D [20:09:15]Write i2c OK [20:09:15]MH_I2C_Read... [20:09:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:15]Read from MH i2c: E2 [20:09:15]MH_I2C_Read... [20:09:15]Read from MH i2c: E2 0E 00 [20:09:15]MH_I2C_Read... [20:09:15]Read from MH i2c: E2 0E 00 FD C3 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 7A [20:09:15]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:09:15]wFMCommunicate OK [20:09:15]SAM_PROTO_GetShiftState done [20:09:15]FM_GetShiftState done [20:09:15]req_shift_opened done [20:09:15]requested_item shift.open_date is exist - process it [20:09:15]req_shift_open_date [20:09:15]req_shift_open_date done [20:09:15]produce_requested_data done [20:09:15]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260911,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:09:15]process_action_free close_receipt [20:09:15]json_value_free [20:09:15]json_value_free done [20:09:15]process_json_proto returns [20:09:15]Send response to host [20:09:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260911,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:09:15]free response buf [20:09:15]execute_script done [20:09:15]execute_script returns [20:09:15]free content buf [20:09:15]Sock 7.Close socket [20:09:15]Sock 7.Thread stoped [20:09:17]OFD Sender: No OFD packet to send [20:09:22]OFD Sender: No OFD packet to send [20:09:26]accept exits with 9 [20:09:26]New connection [20:09:26]New thread 3066473828 created [20:09:26]Thread 3066617188 joined [20:09:26]Waiting for new connection... [20:09:26] Sock 9.Parse request [20:09:26]Sock 9.Check first char [20:09:26]Sock 9.First char is OK [20:09:26]request: POST /json_proto HTTP/1.0 [20:09:26]Method: POST [20:09:26]URL: /json_proto [20:09:26]Method is POST - this is cgi request [20:09:26]url: /json_proto [20:09:26]query_string will be loaded in cgi processing [20:09:26]execute_cgi json_proto POST (null) [20:09:26]execute_cgi path=json_proto method=POST [20:09:26]POST find Content-Length [20:09:26]Host: 172.17.55.133:8080 [20:09:26]Content-Length: 679 [20:09:26]Content-Type: application/json [20:09:26] [20:09:26]POST finish read [20:09:26]Found Content-Length = 679 [20:09:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [20:09:26]execute_script... [20:09: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)1036465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [20:09:26]POST & json_proto [20:09:26]process_json_proto [20:09:26]json parsed OK: [20:09:26]protocol is kg_v1.0 [20:09:26]action value=close_receipt [20:09:26]process_action close_receipt [20:09:26]cmd_close_receipt [20:09:26]MH_GetDate [20:09:26]Write to MH i2c: F0 00 00 FE C3 B0 [20:09:26]Write i2c OK [20:09:26]MH_I2C_Read... [20:09:26]Read from MH i2c: F0 [20:09:26]MH_I2C_Read... [20:09:26]Read from MH i2c: F0 09 00 [20:09:26]MH_I2C_Read... [20:09:26]Read from MH i2c: F0 09 00 FE C3 00 FD 54 C2 66 34 48 D8 65 EB [20:09:26]GetLastDocTimeStamp 1724011756 [20:09:26]current date 1724011773 [20:09:26]FM_GetShiftState [20:09:26]SAM_PROTO_GetShiftState [20:09:26]wFMCommunicate request_size=4 [20:09:26]MH_SAM_APDU [20:09:26]CAPDU: 80 13 01 00 [20:09:26]Write to MH i2c: E2 08 00 FF C3 80 13 01 00 00 00 00 00 3F [20:09:26]Write i2c OK [20:09:26]MH_I2C_Read... [20:09:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:26]Read from MH i2c: E2 [20:09:26]MH_I2C_Read... [20:09:26]Read from MH i2c: E2 0E 00 [20:09:26]MH_I2C_Read... [20:09:26]Read from MH i2c: E2 0E 00 FF C3 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 7C [20:09:26]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:09:26]wFMCommunicate OK [20:09:26]SAM_PROTO_GetShiftState done [20:09:26]FM_GetShiftState done [20:09:26]opened in 1723940556 [20:09:26]opened+sec_in_day 1724026956 [20:09:26]quantity*price = 70037 [20:09:26]sum+1 = 70038 [20:09:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 470 18.08.2024 20:09 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260912 ФПД: 89330957156458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T200933&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260912&fm=89330957156458&tin=02508201610067®Number=0000000000091865&sum=70000 [20:09:28]StoreToDocumentArchive [20:09:28]shift 449 fd 260912 [20:09:28]save to /storage/0449/doc_00260912 [20:09:28]save last doc name /storage/0449/doc_00260912 to /storage/kkm_last_doc_name [20:09:28]save OK [20:09:28]Clear old archive folders... [20:09:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:09:28]tlvbuf is 004A1DF0 [20:09:28]SAM_PROTO_ClearQueue [20:09:28]wFMCommunicate request_size=4 [20:09:28]MH_SAM_APDU [20:09:28]CAPDU: 80 09 00 00 [20:09:28]Write to MH i2c: E2 08 00 0C C4 80 09 00 00 00 00 00 00 42 [20:09:28]Write i2c OK [20:09:28]MH_I2C_Read... [20:09:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:09:28]Read from MH i2c: E2 [20:09:28]MH_I2C_Read... [20:09:28]Read from MH i2c: E2 03 00 [20:09:28]MH_I2C_Read... [20:09:28]Read from MH i2c: E2 03 00 0C C4 00 90 00 44 [20:09:28]RAPDU: 90 00 [20:09:28]wFMCommunicate OK [20:09:28]SAM_PROTO_ClearQueue done [20:09:28]KKMCreateOFDPacket [20:09:28]OFDProtocolAddRootSTLVToBuf [20:09:28]FM_MakeSignedData [20:09:28]FM_MakeSignedData [20:09:28]SAM_PROTO_SignData [20:09:28]wFMCommunicate request_size=4 [20:09:28]MH_SAM_APDU [20:09:28]CAPDU: 80 0D 01 02 [20:09:28]Write to MH i2c: E2 08 00 0D C4 80 0D 01 02 00 00 00 00 4A [20:09:28]Write i2c OK [20:09:28]MH_I2C_Read... [20:09:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:09:28]Read from MH i2c: E2 [20:09:28]MH_I2C_Read... [20:09:28]Read from MH i2c: E2 03 00 [20:09:28]MH_I2C_Read... [20:09:28]Read from MH i2c: E2 03 00 0D C4 00 90 00 45 [20:09:28]RAPDU: 90 00 [20:09:28]wFMCommunicate OK [20:09:28]wFMCommunicate request_size=255 [20:09:28]MH_SAM_APDU [20:09: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 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 D6 01 00 00 F4 03 04 00 FD 54 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 30 FB 03 00 35 04 06 00 51 [20:09:28]Write to MH i2c: E2 02 01 0E C4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 D6 01 00 00 F4 03 04 00 FD 54 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 30 FB 03 00 35 04 06 00 51 00 00 3F [20:09:28]Write i2c OK [20:09:28]MH_I2C_Read... [20:09:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:28]Read from MH i2c: E2 [20:09:28]MH_I2C_Read... [20:09:28]Read from MH i2c: E2 03 00 [20:09:28]MH_I2C_Read... [20:09:28]Read from MH i2c: E2 03 00 0E C4 00 90 00 46 [20:09:28]RAPDU: 90 00 [20:09:28]wFMCommunicate OK [20:09:28]wFMCommunicate request_size=10 [20:09:28]MH_SAM_APDU [20:09:28]CAPDU: 80 0D 02 02 05 3E FB F8 00 6A [20:09:28]Write to MH i2c: E2 0D 00 0F C4 80 0D 02 02 05 00 3E FB F8 00 6A 00 00 F2 [20:09:28]Write i2c OK [20:09:28]MH_I2C_Read... [20:09:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:28]Read from MH i2c: E2 [20:09:28]MH_I2C_Read... [20:09:28]Read from MH i2c: E2 03 00 [20:09:28]MH_I2C_Read... [20:09:28]Read from MH i2c: E2 03 00 0F C4 00 90 00 47 [20:09:28]RAPDU: 90 00 [20:09:28]wFMCommunicate OK [20:09:28]wFMCommunicate request_size=4 [20:09:28]MH_SAM_APDU [20:09:28]CAPDU: 80 0D 03 02 [20:09:28]Write to MH i2c: E2 08 00 10 C4 80 0D 03 02 00 00 00 00 4F [20:09:28]Write i2c OK [20:09:28]MH_I2C_Read... [20:09:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:09:28]Read from MH i2c: E2 [20:09:28]MH_I2C_Read... [20:09:28]Read from MH i2c: E2 0B 00 [20:09:28]MH_I2C_Read... [20:09:28]Read from MH i2c: E2 0B 00 10 C4 00 5B C8 91 28 8E 7F 26 F0 90 00 4F [20:09:28]RAPDU: 5B C8 91 28 8E 7F 26 F0 90 00 [20:09:28]wFMCommunicate OK [20:09:28]SAM_PROTO_SignData done [20:09:28]FM_MakeSignedData done [20:09:28]CreateOFDProtocolMessage [20:09:28]wFMCommunicate request_size=4 [20:09:28]MH_SAM_APDU [20:09:28]CAPDU: 80 11 00 00 [20:09:28]Write to MH i2c: E2 08 00 11 C4 80 11 00 00 00 00 00 00 4F [20:09:28]Write i2c OK [20:09:28]MH_I2C_Read... [20:09:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:28]Read from MH i2c: E2 [20:09:28]MH_I2C_Read... [20:09:28]Read from MH i2c: E2 17 00 [20:09:28]MH_I2C_Read... [20:09:28]Read from MH i2c: E2 17 00 11 C4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 9C [20:09:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:09:28]wFMCommunicate OK [20:09:28]CreateOFDProtocolMessage done [20:09:28]OFDSenderStorePacket 260912 [20:09:28]StoreOFDPacket docnum=260912 [20:09:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 FB 3F 07 01 08 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 D6 01 00 00 F4 03 04 00 FD 54 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 30 FB 03 00 35 04 06 00 51 3E FB F8 00 6A 5B C8 91 28 8E 7F 26 F0 [20:09:28]CheckFolder [20:09:28]dirname=/storage/ofd_packets [20:09:28]CheckFolder done [20:09:28]ProducePacketName [20:09:28]name=ofd_packets/00260912 [20:09:28]NVStorageSaveData ofd_packets/00260912 [20:09:28]File name is /storage/ofd_packets/00260912 [20:09:28]Write 301 bytes [20:09:28]NVStorageSaveData done [20:09:28]OFDSenderStorePacket done [20:09:28]KKMCreateOFDPacket done [20:09:28]NVStorageSaveData kkm_last_timestamp [20:09:28]File name is /storage/kkm_last_timestamp [20:09:28]Write 4 bytes [20:09:28]NVStorageSaveData done [20:09:28]ExternCall_PrintAddStr [20:09:28]wPrintStart [20:09:28]Write to MH i2c: 01 00 00 12 C4 D6 [20:09:28]Write i2c OK [20:09:28]MH_I2C_Read... [20:09:28]Read from MH i2c: 01 [20:09:28]MH_I2C_Read... [20:09:28]Read from MH i2c: 01 07 00 [20:09:28]MH_I2C_Read... [20:09:28]Read from MH i2c: 01 07 00 12 C4 00 00 00 00 00 FF 0F EB [20:09:28]RasterBufferAndPrint [20:09:28]line Счет N : (1)1036465 [20:09:28]line ИНН: 02508201610067 [20:09:28]line Контрольно-Кассовый Чек [20:09:28]line ПРОДАЖА [20:09:28]line ТРК (МРК, ГНК) : 32 [20:09:28]line Товар: 2710124130 [20:09:28]line Аи-92-К-5 [20:09:28]line 10.330 * 67.80 [20:09:28]line = 700.37 [20:09:28]line НДС 12% НСП 1% [20:09:28]line > о реализуемом товаре [20:09:28]line ОКРУГЛЕНИЕ: -0.37 [20:09:28]line ИТОГО: 700.00 [20:09:28]line Внесено: 700.00 [20:09:28]line СДАЧА: 0.00 [20:09:28]line НСП 1% : 6.20 [20:09:28]line НДС 12% : 74.38 [20:09:28]line Наличными: 700.00 [20:09:28]line Безнал.: 0.00 [20:09:28]line Место: АЗС № 94 "Партнер Нефть" [20:09:28]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:09:28]line СНО: Общий режим [20:09:28]line Чек 470 18.08.2024 20:09 [20:09:28]line Смена: 449 ФФД: 1.0 [20:09:28]line ЗНМ: 0300000099 [20:09:28]line РНМ: 0000000000091865 [20:09:28]line Версия ККМ: 001 [20:09:28]line ФМ: 0000000000871820 [20:09:28]line ФД: 260912 [20:09:28]line ФПД: 89330957156458 [20:09:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T200933&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260912&fm=89330957156458&tin=02508201610067®Number=0000000000091865&sum=70000 [20:09:28]written 0, free lines is 4095 [20:09:28]OFD Sender: Processing packet 260912 [packets to send 192, broken 191] [20:09:28]ProducePacketName [20:09:28]name=ofd_packets/00260912 [20:09:28]OFD Sender: To server: pG, [20:09:28]CommunicateWithHost lk.salyk.kg:30040 [20:09:28]ConnectInit lk.salyk.kg [20:09:28]Connected sock=10 [20:09: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 30 0F 01 00 00 FB 3F 07 01 08 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 D6 01 00 00 F4 03 04 00 FD 54 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 30 FB 03 00 35 04 06 00 51 3E FB F8 00 6A 5B C8 91 28 8E 7F 26 F0 [20:09: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 30 4F 00 00 00 EA 63 47 00 84 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 30 10 04 04 00 30 FB 03 00 F4 03 04 00 51 FE C1 66 B6 04 01 00 00 2E 1D DB 49 75 DA 50 A3 [20:09:28]CommunicateWithHost err = 0 [20:09:28]CheckOFDResponse [20:09:28]1017 (14) - 77093643461234 [20:09:28]1041 (16) - 0000000000871820 [20:09:28]1040 (4) - 260912 [20:09:28]1012 (4) - 18.08.2024 13:59 [20:09:28]1206 (1) - 0 [20:09:28]OFD Sender: Remove packet 260912 [20:09:28]ProducePacketName [20:09:28]name=ofd_packets/00260912 [20:09:28]NVStorageDeleteData [20:09:29]Write to MH i2c: 01 00 00 3D C4 01 [20:09:29]Write i2c OK [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: 01 [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: 01 07 00 [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: 01 07 00 3D C4 00 00 00 00 00 77 0C 8B [20:09:29]RasterBufferAndPrint [20:09:29]line [20:09:29]line [20:09:29]line [20:09:29]line [20:09:29]line [20:09:29]written 0, free lines is 3193 [20:09:29]MH_Cut [20:09:29]Write to MH i2c: D1 01 00 44 C4 01 DA [20:09:29]Write i2c OK [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: D1 [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: D1 01 00 [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: D1 01 00 44 C4 00 D9 [20:09:29]Write to MH i2c: 01 00 00 45 C4 09 [20:09:29]Write i2c OK [20:09:29]MH_I2C_Read... [20:09:29]OFD Sender: No OFD packet to send [20:09:30]*** Cut start [20:09:30]*** Purtial cut [20:09:30]*** Stage 1: CUTSNS_PIN = 1 [20:09:32]Read from MH i2c: 01 [20:09:32]MH_I2C_Read... [20:09:32]*** Stop cut motor [20:09:32]*** Cut end [20:09:32]Read from MH i2c: 01 07 00 [20:09:32]MH_I2C_Read... [20:09:32]Read from MH i2c: 01 07 00 45 C4 00 00 00 00 00 FF 0F 1E [20:09:32]process_action close_receipt done [20:09:32]requested_data is exist [20:09:32]produce_requested_data [20:09:32]requested_item fm.sn is exist - process it [20:09:32]wFMCommunicate request_size=4 [20:09:32]MH_SAM_APDU [20:09:32]CAPDU: 80 11 00 00 [20:09:32]Write to MH i2c: E2 08 00 46 C4 80 11 00 00 00 00 00 00 84 [20:09:32]Write i2c OK [20:09:32]MH_I2C_Read... [20:09:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:32]Read from MH i2c: E2 [20:09:32]MH_I2C_Read... [20:09:32]Read from MH i2c: E2 17 00 [20:09:32]MH_I2C_Read... [20:09:32]Read from MH i2c: E2 17 00 46 C4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D1 [20:09:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:09:32]wFMCommunicate OK [20:09:32]requested_item fd.num is exist - process it [20:09:32]SAM_PROTO_GetFieldsCounters [20:09:32]wFMCommunicate request_size=4 [20:09:32]MH_SAM_APDU [20:09:32]CAPDU: 80 13 00 00 [20:09:32]Write to MH i2c: E2 08 00 47 C4 80 13 00 00 00 00 00 00 87 [20:09:32]Write i2c OK [20:09:32]MH_I2C_Read... [20:09:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:09:32]Read from MH i2c: E2 [20:09:32]MH_I2C_Read... [20:09:32]Read from MH i2c: E2 62 00 [20:09:32]MH_I2C_Read... [20:09:32]Read from MH i2c: E2 62 00 47 C4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 30 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 D6 01 00 00 5E 04 04 00 D6 01 00 00 57 04 04 00 D7 01 00 00 19 04 04 00 00 00 00 00 90 00 1B [20:09: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 30 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 D6 01 00 00 5E 04 04 00 D6 01 00 00 57 04 04 00 D7 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:09:32]wFMCommunicate OK [20:09:32]SAM_PROTO_GetFieldsCounters done [20:09:32]requested_item shift.num is exist - process it [20:09:32]requested_item shift.opened is exist - process it [20:09:32]req_shift_opened [20:09:32]FM_GetShiftState [20:09:32]SAM_PROTO_GetShiftState [20:09:32]wFMCommunicate request_size=4 [20:09:32]MH_SAM_APDU [20:09:32]CAPDU: 80 13 01 00 [20:09:32]Write to MH i2c: E2 08 00 48 C4 80 13 01 00 00 00 00 00 89 [20:09:32]Write i2c OK [20:09:32]MH_I2C_Read... [20:09:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:32]Read from MH i2c: E2 [20:09:32]MH_I2C_Read... [20:09:32]Read from MH i2c: E2 0E 00 [20:09:32]MH_I2C_Read... [20:09:32]Read from MH i2c: E2 0E 00 48 C4 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C6 [20:09:32]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:09:32]wFMCommunicate OK [20:09:32]SAM_PROTO_GetShiftState done [20:09:32]FM_GetShiftState done [20:09:32]req_shift_opened done [20:09:32]requested_item shift.open_date is exist - process it [20:09:32]req_shift_open_date [20:09:32]req_shift_open_date done [20:09:32]produce_requested_data done [20:09:32]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260912,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:09:32]process_action_free close_receipt [20:09:32]json_value_free [20:09:32]json_value_free done [20:09:32]process_json_proto returns [20:09:32]Send response to host [20:09:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260912,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:09:32]free response buf [20:09:32]execute_script done [20:09:32]execute_script returns [20:09:32]free content buf [20:09:32]Sock 9.Close socket [20:09:32]Sock 9.Thread stoped [20:09:34]OFD Sender: No OFD packet to send [20:09:39]OFD Sender: No OFD packet to send [20:09:44]OFD Sender: No OFD packet to send [20:09:49]OFD Sender: No OFD packet to send [20:09:54]OFD Sender: No OFD packet to send [20:09:59]OFD Sender: No OFD packet to send [20:10:04]accept exits with 7 [20:10:04]New connection [20:10:04]New thread 3066617188 created [20:10:04]Thread 3066473828 joined [20:10:04]Waiting for new connection... [20:10:04] Sock 7.Parse request [20:10:04]Sock 7.Check first char [20:10:04]Sock 7.First char is OK [20:10:04]request: POST /json_proto HTTP/1.0 [20:10:04]Method: POST [20:10:04]URL: /json_proto [20:10:04]Method is POST - this is cgi request [20:10:04]url: /json_proto [20:10:04]query_string will be loaded in cgi processing [20:10:04]execute_cgi json_proto POST (null) [20:10:04]execute_cgi path=json_proto method=POST [20:10:04]POST find Content-Length [20:10:04]Host: 172.17.55.133:8080 [20:10:04]Content-Length: 679 [20:10:04]Content-Type: application/json [20:10:04] [20:10:04]POST finish read [20:10:04]Found Content-Length = 679 [20:10:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036466", "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" : 74.20, "quantity" : 12.130, "sum" : 900.05, "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" ] } } [20:10:04]execute_script... [20: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)1036466", "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" : 74.20, "quantity" : 12.130, "sum" : 900.05, "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" ] } } [20:10:04]POST & json_proto [20:10:04]process_json_proto [20:10:04]json parsed OK: [20:10:04]protocol is kg_v1.0 [20:10:04]action value=close_receipt [20:10:04]process_action close_receipt [20:10:04]cmd_close_receipt [20:10:04]MH_GetDate [20:10:04]Write to MH i2c: F0 00 00 49 C4 FC [20:10:04]Write i2c OK [20:10:04]MH_I2C_Read... [20:10:04]Read from MH i2c: F0 [20:10:04]MH_I2C_Read... [20:10:04]Read from MH i2c: F0 09 00 [20:10:04]MH_I2C_Read... [20:10:04]Read from MH i2c: F0 09 00 49 C4 00 22 55 C2 66 34 48 D8 65 5D [20:10:04]GetLastDocTimeStamp 1724011773 [20:10:04]current date 1724011810 [20:10:04]FM_GetShiftState [20:10:04]SAM_PROTO_GetShiftState [20:10:04]wFMCommunicate request_size=4 [20:10:04]MH_SAM_APDU [20:10:04]CAPDU: 80 13 01 00 [20:10:04]Write to MH i2c: E2 08 00 4A C4 80 13 01 00 00 00 00 00 8B [20:10:04]Write i2c OK [20:10:04]MH_I2C_Read... [20:10:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:04]Read from MH i2c: E2 [20:10:04]MH_I2C_Read... [20:10:04]Read from MH i2c: E2 0E 00 [20:10:04]MH_I2C_Read... [20:10:04]Read from MH i2c: E2 0E 00 4A C4 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C8 [20:10:04]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:10:04]wFMCommunicate OK [20:10:04]SAM_PROTO_GetShiftState done [20:10:04]FM_GetShiftState done [20:10:04]opened in 1723940556 [20:10:04]opened+sec_in_day 1724026956 [20:10:04]quantity*price = 90004 [20:10:04]sum+1 = 90006 [20:10:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.96 НДС 12% : 95.58 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 471 18.08.2024 20:10 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260913 ФПД: 234061350693136 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T201010&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260913&fm=234061350693136&tin=02508201610067®Number=0000000000091865&sum=90000 [20:10:05]StoreToDocumentArchive [20:10:05]shift 449 fd 260913 [20:10:05]save to /storage/0449/doc_00260913 [20:10:05]save last doc name /storage/0449/doc_00260913 to /storage/kkm_last_doc_name [20:10:05]save OK [20:10:05]Clear old archive folders... [20:10:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:10:05]tlvbuf is 00433780 [20:10:05]SAM_PROTO_ClearQueue [20:10:05]wFMCommunicate request_size=4 [20:10:05]MH_SAM_APDU [20:10:05]CAPDU: 80 09 00 00 [20:10:05]Write to MH i2c: E2 08 00 57 C4 80 09 00 00 00 00 00 00 8D [20:10:05]Write i2c OK [20:10:05]MH_I2C_Read... [20:10:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:10:05]Read from MH i2c: E2 [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: E2 03 00 [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: E2 03 00 57 C4 00 90 00 8F [20:10:05]RAPDU: 90 00 [20:10:05]wFMCommunicate OK [20:10:05]SAM_PROTO_ClearQueue done [20:10:05]KKMCreateOFDPacket [20:10:05]OFDProtocolAddRootSTLVToBuf [20:10:05]FM_MakeSignedData [20:10:05]FM_MakeSignedData [20:10:05]SAM_PROTO_SignData [20:10:05]wFMCommunicate request_size=4 [20:10:05]MH_SAM_APDU [20:10:05]CAPDU: 80 0D 01 02 [20:10:05]Write to MH i2c: E2 08 00 58 C4 80 0D 01 02 00 00 00 00 95 [20:10:05]Write i2c OK [20:10:05]MH_I2C_Read... [20:10:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:10:05]Read from MH i2c: E2 [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: E2 03 00 [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: E2 03 00 58 C4 00 90 00 90 [20:10:05]RAPDU: 90 00 [20:10:05]wFMCommunicate OK [20:10:05]wFMCommunicate request_size=255 [20:10:05]MH_SAM_APDU [20:10: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 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 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 D7 01 00 00 F4 03 04 00 22 55 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 31 FB 03 00 35 04 06 00 D4 [20:10:05]Write to MH i2c: E2 02 01 59 C4 80 0D 02 02 FA 00 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 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 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 D7 01 00 00 F4 03 04 00 22 55 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 31 FB 03 00 35 04 06 00 D4 00 00 F5 [20:10:05]Write i2c OK [20:10:05]MH_I2C_Read... [20:10:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:05]Read from MH i2c: E2 [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: E2 03 00 [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: E2 03 00 59 C4 00 90 00 91 [20:10:05]RAPDU: 90 00 [20:10:05]wFMCommunicate OK [20:10:05]wFMCommunicate request_size=10 [20:10:05]MH_SAM_APDU [20:10:05]CAPDU: 80 0D 02 02 05 E0 A7 A9 E9 10 [20:10:05]Write to MH i2c: E2 0D 00 5A C4 80 0D 02 02 05 00 E0 A7 A9 E9 10 00 00 CB [20:10:05]Write i2c OK [20:10:05]MH_I2C_Read... [20:10:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:05]Read from MH i2c: E2 [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: E2 03 00 [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: E2 03 00 5A C4 00 90 00 92 [20:10:05]RAPDU: 90 00 [20:10:05]wFMCommunicate OK [20:10:05]wFMCommunicate request_size=4 [20:10:05]MH_SAM_APDU [20:10:05]CAPDU: 80 0D 03 02 [20:10:05]Write to MH i2c: E2 08 00 5B C4 80 0D 03 02 00 00 00 00 9A [20:10:05]Write i2c OK [20:10:05]MH_I2C_Read... [20:10:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:10:05]Read from MH i2c: E2 [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: E2 0B 00 [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: E2 0B 00 5B C4 00 7A 6D CC 46 C1 D9 05 E7 90 00 1A [20:10:05]RAPDU: 7A 6D CC 46 C1 D9 05 E7 90 00 [20:10:05]wFMCommunicate OK [20:10:05]SAM_PROTO_SignData done [20:10:05]FM_MakeSignedData done [20:10:05]CreateOFDProtocolMessage [20:10:05]wFMCommunicate request_size=4 [20:10:05]MH_SAM_APDU [20:10:05]CAPDU: 80 11 00 00 [20:10:05]Write to MH i2c: E2 08 00 5C C4 80 11 00 00 00 00 00 00 9A [20:10:05]Write i2c OK [20:10:05]MH_I2C_Read... [20:10:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:05]Read from MH i2c: E2 [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: E2 17 00 [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: E2 17 00 5C C4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E7 [20:10:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:10:05]wFMCommunicate OK [20:10:05]CreateOFDProtocolMessage done [20:10:05]OFDSenderStorePacket 260913 [20:10:05]StoreOFDPacket docnum=260913 [20:10:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 C5 DF 07 01 EF 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 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 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 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 D7 01 00 00 F4 03 04 00 22 55 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 31 FB 03 00 35 04 06 00 D4 E0 A7 A9 E9 10 7A 6D CC 46 C1 D9 05 E7 [20:10:05]CheckFolder [20:10:05]dirname=/storage/ofd_packets [20:10:05]CheckFolder done [20:10:05]ProducePacketName [20:10:05]name=ofd_packets/00260913 [20:10:05]NVStorageSaveData ofd_packets/00260913 [20:10:05]File name is /storage/ofd_packets/00260913 [20:10:05]Write 301 bytes [20:10:05]NVStorageSaveData done [20:10:05]OFDSenderStorePacket done [20:10:05]KKMCreateOFDPacket done [20:10:05]NVStorageSaveData kkm_last_timestamp [20:10:05]File name is /storage/kkm_last_timestamp [20:10:05]Write 4 bytes [20:10:05]NVStorageSaveData done [20:10:05]ExternCall_PrintAddStr [20:10:05]wPrintStart [20:10:05]Write to MH i2c: 01 00 00 5D C4 21 [20:10:05]Write i2c OK [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: 01 [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: 01 07 00 [20:10:05]MH_I2C_Read... [20:10:05]Read from MH i2c: 01 07 00 5D C4 00 00 00 00 00 FF 0F 36 [20:10:05]RasterBufferAndPrint [20:10:05]line Счет N : (1)1036466 [20:10:05]line ИНН: 02508201610067 [20:10:05]line Контрольно-Кассовый Чек [20:10:05]line ПРОДАЖА [20:10:05]line ТРК (МРК, ГНК) : 23 [20:10:05]line Товар: 2710124500 [20:10:05]line Аи-95-К-5 [20:10:05]line 12.130 * 74.20 [20:10:05]line = 900.05 [20:10:05]line НДС 12% НСП 1% [20:10:05]line > о реализуемом товаре [20:10:05]line ОКРУГЛЕНИЕ: -0.05 [20:10:05]line ИТОГО: 900.00 [20:10:05]line Внесено: 900.00 [20:10:05]line СДАЧА: 0.00 [20:10:05]line НСП 1% : 7.96 [20:10:05]line НДС 12% : 95.58 [20:10:05]line Наличными: 900.00 [20:10:05]line Безнал.: 0.00 [20:10:05]line Место: АЗС № 94 "Партнер Нефть" [20:10:05]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:10:05]line СНО: Общий режим [20:10:05]line Чек 471 18.08.2024 20:10 [20:10:05]line Смена: 449 ФФД: 1.0 [20:10:05]line ЗНМ: 0300000099 [20:10:05]line РНМ: 0000000000091865 [20:10:05]line Версия ККМ: 001 [20:10:05]line ФМ: 0000000000871820 [20:10:05]line ФД: 260913 [20:10:05]line ФПД: 234061350693136 [20:10:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T201010&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260913&fm=234061350693136&tin=02508201610067®Number=0000000000091865&sum=90000 [20:10:05]written 0, free lines is 4095 [20:10:05]OFD Sender: Processing packet 260913 [packets to send 192, broken 191] [20:10:05]ProducePacketName [20:10:05]name=ofd_packets/00260913 [20:10:05]OFD Sender: To server: pG, [20:10:05]CommunicateWithHost lk.salyk.kg:30040 [20:10:05]ConnectInit lk.salyk.kg [20:10:06]Write to MH i2c: 01 00 00 88 C4 4C [20:10:06]Write i2c OK [20:10:06]MH_I2C_Read... [20:10:06]Read from MH i2c: 01 [20:10:06]MH_I2C_Read... [20:10:06]Read from MH i2c: 01 07 00 [20:10:06]MH_I2C_Read... [20:10:06]Read from MH i2c: 01 07 00 88 C4 00 00 00 00 00 72 0C D1 [20:10:06]RasterBufferAndPrint [20:10:06]line [20:10:06]line [20:10:06]line [20:10:06]line [20:10:06]line [20:10:06]written 0, free lines is 3188 [20:10:06]MH_Cut [20:10:06]Write to MH i2c: D1 01 00 8F C4 01 25 [20:10:06]Write i2c OK [20:10:06]MH_I2C_Read... [20:10:06]Read from MH i2c: D1 [20:10:06]MH_I2C_Read... [20:10:06]Read from MH i2c: D1 01 00 [20:10:06]MH_I2C_Read... [20:10:06]Read from MH i2c: D1 01 00 8F C4 00 24 [20:10:06]Write to MH i2c: 01 00 00 90 C4 54 [20:10:06]Write i2c OK [20:10:06]MH_I2C_Read... [20:10:07]*** Cut start [20:10:07]*** Purtial cut [20:10:07]*** Stage 1: CUTSNS_PIN = 1 [20:10:09]Read from MH i2c: 01 [20:10:09]MH_I2C_Read... [20:10:09]*** Stop cut motor [20:10:09]*** Cut end [20:10:09]Read from MH i2c: 01 07 00 [20:10:09]MH_I2C_Read... [20:10:09]Read from MH i2c: 01 07 00 90 C4 00 00 00 00 00 FF 0F 69 [20:10:09]process_action close_receipt done [20:10:09]requested_data is exist [20:10:09]produce_requested_data [20:10:09]requested_item fm.sn is exist - process it [20:10:09]wFMCommunicate request_size=4 [20:10:09]MH_SAM_APDU [20:10:09]CAPDU: 80 11 00 00 [20:10:09]Write to MH i2c: E2 08 00 91 C4 80 11 00 00 00 00 00 00 CF [20:10:09]Write i2c OK [20:10:09]MH_I2C_Read... [20:10:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:09]Read from MH i2c: E2 [20:10:09]MH_I2C_Read... [20:10:09]Read from MH i2c: E2 17 00 [20:10:09]MH_I2C_Read... [20:10:09]Read from MH i2c: E2 17 00 91 C4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 1C [20:10:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:10:09]wFMCommunicate OK [20:10:09]requested_item fd.num is exist - process it [20:10:09]SAM_PROTO_GetFieldsCounters [20:10:09]wFMCommunicate request_size=4 [20:10:09]MH_SAM_APDU [20:10:09]CAPDU: 80 13 00 00 [20:10:09]Write to MH i2c: E2 08 00 92 C4 80 13 00 00 00 00 00 00 D2 [20:10:09]Write i2c OK [20:10:09]MH_I2C_Read... [20:10:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:10:09]Read from MH i2c: E2 [20:10:09]MH_I2C_Read... [20:10:09]Read from MH i2c: E2 62 00 [20:10:09]MH_I2C_Read... [20:10:09]Read from MH i2c: E2 62 00 92 C4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 31 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 D7 01 00 00 5E 04 04 00 D7 01 00 00 57 04 04 00 D8 01 00 00 19 04 04 00 00 00 00 00 90 00 6A [20:10: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 31 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 D7 01 00 00 5E 04 04 00 D7 01 00 00 57 04 04 00 D8 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:10:09]wFMCommunicate OK [20:10:09]SAM_PROTO_GetFieldsCounters done [20:10:09]requested_item shift.num is exist - process it [20:10:09]requested_item shift.opened is exist - process it [20:10:09]req_shift_opened [20:10:09]FM_GetShiftState [20:10:09]SAM_PROTO_GetShiftState [20:10:09]wFMCommunicate request_size=4 [20:10:09]MH_SAM_APDU [20:10:09]CAPDU: 80 13 01 00 [20:10:09]Write to MH i2c: E2 08 00 93 C4 80 13 01 00 00 00 00 00 D4 [20:10:09]Write i2c OK [20:10:09]MH_I2C_Read... [20:10:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:09]Read from MH i2c: E2 [20:10:09]MH_I2C_Read... [20:10:09]Read from MH i2c: E2 0E 00 [20:10:09]MH_I2C_Read... [20:10:09]Read from MH i2c: E2 0E 00 93 C4 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 11 [20:10:09]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:10:09]wFMCommunicate OK [20:10:09]SAM_PROTO_GetShiftState done [20:10:09]FM_GetShiftState done [20:10:09]req_shift_opened done [20:10:09]requested_item shift.open_date is exist - process it [20:10:09]req_shift_open_date [20:10:09]req_shift_open_date done [20:10:09]produce_requested_data done [20:10:09]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260913,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:10:09]process_action_free close_receipt [20:10:09]json_value_free [20:10:09]json_value_free done [20:10:09]process_json_proto returns [20:10:09]Send response to host [20:10:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260913,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:10:09]free response buf [20:10:09]execute_script done [20:10:09]execute_script returns [20:10:09]free content buf [20:10:09]Sock 7.Close socket [20:10:09]Sock 7.Thread stoped [20:10:46]accept exits with 9 [20:10:46]New connection [20:10:46]New thread 3066473828 created [20:10:46]Thread 3066617188 joined [20:10:46]Waiting for new connection... [20:10:46] Sock 9.Parse request [20:10:46]Sock 9.Check first char [20:10:46]Sock 9.First char is OK [20:10:46]request: POST /json_proto HTTP/1.0 [20:10:46]Method: POST [20:10:46]URL: /json_proto [20:10:46]Method is POST - this is cgi request [20:10:46]url: /json_proto [20:10:46]query_string will be loaded in cgi processing [20:10:46]execute_cgi json_proto POST (null) [20:10:46]execute_cgi path=json_proto method=POST [20:10:46]POST find Content-Length [20:10:46]Host: 172.17.55.133:8080 [20:10:46]Content-Length: 678 [20:10:46]Content-Type: application/json [20:10:46] [20:10:46]POST finish read [20:10:46]Found Content-Length = 678 [20:10:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:10:46]execute_script... [20:10: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)1036467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:10:46]POST & json_proto [20:10:46]process_json_proto [20:10:46]json parsed OK: [20:10:46]protocol is kg_v1.0 [20:10:46]action value=close_receipt [20:10:46]process_action close_receipt [20:10:46]cmd_close_receipt [20:10:46]MH_GetDate [20:10:46]Write to MH i2c: F0 00 00 94 C4 47 [20:10:46]Write i2c OK [20:10:46]MH_I2C_Read... [20:10:46]Read from MH i2c: F0 [20:10:46]MH_I2C_Read... [20:10:46]Read from MH i2c: F0 09 00 [20:10:46]MH_I2C_Read... [20:10:46]Read from MH i2c: F0 09 00 94 C4 00 4D 55 C2 66 34 48 D8 65 D3 [20:10:46]GetLastDocTimeStamp 1724011810 [20:10:46]current date 1724011853 [20:10:46]FM_GetShiftState [20:10:46]SAM_PROTO_GetShiftState [20:10:46]wFMCommunicate request_size=4 [20:10:46]MH_SAM_APDU [20:10:46]CAPDU: 80 13 01 00 [20:10:46]Write to MH i2c: E2 08 00 95 C4 80 13 01 00 00 00 00 00 D6 [20:10:46]Write i2c OK [20:10:46]MH_I2C_Read... [20:10:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:46]Read from MH i2c: E2 [20:10:46]MH_I2C_Read... [20:10:46]Read from MH i2c: E2 0E 00 [20:10:46]MH_I2C_Read... [20:10:46]Read from MH i2c: E2 0E 00 95 C4 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 13 [20:10:46]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:10:46]wFMCommunicate OK [20:10:46]SAM_PROTO_GetShiftState done [20:10:46]FM_GetShiftState done [20:10:46]opened in 1723940556 [20:10:46]opened+sec_in_day 1724026956 [20:10:46]quantity*price = 50036 [20:10:46]sum+1 = 50037 [20:10:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 472 18.08.2024 20:10 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260914 ФПД: 63681100479887 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T201053&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260914&fm=63681100479887&tin=02508201610067®Number=0000000000091865&sum=50000 [20:10:48]StoreToDocumentArchive [20:10:48]shift 449 fd 260914 [20:10:48]save to /storage/0449/doc_00260914 [20:10:48]save last doc name /storage/0449/doc_00260914 to /storage/kkm_last_doc_name [20:10:48]save OK [20:10:48]Clear old archive folders... [20:10:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:10:48]tlvbuf is 004A26E0 [20:10:48]SAM_PROTO_ClearQueue [20:10:48]wFMCommunicate request_size=4 [20:10:48]MH_SAM_APDU [20:10:48]CAPDU: 80 09 00 00 [20:10:48]Write to MH i2c: E2 08 00 A2 C4 80 09 00 00 00 00 00 00 D8 [20:10:48]Write i2c OK [20:10:48]MH_I2C_Read... [20:10:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:10:48]Read from MH i2c: E2 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: E2 03 00 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: E2 03 00 A2 C4 00 90 00 DA [20:10:48]RAPDU: 90 00 [20:10:48]wFMCommunicate OK [20:10:48]SAM_PROTO_ClearQueue done [20:10:48]KKMCreateOFDPacket [20:10:48]OFDProtocolAddRootSTLVToBuf [20:10:48]FM_MakeSignedData [20:10:48]FM_MakeSignedData [20:10:48]SAM_PROTO_SignData [20:10:48]wFMCommunicate request_size=4 [20:10:48]MH_SAM_APDU [20:10:48]CAPDU: 80 0D 01 02 [20:10:48]Write to MH i2c: E2 08 00 A3 C4 80 0D 01 02 00 00 00 00 E0 [20:10:48]Write i2c OK [20:10:48]MH_I2C_Read... [20:10:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:10:48]Read from MH i2c: E2 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: E2 03 00 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: E2 03 00 A3 C4 00 90 00 DB [20:10:48]RAPDU: 90 00 [20:10:48]wFMCommunicate OK [20:10:48]wFMCommunicate request_size=255 [20:10:48]MH_SAM_APDU [20:10:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D8 01 00 00 F4 03 04 00 4D 55 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 32 FB 03 00 35 04 06 00 39 [20:10:48]Write to MH i2c: E2 02 01 A4 C4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D8 01 00 00 F4 03 04 00 4D 55 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 32 FB 03 00 35 04 06 00 39 00 00 2B [20:10:48]Write i2c OK [20:10:48]MH_I2C_Read... [20:10:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:48]Read from MH i2c: E2 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: E2 03 00 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: E2 03 00 A4 C4 00 90 00 DC [20:10:48]RAPDU: 90 00 [20:10:48]wFMCommunicate OK [20:10:48]wFMCommunicate request_size=10 [20:10:48]MH_SAM_APDU [20:10:48]CAPDU: 80 0D 02 02 05 EA E9 5F 7D 8F [20:10:48]Write to MH i2c: E2 0D 00 A5 C4 80 0D 02 02 05 00 EA E9 5F 7D 8F 00 00 2B [20:10:48]Write i2c OK [20:10:48]MH_I2C_Read... [20:10:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:48]Read from MH i2c: E2 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: E2 03 00 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: E2 03 00 A5 C4 00 90 00 DD [20:10:48]RAPDU: 90 00 [20:10:48]wFMCommunicate OK [20:10:48]wFMCommunicate request_size=4 [20:10:48]MH_SAM_APDU [20:10:48]CAPDU: 80 0D 03 02 [20:10:48]Write to MH i2c: E2 08 00 A6 C4 80 0D 03 02 00 00 00 00 E5 [20:10:48]Write i2c OK [20:10:48]MH_I2C_Read... [20:10:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:10:48]Read from MH i2c: E2 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: E2 0B 00 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: E2 0B 00 A6 C4 00 06 03 B1 8E B0 5F C0 6A 90 00 67 [20:10:48]RAPDU: 06 03 B1 8E B0 5F C0 6A 90 00 [20:10:48]wFMCommunicate OK [20:10:48]SAM_PROTO_SignData done [20:10:48]FM_MakeSignedData done [20:10:48]CreateOFDProtocolMessage [20:10:48]wFMCommunicate request_size=4 [20:10:48]MH_SAM_APDU [20:10:48]CAPDU: 80 11 00 00 [20:10:48]Write to MH i2c: E2 08 00 A7 C4 80 11 00 00 00 00 00 00 E5 [20:10:48]Write i2c OK [20:10:48]MH_I2C_Read... [20:10:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:48]Read from MH i2c: E2 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: E2 17 00 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: E2 17 00 A7 C4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 32 [20:10:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:10:48]wFMCommunicate OK [20:10:48]CreateOFDProtocolMessage done [20:10:48]OFDSenderStorePacket 260914 [20:10:48]StoreOFDPacket docnum=260914 [20:10:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 6C 5B 07 01 9D 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D8 01 00 00 F4 03 04 00 4D 55 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 32 FB 03 00 35 04 06 00 39 EA E9 5F 7D 8F 06 03 B1 8E B0 5F C0 6A [20:10:48]CheckFolder [20:10:48]dirname=/storage/ofd_packets [20:10:48]CheckFolder done [20:10:48]ProducePacketName [20:10:48]name=ofd_packets/00260914 [20:10:48]NVStorageSaveData ofd_packets/00260914 [20:10:48]File name is /storage/ofd_packets/00260914 [20:10:48]Write 301 bytes [20:10:48]NVStorageSaveData done [20:10:48]OFDSenderStorePacket done [20:10:48]KKMCreateOFDPacket done [20:10:48]NVStorageSaveData kkm_last_timestamp [20:10:48]File name is /storage/kkm_last_timestamp [20:10:48]Write 4 bytes [20:10:48]NVStorageSaveData done [20:10:48]ExternCall_PrintAddStr [20:10:48]wPrintStart [20:10:48]Write to MH i2c: 01 00 00 A8 C4 6C [20:10:48]Write i2c OK [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: 01 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: 01 07 00 [20:10:48]MH_I2C_Read... [20:10:48]Read from MH i2c: 01 07 00 A8 C4 00 00 00 00 00 FF 0F 81 [20:10:48]RasterBufferAndPrint [20:10:48]line Счет N : (1)1036467 [20:10:48]line ИНН: 02508201610067 [20:10:48]line Контрольно-Кассовый Чек [20:10:48]line ПРОДАЖА [20:10:48]line ТРК (МРК, ГНК) : 12 [20:10:48]line Товар: 2710124130 [20:10:48]line Аи-92-К-5 [20:10:48]line 7.380 * 67.80 [20:10:48]line = 500.36 [20:10:48]line НДС 12% НСП 1% [20:10:48]line > о реализуемом товаре [20:10:48]line ОКРУГЛЕНИЕ: -0.36 [20:10:48]line ИТОГО: 500.00 [20:10:48]line Внесено: 500.00 [20:10:48]line СДАЧА: 0.00 [20:10:48]line НСП 1% : 4.43 [20:10:48]line НДС 12% : 53.14 [20:10:48]line Наличными: 500.00 [20:10:48]line Безнал.: 0.00 [20:10:48]line Место: АЗС № 94 "Партнер Нефть" [20:10:48]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:10:48]line СНО: Общий режим [20:10:48]line Чек 472 18.08.2024 20:10 [20:10:48]line Смена: 449 ФФД: 1.0 [20:10:48]line ЗНМ: 0300000099 [20:10:48]line РНМ: 0000000000091865 [20:10:48]line Версия ККМ: 001 [20:10:48]line ФМ: 0000000000871820 [20:10:48]line ФД: 260914 [20:10:48]line ФПД: 63681100479887 [20:10:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T201053&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260914&fm=63681100479887&tin=02508201610067®Number=0000000000091865&sum=50000 [20:10:48]written 0, free lines is 4095 [20:10:49]Write to MH i2c: 01 00 00 D3 C4 97 [20:10:49]Write i2c OK [20:10:49]MH_I2C_Read... [20:10:49]Read from MH i2c: 01 [20:10:49]MH_I2C_Read... [20:10:49]Read from MH i2c: 01 07 00 [20:10:49]MH_I2C_Read... [20:10:49]Read from MH i2c: 01 07 00 D3 C4 00 00 00 00 00 73 0C 1D [20:10:49]RasterBufferAndPrint [20:10:49]line [20:10:49]line [20:10:49]line [20:10:49]line [20:10:49]line [20:10:49]written 0, free lines is 3190 [20:10:49]MH_Cut [20:10:49]Write to MH i2c: D1 01 00 DA C4 01 70 [20:10:49]Write i2c OK [20:10:49]MH_I2C_Read... [20:10:49]Read from MH i2c: D1 [20:10:49]MH_I2C_Read... [20:10:49]Read from MH i2c: D1 01 00 [20:10:49]MH_I2C_Read... [20:10:49]Read from MH i2c: D1 01 00 DA C4 00 6F [20:10:49]Write to MH i2c: 01 00 00 DB C4 9F [20:10:49]Write i2c OK [20:10:49]MH_I2C_Read... [20:10:50]*** Cut start [20:10:50]*** Purtial cut [20:10:50]*** Stage 1: CUTSNS_PIN = 1 [20:10:52]Read from MH i2c: 01 [20:10:52]MH_I2C_Read... [20:10:52]*** Stop cut motor [20:10:52]*** Cut end [20:10:52]Read from MH i2c: 01 07 00 [20:10:52]MH_I2C_Read... [20:10:52]Read from MH i2c: 01 07 00 DB C4 00 00 00 00 00 FF 0F B4 [20:10:52]process_action close_receipt done [20:10:52]requested_data is exist [20:10:52]produce_requested_data [20:10:52]requested_item fm.sn is exist - process it [20:10:52]wFMCommunicate request_size=4 [20:10:52]MH_SAM_APDU [20:10:52]CAPDU: 80 11 00 00 [20:10:52]Write to MH i2c: E2 08 00 DC C4 80 11 00 00 00 00 00 00 1A [20:10:52]Write i2c OK [20:10:52]MH_I2C_Read... [20:10:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:52]Read from MH i2c: E2 [20:10:52]MH_I2C_Read... [20:10:52]Read from MH i2c: E2 17 00 [20:10:52]MH_I2C_Read... [20:10:52]Read from MH i2c: E2 17 00 DC C4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 67 [20:10:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:10:52]wFMCommunicate OK [20:10:52]requested_item fd.num is exist - process it [20:10:52]SAM_PROTO_GetFieldsCounters [20:10:52]wFMCommunicate request_size=4 [20:10:52]MH_SAM_APDU [20:10:52]CAPDU: 80 13 00 00 [20:10:52]Write to MH i2c: E2 08 00 DD C4 80 13 00 00 00 00 00 00 1D [20:10:52]Write i2c OK [20:10:52]MH_I2C_Read... [20:10:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:10:52]Read from MH i2c: E2 [20:10:52]MH_I2C_Read... [20:10:52]Read from MH i2c: E2 62 00 [20:10:52]MH_I2C_Read... [20:10:52]Read from MH i2c: E2 62 00 DD C4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 32 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 D8 01 00 00 5E 04 04 00 D8 01 00 00 57 04 04 00 D9 01 00 00 19 04 04 00 00 00 00 00 90 00 B9 [20:10: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 32 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 D8 01 00 00 5E 04 04 00 D8 01 00 00 57 04 04 00 D9 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:10:52]wFMCommunicate OK [20:10:52]SAM_PROTO_GetFieldsCounters done [20:10:52]requested_item shift.num is exist - process it [20:10:52]requested_item shift.opened is exist - process it [20:10:52]req_shift_opened [20:10:52]FM_GetShiftState [20:10:52]SAM_PROTO_GetShiftState [20:10:52]wFMCommunicate request_size=4 [20:10:52]MH_SAM_APDU [20:10:52]CAPDU: 80 13 01 00 [20:10:52]Write to MH i2c: E2 08 00 DE C4 80 13 01 00 00 00 00 00 1F [20:10:52]Write i2c OK [20:10:52]MH_I2C_Read... [20:10:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:52]Read from MH i2c: E2 [20:10:52]MH_I2C_Read... [20:10:52]Read from MH i2c: E2 0E 00 [20:10:52]MH_I2C_Read... [20:10:52]Read from MH i2c: E2 0E 00 DE C4 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 5C [20:10:52]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:10:52]wFMCommunicate OK [20:10:52]SAM_PROTO_GetShiftState done [20:10:52]FM_GetShiftState done [20:10:52]req_shift_opened done [20:10:52]requested_item shift.open_date is exist - process it [20:10:52]req_shift_open_date [20:10:52]req_shift_open_date done [20:10:52]produce_requested_data done [20:10:52]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260914,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:10:52]process_action_free close_receipt [20:10:52]json_value_free [20:10:52]json_value_free done [20:10:52]process_json_proto returns [20:10:52]Send response to host [20:10:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260914,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:10:52]free response buf [20:10:52]execute_script done [20:10:52]execute_script returns [20:10:52]free content buf [20:10:52]Sock 9.Close socket [20:10:52]Sock 9.Thread stoped [20:11:08]accept exits with 7 [20:11:08]New connection [20:11:08]New thread 3066617188 created [20:11:08]Thread 3066473828 joined [20:11:08]Waiting for new connection... [20:11:08] Sock 7.Parse request [20:11:08]Sock 7.Check first char [20:11:08]Sock 7.First char is OK [20:11:08]request: POST /json_proto HTTP/1.0 [20:11:08]Method: POST [20:11:08]URL: /json_proto [20:11:08]Method is POST - this is cgi request [20:11:08]url: /json_proto [20:11:08]query_string will be loaded in cgi processing [20:11:08]execute_cgi json_proto POST (null) [20:11:08]execute_cgi path=json_proto method=POST [20:11:08]POST find Content-Length [20:11:08]Host: 172.17.55.133:8080 [20:11:08]Content-Length: 684 [20:11:08]Content-Type: application/json [20:11:08] [20:11:08]POST finish read [20:11:08]Found Content-Length = 684 [20:11:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "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:11:08]execute_script... [20: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)1036468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "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:11:08]POST & json_proto [20:11:08]process_json_proto [20:11:08]json parsed OK: [20:11:08]protocol is kg_v1.0 [20:11:08]action value=close_receipt [20:11:08]process_action close_receipt [20:11:08]cmd_close_receipt [20:11:08]MH_GetDate [20:11:08]Write to MH i2c: F0 00 00 DF C4 92 [20:11:08]Write i2c OK [20:11:08]MH_I2C_Read... [20:11:08]Read from MH i2c: F0 [20:11:08]MH_I2C_Read... [20:11:08]Read from MH i2c: F0 09 00 [20:11:08]MH_I2C_Read... [20:11:08]Read from MH i2c: F0 09 00 DF C4 00 63 55 C2 66 34 48 D8 65 34 [20:11:08]GetLastDocTimeStamp 1724011853 [20:11:08]current date 1724011875 [20:11:08]FM_GetShiftState [20:11:08]SAM_PROTO_GetShiftState [20:11:08]wFMCommunicate request_size=4 [20:11:08]MH_SAM_APDU [20:11:08]CAPDU: 80 13 01 00 [20:11:08]Write to MH i2c: E2 08 00 E0 C4 80 13 01 00 00 00 00 00 21 [20:11:08]Write i2c OK [20:11:08]MH_I2C_Read... [20:11:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:08]Read from MH i2c: E2 [20:11:08]MH_I2C_Read... [20:11:08]Read from MH i2c: E2 0E 00 [20:11:08]MH_I2C_Read... [20:11:08]Read from MH i2c: E2 0E 00 E0 C4 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 5E [20:11:08]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:11:08]wFMCommunicate OK [20:11:08]SAM_PROTO_GetShiftState done [20:11:08]FM_GetShiftState done [20:11:08]opened in 1723940556 [20:11:08]opened+sec_in_day 1724026956 [20:11:08]quantity*price = 80010 [20:11:08]sum+1 = 80011 [20:11:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 473 18.08.2024 20:11 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260915 ФПД: 172713672059519 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T201115&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260915&fm=172713672059519&tin=02508201610067®Number=0000000000091865&sum=80000 [20:11:09]StoreToDocumentArchive [20:11:09]shift 449 fd 260915 [20:11:09]save to /storage/0449/doc_00260915 [20:11:09]save last doc name /storage/0449/doc_00260915 to /storage/kkm_last_doc_name [20:11:09]save OK [20:11:09]Clear old archive folders... [20:11:09]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:11:09]tlvbuf is 00387500 [20:11:09]SAM_PROTO_ClearQueue [20:11:09]wFMCommunicate request_size=4 [20:11:09]MH_SAM_APDU [20:11:09]CAPDU: 80 09 00 00 [20:11:09]Write to MH i2c: E2 08 00 ED C4 80 09 00 00 00 00 00 00 23 [20:11:09]Write i2c OK [20:11:09]MH_I2C_Read... [20:11:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:11:09]Read from MH i2c: E2 [20:11:09]MH_I2C_Read... [20:11:09]Read from MH i2c: E2 03 00 [20:11:09]MH_I2C_Read... [20:11:09]Read from MH i2c: E2 03 00 ED C4 00 90 00 25 [20:11:09]RAPDU: 90 00 [20:11:09]wFMCommunicate OK [20:11:09]SAM_PROTO_ClearQueue done [20:11:09]KKMCreateOFDPacket [20:11:09]OFDProtocolAddRootSTLVToBuf [20:11:09]FM_MakeSignedData [20:11:09]FM_MakeSignedData [20:11:09]SAM_PROTO_SignData [20:11:09]wFMCommunicate request_size=4 [20:11:09]MH_SAM_APDU [20:11:09]CAPDU: 80 0D 01 02 [20:11:09]Write to MH i2c: E2 08 00 EE C4 80 0D 01 02 00 00 00 00 2B [20:11:09]Write i2c OK [20:11:09]MH_I2C_Read... [20:11:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:11:10]Read from MH i2c: E2 [20:11:10]MH_I2C_Read... [20:11:10]Read from MH i2c: E2 03 00 [20:11:10]MH_I2C_Read... [20:11:10]Read from MH i2c: E2 03 00 EE C4 00 90 00 26 [20:11:10]RAPDU: 90 00 [20:11:10]wFMCommunicate OK [20:11:10]wFMCommunicate request_size=255 [20:11:10]MH_SAM_APDU [20:11:10]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 01 00 00 F4 03 04 00 63 55 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 33 FB 03 00 35 04 06 00 [20:11:10]Write to MH i2c: E2 02 01 EF C4 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 01 00 00 F4 03 04 00 63 55 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 33 FB 03 00 35 04 06 00 00 00 75 [20:11:10]Write i2c OK [20:11:10]MH_I2C_Read... [20:11:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:10]Read from MH i2c: E2 [20:11:10]MH_I2C_Read... [20:11:10]Read from MH i2c: E2 03 00 [20:11:10]MH_I2C_Read... [20:11:10]Read from MH i2c: E2 03 00 EF C4 00 90 00 27 [20:11:10]RAPDU: 90 00 [20:11:10]wFMCommunicate OK [20:11:10]wFMCommunicate request_size=11 [20:11:10]MH_SAM_APDU [20:11:10]CAPDU: 80 0D 02 02 06 9D 15 09 12 2A 7F [20:11:10]Write to MH i2c: E2 0E 00 F0 C4 80 0D 02 02 06 00 9D 15 09 12 2A 7F 00 00 B0 [20:11:10]Write i2c OK [20:11:10]MH_I2C_Read... [20:11:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:10]Read from MH i2c: E2 [20:11:10]MH_I2C_Read... [20:11:10]Read from MH i2c: E2 03 00 [20:11:10]MH_I2C_Read... [20:11:10]Read from MH i2c: E2 03 00 F0 C4 00 90 00 28 [20:11:10]RAPDU: 90 00 [20:11:10]wFMCommunicate OK [20:11:10]wFMCommunicate request_size=4 [20:11:10]MH_SAM_APDU [20:11:10]CAPDU: 80 0D 03 02 [20:11:10]Write to MH i2c: E2 08 00 F1 C4 80 0D 03 02 00 00 00 00 30 [20:11:10]Write i2c OK [20:11:10]MH_I2C_Read... [20:11:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:11:10]Read from MH i2c: E2 [20:11:10]MH_I2C_Read... [20:11:10]Read from MH i2c: E2 0B 00 [20:11:10]MH_I2C_Read... [20:11:10]Read from MH i2c: E2 0B 00 F1 C4 00 F8 90 00 A9 DA A7 75 AD 90 00 05 [20:11:10]RAPDU: F8 90 00 A9 DA A7 75 AD 90 00 [20:11:10]wFMCommunicate OK [20:11:10]SAM_PROTO_SignData done [20:11:10]FM_MakeSignedData done [20:11:10]CreateOFDProtocolMessage [20:11:10]wFMCommunicate request_size=4 [20:11:10]MH_SAM_APDU [20:11:10]CAPDU: 80 11 00 00 [20:11:10]Write to MH i2c: E2 08 00 F2 C4 80 11 00 00 00 00 00 00 30 [20:11:10]Write i2c OK [20:11:10]MH_I2C_Read... [20:11:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:10]Read from MH i2c: E2 [20:11:10]MH_I2C_Read... [20:11:10]Read from MH i2c: E2 17 00 [20:11:10]MH_I2C_Read... [20:11:10]Read from MH i2c: E2 17 00 F2 C4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 7D [20:11:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:11:10]wFMCommunicate OK [20:11:10]CreateOFDProtocolMessage done [20:11:10]OFDSenderStorePacket 260915 [20:11:10]StoreOFDPacket docnum=260915 [20: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 30 10 01 00 00 1C B6 08 01 89 4E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 01 00 00 F4 03 04 00 63 55 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 33 FB 03 00 35 04 06 00 9D 15 09 12 2A 7F F8 90 00 A9 DA A7 75 AD [20:11:10]CheckFolder [20:11:10]dirname=/storage/ofd_packets [20:11:10]CheckFolder done [20:11:10]ProducePacketName [20:11:10]name=ofd_packets/00260915 [20:11:10]NVStorageSaveData ofd_packets/00260915 [20:11:10]File name is /storage/ofd_packets/00260915 [20:11:10]Write 302 bytes [20:11:10]NVStorageSaveData done [20:11:10]OFDSenderStorePacket done [20:11:10]KKMCreateOFDPacket done [20:11:10]NVStorageSaveData kkm_last_timestamp [20:11:10]File name is /storage/kkm_last_timestamp [20:11:10]Write 4 bytes [20:11:10]NVStorageSaveData done [20:11:10]ExternCall_PrintAddStr [20:11:10]wPrintStart [20:11:10]Write to MH i2c: 01 00 00 F3 C4 B7 [20:11:10]Write i2c OK [20:11:10]MH_I2C_Read... [20:11:10]Read from MH i2c: 01 [20:11:10]MH_I2C_Read... [20:11:10]Read from MH i2c: 01 07 00 [20:11:10]MH_I2C_Read... [20:11:10]Read from MH i2c: 01 07 00 F3 C4 00 00 00 00 00 FF 0F CC [20:11:10]RasterBufferAndPrint [20:11:10]line Счет N : (1)1036468 [20:11:10]line ИНН: 02508201610067 [20:11:10]line Контрольно-Кассовый Чек [20:11:10]line ПРОДАЖА [20:11:10]line ТРК (МРК, ГНК) : 43 [20:11:10]line Товар: 2710194210 [20:11:10]line ДТ(л)-К-4 [20:11:10]line 10.500 * 76.20 [20:11:10]line = 800.10 [20:11:10]line НДС 12% НСП 1% [20:11:10]line > о реализуемом товаре [20:11:10]line ОКРУГЛЕНИЕ: -0.10 [20:11:10]line ИТОГО: 800.00 [20:11:10]line Внесено: 800.00 [20:11:10]line СДАЧА: 0.00 [20:11:10]line НСП 1% : 7.08 [20:11:10]line НДС 12% : 84.97 [20:11:10]line Наличными: 800.00 [20:11:10]line Безнал.: 0.00 [20:11:10]line Место: АЗС № 94 "Партнер Нефть" [20:11:10]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:11:10]line СНО: Общий режим [20:11:10]line Чек 473 18.08.2024 20:11 [20:11:10]line Смена: 449 ФФД: 1.0 [20:11:10]line ЗНМ: 0300000099 [20:11:10]line РНМ: 0000000000091865 [20:11:10]line Версия ККМ: 001 [20:11:10]line ФМ: 0000000000871820 [20:11:10]line ФД: 260915 [20:11:10]line ФПД: 172713672059519 [20:11:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T201115&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260915&fm=172713672059519&tin=02508201610067®Number=0000000000091865&sum=80000 [20:11:10]written 0, free lines is 4095 [20:11:11]Write to MH i2c: 01 00 00 1E C5 E3 [20:11:11]Write i2c OK [20:11:11]MH_I2C_Read... [20:11:11]Read from MH i2c: 01 [20:11:11]MH_I2C_Read... [20:11:11]Read from MH i2c: 01 07 00 [20:11:11]MH_I2C_Read... [20:11:11]Read from MH i2c: 01 07 00 1E C5 00 00 00 00 00 71 0C 67 [20:11:11]RasterBufferAndPrint [20:11:11]line [20:11:11]line [20:11:11]line [20:11:11]line [20:11:11]line [20:11:11]written 0, free lines is 3188 [20:11:11]MH_Cut [20:11:11]Write to MH i2c: D1 01 00 25 C5 01 BC [20:11:11]Write i2c OK [20:11:11]MH_I2C_Read... [20:11:11]Read from MH i2c: D1 [20:11:11]MH_I2C_Read... [20:11:11]Read from MH i2c: D1 01 00 [20:11:11]MH_I2C_Read... [20:11:11]Read from MH i2c: D1 01 00 25 C5 00 BB [20:11:11]Write to MH i2c: 01 00 00 26 C5 EB [20:11:11]Write i2c OK [20:11:11]MH_I2C_Read... [20:11:12]*** Cut start [20:11:12]*** Purtial cut [20:11:12]*** Stage 1: CUTSNS_PIN = 1 [20:11:14]Read from MH i2c: 01 [20:11:14]MH_I2C_Read... [20:11:14]*** Stop cut motor [20:11:14]*** Cut end [20:11:14]Read from MH i2c: 01 07 00 [20:11:14]MH_I2C_Read... [20:11:14]Read from MH i2c: 01 07 00 26 C5 00 00 00 00 00 FF 0F 00 [20:11:14]process_action close_receipt done [20:11:14]requested_data is exist [20:11:14]produce_requested_data [20:11:14]requested_item fm.sn is exist - process it [20:11:14]wFMCommunicate request_size=4 [20:11:14]MH_SAM_APDU [20:11:14]CAPDU: 80 11 00 00 [20:11:14]Write to MH i2c: E2 08 00 27 C5 80 11 00 00 00 00 00 00 66 [20:11:14]Write i2c OK [20:11:14]MH_I2C_Read... [20:11:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:14]Read from MH i2c: E2 [20:11:14]MH_I2C_Read... [20:11:14]Read from MH i2c: E2 17 00 [20:11:14]MH_I2C_Read... [20:11:14]Read from MH i2c: E2 17 00 27 C5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B3 [20:11:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:11:14]wFMCommunicate OK [20:11:14]requested_item fd.num is exist - process it [20:11:14]SAM_PROTO_GetFieldsCounters [20:11:14]wFMCommunicate request_size=4 [20:11:14]MH_SAM_APDU [20:11:14]CAPDU: 80 13 00 00 [20:11:14]Write to MH i2c: E2 08 00 28 C5 80 13 00 00 00 00 00 00 69 [20:11:14]Write i2c OK [20:11:14]MH_I2C_Read... [20:11:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:11:14]Read from MH i2c: E2 [20:11:14]MH_I2C_Read... [20:11:14]Read from MH i2c: E2 62 00 [20:11:14]MH_I2C_Read... [20:11:14]Read from MH i2c: E2 62 00 28 C5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 33 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 D9 01 00 00 5E 04 04 00 D9 01 00 00 57 04 04 00 DA 01 00 00 19 04 04 00 00 00 00 00 90 00 09 [20:11: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 33 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 D9 01 00 00 5E 04 04 00 D9 01 00 00 57 04 04 00 DA 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:11:14]wFMCommunicate OK [20:11:14]SAM_PROTO_GetFieldsCounters done [20:11:14]requested_item shift.num is exist - process it [20:11:14]requested_item shift.opened is exist - process it [20:11:14]req_shift_opened [20:11:14]FM_GetShiftState [20:11:14]SAM_PROTO_GetShiftState [20:11:14]wFMCommunicate request_size=4 [20:11:14]MH_SAM_APDU [20:11:14]CAPDU: 80 13 01 00 [20:11:14]Write to MH i2c: E2 08 00 29 C5 80 13 01 00 00 00 00 00 6B [20:11:14]Write i2c OK [20:11:14]MH_I2C_Read... [20:11:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:14]Read from MH i2c: E2 [20:11:14]MH_I2C_Read... [20:11:14]Read from MH i2c: E2 0E 00 [20:11:14]MH_I2C_Read... [20:11:14]Read from MH i2c: E2 0E 00 29 C5 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A8 [20:11:14]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:11:14]wFMCommunicate OK [20:11:14]SAM_PROTO_GetShiftState done [20:11:14]FM_GetShiftState done [20:11:14]req_shift_opened done [20:11:14]requested_item shift.open_date is exist - process it [20:11:14]req_shift_open_date [20:11:14]req_shift_open_date done [20:11:14]produce_requested_data done [20:11:14]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260915,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:11:14]process_action_free close_receipt [20:11:14]json_value_free [20:11:14]json_value_free done [20:11:14]process_json_proto returns [20:11:14]Send response to host [20:11:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260915,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:11:14]free response buf [20:11:14]execute_script done [20:11:14]execute_script returns [20:11:14]free content buf [20:11:14]Sock 7.Close socket [20:11:14]Sock 7.Thread stoped [20:12:18]ConnectInit Can't connect to host [20:12:18]CommunicateWithHost connect error [20:12:18]CommunicateWithHost err = -1 [20:12:18]OFD Sender: Server communicate error [20:12:18]OFD Sender: Processing packet 260913 [packets to send 194, broken 191] [20:12:18]ProducePacketName [20:12:18]name=ofd_packets/00260913 [20:12:18]OFD Sender: To server: pG, [20:12:18]CommunicateWithHost lk.salyk.kg:30040 [20:12:18]ConnectInit lk.salyk.kg [20:12:18]Connected sock=10 [20:12: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 30 0F 01 00 00 C5 DF 07 01 EF 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 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 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 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 D7 01 00 00 F4 03 04 00 22 55 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 31 FB 03 00 35 04 06 00 D4 E0 A7 A9 E9 10 7A 6D CC 46 C1 D9 05 E7 [20:12: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 30 4F 00 00 00 ED F1 47 00 4A 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 30 10 04 04 00 31 FB 03 00 F4 03 04 00 FA FE C1 66 B6 04 01 00 00 45 99 A4 E8 3B B5 2C 41 [20:12:18]CommunicateWithHost err = 0 [20:12:18]CheckOFDResponse [20:12:18]1017 (14) - 77093643461234 [20:12:18]1041 (16) - 0000000000871820 [20:12:18]1040 (4) - 260913 [20:12:18]1012 (4) - 18.08.2024 14:02 [20:12:18]1206 (1) - 0 [20:12:18]OFD Sender: Remove packet 260913 [20:12:18]ProducePacketName [20:12:18]name=ofd_packets/00260913 [20:12:18]NVStorageDeleteData [20:12:19]OFD Sender: Processing packet 260914 [packets to send 193, broken 191] [20:12:19]ProducePacketName [20:12:19]name=ofd_packets/00260914 [20:12:19]OFD Sender: To server: pG, [20:12:19]CommunicateWithHost lk.salyk.kg:30040 [20:12:19]ConnectInit lk.salyk.kg [20:12:19]Connected sock=7 [20:12: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 30 0F 01 00 00 6C 5B 07 01 9D 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D8 01 00 00 F4 03 04 00 4D 55 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 32 FB 03 00 35 04 06 00 39 EA E9 5F 7D 8F 06 03 B1 8E B0 5F C0 6A [20:12: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 30 4F 00 00 00 14 76 47 00 89 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 30 10 04 04 00 32 FB 03 00 F4 03 04 00 FB FE C1 66 B6 04 01 00 00 42 26 D9 94 F0 ED 77 B5 [20:12:19]CommunicateWithHost err = 0 [20:12:19]CheckOFDResponse [20:12:19]1017 (14) - 77093643461234 [20:12:19]1041 (16) - 0000000000871820 [20:12:19]1040 (4) - 260914 [20:12:19]1012 (4) - 18.08.2024 14:02 [20:12:19]1206 (1) - 0 [20:12:19]OFD Sender: Remove packet 260914 [20:12:19]ProducePacketName [20:12:19]name=ofd_packets/00260914 [20:12:19]NVStorageDeleteData [20:12:19]OFD Sender: Processing packet 260915 [packets to send 192, broken 191] [20:12:19]ProducePacketName [20:12:19]name=ofd_packets/00260915 [20:12:19]OFD Sender: To server: pG, [20:12:19]CommunicateWithHost lk.salyk.kg:30040 [20:12:19]ConnectInit lk.salyk.kg [20:12:20]Connected sock=7 [20:12: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 30 10 01 00 00 1C B6 08 01 89 4E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 01 00 00 F4 03 04 00 63 55 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 33 FB 03 00 35 04 06 00 9D 15 09 12 2A 7F F8 90 00 A9 DA A7 75 AD [20:12: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 30 4F 00 00 00 1B 4F 47 00 D7 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 33 FB 03 00 F4 03 04 00 FC FE C1 66 B6 04 01 00 00 F2 7C AA 1F 7A 4A 27 6B [20:12:20]CommunicateWithHost err = 0 [20:12:20]CheckOFDResponse [20:12:20]1017 (14) - 77093643461234 [20:12:20]1041 (16) - 0000000000871820 [20:12:20]1040 (4) - 260915 [20:12:20]1012 (4) - 18.08.2024 14:02 [20:12:20]1206 (1) - 0 [20:12:20]OFD Sender: Remove packet 260915 [20:12:20]ProducePacketName [20:12:20]name=ofd_packets/00260915 [20:12:20]NVStorageDeleteData [20:12:20]OFD Sender: No OFD packet to send [20:12:25]OFD Sender: No OFD packet to send [20:12:30]OFD Sender: No OFD packet to send [20:12:35]OFD Sender: No OFD packet to send [20:12:40]OFD Sender: No OFD packet to send [20:12:45]OFD Sender: No OFD packet to send [20:12:50]OFD Sender: No OFD packet to send [20:12:55]OFD Sender: No OFD packet to send [20:13:00]OFD Sender: No OFD packet to send [20:13:05]OFD Sender: No OFD packet to send [20:13:10]OFD Sender: No OFD packet to send [20:13:15]OFD Sender: No OFD packet to send [20:13:20]OFD Sender: No OFD packet to send [20:13:25]OFD Sender: No OFD packet to send [20:13:30]accept exits with 9 [20:13:30]New connection [20:13:30]New thread 3066473828 created [20:13:30]Thread 3066617188 joined [20:13:30]Waiting for new connection... [20:13:30] Sock 9.Parse request [20:13:30]Sock 9.Check first char [20:13:30]Sock 9.First char is OK [20:13:30]request: POST /json_proto HTTP/1.0 [20:13:30]Method: POST [20:13:30]URL: /json_proto [20:13:30]Method is POST - this is cgi request [20:13:30]url: /json_proto [20:13:30]query_string will be loaded in cgi processing [20:13:30]execute_cgi json_proto POST (null) [20:13:30]execute_cgi path=json_proto method=POST [20:13:30]POST find Content-Length [20:13:30]Host: 172.17.55.133:8080 [20:13:30]Content-Length: 683 [20:13:30]Content-Type: application/json [20:13:30] [20:13:30]POST finish read [20:13:30]Found Content-Length = 683 [20:13:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:13:30]execute_script... [20:13: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)1036469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:13:30]POST & json_proto [20:13:30]process_json_proto [20:13:30]json parsed OK: [20:13:30]protocol is kg_v1.0 [20:13:30]action value=close_receipt [20:13:30]process_action close_receipt [20:13:30]cmd_close_receipt [20:13:30]MH_GetDate [20:13:30]Write to MH i2c: F0 00 00 2A C5 DE [20:13:30]Write i2c OK [20:13:30]MH_I2C_Read... [20:13:30]Read from MH i2c: F0 [20:13:30]MH_I2C_Read... [20:13:30]Read from MH i2c: F0 09 00 [20:13:30]MH_I2C_Read... [20:13:30]Read from MH i2c: F0 09 00 2A C5 00 F1 55 C2 66 34 48 D8 65 0E [20:13:30]GetLastDocTimeStamp 1724011875 [20:13:30]current date 1724012017 [20:13:30]FM_GetShiftState [20:13:30]SAM_PROTO_GetShiftState [20:13:30]wFMCommunicate request_size=4 [20:13:30]MH_SAM_APDU [20:13:30]CAPDU: 80 13 01 00 [20:13:30]Write to MH i2c: E2 08 00 2B C5 80 13 01 00 00 00 00 00 6D [20:13:30]Write i2c OK [20:13:30]MH_I2C_Read... [20:13:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:30]Read from MH i2c: E2 [20:13:30]MH_I2C_Read... [20:13:30]Read from MH i2c: E2 0E 00 [20:13:30]MH_I2C_Read... [20:13:30]Read from MH i2c: E2 0E 00 2B C5 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 AA [20:13:30]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:13:30]wFMCommunicate OK [20:13:30]SAM_PROTO_GetShiftState done [20:13:30]FM_GetShiftState done [20:13:30]opened in 1723940556 [20:13:30]opened+sec_in_day 1724026956 [20:13:30]quantity*price = 100005 [20:13:30]sum+1 = 100006 [20:13:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 474 18.08.2024 20:13 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260916 ФПД: 43067086488421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T201337&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260916&fm=43067086488421&tin=02508201610067®Number=0000000000091865&sum=100000 [20:13:31]StoreToDocumentArchive [20:13:31]shift 449 fd 260916 [20:13:31]save to /storage/0449/doc_00260916 [20:13:31]save last doc name /storage/0449/doc_00260916 to /storage/kkm_last_doc_name [20:13:31]save OK [20:13:31]Clear old archive folders... [20:13:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:13:31]tlvbuf is 003E28D0 [20:13:31]SAM_PROTO_ClearQueue [20:13:31]wFMCommunicate request_size=4 [20:13:31]MH_SAM_APDU [20:13:31]CAPDU: 80 09 00 00 [20:13:31]Write to MH i2c: E2 08 00 38 C5 80 09 00 00 00 00 00 00 6F [20:13:31]Write i2c OK [20:13:31]MH_I2C_Read... [20:13:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:13:31]Read from MH i2c: E2 [20:13:31]MH_I2C_Read... [20:13:31]Read from MH i2c: E2 03 00 [20:13:31]MH_I2C_Read... [20:13:31]Read from MH i2c: E2 03 00 38 C5 00 90 00 71 [20:13:31]RAPDU: 90 00 [20:13:31]wFMCommunicate OK [20:13:31]SAM_PROTO_ClearQueue done [20:13:31]KKMCreateOFDPacket [20:13:31]OFDProtocolAddRootSTLVToBuf [20:13:31]FM_MakeSignedData [20:13:31]FM_MakeSignedData [20:13:31]SAM_PROTO_SignData [20:13:31]wFMCommunicate request_size=4 [20:13:31]MH_SAM_APDU [20:13:31]CAPDU: 80 0D 01 02 [20:13:31]Write to MH i2c: E2 08 00 39 C5 80 0D 01 02 00 00 00 00 77 [20:13:31]Write i2c OK [20:13:31]MH_I2C_Read... [20:13:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:13:31]Read from MH i2c: E2 [20:13:31]MH_I2C_Read... [20:13:31]Read from MH i2c: E2 03 00 [20:13:31]MH_I2C_Read... [20:13:31]Read from MH i2c: E2 03 00 39 C5 00 90 00 72 [20:13:31]RAPDU: 90 00 [20:13:31]wFMCommunicate OK [20:13:31]wFMCommunicate request_size=255 [20:13:31]MH_SAM_APDU [20:13:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 01 00 00 F4 03 04 00 F1 55 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 34 FB 03 00 35 04 06 00 27 [20:13:31]Write to MH i2c: E2 02 01 3A C5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 01 00 00 F4 03 04 00 F1 55 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 34 FB 03 00 35 04 06 00 27 00 00 E7 [20:13:31]Write i2c OK [20:13:31]MH_I2C_Read... [20:13:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:32]Read from MH i2c: E2 [20:13:32]MH_I2C_Read... [20:13:32]Read from MH i2c: E2 03 00 [20:13:32]MH_I2C_Read... [20:13:32]Read from MH i2c: E2 03 00 3A C5 00 90 00 73 [20:13:32]RAPDU: 90 00 [20:13:32]wFMCommunicate OK [20:13:32]wFMCommunicate request_size=10 [20:13:32]MH_SAM_APDU [20:13:32]CAPDU: 80 0D 02 02 05 2B 56 64 43 65 [20:13:32]Write to MH i2c: E2 0D 00 3B C5 80 0D 02 02 05 00 2B 56 64 43 65 00 00 11 [20:13:32]Write i2c OK [20:13:32]MH_I2C_Read... [20:13:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:32]Read from MH i2c: E2 [20:13:32]MH_I2C_Read... [20:13:32]Read from MH i2c: E2 03 00 [20:13:32]MH_I2C_Read... [20:13:32]Read from MH i2c: E2 03 00 3B C5 00 90 00 74 [20:13:32]RAPDU: 90 00 [20:13:32]wFMCommunicate OK [20:13:32]wFMCommunicate request_size=4 [20:13:32]MH_SAM_APDU [20:13:32]CAPDU: 80 0D 03 02 [20:13:32]Write to MH i2c: E2 08 00 3C C5 80 0D 03 02 00 00 00 00 7C [20:13:32]Write i2c OK [20:13:32]MH_I2C_Read... [20:13:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:13:32]Read from MH i2c: E2 [20:13:32]MH_I2C_Read... [20:13:32]Read from MH i2c: E2 0B 00 [20:13:32]MH_I2C_Read... [20:13:32]Read from MH i2c: E2 0B 00 3C C5 00 1F C5 F2 3F F9 7B 27 D3 90 00 00 [20:13:32]RAPDU: 1F C5 F2 3F F9 7B 27 D3 90 00 [20:13:32]wFMCommunicate OK [20:13:32]SAM_PROTO_SignData done [20:13:32]FM_MakeSignedData done [20:13:32]CreateOFDProtocolMessage [20:13:32]wFMCommunicate request_size=4 [20:13:32]MH_SAM_APDU [20:13:32]CAPDU: 80 11 00 00 [20:13:32]Write to MH i2c: E2 08 00 3D C5 80 11 00 00 00 00 00 00 7C [20:13:32]Write i2c OK [20:13:32]MH_I2C_Read... [20:13:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:32]Read from MH i2c: E2 [20:13:32]MH_I2C_Read... [20:13:32]Read from MH i2c: E2 17 00 [20:13:32]MH_I2C_Read... [20:13:32]Read from MH i2c: E2 17 00 3D C5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C9 [20:13:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:13:32]wFMCommunicate OK [20:13:32]CreateOFDProtocolMessage done [20:13:32]OFDSenderStorePacket 260916 [20:13:32]StoreOFDPacket docnum=260916 [20:13:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 1E 7A 07 01 EC 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 01 00 00 F4 03 04 00 F1 55 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 34 FB 03 00 35 04 06 00 27 2B 56 64 43 65 1F C5 F2 3F F9 7B 27 D3 [20:13:32]CheckFolder [20:13:32]dirname=/storage/ofd_packets [20:13:32]CheckFolder done [20:13:32]ProducePacketName [20:13:32]name=ofd_packets/00260916 [20:13:32]NVStorageSaveData ofd_packets/00260916 [20:13:32]File name is /storage/ofd_packets/00260916 [20:13:32]Write 301 bytes [20:13:32]NVStorageSaveData done [20:13:32]OFDSenderStorePacket done [20:13:32]KKMCreateOFDPacket done [20:13:32]NVStorageSaveData kkm_last_timestamp [20:13:32]File name is /storage/kkm_last_timestamp [20:13:32]Write 4 bytes [20:13:32]NVStorageSaveData done [20:13:32]ExternCall_PrintAddStr [20:13:32]wPrintStart [20:13:32]Write to MH i2c: 01 00 00 3E C5 03 [20:13:32]Write i2c OK [20:13:32]MH_I2C_Read... [20:13:32]Read from MH i2c: 01 [20:13:32]MH_I2C_Read... [20:13:32]Read from MH i2c: 01 07 00 [20:13:32]MH_I2C_Read... [20:13:32]Read from MH i2c: 01 07 00 3E C5 00 00 00 00 00 FF 0F 18 [20:13:32]RasterBufferAndPrint [20:13:32]line Счет N : (1)1036469 [20:13:32]line ИНН: 02508201610067 [20:13:32]line Контрольно-Кассовый Чек [20:13:32]line ПРОДАЖА [20:13:32]line ТРК (МРК, ГНК) : 22 [20:13:32]line Товар: 2710124130 [20:13:32]line Аи-92-К-5 [20:13:32]line 14.750 * 67.80 [20:13:32]line = 1000.05 [20:13:32]line НДС 12% НСП 1% [20:13:32]line > о реализуемом товаре [20:13:32]line ОКРУГЛЕНИЕ: -0.05 [20:13:32]line ИТОГО: 1000.00 [20:13:32]line Внесено: 1000.00 [20:13:32]line СДАЧА: 0.00 [20:13:32]line НСП 1% : 8.85 [20:13:32]line НДС 12% : 106.20 [20:13:32]line Наличными: 1000.00 [20:13:32]line Безнал.: 0.00 [20:13:32]line Место: АЗС № 94 "Партнер Нефть" [20:13:32]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:13:32]line СНО: Общий режим [20:13:32]line Чек 474 18.08.2024 20:13 [20:13:32]line Смена: 449 ФФД: 1.0 [20:13:32]line ЗНМ: 0300000099 [20:13:32]line РНМ: 0000000000091865 [20:13:32]line Версия ККМ: 001 [20:13:32]line ФМ: 0000000000871820 [20:13:32]line ФД: 260916 [20:13:32]line ФПД: 43067086488421 [20:13:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T201337&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260916&fm=43067086488421&tin=02508201610067®Number=0000000000091865&sum=100000 [20:13:32]written 0, free lines is 4095 [20:13:32]OFD Sender: Processing packet 260916 [packets to send 192, broken 191] [20:13:32]ProducePacketName [20:13:32]name=ofd_packets/00260916 [20:13:32]OFD Sender: To server: pG, [20:13:32]CommunicateWithHost lk.salyk.kg:30040 [20:13:32]ConnectInit lk.salyk.kg [20:13:32]Connected sock=10 [20:13: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 30 0F 01 00 00 1E 7A 07 01 EC 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 01 00 00 F4 03 04 00 F1 55 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 34 FB 03 00 35 04 06 00 27 2B 56 64 43 65 1F C5 F2 3F F9 7B 27 D3 [20:13: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 30 4F 00 00 00 D5 95 47 00 DB 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 30 10 04 04 00 34 FB 03 00 F4 03 04 00 45 FF C1 66 B6 04 01 00 00 88 BD 1D 8F 98 FC 6B E0 [20:13:32]CommunicateWithHost err = 0 [20:13:32]CheckOFDResponse [20:13:32]1017 (14) - 77093643461234 [20:13:32]1041 (16) - 0000000000871820 [20:13:32]1040 (4) - 260916 [20:13:32]1012 (4) - 18.08.2024 14:03 [20:13:32]1206 (1) - 0 [20:13:32]OFD Sender: Remove packet 260916 [20:13:32]ProducePacketName [20:13:32]name=ofd_packets/00260916 [20:13:32]NVStorageDeleteData [20:13:32]Write to MH i2c: 01 00 00 69 C5 2E [20:13:32]Write i2c OK [20:13:32]MH_I2C_Read... [20:13:32]Read from MH i2c: 01 [20:13:32]MH_I2C_Read... [20:13:32]Read from MH i2c: 01 07 00 [20:13:32]MH_I2C_Read... [20:13:32]Read from MH i2c: 01 07 00 69 C5 00 00 00 00 00 77 0C B8 [20:13:32]RasterBufferAndPrint [20:13:32]line [20:13:32]line [20:13:32]line [20:13:32]line [20:13:32]line [20:13:32]written 0, free lines is 3193 [20:13:32]MH_Cut [20:13:32]Write to MH i2c: D1 01 00 70 C5 01 07 [20:13:32]Write i2c OK [20:13:32]MH_I2C_Read... [20:13:32]Read from MH i2c: D1 [20:13:32]MH_I2C_Read... [20:13:32]Read from MH i2c: D1 01 00 [20:13:32]MH_I2C_Read... [20:13:32]Read from MH i2c: D1 01 00 70 C5 00 06 [20:13:32]Write to MH i2c: 01 00 00 71 C5 36 [20:13:32]Write i2c OK [20:13:32]MH_I2C_Read... [20:13:33]OFD Sender: No OFD packet to send [20:13:34]*** Cut start [20:13:34]*** Purtial cut [20:13:34]*** Stage 1: CUTSNS_PIN = 1 [20:13:36]Read from MH i2c: 01 [20:13:36]MH_I2C_Read... [20:13:36]*** Stop cut motor [20:13:36]*** Cut end [20:13:36]Read from MH i2c: 01 07 00 [20:13:36]MH_I2C_Read... [20:13:36]Read from MH i2c: 01 07 00 71 C5 00 00 00 00 00 FF 0F 4B [20:13:36]process_action close_receipt done [20:13:36]requested_data is exist [20:13:36]produce_requested_data [20:13:36]requested_item fm.sn is exist - process it [20:13:36]wFMCommunicate request_size=4 [20:13:36]MH_SAM_APDU [20:13:36]CAPDU: 80 11 00 00 [20:13:36]Write to MH i2c: E2 08 00 72 C5 80 11 00 00 00 00 00 00 B1 [20:13:36]Write i2c OK [20:13:36]MH_I2C_Read... [20:13:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:36]Read from MH i2c: E2 [20:13:36]MH_I2C_Read... [20:13:36]Read from MH i2c: E2 17 00 [20:13:36]MH_I2C_Read... [20:13:36]Read from MH i2c: E2 17 00 72 C5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 FE [20:13:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:13:36]wFMCommunicate OK [20:13:36]requested_item fd.num is exist - process it [20:13:36]SAM_PROTO_GetFieldsCounters [20:13:36]wFMCommunicate request_size=4 [20:13:36]MH_SAM_APDU [20:13:36]CAPDU: 80 13 00 00 [20:13:36]Write to MH i2c: E2 08 00 73 C5 80 13 00 00 00 00 00 00 B4 [20:13:36]Write i2c OK [20:13:36]MH_I2C_Read... [20:13:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:13:36]Read from MH i2c: E2 [20:13:36]MH_I2C_Read... [20:13:36]Read from MH i2c: E2 62 00 [20:13:36]MH_I2C_Read... [20:13:36]Read from MH i2c: E2 62 00 73 C5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 34 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 DA 01 00 00 5E 04 04 00 DA 01 00 00 57 04 04 00 DB 01 00 00 19 04 04 00 00 00 00 00 90 00 58 [20:13:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 34 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 DA 01 00 00 5E 04 04 00 DA 01 00 00 57 04 04 00 DB 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:13:36]wFMCommunicate OK [20:13:36]SAM_PROTO_GetFieldsCounters done [20:13:36]requested_item shift.num is exist - process it [20:13:36]requested_item shift.opened is exist - process it [20:13:36]req_shift_opened [20:13:36]FM_GetShiftState [20:13:36]SAM_PROTO_GetShiftState [20:13:36]wFMCommunicate request_size=4 [20:13:36]MH_SAM_APDU [20:13:36]CAPDU: 80 13 01 00 [20:13:36]Write to MH i2c: E2 08 00 74 C5 80 13 01 00 00 00 00 00 B6 [20:13:36]Write i2c OK [20:13:36]MH_I2C_Read... [20:13:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:36]Read from MH i2c: E2 [20:13:36]MH_I2C_Read... [20:13:36]Read from MH i2c: E2 0E 00 [20:13:36]MH_I2C_Read... [20:13:36]Read from MH i2c: E2 0E 00 74 C5 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F3 [20:13:36]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:13:36]wFMCommunicate OK [20:13:36]SAM_PROTO_GetShiftState done [20:13:36]FM_GetShiftState done [20:13:36]req_shift_opened done [20:13:36]requested_item shift.open_date is exist - process it [20:13:36]req_shift_open_date [20:13:36]req_shift_open_date done [20:13:36]produce_requested_data done [20:13:36]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260916,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:13:36]process_action_free close_receipt [20:13:36]json_value_free [20:13:36]json_value_free done [20:13:36]process_json_proto returns [20:13:36]Send response to host [20:13:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260916,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:13:36]free response buf [20:13:36]execute_script done [20:13:36]execute_script returns [20:13:36]free content buf [20:13:36]Sock 9.Close socket [20:13:36]Sock 9.Thread stoped [20:13:38]OFD Sender: No OFD packet to send [20:13:43]OFD Sender: No OFD packet to send [20:13:48]OFD Sender: No OFD packet to send [20:13:53]OFD Sender: No OFD packet to send [20:13:58]OFD Sender: No OFD packet to send [20:14:03]OFD Sender: No OFD packet to send [20:14:08]OFD Sender: No OFD packet to send [20:14:13]OFD Sender: No OFD packet to send [20:14:18]OFD Sender: No OFD packet to send [20:14:20]accept exits with 7 [20:14:20]New connection [20:14:20]New thread 3066617188 created [20:14:20]Thread 3066473828 joined [20:14:20]Waiting for new connection... [20:14:20] Sock 7.Parse request [20:14:20]Sock 7.Check first char [20:14:20]Sock 7.First char is OK [20:14:20]request: POST /json_proto HTTP/1.0 [20:14:20]Method: POST [20:14:20]URL: /json_proto [20:14:20]Method is POST - this is cgi request [20:14:20]url: /json_proto [20:14:20]query_string will be loaded in cgi processing [20:14:20]execute_cgi json_proto POST (null) [20:14:20]execute_cgi path=json_proto method=POST [20:14:20]POST find Content-Length [20:14:20]Host: 172.17.55.133:8080 [20:14:20]Content-Length: 678 [20:14:20]Content-Type: application/json [20:14:20] [20:14:20]POST finish read [20:14:20]Found Content-Length = 678 [20:14:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036470", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:20]execute_script... [20:14: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)1036470", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:20]POST & json_proto [20:14:20]process_json_proto [20:14:20]json parsed OK: [20:14:20]protocol is kg_v1.0 [20:14:20]action value=close_receipt [20:14:20]process_action close_receipt [20:14:20]cmd_close_receipt [20:14:20]MH_GetDate [20:14:20]Write to MH i2c: F0 00 00 75 C5 29 [20:14:20]Write i2c OK [20:14:20]MH_I2C_Read... [20:14:20]Read from MH i2c: F0 [20:14:20]MH_I2C_Read... [20:14:20]Read from MH i2c: F0 09 00 [20:14:20]MH_I2C_Read... [20:14:20]Read from MH i2c: F0 09 00 75 C5 00 23 56 C2 66 34 48 D8 65 8C [20:14:20]GetLastDocTimeStamp 1724012017 [20:14:20]current date 1724012067 [20:14:20]FM_GetShiftState [20:14:20]SAM_PROTO_GetShiftState [20:14:20]wFMCommunicate request_size=4 [20:14:20]MH_SAM_APDU [20:14:20]CAPDU: 80 13 01 00 [20:14:20]Write to MH i2c: E2 08 00 76 C5 80 13 01 00 00 00 00 00 B8 [20:14:20]Write i2c OK [20:14:20]MH_I2C_Read... [20:14:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:20]Read from MH i2c: E2 [20:14:20]MH_I2C_Read... [20:14:20]Read from MH i2c: E2 0E 00 [20:14:20]MH_I2C_Read... [20:14:20]Read from MH i2c: E2 0E 00 76 C5 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F5 [20:14:20]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:14:20]wFMCommunicate OK [20:14:20]SAM_PROTO_GetShiftState done [20:14:20]FM_GetShiftState done [20:14:20]opened in 1723940556 [20:14:20]opened+sec_in_day 1724026956 [20:14:20]quantity*price = 50010 [20:14:20]sum+1 = 50012 [20:14:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 475 18.08.2024 20:14 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260917 ФПД: 228663928573999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T201427&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260917&fm=228663928573999&tin=02508201610067®Number=0000000000091865&sum=50000 [20:14:22]StoreToDocumentArchive [20:14:22]shift 449 fd 260917 [20:14:22]save to /storage/0449/doc_00260917 [20:14:22]save last doc name /storage/0449/doc_00260917 to /storage/kkm_last_doc_name [20:14:22]save OK [20:14:22]Clear old archive folders... [20:14:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:14:22]tlvbuf is 00433940 [20:14:22]SAM_PROTO_ClearQueue [20:14:22]wFMCommunicate request_size=4 [20:14:22]MH_SAM_APDU [20:14:22]CAPDU: 80 09 00 00 [20:14:22]Write to MH i2c: E2 08 00 83 C5 80 09 00 00 00 00 00 00 BA [20:14:22]Write i2c OK [20:14:22]MH_I2C_Read... [20:14:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:14:22]Read from MH i2c: E2 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: E2 03 00 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: E2 03 00 83 C5 00 90 00 BC [20:14:22]RAPDU: 90 00 [20:14:22]wFMCommunicate OK [20:14:22]SAM_PROTO_ClearQueue done [20:14:22]KKMCreateOFDPacket [20:14:22]OFDProtocolAddRootSTLVToBuf [20:14:22]FM_MakeSignedData [20:14:22]FM_MakeSignedData [20:14:22]SAM_PROTO_SignData [20:14:22]wFMCommunicate request_size=4 [20:14:22]MH_SAM_APDU [20:14:22]CAPDU: 80 0D 01 02 [20:14:22]Write to MH i2c: E2 08 00 84 C5 80 0D 01 02 00 00 00 00 C2 [20:14:22]Write i2c OK [20:14:22]MH_I2C_Read... [20:14:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:14:22]Read from MH i2c: E2 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: E2 03 00 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: E2 03 00 84 C5 00 90 00 BD [20:14:22]RAPDU: 90 00 [20:14:22]wFMCommunicate OK [20:14:22]wFMCommunicate request_size=255 [20:14:22]MH_SAM_APDU [20:14: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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 01 00 00 F4 03 04 00 23 56 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 35 FB 03 00 35 04 06 00 CF [20:14:22]Write to MH i2c: E2 02 01 85 C5 80 0D 02 02 FA 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 01 00 00 F4 03 04 00 23 56 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 35 FB 03 00 35 04 06 00 CF 00 00 68 [20:14:22]Write i2c OK [20:14:22]MH_I2C_Read... [20:14:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:22]Read from MH i2c: E2 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: E2 03 00 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: E2 03 00 85 C5 00 90 00 BE [20:14:22]RAPDU: 90 00 [20:14:22]wFMCommunicate OK [20:14:22]wFMCommunicate request_size=10 [20:14:22]MH_SAM_APDU [20:14:22]CAPDU: 80 0D 02 02 05 F7 F8 3C 50 2F [20:14:22]Write to MH i2c: E2 0D 00 86 C5 80 0D 02 02 05 00 F7 F8 3C 50 2F 00 00 79 [20:14:22]Write i2c OK [20:14:22]MH_I2C_Read... [20:14:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:22]Read from MH i2c: E2 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: E2 03 00 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: E2 03 00 86 C5 00 90 00 BF [20:14:22]RAPDU: 90 00 [20:14:22]wFMCommunicate OK [20:14:22]wFMCommunicate request_size=4 [20:14:22]MH_SAM_APDU [20:14:22]CAPDU: 80 0D 03 02 [20:14:22]Write to MH i2c: E2 08 00 87 C5 80 0D 03 02 00 00 00 00 C7 [20:14:22]Write i2c OK [20:14:22]MH_I2C_Read... [20:14:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:14:22]Read from MH i2c: E2 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: E2 0B 00 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: E2 0B 00 87 C5 00 01 F6 DA E7 76 9E 66 CD 90 00 C7 [20:14:22]RAPDU: 01 F6 DA E7 76 9E 66 CD 90 00 [20:14:22]wFMCommunicate OK [20:14:22]SAM_PROTO_SignData done [20:14:22]FM_MakeSignedData done [20:14:22]CreateOFDProtocolMessage [20:14:22]wFMCommunicate request_size=4 [20:14:22]MH_SAM_APDU [20:14:22]CAPDU: 80 11 00 00 [20:14:22]Write to MH i2c: E2 08 00 88 C5 80 11 00 00 00 00 00 00 C7 [20:14:22]Write i2c OK [20:14:22]MH_I2C_Read... [20:14:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:22]Read from MH i2c: E2 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: E2 17 00 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: E2 17 00 88 C5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 14 [20:14:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:14:22]wFMCommunicate OK [20:14:22]CreateOFDProtocolMessage done [20:14:22]OFDSenderStorePacket 260917 [20:14:22]StoreOFDPacket docnum=260917 [20:14:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 D0 09 07 01 89 B2 5A 03 01 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 01 00 00 F4 03 04 00 23 56 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 35 FB 03 00 35 04 06 00 CF F7 F8 3C 50 2F 01 F6 DA E7 76 9E 66 CD [20:14:22]CheckFolder [20:14:22]dirname=/storage/ofd_packets [20:14:22]CheckFolder done [20:14:22]ProducePacketName [20:14:22]name=ofd_packets/00260917 [20:14:22]NVStorageSaveData ofd_packets/00260917 [20:14:22]File name is /storage/ofd_packets/00260917 [20:14:22]Write 301 bytes [20:14:22]NVStorageSaveData done [20:14:22]OFDSenderStorePacket done [20:14:22]KKMCreateOFDPacket done [20:14:22]NVStorageSaveData kkm_last_timestamp [20:14:22]File name is /storage/kkm_last_timestamp [20:14:22]Write 4 bytes [20:14:22]NVStorageSaveData done [20:14:22]ExternCall_PrintAddStr [20:14:22]wPrintStart [20:14:22]Write to MH i2c: 01 00 00 89 C5 4E [20:14:22]Write i2c OK [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: 01 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: 01 07 00 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: 01 07 00 89 C5 00 00 00 00 00 FF 0F 63 [20:14:22]RasterBufferAndPrint [20:14:22]line Счет N : (1)1036470 [20:14:22]line ИНН: 02508201610067 [20:14:22]line Контрольно-Кассовый Чек [20:14:22]line ПРОДАЖА [20:14:22]line ТРК (МРК, ГНК) : 13 [20:14:22]line Товар: 2710124500 [20:14:22]line Аи-95-К-5 [20:14:22]line 6.740 * 74.20 [20:14:22]line = 500.11 [20:14:22]line НДС 12% НСП 1% [20:14:22]line > о реализуемом товаре [20:14:22]line ОКРУГЛЕНИЕ: -0.11 [20:14:22]line ИТОГО: 500.00 [20:14:22]line Внесено: 500.00 [20:14:22]line СДАЧА: 0.00 [20:14:22]line НСП 1% : 4.43 [20:14:22]line НДС 12% : 53.11 [20:14:22]line Наличными: 500.00 [20:14:22]line Безнал.: 0.00 [20:14:22]line Место: АЗС № 94 "Партнер Нефть" [20:14:22]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:14:22]line СНО: Общий режим [20:14:22]line Чек 475 18.08.2024 20:14 [20:14:22]line Смена: 449 ФФД: 1.0 [20:14:22]line ЗНМ: 0300000099 [20:14:22]line РНМ: 0000000000091865 [20:14:22]line Версия ККМ: 001 [20:14:22]line ФМ: 0000000000871820 [20:14:22]line ФД: 260917 [20:14:22]line ФПД: 228663928573999 [20:14:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T201427&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260917&fm=228663928573999&tin=02508201610067®Number=0000000000091865&sum=50000 [20:14:22]OFD Sender: Processing packet 260917 [packets to send 192, broken 191] [20:14:22]ProducePacketName [20:14:22]name=ofd_packets/00260917 [20:14:22]OFD Sender: To server: pG, [20:14:22]CommunicateWithHost lk.salyk.kg:30040 [20:14:22]ConnectInit lk.salyk.kg [20:14:22]written 0, free lines is 4095 [20:14:23]Connected sock=10 [20:14: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 30 0F 01 00 00 D0 09 07 01 89 B2 5A 03 01 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 01 00 00 F4 03 04 00 23 56 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 35 FB 03 00 35 04 06 00 CF F7 F8 3C 50 2F 01 F6 DA E7 76 9E 66 CD [20:14: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 30 4F 00 00 00 67 E7 47 00 30 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 35 FB 03 00 F4 03 04 00 77 FF C1 66 B6 04 01 00 00 AE C6 DB 3D 39 60 4B 29 [20:14:23]CommunicateWithHost err = 0 [20:14:23]CheckOFDResponse [20:14:23]1017 (14) - 77093643461234 [20:14:23]1041 (16) - 0000000000871820 [20:14:23]1040 (4) - 260917 [20:14:23]1012 (4) - 18.08.2024 14:04 [20:14:23]1206 (1) - 0 [20:14:23]OFD Sender: Remove packet 260917 [20:14:23]ProducePacketName [20:14:23]name=ofd_packets/00260917 [20:14:23]NVStorageDeleteData [20:14:23]Write to MH i2c: 01 00 00 B4 C5 79 [20:14:23]Write i2c OK [20:14:23]MH_I2C_Read... [20:14:23]Read from MH i2c: 01 [20:14:23]MH_I2C_Read... [20:14:23]Read from MH i2c: 01 07 00 [20:14:23]MH_I2C_Read... [20:14:23]Read from MH i2c: 01 07 00 B4 C5 00 00 00 00 00 84 0C 10 [20:14:23]RasterBufferAndPrint [20:14:23]line [20:14:23]line [20:14:23]line [20:14:23]line [20:14:23]line [20:14:23]written 0, free lines is 3208 [20:14:23]MH_Cut [20:14:23]Write to MH i2c: D1 01 00 BB C5 01 52 [20:14:23]Write i2c OK [20:14:23]MH_I2C_Read... [20:14:23]Read from MH i2c: D1 [20:14:23]MH_I2C_Read... [20:14:23]Read from MH i2c: D1 01 00 [20:14:23]MH_I2C_Read... [20:14:23]Read from MH i2c: D1 01 00 BB C5 00 51 [20:14:23]Write to MH i2c: 01 00 00 BC C5 81 [20:14:23]Write i2c OK [20:14:23]MH_I2C_Read... [20:14:23]OFD Sender: No OFD packet to send [20:14:24]*** Cut start [20:14:24]*** Purtial cut [20:14:24]*** Stage 1: CUTSNS_PIN = 1 [20:14:26]Read from MH i2c: 01 [20:14:26]MH_I2C_Read... [20:14:26]*** Stop cut motor [20:14:26]*** Cut end [20:14:26]Read from MH i2c: 01 07 00 [20:14:26]MH_I2C_Read... [20:14:26]Read from MH i2c: 01 07 00 BC C5 00 00 00 00 00 FF 0F 96 [20:14:26]process_action close_receipt done [20:14:26]requested_data is exist [20:14:26]produce_requested_data [20:14:26]requested_item fm.sn is exist - process it [20:14:26]wFMCommunicate request_size=4 [20:14:26]MH_SAM_APDU [20:14:26]CAPDU: 80 11 00 00 [20:14:26]Write to MH i2c: E2 08 00 BD C5 80 11 00 00 00 00 00 00 FC [20:14:26]Write i2c OK [20:14:26]MH_I2C_Read... [20:14:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:26]Read from MH i2c: E2 [20:14:26]MH_I2C_Read... [20:14:26]Read from MH i2c: E2 17 00 [20:14:26]MH_I2C_Read... [20:14:26]Read from MH i2c: E2 17 00 BD C5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 49 [20:14:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:14:26]wFMCommunicate OK [20:14:26]requested_item fd.num is exist - process it [20:14:26]SAM_PROTO_GetFieldsCounters [20:14:26]wFMCommunicate request_size=4 [20:14:26]MH_SAM_APDU [20:14:26]CAPDU: 80 13 00 00 [20:14:26]Write to MH i2c: E2 08 00 BE C5 80 13 00 00 00 00 00 00 FF [20:14:26]Write i2c OK [20:14:26]MH_I2C_Read... [20:14:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:14:26]Read from MH i2c: E2 [20:14:26]MH_I2C_Read... [20:14:26]Read from MH i2c: E2 62 00 [20:14:26]MH_I2C_Read... [20:14:26]Read from MH i2c: E2 62 00 BE C5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 35 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 DB 01 00 00 5E 04 04 00 DB 01 00 00 57 04 04 00 DC 01 00 00 19 04 04 00 00 00 00 00 90 00 A7 [20:14: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 35 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 DB 01 00 00 5E 04 04 00 DB 01 00 00 57 04 04 00 DC 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:14:26]wFMCommunicate OK [20:14:26]SAM_PROTO_GetFieldsCounters done [20:14:26]requested_item shift.num is exist - process it [20:14:26]requested_item shift.opened is exist - process it [20:14:26]req_shift_opened [20:14:26]FM_GetShiftState [20:14:26]SAM_PROTO_GetShiftState [20:14:26]wFMCommunicate request_size=4 [20:14:26]MH_SAM_APDU [20:14:26]CAPDU: 80 13 01 00 [20:14:26]Write to MH i2c: E2 08 00 BF C5 80 13 01 00 00 00 00 00 01 [20:14:26]Write i2c OK [20:14:26]MH_I2C_Read... [20:14:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:26]Read from MH i2c: E2 [20:14:26]MH_I2C_Read... [20:14:26]Read from MH i2c: E2 0E 00 [20:14:26]MH_I2C_Read... [20:14:26]Read from MH i2c: E2 0E 00 BF C5 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 3E [20:14:26]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:14:26]wFMCommunicate OK [20:14:26]SAM_PROTO_GetShiftState done [20:14:26]FM_GetShiftState done [20:14:26]req_shift_opened done [20:14:26]requested_item shift.open_date is exist - process it [20:14:26]req_shift_open_date [20:14:26]req_shift_open_date done [20:14:26]produce_requested_data done [20:14:26]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260917,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:14:26]process_action_free close_receipt [20:14:26]json_value_free [20:14:26]json_value_free done [20:14:26]process_json_proto returns [20:14:26]Send response to host [20:14:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260917,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:14:26]free response buf [20:14:26]execute_script done [20:14:26]execute_script returns [20:14:26]free content buf [20:14:26]Sock 7.Close socket [20:14:26]Sock 7.Thread stoped [20:14:28]OFD Sender: No OFD packet to send [20:14:33]OFD Sender: No OFD packet to send [20:14:38]OFD Sender: No OFD packet to send [20:14:43]OFD Sender: No OFD packet to send [20:14:48]OFD Sender: No OFD packet to send [20:14:53]OFD Sender: No OFD packet to send [20:14:58]OFD Sender: No OFD packet to send [20:15:03]OFD Sender: No OFD packet to send [20:15:08]OFD Sender: No OFD packet to send [20:15:13]OFD Sender: No OFD packet to send [20:15:18]OFD Sender: No OFD packet to send [20:15:21]accept exits with 9 [20:15:21]New connection [20:15:21]New thread 3066473828 created [20:15:21]Thread 3066617188 joined [20:15:21]Waiting for new connection... [20:15:21] Sock 9.Parse request [20:15:21]Sock 9.Check first char [20:15:21]Sock 9.First char is OK [20:15:21]request: POST /json_proto HTTP/1.0 [20:15:21]Method: POST [20:15:21]URL: /json_proto [20:15:21]Method is POST - this is cgi request [20:15:21]url: /json_proto [20:15:21]query_string will be loaded in cgi processing [20:15:21]execute_cgi json_proto POST (null) [20:15:21]execute_cgi path=json_proto method=POST [20:15:21]POST find Content-Length [20:15:21]Host: 172.17.55.133:8080 [20:15:21]Content-Length: 801 [20:15:21]Content-Type: application/json [20:15:21] [20:15:21]POST finish read [20:15:21]Found Content-Length = 801 [20:15:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:21]execute_script... [20:15: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)1036471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:21]POST & json_proto [20:15:21]process_json_proto [20:15:21]json parsed OK: [20:15:21]protocol is kg_v1.0 [20:15:21]action value=close_receipt [20:15:21]process_action close_receipt [20:15:21]cmd_close_receipt [20:15:21]MH_GetDate [20:15:21]Write to MH i2c: F0 00 00 C0 C5 74 [20:15:21]Write i2c OK [20:15:21]MH_I2C_Read... [20:15:21]Read from MH i2c: F0 [20:15:21]MH_I2C_Read... [20:15:21]Read from MH i2c: F0 09 00 [20:15:21]MH_I2C_Read... [20:15:21]Read from MH i2c: F0 09 00 C0 C5 00 60 56 C2 66 34 48 D8 65 14 [20:15:21]GetLastDocTimeStamp 1724012067 [20:15:21]current date 1724012128 [20:15:21]FM_GetShiftState [20:15:21]SAM_PROTO_GetShiftState [20:15:21]wFMCommunicate request_size=4 [20:15:21]MH_SAM_APDU [20:15:21]CAPDU: 80 13 01 00 [20:15:21]Write to MH i2c: E2 08 00 C1 C5 80 13 01 00 00 00 00 00 03 [20:15:21]Write i2c OK [20:15:21]MH_I2C_Read... [20:15:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:22]Read from MH i2c: E2 [20:15:22]MH_I2C_Read... [20:15:22]Read from MH i2c: E2 0E 00 [20:15:22]MH_I2C_Read... [20:15:22]Read from MH i2c: E2 0E 00 C1 C5 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 40 [20:15:22]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:15:22]wFMCommunicate OK [20:15:22]SAM_PROTO_GetShiftState done [20:15:22]FM_GetShiftState done [20:15:22]opened in 1723940556 [20:15:22]opened+sec_in_day 1724026956 [20:15:22]quantity*price = 50036 [20:15:22]sum+1 = 50037 [20:15:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 476 18.08.2024 20:15 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260918 ФПД: 192234191640125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T201528&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260918&fm=192234191640125&tin=02508201610067®Number=0000000000091865&sum=50036 [20:15:23]StoreToDocumentArchive [20:15:23]shift 449 fd 260918 [20:15:23]save to /storage/0449/doc_00260918 [20:15:23]save last doc name /storage/0449/doc_00260918 to /storage/kkm_last_doc_name [20:15:23]save OK [20:15:23]Clear old archive folders... [20:15:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:15:23]tlvbuf is 00433390 [20:15:23]SAM_PROTO_ClearQueue [20:15:23]wFMCommunicate request_size=4 [20:15:23]MH_SAM_APDU [20:15:23]CAPDU: 80 09 00 00 [20:15:23]Write to MH i2c: E2 08 00 CE C5 80 09 00 00 00 00 00 00 05 [20:15:23]Write i2c OK [20:15:23]MH_I2C_Read... [20:15:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:15:23]Read from MH i2c: E2 [20:15:23]MH_I2C_Read... [20:15:23]Read from MH i2c: E2 03 00 [20:15:23]MH_I2C_Read... [20:15:23]Read from MH i2c: E2 03 00 CE C5 00 90 00 07 [20:15:23]RAPDU: 90 00 [20:15:23]wFMCommunicate OK [20:15:23]SAM_PROTO_ClearQueue done [20:15:23]KKMCreateOFDPacket [20:15:23]OFDProtocolAddRootSTLVToBuf [20:15:23]FM_MakeSignedData [20:15:23]FM_MakeSignedData [20:15:23]SAM_PROTO_SignData [20:15:23]wFMCommunicate request_size=4 [20:15:23]MH_SAM_APDU [20:15:23]CAPDU: 80 0D 01 02 [20:15:23]Write to MH i2c: E2 08 00 CF C5 80 0D 01 02 00 00 00 00 0D [20:15:23]Write i2c OK [20:15:23]MH_I2C_Read... [20:15:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:15:23]Read from MH i2c: E2 [20:15:23]MH_I2C_Read... [20:15:23]Read from MH i2c: E2 03 00 [20:15:23]MH_I2C_Read... [20:15:23]Read from MH i2c: E2 03 00 CF C5 00 90 00 08 [20:15:23]RAPDU: 90 00 [20:15:23]wFMCommunicate OK [20:15:23]wFMCommunicate request_size=255 [20:15:23]MH_SAM_APDU [20:15:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 01 00 00 F4 03 04 00 60 56 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 36 FB 03 00 35 04 06 00 AE [20:15:23]Write to MH i2c: E2 02 01 D0 C5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 01 00 00 F4 03 04 00 60 56 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 36 FB 03 00 35 04 06 00 AE 00 00 31 [20:15:23]Write i2c OK [20:15:23]MH_I2C_Read... [20:15:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:23]Read from MH i2c: E2 [20:15:23]MH_I2C_Read... [20:15:23]Read from MH i2c: E2 03 00 [20:15:23]MH_I2C_Read... [20:15:23]Read from MH i2c: E2 03 00 D0 C5 00 90 00 09 [20:15:23]RAPDU: 90 00 [20:15:23]wFMCommunicate OK [20:15:23]wFMCommunicate request_size=10 [20:15:23]MH_SAM_APDU [20:15:23]CAPDU: 80 0D 02 02 05 D6 02 B4 D6 3D [20:15:23]Write to MH i2c: E2 0D 00 D1 C5 80 0D 02 02 05 00 D6 02 B4 D6 3D 00 00 B9 [20:15:23]Write i2c OK [20:15:23]MH_I2C_Read... [20:15:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:23]Read from MH i2c: E2 [20:15:23]MH_I2C_Read... [20:15:23]Read from MH i2c: E2 03 00 [20:15:23]MH_I2C_Read... [20:15:23]Read from MH i2c: E2 03 00 D1 C5 00 90 00 0A [20:15:23]RAPDU: 90 00 [20:15:23]wFMCommunicate OK [20:15:23]wFMCommunicate request_size=4 [20:15:23]MH_SAM_APDU [20:15:23]CAPDU: 80 0D 03 02 [20:15:23]Write to MH i2c: E2 08 00 D2 C5 80 0D 03 02 00 00 00 00 12 [20:15:23]Write i2c OK [20:15:23]MH_I2C_Read... [20:15:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:15:23]Read from MH i2c: E2 [20:15:23]MH_I2C_Read... [20:15:23]Read from MH i2c: E2 0B 00 [20:15:23]MH_I2C_Read... [20:15:23]Read from MH i2c: E2 0B 00 D2 C5 00 ED F6 7A 81 A7 BF 4D 50 90 00 F4 [20:15:23]RAPDU: ED F6 7A 81 A7 BF 4D 50 90 00 [20:15:23]wFMCommunicate OK [20:15:23]SAM_PROTO_SignData done [20:15:23]FM_MakeSignedData done [20:15:23]CreateOFDProtocolMessage [20:15:23]wFMCommunicate request_size=4 [20:15:23]MH_SAM_APDU [20:15:23]CAPDU: 80 11 00 00 [20:15:23]Write to MH i2c: E2 08 00 D3 C5 80 11 00 00 00 00 00 00 12 [20:15:23]Write i2c OK [20:15:23]MH_I2C_Read... [20:15:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:23]Read from MH i2c: E2 [20:15:23]MH_I2C_Read... [20:15:23]Read from MH i2c: E2 17 00 [20:15:23]MH_I2C_Read... [20:15:23]Read from MH i2c: E2 17 00 D3 C5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 5F [20:15:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:15:23]wFMCommunicate OK [20:15:23]CreateOFDProtocolMessage done [20:15:23]OFDSenderStorePacket 260918 [20:15:23]StoreOFDPacket docnum=260918 [20:15:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 11 F2 07 01 49 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 01 00 00 F4 03 04 00 60 56 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 36 FB 03 00 35 04 06 00 AE D6 02 B4 D6 3D ED F6 7A 81 A7 BF 4D 50 [20:15:23]CheckFolder [20:15:23]dirname=/storage/ofd_packets [20:15:23]CheckFolder done [20:15:23]ProducePacketName [20:15:23]name=ofd_packets/00260918 [20:15:23]NVStorageSaveData ofd_packets/00260918 [20:15:23]File name is /storage/ofd_packets/00260918 [20:15:23]Write 301 bytes [20:15:23]NVStorageSaveData done [20:15:23]OFDSenderStorePacket done [20:15:23]KKMCreateOFDPacket done [20:15:23]NVStorageSaveData kkm_last_timestamp [20:15:23]File name is /storage/kkm_last_timestamp [20:15:23]Write 4 bytes [20:15:23]NVStorageSaveData done [20:15:23]ExternCall_PrintAddStr [20:15:23]wPrintStart [20:15:23]Write to MH i2c: 01 00 00 D4 C5 99 [20:15:23]Write i2c OK [20:15:23]MH_I2C_Read... [20:15:23]Read from MH i2c: 01 [20:15:23]MH_I2C_Read... [20:15:23]Read from MH i2c: 01 07 00 [20:15:23]MH_I2C_Read... [20:15:23]Read from MH i2c: 01 07 00 D4 C5 00 00 00 00 00 FF 0F AE [20:15:23]RasterBufferAndPrint [20:15:23]line Счет N : (1)1036471 [20:15:23]line ИНН: 02508201610067 [20:15:23]line Контрольно-Кассовый Чек [20:15:23]line ПРОДАЖА [20:15:23]line ТРК (МРК, ГНК) : 32 [20:15:23]line Товар: 2710124130 [20:15:23]line Аи-92-К-5 [20:15:23]line 7.380 * 67.80 [20:15:23]line = 500.36 [20:15:23]line НДС 12% НСП 1% [20:15:23]line > о реализуемом товаре [20:15:23]line ИТОГО: 500.36 [20:15:23]line НСП 1% : 4.43 [20:15:23]line НДС 12% : 53.14 [20:15:23]line Наличными: 0.00 [20:15:23]line Безнал.: 500.36 [20:15:23]line Место: АЗС № 94 "Партнер Нефть" [20:15:23]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:15:23]line СНО: Общий режим [20:15:23]line Чек 476 18.08.2024 20:15 [20:15:23]line Смена: 449 ФФД: 1.0 [20:15:23]line ЗНМ: 0300000099 [20:15:23]line РНМ: 0000000000091865 [20:15:23]line Версия ККМ: 001 [20:15:23]line Платежная система: O! деньги [20:15:23]line ФМ: 0000000000871820 [20:15:23]line ФД: 260918 [20:15:23]line ФПД: 192234191640125 [20:15:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T201528&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260918&fm=192234191640125&tin=02508201610067®Number=0000000000091865&sum=50036 [20:15:23]written 0, free lines is 4095 [20:15:23]OFD Sender: Processing packet 260918 [packets to send 192, broken 191] [20:15:23]ProducePacketName [20:15:23]name=ofd_packets/00260918 [20:15:23]OFD Sender: To server: pG, [20:15:23]CommunicateWithHost lk.salyk.kg:30040 [20:15:23]ConnectInit lk.salyk.kg [20:15:23]Connected sock=10 [20:15: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 30 0F 01 00 00 11 F2 07 01 49 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 01 00 00 F4 03 04 00 60 56 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 36 FB 03 00 35 04 06 00 AE D6 02 B4 D6 3D ED F6 7A 81 A7 BF 4D 50 [20:15: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 30 4F 00 00 00 BE 9E 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 30 10 04 04 00 36 FB 03 00 F4 03 04 00 B4 FF C1 66 B6 04 01 00 00 BD 69 FA EE 22 28 75 21 [20:15:24]CommunicateWithHost err = 0 [20:15:24]CheckOFDResponse [20:15:24]1017 (14) - 77093643461234 [20:15:24]1041 (16) - 0000000000871820 [20:15:24]1040 (4) - 260918 [20:15:24]1012 (4) - 18.08.2024 14:05 [20:15:24]1206 (1) - 0 [20:15:24]OFD Sender: Remove packet 260918 [20:15:24]ProducePacketName [20:15:24]name=ofd_packets/00260918 [20:15:24]NVStorageDeleteData [20:15:24]Write to MH i2c: 01 00 00 FE C5 C3 [20:15:24]Write i2c OK [20:15:24]MH_I2C_Read... [20:15:24]Read from MH i2c: 01 [20:15:24]MH_I2C_Read... [20:15:24]Read from MH i2c: 01 07 00 [20:15:24]MH_I2C_Read... [20:15:24]Read from MH i2c: 01 07 00 FE C5 00 00 00 00 00 8E 0C 64 [20:15:24]RasterBufferAndPrint [20:15:24]line [20:15:24]line [20:15:24]line [20:15:24]line [20:15:24]line [20:15:24]written 0, free lines is 3217 [20:15:24]MH_Cut [20:15:24]Write to MH i2c: D1 01 00 05 C6 01 9D [20:15:24]Write i2c OK [20:15:24]MH_I2C_Read... [20:15:24]Read from MH i2c: D1 [20:15:24]MH_I2C_Read... [20:15:24]Read from MH i2c: D1 01 00 [20:15:24]MH_I2C_Read... [20:15:24]Read from MH i2c: D1 01 00 05 C6 00 9C [20:15:24]Write to MH i2c: 01 00 00 06 C6 CC [20:15:24]Write i2c OK [20:15:24]MH_I2C_Read... [20:15:24]OFD Sender: No OFD packet to send [20:15:25]*** Cut start [20:15:25]*** Purtial cut [20:15:25]*** Stage 1: CUTSNS_PIN = 1 [20:15:27]Read from MH i2c: 01 [20:15:27]MH_I2C_Read... [20:15:27]*** Stop cut motor [20:15:27]*** Cut end [20:15:27]Read from MH i2c: 01 07 00 [20:15:27]MH_I2C_Read... [20:15:27]Read from MH i2c: 01 07 00 06 C6 00 00 00 00 00 FF 0F E1 [20:15:27]process_action close_receipt done [20:15:27]requested_data is exist [20:15:27]produce_requested_data [20:15:27]requested_item fm.sn is exist - process it [20:15:27]wFMCommunicate request_size=4 [20:15:27]MH_SAM_APDU [20:15:27]CAPDU: 80 11 00 00 [20:15:27]Write to MH i2c: E2 08 00 07 C6 80 11 00 00 00 00 00 00 47 [20:15:27]Write i2c OK [20:15:27]MH_I2C_Read... [20:15:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:27]Read from MH i2c: E2 [20:15:27]MH_I2C_Read... [20:15:27]Read from MH i2c: E2 17 00 [20:15:27]MH_I2C_Read... [20:15:27]Read from MH i2c: E2 17 00 07 C6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 94 [20:15:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:15:27]wFMCommunicate OK [20:15:27]requested_item fd.num is exist - process it [20:15:27]SAM_PROTO_GetFieldsCounters [20:15:27]wFMCommunicate request_size=4 [20:15:27]MH_SAM_APDU [20:15:27]CAPDU: 80 13 00 00 [20:15:27]Write to MH i2c: E2 08 00 08 C6 80 13 00 00 00 00 00 00 4A [20:15:27]Write i2c OK [20:15:27]MH_I2C_Read... [20:15:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:15:27]Read from MH i2c: E2 [20:15:27]MH_I2C_Read... [20:15:27]Read from MH i2c: E2 62 00 [20:15:27]MH_I2C_Read... [20:15:27]Read from MH i2c: E2 62 00 08 C6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 36 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 DC 01 00 00 5E 04 04 00 DC 01 00 00 57 04 04 00 DD 01 00 00 19 04 04 00 00 00 00 00 90 00 F6 [20:15: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 36 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 DC 01 00 00 5E 04 04 00 DC 01 00 00 57 04 04 00 DD 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:15:27]wFMCommunicate OK [20:15:27]SAM_PROTO_GetFieldsCounters done [20:15:27]requested_item shift.num is exist - process it [20:15:27]requested_item shift.opened is exist - process it [20:15:27]req_shift_opened [20:15:27]FM_GetShiftState [20:15:27]SAM_PROTO_GetShiftState [20:15:27]wFMCommunicate request_size=4 [20:15:27]MH_SAM_APDU [20:15:27]CAPDU: 80 13 01 00 [20:15:27]Write to MH i2c: E2 08 00 09 C6 80 13 01 00 00 00 00 00 4C [20:15:27]Write i2c OK [20:15:27]MH_I2C_Read... [20:15:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:27]Read from MH i2c: E2 [20:15:27]MH_I2C_Read... [20:15:27]Read from MH i2c: E2 0E 00 [20:15:27]MH_I2C_Read... [20:15:27]Read from MH i2c: E2 0E 00 09 C6 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 89 [20:15:27]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:15:27]wFMCommunicate OK [20:15:27]SAM_PROTO_GetShiftState done [20:15:27]FM_GetShiftState done [20:15:27]req_shift_opened done [20:15:27]requested_item shift.open_date is exist - process it [20:15:27]req_shift_open_date [20:15:27]req_shift_open_date done [20:15:27]produce_requested_data done [20:15:27]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260918,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:15:27]process_action_free close_receipt [20:15:27]json_value_free [20:15:27]json_value_free done [20:15:27]process_json_proto returns [20:15:27]Send response to host [20:15:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260918,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:15:27]free response buf [20:15:27]execute_script done [20:15:27]execute_script returns [20:15:27]free content buf [20:15:27]Sock 9.Close socket [20:15:27]Sock 9.Thread stoped [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:38]accept exits with 7 [20:16:38]New connection [20:16:38]New thread 3066617188 created [20:16:38]Thread 3066473828 joined [20:16:38]Waiting for new connection... [20:16:38] Sock 7.Parse request [20:16:38]Sock 7.Check first char [20:16:38]Sock 7.First char is OK [20:16:38]request: POST /json_proto HTTP/1.0 [20:16:38]Method: POST [20:16:38]URL: /json_proto [20:16:38]Method is POST - this is cgi request [20:16:38]url: /json_proto [20:16:38]query_string will be loaded in cgi processing [20:16:38]execute_cgi json_proto POST (null) [20:16:38]execute_cgi path=json_proto method=POST [20:16:38]POST find Content-Length [20:16:38]Host: 172.17.55.133:8080 [20:16:38]Content-Length: 683 [20:16:38]Content-Type: application/json [20:16:38] [20:16:38]POST finish read [20:16:38]Found Content-Length = 683 [20:16:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036472", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:16:38]execute_script... [20:16: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)1036472", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:16:38]POST & json_proto [20:16:38]process_json_proto [20:16:38]json parsed OK: [20:16:38]protocol is kg_v1.0 [20:16:38]action value=close_receipt [20:16:38]process_action close_receipt [20:16:38]cmd_close_receipt [20:16:38]MH_GetDate [20:16:38]Write to MH i2c: F0 00 00 0A C6 BF [20:16:38]Write i2c OK [20:16:38]MH_I2C_Read... [20:16:38]Read from MH i2c: F0 [20:16:38]MH_I2C_Read... [20:16:38]Read from MH i2c: F0 09 00 [20:16:38]MH_I2C_Read... [20:16:38]Read from MH i2c: F0 09 00 0A C6 00 AD 56 C2 66 34 48 D8 65 AC [20:16:38]GetLastDocTimeStamp 1724012128 [20:16:38]current date 1724012205 [20:16:38]FM_GetShiftState [20:16:38]SAM_PROTO_GetShiftState [20:16:38]wFMCommunicate request_size=4 [20:16:38]MH_SAM_APDU [20:16:38]CAPDU: 80 13 01 00 [20:16:38]Write to MH i2c: E2 08 00 0B C6 80 13 01 00 00 00 00 00 4E [20:16:38]Write i2c OK [20:16:38]MH_I2C_Read... [20:16:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:38]Read from MH i2c: E2 [20:16:38]MH_I2C_Read... [20:16:38]Read from MH i2c: E2 0E 00 [20:16:38]MH_I2C_Read... [20:16:38]Read from MH i2c: E2 0E 00 0B C6 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 8B [20:16:38]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:16:38]wFMCommunicate OK [20:16:38]SAM_PROTO_GetShiftState done [20:16:38]FM_GetShiftState done [20:16:38]opened in 1723940556 [20:16:38]opened+sec_in_day 1724026956 [20:16:38]quantity*price = 100021 [20:16:38]sum+1 = 100023 [20:16:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 477 18.08.2024 20:16 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260919 ФПД: 109681206110356 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T201645&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260919&fm=109681206110356&tin=02508201610067®Number=0000000000091865&sum=100000 [20:16:39]StoreToDocumentArchive [20:16:39]shift 449 fd 260919 [20:16:39]save to /storage/0449/doc_00260919 [20:16:39]save last doc name /storage/0449/doc_00260919 to /storage/kkm_last_doc_name [20:16:39]save OK [20:16:39]Clear old archive folders... [20:16:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:16:39]tlvbuf is 0078C8B0 [20:16:39]SAM_PROTO_ClearQueue [20:16:39]wFMCommunicate request_size=4 [20:16:39]MH_SAM_APDU [20:16:39]CAPDU: 80 09 00 00 [20:16:39]Write to MH i2c: E2 08 00 18 C6 80 09 00 00 00 00 00 00 50 [20:16:39]Write i2c OK [20:16:39]MH_I2C_Read... [20:16:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:16:39]Read from MH i2c: E2 [20:16:39]MH_I2C_Read... [20:16:39]Read from MH i2c: E2 03 00 [20:16:39]MH_I2C_Read... [20:16:39]Read from MH i2c: E2 03 00 18 C6 00 90 00 52 [20:16:39]RAPDU: 90 00 [20:16:39]wFMCommunicate OK [20:16:39]SAM_PROTO_ClearQueue done [20:16:39]KKMCreateOFDPacket [20:16:39]OFDProtocolAddRootSTLVToBuf [20:16:39]FM_MakeSignedData [20:16:39]FM_MakeSignedData [20:16:39]SAM_PROTO_SignData [20:16:39]wFMCommunicate request_size=4 [20:16:39]MH_SAM_APDU [20:16:39]CAPDU: 80 0D 01 02 [20:16:39]Write to MH i2c: E2 08 00 19 C6 80 0D 01 02 00 00 00 00 58 [20:16:39]Write i2c OK [20:16:39]MH_I2C_Read... [20:16:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:16:39]OFD Sender: No OFD packet to send [20:16:39]Read from MH i2c: E2 [20:16:39]MH_I2C_Read... [20:16:39]Read from MH i2c: E2 03 00 [20:16:39]MH_I2C_Read... [20:16:39]Read from MH i2c: E2 03 00 19 C6 00 90 00 53 [20:16:39]RAPDU: 90 00 [20:16:39]wFMCommunicate OK [20:16:39]wFMCommunicate request_size=255 [20:16:39]MH_SAM_APDU [20:16: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 01 00 00 F4 03 04 00 AD 56 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 37 FB 03 00 35 04 06 00 63 [20:16:39]Write to MH i2c: E2 02 01 1A C6 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 01 00 00 F4 03 04 00 AD 56 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 37 FB 03 00 35 04 06 00 63 00 00 65 [20:16:39]Write i2c OK [20:16:39]MH_I2C_Read... [20:16:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:39]Read from MH i2c: E2 [20:16:39]MH_I2C_Read... [20:16:39]Read from MH i2c: E2 03 00 [20:16:39]MH_I2C_Read... [20:16:39]Read from MH i2c: E2 03 00 1A C6 00 90 00 54 [20:16:39]RAPDU: 90 00 [20:16:39]wFMCommunicate OK [20:16:39]wFMCommunicate request_size=10 [20:16:39]MH_SAM_APDU [20:16:39]CAPDU: 80 0D 02 02 05 C1 25 54 28 94 [20:16:39]Write to MH i2c: E2 0D 00 1B C6 80 0D 02 02 05 00 C1 25 54 28 94 00 00 5B [20:16:39]Write i2c OK [20:16:39]MH_I2C_Read... [20:16:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:40]Read from MH i2c: E2 [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: E2 03 00 [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: E2 03 00 1B C6 00 90 00 55 [20:16:40]RAPDU: 90 00 [20:16:40]wFMCommunicate OK [20:16:40]wFMCommunicate request_size=4 [20:16:40]MH_SAM_APDU [20:16:40]CAPDU: 80 0D 03 02 [20:16:40]Write to MH i2c: E2 08 00 1C C6 80 0D 03 02 00 00 00 00 5D [20:16:40]Write i2c OK [20:16:40]MH_I2C_Read... [20:16:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:16:40]Read from MH i2c: E2 [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: E2 0B 00 [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: E2 0B 00 1C C6 00 74 D4 53 8F DC FF 8B 92 90 00 80 [20:16:40]RAPDU: 74 D4 53 8F DC FF 8B 92 90 00 [20:16:40]wFMCommunicate OK [20:16:40]SAM_PROTO_SignData done [20:16:40]FM_MakeSignedData done [20:16:40]CreateOFDProtocolMessage [20:16:40]wFMCommunicate request_size=4 [20:16:40]MH_SAM_APDU [20:16:40]CAPDU: 80 11 00 00 [20:16:40]Write to MH i2c: E2 08 00 1D C6 80 11 00 00 00 00 00 00 5D [20:16:40]Write i2c OK [20:16:40]MH_I2C_Read... [20:16:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:40]Read from MH i2c: E2 [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: E2 17 00 [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: E2 17 00 1D C6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 AA [20:16:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:16:40]wFMCommunicate OK [20:16:40]CreateOFDProtocolMessage done [20:16:40]OFDSenderStorePacket 260919 [20:16:40]StoreOFDPacket docnum=260919 [20:16:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 38 C3 07 01 35 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 01 00 00 F4 03 04 00 AD 56 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 37 FB 03 00 35 04 06 00 63 C1 25 54 28 94 74 D4 53 8F DC FF 8B 92 [20:16:40]CheckFolder [20:16:40]dirname=/storage/ofd_packets [20:16:40]CheckFolder done [20:16:40]ProducePacketName [20:16:40]name=ofd_packets/00260919 [20:16:40]NVStorageSaveData ofd_packets/00260919 [20:16:40]File name is /storage/ofd_packets/00260919 [20:16:40]Write 301 bytes [20:16:40]NVStorageSaveData done [20:16:40]OFDSenderStorePacket done [20:16:40]KKMCreateOFDPacket done [20:16:40]NVStorageSaveData kkm_last_timestamp [20:16:40]File name is /storage/kkm_last_timestamp [20:16:40]Write 4 bytes [20:16:40]NVStorageSaveData done [20:16:40]ExternCall_PrintAddStr [20:16:40]wPrintStart [20:16:40]Write to MH i2c: 01 00 00 1E C6 E4 [20:16:40]Write i2c OK [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: 01 [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: 01 07 00 [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: 01 07 00 1E C6 00 00 00 00 00 FF 0F F9 [20:16:40]RasterBufferAndPrint [20:16:40]line Счет N : (1)1036472 [20:16:40]line ИНН: 02508201610067 [20:16:40]line Контрольно-Кассовый Чек [20:16:40]line ПРОДАЖА [20:16:40]line ТРК (МРК, ГНК) : 13 [20:16:40]line Товар: 2710124500 [20:16:40]line Аи-95-К-5 [20:16:40]line 13.480 * 74.20 [20:16:40]line = 1000.22 [20:16:40]line НДС 12% НСП 1% [20:16:40]line > о реализуемом товаре [20:16:40]line ОКРУГЛЕНИЕ: -0.22 [20:16:40]line ИТОГО: 1000.00 [20:16:40]line Внесено: 1000.00 [20:16:40]line СДАЧА: 0.00 [20:16:40]line НСП 1% : 8.85 [20:16:40]line НДС 12% : 106.22 [20:16:40]line Наличными: 1000.00 [20:16:40]line Безнал.: 0.00 [20:16:40]line Место: АЗС № 94 "Партнер Нефть" [20:16:40]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:16:40]line СНО: Общий режим [20:16:40]line Чек 477 18.08.2024 20:16 [20:16:40]line Смена: 449 ФФД: 1.0 [20:16:40]line ЗНМ: 0300000099 [20:16:40]line РНМ: 0000000000091865 [20:16:40]line Версия ККМ: 001 [20:16:40]line ФМ: 0000000000871820 [20:16:40]line ФД: 260919 [20:16:40]line ФПД: 109681206110356 [20:16:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T201645&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260919&fm=109681206110356&tin=02508201610067®Number=0000000000091865&sum=100000 [20:16:40]written 0, free lines is 4095 [20:16:40]OFD Sender: Processing packet 260919 [packets to send 192, broken 191] [20:16:40]ProducePacketName [20:16:40]name=ofd_packets/00260919 [20:16:40]OFD Sender: To server: pG, [20:16:40]CommunicateWithHost lk.salyk.kg:30040 [20:16:40]ConnectInit lk.salyk.kg [20:16:40]Connected sock=10 [20:16: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 30 0F 01 00 00 38 C3 07 01 35 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 01 00 00 F4 03 04 00 AD 56 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 37 FB 03 00 35 04 06 00 63 C1 25 54 28 94 74 D4 53 8F DC FF 8B 92 [20:16: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 30 4F 00 00 00 1A 65 47 00 49 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 30 10 04 04 00 37 FB 03 00 F4 03 04 00 00 00 C2 66 B6 04 01 00 00 C4 4E 3B 0E 50 36 A6 7D [20:16:40]CommunicateWithHost err = 0 [20:16:40]CheckOFDResponse [20:16:40]1017 (14) - 77093643461234 [20:16:40]1041 (16) - 0000000000871820 [20:16:40]1040 (4) - 260919 [20:16:40]1012 (4) - 18.08.2024 14:06 [20:16:40]1206 (1) - 0 [20:16:40]OFD Sender: Remove packet 260919 [20:16:40]ProducePacketName [20:16:40]name=ofd_packets/00260919 [20:16:40]NVStorageDeleteData [20:16:40]Write to MH i2c: 01 00 00 49 C6 0F [20:16:40]Write i2c OK [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: 01 [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: 01 07 00 [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: 01 07 00 49 C6 00 00 00 00 00 7E 0C A0 [20:16:40]RasterBufferAndPrint [20:16:40]line [20:16:40]line [20:16:40]line [20:16:40]line [20:16:40]line [20:16:40]written 0, free lines is 3201 [20:16:40]MH_Cut [20:16:40]Write to MH i2c: D1 01 00 50 C6 01 E8 [20:16:40]Write i2c OK [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: D1 [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: D1 01 00 [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: D1 01 00 50 C6 00 E7 [20:16:40]Write to MH i2c: 01 00 00 51 C6 17 [20:16:40]Write i2c OK [20:16:40]MH_I2C_Read... [20:16:41]OFD Sender: No OFD packet to send [20:16:41]*** Cut start [20:16:41]*** Purtial cut [20:16:41]*** Stage 1: CUTSNS_PIN = 1 [20:16:43]Read from MH i2c: 01 [20:16:43]MH_I2C_Read... [20:16:43]*** Stop cut motor [20:16:43]*** Cut end [20:16:43]Read from MH i2c: 01 07 00 [20:16:43]MH_I2C_Read... [20:16:43]Read from MH i2c: 01 07 00 51 C6 00 00 00 00 00 FF 0F 2C [20:16:43]process_action close_receipt done [20:16:43]requested_data is exist [20:16:43]produce_requested_data [20:16:43]requested_item fm.sn is exist - process it [20:16:43]wFMCommunicate request_size=4 [20:16:43]MH_SAM_APDU [20:16:43]CAPDU: 80 11 00 00 [20:16:43]Write to MH i2c: E2 08 00 52 C6 80 11 00 00 00 00 00 00 92 [20:16:43]Write i2c OK [20:16:43]MH_I2C_Read... [20:16:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:43]Read from MH i2c: E2 [20:16:43]MH_I2C_Read... [20:16:43]Read from MH i2c: E2 17 00 [20:16:43]MH_I2C_Read... [20:16:43]Read from MH i2c: E2 17 00 52 C6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 DF [20:16:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:16:43]wFMCommunicate OK [20:16:43]requested_item fd.num is exist - process it [20:16:43]SAM_PROTO_GetFieldsCounters [20:16:43]wFMCommunicate request_size=4 [20:16:43]MH_SAM_APDU [20:16:43]CAPDU: 80 13 00 00 [20:16:43]Write to MH i2c: E2 08 00 53 C6 80 13 00 00 00 00 00 00 95 [20:16:43]Write i2c OK [20:16:43]MH_I2C_Read... [20:16:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:16:43]Read from MH i2c: E2 [20:16:43]MH_I2C_Read... [20:16:43]Read from MH i2c: E2 62 00 [20:16:43]MH_I2C_Read... [20:16:43]Read from MH i2c: E2 62 00 53 C6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 37 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 DD 01 00 00 5E 04 04 00 DD 01 00 00 57 04 04 00 DE 01 00 00 19 04 04 00 00 00 00 00 90 00 45 [20:16: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 37 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 DD 01 00 00 5E 04 04 00 DD 01 00 00 57 04 04 00 DE 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:16:43]wFMCommunicate OK [20:16:43]SAM_PROTO_GetFieldsCounters done [20:16:43]requested_item shift.num is exist - process it [20:16:43]requested_item shift.opened is exist - process it [20:16:43]req_shift_opened [20:16:43]FM_GetShiftState [20:16:43]SAM_PROTO_GetShiftState [20:16:43]wFMCommunicate request_size=4 [20:16:43]MH_SAM_APDU [20:16:43]CAPDU: 80 13 01 00 [20:16:43]Write to MH i2c: E2 08 00 54 C6 80 13 01 00 00 00 00 00 97 [20:16:43]Write i2c OK [20:16:43]MH_I2C_Read... [20:16:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:43]Read from MH i2c: E2 [20:16:43]MH_I2C_Read... [20:16:43]Read from MH i2c: E2 0E 00 [20:16:43]MH_I2C_Read... [20:16:43]Read from MH i2c: E2 0E 00 54 C6 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D4 [20:16:43]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:16:43]wFMCommunicate OK [20:16:43]SAM_PROTO_GetShiftState done [20:16:43]FM_GetShiftState done [20:16:43]req_shift_opened done [20:16:43]requested_item shift.open_date is exist - process it [20:16:43]req_shift_open_date [20:16:43]req_shift_open_date done [20:16:43]produce_requested_data done [20:16:43]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260919,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:16:43]process_action_free close_receipt [20:16:43]json_value_free [20:16:43]json_value_free done [20:16:43]process_json_proto returns [20:16:43]Send response to host [20:16:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260919,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:16:43]free response buf [20:16:43]execute_script done [20:16:43]execute_script returns [20:16:43]free content buf [20:16:43]Sock 7.Close socket [20:16:43]Sock 7.Thread stoped [20:16:46]OFD Sender: No OFD packet to send [20:16:51]OFD Sender: No OFD packet to send [20:16:56]OFD Sender: No OFD packet to send [20:17:01]OFD Sender: No OFD packet to send [20:17:06]OFD Sender: No OFD packet to send [20:17:11]OFD Sender: No OFD packet to send [20:17:16]OFD Sender: No OFD packet to send [20:17:21]OFD Sender: No OFD packet to send [20:17:26]OFD Sender: No OFD packet to send [20:17:31]OFD Sender: No OFD packet to send [20:17:36]OFD Sender: No OFD packet to send [20:17:41]OFD Sender: No OFD packet to send [20:17:43]accept exits with 9 [20:17:43]New connection [20:17:43]New thread 3066473828 created [20:17:43]Thread 3066617188 joined [20:17:43]Waiting for new connection... [20:17:43] Sock 9.Parse request [20:17:43]Sock 9.Check first char [20:17:43]Sock 9.First char is OK [20:17:43]request: POST /json_proto HTTP/1.0 [20:17:43]Method: POST [20:17:43]URL: /json_proto [20:17:43]Method is POST - this is cgi request [20:17:43]url: /json_proto [20:17:43]query_string will be loaded in cgi processing [20:17:43]execute_cgi json_proto POST (null) [20:17:43]execute_cgi path=json_proto method=POST [20:17:43]POST find Content-Length [20:17:43]Host: 172.17.55.133:8080 [20:17:43]Content-Length: 688 [20:17:43]Content-Type: application/json [20:17:43] [20:17:43]POST finish read [20:17:43]Found Content-Length = 688 [20:17:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:43]execute_script... [20:17: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)1036473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:43]POST & json_proto [20:17:43]process_json_proto [20:17:43]json parsed OK: [20:17:43]protocol is kg_v1.0 [20:17:43]action value=close_receipt [20:17:43]process_action close_receipt [20:17:43]cmd_close_receipt [20:17:43]MH_GetDate [20:17:43]Write to MH i2c: F0 00 00 55 C6 0A [20:17:43]Write i2c OK [20:17:43]MH_I2C_Read... [20:17:43]Read from MH i2c: F0 [20:17:43]MH_I2C_Read... [20:17:43]Read from MH i2c: F0 09 00 [20:17:43]MH_I2C_Read... [20:17:43]Read from MH i2c: F0 09 00 55 C6 00 ED 56 C2 66 34 48 D8 65 37 [20:17:43]GetLastDocTimeStamp 1724012205 [20:17:43]current date 1724012269 [20:17:43]FM_GetShiftState [20:17:43]SAM_PROTO_GetShiftState [20:17:43]wFMCommunicate request_size=4 [20:17:43]MH_SAM_APDU [20:17:43]CAPDU: 80 13 01 00 [20:17:43]Write to MH i2c: E2 08 00 56 C6 80 13 01 00 00 00 00 00 99 [20:17:43]Write i2c OK [20:17:43]MH_I2C_Read... [20:17:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:43]Read from MH i2c: E2 [20:17:43]MH_I2C_Read... [20:17:43]Read from MH i2c: E2 0E 00 [20:17:43]MH_I2C_Read... [20:17:43]Read from MH i2c: E2 0E 00 56 C6 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D6 [20:17:43]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:17:43]wFMCommunicate OK [20:17:43]SAM_PROTO_GetShiftState done [20:17:43]FM_GetShiftState done [20:17:43]opened in 1723940556 [20:17:43]opened+sec_in_day 1724026956 [20:17:43]quantity*price = 100050 [20:17:43]sum+1 = 100052 [20:17:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 478 18.08.2024 20:17 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260920 ФПД: 181855333586763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T201749&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260920&fm=181855333586763&tin=02508201610067®Number=0000000000091865&sum=100000 [20:17:44]StoreToDocumentArchive [20:17:44]shift 449 fd 260920 [20:17:44]save to /storage/0449/doc_00260920 [20:17:44]save last doc name /storage/0449/doc_00260920 to /storage/kkm_last_doc_name [20:17:44]save OK [20:17:44]Clear old archive folders... [20:17:44]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:17:44]tlvbuf is 00450FA0 [20:17:44]SAM_PROTO_ClearQueue [20:17:44]wFMCommunicate request_size=4 [20:17:44]MH_SAM_APDU [20:17:44]CAPDU: 80 09 00 00 [20:17:44]Write to MH i2c: E2 08 00 63 C6 80 09 00 00 00 00 00 00 9B [20:17:44]Write i2c OK [20:17:44]MH_I2C_Read... [20:17:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:17:44]Read from MH i2c: E2 [20:17:44]MH_I2C_Read... [20:17:44]Read from MH i2c: E2 03 00 [20:17:44]MH_I2C_Read... [20:17:44]Read from MH i2c: E2 03 00 63 C6 00 90 00 9D [20:17:44]RAPDU: 90 00 [20:17:44]wFMCommunicate OK [20:17:44]SAM_PROTO_ClearQueue done [20:17:44]KKMCreateOFDPacket [20:17:44]OFDProtocolAddRootSTLVToBuf [20:17:44]FM_MakeSignedData [20:17:44]FM_MakeSignedData [20:17:44]SAM_PROTO_SignData [20:17:44]wFMCommunicate request_size=4 [20:17:44]MH_SAM_APDU [20:17:44]CAPDU: 80 0D 01 02 [20:17:44]Write to MH i2c: E2 08 00 64 C6 80 0D 01 02 00 00 00 00 A3 [20:17:44]Write i2c OK [20:17:44]MH_I2C_Read... [20:17:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:17:44]Read from MH i2c: E2 [20:17:44]MH_I2C_Read... [20:17:44]Read from MH i2c: E2 03 00 [20:17:44]MH_I2C_Read... [20:17:44]Read from MH i2c: E2 03 00 64 C6 00 90 00 9E [20:17:44]RAPDU: 90 00 [20:17:44]wFMCommunicate OK [20:17:44]wFMCommunicate request_size=255 [20:17:44]MH_SAM_APDU [20:17:44]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 01 00 00 F4 03 04 00 ED 56 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 38 FB 03 00 35 04 06 00 [20:17:44]Write to MH i2c: E2 02 01 65 C6 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 01 00 00 F4 03 04 00 ED 56 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 38 FB 03 00 35 04 06 00 00 00 4F [20:17:44]Write i2c OK [20:17:44]MH_I2C_Read... [20:17:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:44]Read from MH i2c: E2 [20:17:44]MH_I2C_Read... [20:17:44]Read from MH i2c: E2 03 00 [20:17:44]MH_I2C_Read... [20:17:44]Read from MH i2c: E2 03 00 65 C6 00 90 00 9F [20:17:44]RAPDU: 90 00 [20:17:44]wFMCommunicate OK [20:17:44]wFMCommunicate request_size=11 [20:17:44]MH_SAM_APDU [20:17:44]CAPDU: 80 0D 02 02 06 A5 65 7E 8F 17 4B [20:17:44]Write to MH i2c: E2 0E 00 66 C6 80 0D 02 02 06 00 A5 65 7E 8F 17 4B 00 00 2B [20:17:44]Write i2c OK [20:17:44]MH_I2C_Read... [20:17:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:44]Read from MH i2c: E2 [20:17:44]MH_I2C_Read... [20:17:44]Read from MH i2c: E2 03 00 [20:17:44]MH_I2C_Read... [20:17:44]Read from MH i2c: E2 03 00 66 C6 00 90 00 A0 [20:17:44]RAPDU: 90 00 [20:17:44]wFMCommunicate OK [20:17:44]wFMCommunicate request_size=4 [20:17:44]MH_SAM_APDU [20:17:44]CAPDU: 80 0D 03 02 [20:17:44]Write to MH i2c: E2 08 00 67 C6 80 0D 03 02 00 00 00 00 A8 [20:17:44]Write i2c OK [20:17:44]MH_I2C_Read... [20:17:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:17:44]Read from MH i2c: E2 [20:17:44]MH_I2C_Read... [20:17:44]Read from MH i2c: E2 0B 00 [20:17:44]MH_I2C_Read... [20:17:44]Read from MH i2c: E2 0B 00 67 C6 00 03 A4 F1 AA 63 6A 8A EE 90 00 30 [20:17:44]RAPDU: 03 A4 F1 AA 63 6A 8A EE 90 00 [20:17:44]wFMCommunicate OK [20:17:44]SAM_PROTO_SignData done [20:17:44]FM_MakeSignedData done [20:17:44]CreateOFDProtocolMessage [20:17:44]wFMCommunicate request_size=4 [20:17:44]MH_SAM_APDU [20:17:44]CAPDU: 80 11 00 00 [20:17:44]Write to MH i2c: E2 08 00 68 C6 80 11 00 00 00 00 00 00 A8 [20:17:44]Write i2c OK [20:17:44]MH_I2C_Read... [20:17:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:44]Read from MH i2c: E2 [20:17:44]MH_I2C_Read... [20:17:44]Read from MH i2c: E2 17 00 [20:17:44]MH_I2C_Read... [20:17:44]Read from MH i2c: E2 17 00 68 C6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F5 [20:17:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:17:44]wFMCommunicate OK [20:17:44]CreateOFDProtocolMessage done [20:17:44]OFDSenderStorePacket 260920 [20:17:44]StoreOFDPacket docnum=260920 [20:17:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 60 A9 08 01 03 DE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 01 00 00 F4 03 04 00 ED 56 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 38 FB 03 00 35 04 06 00 A5 65 7E 8F 17 4B 03 A4 F1 AA 63 6A 8A EE [20:17:44]CheckFolder [20:17:44]dirname=/storage/ofd_packets [20:17:44]CheckFolder done [20:17:44]ProducePacketName [20:17:44]name=ofd_packets/00260920 [20:17:44]NVStorageSaveData ofd_packets/00260920 [20:17:44]File name is /storage/ofd_packets/00260920 [20:17:44]Write 302 bytes [20:17:44]NVStorageSaveData done [20:17:44]OFDSenderStorePacket done [20:17:44]KKMCreateOFDPacket done [20:17:44]NVStorageSaveData kkm_last_timestamp [20:17:44]File name is /storage/kkm_last_timestamp [20:17:44]Write 4 bytes [20:17:44]NVStorageSaveData done [20:17:44]ExternCall_PrintAddStr [20:17:44]wPrintStart [20:17:44]Write to MH i2c: 01 00 00 69 C6 2F [20:17:44]Write i2c OK [20:17:44]MH_I2C_Read... [20:17:44]Read from MH i2c: 01 [20:17:44]MH_I2C_Read... [20:17:44]Read from MH i2c: 01 07 00 [20:17:44]MH_I2C_Read... [20:17:44]Read from MH i2c: 01 07 00 69 C6 00 00 00 00 00 FF 0F 44 [20:17:44]RasterBufferAndPrint [20:17:44]line Счет N : (1)1036473 [20:17:44]line ИНН: 02508201610067 [20:17:44]line Контрольно-Кассовый Чек [20:17:44]line ПРОДАЖА [20:17:44]line ТРК (МРК, ГНК) : 33 [20:17:44]line Товар: 2710194210 [20:17:44]line ДТ(л)-К-4 [20:17:44]line 13.130 * 76.20 [20:17:44]line = 1000.51 [20:17:44]line НДС 12% НСП 1% [20:17:44]line > о реализуемом товаре [20:17:44]line ОКРУГЛЕНИЕ: -0.51 [20:17:44]line ИТОГО: 1000.00 [20:17:44]line Внесено: 1000.00 [20:17:44]line СДАЧА: 0.00 [20:17:44]line НСП 1% : 8.85 [20:17:44]line НДС 12% : 106.25 [20:17:44]line Наличными: 1000.00 [20:17:44]line Безнал.: 0.00 [20:17:44]line Место: АЗС № 94 "Партнер Нефть" [20:17:44]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:17:44]line СНО: Общий режим [20:17:44]line Чек 478 18.08.2024 20:17 [20:17:44]line Смена: 449 ФФД: 1.0 [20:17:44]line ЗНМ: 0300000099 [20:17:44]line РНМ: 0000000000091865 [20:17:44]line Версия ККМ: 001 [20:17:44]line ФМ: 0000000000871820 [20:17:44]line ФД: 260920 [20:17:44]line ФПД: 181855333586763 [20:17:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T201749&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260920&fm=181855333586763&tin=02508201610067®Number=0000000000091865&sum=100000 [20:17:45]OFD Sender: Processing packet 260920 [packets to send 192, broken 191] [20:17:45]ProducePacketName [20:17:45]name=ofd_packets/00260920 [20:17:45]OFD Sender: To server: pG, [20:17:45]CommunicateWithHost lk.salyk.kg:30040 [20:17:45]ConnectInit lk.salyk.kg [20:17:45]written 0, free lines is 4095 [20:17:45]Connected sock=10 [20:17: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 30 10 01 00 00 60 A9 08 01 03 DE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 01 00 00 F4 03 04 00 ED 56 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 38 FB 03 00 35 04 06 00 A5 65 7E 8F 17 4B 03 A4 F1 AA 63 6A 8A EE [20:17: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 30 4F 00 00 00 34 84 47 00 78 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 38 FB 03 00 F4 03 04 00 41 00 C2 66 B6 04 01 00 00 3A 33 E0 73 A5 B0 C0 67 [20:17:45]CommunicateWithHost err = 0 [20:17:45]CheckOFDResponse [20:17:45]1017 (14) - 77093643461234 [20:17:45]1041 (16) - 0000000000871820 [20:17:45]1040 (4) - 260920 [20:17:45]1012 (4) - 18.08.2024 14:08 [20:17:45]1206 (1) - 0 [20:17:45]OFD Sender: Remove packet 260920 [20:17:45]ProducePacketName [20:17:45]name=ofd_packets/00260920 [20:17:45]NVStorageDeleteData [20:17:45]Write to MH i2c: 01 00 00 94 C6 5A [20:17:45]Write i2c OK [20:17:45]MH_I2C_Read... [20:17:45]Read from MH i2c: 01 [20:17:45]MH_I2C_Read... [20:17:45]Read from MH i2c: 01 07 00 [20:17:45]MH_I2C_Read... [20:17:45]Read from MH i2c: 01 07 00 94 C6 00 00 00 00 00 72 0C DF [20:17:45]RasterBufferAndPrint [20:17:45]line [20:17:45]line [20:17:45]line [20:17:45]line [20:17:45]line [20:17:45]written 0, free lines is 3188 [20:17:45]MH_Cut [20:17:45]Write to MH i2c: D1 01 00 9B C6 01 33 [20:17:45]Write i2c OK [20:17:45]MH_I2C_Read... [20:17:45]Read from MH i2c: D1 [20:17:45]MH_I2C_Read... [20:17:45]Read from MH i2c: D1 01 00 [20:17:45]MH_I2C_Read... [20:17:45]Read from MH i2c: D1 01 00 9B C6 00 32 [20:17:45]Write to MH i2c: 01 00 00 9C C6 62 [20:17:45]Write i2c OK [20:17:45]MH_I2C_Read... [20:17:45]OFD Sender: No OFD packet to send [20:17:46]*** Cut start [20:17:46]*** Purtial cut [20:17:46]*** Stage 1: CUTSNS_PIN = 1 [20:17:48]Read from MH i2c: 01 [20:17:48]MH_I2C_Read... [20:17:48]*** Stop cut motor [20:17:48]*** Cut end [20:17:48]Read from MH i2c: 01 07 00 [20:17:48]MH_I2C_Read... [20:17:48]Read from MH i2c: 01 07 00 9C C6 00 00 00 00 00 FF 0F 77 [20:17:48]process_action close_receipt done [20:17:48]requested_data is exist [20:17:48]produce_requested_data [20:17:48]requested_item fm.sn is exist - process it [20:17:48]wFMCommunicate request_size=4 [20:17:48]MH_SAM_APDU [20:17:48]CAPDU: 80 11 00 00 [20:17:48]Write to MH i2c: E2 08 00 9D C6 80 11 00 00 00 00 00 00 DD [20:17:48]Write i2c OK [20:17:48]MH_I2C_Read... [20:17:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:48]Read from MH i2c: E2 [20:17:48]MH_I2C_Read... [20:17:48]Read from MH i2c: E2 17 00 [20:17:48]MH_I2C_Read... [20:17:48]Read from MH i2c: E2 17 00 9D C6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 2A [20:17:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:17:48]wFMCommunicate OK [20:17:48]requested_item fd.num is exist - process it [20:17:48]SAM_PROTO_GetFieldsCounters [20:17:48]wFMCommunicate request_size=4 [20:17:48]MH_SAM_APDU [20:17:48]CAPDU: 80 13 00 00 [20:17:48]Write to MH i2c: E2 08 00 9E C6 80 13 00 00 00 00 00 00 E0 [20:17:48]Write i2c OK [20:17:48]MH_I2C_Read... [20:17:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:17:48]Read from MH i2c: E2 [20:17:48]MH_I2C_Read... [20:17:48]Read from MH i2c: E2 62 00 [20:17:48]MH_I2C_Read... [20:17:48]Read from MH i2c: E2 62 00 9E C6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 38 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 DE 01 00 00 5E 04 04 00 DE 01 00 00 57 04 04 00 DF 01 00 00 19 04 04 00 00 00 00 00 90 00 94 [20:17: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 38 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 DE 01 00 00 5E 04 04 00 DE 01 00 00 57 04 04 00 DF 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:17:48]wFMCommunicate OK [20:17:48]SAM_PROTO_GetFieldsCounters done [20:17:48]requested_item shift.num is exist - process it [20:17:48]requested_item shift.opened is exist - process it [20:17:48]req_shift_opened [20:17:48]FM_GetShiftState [20:17:48]SAM_PROTO_GetShiftState [20:17:48]wFMCommunicate request_size=4 [20:17:48]MH_SAM_APDU [20:17:48]CAPDU: 80 13 01 00 [20:17:48]Write to MH i2c: E2 08 00 9F C6 80 13 01 00 00 00 00 00 E2 [20:17:48]Write i2c OK [20:17:48]MH_I2C_Read... [20:17:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:48]Read from MH i2c: E2 [20:17:48]MH_I2C_Read... [20:17:48]Read from MH i2c: E2 0E 00 [20:17:48]MH_I2C_Read... [20:17:48]Read from MH i2c: E2 0E 00 9F C6 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 1F [20:17:48]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:17:48]wFMCommunicate OK [20:17:48]SAM_PROTO_GetShiftState done [20:17:48]FM_GetShiftState done [20:17:48]req_shift_opened done [20:17:48]requested_item shift.open_date is exist - process it [20:17:48]req_shift_open_date [20:17:48]req_shift_open_date done [20:17:48]produce_requested_data done [20:17:48]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260920,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:17:48]process_action_free close_receipt [20:17:48]json_value_free [20:17:48]json_value_free done [20:17:48]process_json_proto returns [20:17:48]Send response to host [20:17:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260920,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:17:48]free response buf [20:17:48]execute_script done [20:17:48]execute_script returns [20:17:48]free content buf [20:17:48]Sock 9.Close socket [20:17:48]Sock 9.Thread stoped [20:17:50]OFD Sender: No OFD packet to send [20:17:55]OFD Sender: No OFD packet to send [20:18:00]OFD Sender: No OFD packet to send [20:18:05]OFD Sender: No OFD packet to send [20:18:10]OFD Sender: No OFD packet to send [20:18:15]OFD Sender: No OFD packet to send [20:18:20]OFD Sender: No OFD packet to send [20:18:26]OFD Sender: No OFD packet to send [20:18:31]OFD Sender: No OFD packet to send [20:18:36]OFD Sender: No OFD packet to send [20:18:41]OFD Sender: No OFD packet to send [20:18:46]OFD Sender: No OFD packet to send [20:18:51]OFD Sender: No OFD packet to send [20:18:56]OFD Sender: No OFD packet to send [20:19:01]OFD Sender: No OFD packet to send [20:19:06]OFD Sender: No OFD packet to send [20:19:11]OFD Sender: No OFD packet to send [20:19:16]OFD Sender: No OFD packet to send [20:19:21]OFD Sender: No OFD packet to send [20:19:26]OFD Sender: No OFD packet to send [20:19:31]OFD Sender: No OFD packet to send [20:19:36]OFD Sender: No OFD packet to send [20:19:41]OFD Sender: No OFD packet to send [20:19:46]OFD Sender: No OFD packet to send [20:19:51]OFD Sender: No OFD packet to send [20:19:56]OFD Sender: No OFD packet to send [20:20:01]OFD Sender: No OFD packet to send [20:20:06]OFD Sender: No OFD packet to send [20:20:11]OFD Sender: No OFD packet to send [20:20:16]OFD Sender: No OFD packet to send [20:20:21]OFD Sender: No OFD packet to send [20:20:26]OFD Sender: No OFD packet to send [20:20:31]OFD Sender: No OFD packet to send [20:20:36]OFD Sender: No OFD packet to send [20:20:41]OFD Sender: No OFD packet to send [20:20:46]OFD Sender: No OFD packet to send [20:20:51]OFD Sender: No OFD packet to send [20:20:56]OFD Sender: No OFD packet to send [20:21:01]OFD Sender: No OFD packet to send [20:21:06]OFD Sender: No OFD packet to send [20:21:11]OFD Sender: No OFD packet to send [20:21:16]OFD Sender: No OFD packet to send [20:21:21]OFD Sender: No OFD packet to send [20:21:26]OFD Sender: No OFD packet to send [20:21:31]OFD Sender: No OFD packet to send [20:21:36]OFD Sender: No OFD packet to send [20:21:41]OFD Sender: No OFD packet to send [20:21:46]OFD Sender: No OFD packet to send [20:21:51]OFD Sender: No OFD packet to send [20:21:56]OFD Sender: No OFD packet to send [20:22:01]OFD Sender: No OFD packet to send [20:22:06]OFD Sender: No OFD packet to send [20:22:11]OFD Sender: No OFD packet to send [20:22:16]OFD Sender: No OFD packet to send [20:22:21]OFD Sender: No OFD packet to send [20:22:26]OFD Sender: No OFD packet to send [20:22:31]OFD Sender: No OFD packet to send [20:22:36]OFD Sender: No OFD packet to send [20:22:41]OFD Sender: No OFD packet to send [20:22:46]OFD Sender: No OFD packet to send [20:22:51]OFD Sender: No OFD packet to send [20:22:56]OFD Sender: No OFD packet to send [20:23:01]OFD Sender: No OFD packet to send [20:23:06]OFD Sender: No OFD packet to send [20:23:11]OFD Sender: No OFD packet to send [20:23:16]OFD Sender: No OFD packet to send [20:23:21]OFD Sender: No OFD packet to send [20:23:21]accept exits with 7 [20:23:21]New connection [20:23:21]New thread 3066617188 created [20:23:21]Thread 3066473828 joined [20:23:21]Waiting for new connection... [20:23:21] Sock 7.Parse request [20:23:21]Sock 7.Check first char [20:23:21]Sock 7.First char is OK [20:23:21]request: POST /json_proto HTTP/1.0 [20:23:21]Method: POST [20:23:21]URL: /json_proto [20:23:21]Method is POST - this is cgi request [20:23:21]url: /json_proto [20:23:21]query_string will be loaded in cgi processing [20:23:21]execute_cgi json_proto POST (null) [20:23:21]execute_cgi path=json_proto method=POST [20:23:21]POST find Content-Length [20:23:21]Host: 172.17.55.133:8080 [20:23:21]Content-Length: 801 [20:23:21]Content-Type: application/json [20:23:21] [20:23:21]POST finish read [20:23:21]Found Content-Length = 801 [20:23:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:21]execute_script... [20:23: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)1036475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:21]POST & json_proto [20:23:21]process_json_proto [20:23:21]json parsed OK: [20:23:21]protocol is kg_v1.0 [20:23:21]action value=close_receipt [20:23:21]process_action close_receipt [20:23:21]cmd_close_receipt [20:23:21]MH_GetDate [20:23:21]Write to MH i2c: F0 00 00 A0 C6 55 [20:23:21]Write i2c OK [20:23:21]MH_I2C_Read... [20:23:21]Read from MH i2c: F0 [20:23:21]MH_I2C_Read... [20:23:21]Read from MH i2c: F0 09 00 [20:23:21]MH_I2C_Read... [20:23:21]Read from MH i2c: F0 09 00 A0 C6 00 40 58 C2 66 34 48 D8 65 D7 [20:23:21]GetLastDocTimeStamp 1724012269 [20:23:21]current date 1724012608 [20:23:21]FM_GetShiftState [20:23:21]SAM_PROTO_GetShiftState [20:23:21]wFMCommunicate request_size=4 [20:23:21]MH_SAM_APDU [20:23:21]CAPDU: 80 13 01 00 [20:23:21]Write to MH i2c: E2 08 00 A1 C6 80 13 01 00 00 00 00 00 E4 [20:23:21]Write i2c OK [20:23:21]MH_I2C_Read... [20:23:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:21]Read from MH i2c: E2 [20:23:21]MH_I2C_Read... [20:23:21]Read from MH i2c: E2 0E 00 [20:23:21]MH_I2C_Read... [20:23:21]Read from MH i2c: E2 0E 00 A1 C6 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 21 [20:23:21]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:23:21]wFMCommunicate OK [20:23:21]SAM_PROTO_GetShiftState done [20:23:21]FM_GetShiftState done [20:23:21]opened in 1723940556 [20:23:21]opened+sec_in_day 1724026956 [20:23:21]quantity*price = 50036 [20:23:21]sum+1 = 50037 [20:23:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 479 18.08.2024 20:23 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260921 ФПД: 63525411776326 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T202328&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260921&fm=63525411776326&tin=02508201610067®Number=0000000000091865&sum=50036 [20:23:22]StoreToDocumentArchive [20:23:22]shift 449 fd 260921 [20:23:22]save to /storage/0449/doc_00260921 [20:23:22]save last doc name /storage/0449/doc_00260921 to /storage/kkm_last_doc_name [20:23:22]save OK [20:23:22]Clear old archive folders... [20:23:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:23:22]tlvbuf is 00382E30 [20:23:22]SAM_PROTO_ClearQueue [20:23:22]wFMCommunicate request_size=4 [20:23:22]MH_SAM_APDU [20:23:22]CAPDU: 80 09 00 00 [20:23:22]Write to MH i2c: E2 08 00 AE C6 80 09 00 00 00 00 00 00 E6 [20:23:22]Write i2c OK [20:23:22]MH_I2C_Read... [20:23:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:23:22]Read from MH i2c: E2 [20:23:22]MH_I2C_Read... [20:23:22]Read from MH i2c: E2 03 00 [20:23:22]MH_I2C_Read... [20:23:22]Read from MH i2c: E2 03 00 AE C6 00 90 00 E8 [20:23:22]RAPDU: 90 00 [20:23:22]wFMCommunicate OK [20:23:22]SAM_PROTO_ClearQueue done [20:23:22]KKMCreateOFDPacket [20:23:22]OFDProtocolAddRootSTLVToBuf [20:23:22]FM_MakeSignedData [20:23:22]FM_MakeSignedData [20:23:22]SAM_PROTO_SignData [20:23:22]wFMCommunicate request_size=4 [20:23:22]MH_SAM_APDU [20:23:22]CAPDU: 80 0D 01 02 [20:23:22]Write to MH i2c: E2 08 00 AF C6 80 0D 01 02 00 00 00 00 EE [20:23:22]Write i2c OK [20:23:22]MH_I2C_Read... [20:23:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:23:22]Read from MH i2c: E2 [20:23:22]MH_I2C_Read... [20:23:22]Read from MH i2c: E2 03 00 [20:23:22]MH_I2C_Read... [20:23:22]Read from MH i2c: E2 03 00 AF C6 00 90 00 E9 [20:23:22]RAPDU: 90 00 [20:23:22]wFMCommunicate OK [20:23:22]wFMCommunicate request_size=255 [20:23:22]MH_SAM_APDU [20:23:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 01 00 00 F4 03 04 00 40 58 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 39 FB 03 00 35 04 06 00 39 [20:23:22]Write to MH i2c: E2 02 01 B0 C6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 01 00 00 F4 03 04 00 40 58 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 39 FB 03 00 35 04 06 00 39 00 00 85 [20:23:22]Write i2c OK [20:23:22]MH_I2C_Read... [20:23:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:23]Read from MH i2c: E2 [20:23:23]MH_I2C_Read... [20:23:23]Read from MH i2c: E2 03 00 [20:23:23]MH_I2C_Read... [20:23:23]Read from MH i2c: E2 03 00 B0 C6 00 90 00 EA [20:23:23]RAPDU: 90 00 [20:23:23]wFMCommunicate OK [20:23:23]wFMCommunicate request_size=10 [20:23:23]MH_SAM_APDU [20:23:23]CAPDU: 80 0D 02 02 05 C6 A9 9A 67 46 [20:23:23]Write to MH i2c: E2 0D 00 B1 C6 80 0D 02 02 05 00 C6 A9 9A 67 46 00 00 B1 [20:23:23]Write i2c OK [20:23:23]MH_I2C_Read... [20:23:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:23]Read from MH i2c: E2 [20:23:23]MH_I2C_Read... [20:23:23]Read from MH i2c: E2 03 00 [20:23:23]MH_I2C_Read... [20:23:23]Read from MH i2c: E2 03 00 B1 C6 00 90 00 EB [20:23:23]RAPDU: 90 00 [20:23:23]wFMCommunicate OK [20:23:23]wFMCommunicate request_size=4 [20:23:23]MH_SAM_APDU [20:23:23]CAPDU: 80 0D 03 02 [20:23:23]Write to MH i2c: E2 08 00 B2 C6 80 0D 03 02 00 00 00 00 F3 [20:23:23]Write i2c OK [20:23:23]MH_I2C_Read... [20:23:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:23:23]Read from MH i2c: E2 [20:23:23]MH_I2C_Read... [20:23:23]Read from MH i2c: E2 0B 00 [20:23:23]MH_I2C_Read... [20:23:23]Read from MH i2c: E2 0B 00 B2 C6 00 4E 7D A1 BA 4A 50 9F 23 90 00 76 [20:23:23]RAPDU: 4E 7D A1 BA 4A 50 9F 23 90 00 [20:23:23]wFMCommunicate OK [20:23:23]SAM_PROTO_SignData done [20:23:23]FM_MakeSignedData done [20:23:23]CreateOFDProtocolMessage [20:23:23]wFMCommunicate request_size=4 [20:23:23]MH_SAM_APDU [20:23:23]CAPDU: 80 11 00 00 [20:23:23]Write to MH i2c: E2 08 00 B3 C6 80 11 00 00 00 00 00 00 F3 [20:23:23]Write i2c OK [20:23:23]MH_I2C_Read... [20:23:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:23]Read from MH i2c: E2 [20:23:23]MH_I2C_Read... [20:23:23]Read from MH i2c: E2 17 00 [20:23:23]MH_I2C_Read... [20:23:23]Read from MH i2c: E2 17 00 B3 C6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 40 [20:23:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:23:23]wFMCommunicate OK [20:23:23]CreateOFDProtocolMessage done [20:23:23]OFDSenderStorePacket 260921 [20:23:23]StoreOFDPacket docnum=260921 [20:23:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 3B 1B 07 01 53 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 01 00 00 F4 03 04 00 40 58 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 39 FB 03 00 35 04 06 00 39 C6 A9 9A 67 46 4E 7D A1 BA 4A 50 9F 23 [20:23:23]CheckFolder [20:23:23]dirname=/storage/ofd_packets [20:23:23]CheckFolder done [20:23:23]ProducePacketName [20:23:23]name=ofd_packets/00260921 [20:23:23]NVStorageSaveData ofd_packets/00260921 [20:23:23]File name is /storage/ofd_packets/00260921 [20:23:23]Write 301 bytes [20:23:23]NVStorageSaveData done [20:23:23]OFDSenderStorePacket done [20:23:23]KKMCreateOFDPacket done [20:23:23]NVStorageSaveData kkm_last_timestamp [20:23:23]File name is /storage/kkm_last_timestamp [20:23:23]Write 4 bytes [20:23:23]NVStorageSaveData done [20:23:23]ExternCall_PrintAddStr [20:23:23]wPrintStart [20:23:23]Write to MH i2c: 01 00 00 B4 C6 7A [20:23:23]Write i2c OK [20:23:23]MH_I2C_Read... [20:23:23]Read from MH i2c: 01 [20:23:23]MH_I2C_Read... [20:23:23]Read from MH i2c: 01 07 00 [20:23:23]MH_I2C_Read... [20:23:23]Read from MH i2c: 01 07 00 B4 C6 00 00 00 00 00 FF 0F 8F [20:23:23]RasterBufferAndPrint [20:23:23]line Счет N : (1)1036475 [20:23:23]line ИНН: 02508201610067 [20:23:23]line Контрольно-Кассовый Чек [20:23:23]line ПРОДАЖА [20:23:23]line ТРК (МРК, ГНК) : 22 [20:23:23]line Товар: 2710124130 [20:23:23]line Аи-92-К-5 [20:23:23]line 7.380 * 67.80 [20:23:23]line = 500.36 [20:23:23]line НДС 12% НСП 1% [20:23:23]line > о реализуемом товаре [20:23:23]line ИТОГО: 500.36 [20:23:23]line НСП 1% : 4.43 [20:23:23]line НДС 12% : 53.14 [20:23:23]line Наличными: 0.00 [20:23:23]line Безнал.: 500.36 [20:23:23]line Место: АЗС № 94 "Партнер Нефть" [20:23:23]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:23:23]line СНО: Общий режим [20:23:23]line Чек 479 18.08.2024 20:23 [20:23:23]line Смена: 449 ФФД: 1.0 [20:23:23]line ЗНМ: 0300000099 [20:23:23]line РНМ: 0000000000091865 [20:23:23]line Версия ККМ: 001 [20:23:23]line Платежная система: O! деньги [20:23:23]line ФМ: 0000000000871820 [20:23:23]line ФД: 260921 [20:23:23]line ФПД: 63525411776326 [20:23:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T202328&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260921&fm=63525411776326&tin=02508201610067®Number=0000000000091865&sum=50036 [20:23:23]written 0, free lines is 4095 [20:23:23]OFD Sender: Processing packet 260921 [packets to send 192, broken 191] [20:23:23]ProducePacketName [20:23:23]name=ofd_packets/00260921 [20:23:23]OFD Sender: To server: pG, [20:23:23]CommunicateWithHost lk.salyk.kg:30040 [20:23:23]ConnectInit lk.salyk.kg [20:23:23]Connected sock=9 [20:23: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 30 0F 01 00 00 3B 1B 07 01 53 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 01 00 00 F4 03 04 00 40 58 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 39 FB 03 00 35 04 06 00 39 C6 A9 9A 67 46 4E 7D A1 BA 4A 50 9F 23 [20:23: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 30 4F 00 00 00 7D 20 47 00 15 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 39 FB 03 00 F4 03 04 00 93 01 C2 66 B6 04 01 00 00 31 D8 82 DD 2A 4C F4 F9 [20:23:23]CommunicateWithHost err = 0 [20:23:23]CheckOFDResponse [20:23:23]1017 (14) - 77093643461234 [20:23:23]1041 (16) - 0000000000871820 [20:23:23]1040 (4) - 260921 [20:23:23]1012 (4) - 18.08.2024 14:13 [20:23:23]1206 (1) - 0 [20:23:23]OFD Sender: Remove packet 260921 [20:23:23]ProducePacketName [20:23:23]name=ofd_packets/00260921 [20:23:23]NVStorageDeleteData [20:23:23]Write to MH i2c: 01 00 00 DE C6 A4 [20:23:23]Write i2c OK [20:23:23]MH_I2C_Read... [20:23:23]Read from MH i2c: 01 [20:23:23]MH_I2C_Read... [20:23:23]Read from MH i2c: 01 07 00 [20:23:23]MH_I2C_Read... [20:23:23]Read from MH i2c: 01 07 00 DE C6 00 00 00 00 00 8E 0C 45 [20:23:23]RasterBufferAndPrint [20:23:23]line [20:23:23]line [20:23:23]line [20:23:23]line [20:23:23]line [20:23:23]written 0, free lines is 3217 [20:23:23]MH_Cut [20:23:23]Write to MH i2c: D1 01 00 E5 C6 01 7D [20:23:23]Write i2c OK [20:23:23]MH_I2C_Read... [20:23:23]Read from MH i2c: D1 [20:23:23]MH_I2C_Read... [20:23:23]Read from MH i2c: D1 01 00 [20:23:23]MH_I2C_Read... [20:23:23]Read from MH i2c: D1 01 00 E5 C6 00 7C [20:23:23]Write to MH i2c: 01 00 00 E6 C6 AC [20:23:23]Write i2c OK [20:23:23]MH_I2C_Read... [20:23:24]OFD Sender: No OFD packet to send [20:23:24]*** Cut start [20:23:24]*** Purtial cut [20:23:24]*** Stage 1: CUTSNS_PIN = 1 [20:23:26]Read from MH i2c: 01 [20:23:26]MH_I2C_Read... [20:23:26]*** Stop cut motor [20:23:26]*** Cut end [20:23:26]Read from MH i2c: 01 07 00 [20:23:26]MH_I2C_Read... [20:23:26]Read from MH i2c: 01 07 00 E6 C6 00 00 00 00 00 FF 0F C1 [20:23:26]process_action close_receipt done [20:23:26]requested_data is exist [20:23:26]produce_requested_data [20:23:26]requested_item fm.sn is exist - process it [20:23:26]wFMCommunicate request_size=4 [20:23:26]MH_SAM_APDU [20:23:26]CAPDU: 80 11 00 00 [20:23:26]Write to MH i2c: E2 08 00 E7 C6 80 11 00 00 00 00 00 00 27 [20:23:26]Write i2c OK [20:23:26]MH_I2C_Read... [20:23:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:26]Read from MH i2c: E2 [20:23:26]MH_I2C_Read... [20:23:26]Read from MH i2c: E2 17 00 [20:23:26]MH_I2C_Read... [20:23:26]Read from MH i2c: E2 17 00 E7 C6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 74 [20:23:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:23:26]wFMCommunicate OK [20:23:26]requested_item fd.num is exist - process it [20:23:26]SAM_PROTO_GetFieldsCounters [20:23:26]wFMCommunicate request_size=4 [20:23:26]MH_SAM_APDU [20:23:26]CAPDU: 80 13 00 00 [20:23:26]Write to MH i2c: E2 08 00 E8 C6 80 13 00 00 00 00 00 00 2A [20:23:26]Write i2c OK [20:23:26]MH_I2C_Read... [20:23:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:23:27]Read from MH i2c: E2 [20:23:27]MH_I2C_Read... [20:23:27]Read from MH i2c: E2 62 00 [20:23:27]MH_I2C_Read... [20:23:27]Read from MH i2c: E2 62 00 E8 C6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 39 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 DF 01 00 00 5E 04 04 00 DF 01 00 00 57 04 04 00 E0 01 00 00 19 04 04 00 00 00 00 00 90 00 E2 [20:23: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 39 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 DF 01 00 00 5E 04 04 00 DF 01 00 00 57 04 04 00 E0 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:23:27]wFMCommunicate OK [20:23:27]SAM_PROTO_GetFieldsCounters done [20:23:27]requested_item shift.num is exist - process it [20:23:27]requested_item shift.opened is exist - process it [20:23:27]req_shift_opened [20:23:27]FM_GetShiftState [20:23:27]SAM_PROTO_GetShiftState [20:23:27]wFMCommunicate request_size=4 [20:23:27]MH_SAM_APDU [20:23:27]CAPDU: 80 13 01 00 [20:23:27]Write to MH i2c: E2 08 00 E9 C6 80 13 01 00 00 00 00 00 2C [20:23:27]Write i2c OK [20:23:27]MH_I2C_Read... [20:23:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:27]Read from MH i2c: E2 [20:23:27]MH_I2C_Read... [20:23:27]Read from MH i2c: E2 0E 00 [20:23:27]MH_I2C_Read... [20:23:27]Read from MH i2c: E2 0E 00 E9 C6 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 69 [20:23:27]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:23:27]wFMCommunicate OK [20:23:27]SAM_PROTO_GetShiftState done [20:23:27]FM_GetShiftState done [20:23:27]req_shift_opened done [20:23:27]requested_item shift.open_date is exist - process it [20:23:27]req_shift_open_date [20:23:27]req_shift_open_date done [20:23:27]produce_requested_data done [20:23:27]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260921,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:23:27]process_action_free close_receipt [20:23:27]json_value_free [20:23:27]json_value_free done [20:23:27]process_json_proto returns [20:23:27]Send response to host [20:23:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260921,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:23:27]free response buf [20:23:27]execute_script done [20:23:27]execute_script returns [20:23:27]free content buf [20:23:27]Sock 7.Close socket [20:23:27]Sock 7.Thread stoped [20:23:29]OFD Sender: No OFD packet to send [20:23:34]OFD Sender: No OFD packet to send [20:23:39]OFD Sender: No OFD packet to send [20:23:44]OFD Sender: No OFD packet to send [20:23:49]OFD Sender: No OFD packet to send [20:23:54]OFD Sender: No OFD packet to send [20:23:59]OFD Sender: No OFD packet to send [20:24:04]OFD Sender: No OFD packet to send [20:24:09]OFD Sender: No OFD packet to send [20:24:11]accept exits with 10 [20:24:11]New connection [20:24:11]New thread 3066473828 created [20:24:11]Thread 3066617188 joined [20:24:11]Waiting for new connection... [20:24:11] Sock 10.Parse request [20:24:11]Sock 10.Check first char [20:24:11]Sock 10.First char is OK [20:24:11]request: POST /json_proto HTTP/1.0 [20:24:11]Method: POST [20:24:11]URL: /json_proto [20:24:11]Method is POST - this is cgi request [20:24:11]url: /json_proto [20:24:11]query_string will be loaded in cgi processing [20:24:11]execute_cgi json_proto POST (null) [20:24:11]execute_cgi path=json_proto method=POST [20:24:11]POST find Content-Length [20:24:11]Host: 172.17.55.133:8080 [20:24:11]Content-Length: 688 [20:24:11]Content-Type: application/json [20:24:11] [20:24:11]POST finish read [20:24:11]Found Content-Length = 688 [20:24:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:24:11]execute_script... [20:24:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:24:11]POST & json_proto [20:24:11]process_json_proto [20:24:11]json parsed OK: [20:24:11]protocol is kg_v1.0 [20:24:11]action value=close_receipt [20:24:11]process_action close_receipt [20:24:11]cmd_close_receipt [20:24:11]MH_GetDate [20:24:11]Write to MH i2c: F0 00 00 EA C6 9F [20:24:11]Write i2c OK [20:24:11]MH_I2C_Read... [20:24:11]Read from MH i2c: F0 [20:24:11]MH_I2C_Read... [20:24:11]Read from MH i2c: F0 09 00 [20:24:11]MH_I2C_Read... [20:24:11]Read from MH i2c: F0 09 00 EA C6 00 72 58 C2 66 34 48 D8 65 53 [20:24:11]GetLastDocTimeStamp 1724012608 [20:24:11]current date 1724012658 [20:24:11]FM_GetShiftState [20:24:11]SAM_PROTO_GetShiftState [20:24:11]wFMCommunicate request_size=4 [20:24:11]MH_SAM_APDU [20:24:11]CAPDU: 80 13 01 00 [20:24:11]Write to MH i2c: E2 08 00 EB C6 80 13 01 00 00 00 00 00 2E [20:24:11]Write i2c OK [20:24:11]MH_I2C_Read... [20:24:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:24:11]Read from MH i2c: E2 [20:24:11]MH_I2C_Read... [20:24:11]Read from MH i2c: E2 0E 00 [20:24:11]MH_I2C_Read... [20:24:11]Read from MH i2c: E2 0E 00 EB C6 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 6B [20:24:11]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:24:11]wFMCommunicate OK [20:24:11]SAM_PROTO_GetShiftState done [20:24:11]FM_GetShiftState done [20:24:11]opened in 1723940556 [20:24:11]opened+sec_in_day 1724026956 [20:24:11]quantity*price = 100050 [20:24:11]sum+1 = 100052 [20:24:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 480 18.08.2024 20:24 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260922 ФПД: 216974168995918 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T202418&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260922&fm=216974168995918&tin=02508201610067®Number=0000000000091865&sum=100000 [20:24:12]StoreToDocumentArchive [20:24:12]shift 449 fd 260922 [20:24:12]save to /storage/0449/doc_00260922 [20:24:12]save last doc name /storage/0449/doc_00260922 to /storage/kkm_last_doc_name [20:24:12]save OK [20:24:12]Clear old archive folders... [20:24:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:24:12]tlvbuf is 00387EC0 [20:24:12]SAM_PROTO_ClearQueue [20:24:12]wFMCommunicate request_size=4 [20:24:12]MH_SAM_APDU [20:24:12]CAPDU: 80 09 00 00 [20:24:12]Write to MH i2c: E2 08 00 F8 C6 80 09 00 00 00 00 00 00 30 [20:24:12]Write i2c OK [20:24:12]MH_I2C_Read... [20:24:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:24:12]Read from MH i2c: E2 [20:24:12]MH_I2C_Read... [20:24:13]Read from MH i2c: E2 03 00 [20:24:13]MH_I2C_Read... [20:24:13]Read from MH i2c: E2 03 00 F8 C6 00 90 00 32 [20:24:13]RAPDU: 90 00 [20:24:13]wFMCommunicate OK [20:24:13]SAM_PROTO_ClearQueue done [20:24:13]KKMCreateOFDPacket [20:24:13]OFDProtocolAddRootSTLVToBuf [20:24:13]FM_MakeSignedData [20:24:13]FM_MakeSignedData [20:24:13]SAM_PROTO_SignData [20:24:13]wFMCommunicate request_size=4 [20:24:13]MH_SAM_APDU [20:24:13]CAPDU: 80 0D 01 02 [20:24:13]Write to MH i2c: E2 08 00 F9 C6 80 0D 01 02 00 00 00 00 38 [20:24:13]Write i2c OK [20:24:13]MH_I2C_Read... [20:24:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:24:13]Read from MH i2c: E2 [20:24:13]MH_I2C_Read... [20:24:13]Read from MH i2c: E2 03 00 [20:24:13]MH_I2C_Read... [20:24:13]Read from MH i2c: E2 03 00 F9 C6 00 90 00 33 [20:24:13]RAPDU: 90 00 [20:24:13]wFMCommunicate OK [20:24:13]wFMCommunicate request_size=255 [20:24:13]MH_SAM_APDU [20:24:13]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 01 00 00 F4 03 04 00 72 58 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3A FB 03 00 35 04 06 00 [20:24:13]Write to MH i2c: E2 02 01 FA C6 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 01 00 00 F4 03 04 00 72 58 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3A FB 03 00 35 04 06 00 00 00 6F [20:24:13]Write i2c OK [20:24:13]MH_I2C_Read... [20:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:24:13]Read from MH i2c: E2 [20:24:13]MH_I2C_Read... [20:24:13]Read from MH i2c: E2 03 00 [20:24:13]MH_I2C_Read... [20:24:13]Read from MH i2c: E2 03 00 FA C6 00 90 00 34 [20:24:13]RAPDU: 90 00 [20:24:13]wFMCommunicate OK [20:24:13]wFMCommunicate request_size=11 [20:24:13]MH_SAM_APDU [20:24:13]CAPDU: 80 0D 02 02 06 C5 56 3C 44 B8 4E [20:24:13]Write to MH i2c: E2 0E 00 FB C6 80 0D 02 02 06 00 C5 56 3C 44 B8 4E 00 00 E8 [20:24:13]Write i2c OK [20:24:13]MH_I2C_Read... [20:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:24:13]Read from MH i2c: E2 [20:24:13]MH_I2C_Read... [20:24:13]Read from MH i2c: E2 03 00 [20:24:13]MH_I2C_Read... [20:24:13]Read from MH i2c: E2 03 00 FB C6 00 90 00 35 [20:24:13]RAPDU: 90 00 [20:24:13]wFMCommunicate OK [20:24:13]wFMCommunicate request_size=4 [20:24:13]MH_SAM_APDU [20:24:13]CAPDU: 80 0D 03 02 [20:24:13]Write to MH i2c: E2 08 00 FC C6 80 0D 03 02 00 00 00 00 3D [20:24:13]Write i2c OK [20:24:13]MH_I2C_Read... [20:24:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:24:13]Read from MH i2c: E2 [20:24:13]MH_I2C_Read... [20:24:13]Read from MH i2c: E2 0B 00 [20:24:13]MH_I2C_Read... [20:24:13]Read from MH i2c: E2 0B 00 FC C6 00 7C C0 0B EB 03 40 EF E6 90 00 88 [20:24:13]RAPDU: 7C C0 0B EB 03 40 EF E6 90 00 [20:24:13]wFMCommunicate OK [20:24:13]SAM_PROTO_SignData done [20:24:13]FM_MakeSignedData done [20:24:13]CreateOFDProtocolMessage [20:24:13]wFMCommunicate request_size=4 [20:24:13]MH_SAM_APDU [20:24:13]CAPDU: 80 11 00 00 [20:24:13]Write to MH i2c: E2 08 00 FD C6 80 11 00 00 00 00 00 00 3D [20:24:13]Write i2c OK [20:24:13]MH_I2C_Read... [20:24:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:13]Read from MH i2c: E2 [20:24:13]MH_I2C_Read... [20:24:13]Read from MH i2c: E2 17 00 [20:24:13]MH_I2C_Read... [20:24:13]Read from MH i2c: E2 17 00 FD C6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 8A [20:24:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:24:13]wFMCommunicate OK [20:24:13]CreateOFDProtocolMessage done [20:24:13]OFDSenderStorePacket 260922 [20:24:13]StoreOFDPacket docnum=260922 [20:24:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 33 BD 08 01 87 55 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 01 00 00 F4 03 04 00 72 58 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3A FB 03 00 35 04 06 00 C5 56 3C 44 B8 4E 7C C0 0B EB 03 40 EF E6 [20:24:13]CheckFolder [20:24:13]dirname=/storage/ofd_packets [20:24:13]CheckFolder done [20:24:13]ProducePacketName [20:24:13]name=ofd_packets/00260922 [20:24:13]NVStorageSaveData ofd_packets/00260922 [20:24:13]File name is /storage/ofd_packets/00260922 [20:24:13]Write 302 bytes [20:24:13]NVStorageSaveData done [20:24:13]OFDSenderStorePacket done [20:24:13]KKMCreateOFDPacket done [20:24:13]NVStorageSaveData kkm_last_timestamp [20:24:13]File name is /storage/kkm_last_timestamp [20:24:13]Write 4 bytes [20:24:13]NVStorageSaveData done [20:24:13]ExternCall_PrintAddStr [20:24:13]wPrintStart [20:24:13]Write to MH i2c: 01 00 00 FE C6 C4 [20:24:13]Write i2c OK [20:24:13]MH_I2C_Read... [20:24:13]Read from MH i2c: 01 [20:24:13]MH_I2C_Read... [20:24:13]Read from MH i2c: 01 07 00 [20:24:13]MH_I2C_Read... [20:24:13]Read from MH i2c: 01 07 00 FE C6 00 00 00 00 00 FF 0F D9 [20:24:13]RasterBufferAndPrint [20:24:13]line Счет N : (1)1036474 [20:24:13]line ИНН: 02508201610067 [20:24:13]line Контрольно-Кассовый Чек [20:24:13]line ПРОДАЖА [20:24:13]line ТРК (МРК, ГНК) : 43 [20:24:13]line Товар: 2710194210 [20:24:13]line ДТ(л)-К-4 [20:24:13]line 13.130 * 76.20 [20:24:13]line = 1000.51 [20:24:13]line НДС 12% НСП 1% [20:24:13]line > о реализуемом товаре [20:24:13]line ОКРУГЛЕНИЕ: -0.51 [20:24:13]line ИТОГО: 1000.00 [20:24:13]line Внесено: 1000.00 [20:24:13]line СДАЧА: 0.00 [20:24:13]line НСП 1% : 8.85 [20:24:13]line НДС 12% : 106.25 [20:24:13]line Наличными: 1000.00 [20:24:13]line Безнал.: 0.00 [20:24:13]line Место: АЗС № 94 "Партнер Нефть" [20:24:13]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:24:13]line СНО: Общий режим [20:24:13]line Чек 480 18.08.2024 20:24 [20:24:13]line Смена: 449 ФФД: 1.0 [20:24:13]line ЗНМ: 0300000099 [20:24:13]line РНМ: 0000000000091865 [20:24:13]line Версия ККМ: 001 [20:24:13]line ФМ: 0000000000871820 [20:24:13]line ФД: 260922 [20:24:13]line ФПД: 216974168995918 [20:24:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T202418&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260922&fm=216974168995918&tin=02508201610067®Number=0000000000091865&sum=100000 [20:24:13]OFD Sender: Processing packet 260922 [packets to send 192, broken 191] [20:24:13]ProducePacketName [20:24:13]name=ofd_packets/00260922 [20:24:13]OFD Sender: To server: pG, [20:24:13]CommunicateWithHost lk.salyk.kg:30040 [20:24:13]ConnectInit lk.salyk.kg [20:24:13]written 0, free lines is 4095 [20:24:13]Connected sock=9 [20:24: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 30 10 01 00 00 33 BD 08 01 87 55 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 01 00 00 F4 03 04 00 72 58 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3A FB 03 00 35 04 06 00 C5 56 3C 44 B8 4E 7C C0 0B EB 03 40 EF E6 [20:24: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 30 4F 00 00 00 7F 11 47 00 AB 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 30 10 04 04 00 3A FB 03 00 F4 03 04 00 C6 01 C2 66 B6 04 01 00 00 7E 87 9B D0 E2 5C F5 B5 [20:24:14]CommunicateWithHost err = 0 [20:24:14]CheckOFDResponse [20:24:14]1017 (14) - 77093643461234 [20:24:14]1041 (16) - 0000000000871820 [20:24:14]1040 (4) - 260922 [20:24:14]1012 (4) - 18.08.2024 14:14 [20:24:14]1206 (1) - 0 [20:24:14]OFD Sender: Remove packet 260922 [20:24:14]ProducePacketName [20:24:14]name=ofd_packets/00260922 [20:24:14]NVStorageDeleteData [20:24:14]Write to MH i2c: 01 00 00 29 C7 F0 [20:24:14]Write i2c OK [20:24:14]MH_I2C_Read... [20:24:14]Read from MH i2c: 01 [20:24:14]MH_I2C_Read... [20:24:14]Read from MH i2c: 01 07 00 [20:24:14]MH_I2C_Read... [20:24:14]Read from MH i2c: 01 07 00 29 C7 00 00 00 00 00 79 0C 7C [20:24:14]RasterBufferAndPrint [20:24:14]line [20:24:14]line [20:24:14]line [20:24:14]line [20:24:14]line [20:24:14]written 0, free lines is 3195 [20:24:14]MH_Cut [20:24:14]Write to MH i2c: D1 01 00 30 C7 01 C9 [20:24:14]Write i2c OK [20:24:14]MH_I2C_Read... [20:24:14]Read from MH i2c: D1 [20:24:14]MH_I2C_Read... [20:24:14]Read from MH i2c: D1 01 00 [20:24:14]MH_I2C_Read... [20:24:14]Read from MH i2c: D1 01 00 30 C7 00 C8 [20:24:14]Write to MH i2c: 01 00 00 31 C7 F8 [20:24:14]Write i2c OK [20:24:14]MH_I2C_Read... [20:24:14]OFD Sender: No OFD packet to send [20:24:15]*** Cut start [20:24:15]*** Purtial cut [20:24:15]*** Stage 1: CUTSNS_PIN = 1 [20:24:17]Read from MH i2c: 01 [20:24:17]MH_I2C_Read... [20:24:17]*** Stop cut motor [20:24:17]*** Cut end [20:24:17]Read from MH i2c: 01 07 00 [20:24:17]MH_I2C_Read... [20:24:17]Read from MH i2c: 01 07 00 31 C7 00 00 00 00 00 FF 0F 0D [20:24:17]process_action close_receipt done [20:24:17]requested_data is exist [20:24:17]produce_requested_data [20:24:17]requested_item fm.sn is exist - process it [20:24:17]wFMCommunicate request_size=4 [20:24:17]MH_SAM_APDU [20:24:17]CAPDU: 80 11 00 00 [20:24:17]Write to MH i2c: E2 08 00 32 C7 80 11 00 00 00 00 00 00 73 [20:24:17]Write i2c OK [20:24:17]MH_I2C_Read... [20:24:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:17]Read from MH i2c: E2 [20:24:17]MH_I2C_Read... [20:24:17]Read from MH i2c: E2 17 00 [20:24:17]MH_I2C_Read... [20:24:17]Read from MH i2c: E2 17 00 32 C7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C0 [20:24:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:24:17]wFMCommunicate OK [20:24:17]requested_item fd.num is exist - process it [20:24:17]SAM_PROTO_GetFieldsCounters [20:24:17]wFMCommunicate request_size=4 [20:24:17]MH_SAM_APDU [20:24:17]CAPDU: 80 13 00 00 [20:24:17]Write to MH i2c: E2 08 00 33 C7 80 13 00 00 00 00 00 00 76 [20:24:17]Write i2c OK [20:24:17]MH_I2C_Read... [20:24:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:24:17]Read from MH i2c: E2 [20:24:17]MH_I2C_Read... [20:24:17]Read from MH i2c: E2 62 00 [20:24:17]MH_I2C_Read... [20:24:17]Read from MH i2c: E2 62 00 33 C7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 3A FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E0 01 00 00 5E 04 04 00 E0 01 00 00 57 04 04 00 E1 01 00 00 19 04 04 00 00 00 00 00 90 00 32 [20:24: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 3A FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E0 01 00 00 5E 04 04 00 E0 01 00 00 57 04 04 00 E1 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:24:17]wFMCommunicate OK [20:24:17]SAM_PROTO_GetFieldsCounters done [20:24:17]requested_item shift.num is exist - process it [20:24:17]requested_item shift.opened is exist - process it [20:24:17]req_shift_opened [20:24:17]FM_GetShiftState [20:24:17]SAM_PROTO_GetShiftState [20:24:17]wFMCommunicate request_size=4 [20:24:17]MH_SAM_APDU [20:24:17]CAPDU: 80 13 01 00 [20:24:17]Write to MH i2c: E2 08 00 34 C7 80 13 01 00 00 00 00 00 78 [20:24:17]Write i2c OK [20:24:17]MH_I2C_Read... [20:24:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:24:17]Read from MH i2c: E2 [20:24:17]MH_I2C_Read... [20:24:17]Read from MH i2c: E2 0E 00 [20:24:17]MH_I2C_Read... [20:24:17]Read from MH i2c: E2 0E 00 34 C7 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B5 [20:24:17]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:24:17]wFMCommunicate OK [20:24:17]SAM_PROTO_GetShiftState done [20:24:17]FM_GetShiftState done [20:24:17]req_shift_opened done [20:24:17]requested_item shift.open_date is exist - process it [20:24:17]req_shift_open_date [20:24:17]req_shift_open_date done [20:24:17]produce_requested_data done [20:24:17]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260922,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:24:17]process_action_free close_receipt [20:24:17]json_value_free [20:24:17]json_value_free done [20:24:17]process_json_proto returns [20:24:17]Send response to host [20:24:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260922,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:24:17]free response buf [20:24:17]execute_script done [20:24:17]execute_script returns [20:24:17]free content buf [20:24:17]Sock 10.Close socket [20:24:17]Sock 10.Thread stoped [20:24:19]OFD Sender: No OFD packet to send [20:24:24]OFD Sender: No OFD packet to send [20:24:29]OFD Sender: No OFD packet to send [20:24:34]OFD Sender: No OFD packet to send [20:24:39]OFD Sender: No OFD packet to send [20:24:44]OFD Sender: No OFD packet to send [20:24:49]OFD Sender: No OFD packet to send [20:24:54]OFD Sender: No OFD packet to send [20:24:59]OFD Sender: No OFD packet to send [20:25: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:17]accept exits with 7 [20:26:17]New connection [20:26:17]New thread 3066617188 created [20:26:17]Thread 3066473828 joined [20:26:17]Waiting for new connection... [20:26:17] Sock 7.Parse request [20:26:17]Sock 7.Check first char [20:26:17]Sock 7.First char is OK [20:26:17]request: POST /json_proto HTTP/1.0 [20:26:17]Method: POST [20:26:17]URL: /json_proto [20:26:17]Method is POST - this is cgi request [20:26:17]url: /json_proto [20:26:17]query_string will be loaded in cgi processing [20:26:17]execute_cgi json_proto POST (null) [20:26:17]execute_cgi path=json_proto method=POST [20:26:17]POST find Content-Length [20:26:17]Host: 172.17.55.133:8080 [20:26:17]Content-Length: 679 [20:26:17]Content-Type: application/json [20:26:17] [20:26:17]POST finish read [20:26:17]Found Content-Length = 679 [20:26:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.360, "sum" : 770.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 770.00, "total" : 770.00, "payments": [ { "type": 0, "sum" : 770.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:17]execute_script... [20:26: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)1036476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.360, "sum" : 770.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 770.00, "total" : 770.00, "payments": [ { "type": 0, "sum" : 770.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:17]POST & json_proto [20:26:17]process_json_proto [20:26:17]json parsed OK: [20:26:17]protocol is kg_v1.0 [20:26:17]action value=close_receipt [20:26:17]process_action close_receipt [20:26:17]cmd_close_receipt [20:26:17]MH_GetDate [20:26:17]Write to MH i2c: F0 00 00 35 C7 EB [20:26:17]Write i2c OK [20:26:17]MH_I2C_Read... [20:26:17]Read from MH i2c: F0 [20:26:17]MH_I2C_Read... [20:26:17]Read from MH i2c: F0 09 00 [20:26:17]MH_I2C_Read... [20:26:17]Read from MH i2c: F0 09 00 35 C7 00 F0 58 C2 66 34 48 D8 65 1D [20:26:17]GetLastDocTimeStamp 1724012658 [20:26:17]current date 1724012784 [20:26:17]FM_GetShiftState [20:26:17]SAM_PROTO_GetShiftState [20:26:17]wFMCommunicate request_size=4 [20:26:17]MH_SAM_APDU [20:26:17]CAPDU: 80 13 01 00 [20:26:17]Write to MH i2c: E2 08 00 36 C7 80 13 01 00 00 00 00 00 7A [20:26:17]Write i2c OK [20:26:17]MH_I2C_Read... [20:26:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:17]Read from MH i2c: E2 [20:26:17]MH_I2C_Read... [20:26:17]Read from MH i2c: E2 0E 00 [20:26:17]MH_I2C_Read... [20:26:17]Read from MH i2c: E2 0E 00 36 C7 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B7 [20:26:17]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:26:17]wFMCommunicate OK [20:26:17]SAM_PROTO_GetShiftState done [20:26:17]FM_GetShiftState done [20:26:17]opened in 1723940556 [20:26:17]opened+sec_in_day 1724026956 [20:26:17]quantity*price = 77020 [20:26:17]sum+1 = 77022 [20:26:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 770.00 Внесено: 770.00 СДАЧА: 0.00 НСП 1% : 6.82 НДС 12% : 81.79 Наличными: 770.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 481 18.08.2024 20:26 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260923 ФПД: 133044708072210 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T202624&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260923&fm=133044708072210&tin=02508201610067®Number=0000000000091865&sum=77000 [20:26:18]StoreToDocumentArchive [20:26:18]shift 449 fd 260923 [20:26:18]save to /storage/0449/doc_00260923 [20:26:18]save last doc name /storage/0449/doc_00260923 to /storage/kkm_last_doc_name [20:26:18]save OK [20:26:18]Clear old archive folders... [20:26:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:26:18]tlvbuf is 0036F440 [20:26:18]SAM_PROTO_ClearQueue [20:26:18]wFMCommunicate request_size=4 [20:26:18]MH_SAM_APDU [20:26:18]CAPDU: 80 09 00 00 [20:26:18]Write to MH i2c: E2 08 00 43 C7 80 09 00 00 00 00 00 00 7C [20:26:18]Write i2c OK [20:26:18]MH_I2C_Read... [20:26:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:26:18]Read from MH i2c: E2 [20:26:18]MH_I2C_Read... [20:26:18]Read from MH i2c: E2 03 00 [20:26:18]MH_I2C_Read... [20:26:18]Read from MH i2c: E2 03 00 43 C7 00 90 00 7E [20:26:18]RAPDU: 90 00 [20:26:18]wFMCommunicate OK [20:26:18]SAM_PROTO_ClearQueue done [20:26:18]KKMCreateOFDPacket [20:26:18]OFDProtocolAddRootSTLVToBuf [20:26:18]FM_MakeSignedData [20:26:18]FM_MakeSignedData [20:26:18]SAM_PROTO_SignData [20:26:18]wFMCommunicate request_size=4 [20:26:18]MH_SAM_APDU [20:26:18]CAPDU: 80 0D 01 02 [20:26:18]Write to MH i2c: E2 08 00 44 C7 80 0D 01 02 00 00 00 00 84 [20:26:18]Write i2c OK [20:26:18]MH_I2C_Read... [20:26:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:26:19]Read from MH i2c: E2 [20:26:19]MH_I2C_Read... [20:26:19]Read from MH i2c: E2 03 00 [20:26:19]MH_I2C_Read... [20:26:19]Read from MH i2c: E2 03 00 44 C7 00 90 00 7F [20:26:19]RAPDU: 90 00 [20:26:19]wFMCommunicate OK [20:26:19]wFMCommunicate request_size=255 [20:26:19]MH_SAM_APDU [20:26:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 2C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DD 2C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 1F 00 00 00 00 07 04 06 00 C8 2C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 01 00 00 F4 03 04 00 F0 58 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3B FB 03 00 35 04 06 00 79 [20:26:19]Write to MH i2c: E2 02 01 45 C7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 2C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DD 2C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 1F 00 00 00 00 07 04 06 00 C8 2C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 01 00 00 F4 03 04 00 F0 58 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3B FB 03 00 35 04 06 00 79 00 00 26 [20:26:19]Write i2c OK [20:26:19]MH_I2C_Read... [20:26:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:19]Read from MH i2c: E2 [20:26:19]MH_I2C_Read... [20:26:19]Read from MH i2c: E2 03 00 [20:26:19]MH_I2C_Read... [20:26:19]Read from MH i2c: E2 03 00 45 C7 00 90 00 80 [20:26:19]RAPDU: 90 00 [20:26:19]wFMCommunicate OK [20:26:19]wFMCommunicate request_size=10 [20:26:19]MH_SAM_APDU [20:26:19]CAPDU: 80 0D 02 02 05 00 E2 90 5B 12 [20:26:19]Write to MH i2c: E2 0D 00 46 C7 80 0D 02 02 05 00 00 E2 90 5B 12 00 00 70 [20:26:19]Write i2c OK [20:26:19]MH_I2C_Read... [20:26:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:19]Read from MH i2c: E2 [20:26:19]MH_I2C_Read... [20:26:19]Read from MH i2c: E2 03 00 [20:26:19]MH_I2C_Read... [20:26:19]Read from MH i2c: E2 03 00 46 C7 00 90 00 81 [20:26:19]RAPDU: 90 00 [20:26:19]wFMCommunicate OK [20:26:19]wFMCommunicate request_size=4 [20:26:19]MH_SAM_APDU [20:26:19]CAPDU: 80 0D 03 02 [20:26:19]Write to MH i2c: E2 08 00 47 C7 80 0D 03 02 00 00 00 00 89 [20:26:19]Write i2c OK [20:26:19]MH_I2C_Read... [20:26:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:26:19]Read from MH i2c: E2 [20:26:19]MH_I2C_Read... [20:26:19]Read from MH i2c: E2 0B 00 [20:26:19]MH_I2C_Read... [20:26:19]Read from MH i2c: E2 0B 00 47 C7 00 3D 4C F3 8D D9 88 78 1E 90 00 8A [20:26:19]RAPDU: 3D 4C F3 8D D9 88 78 1E 90 00 [20:26:19]wFMCommunicate OK [20:26:19]SAM_PROTO_SignData done [20:26:19]FM_MakeSignedData done [20:26:19]CreateOFDProtocolMessage [20:26:19]wFMCommunicate request_size=4 [20:26:19]MH_SAM_APDU [20:26:19]CAPDU: 80 11 00 00 [20:26:19]Write to MH i2c: E2 08 00 48 C7 80 11 00 00 00 00 00 00 89 [20:26:19]Write i2c OK [20:26:19]MH_I2C_Read... [20:26:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:19]Read from MH i2c: E2 [20:26:19]MH_I2C_Read... [20:26:19]Read from MH i2c: E2 17 00 [20:26:19]MH_I2C_Read... [20:26:19]Read from MH i2c: E2 17 00 48 C7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D6 [20:26:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:26:19]wFMCommunicate OK [20:26:19]CreateOFDProtocolMessage done [20:26:19]OFDSenderStorePacket 260923 [20:26:19]StoreOFDPacket docnum=260923 [20:26:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 D6 E7 07 01 A2 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 35 FF 03 08 00 03 60 2C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DD 2C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 1F 00 00 00 00 07 04 06 00 C8 2C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 01 00 00 F4 03 04 00 F0 58 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3B FB 03 00 35 04 06 00 79 00 E2 90 5B 12 3D 4C F3 8D D9 88 78 1E [20:26:19]CheckFolder [20:26:19]dirname=/storage/ofd_packets [20:26:19]CheckFolder done [20:26:19]ProducePacketName [20:26:19]name=ofd_packets/00260923 [20:26:19]NVStorageSaveData ofd_packets/00260923 [20:26:19]File name is /storage/ofd_packets/00260923 [20:26:19]Write 301 bytes [20:26:19]NVStorageSaveData done [20:26:19]OFDSenderStorePacket done [20:26:19]KKMCreateOFDPacket done [20:26:19]NVStorageSaveData kkm_last_timestamp [20:26:19]File name is /storage/kkm_last_timestamp [20:26:19]Write 4 bytes [20:26:19]NVStorageSaveData done [20:26:19]ExternCall_PrintAddStr [20:26:19]wPrintStart [20:26:19]Write to MH i2c: 01 00 00 49 C7 10 [20:26:19]Write i2c OK [20:26:19]MH_I2C_Read... [20:26:19]Read from MH i2c: 01 [20:26:19]MH_I2C_Read... [20:26:19]Read from MH i2c: 01 07 00 [20:26:19]MH_I2C_Read... [20:26:19]Read from MH i2c: 01 07 00 49 C7 00 00 00 00 00 FF 0F 25 [20:26:19]RasterBufferAndPrint [20:26:19]line Счет N : (1)1036476 [20:26:19]line ИНН: 02508201610067 [20:26:19]line Контрольно-Кассовый Чек [20:26:19]line ПРОДАЖА [20:26:19]line ТРК (МРК, ГНК) : 22 [20:26:19]line Товар: 2710124130 [20:26:19]line Аи-92-К-5 [20:26:19]line 11.360 * 67.80 [20:26:19]line = 770.21 [20:26:19]line НДС 12% НСП 1% [20:26:19]line > о реализуемом товаре [20:26:19]line ОКРУГЛЕНИЕ: -0.21 [20:26:19]line ИТОГО: 770.00 [20:26:19]line Внесено: 770.00 [20:26:19]line СДАЧА: 0.00 [20:26:19]line НСП 1% : 6.82 [20:26:19]line НДС 12% : 81.79 [20:26:19]line Наличными: 770.00 [20:26:19]line Безнал.: 0.00 [20:26:19]line Место: АЗС № 94 "Партнер Нефть" [20:26:19]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:26:19]line СНО: Общий режим [20:26:19]line Чек 481 18.08.2024 20:26 [20:26:19]line Смена: 449 ФФД: 1.0 [20:26:19]line ЗНМ: 0300000099 [20:26:19]line РНМ: 0000000000091865 [20:26:19]line Версия ККМ: 001 [20:26:19]line ФМ: 0000000000871820 [20:26:19]line ФД: 260923 [20:26:19]line ФПД: 133044708072210 [20:26:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T202624&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260923&fm=133044708072210&tin=02508201610067®Number=0000000000091865&sum=77000 [20:26:19]written 0, free lines is 4095 [20:26:19]OFD Sender: Processing packet 260923 [packets to send 192, broken 191] [20:26:19]ProducePacketName [20:26:19]name=ofd_packets/00260923 [20:26:19]OFD Sender: To server: pG, [20:26:19]CommunicateWithHost lk.salyk.kg:30040 [20:26:19]ConnectInit lk.salyk.kg [20:26:19]Connected sock=10 [20:26: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 30 0F 01 00 00 D6 E7 07 01 A2 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 35 FF 03 08 00 03 60 2C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DD 2C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 1F 00 00 00 00 07 04 06 00 C8 2C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 01 00 00 F4 03 04 00 F0 58 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3B FB 03 00 35 04 06 00 79 00 E2 90 5B 12 3D 4C F3 8D D9 88 78 1E [20:26: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 30 4F 00 00 00 1C 33 47 00 7E 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 3B FB 03 00 F4 03 04 00 44 02 C2 66 B6 04 01 00 00 51 22 19 45 2E 23 F1 0A [20:26:19]CommunicateWithHost err = 0 [20:26:19]CheckOFDResponse [20:26:19]1017 (14) - 77093643461234 [20:26:19]1041 (16) - 0000000000871820 [20:26:19]1040 (4) - 260923 [20:26:19]1012 (4) - 18.08.2024 14:16 [20:26:19]1206 (1) - 0 [20:26:19]OFD Sender: Remove packet 260923 [20:26:19]ProducePacketName [20:26:19]name=ofd_packets/00260923 [20:26:19]NVStorageDeleteData [20:26:19]Write to MH i2c: 01 00 00 74 C7 3B [20:26:19]Write i2c OK [20:26:19]MH_I2C_Read... [20:26:19]Read from MH i2c: 01 [20:26:19]MH_I2C_Read... [20:26:19]Read from MH i2c: 01 07 00 [20:26:19]MH_I2C_Read... [20:26:19]Read from MH i2c: 01 07 00 74 C7 00 00 00 00 00 6F 0C BD [20:26:19]RasterBufferAndPrint [20:26:19]line [20:26:19]line [20:26:19]line [20:26:19]line [20:26:19]line [20:26:19]written 0, free lines is 3187 [20:26:19]MH_Cut [20:26:19]Write to MH i2c: D1 01 00 7B C7 01 14 [20:26:19]Write i2c OK [20:26:19]MH_I2C_Read... [20:26:19]Read from MH i2c: D1 [20:26:19]MH_I2C_Read... [20:26:19]Read from MH i2c: D1 01 00 [20:26:19]MH_I2C_Read... [20:26:19]Read from MH i2c: D1 01 00 7B C7 00 13 [20:26:19]Write to MH i2c: 01 00 00 7C C7 43 [20:26:19]Write i2c OK [20:26:19]MH_I2C_Read... [20:26:20]OFD Sender: No OFD packet to send [20:26:21]*** Cut start [20:26:21]*** Purtial cut [20:26:21]*** Stage 1: CUTSNS_PIN = 1 [20:26:23]Read from MH i2c: 01 [20:26:23]MH_I2C_Read... [20:26:23]*** Stop cut motor [20:26:23]*** Cut end [20:26:23]Read from MH i2c: 01 07 00 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: 01 07 00 7C C7 00 00 00 00 00 FF 0F 58 [20:26:23]process_action close_receipt done [20:26:23]requested_data is exist [20:26:23]produce_requested_data [20:26:23]requested_item fm.sn is exist - process it [20:26:23]wFMCommunicate request_size=4 [20:26:23]MH_SAM_APDU [20:26:23]CAPDU: 80 11 00 00 [20:26:23]Write to MH i2c: E2 08 00 7D C7 80 11 00 00 00 00 00 00 BE [20:26:23]Write i2c OK [20:26:23]MH_I2C_Read... [20:26:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:23]Read from MH i2c: E2 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: E2 17 00 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: E2 17 00 7D C7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 0B [20:26:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:26:23]wFMCommunicate OK [20:26:23]requested_item fd.num is exist - process it [20:26:23]SAM_PROTO_GetFieldsCounters [20:26:23]wFMCommunicate request_size=4 [20:26:23]MH_SAM_APDU [20:26:23]CAPDU: 80 13 00 00 [20:26:23]Write to MH i2c: E2 08 00 7E C7 80 13 00 00 00 00 00 00 C1 [20:26:23]Write i2c OK [20:26:23]MH_I2C_Read... [20:26:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:26:23]Read from MH i2c: E2 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: E2 62 00 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: E2 62 00 7E C7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 3B FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E1 01 00 00 5E 04 04 00 E1 01 00 00 57 04 04 00 E2 01 00 00 19 04 04 00 00 00 00 00 90 00 81 [20:26: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 3B FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E1 01 00 00 5E 04 04 00 E1 01 00 00 57 04 04 00 E2 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:26:23]wFMCommunicate OK [20:26:23]SAM_PROTO_GetFieldsCounters done [20:26:23]requested_item shift.num is exist - process it [20:26:23]requested_item shift.opened is exist - process it [20:26:23]req_shift_opened [20:26:23]FM_GetShiftState [20:26:23]SAM_PROTO_GetShiftState [20:26:23]wFMCommunicate request_size=4 [20:26:23]MH_SAM_APDU [20:26:23]CAPDU: 80 13 01 00 [20:26:23]Write to MH i2c: E2 08 00 7F C7 80 13 01 00 00 00 00 00 C3 [20:26:23]Write i2c OK [20:26:23]MH_I2C_Read... [20:26:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:23]Read from MH i2c: E2 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: E2 0E 00 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: E2 0E 00 7F C7 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 00 [20:26:23]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:26:23]wFMCommunicate OK [20:26:23]SAM_PROTO_GetShiftState done [20:26:23]FM_GetShiftState done [20:26:23]req_shift_opened done [20:26:23]requested_item shift.open_date is exist - process it [20:26:23]req_shift_open_date [20:26:23]req_shift_open_date done [20:26:23]produce_requested_data done [20:26:23]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260923,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:26:23]process_action_free close_receipt [20:26:23]json_value_free [20:26:23]json_value_free done [20:26:23]process_json_proto returns [20:26:23]Send response to host [20:26:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260923,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:26:23]free response buf [20:26:23]execute_script done [20:26:23]execute_script returns [20:26:23]free content buf [20:26:23]Sock 7.Close socket [20:26:23]Sock 7.Thread stoped [20:26:25]OFD Sender: No OFD packet to send [20:26:30]OFD Sender: No OFD packet to send [20:26:35]OFD Sender: No OFD packet to send [20:26:40]OFD Sender: No OFD packet to send [20:26:45]OFD Sender: No OFD packet to send [20:26:50]OFD Sender: No OFD packet to send [20:26:50]accept exits with 9 [20:26:50]New connection [20:26:50]New thread 3066473828 created [20:26:50]Thread 3066617188 joined [20:26:50]Waiting for new connection... [20:26:50] Sock 9.Parse request [20:26:50]Sock 9.Check first char [20:26:50]Sock 9.First char is OK [20:26:50]request: POST /json_proto HTTP/1.0 [20:26:50]Method: POST [20:26:50]URL: /json_proto [20:26:50]Method is POST - this is cgi request [20:26:50]url: /json_proto [20:26:50]query_string will be loaded in cgi processing [20:26:50]execute_cgi json_proto POST (null) [20:26:50]execute_cgi path=json_proto method=POST [20:26:50]POST find Content-Length [20:26:50]Host: 172.17.55.133:8080 [20:26:50]Content-Length: 678 [20:26:50]Content-Type: application/json [20:26:50] [20:26:50]POST finish read [20:26:50]Found Content-Length = 678 [20:26:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:50]execute_script... [20:26: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)1036477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:50]POST & json_proto [20:26:50]process_json_proto [20:26:50]json parsed OK: [20:26:50]protocol is kg_v1.0 [20:26:50]action value=close_receipt [20:26:50]process_action close_receipt [20:26:50]cmd_close_receipt [20:26:50]MH_GetDate [20:26:50]Write to MH i2c: F0 00 00 80 C7 36 [20:26:50]Write i2c OK [20:26:50]MH_I2C_Read... [20:26:50]Read from MH i2c: F0 [20:26:50]MH_I2C_Read... [20:26:50]Read from MH i2c: F0 09 00 [20:26:50]MH_I2C_Read... [20:26:50]Read from MH i2c: F0 09 00 80 C7 00 11 59 C2 66 34 48 D8 65 8A [20:26:50]GetLastDocTimeStamp 1724012784 [20:26:50]current date 1724012817 [20:26:50]FM_GetShiftState [20:26:50]SAM_PROTO_GetShiftState [20:26:50]wFMCommunicate request_size=4 [20:26:50]MH_SAM_APDU [20:26:50]CAPDU: 80 13 01 00 [20:26:50]Write to MH i2c: E2 08 00 81 C7 80 13 01 00 00 00 00 00 C5 [20:26:50]Write i2c OK [20:26:50]MH_I2C_Read... [20:26:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:50]Read from MH i2c: E2 [20:26:50]MH_I2C_Read... [20:26:50]Read from MH i2c: E2 0E 00 [20:26:50]MH_I2C_Read... [20:26:50]Read from MH i2c: E2 0E 00 81 C7 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 02 [20:26:50]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:26:50]wFMCommunicate OK [20:26:50]SAM_PROTO_GetShiftState done [20:26:50]FM_GetShiftState done [20:26:50]opened in 1723940556 [20:26:50]opened+sec_in_day 1724026956 [20:26:50]quantity*price = 30035 [20:26:50]sum+1 = 30036 [20:26:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 482 18.08.2024 20:26 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260924 ФПД: 77386374890277 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T202657&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260924&fm=77386374890277&tin=02508201610067®Number=0000000000091865&sum=30000 [20:26:52]StoreToDocumentArchive [20:26:52]shift 449 fd 260924 [20:26:52]save to /storage/0449/doc_00260924 [20:26:52]save last doc name /storage/0449/doc_00260924 to /storage/kkm_last_doc_name [20:26:52]save OK [20:26:52]Clear old archive folders... [20:26:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:26:52]tlvbuf is 00336110 [20:26:52]SAM_PROTO_ClearQueue [20:26:52]wFMCommunicate request_size=4 [20:26:52]MH_SAM_APDU [20:26:52]CAPDU: 80 09 00 00 [20:26:52]Write to MH i2c: E2 08 00 8E C7 80 09 00 00 00 00 00 00 C7 [20:26:52]Write i2c OK [20:26:52]MH_I2C_Read... [20:26:52]Read from MH i2c: E2 [20:26:52]MH_I2C_Read... [20:26:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:26:52]Read from MH i2c: E2 03 00 [20:26:52]MH_I2C_Read... [20:26:52]Read from MH i2c: E2 03 00 8E C7 00 90 00 C9 [20:26:52]RAPDU: 90 00 [20:26:52]wFMCommunicate OK [20:26:52]SAM_PROTO_ClearQueue done [20:26:52]KKMCreateOFDPacket [20:26:52]OFDProtocolAddRootSTLVToBuf [20:26:52]FM_MakeSignedData [20:26:52]FM_MakeSignedData [20:26:52]SAM_PROTO_SignData [20:26:52]wFMCommunicate request_size=4 [20:26:52]MH_SAM_APDU [20:26:52]CAPDU: 80 0D 01 02 [20:26:52]Write to MH i2c: E2 08 00 8F C7 80 0D 01 02 00 00 00 00 CF [20:26:52]Write i2c OK [20:26:52]MH_I2C_Read... [20:26:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:26:52]Read from MH i2c: E2 [20:26:52]MH_I2C_Read... [20:26:52]Read from MH i2c: E2 03 00 [20:26:52]MH_I2C_Read... [20:26:52]Read from MH i2c: E2 03 00 8F C7 00 90 00 CA [20:26:52]RAPDU: 90 00 [20:26:52]wFMCommunicate OK [20:26:52]wFMCommunicate request_size=255 [20:26:52]MH_SAM_APDU [20:26:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 01 00 00 F4 03 04 00 11 59 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3C FB 03 00 35 04 06 00 46 [20:26:52]Write to MH i2c: E2 02 01 90 C7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 01 00 00 F4 03 04 00 11 59 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3C FB 03 00 35 04 06 00 46 00 00 22 [20:26:52]Write i2c OK [20:26:52]MH_I2C_Read... [20:26:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:52]Read from MH i2c: E2 [20:26:52]MH_I2C_Read... [20:26:52]Read from MH i2c: E2 03 00 [20:26:52]MH_I2C_Read... [20:26:52]Read from MH i2c: E2 03 00 90 C7 00 90 00 CB [20:26:52]RAPDU: 90 00 [20:26:52]wFMCommunicate OK [20:26:52]wFMCommunicate request_size=10 [20:26:52]MH_SAM_APDU [20:26:52]CAPDU: 80 0D 02 02 05 61 EB 62 C3 25 [20:26:52]Write to MH i2c: E2 0D 00 91 C7 80 0D 02 02 05 00 61 EB 62 C3 25 00 00 72 [20:26:52]Write i2c OK [20:26:52]MH_I2C_Read... [20:26:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:52]Read from MH i2c: E2 [20:26:52]MH_I2C_Read... [20:26:52]Read from MH i2c: E2 03 00 [20:26:52]MH_I2C_Read... [20:26:52]Read from MH i2c: E2 03 00 91 C7 00 90 00 CC [20:26:52]RAPDU: 90 00 [20:26:52]wFMCommunicate OK [20:26:52]wFMCommunicate request_size=4 [20:26:52]MH_SAM_APDU [20:26:52]CAPDU: 80 0D 03 02 [20:26:52]Write to MH i2c: E2 08 00 92 C7 80 0D 03 02 00 00 00 00 D4 [20:26:52]Write i2c OK [20:26:52]MH_I2C_Read... [20:26:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:26:52]Read from MH i2c: E2 [20:26:52]MH_I2C_Read... [20:26:52]Read from MH i2c: E2 0B 00 [20:26:52]MH_I2C_Read... [20:26:52]Read from MH i2c: E2 0B 00 92 C7 00 AD 10 AA AE 3C 30 2A 2C 90 00 AC [20:26:52]RAPDU: AD 10 AA AE 3C 30 2A 2C 90 00 [20:26:52]wFMCommunicate OK [20:26:52]SAM_PROTO_SignData done [20:26:52]FM_MakeSignedData done [20:26:52]CreateOFDProtocolMessage [20:26:52]wFMCommunicate request_size=4 [20:26:52]MH_SAM_APDU [20:26:52]CAPDU: 80 11 00 00 [20:26:52]Write to MH i2c: E2 08 00 93 C7 80 11 00 00 00 00 00 00 D4 [20:26:52]Write i2c OK [20:26:52]MH_I2C_Read... [20:26:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:52]Read from MH i2c: E2 [20:26:52]MH_I2C_Read... [20:26:52]Read from MH i2c: E2 17 00 [20:26:52]MH_I2C_Read... [20:26:52]Read from MH i2c: E2 17 00 93 C7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 21 [20:26:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:26:52]wFMCommunicate OK [20:26:52]CreateOFDProtocolMessage done [20:26:52]OFDSenderStorePacket 260924 [20:26:52]StoreOFDPacket docnum=260924 [20:26:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 EA 56 07 01 B9 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 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 01 00 00 F4 03 04 00 11 59 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3C FB 03 00 35 04 06 00 46 61 EB 62 C3 25 AD 10 AA AE 3C 30 2A 2C [20:26:52]CheckFolder [20:26:52]dirname=/storage/ofd_packets [20:26:52]CheckFolder done [20:26:52]ProducePacketName [20:26:52]name=ofd_packets/00260924 [20:26:52]NVStorageSaveData ofd_packets/00260924 [20:26:52]File name is /storage/ofd_packets/00260924 [20:26:52]Write 301 bytes [20:26:52]NVStorageSaveData done [20:26:52]OFDSenderStorePacket done [20:26:52]KKMCreateOFDPacket done [20:26:52]NVStorageSaveData kkm_last_timestamp [20:26:52]File name is /storage/kkm_last_timestamp [20:26:52]Write 4 bytes [20:26:52]NVStorageSaveData done [20:26:52]ExternCall_PrintAddStr [20:26:52]wPrintStart [20:26:52]Write to MH i2c: 01 00 00 94 C7 5B [20:26:52]Write i2c OK [20:26:52]MH_I2C_Read... [20:26:52]Read from MH i2c: 01 [20:26:52]MH_I2C_Read... [20:26:52]Read from MH i2c: 01 07 00 [20:26:52]MH_I2C_Read... [20:26:52]Read from MH i2c: 01 07 00 94 C7 00 00 00 00 00 FF 0F 70 [20:26:52]RasterBufferAndPrint [20:26:52]line Счет N : (1)1036477 [20:26:52]line ИНН: 02508201610067 [20:26:52]line Контрольно-Кассовый Чек [20:26:52]line ПРОДАЖА [20:26:52]line ТРК (МРК, ГНК) : 32 [20:26:52]line Товар: 2710124130 [20:26:52]line Аи-92-К-5 [20:26:52]line 4.430 * 67.80 [20:26:52]line = 300.35 [20:26:52]line НДС 12% НСП 1% [20:26:52]line > о реализуемом товаре [20:26:52]line ОКРУГЛЕНИЕ: -0.35 [20:26:52]line ИТОГО: 300.00 [20:26:52]line Внесено: 300.00 [20:26:52]line СДАЧА: 0.00 [20:26:52]line НСП 1% : 2.66 [20:26:52]line НДС 12% : 31.90 [20:26:52]line Наличными: 300.00 [20:26:52]line Безнал.: 0.00 [20:26:52]line Место: АЗС № 94 "Партнер Нефть" [20:26:52]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:26:52]line СНО: Общий режим [20:26:52]line Чек 482 18.08.2024 20:26 [20:26:52]line Смена: 449 ФФД: 1.0 [20:26:52]line ЗНМ: 0300000099 [20:26:52]line РНМ: 0000000000091865 [20:26:52]line Версия ККМ: 001 [20:26:52]line ФМ: 0000000000871820 [20:26:52]line ФД: 260924 [20:26:52]line ФПД: 77386374890277 [20:26:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T202657&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260924&fm=77386374890277&tin=02508201610067®Number=0000000000091865&sum=30000 [20:26:52]OFD Sender: Processing packet 260924 [packets to send 192, broken 191] [20:26:52]ProducePacketName [20:26:52]name=ofd_packets/00260924 [20:26:52]OFD Sender: To server: pG, [20:26:52]CommunicateWithHost lk.salyk.kg:30040 [20:26:52]ConnectInit lk.salyk.kg [20:26:52]written 0, free lines is 4095 [20:26:53]Connected sock=10 [20:26: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 30 0F 01 00 00 EA 56 07 01 B9 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 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 01 00 00 F4 03 04 00 11 59 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3C FB 03 00 35 04 06 00 46 61 EB 62 C3 25 AD 10 AA AE 3C 30 2A 2C [20:26: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 30 4F 00 00 00 7D 6B 47 00 06 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3C FB 03 00 F4 03 04 00 65 02 C2 66 B6 04 01 00 00 D4 32 83 B3 17 3D 69 77 [20:26:53]CommunicateWithHost err = 0 [20:26:53]CheckOFDResponse [20:26:53]1017 (14) - 77093643461234 [20:26:53]1041 (16) - 0000000000871820 [20:26:53]1040 (4) - 260924 [20:26:53]1012 (4) - 18.08.2024 14:17 [20:26:53]1206 (1) - 0 [20:26:53]OFD Sender: Remove packet 260924 [20:26:53]ProducePacketName [20:26:53]name=ofd_packets/00260924 [20:26:53]NVStorageDeleteData [20:26:53]Write to MH i2c: 01 00 00 BF C7 86 [20:26:53]Write i2c OK [20:26:53]MH_I2C_Read... [20:26:53]Read from MH i2c: 01 [20:26:53]MH_I2C_Read... [20:26:53]Read from MH i2c: 01 07 00 [20:26:53]MH_I2C_Read... [20:26:53]Read from MH i2c: 01 07 00 BF C7 00 00 00 00 00 7C 0C 15 [20:26:53]RasterBufferAndPrint [20:26:53]line [20:26:53]line [20:26:53]line [20:26:53]line [20:26:53]line [20:26:53]written 0, free lines is 3198 [20:26:53]MH_Cut [20:26:53]Write to MH i2c: D1 01 00 C6 C7 01 5F [20:26:53]Write i2c OK [20:26:53]MH_I2C_Read... [20:26:53]Read from MH i2c: D1 [20:26:53]MH_I2C_Read... [20:26:53]Read from MH i2c: D1 01 00 [20:26:53]MH_I2C_Read... [20:26:53]Read from MH i2c: D1 01 00 C6 C7 00 5E [20:26:53]Write to MH i2c: 01 00 00 C7 C7 8E [20:26:53]Write i2c OK [20:26:53]MH_I2C_Read... [20:26:53]OFD Sender: No OFD packet to send [20:26:54]*** Cut start [20:26:54]*** Purtial cut [20:26:54]*** Stage 1: CUTSNS_PIN = 1 [20:26:56]Read from MH i2c: 01 [20:26:56]MH_I2C_Read... [20:26:56]*** Stop cut motor [20:26:56]*** Cut end [20:26:56]Read from MH i2c: 01 07 00 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: 01 07 00 C7 C7 00 00 00 00 00 FF 0F A3 [20:26:56]process_action close_receipt done [20:26:56]requested_data is exist [20:26:56]produce_requested_data [20:26:56]requested_item fm.sn is exist - process it [20:26:56]wFMCommunicate request_size=4 [20:26:56]MH_SAM_APDU [20:26:56]CAPDU: 80 11 00 00 [20:26:56]Write to MH i2c: E2 08 00 C8 C7 80 11 00 00 00 00 00 00 09 [20:26:56]Write i2c OK [20:26:56]MH_I2C_Read... [20:26:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:56]Read from MH i2c: E2 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: E2 17 00 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: E2 17 00 C8 C7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 56 [20:26:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:26:56]wFMCommunicate OK [20:26:56]requested_item fd.num is exist - process it [20:26:56]SAM_PROTO_GetFieldsCounters [20:26:56]wFMCommunicate request_size=4 [20:26:56]MH_SAM_APDU [20:26:56]CAPDU: 80 13 00 00 [20:26:56]Write to MH i2c: E2 08 00 C9 C7 80 13 00 00 00 00 00 00 0C [20:26:56]Write i2c OK [20:26:56]MH_I2C_Read... [20:26:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:26:56]Read from MH i2c: E2 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: E2 62 00 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: E2 62 00 C9 C7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 3C FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E2 01 00 00 5E 04 04 00 E2 01 00 00 57 04 04 00 E3 01 00 00 19 04 04 00 00 00 00 00 90 00 D0 [20:26: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 3C FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E2 01 00 00 5E 04 04 00 E2 01 00 00 57 04 04 00 E3 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:26:56]wFMCommunicate OK [20:26:56]SAM_PROTO_GetFieldsCounters done [20:26:56]requested_item shift.num is exist - process it [20:26:56]requested_item shift.opened is exist - process it [20:26:56]req_shift_opened [20:26:56]FM_GetShiftState [20:26:56]SAM_PROTO_GetShiftState [20:26:56]wFMCommunicate request_size=4 [20:26:56]MH_SAM_APDU [20:26:56]CAPDU: 80 13 01 00 [20:26:56]Write to MH i2c: E2 08 00 CA C7 80 13 01 00 00 00 00 00 0E [20:26:56]Write i2c OK [20:26:56]MH_I2C_Read... [20:26:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:56]Read from MH i2c: E2 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: E2 0E 00 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: E2 0E 00 CA C7 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 4B [20:26:56]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:26:56]wFMCommunicate OK [20:26:56]SAM_PROTO_GetShiftState done [20:26:56]FM_GetShiftState done [20:26:56]req_shift_opened done [20:26:56]requested_item shift.open_date is exist - process it [20:26:56]req_shift_open_date [20:26:56]req_shift_open_date done [20:26:56]produce_requested_data done [20:26:56]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260924,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:26:56]process_action_free close_receipt [20:26:56]json_value_free [20:26:56]json_value_free done [20:26:56]process_json_proto returns [20:26:56]Send response to host [20:26:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260924,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:26:56]free response buf [20:26:56]execute_script done [20:26:56]execute_script returns [20:26:56]free content buf [20:26:56]Sock 9.Close socket [20:26:56]Sock 9.Thread stoped [20:26:58]OFD Sender: No OFD packet to send [20:27:03]OFD Sender: No OFD packet to send [20:27:08]OFD Sender: No OFD packet to send [20:27:13]OFD Sender: No OFD packet to send [20:27:18]OFD Sender: No OFD packet to send [20:27:23]OFD Sender: No OFD packet to send [20:27:27]accept exits with 7 [20:27:27]New connection [20:27:27]New thread 3066617188 created [20:27:27]Thread 3066473828 joined [20:27:27]Waiting for new connection... [20:27:27] Sock 7.Parse request [20:27:27]Sock 7.Check first char [20:27:27]Sock 7.First char is OK [20:27:27]request: POST /json_proto HTTP/1.0 [20:27:27]Method: POST [20:27:27]URL: /json_proto [20:27:27]Method is POST - this is cgi request [20:27:27]url: /json_proto [20:27:27]query_string will be loaded in cgi processing [20:27:27]execute_cgi json_proto POST (null) [20:27:27]execute_cgi path=json_proto method=POST [20:27:27]POST find Content-Length [20:27:27]Host: 172.17.55.133:8080 [20:27:27]Content-Length: 678 [20:27:27]Content-Type: application/json [20:27:27] [20:27:27]POST finish read [20:27:27]Found Content-Length = 678 [20:27:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:27]execute_script... [20:27: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)1036479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:27]POST & json_proto [20:27:27]process_json_proto [20:27:27]json parsed OK: [20:27:27]protocol is kg_v1.0 [20:27:27]action value=close_receipt [20:27:27]process_action close_receipt [20:27:27]cmd_close_receipt [20:27:27]MH_GetDate [20:27:27]Write to MH i2c: F0 00 00 CB C7 81 [20:27:27]Write i2c OK [20:27:27]MH_I2C_Read... [20:27:27]Read from MH i2c: F0 [20:27:27]MH_I2C_Read... [20:27:27]Read from MH i2c: F0 09 00 [20:27:27]MH_I2C_Read... [20:27:27]Read from MH i2c: F0 09 00 CB C7 00 36 59 C2 66 34 48 D8 65 FA [20:27:27]GetLastDocTimeStamp 1724012817 [20:27:27]current date 1724012854 [20:27:27]FM_GetShiftState [20:27:27]SAM_PROTO_GetShiftState [20:27:27]wFMCommunicate request_size=4 [20:27:27]MH_SAM_APDU [20:27:27]CAPDU: 80 13 01 00 [20:27:27]Write to MH i2c: E2 08 00 CC C7 80 13 01 00 00 00 00 00 10 [20:27:27]Write i2c OK [20:27:27]MH_I2C_Read... [20:27:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:27]Read from MH i2c: E2 [20:27:27]MH_I2C_Read... [20:27:27]Read from MH i2c: E2 0E 00 [20:27:27]MH_I2C_Read... [20:27:27]Read from MH i2c: E2 0E 00 CC C7 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 4D [20:27:27]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:27:27]wFMCommunicate OK [20:27:27]SAM_PROTO_GetShiftState done [20:27:27]FM_GetShiftState done [20:27:27]opened in 1723940556 [20:27:27]opened+sec_in_day 1724026956 [20:27:27]quantity*price = 50036 [20:27:27]sum+1 = 50037 [20:27:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 483 18.08.2024 20:27 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260925 ФПД: 146827773243382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T202734&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260925&fm=146827773243382&tin=02508201610067®Number=0000000000091865&sum=50000 [20:27:28]StoreToDocumentArchive [20:27:28]shift 449 fd 260925 [20:27:28]save to /storage/0449/doc_00260925 [20:27:28]save last doc name /storage/0449/doc_00260925 to /storage/kkm_last_doc_name [20:27:28]save OK [20:27:28]Clear old archive folders... [20:27:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:27:28]tlvbuf is 00540C20 [20:27:28]SAM_PROTO_ClearQueue [20:27:28]wFMCommunicate request_size=4 [20:27:28]MH_SAM_APDU [20:27:28]CAPDU: 80 09 00 00 [20:27:28]Write to MH i2c: E2 08 00 D9 C7 80 09 00 00 00 00 00 00 12 [20:27:28]Write i2c OK [20:27:28]MH_I2C_Read... [20:27:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:27:28]Read from MH i2c: E2 [20:27:28]MH_I2C_Read... [20:27:28]Read from MH i2c: E2 03 00 [20:27:28]MH_I2C_Read... [20:27:28]Read from MH i2c: E2 03 00 D9 C7 00 90 00 14 [20:27:28]RAPDU: 90 00 [20:27:28]wFMCommunicate OK [20:27:28]SAM_PROTO_ClearQueue done [20:27:28]KKMCreateOFDPacket [20:27:28]OFDProtocolAddRootSTLVToBuf [20:27:28]FM_MakeSignedData [20:27:28]FM_MakeSignedData [20:27:28]SAM_PROTO_SignData [20:27:28]wFMCommunicate request_size=4 [20:27:28]MH_SAM_APDU [20:27:28]CAPDU: 80 0D 01 02 [20:27:28]Write to MH i2c: E2 08 00 DA C7 80 0D 01 02 00 00 00 00 1A [20:27:28]Write i2c OK [20:27:28]MH_I2C_Read... [20:27:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:27:28]Read from MH i2c: E2 [20:27:28]MH_I2C_Read... [20:27:28]Read from MH i2c: E2 03 00 [20:27:28]MH_I2C_Read... [20:27:28]Read from MH i2c: E2 03 00 DA C7 00 90 00 15 [20:27:28]RAPDU: 90 00 [20:27:28]wFMCommunicate OK [20:27:28]wFMCommunicate request_size=255 [20:27:28]MH_SAM_APDU [20:27: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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E3 01 00 00 F4 03 04 00 36 59 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3D FB 03 00 35 04 06 00 85 [20:27:28]Write to MH i2c: E2 02 01 DB C7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E3 01 00 00 F4 03 04 00 36 59 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3D FB 03 00 35 04 06 00 85 00 00 B4 [20:27:28]Write i2c OK [20:27:28]MH_I2C_Read... [20:27:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:29]Read from MH i2c: E2 [20:27:29]MH_I2C_Read... [20:27:29]Read from MH i2c: E2 03 00 [20:27:29]MH_I2C_Read... [20:27:29]Read from MH i2c: E2 03 00 DB C7 00 90 00 16 [20:27:29]RAPDU: 90 00 [20:27:29]wFMCommunicate OK [20:27:29]wFMCommunicate request_size=10 [20:27:29]MH_SAM_APDU [20:27:29]CAPDU: 80 0D 02 02 05 8A 01 44 6F F6 [20:27:29]Write to MH i2c: E2 0D 00 DC C7 80 0D 02 02 05 00 8A 01 44 6F F6 00 00 5B [20:27:29]Write i2c OK [20:27:29]MH_I2C_Read... [20:27:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:29]Read from MH i2c: E2 [20:27:29]MH_I2C_Read... [20:27:29]Read from MH i2c: E2 03 00 [20:27:29]MH_I2C_Read... [20:27:29]Read from MH i2c: E2 03 00 DC C7 00 90 00 17 [20:27:29]RAPDU: 90 00 [20:27:29]wFMCommunicate OK [20:27:29]wFMCommunicate request_size=4 [20:27:29]MH_SAM_APDU [20:27:29]CAPDU: 80 0D 03 02 [20:27:29]Write to MH i2c: E2 08 00 DD C7 80 0D 03 02 00 00 00 00 1F [20:27:29]Write i2c OK [20:27:29]MH_I2C_Read... [20:27:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:27:29]Read from MH i2c: E2 [20:27:29]MH_I2C_Read... [20:27:29]Read from MH i2c: E2 0B 00 [20:27:29]MH_I2C_Read... [20:27:29]Read from MH i2c: E2 0B 00 DD C7 00 0E 7E 5A E0 ED E5 B5 B0 90 00 1D [20:27:29]RAPDU: 0E 7E 5A E0 ED E5 B5 B0 90 00 [20:27:29]wFMCommunicate OK [20:27:29]SAM_PROTO_SignData done [20:27:29]FM_MakeSignedData done [20:27:29]CreateOFDProtocolMessage [20:27:29]wFMCommunicate request_size=4 [20:27:29]MH_SAM_APDU [20:27:29]CAPDU: 80 11 00 00 [20:27:29]Write to MH i2c: E2 08 00 DE C7 80 11 00 00 00 00 00 00 1F [20:27:29]Write i2c OK [20:27:29]MH_I2C_Read... [20:27:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:29]Read from MH i2c: E2 [20:27:29]MH_I2C_Read... [20:27:29]Read from MH i2c: E2 17 00 [20:27:29]MH_I2C_Read... [20:27:29]Read from MH i2c: E2 17 00 DE C7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 6C [20:27:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:27:29]wFMCommunicate OK [20:27:29]CreateOFDProtocolMessage done [20:27:29]OFDSenderStorePacket 260925 [20:27:29]StoreOFDPacket docnum=260925 [20:27:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 67 14 07 01 8F F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E3 01 00 00 F4 03 04 00 36 59 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3D FB 03 00 35 04 06 00 85 8A 01 44 6F F6 0E 7E 5A E0 ED E5 B5 B0 [20:27:29]CheckFolder [20:27:29]dirname=/storage/ofd_packets [20:27:29]CheckFolder done [20:27:29]ProducePacketName [20:27:29]name=ofd_packets/00260925 [20:27:29]NVStorageSaveData ofd_packets/00260925 [20:27:29]File name is /storage/ofd_packets/00260925 [20:27:29]Write 301 bytes [20:27:29]NVStorageSaveData done [20:27:29]OFDSenderStorePacket done [20:27:29]KKMCreateOFDPacket done [20:27:29]NVStorageSaveData kkm_last_timestamp [20:27:29]File name is /storage/kkm_last_timestamp [20:27:29]Write 4 bytes [20:27:29]NVStorageSaveData done [20:27:29]ExternCall_PrintAddStr [20:27:29]wPrintStart [20:27:29]Write to MH i2c: 01 00 00 DF C7 A6 [20:27:29]Write i2c OK [20:27:29]MH_I2C_Read... [20:27:29]Read from MH i2c: 01 [20:27:29]MH_I2C_Read... [20:27:29]Read from MH i2c: 01 07 00 [20:27:29]MH_I2C_Read... [20:27:29]Read from MH i2c: 01 07 00 DF C7 00 00 00 00 00 FF 0F BB [20:27:29]RasterBufferAndPrint [20:27:29]line Счет N : (1)1036479 [20:27:29]line ИНН: 02508201610067 [20:27:29]line Контрольно-Кассовый Чек [20:27:29]line ПРОДАЖА [20:27:29]line ТРК (МРК, ГНК) : 22 [20:27:29]line Товар: 2710124130 [20:27:29]line Аи-92-К-5 [20:27:29]line 7.380 * 67.80 [20:27:29]line = 500.36 [20:27:29]line НДС 12% НСП 1% [20:27:29]line > о реализуемом товаре [20:27:29]line ОКРУГЛЕНИЕ: -0.36 [20:27:29]line ИТОГО: 500.00 [20:27:29]line Внесено: 500.00 [20:27:29]line СДАЧА: 0.00 [20:27:29]line НСП 1% : 4.43 [20:27:29]line НДС 12% : 53.14 [20:27:29]line Наличными: 500.00 [20:27:29]line Безнал.: 0.00 [20:27:29]line Место: АЗС № 94 "Партнер Нефть" [20:27:29]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:27:29]line СНО: Общий режим [20:27:29]line Чек 483 18.08.2024 20:27 [20:27:29]line Смена: 449 ФФД: 1.0 [20:27:29]line ЗНМ: 0300000099 [20:27:29]line РНМ: 0000000000091865 [20:27:29]line Версия ККМ: 001 [20:27:29]line ФМ: 0000000000871820 [20:27:29]line ФД: 260925 [20:27:29]line ФПД: 146827773243382 [20:27:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T202734&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260925&fm=146827773243382&tin=02508201610067®Number=0000000000091865&sum=50000 [20:27:29]OFD Sender: Processing packet 260925 [packets to send 192, broken 191] [20:27:29]ProducePacketName [20:27:29]name=ofd_packets/00260925 [20:27:29]OFD Sender: To server: pG, [20:27:29]CommunicateWithHost lk.salyk.kg:30040 [20:27:29]ConnectInit lk.salyk.kg [20:27:29]written 0, free lines is 4095 [20:27:29]Connected sock=10 [20:27: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 30 0F 01 00 00 67 14 07 01 8F F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E3 01 00 00 F4 03 04 00 36 59 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3D FB 03 00 35 04 06 00 85 8A 01 44 6F F6 0E 7E 5A E0 ED E5 B5 B0 [20:27: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 30 4F 00 00 00 6A 3D 47 00 A5 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 3D FB 03 00 F4 03 04 00 8A 02 C2 66 B6 04 01 00 00 78 0D 9E C8 15 CE EE F9 [20:27:30]CommunicateWithHost err = 0 [20:27:30]CheckOFDResponse [20:27:30]1017 (14) - 77093643461234 [20:27:30]1041 (16) - 0000000000871820 [20:27:30]1040 (4) - 260925 [20:27:30]1012 (4) - 18.08.2024 14:17 [20:27:30]1206 (1) - 0 [20:27:30]OFD Sender: Remove packet 260925 [20:27:30]ProducePacketName [20:27:30]name=ofd_packets/00260925 [20:27:30]NVStorageDeleteData [20:27:30]Write to MH i2c: 01 00 00 0A C8 D2 [20:27:30]Write i2c OK [20:27:30]MH_I2C_Read... [20:27:30]Read from MH i2c: 01 [20:27:30]MH_I2C_Read... [20:27:30]Read from MH i2c: 01 07 00 [20:27:30]MH_I2C_Read... [20:27:30]Read from MH i2c: 01 07 00 0A C8 00 00 00 00 00 73 0C 58 [20:27:30]RasterBufferAndPrint [20:27:30]line [20:27:30]line [20:27:30]line [20:27:30]line [20:27:30]line [20:27:30]written 0, free lines is 3190 [20:27:30]MH_Cut [20:27:30]Write to MH i2c: D1 01 00 11 C8 01 AB [20:27:30]Write i2c OK [20:27:30]MH_I2C_Read... [20:27:30]Read from MH i2c: D1 [20:27:30]MH_I2C_Read... [20:27:30]Read from MH i2c: D1 01 00 [20:27:30]MH_I2C_Read... [20:27:30]Read from MH i2c: D1 01 00 11 C8 00 AA [20:27:30]Write to MH i2c: 01 00 00 12 C8 DA [20:27:30]Write i2c OK [20:27:30]MH_I2C_Read... [20:27:30]OFD Sender: No OFD packet to send [20:27:31]*** Cut start [20:27:31]*** Purtial cut [20:27:31]*** Stage 1: CUTSNS_PIN = 1 [20:27:33]Read from MH i2c: 01 [20:27:33]MH_I2C_Read... [20:27:33]*** Stop cut motor [20:27:33]*** Cut end [20:27:33]Read from MH i2c: 01 07 00 [20:27:33]MH_I2C_Read... [20:27:33]Read from MH i2c: 01 07 00 12 C8 00 00 00 00 00 FF 0F EF [20:27:33]process_action close_receipt done [20:27:33]requested_data is exist [20:27:33]produce_requested_data [20:27:33]requested_item fm.sn is exist - process it [20:27:33]wFMCommunicate request_size=4 [20:27:33]MH_SAM_APDU [20:27:33]CAPDU: 80 11 00 00 [20:27:33]Write to MH i2c: E2 08 00 13 C8 80 11 00 00 00 00 00 00 55 [20:27:33]Write i2c OK [20:27:33]MH_I2C_Read... [20:27:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:33]Read from MH i2c: E2 [20:27:33]MH_I2C_Read... [20:27:33]Read from MH i2c: E2 17 00 [20:27:33]MH_I2C_Read... [20:27:33]Read from MH i2c: E2 17 00 13 C8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A2 [20:27:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:27:33]wFMCommunicate OK [20:27:33]requested_item fd.num is exist - process it [20:27:33]SAM_PROTO_GetFieldsCounters [20:27:33]wFMCommunicate request_size=4 [20:27:33]MH_SAM_APDU [20:27:33]CAPDU: 80 13 00 00 [20:27:33]Write to MH i2c: E2 08 00 14 C8 80 13 00 00 00 00 00 00 58 [20:27:33]Write i2c OK [20:27:33]MH_I2C_Read... [20:27:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:27:33]Read from MH i2c: E2 [20:27:33]MH_I2C_Read... [20:27:33]Read from MH i2c: E2 62 00 [20:27:33]MH_I2C_Read... [20:27:33]Read from MH i2c: E2 62 00 14 C8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 3D FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E3 01 00 00 5E 04 04 00 E3 01 00 00 57 04 04 00 E4 01 00 00 19 04 04 00 00 00 00 00 90 00 20 [20:27: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 3D FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E3 01 00 00 5E 04 04 00 E3 01 00 00 57 04 04 00 E4 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:27:33]wFMCommunicate OK [20:27:33]SAM_PROTO_GetFieldsCounters done [20:27:33]requested_item shift.num is exist - process it [20:27:33]requested_item shift.opened is exist - process it [20:27:33]req_shift_opened [20:27:33]FM_GetShiftState [20:27:33]SAM_PROTO_GetShiftState [20:27:33]wFMCommunicate request_size=4 [20:27:33]MH_SAM_APDU [20:27:33]CAPDU: 80 13 01 00 [20:27:33]Write to MH i2c: E2 08 00 15 C8 80 13 01 00 00 00 00 00 5A [20:27:33]Write i2c OK [20:27:33]MH_I2C_Read... [20:27:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:33]Read from MH i2c: E2 [20:27:33]MH_I2C_Read... [20:27:33]Read from MH i2c: E2 0E 00 [20:27:33]MH_I2C_Read... [20:27:33]Read from MH i2c: E2 0E 00 15 C8 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 97 [20:27:33]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:27:33]wFMCommunicate OK [20:27:33]SAM_PROTO_GetShiftState done [20:27:33]FM_GetShiftState done [20:27:33]req_shift_opened done [20:27:33]requested_item shift.open_date is exist - process it [20:27:33]req_shift_open_date [20:27:33]req_shift_open_date done [20:27:33]produce_requested_data done [20:27:33]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260925,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:27:33]process_action_free close_receipt [20:27:33]json_value_free [20:27:33]json_value_free done [20:27:33]process_json_proto returns [20:27:33]Send response to host [20:27:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260925,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:27:33]free response buf [20:27:33]execute_script done [20:27:33]execute_script returns [20:27:33]free content buf [20:27:33]Sock 7.Close socket [20:27:33]Sock 7.Thread stoped [20:27:35]OFD Sender: No OFD packet to send [20:27:40]accept exits with 9 [20:27:40]New connection [20:27:40]New thread 3066473828 created [20:27:40]Thread 3066617188 joined [20:27:40]Waiting for new connection... [20:27:40] Sock 9.Parse request [20:27:40]Sock 9.Check first char [20:27:40]Sock 9.First char is OK [20:27:40]request: POST /json_proto HTTP/1.0 [20:27:40]Method: POST [20:27:40]URL: /json_proto [20:27:40]Method is POST - this is cgi request [20:27:40]url: /json_proto [20:27:40]query_string will be loaded in cgi processing [20:27:40]execute_cgi json_proto POST (null) [20:27:40]execute_cgi path=json_proto method=POST [20:27:40]POST find Content-Length [20:27:40]Host: 172.17.55.133:8080 [20:27:40]Content-Length: 804 [20:27:40]Content-Type: application/json [20:27:40] [20:27:40]POST finish read [20:27:40]Found Content-Length = 804 [20:27:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:40]execute_script... [20:27: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)1036478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:40]POST & json_proto [20:27:40]process_json_proto [20:27:40]json parsed OK: [20:27:40]protocol is kg_v1.0 [20:27:40]action value=close_receipt [20:27:40]process_action close_receipt [20:27:40]cmd_close_receipt [20:27:40]MH_GetDate [20:27:40]Write to MH i2c: F0 00 00 16 C8 CD [20:27:40]Write i2c OK [20:27:40]MH_I2C_Read... [20:27:40]Read from MH i2c: F0 [20:27:40]MH_I2C_Read... [20:27:40]Read from MH i2c: F0 09 00 [20:27:40]MH_I2C_Read... [20:27:40]Read from MH i2c: F0 09 00 16 C8 00 43 59 C2 66 34 48 D8 65 53 [20:27:40]GetLastDocTimeStamp 1724012854 [20:27:40]current date 1724012867 [20:27:40]FM_GetShiftState [20:27:40]SAM_PROTO_GetShiftState [20:27:40]wFMCommunicate request_size=4 [20:27:40]MH_SAM_APDU [20:27:40]CAPDU: 80 13 01 00 [20:27:40]Write to MH i2c: E2 08 00 17 C8 80 13 01 00 00 00 00 00 5C [20:27:40]Write i2c OK [20:27:40]MH_I2C_Read... [20:27:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:40]Read from MH i2c: E2 [20:27:40]MH_I2C_Read... [20:27:40]Read from MH i2c: E2 0E 00 [20:27:40]MH_I2C_Read... [20:27:40]Read from MH i2c: E2 0E 00 17 C8 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 99 [20:27:40]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:27:40]wFMCommunicate OK [20:27:40]SAM_PROTO_GetShiftState done [20:27:40]FM_GetShiftState done [20:27:40]opened in 1723940556 [20:27:40]opened+sec_in_day 1724026956 [20:27:40]quantity*price = 150041 [20:27:40]sum+1 = 150042 [20:27:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.41 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 0.00 Безнал.: 1500.41 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 484 18.08.2024 20:27 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260926 ФПД: 125282536482873 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T202747&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260926&fm=125282536482873&tin=02508201610067®Number=0000000000091865&sum=150041 [20:27:41]StoreToDocumentArchive [20:27:41]shift 449 fd 260926 [20:27:41]save to /storage/0449/doc_00260926 [20:27:41]save last doc name /storage/0449/doc_00260926 to /storage/kkm_last_doc_name [20:27:41]save OK [20:27:41]Clear old archive folders... [20:27:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:27:41]tlvbuf is 005407F0 [20:27:41]SAM_PROTO_ClearQueue [20:27:41]wFMCommunicate request_size=4 [20:27:41]MH_SAM_APDU [20:27:41]CAPDU: 80 09 00 00 [20:27:41]Write to MH i2c: E2 08 00 24 C8 80 09 00 00 00 00 00 00 5E [20:27:41]Write i2c OK [20:27:41]MH_I2C_Read... [20:27:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:27:41]Read from MH i2c: E2 [20:27:41]MH_I2C_Read... [20:27:41]Read from MH i2c: E2 03 00 [20:27:41]MH_I2C_Read... [20:27:41]Read from MH i2c: E2 03 00 24 C8 00 90 00 60 [20:27:41]RAPDU: 90 00 [20:27:41]wFMCommunicate OK [20:27:41]SAM_PROTO_ClearQueue done [20:27:41]KKMCreateOFDPacket [20:27:41]OFDProtocolAddRootSTLVToBuf [20:27:41]FM_MakeSignedData [20:27:41]FM_MakeSignedData [20:27:41]SAM_PROTO_SignData [20:27:41]wFMCommunicate request_size=4 [20:27:41]MH_SAM_APDU [20:27:41]CAPDU: 80 0D 01 02 [20:27:41]Write to MH i2c: E2 08 00 25 C8 80 0D 01 02 00 00 00 00 66 [20:27:41]Write i2c OK [20:27:41]MH_I2C_Read... [20:27:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:27:41]Read from MH i2c: E2 [20:27:41]MH_I2C_Read... [20:27:41]Read from MH i2c: E2 03 00 [20:27:41]MH_I2C_Read... [20:27:41]Read from MH i2c: E2 03 00 25 C8 00 90 00 61 [20:27:41]RAPDU: 90 00 [20:27:41]wFMCommunicate OK [20:27:41]wFMCommunicate request_size=255 [20:27:41]MH_SAM_APDU [20: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 01 00 00 F4 03 04 00 43 59 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3E FB 03 00 35 04 06 00 71 [20:27:41]Write to MH i2c: E2 02 01 26 C8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 01 00 00 F4 03 04 00 43 59 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3E FB 03 00 35 04 06 00 71 00 00 C4 [20:27:41]Write i2c OK [20:27:41]MH_I2C_Read... [20:27:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:41]Read from MH i2c: E2 [20:27:41]MH_I2C_Read... [20:27:41]Read from MH i2c: E2 03 00 [20:27:41]MH_I2C_Read... [20:27:41]Read from MH i2c: E2 03 00 26 C8 00 90 00 62 [20:27:41]RAPDU: 90 00 [20:27:41]wFMCommunicate OK [20:27:41]wFMCommunicate request_size=10 [20:27:41]MH_SAM_APDU [20:27:41]CAPDU: 80 0D 02 02 05 F1 9D 15 68 39 [20:27:41]Write to MH i2c: E2 0D 00 27 C8 80 0D 02 02 05 00 F1 9D 15 68 39 00 00 B7 [20:27:41]Write i2c OK [20:27:41]MH_I2C_Read... [20:27:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:41]Read from MH i2c: E2 [20:27:41]MH_I2C_Read... [20:27:41]Read from MH i2c: E2 03 00 [20:27:41]MH_I2C_Read... [20:27:41]Read from MH i2c: E2 03 00 27 C8 00 90 00 63 [20:27:41]RAPDU: 90 00 [20:27:41]wFMCommunicate OK [20:27:41]wFMCommunicate request_size=4 [20:27:41]MH_SAM_APDU [20:27:41]CAPDU: 80 0D 03 02 [20:27:41]Write to MH i2c: E2 08 00 28 C8 80 0D 03 02 00 00 00 00 6B [20:27:41]Write i2c OK [20:27:41]MH_I2C_Read... [20:27:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:27:41]Read from MH i2c: E2 [20:27:41]MH_I2C_Read... [20:27:41]Read from MH i2c: E2 0B 00 [20:27:41]MH_I2C_Read... [20:27:41]Read from MH i2c: E2 0B 00 28 C8 00 74 17 13 17 75 69 67 24 90 00 8A [20:27:41]RAPDU: 74 17 13 17 75 69 67 24 90 00 [20:27:41]wFMCommunicate OK [20:27:41]SAM_PROTO_SignData done [20:27:41]FM_MakeSignedData done [20:27:41]CreateOFDProtocolMessage [20:27:41]wFMCommunicate request_size=4 [20:27:41]MH_SAM_APDU [20:27:41]CAPDU: 80 11 00 00 [20:27:41]Write to MH i2c: E2 08 00 29 C8 80 11 00 00 00 00 00 00 6B [20:27:41]Write i2c OK [20:27:41]MH_I2C_Read... [20:27:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:41]Read from MH i2c: E2 [20:27:41]MH_I2C_Read... [20:27:41]Read from MH i2c: E2 17 00 [20:27:41]MH_I2C_Read... [20:27:41]Read from MH i2c: E2 17 00 29 C8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B8 [20:27:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:27:41]wFMCommunicate OK [20:27:41]CreateOFDProtocolMessage done [20:27:41]OFDSenderStorePacket 260926 [20:27:41]StoreOFDPacket docnum=260926 [20: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 30 0F 01 00 00 FC 9E 07 01 37 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 01 00 00 F4 03 04 00 43 59 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3E FB 03 00 35 04 06 00 71 F1 9D 15 68 39 74 17 13 17 75 69 67 24 [20:27:41]CheckFolder [20:27:41]dirname=/storage/ofd_packets [20:27:41]CheckFolder done [20:27:41]ProducePacketName [20:27:41]name=ofd_packets/00260926 [20:27:41]NVStorageSaveData ofd_packets/00260926 [20:27:41]File name is /storage/ofd_packets/00260926 [20:27:41]Write 301 bytes [20:27:41]NVStorageSaveData done [20:27:41]OFDSenderStorePacket done [20:27:41]KKMCreateOFDPacket done [20:27:41]NVStorageSaveData kkm_last_timestamp [20:27:41]File name is /storage/kkm_last_timestamp [20:27:41]Write 4 bytes [20:27:41]NVStorageSaveData done [20:27:42]ExternCall_PrintAddStr [20:27:42]wPrintStart [20:27:42]Write to MH i2c: 01 00 00 2A C8 F2 [20:27:42]Write i2c OK [20:27:42]MH_I2C_Read... [20:27:42]Read from MH i2c: 01 [20:27:42]MH_I2C_Read... [20:27:42]Read from MH i2c: 01 07 00 [20:27:42]MH_I2C_Read... [20:27:42]Read from MH i2c: 01 07 00 2A C8 00 00 00 00 00 FF 0F 07 [20:27:42]RasterBufferAndPrint [20:27:42]line Счет N : (1)1036478 [20:27:42]line ИНН: 02508201610067 [20:27:42]line Контрольно-Кассовый Чек [20:27:42]line ПРОДАЖА [20:27:42]line ТРК (МРК, ГНК) : 42 [20:27:42]line Товар: 2710124130 [20:27:42]line Аи-92-К-5 [20:27:42]line 22.130 * 67.80 [20:27:42]line = 1500.41 [20:27:42]line НДС 12% НСП 1% [20:27:42]line > о реализуемом товаре [20:27:42]line ИТОГО: 1500.41 [20:27:42]line НСП 1% : 13.28 [20:27:42]line НДС 12% : 159.34 [20:27:42]line Наличными: 0.00 [20:27:42]line Безнал.: 1500.41 [20:27:42]line Место: АЗС № 94 "Партнер Нефть" [20:27:42]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:27:42]line СНО: Общий режим [20:27:42]line Чек 484 18.08.2024 20:27 [20:27:42]line Смена: 449 ФФД: 1.0 [20:27:42]line ЗНМ: 0300000099 [20:27:42]line РНМ: 0000000000091865 [20:27:42]line Версия ККМ: 001 [20:27:42]line Платежная система: O! деньги [20:27:42]line ФМ: 0000000000871820 [20:27:42]line ФД: 260926 [20:27:42]line ФПД: 125282536482873 [20:27:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T202747&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260926&fm=125282536482873&tin=02508201610067®Number=0000000000091865&sum=150041 [20:27:42]written 0, free lines is 4095 [20:27:42]OFD Sender: Processing packet 260926 [packets to send 192, broken 191] [20:27:42]ProducePacketName [20:27:42]name=ofd_packets/00260926 [20:27:42]OFD Sender: To server: pG, [20:27:42]CommunicateWithHost lk.salyk.kg:30040 [20:27:42]ConnectInit lk.salyk.kg [20:27:42]Connected sock=10 [20: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 30 0F 01 00 00 FC 9E 07 01 37 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 01 00 00 F4 03 04 00 43 59 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3E FB 03 00 35 04 06 00 71 F1 9D 15 68 39 74 17 13 17 75 69 67 24 [20: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 30 4F 00 00 00 9C 2A 47 00 57 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3E FB 03 00 F4 03 04 00 96 02 C2 66 B6 04 01 00 00 B2 B8 DB F1 28 75 08 A3 [20:27:42]CommunicateWithHost err = 0 [20:27:42]CheckOFDResponse [20:27:42]1017 (14) - 77093643461234 [20:27:42]1041 (16) - 0000000000871820 [20:27:42]1040 (4) - 260926 [20:27:42]1012 (4) - 18.08.2024 14:17 [20:27:42]1206 (1) - 0 [20:27:42]OFD Sender: Remove packet 260926 [20:27:42]ProducePacketName [20:27:42]name=ofd_packets/00260926 [20:27:42]NVStorageDeleteData [20:27:42]Write to MH i2c: 01 00 00 54 C8 1C [20:27:42]Write i2c OK [20:27:42]MH_I2C_Read... [20:27:42]Read from MH i2c: 01 [20:27:42]MH_I2C_Read... [20:27:42]Read from MH i2c: 01 07 00 [20:27:42]MH_I2C_Read... [20:27:42]Read from MH i2c: 01 07 00 54 C8 00 00 00 00 00 8B 0C BA [20:27:42]RasterBufferAndPrint [20:27:42]line [20:27:42]line [20:27:42]line [20:27:42]line [20:27:42]line [20:27:42]written 0, free lines is 3215 [20:27:42]MH_Cut [20:27:42]Write to MH i2c: D1 01 00 5B C8 01 F5 [20:27:42]Write i2c OK [20:27:42]MH_I2C_Read... [20:27:42]Read from MH i2c: D1 [20:27:42]MH_I2C_Read... [20:27:42]Read from MH i2c: D1 01 00 [20:27:42]MH_I2C_Read... [20:27:42]Read from MH i2c: D1 01 00 5B C8 00 F4 [20:27:42]Write to MH i2c: 01 00 00 5C C8 24 [20:27:42]Write i2c OK [20:27:42]MH_I2C_Read... [20:27:42]OFD Sender: No OFD packet to send [20:27:43]*** Cut start [20:27:43]*** Purtial cut [20:27:43]*** Stage 1: CUTSNS_PIN = 1 [20:27:45]Read from MH i2c: 01 [20:27:45]MH_I2C_Read... [20:27:45]*** Stop cut motor [20:27:45]*** Cut end [20:27:45]Read from MH i2c: 01 07 00 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: 01 07 00 5C C8 00 00 00 00 00 FF 0F 39 [20:27:45]process_action close_receipt done [20:27:45]requested_data is exist [20:27:45]produce_requested_data [20:27:45]requested_item fm.sn is exist - process it [20:27:45]wFMCommunicate request_size=4 [20:27:45]MH_SAM_APDU [20:27:45]CAPDU: 80 11 00 00 [20:27:45]Write to MH i2c: E2 08 00 5D C8 80 11 00 00 00 00 00 00 9F [20:27:45]Write i2c OK [20:27:45]MH_I2C_Read... [20:27:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:45]Read from MH i2c: E2 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: E2 17 00 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: E2 17 00 5D C8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 EC [20:27:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:27:45]wFMCommunicate OK [20:27:45]requested_item fd.num is exist - process it [20:27:45]SAM_PROTO_GetFieldsCounters [20:27:45]wFMCommunicate request_size=4 [20:27:45]MH_SAM_APDU [20:27:45]CAPDU: 80 13 00 00 [20:27:45]Write to MH i2c: E2 08 00 5E C8 80 13 00 00 00 00 00 00 A2 [20:27:45]Write i2c OK [20:27:45]MH_I2C_Read... [20:27:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:27:45]Read from MH i2c: E2 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: E2 62 00 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: E2 62 00 5E C8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 3E FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E4 01 00 00 5E 04 04 00 E4 01 00 00 57 04 04 00 E5 01 00 00 19 04 04 00 00 00 00 00 90 00 6E [20:27: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 3E FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E4 01 00 00 5E 04 04 00 E4 01 00 00 57 04 04 00 E5 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:27:45]wFMCommunicate OK [20:27:45]SAM_PROTO_GetFieldsCounters done [20:27:45]requested_item shift.num is exist - process it [20:27:45]requested_item shift.opened is exist - process it [20:27:45]req_shift_opened [20:27:45]FM_GetShiftState [20:27:45]SAM_PROTO_GetShiftState [20:27:45]wFMCommunicate request_size=4 [20:27:45]MH_SAM_APDU [20:27:45]CAPDU: 80 13 01 00 [20:27:45]Write to MH i2c: E2 08 00 5F C8 80 13 01 00 00 00 00 00 A4 [20:27:45]Write i2c OK [20:27:45]MH_I2C_Read... [20:27:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:45]Read from MH i2c: E2 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: E2 0E 00 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: E2 0E 00 5F C8 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E1 [20:27:45]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:27:45]wFMCommunicate OK [20:27:45]SAM_PROTO_GetShiftState done [20:27:45]FM_GetShiftState done [20:27:45]req_shift_opened done [20:27:45]requested_item shift.open_date is exist - process it [20:27:45]req_shift_open_date [20:27:45]req_shift_open_date done [20:27:45]produce_requested_data done [20:27:45]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260926,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:27:45]process_action_free close_receipt [20:27:45]json_value_free [20:27:45]json_value_free done [20:27:45]process_json_proto returns [20:27:45]Send response to host [20:27:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260926,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:27:45]free response buf [20:27:45]execute_script done [20:27:45]execute_script returns [20:27:45]free content buf [20:27:45]Sock 9.Close socket [20:27:45]Sock 9.Thread stoped [20:27:47]OFD Sender: No OFD packet to send [20:27:52]OFD Sender: No OFD packet to send [20:27:57]OFD Sender: No OFD packet to send [20:28:02]OFD Sender: No OFD packet to send [20:28:07]OFD Sender: No OFD packet to send [20:28:12]OFD Sender: No OFD packet to send [20:28:17]OFD Sender: No OFD packet to send [20:28:22]OFD Sender: No OFD packet to send [20:28:27]OFD Sender: No OFD packet to send [20:28:32]OFD Sender: No OFD packet to send [20:28:37]accept exits with 7 [20:28:37]New connection [20:28:37]New thread 3066617188 created [20:28:37]Thread 3066473828 joined [20:28:37]Waiting for new connection... [20:28:37] Sock 7.Parse request [20:28:37]Sock 7.Check first char [20:28:37]Sock 7.First char is OK [20:28:37]request: POST /json_proto HTTP/1.0 [20:28:37]Method: POST [20:28:37]URL: /json_proto [20:28:37]Method is POST - this is cgi request [20:28:37]url: /json_proto [20:28:37]query_string will be loaded in cgi processing [20:28:37]execute_cgi json_proto POST (null) [20:28:37]execute_cgi path=json_proto method=POST [20:28:37]POST find Content-Length [20:28:37]Host: 172.17.55.133:8080 [20:28:37]Content-Length: 678 [20:28:37]Content-Type: application/json [20:28:37] [20:28:37]POST finish read [20:28:37]Found Content-Length = 678 [20:28:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:37]execute_script... [20:28: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)1036480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:37]POST & json_proto [20:28:37]process_json_proto [20:28:37]json parsed OK: [20:28:37]protocol is kg_v1.0 [20:28:37]action value=close_receipt [20:28:37]process_action close_receipt [20:28:37]cmd_close_receipt [20:28:37]MH_GetDate [20:28:37]Write to MH i2c: F0 00 00 60 C8 17 [20:28:37]Write i2c OK [20:28:37]MH_I2C_Read... [20:28:37]Read from MH i2c: F0 [20:28:37]MH_I2C_Read... [20:28:37]Read from MH i2c: F0 09 00 [20:28:37]MH_I2C_Read... [20:28:37]Read from MH i2c: F0 09 00 60 C8 00 7C 59 C2 66 34 48 D8 65 D6 [20:28:37]GetLastDocTimeStamp 1724012867 [20:28:37]current date 1724012924 [20:28:37]FM_GetShiftState [20:28:37]SAM_PROTO_GetShiftState [20:28:37]wFMCommunicate request_size=4 [20:28:37]MH_SAM_APDU [20:28:37]CAPDU: 80 13 01 00 [20:28:37]Write to MH i2c: E2 08 00 61 C8 80 13 01 00 00 00 00 00 A6 [20:28:37]Write i2c OK [20:28:37]MH_I2C_Read... [20:28:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:37]Read from MH i2c: E2 [20:28:37]MH_I2C_Read... [20:28:37]Read from MH i2c: E2 0E 00 [20:28:37]MH_I2C_Read... [20:28:37]Read from MH i2c: E2 0E 00 61 C8 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E3 [20:28:37]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:28:37]wFMCommunicate OK [20:28:37]SAM_PROTO_GetShiftState done [20:28:37]FM_GetShiftState done [20:28:37]opened in 1723940556 [20:28:37]opened+sec_in_day 1724026956 [20:28:37]quantity*price = 50036 [20:28:37]sum+1 = 50037 [20:28:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 485 18.08.2024 20:28 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260927 ФПД: 81429630167392 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T202844&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260927&fm=81429630167392&tin=02508201610067®Number=0000000000091865&sum=50000 [20:28:38]StoreToDocumentArchive [20:28:38]shift 449 fd 260927 [20:28:38]save to /storage/0449/doc_00260927 [20:28:38]save last doc name /storage/0449/doc_00260927 to /storage/kkm_last_doc_name [20:28:38]save OK [20:28:38]Clear old archive folders... [20:28:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:28:39]tlvbuf is 0036F4C0 [20:28:39]SAM_PROTO_ClearQueue [20:28:39]wFMCommunicate request_size=4 [20:28:39]MH_SAM_APDU [20:28:39]CAPDU: 80 09 00 00 [20:28:39]Write to MH i2c: E2 08 00 6E C8 80 09 00 00 00 00 00 00 A8 [20:28:39]Write i2c OK [20:28:39]MH_I2C_Read... [20:28:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:28:39]Read from MH i2c: E2 [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: E2 03 00 [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: E2 03 00 6E C8 00 90 00 AA [20:28:39]RAPDU: 90 00 [20:28:39]wFMCommunicate OK [20:28:39]SAM_PROTO_ClearQueue done [20:28:39]KKMCreateOFDPacket [20:28:39]OFDProtocolAddRootSTLVToBuf [20:28:39]FM_MakeSignedData [20:28:39]FM_MakeSignedData [20:28:39]SAM_PROTO_SignData [20:28:39]wFMCommunicate request_size=4 [20:28:39]MH_SAM_APDU [20:28:39]CAPDU: 80 0D 01 02 [20:28:39]Write to MH i2c: E2 08 00 6F C8 80 0D 01 02 00 00 00 00 B0 [20:28:39]Write i2c OK [20:28:39]MH_I2C_Read... [20:28:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:28:39]Read from MH i2c: E2 [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: E2 03 00 [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: E2 03 00 6F C8 00 90 00 AB [20:28:39]RAPDU: 90 00 [20:28:39]wFMCommunicate OK [20:28:39]wFMCommunicate request_size=255 [20:28:39]MH_SAM_APDU [20:28:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E5 01 00 00 F4 03 04 00 7C 59 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3F FB 03 00 35 04 06 00 4A [20:28:39]Write to MH i2c: E2 02 01 70 C8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E5 01 00 00 F4 03 04 00 7C 59 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3F FB 03 00 35 04 06 00 4A 00 00 59 [20:28:39]Write i2c OK [20:28:39]MH_I2C_Read... [20:28:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:39]Read from MH i2c: E2 [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: E2 03 00 [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: E2 03 00 70 C8 00 90 00 AC [20:28:39]RAPDU: 90 00 [20:28:39]wFMCommunicate OK [20:28:39]wFMCommunicate request_size=10 [20:28:39]MH_SAM_APDU [20:28:39]CAPDU: 80 0D 02 02 05 0F 50 2E 29 60 [20:28:39]Write to MH i2c: E2 0D 00 71 C8 80 0D 02 02 05 00 0F 50 2E 29 60 00 00 D3 [20:28:39]Write i2c OK [20:28:39]MH_I2C_Read... [20:28:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:39]Read from MH i2c: E2 [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: E2 03 00 [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: E2 03 00 71 C8 00 90 00 AD [20:28:39]RAPDU: 90 00 [20:28:39]wFMCommunicate OK [20:28:39]wFMCommunicate request_size=4 [20:28:39]MH_SAM_APDU [20:28:39]CAPDU: 80 0D 03 02 [20:28:39]Write to MH i2c: E2 08 00 72 C8 80 0D 03 02 00 00 00 00 B5 [20:28:39]Write i2c OK [20:28:39]MH_I2C_Read... [20:28:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:28:39]Read from MH i2c: E2 [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: E2 0B 00 [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: E2 0B 00 72 C8 00 ED 5F 5A 18 95 68 19 34 90 00 BE [20:28:39]RAPDU: ED 5F 5A 18 95 68 19 34 90 00 [20:28:39]wFMCommunicate OK [20:28:39]SAM_PROTO_SignData done [20:28:39]FM_MakeSignedData done [20:28:39]CreateOFDProtocolMessage [20:28:39]wFMCommunicate request_size=4 [20:28:39]MH_SAM_APDU [20:28:39]CAPDU: 80 11 00 00 [20:28:39]Write to MH i2c: E2 08 00 73 C8 80 11 00 00 00 00 00 00 B5 [20:28:39]Write i2c OK [20:28:39]MH_I2C_Read... [20:28:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:39]Read from MH i2c: E2 [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: E2 17 00 [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: E2 17 00 73 C8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 02 [20:28:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:28:39]wFMCommunicate OK [20:28:39]CreateOFDProtocolMessage done [20:28:39]OFDSenderStorePacket 260927 [20:28:39]StoreOFDPacket docnum=260927 [20:28:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 19 24 07 01 59 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E5 01 00 00 F4 03 04 00 7C 59 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3F FB 03 00 35 04 06 00 4A 0F 50 2E 29 60 ED 5F 5A 18 95 68 19 34 [20:28:39]CheckFolder [20:28:39]dirname=/storage/ofd_packets [20:28:39]CheckFolder done [20:28:39]ProducePacketName [20:28:39]name=ofd_packets/00260927 [20:28:39]NVStorageSaveData ofd_packets/00260927 [20:28:39]File name is /storage/ofd_packets/00260927 [20:28:39]Write 301 bytes [20:28:39]NVStorageSaveData done [20:28:39]OFDSenderStorePacket done [20:28:39]KKMCreateOFDPacket done [20:28:39]NVStorageSaveData kkm_last_timestamp [20:28:39]File name is /storage/kkm_last_timestamp [20:28:39]Write 4 bytes [20:28:39]NVStorageSaveData done [20:28:39]ExternCall_PrintAddStr [20:28:39]wPrintStart [20:28:39]Write to MH i2c: 01 00 00 74 C8 3C [20:28:39]Write i2c OK [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: 01 [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: 01 07 00 [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: 01 07 00 74 C8 00 00 00 00 00 FF 0F 51 [20:28:39]RasterBufferAndPrint [20:28:39]line Счет N : (1)1036480 [20:28:39]line ИНН: 02508201610067 [20:28:39]line Контрольно-Кассовый Чек [20:28:39]line ПРОДАЖА [20:28:39]line ТРК (МРК, ГНК) : 22 [20:28:39]line Товар: 2710124130 [20:28:39]line Аи-92-К-5 [20:28:39]line 7.380 * 67.80 [20:28:39]line = 500.36 [20:28:39]line НДС 12% НСП 1% [20:28:39]line > о реализуемом товаре [20:28:39]line ОКРУГЛЕНИЕ: -0.36 [20:28:39]line ИТОГО: 500.00 [20:28:39]line Внесено: 500.00 [20:28:39]line СДАЧА: 0.00 [20:28:39]line НСП 1% : 4.43 [20:28:39]line НДС 12% : 53.14 [20:28:39]line Наличными: 500.00 [20:28:39]line Безнал.: 0.00 [20:28:39]line Место: АЗС № 94 "Партнер Нефть" [20:28:39]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:28:39]line СНО: Общий режим [20:28:39]line Чек 485 18.08.2024 20:28 [20:28:39]line Смена: 449 ФФД: 1.0 [20:28:39]line ЗНМ: 0300000099 [20:28:39]line РНМ: 0000000000091865 [20:28:39]line Версия ККМ: 001 [20:28:39]line ФМ: 0000000000871820 [20:28:39]line ФД: 260927 [20:28:39]line ФПД: 81429630167392 [20:28:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T202844&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260927&fm=81429630167392&tin=02508201610067®Number=0000000000091865&sum=50000 [20:28:39]OFD Sender: Processing packet 260927 [packets to send 192, broken 191] [20:28:39]ProducePacketName [20:28:39]name=ofd_packets/00260927 [20:28:39]OFD Sender: To server: pG, [20:28:39]CommunicateWithHost lk.salyk.kg:30040 [20:28:39]ConnectInit lk.salyk.kg [20:28:39]written 0, free lines is 4095 [20:28:39]Connected sock=10 [20:28:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 19 24 07 01 59 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E5 01 00 00 F4 03 04 00 7C 59 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 3F FB 03 00 35 04 06 00 4A 0F 50 2E 29 60 ED 5F 5A 18 95 68 19 34 [20:28: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 30 4F 00 00 00 87 8F 47 00 4D 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 3F FB 03 00 F4 03 04 00 D0 02 C2 66 B6 04 01 00 00 3F 5C 09 1D C4 48 C7 7D [20:28:40]CommunicateWithHost err = 0 [20:28:40]CheckOFDResponse [20:28:40]1017 (14) - 77093643461234 [20:28:40]1041 (16) - 0000000000871820 [20:28:40]1040 (4) - 260927 [20:28:40]1012 (4) - 18.08.2024 14:18 [20:28:40]1206 (1) - 0 [20:28:40]OFD Sender: Remove packet 260927 [20:28:40]ProducePacketName [20:28:40]name=ofd_packets/00260927 [20:28:40]NVStorageDeleteData [20:28:40]Write to MH i2c: 01 00 00 9F C8 67 [20:28:40]Write i2c OK [20:28:40]MH_I2C_Read... [20:28:40]Read from MH i2c: 01 [20:28:40]MH_I2C_Read... [20:28:40]Read from MH i2c: 01 07 00 [20:28:40]MH_I2C_Read... [20:28:40]Read from MH i2c: 01 07 00 9F C8 00 00 00 00 00 79 0C F3 [20:28:40]RasterBufferAndPrint [20:28:40]line [20:28:40]line [20:28:40]line [20:28:40]line [20:28:40]line [20:28:40]written 0, free lines is 3196 [20:28:40]MH_Cut [20:28:40]Write to MH i2c: D1 01 00 A6 C8 01 40 [20:28:40]Write i2c OK [20:28:40]MH_I2C_Read... [20:28:40]Read from MH i2c: D1 [20:28:40]MH_I2C_Read... [20:28:40]Read from MH i2c: D1 01 00 [20:28:40]MH_I2C_Read... [20:28:40]Read from MH i2c: D1 01 00 A6 C8 00 3F [20:28:40]Write to MH i2c: 01 00 00 A7 C8 6F [20:28:40]Write i2c OK [20:28:40]MH_I2C_Read... [20:28:40]OFD Sender: No OFD packet to send [20:28:41]*** Cut start [20:28:41]*** Purtial cut [20:28:41]*** Stage 1: CUTSNS_PIN = 1 [20:28:43]Read from MH i2c: 01 [20:28:43]MH_I2C_Read... [20:28:43]*** Stop cut motor [20:28:43]*** Cut end [20:28:43]Read from MH i2c: 01 07 00 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: 01 07 00 A7 C8 00 00 00 00 00 FF 0F 84 [20:28:43]process_action close_receipt done [20:28:43]requested_data is exist [20:28:43]produce_requested_data [20:28:43]requested_item fm.sn is exist - process it [20:28:43]wFMCommunicate request_size=4 [20:28:43]MH_SAM_APDU [20:28:43]CAPDU: 80 11 00 00 [20:28:43]Write to MH i2c: E2 08 00 A8 C8 80 11 00 00 00 00 00 00 EA [20:28:43]Write i2c OK [20:28:43]MH_I2C_Read... [20:28:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:43]Read from MH i2c: E2 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: E2 17 00 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: E2 17 00 A8 C8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 37 [20:28:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:28:43]wFMCommunicate OK [20:28:43]requested_item fd.num is exist - process it [20:28:43]SAM_PROTO_GetFieldsCounters [20:28:43]wFMCommunicate request_size=4 [20:28:43]MH_SAM_APDU [20:28:43]CAPDU: 80 13 00 00 [20:28:43]Write to MH i2c: E2 08 00 A9 C8 80 13 00 00 00 00 00 00 ED [20:28:43]Write i2c OK [20:28:43]MH_I2C_Read... [20:28:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:28:43]Read from MH i2c: E2 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: E2 62 00 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: E2 62 00 A9 C8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 3F FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E5 01 00 00 5E 04 04 00 E5 01 00 00 57 04 04 00 E6 01 00 00 19 04 04 00 00 00 00 00 90 00 BD [20:28: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 3F FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E5 01 00 00 5E 04 04 00 E5 01 00 00 57 04 04 00 E6 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:28:43]wFMCommunicate OK [20:28:43]SAM_PROTO_GetFieldsCounters done [20:28:43]requested_item shift.num is exist - process it [20:28:43]requested_item shift.opened is exist - process it [20:28:43]req_shift_opened [20:28:43]FM_GetShiftState [20:28:43]SAM_PROTO_GetShiftState [20:28:43]wFMCommunicate request_size=4 [20:28:43]MH_SAM_APDU [20:28:43]CAPDU: 80 13 01 00 [20:28:43]Write to MH i2c: E2 08 00 AA C8 80 13 01 00 00 00 00 00 EF [20:28:43]Write i2c OK [20:28:43]MH_I2C_Read... [20:28:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:43]Read from MH i2c: E2 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: E2 0E 00 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: E2 0E 00 AA C8 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 2C [20:28:43]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:28:43]wFMCommunicate OK [20:28:43]SAM_PROTO_GetShiftState done [20:28:43]FM_GetShiftState done [20:28:43]req_shift_opened done [20:28:43]requested_item shift.open_date is exist - process it [20:28:43]req_shift_open_date [20:28:43]req_shift_open_date done [20:28:43]produce_requested_data done [20:28:43]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260927,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:28:43]process_action_free close_receipt [20:28:43]json_value_free [20:28:43]json_value_free done [20:28:43]process_json_proto returns [20:28:43]Send response to host [20:28:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260927,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:28:43]free response buf [20:28:43]execute_script done [20:28:43]execute_script returns [20:28:43]free content buf [20:28:43]Sock 7.Close socket [20:28:43]Sock 7.Thread stoped [20:28:45]OFD Sender: No OFD packet to send [20:28:50]OFD Sender: No OFD packet to send [20:28:55]OFD Sender: No OFD packet to send [20:29:00]OFD Sender: No OFD packet to send [20:29:05]OFD Sender: No OFD packet to send [20:29:10]OFD Sender: No OFD packet to send [20:29:15]OFD Sender: No OFD packet to send [20:29:20]OFD Sender: No OFD packet to send [20:29:25]OFD Sender: No OFD packet to send [20:29:30]OFD Sender: No OFD packet to send [20:29:35]OFD Sender: No OFD packet to send [20:29:40]OFD Sender: No OFD packet to send [20:29:45]OFD Sender: No OFD packet to send [20:29:50]OFD Sender: No OFD packet to send [20:29:55]OFD Sender: No OFD packet to send [20:30:00]OFD Sender: No OFD packet to send [20:30:05]OFD Sender: No OFD packet to send [20:30:10]OFD Sender: No OFD packet to send [20:30:15]OFD Sender: No OFD packet to send [20:30:20]OFD Sender: No OFD packet to send [20:30:25]OFD Sender: No OFD packet to send [20:30:30]OFD Sender: No OFD packet to send [20:30:35]OFD Sender: No OFD packet to send [20:30:40]OFD Sender: No OFD packet to send [20:30:45]OFD Sender: No OFD packet to send [20:30:48]accept exits with 9 [20:30:48]New connection [20:30:48]New thread 3066473828 created [20:30:48]Thread 3066617188 joined [20:30:48]Waiting for new connection... [20:30:48] Sock 9.Parse request [20:30:48]Sock 9.Check first char [20:30:48]Sock 9.First char is OK [20:30:48]request: POST /json_proto HTTP/1.0 [20:30:48]Method: POST [20:30:48]URL: /json_proto [20:30:48]Method is POST - this is cgi request [20:30:48]url: /json_proto [20:30:48]query_string will be loaded in cgi processing [20:30:48]execute_cgi json_proto POST (null) [20:30:48]execute_cgi path=json_proto method=POST [20:30:48]POST find Content-Length [20:30:48]Host: 172.17.55.133:8080 [20:30:48]Content-Length: 683 [20:30:48]Content-Type: application/json [20:30:48] [20:30:48]POST finish read [20:30:48]Found Content-Length = 683 [20:30:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:30:48]execute_script... [20:30: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)1036481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:30:48]POST & json_proto [20:30:48]process_json_proto [20:30:48]json parsed OK: [20:30:48]protocol is kg_v1.0 [20:30:48]action value=close_receipt [20:30:48]process_action close_receipt [20:30:48]cmd_close_receipt [20:30:48]MH_GetDate [20:30:48]Write to MH i2c: F0 00 00 AB C8 62 [20:30:48]Write i2c OK [20:30:48]MH_I2C_Read... [20:30:48]Read from MH i2c: F0 [20:30:48]MH_I2C_Read... [20:30:48]Read from MH i2c: F0 09 00 [20:30:48]MH_I2C_Read... [20:30:48]Read from MH i2c: F0 09 00 AB C8 00 FE 59 C2 66 34 48 D8 65 A3 [20:30:48]GetLastDocTimeStamp 1724012924 [20:30:48]current date 1724013054 [20:30:48]FM_GetShiftState [20:30:48]SAM_PROTO_GetShiftState [20:30:48]wFMCommunicate request_size=4 [20:30:48]MH_SAM_APDU [20:30:48]CAPDU: 80 13 01 00 [20:30:48]Write to MH i2c: E2 08 00 AC C8 80 13 01 00 00 00 00 00 F1 [20:30:48]Write i2c OK [20:30:48]MH_I2C_Read... [20:30:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:48]Read from MH i2c: E2 [20:30:48]MH_I2C_Read... [20:30:48]Read from MH i2c: E2 0E 00 [20:30:48]MH_I2C_Read... [20:30:48]Read from MH i2c: E2 0E 00 AC C8 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 2E [20:30:48]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:30:48]wFMCommunicate OK [20:30:48]SAM_PROTO_GetShiftState done [20:30:48]FM_GetShiftState done [20:30:48]opened in 1723940556 [20:30:48]opened+sec_in_day 1724026956 [20:30:48]quantity*price = 100005 [20:30:48]sum+1 = 100006 [20:30:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 486 18.08.2024 20:30 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260928 ФПД: 9260438561527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T203054&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260928&fm=9260438561527&tin=02508201610067®Number=0000000000091865&sum=100000 [20:30:49]StoreToDocumentArchive [20:30:49]shift 449 fd 260928 [20:30:49]save to /storage/0449/doc_00260928 [20:30:49]save last doc name /storage/0449/doc_00260928 to /storage/kkm_last_doc_name [20:30:49]save OK [20:30:49]Clear old archive folders... [20:30:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:30:49]tlvbuf is 00332B20 [20:30:49]SAM_PROTO_ClearQueue [20:30:49]wFMCommunicate request_size=4 [20:30:49]MH_SAM_APDU [20:30:49]CAPDU: 80 09 00 00 [20:30:49]Write to MH i2c: E2 08 00 B9 C8 80 09 00 00 00 00 00 00 F3 [20:30:49]Write i2c OK [20:30:49]MH_I2C_Read... [20:30:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:30:49]Read from MH i2c: E2 [20:30:49]MH_I2C_Read... [20:30:49]Read from MH i2c: E2 03 00 [20:30:49]MH_I2C_Read... [20:30:49]Read from MH i2c: E2 03 00 B9 C8 00 90 00 F5 [20:30:49]RAPDU: 90 00 [20:30:49]wFMCommunicate OK [20:30:49]SAM_PROTO_ClearQueue done [20:30:49]KKMCreateOFDPacket [20:30:49]OFDProtocolAddRootSTLVToBuf [20:30:49]FM_MakeSignedData [20:30:49]FM_MakeSignedData [20:30:49]SAM_PROTO_SignData [20:30:49]wFMCommunicate request_size=4 [20:30:49]MH_SAM_APDU [20:30:49]CAPDU: 80 0D 01 02 [20:30:49]Write to MH i2c: E2 08 00 BA C8 80 0D 01 02 00 00 00 00 FB [20:30:49]Write i2c OK [20:30:49]MH_I2C_Read... [20:30:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:30:49]Read from MH i2c: E2 [20:30:49]MH_I2C_Read... [20:30:49]Read from MH i2c: E2 03 00 [20:30:49]MH_I2C_Read... [20:30:49]Read from MH i2c: E2 03 00 BA C8 00 90 00 F6 [20:30:49]RAPDU: 90 00 [20:30:49]wFMCommunicate OK [20:30:49]wFMCommunicate request_size=255 [20:30:49]MH_SAM_APDU [20:30:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 01 00 00 F4 03 04 00 FE 59 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 40 FB 03 00 35 04 06 00 08 [20:30:49]Write to MH i2c: E2 02 01 BB C8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 01 00 00 F4 03 04 00 FE 59 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 40 FB 03 00 35 04 06 00 08 00 00 75 [20:30:49]Write i2c OK [20:30:49]MH_I2C_Read... [20:30:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:49]Read from MH i2c: E2 [20:30:49]MH_I2C_Read... [20:30:49]Read from MH i2c: E2 03 00 [20:30:49]MH_I2C_Read... [20:30:49]Read from MH i2c: E2 03 00 BB C8 00 90 00 F7 [20:30:49]RAPDU: 90 00 [20:30:49]wFMCommunicate OK [20:30:49]wFMCommunicate request_size=10 [20:30:49]MH_SAM_APDU [20:30:49]CAPDU: 80 0D 02 02 05 6C 1D 26 A2 F7 [20:30:49]Write to MH i2c: E2 0D 00 BC C8 80 0D 02 02 05 00 6C 1D 26 A2 F7 00 00 50 [20:30:49]Write i2c OK [20:30:49]MH_I2C_Read... [20:30:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:49]Read from MH i2c: E2 [20:30:49]MH_I2C_Read... [20:30:49]Read from MH i2c: E2 03 00 [20:30:49]MH_I2C_Read... [20:30:49]Read from MH i2c: E2 03 00 BC C8 00 90 00 F8 [20:30:49]RAPDU: 90 00 [20:30:49]wFMCommunicate OK [20:30:49]wFMCommunicate request_size=4 [20:30:49]MH_SAM_APDU [20:30:49]CAPDU: 80 0D 03 02 [20:30:49]Write to MH i2c: E2 08 00 BD C8 80 0D 03 02 00 00 00 00 00 [20:30:49]Write i2c OK [20:30:49]MH_I2C_Read... [20:30:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:30:49]Read from MH i2c: E2 [20:30:49]MH_I2C_Read... [20:30:49]Read from MH i2c: E2 0B 00 [20:30:49]MH_I2C_Read... [20:30:49]Read from MH i2c: E2 0B 00 BD C8 00 6D F5 25 4C AF CB 6C 4F 90 00 09 [20:30:49]RAPDU: 6D F5 25 4C AF CB 6C 4F 90 00 [20:30:49]wFMCommunicate OK [20:30:49]SAM_PROTO_SignData done [20:30:49]FM_MakeSignedData done [20:30:49]CreateOFDProtocolMessage [20:30:49]wFMCommunicate request_size=4 [20:30:49]MH_SAM_APDU [20:30:49]CAPDU: 80 11 00 00 [20:30:49]Write to MH i2c: E2 08 00 BE C8 80 11 00 00 00 00 00 00 00 [20:30:49]Write i2c OK [20:30:49]MH_I2C_Read... [20:30:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:49]Read from MH i2c: E2 [20:30:49]MH_I2C_Read... [20:30:49]Read from MH i2c: E2 17 00 [20:30:49]MH_I2C_Read... [20:30:49]Read from MH i2c: E2 17 00 BE C8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 4D [20:30:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:30:49]wFMCommunicate OK [20:30:49]CreateOFDProtocolMessage done [20:30:49]OFDSenderStorePacket 260928 [20:30:49]StoreOFDPacket docnum=260928 [20:30:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 6E EE 07 01 5D 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 01 00 00 F4 03 04 00 FE 59 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 40 FB 03 00 35 04 06 00 08 6C 1D 26 A2 F7 6D F5 25 4C AF CB 6C 4F [20:30:49]CheckFolder [20:30:49]dirname=/storage/ofd_packets [20:30:49]CheckFolder done [20:30:49]ProducePacketName [20:30:49]name=ofd_packets/00260928 [20:30:49]NVStorageSaveData ofd_packets/00260928 [20:30:49]File name is /storage/ofd_packets/00260928 [20:30:49]Write 301 bytes [20:30:49]NVStorageSaveData done [20:30:49]OFDSenderStorePacket done [20:30:49]KKMCreateOFDPacket done [20:30:49]NVStorageSaveData kkm_last_timestamp [20:30:49]File name is /storage/kkm_last_timestamp [20:30:49]Write 4 bytes [20:30:49]NVStorageSaveData done [20:30:49]ExternCall_PrintAddStr [20:30:49]wPrintStart [20:30:49]Write to MH i2c: 01 00 00 BF C8 87 [20:30:49]Write i2c OK [20:30:49]MH_I2C_Read... [20:30:49]Read from MH i2c: 01 [20:30:49]MH_I2C_Read... [20:30:49]Read from MH i2c: 01 07 00 [20:30:49]MH_I2C_Read... [20:30:49]Read from MH i2c: 01 07 00 BF C8 00 00 00 00 00 FF 0F 9C [20:30:49]RasterBufferAndPrint [20:30:49]line Счет N : (1)1036481 [20:30:49]line ИНН: 02508201610067 [20:30:49]line Контрольно-Кассовый Чек [20:30:49]line ПРОДАЖА [20:30:49]line ТРК (МРК, ГНК) : 12 [20:30:49]line Товар: 2710124130 [20:30:49]line Аи-92-К-5 [20:30:49]line 14.750 * 67.80 [20:30:49]line = 1000.05 [20:30:49]line НДС 12% НСП 1% [20:30:49]line > о реализуемом товаре [20:30:49]line ОКРУГЛЕНИЕ: -0.05 [20:30:49]line ИТОГО: 1000.00 [20:30:49]line Внесено: 1000.00 [20:30:49]line СДАЧА: 0.00 [20:30:49]line НСП 1% : 8.85 [20:30:49]line НДС 12% : 106.20 [20:30:49]line Наличными: 1000.00 [20:30:49]line Безнал.: 0.00 [20:30:49]line Место: АЗС № 94 "Партнер Нефть" [20:30:49]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:30:49]line СНО: Общий режим [20:30:49]line Чек 486 18.08.2024 20:30 [20:30:49]line Смена: 449 ФФД: 1.0 [20:30:49]line ЗНМ: 0300000099 [20:30:49]line РНМ: 0000000000091865 [20:30:49]line Версия ККМ: 001 [20:30:49]line ФМ: 0000000000871820 [20:30:49]line ФД: 260928 [20:30:50]line ФПД: 9260438561527 [20:30:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T203054&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260928&fm=9260438561527&tin=02508201610067®Number=0000000000091865&sum=100000 [20:30:50]OFD Sender: Processing packet 260928 [packets to send 192, broken 191] [20:30:50]ProducePacketName [20:30:50]name=ofd_packets/00260928 [20:30:50]OFD Sender: To server: pG, [20:30:50]CommunicateWithHost lk.salyk.kg:30040 [20:30:50]ConnectInit lk.salyk.kg [20:30:50]written 0, free lines is 4095 [20:30:50]Connected sock=10 [20:30: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 30 0F 01 00 00 6E EE 07 01 5D 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 01 00 00 F4 03 04 00 FE 59 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 40 FB 03 00 35 04 06 00 08 6C 1D 26 A2 F7 6D F5 25 4C AF CB 6C 4F [20:30: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 30 4F 00 00 00 38 BD 47 00 A1 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 30 10 04 04 00 40 FB 03 00 F4 03 04 00 52 03 C2 66 B6 04 01 00 00 54 3E 7C 48 9D D7 88 A7 [20:30:50]CommunicateWithHost err = 0 [20:30:50]CheckOFDResponse [20:30:50]1017 (14) - 77093643461234 [20:30:50]1041 (16) - 0000000000871820 [20:30:50]1040 (4) - 260928 [20:30:50]1012 (4) - 18.08.2024 14:21 [20:30:50]1206 (1) - 0 [20:30:50]OFD Sender: Remove packet 260928 [20:30:50]ProducePacketName [20:30:50]name=ofd_packets/00260928 [20:30:50]NVStorageDeleteData [20:30:50]Write to MH i2c: 01 00 00 EA C8 B2 [20:30:50]Write i2c OK [20:30:50]MH_I2C_Read... [20:30:50]Read from MH i2c: 01 [20:30:50]MH_I2C_Read... [20:30:50]Read from MH i2c: 01 07 00 [20:30:50]MH_I2C_Read... [20:30:50]Read from MH i2c: 01 07 00 EA C8 00 00 00 00 00 73 0C 38 [20:30:50]RasterBufferAndPrint [20:30:50]line [20:30:50]line [20:30:50]line [20:30:50]line [20:30:50]line [20:30:50]written 0, free lines is 3189 [20:30:50]MH_Cut [20:30:50]Write to MH i2c: D1 01 00 F1 C8 01 8B [20:30:50]Write i2c OK [20:30:50]MH_I2C_Read... [20:30:50]Read from MH i2c: D1 [20:30:50]MH_I2C_Read... [20:30:50]Read from MH i2c: D1 01 00 [20:30:50]MH_I2C_Read... [20:30:50]Read from MH i2c: D1 01 00 F1 C8 00 8A [20:30:50]Write to MH i2c: 01 00 00 F2 C8 BA [20:30:50]Write i2c OK [20:30:50]MH_I2C_Read... [20:30:50]OFD Sender: No OFD packet to send [20:30:51]*** Cut start [20:30:51]*** Purtial cut [20:30:51]*** Stage 1: CUTSNS_PIN = 1 [20:30:53]Read from MH i2c: 01 [20:30:53]MH_I2C_Read... [20:30:53]*** Stop cut motor [20:30:53]*** Cut end [20:30:53]Read from MH i2c: 01 07 00 [20:30:53]MH_I2C_Read... [20:30:53]Read from MH i2c: 01 07 00 F2 C8 00 00 00 00 00 FF 0F CF [20:30:53]process_action close_receipt done [20:30:53]requested_data is exist [20:30:53]produce_requested_data [20:30:53]requested_item fm.sn is exist - process it [20:30:53]wFMCommunicate request_size=4 [20:30:53]MH_SAM_APDU [20:30:53]CAPDU: 80 11 00 00 [20:30:53]Write to MH i2c: E2 08 00 F3 C8 80 11 00 00 00 00 00 00 35 [20:30:53]Write i2c OK [20:30:53]MH_I2C_Read... [20:30:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:53]Read from MH i2c: E2 [20:30:53]MH_I2C_Read... [20:30:53]Read from MH i2c: E2 17 00 [20:30:53]MH_I2C_Read... [20:30:53]Read from MH i2c: E2 17 00 F3 C8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 82 [20:30:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:30:53]wFMCommunicate OK [20:30:53]requested_item fd.num is exist - process it [20:30:53]SAM_PROTO_GetFieldsCounters [20:30:53]wFMCommunicate request_size=4 [20:30:53]MH_SAM_APDU [20:30:53]CAPDU: 80 13 00 00 [20:30:53]Write to MH i2c: E2 08 00 F4 C8 80 13 00 00 00 00 00 00 38 [20:30:53]Write i2c OK [20:30:53]MH_I2C_Read... [20:30:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:30:53]Read from MH i2c: E2 [20:30:53]MH_I2C_Read... [20:30:53]Read from MH i2c: E2 62 00 [20:30:53]MH_I2C_Read... [20:30:53]Read from MH i2c: E2 62 00 F4 C8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 40 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E6 01 00 00 5E 04 04 00 E6 01 00 00 57 04 04 00 E7 01 00 00 19 04 04 00 00 00 00 00 90 00 0C [20:30: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 40 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E6 01 00 00 5E 04 04 00 E6 01 00 00 57 04 04 00 E7 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:30:53]wFMCommunicate OK [20:30:53]SAM_PROTO_GetFieldsCounters done [20:30:53]requested_item shift.num is exist - process it [20:30:53]requested_item shift.opened is exist - process it [20:30:53]req_shift_opened [20:30:53]FM_GetShiftState [20:30:53]SAM_PROTO_GetShiftState [20:30:53]wFMCommunicate request_size=4 [20:30:53]MH_SAM_APDU [20:30:53]CAPDU: 80 13 01 00 [20:30:53]Write to MH i2c: E2 08 00 F5 C8 80 13 01 00 00 00 00 00 3A [20:30:53]Write i2c OK [20:30:53]MH_I2C_Read... [20:30:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:53]Read from MH i2c: E2 [20:30:53]MH_I2C_Read... [20:30:53]Read from MH i2c: E2 0E 00 [20:30:53]MH_I2C_Read... [20:30:53]Read from MH i2c: E2 0E 00 F5 C8 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 77 [20:30:53]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:30:53]wFMCommunicate OK [20:30:53]SAM_PROTO_GetShiftState done [20:30:53]FM_GetShiftState done [20:30:53]req_shift_opened done [20:30:53]requested_item shift.open_date is exist - process it [20:30:53]req_shift_open_date [20:30:53]req_shift_open_date done [20:30:53]produce_requested_data done [20:30:53]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260928,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:30:53]process_action_free close_receipt [20:30:53]json_value_free [20:30:53]json_value_free done [20:30:53]process_json_proto returns [20:30:53]Send response to host [20:30:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260928,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:30:53]free response buf [20:30:53]execute_script done [20:30:53]execute_script returns [20:30:53]free content buf [20:30:53]Sock 9.Close socket [20:30:53]Sock 9.Thread stoped [20:30:55]OFD Sender: No OFD packet to send [20:31:00]OFD Sender: No OFD packet to send [20:31:05]OFD Sender: No OFD packet to send [20:31:06]accept exits with 7 [20:31:06]New connection [20:31:06]New thread 3066617188 created [20:31:06]Thread 3066473828 joined [20:31:06]Waiting for new connection... [20:31:06] Sock 7.Parse request [20:31:06]Sock 7.Check first char [20:31:06]Sock 7.First char is OK [20:31:06]request: POST /json_proto HTTP/1.0 [20:31:06]Method: POST [20:31:06]URL: /json_proto [20:31:06]Method is POST - this is cgi request [20:31:06]url: /json_proto [20:31:06]query_string will be loaded in cgi processing [20:31:06]execute_cgi json_proto POST (null) [20:31:06]execute_cgi path=json_proto method=POST [20:31:06]POST find Content-Length [20:31:06]Host: 172.17.55.133:8080 [20:31:06]Content-Length: 801 [20:31:06]Content-Type: application/json [20:31:06] [20:31:06]POST finish read [20:31:06]Found Content-Length = 801 [20:31:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:06]execute_script... [20:31: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)1036482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:06]POST & json_proto [20:31:06]process_json_proto [20:31:06]json parsed OK: [20:31:06]protocol is kg_v1.0 [20:31:06]action value=close_receipt [20:31:06]process_action close_receipt [20:31:06]cmd_close_receipt [20:31:06]MH_GetDate [20:31:06]Write to MH i2c: F0 00 00 F6 C8 AD [20:31:06]Write i2c OK [20:31:06]MH_I2C_Read... [20:31:06]Read from MH i2c: F0 [20:31:06]MH_I2C_Read... [20:31:06]Read from MH i2c: F0 09 00 [20:31:06]MH_I2C_Read... [20:31:06]Read from MH i2c: F0 09 00 F6 C8 00 11 5A C2 66 34 48 D8 65 02 [20:31:06]GetLastDocTimeStamp 1724013054 [20:31:06]current date 1724013073 [20:31:06]FM_GetShiftState [20:31:06]SAM_PROTO_GetShiftState [20:31:06]wFMCommunicate request_size=4 [20:31:06]MH_SAM_APDU [20:31:06]CAPDU: 80 13 01 00 [20:31:06]Write to MH i2c: E2 08 00 F7 C8 80 13 01 00 00 00 00 00 3C [20:31:06]Write i2c OK [20:31:06]MH_I2C_Read... [20:31:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:06]Read from MH i2c: E2 [20:31:06]MH_I2C_Read... [20:31:06]Read from MH i2c: E2 0E 00 [20:31:06]MH_I2C_Read... [20:31:06]Read from MH i2c: E2 0E 00 F7 C8 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 79 [20:31:06]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:31:06]wFMCommunicate OK [20:31:06]SAM_PROTO_GetShiftState done [20:31:06]FM_GetShiftState done [20:31:06]opened in 1723940556 [20:31:06]opened+sec_in_day 1724026956 [20:31:06]quantity*price = 50036 [20:31:06]sum+1 = 50037 [20:31:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 487 18.08.2024 20:31 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260929 ФПД: 27986527597823 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T203113&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260929&fm=27986527597823&tin=02508201610067®Number=0000000000091865&sum=50036 [20:31:07]StoreToDocumentArchive [20:31:07]shift 449 fd 260929 [20:31:07]save to /storage/0449/doc_00260929 [20:31:07]save last doc name /storage/0449/doc_00260929 to /storage/kkm_last_doc_name [20:31:07]save OK [20:31:07]Clear old archive folders... [20:31:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:31:07]tlvbuf is 004A2740 [20:31:07]SAM_PROTO_ClearQueue [20:31:07]wFMCommunicate request_size=4 [20:31:07]MH_SAM_APDU [20:31:07]CAPDU: 80 09 00 00 [20:31:07]Write to MH i2c: E2 08 00 04 C9 80 09 00 00 00 00 00 00 3F [20:31:07]Write i2c OK [20:31:07]MH_I2C_Read... [20:31:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:31:07]Read from MH i2c: E2 [20:31:07]MH_I2C_Read... [20:31:07]Read from MH i2c: E2 03 00 [20:31:07]MH_I2C_Read... [20:31:07]Read from MH i2c: E2 03 00 04 C9 00 90 00 41 [20:31:07]RAPDU: 90 00 [20:31:07]wFMCommunicate OK [20:31:07]SAM_PROTO_ClearQueue done [20:31:07]KKMCreateOFDPacket [20:31:07]OFDProtocolAddRootSTLVToBuf [20:31:07]FM_MakeSignedData [20:31:07]FM_MakeSignedData [20:31:07]SAM_PROTO_SignData [20:31:07]wFMCommunicate request_size=4 [20:31:07]MH_SAM_APDU [20:31:07]CAPDU: 80 0D 01 02 [20:31:07]Write to MH i2c: E2 08 00 05 C9 80 0D 01 02 00 00 00 00 47 [20:31:07]Write i2c OK [20:31:07]MH_I2C_Read... [20:31:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:31:07]Read from MH i2c: E2 [20:31:07]MH_I2C_Read... [20:31:07]Read from MH i2c: E2 03 00 [20:31:07]MH_I2C_Read... [20:31:07]Read from MH i2c: E2 03 00 05 C9 00 90 00 42 [20:31:07]RAPDU: 90 00 [20:31:07]wFMCommunicate OK [20:31:07]wFMCommunicate request_size=255 [20:31:07]MH_SAM_APDU [20:31:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 01 00 00 F4 03 04 00 11 5A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 41 FB 03 00 35 04 06 00 19 [20:31:07]Write to MH i2c: E2 02 01 06 C9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 01 00 00 F4 03 04 00 11 5A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 41 FB 03 00 35 04 06 00 19 00 00 A1 [20:31:07]Write i2c OK [20:31:07]MH_I2C_Read... [20:31:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:08]Read from MH i2c: E2 [20:31:08]MH_I2C_Read... [20:31:08]Read from MH i2c: E2 03 00 [20:31:08]MH_I2C_Read... [20:31:08]Read from MH i2c: E2 03 00 06 C9 00 90 00 43 [20:31:08]RAPDU: 90 00 [20:31:08]wFMCommunicate OK [20:31:08]wFMCommunicate request_size=10 [20:31:08]MH_SAM_APDU [20:31:08]CAPDU: 80 0D 02 02 05 74 1F 09 34 FF [20:31:08]Write to MH i2c: E2 0D 00 07 C9 80 0D 02 02 05 00 74 1F 09 34 FF 00 00 23 [20:31:08]Write i2c OK [20:31:08]MH_I2C_Read... [20:31:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:08]Read from MH i2c: E2 [20:31:08]MH_I2C_Read... [20:31:08]Read from MH i2c: E2 03 00 [20:31:08]MH_I2C_Read... [20:31:08]Read from MH i2c: E2 03 00 07 C9 00 90 00 44 [20:31:08]RAPDU: 90 00 [20:31:08]wFMCommunicate OK [20:31:08]wFMCommunicate request_size=4 [20:31:08]MH_SAM_APDU [20:31:08]CAPDU: 80 0D 03 02 [20:31:08]Write to MH i2c: E2 08 00 08 C9 80 0D 03 02 00 00 00 00 4C [20:31:08]Write i2c OK [20:31:08]MH_I2C_Read... [20:31:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:31:08]Read from MH i2c: E2 [20:31:08]MH_I2C_Read... [20:31:08]Read from MH i2c: E2 0B 00 [20:31:08]MH_I2C_Read... [20:31:08]Read from MH i2c: E2 0B 00 08 C9 00 1B 16 95 4D 09 41 EE 41 90 00 D9 [20:31:08]RAPDU: 1B 16 95 4D 09 41 EE 41 90 00 [20:31:08]wFMCommunicate OK [20:31:08]SAM_PROTO_SignData done [20:31:08]FM_MakeSignedData done [20:31:08]CreateOFDProtocolMessage [20:31:08]wFMCommunicate request_size=4 [20:31:08]MH_SAM_APDU [20:31:08]CAPDU: 80 11 00 00 [20:31:08]Write to MH i2c: E2 08 00 09 C9 80 11 00 00 00 00 00 00 4C [20:31:08]Write i2c OK [20:31:08]MH_I2C_Read... [20:31:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:08]Read from MH i2c: E2 [20:31:08]MH_I2C_Read... [20:31:08]Read from MH i2c: E2 17 00 [20:31:08]MH_I2C_Read... [20:31:08]Read from MH i2c: E2 17 00 09 C9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 99 [20:31:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:31:08]wFMCommunicate OK [20:31:08]CreateOFDProtocolMessage done [20:31:08]OFDSenderStorePacket 260929 [20:31:08]StoreOFDPacket docnum=260929 [20:31:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 10 D1 07 01 C1 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 01 00 00 F4 03 04 00 11 5A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 41 FB 03 00 35 04 06 00 19 74 1F 09 34 FF 1B 16 95 4D 09 41 EE 41 [20:31:08]CheckFolder [20:31:08]dirname=/storage/ofd_packets [20:31:08]CheckFolder done [20:31:08]ProducePacketName [20:31:08]name=ofd_packets/00260929 [20:31:08]NVStorageSaveData ofd_packets/00260929 [20:31:08]File name is /storage/ofd_packets/00260929 [20:31:08]Write 301 bytes [20:31:08]NVStorageSaveData done [20:31:08]OFDSenderStorePacket done [20:31:08]KKMCreateOFDPacket done [20:31:08]NVStorageSaveData kkm_last_timestamp [20:31:08]File name is /storage/kkm_last_timestamp [20:31:08]Write 4 bytes [20:31:08]NVStorageSaveData done [20:31:08]ExternCall_PrintAddStr [20:31:08]wPrintStart [20:31:08]Write to MH i2c: 01 00 00 0A C9 D3 [20:31:08]Write i2c OK [20:31:08]MH_I2C_Read... [20:31:08]Read from MH i2c: 01 [20:31:08]MH_I2C_Read... [20:31:08]Read from MH i2c: 01 07 00 [20:31:08]MH_I2C_Read... [20:31:08]Read from MH i2c: 01 07 00 0A C9 00 00 00 00 00 FF 0F E8 [20:31:08]RasterBufferAndPrint [20:31:08]line Счет N : (1)1036482 [20:31:08]line ИНН: 02508201610067 [20:31:08]line Контрольно-Кассовый Чек [20:31:08]line ПРОДАЖА [20:31:08]line ТРК (МРК, ГНК) : 22 [20:31:08]line Товар: 2710124130 [20:31:08]line Аи-92-К-5 [20:31:08]line 7.380 * 67.80 [20:31:08]line = 500.36 [20:31:08]line НДС 12% НСП 1% [20:31:08]line > о реализуемом товаре [20:31:08]line ИТОГО: 500.36 [20:31:08]line НСП 1% : 4.43 [20:31:08]line НДС 12% : 53.14 [20:31:08]line Наличными: 0.00 [20:31:08]line Безнал.: 500.36 [20:31:08]line Место: АЗС № 94 "Партнер Нефть" [20:31:08]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:31:08]line СНО: Общий режим [20:31:08]line Чек 487 18.08.2024 20:31 [20:31:08]line Смена: 449 ФФД: 1.0 [20:31:08]line ЗНМ: 0300000099 [20:31:08]line РНМ: 0000000000091865 [20:31:08]line Версия ККМ: 001 [20:31:08]line Платежная система: O! деньги [20:31:08]line ФМ: 0000000000871820 [20:31:08]line ФД: 260929 [20:31:08]line ФПД: 27986527597823 [20:31:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T203113&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260929&fm=27986527597823&tin=02508201610067®Number=0000000000091865&sum=50036 [20:31:08]written 0, free lines is 4095 [20:31:08]OFD Sender: Processing packet 260929 [packets to send 192, broken 191] [20:31:08]ProducePacketName [20:31:08]name=ofd_packets/00260929 [20:31:08]OFD Sender: To server: pG, [20:31:08]CommunicateWithHost lk.salyk.kg:30040 [20:31:08]ConnectInit lk.salyk.kg [20:31:08]Connected sock=10 [20:31: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 30 0F 01 00 00 10 D1 07 01 C1 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 01 00 00 F4 03 04 00 11 5A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 41 FB 03 00 35 04 06 00 19 74 1F 09 34 FF 1B 16 95 4D 09 41 EE 41 [20:31: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 30 4F 00 00 00 80 BB 47 00 20 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 41 FB 03 00 F4 03 04 00 65 03 C2 66 B6 04 01 00 00 AF EA 82 6E 3F D6 B1 57 [20:31:08]CommunicateWithHost err = 0 [20:31:08]CheckOFDResponse [20:31:08]1017 (14) - 77093643461234 [20:31:08]1041 (16) - 0000000000871820 [20:31:08]1040 (4) - 260929 [20:31:08]1012 (4) - 18.08.2024 14:21 [20:31:08]1206 (1) - 0 [20:31:08]OFD Sender: Remove packet 260929 [20:31:08]ProducePacketName [20:31:08]name=ofd_packets/00260929 [20:31:08]NVStorageDeleteData [20:31:08]Write to MH i2c: 01 00 00 34 C9 FD [20:31:08]Write i2c OK [20:31:08]MH_I2C_Read... [20:31:08]Read from MH i2c: 01 [20:31:08]MH_I2C_Read... [20:31:08]Read from MH i2c: 01 07 00 [20:31:08]MH_I2C_Read... [20:31:08]Read from MH i2c: 01 07 00 34 C9 00 00 00 00 00 8D 0C 9D [20:31:08]RasterBufferAndPrint [20:31:08]line [20:31:08]line [20:31:08]line [20:31:08]line [20:31:08]line [20:31:08]written 0, free lines is 3216 [20:31:08]MH_Cut [20:31:08]Write to MH i2c: D1 01 00 3B C9 01 D6 [20:31:08]Write i2c OK [20:31:08]MH_I2C_Read... [20:31:08]Read from MH i2c: D1 [20:31:08]MH_I2C_Read... [20:31:08]Read from MH i2c: D1 01 00 [20:31:08]MH_I2C_Read... [20:31:08]Read from MH i2c: D1 01 00 3B C9 00 D5 [20:31:08]Write to MH i2c: 01 00 00 3C C9 05 [20:31:08]Write i2c OK [20:31:08]MH_I2C_Read... [20:31:09]OFD Sender: No OFD packet to send [20:31:09]*** Cut start [20:31:09]*** Purtial cut [20:31:09]*** Stage 1: CUTSNS_PIN = 1 [20:31:12]Read from MH i2c: 01 [20:31:12]MH_I2C_Read... [20:31:12]*** Stop cut motor [20:31:12]*** Cut end [20:31:12]Read from MH i2c: 01 07 00 [20:31:12]MH_I2C_Read... [20:31:12]Read from MH i2c: 01 07 00 3C C9 00 00 00 00 00 FF 0F 1A [20:31:12]process_action close_receipt done [20:31:12]requested_data is exist [20:31:12]produce_requested_data [20:31:12]requested_item fm.sn is exist - process it [20:31:12]wFMCommunicate request_size=4 [20:31:12]MH_SAM_APDU [20:31:12]CAPDU: 80 11 00 00 [20:31:12]Write to MH i2c: E2 08 00 3D C9 80 11 00 00 00 00 00 00 80 [20:31:12]Write i2c OK [20:31:12]MH_I2C_Read... [20:31:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:12]Read from MH i2c: E2 [20:31:12]MH_I2C_Read... [20:31:12]Read from MH i2c: E2 17 00 [20:31:12]MH_I2C_Read... [20:31:12]Read from MH i2c: E2 17 00 3D C9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 CD [20:31:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:31:12]wFMCommunicate OK [20:31:12]requested_item fd.num is exist - process it [20:31:12]SAM_PROTO_GetFieldsCounters [20:31:12]wFMCommunicate request_size=4 [20:31:12]MH_SAM_APDU [20:31:12]CAPDU: 80 13 00 00 [20:31:12]Write to MH i2c: E2 08 00 3E C9 80 13 00 00 00 00 00 00 83 [20:31:12]Write i2c OK [20:31:12]MH_I2C_Read... [20:31:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:31:12]Read from MH i2c: E2 [20:31:12]MH_I2C_Read... [20:31:12]Read from MH i2c: E2 62 00 [20:31:12]MH_I2C_Read... [20:31:12]Read from MH i2c: E2 62 00 3E C9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 41 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E7 01 00 00 5E 04 04 00 E7 01 00 00 57 04 04 00 E8 01 00 00 19 04 04 00 00 00 00 00 90 00 5B [20:31: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 41 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E7 01 00 00 5E 04 04 00 E7 01 00 00 57 04 04 00 E8 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:31:12]wFMCommunicate OK [20:31:12]SAM_PROTO_GetFieldsCounters done [20:31:12]requested_item shift.num is exist - process it [20:31:12]requested_item shift.opened is exist - process it [20:31:12]req_shift_opened [20:31:12]FM_GetShiftState [20:31:12]SAM_PROTO_GetShiftState [20:31:12]wFMCommunicate request_size=4 [20:31:12]MH_SAM_APDU [20:31:12]CAPDU: 80 13 01 00 [20:31:12]Write to MH i2c: E2 08 00 3F C9 80 13 01 00 00 00 00 00 85 [20:31:12]Write i2c OK [20:31:12]MH_I2C_Read... [20:31:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:12]Read from MH i2c: E2 [20:31:12]MH_I2C_Read... [20:31:12]Read from MH i2c: E2 0E 00 [20:31:12]MH_I2C_Read... [20:31:12]Read from MH i2c: E2 0E 00 3F C9 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C2 [20:31:12]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:31:12]wFMCommunicate OK [20:31:12]SAM_PROTO_GetShiftState done [20:31:12]FM_GetShiftState done [20:31:12]req_shift_opened done [20:31:12]requested_item shift.open_date is exist - process it [20:31:12]req_shift_open_date [20:31:12]req_shift_open_date done [20:31:12]produce_requested_data done [20:31:12]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260929,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:31:12]process_action_free close_receipt [20:31:12]json_value_free [20:31:12]json_value_free done [20:31:12]process_json_proto returns [20:31:12]Send response to host [20:31:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260929,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:31:12]free response buf [20:31:12]execute_script done [20:31:12]execute_script returns [20:31:12]free content buf [20:31:12]Sock 7.Close socket [20:31:12]Sock 7.Thread stoped [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:54]accept exits with 9 [20:31:54]New connection [20:31:54]New thread 3066473828 created [20:31:54]Thread 3066617188 joined [20:31:54]Waiting for new connection... [20:31:54] Sock 9.Parse request [20:31:54]Sock 9.Check first char [20:31:54]Sock 9.First char is OK [20:31:54]request: POST /json_proto HTTP/1.0 [20:31:54]Method: POST [20:31:54]URL: /json_proto [20:31:54]Method is POST - this is cgi request [20:31:54]url: /json_proto [20:31:54]query_string will be loaded in cgi processing [20:31:54]execute_cgi json_proto POST (null) [20:31:54]execute_cgi path=json_proto method=POST [20:31:54]POST find Content-Length [20:31:54]Host: 172.17.55.133:8080 [20:31:54]Content-Length: 683 [20:31:54]Content-Type: application/json [20:31:54] [20:31:54]POST finish read [20:31:54]Found Content-Length = 683 [20:31:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 17.700, "sum" : 1200.06, "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" ] } } [20:31:54]execute_script... [20:31: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)1036483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 17.700, "sum" : 1200.06, "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" ] } } [20:31:54]POST & json_proto [20:31:54]process_json_proto [20:31:54]json parsed OK: [20:31:54]protocol is kg_v1.0 [20:31:54]action value=close_receipt [20:31:54]process_action close_receipt [20:31:54]cmd_close_receipt [20:31:54]MH_GetDate [20:31:54]Write to MH i2c: F0 00 00 40 C9 F8 [20:31:54]Write i2c OK [20:31:54]MH_I2C_Read... [20:31:54]Read from MH i2c: F0 [20:31:54]MH_I2C_Read... [20:31:54]Read from MH i2c: F0 09 00 [20:31:54]MH_I2C_Read... [20:31:54]Read from MH i2c: F0 09 00 40 C9 00 41 5A C2 66 34 48 D8 65 7D [20:31:54]GetLastDocTimeStamp 1724013073 [20:31:54]current date 1724013121 [20:31:54]FM_GetShiftState [20:31:54]SAM_PROTO_GetShiftState [20:31:54]wFMCommunicate request_size=4 [20:31:54]MH_SAM_APDU [20:31:54]CAPDU: 80 13 01 00 [20:31:54]Write to MH i2c: E2 08 00 41 C9 80 13 01 00 00 00 00 00 87 [20:31:54]Write i2c OK [20:31:54]MH_I2C_Read... [20:31:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:55]Read from MH i2c: E2 [20:31:55]MH_I2C_Read... [20:31:55]Read from MH i2c: E2 0E 00 [20:31:55]MH_I2C_Read... [20:31:55]Read from MH i2c: E2 0E 00 41 C9 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C4 [20:31:55]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:31:55]wFMCommunicate OK [20:31:55]SAM_PROTO_GetShiftState done [20:31:55]FM_GetShiftState done [20:31:55]opened in 1723940556 [20:31:55]opened+sec_in_day 1724026956 [20:31:55]quantity*price = 120006 [20:31:55]sum+1 = 120007 [20:31:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 488 18.08.2024 20:32 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260930 ФПД: 247630440737823 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T203201&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260930&fm=247630440737823&tin=02508201610067®Number=0000000000091865&sum=120000 [20:31:56]StoreToDocumentArchive [20:31:56]shift 449 fd 260930 [20:31:56]save to /storage/0449/doc_00260930 [20:31:56]save last doc name /storage/0449/doc_00260930 to /storage/kkm_last_doc_name [20:31:56]save OK [20:31:56]Clear old archive folders... [20:31:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:31:56]tlvbuf is 00451550 [20:31:56]SAM_PROTO_ClearQueue [20:31:56]wFMCommunicate request_size=4 [20:31:56]MH_SAM_APDU [20:31:56]CAPDU: 80 09 00 00 [20:31:56]Write to MH i2c: E2 08 00 4E C9 80 09 00 00 00 00 00 00 89 [20:31:56]Write i2c OK [20:31:56]MH_I2C_Read... [20:31:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:31:56]Read from MH i2c: E2 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: E2 03 00 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: E2 03 00 4E C9 00 90 00 8B [20:31:56]RAPDU: 90 00 [20:31:56]wFMCommunicate OK [20:31:56]SAM_PROTO_ClearQueue done [20:31:56]KKMCreateOFDPacket [20:31:56]OFDProtocolAddRootSTLVToBuf [20:31:56]FM_MakeSignedData [20:31:56]FM_MakeSignedData [20:31:56]SAM_PROTO_SignData [20:31:56]wFMCommunicate request_size=4 [20:31:56]MH_SAM_APDU [20:31:56]CAPDU: 80 0D 01 02 [20:31:56]Write to MH i2c: E2 08 00 4F C9 80 0D 01 02 00 00 00 00 91 [20:31:56]Write i2c OK [20:31:56]MH_I2C_Read... [20:31:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:31:56]Read from MH i2c: E2 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: E2 03 00 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: E2 03 00 4F C9 00 90 00 8C [20:31:56]RAPDU: 90 00 [20:31:56]wFMCommunicate OK [20:31:56]wFMCommunicate request_size=255 [20:31:56]MH_SAM_APDU [20:31:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 E8 01 00 00 F4 03 04 00 41 5A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 42 FB 03 00 35 04 06 00 E1 [20:31:56]Write to MH i2c: E2 02 01 50 C9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 E8 01 00 00 F4 03 04 00 41 5A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 42 FB 03 00 35 04 06 00 E1 00 00 0F [20:31:56]Write i2c OK [20:31:56]MH_I2C_Read... [20:31:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:56]Read from MH i2c: E2 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: E2 03 00 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: E2 03 00 50 C9 00 90 00 8D [20:31:56]RAPDU: 90 00 [20:31:56]wFMCommunicate OK [20:31:56]wFMCommunicate request_size=10 [20:31:56]MH_SAM_APDU [20:31:56]CAPDU: 80 0D 02 02 05 37 F4 74 AC 1F [20:31:56]Write to MH i2c: E2 0D 00 51 C9 80 0D 02 02 05 00 37 F4 74 AC 1F 00 00 08 [20:31:56]Write i2c OK [20:31:56]MH_I2C_Read... [20:31:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:56]Read from MH i2c: E2 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: E2 03 00 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: E2 03 00 51 C9 00 90 00 8E [20:31:56]RAPDU: 90 00 [20:31:56]wFMCommunicate OK [20:31:56]wFMCommunicate request_size=4 [20:31:56]MH_SAM_APDU [20:31:56]CAPDU: 80 0D 03 02 [20:31:56]Write to MH i2c: E2 08 00 52 C9 80 0D 03 02 00 00 00 00 96 [20:31:56]Write i2c OK [20:31:56]MH_I2C_Read... [20:31:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:31:56]Read from MH i2c: E2 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: E2 0B 00 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: E2 0B 00 52 C9 00 99 92 72 59 0D 81 8C B9 90 00 60 [20:31:56]RAPDU: 99 92 72 59 0D 81 8C B9 90 00 [20:31:56]wFMCommunicate OK [20:31:56]SAM_PROTO_SignData done [20:31:56]FM_MakeSignedData done [20:31:56]CreateOFDProtocolMessage [20:31:56]wFMCommunicate request_size=4 [20:31:56]MH_SAM_APDU [20:31:56]CAPDU: 80 11 00 00 [20:31:56]Write to MH i2c: E2 08 00 53 C9 80 11 00 00 00 00 00 00 96 [20:31:56]Write i2c OK [20:31:56]MH_I2C_Read... [20:31:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:56]Read from MH i2c: E2 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: E2 17 00 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: E2 17 00 53 C9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E3 [20:31:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:31:56]wFMCommunicate OK [20:31:56]CreateOFDProtocolMessage done [20:31:56]OFDSenderStorePacket 260930 [20:31:56]StoreOFDPacket docnum=260930 [20:31:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 A1 59 07 01 15 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 E8 01 00 00 F4 03 04 00 41 5A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 42 FB 03 00 35 04 06 00 E1 37 F4 74 AC 1F 99 92 72 59 0D 81 8C B9 [20:31:56]CheckFolder [20:31:56]dirname=/storage/ofd_packets [20:31:56]CheckFolder done [20:31:56]ProducePacketName [20:31:56]name=ofd_packets/00260930 [20:31:56]NVStorageSaveData ofd_packets/00260930 [20:31:56]File name is /storage/ofd_packets/00260930 [20:31:56]Write 301 bytes [20:31:56]NVStorageSaveData done [20:31:56]OFDSenderStorePacket done [20:31:56]KKMCreateOFDPacket done [20:31:56]NVStorageSaveData kkm_last_timestamp [20:31:56]File name is /storage/kkm_last_timestamp [20:31:56]Write 4 bytes [20:31:56]NVStorageSaveData done [20:31:56]ExternCall_PrintAddStr [20:31:56]wPrintStart [20:31:56]Write to MH i2c: 01 00 00 54 C9 1D [20:31:56]Write i2c OK [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: 01 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: 01 07 00 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: 01 07 00 54 C9 00 00 00 00 00 FF 0F 32 [20:31:56]RasterBufferAndPrint [20:31:56]line Счет N : (1)1036483 [20:31:56]line ИНН: 02508201610067 [20:31:56]line Контрольно-Кассовый Чек [20:31:56]line ПРОДАЖА [20:31:56]line ТРК (МРК, ГНК) : 42 [20:31:56]line Товар: 2710124130 [20:31:56]line Аи-92-К-5 [20:31:56]line 17.700 * 67.80 [20:31:56]line = 1200.06 [20:31:56]line НДС 12% НСП 1% [20:31:56]line > о реализуемом товаре [20:31:56]line ОКРУГЛЕНИЕ: -0.06 [20:31:56]line ИТОГО: 1200.00 [20:31:56]line Внесено: 1200.00 [20:31:56]line СДАЧА: 0.00 [20:31:56]line НСП 1% : 10.62 [20:31:56]line НДС 12% : 127.44 [20:31:56]line Наличными: 1200.00 [20:31:56]line Безнал.: 0.00 [20:31:56]line Место: АЗС № 94 "Партнер Нефть" [20:31:56]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:31:56]line СНО: Общий режим [20:31:56]line Чек 488 18.08.2024 20:32 [20:31:56]line Смена: 449 ФФД: 1.0 [20:31:56]line ЗНМ: 0300000099 [20:31:56]line РНМ: 0000000000091865 [20:31:56]line Версия ККМ: 001 [20:31:56]line ФМ: 0000000000871820 [20:31:56]line ФД: 260930 [20:31:56]line ФПД: 247630440737823 [20:31:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T203201&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260930&fm=247630440737823&tin=02508201610067®Number=0000000000091865&sum=120000 [20:31:56]written 0, free lines is 4095 [20:31:56]OFD Sender: Processing packet 260930 [packets to send 192, broken 191] [20:31:56]ProducePacketName [20:31:56]name=ofd_packets/00260930 [20:31:56]OFD Sender: To server: pG, [20:31:56]CommunicateWithHost lk.salyk.kg:30040 [20:31:56]ConnectInit lk.salyk.kg [20:31:56]Connected sock=10 [20:31: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 30 0F 01 00 00 A1 59 07 01 15 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 E8 01 00 00 F4 03 04 00 41 5A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 42 FB 03 00 35 04 06 00 E1 37 F4 74 AC 1F 99 92 72 59 0D 81 8C B9 [20:31: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 30 4F 00 00 00 02 CF 47 00 7D A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 42 FB 03 00 F4 03 04 00 95 03 C2 66 B6 04 01 00 00 E7 6C AB 3B E3 B7 E9 90 [20:31:57]CommunicateWithHost err = 0 [20:31:57]CheckOFDResponse [20:31:57]1017 (14) - 77093643461234 [20:31:57]1041 (16) - 0000000000871820 [20:31:57]1040 (4) - 260930 [20:31:57]1012 (4) - 18.08.2024 14:22 [20:31:57]1206 (1) - 0 [20:31:57]OFD Sender: Remove packet 260930 [20:31:57]ProducePacketName [20:31:57]name=ofd_packets/00260930 [20:31:57]NVStorageDeleteData [20:31:57]Write to MH i2c: 01 00 00 7F C9 48 [20:31:57]Write i2c OK [20:31:57]MH_I2C_Read... [20:31:57]Read from MH i2c: 01 [20:31:57]MH_I2C_Read... [20:31:57]Read from MH i2c: 01 07 00 [20:31:57]MH_I2C_Read... [20:31:57]Read from MH i2c: 01 07 00 7F C9 00 00 00 00 00 78 0C D3 [20:31:57]RasterBufferAndPrint [20:31:57]line [20:31:57]line [20:31:57]line [20:31:57]line [20:31:57]line [20:31:57]written 0, free lines is 3196 [20:31:57]MH_Cut [20:31:57]Write to MH i2c: D1 01 00 86 C9 01 21 [20:31:57]Write i2c OK [20:31:57]MH_I2C_Read... [20:31:57]Read from MH i2c: D1 [20:31:57]MH_I2C_Read... [20:31:57]Read from MH i2c: D1 01 00 [20:31:57]MH_I2C_Read... [20:31:57]Read from MH i2c: D1 01 00 86 C9 00 20 [20:31:57]Write to MH i2c: 01 00 00 87 C9 50 [20:31:57]Write i2c OK [20:31:57]MH_I2C_Read... [20:31:57]OFD Sender: No OFD packet to send [20:31:58]*** Cut start [20:31:58]*** Purtial cut [20:31:58]*** Stage 1: CUTSNS_PIN = 1 [20:32:00]Read from MH i2c: 01 [20:32:00]MH_I2C_Read... [20:32:00]*** Stop cut motor [20:32:00]*** Cut end [20:32:00]Read from MH i2c: 01 07 00 [20:32:00]MH_I2C_Read... [20:32:00]Read from MH i2c: 01 07 00 87 C9 00 00 00 00 00 FF 0F 65 [20:32:00]process_action close_receipt done [20:32:00]requested_data is exist [20:32:00]produce_requested_data [20:32:00]requested_item fm.sn is exist - process it [20:32:00]wFMCommunicate request_size=4 [20:32:00]MH_SAM_APDU [20:32:00]CAPDU: 80 11 00 00 [20:32:00]Write to MH i2c: E2 08 00 88 C9 80 11 00 00 00 00 00 00 CB [20:32:00]Write i2c OK [20:32:00]MH_I2C_Read... [20:32:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:00]Read from MH i2c: E2 [20:32:00]MH_I2C_Read... [20:32:00]Read from MH i2c: E2 17 00 [20:32:00]MH_I2C_Read... [20:32:00]Read from MH i2c: E2 17 00 88 C9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 18 [20:32:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:32:00]wFMCommunicate OK [20:32:00]requested_item fd.num is exist - process it [20:32:00]SAM_PROTO_GetFieldsCounters [20:32:00]wFMCommunicate request_size=4 [20:32:00]MH_SAM_APDU [20:32:00]CAPDU: 80 13 00 00 [20:32:00]Write to MH i2c: E2 08 00 89 C9 80 13 00 00 00 00 00 00 CE [20:32:00]Write i2c OK [20:32:00]MH_I2C_Read... [20:32:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:32:00]Read from MH i2c: E2 [20:32:00]MH_I2C_Read... [20:32:00]Read from MH i2c: E2 62 00 [20:32:00]MH_I2C_Read... [20:32:00]Read from MH i2c: E2 62 00 89 C9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 42 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E8 01 00 00 5E 04 04 00 E8 01 00 00 57 04 04 00 E9 01 00 00 19 04 04 00 00 00 00 00 90 00 AA [20:32: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 42 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E8 01 00 00 5E 04 04 00 E8 01 00 00 57 04 04 00 E9 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:32:00]wFMCommunicate OK [20:32:00]SAM_PROTO_GetFieldsCounters done [20:32:00]requested_item shift.num is exist - process it [20:32:00]requested_item shift.opened is exist - process it [20:32:00]req_shift_opened [20:32:00]FM_GetShiftState [20:32:00]SAM_PROTO_GetShiftState [20:32:00]wFMCommunicate request_size=4 [20:32:00]MH_SAM_APDU [20:32:00]CAPDU: 80 13 01 00 [20:32:00]Write to MH i2c: E2 08 00 8A C9 80 13 01 00 00 00 00 00 D0 [20:32:00]Write i2c OK [20:32:00]MH_I2C_Read... [20:32:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:00]Read from MH i2c: E2 [20:32:00]MH_I2C_Read... [20:32:00]Read from MH i2c: E2 0E 00 [20:32:00]MH_I2C_Read... [20:32:00]Read from MH i2c: E2 0E 00 8A C9 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 0D [20:32:00]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:32:00]wFMCommunicate OK [20:32:00]SAM_PROTO_GetShiftState done [20:32:00]FM_GetShiftState done [20:32:00]req_shift_opened done [20:32:00]requested_item shift.open_date is exist - process it [20:32:00]req_shift_open_date [20:32:00]req_shift_open_date done [20:32:00]produce_requested_data done [20:32:00]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260930,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:32:00]process_action_free close_receipt [20:32:00]json_value_free [20:32:00]json_value_free done [20:32:00]process_json_proto returns [20:32:00]Send response to host [20:32:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260930,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:32:00]free response buf [20:32:00]execute_script done [20:32:00]execute_script returns [20:32:00]free content buf [20:32:00]Sock 9.Close socket [20:32:00]Sock 9.Thread stoped [20:32:02]OFD Sender: No OFD packet to send [20:32:07]OFD Sender: No OFD packet to send [20:32:12]OFD Sender: No OFD packet to send [20:32:14]accept exits with 7 [20:32:14]New connection [20:32:14]New thread 3066617188 created [20:32:14]Thread 3066473828 joined [20:32:14]Waiting for new connection... [20:32:14] Sock 7.Parse request [20:32:14]Sock 7.Check first char [20:32:14]Sock 7.First char is OK [20:32:14]request: POST /json_proto HTTP/1.0 [20:32:14]Method: POST [20:32:14]URL: /json_proto [20:32:14]Method is POST - this is cgi request [20:32:14]url: /json_proto [20:32:14]query_string will be loaded in cgi processing [20:32:14]execute_cgi json_proto POST (null) [20:32:14]execute_cgi path=json_proto method=POST [20:32:14]POST find Content-Length [20:32:14]Host: 172.17.55.133:8080 [20:32:14]Content-Length: 801 [20:32:14]Content-Type: application/json [20:32:14] [20:32:14]POST finish read [20:32:14]Found Content-Length = 801 [20:32:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:14]execute_script... [20:32: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)1036484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:14]POST & json_proto [20:32:14]process_json_proto [20:32:14]json parsed OK: [20:32:14]protocol is kg_v1.0 [20:32:14]action value=close_receipt [20:32:14]process_action close_receipt [20:32:14]cmd_close_receipt [20:32:14]MH_GetDate [20:32:14]Write to MH i2c: F0 00 00 8B C9 43 [20:32:14]Write i2c OK [20:32:14]MH_I2C_Read... [20:32:14]Read from MH i2c: F0 [20:32:14]MH_I2C_Read... [20:32:14]Read from MH i2c: F0 09 00 [20:32:14]MH_I2C_Read... [20:32:14]Read from MH i2c: F0 09 00 8B C9 00 55 5A C2 66 34 48 D8 65 DC [20:32:14]GetLastDocTimeStamp 1724013121 [20:32:14]current date 1724013141 [20:32:14]FM_GetShiftState [20:32:14]SAM_PROTO_GetShiftState [20:32:14]wFMCommunicate request_size=4 [20:32:14]MH_SAM_APDU [20:32:14]CAPDU: 80 13 01 00 [20:32:14]Write to MH i2c: E2 08 00 8C C9 80 13 01 00 00 00 00 00 D2 [20:32:14]Write i2c OK [20:32:14]MH_I2C_Read... [20:32:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:15]Read from MH i2c: E2 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: E2 0E 00 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: E2 0E 00 8C C9 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 0F [20:32:15]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:32:15]wFMCommunicate OK [20:32:15]SAM_PROTO_GetShiftState done [20:32:15]FM_GetShiftState done [20:32:15]opened in 1723940556 [20:32:15]opened+sec_in_day 1724026956 [20:32:15]quantity*price = 50036 [20:32:15]sum+1 = 50037 [20:32:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 489 18.08.2024 20:32 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260931 ФПД: 103097474512458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T203221&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260931&fm=103097474512458&tin=02508201610067®Number=0000000000091865&sum=50036 [20:32:16]StoreToDocumentArchive [20:32:16]shift 449 fd 260931 [20:32:16]save to /storage/0449/doc_00260931 [20:32:16]save last doc name /storage/0449/doc_00260931 to /storage/kkm_last_doc_name [20:32:16]save OK [20:32:16]Clear old archive folders... [20:32:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:32:16]tlvbuf is 003E9530 [20:32:16]SAM_PROTO_ClearQueue [20:32:16]wFMCommunicate request_size=4 [20:32:16]MH_SAM_APDU [20:32:16]CAPDU: 80 09 00 00 [20:32:16]Write to MH i2c: E2 08 00 99 C9 80 09 00 00 00 00 00 00 D4 [20:32:16]Write i2c OK [20:32:16]MH_I2C_Read... [20:32:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:32:16]Read from MH i2c: E2 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: E2 03 00 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: E2 03 00 99 C9 00 90 00 D6 [20:32:16]RAPDU: 90 00 [20:32:16]wFMCommunicate OK [20:32:16]SAM_PROTO_ClearQueue done [20:32:16]KKMCreateOFDPacket [20:32:16]OFDProtocolAddRootSTLVToBuf [20:32:16]FM_MakeSignedData [20:32:16]FM_MakeSignedData [20:32:16]SAM_PROTO_SignData [20:32:16]wFMCommunicate request_size=4 [20:32:16]MH_SAM_APDU [20:32:16]CAPDU: 80 0D 01 02 [20:32:16]Write to MH i2c: E2 08 00 9A C9 80 0D 01 02 00 00 00 00 DC [20:32:16]Write i2c OK [20:32:16]MH_I2C_Read... [20:32:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:32:16]Read from MH i2c: E2 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: E2 03 00 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: E2 03 00 9A C9 00 90 00 D7 [20:32:16]RAPDU: 90 00 [20:32:16]wFMCommunicate OK [20:32:16]wFMCommunicate request_size=255 [20:32:16]MH_SAM_APDU [20:32:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 01 00 00 F4 03 04 00 55 5A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 43 FB 03 00 35 04 06 00 5D [20:32:16]Write to MH i2c: E2 02 01 9B C9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 01 00 00 F4 03 04 00 55 5A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 43 FB 03 00 35 04 06 00 5D 00 00 C2 [20:32:16]Write i2c OK [20:32:16]MH_I2C_Read... [20:32:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:16]Read from MH i2c: E2 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: E2 03 00 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: E2 03 00 9B C9 00 90 00 D8 [20:32:16]RAPDU: 90 00 [20:32:16]wFMCommunicate OK [20:32:16]wFMCommunicate request_size=10 [20:32:16]MH_SAM_APDU [20:32:16]CAPDU: 80 0D 02 02 05 C4 40 58 76 4A [20:32:16]Write to MH i2c: E2 0D 00 9C C9 80 0D 02 02 05 00 C4 40 58 76 4A 00 00 05 [20:32:16]Write i2c OK [20:32:16]MH_I2C_Read... [20:32:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:16]Read from MH i2c: E2 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: E2 03 00 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: E2 03 00 9C C9 00 90 00 D9 [20:32:16]RAPDU: 90 00 [20:32:16]wFMCommunicate OK [20:32:16]wFMCommunicate request_size=4 [20:32:16]MH_SAM_APDU [20:32:16]CAPDU: 80 0D 03 02 [20:32:16]Write to MH i2c: E2 08 00 9D C9 80 0D 03 02 00 00 00 00 E1 [20:32:16]Write i2c OK [20:32:16]MH_I2C_Read... [20:32:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:32:16]Read from MH i2c: E2 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: E2 0B 00 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: E2 0B 00 9D C9 00 B9 55 10 B8 3F 14 43 F7 90 00 45 [20:32:16]RAPDU: B9 55 10 B8 3F 14 43 F7 90 00 [20:32:16]wFMCommunicate OK [20:32:16]SAM_PROTO_SignData done [20:32:16]FM_MakeSignedData done [20:32:16]CreateOFDProtocolMessage [20:32:16]wFMCommunicate request_size=4 [20:32:16]MH_SAM_APDU [20:32:16]CAPDU: 80 11 00 00 [20:32:16]Write to MH i2c: E2 08 00 9E C9 80 11 00 00 00 00 00 00 E1 [20:32:16]Write i2c OK [20:32:16]MH_I2C_Read... [20:32:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:16]Read from MH i2c: E2 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: E2 17 00 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: E2 17 00 9E C9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 2E [20:32:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:32:16]wFMCommunicate OK [20:32:16]CreateOFDProtocolMessage done [20:32:16]OFDSenderStorePacket 260931 [20:32:16]StoreOFDPacket docnum=260931 [20:32:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 A5 07 07 01 5B D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 01 00 00 F4 03 04 00 55 5A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 43 FB 03 00 35 04 06 00 5D C4 40 58 76 4A B9 55 10 B8 3F 14 43 F7 [20:32:16]CheckFolder [20:32:16]dirname=/storage/ofd_packets [20:32:16]CheckFolder done [20:32:16]ProducePacketName [20:32:16]name=ofd_packets/00260931 [20:32:16]NVStorageSaveData ofd_packets/00260931 [20:32:16]File name is /storage/ofd_packets/00260931 [20:32:16]Write 301 bytes [20:32:16]NVStorageSaveData done [20:32:16]OFDSenderStorePacket done [20:32:16]KKMCreateOFDPacket done [20:32:16]NVStorageSaveData kkm_last_timestamp [20:32:16]File name is /storage/kkm_last_timestamp [20:32:16]Write 4 bytes [20:32:16]NVStorageSaveData done [20:32:16]ExternCall_PrintAddStr [20:32:16]wPrintStart [20:32:16]Write to MH i2c: 01 00 00 9F C9 68 [20:32:16]Write i2c OK [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: 01 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: 01 07 00 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: 01 07 00 9F C9 00 00 00 00 00 FF 0F 7D [20:32:16]RasterBufferAndPrint [20:32:16]line Счет N : (1)1036484 [20:32:16]line ИНН: 02508201610067 [20:32:16]line Контрольно-Кассовый Чек [20:32:16]line ПРОДАЖА [20:32:16]line ТРК (МРК, ГНК) : 12 [20:32:16]line Товар: 2710124130 [20:32:16]line Аи-92-К-5 [20:32:16]line 7.380 * 67.80 [20:32:16]line = 500.36 [20:32:16]line НДС 12% НСП 1% [20:32:16]line > о реализуемом товаре [20:32:16]line ИТОГО: 500.36 [20:32:16]line НСП 1% : 4.43 [20:32:16]line НДС 12% : 53.14 [20:32:16]line Наличными: 0.00 [20:32:16]line Безнал.: 500.36 [20:32:16]line Место: АЗС № 94 "Партнер Нефть" [20:32:16]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:32:16]line СНО: Общий режим [20:32:16]line Чек 489 18.08.2024 20:32 [20:32:16]line Смена: 449 ФФД: 1.0 [20:32:16]line ЗНМ: 0300000099 [20:32:16]line РНМ: 0000000000091865 [20:32:16]line Версия ККМ: 001 [20:32:16]line Платежная система: O! деньги [20:32:16]line ФМ: 0000000000871820 [20:32:16]line ФД: 260931 [20:32:16]line ФПД: 103097474512458 [20:32:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T203221&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260931&fm=103097474512458&tin=02508201610067®Number=0000000000091865&sum=50036 [20:32:16]written 0, free lines is 4095 [20:32:16]OFD Sender: Processing packet 260931 [packets to send 192, broken 191] [20:32:16]ProducePacketName [20:32:16]name=ofd_packets/00260931 [20:32:16]OFD Sender: To server: pG, [20:32:16]CommunicateWithHost lk.salyk.kg:30040 [20:32:16]ConnectInit lk.salyk.kg [20:32:16]Connected sock=10 [20:32: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 30 0F 01 00 00 A5 07 07 01 5B D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 01 00 00 F4 03 04 00 55 5A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 43 FB 03 00 35 04 06 00 5D C4 40 58 76 4A B9 55 10 B8 3F 14 43 F7 [20:32: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 30 4F 00 00 00 80 7E 47 00 AF 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 30 10 04 04 00 43 FB 03 00 F4 03 04 00 A9 03 C2 66 B6 04 01 00 00 56 E5 43 D8 66 47 CD 9F [20:32:17]CommunicateWithHost err = 0 [20:32:17]CheckOFDResponse [20:32:17]1017 (14) - 77093643461234 [20:32:17]1041 (16) - 0000000000871820 [20:32:17]1040 (4) - 260931 [20:32:17]1012 (4) - 18.08.2024 14:22 [20:32:17]1206 (1) - 0 [20:32:17]OFD Sender: Remove packet 260931 [20:32:17]ProducePacketName [20:32:17]name=ofd_packets/00260931 [20:32:17]NVStorageDeleteData [20:32:17]Write to MH i2c: 01 00 00 C9 C9 92 [20:32:17]Write i2c OK [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: 01 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: 01 07 00 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: 01 07 00 C9 C9 00 00 00 00 00 90 0C 35 [20:32:17]RasterBufferAndPrint [20:32:17]line [20:32:17]line [20:32:17]line [20:32:17]line [20:32:17]line [20:32:17]written 0, free lines is 3220 [20:32:17]MH_Cut [20:32:17]Write to MH i2c: D1 01 00 D0 C9 01 6B [20:32:17]Write i2c OK [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: D1 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: D1 01 00 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: D1 01 00 D0 C9 00 6A [20:32:17]Write to MH i2c: 01 00 00 D1 C9 9A [20:32:17]Write i2c OK [20:32:17]MH_I2C_Read... [20:32:17]OFD Sender: No OFD packet to send [20:32:18]*** Cut start [20:32:18]*** Purtial cut [20:32:18]*** Stage 1: CUTSNS_PIN = 1 [20:32:20]Read from MH i2c: 01 [20:32:20]MH_I2C_Read... [20:32:20]*** Stop cut motor [20:32:20]*** Cut end [20:32:20]Read from MH i2c: 01 07 00 [20:32:20]MH_I2C_Read... [20:32:20]Read from MH i2c: 01 07 00 D1 C9 00 00 00 00 00 FF 0F AF [20:32:20]process_action close_receipt done [20:32:20]requested_data is exist [20:32:20]produce_requested_data [20:32:20]requested_item fm.sn is exist - process it [20:32:20]wFMCommunicate request_size=4 [20:32:20]MH_SAM_APDU [20:32:20]CAPDU: 80 11 00 00 [20:32:20]Write to MH i2c: E2 08 00 D2 C9 80 11 00 00 00 00 00 00 15 [20:32:20]Write i2c OK [20:32:20]MH_I2C_Read... [20:32:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:20]Read from MH i2c: E2 [20:32:20]MH_I2C_Read... [20:32:20]Read from MH i2c: E2 17 00 [20:32:20]MH_I2C_Read... [20:32:20]Read from MH i2c: E2 17 00 D2 C9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 62 [20:32:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:32:20]wFMCommunicate OK [20:32:20]requested_item fd.num is exist - process it [20:32:20]SAM_PROTO_GetFieldsCounters [20:32:20]wFMCommunicate request_size=4 [20:32:20]MH_SAM_APDU [20:32:20]CAPDU: 80 13 00 00 [20:32:20]Write to MH i2c: E2 08 00 D3 C9 80 13 00 00 00 00 00 00 18 [20:32:20]Write i2c OK [20:32:20]MH_I2C_Read... [20:32:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:32:20]Read from MH i2c: E2 [20:32:20]MH_I2C_Read... [20:32:20]Read from MH i2c: E2 62 00 [20:32:20]MH_I2C_Read... [20:32:20]Read from MH i2c: E2 62 00 D3 C9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 43 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E9 01 00 00 5E 04 04 00 E9 01 00 00 57 04 04 00 EA 01 00 00 19 04 04 00 00 00 00 00 90 00 F8 [20:32: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 43 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 E9 01 00 00 5E 04 04 00 E9 01 00 00 57 04 04 00 EA 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:32:20]wFMCommunicate OK [20:32:20]SAM_PROTO_GetFieldsCounters done [20:32:20]requested_item shift.num is exist - process it [20:32:20]requested_item shift.opened is exist - process it [20:32:20]req_shift_opened [20:32:20]FM_GetShiftState [20:32:20]SAM_PROTO_GetShiftState [20:32:20]wFMCommunicate request_size=4 [20:32:20]MH_SAM_APDU [20:32:20]CAPDU: 80 13 01 00 [20:32:20]Write to MH i2c: E2 08 00 D4 C9 80 13 01 00 00 00 00 00 1A [20:32:20]Write i2c OK [20:32:20]MH_I2C_Read... [20:32:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:20]Read from MH i2c: E2 [20:32:20]MH_I2C_Read... [20:32:20]Read from MH i2c: E2 0E 00 [20:32:20]MH_I2C_Read... [20:32:20]Read from MH i2c: E2 0E 00 D4 C9 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 57 [20:32:20]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:32:20]wFMCommunicate OK [20:32:20]SAM_PROTO_GetShiftState done [20:32:20]FM_GetShiftState done [20:32:20]req_shift_opened done [20:32:20]requested_item shift.open_date is exist - process it [20:32:20]req_shift_open_date [20:32:20]req_shift_open_date done [20:32:20]produce_requested_data done [20:32:20]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260931,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:32:20]process_action_free close_receipt [20:32:20]json_value_free [20:32:20]json_value_free done [20:32:20]process_json_proto returns [20:32:20]Send response to host [20:32:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260931,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:32:20]free response buf [20:32:20]execute_script done [20:32:20]execute_script returns [20:32:20]free content buf [20:32:20]Sock 7.Close socket [20:32:20]Sock 7.Thread stoped [20:32:22]OFD Sender: No OFD packet to send [20:32:27]OFD Sender: No OFD packet to send [20:32:32]OFD Sender: No OFD packet to send [20:32:37]OFD Sender: No OFD packet to send [20:32:42]OFD Sender: No OFD packet to send [20:32:47]OFD Sender: No OFD packet to send [20:32:52]OFD Sender: No OFD packet to send [20:32:57]OFD Sender: No OFD packet to send [20:33:02]OFD Sender: No OFD packet to send [20:33:07]OFD Sender: No OFD packet to send [20:33:12]OFD Sender: No OFD packet to send [20:33:17]OFD Sender: No OFD packet to send [20:33:22]OFD Sender: No OFD packet to send [20:33:27]OFD Sender: No OFD packet to send [20:33:32]OFD Sender: No OFD packet to send [20:33:37]OFD Sender: No OFD packet to send [20:33:42]OFD Sender: No OFD packet to send [20:33:47]OFD Sender: No OFD packet to send [20:33:52]OFD Sender: No OFD packet to send [20:33:57]OFD Sender: No OFD packet to send [20:34:02]OFD Sender: No OFD packet to send [20:34:07]OFD Sender: No OFD packet to send [20:34:12]OFD Sender: No OFD packet to send [20:34:17]OFD Sender: No OFD packet to send [20:34:22]OFD Sender: No OFD packet to send [20:34:27]OFD Sender: No OFD packet to send [20:34:32]OFD Sender: No OFD packet to send [20:34:37]OFD Sender: No OFD packet to send [20:34:42]OFD Sender: No OFD packet to send [20:34:47]OFD Sender: No OFD packet to send [20:34:52]OFD Sender: No OFD packet to send [20:34:57]OFD Sender: No OFD packet to send [20:35:02]OFD Sender: No OFD packet to send [20:35:07]OFD Sender: No OFD packet to send [20:35:12]OFD Sender: No OFD packet to send [20:35:17]OFD Sender: No OFD packet to send [20:35:22]OFD Sender: No OFD packet to send [20:35:27]OFD Sender: No OFD packet to send [20:35:32]OFD Sender: No OFD packet to send [20:35:37]OFD Sender: No OFD packet to send [20:35:42]OFD Sender: No OFD packet to send [20:35:47]OFD Sender: No OFD packet to send [20:35:52]OFD Sender: No OFD packet to send [20:35:57]OFD Sender: No OFD packet to send [20:36:02]OFD Sender: No OFD packet to send [20:36:07]OFD Sender: No OFD packet to send [20:36:12]OFD Sender: No OFD packet to send [20:36:17]OFD Sender: No OFD packet to send [20:36:22]OFD Sender: No OFD packet to send [20:36:27]OFD Sender: No OFD packet to send [20:36:32]OFD Sender: No OFD packet to send [20:36:37]OFD Sender: No OFD packet to send [20:36:42]OFD Sender: No OFD packet to send [20:36:47]OFD Sender: No OFD packet to send [20:36:52]OFD Sender: No OFD packet to send [20:36:57]OFD Sender: No OFD packet to send [20:37:02]OFD Sender: No OFD packet to send [20:37:07]OFD Sender: No OFD packet to send [20:37:12]OFD Sender: No OFD packet to send [20:37:17]OFD Sender: No OFD packet to send [20:37:22]OFD Sender: No OFD packet to send [20:37:28]OFD Sender: No OFD packet to send [20:37:33]OFD Sender: No OFD packet to send [20:37:38]OFD Sender: No OFD packet to send [20:37:43]OFD Sender: No OFD packet to send [20:37:48]OFD Sender: No OFD packet to send [20:37:53]OFD Sender: No OFD packet to send [20:37:58]OFD Sender: No OFD packet to send [20:38:01]accept exits with 9 [20:38:01]New connection [20:38:01]New thread 3066473828 created [20:38:01]Thread 3066617188 joined [20:38:01]Waiting for new connection... [20:38:01] Sock 9.Parse request [20:38:01]Sock 9.Check first char [20:38:01]Sock 9.First char is OK [20:38:01]request: POST /json_proto HTTP/1.0 [20:38:01]Method: POST [20:38:01]URL: /json_proto [20:38:01]Method is POST - this is cgi request [20:38:01]url: /json_proto [20:38:01]query_string will be loaded in cgi processing [20:38:01]execute_cgi json_proto POST (null) [20:38:01]execute_cgi path=json_proto method=POST [20:38:01]POST find Content-Length [20:38:01]Host: 172.17.55.133:8080 [20:38:01]Content-Length: 678 [20:38:01]Content-Type: application/json [20:38:01] [20:38:01]POST finish read [20:38:01]Found Content-Length = 678 [20:38:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036485", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:01]execute_script... [20:38: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)1036485", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:01]POST & json_proto [20:38:01]process_json_proto [20:38:01]json parsed OK: [20:38:01]protocol is kg_v1.0 [20:38:01]action value=close_receipt [20:38:01]process_action close_receipt [20:38:01]cmd_close_receipt [20:38:01]MH_GetDate [20:38:01]Write to MH i2c: F0 00 00 D5 C9 8D [20:38:01]Write i2c OK [20:38:01]MH_I2C_Read... [20:38:01]Read from MH i2c: F0 [20:38:01]MH_I2C_Read... [20:38:01]Read from MH i2c: F0 09 00 [20:38:01]MH_I2C_Read... [20:38:01]Read from MH i2c: F0 09 00 D5 C9 00 B0 5B C2 66 34 48 D8 65 82 [20:38:01]GetLastDocTimeStamp 1724013141 [20:38:01]current date 1724013488 [20:38:01]FM_GetShiftState [20:38:01]SAM_PROTO_GetShiftState [20:38:01]wFMCommunicate request_size=4 [20:38:01]MH_SAM_APDU [20:38:01]CAPDU: 80 13 01 00 [20:38:01]Write to MH i2c: E2 08 00 D6 C9 80 13 01 00 00 00 00 00 1C [20:38:01]Write i2c OK [20:38:01]MH_I2C_Read... [20:38:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:01]Read from MH i2c: E2 [20:38:01]MH_I2C_Read... [20:38:01]Read from MH i2c: E2 0E 00 [20:38:01]MH_I2C_Read... [20:38:01]Read from MH i2c: E2 0E 00 D6 C9 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 59 [20:38:01]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:38:01]wFMCommunicate OK [20:38:01]SAM_PROTO_GetShiftState done [20:38:01]FM_GetShiftState done [20:38:01]opened in 1723940556 [20:38:01]opened+sec_in_day 1724026956 [20:38:01]quantity*price = 30035 [20:38:01]sum+1 = 30036 [20:38:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 490 18.08.2024 20:38 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260932 ФПД: 132905500941954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T203808&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260932&fm=132905500941954&tin=02508201610067®Number=0000000000091865&sum=30000 [20:38:02]StoreToDocumentArchive [20:38:02]shift 449 fd 260932 [20:38:02]save to /storage/0449/doc_00260932 [20:38:02]save last doc name /storage/0449/doc_00260932 to /storage/kkm_last_doc_name [20:38:02]save OK [20:38:02]Clear old archive folders... [20:38:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:38:02]tlvbuf is 004A4360 [20:38:02]SAM_PROTO_ClearQueue [20:38:02]wFMCommunicate request_size=4 [20:38:02]MH_SAM_APDU [20:38:02]CAPDU: 80 09 00 00 [20:38:02]Write to MH i2c: E2 08 00 E3 C9 80 09 00 00 00 00 00 00 1E [20:38:02]Write i2c OK [20:38:02]MH_I2C_Read... [20:38:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:38:02]Read from MH i2c: E2 [20:38:02]MH_I2C_Read... [20:38:02]Read from MH i2c: E2 03 00 [20:38:02]MH_I2C_Read... [20:38:02]Read from MH i2c: E2 03 00 E3 C9 00 90 00 20 [20:38:02]RAPDU: 90 00 [20:38:02]wFMCommunicate OK [20:38:02]SAM_PROTO_ClearQueue done [20:38:02]KKMCreateOFDPacket [20:38:02]OFDProtocolAddRootSTLVToBuf [20:38:02]FM_MakeSignedData [20:38:02]FM_MakeSignedData [20:38:02]SAM_PROTO_SignData [20:38:02]wFMCommunicate request_size=4 [20:38:02]MH_SAM_APDU [20:38:02]CAPDU: 80 0D 01 02 [20:38:02]Write to MH i2c: E2 08 00 E4 C9 80 0D 01 02 00 00 00 00 26 [20:38:02]Write i2c OK [20:38:02]MH_I2C_Read... [20:38:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:38:02]Read from MH i2c: E2 [20:38:02]MH_I2C_Read... [20:38:02]Read from MH i2c: E2 03 00 [20:38:02]MH_I2C_Read... [20:38:02]Read from MH i2c: E2 03 00 E4 C9 00 90 00 21 [20:38:02]RAPDU: 90 00 [20:38:02]wFMCommunicate OK [20:38:02]wFMCommunicate request_size=255 [20:38:02]MH_SAM_APDU [20:38:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 01 00 00 F4 03 04 00 B0 5B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 44 FB 03 00 35 04 06 00 78 [20:38:02]Write to MH i2c: E2 02 01 E5 C9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 01 00 00 F4 03 04 00 B0 5B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 44 FB 03 00 35 04 06 00 78 00 00 5C [20:38:02]Write i2c OK [20:38:02]MH_I2C_Read... [20:38:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:02]Read from MH i2c: E2 [20:38:02]MH_I2C_Read... [20:38:02]Read from MH i2c: E2 03 00 [20:38:02]MH_I2C_Read... [20:38:02]Read from MH i2c: E2 03 00 E5 C9 00 90 00 22 [20:38:02]RAPDU: 90 00 [20:38:02]wFMCommunicate OK [20:38:02]wFMCommunicate request_size=10 [20:38:02]MH_SAM_APDU [20:38:02]CAPDU: 80 0D 02 02 05 E0 79 2C 1E 82 [20:38:02]Write to MH i2c: E2 0D 00 E6 C9 80 0D 02 02 05 00 E0 79 2C 1E 82 00 00 58 [20:38:02]Write i2c OK [20:38:02]MH_I2C_Read... [20:38:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:03]Read from MH i2c: E2 [20:38:03]MH_I2C_Read... [20:38:03]Read from MH i2c: E2 03 00 [20:38:03]MH_I2C_Read... [20:38:03]Read from MH i2c: E2 03 00 E6 C9 00 90 00 23 [20:38:03]RAPDU: 90 00 [20:38:03]wFMCommunicate OK [20:38:03]wFMCommunicate request_size=4 [20:38:03]MH_SAM_APDU [20:38:03]CAPDU: 80 0D 03 02 [20:38:03]Write to MH i2c: E2 08 00 E7 C9 80 0D 03 02 00 00 00 00 2B [20:38:03]Write i2c OK [20:38:03]MH_I2C_Read... [20:38:03]OFD Sender: No OFD packet to send [20:38:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:38:03]Read from MH i2c: E2 [20:38:03]MH_I2C_Read... [20:38:03]Read from MH i2c: E2 0B 00 [20:38:03]MH_I2C_Read... [20:38:03]Read from MH i2c: E2 0B 00 E7 C9 00 E8 8F EA 59 4F 79 F5 27 90 00 CA [20:38:03]RAPDU: E8 8F EA 59 4F 79 F5 27 90 00 [20:38:03]wFMCommunicate OK [20:38:03]SAM_PROTO_SignData done [20:38:03]FM_MakeSignedData done [20:38:03]CreateOFDProtocolMessage [20:38:03]wFMCommunicate request_size=4 [20:38:03]MH_SAM_APDU [20:38:03]CAPDU: 80 11 00 00 [20:38:03]Write to MH i2c: E2 08 00 E8 C9 80 11 00 00 00 00 00 00 2B [20:38:03]Write i2c OK [20:38:03]MH_I2C_Read... [20:38:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:03]Read from MH i2c: E2 [20:38:03]MH_I2C_Read... [20:38:03]Read from MH i2c: E2 17 00 [20:38:03]MH_I2C_Read... [20:38:03]Read from MH i2c: E2 17 00 E8 C9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 78 [20:38:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:38:03]wFMCommunicate OK [20:38:03]CreateOFDProtocolMessage done [20:38:03]OFDSenderStorePacket 260932 [20:38:03]StoreOFDPacket docnum=260932 [20:38:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 27 43 07 01 54 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 01 00 00 F4 03 04 00 B0 5B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 44 FB 03 00 35 04 06 00 78 E0 79 2C 1E 82 E8 8F EA 59 4F 79 F5 27 [20:38:03]CheckFolder [20:38:03]dirname=/storage/ofd_packets [20:38:03]CheckFolder done [20:38:03]ProducePacketName [20:38:03]name=ofd_packets/00260932 [20:38:03]NVStorageSaveData ofd_packets/00260932 [20:38:03]File name is /storage/ofd_packets/00260932 [20:38:03]Write 301 bytes [20:38:03]NVStorageSaveData done [20:38:03]OFDSenderStorePacket done [20:38:03]KKMCreateOFDPacket done [20:38:03]NVStorageSaveData kkm_last_timestamp [20:38:03]File name is /storage/kkm_last_timestamp [20:38:03]Write 4 bytes [20:38:03]NVStorageSaveData done [20:38:03]ExternCall_PrintAddStr [20:38:03]wPrintStart [20:38:03]Write to MH i2c: 01 00 00 E9 C9 B2 [20:38:03]Write i2c OK [20:38:03]MH_I2C_Read... [20:38:03]Read from MH i2c: 01 [20:38:03]MH_I2C_Read... [20:38:03]Read from MH i2c: 01 07 00 [20:38:03]MH_I2C_Read... [20:38:03]Read from MH i2c: 01 07 00 E9 C9 00 00 00 00 00 FF 0F C7 [20:38:03]RasterBufferAndPrint [20:38:03]line Счет N : (1)1036485 [20:38:03]line ИНН: 02508201610067 [20:38:03]line Контрольно-Кассовый Чек [20:38:03]line ПРОДАЖА [20:38:03]line ТРК (МРК, ГНК) : 22 [20:38:03]line Товар: 2710124130 [20:38:03]line Аи-92-К-5 [20:38:03]line 4.430 * 67.80 [20:38:03]line = 300.35 [20:38:03]line НДС 12% НСП 1% [20:38:03]line > о реализуемом товаре [20:38:03]line ОКРУГЛЕНИЕ: -0.35 [20:38:03]line ИТОГО: 300.00 [20:38:03]line Внесено: 300.00 [20:38:03]line СДАЧА: 0.00 [20:38:03]line НСП 1% : 2.66 [20:38:03]line НДС 12% : 31.90 [20:38:03]line Наличными: 300.00 [20:38:03]line Безнал.: 0.00 [20:38:03]line Место: АЗС № 94 "Партнер Нефть" [20:38:03]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:38:03]line СНО: Общий режим [20:38:03]line Чек 490 18.08.2024 20:38 [20:38:03]line Смена: 449 ФФД: 1.0 [20:38:03]line ЗНМ: 0300000099 [20:38:03]line РНМ: 0000000000091865 [20:38:03]line Версия ККМ: 001 [20:38:03]line ФМ: 0000000000871820 [20:38:03]line ФД: 260932 [20:38:03]line ФПД: 132905500941954 [20:38:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T203808&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260932&fm=132905500941954&tin=02508201610067®Number=0000000000091865&sum=30000 [20:38:03]OFD Sender: Processing packet 260932 [packets to send 192, broken 191] [20:38:03]ProducePacketName [20:38:03]name=ofd_packets/00260932 [20:38:03]OFD Sender: To server: pG, [20:38:03]CommunicateWithHost lk.salyk.kg:30040 [20:38:03]ConnectInit lk.salyk.kg [20:38:03]written 0, free lines is 4095 [20:38:03]Connected sock=10 [20:38: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 30 0F 01 00 00 27 43 07 01 54 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 01 00 00 F4 03 04 00 B0 5B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 44 FB 03 00 35 04 06 00 78 E0 79 2C 1E 82 E8 8F EA 59 4F 79 F5 27 [20:38: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 30 4F 00 00 00 09 DA 47 00 FF 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 30 10 04 04 00 44 FB 03 00 F4 03 04 00 04 05 C2 66 B6 04 01 00 00 E4 3A 79 D7 1A 34 88 6B [20:38:03]CommunicateWithHost err = 0 [20:38:03]CheckOFDResponse [20:38:03]1017 (14) - 77093643461234 [20:38:03]1041 (16) - 0000000000871820 [20:38:03]1040 (4) - 260932 [20:38:03]1012 (4) - 18.08.2024 14:28 [20:38:03]1206 (1) - 0 [20:38:03]OFD Sender: Remove packet 260932 [20:38:03]ProducePacketName [20:38:03]name=ofd_packets/00260932 [20:38:03]NVStorageDeleteData [20:38:03]Write to MH i2c: 01 00 00 14 CA DE [20:38:03]Write i2c OK [20:38:03]MH_I2C_Read... [20:38:03]Read from MH i2c: 01 [20:38:03]MH_I2C_Read... [20:38:03]Read from MH i2c: 01 07 00 [20:38:03]MH_I2C_Read... [20:38:03]Read from MH i2c: 01 07 00 14 CA 00 00 00 00 00 7D 0C 6E [20:38:03]RasterBufferAndPrint [20:38:03]line [20:38:03]line [20:38:03]line [20:38:03]line [20:38:03]line [20:38:03]written 0, free lines is 3200 [20:38:03]MH_Cut [20:38:03]Write to MH i2c: D1 01 00 1B CA 01 B7 [20:38:03]Write i2c OK [20:38:03]MH_I2C_Read... [20:38:03]Read from MH i2c: D1 [20:38:03]MH_I2C_Read... [20:38:03]Read from MH i2c: D1 01 00 [20:38:03]MH_I2C_Read... [20:38:03]Read from MH i2c: D1 01 00 1B CA 00 B6 [20:38:03]Write to MH i2c: 01 00 00 1C CA E6 [20:38:03]Write i2c OK [20:38:03]MH_I2C_Read... [20:38:04]OFD Sender: No OFD packet to send [20:38:05]*** Cut start [20:38:05]*** Purtial cut [20:38:05]*** Stage 1: CUTSNS_PIN = 1 [20:38:07]Read from MH i2c: 01 [20:38:07]MH_I2C_Read... [20:38:07]*** Stop cut motor [20:38:07]*** Cut end [20:38:07]Read from MH i2c: 01 07 00 [20:38:07]MH_I2C_Read... [20:38:07]Read from MH i2c: 01 07 00 1C CA 00 00 00 00 00 FF 0F FB [20:38:07]process_action close_receipt done [20:38:07]requested_data is exist [20:38:07]produce_requested_data [20:38:07]requested_item fm.sn is exist - process it [20:38:07]wFMCommunicate request_size=4 [20:38:07]MH_SAM_APDU [20:38:07]CAPDU: 80 11 00 00 [20:38:07]Write to MH i2c: E2 08 00 1D CA 80 11 00 00 00 00 00 00 61 [20:38:07]Write i2c OK [20:38:07]MH_I2C_Read... [20:38:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:07]Read from MH i2c: E2 [20:38:07]MH_I2C_Read... [20:38:07]Read from MH i2c: E2 17 00 [20:38:07]MH_I2C_Read... [20:38:07]Read from MH i2c: E2 17 00 1D CA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 AE [20:38:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:38:07]wFMCommunicate OK [20:38:07]requested_item fd.num is exist - process it [20:38:07]SAM_PROTO_GetFieldsCounters [20:38:07]wFMCommunicate request_size=4 [20:38:07]MH_SAM_APDU [20:38:07]CAPDU: 80 13 00 00 [20:38:07]Write to MH i2c: E2 08 00 1E CA 80 13 00 00 00 00 00 00 64 [20:38:07]Write i2c OK [20:38:07]MH_I2C_Read... [20:38:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:38:07]Read from MH i2c: E2 [20:38:07]MH_I2C_Read... [20:38:07]Read from MH i2c: E2 62 00 [20:38:07]MH_I2C_Read... [20:38:07]Read from MH i2c: E2 62 00 1E CA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 44 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 EA 01 00 00 5E 04 04 00 EA 01 00 00 57 04 04 00 EB 01 00 00 19 04 04 00 00 00 00 00 90 00 48 [20:38: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 44 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 EA 01 00 00 5E 04 04 00 EA 01 00 00 57 04 04 00 EB 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:38:07]wFMCommunicate OK [20:38:07]SAM_PROTO_GetFieldsCounters done [20:38:07]requested_item shift.num is exist - process it [20:38:07]requested_item shift.opened is exist - process it [20:38:07]req_shift_opened [20:38:07]FM_GetShiftState [20:38:07]SAM_PROTO_GetShiftState [20:38:07]wFMCommunicate request_size=4 [20:38:07]MH_SAM_APDU [20:38:07]CAPDU: 80 13 01 00 [20:38:07]Write to MH i2c: E2 08 00 1F CA 80 13 01 00 00 00 00 00 66 [20:38:07]Write i2c OK [20:38:07]MH_I2C_Read... [20:38:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:07]Read from MH i2c: E2 [20:38:07]MH_I2C_Read... [20:38:07]Read from MH i2c: E2 0E 00 [20:38:07]MH_I2C_Read... [20:38:07]Read from MH i2c: E2 0E 00 1F CA 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A3 [20:38:07]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:38:07]wFMCommunicate OK [20:38:07]SAM_PROTO_GetShiftState done [20:38:07]FM_GetShiftState done [20:38:07]req_shift_opened done [20:38:07]requested_item shift.open_date is exist - process it [20:38:07]req_shift_open_date [20:38:07]req_shift_open_date done [20:38:07]produce_requested_data done [20:38:07]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260932,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:38:07]process_action_free close_receipt [20:38:07]json_value_free [20:38:07]json_value_free done [20:38:07]process_json_proto returns [20:38:07]Send response to host [20:38:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260932,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:38:07]free response buf [20:38:07]execute_script done [20:38:07]execute_script returns [20:38:07]free content buf [20:38:07]Sock 9.Close socket [20:38:07]Sock 9.Thread stoped [20:38:09]OFD Sender: No OFD packet to send [20:38:14]OFD Sender: No OFD packet to send [20:38:19]OFD Sender: No OFD packet to send [20:38:24]OFD Sender: No OFD packet to send [20:38:29]OFD Sender: No OFD packet to send [20:38:34]OFD Sender: No OFD packet to send [20:38:39]OFD Sender: No OFD packet to send [20:38:44]OFD Sender: No OFD packet to send [20:38:49]OFD Sender: No OFD packet to send [20:38:54]OFD Sender: No OFD packet to send [20:38:59]OFD Sender: No OFD packet to send [20:39:04]OFD Sender: No OFD packet to send [20:39:09]OFD Sender: No OFD packet to send [20:39:14]OFD Sender: No OFD packet to send [20:39:18]accept exits with 7 [20:39:18]New connection [20:39:18]New thread 3066617188 created [20:39:18]Thread 3066473828 joined [20:39:18]Waiting for new connection... [20:39:18] Sock 7.Parse request [20:39:18]Sock 7.Check first char [20:39:18]Sock 7.First char is OK [20:39:18]request: POST /json_proto HTTP/1.0 [20:39:18]Method: POST [20:39:18]URL: /json_proto [20:39:18]Method is POST - this is cgi request [20:39:18]url: /json_proto [20:39:18]query_string will be loaded in cgi processing [20:39:18]execute_cgi json_proto POST (null) [20:39:18]execute_cgi path=json_proto method=POST [20:39:18]POST find Content-Length [20:39:18]Host: 172.17.55.133:8080 [20:39:18]Content-Length: 683 [20:39:18]Content-Type: application/json [20:39:18] [20:39:18]POST finish read [20:39:18]Found Content-Length = 683 [20:39:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:39:18]execute_script... [20:39: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)1036486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:39:18]POST & json_proto [20:39:18]process_json_proto [20:39:18]json parsed OK: [20:39:18]protocol is kg_v1.0 [20:39:18]action value=close_receipt [20:39:18]process_action close_receipt [20:39:18]cmd_close_receipt [20:39:18]MH_GetDate [20:39:18]Write to MH i2c: F0 00 00 20 CA D9 [20:39:18]Write i2c OK [20:39:18]MH_I2C_Read... [20:39:18]Read from MH i2c: F0 [20:39:18]MH_I2C_Read... [20:39:18]Read from MH i2c: F0 09 00 [20:39:18]MH_I2C_Read... [20:39:18]Read from MH i2c: F0 09 00 20 CA 00 FD 5B C2 66 34 48 D8 65 1B [20:39:18]GetLastDocTimeStamp 1724013488 [20:39:18]current date 1724013565 [20:39:18]FM_GetShiftState [20:39:18]SAM_PROTO_GetShiftState [20:39:18]wFMCommunicate request_size=4 [20:39:18]MH_SAM_APDU [20:39:18]CAPDU: 80 13 01 00 [20:39:18]Write to MH i2c: E2 08 00 21 CA 80 13 01 00 00 00 00 00 68 [20:39:18]Write i2c OK [20:39:18]MH_I2C_Read... [20:39:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:18]Read from MH i2c: E2 [20:39:18]MH_I2C_Read... [20:39:18]Read from MH i2c: E2 0E 00 [20:39:18]MH_I2C_Read... [20:39:18]Read from MH i2c: E2 0E 00 21 CA 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A5 [20:39:18]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:39:18]wFMCommunicate OK [20:39:18]SAM_PROTO_GetShiftState done [20:39:18]FM_GetShiftState done [20:39:18]opened in 1723940556 [20:39:18]opened+sec_in_day 1724026956 [20:39:18]quantity*price = 100005 [20:39:18]sum+1 = 100006 [20:39:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 491 18.08.2024 20:39 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260933 ФПД: 254234243236820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T203925&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260933&fm=254234243236820&tin=02508201610067®Number=0000000000091865&sum=100000 [20:39:19]StoreToDocumentArchive [20:39:19]shift 449 fd 260933 [20:39:19]save to /storage/0449/doc_00260933 [20:39:19]save last doc name /storage/0449/doc_00260933 to /storage/kkm_last_doc_name [20:39:19]save OK [20:39:19]Clear old archive folders... [20:39:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:39:19]tlvbuf is 006B9950 [20:39:19]SAM_PROTO_ClearQueue [20:39:19]wFMCommunicate request_size=4 [20:39:19]MH_SAM_APDU [20:39:19]CAPDU: 80 09 00 00 [20:39:19]Write to MH i2c: E2 08 00 2E CA 80 09 00 00 00 00 00 00 6A [20:39:19]Write i2c OK [20:39:19]MH_I2C_Read... [20:39:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:39:19]Read from MH i2c: E2 [20:39:19]MH_I2C_Read... [20:39:19]Read from MH i2c: E2 03 00 [20:39:19]MH_I2C_Read... [20:39:19]Read from MH i2c: E2 03 00 2E CA 00 90 00 6C [20:39:19]RAPDU: 90 00 [20:39:19]wFMCommunicate OK [20:39:19]SAM_PROTO_ClearQueue done [20:39:19]KKMCreateOFDPacket [20:39:19]OFDProtocolAddRootSTLVToBuf [20:39:19]FM_MakeSignedData [20:39:19]FM_MakeSignedData [20:39:19]SAM_PROTO_SignData [20:39:19]wFMCommunicate request_size=4 [20:39:19]MH_SAM_APDU [20:39:19]CAPDU: 80 0D 01 02 [20:39:19]Write to MH i2c: E2 08 00 2F CA 80 0D 01 02 00 00 00 00 72 [20:39:19]Write i2c OK [20:39:19]MH_I2C_Read... [20:39:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:39:19]Read from MH i2c: E2 [20:39:19]MH_I2C_Read... [20:39:19]Read from MH i2c: E2 03 00 [20:39:19]MH_I2C_Read... [20:39:19]Read from MH i2c: E2 03 00 2F CA 00 90 00 6D [20:39:19]RAPDU: 90 00 [20:39:19]wFMCommunicate OK [20:39:19]wFMCommunicate request_size=255 [20:39:19]MH_SAM_APDU [20:39:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 01 00 00 F4 03 04 00 FD 5B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 45 FB 03 00 35 04 06 00 E7 [20:39:19]Write to MH i2c: E2 02 01 30 CA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 01 00 00 F4 03 04 00 FD 5B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 45 FB 03 00 35 04 06 00 E7 00 00 D6 [20:39:19]Write i2c OK [20:39:19]MH_I2C_Read... [20:39:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:20]Read from MH i2c: E2 [20:39:20]MH_I2C_Read... [20:39:20]Read from MH i2c: E2 03 00 [20:39:20]MH_I2C_Read... [20:39:20]Read from MH i2c: E2 03 00 30 CA 00 90 00 6E [20:39:20]RAPDU: 90 00 [20:39:20]wFMCommunicate OK [20:39:20]wFMCommunicate request_size=10 [20:39:20]MH_SAM_APDU [20:39:20]CAPDU: 80 0D 02 02 05 39 85 C2 03 D4 [20:39:20]Write to MH i2c: E2 0D 00 31 CA 80 0D 02 02 05 00 39 85 C2 03 D4 00 00 D6 [20:39:20]Write i2c OK [20:39:20]MH_I2C_Read... [20:39:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:20]Read from MH i2c: E2 [20:39:20]MH_I2C_Read... [20:39:20]Read from MH i2c: E2 03 00 [20:39:20]MH_I2C_Read... [20:39:20]Read from MH i2c: E2 03 00 31 CA 00 90 00 6F [20:39:20]RAPDU: 90 00 [20:39:20]wFMCommunicate OK [20:39:20]wFMCommunicate request_size=4 [20:39:20]MH_SAM_APDU [20:39:20]CAPDU: 80 0D 03 02 [20:39:20]Write to MH i2c: E2 08 00 32 CA 80 0D 03 02 00 00 00 00 77 [20:39:20]Write i2c OK [20:39:20]MH_I2C_Read... [20:39:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:39:20]Read from MH i2c: E2 [20:39:20]MH_I2C_Read... [20:39:20]Read from MH i2c: E2 0B 00 [20:39:20]MH_I2C_Read... [20:39:20]Read from MH i2c: E2 0B 00 32 CA 00 17 96 4B 44 0D 51 97 5C 90 00 05 [20:39:20]RAPDU: 17 96 4B 44 0D 51 97 5C 90 00 [20:39:20]wFMCommunicate OK [20:39:20]SAM_PROTO_SignData done [20:39:20]FM_MakeSignedData done [20:39:20]CreateOFDProtocolMessage [20:39:20]wFMCommunicate request_size=4 [20:39:20]MH_SAM_APDU [20:39:20]CAPDU: 80 11 00 00 [20:39:20]Write to MH i2c: E2 08 00 33 CA 80 11 00 00 00 00 00 00 77 [20:39:20]Write i2c OK [20:39:20]MH_I2C_Read... [20:39:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:20]Read from MH i2c: E2 [20:39:20]MH_I2C_Read... [20:39:20]Read from MH i2c: E2 17 00 [20:39:20]MH_I2C_Read... [20:39:20]Read from MH i2c: E2 17 00 33 CA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C4 [20:39:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:39:20]wFMCommunicate OK [20:39:20]CreateOFDProtocolMessage done [20:39:20]OFDSenderStorePacket 260933 [20:39:20]StoreOFDPacket docnum=260933 [20:39:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 D3 60 07 01 CC C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 01 00 00 F4 03 04 00 FD 5B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 45 FB 03 00 35 04 06 00 E7 39 85 C2 03 D4 17 96 4B 44 0D 51 97 5C [20:39:20]CheckFolder [20:39:20]dirname=/storage/ofd_packets [20:39:20]CheckFolder done [20:39:20]ProducePacketName [20:39:20]name=ofd_packets/00260933 [20:39:20]NVStorageSaveData ofd_packets/00260933 [20:39:20]File name is /storage/ofd_packets/00260933 [20:39:20]Write 301 bytes [20:39:20]NVStorageSaveData done [20:39:20]OFDSenderStorePacket done [20:39:20]KKMCreateOFDPacket done [20:39:20]NVStorageSaveData kkm_last_timestamp [20:39:20]File name is /storage/kkm_last_timestamp [20:39:20]Write 4 bytes [20:39:20]NVStorageSaveData done [20:39:20]ExternCall_PrintAddStr [20:39:20]wPrintStart [20:39:20]Write to MH i2c: 01 00 00 34 CA FE [20:39:20]Write i2c OK [20:39:20]MH_I2C_Read... [20:39:20]Read from MH i2c: 01 [20:39:20]MH_I2C_Read... [20:39:20]Read from MH i2c: 01 07 00 [20:39:20]MH_I2C_Read... [20:39:20]Read from MH i2c: 01 07 00 34 CA 00 00 00 00 00 FF 0F 13 [20:39:20]RasterBufferAndPrint [20:39:20]line Счет N : (1)1036486 [20:39:20]line ИНН: 02508201610067 [20:39:20]line Контрольно-Кассовый Чек [20:39:20]line ПРОДАЖА [20:39:20]line ТРК (МРК, ГНК) : 12 [20:39:20]line Товар: 2710124130 [20:39:20]line Аи-92-К-5 [20:39:20]line 14.750 * 67.80 [20:39:20]line = 1000.05 [20:39:20]line НДС 12% НСП 1% [20:39:20]line > о реализуемом товаре [20:39:20]line ОКРУГЛЕНИЕ: -0.05 [20:39:20]line ИТОГО: 1000.00 [20:39:20]line Внесено: 1000.00 [20:39:20]line СДАЧА: 0.00 [20:39:20]line НСП 1% : 8.85 [20:39:20]line НДС 12% : 106.20 [20:39:20]line Наличными: 1000.00 [20:39:20]line Безнал.: 0.00 [20:39:20]line Место: АЗС № 94 "Партнер Нефть" [20:39:20]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:39:20]line СНО: Общий режим [20:39:20]line Чек 491 18.08.2024 20:39 [20:39:20]line Смена: 449 ФФД: 1.0 [20:39:20]line ЗНМ: 0300000099 [20:39:20]line РНМ: 0000000000091865 [20:39:20]line Версия ККМ: 001 [20:39:20]line ФМ: 0000000000871820 [20:39:20]line ФД: 260933 [20:39:20]line ФПД: 254234243236820 [20:39:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T203925&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260933&fm=254234243236820&tin=02508201610067®Number=0000000000091865&sum=100000 [20:39:20]OFD Sender: Processing packet 260933 [packets to send 192, broken 191] [20:39:20]ProducePacketName [20:39:20]name=ofd_packets/00260933 [20:39:20]OFD Sender: To server: pG, [20:39:20]CommunicateWithHost lk.salyk.kg:30040 [20:39:20]ConnectInit lk.salyk.kg [20:39:20]written 0, free lines is 4095 [20:39:20]Connected sock=10 [20:39: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 30 0F 01 00 00 D3 60 07 01 CC C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 01 00 00 F4 03 04 00 FD 5B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 45 FB 03 00 35 04 06 00 E7 39 85 C2 03 D4 17 96 4B 44 0D 51 97 5C [20:39: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 30 4F 00 00 00 2F 9F 47 00 B1 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 30 10 04 04 00 45 FB 03 00 F4 03 04 00 51 05 C2 66 B6 04 01 00 00 86 C3 B1 9E 5A F1 2E DA [20:39:20]CommunicateWithHost err = 0 [20:39:20]CheckOFDResponse [20:39:20]1017 (14) - 77093643461234 [20:39:20]1041 (16) - 0000000000871820 [20:39:20]1040 (4) - 260933 [20:39:20]1012 (4) - 18.08.2024 14:29 [20:39:20]1206 (1) - 0 [20:39:20]OFD Sender: Remove packet 260933 [20:39:20]ProducePacketName [20:39:20]name=ofd_packets/00260933 [20:39:20]NVStorageDeleteData [20:39:20]Write to MH i2c: 01 00 00 5F CA 29 [20:39:20]Write i2c OK [20:39:20]MH_I2C_Read... [20:39:20]Read from MH i2c: 01 [20:39:20]MH_I2C_Read... [20:39:20]Read from MH i2c: 01 07 00 [20:39:20]MH_I2C_Read... [20:39:20]Read from MH i2c: 01 07 00 5F CA 00 00 00 00 00 74 0C B0 [20:39:20]RasterBufferAndPrint [20:39:20]line [20:39:20]line [20:39:20]line [20:39:20]line [20:39:20]line [20:39:20]written 0, free lines is 3191 [20:39:21]MH_Cut [20:39:21]Write to MH i2c: D1 01 00 66 CA 01 02 [20:39:21]Write i2c OK [20:39:21]MH_I2C_Read... [20:39:21]Read from MH i2c: D1 [20:39:21]MH_I2C_Read... [20:39:21]Read from MH i2c: D1 01 00 [20:39:21]MH_I2C_Read... [20:39:21]Read from MH i2c: D1 01 00 66 CA 00 01 [20:39:21]Write to MH i2c: 01 00 00 67 CA 31 [20:39:21]Write i2c OK [20:39:21]MH_I2C_Read... [20:39:21]OFD Sender: No OFD packet to send [20:39:22]*** Cut start [20:39:22]*** Purtial cut [20:39:22]*** Stage 1: CUTSNS_PIN = 1 [20:39:24]Read from MH i2c: 01 [20:39:24]MH_I2C_Read... [20:39:24]*** Stop cut motor [20:39:24]*** Cut end [20:39:24]Read from MH i2c: 01 07 00 [20:39:24]MH_I2C_Read... [20:39:24]Read from MH i2c: 01 07 00 67 CA 00 00 00 00 00 FF 0F 46 [20:39:24]process_action close_receipt done [20:39:24]requested_data is exist [20:39:24]produce_requested_data [20:39:24]requested_item fm.sn is exist - process it [20:39:24]wFMCommunicate request_size=4 [20:39:24]MH_SAM_APDU [20:39:24]CAPDU: 80 11 00 00 [20:39:24]Write to MH i2c: E2 08 00 68 CA 80 11 00 00 00 00 00 00 AC [20:39:24]Write i2c OK [20:39:24]MH_I2C_Read... [20:39:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:24]Read from MH i2c: E2 [20:39:24]MH_I2C_Read... [20:39:24]Read from MH i2c: E2 17 00 [20:39:24]MH_I2C_Read... [20:39:24]Read from MH i2c: E2 17 00 68 CA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F9 [20:39:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:39:24]wFMCommunicate OK [20:39:24]requested_item fd.num is exist - process it [20:39:24]SAM_PROTO_GetFieldsCounters [20:39:24]wFMCommunicate request_size=4 [20:39:24]MH_SAM_APDU [20:39:24]CAPDU: 80 13 00 00 [20:39:24]Write to MH i2c: E2 08 00 69 CA 80 13 00 00 00 00 00 00 AF [20:39:24]Write i2c OK [20:39:24]MH_I2C_Read... [20:39:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:39:24]Read from MH i2c: E2 [20:39:24]MH_I2C_Read... [20:39:24]Read from MH i2c: E2 62 00 [20:39:24]MH_I2C_Read... [20:39:24]Read from MH i2c: E2 62 00 69 CA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 45 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 EB 01 00 00 5E 04 04 00 EB 01 00 00 57 04 04 00 EC 01 00 00 19 04 04 00 00 00 00 00 90 00 97 [20:39: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 45 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 EB 01 00 00 5E 04 04 00 EB 01 00 00 57 04 04 00 EC 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:39:24]wFMCommunicate OK [20:39:24]SAM_PROTO_GetFieldsCounters done [20:39:24]requested_item shift.num is exist - process it [20:39:24]requested_item shift.opened is exist - process it [20:39:24]req_shift_opened [20:39:24]FM_GetShiftState [20:39:24]SAM_PROTO_GetShiftState [20:39:24]wFMCommunicate request_size=4 [20:39:24]MH_SAM_APDU [20:39:24]CAPDU: 80 13 01 00 [20:39:24]Write to MH i2c: E2 08 00 6A CA 80 13 01 00 00 00 00 00 B1 [20:39:24]Write i2c OK [20:39:24]MH_I2C_Read... [20:39:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:24]Read from MH i2c: E2 [20:39:24]MH_I2C_Read... [20:39:24]Read from MH i2c: E2 0E 00 [20:39:24]MH_I2C_Read... [20:39:24]Read from MH i2c: E2 0E 00 6A CA 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 EE [20:39:24]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:39:24]wFMCommunicate OK [20:39:24]SAM_PROTO_GetShiftState done [20:39:24]FM_GetShiftState done [20:39:24]req_shift_opened done [20:39:24]requested_item shift.open_date is exist - process it [20:39:24]req_shift_open_date [20:39:24]req_shift_open_date done [20:39:24]produce_requested_data done [20:39:24]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260933,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:39:24]process_action_free close_receipt [20:39:24]json_value_free [20:39:24]json_value_free done [20:39:24]process_json_proto returns [20:39:24]Send response to host [20:39:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260933,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:39:24]free response buf [20:39:24]execute_script done [20:39:24]execute_script returns [20:39:24]free content buf [20:39:24]Sock 7.Close socket [20:39:24]Sock 7.Thread stoped [20:39:26]OFD Sender: No OFD packet to send [20:39:31]OFD Sender: No OFD packet to send [20:39:36]OFD Sender: No OFD packet to send [20:39:41]OFD Sender: No OFD packet to send [20:39:46]OFD Sender: No OFD packet to send [20:39:51]OFD Sender: No OFD packet to send [20:39:56]OFD Sender: No OFD packet to send [20:40:01]OFD Sender: No OFD packet to send [20:40:06]OFD Sender: No OFD packet to send [20:40:11]OFD Sender: No OFD packet to send [20:40:16]OFD Sender: No OFD packet to send [20:40:21]OFD Sender: No OFD packet to send [20:40:26]OFD Sender: No OFD packet to send [20:40:31]OFD Sender: No OFD packet to send [20:40:36]OFD Sender: No OFD packet to send [20:40:41]OFD Sender: No OFD packet to send [20:40:46]OFD Sender: No OFD packet to send [20:40:51]OFD Sender: No OFD packet to send [20:40:56]OFD Sender: No OFD packet to send [20:41:01]OFD Sender: No OFD packet to send [20:41:06]OFD Sender: No OFD packet to send [20:41:11]OFD Sender: No OFD packet to send [20:41:16]OFD Sender: No OFD packet to send [20:41:21]OFD Sender: No OFD packet to send [20:41:26]OFD Sender: No OFD packet to send [20:41:31]OFD Sender: No OFD packet to send [20:41:36]OFD Sender: No OFD packet to send [20:41:41]OFD Sender: No OFD packet to send [20:41:46]OFD Sender: No OFD packet to send [20:41:51]OFD Sender: No OFD packet to send [20:41:56]OFD Sender: No OFD packet to send [20:42:01]OFD Sender: No OFD packet to send [20:42:06]OFD Sender: No OFD packet to send [20:42:11]OFD Sender: No OFD packet to send [20:42:16]OFD Sender: No OFD packet to send [20:42:21]OFD Sender: No OFD packet to send [20:42:26]OFD Sender: No OFD packet to send [20:42:31]OFD Sender: No OFD packet to send [20:42:35]accept exits with 9 [20:42:35]New connection [20:42:35]New thread 3066473828 created [20:42:35]Thread 3066617188 joined [20:42:35]Waiting for new connection... [20:42:35] Sock 9.Parse request [20:42:35]Sock 9.Check first char [20:42:35]Sock 9.First char is OK [20:42:35]request: POST /json_proto HTTP/1.0 [20:42:35]Method: POST [20:42:35]URL: /json_proto [20:42:35]Method is POST - this is cgi request [20:42:35]url: /json_proto [20:42:35]query_string will be loaded in cgi processing [20:42:35]execute_cgi json_proto POST (null) [20:42:35]execute_cgi path=json_proto method=POST [20:42:35]POST find Content-Length [20:42:35]Host: 172.17.55.133:8080 [20:42:35]Content-Length: 683 [20:42:35]Content-Type: application/json [20:42:35] [20:42:35]POST finish read [20:42:35]Found Content-Length = 683 [20:42:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:42:35]execute_script... [20:42: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)1036487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:42:35]POST & json_proto [20:42:35]process_json_proto [20:42:35]json parsed OK: [20:42:35]protocol is kg_v1.0 [20:42:35]action value=close_receipt [20:42:35]process_action close_receipt [20:42:35]cmd_close_receipt [20:42:35]MH_GetDate [20:42:35]Write to MH i2c: F0 00 00 6B CA 24 [20:42:35]Write i2c OK [20:42:35]MH_I2C_Read... [20:42:35]Read from MH i2c: F0 [20:42:35]MH_I2C_Read... [20:42:35]Read from MH i2c: F0 09 00 [20:42:35]MH_I2C_Read... [20:42:35]Read from MH i2c: F0 09 00 6B CA 00 C2 5C C2 66 34 48 D8 65 2C [20:42:35]GetLastDocTimeStamp 1724013565 [20:42:35]current date 1724013762 [20:42:35]FM_GetShiftState [20:42:35]SAM_PROTO_GetShiftState [20:42:35]wFMCommunicate request_size=4 [20:42:35]MH_SAM_APDU [20:42:35]CAPDU: 80 13 01 00 [20:42:35]Write to MH i2c: E2 08 00 6C CA 80 13 01 00 00 00 00 00 B3 [20:42:35]Write i2c OK [20:42:35]MH_I2C_Read... [20:42:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:35]Read from MH i2c: E2 [20:42:35]MH_I2C_Read... [20:42:35]Read from MH i2c: E2 0E 00 [20:42:35]MH_I2C_Read... [20:42:35]Read from MH i2c: E2 0E 00 6C CA 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F0 [20:42:35]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:42:35]wFMCommunicate OK [20:42:35]SAM_PROTO_GetShiftState done [20:42:35]FM_GetShiftState done [20:42:35]opened in 1723940556 [20:42:35]opened+sec_in_day 1724026956 [20:42:35]quantity*price = 50063 [20:42:35]sum+1 = 50064 [20:42:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 492 18.08.2024 20:42 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260934 ФПД: 61718979213822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T204242&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260934&fm=61718979213822&tin=02508201610067®Number=0000000000091865&sum=50000 [20:42:36]StoreToDocumentArchive [20:42:36]shift 449 fd 260934 [20:42:36]save to /storage/0449/doc_00260934 [20:42:36]save last doc name /storage/0449/doc_00260934 to /storage/kkm_last_doc_name [20:42:36]save OK [20:42:36]Clear old archive folders... [20:42:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:42:36]tlvbuf is 00387C20 [20:42:36]SAM_PROTO_ClearQueue [20:42:36]wFMCommunicate request_size=4 [20:42:36]MH_SAM_APDU [20:42:36]CAPDU: 80 09 00 00 [20:42:36]Write to MH i2c: E2 08 00 79 CA 80 09 00 00 00 00 00 00 B5 [20:42:36]Write i2c OK [20:42:36]MH_I2C_Read... [20:42:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:42:36]Read from MH i2c: E2 [20:42:36]MH_I2C_Read... [20:42:36]Read from MH i2c: E2 03 00 [20:42:36]MH_I2C_Read... [20:42:36]Read from MH i2c: E2 03 00 79 CA 00 90 00 B7 [20:42:36]RAPDU: 90 00 [20:42:36]wFMCommunicate OK [20:42:36]SAM_PROTO_ClearQueue done [20:42:36]KKMCreateOFDPacket [20:42:36]OFDProtocolAddRootSTLVToBuf [20:42:36]FM_MakeSignedData [20:42:36]FM_MakeSignedData [20:42:36]SAM_PROTO_SignData [20:42:36]wFMCommunicate request_size=4 [20:42:36]MH_SAM_APDU [20:42:36]CAPDU: 80 0D 01 02 [20:42:36]Write to MH i2c: E2 08 00 7A CA 80 0D 01 02 00 00 00 00 BD [20:42:36]Write i2c OK [20:42:36]MH_I2C_Read... [20:42:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:42:36]Read from MH i2c: E2 [20:42:36]MH_I2C_Read... [20:42:36]Read from MH i2c: E2 03 00 [20:42:36]MH_I2C_Read... [20:42:36]Read from MH i2c: E2 03 00 7A CA 00 90 00 B8 [20:42:36]RAPDU: 90 00 [20:42:36]wFMCommunicate OK [20:42:36]wFMCommunicate request_size=255 [20:42:36]MH_SAM_APDU [20:42:36]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 01 00 00 F4 03 04 00 C2 5C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 46 FB 03 00 35 04 06 00 [20:42:36]Write to MH i2c: E2 02 01 7B CA 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 01 00 00 F4 03 04 00 C2 5C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 46 FB 03 00 35 04 06 00 00 00 E8 [20:42:36]Write i2c OK [20:42:36]MH_I2C_Read... [20:42:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:42:37]Read from MH i2c: E2 [20:42:37]MH_I2C_Read... [20:42:37]Read from MH i2c: E2 03 00 [20:42:37]MH_I2C_Read... [20:42:37]Read from MH i2c: E2 03 00 7B CA 00 90 00 B9 [20:42:37]RAPDU: 90 00 [20:42:37]wFMCommunicate OK [20:42:37]wFMCommunicate request_size=11 [20:42:37]MH_SAM_APDU [20:42:37]CAPDU: 80 0D 02 02 06 38 22 11 D4 F9 FE [20:42:37]Write to MH i2c: E2 0E 00 7C CA 80 0D 02 02 06 00 38 22 11 D4 F9 FE 00 00 02 [20:42:37]Write i2c OK [20:42:37]MH_I2C_Read... [20:42:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:42:37]Read from MH i2c: E2 [20:42:37]MH_I2C_Read... [20:42:37]Read from MH i2c: E2 03 00 [20:42:37]MH_I2C_Read... [20:42:37]Read from MH i2c: E2 03 00 7C CA 00 90 00 BA [20:42:37]RAPDU: 90 00 [20:42:37]wFMCommunicate OK [20:42:37]wFMCommunicate request_size=4 [20:42:37]MH_SAM_APDU [20:42:37]CAPDU: 80 0D 03 02 [20:42:37]Write to MH i2c: E2 08 00 7D CA 80 0D 03 02 00 00 00 00 C2 [20:42:37]Write i2c OK [20:42:37]MH_I2C_Read... [20:42:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:42:37]Read from MH i2c: E2 [20:42:37]MH_I2C_Read... [20:42:37]Read from MH i2c: E2 0B 00 [20:42:37]MH_I2C_Read... [20:42:37]Read from MH i2c: E2 0B 00 7D CA 00 19 C3 87 4B 1B 2D 4A 5F 90 00 62 [20:42:37]RAPDU: 19 C3 87 4B 1B 2D 4A 5F 90 00 [20:42:37]wFMCommunicate OK [20:42:37]SAM_PROTO_SignData done [20:42:37]FM_MakeSignedData done [20:42:37]CreateOFDProtocolMessage [20:42:37]wFMCommunicate request_size=4 [20:42:37]MH_SAM_APDU [20:42:37]CAPDU: 80 11 00 00 [20:42:37]Write to MH i2c: E2 08 00 7E CA 80 11 00 00 00 00 00 00 C2 [20:42:37]Write i2c OK [20:42:37]MH_I2C_Read... [20:42:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:37]Read from MH i2c: E2 [20:42:37]MH_I2C_Read... [20:42:37]Read from MH i2c: E2 17 00 [20:42:37]MH_I2C_Read... [20:42:37]Read from MH i2c: E2 17 00 7E CA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 0F [20:42:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:42:37]wFMCommunicate OK [20:42:37]CreateOFDProtocolMessage done [20:42:37]OFDSenderStorePacket 260934 [20:42:37]StoreOFDPacket docnum=260934 [20:42:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 2F 16 08 01 5C BE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 01 00 00 F4 03 04 00 C2 5C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 46 FB 03 00 35 04 06 00 38 22 11 D4 F9 FE 19 C3 87 4B 1B 2D 4A 5F [20:42:37]CheckFolder [20:42:37]dirname=/storage/ofd_packets [20:42:37]CheckFolder done [20:42:37]ProducePacketName [20:42:37]name=ofd_packets/00260934 [20:42:37]NVStorageSaveData ofd_packets/00260934 [20:42:37]File name is /storage/ofd_packets/00260934 [20:42:37]Write 302 bytes [20:42:37]NVStorageSaveData done [20:42:37]OFDSenderStorePacket done [20:42:37]KKMCreateOFDPacket done [20:42:37]NVStorageSaveData kkm_last_timestamp [20:42:37]File name is /storage/kkm_last_timestamp [20:42:37]Write 4 bytes [20:42:37]NVStorageSaveData done [20:42:37]ExternCall_PrintAddStr [20:42:37]wPrintStart [20:42:37]Write to MH i2c: 01 00 00 7F CA 49 [20:42:37]Write i2c OK [20:42:37]MH_I2C_Read... [20:42:37]Read from MH i2c: 01 [20:42:37]MH_I2C_Read... [20:42:37]Read from MH i2c: 01 07 00 [20:42:37]MH_I2C_Read... [20:42:37]Read from MH i2c: 01 07 00 7F CA 00 00 00 00 00 FF 0F 5E [20:42:37]RasterBufferAndPrint [20:42:37]line Счет N : (1)1036487 [20:42:37]line ИНН: 02508201610067 [20:42:37]line Контрольно-Кассовый Чек [20:42:37]line ПРОДАЖА [20:42:37]line ТРК (МРК, ГНК) : 33 [20:42:37]line Товар: 2710194210 [20:42:37]line ДТ(л)-К-4 [20:42:37]line 6.570 * 76.20 [20:42:37]line = 500.63 [20:42:37]line НДС 12% НСП 1% [20:42:37]line > о реализуемом товаре [20:42:37]line ОКРУГЛЕНИЕ: -0.63 [20:42:37]line ИТОГО: 500.00 [20:42:37]line Внесено: 500.00 [20:42:37]line СДАЧА: 0.00 [20:42:37]line НСП 1% : 4.43 [20:42:37]line НДС 12% : 53.16 [20:42:37]line Наличными: 500.00 [20:42:37]line Безнал.: 0.00 [20:42:37]line Место: АЗС № 94 "Партнер Нефть" [20:42:37]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:42:37]line СНО: Общий режим [20:42:37]line Чек 492 18.08.2024 20:42 [20:42:37]line Смена: 449 ФФД: 1.0 [20:42:37]line ЗНМ: 0300000099 [20:42:37]line РНМ: 0000000000091865 [20:42:37]line Версия ККМ: 001 [20:42:37]line ФМ: 0000000000871820 [20:42:37]line ФД: 260934 [20:42:37]line ФПД: 61718979213822 [20:42:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T204242&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260934&fm=61718979213822&tin=02508201610067®Number=0000000000091865&sum=50000 [20:42:37]OFD Sender: Processing packet 260934 [packets to send 192, broken 191] [20:42:37]ProducePacketName [20:42:37]name=ofd_packets/00260934 [20:42:37]OFD Sender: To server: pG, [20:42:37]CommunicateWithHost lk.salyk.kg:30040 [20:42:37]ConnectInit lk.salyk.kg [20:42:37]written 0, free lines is 4095 [20:42:37]Connected sock=10 [20:42: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 30 10 01 00 00 2F 16 08 01 5C BE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 01 00 00 F4 03 04 00 C2 5C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 46 FB 03 00 35 04 06 00 38 22 11 D4 F9 FE 19 C3 87 4B 1B 2D 4A 5F [20:42: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 30 4F 00 00 00 35 0B 47 00 B1 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 30 10 04 04 00 46 FB 03 00 F4 03 04 00 16 06 C2 66 B6 04 01 00 00 1B D0 45 4A 20 7E 1A 90 [20:42:37]CommunicateWithHost err = 0 [20:42:37]CheckOFDResponse [20:42:37]1017 (14) - 77093643461234 [20:42:37]1041 (16) - 0000000000871820 [20:42:37]1040 (4) - 260934 [20:42:37]1012 (4) - 18.08.2024 14:32 [20:42:37]1206 (1) - 0 [20:42:37]OFD Sender: Remove packet 260934 [20:42:37]ProducePacketName [20:42:37]name=ofd_packets/00260934 [20:42:37]NVStorageDeleteData [20:42:38]Write to MH i2c: 01 00 00 AA CA 74 [20:42:38]Write i2c OK [20:42:38]MH_I2C_Read... [20:42:38]Read from MH i2c: 01 [20:42:38]MH_I2C_Read... [20:42:38]Read from MH i2c: 01 07 00 [20:42:38]MH_I2C_Read... [20:42:38]Read from MH i2c: 01 07 00 AA CA 00 00 00 00 00 78 0C FF [20:42:38]RasterBufferAndPrint [20:42:38]line [20:42:38]line [20:42:38]line [20:42:38]line [20:42:38]line [20:42:38]written 0, free lines is 3196 [20:42:38]MH_Cut [20:42:38]Write to MH i2c: D1 01 00 B1 CA 01 4D [20:42:38]Write i2c OK [20:42:38]MH_I2C_Read... [20:42:38]Read from MH i2c: D1 [20:42:38]MH_I2C_Read... [20:42:38]Read from MH i2c: D1 01 00 [20:42:38]MH_I2C_Read... [20:42:38]Read from MH i2c: D1 01 00 B1 CA 00 4C [20:42:38]Write to MH i2c: 01 00 00 B2 CA 7C [20:42:38]Write i2c OK [20:42:38]MH_I2C_Read... [20:42:38]OFD Sender: No OFD packet to send [20:42:39]*** Cut start [20:42:39]*** Purtial cut [20:42:39]*** Stage 1: CUTSNS_PIN = 1 [20:42:41]Read from MH i2c: 01 [20:42:41]MH_I2C_Read... [20:42:41]*** Stop cut motor [20:42:41]*** Cut end [20:42:41]Read from MH i2c: 01 07 00 [20:42:41]MH_I2C_Read... [20:42:41]Read from MH i2c: 01 07 00 B2 CA 00 00 00 00 00 FF 0F 91 [20:42:41]process_action close_receipt done [20:42:41]requested_data is exist [20:42:41]produce_requested_data [20:42:41]requested_item fm.sn is exist - process it [20:42:41]wFMCommunicate request_size=4 [20:42:41]MH_SAM_APDU [20:42:41]CAPDU: 80 11 00 00 [20:42:41]Write to MH i2c: E2 08 00 B3 CA 80 11 00 00 00 00 00 00 F7 [20:42:41]Write i2c OK [20:42:41]MH_I2C_Read... [20:42:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:41]Read from MH i2c: E2 [20:42:41]MH_I2C_Read... [20:42:41]Read from MH i2c: E2 17 00 [20:42:41]MH_I2C_Read... [20:42:41]Read from MH i2c: E2 17 00 B3 CA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 44 [20:42:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:42:41]wFMCommunicate OK [20:42:41]requested_item fd.num is exist - process it [20:42:41]SAM_PROTO_GetFieldsCounters [20:42:41]wFMCommunicate request_size=4 [20:42:41]MH_SAM_APDU [20:42:41]CAPDU: 80 13 00 00 [20:42:41]Write to MH i2c: E2 08 00 B4 CA 80 13 00 00 00 00 00 00 FA [20:42:41]Write i2c OK [20:42:41]MH_I2C_Read... [20:42:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:42:41]Read from MH i2c: E2 [20:42:41]MH_I2C_Read... [20:42:41]Read from MH i2c: E2 62 00 [20:42:41]MH_I2C_Read... [20:42:41]Read from MH i2c: E2 62 00 B4 CA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 46 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 EC 01 00 00 5E 04 04 00 EC 01 00 00 57 04 04 00 ED 01 00 00 19 04 04 00 00 00 00 00 90 00 E6 [20:42: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 46 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 EC 01 00 00 5E 04 04 00 EC 01 00 00 57 04 04 00 ED 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:42:41]wFMCommunicate OK [20:42:41]SAM_PROTO_GetFieldsCounters done [20:42:41]requested_item shift.num is exist - process it [20:42:41]requested_item shift.opened is exist - process it [20:42:41]req_shift_opened [20:42:41]FM_GetShiftState [20:42:41]SAM_PROTO_GetShiftState [20:42:41]wFMCommunicate request_size=4 [20:42:41]MH_SAM_APDU [20:42:41]CAPDU: 80 13 01 00 [20:42:41]Write to MH i2c: E2 08 00 B5 CA 80 13 01 00 00 00 00 00 FC [20:42:41]Write i2c OK [20:42:41]MH_I2C_Read... [20:42:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:41]Read from MH i2c: E2 [20:42:41]MH_I2C_Read... [20:42:41]Read from MH i2c: E2 0E 00 [20:42:41]MH_I2C_Read... [20:42:41]Read from MH i2c: E2 0E 00 B5 CA 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 39 [20:42:41]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:42:41]wFMCommunicate OK [20:42:41]SAM_PROTO_GetShiftState done [20:42:41]FM_GetShiftState done [20:42:41]req_shift_opened done [20:42:41]requested_item shift.open_date is exist - process it [20:42:41]req_shift_open_date [20:42:41]req_shift_open_date done [20:42:41]produce_requested_data done [20:42:41]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260934,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:42:41]process_action_free close_receipt [20:42:41]json_value_free [20:42:41]json_value_free done [20:42:41]process_json_proto returns [20:42:41]Send response to host [20:42:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260934,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:42:41]free response buf [20:42:41]execute_script done [20:42:41]execute_script returns [20:42:41]free content buf [20:42:41]Sock 9.Close socket [20:42:41]Sock 9.Thread stoped [20:42:43]OFD Sender: No OFD packet to send [20:42:48]OFD Sender: No OFD packet to send [20:42:53]OFD Sender: No OFD packet to send [20:42:58]OFD Sender: No OFD packet to send [20:43:03]OFD Sender: No OFD packet to send [20:43:08]OFD Sender: No OFD packet to send [20:43:13]OFD Sender: No OFD packet to send [20:43:18]OFD Sender: No OFD packet to send [20:43:23]OFD Sender: No OFD packet to send [20:43:28]OFD Sender: No OFD packet to send [20:43:33]OFD Sender: No OFD packet to send [20:43:38]OFD Sender: No OFD packet to send [20:43:43]OFD Sender: No OFD packet to send [20:43:48]OFD Sender: No OFD packet to send [20:43:53]OFD Sender: No OFD packet to send [20:43:58]OFD Sender: No OFD packet to send [20:44:03]OFD Sender: No OFD packet to send [20:44:08]OFD Sender: No OFD packet to send [20:44:13]OFD Sender: No OFD packet to send [20:44:18]OFD Sender: No OFD packet to send [20:44:23]OFD Sender: No OFD packet to send [20:44:28]OFD Sender: No OFD packet to send [20:44:33]OFD Sender: No OFD packet to send [20:44:38]OFD Sender: No OFD packet to send [20:44:43]OFD Sender: No OFD packet to send [20:44:46]accept exits with 7 [20:44:46]New connection [20:44:46]New thread 3066617188 created [20:44:46]Thread 3066473828 joined [20:44:46]Waiting for new connection... [20:44:46] Sock 7.Parse request [20:44:46]Sock 7.Check first char [20:44:46]Sock 7.First char is OK [20:44:46]request: POST /json_proto HTTP/1.0 [20:44:46]Method: POST [20:44:46]URL: /json_proto [20:44:46]Method is POST - this is cgi request [20:44:46]url: /json_proto [20:44:46]query_string will be loaded in cgi processing [20:44:46]execute_cgi json_proto POST (null) [20:44:46]execute_cgi path=json_proto method=POST [20:44:46]POST find Content-Length [20:44:46]Host: 172.17.55.133:8080 [20:44:46]Content-Length: 678 [20:44:46]Content-Type: application/json [20:44:46] [20:44:46]POST finish read [20:44:46]Found Content-Length = 678 [20:44:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036488", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:46]execute_script... [20:44: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)1036488", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:46]POST & json_proto [20:44:46]process_json_proto [20:44:46]json parsed OK: [20:44:46]protocol is kg_v1.0 [20:44:46]action value=close_receipt [20:44:46]process_action close_receipt [20:44:46]cmd_close_receipt [20:44:46]MH_GetDate [20:44:46]Write to MH i2c: F0 00 00 B6 CA 6F [20:44:46]Write i2c OK [20:44:46]MH_I2C_Read... [20:44:46]Read from MH i2c: F0 [20:44:46]MH_I2C_Read... [20:44:46]Read from MH i2c: F0 09 00 [20:44:46]MH_I2C_Read... [20:44:46]Read from MH i2c: F0 09 00 B6 CA 00 45 5D C2 66 34 48 D8 65 FB [20:44:46]GetLastDocTimeStamp 1724013762 [20:44:46]current date 1724013893 [20:44:46]FM_GetShiftState [20:44:46]SAM_PROTO_GetShiftState [20:44:46]wFMCommunicate request_size=4 [20:44:46]MH_SAM_APDU [20:44:46]CAPDU: 80 13 01 00 [20:44:46]Write to MH i2c: E2 08 00 B7 CA 80 13 01 00 00 00 00 00 FE [20:44:46]Write i2c OK [20:44:46]MH_I2C_Read... [20:44:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:46]Read from MH i2c: E2 [20:44:46]MH_I2C_Read... [20:44:46]Read from MH i2c: E2 0E 00 [20:44:46]MH_I2C_Read... [20:44:46]Read from MH i2c: E2 0E 00 B7 CA 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 3B [20:44:46]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:44:46]wFMCommunicate OK [20:44:46]SAM_PROTO_GetShiftState done [20:44:46]FM_GetShiftState done [20:44:46]opened in 1723940556 [20:44:46]opened+sec_in_day 1724026956 [20:44:46]quantity*price = 50010 [20:44:46]sum+1 = 50012 [20:44:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 493 18.08.2024 20:44 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260935 ФПД: 127919163303645 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T204453&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260935&fm=127919163303645&tin=02508201610067®Number=0000000000091865&sum=50000 [20:44:47]StoreToDocumentArchive [20:44:47]shift 449 fd 260935 [20:44:47]save to /storage/0449/doc_00260935 [20:44:47]save last doc name /storage/0449/doc_00260935 to /storage/kkm_last_doc_name [20:44:47]save OK [20:44:47]Clear old archive folders... [20:44:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:44:47]tlvbuf is 00433900 [20:44:47]SAM_PROTO_ClearQueue [20:44:47]wFMCommunicate request_size=4 [20:44:47]MH_SAM_APDU [20:44:47]CAPDU: 80 09 00 00 [20:44:47]Write to MH i2c: E2 08 00 C4 CA 80 09 00 00 00 00 00 00 00 [20:44:47]Write i2c OK [20:44:47]MH_I2C_Read... [20:44:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:44:47]Read from MH i2c: E2 [20:44:47]MH_I2C_Read... [20:44:47]Read from MH i2c: E2 03 00 [20:44:47]MH_I2C_Read... [20:44:47]Read from MH i2c: E2 03 00 C4 CA 00 90 00 02 [20:44:47]RAPDU: 90 00 [20:44:47]wFMCommunicate OK [20:44:47]SAM_PROTO_ClearQueue done [20:44:47]KKMCreateOFDPacket [20:44:47]OFDProtocolAddRootSTLVToBuf [20:44:47]FM_MakeSignedData [20:44:47]FM_MakeSignedData [20:44:47]SAM_PROTO_SignData [20:44:47]wFMCommunicate request_size=4 [20:44:47]MH_SAM_APDU [20:44:47]CAPDU: 80 0D 01 02 [20:44:47]Write to MH i2c: E2 08 00 C5 CA 80 0D 01 02 00 00 00 00 08 [20:44:47]Write i2c OK [20:44:47]MH_I2C_Read... [20:44:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:44:47]Read from MH i2c: E2 [20:44:47]MH_I2C_Read... [20:44:47]Read from MH i2c: E2 03 00 [20:44:47]MH_I2C_Read... [20:44:47]Read from MH i2c: E2 03 00 C5 CA 00 90 00 03 [20:44:47]RAPDU: 90 00 [20:44:47]wFMCommunicate OK [20:44:47]wFMCommunicate request_size=255 [20:44:47]MH_SAM_APDU [20:44:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 01 00 00 F4 03 04 00 45 5D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 47 FB 03 00 35 04 06 00 74 [20:44:47]Write to MH i2c: E2 02 01 C6 CA 80 0D 02 02 FA 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 01 00 00 F4 03 04 00 45 5D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 47 FB 03 00 35 04 06 00 74 00 00 A0 [20:44:47]Write i2c OK [20:44:47]MH_I2C_Read... [20:44:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:47]Read from MH i2c: E2 [20:44:47]MH_I2C_Read... [20:44:47]Read from MH i2c: E2 03 00 [20:44:47]MH_I2C_Read... [20:44:47]Read from MH i2c: E2 03 00 C6 CA 00 90 00 04 [20:44:47]RAPDU: 90 00 [20:44:47]wFMCommunicate OK [20:44:47]wFMCommunicate request_size=10 [20:44:47]MH_SAM_APDU [20:44:47]CAPDU: 80 0D 02 02 05 57 80 49 E6 DD [20:44:47]Write to MH i2c: E2 0D 00 C7 CA 80 0D 02 02 05 00 57 80 49 E6 DD 00 00 F8 [20:44:47]Write i2c OK [20:44:47]MH_I2C_Read... [20:44:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:47]Read from MH i2c: E2 [20:44:47]MH_I2C_Read... [20:44:47]Read from MH i2c: E2 03 00 [20:44:47]MH_I2C_Read... [20:44:47]Read from MH i2c: E2 03 00 C7 CA 00 90 00 05 [20:44:47]RAPDU: 90 00 [20:44:47]wFMCommunicate OK [20:44:47]wFMCommunicate request_size=4 [20:44:47]MH_SAM_APDU [20:44:47]CAPDU: 80 0D 03 02 [20:44:47]Write to MH i2c: E2 08 00 C8 CA 80 0D 03 02 00 00 00 00 0D [20:44:47]Write i2c OK [20:44:47]MH_I2C_Read... [20:44:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:44:47]Read from MH i2c: E2 [20:44:47]MH_I2C_Read... [20:44:47]Read from MH i2c: E2 0B 00 [20:44:47]MH_I2C_Read... [20:44:47]Read from MH i2c: E2 0B 00 C8 CA 00 8B 57 BA 28 32 F9 3B 8E 90 00 C6 [20:44:47]RAPDU: 8B 57 BA 28 32 F9 3B 8E 90 00 [20:44:47]wFMCommunicate OK [20:44:47]SAM_PROTO_SignData done [20:44:47]FM_MakeSignedData done [20:44:47]CreateOFDProtocolMessage [20:44:47]wFMCommunicate request_size=4 [20:44:47]MH_SAM_APDU [20:44:47]CAPDU: 80 11 00 00 [20:44:47]Write to MH i2c: E2 08 00 C9 CA 80 11 00 00 00 00 00 00 0D [20:44:47]Write i2c OK [20:44:47]MH_I2C_Read... [20:44:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:48]Read from MH i2c: E2 [20:44:48]MH_I2C_Read... [20:44:48]Read from MH i2c: E2 17 00 [20:44:48]MH_I2C_Read... [20:44:48]Read from MH i2c: E2 17 00 C9 CA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 5A [20:44:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:44:48]wFMCommunicate OK [20:44:48]CreateOFDProtocolMessage done [20:44:48]OFDSenderStorePacket 260935 [20:44:48]StoreOFDPacket docnum=260935 [20:44:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 FC B6 07 01 6A 50 5A 03 01 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 01 00 00 F4 03 04 00 45 5D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 47 FB 03 00 35 04 06 00 74 57 80 49 E6 DD 8B 57 BA 28 32 F9 3B 8E [20:44:48]CheckFolder [20:44:48]dirname=/storage/ofd_packets [20:44:48]CheckFolder done [20:44:48]ProducePacketName [20:44:48]name=ofd_packets/00260935 [20:44:48]NVStorageSaveData ofd_packets/00260935 [20:44:48]File name is /storage/ofd_packets/00260935 [20:44:48]Write 301 bytes [20:44:48]NVStorageSaveData done [20:44:48]OFDSenderStorePacket done [20:44:48]KKMCreateOFDPacket done [20:44:48]NVStorageSaveData kkm_last_timestamp [20:44:48]File name is /storage/kkm_last_timestamp [20:44:48]Write 4 bytes [20:44:48]NVStorageSaveData done [20:44:48]ExternCall_PrintAddStr [20:44:48]wPrintStart [20:44:48]Write to MH i2c: 01 00 00 CA CA 94 [20:44:48]Write i2c OK [20:44:48]MH_I2C_Read... [20:44:48]Read from MH i2c: 01 [20:44:48]MH_I2C_Read... [20:44:48]Read from MH i2c: 01 07 00 [20:44:48]MH_I2C_Read... [20:44:48]Read from MH i2c: 01 07 00 CA CA 00 00 00 00 00 FF 0F A9 [20:44:48]RasterBufferAndPrint [20:44:48]line Счет N : (1)1036488 [20:44:48]line ИНН: 02508201610067 [20:44:48]line Контрольно-Кассовый Чек [20:44:48]line ПРОДАЖА [20:44:48]line ТРК (МРК, ГНК) : 13 [20:44:48]line Товар: 2710124500 [20:44:48]line Аи-95-К-5 [20:44:48]line 6.740 * 74.20 [20:44:48]line = 500.11 [20:44:48]line НДС 12% НСП 1% [20:44:48]line > о реализуемом товаре [20:44:48]line ОКРУГЛЕНИЕ: -0.11 [20:44:48]line ИТОГО: 500.00 [20:44:48]line Внесено: 500.00 [20:44:48]line СДАЧА: 0.00 [20:44:48]line НСП 1% : 4.43 [20:44:48]line НДС 12% : 53.11 [20:44:48]line Наличными: 500.00 [20:44:48]line Безнал.: 0.00 [20:44:48]line Место: АЗС № 94 "Партнер Нефть" [20:44:48]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:44:48]line СНО: Общий режим [20:44:48]line Чек 493 18.08.2024 20:44 [20:44:48]line Смена: 449 ФФД: 1.0 [20:44:48]line ЗНМ: 0300000099 [20:44:48]line РНМ: 0000000000091865 [20:44:48]line Версия ККМ: 001 [20:44:48]line ФМ: 0000000000871820 [20:44:48]line ФД: 260935 [20:44:48]line ФПД: 127919163303645 [20:44:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T204453&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260935&fm=127919163303645&tin=02508201610067®Number=0000000000091865&sum=50000 [20:44:48]written 0, free lines is 4095 [20:44:48]OFD Sender: Processing packet 260935 [packets to send 192, broken 191] [20:44:48]ProducePacketName [20:44:48]name=ofd_packets/00260935 [20:44:48]OFD Sender: To server: pG, [20:44:48]CommunicateWithHost lk.salyk.kg:30040 [20:44:48]ConnectInit lk.salyk.kg [20:44:48]Connected sock=10 [20:44: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 30 0F 01 00 00 FC B6 07 01 6A 50 5A 03 01 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 01 00 00 F4 03 04 00 45 5D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 47 FB 03 00 35 04 06 00 74 57 80 49 E6 DD 8B 57 BA 28 32 F9 3B 8E [20:44: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 30 4F 00 00 00 E5 FF 47 00 AE 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 30 10 04 04 00 47 FB 03 00 F4 03 04 00 98 06 C2 66 B6 04 01 00 00 E6 76 4C BA 90 1E 34 20 [20:44:48]CommunicateWithHost err = 0 [20:44:48]CheckOFDResponse [20:44:48]1017 (14) - 77093643461234 [20:44:48]1041 (16) - 0000000000871820 [20:44:48]1040 (4) - 260935 [20:44:48]1012 (4) - 18.08.2024 14:35 [20:44:48]1206 (1) - 0 [20:44:48]OFD Sender: Remove packet 260935 [20:44:48]ProducePacketName [20:44:48]name=ofd_packets/00260935 [20:44:48]NVStorageDeleteData [20:44:48]Write to MH i2c: 01 00 00 F5 CA BF [20:44:48]Write i2c OK [20:44:48]MH_I2C_Read... [20:44:48]Read from MH i2c: 01 [20:44:48]MH_I2C_Read... [20:44:48]Read from MH i2c: 01 07 00 [20:44:48]MH_I2C_Read... [20:44:48]Read from MH i2c: 01 07 00 F5 CA 00 00 00 00 00 7B 0C 4D [20:44:48]RasterBufferAndPrint [20:44:48]line [20:44:48]line [20:44:48]line [20:44:48]line [20:44:48]line [20:44:48]written 0, free lines is 3198 [20:44:48]MH_Cut [20:44:48]Write to MH i2c: D1 01 00 FC CA 01 98 [20:44:48]Write i2c OK [20:44:48]MH_I2C_Read... [20:44:48]Read from MH i2c: D1 [20:44:48]MH_I2C_Read... [20:44:48]Read from MH i2c: D1 01 00 [20:44:48]MH_I2C_Read... [20:44:48]Read from MH i2c: D1 01 00 FC CA 00 97 [20:44:48]Write to MH i2c: 01 00 00 FD CA C7 [20:44:48]Write i2c OK [20:44:48]MH_I2C_Read... [20:44:48]OFD Sender: No OFD packet to send [20:44:49]*** Cut start [20:44:49]*** Purtial cut [20:44:49]*** Stage 1: CUTSNS_PIN = 1 [20:44:51]Read from MH i2c: 01 [20:44:51]MH_I2C_Read... [20:44:51]*** Stop cut motor [20:44:51]*** Cut end [20:44:51]Read from MH i2c: 01 07 00 [20:44:51]MH_I2C_Read... [20:44:51]Read from MH i2c: 01 07 00 FD CA 00 00 00 00 00 FF 0F DC [20:44:51]process_action close_receipt done [20:44:51]requested_data is exist [20:44:51]produce_requested_data [20:44:51]requested_item fm.sn is exist - process it [20:44:51]wFMCommunicate request_size=4 [20:44:51]MH_SAM_APDU [20:44:51]CAPDU: 80 11 00 00 [20:44:51]Write to MH i2c: E2 08 00 FE CA 80 11 00 00 00 00 00 00 42 [20:44:51]Write i2c OK [20:44:51]MH_I2C_Read... [20:44:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:51]Read from MH i2c: E2 [20:44:51]MH_I2C_Read... [20:44:51]Read from MH i2c: E2 17 00 [20:44:51]MH_I2C_Read... [20:44:51]Read from MH i2c: E2 17 00 FE CA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 8F [20:44:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:44:51]wFMCommunicate OK [20:44:51]requested_item fd.num is exist - process it [20:44:51]SAM_PROTO_GetFieldsCounters [20:44:51]wFMCommunicate request_size=4 [20:44:51]MH_SAM_APDU [20:44:51]CAPDU: 80 13 00 00 [20:44:51]Write to MH i2c: E2 08 00 FF CA 80 13 00 00 00 00 00 00 45 [20:44:51]Write i2c OK [20:44:51]MH_I2C_Read... [20:44:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:44:51]Read from MH i2c: E2 [20:44:51]MH_I2C_Read... [20:44:51]Read from MH i2c: E2 62 00 [20:44:51]MH_I2C_Read... [20:44:51]Read from MH i2c: E2 62 00 FF CA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 47 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 ED 01 00 00 5E 04 04 00 ED 01 00 00 57 04 04 00 EE 01 00 00 19 04 04 00 00 00 00 00 90 00 35 [20:44: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 47 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 ED 01 00 00 5E 04 04 00 ED 01 00 00 57 04 04 00 EE 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:44:51]wFMCommunicate OK [20:44:51]SAM_PROTO_GetFieldsCounters done [20:44:51]requested_item shift.num is exist - process it [20:44:51]requested_item shift.opened is exist - process it [20:44:51]req_shift_opened [20:44:51]FM_GetShiftState [20:44:51]SAM_PROTO_GetShiftState [20:44:51]wFMCommunicate request_size=4 [20:44:51]MH_SAM_APDU [20:44:51]CAPDU: 80 13 01 00 [20:44:51]Write to MH i2c: E2 08 00 00 CB 80 13 01 00 00 00 00 00 48 [20:44:51]Write i2c OK [20:44:51]MH_I2C_Read... [20:44:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:51]Read from MH i2c: E2 [20:44:51]MH_I2C_Read... [20:44:51]Read from MH i2c: E2 0E 00 [20:44:51]MH_I2C_Read... [20:44:51]Read from MH i2c: E2 0E 00 00 CB 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 85 [20:44:51]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:44:51]wFMCommunicate OK [20:44:51]SAM_PROTO_GetShiftState done [20:44:51]FM_GetShiftState done [20:44:51]req_shift_opened done [20:44:51]requested_item shift.open_date is exist - process it [20:44:51]req_shift_open_date [20:44:51]req_shift_open_date done [20:44:51]produce_requested_data done [20:44:51]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260935,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:44:51]process_action_free close_receipt [20:44:51]json_value_free [20:44:51]json_value_free done [20:44:51]process_json_proto returns [20:44:51]Send response to host [20:44:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260935,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:44:51]free response buf [20:44:51]execute_script done [20:44:51]execute_script returns [20:44:51]free content buf [20:44:51]Sock 7.Close socket [20:44:51]Sock 7.Thread stoped [20:44:53]OFD Sender: No OFD packet to send [20:44:58]OFD Sender: No OFD packet to send [20:45:03]OFD Sender: No OFD packet to send [20:45:08]OFD Sender: No OFD packet to send [20:45:13]OFD Sender: No OFD packet to send [20:45:18]OFD Sender: No OFD packet to send [20:45:23]OFD Sender: No OFD packet to send [20:45:28]OFD Sender: No OFD packet to send [20:45:33]OFD Sender: No OFD packet to send [20:45:38]OFD Sender: No OFD packet to send [20:45:43]OFD Sender: No OFD packet to send [20:45:48]OFD Sender: No OFD packet to send [20:45:53]OFD Sender: No OFD packet to send [20:45:58]OFD Sender: No OFD packet to send [20:46:03]OFD Sender: No OFD packet to send [20:46:08]OFD Sender: No OFD packet to send [20:46:14]OFD Sender: No OFD packet to send [20:46:19]OFD Sender: No OFD packet to send [20:46:24]OFD Sender: No OFD packet to send [20:46:29]OFD Sender: No OFD packet to send [20:46:34]OFD Sender: No OFD packet to send [20:46:39]OFD Sender: No OFD packet to send [20:46:44]OFD Sender: No OFD packet to send [20:46:49]OFD Sender: No OFD packet to send [20:46:54]OFD Sender: No OFD packet to send [20:46:59]OFD Sender: No OFD packet to send [20:47:04]OFD Sender: No OFD packet to send [20:47:09]OFD Sender: No OFD packet to send [20:47:14]OFD Sender: No OFD packet to send [20:47:19]OFD Sender: No OFD packet to send [20:47:24]OFD Sender: No OFD packet to send [20:47:29]OFD Sender: No OFD packet to send [20:47:34]OFD Sender: No OFD packet to send [20:47:39]OFD Sender: No OFD packet to send [20:47:44]OFD Sender: No OFD packet to send [20:47:48]accept exits with 9 [20:47:48]New connection [20:47:48]New thread 3066473828 created [20:47:48]Thread 3066617188 joined [20:47:48]Waiting for new connection... [20:47:48] Sock 9.Parse request [20:47:48]Sock 9.Check first char [20:47:48]Sock 9.First char is OK [20:47:48]request: POST /json_proto HTTP/1.0 [20:47:48]Method: POST [20:47:48]URL: /json_proto [20:47:48]Method is POST - this is cgi request [20:47:48]url: /json_proto [20:47:48]query_string will be loaded in cgi processing [20:47:48]execute_cgi json_proto POST (null) [20:47:48]execute_cgi path=json_proto method=POST [20:47:48]POST find Content-Length [20:47:48]Host: 172.17.55.133:8080 [20:47:48]Content-Length: 688 [20:47:48]Content-Type: application/json [20:47:48] [20:47:48]POST finish read [20:47:48]Found Content-Length = 688 [20:47:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:47:48]execute_script... [20:47: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)1036489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:47:48]POST & json_proto [20:47:48]process_json_proto [20:47:48]json parsed OK: [20:47:48]protocol is kg_v1.0 [20:47:48]action value=close_receipt [20:47:48]process_action close_receipt [20:47:48]cmd_close_receipt [20:47:48]MH_GetDate [20:47:48]Write to MH i2c: F0 00 00 01 CB BB [20:47:48]Write i2c OK [20:47:48]MH_I2C_Read... [20:47:48]Read from MH i2c: F0 [20:47:48]MH_I2C_Read... [20:47:48]Read from MH i2c: F0 09 00 [20:47:48]MH_I2C_Read... [20:47:48]Read from MH i2c: F0 09 00 01 CB 00 FB 5D C2 66 34 48 D8 65 FD [20:47:48]GetLastDocTimeStamp 1724013893 [20:47:48]current date 1724014075 [20:47:48]FM_GetShiftState [20:47:48]SAM_PROTO_GetShiftState [20:47:48]wFMCommunicate request_size=4 [20:47:48]MH_SAM_APDU [20:47:48]CAPDU: 80 13 01 00 [20:47:48]Write to MH i2c: E2 08 00 02 CB 80 13 01 00 00 00 00 00 4A [20:47:48]Write i2c OK [20:47:48]MH_I2C_Read... [20:47:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:49]Read from MH i2c: E2 [20:47:49]MH_I2C_Read... [20:47:49]Read from MH i2c: E2 0E 00 [20:47:49]MH_I2C_Read... [20:47:49]Read from MH i2c: E2 0E 00 02 CB 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 87 [20:47:49]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:47:49]wFMCommunicate OK [20:47:49]SAM_PROTO_GetShiftState done [20:47:49]FM_GetShiftState done [20:47:49]opened in 1723940556 [20:47:49]opened+sec_in_day 1724026956 [20:47:49]quantity*price = 150037 [20:47:49]sum+1 = 150039 [20:47:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 494 18.08.2024 20:47 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260936 ФПД: 237804291671297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T204755&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260936&fm=237804291671297&tin=02508201610067®Number=0000000000091865&sum=150000 [20:47:50]StoreToDocumentArchive [20:47:50]shift 449 fd 260936 [20:47:50]save to /storage/0449/doc_00260936 [20:47:50]save last doc name /storage/0449/doc_00260936 to /storage/kkm_last_doc_name [20:47:50]save OK [20:47:50]Clear old archive folders... [20:47:50]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:47:50]tlvbuf is 004338D0 [20:47:50]SAM_PROTO_ClearQueue [20:47:50]wFMCommunicate request_size=4 [20:47:50]MH_SAM_APDU [20:47:50]CAPDU: 80 09 00 00 [20:47:50]Write to MH i2c: E2 08 00 0F CB 80 09 00 00 00 00 00 00 4C [20:47:50]Write i2c OK [20:47:50]MH_I2C_Read... [20:47:50]Read from MH i2c: E2 [20:47:50]MH_I2C_Read... [20:47:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:47:50]Read from MH i2c: E2 03 00 [20:47:50]MH_I2C_Read... [20:47:50]Read from MH i2c: E2 03 00 0F CB 00 90 00 4E [20:47:50]RAPDU: 90 00 [20:47:50]wFMCommunicate OK [20:47:50]SAM_PROTO_ClearQueue done [20:47:50]KKMCreateOFDPacket [20:47:50]OFDProtocolAddRootSTLVToBuf [20:47:50]FM_MakeSignedData [20:47:50]FM_MakeSignedData [20:47:50]SAM_PROTO_SignData [20:47:50]wFMCommunicate request_size=4 [20:47:50]MH_SAM_APDU [20:47:50]CAPDU: 80 0D 01 02 [20:47:50]Write to MH i2c: E2 08 00 10 CB 80 0D 01 02 00 00 00 00 54 [20:47:50]Write i2c OK [20:47:50]MH_I2C_Read... [20:47:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:47:50]Read from MH i2c: E2 [20:47:50]MH_I2C_Read... [20:47:50]Read from MH i2c: E2 03 00 [20:47:50]MH_I2C_Read... [20:47:50]Read from MH i2c: E2 03 00 10 CB 00 90 00 4F [20:47:50]RAPDU: 90 00 [20:47:50]wFMCommunicate OK [20:47:50]wFMCommunicate request_size=255 [20:47:50]MH_SAM_APDU [20:47:50]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 01 00 00 F4 03 04 00 FB 5D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 48 FB 03 00 35 04 06 00 [20:47:50]Write to MH i2c: E2 02 01 11 CB 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 01 00 00 F4 03 04 00 FB 5D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 48 FB 03 00 35 04 06 00 00 00 AC [20:47:50]Write i2c OK [20:47:50]MH_I2C_Read... [20:47:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:50]Read from MH i2c: E2 [20:47:50]MH_I2C_Read... [20:47:50]Read from MH i2c: E2 03 00 [20:47:50]MH_I2C_Read... [20:47:50]Read from MH i2c: E2 03 00 11 CB 00 90 00 50 [20:47:50]RAPDU: 90 00 [20:47:50]wFMCommunicate OK [20:47:50]wFMCommunicate request_size=11 [20:47:50]MH_SAM_APDU [20:47:50]CAPDU: 80 0D 02 02 06 D8 48 20 54 C5 01 [20:47:50]Write to MH i2c: E2 0E 00 12 CB 80 0D 02 02 06 00 D8 48 20 54 C5 01 00 00 BD [20:47:50]Write i2c OK [20:47:50]MH_I2C_Read... [20:47:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:50]Read from MH i2c: E2 [20:47:50]MH_I2C_Read... [20:47:50]Read from MH i2c: E2 03 00 [20:47:50]MH_I2C_Read... [20:47:50]Read from MH i2c: E2 03 00 12 CB 00 90 00 51 [20:47:50]RAPDU: 90 00 [20:47:50]wFMCommunicate OK [20:47:50]wFMCommunicate request_size=4 [20:47:50]MH_SAM_APDU [20:47:50]CAPDU: 80 0D 03 02 [20:47:50]Write to MH i2c: E2 08 00 13 CB 80 0D 03 02 00 00 00 00 59 [20:47:50]Write i2c OK [20:47:50]MH_I2C_Read... [20:47:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:47:50]Read from MH i2c: E2 [20:47:50]MH_I2C_Read... [20:47:50]Read from MH i2c: E2 0B 00 [20:47:50]MH_I2C_Read... [20:47:50]Read from MH i2c: E2 0B 00 13 CB 00 9F 6F DD B9 32 1B A4 24 90 00 13 [20:47:50]RAPDU: 9F 6F DD B9 32 1B A4 24 90 00 [20:47:50]wFMCommunicate OK [20:47:50]SAM_PROTO_SignData done [20:47:50]FM_MakeSignedData done [20:47:50]CreateOFDProtocolMessage [20:47:50]wFMCommunicate request_size=4 [20:47:50]MH_SAM_APDU [20:47:50]CAPDU: 80 11 00 00 [20:47:50]Write to MH i2c: E2 08 00 14 CB 80 11 00 00 00 00 00 00 59 [20:47:50]Write i2c OK [20:47:50]MH_I2C_Read... [20:47:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:50]Read from MH i2c: E2 [20:47:50]MH_I2C_Read... [20:47:50]Read from MH i2c: E2 17 00 [20:47:50]MH_I2C_Read... [20:47:50]Read from MH i2c: E2 17 00 14 CB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A6 [20:47:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:47:50]wFMCommunicate OK [20:47:50]CreateOFDProtocolMessage done [20:47:50]OFDSenderStorePacket 260936 [20:47:50]StoreOFDPacket docnum=260936 [20:47:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 06 74 08 01 C2 89 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 01 00 00 F4 03 04 00 FB 5D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 48 FB 03 00 35 04 06 00 D8 48 20 54 C5 01 9F 6F DD B9 32 1B A4 24 [20:47:50]CheckFolder [20:47:50]dirname=/storage/ofd_packets [20:47:50]CheckFolder done [20:47:50]ProducePacketName [20:47:50]name=ofd_packets/00260936 [20:47:50]NVStorageSaveData ofd_packets/00260936 [20:47:50]File name is /storage/ofd_packets/00260936 [20:47:50]Write 302 bytes [20:47:50]NVStorageSaveData done [20:47:50]OFDSenderStorePacket done [20:47:50]KKMCreateOFDPacket done [20:47:50]NVStorageSaveData kkm_last_timestamp [20:47:50]File name is /storage/kkm_last_timestamp [20:47:50]Write 4 bytes [20:47:50]NVStorageSaveData done [20:47:50]ExternCall_PrintAddStr [20:47:50]wPrintStart [20:47:50]Write to MH i2c: 01 00 00 15 CB E0 [20:47:50]Write i2c OK [20:47:50]MH_I2C_Read... [20:47:50]Read from MH i2c: 01 [20:47:50]MH_I2C_Read... [20:47:50]Read from MH i2c: 01 07 00 [20:47:50]MH_I2C_Read... [20:47:50]Read from MH i2c: 01 07 00 15 CB 00 00 00 00 00 FF 0F F5 [20:47:50]RasterBufferAndPrint [20:47:50]line Счет N : (1)1036489 [20:47:50]line ИНН: 02508201610067 [20:47:50]line Контрольно-Кассовый Чек [20:47:50]line ПРОДАЖА [20:47:50]line ТРК (МРК, ГНК) : 33 [20:47:50]line Товар: 2710194210 [20:47:50]line ДТ(л)-К-4 [20:47:50]line 19.690 * 76.20 [20:47:50]line = 1500.38 [20:47:50]line НДС 12% НСП 1% [20:47:50]line > о реализуемом товаре [20:47:50]line ОКРУГЛЕНИЕ: -0.38 [20:47:50]line ИТОГО: 1500.00 [20:47:50]line Внесено: 1500.00 [20:47:50]line СДАЧА: 0.00 [20:47:50]line НСП 1% : 13.28 [20:47:50]line НДС 12% : 159.33 [20:47:50]line Наличными: 1500.00 [20:47:50]line Безнал.: 0.00 [20:47:50]line Место: АЗС № 94 "Партнер Нефть" [20:47:50]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:47:50]line СНО: Общий режим [20:47:50]line Чек 494 18.08.2024 20:47 [20:47:50]line Смена: 449 ФФД: 1.0 [20:47:50]line ЗНМ: 0300000099 [20:47:50]line РНМ: 0000000000091865 [20:47:50]line Версия ККМ: 001 [20:47:50]line ФМ: 0000000000871820 [20:47:50]line ФД: 260936 [20:47:50]line ФПД: 237804291671297 [20:47:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T204755&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260936&fm=237804291671297&tin=02508201610067®Number=0000000000091865&sum=150000 [20:47:51]OFD Sender: Processing packet 260936 [packets to send 192, broken 191] [20:47:51]ProducePacketName [20:47:51]name=ofd_packets/00260936 [20:47:51]OFD Sender: To server: pG, [20:47:51]CommunicateWithHost lk.salyk.kg:30040 [20:47:51]ConnectInit lk.salyk.kg [20:47:51]written 0, free lines is 4095 [20:47:51]Connected sock=10 [20:47: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 30 10 01 00 00 06 74 08 01 C2 89 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 01 00 00 F4 03 04 00 FB 5D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 48 FB 03 00 35 04 06 00 D8 48 20 54 C5 01 9F 6F DD B9 32 1B A4 24 [20:47: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 30 4F 00 00 00 AD C3 47 00 95 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 48 FB 03 00 F4 03 04 00 4F 07 C2 66 B6 04 01 00 00 C6 D9 64 80 C5 3A 57 15 [20:47:51]CommunicateWithHost err = 0 [20:47:51]CheckOFDResponse [20:47:51]1017 (14) - 77093643461234 [20:47:51]1041 (16) - 0000000000871820 [20:47:51]1040 (4) - 260936 [20:47:51]1012 (4) - 18.08.2024 14:38 [20:47:51]1206 (1) - 0 [20:47:51]OFD Sender: Remove packet 260936 [20:47:51]ProducePacketName [20:47:51]name=ofd_packets/00260936 [20:47:51]NVStorageDeleteData [20:47:51]Write to MH i2c: 01 00 00 40 CB 0B [20:47:51]Write i2c OK [20:47:51]MH_I2C_Read... [20:47:51]Read from MH i2c: 01 [20:47:51]MH_I2C_Read... [20:47:51]Read from MH i2c: 01 07 00 [20:47:51]MH_I2C_Read... [20:47:51]Read from MH i2c: 01 07 00 40 CB 00 00 00 00 00 77 0C 95 [20:47:51]RasterBufferAndPrint [20:47:51]line [20:47:51]line [20:47:51]line [20:47:51]line [20:47:51]line [20:47:51]written 0, free lines is 3193 [20:47:51]MH_Cut [20:47:51]Write to MH i2c: D1 01 00 47 CB 01 E4 [20:47:51]Write i2c OK [20:47:51]MH_I2C_Read... [20:47:51]Read from MH i2c: D1 [20:47:51]MH_I2C_Read... [20:47:51]Read from MH i2c: D1 01 00 [20:47:51]MH_I2C_Read... [20:47:51]Read from MH i2c: D1 01 00 47 CB 00 E3 [20:47:51]Write to MH i2c: 01 00 00 48 CB 13 [20:47:51]Write i2c OK [20:47:51]MH_I2C_Read... [20:47:51]OFD Sender: No OFD packet to send [20:47:52]*** Cut start [20:47:52]*** Purtial cut [20:47:52]*** Stage 1: CUTSNS_PIN = 1 [20:47:54]Read from MH i2c: 01 [20:47:54]MH_I2C_Read... [20:47:54]*** Stop cut motor [20:47:54]*** Cut end [20:47:54]Read from MH i2c: 01 07 00 [20:47:54]MH_I2C_Read... [20:47:54]Read from MH i2c: 01 07 00 48 CB 00 00 00 00 00 FF 0F 28 [20:47:54]process_action close_receipt done [20:47:54]requested_data is exist [20:47:54]produce_requested_data [20:47:54]requested_item fm.sn is exist - process it [20:47:54]wFMCommunicate request_size=4 [20:47:54]MH_SAM_APDU [20:47:54]CAPDU: 80 11 00 00 [20:47:54]Write to MH i2c: E2 08 00 49 CB 80 11 00 00 00 00 00 00 8E [20:47:54]Write i2c OK [20:47:54]MH_I2C_Read... [20:47:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:54]Read from MH i2c: E2 [20:47:54]MH_I2C_Read... [20:47:54]Read from MH i2c: E2 17 00 [20:47:54]MH_I2C_Read... [20:47:54]Read from MH i2c: E2 17 00 49 CB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 DB [20:47:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:47:54]wFMCommunicate OK [20:47:54]requested_item fd.num is exist - process it [20:47:54]SAM_PROTO_GetFieldsCounters [20:47:54]wFMCommunicate request_size=4 [20:47:54]MH_SAM_APDU [20:47:54]CAPDU: 80 13 00 00 [20:47:54]Write to MH i2c: E2 08 00 4A CB 80 13 00 00 00 00 00 00 91 [20:47:54]Write i2c OK [20:47:54]MH_I2C_Read... [20:47:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:47:54]Read from MH i2c: E2 [20:47:54]MH_I2C_Read... [20:47:54]Read from MH i2c: E2 62 00 [20:47:54]MH_I2C_Read... [20:47:54]Read from MH i2c: E2 62 00 4A CB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 48 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 EE 01 00 00 5E 04 04 00 EE 01 00 00 57 04 04 00 EF 01 00 00 19 04 04 00 00 00 00 00 90 00 85 [20:47: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 48 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 EE 01 00 00 5E 04 04 00 EE 01 00 00 57 04 04 00 EF 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:47:54]wFMCommunicate OK [20:47:54]SAM_PROTO_GetFieldsCounters done [20:47:54]requested_item shift.num is exist - process it [20:47:54]requested_item shift.opened is exist - process it [20:47:54]req_shift_opened [20:47:54]FM_GetShiftState [20:47:54]SAM_PROTO_GetShiftState [20:47:54]wFMCommunicate request_size=4 [20:47:54]MH_SAM_APDU [20:47:54]CAPDU: 80 13 01 00 [20:47:54]Write to MH i2c: E2 08 00 4B CB 80 13 01 00 00 00 00 00 93 [20:47:54]Write i2c OK [20:47:54]MH_I2C_Read... [20:47:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:54]Read from MH i2c: E2 [20:47:54]MH_I2C_Read... [20:47:54]Read from MH i2c: E2 0E 00 [20:47:54]MH_I2C_Read... [20:47:54]Read from MH i2c: E2 0E 00 4B CB 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D0 [20:47:54]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:47:54]wFMCommunicate OK [20:47:54]SAM_PROTO_GetShiftState done [20:47:54]FM_GetShiftState done [20:47:54]req_shift_opened done [20:47:54]requested_item shift.open_date is exist - process it [20:47:54]req_shift_open_date [20:47:54]req_shift_open_date done [20:47:54]produce_requested_data done [20:47:54]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260936,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:47:54]process_action_free close_receipt [20:47:54]json_value_free [20:47:54]json_value_free done [20:47:54]process_json_proto returns [20:47:54]Send response to host [20:47:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260936,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:47:54]free response buf [20:47:54]execute_script done [20:47:54]execute_script returns [20:47:54]free content buf [20:47:54]Sock 9.Close socket [20:47:54]Sock 9.Thread stoped [20:47:56]OFD Sender: No OFD packet to send [20:48:01]OFD Sender: No OFD packet to send [20:48:06]OFD Sender: No OFD packet to send [20:48:09]accept exits with 7 [20:48:09]New connection [20:48:09]New thread 3066617188 created [20:48:09]Thread 3066473828 joined [20:48:09]Waiting for new connection... [20:48:09] Sock 7.Parse request [20:48:09]Sock 7.Check first char [20:48:09]Sock 7.First char is OK [20:48:09]request: POST /json_proto HTTP/1.0 [20:48:09]Method: POST [20:48:09]URL: /json_proto [20:48:09]Method is POST - this is cgi request [20:48:09]url: /json_proto [20:48:09]query_string will be loaded in cgi processing [20:48:09]execute_cgi json_proto POST (null) [20:48:09]execute_cgi path=json_proto method=POST [20:48:09]POST find Content-Length [20:48:09]Host: 172.17.55.133:8080 [20:48:09]Content-Length: 804 [20:48:09]Content-Type: application/json [20:48:09] [20:48:09]POST finish read [20:48:09]Found Content-Length = 804 [20:48:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:09]execute_script... [20:48: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)1036490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:09]POST & json_proto [20:48:09]process_json_proto [20:48:09]json parsed OK: [20:48:09]protocol is kg_v1.0 [20:48:09]action value=close_receipt [20:48:09]process_action close_receipt [20:48:09]cmd_close_receipt [20:48:09]MH_GetDate [20:48:09]Write to MH i2c: F0 00 00 4C CB 06 [20:48:09]Write i2c OK [20:48:09]MH_I2C_Read... [20:48:09]Read from MH i2c: F0 [20:48:09]MH_I2C_Read... [20:48:09]Read from MH i2c: F0 09 00 [20:48:09]MH_I2C_Read... [20:48:09]Read from MH i2c: F0 09 00 4C CB 00 10 5E C2 66 34 48 D8 65 5E [20:48:09]GetLastDocTimeStamp 1724014075 [20:48:09]current date 1724014096 [20:48:09]FM_GetShiftState [20:48:09]SAM_PROTO_GetShiftState [20:48:09]wFMCommunicate request_size=4 [20:48:09]MH_SAM_APDU [20:48:09]CAPDU: 80 13 01 00 [20:48:09]Write to MH i2c: E2 08 00 4D CB 80 13 01 00 00 00 00 00 95 [20:48:09]Write i2c OK [20:48:09]MH_I2C_Read... [20:48:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:09]Read from MH i2c: E2 [20:48:09]MH_I2C_Read... [20:48:09]Read from MH i2c: E2 0E 00 [20:48:09]MH_I2C_Read... [20:48:09]Read from MH i2c: E2 0E 00 4D CB 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D2 [20:48:09]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:48:09]wFMCommunicate OK [20:48:09]SAM_PROTO_GetShiftState done [20:48:09]FM_GetShiftState done [20:48:09]opened in 1723940556 [20:48:09]opened+sec_in_day 1724026956 [20:48:09]quantity*price = 100005 [20:48:09]sum+1 = 100006 [20:48:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 495 18.08.2024 20:48 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260937 ФПД: 237918836387753 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T204816&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260937&fm=237918836387753&tin=02508201610067®Number=0000000000091865&sum=100005 [20:48:10]StoreToDocumentArchive [20:48:10]shift 449 fd 260937 [20:48:10]save to /storage/0449/doc_00260937 [20:48:10]save last doc name /storage/0449/doc_00260937 to /storage/kkm_last_doc_name [20:48:10]save OK [20:48:10]Clear old archive folders... [20:48:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:48:10]tlvbuf is 006B9970 [20:48:10]SAM_PROTO_ClearQueue [20:48:10]wFMCommunicate request_size=4 [20:48:10]MH_SAM_APDU [20:48:10]CAPDU: 80 09 00 00 [20:48:10]Write to MH i2c: E2 08 00 5A CB 80 09 00 00 00 00 00 00 97 [20:48:10]Write i2c OK [20:48:10]MH_I2C_Read... [20:48:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:48:11]Read from MH i2c: E2 [20:48:11]MH_I2C_Read... [20:48:11]Read from MH i2c: E2 03 00 [20:48:11]MH_I2C_Read... [20:48:11]Read from MH i2c: E2 03 00 5A CB 00 90 00 99 [20:48:11]RAPDU: 90 00 [20:48:11]wFMCommunicate OK [20:48:11]SAM_PROTO_ClearQueue done [20:48:11]KKMCreateOFDPacket [20:48:11]OFDProtocolAddRootSTLVToBuf [20:48:11]FM_MakeSignedData [20:48:11]FM_MakeSignedData [20:48:11]SAM_PROTO_SignData [20:48:11]wFMCommunicate request_size=4 [20:48:11]MH_SAM_APDU [20:48:11]CAPDU: 80 0D 01 02 [20:48:11]Write to MH i2c: E2 08 00 5B CB 80 0D 01 02 00 00 00 00 9F [20:48:11]Write i2c OK [20:48:11]MH_I2C_Read... [20:48:11]Read from MH i2c: E2 [20:48:11]MH_I2C_Read... [20:48:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:48:11]Read from MH i2c: E2 03 00 [20:48:11]MH_I2C_Read... [20:48:11]Read from MH i2c: E2 03 00 5B CB 00 90 00 9A [20:48:11]RAPDU: 90 00 [20:48:11]wFMCommunicate OK [20:48:11]wFMCommunicate request_size=255 [20:48:11]MH_SAM_APDU [20:48:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 01 00 00 F4 03 04 00 10 5E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 49 FB 03 00 35 04 06 00 D8 [20:48:11]Write to MH i2c: E2 02 01 5C CB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 01 00 00 F4 03 04 00 10 5E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 49 FB 03 00 35 04 06 00 D8 00 00 1C [20:48:11]Write i2c OK [20:48:11]MH_I2C_Read... [20:48:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:11]Read from MH i2c: E2 [20:48:11]MH_I2C_Read... [20:48:11]Read from MH i2c: E2 03 00 [20:48:11]MH_I2C_Read... [20:48:11]Read from MH i2c: E2 03 00 5C CB 00 90 00 9B [20:48:11]RAPDU: 90 00 [20:48:11]wFMCommunicate OK [20:48:11]wFMCommunicate request_size=10 [20:48:11]MH_SAM_APDU [20:48:11]CAPDU: 80 0D 02 02 05 62 CB BA 6F A9 [20:48:11]Write to MH i2c: E2 0D 00 5D CB 80 0D 02 02 05 00 62 CB BA 6F A9 00 00 AB [20:48:11]Write i2c OK [20:48:11]MH_I2C_Read... [20:48:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:11]Read from MH i2c: E2 [20:48:11]MH_I2C_Read... [20:48:11]Read from MH i2c: E2 03 00 [20:48:11]MH_I2C_Read... [20:48:11]Read from MH i2c: E2 03 00 5D CB 00 90 00 9C [20:48:11]RAPDU: 90 00 [20:48:11]wFMCommunicate OK [20:48:11]wFMCommunicate request_size=4 [20:48:11]MH_SAM_APDU [20:48:11]CAPDU: 80 0D 03 02 [20:48:11]Write to MH i2c: E2 08 00 5E CB 80 0D 03 02 00 00 00 00 A4 [20:48:11]Write i2c OK [20:48:11]MH_I2C_Read... [20:48:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:48:11]Read from MH i2c: E2 [20:48:11]MH_I2C_Read... [20:48:11]Read from MH i2c: E2 0B 00 [20:48:11]MH_I2C_Read... [20:48:11]Read from MH i2c: E2 0B 00 5E CB 00 91 03 B2 FA 5F 1D 4B F6 90 00 A2 [20:48:11]RAPDU: 91 03 B2 FA 5F 1D 4B F6 90 00 [20:48:11]wFMCommunicate OK [20:48:11]SAM_PROTO_SignData done [20:48:11]FM_MakeSignedData done [20:48:11]CreateOFDProtocolMessage [20:48:11]wFMCommunicate request_size=4 [20:48:11]MH_SAM_APDU [20:48:11]CAPDU: 80 11 00 00 [20:48:11]Write to MH i2c: E2 08 00 5F CB 80 11 00 00 00 00 00 00 A4 [20:48:11]Write i2c OK [20:48:11]MH_I2C_Read... [20:48:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:11]Read from MH i2c: E2 [20:48:11]MH_I2C_Read... [20:48:11]Read from MH i2c: E2 17 00 [20:48:11]MH_I2C_Read... [20:48:11]Read from MH i2c: E2 17 00 5F CB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F1 [20:48:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:48:11]wFMCommunicate OK [20:48:11]CreateOFDProtocolMessage done [20:48:11]OFDSenderStorePacket 260937 [20:48:11]StoreOFDPacket docnum=260937 [20:48:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 55 68 07 01 CA 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 01 00 00 F4 03 04 00 10 5E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 49 FB 03 00 35 04 06 00 D8 62 CB BA 6F A9 91 03 B2 FA 5F 1D 4B F6 [20:48:11]CheckFolder [20:48:11]dirname=/storage/ofd_packets [20:48:11]CheckFolder done [20:48:11]ProducePacketName [20:48:11]name=ofd_packets/00260937 [20:48:11]NVStorageSaveData ofd_packets/00260937 [20:48:11]File name is /storage/ofd_packets/00260937 [20:48:11]Write 301 bytes [20:48:11]NVStorageSaveData done [20:48:11]OFDSenderStorePacket done [20:48:11]KKMCreateOFDPacket done [20:48:11]NVStorageSaveData kkm_last_timestamp [20:48:11]File name is /storage/kkm_last_timestamp [20:48:11]Write 4 bytes [20:48:11]NVStorageSaveData done [20:48:11]ExternCall_PrintAddStr [20:48:11]wPrintStart [20:48:11]Write to MH i2c: 01 00 00 60 CB 2B [20:48:11]Write i2c OK [20:48:11]MH_I2C_Read... [20:48:11]Read from MH i2c: 01 [20:48:11]MH_I2C_Read... [20:48:11]Read from MH i2c: 01 07 00 [20:48:11]MH_I2C_Read... [20:48:11]Read from MH i2c: 01 07 00 60 CB 00 00 00 00 00 FF 0F 40 [20:48:11]RasterBufferAndPrint [20:48:11]line Счет N : (1)1036490 [20:48:11]line ИНН: 02508201610067 [20:48:11]line Контрольно-Кассовый Чек [20:48:11]line ПРОДАЖА [20:48:11]line ТРК (МРК, ГНК) : 22 [20:48:11]line Товар: 2710124130 [20:48:11]line Аи-92-К-5 [20:48:11]line 14.750 * 67.80 [20:48:11]line = 1000.05 [20:48:11]line НДС 12% НСП 1% [20:48:11]line > о реализуемом товаре [20:48:11]line ИТОГО: 1000.05 [20:48:11]line НСП 1% : 8.85 [20:48:11]line НДС 12% : 106.20 [20:48:11]line Наличными: 0.00 [20:48:11]line Безнал.: 1000.05 [20:48:11]line Место: АЗС № 94 "Партнер Нефть" [20:48:11]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:48:11]line СНО: Общий режим [20:48:11]line Чек 495 18.08.2024 20:48 [20:48:11]line Смена: 449 ФФД: 1.0 [20:48:11]line ЗНМ: 0300000099 [20:48:11]line РНМ: 0000000000091865 [20:48:11]line Версия ККМ: 001 [20:48:11]line Платежная система: O! деньги [20:48:11]line ФМ: 0000000000871820 [20:48:11]line ФД: 260937 [20:48:11]line ФПД: 237918836387753 [20:48:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T204816&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260937&fm=237918836387753&tin=02508201610067®Number=0000000000091865&sum=100005 [20:48:11]written 0, free lines is 4095 [20:48:11]OFD Sender: Processing packet 260937 [packets to send 192, broken 191] [20:48:11]ProducePacketName [20:48:11]name=ofd_packets/00260937 [20:48:11]OFD Sender: To server: pG, [20:48:11]CommunicateWithHost lk.salyk.kg:30040 [20:48:11]ConnectInit lk.salyk.kg [20:48:11]Connected sock=10 [20:48: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 30 0F 01 00 00 55 68 07 01 CA 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 01 00 00 F4 03 04 00 10 5E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 49 FB 03 00 35 04 06 00 D8 62 CB BA 6F A9 91 03 B2 FA 5F 1D 4B F6 [20:48: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 30 4F 00 00 00 99 B6 47 00 87 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 49 FB 03 00 F4 03 04 00 64 07 C2 66 B6 04 01 00 00 B4 65 66 61 51 27 0E 72 [20:48:11]CommunicateWithHost err = 0 [20:48:11]CheckOFDResponse [20:48:11]1017 (14) - 77093643461234 [20:48:11]1041 (16) - 0000000000871820 [20:48:11]1040 (4) - 260937 [20:48:11]1012 (4) - 18.08.2024 14:38 [20:48:11]1206 (1) - 0 [20:48:11]OFD Sender: Remove packet 260937 [20:48:11]ProducePacketName [20:48:11]name=ofd_packets/00260937 [20:48:11]NVStorageDeleteData [20:48:11]Write to MH i2c: 01 00 00 8A CB 55 [20:48:11]Write i2c OK [20:48:11]MH_I2C_Read... [20:48:11]Read from MH i2c: 01 [20:48:11]MH_I2C_Read... [20:48:11]Read from MH i2c: 01 07 00 [20:48:11]MH_I2C_Read... [20:48:11]Read from MH i2c: 01 07 00 8A CB 00 00 00 00 00 8B 0C F3 [20:48:11]RasterBufferAndPrint [20:48:11]line [20:48:11]line [20:48:11]line [20:48:11]line [20:48:11]line [20:48:11]written 0, free lines is 3214 [20:48:11]MH_Cut [20:48:11]Write to MH i2c: D1 01 00 91 CB 01 2E [20:48:11]Write i2c OK [20:48:11]MH_I2C_Read... [20:48:11]Read from MH i2c: D1 [20:48:11]MH_I2C_Read... [20:48:11]Read from MH i2c: D1 01 00 [20:48:11]MH_I2C_Read... [20:48:11]Read from MH i2c: D1 01 00 91 CB 00 2D [20:48:11]Write to MH i2c: 01 00 00 92 CB 5D [20:48:11]Write i2c OK [20:48:11]MH_I2C_Read... [20:48:12]OFD Sender: No OFD packet to send [20:48:13]*** Cut start [20:48:13]*** Purtial cut [20:48:13]*** Stage 1: CUTSNS_PIN = 1 [20:48:15]Read from MH i2c: 01 [20:48:15]MH_I2C_Read... [20:48:15]*** Stop cut motor [20:48:15]*** Cut end [20:48:15]Read from MH i2c: 01 07 00 [20:48:15]MH_I2C_Read... [20:48:15]Read from MH i2c: 01 07 00 92 CB 00 00 00 00 00 FF 0F 72 [20:48:15]process_action close_receipt done [20:48:15]requested_data is exist [20:48:15]produce_requested_data [20:48:15]requested_item fm.sn is exist - process it [20:48:15]wFMCommunicate request_size=4 [20:48:15]MH_SAM_APDU [20:48:15]CAPDU: 80 11 00 00 [20:48:15]Write to MH i2c: E2 08 00 93 CB 80 11 00 00 00 00 00 00 D8 [20:48:15]Write i2c OK [20:48:15]MH_I2C_Read... [20:48:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:15]Read from MH i2c: E2 [20:48:15]MH_I2C_Read... [20:48:15]Read from MH i2c: E2 17 00 [20:48:15]MH_I2C_Read... [20:48:15]Read from MH i2c: E2 17 00 93 CB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 25 [20:48:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:48:15]wFMCommunicate OK [20:48:15]requested_item fd.num is exist - process it [20:48:15]SAM_PROTO_GetFieldsCounters [20:48:15]wFMCommunicate request_size=4 [20:48:15]MH_SAM_APDU [20:48:15]CAPDU: 80 13 00 00 [20:48:15]Write to MH i2c: E2 08 00 94 CB 80 13 00 00 00 00 00 00 DB [20:48:15]Write i2c OK [20:48:15]MH_I2C_Read... [20:48:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:48:15]Read from MH i2c: E2 [20:48:15]MH_I2C_Read... [20:48:15]Read from MH i2c: E2 62 00 [20:48:15]MH_I2C_Read... [20:48:15]Read from MH i2c: E2 62 00 94 CB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 49 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 EF 01 00 00 5E 04 04 00 EF 01 00 00 57 04 04 00 F0 01 00 00 19 04 04 00 00 00 00 00 90 00 D3 [20:48: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 49 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 EF 01 00 00 5E 04 04 00 EF 01 00 00 57 04 04 00 F0 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:48:15]wFMCommunicate OK [20:48:15]SAM_PROTO_GetFieldsCounters done [20:48:15]requested_item shift.num is exist - process it [20:48:15]requested_item shift.opened is exist - process it [20:48:15]req_shift_opened [20:48:15]FM_GetShiftState [20:48:15]SAM_PROTO_GetShiftState [20:48:15]wFMCommunicate request_size=4 [20:48:15]MH_SAM_APDU [20:48:15]CAPDU: 80 13 01 00 [20:48:15]Write to MH i2c: E2 08 00 95 CB 80 13 01 00 00 00 00 00 DD [20:48:15]Write i2c OK [20:48:15]MH_I2C_Read... [20:48:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:15]Read from MH i2c: E2 [20:48:15]MH_I2C_Read... [20:48:15]Read from MH i2c: E2 0E 00 [20:48:15]MH_I2C_Read... [20:48:15]Read from MH i2c: E2 0E 00 95 CB 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 1A [20:48:15]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:48:15]wFMCommunicate OK [20:48:15]SAM_PROTO_GetShiftState done [20:48:15]FM_GetShiftState done [20:48:15]req_shift_opened done [20:48:15]requested_item shift.open_date is exist - process it [20:48:15]req_shift_open_date [20:48:15]req_shift_open_date done [20:48:15]produce_requested_data done [20:48:15]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260937,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:48:15]process_action_free close_receipt [20:48:15]json_value_free [20:48:15]json_value_free done [20:48:15]process_json_proto returns [20:48:15]Send response to host [20:48:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260937,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:48:15]free response buf [20:48:15]execute_script done [20:48:15]execute_script returns [20:48:15]free content buf [20:48:15]Sock 7.Close socket [20:48:15]Sock 7.Thread stoped [20:48:15]accept exits with 9 [20:48:15]New connection [20:48:15]New thread 3066473828 created [20:48:15]Thread 3066617188 joined [20:48:15]Waiting for new connection... [20:48:15] Sock 9.Parse request [20:48:15]Sock 9.Check first char [20:48:15]Sock 9.First char is OK [20:48:15]request: POST /json_proto HTTP/1.0 [20:48:15]Method: POST [20:48:15]URL: /json_proto [20:48:15]Method is POST - this is cgi request [20:48:15]url: /json_proto [20:48:15]query_string will be loaded in cgi processing [20:48:15]execute_cgi json_proto POST (null) [20:48:15]execute_cgi path=json_proto method=POST [20:48:15]POST find Content-Length [20:48:15]Host: 172.17.55.133:8080 [20:48:15]Content-Length: 683 [20:48:15]Content-Type: application/json [20:48:15] [20:48:15]POST finish read [20:48:15]Found Content-Length = 683 [20:48:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036491", "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" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:15]execute_script... [20:48: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)1036491", "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" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:15]POST & json_proto [20:48:15]process_json_proto [20:48:15]json parsed OK: [20:48:15]protocol is kg_v1.0 [20:48:15]action value=close_receipt [20:48:15]process_action close_receipt [20:48:15]cmd_close_receipt [20:48:15]MH_GetDate [20:48:15]Write to MH i2c: F0 00 00 96 CB 50 [20:48:15]Write i2c OK [20:48:15]MH_I2C_Read... [20:48:15]Read from MH i2c: F0 [20:48:15]MH_I2C_Read... [20:48:15]Read from MH i2c: F0 09 00 [20:48:15]MH_I2C_Read... [20:48:15]Read from MH i2c: F0 09 00 96 CB 00 16 5E C2 66 34 48 D8 65 AE [20:48:15]GetLastDocTimeStamp 1724014096 [20:48:15]current date 1724014102 [20:48:15]FM_GetShiftState [20:48:15]SAM_PROTO_GetShiftState [20:48:15]wFMCommunicate request_size=4 [20:48:15]MH_SAM_APDU [20:48:15]CAPDU: 80 13 01 00 [20:48:15]Write to MH i2c: E2 08 00 97 CB 80 13 01 00 00 00 00 00 DF [20:48:15]Write i2c OK [20:48:15]MH_I2C_Read... [20:48:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:15]Read from MH i2c: E2 [20:48:15]MH_I2C_Read... [20:48:15]Read from MH i2c: E2 0E 00 [20:48:15]MH_I2C_Read... [20:48:15]Read from MH i2c: E2 0E 00 97 CB 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 1C [20:48:15]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:48:15]wFMCommunicate OK [20:48:15]SAM_PROTO_GetShiftState done [20:48:15]FM_GetShiftState done [20:48:15]opened in 1723940556 [20:48:15]opened+sec_in_day 1724026956 [20:48:15]quantity*price = 150032 [20:48:15]sum+1 = 150033 [20:48:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 496 18.08.2024 20:48 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260938 ФПД: 22783565857966 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T204822&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260938&fm=22783565857966&tin=02508201610067®Number=0000000000091865&sum=150000 [20:48:17]StoreToDocumentArchive [20:48:17]shift 449 fd 260938 [20:48:17]save to /storage/0449/doc_00260938 [20:48:17]save last doc name /storage/0449/doc_00260938 to /storage/kkm_last_doc_name [20:48:17]save OK [20:48:17]Clear old archive folders... [20:48:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:48:17]tlvbuf is 006B93C0 [20:48:17]SAM_PROTO_ClearQueue [20:48:17]wFMCommunicate request_size=4 [20:48:17]MH_SAM_APDU [20:48:17]CAPDU: 80 09 00 00 [20:48:17]Write to MH i2c: E2 08 00 A4 CB 80 09 00 00 00 00 00 00 E1 [20:48:17]Write i2c OK [20:48:17]MH_I2C_Read... [20:48:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:48:17]Read from MH i2c: E2 [20:48:17]MH_I2C_Read... [20:48:17]Read from MH i2c: E2 03 00 [20:48:17]MH_I2C_Read... [20:48:17]Read from MH i2c: E2 03 00 A4 CB 00 90 00 E3 [20:48:17]RAPDU: 90 00 [20:48:17]wFMCommunicate OK [20:48:17]SAM_PROTO_ClearQueue done [20:48:17]KKMCreateOFDPacket [20:48:17]OFDProtocolAddRootSTLVToBuf [20:48:17]FM_MakeSignedData [20:48:17]FM_MakeSignedData [20:48:17]SAM_PROTO_SignData [20:48:17]wFMCommunicate request_size=4 [20:48:17]MH_SAM_APDU [20:48:17]CAPDU: 80 0D 01 02 [20:48:17]Write to MH i2c: E2 08 00 A5 CB 80 0D 01 02 00 00 00 00 E9 [20:48:17]Write i2c OK [20:48:17]MH_I2C_Read... [20:48:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:48:17]Read from MH i2c: E2 [20:48:17]MH_I2C_Read... [20:48:17]Read from MH i2c: E2 03 00 [20:48:17]MH_I2C_Read... [20:48:17]Read from MH i2c: E2 03 00 A5 CB 00 90 00 E4 [20:48:17]RAPDU: 90 00 [20:48:17]wFMCommunicate OK [20:48:17]wFMCommunicate request_size=255 [20:48:17]MH_SAM_APDU [20:48:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 F0 01 00 00 F4 03 04 00 16 5E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4A FB 03 00 35 04 06 00 14 [20:48:17]Write to MH i2c: E2 02 01 A6 CB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 F0 01 00 00 F4 03 04 00 16 5E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4A FB 03 00 35 04 06 00 14 00 00 84 [20:48:17]Write i2c OK [20:48:17]MH_I2C_Read... [20:48:17]OFD Sender: No OFD packet to send [20:48:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:17]Read from MH i2c: E2 [20:48:17]MH_I2C_Read... [20:48:17]Read from MH i2c: E2 03 00 [20:48:17]MH_I2C_Read... [20:48:17]Read from MH i2c: E2 03 00 A6 CB 00 90 00 E5 [20:48:17]RAPDU: 90 00 [20:48:17]wFMCommunicate OK [20:48:17]wFMCommunicate request_size=10 [20:48:17]MH_SAM_APDU [20:48:17]CAPDU: 80 0D 02 02 05 B8 B6 59 84 AE [20:48:17]Write to MH i2c: E2 0D 00 A7 CB 80 0D 02 02 05 00 B8 B6 59 84 AE 00 00 EF [20:48:17]Write i2c OK [20:48:17]MH_I2C_Read... [20:48:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:17]Read from MH i2c: E2 [20:48:17]MH_I2C_Read... [20:48:17]Read from MH i2c: E2 03 00 [20:48:17]MH_I2C_Read... [20:48:17]Read from MH i2c: E2 03 00 A7 CB 00 90 00 E6 [20:48:17]RAPDU: 90 00 [20:48:17]wFMCommunicate OK [20:48:17]wFMCommunicate request_size=4 [20:48:17]MH_SAM_APDU [20:48:17]CAPDU: 80 0D 03 02 [20:48:17]Write to MH i2c: E2 08 00 A8 CB 80 0D 03 02 00 00 00 00 EE [20:48:17]Write i2c OK [20:48:17]MH_I2C_Read... [20:48:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:48:17]Read from MH i2c: E2 [20:48:17]MH_I2C_Read... [20:48:17]Read from MH i2c: E2 0B 00 [20:48:17]MH_I2C_Read... [20:48:17]Read from MH i2c: E2 0B 00 A8 CB 00 AF 5B 51 79 49 26 9C 35 90 00 03 [20:48:17]RAPDU: AF 5B 51 79 49 26 9C 35 90 00 [20:48:17]wFMCommunicate OK [20:48:17]SAM_PROTO_SignData done [20:48:17]FM_MakeSignedData done [20:48:17]CreateOFDProtocolMessage [20:48:17]wFMCommunicate request_size=4 [20:48:17]MH_SAM_APDU [20:48:17]CAPDU: 80 11 00 00 [20:48:17]Write to MH i2c: E2 08 00 A9 CB 80 11 00 00 00 00 00 00 EE [20:48:17]Write i2c OK [20:48:17]MH_I2C_Read... [20:48:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:17]Read from MH i2c: E2 [20:48:17]MH_I2C_Read... [20:48:17]Read from MH i2c: E2 17 00 [20:48:17]MH_I2C_Read... [20:48:17]Read from MH i2c: E2 17 00 A9 CB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 3B [20:48:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:48:17]wFMCommunicate OK [20:48:17]CreateOFDProtocolMessage done [20:48:17]OFDSenderStorePacket 260938 [20:48:17]StoreOFDPacket docnum=260938 [20:48:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 5B BD 07 01 3C CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 F0 01 00 00 F4 03 04 00 16 5E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4A FB 03 00 35 04 06 00 14 B8 B6 59 84 AE AF 5B 51 79 49 26 9C 35 [20:48:17]CheckFolder [20:48:17]dirname=/storage/ofd_packets [20:48:17]CheckFolder done [20:48:17]ProducePacketName [20:48:17]name=ofd_packets/00260938 [20:48:17]NVStorageSaveData ofd_packets/00260938 [20:48:17]File name is /storage/ofd_packets/00260938 [20:48:17]Write 301 bytes [20:48:17]NVStorageSaveData done [20:48:17]OFDSenderStorePacket done [20:48:17]KKMCreateOFDPacket done [20:48:17]NVStorageSaveData kkm_last_timestamp [20:48:17]File name is /storage/kkm_last_timestamp [20:48:17]Write 4 bytes [20:48:17]NVStorageSaveData done [20:48:17]ExternCall_PrintAddStr [20:48:17]wPrintStart [20:48:17]Write to MH i2c: 01 00 00 AA CB 75 [20:48:17]Write i2c OK [20:48:17]MH_I2C_Read... [20:48:17]Read from MH i2c: 01 [20:48:17]MH_I2C_Read... [20:48:17]Read from MH i2c: 01 07 00 [20:48:17]MH_I2C_Read... [20:48:17]Read from MH i2c: 01 07 00 AA CB 00 00 00 00 00 FF 0F 8A [20:48:17]RasterBufferAndPrint [20:48:17]line Счет N : (1)1036491 [20:48:17]line ИНН: 02508201610067 [20:48:17]line Контрольно-Кассовый Чек [20:48:17]line ПРОДАЖА [20:48:17]line ТРК (МРК, ГНК) : 13 [20:48:17]line Товар: 2710124500 [20:48:17]line Аи-95-К-5 [20:48:17]line 20.220 * 74.20 [20:48:17]line = 1500.32 [20:48:17]line НДС 12% НСП 1% [20:48:17]line > о реализуемом товаре [20:48:17]line ОКРУГЛЕНИЕ: -0.32 [20:48:17]line ИТОГО: 1500.00 [20:48:17]line Внесено: 1500.00 [20:48:17]line СДАЧА: 0.00 [20:48:17]line НСП 1% : 13.28 [20:48:17]line НДС 12% : 159.33 [20:48:17]line Наличными: 1500.00 [20:48:17]line Безнал.: 0.00 [20:48:17]line Место: АЗС № 94 "Партнер Нефть" [20:48:17]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:48:17]line СНО: Общий режим [20:48:17]line Чек 496 18.08.2024 20:48 [20:48:17]line Смена: 449 ФФД: 1.0 [20:48:17]line ЗНМ: 0300000099 [20:48:17]line РНМ: 0000000000091865 [20:48:17]line Версия ККМ: 001 [20:48:17]line ФМ: 0000000000871820 [20:48:17]line ФД: 260938 [20:48:17]line ФПД: 22783565857966 [20:48:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T204822&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260938&fm=22783565857966&tin=02508201610067®Number=0000000000091865&sum=150000 [20:48:17]OFD Sender: Processing packet 260938 [packets to send 192, broken 191] [20:48:17]ProducePacketName [20:48:17]name=ofd_packets/00260938 [20:48:17]OFD Sender: To server: pG, [20:48:17]CommunicateWithHost lk.salyk.kg:30040 [20:48:17]ConnectInit lk.salyk.kg [20:48:17]written 0, free lines is 4095 [20:48:18]Connected sock=10 [20:48: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 30 0F 01 00 00 5B BD 07 01 3C CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 F0 01 00 00 F4 03 04 00 16 5E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4A FB 03 00 35 04 06 00 14 B8 B6 59 84 AE AF 5B 51 79 49 26 9C 35 [20:48: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 30 4F 00 00 00 8F 7B 47 00 A5 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4A FB 03 00 F4 03 04 00 6A 07 C2 66 B6 04 01 00 00 8E E3 0E 6B 5E 08 29 70 [20:48:18]CommunicateWithHost err = 0 [20:48:18]CheckOFDResponse [20:48:18]1017 (14) - 77093643461234 [20:48:18]1041 (16) - 0000000000871820 [20:48:18]1040 (4) - 260938 [20:48:18]1012 (4) - 18.08.2024 14:38 [20:48:18]1206 (1) - 0 [20:48:18]OFD Sender: Remove packet 260938 [20:48:18]ProducePacketName [20:48:18]name=ofd_packets/00260938 [20:48:18]NVStorageDeleteData [20:48:18]Write to MH i2c: 01 00 00 D5 CB A0 [20:48:18]Write i2c OK [20:48:18]MH_I2C_Read... [20:48:18]Read from MH i2c: 01 [20:48:18]MH_I2C_Read... [20:48:18]Read from MH i2c: 01 07 00 [20:48:18]MH_I2C_Read... [20:48:18]Read from MH i2c: 01 07 00 D5 CB 00 00 00 00 00 78 0C 2B [20:48:18]RasterBufferAndPrint [20:48:18]line [20:48:18]line [20:48:18]line [20:48:18]line [20:48:18]line [20:48:18]written 0, free lines is 3197 [20:48:18]MH_Cut [20:48:18]Write to MH i2c: D1 01 00 DC CB 01 79 [20:48:18]Write i2c OK [20:48:18]MH_I2C_Read... [20:48:18]Read from MH i2c: D1 [20:48:18]MH_I2C_Read... [20:48:18]Read from MH i2c: D1 01 00 [20:48:18]MH_I2C_Read... [20:48:18]Read from MH i2c: D1 01 00 DC CB 00 78 [20:48:18]Write to MH i2c: 01 00 00 DD CB A8 [20:48:18]Write i2c OK [20:48:18]MH_I2C_Read... [20:48:18]OFD Sender: No OFD packet to send [20:48:19]*** Cut start [20:48:19]*** Purtial cut [20:48:19]*** Stage 1: CUTSNS_PIN = 1 [20:48:21]Read from MH i2c: 01 [20:48:21]MH_I2C_Read... [20:48:21]*** Stop cut motor [20:48:21]*** Cut end [20:48:21]Read from MH i2c: 01 07 00 [20:48:21]MH_I2C_Read... [20:48:21]Read from MH i2c: 01 07 00 DD CB 00 00 00 00 00 FF 0F BD [20:48:21]process_action close_receipt done [20:48:21]requested_data is exist [20:48:21]produce_requested_data [20:48:21]requested_item fm.sn is exist - process it [20:48:21]wFMCommunicate request_size=4 [20:48:21]MH_SAM_APDU [20:48:21]CAPDU: 80 11 00 00 [20:48:21]Write to MH i2c: E2 08 00 DE CB 80 11 00 00 00 00 00 00 23 [20:48:21]Write i2c OK [20:48:21]MH_I2C_Read... [20:48:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:21]Read from MH i2c: E2 [20:48:21]MH_I2C_Read... [20:48:21]Read from MH i2c: E2 17 00 [20:48:21]MH_I2C_Read... [20:48:21]Read from MH i2c: E2 17 00 DE CB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 70 [20:48:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:48:21]wFMCommunicate OK [20:48:21]requested_item fd.num is exist - process it [20:48:21]SAM_PROTO_GetFieldsCounters [20:48:21]wFMCommunicate request_size=4 [20:48:21]MH_SAM_APDU [20:48:21]CAPDU: 80 13 00 00 [20:48:21]Write to MH i2c: E2 08 00 DF CB 80 13 00 00 00 00 00 00 26 [20:48:21]Write i2c OK [20:48:21]MH_I2C_Read... [20:48:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:48:21]Read from MH i2c: E2 [20:48:21]MH_I2C_Read... [20:48:21]Read from MH i2c: E2 62 00 [20:48:21]MH_I2C_Read... [20:48:21]Read from MH i2c: E2 62 00 DF CB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 4A FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F0 01 00 00 5E 04 04 00 F0 01 00 00 57 04 04 00 F1 01 00 00 19 04 04 00 00 00 00 00 90 00 22 [20:48: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 4A FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F0 01 00 00 5E 04 04 00 F0 01 00 00 57 04 04 00 F1 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:48:21]wFMCommunicate OK [20:48:21]SAM_PROTO_GetFieldsCounters done [20:48:21]requested_item shift.num is exist - process it [20:48:21]requested_item shift.opened is exist - process it [20:48:21]req_shift_opened [20:48:21]FM_GetShiftState [20:48:21]SAM_PROTO_GetShiftState [20:48:21]wFMCommunicate request_size=4 [20:48:21]MH_SAM_APDU [20:48:21]CAPDU: 80 13 01 00 [20:48:21]Write to MH i2c: E2 08 00 E0 CB 80 13 01 00 00 00 00 00 28 [20:48:21]Write i2c OK [20:48:21]MH_I2C_Read... [20:48:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:21]Read from MH i2c: E2 [20:48:21]MH_I2C_Read... [20:48:21]Read from MH i2c: E2 0E 00 [20:48:21]MH_I2C_Read... [20:48:21]Read from MH i2c: E2 0E 00 E0 CB 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 65 [20:48:21]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:48:21]wFMCommunicate OK [20:48:21]SAM_PROTO_GetShiftState done [20:48:21]FM_GetShiftState done [20:48:21]req_shift_opened done [20:48:21]requested_item shift.open_date is exist - process it [20:48:21]req_shift_open_date [20:48:21]req_shift_open_date done [20:48:21]produce_requested_data done [20:48:21]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260938,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:48:21]process_action_free close_receipt [20:48:21]json_value_free [20:48:21]json_value_free done [20:48:21]process_json_proto returns [20:48:21]Send response to host [20:48:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260938,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:48:21]free response buf [20:48:21]execute_script done [20:48:21]execute_script returns [20:48:21]free content buf [20:48:21]Sock 9.Close socket [20:48:21]Sock 9.Thread stoped [20:48:23]OFD Sender: No OFD packet to send [20:48:28]OFD Sender: No OFD packet to send [20:48:33]OFD Sender: No OFD packet to send [20:48:38]OFD Sender: No OFD packet to send [20:48:43]OFD Sender: No OFD packet to send [20:48:48]OFD Sender: No OFD packet to send [20:48:53]OFD Sender: No OFD packet to send [20:48:58]OFD Sender: No OFD packet to send [20:49:03]OFD Sender: No OFD packet to send [20:49:08]OFD Sender: No OFD packet to send [20:49:13]OFD Sender: No OFD packet to send [20:49:18]OFD Sender: No OFD packet to send [20:49:23]OFD Sender: No OFD packet to send [20:49:28]OFD Sender: No OFD packet to send [20:49:33]OFD Sender: No OFD packet to send [20:49:37]accept exits with 7 [20:49:37]New connection [20:49:37]New thread 3066617188 created [20:49:37]Thread 3066473828 joined [20:49:37]Waiting for new connection... [20:49:37] Sock 7.Parse request [20:49:37]Sock 7.Check first char [20:49:37]Sock 7.First char is OK [20:49:37]request: POST /json_proto HTTP/1.0 [20:49:37]Method: POST [20:49:37]URL: /json_proto [20:49:37]Method is POST - this is cgi request [20:49:37]url: /json_proto [20:49:37]query_string will be loaded in cgi processing [20:49:37]execute_cgi json_proto POST (null) [20:49:37]execute_cgi path=json_proto method=POST [20:49:37]POST find Content-Length [20:49:37]Host: 172.17.55.133:8080 [20:49:37]Content-Length: 817 [20:49:37]Content-Type: application/json [20:49:37] [20:49:37]POST finish read [20:49:37]Found Content-Length = 817 [20:49:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:37]execute_script... [20:49: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)1036492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:37]POST & json_proto [20:49:37]process_json_proto [20:49:37]json parsed OK: [20:49:37]protocol is kg_v1.0 [20:49:37]action value=close_receipt [20:49:37]process_action close_receipt [20:49:37]cmd_close_receipt [20:49:37]MH_GetDate [20:49:37]Write to MH i2c: F0 00 00 E1 CB 9B [20:49:37]Write i2c OK [20:49:37]MH_I2C_Read... [20:49:37]Read from MH i2c: F0 [20:49:37]MH_I2C_Read... [20:49:37]Read from MH i2c: F0 09 00 [20:49:37]MH_I2C_Read... [20:49:37]Read from MH i2c: F0 09 00 E1 CB 00 67 5E C2 66 34 48 D8 65 4A [20:49:37]GetLastDocTimeStamp 1724014102 [20:49:37]current date 1724014183 [20:49:37]FM_GetShiftState [20:49:37]SAM_PROTO_GetShiftState [20:49:37]wFMCommunicate request_size=4 [20:49:37]MH_SAM_APDU [20:49:37]CAPDU: 80 13 01 00 [20:49:37]Write to MH i2c: E2 08 00 E2 CB 80 13 01 00 00 00 00 00 2A [20:49:37]Write i2c OK [20:49:37]MH_I2C_Read... [20:49:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:37]Read from MH i2c: E2 [20:49:37]MH_I2C_Read... [20:49:37]Read from MH i2c: E2 0E 00 [20:49:37]MH_I2C_Read... [20:49:37]Read from MH i2c: E2 0E 00 E2 CB 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 67 [20:49:37]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:49:37]wFMCommunicate OK [20:49:37]SAM_PROTO_GetShiftState done [20:49:37]FM_GetShiftState done [20:49:37]opened in 1723940556 [20:49:37]opened+sec_in_day 1724026956 [20:49:37]quantity*price = 50036 [20:49:37]sum+1 = 50037 [20:49:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 497 18.08.2024 20:49 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871820 ФД: 260939 ФПД: 260150582783305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T204943&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260939&fm=260150582783305&tin=02508201610067®Number=0000000000091865&sum=50036 [20:49:38]StoreToDocumentArchive [20:49:38]shift 449 fd 260939 [20:49:38]save to /storage/0449/doc_00260939 [20:49:38]save last doc name /storage/0449/doc_00260939 to /storage/kkm_last_doc_name [20:49:38]save OK [20:49:38]Clear old archive folders... [20:49:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:49:38]tlvbuf is 003833D0 [20:49:38]SAM_PROTO_ClearQueue [20:49:38]wFMCommunicate request_size=4 [20:49:38]MH_SAM_APDU [20:49:38]CAPDU: 80 09 00 00 [20:49:38]Write to MH i2c: E2 08 00 EF CB 80 09 00 00 00 00 00 00 2C [20:49:38]Write i2c OK [20:49:38]MH_I2C_Read... [20:49:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:49:38]Read from MH i2c: E2 [20:49:38]MH_I2C_Read... [20:49:38]Read from MH i2c: E2 03 00 [20:49:38]MH_I2C_Read... [20:49:38]Read from MH i2c: E2 03 00 EF CB 00 90 00 2E [20:49:38]RAPDU: 90 00 [20:49:38]wFMCommunicate OK [20:49:38]SAM_PROTO_ClearQueue done [20:49:38]KKMCreateOFDPacket [20:49:38]OFDProtocolAddRootSTLVToBuf [20:49:38]FM_MakeSignedData [20:49:38]FM_MakeSignedData [20:49:38]SAM_PROTO_SignData [20:49:38]wFMCommunicate request_size=4 [20:49:38]MH_SAM_APDU [20:49:38]CAPDU: 80 0D 01 02 [20:49:38]Write to MH i2c: E2 08 00 F0 CB 80 0D 01 02 00 00 00 00 34 [20:49:38]Write i2c OK [20:49:38]MH_I2C_Read... [20:49:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:49:38]Read from MH i2c: E2 [20:49:38]MH_I2C_Read... [20:49:38]Read from MH i2c: E2 03 00 [20:49:38]MH_I2C_Read... [20:49:38]Read from MH i2c: E2 03 00 F0 CB 00 90 00 2F [20:49:38]RAPDU: 90 00 [20:49:38]wFMCommunicate OK [20:49:38]wFMCommunicate request_size=255 [20:49:38]MH_SAM_APDU [20:49:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 01 00 00 F4 03 04 00 67 5E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4B FB 03 00 35 04 06 00 EC [20:49:38]Write to MH i2c: E2 02 01 F1 CB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 01 00 00 F4 03 04 00 67 5E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4B FB 03 00 35 04 06 00 EC 00 00 CF [20:49:38]Write i2c OK [20:49:38]MH_I2C_Read... [20:49:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:38]Read from MH i2c: E2 [20:49:38]MH_I2C_Read... [20:49:38]Read from MH i2c: E2 03 00 [20:49:38]MH_I2C_Read... [20:49:38]Read from MH i2c: E2 03 00 F1 CB 00 90 00 30 [20:49:38]RAPDU: 90 00 [20:49:38]wFMCommunicate OK [20:49:38]wFMCommunicate request_size=10 [20:49:38]MH_SAM_APDU [20:49:38]CAPDU: 80 0D 02 02 05 9B 07 13 2D 49 [20:49:38]Write to MH i2c: E2 0D 00 F2 CB 80 0D 02 02 05 00 9B 07 13 2D 49 00 00 6C [20:49:38]Write i2c OK [20:49:38]MH_I2C_Read... [20:49:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:38]Read from MH i2c: E2 [20:49:38]MH_I2C_Read... [20:49:38]Read from MH i2c: E2 03 00 [20:49:38]MH_I2C_Read... [20:49:38]Read from MH i2c: E2 03 00 F2 CB 00 90 00 31 [20:49:38]RAPDU: 90 00 [20:49:38]wFMCommunicate OK [20:49:38]wFMCommunicate request_size=4 [20:49:38]MH_SAM_APDU [20:49:38]CAPDU: 80 0D 03 02 [20:49:38]Write to MH i2c: E2 08 00 F3 CB 80 0D 03 02 00 00 00 00 39 [20:49:38]Write i2c OK [20:49:38]MH_I2C_Read... [20:49:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:49:38]Read from MH i2c: E2 [20:49:38]MH_I2C_Read... [20:49:38]Read from MH i2c: E2 0B 00 [20:49:38]MH_I2C_Read... [20:49:38]Read from MH i2c: E2 0B 00 F3 CB 00 6D 6A 46 EB E3 D0 6C 58 90 00 B9 [20:49:38]RAPDU: 6D 6A 46 EB E3 D0 6C 58 90 00 [20:49:38]wFMCommunicate OK [20:49:38]SAM_PROTO_SignData done [20:49:38]FM_MakeSignedData done [20:49:38]CreateOFDProtocolMessage [20:49:38]wFMCommunicate request_size=4 [20:49:38]MH_SAM_APDU [20:49:38]CAPDU: 80 11 00 00 [20:49:38]Write to MH i2c: E2 08 00 F4 CB 80 11 00 00 00 00 00 00 39 [20:49:38]Write i2c OK [20:49:38]MH_I2C_Read... [20:49:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:38]Read from MH i2c: E2 [20:49:38]MH_I2C_Read... [20:49:38]Read from MH i2c: E2 17 00 [20:49:38]MH_I2C_Read... [20:49:38]Read from MH i2c: E2 17 00 F4 CB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 86 [20:49:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:49:38]wFMCommunicate OK [20:49:38]CreateOFDProtocolMessage done [20:49:38]OFDSenderStorePacket 260939 [20:49:38]StoreOFDPacket docnum=260939 [20:49:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 C5 F7 07 01 B2 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 01 00 00 F4 03 04 00 67 5E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4B FB 03 00 35 04 06 00 EC 9B 07 13 2D 49 6D 6A 46 EB E3 D0 6C 58 [20:49:38]CheckFolder [20:49:38]dirname=/storage/ofd_packets [20:49:38]CheckFolder done [20:49:38]ProducePacketName [20:49:38]name=ofd_packets/00260939 [20:49:38]NVStorageSaveData ofd_packets/00260939 [20:49:38]File name is /storage/ofd_packets/00260939 [20:49:38]Write 301 bytes [20:49:38]NVStorageSaveData done [20:49:38]OFDSenderStorePacket done [20:49:38]KKMCreateOFDPacket done [20:49:38]NVStorageSaveData kkm_last_timestamp [20:49:38]File name is /storage/kkm_last_timestamp [20:49:38]Write 4 bytes [20:49:38]NVStorageSaveData done [20:49:38]ExternCall_PrintAddStr [20:49:38]wPrintStart [20:49:38]Write to MH i2c: 01 00 00 F5 CB C0 [20:49:38]Write i2c OK [20:49:38]MH_I2C_Read... [20:49:38]Read from MH i2c: 01 [20:49:38]MH_I2C_Read... [20:49:38]Read from MH i2c: 01 07 00 [20:49:38]MH_I2C_Read... [20:49:38]Read from MH i2c: 01 07 00 F5 CB 00 00 00 00 00 FF 0F D5 [20:49:38]RasterBufferAndPrint [20:49:38]line Счет N : (1)1036492 [20:49:38]line ИНН: 02508201610067 [20:49:38]line Контрольно-Кассовый Чек [20:49:38]line ПРОДАЖА [20:49:38]line ТРК (МРК, ГНК) : 42 [20:49:38]line Товар: 2710124130 [20:49:38]line Аи-92-К-5 [20:49:38]line 7.380 * 67.80 [20:49:38]line = 500.36 [20:49:38]line НДС 12% НСП 1% [20:49:38]line > о реализуемом товаре [20:49:38]line ИТОГО: 500.36 [20:49:38]line НСП 1% : 4.43 [20:49:38]line НДС 12% : 53.14 [20:49:38]line Наличными: 0.00 [20:49:38]line Безнал.: 500.36 [20:49:38]line Место: АЗС № 94 "Партнер Нефть" [20:49:38]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:49:38]line СНО: Общий режим [20:49:38]line Чек 497 18.08.2024 20:49 [20:49:38]line Смена: 449 ФФД: 1.0 [20:49:38]line ЗНМ: 0300000099 [20:49:38]line РНМ: 0000000000091865 [20:49:38]line Версия ККМ: 001 [20:49:38]line Платежная система: Бакай Банк [20:49:38]line ФМ: 0000000000871820 [20:49:38]line ФД: 260939 [20:49:38]line ФПД: 260150582783305 [20:49:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T204943&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260939&fm=260150582783305&tin=02508201610067®Number=0000000000091865&sum=50036 [20:49:38]written 0, free lines is 4095 [20:49:38]OFD Sender: Processing packet 260939 [packets to send 192, broken 191] [20:49:38]ProducePacketName [20:49:38]name=ofd_packets/00260939 [20:49:38]OFD Sender: To server: pG, [20:49:38]CommunicateWithHost lk.salyk.kg:30040 [20:49:38]ConnectInit lk.salyk.kg [20:49:38]Connected sock=10 [20:49: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 30 0F 01 00 00 C5 F7 07 01 B2 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 01 00 00 F4 03 04 00 67 5E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4B FB 03 00 35 04 06 00 EC 9B 07 13 2D 49 6D 6A 46 EB E3 D0 6C 58 [20:49: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 30 4F 00 00 00 2E 89 47 00 7B 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4B FB 03 00 F4 03 04 00 BB 07 C2 66 B6 04 01 00 00 B7 17 61 5C A4 6C AB E1 [20:49:39]CommunicateWithHost err = 0 [20:49:39]CheckOFDResponse [20:49:39]1017 (14) - 77093643461234 [20:49:39]1041 (16) - 0000000000871820 [20:49:39]1040 (4) - 260939 [20:49:39]1012 (4) - 18.08.2024 14:39 [20:49:39]1206 (1) - 0 [20:49:39]OFD Sender: Remove packet 260939 [20:49:39]ProducePacketName [20:49:39]name=ofd_packets/00260939 [20:49:39]NVStorageDeleteData [20:49:39]Write to MH i2c: 01 00 00 1F CC EB [20:49:39]Write i2c OK [20:49:39]MH_I2C_Read... [20:49:39]Read from MH i2c: 01 [20:49:39]MH_I2C_Read... [20:49:39]Read from MH i2c: 01 07 00 [20:49:39]MH_I2C_Read... [20:49:39]Read from MH i2c: 01 07 00 1F CC 00 00 00 00 00 8A 0C 88 [20:49:39]RasterBufferAndPrint [20:49:39]line [20:49:39]line [20:49:39]line [20:49:39]line [20:49:39]line [20:49:39]written 0, free lines is 3214 [20:49:39]MH_Cut [20:49:39]Write to MH i2c: D1 01 00 26 CC 01 C4 [20:49:39]Write i2c OK [20:49:39]MH_I2C_Read... [20:49:39]Read from MH i2c: D1 [20:49:39]MH_I2C_Read... [20:49:39]Read from MH i2c: D1 01 00 [20:49:39]MH_I2C_Read... [20:49:39]Read from MH i2c: D1 01 00 26 CC 00 C3 [20:49:39]Write to MH i2c: 01 00 00 27 CC F3 [20:49:39]Write i2c OK [20:49:39]MH_I2C_Read... [20:49:39]OFD Sender: No OFD packet to send [20:49:40]*** Cut start [20:49:40]*** Purtial cut [20:49:40]*** Stage 1: CUTSNS_PIN = 1 [20:49:42]Read from MH i2c: 01 [20:49:42]MH_I2C_Read... [20:49:42]*** Stop cut motor [20:49:42]*** Cut end [20:49:42]Read from MH i2c: 01 07 00 [20:49:42]MH_I2C_Read... [20:49:42]Read from MH i2c: 01 07 00 27 CC 00 00 00 00 00 FF 0F 08 [20:49:42]process_action close_receipt done [20:49:42]requested_data is exist [20:49:42]produce_requested_data [20:49:42]requested_item fm.sn is exist - process it [20:49:42]wFMCommunicate request_size=4 [20:49:42]MH_SAM_APDU [20:49:42]CAPDU: 80 11 00 00 [20:49:42]Write to MH i2c: E2 08 00 28 CC 80 11 00 00 00 00 00 00 6E [20:49:42]Write i2c OK [20:49:42]MH_I2C_Read... [20:49:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:42]Read from MH i2c: E2 [20:49:42]MH_I2C_Read... [20:49:42]Read from MH i2c: E2 17 00 [20:49:42]MH_I2C_Read... [20:49:42]Read from MH i2c: E2 17 00 28 CC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 BB [20:49:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:49:42]wFMCommunicate OK [20:49:42]requested_item fd.num is exist - process it [20:49:42]SAM_PROTO_GetFieldsCounters [20:49:42]wFMCommunicate request_size=4 [20:49:42]MH_SAM_APDU [20:49:42]CAPDU: 80 13 00 00 [20:49:42]Write to MH i2c: E2 08 00 29 CC 80 13 00 00 00 00 00 00 71 [20:49:42]Write i2c OK [20:49:42]MH_I2C_Read... [20:49:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:49:42]Read from MH i2c: E2 [20:49:42]MH_I2C_Read... [20:49:42]Read from MH i2c: E2 62 00 [20:49:42]MH_I2C_Read... [20:49:42]Read from MH i2c: E2 62 00 29 CC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 4B FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F1 01 00 00 5E 04 04 00 F1 01 00 00 57 04 04 00 F2 01 00 00 19 04 04 00 00 00 00 00 90 00 71 [20:49: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 4B FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F1 01 00 00 5E 04 04 00 F1 01 00 00 57 04 04 00 F2 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:49:42]wFMCommunicate OK [20:49:42]SAM_PROTO_GetFieldsCounters done [20:49:42]requested_item shift.num is exist - process it [20:49:42]requested_item shift.opened is exist - process it [20:49:42]req_shift_opened [20:49:42]FM_GetShiftState [20:49:42]SAM_PROTO_GetShiftState [20:49:42]wFMCommunicate request_size=4 [20:49:42]MH_SAM_APDU [20:49:42]CAPDU: 80 13 01 00 [20:49:42]Write to MH i2c: E2 08 00 2A CC 80 13 01 00 00 00 00 00 73 [20:49:42]Write i2c OK [20:49:42]MH_I2C_Read... [20:49:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:42]Read from MH i2c: E2 [20:49:42]MH_I2C_Read... [20:49:42]Read from MH i2c: E2 0E 00 [20:49:42]MH_I2C_Read... [20:49:42]Read from MH i2c: E2 0E 00 2A CC 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B0 [20:49:42]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:49:42]wFMCommunicate OK [20:49:42]SAM_PROTO_GetShiftState done [20:49:42]FM_GetShiftState done [20:49:42]req_shift_opened done [20:49:42]requested_item shift.open_date is exist - process it [20:49:42]req_shift_open_date [20:49:42]req_shift_open_date done [20:49:42]produce_requested_data done [20:49:42]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260939,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:49:42]process_action_free close_receipt [20:49:42]json_value_free [20:49:42]json_value_free done [20:49:42]process_json_proto returns [20:49:42]Send response to host [20:49:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260939,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:49:42]free response buf [20:49:42]execute_script done [20:49:42]execute_script returns [20:49:42]free content buf [20:49:42]Sock 7.Close socket [20:49:42]Sock 7.Thread stoped [20:49:43]accept exits with 9 [20:49:43]New connection [20:49:43]New thread 3066473828 created [20:49:43]Thread 3066617188 joined [20:49:43]Waiting for new connection... [20:49:43] Sock 9.Parse request [20:49:43]Sock 9.Check first char [20:49:43]Sock 9.First char is OK [20:49:43]request: POST /json_proto HTTP/1.0 [20:49:43]Method: POST [20:49:43]URL: /json_proto [20:49:43]Method is POST - this is cgi request [20:49:43]url: /json_proto [20:49:43]query_string will be loaded in cgi processing [20:49:43]execute_cgi json_proto POST (null) [20:49:43]execute_cgi path=json_proto method=POST [20:49:43]POST find Content-Length [20:49:43]Host: 172.17.55.133:8080 [20:49:43]Content-Length: 678 [20:49:43]Content-Type: application/json [20:49:43] [20:49:43]POST finish read [20:49:43]Found Content-Length = 678 [20:49:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.540, "sum" : 240.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:43]execute_script... [20:49: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)1036493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.540, "sum" : 240.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:43]POST & json_proto [20:49:43]process_json_proto [20:49:43]json parsed OK: [20:49:43]protocol is kg_v1.0 [20:49:43]action value=close_receipt [20:49:43]process_action close_receipt [20:49:43]cmd_close_receipt [20:49:43]MH_GetDate [20:49:43]Write to MH i2c: F0 00 00 2B CC E6 [20:49:43]Write i2c OK [20:49:43]MH_I2C_Read... [20:49:43]Read from MH i2c: F0 [20:49:43]MH_I2C_Read... [20:49:43]Read from MH i2c: F0 09 00 [20:49:43]MH_I2C_Read... [20:49:43]Read from MH i2c: F0 09 00 2B CC 00 6D 5E C2 66 34 48 D8 65 9B [20:49:43]GetLastDocTimeStamp 1724014183 [20:49:43]current date 1724014189 [20:49:43]FM_GetShiftState [20:49:43]SAM_PROTO_GetShiftState [20:49:43]wFMCommunicate request_size=4 [20:49:43]MH_SAM_APDU [20:49:43]CAPDU: 80 13 01 00 [20:49:43]Write to MH i2c: E2 08 00 2C CC 80 13 01 00 00 00 00 00 75 [20:49:43]Write i2c OK [20:49:43]MH_I2C_Read... [20:49:43]Read from MH i2c: E2 [20:49:43]MH_I2C_Read... [20:49:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:43]Read from MH i2c: E2 0E 00 [20:49:43]MH_I2C_Read... [20:49:43]Read from MH i2c: E2 0E 00 2C CC 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B2 [20:49:43]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:49:43]wFMCommunicate OK [20:49:43]SAM_PROTO_GetShiftState done [20:49:43]FM_GetShiftState done [20:49:43]opened in 1723940556 [20:49:43]opened+sec_in_day 1724026956 [20:49:43]quantity*price = 24001 [20:49:43]sum+1 = 24002 [20:49:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.12 НДС 12% : 25.49 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 498 18.08.2024 20:49 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260940 ФПД: 122507760483378 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T204949&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260940&fm=122507760483378&tin=02508201610067®Number=0000000000091865&sum=24000 [20:49:44]StoreToDocumentArchive [20:49:44]shift 449 fd 260940 [20:49:44]save to /storage/0449/doc_00260940 [20:49:44]save last doc name /storage/0449/doc_00260940 to /storage/kkm_last_doc_name [20:49:44]save OK [20:49:44]Clear old archive folders... [20:49:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:49:44]tlvbuf is 0037B7E0 [20:49:44]SAM_PROTO_ClearQueue [20:49:44]wFMCommunicate request_size=4 [20:49:44]MH_SAM_APDU [20:49:44]CAPDU: 80 09 00 00 [20:49:44]Write to MH i2c: E2 08 00 39 CC 80 09 00 00 00 00 00 00 77 [20:49:44]Write i2c OK [20:49:44]MH_I2C_Read... [20:49:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:49:44]Read from MH i2c: E2 [20:49:44]MH_I2C_Read... [20:49:44]Read from MH i2c: E2 03 00 [20:49:44]MH_I2C_Read... [20:49:44]Read from MH i2c: E2 03 00 39 CC 00 90 00 79 [20:49:44]RAPDU: 90 00 [20:49:44]wFMCommunicate OK [20:49:44]SAM_PROTO_ClearQueue done [20:49:44]KKMCreateOFDPacket [20:49:44]OFDProtocolAddRootSTLVToBuf [20:49:44]FM_MakeSignedData [20:49:44]FM_MakeSignedData [20:49:44]SAM_PROTO_SignData [20:49:44]wFMCommunicate request_size=4 [20:49:44]MH_SAM_APDU [20:49:44]CAPDU: 80 0D 01 02 [20:49:44]Write to MH i2c: E2 08 00 3A CC 80 0D 01 02 00 00 00 00 7F [20:49:44]Write i2c OK [20:49:44]MH_I2C_Read... [20:49:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:49:44]Read from MH i2c: E2 [20:49:44]MH_I2C_Read... [20:49:44]Read from MH i2c: E2 03 00 [20:49:44]MH_I2C_Read... [20:49:44]Read from MH i2c: E2 03 00 3A CC 00 90 00 7A [20:49:44]RAPDU: 90 00 [20:49:44]wFMCommunicate OK [20:49:44]wFMCommunicate request_size=255 [20:49:44]MH_SAM_APDU [20:49:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 0D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C1 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 F5 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 F2 01 00 00 F4 03 04 00 6D 5E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4C FB 03 00 35 04 06 00 6F [20:49:44]Write to MH i2c: E2 02 01 3B CC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 0D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C1 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 F5 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 F2 01 00 00 F4 03 04 00 6D 5E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4C FB 03 00 35 04 06 00 6F 00 00 89 [20:49:44]Write i2c OK [20:49:44]MH_I2C_Read... [20:49:44]OFD Sender: No OFD packet to send [20:49:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:44]Read from MH i2c: E2 [20:49:44]MH_I2C_Read... [20:49:44]Read from MH i2c: E2 03 00 [20:49:44]MH_I2C_Read... [20:49:44]Read from MH i2c: E2 03 00 3B CC 00 90 00 7B [20:49:44]RAPDU: 90 00 [20:49:44]wFMCommunicate OK [20:49:44]wFMCommunicate request_size=10 [20:49:44]MH_SAM_APDU [20:49:44]CAPDU: 80 0D 02 02 05 6B 8F 8B BC 32 [20:49:44]Write to MH i2c: E2 0D 00 3C CC 80 0D 02 02 05 00 6B 8F 8B BC 32 00 00 FF [20:49:44]Write i2c OK [20:49:44]MH_I2C_Read... [20:49:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:44]Read from MH i2c: E2 [20:49:44]MH_I2C_Read... [20:49:44]Read from MH i2c: E2 03 00 [20:49:44]MH_I2C_Read... [20:49:44]Read from MH i2c: E2 03 00 3C CC 00 90 00 7C [20:49:44]RAPDU: 90 00 [20:49:44]wFMCommunicate OK [20:49:44]wFMCommunicate request_size=4 [20:49:44]MH_SAM_APDU [20:49:44]CAPDU: 80 0D 03 02 [20:49:44]Write to MH i2c: E2 08 00 3D CC 80 0D 03 02 00 00 00 00 84 [20:49:44]Write i2c OK [20:49:44]MH_I2C_Read... [20:49:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:49:45]Read from MH i2c: E2 [20:49:45]MH_I2C_Read... [20:49:45]Read from MH i2c: E2 0B 00 [20:49:45]MH_I2C_Read... [20:49:45]Read from MH i2c: E2 0B 00 3D CC 00 EA 80 0B 2E BB 73 49 CD 90 00 6C [20:49:45]RAPDU: EA 80 0B 2E BB 73 49 CD 90 00 [20:49:45]wFMCommunicate OK [20:49:45]SAM_PROTO_SignData done [20:49:45]FM_MakeSignedData done [20:49:45]CreateOFDProtocolMessage [20:49:45]wFMCommunicate request_size=4 [20:49:45]MH_SAM_APDU [20:49:45]CAPDU: 80 11 00 00 [20:49:45]Write to MH i2c: E2 08 00 3E CC 80 11 00 00 00 00 00 00 84 [20:49:45]Write i2c OK [20:49:45]MH_I2C_Read... [20:49:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:45]Read from MH i2c: E2 [20:49:45]MH_I2C_Read... [20:49:45]Read from MH i2c: E2 17 00 [20:49:45]MH_I2C_Read... [20:49:45]Read from MH i2c: E2 17 00 3E CC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D1 [20:49:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:49:45]wFMCommunicate OK [20:49:45]CreateOFDProtocolMessage done [20:49:45]OFDSenderStorePacket 260940 [20:49:45]StoreOFDPacket docnum=260940 [20:49:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 15 E8 07 01 C6 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 0D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C1 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 F5 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 F2 01 00 00 F4 03 04 00 6D 5E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4C FB 03 00 35 04 06 00 6F 6B 8F 8B BC 32 EA 80 0B 2E BB 73 49 CD [20:49:45]CheckFolder [20:49:45]dirname=/storage/ofd_packets [20:49:45]CheckFolder done [20:49:45]ProducePacketName [20:49:45]name=ofd_packets/00260940 [20:49:45]NVStorageSaveData ofd_packets/00260940 [20:49:45]File name is /storage/ofd_packets/00260940 [20:49:45]Write 301 bytes [20:49:45]NVStorageSaveData done [20:49:45]OFDSenderStorePacket done [20:49:45]KKMCreateOFDPacket done [20:49:45]NVStorageSaveData kkm_last_timestamp [20:49:45]File name is /storage/kkm_last_timestamp [20:49:45]Write 4 bytes [20:49:45]NVStorageSaveData done [20:49:45]ExternCall_PrintAddStr [20:49:45]wPrintStart [20:49:45]Write to MH i2c: 01 00 00 3F CC 0B [20:49:45]Write i2c OK [20:49:45]MH_I2C_Read... [20:49:45]Read from MH i2c: 01 [20:49:45]MH_I2C_Read... [20:49:45]Read from MH i2c: 01 07 00 [20:49:45]MH_I2C_Read... [20:49:45]Read from MH i2c: 01 07 00 3F CC 00 00 00 00 00 FF 0F 20 [20:49:45]RasterBufferAndPrint [20:49:45]line Счет N : (1)1036493 [20:49:45]line ИНН: 02508201610067 [20:49:45]line Контрольно-Кассовый Чек [20:49:45]line ПРОДАЖА [20:49:45]line ТРК (МРК, ГНК) : 22 [20:49:45]line Товар: 2710124130 [20:49:45]line Аи-92-К-5 [20:49:45]line 3.540 * 67.80 [20:49:45]line = 240.01 [20:49:45]line НДС 12% НСП 1% [20:49:45]line > о реализуемом товаре [20:49:45]line ОКРУГЛЕНИЕ: -0.01 [20:49:45]line ИТОГО: 240.00 [20:49:45]line Внесено: 240.00 [20:49:45]line СДАЧА: 0.00 [20:49:45]line НСП 1% : 2.12 [20:49:45]line НДС 12% : 25.49 [20:49:45]line Наличными: 240.00 [20:49:45]line Безнал.: 0.00 [20:49:45]line Место: АЗС № 94 "Партнер Нефть" [20:49:45]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:49:45]line СНО: Общий режим [20:49:45]line Чек 498 18.08.2024 20:49 [20:49:45]line Смена: 449 ФФД: 1.0 [20:49:45]line ЗНМ: 0300000099 [20:49:45]line РНМ: 0000000000091865 [20:49:45]line Версия ККМ: 001 [20:49:45]line ФМ: 0000000000871820 [20:49:45]line ФД: 260940 [20:49:45]line ФПД: 122507760483378 [20:49:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T204949&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260940&fm=122507760483378&tin=02508201610067®Number=0000000000091865&sum=24000 [20:49:45]OFD Sender: Processing packet 260940 [packets to send 192, broken 191] [20:49:45]ProducePacketName [20:49:45]name=ofd_packets/00260940 [20:49:45]OFD Sender: To server: pG, [20:49:45]CommunicateWithHost lk.salyk.kg:30040 [20:49:45]ConnectInit lk.salyk.kg [20:49:45]written 0, free lines is 4095 [20:49:45]Connected sock=10 [20:49: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 30 0F 01 00 00 15 E8 07 01 C6 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 0D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C1 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 F5 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 F2 01 00 00 F4 03 04 00 6D 5E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4C FB 03 00 35 04 06 00 6F 6B 8F 8B BC 32 EA 80 0B 2E BB 73 49 CD [20:49: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 30 4F 00 00 00 5B 05 47 00 E6 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4C FB 03 00 F4 03 04 00 C2 07 C2 66 B6 04 01 00 00 12 EA 63 AC 9D E8 28 9F [20:49:45]CommunicateWithHost err = 0 [20:49:45]CheckOFDResponse [20:49:45]1017 (14) - 77093643461234 [20:49:45]1041 (16) - 0000000000871820 [20:49:45]1040 (4) - 260940 [20:49:45]1012 (4) - 18.08.2024 14:40 [20:49:45]1206 (1) - 0 [20:49:45]OFD Sender: Remove packet 260940 [20:49:45]ProducePacketName [20:49:45]name=ofd_packets/00260940 [20:49:45]NVStorageDeleteData [20:49:45]Write to MH i2c: 01 00 00 6A CC 36 [20:49:45]Write i2c OK [20:49:45]MH_I2C_Read... [20:49:45]Read from MH i2c: 01 [20:49:45]MH_I2C_Read... [20:49:45]Read from MH i2c: 01 07 00 [20:49:45]MH_I2C_Read... [20:49:45]Read from MH i2c: 01 07 00 6A CC 00 00 00 00 00 85 0C CE [20:49:45]RasterBufferAndPrint [20:49:45]line [20:49:45]line [20:49:45]line [20:49:45]line [20:49:45]line [20:49:45]written 0, free lines is 3210 [20:49:45]MH_Cut [20:49:45]Write to MH i2c: D1 01 00 71 CC 01 0F [20:49:45]Write i2c OK [20:49:45]MH_I2C_Read... [20:49:45]Read from MH i2c: D1 [20:49:45]MH_I2C_Read... [20:49:45]Read from MH i2c: D1 01 00 [20:49:45]MH_I2C_Read... [20:49:45]Read from MH i2c: D1 01 00 71 CC 00 0E [20:49:45]Write to MH i2c: 01 00 00 72 CC 3E [20:49:45]Write i2c OK [20:49:45]MH_I2C_Read... [20:49:46]OFD Sender: No OFD packet to send [20:49:46]*** Cut start [20:49:46]*** Purtial cut [20:49:46]*** Stage 1: CUTSNS_PIN = 1 [20:49:49]Read from MH i2c: 01 [20:49:49]MH_I2C_Read... [20:49:49]*** Stop cut motor [20:49:49]*** Cut end [20:49:49]Read from MH i2c: 01 07 00 [20:49:49]MH_I2C_Read... [20:49:49]Read from MH i2c: 01 07 00 72 CC 00 00 00 00 00 FF 0F 53 [20:49:49]process_action close_receipt done [20:49:49]requested_data is exist [20:49:49]produce_requested_data [20:49:49]requested_item fm.sn is exist - process it [20:49:49]wFMCommunicate request_size=4 [20:49:49]MH_SAM_APDU [20:49:49]CAPDU: 80 11 00 00 [20:49:49]Write to MH i2c: E2 08 00 73 CC 80 11 00 00 00 00 00 00 B9 [20:49:49]Write i2c OK [20:49:49]MH_I2C_Read... [20:49:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:49]Read from MH i2c: E2 [20:49:49]MH_I2C_Read... [20:49:49]Read from MH i2c: E2 17 00 [20:49:49]MH_I2C_Read... [20:49:49]Read from MH i2c: E2 17 00 73 CC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 06 [20:49:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:49:49]wFMCommunicate OK [20:49:49]requested_item fd.num is exist - process it [20:49:49]SAM_PROTO_GetFieldsCounters [20:49:49]wFMCommunicate request_size=4 [20:49:49]MH_SAM_APDU [20:49:49]CAPDU: 80 13 00 00 [20:49:49]Write to MH i2c: E2 08 00 74 CC 80 13 00 00 00 00 00 00 BC [20:49:49]Write i2c OK [20:49:49]MH_I2C_Read... [20:49:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:49:49]Read from MH i2c: E2 [20:49:49]MH_I2C_Read... [20:49:49]Read from MH i2c: E2 62 00 [20:49:49]MH_I2C_Read... [20:49:49]Read from MH i2c: E2 62 00 74 CC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 4C FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F2 01 00 00 5E 04 04 00 F2 01 00 00 57 04 04 00 F3 01 00 00 19 04 04 00 00 00 00 00 90 00 C0 [20:49: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 4C FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F2 01 00 00 5E 04 04 00 F2 01 00 00 57 04 04 00 F3 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:49:49]wFMCommunicate OK [20:49:49]SAM_PROTO_GetFieldsCounters done [20:49:49]requested_item shift.num is exist - process it [20:49:49]requested_item shift.opened is exist - process it [20:49:49]req_shift_opened [20:49:49]FM_GetShiftState [20:49:49]SAM_PROTO_GetShiftState [20:49:49]wFMCommunicate request_size=4 [20:49:49]MH_SAM_APDU [20:49:49]CAPDU: 80 13 01 00 [20:49:49]Write to MH i2c: E2 08 00 75 CC 80 13 01 00 00 00 00 00 BE [20:49:49]Write i2c OK [20:49:49]MH_I2C_Read... [20:49:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:49]Read from MH i2c: E2 [20:49:49]MH_I2C_Read... [20:49:49]Read from MH i2c: E2 0E 00 [20:49:49]MH_I2C_Read... [20:49:49]Read from MH i2c: E2 0E 00 75 CC 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 FB [20:49:49]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:49:49]wFMCommunicate OK [20:49:49]SAM_PROTO_GetShiftState done [20:49:49]FM_GetShiftState done [20:49:49]req_shift_opened done [20:49:49]requested_item shift.open_date is exist - process it [20:49:49]req_shift_open_date [20:49:49]req_shift_open_date done [20:49:49]produce_requested_data done [20:49:49]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260940,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:49:49]process_action_free close_receipt [20:49:49]json_value_free [20:49:49]json_value_free done [20:49:49]process_json_proto returns [20:49:49]Send response to host [20:49:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260940,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:49:49]free response buf [20:49:49]execute_script done [20:49:49]execute_script returns [20:49:49]free content buf [20:49:49]Sock 9.Close socket [20:49:49]Sock 9.Thread stoped [20:49:51]OFD Sender: No OFD packet to send [20:49:56]OFD Sender: No OFD packet to send [20:50:01]OFD Sender: No OFD packet to send [20:50:06]OFD Sender: No OFD packet to send [20:50:11]OFD Sender: No OFD packet to send [20:50:16]OFD Sender: No OFD packet to send [20:50:21]OFD Sender: No OFD packet to send [20:50:26]OFD Sender: No OFD packet to send [20:50:31]OFD Sender: No OFD packet to send [20:50:36]OFD Sender: No OFD packet to send [20:50:41]OFD Sender: No OFD packet to send [20:50:46]accept exits with 7 [20:50:46]New connection [20:50:46]New thread 3066617188 created [20:50:46]Thread 3066473828 joined [20:50:46]Waiting for new connection... [20:50:46] Sock 7.Parse request [20:50:46]Sock 7.Check first char [20:50:46]Sock 7.First char is OK [20:50:46]request: POST /json_proto HTTP/1.0 [20:50:46]Method: POST [20:50:46]URL: /json_proto [20:50:46]Method is POST - this is cgi request [20:50:46]url: /json_proto [20:50:46]query_string will be loaded in cgi processing [20:50:46]execute_cgi json_proto POST (null) [20:50:46]execute_cgi path=json_proto method=POST [20:50:46]POST find Content-Length [20:50:46]Host: 172.17.55.133:8080 [20:50:46]Content-Length: 683 [20:50:46]Content-Type: application/json [20:50:46] [20:50:46]POST finish read [20:50:46]Found Content-Length = 683 [20:50:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:50:46]execute_script... [20: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)1036494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:50:46]POST & json_proto [20:50:46]process_json_proto [20:50:46]json parsed OK: [20:50:46]protocol is kg_v1.0 [20:50:46]action value=close_receipt [20:50:46]process_action close_receipt [20:50:46]cmd_close_receipt [20:50:46]MH_GetDate [20:50:46]Write to MH i2c: F0 00 00 76 CC 31 [20:50:46]Write i2c OK [20:50:46]MH_I2C_Read... [20:50:46]Read from MH i2c: F0 [20:50:46]MH_I2C_Read... [20:50:46]Read from MH i2c: F0 09 00 [20:50:46]MH_I2C_Read... [20:50:46]Read from MH i2c: F0 09 00 76 CC 00 AC 5E C2 66 34 48 D8 65 25 [20:50:46]GetLastDocTimeStamp 1724014189 [20:50:46]current date 1724014252 [20:50:46]FM_GetShiftState [20:50:46]SAM_PROTO_GetShiftState [20:50:46]wFMCommunicate request_size=4 [20:50:46]MH_SAM_APDU [20:50:46]CAPDU: 80 13 01 00 [20:50:46]Write to MH i2c: E2 08 00 77 CC 80 13 01 00 00 00 00 00 C0 [20:50:46]Write i2c OK [20:50:46]MH_I2C_Read... [20:50:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:46]Read from MH i2c: E2 [20:50:46]MH_I2C_Read... [20:50:46]Read from MH i2c: E2 0E 00 [20:50:46]MH_I2C_Read... [20:50:46]Read from MH i2c: E2 0E 00 77 CC 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 FD [20:50:46]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:50:46]wFMCommunicate OK [20:50:46]SAM_PROTO_GetShiftState done [20:50:46]FM_GetShiftState done [20:50:46]opened in 1723940556 [20:50:46]opened+sec_in_day 1724026956 [20:50:46]quantity*price = 100005 [20:50:46]sum+1 = 100006 [20:50:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 499 18.08.2024 20:50 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260941 ФПД: 110230261810176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T205052&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260941&fm=110230261810176&tin=02508201610067®Number=0000000000091865&sum=100000 [20:50:47]StoreToDocumentArchive [20:50:47]shift 449 fd 260941 [20:50:47]save to /storage/0449/doc_00260941 [20:50:47]save last doc name /storage/0449/doc_00260941 to /storage/kkm_last_doc_name [20:50:47]save OK [20:50:47]Clear old archive folders... [20:50:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:50:47]tlvbuf is 004A20C0 [20:50:47]SAM_PROTO_ClearQueue [20:50:47]wFMCommunicate request_size=4 [20:50:47]MH_SAM_APDU [20:50:47]CAPDU: 80 09 00 00 [20:50:47]Write to MH i2c: E2 08 00 84 CC 80 09 00 00 00 00 00 00 C2 [20:50:47]Write i2c OK [20:50:47]MH_I2C_Read... [20:50:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:50:47]Read from MH i2c: E2 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: E2 03 00 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: E2 03 00 84 CC 00 90 00 C4 [20:50:47]RAPDU: 90 00 [20:50:47]wFMCommunicate OK [20:50:47]SAM_PROTO_ClearQueue done [20:50:47]KKMCreateOFDPacket [20:50:47]OFDProtocolAddRootSTLVToBuf [20:50:47]FM_MakeSignedData [20:50:47]FM_MakeSignedData [20:50:47]SAM_PROTO_SignData [20:50:47]wFMCommunicate request_size=4 [20:50:47]MH_SAM_APDU [20:50:47]CAPDU: 80 0D 01 02 [20:50:47]Write to MH i2c: E2 08 00 85 CC 80 0D 01 02 00 00 00 00 CA [20:50:47]Write i2c OK [20:50:47]MH_I2C_Read... [20:50:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:50:47]Read from MH i2c: E2 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: E2 03 00 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: E2 03 00 85 CC 00 90 00 C5 [20:50:47]RAPDU: 90 00 [20:50:47]wFMCommunicate OK [20:50:47]wFMCommunicate request_size=255 [20:50:47]MH_SAM_APDU [20:50:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 AC 5E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4D FB 03 00 35 04 06 00 64 [20:50:47]Write to MH i2c: E2 02 01 86 CC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 AC 5E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4D FB 03 00 35 04 06 00 64 00 00 6D [20:50:47]Write i2c OK [20:50:47]MH_I2C_Read... [20:50:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:47]Read from MH i2c: E2 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: E2 03 00 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: E2 03 00 86 CC 00 90 00 C6 [20:50:47]RAPDU: 90 00 [20:50:47]wFMCommunicate OK [20:50:47]wFMCommunicate request_size=10 [20:50:47]MH_SAM_APDU [20:50:47]CAPDU: 80 0D 02 02 05 40 FB 99 44 00 [20:50:47]Write to MH i2c: E2 0D 00 87 CC 80 0D 02 02 05 00 40 FB 99 44 00 00 00 EF [20:50:47]Write i2c OK [20:50:47]MH_I2C_Read... [20:50:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:47]Read from MH i2c: E2 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: E2 03 00 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: E2 03 00 87 CC 00 90 00 C7 [20:50:47]RAPDU: 90 00 [20:50:47]wFMCommunicate OK [20:50:47]wFMCommunicate request_size=4 [20:50:47]MH_SAM_APDU [20:50:47]CAPDU: 80 0D 03 02 [20:50:47]Write to MH i2c: E2 08 00 88 CC 80 0D 03 02 00 00 00 00 CF [20:50:47]Write i2c OK [20:50:47]MH_I2C_Read... [20:50:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:50:47]Read from MH i2c: E2 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: E2 0B 00 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: E2 0B 00 88 CC 00 2F 13 0B 6E 71 81 44 68 90 00 29 [20:50:47]RAPDU: 2F 13 0B 6E 71 81 44 68 90 00 [20:50:47]wFMCommunicate OK [20:50:47]SAM_PROTO_SignData done [20:50:47]FM_MakeSignedData done [20:50:47]CreateOFDProtocolMessage [20:50:47]wFMCommunicate request_size=4 [20:50:47]MH_SAM_APDU [20:50:47]CAPDU: 80 11 00 00 [20:50:47]Write to MH i2c: E2 08 00 89 CC 80 11 00 00 00 00 00 00 CF [20:50:47]Write i2c OK [20:50:47]MH_I2C_Read... [20:50:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:47]Read from MH i2c: E2 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: E2 17 00 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: E2 17 00 89 CC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 1C [20:50:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:50:47]wFMCommunicate OK [20:50:47]CreateOFDProtocolMessage done [20:50:47]OFDSenderStorePacket 260941 [20:50:47]StoreOFDPacket docnum=260941 [20:50:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 CA 57 07 01 CD A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 AC 5E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4D FB 03 00 35 04 06 00 64 40 FB 99 44 00 2F 13 0B 6E 71 81 44 68 [20:50:47]CheckFolder [20:50:47]dirname=/storage/ofd_packets [20:50:47]CheckFolder done [20:50:47]ProducePacketName [20:50:47]name=ofd_packets/00260941 [20:50:47]NVStorageSaveData ofd_packets/00260941 [20:50:47]File name is /storage/ofd_packets/00260941 [20:50:47]Write 301 bytes [20:50:47]NVStorageSaveData done [20:50:47]OFDSenderStorePacket done [20:50:47]KKMCreateOFDPacket done [20:50:47]NVStorageSaveData kkm_last_timestamp [20:50:47]File name is /storage/kkm_last_timestamp [20:50:47]Write 4 bytes [20:50:47]NVStorageSaveData done [20:50:47]ExternCall_PrintAddStr [20:50:47]wPrintStart [20:50:47]Write to MH i2c: 01 00 00 8A CC 56 [20:50:47]Write i2c OK [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: 01 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: 01 07 00 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: 01 07 00 8A CC 00 00 00 00 00 FF 0F 6B [20:50:47]RasterBufferAndPrint [20:50:47]line Счет N : (1)1036494 [20:50:47]line ИНН: 02508201610067 [20:50:47]line Контрольно-Кассовый Чек [20:50:47]line ПРОДАЖА [20:50:47]line ТРК (МРК, ГНК) : 12 [20:50:47]line Товар: 2710124130 [20:50:47]line Аи-92-К-5 [20:50:47]line 14.750 * 67.80 [20:50:47]line = 1000.05 [20:50:47]line НДС 12% НСП 1% [20:50:47]line > о реализуемом товаре [20:50:47]line ОКРУГЛЕНИЕ: -0.05 [20:50:47]line ИТОГО: 1000.00 [20:50:47]line Внесено: 1000.00 [20:50:47]line СДАЧА: 0.00 [20:50:47]line НСП 1% : 8.85 [20:50:47]line НДС 12% : 106.20 [20:50:47]line Наличными: 1000.00 [20:50:47]line Безнал.: 0.00 [20:50:47]line Место: АЗС № 94 "Партнер Нефть" [20:50:47]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:50:47]line СНО: Общий режим [20:50:47]line Чек 499 18.08.2024 20:50 [20:50:47]line Смена: 449 ФФД: 1.0 [20:50:47]line ЗНМ: 0300000099 [20:50:47]line РНМ: 0000000000091865 [20:50:47]line Версия ККМ: 001 [20:50:47]line ФМ: 0000000000871820 [20:50:47]line ФД: 260941 [20:50:47]line ФПД: 110230261810176 [20:50:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T205052&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260941&fm=110230261810176&tin=02508201610067®Number=0000000000091865&sum=100000 [20:50:47]written 0, free lines is 4095 [20:50:47]OFD Sender: Processing packet 260941 [packets to send 192, broken 191] [20:50:47]ProducePacketName [20:50:47]name=ofd_packets/00260941 [20:50:47]OFD Sender: To server: pG, [20:50:47]CommunicateWithHost lk.salyk.kg:30040 [20:50:47]ConnectInit lk.salyk.kg [20:50:47]Connected sock=10 [20:50:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 CA 57 07 01 CD A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 AC 5E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4D FB 03 00 35 04 06 00 64 40 FB 99 44 00 2F 13 0B 6E 71 81 44 68 [20:50: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 30 4F 00 00 00 0B E4 47 00 AE 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 30 10 04 04 00 4D FB 03 00 F4 03 04 00 00 08 C2 66 B6 04 01 00 00 73 F7 D7 1C A7 75 D9 E5 [20:50:48]CommunicateWithHost err = 0 [20:50:48]CheckOFDResponse [20:50:48]1017 (14) - 77093643461234 [20:50:48]1041 (16) - 0000000000871820 [20:50:48]1040 (4) - 260941 [20:50:48]1012 (4) - 18.08.2024 14:41 [20:50:48]1206 (1) - 0 [20:50:48]OFD Sender: Remove packet 260941 [20:50:48]ProducePacketName [20:50:48]name=ofd_packets/00260941 [20:50:48]NVStorageDeleteData [20:50:48]Write to MH i2c: 01 00 00 B5 CC 81 [20:50:48]Write i2c OK [20:50:48]MH_I2C_Read... [20:50:48]Read from MH i2c: 01 [20:50:48]MH_I2C_Read... [20:50:48]Read from MH i2c: 01 07 00 [20:50:48]MH_I2C_Read... [20:50:48]Read from MH i2c: 01 07 00 B5 CC 00 00 00 00 00 73 0C 07 [20:50:48]RasterBufferAndPrint [20:50:48]line [20:50:48]line [20:50:48]line [20:50:48]line [20:50:48]line [20:50:48]written 0, free lines is 3190 [20:50:48]MH_Cut [20:50:48]Write to MH i2c: D1 01 00 BC CC 01 5A [20:50:48]Write i2c OK [20:50:48]MH_I2C_Read... [20:50:48]Read from MH i2c: D1 [20:50:48]MH_I2C_Read... [20:50:48]Read from MH i2c: D1 01 00 [20:50:48]MH_I2C_Read... [20:50:48]Read from MH i2c: D1 01 00 BC CC 00 59 [20:50:48]Write to MH i2c: 01 00 00 BD CC 89 [20:50:48]Write i2c OK [20:50:48]MH_I2C_Read... [20:50:48]OFD Sender: No OFD packet to send [20:50:49]*** Cut start [20:50:49]*** Purtial cut [20:50:49]*** Stage 1: CUTSNS_PIN = 1 [20:50:51]Read from MH i2c: 01 [20:50:51]MH_I2C_Read... [20:50:51]*** Stop cut motor [20:50:51]*** Cut end [20:50:51]Read from MH i2c: 01 07 00 [20:50:51]MH_I2C_Read... [20:50:51]Read from MH i2c: 01 07 00 BD CC 00 00 00 00 00 FF 0F 9E [20:50:51]process_action close_receipt done [20:50:51]requested_data is exist [20:50:51]produce_requested_data [20:50:51]requested_item fm.sn is exist - process it [20:50:51]wFMCommunicate request_size=4 [20:50:51]MH_SAM_APDU [20:50:51]CAPDU: 80 11 00 00 [20:50:51]Write to MH i2c: E2 08 00 BE CC 80 11 00 00 00 00 00 00 04 [20:50:51]Write i2c OK [20:50:51]MH_I2C_Read... [20:50:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:51]Read from MH i2c: E2 [20:50:51]MH_I2C_Read... [20:50:51]Read from MH i2c: E2 17 00 [20:50:51]MH_I2C_Read... [20:50:51]Read from MH i2c: E2 17 00 BE CC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 51 [20:50:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:50:51]wFMCommunicate OK [20:50:51]requested_item fd.num is exist - process it [20:50:51]SAM_PROTO_GetFieldsCounters [20:50:51]wFMCommunicate request_size=4 [20:50:51]MH_SAM_APDU [20:50:51]CAPDU: 80 13 00 00 [20:50:51]Write to MH i2c: E2 08 00 BF CC 80 13 00 00 00 00 00 00 07 [20:50:51]Write i2c OK [20:50:51]MH_I2C_Read... [20:50:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:50:51]Read from MH i2c: E2 [20:50:51]MH_I2C_Read... [20:50:51]Read from MH i2c: E2 62 00 [20:50:51]MH_I2C_Read... [20:50:51]Read from MH i2c: E2 62 00 BF CC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 4D FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F3 01 00 00 5E 04 04 00 F3 01 00 00 57 04 04 00 F4 01 00 00 19 04 04 00 00 00 00 00 90 00 0F [20: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 4D FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F3 01 00 00 5E 04 04 00 F3 01 00 00 57 04 04 00 F4 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:50:51]wFMCommunicate OK [20:50:51]SAM_PROTO_GetFieldsCounters done [20:50:51]requested_item shift.num is exist - process it [20:50:51]requested_item shift.opened is exist - process it [20:50:51]req_shift_opened [20:50:51]FM_GetShiftState [20:50:51]SAM_PROTO_GetShiftState [20:50:51]wFMCommunicate request_size=4 [20:50:51]MH_SAM_APDU [20:50:51]CAPDU: 80 13 01 00 [20:50:51]Write to MH i2c: E2 08 00 C0 CC 80 13 01 00 00 00 00 00 09 [20:50:51]Write i2c OK [20:50:51]MH_I2C_Read... [20:50:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:51]Read from MH i2c: E2 [20:50:51]MH_I2C_Read... [20:50:51]Read from MH i2c: E2 0E 00 [20:50:51]MH_I2C_Read... [20:50:51]Read from MH i2c: E2 0E 00 C0 CC 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 46 [20:50:51]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:50:51]wFMCommunicate OK [20:50:51]SAM_PROTO_GetShiftState done [20:50:51]FM_GetShiftState done [20:50:51]req_shift_opened done [20:50:51]requested_item shift.open_date is exist - process it [20:50:51]req_shift_open_date [20:50:51]req_shift_open_date done [20:50:51]produce_requested_data done [20:50:51]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260941,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:50:51]process_action_free close_receipt [20:50:51]json_value_free [20:50:51]json_value_free done [20:50:51]process_json_proto returns [20:50:51]Send response to host [20:50:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260941,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:50:51]free response buf [20:50:51]execute_script done [20:50:51]execute_script returns [20:50:51]free content buf [20:50:51]Sock 7.Close socket [20:50:51]Sock 7.Thread stoped [20:50:53]OFD Sender: No OFD packet to send [20:50:58]OFD Sender: No OFD packet to send [20:51:03]OFD Sender: No OFD packet to send [20:51:08]OFD Sender: No OFD packet to send [20:51:13]OFD Sender: No OFD packet to send [20:51:18]OFD Sender: No OFD packet to send [20:51:23]OFD Sender: No OFD packet to send [20:51:28]OFD Sender: No OFD packet to send [20:51:33]OFD Sender: No OFD packet to send [20:51:38]OFD Sender: No OFD packet to send [20:51:43]OFD Sender: No OFD packet to send [20:51:48]OFD Sender: No OFD packet to send [20:51:53]OFD Sender: No OFD packet to send [20:51:58]OFD Sender: No OFD packet to send [20:52:03]OFD Sender: No OFD packet to send [20:52:08]OFD Sender: No OFD packet to send [20:52:13]OFD Sender: No OFD packet to send [20:52:18]OFD Sender: No OFD packet to send [20:52:23]OFD Sender: No OFD packet to send [20:52:28]OFD Sender: No OFD packet to send [20:52:33]OFD Sender: No OFD packet to send [20:52:38]OFD Sender: No OFD packet to send [20:52:43]OFD Sender: No OFD packet to send [20:52:48]OFD Sender: No OFD packet to send [20:52:53]OFD Sender: No OFD packet to send [20:52:58]OFD Sender: No OFD packet to send [20:53:03]OFD Sender: No OFD packet to send [20:53:08]OFD Sender: No OFD packet to send [20:53:13]OFD Sender: No OFD packet to send [20:53:18]OFD Sender: No OFD packet to send [20:53:23]OFD Sender: No OFD packet to send [20:53:26]accept exits with 9 [20:53:26]New connection [20:53:26]New thread 3066473828 created [20:53:26]Thread 3066617188 joined [20:53:26]Waiting for new connection... [20:53:26] Sock 9.Parse request [20:53:26]Sock 9.Check first char [20:53:26]Sock 9.First char is OK [20:53:26]request: POST /json_proto HTTP/1.0 [20:53:26]Method: POST [20:53:26]URL: /json_proto [20:53:26]Method is POST - this is cgi request [20:53:26]url: /json_proto [20:53:26]query_string will be loaded in cgi processing [20:53:26]execute_cgi json_proto POST (null) [20:53:26]execute_cgi path=json_proto method=POST [20:53:26]POST find Content-Length [20:53:26]Host: 172.17.55.133:8080 [20:53:26]Content-Length: 688 [20:53:26]Content-Type: application/json [20:53:26] [20:53:26]POST finish read [20:53:26]Found Content-Length = 688 [20:53:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 24.940, "sum" : 1900.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1900.00, "payments": [ { "type": 0, "sum" : 1900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:26]execute_script... [20:53: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)1036495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 24.940, "sum" : 1900.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1900.00, "payments": [ { "type": 0, "sum" : 1900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:26]POST & json_proto [20:53:26]process_json_proto [20:53:26]json parsed OK: [20:53:26]protocol is kg_v1.0 [20:53:26]action value=close_receipt [20:53:26]process_action close_receipt [20:53:26]cmd_close_receipt [20:53:26]MH_GetDate [20:53:26]Write to MH i2c: F0 00 00 C1 CC 7C [20:53:26]Write i2c OK [20:53:26]MH_I2C_Read... [20:53:26]Read from MH i2c: F0 [20:53:26]MH_I2C_Read... [20:53:26]Read from MH i2c: F0 09 00 [20:53:26]MH_I2C_Read... [20:53:26]Read from MH i2c: F0 09 00 C1 CC 00 4D 5F C2 66 34 48 D8 65 12 [20:53:26]GetLastDocTimeStamp 1724014252 [20:53:26]current date 1724014413 [20:53:26]FM_GetShiftState [20:53:26]SAM_PROTO_GetShiftState [20:53:26]wFMCommunicate request_size=4 [20:53:26]MH_SAM_APDU [20:53:26]CAPDU: 80 13 01 00 [20:53:26]Write to MH i2c: E2 08 00 C2 CC 80 13 01 00 00 00 00 00 0B [20:53:26]Write i2c OK [20:53:26]MH_I2C_Read... [20:53:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:26]Read from MH i2c: E2 [20:53:26]MH_I2C_Read... [20:53:26]Read from MH i2c: E2 0E 00 [20:53:26]MH_I2C_Read... [20:53:26]Read from MH i2c: E2 0E 00 C2 CC 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 48 [20:53:26]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:53:26]wFMCommunicate OK [20:53:26]SAM_PROTO_GetShiftState done [20:53:26]FM_GetShiftState done [20:53:26]opened in 1723940556 [20:53:26]opened+sec_in_day 1724026956 [20:53:26]quantity*price = 190042 [20:53:26]sum+1 = 190044 [20:53:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1900.00 Внесено: 2000.00 СДАЧА: 100.00 НСП 1% : 16.82 НДС 12% : 201.82 Наличными: 1900.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 500 18.08.2024 20:53 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260942 ФПД: 34867036472974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T205333&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260942&fm=34867036472974&tin=02508201610067®Number=0000000000091865&sum=190000 [20:53:27]StoreToDocumentArchive [20:53:27]shift 449 fd 260942 [20:53:27]save to /storage/0449/doc_00260942 [20:53:27]save last doc name /storage/0449/doc_00260942 to /storage/kkm_last_doc_name [20:53:27]save OK [20:53:27]Clear old archive folders... [20:53:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:53:27]tlvbuf is 004D7F30 [20:53:27]SAM_PROTO_ClearQueue [20:53:27]wFMCommunicate request_size=4 [20:53:27]MH_SAM_APDU [20:53:27]CAPDU: 80 09 00 00 [20:53:27]Write to MH i2c: E2 08 00 CF CC 80 09 00 00 00 00 00 00 0D [20:53:27]Write i2c OK [20:53:27]MH_I2C_Read... [20:53:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:53:27]Read from MH i2c: E2 [20:53:27]MH_I2C_Read... [20:53:27]Read from MH i2c: E2 03 00 [20:53:27]MH_I2C_Read... [20:53:27]Read from MH i2c: E2 03 00 CF CC 00 90 00 0F [20:53:27]RAPDU: 90 00 [20:53:27]wFMCommunicate OK [20:53:27]SAM_PROTO_ClearQueue done [20:53:27]KKMCreateOFDPacket [20:53:27]OFDProtocolAddRootSTLVToBuf [20:53:27]FM_MakeSignedData [20:53:27]FM_MakeSignedData [20:53:27]SAM_PROTO_SignData [20:53:27]wFMCommunicate request_size=4 [20:53:27]MH_SAM_APDU [20:53:27]CAPDU: 80 0D 01 02 [20:53:27]Write to MH i2c: E2 08 00 D0 CC 80 0D 01 02 00 00 00 00 15 [20:53:27]Write i2c OK [20:53:27]MH_I2C_Read... [20:53:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:53:27]Read from MH i2c: E2 [20:53:27]MH_I2C_Read... [20:53:27]Read from MH i2c: E2 03 00 [20:53:27]MH_I2C_Read... [20:53:27]Read from MH i2c: E2 03 00 D0 CC 00 90 00 10 [20:53:27]RAPDU: 90 00 [20:53:27]wFMCommunicate OK [20:53:27]wFMCommunicate request_size=255 [20:53:27]MH_SAM_APDU [20:53:27]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 6C 61 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5B E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 01 00 00 F4 03 04 00 4D 5F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4E FB 03 00 35 04 06 00 [20:53:27]Write to MH i2c: E2 02 01 D1 CC 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 6C 61 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5B E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 01 00 00 F4 03 04 00 4D 5F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4E FB 03 00 35 04 06 00 00 00 0B [20:53:27]Write i2c OK [20:53:27]MH_I2C_Read... [20:53:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:28]Read from MH i2c: E2 [20:53:28]MH_I2C_Read... [20:53:28]Read from MH i2c: E2 03 00 [20:53:28]MH_I2C_Read... [20:53:28]Read from MH i2c: E2 03 00 D1 CC 00 90 00 11 [20:53:28]RAPDU: 90 00 [20:53:28]wFMCommunicate OK [20:53:28]wFMCommunicate request_size=11 [20:53:28]MH_SAM_APDU [20:53:28]CAPDU: 80 0D 02 02 06 1F B6 1D 52 C6 8E [20:53:28]Write to MH i2c: E2 0E 00 D2 CC 80 0D 02 02 06 00 1F B6 1D 52 C6 8E 00 00 BC [20:53:28]Write i2c OK [20:53:28]MH_I2C_Read... [20:53:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:28]Read from MH i2c: E2 [20:53:28]MH_I2C_Read... [20:53:28]Read from MH i2c: E2 03 00 [20:53:28]MH_I2C_Read... [20:53:28]Read from MH i2c: E2 03 00 D2 CC 00 90 00 12 [20:53:28]RAPDU: 90 00 [20:53:28]wFMCommunicate OK [20:53:28]wFMCommunicate request_size=4 [20:53:28]MH_SAM_APDU [20:53:28]CAPDU: 80 0D 03 02 [20:53:28]Write to MH i2c: E2 08 00 D3 CC 80 0D 03 02 00 00 00 00 1A [20:53:28]Write i2c OK [20:53:28]MH_I2C_Read... [20:53:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:53:28]Read from MH i2c: E2 [20:53:28]MH_I2C_Read... [20:53:28]Read from MH i2c: E2 0B 00 [20:53:28]MH_I2C_Read... [20:53:28]Read from MH i2c: E2 0B 00 D3 CC 00 56 1A 0F 5B 85 ED 59 04 90 00 C4 [20:53:28]RAPDU: 56 1A 0F 5B 85 ED 59 04 90 00 [20:53:28]wFMCommunicate OK [20:53:28]SAM_PROTO_SignData done [20:53:28]FM_MakeSignedData done [20:53:28]CreateOFDProtocolMessage [20:53:28]wFMCommunicate request_size=4 [20:53:28]MH_SAM_APDU [20:53:28]CAPDU: 80 11 00 00 [20:53:28]Write to MH i2c: E2 08 00 D4 CC 80 11 00 00 00 00 00 00 1A [20:53:28]Write i2c OK [20:53:28]MH_I2C_Read... [20:53:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:28]Read from MH i2c: E2 [20:53:28]MH_I2C_Read... [20:53:28]Read from MH i2c: E2 17 00 [20:53:28]MH_I2C_Read... [20:53:28]Read from MH i2c: E2 17 00 D4 CC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 67 [20:53:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:53:28]wFMCommunicate OK [20:53:28]CreateOFDProtocolMessage done [20:53:28]OFDSenderStorePacket 260942 [20:53:28]StoreOFDPacket docnum=260942 [20:53:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 CD 7A 08 01 E3 B2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 6C 61 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5B E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 01 00 00 F4 03 04 00 4D 5F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4E FB 03 00 35 04 06 00 1F B6 1D 52 C6 8E 56 1A 0F 5B 85 ED 59 04 [20:53:28]CheckFolder [20:53:28]dirname=/storage/ofd_packets [20:53:28]CheckFolder done [20:53:28]ProducePacketName [20:53:28]name=ofd_packets/00260942 [20:53:28]NVStorageSaveData ofd_packets/00260942 [20:53:28]File name is /storage/ofd_packets/00260942 [20:53:28]Write 302 bytes [20:53:28]NVStorageSaveData done [20:53:28]OFDSenderStorePacket done [20:53:28]KKMCreateOFDPacket done [20:53:28]NVStorageSaveData kkm_last_timestamp [20:53:28]File name is /storage/kkm_last_timestamp [20:53:28]Write 4 bytes [20:53:28]NVStorageSaveData done [20:53:28]ExternCall_PrintAddStr [20:53:28]wPrintStart [20:53:28]Write to MH i2c: 01 00 00 D5 CC A1 [20:53:28]Write i2c OK [20:53:28]MH_I2C_Read... [20:53:28]Read from MH i2c: 01 [20:53:28]MH_I2C_Read... [20:53:28]Read from MH i2c: 01 07 00 [20:53:28]MH_I2C_Read... [20:53:28]Read from MH i2c: 01 07 00 D5 CC 00 00 00 00 00 FF 0F B6 [20:53:28]RasterBufferAndPrint [20:53:28]line Счет N : (1)1036495 [20:53:28]line ИНН: 02508201610067 [20:53:28]line Контрольно-Кассовый Чек [20:53:28]line ПРОДАЖА [20:53:28]line ТРК (МРК, ГНК) : 43 [20:53:28]line Товар: 2710194210 [20:53:28]line ДТ(л)-К-4 [20:53:28]line 24.940 * 76.20 [20:53:28]line = 1900.43 [20:53:28]line НДС 12% НСП 1% [20:53:28]line > о реализуемом товаре [20:53:28]line ОКРУГЛЕНИЕ: -0.43 [20:53:28]line ИТОГО: 1900.00 [20:53:28]line Внесено: 2000.00 [20:53:28]line СДАЧА: 100.00 [20:53:28]line НСП 1% : 16.82 [20:53:28]line НДС 12% : 201.82 [20:53:28]line Наличными: 1900.00 [20:53:28]line Безнал.: 0.00 [20:53:28]line Место: АЗС № 94 "Партнер Нефть" [20:53:28]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:53:28]line СНО: Общий режим [20:53:28]line Чек 500 18.08.2024 20:53 [20:53:28]line Смена: 449 ФФД: 1.0 [20:53:28]line ЗНМ: 0300000099 [20:53:28]line РНМ: 0000000000091865 [20:53:28]line Версия ККМ: 001 [20:53:28]line ФМ: 0000000000871820 [20:53:28]line ФД: 260942 [20:53:28]line ФПД: 34867036472974 [20:53:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T205333&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260942&fm=34867036472974&tin=02508201610067®Number=0000000000091865&sum=190000 [20:53:28]written 0, free lines is 4095 [20:53:28]OFD Sender: Processing packet 260942 [packets to send 192, broken 191] [20:53:28]ProducePacketName [20:53:28]name=ofd_packets/00260942 [20:53:28]OFD Sender: To server: pG, [20:53:28]CommunicateWithHost lk.salyk.kg:30040 [20:53:28]ConnectInit lk.salyk.kg [20:53:28]Connected sock=10 [20:53: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 30 10 01 00 00 CD 7A 08 01 E3 B2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 6C 61 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5B E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 01 00 00 F4 03 04 00 4D 5F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4E FB 03 00 35 04 06 00 1F B6 1D 52 C6 8E 56 1A 0F 5B 85 ED 59 04 [20:53: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 30 4F 00 00 00 A0 A4 47 00 42 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 30 10 04 04 00 4E FB 03 00 F4 03 04 00 A1 08 C2 66 B6 04 01 00 00 4B 55 23 C6 CD BA F1 19 [20:53:28]CommunicateWithHost err = 0 [20:53:28]CheckOFDResponse [20:53:28]1017 (14) - 77093643461234 [20:53:28]1041 (16) - 0000000000871820 [20:53:28]1040 (4) - 260942 [20:53:28]1012 (4) - 18.08.2024 14:43 [20:53:28]1206 (1) - 0 [20:53:28]OFD Sender: Remove packet 260942 [20:53:28]ProducePacketName [20:53:28]name=ofd_packets/00260942 [20:53:28]NVStorageDeleteData [20:53:28]Write to MH i2c: 01 00 00 00 CD CD [20:53:28]Write i2c OK [20:53:28]MH_I2C_Read... [20:53:28]Read from MH i2c: 01 [20:53:28]MH_I2C_Read... [20:53:28]Read from MH i2c: 01 07 00 [20:53:28]MH_I2C_Read... [20:53:28]Read from MH i2c: 01 07 00 00 CD 00 00 00 00 00 78 0C 58 [20:53:28]RasterBufferAndPrint [20:53:28]line [20:53:28]line [20:53:28]line [20:53:28]line [20:53:28]line [20:53:28]written 0, free lines is 3195 [20:53:28]MH_Cut [20:53:28]Write to MH i2c: D1 01 00 07 CD 01 A6 [20:53:28]Write i2c OK [20:53:28]MH_I2C_Read... [20:53:28]Read from MH i2c: D1 [20:53:28]MH_I2C_Read... [20:53:28]Read from MH i2c: D1 01 00 [20:53:28]MH_I2C_Read... [20:53:28]Read from MH i2c: D1 01 00 07 CD 00 A5 [20:53:28]Write to MH i2c: 01 00 00 08 CD D5 [20:53:28]Write i2c OK [20:53:28]MH_I2C_Read... [20:53:29]OFD Sender: No OFD packet to send [20:53:29]*** Cut start [20:53:29]*** Purtial cut [20:53:29]*** Stage 1: CUTSNS_PIN = 1 [20:53:31]Read from MH i2c: 01 [20:53:31]MH_I2C_Read... [20:53:31]*** Stop cut motor [20:53:31]*** Cut end [20:53:31]Read from MH i2c: 01 07 00 [20:53:31]MH_I2C_Read... [20:53:31]Read from MH i2c: 01 07 00 08 CD 00 00 00 00 00 FF 0F EA [20:53:31]process_action close_receipt done [20:53:31]requested_data is exist [20:53:31]produce_requested_data [20:53:31]requested_item fm.sn is exist - process it [20:53:31]wFMCommunicate request_size=4 [20:53:31]MH_SAM_APDU [20:53:31]CAPDU: 80 11 00 00 [20:53:31]Write to MH i2c: E2 08 00 09 CD 80 11 00 00 00 00 00 00 50 [20:53:31]Write i2c OK [20:53:31]MH_I2C_Read... [20:53:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:32]Read from MH i2c: E2 [20:53:32]MH_I2C_Read... [20:53:32]Read from MH i2c: E2 17 00 [20:53:32]MH_I2C_Read... [20:53:32]Read from MH i2c: E2 17 00 09 CD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 9D [20:53:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:53:32]wFMCommunicate OK [20:53:32]requested_item fd.num is exist - process it [20:53:32]SAM_PROTO_GetFieldsCounters [20:53:32]wFMCommunicate request_size=4 [20:53:32]MH_SAM_APDU [20:53:32]CAPDU: 80 13 00 00 [20:53:32]Write to MH i2c: E2 08 00 0A CD 80 13 00 00 00 00 00 00 53 [20:53:32]Write i2c OK [20:53:32]MH_I2C_Read... [20:53:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:53:32]Read from MH i2c: E2 [20:53:32]MH_I2C_Read... [20:53:32]Read from MH i2c: E2 62 00 [20:53:32]MH_I2C_Read... [20:53:32]Read from MH i2c: E2 62 00 0A CD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 4E FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F4 01 00 00 5E 04 04 00 F4 01 00 00 57 04 04 00 F5 01 00 00 19 04 04 00 00 00 00 00 90 00 5F [20:53: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 4E FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F4 01 00 00 5E 04 04 00 F4 01 00 00 57 04 04 00 F5 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:53:32]wFMCommunicate OK [20:53:32]SAM_PROTO_GetFieldsCounters done [20:53:32]requested_item shift.num is exist - process it [20:53:32]requested_item shift.opened is exist - process it [20:53:32]req_shift_opened [20:53:32]FM_GetShiftState [20:53:32]SAM_PROTO_GetShiftState [20:53:32]wFMCommunicate request_size=4 [20:53:32]MH_SAM_APDU [20:53:32]CAPDU: 80 13 01 00 [20:53:32]Write to MH i2c: E2 08 00 0B CD 80 13 01 00 00 00 00 00 55 [20:53:32]Write i2c OK [20:53:32]MH_I2C_Read... [20:53:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:32]Read from MH i2c: E2 [20:53:32]MH_I2C_Read... [20:53:32]Read from MH i2c: E2 0E 00 [20:53:32]MH_I2C_Read... [20:53:32]Read from MH i2c: E2 0E 00 0B CD 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 92 [20:53:32]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:53:32]wFMCommunicate OK [20:53:32]SAM_PROTO_GetShiftState done [20:53:32]FM_GetShiftState done [20:53:32]req_shift_opened done [20:53:32]requested_item shift.open_date is exist - process it [20:53:32]req_shift_open_date [20:53:32]req_shift_open_date done [20:53:32]produce_requested_data done [20:53:32]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260942,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:53:32]process_action_free close_receipt [20:53:32]json_value_free [20:53:32]json_value_free done [20:53:32]process_json_proto returns [20:53:32]Send response to host [20:53:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260942,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:53:32]free response buf [20:53:32]execute_script done [20:53:32]execute_script returns [20:53:32]free content buf [20:53:32]Sock 9.Close socket [20:53:32]Sock 9.Thread stoped [20:53:34]OFD Sender: No OFD packet to send [20:53:39]OFD Sender: No OFD packet to send [20:53:44]OFD Sender: No OFD packet to send [20:53:49]OFD Sender: No OFD packet to send [20:53:54]OFD Sender: No OFD packet to send [20:53:59]OFD Sender: No OFD packet to send [20:54:04]OFD Sender: No OFD packet to send [20:54:09]OFD Sender: No OFD packet to send [20:54:14]OFD Sender: No OFD packet to send [20:54:19]OFD Sender: No OFD packet to send [20:54:24]OFD Sender: No OFD packet to send [20:54:29]OFD Sender: No OFD packet to send [20:54:34]OFD Sender: No OFD packet to send [20:54:36]accept exits with 7 [20:54:36]New connection [20:54:36]New thread 3066617188 created [20:54:36]Thread 3066473828 joined [20:54:36]Waiting for new connection... [20:54:36] Sock 7.Parse request [20:54:36]Sock 7.Check first char [20:54:36]Sock 7.First char is OK [20:54:36]request: POST /json_proto HTTP/1.0 [20:54:36]Method: POST [20:54:36]URL: /json_proto [20:54:36]Method is POST - this is cgi request [20:54:36]url: /json_proto [20:54:36]query_string will be loaded in cgi processing [20:54:36]execute_cgi json_proto POST (null) [20:54:36]execute_cgi path=json_proto method=POST [20:54:36]POST find Content-Length [20:54:36]Host: 172.17.55.133:8080 [20:54:36]Content-Length: 818 [20:54:36]Content-Type: application/json [20:54:36] [20:54:36]POST finish read [20:54:36]Found Content-Length = 818 [20:54:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.000, "sum" : 678.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 678.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:36]execute_script... [20:54: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)1036497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.000, "sum" : 678.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 678.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:36]POST & json_proto [20:54:36]process_json_proto [20:54:36]json parsed OK: [20:54:36]protocol is kg_v1.0 [20:54:36]action value=close_receipt [20:54:36]process_action close_receipt [20:54:36]cmd_close_receipt [20:54:36]MH_GetDate [20:54:36]Write to MH i2c: F0 00 00 0C CD C8 [20:54:36]Write i2c OK [20:54:36]MH_I2C_Read... [20:54:36]Read from MH i2c: F0 [20:54:36]MH_I2C_Read... [20:54:36]Read from MH i2c: F0 09 00 [20:54:36]MH_I2C_Read... [20:54:36]Read from MH i2c: F0 09 00 0C CD 00 93 5F C2 66 34 48 D8 65 A4 [20:54:36]GetLastDocTimeStamp 1724014413 [20:54:36]current date 1724014483 [20:54:36]FM_GetShiftState [20:54:36]SAM_PROTO_GetShiftState [20:54:36]wFMCommunicate request_size=4 [20:54:36]MH_SAM_APDU [20:54:36]CAPDU: 80 13 01 00 [20:54:36]Write to MH i2c: E2 08 00 0D CD 80 13 01 00 00 00 00 00 57 [20:54:36]Write i2c OK [20:54:36]MH_I2C_Read... [20:54:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:36]Read from MH i2c: E2 [20:54:36]MH_I2C_Read... [20:54:36]Read from MH i2c: E2 0E 00 [20:54:36]MH_I2C_Read... [20:54:36]Read from MH i2c: E2 0E 00 0D CD 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 94 [20:54:36]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:54:36]wFMCommunicate OK [20:54:36]SAM_PROTO_GetShiftState done [20:54:36]FM_GetShiftState done [20:54:36]opened in 1723940556 [20:54:36]opened+sec_in_day 1724026956 [20:54:36]quantity*price = 67800 [20:54:36]sum+1 = 67801 [20:54:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 678.00 НСП 1% : 6.00 НДС 12% : 72.00 Наличными: 0.00 Безнал.: 678.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 501 18.08.2024 20:54 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871820 ФД: 260943 ФПД: 187979794415700 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T205443&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260943&fm=187979794415700&tin=02508201610067®Number=0000000000091865&sum=67800 [20:54:37]StoreToDocumentArchive [20:54:37]shift 449 fd 260943 [20:54:37]save to /storage/0449/doc_00260943 [20:54:37]save last doc name /storage/0449/doc_00260943 to /storage/kkm_last_doc_name [20:54:37]save OK [20:54:37]Clear old archive folders... [20:54:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:54:37]tlvbuf is 004336F0 [20:54:37]SAM_PROTO_ClearQueue [20:54:37]wFMCommunicate request_size=4 [20:54:37]MH_SAM_APDU [20:54:37]CAPDU: 80 09 00 00 [20:54:37]Write to MH i2c: E2 08 00 1A CD 80 09 00 00 00 00 00 00 59 [20:54:37]Write i2c OK [20:54:37]MH_I2C_Read... [20:54:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:54:37]Read from MH i2c: E2 [20:54:37]MH_I2C_Read... [20:54:37]Read from MH i2c: E2 03 00 [20:54:37]MH_I2C_Read... [20:54:37]Read from MH i2c: E2 03 00 1A CD 00 90 00 5B [20:54:37]RAPDU: 90 00 [20:54:37]wFMCommunicate OK [20:54:37]SAM_PROTO_ClearQueue done [20:54:37]KKMCreateOFDPacket [20:54:37]OFDProtocolAddRootSTLVToBuf [20:54:37]FM_MakeSignedData [20:54:37]FM_MakeSignedData [20:54:37]SAM_PROTO_SignData [20:54:37]wFMCommunicate request_size=4 [20:54:37]MH_SAM_APDU [20:54:37]CAPDU: 80 0D 01 02 [20:54:37]Write to MH i2c: E2 08 00 1B CD 80 0D 01 02 00 00 00 00 61 [20:54:37]Write i2c OK [20:54:37]MH_I2C_Read... [20:54:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:54:37]Read from MH i2c: E2 [20:54:37]MH_I2C_Read... [20:54:37]Read from MH i2c: E2 03 00 [20:54:37]MH_I2C_Read... [20:54:37]Read from MH i2c: E2 03 00 1B CD 00 90 00 5C [20:54:37]RAPDU: 90 00 [20:54:37]wFMCommunicate OK [20:54:37]wFMCommunicate request_size=255 [20:54:37]MH_SAM_APDU [20:54:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D8 08 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 08 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 08 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 01 00 00 F4 03 04 00 93 5F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4F FB 03 00 35 04 06 00 AA [20:54:37]Write to MH i2c: E2 02 01 1C CD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D8 08 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 08 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 08 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 01 00 00 F4 03 04 00 93 5F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4F FB 03 00 35 04 06 00 AA 00 00 38 [20:54:37]Write i2c OK [20:54:37]MH_I2C_Read... [20:54:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:37]Read from MH i2c: E2 [20:54:37]MH_I2C_Read... [20:54:37]Read from MH i2c: E2 03 00 [20:54:37]MH_I2C_Read... [20:54:37]Read from MH i2c: E2 03 00 1C CD 00 90 00 5D [20:54:37]RAPDU: 90 00 [20:54:37]wFMCommunicate OK [20:54:37]wFMCommunicate request_size=10 [20:54:37]MH_SAM_APDU [20:54:37]CAPDU: 80 0D 02 02 05 F7 74 DF 00 54 [20:54:37]Write to MH i2c: E2 0D 00 1D CD 80 0D 02 02 05 00 F7 74 DF 00 54 00 00 0C [20:54:37]Write i2c OK [20:54:37]MH_I2C_Read... [20:54:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:37]Read from MH i2c: E2 [20:54:37]MH_I2C_Read... [20:54:37]Read from MH i2c: E2 03 00 [20:54:37]MH_I2C_Read... [20:54:37]Read from MH i2c: E2 03 00 1D CD 00 90 00 5E [20:54:37]RAPDU: 90 00 [20:54:37]wFMCommunicate OK [20:54:37]wFMCommunicate request_size=4 [20:54:37]MH_SAM_APDU [20:54:37]CAPDU: 80 0D 03 02 [20:54:37]Write to MH i2c: E2 08 00 1E CD 80 0D 03 02 00 00 00 00 66 [20:54:37]Write i2c OK [20:54:37]MH_I2C_Read... [20:54:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:54:38]Read from MH i2c: E2 [20:54:38]MH_I2C_Read... [20:54:38]Read from MH i2c: E2 0B 00 [20:54:38]MH_I2C_Read... [20:54:38]Read from MH i2c: E2 0B 00 1E CD 00 75 00 28 85 72 03 53 52 90 00 A3 [20:54:38]RAPDU: 75 00 28 85 72 03 53 52 90 00 [20:54:38]wFMCommunicate OK [20:54:38]SAM_PROTO_SignData done [20:54:38]FM_MakeSignedData done [20:54:38]CreateOFDProtocolMessage [20:54:38]wFMCommunicate request_size=4 [20:54:38]MH_SAM_APDU [20:54:38]CAPDU: 80 11 00 00 [20:54:38]Write to MH i2c: E2 08 00 1F CD 80 11 00 00 00 00 00 00 66 [20:54:38]Write i2c OK [20:54:38]MH_I2C_Read... [20:54:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:38]Read from MH i2c: E2 [20:54:38]MH_I2C_Read... [20:54:38]Read from MH i2c: E2 17 00 [20:54:38]MH_I2C_Read... [20:54:38]Read from MH i2c: E2 17 00 1F CD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B3 [20:54:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:54:38]wFMCommunicate OK [20:54:38]CreateOFDProtocolMessage done [20:54:38]OFDSenderStorePacket 260943 [20:54:38]StoreOFDPacket docnum=260943 [20:54:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 66 13 07 01 89 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D8 08 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 08 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 08 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 01 00 00 F4 03 04 00 93 5F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4F FB 03 00 35 04 06 00 AA F7 74 DF 00 54 75 00 28 85 72 03 53 52 [20:54:38]CheckFolder [20:54:38]dirname=/storage/ofd_packets [20:54:38]CheckFolder done [20:54:38]ProducePacketName [20:54:38]name=ofd_packets/00260943 [20:54:38]NVStorageSaveData ofd_packets/00260943 [20:54:38]File name is /storage/ofd_packets/00260943 [20:54:38]Write 301 bytes [20:54:38]NVStorageSaveData done [20:54:38]OFDSenderStorePacket done [20:54:38]KKMCreateOFDPacket done [20:54:38]NVStorageSaveData kkm_last_timestamp [20:54:38]File name is /storage/kkm_last_timestamp [20:54:38]Write 4 bytes [20:54:38]NVStorageSaveData done [20:54:38]ExternCall_PrintAddStr [20:54:38]wPrintStart [20:54:38]Write to MH i2c: 01 00 00 20 CD ED [20:54:38]Write i2c OK [20:54:38]MH_I2C_Read... [20:54:38]Read from MH i2c: 01 [20:54:38]MH_I2C_Read... [20:54:38]Read from MH i2c: 01 07 00 [20:54:38]MH_I2C_Read... [20:54:38]Read from MH i2c: 01 07 00 20 CD 00 00 00 00 00 FF 0F 02 [20:54:38]RasterBufferAndPrint [20:54:38]line Счет N : (1)1036497 [20:54:38]line ИНН: 02508201610067 [20:54:38]line Контрольно-Кассовый Чек [20:54:38]line ПРОДАЖА [20:54:38]line ТРК (МРК, ГНК) : 32 [20:54:38]line Товар: 2710124130 [20:54:38]line Аи-92-К-5 [20:54:38]line 10.000 * 67.80 [20:54:38]line = 678.00 [20:54:38]line НДС 12% НСП 1% [20:54:38]line > о реализуемом товаре [20:54:38]line ИТОГО: 678.00 [20:54:38]line НСП 1% : 6.00 [20:54:38]line НДС 12% : 72.00 [20:54:38]line Наличными: 0.00 [20:54:38]line Безнал.: 678.00 [20:54:38]line Место: АЗС № 94 "Партнер Нефть" [20:54:38]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:54:38]line СНО: Общий режим [20:54:38]line Чек 501 18.08.2024 20:54 [20:54:38]line Смена: 449 ФФД: 1.0 [20:54:38]line ЗНМ: 0300000099 [20:54:38]line РНМ: 0000000000091865 [20:54:38]line Версия ККМ: 001 [20:54:38]line Платежная система: Бакай Банк [20:54:38]line ФМ: 0000000000871820 [20:54:38]line ФД: 260943 [20:54:38]line ФПД: 187979794415700 [20:54:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T205443&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260943&fm=187979794415700&tin=02508201610067®Number=0000000000091865&sum=67800 [20:54:38]written 0, free lines is 4095 [20:54:38]OFD Sender: Processing packet 260943 [packets to send 192, broken 191] [20:54:38]ProducePacketName [20:54:38]name=ofd_packets/00260943 [20:54:38]OFD Sender: To server: pG, [20:54:38]CommunicateWithHost lk.salyk.kg:30040 [20:54:38]ConnectInit lk.salyk.kg [20:54:38]Connected sock=10 [20:54: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 30 0F 01 00 00 66 13 07 01 89 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D8 08 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 08 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 08 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 01 00 00 F4 03 04 00 93 5F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4F FB 03 00 35 04 06 00 AA F7 74 DF 00 54 75 00 28 85 72 03 53 52 [20:54: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 30 4F 00 00 00 E1 B0 47 00 5E F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 4F FB 03 00 F4 03 04 00 E7 08 C2 66 B6 04 01 00 00 0E F8 DF D0 35 0A 38 68 [20:54:38]CommunicateWithHost err = 0 [20:54:38]CheckOFDResponse [20:54:38]1017 (14) - 77093643461234 [20:54:38]1041 (16) - 0000000000871820 [20:54:38]1040 (4) - 260943 [20:54:38]1012 (4) - 18.08.2024 14:44 [20:54:38]1206 (1) - 0 [20:54:38]OFD Sender: Remove packet 260943 [20:54:38]ProducePacketName [20:54:38]name=ofd_packets/00260943 [20:54:38]NVStorageDeleteData [20:54:38]Write to MH i2c: 01 00 00 4A CD 17 [20:54:38]Write i2c OK [20:54:38]MH_I2C_Read... [20:54:38]Read from MH i2c: 01 [20:54:38]MH_I2C_Read... [20:54:38]Read from MH i2c: 01 07 00 [20:54:38]MH_I2C_Read... [20:54:38]Read from MH i2c: 01 07 00 4A CD 00 00 00 00 00 83 0C AD [20:54:38]RasterBufferAndPrint [20:54:38]line [20:54:38]line [20:54:38]line [20:54:38]line [20:54:38]line [20:54:38]written 0, free lines is 3208 [20:54:38]MH_Cut [20:54:38]Write to MH i2c: D1 01 00 51 CD 01 F0 [20:54:38]Write i2c OK [20:54:38]MH_I2C_Read... [20:54:38]Read from MH i2c: D1 [20:54:38]MH_I2C_Read... [20:54:38]Read from MH i2c: D1 01 00 [20:54:38]MH_I2C_Read... [20:54:38]Read from MH i2c: D1 01 00 51 CD 00 EF [20:54:38]Write to MH i2c: 01 00 00 52 CD 1F [20:54:38]Write i2c OK [20:54:38]MH_I2C_Read... [20:54:39]OFD Sender: No OFD packet to send [20:54:39]*** Cut start [20:54:39]*** Purtial cut [20:54:39]*** Stage 1: CUTSNS_PIN = 1 [20:54:41]Read from MH i2c: 01 [20:54:41]MH_I2C_Read... [20:54:41]*** Stop cut motor [20:54:41]*** Cut end [20:54:41]Read from MH i2c: 01 07 00 [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: 01 07 00 52 CD 00 00 00 00 00 FF 0F 34 [20:54:41]process_action close_receipt done [20:54:41]requested_data is exist [20:54:41]produce_requested_data [20:54:41]requested_item fm.sn is exist - process it [20:54:41]wFMCommunicate request_size=4 [20:54:41]MH_SAM_APDU [20:54:41]CAPDU: 80 11 00 00 [20:54:41]Write to MH i2c: E2 08 00 53 CD 80 11 00 00 00 00 00 00 9A [20:54:41]Write i2c OK [20:54:41]MH_I2C_Read... [20:54:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:42]Read from MH i2c: E2 [20:54:42]MH_I2C_Read... [20:54:42]Read from MH i2c: E2 17 00 [20:54:42]MH_I2C_Read... [20:54:42]Read from MH i2c: E2 17 00 53 CD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E7 [20:54:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:54:42]wFMCommunicate OK [20:54:42]requested_item fd.num is exist - process it [20:54:42]SAM_PROTO_GetFieldsCounters [20:54:42]wFMCommunicate request_size=4 [20:54:42]MH_SAM_APDU [20:54:42]CAPDU: 80 13 00 00 [20:54:42]Write to MH i2c: E2 08 00 54 CD 80 13 00 00 00 00 00 00 9D [20:54:42]Write i2c OK [20:54:42]MH_I2C_Read... [20:54:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:54:42]Read from MH i2c: E2 [20:54:42]MH_I2C_Read... [20:54:42]Read from MH i2c: E2 62 00 [20:54:42]MH_I2C_Read... [20:54:42]Read from MH i2c: E2 62 00 54 CD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 4F FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F5 01 00 00 5E 04 04 00 F5 01 00 00 57 04 04 00 F6 01 00 00 19 04 04 00 00 00 00 00 90 00 AD [20:54: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 4F FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F5 01 00 00 5E 04 04 00 F5 01 00 00 57 04 04 00 F6 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:54:42]wFMCommunicate OK [20:54:42]SAM_PROTO_GetFieldsCounters done [20:54:42]requested_item shift.num is exist - process it [20:54:42]requested_item shift.opened is exist - process it [20:54:42]req_shift_opened [20:54:42]FM_GetShiftState [20:54:42]SAM_PROTO_GetShiftState [20:54:42]wFMCommunicate request_size=4 [20:54:42]MH_SAM_APDU [20:54:42]CAPDU: 80 13 01 00 [20:54:42]Write to MH i2c: E2 08 00 55 CD 80 13 01 00 00 00 00 00 9F [20:54:42]Write i2c OK [20:54:42]MH_I2C_Read... [20:54:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:42]Read from MH i2c: E2 [20:54:42]MH_I2C_Read... [20:54:42]Read from MH i2c: E2 0E 00 [20:54:42]MH_I2C_Read... [20:54:42]Read from MH i2c: E2 0E 00 55 CD 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 DC [20:54:42]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:54:42]wFMCommunicate OK [20:54:42]SAM_PROTO_GetShiftState done [20:54:42]FM_GetShiftState done [20:54:42]req_shift_opened done [20:54:42]requested_item shift.open_date is exist - process it [20:54:42]req_shift_open_date [20:54:42]req_shift_open_date done [20:54:42]produce_requested_data done [20:54:42]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260943,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:54:42]process_action_free close_receipt [20:54:42]json_value_free [20:54:42]json_value_free done [20:54:42]process_json_proto returns [20:54:42]Send response to host [20:54:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260943,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:54:42]free response buf [20:54:42]execute_script done [20:54:42]execute_script returns [20:54:42]free content buf [20:54:42]Sock 7.Close socket [20:54:42]Sock 7.Thread stoped [20:54:44]OFD Sender: No OFD packet to send [20:54:49]OFD Sender: No OFD packet to send [20:54:54]OFD Sender: No OFD packet to send [20:54:56]accept exits with 9 [20:54:56]New connection [20:54:56]New thread 3066473828 created [20:54:56]Thread 3066617188 joined [20:54:56]Waiting for new connection... [20:54:56] Sock 9.Parse request [20:54:56]Sock 9.Check first char [20:54:56]Sock 9.First char is OK [20:54:56]request: POST /json_proto HTTP/1.0 [20:54:56]Method: POST [20:54:56]URL: /json_proto [20:54:56]Method is POST - this is cgi request [20:54:56]url: /json_proto [20:54:56]query_string will be loaded in cgi processing [20:54:56]execute_cgi json_proto POST (null) [20:54:56]execute_cgi path=json_proto method=POST [20:54:56]POST find Content-Length [20:54:56]Host: 172.17.55.133:8080 [20:54:56]Content-Length: 793 [20:54:56]Content-Type: application/json [20:54:56] [20:54:56]POST finish read [20:54:56]Found Content-Length = 793 [20:54:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036496", "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" : 0.00, "quantity" : 33.700, "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\u000A11644", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:56]execute_script... [20:54: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)1036496", "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" : 0.00, "quantity" : 33.700, "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\u000A11644", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:56]POST & json_proto [20:54:56]process_json_proto [20:54:56]json parsed OK: [20:54:56]protocol is kg_v1.0 [20:54:56]action value=close_receipt [20:54:56]process_action close_receipt [20:54:56]cmd_close_receipt [20:54:56]MH_GetDate [20:54:56]Write to MH i2c: F0 00 00 56 CD 12 [20:54:56]Write i2c OK [20:54:56]MH_I2C_Read... [20:54:56]Read from MH i2c: F0 [20:54:56]MH_I2C_Read... [20:54:56]Read from MH i2c: F0 09 00 [20:54:56]MH_I2C_Read... [20:54:56]Read from MH i2c: F0 09 00 56 CD 00 A7 5F C2 66 34 48 D8 65 02 [20:54:56]GetLastDocTimeStamp 1724014483 [20:54:56]current date 1724014503 [20:54:56]FM_GetShiftState [20:54:56]SAM_PROTO_GetShiftState [20:54:56]wFMCommunicate request_size=4 [20:54:56]MH_SAM_APDU [20:54:56]CAPDU: 80 13 01 00 [20:54:56]Write to MH i2c: E2 08 00 57 CD 80 13 01 00 00 00 00 00 A1 [20:54:56]Write i2c OK [20:54:56]MH_I2C_Read... [20:54:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:56]Read from MH i2c: E2 [20:54:56]MH_I2C_Read... [20:54:56]Read from MH i2c: E2 0E 00 [20:54:56]MH_I2C_Read... [20:54:56]Read from MH i2c: E2 0E 00 57 CD 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 DE [20:54:56]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:54:56]wFMCommunicate OK [20:54:56]SAM_PROTO_GetShiftState done [20:54:56]FM_GetShiftState done [20:54:56]opened in 1723940556 [20:54:56]opened+sec_in_day 1724026956 [20:54:56]quantity*price = 0 [20:54:56]sum+1 = 1 [20:54:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 502 18.08.2024 20:55 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: Топливная Карта 11644 ФМ: 0000000000871820 ФД: 260944 ФПД: 34341560469647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T205503&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260944&fm=34341560469647&tin=02508201610067®Number=0000000000091865&sum=0 [20:54:57]StoreToDocumentArchive [20:54:57]shift 449 fd 260944 [20:54:57]save to /storage/0449/doc_00260944 [20:54:57]save last doc name /storage/0449/doc_00260944 to /storage/kkm_last_doc_name [20:54:57]save OK [20:54:57]Clear old archive folders... [20:54:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:54:57]tlvbuf is 003E91B0 [20:54:57]SAM_PROTO_ClearQueue [20:54:57]wFMCommunicate request_size=4 [20:54:57]MH_SAM_APDU [20:54:57]CAPDU: 80 09 00 00 [20:54:57]Write to MH i2c: E2 08 00 64 CD 80 09 00 00 00 00 00 00 A3 [20:54:57]Write i2c OK [20:54:57]MH_I2C_Read... [20:54:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:54:57]Read from MH i2c: E2 [20:54:57]MH_I2C_Read... [20:54:57]Read from MH i2c: E2 03 00 [20:54:57]MH_I2C_Read... [20:54:57]Read from MH i2c: E2 03 00 64 CD 00 90 00 A5 [20:54:57]RAPDU: 90 00 [20:54:57]wFMCommunicate OK [20:54:57]SAM_PROTO_ClearQueue done [20:54:57]KKMCreateOFDPacket [20:54:57]OFDProtocolAddRootSTLVToBuf [20:54:57]FM_MakeSignedData [20:54:57]FM_MakeSignedData [20:54:57]SAM_PROTO_SignData [20:54:57]wFMCommunicate request_size=4 [20:54:57]MH_SAM_APDU [20:54:57]CAPDU: 80 0D 01 02 [20:54:57]Write to MH i2c: E2 08 00 65 CD 80 0D 01 02 00 00 00 00 AB [20:54:57]Write i2c OK [20:54:57]MH_I2C_Read... [20:54:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:54:57]Read from MH i2c: E2 [20:54:57]MH_I2C_Read... [20:54:58]Read from MH i2c: E2 03 00 [20:54:58]MH_I2C_Read... [20:54:58]Read from MH i2c: E2 03 00 65 CD 00 90 00 A6 [20:54:58]RAPDU: 90 00 [20:54:58]wFMCommunicate OK [20:54:58]wFMCommunicate request_size=255 [20:54:58]MH_SAM_APDU [20:54: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 A4 83 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 F6 01 00 00 F4 03 04 00 A7 5F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 50 FB 03 00 35 04 06 00 1F [20:54:58]Write to MH i2c: E2 02 01 66 CD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 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 F6 01 00 00 F4 03 04 00 A7 5F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 50 FB 03 00 35 04 06 00 1F 00 00 32 [20:54:58]Write i2c OK [20:54:58]MH_I2C_Read... [20:54:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:58]Read from MH i2c: E2 [20:54:58]MH_I2C_Read... [20:54:58]Read from MH i2c: E2 03 00 [20:54:58]MH_I2C_Read... [20:54:58]Read from MH i2c: E2 03 00 66 CD 00 90 00 A7 [20:54:58]RAPDU: 90 00 [20:54:58]wFMCommunicate OK [20:54:58]wFMCommunicate request_size=10 [20:54:58]MH_SAM_APDU [20:54:58]CAPDU: 80 0D 02 02 05 3B C4 83 48 8F [20:54:58]Write to MH i2c: E2 0D 00 67 CD 80 0D 02 02 05 00 3B C4 83 48 8F 00 00 11 [20:54:58]Write i2c OK [20:54:58]MH_I2C_Read... [20:54:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:58]Read from MH i2c: E2 [20:54:58]MH_I2C_Read... [20:54:58]Read from MH i2c: E2 03 00 [20:54:58]MH_I2C_Read... [20:54:58]Read from MH i2c: E2 03 00 67 CD 00 90 00 A8 [20:54:58]RAPDU: 90 00 [20:54:58]wFMCommunicate OK [20:54:58]wFMCommunicate request_size=4 [20:54:58]MH_SAM_APDU [20:54:58]CAPDU: 80 0D 03 02 [20:54:58]Write to MH i2c: E2 08 00 68 CD 80 0D 03 02 00 00 00 00 B0 [20:54:58]Write i2c OK [20:54:58]MH_I2C_Read... [20:54:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:54:58]Read from MH i2c: E2 [20:54:58]MH_I2C_Read... [20:54:58]Read from MH i2c: E2 0B 00 [20:54:58]MH_I2C_Read... [20:54:58]Read from MH i2c: E2 0B 00 68 CD 00 6B 8A D1 A3 32 26 10 DC 90 00 5E [20:54:58]RAPDU: 6B 8A D1 A3 32 26 10 DC 90 00 [20:54:58]wFMCommunicate OK [20:54:58]SAM_PROTO_SignData done [20:54:58]FM_MakeSignedData done [20:54:58]CreateOFDProtocolMessage [20:54:58]wFMCommunicate request_size=4 [20:54:58]MH_SAM_APDU [20:54:58]CAPDU: 80 11 00 00 [20:54:58]Write to MH i2c: E2 08 00 69 CD 80 11 00 00 00 00 00 00 B0 [20:54:58]Write i2c OK [20:54:58]MH_I2C_Read... [20:54:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:58]Read from MH i2c: E2 [20:54:58]MH_I2C_Read... [20:54:58]Read from MH i2c: E2 17 00 [20:54:58]MH_I2C_Read... [20:54:58]Read from MH i2c: E2 17 00 69 CD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 FD [20:54:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:54:58]wFMCommunicate OK [20:54:58]CreateOFDProtocolMessage done [20:54:58]OFDSenderStorePacket 260944 [20:54:58]StoreOFDPacket docnum=260944 [20:54:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 E9 C6 07 01 CD A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 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 F6 01 00 00 F4 03 04 00 A7 5F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 50 FB 03 00 35 04 06 00 1F 3B C4 83 48 8F 6B 8A D1 A3 32 26 10 DC [20:54:58]CheckFolder [20:54:58]dirname=/storage/ofd_packets [20:54:58]CheckFolder done [20:54:58]ProducePacketName [20:54:58]name=ofd_packets/00260944 [20:54:58]NVStorageSaveData ofd_packets/00260944 [20:54:58]File name is /storage/ofd_packets/00260944 [20:54:58]Write 301 bytes [20:54:58]NVStorageSaveData done [20:54:58]OFDSenderStorePacket done [20:54:58]KKMCreateOFDPacket done [20:54:58]NVStorageSaveData kkm_last_timestamp [20:54:58]File name is /storage/kkm_last_timestamp [20:54:58]Write 4 bytes [20:54:58]NVStorageSaveData done [20:54:58]ExternCall_PrintAddStr [20:54:58]wPrintStart [20:54:58]Write to MH i2c: 01 00 00 6A CD 37 [20:54:58]Write i2c OK [20:54:58]MH_I2C_Read... [20:54:58]Read from MH i2c: 01 [20:54:58]MH_I2C_Read... [20:54:58]Read from MH i2c: 01 07 00 [20:54:58]MH_I2C_Read... [20:54:58]Read from MH i2c: 01 07 00 6A CD 00 00 00 00 00 FF 0F 4C [20:54:58]RasterBufferAndPrint [20:54:58]line Счет N : (1)1036496 [20:54:58]line ИНН: 02508201610067 [20:54:58]line Контрольно-Кассовый Чек [20:54:58]line ПРОДАЖА [20:54:58]line ТРК (МРК, ГНК) : 13 [20:54:58]line Товар: 2710124500 [20:54:58]line Аи-95-К-5 [20:54:58]line 33.700 * 0.00 [20:54:58]line = 0.00 [20:54:58]line НДС 12% НСП 1% [20:54:58]line > о реализуемом товаре [20:54:58]line ИТОГО: 0.00 [20:54:58]line НСП 1% : 0.00 [20:54:58]line НДС 12% : 0.00 [20:54:58]line Наличными: 0.00 [20:54:58]line Безнал.: 0.00 [20:54:58]line Место: АЗС № 94 "Партнер Нефть" [20:54:58]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:54:58]line СНО: Общий режим [20:54:58]line Чек 502 18.08.2024 20:55 [20:54:58]line Смена: 449 ФФД: 1.0 [20:54:58]line ЗНМ: 0300000099 [20:54:58]line РНМ: 0000000000091865 [20:54:58]line Версия ККМ: 001 [20:54:58]line Талоны: Топливная Карта [20:54:58]line 11644 [20:54:58]line ФМ: 0000000000871820 [20:54:58]line ФД: 260944 [20:54:58]line ФПД: 34341560469647 [20:54:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T205503&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260944&fm=34341560469647&tin=02508201610067®Number=0000000000091865&sum=0 [20:54:58]written 0, free lines is 4095 [20:54:58]OFD Sender: Processing packet 260944 [packets to send 192, broken 191] [20:54:58]ProducePacketName [20:54:58]name=ofd_packets/00260944 [20:54:58]OFD Sender: To server: pG, [20:54:58]CommunicateWithHost lk.salyk.kg:30040 [20:54:58]ConnectInit lk.salyk.kg [20:54:58]Connected sock=10 [20:54: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 30 0F 01 00 00 E9 C6 07 01 CD A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 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 F6 01 00 00 F4 03 04 00 A7 5F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 50 FB 03 00 35 04 06 00 1F 3B C4 83 48 8F 6B 8A D1 A3 32 26 10 DC [20:54: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 30 4F 00 00 00 D3 D4 47 00 73 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 30 10 04 04 00 50 FB 03 00 F4 03 04 00 FB 08 C2 66 B6 04 01 00 00 CA 6B 1C 46 50 CE 07 D4 [20:54:58]CommunicateWithHost err = 0 [20:54:58]CheckOFDResponse [20:54:58]1017 (14) - 77093643461234 [20:54:58]1041 (16) - 0000000000871820 [20:54:58]1040 (4) - 260944 [20:54:58]1012 (4) - 18.08.2024 14:45 [20:54:58]1206 (1) - 0 [20:54:58]OFD Sender: Remove packet 260944 [20:54:58]ProducePacketName [20:54:58]name=ofd_packets/00260944 [20:54:58]NVStorageDeleteData [20:54:58]Write to MH i2c: 01 00 00 94 CD 61 [20:54:58]Write i2c OK [20:54:58]MH_I2C_Read... [20:54:58]Read from MH i2c: 01 [20:54:58]MH_I2C_Read... [20:54:58]Read from MH i2c: 01 07 00 [20:54:58]MH_I2C_Read... [20:54:58]Read from MH i2c: 01 07 00 94 CD 00 00 00 00 00 92 0C 06 [20:54:58]RasterBufferAndPrint [20:54:58]line [20:54:58]line [20:54:58]line [20:54:58]line [20:54:58]line [20:54:58]written 0, free lines is 3223 [20:54:58]MH_Cut [20:54:58]Write to MH i2c: D1 01 00 9B CD 01 3A [20:54:58]Write i2c OK [20:54:58]MH_I2C_Read... [20:54:58]Read from MH i2c: D1 [20:54:58]MH_I2C_Read... [20:54:58]Read from MH i2c: D1 01 00 [20:54:58]MH_I2C_Read... [20:54:58]Read from MH i2c: D1 01 00 9B CD 00 39 [20:54:58]Write to MH i2c: 01 00 00 9C CD 69 [20:54:58]Write i2c OK [20:54:58]MH_I2C_Read... [20:54:59]OFD Sender: No OFD packet to send [20:54:59]*** Cut start [20:54:59]*** Purtial cut [20:54:59]*** Stage 1: CUTSNS_PIN = 1 [20:55:01]Read from MH i2c: 01 [20:55:01]MH_I2C_Read... [20:55:01]*** Stop cut motor [20:55:01]*** Cut end [20:55:01]Read from MH i2c: 01 07 00 [20:55:01]MH_I2C_Read... [20:55:01]Read from MH i2c: 01 07 00 9C CD 00 00 00 00 00 FF 0F 7E [20:55:01]process_action close_receipt done [20:55:01]requested_data is exist [20:55:01]produce_requested_data [20:55:01]requested_item fm.sn is exist - process it [20:55:01]wFMCommunicate request_size=4 [20:55:01]MH_SAM_APDU [20:55:01]CAPDU: 80 11 00 00 [20:55:01]Write to MH i2c: E2 08 00 9D CD 80 11 00 00 00 00 00 00 E4 [20:55:01]Write i2c OK [20:55:01]MH_I2C_Read... [20:55:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:02]Read from MH i2c: E2 [20:55:02]MH_I2C_Read... [20:55:02]Read from MH i2c: E2 17 00 [20:55:02]MH_I2C_Read... [20:55:02]Read from MH i2c: E2 17 00 9D CD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 31 [20:55:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:55:02]wFMCommunicate OK [20:55:02]requested_item fd.num is exist - process it [20:55:02]SAM_PROTO_GetFieldsCounters [20:55:02]wFMCommunicate request_size=4 [20:55:02]MH_SAM_APDU [20:55:02]CAPDU: 80 13 00 00 [20:55:02]Write to MH i2c: E2 08 00 9E CD 80 13 00 00 00 00 00 00 E7 [20:55:02]Write i2c OK [20:55:02]MH_I2C_Read... [20:55:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:55:02]Read from MH i2c: E2 [20:55:02]MH_I2C_Read... [20:55:02]Read from MH i2c: E2 62 00 [20:55:02]MH_I2C_Read... [20:55:02]Read from MH i2c: E2 62 00 9E CD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 50 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F6 01 00 00 5E 04 04 00 F6 01 00 00 57 04 04 00 F7 01 00 00 19 04 04 00 00 00 00 00 90 00 FB [20:55: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 50 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F6 01 00 00 5E 04 04 00 F6 01 00 00 57 04 04 00 F7 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:55:02]wFMCommunicate OK [20:55:02]SAM_PROTO_GetFieldsCounters done [20:55:02]requested_item shift.num is exist - process it [20:55:02]requested_item shift.opened is exist - process it [20:55:02]req_shift_opened [20:55:02]FM_GetShiftState [20:55:02]SAM_PROTO_GetShiftState [20:55:02]wFMCommunicate request_size=4 [20:55:02]MH_SAM_APDU [20:55:02]CAPDU: 80 13 01 00 [20:55:02]Write to MH i2c: E2 08 00 9F CD 80 13 01 00 00 00 00 00 E9 [20:55:02]Write i2c OK [20:55:02]MH_I2C_Read... [20:55:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:02]Read from MH i2c: E2 [20:55:02]MH_I2C_Read... [20:55:02]Read from MH i2c: E2 0E 00 [20:55:02]MH_I2C_Read... [20:55:02]Read from MH i2c: E2 0E 00 9F CD 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 26 [20:55:02]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:55:02]wFMCommunicate OK [20:55:02]SAM_PROTO_GetShiftState done [20:55:02]FM_GetShiftState done [20:55:02]req_shift_opened done [20:55:02]requested_item shift.open_date is exist - process it [20:55:02]req_shift_open_date [20:55:02]req_shift_open_date done [20:55:02]produce_requested_data done [20:55:02]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260944,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:55:02]process_action_free close_receipt [20:55:02]json_value_free [20:55:02]json_value_free done [20:55:02]process_json_proto returns [20:55:02]Send response to host [20:55:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260944,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:55:02]free response buf [20:55:02]execute_script done [20:55:02]execute_script returns [20:55:02]free content buf [20:55:02]Sock 9.Close socket [20:55:02]Sock 9.Thread stoped [20:55:04]OFD Sender: No OFD packet to send [20:55:09]OFD Sender: No OFD packet to send [20:55:14]OFD Sender: No OFD packet to send [20:55:19]OFD Sender: No OFD packet to send [20:55:24]OFD Sender: No OFD packet to send [20:55:29]OFD Sender: No OFD packet to send [20:55:34]OFD Sender: No OFD packet to send [20:55:39]OFD Sender: No OFD packet to send [20:55:44]OFD Sender: No OFD packet to send [20:55:49]OFD Sender: No OFD packet to send [20:55:54]OFD Sender: No OFD packet to send [20:55:59]OFD Sender: No OFD packet to send [20:56:04]OFD Sender: No OFD packet to send [20:56:09]OFD Sender: No OFD packet to send [20:56:14]OFD Sender: No OFD packet to send [20:56:19]OFD Sender: No OFD packet to send [20:56:24]OFD Sender: No OFD packet to send [20:56:29]OFD Sender: No OFD packet to send [20:56:34]OFD Sender: No OFD packet to send [20:56:39]OFD Sender: No OFD packet to send [20:56:44]OFD Sender: No OFD packet to send [20:56:49]OFD Sender: No OFD packet to send [20:56:54]OFD Sender: No OFD packet to send [20:56:59]OFD Sender: No OFD packet to send [20:57:04]OFD Sender: No OFD packet to send [20:57:09]OFD Sender: No OFD packet to send [20:57:14]OFD Sender: No OFD packet to send [20:57:19]OFD Sender: No OFD packet to send [20:57:24]OFD Sender: No OFD packet to send [20:57:29]OFD Sender: No OFD packet to send [20:57:34]OFD Sender: No OFD packet to send [20:57:35]accept exits with 7 [20:57:35]New connection [20:57:35]New thread 3066617188 created [20:57:35]Thread 3066473828 joined [20:57:35]Waiting for new connection... [20:57:35] Sock 7.Parse request [20:57:35]Sock 7.Check first char [20:57:35]Sock 7.First char is OK [20:57:35]request: POST /json_proto HTTP/1.0 [20:57:35]Method: POST [20:57:35]URL: /json_proto [20:57:35]Method is POST - this is cgi request [20:57:35]url: /json_proto [20:57:35]query_string will be loaded in cgi processing [20:57:35]execute_cgi json_proto POST (null) [20:57:35]execute_cgi path=json_proto method=POST [20:57:35]POST find Content-Length [20:57:35]Host: 172.17.55.133:8080 [20:57:35]Content-Length: 678 [20:57:35]Content-Type: application/json [20:57:35] [20:57:35]POST finish read [20:57:35]Found Content-Length = 678 [20:57:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036499", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "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" ] } } [20:57:35]execute_script... [20:57: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)1036499", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "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" ] } } [20:57:35]POST & json_proto [20:57:35]process_json_proto [20:57:35]json parsed OK: [20:57:35]protocol is kg_v1.0 [20:57:35]action value=close_receipt [20:57:35]process_action close_receipt [20:57:35]cmd_close_receipt [20:57:35]MH_GetDate [20:57:35]Write to MH i2c: F0 00 00 A0 CD 5C [20:57:35]Write i2c OK [20:57:35]MH_I2C_Read... [20:57:35]Read from MH i2c: F0 [20:57:35]MH_I2C_Read... [20:57:35]Read from MH i2c: F0 09 00 [20:57:35]MH_I2C_Read... [20:57:35]Read from MH i2c: F0 09 00 A0 CD 00 46 60 C2 66 34 48 D8 65 EC [20:57:35]GetLastDocTimeStamp 1724014503 [20:57:35]current date 1724014662 [20:57:35]FM_GetShiftState [20:57:35]SAM_PROTO_GetShiftState [20:57:35]wFMCommunicate request_size=4 [20:57:35]MH_SAM_APDU [20:57:35]CAPDU: 80 13 01 00 [20:57:35]Write to MH i2c: E2 08 00 A1 CD 80 13 01 00 00 00 00 00 EB [20:57:35]Write i2c OK [20:57:35]MH_I2C_Read... [20:57:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:35]Read from MH i2c: E2 [20:57:35]MH_I2C_Read... [20:57:35]Read from MH i2c: E2 0E 00 [20:57:35]MH_I2C_Read... [20:57:35]Read from MH i2c: E2 0E 00 A1 CD 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 28 [20:57:35]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:57:35]wFMCommunicate OK [20:57:35]SAM_PROTO_GetShiftState done [20:57:35]FM_GetShiftState done [20:57:35]opened in 1723940556 [20:57:35]opened+sec_in_day 1724026956 [20:57:35]quantity*price = 25018 [20:57:35]sum+1 = 25019 [20:57:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 503 18.08.2024 20:57 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260945 ФПД: 250935126803891 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T205742&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260945&fm=250935126803891&tin=02508201610067®Number=0000000000091865&sum=25000 [20:57:36]StoreToDocumentArchive [20:57:36]shift 449 fd 260945 [20:57:36]save to /storage/0449/doc_00260945 [20:57:36]save last doc name /storage/0449/doc_00260945 to /storage/kkm_last_doc_name [20:57:36]save OK [20:57:36]Clear old archive folders... [20:57:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:57:36]tlvbuf is 004A42D0 [20:57:36]SAM_PROTO_ClearQueue [20:57:36]wFMCommunicate request_size=4 [20:57:36]MH_SAM_APDU [20:57:36]CAPDU: 80 09 00 00 [20:57:36]Write to MH i2c: E2 08 00 AE CD 80 09 00 00 00 00 00 00 ED [20:57:36]Write i2c OK [20:57:36]MH_I2C_Read... [20:57:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:57:36]Read from MH i2c: E2 [20:57:36]MH_I2C_Read... [20:57:36]Read from MH i2c: E2 03 00 [20:57:36]MH_I2C_Read... [20:57:36]Read from MH i2c: E2 03 00 AE CD 00 90 00 EF [20:57:36]RAPDU: 90 00 [20:57:36]wFMCommunicate OK [20:57:36]SAM_PROTO_ClearQueue done [20:57:36]KKMCreateOFDPacket [20:57:36]OFDProtocolAddRootSTLVToBuf [20:57:36]FM_MakeSignedData [20:57:36]FM_MakeSignedData [20:57:36]SAM_PROTO_SignData [20:57:36]wFMCommunicate request_size=4 [20:57:36]MH_SAM_APDU [20:57:36]CAPDU: 80 0D 01 02 [20:57:36]Write to MH i2c: E2 08 00 AF CD 80 0D 01 02 00 00 00 00 F5 [20:57:36]Write i2c OK [20:57:36]MH_I2C_Read... [20:57:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:57:36]Read from MH i2c: E2 [20:57:36]MH_I2C_Read... [20:57:36]Read from MH i2c: E2 03 00 [20:57:36]MH_I2C_Read... [20:57:36]Read from MH i2c: E2 03 00 AF CD 00 90 00 F0 [20:57:36]RAPDU: 90 00 [20:57:36]wFMCommunicate OK [20:57:36]wFMCommunicate request_size=255 [20:57:36]MH_SAM_APDU [20:57:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 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 F7 01 00 00 F4 03 04 00 46 60 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 51 FB 03 00 35 04 06 00 E4 [20:57:36]Write to MH i2c: E2 02 01 B0 CD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 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 F7 01 00 00 F4 03 04 00 46 60 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 51 FB 03 00 35 04 06 00 E4 00 00 3B [20:57:36]Write i2c OK [20:57:36]MH_I2C_Read... [20:57:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:37]Read from MH i2c: E2 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: E2 03 00 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: E2 03 00 B0 CD 00 90 00 F1 [20:57:37]RAPDU: 90 00 [20:57:37]wFMCommunicate OK [20:57:37]wFMCommunicate request_size=10 [20:57:37]MH_SAM_APDU [20:57:37]CAPDU: 80 0D 02 02 05 39 63 18 45 B3 [20:57:37]Write to MH i2c: E2 0D 00 B1 CD 80 0D 02 02 05 00 39 63 18 45 B3 00 00 AE [20:57:37]Write i2c OK [20:57:37]MH_I2C_Read... [20:57:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:37]Read from MH i2c: E2 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: E2 03 00 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: E2 03 00 B1 CD 00 90 00 F2 [20:57:37]RAPDU: 90 00 [20:57:37]wFMCommunicate OK [20:57:37]wFMCommunicate request_size=4 [20:57:37]MH_SAM_APDU [20:57:37]CAPDU: 80 0D 03 02 [20:57:37]Write to MH i2c: E2 08 00 B2 CD 80 0D 03 02 00 00 00 00 FA [20:57:37]Write i2c OK [20:57:37]MH_I2C_Read... [20:57:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:57:37]Read from MH i2c: E2 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: E2 0B 00 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: E2 0B 00 B2 CD 00 CE D6 E6 5E 15 2A 98 2E 90 00 E8 [20:57:37]RAPDU: CE D6 E6 5E 15 2A 98 2E 90 00 [20:57:37]wFMCommunicate OK [20:57:37]SAM_PROTO_SignData done [20:57:37]FM_MakeSignedData done [20:57:37]CreateOFDProtocolMessage [20:57:37]wFMCommunicate request_size=4 [20:57:37]MH_SAM_APDU [20:57:37]CAPDU: 80 11 00 00 [20:57:37]Write to MH i2c: E2 08 00 B3 CD 80 11 00 00 00 00 00 00 FA [20:57:37]Write i2c OK [20:57:37]MH_I2C_Read... [20:57:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:37]Read from MH i2c: E2 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: E2 17 00 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: E2 17 00 B3 CD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 47 [20:57:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:57:37]wFMCommunicate OK [20:57:37]CreateOFDProtocolMessage done [20:57:37]OFDSenderStorePacket 260945 [20:57:37]StoreOFDPacket docnum=260945 [20:57:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 59 64 07 01 E7 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 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 F7 01 00 00 F4 03 04 00 46 60 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 51 FB 03 00 35 04 06 00 E4 39 63 18 45 B3 CE D6 E6 5E 15 2A 98 2E [20:57:37]CheckFolder [20:57:37]dirname=/storage/ofd_packets [20:57:37]CheckFolder done [20:57:37]ProducePacketName [20:57:37]name=ofd_packets/00260945 [20:57:37]NVStorageSaveData ofd_packets/00260945 [20:57:37]File name is /storage/ofd_packets/00260945 [20:57:37]Write 301 bytes [20:57:37]NVStorageSaveData done [20:57:37]OFDSenderStorePacket done [20:57:37]KKMCreateOFDPacket done [20:57:37]NVStorageSaveData kkm_last_timestamp [20:57:37]File name is /storage/kkm_last_timestamp [20:57:37]Write 4 bytes [20:57:37]NVStorageSaveData done [20:57:37]ExternCall_PrintAddStr [20:57:37]wPrintStart [20:57:37]Write to MH i2c: 01 00 00 B4 CD 81 [20:57:37]Write i2c OK [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: 01 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: 01 07 00 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: 01 07 00 B4 CD 00 00 00 00 00 FF 0F 96 [20:57:37]RasterBufferAndPrint [20:57:37]line Счет N : (1)1036499 [20:57:37]line ИНН: 02508201610067 [20:57:37]line Контрольно-Кассовый Чек [20:57:37]line ПРОДАЖА [20:57:37]line ТРК (МРК, ГНК) : 22 [20:57:37]line Товар: 2710124130 [20:57:37]line Аи-92-К-5 [20:57:37]line 3.690 * 67.80 [20:57:37]line = 250.18 [20:57:37]line НДС 12% НСП 1% [20:57:37]line > о реализуемом товаре [20:57:37]line ОКРУГЛЕНИЕ: -0.18 [20:57:37]line ИТОГО: 250.00 [20:57:37]line Внесено: 250.00 [20:57:37]line СДАЧА: 0.00 [20:57:37]line НСП 1% : 2.21 [20:57:37]line НДС 12% : 26.57 [20:57:37]line Наличными: 250.00 [20:57:37]line Безнал.: 0.00 [20:57:37]line Место: АЗС № 94 "Партнер Нефть" [20:57:37]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:57:37]line СНО: Общий режим [20:57:37]line Чек 503 18.08.2024 20:57 [20:57:37]line Смена: 449 ФФД: 1.0 [20:57:37]line ЗНМ: 0300000099 [20:57:37]line РНМ: 0000000000091865 [20:57:37]line Версия ККМ: 001 [20:57:37]line ФМ: 0000000000871820 [20:57:37]line ФД: 260945 [20:57:37]line ФПД: 250935126803891 [20:57:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T205742&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260945&fm=250935126803891&tin=02508201610067®Number=0000000000091865&sum=25000 [20:57:37]written 0, free lines is 4095 [20:57:37]OFD Sender: Processing packet 260945 [packets to send 192, broken 191] [20:57:37]ProducePacketName [20:57:37]name=ofd_packets/00260945 [20:57:37]OFD Sender: To server: pG, [20:57:37]CommunicateWithHost lk.salyk.kg:30040 [20:57:37]ConnectInit lk.salyk.kg [20:57:37]Connected sock=10 [20:57: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 30 0F 01 00 00 59 64 07 01 E7 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 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 F7 01 00 00 F4 03 04 00 46 60 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 51 FB 03 00 35 04 06 00 E4 39 63 18 45 B3 CE D6 E6 5E 15 2A 98 2E [20:57: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 30 4F 00 00 00 85 3C 47 00 32 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 51 FB 03 00 F4 03 04 00 9A 09 C2 66 B6 04 01 00 00 CA A0 CE 7F F6 20 D1 0E [20:57:37]CommunicateWithHost err = 0 [20:57:37]CheckOFDResponse [20:57:37]1017 (14) - 77093643461234 [20:57:37]1041 (16) - 0000000000871820 [20:57:37]1040 (4) - 260945 [20:57:37]1012 (4) - 18.08.2024 14:47 [20:57:37]1206 (1) - 0 [20:57:37]OFD Sender: Remove packet 260945 [20:57:37]ProducePacketName [20:57:37]name=ofd_packets/00260945 [20:57:37]NVStorageDeleteData [20:57:37]Write to MH i2c: 01 00 00 DF CD AC [20:57:37]Write i2c OK [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: 01 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: 01 07 00 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: 01 07 00 DF CD 00 00 00 00 00 74 0C 33 [20:57:37]RasterBufferAndPrint [20:57:37]line [20:57:37]line [20:57:37]line [20:57:37]line [20:57:37]line [20:57:37]written 0, free lines is 3191 [20:57:37]MH_Cut [20:57:37]Write to MH i2c: D1 01 00 E6 CD 01 85 [20:57:37]Write i2c OK [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: D1 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: D1 01 00 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: D1 01 00 E6 CD 00 84 [20:57:37]Write to MH i2c: 01 00 00 E7 CD B4 [20:57:37]Write i2c OK [20:57:37]MH_I2C_Read... [20:57:38]OFD Sender: No OFD packet to send [20:57:38]*** Cut start [20:57:38]*** Purtial cut [20:57:38]*** Stage 1: CUTSNS_PIN = 1 [20:57:40]Read from MH i2c: 01 [20:57:40]MH_I2C_Read... [20:57:40]*** Stop cut motor [20:57:40]*** Cut end [20:57:40]Read from MH i2c: 01 07 00 [20:57:40]MH_I2C_Read... [20:57:40]Read from MH i2c: 01 07 00 E7 CD 00 00 00 00 00 FF 0F C9 [20:57:40]process_action close_receipt done [20:57:40]requested_data is exist [20:57:40]produce_requested_data [20:57:40]requested_item fm.sn is exist - process it [20:57:40]wFMCommunicate request_size=4 [20:57:40]MH_SAM_APDU [20:57:40]CAPDU: 80 11 00 00 [20:57:40]Write to MH i2c: E2 08 00 E8 CD 80 11 00 00 00 00 00 00 2F [20:57:40]Write i2c OK [20:57:41]MH_I2C_Read... [20:57:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:41]Read from MH i2c: E2 [20:57:41]MH_I2C_Read... [20:57:41]Read from MH i2c: E2 17 00 [20:57:41]MH_I2C_Read... [20:57:41]Read from MH i2c: E2 17 00 E8 CD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 7C [20:57:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:57:41]wFMCommunicate OK [20:57:41]requested_item fd.num is exist - process it [20:57:41]SAM_PROTO_GetFieldsCounters [20:57:41]wFMCommunicate request_size=4 [20:57:41]MH_SAM_APDU [20:57:41]CAPDU: 80 13 00 00 [20:57:41]Write to MH i2c: E2 08 00 E9 CD 80 13 00 00 00 00 00 00 32 [20:57:41]Write i2c OK [20:57:41]MH_I2C_Read... [20:57:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:57:41]Read from MH i2c: E2 [20:57:41]MH_I2C_Read... [20:57:41]Read from MH i2c: E2 62 00 [20:57:41]MH_I2C_Read... [20:57:41]Read from MH i2c: E2 62 00 E9 CD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 51 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F7 01 00 00 5E 04 04 00 F7 01 00 00 57 04 04 00 F8 01 00 00 19 04 04 00 00 00 00 00 90 00 4A [20:57: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 51 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F7 01 00 00 5E 04 04 00 F7 01 00 00 57 04 04 00 F8 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:57:41]wFMCommunicate OK [20:57:41]SAM_PROTO_GetFieldsCounters done [20:57:41]requested_item shift.num is exist - process it [20:57:41]requested_item shift.opened is exist - process it [20:57:41]req_shift_opened [20:57:41]FM_GetShiftState [20:57:41]SAM_PROTO_GetShiftState [20:57:41]wFMCommunicate request_size=4 [20:57:41]MH_SAM_APDU [20:57:41]CAPDU: 80 13 01 00 [20:57:41]Write to MH i2c: E2 08 00 EA CD 80 13 01 00 00 00 00 00 34 [20:57:41]Write i2c OK [20:57:41]MH_I2C_Read... [20:57:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:41]Read from MH i2c: E2 [20:57:41]MH_I2C_Read... [20:57:41]Read from MH i2c: E2 0E 00 [20:57:41]MH_I2C_Read... [20:57:41]Read from MH i2c: E2 0E 00 EA CD 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 71 [20:57:41]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:57:41]wFMCommunicate OK [20:57:41]SAM_PROTO_GetShiftState done [20:57:41]FM_GetShiftState done [20:57:41]req_shift_opened done [20:57:41]requested_item shift.open_date is exist - process it [20:57:41]req_shift_open_date [20:57:41]req_shift_open_date done [20:57:41]produce_requested_data done [20:57:41]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260945,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:57:41]process_action_free close_receipt [20:57:41]json_value_free [20:57:41]json_value_free done [20:57:41]process_json_proto returns [20:57:41]Send response to host [20:57:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260945,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:57:41]free response buf [20:57:41]execute_script done [20:57:41]execute_script returns [20:57:41]free content buf [20:57:41]Sock 7.Close socket [20:57:41]Sock 7.Thread stoped [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:10]accept exits with 9 [20:58:10]New connection [20:58:10]New thread 3066473828 created [20:58:10]Thread 3066617188 joined [20:58:10]Waiting for new connection... [20:58:10] Sock 9.Parse request [20:58:10]Sock 9.Check first char [20:58:10]Sock 9.First char is OK [20:58:10]request: POST /json_proto HTTP/1.0 [20:58:10]Method: POST [20:58:10]URL: /json_proto [20:58:10]Method is POST - this is cgi request [20:58:10]url: /json_proto [20:58:10]query_string will be loaded in cgi processing [20:58:10]execute_cgi json_proto POST (null) [20:58:10]execute_cgi path=json_proto method=POST [20:58:10]POST find Content-Length [20:58:10]Host: 172.17.55.133:8080 [20:58:10]Content-Length: 678 [20:58:10]Content-Type: application/json [20:58:10] [20:58:10]POST finish read [20:58:10]Found Content-Length = 678 [20:58:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:58:10]execute_script... [20:58: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)1036498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:58:10]POST & json_proto [20:58:10]process_json_proto [20:58:10]json parsed OK: [20:58:10]protocol is kg_v1.0 [20:58:10]action value=close_receipt [20:58:10]process_action close_receipt [20:58:10]cmd_close_receipt [20:58:10]MH_GetDate [20:58:10]Write to MH i2c: F0 00 00 EB CD A7 [20:58:10]Write i2c OK [20:58:10]MH_I2C_Read... [20:58:10]Read from MH i2c: F0 [20:58:10]MH_I2C_Read... [20:58:10]Read from MH i2c: F0 09 00 [20:58:10]MH_I2C_Read... [20:58:10]Read from MH i2c: F0 09 00 EB CD 00 69 60 C2 66 34 48 D8 65 5A [20:58:10]GetLastDocTimeStamp 1724014662 [20:58:10]current date 1724014697 [20:58:10]FM_GetShiftState [20:58:10]SAM_PROTO_GetShiftState [20:58:10]wFMCommunicate request_size=4 [20:58:10]MH_SAM_APDU [20:58:10]CAPDU: 80 13 01 00 [20:58:10]Write to MH i2c: E2 08 00 EC CD 80 13 01 00 00 00 00 00 36 [20:58:10]Write i2c OK [20:58:10]MH_I2C_Read... [20:58:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:58:11]Read from MH i2c: E2 [20:58:11]MH_I2C_Read... [20:58:11]Read from MH i2c: E2 0E 00 [20:58:11]MH_I2C_Read... [20:58:11]Read from MH i2c: E2 0E 00 EC CD 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 73 [20:58:11]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:58:11]wFMCommunicate OK [20:58:11]SAM_PROTO_GetShiftState done [20:58:11]FM_GetShiftState done [20:58:11]opened in 1723940556 [20:58:11]opened+sec_in_day 1724026956 [20:58:11]quantity*price = 50036 [20:58:11]sum+1 = 50037 [20:58:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 504 18.08.2024 20:58 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260946 ФПД: 178791189705596 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T205817&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260946&fm=178791189705596&tin=02508201610067®Number=0000000000091865&sum=50000 [20:58:12]StoreToDocumentArchive [20:58:12]shift 449 fd 260946 [20:58:12]save to /storage/0449/doc_00260946 [20:58:12]save last doc name /storage/0449/doc_00260946 to /storage/kkm_last_doc_name [20:58:12]save OK [20:58:12]Clear old archive folders... [20:58:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:58:12]tlvbuf is 00453BA0 [20:58:12]SAM_PROTO_ClearQueue [20:58:12]wFMCommunicate request_size=4 [20:58:12]MH_SAM_APDU [20:58:12]CAPDU: 80 09 00 00 [20:58:12]Write to MH i2c: E2 08 00 F9 CD 80 09 00 00 00 00 00 00 38 [20:58:12]Write i2c OK [20:58:12]MH_I2C_Read... [20:58:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:58:12]Read from MH i2c: E2 [20:58:12]MH_I2C_Read... [20:58:12]Read from MH i2c: E2 03 00 [20:58:12]MH_I2C_Read... [20:58:12]Read from MH i2c: E2 03 00 F9 CD 00 90 00 3A [20:58:12]RAPDU: 90 00 [20:58:12]wFMCommunicate OK [20:58:12]SAM_PROTO_ClearQueue done [20:58:12]KKMCreateOFDPacket [20:58:12]OFDProtocolAddRootSTLVToBuf [20:58:12]FM_MakeSignedData [20:58:12]FM_MakeSignedData [20:58:12]SAM_PROTO_SignData [20:58:12]wFMCommunicate request_size=4 [20:58:12]MH_SAM_APDU [20:58:12]CAPDU: 80 0D 01 02 [20:58:12]Write to MH i2c: E2 08 00 FA CD 80 0D 01 02 00 00 00 00 40 [20:58:12]Write i2c OK [20:58:12]MH_I2C_Read... [20:58:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:58:12]Read from MH i2c: E2 [20:58:12]MH_I2C_Read... [20:58:12]Read from MH i2c: E2 03 00 [20:58:12]MH_I2C_Read... [20:58:12]Read from MH i2c: E2 03 00 FA CD 00 90 00 3B [20:58:12]RAPDU: 90 00 [20:58:12]wFMCommunicate OK [20:58:12]wFMCommunicate request_size=255 [20:58:12]MH_SAM_APDU [20:58:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F8 01 00 00 F4 03 04 00 69 60 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 52 FB 03 00 35 04 06 00 A2 [20:58:12]Write to MH i2c: E2 02 01 FB CD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F8 01 00 00 F4 03 04 00 69 60 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 52 FB 03 00 35 04 06 00 A2 00 00 5B [20:58:12]Write i2c OK [20:58:12]MH_I2C_Read... [20:58:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:58:12]Read from MH i2c: E2 [20:58:12]MH_I2C_Read... [20:58:12]Read from MH i2c: E2 03 00 [20:58:12]MH_I2C_Read... [20:58:12]Read from MH i2c: E2 03 00 FB CD 00 90 00 3C [20:58:12]RAPDU: 90 00 [20:58:12]wFMCommunicate OK [20:58:12]wFMCommunicate request_size=10 [20:58:12]MH_SAM_APDU [20:58:12]CAPDU: 80 0D 02 02 05 9C 11 59 F3 7C [20:58:12]Write to MH i2c: E2 0D 00 FC CD 80 0D 02 02 05 00 9C 11 59 F3 7C 00 00 C2 [20:58:12]Write i2c OK [20:58:12]MH_I2C_Read... [20:58:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:58:12]Read from MH i2c: E2 [20:58:12]MH_I2C_Read... [20:58:12]Read from MH i2c: E2 03 00 [20:58:12]MH_I2C_Read... [20:58:12]Read from MH i2c: E2 03 00 FC CD 00 90 00 3D [20:58:12]RAPDU: 90 00 [20:58:12]wFMCommunicate OK [20:58:12]wFMCommunicate request_size=4 [20:58:12]MH_SAM_APDU [20:58:12]CAPDU: 80 0D 03 02 [20:58:12]Write to MH i2c: E2 08 00 FD CD 80 0D 03 02 00 00 00 00 45 [20:58:12]Write i2c OK [20:58:12]MH_I2C_Read... [20:58:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:58:12]Read from MH i2c: E2 [20:58:12]MH_I2C_Read... [20:58:12]Read from MH i2c: E2 0B 00 [20:58:12]MH_I2C_Read... [20:58:12]Read from MH i2c: E2 0B 00 FD CD 00 F8 48 EE F4 56 E6 D3 A9 90 00 20 [20:58:12]RAPDU: F8 48 EE F4 56 E6 D3 A9 90 00 [20:58:12]wFMCommunicate OK [20:58:12]SAM_PROTO_SignData done [20:58:12]FM_MakeSignedData done [20:58:12]CreateOFDProtocolMessage [20:58:12]wFMCommunicate request_size=4 [20:58:12]MH_SAM_APDU [20:58:12]CAPDU: 80 11 00 00 [20:58:12]Write to MH i2c: E2 08 00 FE CD 80 11 00 00 00 00 00 00 45 [20:58:12]Write i2c OK [20:58:12]MH_I2C_Read... [20:58:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:58:12]Read from MH i2c: E2 [20:58:12]MH_I2C_Read... [20:58:12]Read from MH i2c: E2 17 00 [20:58:12]MH_I2C_Read... [20:58:12]Read from MH i2c: E2 17 00 FE CD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 92 [20:58:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:58:12]wFMCommunicate OK [20:58:12]CreateOFDProtocolMessage done [20:58:12]OFDSenderStorePacket 260946 [20:58:12]StoreOFDPacket docnum=260946 [20:58:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 34 36 07 01 AE C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F8 01 00 00 F4 03 04 00 69 60 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 52 FB 03 00 35 04 06 00 A2 9C 11 59 F3 7C F8 48 EE F4 56 E6 D3 A9 [20:58:12]CheckFolder [20:58:12]dirname=/storage/ofd_packets [20:58:12]CheckFolder done [20:58:12]ProducePacketName [20:58:12]name=ofd_packets/00260946 [20:58:12]NVStorageSaveData ofd_packets/00260946 [20:58:12]File name is /storage/ofd_packets/00260946 [20:58:12]Write 301 bytes [20:58:12]NVStorageSaveData done [20:58:12]OFDSenderStorePacket done [20:58:12]KKMCreateOFDPacket done [20:58:12]NVStorageSaveData kkm_last_timestamp [20:58:12]File name is /storage/kkm_last_timestamp [20:58:12]Write 4 bytes [20:58:12]NVStorageSaveData done [20:58:12]ExternCall_PrintAddStr [20:58:12]wPrintStart [20:58:12]Write to MH i2c: 01 00 00 FF CD CC [20:58:12]Write i2c OK [20:58:12]MH_I2C_Read... [20:58:12]Read from MH i2c: 01 [20:58:12]MH_I2C_Read... [20:58:12]Read from MH i2c: 01 07 00 [20:58:12]MH_I2C_Read... [20:58:12]Read from MH i2c: 01 07 00 FF CD 00 00 00 00 00 FF 0F E1 [20:58:12]RasterBufferAndPrint [20:58:12]line Счет N : (1)1036498 [20:58:12]line ИНН: 02508201610067 [20:58:12]line Контрольно-Кассовый Чек [20:58:12]line ПРОДАЖА [20:58:12]line ТРК (МРК, ГНК) : 32 [20:58:12]line Товар: 2710124130 [20:58:12]line Аи-92-К-5 [20:58:12]line 7.380 * 67.80 [20:58:12]line = 500.36 [20:58:12]line НДС 12% НСП 1% [20:58:12]line > о реализуемом товаре [20:58:12]line ОКРУГЛЕНИЕ: -0.36 [20:58:12]line ИТОГО: 500.00 [20:58:12]line Внесено: 500.00 [20:58:12]line СДАЧА: 0.00 [20:58:12]line НСП 1% : 4.43 [20:58:12]line НДС 12% : 53.14 [20:58:12]line Наличными: 500.00 [20:58:12]line Безнал.: 0.00 [20:58:12]line Место: АЗС № 94 "Партнер Нефть" [20:58:12]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:58:12]line СНО: Общий режим [20:58:12]line Чек 504 18.08.2024 20:58 [20:58:12]line Смена: 449 ФФД: 1.0 [20:58:12]line ЗНМ: 0300000099 [20:58:12]line РНМ: 0000000000091865 [20:58:12]line Версия ККМ: 001 [20:58:12]line ФМ: 0000000000871820 [20:58:12]line ФД: 260946 [20:58:12]line ФПД: 178791189705596 [20:58:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T205817&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260946&fm=178791189705596&tin=02508201610067®Number=0000000000091865&sum=50000 [20:58:13]OFD Sender: Processing packet 260946 [packets to send 192, broken 191] [20:58:13]ProducePacketName [20:58:13]name=ofd_packets/00260946 [20:58:13]OFD Sender: To server: pG, [20:58:13]CommunicateWithHost lk.salyk.kg:30040 [20:58:13]ConnectInit lk.salyk.kg [20:58:13]written 0, free lines is 4095 [20:58:13]Connected sock=10 [20:58: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 30 0F 01 00 00 34 36 07 01 AE C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F8 01 00 00 F4 03 04 00 69 60 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 52 FB 03 00 35 04 06 00 A2 9C 11 59 F3 7C F8 48 EE F4 56 E6 D3 A9 [20:58: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 30 4F 00 00 00 3D 0A 47 00 BA 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 30 10 04 04 00 52 FB 03 00 F4 03 04 00 BD 09 C2 66 B6 04 01 00 00 E2 29 59 40 53 5D 70 AC [20:58:13]CommunicateWithHost err = 0 [20:58:13]CheckOFDResponse [20:58:13]1017 (14) - 77093643461234 [20:58:13]1041 (16) - 0000000000871820 [20:58:13]1040 (4) - 260946 [20:58:13]1012 (4) - 18.08.2024 14:48 [20:58:13]1206 (1) - 0 [20:58:13]OFD Sender: Remove packet 260946 [20:58:13]ProducePacketName [20:58:13]name=ofd_packets/00260946 [20:58:13]NVStorageDeleteData [20:58:13]Write to MH i2c: 01 00 00 2A CE F8 [20:58:13]Write i2c OK [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: 01 [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: 01 07 00 [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: 01 07 00 2A CE 00 00 00 00 00 6E 0C 79 [20:58:13]RasterBufferAndPrint [20:58:13]line [20:58:13]line [20:58:13]line [20:58:13]line [20:58:13]line [20:58:13]written 0, free lines is 3185 [20:58:13]MH_Cut [20:58:13]Write to MH i2c: D1 01 00 31 CE 01 D1 [20:58:13]Write i2c OK [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: D1 [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: D1 01 00 [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: D1 01 00 31 CE 00 D0 [20:58:13]Write to MH i2c: 01 00 00 32 CE 00 [20:58:13]Write i2c OK [20:58:13]MH_I2C_Read... [20:58:13]OFD Sender: No OFD packet to send [20:58:14]*** Cut start [20:58:14]*** Purtial cut [20:58:14]*** Stage 1: CUTSNS_PIN = 1 [20:58:16]Read from MH i2c: 01 [20:58:16]MH_I2C_Read... [20:58:16]*** Stop cut motor [20:58:16]*** Cut end [20:58:16]Read from MH i2c: 01 07 00 [20:58:16]MH_I2C_Read... [20:58:16]Read from MH i2c: 01 07 00 32 CE 00 00 00 00 00 FF 0F 15 [20:58:16]process_action close_receipt done [20:58:16]requested_data is exist [20:58:16]produce_requested_data [20:58:16]requested_item fm.sn is exist - process it [20:58:16]wFMCommunicate request_size=4 [20:58:16]MH_SAM_APDU [20:58:16]CAPDU: 80 11 00 00 [20:58:16]Write to MH i2c: E2 08 00 33 CE 80 11 00 00 00 00 00 00 7B [20:58:16]Write i2c OK [20:58:16]MH_I2C_Read... [20:58:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:58:16]Read from MH i2c: E2 [20:58:16]MH_I2C_Read... [20:58:16]Read from MH i2c: E2 17 00 [20:58:16]MH_I2C_Read... [20:58:16]Read from MH i2c: E2 17 00 33 CE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C8 [20:58:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:58:16]wFMCommunicate OK [20:58:16]requested_item fd.num is exist - process it [20:58:16]SAM_PROTO_GetFieldsCounters [20:58:16]wFMCommunicate request_size=4 [20:58:16]MH_SAM_APDU [20:58:16]CAPDU: 80 13 00 00 [20:58:16]Write to MH i2c: E2 08 00 34 CE 80 13 00 00 00 00 00 00 7E [20:58:16]Write i2c OK [20:58:16]MH_I2C_Read... [20:58:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:58:16]Read from MH i2c: E2 [20:58:16]MH_I2C_Read... [20:58:16]Read from MH i2c: E2 62 00 [20:58:16]MH_I2C_Read... [20:58:16]Read from MH i2c: E2 62 00 34 CE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 52 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F8 01 00 00 5E 04 04 00 F8 01 00 00 57 04 04 00 F9 01 00 00 19 04 04 00 00 00 00 00 90 00 9A [20:58:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 52 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F8 01 00 00 5E 04 04 00 F8 01 00 00 57 04 04 00 F9 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:58:16]wFMCommunicate OK [20:58:16]SAM_PROTO_GetFieldsCounters done [20:58:16]requested_item shift.num is exist - process it [20:58:16]requested_item shift.opened is exist - process it [20:58:16]req_shift_opened [20:58:16]FM_GetShiftState [20:58:16]SAM_PROTO_GetShiftState [20:58:16]wFMCommunicate request_size=4 [20:58:16]MH_SAM_APDU [20:58:16]CAPDU: 80 13 01 00 [20:58:16]Write to MH i2c: E2 08 00 35 CE 80 13 01 00 00 00 00 00 80 [20:58:16]Write i2c OK [20:58:16]MH_I2C_Read... [20:58:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:58:16]Read from MH i2c: E2 [20:58:16]MH_I2C_Read... [20:58:16]Read from MH i2c: E2 0E 00 [20:58:16]MH_I2C_Read... [20:58:16]Read from MH i2c: E2 0E 00 35 CE 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 BD [20:58:16]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:58:16]wFMCommunicate OK [20:58:16]SAM_PROTO_GetShiftState done [20:58:16]FM_GetShiftState done [20:58:16]req_shift_opened done [20:58:16]requested_item shift.open_date is exist - process it [20:58:16]req_shift_open_date [20:58:16]req_shift_open_date done [20:58:16]produce_requested_data done [20:58:16]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260946,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:58:16]process_action_free close_receipt [20:58:16]json_value_free [20:58:16]json_value_free done [20:58:16]process_json_proto returns [20:58:16]Send response to host [20:58:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260946,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:58:16]free response buf [20:58:16]execute_script done [20:58:16]execute_script returns [20:58:16]free content buf [20:58:16]Sock 9.Close socket [20:58:16]Sock 9.Thread stoped [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:14]accept exits with 7 [20:59:14]New connection [20:59:14]New thread 3066617188 created [20:59:14]Thread 3066473828 joined [20:59:14]Waiting for new connection... [20:59:14] Sock 7.Parse request [20:59:14]Sock 7.Check first char [20:59:14]Sock 7.First char is OK [20:59:14]request: POST /json_proto HTTP/1.0 [20:59:14]Method: POST [20:59:14]URL: /json_proto [20:59:14]Method is POST - this is cgi request [20:59:14]url: /json_proto [20:59:14]query_string will be loaded in cgi processing [20:59:14]execute_cgi json_proto POST (null) [20:59:14]execute_cgi path=json_proto method=POST [20:59:14]POST find Content-Length [20:59:14]Host: 172.17.55.133:8080 [20:59:14]Content-Length: 683 [20:59:14]Content-Type: application/json [20:59:14] [20:59:14]POST finish read [20:59:14]Found Content-Length = 683 [20:59:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:59:14]execute_script... [20:59: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)1036500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:59:14]POST & json_proto [20:59:14]process_json_proto [20:59:14]json parsed OK: [20:59:14]protocol is kg_v1.0 [20:59:14]action value=close_receipt [20:59:14]process_action close_receipt [20:59:14]cmd_close_receipt [20:59:14]MH_GetDate [20:59:14]Write to MH i2c: F0 00 00 36 CE F3 [20:59:14]Write i2c OK [20:59:14]MH_I2C_Read... [20:59:14]Read from MH i2c: F0 [20:59:14]MH_I2C_Read... [20:59:14]Read from MH i2c: F0 09 00 [20:59:14]MH_I2C_Read... [20:59:14]Read from MH i2c: F0 09 00 36 CE 00 A9 60 C2 66 34 48 D8 65 E6 [20:59:14]GetLastDocTimeStamp 1724014697 [20:59:14]current date 1724014761 [20:59:14]FM_GetShiftState [20:59:14]SAM_PROTO_GetShiftState [20:59:14]wFMCommunicate request_size=4 [20:59:14]MH_SAM_APDU [20:59:14]CAPDU: 80 13 01 00 [20:59:14]Write to MH i2c: E2 08 00 37 CE 80 13 01 00 00 00 00 00 82 [20:59:14]Write i2c OK [20:59:14]MH_I2C_Read... [20:59:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:59:14]Read from MH i2c: E2 [20:59:14]MH_I2C_Read... [20:59:14]Read from MH i2c: E2 0E 00 [20:59:14]MH_I2C_Read... [20:59:14]Read from MH i2c: E2 0E 00 37 CE 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 BF [20:59:14]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:59:14]wFMCommunicate OK [20:59:14]SAM_PROTO_GetShiftState done [20:59:14]FM_GetShiftState done [20:59:14]opened in 1723940556 [20:59:14]opened+sec_in_day 1724026956 [20:59:14]quantity*price = 100005 [20:59:14]sum+1 = 100006 [20:59:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 505 18.08.2024 20:59 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260947 ФПД: 257578199233240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T205921&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260947&fm=257578199233240&tin=02508201610067®Number=0000000000091865&sum=100000 [20:59:15]StoreToDocumentArchive [20:59:15]shift 449 fd 260947 [20:59:15]save to /storage/0449/doc_00260947 [20:59:15]save last doc name /storage/0449/doc_00260947 to /storage/kkm_last_doc_name [20:59:15]save OK [20:59:15]Clear old archive folders... [20:59:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:59:15]tlvbuf is 0078CD90 [20:59:15]SAM_PROTO_ClearQueue [20:59:15]wFMCommunicate request_size=4 [20:59:15]MH_SAM_APDU [20:59:15]CAPDU: 80 09 00 00 [20:59:15]Write to MH i2c: E2 08 00 44 CE 80 09 00 00 00 00 00 00 84 [20:59:15]Write i2c OK [20:59:15]MH_I2C_Read... [20:59:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:59:16]Read from MH i2c: E2 [20:59:16]MH_I2C_Read... [20:59:16]Read from MH i2c: E2 03 00 [20:59:16]MH_I2C_Read... [20:59:16]Read from MH i2c: E2 03 00 44 CE 00 90 00 86 [20:59:16]RAPDU: 90 00 [20:59:16]wFMCommunicate OK [20:59:16]SAM_PROTO_ClearQueue done [20:59:16]KKMCreateOFDPacket [20:59:16]OFDProtocolAddRootSTLVToBuf [20:59:16]FM_MakeSignedData [20:59:16]FM_MakeSignedData [20:59:16]SAM_PROTO_SignData [20:59:16]wFMCommunicate request_size=4 [20:59:16]MH_SAM_APDU [20:59:16]CAPDU: 80 0D 01 02 [20:59:16]Write to MH i2c: E2 08 00 45 CE 80 0D 01 02 00 00 00 00 8C [20:59:16]Write i2c OK [20:59:16]MH_I2C_Read... [20:59:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:59:16]Read from MH i2c: E2 [20:59:16]MH_I2C_Read... [20:59:16]Read from MH i2c: E2 03 00 [20:59:16]MH_I2C_Read... [20:59:16]Read from MH i2c: E2 03 00 45 CE 00 90 00 87 [20:59:16]RAPDU: 90 00 [20:59:16]wFMCommunicate OK [20:59:16]wFMCommunicate request_size=255 [20:59:16]MH_SAM_APDU [20:59:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 01 00 00 F4 03 04 00 A9 60 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 53 FB 03 00 35 04 06 00 EA [20:59:16]Write to MH i2c: E2 02 01 46 CE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 01 00 00 F4 03 04 00 A9 60 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 53 FB 03 00 35 04 06 00 EA 00 00 C0 [20:59:16]Write i2c OK [20:59:16]MH_I2C_Read... [20:59:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:59:16]Read from MH i2c: E2 [20:59:16]MH_I2C_Read... [20:59:16]Read from MH i2c: E2 03 00 [20:59:16]MH_I2C_Read... [20:59:16]Read from MH i2c: E2 03 00 46 CE 00 90 00 88 [20:59:16]RAPDU: 90 00 [20:59:16]wFMCommunicate OK [20:59:16]wFMCommunicate request_size=10 [20:59:16]MH_SAM_APDU [20:59:16]CAPDU: 80 0D 02 02 05 44 19 11 32 D8 [20:59:16]Write to MH i2c: E2 0D 00 47 CE 80 0D 02 02 05 00 44 19 11 32 D8 00 00 11 [20:59:16]Write i2c OK [20:59:16]MH_I2C_Read... [20:59:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:59:16]Read from MH i2c: E2 [20:59:16]MH_I2C_Read... [20:59:16]Read from MH i2c: E2 03 00 [20:59:16]MH_I2C_Read... [20:59:16]Read from MH i2c: E2 03 00 47 CE 00 90 00 89 [20:59:16]RAPDU: 90 00 [20:59:16]wFMCommunicate OK [20:59:16]wFMCommunicate request_size=4 [20:59:16]MH_SAM_APDU [20:59:16]CAPDU: 80 0D 03 02 [20:59:16]Write to MH i2c: E2 08 00 48 CE 80 0D 03 02 00 00 00 00 91 [20:59:16]Write i2c OK [20:59:16]MH_I2C_Read... [20:59:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:59:16]Read from MH i2c: E2 [20:59:16]MH_I2C_Read... [20:59:16]Read from MH i2c: E2 0B 00 [20:59:16]MH_I2C_Read... [20:59:16]Read from MH i2c: E2 0B 00 48 CE 00 21 67 70 55 AE 17 16 B7 90 00 71 [20:59:16]RAPDU: 21 67 70 55 AE 17 16 B7 90 00 [20:59:16]wFMCommunicate OK [20:59:16]SAM_PROTO_SignData done [20:59:16]FM_MakeSignedData done [20:59:16]CreateOFDProtocolMessage [20:59:16]wFMCommunicate request_size=4 [20:59:16]MH_SAM_APDU [20:59:16]CAPDU: 80 11 00 00 [20:59:16]Write to MH i2c: E2 08 00 49 CE 80 11 00 00 00 00 00 00 91 [20:59:16]Write i2c OK [20:59:16]MH_I2C_Read... [20:59:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:16]Read from MH i2c: E2 [20:59:16]MH_I2C_Read... [20:59:16]Read from MH i2c: E2 17 00 [20:59:16]MH_I2C_Read... [20:59:16]Read from MH i2c: E2 17 00 49 CE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 DE [20:59:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:59:16]wFMCommunicate OK [20:59:16]CreateOFDProtocolMessage done [20:59:16]OFDSenderStorePacket 260947 [20:59:16]StoreOFDPacket docnum=260947 [20:59:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 6E B8 07 01 DB EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 01 00 00 F4 03 04 00 A9 60 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 53 FB 03 00 35 04 06 00 EA 44 19 11 32 D8 21 67 70 55 AE 17 16 B7 [20:59:16]CheckFolder [20:59:16]dirname=/storage/ofd_packets [20:59:16]CheckFolder done [20:59:16]ProducePacketName [20:59:16]name=ofd_packets/00260947 [20:59:16]NVStorageSaveData ofd_packets/00260947 [20:59:16]File name is /storage/ofd_packets/00260947 [20:59:16]Write 301 bytes [20:59:16]NVStorageSaveData done [20:59:16]OFDSenderStorePacket done [20:59:16]KKMCreateOFDPacket done [20:59:16]NVStorageSaveData kkm_last_timestamp [20:59:16]File name is /storage/kkm_last_timestamp [20:59:16]Write 4 bytes [20:59:16]NVStorageSaveData done [20:59:16]ExternCall_PrintAddStr [20:59:16]wPrintStart [20:59:16]Write to MH i2c: 01 00 00 4A CE 18 [20:59:16]Write i2c OK [20:59:16]MH_I2C_Read... [20:59:16]Read from MH i2c: 01 [20:59:16]MH_I2C_Read... [20:59:16]Read from MH i2c: 01 07 00 [20:59:16]MH_I2C_Read... [20:59:16]Read from MH i2c: 01 07 00 4A CE 00 00 00 00 00 FF 0F 2D [20:59:16]RasterBufferAndPrint [20:59:16]line Счет N : (1)1036500 [20:59:16]line ИНН: 02508201610067 [20:59:16]line Контрольно-Кассовый Чек [20:59:16]line ПРОДАЖА [20:59:16]line ТРК (МРК, ГНК) : 32 [20:59:16]line Товар: 2710124130 [20:59:16]line Аи-92-К-5 [20:59:16]line 14.750 * 67.80 [20:59:16]line = 1000.05 [20:59:16]line НДС 12% НСП 1% [20:59:16]line > о реализуемом товаре [20:59:16]line ОКРУГЛЕНИЕ: -0.05 [20:59:16]line ИТОГО: 1000.00 [20:59:16]line Внесено: 1000.00 [20:59:16]line СДАЧА: 0.00 [20:59:16]line НСП 1% : 8.85 [20:59:16]line НДС 12% : 106.20 [20:59:16]line Наличными: 1000.00 [20:59:16]line Безнал.: 0.00 [20:59:16]line Место: АЗС № 94 "Партнер Нефть" [20:59:16]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:59:16]line СНО: Общий режим [20:59:16]line Чек 505 18.08.2024 20:59 [20:59:16]line Смена: 449 ФФД: 1.0 [20:59:16]line ЗНМ: 0300000099 [20:59:16]line РНМ: 0000000000091865 [20:59:16]line Версия ККМ: 001 [20:59:16]line ФМ: 0000000000871820 [20:59:16]line ФД: 260947 [20:59:16]line ФПД: 257578199233240 [20:59:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T205921&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260947&fm=257578199233240&tin=02508201610067®Number=0000000000091865&sum=100000 [20:59:16]written 0, free lines is 4095 [20:59:16]OFD Sender: Processing packet 260947 [packets to send 192, broken 191] [20:59:16]ProducePacketName [20:59:16]name=ofd_packets/00260947 [20:59:16]OFD Sender: To server: pG, [20:59:16]CommunicateWithHost lk.salyk.kg:30040 [20:59:16]ConnectInit lk.salyk.kg [20:59:16]Connected sock=10 [20:59: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 30 0F 01 00 00 6E B8 07 01 DB EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 01 00 00 F4 03 04 00 A9 60 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 53 FB 03 00 35 04 06 00 EA 44 19 11 32 D8 21 67 70 55 AE 17 16 B7 [20:59:16]Write to MH i2c: 01 00 00 75 CE 43 [20:59:16]Write i2c OK [20:59:16]MH_I2C_Read... [20:59:16]Read from MH i2c: 01 [20:59:16]MH_I2C_Read... [20:59:16]Read from MH i2c: 01 07 00 [20:59:16]MH_I2C_Read... [20:59:16]Read from MH i2c: 01 07 00 75 CE 00 00 00 00 00 71 0C C7 [20:59:16]RasterBufferAndPrint [20:59:16]line [20:59:16]line [20:59:16]line [20:59:16]line [20:59:16]line [20:59:16]written 0, free lines is 3188 [20:59:16]MH_Cut [20:59:16]Write to MH i2c: D1 01 00 7C CE 01 1C [20:59:16]Write i2c OK [20:59:16]MH_I2C_Read... [20:59:16]Read from MH i2c: D1 [20:59:16]MH_I2C_Read... [20:59:16]Read from MH i2c: D1 01 00 [20:59:16]MH_I2C_Read... [20:59:16]Read from MH i2c: D1 01 00 7C CE 00 1B [20:59:16]Write to MH i2c: 01 00 00 7D CE 4B [20:59:16]Write i2c OK [20:59:16]MH_I2C_Read... [20:59: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 30 4F 00 00 00 20 14 47 00 04 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 30 10 04 04 00 53 FB 03 00 F4 03 04 00 FD 09 C2 66 B6 04 01 00 00 22 2D 4D A9 F7 52 5F 40 [20:59:17]CommunicateWithHost err = 0 [20:59:17]CheckOFDResponse [20:59:17]1017 (14) - 77093643461234 [20:59:17]1041 (16) - 0000000000871820 [20:59:17]1040 (4) - 260947 [20:59:17]1012 (4) - 18.08.2024 14:49 [20:59:17]1206 (1) - 0 [20:59:17]OFD Sender: Remove packet 260947 [20:59:17]ProducePacketName [20:59:17]name=ofd_packets/00260947 [20:59:17]NVStorageDeleteData [20:59:17]OFD Sender: No OFD packet to send [20:59:18]*** Cut start [20:59:18]*** Purtial cut [20:59:18]*** Stage 1: CUTSNS_PIN = 1 [20:59:20]Read from MH i2c: 01 [20:59:20]MH_I2C_Read... [20:59:20]*** Stop cut motor [20:59:20]*** Cut end [20:59:20]Read from MH i2c: 01 07 00 [20:59:20]MH_I2C_Read... [20:59:20]Read from MH i2c: 01 07 00 7D CE 00 00 00 00 00 FF 0F 60 [20:59:20]process_action close_receipt done [20:59:20]requested_data is exist [20:59:20]produce_requested_data [20:59:20]requested_item fm.sn is exist - process it [20:59:20]wFMCommunicate request_size=4 [20:59:20]MH_SAM_APDU [20:59:20]CAPDU: 80 11 00 00 [20:59:20]Write to MH i2c: E2 08 00 7E CE 80 11 00 00 00 00 00 00 C6 [20:59:20]Write i2c OK [20:59:20]MH_I2C_Read... [20:59:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:20]Read from MH i2c: E2 [20:59:20]MH_I2C_Read... [20:59:20]Read from MH i2c: E2 17 00 [20:59:20]MH_I2C_Read... [20:59:20]Read from MH i2c: E2 17 00 7E CE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 13 [20:59:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:59:20]wFMCommunicate OK [20:59:20]requested_item fd.num is exist - process it [20:59:20]SAM_PROTO_GetFieldsCounters [20:59:20]wFMCommunicate request_size=4 [20:59:20]MH_SAM_APDU [20:59:20]CAPDU: 80 13 00 00 [20:59:20]Write to MH i2c: E2 08 00 7F CE 80 13 00 00 00 00 00 00 C9 [20:59:20]Write i2c OK [20:59:20]MH_I2C_Read... [20:59:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:59:20]Read from MH i2c: E2 [20:59:20]MH_I2C_Read... [20:59:20]Read from MH i2c: E2 62 00 [20:59:20]MH_I2C_Read... [20:59:20]Read from MH i2c: E2 62 00 7F CE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 53 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F9 01 00 00 5E 04 04 00 F9 01 00 00 57 04 04 00 FA 01 00 00 19 04 04 00 00 00 00 00 90 00 E9 [20:59: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 53 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 F9 01 00 00 5E 04 04 00 F9 01 00 00 57 04 04 00 FA 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:59:20]wFMCommunicate OK [20:59:20]SAM_PROTO_GetFieldsCounters done [20:59:20]requested_item shift.num is exist - process it [20:59:20]requested_item shift.opened is exist - process it [20:59:20]req_shift_opened [20:59:20]FM_GetShiftState [20:59:20]SAM_PROTO_GetShiftState [20:59:20]wFMCommunicate request_size=4 [20:59:20]MH_SAM_APDU [20:59:20]CAPDU: 80 13 01 00 [20:59:20]Write to MH i2c: E2 08 00 80 CE 80 13 01 00 00 00 00 00 CB [20:59:20]Write i2c OK [20:59:20]MH_I2C_Read... [20:59:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:59:20]Read from MH i2c: E2 [20:59:20]MH_I2C_Read... [20:59:20]Read from MH i2c: E2 0E 00 [20:59:20]MH_I2C_Read... [20:59:20]Read from MH i2c: E2 0E 00 80 CE 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 08 [20:59:20]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:59:20]wFMCommunicate OK [20:59:20]SAM_PROTO_GetShiftState done [20:59:20]FM_GetShiftState done [20:59:20]req_shift_opened done [20:59:20]requested_item shift.open_date is exist - process it [20:59:20]req_shift_open_date [20:59:20]req_shift_open_date done [20:59:20]produce_requested_data done [20:59:20]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260947,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [20:59:20]process_action_free close_receipt [20:59:20]json_value_free [20:59:20]json_value_free done [20:59:20]process_json_proto returns [20:59:20]Send response to host [20:59:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260947,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [20:59:20]free response buf [20:59:20]execute_script done [20:59:20]execute_script returns [20:59:20]free content buf [20:59:20]Sock 7.Close socket [20:59:20]Sock 7.Thread stoped [20:59:22]OFD Sender: No OFD packet to send [20:59:27]OFD Sender: No OFD packet to send [20:59:32]OFD Sender: No OFD packet to send [20:59:37]OFD Sender: No OFD packet to send [20:59:42]OFD Sender: No OFD packet to send [20:59:47]OFD Sender: No OFD packet to send [20:59:52]OFD Sender: No OFD packet to send [20:59:57]accept exits with 9 [20:59:57]New connection [20:59:57]New thread 3066473828 created [20:59:57]Thread 3066617188 joined [20:59:57]Waiting for new connection... [20:59:57] Sock 9.Parse request [20:59:57]Sock 9.Check first char [20:59:57]Sock 9.First char is OK [20:59:57]request: POST /json_proto HTTP/1.0 [20:59:57]Method: POST [20:59:57]URL: /json_proto [20:59:57]Method is POST - this is cgi request [20:59:57]url: /json_proto [20:59:57]query_string will be loaded in cgi processing [20:59:57]execute_cgi json_proto POST (null) [20:59:57]execute_cgi path=json_proto method=POST [20:59:57]POST find Content-Length [20:59:57]Host: 172.17.55.133:8080 [20:59:57]Content-Length: 683 [20:59:57]Content-Type: application/json [20:59:57] [20:59:57]POST finish read [20:59:57]Found Content-Length = 683 [20:59:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 44.250, "sum" : 3000.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:59:57]execute_script... [20:59: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)1036501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 44.250, "sum" : 3000.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:59:57]POST & json_proto [20:59:57]process_json_proto [20:59:57]json parsed OK: [20:59:57]protocol is kg_v1.0 [20:59:57]action value=close_receipt [20:59:57]process_action close_receipt [20:59:57]cmd_close_receipt [20:59:57]MH_GetDate [20:59:57]Write to MH i2c: F0 00 00 81 CE 3E [20:59:57]Write i2c OK [20:59:57]MH_I2C_Read... [20:59:57]Read from MH i2c: F0 [20:59:57]MH_I2C_Read... [20:59:57]Read from MH i2c: F0 09 00 [20:59:57]MH_I2C_Read... [20:59:57]Read from MH i2c: F0 09 00 81 CE 00 D4 60 C2 66 34 48 D8 65 5C [20:59:57]GetLastDocTimeStamp 1724014761 [20:59:57]current date 1724014804 [20:59:57]FM_GetShiftState [20:59:57]SAM_PROTO_GetShiftState [20:59:57]wFMCommunicate request_size=4 [20:59:57]MH_SAM_APDU [20:59:57]CAPDU: 80 13 01 00 [20:59:57]Write to MH i2c: E2 08 00 82 CE 80 13 01 00 00 00 00 00 CD [20:59:57]Write i2c OK [20:59:57]MH_I2C_Read... [20:59:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:59:57]Read from MH i2c: E2 [20:59:57]MH_I2C_Read... [20:59:57]Read from MH i2c: E2 0E 00 [20:59:57]MH_I2C_Read... [20:59:57]Read from MH i2c: E2 0E 00 82 CE 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 0A [20:59:57]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [20:59:57]wFMCommunicate OK [20:59:57]SAM_PROTO_GetShiftState done [20:59:57]FM_GetShiftState done [20:59:57]opened in 1723940556 [20:59:57]opened+sec_in_day 1724026956 [20:59:57]quantity*price = 300015 [20:59:57]sum+1 = 300016 [20:59:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.60 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 506 18.08.2024 21:00 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260948 ФПД: 29652228091852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T210004&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260948&fm=29652228091852&tin=02508201610067®Number=0000000000091865&sum=300000 [20:59:58]StoreToDocumentArchive [20:59:58]shift 449 fd 260948 [20:59:58]save to /storage/0449/doc_00260948 [20:59:58]save last doc name /storage/0449/doc_00260948 to /storage/kkm_last_doc_name [20:59:58]save OK [20:59:58]Clear old archive folders... [20:59:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:59:58]tlvbuf is 006B9350 [20:59:58]SAM_PROTO_ClearQueue [20:59:58]wFMCommunicate request_size=4 [20:59:58]MH_SAM_APDU [20:59:58]CAPDU: 80 09 00 00 [20:59:58]Write to MH i2c: E2 08 00 8F CE 80 09 00 00 00 00 00 00 CF [20:59:58]Write i2c OK [20:59:58]MH_I2C_Read... [20:59:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:59:58]Read from MH i2c: E2 [20:59:58]MH_I2C_Read... [20:59:58]Read from MH i2c: E2 03 00 [20:59:58]MH_I2C_Read... [20:59:58]Read from MH i2c: E2 03 00 8F CE 00 90 00 D1 [20:59:58]RAPDU: 90 00 [20:59:58]wFMCommunicate OK [20:59:58]SAM_PROTO_ClearQueue done [20:59:58]KKMCreateOFDPacket [20:59:58]OFDProtocolAddRootSTLVToBuf [20:59:58]FM_MakeSignedData [20:59:58]FM_MakeSignedData [20:59:58]SAM_PROTO_SignData [20:59:58]wFMCommunicate request_size=4 [20:59:58]MH_SAM_APDU [20:59:58]CAPDU: 80 0D 01 02 [20:59:58]Write to MH i2c: E2 08 00 90 CE 80 0D 01 02 00 00 00 00 D7 [20:59:58]Write i2c OK [20:59:58]MH_I2C_Read... [20:59:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:59:58]Read from MH i2c: E2 [20:59:58]MH_I2C_Read... [20:59:58]Read from MH i2c: E2 03 00 [20:59:58]MH_I2C_Read... [20:59:58]Read from MH i2c: E2 03 00 90 CE 00 90 00 D2 [20:59:58]RAPDU: 90 00 [20:59:58]wFMCommunicate OK [20:59:58]wFMCommunicate request_size=255 [20:59:58]MH_SAM_APDU [20:59:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA AC 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 EF 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 74 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 FA 01 00 00 F4 03 04 00 D4 60 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 54 FB 03 00 35 04 06 00 1A [20:59:58]Write to MH i2c: E2 02 01 91 CE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA AC 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 EF 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 74 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 FA 01 00 00 F4 03 04 00 D4 60 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 54 FB 03 00 35 04 06 00 1A 00 00 4D [20:59:58]Write i2c OK [20:59:58]MH_I2C_Read... [20:59:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:59:59]Read from MH i2c: E2 [20:59:59]MH_I2C_Read... [20:59:59]Read from MH i2c: E2 03 00 [20:59:59]MH_I2C_Read... [20:59:59]Read from MH i2c: E2 03 00 91 CE 00 90 00 D3 [20:59:59]RAPDU: 90 00 [20:59:59]wFMCommunicate OK [20:59:59]wFMCommunicate request_size=10 [20:59:59]MH_SAM_APDU [20:59:59]CAPDU: 80 0D 02 02 05 F7 F2 85 AF CC [20:59:59]Write to MH i2c: E2 0D 00 92 CE 80 0D 02 02 05 00 F7 F2 85 AF CC 00 00 CD [20:59:59]Write i2c OK [20:59:59]MH_I2C_Read... [20:59:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:59:59]Read from MH i2c: E2 [20:59:59]MH_I2C_Read... [20:59:59]Read from MH i2c: E2 03 00 [20:59:59]MH_I2C_Read... [20:59:59]Read from MH i2c: E2 03 00 92 CE 00 90 00 D4 [20:59:59]RAPDU: 90 00 [20:59:59]wFMCommunicate OK [20:59:59]wFMCommunicate request_size=4 [20:59:59]MH_SAM_APDU [20:59:59]CAPDU: 80 0D 03 02 [20:59:59]Write to MH i2c: E2 08 00 93 CE 80 0D 03 02 00 00 00 00 DC [20:59:59]Write i2c OK [20:59:59]MH_I2C_Read... [20:59:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:59:59]Read from MH i2c: E2 [20:59:59]MH_I2C_Read... [20:59:59]Read from MH i2c: E2 0B 00 [20:59:59]MH_I2C_Read... [20:59:59]Read from MH i2c: E2 0B 00 93 CE 00 5C CF B1 70 07 14 AD 23 90 00 14 [20:59:59]RAPDU: 5C CF B1 70 07 14 AD 23 90 00 [20:59:59]wFMCommunicate OK [20:59:59]SAM_PROTO_SignData done [20:59:59]FM_MakeSignedData done [20:59:59]CreateOFDProtocolMessage [20:59:59]wFMCommunicate request_size=4 [20:59:59]MH_SAM_APDU [20:59:59]CAPDU: 80 11 00 00 [20:59:59]Write to MH i2c: E2 08 00 94 CE 80 11 00 00 00 00 00 00 DC [20:59:59]Write i2c OK [20:59:59]MH_I2C_Read... [20:59:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:59]Read from MH i2c: E2 [20:59:59]MH_I2C_Read... [20:59:59]Read from MH i2c: E2 17 00 [20:59:59]MH_I2C_Read... [20:59:59]Read from MH i2c: E2 17 00 94 CE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 29 [20:59:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [20:59:59]wFMCommunicate OK [20:59:59]CreateOFDProtocolMessage done [20:59:59]OFDSenderStorePacket 260948 [20:59:59]StoreOFDPacket docnum=260948 [20:59:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 34 87 07 01 8D 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA AC 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 EF 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 74 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 FA 01 00 00 F4 03 04 00 D4 60 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 54 FB 03 00 35 04 06 00 1A F7 F2 85 AF CC 5C CF B1 70 07 14 AD 23 [20:59:59]CheckFolder [20:59:59]dirname=/storage/ofd_packets [20:59:59]CheckFolder done [20:59:59]ProducePacketName [20:59:59]name=ofd_packets/00260948 [20:59:59]NVStorageSaveData ofd_packets/00260948 [20:59:59]File name is /storage/ofd_packets/00260948 [20:59:59]Write 301 bytes [20:59:59]NVStorageSaveData done [20:59:59]OFDSenderStorePacket done [20:59:59]KKMCreateOFDPacket done [20:59:59]NVStorageSaveData kkm_last_timestamp [20:59:59]File name is /storage/kkm_last_timestamp [20:59:59]Write 4 bytes [20:59:59]NVStorageSaveData done [20:59:59]ExternCall_PrintAddStr [20:59:59]wPrintStart [20:59:59]Write to MH i2c: 01 00 00 95 CE 63 [20:59:59]Write i2c OK [20:59:59]MH_I2C_Read... [20:59:59]Read from MH i2c: 01 [20:59:59]MH_I2C_Read... [20:59:59]Read from MH i2c: 01 07 00 [20:59:59]MH_I2C_Read... [20:59:59]Read from MH i2c: 01 07 00 95 CE 00 00 00 00 00 FF 0F 78 [20:59:59]RasterBufferAndPrint [20:59:59]line Счет N : (1)1036501 [20:59:59]line ИНН: 02508201610067 [20:59:59]line Контрольно-Кассовый Чек [20:59:59]line ПРОДАЖА [20:59:59]line ТРК (МРК, ГНК) : 12 [20:59:59]line Товар: 2710124130 [20:59:59]line Аи-92-К-5 [20:59:59]line 44.250 * 67.80 [20:59:59]line = 3000.15 [20:59:59]line НДС 12% НСП 1% [20:59:59]line > о реализуемом товаре [20:59:59]line ОКРУГЛЕНИЕ: -0.15 [20:59:59]line ИТОГО: 3000.00 [20:59:59]line Внесено: 3000.00 [20:59:59]line СДАЧА: 0.00 [20:59:59]line НСП 1% : 26.55 [20:59:59]line НДС 12% : 318.60 [20:59:59]line Наличными: 3000.00 [20:59:59]line Безнал.: 0.00 [20:59:59]line Место: АЗС № 94 "Партнер Нефть" [20:59:59]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [20:59:59]line СНО: Общий режим [20:59:59]line Чек 506 18.08.2024 21:00 [20:59:59]line Смена: 449 ФФД: 1.0 [20:59:59]line ЗНМ: 0300000099 [20:59:59]line РНМ: 0000000000091865 [20:59:59]line Версия ККМ: 001 [20:59:59]line ФМ: 0000000000871820 [20:59:59]line ФД: 260948 [20:59:59]line ФПД: 29652228091852 [20:59:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T210004&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260948&fm=29652228091852&tin=02508201610067®Number=0000000000091865&sum=300000 [20:59:59]written 0, free lines is 4095 [20:59:59]OFD Sender: Processing packet 260948 [packets to send 192, broken 191] [20:59:59]ProducePacketName [20:59:59]name=ofd_packets/00260948 [20:59:59]OFD Sender: To server: pG, [20:59:59]CommunicateWithHost lk.salyk.kg:30040 [20:59:59]ConnectInit lk.salyk.kg [20:59:59]Connected sock=10 [20:59: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 30 0F 01 00 00 34 87 07 01 8D 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA AC 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 EF 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 74 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 FA 01 00 00 F4 03 04 00 D4 60 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 54 FB 03 00 35 04 06 00 1A F7 F2 85 AF CC 5C CF B1 70 07 14 AD 23 [20:59: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 30 4F 00 00 00 00 AD 47 00 A0 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 30 10 04 04 00 54 FB 03 00 F4 03 04 00 28 0A C2 66 B6 04 01 00 00 C3 A0 8A 85 03 A7 3D 06 [20:59:59]CommunicateWithHost err = 0 [20:59:59]CheckOFDResponse [20:59:59]1017 (14) - 77093643461234 [20:59:59]1041 (16) - 0000000000871820 [20:59:59]1040 (4) - 260948 [20:59:59]1012 (4) - 18.08.2024 14:50 [20:59:59]1206 (1) - 0 [20:59:59]OFD Sender: Remove packet 260948 [20:59:59]ProducePacketName [20:59:59]name=ofd_packets/00260948 [20:59:59]NVStorageDeleteData [20:59:59]Write to MH i2c: 01 00 00 C0 CE 8E [20:59:59]Write i2c OK [20:59:59]MH_I2C_Read... [20:59:59]Read from MH i2c: 01 [20:59:59]MH_I2C_Read... [20:59:59]Read from MH i2c: 01 07 00 [20:59:59]MH_I2C_Read... [20:59:59]Read from MH i2c: 01 07 00 C0 CE 00 00 00 00 00 71 0C 12 [20:59:59]RasterBufferAndPrint [20:59:59]line [20:59:59]line [20:59:59]line [20:59:59]line [20:59:59]line [20:59:59]written 0, free lines is 3188 [20:59:59]MH_Cut [20:59:59]Write to MH i2c: D1 01 00 C7 CE 01 67 [20:59:59]Write i2c OK [20:59:59]MH_I2C_Read... [20:59:59]Read from MH i2c: D1 [20:59:59]MH_I2C_Read... [20:59:59]Read from MH i2c: D1 01 00 [20:59:59]MH_I2C_Read... [20:59:59]Read from MH i2c: D1 01 00 C7 CE 00 66 [20:59:59]Write to MH i2c: 01 00 00 C8 CE 96 [20:59:59]Write i2c OK [20:59:59]MH_I2C_Read... [21:00:00]OFD Sender: No OFD packet to send [21:00:01]*** Cut start [21:00:01]*** Purtial cut [21:00:01]*** Stage 1: CUTSNS_PIN = 1 [21:00:03]Read from MH i2c: 01 [21:00:03]MH_I2C_Read... [21:00:03]*** Stop cut motor [21:00:03]*** Cut end [21:00:03]Read from MH i2c: 01 07 00 [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: 01 07 00 C8 CE 00 00 00 00 00 FF 0F AB [21:00:03]process_action close_receipt done [21:00:03]requested_data is exist [21:00:03]produce_requested_data [21:00:03]requested_item fm.sn is exist - process it [21:00:03]wFMCommunicate request_size=4 [21:00:03]MH_SAM_APDU [21:00:03]CAPDU: 80 11 00 00 [21:00:03]Write to MH i2c: E2 08 00 C9 CE 80 11 00 00 00 00 00 00 11 [21:00:03]Write i2c OK [21:00:03]MH_I2C_Read... [21:00:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:03]Read from MH i2c: E2 [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: E2 17 00 [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: E2 17 00 C9 CE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 5E [21:00:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:00:03]wFMCommunicate OK [21:00:03]requested_item fd.num is exist - process it [21:00:03]SAM_PROTO_GetFieldsCounters [21:00:03]wFMCommunicate request_size=4 [21:00:03]MH_SAM_APDU [21:00:03]CAPDU: 80 13 00 00 [21:00:03]Write to MH i2c: E2 08 00 CA CE 80 13 00 00 00 00 00 00 14 [21:00:03]Write i2c OK [21:00:03]MH_I2C_Read... [21:00:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:00:03]Read from MH i2c: E2 [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: E2 62 00 [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: E2 62 00 CA CE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 54 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 FA 01 00 00 5E 04 04 00 FA 01 00 00 57 04 04 00 FB 01 00 00 19 04 04 00 00 00 00 00 90 00 38 [21:00: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 54 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 FA 01 00 00 5E 04 04 00 FA 01 00 00 57 04 04 00 FB 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:00:03]wFMCommunicate OK [21:00:03]SAM_PROTO_GetFieldsCounters done [21:00:03]requested_item shift.num is exist - process it [21:00:03]requested_item shift.opened is exist - process it [21:00:03]req_shift_opened [21:00:03]FM_GetShiftState [21:00:03]SAM_PROTO_GetShiftState [21:00:03]wFMCommunicate request_size=4 [21:00:03]MH_SAM_APDU [21:00:03]CAPDU: 80 13 01 00 [21:00:03]Write to MH i2c: E2 08 00 CB CE 80 13 01 00 00 00 00 00 16 [21:00:03]Write i2c OK [21:00:03]MH_I2C_Read... [21:00:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:03]Read from MH i2c: E2 [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: E2 0E 00 [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: E2 0E 00 CB CE 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 53 [21:00:03]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:00:03]wFMCommunicate OK [21:00:03]SAM_PROTO_GetShiftState done [21:00:03]FM_GetShiftState done [21:00:03]req_shift_opened done [21:00:03]requested_item shift.open_date is exist - process it [21:00:03]req_shift_open_date [21:00:03]req_shift_open_date done [21:00:03]produce_requested_data done [21:00:03]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260948,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [21:00:03]process_action_free close_receipt [21:00:03]json_value_free [21:00:03]json_value_free done [21:00:03]process_json_proto returns [21:00:03]Send response to host [21:00:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260948,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [21:00:03]free response buf [21:00:03]execute_script done [21:00:03]execute_script returns [21:00:03]free content buf [21:00:03]Sock 9.Close socket [21:00:03]Sock 9.Thread stoped [21:00:05]OFD Sender: No OFD packet to send [21:00:10]OFD Sender: No OFD packet to send [21:00:15]OFD Sender: No OFD packet to send [21:00:20]OFD Sender: No OFD packet to send [21:00:25]OFD Sender: No OFD packet to send [21:00:30]OFD Sender: No OFD packet to send [21:00:35]OFD Sender: No OFD packet to send [21:00:40]OFD Sender: No OFD packet to send [21:00:45]OFD Sender: No OFD packet to send [21:00:50]OFD Sender: No OFD packet to send [21:00:55]OFD Sender: No OFD packet to send [21:01:00]OFD Sender: No OFD packet to send [21:01:05]OFD Sender: No OFD packet to send [21:01:10]OFD Sender: No OFD packet to send [21:01:15]OFD Sender: No OFD packet to send [21:01:18]accept exits with 7 [21:01:18]New connection [21:01:18]New thread 3066617188 created [21:01:18]Thread 3066473828 joined [21:01:18]Waiting for new connection... [21:01:18] Sock 7.Parse request [21:01:18]Sock 7.Check first char [21:01:18]Sock 7.First char is OK [21:01:18]request: POST /json_proto HTTP/1.0 [21:01:18]Method: POST [21:01:18]URL: /json_proto [21:01:18]Method is POST - this is cgi request [21:01:18]url: /json_proto [21:01:18]query_string will be loaded in cgi processing [21:01:18]execute_cgi json_proto POST (null) [21:01:18]execute_cgi path=json_proto method=POST [21:01:18]POST find Content-Length [21:01:18]Host: 172.17.55.133:8080 [21:01:18]Content-Length: 678 [21:01:18]Content-Type: application/json [21:01:18] [21:01:18]POST finish read [21:01:18]Found Content-Length = 678 [21:01:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036502", "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" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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" ] } } [21:01:18]execute_script... [21:01: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)1036502", "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" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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" ] } } [21:01:18]POST & json_proto [21:01:18]process_json_proto [21:01:18]json parsed OK: [21:01:18]protocol is kg_v1.0 [21:01:18]action value=close_receipt [21:01:18]process_action close_receipt [21:01:18]cmd_close_receipt [21:01:18]MH_GetDate [21:01:18]Write to MH i2c: F0 00 00 CC CE 89 [21:01:18]Write i2c OK [21:01:18]MH_I2C_Read... [21:01:18]Read from MH i2c: F0 [21:01:18]MH_I2C_Read... [21:01:18]Read from MH i2c: F0 09 00 [21:01:18]MH_I2C_Read... [21:01:18]Read from MH i2c: F0 09 00 CC CE 00 25 61 C2 66 34 48 D8 65 F9 [21:01:18]GetLastDocTimeStamp 1724014804 [21:01:18]current date 1724014885 [21:01:18]FM_GetShiftState [21:01:18]SAM_PROTO_GetShiftState [21:01:18]wFMCommunicate request_size=4 [21:01:18]MH_SAM_APDU [21:01:18]CAPDU: 80 13 01 00 [21:01:18]Write to MH i2c: E2 08 00 CD CE 80 13 01 00 00 00 00 00 18 [21:01:18]Write i2c OK [21:01:18]MH_I2C_Read... [21:01:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:18]Read from MH i2c: E2 [21:01:18]MH_I2C_Read... [21:01:18]Read from MH i2c: E2 0E 00 [21:01:18]MH_I2C_Read... [21:01:18]Read from MH i2c: E2 0E 00 CD CE 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 55 [21:01:18]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:01:18]wFMCommunicate OK [21:01:18]SAM_PROTO_GetShiftState done [21:01:18]FM_GetShiftState done [21:01:18]opened in 1723940556 [21:01:18]opened+sec_in_day 1724026956 [21:01:18]quantity*price = 60027 [21:01:18]sum+1 = 60029 [21:01:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 507 18.08.2024 21:01 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260949 ФПД: 280152218433742 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T210125&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260949&fm=280152218433742&tin=02508201610067®Number=0000000000091865&sum=60000 [21:01:20]StoreToDocumentArchive [21:01:20]shift 449 fd 260949 [21:01:20]save to /storage/0449/doc_00260949 [21:01:20]save last doc name /storage/0449/doc_00260949 to /storage/kkm_last_doc_name [21:01:20]save OK [21:01:20]Clear old archive folders... [21:01:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:01:20]tlvbuf is 004514B0 [21:01:20]SAM_PROTO_ClearQueue [21:01:20]wFMCommunicate request_size=4 [21:01:20]MH_SAM_APDU [21:01:20]CAPDU: 80 09 00 00 [21:01:20]Write to MH i2c: E2 08 00 DA CE 80 09 00 00 00 00 00 00 1A [21:01:20]Write i2c OK [21:01:20]MH_I2C_Read... [21:01:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:01:20]Read from MH i2c: E2 [21:01:20]MH_I2C_Read... [21:01:20]Read from MH i2c: E2 03 00 [21:01:20]MH_I2C_Read... [21:01:20]Read from MH i2c: E2 03 00 DA CE 00 90 00 1C [21:01:20]RAPDU: 90 00 [21:01:20]wFMCommunicate OK [21:01:20]SAM_PROTO_ClearQueue done [21:01:20]KKMCreateOFDPacket [21:01:20]OFDProtocolAddRootSTLVToBuf [21:01:20]FM_MakeSignedData [21:01:20]FM_MakeSignedData [21:01:20]SAM_PROTO_SignData [21:01:20]wFMCommunicate request_size=4 [21:01:20]MH_SAM_APDU [21:01:20]CAPDU: 80 0D 01 02 [21:01:20]Write to MH i2c: E2 08 00 DB CE 80 0D 01 02 00 00 00 00 22 [21:01:20]Write i2c OK [21:01:20]MH_I2C_Read... [21:01:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:01:20]Read from MH i2c: E2 [21:01:20]MH_I2C_Read... [21:01:20]Read from MH i2c: E2 03 00 [21:01:20]MH_I2C_Read... [21:01:20]Read from MH i2c: E2 03 00 DB CE 00 90 00 1D [21:01:20]RAPDU: 90 00 [21:01:20]wFMCommunicate OK [21:01:20]wFMCommunicate request_size=255 [21:01:20]MH_SAM_APDU [21:01: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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 FB 01 00 00 F4 03 04 00 25 61 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 55 FB 03 00 35 04 06 00 FE [21:01:20]Write to MH i2c: E2 02 01 DC CE 80 0D 02 02 FA 00 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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 FB 01 00 00 F4 03 04 00 25 61 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 55 FB 03 00 35 04 06 00 FE 00 00 CA [21:01:20]Write i2c OK [21:01:20]MH_I2C_Read... [21:01:20]OFD Sender: No OFD packet to send [21:01:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:20]Read from MH i2c: E2 [21:01:20]MH_I2C_Read... [21:01:20]Read from MH i2c: E2 03 00 [21:01:20]MH_I2C_Read... [21:01:20]Read from MH i2c: E2 03 00 DC CE 00 90 00 1E [21:01:20]RAPDU: 90 00 [21:01:20]wFMCommunicate OK [21:01:20]wFMCommunicate request_size=10 [21:01:20]MH_SAM_APDU [21:01:20]CAPDU: 80 0D 02 02 05 CC 05 76 78 CE [21:01:20]Write to MH i2c: E2 0D 00 DD CE 80 0D 02 02 05 00 CC 05 76 78 CE 00 00 BC [21:01:20]Write i2c OK [21:01:20]MH_I2C_Read... [21:01:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:20]Read from MH i2c: E2 [21:01:20]MH_I2C_Read... [21:01:20]Read from MH i2c: E2 03 00 [21:01:20]MH_I2C_Read... [21:01:20]Read from MH i2c: E2 03 00 DD CE 00 90 00 1F [21:01:20]RAPDU: 90 00 [21:01:20]wFMCommunicate OK [21:01:20]wFMCommunicate request_size=4 [21:01:20]MH_SAM_APDU [21:01:20]CAPDU: 80 0D 03 02 [21:01:20]Write to MH i2c: E2 08 00 DE CE 80 0D 03 02 00 00 00 00 27 [21:01:20]Write i2c OK [21:01:20]MH_I2C_Read... [21:01:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:01:20]Read from MH i2c: E2 [21:01:20]MH_I2C_Read... [21:01:20]Read from MH i2c: E2 0B 00 [21:01:20]MH_I2C_Read... [21:01:20]Read from MH i2c: E2 0B 00 DE CE 00 DD 4E D3 1F 4E F3 9B DB 90 00 FC [21:01:20]RAPDU: DD 4E D3 1F 4E F3 9B DB 90 00 [21:01:20]wFMCommunicate OK [21:01:20]SAM_PROTO_SignData done [21:01:20]FM_MakeSignedData done [21:01:20]CreateOFDProtocolMessage [21:01:20]wFMCommunicate request_size=4 [21:01:20]MH_SAM_APDU [21:01:20]CAPDU: 80 11 00 00 [21:01:20]Write to MH i2c: E2 08 00 DF CE 80 11 00 00 00 00 00 00 27 [21:01:20]Write i2c OK [21:01:20]MH_I2C_Read... [21:01:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:20]Read from MH i2c: E2 [21:01:20]MH_I2C_Read... [21:01:20]Read from MH i2c: E2 17 00 [21:01:20]MH_I2C_Read... [21:01:20]Read from MH i2c: E2 17 00 DF CE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 74 [21:01:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:01:20]wFMCommunicate OK [21:01:20]CreateOFDProtocolMessage done [21:01:20]OFDSenderStorePacket 260949 [21:01:20]StoreOFDPacket docnum=260949 [21:01:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 FC 1A 07 01 C3 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 FB 01 00 00 F4 03 04 00 25 61 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 55 FB 03 00 35 04 06 00 FE CC 05 76 78 CE DD 4E D3 1F 4E F3 9B DB [21:01:20]CheckFolder [21:01:20]dirname=/storage/ofd_packets [21:01:20]CheckFolder done [21:01:20]ProducePacketName [21:01:20]name=ofd_packets/00260949 [21:01:20]NVStorageSaveData ofd_packets/00260949 [21:01:20]File name is /storage/ofd_packets/00260949 [21:01:20]Write 301 bytes [21:01:20]NVStorageSaveData done [21:01:20]OFDSenderStorePacket done [21:01:20]KKMCreateOFDPacket done [21:01:20]NVStorageSaveData kkm_last_timestamp [21:01:20]File name is /storage/kkm_last_timestamp [21:01:20]Write 4 bytes [21:01:20]NVStorageSaveData done [21:01:20]ExternCall_PrintAddStr [21:01:20]wPrintStart [21:01:20]Write to MH i2c: 01 00 00 E0 CE AE [21:01:20]Write i2c OK [21:01:20]MH_I2C_Read... [21:01:20]Read from MH i2c: 01 [21:01:20]MH_I2C_Read... [21:01:20]Read from MH i2c: 01 07 00 [21:01:20]MH_I2C_Read... [21:01:20]Read from MH i2c: 01 07 00 E0 CE 00 00 00 00 00 FF 0F C3 [21:01:20]RasterBufferAndPrint [21:01:20]line Счет N : (1)1036502 [21:01:20]line ИНН: 02508201610067 [21:01:20]line Контрольно-Кассовый Чек [21:01:20]line ПРОДАЖА [21:01:20]line ТРК (МРК, ГНК) : 13 [21:01:20]line Товар: 2710124500 [21:01:20]line Аи-95-К-5 [21:01:20]line 8.090 * 74.20 [21:01:20]line = 600.28 [21:01:20]line НДС 12% НСП 1% [21:01:20]line > о реализуемом товаре [21:01:20]line ОКРУГЛЕНИЕ: -0.28 [21:01:20]line ИТОГО: 600.00 [21:01:20]line Внесено: 600.00 [21:01:20]line СДАЧА: 0.00 [21:01:20]line НСП 1% : 5.31 [21:01:20]line НДС 12% : 63.75 [21:01:20]line Наличными: 600.00 [21:01:20]line Безнал.: 0.00 [21:01:20]line Место: АЗС № 94 "Партнер Нефть" [21:01:20]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [21:01:20]line СНО: Общий режим [21:01:20]line Чек 507 18.08.2024 21:01 [21:01:20]line Смена: 449 ФФД: 1.0 [21:01:20]line ЗНМ: 0300000099 [21:01:20]line РНМ: 0000000000091865 [21:01:20]line Версия ККМ: 001 [21:01:20]line ФМ: 0000000000871820 [21:01:20]line ФД: 260949 [21:01:20]line ФПД: 280152218433742 [21:01:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T210125&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260949&fm=280152218433742&tin=02508201610067®Number=0000000000091865&sum=60000 [21:01:20]OFD Sender: Processing packet 260949 [packets to send 192, broken 191] [21:01:20]ProducePacketName [21:01:20]name=ofd_packets/00260949 [21:01:20]OFD Sender: To server: pG, [21:01:20]CommunicateWithHost lk.salyk.kg:30040 [21:01:20]ConnectInit lk.salyk.kg [21:01:20]written 0, free lines is 4095 [21:01:21]Connected sock=11 [21:01: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 30 0F 01 00 00 FC 1A 07 01 C3 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 FB 01 00 00 F4 03 04 00 25 61 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 55 FB 03 00 35 04 06 00 FE CC 05 76 78 CE DD 4E D3 1F 4E F3 9B DB [21:01: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 30 4F 00 00 00 23 30 47 00 84 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 30 10 04 04 00 55 FB 03 00 F4 03 04 00 79 0A C2 66 B6 04 01 00 00 BC A9 D6 AB 23 EC 4E CC [21:01:21]CommunicateWithHost err = 0 [21:01:21]CheckOFDResponse [21:01:21]1017 (14) - 77093643461234 [21:01:21]1041 (16) - 0000000000871820 [21:01:21]1040 (4) - 260949 [21:01:21]1012 (4) - 18.08.2024 14:51 [21:01:21]1206 (1) - 0 [21:01:21]OFD Sender: Remove packet 260949 [21:01:21]ProducePacketName [21:01:21]name=ofd_packets/00260949 [21:01:21]NVStorageDeleteData [21:01:21]Write to MH i2c: 01 00 00 0B CF DA [21:01:21]Write i2c OK [21:01:21]MH_I2C_Read... [21:01:21]Read from MH i2c: 01 [21:01:21]MH_I2C_Read... [21:01:21]Read from MH i2c: 01 07 00 [21:01:21]MH_I2C_Read... [21:01:21]Read from MH i2c: 01 07 00 0B CF 00 00 00 00 00 74 0C 61 [21:01:21]RasterBufferAndPrint [21:01:21]line [21:01:21]line [21:01:21]line [21:01:21]line [21:01:21]line [21:01:21]written 0, free lines is 3190 [21:01:21]MH_Cut [21:01:21]Write to MH i2c: D1 01 00 12 CF 01 B3 [21:01:21]Write i2c OK [21:01:21]MH_I2C_Read... [21:01:21]Read from MH i2c: D1 [21:01:21]MH_I2C_Read... [21:01:21]Read from MH i2c: D1 01 00 [21:01:21]MH_I2C_Read... [21:01:21]Read from MH i2c: D1 01 00 12 CF 00 B2 [21:01:21]Write to MH i2c: 01 00 00 13 CF E2 [21:01:21]Write i2c OK [21:01:21]MH_I2C_Read... [21:01:21]OFD Sender: No OFD packet to send [21:01:22]*** Cut start [21:01:22]*** Purtial cut [21:01:22]*** Stage 1: CUTSNS_PIN = 1 [21:01:24]Read from MH i2c: 01 [21:01:24]MH_I2C_Read... [21:01:24]*** Stop cut motor [21:01:24]*** Cut end [21:01:24]Read from MH i2c: 01 07 00 [21:01:24]MH_I2C_Read... [21:01:24]Read from MH i2c: 01 07 00 13 CF 00 00 00 00 00 FF 0F F7 [21:01:24]process_action close_receipt done [21:01:24]requested_data is exist [21:01:24]produce_requested_data [21:01:24]requested_item fm.sn is exist - process it [21:01:24]wFMCommunicate request_size=4 [21:01:24]MH_SAM_APDU [21:01:24]CAPDU: 80 11 00 00 [21:01:24]Write to MH i2c: E2 08 00 14 CF 80 11 00 00 00 00 00 00 5D [21:01:24]Write i2c OK [21:01:24]MH_I2C_Read... [21:01:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:24]Read from MH i2c: E2 [21:01:24]MH_I2C_Read... [21:01:24]Read from MH i2c: E2 17 00 [21:01:24]MH_I2C_Read... [21:01:24]Read from MH i2c: E2 17 00 14 CF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 AA [21:01:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:01:24]wFMCommunicate OK [21:01:24]requested_item fd.num is exist - process it [21:01:24]SAM_PROTO_GetFieldsCounters [21:01:24]wFMCommunicate request_size=4 [21:01:24]MH_SAM_APDU [21:01:24]CAPDU: 80 13 00 00 [21:01:24]Write to MH i2c: E2 08 00 15 CF 80 13 00 00 00 00 00 00 60 [21:01:24]Write i2c OK [21:01:24]MH_I2C_Read... [21:01:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:01:24]Read from MH i2c: E2 [21:01:24]MH_I2C_Read... [21:01:24]Read from MH i2c: E2 62 00 [21:01:24]MH_I2C_Read... [21:01:24]Read from MH i2c: E2 62 00 15 CF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 55 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 FB 01 00 00 5E 04 04 00 FB 01 00 00 57 04 04 00 FC 01 00 00 19 04 04 00 00 00 00 00 90 00 88 [21:01: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 55 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 FB 01 00 00 5E 04 04 00 FB 01 00 00 57 04 04 00 FC 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:01:24]wFMCommunicate OK [21:01:24]SAM_PROTO_GetFieldsCounters done [21:01:24]requested_item shift.num is exist - process it [21:01:24]requested_item shift.opened is exist - process it [21:01:24]req_shift_opened [21:01:24]FM_GetShiftState [21:01:24]SAM_PROTO_GetShiftState [21:01:24]wFMCommunicate request_size=4 [21:01:24]MH_SAM_APDU [21:01:24]CAPDU: 80 13 01 00 [21:01:24]Write to MH i2c: E2 08 00 16 CF 80 13 01 00 00 00 00 00 62 [21:01:24]Write i2c OK [21:01:24]MH_I2C_Read... [21:01:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:24]Read from MH i2c: E2 [21:01:24]MH_I2C_Read... [21:01:24]Read from MH i2c: E2 0E 00 [21:01:24]MH_I2C_Read... [21:01:24]Read from MH i2c: E2 0E 00 16 CF 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 9F [21:01:24]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:01:24]wFMCommunicate OK [21:01:24]SAM_PROTO_GetShiftState done [21:01:24]FM_GetShiftState done [21:01:24]req_shift_opened done [21:01:24]requested_item shift.open_date is exist - process it [21:01:24]req_shift_open_date [21:01:24]req_shift_open_date done [21:01:24]produce_requested_data done [21:01:24]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260949,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [21:01:24]process_action_free close_receipt [21:01:24]json_value_free [21:01:24]json_value_free done [21:01:24]process_json_proto returns [21:01:24]Send response to host [21:01:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260949,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [21:01:24]free response buf [21:01:24]execute_script done [21:01:24]execute_script returns [21:01:24]free content buf [21:01:24]Sock 7.Close socket [21:01:24]Sock 7.Thread stoped [21:01:26]OFD Sender: No OFD packet to send [21:01:31]OFD Sender: No OFD packet to send [21:01:36]OFD Sender: No OFD packet to send [21:01:41]OFD Sender: No OFD packet to send [21:01:46]OFD Sender: No OFD packet to send [21:01:51]OFD Sender: No OFD packet to send [21:01:56]OFD Sender: No OFD packet to send [21:02:01]OFD Sender: No OFD packet to send [21:02:06]OFD Sender: No OFD packet to send [21:02:11]OFD Sender: No OFD packet to send [21:02:16]OFD Sender: No OFD packet to send [21:02:21]OFD Sender: No OFD packet to send [21:02:26]OFD Sender: No OFD packet to send [21:02:31]OFD Sender: No OFD packet to send [21:02:36]OFD Sender: No OFD packet to send [21:02:41]OFD Sender: No OFD packet to send [21:02:46]OFD Sender: No OFD packet to send [21:02:51]OFD Sender: No OFD packet to send [21:02:56]OFD Sender: No OFD packet to send [21:03:01]OFD Sender: No OFD packet to send [21:03:06]OFD Sender: No OFD packet to send [21:03:11]OFD Sender: No OFD packet to send [21:03:16]OFD Sender: No OFD packet to send [21:03:21]OFD Sender: No OFD packet to send [21:03:26]OFD Sender: No OFD packet to send [21:03:31]OFD Sender: No OFD packet to send [21:03:36]OFD Sender: No OFD packet to send [21:03:41]OFD Sender: No OFD packet to send [21:03:46]OFD Sender: No OFD packet to send [21:03:51]OFD Sender: No OFD packet to send [21:03:56]OFD Sender: No OFD packet to send [21:04:01]OFD Sender: No OFD packet to send [21:04:07]OFD Sender: No OFD packet to send [21:04:12]OFD Sender: No OFD packet to send [21:04:17]OFD Sender: No OFD packet to send [21:04:22]OFD Sender: No OFD packet to send [21:04:27]OFD Sender: No OFD packet to send [21:04:32]OFD Sender: No OFD packet to send [21:04:33]accept exits with 9 [21:04:33]New connection [21:04:33]New thread 3066473828 created [21:04:33]Thread 3066617188 joined [21:04:33]Waiting for new connection... [21:04:33] Sock 9.Parse request [21:04:33]Sock 9.Check first char [21:04:33]Sock 9.First char is OK [21:04:33]request: POST /json_proto HTTP/1.0 [21:04:33]Method: POST [21:04:33]URL: /json_proto [21:04:33]Method is POST - this is cgi request [21:04:33]url: /json_proto [21:04:33]query_string will be loaded in cgi processing [21:04:33]execute_cgi json_proto POST (null) [21:04:33]execute_cgi path=json_proto method=POST [21:04:33]POST find Content-Length [21:04:33]Host: 172.17.55.133:8080 [21:04:33]Content-Length: 804 [21:04:33]Content-Type: application/json [21:04:33] [21:04:33]POST finish read [21:04:33]Found Content-Length = 804 [21:04:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:33]execute_script... [21:04: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)1036503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:33]POST & json_proto [21:04:33]process_json_proto [21:04:33]json parsed OK: [21:04:33]protocol is kg_v1.0 [21:04:33]action value=close_receipt [21:04:33]process_action close_receipt [21:04:33]cmd_close_receipt [21:04:33]MH_GetDate [21:04:33]Write to MH i2c: F0 00 00 17 CF D5 [21:04:33]Write i2c OK [21:04:33]MH_I2C_Read... [21:04:33]Read from MH i2c: F0 [21:04:33]MH_I2C_Read... [21:04:33]Read from MH i2c: F0 09 00 [21:04:33]MH_I2C_Read... [21:04:33]Read from MH i2c: F0 09 00 17 CF 00 E8 61 C2 66 34 48 D8 65 08 [21:04:33]GetLastDocTimeStamp 1724014885 [21:04:33]current date 1724015080 [21:04:33]FM_GetShiftState [21:04:33]SAM_PROTO_GetShiftState [21:04:33]wFMCommunicate request_size=4 [21:04:33]MH_SAM_APDU [21:04:33]CAPDU: 80 13 01 00 [21:04:33]Write to MH i2c: E2 08 00 18 CF 80 13 01 00 00 00 00 00 64 [21:04:33]Write i2c OK [21:04:33]MH_I2C_Read... [21:04:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:33]Read from MH i2c: E2 [21:04:33]MH_I2C_Read... [21:04:33]Read from MH i2c: E2 0E 00 [21:04:33]MH_I2C_Read... [21:04:33]Read from MH i2c: E2 0E 00 18 CF 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A1 [21:04:33]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:04:33]wFMCommunicate OK [21:04:33]SAM_PROTO_GetShiftState done [21:04:33]FM_GetShiftState done [21:04:33]opened in 1723940556 [21:04:33]opened+sec_in_day 1724026956 [21:04:33]quantity*price = 100005 [21:04:33]sum+1 = 100006 [21:04:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 508 18.08.2024 21:04 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260950 ФПД: 19008420650914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T210440&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260950&fm=19008420650914&tin=02508201610067®Number=0000000000091865&sum=100005 [21:04:34]StoreToDocumentArchive [21:04:34]shift 449 fd 260950 [21:04:34]save to /storage/0449/doc_00260950 [21:04:34]save last doc name /storage/0449/doc_00260950 to /storage/kkm_last_doc_name [21:04:34]save OK [21:04:34]Clear old archive folders... [21:04:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:04:34]tlvbuf is 006B93C0 [21:04:34]SAM_PROTO_ClearQueue [21:04:34]wFMCommunicate request_size=4 [21:04:34]MH_SAM_APDU [21:04:34]CAPDU: 80 09 00 00 [21:04:34]Write to MH i2c: E2 08 00 25 CF 80 09 00 00 00 00 00 00 66 [21:04:34]Write i2c OK [21:04:34]MH_I2C_Read... [21:04:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:04:34]Read from MH i2c: E2 [21:04:34]MH_I2C_Read... [21:04:34]Read from MH i2c: E2 03 00 [21:04:34]MH_I2C_Read... [21:04:34]Read from MH i2c: E2 03 00 25 CF 00 90 00 68 [21:04:34]RAPDU: 90 00 [21:04:34]wFMCommunicate OK [21:04:34]SAM_PROTO_ClearQueue done [21:04:34]KKMCreateOFDPacket [21:04:34]OFDProtocolAddRootSTLVToBuf [21:04:34]FM_MakeSignedData [21:04:34]FM_MakeSignedData [21:04:34]SAM_PROTO_SignData [21:04:34]wFMCommunicate request_size=4 [21:04:34]MH_SAM_APDU [21:04:34]CAPDU: 80 0D 01 02 [21:04:34]Write to MH i2c: E2 08 00 26 CF 80 0D 01 02 00 00 00 00 6E [21:04:34]Write i2c OK [21:04:34]MH_I2C_Read... [21:04:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:04:34]Read from MH i2c: E2 [21:04:34]MH_I2C_Read... [21:04:34]Read from MH i2c: E2 03 00 [21:04:34]MH_I2C_Read... [21:04:34]Read from MH i2c: E2 03 00 26 CF 00 90 00 69 [21:04:34]RAPDU: 90 00 [21:04:34]wFMCommunicate OK [21:04:34]wFMCommunicate request_size=255 [21:04:34]MH_SAM_APDU [21:04:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 01 00 00 F4 03 04 00 E8 61 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 56 FB 03 00 35 04 06 00 11 [21:04:34]Write to MH i2c: E2 02 01 27 CF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 01 00 00 F4 03 04 00 E8 61 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 56 FB 03 00 35 04 06 00 11 00 00 19 [21:04:34]Write i2c OK [21:04:34]MH_I2C_Read... [21:04:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:34]Read from MH i2c: E2 [21:04:34]MH_I2C_Read... [21:04:34]Read from MH i2c: E2 03 00 [21:04:34]MH_I2C_Read... [21:04:34]Read from MH i2c: E2 03 00 27 CF 00 90 00 6A [21:04:34]RAPDU: 90 00 [21:04:34]wFMCommunicate OK [21:04:34]wFMCommunicate request_size=10 [21:04:34]MH_SAM_APDU [21:04:34]CAPDU: 80 0D 02 02 05 49 BE 29 1F A2 [21:04:34]Write to MH i2c: E2 0D 00 28 CF 80 0D 02 02 05 00 49 BE 29 1F A2 00 00 6C [21:04:34]Write i2c OK [21:04:34]MH_I2C_Read... [21:04:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:34]Read from MH i2c: E2 [21:04:34]MH_I2C_Read... [21:04:34]Read from MH i2c: E2 03 00 [21:04:34]MH_I2C_Read... [21:04:34]Read from MH i2c: E2 03 00 28 CF 00 90 00 6B [21:04:34]RAPDU: 90 00 [21:04:34]wFMCommunicate OK [21:04:34]wFMCommunicate request_size=4 [21:04:34]MH_SAM_APDU [21:04:34]CAPDU: 80 0D 03 02 [21:04:34]Write to MH i2c: E2 08 00 29 CF 80 0D 03 02 00 00 00 00 73 [21:04:34]Write i2c OK [21:04:34]MH_I2C_Read... [21:04:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:04:35]Read from MH i2c: E2 [21:04:35]MH_I2C_Read... [21:04:35]Read from MH i2c: E2 0B 00 [21:04:35]MH_I2C_Read... [21:04:35]Read from MH i2c: E2 0B 00 29 CF 00 FB FA 71 2E A4 17 D5 80 90 00 18 [21:04:35]RAPDU: FB FA 71 2E A4 17 D5 80 90 00 [21:04:35]wFMCommunicate OK [21:04:35]SAM_PROTO_SignData done [21:04:35]FM_MakeSignedData done [21:04:35]CreateOFDProtocolMessage [21:04:35]wFMCommunicate request_size=4 [21:04:35]MH_SAM_APDU [21:04:35]CAPDU: 80 11 00 00 [21:04:35]Write to MH i2c: E2 08 00 2A CF 80 11 00 00 00 00 00 00 73 [21:04:35]Write i2c OK [21:04:35]MH_I2C_Read... [21:04:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:35]Read from MH i2c: E2 [21:04:35]MH_I2C_Read... [21:04:35]Read from MH i2c: E2 17 00 [21:04:35]MH_I2C_Read... [21:04:35]Read from MH i2c: E2 17 00 2A CF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C0 [21:04:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:04:35]wFMCommunicate OK [21:04:35]CreateOFDProtocolMessage done [21:04:35]OFDSenderStorePacket 260950 [21:04:35]StoreOFDPacket docnum=260950 [21:04:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 E4 BF 07 01 69 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 01 00 00 F4 03 04 00 E8 61 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 56 FB 03 00 35 04 06 00 11 49 BE 29 1F A2 FB FA 71 2E A4 17 D5 80 [21:04:35]CheckFolder [21:04:35]dirname=/storage/ofd_packets [21:04:35]CheckFolder done [21:04:35]ProducePacketName [21:04:35]name=ofd_packets/00260950 [21:04:35]NVStorageSaveData ofd_packets/00260950 [21:04:35]File name is /storage/ofd_packets/00260950 [21:04:35]Write 301 bytes [21:04:35]NVStorageSaveData done [21:04:35]OFDSenderStorePacket done [21:04:35]KKMCreateOFDPacket done [21:04:35]NVStorageSaveData kkm_last_timestamp [21:04:35]File name is /storage/kkm_last_timestamp [21:04:35]Write 4 bytes [21:04:35]NVStorageSaveData done [21:04:35]ExternCall_PrintAddStr [21:04:35]wPrintStart [21:04:35]Write to MH i2c: 01 00 00 2B CF FA [21:04:35]Write i2c OK [21:04:35]MH_I2C_Read... [21:04:35]Read from MH i2c: 01 [21:04:35]MH_I2C_Read... [21:04:35]Read from MH i2c: 01 07 00 [21:04:35]MH_I2C_Read... [21:04:35]Read from MH i2c: 01 07 00 2B CF 00 00 00 00 00 FF 0F 0F [21:04:35]RasterBufferAndPrint [21:04:35]line Счет N : (1)1036503 [21:04:35]line ИНН: 02508201610067 [21:04:35]line Контрольно-Кассовый Чек [21:04:35]line ПРОДАЖА [21:04:35]line ТРК (МРК, ГНК) : 22 [21:04:35]line Товар: 2710124130 [21:04:35]line Аи-92-К-5 [21:04:35]line 14.750 * 67.80 [21:04:35]line = 1000.05 [21:04:35]line НДС 12% НСП 1% [21:04:35]line > о реализуемом товаре [21:04:35]line ИТОГО: 1000.05 [21:04:35]line НСП 1% : 8.85 [21:04:35]line НДС 12% : 106.20 [21:04:35]line Наличными: 0.00 [21:04:35]line Безнал.: 1000.05 [21:04:35]line Место: АЗС № 94 "Партнер Нефть" [21:04:35]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [21:04:35]line СНО: Общий режим [21:04:35]line Чек 508 18.08.2024 21:04 [21:04:35]line Смена: 449 ФФД: 1.0 [21:04:35]line ЗНМ: 0300000099 [21:04:35]line РНМ: 0000000000091865 [21:04:35]line Версия ККМ: 001 [21:04:35]line Платежная система: O! деньги [21:04:35]line ФМ: 0000000000871820 [21:04:35]line ФД: 260950 [21:04:35]line ФПД: 19008420650914 [21:04:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T210440&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260950&fm=19008420650914&tin=02508201610067®Number=0000000000091865&sum=100005 [21:04:35]written 0, free lines is 4095 [21:04:35]OFD Sender: Processing packet 260950 [packets to send 192, broken 191] [21:04:35]ProducePacketName [21:04:35]name=ofd_packets/00260950 [21:04:35]OFD Sender: To server: pG, [21:04:35]CommunicateWithHost lk.salyk.kg:30040 [21:04:35]ConnectInit lk.salyk.kg [21:04:35]Connected sock=10 [21:04: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 30 0F 01 00 00 E4 BF 07 01 69 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 01 00 00 F4 03 04 00 E8 61 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 56 FB 03 00 35 04 06 00 11 49 BE 29 1F A2 FB FA 71 2E A4 17 D5 80 [21:04:35]Write to MH i2c: 01 00 00 55 CF 24 [21:04:35]Write i2c OK [21:04:35]MH_I2C_Read... [21:04:35]Read from MH i2c: 01 [21:04:35]MH_I2C_Read... [21:04:35]Read from MH i2c: 01 07 00 [21:04:35]MH_I2C_Read... [21:04:35]Read from MH i2c: 01 07 00 55 CF 00 00 00 00 00 8B 0C C2 [21:04:35]RasterBufferAndPrint [21:04:35]line [21:04:35]line [21:04:35]line [21:04:35]line [21:04:35]line [21:04:35]written 0, free lines is 3215 [21:04:35]MH_Cut [21:04:35]Write to MH i2c: D1 01 00 5C CF 01 FD [21:04:35]Write i2c OK [21:04:35]MH_I2C_Read... [21:04:35]Read from MH i2c: D1 [21:04:35]MH_I2C_Read... [21:04:35]Read from MH i2c: D1 01 00 [21:04:35]MH_I2C_Read... [21:04:35]Read from MH i2c: D1 01 00 5C CF 00 FC [21:04:35]Write to MH i2c: 01 00 00 5D CF 2C [21:04:35]Write i2c OK [21:04:35]MH_I2C_Read... [21:04: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 30 4F 00 00 00 2C 3A 47 00 42 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 30 10 04 04 00 56 FB 03 00 F4 03 04 00 3C 0B C2 66 B6 04 01 00 00 4C D5 1F 08 C0 EC B7 95 [21:04:35]CommunicateWithHost err = 0 [21:04:35]CheckOFDResponse [21:04:35]1017 (14) - 77093643461234 [21:04:35]1041 (16) - 0000000000871820 [21:04:35]1040 (4) - 260950 [21:04:35]1012 (4) - 18.08.2024 14:54 [21:04:35]1206 (1) - 0 [21:04:35]OFD Sender: Remove packet 260950 [21:04:35]ProducePacketName [21:04:35]name=ofd_packets/00260950 [21:04:35]NVStorageDeleteData [21:04:36]OFD Sender: No OFD packet to send [21:04:36]*** Cut start [21:04:36]*** Purtial cut [21:04:36]*** Stage 1: CUTSNS_PIN = 1 [21:04:38]Read from MH i2c: 01 [21:04:38]MH_I2C_Read... [21:04:38]*** Stop cut motor [21:04:38]*** Cut end [21:04:38]Read from MH i2c: 01 07 00 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: 01 07 00 5D CF 00 00 00 00 00 FF 0F 41 [21:04:38]process_action close_receipt done [21:04:38]requested_data is exist [21:04:38]produce_requested_data [21:04:38]requested_item fm.sn is exist - process it [21:04:38]wFMCommunicate request_size=4 [21:04:38]MH_SAM_APDU [21:04:38]CAPDU: 80 11 00 00 [21:04:38]Write to MH i2c: E2 08 00 5E CF 80 11 00 00 00 00 00 00 A7 [21:04:38]Write i2c OK [21:04:38]MH_I2C_Read... [21:04:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:38]Read from MH i2c: E2 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: E2 17 00 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: E2 17 00 5E CF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F4 [21:04:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:04:38]wFMCommunicate OK [21:04:38]requested_item fd.num is exist - process it [21:04:38]SAM_PROTO_GetFieldsCounters [21:04:38]wFMCommunicate request_size=4 [21:04:38]MH_SAM_APDU [21:04:38]CAPDU: 80 13 00 00 [21:04:38]Write to MH i2c: E2 08 00 5F CF 80 13 00 00 00 00 00 00 AA [21:04:38]Write i2c OK [21:04:38]MH_I2C_Read... [21:04:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:04:38]Read from MH i2c: E2 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: E2 62 00 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: E2 62 00 5F CF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 56 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 FC 01 00 00 5E 04 04 00 FC 01 00 00 57 04 04 00 FD 01 00 00 19 04 04 00 00 00 00 00 90 00 D6 [21:04: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 56 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 FC 01 00 00 5E 04 04 00 FC 01 00 00 57 04 04 00 FD 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:04:38]wFMCommunicate OK [21:04:38]SAM_PROTO_GetFieldsCounters done [21:04:38]requested_item shift.num is exist - process it [21:04:38]requested_item shift.opened is exist - process it [21:04:38]req_shift_opened [21:04:38]FM_GetShiftState [21:04:38]SAM_PROTO_GetShiftState [21:04:38]wFMCommunicate request_size=4 [21:04:38]MH_SAM_APDU [21:04:38]CAPDU: 80 13 01 00 [21:04:38]Write to MH i2c: E2 08 00 60 CF 80 13 01 00 00 00 00 00 AC [21:04:38]Write i2c OK [21:04:38]MH_I2C_Read... [21:04:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:38]Read from MH i2c: E2 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: E2 0E 00 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: E2 0E 00 60 CF 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E9 [21:04:38]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:04:38]wFMCommunicate OK [21:04:38]SAM_PROTO_GetShiftState done [21:04:38]FM_GetShiftState done [21:04:38]req_shift_opened done [21:04:38]requested_item shift.open_date is exist - process it [21:04:38]req_shift_open_date [21:04:38]req_shift_open_date done [21:04:38]produce_requested_data done [21:04:38]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260950,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [21:04:38]process_action_free close_receipt [21:04:38]json_value_free [21:04:38]json_value_free done [21:04:38]process_json_proto returns [21:04:38]Send response to host [21:04:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260950,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [21:04:38]free response buf [21:04:38]execute_script done [21:04:38]execute_script returns [21:04:38]free content buf [21:04:38]Sock 9.Close socket [21:04:38]Sock 9.Thread stoped [21:04:41]OFD Sender: No OFD packet to send [21:04:46]OFD Sender: No OFD packet to send [21:04:51]OFD Sender: No OFD packet to send [21:04:56]OFD Sender: No OFD packet to send [21:05:01]OFD Sender: No OFD packet to send [21:05:06]OFD Sender: No OFD packet to send [21:05:11]OFD Sender: No OFD packet to send [21:05:16]OFD Sender: No OFD packet to send [21:05:21]OFD Sender: No OFD packet to send [21:05:26]OFD Sender: No OFD packet to send [21:05:31]OFD Sender: No OFD packet to send [21:05:36]OFD Sender: No OFD packet to send [21:05:41]OFD Sender: No OFD packet to send [21:05:42]int [21:05:42]Write to MH i2c: 01 00 00 61 CF 30 [21:05:42]*** FLAG_PRN_PAP1 set [21:05:42]Write i2c OK [21:05:42]MH_I2C_Read... [21:05:42]Read from MH i2c: 01 [21:05:42]MH_I2C_Read... [21:05:42]Read from MH i2c: 01 07 00 [21:05:42]MH_I2C_Read... [21:05:42]Read from MH i2c: 01 07 00 61 CF 00 01 00 00 00 FF 0F 46 [21:05:42]state=0 [21:05:42]No paper [21:05:42]int [21:05:42]Write to MH i2c: 01 00 00 62 CF 31 [21:05:42]*** FLAG_PRN_PAP2 set [21:05:42]Write i2c OK [21:05:42]MH_I2C_Read... [21:05:42]Read from MH i2c: 01 [21:05:42]MH_I2C_Read... [21:05:42]Read from MH i2c: 01 07 00 [21:05:42]MH_I2C_Read... [21:05:42]Read from MH i2c: 01 07 00 62 CF 00 03 00 00 00 FF 0F 49 [21:05:42]state=0 [21:05:42]No paper [21:05:42]Cover opened [21:05:46]OFD Sender: No OFD packet to send [21:05:47]Write to MH i2c: 01 00 00 63 CF 32 [21:05:47]Write i2c OK [21:05:47]MH_I2C_Read... [21:05:47]Read from MH i2c: 01 [21:05:47]MH_I2C_Read... [21:05:47]Read from MH i2c: 01 07 00 [21:05:47]MH_I2C_Read... [21:05:47]Read from MH i2c: 01 07 00 63 CF 00 03 00 00 00 FF 0F 4A [21:05:47]state=3 [21:05:47]No paper [21:05:47]Cover opened [21:05:51]OFD Sender: No OFD packet to send [21:05:52]Write to MH i2c: 01 00 00 64 CF 33 [21:05:52]Write i2c OK [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: 01 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: 01 07 00 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: 01 07 00 64 CF 00 03 00 00 00 FF 0F 4B [21:05:52]state=3 [21:05:52]No paper [21:05:52]Cover opened [21:05:56]OFD Sender: No OFD packet to send [21:05:57]Write to MH i2c: 01 00 00 65 CF 34 [21:05:57]Write i2c OK [21:05:57]MH_I2C_Read... [21:05:57]Read from MH i2c: 01 [21:05:57]MH_I2C_Read... [21:05:57]Read from MH i2c: 01 07 00 [21:05:57]MH_I2C_Read... [21:05:57]Read from MH i2c: 01 07 00 65 CF 00 03 00 00 00 FF 0F 4C [21:05:57]state=3 [21:05:57]No paper [21:05:57]Cover opened [21:05:59]int [21:05:59]Write to MH i2c: 01 00 00 66 CF 35 [21:05:59]*** FLAG_PRN_PAP1 reset [21:05:59]Write i2c OK [21:05:59]MH_I2C_Read... [21:05:59]Read from MH i2c: 01 [21:05:59]MH_I2C_Read... [21:05:59]*** FLAG_PRN_PAP2 reset [21:05:59]Read from MH i2c: 01 07 00 [21:05:59]MH_I2C_Read... [21:05:59]Read from MH i2c: 01 07 00 66 CF 00 00 00 00 00 FF 0F 4A [21:05:59]state=3 [21:05:59]Cover closed [21:06:01]OFD Sender: No OFD packet to send [21:06:06]OFD Sender: No OFD packet to send [21:06:11]OFD Sender: No OFD packet to send [21:06:16]OFD Sender: No OFD packet to send [21:06:21]OFD Sender: No OFD packet to send [21:06:26]OFD Sender: No OFD packet to send [21:06:31]OFD Sender: No OFD packet to send [21:06:36]OFD Sender: No OFD packet to send [21:06:41]OFD Sender: No OFD packet to send [21:06:46]OFD Sender: No OFD packet to send [21:06:51]OFD Sender: No OFD packet to send [21:06:56]OFD Sender: No OFD packet to send [21:07:01]OFD Sender: No OFD packet to send [21:07:06]OFD Sender: No OFD packet to send [21:07:11]OFD Sender: No OFD packet to send [21:07:16]OFD Sender: No OFD packet to send [21:07:21]OFD Sender: No OFD packet to send [21:07:26]OFD Sender: No OFD packet to send [21:07:31]OFD Sender: No OFD packet to send [21:07:36]OFD Sender: No OFD packet to send [21:07:41]OFD Sender: No OFD packet to send [21:07:46]OFD Sender: No OFD packet to send [21:07:51]OFD Sender: No OFD packet to send [21:07:56]OFD Sender: No OFD packet to send [21:08:01]OFD Sender: No OFD packet to send [21:08:06]OFD Sender: No OFD packet to send [21:08:11]OFD Sender: No OFD packet to send [21:08:16]OFD Sender: No OFD packet to send [21:08:21]OFD Sender: No OFD packet to send [21:08:26]OFD Sender: No OFD packet to send [21:08:31]OFD Sender: No OFD packet to send [21:08:36]OFD Sender: No OFD packet to send [21:08:41]OFD Sender: No OFD packet to send [21:08:46]OFD Sender: No OFD packet to send [21:08:51]OFD Sender: No OFD packet to send [21:08:56]OFD Sender: No OFD packet to send [21:09:01]OFD Sender: No OFD packet to send [21:09:06]OFD Sender: No OFD packet to send [21:09:11]OFD Sender: No OFD packet to send [21:09:16]OFD Sender: No OFD packet to send [21:09:21]OFD Sender: No OFD packet to send [21:09:26]OFD Sender: No OFD packet to send [21:09:31]OFD Sender: No OFD packet to send [21:09:36]OFD Sender: No OFD packet to send [21:09:41]OFD Sender: No OFD packet to send [21:09:46]OFD Sender: No OFD packet to send [21:09:51]OFD Sender: No OFD packet to send [21:09:56]OFD Sender: No OFD packet to send [21:10:01]OFD Sender: No OFD packet to send [21:10:06]OFD Sender: No OFD packet to send [21:10:11]OFD Sender: No OFD packet to send [21:10:16]OFD Sender: No OFD packet to send [21:10:21]OFD Sender: No OFD packet to send [21:10:26]OFD Sender: No OFD packet to send [21:10:31]OFD Sender: No OFD packet to send [21:10:36]OFD Sender: No OFD packet to send [21:10:41]OFD Sender: No OFD packet to send [21:10:46]OFD Sender: No OFD packet to send [21:10:51]accept exits with 7 [21:10:51]New connection [21:10:51]New thread 3066617188 created [21:10:51]Thread 3066473828 joined [21:10:51]Waiting for new connection... [21:10:51] Sock 7.Parse request [21:10:51]Sock 7.Check first char [21:10:51]Sock 7.First char is OK [21:10:51]request: POST /json_proto HTTP/1.0 [21:10:51]Method: POST [21:10:51]URL: /json_proto [21:10:51]Method is POST - this is cgi request [21:10:51]url: /json_proto [21:10:51]query_string will be loaded in cgi processing [21:10:51]execute_cgi json_proto POST (null) [21:10:51]execute_cgi path=json_proto method=POST [21:10:51]POST find Content-Length [21:10:51]Host: 172.17.55.133:8080 [21:10:51]Content-Length: 678 [21:10:51]Content-Type: application/json [21:10:51] [21:10:51]POST finish read [21:10:51]Found Content-Length = 678 [21:10:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.530, "sum" : 510.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 510.00, "total" : 510.00, "payments": [ { "type": 0, "sum" : 510.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:51]execute_script... [21:10: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)1036504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.530, "sum" : 510.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 510.00, "total" : 510.00, "payments": [ { "type": 0, "sum" : 510.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:51]POST & json_proto [21:10:51]process_json_proto [21:10:51]json parsed OK: [21:10:51]protocol is kg_v1.0 [21:10:51]action value=close_receipt [21:10:51]process_action close_receipt [21:10:51]cmd_close_receipt [21:10:51]MH_GetDate [21:10:51]Write to MH i2c: F0 00 00 67 CF 25 [21:10:51]OFD Sender: No OFD packet to send [21:10:51]Write i2c OK [21:10:51]MH_I2C_Read... [21:10:51]Read from MH i2c: F0 [21:10:51]MH_I2C_Read... [21:10:51]Read from MH i2c: F0 09 00 [21:10:51]MH_I2C_Read... [21:10:51]Read from MH i2c: F0 09 00 67 CF 00 62 63 C2 66 34 48 D8 65 D4 [21:10:51]GetLastDocTimeStamp 1724015080 [21:10:51]current date 1724015458 [21:10:51]FM_GetShiftState [21:10:51]SAM_PROTO_GetShiftState [21:10:51]wFMCommunicate request_size=4 [21:10:51]MH_SAM_APDU [21:10:51]CAPDU: 80 13 01 00 [21:10:51]Write to MH i2c: E2 08 00 68 CF 80 13 01 00 00 00 00 00 B4 [21:10:51]Write i2c OK [21:10:51]MH_I2C_Read... [21:10:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:51]Read from MH i2c: E2 [21:10:51]MH_I2C_Read... [21:10:51]Read from MH i2c: E2 0E 00 [21:10:51]MH_I2C_Read... [21:10:51]Read from MH i2c: E2 0E 00 68 CF 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F1 [21:10:51]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:10:51]wFMCommunicate OK [21:10:51]SAM_PROTO_GetShiftState done [21:10:51]FM_GetShiftState done [21:10:51]opened in 1723940556 [21:10:51]opened+sec_in_day 1724026956 [21:10:51]quantity*price = 51053 [21:10:51]sum+1 = 51054 [21:10:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 510.00 Внесено: 510.00 СДАЧА: 0.00 НСП 1% : 4.52 НДС 12% : 54.22 Наличными: 510.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 509 18.08.2024 21:10 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260951 ФПД: 148608453747334 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T211058&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260951&fm=148608453747334&tin=02508201610067®Number=0000000000091865&sum=51000 [21:10:52]StoreToDocumentArchive [21:10:52]shift 449 fd 260951 [21:10:52]save to /storage/0449/doc_00260951 [21:10:52]save last doc name /storage/0449/doc_00260951 to /storage/kkm_last_doc_name [21:10:52]save OK [21:10:52]Clear old archive folders... [21:10:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:10:52]tlvbuf is 005C0E20 [21:10:52]SAM_PROTO_ClearQueue [21:10:52]wFMCommunicate request_size=4 [21:10:52]MH_SAM_APDU [21:10:52]CAPDU: 80 09 00 00 [21:10:52]Write to MH i2c: E2 08 00 75 CF 80 09 00 00 00 00 00 00 B6 [21:10:52]Write i2c OK [21:10:52]MH_I2C_Read... [21:10:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:10:52]Read from MH i2c: E2 [21:10:52]MH_I2C_Read... [21:10:52]Read from MH i2c: E2 03 00 [21:10:52]MH_I2C_Read... [21:10:52]Read from MH i2c: E2 03 00 75 CF 00 90 00 B8 [21:10:52]RAPDU: 90 00 [21:10:52]wFMCommunicate OK [21:10:52]SAM_PROTO_ClearQueue done [21:10:52]KKMCreateOFDPacket [21:10:52]OFDProtocolAddRootSTLVToBuf [21:10:52]FM_MakeSignedData [21:10:52]FM_MakeSignedData [21:10:52]SAM_PROTO_SignData [21:10:52]wFMCommunicate request_size=4 [21:10:52]MH_SAM_APDU [21:10:52]CAPDU: 80 0D 01 02 [21:10:52]Write to MH i2c: E2 08 00 76 CF 80 0D 01 02 00 00 00 00 BE [21:10:52]Write i2c OK [21:10:52]MH_I2C_Read... [21:10:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:10:53]Read from MH i2c: E2 [21:10:53]MH_I2C_Read... [21:10:53]Read from MH i2c: E2 03 00 [21:10:53]MH_I2C_Read... [21:10:53]Read from MH i2c: E2 03 00 76 CF 00 90 00 B9 [21:10:53]RAPDU: 90 00 [21:10:53]wFMCommunicate OK [21:10:53]wFMCommunicate request_size=255 [21:10:53]MH_SAM_APDU [21:10:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 1D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6D C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 01 00 00 F4 03 04 00 62 63 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 57 FB 03 00 35 04 06 00 87 [21:10:53]Write to MH i2c: E2 02 01 77 CF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 1D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6D C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 01 00 00 F4 03 04 00 62 63 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 57 FB 03 00 35 04 06 00 87 00 00 A6 [21:10:53]Write i2c OK [21:10:53]MH_I2C_Read... [21:10:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:53]Read from MH i2c: E2 [21:10:53]MH_I2C_Read... [21:10:53]Read from MH i2c: E2 03 00 [21:10:53]MH_I2C_Read... [21:10:53]Read from MH i2c: E2 03 00 77 CF 00 90 00 BA [21:10:53]RAPDU: 90 00 [21:10:53]wFMCommunicate OK [21:10:53]wFMCommunicate request_size=10 [21:10:53]MH_SAM_APDU [21:10:53]CAPDU: 80 0D 02 02 05 28 9A 18 A2 86 [21:10:53]Write to MH i2c: E2 0D 00 78 CF 80 0D 02 02 05 00 28 9A 18 A2 86 00 00 CD [21:10:53]Write i2c OK [21:10:53]MH_I2C_Read... [21:10:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:53]Read from MH i2c: E2 [21:10:53]MH_I2C_Read... [21:10:53]Read from MH i2c: E2 03 00 [21:10:53]MH_I2C_Read... [21:10:53]Read from MH i2c: E2 03 00 78 CF 00 90 00 BB [21:10:53]RAPDU: 90 00 [21:10:53]wFMCommunicate OK [21:10:53]wFMCommunicate request_size=4 [21:10:53]MH_SAM_APDU [21:10:53]CAPDU: 80 0D 03 02 [21:10:53]Write to MH i2c: E2 08 00 79 CF 80 0D 03 02 00 00 00 00 C3 [21:10:53]Write i2c OK [21:10:53]MH_I2C_Read... [21:10:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:10:53]Read from MH i2c: E2 [21:10:53]MH_I2C_Read... [21:10:53]Read from MH i2c: E2 0B 00 [21:10:53]MH_I2C_Read... [21:10:53]Read from MH i2c: E2 0B 00 79 CF 00 F5 61 7A CF 5A C4 A6 AC 90 00 D3 [21:10:53]RAPDU: F5 61 7A CF 5A C4 A6 AC 90 00 [21:10:53]wFMCommunicate OK [21:10:53]SAM_PROTO_SignData done [21:10:53]FM_MakeSignedData done [21:10:53]CreateOFDProtocolMessage [21:10:53]wFMCommunicate request_size=4 [21:10:53]MH_SAM_APDU [21:10:53]CAPDU: 80 11 00 00 [21:10:53]Write to MH i2c: E2 08 00 7A CF 80 11 00 00 00 00 00 00 C3 [21:10:53]Write i2c OK [21:10:53]MH_I2C_Read... [21:10:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:53]Read from MH i2c: E2 [21:10:53]MH_I2C_Read... [21:10:53]Read from MH i2c: E2 17 00 [21:10:53]MH_I2C_Read... [21:10:53]Read from MH i2c: E2 17 00 7A CF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 10 [21:10:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:10:53]wFMCommunicate OK [21:10:53]CreateOFDProtocolMessage done [21:10:53]OFDSenderStorePacket 260951 [21:10:53]StoreOFDPacket docnum=260951 [21:10:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 9B 6A 07 01 B9 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 1D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6D C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 01 00 00 F4 03 04 00 62 63 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 57 FB 03 00 35 04 06 00 87 28 9A 18 A2 86 F5 61 7A CF 5A C4 A6 AC [21:10:53]CheckFolder [21:10:53]dirname=/storage/ofd_packets [21:10:53]CheckFolder done [21:10:53]ProducePacketName [21:10:53]name=ofd_packets/00260951 [21:10:53]NVStorageSaveData ofd_packets/00260951 [21:10:53]File name is /storage/ofd_packets/00260951 [21:10:53]Write 301 bytes [21:10:53]NVStorageSaveData done [21:10:53]OFDSenderStorePacket done [21:10:53]KKMCreateOFDPacket done [21:10:53]NVStorageSaveData kkm_last_timestamp [21:10:53]File name is /storage/kkm_last_timestamp [21:10:53]Write 4 bytes [21:10:53]NVStorageSaveData done [21:10:53]ExternCall_PrintAddStr [21:10:53]wPrintStart [21:10:53]Write to MH i2c: 01 00 00 7B CF 4A [21:10:53]Write i2c OK [21:10:53]MH_I2C_Read... [21:10:53]Read from MH i2c: 01 [21:10:53]MH_I2C_Read... [21:10:53]Read from MH i2c: 01 07 00 [21:10:53]MH_I2C_Read... [21:10:53]Read from MH i2c: 01 07 00 7B CF 00 00 00 00 00 FF 0F 5F [21:10:53]RasterBufferAndPrint [21:10:53]line Счет N : (1)1036504 [21:10:53]line ИНН: 02508201610067 [21:10:53]line Контрольно-Кассовый Чек [21:10:53]line ПРОДАЖА [21:10:53]line ТРК (МРК, ГНК) : 12 [21:10:53]line Товар: 2710124130 [21:10:53]line Аи-92-К-5 [21:10:53]line 7.530 * 67.80 [21:10:53]line = 510.53 [21:10:53]line НДС 12% НСП 1% [21:10:53]line > о реализуемом товаре [21:10:53]line ОКРУГЛЕНИЕ: -0.53 [21:10:53]line ИТОГО: 510.00 [21:10:53]line Внесено: 510.00 [21:10:53]line СДАЧА: 0.00 [21:10:53]line НСП 1% : 4.52 [21:10:53]line НДС 12% : 54.22 [21:10:53]line Наличными: 510.00 [21:10:53]line Безнал.: 0.00 [21:10:53]line Место: АЗС № 94 "Партнер Нефть" [21:10:53]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [21:10:53]line СНО: Общий режим [21:10:53]line Чек 509 18.08.2024 21:10 [21:10:53]line Смена: 449 ФФД: 1.0 [21:10:53]line ЗНМ: 0300000099 [21:10:53]line РНМ: 0000000000091865 [21:10:53]line Версия ККМ: 001 [21:10:53]line ФМ: 0000000000871820 [21:10:53]line ФД: 260951 [21:10:53]line ФПД: 148608453747334 [21:10:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T211058&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260951&fm=148608453747334&tin=02508201610067®Number=0000000000091865&sum=51000 [21:10:53]written 0, free lines is 4095 [21:10:53]OFD Sender: Processing packet 260951 [packets to send 192, broken 191] [21:10:53]ProducePacketName [21:10:53]name=ofd_packets/00260951 [21:10:53]OFD Sender: To server: pG, [21:10:53]CommunicateWithHost lk.salyk.kg:30040 [21:10:53]ConnectInit lk.salyk.kg [21:10:53]Connected sock=10 [21:10: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 30 0F 01 00 00 9B 6A 07 01 B9 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 1D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6D C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 01 00 00 F4 03 04 00 62 63 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 57 FB 03 00 35 04 06 00 87 28 9A 18 A2 86 F5 61 7A CF 5A C4 A6 AC [21:10: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 30 4F 00 00 00 2E 92 47 00 FF 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 30 10 04 04 00 57 FB 03 00 F4 03 04 00 B6 0C C2 66 B6 04 01 00 00 7F 06 A2 6B 24 DA A7 78 [21:10:53]CommunicateWithHost err = 0 [21:10:53]CheckOFDResponse [21:10:53]1017 (14) - 77093643461234 [21:10:53]1041 (16) - 0000000000871820 [21:10:53]1040 (4) - 260951 [21:10:53]1012 (4) - 18.08.2024 15:01 [21:10:53]1206 (1) - 0 [21:10:53]OFD Sender: Remove packet 260951 [21:10:53]ProducePacketName [21:10:53]name=ofd_packets/00260951 [21:10:53]NVStorageDeleteData [21:10:53]Write to MH i2c: 01 00 00 A6 CF 75 [21:10:53]Write i2c OK [21:10:53]MH_I2C_Read... [21:10:53]Read from MH i2c: 01 [21:10:53]MH_I2C_Read... [21:10:53]Read from MH i2c: 01 07 00 [21:10:53]MH_I2C_Read... [21:10:53]Read from MH i2c: 01 07 00 A6 CF 00 00 00 00 00 76 0C FE [21:10:53]RasterBufferAndPrint [21:10:53]line [21:10:53]line [21:10:53]line [21:10:53]line [21:10:53]line [21:10:53]written 0, free lines is 3193 [21:10:53]MH_Cut [21:10:53]Write to MH i2c: D1 01 00 AD CF 01 4E [21:10:53]Write i2c OK [21:10:53]MH_I2C_Read... [21:10:53]Read from MH i2c: D1 [21:10:53]MH_I2C_Read... [21:10:53]Read from MH i2c: D1 01 00 [21:10:53]MH_I2C_Read... [21:10:53]Read from MH i2c: D1 01 00 AD CF 00 4D [21:10:53]Write to MH i2c: 01 00 00 AE CF 7D [21:10:53]Write i2c OK [21:10:53]MH_I2C_Read... [21:10:54]OFD Sender: No OFD packet to send [21:10:55]*** Cut start [21:10:55]*** Purtial cut [21:10:55]*** Stage 1: CUTSNS_PIN = 1 [21:10:57]Read from MH i2c: 01 [21:10:57]MH_I2C_Read... [21:10:57]*** Stop cut motor [21:10:57]*** Cut end [21:10:57]Read from MH i2c: 01 07 00 [21:10:57]MH_I2C_Read... [21:10:57]Read from MH i2c: 01 07 00 AE CF 00 00 00 00 00 FF 0F 92 [21:10:57]process_action close_receipt done [21:10:57]requested_data is exist [21:10:57]produce_requested_data [21:10:57]requested_item fm.sn is exist - process it [21:10:57]wFMCommunicate request_size=4 [21:10:57]MH_SAM_APDU [21:10:57]CAPDU: 80 11 00 00 [21:10:57]Write to MH i2c: E2 08 00 AF CF 80 11 00 00 00 00 00 00 F8 [21:10:57]Write i2c OK [21:10:57]MH_I2C_Read... [21:10:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:57]Read from MH i2c: E2 [21:10:57]MH_I2C_Read... [21:10:57]Read from MH i2c: E2 17 00 [21:10:57]MH_I2C_Read... [21:10:57]Read from MH i2c: E2 17 00 AF CF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 45 [21:10:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:10:57]wFMCommunicate OK [21:10:57]requested_item fd.num is exist - process it [21:10:57]SAM_PROTO_GetFieldsCounters [21:10:57]wFMCommunicate request_size=4 [21:10:57]MH_SAM_APDU [21:10:57]CAPDU: 80 13 00 00 [21:10:57]Write to MH i2c: E2 08 00 B0 CF 80 13 00 00 00 00 00 00 FB [21:10:57]Write i2c OK [21:10:57]MH_I2C_Read... [21:10:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:10:57]Read from MH i2c: E2 [21:10:57]MH_I2C_Read... [21:10:57]Read from MH i2c: E2 62 00 [21:10:57]MH_I2C_Read... [21:10:57]Read from MH i2c: E2 62 00 B0 CF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 57 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 FD 01 00 00 5E 04 04 00 FD 01 00 00 57 04 04 00 FE 01 00 00 19 04 04 00 00 00 00 00 90 00 2B [21:10: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 57 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 FD 01 00 00 5E 04 04 00 FD 01 00 00 57 04 04 00 FE 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:10:57]wFMCommunicate OK [21:10:57]SAM_PROTO_GetFieldsCounters done [21:10:57]requested_item shift.num is exist - process it [21:10:57]requested_item shift.opened is exist - process it [21:10:57]req_shift_opened [21:10:57]FM_GetShiftState [21:10:57]SAM_PROTO_GetShiftState [21:10:57]wFMCommunicate request_size=4 [21:10:57]MH_SAM_APDU [21:10:57]CAPDU: 80 13 01 00 [21:10:57]Write to MH i2c: E2 08 00 B1 CF 80 13 01 00 00 00 00 00 FD [21:10:57]Write i2c OK [21:10:57]MH_I2C_Read... [21:10:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:57]Read from MH i2c: E2 [21:10:57]MH_I2C_Read... [21:10:57]Read from MH i2c: E2 0E 00 [21:10:57]MH_I2C_Read... [21:10:57]Read from MH i2c: E2 0E 00 B1 CF 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 3A [21:10:57]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:10:57]wFMCommunicate OK [21:10:57]SAM_PROTO_GetShiftState done [21:10:57]FM_GetShiftState done [21:10:57]req_shift_opened done [21:10:57]requested_item shift.open_date is exist - process it [21:10:57]req_shift_open_date [21:10:57]req_shift_open_date done [21:10:57]produce_requested_data done [21:10:57]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260951,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [21:10:57]process_action_free close_receipt [21:10:57]json_value_free [21:10:57]json_value_free done [21:10:57]process_json_proto returns [21:10:57]Send response to host [21:10:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260951,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [21:10:57]free response buf [21:10:57]execute_script done [21:10:57]execute_script returns [21:10:57]free content buf [21:10:57]Sock 7.Close socket [21:10:57]Sock 7.Thread stoped [21:10:59]OFD Sender: No OFD packet to send [21:11:04]OFD Sender: No OFD packet to send [21:11:09]OFD Sender: No OFD packet to send [21:11:14]OFD Sender: No OFD packet to send [21:11:19]OFD Sender: No OFD packet to send [21:11:24]OFD Sender: No OFD packet to send [21:11:29]OFD Sender: No OFD packet to send [21:11:34]OFD Sender: No OFD packet to send [21:11:39]OFD Sender: No OFD packet to send [21:11:44]OFD Sender: No OFD packet to send [21:11:49]OFD Sender: No OFD packet to send [21:11:54]OFD Sender: No OFD packet to send [21:11:59]OFD Sender: No OFD packet to send [21:12:04]OFD Sender: No OFD packet to send [21:12:09]OFD Sender: No OFD packet to send [21:12:14]OFD Sender: No OFD packet to send [21:12:19]OFD Sender: No OFD packet to send [21:12:24]OFD Sender: No OFD packet to send [21:12:29]OFD Sender: No OFD packet to send [21:12:34]OFD Sender: No OFD packet to send [21:12:39]OFD Sender: No OFD packet to send [21:12:44]OFD Sender: No OFD packet to send [21:12:49]OFD Sender: No OFD packet to send [21:12:54]OFD Sender: No OFD packet to send [21:12:59]OFD Sender: No OFD packet to send [21:13:04]OFD Sender: No OFD packet to send [21:13:09]OFD Sender: No OFD packet to send [21:13:14]OFD Sender: No OFD packet to send [21:13:19]OFD Sender: No OFD packet to send [21:13:24]OFD Sender: No OFD packet to send [21:13:29]OFD Sender: No OFD packet to send [21:13:34]OFD Sender: No OFD packet to send [21:13:39]OFD Sender: No OFD packet to send [21:13:44]OFD Sender: No OFD packet to send [21:13:49]OFD Sender: No OFD packet to send [21:13:54]OFD Sender: No OFD packet to send [21:13:59]OFD Sender: No OFD packet to send [21:14:04]OFD Sender: No OFD packet to send [21:14:09]OFD Sender: No OFD packet to send [21:14:14]OFD Sender: No OFD packet to send [21:14:19]OFD Sender: No OFD packet to send [21:14:24]OFD Sender: No OFD packet to send [21:14:29]OFD Sender: No OFD packet to send [21:14:34]OFD Sender: No OFD packet to send [21:14:39]OFD Sender: No OFD packet to send [21:14:44]OFD Sender: No OFD packet to send [21:14:49]OFD Sender: No OFD packet to send [21:14:54]OFD Sender: No OFD packet to send [21:14:59]OFD Sender: No OFD packet to send [21:15:04]OFD Sender: No OFD packet to send [21:15:09]OFD Sender: No OFD packet to send [21:15:14]OFD Sender: No OFD packet to send [21:15:19]OFD Sender: No OFD packet to send [21:15:24]OFD Sender: No OFD packet to send [21:15:29]OFD Sender: No OFD packet to send [21:15:31]accept exits with 9 [21:15:31]New connection [21:15:31]New thread 3066473828 created [21:15:31]Thread 3066617188 joined [21:15:31]Waiting for new connection... [21:15:31] Sock 9.Parse request [21:15:31]Sock 9.Check first char [21:15:31]Sock 9.First char is OK [21:15:31]request: POST /json_proto HTTP/1.0 [21:15:31]Method: POST [21:15:31]URL: /json_proto [21:15:31]Method is POST - this is cgi request [21:15:31]url: /json_proto [21:15:31]query_string will be loaded in cgi processing [21:15:31]execute_cgi json_proto POST (null) [21:15:31]execute_cgi path=json_proto method=POST [21:15:31]POST find Content-Length [21:15:31]Host: 172.17.55.133:8080 [21:15:31]Content-Length: 678 [21:15:31]Content-Type: application/json [21:15:31] [21:15:31]POST finish read [21:15:31]Found Content-Length = 678 [21:15:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:31]execute_script... [21:15: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)1036505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:31]POST & json_proto [21:15:31]process_json_proto [21:15:31]json parsed OK: [21:15:31]protocol is kg_v1.0 [21:15:31]action value=close_receipt [21:15:31]process_action close_receipt [21:15:31]cmd_close_receipt [21:15:31]MH_GetDate [21:15:31]Write to MH i2c: F0 00 00 B2 CF 70 [21:15:31]Write i2c OK [21:15:31]MH_I2C_Read... [21:15:31]Read from MH i2c: F0 [21:15:31]MH_I2C_Read... [21:15:31]Read from MH i2c: F0 09 00 [21:15:31]MH_I2C_Read... [21:15:31]Read from MH i2c: F0 09 00 B2 CF 00 7A 64 C2 66 34 48 D8 65 38 [21:15:31]GetLastDocTimeStamp 1724015458 [21:15:31]current date 1724015738 [21:15:31]FM_GetShiftState [21:15:31]SAM_PROTO_GetShiftState [21:15:31]wFMCommunicate request_size=4 [21:15:31]MH_SAM_APDU [21:15:31]CAPDU: 80 13 01 00 [21:15:31]Write to MH i2c: E2 08 00 B3 CF 80 13 01 00 00 00 00 00 FF [21:15:31]Write i2c OK [21:15:31]MH_I2C_Read... [21:15:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:31]Read from MH i2c: E2 [21:15:31]MH_I2C_Read... [21:15:31]Read from MH i2c: E2 0E 00 [21:15:31]MH_I2C_Read... [21:15:31]Read from MH i2c: E2 0E 00 B3 CF 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 3C [21:15:31]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:15:31]wFMCommunicate OK [21:15:31]SAM_PROTO_GetShiftState done [21:15:31]FM_GetShiftState done [21:15:31]opened in 1723940556 [21:15:31]opened+sec_in_day 1724026956 [21:15:31]quantity*price = 60003 [21:15:31]sum+1 = 60004 [21:15:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 510 18.08.2024 21:15 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260952 ФПД: 223644650256303 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T211538&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260952&fm=223644650256303&tin=02508201610067®Number=0000000000091865&sum=60000 [21:15:32]StoreToDocumentArchive [21:15:32]shift 449 fd 260952 [21:15:32]save to /storage/0449/doc_00260952 [21:15:32]save last doc name /storage/0449/doc_00260952 to /storage/kkm_last_doc_name [21:15:32]save OK [21:15:32]Clear old archive folders... [21:15:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:15:32]tlvbuf is 0057B020 [21:15:32]SAM_PROTO_ClearQueue [21:15:32]wFMCommunicate request_size=4 [21:15:32]MH_SAM_APDU [21:15:32]CAPDU: 80 09 00 00 [21:15:32]Write to MH i2c: E2 08 00 C0 CF 80 09 00 00 00 00 00 00 01 [21:15:32]Write i2c OK [21:15:32]MH_I2C_Read... [21:15:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:15:32]Read from MH i2c: E2 [21:15:32]MH_I2C_Read... [21:15:32]Read from MH i2c: E2 03 00 [21:15:32]MH_I2C_Read... [21:15:32]Read from MH i2c: E2 03 00 C0 CF 00 90 00 03 [21:15:32]RAPDU: 90 00 [21:15:32]wFMCommunicate OK [21:15:32]SAM_PROTO_ClearQueue done [21:15:32]KKMCreateOFDPacket [21:15:32]OFDProtocolAddRootSTLVToBuf [21:15:32]FM_MakeSignedData [21:15:32]FM_MakeSignedData [21:15:32]SAM_PROTO_SignData [21:15:32]wFMCommunicate request_size=4 [21:15:32]MH_SAM_APDU [21:15:32]CAPDU: 80 0D 01 02 [21:15:32]Write to MH i2c: E2 08 00 C1 CF 80 0D 01 02 00 00 00 00 09 [21:15:32]Write i2c OK [21:15:32]MH_I2C_Read... [21:15:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:15:33]Read from MH i2c: E2 [21:15:33]MH_I2C_Read... [21:15:33]Read from MH i2c: E2 03 00 [21:15:33]MH_I2C_Read... [21:15:33]Read from MH i2c: E2 03 00 C1 CF 00 90 00 04 [21:15:33]RAPDU: 90 00 [21:15:33]wFMCommunicate OK [21:15:33]wFMCommunicate request_size=255 [21:15:33]MH_SAM_APDU [21:15:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 01 00 00 F4 03 04 00 7A 64 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 58 FB 03 00 35 04 06 00 CB [21:15:33]Write to MH i2c: E2 02 01 C2 CF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 01 00 00 F4 03 04 00 7A 64 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 58 FB 03 00 35 04 06 00 CB 00 00 35 [21:15:33]Write i2c OK [21:15:33]MH_I2C_Read... [21:15:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:33]Read from MH i2c: E2 [21:15:33]MH_I2C_Read... [21:15:33]Read from MH i2c: E2 03 00 [21:15:33]MH_I2C_Read... [21:15:33]Read from MH i2c: E2 03 00 C2 CF 00 90 00 05 [21:15:33]RAPDU: 90 00 [21:15:33]wFMCommunicate OK [21:15:33]wFMCommunicate request_size=10 [21:15:33]MH_SAM_APDU [21:15:33]CAPDU: 80 0D 02 02 05 67 53 EF 37 AF [21:15:33]Write to MH i2c: E2 0D 00 C3 CF 80 0D 02 02 05 00 67 53 EF 37 AF 00 00 A5 [21:15:33]Write i2c OK [21:15:33]MH_I2C_Read... [21:15:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:33]Read from MH i2c: E2 [21:15:33]MH_I2C_Read... [21:15:33]Read from MH i2c: E2 03 00 [21:15:33]MH_I2C_Read... [21:15:33]Read from MH i2c: E2 03 00 C3 CF 00 90 00 06 [21:15:33]RAPDU: 90 00 [21:15:33]wFMCommunicate OK [21:15:33]wFMCommunicate request_size=4 [21:15:33]MH_SAM_APDU [21:15:33]CAPDU: 80 0D 03 02 [21:15:33]Write to MH i2c: E2 08 00 C4 CF 80 0D 03 02 00 00 00 00 0E [21:15:33]Write i2c OK [21:15:33]MH_I2C_Read... [21:15:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:15:33]Read from MH i2c: E2 [21:15:33]MH_I2C_Read... [21:15:33]Read from MH i2c: E2 0B 00 [21:15:33]MH_I2C_Read... [21:15:33]Read from MH i2c: E2 0B 00 C4 CF 00 3E F4 E7 33 E5 BB 95 7B 90 00 0B [21:15:33]RAPDU: 3E F4 E7 33 E5 BB 95 7B 90 00 [21:15:33]wFMCommunicate OK [21:15:33]SAM_PROTO_SignData done [21:15:33]FM_MakeSignedData done [21:15:33]CreateOFDProtocolMessage [21:15:33]wFMCommunicate request_size=4 [21:15:33]MH_SAM_APDU [21:15:33]CAPDU: 80 11 00 00 [21:15:33]Write to MH i2c: E2 08 00 C5 CF 80 11 00 00 00 00 00 00 0E [21:15:33]Write i2c OK [21:15:33]MH_I2C_Read... [21:15:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:33]Read from MH i2c: E2 [21:15:33]MH_I2C_Read... [21:15:33]Read from MH i2c: E2 17 00 [21:15:33]MH_I2C_Read... [21:15:33]Read from MH i2c: E2 17 00 C5 CF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 5B [21:15:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:15:33]wFMCommunicate OK [21:15:33]CreateOFDProtocolMessage done [21:15:33]OFDSenderStorePacket 260952 [21:15:33]StoreOFDPacket docnum=260952 [21:15:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 14 85 07 01 E7 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 01 00 00 F4 03 04 00 7A 64 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 58 FB 03 00 35 04 06 00 CB 67 53 EF 37 AF 3E F4 E7 33 E5 BB 95 7B [21:15:33]CheckFolder [21:15:33]dirname=/storage/ofd_packets [21:15:33]CheckFolder done [21:15:33]ProducePacketName [21:15:33]name=ofd_packets/00260952 [21:15:33]NVStorageSaveData ofd_packets/00260952 [21:15:33]File name is /storage/ofd_packets/00260952 [21:15:33]Write 301 bytes [21:15:33]NVStorageSaveData done [21:15:33]OFDSenderStorePacket done [21:15:33]KKMCreateOFDPacket done [21:15:33]NVStorageSaveData kkm_last_timestamp [21:15:33]File name is /storage/kkm_last_timestamp [21:15:33]Write 4 bytes [21:15:33]NVStorageSaveData done [21:15:33]ExternCall_PrintAddStr [21:15:33]wPrintStart [21:15:33]Write to MH i2c: 01 00 00 C6 CF 95 [21:15:33]Write i2c OK [21:15:33]MH_I2C_Read... [21:15:33]Read from MH i2c: 01 [21:15:33]MH_I2C_Read... [21:15:33]Read from MH i2c: 01 07 00 [21:15:33]MH_I2C_Read... [21:15:33]Read from MH i2c: 01 07 00 C6 CF 00 00 00 00 00 FF 0F AA [21:15:33]RasterBufferAndPrint [21:15:33]line Счет N : (1)1036505 [21:15:33]line ИНН: 02508201610067 [21:15:33]line Контрольно-Кассовый Чек [21:15:33]line ПРОДАЖА [21:15:33]line ТРК (МРК, ГНК) : 22 [21:15:33]line Товар: 2710124130 [21:15:33]line Аи-92-К-5 [21:15:33]line 8.850 * 67.80 [21:15:33]line = 600.03 [21:15:33]line НДС 12% НСП 1% [21:15:33]line > о реализуемом товаре [21:15:33]line ОКРУГЛЕНИЕ: -0.03 [21:15:33]line ИТОГО: 600.00 [21:15:33]line Внесено: 600.00 [21:15:33]line СДАЧА: 0.00 [21:15:33]line НСП 1% : 5.31 [21:15:33]line НДС 12% : 63.72 [21:15:33]line Наличными: 600.00 [21:15:33]line Безнал.: 0.00 [21:15:33]line Место: АЗС № 94 "Партнер Нефть" [21:15:33]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [21:15:33]line СНО: Общий режим [21:15:33]line Чек 510 18.08.2024 21:15 [21:15:33]line Смена: 449 ФФД: 1.0 [21:15:33]line ЗНМ: 0300000099 [21:15:33]line РНМ: 0000000000091865 [21:15:33]line Версия ККМ: 001 [21:15:33]line ФМ: 0000000000871820 [21:15:33]line ФД: 260952 [21:15:33]line ФПД: 223644650256303 [21:15:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T211538&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260952&fm=223644650256303&tin=02508201610067®Number=0000000000091865&sum=60000 [21:15:33]written 0, free lines is 4095 [21:15:33]OFD Sender: Processing packet 260952 [packets to send 192, broken 191] [21:15:33]ProducePacketName [21:15:33]name=ofd_packets/00260952 [21:15:33]OFD Sender: To server: pG, [21:15:33]CommunicateWithHost lk.salyk.kg:30040 [21:15:33]ConnectInit lk.salyk.kg [21:15:33]Connected sock=10 [21:15: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 30 0F 01 00 00 14 85 07 01 E7 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 01 00 00 F4 03 04 00 7A 64 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 58 FB 03 00 35 04 06 00 CB 67 53 EF 37 AF 3E F4 E7 33 E5 BB 95 7B [21:15: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 30 4F 00 00 00 9D F6 47 00 BB B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 58 FB 03 00 F4 03 04 00 CE 0D C2 66 B6 04 01 00 00 D4 9D 50 3E F2 99 F4 1F [21:15:33]CommunicateWithHost err = 0 [21:15:33]CheckOFDResponse [21:15:33]1017 (14) - 77093643461234 [21:15:33]1041 (16) - 0000000000871820 [21:15:33]1040 (4) - 260952 [21:15:33]1012 (4) - 18.08.2024 15:05 [21:15:33]1206 (1) - 0 [21:15:33]OFD Sender: Remove packet 260952 [21:15:33]ProducePacketName [21:15:33]name=ofd_packets/00260952 [21:15:33]NVStorageDeleteData [21:15:33]Write to MH i2c: 01 00 00 F1 CF C0 [21:15:33]Write i2c OK [21:15:33]MH_I2C_Read... [21:15:33]Read from MH i2c: 01 [21:15:33]MH_I2C_Read... [21:15:33]Read from MH i2c: 01 07 00 [21:15:33]MH_I2C_Read... [21:15:33]Read from MH i2c: 01 07 00 F1 CF 00 00 00 00 00 72 0C 45 [21:15:33]RasterBufferAndPrint [21:15:33]line [21:15:33]line [21:15:33]line [21:15:33]line [21:15:33]line [21:15:33]written 0, free lines is 3188 [21:15:33]MH_Cut [21:15:33]Write to MH i2c: D1 01 00 F8 CF 01 99 [21:15:33]Write i2c OK [21:15:33]MH_I2C_Read... [21:15:33]Read from MH i2c: D1 [21:15:33]MH_I2C_Read... [21:15:33]Read from MH i2c: D1 01 00 [21:15:33]MH_I2C_Read... [21:15:33]Read from MH i2c: D1 01 00 F8 CF 00 98 [21:15:33]Write to MH i2c: 01 00 00 F9 CF C8 [21:15:33]Write i2c OK [21:15:33]MH_I2C_Read... [21:15:34]OFD Sender: No OFD packet to send [21:15:35]*** Cut start [21:15:35]*** Purtial cut [21:15:35]*** Stage 1: CUTSNS_PIN = 1 [21:15:37]Read from MH i2c: 01 [21:15:37]MH_I2C_Read... [21:15:37]*** Stop cut motor [21:15:37]*** Cut end [21:15:37]Read from MH i2c: 01 07 00 [21:15:37]MH_I2C_Read... [21:15:37]Read from MH i2c: 01 07 00 F9 CF 00 00 00 00 00 FF 0F DD [21:15:37]process_action close_receipt done [21:15:37]requested_data is exist [21:15:37]produce_requested_data [21:15:37]requested_item fm.sn is exist - process it [21:15:37]wFMCommunicate request_size=4 [21:15:37]MH_SAM_APDU [21:15:37]CAPDU: 80 11 00 00 [21:15:37]Write to MH i2c: E2 08 00 FA CF 80 11 00 00 00 00 00 00 43 [21:15:37]Write i2c OK [21:15:37]MH_I2C_Read... [21:15:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:37]Read from MH i2c: E2 [21:15:37]MH_I2C_Read... [21:15:37]Read from MH i2c: E2 17 00 [21:15:37]MH_I2C_Read... [21:15:37]Read from MH i2c: E2 17 00 FA CF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 90 [21:15:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:15:37]wFMCommunicate OK [21:15:37]requested_item fd.num is exist - process it [21:15:37]SAM_PROTO_GetFieldsCounters [21:15:37]wFMCommunicate request_size=4 [21:15:37]MH_SAM_APDU [21:15:37]CAPDU: 80 13 00 00 [21:15:37]Write to MH i2c: E2 08 00 FB CF 80 13 00 00 00 00 00 00 46 [21:15:37]Write i2c OK [21:15:37]MH_I2C_Read... [21:15:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:15:37]Read from MH i2c: E2 [21:15:37]MH_I2C_Read... [21:15:37]Read from MH i2c: E2 62 00 [21:15:37]MH_I2C_Read... [21:15:37]Read from MH i2c: E2 62 00 FB CF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 58 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 FE 01 00 00 5E 04 04 00 FE 01 00 00 57 04 04 00 FF 01 00 00 19 04 04 00 00 00 00 00 90 00 7A [21:15: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 58 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 FE 01 00 00 5E 04 04 00 FE 01 00 00 57 04 04 00 FF 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:15:37]wFMCommunicate OK [21:15:37]SAM_PROTO_GetFieldsCounters done [21:15:37]requested_item shift.num is exist - process it [21:15:37]requested_item shift.opened is exist - process it [21:15:37]req_shift_opened [21:15:37]FM_GetShiftState [21:15:37]SAM_PROTO_GetShiftState [21:15:37]wFMCommunicate request_size=4 [21:15:37]MH_SAM_APDU [21:15:37]CAPDU: 80 13 01 00 [21:15:37]Write to MH i2c: E2 08 00 FC CF 80 13 01 00 00 00 00 00 48 [21:15:37]Write i2c OK [21:15:37]MH_I2C_Read... [21:15:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:37]Read from MH i2c: E2 [21:15:37]MH_I2C_Read... [21:15:37]Read from MH i2c: E2 0E 00 [21:15:37]MH_I2C_Read... [21:15:37]Read from MH i2c: E2 0E 00 FC CF 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 85 [21:15:37]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:15:37]wFMCommunicate OK [21:15:37]SAM_PROTO_GetShiftState done [21:15:37]FM_GetShiftState done [21:15:37]req_shift_opened done [21:15:37]requested_item shift.open_date is exist - process it [21:15:37]req_shift_open_date [21:15:37]req_shift_open_date done [21:15:37]produce_requested_data done [21:15:37]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260952,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [21:15:37]process_action_free close_receipt [21:15:37]json_value_free [21:15:37]json_value_free done [21:15:37]process_json_proto returns [21:15:37]Send response to host [21:15:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260952,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [21:15:37]free response buf [21:15:37]execute_script done [21:15:37]execute_script returns [21:15:37]free content buf [21:15:37]Sock 9.Close socket [21:15:37]Sock 9.Thread stoped [21:15:39]OFD Sender: No OFD packet to send [21:15:44]OFD Sender: No OFD packet to send [21:15:49]OFD Sender: No OFD packet to send [21:15:54]OFD Sender: No OFD packet to send [21:15:59]OFD Sender: No OFD packet to send [21:16:04]OFD Sender: No OFD packet to send [21:16:07]accept exits with 7 [21:16:07]New connection [21:16:07]New thread 3066617188 created [21:16:07]Thread 3066473828 joined [21:16:07]Waiting for new connection... [21:16:07] Sock 7.Parse request [21:16:07]Sock 7.Check first char [21:16:07]Sock 7.First char is OK [21:16:07]request: POST /json_proto HTTP/1.0 [21:16:07]Method: POST [21:16:07]URL: /json_proto [21:16:07]Method is POST - this is cgi request [21:16:07]url: /json_proto [21:16:07]query_string will be loaded in cgi processing [21:16:07]execute_cgi json_proto POST (null) [21:16:07]execute_cgi path=json_proto method=POST [21:16:07]POST find Content-Length [21:16:07]Host: 172.17.55.133:8080 [21:16:07]Content-Length: 678 [21:16:07]Content-Type: application/json [21:16:07] [21:16:07]POST finish read [21:16:07]Found Content-Length = 678 [21:16:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:07]execute_script... [21:16: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)1036506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:07]POST & json_proto [21:16:07]process_json_proto [21:16:07]json parsed OK: [21:16:07]protocol is kg_v1.0 [21:16:07]action value=close_receipt [21:16:07]process_action close_receipt [21:16:07]cmd_close_receipt [21:16:07]MH_GetDate [21:16:07]Write to MH i2c: F0 00 00 FD CF BB [21:16:07]Write i2c OK [21:16:07]MH_I2C_Read... [21:16:07]Read from MH i2c: F0 [21:16:07]MH_I2C_Read... [21:16:07]Read from MH i2c: F0 09 00 [21:16:07]MH_I2C_Read... [21:16:07]Read from MH i2c: F0 09 00 FD CF 00 9E 64 C2 66 34 48 D8 65 A7 [21:16:07]GetLastDocTimeStamp 1724015738 [21:16:07]current date 1724015774 [21:16:07]FM_GetShiftState [21:16:07]SAM_PROTO_GetShiftState [21:16:07]wFMCommunicate request_size=4 [21:16:07]MH_SAM_APDU [21:16:07]CAPDU: 80 13 01 00 [21:16:07]Write to MH i2c: E2 08 00 FE CF 80 13 01 00 00 00 00 00 4A [21:16:07]Write i2c OK [21:16:07]MH_I2C_Read... [21:16:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:07]Read from MH i2c: E2 [21:16:07]MH_I2C_Read... [21:16:07]Read from MH i2c: E2 0E 00 [21:16:07]MH_I2C_Read... [21:16:07]Read from MH i2c: E2 0E 00 FE CF 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 87 [21:16:07]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:16:07]wFMCommunicate OK [21:16:07]SAM_PROTO_GetShiftState done [21:16:07]FM_GetShiftState done [21:16:07]opened in 1723940556 [21:16:07]opened+sec_in_day 1724026956 [21:16:07]quantity*price = 40002 [21:16:07]sum+1 = 40003 [21:16:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 511 18.08.2024 21:16 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260953 ФПД: 79900432126959 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T211614&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260953&fm=79900432126959&tin=02508201610067®Number=0000000000091865&sum=40000 [21:16:09]StoreToDocumentArchive [21:16:09]shift 449 fd 260953 [21:16:09]save to /storage/0449/doc_00260953 [21:16:09]save last doc name /storage/0449/doc_00260953 to /storage/kkm_last_doc_name [21:16:09]save OK [21:16:09]Clear old archive folders... [21:16:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:16:09]tlvbuf is 00433390 [21:16:09]SAM_PROTO_ClearQueue [21:16:09]wFMCommunicate request_size=4 [21:16:09]MH_SAM_APDU [21:16:09]CAPDU: 80 09 00 00 [21:16:09]Write to MH i2c: E2 08 00 0B D0 80 09 00 00 00 00 00 00 4D [21:16:09]Write i2c OK [21:16:09]MH_I2C_Read... [21:16:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:16:09]Read from MH i2c: E2 [21:16:09]MH_I2C_Read... [21:16:09]Read from MH i2c: E2 03 00 [21:16:09]MH_I2C_Read... [21:16:09]Read from MH i2c: E2 03 00 0B D0 00 90 00 4F [21:16:09]RAPDU: 90 00 [21:16:09]wFMCommunicate OK [21:16:09]SAM_PROTO_ClearQueue done [21:16:09]KKMCreateOFDPacket [21:16:09]OFDProtocolAddRootSTLVToBuf [21:16:09]FM_MakeSignedData [21:16:09]FM_MakeSignedData [21:16:09]SAM_PROTO_SignData [21:16:09]wFMCommunicate request_size=4 [21:16:09]MH_SAM_APDU [21:16:09]CAPDU: 80 0D 01 02 [21:16:09]Write to MH i2c: E2 08 00 0C D0 80 0D 01 02 00 00 00 00 55 [21:16:09]Write i2c OK [21:16:09]MH_I2C_Read... [21:16:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:16:09]Read from MH i2c: E2 [21:16:09]MH_I2C_Read... [21:16:09]Read from MH i2c: E2 03 00 [21:16:09]MH_I2C_Read... [21:16:09]Read from MH i2c: E2 03 00 0C D0 00 90 00 50 [21:16:09]RAPDU: 90 00 [21:16:09]wFMCommunicate OK [21:16:09]wFMCommunicate request_size=255 [21:16:09]MH_SAM_APDU [21:16:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 01 00 00 F4 03 04 00 9E 64 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 59 FB 03 00 35 04 06 00 48 [21:16:09]Write to MH i2c: E2 02 01 0D D0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 01 00 00 F4 03 04 00 9E 64 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 59 FB 03 00 35 04 06 00 48 00 00 42 [21:16:09]Write i2c OK [21:16:09]MH_I2C_Read... [21:16:09]OFD Sender: No OFD packet to send [21:16:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:09]Read from MH i2c: E2 [21:16:09]MH_I2C_Read... [21:16:09]Read from MH i2c: E2 03 00 [21:16:09]MH_I2C_Read... [21:16:09]Read from MH i2c: E2 03 00 0D D0 00 90 00 51 [21:16:09]RAPDU: 90 00 [21:16:09]wFMCommunicate OK [21:16:09]wFMCommunicate request_size=10 [21:16:09]MH_SAM_APDU [21:16:09]CAPDU: 80 0D 02 02 05 AB 44 DF D3 EF [21:16:09]Write to MH i2c: E2 0D 00 0E D0 80 0D 02 02 05 00 AB 44 DF D3 EF 00 00 F2 [21:16:09]Write i2c OK [21:16:09]MH_I2C_Read... [21:16:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:09]Read from MH i2c: E2 [21:16:09]MH_I2C_Read... [21:16:09]Read from MH i2c: E2 03 00 [21:16:09]MH_I2C_Read... [21:16:09]Read from MH i2c: E2 03 00 0E D0 00 90 00 52 [21:16:09]RAPDU: 90 00 [21:16:09]wFMCommunicate OK [21:16:09]wFMCommunicate request_size=4 [21:16:09]MH_SAM_APDU [21:16:09]CAPDU: 80 0D 03 02 [21:16:09]Write to MH i2c: E2 08 00 0F D0 80 0D 03 02 00 00 00 00 5A [21:16:09]Write i2c OK [21:16:09]MH_I2C_Read... [21:16:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:16:09]Read from MH i2c: E2 [21:16:09]MH_I2C_Read... [21:16:09]Read from MH i2c: E2 0B 00 [21:16:09]MH_I2C_Read... [21:16:09]Read from MH i2c: E2 0B 00 0F D0 00 2E 7F DF 60 6F 16 FA 8A 90 00 50 [21:16:09]RAPDU: 2E 7F DF 60 6F 16 FA 8A 90 00 [21:16:09]wFMCommunicate OK [21:16:09]SAM_PROTO_SignData done [21:16:09]FM_MakeSignedData done [21:16:09]CreateOFDProtocolMessage [21:16:09]wFMCommunicate request_size=4 [21:16:09]MH_SAM_APDU [21:16:09]CAPDU: 80 11 00 00 [21:16:09]Write to MH i2c: E2 08 00 10 D0 80 11 00 00 00 00 00 00 5A [21:16:09]Write i2c OK [21:16:09]MH_I2C_Read... [21:16:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:09]Read from MH i2c: E2 [21:16:09]MH_I2C_Read... [21:16:09]Read from MH i2c: E2 17 00 [21:16:09]MH_I2C_Read... [21:16:09]Read from MH i2c: E2 17 00 10 D0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A7 [21:16:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:16:09]wFMCommunicate OK [21:16:09]CreateOFDProtocolMessage done [21:16:09]OFDSenderStorePacket 260953 [21:16:09]StoreOFDPacket docnum=260953 [21:16:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 8A C9 07 01 55 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 01 00 00 F4 03 04 00 9E 64 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 59 FB 03 00 35 04 06 00 48 AB 44 DF D3 EF 2E 7F DF 60 6F 16 FA 8A [21:16:09]CheckFolder [21:16:09]dirname=/storage/ofd_packets [21:16:09]CheckFolder done [21:16:09]ProducePacketName [21:16:09]name=ofd_packets/00260953 [21:16:09]NVStorageSaveData ofd_packets/00260953 [21:16:09]File name is /storage/ofd_packets/00260953 [21:16:09]Write 301 bytes [21:16:09]NVStorageSaveData done [21:16:09]OFDSenderStorePacket done [21:16:09]KKMCreateOFDPacket done [21:16:09]NVStorageSaveData kkm_last_timestamp [21:16:09]File name is /storage/kkm_last_timestamp [21:16:09]Write 4 bytes [21:16:09]NVStorageSaveData done [21:16:09]ExternCall_PrintAddStr [21:16:09]wPrintStart [21:16:09]Write to MH i2c: 01 00 00 11 D0 E1 [21:16:09]Write i2c OK [21:16:09]MH_I2C_Read... [21:16:09]Read from MH i2c: 01 [21:16:09]MH_I2C_Read... [21:16:09]Read from MH i2c: 01 07 00 [21:16:09]MH_I2C_Read... [21:16:09]Read from MH i2c: 01 07 00 11 D0 00 00 00 00 00 FF 0F F6 [21:16:09]RasterBufferAndPrint [21:16:09]line Счет N : (1)1036506 [21:16:09]line ИНН: 02508201610067 [21:16:09]line Контрольно-Кассовый Чек [21:16:09]line ПРОДАЖА [21:16:09]line ТРК (МРК, ГНК) : 42 [21:16:09]line Товар: 2710124130 [21:16:09]line Аи-92-К-5 [21:16:09]line 5.900 * 67.80 [21:16:09]line = 400.02 [21:16:09]line НДС 12% НСП 1% [21:16:09]line > о реализуемом товаре [21:16:09]line ОКРУГЛЕНИЕ: -0.02 [21:16:09]line ИТОГО: 400.00 [21:16:09]line Внесено: 400.00 [21:16:09]line СДАЧА: 0.00 [21:16:09]line НСП 1% : 3.54 [21:16:09]line НДС 12% : 42.48 [21:16:09]line Наличными: 400.00 [21:16:09]line Безнал.: 0.00 [21:16:09]line Место: АЗС № 94 "Партнер Нефть" [21:16:09]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [21:16:09]line СНО: Общий режим [21:16:09]line Чек 511 18.08.2024 21:16 [21:16:09]line Смена: 449 ФФД: 1.0 [21:16:09]line ЗНМ: 0300000099 [21:16:09]line РНМ: 0000000000091865 [21:16:09]line Версия ККМ: 001 [21:16:09]line ФМ: 0000000000871820 [21:16:09]line ФД: 260953 [21:16:09]line ФПД: 79900432126959 [21:16:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T211614&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260953&fm=79900432126959&tin=02508201610067®Number=0000000000091865&sum=40000 [21:16:09]OFD Sender: Processing packet 260953 [packets to send 192, broken 191] [21:16:09]ProducePacketName [21:16:09]name=ofd_packets/00260953 [21:16:09]OFD Sender: To server: pG, [21:16:09]CommunicateWithHost lk.salyk.kg:30040 [21:16:09]ConnectInit lk.salyk.kg [21:16:09]written 0, free lines is 4095 [21:16:09]Connected sock=10 [21:16: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 30 0F 01 00 00 8A C9 07 01 55 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 01 00 00 F4 03 04 00 9E 64 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 59 FB 03 00 35 04 06 00 48 AB 44 DF D3 EF 2E 7F DF 60 6F 16 FA 8A [21:16: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 30 4F 00 00 00 CF 98 47 00 BD 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 30 10 04 04 00 59 FB 03 00 F4 03 04 00 F2 0D C2 66 B6 04 01 00 00 0F 2D 7C 31 1D BB 12 C1 [21:16:10]CommunicateWithHost err = 0 [21:16:10]CheckOFDResponse [21:16:10]1017 (14) - 77093643461234 [21:16:10]1041 (16) - 0000000000871820 [21:16:10]1040 (4) - 260953 [21:16:10]1012 (4) - 18.08.2024 15:06 [21:16:10]1206 (1) - 0 [21:16:10]OFD Sender: Remove packet 260953 [21:16:10]ProducePacketName [21:16:10]name=ofd_packets/00260953 [21:16:10]NVStorageDeleteData [21:16:10]Write to MH i2c: 01 00 00 3C D0 0C [21:16:10]Write i2c OK [21:16:10]MH_I2C_Read... [21:16:10]Read from MH i2c: 01 [21:16:10]MH_I2C_Read... [21:16:10]Read from MH i2c: 01 07 00 [21:16:10]MH_I2C_Read... [21:16:10]Read from MH i2c: 01 07 00 3C D0 00 00 00 00 00 7E 0C 9D [21:16:10]RasterBufferAndPrint [21:16:10]line [21:16:10]line [21:16:10]line [21:16:10]line [21:16:10]line [21:16:10]written 0, free lines is 3202 [21:16:10]MH_Cut [21:16:10]Write to MH i2c: D1 01 00 43 D0 01 E5 [21:16:10]Write i2c OK [21:16:10]MH_I2C_Read... [21:16:10]Read from MH i2c: D1 [21:16:10]MH_I2C_Read... [21:16:10]Read from MH i2c: D1 01 00 [21:16:10]MH_I2C_Read... [21:16:10]Read from MH i2c: D1 01 00 43 D0 00 E4 [21:16:10]Write to MH i2c: 01 00 00 44 D0 14 [21:16:10]Write i2c OK [21:16:10]MH_I2C_Read... [21:16:10]OFD Sender: No OFD packet to send [21:16:11]*** Cut start [21:16:11]*** Purtial cut [21:16:11]*** Stage 1: CUTSNS_PIN = 1 [21:16:13]Read from MH i2c: 01 [21:16:13]MH_I2C_Read... [21:16:13]*** Stop cut motor [21:16:13]*** Cut end [21:16:13]Read from MH i2c: 01 07 00 [21:16:13]MH_I2C_Read... [21:16:13]Read from MH i2c: 01 07 00 44 D0 00 00 00 00 00 FF 0F 29 [21:16:13]process_action close_receipt done [21:16:13]requested_data is exist [21:16:13]produce_requested_data [21:16:13]requested_item fm.sn is exist - process it [21:16:13]wFMCommunicate request_size=4 [21:16:13]MH_SAM_APDU [21:16:13]CAPDU: 80 11 00 00 [21:16:13]Write to MH i2c: E2 08 00 45 D0 80 11 00 00 00 00 00 00 8F [21:16:13]Write i2c OK [21:16:13]MH_I2C_Read... [21:16:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:13]Read from MH i2c: E2 [21:16:13]MH_I2C_Read... [21:16:13]Read from MH i2c: E2 17 00 [21:16:13]MH_I2C_Read... [21:16:13]Read from MH i2c: E2 17 00 45 D0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 DC [21:16:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:16:13]wFMCommunicate OK [21:16:13]requested_item fd.num is exist - process it [21:16:13]SAM_PROTO_GetFieldsCounters [21:16:13]wFMCommunicate request_size=4 [21:16:13]MH_SAM_APDU [21:16:13]CAPDU: 80 13 00 00 [21:16:13]Write to MH i2c: E2 08 00 46 D0 80 13 00 00 00 00 00 00 92 [21:16:13]Write i2c OK [21:16:13]MH_I2C_Read... [21:16:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:16:13]Read from MH i2c: E2 [21:16:13]MH_I2C_Read... [21:16:13]Read from MH i2c: E2 62 00 [21:16:13]MH_I2C_Read... [21:16:13]Read from MH i2c: E2 62 00 46 D0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 59 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 FF 01 00 00 5E 04 04 00 FF 01 00 00 57 04 04 00 00 02 00 00 19 04 04 00 00 00 00 00 90 00 CB [21:16: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 59 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 FF 01 00 00 5E 04 04 00 FF 01 00 00 57 04 04 00 00 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:16:13]wFMCommunicate OK [21:16:13]SAM_PROTO_GetFieldsCounters done [21:16:13]requested_item shift.num is exist - process it [21:16:13]requested_item shift.opened is exist - process it [21:16:13]req_shift_opened [21:16:13]FM_GetShiftState [21:16:13]SAM_PROTO_GetShiftState [21:16:13]wFMCommunicate request_size=4 [21:16:13]MH_SAM_APDU [21:16:13]CAPDU: 80 13 01 00 [21:16:13]Write to MH i2c: E2 08 00 47 D0 80 13 01 00 00 00 00 00 94 [21:16:13]Write i2c OK [21:16:13]MH_I2C_Read... [21:16:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:13]Read from MH i2c: E2 [21:16:13]MH_I2C_Read... [21:16:13]Read from MH i2c: E2 0E 00 [21:16:13]MH_I2C_Read... [21:16:13]Read from MH i2c: E2 0E 00 47 D0 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D1 [21:16:13]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:16:13]wFMCommunicate OK [21:16:13]SAM_PROTO_GetShiftState done [21:16:13]FM_GetShiftState done [21:16:13]req_shift_opened done [21:16:13]requested_item shift.open_date is exist - process it [21:16:13]req_shift_open_date [21:16:13]req_shift_open_date done [21:16:13]produce_requested_data done [21:16:13]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260953,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [21:16:13]process_action_free close_receipt [21:16:13]json_value_free [21:16:13]json_value_free done [21:16:13]process_json_proto returns [21:16:13]Send response to host [21:16:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260953,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [21:16:13]free response buf [21:16:13]execute_script done [21:16:13]execute_script returns [21:16:13]free content buf [21:16:13]Sock 7.Close socket [21:16:13]Sock 7.Thread stoped [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:31]OFD Sender: No OFD packet to send [21:19:36]OFD Sender: No OFD packet to send [21:19:41]OFD Sender: No OFD packet to send [21:19:46]OFD Sender: No OFD packet to send [21:19:51]OFD Sender: No OFD packet to send [21:19:56]OFD Sender: No OFD packet to send [21:20:01]OFD Sender: No OFD packet to send [21:20:06]OFD Sender: No OFD packet to send [21:20:11]OFD Sender: No OFD packet to send [21:20:16]OFD Sender: No OFD packet to send [21:20:21]OFD Sender: No OFD packet to send [21:20:26]OFD Sender: No OFD packet to send [21:20:31]OFD Sender: No OFD packet to send [21:20:36]OFD Sender: No OFD packet to send [21:20:41]OFD Sender: No OFD packet to send [21:20:46]OFD Sender: No OFD packet to send [21:20:51]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:22:01]OFD Sender: No OFD packet to send [21:22:06]OFD Sender: No OFD packet to send [21:22:11]OFD Sender: No OFD packet to send [21:22:16]OFD Sender: No OFD packet to send [21:22:21]OFD Sender: No OFD packet to send [21:22:26]OFD Sender: No OFD packet to send [21:22:31]OFD Sender: No OFD packet to send [21:22:36]OFD Sender: No OFD packet to send [21:22:41]OFD Sender: No OFD packet to send [21:22:46]OFD Sender: No OFD packet to send [21:22:51]OFD Sender: No OFD packet to send [21:22:56]OFD Sender: No OFD packet to send [21:23:01]OFD Sender: No OFD packet to send [21:23:06]OFD Sender: No OFD packet to send [21:23:11]OFD Sender: No OFD packet to send [21:23:16]OFD Sender: No OFD packet to send [21:23:21]OFD Sender: No OFD packet to send [21:23:26]OFD Sender: No OFD packet to send [21:23:31]OFD Sender: No OFD packet to send [21:23:36]OFD Sender: No OFD packet to send [21:23:41]OFD Sender: No OFD packet to send [21:23:46]OFD Sender: No OFD packet to send [21:23:51]OFD Sender: No OFD packet to send [21:23:56]OFD Sender: No OFD packet to send [21:24:01]OFD Sender: No OFD packet to send [21:24:06]OFD Sender: No OFD packet to send [21:24:11]OFD Sender: No OFD packet to send [21:24:16]OFD Sender: No OFD packet to send [21:24:21]OFD Sender: No OFD packet to send [21:24:26]OFD Sender: No OFD packet to send [21:24:29]accept exits with 9 [21:24:29]New connection [21:24:29]New thread 3066473828 created [21:24:29]Thread 3066617188 joined [21:24:29]Waiting for new connection... [21:24:29] Sock 9.Parse request [21:24:29]Sock 9.Check first char [21:24:29]Sock 9.First char is OK [21:24:29]request: POST /json_proto HTTP/1.0 [21:24:29]Method: POST [21:24:29]URL: /json_proto [21:24:29]Method is POST - this is cgi request [21:24:29]url: /json_proto [21:24:29]query_string will be loaded in cgi processing [21:24:29]execute_cgi json_proto POST (null) [21:24:29]execute_cgi path=json_proto method=POST [21:24:29]POST find Content-Length [21:24:29]Host: 172.17.55.133:8080 [21:24:29]Content-Length: 683 [21:24:29]Content-Type: application/json [21:24:29] [21:24:29]POST finish read [21:24:29]Found Content-Length = 683 [21:24:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036508", "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" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:29]execute_script... [21:24: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)1036508", "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" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:29]POST & json_proto [21:24:29]process_json_proto [21:24:29]json parsed OK: [21:24:29]protocol is kg_v1.0 [21:24:29]action value=close_receipt [21:24:29]process_action close_receipt [21:24:29]cmd_close_receipt [21:24:29]MH_GetDate [21:24:29]Write to MH i2c: F0 00 00 48 D0 07 [21:24:29]Write i2c OK [21:24:29]MH_I2C_Read... [21:24:29]Read from MH i2c: F0 [21:24:29]MH_I2C_Read... [21:24:29]Read from MH i2c: F0 09 00 [21:24:29]MH_I2C_Read... [21:24:29]Read from MH i2c: F0 09 00 48 D0 00 94 66 C2 66 34 48 D8 65 EB [21:24:29]GetLastDocTimeStamp 1724015774 [21:24:29]current date 1724016276 [21:24:29]FM_GetShiftState [21:24:29]SAM_PROTO_GetShiftState [21:24:29]wFMCommunicate request_size=4 [21:24:29]MH_SAM_APDU [21:24:29]CAPDU: 80 13 01 00 [21:24:29]Write to MH i2c: E2 08 00 49 D0 80 13 01 00 00 00 00 00 96 [21:24:29]Write i2c OK [21:24:29]MH_I2C_Read... [21:24:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:29]Read from MH i2c: E2 [21:24:29]MH_I2C_Read... [21:24:29]Read from MH i2c: E2 0E 00 [21:24:29]MH_I2C_Read... [21:24:29]Read from MH i2c: E2 0E 00 49 D0 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D3 [21:24:29]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:24:29]wFMCommunicate OK [21:24:29]SAM_PROTO_GetShiftState done [21:24:29]FM_GetShiftState done [21:24:29]opened in 1723940556 [21:24:29]opened+sec_in_day 1724026956 [21:24:29]quantity*price = 200043 [21:24:29]sum+1 = 200044 [21:24:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 512 18.08.2024 21:24 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260954 ФПД: 176647582669514 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T212436&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260954&fm=176647582669514&tin=02508201610067®Number=0000000000091865&sum=200000 [21:24:30]StoreToDocumentArchive [21:24:30]shift 449 fd 260954 [21:24:30]save to /storage/0449/doc_00260954 [21:24:30]save last doc name /storage/0449/doc_00260954 to /storage/kkm_last_doc_name [21:24:30]save OK [21:24:30]Clear old archive folders... [21:24:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:24:30]tlvbuf is 003E93B0 [21:24:30]SAM_PROTO_ClearQueue [21:24:30]wFMCommunicate request_size=4 [21:24:30]MH_SAM_APDU [21:24:30]CAPDU: 80 09 00 00 [21:24:30]Write to MH i2c: E2 08 00 56 D0 80 09 00 00 00 00 00 00 98 [21:24:30]Write i2c OK [21:24:30]MH_I2C_Read... [21:24:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:24:30]Read from MH i2c: E2 [21:24:30]MH_I2C_Read... [21:24:30]Read from MH i2c: E2 03 00 [21:24:30]MH_I2C_Read... [21:24:30]Read from MH i2c: E2 03 00 56 D0 00 90 00 9A [21:24:30]RAPDU: 90 00 [21:24:30]wFMCommunicate OK [21:24:30]SAM_PROTO_ClearQueue done [21:24:30]KKMCreateOFDPacket [21:24:30]OFDProtocolAddRootSTLVToBuf [21:24:30]FM_MakeSignedData [21:24:30]FM_MakeSignedData [21:24:30]SAM_PROTO_SignData [21:24:30]wFMCommunicate request_size=4 [21:24:30]MH_SAM_APDU [21:24:30]CAPDU: 80 0D 01 02 [21:24:30]Write to MH i2c: E2 08 00 57 D0 80 0D 01 02 00 00 00 00 A0 [21:24:30]Write i2c OK [21:24:30]MH_I2C_Read... [21:24:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:24:30]Read from MH i2c: E2 [21:24:30]MH_I2C_Read... [21:24:30]Read from MH i2c: E2 03 00 [21:24:30]MH_I2C_Read... [21:24:30]Read from MH i2c: E2 03 00 57 D0 00 90 00 9B [21:24:30]RAPDU: 90 00 [21:24:30]wFMCommunicate OK [21:24:30]wFMCommunicate request_size=255 [21:24:30]MH_SAM_APDU [21:24: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 02 00 00 F4 03 04 00 94 66 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5A FB 03 00 35 04 06 00 A0 [21:24:30]Write to MH i2c: E2 02 01 58 D0 80 0D 02 02 FA 00 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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 02 00 00 F4 03 04 00 94 66 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5A FB 03 00 35 04 06 00 A0 00 00 B3 [21:24:30]Write i2c OK [21:24:30]MH_I2C_Read... [21:24:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:30]Read from MH i2c: E2 [21:24:30]MH_I2C_Read... [21:24:30]Read from MH i2c: E2 03 00 [21:24:30]MH_I2C_Read... [21:24:30]Read from MH i2c: E2 03 00 58 D0 00 90 00 9C [21:24:30]RAPDU: 90 00 [21:24:30]wFMCommunicate OK [21:24:30]wFMCommunicate request_size=10 [21:24:30]MH_SAM_APDU [21:24:30]CAPDU: 80 0D 02 02 05 A8 F8 6A 5A CA [21:24:30]Write to MH i2c: E2 0D 00 59 D0 80 0D 02 02 05 00 A8 F8 6A 5A CA 00 00 DB [21:24:30]Write i2c OK [21:24:30]MH_I2C_Read... [21:24:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:30]Read from MH i2c: E2 [21:24:30]MH_I2C_Read... [21:24:30]Read from MH i2c: E2 03 00 [21:24:30]MH_I2C_Read... [21:24:30]Read from MH i2c: E2 03 00 59 D0 00 90 00 9D [21:24:30]RAPDU: 90 00 [21:24:30]wFMCommunicate OK [21:24:30]wFMCommunicate request_size=4 [21:24:30]MH_SAM_APDU [21:24:30]CAPDU: 80 0D 03 02 [21:24:30]Write to MH i2c: E2 08 00 5A D0 80 0D 03 02 00 00 00 00 A5 [21:24:30]Write i2c OK [21:24:30]MH_I2C_Read... [21:24:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:24:30]Read from MH i2c: E2 [21:24:30]MH_I2C_Read... [21:24:30]Read from MH i2c: E2 0B 00 [21:24:30]MH_I2C_Read... [21:24:30]Read from MH i2c: E2 0B 00 5A D0 00 3B E3 41 00 71 F6 75 6A 90 00 4B [21:24:30]RAPDU: 3B E3 41 00 71 F6 75 6A 90 00 [21:24:30]wFMCommunicate OK [21:24:30]SAM_PROTO_SignData done [21:24:30]FM_MakeSignedData done [21:24:30]CreateOFDProtocolMessage [21:24:30]wFMCommunicate request_size=4 [21:24:30]MH_SAM_APDU [21:24:30]CAPDU: 80 11 00 00 [21:24:30]Write to MH i2c: E2 08 00 5B D0 80 11 00 00 00 00 00 00 A5 [21:24:30]Write i2c OK [21:24:30]MH_I2C_Read... [21:24:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:31]Read from MH i2c: E2 [21:24:31]MH_I2C_Read... [21:24:31]Read from MH i2c: E2 17 00 [21:24:31]MH_I2C_Read... [21:24:31]Read from MH i2c: E2 17 00 5B D0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F2 [21:24:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:24:31]wFMCommunicate OK [21:24:31]CreateOFDProtocolMessage done [21:24:31]OFDSenderStorePacket 260954 [21:24:31]StoreOFDPacket docnum=260954 [21:24:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 BB FD 07 01 F9 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 02 00 00 F4 03 04 00 94 66 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5A FB 03 00 35 04 06 00 A0 A8 F8 6A 5A CA 3B E3 41 00 71 F6 75 6A [21:24:31]CheckFolder [21:24:31]dirname=/storage/ofd_packets [21:24:31]CheckFolder done [21:24:31]ProducePacketName [21:24:31]name=ofd_packets/00260954 [21:24:31]NVStorageSaveData ofd_packets/00260954 [21:24:31]File name is /storage/ofd_packets/00260954 [21:24:31]Write 301 bytes [21:24:31]NVStorageSaveData done [21:24:31]OFDSenderStorePacket done [21:24:31]KKMCreateOFDPacket done [21:24:31]NVStorageSaveData kkm_last_timestamp [21:24:31]File name is /storage/kkm_last_timestamp [21:24:31]Write 4 bytes [21:24:31]NVStorageSaveData done [21:24:31]ExternCall_PrintAddStr [21:24:31]wPrintStart [21:24:31]Write to MH i2c: 01 00 00 5C D0 2C [21:24:31]Write i2c OK [21:24:31]MH_I2C_Read... [21:24:31]Read from MH i2c: 01 [21:24:31]MH_I2C_Read... [21:24:31]Read from MH i2c: 01 07 00 [21:24:31]MH_I2C_Read... [21:24:31]Read from MH i2c: 01 07 00 5C D0 00 00 00 00 00 FF 0F 41 [21:24:31]RasterBufferAndPrint [21:24:31]line Счет N : (1)1036508 [21:24:31]line ИНН: 02508201610067 [21:24:31]line Контрольно-Кассовый Чек [21:24:31]line ПРОДАЖА [21:24:31]line ТРК (МРК, ГНК) : 13 [21:24:31]line Товар: 2710124500 [21:24:31]line Аи-95-К-5 [21:24:31]line 26.960 * 74.20 [21:24:31]line = 2000.43 [21:24:31]line НДС 12% НСП 1% [21:24:31]line > о реализуемом товаре [21:24:31]line ОКРУГЛЕНИЕ: -0.43 [21:24:31]line ИТОГО: 2000.00 [21:24:31]line Внесено: 2000.00 [21:24:31]line СДАЧА: 0.00 [21:24:31]line НСП 1% : 17.70 [21:24:31]line НДС 12% : 212.43 [21:24:31]line Наличными: 2000.00 [21:24:31]line Безнал.: 0.00 [21:24:31]line Место: АЗС № 94 "Партнер Нефть" [21:24:31]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [21:24:31]line СНО: Общий режим [21:24:31]line Чек 512 18.08.2024 21:24 [21:24:31]line Смена: 449 ФФД: 1.0 [21:24:31]line ЗНМ: 0300000099 [21:24:31]line РНМ: 0000000000091865 [21:24:31]line Версия ККМ: 001 [21:24:31]line ФМ: 0000000000871820 [21:24:31]line ФД: 260954 [21:24:31]line ФПД: 176647582669514 [21:24:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T212436&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260954&fm=176647582669514&tin=02508201610067®Number=0000000000091865&sum=200000 [21:24:31]written 0, free lines is 4095 [21:24:31]OFD Sender: Processing packet 260954 [packets to send 192, broken 191] [21:24:31]ProducePacketName [21:24:31]name=ofd_packets/00260954 [21:24:31]OFD Sender: To server: pG, [21:24:31]CommunicateWithHost lk.salyk.kg:30040 [21:24:31]ConnectInit lk.salyk.kg [21:24:31]Connected sock=11 [21:24: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 30 0F 01 00 00 BB FD 07 01 F9 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 02 00 00 F4 03 04 00 94 66 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5A FB 03 00 35 04 06 00 A0 A8 F8 6A 5A CA 3B E3 41 00 71 F6 75 6A [21:24: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 30 4F 00 00 00 C3 91 47 00 6D 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5A FB 03 00 F4 03 04 00 E7 0F C2 66 B6 04 01 00 00 8D 1D 23 49 9F 64 D4 B9 [21:24:31]CommunicateWithHost err = 0 [21:24:31]CheckOFDResponse [21:24:31]1017 (14) - 77093643461234 [21:24:31]1041 (16) - 0000000000871820 [21:24:31]1040 (4) - 260954 [21:24:31]1012 (4) - 18.08.2024 15:14 [21:24:31]1206 (1) - 0 [21:24:31]OFD Sender: Remove packet 260954 [21:24:31]ProducePacketName [21:24:31]name=ofd_packets/00260954 [21:24:31]NVStorageDeleteData [21:24:31]Write to MH i2c: 01 00 00 87 D0 57 [21:24:31]Write i2c OK [21:24:31]MH_I2C_Read... [21:24:31]Read from MH i2c: 01 [21:24:31]MH_I2C_Read... [21:24:31]Read from MH i2c: 01 07 00 [21:24:31]MH_I2C_Read... [21:24:31]Read from MH i2c: 01 07 00 87 D0 00 00 00 00 00 75 0C DF [21:24:31]RasterBufferAndPrint [21:24:31]line [21:24:31]line [21:24:31]line [21:24:31]line [21:24:31]line [21:24:31]written 0, free lines is 3191 [21:24:31]MH_Cut [21:24:31]Write to MH i2c: D1 01 00 8E D0 01 30 [21:24:31]Write i2c OK [21:24:31]MH_I2C_Read... [21:24:31]Read from MH i2c: D1 [21:24:31]MH_I2C_Read... [21:24:31]Read from MH i2c: D1 01 00 [21:24:31]MH_I2C_Read... [21:24:31]Read from MH i2c: D1 01 00 8E D0 00 2F [21:24:31]Write to MH i2c: 01 00 00 8F D0 5F [21:24:31]Write i2c OK [21:24:31]MH_I2C_Read... [21:24:31]OFD Sender: No OFD packet to send [21:24:32]*** Cut start [21:24:32]*** Purtial cut [21:24:32]*** Stage 1: CUTSNS_PIN = 1 [21:24:34]Read from MH i2c: 01 [21:24:34]MH_I2C_Read... [21:24:34]*** Stop cut motor [21:24:34]*** Cut end [21:24:34]Read from MH i2c: 01 07 00 [21:24:34]MH_I2C_Read... [21:24:34]Read from MH i2c: 01 07 00 8F D0 00 00 00 00 00 FF 0F 74 [21:24:34]process_action close_receipt done [21:24:34]requested_data is exist [21:24:34]produce_requested_data [21:24:34]requested_item fm.sn is exist - process it [21:24:34]wFMCommunicate request_size=4 [21:24:34]MH_SAM_APDU [21:24:34]CAPDU: 80 11 00 00 [21:24:34]Write to MH i2c: E2 08 00 90 D0 80 11 00 00 00 00 00 00 DA [21:24:34]Write i2c OK [21:24:34]MH_I2C_Read... [21:24:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:34]Read from MH i2c: E2 [21:24:34]MH_I2C_Read... [21:24:34]Read from MH i2c: E2 17 00 [21:24:34]MH_I2C_Read... [21:24:34]Read from MH i2c: E2 17 00 90 D0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 27 [21:24:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:24:34]wFMCommunicate OK [21:24:34]requested_item fd.num is exist - process it [21:24:34]SAM_PROTO_GetFieldsCounters [21:24:34]wFMCommunicate request_size=4 [21:24:34]MH_SAM_APDU [21:24:34]CAPDU: 80 13 00 00 [21:24:34]Write to MH i2c: E2 08 00 91 D0 80 13 00 00 00 00 00 00 DD [21:24:34]Write i2c OK [21:24:34]MH_I2C_Read... [21:24:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:24:34]Read from MH i2c: E2 [21:24:34]MH_I2C_Read... [21:24:34]Read from MH i2c: E2 62 00 [21:24:34]MH_I2C_Read... [21:24:34]Read from MH i2c: E2 62 00 91 D0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 5A FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 00 02 00 00 5E 04 04 00 00 02 00 00 57 04 04 00 01 02 00 00 19 04 04 00 00 00 00 00 90 00 1C [21:24: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 5A FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 00 02 00 00 5E 04 04 00 00 02 00 00 57 04 04 00 01 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:24:34]wFMCommunicate OK [21:24:34]SAM_PROTO_GetFieldsCounters done [21:24:34]requested_item shift.num is exist - process it [21:24:34]requested_item shift.opened is exist - process it [21:24:34]req_shift_opened [21:24:34]FM_GetShiftState [21:24:34]SAM_PROTO_GetShiftState [21:24:34]wFMCommunicate request_size=4 [21:24:34]MH_SAM_APDU [21:24:34]CAPDU: 80 13 01 00 [21:24:34]Write to MH i2c: E2 08 00 92 D0 80 13 01 00 00 00 00 00 DF [21:24:34]Write i2c OK [21:24:34]MH_I2C_Read... [21:24:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:34]Read from MH i2c: E2 [21:24:34]MH_I2C_Read... [21:24:34]Read from MH i2c: E2 0E 00 [21:24:34]MH_I2C_Read... [21:24:34]Read from MH i2c: E2 0E 00 92 D0 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 1C [21:24:34]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:24:34]wFMCommunicate OK [21:24:34]SAM_PROTO_GetShiftState done [21:24:34]FM_GetShiftState done [21:24:34]req_shift_opened done [21:24:34]requested_item shift.open_date is exist - process it [21:24:34]req_shift_open_date [21:24:34]req_shift_open_date done [21:24:34]produce_requested_data done [21:24:34]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260954,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [21:24:34]process_action_free close_receipt [21:24:34]json_value_free [21:24:34]json_value_free done [21:24:34]process_json_proto returns [21:24:34]Send response to host [21:24:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260954,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [21:24:34]free response buf [21:24:34]execute_script done [21:24:34]execute_script returns [21:24:34]free content buf [21:24:34]Sock 9.Close socket [21:24:34]Sock 9.Thread stoped [21:24:36]OFD Sender: No OFD packet to send [21:24:37]accept exits with 7 [21:24:37]New connection [21:24:37]New thread 3066617188 created [21:24:37]Thread 3066473828 joined [21:24:37]Waiting for new connection... [21:24:37] Sock 7.Parse request [21:24:37]Sock 7.Check first char [21:24:37]Sock 7.First char is OK [21:24:37]request: POST /json_proto HTTP/1.0 [21:24:37]Method: POST [21:24:37]URL: /json_proto [21:24:37]Method is POST - this is cgi request [21:24:37]url: /json_proto [21:24:37]query_string will be loaded in cgi processing [21:24:37]execute_cgi json_proto POST (null) [21:24:37]execute_cgi path=json_proto method=POST [21:24:37]POST find Content-Length [21:24:37]Host: 172.17.55.133:8080 [21:24:37]Content-Length: 678 [21:24:37]Content-Type: application/json [21:24:37] [21:24:37]POST finish read [21:24:37]Found Content-Length = 678 [21:24:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036507", "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" : 74.20, "quantity" : 2.770, "sum" : 205.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 205.00, "payments": [ { "type": 0, "sum" : 205.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:37]execute_script... [21:24: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)1036507", "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" : 74.20, "quantity" : 2.770, "sum" : 205.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 205.00, "payments": [ { "type": 0, "sum" : 205.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:37]POST & json_proto [21:24:37]process_json_proto [21:24:37]json parsed OK: [21:24:37]protocol is kg_v1.0 [21:24:37]action value=close_receipt [21:24:37]process_action close_receipt [21:24:37]cmd_close_receipt [21:24:37]MH_GetDate [21:24:37]Write to MH i2c: F0 00 00 93 D0 52 [21:24:37]Write i2c OK [21:24:37]MH_I2C_Read... [21:24:37]Read from MH i2c: F0 [21:24:37]MH_I2C_Read... [21:24:37]Read from MH i2c: F0 09 00 [21:24:37]MH_I2C_Read... [21:24:37]Read from MH i2c: F0 09 00 93 D0 00 9C 66 C2 66 34 48 D8 65 3E [21:24:37]GetLastDocTimeStamp 1724016276 [21:24:37]current date 1724016284 [21:24:37]FM_GetShiftState [21:24:37]SAM_PROTO_GetShiftState [21:24:37]wFMCommunicate request_size=4 [21:24:37]MH_SAM_APDU [21:24:37]CAPDU: 80 13 01 00 [21:24:37]Write to MH i2c: E2 08 00 94 D0 80 13 01 00 00 00 00 00 E1 [21:24:37]Write i2c OK [21:24:37]MH_I2C_Read... [21:24:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:37]Read from MH i2c: E2 [21:24:37]MH_I2C_Read... [21:24:37]Read from MH i2c: E2 0E 00 [21:24:37]MH_I2C_Read... [21:24:37]Read from MH i2c: E2 0E 00 94 D0 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 1E [21:24:37]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:24:37]wFMCommunicate OK [21:24:37]SAM_PROTO_GetShiftState done [21:24:37]FM_GetShiftState done [21:24:37]opened in 1723940556 [21:24:37]opened+sec_in_day 1724026956 [21:24:37]quantity*price = 20553 [21:24:37]sum+1 = 20554 [21:24:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 205.00 Внесено: 250.00 СДАЧА: 45.00 НСП 1% : 1.82 НДС 12% : 21.83 Наличными: 205.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 513 18.08.2024 21:24 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260955 ФПД: 90950220640104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T212444&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260955&fm=90950220640104&tin=02508201610067®Number=0000000000091865&sum=20500 [21:24:39]StoreToDocumentArchive [21:24:39]shift 449 fd 260955 [21:24:39]save to /storage/0449/doc_00260955 [21:24:39]save last doc name /storage/0449/doc_00260955 to /storage/kkm_last_doc_name [21:24:39]save OK [21:24:39]Clear old archive folders... [21:24:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:24:39]tlvbuf is 0035CE30 [21:24:39]SAM_PROTO_ClearQueue [21:24:39]wFMCommunicate request_size=4 [21:24:39]MH_SAM_APDU [21:24:39]CAPDU: 80 09 00 00 [21:24:39]Write to MH i2c: E2 08 00 A1 D0 80 09 00 00 00 00 00 00 E3 [21:24:39]Write i2c OK [21:24:39]MH_I2C_Read... [21:24:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:24:39]Read from MH i2c: E2 [21:24:39]MH_I2C_Read... [21:24:39]Read from MH i2c: E2 03 00 [21:24:39]MH_I2C_Read... [21:24:39]Read from MH i2c: E2 03 00 A1 D0 00 90 00 E5 [21:24:39]RAPDU: 90 00 [21:24:39]wFMCommunicate OK [21:24:39]SAM_PROTO_ClearQueue done [21:24:39]KKMCreateOFDPacket [21:24:39]OFDProtocolAddRootSTLVToBuf [21:24:39]FM_MakeSignedData [21:24:39]FM_MakeSignedData [21:24:39]SAM_PROTO_SignData [21:24:39]wFMCommunicate request_size=4 [21:24:39]MH_SAM_APDU [21:24:39]CAPDU: 80 0D 01 02 [21:24:39]Write to MH i2c: E2 08 00 A2 D0 80 0D 01 02 00 00 00 00 EB [21:24:39]Write i2c OK [21:24:39]MH_I2C_Read... [21:24:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:24:39]Read from MH i2c: E2 [21:24:39]MH_I2C_Read... [21:24:39]Read from MH i2c: E2 03 00 [21:24:39]MH_I2C_Read... [21:24:39]Read from MH i2c: E2 03 00 A2 D0 00 90 00 E6 [21:24:39]RAPDU: 90 00 [21:24:39]wFMCommunicate OK [21:24:39]wFMCommunicate request_size=255 [21:24:39]MH_SAM_APDU [21:24: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 D2 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 49 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 08 00 00 00 00 07 04 06 00 14 50 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 02 00 00 F4 03 04 00 9C 66 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5B FB 03 00 35 04 06 00 52 [21:24:39]Write to MH i2c: E2 02 01 A3 D0 80 0D 02 02 FA 00 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 D2 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 49 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 08 00 00 00 00 07 04 06 00 14 50 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 02 00 00 F4 03 04 00 9C 66 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5B FB 03 00 35 04 06 00 52 00 00 2B [21:24:39]Write i2c OK [21:24:39]MH_I2C_Read... [21:24:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:39]Read from MH i2c: E2 [21:24:39]MH_I2C_Read... [21:24:39]Read from MH i2c: E2 03 00 [21:24:39]MH_I2C_Read... [21:24:39]Read from MH i2c: E2 03 00 A3 D0 00 90 00 E7 [21:24:39]RAPDU: 90 00 [21:24:39]wFMCommunicate OK [21:24:39]wFMCommunicate request_size=10 [21:24:39]MH_SAM_APDU [21:24:39]CAPDU: 80 0D 02 02 05 B7 FF 97 EF 68 [21:24:39]Write to MH i2c: E2 0D 00 A4 D0 80 0D 02 02 05 00 B7 FF 97 EF 68 00 00 9C [21:24:39]Write i2c OK [21:24:39]MH_I2C_Read... [21:24:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:39]Read from MH i2c: E2 [21:24:39]MH_I2C_Read... [21:24:39]Read from MH i2c: E2 03 00 [21:24:39]MH_I2C_Read... [21:24:39]Read from MH i2c: E2 03 00 A4 D0 00 90 00 E8 [21:24:39]RAPDU: 90 00 [21:24:39]wFMCommunicate OK [21:24:39]wFMCommunicate request_size=4 [21:24:39]MH_SAM_APDU [21:24:39]CAPDU: 80 0D 03 02 [21:24:39]Write to MH i2c: E2 08 00 A5 D0 80 0D 03 02 00 00 00 00 F0 [21:24:39]Write i2c OK [21:24:39]MH_I2C_Read... [21:24:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:24:39]Read from MH i2c: E2 [21:24:39]MH_I2C_Read... [21:24:39]Read from MH i2c: E2 0B 00 [21:24:39]MH_I2C_Read... [21:24:39]Read from MH i2c: E2 0B 00 A5 D0 00 E9 1F B3 0F F9 52 A3 E2 90 00 8B [21:24:39]RAPDU: E9 1F B3 0F F9 52 A3 E2 90 00 [21:24:39]wFMCommunicate OK [21:24:39]SAM_PROTO_SignData done [21:24:39]FM_MakeSignedData done [21:24:39]CreateOFDProtocolMessage [21:24:39]wFMCommunicate request_size=4 [21:24:39]MH_SAM_APDU [21:24:39]CAPDU: 80 11 00 00 [21:24:39]Write to MH i2c: E2 08 00 A6 D0 80 11 00 00 00 00 00 00 F0 [21:24:39]Write i2c OK [21:24:39]MH_I2C_Read... [21:24:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:39]Read from MH i2c: E2 [21:24:39]MH_I2C_Read... [21:24:39]Read from MH i2c: E2 17 00 [21:24:39]MH_I2C_Read... [21:24:39]Read from MH i2c: E2 17 00 A6 D0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 3D [21:24:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:24:39]wFMCommunicate OK [21:24:39]CreateOFDProtocolMessage done [21:24:39]OFDSenderStorePacket 260955 [21:24:39]StoreOFDPacket docnum=260955 [21:24:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 44 EF 07 01 2F 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 49 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 08 00 00 00 00 07 04 06 00 14 50 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 02 00 00 F4 03 04 00 9C 66 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5B FB 03 00 35 04 06 00 52 B7 FF 97 EF 68 E9 1F B3 0F F9 52 A3 E2 [21:24:39]CheckFolder [21:24:39]dirname=/storage/ofd_packets [21:24:39]CheckFolder done [21:24:39]ProducePacketName [21:24:39]name=ofd_packets/00260955 [21:24:39]NVStorageSaveData ofd_packets/00260955 [21:24:39]File name is /storage/ofd_packets/00260955 [21:24:39]Write 301 bytes [21:24:39]NVStorageSaveData done [21:24:39]OFDSenderStorePacket done [21:24:39]KKMCreateOFDPacket done [21:24:39]NVStorageSaveData kkm_last_timestamp [21:24:39]File name is /storage/kkm_last_timestamp [21:24:39]Write 4 bytes [21:24:39]NVStorageSaveData done [21:24:39]ExternCall_PrintAddStr [21:24:39]wPrintStart [21:24:39]Write to MH i2c: 01 00 00 A7 D0 77 [21:24:39]Write i2c OK [21:24:39]MH_I2C_Read... [21:24:39]Read from MH i2c: 01 [21:24:39]MH_I2C_Read... [21:24:39]Read from MH i2c: 01 07 00 [21:24:39]MH_I2C_Read... [21:24:39]Read from MH i2c: 01 07 00 A7 D0 00 00 00 00 00 FF 0F 8C [21:24:39]RasterBufferAndPrint [21:24:39]line Счет N : (1)1036507 [21:24:39]line ИНН: 02508201610067 [21:24:39]line Контрольно-Кассовый Чек [21:24:39]line ПРОДАЖА [21:24:39]line ТРК (МРК, ГНК) : 23 [21:24:39]line Товар: 2710124500 [21:24:39]line Аи-95-К-5 [21:24:39]line 2.770 * 74.20 [21:24:39]line = 205.53 [21:24:39]line НДС 12% НСП 1% [21:24:39]line > о реализуемом товаре [21:24:39]line ОКРУГЛЕНИЕ: -0.53 [21:24:39]line ИТОГО: 205.00 [21:24:39]line Внесено: 250.00 [21:24:39]line СДАЧА: 45.00 [21:24:39]line НСП 1% : 1.82 [21:24:39]line НДС 12% : 21.83 [21:24:39]line Наличными: 205.00 [21:24:39]line Безнал.: 0.00 [21:24:39]line Место: АЗС № 94 "Партнер Нефть" [21:24:39]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [21:24:39]line СНО: Общий режим [21:24:39]line Чек 513 18.08.2024 21:24 [21:24:39]line Смена: 449 ФФД: 1.0 [21:24:39]line ЗНМ: 0300000099 [21:24:39]line РНМ: 0000000000091865 [21:24:39]line Версия ККМ: 001 [21:24:39]line ФМ: 0000000000871820 [21:24:39]line ФД: 260955 [21:24:39]line ФПД: 90950220640104 [21:24:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T212444&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260955&fm=90950220640104&tin=02508201610067®Number=0000000000091865&sum=20500 [21:24:39]written 0, free lines is 4095 [21:24:39]OFD Sender: Processing packet 260955 [packets to send 192, broken 191] [21:24:39]ProducePacketName [21:24:39]name=ofd_packets/00260955 [21:24:39]OFD Sender: To server: pG, [21:24:39]CommunicateWithHost lk.salyk.kg:30040 [21:24:39]ConnectInit lk.salyk.kg [21:24:39]Connected sock=10 [21:24: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 30 0F 01 00 00 44 EF 07 01 2F 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 49 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 08 00 00 00 00 07 04 06 00 14 50 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 02 00 00 F4 03 04 00 9C 66 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5B FB 03 00 35 04 06 00 52 B7 FF 97 EF 68 E9 1F B3 0F F9 52 A3 E2 [21:24: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 30 4F 00 00 00 2E FE 47 00 7A 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 30 10 04 04 00 5B FB 03 00 F4 03 04 00 F0 0F C2 66 B6 04 01 00 00 DE 74 37 78 C7 FC 27 76 [21:24:40]CommunicateWithHost err = 0 [21:24:40]CheckOFDResponse [21:24:40]1017 (14) - 77093643461234 [21:24:40]1041 (16) - 0000000000871820 [21:24:40]1040 (4) - 260955 [21:24:40]1012 (4) - 18.08.2024 15:14 [21:24:40]1206 (1) - 0 [21:24:40]OFD Sender: Remove packet 260955 [21:24:40]ProducePacketName [21:24:40]name=ofd_packets/00260955 [21:24:40]NVStorageDeleteData [21:24:40]Write to MH i2c: 01 00 00 D2 D0 A2 [21:24:40]Write i2c OK [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: 01 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: 01 07 00 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: 01 07 00 D2 D0 00 00 00 00 00 78 0C 2D [21:24:40]RasterBufferAndPrint [21:24:40]line [21:24:40]line [21:24:40]line [21:24:40]line [21:24:40]line [21:24:40]written 0, free lines is 3197 [21:24:40]MH_Cut [21:24:40]Write to MH i2c: D1 01 00 D9 D0 01 7B [21:24:40]Write i2c OK [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: D1 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: D1 01 00 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: D1 01 00 D9 D0 00 7A [21:24:40]Write to MH i2c: 01 00 00 DA D0 AA [21:24:40]Write i2c OK [21:24:40]MH_I2C_Read... [21:24:40]OFD Sender: No OFD packet to send [21:24:41]*** Cut start [21:24:41]*** Purtial cut [21:24:41]*** Stage 1: CUTSNS_PIN = 1 [21:24:43]Read from MH i2c: 01 [21:24:43]MH_I2C_Read... [21:24:43]*** Stop cut motor [21:24:43]*** Cut end [21:24:43]Read from MH i2c: 01 07 00 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: 01 07 00 DA D0 00 00 00 00 00 FF 0F BF [21:24:43]process_action close_receipt done [21:24:43]requested_data is exist [21:24:43]produce_requested_data [21:24:43]requested_item fm.sn is exist - process it [21:24:43]wFMCommunicate request_size=4 [21:24:43]MH_SAM_APDU [21:24:43]CAPDU: 80 11 00 00 [21:24:43]Write to MH i2c: E2 08 00 DB D0 80 11 00 00 00 00 00 00 25 [21:24:43]Write i2c OK [21:24:43]MH_I2C_Read... [21:24:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:43]Read from MH i2c: E2 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: E2 17 00 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: E2 17 00 DB D0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 72 [21:24:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:24:43]wFMCommunicate OK [21:24:43]requested_item fd.num is exist - process it [21:24:43]SAM_PROTO_GetFieldsCounters [21:24:43]wFMCommunicate request_size=4 [21:24:43]MH_SAM_APDU [21:24:43]CAPDU: 80 13 00 00 [21:24:43]Write to MH i2c: E2 08 00 DC D0 80 13 00 00 00 00 00 00 28 [21:24:43]Write i2c OK [21:24:43]MH_I2C_Read... [21:24:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:24:43]Read from MH i2c: E2 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: E2 62 00 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: E2 62 00 DC D0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 5B FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 01 02 00 00 5E 04 04 00 01 02 00 00 57 04 04 00 02 02 00 00 19 04 04 00 00 00 00 00 90 00 6B [21:24: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 5B FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 01 02 00 00 5E 04 04 00 01 02 00 00 57 04 04 00 02 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:24:43]wFMCommunicate OK [21:24:43]SAM_PROTO_GetFieldsCounters done [21:24:43]requested_item shift.num is exist - process it [21:24:43]requested_item shift.opened is exist - process it [21:24:43]req_shift_opened [21:24:43]FM_GetShiftState [21:24:43]SAM_PROTO_GetShiftState [21:24:43]wFMCommunicate request_size=4 [21:24:43]MH_SAM_APDU [21:24:43]CAPDU: 80 13 01 00 [21:24:43]Write to MH i2c: E2 08 00 DD D0 80 13 01 00 00 00 00 00 2A [21:24:43]Write i2c OK [21:24:43]MH_I2C_Read... [21:24:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:43]Read from MH i2c: E2 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: E2 0E 00 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: E2 0E 00 DD D0 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 67 [21:24:43]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:24:43]wFMCommunicate OK [21:24:43]SAM_PROTO_GetShiftState done [21:24:43]FM_GetShiftState done [21:24:43]req_shift_opened done [21:24:43]requested_item shift.open_date is exist - process it [21:24:43]req_shift_open_date [21:24:43]req_shift_open_date done [21:24:43]produce_requested_data done [21:24:43]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260955,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [21:24:43]process_action_free close_receipt [21:24:43]json_value_free [21:24:43]json_value_free done [21:24:43]process_json_proto returns [21:24:43]Send response to host [21:24:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260955,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [21:24:43]free response buf [21:24:43]execute_script done [21:24:43]execute_script returns [21:24:43]free content buf [21:24:43]Sock 7.Close socket [21:24:43]Sock 7.Thread stoped [21:24:45]OFD Sender: No OFD packet to send [21:24:50]OFD Sender: No OFD packet to send [21:24:55]OFD Sender: No OFD packet to send [21:25:00]OFD Sender: No OFD packet to send [21:25:05]OFD Sender: No OFD packet to send [21:25:10]OFD Sender: No OFD packet to send [21:25:15]OFD Sender: No OFD packet to send [21:25:20]OFD Sender: No OFD packet to send [21:25:25]OFD Sender: No OFD packet to send [21:25:30]OFD Sender: No OFD packet to send [21:25:35]OFD Sender: No OFD packet to send [21:25:40]OFD Sender: No OFD packet to send [21:25:45]OFD Sender: No OFD packet to send [21:25:46]accept exits with 9 [21:25:46]New connection [21:25:46]New thread 3066473828 created [21:25:46]Thread 3066617188 joined [21:25:46]Waiting for new connection... [21:25:46] Sock 9.Parse request [21:25:46]Sock 9.Check first char [21:25:46]Sock 9.First char is OK [21:25:46]request: POST /json_proto HTTP/1.0 [21:25:46]Method: POST [21:25:46]URL: /json_proto [21:25:46]Method is POST - this is cgi request [21:25:46]url: /json_proto [21:25:46]query_string will be loaded in cgi processing [21:25:46]execute_cgi json_proto POST (null) [21:25:46]execute_cgi path=json_proto method=POST [21:25:46]POST find Content-Length [21:25:46]Host: 172.17.55.133:8080 [21:25:46]Content-Length: 678 [21:25:46]Content-Type: application/json [21:25:46] [21:25:46]POST finish read [21:25:46]Found Content-Length = 678 [21:25:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:25:46]execute_script... [21:25: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)1036509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:25:46]POST & json_proto [21:25:46]process_json_proto [21:25:46]json parsed OK: [21:25:46]protocol is kg_v1.0 [21:25:46]action value=close_receipt [21:25:46]process_action close_receipt [21:25:46]cmd_close_receipt [21:25:46]MH_GetDate [21:25:46]Write to MH i2c: F0 00 00 DE D0 9D [21:25:46]Write i2c OK [21:25:46]MH_I2C_Read... [21:25:46]Read from MH i2c: F0 [21:25:46]MH_I2C_Read... [21:25:46]Read from MH i2c: F0 09 00 [21:25:46]MH_I2C_Read... [21:25:46]Read from MH i2c: F0 09 00 DE D0 00 E1 66 C2 66 34 48 D8 65 CE [21:25:46]GetLastDocTimeStamp 1724016284 [21:25:46]current date 1724016353 [21:25:46]FM_GetShiftState [21:25:46]SAM_PROTO_GetShiftState [21:25:46]wFMCommunicate request_size=4 [21:25:46]MH_SAM_APDU [21:25:46]CAPDU: 80 13 01 00 [21:25:46]Write to MH i2c: E2 08 00 DF D0 80 13 01 00 00 00 00 00 2C [21:25:46]Write i2c OK [21:25:46]MH_I2C_Read... [21:25:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:46]Read from MH i2c: E2 [21:25:46]MH_I2C_Read... [21:25:46]Read from MH i2c: E2 0E 00 [21:25:46]MH_I2C_Read... [21:25:46]Read from MH i2c: E2 0E 00 DF D0 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 69 [21:25:46]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:25:46]wFMCommunicate OK [21:25:46]SAM_PROTO_GetShiftState done [21:25:46]FM_GetShiftState done [21:25:46]opened in 1723940556 [21:25:46]opened+sec_in_day 1724026956 [21:25:46]quantity*price = 50036 [21:25:46]sum+1 = 50037 [21:25:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 514 18.08.2024 21:25 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260956 ФПД: 253628719517206 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T212553&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260956&fm=253628719517206&tin=02508201610067®Number=0000000000091865&sum=50000 [21:25:47]StoreToDocumentArchive [21:25:47]shift 449 fd 260956 [21:25:47]save to /storage/0449/doc_00260956 [21:25:47]save last doc name /storage/0449/doc_00260956 to /storage/kkm_last_doc_name [21:25:47]save OK [21:25:47]Clear old archive folders... [21:25:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:25:47]tlvbuf is 006B9530 [21:25:47]SAM_PROTO_ClearQueue [21:25:47]wFMCommunicate request_size=4 [21:25:47]MH_SAM_APDU [21:25:47]CAPDU: 80 09 00 00 [21:25:47]Write to MH i2c: E2 08 00 EC D0 80 09 00 00 00 00 00 00 2E [21:25:47]Write i2c OK [21:25:47]MH_I2C_Read... [21:25:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:25:47]Read from MH i2c: E2 [21:25:47]MH_I2C_Read... [21:25:47]Read from MH i2c: E2 03 00 [21:25:47]MH_I2C_Read... [21:25:47]Read from MH i2c: E2 03 00 EC D0 00 90 00 30 [21:25:47]RAPDU: 90 00 [21:25:47]wFMCommunicate OK [21:25:47]SAM_PROTO_ClearQueue done [21:25:47]KKMCreateOFDPacket [21:25:47]OFDProtocolAddRootSTLVToBuf [21:25:47]FM_MakeSignedData [21:25:47]FM_MakeSignedData [21:25:47]SAM_PROTO_SignData [21:25:47]wFMCommunicate request_size=4 [21:25:47]MH_SAM_APDU [21:25:47]CAPDU: 80 0D 01 02 [21:25:47]Write to MH i2c: E2 08 00 ED D0 80 0D 01 02 00 00 00 00 36 [21:25:47]Write i2c OK [21:25:47]MH_I2C_Read... [21:25:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:25:47]Read from MH i2c: E2 [21:25:47]MH_I2C_Read... [21:25:47]Read from MH i2c: E2 03 00 [21:25:47]MH_I2C_Read... [21:25:47]Read from MH i2c: E2 03 00 ED D0 00 90 00 31 [21:25:47]RAPDU: 90 00 [21:25:47]wFMCommunicate OK [21:25:47]wFMCommunicate request_size=255 [21:25:47]MH_SAM_APDU [21:25:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 02 02 00 00 F4 03 04 00 E1 66 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5C FB 03 00 35 04 06 00 E6 [21:25:47]Write to MH i2c: E2 02 01 EE D0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 02 02 00 00 F4 03 04 00 E1 66 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5C FB 03 00 35 04 06 00 E6 00 00 28 [21:25:47]Write i2c OK [21:25:47]MH_I2C_Read... [21:25:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:48]Read from MH i2c: E2 [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: E2 03 00 [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: E2 03 00 EE D0 00 90 00 32 [21:25:48]RAPDU: 90 00 [21:25:48]wFMCommunicate OK [21:25:48]wFMCommunicate request_size=10 [21:25:48]MH_SAM_APDU [21:25:48]CAPDU: 80 0D 02 02 05 AC 89 BB 4E 16 [21:25:48]Write to MH i2c: E2 0D 00 EF D0 80 0D 02 02 05 00 AC 89 BB 4E 16 00 00 97 [21:25:48]Write i2c OK [21:25:48]MH_I2C_Read... [21:25:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:48]Read from MH i2c: E2 [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: E2 03 00 [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: E2 03 00 EF D0 00 90 00 33 [21:25:48]RAPDU: 90 00 [21:25:48]wFMCommunicate OK [21:25:48]wFMCommunicate request_size=4 [21:25:48]MH_SAM_APDU [21:25:48]CAPDU: 80 0D 03 02 [21:25:48]Write to MH i2c: E2 08 00 F0 D0 80 0D 03 02 00 00 00 00 3B [21:25:48]Write i2c OK [21:25:48]MH_I2C_Read... [21:25:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:25:48]Read from MH i2c: E2 [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: E2 0B 00 [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: E2 0B 00 F0 D0 00 1B 22 4D C9 4C E3 C8 BF 90 00 45 [21:25:48]RAPDU: 1B 22 4D C9 4C E3 C8 BF 90 00 [21:25:48]wFMCommunicate OK [21:25:48]SAM_PROTO_SignData done [21:25:48]FM_MakeSignedData done [21:25:48]CreateOFDProtocolMessage [21:25:48]wFMCommunicate request_size=4 [21:25:48]MH_SAM_APDU [21:25:48]CAPDU: 80 11 00 00 [21:25:48]Write to MH i2c: E2 08 00 F1 D0 80 11 00 00 00 00 00 00 3B [21:25:48]Write i2c OK [21:25:48]MH_I2C_Read... [21:25:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:48]Read from MH i2c: E2 [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: E2 17 00 [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: E2 17 00 F1 D0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 88 [21:25:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:25:48]wFMCommunicate OK [21:25:48]CreateOFDProtocolMessage done [21:25:48]OFDSenderStorePacket 260956 [21:25:48]StoreOFDPacket docnum=260956 [21:25:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 A0 CE 07 01 1B 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 02 02 00 00 F4 03 04 00 E1 66 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5C FB 03 00 35 04 06 00 E6 AC 89 BB 4E 16 1B 22 4D C9 4C E3 C8 BF [21:25:48]CheckFolder [21:25:48]dirname=/storage/ofd_packets [21:25:48]CheckFolder done [21:25:48]ProducePacketName [21:25:48]name=ofd_packets/00260956 [21:25:48]NVStorageSaveData ofd_packets/00260956 [21:25:48]File name is /storage/ofd_packets/00260956 [21:25:48]Write 301 bytes [21:25:48]NVStorageSaveData done [21:25:48]OFDSenderStorePacket done [21:25:48]KKMCreateOFDPacket done [21:25:48]NVStorageSaveData kkm_last_timestamp [21:25:48]File name is /storage/kkm_last_timestamp [21:25:48]Write 4 bytes [21:25:48]NVStorageSaveData done [21:25:48]ExternCall_PrintAddStr [21:25:48]wPrintStart [21:25:48]Write to MH i2c: 01 00 00 F2 D0 C2 [21:25:48]Write i2c OK [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: 01 [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: 01 07 00 [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: 01 07 00 F2 D0 00 00 00 00 00 FF 0F D7 [21:25:48]RasterBufferAndPrint [21:25:48]line Счет N : (1)1036509 [21:25:48]line ИНН: 02508201610067 [21:25:48]line Контрольно-Кассовый Чек [21:25:48]line ПРОДАЖА [21:25:48]line ТРК (МРК, ГНК) : 32 [21:25:48]line Товар: 2710124130 [21:25:48]line Аи-92-К-5 [21:25:48]line 7.380 * 67.80 [21:25:48]line = 500.36 [21:25:48]line НДС 12% НСП 1% [21:25:48]line > о реализуемом товаре [21:25:48]line ОКРУГЛЕНИЕ: -0.36 [21:25:48]line ИТОГО: 500.00 [21:25:48]line Внесено: 500.00 [21:25:48]line СДАЧА: 0.00 [21:25:48]line НСП 1% : 4.43 [21:25:48]line НДС 12% : 53.14 [21:25:48]line Наличными: 500.00 [21:25:48]line Безнал.: 0.00 [21:25:48]line Место: АЗС № 94 "Партнер Нефть" [21:25:48]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [21:25:48]line СНО: Общий режим [21:25:48]line Чек 514 18.08.2024 21:25 [21:25:48]line Смена: 449 ФФД: 1.0 [21:25:48]line ЗНМ: 0300000099 [21:25:48]line РНМ: 0000000000091865 [21:25:48]line Версия ККМ: 001 [21:25:48]line ФМ: 0000000000871820 [21:25:48]line ФД: 260956 [21:25:48]line ФПД: 253628719517206 [21:25:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T212553&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260956&fm=253628719517206&tin=02508201610067®Number=0000000000091865&sum=50000 [21:25:48]written 0, free lines is 4095 [21:25:48]OFD Sender: Processing packet 260956 [packets to send 192, broken 191] [21:25:48]ProducePacketName [21:25:48]name=ofd_packets/00260956 [21:25:48]OFD Sender: To server: pG, [21:25:48]CommunicateWithHost lk.salyk.kg:30040 [21:25:48]ConnectInit lk.salyk.kg [21:25:48]Connected sock=10 [21:25: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 30 0F 01 00 00 A0 CE 07 01 1B 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 02 02 00 00 F4 03 04 00 E1 66 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5C FB 03 00 35 04 06 00 E6 AC 89 BB 4E 16 1B 22 4D C9 4C E3 C8 BF [21:25: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 30 4F 00 00 00 C3 2C 47 00 69 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5C FB 03 00 F4 03 04 00 35 10 C2 66 B6 04 01 00 00 28 D3 F4 1A A5 4A 95 32 [21:25:48]CommunicateWithHost err = 0 [21:25:48]CheckOFDResponse [21:25:48]1017 (14) - 77093643461234 [21:25:48]1041 (16) - 0000000000871820 [21:25:48]1040 (4) - 260956 [21:25:48]1012 (4) - 18.08.2024 15:16 [21:25:48]1206 (1) - 0 [21:25:48]OFD Sender: Remove packet 260956 [21:25:48]ProducePacketName [21:25:48]name=ofd_packets/00260956 [21:25:48]NVStorageDeleteData [21:25:48]Write to MH i2c: 01 00 00 1D D1 EE [21:25:48]Write i2c OK [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: 01 [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: 01 07 00 [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: 01 07 00 1D D1 00 00 00 00 00 71 0C 72 [21:25:48]RasterBufferAndPrint [21:25:48]line [21:25:48]line [21:25:48]line [21:25:48]line [21:25:48]line [21:25:48]written 0, free lines is 3188 [21:25:48]MH_Cut [21:25:48]Write to MH i2c: D1 01 00 24 D1 01 C7 [21:25:48]Write i2c OK [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: D1 [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: D1 01 00 [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: D1 01 00 24 D1 00 C6 [21:25:48]Write to MH i2c: 01 00 00 25 D1 F6 [21:25:48]Write i2c OK [21:25:48]MH_I2C_Read... [21:25:49]OFD Sender: No OFD packet to send [21:25:49]*** Cut start [21:25:49]*** Purtial cut [21:25:49]*** Stage 1: CUTSNS_PIN = 1 [21:25:51]Read from MH i2c: 01 [21:25:51]MH_I2C_Read... [21:25:51]*** Stop cut motor [21:25:51]*** Cut end [21:25:51]Read from MH i2c: 01 07 00 [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: 01 07 00 25 D1 00 00 00 00 00 FF 0F 0B [21:25:51]process_action close_receipt done [21:25:51]requested_data is exist [21:25:51]produce_requested_data [21:25:51]requested_item fm.sn is exist - process it [21:25:51]wFMCommunicate request_size=4 [21:25:51]MH_SAM_APDU [21:25:51]CAPDU: 80 11 00 00 [21:25:51]Write to MH i2c: E2 08 00 26 D1 80 11 00 00 00 00 00 00 71 [21:25:51]Write i2c OK [21:25:51]MH_I2C_Read... [21:25:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:51]Read from MH i2c: E2 [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: E2 17 00 [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: E2 17 00 26 D1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 BE [21:25:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:25:51]wFMCommunicate OK [21:25:51]requested_item fd.num is exist - process it [21:25:51]SAM_PROTO_GetFieldsCounters [21:25:51]wFMCommunicate request_size=4 [21:25:51]MH_SAM_APDU [21:25:51]CAPDU: 80 13 00 00 [21:25:51]Write to MH i2c: E2 08 00 27 D1 80 13 00 00 00 00 00 00 74 [21:25:51]Write i2c OK [21:25:51]MH_I2C_Read... [21:25:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:25:52]Read from MH i2c: E2 [21:25:52]MH_I2C_Read... [21:25:52]Read from MH i2c: E2 62 00 [21:25:52]MH_I2C_Read... [21:25:52]Read from MH i2c: E2 62 00 27 D1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 5C FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 02 02 00 00 5E 04 04 00 02 02 00 00 57 04 04 00 03 02 00 00 19 04 04 00 00 00 00 00 90 00 BB [21:25: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 5C FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 02 02 00 00 5E 04 04 00 02 02 00 00 57 04 04 00 03 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:25:52]wFMCommunicate OK [21:25:52]SAM_PROTO_GetFieldsCounters done [21:25:52]requested_item shift.num is exist - process it [21:25:52]requested_item shift.opened is exist - process it [21:25:52]req_shift_opened [21:25:52]FM_GetShiftState [21:25:52]SAM_PROTO_GetShiftState [21:25:52]wFMCommunicate request_size=4 [21:25:52]MH_SAM_APDU [21:25:52]CAPDU: 80 13 01 00 [21:25:52]Write to MH i2c: E2 08 00 28 D1 80 13 01 00 00 00 00 00 76 [21:25:52]Write i2c OK [21:25:52]MH_I2C_Read... [21:25:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:52]Read from MH i2c: E2 [21:25:52]MH_I2C_Read... [21:25:52]Read from MH i2c: E2 0E 00 [21:25:52]MH_I2C_Read... [21:25:52]Read from MH i2c: E2 0E 00 28 D1 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B3 [21:25:52]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:25:52]wFMCommunicate OK [21:25:52]SAM_PROTO_GetShiftState done [21:25:52]FM_GetShiftState done [21:25:52]req_shift_opened done [21:25:52]requested_item shift.open_date is exist - process it [21:25:52]req_shift_open_date [21:25:52]req_shift_open_date done [21:25:52]produce_requested_data done [21:25:52]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260956,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [21:25:52]process_action_free close_receipt [21:25:52]json_value_free [21:25:52]json_value_free done [21:25:52]process_json_proto returns [21:25:52]Send response to host [21:25:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260956,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [21:25:52]free response buf [21:25:52]execute_script done [21:25:52]execute_script returns [21:25:52]free content buf [21:25:52]Sock 9.Close socket [21:25:52]Sock 9.Thread stoped [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:54]accept exits with 7 [21:26:54]New connection [21:26:54]New thread 3066617188 created [21:26:54]Thread 3066473828 joined [21:26:54]Waiting for new connection... [21:26:54] Sock 7.Parse request [21:26:54]Sock 7.Check first char [21:26:54]Sock 7.First char is OK [21:26:54]request: POST /json_proto HTTP/1.0 [21:26:54]Method: POST [21:26:54]URL: /json_proto [21:26:54]Method is POST - this is cgi request [21:26:54]url: /json_proto [21:26:54]query_string will be loaded in cgi processing [21:26:54]execute_cgi json_proto POST (null) [21:26:54]execute_cgi path=json_proto method=POST [21:26:54]POST find Content-Length [21:26:54]Host: 172.17.55.133:8080 [21:26:54]Content-Length: 678 [21:26:54]Content-Type: application/json [21:26:54] [21:26:54]POST finish read [21:26:54]Found Content-Length = 678 [21:26:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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" ] } } [21:26:54]execute_script... [21:26: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)1036511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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" ] } } [21:26:54]POST & json_proto [21:26:54]process_json_proto [21:26:54]json parsed OK: [21:26:54]protocol is kg_v1.0 [21:26:54]action value=close_receipt [21:26:54]process_action close_receipt [21:26:54]cmd_close_receipt [21:26:54]MH_GetDate [21:26:54]Write to MH i2c: F0 00 00 29 D1 E9 [21:26:54]Write i2c OK [21:26:54]MH_I2C_Read... [21:26:54]Read from MH i2c: F0 [21:26:54]MH_I2C_Read... [21:26:54]Read from MH i2c: F0 09 00 [21:26:54]MH_I2C_Read... [21:26:54]Read from MH i2c: F0 09 00 29 D1 00 25 67 C2 66 34 48 D8 65 5F [21:26:54]GetLastDocTimeStamp 1724016353 [21:26:54]current date 1724016421 [21:26:54]FM_GetShiftState [21:26:54]SAM_PROTO_GetShiftState [21:26:54]wFMCommunicate request_size=4 [21:26:54]MH_SAM_APDU [21:26:54]CAPDU: 80 13 01 00 [21:26:54]Write to MH i2c: E2 08 00 2A D1 80 13 01 00 00 00 00 00 78 [21:26:54]Write i2c OK [21:26:54]MH_I2C_Read... [21:26:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:54]Read from MH i2c: E2 [21:26:54]MH_I2C_Read... [21:26:54]Read from MH i2c: E2 0E 00 [21:26:54]MH_I2C_Read... [21:26:54]Read from MH i2c: E2 0E 00 2A D1 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B5 [21:26:54]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:26:54]wFMCommunicate OK [21:26:54]SAM_PROTO_GetShiftState done [21:26:54]FM_GetShiftState done [21:26:54]opened in 1723940556 [21:26:54]opened+sec_in_day 1724026956 [21:26:54]quantity*price = 20001 [21:26:54]sum+1 = 20002 [21:26:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 515 18.08.2024 21:27 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260957 ФПД: 42346497500332 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T212701&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260957&fm=42346497500332&tin=02508201610067®Number=0000000000091865&sum=20000 [21:26:55]StoreToDocumentArchive [21:26:55]shift 449 fd 260957 [21:26:55]save to /storage/0449/doc_00260957 [21:26:55]save last doc name /storage/0449/doc_00260957 to /storage/kkm_last_doc_name [21:26:55]save OK [21:26:55]Clear old archive folders... [21:26:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:26:55]tlvbuf is 004A1F70 [21:26:55]SAM_PROTO_ClearQueue [21:26:55]wFMCommunicate request_size=4 [21:26:55]MH_SAM_APDU [21:26:55]CAPDU: 80 09 00 00 [21:26:55]Write to MH i2c: E2 08 00 37 D1 80 09 00 00 00 00 00 00 7A [21:26:55]Write i2c OK [21:26:55]MH_I2C_Read... [21:26:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:26:55]Read from MH i2c: E2 [21:26:55]MH_I2C_Read... [21:26:55]Read from MH i2c: E2 03 00 [21:26:55]MH_I2C_Read... [21:26:55]Read from MH i2c: E2 03 00 37 D1 00 90 00 7C [21:26:55]RAPDU: 90 00 [21:26:55]wFMCommunicate OK [21:26:55]SAM_PROTO_ClearQueue done [21:26:55]KKMCreateOFDPacket [21:26:55]OFDProtocolAddRootSTLVToBuf [21:26:55]FM_MakeSignedData [21:26:55]FM_MakeSignedData [21:26:55]SAM_PROTO_SignData [21:26:55]wFMCommunicate request_size=4 [21:26:55]MH_SAM_APDU [21:26:55]CAPDU: 80 0D 01 02 [21:26:55]Write to MH i2c: E2 08 00 38 D1 80 0D 01 02 00 00 00 00 82 [21:26:55]Write i2c OK [21:26:55]MH_I2C_Read... [21:26:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:26:55]Read from MH i2c: E2 [21:26:55]MH_I2C_Read... [21:26:55]Read from MH i2c: E2 03 00 [21:26:55]MH_I2C_Read... [21:26:55]Read from MH i2c: E2 03 00 38 D1 00 90 00 7D [21:26:55]RAPDU: 90 00 [21:26:55]wFMCommunicate OK [21:26:55]wFMCommunicate request_size=255 [21:26:55]MH_SAM_APDU [21:26:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 02 00 00 F4 03 04 00 25 67 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5D FB 03 00 35 04 06 00 26 [21:26:55]Write to MH i2c: E2 02 01 39 D1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 02 00 00 F4 03 04 00 25 67 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5D FB 03 00 35 04 06 00 26 00 00 FD [21:26:55]Write i2c OK [21:26:55]MH_I2C_Read... [21:26:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:26:56]Read from MH i2c: E2 [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: E2 03 00 [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: E2 03 00 39 D1 00 90 00 7E [21:26:56]RAPDU: 90 00 [21:26:56]wFMCommunicate OK [21:26:56]wFMCommunicate request_size=10 [21:26:56]MH_SAM_APDU [21:26:56]CAPDU: 80 0D 02 02 05 83 8F F0 E4 AC [21:26:56]Write to MH i2c: E2 0D 00 3A D1 80 0D 02 02 05 00 83 8F F0 E4 AC 00 00 21 [21:26:56]Write i2c OK [21:26:56]MH_I2C_Read... [21:26:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:26:56]Read from MH i2c: E2 [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: E2 03 00 [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: E2 03 00 3A D1 00 90 00 7F [21:26:56]RAPDU: 90 00 [21:26:56]wFMCommunicate OK [21:26:56]wFMCommunicate request_size=4 [21:26:56]MH_SAM_APDU [21:26:56]CAPDU: 80 0D 03 02 [21:26:56]Write to MH i2c: E2 08 00 3B D1 80 0D 03 02 00 00 00 00 87 [21:26:56]Write i2c OK [21:26:56]MH_I2C_Read... [21:26:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:26:56]Read from MH i2c: E2 [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: E2 0B 00 [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: E2 0B 00 3B D1 00 4C 48 23 03 57 68 42 71 90 00 B4 [21:26:56]RAPDU: 4C 48 23 03 57 68 42 71 90 00 [21:26:56]wFMCommunicate OK [21:26:56]SAM_PROTO_SignData done [21:26:56]FM_MakeSignedData done [21:26:56]CreateOFDProtocolMessage [21:26:56]wFMCommunicate request_size=4 [21:26:56]MH_SAM_APDU [21:26:56]CAPDU: 80 11 00 00 [21:26:56]Write to MH i2c: E2 08 00 3C D1 80 11 00 00 00 00 00 00 87 [21:26:56]Write i2c OK [21:26:56]MH_I2C_Read... [21:26:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:56]Read from MH i2c: E2 [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: E2 17 00 [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: E2 17 00 3C D1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D4 [21:26:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:26:56]wFMCommunicate OK [21:26:56]CreateOFDProtocolMessage done [21:26:56]OFDSenderStorePacket 260957 [21:26:56]StoreOFDPacket docnum=260957 [21:26:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 A2 59 07 01 69 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 02 00 00 F4 03 04 00 25 67 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5D FB 03 00 35 04 06 00 26 83 8F F0 E4 AC 4C 48 23 03 57 68 42 71 [21:26:56]CheckFolder [21:26:56]dirname=/storage/ofd_packets [21:26:56]CheckFolder done [21:26:56]ProducePacketName [21:26:56]name=ofd_packets/00260957 [21:26:56]NVStorageSaveData ofd_packets/00260957 [21:26:56]File name is /storage/ofd_packets/00260957 [21:26:56]Write 301 bytes [21:26:56]NVStorageSaveData done [21:26:56]OFDSenderStorePacket done [21:26:56]KKMCreateOFDPacket done [21:26:56]NVStorageSaveData kkm_last_timestamp [21:26:56]File name is /storage/kkm_last_timestamp [21:26:56]Write 4 bytes [21:26:56]NVStorageSaveData done [21:26:56]ExternCall_PrintAddStr [21:26:56]wPrintStart [21:26:56]Write to MH i2c: 01 00 00 3D D1 0E [21:26:56]Write i2c OK [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: 01 [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: 01 07 00 [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: 01 07 00 3D D1 00 00 00 00 00 FF 0F 23 [21:26:56]RasterBufferAndPrint [21:26:56]line Счет N : (1)1036511 [21:26:56]line ИНН: 02508201610067 [21:26:56]line Контрольно-Кассовый Чек [21:26:56]line ПРОДАЖА [21:26:56]line ТРК (МРК, ГНК) : 22 [21:26:56]line Товар: 2710124130 [21:26:56]line Аи-92-К-5 [21:26:56]line 2.950 * 67.80 [21:26:56]line = 200.01 [21:26:56]line НДС 12% НСП 1% [21:26:56]line > о реализуемом товаре [21:26:56]line ОКРУГЛЕНИЕ: -0.01 [21:26:56]line ИТОГО: 200.00 [21:26:56]line Внесено: 200.00 [21:26:56]line СДАЧА: 0.00 [21:26:56]line НСП 1% : 1.77 [21:26:56]line НДС 12% : 21.24 [21:26:56]line Наличными: 200.00 [21:26:56]line Безнал.: 0.00 [21:26:56]line Место: АЗС № 94 "Партнер Нефть" [21:26:56]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [21:26:56]line СНО: Общий режим [21:26:56]line Чек 515 18.08.2024 21:27 [21:26:56]line Смена: 449 ФФД: 1.0 [21:26:56]line ЗНМ: 0300000099 [21:26:56]line РНМ: 0000000000091865 [21:26:56]line Версия ККМ: 001 [21:26:56]line ФМ: 0000000000871820 [21:26:56]line ФД: 260957 [21:26:56]line ФПД: 42346497500332 [21:26:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T212701&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260957&fm=42346497500332&tin=02508201610067®Number=0000000000091865&sum=20000 [21:26:56]written 0, free lines is 4095 [21:26:56]OFD Sender: Processing packet 260957 [packets to send 192, broken 191] [21:26:56]ProducePacketName [21:26:56]name=ofd_packets/00260957 [21:26:56]OFD Sender: To server: pG, [21:26:56]CommunicateWithHost lk.salyk.kg:30040 [21:26:56]ConnectInit lk.salyk.kg [21:26:56]Connected sock=10 [21:26: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 30 0F 01 00 00 A2 59 07 01 69 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 02 00 00 F4 03 04 00 25 67 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5D FB 03 00 35 04 06 00 26 83 8F F0 E4 AC 4C 48 23 03 57 68 42 71 [21:26: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 30 4F 00 00 00 45 AA 47 00 86 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 30 10 04 04 00 5D FB 03 00 F4 03 04 00 79 10 C2 66 B6 04 01 00 00 E9 CB 41 46 68 2B 80 E7 [21:26:56]CommunicateWithHost err = 0 [21:26:56]CheckOFDResponse [21:26:56]1017 (14) - 77093643461234 [21:26:56]1041 (16) - 0000000000871820 [21:26:56]1040 (4) - 260957 [21:26:56]1012 (4) - 18.08.2024 15:17 [21:26:56]1206 (1) - 0 [21:26:56]OFD Sender: Remove packet 260957 [21:26:56]ProducePacketName [21:26:56]name=ofd_packets/00260957 [21:26:56]NVStorageDeleteData [21:26:56]Write to MH i2c: 01 00 00 68 D1 39 [21:26:56]Write i2c OK [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: 01 [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: 01 07 00 [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: 01 07 00 68 D1 00 00 00 00 00 70 0C BC [21:26:56]RasterBufferAndPrint [21:26:56]line [21:26:56]line [21:26:56]line [21:26:56]line [21:26:56]line [21:26:56]written 0, free lines is 3187 [21:26:56]MH_Cut [21:26:56]Write to MH i2c: D1 01 00 6F D1 01 12 [21:26:56]Write i2c OK [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: D1 [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: D1 01 00 [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: D1 01 00 6F D1 00 11 [21:26:56]Write to MH i2c: 01 00 00 70 D1 41 [21:26:56]Write i2c OK [21:26:56]MH_I2C_Read... [21:26:57]OFD Sender: No OFD packet to send [21:26:57]*** Cut start [21:26:57]*** Purtial cut [21:26:57]*** Stage 1: CUTSNS_PIN = 1 [21:26:59]Read from MH i2c: 01 [21:26:59]MH_I2C_Read... [21:26:59]*** Stop cut motor [21:26:59]*** Cut end [21:26:59]Read from MH i2c: 01 07 00 [21:26:59]MH_I2C_Read... [21:26:59]Read from MH i2c: 01 07 00 70 D1 00 00 00 00 00 FF 0F 56 [21:26:59]process_action close_receipt done [21:26:59]requested_data is exist [21:26:59]produce_requested_data [21:26:59]requested_item fm.sn is exist - process it [21:26:59]wFMCommunicate request_size=4 [21:26:59]MH_SAM_APDU [21:26:59]CAPDU: 80 11 00 00 [21:26:59]Write to MH i2c: E2 08 00 71 D1 80 11 00 00 00 00 00 00 BC [21:26:59]Write i2c OK [21:26:59]MH_I2C_Read... [21:26:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:59]Read from MH i2c: E2 [21:26:59]MH_I2C_Read... [21:26:59]Read from MH i2c: E2 17 00 [21:26:59]MH_I2C_Read... [21:26:59]Read from MH i2c: E2 17 00 71 D1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 09 [21:26:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:26:59]wFMCommunicate OK [21:26:59]requested_item fd.num is exist - process it [21:26:59]SAM_PROTO_GetFieldsCounters [21:26:59]wFMCommunicate request_size=4 [21:26:59]MH_SAM_APDU [21:26:59]CAPDU: 80 13 00 00 [21:26:59]Write to MH i2c: E2 08 00 72 D1 80 13 00 00 00 00 00 00 BF [21:26:59]Write i2c OK [21:26:59]MH_I2C_Read... [21:27:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:27:00]Read from MH i2c: E2 [21:27:00]MH_I2C_Read... [21:27:00]Read from MH i2c: E2 62 00 [21:27:00]MH_I2C_Read... [21:27:00]Read from MH i2c: E2 62 00 72 D1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 5D FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 03 02 00 00 5E 04 04 00 03 02 00 00 57 04 04 00 04 02 00 00 19 04 04 00 00 00 00 00 90 00 0A [21:27: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 5D FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 03 02 00 00 5E 04 04 00 03 02 00 00 57 04 04 00 04 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:27:00]wFMCommunicate OK [21:27:00]SAM_PROTO_GetFieldsCounters done [21:27:00]requested_item shift.num is exist - process it [21:27:00]requested_item shift.opened is exist - process it [21:27:00]req_shift_opened [21:27:00]FM_GetShiftState [21:27:00]SAM_PROTO_GetShiftState [21:27:00]wFMCommunicate request_size=4 [21:27:00]MH_SAM_APDU [21:27:00]CAPDU: 80 13 01 00 [21:27:00]Write to MH i2c: E2 08 00 73 D1 80 13 01 00 00 00 00 00 C1 [21:27:00]Write i2c OK [21:27:00]MH_I2C_Read... [21:27:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:00]Read from MH i2c: E2 [21:27:00]MH_I2C_Read... [21:27:00]Read from MH i2c: E2 0E 00 [21:27:00]MH_I2C_Read... [21:27:00]Read from MH i2c: E2 0E 00 73 D1 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 FE [21:27:00]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:27:00]wFMCommunicate OK [21:27:00]SAM_PROTO_GetShiftState done [21:27:00]FM_GetShiftState done [21:27:00]req_shift_opened done [21:27:00]requested_item shift.open_date is exist - process it [21:27:00]req_shift_open_date [21:27:00]req_shift_open_date done [21:27:00]produce_requested_data done [21:27:00]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260957,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [21:27:00]process_action_free close_receipt [21:27:00]json_value_free [21:27:00]json_value_free done [21:27:00]process_json_proto returns [21:27:00]Send response to host [21:27:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260957,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [21:27:00]free response buf [21:27:00]execute_script done [21:27:00]execute_script returns [21:27:00]free content buf [21:27:00]Sock 7.Close socket [21:27:00]Sock 7.Thread stoped [21:27:02]OFD Sender: No OFD packet to send [21:27:05]accept exits with 9 [21:27:05]New connection [21:27:05]New thread 3066473828 created [21:27:05]Thread 3066617188 joined [21:27:05]Waiting for new connection... [21:27:05] Sock 9.Parse request [21:27:05]Sock 9.Check first char [21:27:05]Sock 9.First char is OK [21:27:05]request: POST /json_proto HTTP/1.0 [21:27:05]Method: POST [21:27:05]URL: /json_proto [21:27:05]Method is POST - this is cgi request [21:27:05]url: /json_proto [21:27:05]query_string will be loaded in cgi processing [21:27:05]execute_cgi json_proto POST (null) [21:27:05]execute_cgi path=json_proto method=POST [21:27:05]POST find Content-Length [21:27:05]Host: 172.17.55.133:8080 [21:27:05]Content-Length: 683 [21:27:05]Content-Type: application/json [21:27:05] [21:27:05]POST finish read [21:27:05]Found Content-Length = 683 [21:27:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:05]execute_script... [21:27: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)1036510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:05]POST & json_proto [21:27:05]process_json_proto [21:27:05]json parsed OK: [21:27:05]protocol is kg_v1.0 [21:27:05]action value=close_receipt [21:27:05]process_action close_receipt [21:27:05]cmd_close_receipt [21:27:05]MH_GetDate [21:27:05]Write to MH i2c: F0 00 00 74 D1 34 [21:27:05]Write i2c OK [21:27:05]MH_I2C_Read... [21:27:05]Read from MH i2c: F0 [21:27:05]MH_I2C_Read... [21:27:05]Read from MH i2c: F0 09 00 [21:27:05]MH_I2C_Read... [21:27:05]Read from MH i2c: F0 09 00 74 D1 00 30 67 C2 66 34 48 D8 65 B5 [21:27:05]GetLastDocTimeStamp 1724016421 [21:27:05]current date 1724016432 [21:27:05]FM_GetShiftState [21:27:05]SAM_PROTO_GetShiftState [21:27:05]wFMCommunicate request_size=4 [21:27:05]MH_SAM_APDU [21:27:05]CAPDU: 80 13 01 00 [21:27:05]Write to MH i2c: E2 08 00 75 D1 80 13 01 00 00 00 00 00 C3 [21:27:05]Write i2c OK [21:27:05]MH_I2C_Read... [21:27:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:05]Read from MH i2c: E2 [21:27:05]MH_I2C_Read... [21:27:05]Read from MH i2c: E2 0E 00 [21:27:05]MH_I2C_Read... [21:27:05]Read from MH i2c: E2 0E 00 75 D1 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 00 [21:27:05]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:27:05]wFMCommunicate OK [21:27:05]SAM_PROTO_GetShiftState done [21:27:05]FM_GetShiftState done [21:27:05]opened in 1723940556 [21:27:05]opened+sec_in_day 1724026956 [21:27:05]quantity*price = 100005 [21:27:05]sum+1 = 100006 [21:27:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 516 18.08.2024 21:27 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260958 ФПД: 64451752537944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T212712&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260958&fm=64451752537944&tin=02508201610067®Number=0000000000091865&sum=100000 [21:27:06]StoreToDocumentArchive [21:27:06]shift 449 fd 260958 [21:27:06]save to /storage/0449/doc_00260958 [21:27:06]save last doc name /storage/0449/doc_00260958 to /storage/kkm_last_doc_name [21:27:06]save OK [21:27:06]Clear old archive folders... [21:27:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:27:06]tlvbuf is 004513D0 [21:27:06]SAM_PROTO_ClearQueue [21:27:06]wFMCommunicate request_size=4 [21:27:06]MH_SAM_APDU [21:27:06]CAPDU: 80 09 00 00 [21:27:06]Write to MH i2c: E2 08 00 82 D1 80 09 00 00 00 00 00 00 C5 [21:27:06]Write i2c OK [21:27:06]MH_I2C_Read... [21:27:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:27:06]Read from MH i2c: E2 [21:27:06]MH_I2C_Read... [21:27:06]Read from MH i2c: E2 03 00 [21:27:06]MH_I2C_Read... [21:27:06]Read from MH i2c: E2 03 00 82 D1 00 90 00 C7 [21:27:06]RAPDU: 90 00 [21:27:06]wFMCommunicate OK [21:27:06]SAM_PROTO_ClearQueue done [21:27:06]KKMCreateOFDPacket [21:27:06]OFDProtocolAddRootSTLVToBuf [21:27:06]FM_MakeSignedData [21:27:06]FM_MakeSignedData [21:27:06]SAM_PROTO_SignData [21:27:06]wFMCommunicate request_size=4 [21:27:06]MH_SAM_APDU [21:27:06]CAPDU: 80 0D 01 02 [21:27:06]Write to MH i2c: E2 08 00 83 D1 80 0D 01 02 00 00 00 00 CD [21:27:06]Write i2c OK [21:27:06]MH_I2C_Read... [21:27:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:27:06]Read from MH i2c: E2 [21:27:06]MH_I2C_Read... [21:27:06]Read from MH i2c: E2 03 00 [21:27:06]MH_I2C_Read... [21:27:06]Read from MH i2c: E2 03 00 83 D1 00 90 00 C8 [21:27:06]RAPDU: 90 00 [21:27:06]wFMCommunicate OK [21:27:06]wFMCommunicate request_size=255 [21:27:06]MH_SAM_APDU [21:27:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 02 00 00 F4 03 04 00 30 67 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5E FB 03 00 35 04 06 00 3A [21:27:06]Write to MH i2c: E2 02 01 84 D1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 02 00 00 F4 03 04 00 30 67 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5E FB 03 00 35 04 06 00 3A 00 00 F6 [21:27:06]Write i2c OK [21:27:06]MH_I2C_Read... [21:27:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:07]Read from MH i2c: E2 [21:27:07]MH_I2C_Read... [21:27:07]Read from MH i2c: E2 03 00 [21:27:07]MH_I2C_Read... [21:27:07]Read from MH i2c: E2 03 00 84 D1 00 90 00 C9 [21:27:07]RAPDU: 90 00 [21:27:07]wFMCommunicate OK [21:27:07]wFMCommunicate request_size=10 [21:27:07]MH_SAM_APDU [21:27:07]CAPDU: 80 0D 02 02 05 9E 57 D0 AF 58 [21:27:07]Write to MH i2c: E2 0D 00 85 D1 80 0D 02 02 05 00 9E 57 D0 AF 58 00 00 A6 [21:27:07]Write i2c OK [21:27:07]MH_I2C_Read... [21:27:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:07]Read from MH i2c: E2 [21:27:07]MH_I2C_Read... [21:27:07]Read from MH i2c: E2 03 00 [21:27:07]MH_I2C_Read... [21:27:07]Read from MH i2c: E2 03 00 85 D1 00 90 00 CA [21:27:07]RAPDU: 90 00 [21:27:07]wFMCommunicate OK [21:27:07]wFMCommunicate request_size=4 [21:27:07]MH_SAM_APDU [21:27:07]CAPDU: 80 0D 03 02 [21:27:07]Write to MH i2c: E2 08 00 86 D1 80 0D 03 02 00 00 00 00 D2 [21:27:07]Write i2c OK [21:27:07]MH_I2C_Read... [21:27:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:27:07]Read from MH i2c: E2 [21:27:07]MH_I2C_Read... [21:27:07]Read from MH i2c: E2 0B 00 [21:27:07]MH_I2C_Read... [21:27:07]Read from MH i2c: E2 0B 00 86 D1 00 C6 F6 A0 0C 6D D5 EC 2B 90 00 94 [21:27:07]RAPDU: C6 F6 A0 0C 6D D5 EC 2B 90 00 [21:27:07]wFMCommunicate OK [21:27:07]SAM_PROTO_SignData done [21:27:07]FM_MakeSignedData done [21:27:07]CreateOFDProtocolMessage [21:27:07]wFMCommunicate request_size=4 [21:27:07]MH_SAM_APDU [21:27:07]CAPDU: 80 11 00 00 [21:27:07]Write to MH i2c: E2 08 00 87 D1 80 11 00 00 00 00 00 00 D2 [21:27:07]Write i2c OK [21:27:07]MH_I2C_Read... [21:27:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:07]Read from MH i2c: E2 [21:27:07]MH_I2C_Read... [21:27:07]Read from MH i2c: E2 17 00 [21:27:07]MH_I2C_Read... [21:27:07]Read from MH i2c: E2 17 00 87 D1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 1F [21:27:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:27:07]wFMCommunicate OK [21:27:07]CreateOFDProtocolMessage done [21:27:07]OFDSenderStorePacket 260958 [21:27:07]StoreOFDPacket docnum=260958 [21:27:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 CD 84 07 01 7D D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 02 00 00 F4 03 04 00 30 67 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5E FB 03 00 35 04 06 00 3A 9E 57 D0 AF 58 C6 F6 A0 0C 6D D5 EC 2B [21:27:07]CheckFolder [21:27:07]dirname=/storage/ofd_packets [21:27:07]CheckFolder done [21:27:07]ProducePacketName [21:27:07]name=ofd_packets/00260958 [21:27:07]NVStorageSaveData ofd_packets/00260958 [21:27:07]File name is /storage/ofd_packets/00260958 [21:27:07]Write 301 bytes [21:27:07]NVStorageSaveData done [21:27:07]OFDSenderStorePacket done [21:27:07]KKMCreateOFDPacket done [21:27:07]NVStorageSaveData kkm_last_timestamp [21:27:07]File name is /storage/kkm_last_timestamp [21:27:07]Write 4 bytes [21:27:07]NVStorageSaveData done [21:27:07]ExternCall_PrintAddStr [21:27:07]wPrintStart [21:27:07]Write to MH i2c: 01 00 00 88 D1 59 [21:27:07]Write i2c OK [21:27:07]MH_I2C_Read... [21:27:07]Read from MH i2c: 01 [21:27:07]MH_I2C_Read... [21:27:07]Read from MH i2c: 01 07 00 [21:27:07]MH_I2C_Read... [21:27:07]Read from MH i2c: 01 07 00 88 D1 00 00 00 00 00 FF 0F 6E [21:27:07]RasterBufferAndPrint [21:27:07]line Счет N : (1)1036510 [21:27:07]line ИНН: 02508201610067 [21:27:07]line Контрольно-Кассовый Чек [21:27:07]line ПРОДАЖА [21:27:07]line ТРК (МРК, ГНК) : 12 [21:27:07]line Товар: 2710124130 [21:27:07]line Аи-92-К-5 [21:27:07]line 14.750 * 67.80 [21:27:07]line = 1000.05 [21:27:07]line НДС 12% НСП 1% [21:27:07]line > о реализуемом товаре [21:27:07]line ОКРУГЛЕНИЕ: -0.05 [21:27:07]line ИТОГО: 1000.00 [21:27:07]line Внесено: 1000.00 [21:27:07]line СДАЧА: 0.00 [21:27:07]line НСП 1% : 8.85 [21:27:07]line НДС 12% : 106.20 [21:27:07]line Наличными: 1000.00 [21:27:07]line Безнал.: 0.00 [21:27:07]line Место: АЗС № 94 "Партнер Нефть" [21:27:07]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [21:27:07]line СНО: Общий режим [21:27:07]line Чек 516 18.08.2024 21:27 [21:27:07]line Смена: 449 ФФД: 1.0 [21:27:07]line ЗНМ: 0300000099 [21:27:07]line РНМ: 0000000000091865 [21:27:07]line Версия ККМ: 001 [21:27:07]line ФМ: 0000000000871820 [21:27:07]line ФД: 260958 [21:27:07]line ФПД: 64451752537944 [21:27:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T212712&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260958&fm=64451752537944&tin=02508201610067®Number=0000000000091865&sum=100000 [21:27:07]OFD Sender: Processing packet 260958 [packets to send 192, broken 191] [21:27:07]ProducePacketName [21:27:07]name=ofd_packets/00260958 [21:27:07]OFD Sender: To server: pG, [21:27:07]CommunicateWithHost lk.salyk.kg:30040 [21:27:07]ConnectInit lk.salyk.kg [21:27:07]written 0, free lines is 4095 [21:27:07]Connected sock=10 [21:27: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 30 0F 01 00 00 CD 84 07 01 7D D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 02 00 00 F4 03 04 00 30 67 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5E FB 03 00 35 04 06 00 3A 9E 57 D0 AF 58 C6 F6 A0 0C 6D D5 EC 2B [21:27: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 30 4F 00 00 00 A2 A9 47 00 CD EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 5E FB 03 00 F4 03 04 00 84 10 C2 66 B6 04 01 00 00 79 95 AA E9 26 82 98 F8 [21:27:07]CommunicateWithHost err = 0 [21:27:07]CheckOFDResponse [21:27:07]1017 (14) - 77093643461234 [21:27:07]1041 (16) - 0000000000871820 [21:27:07]1040 (4) - 260958 [21:27:07]1012 (4) - 18.08.2024 15:17 [21:27:07]1206 (1) - 0 [21:27:07]OFD Sender: Remove packet 260958 [21:27:07]ProducePacketName [21:27:07]name=ofd_packets/00260958 [21:27:07]NVStorageDeleteData [21:27:07]Write to MH i2c: 01 00 00 B3 D1 84 [21:27:07]Write i2c OK [21:27:07]MH_I2C_Read... [21:27:07]Read from MH i2c: 01 [21:27:07]MH_I2C_Read... [21:27:07]Read from MH i2c: 01 07 00 [21:27:07]MH_I2C_Read... [21:27:07]Read from MH i2c: 01 07 00 B3 D1 00 00 00 00 00 79 0C 10 [21:27:07]RasterBufferAndPrint [21:27:07]line [21:27:07]line [21:27:07]line [21:27:07]line [21:27:07]line [21:27:07]written 0, free lines is 3198 [21:27:07]MH_Cut [21:27:07]Write to MH i2c: D1 01 00 BA D1 01 5D [21:27:07]Write i2c OK [21:27:07]MH_I2C_Read... [21:27:07]Read from MH i2c: D1 [21:27:07]MH_I2C_Read... [21:27:07]Read from MH i2c: D1 01 00 [21:27:07]MH_I2C_Read... [21:27:07]Read from MH i2c: D1 01 00 BA D1 00 5C [21:27:07]Write to MH i2c: 01 00 00 BB D1 8C [21:27:07]Write i2c OK [21:27:07]MH_I2C_Read... [21:27:08]OFD Sender: No OFD packet to send [21:27:08]*** Cut start [21:27:08]*** Purtial cut [21:27:08]*** Stage 1: CUTSNS_PIN = 1 [21:27:10]Read from MH i2c: 01 [21:27:10]MH_I2C_Read... [21:27:10]*** Stop cut motor [21:27:10]*** Cut end [21:27:10]Read from MH i2c: 01 07 00 [21:27:10]MH_I2C_Read... [21:27:10]Read from MH i2c: 01 07 00 BB D1 00 00 00 00 00 FF 0F A1 [21:27:10]process_action close_receipt done [21:27:10]requested_data is exist [21:27:10]produce_requested_data [21:27:10]requested_item fm.sn is exist - process it [21:27:10]wFMCommunicate request_size=4 [21:27:10]MH_SAM_APDU [21:27:10]CAPDU: 80 11 00 00 [21:27:10]Write to MH i2c: E2 08 00 BC D1 80 11 00 00 00 00 00 00 07 [21:27:10]Write i2c OK [21:27:10]MH_I2C_Read... [21:27:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:10]Read from MH i2c: E2 [21:27:10]MH_I2C_Read... [21:27:10]Read from MH i2c: E2 17 00 [21:27:10]MH_I2C_Read... [21:27:10]Read from MH i2c: E2 17 00 BC D1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 54 [21:27:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:27:10]wFMCommunicate OK [21:27:10]requested_item fd.num is exist - process it [21:27:10]SAM_PROTO_GetFieldsCounters [21:27:10]wFMCommunicate request_size=4 [21:27:10]MH_SAM_APDU [21:27:10]CAPDU: 80 13 00 00 [21:27:10]Write to MH i2c: E2 08 00 BD D1 80 13 00 00 00 00 00 00 0A [21:27:10]Write i2c OK [21:27:10]MH_I2C_Read... [21:27:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:27:11]Read from MH i2c: E2 [21:27:11]MH_I2C_Read... [21:27:11]Read from MH i2c: E2 62 00 [21:27:11]MH_I2C_Read... [21:27:11]Read from MH i2c: E2 62 00 BD D1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 5E FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 04 02 00 00 5E 04 04 00 04 02 00 00 57 04 04 00 05 02 00 00 19 04 04 00 00 00 00 00 90 00 59 [21:27: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 5E FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 04 02 00 00 5E 04 04 00 04 02 00 00 57 04 04 00 05 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:27:11]wFMCommunicate OK [21:27:11]SAM_PROTO_GetFieldsCounters done [21:27:11]requested_item shift.num is exist - process it [21:27:11]requested_item shift.opened is exist - process it [21:27:11]req_shift_opened [21:27:11]FM_GetShiftState [21:27:11]SAM_PROTO_GetShiftState [21:27:11]wFMCommunicate request_size=4 [21:27:11]MH_SAM_APDU [21:27:11]CAPDU: 80 13 01 00 [21:27:11]Write to MH i2c: E2 08 00 BE D1 80 13 01 00 00 00 00 00 0C [21:27:11]Write i2c OK [21:27:11]MH_I2C_Read... [21:27:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:11]Read from MH i2c: E2 [21:27:11]MH_I2C_Read... [21:27:11]Read from MH i2c: E2 0E 00 [21:27:11]MH_I2C_Read... [21:27:11]Read from MH i2c: E2 0E 00 BE D1 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 49 [21:27:11]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:27:11]wFMCommunicate OK [21:27:11]SAM_PROTO_GetShiftState done [21:27:11]FM_GetShiftState done [21:27:11]req_shift_opened done [21:27:11]requested_item shift.open_date is exist - process it [21:27:11]req_shift_open_date [21:27:11]req_shift_open_date done [21:27:11]produce_requested_data done [21:27:11]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260958,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [21:27:11]process_action_free close_receipt [21:27:11]json_value_free [21:27:11]json_value_free done [21:27:11]process_json_proto returns [21:27:11]Send response to host [21:27:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260958,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [21:27:11]free response buf [21:27:11]execute_script done [21:27:11]execute_script returns [21:27:11]free content buf [21:27:11]Sock 9.Close socket [21:27:11]Sock 9.Thread stoped [21:27:13]OFD Sender: No OFD packet to send [21:27:18]OFD Sender: No OFD packet to send [21:27:23]OFD Sender: No OFD packet to send [21:27:28]OFD Sender: No OFD packet to send [21:27:33]OFD Sender: No OFD packet to send [21:27:38]OFD Sender: No OFD packet to send [21:27:43]OFD Sender: No OFD packet to send [21:27:48]OFD Sender: No OFD packet to send [21:27:53]OFD Sender: No OFD packet to send [21:27:58]OFD Sender: No OFD packet to send [21:28:03]OFD Sender: No OFD packet to send [21:28:08]OFD Sender: No OFD packet to send [21:28:13]OFD Sender: No OFD packet to send [21:28:18]OFD Sender: No OFD packet to send [21:28:23]OFD Sender: No OFD packet to send [21:28:28]OFD Sender: No OFD packet to send [21:28:33]OFD Sender: No OFD packet to send [21:28:38]OFD Sender: No OFD packet to send [21:28:43]OFD Sender: No OFD packet to send [21:28:48]OFD Sender: No OFD packet to send [21:28:53]OFD Sender: No OFD packet to send [21:28:58]OFD Sender: No OFD packet to send [21:29:03]OFD Sender: No OFD packet to send [21:29:07]accept exits with 7 [21:29:07]New connection [21:29:07]New thread 3066617188 created [21:29:07]Thread 3066473828 joined [21:29:07]Waiting for new connection... [21:29:07] Sock 7.Parse request [21:29:07]Sock 7.Check first char [21:29:07]Sock 7.First char is OK [21:29:07]request: POST /json_proto HTTP/1.0 [21:29:07]Method: POST [21:29:07]URL: /json_proto [21:29:07]Method is POST - this is cgi request [21:29:07]url: /json_proto [21:29:07]query_string will be loaded in cgi processing [21:29:07]execute_cgi json_proto POST (null) [21:29:07]execute_cgi path=json_proto method=POST [21:29:07]POST find Content-Length [21:29:07]Host: 172.17.55.133:8080 [21:29:07]Content-Length: 683 [21:29:07]Content-Type: application/json [21:29:07] [21:29:07]POST finish read [21:29:07]Found Content-Length = 683 [21:29:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 17.700, "sum" : 1200.06, "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" ] } } [21:29:07]execute_script... [21:29:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 17.700, "sum" : 1200.06, "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" ] } } [21:29:07]POST & json_proto [21:29:07]process_json_proto [21:29:07]json parsed OK: [21:29:07]protocol is kg_v1.0 [21:29:07]action value=close_receipt [21:29:07]process_action close_receipt [21:29:07]cmd_close_receipt [21:29:07]MH_GetDate [21:29:07]Write to MH i2c: F0 00 00 BF D1 7F [21:29:07]Write i2c OK [21:29:07]MH_I2C_Read... [21:29:07]Read from MH i2c: F0 [21:29:07]MH_I2C_Read... [21:29:07]Read from MH i2c: F0 09 00 [21:29:07]MH_I2C_Read... [21:29:07]Read from MH i2c: F0 09 00 BF D1 00 AA 67 C2 66 34 48 D8 65 7A [21:29:07]GetLastDocTimeStamp 1724016432 [21:29:07]current date 1724016554 [21:29:07]FM_GetShiftState [21:29:07]SAM_PROTO_GetShiftState [21:29:07]wFMCommunicate request_size=4 [21:29:07]MH_SAM_APDU [21:29:07]CAPDU: 80 13 01 00 [21:29:07]Write to MH i2c: E2 08 00 C0 D1 80 13 01 00 00 00 00 00 0E [21:29:07]Write i2c OK [21:29:07]MH_I2C_Read... [21:29:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:07]Read from MH i2c: E2 [21:29:07]MH_I2C_Read... [21:29:07]Read from MH i2c: E2 0E 00 [21:29:07]MH_I2C_Read... [21:29:07]Read from MH i2c: E2 0E 00 C0 D1 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 4B [21:29:07]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:29:07]wFMCommunicate OK [21:29:07]SAM_PROTO_GetShiftState done [21:29:07]FM_GetShiftState done [21:29:07]opened in 1723940556 [21:29:07]opened+sec_in_day 1724026956 [21:29:07]quantity*price = 120006 [21:29:07]sum+1 = 120007 [21:29:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 517 18.08.2024 21:29 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260959 ФПД: 63842921218638 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T212914&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260959&fm=63842921218638&tin=02508201610067®Number=0000000000091865&sum=120000 [21:29:08]StoreToDocumentArchive [21:29:08]shift 449 fd 260959 [21:29:08]save to /storage/0449/doc_00260959 [21:29:08]save last doc name /storage/0449/doc_00260959 to /storage/kkm_last_doc_name [21:29:08]save OK [21:29:08]Clear old archive folders... [21:29:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:29:08]tlvbuf is 00387880 [21:29:08]SAM_PROTO_ClearQueue [21:29:08]wFMCommunicate request_size=4 [21:29:08]MH_SAM_APDU [21:29:08]CAPDU: 80 09 00 00 [21:29:08]Write to MH i2c: E2 08 00 CD D1 80 09 00 00 00 00 00 00 10 [21:29:08]Write i2c OK [21:29:08]MH_I2C_Read... [21:29:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:29:08]Read from MH i2c: E2 [21:29:08]MH_I2C_Read... [21:29:08]Read from MH i2c: E2 03 00 [21:29:08]MH_I2C_Read... [21:29:08]Read from MH i2c: E2 03 00 CD D1 00 90 00 12 [21:29:08]RAPDU: 90 00 [21:29:08]wFMCommunicate OK [21:29:08]SAM_PROTO_ClearQueue done [21:29:08]KKMCreateOFDPacket [21:29:08]OFDProtocolAddRootSTLVToBuf [21:29:08]FM_MakeSignedData [21:29:08]FM_MakeSignedData [21:29:08]SAM_PROTO_SignData [21:29:08]wFMCommunicate request_size=4 [21:29:08]MH_SAM_APDU [21:29:08]CAPDU: 80 0D 01 02 [21:29:08]Write to MH i2c: E2 08 00 CE D1 80 0D 01 02 00 00 00 00 18 [21:29:08]Write i2c OK [21:29:08]MH_I2C_Read... [21:29:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:29:08]Read from MH i2c: E2 [21:29:08]MH_I2C_Read... [21:29:08]Read from MH i2c: E2 03 00 [21:29:08]MH_I2C_Read... [21:29:08]Read from MH i2c: E2 03 00 CE D1 00 90 00 13 [21:29:08]RAPDU: 90 00 [21:29:08]wFMCommunicate OK [21:29:08]wFMCommunicate request_size=255 [21:29:08]MH_SAM_APDU [21: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 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 02 00 00 F4 03 04 00 AA 67 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5F FB 03 00 35 04 06 00 3A [21:29:08]Write to MH i2c: E2 02 01 CF D1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 02 00 00 F4 03 04 00 AA 67 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5F FB 03 00 35 04 06 00 3A 00 00 A0 [21:29:08]Write i2c OK [21:29:08]MH_I2C_Read... [21:29:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:09]Read from MH i2c: E2 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 03 00 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 03 00 CF D1 00 90 00 14 [21:29:09]RAPDU: 90 00 [21:29:09]wFMCommunicate OK [21:29:09]wFMCommunicate request_size=10 [21:29:09]MH_SAM_APDU [21:29:09]CAPDU: 80 0D 02 02 05 10 96 A4 02 4E [21:29:09]Write to MH i2c: E2 0D 00 D0 D1 80 0D 02 02 05 00 10 96 A4 02 4E 00 00 BF [21:29:09]Write i2c OK [21:29:09]MH_I2C_Read... [21:29:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:09]Read from MH i2c: E2 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 03 00 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 03 00 D0 D1 00 90 00 15 [21:29:09]RAPDU: 90 00 [21:29:09]wFMCommunicate OK [21:29:09]wFMCommunicate request_size=4 [21:29:09]MH_SAM_APDU [21:29:09]CAPDU: 80 0D 03 02 [21:29:09]Write to MH i2c: E2 08 00 D1 D1 80 0D 03 02 00 00 00 00 1D [21:29:09]Write i2c OK [21:29:09]MH_I2C_Read... [21:29:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:29:09]Read from MH i2c: E2 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 0B 00 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 0B 00 D1 D1 00 02 B9 04 BB DC 15 AD FD 90 00 33 [21:29:09]RAPDU: 02 B9 04 BB DC 15 AD FD 90 00 [21:29:09]wFMCommunicate OK [21:29:09]SAM_PROTO_SignData done [21:29:09]FM_MakeSignedData done [21:29:09]CreateOFDProtocolMessage [21:29:09]wFMCommunicate request_size=4 [21:29:09]MH_SAM_APDU [21:29:09]CAPDU: 80 11 00 00 [21:29:09]Write to MH i2c: E2 08 00 D2 D1 80 11 00 00 00 00 00 00 1D [21:29:09]Write i2c OK [21:29:09]MH_I2C_Read... [21:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:09]Read from MH i2c: E2 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 17 00 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 17 00 D2 D1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 6A [21:29:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:29:09]wFMCommunicate OK [21:29:09]CreateOFDProtocolMessage done [21:29:09]OFDSenderStorePacket 260959 [21:29:09]StoreOFDPacket docnum=260959 [21:29:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 27 E5 07 01 12 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 02 00 00 F4 03 04 00 AA 67 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5F FB 03 00 35 04 06 00 3A 10 96 A4 02 4E 02 B9 04 BB DC 15 AD FD [21:29:09]CheckFolder [21:29:09]dirname=/storage/ofd_packets [21:29:09]CheckFolder done [21:29:09]ProducePacketName [21:29:09]name=ofd_packets/00260959 [21:29:09]NVStorageSaveData ofd_packets/00260959 [21:29:09]File name is /storage/ofd_packets/00260959 [21:29:09]Write 301 bytes [21:29:09]NVStorageSaveData done [21:29:09]OFDSenderStorePacket done [21:29:09]KKMCreateOFDPacket done [21:29:09]NVStorageSaveData kkm_last_timestamp [21:29:09]File name is /storage/kkm_last_timestamp [21:29:09]Write 4 bytes [21:29:09]NVStorageSaveData done [21:29:09]ExternCall_PrintAddStr [21:29:09]wPrintStart [21:29:09]Write to MH i2c: 01 00 00 D3 D1 A4 [21:29:09]Write i2c OK [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: 01 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: 01 07 00 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: 01 07 00 D3 D1 00 00 00 00 00 FF 0F B9 [21:29:09]RasterBufferAndPrint [21:29:09]line Счет N : (1)1036513 [21:29:09]line ИНН: 02508201610067 [21:29:09]line Контрольно-Кассовый Чек [21:29:09]line ПРОДАЖА [21:29:09]line ТРК (МРК, ГНК) : 22 [21:29:09]line Товар: 2710124130 [21:29:09]line Аи-92-К-5 [21:29:09]line 17.700 * 67.80 [21:29:09]line = 1200.06 [21:29:09]line НДС 12% НСП 1% [21:29:09]line > о реализуемом товаре [21:29:09]line ОКРУГЛЕНИЕ: -0.06 [21:29:09]line ИТОГО: 1200.00 [21:29:09]line Внесено: 1200.00 [21:29:09]line СДАЧА: 0.00 [21:29:09]line НСП 1% : 10.62 [21:29:09]line НДС 12% : 127.44 [21:29:09]line Наличными: 1200.00 [21:29:09]line Безнал.: 0.00 [21:29:09]line Место: АЗС № 94 "Партнер Нефть" [21:29:09]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [21:29:09]line СНО: Общий режим [21:29:09]line Чек 517 18.08.2024 21:29 [21:29:09]line Смена: 449 ФФД: 1.0 [21:29:09]line ЗНМ: 0300000099 [21:29:09]line РНМ: 0000000000091865 [21:29:09]line Версия ККМ: 001 [21:29:09]line ФМ: 0000000000871820 [21:29:09]line ФД: 260959 [21:29:09]line ФПД: 63842921218638 [21:29:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T212914&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260959&fm=63842921218638&tin=02508201610067®Number=0000000000091865&sum=120000 [21:29:09]written 0, free lines is 4095 [21:29:09]OFD Sender: Processing packet 260959 [packets to send 192, broken 191] [21:29:09]ProducePacketName [21:29:09]name=ofd_packets/00260959 [21:29:09]OFD Sender: To server: pG, [21:29:09]CommunicateWithHost lk.salyk.kg:30040 [21:29:09]ConnectInit lk.salyk.kg [21:29:09]Connected sock=10 [21:29: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 30 0F 01 00 00 27 E5 07 01 12 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 02 00 00 F4 03 04 00 AA 67 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 5F FB 03 00 35 04 06 00 3A 10 96 A4 02 4E 02 B9 04 BB DC 15 AD FD [21: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 30 4F 00 00 00 2A E2 47 00 E9 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 30 10 04 04 00 5F FB 03 00 F4 03 04 00 FE 10 C2 66 B6 04 01 00 00 B6 04 12 13 47 B6 5F B9 [21:29:09]CommunicateWithHost err = 0 [21:29:09]CheckOFDResponse [21:29:09]1017 (14) - 77093643461234 [21:29:09]1041 (16) - 0000000000871820 [21:29:09]1040 (4) - 260959 [21:29:09]1012 (4) - 18.08.2024 15:19 [21:29:09]1206 (1) - 0 [21:29:09]OFD Sender: Remove packet 260959 [21:29:09]ProducePacketName [21:29:09]name=ofd_packets/00260959 [21:29:09]NVStorageDeleteData [21:29:09]Write to MH i2c: 01 00 00 FE D1 CF [21:29:09]Write i2c OK [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: 01 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: 01 07 00 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: 01 07 00 FE D1 00 00 00 00 00 73 0C 55 [21:29:09]RasterBufferAndPrint [21:29:09]line [21:29:09]line [21:29:09]line [21:29:09]line [21:29:09]line [21:29:09]written 0, free lines is 3191 [21:29:09]MH_Cut [21:29:09]Write to MH i2c: D1 01 00 05 D2 01 A9 [21:29:09]Write i2c OK [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: D1 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: D1 01 00 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: D1 01 00 05 D2 00 A8 [21:29:09]Write to MH i2c: 01 00 00 06 D2 D8 [21:29:09]Write i2c OK [21:29:09]MH_I2C_Read... [21:29:10]OFD Sender: No OFD packet to send [21:29:10]*** Cut start [21:29:10]*** Purtial cut [21:29:10]*** Stage 1: CUTSNS_PIN = 1 [21:29:12]Read from MH i2c: 01 [21:29:12]MH_I2C_Read... [21:29:12]*** Stop cut motor [21:29:12]*** Cut end [21:29:12]Read from MH i2c: 01 07 00 [21:29:12]MH_I2C_Read... [21:29:12]Read from MH i2c: 01 07 00 06 D2 00 00 00 00 00 FF 0F ED [21:29:12]process_action close_receipt done [21:29:12]requested_data is exist [21:29:12]produce_requested_data [21:29:12]requested_item fm.sn is exist - process it [21:29:12]wFMCommunicate request_size=4 [21:29:12]MH_SAM_APDU [21:29:12]CAPDU: 80 11 00 00 [21:29:12]Write to MH i2c: E2 08 00 07 D2 80 11 00 00 00 00 00 00 53 [21:29:12]Write i2c OK [21:29:12]MH_I2C_Read... [21:29:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:12]Read from MH i2c: E2 [21:29:12]MH_I2C_Read... [21:29:12]Read from MH i2c: E2 17 00 [21:29:12]MH_I2C_Read... [21:29:12]Read from MH i2c: E2 17 00 07 D2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A0 [21:29:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:29:12]wFMCommunicate OK [21:29:12]requested_item fd.num is exist - process it [21:29:12]SAM_PROTO_GetFieldsCounters [21:29:12]wFMCommunicate request_size=4 [21:29:12]MH_SAM_APDU [21:29:12]CAPDU: 80 13 00 00 [21:29:12]Write to MH i2c: E2 08 00 08 D2 80 13 00 00 00 00 00 00 56 [21:29:12]Write i2c OK [21:29:12]MH_I2C_Read... [21:29:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:29:13]Read from MH i2c: E2 [21:29:13]MH_I2C_Read... [21:29:13]Read from MH i2c: E2 62 00 [21:29:13]MH_I2C_Read... [21:29:13]Read from MH i2c: E2 62 00 08 D2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 5F FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 05 02 00 00 5E 04 04 00 05 02 00 00 57 04 04 00 06 02 00 00 19 04 04 00 00 00 00 00 90 00 A9 [21:29: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 5F FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 05 02 00 00 5E 04 04 00 05 02 00 00 57 04 04 00 06 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:29:13]wFMCommunicate OK [21:29:13]SAM_PROTO_GetFieldsCounters done [21:29:13]requested_item shift.num is exist - process it [21:29:13]requested_item shift.opened is exist - process it [21:29:13]req_shift_opened [21:29:13]FM_GetShiftState [21:29:13]SAM_PROTO_GetShiftState [21:29:13]wFMCommunicate request_size=4 [21:29:13]MH_SAM_APDU [21:29:13]CAPDU: 80 13 01 00 [21:29:13]Write to MH i2c: E2 08 00 09 D2 80 13 01 00 00 00 00 00 58 [21:29:13]Write i2c OK [21:29:13]MH_I2C_Read... [21:29:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:13]Read from MH i2c: E2 [21:29:13]MH_I2C_Read... [21:29:13]Read from MH i2c: E2 0E 00 [21:29:13]MH_I2C_Read... [21:29:13]Read from MH i2c: E2 0E 00 09 D2 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 95 [21:29:13]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:29:13]wFMCommunicate OK [21:29:13]SAM_PROTO_GetShiftState done [21:29:13]FM_GetShiftState done [21:29:13]req_shift_opened done [21:29:13]requested_item shift.open_date is exist - process it [21:29:13]req_shift_open_date [21:29:13]req_shift_open_date done [21:29:13]produce_requested_data done [21:29:13]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260959,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [21:29:13]process_action_free close_receipt [21:29:13]json_value_free [21:29:13]json_value_free done [21:29:13]process_json_proto returns [21:29:13]Send response to host [21:29:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260959,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [21:29:13]free response buf [21:29:13]execute_script done [21:29:13]execute_script returns [21:29:13]free content buf [21:29:13]Sock 7.Close socket [21:29:13]Sock 7.Thread stoped [21:29:13]accept exits with 9 [21:29:13]New connection [21:29:13]New thread 3066473828 created [21:29:13]Thread 3066617188 joined [21:29:13]Waiting for new connection... [21:29:13] Sock 9.Parse request [21:29:13]Sock 9.Check first char [21:29:13]Sock 9.First char is OK [21:29:13]request: POST /json_proto HTTP/1.0 [21:29:13]Method: POST [21:29:13]URL: /json_proto [21:29:13]Method is POST - this is cgi request [21:29:13]url: /json_proto [21:29:13]query_string will be loaded in cgi processing [21:29:13]execute_cgi json_proto POST (null) [21:29:13]execute_cgi path=json_proto method=POST [21:29:13]POST find Content-Length [21:29:13]Host: 172.17.55.133:8080 [21:29:13]Content-Length: 679 [21:29:13]Content-Type: application/json [21:29:13] [21:29:13]POST finish read [21:29:13]Found Content-Length = 679 [21:29:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.140, "sum" : 687.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 687.00, "total" : 687.00, "payments": [ { "type": 0, "sum" : 687.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:29:13]execute_script... [21:29:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.140, "sum" : 687.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 687.00, "total" : 687.00, "payments": [ { "type": 0, "sum" : 687.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:29:13]POST & json_proto [21:29:13]process_json_proto [21:29:13]json parsed OK: [21:29:13]protocol is kg_v1.0 [21:29:13]action value=close_receipt [21:29:13]process_action close_receipt [21:29:13]cmd_close_receipt [21:29:13]MH_GetDate [21:29:13]Write to MH i2c: F0 00 00 0A D2 CB [21:29:13]Write i2c OK [21:29:13]MH_I2C_Read... [21:29:13]Read from MH i2c: F0 [21:29:13]MH_I2C_Read... [21:29:13]Read from MH i2c: F0 09 00 [21:29:13]MH_I2C_Read... [21:29:13]Read from MH i2c: F0 09 00 0A D2 00 B0 67 C2 66 34 48 D8 65 CC [21:29:13]GetLastDocTimeStamp 1724016554 [21:29:13]current date 1724016560 [21:29:13]FM_GetShiftState [21:29:13]SAM_PROTO_GetShiftState [21:29:13]wFMCommunicate request_size=4 [21:29:13]MH_SAM_APDU [21:29:13]CAPDU: 80 13 01 00 [21:29:13]Write to MH i2c: E2 08 00 0B D2 80 13 01 00 00 00 00 00 5A [21:29:13]Write i2c OK [21:29:13]MH_I2C_Read... [21:29:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:13]Read from MH i2c: E2 [21:29:13]MH_I2C_Read... [21:29:13]Read from MH i2c: E2 0E 00 [21:29:13]MH_I2C_Read... [21:29:13]Read from MH i2c: E2 0E 00 0B D2 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 97 [21:29:13]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:29:13]wFMCommunicate OK [21:29:13]SAM_PROTO_GetShiftState done [21:29:13]FM_GetShiftState done [21:29:13]opened in 1723940556 [21:29:13]opened+sec_in_day 1724026956 [21:29:13]quantity*price = 68749 [21:29:13]sum+1 = 68750 [21:29:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 687.00 Внесено: 687.00 СДАЧА: 0.00 НСП 1% : 6.08 НДС 12% : 73.01 Наличными: 687.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 518 18.08.2024 21:29 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260960 ФПД: 137887562103050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T212920&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260960&fm=137887562103050&tin=02508201610067®Number=0000000000091865&sum=68700 [21:29:14]StoreToDocumentArchive [21:29:14]shift 449 fd 260960 [21:29:14]save to /storage/0449/doc_00260960 [21:29:14]save last doc name /storage/0449/doc_00260960 to /storage/kkm_last_doc_name [21:29:14]save OK [21:29:14]Clear old archive folders... [21:29:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:29:14]tlvbuf is 004D21E0 [21:29:14]SAM_PROTO_ClearQueue [21:29:14]wFMCommunicate request_size=4 [21:29:14]MH_SAM_APDU [21:29:14]CAPDU: 80 09 00 00 [21:29:14]Write to MH i2c: E2 08 00 18 D2 80 09 00 00 00 00 00 00 5C [21:29:14]Write i2c OK [21:29:14]MH_I2C_Read... [21:29:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:29:15]Read from MH i2c: E2 [21:29:15]MH_I2C_Read... [21:29:15]Read from MH i2c: E2 03 00 [21:29:15]MH_I2C_Read... [21:29:15]Read from MH i2c: E2 03 00 18 D2 00 90 00 5E [21:29:15]RAPDU: 90 00 [21:29:15]wFMCommunicate OK [21:29:15]SAM_PROTO_ClearQueue done [21:29:15]KKMCreateOFDPacket [21:29:15]OFDProtocolAddRootSTLVToBuf [21:29:15]FM_MakeSignedData [21:29:15]FM_MakeSignedData [21:29:15]SAM_PROTO_SignData [21:29:15]wFMCommunicate request_size=4 [21:29:15]MH_SAM_APDU [21:29:15]CAPDU: 80 0D 01 02 [21:29:15]Write to MH i2c: E2 08 00 19 D2 80 0D 01 02 00 00 00 00 64 [21:29:15]Write i2c OK [21:29:15]MH_I2C_Read... [21:29:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:29:15]Read from MH i2c: E2 [21:29:15]MH_I2C_Read... [21:29:15]Read from MH i2c: E2 03 00 [21:29:15]MH_I2C_Read... [21:29:15]Read from MH i2c: E2 03 00 19 D2 00 90 00 5F [21:29:15]RAPDU: 90 00 [21:29:15]wFMCommunicate OK [21:29:15]wFMCommunicate request_size=255 [21:29:15]MH_SAM_APDU [21:29:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 8D 0C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 0C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 1C 00 00 00 00 07 04 06 00 5C 0C 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 02 00 00 F4 03 04 00 B0 67 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 60 FB 03 00 35 04 06 00 7D [21:29:15]Write to MH i2c: E2 02 01 1A D2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 8D 0C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 0C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 1C 00 00 00 00 07 04 06 00 5C 0C 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 02 00 00 F4 03 04 00 B0 67 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 60 FB 03 00 35 04 06 00 7D 00 00 18 [21:29:15]Write i2c OK [21:29:15]MH_I2C_Read... [21:29:15]OFD Sender: No OFD packet to send [21:29:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:15]Read from MH i2c: E2 [21:29:15]MH_I2C_Read... [21:29:15]Read from MH i2c: E2 03 00 [21:29:15]MH_I2C_Read... [21:29:15]Read from MH i2c: E2 03 00 1A D2 00 90 00 60 [21:29:15]RAPDU: 90 00 [21:29:15]wFMCommunicate OK [21:29:15]wFMCommunicate request_size=10 [21:29:15]MH_SAM_APDU [21:29:15]CAPDU: 80 0D 02 02 05 68 73 28 79 0A [21:29:15]Write to MH i2c: E2 0D 00 1B D2 80 0D 02 02 05 00 68 73 28 79 0A 00 00 F7 [21:29:15]Write i2c OK [21:29:15]MH_I2C_Read... [21:29:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:15]Read from MH i2c: E2 [21:29:15]MH_I2C_Read... [21:29:15]Read from MH i2c: E2 03 00 [21:29:15]MH_I2C_Read... [21:29:15]Read from MH i2c: E2 03 00 1B D2 00 90 00 61 [21:29:15]RAPDU: 90 00 [21:29:15]wFMCommunicate OK [21:29:15]wFMCommunicate request_size=4 [21:29:15]MH_SAM_APDU [21:29:15]CAPDU: 80 0D 03 02 [21:29:15]Write to MH i2c: E2 08 00 1C D2 80 0D 03 02 00 00 00 00 69 [21:29:15]Write i2c OK [21:29:15]MH_I2C_Read... [21:29:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:29:15]Read from MH i2c: E2 [21:29:15]MH_I2C_Read... [21:29:15]Read from MH i2c: E2 0B 00 [21:29:15]MH_I2C_Read... [21:29:15]Read from MH i2c: E2 0B 00 1C D2 00 E4 3E 66 AF 7C C1 F3 1C 90 00 ED [21:29:15]RAPDU: E4 3E 66 AF 7C C1 F3 1C 90 00 [21:29:15]wFMCommunicate OK [21:29:15]SAM_PROTO_SignData done [21:29:15]FM_MakeSignedData done [21:29:15]CreateOFDProtocolMessage [21:29:15]wFMCommunicate request_size=4 [21:29:15]MH_SAM_APDU [21:29:15]CAPDU: 80 11 00 00 [21:29:15]Write to MH i2c: E2 08 00 1D D2 80 11 00 00 00 00 00 00 69 [21:29:15]Write i2c OK [21:29:15]MH_I2C_Read... [21:29:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:15]Read from MH i2c: E2 [21:29:15]MH_I2C_Read... [21:29:15]Read from MH i2c: E2 17 00 [21:29:15]MH_I2C_Read... [21:29:15]Read from MH i2c: E2 17 00 1D D2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B6 [21:29:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:29:15]wFMCommunicate OK [21:29:15]CreateOFDProtocolMessage done [21:29:15]OFDSenderStorePacket 260960 [21:29:15]StoreOFDPacket docnum=260960 [21:29:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 32 18 07 01 37 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 8D 0C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 0C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 1C 00 00 00 00 07 04 06 00 5C 0C 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 02 00 00 F4 03 04 00 B0 67 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 60 FB 03 00 35 04 06 00 7D 68 73 28 79 0A E4 3E 66 AF 7C C1 F3 1C [21:29:15]CheckFolder [21:29:15]dirname=/storage/ofd_packets [21:29:15]CheckFolder done [21:29:15]ProducePacketName [21:29:15]name=ofd_packets/00260960 [21:29:15]NVStorageSaveData ofd_packets/00260960 [21:29:15]File name is /storage/ofd_packets/00260960 [21:29:15]Write 301 bytes [21:29:15]NVStorageSaveData done [21:29:15]OFDSenderStorePacket done [21:29:15]KKMCreateOFDPacket done [21:29:15]NVStorageSaveData kkm_last_timestamp [21:29:15]File name is /storage/kkm_last_timestamp [21:29:15]Write 4 bytes [21:29:15]NVStorageSaveData done [21:29:15]ExternCall_PrintAddStr [21:29:15]wPrintStart [21:29:15]Write to MH i2c: 01 00 00 1E D2 F0 [21:29:15]Write i2c OK [21:29:15]MH_I2C_Read... [21:29:15]Read from MH i2c: 01 [21:29:15]MH_I2C_Read... [21:29:15]Read from MH i2c: 01 07 00 [21:29:15]MH_I2C_Read... [21:29:15]OFD Sender: Processing packet 260960 [packets to send 192, broken 191] [21:29:15]ProducePacketName [21:29:15]name=ofd_packets/00260960 [21:29:15]OFD Sender: To server: pG, [21:29:15]CommunicateWithHost lk.salyk.kg:30040 [21:29:15]ConnectInit lk.salyk.kg [21:29:15]Read from MH i2c: 01 07 00 1E D2 00 00 00 00 00 FF 0F 05 [21:29:15]RasterBufferAndPrint [21:29:15]line Счет N : (1)1036512 [21:29:15]line ИНН: 02508201610067 [21:29:15]line Контрольно-Кассовый Чек [21:29:15]line ПРОДАЖА [21:29:15]line ТРК (МРК, ГНК) : 42 [21:29:15]line Товар: 2710124130 [21:29:15]line Аи-92-К-5 [21:29:15]line 10.140 * 67.80 [21:29:15]line = 687.49 [21:29:15]line НДС 12% НСП 1% [21:29:15]line > о реализуемом товаре [21:29:15]line ОКРУГЛЕНИЕ: -0.49 [21:29:15]line ИТОГО: 687.00 [21:29:15]line Внесено: 687.00 [21:29:15]line СДАЧА: 0.00 [21:29:15]line НСП 1% : 6.08 [21:29:15]line НДС 12% : 73.01 [21:29:15]line Наличными: 687.00 [21:29:15]line Безнал.: 0.00 [21:29:15]line Место: АЗС № 94 "Партнер Нефть" [21:29:15]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [21:29:15]line СНО: Общий режим [21:29:15]line Чек 518 18.08.2024 21:29 [21:29:15]line Смена: 449 ФФД: 1.0 [21:29:15]line ЗНМ: 0300000099 [21:29:15]line РНМ: 0000000000091865 [21:29:15]line Версия ККМ: 001 [21:29:15]line ФМ: 0000000000871820 [21:29:15]line ФД: 260960 [21:29:15]line ФПД: 137887562103050 [21:29:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T212920&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260960&fm=137887562103050&tin=02508201610067®Number=0000000000091865&sum=68700 [21:29:15]Connected sock=10 [21:29: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 30 0F 01 00 00 32 18 07 01 37 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 8D 0C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 0C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 1C 00 00 00 00 07 04 06 00 5C 0C 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 02 00 00 F4 03 04 00 B0 67 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 60 FB 03 00 35 04 06 00 7D 68 73 28 79 0A E4 3E 66 AF 7C C1 F3 1C [21:29:15]written 0, free lines is 4095 [21:29: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 30 4F 00 00 00 9E F6 47 00 59 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 30 10 04 04 00 60 FB 03 00 F4 03 04 00 04 11 C2 66 B6 04 01 00 00 C0 C5 DA 5C F1 67 B0 C2 [21:29:16]CommunicateWithHost err = 0 [21:29:16]CheckOFDResponse [21:29:16]1017 (14) - 77093643461234 [21:29:16]1041 (16) - 0000000000871820 [21:29:16]1040 (4) - 260960 [21:29:16]1012 (4) - 18.08.2024 15:19 [21:29:16]1206 (1) - 0 [21:29:16]OFD Sender: Remove packet 260960 [21:29:16]ProducePacketName [21:29:16]name=ofd_packets/00260960 [21:29:16]NVStorageDeleteData [21:29:16]Write to MH i2c: 01 00 00 49 D2 1B [21:29:16]Write i2c OK [21:29:16]MH_I2C_Read... [21:29:16]Read from MH i2c: 01 [21:29:16]MH_I2C_Read... [21:29:16]Read from MH i2c: 01 07 00 [21:29:16]MH_I2C_Read... [21:29:16]Read from MH i2c: 01 07 00 49 D2 00 00 00 00 00 78 0C A6 [21:29:16]RasterBufferAndPrint [21:29:16]line [21:29:16]line [21:29:16]line [21:29:16]line [21:29:16]line [21:29:16]written 0, free lines is 3197 [21:29:16]MH_Cut [21:29:16]Write to MH i2c: D1 01 00 50 D2 01 F4 [21:29:16]Write i2c OK [21:29:16]MH_I2C_Read... [21:29:16]Read from MH i2c: D1 [21:29:16]MH_I2C_Read... [21:29:16]Read from MH i2c: D1 01 00 [21:29:16]MH_I2C_Read... [21:29:16]Read from MH i2c: D1 01 00 50 D2 00 F3 [21:29:16]Write to MH i2c: 01 00 00 51 D2 23 [21:29:16]Write i2c OK [21:29:16]MH_I2C_Read... [21:29:16]OFD Sender: No OFD packet to send [21:29:17]*** Cut start [21:29:17]*** Purtial cut [21:29:17]*** Stage 1: CUTSNS_PIN = 1 [21:29:19]Read from MH i2c: 01 [21:29:19]MH_I2C_Read... [21:29:19]*** Stop cut motor [21:29:19]*** Cut end [21:29:19]Read from MH i2c: 01 07 00 [21:29:19]MH_I2C_Read... [21:29:19]Read from MH i2c: 01 07 00 51 D2 00 00 00 00 00 FF 0F 38 [21:29:19]process_action close_receipt done [21:29:19]requested_data is exist [21:29:19]produce_requested_data [21:29:19]requested_item fm.sn is exist - process it [21:29:19]wFMCommunicate request_size=4 [21:29:19]MH_SAM_APDU [21:29:19]CAPDU: 80 11 00 00 [21:29:19]Write to MH i2c: E2 08 00 52 D2 80 11 00 00 00 00 00 00 9E [21:29:19]Write i2c OK [21:29:19]MH_I2C_Read... [21:29:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:19]Read from MH i2c: E2 [21:29:19]MH_I2C_Read... [21:29:19]Read from MH i2c: E2 17 00 [21:29:19]MH_I2C_Read... [21:29:19]Read from MH i2c: E2 17 00 52 D2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 EB [21:29:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:29:19]wFMCommunicate OK [21:29:19]requested_item fd.num is exist - process it [21:29:19]SAM_PROTO_GetFieldsCounters [21:29:19]wFMCommunicate request_size=4 [21:29:19]MH_SAM_APDU [21:29:19]CAPDU: 80 13 00 00 [21:29:19]Write to MH i2c: E2 08 00 53 D2 80 13 00 00 00 00 00 00 A1 [21:29:19]Write i2c OK [21:29:19]MH_I2C_Read... [21:29:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:29:19]Read from MH i2c: E2 [21:29:19]MH_I2C_Read... [21:29:19]Read from MH i2c: E2 62 00 [21:29:19]MH_I2C_Read... [21:29:19]Read from MH i2c: E2 62 00 53 D2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 60 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 06 02 00 00 5E 04 04 00 06 02 00 00 57 04 04 00 07 02 00 00 19 04 04 00 00 00 00 00 90 00 F8 [21:29: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 60 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 06 02 00 00 5E 04 04 00 06 02 00 00 57 04 04 00 07 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:29:19]wFMCommunicate OK [21:29:19]SAM_PROTO_GetFieldsCounters done [21:29:19]requested_item shift.num is exist - process it [21:29:19]requested_item shift.opened is exist - process it [21:29:19]req_shift_opened [21:29:19]FM_GetShiftState [21:29:19]SAM_PROTO_GetShiftState [21:29:19]wFMCommunicate request_size=4 [21:29:19]MH_SAM_APDU [21:29:19]CAPDU: 80 13 01 00 [21:29:19]Write to MH i2c: E2 08 00 54 D2 80 13 01 00 00 00 00 00 A3 [21:29:19]Write i2c OK [21:29:19]MH_I2C_Read... [21:29:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:19]Read from MH i2c: E2 [21:29:19]MH_I2C_Read... [21:29:19]Read from MH i2c: E2 0E 00 [21:29:19]MH_I2C_Read... [21:29:19]Read from MH i2c: E2 0E 00 54 D2 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E0 [21:29:19]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:29:19]wFMCommunicate OK [21:29:19]SAM_PROTO_GetShiftState done [21:29:19]FM_GetShiftState done [21:29:19]req_shift_opened done [21:29:19]requested_item shift.open_date is exist - process it [21:29:19]req_shift_open_date [21:29:19]req_shift_open_date done [21:29:19]produce_requested_data done [21:29:19]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260960,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [21:29:19]process_action_free close_receipt [21:29:19]json_value_free [21:29:19]json_value_free done [21:29:19]process_json_proto returns [21:29:19]Send response to host [21:29:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260960,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [21:29:19]free response buf [21:29:19]execute_script done [21:29:19]execute_script returns [21:29:19]free content buf [21:29:19]Sock 9.Close socket [21:29:19]Sock 9.Thread stoped [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:43]accept exits with 7 [21:29:43]New connection [21:29:43]New thread 3066617188 created [21:29:43]Thread 3066473828 joined [21:29:43]Waiting for new connection... [21:29:43] Sock 7.Parse request [21:29:43]Sock 7.Check first char [21:29:43]Sock 7.First char is OK [21:29:43]request: POST /json_proto HTTP/1.0 [21:29:43]Method: POST [21:29:43]URL: /json_proto [21:29:43]Method is POST - this is cgi request [21:29:43]url: /json_proto [21:29:43]query_string will be loaded in cgi processing [21:29:43]execute_cgi json_proto POST (null) [21:29:43]execute_cgi path=json_proto method=POST [21:29:43]POST find Content-Length [21:29:43]Host: 172.17.55.133:8080 [21:29:43]Content-Length: 678 [21:29:43]Content-Type: application/json [21:29:43] [21:29:43]POST finish read [21:29:43]Found Content-Length = 678 [21:29:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036514", "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" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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" ] } } [21:29:43]execute_script... [21:29: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)1036514", "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" : 74.20, "quantity" : 8.090, "sum" : 600.28, "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" ] } } [21:29:43]POST & json_proto [21:29:43]process_json_proto [21:29:43]json parsed OK: [21:29:43]protocol is kg_v1.0 [21:29:43]action value=close_receipt [21:29:43]process_action close_receipt [21:29:43]cmd_close_receipt [21:29:43]MH_GetDate [21:29:43]Write to MH i2c: F0 00 00 55 D2 16 [21:29:43]Write i2c OK [21:29:43]MH_I2C_Read... [21:29:43]Read from MH i2c: F0 [21:29:43]MH_I2C_Read... [21:29:43]Read from MH i2c: F0 09 00 [21:29:43]MH_I2C_Read... [21:29:43]Read from MH i2c: F0 09 00 55 D2 00 CE 67 C2 66 34 48 D8 65 35 [21:29:43]GetLastDocTimeStamp 1724016560 [21:29:43]current date 1724016590 [21:29:43]FM_GetShiftState [21:29:43]SAM_PROTO_GetShiftState [21:29:43]wFMCommunicate request_size=4 [21:29:43]MH_SAM_APDU [21:29:43]CAPDU: 80 13 01 00 [21:29:43]Write to MH i2c: E2 08 00 56 D2 80 13 01 00 00 00 00 00 A5 [21:29:43]Write i2c OK [21:29:43]MH_I2C_Read... [21:29:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:43]Read from MH i2c: E2 [21:29:43]MH_I2C_Read... [21:29:43]Read from MH i2c: E2 0E 00 [21:29:43]MH_I2C_Read... [21:29:43]Read from MH i2c: E2 0E 00 56 D2 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E2 [21:29:43]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:29:43]wFMCommunicate OK [21:29:43]SAM_PROTO_GetShiftState done [21:29:43]FM_GetShiftState done [21:29:43]opened in 1723940556 [21:29:43]opened+sec_in_day 1724026956 [21:29:43]quantity*price = 60027 [21:29:43]sum+1 = 60029 [21:29:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 519 18.08.2024 21:29 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260961 ФПД: 180432490572260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T212950&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260961&fm=180432490572260&tin=02508201610067®Number=0000000000091865&sum=60000 [21:29:45]StoreToDocumentArchive [21:29:45]shift 449 fd 260961 [21:29:45]save to /storage/0449/doc_00260961 [21:29:45]save last doc name /storage/0449/doc_00260961 to /storage/kkm_last_doc_name [21:29:45]save OK [21:29:45]Clear old archive folders... [21:29:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:29:45]tlvbuf is 007BC010 [21:29:45]SAM_PROTO_ClearQueue [21:29:45]wFMCommunicate request_size=4 [21:29:45]MH_SAM_APDU [21:29:45]CAPDU: 80 09 00 00 [21:29:45]Write to MH i2c: E2 08 00 63 D2 80 09 00 00 00 00 00 00 A7 [21:29:45]Write i2c OK [21:29:45]MH_I2C_Read... [21:29:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:29:45]Read from MH i2c: E2 [21:29:45]MH_I2C_Read... [21:29:45]Read from MH i2c: E2 03 00 [21:29:45]MH_I2C_Read... [21:29:45]Read from MH i2c: E2 03 00 63 D2 00 90 00 A9 [21:29:45]RAPDU: 90 00 [21:29:45]wFMCommunicate OK [21:29:45]SAM_PROTO_ClearQueue done [21:29:45]KKMCreateOFDPacket [21:29:45]OFDProtocolAddRootSTLVToBuf [21:29:45]FM_MakeSignedData [21:29:45]FM_MakeSignedData [21:29:45]SAM_PROTO_SignData [21:29:45]wFMCommunicate request_size=4 [21:29:45]MH_SAM_APDU [21:29:45]CAPDU: 80 0D 01 02 [21:29:45]Write to MH i2c: E2 08 00 64 D2 80 0D 01 02 00 00 00 00 AF [21:29:45]Write i2c OK [21:29:45]MH_I2C_Read... [21:29:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:29:45]Read from MH i2c: E2 [21:29:45]MH_I2C_Read... [21:29:45]Read from MH i2c: E2 03 00 [21:29:45]MH_I2C_Read... [21:29:45]Read from MH i2c: E2 03 00 64 D2 00 90 00 AA [21:29:45]RAPDU: 90 00 [21:29:45]wFMCommunicate OK [21:29:45]wFMCommunicate request_size=255 [21:29:45]MH_SAM_APDU [21:29: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 07 02 00 00 F4 03 04 00 CE 67 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 61 FB 03 00 35 04 06 00 A4 [21:29:45]Write to MH i2c: E2 02 01 65 D2 80 0D 02 02 FA 00 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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 07 02 00 00 F4 03 04 00 CE 67 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 61 FB 03 00 35 04 06 00 A4 00 00 C5 [21:29:45]Write i2c OK [21:29:45]MH_I2C_Read... [21:29:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:45]Read from MH i2c: E2 [21:29:45]MH_I2C_Read... [21:29:45]Read from MH i2c: E2 03 00 [21:29:45]MH_I2C_Read... [21:29:45]Read from MH i2c: E2 03 00 65 D2 00 90 00 AB [21:29:45]RAPDU: 90 00 [21:29:45]wFMCommunicate OK [21:29:45]wFMCommunicate request_size=10 [21:29:45]MH_SAM_APDU [21:29:45]CAPDU: 80 0D 02 02 05 1A 36 81 A9 E4 [21:29:45]Write to MH i2c: E2 0D 00 66 D2 80 0D 02 02 05 00 1A 36 81 A9 E4 00 00 1A [21:29:45]Write i2c OK [21:29:45]MH_I2C_Read... [21:29:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:45]Read from MH i2c: E2 [21:29:45]MH_I2C_Read... [21:29:45]Read from MH i2c: E2 03 00 [21:29:45]MH_I2C_Read... [21:29:45]Read from MH i2c: E2 03 00 66 D2 00 90 00 AC [21:29:45]RAPDU: 90 00 [21:29:45]wFMCommunicate OK [21:29:45]wFMCommunicate request_size=4 [21:29:45]MH_SAM_APDU [21:29:45]CAPDU: 80 0D 03 02 [21:29:45]Write to MH i2c: E2 08 00 67 D2 80 0D 03 02 00 00 00 00 B4 [21:29:45]Write i2c OK [21:29:45]MH_I2C_Read... [21:29:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:29:45]Read from MH i2c: E2 [21:29:45]MH_I2C_Read... [21:29:45]Read from MH i2c: E2 0B 00 [21:29:45]MH_I2C_Read... [21:29:45]Read from MH i2c: E2 0B 00 67 D2 00 72 0D 05 4B 16 54 D0 AB 90 00 69 [21:29:45]RAPDU: 72 0D 05 4B 16 54 D0 AB 90 00 [21:29:45]wFMCommunicate OK [21:29:45]SAM_PROTO_SignData done [21:29:45]FM_MakeSignedData done [21:29:45]CreateOFDProtocolMessage [21:29:45]wFMCommunicate request_size=4 [21:29:45]MH_SAM_APDU [21:29:45]CAPDU: 80 11 00 00 [21:29:45]Write to MH i2c: E2 08 00 68 D2 80 11 00 00 00 00 00 00 B4 [21:29:45]Write i2c OK [21:29:45]MH_I2C_Read... [21:29:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:45]Read from MH i2c: E2 [21:29:45]MH_I2C_Read... [21:29:45]Read from MH i2c: E2 17 00 [21:29:45]MH_I2C_Read... [21:29:45]Read from MH i2c: E2 17 00 68 D2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 01 [21:29:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:29:45]wFMCommunicate OK [21:29:45]CreateOFDProtocolMessage done [21:29:45]OFDSenderStorePacket 260961 [21:29:45]StoreOFDPacket docnum=260961 [21:29:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 43 C9 07 01 FA 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 07 02 00 00 F4 03 04 00 CE 67 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 61 FB 03 00 35 04 06 00 A4 1A 36 81 A9 E4 72 0D 05 4B 16 54 D0 AB [21:29:45]CheckFolder [21:29:45]dirname=/storage/ofd_packets [21:29:45]CheckFolder done [21:29:45]ProducePacketName [21:29:45]name=ofd_packets/00260961 [21:29:45]NVStorageSaveData ofd_packets/00260961 [21:29:45]File name is /storage/ofd_packets/00260961 [21:29:45]Write 301 bytes [21:29:45]NVStorageSaveData done [21:29:45]OFDSenderStorePacket done [21:29:45]KKMCreateOFDPacket done [21:29:45]NVStorageSaveData kkm_last_timestamp [21:29:45]File name is /storage/kkm_last_timestamp [21:29:45]Write 4 bytes [21:29:45]NVStorageSaveData done [21:29:45]ExternCall_PrintAddStr [21:29:45]wPrintStart [21:29:45]Write to MH i2c: 01 00 00 69 D2 3B [21:29:45]Write i2c OK [21:29:45]MH_I2C_Read... [21:29:45]Read from MH i2c: 01 [21:29:45]MH_I2C_Read... [21:29:45]Read from MH i2c: 01 07 00 [21:29:45]MH_I2C_Read... [21:29:45]Read from MH i2c: 01 07 00 69 D2 00 00 00 00 00 FF 0F 50 [21:29:45]RasterBufferAndPrint [21:29:45]line Счет N : (1)1036514 [21:29:45]line ИНН: 02508201610067 [21:29:45]line Контрольно-Кассовый Чек [21:29:45]line ПРОДАЖА [21:29:45]line ТРК (МРК, ГНК) : 13 [21:29:45]line Товар: 2710124500 [21:29:45]line Аи-95-К-5 [21:29:45]line 8.090 * 74.20 [21:29:45]line = 600.28 [21:29:45]line НДС 12% НСП 1% [21:29:45]line > о реализуемом товаре [21:29:45]line ОКРУГЛЕНИЕ: -0.28 [21:29:45]line ИТОГО: 600.00 [21:29:45]line Внесено: 600.00 [21:29:45]line СДАЧА: 0.00 [21:29:45]line НСП 1% : 5.31 [21:29:45]line НДС 12% : 63.75 [21:29:45]line Наличными: 600.00 [21:29:45]line Безнал.: 0.00 [21:29:45]line Место: АЗС № 94 "Партнер Нефть" [21:29:45]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [21:29:45]line СНО: Общий режим [21:29:45]line Чек 519 18.08.2024 21:29 [21:29:45]line Смена: 449 ФФД: 1.0 [21:29:45]line ЗНМ: 0300000099 [21:29:45]line РНМ: 0000000000091865 [21:29:45]line Версия ККМ: 001 [21:29:45]line ФМ: 0000000000871820 [21:29:45]line ФД: 260961 [21:29:45]line ФПД: 180432490572260 [21:29:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T212950&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260961&fm=180432490572260&tin=02508201610067®Number=0000000000091865&sum=60000 [21:29:45]written 0, free lines is 4095 [21:29:45]OFD Sender: Processing packet 260961 [packets to send 192, broken 191] [21:29:45]ProducePacketName [21:29:45]name=ofd_packets/00260961 [21:29:45]OFD Sender: To server: pG, [21:29:45]CommunicateWithHost lk.salyk.kg:30040 [21:29:45]ConnectInit lk.salyk.kg [21:29:45]Connected sock=10 [21:29: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 30 0F 01 00 00 43 C9 07 01 FA 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 07 02 00 00 F4 03 04 00 CE 67 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 61 FB 03 00 35 04 06 00 A4 1A 36 81 A9 E4 72 0D 05 4B 16 54 D0 AB [21:29: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 30 4F 00 00 00 6A 46 47 00 DA D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 61 FB 03 00 F4 03 04 00 22 11 C2 66 B6 04 01 00 00 73 31 D9 84 F8 31 A7 B8 [21:29:45]CommunicateWithHost err = 0 [21:29:45]CheckOFDResponse [21:29:45]1017 (14) - 77093643461234 [21:29:45]1041 (16) - 0000000000871820 [21:29:45]1040 (4) - 260961 [21:29:45]1012 (4) - 18.08.2024 15:20 [21:29:45]1206 (1) - 0 [21:29:45]OFD Sender: Remove packet 260961 [21:29:45]ProducePacketName [21:29:45]name=ofd_packets/00260961 [21:29:45]NVStorageDeleteData [21:29:46]Write to MH i2c: 01 00 00 94 D2 66 [21:29:46]Write i2c OK [21:29:46]MH_I2C_Read... [21:29:46]Read from MH i2c: 01 [21:29:46]MH_I2C_Read... [21:29:46]Read from MH i2c: 01 07 00 [21:29:46]MH_I2C_Read... [21:29:46]Read from MH i2c: 01 07 00 94 D2 00 00 00 00 00 82 0C FB [21:29:46]RasterBufferAndPrint [21:29:46]line [21:29:46]line [21:29:46]line [21:29:46]line [21:29:46]line [21:29:46]written 0, free lines is 3206 [21:29:46]MH_Cut [21:29:46]Write to MH i2c: D1 01 00 9B D2 01 3F [21:29:46]Write i2c OK [21:29:46]MH_I2C_Read... [21:29:46]Read from MH i2c: D1 [21:29:46]MH_I2C_Read... [21:29:46]Read from MH i2c: D1 01 00 [21:29:46]MH_I2C_Read... [21:29:46]Read from MH i2c: D1 01 00 9B D2 00 3E [21:29:46]Write to MH i2c: 01 00 00 9C D2 6E [21:29:46]Write i2c OK [21:29:46]MH_I2C_Read... [21:29:46]OFD Sender: No OFD packet to send [21:29:47]*** Cut start [21:29:47]*** Purtial cut [21:29:47]*** Stage 1: CUTSNS_PIN = 1 [21:29:49]Read from MH i2c: 01 [21:29:49]MH_I2C_Read... [21:29:49]*** Stop cut motor [21:29:49]*** Cut end [21:29:49]Read from MH i2c: 01 07 00 [21:29:49]MH_I2C_Read... [21:29:49]Read from MH i2c: 01 07 00 9C D2 00 00 00 00 00 FF 0F 83 [21:29:49]process_action close_receipt done [21:29:49]requested_data is exist [21:29:49]produce_requested_data [21:29:49]requested_item fm.sn is exist - process it [21:29:49]wFMCommunicate request_size=4 [21:29:49]MH_SAM_APDU [21:29:49]CAPDU: 80 11 00 00 [21:29:49]Write to MH i2c: E2 08 00 9D D2 80 11 00 00 00 00 00 00 E9 [21:29:49]Write i2c OK [21:29:49]MH_I2C_Read... [21:29:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:49]Read from MH i2c: E2 [21:29:49]MH_I2C_Read... [21:29:49]Read from MH i2c: E2 17 00 [21:29:49]MH_I2C_Read... [21:29:49]Read from MH i2c: E2 17 00 9D D2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 36 [21:29:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:29:49]wFMCommunicate OK [21:29:49]requested_item fd.num is exist - process it [21:29:49]SAM_PROTO_GetFieldsCounters [21:29:49]wFMCommunicate request_size=4 [21:29:49]MH_SAM_APDU [21:29:49]CAPDU: 80 13 00 00 [21:29:49]Write to MH i2c: E2 08 00 9E D2 80 13 00 00 00 00 00 00 EC [21:29:49]Write i2c OK [21:29:49]MH_I2C_Read... [21:29:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:29:49]Read from MH i2c: E2 [21:29:49]MH_I2C_Read... [21:29:49]Read from MH i2c: E2 62 00 [21:29:49]MH_I2C_Read... [21:29:49]Read from MH i2c: E2 62 00 9E D2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 61 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 07 02 00 00 5E 04 04 00 07 02 00 00 57 04 04 00 08 02 00 00 19 04 04 00 00 00 00 00 90 00 47 [21:29: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 61 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 07 02 00 00 5E 04 04 00 07 02 00 00 57 04 04 00 08 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:29:49]wFMCommunicate OK [21:29:49]SAM_PROTO_GetFieldsCounters done [21:29:49]requested_item shift.num is exist - process it [21:29:49]requested_item shift.opened is exist - process it [21:29:49]req_shift_opened [21:29:49]FM_GetShiftState [21:29:49]SAM_PROTO_GetShiftState [21:29:49]wFMCommunicate request_size=4 [21:29:49]MH_SAM_APDU [21:29:49]CAPDU: 80 13 01 00 [21:29:49]Write to MH i2c: E2 08 00 9F D2 80 13 01 00 00 00 00 00 EE [21:29:49]Write i2c OK [21:29:49]MH_I2C_Read... [21:29:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:49]Read from MH i2c: E2 [21:29:49]MH_I2C_Read... [21:29:49]Read from MH i2c: E2 0E 00 [21:29:49]MH_I2C_Read... [21:29:49]Read from MH i2c: E2 0E 00 9F D2 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 2B [21:29:49]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:29:49]wFMCommunicate OK [21:29:49]SAM_PROTO_GetShiftState done [21:29:49]FM_GetShiftState done [21:29:49]req_shift_opened done [21:29:49]requested_item shift.open_date is exist - process it [21:29:49]req_shift_open_date [21:29:49]req_shift_open_date done [21:29:49]produce_requested_data done [21:29:49]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260961,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [21:29:49]process_action_free close_receipt [21:29:49]json_value_free [21:29:49]json_value_free done [21:29:49]process_json_proto returns [21:29:49]Send response to host [21:29:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260961,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [21:29:49]free response buf [21:29:49]execute_script done [21:29:49]execute_script returns [21:29:49]free content buf [21:29:49]Sock 7.Close socket [21:29:49]Sock 7.Thread stoped [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:00]accept exits with 9 [21:34:00]New connection [21:34:00]New thread 3066473828 created [21:34:00]Thread 3066617188 joined [21:34:00]Waiting for new connection... [21:34:00] Sock 9.Parse request [21:34:00]Sock 9.Check first char [21:34:00]Sock 9.First char is OK [21:34:00]request: POST /json_proto HTTP/1.0 [21:34:00]Method: POST [21:34:00]URL: /json_proto [21:34:00]Method is POST - this is cgi request [21:34:00]url: /json_proto [21:34:00]query_string will be loaded in cgi processing [21:34:00]execute_cgi json_proto POST (null) [21:34:00]execute_cgi path=json_proto method=POST [21:34:00]POST find Content-Length [21:34:00]Host: 172.17.55.133:8080 [21:34:00]Content-Length: 678 [21:34:00]Content-Type: application/json [21:34:00] [21:34:00]POST finish read [21:34:00]Found Content-Length = 678 [21:34:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:34:00]execute_script... [21:34: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)1036515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:34:00]POST & json_proto [21:34:00]process_json_proto [21:34:00]json parsed OK: [21:34:00]protocol is kg_v1.0 [21:34:00]action value=close_receipt [21:34:00]process_action close_receipt [21:34:00]cmd_close_receipt [21:34:00]MH_GetDate [21:34:00]Write to MH i2c: F0 00 00 A0 D2 61 [21:34:00]Write i2c OK [21:34:00]MH_I2C_Read... [21:34:00]Read from MH i2c: F0 [21:34:00]MH_I2C_Read... [21:34:00]Read from MH i2c: F0 09 00 [21:34:00]MH_I2C_Read... [21:34:00]Read from MH i2c: F0 09 00 A0 D2 00 CF 68 C2 66 34 48 D8 65 82 [21:34:00]GetLastDocTimeStamp 1724016590 [21:34:00]current date 1724016847 [21:34:00]FM_GetShiftState [21:34:00]SAM_PROTO_GetShiftState [21:34:00]wFMCommunicate request_size=4 [21:34:00]MH_SAM_APDU [21:34:00]CAPDU: 80 13 01 00 [21:34:00]Write to MH i2c: E2 08 00 A1 D2 80 13 01 00 00 00 00 00 F0 [21:34:00]Write i2c OK [21:34:00]MH_I2C_Read... [21:34:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:34:00]Read from MH i2c: E2 [21:34:00]MH_I2C_Read... [21:34:00]Read from MH i2c: E2 0E 00 [21:34:00]MH_I2C_Read... [21:34:00]Read from MH i2c: E2 0E 00 A1 D2 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 2D [21:34:00]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:34:00]wFMCommunicate OK [21:34:00]SAM_PROTO_GetShiftState done [21:34:00]FM_GetShiftState done [21:34:00]opened in 1723940556 [21:34:00]opened+sec_in_day 1724026956 [21:34:00]quantity*price = 60003 [21:34:00]sum+1 = 60004 [21:34:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 520 18.08.2024 21:34 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260962 ФПД: 859832782340 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T213407&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260962&fm=859832782340&tin=02508201610067®Number=0000000000091865&sum=60000 [21:34:02]StoreToDocumentArchive [21:34:02]shift 449 fd 260962 [21:34:02]save to /storage/0449/doc_00260962 [21:34:02]save last doc name /storage/0449/doc_00260962 to /storage/kkm_last_doc_name [21:34:02]save OK [21:34:02]Clear old archive folders... [21:34:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:34:02]tlvbuf is 0057B630 [21:34:02]SAM_PROTO_ClearQueue [21:34:02]wFMCommunicate request_size=4 [21:34:02]MH_SAM_APDU [21:34:02]CAPDU: 80 09 00 00 [21:34:02]Write to MH i2c: E2 08 00 AE D2 80 09 00 00 00 00 00 00 F2 [21:34:02]Write i2c OK [21:34:02]MH_I2C_Read... [21:34:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:34:02]Read from MH i2c: E2 [21:34:02]MH_I2C_Read... [21:34:02]Read from MH i2c: E2 03 00 [21:34:02]MH_I2C_Read... [21:34:02]Read from MH i2c: E2 03 00 AE D2 00 90 00 F4 [21:34:02]RAPDU: 90 00 [21:34:02]wFMCommunicate OK [21:34:02]SAM_PROTO_ClearQueue done [21:34:02]KKMCreateOFDPacket [21:34:02]OFDProtocolAddRootSTLVToBuf [21:34:02]FM_MakeSignedData [21:34:02]FM_MakeSignedData [21:34:02]SAM_PROTO_SignData [21:34:02]wFMCommunicate request_size=4 [21:34:02]MH_SAM_APDU [21:34:02]CAPDU: 80 0D 01 02 [21:34:02]Write to MH i2c: E2 08 00 AF D2 80 0D 01 02 00 00 00 00 FA [21:34:02]Write i2c OK [21:34:02]MH_I2C_Read... [21:34:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:34:02]Read from MH i2c: E2 [21:34:02]MH_I2C_Read... [21:34:02]Read from MH i2c: E2 03 00 [21:34:02]MH_I2C_Read... [21:34:02]Read from MH i2c: E2 03 00 AF D2 00 90 00 F5 [21:34:02]RAPDU: 90 00 [21:34:02]wFMCommunicate OK [21:34:02]wFMCommunicate request_size=255 [21:34:02]MH_SAM_APDU [21:34:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 02 00 00 F4 03 04 00 CF 68 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 62 FB 03 00 35 04 06 00 00 [21:34:02]Write to MH i2c: E2 02 01 B0 D2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 02 00 00 F4 03 04 00 CF 68 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 62 FB 03 00 35 04 06 00 00 00 00 C9 [21:34:02]Write i2c OK [21:34:02]MH_I2C_Read... [21:34:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:34:02]Read from MH i2c: E2 [21:34:02]MH_I2C_Read... [21:34:02]Read from MH i2c: E2 03 00 [21:34:02]MH_I2C_Read... [21:34:02]Read from MH i2c: E2 03 00 B0 D2 00 90 00 F6 [21:34:02]RAPDU: 90 00 [21:34:02]wFMCommunicate OK [21:34:02]wFMCommunicate request_size=10 [21:34:02]MH_SAM_APDU [21:34:02]CAPDU: 80 0D 02 02 05 C8 32 07 0E 04 [21:34:02]Write to MH i2c: E2 0D 00 B1 D2 80 0D 02 02 05 00 C8 32 07 0E 04 00 00 1A [21:34:02]Write i2c OK [21:34:02]MH_I2C_Read... [21:34:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:34:02]Read from MH i2c: E2 [21:34:02]MH_I2C_Read... [21:34:02]Read from MH i2c: E2 03 00 [21:34:02]MH_I2C_Read... [21:34:02]Read from MH i2c: E2 03 00 B1 D2 00 90 00 F7 [21:34:02]RAPDU: 90 00 [21:34:02]wFMCommunicate OK [21:34:02]wFMCommunicate request_size=4 [21:34:02]MH_SAM_APDU [21:34:02]CAPDU: 80 0D 03 02 [21:34:02]Write to MH i2c: E2 08 00 B2 D2 80 0D 03 02 00 00 00 00 FF [21:34:02]Write i2c OK [21:34:02]MH_I2C_Read... [21:34:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:34:02]Read from MH i2c: E2 [21:34:02]MH_I2C_Read... [21:34:02]Read from MH i2c: E2 0B 00 [21:34:02]MH_I2C_Read... [21:34:02]Read from MH i2c: E2 0B 00 B2 D2 00 C9 E2 40 A9 71 CE 56 46 90 00 6F [21:34:02]RAPDU: C9 E2 40 A9 71 CE 56 46 90 00 [21:34:02]wFMCommunicate OK [21:34:02]SAM_PROTO_SignData done [21:34:02]FM_MakeSignedData done [21:34:02]CreateOFDProtocolMessage [21:34:02]wFMCommunicate request_size=4 [21:34:02]MH_SAM_APDU [21:34:02]CAPDU: 80 11 00 00 [21:34:02]Write to MH i2c: E2 08 00 B3 D2 80 11 00 00 00 00 00 00 FF [21:34:02]Write i2c OK [21:34:02]MH_I2C_Read... [21:34:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:34:02]Read from MH i2c: E2 [21:34:02]MH_I2C_Read... [21:34:02]Read from MH i2c: E2 17 00 [21:34:02]MH_I2C_Read... [21:34:02]Read from MH i2c: E2 17 00 B3 D2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 4C [21:34:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:34:02]wFMCommunicate OK [21:34:02]CreateOFDProtocolMessage done [21:34:02]OFDSenderStorePacket 260962 [21:34:02]StoreOFDPacket docnum=260962 [21:34:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 90 45 07 01 E4 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 02 00 00 F4 03 04 00 CF 68 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 62 FB 03 00 35 04 06 00 00 C8 32 07 0E 04 C9 E2 40 A9 71 CE 56 46 [21:34:02]CheckFolder [21:34:02]dirname=/storage/ofd_packets [21:34:02]CheckFolder done [21:34:02]ProducePacketName [21:34:02]name=ofd_packets/00260962 [21:34:02]NVStorageSaveData ofd_packets/00260962 [21:34:02]File name is /storage/ofd_packets/00260962 [21:34:02]Write 301 bytes [21:34:02]NVStorageSaveData done [21:34:02]OFDSenderStorePacket done [21:34:02]KKMCreateOFDPacket done [21:34:02]NVStorageSaveData kkm_last_timestamp [21:34:02]File name is /storage/kkm_last_timestamp [21:34:02]Write 4 bytes [21:34:02]NVStorageSaveData done [21:34:02]ExternCall_PrintAddStr [21:34:02]wPrintStart [21:34:02]Write to MH i2c: 01 00 00 B4 D2 86 [21:34:02]Write i2c OK [21:34:02]MH_I2C_Read... [21:34:02]Read from MH i2c: 01 [21:34:02]MH_I2C_Read... [21:34:02]Read from MH i2c: 01 07 00 [21:34:02]MH_I2C_Read... [21:34:02]Read from MH i2c: 01 07 00 B4 D2 00 00 00 00 00 FF 0F 9B [21:34:02]RasterBufferAndPrint [21:34:02]line Счет N : (1)1036515 [21:34:02]line ИНН: 02508201610067 [21:34:02]line Контрольно-Кассовый Чек [21:34:02]line ПРОДАЖА [21:34:02]line ТРК (МРК, ГНК) : 12 [21:34:02]line Товар: 2710124130 [21:34:02]line Аи-92-К-5 [21:34:02]line 8.850 * 67.80 [21:34:02]line = 600.03 [21:34:02]line НДС 12% НСП 1% [21:34:02]line > о реализуемом товаре [21:34:02]line ОКРУГЛЕНИЕ: -0.03 [21:34:02]line ИТОГО: 600.00 [21:34:02]line Внесено: 600.00 [21:34:02]line СДАЧА: 0.00 [21:34:02]line НСП 1% : 5.31 [21:34:02]line НДС 12% : 63.72 [21:34:02]line Наличными: 600.00 [21:34:02]line Безнал.: 0.00 [21:34:02]line Место: АЗС № 94 "Партнер Нефть" [21:34:02]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [21:34:02]line СНО: Общий режим [21:34:02]line Чек 520 18.08.2024 21:34 [21:34:02]line Смена: 449 ФФД: 1.0 [21:34:02]line ЗНМ: 0300000099 [21:34:02]line РНМ: 0000000000091865 [21:34:02]line Версия ККМ: 001 [21:34:02]line ФМ: 0000000000871820 [21:34:02]line ФД: 260962 [21:34:02]line ФПД: 859832782340 [21:34:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T213407&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260962&fm=859832782340&tin=02508201610067®Number=0000000000091865&sum=60000 [21:34:02]written 0, free lines is 4095 [21:34:02]OFD Sender: Processing packet 260962 [packets to send 192, broken 191] [21:34:02]ProducePacketName [21:34:02]name=ofd_packets/00260962 [21:34:02]OFD Sender: To server: pG, [21:34:02]CommunicateWithHost lk.salyk.kg:30040 [21:34:02]ConnectInit lk.salyk.kg [21:34:02]Connected sock=10 [21:34: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 30 0F 01 00 00 90 45 07 01 E4 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 02 00 00 F4 03 04 00 CF 68 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 62 FB 03 00 35 04 06 00 00 C8 32 07 0E 04 C9 E2 40 A9 71 CE 56 46 [21:34: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 30 4F 00 00 00 EB 2A 47 00 36 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 30 10 04 04 00 62 FB 03 00 F4 03 04 00 23 12 C2 66 B6 04 01 00 00 E2 BE 6C 81 7C A2 C8 73 [21:34:02]CommunicateWithHost err = 0 [21:34:02]CheckOFDResponse [21:34:02]1017 (14) - 77093643461234 [21:34:02]1041 (16) - 0000000000871820 [21:34:02]1040 (4) - 260962 [21:34:02]1012 (4) - 18.08.2024 15:24 [21:34:02]1206 (1) - 0 [21:34:02]OFD Sender: Remove packet 260962 [21:34:02]ProducePacketName [21:34:02]name=ofd_packets/00260962 [21:34:02]NVStorageDeleteData [21:34:03]Write to MH i2c: 01 00 00 DF D2 B1 [21:34:03]Write i2c OK [21:34:03]MH_I2C_Read... [21:34:03]Read from MH i2c: 01 [21:34:03]MH_I2C_Read... [21:34:03]Read from MH i2c: 01 07 00 [21:34:03]MH_I2C_Read... [21:34:03]Read from MH i2c: 01 07 00 DF D2 00 00 00 00 00 72 0C 36 [21:34:03]RasterBufferAndPrint [21:34:03]line [21:34:03]line [21:34:03]line [21:34:03]line [21:34:03]line [21:34:03]written 0, free lines is 3189 [21:34:03]MH_Cut [21:34:03]Write to MH i2c: D1 01 00 E6 D2 01 8A [21:34:03]Write i2c OK [21:34:03]MH_I2C_Read... [21:34:03]Read from MH i2c: D1 [21:34:03]MH_I2C_Read... [21:34:03]Read from MH i2c: D1 01 00 [21:34:03]MH_I2C_Read... [21:34:03]Read from MH i2c: D1 01 00 E6 D2 00 89 [21:34:03]Write to MH i2c: 01 00 00 E7 D2 B9 [21:34:03]Write i2c OK [21:34:03]MH_I2C_Read... [21:34:03]OFD Sender: No OFD packet to send [21:34:04]*** Cut start [21:34:04]*** Purtial cut [21:34:04]*** Stage 1: CUTSNS_PIN = 1 [21:34:06]Read from MH i2c: 01 [21:34:06]MH_I2C_Read... [21:34:06]*** Stop cut motor [21:34:06]*** Cut end [21:34:06]Read from MH i2c: 01 07 00 [21:34:06]MH_I2C_Read... [21:34:06]Read from MH i2c: 01 07 00 E7 D2 00 00 00 00 00 FF 0F CE [21:34:06]process_action close_receipt done [21:34:06]requested_data is exist [21:34:06]produce_requested_data [21:34:06]requested_item fm.sn is exist - process it [21:34:06]wFMCommunicate request_size=4 [21:34:06]MH_SAM_APDU [21:34:06]CAPDU: 80 11 00 00 [21:34:06]Write to MH i2c: E2 08 00 E8 D2 80 11 00 00 00 00 00 00 34 [21:34:06]Write i2c OK [21:34:06]MH_I2C_Read... [21:34:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:34:06]Read from MH i2c: E2 [21:34:06]MH_I2C_Read... [21:34:06]Read from MH i2c: E2 17 00 [21:34:06]MH_I2C_Read... [21:34:06]Read from MH i2c: E2 17 00 E8 D2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 81 [21:34:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:34:06]wFMCommunicate OK [21:34:06]requested_item fd.num is exist - process it [21:34:06]SAM_PROTO_GetFieldsCounters [21:34:06]wFMCommunicate request_size=4 [21:34:06]MH_SAM_APDU [21:34:06]CAPDU: 80 13 00 00 [21:34:06]Write to MH i2c: E2 08 00 E9 D2 80 13 00 00 00 00 00 00 37 [21:34:06]Write i2c OK [21:34:06]MH_I2C_Read... [21:34:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:34:06]Read from MH i2c: E2 [21:34:06]MH_I2C_Read... [21:34:06]Read from MH i2c: E2 62 00 [21:34:06]MH_I2C_Read... [21:34:06]Read from MH i2c: E2 62 00 E9 D2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 62 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 08 02 00 00 5E 04 04 00 08 02 00 00 57 04 04 00 09 02 00 00 19 04 04 00 00 00 00 00 90 00 96 [21:34: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 62 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 08 02 00 00 5E 04 04 00 08 02 00 00 57 04 04 00 09 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:34:06]wFMCommunicate OK [21:34:06]SAM_PROTO_GetFieldsCounters done [21:34:06]requested_item shift.num is exist - process it [21:34:06]requested_item shift.opened is exist - process it [21:34:06]req_shift_opened [21:34:06]FM_GetShiftState [21:34:06]SAM_PROTO_GetShiftState [21:34:06]wFMCommunicate request_size=4 [21:34:06]MH_SAM_APDU [21:34:06]CAPDU: 80 13 01 00 [21:34:06]Write to MH i2c: E2 08 00 EA D2 80 13 01 00 00 00 00 00 39 [21:34:06]Write i2c OK [21:34:06]MH_I2C_Read... [21:34:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:34:06]Read from MH i2c: E2 [21:34:06]MH_I2C_Read... [21:34:06]Read from MH i2c: E2 0E 00 [21:34:06]MH_I2C_Read... [21:34:06]Read from MH i2c: E2 0E 00 EA D2 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 76 [21:34:06]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:34:06]wFMCommunicate OK [21:34:06]SAM_PROTO_GetShiftState done [21:34:06]FM_GetShiftState done [21:34:06]req_shift_opened done [21:34:06]requested_item shift.open_date is exist - process it [21:34:06]req_shift_open_date [21:34:06]req_shift_open_date done [21:34:06]produce_requested_data done [21:34:06]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260962,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [21:34:06]process_action_free close_receipt [21:34:06]json_value_free [21:34:06]json_value_free done [21:34:06]process_json_proto returns [21:34:06]Send response to host [21:34:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260962,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [21:34:06]free response buf [21:34:06]execute_script done [21:34:06]execute_script returns [21:34:06]free content buf [21:34:06]Sock 9.Close socket [21:34:06]Sock 9.Thread stoped [21:34:08]OFD Sender: No OFD packet to send [21:34:13]OFD Sender: No OFD packet to send [21:34:18]OFD Sender: No OFD packet to send [21:34:23]OFD Sender: No OFD packet to send [21:34:28]OFD Sender: No OFD packet to send [21:34:33]OFD Sender: No OFD packet to send [21:34:38]OFD Sender: No OFD packet to send [21:34:43]OFD Sender: No OFD packet to send [21:34:48]OFD Sender: No OFD packet to send [21:34:50]accept exits with 7 [21:34:50]New connection [21:34:50]New thread 3066617188 created [21:34:50]Thread 3066473828 joined [21:34:50]Waiting for new connection... [21:34:50] Sock 7.Parse request [21:34:50]Sock 7.Check first char [21:34:50]Sock 7.First char is OK [21:34:50]request: POST /json_proto HTTP/1.0 [21:34:50]Method: POST [21:34:50]URL: /json_proto [21:34:50]Method is POST - this is cgi request [21:34:50]url: /json_proto [21:34:50]query_string will be loaded in cgi processing [21:34:50]execute_cgi json_proto POST (null) [21:34:50]execute_cgi path=json_proto method=POST [21:34:50]POST find Content-Length [21:34:50]Host: 172.17.55.133:8080 [21:34:50]Content-Length: 804 [21:34:50]Content-Type: application/json [21:34:50] [21:34:50]POST finish read [21:34:50]Found Content-Length = 804 [21:34:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036516", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:34:50]execute_script... [21:34:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036516", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:34:50]POST & json_proto [21:34:50]process_json_proto [21:34:50]json parsed OK: [21:34:50]protocol is kg_v1.0 [21:34:50]action value=close_receipt [21:34:50]process_action close_receipt [21:34:50]cmd_close_receipt [21:34:50]MH_GetDate [21:34:50]Write to MH i2c: F0 00 00 EB D2 AC [21:34:50]Write i2c OK [21:34:50]MH_I2C_Read... [21:34:50]Read from MH i2c: F0 [21:34:50]MH_I2C_Read... [21:34:50]Read from MH i2c: F0 09 00 [21:34:50]MH_I2C_Read... [21:34:50]Read from MH i2c: F0 09 00 EB D2 00 01 69 C2 66 34 48 D8 65 00 [21:34:50]GetLastDocTimeStamp 1724016847 [21:34:50]current date 1724016897 [21:34:50]FM_GetShiftState [21:34:50]SAM_PROTO_GetShiftState [21:34:50]wFMCommunicate request_size=4 [21:34:50]MH_SAM_APDU [21:34:50]CAPDU: 80 13 01 00 [21:34:50]Write to MH i2c: E2 08 00 EC D2 80 13 01 00 00 00 00 00 3B [21:34:50]Write i2c OK [21:34:50]MH_I2C_Read... [21:34:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:34:50]Read from MH i2c: E2 [21:34:50]MH_I2C_Read... [21:34:50]Read from MH i2c: E2 0E 00 [21:34:50]MH_I2C_Read... [21:34:50]Read from MH i2c: E2 0E 00 EC D2 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 78 [21:34:50]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:34:50]wFMCommunicate OK [21:34:50]SAM_PROTO_GetShiftState done [21:34:50]FM_GetShiftState done [21:34:50]opened in 1723940556 [21:34:50]opened+sec_in_day 1724026956 [21:34:50]quantity*price = 100021 [21:34:50]sum+1 = 100023 [21:34:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 521 18.08.2024 21:34 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260963 ФПД: 240966324157285 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T213457&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260963&fm=240966324157285&tin=02508201610067®Number=0000000000091865&sum=100022 [21:34:51]StoreToDocumentArchive [21:34:51]shift 449 fd 260963 [21:34:51]save to /storage/0449/doc_00260963 [21:34:51]save last doc name /storage/0449/doc_00260963 to /storage/kkm_last_doc_name [21:34:51]save OK [21:34:51]Clear old archive folders... [21:34:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:34:51]tlvbuf is 004A43D0 [21:34:51]SAM_PROTO_ClearQueue [21:34:51]wFMCommunicate request_size=4 [21:34:51]MH_SAM_APDU [21:34:51]CAPDU: 80 09 00 00 [21:34:51]Write to MH i2c: E2 08 00 F9 D2 80 09 00 00 00 00 00 00 3D [21:34:51]Write i2c OK [21:34:51]MH_I2C_Read... [21:34:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:34:51]Read from MH i2c: E2 [21:34:51]MH_I2C_Read... [21:34:51]Read from MH i2c: E2 03 00 [21:34:51]MH_I2C_Read... [21:34:51]Read from MH i2c: E2 03 00 F9 D2 00 90 00 3F [21:34:51]RAPDU: 90 00 [21:34:51]wFMCommunicate OK [21:34:51]SAM_PROTO_ClearQueue done [21:34:51]KKMCreateOFDPacket [21:34:51]OFDProtocolAddRootSTLVToBuf [21:34:51]FM_MakeSignedData [21:34:51]FM_MakeSignedData [21:34:51]SAM_PROTO_SignData [21:34:51]wFMCommunicate request_size=4 [21:34:51]MH_SAM_APDU [21:34:51]CAPDU: 80 0D 01 02 [21:34:51]Write to MH i2c: E2 08 00 FA D2 80 0D 01 02 00 00 00 00 45 [21:34:51]Write i2c OK [21:34:51]MH_I2C_Read... [21:34:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:34:51]Read from MH i2c: E2 [21:34:51]MH_I2C_Read... [21:34:51]Read from MH i2c: E2 03 00 [21:34:51]MH_I2C_Read... [21:34:51]Read from MH i2c: E2 03 00 FA D2 00 90 00 40 [21:34:51]RAPDU: 90 00 [21:34:51]wFMCommunicate OK [21:34:51]wFMCommunicate request_size=255 [21:34:51]MH_SAM_APDU [21:34: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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 02 00 00 F4 03 04 00 01 69 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 63 FB 03 00 35 04 06 00 DB [21:34:51]Write to MH i2c: E2 02 01 FB D2 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 02 00 00 F4 03 04 00 01 69 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 63 FB 03 00 35 04 06 00 DB 00 00 B6 [21:34:51]Write i2c OK [21:34:51]MH_I2C_Read... [21:34:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:34:52]Read from MH i2c: E2 [21:34:52]MH_I2C_Read... [21:34:52]Read from MH i2c: E2 03 00 [21:34:52]MH_I2C_Read... [21:34:52]Read from MH i2c: E2 03 00 FB D2 00 90 00 41 [21:34:52]RAPDU: 90 00 [21:34:52]wFMCommunicate OK [21:34:52]wFMCommunicate request_size=10 [21:34:52]MH_SAM_APDU [21:34:52]CAPDU: 80 0D 02 02 05 28 58 27 7B 65 [21:34:52]Write to MH i2c: E2 0D 00 FC D2 80 0D 02 02 05 00 28 58 27 7B 65 00 00 D9 [21:34:52]Write i2c OK [21:34:52]MH_I2C_Read... [21:34:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:34:52]Read from MH i2c: E2 [21:34:52]MH_I2C_Read... [21:34:52]Read from MH i2c: E2 03 00 [21:34:52]MH_I2C_Read... [21:34:52]Read from MH i2c: E2 03 00 FC D2 00 90 00 42 [21:34:52]RAPDU: 90 00 [21:34:52]wFMCommunicate OK [21:34:52]wFMCommunicate request_size=4 [21:34:52]MH_SAM_APDU [21:34:52]CAPDU: 80 0D 03 02 [21:34:52]Write to MH i2c: E2 08 00 FD D2 80 0D 03 02 00 00 00 00 4A [21:34:52]Write i2c OK [21:34:52]MH_I2C_Read... [21:34:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:34:52]Read from MH i2c: E2 [21:34:52]MH_I2C_Read... [21:34:52]Read from MH i2c: E2 0B 00 [21:34:52]MH_I2C_Read... [21:34:52]Read from MH i2c: E2 0B 00 FD D2 00 47 3D B2 90 DF 7C D8 72 90 00 B6 [21:34:52]RAPDU: 47 3D B2 90 DF 7C D8 72 90 00 [21:34:52]wFMCommunicate OK [21:34:52]SAM_PROTO_SignData done [21:34:52]FM_MakeSignedData done [21:34:52]CreateOFDProtocolMessage [21:34:52]wFMCommunicate request_size=4 [21:34:52]MH_SAM_APDU [21:34:52]CAPDU: 80 11 00 00 [21:34:52]Write to MH i2c: E2 08 00 FE D2 80 11 00 00 00 00 00 00 4A [21:34:52]Write i2c OK [21:34:52]MH_I2C_Read... [21:34:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:34:52]Read from MH i2c: E2 [21:34:52]MH_I2C_Read... [21:34:52]Read from MH i2c: E2 17 00 [21:34:52]MH_I2C_Read... [21:34:52]Read from MH i2c: E2 17 00 FE D2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 97 [21:34:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:34:52]wFMCommunicate OK [21:34:52]CreateOFDProtocolMessage done [21:34:52]OFDSenderStorePacket 260963 [21:34:52]StoreOFDPacket docnum=260963 [21:34:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 56 16 07 01 EA E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 02 00 00 F4 03 04 00 01 69 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 63 FB 03 00 35 04 06 00 DB 28 58 27 7B 65 47 3D B2 90 DF 7C D8 72 [21:34:52]CheckFolder [21:34:52]dirname=/storage/ofd_packets [21:34:52]CheckFolder done [21:34:52]ProducePacketName [21:34:52]name=ofd_packets/00260963 [21:34:52]NVStorageSaveData ofd_packets/00260963 [21:34:52]File name is /storage/ofd_packets/00260963 [21:34:52]Write 301 bytes [21:34:52]NVStorageSaveData done [21:34:52]OFDSenderStorePacket done [21:34:52]KKMCreateOFDPacket done [21:34:52]NVStorageSaveData kkm_last_timestamp [21:34:52]File name is /storage/kkm_last_timestamp [21:34:52]Write 4 bytes [21:34:52]NVStorageSaveData done [21:34:52]ExternCall_PrintAddStr [21:34:52]wPrintStart [21:34:52]Write to MH i2c: 01 00 00 FF D2 D1 [21:34:52]Write i2c OK [21:34:52]MH_I2C_Read... [21:34:52]Read from MH i2c: 01 [21:34:52]MH_I2C_Read... [21:34:52]Read from MH i2c: 01 07 00 [21:34:52]MH_I2C_Read... [21:34:52]Read from MH i2c: 01 07 00 FF D2 00 00 00 00 00 FF 0F E6 [21:34:52]RasterBufferAndPrint [21:34:52]line Счет N : (1)1036516 [21:34:52]line ИНН: 02508201610067 [21:34:52]line Контрольно-Кассовый Чек [21:34:52]line ПРОДАЖА [21:34:52]line ТРК (МРК, ГНК) : 23 [21:34:52]line Товар: 2710124500 [21:34:52]line Аи-95-К-5 [21:34:52]line 13.480 * 74.20 [21:34:52]line = 1000.22 [21:34:52]line НДС 12% НСП 1% [21:34:52]line > о реализуемом товаре [21:34:52]line ИТОГО: 1000.22 [21:34:52]line НСП 1% : 8.85 [21:34:52]line НДС 12% : 106.22 [21:34:52]line Наличными: 0.00 [21:34:52]line Безнал.: 1000.22 [21:34:52]line Место: АЗС № 94 "Партнер Нефть" [21:34:52]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [21:34:52]line СНО: Общий режим [21:34:52]line Чек 521 18.08.2024 21:34 [21:34:52]line Смена: 449 ФФД: 1.0 [21:34:52]line ЗНМ: 0300000099 [21:34:52]line РНМ: 0000000000091865 [21:34:52]line Версия ККМ: 001 [21:34:52]line Платежная система: O! деньги [21:34:52]line ФМ: 0000000000871820 [21:34:52]line ФД: 260963 [21:34:52]line ФПД: 240966324157285 [21:34:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T213457&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260963&fm=240966324157285&tin=02508201610067®Number=0000000000091865&sum=100022 [21:34:52]written 0, free lines is 4095 [21:34:52]OFD Sender: Processing packet 260963 [packets to send 192, broken 191] [21:34:52]ProducePacketName [21:34:52]name=ofd_packets/00260963 [21:34:52]OFD Sender: To server: pG, [21:34:52]CommunicateWithHost lk.salyk.kg:30040 [21:34:52]ConnectInit lk.salyk.kg [21:34:52]Connected sock=10 [21:34: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 30 0F 01 00 00 56 16 07 01 EA E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 02 00 00 F4 03 04 00 01 69 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 63 FB 03 00 35 04 06 00 DB 28 58 27 7B 65 47 3D B2 90 DF 7C D8 72 [21:34: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 30 4F 00 00 00 41 CD 47 00 0F 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 30 10 04 04 00 63 FB 03 00 F4 03 04 00 54 12 C2 66 B6 04 01 00 00 F0 8D 90 D1 BC 51 9E F0 [21:34:52]CommunicateWithHost err = 0 [21:34:52]CheckOFDResponse [21:34:52]1017 (14) - 77093643461234 [21:34:52]1041 (16) - 0000000000871820 [21:34:52]1040 (4) - 260963 [21:34:52]1012 (4) - 18.08.2024 15:25 [21:34:52]1206 (1) - 0 [21:34:52]OFD Sender: Remove packet 260963 [21:34:52]ProducePacketName [21:34:52]name=ofd_packets/00260963 [21:34:52]NVStorageDeleteData [21:34:52]Write to MH i2c: 01 00 00 29 D3 FC [21:34:52]Write i2c OK [21:34:52]MH_I2C_Read... [21:34:52]Read from MH i2c: 01 [21:34:52]MH_I2C_Read... [21:34:52]Read from MH i2c: 01 07 00 [21:34:52]MH_I2C_Read... [21:34:52]Read from MH i2c: 01 07 00 29 D3 00 00 00 00 00 97 0C A6 [21:34:52]RasterBufferAndPrint [21:34:52]line [21:34:52]line [21:34:52]line [21:34:52]line [21:34:52]line [21:34:52]written 0, free lines is 3226 [21:34:52]MH_Cut [21:34:52]Write to MH i2c: D1 01 00 30 D3 01 D5 [21:34:52]Write i2c OK [21:34:52]MH_I2C_Read... [21:34:52]Read from MH i2c: D1 [21:34:52]MH_I2C_Read... [21:34:52]Read from MH i2c: D1 01 00 [21:34:52]MH_I2C_Read... [21:34:52]Read from MH i2c: D1 01 00 30 D3 00 D4 [21:34:52]Write to MH i2c: 01 00 00 31 D3 04 [21:34:52]Write i2c OK [21:34:52]MH_I2C_Read... [21:34:52]OFD Sender: No OFD packet to send [21:34:53]*** Cut start [21:34:53]*** Purtial cut [21:34:53]*** Stage 1: CUTSNS_PIN = 1 [21:34:55]Read from MH i2c: 01 [21:34:55]MH_I2C_Read... [21:34:55]*** Stop cut motor [21:34:55]*** Cut end [21:34:55]Read from MH i2c: 01 07 00 [21:34:55]MH_I2C_Read... [21:34:55]Read from MH i2c: 01 07 00 31 D3 00 00 00 00 00 FF 0F 19 [21:34:55]process_action close_receipt done [21:34:55]requested_data is exist [21:34:55]produce_requested_data [21:34:55]requested_item fm.sn is exist - process it [21:34:55]wFMCommunicate request_size=4 [21:34:55]MH_SAM_APDU [21:34:55]CAPDU: 80 11 00 00 [21:34:55]Write to MH i2c: E2 08 00 32 D3 80 11 00 00 00 00 00 00 7F [21:34:55]Write i2c OK [21:34:55]MH_I2C_Read... [21:34:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:34:55]Read from MH i2c: E2 [21:34:55]MH_I2C_Read... [21:34:55]Read from MH i2c: E2 17 00 [21:34:55]MH_I2C_Read... [21:34:55]Read from MH i2c: E2 17 00 32 D3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 CC [21:34:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:34:55]wFMCommunicate OK [21:34:55]requested_item fd.num is exist - process it [21:34:55]SAM_PROTO_GetFieldsCounters [21:34:55]wFMCommunicate request_size=4 [21:34:55]MH_SAM_APDU [21:34:55]CAPDU: 80 13 00 00 [21:34:55]Write to MH i2c: E2 08 00 33 D3 80 13 00 00 00 00 00 00 82 [21:34:55]Write i2c OK [21:34:55]MH_I2C_Read... [21:34:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:34:55]Read from MH i2c: E2 [21:34:55]MH_I2C_Read... [21:34:55]Read from MH i2c: E2 62 00 [21:34:55]MH_I2C_Read... [21:34:55]Read from MH i2c: E2 62 00 33 D3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 63 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 09 02 00 00 5E 04 04 00 09 02 00 00 57 04 04 00 0A 02 00 00 19 04 04 00 00 00 00 00 90 00 E5 [21:34: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 63 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 09 02 00 00 5E 04 04 00 09 02 00 00 57 04 04 00 0A 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:34:55]wFMCommunicate OK [21:34:55]SAM_PROTO_GetFieldsCounters done [21:34:55]requested_item shift.num is exist - process it [21:34:55]requested_item shift.opened is exist - process it [21:34:55]req_shift_opened [21:34:55]FM_GetShiftState [21:34:55]SAM_PROTO_GetShiftState [21:34:55]wFMCommunicate request_size=4 [21:34:55]MH_SAM_APDU [21:34:55]CAPDU: 80 13 01 00 [21:34:55]Write to MH i2c: E2 08 00 34 D3 80 13 01 00 00 00 00 00 84 [21:34:55]Write i2c OK [21:34:55]MH_I2C_Read... [21:34:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:34:56]Read from MH i2c: E2 [21:34:56]MH_I2C_Read... [21:34:56]Read from MH i2c: E2 0E 00 [21:34:56]MH_I2C_Read... [21:34:56]Read from MH i2c: E2 0E 00 34 D3 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C1 [21:34:56]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:34:56]wFMCommunicate OK [21:34:56]SAM_PROTO_GetShiftState done [21:34:56]FM_GetShiftState done [21:34:56]req_shift_opened done [21:34:56]requested_item shift.open_date is exist - process it [21:34:56]req_shift_open_date [21:34:56]req_shift_open_date done [21:34:56]produce_requested_data done [21:34:56]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260963,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [21:34:56]process_action_free close_receipt [21:34:56]json_value_free [21:34:56]json_value_free done [21:34:56]process_json_proto returns [21:34:56]Send response to host [21:34:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260963,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [21:34:56]free response buf [21:34:56]execute_script done [21:34:56]execute_script returns [21:34:56]free content buf [21:34:56]Sock 7.Close socket [21:34:56]Sock 7.Thread stoped [21:34:57]OFD Sender: No OFD packet to send [21:35:02]OFD Sender: No OFD packet to send [21:35:08]OFD Sender: No OFD packet to send [21:35:13]OFD Sender: No OFD packet to send [21:35:18]OFD Sender: No OFD packet to send [21:35:23]OFD Sender: No OFD packet to send [21:35:28]OFD Sender: No OFD packet to send [21:35:33]OFD Sender: No OFD packet to send [21:35:38]OFD Sender: No OFD packet to send [21:35:43]OFD Sender: No OFD packet to send [21:35:48]OFD Sender: No OFD packet to send [21:35:53]OFD Sender: No OFD packet to send [21:35:55]accept exits with 9 [21:35:55]New connection [21:35:55]New thread 3066473828 created [21:35:55]Thread 3066617188 joined [21:35:55]Waiting for new connection... [21:35:55] Sock 9.Parse request [21:35:55]Sock 9.Check first char [21:35:55]Sock 9.First char is OK [21:35:55]request: POST /json_proto HTTP/1.0 [21:35:55]Method: POST [21:35:55]URL: /json_proto [21:35:55]Method is POST - this is cgi request [21:35:55]url: /json_proto [21:35:55]query_string will be loaded in cgi processing [21:35:55]execute_cgi json_proto POST (null) [21:35:55]execute_cgi path=json_proto method=POST [21:35:55]POST find Content-Length [21:35:55]Host: 172.17.55.133:8080 [21:35:55]Content-Length: 679 [21:35:55]Content-Type: application/json [21:35:55] [21:35:55]POST finish read [21:35:55]Found Content-Length = 679 [21:35:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036517", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [21:35:55]execute_script... [21:35: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)1036517", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [21:35:55]POST & json_proto [21:35:55]process_json_proto [21:35:55]json parsed OK: [21:35:55]protocol is kg_v1.0 [21:35:55]action value=close_receipt [21:35:55]process_action close_receipt [21:35:55]cmd_close_receipt [21:35:55]MH_GetDate [21:35:55]Write to MH i2c: F0 00 00 35 D3 F7 [21:35:55]Write i2c OK [21:35:55]MH_I2C_Read... [21:35:55]Read from MH i2c: F0 [21:35:55]MH_I2C_Read... [21:35:55]Read from MH i2c: F0 09 00 [21:35:55]MH_I2C_Read... [21:35:55]Read from MH i2c: F0 09 00 35 D3 00 42 69 C2 66 34 48 D8 65 8C [21:35:55]GetLastDocTimeStamp 1724016897 [21:35:55]current date 1724016962 [21:35:55]FM_GetShiftState [21:35:55]SAM_PROTO_GetShiftState [21:35:55]wFMCommunicate request_size=4 [21:35:55]MH_SAM_APDU [21:35:55]CAPDU: 80 13 01 00 [21:35:55]Write to MH i2c: E2 08 00 36 D3 80 13 01 00 00 00 00 00 86 [21:35:55]Write i2c OK [21:35:55]MH_I2C_Read... [21:35:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:55]Read from MH i2c: E2 [21:35:55]MH_I2C_Read... [21:35:55]Read from MH i2c: E2 0E 00 [21:35:55]MH_I2C_Read... [21:35:55]Read from MH i2c: E2 0E 00 36 D3 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C3 [21:35:55]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:35:55]wFMCommunicate OK [21:35:55]SAM_PROTO_GetShiftState done [21:35:55]FM_GetShiftState done [21:35:55]opened in 1723940556 [21:35:55]opened+sec_in_day 1724026956 [21:35:55]quantity*price = 70037 [21:35:55]sum+1 = 70038 [21:35:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 522 18.08.2024 21:36 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260964 ФПД: 19278363710629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T213602&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260964&fm=19278363710629&tin=02508201610067®Number=0000000000091865&sum=70000 [21:35:56]StoreToDocumentArchive [21:35:56]shift 449 fd 260964 [21:35:56]save to /storage/0449/doc_00260964 [21:35:56]save last doc name /storage/0449/doc_00260964 to /storage/kkm_last_doc_name [21:35:56]save OK [21:35:56]Clear old archive folders... [21:35:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:35:56]tlvbuf is 00751F20 [21:35:56]SAM_PROTO_ClearQueue [21:35:56]wFMCommunicate request_size=4 [21:35:56]MH_SAM_APDU [21:35:56]CAPDU: 80 09 00 00 [21:35:56]Write to MH i2c: E2 08 00 43 D3 80 09 00 00 00 00 00 00 88 [21:35:56]Write i2c OK [21:35:56]MH_I2C_Read... [21:35:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:35:56]Read from MH i2c: E2 [21:35:56]MH_I2C_Read... [21:35:56]Read from MH i2c: E2 03 00 [21:35:56]MH_I2C_Read... [21:35:56]Read from MH i2c: E2 03 00 43 D3 00 90 00 8A [21:35:56]RAPDU: 90 00 [21:35:56]wFMCommunicate OK [21:35:56]SAM_PROTO_ClearQueue done [21:35:56]KKMCreateOFDPacket [21:35:56]OFDProtocolAddRootSTLVToBuf [21:35:56]FM_MakeSignedData [21:35:56]FM_MakeSignedData [21:35:56]SAM_PROTO_SignData [21:35:56]wFMCommunicate request_size=4 [21:35:56]MH_SAM_APDU [21:35:56]CAPDU: 80 0D 01 02 [21:35:56]Write to MH i2c: E2 08 00 44 D3 80 0D 01 02 00 00 00 00 90 [21:35:56]Write i2c OK [21:35:56]MH_I2C_Read... [21:35:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:35:56]Read from MH i2c: E2 [21:35:56]MH_I2C_Read... [21:35:56]Read from MH i2c: E2 03 00 [21:35:56]MH_I2C_Read... [21:35:56]Read from MH i2c: E2 03 00 44 D3 00 90 00 8B [21:35:56]RAPDU: 90 00 [21:35:56]wFMCommunicate OK [21:35:56]wFMCommunicate request_size=255 [21:35:56]MH_SAM_APDU [21:35:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0A 02 00 00 F4 03 04 00 42 69 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 64 FB 03 00 35 04 06 00 11 [21:35:56]Write to MH i2c: E2 02 01 45 D3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0A 02 00 00 F4 03 04 00 42 69 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 64 FB 03 00 35 04 06 00 11 00 00 08 [21:35:56]Write i2c OK [21:35:56]MH_I2C_Read... [21:35:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:57]Read from MH i2c: E2 [21:35:57]MH_I2C_Read... [21:35:57]Read from MH i2c: E2 03 00 [21:35:57]MH_I2C_Read... [21:35:57]Read from MH i2c: E2 03 00 45 D3 00 90 00 8C [21:35:57]RAPDU: 90 00 [21:35:57]wFMCommunicate OK [21:35:57]wFMCommunicate request_size=10 [21:35:57]MH_SAM_APDU [21:35:57]CAPDU: 80 0D 02 02 05 88 98 05 54 A5 [21:35:57]Write to MH i2c: E2 0D 00 46 D3 80 0D 02 02 05 00 88 98 05 54 A5 00 00 BB [21:35:57]Write i2c OK [21:35:57]MH_I2C_Read... [21:35:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:57]Read from MH i2c: E2 [21:35:57]MH_I2C_Read... [21:35:57]Read from MH i2c: E2 03 00 [21:35:57]MH_I2C_Read... [21:35:57]Read from MH i2c: E2 03 00 46 D3 00 90 00 8D [21:35:57]RAPDU: 90 00 [21:35:57]wFMCommunicate OK [21:35:57]wFMCommunicate request_size=4 [21:35:57]MH_SAM_APDU [21:35:57]CAPDU: 80 0D 03 02 [21:35:57]Write to MH i2c: E2 08 00 47 D3 80 0D 03 02 00 00 00 00 95 [21:35:57]Write i2c OK [21:35:57]MH_I2C_Read... [21:35:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:35:57]Read from MH i2c: E2 [21:35:57]MH_I2C_Read... [21:35:57]Read from MH i2c: E2 0B 00 [21:35:57]MH_I2C_Read... [21:35:57]Read from MH i2c: E2 0B 00 47 D3 00 B7 BF 51 42 90 4C 52 0A 90 00 D7 [21:35:57]RAPDU: B7 BF 51 42 90 4C 52 0A 90 00 [21:35:57]wFMCommunicate OK [21:35:57]SAM_PROTO_SignData done [21:35:57]FM_MakeSignedData done [21:35:57]CreateOFDProtocolMessage [21:35:57]wFMCommunicate request_size=4 [21:35:57]MH_SAM_APDU [21:35:57]CAPDU: 80 11 00 00 [21:35:57]Write to MH i2c: E2 08 00 48 D3 80 11 00 00 00 00 00 00 95 [21:35:57]Write i2c OK [21:35:57]MH_I2C_Read... [21:35:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:57]Read from MH i2c: E2 [21:35:57]MH_I2C_Read... [21:35:57]Read from MH i2c: E2 17 00 [21:35:57]MH_I2C_Read... [21:35:57]Read from MH i2c: E2 17 00 48 D3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E2 [21:35:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:35:57]wFMCommunicate OK [21:35:57]CreateOFDProtocolMessage done [21:35:57]OFDSenderStorePacket 260964 [21:35:57]StoreOFDPacket docnum=260964 [21:35:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 24 E3 07 01 D5 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0A 02 00 00 F4 03 04 00 42 69 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 64 FB 03 00 35 04 06 00 11 88 98 05 54 A5 B7 BF 51 42 90 4C 52 0A [21:35:57]CheckFolder [21:35:57]dirname=/storage/ofd_packets [21:35:57]CheckFolder done [21:35:57]ProducePacketName [21:35:57]name=ofd_packets/00260964 [21:35:57]NVStorageSaveData ofd_packets/00260964 [21:35:57]File name is /storage/ofd_packets/00260964 [21:35:57]Write 301 bytes [21:35:57]NVStorageSaveData done [21:35:57]OFDSenderStorePacket done [21:35:57]KKMCreateOFDPacket done [21:35:57]NVStorageSaveData kkm_last_timestamp [21:35:57]File name is /storage/kkm_last_timestamp [21:35:57]Write 4 bytes [21:35:57]NVStorageSaveData done [21:35:57]ExternCall_PrintAddStr [21:35:57]wPrintStart [21:35:57]Write to MH i2c: 01 00 00 49 D3 1C [21:35:57]Write i2c OK [21:35:57]MH_I2C_Read... [21:35:57]Read from MH i2c: 01 [21:35:57]MH_I2C_Read... [21:35:57]Read from MH i2c: 01 07 00 [21:35:57]MH_I2C_Read... [21:35:57]Read from MH i2c: 01 07 00 49 D3 00 00 00 00 00 FF 0F 31 [21:35:57]RasterBufferAndPrint [21:35:57]line Счет N : (1)1036517 [21:35:57]line ИНН: 02508201610067 [21:35:57]line Контрольно-Кассовый Чек [21:35:57]line ПРОДАЖА [21:35:57]line ТРК (МРК, ГНК) : 12 [21:35:57]line Товар: 2710124130 [21:35:57]line Аи-92-К-5 [21:35:57]line 10.330 * 67.80 [21:35:57]line = 700.37 [21:35:57]line НДС 12% НСП 1% [21:35:57]line > о реализуемом товаре [21:35:57]line ОКРУГЛЕНИЕ: -0.37 [21:35:57]line ИТОГО: 700.00 [21:35:57]line Внесено: 700.00 [21:35:57]line СДАЧА: 0.00 [21:35:57]line НСП 1% : 6.20 [21:35:57]line НДС 12% : 74.38 [21:35:57]line Наличными: 700.00 [21:35:57]line Безнал.: 0.00 [21:35:57]line Место: АЗС № 94 "Партнер Нефть" [21:35:57]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [21:35:57]line СНО: Общий режим [21:35:57]line Чек 522 18.08.2024 21:36 [21:35:57]line Смена: 449 ФФД: 1.0 [21:35:57]line ЗНМ: 0300000099 [21:35:57]line РНМ: 0000000000091865 [21:35:57]line Версия ККМ: 001 [21:35:57]line ФМ: 0000000000871820 [21:35:57]line ФД: 260964 [21:35:57]line ФПД: 19278363710629 [21:35:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T213602&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260964&fm=19278363710629&tin=02508201610067®Number=0000000000091865&sum=70000 [21:35:57]written 0, free lines is 4095 [21:35:57]OFD Sender: Processing packet 260964 [packets to send 192, broken 191] [21:35:57]ProducePacketName [21:35:57]name=ofd_packets/00260964 [21:35:57]OFD Sender: To server: pG, [21:35:57]CommunicateWithHost lk.salyk.kg:30040 [21:35:57]ConnectInit lk.salyk.kg [21:35:57]Connected sock=7 [21:35: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 30 0F 01 00 00 24 E3 07 01 D5 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0A 02 00 00 F4 03 04 00 42 69 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 64 FB 03 00 35 04 06 00 11 88 98 05 54 A5 B7 BF 51 42 90 4C 52 0A [21:35: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 30 4F 00 00 00 35 20 47 00 59 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 30 10 04 04 00 64 FB 03 00 F4 03 04 00 96 12 C2 66 B6 04 01 00 00 06 E0 8B D2 B3 23 C2 1B [21:35:57]CommunicateWithHost err = 0 [21:35:57]CheckOFDResponse [21:35:57]1017 (14) - 77093643461234 [21:35:57]1041 (16) - 0000000000871820 [21:35:57]1040 (4) - 260964 [21:35:57]1012 (4) - 18.08.2024 15:26 [21:35:57]1206 (1) - 0 [21:35:57]OFD Sender: Remove packet 260964 [21:35:57]ProducePacketName [21:35:57]name=ofd_packets/00260964 [21:35:57]NVStorageDeleteData [21:35:57]Write to MH i2c: 01 00 00 74 D3 47 [21:35:57]Write i2c OK [21:35:57]MH_I2C_Read... [21:35:57]Read from MH i2c: 01 [21:35:57]MH_I2C_Read... [21:35:57]Read from MH i2c: 01 07 00 [21:35:57]MH_I2C_Read... [21:35:57]Read from MH i2c: 01 07 00 74 D3 00 00 00 00 00 76 0C D0 [21:35:57]RasterBufferAndPrint [21:35:57]line [21:35:57]line [21:35:57]line [21:35:57]line [21:35:57]line [21:35:57]written 0, free lines is 3193 [21:35:57]MH_Cut [21:35:57]Write to MH i2c: D1 01 00 7B D3 01 20 [21:35:57]Write i2c OK [21:35:57]MH_I2C_Read... [21:35:57]Read from MH i2c: D1 [21:35:57]MH_I2C_Read... [21:35:57]Read from MH i2c: D1 01 00 [21:35:57]MH_I2C_Read... [21:35:57]Read from MH i2c: D1 01 00 7B D3 00 1F [21:35:57]Write to MH i2c: 01 00 00 7C D3 4F [21:35:57]Write i2c OK [21:35:57]MH_I2C_Read... [21:35:58]OFD Sender: No OFD packet to send [21:35:58]*** Cut start [21:35:58]*** Purtial cut [21:35:58]*** Stage 1: CUTSNS_PIN = 1 [21:36:00]Read from MH i2c: 01 [21:36:00]MH_I2C_Read... [21:36:00]*** Stop cut motor [21:36:00]*** Cut end [21:36:00]Read from MH i2c: 01 07 00 [21:36:00]MH_I2C_Read... [21:36:00]Read from MH i2c: 01 07 00 7C D3 00 00 00 00 00 FF 0F 64 [21:36:00]process_action close_receipt done [21:36:00]requested_data is exist [21:36:00]produce_requested_data [21:36:00]requested_item fm.sn is exist - process it [21:36:00]wFMCommunicate request_size=4 [21:36:00]MH_SAM_APDU [21:36:00]CAPDU: 80 11 00 00 [21:36:00]Write to MH i2c: E2 08 00 7D D3 80 11 00 00 00 00 00 00 CA [21:36:00]Write i2c OK [21:36:00]MH_I2C_Read... [21:36:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:00]Read from MH i2c: E2 [21:36:00]MH_I2C_Read... [21:36:00]Read from MH i2c: E2 17 00 [21:36:00]MH_I2C_Read... [21:36:00]Read from MH i2c: E2 17 00 7D D3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 17 [21:36:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:36:00]wFMCommunicate OK [21:36:00]requested_item fd.num is exist - process it [21:36:00]SAM_PROTO_GetFieldsCounters [21:36:00]wFMCommunicate request_size=4 [21:36:00]MH_SAM_APDU [21:36:00]CAPDU: 80 13 00 00 [21:36:00]Write to MH i2c: E2 08 00 7E D3 80 13 00 00 00 00 00 00 CD [21:36:00]Write i2c OK [21:36:00]MH_I2C_Read... [21:36:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:36:01]Read from MH i2c: E2 [21:36:01]MH_I2C_Read... [21:36:01]Read from MH i2c: E2 62 00 [21:36:01]MH_I2C_Read... [21:36:01]Read from MH i2c: E2 62 00 7E D3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 64 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 0A 02 00 00 5E 04 04 00 0A 02 00 00 57 04 04 00 0B 02 00 00 19 04 04 00 00 00 00 00 90 00 34 [21:36: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 64 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 0A 02 00 00 5E 04 04 00 0A 02 00 00 57 04 04 00 0B 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:36:01]wFMCommunicate OK [21:36:01]SAM_PROTO_GetFieldsCounters done [21:36:01]requested_item shift.num is exist - process it [21:36:01]requested_item shift.opened is exist - process it [21:36:01]req_shift_opened [21:36:01]FM_GetShiftState [21:36:01]SAM_PROTO_GetShiftState [21:36:01]wFMCommunicate request_size=4 [21:36:01]MH_SAM_APDU [21:36:01]CAPDU: 80 13 01 00 [21:36:01]Write to MH i2c: E2 08 00 7F D3 80 13 01 00 00 00 00 00 CF [21:36:01]Write i2c OK [21:36:01]MH_I2C_Read... [21:36:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:01]Read from MH i2c: E2 [21:36:01]MH_I2C_Read... [21:36:01]Read from MH i2c: E2 0E 00 [21:36:01]MH_I2C_Read... [21:36:01]Read from MH i2c: E2 0E 00 7F D3 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 0C [21:36:01]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:36:01]wFMCommunicate OK [21:36:01]SAM_PROTO_GetShiftState done [21:36:01]FM_GetShiftState done [21:36:01]req_shift_opened done [21:36:01]requested_item shift.open_date is exist - process it [21:36:01]req_shift_open_date [21:36:01]req_shift_open_date done [21:36:01]produce_requested_data done [21:36:01]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260964,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [21:36:01]process_action_free close_receipt [21:36:01]json_value_free [21:36:01]json_value_free done [21:36:01]process_json_proto returns [21:36:01]Send response to host [21:36:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260964,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [21:36:01]free response buf [21:36:01]execute_script done [21:36:01]execute_script returns [21:36:01]free content buf [21:36:01]Sock 9.Close socket [21:36:01]Sock 9.Thread stoped [21:36:03]OFD Sender: No OFD packet to send [21:36:08]OFD Sender: No OFD packet to send [21:36:13]OFD Sender: No OFD packet to send [21:36:18]OFD Sender: No OFD packet to send [21:36:23]OFD Sender: No OFD packet to send [21:36:28]OFD Sender: No OFD packet to send [21:36:33]OFD Sender: No OFD packet to send [21:36:38]OFD Sender: No OFD packet to send [21:36:43]accept exits with 10 [21:36:43]New connection [21:36:43]New thread 3066617188 created [21:36:43]Thread 3066473828 joined [21:36:43]Waiting for new connection... [21:36:43] Sock 10.Parse request [21:36:43]Sock 10.Check first char [21:36:43]Sock 10.First char is OK [21:36:43]request: POST /json_proto HTTP/1.0 [21:36:43]Method: POST [21:36:43]URL: /json_proto [21:36:43]Method is POST - this is cgi request [21:36:43]url: /json_proto [21:36:43]query_string will be loaded in cgi processing [21:36:43]execute_cgi json_proto POST (null) [21:36:43]execute_cgi path=json_proto method=POST [21:36:43]POST find Content-Length [21:36:43]Host: 172.17.55.133:8080 [21:36:43]Content-Length: 688 [21:36:43]Content-Type: application/json [21:36:43] [21:36:43]POST finish read [21:36:43]Found Content-Length = 688 [21:36:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:43]execute_script... [21:36:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:43]POST & json_proto [21:36:43]process_json_proto [21:36:43]json parsed OK: [21:36:43]protocol is kg_v1.0 [21:36:43]action value=close_receipt [21:36:43]process_action close_receipt [21:36:43]cmd_close_receipt [21:36:43]MH_GetDate [21:36:43]Write to MH i2c: F0 00 00 80 D3 42 [21:36:43]Write i2c OK [21:36:43]MH_I2C_Read... [21:36:43]Read from MH i2c: F0 [21:36:43]MH_I2C_Read... [21:36:43]Read from MH i2c: F0 09 00 [21:36:43]MH_I2C_Read... [21:36:43]Read from MH i2c: F0 09 00 80 D3 00 72 69 C2 66 34 48 D8 65 07 [21:36:43]GetLastDocTimeStamp 1724016962 [21:36:43]current date 1724017010 [21:36:43]FM_GetShiftState [21:36:43]SAM_PROTO_GetShiftState [21:36:43]wFMCommunicate request_size=4 [21:36:43]MH_SAM_APDU [21:36:43]CAPDU: 80 13 01 00 [21:36:43]Write to MH i2c: E2 08 00 81 D3 80 13 01 00 00 00 00 00 D1 [21:36:43]Write i2c OK [21:36:43]MH_I2C_Read... [21:36:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:43]Read from MH i2c: E2 [21:36:43]MH_I2C_Read... [21:36:43]Read from MH i2c: E2 0E 00 [21:36:43]MH_I2C_Read... [21:36:43]Read from MH i2c: E2 0E 00 81 D3 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 0E [21:36:43]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:36:43]wFMCommunicate OK [21:36:43]SAM_PROTO_GetShiftState done [21:36:43]FM_GetShiftState done [21:36:43]opened in 1723940556 [21:36:43]opened+sec_in_day 1724026956 [21:36:43]quantity*price = 200025 [21:36:43]sum+1 = 200026 [21:36:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 523 18.08.2024 21:36 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260965 ФПД: 188286427415395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T213650&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260965&fm=188286427415395&tin=02508201610067®Number=0000000000091865&sum=200000 [21:36:44]StoreToDocumentArchive [21:36:44]shift 449 fd 260965 [21:36:44]save to /storage/0449/doc_00260965 [21:36:44]save last doc name /storage/0449/doc_00260965 to /storage/kkm_last_doc_name [21:36:44]save OK [21:36:44]Clear old archive folders... [21:36:44]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:36:44]tlvbuf is 004A48F0 [21:36:44]SAM_PROTO_ClearQueue [21:36:44]wFMCommunicate request_size=4 [21:36:44]MH_SAM_APDU [21:36:44]CAPDU: 80 09 00 00 [21:36:44]Write to MH i2c: E2 08 00 8E D3 80 09 00 00 00 00 00 00 D3 [21:36:44]Write i2c OK [21:36:44]MH_I2C_Read... [21:36:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:36:44]Read from MH i2c: E2 [21:36:44]MH_I2C_Read... [21:36:44]Read from MH i2c: E2 03 00 [21:36:44]MH_I2C_Read... [21:36:44]Read from MH i2c: E2 03 00 8E D3 00 90 00 D5 [21:36:44]RAPDU: 90 00 [21:36:44]wFMCommunicate OK [21:36:44]SAM_PROTO_ClearQueue done [21:36:44]KKMCreateOFDPacket [21:36:44]OFDProtocolAddRootSTLVToBuf [21:36:44]FM_MakeSignedData [21:36:44]FM_MakeSignedData [21:36:44]SAM_PROTO_SignData [21:36:44]wFMCommunicate request_size=4 [21:36:44]MH_SAM_APDU [21:36:44]CAPDU: 80 0D 01 02 [21:36:44]Write to MH i2c: E2 08 00 8F D3 80 0D 01 02 00 00 00 00 DB [21:36:44]Write i2c OK [21:36:44]MH_I2C_Read... [21:36:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:36:44]Read from MH i2c: E2 [21:36:44]MH_I2C_Read... [21:36:44]Read from MH i2c: E2 03 00 [21:36:44]MH_I2C_Read... [21:36:44]Read from MH i2c: E2 03 00 8F D3 00 90 00 D6 [21:36:44]RAPDU: 90 00 [21:36:44]wFMCommunicate OK [21:36:44]wFMCommunicate request_size=255 [21:36:44]MH_SAM_APDU [21:36:44]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 0B 02 00 00 F4 03 04 00 72 69 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 65 FB 03 00 35 04 06 00 [21:36:44]Write to MH i2c: E2 02 01 90 D3 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 0B 02 00 00 F4 03 04 00 72 69 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 65 FB 03 00 35 04 06 00 00 00 68 [21:36:44]Write i2c OK [21:36:44]MH_I2C_Read... [21:36:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:44]Read from MH i2c: E2 [21:36:44]MH_I2C_Read... [21:36:44]Read from MH i2c: E2 03 00 [21:36:44]MH_I2C_Read... [21:36:44]Read from MH i2c: E2 03 00 90 D3 00 90 00 D7 [21:36:44]RAPDU: 90 00 [21:36:44]wFMCommunicate OK [21:36:44]wFMCommunicate request_size=11 [21:36:44]MH_SAM_APDU [21:36:44]CAPDU: 80 0D 02 02 06 AB 3E D9 9F 43 63 [21:36:44]Write to MH i2c: E2 0E 00 91 D3 80 0D 02 02 06 00 AB 3E D9 9F 43 63 00 00 F1 [21:36:44]Write i2c OK [21:36:44]MH_I2C_Read... [21:36:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:44]Read from MH i2c: E2 [21:36:44]MH_I2C_Read... [21:36:44]Read from MH i2c: E2 03 00 [21:36:44]MH_I2C_Read... [21:36:44]Read from MH i2c: E2 03 00 91 D3 00 90 00 D8 [21:36:44]RAPDU: 90 00 [21:36:44]wFMCommunicate OK [21:36:44]wFMCommunicate request_size=4 [21:36:44]MH_SAM_APDU [21:36:44]CAPDU: 80 0D 03 02 [21:36:44]Write to MH i2c: E2 08 00 92 D3 80 0D 03 02 00 00 00 00 E0 [21:36:44]Write i2c OK [21:36:44]MH_I2C_Read... [21:36:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:36:44]Read from MH i2c: E2 [21:36:44]MH_I2C_Read... [21:36:44]Read from MH i2c: E2 0B 00 [21:36:44]MH_I2C_Read... [21:36:44]Read from MH i2c: E2 0B 00 92 D3 00 1C 19 82 52 50 EC D4 46 90 00 40 [21:36:44]RAPDU: 1C 19 82 52 50 EC D4 46 90 00 [21:36:44]wFMCommunicate OK [21:36:44]SAM_PROTO_SignData done [21:36:44]FM_MakeSignedData done [21:36:44]CreateOFDProtocolMessage [21:36:44]wFMCommunicate request_size=4 [21:36:44]MH_SAM_APDU [21:36:44]CAPDU: 80 11 00 00 [21:36:44]Write to MH i2c: E2 08 00 93 D3 80 11 00 00 00 00 00 00 E0 [21:36:44]Write i2c OK [21:36:44]MH_I2C_Read... [21:36:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:44]Read from MH i2c: E2 [21:36:44]MH_I2C_Read... [21:36:44]Read from MH i2c: E2 17 00 [21:36:44]MH_I2C_Read... [21:36:44]Read from MH i2c: E2 17 00 93 D3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 2D [21:36:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:36:44]wFMCommunicate OK [21:36:44]CreateOFDProtocolMessage done [21:36:44]OFDSenderStorePacket 260965 [21:36:44]StoreOFDPacket docnum=260965 [21:36:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 3C ED 08 01 94 14 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 0B 02 00 00 F4 03 04 00 72 69 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 65 FB 03 00 35 04 06 00 AB 3E D9 9F 43 63 1C 19 82 52 50 EC D4 46 [21:36:44]CheckFolder [21:36:44]dirname=/storage/ofd_packets [21:36:44]CheckFolder done [21:36:44]ProducePacketName [21:36:44]name=ofd_packets/00260965 [21:36:44]NVStorageSaveData ofd_packets/00260965 [21:36:44]File name is /storage/ofd_packets/00260965 [21:36:44]Write 302 bytes [21:36:44]NVStorageSaveData done [21:36:44]OFDSenderStorePacket done [21:36:44]KKMCreateOFDPacket done [21:36:44]NVStorageSaveData kkm_last_timestamp [21:36:44]File name is /storage/kkm_last_timestamp [21:36:44]Write 4 bytes [21:36:44]NVStorageSaveData done [21:36:44]ExternCall_PrintAddStr [21:36:44]wPrintStart [21:36:44]Write to MH i2c: 01 00 00 94 D3 67 [21:36:44]Write i2c OK [21:36:44]MH_I2C_Read... [21:36:44]Read from MH i2c: 01 [21:36:44]MH_I2C_Read... [21:36:44]Read from MH i2c: 01 07 00 [21:36:44]MH_I2C_Read... [21:36:44]Read from MH i2c: 01 07 00 94 D3 00 00 00 00 00 FF 0F 7C [21:36:44]RasterBufferAndPrint [21:36:44]line Счет N : (1)1036518 [21:36:44]line ИНН: 02508201610067 [21:36:44]line Контрольно-Кассовый Чек [21:36:44]line ПРОДАЖА [21:36:44]line ТРК (МРК, ГНК) : 43 [21:36:44]line Товар: 2710194210 [21:36:44]line ДТ(л)-К-4 [21:36:44]line 26.250 * 76.20 [21:36:44]line = 2000.25 [21:36:44]line НДС 12% НСП 1% [21:36:44]line > о реализуемом товаре [21:36:44]line ОКРУГЛЕНИЕ: -0.25 [21:36:44]line ИТОГО: 2000.00 [21:36:44]line Внесено: 2000.00 [21:36:44]line СДАЧА: 0.00 [21:36:44]line НСП 1% : 17.70 [21:36:44]line НДС 12% : 212.42 [21:36:44]line Наличными: 2000.00 [21:36:44]line Безнал.: 0.00 [21:36:44]line Место: АЗС № 94 "Партнер Нефть" [21:36:44]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [21:36:44]line СНО: Общий режим [21:36:44]line Чек 523 18.08.2024 21:36 [21:36:44]line Смена: 449 ФФД: 1.0 [21:36:44]line ЗНМ: 0300000099 [21:36:44]line РНМ: 0000000000091865 [21:36:44]line Версия ККМ: 001 [21:36:44]line ФМ: 0000000000871820 [21:36:44]line ФД: 260965 [21:36:44]line ФПД: 188286427415395 [21:36:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T213650&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260965&fm=188286427415395&tin=02508201610067®Number=0000000000091865&sum=200000 [21:36:45]OFD Sender: Processing packet 260965 [packets to send 192, broken 191] [21:36:45]ProducePacketName [21:36:45]name=ofd_packets/00260965 [21:36:45]OFD Sender: To server: pG, [21:36:45]CommunicateWithHost lk.salyk.kg:30040 [21:36:45]ConnectInit lk.salyk.kg [21:36:45]written 0, free lines is 4095 [21:36:45]Connected sock=7 [21:36: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 30 10 01 00 00 3C ED 08 01 94 14 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 0B 02 00 00 F4 03 04 00 72 69 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 65 FB 03 00 35 04 06 00 AB 3E D9 9F 43 63 1C 19 82 52 50 EC D4 46 [21:36: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 30 4F 00 00 00 97 6C 47 00 F0 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 65 FB 03 00 F4 03 04 00 C5 12 C2 66 B6 04 01 00 00 E9 A8 27 5D D9 36 A5 0B [21:36:45]CommunicateWithHost err = 0 [21:36:45]CheckOFDResponse [21:36:45]1017 (14) - 77093643461234 [21:36:45]1041 (16) - 0000000000871820 [21:36:45]1040 (4) - 260965 [21:36:45]1012 (4) - 18.08.2024 15:27 [21:36:45]1206 (1) - 0 [21:36:45]OFD Sender: Remove packet 260965 [21:36:45]ProducePacketName [21:36:45]name=ofd_packets/00260965 [21:36:45]NVStorageDeleteData [21:36:45]Write to MH i2c: 01 00 00 BF D3 92 [21:36:45]Write i2c OK [21:36:45]MH_I2C_Read... [21:36:45]Read from MH i2c: 01 [21:36:45]MH_I2C_Read... [21:36:45]Read from MH i2c: 01 07 00 [21:36:45]MH_I2C_Read... [21:36:45]Read from MH i2c: 01 07 00 BF D3 00 00 00 00 00 7C 0C 21 [21:36:45]RasterBufferAndPrint [21:36:45]line [21:36:45]line [21:36:45]line [21:36:45]line [21:36:45]line [21:36:45]written 0, free lines is 3199 [21:36:45]MH_Cut [21:36:45]Write to MH i2c: D1 01 00 C6 D3 01 6B [21:36:45]Write i2c OK [21:36:45]MH_I2C_Read... [21:36:45]Read from MH i2c: D1 [21:36:45]MH_I2C_Read... [21:36:45]Read from MH i2c: D1 01 00 [21:36:45]MH_I2C_Read... [21:36:45]Read from MH i2c: D1 01 00 C6 D3 00 6A [21:36:45]Write to MH i2c: 01 00 00 C7 D3 9A [21:36:45]Write i2c OK [21:36:45]MH_I2C_Read... [21:36:45]OFD Sender: No OFD packet to send [21:36:46]*** Cut start [21:36:46]*** Purtial cut [21:36:46]*** Stage 1: CUTSNS_PIN = 1 [21:36:48]Read from MH i2c: 01 [21:36:48]MH_I2C_Read... [21:36:48]*** Stop cut motor [21:36:48]*** Cut end [21:36:48]Read from MH i2c: 01 07 00 [21:36:48]MH_I2C_Read... [21:36:48]Read from MH i2c: 01 07 00 C7 D3 00 00 00 00 00 FF 0F AF [21:36:48]process_action close_receipt done [21:36:48]requested_data is exist [21:36:48]produce_requested_data [21:36:48]requested_item fm.sn is exist - process it [21:36:48]wFMCommunicate request_size=4 [21:36:48]MH_SAM_APDU [21:36:48]CAPDU: 80 11 00 00 [21:36:48]Write to MH i2c: E2 08 00 C8 D3 80 11 00 00 00 00 00 00 15 [21:36:48]Write i2c OK [21:36:48]MH_I2C_Read... [21:36:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:48]Read from MH i2c: E2 [21:36:48]MH_I2C_Read... [21:36:48]Read from MH i2c: E2 17 00 [21:36:48]MH_I2C_Read... [21:36:48]Read from MH i2c: E2 17 00 C8 D3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 62 [21:36:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:36:48]wFMCommunicate OK [21:36:48]requested_item fd.num is exist - process it [21:36:48]SAM_PROTO_GetFieldsCounters [21:36:48]wFMCommunicate request_size=4 [21:36:48]MH_SAM_APDU [21:36:48]CAPDU: 80 13 00 00 [21:36:48]Write to MH i2c: E2 08 00 C9 D3 80 13 00 00 00 00 00 00 18 [21:36:48]Write i2c OK [21:36:48]MH_I2C_Read... [21:36:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:36:48]Read from MH i2c: E2 [21:36:48]MH_I2C_Read... [21:36:48]Read from MH i2c: E2 62 00 [21:36:48]MH_I2C_Read... [21:36:48]Read from MH i2c: E2 62 00 C9 D3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 65 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 0B 02 00 00 5E 04 04 00 0B 02 00 00 57 04 04 00 0C 02 00 00 19 04 04 00 00 00 00 00 90 00 83 [21:36: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 65 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 0B 02 00 00 5E 04 04 00 0B 02 00 00 57 04 04 00 0C 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:36:48]wFMCommunicate OK [21:36:48]SAM_PROTO_GetFieldsCounters done [21:36:48]requested_item shift.num is exist - process it [21:36:48]requested_item shift.opened is exist - process it [21:36:48]req_shift_opened [21:36:48]FM_GetShiftState [21:36:48]SAM_PROTO_GetShiftState [21:36:48]wFMCommunicate request_size=4 [21:36:48]MH_SAM_APDU [21:36:48]CAPDU: 80 13 01 00 [21:36:48]Write to MH i2c: E2 08 00 CA D3 80 13 01 00 00 00 00 00 1A [21:36:48]Write i2c OK [21:36:48]MH_I2C_Read... [21:36:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:48]Read from MH i2c: E2 [21:36:48]MH_I2C_Read... [21:36:48]Read from MH i2c: E2 0E 00 [21:36:48]MH_I2C_Read... [21:36:48]Read from MH i2c: E2 0E 00 CA D3 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 57 [21:36:48]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:36:48]wFMCommunicate OK [21:36:48]SAM_PROTO_GetShiftState done [21:36:48]FM_GetShiftState done [21:36:48]req_shift_opened done [21:36:48]requested_item shift.open_date is exist - process it [21:36:48]req_shift_open_date [21:36:48]req_shift_open_date done [21:36:48]produce_requested_data done [21:36:48]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260965,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [21:36:48]process_action_free close_receipt [21:36:48]json_value_free [21:36:48]json_value_free done [21:36:48]process_json_proto returns [21:36:48]Send response to host [21:36:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260965,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [21:36:48]free response buf [21:36:48]execute_script done [21:36:48]execute_script returns [21:36:48]free content buf [21:36:48]Sock 10.Close socket [21:36:48]Sock 10.Thread stoped [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:21]OFD Sender: No OFD packet to send [21:38:26]OFD Sender: No OFD packet to send [21:38:31]OFD Sender: No OFD packet to send [21:38:36]OFD Sender: No OFD packet to send [21:38:41]OFD Sender: No OFD packet to send [21:38:46]OFD Sender: No OFD packet to send [21:38:51]OFD Sender: No OFD packet to send [21:38:56]OFD Sender: No OFD packet to send [21:39:01]OFD Sender: No OFD packet to send [21:39:06]OFD Sender: No OFD packet to send [21:39:09]accept exits with 9 [21:39:09]New connection [21:39:09]New thread 3066473828 created [21:39:09]Thread 3066617188 joined [21:39:09]Waiting for new connection... [21:39:09] Sock 9.Parse request [21:39:09]Sock 9.Check first char [21:39:09]Sock 9.First char is OK [21:39:09]request: POST /json_proto HTTP/1.0 [21:39:09]Method: POST [21:39:09]URL: /json_proto [21:39:09]Method is POST - this is cgi request [21:39:09]url: /json_proto [21:39:09]query_string will be loaded in cgi processing [21:39:09]execute_cgi json_proto POST (null) [21:39:09]execute_cgi path=json_proto method=POST [21:39:09]POST find Content-Length [21:39:09]Host: 172.17.55.133:8080 [21:39:09]Content-Length: 679 [21:39:09]Content-Type: application/json [21:39:09] [21:39:09]POST finish read [21:39:09]Found Content-Length = 679 [21:39:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [21:39:09]execute_script... [21: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)1036519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [21:39:09]POST & json_proto [21:39:09]process_json_proto [21:39:09]json parsed OK: [21:39:09]protocol is kg_v1.0 [21:39:09]action value=close_receipt [21:39:09]process_action close_receipt [21:39:09]cmd_close_receipt [21:39:09]MH_GetDate [21:39:09]Write to MH i2c: F0 00 00 CB D3 8D [21:39:09]Write i2c OK [21:39:09]MH_I2C_Read... [21:39:09]Read from MH i2c: F0 [21:39:09]MH_I2C_Read... [21:39:09]Read from MH i2c: F0 09 00 [21:39:09]MH_I2C_Read... [21:39:09]Read from MH i2c: F0 09 00 CB D3 00 04 6A C2 66 34 48 D8 65 E5 [21:39:09]GetLastDocTimeStamp 1724017010 [21:39:09]current date 1724017156 [21:39:09]FM_GetShiftState [21:39:09]SAM_PROTO_GetShiftState [21:39:09]wFMCommunicate request_size=4 [21:39:09]MH_SAM_APDU [21:39:09]CAPDU: 80 13 01 00 [21:39:09]Write to MH i2c: E2 08 00 CC D3 80 13 01 00 00 00 00 00 1C [21:39:09]Write i2c OK [21:39:09]MH_I2C_Read... [21:39:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:09]Read from MH i2c: E2 [21:39:09]MH_I2C_Read... [21:39:09]Read from MH i2c: E2 0E 00 [21:39:09]MH_I2C_Read... [21:39:09]Read from MH i2c: E2 0E 00 CC D3 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 59 [21:39:09]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:39:09]wFMCommunicate OK [21:39:09]SAM_PROTO_GetShiftState done [21:39:09]FM_GetShiftState done [21:39:09]opened in 1723940556 [21:39:09]opened+sec_in_day 1724026956 [21:39:09]quantity*price = 70037 [21:39:09]sum+1 = 70038 [21:39:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 524 18.08.2024 21:39 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260966 ФПД: 83784451009233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T213916&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260966&fm=83784451009233&tin=02508201610067®Number=0000000000091865&sum=70000 [21:39:10]StoreToDocumentArchive [21:39:10]shift 449 fd 260966 [21:39:10]save to /storage/0449/doc_00260966 [21:39:10]save last doc name /storage/0449/doc_00260966 to /storage/kkm_last_doc_name [21:39:10]save OK [21:39:10]Clear old archive folders... [21:39:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:39:10]tlvbuf is 003F1A30 [21:39:10]SAM_PROTO_ClearQueue [21:39:10]wFMCommunicate request_size=4 [21:39:10]MH_SAM_APDU [21:39:10]CAPDU: 80 09 00 00 [21:39:10]Write to MH i2c: E2 08 00 D9 D3 80 09 00 00 00 00 00 00 1E [21:39:10]Write i2c OK [21:39:10]MH_I2C_Read... [21:39:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:39:10]Read from MH i2c: E2 [21:39:10]MH_I2C_Read... [21:39:10]Read from MH i2c: E2 03 00 [21:39:10]MH_I2C_Read... [21:39:10]Read from MH i2c: E2 03 00 D9 D3 00 90 00 20 [21:39:10]RAPDU: 90 00 [21:39:10]wFMCommunicate OK [21:39:10]SAM_PROTO_ClearQueue done [21:39:10]KKMCreateOFDPacket [21:39:10]OFDProtocolAddRootSTLVToBuf [21:39:10]FM_MakeSignedData [21:39:10]FM_MakeSignedData [21:39:10]SAM_PROTO_SignData [21:39:10]wFMCommunicate request_size=4 [21:39:10]MH_SAM_APDU [21:39:10]CAPDU: 80 0D 01 02 [21:39:10]Write to MH i2c: E2 08 00 DA D3 80 0D 01 02 00 00 00 00 26 [21:39:10]Write i2c OK [21:39:10]MH_I2C_Read... [21:39:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:39:10]Read from MH i2c: E2 [21:39:10]MH_I2C_Read... [21:39:10]Read from MH i2c: E2 03 00 [21:39:10]MH_I2C_Read... [21:39:10]Read from MH i2c: E2 03 00 DA D3 00 90 00 21 [21:39:10]RAPDU: 90 00 [21:39:10]wFMCommunicate OK [21:39:10]wFMCommunicate request_size=255 [21:39:10]MH_SAM_APDU [21: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 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0C 02 00 00 F4 03 04 00 04 6A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 66 FB 03 00 35 04 06 00 4C [21:39:10]Write to MH i2c: E2 02 01 DB D3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0C 02 00 00 F4 03 04 00 04 6A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 66 FB 03 00 35 04 06 00 4C 00 00 A0 [21:39:10]Write i2c OK [21:39:10]MH_I2C_Read... [21:39:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:10]Read from MH i2c: E2 [21:39:10]MH_I2C_Read... [21:39:10]Read from MH i2c: E2 03 00 [21:39:10]MH_I2C_Read... [21:39:10]Read from MH i2c: E2 03 00 DB D3 00 90 00 22 [21:39:10]RAPDU: 90 00 [21:39:10]wFMCommunicate OK [21:39:10]wFMCommunicate request_size=10 [21:39:10]MH_SAM_APDU [21:39:10]CAPDU: 80 0D 02 02 05 33 96 70 AA D1 [21:39:10]Write to MH i2c: E2 0D 00 DC D3 80 0D 02 02 05 00 33 96 70 AA D1 00 00 E7 [21:39:10]Write i2c OK [21:39:10]MH_I2C_Read... [21:39:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:10]Read from MH i2c: E2 [21:39:10]MH_I2C_Read... [21:39:10]Read from MH i2c: E2 03 00 [21:39:10]MH_I2C_Read... [21:39:10]Read from MH i2c: E2 03 00 DC D3 00 90 00 23 [21:39:10]RAPDU: 90 00 [21:39:10]wFMCommunicate OK [21:39:10]wFMCommunicate request_size=4 [21:39:10]MH_SAM_APDU [21:39:10]CAPDU: 80 0D 03 02 [21:39:10]Write to MH i2c: E2 08 00 DD D3 80 0D 03 02 00 00 00 00 2B [21:39:10]Write i2c OK [21:39:10]MH_I2C_Read... [21:39:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:39:10]Read from MH i2c: E2 [21:39:10]MH_I2C_Read... [21:39:10]Read from MH i2c: E2 0B 00 [21:39:10]MH_I2C_Read... [21:39:10]Read from MH i2c: E2 0B 00 DD D3 00 BE 00 1A D6 99 25 E0 59 90 00 D1 [21:39:10]RAPDU: BE 00 1A D6 99 25 E0 59 90 00 [21:39:10]wFMCommunicate OK [21:39:10]SAM_PROTO_SignData done [21:39:10]FM_MakeSignedData done [21:39:10]CreateOFDProtocolMessage [21:39:10]wFMCommunicate request_size=4 [21:39:10]MH_SAM_APDU [21:39:10]CAPDU: 80 11 00 00 [21:39:10]Write to MH i2c: E2 08 00 DE D3 80 11 00 00 00 00 00 00 2B [21:39:10]Write i2c OK [21:39:10]MH_I2C_Read... [21:39:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:10]Read from MH i2c: E2 [21:39:10]MH_I2C_Read... [21:39:10]Read from MH i2c: E2 17 00 [21:39:10]MH_I2C_Read... [21:39:10]Read from MH i2c: E2 17 00 DE D3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 78 [21:39:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:39:10]wFMCommunicate OK [21:39:10]CreateOFDProtocolMessage done [21:39:10]OFDSenderStorePacket 260966 [21:39:10]StoreOFDPacket docnum=260966 [21:39:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 05 58 07 01 57 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0C 02 00 00 F4 03 04 00 04 6A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 66 FB 03 00 35 04 06 00 4C 33 96 70 AA D1 BE 00 1A D6 99 25 E0 59 [21:39:10]CheckFolder [21:39:10]dirname=/storage/ofd_packets [21:39:10]CheckFolder done [21:39:10]ProducePacketName [21:39:10]name=ofd_packets/00260966 [21:39:10]NVStorageSaveData ofd_packets/00260966 [21:39:10]File name is /storage/ofd_packets/00260966 [21:39:10]Write 301 bytes [21:39:10]NVStorageSaveData done [21:39:10]OFDSenderStorePacket done [21:39:10]KKMCreateOFDPacket done [21:39:10]NVStorageSaveData kkm_last_timestamp [21:39:10]File name is /storage/kkm_last_timestamp [21:39:10]Write 4 bytes [21:39:10]NVStorageSaveData done [21:39:10]ExternCall_PrintAddStr [21:39:10]wPrintStart [21:39:10]Write to MH i2c: 01 00 00 DF D3 B2 [21:39:10]Write i2c OK [21:39:10]MH_I2C_Read... [21:39:10]Read from MH i2c: 01 [21:39:10]MH_I2C_Read... [21:39:10]Read from MH i2c: 01 07 00 [21:39:10]MH_I2C_Read... [21:39:10]Read from MH i2c: 01 07 00 DF D3 00 00 00 00 00 FF 0F C7 [21:39:10]RasterBufferAndPrint [21:39:10]line Счет N : (1)1036519 [21:39:10]line ИНН: 02508201610067 [21:39:10]line Контрольно-Кассовый Чек [21:39:10]line ПРОДАЖА [21:39:10]line ТРК (МРК, ГНК) : 22 [21:39:10]line Товар: 2710124130 [21:39:10]line Аи-92-К-5 [21:39:10]line 10.330 * 67.80 [21:39:10]line = 700.37 [21:39:10]line НДС 12% НСП 1% [21:39:10]line > о реализуемом товаре [21:39:10]line ОКРУГЛЕНИЕ: -0.37 [21:39:10]line ИТОГО: 700.00 [21:39:10]line Внесено: 700.00 [21:39:10]line СДАЧА: 0.00 [21:39:10]line НСП 1% : 6.20 [21:39:10]line НДС 12% : 74.38 [21:39:10]line Наличными: 700.00 [21:39:10]line Безнал.: 0.00 [21:39:10]line Место: АЗС № 94 "Партнер Нефть" [21:39:10]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [21:39:10]line СНО: Общий режим [21:39:10]line Чек 524 18.08.2024 21:39 [21:39:10]line Смена: 449 ФФД: 1.0 [21:39:10]line ЗНМ: 0300000099 [21:39:10]line РНМ: 0000000000091865 [21:39:10]line Версия ККМ: 001 [21:39:10]line ФМ: 0000000000871820 [21:39:10]line ФД: 260966 [21:39:10]line ФПД: 83784451009233 [21:39:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T213916&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260966&fm=83784451009233&tin=02508201610067®Number=0000000000091865&sum=70000 [21:39:11]OFD Sender: Processing packet 260966 [packets to send 192, broken 191] [21:39:11]ProducePacketName [21:39:11]name=ofd_packets/00260966 [21:39:11]OFD Sender: To server: pG, [21:39:11]CommunicateWithHost lk.salyk.kg:30040 [21:39:11]ConnectInit lk.salyk.kg [21:39:11]written 0, free lines is 4095 [21:39:11]Connected sock=10 [21: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 30 0F 01 00 00 05 58 07 01 57 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0C 02 00 00 F4 03 04 00 04 6A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 66 FB 03 00 35 04 06 00 4C 33 96 70 AA D1 BE 00 1A D6 99 25 E0 59 [21: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 30 4F 00 00 00 98 D8 47 00 E5 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 66 FB 03 00 F4 03 04 00 57 13 C2 66 B6 04 01 00 00 BE 38 C9 77 9C 48 01 97 [21:39:11]CommunicateWithHost err = 0 [21:39:11]CheckOFDResponse [21:39:11]1017 (14) - 77093643461234 [21:39:11]1041 (16) - 0000000000871820 [21:39:11]1040 (4) - 260966 [21:39:11]1012 (4) - 18.08.2024 15:29 [21:39:11]1206 (1) - 0 [21:39:11]OFD Sender: Remove packet 260966 [21:39:11]ProducePacketName [21:39:11]name=ofd_packets/00260966 [21:39:11]NVStorageDeleteData [21:39:11]Write to MH i2c: 01 00 00 0A D4 DE [21:39:11]Write i2c OK [21:39:11]MH_I2C_Read... [21:39:11]Read from MH i2c: 01 [21:39:11]MH_I2C_Read... [21:39:11]Read from MH i2c: 01 07 00 [21:39:11]MH_I2C_Read... [21:39:11]Read from MH i2c: 01 07 00 0A D4 00 00 00 00 00 71 0C 62 [21:39:11]RasterBufferAndPrint [21:39:11]line [21:39:11]line [21:39:11]line [21:39:11]line [21:39:11]line [21:39:11]written 0, free lines is 3187 [21:39:11]MH_Cut [21:39:11]Write to MH i2c: D1 01 00 11 D4 01 B7 [21:39:11]Write i2c OK [21:39:11]MH_I2C_Read... [21:39:11]Read from MH i2c: D1 [21:39:11]MH_I2C_Read... [21:39:11]Read from MH i2c: D1 01 00 [21:39:11]MH_I2C_Read... [21:39:11]Read from MH i2c: D1 01 00 11 D4 00 B6 [21:39:11]Write to MH i2c: 01 00 00 12 D4 E6 [21:39:11]Write i2c OK [21:39:11]MH_I2C_Read... [21:39:11]OFD Sender: No OFD packet to send [21:39:12]*** Cut start [21:39:12]*** Purtial cut [21:39:12]*** Stage 1: CUTSNS_PIN = 1 [21:39:14]Read from MH i2c: 01 [21:39:14]MH_I2C_Read... [21:39:14]*** Stop cut motor [21:39:14]*** Cut end [21:39:14]Read from MH i2c: 01 07 00 [21:39:14]MH_I2C_Read... [21:39:14]Read from MH i2c: 01 07 00 12 D4 00 00 00 00 00 FF 0F FB [21:39:14]process_action close_receipt done [21:39:14]requested_data is exist [21:39:14]produce_requested_data [21:39:14]requested_item fm.sn is exist - process it [21:39:14]wFMCommunicate request_size=4 [21:39:14]MH_SAM_APDU [21:39:14]CAPDU: 80 11 00 00 [21:39:14]Write to MH i2c: E2 08 00 13 D4 80 11 00 00 00 00 00 00 61 [21:39:14]Write i2c OK [21:39:14]MH_I2C_Read... [21:39:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:14]Read from MH i2c: E2 [21:39:14]MH_I2C_Read... [21:39:14]Read from MH i2c: E2 17 00 [21:39:14]MH_I2C_Read... [21:39:14]Read from MH i2c: E2 17 00 13 D4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 AE [21:39:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:39:14]wFMCommunicate OK [21:39:14]requested_item fd.num is exist - process it [21:39:14]SAM_PROTO_GetFieldsCounters [21:39:14]wFMCommunicate request_size=4 [21:39:14]MH_SAM_APDU [21:39:14]CAPDU: 80 13 00 00 [21:39:14]Write to MH i2c: E2 08 00 14 D4 80 13 00 00 00 00 00 00 64 [21:39:14]Write i2c OK [21:39:14]MH_I2C_Read... [21:39:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:39:14]Read from MH i2c: E2 [21:39:14]MH_I2C_Read... [21:39:14]Read from MH i2c: E2 62 00 [21:39:14]MH_I2C_Read... [21:39:14]Read from MH i2c: E2 62 00 14 D4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 66 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 0C 02 00 00 5E 04 04 00 0C 02 00 00 57 04 04 00 0D 02 00 00 19 04 04 00 00 00 00 00 90 00 D3 [21:39: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 66 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 0C 02 00 00 5E 04 04 00 0C 02 00 00 57 04 04 00 0D 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:39:14]wFMCommunicate OK [21:39:14]SAM_PROTO_GetFieldsCounters done [21:39:14]requested_item shift.num is exist - process it [21:39:14]requested_item shift.opened is exist - process it [21:39:14]req_shift_opened [21:39:14]FM_GetShiftState [21:39:14]SAM_PROTO_GetShiftState [21:39:14]wFMCommunicate request_size=4 [21:39:14]MH_SAM_APDU [21:39:14]CAPDU: 80 13 01 00 [21:39:14]Write to MH i2c: E2 08 00 15 D4 80 13 01 00 00 00 00 00 66 [21:39:14]Write i2c OK [21:39:14]MH_I2C_Read... [21:39:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:15]Read from MH i2c: E2 [21:39:15]MH_I2C_Read... [21:39:15]Read from MH i2c: E2 0E 00 [21:39:15]MH_I2C_Read... [21:39:15]Read from MH i2c: E2 0E 00 15 D4 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A3 [21:39:15]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:39:15]wFMCommunicate OK [21:39:15]SAM_PROTO_GetShiftState done [21:39:15]FM_GetShiftState done [21:39:15]req_shift_opened done [21:39:15]requested_item shift.open_date is exist - process it [21:39:15]req_shift_open_date [21:39:15]req_shift_open_date done [21:39:15]produce_requested_data done [21:39:15]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260966,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [21:39:15]process_action_free close_receipt [21:39:15]json_value_free [21:39:15]json_value_free done [21:39:15]process_json_proto returns [21:39:15]Send response to host [21:39:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260966,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [21:39:15]free response buf [21:39:15]execute_script done [21:39:15]execute_script returns [21:39:15]free content buf [21:39:15]Sock 9.Close socket [21:39:15]Sock 9.Thread stoped [21:39:16]OFD Sender: No OFD packet to send [21:39:21]OFD Sender: No OFD packet to send [21:39:27]OFD Sender: No OFD packet to send [21:39:32]OFD Sender: No OFD packet to send [21:39:37]OFD Sender: No OFD packet to send [21:39:42]OFD Sender: No OFD packet to send [21:39:47]OFD Sender: No OFD packet to send [21:39:52]OFD Sender: No OFD packet to send [21:39:57]OFD Sender: No OFD packet to send [21:40:02]OFD Sender: No OFD packet to send [21:40:07]OFD Sender: No OFD packet to send [21:40:12]OFD Sender: No OFD packet to send [21:40:17]OFD Sender: No OFD packet to send [21:40:22]OFD Sender: No OFD packet to send [21:40:27]OFD Sender: No OFD packet to send [21:40:32]OFD Sender: No OFD packet to send [21:40:37]OFD Sender: No OFD packet to send [21:40:42]OFD Sender: No OFD packet to send [21:40:47]OFD Sender: No OFD packet to send [21:40:52]OFD Sender: No OFD packet to send [21:40:57]OFD Sender: No OFD packet to send [21:41:02]OFD Sender: No OFD packet to send [21:41:07]OFD Sender: No OFD packet to send [21:41:12]OFD Sender: No OFD packet to send [21:41:17]OFD Sender: No OFD packet to send [21:41:22]OFD Sender: No OFD packet to send [21:41:27]OFD Sender: No OFD packet to send [21:41:32]OFD Sender: No OFD packet to send [21:41:35]accept exits with 7 [21:41:35]New connection [21:41:35]New thread 3066617188 created [21:41:35]Thread 3066473828 joined [21:41:35]Waiting for new connection... [21:41:35] Sock 7.Parse request [21:41:35]Sock 7.Check first char [21:41:35]Sock 7.First char is OK [21:41:35]request: POST /json_proto HTTP/1.0 [21:41:35]Method: POST [21:41:35]URL: /json_proto [21:41:35]Method is POST - this is cgi request [21:41:35]url: /json_proto [21:41:35]query_string will be loaded in cgi processing [21:41:35]execute_cgi json_proto POST (null) [21:41:35]execute_cgi path=json_proto method=POST [21:41:35]POST find Content-Length [21:41:35]Host: 172.17.55.133:8080 [21:41:35]Content-Length: 755 [21:41:35]Content-Type: application/json [21:41:35] [21:41:35]POST finish read [21:41:35]Found Content-Length = 755 [21:41:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106548", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:41:35]execute_script... [21:41: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)1036520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106548", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:41:35]POST & json_proto [21:41:35]process_json_proto [21:41:35]json parsed OK: [21:41:35]protocol is kg_v1.0 [21:41:35]action value=close_receipt [21:41:35]process_action close_receipt [21:41:35]cmd_close_receipt [21:41:35]MH_GetDate [21:41:35]Write to MH i2c: F0 00 00 16 D4 D9 [21:41:35]Write i2c OK [21:41:35]MH_I2C_Read... [21:41:35]Read from MH i2c: F0 [21:41:35]MH_I2C_Read... [21:41:35]Read from MH i2c: F0 09 00 [21:41:35]MH_I2C_Read... [21:41:35]Read from MH i2c: F0 09 00 16 D4 00 96 6A C2 66 34 48 D8 65 C3 [21:41:35]GetLastDocTimeStamp 1724017156 [21:41:35]current date 1724017302 [21:41:35]FM_GetShiftState [21:41:35]SAM_PROTO_GetShiftState [21:41:35]wFMCommunicate request_size=4 [21:41:35]MH_SAM_APDU [21:41:35]CAPDU: 80 13 01 00 [21:41:35]Write to MH i2c: E2 08 00 17 D4 80 13 01 00 00 00 00 00 68 [21:41:35]Write i2c OK [21:41:35]MH_I2C_Read... [21:41:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:35]Read from MH i2c: E2 [21:41:35]MH_I2C_Read... [21:41:35]Read from MH i2c: E2 0E 00 [21:41:35]MH_I2C_Read... [21:41:35]Read from MH i2c: E2 0E 00 17 D4 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A5 [21:41:35]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:41:35]wFMCommunicate OK [21:41:35]SAM_PROTO_GetShiftState done [21:41:35]FM_GetShiftState done [21:41:35]opened in 1723940556 [21:41:35]opened+sec_in_day 1724026956 [21:41:35]quantity*price = 0 [21:41:35]sum+1 = 1 [21:41:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 525 18.08.2024 21:41 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: ТК ГПНА Online 30106548 ФМ: 0000000000871820 ФД: 260967 ФПД: 31096231457695 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T214142&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260967&fm=31096231457695&tin=02508201610067®Number=0000000000091865&sum=0 [21:41:36]StoreToDocumentArchive [21:41:36]shift 449 fd 260967 [21:41:36]save to /storage/0449/doc_00260967 [21:41:36]save last doc name /storage/0449/doc_00260967 to /storage/kkm_last_doc_name [21:41:36]save OK [21:41:36]Clear old archive folders... [21:41:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:41:36]tlvbuf is 00540810 [21:41:36]SAM_PROTO_ClearQueue [21:41:36]wFMCommunicate request_size=4 [21:41:36]MH_SAM_APDU [21:41:36]CAPDU: 80 09 00 00 [21:41:36]Write to MH i2c: E2 08 00 24 D4 80 09 00 00 00 00 00 00 6A [21:41:36]Write i2c OK [21:41:36]MH_I2C_Read... [21:41:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:41:36]Read from MH i2c: E2 [21:41:36]MH_I2C_Read... [21:41:36]Read from MH i2c: E2 03 00 [21:41:36]MH_I2C_Read... [21:41:36]Read from MH i2c: E2 03 00 24 D4 00 90 00 6C [21:41:36]RAPDU: 90 00 [21:41:36]wFMCommunicate OK [21:41:36]SAM_PROTO_ClearQueue done [21:41:36]KKMCreateOFDPacket [21:41:36]OFDProtocolAddRootSTLVToBuf [21:41:36]FM_MakeSignedData [21:41:36]FM_MakeSignedData [21:41:36]SAM_PROTO_SignData [21:41:36]wFMCommunicate request_size=4 [21:41:36]MH_SAM_APDU [21:41:36]CAPDU: 80 0D 01 02 [21:41:36]Write to MH i2c: E2 08 00 25 D4 80 0D 01 02 00 00 00 00 72 [21:41:36]Write i2c OK [21:41:36]MH_I2C_Read... [21:41:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:41:36]Read from MH i2c: E2 [21:41:36]MH_I2C_Read... [21:41:36]Read from MH i2c: E2 03 00 [21:41:36]MH_I2C_Read... [21:41:36]Read from MH i2c: E2 03 00 25 D4 00 90 00 6D [21:41:36]RAPDU: 90 00 [21:41:36]wFMCommunicate OK [21:41:36]wFMCommunicate request_size=255 [21:41:36]MH_SAM_APDU [21:41:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 0D 02 00 00 F4 03 04 00 96 6A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 67 FB 03 00 35 04 06 00 1C [21:41:36]Write to MH i2c: E2 02 01 26 D4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 02 00 00 F4 03 04 00 96 6A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 67 FB 03 00 35 04 06 00 1C 00 00 2B [21:41:36]Write i2c OK [21:41:36]MH_I2C_Read... [21:41:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:37]Read from MH i2c: E2 [21:41:37]MH_I2C_Read... [21:41:37]Read from MH i2c: E2 03 00 [21:41:37]MH_I2C_Read... [21:41:37]Read from MH i2c: E2 03 00 26 D4 00 90 00 6E [21:41:37]RAPDU: 90 00 [21:41:37]wFMCommunicate OK [21:41:37]wFMCommunicate request_size=10 [21:41:37]MH_SAM_APDU [21:41:37]CAPDU: 80 0D 02 02 05 48 27 D4 73 9F [21:41:37]Write to MH i2c: E2 0D 00 27 D4 80 0D 02 02 05 00 48 27 D4 73 9F 00 00 D4 [21:41:37]Write i2c OK [21:41:37]MH_I2C_Read... [21:41:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:37]Read from MH i2c: E2 [21:41:37]MH_I2C_Read... [21:41:37]Read from MH i2c: E2 03 00 [21:41:37]MH_I2C_Read... [21:41:37]Read from MH i2c: E2 03 00 27 D4 00 90 00 6F [21:41:37]RAPDU: 90 00 [21:41:37]wFMCommunicate OK [21:41:37]wFMCommunicate request_size=4 [21:41:37]MH_SAM_APDU [21:41:37]CAPDU: 80 0D 03 02 [21:41:37]Write to MH i2c: E2 08 00 28 D4 80 0D 03 02 00 00 00 00 77 [21:41:37]Write i2c OK [21:41:37]MH_I2C_Read... [21:41:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:41:37]Read from MH i2c: E2 [21:41:37]MH_I2C_Read... [21:41:37]Read from MH i2c: E2 0B 00 [21:41:37]MH_I2C_Read... [21:41:37]Read from MH i2c: E2 0B 00 28 D4 00 B6 13 68 CB 8F 8A B7 2D 90 00 71 [21:41:37]RAPDU: B6 13 68 CB 8F 8A B7 2D 90 00 [21:41:37]wFMCommunicate OK [21:41:37]SAM_PROTO_SignData done [21:41:37]FM_MakeSignedData done [21:41:37]CreateOFDProtocolMessage [21:41:37]wFMCommunicate request_size=4 [21:41:37]MH_SAM_APDU [21:41:37]CAPDU: 80 11 00 00 [21:41:37]Write to MH i2c: E2 08 00 29 D4 80 11 00 00 00 00 00 00 77 [21:41:37]Write i2c OK [21:41:37]MH_I2C_Read... [21:41:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:37]Read from MH i2c: E2 [21:41:37]MH_I2C_Read... [21:41:37]Read from MH i2c: E2 17 00 [21:41:37]MH_I2C_Read... [21:41:37]Read from MH i2c: E2 17 00 29 D4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C4 [21:41:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:41:37]wFMCommunicate OK [21:41:37]CreateOFDProtocolMessage done [21:41:37]OFDSenderStorePacket 260967 [21:41:37]StoreOFDPacket docnum=260967 [21:41:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 3A 86 07 01 B2 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 0D 02 00 00 F4 03 04 00 96 6A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 67 FB 03 00 35 04 06 00 1C 48 27 D4 73 9F B6 13 68 CB 8F 8A B7 2D [21:41:37]CheckFolder [21:41:37]dirname=/storage/ofd_packets [21:41:37]CheckFolder done [21:41:37]ProducePacketName [21:41:37]name=ofd_packets/00260967 [21:41:37]NVStorageSaveData ofd_packets/00260967 [21:41:37]File name is /storage/ofd_packets/00260967 [21:41:37]Write 301 bytes [21:41:37]NVStorageSaveData done [21:41:37]OFDSenderStorePacket done [21:41:37]KKMCreateOFDPacket done [21:41:37]NVStorageSaveData kkm_last_timestamp [21:41:37]File name is /storage/kkm_last_timestamp [21:41:37]Write 4 bytes [21:41:37]NVStorageSaveData done [21:41:37]ExternCall_PrintAddStr [21:41:37]wPrintStart [21:41:37]Write to MH i2c: 01 00 00 2A D4 FE [21:41:37]OFD Sender: Processing packet 260967 [packets to send 192, broken 191] [21:41:37]ProducePacketName [21:41:37]name=ofd_packets/00260967 [21:41:37]OFD Sender: To server: pG, [21:41:37]CommunicateWithHost lk.salyk.kg:30040 [21:41:37]ConnectInit lk.salyk.kg [21:41:37]Write i2c OK [21:41:37]MH_I2C_Read... [21:41:37]Read from MH i2c: 01 [21:41:37]MH_I2C_Read... [21:41:37]Read from MH i2c: 01 07 00 [21:41:37]MH_I2C_Read... [21:41:37]Read from MH i2c: 01 07 00 2A D4 00 00 00 00 00 FF 0F 13 [21:41:37]RasterBufferAndPrint [21:41:37]line Счет N : (1)1036520 [21:41:37]line ИНН: 02508201610067 [21:41:37]line Контрольно-Кассовый Чек [21:41:37]line ПРОДАЖА [21:41:37]line ТРК (МРК, ГНК) : 12 [21:41:37]line Товар: 2710124130 [21:41:37]line Аи-92-К-5 [21:41:37]line 10.000 * 0.00 [21:41:37]line = 0.00 [21:41:37]line НДС 12% НСП 1% [21:41:37]line > о реализуемом товаре [21:41:37]line ИТОГО: 0.00 [21:41:37]line НСП 1% : 0.00 [21:41:37]line НДС 12% : 0.00 [21:41:37]line Наличными: 0.00 [21:41:37]line Безнал.: 0.00 [21:41:37]line Место: АЗС № 94 "Партнер Нефть" [21:41:37]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [21:41:37]line СНО: Общий режим [21:41:37]line Чек 525 18.08.2024 21:41 [21:41:37]line Смена: 449 ФФД: 1.0 [21:41:37]line ЗНМ: 0300000099 [21:41:37]line РНМ: 0000000000091865 [21:41:37]line Версия ККМ: 001 [21:41:37]line Талоны: ТК ГПНА Online [21:41:37]line 30106548 [21:41:37]line ФМ: 0000000000871820 [21:41:37]line ФД: 260967 [21:41:37]line ФПД: 31096231457695 [21:41:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T214142&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260967&fm=31096231457695&tin=02508201610067®Number=0000000000091865&sum=0 [21:41:37]written 0, free lines is 4095 [21:41:37]Connected sock=10 [21:41: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 30 0F 01 00 00 3A 86 07 01 B2 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 0D 02 00 00 F4 03 04 00 96 6A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 67 FB 03 00 35 04 06 00 1C 48 27 D4 73 9F B6 13 68 CB 8F 8A B7 2D [21:41: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 30 4F 00 00 00 8D 8C 47 00 26 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 30 10 04 04 00 67 FB 03 00 F4 03 04 00 E9 13 C2 66 B6 04 01 00 00 7D 24 5F DF FF 27 66 4B [21:41:37]CommunicateWithHost err = 0 [21:41:37]CheckOFDResponse [21:41:37]1017 (14) - 77093643461234 [21:41:37]1041 (16) - 0000000000871820 [21:41:37]1040 (4) - 260967 [21:41:37]1012 (4) - 18.08.2024 15:31 [21:41:37]1206 (1) - 0 [21:41:37]OFD Sender: Remove packet 260967 [21:41:37]ProducePacketName [21:41:37]name=ofd_packets/00260967 [21:41:37]NVStorageDeleteData [21:41:37]Write to MH i2c: 01 00 00 54 D4 28 [21:41:37]Write i2c OK [21:41:37]MH_I2C_Read... [21:41:37]Read from MH i2c: 01 [21:41:37]MH_I2C_Read... [21:41:37]Read from MH i2c: 01 07 00 [21:41:37]MH_I2C_Read... [21:41:37]Read from MH i2c: 01 07 00 54 D4 00 00 00 00 00 92 0C CD [21:41:37]RasterBufferAndPrint [21:41:37]line [21:41:37]line [21:41:37]line [21:41:37]line [21:41:37]line [21:41:37]written 0, free lines is 3222 [21:41:37]MH_Cut [21:41:37]Write to MH i2c: D1 01 00 5B D4 01 01 [21:41:37]Write i2c OK [21:41:37]MH_I2C_Read... [21:41:37]Read from MH i2c: D1 [21:41:37]MH_I2C_Read... [21:41:37]Read from MH i2c: D1 01 00 [21:41:37]MH_I2C_Read... [21:41:37]Read from MH i2c: D1 01 00 5B D4 00 00 [21:41:37]Write to MH i2c: 01 00 00 5C D4 30 [21:41:37]Write i2c OK [21:41:37]MH_I2C_Read... [21:41:38]OFD Sender: No OFD packet to send [21:41:38]*** Cut start [21:41:38]*** Purtial cut [21:41:38]*** Stage 1: CUTSNS_PIN = 1 [21:41:40]Read from MH i2c: 01 [21:41:40]MH_I2C_Read... [21:41:40]*** Stop cut motor [21:41:40]*** Cut end [21:41:40]Read from MH i2c: 01 07 00 [21:41:40]MH_I2C_Read... [21:41:40]Read from MH i2c: 01 07 00 5C D4 00 00 00 00 00 FF 0F 45 [21:41:40]process_action close_receipt done [21:41:40]requested_data is exist [21:41:40]produce_requested_data [21:41:40]requested_item fm.sn is exist - process it [21:41:40]wFMCommunicate request_size=4 [21:41:40]MH_SAM_APDU [21:41:40]CAPDU: 80 11 00 00 [21:41:40]Write to MH i2c: E2 08 00 5D D4 80 11 00 00 00 00 00 00 AB [21:41:40]Write i2c OK [21:41:40]MH_I2C_Read... [21:41:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:40]Read from MH i2c: E2 [21:41:40]MH_I2C_Read... [21:41:40]Read from MH i2c: E2 17 00 [21:41:40]MH_I2C_Read... [21:41:40]Read from MH i2c: E2 17 00 5D D4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F8 [21:41:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:41:40]wFMCommunicate OK [21:41:40]requested_item fd.num is exist - process it [21:41:40]SAM_PROTO_GetFieldsCounters [21:41:40]wFMCommunicate request_size=4 [21:41:40]MH_SAM_APDU [21:41:40]CAPDU: 80 13 00 00 [21:41:40]Write to MH i2c: E2 08 00 5E D4 80 13 00 00 00 00 00 00 AE [21:41:40]Write i2c OK [21:41:40]MH_I2C_Read... [21:41:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:41:40]Read from MH i2c: E2 [21:41:41]MH_I2C_Read... [21:41:41]Read from MH i2c: E2 62 00 [21:41:41]MH_I2C_Read... [21:41:41]Read from MH i2c: E2 62 00 5E D4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 67 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 0D 02 00 00 5E 04 04 00 0D 02 00 00 57 04 04 00 0E 02 00 00 19 04 04 00 00 00 00 00 90 00 21 [21:41: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 67 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 0D 02 00 00 5E 04 04 00 0D 02 00 00 57 04 04 00 0E 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:41:41]wFMCommunicate OK [21:41:41]SAM_PROTO_GetFieldsCounters done [21:41:41]requested_item shift.num is exist - process it [21:41:41]requested_item shift.opened is exist - process it [21:41:41]req_shift_opened [21:41:41]FM_GetShiftState [21:41:41]SAM_PROTO_GetShiftState [21:41:41]wFMCommunicate request_size=4 [21:41:41]MH_SAM_APDU [21:41:41]CAPDU: 80 13 01 00 [21:41:41]Write to MH i2c: E2 08 00 5F D4 80 13 01 00 00 00 00 00 B0 [21:41:41]Write i2c OK [21:41:41]MH_I2C_Read... [21:41:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:41]Read from MH i2c: E2 [21:41:41]MH_I2C_Read... [21:41:41]Read from MH i2c: E2 0E 00 [21:41:41]MH_I2C_Read... [21:41:41]Read from MH i2c: E2 0E 00 5F D4 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 ED [21:41:41]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:41:41]wFMCommunicate OK [21:41:41]SAM_PROTO_GetShiftState done [21:41:41]FM_GetShiftState done [21:41:41]req_shift_opened done [21:41:41]requested_item shift.open_date is exist - process it [21:41:41]req_shift_open_date [21:41:41]req_shift_open_date done [21:41:41]produce_requested_data done [21:41:41]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260967,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [21:41:41]process_action_free close_receipt [21:41:41]json_value_free [21:41:41]json_value_free done [21:41:41]process_json_proto returns [21:41:41]Send response to host [21:41:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260967,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [21:41:41]free response buf [21:41:41]execute_script done [21:41:41]execute_script returns [21:41:41]free content buf [21:41:41]Sock 7.Close socket [21:41:41]Sock 7.Thread stoped [21:41:43]OFD Sender: No OFD packet to send [21:41:48]OFD Sender: No OFD packet to send [21:41:53]OFD Sender: No OFD packet to send [21:41:58]OFD Sender: No OFD packet to send [21:42:03]OFD Sender: No OFD packet to send [21:42:08]OFD Sender: No OFD packet to send [21:42:13]OFD Sender: No OFD packet to send [21:42:18]OFD Sender: No OFD packet to send [21:42:23]OFD Sender: No OFD packet to send [21:42:28]OFD Sender: No OFD packet to send [21:42:33]OFD Sender: No OFD packet to send [21:42:38]OFD Sender: No OFD packet to send [21:42:43]OFD Sender: No OFD packet to send [21:42:48]OFD Sender: No OFD packet to send [21:42:53]OFD Sender: No OFD packet to send [21:42:58]OFD Sender: No OFD packet to send [21:43:03]OFD Sender: No OFD packet to send [21:43:08]OFD Sender: No OFD packet to send [21:43:13]OFD Sender: No OFD packet to send [21:43:18]OFD Sender: No OFD packet to send [21:43:23]OFD Sender: No OFD packet to send [21:43:28]OFD Sender: No OFD packet to send [21:43:28]accept exits with 9 [21:43:28]New connection [21:43:28]New thread 3066473828 created [21:43:28]Thread 3066617188 joined [21:43:28]Waiting for new connection... [21:43:28] Sock 9.Parse request [21:43:28]Sock 9.Check first char [21:43:28]Sock 9.First char is OK [21:43:28]request: POST /json_proto HTTP/1.0 [21:43:28]Method: POST [21:43:28]URL: /json_proto [21:43:28]Method is POST - this is cgi request [21:43:28]url: /json_proto [21:43:28]query_string will be loaded in cgi processing [21:43:28]execute_cgi json_proto POST (null) [21:43:28]execute_cgi path=json_proto method=POST [21:43:28]POST find Content-Length [21:43:28]Host: 172.17.55.133:8080 [21:43:28]Content-Length: 679 [21:43:28]Content-Type: application/json [21:43:28] [21:43:28]POST finish read [21:43:28]Found Content-Length = 679 [21:43:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [21:43:28]execute_script... [21:43: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)1036521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [21:43:28]POST & json_proto [21:43:28]process_json_proto [21:43:28]json parsed OK: [21:43:28]protocol is kg_v1.0 [21:43:28]action value=close_receipt [21:43:28]process_action close_receipt [21:43:28]cmd_close_receipt [21:43:28]MH_GetDate [21:43:28]Write to MH i2c: F0 00 00 60 D4 23 [21:43:28]Write i2c OK [21:43:28]MH_I2C_Read... [21:43:28]Read from MH i2c: F0 [21:43:28]MH_I2C_Read... [21:43:28]Read from MH i2c: F0 09 00 [21:43:28]MH_I2C_Read... [21:43:28]Read from MH i2c: F0 09 00 60 D4 00 07 6B C2 66 34 48 D8 65 7F [21:43:28]GetLastDocTimeStamp 1724017302 [21:43:28]current date 1724017415 [21:43:28]FM_GetShiftState [21:43:28]SAM_PROTO_GetShiftState [21:43:28]wFMCommunicate request_size=4 [21:43:28]MH_SAM_APDU [21:43:28]CAPDU: 80 13 01 00 [21:43:28]Write to MH i2c: E2 08 00 61 D4 80 13 01 00 00 00 00 00 B2 [21:43:28]Write i2c OK [21:43:28]MH_I2C_Read... [21:43:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:28]Read from MH i2c: E2 [21:43:28]MH_I2C_Read... [21:43:28]Read from MH i2c: E2 0E 00 [21:43:28]MH_I2C_Read... [21:43:28]Read from MH i2c: E2 0E 00 61 D4 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 EF [21:43:28]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:43:28]wFMCommunicate OK [21:43:28]SAM_PROTO_GetShiftState done [21:43:28]FM_GetShiftState done [21:43:28]opened in 1723940556 [21:43:28]opened+sec_in_day 1724026956 [21:43:28]quantity*price = 70037 [21:43:28]sum+1 = 70038 [21:43:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 526 18.08.2024 21:43 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260968 ФПД: 38530860828286 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T214335&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260968&fm=38530860828286&tin=02508201610067®Number=0000000000091865&sum=70000 [21:43:29]StoreToDocumentArchive [21:43:29]shift 449 fd 260968 [21:43:29]save to /storage/0449/doc_00260968 [21:43:29]save last doc name /storage/0449/doc_00260968 to /storage/kkm_last_doc_name [21:43:29]save OK [21:43:29]Clear old archive folders... [21:43:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:43:29]tlvbuf is 007BC620 [21:43:29]SAM_PROTO_ClearQueue [21:43:29]wFMCommunicate request_size=4 [21:43:29]MH_SAM_APDU [21:43:29]CAPDU: 80 09 00 00 [21:43:29]Write to MH i2c: E2 08 00 6E D4 80 09 00 00 00 00 00 00 B4 [21:43:29]Write i2c OK [21:43:29]MH_I2C_Read... [21:43:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:43:29]Read from MH i2c: E2 [21:43:29]MH_I2C_Read... [21:43:29]Read from MH i2c: E2 03 00 [21:43:29]MH_I2C_Read... [21:43:29]Read from MH i2c: E2 03 00 6E D4 00 90 00 B6 [21:43:29]RAPDU: 90 00 [21:43:29]wFMCommunicate OK [21:43:29]SAM_PROTO_ClearQueue done [21:43:29]KKMCreateOFDPacket [21:43:29]OFDProtocolAddRootSTLVToBuf [21:43:29]FM_MakeSignedData [21:43:29]FM_MakeSignedData [21:43:29]SAM_PROTO_SignData [21:43:29]wFMCommunicate request_size=4 [21:43:29]MH_SAM_APDU [21:43:29]CAPDU: 80 0D 01 02 [21:43:29]Write to MH i2c: E2 08 00 6F D4 80 0D 01 02 00 00 00 00 BC [21:43:29]Write i2c OK [21:43:29]MH_I2C_Read... [21:43:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:43:29]Read from MH i2c: E2 [21:43:29]MH_I2C_Read... [21:43:29]Read from MH i2c: E2 03 00 [21:43:29]MH_I2C_Read... [21:43:29]Read from MH i2c: E2 03 00 6F D4 00 90 00 B7 [21:43:29]RAPDU: 90 00 [21:43:29]wFMCommunicate OK [21:43:29]wFMCommunicate request_size=255 [21:43:29]MH_SAM_APDU [21:43:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0E 02 00 00 F4 03 04 00 07 6B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 68 FB 03 00 35 04 06 00 23 [21:43:29]Write to MH i2c: E2 02 01 70 D4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0E 02 00 00 F4 03 04 00 07 6B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 68 FB 03 00 35 04 06 00 23 00 00 15 [21:43:29]Write i2c OK [21:43:29]MH_I2C_Read... [21:43:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:30]Read from MH i2c: E2 [21:43:30]MH_I2C_Read... [21:43:30]Read from MH i2c: E2 03 00 [21:43:30]MH_I2C_Read... [21:43:30]Read from MH i2c: E2 03 00 70 D4 00 90 00 B8 [21:43:30]RAPDU: 90 00 [21:43:30]wFMCommunicate OK [21:43:30]wFMCommunicate request_size=10 [21:43:30]MH_SAM_APDU [21:43:30]CAPDU: 80 0D 02 02 05 0B 2A 45 C6 7E [21:43:30]Write to MH i2c: E2 0D 00 71 D4 80 0D 02 02 05 00 0B 2A 45 C6 7E 00 00 87 [21:43:30]Write i2c OK [21:43:30]MH_I2C_Read... [21:43:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:30]Read from MH i2c: E2 [21:43:30]MH_I2C_Read... [21:43:30]Read from MH i2c: E2 03 00 [21:43:30]MH_I2C_Read... [21:43:30]Read from MH i2c: E2 03 00 71 D4 00 90 00 B9 [21:43:30]RAPDU: 90 00 [21:43:30]wFMCommunicate OK [21:43:30]wFMCommunicate request_size=4 [21:43:30]MH_SAM_APDU [21:43:30]CAPDU: 80 0D 03 02 [21:43:30]Write to MH i2c: E2 08 00 72 D4 80 0D 03 02 00 00 00 00 C1 [21:43:30]Write i2c OK [21:43:30]MH_I2C_Read... [21:43:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:43:30]Read from MH i2c: E2 [21:43:30]MH_I2C_Read... [21:43:30]Read from MH i2c: E2 0B 00 [21:43:30]MH_I2C_Read... [21:43:30]Read from MH i2c: E2 0B 00 72 D4 00 0F B0 E4 A9 87 2C 4E 07 90 00 16 [21:43:30]RAPDU: 0F B0 E4 A9 87 2C 4E 07 90 00 [21:43:30]wFMCommunicate OK [21:43:30]SAM_PROTO_SignData done [21:43:30]FM_MakeSignedData done [21:43:30]CreateOFDProtocolMessage [21:43:30]wFMCommunicate request_size=4 [21:43:30]MH_SAM_APDU [21:43:30]CAPDU: 80 11 00 00 [21:43:30]Write to MH i2c: E2 08 00 73 D4 80 11 00 00 00 00 00 00 C1 [21:43:30]Write i2c OK [21:43:30]MH_I2C_Read... [21:43:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:30]Read from MH i2c: E2 [21:43:30]MH_I2C_Read... [21:43:30]Read from MH i2c: E2 17 00 [21:43:30]MH_I2C_Read... [21:43:30]Read from MH i2c: E2 17 00 73 D4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 0E [21:43:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:43:30]wFMCommunicate OK [21:43:30]CreateOFDProtocolMessage done [21:43:30]OFDSenderStorePacket 260968 [21:43:30]StoreOFDPacket docnum=260968 [21:43:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 A3 0E 07 01 52 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0E 02 00 00 F4 03 04 00 07 6B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 68 FB 03 00 35 04 06 00 23 0B 2A 45 C6 7E 0F B0 E4 A9 87 2C 4E 07 [21:43:30]CheckFolder [21:43:30]dirname=/storage/ofd_packets [21:43:30]CheckFolder done [21:43:30]ProducePacketName [21:43:30]name=ofd_packets/00260968 [21:43:30]NVStorageSaveData ofd_packets/00260968 [21:43:30]File name is /storage/ofd_packets/00260968 [21:43:30]Write 301 bytes [21:43:30]NVStorageSaveData done [21:43:30]OFDSenderStorePacket done [21:43:30]KKMCreateOFDPacket done [21:43:30]NVStorageSaveData kkm_last_timestamp [21:43:30]File name is /storage/kkm_last_timestamp [21:43:30]Write 4 bytes [21:43:30]NVStorageSaveData done [21:43:30]ExternCall_PrintAddStr [21:43:30]wPrintStart [21:43:30]Write to MH i2c: 01 00 00 74 D4 48 [21:43:30]Write i2c OK [21:43:30]MH_I2C_Read... [21:43:30]Read from MH i2c: 01 [21:43:30]MH_I2C_Read... [21:43:30]Read from MH i2c: 01 07 00 [21:43:30]MH_I2C_Read... [21:43:30]Read from MH i2c: 01 07 00 74 D4 00 00 00 00 00 FF 0F 5D [21:43:30]RasterBufferAndPrint [21:43:30]line Счет N : (1)1036521 [21:43:30]line ИНН: 02508201610067 [21:43:30]line Контрольно-Кассовый Чек [21:43:30]line ПРОДАЖА [21:43:30]line ТРК (МРК, ГНК) : 22 [21:43:30]line Товар: 2710124130 [21:43:30]line Аи-92-К-5 [21:43:30]line 10.330 * 67.80 [21:43:30]line = 700.37 [21:43:30]line НДС 12% НСП 1% [21:43:30]line > о реализуемом товаре [21:43:30]line ОКРУГЛЕНИЕ: -0.37 [21:43:30]line ИТОГО: 700.00 [21:43:30]line Внесено: 700.00 [21:43:30]line СДАЧА: 0.00 [21:43:30]line НСП 1% : 6.20 [21:43:30]line НДС 12% : 74.38 [21:43:30]line Наличными: 700.00 [21:43:30]line Безнал.: 0.00 [21:43:30]line Место: АЗС № 94 "Партнер Нефть" [21:43:30]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [21:43:30]line СНО: Общий режим [21:43:30]line Чек 526 18.08.2024 21:43 [21:43:30]line Смена: 449 ФФД: 1.0 [21:43:30]line ЗНМ: 0300000099 [21:43:30]line РНМ: 0000000000091865 [21:43:30]line Версия ККМ: 001 [21:43:30]line ФМ: 0000000000871820 [21:43:30]line ФД: 260968 [21:43:30]line ФПД: 38530860828286 [21:43:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T214335&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260968&fm=38530860828286&tin=02508201610067®Number=0000000000091865&sum=70000 [21:43:30]written 0, free lines is 4095 [21:43:30]OFD Sender: Processing packet 260968 [packets to send 192, broken 191] [21:43:30]ProducePacketName [21:43:30]name=ofd_packets/00260968 [21:43:30]OFD Sender: To server: pG, [21:43:30]CommunicateWithHost lk.salyk.kg:30040 [21:43:30]ConnectInit lk.salyk.kg [21:43:30]Connected sock=10 [21:43: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 30 0F 01 00 00 A3 0E 07 01 52 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0E 02 00 00 F4 03 04 00 07 6B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 68 FB 03 00 35 04 06 00 23 0B 2A 45 C6 7E 0F B0 E4 A9 87 2C 4E 07 [21:43: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 30 4F 00 00 00 F1 ED 47 00 55 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 30 10 04 04 00 68 FB 03 00 F4 03 04 00 5A 14 C2 66 B6 04 01 00 00 FB C6 5E B3 FB 2A 14 CB [21:43:30]CommunicateWithHost err = 0 [21:43:30]CheckOFDResponse [21:43:30]1017 (14) - 77093643461234 [21:43:30]1041 (16) - 0000000000871820 [21:43:30]1040 (4) - 260968 [21:43:30]1012 (4) - 18.08.2024 15:33 [21:43:30]1206 (1) - 0 [21:43:30]OFD Sender: Remove packet 260968 [21:43:30]ProducePacketName [21:43:30]name=ofd_packets/00260968 [21:43:30]NVStorageDeleteData [21:43:30]Write to MH i2c: 01 00 00 9F D4 73 [21:43:30]Write i2c OK [21:43:30]MH_I2C_Read... [21:43:30]Read from MH i2c: 01 [21:43:30]MH_I2C_Read... [21:43:30]Read from MH i2c: 01 07 00 [21:43:30]MH_I2C_Read... [21:43:30]Read from MH i2c: 01 07 00 9F D4 00 00 00 00 00 6F 0C F5 [21:43:30]RasterBufferAndPrint [21:43:30]line [21:43:30]line [21:43:30]line [21:43:30]line [21:43:30]line [21:43:30]written 0, free lines is 3186 [21:43:30]MH_Cut [21:43:30]Write to MH i2c: D1 01 00 A6 D4 01 4C [21:43:30]Write i2c OK [21:43:30]MH_I2C_Read... [21:43:30]Read from MH i2c: D1 [21:43:30]MH_I2C_Read... [21:43:30]Read from MH i2c: D1 01 00 [21:43:30]MH_I2C_Read... [21:43:30]Read from MH i2c: D1 01 00 A6 D4 00 4B [21:43:30]Write to MH i2c: 01 00 00 A7 D4 7B [21:43:30]Write i2c OK [21:43:30]MH_I2C_Read... [21:43:31]OFD Sender: No OFD packet to send [21:43:31]*** Cut start [21:43:31]*** Purtial cut [21:43:31]*** Stage 1: CUTSNS_PIN = 1 [21:43:33]Read from MH i2c: 01 [21:43:33]MH_I2C_Read... [21:43:33]*** Stop cut motor [21:43:33]*** Cut end [21:43:33]Read from MH i2c: 01 07 00 [21:43:33]MH_I2C_Read... [21:43:33]Read from MH i2c: 01 07 00 A7 D4 00 00 00 00 00 FF 0F 90 [21:43:33]process_action close_receipt done [21:43:33]requested_data is exist [21:43:33]produce_requested_data [21:43:33]requested_item fm.sn is exist - process it [21:43:33]wFMCommunicate request_size=4 [21:43:33]MH_SAM_APDU [21:43:33]CAPDU: 80 11 00 00 [21:43:33]Write to MH i2c: E2 08 00 A8 D4 80 11 00 00 00 00 00 00 F6 [21:43:33]Write i2c OK [21:43:33]MH_I2C_Read... [21:43:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:33]Read from MH i2c: E2 [21:43:33]MH_I2C_Read... [21:43:33]Read from MH i2c: E2 17 00 [21:43:33]MH_I2C_Read... [21:43:33]Read from MH i2c: E2 17 00 A8 D4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 43 [21:43:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:43:33]wFMCommunicate OK [21:43:33]requested_item fd.num is exist - process it [21:43:33]SAM_PROTO_GetFieldsCounters [21:43:33]wFMCommunicate request_size=4 [21:43:33]MH_SAM_APDU [21:43:33]CAPDU: 80 13 00 00 [21:43:33]Write to MH i2c: E2 08 00 A9 D4 80 13 00 00 00 00 00 00 F9 [21:43:33]Write i2c OK [21:43:33]MH_I2C_Read... [21:43:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:43:34]Read from MH i2c: E2 [21:43:34]MH_I2C_Read... [21:43:34]Read from MH i2c: E2 62 00 [21:43:34]MH_I2C_Read... [21:43:34]Read from MH i2c: E2 62 00 A9 D4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 68 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 0E 02 00 00 5E 04 04 00 0E 02 00 00 57 04 04 00 0F 02 00 00 19 04 04 00 00 00 00 00 90 00 70 [21:43: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 68 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 0E 02 00 00 5E 04 04 00 0E 02 00 00 57 04 04 00 0F 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:43:34]wFMCommunicate OK [21:43:34]SAM_PROTO_GetFieldsCounters done [21:43:34]requested_item shift.num is exist - process it [21:43:34]requested_item shift.opened is exist - process it [21:43:34]req_shift_opened [21:43:34]FM_GetShiftState [21:43:34]SAM_PROTO_GetShiftState [21:43:34]wFMCommunicate request_size=4 [21:43:34]MH_SAM_APDU [21:43:34]CAPDU: 80 13 01 00 [21:43:34]Write to MH i2c: E2 08 00 AA D4 80 13 01 00 00 00 00 00 FB [21:43:34]Write i2c OK [21:43:34]MH_I2C_Read... [21:43:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:34]Read from MH i2c: E2 [21:43:34]MH_I2C_Read... [21:43:34]Read from MH i2c: E2 0E 00 [21:43:34]MH_I2C_Read... [21:43:34]Read from MH i2c: E2 0E 00 AA D4 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 38 [21:43:34]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:43:34]wFMCommunicate OK [21:43:34]SAM_PROTO_GetShiftState done [21:43:34]FM_GetShiftState done [21:43:34]req_shift_opened done [21:43:34]requested_item shift.open_date is exist - process it [21:43:34]req_shift_open_date [21:43:34]req_shift_open_date done [21:43:34]produce_requested_data done [21:43:34]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260968,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [21:43:34]process_action_free close_receipt [21:43:34]json_value_free [21:43:34]json_value_free done [21:43:34]process_json_proto returns [21:43:34]Send response to host [21:43:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260968,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [21:43:34]free response buf [21:43:34]execute_script done [21:43:34]execute_script returns [21:43:34]free content buf [21:43:34]Sock 9.Close socket [21:43:34]Sock 9.Thread stoped [21:43:36]OFD Sender: No OFD packet to send [21:43:41]OFD Sender: No OFD packet to send [21:43:46]OFD Sender: No OFD packet to send [21:43:51]OFD Sender: No OFD packet to send [21:43:56]OFD Sender: No OFD packet to send [21:44:01]OFD Sender: No OFD packet to send [21:44:06]OFD Sender: No OFD packet to send [21:44:11]OFD Sender: No OFD packet to send [21:44:16]OFD Sender: No OFD packet to send [21:44:21]OFD Sender: No OFD packet to send [21:44:26]OFD Sender: No OFD packet to send [21:44:31]OFD Sender: No OFD packet to send [21:44:36]OFD Sender: No OFD packet to send [21:44:41]OFD Sender: No OFD packet to send [21:44:41]accept exits with 7 [21:44:41]New connection [21:44:41]New thread 3066617188 created [21:44:41]Thread 3066473828 joined [21:44:41]Waiting for new connection... [21:44:41] Sock 7.Parse request [21:44:41]Sock 7.Check first char [21:44:41]Sock 7.First char is OK [21:44:41]request: POST /json_proto HTTP/1.0 [21:44:41]Method: POST [21:44:41]URL: /json_proto [21:44:41]Method is POST - this is cgi request [21:44:41]url: /json_proto [21:44:41]query_string will be loaded in cgi processing [21:44:41]execute_cgi json_proto POST (null) [21:44:41]execute_cgi path=json_proto method=POST [21:44:41]POST find Content-Length [21:44:41]Host: 172.17.55.133:8080 [21:44:41]Content-Length: 804 [21:44:41]Content-Type: application/json [21:44:41] [21:44:41]POST finish read [21:44:41]Found Content-Length = 804 [21:44:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036522", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:44:41]execute_script... [21:44:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036522", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:44:41]POST & json_proto [21:44:41]process_json_proto [21:44:41]json parsed OK: [21:44:41]protocol is kg_v1.0 [21:44:41]action value=close_receipt [21:44:41]process_action close_receipt [21:44:41]cmd_close_receipt [21:44:41]MH_GetDate [21:44:41]Write to MH i2c: F0 00 00 AB D4 6E [21:44:41]Write i2c OK [21:44:41]MH_I2C_Read... [21:44:41]Read from MH i2c: F0 [21:44:41]MH_I2C_Read... [21:44:41]Read from MH i2c: F0 09 00 [21:44:41]MH_I2C_Read... [21:44:41]Read from MH i2c: F0 09 00 AB D4 00 50 6B C2 66 34 48 D8 65 13 [21:44:41]GetLastDocTimeStamp 1724017415 [21:44:41]current date 1724017488 [21:44:41]FM_GetShiftState [21:44:41]SAM_PROTO_GetShiftState [21:44:41]wFMCommunicate request_size=4 [21:44:41]MH_SAM_APDU [21:44:41]CAPDU: 80 13 01 00 [21:44:41]Write to MH i2c: E2 08 00 AC D4 80 13 01 00 00 00 00 00 FD [21:44:41]Write i2c OK [21:44:41]MH_I2C_Read... [21:44:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:44:41]Read from MH i2c: E2 [21:44:41]MH_I2C_Read... [21:44:41]Read from MH i2c: E2 0E 00 [21:44:41]MH_I2C_Read... [21:44:41]Read from MH i2c: E2 0E 00 AC D4 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 3A [21:44:41]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:44:41]wFMCommunicate OK [21:44:41]SAM_PROTO_GetShiftState done [21:44:41]FM_GetShiftState done [21:44:41]opened in 1723940556 [21:44:41]opened+sec_in_day 1724026956 [21:44:41]quantity*price = 100021 [21:44:41]sum+1 = 100023 [21:44:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 527 18.08.2024 21:44 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260969 ФПД: 80065528864721 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T214448&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260969&fm=80065528864721&tin=02508201610067®Number=0000000000091865&sum=100022 [21:44:42]StoreToDocumentArchive [21:44:42]shift 449 fd 260969 [21:44:42]save to /storage/0449/doc_00260969 [21:44:42]save last doc name /storage/0449/doc_00260969 to /storage/kkm_last_doc_name [21:44:42]save OK [21:44:42]Clear old archive folders... [21:44:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:44:42]tlvbuf is 00387E70 [21:44:42]SAM_PROTO_ClearQueue [21:44:42]wFMCommunicate request_size=4 [21:44:42]MH_SAM_APDU [21:44:42]CAPDU: 80 09 00 00 [21:44:42]Write to MH i2c: E2 08 00 B9 D4 80 09 00 00 00 00 00 00 FF [21:44:42]Write i2c OK [21:44:42]MH_I2C_Read... [21:44:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:44:43]Read from MH i2c: E2 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: E2 03 00 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: E2 03 00 B9 D4 00 90 00 01 [21:44:43]RAPDU: 90 00 [21:44:43]wFMCommunicate OK [21:44:43]SAM_PROTO_ClearQueue done [21:44:43]KKMCreateOFDPacket [21:44:43]OFDProtocolAddRootSTLVToBuf [21:44:43]FM_MakeSignedData [21:44:43]FM_MakeSignedData [21:44:43]SAM_PROTO_SignData [21:44:43]wFMCommunicate request_size=4 [21:44:43]MH_SAM_APDU [21:44:43]CAPDU: 80 0D 01 02 [21:44:43]Write to MH i2c: E2 08 00 BA D4 80 0D 01 02 00 00 00 00 07 [21:44:43]Write i2c OK [21:44:43]MH_I2C_Read... [21:44:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:44:43]Read from MH i2c: E2 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: E2 03 00 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: E2 03 00 BA D4 00 90 00 02 [21:44:43]RAPDU: 90 00 [21:44:43]wFMCommunicate OK [21:44:43]wFMCommunicate request_size=255 [21:44:43]MH_SAM_APDU [21:44: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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 02 00 00 F4 03 04 00 50 6B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 69 FB 03 00 35 04 06 00 48 [21:44:43]Write to MH i2c: E2 02 01 BB D4 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 02 00 00 F4 03 04 00 50 6B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 69 FB 03 00 35 04 06 00 48 00 00 42 [21:44:43]Write i2c OK [21:44:43]MH_I2C_Read... [21:44:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:44:43]Read from MH i2c: E2 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: E2 03 00 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: E2 03 00 BB D4 00 90 00 03 [21:44:43]RAPDU: 90 00 [21:44:43]wFMCommunicate OK [21:44:43]wFMCommunicate request_size=10 [21:44:43]MH_SAM_APDU [21:44:43]CAPDU: 80 0D 02 02 05 D1 B5 68 1F D1 [21:44:43]Write to MH i2c: E2 0D 00 BC D4 80 0D 02 02 05 00 D1 B5 68 1F D1 00 00 F2 [21:44:43]Write i2c OK [21:44:43]MH_I2C_Read... [21:44:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:44:43]Read from MH i2c: E2 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: E2 03 00 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: E2 03 00 BC D4 00 90 00 04 [21:44:43]RAPDU: 90 00 [21:44:43]wFMCommunicate OK [21:44:43]wFMCommunicate request_size=4 [21:44:43]MH_SAM_APDU [21:44:43]CAPDU: 80 0D 03 02 [21:44:43]Write to MH i2c: E2 08 00 BD D4 80 0D 03 02 00 00 00 00 0C [21:44:43]Write i2c OK [21:44:43]MH_I2C_Read... [21:44:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:44:43]Read from MH i2c: E2 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: E2 0B 00 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: E2 0B 00 BD D4 00 51 21 20 01 2D EC 43 72 90 00 6E [21:44:43]RAPDU: 51 21 20 01 2D EC 43 72 90 00 [21:44:43]wFMCommunicate OK [21:44:43]SAM_PROTO_SignData done [21:44:43]FM_MakeSignedData done [21:44:43]CreateOFDProtocolMessage [21:44:43]wFMCommunicate request_size=4 [21:44:43]MH_SAM_APDU [21:44:43]CAPDU: 80 11 00 00 [21:44:43]Write to MH i2c: E2 08 00 BE D4 80 11 00 00 00 00 00 00 0C [21:44:43]Write i2c OK [21:44:43]MH_I2C_Read... [21:44:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:44:43]Read from MH i2c: E2 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: E2 17 00 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: E2 17 00 BE D4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 59 [21:44:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:44:43]wFMCommunicate OK [21:44:43]CreateOFDProtocolMessage done [21:44:43]OFDSenderStorePacket 260969 [21:44:43]StoreOFDPacket docnum=260969 [21:44:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 DC B1 07 01 A5 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 02 00 00 F4 03 04 00 50 6B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 69 FB 03 00 35 04 06 00 48 D1 B5 68 1F D1 51 21 20 01 2D EC 43 72 [21:44:43]CheckFolder [21:44:43]dirname=/storage/ofd_packets [21:44:43]CheckFolder done [21:44:43]ProducePacketName [21:44:43]name=ofd_packets/00260969 [21:44:43]NVStorageSaveData ofd_packets/00260969 [21:44:43]File name is /storage/ofd_packets/00260969 [21:44:43]Write 301 bytes [21:44:43]NVStorageSaveData done [21:44:43]OFDSenderStorePacket done [21:44:43]KKMCreateOFDPacket done [21:44:43]NVStorageSaveData kkm_last_timestamp [21:44:43]File name is /storage/kkm_last_timestamp [21:44:43]Write 4 bytes [21:44:43]NVStorageSaveData done [21:44:43]ExternCall_PrintAddStr [21:44:43]wPrintStart [21:44:43]Write to MH i2c: 01 00 00 BF D4 93 [21:44:43]Write i2c OK [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: 01 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: 01 07 00 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: 01 07 00 BF D4 00 00 00 00 00 FF 0F A8 [21:44:43]RasterBufferAndPrint [21:44:43]line Счет N : (1)1036522 [21:44:43]line ИНН: 02508201610067 [21:44:43]line Контрольно-Кассовый Чек [21:44:43]line ПРОДАЖА [21:44:43]line ТРК (МРК, ГНК) : 13 [21:44:43]line Товар: 2710124500 [21:44:43]line Аи-95-К-5 [21:44:43]line 13.480 * 74.20 [21:44:43]line = 1000.22 [21:44:43]line НДС 12% НСП 1% [21:44:43]line > о реализуемом товаре [21:44:43]line ИТОГО: 1000.22 [21:44:43]line НСП 1% : 8.85 [21:44:43]line НДС 12% : 106.22 [21:44:43]line Наличными: 0.00 [21:44:43]line Безнал.: 1000.22 [21:44:43]line Место: АЗС № 94 "Партнер Нефть" [21:44:43]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [21:44:43]line СНО: Общий режим [21:44:43]line Чек 527 18.08.2024 21:44 [21:44:43]line Смена: 449 ФФД: 1.0 [21:44:43]line ЗНМ: 0300000099 [21:44:43]line РНМ: 0000000000091865 [21:44:43]line Версия ККМ: 001 [21:44:43]line Платежная система: O! деньги [21:44:43]line ФМ: 0000000000871820 [21:44:43]line ФД: 260969 [21:44:43]line ФПД: 80065528864721 [21:44:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T214448&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260969&fm=80065528864721&tin=02508201610067®Number=0000000000091865&sum=100022 [21:44:43]written 0, free lines is 4095 [21:44:43]OFD Sender: Processing packet 260969 [packets to send 192, broken 191] [21:44:43]ProducePacketName [21:44:43]name=ofd_packets/00260969 [21:44:43]OFD Sender: To server: pG, [21:44:43]CommunicateWithHost lk.salyk.kg:30040 [21:44:43]ConnectInit lk.salyk.kg [21:44:43]Connected sock=10 [21:44: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 30 0F 01 00 00 DC B1 07 01 A5 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 02 00 00 F4 03 04 00 50 6B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 69 FB 03 00 35 04 06 00 48 D1 B5 68 1F D1 51 21 20 01 2D EC 43 72 [21:44: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 30 4F 00 00 00 8C 50 47 00 8C 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 30 10 04 04 00 69 FB 03 00 F4 03 04 00 A4 14 C2 66 B6 04 01 00 00 4C 90 3F A3 CB 1C F4 13 [21:44:43]CommunicateWithHost err = 0 [21:44:43]CheckOFDResponse [21:44:43]1017 (14) - 77093643461234 [21:44:43]1041 (16) - 0000000000871820 [21:44:43]1040 (4) - 260969 [21:44:43]1012 (4) - 18.08.2024 15:35 [21:44:43]1206 (1) - 0 [21:44:43]OFD Sender: Remove packet 260969 [21:44:43]ProducePacketName [21:44:43]name=ofd_packets/00260969 [21:44:43]NVStorageDeleteData [21:44:43]Write to MH i2c: 01 00 00 E9 D4 BD [21:44:43]Write i2c OK [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: 01 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: 01 07 00 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: 01 07 00 E9 D4 00 00 00 00 00 8D 0C 5D [21:44:43]RasterBufferAndPrint [21:44:43]line [21:44:43]line [21:44:43]line [21:44:43]line [21:44:43]line [21:44:43]written 0, free lines is 3216 [21:44:43]MH_Cut [21:44:43]Write to MH i2c: D1 01 00 F0 D4 01 96 [21:44:43]Write i2c OK [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: D1 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: D1 01 00 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: D1 01 00 F0 D4 00 95 [21:44:43]Write to MH i2c: 01 00 00 F1 D4 C5 [21:44:43]Write i2c OK [21:44:43]MH_I2C_Read... [21:44:44]OFD Sender: No OFD packet to send [21:44:45]*** Cut start [21:44:45]*** Purtial cut [21:44:45]*** Stage 1: CUTSNS_PIN = 1 [21:44:47]Read from MH i2c: 01 [21:44:47]MH_I2C_Read... [21:44:47]*** Stop cut motor [21:44:47]*** Cut end [21:44:47]Read from MH i2c: 01 07 00 [21:44:47]MH_I2C_Read... [21:44:47]Read from MH i2c: 01 07 00 F1 D4 00 00 00 00 00 FF 0F DA [21:44:47]process_action close_receipt done [21:44:47]requested_data is exist [21:44:47]produce_requested_data [21:44:47]requested_item fm.sn is exist - process it [21:44:47]wFMCommunicate request_size=4 [21:44:47]MH_SAM_APDU [21:44:47]CAPDU: 80 11 00 00 [21:44:47]Write to MH i2c: E2 08 00 F2 D4 80 11 00 00 00 00 00 00 40 [21:44:47]Write i2c OK [21:44:47]MH_I2C_Read... [21:44:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:44:47]Read from MH i2c: E2 [21:44:47]MH_I2C_Read... [21:44:47]Read from MH i2c: E2 17 00 [21:44:47]MH_I2C_Read... [21:44:47]Read from MH i2c: E2 17 00 F2 D4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 8D [21:44:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:44:47]wFMCommunicate OK [21:44:47]requested_item fd.num is exist - process it [21:44:47]SAM_PROTO_GetFieldsCounters [21:44:47]wFMCommunicate request_size=4 [21:44:47]MH_SAM_APDU [21:44:47]CAPDU: 80 13 00 00 [21:44:47]Write to MH i2c: E2 08 00 F3 D4 80 13 00 00 00 00 00 00 43 [21:44:47]Write i2c OK [21:44:47]MH_I2C_Read... [21:44:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:44:47]Read from MH i2c: E2 [21:44:47]MH_I2C_Read... [21:44:47]Read from MH i2c: E2 62 00 [21:44:47]MH_I2C_Read... [21:44:47]Read from MH i2c: E2 62 00 F3 D4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 69 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 0F 02 00 00 5E 04 04 00 0F 02 00 00 57 04 04 00 10 02 00 00 19 04 04 00 00 00 00 00 90 00 BE [21:44: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 69 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 0F 02 00 00 5E 04 04 00 0F 02 00 00 57 04 04 00 10 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:44:47]wFMCommunicate OK [21:44:47]SAM_PROTO_GetFieldsCounters done [21:44:47]requested_item shift.num is exist - process it [21:44:47]requested_item shift.opened is exist - process it [21:44:47]req_shift_opened [21:44:47]FM_GetShiftState [21:44:47]SAM_PROTO_GetShiftState [21:44:47]wFMCommunicate request_size=4 [21:44:47]MH_SAM_APDU [21:44:47]CAPDU: 80 13 01 00 [21:44:47]Write to MH i2c: E2 08 00 F4 D4 80 13 01 00 00 00 00 00 45 [21:44:47]Write i2c OK [21:44:47]MH_I2C_Read... [21:44:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:44:47]Read from MH i2c: E2 [21:44:47]MH_I2C_Read... [21:44:47]Read from MH i2c: E2 0E 00 [21:44:47]MH_I2C_Read... [21:44:47]Read from MH i2c: E2 0E 00 F4 D4 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 82 [21:44:47]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:44:47]wFMCommunicate OK [21:44:47]SAM_PROTO_GetShiftState done [21:44:47]FM_GetShiftState done [21:44:47]req_shift_opened done [21:44:47]requested_item shift.open_date is exist - process it [21:44:47]req_shift_open_date [21:44:47]req_shift_open_date done [21:44:47]produce_requested_data done [21:44:47]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260969,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [21:44:47]process_action_free close_receipt [21:44:47]json_value_free [21:44:47]json_value_free done [21:44:47]process_json_proto returns [21:44:47]Send response to host [21:44:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260969,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [21:44:47]free response buf [21:44:47]execute_script done [21:44:47]execute_script returns [21:44:47]free content buf [21:44:47]Sock 7.Close socket [21:44:47]Sock 7.Thread stoped [21:44:49]OFD Sender: No OFD packet to send [21:44:54]OFD Sender: No OFD packet to send [21:44:59]OFD Sender: No OFD packet to send [21:45:04]OFD Sender: No OFD packet to send [21:45:09]OFD Sender: No OFD packet to send [21:45:14]OFD Sender: No OFD packet to send [21:45:19]OFD Sender: No OFD packet to send [21:45:24]OFD Sender: No OFD packet to send [21:45:29]OFD Sender: No OFD packet to send [21:45:34]OFD Sender: No OFD packet to send [21:45:39]OFD Sender: No OFD packet to send [21:45:44]OFD Sender: No OFD packet to send [21:45:49]OFD Sender: No OFD packet to send [21:45:54]OFD Sender: No OFD packet to send [21:45:59]OFD Sender: No OFD packet to send [21:46:04]OFD Sender: No OFD packet to send [21:46:09]OFD Sender: No OFD packet to send [21:46:14]OFD Sender: No OFD packet to send [21:46:19]OFD Sender: No OFD packet to send [21:46:24]OFD Sender: No OFD packet to send [21:46:29]OFD Sender: No OFD packet to send [21:46:34]OFD Sender: No OFD packet to send [21:46:39]OFD Sender: No OFD packet to send [21:46:44]OFD Sender: No OFD packet to send [21:46:49]OFD Sender: No OFD packet to send [21:46:54]OFD Sender: No OFD packet to send [21:46:59]OFD Sender: No OFD packet to send [21:47:04]OFD Sender: No OFD packet to send [21:47:09]OFD Sender: No OFD packet to send [21:47:14]OFD Sender: No OFD packet to send [21:47:19]OFD Sender: No OFD packet to send [21:47:24]OFD Sender: No OFD packet to send [21:47:29]OFD Sender: No OFD packet to send [21:47:34]OFD Sender: No OFD packet to send [21:47:39]OFD Sender: No OFD packet to send [21:47:44]OFD Sender: No OFD packet to send [21:47:49]OFD Sender: No OFD packet to send [21:47:54]OFD Sender: No OFD packet to send [21:47:59]OFD Sender: No OFD packet to send [21:48:04]OFD Sender: No OFD packet to send [21:48:09]OFD Sender: No OFD packet to send [21:48:14]OFD Sender: No OFD packet to send [21:48:19]OFD Sender: No OFD packet to send [21:48:24]OFD Sender: No OFD packet to send [21:48:29]OFD Sender: No OFD packet to send [21:48:34]OFD Sender: No OFD packet to send [21:48:39]OFD Sender: No OFD packet to send [21:48:44]OFD Sender: No OFD packet to send [21:48:49]OFD Sender: No OFD packet to send [21:48:53]accept exits with 9 [21:48:53]New connection [21:48:53]New thread 3066473828 created [21:48:53]Thread 3066617188 joined [21:48:53]Waiting for new connection... [21:48:53] Sock 9.Parse request [21:48:53]Sock 9.Check first char [21:48:53]Sock 9.First char is OK [21:48:53]request: POST /json_proto HTTP/1.0 [21:48:53]Method: POST [21:48:53]URL: /json_proto [21:48:53]Method is POST - this is cgi request [21:48:53]url: /json_proto [21:48:53]query_string will be loaded in cgi processing [21:48:53]execute_cgi json_proto POST (null) [21:48:53]execute_cgi path=json_proto method=POST [21:48:53]POST find Content-Length [21:48:53]Host: 172.17.55.133:8080 [21:48:53]Content-Length: 683 [21:48:53]Content-Type: application/json [21:48:53] [21:48:53]POST finish read [21:48:53]Found Content-Length = 683 [21:48:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036523", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:53]execute_script... [21:48: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)1036523", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:53]POST & json_proto [21:48:53]process_json_proto [21:48:53]json parsed OK: [21:48:53]protocol is kg_v1.0 [21:48:53]action value=close_receipt [21:48:53]process_action close_receipt [21:48:53]cmd_close_receipt [21:48:53]MH_GetDate [21:48:53]Write to MH i2c: F0 00 00 F5 D4 B8 [21:48:53]Write i2c OK [21:48:53]MH_I2C_Read... [21:48:53]Read from MH i2c: F0 [21:48:53]MH_I2C_Read... [21:48:53]Read from MH i2c: F0 09 00 [21:48:53]MH_I2C_Read... [21:48:53]Read from MH i2c: F0 09 00 F5 D4 00 4C 6C C2 66 34 48 D8 65 5A [21:48:53]GetLastDocTimeStamp 1724017488 [21:48:53]current date 1724017740 [21:48:53]FM_GetShiftState [21:48:53]SAM_PROTO_GetShiftState [21:48:53]wFMCommunicate request_size=4 [21:48:53]MH_SAM_APDU [21:48:53]CAPDU: 80 13 01 00 [21:48:53]Write to MH i2c: E2 08 00 F6 D4 80 13 01 00 00 00 00 00 47 [21:48:53]Write i2c OK [21:48:53]MH_I2C_Read... [21:48:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:53]Read from MH i2c: E2 [21:48:53]MH_I2C_Read... [21:48:53]Read from MH i2c: E2 0E 00 [21:48:53]MH_I2C_Read... [21:48:53]Read from MH i2c: E2 0E 00 F6 D4 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 84 [21:48:53]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:48:53]wFMCommunicate OK [21:48:53]SAM_PROTO_GetShiftState done [21:48:53]FM_GetShiftState done [21:48:53]opened in 1723940556 [21:48:53]opened+sec_in_day 1724026956 [21:48:53]quantity*price = 100021 [21:48:53]sum+1 = 100023 [21:48:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 528 18.08.2024 21:49 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260970 ФПД: 55408510952728 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T214900&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260970&fm=55408510952728&tin=02508201610067®Number=0000000000091865&sum=100000 [21:48:54]StoreToDocumentArchive [21:48:54]shift 449 fd 260970 [21:48:54]save to /storage/0449/doc_00260970 [21:48:54]save last doc name /storage/0449/doc_00260970 to /storage/kkm_last_doc_name [21:48:54]save OK [21:48:54]Clear old archive folders... [21:48:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:48:54]tlvbuf is 0055FA90 [21:48:54]SAM_PROTO_ClearQueue [21:48:54]wFMCommunicate request_size=4 [21:48:54]MH_SAM_APDU [21:48:54]CAPDU: 80 09 00 00 [21:48:54]Write to MH i2c: E2 08 00 03 D5 80 09 00 00 00 00 00 00 4A [21:48:54]Write i2c OK [21:48:54]MH_I2C_Read... [21:48:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:48:54]Read from MH i2c: E2 [21:48:54]MH_I2C_Read... [21:48:54]Read from MH i2c: E2 03 00 [21:48:54]MH_I2C_Read... [21:48:54]Read from MH i2c: E2 03 00 03 D5 00 90 00 4C [21:48:54]RAPDU: 90 00 [21:48:54]wFMCommunicate OK [21:48:54]SAM_PROTO_ClearQueue done [21:48:54]KKMCreateOFDPacket [21:48:54]OFDProtocolAddRootSTLVToBuf [21:48:54]FM_MakeSignedData [21:48:54]FM_MakeSignedData [21:48:54]SAM_PROTO_SignData [21:48:54]wFMCommunicate request_size=4 [21:48:54]MH_SAM_APDU [21:48:54]CAPDU: 80 0D 01 02 [21:48:54]Write to MH i2c: E2 08 00 04 D5 80 0D 01 02 00 00 00 00 52 [21:48:54]Write i2c OK [21:48:54]MH_I2C_Read... [21:48:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:48:55]Read from MH i2c: E2 [21:48:55]MH_I2C_Read... [21:48:55]Read from MH i2c: E2 03 00 [21:48:55]MH_I2C_Read... [21:48:55]Read from MH i2c: E2 03 00 04 D5 00 90 00 4D [21:48:55]RAPDU: 90 00 [21:48:55]wFMCommunicate OK [21:48:55]wFMCommunicate request_size=255 [21:48:55]MH_SAM_APDU [21:48: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 02 00 00 F4 03 04 00 4C 6C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6A FB 03 00 35 04 06 00 32 [21:48:55]Write to MH i2c: E2 02 01 05 D5 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 02 00 00 F4 03 04 00 4C 6C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6A FB 03 00 35 04 06 00 32 00 00 4A [21:48:55]Write i2c OK [21:48:55]MH_I2C_Read... [21:48:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:55]Read from MH i2c: E2 [21:48:55]MH_I2C_Read... [21:48:55]Read from MH i2c: E2 03 00 [21:48:55]MH_I2C_Read... [21:48:55]Read from MH i2c: E2 03 00 05 D5 00 90 00 4E [21:48:55]RAPDU: 90 00 [21:48:55]wFMCommunicate OK [21:48:55]wFMCommunicate request_size=10 [21:48:55]MH_SAM_APDU [21:48:55]CAPDU: 80 0D 02 02 05 64 CC 9C E5 18 [21:48:55]Write to MH i2c: E2 0D 00 06 D5 80 0D 02 02 05 00 64 CC 9C E5 18 00 00 28 [21:48:55]Write i2c OK [21:48:55]MH_I2C_Read... [21:48:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:55]Read from MH i2c: E2 [21:48:55]MH_I2C_Read... [21:48:55]Read from MH i2c: E2 03 00 [21:48:55]MH_I2C_Read... [21:48:55]Read from MH i2c: E2 03 00 06 D5 00 90 00 4F [21:48:55]RAPDU: 90 00 [21:48:55]wFMCommunicate OK [21:48:55]wFMCommunicate request_size=4 [21:48:55]MH_SAM_APDU [21:48:55]CAPDU: 80 0D 03 02 [21:48:55]Write to MH i2c: E2 08 00 07 D5 80 0D 03 02 00 00 00 00 57 [21:48:55]Write i2c OK [21:48:55]MH_I2C_Read... [21:48:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:48:55]Read from MH i2c: E2 [21:48:55]MH_I2C_Read... [21:48:55]Read from MH i2c: E2 0B 00 [21:48:55]MH_I2C_Read... [21:48:55]Read from MH i2c: E2 0B 00 07 D5 00 2F F9 F5 D5 B2 A2 35 01 90 00 D4 [21:48:55]RAPDU: 2F F9 F5 D5 B2 A2 35 01 90 00 [21:48:55]wFMCommunicate OK [21:48:55]SAM_PROTO_SignData done [21:48:55]FM_MakeSignedData done [21:48:55]CreateOFDProtocolMessage [21:48:55]wFMCommunicate request_size=4 [21:48:55]MH_SAM_APDU [21:48:55]CAPDU: 80 11 00 00 [21:48:55]Write to MH i2c: E2 08 00 08 D5 80 11 00 00 00 00 00 00 57 [21:48:55]Write i2c OK [21:48:55]MH_I2C_Read... [21:48:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:55]Read from MH i2c: E2 [21:48:55]MH_I2C_Read... [21:48:55]Read from MH i2c: E2 17 00 [21:48:55]MH_I2C_Read... [21:48:55]Read from MH i2c: E2 17 00 08 D5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A4 [21:48:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:48:55]wFMCommunicate OK [21:48:55]CreateOFDProtocolMessage done [21:48:55]OFDSenderStorePacket 260970 [21:48:55]StoreOFDPacket docnum=260970 [21:48:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 7D 8F 07 01 DC E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 02 00 00 F4 03 04 00 4C 6C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6A FB 03 00 35 04 06 00 32 64 CC 9C E5 18 2F F9 F5 D5 B2 A2 35 01 [21:48:55]CheckFolder [21:48:55]dirname=/storage/ofd_packets [21:48:55]CheckFolder done [21:48:55]ProducePacketName [21:48:55]name=ofd_packets/00260970 [21:48:55]NVStorageSaveData ofd_packets/00260970 [21:48:55]File name is /storage/ofd_packets/00260970 [21:48:55]Write 301 bytes [21:48:55]NVStorageSaveData done [21:48:55]OFDSenderStorePacket done [21:48:55]KKMCreateOFDPacket done [21:48:55]NVStorageSaveData kkm_last_timestamp [21:48:55]File name is /storage/kkm_last_timestamp [21:48:55]Write 4 bytes [21:48:55]NVStorageSaveData done [21:48:55]ExternCall_PrintAddStr [21:48:55]wPrintStart [21:48:55]Write to MH i2c: 01 00 00 09 D5 DE [21:48:55]Write i2c OK [21:48:55]MH_I2C_Read... [21:48:55]Read from MH i2c: 01 [21:48:55]MH_I2C_Read... [21:48:55]Read from MH i2c: 01 07 00 [21:48:55]MH_I2C_Read... [21:48:55]Read from MH i2c: 01 07 00 09 D5 00 00 00 00 00 FF 0F F3 [21:48:55]RasterBufferAndPrint [21:48:55]line Счет N : (1)1036523 [21:48:55]line ИНН: 02508201610067 [21:48:55]line Контрольно-Кассовый Чек [21:48:55]line ПРОДАЖА [21:48:55]line ТРК (МРК, ГНК) : 13 [21:48:55]line Товар: 2710124500 [21:48:55]line Аи-95-К-5 [21:48:55]line 13.480 * 74.20 [21:48:55]line = 1000.22 [21:48:55]line НДС 12% НСП 1% [21:48:55]line > о реализуемом товаре [21:48:55]line ОКРУГЛЕНИЕ: -0.22 [21:48:55]line ИТОГО: 1000.00 [21:48:55]line Внесено: 1000.00 [21:48:55]line СДАЧА: 0.00 [21:48:55]line НСП 1% : 8.85 [21:48:55]line НДС 12% : 106.22 [21:48:55]line Наличными: 1000.00 [21:48:55]line Безнал.: 0.00 [21:48:55]line Место: АЗС № 94 "Партнер Нефть" [21:48:55]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [21:48:55]line СНО: Общий режим [21:48:55]line Чек 528 18.08.2024 21:49 [21:48:55]line Смена: 449 ФФД: 1.0 [21:48:55]line ЗНМ: 0300000099 [21:48:55]line РНМ: 0000000000091865 [21:48:55]line Версия ККМ: 001 [21:48:55]line ФМ: 0000000000871820 [21:48:55]line ФД: 260970 [21:48:55]line ФПД: 55408510952728 [21:48:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T214900&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260970&fm=55408510952728&tin=02508201610067®Number=0000000000091865&sum=100000 [21:48:55]OFD Sender: Processing packet 260970 [packets to send 192, broken 191] [21:48:55]ProducePacketName [21:48:55]name=ofd_packets/00260970 [21:48:55]OFD Sender: To server: pG, [21:48:55]CommunicateWithHost lk.salyk.kg:30040 [21:48:55]ConnectInit lk.salyk.kg [21:48:55]written 0, free lines is 4095 [21:48:55]Connected sock=10 [21:48: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 30 0F 01 00 00 7D 8F 07 01 DC E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 02 00 00 F4 03 04 00 4C 6C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6A FB 03 00 35 04 06 00 32 64 CC 9C E5 18 2F F9 F5 D5 B2 A2 35 01 [21:48: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 30 4F 00 00 00 CA 40 47 00 F4 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 30 10 04 04 00 6A FB 03 00 F4 03 04 00 A0 15 C2 66 B6 04 01 00 00 4E A2 2E 94 7F F3 4C 08 [21:48:56]CommunicateWithHost err = 0 [21:48:56]CheckOFDResponse [21:48:56]1017 (14) - 77093643461234 [21:48:56]1041 (16) - 0000000000871820 [21:48:56]1040 (4) - 260970 [21:48:56]1012 (4) - 18.08.2024 15:39 [21:48:56]1206 (1) - 0 [21:48:56]OFD Sender: Remove packet 260970 [21:48:56]ProducePacketName [21:48:56]name=ofd_packets/00260970 [21:48:56]NVStorageDeleteData [21:48:56]Write to MH i2c: 01 00 00 34 D5 09 [21:48:56]Write i2c OK [21:48:56]MH_I2C_Read... [21:48:56]Read from MH i2c: 01 [21:48:56]MH_I2C_Read... [21:48:56]Read from MH i2c: 01 07 00 [21:48:56]MH_I2C_Read... [21:48:56]Read from MH i2c: 01 07 00 34 D5 00 00 00 00 00 71 0C 8D [21:48:56]RasterBufferAndPrint [21:48:56]line [21:48:56]line [21:48:56]line [21:48:56]line [21:48:56]line [21:48:56]written 0, free lines is 3187 [21:48:56]MH_Cut [21:48:56]Write to MH i2c: D1 01 00 3B D5 01 E2 [21:48:56]Write i2c OK [21:48:56]MH_I2C_Read... [21:48:56]Read from MH i2c: D1 [21:48:56]MH_I2C_Read... [21:48:56]Read from MH i2c: D1 01 00 [21:48:56]MH_I2C_Read... [21:48:56]Read from MH i2c: D1 01 00 3B D5 00 E1 [21:48:56]Write to MH i2c: 01 00 00 3C D5 11 [21:48:56]Write i2c OK [21:48:56]MH_I2C_Read... [21:48:56]OFD Sender: No OFD packet to send [21:48:57]*** Cut start [21:48:57]*** Purtial cut [21:48:57]*** Stage 1: CUTSNS_PIN = 1 [21:48:59]Read from MH i2c: 01 [21:48:59]MH_I2C_Read... [21:48:59]*** Stop cut motor [21:48:59]*** Cut end [21:48:59]Read from MH i2c: 01 07 00 [21:48:59]MH_I2C_Read... [21:48:59]Read from MH i2c: 01 07 00 3C D5 00 00 00 00 00 FF 0F 26 [21:48:59]process_action close_receipt done [21:48:59]requested_data is exist [21:48:59]produce_requested_data [21:48:59]requested_item fm.sn is exist - process it [21:48:59]wFMCommunicate request_size=4 [21:48:59]MH_SAM_APDU [21:48:59]CAPDU: 80 11 00 00 [21:48:59]Write to MH i2c: E2 08 00 3D D5 80 11 00 00 00 00 00 00 8C [21:48:59]Write i2c OK [21:48:59]MH_I2C_Read... [21:48:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:59]Read from MH i2c: E2 [21:48:59]MH_I2C_Read... [21:48:59]Read from MH i2c: E2 17 00 [21:48:59]MH_I2C_Read... [21:48:59]Read from MH i2c: E2 17 00 3D D5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D9 [21:48:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:48:59]wFMCommunicate OK [21:48:59]requested_item fd.num is exist - process it [21:48:59]SAM_PROTO_GetFieldsCounters [21:48:59]wFMCommunicate request_size=4 [21:48:59]MH_SAM_APDU [21:48:59]CAPDU: 80 13 00 00 [21:48:59]Write to MH i2c: E2 08 00 3E D5 80 13 00 00 00 00 00 00 8F [21:48:59]Write i2c OK [21:48:59]MH_I2C_Read... [21:48:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:48:59]Read from MH i2c: E2 [21:48:59]MH_I2C_Read... [21:48:59]Read from MH i2c: E2 62 00 [21:48:59]MH_I2C_Read... [21:48:59]Read from MH i2c: E2 62 00 3E D5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 6A FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 10 02 00 00 5E 04 04 00 10 02 00 00 57 04 04 00 11 02 00 00 19 04 04 00 00 00 00 00 90 00 0E [21:48: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 6A FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 10 02 00 00 5E 04 04 00 10 02 00 00 57 04 04 00 11 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:48:59]wFMCommunicate OK [21:48:59]SAM_PROTO_GetFieldsCounters done [21:48:59]requested_item shift.num is exist - process it [21:48:59]requested_item shift.opened is exist - process it [21:48:59]req_shift_opened [21:48:59]FM_GetShiftState [21:48:59]SAM_PROTO_GetShiftState [21:48:59]wFMCommunicate request_size=4 [21:48:59]MH_SAM_APDU [21:48:59]CAPDU: 80 13 01 00 [21:48:59]Write to MH i2c: E2 08 00 3F D5 80 13 01 00 00 00 00 00 91 [21:48:59]Write i2c OK [21:48:59]MH_I2C_Read... [21:48:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:59]Read from MH i2c: E2 [21:48:59]MH_I2C_Read... [21:48:59]Read from MH i2c: E2 0E 00 [21:48:59]MH_I2C_Read... [21:48:59]Read from MH i2c: E2 0E 00 3F D5 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 CE [21:48:59]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:48:59]wFMCommunicate OK [21:48:59]SAM_PROTO_GetShiftState done [21:48:59]FM_GetShiftState done [21:48:59]req_shift_opened done [21:48:59]requested_item shift.open_date is exist - process it [21:48:59]req_shift_open_date [21:48:59]req_shift_open_date done [21:48:59]produce_requested_data done [21:48:59]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260970,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [21:48:59]process_action_free close_receipt [21:48:59]json_value_free [21:48:59]json_value_free done [21:48:59]process_json_proto returns [21:48:59]Send response to host [21:48:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260970,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [21:48:59]free response buf [21:48:59]execute_script done [21:48:59]execute_script returns [21:48:59]free content buf [21:48:59]Sock 9.Close socket [21:48:59]Sock 9.Thread stoped [21:49:01]OFD Sender: No OFD packet to send [21:49:06]OFD Sender: No OFD packet to send [21:49:11]OFD Sender: No OFD packet to send [21:49:16]OFD Sender: No OFD packet to send [21:49:21]OFD Sender: No OFD packet to send [21:49:26]OFD Sender: No OFD packet to send [21:49:28]accept exits with 7 [21:49:28]New connection [21:49:28]New thread 3066617188 created [21:49:28]Thread 3066473828 joined [21:49:28]Waiting for new connection... [21:49:28] Sock 7.Parse request [21:49:28]Sock 7.Check first char [21:49:28]Sock 7.First char is OK [21:49:28]request: POST /json_proto HTTP/1.0 [21:49:28]Method: POST [21:49:28]URL: /json_proto [21:49:28]Method is POST - this is cgi request [21:49:28]url: /json_proto [21:49:28]query_string will be loaded in cgi processing [21:49:28]execute_cgi json_proto POST (null) [21:49:28]execute_cgi path=json_proto method=POST [21:49:28]POST find Content-Length [21:49:28]Host: 172.17.55.133:8080 [21:49:28]Content-Length: 683 [21:49:28]Content-Type: application/json [21:49:28] [21:49:28]POST finish read [21:49:28]Found Content-Length = 683 [21:49:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036524", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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:49:28]execute_script... [21:49:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036524", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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:49:28]POST & json_proto [21:49:28]process_json_proto [21:49:28]json parsed OK: [21:49:28]protocol is kg_v1.0 [21:49:28]action value=close_receipt [21:49:28]process_action close_receipt [21:49:28]cmd_close_receipt [21:49:28]MH_GetDate [21:49:28]Write to MH i2c: F0 00 00 40 D5 04 [21:49:28]Write i2c OK [21:49:28]MH_I2C_Read... [21:49:28]Read from MH i2c: F0 [21:49:28]MH_I2C_Read... [21:49:28]Read from MH i2c: F0 09 00 [21:49:28]MH_I2C_Read... [21:49:28]Read from MH i2c: F0 09 00 40 D5 00 6F 6C C2 66 34 48 D8 65 C9 [21:49:28]GetLastDocTimeStamp 1724017740 [21:49:28]current date 1724017775 [21:49:28]FM_GetShiftState [21:49:28]SAM_PROTO_GetShiftState [21:49:28]wFMCommunicate request_size=4 [21:49:28]MH_SAM_APDU [21:49:28]CAPDU: 80 13 01 00 [21:49:28]Write to MH i2c: E2 08 00 41 D5 80 13 01 00 00 00 00 00 93 [21:49:28]Write i2c OK [21:49:28]MH_I2C_Read... [21:49:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:28]Read from MH i2c: E2 [21:49:28]MH_I2C_Read... [21:49:28]Read from MH i2c: E2 0E 00 [21:49:28]MH_I2C_Read... [21:49:28]Read from MH i2c: E2 0E 00 41 D5 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D0 [21:49:28]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:49:28]wFMCommunicate OK [21:49:28]SAM_PROTO_GetShiftState done [21:49:28]FM_GetShiftState done [21:49:28]opened in 1723940556 [21:49:28]opened+sec_in_day 1724026956 [21:49:28]quantity*price = 150041 [21:49:28]sum+1 = 150042 [21:49:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 529 18.08.2024 21:49 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260971 ФПД: 281338295399011 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T214935&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260971&fm=281338295399011&tin=02508201610067®Number=0000000000091865&sum=150000 [21:49:29]StoreToDocumentArchive [21:49:29]shift 449 fd 260971 [21:49:29]save to /storage/0449/doc_00260971 [21:49:29]save last doc name /storage/0449/doc_00260971 to /storage/kkm_last_doc_name [21:49:29]save OK [21:49:29]Clear old archive folders... [21:49:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:49:29]tlvbuf is 003E2DE0 [21:49:29]SAM_PROTO_ClearQueue [21:49:29]wFMCommunicate request_size=4 [21:49:29]MH_SAM_APDU [21:49:29]CAPDU: 80 09 00 00 [21:49:29]Write to MH i2c: E2 08 00 4E D5 80 09 00 00 00 00 00 00 95 [21:49:29]Write i2c OK [21:49:29]MH_I2C_Read... [21:49:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:49:29]Read from MH i2c: E2 [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: E2 03 00 [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: E2 03 00 4E D5 00 90 00 97 [21:49:29]RAPDU: 90 00 [21:49:29]wFMCommunicate OK [21:49:29]SAM_PROTO_ClearQueue done [21:49:29]KKMCreateOFDPacket [21:49:29]OFDProtocolAddRootSTLVToBuf [21:49:29]FM_MakeSignedData [21:49:29]FM_MakeSignedData [21:49:29]SAM_PROTO_SignData [21:49:29]wFMCommunicate request_size=4 [21:49:29]MH_SAM_APDU [21:49:29]CAPDU: 80 0D 01 02 [21:49:29]Write to MH i2c: E2 08 00 4F D5 80 0D 01 02 00 00 00 00 9D [21:49:29]Write i2c OK [21:49:29]MH_I2C_Read... [21:49:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:49:29]Read from MH i2c: E2 [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: E2 03 00 [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: E2 03 00 4F D5 00 90 00 98 [21:49:29]RAPDU: 90 00 [21:49:29]wFMCommunicate OK [21:49:29]wFMCommunicate request_size=255 [21:49:29]MH_SAM_APDU [21:49:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 02 00 00 F4 03 04 00 6F 6C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6B FB 03 00 35 04 06 00 FF [21:49:29]Write to MH i2c: E2 02 01 50 D5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 02 00 00 F4 03 04 00 6F 6C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6B FB 03 00 35 04 06 00 FF 00 00 CF [21:49:29]Write i2c OK [21:49:29]MH_I2C_Read... [21:49:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:29]Read from MH i2c: E2 [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: E2 03 00 [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: E2 03 00 50 D5 00 90 00 99 [21:49:29]RAPDU: 90 00 [21:49:29]wFMCommunicate OK [21:49:29]wFMCommunicate request_size=10 [21:49:29]MH_SAM_APDU [21:49:29]CAPDU: 80 0D 02 02 05 E0 2D 28 B2 63 [21:49:29]Write to MH i2c: E2 0D 00 51 D5 80 0D 02 02 05 00 E0 2D 28 B2 63 00 00 F4 [21:49:29]Write i2c OK [21:49:29]MH_I2C_Read... [21:49:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:29]Read from MH i2c: E2 [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: E2 03 00 [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: E2 03 00 51 D5 00 90 00 9A [21:49:29]RAPDU: 90 00 [21:49:29]wFMCommunicate OK [21:49:29]wFMCommunicate request_size=4 [21:49:29]MH_SAM_APDU [21:49:29]CAPDU: 80 0D 03 02 [21:49:29]Write to MH i2c: E2 08 00 52 D5 80 0D 03 02 00 00 00 00 A2 [21:49:29]Write i2c OK [21:49:29]MH_I2C_Read... [21:49:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:49:29]Read from MH i2c: E2 [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: E2 0B 00 [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: E2 0B 00 52 D5 00 98 14 3B E1 34 0C 2E 29 90 00 02 [21:49:29]RAPDU: 98 14 3B E1 34 0C 2E 29 90 00 [21:49:29]wFMCommunicate OK [21:49:29]SAM_PROTO_SignData done [21:49:29]FM_MakeSignedData done [21:49:29]CreateOFDProtocolMessage [21:49:29]wFMCommunicate request_size=4 [21:49:29]MH_SAM_APDU [21:49:29]CAPDU: 80 11 00 00 [21:49:29]Write to MH i2c: E2 08 00 53 D5 80 11 00 00 00 00 00 00 A2 [21:49:29]Write i2c OK [21:49:29]MH_I2C_Read... [21:49:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:29]Read from MH i2c: E2 [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: E2 17 00 [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: E2 17 00 53 D5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 EF [21:49:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:49:29]wFMCommunicate OK [21:49:29]CreateOFDProtocolMessage done [21:49:29]OFDSenderStorePacket 260971 [21:49:29]StoreOFDPacket docnum=260971 [21:49:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 E6 EB 07 01 30 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 02 00 00 F4 03 04 00 6F 6C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6B FB 03 00 35 04 06 00 FF E0 2D 28 B2 63 98 14 3B E1 34 0C 2E 29 [21:49:29]CheckFolder [21:49:29]dirname=/storage/ofd_packets [21:49:29]CheckFolder done [21:49:29]ProducePacketName [21:49:29]name=ofd_packets/00260971 [21:49:29]NVStorageSaveData ofd_packets/00260971 [21:49:29]File name is /storage/ofd_packets/00260971 [21:49:29]Write 301 bytes [21:49:29]NVStorageSaveData done [21:49:29]OFDSenderStorePacket done [21:49:29]KKMCreateOFDPacket done [21:49:29]NVStorageSaveData kkm_last_timestamp [21:49:29]File name is /storage/kkm_last_timestamp [21:49:29]Write 4 bytes [21:49:29]NVStorageSaveData done [21:49:29]ExternCall_PrintAddStr [21:49:29]wPrintStart [21:49:29]Write to MH i2c: 01 00 00 54 D5 29 [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 54 D5 00 00 00 00 00 FF 0F 3E [21:49:29]RasterBufferAndPrint [21:49:29]line Счет N : (1)1036524 [21:49:29]line ИНН: 02508201610067 [21:49:29]line Контрольно-Кассовый Чек [21:49:29]line ПРОДАЖА [21:49:29]line ТРК (МРК, ГНК) : 22 [21:49:29]line Товар: 2710124130 [21:49:29]line Аи-92-К-5 [21:49:29]line 22.130 * 67.80 [21:49:29]line = 1500.41 [21:49:29]line НДС 12% НСП 1% [21:49:29]line > о реализуемом товаре [21:49:29]line ОКРУГЛЕНИЕ: -0.41 [21:49:29]line ИТОГО: 1500.00 [21:49:29]line Внесено: 1500.00 [21:49:29]line СДАЧА: 0.00 [21:49:29]line НСП 1% : 13.28 [21:49:29]line НДС 12% : 159.34 [21:49:29]line Наличными: 1500.00 [21:49:29]line Безнал.: 0.00 [21:49:29]line Место: АЗС № 94 "Партнер Нефть" [21:49:29]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [21:49:29]line СНО: Общий режим [21:49:29]line Чек 529 18.08.2024 21:49 [21:49:29]line Смена: 449 ФФД: 1.0 [21:49:29]line ЗНМ: 0300000099 [21:49:29]line РНМ: 0000000000091865 [21:49:29]line Версия ККМ: 001 [21:49:29]line ФМ: 0000000000871820 [21:49:29]line ФД: 260971 [21:49:29]line ФПД: 281338295399011 [21:49:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T214935&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260971&fm=281338295399011&tin=02508201610067®Number=0000000000091865&sum=150000 [21:49:29]written 0, free lines is 4095 [21:49:29]OFD Sender: Processing packet 260971 [packets to send 192, broken 191] [21:49:29]ProducePacketName [21:49:29]name=ofd_packets/00260971 [21:49:29]OFD Sender: To server: pG, [21:49:29]CommunicateWithHost lk.salyk.kg:30040 [21:49:29]ConnectInit lk.salyk.kg [21:49:29]Connected sock=10 [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 30 0F 01 00 00 E6 EB 07 01 30 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 02 00 00 F4 03 04 00 6F 6C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6B FB 03 00 35 04 06 00 FF E0 2D 28 B2 63 98 14 3B E1 34 0C 2E 29 [21:49: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 30 4F 00 00 00 F8 99 47 00 FE 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6B FB 03 00 F4 03 04 00 C2 15 C2 66 B6 04 01 00 00 99 19 E6 5E A0 04 4A D2 [21:49:30]CommunicateWithHost err = 0 [21:49:30]CheckOFDResponse [21:49:30]1017 (14) - 77093643461234 [21:49:30]1041 (16) - 0000000000871820 [21:49:30]1040 (4) - 260971 [21:49:30]1012 (4) - 18.08.2024 15:39 [21:49:30]1206 (1) - 0 [21:49:30]OFD Sender: Remove packet 260971 [21:49:30]ProducePacketName [21:49:30]name=ofd_packets/00260971 [21:49:30]NVStorageDeleteData [21:49:30]Write to MH i2c: 01 00 00 7F D5 54 [21:49:30]Write i2c OK [21:49:30]MH_I2C_Read... [21:49:30]Read from MH i2c: 01 [21:49:30]MH_I2C_Read... [21:49:30]Read from MH i2c: 01 07 00 [21:49:30]MH_I2C_Read... [21:49:30]Read from MH i2c: 01 07 00 7F D5 00 00 00 00 00 70 0C D7 [21:49:30]RasterBufferAndPrint [21:49:30]line [21:49:30]line [21:49:30]line [21:49:30]line [21:49:30]line [21:49:30]written 0, free lines is 3187 [21:49:30]MH_Cut [21:49:30]Write to MH i2c: D1 01 00 86 D5 01 2D [21:49:30]Write i2c OK [21:49:30]MH_I2C_Read... [21:49:30]Read from MH i2c: D1 [21:49:30]MH_I2C_Read... [21:49:30]Read from MH i2c: D1 01 00 [21:49:30]MH_I2C_Read... [21:49:30]Read from MH i2c: D1 01 00 86 D5 00 2C [21:49:30]Write to MH i2c: 01 00 00 87 D5 5C [21:49:30]Write i2c OK [21:49:30]MH_I2C_Read... [21:49:30]OFD Sender: No OFD packet to send [21:49:31]*** Cut start [21:49:31]*** Purtial cut [21:49:31]*** Stage 1: CUTSNS_PIN = 1 [21:49:33]Read from MH i2c: 01 [21:49:33]MH_I2C_Read... [21:49:33]*** Stop cut motor [21:49:33]*** Cut end [21:49:33]Read from MH i2c: 01 07 00 [21:49:33]MH_I2C_Read... [21:49:33]Read from MH i2c: 01 07 00 87 D5 00 00 00 00 00 FF 0F 71 [21:49:33]process_action close_receipt done [21:49:33]requested_data is exist [21:49:33]produce_requested_data [21:49:33]requested_item fm.sn is exist - process it [21:49:33]wFMCommunicate request_size=4 [21:49:33]MH_SAM_APDU [21:49:33]CAPDU: 80 11 00 00 [21:49:33]Write to MH i2c: E2 08 00 88 D5 80 11 00 00 00 00 00 00 D7 [21:49:33]Write i2c OK [21:49:33]MH_I2C_Read... [21:49:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:33]Read from MH i2c: E2 [21:49:33]MH_I2C_Read... [21:49:33]Read from MH i2c: E2 17 00 [21:49:33]MH_I2C_Read... [21:49:33]Read from MH i2c: E2 17 00 88 D5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 24 [21:49:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:49:33]wFMCommunicate OK [21:49:33]requested_item fd.num is exist - process it [21:49:33]SAM_PROTO_GetFieldsCounters [21:49:33]wFMCommunicate request_size=4 [21:49:33]MH_SAM_APDU [21:49:33]CAPDU: 80 13 00 00 [21:49:33]Write to MH i2c: E2 08 00 89 D5 80 13 00 00 00 00 00 00 DA [21:49:33]Write i2c OK [21:49:33]MH_I2C_Read... [21:49:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:49:33]Read from MH i2c: E2 [21:49:33]MH_I2C_Read... [21:49:33]Read from MH i2c: E2 62 00 [21:49:33]MH_I2C_Read... [21:49:33]Read from MH i2c: E2 62 00 89 D5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 6B FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 11 02 00 00 5E 04 04 00 11 02 00 00 57 04 04 00 12 02 00 00 19 04 04 00 00 00 00 00 90 00 5D [21:49: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 6B FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 11 02 00 00 5E 04 04 00 11 02 00 00 57 04 04 00 12 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:49:33]wFMCommunicate OK [21:49:33]SAM_PROTO_GetFieldsCounters done [21:49:33]requested_item shift.num is exist - process it [21:49:33]requested_item shift.opened is exist - process it [21:49:33]req_shift_opened [21:49:33]FM_GetShiftState [21:49:33]SAM_PROTO_GetShiftState [21:49:33]wFMCommunicate request_size=4 [21:49:33]MH_SAM_APDU [21:49:33]CAPDU: 80 13 01 00 [21:49:33]Write to MH i2c: E2 08 00 8A D5 80 13 01 00 00 00 00 00 DC [21:49:33]Write i2c OK [21:49:33]MH_I2C_Read... [21:49:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:33]Read from MH i2c: E2 [21:49:33]MH_I2C_Read... [21:49:33]Read from MH i2c: E2 0E 00 [21:49:33]MH_I2C_Read... [21:49:33]Read from MH i2c: E2 0E 00 8A D5 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 19 [21:49:33]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:49:33]wFMCommunicate OK [21:49:33]SAM_PROTO_GetShiftState done [21:49:33]FM_GetShiftState done [21:49:33]req_shift_opened done [21:49:33]requested_item shift.open_date is exist - process it [21:49:33]req_shift_open_date [21:49:33]req_shift_open_date done [21:49:33]produce_requested_data done [21:49:33]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260971,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [21:49:33]process_action_free close_receipt [21:49:33]json_value_free [21:49:33]json_value_free done [21:49:33]process_json_proto returns [21:49:33]Send response to host [21:49:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260971,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [21:49:33]free response buf [21:49:33]execute_script done [21:49:33]execute_script returns [21:49:33]free content buf [21:49:33]Sock 7.Close socket [21:49:33]Sock 7.Thread stoped [21:49:35]OFD Sender: No OFD packet to send [21:49:40]OFD Sender: No OFD packet to send [21:49:45]OFD Sender: No OFD packet to send [21:49:50]OFD Sender: No OFD packet to send [21:49:55]OFD Sender: No OFD packet to send [21:50:00]OFD Sender: No OFD packet to send [21:50:05]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:49]accept exits with 9 [21:50:49]New connection [21:50:49]New thread 3066473828 created [21:50:49]Thread 3066617188 joined [21:50:49]Waiting for new connection... [21:50:49] Sock 9.Parse request [21:50:49]Sock 9.Check first char [21:50:49]Sock 9.First char is OK [21:50:49]request: POST /json_proto HTTP/1.0 [21:50:49]Method: POST [21:50:49]URL: /json_proto [21:50:49]Method is POST - this is cgi request [21:50:49]url: /json_proto [21:50:49]query_string will be loaded in cgi processing [21:50:49]execute_cgi json_proto POST (null) [21:50:49]execute_cgi path=json_proto method=POST [21:50:49]POST find Content-Length [21:50:49]Host: 172.17.55.133:8080 [21:50:49]Content-Length: 801 [21:50:49]Content-Type: application/json [21:50:49] [21:50:49]POST finish read [21:50:49]Found Content-Length = 801 [21:50:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:50:49]execute_script... [21:50: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)1036525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:50:49]POST & json_proto [21:50:49]process_json_proto [21:50:49]json parsed OK: [21:50:49]protocol is kg_v1.0 [21:50:49]action value=close_receipt [21:50:49]process_action close_receipt [21:50:49]cmd_close_receipt [21:50:49]MH_GetDate [21:50:49]Write to MH i2c: F0 00 00 8B D5 4F [21:50:49]Write i2c OK [21:50:49]MH_I2C_Read... [21:50:49]Read from MH i2c: F0 [21:50:49]MH_I2C_Read... [21:50:49]Read from MH i2c: F0 09 00 [21:50:49]MH_I2C_Read... [21:50:49]Read from MH i2c: F0 09 00 8B D5 00 C0 6C C2 66 34 48 D8 65 65 [21:50:49]GetLastDocTimeStamp 1724017775 [21:50:49]current date 1724017856 [21:50:49]FM_GetShiftState [21:50:49]SAM_PROTO_GetShiftState [21:50:49]wFMCommunicate request_size=4 [21:50:49]MH_SAM_APDU [21:50:49]CAPDU: 80 13 01 00 [21:50:49]Write to MH i2c: E2 08 00 8C D5 80 13 01 00 00 00 00 00 DE [21:50:49]Write i2c OK [21:50:49]MH_I2C_Read... [21:50:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:49]Read from MH i2c: E2 [21:50:49]MH_I2C_Read... [21:50:49]Read from MH i2c: E2 0E 00 [21:50:49]MH_I2C_Read... [21:50:49]Read from MH i2c: E2 0E 00 8C D5 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 1B [21:50:49]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:50:49]wFMCommunicate OK [21:50:49]SAM_PROTO_GetShiftState done [21:50:49]FM_GetShiftState done [21:50:49]opened in 1723940556 [21:50:49]opened+sec_in_day 1724026956 [21:50:49]quantity*price = 40002 [21:50:49]sum+1 = 40003 [21:50:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.02 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.02 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 530 18.08.2024 21:50 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260972 ФПД: 271237129982457 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T215056&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260972&fm=271237129982457&tin=02508201610067®Number=0000000000091865&sum=40002 [21:50:50]StoreToDocumentArchive [21:50:50]shift 449 fd 260972 [21:50:50]save to /storage/0449/doc_00260972 [21:50:50]save last doc name /storage/0449/doc_00260972 to /storage/kkm_last_doc_name [21:50:50]save OK [21:50:50]Clear old archive folders... [21:50:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:50:50]tlvbuf is 0055F970 [21:50:50]SAM_PROTO_ClearQueue [21:50:50]wFMCommunicate request_size=4 [21:50:50]MH_SAM_APDU [21:50:50]CAPDU: 80 09 00 00 [21:50:50]Write to MH i2c: E2 08 00 99 D5 80 09 00 00 00 00 00 00 E0 [21:50:50]Write i2c OK [21:50:50]MH_I2C_Read... [21:50:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:50:50]Read from MH i2c: E2 [21:50:50]MH_I2C_Read... [21:50:50]Read from MH i2c: E2 03 00 [21:50:50]MH_I2C_Read... [21:50:50]Read from MH i2c: E2 03 00 99 D5 00 90 00 E2 [21:50:50]RAPDU: 90 00 [21:50:50]wFMCommunicate OK [21:50:50]SAM_PROTO_ClearQueue done [21:50:50]KKMCreateOFDPacket [21:50:50]OFDProtocolAddRootSTLVToBuf [21:50:50]FM_MakeSignedData [21:50:50]FM_MakeSignedData [21:50:50]SAM_PROTO_SignData [21:50:50]wFMCommunicate request_size=4 [21:50:50]MH_SAM_APDU [21:50:50]CAPDU: 80 0D 01 02 [21:50:50]Write to MH i2c: E2 08 00 9A D5 80 0D 01 02 00 00 00 00 E8 [21:50:50]Write i2c OK [21:50:50]MH_I2C_Read... [21:50:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:50:50]Read from MH i2c: E2 [21:50:50]MH_I2C_Read... [21:50:50]Read from MH i2c: E2 03 00 [21:50:50]MH_I2C_Read... [21:50:50]Read from MH i2c: E2 03 00 9A D5 00 90 00 E3 [21:50:50]RAPDU: 90 00 [21:50:50]wFMCommunicate OK [21:50:50]wFMCommunicate request_size=255 [21:50:50]MH_SAM_APDU [21:50:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 02 00 00 F4 03 04 00 C0 6C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6C FB 03 00 35 04 06 00 F6 [21:50:50]Write to MH i2c: E2 02 01 9B D5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 02 00 00 F4 03 04 00 C0 6C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6C FB 03 00 35 04 06 00 F6 00 00 D8 [21:50:50]Write i2c OK [21:50:50]MH_I2C_Read... [21:50:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:51]Read from MH i2c: E2 [21:50:51]MH_I2C_Read... [21:50:51]Read from MH i2c: E2 03 00 [21:50:51]MH_I2C_Read... [21:50:51]Read from MH i2c: E2 03 00 9B D5 00 90 00 E4 [21:50:51]RAPDU: 90 00 [21:50:51]wFMCommunicate OK [21:50:51]wFMCommunicate request_size=10 [21:50:51]MH_SAM_APDU [21:50:51]CAPDU: 80 0D 02 02 05 B0 50 C8 51 F9 [21:50:51]Write to MH i2c: E2 0D 00 9C D5 80 0D 02 02 05 00 B0 50 C8 51 F9 00 00 07 [21:50:51]Write i2c OK [21:50:51]MH_I2C_Read... [21:50:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:51]Read from MH i2c: E2 [21:50:51]MH_I2C_Read... [21:50:51]Read from MH i2c: E2 03 00 [21:50:51]MH_I2C_Read... [21:50:51]Read from MH i2c: E2 03 00 9C D5 00 90 00 E5 [21:50:51]RAPDU: 90 00 [21:50:51]wFMCommunicate OK [21:50:51]wFMCommunicate request_size=4 [21:50:51]MH_SAM_APDU [21:50:51]CAPDU: 80 0D 03 02 [21:50:51]Write to MH i2c: E2 08 00 9D D5 80 0D 03 02 00 00 00 00 ED [21:50:51]Write i2c OK [21:50:51]MH_I2C_Read... [21:50:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:50:51]Read from MH i2c: E2 [21:50:51]MH_I2C_Read... [21:50:51]Read from MH i2c: E2 0B 00 [21:50:51]MH_I2C_Read... [21:50:51]Read from MH i2c: E2 0B 00 9D D5 00 08 0D EE 40 DD 0C EB D0 90 00 D5 [21:50:51]RAPDU: 08 0D EE 40 DD 0C EB D0 90 00 [21:50:51]wFMCommunicate OK [21:50:51]SAM_PROTO_SignData done [21:50:51]FM_MakeSignedData done [21:50:51]CreateOFDProtocolMessage [21:50:51]wFMCommunicate request_size=4 [21:50:51]MH_SAM_APDU [21:50:51]CAPDU: 80 11 00 00 [21:50:51]Write to MH i2c: E2 08 00 9E D5 80 11 00 00 00 00 00 00 ED [21:50:51]Write i2c OK [21:50:51]MH_I2C_Read... [21:50:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:51]Read from MH i2c: E2 [21:50:51]MH_I2C_Read... [21:50:51]Read from MH i2c: E2 17 00 [21:50:51]MH_I2C_Read... [21:50:51]Read from MH i2c: E2 17 00 9E D5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 3A [21:50:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:50:51]wFMCommunicate OK [21:50:51]CreateOFDProtocolMessage done [21:50:51]OFDSenderStorePacket 260972 [21:50:51]StoreOFDPacket docnum=260972 [21:50:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 CE 2B 07 01 B6 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 02 00 00 F4 03 04 00 C0 6C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6C FB 03 00 35 04 06 00 F6 B0 50 C8 51 F9 08 0D EE 40 DD 0C EB D0 [21:50:51]CheckFolder [21:50:51]dirname=/storage/ofd_packets [21:50:51]CheckFolder done [21:50:51]ProducePacketName [21:50:51]name=ofd_packets/00260972 [21:50:51]NVStorageSaveData ofd_packets/00260972 [21:50:51]File name is /storage/ofd_packets/00260972 [21:50:51]Write 301 bytes [21:50:51]NVStorageSaveData done [21:50:51]OFDSenderStorePacket done [21:50:51]KKMCreateOFDPacket done [21:50:51]NVStorageSaveData kkm_last_timestamp [21:50:51]File name is /storage/kkm_last_timestamp [21:50:51]Write 4 bytes [21:50:51]NVStorageSaveData done [21:50:51]ExternCall_PrintAddStr [21:50:51]wPrintStart [21:50:51]Write to MH i2c: 01 00 00 9F D5 74 [21:50:51]Write i2c OK [21:50:51]MH_I2C_Read... [21:50:51]Read from MH i2c: 01 [21:50:51]MH_I2C_Read... [21:50:51]Read from MH i2c: 01 07 00 [21:50:51]MH_I2C_Read... [21:50:51]Read from MH i2c: 01 07 00 9F D5 00 00 00 00 00 FF 0F 89 [21:50:51]RasterBufferAndPrint [21:50:51]line Счет N : (1)1036525 [21:50:51]line ИНН: 02508201610067 [21:50:51]line Контрольно-Кассовый Чек [21:50:51]line ПРОДАЖА [21:50:51]line ТРК (МРК, ГНК) : 42 [21:50:51]line Товар: 2710124130 [21:50:51]line Аи-92-К-5 [21:50:51]line 5.900 * 67.80 [21:50:51]line = 400.02 [21:50:51]line НДС 12% НСП 1% [21:50:51]line > о реализуемом товаре [21:50:51]line ИТОГО: 400.02 [21:50:51]line НСП 1% : 3.54 [21:50:51]line НДС 12% : 42.48 [21:50:51]line Наличными: 0.00 [21:50:51]line Безнал.: 400.02 [21:50:51]line Место: АЗС № 94 "Партнер Нефть" [21:50:51]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [21:50:51]line СНО: Общий режим [21:50:51]line Чек 530 18.08.2024 21:50 [21:50:51]line Смена: 449 ФФД: 1.0 [21:50:51]line ЗНМ: 0300000099 [21:50:51]line РНМ: 0000000000091865 [21:50:51]line Версия ККМ: 001 [21:50:51]line Платежная система: O! деньги [21:50:51]line ФМ: 0000000000871820 [21:50:51]line ФД: 260972 [21:50:51]line ФПД: 271237129982457 [21:50:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T215056&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260972&fm=271237129982457&tin=02508201610067®Number=0000000000091865&sum=40002 [21:50:51]OFD Sender: Processing packet 260972 [packets to send 192, broken 191] [21:50:51]ProducePacketName [21:50:51]name=ofd_packets/00260972 [21:50:51]OFD Sender: To server: pG, [21:50:51]CommunicateWithHost lk.salyk.kg:30040 [21:50:51]ConnectInit lk.salyk.kg [21:50:51]written 0, free lines is 4095 [21:50:51]Connected sock=10 [21:50: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 30 0F 01 00 00 CE 2B 07 01 B6 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 02 00 00 F4 03 04 00 C0 6C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6C FB 03 00 35 04 06 00 F6 B0 50 C8 51 F9 08 0D EE 40 DD 0C EB D0 [21:50: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 30 4F 00 00 00 CF CB 47 00 BB 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 30 10 04 04 00 6C FB 03 00 F4 03 04 00 14 16 C2 66 B6 04 01 00 00 C2 EE 29 F6 78 3F FC 2B [21:50:51]CommunicateWithHost err = 0 [21:50:51]CheckOFDResponse [21:50:51]1017 (14) - 77093643461234 [21:50:51]1041 (16) - 0000000000871820 [21:50:51]1040 (4) - 260972 [21:50:51]1012 (4) - 18.08.2024 15:41 [21:50:51]1206 (1) - 0 [21:50:51]OFD Sender: Remove packet 260972 [21:50:51]ProducePacketName [21:50:51]name=ofd_packets/00260972 [21:50:51]NVStorageDeleteData [21:50:52]Write to MH i2c: 01 00 00 C9 D5 9E [21:50:52]Write i2c OK [21:50:52]MH_I2C_Read... [21:50:52]Read from MH i2c: 01 [21:50:52]MH_I2C_Read... [21:50:52]Read from MH i2c: 01 07 00 [21:50:52]MH_I2C_Read... [21:50:52]Read from MH i2c: 01 07 00 C9 D5 00 00 00 00 00 8B 0C 3C [21:50:52]RasterBufferAndPrint [21:50:52]line [21:50:52]line [21:50:52]line [21:50:52]line [21:50:52]line [21:50:52]written 0, free lines is 3214 [21:50:52]MH_Cut [21:50:52]Write to MH i2c: D1 01 00 D0 D5 01 77 [21:50:52]Write i2c OK [21:50:52]MH_I2C_Read... [21:50:52]Read from MH i2c: D1 [21:50:52]MH_I2C_Read... [21:50:52]Read from MH i2c: D1 01 00 [21:50:52]MH_I2C_Read... [21:50:52]Read from MH i2c: D1 01 00 D0 D5 00 76 [21:50:52]Write to MH i2c: 01 00 00 D1 D5 A6 [21:50:52]Write i2c OK [21:50:52]MH_I2C_Read... [21:50:52]OFD Sender: No OFD packet to send [21:50:53]*** Cut start [21:50:53]*** Purtial cut [21:50:53]*** Stage 1: CUTSNS_PIN = 1 [21:50:55]Read from MH i2c: 01 [21:50:55]MH_I2C_Read... [21:50:55]*** Stop cut motor [21:50:55]*** Cut end [21:50:55]Read from MH i2c: 01 07 00 [21:50:55]MH_I2C_Read... [21:50:55]Read from MH i2c: 01 07 00 D1 D5 00 00 00 00 00 FF 0F BB [21:50:55]process_action close_receipt done [21:50:55]requested_data is exist [21:50:55]produce_requested_data [21:50:55]requested_item fm.sn is exist - process it [21:50:55]wFMCommunicate request_size=4 [21:50:55]MH_SAM_APDU [21:50:55]CAPDU: 80 11 00 00 [21:50:55]Write to MH i2c: E2 08 00 D2 D5 80 11 00 00 00 00 00 00 21 [21:50:55]Write i2c OK [21:50:55]MH_I2C_Read... [21:50:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:55]Read from MH i2c: E2 [21:50:55]MH_I2C_Read... [21:50:55]Read from MH i2c: E2 17 00 [21:50:55]MH_I2C_Read... [21:50:55]Read from MH i2c: E2 17 00 D2 D5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 6E [21:50:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:50:55]wFMCommunicate OK [21:50:55]requested_item fd.num is exist - process it [21:50:55]SAM_PROTO_GetFieldsCounters [21:50:55]wFMCommunicate request_size=4 [21:50:55]MH_SAM_APDU [21:50:55]CAPDU: 80 13 00 00 [21:50:55]Write to MH i2c: E2 08 00 D3 D5 80 13 00 00 00 00 00 00 24 [21:50:55]Write i2c OK [21:50:55]MH_I2C_Read... [21:50:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:50:55]Read from MH i2c: E2 [21:50:55]MH_I2C_Read... [21:50:55]Read from MH i2c: E2 62 00 [21:50:55]MH_I2C_Read... [21:50:55]Read from MH i2c: E2 62 00 D3 D5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 6C FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 12 02 00 00 5E 04 04 00 12 02 00 00 57 04 04 00 13 02 00 00 19 04 04 00 00 00 00 00 90 00 AB [21:50: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 6C FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 12 02 00 00 5E 04 04 00 12 02 00 00 57 04 04 00 13 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:50:55]wFMCommunicate OK [21:50:55]SAM_PROTO_GetFieldsCounters done [21:50:55]requested_item shift.num is exist - process it [21:50:55]requested_item shift.opened is exist - process it [21:50:55]req_shift_opened [21:50:55]FM_GetShiftState [21:50:55]SAM_PROTO_GetShiftState [21:50:55]wFMCommunicate request_size=4 [21:50:55]MH_SAM_APDU [21:50:55]CAPDU: 80 13 01 00 [21:50:55]Write to MH i2c: E2 08 00 D4 D5 80 13 01 00 00 00 00 00 26 [21:50:55]Write i2c OK [21:50:55]MH_I2C_Read... [21:50:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:55]Read from MH i2c: E2 [21:50:55]MH_I2C_Read... [21:50:55]Read from MH i2c: E2 0E 00 [21:50:55]MH_I2C_Read... [21:50:55]Read from MH i2c: E2 0E 00 D4 D5 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 63 [21:50:55]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:50:55]wFMCommunicate OK [21:50:55]SAM_PROTO_GetShiftState done [21:50:55]FM_GetShiftState done [21:50:55]req_shift_opened done [21:50:55]requested_item shift.open_date is exist - process it [21:50:55]req_shift_open_date [21:50:55]req_shift_open_date done [21:50:55]produce_requested_data done [21:50:55]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260972,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [21:50:55]process_action_free close_receipt [21:50:55]json_value_free [21:50:55]json_value_free done [21:50:55]process_json_proto returns [21:50:55]Send response to host [21:50:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260972,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [21:50:55]free response buf [21:50:55]execute_script done [21:50:55]execute_script returns [21:50:55]free content buf [21:50:55]Sock 9.Close socket [21:50:55]Sock 9.Thread stoped [21:50:57]OFD Sender: No OFD packet to send [21:51:02]OFD Sender: No OFD packet to send [21:51:07]OFD Sender: No OFD packet to send [21:51:12]OFD Sender: No OFD packet to send [21:51:16]accept exits with 7 [21:51:16]New connection [21:51:16]New thread 3066617188 created [21:51:16]Thread 3066473828 joined [21:51:16]Waiting for new connection... [21:51:16] Sock 7.Parse request [21:51:16]Sock 7.Check first char [21:51:16]Sock 7.First char is OK [21:51:16]request: POST /json_proto HTTP/1.0 [21:51:16]Method: POST [21:51:16]URL: /json_proto [21:51:16]Method is POST - this is cgi request [21:51:16]url: /json_proto [21:51:16]query_string will be loaded in cgi processing [21:51:16]execute_cgi json_proto POST (null) [21:51:16]execute_cgi path=json_proto method=POST [21:51:16]POST find Content-Length [21:51:16]Host: 172.17.55.133:8080 [21:51:16]Content-Length: 678 [21:51:16]Content-Type: application/json [21:51:16] [21:51:16]POST finish read [21:51:16]Found Content-Length = 678 [21:51:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:51:16]execute_script... [21:51: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)1036526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:51:16]POST & json_proto [21:51:16]process_json_proto [21:51:16]json parsed OK: [21:51:16]protocol is kg_v1.0 [21:51:16]action value=close_receipt [21:51:16]process_action close_receipt [21:51:16]cmd_close_receipt [21:51:16]MH_GetDate [21:51:16]Write to MH i2c: F0 00 00 D5 D5 99 [21:51:16]Write i2c OK [21:51:16]MH_I2C_Read... [21:51:16]Read from MH i2c: F0 [21:51:16]MH_I2C_Read... [21:51:16]Read from MH i2c: F0 09 00 [21:51:16]MH_I2C_Read... [21:51:16]Read from MH i2c: F0 09 00 D5 D5 00 DB 6C C2 66 34 48 D8 65 CA [21:51:16]GetLastDocTimeStamp 1724017856 [21:51:16]current date 1724017883 [21:51:16]FM_GetShiftState [21:51:16]SAM_PROTO_GetShiftState [21:51:16]wFMCommunicate request_size=4 [21:51:16]MH_SAM_APDU [21:51:16]CAPDU: 80 13 01 00 [21:51:16]Write to MH i2c: E2 08 00 D6 D5 80 13 01 00 00 00 00 00 28 [21:51:16]Write i2c OK [21:51:16]MH_I2C_Read... [21:51:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:16]Read from MH i2c: E2 [21:51:16]MH_I2C_Read... [21:51:16]Read from MH i2c: E2 0E 00 [21:51:16]MH_I2C_Read... [21:51:16]Read from MH i2c: E2 0E 00 D6 D5 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 65 [21:51:16]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:51:16]wFMCommunicate OK [21:51:16]SAM_PROTO_GetShiftState done [21:51:16]FM_GetShiftState done [21:51:16]opened in 1723940556 [21:51:16]opened+sec_in_day 1724026956 [21:51:16]quantity*price = 50036 [21:51:16]sum+1 = 50037 [21:51:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 531 18.08.2024 21:51 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260973 ФПД: 29690202789214 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T215123&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260973&fm=29690202789214&tin=02508201610067®Number=0000000000091865&sum=50000 [21:51:17]StoreToDocumentArchive [21:51:17]shift 449 fd 260973 [21:51:17]save to /storage/0449/doc_00260973 [21:51:17]save last doc name /storage/0449/doc_00260973 to /storage/kkm_last_doc_name [21:51:17]save OK [21:51:17]Clear old archive folders... [21:51:17]OFD Sender: No OFD packet to send [21:51:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:51:17]tlvbuf is 0052AB50 [21:51:17]SAM_PROTO_ClearQueue [21:51:17]wFMCommunicate request_size=4 [21:51:17]MH_SAM_APDU [21:51:17]CAPDU: 80 09 00 00 [21:51:17]Write to MH i2c: E2 08 00 E3 D5 80 09 00 00 00 00 00 00 2A [21:51:17]Write i2c OK [21:51:17]MH_I2C_Read... [21:51:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:51:17]Read from MH i2c: E2 [21:51:17]MH_I2C_Read... [21:51:17]Read from MH i2c: E2 03 00 [21:51:17]MH_I2C_Read... [21:51:17]Read from MH i2c: E2 03 00 E3 D5 00 90 00 2C [21:51:17]RAPDU: 90 00 [21:51:17]wFMCommunicate OK [21:51:17]SAM_PROTO_ClearQueue done [21:51:17]KKMCreateOFDPacket [21:51:17]OFDProtocolAddRootSTLVToBuf [21:51:17]FM_MakeSignedData [21:51:17]FM_MakeSignedData [21:51:17]SAM_PROTO_SignData [21:51:17]wFMCommunicate request_size=4 [21:51:17]MH_SAM_APDU [21:51:17]CAPDU: 80 0D 01 02 [21:51:17]Write to MH i2c: E2 08 00 E4 D5 80 0D 01 02 00 00 00 00 32 [21:51:17]Write i2c OK [21:51:17]MH_I2C_Read... [21:51:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:51:17]Read from MH i2c: E2 [21:51:17]MH_I2C_Read... [21:51:17]Read from MH i2c: E2 03 00 [21:51:17]MH_I2C_Read... [21:51:17]Read from MH i2c: E2 03 00 E4 D5 00 90 00 2D [21:51:17]RAPDU: 90 00 [21:51:17]wFMCommunicate OK [21:51:17]wFMCommunicate request_size=255 [21:51:17]MH_SAM_APDU [21:51:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 13 02 00 00 F4 03 04 00 DB 6C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6D FB 03 00 35 04 06 00 1B [21:51:17]Write to MH i2c: E2 02 01 E5 D5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 13 02 00 00 F4 03 04 00 DB 6C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6D FB 03 00 35 04 06 00 1B 00 00 7B [21:51:17]Write i2c OK [21:51:17]MH_I2C_Read... [21:51:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:17]Read from MH i2c: E2 [21:51:17]MH_I2C_Read... [21:51:17]Read from MH i2c: E2 03 00 [21:51:17]MH_I2C_Read... [21:51:17]Read from MH i2c: E2 03 00 E5 D5 00 90 00 2E [21:51:17]RAPDU: 90 00 [21:51:17]wFMCommunicate OK [21:51:17]wFMCommunicate request_size=10 [21:51:17]MH_SAM_APDU [21:51:17]CAPDU: 80 0D 02 02 05 00 C9 FD 95 5E [21:51:17]Write to MH i2c: E2 0D 00 E6 D5 80 0D 02 02 05 00 00 C9 FD 95 5E 00 00 F8 [21:51:17]Write i2c OK [21:51:17]MH_I2C_Read... [21:51:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:17]Read from MH i2c: E2 [21:51:17]MH_I2C_Read... [21:51:17]Read from MH i2c: E2 03 00 [21:51:17]MH_I2C_Read... [21:51:17]Read from MH i2c: E2 03 00 E6 D5 00 90 00 2F [21:51:17]RAPDU: 90 00 [21:51:17]wFMCommunicate OK [21:51:17]wFMCommunicate request_size=4 [21:51:17]MH_SAM_APDU [21:51:17]CAPDU: 80 0D 03 02 [21:51:17]Write to MH i2c: E2 08 00 E7 D5 80 0D 03 02 00 00 00 00 37 [21:51:17]Write i2c OK [21:51:17]MH_I2C_Read... [21:51:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:51:18]Read from MH i2c: E2 [21:51:18]MH_I2C_Read... [21:51:18]Read from MH i2c: E2 0B 00 [21:51:18]MH_I2C_Read... [21:51:18]Read from MH i2c: E2 0B 00 E7 D5 00 A7 46 B1 BD 40 31 23 79 90 00 A0 [21:51:18]RAPDU: A7 46 B1 BD 40 31 23 79 90 00 [21:51:18]wFMCommunicate OK [21:51:18]SAM_PROTO_SignData done [21:51:18]FM_MakeSignedData done [21:51:18]CreateOFDProtocolMessage [21:51:18]wFMCommunicate request_size=4 [21:51:18]MH_SAM_APDU [21:51:18]CAPDU: 80 11 00 00 [21:51:18]Write to MH i2c: E2 08 00 E8 D5 80 11 00 00 00 00 00 00 37 [21:51:18]Write i2c OK [21:51:18]MH_I2C_Read... [21:51:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:18]Read from MH i2c: E2 [21:51:18]MH_I2C_Read... [21:51:18]Read from MH i2c: E2 17 00 [21:51:18]MH_I2C_Read... [21:51:18]Read from MH i2c: E2 17 00 E8 D5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 84 [21:51:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:51:18]wFMCommunicate OK [21:51:18]CreateOFDProtocolMessage done [21:51:18]OFDSenderStorePacket 260973 [21:51:18]StoreOFDPacket docnum=260973 [21:51:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 85 87 07 01 F9 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 13 02 00 00 F4 03 04 00 DB 6C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6D FB 03 00 35 04 06 00 1B 00 C9 FD 95 5E A7 46 B1 BD 40 31 23 79 [21:51:18]CheckFolder [21:51:18]dirname=/storage/ofd_packets [21:51:18]CheckFolder done [21:51:18]ProducePacketName [21:51:18]name=ofd_packets/00260973 [21:51:18]NVStorageSaveData ofd_packets/00260973 [21:51:18]File name is /storage/ofd_packets/00260973 [21:51:18]Write 301 bytes [21:51:18]NVStorageSaveData done [21:51:18]OFDSenderStorePacket done [21:51:18]KKMCreateOFDPacket done [21:51:18]NVStorageSaveData kkm_last_timestamp [21:51:18]File name is /storage/kkm_last_timestamp [21:51:18]Write 4 bytes [21:51:18]NVStorageSaveData done [21:51:18]ExternCall_PrintAddStr [21:51:18]wPrintStart [21:51:18]Write to MH i2c: 01 00 00 E9 D5 BE [21:51:18]Write i2c OK [21:51:18]MH_I2C_Read... [21:51:18]Read from MH i2c: 01 [21:51:18]MH_I2C_Read... [21:51:18]Read from MH i2c: 01 07 00 [21:51:18]MH_I2C_Read... [21:51:18]Read from MH i2c: 01 07 00 E9 D5 00 00 00 00 00 FF 0F D3 [21:51:18]RasterBufferAndPrint [21:51:18]line Счет N : (1)1036526 [21:51:18]line ИНН: 02508201610067 [21:51:18]line Контрольно-Кассовый Чек [21:51:18]line ПРОДАЖА [21:51:18]line ТРК (МРК, ГНК) : 22 [21:51:18]line Товар: 2710124130 [21:51:18]line Аи-92-К-5 [21:51:18]line 7.380 * 67.80 [21:51:18]line = 500.36 [21:51:18]line НДС 12% НСП 1% [21:51:18]line > о реализуемом товаре [21:51:18]line ОКРУГЛЕНИЕ: -0.36 [21:51:18]line ИТОГО: 500.00 [21:51:18]line Внесено: 500.00 [21:51:18]line СДАЧА: 0.00 [21:51:18]line НСП 1% : 4.43 [21:51:18]line НДС 12% : 53.14 [21:51:18]line Наличными: 500.00 [21:51:18]line Безнал.: 0.00 [21:51:18]line Место: АЗС № 94 "Партнер Нефть" [21:51:18]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [21:51:18]line СНО: Общий режим [21:51:18]line Чек 531 18.08.2024 21:51 [21:51:18]line Смена: 449 ФФД: 1.0 [21:51:18]line ЗНМ: 0300000099 [21:51:18]line РНМ: 0000000000091865 [21:51:18]line Версия ККМ: 001 [21:51:18]line ФМ: 0000000000871820 [21:51:18]line ФД: 260973 [21:51:18]line ФПД: 29690202789214 [21:51:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T215123&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260973&fm=29690202789214&tin=02508201610067®Number=0000000000091865&sum=50000 [21:51:18]OFD Sender: Processing packet 260973 [packets to send 192, broken 191] [21:51:18]ProducePacketName [21:51:18]name=ofd_packets/00260973 [21:51:18]OFD Sender: To server: pG, [21:51:18]CommunicateWithHost lk.salyk.kg:30040 [21:51:18]ConnectInit lk.salyk.kg [21:51:18]written 0, free lines is 4095 [21:51:18]Connected sock=10 [21:51: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 30 0F 01 00 00 85 87 07 01 F9 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 13 02 00 00 F4 03 04 00 DB 6C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6D FB 03 00 35 04 06 00 1B 00 C9 FD 95 5E A7 46 B1 BD 40 31 23 79 [21:51: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 30 4F 00 00 00 7E E5 47 00 78 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6D FB 03 00 F4 03 04 00 2F 16 C2 66 B6 04 01 00 00 99 39 68 DD 7D A9 19 82 [21:51:18]CommunicateWithHost err = 0 [21:51:18]CheckOFDResponse [21:51:18]1017 (14) - 77093643461234 [21:51:18]1041 (16) - 0000000000871820 [21:51:18]1040 (4) - 260973 [21:51:18]1012 (4) - 18.08.2024 15:41 [21:51:18]1206 (1) - 0 [21:51:18]OFD Sender: Remove packet 260973 [21:51:18]ProducePacketName [21:51:18]name=ofd_packets/00260973 [21:51:18]NVStorageDeleteData [21:51:18]Write to MH i2c: 01 00 00 14 D6 EA [21:51:18]Write i2c OK [21:51:18]MH_I2C_Read... [21:51:18]Read from MH i2c: 01 [21:51:18]MH_I2C_Read... [21:51:18]Read from MH i2c: 01 07 00 [21:51:18]MH_I2C_Read... [21:51:18]Read from MH i2c: 01 07 00 14 D6 00 00 00 00 00 70 0C 6D [21:51:18]RasterBufferAndPrint [21:51:18]line [21:51:18]line [21:51:18]line [21:51:18]line [21:51:18]line [21:51:18]written 0, free lines is 3187 [21:51:18]MH_Cut [21:51:18]Write to MH i2c: D1 01 00 1B D6 01 C3 [21:51:18]Write i2c OK [21:51:18]MH_I2C_Read... [21:51:18]Read from MH i2c: D1 [21:51:18]MH_I2C_Read... [21:51:18]Read from MH i2c: D1 01 00 [21:51:18]MH_I2C_Read... [21:51:18]Read from MH i2c: D1 01 00 1B D6 00 C2 [21:51:18]Write to MH i2c: 01 00 00 1C D6 F2 [21:51:18]Write i2c OK [21:51:18]MH_I2C_Read... [21:51:19]OFD Sender: No OFD packet to send [21:51:20]*** Cut start [21:51:20]*** Purtial cut [21:51:20]*** Stage 1: CUTSNS_PIN = 1 [21:51:22]Read from MH i2c: 01 [21:51:22]MH_I2C_Read... [21:51:22]*** Stop cut motor [21:51:22]*** Cut end [21:51:22]Read from MH i2c: 01 07 00 [21:51:22]MH_I2C_Read... [21:51:22]Read from MH i2c: 01 07 00 1C D6 00 00 00 00 00 FF 0F 07 [21:51:22]process_action close_receipt done [21:51:22]requested_data is exist [21:51:22]produce_requested_data [21:51:22]requested_item fm.sn is exist - process it [21:51:22]wFMCommunicate request_size=4 [21:51:22]MH_SAM_APDU [21:51:22]CAPDU: 80 11 00 00 [21:51:22]Write to MH i2c: E2 08 00 1D D6 80 11 00 00 00 00 00 00 6D [21:51:22]Write i2c OK [21:51:22]MH_I2C_Read... [21:51:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:22]Read from MH i2c: E2 [21:51:22]MH_I2C_Read... [21:51:22]Read from MH i2c: E2 17 00 [21:51:22]MH_I2C_Read... [21:51:22]Read from MH i2c: E2 17 00 1D D6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 BA [21:51:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [21:51:22]wFMCommunicate OK [21:51:22]requested_item fd.num is exist - process it [21:51:22]SAM_PROTO_GetFieldsCounters [21:51:22]wFMCommunicate request_size=4 [21:51:22]MH_SAM_APDU [21:51:22]CAPDU: 80 13 00 00 [21:51:22]Write to MH i2c: E2 08 00 1E D6 80 13 00 00 00 00 00 00 70 [21:51:22]Write i2c OK [21:51:22]MH_I2C_Read... [21:51:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:51:22]Read from MH i2c: E2 [21:51:22]MH_I2C_Read... [21:51:22]Read from MH i2c: E2 62 00 [21:51:22]MH_I2C_Read... [21:51:22]Read from MH i2c: E2 62 00 1E D6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 6D FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 13 02 00 00 5E 04 04 00 13 02 00 00 57 04 04 00 14 02 00 00 19 04 04 00 00 00 00 00 90 00 FB [21:51: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 6D FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 13 02 00 00 5E 04 04 00 13 02 00 00 57 04 04 00 14 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:51:22]wFMCommunicate OK [21:51:22]SAM_PROTO_GetFieldsCounters done [21:51:22]requested_item shift.num is exist - process it [21:51:22]requested_item shift.opened is exist - process it [21:51:22]req_shift_opened [21:51:22]FM_GetShiftState [21:51:22]SAM_PROTO_GetShiftState [21:51:22]wFMCommunicate request_size=4 [21:51:22]MH_SAM_APDU [21:51:22]CAPDU: 80 13 01 00 [21:51:22]Write to MH i2c: E2 08 00 1F D6 80 13 01 00 00 00 00 00 72 [21:51:22]Write i2c OK [21:51:22]MH_I2C_Read... [21:51:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:22]Read from MH i2c: E2 [21:51:22]MH_I2C_Read... [21:51:22]Read from MH i2c: E2 0E 00 [21:51:22]MH_I2C_Read... [21:51:22]Read from MH i2c: E2 0E 00 1F D6 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 AF [21:51:22]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [21:51:22]wFMCommunicate OK [21:51:22]SAM_PROTO_GetShiftState done [21:51:22]FM_GetShiftState done [21:51:22]req_shift_opened done [21:51:22]requested_item shift.open_date is exist - process it [21:51:22]req_shift_open_date [21:51:22]req_shift_open_date done [21:51:22]produce_requested_data done [21:51:22]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260973,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [21:51:22]process_action_free close_receipt [21:51:22]json_value_free [21:51:22]json_value_free done [21:51:22]process_json_proto returns [21:51:22]Send response to host [21:51:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260973,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [21:51:22]free response buf [21:51:22]execute_script done [21:51:22]execute_script returns [21:51:22]free content buf [21:51:22]Sock 7.Close socket [21:51:22]Sock 7.Thread stoped [21:51:24]OFD Sender: No OFD packet to send [21:51:29]OFD Sender: No OFD packet to send [21:51:34]OFD Sender: No OFD packet to send [21:51:39]OFD Sender: No OFD packet to send [21:51:44]OFD Sender: No OFD packet to send [21:51:49]OFD Sender: No OFD packet to send [21:51:54]OFD Sender: No OFD packet to send [21:51:59]OFD Sender: No OFD packet to send [21:52:04]OFD Sender: No OFD packet to send [21:52:09]OFD Sender: No OFD packet to send [21:52:14]OFD Sender: No OFD packet to send [21:52:19]OFD Sender: No OFD packet to send [21:52:24]OFD Sender: No OFD packet to send [21:52:29]OFD Sender: No OFD packet to send [21:52:34]OFD Sender: No OFD packet to send [21:52:39]OFD Sender: No OFD packet to send [21:52:44]OFD Sender: No OFD packet to send [21:52:49]OFD Sender: No OFD packet to send [21:52:54]OFD Sender: No OFD packet to send [21:52:59]OFD Sender: No OFD packet to send [21:53:04]OFD Sender: No OFD packet to send [21:53:09]OFD Sender: No OFD packet to send [21:53:14]OFD Sender: No OFD packet to send [21:53:19]OFD Sender: No OFD packet to send [21:53:24]OFD Sender: No OFD packet to send [21:53:29]OFD Sender: No OFD packet to send [21:53:34]OFD Sender: No OFD packet to send [21:53:39]OFD Sender: No OFD packet to send [21:53:44]OFD Sender: No OFD packet to send [21:53:49]OFD Sender: No OFD packet to send [21:53:54]OFD Sender: No OFD packet to send [21:53:59]OFD Sender: No OFD packet to send [21:54:04]OFD Sender: No OFD packet to send [21:54:09]OFD Sender: No OFD packet to send [21:54:14]OFD Sender: No OFD packet to send [21:54:19]OFD Sender: No OFD packet to send [21:54:24]OFD Sender: No OFD packet to send [21:54:29]OFD Sender: No OFD packet to send [21:54:34]OFD Sender: No OFD packet to send [21:54:39]OFD Sender: No OFD packet to send [21:54:44]OFD Sender: No OFD packet to send [21:54:49]OFD Sender: No OFD packet to send [21:54:54]OFD Sender: No OFD packet to send [21:54:59]OFD Sender: No OFD packet to send [21:55:04]OFD Sender: No OFD packet to send [21:55:09]OFD Sender: No OFD packet to send [21:55:14]OFD Sender: No OFD packet to send [21:55:19]OFD Sender: No OFD packet to send [21:55:24]OFD Sender: No OFD packet to send [21:55:29]OFD Sender: No OFD packet to send [21:55:34]OFD Sender: No OFD packet to send [21:55:39]OFD Sender: No OFD packet to send [21:55:44]OFD Sender: No OFD packet to send [21:55:49]OFD Sender: No OFD packet to send [21:55:54]OFD Sender: No OFD packet to send [21:55:59]OFD Sender: No OFD packet to send [21:56:04]OFD Sender: No OFD packet to send [21:56:09]OFD Sender: No OFD packet to send [21:56:14]OFD Sender: No OFD packet to send [21:56:19]OFD Sender: No OFD packet to send [21:56:24]OFD Sender: No OFD packet to send [21:56:29]OFD Sender: No OFD packet to send [21:56:34]OFD Sender: No OFD packet to send [21:56:39]OFD Sender: No OFD packet to send [21:56:44]OFD Sender: No OFD packet to send [21:56:49]OFD Sender: No OFD packet to send [21:56:54]OFD Sender: No OFD packet to send [21:56:59]OFD Sender: No OFD packet to send [21:57:04]OFD Sender: No OFD packet to send [21:57:09]OFD Sender: No OFD packet to send [21:57:14]OFD Sender: No OFD packet to send [21:57:19]OFD Sender: No OFD packet to send [21:57:24]OFD Sender: No OFD packet to send [21:57:29]OFD Sender: No OFD packet to send [21:57:34]OFD Sender: No OFD packet to send [21:57:39]OFD Sender: No OFD packet to send [21:57:44]OFD Sender: No OFD packet to send [21:57:49]OFD Sender: No OFD packet to send [21:57:54]OFD Sender: No OFD packet to send [21:57:59]OFD Sender: No OFD packet to send [21:58:04]OFD Sender: No OFD packet to send [21:58:09]OFD Sender: No OFD packet to send [21:58:14]OFD Sender: No OFD packet to send [21:58:19]OFD Sender: No OFD packet to send [21:58:24]OFD Sender: No OFD packet to send [21:58:29]OFD Sender: No OFD packet to send [21:58:34]OFD Sender: No OFD packet to send [21:58:39]OFD Sender: No OFD packet to send [21:58:44]OFD Sender: No OFD packet to send [21:58:49]OFD Sender: No OFD packet to send [21:58:54]OFD Sender: No OFD packet to send [21:58:59]OFD Sender: No OFD packet to send [21:59:04]OFD Sender: No OFD packet to send [21:59:09]OFD Sender: No OFD packet to send [21:59:14]OFD Sender: No OFD packet to send [21:59:19]OFD Sender: No OFD packet to send [21:59:24]OFD Sender: No OFD packet to send [21:59:29]OFD Sender: No OFD packet to send [21:59:34]OFD Sender: No OFD packet to send [21:59:39]OFD Sender: No OFD packet to send [21:59:44]OFD Sender: No OFD packet to send [21:59:49]OFD Sender: No OFD packet to send [21:59:54]OFD Sender: No OFD packet to send [21:59:59]OFD Sender: No OFD packet to send [22:00:04]OFD Sender: No OFD packet to send [22:00:09]OFD Sender: No OFD packet to send [22:00:14]OFD Sender: No OFD packet to send [22:00:19]OFD Sender: No OFD packet to send [22:00:24]OFD Sender: No OFD packet to send [22:00: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:52]accept exits with 9 [22:01:52]New connection [22:01:52]New thread 3066473828 created [22:01:52]Thread 3066617188 joined [22:01:52]Waiting for new connection... [22:01:52] Sock 9.Parse request [22:01:52]Sock 9.Check first char [22:01:52]Sock 9.First char is OK [22:01:52]request: POST /json_proto HTTP/1.0 [22:01:52]Method: POST [22:01:52]URL: /json_proto [22:01:52]Method is POST - this is cgi request [22:01:52]url: /json_proto [22:01:52]query_string will be loaded in cgi processing [22:01:52]execute_cgi json_proto POST (null) [22:01:52]execute_cgi path=json_proto method=POST [22:01:52]POST find Content-Length [22:01:52]Host: 172.17.55.133:8080 [22:01:52]Content-Length: 810 [22:01:52]Content-Type: application/json [22:01:52] [22:01:52]POST finish read [22:01:52]Found Content-Length = 810 [22:01:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\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\u000A4203485.86.87.88", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:01:52]execute_script... [22:01: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)1036527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\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\u000A4203485.86.87.88", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:01:52]POST & json_proto [22:01:52]process_json_proto [22:01:52]json parsed OK: [22:01:52]protocol is kg_v1.0 [22:01:52]action value=close_receipt [22:01:52]process_action close_receipt [22:01:52]cmd_close_receipt [22:01:52]MH_GetDate [22:01:52]Write to MH i2c: F0 00 00 20 D6 E5 [22:01:52]Write i2c OK [22:01:52]MH_I2C_Read... [22:01:52]Read from MH i2c: F0 [22:01:52]MH_I2C_Read... [22:01:52]Read from MH i2c: F0 09 00 [22:01:52]MH_I2C_Read... [22:01:52]Read from MH i2c: F0 09 00 20 D6 00 57 6F C2 66 34 48 D8 65 95 [22:01:52]GetLastDocTimeStamp 1724017883 [22:01:52]current date 1724018519 [22:01:52]FM_GetShiftState [22:01:52]SAM_PROTO_GetShiftState [22:01:52]wFMCommunicate request_size=4 [22:01:52]MH_SAM_APDU [22:01:52]CAPDU: 80 13 01 00 [22:01:52]Write to MH i2c: E2 08 00 21 D6 80 13 01 00 00 00 00 00 74 [22:01:52]Write i2c OK [22:01:52]MH_I2C_Read... [22:01:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:52]Read from MH i2c: E2 [22:01:52]MH_I2C_Read... [22:01:52]Read from MH i2c: E2 0E 00 [22:01:52]MH_I2C_Read... [22:01:52]Read from MH i2c: E2 0E 00 21 D6 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B1 [22:01:52]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:01:52]wFMCommunicate OK [22:01:52]SAM_PROTO_GetShiftState done [22:01:52]FM_GetShiftState done [22:01:52]opened in 1723940556 [22:01:52]opened+sec_in_day 1724026956 [22:01:52]quantity*price = 0 [22:01:52]sum+1 = 1 [22:01:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 532 18.08.2024 22:01 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: Топливные Талоны 4203485.86.87.88 ФМ: 0000000000871820 ФД: 260974 ФПД: 139411311507862 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T220159&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260974&fm=139411311507862&tin=02508201610067®Number=0000000000091865&sum=0 [22:01:53]StoreToDocumentArchive [22:01:53]shift 449 fd 260974 [22:01:53]save to /storage/0449/doc_00260974 [22:01:53]save last doc name /storage/0449/doc_00260974 to /storage/kkm_last_doc_name [22:01:53]save OK [22:01:53]Clear old archive folders... [22:01:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:01:53]tlvbuf is 00540990 [22:01:53]SAM_PROTO_ClearQueue [22:01:53]wFMCommunicate request_size=4 [22:01:53]MH_SAM_APDU [22:01:53]CAPDU: 80 09 00 00 [22:01:53]Write to MH i2c: E2 08 00 2E D6 80 09 00 00 00 00 00 00 76 [22:01:53]Write i2c OK [22:01:53]MH_I2C_Read... [22:01:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:01:53]Read from MH i2c: E2 [22:01:53]MH_I2C_Read... [22:01:53]Read from MH i2c: E2 03 00 [22:01:53]MH_I2C_Read... [22:01:53]Read from MH i2c: E2 03 00 2E D6 00 90 00 78 [22:01:53]RAPDU: 90 00 [22:01:53]wFMCommunicate OK [22:01:53]SAM_PROTO_ClearQueue done [22:01:53]KKMCreateOFDPacket [22:01:53]OFDProtocolAddRootSTLVToBuf [22:01:53]FM_MakeSignedData [22:01:53]FM_MakeSignedData [22:01:53]SAM_PROTO_SignData [22:01:53]wFMCommunicate request_size=4 [22:01:53]MH_SAM_APDU [22:01:53]CAPDU: 80 0D 01 02 [22:01:53]Write to MH i2c: E2 08 00 2F D6 80 0D 01 02 00 00 00 00 7E [22:01:53]Write i2c OK [22:01:53]MH_I2C_Read... [22:01:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:01:53]Read from MH i2c: E2 [22:01:53]MH_I2C_Read... [22:01:53]Read from MH i2c: E2 03 00 [22:01:53]MH_I2C_Read... [22:01:53]Read from MH i2c: E2 03 00 2F D6 00 90 00 79 [22:01:53]RAPDU: 90 00 [22:01:53]wFMCommunicate OK [22:01:53]wFMCommunicate request_size=255 [22:01:53]MH_SAM_APDU [22:01:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 14 02 00 00 F4 03 04 00 57 6F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6E FB 03 00 35 04 06 00 7E [22:01:53]Write to MH i2c: E2 02 01 30 D6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 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 14 02 00 00 F4 03 04 00 57 6F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6E FB 03 00 35 04 06 00 7E 00 00 12 [22:01:53]Write i2c OK [22:01:53]MH_I2C_Read... [22:01:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:54]Read from MH i2c: E2 [22:01:54]MH_I2C_Read... [22:01:54]Read from MH i2c: E2 03 00 [22:01:54]MH_I2C_Read... [22:01:54]Read from MH i2c: E2 03 00 30 D6 00 90 00 7A [22:01:54]RAPDU: 90 00 [22:01:54]wFMCommunicate OK [22:01:54]wFMCommunicate request_size=10 [22:01:54]MH_SAM_APDU [22:01:54]CAPDU: 80 0D 02 02 05 CB 39 B3 39 96 [22:01:54]Write to MH i2c: E2 0D 00 31 D6 80 0D 02 02 05 00 CB 39 B3 39 96 00 00 11 [22:01:54]Write i2c OK [22:01:54]MH_I2C_Read... [22:01:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:54]Read from MH i2c: E2 [22:01:54]MH_I2C_Read... [22:01:54]Read from MH i2c: E2 03 00 [22:01:54]MH_I2C_Read... [22:01:54]Read from MH i2c: E2 03 00 31 D6 00 90 00 7B [22:01:54]RAPDU: 90 00 [22:01:54]wFMCommunicate OK [22:01:54]wFMCommunicate request_size=4 [22:01:54]MH_SAM_APDU [22:01:54]CAPDU: 80 0D 03 02 [22:01:54]Write to MH i2c: E2 08 00 32 D6 80 0D 03 02 00 00 00 00 83 [22:01:54]Write i2c OK [22:01:54]MH_I2C_Read... [22:01:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:01:54]Read from MH i2c: E2 [22:01:54]MH_I2C_Read... [22:01:54]Read from MH i2c: E2 0B 00 [22:01:54]MH_I2C_Read... [22:01:54]Read from MH i2c: E2 0B 00 32 D6 00 54 54 35 2F 01 FF 91 49 90 00 6A [22:01:54]RAPDU: 54 54 35 2F 01 FF 91 49 90 00 [22:01:54]wFMCommunicate OK [22:01:54]SAM_PROTO_SignData done [22:01:54]FM_MakeSignedData done [22:01:54]CreateOFDProtocolMessage [22:01:54]wFMCommunicate request_size=4 [22:01:54]MH_SAM_APDU [22:01:54]CAPDU: 80 11 00 00 [22:01:54]Write to MH i2c: E2 08 00 33 D6 80 11 00 00 00 00 00 00 83 [22:01:54]Write i2c OK [22:01:54]MH_I2C_Read... [22:01:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:54]Read from MH i2c: E2 [22:01:54]MH_I2C_Read... [22:01:54]Read from MH i2c: E2 17 00 [22:01:54]MH_I2C_Read... [22:01:54]Read from MH i2c: E2 17 00 33 D6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D0 [22:01:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:01:54]wFMCommunicate OK [22:01:54]CreateOFDProtocolMessage done [22:01:54]OFDSenderStorePacket 260974 [22:01:54]StoreOFDPacket docnum=260974 [22:01:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 D4 F1 07 01 81 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 14 02 00 00 F4 03 04 00 57 6F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6E FB 03 00 35 04 06 00 7E CB 39 B3 39 96 54 54 35 2F 01 FF 91 49 [22:01:54]CheckFolder [22:01:54]dirname=/storage/ofd_packets [22:01:54]CheckFolder done [22:01:54]ProducePacketName [22:01:54]name=ofd_packets/00260974 [22:01:54]NVStorageSaveData ofd_packets/00260974 [22:01:54]File name is /storage/ofd_packets/00260974 [22:01:54]Write 301 bytes [22:01:54]NVStorageSaveData done [22:01:54]OFDSenderStorePacket done [22:01:54]KKMCreateOFDPacket done [22:01:54]NVStorageSaveData kkm_last_timestamp [22:01:54]File name is /storage/kkm_last_timestamp [22:01:54]Write 4 bytes [22:01:54]NVStorageSaveData done [22:01:54]ExternCall_PrintAddStr [22:01:54]wPrintStart [22:01:54]Write to MH i2c: 01 00 00 34 D6 0A [22:01:54]Write i2c OK [22:01:54]MH_I2C_Read... [22:01:54]Read from MH i2c: 01 [22:01:54]MH_I2C_Read... [22:01:54]Read from MH i2c: 01 07 00 [22:01:54]MH_I2C_Read... [22:01:54]Read from MH i2c: 01 07 00 34 D6 00 00 00 00 00 FF 0F 1F [22:01:54]RasterBufferAndPrint [22:01:54]line Счет N : (1)1036527 [22:01:54]line ИНН: 02508201610067 [22:01:54]line Контрольно-Кассовый Чек [22:01:54]line ПРОДАЖА [22:01:54]line ТРК (МРК, ГНК) : 22 [22:01:54]line Товар: 2710124130 [22:01:54]line Аи-92-К-5 [22:01:54]line 40.000 * 0.00 [22:01:54]line = 0.00 [22:01:54]line НДС 12% НСП 1% [22:01:54]line > о реализуемом товаре [22:01:54]line ИТОГО: 0.00 [22:01:54]line НСП 1% : 0.00 [22:01:54]line НДС 12% : 0.00 [22:01:54]line Наличными: 0.00 [22:01:54]line Безнал.: 0.00 [22:01:54]line Место: АЗС № 94 "Партнер Нефть" [22:01:54]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [22:01:54]line СНО: Общий режим [22:01:54]line Чек 532 18.08.2024 22:01 [22:01:54]line Смена: 449 ФФД: 1.0 [22:01:54]line ЗНМ: 0300000099 [22:01:54]line РНМ: 0000000000091865 [22:01:54]line Версия ККМ: 001 [22:01:54]line Талоны: Топливные Талоны [22:01:54]line 4203485.86.87.88 [22:01:54]line ФМ: 0000000000871820 [22:01:54]line ФД: 260974 [22:01:54]line ФПД: 139411311507862 [22:01:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T220159&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260974&fm=139411311507862&tin=02508201610067®Number=0000000000091865&sum=0 [22:01:54]written 0, free lines is 4095 [22:01:54]OFD Sender: Processing packet 260974 [packets to send 192, broken 191] [22:01:54]ProducePacketName [22:01:54]name=ofd_packets/00260974 [22:01:54]OFD Sender: To server: pG, [22:01:54]CommunicateWithHost lk.salyk.kg:30040 [22:01:54]ConnectInit lk.salyk.kg [22:01:54]Connected sock=10 [22:01:54]Data 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 30 0F 01 00 00 D4 F1 07 01 81 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 14 02 00 00 F4 03 04 00 57 6F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6E FB 03 00 35 04 06 00 7E CB 39 B3 39 96 54 54 35 2F 01 FF 91 49 [22:01:54]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 30 4F 00 00 00 8B C2 47 00 04 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6E FB 03 00 F4 03 04 00 AB 18 C2 66 B6 04 01 00 00 B9 3F B2 73 4B A8 3C BB [22:01:54]CommunicateWithHost err = 0 [22:01:54]CheckOFDResponse [22:01:54]1017 (14) - 77093643461234 [22:01:54]1041 (16) - 0000000000871820 [22:01:54]1040 (4) - 260974 [22:01:54]1012 (4) - 18.08.2024 15:52 [22:01:54]1206 (1) - 0 [22:01:54]OFD Sender: Remove packet 260974 [22:01:54]ProducePacketName [22:01:54]name=ofd_packets/00260974 [22:01:54]NVStorageDeleteData [22:01:55]Write to MH i2c: 01 00 00 5E D6 34 [22:01:55]Write i2c OK [22:01:55]MH_I2C_Read... [22:01:55]Read from MH i2c: 01 [22:01:55]MH_I2C_Read... [22:01:55]Read from MH i2c: 01 07 00 [22:01:55]MH_I2C_Read... [22:01:55]Read from MH i2c: 01 07 00 5E D6 00 00 00 00 00 89 0C D0 [22:01:55]RasterBufferAndPrint [22:01:55]line [22:01:55]line [22:01:55]line [22:01:55]line [22:01:55]line [22:01:55]written 0, free lines is 3212 [22:01:55]MH_Cut [22:01:55]Write to MH i2c: D1 01 00 65 D6 01 0D [22:01:55]Write i2c OK [22:01:55]MH_I2C_Read... [22:01:55]Read from MH i2c: D1 [22:01:55]MH_I2C_Read... [22:01:55]Read from MH i2c: D1 01 00 [22:01:55]MH_I2C_Read... [22:01:55]Read from MH i2c: D1 01 00 65 D6 00 0C [22:01:55]Write to MH i2c: 01 00 00 66 D6 3C [22:01:55]Write i2c OK [22:01:55]MH_I2C_Read... [22:01:55]OFD Sender: No OFD packet to send [22:01:56]*** Cut start [22:01:56]*** Purtial cut [22:01:56]*** Stage 1: CUTSNS_PIN = 1 [22:01:58]Read from MH i2c: 01 [22:01:58]MH_I2C_Read... [22:01:58]*** Stop cut motor [22:01:58]*** Cut end [22:01:58]Read from MH i2c: 01 07 00 [22:01:58]MH_I2C_Read... [22:01:58]Read from MH i2c: 01 07 00 66 D6 00 00 00 00 00 FF 0F 51 [22:01:58]process_action close_receipt done [22:01:58]requested_data is exist [22:01:58]produce_requested_data [22:01:58]requested_item fm.sn is exist - process it [22:01:58]wFMCommunicate request_size=4 [22:01:58]MH_SAM_APDU [22:01:58]CAPDU: 80 11 00 00 [22:01:58]Write to MH i2c: E2 08 00 67 D6 80 11 00 00 00 00 00 00 B7 [22:01:58]Write i2c OK [22:01:58]MH_I2C_Read... [22:01:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:58]Read from MH i2c: E2 [22:01:58]MH_I2C_Read... [22:01:58]Read from MH i2c: E2 17 00 [22:01:58]MH_I2C_Read... [22:01:58]Read from MH i2c: E2 17 00 67 D6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 04 [22:01:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:01:58]wFMCommunicate OK [22:01:58]requested_item fd.num is exist - process it [22:01:58]SAM_PROTO_GetFieldsCounters [22:01:58]wFMCommunicate request_size=4 [22:01:58]MH_SAM_APDU [22:01:58]CAPDU: 80 13 00 00 [22:01:58]Write to MH i2c: E2 08 00 68 D6 80 13 00 00 00 00 00 00 BA [22:01:58]Write i2c OK [22:01:58]MH_I2C_Read... [22:01:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:01:58]Read from MH i2c: E2 [22:01:58]MH_I2C_Read... [22:01:58]Read from MH i2c: E2 62 00 [22:01:58]MH_I2C_Read... [22:01:58]Read from MH i2c: E2 62 00 68 D6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 6E FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 14 02 00 00 5E 04 04 00 14 02 00 00 57 04 04 00 15 02 00 00 19 04 04 00 00 00 00 00 90 00 49 [22:01: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 6E FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 14 02 00 00 5E 04 04 00 14 02 00 00 57 04 04 00 15 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:01:58]wFMCommunicate OK [22:01:58]SAM_PROTO_GetFieldsCounters done [22:01:58]requested_item shift.num is exist - process it [22:01:58]requested_item shift.opened is exist - process it [22:01:58]req_shift_opened [22:01:58]FM_GetShiftState [22:01:58]SAM_PROTO_GetShiftState [22:01:58]wFMCommunicate request_size=4 [22:01:58]MH_SAM_APDU [22:01:58]CAPDU: 80 13 01 00 [22:01:58]Write to MH i2c: E2 08 00 69 D6 80 13 01 00 00 00 00 00 BC [22:01:58]Write i2c OK [22:01:58]MH_I2C_Read... [22:01:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:58]Read from MH i2c: E2 [22:01:58]MH_I2C_Read... [22:01:58]Read from MH i2c: E2 0E 00 [22:01:58]MH_I2C_Read... [22:01:58]Read from MH i2c: E2 0E 00 69 D6 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F9 [22:01:58]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:01:58]wFMCommunicate OK [22:01:58]SAM_PROTO_GetShiftState done [22:01:58]FM_GetShiftState done [22:01:58]req_shift_opened done [22:01:58]requested_item shift.open_date is exist - process it [22:01:58]req_shift_open_date [22:01:58]req_shift_open_date done [22:01:58]produce_requested_data done [22:01:58]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260974,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [22:01:58]process_action_free close_receipt [22:01:58]json_value_free [22:01:58]json_value_free done [22:01:58]process_json_proto returns [22:01:58]Send response to host [22:01:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260974,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [22:01:58]free response buf [22:01:58]execute_script done [22:01:58]execute_script returns [22:01:58]free content buf [22:01:58]Sock 9.Close socket [22:01:58]Sock 9.Thread stoped [22:02:00]OFD Sender: No OFD packet to send [22:02:05]OFD Sender: No OFD packet to send [22:02:07]accept exits with 7 [22:02:07]New connection [22:02:07]New thread 3066617188 created [22:02:07]Thread 3066473828 joined [22:02:07]Waiting for new connection... [22:02:07] Sock 7.Parse request [22:02:07]Sock 7.Check first char [22:02:07]Sock 7.First char is OK [22:02:07]request: POST /json_proto HTTP/1.0 [22:02:07]Method: POST [22:02:07]URL: /json_proto [22:02:07]Method is POST - this is cgi request [22:02:07]url: /json_proto [22:02:07]query_string will be loaded in cgi processing [22:02:07]execute_cgi json_proto POST (null) [22:02:07]execute_cgi path=json_proto method=POST [22:02:07]POST find Content-Length [22:02:07]Host: 172.17.55.133:8080 [22:02:07]Content-Length: 683 [22:02:07]Content-Type: application/json [22:02:07] [22:02:07]POST finish read [22:02:07]Found Content-Length = 683 [22:02:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036528", "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" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:02:07]execute_script... [22:02: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)1036528", "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" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:02:07]POST & json_proto [22:02:07]process_json_proto [22:02:07]json parsed OK: [22:02:07]protocol is kg_v1.0 [22:02:07]action value=close_receipt [22:02:07]process_action close_receipt [22:02:07]cmd_close_receipt [22:02:07]MH_GetDate [22:02:07]Write to MH i2c: F0 00 00 6A D6 2F [22:02:07]Write i2c OK [22:02:07]MH_I2C_Read... [22:02:07]Read from MH i2c: F0 [22:02:07]MH_I2C_Read... [22:02:07]Read from MH i2c: F0 09 00 [22:02:07]MH_I2C_Read... [22:02:07]Read from MH i2c: F0 09 00 6A D6 00 66 6F C2 66 34 48 D8 65 EE [22:02:07]GetLastDocTimeStamp 1724018519 [22:02:07]current date 1724018534 [22:02:07]FM_GetShiftState [22:02:07]SAM_PROTO_GetShiftState [22:02:07]wFMCommunicate request_size=4 [22:02:07]MH_SAM_APDU [22:02:07]CAPDU: 80 13 01 00 [22:02:07]Write to MH i2c: E2 08 00 6B D6 80 13 01 00 00 00 00 00 BE [22:02:07]Write i2c OK [22:02:07]MH_I2C_Read... [22:02:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:07]Read from MH i2c: E2 [22:02:07]MH_I2C_Read... [22:02:07]Read from MH i2c: E2 0E 00 [22:02:07]MH_I2C_Read... [22:02:07]Read from MH i2c: E2 0E 00 6B D6 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 FB [22:02:07]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:02:07]wFMCommunicate OK [22:02:07]SAM_PROTO_GetShiftState done [22:02:07]FM_GetShiftState done [22:02:07]opened in 1723940556 [22:02:07]opened+sec_in_day 1724026956 [22:02:07]quantity*price = 300064 [22:02:07]sum+1 = 300066 [22:02:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 533 18.08.2024 22:02 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260975 ФПД: 147985102800428 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T220214&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260975&fm=147985102800428&tin=02508201610067®Number=0000000000091865&sum=300000 [22:02:08]StoreToDocumentArchive [22:02:08]shift 449 fd 260975 [22:02:08]save to /storage/0449/doc_00260975 [22:02:08]save last doc name /storage/0449/doc_00260975 to /storage/kkm_last_doc_name [22:02:08]save OK [22:02:08]Clear old archive folders... [22:02:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:02:08]tlvbuf is 00451550 [22:02:08]SAM_PROTO_ClearQueue [22:02:08]wFMCommunicate request_size=4 [22:02:08]MH_SAM_APDU [22:02:08]CAPDU: 80 09 00 00 [22:02:08]Write to MH i2c: E2 08 00 78 D6 80 09 00 00 00 00 00 00 C0 [22:02:08]Write i2c OK [22:02:08]MH_I2C_Read... [22:02:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:02:08]Read from MH i2c: E2 [22:02:08]MH_I2C_Read... [22:02:08]Read from MH i2c: E2 03 00 [22:02:08]MH_I2C_Read... [22:02:08]Read from MH i2c: E2 03 00 78 D6 00 90 00 C2 [22:02:08]RAPDU: 90 00 [22:02:08]wFMCommunicate OK [22:02:08]SAM_PROTO_ClearQueue done [22:02:08]KKMCreateOFDPacket [22:02:08]OFDProtocolAddRootSTLVToBuf [22:02:08]FM_MakeSignedData [22:02:08]FM_MakeSignedData [22:02:08]SAM_PROTO_SignData [22:02:08]wFMCommunicate request_size=4 [22:02:08]MH_SAM_APDU [22:02:08]CAPDU: 80 0D 01 02 [22:02:08]Write to MH i2c: E2 08 00 79 D6 80 0D 01 02 00 00 00 00 C8 [22:02:08]Write i2c OK [22:02:08]MH_I2C_Read... [22:02:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:02:09]Read from MH i2c: E2 [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: E2 03 00 [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: E2 03 00 79 D6 00 90 00 C3 [22:02:09]RAPDU: 90 00 [22:02:09]wFMCommunicate OK [22:02:09]wFMCommunicate request_size=255 [22:02:09]MH_SAM_APDU [22:02:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 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 15 02 00 00 F4 03 04 00 66 6F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6F FB 03 00 35 04 06 00 86 [22:02:09]Write to MH i2c: E2 02 01 7A D6 80 0D 02 02 FA 00 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 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 15 02 00 00 F4 03 04 00 66 6F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6F FB 03 00 35 04 06 00 86 00 00 4F [22:02:09]Write i2c OK [22:02:09]MH_I2C_Read... [22:02:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:09]Read from MH i2c: E2 [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: E2 03 00 [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: E2 03 00 7A D6 00 90 00 C4 [22:02:09]RAPDU: 90 00 [22:02:09]wFMCommunicate OK [22:02:09]wFMCommunicate request_size=10 [22:02:09]MH_SAM_APDU [22:02:09]CAPDU: 80 0D 02 02 05 97 77 7C 06 2C [22:02:09]Write to MH i2c: E2 0D 00 7B D6 80 0D 02 02 05 00 97 77 7C 06 2C 00 00 91 [22:02:09]Write i2c OK [22:02:09]MH_I2C_Read... [22:02:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:09]Read from MH i2c: E2 [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: E2 03 00 [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: E2 03 00 7B D6 00 90 00 C5 [22:02:09]RAPDU: 90 00 [22:02:09]wFMCommunicate OK [22:02:09]wFMCommunicate request_size=4 [22:02:09]MH_SAM_APDU [22:02:09]CAPDU: 80 0D 03 02 [22:02:09]Write to MH i2c: E2 08 00 7C D6 80 0D 03 02 00 00 00 00 CD [22:02:09]Write i2c OK [22:02:09]MH_I2C_Read... [22:02:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:02:09]Read from MH i2c: E2 [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: E2 0B 00 [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: E2 0B 00 7C D6 00 6F 4D 09 F8 E3 A1 0B 83 90 00 9D [22:02:09]RAPDU: 6F 4D 09 F8 E3 A1 0B 83 90 00 [22:02:09]wFMCommunicate OK [22:02:09]SAM_PROTO_SignData done [22:02:09]FM_MakeSignedData done [22:02:09]CreateOFDProtocolMessage [22:02:09]wFMCommunicate request_size=4 [22:02:09]MH_SAM_APDU [22:02:09]CAPDU: 80 11 00 00 [22:02:09]Write to MH i2c: E2 08 00 7D D6 80 11 00 00 00 00 00 00 CD [22:02:09]Write i2c OK [22:02:09]MH_I2C_Read... [22:02:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:09]Read from MH i2c: E2 [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: E2 17 00 [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: E2 17 00 7D D6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 1A [22:02:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:02:09]wFMCommunicate OK [22:02:09]CreateOFDProtocolMessage done [22:02:09]OFDSenderStorePacket 260975 [22:02:09]StoreOFDPacket docnum=260975 [22:02:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 51 30 07 01 B8 57 5A 03 01 00 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 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 15 02 00 00 F4 03 04 00 66 6F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6F FB 03 00 35 04 06 00 86 97 77 7C 06 2C 6F 4D 09 F8 E3 A1 0B 83 [22:02:09]CheckFolder [22:02:09]dirname=/storage/ofd_packets [22:02:09]CheckFolder done [22:02:09]ProducePacketName [22:02:09]name=ofd_packets/00260975 [22:02:09]NVStorageSaveData ofd_packets/00260975 [22:02:09]File name is /storage/ofd_packets/00260975 [22:02:09]Write 301 bytes [22:02:09]NVStorageSaveData done [22:02:09]OFDSenderStorePacket done [22:02:09]KKMCreateOFDPacket done [22:02:09]NVStorageSaveData kkm_last_timestamp [22:02:09]File name is /storage/kkm_last_timestamp [22:02:09]Write 4 bytes [22:02:09]NVStorageSaveData done [22:02:09]ExternCall_PrintAddStr [22:02:09]wPrintStart [22:02:09]Write to MH i2c: 01 00 00 7E D6 54 [22:02:09]Write i2c OK [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: 01 [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: 01 07 00 [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: 01 07 00 7E D6 00 00 00 00 00 FF 0F 69 [22:02:09]RasterBufferAndPrint [22:02:09]line Счет N : (1)1036528 [22:02:09]line ИНН: 02508201610067 [22:02:09]line Контрольно-Кассовый Чек [22:02:09]line ПРОДАЖА [22:02:09]line ТРК (МРК, ГНК) : 13 [22:02:09]line Товар: 2710124500 [22:02:09]line Аи-95-К-5 [22:02:09]line 40.440 * 74.20 [22:02:09]line = 3000.65 [22:02:09]line НДС 12% НСП 1% [22:02:09]line > о реализуемом товаре [22:02:09]line ОКРУГЛЕНИЕ: -0.65 [22:02:09]line ИТОГО: 3000.00 [22:02:09]line Внесено: 3000.00 [22:02:09]line СДАЧА: 0.00 [22:02:09]line НСП 1% : 26.55 [22:02:09]line НДС 12% : 318.65 [22:02:09]line Наличными: 3000.00 [22:02:09]line Безнал.: 0.00 [22:02:09]line Место: АЗС № 94 "Партнер Нефть" [22:02:09]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [22:02:09]line СНО: Общий режим [22:02:09]line Чек 533 18.08.2024 22:02 [22:02:09]line Смена: 449 ФФД: 1.0 [22:02:09]line ЗНМ: 0300000099 [22:02:09]line РНМ: 0000000000091865 [22:02:09]line Версия ККМ: 001 [22:02:09]line ФМ: 0000000000871820 [22:02:09]line ФД: 260975 [22:02:09]line ФПД: 147985102800428 [22:02:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T220214&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260975&fm=147985102800428&tin=02508201610067®Number=0000000000091865&sum=300000 [22:02:09]written 0, free lines is 4095 [22:02:09]OFD Sender: Processing packet 260975 [packets to send 192, broken 191] [22:02:09]ProducePacketName [22:02:09]name=ofd_packets/00260975 [22:02:09]OFD Sender: To server: pG, [22:02:09]CommunicateWithHost lk.salyk.kg:30040 [22:02:09]ConnectInit lk.salyk.kg [22:02:09]Connected sock=10 [22:02: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 30 0F 01 00 00 51 30 07 01 B8 57 5A 03 01 00 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 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 15 02 00 00 F4 03 04 00 66 6F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 6F FB 03 00 35 04 06 00 86 97 77 7C 06 2C 6F 4D 09 F8 E3 A1 0B 83 [22:02: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 30 4F 00 00 00 78 B0 47 00 98 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 30 10 04 04 00 6F FB 03 00 F4 03 04 00 BA 18 C2 66 B6 04 01 00 00 84 AA 7A F1 1B BB 1C 09 [22:02:09]CommunicateWithHost err = 0 [22:02:09]CheckOFDResponse [22:02:09]1017 (14) - 77093643461234 [22:02:09]1041 (16) - 0000000000871820 [22:02:09]1040 (4) - 260975 [22:02:09]1012 (4) - 18.08.2024 15:52 [22:02:09]1206 (1) - 0 [22:02:09]OFD Sender: Remove packet 260975 [22:02:09]ProducePacketName [22:02:09]name=ofd_packets/00260975 [22:02:09]NVStorageDeleteData [22:02:09]Write to MH i2c: 01 00 00 A9 D6 7F [22:02:09]Write i2c OK [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: 01 [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: 01 07 00 [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: 01 07 00 A9 D6 00 00 00 00 00 68 0C FA [22:02:09]RasterBufferAndPrint [22:02:09]line [22:02:09]line [22:02:09]line [22:02:09]line [22:02:09]line [22:02:09]written 0, free lines is 3180 [22:02:09]MH_Cut [22:02:09]Write to MH i2c: D1 01 00 B0 D6 01 58 [22:02:09]Write i2c OK [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: D1 [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: D1 01 00 [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: D1 01 00 B0 D6 00 57 [22:02:09]Write to MH i2c: 01 00 00 B1 D6 87 [22:02:09]Write i2c OK [22:02:09]MH_I2C_Read... [22:02:10]OFD Sender: No OFD packet to send [22:02:11]*** Cut start [22:02:11]*** Purtial cut [22:02:11]*** Stage 1: CUTSNS_PIN = 1 [22:02:13]Read from MH i2c: 01 [22:02:13]MH_I2C_Read... [22:02:13]*** Stop cut motor [22:02:13]*** Cut end [22:02:13]Read from MH i2c: 01 07 00 [22:02:13]MH_I2C_Read... [22:02:13]Read from MH i2c: 01 07 00 B1 D6 00 00 00 00 00 FF 0F 9C [22:02:13]process_action close_receipt done [22:02:13]requested_data is exist [22:02:13]produce_requested_data [22:02:13]requested_item fm.sn is exist - process it [22:02:13]wFMCommunicate request_size=4 [22:02:13]MH_SAM_APDU [22:02:13]CAPDU: 80 11 00 00 [22:02:13]Write to MH i2c: E2 08 00 B2 D6 80 11 00 00 00 00 00 00 02 [22:02:13]Write i2c OK [22:02:13]MH_I2C_Read... [22:02:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:13]Read from MH i2c: E2 [22:02:13]MH_I2C_Read... [22:02:13]Read from MH i2c: E2 17 00 [22:02:13]MH_I2C_Read... [22:02:13]Read from MH i2c: E2 17 00 B2 D6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 4F [22:02:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:02:13]wFMCommunicate OK [22:02:13]requested_item fd.num is exist - process it [22:02:13]SAM_PROTO_GetFieldsCounters [22:02:13]wFMCommunicate request_size=4 [22:02:13]MH_SAM_APDU [22:02:13]CAPDU: 80 13 00 00 [22:02:13]Write to MH i2c: E2 08 00 B3 D6 80 13 00 00 00 00 00 00 05 [22:02:13]Write i2c OK [22:02:13]MH_I2C_Read... [22:02:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:02:13]Read from MH i2c: E2 [22:02:13]MH_I2C_Read... [22:02:13]Read from MH i2c: E2 62 00 [22:02:13]MH_I2C_Read... [22:02:13]Read from MH i2c: E2 62 00 B3 D6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 6F FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 15 02 00 00 5E 04 04 00 15 02 00 00 57 04 04 00 16 02 00 00 19 04 04 00 00 00 00 00 90 00 98 [22:02: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 6F FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 15 02 00 00 5E 04 04 00 15 02 00 00 57 04 04 00 16 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:02:13]wFMCommunicate OK [22:02:13]SAM_PROTO_GetFieldsCounters done [22:02:13]requested_item shift.num is exist - process it [22:02:13]requested_item shift.opened is exist - process it [22:02:13]req_shift_opened [22:02:13]FM_GetShiftState [22:02:13]SAM_PROTO_GetShiftState [22:02:13]wFMCommunicate request_size=4 [22:02:13]MH_SAM_APDU [22:02:13]CAPDU: 80 13 01 00 [22:02:13]Write to MH i2c: E2 08 00 B4 D6 80 13 01 00 00 00 00 00 07 [22:02:13]Write i2c OK [22:02:13]MH_I2C_Read... [22:02:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:13]Read from MH i2c: E2 [22:02:13]MH_I2C_Read... [22:02:13]Read from MH i2c: E2 0E 00 [22:02:13]MH_I2C_Read... [22:02:13]Read from MH i2c: E2 0E 00 B4 D6 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 44 [22:02:13]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:02:13]wFMCommunicate OK [22:02:13]SAM_PROTO_GetShiftState done [22:02:13]FM_GetShiftState done [22:02:13]req_shift_opened done [22:02:13]requested_item shift.open_date is exist - process it [22:02:13]req_shift_open_date [22:02:13]req_shift_open_date done [22:02:13]produce_requested_data done [22:02:13]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260975,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [22:02:13]process_action_free close_receipt [22:02:13]json_value_free [22:02:13]json_value_free done [22:02:13]process_json_proto returns [22:02:13]Send response to host [22:02:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260975,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [22:02:13]free response buf [22:02:13]execute_script done [22:02:13]execute_script returns [22:02:13]free content buf [22:02:13]Sock 7.Close socket [22:02:13]Sock 7.Thread stoped [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:02:57]accept exits with 9 [22:02:57]New connection [22:02:57]New thread 3066473828 created [22:02:57]Thread 3066617188 joined [22:02:57]Waiting for new connection... [22:02:57] Sock 9.Parse request [22:02:57]Sock 9.Check first char [22:02:57]Sock 9.First char is OK [22:02:57]request: POST /json_proto HTTP/1.0 [22:02:57]Method: POST [22:02:57]URL: /json_proto [22:02:57]Method is POST - this is cgi request [22:02:57]url: /json_proto [22:02:57]query_string will be loaded in cgi processing [22:02:57]execute_cgi json_proto POST (null) [22:02:57]execute_cgi path=json_proto method=POST [22:02:57]POST find Content-Length [22:02:57]Host: 172.17.55.133:8080 [22:02:57]Content-Length: 688 [22:02:57]Content-Type: application/json [22:02:57] [22:02:57]POST finish read [22:02:57]Found Content-Length = 688 [22:02:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:02:57]execute_script... [22:02: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)1036529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:02:57]POST & json_proto [22:02:57]process_json_proto [22:02:57]json parsed OK: [22:02:57]protocol is kg_v1.0 [22:02:57]action value=close_receipt [22:02:57]process_action close_receipt [22:02:57]cmd_close_receipt [22:02:57]MH_GetDate [22:02:57]Write to MH i2c: F0 00 00 B5 D6 7A [22:02:57]Write i2c OK [22:02:57]MH_I2C_Read... [22:02:57]Read from MH i2c: F0 [22:02:57]MH_I2C_Read... [22:02:57]Read from MH i2c: F0 09 00 [22:02:57]MH_I2C_Read... [22:02:57]Read from MH i2c: F0 09 00 B5 D6 00 99 6F C2 66 34 48 D8 65 6C [22:02:57]GetLastDocTimeStamp 1724018534 [22:02:57]current date 1724018585 [22:02:57]FM_GetShiftState [22:02:57]SAM_PROTO_GetShiftState [22:02:57]wFMCommunicate request_size=4 [22:02:57]MH_SAM_APDU [22:02:57]CAPDU: 80 13 01 00 [22:02:57]Write to MH i2c: E2 08 00 B6 D6 80 13 01 00 00 00 00 00 09 [22:02:57]Write i2c OK [22:02:57]MH_I2C_Read... [22:02:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:57]Read from MH i2c: E2 [22:02:57]MH_I2C_Read... [22:02:57]Read from MH i2c: E2 0E 00 [22:02:57]MH_I2C_Read... [22:02:57]Read from MH i2c: E2 0E 00 B6 D6 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 46 [22:02:57]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:02:57]wFMCommunicate OK [22:02:57]SAM_PROTO_GetShiftState done [22:02:57]FM_GetShiftState done [22:02:57]opened in 1723940556 [22:02:57]opened+sec_in_day 1724026956 [22:02:57]quantity*price = 300075 [22:02:57]sum+1 = 300077 [22:02:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 534 18.08.2024 22:03 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260976 ФПД: 145681037994445 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T220305&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260976&fm=145681037994445&tin=02508201610067®Number=0000000000091865&sum=300000 [22:02:59]StoreToDocumentArchive [22:02:59]shift 449 fd 260976 [22:02:59]save to /storage/0449/doc_00260976 [22:02:59]save last doc name /storage/0449/doc_00260976 to /storage/kkm_last_doc_name [22:02:59]save OK [22:02:59]Clear old archive folders... [22:02:59]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:02:59]tlvbuf is 007BC010 [22:02:59]SAM_PROTO_ClearQueue [22:02:59]wFMCommunicate request_size=4 [22:02:59]MH_SAM_APDU [22:02:59]CAPDU: 80 09 00 00 [22:02:59]Write to MH i2c: E2 08 00 C3 D6 80 09 00 00 00 00 00 00 0B [22:02:59]Write i2c OK [22:02:59]MH_I2C_Read... [22:02:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:02:59]Read from MH i2c: E2 [22:02:59]MH_I2C_Read... [22:02:59]Read from MH i2c: E2 03 00 [22:02:59]MH_I2C_Read... [22:02:59]Read from MH i2c: E2 03 00 C3 D6 00 90 00 0D [22:02:59]RAPDU: 90 00 [22:02:59]wFMCommunicate OK [22:02:59]SAM_PROTO_ClearQueue done [22:02:59]KKMCreateOFDPacket [22:02:59]OFDProtocolAddRootSTLVToBuf [22:02:59]FM_MakeSignedData [22:02:59]FM_MakeSignedData [22:02:59]SAM_PROTO_SignData [22:02:59]wFMCommunicate request_size=4 [22:02:59]MH_SAM_APDU [22:02:59]CAPDU: 80 0D 01 02 [22:02:59]Write to MH i2c: E2 08 00 C4 D6 80 0D 01 02 00 00 00 00 13 [22:02:59]Write i2c OK [22:02:59]MH_I2C_Read... [22:02:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:02:59]Read from MH i2c: E2 [22:02:59]MH_I2C_Read... [22:02:59]Read from MH i2c: E2 03 00 [22:02:59]MH_I2C_Read... [22:02:59]Read from MH i2c: E2 03 00 C4 D6 00 90 00 0E [22:02:59]RAPDU: 90 00 [22:02:59]wFMCommunicate OK [22:02:59]wFMCommunicate request_size=255 [22:02:59]MH_SAM_APDU [22:02:59]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 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 16 02 00 00 F4 03 04 00 99 6F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 70 FB 03 00 35 04 06 00 [22:02:59]Write to MH i2c: E2 02 01 C5 D6 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 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 16 02 00 00 F4 03 04 00 99 6F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 70 FB 03 00 35 04 06 00 00 00 2C [22:02:59]Write i2c OK [22:02:59]MH_I2C_Read... [22:02:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:59]Read from MH i2c: E2 [22:02:59]MH_I2C_Read... [22:02:59]Read from MH i2c: E2 03 00 [22:02:59]MH_I2C_Read... [22:02:59]Read from MH i2c: E2 03 00 C5 D6 00 90 00 0F [22:02:59]RAPDU: 90 00 [22:02:59]wFMCommunicate OK [22:02:59]wFMCommunicate request_size=11 [22:02:59]MH_SAM_APDU [22:02:59]CAPDU: 80 0D 02 02 06 84 7F 02 85 29 CD [22:02:59]Write to MH i2c: E2 0E 00 C6 D6 80 0D 02 02 06 00 84 7F 02 85 29 CD 00 00 A2 [22:02:59]Write i2c OK [22:02:59]MH_I2C_Read... [22:02:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:59]Read from MH i2c: E2 [22:02:59]MH_I2C_Read... [22:02:59]Read from MH i2c: E2 03 00 [22:02:59]MH_I2C_Read... [22:02:59]Read from MH i2c: E2 03 00 C6 D6 00 90 00 10 [22:02:59]RAPDU: 90 00 [22:02:59]wFMCommunicate OK [22:02:59]wFMCommunicate request_size=4 [22:02:59]MH_SAM_APDU [22:02:59]CAPDU: 80 0D 03 02 [22:02:59]Write to MH i2c: E2 08 00 C7 D6 80 0D 03 02 00 00 00 00 18 [22:02:59]Write i2c OK [22:02:59]MH_I2C_Read... [22:02:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:02:59]Read from MH i2c: E2 [22:02:59]MH_I2C_Read... [22:02:59]Read from MH i2c: E2 0B 00 [22:02:59]MH_I2C_Read... [22:02:59]Read from MH i2c: E2 0B 00 C7 D6 00 05 8A E6 CA 27 AF FA 35 90 00 5D [22:02:59]RAPDU: 05 8A E6 CA 27 AF FA 35 90 00 [22:02:59]wFMCommunicate OK [22:02:59]SAM_PROTO_SignData done [22:02:59]FM_MakeSignedData done [22:02:59]CreateOFDProtocolMessage [22:02:59]wFMCommunicate request_size=4 [22:02:59]MH_SAM_APDU [22:02:59]CAPDU: 80 11 00 00 [22:02:59]Write to MH i2c: E2 08 00 C8 D6 80 11 00 00 00 00 00 00 18 [22:02:59]Write i2c OK [22:02:59]MH_I2C_Read... [22:02:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:59]Read from MH i2c: E2 [22:02:59]MH_I2C_Read... [22:02:59]Read from MH i2c: E2 17 00 [22:02:59]MH_I2C_Read... [22:02:59]Read from MH i2c: E2 17 00 C8 D6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 65 [22:02:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:02:59]wFMCommunicate OK [22:02:59]CreateOFDProtocolMessage done [22:02:59]OFDSenderStorePacket 260976 [22:02:59]StoreOFDPacket docnum=260976 [22:02:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 0B 38 08 01 EF E2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 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 16 02 00 00 F4 03 04 00 99 6F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 70 FB 03 00 35 04 06 00 84 7F 02 85 29 CD 05 8A E6 CA 27 AF FA 35 [22:02:59]CheckFolder [22:02:59]dirname=/storage/ofd_packets [22:02:59]CheckFolder done [22:02:59]ProducePacketName [22:02:59]name=ofd_packets/00260976 [22:02:59]NVStorageSaveData ofd_packets/00260976 [22:02:59]File name is /storage/ofd_packets/00260976 [22:02:59]Write 302 bytes [22:02:59]NVStorageSaveData done [22:02:59]OFDSenderStorePacket done [22:02:59]KKMCreateOFDPacket done [22:02:59]NVStorageSaveData kkm_last_timestamp [22:02:59]File name is /storage/kkm_last_timestamp [22:02:59]Write 4 bytes [22:02:59]NVStorageSaveData done [22:02:59]ExternCall_PrintAddStr [22:02:59]wPrintStart [22:02:59]Write to MH i2c: 01 00 00 C9 D6 9F [22:02:59]Write i2c OK [22:02:59]MH_I2C_Read... [22:02:59]Read from MH i2c: 01 [22:02:59]MH_I2C_Read... [22:02:59]Read from MH i2c: 01 07 00 [22:02:59]MH_I2C_Read... [22:02:59]Read from MH i2c: 01 07 00 C9 D6 00 00 00 00 00 FF 0F B4 [22:02:59]RasterBufferAndPrint [22:02:59]line Счет N : (1)1036529 [22:02:59]line ИНН: 02508201610067 [22:02:59]line Контрольно-Кассовый Чек [22:02:59]line ПРОДАЖА [22:02:59]line ТРК (МРК, ГНК) : 43 [22:02:59]line Товар: 2710194210 [22:02:59]line ДТ(л)-К-4 [22:02:59]line 39.380 * 76.20 [22:02:59]line = 3000.76 [22:02:59]line НДС 12% НСП 1% [22:02:59]line > о реализуемом товаре [22:02:59]line ОКРУГЛЕНИЕ: -0.76 [22:02:59]line ИТОГО: 3000.00 [22:02:59]line Внесено: 3000.00 [22:02:59]line СДАЧА: 0.00 [22:02:59]line НСП 1% : 26.55 [22:02:59]line НДС 12% : 318.66 [22:02:59]line Наличными: 3000.00 [22:02:59]line Безнал.: 0.00 [22:02:59]line Место: АЗС № 94 "Партнер Нефть" [22:02:59]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [22:02:59]line СНО: Общий режим [22:02:59]line Чек 534 18.08.2024 22:03 [22:02:59]line Смена: 449 ФФД: 1.0 [22:02:59]line ЗНМ: 0300000099 [22:02:59]line РНМ: 0000000000091865 [22:02:59]line Версия ККМ: 001 [22:02:59]line ФМ: 0000000000871820 [22:02:59]line ФД: 260976 [22:02:59]line ФПД: 145681037994445 [22:02:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T220305&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260976&fm=145681037994445&tin=02508201610067®Number=0000000000091865&sum=300000 [22:02:59]OFD Sender: Processing packet 260976 [packets to send 192, broken 191] [22:02:59]ProducePacketName [22:02:59]name=ofd_packets/00260976 [22:02:59]OFD Sender: To server: pG, [22:02:59]CommunicateWithHost lk.salyk.kg:30040 [22:02:59]ConnectInit lk.salyk.kg [22:02:59]written 0, free lines is 4095 [22:03:00]Connected sock=10 [22:03: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 30 10 01 00 00 0B 38 08 01 EF E2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 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 16 02 00 00 F4 03 04 00 99 6F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 70 FB 03 00 35 04 06 00 84 7F 02 85 29 CD 05 8A E6 CA 27 AF FA 35 [22:03: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 30 4F 00 00 00 7F 0A 47 00 4A 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 30 10 04 04 00 70 FB 03 00 F4 03 04 00 EC 18 C2 66 B6 04 01 00 00 F0 2E 2B 46 1F 82 B5 5F [22:03:00]CommunicateWithHost err = 0 [22:03:00]CheckOFDResponse [22:03:00]1017 (14) - 77093643461234 [22:03:00]1041 (16) - 0000000000871820 [22:03:00]1040 (4) - 260976 [22:03:00]1012 (4) - 18.08.2024 15:53 [22:03:00]1206 (1) - 0 [22:03:00]OFD Sender: Remove packet 260976 [22:03:00]ProducePacketName [22:03:00]name=ofd_packets/00260976 [22:03:00]NVStorageDeleteData [22:03:00]Write to MH i2c: 01 00 00 F4 D6 CA [22:03:00]Write i2c OK [22:03:00]MH_I2C_Read... [22:03:00]Read from MH i2c: 01 [22:03:00]MH_I2C_Read... [22:03:00]Read from MH i2c: 01 07 00 [22:03:00]MH_I2C_Read... [22:03:00]Read from MH i2c: 01 07 00 F4 D6 00 00 00 00 00 6B 0C 48 [22:03:00]RasterBufferAndPrint [22:03:00]line [22:03:00]line [22:03:00]line [22:03:00]line [22:03:00]line [22:03:00]written 0, free lines is 3183 [22:03:00]MH_Cut [22:03:00]Write to MH i2c: D1 01 00 FB D6 01 A3 [22:03:00]Write i2c OK [22:03:00]MH_I2C_Read... [22:03:00]Read from MH i2c: D1 [22:03:00]MH_I2C_Read... [22:03:00]Read from MH i2c: D1 01 00 [22:03:00]MH_I2C_Read... [22:03:00]Read from MH i2c: D1 01 00 FB D6 00 A2 [22:03:00]Write to MH i2c: 01 00 00 FC D6 D2 [22:03:00]Write i2c OK [22:03:00]MH_I2C_Read... [22:03:00]OFD Sender: No OFD packet to send [22:03:01]*** Cut start [22:03:01]*** Purtial cut [22:03:01]*** Stage 1: CUTSNS_PIN = 1 [22:03:03]Read from MH i2c: 01 [22:03:03]MH_I2C_Read... [22:03:03]*** Stop cut motor [22:03:03]*** Cut end [22:03:03]Read from MH i2c: 01 07 00 [22:03:03]MH_I2C_Read... [22:03:03]Read from MH i2c: 01 07 00 FC D6 00 00 00 00 00 FF 0F E7 [22:03:03]process_action close_receipt done [22:03:03]requested_data is exist [22:03:03]produce_requested_data [22:03:03]requested_item fm.sn is exist - process it [22:03:03]wFMCommunicate request_size=4 [22:03:03]MH_SAM_APDU [22:03:03]CAPDU: 80 11 00 00 [22:03:03]Write to MH i2c: E2 08 00 FD D6 80 11 00 00 00 00 00 00 4D [22:03:03]Write i2c OK [22:03:03]MH_I2C_Read... [22:03:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:03:03]Read from MH i2c: E2 [22:03:03]MH_I2C_Read... [22:03:03]Read from MH i2c: E2 17 00 [22:03:03]MH_I2C_Read... [22:03:03]Read from MH i2c: E2 17 00 FD D6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 9A [22:03:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:03:03]wFMCommunicate OK [22:03:03]requested_item fd.num is exist - process it [22:03:03]SAM_PROTO_GetFieldsCounters [22:03:03]wFMCommunicate request_size=4 [22:03:03]MH_SAM_APDU [22:03:03]CAPDU: 80 13 00 00 [22:03:03]Write to MH i2c: E2 08 00 FE D6 80 13 00 00 00 00 00 00 50 [22:03:03]Write i2c OK [22:03:03]MH_I2C_Read... [22:03:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:03:03]Read from MH i2c: E2 [22:03:03]MH_I2C_Read... [22:03:03]Read from MH i2c: E2 62 00 [22:03:03]MH_I2C_Read... [22:03:03]Read from MH i2c: E2 62 00 FE D6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 70 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 16 02 00 00 5E 04 04 00 16 02 00 00 57 04 04 00 17 02 00 00 19 04 04 00 00 00 00 00 90 00 E7 [22:03: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 70 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 16 02 00 00 5E 04 04 00 16 02 00 00 57 04 04 00 17 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:03:03]wFMCommunicate OK [22:03:03]SAM_PROTO_GetFieldsCounters done [22:03:03]requested_item shift.num is exist - process it [22:03:03]requested_item shift.opened is exist - process it [22:03:03]req_shift_opened [22:03:03]FM_GetShiftState [22:03:03]SAM_PROTO_GetShiftState [22:03:03]wFMCommunicate request_size=4 [22:03:03]MH_SAM_APDU [22:03:03]CAPDU: 80 13 01 00 [22:03:03]Write to MH i2c: E2 08 00 FF D6 80 13 01 00 00 00 00 00 52 [22:03:03]Write i2c OK [22:03:03]MH_I2C_Read... [22:03:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:03:03]Read from MH i2c: E2 [22:03:03]MH_I2C_Read... [22:03:03]Read from MH i2c: E2 0E 00 [22:03:03]MH_I2C_Read... [22:03:03]Read from MH i2c: E2 0E 00 FF D6 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 8F [22:03:03]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:03:03]wFMCommunicate OK [22:03:03]SAM_PROTO_GetShiftState done [22:03:03]FM_GetShiftState done [22:03:03]req_shift_opened done [22:03:03]requested_item shift.open_date is exist - process it [22:03:03]req_shift_open_date [22:03:03]req_shift_open_date done [22:03:03]produce_requested_data done [22:03:03]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260976,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [22:03:03]process_action_free close_receipt [22:03:03]json_value_free [22:03:03]json_value_free done [22:03:03]process_json_proto returns [22:03:03]Send response to host [22:03:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260976,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [22:03:03]free response buf [22:03:03]execute_script done [22:03:03]execute_script returns [22:03:03]free content buf [22:03:03]Sock 9.Close socket [22:03:03]Sock 9.Thread stoped [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:51]OFD Sender: No OFD packet to send [22:05:56]OFD Sender: No OFD packet to send [22:06:01]OFD Sender: No OFD packet to send [22:06:06]OFD Sender: No OFD packet to send [22:06:11]OFD Sender: No OFD packet to send [22:06:16]OFD Sender: No OFD packet to send [22:06:21]OFD Sender: No OFD packet to send [22:06:26]OFD Sender: No OFD packet to send [22:06:31]OFD Sender: No OFD packet to send [22:06:36]OFD Sender: No OFD packet to send [22:06:41]OFD Sender: No OFD packet to send [22:06:46]OFD Sender: No OFD packet to send [22:06:51]OFD Sender: No OFD packet to send [22:06:56]OFD Sender: No OFD packet to send [22:07:01]OFD Sender: No OFD packet to send [22:07:06]OFD Sender: No OFD packet to send [22:07:11]OFD Sender: No OFD packet to send [22:07:16]OFD Sender: No OFD packet to send [22:07:21]OFD Sender: No OFD packet to send [22:07:26]OFD Sender: No OFD packet to send [22:07:31]OFD Sender: No OFD packet to send [22:07:36]OFD Sender: No OFD packet to send [22:07:41]OFD Sender: No OFD packet to send [22:07:46]OFD Sender: No OFD packet to send [22:07:51]OFD Sender: No OFD packet to send [22:07:56]OFD Sender: No OFD packet to send [22:08:01]OFD Sender: No OFD packet to send [22:08:06]OFD Sender: No OFD packet to send [22:08:08]accept exits with 7 [22:08:08]New connection [22:08:08]New thread 3066617188 created [22:08:08]Thread 3066473828 joined [22:08:08]Waiting for new connection... [22:08:08] Sock 7.Parse request [22:08:08]Sock 7.Check first char [22:08:08]Sock 7.First char is OK [22:08:08]request: POST /json_proto HTTP/1.0 [22:08:08]Method: POST [22:08:08]URL: /json_proto [22:08:08]Method is POST - this is cgi request [22:08:08]url: /json_proto [22:08:08]query_string will be loaded in cgi processing [22:08:08]execute_cgi json_proto POST (null) [22:08:08]execute_cgi path=json_proto method=POST [22:08:08]POST find Content-Length [22:08:08]Host: 172.17.55.133:8080 [22:08:08]Content-Length: 801 [22:08:08]Content-Type: application/json [22:08:08] [22:08:08]POST finish read [22:08:08]Found Content-Length = 801 [22:08:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:08:08]execute_script... [22:08: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)1036530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:08:08]POST & json_proto [22:08:08]process_json_proto [22:08:08]json parsed OK: [22:08:08]protocol is kg_v1.0 [22:08:08]action value=close_receipt [22:08:08]process_action close_receipt [22:08:08]cmd_close_receipt [22:08:08]MH_GetDate [22:08:08]Write to MH i2c: F0 00 00 00 D7 C6 [22:08:08]Write i2c OK [22:08:08]MH_I2C_Read... [22:08:08]Read from MH i2c: F0 [22:08:08]MH_I2C_Read... [22:08:08]Read from MH i2c: F0 09 00 [22:08:08]MH_I2C_Read... [22:08:08]Read from MH i2c: F0 09 00 00 D7 00 CF 70 C2 66 34 48 D8 65 EF [22:08:08]GetLastDocTimeStamp 1724018585 [22:08:08]current date 1724018895 [22:08:08]FM_GetShiftState [22:08:08]SAM_PROTO_GetShiftState [22:08:08]wFMCommunicate request_size=4 [22:08:08]MH_SAM_APDU [22:08:08]CAPDU: 80 13 01 00 [22:08:08]Write to MH i2c: E2 08 00 01 D7 80 13 01 00 00 00 00 00 55 [22:08:08]Write i2c OK [22:08:08]MH_I2C_Read... [22:08:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:08]Read from MH i2c: E2 [22:08:08]MH_I2C_Read... [22:08:08]Read from MH i2c: E2 0E 00 [22:08:08]MH_I2C_Read... [22:08:08]Read from MH i2c: E2 0E 00 01 D7 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 92 [22:08:08]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:08:08]wFMCommunicate OK [22:08:08]SAM_PROTO_GetShiftState done [22:08:08]FM_GetShiftState done [22:08:08]opened in 1723940556 [22:08:08]opened+sec_in_day 1724026956 [22:08:08]quantity*price = 40002 [22:08:08]sum+1 = 40003 [22:08:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.02 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.02 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 535 18.08.2024 22:08 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260977 ФПД: 227950366681969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T220815&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260977&fm=227950366681969&tin=02508201610067®Number=0000000000091865&sum=40002 [22:08:09]StoreToDocumentArchive [22:08:09]shift 449 fd 260977 [22:08:09]save to /storage/0449/doc_00260977 [22:08:09]save last doc name /storage/0449/doc_00260977 to /storage/kkm_last_doc_name [22:08:09]save OK [22:08:09]Clear old archive folders... [22:08:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:08:09]tlvbuf is 004A4850 [22:08:09]SAM_PROTO_ClearQueue [22:08:09]wFMCommunicate request_size=4 [22:08:09]MH_SAM_APDU [22:08:09]CAPDU: 80 09 00 00 [22:08:09]Write to MH i2c: E2 08 00 0E D7 80 09 00 00 00 00 00 00 57 [22:08:09]Write i2c OK [22:08:09]MH_I2C_Read... [22:08:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:08:09]Read from MH i2c: E2 [22:08:09]MH_I2C_Read... [22:08:09]Read from MH i2c: E2 03 00 [22:08:09]MH_I2C_Read... [22:08:09]Read from MH i2c: E2 03 00 0E D7 00 90 00 59 [22:08:09]RAPDU: 90 00 [22:08:09]wFMCommunicate OK [22:08:09]SAM_PROTO_ClearQueue done [22:08:09]KKMCreateOFDPacket [22:08:09]OFDProtocolAddRootSTLVToBuf [22:08:09]FM_MakeSignedData [22:08:09]FM_MakeSignedData [22:08:09]SAM_PROTO_SignData [22:08:09]wFMCommunicate request_size=4 [22:08:09]MH_SAM_APDU [22:08:09]CAPDU: 80 0D 01 02 [22:08:09]Write to MH i2c: E2 08 00 0F D7 80 0D 01 02 00 00 00 00 5F [22:08:09]Write i2c OK [22:08:09]MH_I2C_Read... [22:08:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:08:09]Read from MH i2c: E2 [22:08:09]MH_I2C_Read... [22:08:09]Read from MH i2c: E2 03 00 [22:08:09]MH_I2C_Read... [22:08:09]Read from MH i2c: E2 03 00 0F D7 00 90 00 5A [22:08:09]RAPDU: 90 00 [22:08:09]wFMCommunicate OK [22:08:09]wFMCommunicate request_size=255 [22:08:09]MH_SAM_APDU [22:08:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 02 00 00 F4 03 04 00 CF 70 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 71 FB 03 00 35 04 06 00 CF [22:08:09]Write to MH i2c: E2 02 01 10 D7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 02 00 00 F4 03 04 00 CF 70 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 71 FB 03 00 35 04 06 00 CF 00 00 45 [22:08:09]Write i2c OK [22:08:09]MH_I2C_Read... [22:08:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:09]Read from MH i2c: E2 [22:08:09]MH_I2C_Read... [22:08:09]Read from MH i2c: E2 03 00 [22:08:09]MH_I2C_Read... [22:08:09]Read from MH i2c: E2 03 00 10 D7 00 90 00 5B [22:08:09]RAPDU: 90 00 [22:08:09]wFMCommunicate OK [22:08:09]wFMCommunicate request_size=10 [22:08:09]MH_SAM_APDU [22:08:09]CAPDU: 80 0D 02 02 05 51 D4 A1 EB 71 [22:08:09]Write to MH i2c: E2 0D 00 11 D7 80 0D 02 02 05 00 51 D4 A1 EB 71 00 00 8E [22:08:09]Write i2c OK [22:08:09]MH_I2C_Read... [22:08:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:09]Read from MH i2c: E2 [22:08:09]MH_I2C_Read... [22:08:09]Read from MH i2c: E2 03 00 [22:08:09]MH_I2C_Read... [22:08:09]Read from MH i2c: E2 03 00 11 D7 00 90 00 5C [22:08:09]RAPDU: 90 00 [22:08:09]wFMCommunicate OK [22:08:09]wFMCommunicate request_size=4 [22:08:09]MH_SAM_APDU [22:08:09]CAPDU: 80 0D 03 02 [22:08:09]Write to MH i2c: E2 08 00 12 D7 80 0D 03 02 00 00 00 00 64 [22:08:09]Write i2c OK [22:08:09]MH_I2C_Read... [22:08:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:08:09]Read from MH i2c: E2 [22:08:09]MH_I2C_Read... [22:08:09]Read from MH i2c: E2 0B 00 [22:08:09]MH_I2C_Read... [22:08:09]Read from MH i2c: E2 0B 00 12 D7 00 A9 D9 B8 09 41 BB 88 4A 90 00 76 [22:08:09]RAPDU: A9 D9 B8 09 41 BB 88 4A 90 00 [22:08:09]wFMCommunicate OK [22:08:09]SAM_PROTO_SignData done [22:08:09]FM_MakeSignedData done [22:08:09]CreateOFDProtocolMessage [22:08:09]wFMCommunicate request_size=4 [22:08:09]MH_SAM_APDU [22:08:09]CAPDU: 80 11 00 00 [22:08:09]Write to MH i2c: E2 08 00 13 D7 80 11 00 00 00 00 00 00 64 [22:08:09]Write i2c OK [22:08:09]MH_I2C_Read... [22:08:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:09]Read from MH i2c: E2 [22:08:09]MH_I2C_Read... [22:08:09]Read from MH i2c: E2 17 00 [22:08:09]MH_I2C_Read... [22:08:09]Read from MH i2c: E2 17 00 13 D7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B1 [22:08:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:08:09]wFMCommunicate OK [22:08:09]CreateOFDProtocolMessage done [22:08:09]OFDSenderStorePacket 260977 [22:08:09]StoreOFDPacket docnum=260977 [22:08:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 09 16 07 01 00 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 02 00 00 F4 03 04 00 CF 70 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 71 FB 03 00 35 04 06 00 CF 51 D4 A1 EB 71 A9 D9 B8 09 41 BB 88 4A [22:08:09]CheckFolder [22:08:09]dirname=/storage/ofd_packets [22:08:09]CheckFolder done [22:08:09]ProducePacketName [22:08:09]name=ofd_packets/00260977 [22:08:09]NVStorageSaveData ofd_packets/00260977 [22:08:09]File name is /storage/ofd_packets/00260977 [22:08:09]Write 301 bytes [22:08:09]NVStorageSaveData done [22:08:09]OFDSenderStorePacket done [22:08:09]KKMCreateOFDPacket done [22:08:09]NVStorageSaveData kkm_last_timestamp [22:08:09]File name is /storage/kkm_last_timestamp [22:08:09]Write 4 bytes [22:08:09]NVStorageSaveData done [22:08:09]ExternCall_PrintAddStr [22:08:09]wPrintStart [22:08:09]Write to MH i2c: 01 00 00 14 D7 EB [22:08:09]Write i2c OK [22:08:09]MH_I2C_Read... [22:08:09]Read from MH i2c: 01 [22:08:09]MH_I2C_Read... [22:08:09]Read from MH i2c: 01 07 00 [22:08:09]MH_I2C_Read... [22:08:09]Read from MH i2c: 01 07 00 14 D7 00 00 00 00 00 FF 0F 00 [22:08:09]RasterBufferAndPrint [22:08:09]line Счет N : (1)1036530 [22:08:09]line ИНН: 02508201610067 [22:08:09]line Контрольно-Кассовый Чек [22:08:09]line ПРОДАЖА [22:08:09]line ТРК (МРК, ГНК) : 22 [22:08:09]line Товар: 2710124130 [22:08:09]line Аи-92-К-5 [22:08:09]line 5.900 * 67.80 [22:08:09]line = 400.02 [22:08:09]line НДС 12% НСП 1% [22:08:09]line > о реализуемом товаре [22:08:09]line ИТОГО: 400.02 [22:08:09]line НСП 1% : 3.54 [22:08:09]line НДС 12% : 42.48 [22:08:09]line Наличными: 0.00 [22:08:09]line Безнал.: 400.02 [22:08:09]line Место: АЗС № 94 "Партнер Нефть" [22:08:09]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [22:08:09]line СНО: Общий режим [22:08:09]line Чек 535 18.08.2024 22:08 [22:08:09]line Смена: 449 ФФД: 1.0 [22:08:09]line ЗНМ: 0300000099 [22:08:09]line РНМ: 0000000000091865 [22:08:09]line Версия ККМ: 001 [22:08:09]line Платежная система: O! деньги [22:08:09]line ФМ: 0000000000871820 [22:08:09]line ФД: 260977 [22:08:09]line ФПД: 227950366681969 [22:08:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T220815&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260977&fm=227950366681969&tin=02508201610067®Number=0000000000091865&sum=40002 [22:08:10]OFD Sender: Processing packet 260977 [packets to send 192, broken 191] [22:08:10]ProducePacketName [22:08:10]name=ofd_packets/00260977 [22:08:10]OFD Sender: To server: pG, [22:08:10]CommunicateWithHost lk.salyk.kg:30040 [22:08:10]ConnectInit lk.salyk.kg [22:08:10]written 0, free lines is 4095 [22:08:10]Connected sock=10 [22:08: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 30 0F 01 00 00 09 16 07 01 00 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 02 00 00 F4 03 04 00 CF 70 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 71 FB 03 00 35 04 06 00 CF 51 D4 A1 EB 71 A9 D9 B8 09 41 BB 88 4A [22:08: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 30 4F 00 00 00 01 DB 47 00 B2 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 30 10 04 04 00 71 FB 03 00 F4 03 04 00 23 1A C2 66 B6 04 01 00 00 06 AF 3F 99 55 F0 55 88 [22:08:10]CommunicateWithHost err = 0 [22:08:10]CheckOFDResponse [22:08:10]1017 (14) - 77093643461234 [22:08:10]1041 (16) - 0000000000871820 [22:08:10]1040 (4) - 260977 [22:08:10]1012 (4) - 18.08.2024 15:58 [22:08:10]1206 (1) - 0 [22:08:10]OFD Sender: Remove packet 260977 [22:08:10]ProducePacketName [22:08:10]name=ofd_packets/00260977 [22:08:10]NVStorageDeleteData [22:08:10]Write to MH i2c: 01 00 00 3E D7 15 [22:08:10]Write i2c OK [22:08:10]MH_I2C_Read... [22:08:10]Read from MH i2c: 01 [22:08:10]MH_I2C_Read... [22:08:10]Read from MH i2c: 01 07 00 [22:08:10]MH_I2C_Read... [22:08:10]Read from MH i2c: 01 07 00 3E D7 00 00 00 00 00 84 0C AC [22:08:10]RasterBufferAndPrint [22:08:10]line [22:08:10]line [22:08:10]line [22:08:10]line [22:08:10]line [22:08:10]written 0, free lines is 3209 [22:08:10]MH_Cut [22:08:10]Write to MH i2c: D1 01 00 45 D7 01 EE [22:08:10]Write i2c OK [22:08:10]MH_I2C_Read... [22:08:10]Read from MH i2c: D1 [22:08:10]MH_I2C_Read... [22:08:10]Read from MH i2c: D1 01 00 [22:08:10]MH_I2C_Read... [22:08:10]Read from MH i2c: D1 01 00 45 D7 00 ED [22:08:10]Write to MH i2c: 01 00 00 46 D7 1D [22:08:10]Write i2c OK [22:08:10]MH_I2C_Read... [22:08:11]OFD Sender: No OFD packet to send [22:08:11]*** Cut start [22:08:11]*** Purtial cut [22:08:11]*** Stage 1: CUTSNS_PIN = 1 [22:08:13]Read from MH i2c: 01 [22:08:14]MH_I2C_Read... [22:08:14]*** Stop cut motor [22:08:14]*** Cut end [22:08:14]Read from MH i2c: 01 07 00 [22:08:14]MH_I2C_Read... [22:08:14]Read from MH i2c: 01 07 00 46 D7 00 00 00 00 00 FF 0F 32 [22:08:14]process_action close_receipt done [22:08:14]requested_data is exist [22:08:14]produce_requested_data [22:08:14]requested_item fm.sn is exist - process it [22:08:14]wFMCommunicate request_size=4 [22:08:14]MH_SAM_APDU [22:08:14]CAPDU: 80 11 00 00 [22:08:14]Write to MH i2c: E2 08 00 47 D7 80 11 00 00 00 00 00 00 98 [22:08:14]Write i2c OK [22:08:14]MH_I2C_Read... [22:08:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:14]Read from MH i2c: E2 [22:08:14]MH_I2C_Read... [22:08:14]Read from MH i2c: E2 17 00 [22:08:14]MH_I2C_Read... [22:08:14]Read from MH i2c: E2 17 00 47 D7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E5 [22:08:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:08:14]wFMCommunicate OK [22:08:14]requested_item fd.num is exist - process it [22:08:14]SAM_PROTO_GetFieldsCounters [22:08:14]wFMCommunicate request_size=4 [22:08:14]MH_SAM_APDU [22:08:14]CAPDU: 80 13 00 00 [22:08:14]Write to MH i2c: E2 08 00 48 D7 80 13 00 00 00 00 00 00 9B [22:08:14]Write i2c OK [22:08:14]MH_I2C_Read... [22:08:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:08:14]Read from MH i2c: E2 [22:08:14]MH_I2C_Read... [22:08:14]Read from MH i2c: E2 62 00 [22:08:14]MH_I2C_Read... [22:08:14]Read from MH i2c: E2 62 00 48 D7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 71 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 17 02 00 00 5E 04 04 00 17 02 00 00 57 04 04 00 18 02 00 00 19 04 04 00 00 00 00 00 90 00 36 [22: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 71 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 17 02 00 00 5E 04 04 00 17 02 00 00 57 04 04 00 18 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:08:14]wFMCommunicate OK [22:08:14]SAM_PROTO_GetFieldsCounters done [22:08:14]requested_item shift.num is exist - process it [22:08:14]requested_item shift.opened is exist - process it [22:08:14]req_shift_opened [22:08:14]FM_GetShiftState [22:08:14]SAM_PROTO_GetShiftState [22:08:14]wFMCommunicate request_size=4 [22:08:14]MH_SAM_APDU [22:08:14]CAPDU: 80 13 01 00 [22:08:14]Write to MH i2c: E2 08 00 49 D7 80 13 01 00 00 00 00 00 9D [22:08:14]Write i2c OK [22:08:14]MH_I2C_Read... [22:08:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:14]Read from MH i2c: E2 [22:08:14]MH_I2C_Read... [22:08:14]Read from MH i2c: E2 0E 00 [22:08:14]MH_I2C_Read... [22:08:14]Read from MH i2c: E2 0E 00 49 D7 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 DA [22:08:14]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:08:14]wFMCommunicate OK [22:08:14]SAM_PROTO_GetShiftState done [22:08:14]FM_GetShiftState done [22:08:14]req_shift_opened done [22:08:14]requested_item shift.open_date is exist - process it [22:08:14]req_shift_open_date [22:08:14]req_shift_open_date done [22:08:14]produce_requested_data done [22:08:14]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260977,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [22:08:14]process_action_free close_receipt [22:08:14]json_value_free [22:08:14]json_value_free done [22:08:14]process_json_proto returns [22:08:14]Send response to host [22:08:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260977,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [22:08:14]free response buf [22:08:14]execute_script done [22:08:14]execute_script returns [22:08:14]free content buf [22:08:14]Sock 7.Close socket [22:08:14]Sock 7.Thread stoped [22:08:16]OFD Sender: No OFD packet to send [22:08:21]OFD Sender: No OFD packet to send [22:08:26]OFD Sender: No OFD packet to send [22:08:31]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:48]accept exits with 9 [22:09:48]New connection [22:09:48]New thread 3066473828 created [22:09:48]Thread 3066617188 joined [22:09:48]Waiting for new connection... [22:09:48] Sock 9.Parse request [22:09:48]Sock 9.Check first char [22:09:48]Sock 9.First char is OK [22:09:48]request: POST /json_proto HTTP/1.0 [22:09:48]Method: POST [22:09:48]URL: /json_proto [22:09:48]Method is POST - this is cgi request [22:09:48]url: /json_proto [22:09:48]query_string will be loaded in cgi processing [22:09:48]execute_cgi json_proto POST (null) [22:09:48]execute_cgi path=json_proto method=POST [22:09:48]POST find Content-Length [22:09:48]Host: 172.17.55.133:8080 [22:09:48]Content-Length: 683 [22:09:48]Content-Type: application/json [22:09:48] [22:09:48]POST finish read [22:09:48]Found Content-Length = 683 [22:09:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 2.630, "sum" : 200.41, "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" ] } } [22:09:48]execute_script... [22:09: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)1036531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 2.630, "sum" : 200.41, "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" ] } } [22:09:48]POST & json_proto [22:09:48]process_json_proto [22:09:48]json parsed OK: [22:09:48]protocol is kg_v1.0 [22:09:48]action value=close_receipt [22:09:48]process_action close_receipt [22:09:48]cmd_close_receipt [22:09:48]MH_GetDate [22:09:48]Write to MH i2c: F0 00 00 4A D7 10 [22:09:48]Write i2c OK [22:09:48]MH_I2C_Read... [22:09:48]Read from MH i2c: F0 [22:09:48]MH_I2C_Read... [22:09:48]Read from MH i2c: F0 09 00 [22:09:48]MH_I2C_Read... [22:09:48]Read from MH i2c: F0 09 00 4A D7 00 33 71 C2 66 34 48 D8 65 9E [22:09:48]GetLastDocTimeStamp 1724018895 [22:09:48]current date 1724018995 [22:09:48]FM_GetShiftState [22:09:48]SAM_PROTO_GetShiftState [22:09:48]wFMCommunicate request_size=4 [22:09:48]MH_SAM_APDU [22:09:48]CAPDU: 80 13 01 00 [22:09:48]Write to MH i2c: E2 08 00 4B D7 80 13 01 00 00 00 00 00 9F [22:09:48]Write i2c OK [22:09:48]MH_I2C_Read... [22:09:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:48]Read from MH i2c: E2 [22:09:48]MH_I2C_Read... [22:09:48]Read from MH i2c: E2 0E 00 [22:09:48]MH_I2C_Read... [22:09:48]Read from MH i2c: E2 0E 00 4B D7 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 DC [22:09:48]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:09:48]wFMCommunicate OK [22:09:48]SAM_PROTO_GetShiftState done [22:09:48]FM_GetShiftState done [22:09:48]opened in 1723940556 [22:09:48]opened+sec_in_day 1724026956 [22:09:48]quantity*price = 20040 [22:09:48]sum+1 = 20042 [22:09:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 536 18.08.2024 22:09 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260978 ФПД: 91216603091676 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T220955&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260978&fm=91216603091676&tin=02508201610067®Number=0000000000091865&sum=20000 [22:09:49]StoreToDocumentArchive [22:09:49]shift 449 fd 260978 [22:09:49]save to /storage/0449/doc_00260978 [22:09:49]save last doc name /storage/0449/doc_00260978 to /storage/kkm_last_doc_name [22:09:49]save OK [22:09:49]Clear old archive folders... [22:09:49]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:09:49]tlvbuf is 004538D0 [22:09:49]SAM_PROTO_ClearQueue [22:09:49]wFMCommunicate request_size=4 [22:09:49]MH_SAM_APDU [22:09:49]CAPDU: 80 09 00 00 [22:09:49]Write to MH i2c: E2 08 00 58 D7 80 09 00 00 00 00 00 00 A1 [22:09:49]Write i2c OK [22:09:49]MH_I2C_Read... [22:09:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:09:49]Read from MH i2c: E2 [22:09:49]MH_I2C_Read... [22:09:49]Read from MH i2c: E2 03 00 [22:09:49]MH_I2C_Read... [22:09:49]Read from MH i2c: E2 03 00 58 D7 00 90 00 A3 [22:09:49]RAPDU: 90 00 [22:09:49]wFMCommunicate OK [22:09:49]SAM_PROTO_ClearQueue done [22:09:49]KKMCreateOFDPacket [22:09:49]OFDProtocolAddRootSTLVToBuf [22:09:49]FM_MakeSignedData [22:09:49]FM_MakeSignedData [22:09:49]SAM_PROTO_SignData [22:09:49]wFMCommunicate request_size=4 [22:09:49]MH_SAM_APDU [22:09:49]CAPDU: 80 0D 01 02 [22:09:49]Write to MH i2c: E2 08 00 59 D7 80 0D 01 02 00 00 00 00 A9 [22:09:49]Write i2c OK [22:09:49]MH_I2C_Read... [22:09:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:09:49]Read from MH i2c: E2 [22:09:49]MH_I2C_Read... [22:09:49]Read from MH i2c: E2 03 00 [22:09:49]MH_I2C_Read... [22:09:49]Read from MH i2c: E2 03 00 59 D7 00 90 00 A4 [22:09:49]RAPDU: 90 00 [22:09:49]wFMCommunicate OK [22:09:49]wFMCommunicate request_size=255 [22:09:49]MH_SAM_APDU [22:09:49]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 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 50 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 18 02 00 00 F4 03 04 00 33 71 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 72 FB 03 00 35 04 06 00 [22:09:49]Write to MH i2c: E2 02 01 5A D7 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 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 50 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 18 02 00 00 F4 03 04 00 33 71 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 72 FB 03 00 35 04 06 00 00 00 B0 [22:09:49]Write i2c OK [22:09:49]MH_I2C_Read... [22:09:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:50]Read from MH i2c: E2 [22:09:50]MH_I2C_Read... [22:09:50]Read from MH i2c: E2 03 00 [22:09:50]MH_I2C_Read... [22:09:50]Read from MH i2c: E2 03 00 5A D7 00 90 00 A5 [22:09:50]RAPDU: 90 00 [22:09:50]wFMCommunicate OK [22:09:50]wFMCommunicate request_size=11 [22:09:50]MH_SAM_APDU [22:09:50]CAPDU: 80 0D 02 02 06 52 F6 05 39 92 DC [22:09:50]Write to MH i2c: E2 0E 00 5B D7 80 0D 02 02 06 00 52 F6 05 39 92 DC 00 00 AC [22:09:50]Write i2c OK [22:09:50]MH_I2C_Read... [22:09:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:50]Read from MH i2c: E2 [22:09:50]MH_I2C_Read... [22:09:50]Read from MH i2c: E2 03 00 [22:09:50]MH_I2C_Read... [22:09:50]Read from MH i2c: E2 03 00 5B D7 00 90 00 A6 [22:09:50]RAPDU: 90 00 [22:09:50]wFMCommunicate OK [22:09:50]wFMCommunicate request_size=4 [22:09:50]MH_SAM_APDU [22:09:50]CAPDU: 80 0D 03 02 [22:09:50]Write to MH i2c: E2 08 00 5C D7 80 0D 03 02 00 00 00 00 AE [22:09:50]Write i2c OK [22:09:50]MH_I2C_Read... [22:09:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:09:50]Read from MH i2c: E2 [22:09:50]MH_I2C_Read... [22:09:50]Read from MH i2c: E2 0B 00 [22:09:50]MH_I2C_Read... [22:09:50]Read from MH i2c: E2 0B 00 5C D7 00 85 1E 0E 5D 95 5B E2 07 90 00 96 [22:09:50]RAPDU: 85 1E 0E 5D 95 5B E2 07 90 00 [22:09:50]wFMCommunicate OK [22:09:50]SAM_PROTO_SignData done [22:09:50]FM_MakeSignedData done [22:09:50]CreateOFDProtocolMessage [22:09:50]wFMCommunicate request_size=4 [22:09:50]MH_SAM_APDU [22:09:50]CAPDU: 80 11 00 00 [22:09:50]Write to MH i2c: E2 08 00 5D D7 80 11 00 00 00 00 00 00 AE [22:09:50]Write i2c OK [22:09:50]MH_I2C_Read... [22:09:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:50]Read from MH i2c: E2 [22:09:50]MH_I2C_Read... [22:09:50]Read from MH i2c: E2 17 00 [22:09:50]MH_I2C_Read... [22:09:50]Read from MH i2c: E2 17 00 5D D7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 FB [22:09:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:09:50]wFMCommunicate OK [22:09:50]CreateOFDProtocolMessage done [22:09:50]OFDSenderStorePacket 260978 [22:09:50]StoreOFDPacket docnum=260978 [22:09:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 D9 FE 08 01 17 A6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 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 50 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 18 02 00 00 F4 03 04 00 33 71 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 72 FB 03 00 35 04 06 00 52 F6 05 39 92 DC 85 1E 0E 5D 95 5B E2 07 [22:09:50]CheckFolder [22:09:50]dirname=/storage/ofd_packets [22:09:50]CheckFolder done [22:09:50]ProducePacketName [22:09:50]name=ofd_packets/00260978 [22:09:50]NVStorageSaveData ofd_packets/00260978 [22:09:50]File name is /storage/ofd_packets/00260978 [22:09:50]Write 302 bytes [22:09:50]NVStorageSaveData done [22:09:50]OFDSenderStorePacket done [22:09:50]KKMCreateOFDPacket done [22:09:50]NVStorageSaveData kkm_last_timestamp [22:09:50]File name is /storage/kkm_last_timestamp [22:09:50]Write 4 bytes [22:09:50]NVStorageSaveData done [22:09:50]ExternCall_PrintAddStr [22:09:50]wPrintStart [22:09:50]Write to MH i2c: 01 00 00 5E D7 35 [22:09:50]Write i2c OK [22:09:50]MH_I2C_Read... [22:09:50]Read from MH i2c: 01 [22:09:50]MH_I2C_Read... [22:09:50]Read from MH i2c: 01 07 00 [22:09:50]MH_I2C_Read... [22:09:50]Read from MH i2c: 01 07 00 5E D7 00 00 00 00 00 FF 0F 4A [22:09:50]RasterBufferAndPrint [22:09:50]line Счет N : (1)1036531 [22:09:50]line ИНН: 02508201610067 [22:09:50]line Контрольно-Кассовый Чек [22:09:50]line ПРОДАЖА [22:09:50]line ТРК (МРК, ГНК) : 33 [22:09:50]line Товар: 2710194210 [22:09:50]line ДТ(л)-К-4 [22:09:50]line 2.630 * 76.20 [22:09:50]line = 200.41 [22:09:50]line НДС 12% НСП 1% [22:09:50]line > о реализуемом товаре [22:09:50]line ОКРУГЛЕНИЕ: -0.41 [22:09:50]line ИТОГО: 200.00 [22:09:50]line Внесено: 200.00 [22:09:50]line СДАЧА: 0.00 [22:09:50]line НСП 1% : 1.77 [22:09:50]line НДС 12% : 21.28 [22:09:50]line Наличными: 200.00 [22:09:50]line Безнал.: 0.00 [22:09:50]line Место: АЗС № 94 "Партнер Нефть" [22:09:50]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [22:09:50]line СНО: Общий режим [22:09:50]line Чек 536 18.08.2024 22:09 [22:09:50]line Смена: 449 ФФД: 1.0 [22:09:50]line ЗНМ: 0300000099 [22:09:50]line РНМ: 0000000000091865 [22:09:50]line Версия ККМ: 001 [22:09:50]line ФМ: 0000000000871820 [22:09:50]line ФД: 260978 [22:09:50]line ФПД: 91216603091676 [22:09:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T220955&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260978&fm=91216603091676&tin=02508201610067®Number=0000000000091865&sum=20000 [22:09:50]OFD Sender: Processing packet 260978 [packets to send 192, broken 191] [22:09:50]ProducePacketName [22:09:50]name=ofd_packets/00260978 [22:09:50]OFD Sender: To server: pG, [22:09:50]CommunicateWithHost lk.salyk.kg:30040 [22:09:50]ConnectInit lk.salyk.kg [22:09:50]written 0, free lines is 4095 [22:09:50]Connected sock=10 [22:09: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 30 10 01 00 00 D9 FE 08 01 17 A6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 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 50 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 18 02 00 00 F4 03 04 00 33 71 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 72 FB 03 00 35 04 06 00 52 F6 05 39 92 DC 85 1E 0E 5D 95 5B E2 07 [22: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 30 4F 00 00 00 24 E6 47 00 B6 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 30 10 04 04 00 72 FB 03 00 F4 03 04 00 87 1A C2 66 B6 04 01 00 00 9C 80 C0 64 8F 2C 82 B9 [22:09:50]CommunicateWithHost err = 0 [22:09:50]CheckOFDResponse [22:09:50]1017 (14) - 77093643461234 [22:09:50]1041 (16) - 0000000000871820 [22:09:50]1040 (4) - 260978 [22:09:50]1012 (4) - 18.08.2024 16:00 [22:09:50]1206 (1) - 0 [22:09:50]OFD Sender: Remove packet 260978 [22:09:50]ProducePacketName [22:09:50]name=ofd_packets/00260978 [22:09:50]NVStorageDeleteData [22:09:50]Write to MH i2c: 01 00 00 89 D7 60 [22:09:50]Write i2c OK [22:09:50]MH_I2C_Read... [22:09:50]Read from MH i2c: 01 [22:09:50]MH_I2C_Read... [22:09:50]Read from MH i2c: 01 07 00 [22:09:50]MH_I2C_Read... [22:09:50]Read from MH i2c: 01 07 00 89 D7 00 00 00 00 00 57 0C CA [22:09:50]RasterBufferAndPrint [22:09:50]line [22:09:50]line [22:09:50]line [22:09:50]line [22:09:50]line [22:09:50]written 0, free lines is 3164 [22:09:50]MH_Cut [22:09:50]Write to MH i2c: D1 01 00 90 D7 01 39 [22:09:50]Write i2c OK [22:09:50]MH_I2C_Read... [22:09:50]Read from MH i2c: D1 [22:09:50]MH_I2C_Read... [22:09:50]Read from MH i2c: D1 01 00 [22:09:50]MH_I2C_Read... [22:09:50]Read from MH i2c: D1 01 00 90 D7 00 38 [22:09:50]Write to MH i2c: 01 00 00 91 D7 68 [22:09:50]Write i2c OK [22:09:50]MH_I2C_Read... [22:09:51]OFD Sender: No OFD packet to send [22:09:52]*** Cut start [22:09:52]*** Purtial cut [22:09:52]*** Stage 1: CUTSNS_PIN = 1 [22:09:54]Read from MH i2c: 01 [22:09:54]MH_I2C_Read... [22:09:54]*** Stop cut motor [22:09:54]*** Cut end [22:09:54]Read from MH i2c: 01 07 00 [22:09:54]MH_I2C_Read... [22:09:54]Read from MH i2c: 01 07 00 91 D7 00 00 00 00 00 FF 0F 7D [22:09:54]process_action close_receipt done [22:09:54]requested_data is exist [22:09:54]produce_requested_data [22:09:54]requested_item fm.sn is exist - process it [22:09:54]wFMCommunicate request_size=4 [22:09:54]MH_SAM_APDU [22:09:54]CAPDU: 80 11 00 00 [22:09:54]Write to MH i2c: E2 08 00 92 D7 80 11 00 00 00 00 00 00 E3 [22:09:54]Write i2c OK [22:09:54]MH_I2C_Read... [22:09:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:54]Read from MH i2c: E2 [22:09:54]MH_I2C_Read... [22:09:54]Read from MH i2c: E2 17 00 [22:09:54]MH_I2C_Read... [22:09:54]Read from MH i2c: E2 17 00 92 D7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 30 [22:09:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:09:54]wFMCommunicate OK [22:09:54]requested_item fd.num is exist - process it [22:09:54]SAM_PROTO_GetFieldsCounters [22:09:54]wFMCommunicate request_size=4 [22:09:54]MH_SAM_APDU [22:09:54]CAPDU: 80 13 00 00 [22:09:54]Write to MH i2c: E2 08 00 93 D7 80 13 00 00 00 00 00 00 E6 [22:09:54]Write i2c OK [22:09:54]MH_I2C_Read... [22:09:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:09:54]Read from MH i2c: E2 [22:09:54]MH_I2C_Read... [22:09:54]Read from MH i2c: E2 62 00 [22:09:54]MH_I2C_Read... [22:09:54]Read from MH i2c: E2 62 00 93 D7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 72 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 18 02 00 00 5E 04 04 00 18 02 00 00 57 04 04 00 19 02 00 00 19 04 04 00 00 00 00 00 90 00 85 [22:09: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 72 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 18 02 00 00 5E 04 04 00 18 02 00 00 57 04 04 00 19 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:09:54]wFMCommunicate OK [22:09:54]SAM_PROTO_GetFieldsCounters done [22:09:54]requested_item shift.num is exist - process it [22:09:54]requested_item shift.opened is exist - process it [22:09:54]req_shift_opened [22:09:54]FM_GetShiftState [22:09:54]SAM_PROTO_GetShiftState [22:09:54]wFMCommunicate request_size=4 [22:09:54]MH_SAM_APDU [22:09:54]CAPDU: 80 13 01 00 [22:09:54]Write to MH i2c: E2 08 00 94 D7 80 13 01 00 00 00 00 00 E8 [22:09:54]Write i2c OK [22:09:54]MH_I2C_Read... [22:09:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:54]Read from MH i2c: E2 [22:09:54]MH_I2C_Read... [22:09:54]Read from MH i2c: E2 0E 00 [22:09:54]MH_I2C_Read... [22:09:54]Read from MH i2c: E2 0E 00 94 D7 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 25 [22:09:54]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:09:54]wFMCommunicate OK [22:09:54]SAM_PROTO_GetShiftState done [22:09:54]FM_GetShiftState done [22:09:54]req_shift_opened done [22:09:54]requested_item shift.open_date is exist - process it [22:09:54]req_shift_open_date [22:09:54]req_shift_open_date done [22:09:54]produce_requested_data done [22:09:54]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260978,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [22:09:54]process_action_free close_receipt [22:09:54]json_value_free [22:09:54]json_value_free done [22:09:54]process_json_proto returns [22:09:54]Send response to host [22:09:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260978,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [22:09:54]free response buf [22:09:54]execute_script done [22:09:54]execute_script returns [22:09:54]free content buf [22:09:54]Sock 9.Close socket [22:09:54]Sock 9.Thread stoped [22:09:56]OFD Sender: No OFD packet to send [22:10:01]OFD Sender: No OFD packet to send [22:10:06]OFD Sender: No OFD packet to send [22:10:11]OFD Sender: No OFD packet to send [22:10:16]OFD Sender: No OFD packet to send [22:10:21]OFD Sender: No OFD packet to send [22:10:26]OFD Sender: No OFD packet to send [22:10:31]OFD Sender: No OFD packet to send [22:10:36]OFD Sender: No OFD packet to send [22:10:41]OFD Sender: No OFD packet to send [22:10:46]OFD Sender: No OFD packet to send [22:10:51]OFD Sender: No OFD packet to send [22:10:56]OFD Sender: No OFD packet to send [22:11:01]OFD Sender: No OFD packet to send [22:11:06]OFD Sender: No OFD packet to send [22:11:11]OFD Sender: No OFD packet to send [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:26]OFD Sender: No OFD packet to send [22:12:31]OFD Sender: No OFD packet to send [22:12:32]accept exits with 7 [22:12:32]New connection [22:12:32]New thread 3066617188 created [22:12:32]Thread 3066473828 joined [22:12:32]Waiting for new connection... [22:12:32] Sock 7.Parse request [22:12:32]Sock 7.Check first char [22:12:32]Sock 7.First char is OK [22:12:32]request: POST /json_proto HTTP/1.0 [22:12:32]Method: POST [22:12:32]URL: /json_proto [22:12:32]Method is POST - this is cgi request [22:12:32]url: /json_proto [22:12:32]query_string will be loaded in cgi processing [22:12:32]execute_cgi json_proto POST (null) [22:12:32]execute_cgi path=json_proto method=POST [22:12:32]POST find Content-Length [22:12:32]Host: 172.17.55.133:8080 [22:12:32]Content-Length: 683 [22:12:32]Content-Type: application/json [22:12:32] [22:12:32]POST finish read [22:12:32]Found Content-Length = 683 [22:12:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036533", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:32]execute_script... [22:12: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)1036533", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:32]POST & json_proto [22:12:32]process_json_proto [22:12:32]json parsed OK: [22:12:32]protocol is kg_v1.0 [22:12:32]action value=close_receipt [22:12:32]process_action close_receipt [22:12:32]cmd_close_receipt [22:12:32]MH_GetDate [22:12:32]Write to MH i2c: F0 00 00 95 D7 5B [22:12:32]Write i2c OK [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: F0 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: F0 09 00 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: F0 09 00 95 D7 00 D7 71 C2 66 34 48 D8 65 8D [22:12:32]GetLastDocTimeStamp 1724018995 [22:12:32]current date 1724019159 [22:12:32]FM_GetShiftState [22:12:32]SAM_PROTO_GetShiftState [22:12:32]wFMCommunicate request_size=4 [22:12:32]MH_SAM_APDU [22:12:32]CAPDU: 80 13 01 00 [22:12:32]Write to MH i2c: E2 08 00 96 D7 80 13 01 00 00 00 00 00 EA [22:12:32]Write i2c OK [22:12:32]MH_I2C_Read... [22:12:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:32]Read from MH i2c: E2 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: E2 0E 00 [22:12:32]MH_I2C_Read... [22:12:32]Read from MH i2c: E2 0E 00 96 D7 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 27 [22:12:32]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:12:32]wFMCommunicate OK [22:12:32]SAM_PROTO_GetShiftState done [22:12:32]FM_GetShiftState done [22:12:32]opened in 1723940556 [22:12:32]opened+sec_in_day 1724026956 [22:12:32]quantity*price = 100021 [22:12:32]sum+1 = 100023 [22:12:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 537 18.08.2024 22:12 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260979 ФПД: 131803751559217 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T221239&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260979&fm=131803751559217&tin=02508201610067®Number=0000000000091865&sum=100000 [22:12:33]StoreToDocumentArchive [22:12:33]shift 449 fd 260979 [22:12:33]save to /storage/0449/doc_00260979 [22:12:33]save last doc name /storage/0449/doc_00260979 to /storage/kkm_last_doc_name [22:12:33]save OK [22:12:33]Clear old archive folders... [22:12:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:12:33]tlvbuf is 00387680 [22:12:33]SAM_PROTO_ClearQueue [22:12:33]wFMCommunicate request_size=4 [22:12:33]MH_SAM_APDU [22:12:33]CAPDU: 80 09 00 00 [22:12:33]Write to MH i2c: E2 08 00 A3 D7 80 09 00 00 00 00 00 00 EC [22:12:33]Write i2c OK [22:12:33]MH_I2C_Read... [22:12:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:12:33]Read from MH i2c: E2 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: E2 03 00 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: E2 03 00 A3 D7 00 90 00 EE [22:12:33]RAPDU: 90 00 [22:12:33]wFMCommunicate OK [22:12:33]SAM_PROTO_ClearQueue done [22:12:33]KKMCreateOFDPacket [22:12:33]OFDProtocolAddRootSTLVToBuf [22:12:33]FM_MakeSignedData [22:12:33]FM_MakeSignedData [22:12:33]SAM_PROTO_SignData [22:12:33]wFMCommunicate request_size=4 [22:12:33]MH_SAM_APDU [22:12:33]CAPDU: 80 0D 01 02 [22:12:33]Write to MH i2c: E2 08 00 A4 D7 80 0D 01 02 00 00 00 00 F4 [22:12:33]Write i2c OK [22:12:33]MH_I2C_Read... [22:12:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:12:33]Read from MH i2c: E2 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: E2 03 00 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: E2 03 00 A4 D7 00 90 00 EF [22:12:33]RAPDU: 90 00 [22:12:33]wFMCommunicate OK [22:12:33]wFMCommunicate request_size=255 [22:12:33]MH_SAM_APDU [22:12: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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 02 00 00 F4 03 04 00 D7 71 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 73 FB 03 00 35 04 06 00 77 [22:12:33]Write to MH i2c: E2 02 01 A5 D7 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 02 00 00 F4 03 04 00 D7 71 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 73 FB 03 00 35 04 06 00 77 00 00 D3 [22:12:33]Write i2c OK [22:12:33]MH_I2C_Read... [22:12:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:33]Read from MH i2c: E2 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: E2 03 00 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: E2 03 00 A5 D7 00 90 00 F0 [22:12:33]RAPDU: 90 00 [22:12:33]wFMCommunicate OK [22:12:33]wFMCommunicate request_size=10 [22:12:33]MH_SAM_APDU [22:12:33]CAPDU: 80 0D 02 02 05 DF F3 CA B0 31 [22:12:33]Write to MH i2c: E2 0D 00 A6 D7 80 0D 02 02 05 00 DF F3 CA B0 31 00 00 7E [22:12:33]Write i2c OK [22:12:33]MH_I2C_Read... [22:12:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:33]Read from MH i2c: E2 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: E2 03 00 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: E2 03 00 A6 D7 00 90 00 F1 [22:12:33]RAPDU: 90 00 [22:12:33]wFMCommunicate OK [22:12:33]wFMCommunicate request_size=4 [22:12:33]MH_SAM_APDU [22:12:33]CAPDU: 80 0D 03 02 [22:12:33]Write to MH i2c: E2 08 00 A7 D7 80 0D 03 02 00 00 00 00 F9 [22:12:33]Write i2c OK [22:12:33]MH_I2C_Read... [22:12:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:12:33]Read from MH i2c: E2 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: E2 0B 00 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: E2 0B 00 A7 D7 00 9F 50 F3 B1 CB E7 3F 3F 90 00 BD [22:12:33]RAPDU: 9F 50 F3 B1 CB E7 3F 3F 90 00 [22:12:33]wFMCommunicate OK [22:12:33]SAM_PROTO_SignData done [22:12:33]FM_MakeSignedData done [22:12:33]CreateOFDProtocolMessage [22:12:33]wFMCommunicate request_size=4 [22:12:33]MH_SAM_APDU [22:12:33]CAPDU: 80 11 00 00 [22:12:33]Write to MH i2c: E2 08 00 A8 D7 80 11 00 00 00 00 00 00 F9 [22:12:33]Write i2c OK [22:12:33]MH_I2C_Read... [22:12:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:33]Read from MH i2c: E2 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: E2 17 00 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: E2 17 00 A8 D7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 46 [22:12:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:12:33]wFMCommunicate OK [22:12:33]CreateOFDProtocolMessage done [22:12:33]OFDSenderStorePacket 260979 [22:12:33]StoreOFDPacket docnum=260979 [22:12:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 B2 E6 07 01 35 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 02 00 00 F4 03 04 00 D7 71 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 73 FB 03 00 35 04 06 00 77 DF F3 CA B0 31 9F 50 F3 B1 CB E7 3F 3F [22:12:33]CheckFolder [22:12:33]dirname=/storage/ofd_packets [22:12:33]CheckFolder done [22:12:33]ProducePacketName [22:12:33]name=ofd_packets/00260979 [22:12:33]NVStorageSaveData ofd_packets/00260979 [22:12:33]File name is /storage/ofd_packets/00260979 [22:12:33]Write 301 bytes [22:12:33]NVStorageSaveData done [22:12:33]OFDSenderStorePacket done [22:12:33]KKMCreateOFDPacket done [22:12:33]NVStorageSaveData kkm_last_timestamp [22:12:33]File name is /storage/kkm_last_timestamp [22:12:33]Write 4 bytes [22:12:33]NVStorageSaveData done [22:12:33]ExternCall_PrintAddStr [22:12:33]wPrintStart [22:12:33]Write to MH i2c: 01 00 00 A9 D7 80 [22:12:33]Write i2c OK [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: 01 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: 01 07 00 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: 01 07 00 A9 D7 00 00 00 00 00 FF 0F 95 [22:12:33]RasterBufferAndPrint [22:12:33]line Счет N : (1)1036533 [22:12:33]line ИНН: 02508201610067 [22:12:33]line Контрольно-Кассовый Чек [22:12:33]line ПРОДАЖА [22:12:33]line ТРК (МРК, ГНК) : 13 [22:12:33]line Товар: 2710124500 [22:12:33]line Аи-95-К-5 [22:12:33]line 13.480 * 74.20 [22:12:33]line = 1000.22 [22:12:33]line НДС 12% НСП 1% [22:12:33]line > о реализуемом товаре [22:12:33]line ОКРУГЛЕНИЕ: -0.22 [22:12:33]line ИТОГО: 1000.00 [22:12:33]line Внесено: 1000.00 [22:12:33]line СДАЧА: 0.00 [22:12:33]line НСП 1% : 8.85 [22:12:33]line НДС 12% : 106.22 [22:12:33]line Наличными: 1000.00 [22:12:33]line Безнал.: 0.00 [22:12:33]line Место: АЗС № 94 "Партнер Нефть" [22:12:33]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [22:12:33]line СНО: Общий режим [22:12:33]line Чек 537 18.08.2024 22:12 [22:12:33]line Смена: 449 ФФД: 1.0 [22:12:33]line ЗНМ: 0300000099 [22:12:33]line РНМ: 0000000000091865 [22:12:33]line Версия ККМ: 001 [22:12:33]line ФМ: 0000000000871820 [22:12:33]line ФД: 260979 [22:12:33]line ФПД: 131803751559217 [22:12:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T221239&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260979&fm=131803751559217&tin=02508201610067®Number=0000000000091865&sum=100000 [22:12:33]written 0, free lines is 4095 [22:12:33]OFD Sender: Processing packet 260979 [packets to send 192, broken 191] [22:12:33]ProducePacketName [22:12:33]name=ofd_packets/00260979 [22:12:33]OFD Sender: To server: pG, [22:12:33]CommunicateWithHost lk.salyk.kg:30040 [22:12:33]ConnectInit lk.salyk.kg [22:12:34]Connected sock=10 [22:12: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 30 0F 01 00 00 B2 E6 07 01 35 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 02 00 00 F4 03 04 00 D7 71 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 73 FB 03 00 35 04 06 00 77 DF F3 CA B0 31 9F 50 F3 B1 CB E7 3F 3F [22:12: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 30 4F 00 00 00 17 E3 47 00 50 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 30 10 04 04 00 73 FB 03 00 F4 03 04 00 2A 1B C2 66 B6 04 01 00 00 86 4C 9F 4A 39 A2 DC 28 [22:12:34]CommunicateWithHost err = 0 [22:12:34]CheckOFDResponse [22:12:34]1017 (14) - 77093643461234 [22:12:34]1041 (16) - 0000000000871820 [22:12:34]1040 (4) - 260979 [22:12:34]1012 (4) - 18.08.2024 16:02 [22:12:34]1206 (1) - 0 [22:12:34]OFD Sender: Remove packet 260979 [22:12:34]ProducePacketName [22:12:34]name=ofd_packets/00260979 [22:12:34]NVStorageDeleteData [22:12:34]Write to MH i2c: 01 00 00 D4 D7 AB [22:12:34]Write i2c OK [22:12:34]MH_I2C_Read... [22:12:34]Read from MH i2c: 01 [22:12:34]MH_I2C_Read... [22:12:34]Read from MH i2c: 01 07 00 [22:12:34]MH_I2C_Read... [22:12:34]Read from MH i2c: 01 07 00 D4 D7 00 00 00 00 00 66 0C 24 [22:12:34]RasterBufferAndPrint [22:12:34]line [22:12:34]line [22:12:34]line [22:12:34]line [22:12:34]line [22:12:34]written 0, free lines is 3179 [22:12:34]MH_Cut [22:12:34]Write to MH i2c: D1 01 00 DB D7 01 84 [22:12:34]Write i2c OK [22:12:34]MH_I2C_Read... [22:12:34]Read from MH i2c: D1 [22:12:34]MH_I2C_Read... [22:12:34]Read from MH i2c: D1 01 00 [22:12:34]MH_I2C_Read... [22:12:34]Read from MH i2c: D1 01 00 DB D7 00 83 [22:12:34]Write to MH i2c: 01 00 00 DC D7 B3 [22:12:34]Write i2c OK [22:12:34]MH_I2C_Read... [22:12:34]OFD Sender: No OFD packet to send [22:12:35]*** Cut start [22:12:35]*** Purtial cut [22:12:35]*** Stage 1: CUTSNS_PIN = 1 [22:12:37]Read from MH i2c: 01 [22:12:37]MH_I2C_Read... [22:12:37]*** Stop cut motor [22:12:37]*** Cut end [22:12:37]Read from MH i2c: 01 07 00 [22:12:37]MH_I2C_Read... [22:12:37]Read from MH i2c: 01 07 00 DC D7 00 00 00 00 00 FF 0F C8 [22:12:37]process_action close_receipt done [22:12:37]requested_data is exist [22:12:37]produce_requested_data [22:12:37]requested_item fm.sn is exist - process it [22:12:37]wFMCommunicate request_size=4 [22:12:37]MH_SAM_APDU [22:12:37]CAPDU: 80 11 00 00 [22:12:37]Write to MH i2c: E2 08 00 DD D7 80 11 00 00 00 00 00 00 2E [22:12:37]Write i2c OK [22:12:37]MH_I2C_Read... [22:12:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:37]Read from MH i2c: E2 [22:12:37]MH_I2C_Read... [22:12:37]Read from MH i2c: E2 17 00 [22:12:37]MH_I2C_Read... [22:12:37]Read from MH i2c: E2 17 00 DD D7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 7B [22:12:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:12:37]wFMCommunicate OK [22:12:37]requested_item fd.num is exist - process it [22:12:37]SAM_PROTO_GetFieldsCounters [22:12:37]wFMCommunicate request_size=4 [22:12:37]MH_SAM_APDU [22:12:37]CAPDU: 80 13 00 00 [22:12:37]Write to MH i2c: E2 08 00 DE D7 80 13 00 00 00 00 00 00 31 [22:12:37]Write i2c OK [22:12:37]MH_I2C_Read... [22:12:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:12:37]Read from MH i2c: E2 [22:12:37]MH_I2C_Read... [22:12:37]Read from MH i2c: E2 62 00 [22:12:37]MH_I2C_Read... [22:12:37]Read from MH i2c: E2 62 00 DE D7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 73 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 19 02 00 00 5E 04 04 00 19 02 00 00 57 04 04 00 1A 02 00 00 19 04 04 00 00 00 00 00 90 00 D4 [22:12:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 73 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 19 02 00 00 5E 04 04 00 19 02 00 00 57 04 04 00 1A 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:12:37]wFMCommunicate OK [22:12:37]SAM_PROTO_GetFieldsCounters done [22:12:37]requested_item shift.num is exist - process it [22:12:37]requested_item shift.opened is exist - process it [22:12:37]req_shift_opened [22:12:37]FM_GetShiftState [22:12:37]SAM_PROTO_GetShiftState [22:12:37]wFMCommunicate request_size=4 [22:12:37]MH_SAM_APDU [22:12:37]CAPDU: 80 13 01 00 [22:12:37]Write to MH i2c: E2 08 00 DF D7 80 13 01 00 00 00 00 00 33 [22:12:37]Write i2c OK [22:12:37]MH_I2C_Read... [22:12:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:37]Read from MH i2c: E2 [22:12:37]MH_I2C_Read... [22:12:37]Read from MH i2c: E2 0E 00 [22:12:37]MH_I2C_Read... [22:12:37]Read from MH i2c: E2 0E 00 DF D7 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 70 [22:12:37]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:12:37]wFMCommunicate OK [22:12:37]SAM_PROTO_GetShiftState done [22:12:37]FM_GetShiftState done [22:12:37]req_shift_opened done [22:12:37]requested_item shift.open_date is exist - process it [22:12:37]req_shift_open_date [22:12:37]req_shift_open_date done [22:12:37]produce_requested_data done [22:12:37]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260979,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [22:12:37]process_action_free close_receipt [22:12:37]json_value_free [22:12:37]json_value_free done [22:12:37]process_json_proto returns [22:12:37]Send response to host [22:12:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260979,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [22:12:37]free response buf [22:12:37]execute_script done [22:12:37]execute_script returns [22:12:37]free content buf [22:12:37]Sock 7.Close socket [22:12:37]Sock 7.Thread stoped [22:12:38]accept exits with 9 [22:12:38]New connection [22:12:38]New thread 3066473828 created [22:12:38]Thread 3066617188 joined [22:12:38]Waiting for new connection... [22:12:38] Sock 9.Parse request [22:12:38]Sock 9.Check first char [22:12:38]Sock 9.First char is OK [22:12:38]request: POST /json_proto HTTP/1.0 [22:12:38]Method: POST [22:12:38]URL: /json_proto [22:12:38]Method is POST - this is cgi request [22:12:38]url: /json_proto [22:12:38]query_string will be loaded in cgi processing [22:12:38]execute_cgi json_proto POST (null) [22:12:38]execute_cgi path=json_proto method=POST [22:12:38]POST find Content-Length [22:12:38]Host: 172.17.55.133:8080 [22:12:38]Content-Length: 809 [22:12:38]Content-Type: application/json [22:12:38] [22:12:38]POST finish read [22:12:38]Found Content-Length = 809 [22:12:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036534", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:38]execute_script... [22: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)1036534", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:38]POST & json_proto [22:12:38]process_json_proto [22:12:38]json parsed OK: [22:12:38]protocol is kg_v1.0 [22:12:38]action value=close_receipt [22:12:38]process_action close_receipt [22:12:38]cmd_close_receipt [22:12:38]MH_GetDate [22:12:38]Write to MH i2c: F0 00 00 E0 D7 A6 [22:12:38]Write i2c OK [22:12:38]MH_I2C_Read... [22:12:38]Read from MH i2c: F0 [22:12:38]MH_I2C_Read... [22:12:38]Read from MH i2c: F0 09 00 [22:12:38]MH_I2C_Read... [22:12:38]Read from MH i2c: F0 09 00 E0 D7 00 DD 71 C2 66 34 48 D8 65 DE [22:12:38]GetLastDocTimeStamp 1724019159 [22:12:38]current date 1724019165 [22:12:38]FM_GetShiftState [22:12:38]SAM_PROTO_GetShiftState [22:12:38]wFMCommunicate request_size=4 [22:12:38]MH_SAM_APDU [22:12:38]CAPDU: 80 13 01 00 [22:12:38]Write to MH i2c: E2 08 00 E1 D7 80 13 01 00 00 00 00 00 35 [22:12:38]Write i2c OK [22:12:38]MH_I2C_Read... [22:12:38]Read from MH i2c: E2 [22:12:38]MH_I2C_Read... [22:12:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:38]Read from MH i2c: E2 0E 00 [22:12:38]MH_I2C_Read... [22:12:38]Read from MH i2c: E2 0E 00 E1 D7 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 72 [22:12:38]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:12:38]wFMCommunicate OK [22:12:38]SAM_PROTO_GetShiftState done [22:12:38]FM_GetShiftState done [22:12:38]opened in 1723940556 [22:12:38]opened+sec_in_day 1724026956 [22:12:38]quantity*price = 100050 [22:12:38]sum+1 = 100052 [22:12:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 538 18.08.2024 22:12 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260980 ФПД: 137213981919968 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T221245&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260980&fm=137213981919968&tin=02508201610067®Number=0000000000091865&sum=100051 [22:12:39]StoreToDocumentArchive [22:12:39]shift 449 fd 260980 [22:12:39]save to /storage/0449/doc_00260980 [22:12:39]save last doc name /storage/0449/doc_00260980 to /storage/kkm_last_doc_name [22:12:39]save OK [22:12:39]Clear old archive folders... [22:12:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:12:39]tlvbuf is 0057B5E0 [22:12:39]SAM_PROTO_ClearQueue [22:12:39]wFMCommunicate request_size=4 [22:12:39]MH_SAM_APDU [22:12:39]CAPDU: 80 09 00 00 [22:12:39]Write to MH i2c: E2 08 00 EE D7 80 09 00 00 00 00 00 00 37 [22:12:39]Write i2c OK [22:12:39]MH_I2C_Read... [22:12:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:12:39]Read from MH i2c: E2 [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: E2 03 00 [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: E2 03 00 EE D7 00 90 00 39 [22:12:39]RAPDU: 90 00 [22:12:39]wFMCommunicate OK [22:12:39]SAM_PROTO_ClearQueue done [22:12:39]KKMCreateOFDPacket [22:12:39]OFDProtocolAddRootSTLVToBuf [22:12:39]FM_MakeSignedData [22:12:39]FM_MakeSignedData [22:12:39]SAM_PROTO_SignData [22:12:39]wFMCommunicate request_size=4 [22:12:39]MH_SAM_APDU [22:12:39]CAPDU: 80 0D 01 02 [22:12:39]Write to MH i2c: E2 08 00 EF D7 80 0D 01 02 00 00 00 00 3F [22:12:39]Write i2c OK [22:12:39]MH_I2C_Read... [22:12:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:12:39]Read from MH i2c: E2 [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: E2 03 00 [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: E2 03 00 EF D7 00 90 00 3A [22:12:39]RAPDU: 90 00 [22:12:39]wFMCommunicate OK [22:12:39]wFMCommunicate request_size=255 [22:12:39]MH_SAM_APDU [22:12:39]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 02 00 00 F4 03 04 00 DD 71 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 74 FB 03 00 35 04 06 00 [22:12:39]Write to MH i2c: E2 02 01 F0 D7 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 02 00 00 F4 03 04 00 DD 71 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 74 FB 03 00 35 04 06 00 00 00 D5 [22:12:39]Write i2c OK [22:12:39]MH_I2C_Read... [22:12:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:40]Read from MH i2c: E2 [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: E2 03 00 [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: E2 03 00 F0 D7 00 90 00 3B [22:12:40]RAPDU: 90 00 [22:12:40]wFMCommunicate OK [22:12:40]wFMCommunicate request_size=11 [22:12:40]MH_SAM_APDU [22:12:40]CAPDU: 80 0D 02 02 06 7C CB 9E A6 8A E0 [22:12:40]Write to MH i2c: E2 0E 00 F1 D7 80 0D 02 02 06 00 7C CB 9E A6 8A E0 00 00 43 [22:12:40]Write i2c OK [22:12:40]MH_I2C_Read... [22:12:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:40]Read from MH i2c: E2 [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: E2 03 00 [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: E2 03 00 F1 D7 00 90 00 3C [22:12:40]RAPDU: 90 00 [22:12:40]wFMCommunicate OK [22:12:40]wFMCommunicate request_size=4 [22:12:40]MH_SAM_APDU [22:12:40]CAPDU: 80 0D 03 02 [22:12:40]Write to MH i2c: E2 08 00 F2 D7 80 0D 03 02 00 00 00 00 44 [22:12:40]Write i2c OK [22:12:40]MH_I2C_Read... [22:12:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:12:40]Read from MH i2c: E2 [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: E2 0B 00 [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: E2 0B 00 F2 D7 00 EF 24 4E B6 AE FC 24 21 90 00 4B [22:12:40]RAPDU: EF 24 4E B6 AE FC 24 21 90 00 [22:12:40]wFMCommunicate OK [22:12:40]SAM_PROTO_SignData done [22:12:40]FM_MakeSignedData done [22:12:40]CreateOFDProtocolMessage [22:12:40]wFMCommunicate request_size=4 [22:12:40]MH_SAM_APDU [22:12:40]CAPDU: 80 11 00 00 [22:12:40]Write to MH i2c: E2 08 00 F3 D7 80 11 00 00 00 00 00 00 44 [22:12:40]Write i2c OK [22:12:40]MH_I2C_Read... [22:12:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:40]Read from MH i2c: E2 [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: E2 17 00 [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: E2 17 00 F3 D7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 91 [22:12:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:12:40]wFMCommunicate OK [22:12:40]CreateOFDProtocolMessage done [22:12:40]OFDSenderStorePacket 260980 [22:12:40]StoreOFDPacket docnum=260980 [22:12:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 BE 90 08 01 3A C0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 02 00 00 F4 03 04 00 DD 71 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 74 FB 03 00 35 04 06 00 7C CB 9E A6 8A E0 EF 24 4E B6 AE FC 24 21 [22:12:40]CheckFolder [22:12:40]dirname=/storage/ofd_packets [22:12:40]CheckFolder done [22:12:40]ProducePacketName [22:12:40]name=ofd_packets/00260980 [22:12:40]NVStorageSaveData ofd_packets/00260980 [22:12:40]File name is /storage/ofd_packets/00260980 [22:12:40]Write 302 bytes [22:12:40]NVStorageSaveData done [22:12:40]OFDSenderStorePacket done [22:12:40]KKMCreateOFDPacket done [22:12:40]NVStorageSaveData kkm_last_timestamp [22:12:40]File name is /storage/kkm_last_timestamp [22:12:40]Write 4 bytes [22:12:40]NVStorageSaveData done [22:12:40]ExternCall_PrintAddStr [22:12:40]wPrintStart [22:12:40]Write to MH i2c: 01 00 00 F4 D7 CB [22:12:40]Write i2c OK [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: 01 [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: 01 07 00 [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: 01 07 00 F4 D7 00 00 00 00 00 FF 0F E0 [22:12:40]RasterBufferAndPrint [22:12:40]line Счет N : (1)1036534 [22:12:40]line ИНН: 02508201610067 [22:12:40]line Контрольно-Кассовый Чек [22:12:40]line ПРОДАЖА [22:12:40]line ТРК (МРК, ГНК) : 43 [22:12:40]line Товар: 2710194210 [22:12:40]line ДТ(л)-К-4 [22:12:40]line 13.130 * 76.20 [22:12:40]line = 1000.51 [22:12:40]line НДС 12% НСП 1% [22:12:40]line > о реализуемом товаре [22:12:40]line ИТОГО: 1000.51 [22:12:40]line НСП 1% : 8.85 [22:12:40]line НДС 12% : 106.25 [22:12:40]line Наличными: 0.00 [22:12:40]line Безнал.: 1000.51 [22:12:40]line Место: АЗС № 94 "Партнер Нефть" [22:12:40]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [22:12:40]line СНО: Общий режим [22:12:40]line Чек 538 18.08.2024 22:12 [22:12:40]line Смена: 449 ФФД: 1.0 [22:12:40]line ЗНМ: 0300000099 [22:12:40]line РНМ: 0000000000091865 [22:12:40]line Версия ККМ: 001 [22:12:40]line Платежная система: O! деньги [22:12:40]line ФМ: 0000000000871820 [22:12:40]line ФД: 260980 [22:12:40]line ФПД: 137213981919968 [22:12:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T221245&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260980&fm=137213981919968&tin=02508201610067®Number=0000000000091865&sum=100051 [22:12:40]OFD Sender: Processing packet 260980 [packets to send 192, broken 191] [22:12:40]ProducePacketName [22:12:40]name=ofd_packets/00260980 [22:12:40]OFD Sender: To server: pG, [22:12:40]CommunicateWithHost lk.salyk.kg:30040 [22:12:40]ConnectInit lk.salyk.kg [22:12:40]written 0, free lines is 4095 [22:12:40]Connected sock=10 [22: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 30 10 01 00 00 BE 90 08 01 3A C0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 02 00 00 F4 03 04 00 DD 71 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 74 FB 03 00 35 04 06 00 7C CB 9E A6 8A E0 EF 24 4E B6 AE FC 24 21 [22: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 30 4F 00 00 00 E4 E5 47 00 5C E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 74 FB 03 00 F4 03 04 00 31 1B C2 66 B6 04 01 00 00 95 07 7E 3F 14 28 D6 4B [22:12:40]CommunicateWithHost err = 0 [22:12:40]CheckOFDResponse [22:12:40]1017 (14) - 77093643461234 [22:12:40]1041 (16) - 0000000000871820 [22:12:40]1040 (4) - 260980 [22:12:40]1012 (4) - 18.08.2024 16:02 [22:12:40]1206 (1) - 0 [22:12:40]OFD Sender: Remove packet 260980 [22:12:40]ProducePacketName [22:12:40]name=ofd_packets/00260980 [22:12:40]NVStorageDeleteData [22:12:40]Write to MH i2c: 01 00 00 1E D8 F6 [22:12:40]Write i2c OK [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: 01 [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: 01 07 00 [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: 01 07 00 1E D8 00 00 00 00 00 75 0C 7E [22:12:40]RasterBufferAndPrint [22:12:40]line [22:12:40]line [22:12:40]line [22:12:40]line [22:12:40]line [22:12:40]written 0, free lines is 3199 [22:12:40]MH_Cut [22:12:40]Write to MH i2c: D1 01 00 25 D8 01 CF [22:12:40]Write i2c OK [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: D1 [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: D1 01 00 [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: D1 01 00 25 D8 00 CE [22:12:40]Write to MH i2c: 01 00 00 26 D8 FE [22:12:40]Write i2c OK [22:12:40]MH_I2C_Read... [22:12:41]OFD Sender: No OFD packet to send [22:12:42]*** Cut start [22:12:42]*** Purtial cut [22:12:42]*** Stage 1: CUTSNS_PIN = 1 [22:12:44]Read from MH i2c: 01 [22:12:44]MH_I2C_Read... [22:12:44]*** Stop cut motor [22:12:44]*** Cut end [22:12:44]Read from MH i2c: 01 07 00 [22:12:44]MH_I2C_Read... [22:12:44]Read from MH i2c: 01 07 00 26 D8 00 00 00 00 00 FF 0F 13 [22:12:44]process_action close_receipt done [22:12:44]requested_data is exist [22:12:44]produce_requested_data [22:12:44]requested_item fm.sn is exist - process it [22:12:44]wFMCommunicate request_size=4 [22:12:44]MH_SAM_APDU [22:12:44]CAPDU: 80 11 00 00 [22:12:44]Write to MH i2c: E2 08 00 27 D8 80 11 00 00 00 00 00 00 79 [22:12:44]Write i2c OK [22:12:44]MH_I2C_Read... [22:12:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:44]Read from MH i2c: E2 [22:12:44]MH_I2C_Read... [22:12:44]Read from MH i2c: E2 17 00 [22:12:44]MH_I2C_Read... [22:12:44]Read from MH i2c: E2 17 00 27 D8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C6 [22:12:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:12:44]wFMCommunicate OK [22:12:44]requested_item fd.num is exist - process it [22:12:44]SAM_PROTO_GetFieldsCounters [22:12:44]wFMCommunicate request_size=4 [22:12:44]MH_SAM_APDU [22:12:44]CAPDU: 80 13 00 00 [22:12:44]Write to MH i2c: E2 08 00 28 D8 80 13 00 00 00 00 00 00 7C [22:12:44]Write i2c OK [22:12:44]MH_I2C_Read... [22:12:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:12:44]Read from MH i2c: E2 [22:12:44]MH_I2C_Read... [22:12:44]Read from MH i2c: E2 62 00 [22:12:44]MH_I2C_Read... [22:12:44]Read from MH i2c: E2 62 00 28 D8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 74 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 1A 02 00 00 5E 04 04 00 1A 02 00 00 57 04 04 00 1B 02 00 00 19 04 04 00 00 00 00 00 90 00 23 [22:12: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 74 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 1A 02 00 00 5E 04 04 00 1A 02 00 00 57 04 04 00 1B 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:12:44]wFMCommunicate OK [22:12:44]SAM_PROTO_GetFieldsCounters done [22:12:44]requested_item shift.num is exist - process it [22:12:44]requested_item shift.opened is exist - process it [22:12:44]req_shift_opened [22:12:44]FM_GetShiftState [22:12:44]SAM_PROTO_GetShiftState [22:12:44]wFMCommunicate request_size=4 [22:12:44]MH_SAM_APDU [22:12:44]CAPDU: 80 13 01 00 [22:12:44]Write to MH i2c: E2 08 00 29 D8 80 13 01 00 00 00 00 00 7E [22:12:44]Write i2c OK [22:12:44]MH_I2C_Read... [22:12:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:44]Read from MH i2c: E2 [22:12:44]MH_I2C_Read... [22:12:44]Read from MH i2c: E2 0E 00 [22:12:44]MH_I2C_Read... [22:12:44]Read from MH i2c: E2 0E 00 29 D8 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 BB [22:12:44]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:12:44]wFMCommunicate OK [22:12:44]SAM_PROTO_GetShiftState done [22:12:44]FM_GetShiftState done [22:12:44]req_shift_opened done [22:12:44]requested_item shift.open_date is exist - process it [22:12:44]req_shift_open_date [22:12:44]req_shift_open_date done [22:12:44]produce_requested_data done [22:12:44]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260980,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [22:12:44]process_action_free close_receipt [22:12:44]json_value_free [22:12:44]json_value_free done [22:12:44]process_json_proto returns [22:12:44]Send response to host [22:12:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260980,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [22:12:44]free response buf [22:12:44]execute_script done [22:12:44]execute_script returns [22:12:44]free content buf [22:12:44]Sock 9.Close socket [22:12:44]Sock 9.Thread stoped [22:12:44]accept exits with 7 [22:12:44]New connection [22:12:44]New thread 3066617188 created [22:12:44]Thread 3066473828 joined [22:12:44]Waiting for new connection... [22:12:44] Sock 7.Parse request [22:12:44]Sock 7.Check first char [22:12:44]Sock 7.First char is OK [22:12:44]request: POST /json_proto HTTP/1.0 [22:12:44]Method: POST [22:12:44]URL: /json_proto [22:12:44]Method is POST - this is cgi request [22:12:44]url: /json_proto [22:12:44]query_string will be loaded in cgi processing [22:12:44]execute_cgi json_proto POST (null) [22:12:44]execute_cgi path=json_proto method=POST [22:12:44]POST find Content-Length [22:12:44]Host: 172.17.55.133:8080 [22:12:44]Content-Length: 683 [22:12:44]Content-Type: application/json [22:12:44] [22:12:44]POST finish read [22:12:44]Found Content-Length = 683 [22:12:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036532", "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" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:44]execute_script... [22:12:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036532", "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" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:44]POST & json_proto [22:12:44]process_json_proto [22:12:44]json parsed OK: [22:12:44]protocol is kg_v1.0 [22:12:44]action value=close_receipt [22:12:44]process_action close_receipt [22:12:44]cmd_close_receipt [22:12:44]MH_GetDate [22:12:44]Write to MH i2c: F0 00 00 2A D8 F1 [22:12:44]Write i2c OK [22:12:44]MH_I2C_Read... [22:12:44]Read from MH i2c: F0 [22:12:44]MH_I2C_Read... [22:12:44]Read from MH i2c: F0 09 00 [22:12:44]MH_I2C_Read... [22:12:44]Read from MH i2c: F0 09 00 2A D8 00 E3 71 C2 66 34 48 D8 65 2F [22:12:44]GetLastDocTimeStamp 1724019165 [22:12:44]current date 1724019171 [22:12:44]FM_GetShiftState [22:12:44]SAM_PROTO_GetShiftState [22:12:44]wFMCommunicate request_size=4 [22:12:44]MH_SAM_APDU [22:12:44]CAPDU: 80 13 01 00 [22:12:44]Write to MH i2c: E2 08 00 2B D8 80 13 01 00 00 00 00 00 80 [22:12:44]Write i2c OK [22:12:44]MH_I2C_Read... [22:12:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:44]Read from MH i2c: E2 [22:12:44]MH_I2C_Read... [22:12:44]Read from MH i2c: E2 0E 00 [22:12:44]MH_I2C_Read... [22:12:44]Read from MH i2c: E2 0E 00 2B D8 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 BD [22:12:44]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:12:44]wFMCommunicate OK [22:12:44]SAM_PROTO_GetShiftState done [22:12:44]FM_GetShiftState done [22:12:44]opened in 1723940556 [22:12:44]opened+sec_in_day 1724026956 [22:12:44]quantity*price = 250054 [22:12:44]sum+1 = 250055 [22:12:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 539 18.08.2024 22:12 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260981 ФПД: 199288999646093 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T221252&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260981&fm=199288999646093&tin=02508201610067®Number=0000000000091865&sum=250000 [22:12:46]StoreToDocumentArchive [22:12:46]shift 449 fd 260981 [22:12:46]save to /storage/0449/doc_00260981 [22:12:46]save last doc name /storage/0449/doc_00260981 to /storage/kkm_last_doc_name [22:12:46]save OK [22:12:46]Clear old archive folders... [22:12:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:12:46]tlvbuf is 0041CA20 [22:12:46]SAM_PROTO_ClearQueue [22:12:46]wFMCommunicate request_size=4 [22:12:46]MH_SAM_APDU [22:12:46]CAPDU: 80 09 00 00 [22:12:46]Write to MH i2c: E2 08 00 38 D8 80 09 00 00 00 00 00 00 82 [22:12:46]Write i2c OK [22:12:46]MH_I2C_Read... [22:12:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:12:46]Read from MH i2c: E2 [22:12:46]MH_I2C_Read... [22:12:46]Read from MH i2c: E2 03 00 [22:12:46]MH_I2C_Read... [22:12:46]Read from MH i2c: E2 03 00 38 D8 00 90 00 84 [22:12:46]RAPDU: 90 00 [22:12:46]wFMCommunicate OK [22:12:46]SAM_PROTO_ClearQueue done [22:12:46]KKMCreateOFDPacket [22:12:46]OFDProtocolAddRootSTLVToBuf [22:12:46]FM_MakeSignedData [22:12:46]FM_MakeSignedData [22:12:46]SAM_PROTO_SignData [22:12:46]wFMCommunicate request_size=4 [22:12:46]MH_SAM_APDU [22:12:46]CAPDU: 80 0D 01 02 [22:12:46]Write to MH i2c: E2 08 00 39 D8 80 0D 01 02 00 00 00 00 8A [22:12:46]Write i2c OK [22:12:46]MH_I2C_Read... [22:12:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:12:46]Read from MH i2c: E2 [22:12:46]MH_I2C_Read... [22:12:46]Read from MH i2c: E2 03 00 [22:12:46]MH_I2C_Read... [22:12:46]Read from MH i2c: E2 03 00 39 D8 00 90 00 85 [22:12:46]RAPDU: 90 00 [22:12:46]wFMCommunicate OK [22:12:46]wFMCommunicate request_size=255 [22:12:46]MH_SAM_APDU [22:12:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 OFD Sender: No OFD packet to send [22:12:46]01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 02 00 00 F4 03 04 00 E4 71 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 75 FB 03 00 35 04 06 00 B5 [22:12:46]Write to MH i2c: E2 02 01 3A D8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 02 00 00 F4 03 04 00 E4 71 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 75 FB 03 00 35 04 06 00 B5 00 00 86 [22:12:46]Write i2c OK [22:12:46]MH_I2C_Read... [22:12:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:46]Read from MH i2c: E2 [22:12:46]MH_I2C_Read... [22:12:46]Read from MH i2c: E2 03 00 [22:12:46]MH_I2C_Read... [22:12:46]Read from MH i2c: E2 03 00 3A D8 00 90 00 86 [22:12:46]RAPDU: 90 00 [22:12:46]wFMCommunicate OK [22:12:46]wFMCommunicate request_size=10 [22:12:46]MH_SAM_APDU [22:12:46]CAPDU: 80 0D 02 02 05 40 96 08 13 8D [22:12:46]Write to MH i2c: E2 0D 00 3B D8 80 0D 02 02 05 00 40 96 08 13 8D 00 00 15 [22:12:46]Write i2c OK [22:12:46]MH_I2C_Read... [22:12:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:46]Read from MH i2c: E2 [22:12:46]MH_I2C_Read... [22:12:46]Read from MH i2c: E2 03 00 [22:12:46]MH_I2C_Read... [22:12:46]Read from MH i2c: E2 03 00 3B D8 00 90 00 87 [22:12:46]RAPDU: 90 00 [22:12:46]wFMCommunicate OK [22:12:46]wFMCommunicate request_size=4 [22:12:46]MH_SAM_APDU [22:12:46]CAPDU: 80 0D 03 02 [22:12:46]Write to MH i2c: E2 08 00 3C D8 80 0D 03 02 00 00 00 00 8F [22:12:46]Write i2c OK [22:12:46]MH_I2C_Read... [22:12:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:12:46]Read from MH i2c: E2 [22:12:46]MH_I2C_Read... [22:12:46]Read from MH i2c: E2 0B 00 [22:12:46]MH_I2C_Read... [22:12:46]Read from MH i2c: E2 0B 00 3C D8 00 1D 93 A5 14 FC 5A 43 31 90 00 C3 [22:12:46]RAPDU: 1D 93 A5 14 FC 5A 43 31 90 00 [22:12:46]wFMCommunicate OK [22:12:46]SAM_PROTO_SignData done [22:12:46]FM_MakeSignedData done [22:12:46]CreateOFDProtocolMessage [22:12:46]wFMCommunicate request_size=4 [22:12:46]MH_SAM_APDU [22:12:46]CAPDU: 80 11 00 00 [22:12:46]Write to MH i2c: E2 08 00 3D D8 80 11 00 00 00 00 00 00 8F [22:12:46]Write i2c OK [22:12:46]MH_I2C_Read... [22:12:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:46]Read from MH i2c: E2 [22:12:46]MH_I2C_Read... [22:12:46]Read from MH i2c: E2 17 00 [22:12:46]MH_I2C_Read... [22:12:46]Read from MH i2c: E2 17 00 3D D8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 DC [22:12:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:12:46]wFMCommunicate OK [22:12:46]CreateOFDProtocolMessage done [22:12:46]OFDSenderStorePacket 260981 [22:12:46]StoreOFDPacket docnum=260981 [22:12:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 6A 9E 07 01 F5 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 02 00 00 F4 03 04 00 E4 71 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 75 FB 03 00 35 04 06 00 B5 40 96 08 13 8D 1D 93 A5 14 FC 5A 43 31 [22:12:46]CheckFolder [22:12:46]dirname=/storage/ofd_packets [22:12:46]CheckFolder done [22:12:46]ProducePacketName [22:12:46]name=ofd_packets/00260981 [22:12:46]NVStorageSaveData ofd_packets/00260981 [22:12:46]File name is /storage/ofd_packets/00260981 [22:12:46]Write 301 bytes [22:12:46]NVStorageSaveData done [22:12:46]OFDSenderStorePacket done [22:12:46]KKMCreateOFDPacket done [22:12:46]NVStorageSaveData kkm_last_timestamp [22:12:46]File name is /storage/kkm_last_timestamp [22:12:46]Write 4 bytes [22:12:46]NVStorageSaveData done [22:12:46]ExternCall_PrintAddStr [22:12:46]wPrintStart [22:12:46]Write to MH i2c: 01 00 00 3E D8 16 [22:12:46]Write i2c OK [22:12:46]MH_I2C_Read... [22:12:46]Read from MH i2c: 01 [22:12:46]MH_I2C_Read... [22:12:46]Read from MH i2c: 01 07 00 [22:12:46]MH_I2C_Read... [22:12:46]Read from MH i2c: 01 07 00 3E D8 00 00 00 00 00 FF 0F 2B [22:12:46]RasterBufferAndPrint [22:12:46]line Счет N : (1)1036532 [22:12:46]line ИНН: 02508201610067 [22:12:46]line Контрольно-Кассовый Чек [22:12:46]line ПРОДАЖА [22:12:46]line ТРК (МРК, ГНК) : 23 [22:12:46]line Товар: 2710124500 [22:12:46]line Аи-95-К-5 [22:12:46]line 33.700 * 74.20 [22:12:46]line = 2500.54 [22:12:46]line НДС 12% НСП 1% [22:12:46]line > о реализуемом товаре [22:12:46]line ОКРУГЛЕНИЕ: -0.54 [22:12:46]line ИТОГО: 2500.00 [22:12:46]line Внесено: 2500.00 [22:12:46]line СДАЧА: 0.00 [22:12:46]line НСП 1% : 22.13 [22:12:46]line НДС 12% : 265.54 [22:12:46]line Наличными: 2500.00 [22:12:46]line Безнал.: 0.00 [22:12:46]line Место: АЗС № 94 "Партнер Нефть" [22:12:46]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [22:12:46]line СНО: Общий режим [22:12:46]line Чек 539 18.08.2024 22:12 [22:12:46]line Смена: 449 ФФД: 1.0 [22:12:46]line ЗНМ: 0300000099 [22:12:46]line РНМ: 0000000000091865 [22:12:46]line Версия ККМ: 001 [22:12:46]line ФМ: 0000000000871820 [22:12:46]line ФД: 260981 [22:12:46]line ФПД: 199288999646093 [22:12:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T221252&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260981&fm=199288999646093&tin=02508201610067®Number=0000000000091865&sum=250000 [22:12:46]written 0, free lines is 4095 [22:12:46]OFD Sender: Processing packet 260981 [packets to send 192, broken 191] [22:12:46]ProducePacketName [22:12:46]name=ofd_packets/00260981 [22:12:46]OFD Sender: To server: pG, [22:12:46]CommunicateWithHost lk.salyk.kg:30040 [22:12:46]ConnectInit lk.salyk.kg [22:12:47]Connected sock=11 [22:12: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 30 0F 01 00 00 6A 9E 07 01 F5 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 02 00 00 F4 03 04 00 E4 71 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 75 FB 03 00 35 04 06 00 B5 40 96 08 13 8D 1D 93 A5 14 FC 5A 43 31 [22:12: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 30 4F 00 00 00 3A 26 47 00 E1 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 75 FB 03 00 F4 03 04 00 37 1B C2 66 B6 04 01 00 00 B0 57 DF DF DA 19 36 35 [22:12:47]CommunicateWithHost err = 0 [22:12:47]CheckOFDResponse [22:12:47]1017 (14) - 77093643461234 [22:12:47]1041 (16) - 0000000000871820 [22:12:47]1040 (4) - 260981 [22:12:47]1012 (4) - 18.08.2024 16:03 [22:12:47]1206 (1) - 0 [22:12:47]OFD Sender: Remove packet 260981 [22:12:47]ProducePacketName [22:12:47]name=ofd_packets/00260981 [22:12:47]NVStorageDeleteData [22:12:47]Write to MH i2c: 01 00 00 69 D8 41 [22:12:47]Write i2c OK [22:12:47]MH_I2C_Read... [22:12:47]Read from MH i2c: 01 [22:12:47]MH_I2C_Read... [22:12:47]Read from MH i2c: 01 07 00 [22:12:47]MH_I2C_Read... [22:12:47]Read from MH i2c: 01 07 00 69 D8 00 00 00 00 00 68 0C BC [22:12:47]RasterBufferAndPrint [22:12:47]line [22:12:47]line [22:12:47]line [22:12:47]line [22:12:47]line [22:12:47]written 0, free lines is 3186 [22:12:47]MH_Cut [22:12:47]Write to MH i2c: D1 01 00 70 D8 01 1A [22:12:47]Write i2c OK [22:12:47]MH_I2C_Read... [22:12:47]Read from MH i2c: D1 [22:12:47]MH_I2C_Read... [22:12:47]Read from MH i2c: D1 01 00 [22:12:47]MH_I2C_Read... [22:12:47]Read from MH i2c: D1 01 00 70 D8 00 19 [22:12:47]Write to MH i2c: 01 00 00 71 D8 49 [22:12:47]Write i2c OK [22:12:47]MH_I2C_Read... [22:12:47]OFD Sender: No OFD packet to send [22:12:48]*** Cut start [22:12:48]*** Purtial cut [22:12:48]*** Stage 1: CUTSNS_PIN = 1 [22:12:50]Read from MH i2c: 01 [22:12:50]MH_I2C_Read... [22:12:50]*** Stop cut motor [22:12:50]*** Cut end [22:12:50]Read from MH i2c: 01 07 00 [22:12:50]MH_I2C_Read... [22:12:50]Read from MH i2c: 01 07 00 71 D8 00 00 00 00 00 FF 0F 5E [22:12:50]process_action close_receipt done [22:12:50]requested_data is exist [22:12:50]produce_requested_data [22:12:50]requested_item fm.sn is exist - process it [22:12:50]wFMCommunicate request_size=4 [22:12:50]MH_SAM_APDU [22:12:50]CAPDU: 80 11 00 00 [22:12:50]Write to MH i2c: E2 08 00 72 D8 80 11 00 00 00 00 00 00 C4 [22:12:50]Write i2c OK [22:12:50]MH_I2C_Read... [22:12:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:50]Read from MH i2c: E2 [22:12:50]MH_I2C_Read... [22:12:50]Read from MH i2c: E2 17 00 [22:12:50]MH_I2C_Read... [22:12:50]Read from MH i2c: E2 17 00 72 D8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 11 [22:12:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:12:50]wFMCommunicate OK [22:12:50]requested_item fd.num is exist - process it [22:12:50]SAM_PROTO_GetFieldsCounters [22:12:50]wFMCommunicate request_size=4 [22:12:50]MH_SAM_APDU [22:12:50]CAPDU: 80 13 00 00 [22:12:50]Write to MH i2c: E2 08 00 73 D8 80 13 00 00 00 00 00 00 C7 [22:12:50]Write i2c OK [22:12:50]MH_I2C_Read... [22:12:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:12:50]Read from MH i2c: E2 [22:12:50]MH_I2C_Read... [22:12:50]Read from MH i2c: E2 62 00 [22:12:50]MH_I2C_Read... [22:12:50]Read from MH i2c: E2 62 00 73 D8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 75 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 1B 02 00 00 5E 04 04 00 1B 02 00 00 57 04 04 00 1C 02 00 00 19 04 04 00 00 00 00 00 90 00 72 [22:12: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 75 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 1B 02 00 00 5E 04 04 00 1B 02 00 00 57 04 04 00 1C 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:12:50]wFMCommunicate OK [22:12:50]SAM_PROTO_GetFieldsCounters done [22:12:50]requested_item shift.num is exist - process it [22:12:50]requested_item shift.opened is exist - process it [22:12:50]req_shift_opened [22:12:50]FM_GetShiftState [22:12:50]SAM_PROTO_GetShiftState [22:12:50]wFMCommunicate request_size=4 [22:12:50]MH_SAM_APDU [22:12:50]CAPDU: 80 13 01 00 [22:12:50]Write to MH i2c: E2 08 00 74 D8 80 13 01 00 00 00 00 00 C9 [22:12:50]Write i2c OK [22:12:50]MH_I2C_Read... [22:12:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:50]Read from MH i2c: E2 [22:12:50]MH_I2C_Read... [22:12:50]Read from MH i2c: E2 0E 00 [22:12:50]MH_I2C_Read... [22:12:50]Read from MH i2c: E2 0E 00 74 D8 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 06 [22:12:50]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:12:50]wFMCommunicate OK [22:12:50]SAM_PROTO_GetShiftState done [22:12:50]FM_GetShiftState done [22:12:50]req_shift_opened done [22:12:50]requested_item shift.open_date is exist - process it [22:12:50]req_shift_open_date [22:12:50]req_shift_open_date done [22:12:50]produce_requested_data done [22:12:50]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260981,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [22:12:50]process_action_free close_receipt [22:12:50]json_value_free [22:12:50]json_value_free done [22:12:50]process_json_proto returns [22:12:50]Send response to host [22:12:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260981,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [22:12:50]free response buf [22:12:50]execute_script done [22:12:50]execute_script returns [22:12:50]free content buf [22:12:50]Sock 7.Close socket [22:12:50]Sock 7.Thread stoped [22:12:52]OFD Sender: No OFD packet to send [22:12:57]OFD Sender: No OFD packet to send [22:13:02]OFD Sender: No OFD packet to send [22:13:07]OFD Sender: No OFD packet to send [22:13:12]OFD Sender: No OFD packet to send [22:13:17]OFD Sender: No OFD packet to send [22:13:22]OFD Sender: No OFD packet to send [22:13:27]OFD Sender: No OFD packet to send [22:13:32]OFD Sender: No OFD packet to send [22:13:37]OFD Sender: No OFD packet to send [22:13:42]OFD Sender: No OFD packet to send [22:13:47]OFD Sender: No OFD packet to send [22:13:52]OFD Sender: No OFD packet to send [22:13:57]OFD Sender: No OFD packet to send [22:14:02]OFD Sender: No OFD packet to send [22:14:07]OFD Sender: No OFD packet to send [22:14:12]OFD Sender: No OFD packet to send [22:14:17]OFD Sender: No OFD packet to send [22:14:23]OFD Sender: No OFD packet to send [22:14:28]OFD Sender: No OFD packet to send [22:14:33]OFD Sender: No OFD packet to send [22:14:35]accept exits with 9 [22:14:35]New connection [22:14:35]New thread 3066473828 created [22:14:35]Thread 3066617188 joined [22:14:35]Waiting for new connection... [22:14:35] Sock 9.Parse request [22:14:35]Sock 9.Check first char [22:14:35]Sock 9.First char is OK [22:14:35]request: POST /json_proto HTTP/1.0 [22:14:35]Method: POST [22:14:35]URL: /json_proto [22:14:35]Method is POST - this is cgi request [22:14:35]url: /json_proto [22:14:35]query_string will be loaded in cgi processing [22:14:35]execute_cgi json_proto POST (null) [22:14:35]execute_cgi path=json_proto method=POST [22:14:35]POST find Content-Length [22:14:35]Host: 172.17.55.133:8080 [22:14:35]Content-Length: 683 [22:14:35]Content-Type: application/json [22:14:35] [22:14:35]POST finish read [22:14:35]Found Content-Length = 683 [22:14:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036535", "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" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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" ] } } [22:14:35]execute_script... [22:14: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)1036535", "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" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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" ] } } [22:14:35]POST & json_proto [22:14:35]process_json_proto [22:14:35]json parsed OK: [22:14:35]protocol is kg_v1.0 [22:14:35]action value=close_receipt [22:14:35]process_action close_receipt [22:14:35]cmd_close_receipt [22:14:35]MH_GetDate [22:14:35]Write to MH i2c: F0 00 00 75 D8 3C [22:14:35]Write i2c OK [22:14:35]MH_I2C_Read... [22:14:35]Read from MH i2c: F0 [22:14:35]MH_I2C_Read... [22:14:35]Read from MH i2c: F0 09 00 [22:14:35]MH_I2C_Read... [22:14:35]Read from MH i2c: F0 09 00 75 D8 00 53 72 C2 66 34 48 D8 65 EB [22:14:35]GetLastDocTimeStamp 1724019172 [22:14:35]current date 1724019283 [22:14:35]FM_GetShiftState [22:14:35]SAM_PROTO_GetShiftState [22:14:35]wFMCommunicate request_size=4 [22:14:35]MH_SAM_APDU [22:14:35]CAPDU: 80 13 01 00 [22:14:35]Write to MH i2c: E2 08 00 76 D8 80 13 01 00 00 00 00 00 CB [22:14:35]Write i2c OK [22:14:35]MH_I2C_Read... [22:14:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:14:35]Read from MH i2c: E2 [22:14:35]MH_I2C_Read... [22:14:35]Read from MH i2c: E2 0E 00 [22:14:35]MH_I2C_Read... [22:14:35]Read from MH i2c: E2 0E 00 76 D8 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 08 [22:14:35]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:14:35]wFMCommunicate OK [22:14:35]SAM_PROTO_GetShiftState done [22:14:35]FM_GetShiftState done [22:14:35]opened in 1723940556 [22:14:35]opened+sec_in_day 1724026956 [22:14:35]quantity*price = 150032 [22:14:35]sum+1 = 150033 [22:14:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 540 18.08.2024 22:14 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260982 ФПД: 140655839196521 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T221443&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260982&fm=140655839196521&tin=02508201610067®Number=0000000000091865&sum=150000 [22:14:37]StoreToDocumentArchive [22:14:37]shift 449 fd 260982 [22:14:37]save to /storage/0449/doc_00260982 [22:14:37]save last doc name /storage/0449/doc_00260982 to /storage/kkm_last_doc_name [22:14:37]save OK [22:14:37]Clear old archive folders... [22:14:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:14:37]tlvbuf is 007BC860 [22:14:37]SAM_PROTO_ClearQueue [22:14:37]wFMCommunicate request_size=4 [22:14:37]MH_SAM_APDU [22:14:37]CAPDU: 80 09 00 00 [22:14:37]Write to MH i2c: E2 08 00 83 D8 80 09 00 00 00 00 00 00 CD [22:14:37]Write i2c OK [22:14:37]MH_I2C_Read... [22:14:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:14:37]Read from MH i2c: E2 [22:14:37]MH_I2C_Read... [22:14:37]Read from MH i2c: E2 03 00 [22:14:37]MH_I2C_Read... [22:14:37]Read from MH i2c: E2 03 00 83 D8 00 90 00 CF [22:14:37]RAPDU: 90 00 [22:14:37]wFMCommunicate OK [22:14:37]SAM_PROTO_ClearQueue done [22:14:37]KKMCreateOFDPacket [22:14:37]OFDProtocolAddRootSTLVToBuf [22:14:37]FM_MakeSignedData [22:14:37]FM_MakeSignedData [22:14:37]SAM_PROTO_SignData [22:14:37]wFMCommunicate request_size=4 [22:14:37]MH_SAM_APDU [22:14:37]CAPDU: 80 0D 01 02 [22:14:37]Write to MH i2c: E2 08 00 84 D8 80 0D 01 02 00 00 00 00 D5 [22:14:37]Write i2c OK [22:14:37]MH_I2C_Read... [22:14:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:14:37]Read from MH i2c: E2 [22:14:37]MH_I2C_Read... [22:14:37]Read from MH i2c: E2 03 00 [22:14:37]MH_I2C_Read... [22:14:37]Read from MH i2c: E2 03 00 84 D8 00 90 00 D0 [22:14:37]RAPDU: 90 00 [22:14:37]wFMCommunicate OK [22:14:37]wFMCommunicate request_size=255 [22:14:37]MH_SAM_APDU [22:14:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 1C 02 00 00 F4 03 04 00 53 72 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 76 FB 03 00 35 04 06 00 7F [22:14:37]Write to MH i2c: E2 02 01 85 D8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 1C 02 00 00 F4 03 04 00 53 72 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 76 FB 03 00 35 04 06 00 7F 00 00 85 [22:14:37]Write i2c OK [22:14:37]MH_I2C_Read... [22:14:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:14:37]Read from MH i2c: E2 [22:14:37]MH_I2C_Read... [22:14:37]Read from MH i2c: E2 03 00 [22:14:37]MH_I2C_Read... [22:14:37]Read from MH i2c: E2 03 00 85 D8 00 90 00 D1 [22:14:37]RAPDU: 90 00 [22:14:37]wFMCommunicate OK [22:14:37]wFMCommunicate request_size=10 [22:14:37]MH_SAM_APDU [22:14:37]CAPDU: 80 0D 02 02 05 EC FD 54 B5 69 [22:14:37]Write to MH i2c: E2 0D 00 86 D8 80 0D 02 02 05 00 EC FD 54 B5 69 00 00 3D [22:14:37]Write i2c OK [22:14:37]MH_I2C_Read... [22:14:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:14:37]Read from MH i2c: E2 [22:14:37]MH_I2C_Read... [22:14:37]Read from MH i2c: E2 03 00 [22:14:37]MH_I2C_Read... [22:14:37]Read from MH i2c: E2 03 00 86 D8 00 90 00 D2 [22:14:37]RAPDU: 90 00 [22:14:37]wFMCommunicate OK [22:14:37]wFMCommunicate request_size=4 [22:14:37]MH_SAM_APDU [22:14:37]CAPDU: 80 0D 03 02 [22:14:37]Write to MH i2c: E2 08 00 87 D8 80 0D 03 02 00 00 00 00 DA [22:14:37]Write i2c OK [22:14:37]MH_I2C_Read... [22:14:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:14:37]Read from MH i2c: E2 [22:14:37]MH_I2C_Read... [22:14:37]Read from MH i2c: E2 0B 00 [22:14:37]MH_I2C_Read... [22:14:37]Read from MH i2c: E2 0B 00 87 D8 00 6D 86 CF AF FA C9 EF 14 90 00 12 [22:14:37]RAPDU: 6D 86 CF AF FA C9 EF 14 90 00 [22:14:37]wFMCommunicate OK [22:14:37]SAM_PROTO_SignData done [22:14:37]FM_MakeSignedData done [22:14:37]CreateOFDProtocolMessage [22:14:37]wFMCommunicate request_size=4 [22:14:37]MH_SAM_APDU [22:14:37]CAPDU: 80 11 00 00 [22:14:37]Write to MH i2c: E2 08 00 88 D8 80 11 00 00 00 00 00 00 DA [22:14:37]Write i2c OK [22:14:37]MH_I2C_Read... [22:14:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:14:37]Read from MH i2c: E2 [22:14:37]MH_I2C_Read... [22:14:37]Read from MH i2c: E2 17 00 [22:14:37]MH_I2C_Read... [22:14:37]Read from MH i2c: E2 17 00 88 D8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 27 [22:14:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:14:37]wFMCommunicate OK [22:14:37]CreateOFDProtocolMessage done [22:14:37]OFDSenderStorePacket 260982 [22:14:37]StoreOFDPacket docnum=260982 [22:14:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 D3 78 07 01 E3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 1C 02 00 00 F4 03 04 00 53 72 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 76 FB 03 00 35 04 06 00 7F EC FD 54 B5 69 6D 86 CF AF FA C9 EF 14 [22:14:37]CheckFolder [22:14:37]dirname=/storage/ofd_packets [22:14:37]CheckFolder done [22:14:37]ProducePacketName [22:14:37]name=ofd_packets/00260982 [22:14:37]NVStorageSaveData ofd_packets/00260982 [22:14:37]File name is /storage/ofd_packets/00260982 [22:14:37]Write 301 bytes [22:14:37]NVStorageSaveData done [22:14:37]OFDSenderStorePacket done [22:14:37]KKMCreateOFDPacket done [22:14:37]NVStorageSaveData kkm_last_timestamp [22:14:37]File name is /storage/kkm_last_timestamp [22:14:37]Write 4 bytes [22:14:37]NVStorageSaveData done [22:14:37]ExternCall_PrintAddStr [22:14:37]wPrintStart [22:14:37]Write to MH i2c: 01 00 00 89 D8 61 [22:14:37]Write i2c OK [22:14:37]MH_I2C_Read... [22:14:37]Read from MH i2c: 01 [22:14:37]MH_I2C_Read... [22:14:37]Read from MH i2c: 01 07 00 [22:14:37]MH_I2C_Read... [22:14:37]Read from MH i2c: 01 07 00 89 D8 00 00 00 00 00 FF 0F 76 [22:14:37]RasterBufferAndPrint [22:14:37]line Счет N : (1)1036535 [22:14:37]line ИНН: 02508201610067 [22:14:37]line Контрольно-Кассовый Чек [22:14:37]line ПРОДАЖА [22:14:37]line ТРК (МРК, ГНК) : 13 [22:14:37]line Товар: 2710124500 [22:14:37]line Аи-95-К-5 [22:14:37]line 20.220 * 74.20 [22:14:37]line = 1500.32 [22:14:37]line НДС 12% НСП 1% [22:14:37]line > о реализуемом товаре [22:14:37]line ОКРУГЛЕНИЕ: -0.32 [22:14:37]line ИТОГО: 1500.00 [22:14:37]line Внесено: 1500.00 [22:14:37]line СДАЧА: 0.00 [22:14:37]line НСП 1% : 13.28 [22:14:37]line НДС 12% : 159.33 [22:14:37]line Наличными: 1500.00 [22:14:37]line Безнал.: 0.00 [22:14:37]line Место: АЗС № 94 "Партнер Нефть" [22:14:37]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [22:14:37]line СНО: Общий режим [22:14:37]line Чек 540 18.08.2024 22:14 [22:14:37]line Смена: 449 ФФД: 1.0 [22:14:37]line ЗНМ: 0300000099 [22:14:37]line РНМ: 0000000000091865 [22:14:37]line Версия ККМ: 001 [22:14:37]line ФМ: 0000000000871820 [22:14:37]line ФД: 260982 [22:14:37]line ФПД: 140655839196521 [22:14:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T221443&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260982&fm=140655839196521&tin=02508201610067®Number=0000000000091865&sum=150000 [22:14:37]written 0, free lines is 4095 [22:14:37]OFD Sender: Processing packet 260982 [packets to send 192, broken 191] [22:14:37]ProducePacketName [22:14:37]name=ofd_packets/00260982 [22:14:37]OFD Sender: To server: pG, [22:14:37]CommunicateWithHost lk.salyk.kg:30040 [22:14:37]ConnectInit lk.salyk.kg [22:14:38]Connected sock=10 [22:14: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 30 0F 01 00 00 D3 78 07 01 E3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 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 1C 02 00 00 F4 03 04 00 53 72 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 76 FB 03 00 35 04 06 00 7F EC FD 54 B5 69 6D 86 CF AF FA C9 EF 14 [22:14: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 30 4F 00 00 00 CF 6D 47 00 7D D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 76 FB 03 00 F4 03 04 00 A6 1B C2 66 B6 04 01 00 00 D8 D4 58 C6 CE FA B8 CF [22:14:38]CommunicateWithHost err = 0 [22:14:38]CheckOFDResponse [22:14:38]1017 (14) - 77093643461234 [22:14:38]1041 (16) - 0000000000871820 [22:14:38]1040 (4) - 260982 [22:14:38]1012 (4) - 18.08.2024 16:04 [22:14:38]1206 (1) - 0 [22:14:38]OFD Sender: Remove packet 260982 [22:14:38]ProducePacketName [22:14:38]name=ofd_packets/00260982 [22:14:38]NVStorageDeleteData [22:14:38]Write to MH i2c: 01 00 00 B4 D8 8C [22:14:38]Write i2c OK [22:14:38]MH_I2C_Read... [22:14:38]Read from MH i2c: 01 [22:14:38]MH_I2C_Read... [22:14:38]Read from MH i2c: 01 07 00 [22:14:38]MH_I2C_Read... [22:14:38]Read from MH i2c: 01 07 00 B4 D8 00 00 00 00 00 55 0C F4 [22:14:38]RasterBufferAndPrint [22:14:38]line [22:14:38]line [22:14:38]line [22:14:38]line [22:14:38]line [22:14:38]written 0, free lines is 3160 [22:14:38]MH_Cut [22:14:38]Write to MH i2c: D1 01 00 BB D8 01 65 [22:14:38]Write i2c OK [22:14:38]MH_I2C_Read... [22:14:38]Read from MH i2c: D1 [22:14:38]MH_I2C_Read... [22:14:38]Read from MH i2c: D1 01 00 [22:14:38]MH_I2C_Read... [22:14:38]Read from MH i2c: D1 01 00 BB D8 00 64 [22:14:38]Write to MH i2c: 01 00 00 BC D8 94 [22:14:38]Write i2c OK [22:14:38]MH_I2C_Read... [22:14:38]OFD Sender: No OFD packet to send [22:14:39]*** Cut start [22:14:39]*** Purtial cut [22:14:39]*** Stage 1: CUTSNS_PIN = 1 [22:14:41]Read from MH i2c: 01 [22:14:41]MH_I2C_Read... [22:14:41]*** Stop cut motor [22:14:41]*** Cut end [22:14:41]Read from MH i2c: 01 07 00 [22:14:41]MH_I2C_Read... [22:14:41]Read from MH i2c: 01 07 00 BC D8 00 00 00 00 00 FF 0F A9 [22:14:41]process_action close_receipt done [22:14:41]requested_data is exist [22:14:41]produce_requested_data [22:14:41]requested_item fm.sn is exist - process it [22:14:41]wFMCommunicate request_size=4 [22:14:41]MH_SAM_APDU [22:14:41]CAPDU: 80 11 00 00 [22:14:41]Write to MH i2c: E2 08 00 BD D8 80 11 00 00 00 00 00 00 0F [22:14:41]Write i2c OK [22:14:41]MH_I2C_Read... [22:14:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:14:41]Read from MH i2c: E2 [22:14:41]MH_I2C_Read... [22:14:41]Read from MH i2c: E2 17 00 [22:14:41]MH_I2C_Read... [22:14:41]Read from MH i2c: E2 17 00 BD D8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 5C [22:14:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:14:41]wFMCommunicate OK [22:14:41]requested_item fd.num is exist - process it [22:14:41]SAM_PROTO_GetFieldsCounters [22:14:41]wFMCommunicate request_size=4 [22:14:41]MH_SAM_APDU [22:14:41]CAPDU: 80 13 00 00 [22:14:41]Write to MH i2c: E2 08 00 BE D8 80 13 00 00 00 00 00 00 12 [22:14:41]Write i2c OK [22:14:41]MH_I2C_Read... [22:14:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:14:41]Read from MH i2c: E2 [22:14:41]MH_I2C_Read... [22:14:41]Read from MH i2c: E2 62 00 [22:14:41]MH_I2C_Read... [22:14:41]Read from MH i2c: E2 62 00 BE D8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 76 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 1C 02 00 00 5E 04 04 00 1C 02 00 00 57 04 04 00 1D 02 00 00 19 04 04 00 00 00 00 00 90 00 C1 [22:14: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 76 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 1C 02 00 00 5E 04 04 00 1C 02 00 00 57 04 04 00 1D 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:14:41]wFMCommunicate OK [22:14:41]SAM_PROTO_GetFieldsCounters done [22:14:41]requested_item shift.num is exist - process it [22:14:41]requested_item shift.opened is exist - process it [22:14:41]req_shift_opened [22:14:41]FM_GetShiftState [22:14:41]SAM_PROTO_GetShiftState [22:14:41]wFMCommunicate request_size=4 [22:14:41]MH_SAM_APDU [22:14:41]CAPDU: 80 13 01 00 [22:14:41]Write to MH i2c: E2 08 00 BF D8 80 13 01 00 00 00 00 00 14 [22:14:41]Write i2c OK [22:14:41]MH_I2C_Read... [22:14:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:14:41]Read from MH i2c: E2 [22:14:41]MH_I2C_Read... [22:14:41]Read from MH i2c: E2 0E 00 [22:14:41]MH_I2C_Read... [22:14:41]Read from MH i2c: E2 0E 00 BF D8 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 51 [22:14:41]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:14:41]wFMCommunicate OK [22:14:41]SAM_PROTO_GetShiftState done [22:14:41]FM_GetShiftState done [22:14:41]req_shift_opened done [22:14:41]requested_item shift.open_date is exist - process it [22:14:41]req_shift_open_date [22:14:41]req_shift_open_date done [22:14:41]produce_requested_data done [22:14:41]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260982,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [22:14:41]process_action_free close_receipt [22:14:41]json_value_free [22:14:41]json_value_free done [22:14:41]process_json_proto returns [22:14:41]Send response to host [22:14:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260982,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [22:14:41]free response buf [22:14:41]execute_script done [22:14:41]execute_script returns [22:14:41]free content buf [22:14:41]Sock 9.Close socket [22:14:41]Sock 9.Thread stoped [22:14:43]OFD Sender: No OFD packet to send [22:14:48]OFD Sender: No OFD packet to send [22:14:53]OFD Sender: No OFD packet to send [22:14:58]OFD Sender: No OFD packet to send [22:15:03]OFD Sender: No OFD packet to send [22:15:08]OFD Sender: No OFD packet to send [22:15:13]OFD Sender: No OFD packet to send [22:15:18]OFD Sender: No OFD packet to send [22:15:23]OFD Sender: No OFD packet to send [22:15:28]OFD Sender: No OFD packet to send [22:15:33]OFD Sender: No OFD packet to send [22:15:38]OFD Sender: No OFD packet to send [22:15:43]OFD Sender: No OFD packet to send [22:15:48]OFD Sender: No OFD packet to send [22:15:53]OFD Sender: No OFD packet to send [22:15:54]accept exits with 7 [22:15:54]New connection [22:15:54]New thread 3066617188 created [22:15:54]Thread 3066473828 joined [22:15:54]Waiting for new connection... [22:15:54] Sock 7.Parse request [22:15:54]Sock 7.Check first char [22:15:54]Sock 7.First char is OK [22:15:54]request: POST /json_proto HTTP/1.0 [22:15:54]Method: POST [22:15:54]URL: /json_proto [22:15:54]Method is POST - this is cgi request [22:15:54]url: /json_proto [22:15:54]query_string will be loaded in cgi processing [22:15:54]execute_cgi json_proto POST (null) [22:15:54]execute_cgi path=json_proto method=POST [22:15:54]POST find Content-Length [22:15:54]Host: 172.17.55.133:8080 [22:15:54]Content-Length: 804 [22:15:54]Content-Type: application/json [22:15:54] [22:15:54]POST finish read [22:15:54]Found Content-Length = 804 [22:15:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:54]execute_script... [22:15: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)1036536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:54]POST & json_proto [22:15:54]process_json_proto [22:15:54]json parsed OK: [22:15:54]protocol is kg_v1.0 [22:15:54]action value=close_receipt [22:15:54]process_action close_receipt [22:15:54]cmd_close_receipt [22:15:54]MH_GetDate [22:15:54]Write to MH i2c: F0 00 00 C0 D8 87 [22:15:54]Write i2c OK [22:15:54]MH_I2C_Read... [22:15:54]Read from MH i2c: F0 [22:15:54]MH_I2C_Read... [22:15:54]Read from MH i2c: F0 09 00 [22:15:54]MH_I2C_Read... [22:15:54]Read from MH i2c: F0 09 00 C0 D8 00 A1 72 C2 66 34 48 D8 65 84 [22:15:54]GetLastDocTimeStamp 1724019283 [22:15:54]current date 1724019361 [22:15:54]FM_GetShiftState [22:15:54]SAM_PROTO_GetShiftState [22:15:54]wFMCommunicate request_size=4 [22:15:54]MH_SAM_APDU [22:15:54]CAPDU: 80 13 01 00 [22:15:54]Write to MH i2c: E2 08 00 C1 D8 80 13 01 00 00 00 00 00 16 [22:15:54]Write i2c OK [22:15:54]MH_I2C_Read... [22:15:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:54]Read from MH i2c: E2 [22:15:54]MH_I2C_Read... [22:15:54]Read from MH i2c: E2 0E 00 [22:15:54]MH_I2C_Read... [22:15:54]Read from MH i2c: E2 0E 00 C1 D8 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 53 [22:15:54]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:15:54]wFMCommunicate OK [22:15:54]SAM_PROTO_GetShiftState done [22:15:54]FM_GetShiftState done [22:15:54]opened in 1723940556 [22:15:54]opened+sec_in_day 1724026956 [22:15:54]quantity*price = 150041 [22:15:54]sum+1 = 150042 [22:15:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.41 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 0.00 Безнал.: 1500.41 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 541 18.08.2024 22:16 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260983 ФПД: 31745447662919 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T221601&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260983&fm=31745447662919&tin=02508201610067®Number=0000000000091865&sum=150041 [22:15:55]StoreToDocumentArchive [22:15:55]shift 449 fd 260983 [22:15:55]save to /storage/0449/doc_00260983 [22:15:55]save last doc name /storage/0449/doc_00260983 to /storage/kkm_last_doc_name [22:15:55]save OK [22:15:55]Clear old archive folders... [22:15:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:15:55]tlvbuf is 007BC340 [22:15:55]SAM_PROTO_ClearQueue [22:15:55]wFMCommunicate request_size=4 [22:15:55]MH_SAM_APDU [22:15:55]CAPDU: 80 09 00 00 [22:15:55]Write to MH i2c: E2 08 00 CE D8 80 09 00 00 00 00 00 00 18 [22:15:55]Write i2c OK [22:15:55]MH_I2C_Read... [22:15:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:15:55]Read from MH i2c: E2 [22:15:55]MH_I2C_Read... [22:15:55]Read from MH i2c: E2 03 00 [22:15:55]MH_I2C_Read... [22:15:55]Read from MH i2c: E2 03 00 CE D8 00 90 00 1A [22:15:55]RAPDU: 90 00 [22:15:55]wFMCommunicate OK [22:15:55]SAM_PROTO_ClearQueue done [22:15:55]KKMCreateOFDPacket [22:15:55]OFDProtocolAddRootSTLVToBuf [22:15:55]FM_MakeSignedData [22:15:55]FM_MakeSignedData [22:15:55]SAM_PROTO_SignData [22:15:55]wFMCommunicate request_size=4 [22:15:55]MH_SAM_APDU [22:15:55]CAPDU: 80 0D 01 02 [22:15:55]Write to MH i2c: E2 08 00 CF D8 80 0D 01 02 00 00 00 00 20 [22:15:55]Write i2c OK [22:15:55]MH_I2C_Read... [22:15:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:15:55]Read from MH i2c: E2 [22:15:55]MH_I2C_Read... [22:15:55]Read from MH i2c: E2 03 00 [22:15:55]MH_I2C_Read... [22:15:55]Read from MH i2c: E2 03 00 CF D8 00 90 00 1B [22:15:55]RAPDU: 90 00 [22:15:55]wFMCommunicate OK [22:15:55]wFMCommunicate request_size=255 [22:15:55]MH_SAM_APDU [22:15:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 02 00 00 F4 03 04 00 A1 72 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 77 FB 03 00 35 04 06 00 1C [22:15:55]Write to MH i2c: E2 02 01 D0 D8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 02 00 00 F4 03 04 00 A1 72 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 77 FB 03 00 35 04 06 00 1C 00 00 13 [22:15:55]Write i2c OK [22:15:55]MH_I2C_Read... [22:15:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:56]Read from MH i2c: E2 [22:15:56]MH_I2C_Read... [22:15:56]Read from MH i2c: E2 03 00 [22:15:56]MH_I2C_Read... [22:15:56]Read from MH i2c: E2 03 00 D0 D8 00 90 00 1C [22:15:56]RAPDU: 90 00 [22:15:56]wFMCommunicate OK [22:15:56]wFMCommunicate request_size=10 [22:15:56]MH_SAM_APDU [22:15:56]CAPDU: 80 0D 02 02 05 DF 50 21 95 47 [22:15:56]Write to MH i2c: E2 0D 00 D1 D8 80 0D 02 02 05 00 DF 50 21 95 47 00 00 59 [22:15:56]Write i2c OK [22:15:56]MH_I2C_Read... [22:15:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:56]Read from MH i2c: E2 [22:15:56]MH_I2C_Read... [22:15:56]Read from MH i2c: E2 03 00 [22:15:56]MH_I2C_Read... [22:15:56]Read from MH i2c: E2 03 00 D1 D8 00 90 00 1D [22:15:56]RAPDU: 90 00 [22:15:56]wFMCommunicate OK [22:15:56]wFMCommunicate request_size=4 [22:15:56]MH_SAM_APDU [22:15:56]CAPDU: 80 0D 03 02 [22:15:56]Write to MH i2c: E2 08 00 D2 D8 80 0D 03 02 00 00 00 00 25 [22:15:56]Write i2c OK [22:15:56]MH_I2C_Read... [22:15:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:15:56]Read from MH i2c: E2 [22:15:56]MH_I2C_Read... [22:15:56]Read from MH i2c: E2 0B 00 [22:15:56]MH_I2C_Read... [22:15:56]Read from MH i2c: E2 0B 00 D2 D8 00 20 7F E6 50 48 3A 71 04 90 00 F2 [22:15:56]RAPDU: 20 7F E6 50 48 3A 71 04 90 00 [22:15:56]wFMCommunicate OK [22:15:56]SAM_PROTO_SignData done [22:15:56]FM_MakeSignedData done [22:15:56]CreateOFDProtocolMessage [22:15:56]wFMCommunicate request_size=4 [22:15:56]MH_SAM_APDU [22:15:56]CAPDU: 80 11 00 00 [22:15:56]Write to MH i2c: E2 08 00 D3 D8 80 11 00 00 00 00 00 00 25 [22:15:56]Write i2c OK [22:15:56]MH_I2C_Read... [22:15:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:56]Read from MH i2c: E2 [22:15:56]MH_I2C_Read... [22:15:56]Read from MH i2c: E2 17 00 [22:15:56]MH_I2C_Read... [22:15:56]Read from MH i2c: E2 17 00 D3 D8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 72 [22:15:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:15:56]wFMCommunicate OK [22:15:56]CreateOFDProtocolMessage done [22:15:56]OFDSenderStorePacket 260983 [22:15:56]StoreOFDPacket docnum=260983 [22:15:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 5D 24 07 01 3D 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 02 00 00 F4 03 04 00 A1 72 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 77 FB 03 00 35 04 06 00 1C DF 50 21 95 47 20 7F E6 50 48 3A 71 04 [22:15:56]CheckFolder [22:15:56]dirname=/storage/ofd_packets [22:15:56]CheckFolder done [22:15:56]ProducePacketName [22:15:56]name=ofd_packets/00260983 [22:15:56]NVStorageSaveData ofd_packets/00260983 [22:15:56]File name is /storage/ofd_packets/00260983 [22:15:56]Write 301 bytes [22:15:56]NVStorageSaveData done [22:15:56]OFDSenderStorePacket done [22:15:56]KKMCreateOFDPacket done [22:15:56]NVStorageSaveData kkm_last_timestamp [22:15:56]File name is /storage/kkm_last_timestamp [22:15:56]Write 4 bytes [22:15:56]NVStorageSaveData done [22:15:56]ExternCall_PrintAddStr [22:15:56]wPrintStart [22:15:56]Write to MH i2c: 01 00 00 D4 D8 AC [22:15:56]Write i2c OK [22:15:56]MH_I2C_Read... [22:15:56]Read from MH i2c: 01 [22:15:56]MH_I2C_Read... [22:15:56]Read from MH i2c: 01 07 00 [22:15:56]MH_I2C_Read... [22:15:56]Read from MH i2c: 01 07 00 D4 D8 00 00 00 00 00 FF 0F C1 [22:15:56]RasterBufferAndPrint [22:15:56]line Счет N : (1)1036536 [22:15:56]line ИНН: 02508201610067 [22:15:56]line Контрольно-Кассовый Чек [22:15:56]line ПРОДАЖА [22:15:56]line ТРК (МРК, ГНК) : 22 [22:15:56]line Товар: 2710124130 [22:15:56]line Аи-92-К-5 [22:15:56]line 22.130 * 67.80 [22:15:56]line = 1500.41 [22:15:56]line НДС 12% НСП 1% [22:15:56]line > о реализуемом товаре [22:15:56]line ИТОГО: 1500.41 [22:15:56]line НСП 1% : 13.28 [22:15:56]line НДС 12% : 159.34 [22:15:56]line Наличными: 0.00 [22:15:56]line Безнал.: 1500.41 [22:15:56]line Место: АЗС № 94 "Партнер Нефть" [22:15:56]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [22:15:56]line СНО: Общий режим [22:15:56]line Чек 541 18.08.2024 22:16 [22:15:56]line Смена: 449 ФФД: 1.0 [22:15:56]line ЗНМ: 0300000099 [22:15:56]line РНМ: 0000000000091865 [22:15:56]line Версия ККМ: 001 [22:15:56]line Платежная система: O! деньги [22:15:56]line ФМ: 0000000000871820 [22:15:56]line ФД: 260983 [22:15:56]line ФПД: 31745447662919 [22:15:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T221601&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260983&fm=31745447662919&tin=02508201610067®Number=0000000000091865&sum=150041 [22:15:56]written 0, free lines is 4095 [22:15:56]OFD Sender: Processing packet 260983 [packets to send 192, broken 191] [22:15:56]ProducePacketName [22:15:56]name=ofd_packets/00260983 [22:15:56]OFD Sender: To server: pG, [22:15:56]CommunicateWithHost lk.salyk.kg:30040 [22:15:56]ConnectInit lk.salyk.kg [22:15:56]Connected sock=10 [22:15: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 30 0F 01 00 00 5D 24 07 01 3D 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 02 00 00 F4 03 04 00 A1 72 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 77 FB 03 00 35 04 06 00 1C DF 50 21 95 47 20 7F E6 50 48 3A 71 04 [22:15:56]Write to MH i2c: 01 00 00 FE D8 D6 [22:15:56]Write i2c OK [22:15:56]MH_I2C_Read... [22:15:56]Read from MH i2c: 01 [22:15:56]MH_I2C_Read... [22:15:56]Read from MH i2c: 01 07 00 [22:15:56]MH_I2C_Read... [22:15:56]Read from MH i2c: 01 07 00 FE D8 00 00 00 00 00 6D 0C 56 [22:15:56]RasterBufferAndPrint [22:15:56]line [22:15:56]line [22:15:56]line [22:15:56]line [22:15:56]line [22:15:56]written 0, free lines is 3183 [22:15:56]MH_Cut [22:15:56]Write to MH i2c: D1 01 00 05 D9 01 B0 [22:15:56]Write i2c OK [22:15:56]MH_I2C_Read... [22:15:56]Read from MH i2c: D1 [22:15:56]MH_I2C_Read... [22:15:56]Read from MH i2c: D1 01 00 [22:15:56]MH_I2C_Read... [22:15:56]Read from MH i2c: D1 01 00 05 D9 00 AF [22:15:56]Write to MH i2c: 01 00 00 06 D9 DF [22:15:56]Write i2c OK [22:15:56]MH_I2C_Read... [22:15: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 30 4F 00 00 00 F0 DF 47 00 FD 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 77 FB 03 00 F4 03 04 00 F5 1B C2 66 B6 04 01 00 00 61 DD 8D 97 12 F6 80 53 [22:15:56]CommunicateWithHost err = 0 [22:15:56]CheckOFDResponse [22:15:56]1017 (14) - 77093643461234 [22:15:56]1041 (16) - 0000000000871820 [22:15:56]1040 (4) - 260983 [22:15:56]1012 (4) - 18.08.2024 16:06 [22:15:56]1206 (1) - 0 [22:15:56]OFD Sender: Remove packet 260983 [22:15:56]ProducePacketName [22:15:56]name=ofd_packets/00260983 [22:15:56]NVStorageDeleteData [22:15:57]OFD Sender: No OFD packet to send [22:15:57]*** Cut start [22:15:57]*** Purtial cut [22:15:57]*** Stage 1: CUTSNS_PIN = 1 [22:15:59]Read from MH i2c: 01 [22:15:59]MH_I2C_Read... [22:15:59]*** Stop cut motor [22:15:59]*** Cut end [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 06 D9 00 00 00 00 00 FF 0F F4 [22:15:59]process_action close_receipt done [22:15:59]requested_data is exist [22:15:59]produce_requested_data [22:15:59]requested_item fm.sn is exist - process it [22:15:59]wFMCommunicate request_size=4 [22:15:59]MH_SAM_APDU [22:15:59]CAPDU: 80 11 00 00 [22:15:59]Write to MH i2c: E2 08 00 07 D9 80 11 00 00 00 00 00 00 5A [22:15:59]Write i2c OK [22:15:59]MH_I2C_Read... [22:15:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:59]Read from MH i2c: E2 [22:15:59]MH_I2C_Read... [22:15:59]Read from MH i2c: E2 17 00 [22:15:59]MH_I2C_Read... [22:15:59]Read from MH i2c: E2 17 00 07 D9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A7 [22:15:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:15:59]wFMCommunicate OK [22:15:59]requested_item fd.num is exist - process it [22:15:59]SAM_PROTO_GetFieldsCounters [22:15:59]wFMCommunicate request_size=4 [22:15:59]MH_SAM_APDU [22:15:59]CAPDU: 80 13 00 00 [22:15:59]Write to MH i2c: E2 08 00 08 D9 80 13 00 00 00 00 00 00 5D [22:15:59]Write i2c OK [22:15:59]MH_I2C_Read... [22:16:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:16:00]Read from MH i2c: E2 [22:16:00]MH_I2C_Read... [22:16:00]Read from MH i2c: E2 62 00 [22:16:00]MH_I2C_Read... [22:16:00]Read from MH i2c: E2 62 00 08 D9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 77 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 1D 02 00 00 5E 04 04 00 1D 02 00 00 57 04 04 00 1E 02 00 00 19 04 04 00 00 00 00 00 90 00 10 [22:16: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 77 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 1D 02 00 00 5E 04 04 00 1D 02 00 00 57 04 04 00 1E 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:16:00]wFMCommunicate OK [22:16:00]SAM_PROTO_GetFieldsCounters done [22:16:00]requested_item shift.num is exist - process it [22:16:00]requested_item shift.opened is exist - process it [22:16:00]req_shift_opened [22:16:00]FM_GetShiftState [22:16:00]SAM_PROTO_GetShiftState [22:16:00]wFMCommunicate request_size=4 [22:16:00]MH_SAM_APDU [22:16:00]CAPDU: 80 13 01 00 [22:16:00]Write to MH i2c: E2 08 00 09 D9 80 13 01 00 00 00 00 00 5F [22:16:00]Write i2c OK [22:16:00]MH_I2C_Read... [22:16:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:00]Read from MH i2c: E2 [22:16:00]MH_I2C_Read... [22:16:00]Read from MH i2c: E2 0E 00 [22:16:00]MH_I2C_Read... [22:16:00]Read from MH i2c: E2 0E 00 09 D9 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 9C [22:16:00]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:16:00]wFMCommunicate OK [22:16:00]SAM_PROTO_GetShiftState done [22:16:00]FM_GetShiftState done [22:16:00]req_shift_opened done [22:16:00]requested_item shift.open_date is exist - process it [22:16:00]req_shift_open_date [22:16:00]req_shift_open_date done [22:16:00]produce_requested_data done [22:16:00]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260983,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [22:16:00]process_action_free close_receipt [22:16:00]json_value_free [22:16:00]json_value_free done [22:16:00]process_json_proto returns [22:16:00]Send response to host [22:16:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260983,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [22:16:00]free response buf [22:16:00]execute_script done [22:16:00]execute_script returns [22:16:00]free content buf [22:16:00]Sock 7.Close socket [22:16:00]Sock 7.Thread stoped [22:16:02]OFD Sender: No OFD packet to send [22:16:07]OFD Sender: No OFD packet to send [22:16:12]OFD Sender: No OFD packet to send [22:16:17]OFD Sender: No OFD packet to send [22:16:22]OFD Sender: No OFD packet to send [22:16:27]OFD Sender: No OFD packet to send [22:16:32]OFD Sender: No OFD packet to send [22:16:37]OFD Sender: No OFD packet to send [22:16:42]OFD Sender: No OFD packet to send [22:16:47]OFD Sender: No OFD packet to send [22:16:52]OFD Sender: No OFD packet to send [22:16:57]OFD Sender: No OFD packet to send [22:17:02]OFD Sender: No OFD packet to send [22:17:07]OFD Sender: No OFD packet to send [22:17:12]OFD Sender: No OFD packet to send [22:17:17]OFD Sender: No OFD packet to send [22:17:22]OFD Sender: No OFD packet to send [22:17:26]accept exits with 9 [22:17:26]New connection [22:17:26]New thread 3066473828 created [22:17:26]Thread 3066617188 joined [22:17:26]Waiting for new connection... [22:17:26] Sock 9.Parse request [22:17:26]Sock 9.Check first char [22:17:26]Sock 9.First char is OK [22:17:26]request: POST /json_proto HTTP/1.0 [22:17:26]Method: POST [22:17:26]URL: /json_proto [22:17:26]Method is POST - this is cgi request [22:17:26]url: /json_proto [22:17:26]query_string will be loaded in cgi processing [22:17:26]execute_cgi json_proto POST (null) [22:17:26]execute_cgi path=json_proto method=POST [22:17:26]POST find Content-Length [22:17:26]Host: 172.17.55.133:8080 [22:17:26]Content-Length: 683 [22:17:26]Content-Type: application/json [22:17:26] [22:17:26]POST finish read [22:17:26]Found Content-Length = 683 [22:17:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "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" ] } } [22:17:26]execute_script... [22:17: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)1036537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "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" ] } } [22:17:26]POST & json_proto [22:17:26]process_json_proto [22:17:26]json parsed OK: [22:17:26]protocol is kg_v1.0 [22:17:26]action value=close_receipt [22:17:26]process_action close_receipt [22:17:26]cmd_close_receipt [22:17:26]MH_GetDate [22:17:26]Write to MH i2c: F0 00 00 0A D9 D2 [22:17:26]Write i2c OK [22:17:26]MH_I2C_Read... [22:17:26]Read from MH i2c: F0 [22:17:26]MH_I2C_Read... [22:17:26]Read from MH i2c: F0 09 00 [22:17:26]MH_I2C_Read... [22:17:26]Read from MH i2c: F0 09 00 0A D9 00 FD 72 C2 66 34 48 D8 65 2B [22:17:26]GetLastDocTimeStamp 1724019361 [22:17:26]current date 1724019453 [22:17:26]FM_GetShiftState [22:17:26]SAM_PROTO_GetShiftState [22:17:26]wFMCommunicate request_size=4 [22:17:26]MH_SAM_APDU [22:17:26]CAPDU: 80 13 01 00 [22:17:26]Write to MH i2c: E2 08 00 0B D9 80 13 01 00 00 00 00 00 61 [22:17:26]Write i2c OK [22:17:26]MH_I2C_Read... [22:17:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:26]Read from MH i2c: E2 [22:17:26]MH_I2C_Read... [22:17:26]Read from MH i2c: E2 0E 00 [22:17:26]MH_I2C_Read... [22:17:26]Read from MH i2c: E2 0E 00 0B D9 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 9E [22:17:26]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:17:26]wFMCommunicate OK [22:17:26]SAM_PROTO_GetShiftState done [22:17:26]FM_GetShiftState done [22:17:26]opened in 1723940556 [22:17:26]opened+sec_in_day 1724026956 [22:17:26]quantity*price = 200010 [22:17:26]sum+1 = 200011 [22:17:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 542 18.08.2024 22:17 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260984 ФПД: 129767813159882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T221733&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260984&fm=129767813159882&tin=02508201610067®Number=0000000000091865&sum=200000 [22:17:27]StoreToDocumentArchive [22:17:27]shift 449 fd 260984 [22:17:27]save to /storage/0449/doc_00260984 [22:17:27]save last doc name /storage/0449/doc_00260984 to /storage/kkm_last_doc_name [22:17:27]save OK [22:17:27]Clear old archive folders... [22:17:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:17:27]tlvbuf is 00817FA0 [22:17:27]SAM_PROTO_ClearQueue [22:17:27]wFMCommunicate request_size=4 [22:17:27]MH_SAM_APDU [22:17:27]CAPDU: 80 09 00 00 [22:17:27]Write to MH i2c: E2 08 00 18 D9 80 09 00 00 00 00 00 00 63 [22:17:27]Write i2c OK [22:17:27]MH_I2C_Read... [22:17:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:17:27]Read from MH i2c: E2 [22:17:27]MH_I2C_Read... [22:17:27]Read from MH i2c: E2 03 00 [22:17:27]MH_I2C_Read... [22:17:27]Read from MH i2c: E2 03 00 18 D9 00 90 00 65 [22:17:27]RAPDU: 90 00 [22:17:27]wFMCommunicate OK [22:17:27]SAM_PROTO_ClearQueue done [22:17:27]KKMCreateOFDPacket [22:17:27]OFDProtocolAddRootSTLVToBuf [22:17:27]FM_MakeSignedData [22:17:27]FM_MakeSignedData [22:17:27]SAM_PROTO_SignData [22:17:27]wFMCommunicate request_size=4 [22:17:27]MH_SAM_APDU [22:17:27]CAPDU: 80 0D 01 02 [22:17:27]Write to MH i2c: E2 08 00 19 D9 80 0D 01 02 00 00 00 00 6B [22:17:27]Write i2c OK [22:17:27]MH_I2C_Read... [22:17:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:17:27]Read from MH i2c: E2 [22:17:27]MH_I2C_Read... [22:17:27]Read from MH i2c: E2 03 00 [22:17:27]MH_I2C_Read... [22:17:27]Read from MH i2c: E2 03 00 19 D9 00 90 00 66 [22:17:27]RAPDU: 90 00 [22:17:27]wFMCommunicate OK [22:17:27]wFMCommunicate request_size=255 [22:17:27]MH_SAM_APDU [22:17:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 1E 02 00 00 F4 03 04 00 FD 72 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 78 FB 03 00 35 04 06 00 76 [22:17:27]Write to MH i2c: E2 02 01 1A D9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 1E 02 00 00 F4 03 04 00 FD 72 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 78 FB 03 00 35 04 06 00 76 00 00 51 [22:17:27]Write i2c OK [22:17:27]MH_I2C_Read... [22:17:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:17:27]Read from MH i2c: E2 [22:17:27]MH_I2C_Read... [22:17:27]Read from MH i2c: E2 03 00 [22:17:27]MH_I2C_Read... [22:17:27]Read from MH i2c: E2 03 00 1A D9 00 90 00 67 [22:17:27]RAPDU: 90 00 [22:17:27]wFMCommunicate OK [22:17:27]wFMCommunicate request_size=10 [22:17:27]MH_SAM_APDU [22:17:27]CAPDU: 80 0D 02 02 05 05 EC 68 1B CA [22:17:27]Write to MH i2c: E2 0D 00 1B D9 80 0D 02 02 05 00 05 EC 68 1B CA 00 00 B6 [22:17:27]Write i2c OK [22:17:27]MH_I2C_Read... [22:17:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:17:28]Read from MH i2c: E2 [22:17:28]MH_I2C_Read... [22:17:28]Read from MH i2c: E2 03 00 [22:17:28]MH_I2C_Read... [22:17:28]Read from MH i2c: E2 03 00 1B D9 00 90 00 68 [22:17:28]RAPDU: 90 00 [22:17:28]wFMCommunicate OK [22:17:28]wFMCommunicate request_size=4 [22:17:28]MH_SAM_APDU [22:17:28]CAPDU: 80 0D 03 02 [22:17:28]Write to MH i2c: E2 08 00 1C D9 80 0D 03 02 00 00 00 00 70 [22:17:28]Write i2c OK [22:17:28]MH_I2C_Read... [22:17:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:17:28]Read from MH i2c: E2 [22:17:28]MH_I2C_Read... [22:17:28]Read from MH i2c: E2 0B 00 [22:17:28]MH_I2C_Read... [22:17:28]Read from MH i2c: E2 0B 00 1C D9 00 10 89 E5 58 1E F7 BD 67 90 00 80 [22:17:28]RAPDU: 10 89 E5 58 1E F7 BD 67 90 00 [22:17:28]wFMCommunicate OK [22:17:28]SAM_PROTO_SignData done [22:17:28]FM_MakeSignedData done [22:17:28]CreateOFDProtocolMessage [22:17:28]wFMCommunicate request_size=4 [22:17:28]MH_SAM_APDU [22:17:28]CAPDU: 80 11 00 00 [22:17:28]Write to MH i2c: E2 08 00 1D D9 80 11 00 00 00 00 00 00 70 [22:17:28]Write i2c OK [22:17:28]MH_I2C_Read... [22:17:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:28]Read from MH i2c: E2 [22:17:28]MH_I2C_Read... [22:17:28]Read from MH i2c: E2 17 00 [22:17:28]MH_I2C_Read... [22:17:28]Read from MH i2c: E2 17 00 1D D9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 BD [22:17:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:17:28]wFMCommunicate OK [22:17:28]CreateOFDProtocolMessage done [22:17:28]OFDSenderStorePacket 260984 [22:17:28]StoreOFDPacket docnum=260984 [22: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 30 0F 01 00 00 76 50 07 01 41 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 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 1E 02 00 00 F4 03 04 00 FD 72 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 78 FB 03 00 35 04 06 00 76 05 EC 68 1B CA 10 89 E5 58 1E F7 BD 67 [22:17:28]CheckFolder [22:17:28]dirname=/storage/ofd_packets [22:17:28]CheckFolder done [22:17:28]ProducePacketName [22:17:28]name=ofd_packets/00260984 [22:17:28]NVStorageSaveData ofd_packets/00260984 [22:17:28]File name is /storage/ofd_packets/00260984 [22:17:28]Write 301 bytes [22:17:28]NVStorageSaveData done [22:17:28]OFDSenderStorePacket done [22:17:28]KKMCreateOFDPacket done [22:17:28]NVStorageSaveData kkm_last_timestamp [22:17:28]File name is /storage/kkm_last_timestamp [22:17:28]Write 4 bytes [22:17:28]NVStorageSaveData done [22:17:28]ExternCall_PrintAddStr [22:17:28]wPrintStart [22:17:28]Write to MH i2c: 01 00 00 1E D9 F7 [22:17:28]Write i2c OK [22:17:28]MH_I2C_Read... [22:17:28]Read from MH i2c: 01 [22:17:28]MH_I2C_Read... [22:17:28]Read from MH i2c: 01 07 00 [22:17:28]MH_I2C_Read... [22:17:28]Read from MH i2c: 01 07 00 1E D9 00 00 00 00 00 FF 0F 0C [22:17:28]RasterBufferAndPrint [22:17:28]line Счет N : (1)1036537 [22:17:28]line ИНН: 02508201610067 [22:17:28]line Контрольно-Кассовый Чек [22:17:28]line ПРОДАЖА [22:17:28]line ТРК (МРК, ГНК) : 32 [22:17:28]line Товар: 2710124130 [22:17:28]line Аи-92-К-5 [22:17:28]line 29.500 * 67.80 [22:17:28]line = 2000.10 [22:17:28]line НДС 12% НСП 1% [22:17:28]line > о реализуемом товаре [22:17:28]line ОКРУГЛЕНИЕ: -0.10 [22:17:28]line ИТОГО: 2000.00 [22:17:28]line Внесено: 2000.00 [22:17:28]line СДАЧА: 0.00 [22:17:28]line НСП 1% : 17.70 [22:17:28]line НДС 12% : 212.40 [22:17:28]line Наличными: 2000.00 [22:17:28]line Безнал.: 0.00 [22:17:28]line Место: АЗС № 94 "Партнер Нефть" [22:17:28]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [22:17:28]line СНО: Общий режим [22:17:28]line Чек 542 18.08.2024 22:17 [22:17:28]line Смена: 449 ФФД: 1.0 [22:17:28]line ЗНМ: 0300000099 [22:17:28]line РНМ: 0000000000091865 [22:17:28]line Версия ККМ: 001 [22:17:28]line ФМ: 0000000000871820 [22:17:28]line ФД: 260984 [22:17:28]line ФПД: 129767813159882 [22:17:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T221733&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260984&fm=129767813159882&tin=02508201610067®Number=0000000000091865&sum=200000 [22:17:28]written 0, free lines is 4095 [22:17:28]OFD Sender: Processing packet 260984 [packets to send 192, broken 191] [22:17:28]ProducePacketName [22:17:28]name=ofd_packets/00260984 [22:17:28]OFD Sender: To server: pG, [22:17:28]CommunicateWithHost lk.salyk.kg:30040 [22:17:28]ConnectInit lk.salyk.kg [22:17:28]Connected sock=10 [22:17: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 30 0F 01 00 00 76 50 07 01 41 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 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 1E 02 00 00 F4 03 04 00 FD 72 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 78 FB 03 00 35 04 06 00 76 05 EC 68 1B CA 10 89 E5 58 1E F7 BD 67 [22:17: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 30 4F 00 00 00 F3 16 47 00 8B 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 30 10 04 04 00 78 FB 03 00 F4 03 04 00 51 1C C2 66 B6 04 01 00 00 AE BF E7 E9 04 11 94 C8 [22:17:28]CommunicateWithHost err = 0 [22:17:28]CheckOFDResponse [22:17:28]1017 (14) - 77093643461234 [22:17:28]1041 (16) - 0000000000871820 [22:17:28]1040 (4) - 260984 [22:17:28]1012 (4) - 18.08.2024 16:07 [22:17:28]1206 (1) - 0 [22:17:28]OFD Sender: Remove packet 260984 [22:17:28]ProducePacketName [22:17:28]name=ofd_packets/00260984 [22:17:28]NVStorageDeleteData [22:17:28]Write to MH i2c: 01 00 00 49 D9 22 [22:17:28]Write i2c OK [22:17:28]MH_I2C_Read... [22:17:28]Read from MH i2c: 01 [22:17:28]MH_I2C_Read... [22:17:28]Read from MH i2c: 01 07 00 [22:17:28]MH_I2C_Read... [22:17:28]Read from MH i2c: 01 07 00 49 D9 00 00 00 00 00 54 0C 89 [22:17:28]RasterBufferAndPrint [22:17:28]line [22:17:28]line [22:17:28]line [22:17:28]line [22:17:28]line [22:17:28]written 0, free lines is 3160 [22:17:28]MH_Cut [22:17:28]Write to MH i2c: D1 01 00 50 D9 01 FB [22:17:28]Write i2c OK [22:17:28]MH_I2C_Read... [22:17:28]Read from MH i2c: D1 [22:17:28]MH_I2C_Read... [22:17:28]Read from MH i2c: D1 01 00 [22:17:28]MH_I2C_Read... [22:17:28]Read from MH i2c: D1 01 00 50 D9 00 FA [22:17:28]Write to MH i2c: 01 00 00 51 D9 2A [22:17:28]Write i2c OK [22:17:28]MH_I2C_Read... [22:17:29]OFD Sender: No OFD packet to send [22:17:29]*** Cut start [22:17:29]*** Purtial cut [22:17:29]*** Stage 1: CUTSNS_PIN = 1 [22:17:31]Read from MH i2c: 01 [22:17:31]MH_I2C_Read... [22:17:31]*** Stop cut motor [22:17:31]*** Cut end [22:17:31]Read from MH i2c: 01 07 00 [22:17:31]MH_I2C_Read... [22:17:31]Read from MH i2c: 01 07 00 51 D9 00 00 00 00 00 FF 0F 3F [22:17:31]process_action close_receipt done [22:17:31]requested_data is exist [22:17:31]produce_requested_data [22:17:31]requested_item fm.sn is exist - process it [22:17:31]wFMCommunicate request_size=4 [22:17:31]MH_SAM_APDU [22:17:31]CAPDU: 80 11 00 00 [22:17:31]Write to MH i2c: E2 08 00 52 D9 80 11 00 00 00 00 00 00 A5 [22:17:31]Write i2c OK [22:17:31]MH_I2C_Read... [22:17:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:31]Read from MH i2c: E2 [22:17:31]MH_I2C_Read... [22:17:31]Read from MH i2c: E2 17 00 [22:17:31]MH_I2C_Read... [22:17:31]Read from MH i2c: E2 17 00 52 D9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F2 [22:17:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:17:31]wFMCommunicate OK [22:17:31]requested_item fd.num is exist - process it [22:17:31]SAM_PROTO_GetFieldsCounters [22:17:31]wFMCommunicate request_size=4 [22:17:31]MH_SAM_APDU [22:17:31]CAPDU: 80 13 00 00 [22:17:31]Write to MH i2c: E2 08 00 53 D9 80 13 00 00 00 00 00 00 A8 [22:17:31]Write i2c OK [22:17:31]MH_I2C_Read... [22:17:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:17:32]Read from MH i2c: E2 [22:17:32]MH_I2C_Read... [22:17:32]Read from MH i2c: E2 62 00 [22:17:32]MH_I2C_Read... [22:17:32]Read from MH i2c: E2 62 00 53 D9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 78 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 1E 02 00 00 5E 04 04 00 1E 02 00 00 57 04 04 00 1F 02 00 00 19 04 04 00 00 00 00 00 90 00 5F [22:17: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 78 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 1E 02 00 00 5E 04 04 00 1E 02 00 00 57 04 04 00 1F 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:17:32]wFMCommunicate OK [22:17:32]SAM_PROTO_GetFieldsCounters done [22:17:32]requested_item shift.num is exist - process it [22:17:32]requested_item shift.opened is exist - process it [22:17:32]req_shift_opened [22:17:32]FM_GetShiftState [22:17:32]SAM_PROTO_GetShiftState [22:17:32]wFMCommunicate request_size=4 [22:17:32]MH_SAM_APDU [22:17:32]CAPDU: 80 13 01 00 [22:17:32]Write to MH i2c: E2 08 00 54 D9 80 13 01 00 00 00 00 00 AA [22:17:32]Write i2c OK [22:17:32]MH_I2C_Read... [22:17:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:32]Read from MH i2c: E2 [22:17:32]MH_I2C_Read... [22:17:32]Read from MH i2c: E2 0E 00 [22:17:32]MH_I2C_Read... [22:17:32]Read from MH i2c: E2 0E 00 54 D9 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E7 [22:17:32]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:17:32]wFMCommunicate OK [22:17:32]SAM_PROTO_GetShiftState done [22:17:32]FM_GetShiftState done [22:17:32]req_shift_opened done [22:17:32]requested_item shift.open_date is exist - process it [22:17:32]req_shift_open_date [22:17:32]req_shift_open_date done [22:17:32]produce_requested_data done [22:17:32]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260984,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [22:17:32]process_action_free close_receipt [22:17:32]json_value_free [22:17:32]json_value_free done [22:17:32]process_json_proto returns [22:17:32]Send response to host [22:17:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260984,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [22:17:32]free response buf [22:17:32]execute_script done [22:17:32]execute_script returns [22:17:32]free content buf [22:17:32]Sock 9.Close socket [22:17:32]Sock 9.Thread stoped [22:17:34]OFD Sender: No OFD packet to send [22:17:39]OFD Sender: No OFD packet to send [22:17:44]OFD Sender: No OFD packet to send [22:17:49]OFD Sender: No OFD packet to send [22:17:54]OFD Sender: No OFD packet to send [22:17:59]OFD Sender: No OFD packet to send [22:18:01]accept exits with 7 [22:18:01]New connection [22:18:01]New thread 3066617188 created [22:18:01]Thread 3066473828 joined [22:18:01]Waiting for new connection... [22:18:01] Sock 7.Parse request [22:18:01]Sock 7.Check first char [22:18:01]Sock 7.First char is OK [22:18:01]request: POST /json_proto HTTP/1.0 [22:18:01]Method: POST [22:18:01]URL: /json_proto [22:18:01]Method is POST - this is cgi request [22:18:01]url: /json_proto [22:18:01]query_string will be loaded in cgi processing [22:18:01]execute_cgi json_proto POST (null) [22:18:01]execute_cgi path=json_proto method=POST [22:18:01]POST find Content-Length [22:18:01]Host: 172.17.55.133:8080 [22:18:01]Content-Length: 801 [22:18:01]Content-Type: application/json [22:18:01] [22:18:01]POST finish read [22:18:01]Found Content-Length = 801 [22:18:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:18:01]execute_script... [22:18: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)1036538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:18:01]POST & json_proto [22:18:01]process_json_proto [22:18:01]json parsed OK: [22:18:01]protocol is kg_v1.0 [22:18:01]action value=close_receipt [22:18:01]process_action close_receipt [22:18:01]cmd_close_receipt [22:18:01]MH_GetDate [22:18:01]Write to MH i2c: F0 00 00 55 D9 1D [22:18:01]Write i2c OK [22:18:01]MH_I2C_Read... [22:18:01]Read from MH i2c: F0 [22:18:01]MH_I2C_Read... [22:18:01]Read from MH i2c: F0 09 00 [22:18:01]MH_I2C_Read... [22:18:01]Read from MH i2c: F0 09 00 55 D9 00 21 73 C2 66 34 48 D8 65 9B [22:18:01]GetLastDocTimeStamp 1724019453 [22:18:01]current date 1724019489 [22:18:01]FM_GetShiftState [22:18:01]SAM_PROTO_GetShiftState [22:18:01]wFMCommunicate request_size=4 [22:18:01]MH_SAM_APDU [22:18:01]CAPDU: 80 13 01 00 [22:18:01]Write to MH i2c: E2 08 00 56 D9 80 13 01 00 00 00 00 00 AC [22:18:01]Write i2c OK [22:18:01]MH_I2C_Read... [22:18:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:18:01]Read from MH i2c: E2 [22:18:01]MH_I2C_Read... [22:18:01]Read from MH i2c: E2 0E 00 [22:18:01]MH_I2C_Read... [22:18:01]Read from MH i2c: E2 0E 00 56 D9 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E9 [22:18:01]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:18:01]wFMCommunicate OK [22:18:01]SAM_PROTO_GetShiftState done [22:18:01]FM_GetShiftState done [22:18:01]opened in 1723940556 [22:18:01]opened+sec_in_day 1724026956 [22:18:01]quantity*price = 40002 [22:18:01]sum+1 = 40003 [22:18:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.02 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.02 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 543 18.08.2024 22:18 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260985 ФПД: 38757296750149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T221809&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260985&fm=38757296750149&tin=02508201610067®Number=0000000000091865&sum=40002 [22:18:03]StoreToDocumentArchive [22:18:03]shift 449 fd 260985 [22:18:03]save to /storage/0449/doc_00260985 [22:18:03]save last doc name /storage/0449/doc_00260985 to /storage/kkm_last_doc_name [22:18:03]save OK [22:18:03]Clear old archive folders... [22:18:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:18:03]tlvbuf is 003A7180 [22:18:03]SAM_PROTO_ClearQueue [22:18:03]wFMCommunicate request_size=4 [22:18:03]MH_SAM_APDU [22:18:03]CAPDU: 80 09 00 00 [22:18:03]Write to MH i2c: E2 08 00 63 D9 80 09 00 00 00 00 00 00 AE [22:18:03]Write i2c OK [22:18:03]MH_I2C_Read... [22:18:03]Read from MH i2c: E2 [22:18:03]MH_I2C_Read... [22:18:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:18:03]Read from MH i2c: E2 03 00 [22:18:03]MH_I2C_Read... [22:18:03]Read from MH i2c: E2 03 00 63 D9 00 90 00 B0 [22:18:03]RAPDU: 90 00 [22:18:03]wFMCommunicate OK [22:18:03]SAM_PROTO_ClearQueue done [22:18:03]KKMCreateOFDPacket [22:18:03]OFDProtocolAddRootSTLVToBuf [22:18:03]FM_MakeSignedData [22:18:03]FM_MakeSignedData [22:18:03]SAM_PROTO_SignData [22:18:03]wFMCommunicate request_size=4 [22:18:03]MH_SAM_APDU [22:18:03]CAPDU: 80 0D 01 02 [22:18:03]Write to MH i2c: E2 08 00 64 D9 80 0D 01 02 00 00 00 00 B6 [22:18:03]Write i2c OK [22:18:03]MH_I2C_Read... [22:18:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:18:03]Read from MH i2c: E2 [22:18:03]MH_I2C_Read... [22:18:03]Read from MH i2c: E2 03 00 [22:18:03]MH_I2C_Read... [22:18:03]Read from MH i2c: E2 03 00 64 D9 00 90 00 B1 [22:18:03]RAPDU: 90 00 [22:18:03]wFMCommunicate OK [22:18:03]wFMCommunicate request_size=255 [22:18:03]MH_SAM_APDU [22:18:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 02 00 00 F4 03 04 00 21 73 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 79 FB 03 00 35 04 06 00 23 [22:18:03]Write to MH i2c: E2 02 01 65 D9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 02 00 00 F4 03 04 00 21 73 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 79 FB 03 00 35 04 06 00 23 00 00 55 [22:18:03]Write i2c OK [22:18:03]MH_I2C_Read... [22:18:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:18:03]Read from MH i2c: E2 [22:18:03]MH_I2C_Read... [22:18:03]Read from MH i2c: E2 03 00 [22:18:03]MH_I2C_Read... [22:18:03]Read from MH i2c: E2 03 00 65 D9 00 90 00 B2 [22:18:03]RAPDU: 90 00 [22:18:03]wFMCommunicate OK [22:18:03]wFMCommunicate request_size=10 [22:18:03]MH_SAM_APDU [22:18:03]CAPDU: 80 0D 02 02 05 3F E2 E7 BE 45 [22:18:03]Write to MH i2c: E2 0D 00 66 D9 80 0D 02 02 05 00 3F E2 E7 BE 45 00 00 CE [22:18:03]Write i2c OK [22:18:03]MH_I2C_Read... [22:18:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:18:03]Read from MH i2c: E2 [22:18:03]MH_I2C_Read... [22:18:03]Read from MH i2c: E2 03 00 [22:18:03]MH_I2C_Read... [22:18:03]Read from MH i2c: E2 03 00 66 D9 00 90 00 B3 [22:18:03]RAPDU: 90 00 [22:18:03]wFMCommunicate OK [22:18:03]wFMCommunicate request_size=4 [22:18:03]MH_SAM_APDU [22:18:03]CAPDU: 80 0D 03 02 [22:18:03]Write to MH i2c: E2 08 00 67 D9 80 0D 03 02 00 00 00 00 BB [22:18:03]Write i2c OK [22:18:03]MH_I2C_Read... [22:18:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:18:03]Read from MH i2c: E2 [22:18:03]MH_I2C_Read... [22:18:03]Read from MH i2c: E2 0B 00 [22:18:03]MH_I2C_Read... [22:18:03]Read from MH i2c: E2 0B 00 67 D9 00 A1 18 4F 2B C4 1E A8 5E 90 00 D7 [22:18:03]RAPDU: A1 18 4F 2B C4 1E A8 5E 90 00 [22:18:03]wFMCommunicate OK [22:18:03]SAM_PROTO_SignData done [22:18:03]FM_MakeSignedData done [22:18:03]CreateOFDProtocolMessage [22:18:03]wFMCommunicate request_size=4 [22:18:03]MH_SAM_APDU [22:18:03]CAPDU: 80 11 00 00 [22:18:03]Write to MH i2c: E2 08 00 68 D9 80 11 00 00 00 00 00 00 BB [22:18:03]Write i2c OK [22:18:03]MH_I2C_Read... [22:18:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:18:03]Read from MH i2c: E2 [22:18:03]MH_I2C_Read... [22:18:03]Read from MH i2c: E2 17 00 [22:18:03]MH_I2C_Read... [22:18:03]Read from MH i2c: E2 17 00 68 D9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 08 [22:18:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:18:03]wFMCommunicate OK [22:18:03]CreateOFDProtocolMessage done [22:18:03]OFDSenderStorePacket 260985 [22:18:03]StoreOFDPacket docnum=260985 [22:18:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 F7 05 07 01 6B 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 02 00 00 F4 03 04 00 21 73 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 79 FB 03 00 35 04 06 00 23 3F E2 E7 BE 45 A1 18 4F 2B C4 1E A8 5E [22:18:03]CheckFolder [22:18:03]dirname=/storage/ofd_packets [22:18:03]CheckFolder done [22:18:03]ProducePacketName [22:18:03]name=ofd_packets/00260985 [22:18:03]NVStorageSaveData ofd_packets/00260985 [22:18:03]File name is /storage/ofd_packets/00260985 [22:18:03]Write 301 bytes [22:18:03]NVStorageSaveData done [22:18:03]OFDSenderStorePacket done [22:18:03]KKMCreateOFDPacket done [22:18:03]NVStorageSaveData kkm_last_timestamp [22:18:03]File name is /storage/kkm_last_timestamp [22:18:03]Write 4 bytes [22:18:03]NVStorageSaveData done [22:18:03]ExternCall_PrintAddStr [22:18:03]wPrintStart [22:18:03]Write to MH i2c: 01 00 00 69 D9 42 [22:18:03]Write i2c OK [22:18:03]MH_I2C_Read... [22:18:03]Read from MH i2c: 01 [22:18:03]MH_I2C_Read... [22:18:03]Read from MH i2c: 01 07 00 [22:18:03]MH_I2C_Read... [22:18:03]Read from MH i2c: 01 07 00 69 D9 00 00 00 00 00 FF 0F 57 [22:18:03]RasterBufferAndPrint [22:18:03]line Счет N : (1)1036538 [22:18:03]line ИНН: 02508201610067 [22:18:03]line Контрольно-Кассовый Чек [22:18:03]line ПРОДАЖА [22:18:03]line ТРК (МРК, ГНК) : 42 [22:18:03]line Товар: 2710124130 [22:18:03]line Аи-92-К-5 [22:18:03]line 5.900 * 67.80 [22:18:03]line = 400.02 [22:18:03]line НДС 12% НСП 1% [22:18:03]line > о реализуемом товаре [22:18:03]line ИТОГО: 400.02 [22:18:03]line НСП 1% : 3.54 [22:18:03]line НДС 12% : 42.48 [22:18:03]line Наличными: 0.00 [22:18:03]line Безнал.: 400.02 [22:18:03]line Место: АЗС № 94 "Партнер Нефть" [22:18:03]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [22:18:03]line СНО: Общий режим [22:18:03]line Чек 543 18.08.2024 22:18 [22:18:03]line Смена: 449 ФФД: 1.0 [22:18:03]line ЗНМ: 0300000099 [22:18:03]line РНМ: 0000000000091865 [22:18:03]line Версия ККМ: 001 [22:18:03]line Платежная система: O! деньги [22:18:03]line ФМ: 0000000000871820 [22:18:03]line ФД: 260985 [22:18:03]line ФПД: 38757296750149 [22:18:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T221809&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260985&fm=38757296750149&tin=02508201610067®Number=0000000000091865&sum=40002 [22:18:03]OFD Sender: Processing packet 260985 [packets to send 192, broken 191] [22:18:03]ProducePacketName [22:18:03]name=ofd_packets/00260985 [22:18:03]OFD Sender: To server: pG, [22:18:03]CommunicateWithHost lk.salyk.kg:30040 [22:18:03]ConnectInit lk.salyk.kg [22:18:03]written 0, free lines is 4095 [22:18:04]Connected sock=10 [22:18: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 30 0F 01 00 00 F7 05 07 01 6B 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 02 00 00 F4 03 04 00 21 73 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 79 FB 03 00 35 04 06 00 23 3F E2 E7 BE 45 A1 18 4F 2B C4 1E A8 5E [22:18: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 30 4F 00 00 00 71 52 47 00 FC 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 30 10 04 04 00 79 FB 03 00 F4 03 04 00 74 1C C2 66 B6 04 01 00 00 0B 15 08 6B 30 57 04 87 [22:18:04]CommunicateWithHost err = 0 [22:18:04]CheckOFDResponse [22:18:04]1017 (14) - 77093643461234 [22:18:04]1041 (16) - 0000000000871820 [22:18:04]1040 (4) - 260985 [22:18:04]1012 (4) - 18.08.2024 16:08 [22:18:04]1206 (1) - 0 [22:18:04]OFD Sender: Remove packet 260985 [22:18:04]ProducePacketName [22:18:04]name=ofd_packets/00260985 [22:18:04]NVStorageDeleteData [22:18:04]Write to MH i2c: 01 00 00 93 D9 6C [22:18:04]Write i2c OK [22:18:04]MH_I2C_Read... [22:18:04]Read from MH i2c: 01 [22:18:04]MH_I2C_Read... [22:18:04]Read from MH i2c: 01 07 00 [22:18:04]MH_I2C_Read... [22:18:04]Read from MH i2c: 01 07 00 93 D9 00 00 00 00 00 78 0C F7 [22:18:04]RasterBufferAndPrint [22:18:04]line [22:18:04]line [22:18:04]line [22:18:04]line [22:18:04]line [22:18:04]written 0, free lines is 3196 [22:18:04]MH_Cut [22:18:04]Write to MH i2c: D1 01 00 9A D9 01 45 [22:18:04]Write i2c OK [22:18:04]MH_I2C_Read... [22:18:04]Read from MH i2c: D1 [22:18:04]MH_I2C_Read... [22:18:04]Read from MH i2c: D1 01 00 [22:18:04]MH_I2C_Read... [22:18:04]Read from MH i2c: D1 01 00 9A D9 00 44 [22:18:04]Write to MH i2c: 01 00 00 9B D9 74 [22:18:04]Write i2c OK [22:18:04]MH_I2C_Read... [22:18:04]OFD Sender: No OFD packet to send [22:18:05]*** Cut start [22:18:05]*** Purtial cut [22:18:05]*** Stage 1: CUTSNS_PIN = 1 [22:18:07]Read from MH i2c: 01 [22:18:07]MH_I2C_Read... [22:18:07]*** Stop cut motor [22:18:07]*** Cut end [22:18:07]Read from MH i2c: 01 07 00 [22:18:07]MH_I2C_Read... [22:18:07]Read from MH i2c: 01 07 00 9B D9 00 00 00 00 00 FF 0F 89 [22:18:07]process_action close_receipt done [22:18:07]requested_data is exist [22:18:07]produce_requested_data [22:18:07]requested_item fm.sn is exist - process it [22:18:07]wFMCommunicate request_size=4 [22:18:07]MH_SAM_APDU [22:18:07]CAPDU: 80 11 00 00 [22:18:07]Write to MH i2c: E2 08 00 9C D9 80 11 00 00 00 00 00 00 EF [22:18:07]Write i2c OK [22:18:07]MH_I2C_Read... [22:18:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:18:07]Read from MH i2c: E2 [22:18:07]MH_I2C_Read... [22:18:07]Read from MH i2c: E2 17 00 [22:18:07]MH_I2C_Read... [22:18:07]Read from MH i2c: E2 17 00 9C D9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 3C [22:18:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:18:07]wFMCommunicate OK [22:18:07]requested_item fd.num is exist - process it [22:18:07]SAM_PROTO_GetFieldsCounters [22:18:07]wFMCommunicate request_size=4 [22:18:07]MH_SAM_APDU [22:18:07]CAPDU: 80 13 00 00 [22:18:07]Write to MH i2c: E2 08 00 9D D9 80 13 00 00 00 00 00 00 F2 [22:18:07]Write i2c OK [22:18:07]MH_I2C_Read... [22:18:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:18:07]Read from MH i2c: E2 [22:18:07]MH_I2C_Read... [22:18:07]Read from MH i2c: E2 62 00 [22:18:07]MH_I2C_Read... [22:18:07]Read from MH i2c: E2 62 00 9D D9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 79 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 1F 02 00 00 5E 04 04 00 1F 02 00 00 57 04 04 00 20 02 00 00 19 04 04 00 00 00 00 00 90 00 AD [22:18: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 79 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 1F 02 00 00 5E 04 04 00 1F 02 00 00 57 04 04 00 20 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:18:07]wFMCommunicate OK [22:18:07]SAM_PROTO_GetFieldsCounters done [22:18:07]requested_item shift.num is exist - process it [22:18:07]requested_item shift.opened is exist - process it [22:18:07]req_shift_opened [22:18:07]FM_GetShiftState [22:18:07]SAM_PROTO_GetShiftState [22:18:07]wFMCommunicate request_size=4 [22:18:07]MH_SAM_APDU [22:18:07]CAPDU: 80 13 01 00 [22:18:07]Write to MH i2c: E2 08 00 9E D9 80 13 01 00 00 00 00 00 F4 [22:18:07]Write i2c OK [22:18:07]MH_I2C_Read... [22:18:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:18:07]Read from MH i2c: E2 [22:18:07]MH_I2C_Read... [22:18:07]Read from MH i2c: E2 0E 00 [22:18:07]MH_I2C_Read... [22:18:07]Read from MH i2c: E2 0E 00 9E D9 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 31 [22:18:07]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:18:07]wFMCommunicate OK [22:18:07]SAM_PROTO_GetShiftState done [22:18:07]FM_GetShiftState done [22:18:07]req_shift_opened done [22:18:07]requested_item shift.open_date is exist - process it [22:18:07]req_shift_open_date [22:18:07]req_shift_open_date done [22:18:07]produce_requested_data done [22:18:07]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260985,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [22:18:07]process_action_free close_receipt [22:18:07]json_value_free [22:18:07]json_value_free done [22:18:07]process_json_proto returns [22:18:07]Send response to host [22:18:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260985,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [22:18:07]free response buf [22:18:07]execute_script done [22:18:07]execute_script returns [22:18:07]free content buf [22:18:07]Sock 7.Close socket [22:18:07]Sock 7.Thread stoped [22:18:09]OFD Sender: No OFD packet to send [22:18:14]OFD Sender: No OFD packet to send [22:18:19]OFD Sender: No OFD packet to send [22:18:24]OFD Sender: No OFD packet to send [22:18:29]OFD Sender: No OFD packet to send [22:18:34]OFD Sender: No OFD packet to send [22:18:39]OFD Sender: No OFD packet to send [22:18:44]OFD Sender: No OFD packet to send [22:18:49]OFD Sender: No OFD packet to send [22:18:54]OFD Sender: No OFD packet to send [22:18:59]OFD Sender: No OFD packet to send [22:19:04]OFD Sender: No OFD packet to send [22:19:09]OFD Sender: No OFD packet to send [22:19:14]OFD Sender: No OFD packet to send [22:19:19]OFD Sender: No OFD packet to send [22:19:24]OFD Sender: No OFD packet to send [22:19:29]OFD Sender: No OFD packet to send [22:19:34]OFD Sender: No OFD packet to send [22:19:39]OFD Sender: No OFD packet to send [22:19:44]OFD Sender: No OFD packet to send [22:19:49]OFD Sender: No OFD packet to send [22:19:54]OFD Sender: No OFD packet to send [22:19:59]OFD Sender: No OFD packet to send [22:20:04]OFD Sender: No OFD packet to send [22:20:09]OFD Sender: No OFD packet to send [22:20:14]OFD Sender: No OFD packet to send [22:20:19]OFD Sender: No OFD packet to send [22:20:24]OFD Sender: No OFD packet to send [22:20:29]OFD Sender: No OFD packet to send [22:20:34]OFD Sender: No OFD packet to send [22:20:39]OFD Sender: No OFD packet to send [22:20:44]OFD Sender: No OFD packet to send [22:20:49]OFD Sender: No OFD packet to send [22:20:54]OFD Sender: No OFD packet to send [22:20:59]OFD Sender: No OFD packet to send [22:21:04]OFD Sender: No OFD packet to send [22:21: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:36]accept exits with 9 [22:21:36]New connection [22:21:36]New thread 3066473828 created [22:21:36]Thread 3066617188 joined [22:21:36]Waiting for new connection... [22:21:36] Sock 9.Parse request [22:21:36]Sock 9.Check first char [22:21:36]Sock 9.First char is OK [22:21:36]request: POST /json_proto HTTP/1.0 [22:21:36]Method: POST [22:21:36]URL: /json_proto [22:21:36]Method is POST - this is cgi request [22:21:36]url: /json_proto [22:21:36]query_string will be loaded in cgi processing [22:21:36]execute_cgi json_proto POST (null) [22:21:36]execute_cgi path=json_proto method=POST [22:21:36]POST find Content-Length [22:21:36]Host: 172.17.55.133:8080 [22:21:36]Content-Length: 683 [22:21:36]Content-Type: application/json [22:21:36] [22:21:36]POST finish read [22:21:36]Found Content-Length = 683 [22:21:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036539", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:36]execute_script... [22:21: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)1036539", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:36]POST & json_proto [22:21:36]process_json_proto [22:21:36]json parsed OK: [22:21:36]protocol is kg_v1.0 [22:21:36]action value=close_receipt [22:21:36]process_action close_receipt [22:21:36]cmd_close_receipt [22:21:36]MH_GetDate [22:21:36]Write to MH i2c: F0 00 00 9F D9 67 [22:21:36]Write i2c OK [22:21:36]MH_I2C_Read... [22:21:36]Read from MH i2c: F0 [22:21:36]MH_I2C_Read... [22:21:36]Read from MH i2c: F0 09 00 [22:21:36]MH_I2C_Read... [22:21:36]Read from MH i2c: F0 09 00 9F D9 00 F7 73 C2 66 34 48 D8 65 BB [22:21:36]GetLastDocTimeStamp 1724019489 [22:21:36]current date 1724019703 [22:21:36]FM_GetShiftState [22:21:36]SAM_PROTO_GetShiftState [22:21:36]wFMCommunicate request_size=4 [22:21:36]MH_SAM_APDU [22:21:36]CAPDU: 80 13 01 00 [22:21:36]Write to MH i2c: E2 08 00 A0 D9 80 13 01 00 00 00 00 00 F6 [22:21:36]Write i2c OK [22:21:36]MH_I2C_Read... [22:21:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:36]Read from MH i2c: E2 [22:21:36]MH_I2C_Read... [22:21:36]Read from MH i2c: E2 0E 00 [22:21:36]MH_I2C_Read... [22:21:36]Read from MH i2c: E2 0E 00 A0 D9 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 33 [22:21:36]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:21:36]wFMCommunicate OK [22:21:36]SAM_PROTO_GetShiftState done [22:21:36]FM_GetShiftState done [22:21:36]opened in 1723940556 [22:21:36]opened+sec_in_day 1724026956 [22:21:36]quantity*price = 100021 [22:21:36]sum+1 = 100023 [22:21:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 544 18.08.2024 22:21 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260986 ФПД: 177251474350362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T222143&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260986&fm=177251474350362&tin=02508201610067®Number=0000000000091865&sum=100000 [22:21:37]StoreToDocumentArchive [22:21:37]shift 449 fd 260986 [22:21:37]save to /storage/0449/doc_00260986 [22:21:37]save last doc name /storage/0449/doc_00260986 to /storage/kkm_last_doc_name [22:21:37]save OK [22:21:37]Clear old archive folders... [22:21:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:21:37]tlvbuf is 004A4790 [22:21:37]SAM_PROTO_ClearQueue [22:21:37]wFMCommunicate request_size=4 [22:21:37]MH_SAM_APDU [22:21:37]CAPDU: 80 09 00 00 [22:21:37]Write to MH i2c: E2 08 00 AD D9 80 09 00 00 00 00 00 00 F8 [22:21:37]Write i2c OK [22:21:37]MH_I2C_Read... [22:21:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:21:37]Read from MH i2c: E2 [22:21:37]MH_I2C_Read... [22:21:37]Read from MH i2c: E2 03 00 [22:21:37]MH_I2C_Read... [22:21:37]Read from MH i2c: E2 03 00 AD D9 00 90 00 FA [22:21:37]RAPDU: 90 00 [22:21:37]wFMCommunicate OK [22:21:37]SAM_PROTO_ClearQueue done [22:21:37]KKMCreateOFDPacket [22:21:37]OFDProtocolAddRootSTLVToBuf [22:21:37]FM_MakeSignedData [22:21:37]FM_MakeSignedData [22:21:37]SAM_PROTO_SignData [22:21:37]wFMCommunicate request_size=4 [22:21:37]MH_SAM_APDU [22:21:37]CAPDU: 80 0D 01 02 [22:21:37]Write to MH i2c: E2 08 00 AE D9 80 0D 01 02 00 00 00 00 00 [22:21:37]Write i2c OK [22:21:37]MH_I2C_Read... [22:21:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:21:37]Read from MH i2c: E2 [22:21:37]MH_I2C_Read... [22:21:37]Read from MH i2c: E2 03 00 [22:21:37]MH_I2C_Read... [22:21:37]Read from MH i2c: E2 03 00 AE D9 00 90 00 FB [22:21:37]RAPDU: 90 00 [22:21:37]wFMCommunicate OK [22:21:37]wFMCommunicate request_size=255 [22:21:37]MH_SAM_APDU [22:21:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 02 00 00 F4 03 04 00 F7 73 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7A FB 03 00 35 04 06 00 A1 [22:21:37]Write to MH i2c: E2 02 01 AF D9 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 02 00 00 F4 03 04 00 F7 73 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7A FB 03 00 35 04 06 00 A1 00 00 39 [22:21:37]Write i2c OK [22:21:37]MH_I2C_Read... [22:21:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:38]Read from MH i2c: E2 [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: E2 03 00 [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: E2 03 00 AF D9 00 90 00 FC [22:21:38]RAPDU: 90 00 [22:21:38]wFMCommunicate OK [22:21:38]wFMCommunicate request_size=10 [22:21:38]MH_SAM_APDU [22:21:38]CAPDU: 80 0D 02 02 05 35 93 2A 21 1A [22:21:38]Write to MH i2c: E2 0D 00 B0 D9 80 0D 02 02 05 00 35 93 2A 21 1A 00 00 3A [22:21:38]Write i2c OK [22:21:38]MH_I2C_Read... [22:21:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:38]Read from MH i2c: E2 [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: E2 03 00 [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: E2 03 00 B0 D9 00 90 00 FD [22:21:38]RAPDU: 90 00 [22:21:38]wFMCommunicate OK [22:21:38]wFMCommunicate request_size=4 [22:21:38]MH_SAM_APDU [22:21:38]CAPDU: 80 0D 03 02 [22:21:38]Write to MH i2c: E2 08 00 B1 D9 80 0D 03 02 00 00 00 00 05 [22:21:38]Write i2c OK [22:21:38]MH_I2C_Read... [22:21:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:21:38]Read from MH i2c: E2 [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: E2 0B 00 [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: E2 0B 00 B1 D9 00 98 74 6E 60 AE 4D 2A E0 90 00 E5 [22:21:38]RAPDU: 98 74 6E 60 AE 4D 2A E0 90 00 [22:21:38]wFMCommunicate OK [22:21:38]SAM_PROTO_SignData done [22:21:38]FM_MakeSignedData done [22:21:38]CreateOFDProtocolMessage [22:21:38]wFMCommunicate request_size=4 [22:21:38]MH_SAM_APDU [22:21:38]CAPDU: 80 11 00 00 [22:21:38]Write to MH i2c: E2 08 00 B2 D9 80 11 00 00 00 00 00 00 05 [22:21:38]Write i2c OK [22:21:38]MH_I2C_Read... [22:21:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:38]Read from MH i2c: E2 [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: E2 17 00 [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: E2 17 00 B2 D9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 52 [22:21:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:21:38]wFMCommunicate OK [22:21:38]CreateOFDProtocolMessage done [22:21:38]OFDSenderStorePacket 260986 [22:21:38]StoreOFDPacket docnum=260986 [22:21:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 62 93 07 01 66 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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 02 00 00 F4 03 04 00 F7 73 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7A FB 03 00 35 04 06 00 A1 35 93 2A 21 1A 98 74 6E 60 AE 4D 2A E0 [22:21:38]CheckFolder [22:21:38]dirname=/storage/ofd_packets [22:21:38]CheckFolder done [22:21:38]ProducePacketName [22:21:38]name=ofd_packets/00260986 [22:21:38]NVStorageSaveData ofd_packets/00260986 [22:21:38]File name is /storage/ofd_packets/00260986 [22:21:38]Write 301 bytes [22:21:38]NVStorageSaveData done [22:21:38]OFDSenderStorePacket done [22:21:38]KKMCreateOFDPacket done [22:21:38]NVStorageSaveData kkm_last_timestamp [22:21:38]File name is /storage/kkm_last_timestamp [22:21:38]Write 4 bytes [22:21:38]NVStorageSaveData done [22:21:38]ExternCall_PrintAddStr [22:21:38]wPrintStart [22:21:38]Write to MH i2c: 01 00 00 B3 D9 8C [22:21:38]Write i2c OK [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: 01 [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: 01 07 00 [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: 01 07 00 B3 D9 00 00 00 00 00 FF 0F A1 [22:21:38]RasterBufferAndPrint [22:21:38]line Счет N : (1)1036539 [22:21:38]line ИНН: 02508201610067 [22:21:38]line Контрольно-Кассовый Чек [22:21:38]line ПРОДАЖА [22:21:38]line ТРК (МРК, ГНК) : 23 [22:21:38]line Товар: 2710124500 [22:21:38]line Аи-95-К-5 [22:21:38]line 13.480 * 74.20 [22:21:38]line = 1000.22 [22:21:38]line НДС 12% НСП 1% [22:21:38]line > о реализуемом товаре [22:21:38]line ОКРУГЛЕНИЕ: -0.22 [22:21:38]line ИТОГО: 1000.00 [22:21:38]line Внесено: 1000.00 [22:21:38]line СДАЧА: 0.00 [22:21:38]line НСП 1% : 8.85 [22:21:38]line НДС 12% : 106.22 [22:21:38]line Наличными: 1000.00 [22:21:38]line Безнал.: 0.00 [22:21:38]line Место: АЗС № 94 "Партнер Нефть" [22:21:38]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [22:21:38]line СНО: Общий режим [22:21:38]line Чек 544 18.08.2024 22:21 [22:21:38]line Смена: 449 ФФД: 1.0 [22:21:38]line ЗНМ: 0300000099 [22:21:38]line РНМ: 0000000000091865 [22:21:38]line Версия ККМ: 001 [22:21:38]line ФМ: 0000000000871820 [22:21:38]line ФД: 260986 [22:21:38]line ФПД: 177251474350362 [22:21:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T222143&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260986&fm=177251474350362&tin=02508201610067®Number=0000000000091865&sum=100000 [22:21:38]written 0, free lines is 4095 [22:21:38]OFD Sender: Processing packet 260986 [packets to send 192, broken 191] [22:21:38]ProducePacketName [22:21:38]name=ofd_packets/00260986 [22:21:38]OFD Sender: To server: pG, [22:21:38]CommunicateWithHost lk.salyk.kg:30040 [22:21:38]ConnectInit lk.salyk.kg [22:21:38]Connected sock=11 [22:21: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 30 0F 01 00 00 62 93 07 01 66 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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 02 00 00 F4 03 04 00 F7 73 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7A FB 03 00 35 04 06 00 A1 35 93 2A 21 1A 98 74 6E 60 AE 4D 2A E0 [22:21:38]Write to MH i2c: 01 00 00 DE D9 B7 [22:21:38]Write i2c OK [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: 01 [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: 01 07 00 [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: 01 07 00 DE D9 00 00 00 00 00 62 0C 2C [22:21:38]RasterBufferAndPrint [22:21:38]line [22:21:38]line [22:21:38]line [22:21:38]line [22:21:38]line [22:21:38]written 0, free lines is 3174 [22:21:38]MH_Cut [22:21:38]Write to MH i2c: D1 01 00 E5 D9 01 90 [22:21:38]Write i2c OK [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: D1 [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: D1 01 00 [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: D1 01 00 E5 D9 00 8F [22:21:38]Write to MH i2c: 01 00 00 E6 D9 BF [22:21:38]Write i2c OK [22:21:38]MH_I2C_Read... [22:21: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 30 4F 00 00 00 3A 45 47 00 EE 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 30 10 04 04 00 7A FB 03 00 F4 03 04 00 4B 1D C2 66 B6 04 01 00 00 38 82 2B BD 0D 7F 1D 5E [22:21:38]CommunicateWithHost err = 0 [22:21:38]CheckOFDResponse [22:21:38]1017 (14) - 77093643461234 [22:21:38]1041 (16) - 0000000000871820 [22:21:38]1040 (4) - 260986 [22:21:38]1012 (4) - 18.08.2024 16:11 [22:21:38]1206 (1) - 0 [22:21:38]OFD Sender: Remove packet 260986 [22:21:38]ProducePacketName [22:21:38]name=ofd_packets/00260986 [22:21:38]NVStorageDeleteData [22:21:39]OFD Sender: No OFD packet to send [22:21:39]*** Cut start [22:21:39]*** Purtial cut [22:21:39]*** Stage 1: CUTSNS_PIN = 1 [22:21:41]Read from MH i2c: 01 [22:21:41]MH_I2C_Read... [22:21:41]*** Stop cut motor [22:21:41]Read from MH i2c: *** Cut end [22:21:41]01 07 00 [22:21:41]MH_I2C_Read... [22:21:41]Read from MH i2c: 01 07 00 E6 D9 00 00 00 00 00 FF 0F D4 [22:21:41]process_action close_receipt done [22:21:41]requested_data is exist [22:21:41]produce_requested_data [22:21:41]requested_item fm.sn is exist - process it [22:21:41]wFMCommunicate request_size=4 [22:21:41]MH_SAM_APDU [22:21:41]CAPDU: 80 11 00 00 [22:21:41]Write to MH i2c: E2 08 00 E7 D9 80 11 00 00 00 00 00 00 3A [22:21:41]Write i2c OK [22:21:41]MH_I2C_Read... [22:21:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:42]Read from MH i2c: E2 [22:21:42]MH_I2C_Read... [22:21:42]Read from MH i2c: E2 17 00 [22:21:42]MH_I2C_Read... [22:21:42]Read from MH i2c: E2 17 00 E7 D9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 87 [22:21:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:21:42]wFMCommunicate OK [22:21:42]requested_item fd.num is exist - process it [22:21:42]SAM_PROTO_GetFieldsCounters [22:21:42]wFMCommunicate request_size=4 [22:21:42]MH_SAM_APDU [22:21:42]CAPDU: 80 13 00 00 [22:21:42]Write to MH i2c: E2 08 00 E8 D9 80 13 00 00 00 00 00 00 3D [22:21:42]Write i2c OK [22:21:42]MH_I2C_Read... [22:21:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:21:42]Read from MH i2c: E2 [22:21:42]MH_I2C_Read... [22:21:42]Read from MH i2c: E2 62 00 [22:21:42]MH_I2C_Read... [22:21:42]Read from MH i2c: E2 62 00 E8 D9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 7A FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 20 02 00 00 5E 04 04 00 20 02 00 00 57 04 04 00 21 02 00 00 19 04 04 00 00 00 00 00 90 00 FC [22:21: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 7A FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 20 02 00 00 5E 04 04 00 20 02 00 00 57 04 04 00 21 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:21:42]wFMCommunicate OK [22:21:42]SAM_PROTO_GetFieldsCounters done [22:21:42]requested_item shift.num is exist - process it [22:21:42]requested_item shift.opened is exist - process it [22:21:42]req_shift_opened [22:21:42]FM_GetShiftState [22:21:42]SAM_PROTO_GetShiftState [22:21:42]wFMCommunicate request_size=4 [22:21:42]MH_SAM_APDU [22:21:42]CAPDU: 80 13 01 00 [22:21:42]Write to MH i2c: E2 08 00 E9 D9 80 13 01 00 00 00 00 00 3F [22:21:42]Write i2c OK [22:21:42]MH_I2C_Read... [22:21:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:42]Read from MH i2c: E2 [22:21:42]MH_I2C_Read... [22:21:42]Read from MH i2c: E2 0E 00 [22:21:42]MH_I2C_Read... [22:21:42]Read from MH i2c: E2 0E 00 E9 D9 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 7C [22:21:42]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:21:42]wFMCommunicate OK [22:21:42]SAM_PROTO_GetShiftState done [22:21:42]FM_GetShiftState done [22:21:42]req_shift_opened done [22:21:42]requested_item shift.open_date is exist - process it [22:21:42]req_shift_open_date [22:21:42]req_shift_open_date done [22:21:42]produce_requested_data done [22:21:42]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260986,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [22:21:42]process_action_free close_receipt [22:21:42]json_value_free [22:21:42]json_value_free done [22:21:42]process_json_proto returns [22:21:42]Send response to host [22:21:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260986,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [22:21:42]free response buf [22:21:42]execute_script done [22:21:42]execute_script returns [22:21:42]free content buf [22:21:42]Sock 9.Close socket [22:21:42]Sock 9.Thread stoped [22:21:44]OFD Sender: No OFD packet to send [22:21:49]OFD Sender: No OFD packet to send [22:21:54]OFD Sender: No OFD packet to send [22:21:59]OFD Sender: No OFD packet to send [22:22:04]OFD Sender: No OFD packet to send [22:22:09]OFD Sender: No OFD packet to send [22:22:14]OFD Sender: No OFD packet to send [22:22:19]OFD Sender: No OFD packet to send [22:22:24]OFD Sender: No OFD packet to send [22:22:29]OFD Sender: No OFD packet to send [22:22:34]OFD Sender: No OFD packet to send [22:22:39]OFD Sender: No OFD packet to send [22:22:44]OFD Sender: No OFD packet to send [22:22:49]OFD Sender: No OFD packet to send [22:22:54]OFD Sender: No OFD packet to send [22:22:59]OFD Sender: No OFD packet to send [22:23:04]OFD Sender: No OFD packet to send [22:23:09]OFD Sender: No OFD packet to send [22:23:14]OFD Sender: No OFD packet to send [22:23:19]OFD Sender: No OFD packet to send [22:23:24]OFD Sender: No OFD packet to send [22:23:29]OFD Sender: No OFD packet to send [22:23:34]OFD Sender: No OFD packet to send [22:23:37]accept exits with 7 [22:23:37]New connection [22:23:37]New thread 3066617188 created [22:23:37]Thread 3066473828 joined [22:23:37]Waiting for new connection... [22:23:37] Sock 7.Parse request [22:23:37]Sock 7.Check first char [22:23:37]Sock 7.First char is OK [22:23:37]request: POST /json_proto HTTP/1.0 [22:23:37]Method: POST [22:23:37]URL: /json_proto [22:23:37]Method is POST - this is cgi request [22:23:37]url: /json_proto [22:23:37]query_string will be loaded in cgi processing [22:23:37]execute_cgi json_proto POST (null) [22:23:37]execute_cgi path=json_proto method=POST [22:23:37]POST find Content-Length [22:23:37]Host: 172.17.55.133:8080 [22:23:37]Content-Length: 683 [22:23:37]Content-Type: application/json [22:23:37] [22:23:37]POST finish read [22:23:37]Found Content-Length = 683 [22:23:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:23:37]execute_script... [22:23: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)1036540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:23:37]POST & json_proto [22:23:37]process_json_proto [22:23:37]json parsed OK: [22:23:37]protocol is kg_v1.0 [22:23:37]action value=close_receipt [22:23:37]process_action close_receipt [22:23:37]cmd_close_receipt [22:23:37]MH_GetDate [22:23:37]Write to MH i2c: F0 00 00 EA D9 B2 [22:23:37]Write i2c OK [22:23:37]MH_I2C_Read... [22:23:37]Read from MH i2c: F0 [22:23:37]MH_I2C_Read... [22:23:37]Read from MH i2c: F0 09 00 [22:23:37]MH_I2C_Read... [22:23:37]Read from MH i2c: F0 09 00 EA D9 00 70 74 C2 66 34 48 D8 65 80 [22:23:37]GetLastDocTimeStamp 1724019703 [22:23:37]current date 1724019824 [22:23:37]FM_GetShiftState [22:23:37]SAM_PROTO_GetShiftState [22:23:37]wFMCommunicate request_size=4 [22:23:37]MH_SAM_APDU [22:23:37]CAPDU: 80 13 01 00 [22:23:37]Write to MH i2c: E2 08 00 EB D9 80 13 01 00 00 00 00 00 41 [22:23:37]Write i2c OK [22:23:37]MH_I2C_Read... [22:23:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:37]Read from MH i2c: E2 [22:23:37]MH_I2C_Read... [22:23:37]Read from MH i2c: E2 0E 00 [22:23:37]MH_I2C_Read... [22:23:37]Read from MH i2c: E2 0E 00 EB D9 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 7E [22:23:37]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:23:37]wFMCommunicate OK [22:23:37]SAM_PROTO_GetShiftState done [22:23:37]FM_GetShiftState done [22:23:37]opened in 1723940556 [22:23:37]opened+sec_in_day 1724026956 [22:23:37]quantity*price = 100005 [22:23:37]sum+1 = 100006 [22:23:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 545 18.08.2024 22:23 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260987 ФПД: 142175118846209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T222344&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260987&fm=142175118846209&tin=02508201610067®Number=0000000000091865&sum=100000 [22:23:38]StoreToDocumentArchive [22:23:38]shift 449 fd 260987 [22:23:38]save to /storage/0449/doc_00260987 [22:23:38]save last doc name /storage/0449/doc_00260987 to /storage/kkm_last_doc_name [22:23:38]save OK [22:23:38]Clear old archive folders... [22:23:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:23:38]tlvbuf is 004A1EB0 [22:23:38]SAM_PROTO_ClearQueue [22:23:38]wFMCommunicate request_size=4 [22:23:38]MH_SAM_APDU [22:23:38]CAPDU: 80 09 00 00 [22:23:38]Write to MH i2c: E2 08 00 F8 D9 80 09 00 00 00 00 00 00 43 [22:23:38]Write i2c OK [22:23:38]MH_I2C_Read... [22:23:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:23:38]Read from MH i2c: E2 [22:23:38]MH_I2C_Read... [22:23:38]Read from MH i2c: E2 03 00 [22:23:38]MH_I2C_Read... [22:23:38]Read from MH i2c: E2 03 00 F8 D9 00 90 00 45 [22:23:38]RAPDU: 90 00 [22:23:38]wFMCommunicate OK [22:23:38]SAM_PROTO_ClearQueue done [22:23:38]KKMCreateOFDPacket [22:23:38]OFDProtocolAddRootSTLVToBuf [22:23:38]FM_MakeSignedData [22:23:38]FM_MakeSignedData [22:23:38]SAM_PROTO_SignData [22:23:38]wFMCommunicate request_size=4 [22:23:38]MH_SAM_APDU [22:23:38]CAPDU: 80 0D 01 02 [22:23:38]Write to MH i2c: E2 08 00 F9 D9 80 0D 01 02 00 00 00 00 4B [22:23:38]Write i2c OK [22:23:38]MH_I2C_Read... [22:23:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:23:38]Read from MH i2c: E2 [22:23:38]MH_I2C_Read... [22:23:38]Read from MH i2c: E2 03 00 [22:23:38]MH_I2C_Read... [22:23:38]Read from MH i2c: E2 03 00 F9 D9 00 90 00 46 [22:23:38]RAPDU: 90 00 [22:23:38]wFMCommunicate OK [22:23:38]wFMCommunicate request_size=255 [22:23:38]MH_SAM_APDU [22:23:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 02 00 00 F4 03 04 00 70 74 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7B FB 03 00 35 04 06 00 81 [22:23:38]Write to MH i2c: E2 02 01 FA D9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 02 00 00 F4 03 04 00 70 74 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7B FB 03 00 35 04 06 00 81 00 00 42 [22:23:38]Write i2c OK [22:23:38]MH_I2C_Read... [22:23:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:39]Read from MH i2c: E2 [22:23:39]MH_I2C_Read... [22:23:39]Read from MH i2c: E2 03 00 [22:23:39]MH_I2C_Read... [22:23:39]Read from MH i2c: E2 03 00 FA D9 00 90 00 47 [22:23:39]RAPDU: 90 00 [22:23:39]wFMCommunicate OK [22:23:39]wFMCommunicate request_size=10 [22:23:39]MH_SAM_APDU [22:23:39]CAPDU: 80 0D 02 02 05 4E B9 74 69 01 [22:23:39]Write to MH i2c: E2 0D 00 FB D9 80 0D 02 02 05 00 4E B9 74 69 01 00 00 3D [22:23:39]Write i2c OK [22:23:39]MH_I2C_Read... [22:23:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:39]Read from MH i2c: E2 [22:23:39]MH_I2C_Read... [22:23:39]Read from MH i2c: E2 03 00 [22:23:39]MH_I2C_Read... [22:23:39]Read from MH i2c: E2 03 00 FB D9 00 90 00 48 [22:23:39]RAPDU: 90 00 [22:23:39]wFMCommunicate OK [22:23:39]wFMCommunicate request_size=4 [22:23:39]MH_SAM_APDU [22:23:39]CAPDU: 80 0D 03 02 [22:23:39]Write to MH i2c: E2 08 00 FC D9 80 0D 03 02 00 00 00 00 50 [22:23:39]Write i2c OK [22:23:39]MH_I2C_Read... [22:23:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:23:39]Read from MH i2c: E2 [22:23:39]MH_I2C_Read... [22:23:39]Read from MH i2c: E2 0B 00 [22:23:39]MH_I2C_Read... [22:23:39]Read from MH i2c: E2 0B 00 FC D9 00 58 87 39 FA FF B5 08 80 90 00 9F [22:23:39]RAPDU: 58 87 39 FA FF B5 08 80 90 00 [22:23:39]wFMCommunicate OK [22:23:39]SAM_PROTO_SignData done [22:23:39]FM_MakeSignedData done [22:23:39]CreateOFDProtocolMessage [22:23:39]wFMCommunicate request_size=4 [22:23:39]MH_SAM_APDU [22:23:39]CAPDU: 80 11 00 00 [22:23:39]Write to MH i2c: E2 08 00 FD D9 80 11 00 00 00 00 00 00 50 [22:23:39]Write i2c OK [22:23:39]MH_I2C_Read... [22:23:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:39]Read from MH i2c: E2 [22:23:39]MH_I2C_Read... [22:23:39]Read from MH i2c: E2 17 00 [22:23:39]MH_I2C_Read... [22:23:39]Read from MH i2c: E2 17 00 FD D9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 9D [22:23:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:23:39]wFMCommunicate OK [22:23:39]CreateOFDProtocolMessage done [22:23:39]OFDSenderStorePacket 260987 [22:23:39]StoreOFDPacket docnum=260987 [22:23:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 70 48 07 01 96 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 02 00 00 F4 03 04 00 70 74 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7B FB 03 00 35 04 06 00 81 4E B9 74 69 01 58 87 39 FA FF B5 08 80 [22:23:39]CheckFolder [22:23:39]dirname=/storage/ofd_packets [22:23:39]CheckFolder done [22:23:39]ProducePacketName [22:23:39]name=ofd_packets/00260987 [22:23:39]NVStorageSaveData ofd_packets/00260987 [22:23:39]File name is /storage/ofd_packets/00260987 [22:23:39]Write 301 bytes [22:23:39]NVStorageSaveData done [22:23:39]OFDSenderStorePacket done [22:23:39]KKMCreateOFDPacket done [22:23:39]NVStorageSaveData kkm_last_timestamp [22:23:39]File name is /storage/kkm_last_timestamp [22:23:39]Write 4 bytes [22:23:39]NVStorageSaveData done [22:23:39]ExternCall_PrintAddStr [22:23:39]wPrintStart [22:23:39]Write to MH i2c: 01 00 00 FE D9 D7 [22:23:39]Write i2c OK [22:23:39]MH_I2C_Read... [22:23:39]Read from MH i2c: 01 [22:23:39]MH_I2C_Read... [22:23:39]Read from MH i2c: 01 07 00 [22:23:39]MH_I2C_Read... [22:23:39]Read from MH i2c: 01 07 00 FE D9 00 00 00 00 00 FF 0F EC [22:23:39]RasterBufferAndPrint [22:23:39]line Счет N : (1)1036540 [22:23:39]line ИНН: 02508201610067 [22:23:39]line Контрольно-Кассовый Чек [22:23:39]line ПРОДАЖА [22:23:39]line ТРК (МРК, ГНК) : 12 [22:23:39]line Товар: 2710124130 [22:23:39]line Аи-92-К-5 [22:23:39]line 14.750 * 67.80 [22:23:39]line = 1000.05 [22:23:39]line НДС 12% НСП 1% [22:23:39]line > о реализуемом товаре [22:23:39]line ОКРУГЛЕНИЕ: -0.05 [22:23:39]line ИТОГО: 1000.00 [22:23:39]line Внесено: 1000.00 [22:23:39]line СДАЧА: 0.00 [22:23:39]line НСП 1% : 8.85 [22:23:39]line НДС 12% : 106.20 [22:23:39]line Наличными: 1000.00 [22:23:39]line Безнал.: 0.00 [22:23:39]line Место: АЗС № 94 "Партнер Нефть" [22:23:39]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [22:23:39]line СНО: Общий режим [22:23:39]line Чек 545 18.08.2024 22:23 [22:23:39]line Смена: 449 ФФД: 1.0 [22:23:39]line ЗНМ: 0300000099 [22:23:39]line РНМ: 0000000000091865 [22:23:39]line Версия ККМ: 001 [22:23:39]line ФМ: 0000000000871820 [22:23:39]line ФД: 260987 [22:23:39]line ФПД: 142175118846209 [22:23:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T222344&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260987&fm=142175118846209&tin=02508201610067®Number=0000000000091865&sum=100000 [22:23:39]written 0, free lines is 4095 [22:23:39]OFD Sender: Processing packet 260987 [packets to send 192, broken 191] [22:23:39]ProducePacketName [22:23:39]name=ofd_packets/00260987 [22:23:39]OFD Sender: To server: pG, [22:23:39]CommunicateWithHost lk.salyk.kg:30040 [22:23:39]ConnectInit lk.salyk.kg [22:23:39]Connected sock=10 [22:23: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 30 0F 01 00 00 70 48 07 01 96 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 02 00 00 F4 03 04 00 70 74 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7B FB 03 00 35 04 06 00 81 4E B9 74 69 01 58 87 39 FA FF B5 08 80 [22:23: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 30 4F 00 00 00 7D 23 47 00 A7 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 30 10 04 04 00 7B FB 03 00 F4 03 04 00 C4 1D C2 66 B6 04 01 00 00 04 73 F6 63 5A 20 BB A4 [22:23:39]CommunicateWithHost err = 0 [22:23:39]CheckOFDResponse [22:23:39]1017 (14) - 77093643461234 [22:23:39]1041 (16) - 0000000000871820 [22:23:39]1040 (4) - 260987 [22:23:39]1012 (4) - 18.08.2024 16:13 [22:23:39]1206 (1) - 0 [22:23:39]OFD Sender: Remove packet 260987 [22:23:39]ProducePacketName [22:23:39]name=ofd_packets/00260987 [22:23:39]NVStorageDeleteData [22:23:39]Write to MH i2c: 01 00 00 29 DA 03 [22:23:39]Write i2c OK [22:23:39]MH_I2C_Read... [22:23:39]Read from MH i2c: 01 [22:23:39]MH_I2C_Read... [22:23:39]Read from MH i2c: 01 07 00 [22:23:39]MH_I2C_Read... [22:23:39]Read from MH i2c: 01 07 00 29 DA 00 00 00 00 00 5B 0C 71 [22:23:39]RasterBufferAndPrint [22:23:39]line [22:23:39]line [22:23:39]line [22:23:39]line [22:23:39]line [22:23:39]written 0, free lines is 3166 [22:23:39]MH_Cut [22:23:39]Write to MH i2c: D1 01 00 30 DA 01 DC [22:23:39]Write i2c OK [22:23:39]MH_I2C_Read... [22:23:39]Read from MH i2c: D1 [22:23:39]MH_I2C_Read... [22:23:39]Read from MH i2c: D1 01 00 [22:23:39]MH_I2C_Read... [22:23:39]Read from MH i2c: D1 01 00 30 DA 00 DB [22:23:39]Write to MH i2c: 01 00 00 31 DA 0B [22:23:39]Write i2c OK [22:23:39]MH_I2C_Read... [22:23:40]OFD Sender: No OFD packet to send [22:23:41]*** Cut start [22:23:41]*** Purtial cut [22:23:41]*** Stage 1: CUTSNS_PIN = 1 [22:23:43]Read from MH i2c: 01 [22:23:43]MH_I2C_Read... [22:23:43]*** Stop cut motor [22:23:43]*** Cut end [22:23:43]Read from MH i2c: 01 07 00 [22:23:43]MH_I2C_Read... [22:23:43]Read from MH i2c: 01 07 00 31 DA 00 00 00 00 00 FF 0F 20 [22:23:43]process_action close_receipt done [22:23:43]requested_data is exist [22:23:43]produce_requested_data [22:23:43]requested_item fm.sn is exist - process it [22:23:43]wFMCommunicate request_size=4 [22:23:43]MH_SAM_APDU [22:23:43]CAPDU: 80 11 00 00 [22:23:43]Write to MH i2c: E2 08 00 32 DA 80 11 00 00 00 00 00 00 86 [22:23:43]Write i2c OK [22:23:43]MH_I2C_Read... [22:23:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:43]Read from MH i2c: E2 [22:23:43]MH_I2C_Read... [22:23:43]Read from MH i2c: E2 17 00 [22:23:43]MH_I2C_Read... [22:23:43]Read from MH i2c: E2 17 00 32 DA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D3 [22:23:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:23:43]wFMCommunicate OK [22:23:43]requested_item fd.num is exist - process it [22:23:43]SAM_PROTO_GetFieldsCounters [22:23:43]wFMCommunicate request_size=4 [22:23:43]MH_SAM_APDU [22:23:43]CAPDU: 80 13 00 00 [22:23:43]Write to MH i2c: E2 08 00 33 DA 80 13 00 00 00 00 00 00 89 [22:23:43]Write i2c OK [22:23:43]MH_I2C_Read... [22:23:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:23:43]Read from MH i2c: E2 [22:23:43]MH_I2C_Read... [22:23:43]Read from MH i2c: E2 62 00 [22:23:43]MH_I2C_Read... [22:23:43]Read from MH i2c: E2 62 00 33 DA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 7B FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 21 02 00 00 5E 04 04 00 21 02 00 00 57 04 04 00 22 02 00 00 19 04 04 00 00 00 00 00 90 00 4C [22:23: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 7B FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 21 02 00 00 5E 04 04 00 21 02 00 00 57 04 04 00 22 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:23:43]wFMCommunicate OK [22:23:43]SAM_PROTO_GetFieldsCounters done [22:23:43]requested_item shift.num is exist - process it [22:23:43]requested_item shift.opened is exist - process it [22:23:43]req_shift_opened [22:23:43]FM_GetShiftState [22:23:43]SAM_PROTO_GetShiftState [22:23:43]wFMCommunicate request_size=4 [22:23:43]MH_SAM_APDU [22:23:43]CAPDU: 80 13 01 00 [22:23:43]Write to MH i2c: E2 08 00 34 DA 80 13 01 00 00 00 00 00 8B [22:23:43]Write i2c OK [22:23:43]MH_I2C_Read... [22:23:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:43]Read from MH i2c: E2 [22:23:43]MH_I2C_Read... [22:23:43]Read from MH i2c: E2 0E 00 [22:23:43]MH_I2C_Read... [22:23:43]Read from MH i2c: E2 0E 00 34 DA 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C8 [22:23:43]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:23:43]wFMCommunicate OK [22:23:43]SAM_PROTO_GetShiftState done [22:23:43]FM_GetShiftState done [22:23:43]req_shift_opened done [22:23:43]requested_item shift.open_date is exist - process it [22:23:43]req_shift_open_date [22:23:43]req_shift_open_date done [22:23:43]produce_requested_data done [22:23:43]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260987,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [22:23:43]process_action_free close_receipt [22:23:43]json_value_free [22:23:43]json_value_free done [22:23:43]process_json_proto returns [22:23:43]Send response to host [22:23:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260987,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [22:23:43]free response buf [22:23:43]execute_script done [22:23:43]execute_script returns [22:23:43]free content buf [22:23:43]Sock 7.Close socket [22:23:43]Sock 7.Thread stoped [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:00]accept exits with 9 [22:24:00]New connection [22:24:00]New thread 3066473828 created [22:24:00]Thread 3066617188 joined [22:24:00]Waiting for new connection... [22:24:00] Sock 9.Parse request [22:24:00]Sock 9.Check first char [22:24:00]Sock 9.First char is OK [22:24:00]request: POST /json_proto HTTP/1.0 [22:24:00]Method: POST [22:24:00]URL: /json_proto [22:24:00]Method is POST - this is cgi request [22:24:00]url: /json_proto [22:24:00]query_string will be loaded in cgi processing [22:24:00]execute_cgi json_proto POST (null) [22:24:00]execute_cgi path=json_proto method=POST [22:24:00]POST find Content-Length [22:24:00]Host: 172.17.55.133:8080 [22:24:00]Content-Length: 678 [22:24:00]Content-Type: application/json [22:24:00] [22:24:00]POST finish read [22:24:00]Found Content-Length = 678 [22:24:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:00]execute_script... [22:24: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)1036541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:00]POST & json_proto [22:24:00]process_json_proto [22:24:00]json parsed OK: [22:24:00]protocol is kg_v1.0 [22:24:00]action value=close_receipt [22:24:00]process_action close_receipt [22:24:00]cmd_close_receipt [22:24:00]MH_GetDate [22:24:00]Write to MH i2c: F0 00 00 35 DA FE [22:24:00]Write i2c OK [22:24:00]MH_I2C_Read... [22:24:00]Read from MH i2c: F0 [22:24:00]MH_I2C_Read... [22:24:00]Read from MH i2c: F0 09 00 [22:24:00]MH_I2C_Read... [22:24:00]Read from MH i2c: F0 09 00 35 DA 00 87 74 C2 66 34 48 D8 65 E3 [22:24:00]GetLastDocTimeStamp 1724019824 [22:24:00]current date 1724019847 [22:24:00]FM_GetShiftState [22:24:00]SAM_PROTO_GetShiftState [22:24:00]wFMCommunicate request_size=4 [22:24:00]MH_SAM_APDU [22:24:00]CAPDU: 80 13 01 00 [22:24:00]Write to MH i2c: E2 08 00 36 DA 80 13 01 00 00 00 00 00 8D [22:24:00]Write i2c OK [22:24:00]MH_I2C_Read... [22:24:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:00]Read from MH i2c: E2 [22:24:00]MH_I2C_Read... [22:24:00]Read from MH i2c: E2 0E 00 [22:24:00]MH_I2C_Read... [22:24:00]Read from MH i2c: E2 0E 00 36 DA 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 CA [22:24:00]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:24:00]wFMCommunicate OK [22:24:00]SAM_PROTO_GetShiftState done [22:24:00]FM_GetShiftState done [22:24:00]opened in 1723940556 [22:24:00]opened+sec_in_day 1724026956 [22:24:00]quantity*price = 50036 [22:24:00]sum+1 = 50037 [22:24:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 546 18.08.2024 22:24 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260988 ФПД: 239729413150534 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T222408&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260988&fm=239729413150534&tin=02508201610067®Number=0000000000091865&sum=50000 [22:24:01]StoreToDocumentArchive [22:24:01]shift 449 fd 260988 [22:24:01]save to /storage/0449/doc_00260988 [22:24:01]save last doc name /storage/0449/doc_00260988 to /storage/kkm_last_doc_name [22:24:01]save OK [22:24:01]Clear old archive folders... [22:24:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:24:01]tlvbuf is 0057B220 [22:24:01]SAM_PROTO_ClearQueue [22:24:01]wFMCommunicate request_size=4 [22:24:01]MH_SAM_APDU [22:24:01]CAPDU: 80 09 00 00 [22:24:01]Write to MH i2c: E2 08 00 43 DA 80 09 00 00 00 00 00 00 8F [22:24:01]Write i2c OK [22:24:01]MH_I2C_Read... [22:24:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:24:02]Read from MH i2c: E2 [22:24:02]MH_I2C_Read... [22:24:02]Read from MH i2c: E2 03 00 [22:24:02]MH_I2C_Read... [22:24:02]Read from MH i2c: E2 03 00 43 DA 00 90 00 91 [22:24:02]RAPDU: 90 00 [22:24:02]wFMCommunicate OK [22:24:02]SAM_PROTO_ClearQueue done [22:24:02]KKMCreateOFDPacket [22:24:02]OFDProtocolAddRootSTLVToBuf [22:24:02]FM_MakeSignedData [22:24:02]FM_MakeSignedData [22:24:02]SAM_PROTO_SignData [22:24:02]wFMCommunicate request_size=4 [22:24:02]MH_SAM_APDU [22:24:02]CAPDU: 80 0D 01 02 [22:24:02]Write to MH i2c: E2 08 00 44 DA 80 0D 01 02 00 00 00 00 97 [22:24:02]Write i2c OK [22:24:02]MH_I2C_Read... [22:24:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:24:02]Read from MH i2c: E2 [22:24:02]MH_I2C_Read... [22:24:02]Read from MH i2c: E2 03 00 [22:24:02]MH_I2C_Read... [22:24:02]Read from MH i2c: E2 03 00 44 DA 00 90 00 92 [22:24:02]RAPDU: 90 00 [22:24:02]wFMCommunicate OK [22:24:02]wFMCommunicate request_size=255 [22:24:02]MH_SAM_APDU [22:24:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 22 02 00 00 F4 03 04 00 88 74 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7C FB 03 00 35 04 06 00 DA [22:24:02]Write to MH i2c: E2 02 01 45 DA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 22 02 00 00 F4 03 04 00 88 74 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7C FB 03 00 35 04 06 00 DA 00 00 72 [22:24:02]Write i2c OK [22:24:02]MH_I2C_Read... [22:24:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:02]Read from MH i2c: E2 [22:24:02]MH_I2C_Read... [22:24:02]Read from MH i2c: E2 03 00 [22:24:02]MH_I2C_Read... [22:24:02]Read from MH i2c: E2 03 00 45 DA 00 90 00 93 [22:24:02]RAPDU: 90 00 [22:24:02]wFMCommunicate OK [22:24:02]wFMCommunicate request_size=10 [22:24:02]MH_SAM_APDU [22:24:02]CAPDU: 80 0D 02 02 05 08 5A 83 57 46 [22:24:02]Write to MH i2c: E2 0D 00 46 DA 80 0D 02 02 05 00 08 5A 83 57 46 00 00 26 [22:24:02]Write i2c OK [22:24:02]MH_I2C_Read... [22:24:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:02]Read from MH i2c: E2 [22:24:02]MH_I2C_Read... [22:24:02]Read from MH i2c: E2 03 00 [22:24:02]MH_I2C_Read... [22:24:02]Read from MH i2c: E2 03 00 46 DA 00 90 00 94 [22:24:02]RAPDU: 90 00 [22:24:02]wFMCommunicate OK [22:24:02]wFMCommunicate request_size=4 [22:24:02]MH_SAM_APDU [22:24:02]CAPDU: 80 0D 03 02 [22:24:02]Write to MH i2c: E2 08 00 47 DA 80 0D 03 02 00 00 00 00 9C [22:24:02]Write i2c OK [22:24:02]MH_I2C_Read... [22:24:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:24:02]Read from MH i2c: E2 [22:24:02]MH_I2C_Read... [22:24:02]Read from MH i2c: E2 0B 00 [22:24:02]MH_I2C_Read... [22:24:02]Read from MH i2c: E2 0B 00 47 DA 00 D3 A9 91 3F D9 61 7F 61 90 00 03 [22:24:02]RAPDU: D3 A9 91 3F D9 61 7F 61 90 00 [22:24:02]wFMCommunicate OK [22:24:02]SAM_PROTO_SignData done [22:24:02]FM_MakeSignedData done [22:24:02]CreateOFDProtocolMessage [22:24:02]wFMCommunicate request_size=4 [22:24:02]MH_SAM_APDU [22:24:02]CAPDU: 80 11 00 00 [22:24:02]Write to MH i2c: E2 08 00 48 DA 80 11 00 00 00 00 00 00 9C [22:24:02]Write i2c OK [22:24:02]MH_I2C_Read... [22:24:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:02]Read from MH i2c: E2 [22:24:02]MH_I2C_Read... [22:24:02]Read from MH i2c: E2 17 00 [22:24:02]MH_I2C_Read... [22:24:02]Read from MH i2c: E2 17 00 48 DA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E9 [22:24:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:24:02]wFMCommunicate OK [22:24:02]CreateOFDProtocolMessage done [22:24:02]OFDSenderStorePacket 260988 [22:24:02]StoreOFDPacket docnum=260988 [22:24:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 FF FB 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 22 02 00 00 F4 03 04 00 88 74 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7C FB 03 00 35 04 06 00 DA 08 5A 83 57 46 D3 A9 91 3F D9 61 7F 61 [22:24:02]CheckFolder [22:24:02]dirname=/storage/ofd_packets [22:24:02]CheckFolder done [22:24:02]ProducePacketName [22:24:02]name=ofd_packets/00260988 [22:24:02]NVStorageSaveData ofd_packets/00260988 [22:24:02]File name is /storage/ofd_packets/00260988 [22:24:02]Write 301 bytes [22:24:02]NVStorageSaveData done [22:24:02]OFDSenderStorePacket done [22:24:02]KKMCreateOFDPacket done [22:24:02]NVStorageSaveData kkm_last_timestamp [22:24:02]File name is /storage/kkm_last_timestamp [22:24:02]Write 4 bytes [22:24:02]NVStorageSaveData done [22:24:02]ExternCall_PrintAddStr [22:24:02]wPrintStart [22:24:02]Write to MH i2c: 01 00 00 49 DA 23 [22:24:02]Write i2c OK [22:24:02]MH_I2C_Read... [22:24:02]Read from MH i2c: 01 [22:24:02]MH_I2C_Read... [22:24:02]Read from MH i2c: 01 07 00 [22:24:02]MH_I2C_Read... [22:24:02]Read from MH i2c: 01 07 00 49 DA 00 00 00 00 00 FF 0F 38 [22:24:02]RasterBufferAndPrint [22:24:02]line Счет N : (1)1036541 [22:24:02]line ИНН: 02508201610067 [22:24:02]line Контрольно-Кассовый Чек [22:24:02]line ПРОДАЖА [22:24:02]line ТРК (МРК, ГНК) : 22 [22:24:02]line Товар: 2710124130 [22:24:02]line Аи-92-К-5 [22:24:02]line 7.380 * 67.80 [22:24:02]line = 500.36 [22:24:02]line НДС 12% НСП 1% [22:24:02]line > о реализуемом товаре [22:24:02]line ОКРУГЛЕНИЕ: -0.36 [22:24:02]line ИТОГО: 500.00 [22:24:02]line Внесено: 500.00 [22:24:02]line СДАЧА: 0.00 [22:24:02]line НСП 1% : 4.43 [22:24:02]line НДС 12% : 53.14 [22:24:02]line Наличными: 500.00 [22:24:02]line Безнал.: 0.00 [22:24:02]line Место: АЗС № 94 "Партнер Нефть" [22:24:02]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [22:24:02]line СНО: Общий режим [22:24:02]line Чек 546 18.08.2024 22:24 [22:24:02]line Смена: 449 ФФД: 1.0 [22:24:02]line ЗНМ: 0300000099 [22:24:02]line РНМ: 0000000000091865 [22:24:02]line Версия ККМ: 001 [22:24:02]line ФМ: 0000000000871820 [22:24:02]line ФД: 260988 [22:24:02]line ФПД: 239729413150534 [22:24:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T222408&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260988&fm=239729413150534&tin=02508201610067®Number=0000000000091865&sum=50000 [22:24:02]OFD Sender: Processing packet 260988 [packets to send 192, broken 191] [22:24:02]ProducePacketName [22:24:02]name=ofd_packets/00260988 [22:24:02]OFD Sender: To server: pG, [22:24:02]CommunicateWithHost lk.salyk.kg:30040 [22:24:02]ConnectInit lk.salyk.kg [22:24:02]written 0, free lines is 4095 [22:24:02]Connected sock=10 [22:24: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 30 0F 01 00 00 FF FB 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 22 02 00 00 F4 03 04 00 88 74 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7C FB 03 00 35 04 06 00 DA 08 5A 83 57 46 D3 A9 91 3F D9 61 7F 61 [22:24: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 30 4F 00 00 00 28 2A 47 00 8C 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 30 10 04 04 00 7C FB 03 00 F4 03 04 00 DB 1D C2 66 B6 04 01 00 00 F2 F6 EF 2B 55 DB AF DB [22:24:03]CommunicateWithHost err = 0 [22:24:03]CheckOFDResponse [22:24:03]1017 (14) - 77093643461234 [22:24:03]1041 (16) - 0000000000871820 [22:24:03]1040 (4) - 260988 [22:24:03]1012 (4) - 18.08.2024 16:14 [22:24:03]1206 (1) - 0 [22:24:03]OFD Sender: Remove packet 260988 [22:24:03]ProducePacketName [22:24:03]name=ofd_packets/00260988 [22:24:03]NVStorageDeleteData [22:24:03]Write to MH i2c: 01 00 00 74 DA 4E [22:24:03]Write i2c OK [22:24:03]MH_I2C_Read... [22:24:03]Read from MH i2c: 01 [22:24:03]MH_I2C_Read... [22:24:03]Read from MH i2c: 01 07 00 [22:24:03]MH_I2C_Read... [22:24:03]Read from MH i2c: 01 07 00 74 DA 00 00 00 00 00 60 0C C1 [22:24:03]RasterBufferAndPrint [22:24:03]line [22:24:03]line [22:24:03]line [22:24:03]line [22:24:03]line [22:24:03]written 0, free lines is 3172 [22:24:03]MH_Cut [22:24:03]Write to MH i2c: D1 01 00 7B DA 01 27 [22:24:03]Write i2c OK [22:24:03]MH_I2C_Read... [22:24:03]Read from MH i2c: D1 [22:24:03]MH_I2C_Read... [22:24:03]Read from MH i2c: D1 01 00 [22:24:03]MH_I2C_Read... [22:24:03]Read from MH i2c: D1 01 00 7B DA 00 26 [22:24:03]Write to MH i2c: 01 00 00 7C DA 56 [22:24:03]Write i2c OK [22:24:03]MH_I2C_Read... [22:24:03]OFD Sender: No OFD packet to send [22:24:04]*** Cut start [22:24:04]*** Purtial cut [22:24:04]*** Stage 1: CUTSNS_PIN = 1 [22:24:06]Read from MH i2c: 01 [22:24:06]MH_I2C_Read... [22:24:06]*** Stop cut motor [22:24:06]*** Cut end [22:24:06]Read from MH i2c: 01 07 00 [22:24:06]MH_I2C_Read... [22:24:06]Read from MH i2c: 01 07 00 7C DA 00 00 00 00 00 FF 0F 6B [22:24:06]process_action close_receipt done [22:24:06]requested_data is exist [22:24:06]produce_requested_data [22:24:06]requested_item fm.sn is exist - process it [22:24:06]wFMCommunicate request_size=4 [22:24:06]MH_SAM_APDU [22:24:06]CAPDU: 80 11 00 00 [22:24:06]Write to MH i2c: E2 08 00 7D DA 80 11 00 00 00 00 00 00 D1 [22:24:06]Write i2c OK [22:24:06]MH_I2C_Read... [22:24:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:06]Read from MH i2c: E2 [22:24:06]MH_I2C_Read... [22:24:06]Read from MH i2c: E2 17 00 [22:24:06]MH_I2C_Read... [22:24:06]Read from MH i2c: E2 17 00 7D DA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 1E [22:24:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:24:06]wFMCommunicate OK [22:24:06]requested_item fd.num is exist - process it [22:24:06]SAM_PROTO_GetFieldsCounters [22:24:06]wFMCommunicate request_size=4 [22:24:06]MH_SAM_APDU [22:24:06]CAPDU: 80 13 00 00 [22:24:06]Write to MH i2c: E2 08 00 7E DA 80 13 00 00 00 00 00 00 D4 [22:24:06]Write i2c OK [22:24:06]MH_I2C_Read... [22:24:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:24:06]Read from MH i2c: E2 [22:24:06]MH_I2C_Read... [22:24:06]Read from MH i2c: E2 62 00 [22:24:06]MH_I2C_Read... [22:24:06]Read from MH i2c: E2 62 00 7E DA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 7C FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 22 02 00 00 5E 04 04 00 22 02 00 00 57 04 04 00 23 02 00 00 19 04 04 00 00 00 00 00 90 00 9B [22:24: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 7C FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 22 02 00 00 5E 04 04 00 22 02 00 00 57 04 04 00 23 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:24:06]wFMCommunicate OK [22:24:06]SAM_PROTO_GetFieldsCounters done [22:24:06]requested_item shift.num is exist - process it [22:24:06]requested_item shift.opened is exist - process it [22:24:06]req_shift_opened [22:24:06]FM_GetShiftState [22:24:06]SAM_PROTO_GetShiftState [22:24:06]wFMCommunicate request_size=4 [22:24:06]MH_SAM_APDU [22:24:06]CAPDU: 80 13 01 00 [22:24:06]Write to MH i2c: E2 08 00 7F DA 80 13 01 00 00 00 00 00 D6 [22:24:06]Write i2c OK [22:24:06]MH_I2C_Read... [22:24:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:06]Read from MH i2c: E2 [22:24:06]MH_I2C_Read... [22:24:06]Read from MH i2c: E2 0E 00 [22:24:06]MH_I2C_Read... [22:24:06]Read from MH i2c: E2 0E 00 7F DA 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 13 [22:24:06]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:24:06]wFMCommunicate OK [22:24:06]SAM_PROTO_GetShiftState done [22:24:06]FM_GetShiftState done [22:24:06]req_shift_opened done [22:24:06]requested_item shift.open_date is exist - process it [22:24:06]req_shift_open_date [22:24:06]req_shift_open_date done [22:24:06]produce_requested_data done [22:24:06]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260988,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [22:24:06]process_action_free close_receipt [22:24:06]json_value_free [22:24:06]json_value_free done [22:24:06]process_json_proto returns [22:24:06]Send response to host [22:24:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260988,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [22:24:06]free response buf [22:24:06]execute_script done [22:24:06]execute_script returns [22:24:06]free content buf [22:24:06]Sock 9.Close socket [22:24:06]Sock 9.Thread stoped [22:24:08]OFD Sender: No OFD packet to send [22:24:13]OFD Sender: No OFD packet to send [22:24:18]OFD Sender: No OFD packet to send [22:24:23]OFD Sender: No OFD packet to send [22:24:28]OFD Sender: No OFD packet to send [22:24:33]OFD Sender: No OFD packet to send [22:24:38]OFD Sender: No OFD packet to send [22:24:43]OFD Sender: No OFD packet to send [22:24:48]OFD Sender: No OFD packet to send [22:24:53]OFD Sender: No OFD packet to send [22:24:58]OFD Sender: No OFD packet to send [22:25:03]OFD Sender: No OFD packet to send [22:25:08]OFD Sender: No OFD packet to send [22:25:13]OFD Sender: No OFD packet to send [22:25:18]OFD Sender: No OFD packet to send [22:25:23]OFD Sender: No OFD packet to send [22:25:28]OFD Sender: No OFD packet to send [22:25:33]OFD Sender: No OFD packet to send [22:25:38]OFD Sender: No OFD packet to send [22:25:43]OFD Sender: No OFD packet to send [22:25:48]OFD Sender: No OFD packet to send [22:25:53]OFD Sender: No OFD packet to send [22:25:58]OFD Sender: No OFD packet to send [22:25:59]accept exits with 7 [22:25:59]New connection [22:25:59]New thread 3066617188 created [22:25:59]Thread 3066473828 joined [22:25:59]Waiting for new connection... [22:25:59] Sock 7.Parse request [22:25:59]Sock 7.Check first char [22:25:59]Sock 7.First char is OK [22:25:59]request: POST /json_proto HTTP/1.0 [22:25:59]Method: POST [22:25:59]URL: /json_proto [22:25:59]Method is POST - this is cgi request [22:25:59]url: /json_proto [22:25:59]query_string will be loaded in cgi processing [22:25:59]execute_cgi json_proto POST (null) [22:25:59]execute_cgi path=json_proto method=POST [22:25:59]POST find Content-Length [22:25:59]Host: 172.17.55.133:8080 [22:25:59]Content-Length: 678 [22:25:59]Content-Type: application/json [22:25:59] [22:25:59]POST finish read [22:25:59]Found Content-Length = 678 [22:25:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036543", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:25:59]execute_script... [22:25:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036543", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:25:59]POST & json_proto [22:25:59]process_json_proto [22:25:59]json parsed OK: [22:25:59]protocol is kg_v1.0 [22:25:59]action value=close_receipt [22:25:59]process_action close_receipt [22:25:59]cmd_close_receipt [22:25:59]MH_GetDate [22:25:59]Write to MH i2c: F0 00 00 80 DA 49 [22:25:59]Write i2c OK [22:25:59]MH_I2C_Read... [22:25:59]Read from MH i2c: F0 [22:25:59]MH_I2C_Read... [22:25:59]Read from MH i2c: F0 09 00 [22:25:59]MH_I2C_Read... [22:25:59]Read from MH i2c: F0 09 00 80 DA 00 FE 74 C2 66 34 48 D8 65 A5 [22:25:59]GetLastDocTimeStamp 1724019848 [22:25:59]current date 1724019966 [22:25:59]FM_GetShiftState [22:25:59]SAM_PROTO_GetShiftState [22:25:59]wFMCommunicate request_size=4 [22:25:59]MH_SAM_APDU [22:25:59]CAPDU: 80 13 01 00 [22:25:59]Write to MH i2c: E2 08 00 81 DA 80 13 01 00 00 00 00 00 D8 [22:25:59]Write i2c OK [22:25:59]MH_I2C_Read... [22:25:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:25:59]Read from MH i2c: E2 [22:25:59]MH_I2C_Read... [22:25:59]Read from MH i2c: E2 0E 00 [22:25:59]MH_I2C_Read... [22:25:59]Read from MH i2c: E2 0E 00 81 DA 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 15 [22:25:59]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:25:59]wFMCommunicate OK [22:25:59]SAM_PROTO_GetShiftState done [22:25:59]FM_GetShiftState done [22:25:59]opened in 1723940556 [22:25:59]opened+sec_in_day 1724026956 [22:25:59]quantity*price = 50036 [22:25:59]sum+1 = 50037 [22:25:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 547 18.08.2024 22:26 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260989 ФПД: 7342525253263 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T222606&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260989&fm=7342525253263&tin=02508201610067®Number=0000000000091865&sum=50000 [22:26:00]StoreToDocumentArchive [22:26:00]shift 449 fd 260989 [22:26:00]save to /storage/0449/doc_00260989 [22:26:00]save last doc name /storage/0449/doc_00260989 to /storage/kkm_last_doc_name [22:26:00]save OK [22:26:00]Clear old archive folders... [22:26:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:26:00]tlvbuf is 007BC4E0 [22:26:00]SAM_PROTO_ClearQueue [22:26:00]wFMCommunicate request_size=4 [22:26:00]MH_SAM_APDU [22:26:00]CAPDU: 80 09 00 00 [22:26:00]Write to MH i2c: E2 08 00 8E DA 80 09 00 00 00 00 00 00 DA [22:26:00]Write i2c OK [22:26:00]MH_I2C_Read... [22:26:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:26:00]Read from MH i2c: E2 [22:26:00]MH_I2C_Read... [22:26:00]Read from MH i2c: E2 03 00 [22:26:00]MH_I2C_Read... [22:26:00]Read from MH i2c: E2 03 00 8E DA 00 90 00 DC [22:26:00]RAPDU: 90 00 [22:26:00]wFMCommunicate OK [22:26:00]SAM_PROTO_ClearQueue done [22:26:00]KKMCreateOFDPacket [22:26:00]OFDProtocolAddRootSTLVToBuf [22:26:00]FM_MakeSignedData [22:26:00]FM_MakeSignedData [22:26:00]SAM_PROTO_SignData [22:26:00]wFMCommunicate request_size=4 [22:26:00]MH_SAM_APDU [22:26:00]CAPDU: 80 0D 01 02 [22:26:00]Write to MH i2c: E2 08 00 8F DA 80 0D 01 02 00 00 00 00 E2 [22:26:00]Write i2c OK [22:26:00]MH_I2C_Read... [22:26:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:26:00]Read from MH i2c: E2 [22:26:00]MH_I2C_Read... [22:26:00]Read from MH i2c: E2 03 00 [22:26:00]MH_I2C_Read... [22:26:00]Read from MH i2c: E2 03 00 8F DA 00 90 00 DD [22:26:00]RAPDU: 90 00 [22:26:00]wFMCommunicate OK [22:26:00]wFMCommunicate request_size=255 [22:26:00]MH_SAM_APDU [22:26:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 23 02 00 00 F4 03 04 00 FE 74 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7D FB 03 00 35 04 06 00 06 [22:26:00]Write to MH i2c: E2 02 01 90 DA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 23 02 00 00 F4 03 04 00 FE 74 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7D FB 03 00 35 04 06 00 06 00 00 61 [22:26:00]Write i2c OK [22:26:00]MH_I2C_Read... [22:26:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:01]Read from MH i2c: E2 [22:26:01]MH_I2C_Read... [22:26:01]Read from MH i2c: E2 03 00 [22:26:01]MH_I2C_Read... [22:26:01]Read from MH i2c: E2 03 00 90 DA 00 90 00 DE [22:26:01]RAPDU: 90 00 [22:26:01]wFMCommunicate OK [22:26:01]wFMCommunicate request_size=10 [22:26:01]MH_SAM_APDU [22:26:01]CAPDU: 80 0D 02 02 05 AD 90 9C 06 8F [22:26:01]Write to MH i2c: E2 0D 00 91 DA 80 0D 02 02 05 00 AD 90 9C 06 8F 00 00 5D [22:26:01]Write i2c OK [22:26:01]MH_I2C_Read... [22:26:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:01]Read from MH i2c: E2 [22:26:01]MH_I2C_Read... [22:26:01]Read from MH i2c: E2 03 00 [22:26:01]MH_I2C_Read... [22:26:01]Read from MH i2c: E2 03 00 91 DA 00 90 00 DF [22:26:01]RAPDU: 90 00 [22:26:01]wFMCommunicate OK [22:26:01]wFMCommunicate request_size=4 [22:26:01]MH_SAM_APDU [22:26:01]CAPDU: 80 0D 03 02 [22:26:01]Write to MH i2c: E2 08 00 92 DA 80 0D 03 02 00 00 00 00 E7 [22:26:01]Write i2c OK [22:26:01]MH_I2C_Read... [22:26:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:26:01]Read from MH i2c: E2 [22:26:01]MH_I2C_Read... [22:26:01]Read from MH i2c: E2 0B 00 [22:26:01]MH_I2C_Read... [22:26:01]Read from MH i2c: E2 0B 00 92 DA 00 D2 9B 5E 93 2D CE C2 AC 90 00 AF [22:26:01]RAPDU: D2 9B 5E 93 2D CE C2 AC 90 00 [22:26:01]wFMCommunicate OK [22:26:01]SAM_PROTO_SignData done [22:26:01]FM_MakeSignedData done [22:26:01]CreateOFDProtocolMessage [22:26:01]wFMCommunicate request_size=4 [22:26:01]MH_SAM_APDU [22:26:01]CAPDU: 80 11 00 00 [22:26:01]Write to MH i2c: E2 08 00 93 DA 80 11 00 00 00 00 00 00 E7 [22:26:01]Write i2c OK [22:26:01]MH_I2C_Read... [22:26:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:01]Read from MH i2c: E2 [22:26:01]MH_I2C_Read... [22:26:01]Read from MH i2c: E2 17 00 [22:26:01]MH_I2C_Read... [22:26:01]Read from MH i2c: E2 17 00 93 DA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 34 [22:26:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:26:01]wFMCommunicate OK [22:26:01]CreateOFDProtocolMessage done [22:26:01]OFDSenderStorePacket 260989 [22:26:01]StoreOFDPacket docnum=260989 [22:26:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 B0 D4 07 01 98 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 23 02 00 00 F4 03 04 00 FE 74 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7D FB 03 00 35 04 06 00 06 AD 90 9C 06 8F D2 9B 5E 93 2D CE C2 AC [22:26:01]CheckFolder [22:26:01]dirname=/storage/ofd_packets [22:26:01]CheckFolder done [22:26:01]ProducePacketName [22:26:01]name=ofd_packets/00260989 [22:26:01]NVStorageSaveData ofd_packets/00260989 [22:26:01]File name is /storage/ofd_packets/00260989 [22:26:01]Write 301 bytes [22:26:01]NVStorageSaveData done [22:26:01]OFDSenderStorePacket done [22:26:01]KKMCreateOFDPacket done [22:26:01]NVStorageSaveData kkm_last_timestamp [22:26:01]File name is /storage/kkm_last_timestamp [22:26:01]Write 4 bytes [22:26:01]NVStorageSaveData done [22:26:01]ExternCall_PrintAddStr [22:26:01]wPrintStart [22:26:01]Write to MH i2c: 01 00 00 94 DA 6E [22:26:01]Write i2c OK [22:26:01]MH_I2C_Read... [22:26:01]Read from MH i2c: 01 [22:26:01]MH_I2C_Read... [22:26:01]Read from MH i2c: 01 07 00 [22:26:01]MH_I2C_Read... [22:26:01]Read from MH i2c: 01 07 00 94 DA 00 00 00 00 00 FF 0F 83 [22:26:01]RasterBufferAndPrint [22:26:01]line Счет N : (1)1036543 [22:26:01]line ИНН: 02508201610067 [22:26:01]line Контрольно-Кассовый Чек [22:26:01]line ПРОДАЖА [22:26:01]line ТРК (МРК, ГНК) : 32 [22:26:01]line Товар: 2710124130 [22:26:01]line Аи-92-К-5 [22:26:01]line 7.380 * 67.80 [22:26:01]line = 500.36 [22:26:01]line НДС 12% НСП 1% [22:26:01]line > о реализуемом товаре [22:26:01]line ОКРУГЛЕНИЕ: -0.36 [22:26:01]line ИТОГО: 500.00 [22:26:01]line Внесено: 500.00 [22:26:01]line СДАЧА: 0.00 [22:26:01]line НСП 1% : 4.43 [22:26:01]line НДС 12% : 53.14 [22:26:01]line Наличными: 500.00 [22:26:01]line Безнал.: 0.00 [22:26:01]line Место: АЗС № 94 "Партнер Нефть" [22:26:01]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [22:26:01]line СНО: Общий режим [22:26:01]line Чек 547 18.08.2024 22:26 [22:26:01]line Смена: 449 ФФД: 1.0 [22:26:01]line ЗНМ: 0300000099 [22:26:01]line РНМ: 0000000000091865 [22:26:01]line Версия ККМ: 001 [22:26:01]line ФМ: 0000000000871820 [22:26:01]line ФД: 260989 [22:26:01]line ФПД: 7342525253263 [22:26:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T222606&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260989&fm=7342525253263&tin=02508201610067®Number=0000000000091865&sum=50000 [22:26:01]OFD Sender: Processing packet 260989 [packets to send 192, broken 191] [22:26:01]ProducePacketName [22:26:01]name=ofd_packets/00260989 [22:26:01]OFD Sender: To server: pG, [22:26:01]CommunicateWithHost lk.salyk.kg:30040 [22:26:01]ConnectInit lk.salyk.kg [22:26:01]written 0, free lines is 4095 [22:26:01]Connected sock=10 [22:26: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 30 0F 01 00 00 B0 D4 07 01 98 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 23 02 00 00 F4 03 04 00 FE 74 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7D FB 03 00 35 04 06 00 06 AD 90 9C 06 8F D2 9B 5E 93 2D CE C2 AC [22:26: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 30 4F 00 00 00 A4 72 47 00 D4 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 30 10 04 04 00 7D FB 03 00 F4 03 04 00 52 1E C2 66 B6 04 01 00 00 86 8F DE 0B FC 6B 02 63 [22:26:01]CommunicateWithHost err = 0 [22:26:01]CheckOFDResponse [22:26:01]1017 (14) - 77093643461234 [22:26:01]1041 (16) - 0000000000871820 [22:26:01]1040 (4) - 260989 [22:26:01]1012 (4) - 18.08.2024 16:16 [22:26:01]1206 (1) - 0 [22:26:01]OFD Sender: Remove packet 260989 [22:26:01]ProducePacketName [22:26:01]name=ofd_packets/00260989 [22:26:01]NVStorageDeleteData [22:26:02]Write to MH i2c: 01 00 00 BF DA 99 [22:26:02]Write i2c OK [22:26:02]MH_I2C_Read... [22:26:02]Read from MH i2c: 01 [22:26:02]MH_I2C_Read... [22:26:02]Read from MH i2c: 01 07 00 [22:26:02]MH_I2C_Read... [22:26:02]Read from MH i2c: 01 07 00 BF DA 00 00 00 00 00 60 0C 0C [22:26:02]RasterBufferAndPrint [22:26:02]line [22:26:02]line [22:26:02]line [22:26:02]line [22:26:02]line [22:26:02]written 0, free lines is 3172 [22:26:02]MH_Cut [22:26:02]Write to MH i2c: D1 01 00 C6 DA 01 72 [22:26:02]Write i2c OK [22:26:02]MH_I2C_Read... [22:26:02]Read from MH i2c: D1 [22:26:02]MH_I2C_Read... [22:26:02]Read from MH i2c: D1 01 00 [22:26:02]MH_I2C_Read... [22:26:02]Read from MH i2c: D1 01 00 C6 DA 00 71 [22:26:02]Write to MH i2c: 01 00 00 C7 DA A1 [22:26:02]Write i2c OK [22:26:02]MH_I2C_Read... [22:26:02]OFD Sender: No OFD packet to send [22:26:03]*** Cut start [22:26:03]*** Purtial cut [22:26:03]*** Stage 1: CUTSNS_PIN = 1 [22:26:05]Read from MH i2c: 01 [22:26:05]MH_I2C_Read... [22:26:05]*** Stop cut motor [22:26:05]*** Cut end [22:26:05]Read from MH i2c: 01 07 00 [22:26:05]MH_I2C_Read... [22:26:05]Read from MH i2c: 01 07 00 C7 DA 00 00 00 00 00 FF 0F B6 [22:26:05]process_action close_receipt done [22:26:05]requested_data is exist [22:26:05]produce_requested_data [22:26:05]requested_item fm.sn is exist - process it [22:26:05]wFMCommunicate request_size=4 [22:26:05]MH_SAM_APDU [22:26:05]CAPDU: 80 11 00 00 [22:26:05]Write to MH i2c: E2 08 00 C8 DA 80 11 00 00 00 00 00 00 1C [22:26:05]Write i2c OK [22:26:05]MH_I2C_Read... [22:26:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:05]Read from MH i2c: E2 [22:26:05]MH_I2C_Read... [22:26:05]Read from MH i2c: E2 17 00 [22:26:05]MH_I2C_Read... [22:26:05]Read from MH i2c: E2 17 00 C8 DA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 69 [22:26:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:26:05]wFMCommunicate OK [22:26:05]requested_item fd.num is exist - process it [22:26:05]SAM_PROTO_GetFieldsCounters [22:26:05]wFMCommunicate request_size=4 [22:26:05]MH_SAM_APDU [22:26:05]CAPDU: 80 13 00 00 [22:26:05]Write to MH i2c: E2 08 00 C9 DA 80 13 00 00 00 00 00 00 1F [22:26:05]Write i2c OK [22:26:05]MH_I2C_Read... [22:26:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:26:05]Read from MH i2c: E2 [22:26:05]MH_I2C_Read... [22:26:05]Read from MH i2c: E2 62 00 [22:26:05]MH_I2C_Read... [22:26:05]Read from MH i2c: E2 62 00 C9 DA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 7D FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 23 02 00 00 5E 04 04 00 23 02 00 00 57 04 04 00 24 02 00 00 19 04 04 00 00 00 00 00 90 00 EA [22:26: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 7D FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 23 02 00 00 5E 04 04 00 23 02 00 00 57 04 04 00 24 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:26:05]wFMCommunicate OK [22:26:05]SAM_PROTO_GetFieldsCounters done [22:26:05]requested_item shift.num is exist - process it [22:26:05]requested_item shift.opened is exist - process it [22:26:05]req_shift_opened [22:26:05]FM_GetShiftState [22:26:05]SAM_PROTO_GetShiftState [22:26:05]wFMCommunicate request_size=4 [22:26:05]MH_SAM_APDU [22:26:05]CAPDU: 80 13 01 00 [22:26:05]Write to MH i2c: E2 08 00 CA DA 80 13 01 00 00 00 00 00 21 [22:26:05]Write i2c OK [22:26:05]MH_I2C_Read... [22:26:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:05]Read from MH i2c: E2 [22:26:05]MH_I2C_Read... [22:26:05]Read from MH i2c: E2 0E 00 [22:26:05]MH_I2C_Read... [22:26:05]Read from MH i2c: E2 0E 00 CA DA 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 5E [22:26:05]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:26:05]wFMCommunicate OK [22:26:05]SAM_PROTO_GetShiftState done [22:26:05]FM_GetShiftState done [22:26:05]req_shift_opened done [22:26:05]requested_item shift.open_date is exist - process it [22:26:05]req_shift_open_date [22:26:05]req_shift_open_date done [22:26:05]produce_requested_data done [22:26:05]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260989,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [22:26:05]process_action_free close_receipt [22:26:05]json_value_free [22:26:05]json_value_free done [22:26:05]process_json_proto returns [22:26:05]Send response to host [22:26:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260989,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [22:26:05]free response buf [22:26:05]execute_script done [22:26:05]execute_script returns [22:26:05]free content buf [22:26:05]Sock 7.Close socket [22:26:05]Sock 7.Thread stoped [22:26:07]OFD Sender: No OFD packet to send [22:26:12]OFD Sender: No OFD packet to send [22:26:17]OFD Sender: No OFD packet to send [22:26:21]accept exits with 9 [22:26:21]New connection [22:26:21]New thread 3066473828 created [22:26:21]Thread 3066617188 joined [22:26:21]Waiting for new connection... [22:26:21] Sock 9.Parse request [22:26:21]Sock 9.Check first char [22:26:21]Sock 9.First char is OK [22:26:21]request: POST /json_proto HTTP/1.0 [22:26:21]Method: POST [22:26:21]URL: /json_proto [22:26:21]Method is POST - this is cgi request [22:26:21]url: /json_proto [22:26:21]query_string will be loaded in cgi processing [22:26:21]execute_cgi json_proto POST (null) [22:26:21]execute_cgi path=json_proto method=POST [22:26:21]POST find Content-Length [22:26:21]Host: 172.17.55.133:8080 [22:26:21]Content-Length: 688 [22:26:21]Content-Type: application/json [22:26:21] [22:26:21]POST finish read [22:26:21]Found Content-Length = 688 [22:26:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036542", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 24.280, "sum" : 1850.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1850.00, "total" : 1850.00, "payments": [ { "type": 0, "sum" : 1850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:21]execute_script... [22:26: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)1036542", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 24.280, "sum" : 1850.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1850.00, "total" : 1850.00, "payments": [ { "type": 0, "sum" : 1850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:21]POST & json_proto [22:26:21]process_json_proto [22:26:21]json parsed OK: [22:26:21]protocol is kg_v1.0 [22:26:21]action value=close_receipt [22:26:21]process_action close_receipt [22:26:21]cmd_close_receipt [22:26:21]MH_GetDate [22:26:21]Write to MH i2c: F0 00 00 CB DA 94 [22:26:21]Write i2c OK [22:26:21]MH_I2C_Read... [22:26:21]Read from MH i2c: F0 [22:26:21]MH_I2C_Read... [22:26:21]Read from MH i2c: F0 09 00 [22:26:21]MH_I2C_Read... [22:26:21]Read from MH i2c: F0 09 00 CB DA 00 15 75 C2 66 34 48 D8 65 08 [22:26:21]GetLastDocTimeStamp 1724019966 [22:26:21]current date 1724019989 [22:26:21]FM_GetShiftState [22:26:21]SAM_PROTO_GetShiftState [22:26:21]wFMCommunicate request_size=4 [22:26:21]MH_SAM_APDU [22:26:21]CAPDU: 80 13 01 00 [22:26:21]Write to MH i2c: E2 08 00 CC DA 80 13 01 00 00 00 00 00 23 [22:26:21]Write i2c OK [22:26:21]MH_I2C_Read... [22:26:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:21]Read from MH i2c: E2 [22:26:21]MH_I2C_Read... [22:26:21]Read from MH i2c: E2 0E 00 [22:26:21]MH_I2C_Read... [22:26:21]Read from MH i2c: E2 0E 00 CC DA 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 60 [22:26:21]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:26:21]wFMCommunicate OK [22:26:21]SAM_PROTO_GetShiftState done [22:26:21]FM_GetShiftState done [22:26:21]opened in 1723940556 [22:26:21]opened+sec_in_day 1724026956 [22:26:21]quantity*price = 185013 [22:26:21]sum+1 = 185015 [22:26:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 1850.00 Внесено: 1850.00 СДАЧА: 0.00 НСП 1% : 16.37 НДС 12% : 196.47 Наличными: 1850.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 548 18.08.2024 22:26 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260990 ФПД: 36077957012186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T222629&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260990&fm=36077957012186&tin=02508201610067®Number=0000000000091865&sum=185000 [22:26:23]StoreToDocumentArchive [22:26:23]shift 449 fd 260990 [22:26:23]save to /storage/0449/doc_00260990 [22:26:23]save last doc name /storage/0449/doc_00260990 to /storage/kkm_last_doc_name [22:26:23]save OK [22:26:23]Clear old archive folders... [22:26:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:26:23]tlvbuf is 006B9060 [22:26:23]SAM_PROTO_ClearQueue [22:26:23]wFMCommunicate request_size=4 [22:26:23]MH_SAM_APDU [22:26:23]CAPDU: 80 09 00 00 [22:26:23]Write to MH i2c: E2 08 00 D9 DA 80 09 00 00 00 00 00 00 25 [22:26:23]Write i2c OK [22:26:23]MH_I2C_Read... [22:26:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:26:23]Read from MH i2c: E2 [22:26:23]MH_I2C_Read... [22:26:23]Read from MH i2c: E2 03 00 [22:26:23]MH_I2C_Read... [22:26:23]Read from MH i2c: E2 03 00 D9 DA 00 90 00 27 [22:26:23]RAPDU: 90 00 [22:26:23]wFMCommunicate OK [22:26:23]SAM_PROTO_ClearQueue done [22:26:23]KKMCreateOFDPacket [22:26:23]OFDProtocolAddRootSTLVToBuf [22:26:23]FM_MakeSignedData [22:26:23]FM_MakeSignedData [22:26:23]SAM_PROTO_SignData [22:26:23]wFMCommunicate request_size=4 [22:26:23]MH_SAM_APDU [22:26:23]CAPDU: 80 0D 01 02 [22:26:23]Write to MH i2c: E2 08 00 DA DA 80 0D 01 02 00 00 00 00 2D [22:26:23]Write i2c OK [22:26:23]MH_I2C_Read... [22:26:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:26:23]Read from MH i2c: E2 [22:26:23]MH_I2C_Read... [22:26:23]Read from MH i2c: E2 03 00 [22:26:23]MH_I2C_Read... [22:26:23]Read from MH i2c: E2 03 00 DA DA 00 90 00 28 [22:26:23]RAPDU: 90 00 [22:26:23]wFMCommunicate OK [22:26:23]wFMCommunicate request_size=255 [22:26:23]MH_SAM_APDU [22:26:23]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 D8 5E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B6 D2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 D2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 4C 00 00 00 00 07 04 06 00 A8 D2 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 02 00 00 F4 03 04 00 15 75 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7E FB 03 00 35 04 06 00 [22:26:23]Write to MH i2c: E2 02 01 DB DA 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 D8 5E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B6 D2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 D2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 4C 00 00 00 00 07 04 06 00 A8 D2 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 02 00 00 F4 03 04 00 15 75 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7E FB 03 00 35 04 06 00 00 00 94 [22:26:23]Write i2c OK [22:26:23]MH_I2C_Read... [22:26:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:23]Read from MH i2c: E2 [22:26:23]MH_I2C_Read... [22:26:23]Read from MH i2c: E2 03 00 [22:26:23]MH_I2C_Read... [22:26:23]Read from MH i2c: E2 03 00 DB DA 00 90 00 29 [22:26:23]RAPDU: 90 00 [22:26:23]wFMCommunicate OK [22:26:23]wFMCommunicate request_size=11 [22:26:23]MH_SAM_APDU [22:26:23]CAPDU: 80 0D 02 02 06 20 D0 0D CF DA DA [22:26:23]Write to MH i2c: E2 0E 00 DC DA 80 0D 02 02 06 00 20 D0 0D CF DA DA 00 00 BC [22:26:23]Write i2c OK [22:26:23]MH_I2C_Read... [22:26:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:23]Read from MH i2c: E2 [22:26:23]MH_I2C_Read... [22:26:23]Read from MH i2c: E2 03 00 [22:26:23]MH_I2C_Read... [22:26:23]Read from MH i2c: E2 03 00 DC DA 00 90 00 2A [22:26:23]RAPDU: 90 00 [22:26:23]wFMCommunicate OK [22:26:23]wFMCommunicate request_size=4 [22:26:23]MH_SAM_APDU [22:26:23]CAPDU: 80 0D 03 02 [22:26:23]Write to MH i2c: E2 08 00 DD DA 80 0D 03 02 00 00 00 00 32 [22:26:23]Write i2c OK [22:26:23]MH_I2C_Read... [22:26:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:26:23]Read from MH i2c: E2 [22:26:23]MH_I2C_Read... [22:26:23]Read from MH i2c: E2 0B 00 [22:26:23]MH_I2C_Read... [22:26:23]Read from MH i2c: E2 0B 00 DD DA 00 74 42 BD 0F E9 D8 6B 30 90 00 11 [22:26:23]RAPDU: 74 42 BD 0F E9 D8 6B 30 90 00 [22:26:23]wFMCommunicate OK [22:26:23]SAM_PROTO_SignData done [22:26:23]FM_MakeSignedData done [22:26:23]CreateOFDProtocolMessage [22:26:23]wFMCommunicate request_size=4 [22:26:23]MH_SAM_APDU [22:26:23]CAPDU: 80 11 00 00 [22:26:23]Write to MH i2c: E2 08 00 DE DA 80 11 00 00 00 00 00 00 32 [22:26:23]Write i2c OK [22:26:23]MH_I2C_Read... [22:26:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:23]Read from MH i2c: E2 [22:26:23]MH_I2C_Read... [22:26:23]Read from MH i2c: E2 17 00 [22:26:23]MH_I2C_Read... [22:26:23]Read from MH i2c: E2 17 00 DE DA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 7F [22:26:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:26:23]wFMCommunicate OK [22:26:23]CreateOFDProtocolMessage done [22:26:23]OFDSenderStorePacket 260990 [22:26:23]StoreOFDPacket docnum=260990 [22:26:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 FC 55 08 01 DA C3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 D8 5E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B6 D2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 D2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 4C 00 00 00 00 07 04 06 00 A8 D2 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 02 00 00 F4 03 04 00 15 75 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7E FB 03 00 35 04 06 00 20 D0 0D CF DA DA 74 42 BD 0F E9 D8 6B 30 [22:26:23]CheckFolder [22:26:23]dirname=/storage/ofd_packets [22:26:23]CheckFolder done [22:26:23]ProducePacketName [22:26:23]name=ofd_packets/00260990 [22:26:23]NVStorageSaveData ofd_packets/00260990 [22:26:23]File name is /storage/ofd_packets/00260990 [22:26:23]Write 302 bytes [22:26:23]NVStorageSaveData done [22:26:23]OFDSenderStorePacket done [22:26:23]KKMCreateOFDPacket done [22:26:23]NVStorageSaveData kkm_last_timestamp [22:26:23]File name is /storage/kkm_last_timestamp [22:26:23]Write 4 bytes [22:26:23]NVStorageSaveData done [22:26:23]ExternCall_PrintAddStr [22:26:23]wPrintStart [22:26:23]Write to MH i2c: 01 00 00 DF DA B9 [22:26:23]Write i2c OK [22:26:23]MH_I2C_Read... [22:26:23]Read from MH i2c: 01 [22:26:23]MH_I2C_Read... [22:26:23]Read from MH i2c: 01 07 00 [22:26:23]MH_I2C_Read... [22:26:23]Read from MH i2c: 01 07 00 DF DA 00 00 00 00 00 FF 0F CE [22:26:23]RasterBufferAndPrint [22:26:23]line Счет N : (1)1036542 [22:26:23]line ИНН: 02508201610067 [22:26:23]line Контрольно-Кассовый Чек [22:26:23]line ПРОДАЖА [22:26:23]line ТРК (МРК, ГНК) : 43 [22:26:23]line Товар: 2710194210 [22:26:23]line ДТ(л)-К-4 [22:26:23]line 24.280 * 76.20 [22:26:23]line = 1850.14 [22:26:23]line НДС 12% НСП 1% [22:26:23]line > о реализуемом товаре [22:26:23]line ОКРУГЛЕНИЕ: -0.14 [22:26:23]line ИТОГО: 1850.00 [22:26:23]line Внесено: 1850.00 [22:26:23]line СДАЧА: 0.00 [22:26:23]line НСП 1% : 16.37 [22:26:23]line НДС 12% : 196.47 [22:26:23]line Наличными: 1850.00 [22:26:23]line Безнал.: 0.00 [22:26:23]line Место: АЗС № 94 "Партнер Нефть" [22:26:23]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [22:26:23]line СНО: Общий режим [22:26:23]line Чек 548 18.08.2024 22:26 [22:26:23]line Смена: 449 ФФД: 1.0 [22:26:23]line ЗНМ: 0300000099 [22:26:23]line РНМ: 0000000000091865 [22:26:23]line Версия ККМ: 001 [22:26:23]line ФМ: 0000000000871820 [22:26:23]line ФД: 260990 [22:26:23]line ФПД: 36077957012186 [22:26:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T222629&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260990&fm=36077957012186&tin=02508201610067®Number=0000000000091865&sum=185000 [22:26:23]OFD Sender: Processing packet 260990 [packets to send 192, broken 191] [22:26:23]ProducePacketName [22:26:23]name=ofd_packets/00260990 [22:26:23]OFD Sender: To server: pG, [22:26:23]CommunicateWithHost lk.salyk.kg:30040 [22:26:23]ConnectInit lk.salyk.kg [22:26:23]written 0, free lines is 4095 [22:26:24]Connected sock=10 [22:26: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 30 10 01 00 00 FC 55 08 01 DA C3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 D8 5E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B6 D2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 D2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 4C 00 00 00 00 07 04 06 00 A8 D2 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 02 00 00 F4 03 04 00 15 75 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7E FB 03 00 35 04 06 00 20 D0 0D CF DA DA 74 42 BD 0F E9 D8 6B 30 [22:26: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 30 4F 00 00 00 E4 54 47 00 05 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 30 10 04 04 00 7E FB 03 00 F4 03 04 00 68 1E C2 66 B6 04 01 00 00 D2 56 CF 84 D3 C2 05 ED [22:26:24]CommunicateWithHost err = 0 [22:26:24]CheckOFDResponse [22:26:24]1017 (14) - 77093643461234 [22:26:24]1041 (16) - 0000000000871820 [22:26:24]1040 (4) - 260990 [22:26:24]1012 (4) - 18.08.2024 16:16 [22:26:24]1206 (1) - 0 [22:26:24]OFD Sender: Remove packet 260990 [22:26:24]ProducePacketName [22:26:24]name=ofd_packets/00260990 [22:26:24]NVStorageDeleteData [22:26:24]Write to MH i2c: 01 00 00 0A DB E5 [22:26:24]Write i2c OK [22:26:24]MH_I2C_Read... [22:26:24]Read from MH i2c: 01 [22:26:24]MH_I2C_Read... [22:26:24]Read from MH i2c: 01 07 00 [22:26:24]MH_I2C_Read... [22:26:24]Read from MH i2c: 01 07 00 0A DB 00 00 00 00 00 54 0C 4C [22:26:24]RasterBufferAndPrint [22:26:24]line [22:26:24]line [22:26:24]line [22:26:24]line [22:26:24]line [22:26:24]written 0, free lines is 3158 [22:26:24]MH_Cut [22:26:24]Write to MH i2c: D1 01 00 11 DB 01 BE [22:26:24]Write i2c OK [22:26:24]MH_I2C_Read... [22:26:24]Read from MH i2c: D1 [22:26:24]MH_I2C_Read... [22:26:24]Read from MH i2c: D1 01 00 [22:26:24]MH_I2C_Read... [22:26:24]Read from MH i2c: D1 01 00 11 DB 00 BD [22:26:24]Write to MH i2c: 01 00 00 12 DB ED [22:26:24]Write i2c OK [22:26:24]MH_I2C_Read... [22:26:24]OFD Sender: No OFD packet to send [22:26:25]*** Cut start [22:26:25]*** Purtial cut [22:26:25]*** Stage 1: CUTSNS_PIN = 1 [22:26:27]Read from MH i2c: 01 [22:26:27]MH_I2C_Read... [22:26:27]*** Stop cut motor [22:26:27]*** Cut end [22:26:27]Read from MH i2c: 01 07 00 [22:26:27]MH_I2C_Read... [22:26:27]Read from MH i2c: 01 07 00 12 DB 00 00 00 00 00 FF 0F 02 [22:26:27]process_action close_receipt done [22:26:27]requested_data is exist [22:26:27]produce_requested_data [22:26:27]requested_item fm.sn is exist - process it [22:26:27]wFMCommunicate request_size=4 [22:26:27]MH_SAM_APDU [22:26:27]CAPDU: 80 11 00 00 [22:26:27]Write to MH i2c: E2 08 00 13 DB 80 11 00 00 00 00 00 00 68 [22:26:27]Write i2c OK [22:26:27]MH_I2C_Read... [22:26:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:27]Read from MH i2c: E2 [22:26:27]MH_I2C_Read... [22:26:27]Read from MH i2c: E2 17 00 [22:26:27]MH_I2C_Read... [22:26:27]Read from MH i2c: E2 17 00 13 DB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B5 [22:26:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:26:27]wFMCommunicate OK [22:26:27]requested_item fd.num is exist - process it [22:26:27]SAM_PROTO_GetFieldsCounters [22:26:27]wFMCommunicate request_size=4 [22:26:27]MH_SAM_APDU [22:26:27]CAPDU: 80 13 00 00 [22:26:27]Write to MH i2c: E2 08 00 14 DB 80 13 00 00 00 00 00 00 6B [22:26:27]Write i2c OK [22:26:27]MH_I2C_Read... [22:26:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:26:27]Read from MH i2c: E2 [22:26:27]MH_I2C_Read... [22:26:27]Read from MH i2c: E2 62 00 [22:26:27]MH_I2C_Read... [22:26:27]Read from MH i2c: E2 62 00 14 DB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 7E FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 24 02 00 00 5E 04 04 00 24 02 00 00 57 04 04 00 25 02 00 00 19 04 04 00 00 00 00 00 90 00 3A [22:26: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 7E FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 24 02 00 00 5E 04 04 00 24 02 00 00 57 04 04 00 25 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:26:27]wFMCommunicate OK [22:26:27]SAM_PROTO_GetFieldsCounters done [22:26:27]requested_item shift.num is exist - process it [22:26:27]requested_item shift.opened is exist - process it [22:26:27]req_shift_opened [22:26:27]FM_GetShiftState [22:26:27]SAM_PROTO_GetShiftState [22:26:27]wFMCommunicate request_size=4 [22:26:27]MH_SAM_APDU [22:26:27]CAPDU: 80 13 01 00 [22:26:27]Write to MH i2c: E2 08 00 15 DB 80 13 01 00 00 00 00 00 6D [22:26:27]Write i2c OK [22:26:27]MH_I2C_Read... [22:26:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:27]Read from MH i2c: E2 [22:26:27]MH_I2C_Read... [22:26:27]Read from MH i2c: E2 0E 00 [22:26:27]MH_I2C_Read... [22:26:27]Read from MH i2c: E2 0E 00 15 DB 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 AA [22:26:27]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:26:27]wFMCommunicate OK [22:26:27]SAM_PROTO_GetShiftState done [22:26:27]FM_GetShiftState done [22:26:27]req_shift_opened done [22:26:27]requested_item shift.open_date is exist - process it [22:26:27]req_shift_open_date [22:26:27]req_shift_open_date done [22:26:27]produce_requested_data done [22:26:27]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260990,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [22:26:27]process_action_free close_receipt [22:26:27]json_value_free [22:26:27]json_value_free done [22:26:27]process_json_proto returns [22:26:27]Send response to host [22:26:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260990,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [22:26:27]free response buf [22:26:27]execute_script done [22:26:27]execute_script returns [22:26:27]free content buf [22:26:27]Sock 9.Close socket [22:26:27]Sock 9.Thread stoped [22:26:29]OFD Sender: No OFD packet to send [22:26:34]OFD Sender: No OFD packet to send [22:26:39]OFD Sender: No OFD packet to send [22:26:44]OFD Sender: No OFD packet to send [22:26:49]OFD Sender: No OFD packet to send [22:26:54]OFD Sender: No OFD packet to send [22:26:59]OFD Sender: No OFD packet to send [22:27:04]OFD Sender: No OFD packet to send [22:27:09]OFD Sender: No OFD packet to send [22:27:14]OFD Sender: No OFD packet to send [22:27:19]OFD Sender: No OFD packet to send [22:27:24]OFD Sender: No OFD packet to send [22:27:29]OFD Sender: No OFD packet to send [22:27:34]OFD Sender: No OFD packet to send [22:27:39]OFD Sender: No OFD packet to send [22:27:44]OFD Sender: No OFD packet to send [22:27:49]OFD Sender: No OFD packet to send [22:27:54]OFD Sender: No OFD packet to send [22:27:59]OFD Sender: No OFD packet to send [22:28:04]OFD Sender: No OFD packet to send [22:28:09]OFD Sender: No OFD packet to send [22:28:14]OFD Sender: No OFD packet to send [22:28:19]OFD Sender: No OFD packet to send [22:28:24]OFD Sender: No OFD packet to send [22:28:29]OFD Sender: No OFD packet to send [22:28:34]OFD Sender: No OFD packet to send [22:28:39]OFD Sender: No OFD packet to send [22:28:44]OFD Sender: No OFD packet to send [22:28:49]OFD Sender: No OFD packet to send [22:28:54]OFD Sender: No OFD packet to send [22:28:59]OFD Sender: No OFD packet to send [22:29:04]OFD Sender: No OFD packet to send [22:29:09]OFD Sender: No OFD packet to send [22:29:14]OFD Sender: No OFD packet to send [22:29:20]OFD Sender: No OFD packet to send [22:29:25]OFD Sender: No OFD packet to send [22:29:30]OFD Sender: No OFD packet to send [22:29:35]OFD Sender: No OFD packet to send [22:29:40]OFD Sender: No OFD packet to send [22:29:45]OFD Sender: No OFD packet to send [22:29:50]OFD Sender: No OFD packet to send [22:29:55]OFD Sender: No OFD packet to send [22:30:00]OFD Sender: No OFD packet to send [22:30:05]OFD Sender: No OFD packet to send [22:30:10]OFD Sender: No OFD packet to send [22:30:15]OFD Sender: No OFD packet to send [22:30:20]OFD Sender: No OFD packet to send [22:30:25]OFD Sender: No OFD packet to send [22:30:30]OFD Sender: No OFD packet to send [22:30:35]OFD Sender: No OFD packet to send [22:30:40]OFD Sender: No OFD packet to send [22:30:45]OFD Sender: No OFD packet to send [22:30:50]OFD Sender: No OFD packet to send [22:30:55]OFD Sender: No OFD packet to send [22:31:00]OFD Sender: No OFD packet to send [22:31:05]OFD Sender: No OFD packet to send [22:31:10]OFD Sender: No OFD packet to send [22:31:15]OFD Sender: No OFD packet to send [22:31:20]OFD Sender: No OFD packet to send [22:31:25]OFD Sender: No OFD packet to send [22:31:30]OFD Sender: No OFD packet to send [22:31:35]OFD Sender: No OFD packet to send [22:31:40]OFD Sender: No OFD packet to send [22:31:45]OFD Sender: No OFD packet to send [22:31:50]OFD Sender: No OFD packet to send [22:31:55]OFD Sender: No OFD packet to send [22:32:00]OFD Sender: No OFD packet to send [22:32:05]OFD Sender: No OFD packet to send [22:32:10]OFD Sender: No OFD packet to send [22:32:15]OFD Sender: No OFD packet to send [22:32:20]OFD Sender: No OFD packet to send [22:32:25]OFD Sender: No OFD packet to send [22:32:30]OFD Sender: No OFD packet to send [22:32:35]OFD Sender: No OFD packet to send [22:32:40]OFD Sender: No OFD packet to send [22:32:45]OFD Sender: No OFD packet to send [22:32:48]accept exits with 7 [22:32:48]New connection [22:32:48]New thread 3066617188 created [22:32:48]Thread 3066473828 joined [22:32:48]Waiting for new connection... [22:32:48] Sock 7.Parse request [22:32:48]Sock 7.Check first char [22:32:48]Sock 7.First char is OK [22:32:48]request: POST /json_proto HTTP/1.0 [22:32:48]Method: POST [22:32:48]URL: /json_proto [22:32:48]Method is POST - this is cgi request [22:32:48]url: /json_proto [22:32:48]query_string will be loaded in cgi processing [22:32:48]execute_cgi json_proto POST (null) [22:32:48]execute_cgi path=json_proto method=POST [22:32:48]POST find Content-Length [22:32:48]Host: 172.17.55.133:8080 [22:32:48]Content-Length: 683 [22:32:48]Content-Type: application/json [22:32:48] [22:32:48]POST finish read [22:32:48]Found Content-Length = 683 [22:32:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036544", "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" : 74.20, "quantity" : 54.010, "sum" : 4007.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 4007.00, "payments": [ { "type": 0, "sum" : 4007.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:32:48]execute_script... [22:32: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)1036544", "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" : 74.20, "quantity" : 54.010, "sum" : 4007.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 4007.00, "payments": [ { "type": 0, "sum" : 4007.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:32:48]POST & json_proto [22:32:48]process_json_proto [22:32:48]json parsed OK: [22:32:48]protocol is kg_v1.0 [22:32:48]action value=close_receipt [22:32:48]process_action close_receipt [22:32:48]cmd_close_receipt [22:32:48]MH_GetDate [22:32:48]Write to MH i2c: F0 00 00 16 DB E0 [22:32:48]Write i2c OK [22:32:48]MH_I2C_Read... [22:32:48]Read from MH i2c: F0 [22:32:48]MH_I2C_Read... [22:32:48]Read from MH i2c: F0 09 00 [22:32:48]MH_I2C_Read... [22:32:48]Read from MH i2c: F0 09 00 16 DB 00 97 76 C2 66 34 48 D8 65 D7 [22:32:48]GetLastDocTimeStamp 1724019989 [22:32:48]current date 1724020375 [22:32:48]FM_GetShiftState [22:32:48]SAM_PROTO_GetShiftState [22:32:48]wFMCommunicate request_size=4 [22:32:48]MH_SAM_APDU [22:32:48]CAPDU: 80 13 01 00 [22:32:48]Write to MH i2c: E2 08 00 17 DB 80 13 01 00 00 00 00 00 6F [22:32:48]Write i2c OK [22:32:48]MH_I2C_Read... [22:32:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:48]Read from MH i2c: E2 [22:32:48]MH_I2C_Read... [22:32:48]Read from MH i2c: E2 0E 00 [22:32:48]MH_I2C_Read... [22:32:48]Read from MH i2c: E2 0E 00 17 DB 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 AC [22:32:48]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:32:48]wFMCommunicate OK [22:32:48]SAM_PROTO_GetShiftState done [22:32:48]FM_GetShiftState done [22:32:48]opened in 1723940556 [22:32:48]opened+sec_in_day 1724026956 [22:32:48]quantity*price = 400754 [22:32:48]sum+1 = 400755 [22:32:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 4007.00 Внесено: 5000.00 СДАЧА: 993.00 НСП 1% : 35.46 НДС 12% : 425.58 Наличными: 4007.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 549 18.08.2024 22:32 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260991 ФПД: 92650283594127 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T223255&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260991&fm=92650283594127&tin=02508201610067®Number=0000000000091865&sum=400700 [22:32:49]StoreToDocumentArchive [22:32:49]shift 449 fd 260991 [22:32:49]save to /storage/0449/doc_00260991 [22:32:49]save last doc name /storage/0449/doc_00260991 to /storage/kkm_last_doc_name [22:32:49]save OK [22:32:49]Clear old archive folders... [22:32:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:32:49]tlvbuf is 006B9920 [22:32:49]SAM_PROTO_ClearQueue [22:32:49]wFMCommunicate request_size=4 [22:32:49]MH_SAM_APDU [22:32:49]CAPDU: 80 09 00 00 [22:32:49]Write to MH i2c: E2 08 00 24 DB 80 09 00 00 00 00 00 00 71 [22:32:49]Write i2c OK [22:32:49]MH_I2C_Read... [22:32:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:32:49]Read from MH i2c: E2 [22:32:49]MH_I2C_Read... [22:32:49]Read from MH i2c: E2 03 00 [22:32:49]MH_I2C_Read... [22:32:49]Read from MH i2c: E2 03 00 24 DB 00 90 00 73 [22:32:49]RAPDU: 90 00 [22:32:49]wFMCommunicate OK [22:32:49]SAM_PROTO_ClearQueue done [22:32:49]KKMCreateOFDPacket [22:32:49]OFDProtocolAddRootSTLVToBuf [22:32:49]FM_MakeSignedData [22:32:49]FM_MakeSignedData [22:32:49]SAM_PROTO_SignData [22:32:49]wFMCommunicate request_size=4 [22:32:49]MH_SAM_APDU [22:32:49]CAPDU: 80 0D 01 02 [22:32:49]Write to MH i2c: E2 08 00 25 DB 80 0D 01 02 00 00 00 00 79 [22:32:49]Write i2c OK [22:32:49]MH_I2C_Read... [22:32:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:32:49]Read from MH i2c: E2 [22:32:49]MH_I2C_Read... [22:32:49]Read from MH i2c: E2 03 00 [22:32:49]MH_I2C_Read... [22:32:49]Read from MH i2c: E2 03 00 25 DB 00 90 00 74 [22:32:49]RAPDU: 90 00 [22:32:49]wFMCommunicate OK [22:32:49]wFMCommunicate request_size=255 [22:32:49]MH_SAM_APDU [22:32: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 FA D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 72 1D 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 1D 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E A6 00 00 00 00 07 04 06 00 3C 1D 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 02 00 00 F4 03 04 00 97 76 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7F FB 03 00 35 04 06 00 54 [22:32:49]Write to MH i2c: E2 02 01 26 DB 80 0D 02 02 FA 00 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 FA D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 72 1D 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 1D 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E A6 00 00 00 00 07 04 06 00 3C 1D 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 02 00 00 F4 03 04 00 97 76 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7F FB 03 00 35 04 06 00 54 00 00 76 [22:32:49]Write i2c OK [22:32:49]MH_I2C_Read... [22:32:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:32:50]Read from MH i2c: E2 [22:32:50]MH_I2C_Read... [22:32:50]Read from MH i2c: E2 03 00 [22:32:50]MH_I2C_Read... [22:32:50]Read from MH i2c: E2 03 00 26 DB 00 90 00 75 [22:32:50]RAPDU: 90 00 [22:32:50]wFMCommunicate OK [22:32:50]wFMCommunicate request_size=10 [22:32:50]MH_SAM_APDU [22:32:50]CAPDU: 80 0D 02 02 05 43 D3 3D F1 8F [22:32:50]Write to MH i2c: E2 0D 00 27 DB 80 0D 02 02 05 00 43 D3 3D F1 8F 00 00 59 [22:32:50]Write i2c OK [22:32:50]MH_I2C_Read... [22:32:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:32:50]Read from MH i2c: E2 [22:32:50]MH_I2C_Read... [22:32:50]Read from MH i2c: E2 03 00 [22:32:50]MH_I2C_Read... [22:32:50]Read from MH i2c: E2 03 00 27 DB 00 90 00 76 [22:32:50]RAPDU: 90 00 [22:32:50]wFMCommunicate OK [22:32:50]wFMCommunicate request_size=4 [22:32:50]MH_SAM_APDU [22:32:50]CAPDU: 80 0D 03 02 [22:32:50]Write to MH i2c: E2 08 00 28 DB 80 0D 03 02 00 00 00 00 7E [22:32:50]Write i2c OK [22:32:50]MH_I2C_Read... [22:32:50]OFD Sender: No OFD packet to send [22:32:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:32:50]Read from MH i2c: E2 [22:32:50]MH_I2C_Read... [22:32:50]Read from MH i2c: E2 0B 00 [22:32:50]MH_I2C_Read... [22:32:50]Read from MH i2c: E2 0B 00 28 DB 00 A7 F9 F3 2F C2 5D 7E 5B 90 00 39 [22:32:50]RAPDU: A7 F9 F3 2F C2 5D 7E 5B 90 00 [22:32:50]wFMCommunicate OK [22:32:50]SAM_PROTO_SignData done [22:32:50]FM_MakeSignedData done [22:32:50]CreateOFDProtocolMessage [22:32:50]wFMCommunicate request_size=4 [22:32:50]MH_SAM_APDU [22:32:50]CAPDU: 80 11 00 00 [22:32:50]Write to MH i2c: E2 08 00 29 DB 80 11 00 00 00 00 00 00 7E [22:32:50]Write i2c OK [22:32:50]MH_I2C_Read... [22:32:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:50]Read from MH i2c: E2 [22:32:50]MH_I2C_Read... [22:32:50]Read from MH i2c: E2 17 00 [22:32:50]MH_I2C_Read... [22:32:50]Read from MH i2c: E2 17 00 29 DB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 CB [22:32:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:32:50]wFMCommunicate OK [22:32:50]CreateOFDProtocolMessage done [22:32:50]OFDSenderStorePacket 260991 [22:32:50]StoreOFDPacket docnum=260991 [22:32:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 26 11 07 01 4D 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FA D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 72 1D 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 1D 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E A6 00 00 00 00 07 04 06 00 3C 1D 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 02 00 00 F4 03 04 00 97 76 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7F FB 03 00 35 04 06 00 54 43 D3 3D F1 8F A7 F9 F3 2F C2 5D 7E 5B [22:32:50]CheckFolder [22:32:50]dirname=/storage/ofd_packets [22:32:50]CheckFolder done [22:32:50]ProducePacketName [22:32:50]name=ofd_packets/00260991 [22:32:50]NVStorageSaveData ofd_packets/00260991 [22:32:50]File name is /storage/ofd_packets/00260991 [22:32:50]Write 301 bytes [22:32:50]NVStorageSaveData done [22:32:50]OFDSenderStorePacket done [22:32:50]KKMCreateOFDPacket done [22:32:50]NVStorageSaveData kkm_last_timestamp [22:32:50]File name is /storage/kkm_last_timestamp [22:32:50]Write 4 bytes [22:32:50]NVStorageSaveData done [22:32:50]ExternCall_PrintAddStr [22:32:50]wPrintStart [22:32:50]Write to MH i2c: 01 00 00 2A DB 05 [22:32:50]Write i2c OK [22:32:50]MH_I2C_Read... [22:32:50]Read from MH i2c: 01 [22:32:50]MH_I2C_Read... [22:32:50]Read from MH i2c: 01 07 00 [22:32:50]MH_I2C_Read... [22:32:50]Read from MH i2c: 01 07 00 2A DB 00 00 00 00 00 FF 0F 1A [22:32:50]RasterBufferAndPrint [22:32:50]line Счет N : (1)1036544 [22:32:50]line ИНН: 02508201610067 [22:32:50]line Контрольно-Кассовый Чек [22:32:50]line ПРОДАЖА [22:32:50]line ТРК (МРК, ГНК) : 23 [22:32:50]line Товар: 2710124500 [22:32:50]line Аи-95-К-5 [22:32:50]line 54.010 * 74.20 [22:32:50]line = 4007.54 [22:32:50]line НДС 12% НСП 1% [22:32:50]line > о реализуемом товаре [22:32:50]line ОКРУГЛЕНИЕ: -0.54 [22:32:50]line ИТОГО: 4007.00 [22:32:50]line Внесено: 5000.00 [22:32:50]line СДАЧА: 993.00 [22:32:50]line НСП 1% : 35.46 [22:32:50]line НДС 12% : 425.58 [22:32:50]line Наличными: 4007.00 [22:32:50]line Безнал.: 0.00 [22:32:50]line Место: АЗС № 94 "Партнер Нефть" [22:32:50]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [22:32:50]line СНО: Общий режим [22:32:50]line Чек 549 18.08.2024 22:32 [22:32:50]line Смена: 449 ФФД: 1.0 [22:32:50]line ЗНМ: 0300000099 [22:32:50]line РНМ: 0000000000091865 [22:32:50]line Версия ККМ: 001 [22:32:50]line ФМ: 0000000000871820 [22:32:50]line ФД: 260991 [22:32:50]line ФПД: 92650283594127 [22:32:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T223255&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260991&fm=92650283594127&tin=02508201610067®Number=0000000000091865&sum=400700 [22:32:50]OFD Sender: Processing packet 260991 [packets to send 192, broken 191] [22:32:50]ProducePacketName [22:32:50]name=ofd_packets/00260991 [22:32:50]OFD Sender: To server: pG, [22:32:50]CommunicateWithHost lk.salyk.kg:30040 [22:32:50]ConnectInit lk.salyk.kg [22:32:50]written 0, free lines is 4095 [22:32:50]Connected sock=10 [22:32: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 30 0F 01 00 00 26 11 07 01 4D 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FA D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 72 1D 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 1D 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E A6 00 00 00 00 07 04 06 00 3C 1D 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 02 00 00 F4 03 04 00 97 76 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 7F FB 03 00 35 04 06 00 54 43 D3 3D F1 8F A7 F9 F3 2F C2 5D 7E 5B [22:32: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 30 4F 00 00 00 76 9C 47 00 F8 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 30 10 04 04 00 7F FB 03 00 F4 03 04 00 EB 1F C2 66 B6 04 01 00 00 B9 19 6E B3 E6 7B 39 1B [22:32:51]CommunicateWithHost err = 0 [22:32:51]CheckOFDResponse [22:32:51]1017 (14) - 77093643461234 [22:32:51]1041 (16) - 0000000000871820 [22:32:51]1040 (4) - 260991 [22:32:51]1012 (4) - 18.08.2024 16:23 [22:32:51]1206 (1) - 0 [22:32:51]OFD Sender: Remove packet 260991 [22:32:51]ProducePacketName [22:32:51]name=ofd_packets/00260991 [22:32:51]NVStorageDeleteData [22:32:51]Write to MH i2c: 01 00 00 55 DB 30 [22:32:51]Write i2c OK [22:32:51]MH_I2C_Read... [22:32:51]Read from MH i2c: 01 [22:32:51]MH_I2C_Read... [22:32:51]Read from MH i2c: 01 07 00 [22:32:51]MH_I2C_Read... [22:32:51]Read from MH i2c: 01 07 00 55 DB 00 00 00 00 00 60 0C A3 [22:32:51]RasterBufferAndPrint [22:32:51]line [22:32:51]line [22:32:51]line [22:32:51]line [22:32:51]line [22:32:51]written 0, free lines is 3172 [22:32:51]MH_Cut [22:32:51]Write to MH i2c: D1 01 00 5C DB 01 09 [22:32:51]Write i2c OK [22:32:51]MH_I2C_Read... [22:32:51]Read from MH i2c: D1 [22:32:51]MH_I2C_Read... [22:32:51]Read from MH i2c: D1 01 00 [22:32:51]MH_I2C_Read... [22:32:51]Read from MH i2c: D1 01 00 5C DB 00 08 [22:32:51]Write to MH i2c: 01 00 00 5D DB 38 [22:32:51]Write i2c OK [22:32:51]MH_I2C_Read... [22:32:51]OFD Sender: No OFD packet to send [22:32:52]*** Cut start [22:32:52]*** Purtial cut [22:32:52]*** Stage 1: CUTSNS_PIN = 1 [22:32:54]Read from MH i2c: 01 [22:32:54]MH_I2C_Read... [22:32:54]*** Stop cut motor [22:32:54]*** Cut end [22:32:54]Read from MH i2c: 01 07 00 [22:32:54]MH_I2C_Read... [22:32:54]Read from MH i2c: 01 07 00 5D DB 00 00 00 00 00 FF 0F 4D [22:32:54]process_action close_receipt done [22:32:54]requested_data is exist [22:32:54]produce_requested_data [22:32:54]requested_item fm.sn is exist - process it [22:32:54]wFMCommunicate request_size=4 [22:32:54]MH_SAM_APDU [22:32:54]CAPDU: 80 11 00 00 [22:32:54]Write to MH i2c: E2 08 00 5E DB 80 11 00 00 00 00 00 00 B3 [22:32:54]Write i2c OK [22:32:54]MH_I2C_Read... [22:32:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:54]Read from MH i2c: E2 [22:32:54]MH_I2C_Read... [22:32:54]Read from MH i2c: E2 17 00 [22:32:54]MH_I2C_Read... [22:32:54]Read from MH i2c: E2 17 00 5E DB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 00 [22:32:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:32:54]wFMCommunicate OK [22:32:54]requested_item fd.num is exist - process it [22:32:54]SAM_PROTO_GetFieldsCounters [22:32:54]wFMCommunicate request_size=4 [22:32:54]MH_SAM_APDU [22:32:54]CAPDU: 80 13 00 00 [22:32:54]Write to MH i2c: E2 08 00 5F DB 80 13 00 00 00 00 00 00 B6 [22:32:54]Write i2c OK [22:32:54]MH_I2C_Read... [22:32:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:32:54]Read from MH i2c: E2 [22:32:54]MH_I2C_Read... [22:32:54]Read from MH i2c: E2 62 00 [22:32:54]MH_I2C_Read... [22:32:54]Read from MH i2c: E2 62 00 5F DB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 7F FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 25 02 00 00 5E 04 04 00 25 02 00 00 57 04 04 00 26 02 00 00 19 04 04 00 00 00 00 00 90 00 89 [22:32: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 7F FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 25 02 00 00 5E 04 04 00 25 02 00 00 57 04 04 00 26 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:32:54]wFMCommunicate OK [22:32:54]SAM_PROTO_GetFieldsCounters done [22:32:54]requested_item shift.num is exist - process it [22:32:54]requested_item shift.opened is exist - process it [22:32:54]req_shift_opened [22:32:54]FM_GetShiftState [22:32:54]SAM_PROTO_GetShiftState [22:32:54]wFMCommunicate request_size=4 [22:32:54]MH_SAM_APDU [22:32:54]CAPDU: 80 13 01 00 [22:32:54]Write to MH i2c: E2 08 00 60 DB 80 13 01 00 00 00 00 00 B8 [22:32:54]Write i2c OK [22:32:54]MH_I2C_Read... [22:32:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:54]Read from MH i2c: E2 [22:32:54]MH_I2C_Read... [22:32:54]Read from MH i2c: E2 0E 00 [22:32:54]MH_I2C_Read... [22:32:54]Read from MH i2c: E2 0E 00 60 DB 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F5 [22:32:54]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:32:54]wFMCommunicate OK [22:32:54]SAM_PROTO_GetShiftState done [22:32:54]FM_GetShiftState done [22:32:54]req_shift_opened done [22:32:54]requested_item shift.open_date is exist - process it [22:32:54]req_shift_open_date [22:32:54]req_shift_open_date done [22:32:54]produce_requested_data done [22:32:54]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260991,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [22:32:54]process_action_free close_receipt [22:32:54]json_value_free [22:32:54]json_value_free done [22:32:54]process_json_proto returns [22:32:54]Send response to host [22:32:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260991,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [22:32:54]free response buf [22:32:54]execute_script done [22:32:54]execute_script returns [22:32:54]free content buf [22:32:54]Sock 7.Close socket [22:32:54]Sock 7.Thread stoped [22:32:56]OFD Sender: No OFD packet to send [22:33:01]OFD Sender: No OFD packet to send [22:33:04]accept exits with 9 [22:33:04]New connection [22:33:04]New thread 3066473828 created [22:33:04]Thread 3066617188 joined [22:33:04]Waiting for new connection... [22:33:04] Sock 9.Parse request [22:33:04]Sock 9.Check first char [22:33:04]Sock 9.First char is OK [22:33:04]request: POST /json_proto HTTP/1.0 [22:33:04]Method: POST [22:33:04]URL: /json_proto [22:33:04]Method is POST - this is cgi request [22:33:04]url: /json_proto [22:33:04]query_string will be loaded in cgi processing [22:33:04]execute_cgi json_proto POST (null) [22:33:04]execute_cgi path=json_proto method=POST [22:33:04]POST find Content-Length [22:33:04]Host: 172.17.55.133:8080 [22:33:04]Content-Length: 683 [22:33:04]Content-Type: application/json [22:33:04] [22:33:04]POST finish read [22:33:04]Found Content-Length = 683 [22:33:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:33:04]execute_script... [22:33: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)1036545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:33:04]POST & json_proto [22:33:04]process_json_proto [22:33:04]json parsed OK: [22:33:04]protocol is kg_v1.0 [22:33:04]action value=close_receipt [22:33:04]process_action close_receipt [22:33:04]cmd_close_receipt [22:33:04]MH_GetDate [22:33:04]Write to MH i2c: F0 00 00 61 DB 2B [22:33:04]Write i2c OK [22:33:04]MH_I2C_Read... [22:33:04]Read from MH i2c: F0 [22:33:04]MH_I2C_Read... [22:33:04]Read from MH i2c: F0 09 00 [22:33:04]MH_I2C_Read... [22:33:04]Read from MH i2c: F0 09 00 61 DB 00 A7 76 C2 66 34 48 D8 65 32 [22:33:04]GetLastDocTimeStamp 1724020375 [22:33:04]current date 1724020391 [22:33:04]FM_GetShiftState [22:33:04]SAM_PROTO_GetShiftState [22:33:04]wFMCommunicate request_size=4 [22:33:04]MH_SAM_APDU [22:33:04]CAPDU: 80 13 01 00 [22:33:04]Write to MH i2c: E2 08 00 62 DB 80 13 01 00 00 00 00 00 BA [22:33:04]Write i2c OK [22:33:04]MH_I2C_Read... [22:33:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:04]Read from MH i2c: E2 [22:33:04]MH_I2C_Read... [22:33:04]Read from MH i2c: E2 0E 00 [22:33:04]MH_I2C_Read... [22:33:04]Read from MH i2c: E2 0E 00 62 DB 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F7 [22:33:04]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:33:04]wFMCommunicate OK [22:33:04]SAM_PROTO_GetShiftState done [22:33:04]FM_GetShiftState done [22:33:04]opened in 1723940556 [22:33:04]opened+sec_in_day 1724026956 [22:33:04]quantity*price = 100005 [22:33:04]sum+1 = 100006 [22:33:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 550 18.08.2024 22:33 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260992 ФПД: 119873883550059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T223311&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260992&fm=119873883550059&tin=02508201610067®Number=0000000000091865&sum=100000 [22:33:05]StoreToDocumentArchive [22:33:05]shift 449 fd 260992 [22:33:05]save to /storage/0449/doc_00260992 [22:33:05]save last doc name /storage/0449/doc_00260992 to /storage/kkm_last_doc_name [22:33:05]save OK [22:33:05]Clear old archive folders... [22:33:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:33:05]tlvbuf is 003E9400 [22:33:05]SAM_PROTO_ClearQueue [22:33:05]wFMCommunicate request_size=4 [22:33:05]MH_SAM_APDU [22:33:05]CAPDU: 80 09 00 00 [22:33:05]Write to MH i2c: E2 08 00 6F DB 80 09 00 00 00 00 00 00 BC [22:33:05]Write i2c OK [22:33:05]MH_I2C_Read... [22:33:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:33:05]Read from MH i2c: E2 [22:33:05]MH_I2C_Read... [22:33:05]Read from MH i2c: E2 03 00 [22:33:05]MH_I2C_Read... [22:33:05]Read from MH i2c: E2 03 00 6F DB 00 90 00 BE [22:33:05]RAPDU: 90 00 [22:33:05]wFMCommunicate OK [22:33:05]SAM_PROTO_ClearQueue done [22:33:05]KKMCreateOFDPacket [22:33:05]OFDProtocolAddRootSTLVToBuf [22:33:05]FM_MakeSignedData [22:33:05]FM_MakeSignedData [22:33:05]SAM_PROTO_SignData [22:33:05]wFMCommunicate request_size=4 [22:33:05]MH_SAM_APDU [22:33:05]CAPDU: 80 0D 01 02 [22:33:05]Write to MH i2c: E2 08 00 70 DB 80 0D 01 02 00 00 00 00 C4 [22:33:05]Write i2c OK [22:33:05]MH_I2C_Read... [22:33:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:33:05]Read from MH i2c: E2 [22:33:05]MH_I2C_Read... [22:33:05]Read from MH i2c: E2 03 00 [22:33:05]MH_I2C_Read... [22:33:05]Read from MH i2c: E2 03 00 70 DB 00 90 00 BF [22:33:05]RAPDU: 90 00 [22:33:05]wFMCommunicate OK [22:33:05]wFMCommunicate request_size=255 [22:33:05]MH_SAM_APDU [22:33:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 02 00 00 F4 03 04 00 A7 76 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 80 FB 03 00 35 04 06 00 6D [22:33:05]Write to MH i2c: E2 02 01 71 DB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 02 00 00 F4 03 04 00 A7 76 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 80 FB 03 00 35 04 06 00 6D 00 00 EA [22:33:05]Write i2c OK [22:33:05]MH_I2C_Read... [22:33:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:05]Read from MH i2c: E2 [22:33:05]MH_I2C_Read... [22:33:05]Read from MH i2c: E2 03 00 [22:33:05]MH_I2C_Read... [22:33:05]Read from MH i2c: E2 03 00 71 DB 00 90 00 C0 [22:33:05]RAPDU: 90 00 [22:33:05]wFMCommunicate OK [22:33:05]wFMCommunicate request_size=10 [22:33:05]MH_SAM_APDU [22:33:05]CAPDU: 80 0D 02 02 05 06 50 3F 31 6B [22:33:05]Write to MH i2c: E2 0D 00 72 DB 80 0D 02 02 05 00 06 50 3F 31 6B 00 00 02 [22:33:05]Write i2c OK [22:33:05]MH_I2C_Read... [22:33:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:05]Read from MH i2c: E2 [22:33:05]MH_I2C_Read... [22:33:05]Read from MH i2c: E2 03 00 [22:33:05]MH_I2C_Read... [22:33:05]Read from MH i2c: E2 03 00 72 DB 00 90 00 C1 [22:33:05]RAPDU: 90 00 [22:33:05]wFMCommunicate OK [22:33:05]wFMCommunicate request_size=4 [22:33:05]MH_SAM_APDU [22:33:05]CAPDU: 80 0D 03 02 [22:33:05]Write to MH i2c: E2 08 00 73 DB 80 0D 03 02 00 00 00 00 C9 [22:33:05]Write i2c OK [22:33:05]MH_I2C_Read... [22:33:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:33:05]Read from MH i2c: E2 [22:33:05]MH_I2C_Read... [22:33:05]Read from MH i2c: E2 0B 00 [22:33:05]MH_I2C_Read... [22:33:05]Read from MH i2c: E2 0B 00 73 DB 00 B4 70 79 E0 D7 46 D4 26 90 00 5E [22:33:05]RAPDU: B4 70 79 E0 D7 46 D4 26 90 00 [22:33:05]wFMCommunicate OK [22:33:05]SAM_PROTO_SignData done [22:33:05]FM_MakeSignedData done [22:33:05]CreateOFDProtocolMessage [22:33:05]wFMCommunicate request_size=4 [22:33:05]MH_SAM_APDU [22:33:05]CAPDU: 80 11 00 00 [22:33:05]Write to MH i2c: E2 08 00 74 DB 80 11 00 00 00 00 00 00 C9 [22:33:05]Write i2c OK [22:33:05]MH_I2C_Read... [22:33:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:05]Read from MH i2c: E2 [22:33:05]MH_I2C_Read... [22:33:05]Read from MH i2c: E2 17 00 [22:33:05]MH_I2C_Read... [22:33:05]Read from MH i2c: E2 17 00 74 DB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 16 [22:33:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:33:05]wFMCommunicate OK [22:33:05]CreateOFDProtocolMessage done [22:33:05]OFDSenderStorePacket 260992 [22:33:05]StoreOFDPacket docnum=260992 [22:33:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 9D 3C 07 01 40 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 02 00 00 F4 03 04 00 A7 76 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 80 FB 03 00 35 04 06 00 6D 06 50 3F 31 6B B4 70 79 E0 D7 46 D4 26 [22:33:05]CheckFolder [22:33:05]dirname=/storage/ofd_packets [22:33:05]CheckFolder done [22:33:05]ProducePacketName [22:33:05]name=ofd_packets/00260992 [22:33:05]NVStorageSaveData ofd_packets/00260992 [22:33:05]File name is /storage/ofd_packets/00260992 [22:33:05]Write 301 bytes [22:33:05]NVStorageSaveData done [22:33:05]OFDSenderStorePacket done [22:33:05]KKMCreateOFDPacket done [22:33:05]NVStorageSaveData kkm_last_timestamp [22:33:05]File name is /storage/kkm_last_timestamp [22:33:05]Write 4 bytes [22:33:05]NVStorageSaveData done [22:33:05]ExternCall_PrintAddStr [22:33:05]wPrintStart [22:33:05]Write to MH i2c: 01 00 00 75 DB 50 [22:33:05]Write i2c OK [22:33:05]MH_I2C_Read... [22:33:05]Read from MH i2c: 01 [22:33:05]MH_I2C_Read... [22:33:05]Read from MH i2c: 01 07 00 [22:33:05]MH_I2C_Read... [22:33:05]Read from MH i2c: 01 07 00 75 DB 00 00 00 00 00 FF 0F 65 [22:33:05]RasterBufferAndPrint [22:33:05]line Счет N : (1)1036545 [22:33:05]line ИНН: 02508201610067 [22:33:05]line Контрольно-Кассовый Чек [22:33:05]line ПРОДАЖА [22:33:05]line ТРК (МРК, ГНК) : 42 [22:33:05]line Товар: 2710124130 [22:33:05]line Аи-92-К-5 [22:33:05]line 14.750 * 67.80 [22:33:05]line = 1000.05 [22:33:05]line НДС 12% НСП 1% [22:33:05]line > о реализуемом товаре [22:33:05]line ОКРУГЛЕНИЕ: -0.05 [22:33:05]line ИТОГО: 1000.00 [22:33:05]line Внесено: 1000.00 [22:33:05]line СДАЧА: 0.00 [22:33:05]line НСП 1% : 8.85 [22:33:05]line НДС 12% : 106.20 [22:33:05]line Наличными: 1000.00 [22:33:05]line Безнал.: 0.00 [22:33:05]line Место: АЗС № 94 "Партнер Нефть" [22:33:05]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [22:33:05]line СНО: Общий режим [22:33:05]line Чек 550 18.08.2024 22:33 [22:33:05]line Смена: 449 ФФД: 1.0 [22:33:05]line ЗНМ: 0300000099 [22:33:05]line РНМ: 0000000000091865 [22:33:05]line Версия ККМ: 001 [22:33:05]line ФМ: 0000000000871820 [22:33:05]line ФД: 260992 [22:33:05]line ФПД: 119873883550059 [22:33:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T223311&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260992&fm=119873883550059&tin=02508201610067®Number=0000000000091865&sum=100000 [22:33:06]OFD Sender: Processing packet 260992 [packets to send 192, broken 191] [22:33:06]ProducePacketName [22:33:06]name=ofd_packets/00260992 [22:33:06]OFD Sender: To server: pG, [22:33:06]CommunicateWithHost lk.salyk.kg:30040 [22:33:06]ConnectInit lk.salyk.kg [22:33:06]written 0, free lines is 4095 [22:33:06]Connected sock=10 [22:33: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 30 0F 01 00 00 9D 3C 07 01 40 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 02 00 00 F4 03 04 00 A7 76 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 80 FB 03 00 35 04 06 00 6D 06 50 3F 31 6B B4 70 79 E0 D7 46 D4 26 [22:33: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 30 4F 00 00 00 FC 04 47 00 3D 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 80 FB 03 00 F4 03 04 00 FA 1F C2 66 B6 04 01 00 00 46 F4 DC 39 AD 84 D3 20 [22:33:06]CommunicateWithHost err = 0 [22:33:06]CheckOFDResponse [22:33:06]1017 (14) - 77093643461234 [22:33:06]1041 (16) - 0000000000871820 [22:33:06]1040 (4) - 260992 [22:33:06]1012 (4) - 18.08.2024 16:23 [22:33:06]1206 (1) - 0 [22:33:06]OFD Sender: Remove packet 260992 [22:33:06]ProducePacketName [22:33:06]name=ofd_packets/00260992 [22:33:06]NVStorageDeleteData [22:33:06]Write to MH i2c: 01 00 00 A0 DB 7B [22:33:06]Write i2c OK [22:33:06]MH_I2C_Read... [22:33:06]Read from MH i2c: 01 [22:33:06]MH_I2C_Read... [22:33:06]Read from MH i2c: 01 07 00 [22:33:06]MH_I2C_Read... [22:33:06]Read from MH i2c: 01 07 00 A0 DB 00 00 00 00 00 54 0C E2 [22:33:06]RasterBufferAndPrint [22:33:06]line [22:33:06]line [22:33:06]line [22:33:06]line [22:33:06]line [22:33:06]written 0, free lines is 3160 [22:33:06]MH_Cut [22:33:06]Write to MH i2c: D1 01 00 A7 DB 01 54 [22:33:06]Write i2c OK [22:33:06]MH_I2C_Read... [22:33:06]Read from MH i2c: D1 [22:33:06]MH_I2C_Read... [22:33:06]Read from MH i2c: D1 01 00 [22:33:06]MH_I2C_Read... [22:33:06]Read from MH i2c: D1 01 00 A7 DB 00 53 [22:33:06]Write to MH i2c: 01 00 00 A8 DB 83 [22:33:06]Write i2c OK [22:33:06]MH_I2C_Read... [22:33:06]OFD Sender: No OFD packet to send [22:33:07]*** Cut start [22:33:07]*** Purtial cut [22:33:07]*** Stage 1: CUTSNS_PIN = 1 [22:33:09]Read from MH i2c: 01 [22:33:09]MH_I2C_Read... [22:33:09]*** Stop cut motor [22:33:09]*** Cut end [22:33:09]Read from MH i2c: 01 07 00 [22:33:09]MH_I2C_Read... [22:33:09]Read from MH i2c: 01 07 00 A8 DB 00 00 00 00 00 FF 0F 98 [22:33:09]process_action close_receipt done [22:33:09]requested_data is exist [22:33:09]produce_requested_data [22:33:09]requested_item fm.sn is exist - process it [22:33:09]wFMCommunicate request_size=4 [22:33:09]MH_SAM_APDU [22:33:09]CAPDU: 80 11 00 00 [22:33:09]Write to MH i2c: E2 08 00 A9 DB 80 11 00 00 00 00 00 00 FE [22:33:09]Write i2c OK [22:33:09]MH_I2C_Read... [22:33:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:09]Read from MH i2c: E2 [22:33:09]MH_I2C_Read... [22:33:09]Read from MH i2c: E2 17 00 [22:33:09]MH_I2C_Read... [22:33:09]Read from MH i2c: E2 17 00 A9 DB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 4B [22:33:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:33:09]wFMCommunicate OK [22:33:09]requested_item fd.num is exist - process it [22:33:09]SAM_PROTO_GetFieldsCounters [22:33:09]wFMCommunicate request_size=4 [22:33:09]MH_SAM_APDU [22:33:09]CAPDU: 80 13 00 00 [22:33:09]Write to MH i2c: E2 08 00 AA DB 80 13 00 00 00 00 00 00 01 [22:33:09]Write i2c OK [22:33:09]MH_I2C_Read... [22:33:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:33:09]Read from MH i2c: E2 [22:33:09]MH_I2C_Read... [22:33:09]Read from MH i2c: E2 62 00 [22:33:09]MH_I2C_Read... [22:33:10]Read from MH i2c: E2 62 00 AA DB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 80 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 26 02 00 00 5E 04 04 00 26 02 00 00 57 04 04 00 27 02 00 00 19 04 04 00 00 00 00 00 90 00 D8 [22:33: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 80 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 26 02 00 00 5E 04 04 00 26 02 00 00 57 04 04 00 27 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:33:10]wFMCommunicate OK [22:33:10]SAM_PROTO_GetFieldsCounters done [22:33:10]requested_item shift.num is exist - process it [22:33:10]requested_item shift.opened is exist - process it [22:33:10]req_shift_opened [22:33:10]FM_GetShiftState [22:33:10]SAM_PROTO_GetShiftState [22:33:10]wFMCommunicate request_size=4 [22:33:10]MH_SAM_APDU [22:33:10]CAPDU: 80 13 01 00 [22:33:10]Write to MH i2c: E2 08 00 AB DB 80 13 01 00 00 00 00 00 03 [22:33:10]Write i2c OK [22:33:10]MH_I2C_Read... [22:33:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:10]Read from MH i2c: E2 [22:33:10]MH_I2C_Read... [22:33:10]Read from MH i2c: E2 0E 00 [22:33:10]MH_I2C_Read... [22:33:10]Read from MH i2c: E2 0E 00 AB DB 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 40 [22:33:10]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:33:10]wFMCommunicate OK [22:33:10]SAM_PROTO_GetShiftState done [22:33:10]FM_GetShiftState done [22:33:10]req_shift_opened done [22:33:10]requested_item shift.open_date is exist - process it [22:33:10]req_shift_open_date [22:33:10]req_shift_open_date done [22:33:10]produce_requested_data done [22:33:10]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260992,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [22:33:10]process_action_free close_receipt [22:33:10]json_value_free [22:33:10]json_value_free done [22:33:10]process_json_proto returns [22:33:10]Send response to host [22:33:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260992,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [22:33:10]free response buf [22:33:10]execute_script done [22:33:10]execute_script returns [22:33:10]free content buf [22:33:10]Sock 9.Close socket [22:33:10]Sock 9.Thread stoped [22:33:11]OFD Sender: No OFD packet to send [22:33:16]OFD Sender: No OFD packet to send [22:33:21]OFD Sender: No OFD packet to send [22:33:26]OFD Sender: No OFD packet to send [22:33:31]OFD Sender: No OFD packet to send [22:33:36]OFD Sender: No OFD packet to send [22:33:41]OFD Sender: No OFD packet to send [22:33:46]OFD Sender: No OFD packet to send [22:33:51]OFD Sender: No OFD packet to send [22:33:56]OFD Sender: No OFD packet to send [22:34:01]OFD Sender: No OFD packet to send [22:34:06]OFD Sender: No OFD packet to send [22:34:11]OFD Sender: No OFD packet to send [22:34:16]OFD Sender: No OFD packet to send [22:34:21]OFD Sender: No OFD packet to send [22:34:26]OFD Sender: No OFD packet to send [22:34:31]OFD Sender: No OFD packet to send [22:34:37]OFD Sender: No OFD packet to send [22:34:42]OFD Sender: No OFD packet to send [22:34:47]OFD Sender: No OFD packet to send [22:34:52]OFD Sender: No OFD packet to send [22:34:57]OFD Sender: No OFD packet to send [22:35:02]OFD Sender: No OFD packet to send [22:35:07]OFD Sender: No OFD packet to send [22:35:12]OFD Sender: No OFD packet to send [22:35:17]OFD Sender: No OFD packet to send [22:35:22]OFD Sender: No OFD packet to send [22:35:27]OFD Sender: No OFD packet to send [22:35:32]OFD Sender: No OFD packet to send [22:35:37]OFD Sender: No OFD packet to send [22:35:42]OFD Sender: No OFD packet to send [22:35:47]OFD Sender: No OFD packet to send [22:35:52]OFD Sender: No OFD packet to send [22:35:57]OFD Sender: No OFD packet to send [22:36:02]OFD Sender: No OFD packet to send [22:36:07]OFD Sender: No OFD packet to send [22:36:12]OFD Sender: No OFD packet to send [22:36:17]OFD Sender: No OFD packet to send [22:36:22]OFD Sender: No OFD packet to send [22:36:27]OFD Sender: No OFD packet to send [22:36:32]OFD Sender: No OFD packet to send [22:36:37]OFD Sender: No OFD packet to send [22:36:42]OFD Sender: No OFD packet to send [22:36:47]OFD Sender: No OFD packet to send [22:36:52]accept exits with 7 [22:36:52]New connection [22:36:52]New thread 3066617188 created [22:36:52]Thread 3066473828 joined [22:36:52]Waiting for new connection... [22:36:52] Sock 7.Parse request [22:36:52]Sock 7.Check first char [22:36:52]Sock 7.First char is OK [22:36:52]request: POST /json_proto HTTP/1.0 [22:36:52]Method: POST [22:36:52]URL: /json_proto [22:36:52]Method is POST - this is cgi request [22:36:52]url: /json_proto [22:36:52]query_string will be loaded in cgi processing [22:36:52]execute_cgi json_proto POST (null) [22:36:52]execute_cgi path=json_proto method=POST [22:36:52]POST find Content-Length [22:36:52]Host: 172.17.55.133:8080 [22:36:52]Content-Length: 755 [22:36:52]Content-Type: application/json [22:36:52] [22:36:52]POST finish read [22:36:52]Found Content-Length = 755 [22:36:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036546", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30154365", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:36:52]execute_script... [22:36: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)1036546", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30154365", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:36:52]POST & json_proto [22:36:52]process_json_proto [22:36:52]json parsed OK: [22:36:52]protocol is kg_v1.0 [22:36:52]action value=close_receipt [22:36:52]process_action close_receipt [22:36:52]cmd_close_receipt [22:36:52]MH_GetDate [22:36:52]Write to MH i2c: F0 00 00 AC DB 76 [22:36:52]Write i2c OK [22:36:52]MH_I2C_Read... [22:36:52]Read from MH i2c: F0 [22:36:52]MH_I2C_Read... [22:36:52]Read from MH i2c: F0 09 00 [22:36:52]MH_I2C_Read... [22:36:52]Read from MH i2c: F0 09 00 AC DB 00 8B 77 C2 66 34 48 D8 65 62 [22:36:52]GetLastDocTimeStamp 1724020391 [22:36:52]current date 1724020619 [22:36:52]FM_GetShiftState [22:36:52]SAM_PROTO_GetShiftState [22:36:52]wFMCommunicate request_size=4 [22:36:52]MH_SAM_APDU [22:36:52]CAPDU: 80 13 01 00 [22:36:52]Write to MH i2c: E2 08 00 AD DB 80 13 01 00 00 00 00 00 05 [22:36:52]Write i2c OK [22:36:52]MH_I2C_Read... [22:36:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:52]Read from MH i2c: E2 [22:36:52]MH_I2C_Read... [22:36:52]Read from MH i2c: E2 0E 00 [22:36:52]MH_I2C_Read... [22:36:52]Read from MH i2c: E2 0E 00 AD DB 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 42 [22:36:52]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:36:52]wFMCommunicate OK [22:36:52]SAM_PROTO_GetShiftState done [22:36:52]FM_GetShiftState done [22:36:52]opened in 1723940556 [22:36:52]opened+sec_in_day 1724026956 [22:36:52]quantity*price = 0 [22:36:52]sum+1 = 1 [22:36:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 551 18.08.2024 22:36 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: ТК ГПНА Online 30154365 ФМ: 0000000000871820 ФД: 260993 ФПД: 181024453774357 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T223659&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260993&fm=181024453774357&tin=02508201610067®Number=0000000000091865&sum=0 [22:36:53]StoreToDocumentArchive [22:36:53]shift 449 fd 260993 [22:36:53]save to /storage/0449/doc_00260993 [22:36:53]save last doc name /storage/0449/doc_00260993 to /storage/kkm_last_doc_name [22:36:53]save OK [22:36:53]Clear old archive folders... [22:36:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:36:53]tlvbuf is 007BC1A0 [22:36:53]SAM_PROTO_ClearQueue [22:36:53]wFMCommunicate request_size=4 [22:36:53]MH_SAM_APDU [22:36:53]CAPDU: 80 09 00 00 [22:36:53]Write to MH i2c: E2 08 00 BA DB 80 09 00 00 00 00 00 00 07 [22:36:53]Write i2c OK [22:36:53]MH_I2C_Read... [22:36:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:36:53]Read from MH i2c: E2 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 03 00 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 03 00 BA DB 00 90 00 09 [22:36:53]RAPDU: 90 00 [22:36:53]wFMCommunicate OK [22:36:53]SAM_PROTO_ClearQueue done [22:36:53]KKMCreateOFDPacket [22:36:53]OFDProtocolAddRootSTLVToBuf [22:36:53]FM_MakeSignedData [22:36:53]FM_MakeSignedData [22:36:53]SAM_PROTO_SignData [22:36:53]wFMCommunicate request_size=4 [22:36:53]MH_SAM_APDU [22:36:53]CAPDU: 80 0D 01 02 [22:36:53]Write to MH i2c: E2 08 00 BB DB 80 0D 01 02 00 00 00 00 0F [22:36:53]Write i2c OK [22:36:53]MH_I2C_Read... [22:36:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:36:53]Read from MH i2c: E2 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 03 00 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 03 00 BB DB 00 90 00 0A [22:36:53]RAPDU: 90 00 [22:36:53]wFMCommunicate OK [22:36:53]wFMCommunicate request_size=255 [22:36:53]MH_SAM_APDU [22:36:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 27 02 00 00 F4 03 04 00 8B 77 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 81 FB 03 00 35 04 06 00 A4 [22:36:53]Write to MH i2c: E2 02 01 BC DB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 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 27 02 00 00 F4 03 04 00 8B 77 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 81 FB 03 00 35 04 06 00 A4 00 00 BD [22:36:53]Write i2c OK [22:36:53]MH_I2C_Read... [22:36:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:36:53]Read from MH i2c: E2 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 03 00 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 03 00 BC DB 00 90 00 0B [22:36:53]RAPDU: 90 00 [22:36:53]wFMCommunicate OK [22:36:53]wFMCommunicate request_size=10 [22:36:53]MH_SAM_APDU [22:36:53]CAPDU: 80 0D 02 02 05 A4 0A 43 4C 15 [22:36:53]Write to MH i2c: E2 0D 00 BD DB 80 0D 02 02 05 00 A4 0A 43 4C 15 00 00 6E [22:36:53]Write i2c OK [22:36:53]MH_I2C_Read... [22:36:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:36:53]Read from MH i2c: E2 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 03 00 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 03 00 BD DB 00 90 00 0C [22:36:53]RAPDU: 90 00 [22:36:53]wFMCommunicate OK [22:36:53]wFMCommunicate request_size=4 [22:36:53]MH_SAM_APDU [22:36:53]CAPDU: 80 0D 03 02 [22:36:53]Write to MH i2c: E2 08 00 BE DB 80 0D 03 02 00 00 00 00 14 [22:36:53]Write i2c OK [22:36:53]MH_I2C_Read... [22:36:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:36:53]Read from MH i2c: E2 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 0B 00 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 0B 00 BE DB 00 6E 8E 72 B5 AA EF AF EB 90 00 6B [22:36:53]RAPDU: 6E 8E 72 B5 AA EF AF EB 90 00 [22:36:53]wFMCommunicate OK [22:36:53]SAM_PROTO_SignData done [22:36:53]FM_MakeSignedData done [22:36:53]CreateOFDProtocolMessage [22:36:53]wFMCommunicate request_size=4 [22:36:53]MH_SAM_APDU [22:36:53]CAPDU: 80 11 00 00 [22:36:53]Write to MH i2c: E2 08 00 BF DB 80 11 00 00 00 00 00 00 14 [22:36:53]Write i2c OK [22:36:53]MH_I2C_Read... [22:36:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:36:53]Read from MH i2c: E2 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 17 00 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 17 00 BF DB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 61 [22:36:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:36:53]wFMCommunicate OK [22:36:53]CreateOFDProtocolMessage done [22:36:53]OFDSenderStorePacket 260993 [22:36:53]StoreOFDPacket docnum=260993 [22:36:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 FB ED 07 01 7A 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 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 27 02 00 00 F4 03 04 00 8B 77 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 81 FB 03 00 35 04 06 00 A4 A4 0A 43 4C 15 6E 8E 72 B5 AA EF AF EB [22:36:53]CheckFolder [22:36:53]dirname=/storage/ofd_packets [22:36:53]CheckFolder done [22:36:53]ProducePacketName [22:36:53]name=ofd_packets/00260993 [22:36:53]NVStorageSaveData ofd_packets/00260993 [22:36:53]File name is /storage/ofd_packets/00260993 [22:36:53]Write 301 bytes [22:36:53]NVStorageSaveData done [22:36:53]OFDSenderStorePacket done [22:36:53]KKMCreateOFDPacket done [22:36:53]NVStorageSaveData kkm_last_timestamp [22:36:53]File name is /storage/kkm_last_timestamp [22:36:53]Write 4 bytes [22:36:53]NVStorageSaveData done [22:36:53]ExternCall_PrintAddStr [22:36:53]wPrintStart [22:36:53]Write to MH i2c: 01 00 00 C0 DB 9B [22:36:53]Write i2c OK [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: 01 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: 01 07 00 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: 01 07 00 C0 DB 00 00 00 00 00 FF 0F B0 [22:36:53]RasterBufferAndPrint [22:36:53]line Счет N : (1)1036546 [22:36:53]line ИНН: 02508201610067 [22:36:53]line Контрольно-Кассовый Чек [22:36:53]line ПРОДАЖА [22:36:53]line ТРК (МРК, ГНК) : 12 [22:36:53]line Товар: 2710124130 [22:36:53]line Аи-92-К-5 [22:36:53]line 20.000 * 0.00 [22:36:53]line = 0.00 [22:36:53]line НДС 12% НСП 1% [22:36:53]line > о реализуемом товаре [22:36:53]line ИТОГО: 0.00 [22:36:53]line НСП 1% : 0.00 [22:36:53]line НДС 12% : 0.00 [22:36:53]line Наличными: 0.00 [22:36:53]line Безнал.: 0.00 [22:36:53]line Место: АЗС № 94 "Партнер Нефть" [22:36:53]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [22:36:53]line СНО: Общий режим [22:36:53]line Чек 551 18.08.2024 22:36 [22:36:53]line Смена: 449 ФФД: 1.0 [22:36:53]line ЗНМ: 0300000099 [22:36:53]line РНМ: 0000000000091865 [22:36:53]line Версия ККМ: 001 [22:36:53]line Талоны: ТК ГПНА Online [22:36:53]line 30154365 [22:36:53]line ФМ: 0000000000871820 [22:36:53]line ФД: 260993 [22:36:53]line ФПД: 181024453774357 [22:36:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T223659&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260993&fm=181024453774357&tin=02508201610067®Number=0000000000091865&sum=0 [22:36:53]written 0, free lines is 4095 [22:36:53]OFD Sender: Processing packet 260993 [packets to send 192, broken 191] [22:36:53]ProducePacketName [22:36:53]name=ofd_packets/00260993 [22:36:53]OFD Sender: To server: pG, [22:36:53]CommunicateWithHost lk.salyk.kg:30040 [22:36:53]ConnectInit lk.salyk.kg [22:36:53]Connected sock=10 [22:36: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 30 0F 01 00 00 FB ED 07 01 7A 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 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 27 02 00 00 F4 03 04 00 8B 77 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 81 FB 03 00 35 04 06 00 A4 A4 0A 43 4C 15 6E 8E 72 B5 AA EF AF EB [22:36:54]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 30 4F 00 00 00 4D 49 47 00 D2 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 81 FB 03 00 F4 03 04 00 DE 20 C2 66 B6 04 01 00 00 E4 8F 48 48 17 8B 5E 83 [22:36:54]CommunicateWithHost err = 0 [22:36:54]CheckOFDResponse [22:36:54]1017 (14) - 77093643461234 [22:36:54]1041 (16) - 0000000000871820 [22:36:54]1040 (4) - 260993 [22:36:54]1012 (4) - 18.08.2024 16:27 [22:36:54]1206 (1) - 0 [22:36:54]OFD Sender: Remove packet 260993 [22:36:54]ProducePacketName [22:36:54]name=ofd_packets/00260993 [22:36:54]NVStorageDeleteData [22:36:54]Write to MH i2c: 01 00 00 EA DB C5 [22:36:54]Write i2c OK [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: 01 [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: 01 07 00 [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: 01 07 00 EA DB 00 00 00 00 00 77 0C 4F [22:36:54]RasterBufferAndPrint [22:36:54]line [22:36:54]line [22:36:54]line [22:36:54]line [22:36:54]line [22:36:54]written 0, free lines is 3196 [22:36:54]MH_Cut [22:36:54]Write to MH i2c: D1 01 00 F1 DB 01 9E [22:36:54]Write i2c OK [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: D1 [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: D1 01 00 [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: D1 01 00 F1 DB 00 9D [22:36:54]Write to MH i2c: 01 00 00 F2 DB CD [22:36:54]Write i2c OK [22:36:54]MH_I2C_Read... [22:36:54]OFD Sender: No OFD packet to send [22:36:55]*** Cut start [22:36:55]*** Purtial cut [22:36:55]*** Stage 1: CUTSNS_PIN = 1 [22:36:57]Read from MH i2c: 01 [22:36:57]MH_I2C_Read... [22:36:57]*** Stop cut motor [22:36:57]*** Cut end [22:36:57]Read from MH i2c: 01 07 00 [22:36:57]MH_I2C_Read... [22:36:57]Read from MH i2c: 01 07 00 F2 DB 00 00 00 00 00 FF 0F E2 [22:36:57]process_action close_receipt done [22:36:57]requested_data is exist [22:36:57]produce_requested_data [22:36:57]requested_item fm.sn is exist - process it [22:36:57]wFMCommunicate request_size=4 [22:36:57]MH_SAM_APDU [22:36:57]CAPDU: 80 11 00 00 [22:36:57]Write to MH i2c: E2 08 00 F3 DB 80 11 00 00 00 00 00 00 48 [22:36:57]Write i2c OK [22:36:57]MH_I2C_Read... [22:36:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:36:57]Read from MH i2c: E2 [22:36:57]MH_I2C_Read... [22:36:57]Read from MH i2c: E2 17 00 [22:36:57]MH_I2C_Read... [22:36:57]Read from MH i2c: E2 17 00 F3 DB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 95 [22:36:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:36:57]wFMCommunicate OK [22:36:57]requested_item fd.num is exist - process it [22:36:57]SAM_PROTO_GetFieldsCounters [22:36:57]wFMCommunicate request_size=4 [22:36:57]MH_SAM_APDU [22:36:57]CAPDU: 80 13 00 00 [22:36:57]Write to MH i2c: E2 08 00 F4 DB 80 13 00 00 00 00 00 00 4B [22:36:57]Write i2c OK [22:36:57]MH_I2C_Read... [22:36:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:36:57]Read from MH i2c: E2 [22:36:57]MH_I2C_Read... [22:36:57]Read from MH i2c: E2 62 00 [22:36:57]MH_I2C_Read... [22:36:57]Read from MH i2c: E2 62 00 F4 DB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 81 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 27 02 00 00 5E 04 04 00 27 02 00 00 57 04 04 00 28 02 00 00 19 04 04 00 00 00 00 00 90 00 26 [22:36: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 81 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 27 02 00 00 5E 04 04 00 27 02 00 00 57 04 04 00 28 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:36:57]wFMCommunicate OK [22:36:57]SAM_PROTO_GetFieldsCounters done [22:36:57]requested_item shift.num is exist - process it [22:36:57]requested_item shift.opened is exist - process it [22:36:57]req_shift_opened [22:36:57]FM_GetShiftState [22:36:57]SAM_PROTO_GetShiftState [22:36:57]wFMCommunicate request_size=4 [22:36:57]MH_SAM_APDU [22:36:57]CAPDU: 80 13 01 00 [22:36:57]Write to MH i2c: E2 08 00 F5 DB 80 13 01 00 00 00 00 00 4D [22:36:57]Write i2c OK [22:36:57]MH_I2C_Read... [22:36:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:57]Read from MH i2c: E2 [22:36:57]MH_I2C_Read... [22:36:57]Read from MH i2c: E2 0E 00 [22:36:57]MH_I2C_Read... [22:36:57]Read from MH i2c: E2 0E 00 F5 DB 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 8A [22:36:57]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:36:57]wFMCommunicate OK [22:36:57]SAM_PROTO_GetShiftState done [22:36:57]FM_GetShiftState done [22:36:57]req_shift_opened done [22:36:57]requested_item shift.open_date is exist - process it [22:36:57]req_shift_open_date [22:36:57]req_shift_open_date done [22:36:57]produce_requested_data done [22:36:57]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260993,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [22:36:57]process_action_free close_receipt [22:36:57]json_value_free [22:36:57]json_value_free done [22:36:57]process_json_proto returns [22:36:57]Send response to host [22:36:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260993,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [22:36:57]free response buf [22:36:57]execute_script done [22:36:57]execute_script returns [22:36:57]free content buf [22:36:57]Sock 7.Close socket [22:36:57]Sock 7.Thread stoped [22:36:59]OFD Sender: No OFD packet to send [22:37:04]OFD Sender: No OFD packet to send [22:37:09]OFD Sender: No OFD packet to send [22:37:14]OFD Sender: No OFD packet to send [22:37:19]OFD Sender: No OFD packet to send [22:37:24]OFD Sender: No OFD packet to send [22:37:29]OFD Sender: No OFD packet to send [22:37:34]OFD Sender: No OFD packet to send [22:37:39]OFD Sender: No OFD packet to send [22:37:44]OFD Sender: No OFD packet to send [22:37:49]OFD Sender: No OFD packet to send [22:37:54]OFD Sender: No OFD packet to send [22:37:59]OFD Sender: No OFD packet to send [22:38:04]OFD Sender: No OFD packet to send [22:38:09]OFD Sender: No OFD packet to send [22:38:14]OFD Sender: No OFD packet to send [22:38:16]accept exits with 9 [22:38:16]New connection [22:38:16]New thread 3066473828 created [22:38:16]Thread 3066617188 joined [22:38:16]Waiting for new connection... [22:38:16] Sock 9.Parse request [22:38:16]Sock 9.Check first char [22:38:16]Sock 9.First char is OK [22:38:16]request: POST /json_proto HTTP/1.0 [22:38:16]Method: POST [22:38:16]URL: /json_proto [22:38:16]Method is POST - this is cgi request [22:38:16]url: /json_proto [22:38:16]query_string will be loaded in cgi processing [22:38:16]execute_cgi json_proto POST (null) [22:38:16]execute_cgi path=json_proto method=POST [22:38:16]POST find Content-Length [22:38:16]Host: 172.17.55.133:8080 [22:38:16]Content-Length: 678 [22:38:16]Content-Type: application/json [22:38:16] [22:38:16]POST finish read [22:38:16]Found Content-Length = 678 [22:38:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036547", "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" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:38:16]execute_script... [22:38:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036547", "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" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:38:16]POST & json_proto [22:38:16]process_json_proto [22:38:16]json parsed OK: [22:38:16]protocol is kg_v1.0 [22:38:16]action value=close_receipt [22:38:16]process_action close_receipt [22:38:16]cmd_close_receipt [22:38:16]MH_GetDate [22:38:16]Write to MH i2c: F0 00 00 F6 DB C0 [22:38:16]Write i2c OK [22:38:16]MH_I2C_Read... [22:38:16]Read from MH i2c: F0 [22:38:16]MH_I2C_Read... [22:38:16]Read from MH i2c: F0 09 00 [22:38:16]MH_I2C_Read... [22:38:16]Read from MH i2c: F0 09 00 F6 DB 00 E0 77 C2 66 34 48 D8 65 01 [22:38:16]GetLastDocTimeStamp 1724020619 [22:38:16]current date 1724020704 [22:38:16]FM_GetShiftState [22:38:16]SAM_PROTO_GetShiftState [22:38:16]wFMCommunicate request_size=4 [22:38:16]MH_SAM_APDU [22:38:16]CAPDU: 80 13 01 00 [22:38:16]Write to MH i2c: E2 08 00 F7 DB 80 13 01 00 00 00 00 00 4F [22:38:16]Write i2c OK [22:38:16]MH_I2C_Read... [22:38:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:16]Read from MH i2c: E2 [22:38:16]MH_I2C_Read... [22:38:16]Read from MH i2c: E2 0E 00 [22:38:16]MH_I2C_Read... [22:38:16]Read from MH i2c: E2 0E 00 F7 DB 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 8C [22:38:16]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:38:16]wFMCommunicate OK [22:38:16]SAM_PROTO_GetShiftState done [22:38:16]FM_GetShiftState done [22:38:16]opened in 1723940556 [22:38:16]opened+sec_in_day 1724026956 [22:38:16]quantity*price = 40068 [22:38:16]sum+1 = 40069 [22:38:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 552 18.08.2024 22:38 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260994 ФПД: 127318279532487 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T223824&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260994&fm=127318279532487&tin=02508201610067®Number=0000000000091865&sum=40000 [22:38:18]StoreToDocumentArchive [22:38:18]shift 449 fd 260994 [22:38:18]save to /storage/0449/doc_00260994 [22:38:18]save last doc name /storage/0449/doc_00260994 to /storage/kkm_last_doc_name [22:38:18]save OK [22:38:18]Clear old archive folders... [22:38:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:38:18]tlvbuf is 00751B90 [22:38:18]SAM_PROTO_ClearQueue [22:38:18]wFMCommunicate request_size=4 [22:38:18]MH_SAM_APDU [22:38:18]CAPDU: 80 09 00 00 [22:38:18]Write to MH i2c: E2 08 00 04 DC 80 09 00 00 00 00 00 00 52 [22:38:18]Write i2c OK [22:38:18]MH_I2C_Read... [22:38:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:38:18]Read from MH i2c: E2 [22:38:18]MH_I2C_Read... [22:38:18]Read from MH i2c: E2 03 00 [22:38:18]MH_I2C_Read... [22:38:18]Read from MH i2c: E2 03 00 04 DC 00 90 00 54 [22:38:18]RAPDU: 90 00 [22:38:18]wFMCommunicate OK [22:38:18]SAM_PROTO_ClearQueue done [22:38:18]KKMCreateOFDPacket [22:38:18]OFDProtocolAddRootSTLVToBuf [22:38:18]FM_MakeSignedData [22:38:18]FM_MakeSignedData [22:38:18]SAM_PROTO_SignData [22:38:18]wFMCommunicate request_size=4 [22:38:18]MH_SAM_APDU [22:38:18]CAPDU: 80 0D 01 02 [22:38:18]Write to MH i2c: E2 08 00 05 DC 80 0D 01 02 00 00 00 00 5A [22:38:18]Write i2c OK [22:38:18]MH_I2C_Read... [22:38:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:38:18]Read from MH i2c: E2 [22:38:18]MH_I2C_Read... [22:38:18]Read from MH i2c: E2 03 00 [22:38:18]MH_I2C_Read... [22:38:18]Read from MH i2c: E2 03 00 05 DC 00 90 00 55 [22:38:18]RAPDU: 90 00 [22:38:18]wFMCommunicate OK [22:38:18]wFMCommunicate request_size=255 [22:38:18]MH_SAM_APDU [22:38:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 28 02 00 00 F4 03 04 00 E0 77 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 82 FB 03 00 35 04 06 00 73 [22:38:18]Write to MH i2c: E2 02 01 06 DC 80 0D 02 02 FA 00 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 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 28 02 00 00 F4 03 04 00 E0 77 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 82 FB 03 00 35 04 06 00 73 00 00 F4 [22:38:18]Write i2c OK [22:38:18]MH_I2C_Read... [22:38:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:18]Read from MH i2c: E2 [22:38:18]MH_I2C_Read... [22:38:18]Read from MH i2c: E2 03 00 [22:38:18]MH_I2C_Read... [22:38:18]Read from MH i2c: E2 03 00 06 DC 00 90 00 56 [22:38:18]RAPDU: 90 00 [22:38:18]wFMCommunicate OK [22:38:18]wFMCommunicate request_size=10 [22:38:18]MH_SAM_APDU [22:38:18]CAPDU: 80 0D 02 02 05 CB 98 D3 2F C7 [22:38:18]Write to MH i2c: E2 0D 00 07 DC 80 0D 02 02 05 00 CB 98 D3 2F C7 00 00 93 [22:38:18]Write i2c OK [22:38:18]MH_I2C_Read... [22:38:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:18]Read from MH i2c: E2 [22:38:18]MH_I2C_Read... [22:38:18]Read from MH i2c: E2 03 00 [22:38:18]MH_I2C_Read... [22:38:18]Read from MH i2c: E2 03 00 07 DC 00 90 00 57 [22:38:18]RAPDU: 90 00 [22:38:18]wFMCommunicate OK [22:38:18]wFMCommunicate request_size=4 [22:38:18]MH_SAM_APDU [22:38:18]CAPDU: 80 0D 03 02 [22:38:18]Write to MH i2c: E2 08 00 08 DC 80 0D 03 02 00 00 00 00 5F [22:38:18]Write i2c OK [22:38:18]MH_I2C_Read... [22:38:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:38:18]Read from MH i2c: E2 [22:38:18]MH_I2C_Read... [22:38:18]Read from MH i2c: E2 0B 00 [22:38:18]MH_I2C_Read... [22:38:18]Read from MH i2c: E2 0B 00 08 DC 00 EA 27 14 98 C9 CC 59 7A 90 00 85 [22:38:18]RAPDU: EA 27 14 98 C9 CC 59 7A 90 00 [22:38:18]wFMCommunicate OK [22:38:18]SAM_PROTO_SignData done [22:38:18]FM_MakeSignedData done [22:38:18]CreateOFDProtocolMessage [22:38:18]wFMCommunicate request_size=4 [22:38:18]MH_SAM_APDU [22:38:18]CAPDU: 80 11 00 00 [22:38:18]Write to MH i2c: E2 08 00 09 DC 80 11 00 00 00 00 00 00 5F [22:38:18]Write i2c OK [22:38:18]MH_I2C_Read... [22:38:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:18]Read from MH i2c: E2 [22:38:18]MH_I2C_Read... [22:38:18]Read from MH i2c: E2 17 00 [22:38:18]MH_I2C_Read... [22:38:18]Read from MH i2c: E2 17 00 09 DC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 AC [22:38:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:38:18]wFMCommunicate OK [22:38:18]CreateOFDProtocolMessage done [22:38:18]OFDSenderStorePacket 260994 [22:38:18]StoreOFDPacket docnum=260994 [22:38:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 E4 D9 07 01 9D 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 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 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 28 02 00 00 F4 03 04 00 E0 77 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 82 FB 03 00 35 04 06 00 73 CB 98 D3 2F C7 EA 27 14 98 C9 CC 59 7A [22:38:18]CheckFolder [22:38:18]dirname=/storage/ofd_packets [22:38:18]CheckFolder done [22:38:18]ProducePacketName [22:38:18]name=ofd_packets/00260994 [22:38:18]NVStorageSaveData ofd_packets/00260994 [22:38:18]File name is /storage/ofd_packets/00260994 [22:38:18]Write 301 bytes [22:38:18]NVStorageSaveData done [22:38:18]OFDSenderStorePacket done [22:38:18]KKMCreateOFDPacket done [22:38:18]NVStorageSaveData kkm_last_timestamp [22:38:18]File name is /storage/kkm_last_timestamp [22:38:18]Write 4 bytes [22:38:18]NVStorageSaveData done [22:38:18]ExternCall_PrintAddStr [22:38:18]wPrintStart [22:38:18]Write to MH i2c: 01 00 00 0A DC E6 [22:38:18]Write i2c OK [22:38:18]MH_I2C_Read... [22:38:18]Read from MH i2c: 01 [22:38:18]MH_I2C_Read... [22:38:18]Read from MH i2c: 01 07 00 [22:38:18]MH_I2C_Read... [22:38:18]Read from MH i2c: 01 07 00 0A DC 00 00 00 00 00 FF 0F FB [22:38:18]RasterBufferAndPrint [22:38:18]line Счет N : (1)1036547 [22:38:18]line ИНН: 02508201610067 [22:38:18]line Контрольно-Кассовый Чек [22:38:18]line ПРОДАЖА [22:38:18]line ТРК (МРК, ГНК) : 13 [22:38:18]line Товар: 2710124500 [22:38:18]line Аи-95-К-5 [22:38:18]line 5.400 * 74.20 [22:38:18]line = 400.68 [22:38:18]line НДС 12% НСП 1% [22:38:18]line > о реализуемом товаре [22:38:18]line ОКРУГЛЕНИЕ: -0.68 [22:38:18]line ИТОГО: 400.00 [22:38:18]line Внесено: 400.00 [22:38:18]line СДАЧА: 0.00 [22:38:18]line НСП 1% : 3.55 [22:38:18]line НДС 12% : 42.55 [22:38:18]line Наличными: 400.00 [22:38:18]line Безнал.: 0.00 [22:38:18]line Место: АЗС № 94 "Партнер Нефть" [22:38:18]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [22:38:18]line СНО: Общий режим [22:38:18]line Чек 552 18.08.2024 22:38 [22:38:18]line Смена: 449 ФФД: 1.0 [22:38:18]line ЗНМ: 0300000099 [22:38:18]line РНМ: 0000000000091865 [22:38:18]line Версия ККМ: 001 [22:38:18]line ФМ: 0000000000871820 [22:38:18]line ФД: 260994 [22:38:18]line ФПД: 127318279532487 [22:38:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T223824&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260994&fm=127318279532487&tin=02508201610067®Number=0000000000091865&sum=40000 [22:38:18]written 0, free lines is 4095 [22:38:18]OFD Sender: Processing packet 260994 [packets to send 192, broken 191] [22:38:18]ProducePacketName [22:38:18]name=ofd_packets/00260994 [22:38:18]OFD Sender: To server: pG, [22:38:18]CommunicateWithHost lk.salyk.kg:30040 [22:38:18]ConnectInit lk.salyk.kg [22:38:18]Connected sock=10 [22:38: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 30 0F 01 00 00 E4 D9 07 01 9D 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 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 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 28 02 00 00 F4 03 04 00 E0 77 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 82 FB 03 00 35 04 06 00 73 CB 98 D3 2F C7 EA 27 14 98 C9 CC 59 7A [22:38: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 30 4F 00 00 00 A8 78 47 00 95 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 30 10 04 04 00 82 FB 03 00 F4 03 04 00 33 21 C2 66 B6 04 01 00 00 A1 9E 1E 86 07 FB 1E 13 [22:38:18]CommunicateWithHost err = 0 [22:38:18]CheckOFDResponse [22:38:18]1017 (14) - 77093643461234 [22:38:18]1041 (16) - 0000000000871820 [22:38:18]1040 (4) - 260994 [22:38:18]1012 (4) - 18.08.2024 16:28 [22:38:18]1206 (1) - 0 [22:38:18]OFD Sender: Remove packet 260994 [22:38:18]ProducePacketName [22:38:18]name=ofd_packets/00260994 [22:38:18]NVStorageDeleteData [22:38:19]Write to MH i2c: 01 00 00 35 DC 11 [22:38:19]Write i2c OK [22:38:19]MH_I2C_Read... [22:38:19]Read from MH i2c: 01 [22:38:19]MH_I2C_Read... [22:38:19]Read from MH i2c: 01 07 00 [22:38:19]MH_I2C_Read... [22:38:19]Read from MH i2c: 01 07 00 35 DC 00 00 00 00 00 63 0C 87 [22:38:19]RasterBufferAndPrint [22:38:19]line [22:38:19]line [22:38:19]line [22:38:19]line [22:38:19]line [22:38:19]written 0, free lines is 3176 [22:38:19]MH_Cut [22:38:19]Write to MH i2c: D1 01 00 3C DC 01 EA [22:38:19]Write i2c OK [22:38:19]MH_I2C_Read... [22:38:19]Read from MH i2c: D1 [22:38:19]MH_I2C_Read... [22:38:19]Read from MH i2c: D1 01 00 [22:38:19]MH_I2C_Read... [22:38:19]Read from MH i2c: D1 01 00 3C DC 00 E9 [22:38:19]Write to MH i2c: 01 00 00 3D DC 19 [22:38:19]Write i2c OK [22:38:19]MH_I2C_Read... [22:38:19]OFD Sender: No OFD packet to send [22:38:20]*** Cut start [22:38:20]*** Purtial cut [22:38:20]*** Stage 1: CUTSNS_PIN = 1 [22:38:22]Read from MH i2c: 01 [22:38:22]*** Stop cut motor [22:38:22]*** Cut end [22:38:22]MH_I2C_Read... [22:38:22]Read from MH i2c: 01 07 00 [22:38:22]MH_I2C_Read... [22:38:22]Read from MH i2c: 01 07 00 3D DC 00 00 00 00 00 FF 0F 2E [22:38:22]process_action close_receipt done [22:38:22]requested_data is exist [22:38:22]produce_requested_data [22:38:22]requested_item fm.sn is exist - process it [22:38:22]wFMCommunicate request_size=4 [22:38:22]MH_SAM_APDU [22:38:22]CAPDU: 80 11 00 00 [22:38:22]Write to MH i2c: E2 08 00 3E DC 80 11 00 00 00 00 00 00 94 [22:38:22]Write i2c OK [22:38:22]MH_I2C_Read... [22:38:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:22]Read from MH i2c: E2 [22:38:22]MH_I2C_Read... [22:38:22]Read from MH i2c: E2 17 00 [22:38:22]MH_I2C_Read... [22:38:22]Read from MH i2c: E2 17 00 3E DC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E1 [22:38:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:38:22]wFMCommunicate OK [22:38:22]requested_item fd.num is exist - process it [22:38:22]SAM_PROTO_GetFieldsCounters [22:38:22]wFMCommunicate request_size=4 [22:38:22]MH_SAM_APDU [22:38:22]CAPDU: 80 13 00 00 [22:38:22]Write to MH i2c: E2 08 00 3F DC 80 13 00 00 00 00 00 00 97 [22:38:22]Write i2c OK [22:38:22]MH_I2C_Read... [22:38:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:38:22]Read from MH i2c: E2 [22:38:22]MH_I2C_Read... [22:38:22]Read from MH i2c: E2 62 00 [22:38:22]MH_I2C_Read... [22:38:22]Read from MH i2c: E2 62 00 3F DC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 82 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 28 02 00 00 5E 04 04 00 28 02 00 00 57 04 04 00 29 02 00 00 19 04 04 00 00 00 00 00 90 00 76 [22:38: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 82 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 28 02 00 00 5E 04 04 00 28 02 00 00 57 04 04 00 29 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:38:22]wFMCommunicate OK [22:38:22]SAM_PROTO_GetFieldsCounters done [22:38:22]requested_item shift.num is exist - process it [22:38:22]requested_item shift.opened is exist - process it [22:38:22]req_shift_opened [22:38:22]FM_GetShiftState [22:38:22]SAM_PROTO_GetShiftState [22:38:22]wFMCommunicate request_size=4 [22:38:22]MH_SAM_APDU [22:38:22]CAPDU: 80 13 01 00 [22:38:22]Write to MH i2c: E2 08 00 40 DC 80 13 01 00 00 00 00 00 99 [22:38:22]Write i2c OK [22:38:22]MH_I2C_Read... [22:38:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:22]Read from MH i2c: E2 [22:38:22]MH_I2C_Read... [22:38:22]Read from MH i2c: E2 0E 00 [22:38:22]MH_I2C_Read... [22:38:22]Read from MH i2c: E2 0E 00 40 DC 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D6 [22:38:22]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:38:22]wFMCommunicate OK [22:38:22]SAM_PROTO_GetShiftState done [22:38:22]FM_GetShiftState done [22:38:22]req_shift_opened done [22:38:22]requested_item shift.open_date is exist - process it [22:38:22]req_shift_open_date [22:38:22]req_shift_open_date done [22:38:22]produce_requested_data done [22:38:22]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260994,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [22:38:22]process_action_free close_receipt [22:38:22]json_value_free [22:38:22]json_value_free done [22:38:22]process_json_proto returns [22:38:22]Send response to host [22:38:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260994,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [22:38:22]free response buf [22:38:22]execute_script done [22:38:22]execute_script returns [22:38:22]free content buf [22:38:22]Sock 9.Close socket [22:38:22]Sock 9.Thread stoped [22:38:24]OFD Sender: No OFD packet to send [22:38:29]OFD Sender: No OFD packet to send [22:38:34]OFD Sender: No OFD packet to send [22:38:39]OFD Sender: No OFD packet to send [22:38:44]OFD Sender: No OFD packet to send [22:38:49]OFD Sender: No OFD packet to send [22:38:54]OFD Sender: No OFD packet to send [22:38:59]OFD Sender: No OFD packet to send [22:39:04]OFD Sender: No OFD packet to send [22:39:09]OFD Sender: No OFD packet to send [22:39:14]OFD Sender: No OFD packet to send [22:39:19]OFD Sender: No OFD packet to send [22:39:24]OFD Sender: No OFD packet to send [22:39:29]OFD Sender: No OFD packet to send [22:39:34]OFD Sender: No OFD packet to send [22:39:39]OFD Sender: No OFD packet to send [22:39:44]OFD Sender: No OFD packet to send [22:39:49]OFD Sender: No OFD packet to send [22:39:54]OFD Sender: No OFD packet to send [22:39:59]OFD Sender: No OFD packet to send [22:40:04]OFD Sender: No OFD packet to send [22:40:09]OFD Sender: No OFD packet to send [22:40:14]OFD Sender: No OFD packet to send [22:40:19]OFD Sender: No OFD packet to send [22:40:24]OFD Sender: No OFD packet to send [22:40:29]OFD Sender: No OFD packet to send [22:40:34]OFD Sender: No OFD packet to send [22:40:39]OFD Sender: No OFD packet to send [22:40:44]OFD Sender: No OFD packet to send [22:40:49]OFD Sender: No OFD packet to send [22:40:54]OFD Sender: No OFD packet to send [22:40:59]OFD Sender: No OFD packet to send [22:41:04]OFD Sender: No OFD packet to send [22:41:09]OFD Sender: No OFD packet to send [22:41:14]OFD Sender: No OFD packet to send [22:41:19]OFD Sender: No OFD packet to send [22:41:24]OFD Sender: No OFD packet to send [22:41:29]OFD Sender: No OFD packet to send [22:41:34]OFD Sender: No OFD packet to send [22:41:39]OFD Sender: No OFD packet to send [22:41:44]OFD Sender: No OFD packet to send [22:41:49]OFD Sender: No OFD packet to send [22:41:54]OFD Sender: No OFD packet to send [22:41:56]accept exits with 7 [22:41:56]New connection [22:41:56]New thread 3066617188 created [22:41:56]Thread 3066473828 joined [22:41:56]Waiting for new connection... [22:41:56] Sock 7.Parse request [22:41:56]Sock 7.Check first char [22:41:56]Sock 7.First char is OK [22:41:56]request: POST /json_proto HTTP/1.0 [22:41:56]Method: POST [22:41:56]URL: /json_proto [22:41:56]Method is POST - this is cgi request [22:41:56]url: /json_proto [22:41:56]query_string will be loaded in cgi processing [22:41:56]execute_cgi json_proto POST (null) [22:41:56]execute_cgi path=json_proto method=POST [22:41:56]POST find Content-Length [22:41:56]Host: 172.17.55.133:8080 [22:41:56]Content-Length: 683 [22:41:56]Content-Type: application/json [22:41:56] [22:41:56]POST finish read [22:41:56]Found Content-Length = 683 [22:41:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:41:56]execute_script... [22:41: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)1036548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:41:56]POST & json_proto [22:41:56]process_json_proto [22:41:56]json parsed OK: [22:41:56]protocol is kg_v1.0 [22:41:56]action value=close_receipt [22:41:56]process_action close_receipt [22:41:56]cmd_close_receipt [22:41:56]MH_GetDate [22:41:56]Write to MH i2c: F0 00 00 41 DC 0C [22:41:56]Write i2c OK [22:41:56]MH_I2C_Read... [22:41:56]Read from MH i2c: F0 [22:41:56]MH_I2C_Read... [22:41:56]Read from MH i2c: F0 09 00 [22:41:56]MH_I2C_Read... [22:41:56]Read from MH i2c: F0 09 00 41 DC 00 BC 78 C2 66 34 48 D8 65 2A [22:41:56]GetLastDocTimeStamp 1724020704 [22:41:56]current date 1724020924 [22:41:56]FM_GetShiftState [22:41:56]SAM_PROTO_GetShiftState [22:41:56]wFMCommunicate request_size=4 [22:41:56]MH_SAM_APDU [22:41:56]CAPDU: 80 13 01 00 [22:41:56]Write to MH i2c: E2 08 00 42 DC 80 13 01 00 00 00 00 00 9B [22:41:56]Write i2c OK [22:41:56]MH_I2C_Read... [22:41:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:56]Read from MH i2c: E2 [22:41:56]MH_I2C_Read... [22:41:56]Read from MH i2c: E2 0E 00 [22:41:56]MH_I2C_Read... [22:41:56]Read from MH i2c: E2 0E 00 42 DC 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D8 [22:41:56]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:41:56]wFMCommunicate OK [22:41:56]SAM_PROTO_GetShiftState done [22:41:56]FM_GetShiftState done [22:41:56]opened in 1723940556 [22:41:56]opened+sec_in_day 1724026956 [22:41:56]quantity*price = 100005 [22:41:56]sum+1 = 100006 [22:41:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 553 18.08.2024 22:42 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260995 ФПД: 134338740496900 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T224204&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260995&fm=134338740496900&tin=02508201610067®Number=0000000000091865&sum=100000 [22:41:57]StoreToDocumentArchive [22:41:57]shift 449 fd 260995 [22:41:57]save to /storage/0449/doc_00260995 [22:41:57]save last doc name /storage/0449/doc_00260995 to /storage/kkm_last_doc_name [22:41:57]save OK [22:41:57]Clear old archive folders... [22:41:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:41:57]tlvbuf is 006B8F30 [22:41:57]SAM_PROTO_ClearQueue [22:41:57]wFMCommunicate request_size=4 [22:41:57]MH_SAM_APDU [22:41:57]CAPDU: 80 09 00 00 [22:41:57]Write to MH i2c: E2 08 00 4F DC 80 09 00 00 00 00 00 00 9D [22:41:57]Write i2c OK [22:41:57]MH_I2C_Read... [22:41:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:41:57]Read from MH i2c: E2 [22:41:57]MH_I2C_Read... [22:41:57]Read from MH i2c: E2 03 00 [22:41:57]MH_I2C_Read... [22:41:57]Read from MH i2c: E2 03 00 4F DC 00 90 00 9F [22:41:57]RAPDU: 90 00 [22:41:57]wFMCommunicate OK [22:41:57]SAM_PROTO_ClearQueue done [22:41:57]KKMCreateOFDPacket [22:41:57]OFDProtocolAddRootSTLVToBuf [22:41:57]FM_MakeSignedData [22:41:57]FM_MakeSignedData [22:41:57]SAM_PROTO_SignData [22:41:57]wFMCommunicate request_size=4 [22:41:57]MH_SAM_APDU [22:41:57]CAPDU: 80 0D 01 02 [22:41:57]Write to MH i2c: E2 08 00 50 DC 80 0D 01 02 00 00 00 00 A5 [22:41:57]Write i2c OK [22:41:57]MH_I2C_Read... [22:41:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:41:58]Read from MH i2c: E2 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: E2 03 00 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: E2 03 00 50 DC 00 90 00 A0 [22:41:58]RAPDU: 90 00 [22:41:58]wFMCommunicate OK [22:41:58]wFMCommunicate request_size=255 [22:41:58]MH_SAM_APDU [22:41:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 02 00 00 F4 03 04 00 BC 78 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 83 FB 03 00 35 04 06 00 7A [22:41:58]Write to MH i2c: E2 02 01 51 DC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 02 00 00 F4 03 04 00 BC 78 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 83 FB 03 00 35 04 06 00 7A 00 00 F5 [22:41:58]Write i2c OK [22:41:58]MH_I2C_Read... [22:41:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:58]Read from MH i2c: E2 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: E2 03 00 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: E2 03 00 51 DC 00 90 00 A1 [22:41:58]RAPDU: 90 00 [22:41:58]wFMCommunicate OK [22:41:58]wFMCommunicate request_size=10 [22:41:58]MH_SAM_APDU [22:41:58]CAPDU: 80 0D 02 02 05 2E 2C E8 2A 04 [22:41:58]Write to MH i2c: E2 0D 00 52 DC 80 0D 02 02 05 00 2E 2C E8 2A 04 00 00 22 [22:41:58]Write i2c OK [22:41:58]MH_I2C_Read... [22:41:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:58]Read from MH i2c: E2 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: E2 03 00 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: E2 03 00 52 DC 00 90 00 A2 [22:41:58]RAPDU: 90 00 [22:41:58]wFMCommunicate OK [22:41:58]wFMCommunicate request_size=4 [22:41:58]MH_SAM_APDU [22:41:58]CAPDU: 80 0D 03 02 [22:41:58]Write to MH i2c: E2 08 00 53 DC 80 0D 03 02 00 00 00 00 AA [22:41:58]Write i2c OK [22:41:58]MH_I2C_Read... [22:41:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:41:58]Read from MH i2c: E2 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: E2 0B 00 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: E2 0B 00 53 DC 00 89 21 C0 DC 50 5B 5D 9B 90 00 94 [22:41:58]RAPDU: 89 21 C0 DC 50 5B 5D 9B 90 00 [22:41:58]wFMCommunicate OK [22:41:58]SAM_PROTO_SignData done [22:41:58]FM_MakeSignedData done [22:41:58]CreateOFDProtocolMessage [22:41:58]wFMCommunicate request_size=4 [22:41:58]MH_SAM_APDU [22:41:58]CAPDU: 80 11 00 00 [22:41:58]Write to MH i2c: E2 08 00 54 DC 80 11 00 00 00 00 00 00 AA [22:41:58]Write i2c OK [22:41:58]MH_I2C_Read... [22:41:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:58]Read from MH i2c: E2 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: E2 17 00 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: E2 17 00 54 DC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F7 [22:41:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:41:58]wFMCommunicate OK [22:41:58]CreateOFDProtocolMessage done [22:41:58]OFDSenderStorePacket 260995 [22:41:58]StoreOFDPacket docnum=260995 [22:41:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 D1 2C 07 01 BA 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 02 00 00 F4 03 04 00 BC 78 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 83 FB 03 00 35 04 06 00 7A 2E 2C E8 2A 04 89 21 C0 DC 50 5B 5D 9B [22:41:58]CheckFolder [22:41:58]dirname=/storage/ofd_packets [22:41:58]CheckFolder done [22:41:58]ProducePacketName [22:41:58]name=ofd_packets/00260995 [22:41:58]NVStorageSaveData ofd_packets/00260995 [22:41:58]File name is /storage/ofd_packets/00260995 [22:41:58]Write 301 bytes [22:41:58]NVStorageSaveData done [22:41:58]OFDSenderStorePacket done [22:41:58]KKMCreateOFDPacket done [22:41:58]NVStorageSaveData kkm_last_timestamp [22:41:58]File name is /storage/kkm_last_timestamp [22:41:58]Write 4 bytes [22:41:58]NVStorageSaveData done [22:41:58]ExternCall_PrintAddStr [22:41:58]wPrintStart [22:41:58]Write to MH i2c: 01 00 00 55 DC 31 [22:41:58]Write i2c OK [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: 01 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: 01 07 00 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: 01 07 00 55 DC 00 00 00 00 00 FF 0F 46 [22:41:58]RasterBufferAndPrint [22:41:58]line Счет N : (1)1036548 [22:41:58]line ИНН: 02508201610067 [22:41:58]line Контрольно-Кассовый Чек [22:41:58]line ПРОДАЖА [22:41:58]line ТРК (МРК, ГНК) : 32 [22:41:58]line Товар: 2710124130 [22:41:58]line Аи-92-К-5 [22:41:58]line 14.750 * 67.80 [22:41:58]line = 1000.05 [22:41:58]line НДС 12% НСП 1% [22:41:58]line > о реализуемом товаре [22:41:58]line ОКРУГЛЕНИЕ: -0.05 [22:41:58]line ИТОГО: 1000.00 [22:41:58]line Внесено: 1000.00 [22:41:58]line СДАЧА: 0.00 [22:41:58]line НСП 1% : 8.85 [22:41:58]line НДС 12% : 106.20 [22:41:58]line Наличными: 1000.00 [22:41:58]line Безнал.: 0.00 [22:41:58]line Место: АЗС № 94 "Партнер Нефть" [22:41:58]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [22:41:58]line СНО: Общий режим [22:41:58]line Чек 553 18.08.2024 22:42 [22:41:58]line Смена: 449 ФФД: 1.0 [22:41:58]line ЗНМ: 0300000099 [22:41:58]line РНМ: 0000000000091865 [22:41:58]line Версия ККМ: 001 [22:41:58]line ФМ: 0000000000871820 [22:41:58]line ФД: 260995 [22:41:58]line ФПД: 134338740496900 [22:41:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T224204&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260995&fm=134338740496900&tin=02508201610067®Number=0000000000091865&sum=100000 [22:41:58]written 0, free lines is 4095 [22:41:58]OFD Sender: Processing packet 260995 [packets to send 192, broken 191] [22:41:58]ProducePacketName [22:41:58]name=ofd_packets/00260995 [22:41:58]OFD Sender: To server: pG, [22:41:58]CommunicateWithHost lk.salyk.kg:30040 [22:41:58]ConnectInit lk.salyk.kg [22:41:58]Connected sock=10 [22:41: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 30 0F 01 00 00 D1 2C 07 01 BA 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 02 00 00 F4 03 04 00 BC 78 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 83 FB 03 00 35 04 06 00 7A 2E 2C E8 2A 04 89 21 C0 DC 50 5B 5D 9B [22:41: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 30 4F 00 00 00 8C 96 47 00 D4 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 30 10 04 04 00 83 FB 03 00 F4 03 04 00 0F 22 C2 66 B6 04 01 00 00 D0 A2 BE 07 34 6B A2 2F [22:41:58]CommunicateWithHost err = 0 [22:41:58]CheckOFDResponse [22:41:58]1017 (14) - 77093643461234 [22:41:58]1041 (16) - 0000000000871820 [22:41:58]1040 (4) - 260995 [22:41:58]1012 (4) - 18.08.2024 16:32 [22:41:58]1206 (1) - 0 [22:41:58]OFD Sender: Remove packet 260995 [22:41:58]ProducePacketName [22:41:58]name=ofd_packets/00260995 [22:41:58]NVStorageDeleteData [22:41:58]Write to MH i2c: 01 00 00 80 DC 5C [22:41:58]Write i2c OK [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: 01 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: 01 07 00 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: 01 07 00 80 DC 00 00 00 00 00 60 0C CF [22:41:58]RasterBufferAndPrint [22:41:58]line [22:41:58]line [22:41:58]line [22:41:58]line [22:41:58]line [22:41:58]written 0, free lines is 3172 [22:41:58]MH_Cut [22:41:58]Write to MH i2c: D1 01 00 87 DC 01 35 [22:41:58]Write i2c OK [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: D1 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: D1 01 00 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: D1 01 00 87 DC 00 34 [22:41:58]Write to MH i2c: 01 00 00 88 DC 64 [22:41:58]Write i2c OK [22:41:58]MH_I2C_Read... [22:41:59]OFD Sender: No OFD packet to send [22:42:00]*** Cut start [22:42:00]*** Purtial cut [22:42:00]*** Stage 1: CUTSNS_PIN = 1 [22:42:02]Read from MH i2c: 01 [22:42:02]MH_I2C_Read... [22:42:02]*** Stop cut motor [22:42:02]*** Cut end [22:42:02]Read from MH i2c: 01 07 00 [22:42:02]MH_I2C_Read... [22:42:02]Read from MH i2c: 01 07 00 88 DC 00 00 00 00 00 FF 0F 79 [22:42:02]process_action close_receipt done [22:42:02]requested_data is exist [22:42:02]produce_requested_data [22:42:02]requested_item fm.sn is exist - process it [22:42:02]wFMCommunicate request_size=4 [22:42:02]MH_SAM_APDU [22:42:02]CAPDU: 80 11 00 00 [22:42:02]Write to MH i2c: E2 08 00 89 DC 80 11 00 00 00 00 00 00 DF [22:42:02]Write i2c OK [22:42:02]MH_I2C_Read... [22:42:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:02]Read from MH i2c: E2 [22:42:02]MH_I2C_Read... [22:42:02]Read from MH i2c: E2 17 00 [22:42:02]MH_I2C_Read... [22:42:02]Read from MH i2c: E2 17 00 89 DC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 2C [22:42:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:42:02]wFMCommunicate OK [22:42:02]requested_item fd.num is exist - process it [22:42:02]SAM_PROTO_GetFieldsCounters [22:42:02]wFMCommunicate request_size=4 [22:42:02]MH_SAM_APDU [22:42:02]CAPDU: 80 13 00 00 [22:42:02]Write to MH i2c: E2 08 00 8A DC 80 13 00 00 00 00 00 00 E2 [22:42:02]Write i2c OK [22:42:02]MH_I2C_Read... [22:42:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:42:02]Read from MH i2c: E2 [22:42:02]MH_I2C_Read... [22:42:02]Read from MH i2c: E2 62 00 [22:42:02]MH_I2C_Read... [22:42:02]Read from MH i2c: E2 62 00 8A DC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 83 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 29 02 00 00 5E 04 04 00 29 02 00 00 57 04 04 00 2A 02 00 00 19 04 04 00 00 00 00 00 90 00 C5 [22:42: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 83 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 29 02 00 00 5E 04 04 00 29 02 00 00 57 04 04 00 2A 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:42:02]wFMCommunicate OK [22:42:02]SAM_PROTO_GetFieldsCounters done [22:42:02]requested_item shift.num is exist - process it [22:42:02]requested_item shift.opened is exist - process it [22:42:02]req_shift_opened [22:42:02]FM_GetShiftState [22:42:02]SAM_PROTO_GetShiftState [22:42:02]wFMCommunicate request_size=4 [22:42:02]MH_SAM_APDU [22:42:02]CAPDU: 80 13 01 00 [22:42:02]Write to MH i2c: E2 08 00 8B DC 80 13 01 00 00 00 00 00 E4 [22:42:02]Write i2c OK [22:42:02]MH_I2C_Read... [22:42:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:02]Read from MH i2c: E2 [22:42:02]MH_I2C_Read... [22:42:02]Read from MH i2c: E2 0E 00 [22:42:02]MH_I2C_Read... [22:42:02]Read from MH i2c: E2 0E 00 8B DC 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 21 [22:42:02]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:42:02]wFMCommunicate OK [22:42:02]SAM_PROTO_GetShiftState done [22:42:02]FM_GetShiftState done [22:42:02]req_shift_opened done [22:42:02]requested_item shift.open_date is exist - process it [22:42:02]req_shift_open_date [22:42:02]req_shift_open_date done [22:42:02]produce_requested_data done [22:42:02]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260995,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [22:42:02]process_action_free close_receipt [22:42:02]json_value_free [22:42:02]json_value_free done [22:42:02]process_json_proto returns [22:42:02]Send response to host [22:42:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260995,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [22:42:02]free response buf [22:42:02]execute_script done [22:42:02]execute_script returns [22:42:02]free content buf [22:42:02]Sock 7.Close socket [22:42:02]Sock 7.Thread stoped [22:42:04]OFD Sender: No OFD packet to send [22:42:09]OFD Sender: No OFD packet to send [22:42:14]OFD Sender: No OFD packet to send [22:42:19]OFD Sender: No OFD packet to send [22:42:24]OFD Sender: No OFD packet to send [22:42:29]OFD Sender: No OFD packet to send [22:42:34]OFD Sender: No OFD packet to send [22:42:39]OFD Sender: No OFD packet to send [22:42:44]OFD Sender: No OFD packet to send [22:42:49]OFD Sender: No OFD packet to send [22:42:54]OFD Sender: No OFD packet to send [22:42:59]OFD Sender: No OFD packet to send [22:43:01]accept exits with 9 [22:43:01]New connection [22:43:01]New thread 3066473828 created [22:43:01]Thread 3066617188 joined [22:43:01]Waiting for new connection... [22:43:01] Sock 9.Parse request [22:43:01]Sock 9.Check first char [22:43:01]Sock 9.First char is OK [22:43:01]request: POST /json_proto HTTP/1.0 [22:43:01]Method: POST [22:43:01]URL: /json_proto [22:43:01]Method is POST - this is cgi request [22:43:01]url: /json_proto [22:43:01]query_string will be loaded in cgi processing [22:43:01]execute_cgi json_proto POST (null) [22:43:01]execute_cgi path=json_proto method=POST [22:43:01]POST find Content-Length [22:43:01]Host: 172.17.55.133:8080 [22:43:01]Content-Length: 680 [22:43:01]Content-Type: application/json [22:43:01] [22:43:01]POST finish read [22:43:01]Found Content-Length = 680 [22:43:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036550", "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" : 74.20, "quantity" : 10.120, "sum" : 750.90, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:43:01]execute_script... [22:43: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)1036550", "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" : 74.20, "quantity" : 10.120, "sum" : 750.90, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:43:01]POST & json_proto [22:43:01]process_json_proto [22:43:01]json parsed OK: [22:43:01]protocol is kg_v1.0 [22:43:01]action value=close_receipt [22:43:01]process_action close_receipt [22:43:01]cmd_close_receipt [22:43:01]MH_GetDate [22:43:01]Write to MH i2c: F0 00 00 8C DC 57 [22:43:01]Write i2c OK [22:43:01]MH_I2C_Read... [22:43:01]Read from MH i2c: F0 [22:43:01]MH_I2C_Read... [22:43:01]Read from MH i2c: F0 09 00 [22:43:01]MH_I2C_Read... [22:43:01]Read from MH i2c: F0 09 00 8C DC 00 FC 78 C2 66 34 48 D8 65 B5 [22:43:01]GetLastDocTimeStamp 1724020924 [22:43:01]current date 1724020988 [22:43:01]FM_GetShiftState [22:43:01]SAM_PROTO_GetShiftState [22:43:01]wFMCommunicate request_size=4 [22:43:01]MH_SAM_APDU [22:43:01]CAPDU: 80 13 01 00 [22:43:01]Write to MH i2c: E2 08 00 8D DC 80 13 01 00 00 00 00 00 E6 [22:43:01]Write i2c OK [22:43:01]MH_I2C_Read... [22:43:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:43:01]Read from MH i2c: E2 [22:43:01]MH_I2C_Read... [22:43:01]Read from MH i2c: E2 0E 00 [22:43:01]MH_I2C_Read... [22:43:01]Read from MH i2c: E2 0E 00 8D DC 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 23 [22:43:01]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:43:01]wFMCommunicate OK [22:43:01]SAM_PROTO_GetShiftState done [22:43:01]FM_GetShiftState done [22:43:01]opened in 1723940556 [22:43:01]opened+sec_in_day 1724026956 [22:43:01]quantity*price = 75090 [22:43:01]sum+1 = 75091 [22:43:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.90 ИТОГО: 750.00 Внесено: 2000.00 СДАЧА: 1250.00 НСП 1% : 6.64 НДС 12% : 79.74 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 554 18.08.2024 22:43 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260996 ФПД: 184763773725543 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T224308&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260996&fm=184763773725543&tin=02508201610067®Number=0000000000091865&sum=75000 [22:43:02]StoreToDocumentArchive [22:43:02]shift 449 fd 260996 [22:43:02]save to /storage/0449/doc_00260996 [22:43:02]save last doc name /storage/0449/doc_00260996 to /storage/kkm_last_doc_name [22:43:02]save OK [22:43:02]Clear old archive folders... [22:43:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:43:02]tlvbuf is 0036EBB0 [22:43:02]SAM_PROTO_ClearQueue [22:43:02]wFMCommunicate request_size=4 [22:43:02]MH_SAM_APDU [22:43:02]CAPDU: 80 09 00 00 [22:43:02]Write to MH i2c: E2 08 00 9A DC 80 09 00 00 00 00 00 00 E8 [22:43:02]Write i2c OK [22:43:02]MH_I2C_Read... [22:43:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:43:02]Read from MH i2c: E2 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: E2 03 00 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: E2 03 00 9A DC 00 90 00 EA [22:43:02]RAPDU: 90 00 [22:43:02]wFMCommunicate OK [22:43:02]SAM_PROTO_ClearQueue done [22:43:02]KKMCreateOFDPacket [22:43:02]OFDProtocolAddRootSTLVToBuf [22:43:02]FM_MakeSignedData [22:43:02]FM_MakeSignedData [22:43:02]SAM_PROTO_SignData [22:43:02]wFMCommunicate request_size=4 [22:43:02]MH_SAM_APDU [22:43:02]CAPDU: 80 0D 01 02 [22:43:02]Write to MH i2c: E2 08 00 9B DC 80 0D 01 02 00 00 00 00 F0 [22:43:02]Write i2c OK [22:43:02]MH_I2C_Read... [22:43:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:43:02]Read from MH i2c: E2 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: E2 03 00 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: E2 03 00 9B DC 00 90 00 EB [22:43:02]RAPDU: 90 00 [22:43:02]wFMCommunicate OK [22:43:02]wFMCommunicate request_size=255 [22:43:02]MH_SAM_APDU [22:43: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 88 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 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 26 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 2A 02 00 00 F4 03 04 00 FC 78 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 84 FB 03 00 35 04 06 00 A8 [22:43:02]Write to MH i2c: E2 02 01 9C DC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 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 26 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 2A 02 00 00 F4 03 04 00 FC 78 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 84 FB 03 00 35 04 06 00 A8 00 00 08 [22:43:02]Write i2c OK [22:43:02]MH_I2C_Read... [22:43:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:43:02]Read from MH i2c: E2 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: E2 03 00 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: E2 03 00 9C DC 00 90 00 EC [22:43:02]RAPDU: 90 00 [22:43:02]wFMCommunicate OK [22:43:02]wFMCommunicate request_size=10 [22:43:02]MH_SAM_APDU [22:43:02]CAPDU: 80 0D 02 02 05 0A AB 19 AB 67 [22:43:02]Write to MH i2c: E2 0D 00 9D DC 80 0D 02 02 05 00 0A AB 19 AB 67 00 00 DD [22:43:02]Write i2c OK [22:43:02]MH_I2C_Read... [22:43:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:43:02]Read from MH i2c: E2 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: E2 03 00 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: E2 03 00 9D DC 00 90 00 ED [22:43:02]RAPDU: 90 00 [22:43:02]wFMCommunicate OK [22:43:02]wFMCommunicate request_size=4 [22:43:02]MH_SAM_APDU [22:43:02]CAPDU: 80 0D 03 02 [22:43:02]Write to MH i2c: E2 08 00 9E DC 80 0D 03 02 00 00 00 00 F5 [22:43:02]Write i2c OK [22:43:02]MH_I2C_Read... [22:43:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:43:02]Read from MH i2c: E2 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: E2 0B 00 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: E2 0B 00 9E DC 00 77 ED 3D A3 D9 2A 9E D4 90 00 AF [22:43:02]RAPDU: 77 ED 3D A3 D9 2A 9E D4 90 00 [22:43:02]wFMCommunicate OK [22:43:02]SAM_PROTO_SignData done [22:43:02]FM_MakeSignedData done [22:43:02]CreateOFDProtocolMessage [22:43:02]wFMCommunicate request_size=4 [22:43:02]MH_SAM_APDU [22:43:02]CAPDU: 80 11 00 00 [22:43:02]Write to MH i2c: E2 08 00 9F DC 80 11 00 00 00 00 00 00 F5 [22:43:02]Write i2c OK [22:43:02]MH_I2C_Read... [22:43:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:43:02]Read from MH i2c: E2 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: E2 17 00 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: E2 17 00 9F DC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 42 [22:43:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:43:02]wFMCommunicate OK [22:43:02]CreateOFDProtocolMessage done [22:43:02]OFDSenderStorePacket 260996 [22:43:02]StoreOFDPacket docnum=260996 [22:43:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 02 17 07 01 3C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 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 26 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 2A 02 00 00 F4 03 04 00 FC 78 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 84 FB 03 00 35 04 06 00 A8 0A AB 19 AB 67 77 ED 3D A3 D9 2A 9E D4 [22:43:02]CheckFolder [22:43:02]dirname=/storage/ofd_packets [22:43:02]CheckFolder done [22:43:02]ProducePacketName [22:43:02]name=ofd_packets/00260996 [22:43:02]NVStorageSaveData ofd_packets/00260996 [22:43:02]File name is /storage/ofd_packets/00260996 [22:43:02]Write 301 bytes [22:43:02]NVStorageSaveData done [22:43:02]OFDSenderStorePacket done [22:43:02]KKMCreateOFDPacket done [22:43:02]NVStorageSaveData kkm_last_timestamp [22:43:02]File name is /storage/kkm_last_timestamp [22:43:02]Write 4 bytes [22:43:02]NVStorageSaveData done [22:43:02]ExternCall_PrintAddStr [22:43:02]wPrintStart [22:43:02]Write to MH i2c: 01 00 00 A0 DC 7C [22:43:02]Write i2c OK [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: 01 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: 01 07 00 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: 01 07 00 A0 DC 00 00 00 00 00 FF 0F 91 [22:43:02]RasterBufferAndPrint [22:43:02]line Счет N : (1)1036550 [22:43:02]line ИНН: 02508201610067 [22:43:02]line Контрольно-Кассовый Чек [22:43:02]line ПРОДАЖА [22:43:02]line ТРК (МРК, ГНК) : 23 [22:43:02]line Товар: 2710124500 [22:43:02]line Аи-95-К-5 [22:43:02]line 10.120 * 74.20 [22:43:02]line = 750.90 [22:43:02]line НДС 12% НСП 1% [22:43:02]line > о реализуемом товаре [22:43:02]line ОКРУГЛЕНИЕ: -0.90 [22:43:02]line ИТОГО: 750.00 [22:43:02]line Внесено: 2000.00 [22:43:02]line СДАЧА: 1250.00 [22:43:02]line НСП 1% : 6.64 [22:43:02]line НДС 12% : 79.74 [22:43:02]line Наличными: 750.00 [22:43:02]line Безнал.: 0.00 [22:43:02]line Место: АЗС № 94 "Партнер Нефть" [22:43:02]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [22:43:02]line СНО: Общий режим [22:43:02]line Чек 554 18.08.2024 22:43 [22:43:02]line Смена: 449 ФФД: 1.0 [22:43:02]line ЗНМ: 0300000099 [22:43:02]line РНМ: 0000000000091865 [22:43:02]line Версия ККМ: 001 [22:43:02]line ФМ: 0000000000871820 [22:43:02]line ФД: 260996 [22:43:02]line ФПД: 184763773725543 [22:43:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T224308&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260996&fm=184763773725543&tin=02508201610067®Number=0000000000091865&sum=75000 [22:43:03]OFD Sender: Processing packet 260996 [packets to send 192, broken 191] [22:43:03]ProducePacketName [22:43:03]name=ofd_packets/00260996 [22:43:03]OFD Sender: To server: pG, [22:43:03]CommunicateWithHost lk.salyk.kg:30040 [22:43:03]ConnectInit lk.salyk.kg [22:43:03]written 0, free lines is 4095 [22:43:03]Connected sock=10 [22:43: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 30 0F 01 00 00 02 17 07 01 3C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 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 26 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 2A 02 00 00 F4 03 04 00 FC 78 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 84 FB 03 00 35 04 06 00 A8 0A AB 19 AB 67 77 ED 3D A3 D9 2A 9E D4 [22:43: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 30 4F 00 00 00 E6 E4 47 00 C8 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 30 10 04 04 00 84 FB 03 00 F4 03 04 00 50 22 C2 66 B6 04 01 00 00 BF 61 D2 C3 43 CC 87 E6 [22:43:03]CommunicateWithHost err = 0 [22:43:03]CheckOFDResponse [22:43:03]1017 (14) - 77093643461234 [22:43:03]1041 (16) - 0000000000871820 [22:43:03]1040 (4) - 260996 [22:43:03]1012 (4) - 18.08.2024 16:33 [22:43:03]1206 (1) - 0 [22:43:03]OFD Sender: Remove packet 260996 [22:43:03]ProducePacketName [22:43:03]name=ofd_packets/00260996 [22:43:03]NVStorageDeleteData [22:43:03]Write to MH i2c: 01 00 00 CB DC A7 [22:43:03]Write i2c OK [22:43:03]MH_I2C_Read... [22:43:03]Read from MH i2c: 01 [22:43:03]MH_I2C_Read... [22:43:03]Read from MH i2c: 01 07 00 [22:43:03]MH_I2C_Read... [22:43:03]Read from MH i2c: 01 07 00 CB DC 00 00 00 00 00 51 0C 0B [22:43:03]RasterBufferAndPrint [22:43:03]line [22:43:03]line [22:43:03]line [22:43:03]line [22:43:03]line [22:43:03]written 0, free lines is 3157 [22:43:03]MH_Cut [22:43:03]Write to MH i2c: D1 01 00 D2 DC 01 80 [22:43:03]Write i2c OK [22:43:03]MH_I2C_Read... [22:43:03]Read from MH i2c: D1 [22:43:03]MH_I2C_Read... [22:43:03]Read from MH i2c: D1 01 00 [22:43:03]MH_I2C_Read... [22:43:03]Read from MH i2c: D1 01 00 D2 DC 00 7F [22:43:03]Write to MH i2c: 01 00 00 D3 DC AF [22:43:03]Write i2c OK [22:43:03]MH_I2C_Read... [22:43:04]OFD Sender: No OFD packet to send [22:43:04]*** Cut start [22:43:04]*** Purtial cut [22:43:04]*** Stage 1: CUTSNS_PIN = 1 [22:43:06]Read from MH i2c: 01 [22:43:06]MH_I2C_Read... [22:43:07]*** Stop cut motor [22:43:07]*** Cut end [22:43:07]Read from MH i2c: 01 07 00 [22:43:07]MH_I2C_Read... [22:43:07]Read from MH i2c: 01 07 00 D3 DC 00 00 00 00 00 FF 0F C4 [22:43:07]process_action close_receipt done [22:43:07]requested_data is exist [22:43:07]produce_requested_data [22:43:07]requested_item fm.sn is exist - process it [22:43:07]wFMCommunicate request_size=4 [22:43:07]MH_SAM_APDU [22:43:07]CAPDU: 80 11 00 00 [22:43:07]Write to MH i2c: E2 08 00 D4 DC 80 11 00 00 00 00 00 00 2A [22:43:07]Write i2c OK [22:43:07]MH_I2C_Read... [22:43:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:43:07]Read from MH i2c: E2 [22:43:07]MH_I2C_Read... [22:43:07]Read from MH i2c: E2 17 00 [22:43:07]MH_I2C_Read... [22:43:07]Read from MH i2c: E2 17 00 D4 DC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 77 [22:43:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:43:07]wFMCommunicate OK [22:43:07]requested_item fd.num is exist - process it [22:43:07]SAM_PROTO_GetFieldsCounters [22:43:07]wFMCommunicate request_size=4 [22:43:07]MH_SAM_APDU [22:43:07]CAPDU: 80 13 00 00 [22:43:07]Write to MH i2c: E2 08 00 D5 DC 80 13 00 00 00 00 00 00 2D [22:43:07]Write i2c OK [22:43:07]MH_I2C_Read... [22:43:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:43:07]Read from MH i2c: E2 [22:43:07]MH_I2C_Read... [22:43:07]Read from MH i2c: E2 62 00 [22:43:07]MH_I2C_Read... [22:43:07]Read from MH i2c: E2 62 00 D5 DC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 84 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 2A 02 00 00 5E 04 04 00 2A 02 00 00 57 04 04 00 2B 02 00 00 19 04 04 00 00 00 00 00 90 00 14 [22:43: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 84 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 2A 02 00 00 5E 04 04 00 2A 02 00 00 57 04 04 00 2B 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:43:07]wFMCommunicate OK [22:43:07]SAM_PROTO_GetFieldsCounters done [22:43:07]requested_item shift.num is exist - process it [22:43:07]requested_item shift.opened is exist - process it [22:43:07]req_shift_opened [22:43:07]FM_GetShiftState [22:43:07]SAM_PROTO_GetShiftState [22:43:07]wFMCommunicate request_size=4 [22:43:07]MH_SAM_APDU [22:43:07]CAPDU: 80 13 01 00 [22:43:07]Write to MH i2c: E2 08 00 D6 DC 80 13 01 00 00 00 00 00 2F [22:43:07]Write i2c OK [22:43:07]MH_I2C_Read... [22:43:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:43:07]Read from MH i2c: E2 [22:43:07]MH_I2C_Read... [22:43:07]Read from MH i2c: E2 0E 00 [22:43:07]MH_I2C_Read... [22:43:07]Read from MH i2c: E2 0E 00 D6 DC 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 6C [22:43:07]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:43:07]wFMCommunicate OK [22:43:07]SAM_PROTO_GetShiftState done [22:43:07]FM_GetShiftState done [22:43:07]req_shift_opened done [22:43:07]requested_item shift.open_date is exist - process it [22:43:07]req_shift_open_date [22:43:07]req_shift_open_date done [22:43:07]produce_requested_data done [22:43:07]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260996,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [22:43:07]process_action_free close_receipt [22:43:07]json_value_free [22:43:07]json_value_free done [22:43:07]process_json_proto returns [22:43:07]Send response to host [22:43:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260996,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [22:43:07]free response buf [22:43:07]execute_script done [22:43:07]execute_script returns [22:43:07]free content buf [22:43:07]Sock 9.Close socket [22:43:07]Sock 9.Thread stoped [22:43:09]OFD Sender: No OFD packet to send [22:43:14]OFD Sender: No OFD packet to send [22:43:19]OFD Sender: No OFD packet to send [22:43:24]OFD Sender: No OFD packet to send [22:43:29]OFD Sender: No OFD packet to send [22:43:34]OFD Sender: No OFD packet to send [22:43:39]OFD Sender: No OFD packet to send [22:43:44]OFD Sender: No OFD packet to send [22:43:49]OFD Sender: No OFD packet to send [22:43:54]OFD Sender: No OFD packet to send [22:43:59]OFD Sender: No OFD packet to send [22:44:04]OFD Sender: No OFD packet to send [22:44:09]OFD Sender: No OFD packet to send [22:44:14]OFD Sender: No OFD packet to send [22:44:19]OFD Sender: No OFD packet to send [22:44:23]accept exits with 7 [22:44:23]New connection [22:44:23]New thread 3066617188 created [22:44:23]Thread 3066473828 joined [22:44:23]Waiting for new connection... [22:44:23] Sock 7.Parse request [22:44:23]Sock 7.Check first char [22:44:23]Sock 7.First char is OK [22:44:23]request: POST /json_proto HTTP/1.0 [22:44:23]Method: POST [22:44:23]URL: /json_proto [22:44:23]Method is POST - this is cgi request [22:44:23]url: /json_proto [22:44:23]query_string will be loaded in cgi processing [22:44:23]execute_cgi json_proto POST (null) [22:44:23]execute_cgi path=json_proto method=POST [22:44:23]POST find Content-Length [22:44:23]Host: 172.17.55.133:8080 [22:44:23]Content-Length: 678 [22:44:23]Content-Type: application/json [22:44:23] [22:44:23]POST finish read [22:44:23]Found Content-Length = 678 [22:44:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:23]execute_script... [22:44: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)1036552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:23]POST & json_proto [22:44:23]process_json_proto [22:44:23]json parsed OK: [22:44:23]protocol is kg_v1.0 [22:44:23]action value=close_receipt [22:44:23]process_action close_receipt [22:44:23]cmd_close_receipt [22:44:23]MH_GetDate [22:44:23]Write to MH i2c: F0 00 00 D7 DC A2 [22:44:23]Write i2c OK [22:44:23]MH_I2C_Read... [22:44:23]Read from MH i2c: F0 [22:44:23]MH_I2C_Read... [22:44:23]Read from MH i2c: F0 09 00 [22:44:23]MH_I2C_Read... [22:44:23]Read from MH i2c: F0 09 00 D7 DC 00 4E 79 C2 66 34 48 D8 65 53 [22:44:23]GetLastDocTimeStamp 1724020988 [22:44:23]current date 1724021070 [22:44:23]FM_GetShiftState [22:44:23]SAM_PROTO_GetShiftState [22:44:23]wFMCommunicate request_size=4 [22:44:23]MH_SAM_APDU [22:44:23]CAPDU: 80 13 01 00 [22:44:23]Write to MH i2c: E2 08 00 D8 DC 80 13 01 00 00 00 00 00 31 [22:44:23]Write i2c OK [22:44:23]MH_I2C_Read... [22:44:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:23]Read from MH i2c: E2 [22:44:23]MH_I2C_Read... [22:44:23]Read from MH i2c: E2 0E 00 [22:44:23]MH_I2C_Read... [22:44:23]Read from MH i2c: E2 0E 00 D8 DC 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 6E [22:44:23]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:44:23]wFMCommunicate OK [22:44:23]SAM_PROTO_GetShiftState done [22:44:23]FM_GetShiftState done [22:44:23]opened in 1723940556 [22:44:23]opened+sec_in_day 1724026956 [22:44:23]quantity*price = 30035 [22:44:23]sum+1 = 30036 [22:44:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 555 18.08.2024 22:44 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 260997 ФПД: 254528843614162 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T224430&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260997&fm=254528843614162&tin=02508201610067®Number=0000000000091865&sum=30000 [22:44:24]StoreToDocumentArchive [22:44:24]shift 449 fd 260997 [22:44:24]save to /storage/0449/doc_00260997 [22:44:24]save last doc name /storage/0449/doc_00260997 to /storage/kkm_last_doc_name [22:44:24]save OK [22:44:24]Clear old archive folders... [22:44:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:44:24]tlvbuf is 00540910 [22:44:24]SAM_PROTO_ClearQueue [22:44:24]wFMCommunicate request_size=4 [22:44:24]MH_SAM_APDU [22:44:24]CAPDU: 80 09 00 00 [22:44:24]Write to MH i2c: E2 08 00 E5 DC 80 09 00 00 00 00 00 00 33 [22:44:24]Write i2c OK [22:44:24]MH_I2C_Read... [22:44:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:44:24]Read from MH i2c: E2 [22:44:24]MH_I2C_Read... [22:44:24]Read from MH i2c: E2 03 00 [22:44:24]MH_I2C_Read... [22:44:24]Read from MH i2c: E2 03 00 E5 DC 00 90 00 35 [22:44:24]RAPDU: 90 00 [22:44:24]wFMCommunicate OK [22:44:24]SAM_PROTO_ClearQueue done [22:44:24]KKMCreateOFDPacket [22:44:24]OFDProtocolAddRootSTLVToBuf [22:44:24]FM_MakeSignedData [22:44:24]FM_MakeSignedData [22:44:24]SAM_PROTO_SignData [22:44:24]wFMCommunicate request_size=4 [22:44:24]MH_SAM_APDU [22:44:24]CAPDU: 80 0D 01 02 [22:44:24]Write to MH i2c: E2 08 00 E6 DC 80 0D 01 02 00 00 00 00 3B [22:44:24]Write i2c OK [22:44:24]MH_I2C_Read... [22:44:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:44:24]Read from MH i2c: E2 [22:44:24]MH_I2C_Read... [22:44:24]Read from MH i2c: E2 03 00 [22:44:24]MH_I2C_Read... [22:44:24]Read from MH i2c: E2 03 00 E6 DC 00 90 00 36 [22:44:24]RAPDU: 90 00 [22:44:24]wFMCommunicate OK [22:44:24]wFMCommunicate request_size=255 [22:44:24]MH_SAM_APDU [22:44:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 02 00 00 F4 03 04 00 4E 79 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 85 FB 03 00 35 04 06 00 E7 [22:44:24]Write to MH i2c: E2 02 01 E7 DC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 02 00 00 F4 03 04 00 4E 79 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 85 FB 03 00 35 04 06 00 E7 00 00 1F [22:44:24]Write i2c OK [22:44:24]MH_I2C_Read... [22:44:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:25]Read from MH i2c: E2 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: E2 03 00 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: E2 03 00 E7 DC 00 90 00 37 [22:44:25]RAPDU: 90 00 [22:44:25]wFMCommunicate OK [22:44:25]wFMCommunicate request_size=10 [22:44:25]MH_SAM_APDU [22:44:25]CAPDU: 80 0D 02 02 05 7E 1D 4F 07 D2 [22:44:25]Write to MH i2c: E2 0D 00 E8 DC 80 0D 02 02 05 00 7E 1D 4F 07 D2 00 00 0B [22:44:25]Write i2c OK [22:44:25]MH_I2C_Read... [22:44:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:25]Read from MH i2c: E2 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: E2 03 00 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: E2 03 00 E8 DC 00 90 00 38 [22:44:25]RAPDU: 90 00 [22:44:25]wFMCommunicate OK [22:44:25]wFMCommunicate request_size=4 [22:44:25]MH_SAM_APDU [22:44:25]CAPDU: 80 0D 03 02 [22:44:25]Write to MH i2c: E2 08 00 E9 DC 80 0D 03 02 00 00 00 00 40 [22:44:25]Write i2c OK [22:44:25]MH_I2C_Read... [22:44:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:44:25]Read from MH i2c: E2 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: E2 0B 00 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: E2 0B 00 E9 DC 00 76 22 AD 2F C4 DC C5 5C 90 00 76 [22:44:25]RAPDU: 76 22 AD 2F C4 DC C5 5C 90 00 [22:44:25]wFMCommunicate OK [22:44:25]SAM_PROTO_SignData done [22:44:25]FM_MakeSignedData done [22:44:25]CreateOFDProtocolMessage [22:44:25]wFMCommunicate request_size=4 [22:44:25]MH_SAM_APDU [22:44:25]CAPDU: 80 11 00 00 [22:44:25]Write to MH i2c: E2 08 00 EA DC 80 11 00 00 00 00 00 00 40 [22:44:25]Write i2c OK [22:44:25]MH_I2C_Read... [22:44:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:25]Read from MH i2c: E2 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: E2 17 00 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: E2 17 00 EA DC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 8D [22:44:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:44:25]wFMCommunicate OK [22:44:25]CreateOFDProtocolMessage done [22:44:25]OFDSenderStorePacket 260997 [22:44:25]StoreOFDPacket docnum=260997 [22:44:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 E4 E5 07 01 3C 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 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 02 00 00 F4 03 04 00 4E 79 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 85 FB 03 00 35 04 06 00 E7 7E 1D 4F 07 D2 76 22 AD 2F C4 DC C5 5C [22:44:25]CheckFolder [22:44:25]dirname=/storage/ofd_packets [22:44:25]CheckFolder done [22:44:25]ProducePacketName [22:44:25]name=ofd_packets/00260997 [22:44:25]NVStorageSaveData ofd_packets/00260997 [22:44:25]File name is /storage/ofd_packets/00260997 [22:44:25]Write 301 bytes [22:44:25]NVStorageSaveData done [22:44:25]OFDSenderStorePacket done [22:44:25]KKMCreateOFDPacket done [22:44:25]NVStorageSaveData kkm_last_timestamp [22:44:25]File name is /storage/kkm_last_timestamp [22:44:25]Write 4 bytes [22:44:25]NVStorageSaveData done [22:44:25]ExternCall_PrintAddStr [22:44:25]wPrintStart [22:44:25]Write to MH i2c: 01 00 00 EB DC C7 [22:44:25]Write i2c OK [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: 01 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: 01 07 00 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: 01 07 00 EB DC 00 00 00 00 00 FF 0F DC [22:44:25]RasterBufferAndPrint [22:44:25]line Счет N : (1)1036552 [22:44:25]line ИНН: 02508201610067 [22:44:25]line Контрольно-Кассовый Чек [22:44:25]line ПРОДАЖА [22:44:25]line ТРК (МРК, ГНК) : 12 [22:44:25]line Товар: 2710124130 [22:44:25]line Аи-92-К-5 [22:44:25]line 4.430 * 67.80 [22:44:25]line = 300.35 [22:44:25]line НДС 12% НСП 1% [22:44:25]line > о реализуемом товаре [22:44:25]line ОКРУГЛЕНИЕ: -0.35 [22:44:25]line ИТОГО: 300.00 [22:44:25]line Внесено: 300.00 [22:44:25]line СДАЧА: 0.00 [22:44:25]line НСП 1% : 2.66 [22:44:25]line НДС 12% : 31.90 [22:44:25]line Наличными: 300.00 [22:44:25]line Безнал.: 0.00 [22:44:25]line Место: АЗС № 94 "Партнер Нефть" [22:44:25]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [22:44:25]line СНО: Общий режим [22:44:25]line Чек 555 18.08.2024 22:44 [22:44:25]line Смена: 449 ФФД: 1.0 [22:44:25]line ЗНМ: 0300000099 [22:44:25]line РНМ: 0000000000091865 [22:44:25]line Версия ККМ: 001 [22:44:25]line ФМ: 0000000000871820 [22:44:25]line ФД: 260997 [22:44:25]line ФПД: 254528843614162 [22:44:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T224430&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260997&fm=254528843614162&tin=02508201610067®Number=0000000000091865&sum=30000 [22:44:25]written 0, free lines is 4095 [22:44:25]OFD Sender: Processing packet 260997 [packets to send 192, broken 191] [22:44:25]ProducePacketName [22:44:25]name=ofd_packets/00260997 [22:44:25]OFD Sender: To server: pG, [22:44:25]CommunicateWithHost lk.salyk.kg:30040 [22:44:25]ConnectInit lk.salyk.kg [22:44:25]Connected sock=10 [22:44: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 30 0F 01 00 00 E4 E5 07 01 3C 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 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 02 00 00 F4 03 04 00 4E 79 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 85 FB 03 00 35 04 06 00 E7 7E 1D 4F 07 D2 76 22 AD 2F C4 DC C5 5C [22:44: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 30 4F 00 00 00 79 A5 47 00 C3 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 30 10 04 04 00 85 FB 03 00 F4 03 04 00 A2 22 C2 66 B6 04 01 00 00 C9 91 8F 60 21 CA 04 12 [22:44:25]CommunicateWithHost err = 0 [22:44:25]CheckOFDResponse [22:44:25]1017 (14) - 77093643461234 [22:44:25]1041 (16) - 0000000000871820 [22:44:25]1040 (4) - 260997 [22:44:25]1012 (4) - 18.08.2024 16:34 [22:44:25]1206 (1) - 0 [22:44:25]OFD Sender: Remove packet 260997 [22:44:25]ProducePacketName [22:44:25]name=ofd_packets/00260997 [22:44:25]NVStorageDeleteData [22:44:25]Write to MH i2c: 01 00 00 16 DD F3 [22:44:25]Write i2c OK [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: 01 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: 01 07 00 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: 01 07 00 16 DD 00 00 00 00 00 68 0C 6E [22:44:25]RasterBufferAndPrint [22:44:25]line [22:44:25]line [22:44:25]line [22:44:25]line [22:44:25]line [22:44:25]written 0, free lines is 3180 [22:44:25]MH_Cut [22:44:25]Write to MH i2c: D1 01 00 1D DD 01 CC [22:44:25]Write i2c OK [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: D1 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: D1 01 00 [22:44:25]MH_I2C_Read... [22:44:25]Read from MH i2c: D1 01 00 1D DD 00 CB [22:44:25]Write to MH i2c: 01 00 00 1E DD FB [22:44:25]Write i2c OK [22:44:25]MH_I2C_Read... [22:44:26]OFD Sender: No OFD packet to send [22:44:26]*** Cut start [22:44:26]*** Purtial cut [22:44:26]*** Stage 1: CUTSNS_PIN = 1 [22:44:28]Read from MH i2c: 01 [22:44:28]MH_I2C_Read... [22:44:28]*** Stop cut motor [22:44:28]*** Cut end [22:44:28]Read from MH i2c: 01 07 00 [22:44:28]MH_I2C_Read... [22:44:28]Read from MH i2c: 01 07 00 1E DD 00 00 00 00 00 FF 0F 10 [22:44:28]process_action close_receipt done [22:44:28]requested_data is exist [22:44:28]produce_requested_data [22:44:28]requested_item fm.sn is exist - process it [22:44:28]wFMCommunicate request_size=4 [22:44:28]MH_SAM_APDU [22:44:28]CAPDU: 80 11 00 00 [22:44:28]Write to MH i2c: E2 08 00 1F DD 80 11 00 00 00 00 00 00 76 [22:44:28]Write i2c OK [22:44:28]MH_I2C_Read... [22:44:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:29]Read from MH i2c: E2 [22:44:29]MH_I2C_Read... [22:44:29]Read from MH i2c: E2 17 00 [22:44:29]MH_I2C_Read... [22:44:29]Read from MH i2c: E2 17 00 1F DD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C3 [22:44:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:44:29]wFMCommunicate OK [22:44:29]requested_item fd.num is exist - process it [22:44:29]SAM_PROTO_GetFieldsCounters [22:44:29]wFMCommunicate request_size=4 [22:44:29]MH_SAM_APDU [22:44:29]CAPDU: 80 13 00 00 [22:44:29]Write to MH i2c: E2 08 00 20 DD 80 13 00 00 00 00 00 00 79 [22:44:29]Write i2c OK [22:44:29]MH_I2C_Read... [22:44:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:44:29]Read from MH i2c: E2 [22:44:29]MH_I2C_Read... [22:44:29]Read from MH i2c: E2 62 00 [22:44:29]MH_I2C_Read... [22:44:29]Read from MH i2c: E2 62 00 20 DD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 85 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 2B 02 00 00 5E 04 04 00 2B 02 00 00 57 04 04 00 2C 02 00 00 19 04 04 00 00 00 00 00 90 00 64 [22: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 85 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 2B 02 00 00 5E 04 04 00 2B 02 00 00 57 04 04 00 2C 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:44:29]wFMCommunicate OK [22:44:29]SAM_PROTO_GetFieldsCounters done [22:44:29]requested_item shift.num is exist - process it [22:44:29]requested_item shift.opened is exist - process it [22:44:29]req_shift_opened [22:44:29]FM_GetShiftState [22:44:29]SAM_PROTO_GetShiftState [22:44:29]wFMCommunicate request_size=4 [22:44:29]MH_SAM_APDU [22:44:29]CAPDU: 80 13 01 00 [22:44:29]Write to MH i2c: E2 08 00 21 DD 80 13 01 00 00 00 00 00 7B [22:44:29]Write i2c OK [22:44:29]MH_I2C_Read... [22:44:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:29]Read from MH i2c: E2 [22:44:29]MH_I2C_Read... [22:44:29]Read from MH i2c: E2 0E 00 [22:44:29]MH_I2C_Read... [22:44:29]Read from MH i2c: E2 0E 00 21 DD 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B8 [22:44:29]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:44:29]wFMCommunicate OK [22:44:29]SAM_PROTO_GetShiftState done [22:44:29]FM_GetShiftState done [22:44:29]req_shift_opened done [22:44:29]requested_item shift.open_date is exist - process it [22:44:29]req_shift_open_date [22:44:29]req_shift_open_date done [22:44:29]produce_requested_data done [22:44:29]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260997,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [22:44:29]process_action_free close_receipt [22:44:29]json_value_free [22:44:29]json_value_free done [22:44:29]process_json_proto returns [22:44:29]Send response to host [22:44:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260997,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [22:44:29]free response buf [22:44:29]execute_script done [22:44:29]execute_script returns [22:44:29]free content buf [22:44:29]Sock 7.Close socket [22:44:29]Sock 7.Thread stoped [22:44:31]OFD Sender: No OFD packet to send [22:44:36]OFD Sender: No OFD packet to send [22:44:41]OFD Sender: No OFD packet to send [22:44:46]OFD Sender: No OFD packet to send [22:44:51]OFD Sender: No OFD packet to send [22:44:56]OFD Sender: No OFD packet to send [22:45:01]OFD Sender: No OFD packet to send [22:45:06]OFD Sender: No OFD packet to send [22:45:11]OFD Sender: No OFD packet to send [22:45:16]OFD Sender: No OFD packet to send [22:45:21]OFD Sender: No OFD packet to send [22:45:26]OFD Sender: No OFD packet to send [22:45:31]OFD Sender: No OFD packet to send [22:45:36]OFD Sender: No OFD packet to send [22:45:41]OFD Sender: No OFD packet to send [22:45:46]OFD Sender: No OFD packet to send [22:45:51]OFD Sender: No OFD packet to send [22:45:56]OFD Sender: No OFD packet to send [22:45:56]accept exits with 9 [22:45:56]New connection [22:45:56]New thread 3066473828 created [22:45:56]Thread 3066617188 joined [22:45:56]Waiting for new connection... [22:45:56] Sock 9.Parse request [22:45:56]Sock 9.Check first char [22:45:56]Sock 9.First char is OK [22:45:56]request: POST /json_proto HTTP/1.0 [22:45:56]Method: POST [22:45:56]URL: /json_proto [22:45:56]Method is POST - this is cgi request [22:45:56]url: /json_proto [22:45:56]query_string will be loaded in cgi processing [22:45:56]execute_cgi json_proto POST (null) [22:45:56]execute_cgi path=json_proto method=POST [22:45:56]POST find Content-Length [22:45:56]Host: 172.17.55.133:8080 [22:45:56]Content-Length: 801 [22:45:56]Content-Type: application/json [22:45:56] [22:45:56]POST finish read [22:45:56]Found Content-Length = 801 [22:45:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:45:56]execute_script... [22:45: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)1036554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:45:56]POST & json_proto [22:45:56]process_json_proto [22:45:56]json parsed OK: [22:45:56]protocol is kg_v1.0 [22:45:56]action value=close_receipt [22:45:56]process_action close_receipt [22:45:56]cmd_close_receipt [22:45:56]MH_GetDate [22:45:56]Write to MH i2c: F0 00 00 22 DD EE [22:45:56]Write i2c OK [22:45:56]MH_I2C_Read... [22:45:56]Read from MH i2c: F0 [22:45:56]MH_I2C_Read... [22:45:56]Read from MH i2c: F0 09 00 [22:45:56]MH_I2C_Read... [22:45:56]Read from MH i2c: F0 09 00 22 DD 00 AB 79 C2 66 34 48 D8 65 FC [22:45:56]GetLastDocTimeStamp 1724021070 [22:45:56]current date 1724021163 [22:45:56]FM_GetShiftState [22:45:56]SAM_PROTO_GetShiftState [22:45:56]wFMCommunicate request_size=4 [22:45:56]MH_SAM_APDU [22:45:56]CAPDU: 80 13 01 00 [22:45:56]Write to MH i2c: E2 08 00 23 DD 80 13 01 00 00 00 00 00 7D [22:45:56]Write i2c OK [22:45:56]MH_I2C_Read... [22:45:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:45:56]Read from MH i2c: E2 [22:45:56]MH_I2C_Read... [22:45:56]Read from MH i2c: E2 0E 00 [22:45:56]MH_I2C_Read... [22:45:56]Read from MH i2c: E2 0E 00 23 DD 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 BA [22:45:56]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:45:56]wFMCommunicate OK [22:45:56]SAM_PROTO_GetShiftState done [22:45:56]FM_GetShiftState done [22:45:56]opened in 1723940556 [22:45:56]opened+sec_in_day 1724026956 [22:45:56]quantity*price = 50036 [22:45:56]sum+1 = 50037 [22:45:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 556 18.08.2024 22:46 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 260998 ФПД: 107438348509567 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T224603&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260998&fm=107438348509567&tin=02508201610067®Number=0000000000091865&sum=50036 [22:45:57]StoreToDocumentArchive [22:45:57]shift 449 fd 260998 [22:45:57]save to /storage/0449/doc_00260998 [22:45:57]save last doc name /storage/0449/doc_00260998 to /storage/kkm_last_doc_name [22:45:57]save OK [22:45:57]Clear old archive folders... [22:45:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:45:57]tlvbuf is 00383020 [22:45:57]SAM_PROTO_ClearQueue [22:45:57]wFMCommunicate request_size=4 [22:45:57]MH_SAM_APDU [22:45:57]CAPDU: 80 09 00 00 [22:45:57]Write to MH i2c: E2 08 00 30 DD 80 09 00 00 00 00 00 00 7F [22:45:57]Write i2c OK [22:45:57]MH_I2C_Read... [22:45:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:45:57]Read from MH i2c: E2 [22:45:57]MH_I2C_Read... [22:45:57]Read from MH i2c: E2 03 00 [22:45:57]MH_I2C_Read... [22:45:57]Read from MH i2c: E2 03 00 30 DD 00 90 00 81 [22:45:57]RAPDU: 90 00 [22:45:57]wFMCommunicate OK [22:45:57]SAM_PROTO_ClearQueue done [22:45:57]KKMCreateOFDPacket [22:45:57]OFDProtocolAddRootSTLVToBuf [22:45:57]FM_MakeSignedData [22:45:57]FM_MakeSignedData [22:45:57]SAM_PROTO_SignData [22:45:57]wFMCommunicate request_size=4 [22:45:57]MH_SAM_APDU [22:45:57]CAPDU: 80 0D 01 02 [22:45:57]Write to MH i2c: E2 08 00 31 DD 80 0D 01 02 00 00 00 00 87 [22:45:57]Write i2c OK [22:45:57]MH_I2C_Read... [22:45:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:45:57]Read from MH i2c: E2 [22:45:57]MH_I2C_Read... [22:45:57]Read from MH i2c: E2 03 00 [22:45:57]MH_I2C_Read... [22:45:57]Read from MH i2c: E2 03 00 31 DD 00 90 00 82 [22:45:57]RAPDU: 90 00 [22:45:57]wFMCommunicate OK [22:45:57]wFMCommunicate request_size=255 [22:45:57]MH_SAM_APDU [22:45:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 02 00 00 F4 03 04 00 AB 79 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 86 FB 03 00 35 04 06 00 61 [22:45:57]Write to MH i2c: E2 02 01 32 DD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 02 00 00 F4 03 04 00 AB 79 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 86 FB 03 00 35 04 06 00 61 00 00 6D [22:45:57]Write i2c OK [22:45:57]MH_I2C_Read... [22:45:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:57]Read from MH i2c: E2 [22:45:57]MH_I2C_Read... [22:45:57]Read from MH i2c: E2 03 00 [22:45:57]MH_I2C_Read... [22:45:57]Read from MH i2c: E2 03 00 32 DD 00 90 00 83 [22:45:57]RAPDU: 90 00 [22:45:57]wFMCommunicate OK [22:45:57]wFMCommunicate request_size=10 [22:45:57]MH_SAM_APDU [22:45:57]CAPDU: 80 0D 02 02 05 B6 F0 99 21 7F [22:45:57]Write to MH i2c: E2 0D 00 33 DD 80 0D 02 02 05 00 B6 F0 99 21 7F 00 00 73 [22:45:57]Write i2c OK [22:45:57]MH_I2C_Read... [22:45:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:57]Read from MH i2c: E2 [22:45:57]MH_I2C_Read... [22:45:57]Read from MH i2c: E2 03 00 [22:45:57]MH_I2C_Read... [22:45:57]Read from MH i2c: E2 03 00 33 DD 00 90 00 84 [22:45:57]RAPDU: 90 00 [22:45:57]wFMCommunicate OK [22:45:57]wFMCommunicate request_size=4 [22:45:57]MH_SAM_APDU [22:45:57]CAPDU: 80 0D 03 02 [22:45:57]Write to MH i2c: E2 08 00 34 DD 80 0D 03 02 00 00 00 00 8C [22:45:57]Write i2c OK [22:45:57]MH_I2C_Read... [22:45:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:45:58]Read from MH i2c: E2 [22:45:58]MH_I2C_Read... [22:45:58]Read from MH i2c: E2 0B 00 [22:45:58]MH_I2C_Read... [22:45:58]Read from MH i2c: E2 0B 00 34 DD 00 91 B8 80 29 7B 99 9F 6F 90 00 A1 [22:45:58]RAPDU: 91 B8 80 29 7B 99 9F 6F 90 00 [22:45:58]wFMCommunicate OK [22:45:58]SAM_PROTO_SignData done [22:45:58]FM_MakeSignedData done [22:45:58]CreateOFDProtocolMessage [22:45:58]wFMCommunicate request_size=4 [22:45:58]MH_SAM_APDU [22:45:58]CAPDU: 80 11 00 00 [22:45:58]Write to MH i2c: E2 08 00 35 DD 80 11 00 00 00 00 00 00 8C [22:45:58]Write i2c OK [22:45:58]MH_I2C_Read... [22:45:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:45:58]Read from MH i2c: E2 [22:45:58]MH_I2C_Read... [22:45:58]Read from MH i2c: E2 17 00 [22:45:58]MH_I2C_Read... [22:45:58]Read from MH i2c: E2 17 00 35 DD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D9 [22:45:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:45:58]wFMCommunicate OK [22:45:58]CreateOFDProtocolMessage done [22:45:58]OFDSenderStorePacket 260998 [22:45:58]StoreOFDPacket docnum=260998 [22:45:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 2E E9 07 01 BB 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 02 00 00 F4 03 04 00 AB 79 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 86 FB 03 00 35 04 06 00 61 B6 F0 99 21 7F 91 B8 80 29 7B 99 9F 6F [22:45:58]CheckFolder [22:45:58]dirname=/storage/ofd_packets [22:45:58]CheckFolder done [22:45:58]ProducePacketName [22:45:58]name=ofd_packets/00260998 [22:45:58]NVStorageSaveData ofd_packets/00260998 [22:45:58]File name is /storage/ofd_packets/00260998 [22:45:58]Write 301 bytes [22:45:58]NVStorageSaveData done [22:45:58]OFDSenderStorePacket done [22:45:58]KKMCreateOFDPacket done [22:45:58]NVStorageSaveData kkm_last_timestamp [22:45:58]File name is /storage/kkm_last_timestamp [22:45:58]Write 4 bytes [22:45:58]NVStorageSaveData done [22:45:58]ExternCall_PrintAddStr [22:45:58]wPrintStart [22:45:58]Write to MH i2c: 01 00 00 36 DD 13 [22:45:58]Write i2c OK [22:45:58]MH_I2C_Read... [22:45:58]Read from MH i2c: 01 [22:45:58]MH_I2C_Read... [22:45:58]Read from MH i2c: 01 07 00 [22:45:58]MH_I2C_Read... [22:45:58]Read from MH i2c: 01 07 00 36 DD 00 00 00 00 00 FF 0F 28 [22:45:58]RasterBufferAndPrint [22:45:58]line Счет N : (1)1036554 [22:45:58]line ИНН: 02508201610067 [22:45:58]line Контрольно-Кассовый Чек [22:45:58]line ПРОДАЖА [22:45:58]line ТРК (МРК, ГНК) : 22 [22:45:58]line Товар: 2710124130 [22:45:58]line Аи-92-К-5 [22:45:58]line 7.380 * 67.80 [22:45:58]line = 500.36 [22:45:58]line НДС 12% НСП 1% [22:45:58]line > о реализуемом товаре [22:45:58]line ИТОГО: 500.36 [22:45:58]line НСП 1% : 4.43 [22:45:58]line НДС 12% : 53.14 [22:45:58]line Наличными: 0.00 [22:45:58]line Безнал.: 500.36 [22:45:58]line Место: АЗС № 94 "Партнер Нефть" [22:45:58]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [22:45:58]line СНО: Общий режим [22:45:58]line Чек 556 18.08.2024 22:46 [22:45:58]line Смена: 449 ФФД: 1.0 [22:45:58]line ЗНМ: 0300000099 [22:45:58]line РНМ: 0000000000091865 [22:45:58]line Версия ККМ: 001 [22:45:58]line Платежная система: O! деньги [22:45:58]line ФМ: 0000000000871820 [22:45:58]line ФД: 260998 [22:45:58]line ФПД: 107438348509567 [22:45:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T224603&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260998&fm=107438348509567&tin=02508201610067®Number=0000000000091865&sum=50036 [22:45:58]written 0, free lines is 4095 [22:45:58]OFD Sender: Processing packet 260998 [packets to send 192, broken 191] [22:45:58]ProducePacketName [22:45:58]name=ofd_packets/00260998 [22:45:58]OFD Sender: To server: pG, [22:45:58]CommunicateWithHost lk.salyk.kg:30040 [22:45:58]ConnectInit lk.salyk.kg [22:45:58]Connected sock=10 [22:45: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 30 0F 01 00 00 2E E9 07 01 BB 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 02 00 00 F4 03 04 00 AB 79 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 86 FB 03 00 35 04 06 00 61 B6 F0 99 21 7F 91 B8 80 29 7B 99 9F 6F [22:45:58]Write to MH i2c: 01 00 00 60 DD 3D [22:45:58]Write i2c OK [22:45:58]MH_I2C_Read... [22:45:58]Read from MH i2c: 01 [22:45:58]MH_I2C_Read... [22:45:58]Read from MH i2c: 01 07 00 [22:45:58]MH_I2C_Read... [22:45:58]Read from MH i2c: 01 07 00 60 DD 00 00 00 00 00 76 0C C6 [22:45:58]RasterBufferAndPrint [22:45:58]line [22:45:58]line [22:45:58]line [22:45:58]line [22:45:58]line [22:45:58]written 0, free lines is 3195 [22:45:58]MH_Cut [22:45:58]Write to MH i2c: D1 01 00 67 DD 01 16 [22:45:58]Write i2c OK [22:45:58]MH_I2C_Read... [22:45:58]Read from MH i2c: D1 [22:45:58]MH_I2C_Read... [22:45:58]Read from MH i2c: D1 01 00 [22:45:58]MH_I2C_Read... [22:45:58]Read from MH i2c: D1 01 00 67 DD 00 15 [22:45:58]Write to MH i2c: 01 00 00 68 DD 45 [22:45:58]Write i2c OK [22:45:58]MH_I2C_Read... [22:45: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 30 4F 00 00 00 C1 72 47 00 C3 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 30 10 04 04 00 86 FB 03 00 F4 03 04 00 FF 22 C2 66 B6 04 01 00 00 7B 2F 66 E7 26 C8 14 DA [22:45:58]CommunicateWithHost err = 0 [22:45:58]CheckOFDResponse [22:45:58]1017 (14) - 77093643461234 [22:45:58]1041 (16) - 0000000000871820 [22:45:58]1040 (4) - 260998 [22:45:58]1012 (4) - 18.08.2024 16:36 [22:45:58]1206 (1) - 0 [22:45:58]OFD Sender: Remove packet 260998 [22:45:58]ProducePacketName [22:45:58]name=ofd_packets/00260998 [22:45:58]NVStorageDeleteData [22:45:59]OFD Sender: No OFD packet to send [22:45:59]*** Cut start [22:45:59]*** Purtial cut [22:45:59]*** Stage 1: CUTSNS_PIN = 1 [22:46:01]Read from MH i2c: 01 [22:46:01]MH_I2C_Read... [22:46:01]*** Stop cut motor [22:46:01]*** Cut end [22:46:01]Read from MH i2c: 01 07 00 [22:46:01]MH_I2C_Read... [22:46:01]Read from MH i2c: 01 07 00 68 DD 00 00 00 00 00 FF 0F 5A [22:46:01]process_action close_receipt done [22:46:01]requested_data is exist [22:46:01]produce_requested_data [22:46:01]requested_item fm.sn is exist - process it [22:46:01]wFMCommunicate request_size=4 [22:46:01]MH_SAM_APDU [22:46:01]CAPDU: 80 11 00 00 [22:46:01]Write to MH i2c: E2 08 00 69 DD 80 11 00 00 00 00 00 00 C0 [22:46:01]Write i2c OK [22:46:01]MH_I2C_Read... [22:46:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:46:01]Read from MH i2c: E2 [22:46:01]MH_I2C_Read... [22:46:01]Read from MH i2c: E2 17 00 [22:46:01]MH_I2C_Read... [22:46:01]Read from MH i2c: E2 17 00 69 DD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 0D [22:46:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:46:01]wFMCommunicate OK [22:46:01]requested_item fd.num is exist - process it [22:46:01]SAM_PROTO_GetFieldsCounters [22:46:01]wFMCommunicate request_size=4 [22:46:01]MH_SAM_APDU [22:46:01]CAPDU: 80 13 00 00 [22:46:01]Write to MH i2c: E2 08 00 6A DD 80 13 00 00 00 00 00 00 C3 [22:46:01]Write i2c OK [22:46:01]MH_I2C_Read... [22:46:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:46:01]Read from MH i2c: E2 [22:46:01]MH_I2C_Read... [22:46:01]Read from MH i2c: E2 62 00 [22:46:01]MH_I2C_Read... [22:46:01]Read from MH i2c: E2 62 00 6A DD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 86 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 2C 02 00 00 5E 04 04 00 2C 02 00 00 57 04 04 00 2D 02 00 00 19 04 04 00 00 00 00 00 90 00 B2 [22:46: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 86 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 2C 02 00 00 5E 04 04 00 2C 02 00 00 57 04 04 00 2D 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:46:01]wFMCommunicate OK [22:46:01]SAM_PROTO_GetFieldsCounters done [22:46:01]requested_item shift.num is exist - process it [22:46:01]requested_item shift.opened is exist - process it [22:46:01]req_shift_opened [22:46:01]FM_GetShiftState [22:46:01]SAM_PROTO_GetShiftState [22:46:01]wFMCommunicate request_size=4 [22:46:01]MH_SAM_APDU [22:46:01]CAPDU: 80 13 01 00 [22:46:01]Write to MH i2c: E2 08 00 6B DD 80 13 01 00 00 00 00 00 C5 [22:46:02]Write i2c OK [22:46:02]MH_I2C_Read... [22:46:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:02]Read from MH i2c: E2 [22:46:02]MH_I2C_Read... [22:46:02]Read from MH i2c: E2 0E 00 [22:46:02]MH_I2C_Read... [22:46:02]Read from MH i2c: E2 0E 00 6B DD 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 02 [22:46:02]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:46:02]wFMCommunicate OK [22:46:02]SAM_PROTO_GetShiftState done [22:46:02]FM_GetShiftState done [22:46:02]req_shift_opened done [22:46:02]requested_item shift.open_date is exist - process it [22:46:02]req_shift_open_date [22:46:02]req_shift_open_date done [22:46:02]produce_requested_data done [22:46:02]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260998,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [22:46:02]process_action_free close_receipt [22:46:02]json_value_free [22:46:02]json_value_free done [22:46:02]process_json_proto returns [22:46:02]Send response to host [22:46:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260998,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [22:46:02]free response buf [22:46:02]execute_script done [22:46:02]execute_script returns [22:46:02]free content buf [22:46:02]Sock 9.Close socket [22:46:02]Sock 9.Thread stoped [22:46:04]OFD Sender: No OFD packet to send [22:46:04]accept exits with 7 [22:46:04]New connection [22:46:04]New thread 3066617188 created [22:46:04]Thread 3066473828 joined [22:46:04]Waiting for new connection... [22:46:04] Sock 7.Parse request [22:46:04]Sock 7.Check first char [22:46:04]Sock 7.First char is OK [22:46:04]request: POST /json_proto HTTP/1.0 [22:46:04]Method: POST [22:46:04]URL: /json_proto [22:46:04]Method is POST - this is cgi request [22:46:04]url: /json_proto [22:46:04]query_string will be loaded in cgi processing [22:46:04]execute_cgi json_proto POST (null) [22:46:04]execute_cgi path=json_proto method=POST [22:46:04]POST find Content-Length [22:46:04]Host: 172.17.55.133:8080 [22:46:04]Content-Length: 820 [22:46:04]Content-Type: application/json [22:46:04] [22:46:04]POST finish read [22:46:04]Found Content-Length = 820 [22:46:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:46:04]execute_script... [22:46:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:46:04]POST & json_proto [22:46:04]process_json_proto [22:46:04]json parsed OK: [22:46:04]protocol is kg_v1.0 [22:46:04]action value=close_receipt [22:46:04]process_action close_receipt [22:46:04]cmd_close_receipt [22:46:04]MH_GetDate [22:46:04]Write to MH i2c: F0 00 00 6C DD 38 [22:46:04]Write i2c OK [22:46:04]MH_I2C_Read... [22:46:04]Read from MH i2c: F0 [22:46:04]MH_I2C_Read... [22:46:04]Read from MH i2c: F0 09 00 [22:46:04]MH_I2C_Read... [22:46:04]Read from MH i2c: F0 09 00 6C DD 00 B4 79 C2 66 34 48 D8 65 4F [22:46:04]GetLastDocTimeStamp 1724021163 [22:46:04]current date 1724021172 [22:46:04]FM_GetShiftState [22:46:04]SAM_PROTO_GetShiftState [22:46:04]wFMCommunicate request_size=4 [22:46:04]MH_SAM_APDU [22:46:04]CAPDU: 80 13 01 00 [22:46:04]Write to MH i2c: E2 08 00 6D DD 80 13 01 00 00 00 00 00 C7 [22:46:04]Write i2c OK [22:46:04]MH_I2C_Read... [22:46:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:04]Read from MH i2c: E2 [22:46:04]MH_I2C_Read... [22:46:04]Read from MH i2c: E2 0E 00 [22:46:04]MH_I2C_Read... [22:46:04]Read from MH i2c: E2 0E 00 6D DD 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 04 [22:46:04]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:46:04]wFMCommunicate OK [22:46:04]SAM_PROTO_GetShiftState done [22:46:04]FM_GetShiftState done [22:46:04]opened in 1723940556 [22:46:04]opened+sec_in_day 1724026956 [22:46:04]quantity*price = 100005 [22:46:04]sum+1 = 100006 [22:46:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 557 18.08.2024 22:46 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871820 ФД: 260999 ФПД: 13466011430397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T224612&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260999&fm=13466011430397&tin=02508201610067®Number=0000000000091865&sum=100005 [22:46:05]StoreToDocumentArchive [22:46:05]shift 449 fd 260999 [22:46:05]save to /storage/0449/doc_00260999 [22:46:05]save last doc name /storage/0449/doc_00260999 to /storage/kkm_last_doc_name [22:46:05]save OK [22:46:05]Clear old archive folders... [22:46:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:46:05]tlvbuf is 00540540 [22:46:05]SAM_PROTO_ClearQueue [22:46:05]wFMCommunicate request_size=4 [22:46:05]MH_SAM_APDU [22:46:05]CAPDU: 80 09 00 00 [22:46:05]Write to MH i2c: E2 08 00 7A DD 80 09 00 00 00 00 00 00 C9 [22:46:05]Write i2c OK [22:46:05]MH_I2C_Read... [22:46:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:46:06]Read from MH i2c: E2 [22:46:06]MH_I2C_Read... [22:46:06]Read from MH i2c: E2 03 00 [22:46:06]MH_I2C_Read... [22:46:06]Read from MH i2c: E2 03 00 7A DD 00 90 00 CB [22:46:06]RAPDU: 90 00 [22:46:06]wFMCommunicate OK [22:46:06]SAM_PROTO_ClearQueue done [22:46:06]KKMCreateOFDPacket [22:46:06]OFDProtocolAddRootSTLVToBuf [22:46:06]FM_MakeSignedData [22:46:06]FM_MakeSignedData [22:46:06]SAM_PROTO_SignData [22:46:06]wFMCommunicate request_size=4 [22:46:06]MH_SAM_APDU [22:46:06]CAPDU: 80 0D 01 02 [22:46:06]Write to MH i2c: E2 08 00 7B DD 80 0D 01 02 00 00 00 00 D1 [22:46:06]Write i2c OK [22:46:06]MH_I2C_Read... [22:46:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:46:06]Read from MH i2c: E2 [22:46:06]MH_I2C_Read... [22:46:06]Read from MH i2c: E2 03 00 [22:46:06]MH_I2C_Read... [22:46:06]Read from MH i2c: E2 03 00 7B DD 00 90 00 CC [22:46:06]RAPDU: 90 00 [22:46:06]wFMCommunicate OK [22:46:06]wFMCommunicate request_size=255 [22:46:06]MH_SAM_APDU [22:46:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 02 00 00 F4 03 04 00 B4 79 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 87 FB 03 00 35 04 06 00 0C [22:46:06]Write to MH i2c: E2 02 01 7C DD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 02 00 00 F4 03 04 00 B4 79 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 87 FB 03 00 35 04 06 00 0C 00 00 BE [22:46:06]Write i2c OK [22:46:06]MH_I2C_Read... [22:46:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:46:06]Read from MH i2c: E2 [22:46:06]MH_I2C_Read... [22:46:06]Read from MH i2c: E2 03 00 [22:46:06]MH_I2C_Read... [22:46:06]Read from MH i2c: E2 03 00 7C DD 00 90 00 CD [22:46:06]RAPDU: 90 00 [22:46:06]wFMCommunicate OK [22:46:06]wFMCommunicate request_size=10 [22:46:06]MH_SAM_APDU [22:46:06]CAPDU: 80 0D 02 02 05 3F 4C D3 ED FD [22:46:06]Write to MH i2c: E2 0D 00 7D DD 80 0D 02 02 05 00 3F 4C D3 ED FD 00 00 26 [22:46:06]Write i2c OK [22:46:06]MH_I2C_Read... [22:46:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:46:06]Read from MH i2c: E2 [22:46:06]MH_I2C_Read... [22:46:06]Read from MH i2c: E2 03 00 [22:46:06]MH_I2C_Read... [22:46:06]Read from MH i2c: E2 03 00 7D DD 00 90 00 CE [22:46:06]RAPDU: 90 00 [22:46:06]wFMCommunicate OK [22:46:06]wFMCommunicate request_size=4 [22:46:06]MH_SAM_APDU [22:46:06]CAPDU: 80 0D 03 02 [22:46:06]Write to MH i2c: E2 08 00 7E DD 80 0D 03 02 00 00 00 00 D6 [22:46:06]Write i2c OK [22:46:06]MH_I2C_Read... [22:46:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:46:06]Read from MH i2c: E2 [22:46:06]MH_I2C_Read... [22:46:06]Read from MH i2c: E2 0B 00 [22:46:06]MH_I2C_Read... [22:46:06]Read from MH i2c: E2 0B 00 7E DD 00 21 53 BF 2F 74 F0 FD 80 90 00 1A [22:46:06]RAPDU: 21 53 BF 2F 74 F0 FD 80 90 00 [22:46:06]wFMCommunicate OK [22:46:06]SAM_PROTO_SignData done [22:46:06]FM_MakeSignedData done [22:46:06]CreateOFDProtocolMessage [22:46:06]wFMCommunicate request_size=4 [22:46:06]MH_SAM_APDU [22:46:06]CAPDU: 80 11 00 00 [22:46:06]Write to MH i2c: E2 08 00 7F DD 80 11 00 00 00 00 00 00 D6 [22:46:06]Write i2c OK [22:46:06]MH_I2C_Read... [22:46:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:46:06]Read from MH i2c: E2 [22:46:06]MH_I2C_Read... [22:46:06]Read from MH i2c: E2 17 00 [22:46:06]MH_I2C_Read... [22:46:06]Read from MH i2c: E2 17 00 7F DD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 23 [22:46:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:46:06]wFMCommunicate OK [22:46:06]CreateOFDProtocolMessage done [22:46:06]OFDSenderStorePacket 260999 [22:46:06]StoreOFDPacket docnum=260999 [22:46:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 27 FD 07 01 BA 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 02 00 00 F4 03 04 00 B4 79 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 87 FB 03 00 35 04 06 00 0C 3F 4C D3 ED FD 21 53 BF 2F 74 F0 FD 80 [22:46:06]CheckFolder [22:46:06]dirname=/storage/ofd_packets [22:46:06]CheckFolder done [22:46:06]ProducePacketName [22:46:06]name=ofd_packets/00260999 [22:46:06]NVStorageSaveData ofd_packets/00260999 [22:46:06]File name is /storage/ofd_packets/00260999 [22:46:06]Write 301 bytes [22:46:06]NVStorageSaveData done [22:46:06]OFDSenderStorePacket done [22:46:06]KKMCreateOFDPacket done [22:46:06]NVStorageSaveData kkm_last_timestamp [22:46:06]File name is /storage/kkm_last_timestamp [22:46:06]Write 4 bytes [22:46:06]NVStorageSaveData done [22:46:06]ExternCall_PrintAddStr [22:46:06]wPrintStart [22:46:06]Write to MH i2c: 01 00 00 80 DD 5D [22:46:06]Write i2c OK [22:46:06]MH_I2C_Read... [22:46:06]Read from MH i2c: 01 [22:46:06]MH_I2C_Read... [22:46:06]Read from MH i2c: 01 07 00 [22:46:06]MH_I2C_Read... [22:46:06]Read from MH i2c: 01 07 00 80 DD 00 00 00 00 00 FF 0F 72 [22:46:06]RasterBufferAndPrint [22:46:06]line Счет N : (1)1036553 [22:46:06]line ИНН: 02508201610067 [22:46:06]line Контрольно-Кассовый Чек [22:46:06]line ПРОДАЖА [22:46:06]line ТРК (МРК, ГНК) : 42 [22:46:06]line Товар: 2710124130 [22:46:06]line Аи-92-К-5 [22:46:06]line 14.750 * 67.80 [22:46:06]line = 1000.05 [22:46:06]line НДС 12% НСП 1% [22:46:06]line > о реализуемом товаре [22:46:06]line ИТОГО: 1000.05 [22:46:06]line НСП 1% : 8.85 [22:46:06]line НДС 12% : 106.20 [22:46:06]line Наличными: 0.00 [22:46:06]line Безнал.: 1000.05 [22:46:06]line Место: АЗС № 94 "Партнер Нефть" [22:46:06]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [22:46:06]line СНО: Общий режим [22:46:06]line Чек 557 18.08.2024 22:46 [22:46:06]line Смена: 449 ФФД: 1.0 [22:46:06]line ЗНМ: 0300000099 [22:46:06]line РНМ: 0000000000091865 [22:46:06]line Версия ККМ: 001 [22:46:06]line Платежная система: Бакай Банк [22:46:06]line ФМ: 0000000000871820 [22:46:06]line ФД: 260999 [22:46:06]line ФПД: 13466011430397 [22:46:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T224612&type=1&operation_type=1&fn_number=0000000000871820&fd_number=260999&fm=13466011430397&tin=02508201610067®Number=0000000000091865&sum=100005 [22:46:06]written 0, free lines is 4095 [22:46:06]OFD Sender: Processing packet 260999 [packets to send 192, broken 191] [22:46:06]ProducePacketName [22:46:06]name=ofd_packets/00260999 [22:46:06]OFD Sender: To server: pG, [22:46:06]CommunicateWithHost lk.salyk.kg:30040 [22:46:06]ConnectInit lk.salyk.kg [22:46:06]Connected sock=10 [22:46: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 30 0F 01 00 00 27 FD 07 01 BA 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 02 00 00 F4 03 04 00 B4 79 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 87 FB 03 00 35 04 06 00 0C 3F 4C D3 ED FD 21 53 BF 2F 74 F0 FD 80 [22:46: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 30 4F 00 00 00 F3 0E 47 00 9E 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 30 10 04 04 00 87 FB 03 00 F4 03 04 00 07 23 C2 66 B6 04 01 00 00 DC 8A F1 8B A6 AC 8E B6 [22:46:06]CommunicateWithHost err = 0 [22:46:06]CheckOFDResponse [22:46:06]1017 (14) - 77093643461234 [22:46:06]1041 (16) - 0000000000871820 [22:46:06]1040 (4) - 260999 [22:46:06]1012 (4) - 18.08.2024 16:36 [22:46:06]1206 (1) - 0 [22:46:06]OFD Sender: Remove packet 260999 [22:46:06]ProducePacketName [22:46:06]name=ofd_packets/00260999 [22:46:06]NVStorageDeleteData [22:46:06]Write to MH i2c: 01 00 00 AA DD 87 [22:46:06]Write i2c OK [22:46:06]MH_I2C_Read... [22:46:06]Read from MH i2c: 01 [22:46:06]MH_I2C_Read... [22:46:06]Read from MH i2c: 01 07 00 [22:46:06]MH_I2C_Read... [22:46:06]Read from MH i2c: 01 07 00 AA DD 00 00 00 00 00 78 0C 12 [22:46:06]RasterBufferAndPrint [22:46:06]line [22:46:06]line [22:46:06]line [22:46:06]line [22:46:06]line [22:46:06]written 0, free lines is 3198 [22:46:06]MH_Cut [22:46:06]Write to MH i2c: D1 01 00 B1 DD 01 60 [22:46:07]Write i2c OK [22:46:07]MH_I2C_Read... [22:46:07]Read from MH i2c: D1 [22:46:07]MH_I2C_Read... [22:46:07]Read from MH i2c: D1 01 00 [22:46:07]MH_I2C_Read... [22:46:07]Read from MH i2c: D1 01 00 B1 DD 00 5F [22:46:07]Write to MH i2c: 01 00 00 B2 DD 8F [22:46:07]Write i2c OK [22:46:07]MH_I2C_Read... [22:46:07]OFD Sender: No OFD packet to send [22:46:08]*** Cut start [22:46:08]*** Purtial cut [22:46:08]*** Stage 1: CUTSNS_PIN = 1 [22:46:10]Read from MH i2c: 01 [22:46:10]MH_I2C_Read... [22:46:10]*** Stop cut motor [22:46:10]*** Cut end [22:46:10]Read from MH i2c: 01 07 00 [22:46:10]MH_I2C_Read... [22:46:10]Read from MH i2c: 01 07 00 B2 DD 00 00 00 00 00 FF 0F A4 [22:46:10]process_action close_receipt done [22:46:10]requested_data is exist [22:46:10]produce_requested_data [22:46:10]requested_item fm.sn is exist - process it [22:46:10]wFMCommunicate request_size=4 [22:46:10]MH_SAM_APDU [22:46:10]CAPDU: 80 11 00 00 [22:46:10]Write to MH i2c: E2 08 00 B3 DD 80 11 00 00 00 00 00 00 0A [22:46:10]Write i2c OK [22:46:10]MH_I2C_Read... [22:46:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:46:10]Read from MH i2c: E2 [22:46:10]MH_I2C_Read... [22:46:10]Read from MH i2c: E2 17 00 [22:46:10]MH_I2C_Read... [22:46:10]Read from MH i2c: E2 17 00 B3 DD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 57 [22:46:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:46:10]wFMCommunicate OK [22:46:10]requested_item fd.num is exist - process it [22:46:10]SAM_PROTO_GetFieldsCounters [22:46:10]wFMCommunicate request_size=4 [22:46:10]MH_SAM_APDU [22:46:10]CAPDU: 80 13 00 00 [22:46:10]Write to MH i2c: E2 08 00 B4 DD 80 13 00 00 00 00 00 00 0D [22:46:10]Write i2c OK [22:46:10]MH_I2C_Read... [22:46:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:46:10]Read from MH i2c: E2 [22:46:10]MH_I2C_Read... [22:46:10]Read from MH i2c: E2 62 00 [22:46:10]MH_I2C_Read... [22:46:10]Read from MH i2c: E2 62 00 B4 DD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 87 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 2D 02 00 00 5E 04 04 00 2D 02 00 00 57 04 04 00 2E 02 00 00 19 04 04 00 00 00 00 00 90 00 00 [22:46: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 87 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 2D 02 00 00 5E 04 04 00 2D 02 00 00 57 04 04 00 2E 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:46:10]wFMCommunicate OK [22:46:10]SAM_PROTO_GetFieldsCounters done [22:46:10]requested_item shift.num is exist - process it [22:46:10]requested_item shift.opened is exist - process it [22:46:10]req_shift_opened [22:46:10]FM_GetShiftState [22:46:10]SAM_PROTO_GetShiftState [22:46:10]wFMCommunicate request_size=4 [22:46:10]MH_SAM_APDU [22:46:10]CAPDU: 80 13 01 00 [22:46:10]Write to MH i2c: E2 08 00 B5 DD 80 13 01 00 00 00 00 00 0F [22:46:10]Write i2c OK [22:46:10]MH_I2C_Read... [22:46:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:10]Read from MH i2c: E2 [22:46:10]MH_I2C_Read... [22:46:10]Read from MH i2c: E2 0E 00 [22:46:10]MH_I2C_Read... [22:46:10]Read from MH i2c: E2 0E 00 B5 DD 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 4C [22:46:10]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:46:10]wFMCommunicate OK [22:46:10]SAM_PROTO_GetShiftState done [22:46:10]FM_GetShiftState done [22:46:10]req_shift_opened done [22:46:10]requested_item shift.open_date is exist - process it [22:46:10]req_shift_open_date [22:46:10]req_shift_open_date done [22:46:10]produce_requested_data done [22:46:10]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":260999,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [22:46:10]process_action_free close_receipt [22:46:10]json_value_free [22:46:10]json_value_free done [22:46:10]process_json_proto returns [22:46:10]Send response to host [22:46:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":260999,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [22:46:10]free response buf [22:46:10]execute_script done [22:46:10]execute_script returns [22:46:10]free content buf [22:46:10]Sock 7.Close socket [22:46:10]Sock 7.Thread stoped [22:46:12]OFD Sender: No OFD packet to send [22:46:17]OFD Sender: No OFD packet to send [22:46:22]OFD Sender: No OFD packet to send [22:46:27]OFD Sender: No OFD packet to send [22:46:32]OFD Sender: No OFD packet to send [22:46:37]OFD Sender: No OFD packet to send [22:46:42]OFD Sender: No OFD packet to send [22:46:47]OFD Sender: No OFD packet to send [22:46:52]OFD Sender: No OFD packet to send [22:46:57]OFD Sender: No OFD packet to send [22:47:02]OFD Sender: No OFD packet to send [22:47:07]OFD Sender: No OFD packet to send [22:47:12]OFD Sender: No OFD packet to send [22:47:17]OFD Sender: No OFD packet to send [22:47:22]OFD Sender: No OFD packet to send [22:47:27]OFD Sender: No OFD packet to send [22:47:32]OFD Sender: No OFD packet to send [22:47:37]OFD Sender: No OFD packet to send [22:47:42]OFD Sender: No OFD packet to send [22:47:47]OFD Sender: No OFD packet to send [22:47:52]OFD Sender: No OFD packet to send [22:47:57]OFD Sender: No OFD packet to send [22:48:02]OFD Sender: No OFD packet to send [22:48:07]OFD Sender: No OFD packet to send [22:48:12]OFD Sender: No OFD packet to send [22:48:17]OFD Sender: No OFD packet to send [22:48:22]OFD Sender: No OFD packet to send [22:48:27]OFD Sender: No OFD packet to send [22:48:32]OFD Sender: No OFD packet to send [22:48:37]OFD Sender: No OFD packet to send [22:48:42]OFD Sender: No OFD packet to send [22:48:47]OFD Sender: No OFD packet to send [22:48:52]OFD Sender: No OFD packet to send [22:48:57]OFD Sender: No OFD packet to send [22:49:02]OFD Sender: No OFD packet to send [22:49:07]OFD Sender: No OFD packet to send [22:49:12]OFD Sender: No OFD packet to send [22:49:17]OFD Sender: No OFD packet to send [22:49:22]OFD Sender: No OFD packet to send [22:49:27]OFD Sender: No OFD packet to send [22:49:32]OFD Sender: No OFD packet to send [22:49:37]OFD Sender: No OFD packet to send [22:49:42]OFD Sender: No OFD packet to send [22:49:47]OFD Sender: No OFD packet to send [22:49:52]OFD Sender: No OFD packet to send [22:49:57]OFD Sender: No OFD packet to send [22:50:02]OFD Sender: No OFD packet to send [22:50:07]OFD Sender: No OFD packet to send [22:50:12]OFD Sender: No OFD packet to send [22:50:17]OFD Sender: No OFD packet to send [22:50:22]OFD Sender: No OFD packet to send [22:50:27]OFD Sender: No OFD packet to send [22:50:32]OFD Sender: No OFD packet to send [22:50:37]OFD Sender: No OFD packet to send [22:50:42]OFD Sender: No OFD packet to send [22:50:47]OFD Sender: No OFD packet to send [22:50:52]OFD Sender: No OFD packet to send [22:50:57]OFD Sender: No OFD packet to send [22:51:02]OFD Sender: No OFD packet to send [22:51:07]OFD Sender: No OFD packet to send [22:51:12]OFD Sender: No OFD packet to send [22:51:17]OFD Sender: No OFD packet to send [22:51:22]OFD Sender: No OFD packet to send [22:51:27]OFD Sender: No OFD packet to send [22:51:32]OFD Sender: No OFD packet to send [22:51:37]OFD Sender: No OFD packet to send [22:51:42]OFD Sender: No OFD packet to send [22:51:47]OFD Sender: No OFD packet to send [22:51:52]OFD Sender: No OFD packet to send [22:51:57]OFD Sender: No OFD packet to send [22:52:02]OFD Sender: No OFD packet to send [22:52:07]OFD Sender: No OFD packet to send [22:52:12]OFD Sender: No OFD packet to send [22:52:17]OFD Sender: No OFD packet to send [22:52:22]OFD Sender: No OFD packet to send [22:52:27]OFD Sender: No OFD packet to send [22:52:32]OFD Sender: No OFD packet to send [22:52:37]OFD Sender: No OFD packet to send [22:52:42]OFD Sender: No OFD packet to send [22:52:47]OFD Sender: No OFD packet to send [22:52:52]OFD Sender: No OFD packet to send [22:52:57]OFD Sender: No OFD packet to send [22:53:02]OFD Sender: No OFD packet to send [22:53:07]OFD Sender: No OFD packet to send [22:53:12]OFD Sender: No OFD packet to send [22:53:17]OFD Sender: No OFD packet to send [22:53:23]OFD Sender: No OFD packet to send [22:53:28]OFD Sender: No OFD packet to send [22:53:33]OFD Sender: No OFD packet to send [22:53:38]OFD Sender: No OFD packet to send [22:53:43]OFD Sender: No OFD packet to send [22:53:48]OFD Sender: No OFD packet to send [22:53:53]OFD Sender: No OFD packet to send [22:53:58]OFD Sender: No OFD packet to send [22:54:03]OFD Sender: No OFD packet to send [22:54:08]OFD Sender: No OFD packet to send [22:54:13]OFD Sender: No OFD packet to send [22:54:18]OFD Sender: No OFD packet to send [22:54:23]OFD Sender: No OFD packet to send [22:54:28]OFD Sender: No OFD packet to send [22:54:33]OFD Sender: No OFD packet to send [22:54:38]OFD Sender: No OFD packet to send [22:54:43]OFD Sender: No OFD packet to send [22:54:48]OFD Sender: No OFD packet to send [22:54:53]OFD Sender: No OFD packet to send [22:54:58]OFD Sender: No OFD packet to send [22:55:03]OFD Sender: No OFD packet to send [22:55:08]OFD Sender: No OFD packet to send [22:55:13]OFD Sender: No OFD packet to send [22:55:18]OFD Sender: No OFD packet to send [22:55:23]OFD Sender: No OFD packet to send [22:55:28]OFD Sender: No OFD packet to send [22:55:33]OFD Sender: No OFD packet to send [22:55:38]OFD Sender: No OFD packet to send [22:55:43]OFD Sender: No OFD packet to send [22:55:48]OFD Sender: No OFD packet to send [22:55:51]accept exits with 9 [22:55:51]New connection [22:55:51]New thread 3066473828 created [22:55:51]Thread 3066617188 joined [22:55:51]Waiting for new connection... [22:55:51] Sock 9.Parse request [22:55:51]Sock 9.Check first char [22:55:51]Sock 9.First char is OK [22:55:51]request: POST /json_proto HTTP/1.0 [22:55:51]Method: POST [22:55:51]URL: /json_proto [22:55:51]Method is POST - this is cgi request [22:55:51]url: /json_proto [22:55:51]query_string will be loaded in cgi processing [22:55:51]execute_cgi json_proto POST (null) [22:55:51]execute_cgi path=json_proto method=POST [22:55:51]POST find Content-Length [22:55:51]Host: 172.17.55.133:8080 [22:55:51]Content-Length: 678 [22:55:51]Content-Type: application/json [22:55:51] [22:55:51]POST finish read [22:55:51]Found Content-Length = 678 [22:55:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:51]execute_script... [22:55: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)1036555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:51]POST & json_proto [22:55:51]process_json_proto [22:55:51]json parsed OK: [22:55:51]protocol is kg_v1.0 [22:55:51]action value=close_receipt [22:55:51]process_action close_receipt [22:55:51]cmd_close_receipt [22:55:51]MH_GetDate [22:55:51]Write to MH i2c: F0 00 00 B6 DD 82 [22:55:51]Write i2c OK [22:55:51]MH_I2C_Read... [22:55:51]Read from MH i2c: F0 [22:55:51]MH_I2C_Read... [22:55:51]Read from MH i2c: F0 09 00 [22:55:51]MH_I2C_Read... [22:55:51]Read from MH i2c: F0 09 00 B6 DD 00 FE 7B C2 66 34 48 D8 65 E5 [22:55:51]GetLastDocTimeStamp 1724021172 [22:55:51]current date 1724021758 [22:55:51]FM_GetShiftState [22:55:51]SAM_PROTO_GetShiftState [22:55:51]wFMCommunicate request_size=4 [22:55:51]MH_SAM_APDU [22:55:51]CAPDU: 80 13 01 00 [22:55:51]Write to MH i2c: E2 08 00 B7 DD 80 13 01 00 00 00 00 00 11 [22:55:51]Write i2c OK [22:55:51]MH_I2C_Read... [22:55:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:51]Read from MH i2c: E2 [22:55:51]MH_I2C_Read... [22:55:51]Read from MH i2c: E2 0E 00 [22:55:51]MH_I2C_Read... [22:55:51]Read from MH i2c: E2 0E 00 B7 DD 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 4E [22:55:51]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:55:51]wFMCommunicate OK [22:55:51]SAM_PROTO_GetShiftState done [22:55:51]FM_GetShiftState done [22:55:51]opened in 1723940556 [22:55:51]opened+sec_in_day 1724026956 [22:55:51]quantity*price = 50036 [22:55:51]sum+1 = 50037 [22:55:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 558 18.08.2024 22:55 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261000 ФПД: 118831366596570 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T225558&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261000&fm=118831366596570&tin=02508201610067®Number=0000000000091865&sum=50000 [22:55:52]StoreToDocumentArchive [22:55:52]shift 449 fd 261000 [22:55:52]save to /storage/0449/doc_00261000 [22:55:52]save last doc name /storage/0449/doc_00261000 to /storage/kkm_last_doc_name [22:55:52]save OK [22:55:52]Clear old archive folders... [22:55:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:55:52]tlvbuf is 00432F60 [22:55:52]SAM_PROTO_ClearQueue [22:55:52]wFMCommunicate request_size=4 [22:55:52]MH_SAM_APDU [22:55:52]CAPDU: 80 09 00 00 [22:55:52]Write to MH i2c: E2 08 00 C4 DD 80 09 00 00 00 00 00 00 13 [22:55:52]Write i2c OK [22:55:52]MH_I2C_Read... [22:55:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:55:52]Read from MH i2c: E2 [22:55:52]MH_I2C_Read... [22:55:52]Read from MH i2c: E2 03 00 [22:55:52]MH_I2C_Read... [22:55:52]Read from MH i2c: E2 03 00 C4 DD 00 90 00 15 [22:55:52]RAPDU: 90 00 [22:55:52]wFMCommunicate OK [22:55:52]SAM_PROTO_ClearQueue done [22:55:52]KKMCreateOFDPacket [22:55:52]OFDProtocolAddRootSTLVToBuf [22:55:52]FM_MakeSignedData [22:55:52]FM_MakeSignedData [22:55:52]SAM_PROTO_SignData [22:55:52]wFMCommunicate request_size=4 [22:55:52]MH_SAM_APDU [22:55:52]CAPDU: 80 0D 01 02 [22:55:52]Write to MH i2c: E2 08 00 C5 DD 80 0D 01 02 00 00 00 00 1B [22:55:52]Write i2c OK [22:55:52]MH_I2C_Read... [22:55:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:55:52]Read from MH i2c: E2 [22:55:52]MH_I2C_Read... [22:55:52]Read from MH i2c: E2 03 00 [22:55:52]MH_I2C_Read... [22:55:52]Read from MH i2c: E2 03 00 C5 DD 00 90 00 16 [22:55:52]RAPDU: 90 00 [22:55:52]wFMCommunicate OK [22:55:52]wFMCommunicate request_size=255 [22:55:52]MH_SAM_APDU [22:55:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2E 02 00 00 F4 03 04 00 FE 7B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 88 FB 03 00 35 04 06 00 6C [22:55:52]Write to MH i2c: E2 02 01 C6 DD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2E 02 00 00 F4 03 04 00 FE 7B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 88 FB 03 00 35 04 06 00 6C 00 00 1D [22:55:52]Write i2c OK [22:55:52]MH_I2C_Read... [22:55:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:55:52]Read from MH i2c: E2 [22:55:52]MH_I2C_Read... [22:55:52]Read from MH i2c: E2 03 00 [22:55:52]MH_I2C_Read... [22:55:52]Read from MH i2c: E2 03 00 C6 DD 00 90 00 17 [22:55:52]RAPDU: 90 00 [22:55:52]wFMCommunicate OK [22:55:52]wFMCommunicate request_size=10 [22:55:52]MH_SAM_APDU [22:55:52]CAPDU: 80 0D 02 02 05 13 95 64 E7 DA [22:55:52]Write to MH i2c: E2 0D 00 C7 DD 80 0D 02 02 05 00 13 95 64 E7 DA 00 00 F5 [22:55:52]Write i2c OK [22:55:52]MH_I2C_Read... [22:55:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:55:52]Read from MH i2c: E2 [22:55:52]MH_I2C_Read... [22:55:52]Read from MH i2c: E2 03 00 [22:55:52]MH_I2C_Read... [22:55:52]Read from MH i2c: E2 03 00 C7 DD 00 90 00 18 [22:55:52]RAPDU: 90 00 [22:55:52]wFMCommunicate OK [22:55:52]wFMCommunicate request_size=4 [22:55:52]MH_SAM_APDU [22:55:52]CAPDU: 80 0D 03 02 [22:55:52]Write to MH i2c: E2 08 00 C8 DD 80 0D 03 02 00 00 00 00 20 [22:55:52]Write i2c OK [22:55:52]MH_I2C_Read... [22:55:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:55:52]Read from MH i2c: E2 [22:55:52]MH_I2C_Read... [22:55:52]Read from MH i2c: E2 0B 00 [22:55:52]MH_I2C_Read... [22:55:52]Read from MH i2c: E2 0B 00 C8 DD 00 8D 1B B7 40 EA 45 F3 63 90 00 45 [22:55:52]RAPDU: 8D 1B B7 40 EA 45 F3 63 90 00 [22:55:52]wFMCommunicate OK [22:55:52]SAM_PROTO_SignData done [22:55:52]FM_MakeSignedData done [22:55:52]CreateOFDProtocolMessage [22:55:52]wFMCommunicate request_size=4 [22:55:52]MH_SAM_APDU [22:55:52]CAPDU: 80 11 00 00 [22:55:52]Write to MH i2c: E2 08 00 C9 DD 80 11 00 00 00 00 00 00 20 [22:55:52]Write i2c OK [22:55:52]MH_I2C_Read... [22:55:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:52]Read from MH i2c: E2 [22:55:52]MH_I2C_Read... [22:55:52]Read from MH i2c: E2 17 00 [22:55:52]MH_I2C_Read... [22:55:52]Read from MH i2c: E2 17 00 C9 DD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 6D [22:55:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:55:52]wFMCommunicate OK [22:55:52]CreateOFDProtocolMessage done [22:55:52]OFDSenderStorePacket 261000 [22:55:52]StoreOFDPacket docnum=261000 [22:55:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 28 85 07 01 58 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2E 02 00 00 F4 03 04 00 FE 7B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 88 FB 03 00 35 04 06 00 6C 13 95 64 E7 DA 8D 1B B7 40 EA 45 F3 63 [22:55:52]CheckFolder [22:55:52]dirname=/storage/ofd_packets [22:55:52]CheckFolder done [22:55:52]ProducePacketName [22:55:52]name=ofd_packets/00261000 [22:55:52]NVStorageSaveData ofd_packets/00261000 [22:55:52]File name is /storage/ofd_packets/00261000 [22:55:52]Write 301 bytes [22:55:52]NVStorageSaveData done [22:55:52]OFDSenderStorePacket done [22:55:52]KKMCreateOFDPacket done [22:55:52]NVStorageSaveData kkm_last_timestamp [22:55:52]File name is /storage/kkm_last_timestamp [22:55:52]Write 4 bytes [22:55:52]NVStorageSaveData done [22:55:52]ExternCall_PrintAddStr [22:55:52]wPrintStart [22:55:52]Write to MH i2c: 01 00 00 CA DD A7 [22:55:52]Write i2c OK [22:55:52]MH_I2C_Read... [22:55:52]Read from MH i2c: 01 [22:55:52]MH_I2C_Read... [22:55:52]Read from MH i2c: 01 07 00 [22:55:52]MH_I2C_Read... [22:55:52]Read from MH i2c: 01 07 00 CA DD 00 00 00 00 00 FF 0F BC [22:55:52]RasterBufferAndPrint [22:55:52]line Счет N : (1)1036555 [22:55:52]line ИНН: 02508201610067 [22:55:52]line Контрольно-Кассовый Чек [22:55:52]line ПРОДАЖА [22:55:52]line ТРК (МРК, ГНК) : 32 [22:55:52]line Товар: 2710124130 [22:55:52]line Аи-92-К-5 [22:55:52]line 7.380 * 67.80 [22:55:52]line = 500.36 [22:55:52]line НДС 12% НСП 1% [22:55:52]line > о реализуемом товаре [22:55:52]line ОКРУГЛЕНИЕ: -0.36 [22:55:52]line ИТОГО: 500.00 [22:55:52]line Внесено: 500.00 [22:55:52]line СДАЧА: 0.00 [22:55:52]line НСП 1% : 4.43 [22:55:52]line НДС 12% : 53.14 [22:55:52]line Наличными: 500.00 [22:55:52]line Безнал.: 0.00 [22:55:52]line Место: АЗС № 94 "Партнер Нефть" [22:55:52]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [22:55:52]line СНО: Общий режим [22:55:52]line Чек 558 18.08.2024 22:55 [22:55:52]line Смена: 449 ФФД: 1.0 [22:55:52]line ЗНМ: 0300000099 [22:55:52]line РНМ: 0000000000091865 [22:55:52]line Версия ККМ: 001 [22:55:52]line ФМ: 0000000000871820 [22:55:52]line ФД: 261000 [22:55:52]line ФПД: 118831366596570 [22:55:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T225558&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261000&fm=118831366596570&tin=02508201610067®Number=0000000000091865&sum=50000 [22:55:52]written 0, free lines is 4095 [22:55:52]OFD Sender: Processing packet 261000 [packets to send 192, broken 191] [22:55:52]ProducePacketName [22:55:52]name=ofd_packets/00261000 [22:55:52]OFD Sender: To server: pG, [22:55:52]CommunicateWithHost lk.salyk.kg:30040 [22:55:52]ConnectInit lk.salyk.kg [22:55:52]Connected sock=10 [22:55:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 28 85 07 01 58 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2E 02 00 00 F4 03 04 00 FE 7B C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 88 FB 03 00 35 04 06 00 6C 13 95 64 E7 DA 8D 1B B7 40 EA 45 F3 63 [22:55: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 30 4F 00 00 00 BF EB 47 00 FF 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 30 10 04 04 00 88 FB 03 00 F4 03 04 00 51 25 C2 66 B6 04 01 00 00 F3 E8 75 B7 47 CB A0 5F [22:55:53]CommunicateWithHost err = 0 [22:55:53]CheckOFDResponse [22:55:53]1017 (14) - 77093643461234 [22:55:53]1041 (16) - 0000000000871820 [22:55:53]1040 (4) - 261000 [22:55:53]1012 (4) - 18.08.2024 16:46 [22:55:53]1206 (1) - 0 [22:55:53]OFD Sender: Remove packet 261000 [22:55:53]ProducePacketName [22:55:53]name=ofd_packets/00261000 [22:55:53]NVStorageDeleteData [22:55:53]Write to MH i2c: 01 00 00 F5 DD D2 [22:55:53]Write i2c OK [22:55:53]MH_I2C_Read... [22:55:53]Read from MH i2c: 01 [22:55:53]MH_I2C_Read... [22:55:53]Read from MH i2c: 01 07 00 [22:55:53]MH_I2C_Read... [22:55:53]Read from MH i2c: 01 07 00 F5 DD 00 00 00 00 00 57 0C 3C [22:55:53]RasterBufferAndPrint [22:55:53]line [22:55:53]line [22:55:53]line [22:55:53]line [22:55:53]line [22:55:53]written 0, free lines is 3163 [22:55:53]MH_Cut [22:55:53]Write to MH i2c: D1 01 00 FC DD 01 AB [22:55:53]Write i2c OK [22:55:53]MH_I2C_Read... [22:55:53]Read from MH i2c: D1 [22:55:53]MH_I2C_Read... [22:55:53]Read from MH i2c: D1 01 00 [22:55:53]MH_I2C_Read... [22:55:53]Read from MH i2c: D1 01 00 FC DD 00 AA [22:55:53]Write to MH i2c: 01 00 00 FD DD DA [22:55:53]Write i2c OK [22:55:53]MH_I2C_Read... [22:55:53]OFD Sender: No OFD packet to send [22:55:54]*** Cut start [22:55:54]*** Purtial cut [22:55:54]*** Stage 1: CUTSNS_PIN = 1 [22:55:56]Read from MH i2c: 01 [22:55:56]MH_I2C_Read... [22:55:56]*** Stop cut motor [22:55:56]*** Cut end [22:55:56]Read from MH i2c: 01 07 00 [22:55:56]MH_I2C_Read... [22:55:56]Read from MH i2c: 01 07 00 FD DD 00 00 00 00 00 FF 0F EF [22:55:56]process_action close_receipt done [22:55:56]requested_data is exist [22:55:56]produce_requested_data [22:55:56]requested_item fm.sn is exist - process it [22:55:56]wFMCommunicate request_size=4 [22:55:56]MH_SAM_APDU [22:55:56]CAPDU: 80 11 00 00 [22:55:56]Write to MH i2c: E2 08 00 FE DD 80 11 00 00 00 00 00 00 55 [22:55:56]Write i2c OK [22:55:56]MH_I2C_Read... [22:55:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:56]Read from MH i2c: E2 [22:55:56]MH_I2C_Read... [22:55:56]Read from MH i2c: E2 17 00 [22:55:56]MH_I2C_Read... [22:55:56]Read from MH i2c: E2 17 00 FE DD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A2 [22:55:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:55:56]wFMCommunicate OK [22:55:56]requested_item fd.num is exist - process it [22:55:56]SAM_PROTO_GetFieldsCounters [22:55:56]wFMCommunicate request_size=4 [22:55:56]MH_SAM_APDU [22:55:56]CAPDU: 80 13 00 00 [22:55:56]Write to MH i2c: E2 08 00 FF DD 80 13 00 00 00 00 00 00 58 [22:55:56]Write i2c OK [22:55:56]MH_I2C_Read... [22:55:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:55:56]Read from MH i2c: E2 [22:55:56]MH_I2C_Read... [22:55:56]Read from MH i2c: E2 62 00 [22:55:56]MH_I2C_Read... [22:55:56]Read from MH i2c: E2 62 00 FF DD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 88 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 2E 02 00 00 5E 04 04 00 2E 02 00 00 57 04 04 00 2F 02 00 00 19 04 04 00 00 00 00 00 90 00 4F [22:55: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 88 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 2E 02 00 00 5E 04 04 00 2E 02 00 00 57 04 04 00 2F 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:55:56]wFMCommunicate OK [22:55:56]SAM_PROTO_GetFieldsCounters done [22:55:56]requested_item shift.num is exist - process it [22:55:56]requested_item shift.opened is exist - process it [22:55:56]req_shift_opened [22:55:56]FM_GetShiftState [22:55:56]SAM_PROTO_GetShiftState [22:55:56]wFMCommunicate request_size=4 [22:55:56]MH_SAM_APDU [22:55:56]CAPDU: 80 13 01 00 [22:55:56]Write to MH i2c: E2 08 00 00 DE 80 13 01 00 00 00 00 00 5B [22:55:56]Write i2c OK [22:55:56]MH_I2C_Read... [22:55:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:56]Read from MH i2c: E2 [22:55:56]MH_I2C_Read... [22:55:56]Read from MH i2c: E2 0E 00 [22:55:56]MH_I2C_Read... [22:55:56]Read from MH i2c: E2 0E 00 00 DE 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 98 [22:55:56]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:55:56]wFMCommunicate OK [22:55:56]SAM_PROTO_GetShiftState done [22:55:56]FM_GetShiftState done [22:55:56]req_shift_opened done [22:55:56]requested_item shift.open_date is exist - process it [22:55:56]req_shift_open_date [22:55:56]req_shift_open_date done [22:55:56]produce_requested_data done [22:55:56]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261000,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [22:55:56]process_action_free close_receipt [22:55:56]json_value_free [22:55:56]json_value_free done [22:55:56]process_json_proto returns [22:55:56]Send response to host [22:55:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261000,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [22:55:56]free response buf [22:55:56]execute_script done [22:55:56]execute_script returns [22:55:56]free content buf [22:55:56]Sock 9.Close socket [22:55:56]Sock 9.Thread stoped [22:55:58]OFD Sender: No OFD packet to send [22:56:03]OFD Sender: No OFD packet to send [22:56:08]OFD Sender: No OFD packet to send [22:56:13]OFD Sender: No OFD packet to send [22:56:18]OFD Sender: No OFD packet to send [22:56:23]OFD Sender: No OFD packet to send [22:56:28]OFD Sender: No OFD packet to send [22:56:33]OFD Sender: No OFD packet to send [22:56:34]accept exits with 7 [22:56:34]New connection [22:56:34]New thread 3066617188 created [22:56:34]Thread 3066473828 joined [22:56:34]Waiting for new connection... [22:56:34] Sock 7.Parse request [22:56:34]Sock 7.Check first char [22:56:34]Sock 7.First char is OK [22:56:34]request: POST /json_proto HTTP/1.0 [22:56:34]Method: POST [22:56:34]URL: /json_proto [22:56:34]Method is POST - this is cgi request [22:56:34]url: /json_proto [22:56:34]query_string will be loaded in cgi processing [22:56:34]execute_cgi json_proto POST (null) [22:56:34]execute_cgi path=json_proto method=POST [22:56:34]POST find Content-Length [22:56:34]Host: 172.17.55.133:8080 [22:56:34]Content-Length: 678 [22:56:34]Content-Type: application/json [22:56:34] [22:56:34]POST finish read [22:56:34]Found Content-Length = 678 [22:56:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:56:34]execute_script... [22:56: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)1036556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:56:34]POST & json_proto [22:56:34]process_json_proto [22:56:34]json parsed OK: [22:56:34]protocol is kg_v1.0 [22:56:34]action value=close_receipt [22:56:34]process_action close_receipt [22:56:34]cmd_close_receipt [22:56:34]MH_GetDate [22:56:34]Write to MH i2c: F0 00 00 01 DE CE [22:56:34]Write i2c OK [22:56:34]MH_I2C_Read... [22:56:34]Read from MH i2c: F0 [22:56:34]MH_I2C_Read... [22:56:34]Read from MH i2c: F0 09 00 [22:56:34]MH_I2C_Read... [22:56:34]Read from MH i2c: F0 09 00 01 DE 00 29 7C C2 66 34 48 D8 65 5D [22:56:34]GetLastDocTimeStamp 1724021758 [22:56:34]current date 1724021801 [22:56:34]FM_GetShiftState [22:56:34]SAM_PROTO_GetShiftState [22:56:34]wFMCommunicate request_size=4 [22:56:34]MH_SAM_APDU [22:56:34]CAPDU: 80 13 01 00 [22:56:34]Write to MH i2c: E2 08 00 02 DE 80 13 01 00 00 00 00 00 5D [22:56:34]Write i2c OK [22:56:34]MH_I2C_Read... [22:56:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:34]Read from MH i2c: E2 [22:56:34]MH_I2C_Read... [22:56:34]Read from MH i2c: E2 0E 00 [22:56:34]MH_I2C_Read... [22:56:34]Read from MH i2c: E2 0E 00 02 DE 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 9A [22:56:34]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:56:34]wFMCommunicate OK [22:56:34]SAM_PROTO_GetShiftState done [22:56:34]FM_GetShiftState done [22:56:34]opened in 1723940556 [22:56:34]opened+sec_in_day 1724026956 [22:56:34]quantity*price = 60003 [22:56:34]sum+1 = 60004 [22:56:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 559 18.08.2024 22:56 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261001 ФПД: 16143199636634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T225641&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261001&fm=16143199636634&tin=02508201610067®Number=0000000000091865&sum=60000 [22:56:35]StoreToDocumentArchive [22:56:35]shift 449 fd 261001 [22:56:35]save to /storage/0449/doc_00261001 [22:56:35]save last doc name /storage/0449/doc_00261001 to /storage/kkm_last_doc_name [22:56:35]save OK [22:56:35]Clear old archive folders... [22:56:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:56:35]tlvbuf is 00336450 [22:56:35]SAM_PROTO_ClearQueue [22:56:35]wFMCommunicate request_size=4 [22:56:35]MH_SAM_APDU [22:56:35]CAPDU: 80 09 00 00 [22:56:35]Write to MH i2c: E2 08 00 0F DE 80 09 00 00 00 00 00 00 5F [22:56:35]Write i2c OK [22:56:35]MH_I2C_Read... [22:56:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:56:35]Read from MH i2c: E2 [22:56:35]MH_I2C_Read... [22:56:35]Read from MH i2c: E2 03 00 [22:56:35]MH_I2C_Read... [22:56:35]Read from MH i2c: E2 03 00 0F DE 00 90 00 61 [22:56:35]RAPDU: 90 00 [22:56:35]wFMCommunicate OK [22:56:35]SAM_PROTO_ClearQueue done [22:56:35]KKMCreateOFDPacket [22:56:35]OFDProtocolAddRootSTLVToBuf [22:56:35]FM_MakeSignedData [22:56:35]FM_MakeSignedData [22:56:35]SAM_PROTO_SignData [22:56:35]wFMCommunicate request_size=4 [22:56:35]MH_SAM_APDU [22:56:35]CAPDU: 80 0D 01 02 [22:56:35]Write to MH i2c: E2 08 00 10 DE 80 0D 01 02 00 00 00 00 67 [22:56:35]Write i2c OK [22:56:35]MH_I2C_Read... [22:56:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:56:35]Read from MH i2c: E2 [22:56:35]MH_I2C_Read... [22:56:35]Read from MH i2c: E2 03 00 [22:56:35]MH_I2C_Read... [22:56:35]Read from MH i2c: E2 03 00 10 DE 00 90 00 62 [22:56:35]RAPDU: 90 00 [22:56:35]wFMCommunicate OK [22:56:35]wFMCommunicate request_size=255 [22:56:35]MH_SAM_APDU [22:56:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 02 00 00 F4 03 04 00 29 7C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 89 FB 03 00 35 04 06 00 0E [22:56:35]Write to MH i2c: E2 02 01 11 DE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 02 00 00 F4 03 04 00 29 7C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 89 FB 03 00 35 04 06 00 0E 00 00 00 [22:56:35]Write i2c OK [22:56:35]MH_I2C_Read... [22:56:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:35]Read from MH i2c: E2 [22:56:35]MH_I2C_Read... [22:56:35]Read from MH i2c: E2 03 00 [22:56:35]MH_I2C_Read... [22:56:35]Read from MH i2c: E2 03 00 11 DE 00 90 00 63 [22:56:35]RAPDU: 90 00 [22:56:35]wFMCommunicate OK [22:56:35]wFMCommunicate request_size=10 [22:56:35]MH_SAM_APDU [22:56:35]CAPDU: 80 0D 02 02 05 AE A1 AE 0C 9A [22:56:35]Write to MH i2c: E2 0D 00 12 DE 80 0D 02 02 05 00 AE A1 AE 0C 9A 00 00 17 [22:56:35]Write i2c OK [22:56:35]MH_I2C_Read... [22:56:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:35]Read from MH i2c: E2 [22:56:35]MH_I2C_Read... [22:56:35]Read from MH i2c: E2 03 00 [22:56:35]MH_I2C_Read... [22:56:35]Read from MH i2c: E2 03 00 12 DE 00 90 00 64 [22:56:35]RAPDU: 90 00 [22:56:35]wFMCommunicate OK [22:56:35]wFMCommunicate request_size=4 [22:56:35]MH_SAM_APDU [22:56:35]CAPDU: 80 0D 03 02 [22:56:35]Write to MH i2c: E2 08 00 13 DE 80 0D 03 02 00 00 00 00 6C [22:56:35]Write i2c OK [22:56:35]MH_I2C_Read... [22:56:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:56:35]Read from MH i2c: E2 [22:56:35]MH_I2C_Read... [22:56:35]Read from MH i2c: E2 0B 00 [22:56:35]MH_I2C_Read... [22:56:35]Read from MH i2c: E2 0B 00 13 DE 00 B2 00 1D 5F 2B F3 BB D9 90 00 4D [22:56:35]RAPDU: B2 00 1D 5F 2B F3 BB D9 90 00 [22:56:35]wFMCommunicate OK [22:56:35]SAM_PROTO_SignData done [22:56:35]FM_MakeSignedData done [22:56:35]CreateOFDProtocolMessage [22:56:35]wFMCommunicate request_size=4 [22:56:35]MH_SAM_APDU [22:56:35]CAPDU: 80 11 00 00 [22:56:35]Write to MH i2c: E2 08 00 14 DE 80 11 00 00 00 00 00 00 6C [22:56:35]Write i2c OK [22:56:35]MH_I2C_Read... [22:56:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:36]Read from MH i2c: E2 [22:56:36]MH_I2C_Read... [22:56:36]Read from MH i2c: E2 17 00 [22:56:36]MH_I2C_Read... [22:56:36]Read from MH i2c: E2 17 00 14 DE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B9 [22:56:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:56:36]wFMCommunicate OK [22:56:36]CreateOFDProtocolMessage done [22:56:36]OFDSenderStorePacket 261001 [22:56:36]StoreOFDPacket docnum=261001 [22:56:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 28 F8 07 01 1A 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 02 00 00 F4 03 04 00 29 7C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 89 FB 03 00 35 04 06 00 0E AE A1 AE 0C 9A B2 00 1D 5F 2B F3 BB D9 [22:56:36]CheckFolder [22:56:36]dirname=/storage/ofd_packets [22:56:36]CheckFolder done [22:56:36]ProducePacketName [22:56:36]name=ofd_packets/00261001 [22:56:36]NVStorageSaveData ofd_packets/00261001 [22:56:36]File name is /storage/ofd_packets/00261001 [22:56:36]Write 301 bytes [22:56:36]NVStorageSaveData done [22:56:36]OFDSenderStorePacket done [22:56:36]KKMCreateOFDPacket done [22:56:36]NVStorageSaveData kkm_last_timestamp [22:56:36]File name is /storage/kkm_last_timestamp [22:56:36]Write 4 bytes [22:56:36]NVStorageSaveData done [22:56:36]ExternCall_PrintAddStr [22:56:36]wPrintStart [22:56:36]Write to MH i2c: 01 00 00 15 DE F3 [22:56:36]Write i2c OK [22:56:36]MH_I2C_Read... [22:56:36]Read from MH i2c: 01 [22:56:36]MH_I2C_Read... [22:56:36]Read from MH i2c: 01 07 00 [22:56:36]MH_I2C_Read... [22:56:36]Read from MH i2c: 01 07 00 15 DE 00 00 00 00 00 FF 0F 08 [22:56:36]RasterBufferAndPrint [22:56:36]line Счет N : (1)1036556 [22:56:36]line ИНН: 02508201610067 [22:56:36]line Контрольно-Кассовый Чек [22:56:36]line ПРОДАЖА [22:56:36]line ТРК (МРК, ГНК) : 42 [22:56:36]line Товар: 2710124130 [22:56:36]line Аи-92-К-5 [22:56:36]line 8.850 * 67.80 [22:56:36]line = 600.03 [22:56:36]line НДС 12% НСП 1% [22:56:36]line > о реализуемом товаре [22:56:36]line ОКРУГЛЕНИЕ: -0.03 [22:56:36]line ИТОГО: 600.00 [22:56:36]line Внесено: 600.00 [22:56:36]line СДАЧА: 0.00 [22:56:36]line НСП 1% : 5.31 [22:56:36]line НДС 12% : 63.72 [22:56:36]line Наличными: 600.00 [22:56:36]line Безнал.: 0.00 [22:56:36]line Место: АЗС № 94 "Партнер Нефть" [22:56:36]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [22:56:36]line СНО: Общий режим [22:56:36]line Чек 559 18.08.2024 22:56 [22:56:36]line Смена: 449 ФФД: 1.0 [22:56:36]line ЗНМ: 0300000099 [22:56:36]line РНМ: 0000000000091865 [22:56:36]line Версия ККМ: 001 [22:56:36]line ФМ: 0000000000871820 [22:56:36]line ФД: 261001 [22:56:36]line ФПД: 16143199636634 [22:56:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T225641&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261001&fm=16143199636634&tin=02508201610067®Number=0000000000091865&sum=60000 [22:56:36]written 0, free lines is 4095 [22:56:36]OFD Sender: Processing packet 261001 [packets to send 192, broken 191] [22:56:36]ProducePacketName [22:56:36]name=ofd_packets/00261001 [22:56:36]OFD Sender: To server: pG, [22:56:36]CommunicateWithHost lk.salyk.kg:30040 [22:56:36]ConnectInit lk.salyk.kg [22:56:36]Connected sock=10 [22:56: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 30 0F 01 00 00 28 F8 07 01 1A 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 02 00 00 F4 03 04 00 29 7C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 89 FB 03 00 35 04 06 00 0E AE A1 AE 0C 9A B2 00 1D 5F 2B F3 BB D9 [22:56:36]Write to MH i2c: 01 00 00 40 DE 1E [22:56:36]Write i2c OK [22:56:36]MH_I2C_Read... [22:56:36]Read from MH i2c: 01 [22:56:36]MH_I2C_Read... [22:56:36]Read from MH i2c: 01 07 00 [22:56:36]MH_I2C_Read... [22:56:36]Read from MH i2c: 01 07 00 40 DE 00 00 00 00 00 64 0C 95 [22:56:36]RasterBufferAndPrint [22:56:36]line [22:56:36]line [22:56:36]line [22:56:36]line [22:56:36]line [22:56:36]written 0, free lines is 3177 [22:56:36]MH_Cut [22:56:36]Write to MH i2c: D1 01 00 47 DE 01 F7 [22:56:36]Write i2c OK [22:56:36]MH_I2C_Read... [22:56:36]Read from MH i2c: D1 [22:56:36]MH_I2C_Read... [22:56:36]Read from MH i2c: D1 01 00 [22:56:36]MH_I2C_Read... [22:56:36]Read from MH i2c: D1 01 00 47 DE 00 F6 [22:56:36]Write to MH i2c: 01 00 00 48 DE 26 [22:56:36]Write i2c OK [22:56:36]MH_I2C_Read... [22:56: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 30 4F 00 00 00 1C C6 47 00 DB 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 30 10 04 04 00 89 FB 03 00 F4 03 04 00 7D 25 C2 66 B6 04 01 00 00 E4 F8 AF F7 93 86 D3 B6 [22:56:36]CommunicateWithHost err = 0 [22:56:36]CheckOFDResponse [22:56:36]1017 (14) - 77093643461234 [22:56:36]1041 (16) - 0000000000871820 [22:56:36]1040 (4) - 261001 [22:56:36]1012 (4) - 18.08.2024 16:46 [22:56:36]1206 (1) - 0 [22:56:36]OFD Sender: Remove packet 261001 [22:56:36]ProducePacketName [22:56:36]name=ofd_packets/00261001 [22:56:36]NVStorageDeleteData [22:56:37]OFD Sender: No OFD packet to send [22:56:37]*** Cut start [22:56:37]*** Purtial cut [22:56:37]*** Stage 1: CUTSNS_PIN = 1 [22:56:39]Read from MH i2c: 01 [22:56:39]MH_I2C_Read... [22:56:39]*** Stop cut motor [22:56:39]*** Cut end [22:56:39]Read from MH i2c: 01 07 00 [22:56:39]MH_I2C_Read... [22:56:39]Read from MH i2c: 01 07 00 48 DE 00 00 00 00 00 FF 0F 3B [22:56:39]process_action close_receipt done [22:56:39]requested_data is exist [22:56:39]produce_requested_data [22:56:39]requested_item fm.sn is exist - process it [22:56:39]wFMCommunicate request_size=4 [22:56:39]MH_SAM_APDU [22:56:39]CAPDU: 80 11 00 00 [22:56:39]Write to MH i2c: E2 08 00 49 DE 80 11 00 00 00 00 00 00 A1 [22:56:39]Write i2c OK [22:56:39]MH_I2C_Read... [22:56:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:39]Read from MH i2c: E2 [22:56:39]MH_I2C_Read... [22:56:39]Read from MH i2c: E2 17 00 [22:56:39]MH_I2C_Read... [22:56:39]Read from MH i2c: E2 17 00 49 DE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 EE [22:56:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:56:39]wFMCommunicate OK [22:56:39]requested_item fd.num is exist - process it [22:56:39]SAM_PROTO_GetFieldsCounters [22:56:39]wFMCommunicate request_size=4 [22:56:39]MH_SAM_APDU [22:56:39]CAPDU: 80 13 00 00 [22:56:39]Write to MH i2c: E2 08 00 4A DE 80 13 00 00 00 00 00 00 A4 [22:56:39]Write i2c OK [22:56:39]MH_I2C_Read... [22:56:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:56:39]Read from MH i2c: E2 [22:56:39]MH_I2C_Read... [22:56:39]Read from MH i2c: E2 62 00 [22:56:39]MH_I2C_Read... [22:56:39]Read from MH i2c: E2 62 00 4A DE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 89 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 2F 02 00 00 5E 04 04 00 2F 02 00 00 57 04 04 00 30 02 00 00 19 04 04 00 00 00 00 00 90 00 9F [22:56: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 89 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 2F 02 00 00 5E 04 04 00 2F 02 00 00 57 04 04 00 30 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:56:39]wFMCommunicate OK [22:56:39]SAM_PROTO_GetFieldsCounters done [22:56:39]requested_item shift.num is exist - process it [22:56:39]requested_item shift.opened is exist - process it [22:56:39]req_shift_opened [22:56:39]FM_GetShiftState [22:56:39]SAM_PROTO_GetShiftState [22:56:39]wFMCommunicate request_size=4 [22:56:39]MH_SAM_APDU [22:56:39]CAPDU: 80 13 01 00 [22:56:39]Write to MH i2c: E2 08 00 4B DE 80 13 01 00 00 00 00 00 A6 [22:56:39]Write i2c OK [22:56:39]MH_I2C_Read... [22:56:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:40]Read from MH i2c: E2 [22:56:40]MH_I2C_Read... [22:56:40]Read from MH i2c: E2 0E 00 [22:56:40]MH_I2C_Read... [22:56:40]Read from MH i2c: E2 0E 00 4B DE 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E3 [22:56:40]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:56:40]wFMCommunicate OK [22:56:40]SAM_PROTO_GetShiftState done [22:56:40]FM_GetShiftState done [22:56:40]req_shift_opened done [22:56:40]requested_item shift.open_date is exist - process it [22:56:40]req_shift_open_date [22:56:40]req_shift_open_date done [22:56:40]produce_requested_data done [22:56:40]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261001,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [22:56:40]process_action_free close_receipt [22:56:40]json_value_free [22:56:40]json_value_free done [22:56:40]process_json_proto returns [22:56:40]Send response to host [22:56:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261001,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [22:56:40]free response buf [22:56:40]execute_script done [22:56:40]execute_script returns [22:56:40]free content buf [22:56:40]Sock 7.Close socket [22:56:40]Sock 7.Thread stoped [22:56:42]OFD Sender: No OFD packet to send [22:56:47]OFD Sender: No OFD packet to send [22:56:52]OFD Sender: No OFD packet to send [22:56:57]OFD Sender: No OFD packet to send [22:57:02]OFD Sender: No OFD packet to send [22:57:07]OFD Sender: No OFD packet to send [22:57:12]OFD Sender: No OFD packet to send [22:57:17]OFD Sender: No OFD packet to send [22:57:22]OFD Sender: No OFD packet to send [22:57:27]OFD Sender: No OFD packet to send [22:57:32]OFD Sender: No OFD packet to send [22:57:37]OFD Sender: No OFD packet to send [22:57:42]OFD Sender: No OFD packet to send [22:57:47]OFD Sender: No OFD packet to send [22:57:52]OFD Sender: No OFD packet to send [22:57:57]OFD Sender: No OFD packet to send [22:58:02]OFD Sender: No OFD packet to send [22:58:07]OFD Sender: No OFD packet to send [22:58:12]OFD Sender: No OFD packet to send [22:58:17]OFD Sender: No OFD packet to send [22:58:22]OFD Sender: No OFD packet to send [22:58:27]OFD Sender: No OFD packet to send [22:58:32]OFD Sender: No OFD packet to send [22:58:37]OFD Sender: No OFD packet to send [22:58:42]OFD Sender: No OFD packet to send [22:58:47]OFD Sender: No OFD packet to send [22:58:52]OFD Sender: No OFD packet to send [22:58:52]accept exits with 9 [22:58:52]New connection [22:58:52]New thread 3066473828 created [22:58:52]Thread 3066617188 joined [22:58:52]Waiting for new connection... [22:58:52] Sock 9.Parse request [22:58:52]Sock 9.Check first char [22:58:52]Sock 9.First char is OK [22:58:52]request: POST /json_proto HTTP/1.0 [22:58:52]Method: POST [22:58:52]URL: /json_proto [22:58:52]Method is POST - this is cgi request [22:58:52]url: /json_proto [22:58:52]query_string will be loaded in cgi processing [22:58:52]execute_cgi json_proto POST (null) [22:58:52]execute_cgi path=json_proto method=POST [22:58:52]POST find Content-Length [22:58:52]Host: 172.17.55.133:8080 [22:58:52]Content-Length: 802 [22:58:52]Content-Type: application/json [22:58:52] [22:58:52]POST finish read [22:58:52]Found Content-Length = 802 [22:58:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 12.530, "sum" : 849.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 849.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:58:52]execute_script... [22:58:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 12.530, "sum" : 849.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 849.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:58:52]POST & json_proto [22:58:52]process_json_proto [22:58:52]json parsed OK: [22:58:52]protocol is kg_v1.0 [22:58:52]action value=close_receipt [22:58:52]process_action close_receipt [22:58:52]cmd_close_receipt [22:58:52]MH_GetDate [22:58:52]Write to MH i2c: F0 00 00 4C DE 19 [22:58:52]Write i2c OK [22:58:52]MH_I2C_Read... [22:58:52]Read from MH i2c: F0 [22:58:52]MH_I2C_Read... [22:58:52]Read from MH i2c: F0 09 00 [22:58:52]MH_I2C_Read... [22:58:52]Read from MH i2c: F0 09 00 4C DE 00 B4 7C C2 66 34 48 D8 65 33 [22:58:52]GetLastDocTimeStamp 1724021801 [22:58:52]current date 1724021940 [22:58:52]FM_GetShiftState [22:58:52]SAM_PROTO_GetShiftState [22:58:52]wFMCommunicate request_size=4 [22:58:52]MH_SAM_APDU [22:58:52]CAPDU: 80 13 01 00 [22:58:52]Write to MH i2c: E2 08 00 4D DE 80 13 01 00 00 00 00 00 A8 [22:58:52]Write i2c OK [22:58:52]MH_I2C_Read... [22:58:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:58:52]Read from MH i2c: E2 [22:58:52]MH_I2C_Read... [22:58:52]Read from MH i2c: E2 0E 00 [22:58:52]MH_I2C_Read... [22:58:52]Read from MH i2c: E2 0E 00 4D DE 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 E5 [22:58:52]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:58:52]wFMCommunicate OK [22:58:52]SAM_PROTO_GetShiftState done [22:58:52]FM_GetShiftState done [22:58:52]opened in 1723940556 [22:58:52]opened+sec_in_day 1724026956 [22:58:52]quantity*price = 84953 [22:58:52]sum+1 = 84954 [22:58:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 849.53 НСП 1% : 7.52 НДС 12% : 90.22 Наличными: 0.00 Безнал.: 849.53 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 560 18.08.2024 22:59 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 261002 ФПД: 28759441831242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T225900&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261002&fm=28759441831242&tin=02508201610067®Number=0000000000091865&sum=84953 [22:58:53]StoreToDocumentArchive [22:58:53]shift 449 fd 261002 [22:58:53]save to /storage/0449/doc_00261002 [22:58:53]save last doc name /storage/0449/doc_00261002 to /storage/kkm_last_doc_name [22:58:53]save OK [22:58:53]Clear old archive folders... [22:58:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:58:53]tlvbuf is 004A20D0 [22:58:53]SAM_PROTO_ClearQueue [22:58:53]wFMCommunicate request_size=4 [22:58:53]MH_SAM_APDU [22:58:53]CAPDU: 80 09 00 00 [22:58:53]Write to MH i2c: E2 08 00 5A DE 80 09 00 00 00 00 00 00 AA [22:58:53]Write i2c OK [22:58:53]MH_I2C_Read... [22:58:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:58:53]Read from MH i2c: E2 [22:58:53]MH_I2C_Read... [22:58:53]Read from MH i2c: E2 03 00 [22:58:53]MH_I2C_Read... [22:58:53]Read from MH i2c: E2 03 00 5A DE 00 90 00 AC [22:58:53]RAPDU: 90 00 [22:58:53]wFMCommunicate OK [22:58:53]SAM_PROTO_ClearQueue done [22:58:53]KKMCreateOFDPacket [22:58:53]OFDProtocolAddRootSTLVToBuf [22:58:53]FM_MakeSignedData [22:58:53]FM_MakeSignedData [22:58:53]SAM_PROTO_SignData [22:58:53]wFMCommunicate request_size=4 [22:58:53]MH_SAM_APDU [22:58:53]CAPDU: 80 0D 01 02 [22:58:53]Write to MH i2c: E2 08 00 5B DE 80 0D 01 02 00 00 00 00 B2 [22:58:53]Write i2c OK [22:58:53]MH_I2C_Read... [22:58:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:58:53]Read from MH i2c: E2 [22:58:53]MH_I2C_Read... [22:58:53]Read from MH i2c: E2 03 00 [22:58:53]MH_I2C_Read... [22:58:53]Read from MH i2c: E2 03 00 5B DE 00 90 00 AD [22:58:53]RAPDU: 90 00 [22:58:53]wFMCommunicate OK [22:58:53]wFMCommunicate request_size=255 [22:58:53]MH_SAM_APDU [22:58:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 30 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D9 4B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 4B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D9 4B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 02 00 00 F4 03 04 00 B4 7C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8A FB 03 00 35 04 06 00 1A [22:58:53]Write to MH i2c: E2 02 01 5C DE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 30 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D9 4B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 4B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D9 4B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 02 00 00 F4 03 04 00 B4 7C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8A FB 03 00 35 04 06 00 1A 00 00 22 [22:58:53]Write i2c OK [22:58:53]MH_I2C_Read... [22:58:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:58:54]Read from MH i2c: E2 [22:58:54]MH_I2C_Read... [22:58:54]Read from MH i2c: E2 03 00 [22:58:54]MH_I2C_Read... [22:58:54]Read from MH i2c: E2 03 00 5C DE 00 90 00 AE [22:58:54]RAPDU: 90 00 [22:58:54]wFMCommunicate OK [22:58:54]wFMCommunicate request_size=10 [22:58:54]MH_SAM_APDU [22:58:54]CAPDU: 80 0D 02 02 05 28 14 50 75 4A [22:58:54]Write to MH i2c: E2 0D 00 5D DE 80 0D 02 02 05 00 28 14 50 75 4A 00 00 0A [22:58:54]Write i2c OK [22:58:54]MH_I2C_Read... [22:58:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:58:54]Read from MH i2c: E2 [22:58:54]MH_I2C_Read... [22:58:54]Read from MH i2c: E2 03 00 [22:58:54]MH_I2C_Read... [22:58:54]Read from MH i2c: E2 03 00 5D DE 00 90 00 AF [22:58:54]RAPDU: 90 00 [22:58:54]wFMCommunicate OK [22:58:54]wFMCommunicate request_size=4 [22:58:54]MH_SAM_APDU [22:58:54]CAPDU: 80 0D 03 02 [22:58:54]Write to MH i2c: E2 08 00 5E DE 80 0D 03 02 00 00 00 00 B7 [22:58:54]Write i2c OK [22:58:54]MH_I2C_Read... [22:58:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:58:54]Read from MH i2c: E2 [22:58:54]MH_I2C_Read... [22:58:54]Read from MH i2c: E2 0B 00 [22:58:54]MH_I2C_Read... [22:58:54]Read from MH i2c: E2 0B 00 5E DE 00 82 DB A0 18 0D B5 DF 08 90 00 76 [22:58:54]RAPDU: 82 DB A0 18 0D B5 DF 08 90 00 [22:58:54]wFMCommunicate OK [22:58:54]SAM_PROTO_SignData done [22:58:54]FM_MakeSignedData done [22:58:54]CreateOFDProtocolMessage [22:58:54]wFMCommunicate request_size=4 [22:58:54]MH_SAM_APDU [22:58:54]CAPDU: 80 11 00 00 [22:58:54]Write to MH i2c: E2 08 00 5F DE 80 11 00 00 00 00 00 00 B7 [22:58:54]Write i2c OK [22:58:54]MH_I2C_Read... [22:58:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:58:54]Read from MH i2c: E2 [22:58:54]MH_I2C_Read... [22:58:54]Read from MH i2c: E2 17 00 [22:58:54]MH_I2C_Read... [22:58:54]Read from MH i2c: E2 17 00 5F DE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 04 [22:58:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:58:54]wFMCommunicate OK [22:58:54]CreateOFDProtocolMessage done [22:58:54]OFDSenderStorePacket 261002 [22:58:54]StoreOFDPacket docnum=261002 [22:58:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 17 8A 07 01 56 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 30 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D9 4B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 4B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D9 4B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 02 00 00 F4 03 04 00 B4 7C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8A FB 03 00 35 04 06 00 1A 28 14 50 75 4A 82 DB A0 18 0D B5 DF 08 [22:58:54]CheckFolder [22:58:54]dirname=/storage/ofd_packets [22:58:54]CheckFolder done [22:58:54]ProducePacketName [22:58:54]name=ofd_packets/00261002 [22:58:54]NVStorageSaveData ofd_packets/00261002 [22:58:54]File name is /storage/ofd_packets/00261002 [22:58:54]Write 301 bytes [22:58:54]NVStorageSaveData done [22:58:54]OFDSenderStorePacket done [22:58:54]KKMCreateOFDPacket done [22:58:54]NVStorageSaveData kkm_last_timestamp [22:58:54]File name is /storage/kkm_last_timestamp [22:58:54]Write 4 bytes [22:58:54]NVStorageSaveData done [22:58:54]ExternCall_PrintAddStr [22:58:54]wPrintStart [22:58:54]Write to MH i2c: 01 00 00 60 DE 3E [22:58:54]Write i2c OK [22:58:54]MH_I2C_Read... [22:58:54]Read from MH i2c: 01 [22:58:54]MH_I2C_Read... [22:58:54]Read from MH i2c: 01 07 00 [22:58:54]MH_I2C_Read... [22:58:54]Read from MH i2c: 01 07 00 60 DE 00 00 00 00 00 FF 0F 53 [22:58:54]RasterBufferAndPrint [22:58:54]line Счет N : (1)1036557 [22:58:54]line ИНН: 02508201610067 [22:58:54]line Контрольно-Кассовый Чек [22:58:54]line ПРОДАЖА [22:58:54]line ТРК (МРК, ГНК) : 32 [22:58:54]line Товар: 2710124130 [22:58:54]line Аи-92-К-5 [22:58:54]line 12.530 * 67.80 [22:58:54]line = 849.53 [22:58:54]line НДС 12% НСП 1% [22:58:54]line > о реализуемом товаре [22:58:54]line ИТОГО: 849.53 [22:58:54]line НСП 1% : 7.52 [22:58:54]line НДС 12% : 90.22 [22:58:54]line Наличными: 0.00 [22:58:54]line Безнал.: 849.53 [22:58:54]line Место: АЗС № 94 "Партнер Нефть" [22:58:54]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [22:58:54]line СНО: Общий режим [22:58:54]line Чек 560 18.08.2024 22:59 [22:58:54]line Смена: 449 ФФД: 1.0 [22:58:54]line ЗНМ: 0300000099 [22:58:54]line РНМ: 0000000000091865 [22:58:54]line Версия ККМ: 001 [22:58:54]line Платежная система: O! деньги [22:58:54]line ФМ: 0000000000871820 [22:58:54]line ФД: 261002 [22:58:54]line ФПД: 28759441831242 [22:58:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T225900&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261002&fm=28759441831242&tin=02508201610067®Number=0000000000091865&sum=84953 [22:58:54]written 0, free lines is 4095 [22:58:54]OFD Sender: Processing packet 261002 [packets to send 192, broken 191] [22:58:54]ProducePacketName [22:58:54]name=ofd_packets/00261002 [22:58:54]OFD Sender: To server: pG, [22:58:54]CommunicateWithHost lk.salyk.kg:30040 [22:58:54]ConnectInit lk.salyk.kg [22:58:54]Connected sock=10 [22:58:54]Data 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 30 0F 01 00 00 17 8A 07 01 56 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 30 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D9 4B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 4B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D9 4B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 02 00 00 F4 03 04 00 B4 7C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8A FB 03 00 35 04 06 00 1A 28 14 50 75 4A 82 DB A0 18 0D B5 DF 08 [22:58:54]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 30 4F 00 00 00 48 2C 47 00 FA 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 30 10 04 04 00 8A FB 03 00 F4 03 04 00 07 26 C2 66 B6 04 01 00 00 BD 8B A2 D8 99 20 68 5B [22:58:54]CommunicateWithHost err = 0 [22:58:54]CheckOFDResponse [22:58:54]1017 (14) - 77093643461234 [22:58:54]1041 (16) - 0000000000871820 [22:58:54]1040 (4) - 261002 [22:58:54]1012 (4) - 18.08.2024 16:49 [22:58:54]1206 (1) - 0 [22:58:54]OFD Sender: Remove packet 261002 [22:58:54]ProducePacketName [22:58:54]name=ofd_packets/00261002 [22:58:54]NVStorageDeleteData [22:58:54]Write to MH i2c: 01 00 00 8A DE 68 [22:58:54]Write i2c OK [22:58:54]MH_I2C_Read... [22:58:54]Read from MH i2c: 01 [22:58:54]MH_I2C_Read... [22:58:54]Read from MH i2c: 01 07 00 [22:58:54]MH_I2C_Read... [22:58:54]Read from MH i2c: 01 07 00 8A DE 00 00 00 00 00 6C 0C E7 [22:58:54]RasterBufferAndPrint [22:58:54]line [22:58:54]line [22:58:54]line [22:58:54]line [22:58:54]line [22:58:54]written 0, free lines is 3183 [22:58:54]MH_Cut [22:58:54]Write to MH i2c: D1 01 00 91 DE 01 41 [22:58:54]Write i2c OK [22:58:54]MH_I2C_Read... [22:58:54]Read from MH i2c: D1 [22:58:54]MH_I2C_Read... [22:58:54]Read from MH i2c: D1 01 00 [22:58:54]MH_I2C_Read... [22:58:54]Read from MH i2c: D1 01 00 91 DE 00 40 [22:58:54]Write to MH i2c: 01 00 00 92 DE 70 [22:58:54]Write i2c OK [22:58:54]MH_I2C_Read... [22:58:55]OFD Sender: No OFD packet to send [22:58:56]*** Cut start [22:58:56]*** Purtial cut [22:58:56]*** Stage 1: CUTSNS_PIN = 1 [22:58:58]Read from MH i2c: 01 [22:58:58]MH_I2C_Read... [22:58:58]*** Stop cut motor [22:58:58]*** Cut end [22:58:58]Read from MH i2c: 01 07 00 [22:58:58]MH_I2C_Read... [22:58:58]Read from MH i2c: 01 07 00 92 DE 00 00 00 00 00 FF 0F 85 [22:58:58]process_action close_receipt done [22:58:58]requested_data is exist [22:58:58]produce_requested_data [22:58:58]requested_item fm.sn is exist - process it [22:58:58]wFMCommunicate request_size=4 [22:58:58]MH_SAM_APDU [22:58:58]CAPDU: 80 11 00 00 [22:58:58]Write to MH i2c: E2 08 00 93 DE 80 11 00 00 00 00 00 00 EB [22:58:58]Write i2c OK [22:58:58]MH_I2C_Read... [22:58:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:58:58]Read from MH i2c: E2 [22:58:58]MH_I2C_Read... [22:58:58]Read from MH i2c: E2 17 00 [22:58:58]MH_I2C_Read... [22:58:58]Read from MH i2c: E2 17 00 93 DE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 38 [22:58:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:58:58]wFMCommunicate OK [22:58:58]requested_item fd.num is exist - process it [22:58:58]SAM_PROTO_GetFieldsCounters [22:58:58]wFMCommunicate request_size=4 [22:58:58]MH_SAM_APDU [22:58:58]CAPDU: 80 13 00 00 [22:58:58]Write to MH i2c: E2 08 00 94 DE 80 13 00 00 00 00 00 00 EE [22:58:58]Write i2c OK [22:58:58]MH_I2C_Read... [22:58:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:58:58]Read from MH i2c: E2 [22:58:58]MH_I2C_Read... [22:58:58]Read from MH i2c: E2 62 00 [22:58:58]MH_I2C_Read... [22:58:58]Read from MH i2c: E2 62 00 94 DE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 8A FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 30 02 00 00 5E 04 04 00 30 02 00 00 57 04 04 00 31 02 00 00 19 04 04 00 00 00 00 00 90 00 ED [22:58: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 8A FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 30 02 00 00 5E 04 04 00 30 02 00 00 57 04 04 00 31 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:58:58]wFMCommunicate OK [22:58:58]SAM_PROTO_GetFieldsCounters done [22:58:58]requested_item shift.num is exist - process it [22:58:58]requested_item shift.opened is exist - process it [22:58:58]req_shift_opened [22:58:58]FM_GetShiftState [22:58:58]SAM_PROTO_GetShiftState [22:58:58]wFMCommunicate request_size=4 [22:58:58]MH_SAM_APDU [22:58:58]CAPDU: 80 13 01 00 [22:58:58]Write to MH i2c: E2 08 00 95 DE 80 13 01 00 00 00 00 00 F0 [22:58:58]Write i2c OK [22:58:58]MH_I2C_Read... [22:58:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:58:58]Read from MH i2c: E2 [22:58:58]MH_I2C_Read... [22:58:58]Read from MH i2c: E2 0E 00 [22:58:58]MH_I2C_Read... [22:58:58]Read from MH i2c: E2 0E 00 95 DE 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 2D [22:58:58]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:58:58]wFMCommunicate OK [22:58:58]SAM_PROTO_GetShiftState done [22:58:58]FM_GetShiftState done [22:58:58]req_shift_opened done [22:58:58]requested_item shift.open_date is exist - process it [22:58:58]req_shift_open_date [22:58:58]req_shift_open_date done [22:58:58]produce_requested_data done [22:58:58]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261002,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [22:58:58]process_action_free close_receipt [22:58:58]json_value_free [22:58:58]json_value_free done [22:58:58]process_json_proto returns [22:58:58]Send response to host [22:58:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261002,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [22:58:58]free response buf [22:58:58]execute_script done [22:58:58]execute_script returns [22:58:58]free content buf [22:58:58]Sock 9.Close socket [22:58:58]Sock 9.Thread stoped [22:59:00]OFD Sender: No OFD packet to send [22:59:05]OFD Sender: No OFD packet to send [22:59:10]OFD Sender: No OFD packet to send [22:59:15]OFD Sender: No OFD packet to send [22:59:17]accept exits with 7 [22:59:17]New connection [22:59:17]New thread 3066617188 created [22:59:17]Thread 3066473828 joined [22:59:17]Waiting for new connection... [22:59:17] Sock 7.Parse request [22:59:17]Sock 7.Check first char [22:59:17]Sock 7.First char is OK [22:59:17]request: POST /json_proto HTTP/1.0 [22:59:17]Method: POST [22:59:17]URL: /json_proto [22:59:17]Method is POST - this is cgi request [22:59:17]url: /json_proto [22:59:17]query_string will be loaded in cgi processing [22:59:17]execute_cgi json_proto POST (null) [22:59:17]execute_cgi path=json_proto method=POST [22:59:17]POST find Content-Length [22:59:17]Host: 172.17.55.133:8080 [22:59:17]Content-Length: 678 [22:59:17]Content-Type: application/json [22:59:17] [22:59:17]POST finish read [22:59:17]Found Content-Length = 678 [22:59:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 6.490, "sum" : 440.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 440.00, "total" : 440.00, "payments": [ { "type": 0, "sum" : 440.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:17]execute_script... [22:59: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)1036558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 6.490, "sum" : 440.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 440.00, "total" : 440.00, "payments": [ { "type": 0, "sum" : 440.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:17]POST & json_proto [22:59:17]process_json_proto [22:59:17]json parsed OK: [22:59:17]protocol is kg_v1.0 [22:59:17]action value=close_receipt [22:59:17]process_action close_receipt [22:59:17]cmd_close_receipt [22:59:17]MH_GetDate [22:59:17]Write to MH i2c: F0 00 00 96 DE 63 [22:59:17]Write i2c OK [22:59:17]MH_I2C_Read... [22:59:17]Read from MH i2c: F0 [22:59:17]MH_I2C_Read... [22:59:17]Read from MH i2c: F0 09 00 [22:59:17]MH_I2C_Read... [22:59:17]Read from MH i2c: F0 09 00 96 DE 00 CD 7C C2 66 34 48 D8 65 96 [22:59:17]GetLastDocTimeStamp 1724021940 [22:59:17]current date 1724021965 [22:59:17]FM_GetShiftState [22:59:17]SAM_PROTO_GetShiftState [22:59:17]wFMCommunicate request_size=4 [22:59:17]MH_SAM_APDU [22:59:17]CAPDU: 80 13 01 00 [22:59:17]Write to MH i2c: E2 08 00 97 DE 80 13 01 00 00 00 00 00 F2 [22:59:17]Write i2c OK [22:59:17]MH_I2C_Read... [22:59:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:17]Read from MH i2c: E2 [22:59:17]MH_I2C_Read... [22:59:17]Read from MH i2c: E2 0E 00 [22:59:17]MH_I2C_Read... [22:59:17]Read from MH i2c: E2 0E 00 97 DE 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 2F [22:59:17]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:59:17]wFMCommunicate OK [22:59:17]SAM_PROTO_GetShiftState done [22:59:17]FM_GetShiftState done [22:59:17]opened in 1723940556 [22:59:17]opened+sec_in_day 1724026956 [22:59:17]quantity*price = 44002 [22:59:17]sum+1 = 44003 [22:59:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 440.00 Внесено: 440.00 СДАЧА: 0.00 НСП 1% : 3.89 НДС 12% : 46.73 Наличными: 440.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 561 18.08.2024 22:59 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261003 ФПД: 80677913766180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T225925&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261003&fm=80677913766180&tin=02508201610067®Number=0000000000091865&sum=44000 [22:59:19]StoreToDocumentArchive [22:59:19]shift 449 fd 261003 [22:59:19]save to /storage/0449/doc_00261003 [22:59:19]save last doc name /storage/0449/doc_00261003 to /storage/kkm_last_doc_name [22:59:19]save OK [22:59:19]Clear old archive folders... [22:59:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:59:19]tlvbuf is 0078C930 [22:59:19]SAM_PROTO_ClearQueue [22:59:19]wFMCommunicate request_size=4 [22:59:19]MH_SAM_APDU [22:59:19]CAPDU: 80 09 00 00 [22:59:19]Write to MH i2c: E2 08 00 A4 DE 80 09 00 00 00 00 00 00 F4 [22:59:19]Write i2c OK [22:59:19]MH_I2C_Read... [22:59:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:59:19]Read from MH i2c: E2 [22:59:19]MH_I2C_Read... [22:59:19]Read from MH i2c: E2 03 00 [22:59:19]MH_I2C_Read... [22:59:19]Read from MH i2c: E2 03 00 A4 DE 00 90 00 F6 [22:59:19]RAPDU: 90 00 [22:59:19]wFMCommunicate OK [22:59:19]SAM_PROTO_ClearQueue done [22:59:19]KKMCreateOFDPacket [22:59:19]OFDProtocolAddRootSTLVToBuf [22:59:19]FM_MakeSignedData [22:59:19]FM_MakeSignedData [22:59:19]SAM_PROTO_SignData [22:59:19]wFMCommunicate request_size=4 [22:59:19]MH_SAM_APDU [22:59:19]CAPDU: 80 0D 01 02 [22:59:19]Write to MH i2c: E2 08 00 A5 DE 80 0D 01 02 00 00 00 00 FC [22:59:19]Write i2c OK [22:59:19]MH_I2C_Read... [22:59:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:59:19]Read from MH i2c: E2 [22:59:19]MH_I2C_Read... [22:59:19]Read from MH i2c: E2 03 00 [22:59:19]MH_I2C_Read... [22:59:19]Read from MH i2c: E2 03 00 A5 DE 00 90 00 F7 [22:59:19]RAPDU: 90 00 [22:59:19]wFMCommunicate OK [22:59:19]wFMCommunicate request_size=255 [22:59:19]MH_SAM_APDU [22:59:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E2 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 12 00 00 00 00 07 04 06 00 E0 AB 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 02 00 00 F4 03 04 00 CD 7C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8B FB 03 00 35 04 06 00 49 [22:59:19]Write to MH i2c: E2 02 01 A6 DE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E2 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 12 00 00 00 00 07 04 06 00 E0 AB 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 02 00 00 F4 03 04 00 CD 7C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8B FB 03 00 35 04 06 00 49 00 00 C1 [22:59:19]Write i2c OK [22:59:19]MH_I2C_Read... [22:59:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:19]Read from MH i2c: E2 [22:59:19]MH_I2C_Read... [22:59:19]Read from MH i2c: E2 03 00 [22:59:19]MH_I2C_Read... [22:59:19]Read from MH i2c: E2 03 00 A6 DE 00 90 00 F8 [22:59:19]RAPDU: 90 00 [22:59:19]wFMCommunicate OK [22:59:19]wFMCommunicate request_size=10 [22:59:19]MH_SAM_APDU [22:59:19]CAPDU: 80 0D 02 02 05 60 4A 64 29 24 [22:59:19]Write to MH i2c: E2 0D 00 A7 DE 80 0D 02 02 05 00 60 4A 64 29 24 00 00 64 [22:59:19]Write i2c OK [22:59:19]MH_I2C_Read... [22:59:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:19]Read from MH i2c: E2 [22:59:19]MH_I2C_Read... [22:59:19]Read from MH i2c: E2 03 00 [22:59:19]MH_I2C_Read... [22:59:19]Read from MH i2c: E2 03 00 A7 DE 00 90 00 F9 [22:59:19]RAPDU: 90 00 [22:59:19]wFMCommunicate OK [22:59:19]wFMCommunicate request_size=4 [22:59:19]MH_SAM_APDU [22:59:19]CAPDU: 80 0D 03 02 [22:59:19]Write to MH i2c: E2 08 00 A8 DE 80 0D 03 02 00 00 00 00 01 [22:59:19]Write i2c OK [22:59:19]MH_I2C_Read... [22:59:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:59:19]Read from MH i2c: E2 [22:59:19]MH_I2C_Read... [22:59:19]Read from MH i2c: E2 0B 00 [22:59:19]MH_I2C_Read... [22:59:19]Read from MH i2c: E2 0B 00 A8 DE 00 E5 28 3B D4 A8 BD 22 3C 90 00 E1 [22:59:19]RAPDU: E5 28 3B D4 A8 BD 22 3C 90 00 [22:59:19]wFMCommunicate OK [22:59:19]SAM_PROTO_SignData done [22:59:19]FM_MakeSignedData done [22:59:19]CreateOFDProtocolMessage [22:59:19]wFMCommunicate request_size=4 [22:59:19]MH_SAM_APDU [22:59:19]CAPDU: 80 11 00 00 [22:59:19]Write to MH i2c: E2 08 00 A9 DE 80 11 00 00 00 00 00 00 01 [22:59:19]Write i2c OK [22:59:19]MH_I2C_Read... [22:59:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:19]Read from MH i2c: E2 [22:59:19]MH_I2C_Read... [22:59:19]Read from MH i2c: E2 17 00 [22:59:19]MH_I2C_Read... [22:59:19]Read from MH i2c: E2 17 00 A9 DE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 4E [22:59:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:59:19]wFMCommunicate OK [22:59:19]CreateOFDProtocolMessage done [22:59:19]OFDSenderStorePacket 261003 [22:59:19]StoreOFDPacket docnum=261003 [22:59:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 46 E4 07 01 86 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E2 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 12 00 00 00 00 07 04 06 00 E0 AB 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 02 00 00 F4 03 04 00 CD 7C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8B FB 03 00 35 04 06 00 49 60 4A 64 29 24 E5 28 3B D4 A8 BD 22 3C [22:59:19]CheckFolder [22:59:19]dirname=/storage/ofd_packets [22:59:19]CheckFolder done [22:59:19]ProducePacketName [22:59:19]name=ofd_packets/00261003 [22:59:19]NVStorageSaveData ofd_packets/00261003 [22:59:19]File name is /storage/ofd_packets/00261003 [22:59:19]Write 301 bytes [22:59:19]NVStorageSaveData done [22:59:19]OFDSenderStorePacket done [22:59:19]KKMCreateOFDPacket done [22:59:19]NVStorageSaveData kkm_last_timestamp [22:59:19]File name is /storage/kkm_last_timestamp [22:59:19]Write 4 bytes [22:59:19]NVStorageSaveData done [22:59:19]ExternCall_PrintAddStr [22:59:19]wPrintStart [22:59:19]Write to MH i2c: 01 00 00 AA DE 88 [22:59:19]Write i2c OK [22:59:19]MH_I2C_Read... [22:59:19]Read from MH i2c: 01 [22:59:19]MH_I2C_Read... [22:59:19]Read from MH i2c: 01 07 00 [22:59:19]MH_I2C_Read... [22:59:19]Read from MH i2c: 01 07 00 AA DE 00 00 00 00 00 FF 0F 9D [22:59:19]RasterBufferAndPrint [22:59:19]line Счет N : (1)1036558 [22:59:19]line ИНН: 02508201610067 [22:59:19]line Контрольно-Кассовый Чек [22:59:19]line ПРОДАЖА [22:59:19]line ТРК (МРК, ГНК) : 12 [22:59:19]line Товар: 2710124130 [22:59:19]line Аи-92-К-5 [22:59:19]line 6.490 * 67.80 [22:59:19]line = 440.02 [22:59:19]line НДС 12% НСП 1% [22:59:19]line > о реализуемом товаре [22:59:19]line ОКРУГЛЕНИЕ: -0.02 [22:59:19]line ИТОГО: 440.00 [22:59:19]line Внесено: 440.00 [22:59:19]line СДАЧА: 0.00 [22:59:19]line НСП 1% : 3.89 [22:59:19]line НДС 12% : 46.73 [22:59:19]line Наличными: 440.00 [22:59:19]line Безнал.: 0.00 [22:59:19]line Место: АЗС № 94 "Партнер Нефть" [22:59:19]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [22:59:19]line СНО: Общий режим [22:59:19]line Чек 561 18.08.2024 22:59 [22:59:19]line Смена: 449 ФФД: 1.0 [22:59:19]line ЗНМ: 0300000099 [22:59:19]line РНМ: 0000000000091865 [22:59:19]line Версия ККМ: 001 [22:59:19]line ФМ: 0000000000871820 [22:59:19]line ФД: 261003 [22:59:19]line ФПД: 80677913766180 [22:59:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T225925&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261003&fm=80677913766180&tin=02508201610067®Number=0000000000091865&sum=44000 [22:59:19]OFD Sender: Processing packet 261003 [packets to send 192, broken 191] [22:59:19]ProducePacketName [22:59:19]name=ofd_packets/00261003 [22:59:19]OFD Sender: To server: pG, [22:59:19]CommunicateWithHost lk.salyk.kg:30040 [22:59:19]ConnectInit lk.salyk.kg [22:59:19]written 0, free lines is 4095 [22:59:20]Connected sock=10 [22:59: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 30 0F 01 00 00 46 E4 07 01 86 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E2 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 12 00 00 00 00 07 04 06 00 E0 AB 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 02 00 00 F4 03 04 00 CD 7C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8B FB 03 00 35 04 06 00 49 60 4A 64 29 24 E5 28 3B D4 A8 BD 22 3C [22:59: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 30 4F 00 00 00 66 C1 47 00 B5 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 30 10 04 04 00 8B FB 03 00 F4 03 04 00 20 26 C2 66 B6 04 01 00 00 93 B5 5A A9 63 DC 12 B0 [22:59:20]CommunicateWithHost err = 0 [22:59:20]CheckOFDResponse [22:59:20]1017 (14) - 77093643461234 [22:59:20]1041 (16) - 0000000000871820 [22:59:20]1040 (4) - 261003 [22:59:20]1012 (4) - 18.08.2024 16:49 [22:59:20]1206 (1) - 0 [22:59:20]OFD Sender: Remove packet 261003 [22:59:20]ProducePacketName [22:59:20]name=ofd_packets/00261003 [22:59:20]NVStorageDeleteData [22:59:20]Write to MH i2c: 01 00 00 D5 DE B3 [22:59:20]Write i2c OK [22:59:20]MH_I2C_Read... [22:59:20]Read from MH i2c: 01 [22:59:20]MH_I2C_Read... [22:59:20]Read from MH i2c: 01 07 00 [22:59:20]MH_I2C_Read... [22:59:20]Read from MH i2c: 01 07 00 D5 DE 00 00 00 00 00 6C 0C 32 [22:59:20]RasterBufferAndPrint [22:59:20]line [22:59:20]line [22:59:20]line [22:59:20]line [22:59:20]line [22:59:20]written 0, free lines is 3184 [22:59:20]MH_Cut [22:59:20]Write to MH i2c: D1 01 00 DC DE 01 8C [22:59:20]Write i2c OK [22:59:20]MH_I2C_Read... [22:59:20]Read from MH i2c: D1 [22:59:20]MH_I2C_Read... [22:59:20]Read from MH i2c: D1 01 00 [22:59:20]MH_I2C_Read... [22:59:20]Read from MH i2c: D1 01 00 DC DE 00 8B [22:59:20]Write to MH i2c: 01 00 00 DD DE BB [22:59:20]Write i2c OK [22:59:20]MH_I2C_Read... [22:59:20]OFD Sender: No OFD packet to send [22:59:21]*** Cut start [22:59:21]*** Purtial cut [22:59:21]*** Stage 1: CUTSNS_PIN = 1 [22:59:23]Read from MH i2c: 01 [22:59:23]MH_I2C_Read... [22:59:23]*** Stop cut motor [22:59:23]*** Cut end [22:59:23]Read from MH i2c: 01 07 00 [22:59:23]MH_I2C_Read... [22:59:23]Read from MH i2c: 01 07 00 DD DE 00 00 00 00 00 FF 0F D0 [22:59:23]process_action close_receipt done [22:59:23]requested_data is exist [22:59:23]produce_requested_data [22:59:23]requested_item fm.sn is exist - process it [22:59:23]wFMCommunicate request_size=4 [22:59:23]MH_SAM_APDU [22:59:23]CAPDU: 80 11 00 00 [22:59:23]Write to MH i2c: E2 08 00 DE DE 80 11 00 00 00 00 00 00 36 [22:59:23]Write i2c OK [22:59:23]MH_I2C_Read... [22:59:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:23]Read from MH i2c: E2 [22:59:23]MH_I2C_Read... [22:59:23]Read from MH i2c: E2 17 00 [22:59:23]MH_I2C_Read... [22:59:23]Read from MH i2c: E2 17 00 DE DE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 83 [22:59:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [22:59:23]wFMCommunicate OK [22:59:23]requested_item fd.num is exist - process it [22:59:23]SAM_PROTO_GetFieldsCounters [22:59:23]wFMCommunicate request_size=4 [22:59:23]MH_SAM_APDU [22:59:23]CAPDU: 80 13 00 00 [22:59:23]Write to MH i2c: E2 08 00 DF DE 80 13 00 00 00 00 00 00 39 [22:59:23]Write i2c OK [22:59:23]MH_I2C_Read... [22:59:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:59:23]Read from MH i2c: E2 [22:59:23]MH_I2C_Read... [22:59:23]Read from MH i2c: E2 62 00 [22:59:23]MH_I2C_Read... [22:59:23]Read from MH i2c: E2 62 00 DF DE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 8B FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 31 02 00 00 5E 04 04 00 31 02 00 00 57 04 04 00 32 02 00 00 19 04 04 00 00 00 00 00 90 00 3C [22:59: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 8B FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 31 02 00 00 5E 04 04 00 31 02 00 00 57 04 04 00 32 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:59:23]wFMCommunicate OK [22:59:23]SAM_PROTO_GetFieldsCounters done [22:59:23]requested_item shift.num is exist - process it [22:59:23]requested_item shift.opened is exist - process it [22:59:23]req_shift_opened [22:59:23]FM_GetShiftState [22:59:23]SAM_PROTO_GetShiftState [22:59:23]wFMCommunicate request_size=4 [22:59:23]MH_SAM_APDU [22:59:23]CAPDU: 80 13 01 00 [22:59:23]Write to MH i2c: E2 08 00 E0 DE 80 13 01 00 00 00 00 00 3B [22:59:23]Write i2c OK [22:59:23]MH_I2C_Read... [22:59:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:23]Read from MH i2c: E2 [22:59:23]MH_I2C_Read... [22:59:23]Read from MH i2c: E2 0E 00 [22:59:23]MH_I2C_Read... [22:59:23]Read from MH i2c: E2 0E 00 E0 DE 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 78 [22:59:23]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:59:23]wFMCommunicate OK [22:59:23]SAM_PROTO_GetShiftState done [22:59:23]FM_GetShiftState done [22:59:23]req_shift_opened done [22:59:23]requested_item shift.open_date is exist - process it [22:59:23]req_shift_open_date [22:59:23]req_shift_open_date done [22:59:23]produce_requested_data done [22:59:23]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261003,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [22:59:23]process_action_free close_receipt [22:59:23]json_value_free [22:59:23]json_value_free done [22:59:23]process_json_proto returns [22:59:23]Send response to host [22:59:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261003,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [22:59:23]free response buf [22:59:23]execute_script done [22:59:23]execute_script returns [22:59:23]free content buf [22:59:23]Sock 7.Close socket [22:59:23]Sock 7.Thread stoped [22:59:25]OFD Sender: No OFD packet to send [22:59:30]OFD Sender: No OFD packet to send [22:59:35]OFD Sender: No OFD packet to send [22:59:40]OFD Sender: No OFD packet to send [22:59:45]OFD Sender: No OFD packet to send [22:59:50]OFD Sender: No OFD packet to send [22:59:55]OFD Sender: No OFD packet to send [22:59:58]accept exits with 9 [22:59:58]New connection [22:59:58]New thread 3066473828 created [22:59:58]Thread 3066617188 joined [22:59:58]Waiting for new connection... [22:59:58] Sock 9.Parse request [22:59:58]Sock 9.Check first char [22:59:58]Sock 9.First char is OK [22:59:58]request: POST /json_proto HTTP/1.0 [22:59:58]Method: POST [22:59:58]URL: /json_proto [22:59:58]Method is POST - this is cgi request [22:59:58]url: /json_proto [22:59:58]query_string will be loaded in cgi processing [22:59:58]execute_cgi json_proto POST (null) [22:59:58]execute_cgi path=json_proto method=POST [22:59:58]POST find Content-Length [22:59:58]Host: 172.17.55.133:8080 [22:59:58]Content-Length: 683 [22:59:58]Content-Type: application/json [22:59:58] [22:59:58]POST finish read [22:59:58]Found Content-Length = 683 [22:59:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:58]execute_script... [22:59: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)1036559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:58]POST & json_proto [22:59:58]process_json_proto [22:59:58]json parsed OK: [22:59:58]protocol is kg_v1.0 [22:59:58]action value=close_receipt [22:59:58]process_action close_receipt [22:59:58]cmd_close_receipt [22:59:58]MH_GetDate [22:59:58]Write to MH i2c: F0 00 00 E1 DE AE [22:59:58]Write i2c OK [22:59:58]MH_I2C_Read... [22:59:58]Read from MH i2c: F0 [22:59:58]MH_I2C_Read... [22:59:58]Read from MH i2c: F0 09 00 [22:59:58]MH_I2C_Read... [22:59:58]Read from MH i2c: F0 09 00 E1 DE 00 F6 7C C2 66 34 48 D8 65 0A [22:59:58]GetLastDocTimeStamp 1724021965 [22:59:58]current date 1724022006 [22:59:58]FM_GetShiftState [22:59:58]SAM_PROTO_GetShiftState [22:59:58]wFMCommunicate request_size=4 [22:59:58]MH_SAM_APDU [22:59:58]CAPDU: 80 13 01 00 [22:59:58]Write to MH i2c: E2 08 00 E2 DE 80 13 01 00 00 00 00 00 3D [22:59:58]Write i2c OK [22:59:58]MH_I2C_Read... [22:59:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:58]Read from MH i2c: E2 [22:59:58]MH_I2C_Read... [22:59:58]Read from MH i2c: E2 0E 00 [22:59:58]MH_I2C_Read... [22:59:58]Read from MH i2c: E2 0E 00 E2 DE 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 7A [22:59:58]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [22:59:58]wFMCommunicate OK [22:59:58]SAM_PROTO_GetShiftState done [22:59:58]FM_GetShiftState done [22:59:58]opened in 1723940556 [22:59:58]opened+sec_in_day 1724026956 [22:59:58]quantity*price = 40005 [22:59:58]sum+1 = 40006 [22:59:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 562 18.08.2024 23:00 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261004 ФПД: 38624166586258 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T230006&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261004&fm=38624166586258&tin=02508201610067®Number=0000000000091865&sum=40000 [23:00:00]StoreToDocumentArchive [23:00:00]shift 449 fd 261004 [23:00:00]save to /storage/0449/doc_00261004 [23:00:00]save last doc name /storage/0449/doc_00261004 to /storage/kkm_last_doc_name [23:00:00]save OK [23:00:00]Clear old archive folders... [23:00:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:00:00]tlvbuf is 0057B0A0 [23:00:00]SAM_PROTO_ClearQueue [23:00:00]wFMCommunicate request_size=4 [23:00:00]MH_SAM_APDU [23:00:00]CAPDU: 80 09 00 00 [23:00:00]Write to MH i2c: E2 08 00 EF DE 80 09 00 00 00 00 00 00 3F [23:00:00]Write i2c OK [23:00:00]MH_I2C_Read... [23:00:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:00:00]Read from MH i2c: E2 [23:00:00]MH_I2C_Read... [23:00:00]Read from MH i2c: E2 03 00 [23:00:00]MH_I2C_Read... [23:00:00]Read from MH i2c: E2 03 00 EF DE 00 90 00 41 [23:00:00]RAPDU: 90 00 [23:00:00]wFMCommunicate OK [23:00:00]SAM_PROTO_ClearQueue done [23:00:00]KKMCreateOFDPacket [23:00:00]OFDProtocolAddRootSTLVToBuf [23:00:00]FM_MakeSignedData [23:00:00]FM_MakeSignedData [23:00:00]SAM_PROTO_SignData [23:00:00]wFMCommunicate request_size=4 [23:00:00]MH_SAM_APDU [23:00:00]CAPDU: 80 0D 01 02 [23:00:00]Write to MH i2c: E2 08 00 F0 DE 80 0D 01 02 00 00 00 00 47 [23:00:00]Write i2c OK [23:00:00]MH_I2C_Read... [23:00:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:00:00]Read from MH i2c: E2 [23:00:00]MH_I2C_Read... [23:00:00]Read from MH i2c: E2 03 00 [23:00:00]MH_I2C_Read... [23:00:00]Read from MH i2c: E2 03 00 F0 DE 00 90 00 42 [23:00:00]RAPDU: 90 00 [23:00:00]wFMCommunicate OK [23:00:00]wFMCommunicate request_size=255 [23:00:00]MH_SAM_APDU [23:00:00]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 02 00 00 F4 03 04 00 F6 7C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8C FB 03 00 35 04 06 00 [23:00:00]Write to MH i2c: E2 02 01 F1 DE 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 02 00 00 F4 03 04 00 F6 7C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8C FB 03 00 35 04 06 00 00 00 BE [23:00:00]Write i2c OK [23:00:00]MH_I2C_Read... [23:00:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:00]Read from MH i2c: E2 [23:00:00]MH_I2C_Read... [23:00:00]Read from MH i2c: E2 03 00 [23:00:00]MH_I2C_Read... [23:00:00]Read from MH i2c: E2 03 00 F1 DE 00 90 00 43 [23:00:00]RAPDU: 90 00 [23:00:00]wFMCommunicate OK [23:00:00]wFMCommunicate request_size=11 [23:00:00]MH_SAM_APDU [23:00:00]CAPDU: 80 0D 02 02 06 23 20 E3 BA A7 92 [23:00:00]Write to MH i2c: E2 0E 00 F2 DE 80 0D 02 02 06 00 23 20 E3 BA A7 92 00 00 6F [23:00:00]Write i2c OK [23:00:00]MH_I2C_Read... [23:00:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:00]Read from MH i2c: E2 [23:00:00]MH_I2C_Read... [23:00:00]Read from MH i2c: E2 03 00 [23:00:00]MH_I2C_Read... [23:00:00]Read from MH i2c: E2 03 00 F2 DE 00 90 00 44 [23:00:00]RAPDU: 90 00 [23:00:00]wFMCommunicate OK [23:00:00]wFMCommunicate request_size=4 [23:00:00]MH_SAM_APDU [23:00:00]CAPDU: 80 0D 03 02 [23:00:00]Write to MH i2c: E2 08 00 F3 DE 80 0D 03 02 00 00 00 00 4C [23:00:00]Write i2c OK [23:00:00]MH_I2C_Read... [23:00:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:00:00]Read from MH i2c: E2 [23:00:00]MH_I2C_Read... [23:00:00]Read from MH i2c: E2 0B 00 [23:00:00]MH_I2C_Read... [23:00:00]Read from MH i2c: E2 0B 00 F3 DE 00 F9 DE B2 2A C6 83 E4 69 90 00 96 [23:00:00]RAPDU: F9 DE B2 2A C6 83 E4 69 90 00 [23:00:00]wFMCommunicate OK [23:00:00]SAM_PROTO_SignData done [23:00:00]FM_MakeSignedData done [23:00:00]CreateOFDProtocolMessage [23:00:00]wFMCommunicate request_size=4 [23:00:00]MH_SAM_APDU [23:00:00]CAPDU: 80 11 00 00 [23:00:00]Write to MH i2c: E2 08 00 F4 DE 80 11 00 00 00 00 00 00 4C [23:00:00]Write i2c OK [23:00:00]MH_I2C_Read... [23:00:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:00]Read from MH i2c: E2 [23:00:00]MH_I2C_Read... [23:00:00]Read from MH i2c: E2 17 00 [23:00:00]MH_I2C_Read... [23:00:00]Read from MH i2c: E2 17 00 F4 DE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 99 [23:00:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:00:00]wFMCommunicate OK [23:00:00]CreateOFDProtocolMessage done [23:00:00]OFDSenderStorePacket 261004 [23:00:00]StoreOFDPacket docnum=261004 [23:00:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 85 A7 08 01 F5 AD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 02 00 00 F4 03 04 00 F6 7C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8C FB 03 00 35 04 06 00 23 20 E3 BA A7 92 F9 DE B2 2A C6 83 E4 69 [23:00:00]CheckFolder [23:00:00]dirname=/storage/ofd_packets [23:00:00]CheckFolder done [23:00:00]ProducePacketName [23:00:00]name=ofd_packets/00261004 [23:00:00]NVStorageSaveData ofd_packets/00261004 [23:00:00]File name is /storage/ofd_packets/00261004 [23:00:00]Write 302 bytes [23:00:00]NVStorageSaveData done [23:00:00]OFDSenderStorePacket done [23:00:00]KKMCreateOFDPacket done [23:00:00]NVStorageSaveData kkm_last_timestamp [23:00:00]File name is /storage/kkm_last_timestamp [23:00:00]Write 4 bytes [23:00:00]NVStorageSaveData done [23:00:00]ExternCall_PrintAddStr [23:00:00]wPrintStart [23:00:00]Write to MH i2c: 01 00 00 F5 DE D3 [23:00:00]Write i2c OK [23:00:00]MH_I2C_Read... [23:00:00]Read from MH i2c: 01 [23:00:00]MH_I2C_Read... [23:00:00]Read from MH i2c: 01 07 00 [23:00:00]MH_I2C_Read... [23:00:00]Read from MH i2c: 01 07 00 F5 DE 00 00 00 00 00 FF 0F E8 [23:00:00]RasterBufferAndPrint [23:00:00]line Счет N : (1)1036559 [23:00:00]line ИНН: 02508201610067 [23:00:00]line Контрольно-Кассовый Чек [23:00:00]line ПРОДАЖА [23:00:00]line ТРК (МРК, ГНК) : 43 [23:00:00]line Товар: 2710194210 [23:00:00]line ДТ(л)-К-4 [23:00:00]line 5.250 * 76.20 [23:00:00]line = 400.05 [23:00:00]line НДС 12% НСП 1% [23:00:00]line > о реализуемом товаре [23:00:00]line ОКРУГЛЕНИЕ: -0.05 [23:00:00]line ИТОГО: 400.00 [23:00:00]line Внесено: 400.00 [23:00:00]line СДАЧА: 0.00 [23:00:00]line НСП 1% : 3.54 [23:00:00]line НДС 12% : 42.48 [23:00:00]line Наличными: 400.00 [23:00:00]line Безнал.: 0.00 [23:00:00]line Место: АЗС № 94 "Партнер Нефть" [23:00:00]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [23:00:00]line СНО: Общий режим [23:00:00]line Чек 562 18.08.2024 23:00 [23:00:00]line Смена: 449 ФФД: 1.0 [23:00:00]line ЗНМ: 0300000099 [23:00:00]line РНМ: 0000000000091865 [23:00:00]line Версия ККМ: 001 [23:00:00]line ФМ: 0000000000871820 [23:00:00]line ФД: 261004 [23:00:00]line ФПД: 38624166586258 [23:00:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T230006&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261004&fm=38624166586258&tin=02508201610067®Number=0000000000091865&sum=40000 [23:00:00]OFD Sender: Processing packet 261004 [packets to send 192, broken 191] [23:00:00]ProducePacketName [23:00:00]name=ofd_packets/00261004 [23:00:00]OFD Sender: To server: pG, [23:00:00]CommunicateWithHost lk.salyk.kg:30040 [23:00:00]ConnectInit lk.salyk.kg [23:00:00]written 0, free lines is 4095 [23:00:00]Connected sock=10 [23:00: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 30 10 01 00 00 85 A7 08 01 F5 AD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 02 00 00 F4 03 04 00 F6 7C C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8C FB 03 00 35 04 06 00 23 20 E3 BA A7 92 F9 DE B2 2A C6 83 E4 69 [23:00: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 30 4F 00 00 00 1F 60 47 00 FF 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8C FB 03 00 F4 03 04 00 49 26 C2 66 B6 04 01 00 00 A3 54 C4 FE 66 74 CD 53 [23:00:01]CommunicateWithHost err = 0 [23:00:01]CheckOFDResponse [23:00:01]1017 (14) - 77093643461234 [23:00:01]1041 (16) - 0000000000871820 [23:00:01]1040 (4) - 261004 [23:00:01]1012 (4) - 18.08.2024 16:50 [23:00:01]1206 (1) - 0 [23:00:01]OFD Sender: Remove packet 261004 [23:00:01]ProducePacketName [23:00:01]name=ofd_packets/00261004 [23:00:01]NVStorageDeleteData [23:00:01]Write to MH i2c: 01 00 00 20 DF FF [23:00:01]Write i2c OK [23:00:01]MH_I2C_Read... [23:00:01]Read from MH i2c: 01 [23:00:01]MH_I2C_Read... [23:00:01]Read from MH i2c: 01 07 00 [23:00:01]MH_I2C_Read... [23:00:01]Read from MH i2c: 01 07 00 20 DF 00 00 00 00 00 58 0C 6A [23:00:01]RasterBufferAndPrint [23:00:01]line [23:00:01]line [23:00:01]line [23:00:01]line [23:00:01]line [23:00:01]written 0, free lines is 3165 [23:00:01]MH_Cut [23:00:01]Write to MH i2c: D1 01 00 27 DF 01 D8 [23:00:01]Write i2c OK [23:00:01]MH_I2C_Read... [23:00:01]Read from MH i2c: D1 [23:00:01]MH_I2C_Read... [23:00:01]Read from MH i2c: D1 01 00 [23:00:01]MH_I2C_Read... [23:00:01]Read from MH i2c: D1 01 00 27 DF 00 D7 [23:00:01]Write to MH i2c: 01 00 00 28 DF 07 [23:00:01]Write i2c OK [23:00:01]MH_I2C_Read... [23:00:01]OFD Sender: No OFD packet to send [23:00:02]*** Cut start [23:00:02]*** Purtial cut [23:00:02]*** Stage 1: CUTSNS_PIN = 1 [23:00:04]Read from MH i2c: 01 [23:00:04]MH_I2C_Read... [23:00:04]*** Stop cut motor [23:00:04]*** Cut end [23:00:04]Read from MH i2c: 01 07 00 [23:00:04]MH_I2C_Read... [23:00:04]Read from MH i2c: 01 07 00 28 DF 00 00 00 00 00 FF 0F 1C [23:00:04]process_action close_receipt done [23:00:04]requested_data is exist [23:00:04]produce_requested_data [23:00:04]requested_item fm.sn is exist - process it [23:00:04]wFMCommunicate request_size=4 [23:00:04]MH_SAM_APDU [23:00:04]CAPDU: 80 11 00 00 [23:00:04]Write to MH i2c: E2 08 00 29 DF 80 11 00 00 00 00 00 00 82 [23:00:04]Write i2c OK [23:00:04]MH_I2C_Read... [23:00:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:04]Read from MH i2c: E2 [23:00:04]MH_I2C_Read... [23:00:04]Read from MH i2c: E2 17 00 [23:00:04]MH_I2C_Read... [23:00:04]Read from MH i2c: E2 17 00 29 DF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 CF [23:00:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:00:04]wFMCommunicate OK [23:00:04]requested_item fd.num is exist - process it [23:00:04]SAM_PROTO_GetFieldsCounters [23:00:04]wFMCommunicate request_size=4 [23:00:04]MH_SAM_APDU [23:00:04]CAPDU: 80 13 00 00 [23:00:04]Write to MH i2c: E2 08 00 2A DF 80 13 00 00 00 00 00 00 85 [23:00:04]Write i2c OK [23:00:04]MH_I2C_Read... [23:00:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:00:04]Read from MH i2c: E2 [23:00:04]MH_I2C_Read... [23:00:04]Read from MH i2c: E2 62 00 [23:00:04]MH_I2C_Read... [23:00:04]Read from MH i2c: E2 62 00 2A DF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 8C FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 32 02 00 00 5E 04 04 00 32 02 00 00 57 04 04 00 33 02 00 00 19 04 04 00 00 00 00 00 90 00 8C [23:00: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 8C FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 32 02 00 00 5E 04 04 00 32 02 00 00 57 04 04 00 33 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:00:04]wFMCommunicate OK [23:00:04]SAM_PROTO_GetFieldsCounters done [23:00:04]requested_item shift.num is exist - process it [23:00:04]requested_item shift.opened is exist - process it [23:00:04]req_shift_opened [23:00:04]FM_GetShiftState [23:00:04]SAM_PROTO_GetShiftState [23:00:04]wFMCommunicate request_size=4 [23:00:04]MH_SAM_APDU [23:00:04]CAPDU: 80 13 01 00 [23:00:04]Write to MH i2c: E2 08 00 2B DF 80 13 01 00 00 00 00 00 87 [23:00:04]Write i2c OK [23:00:04]MH_I2C_Read... [23:00:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:04]Read from MH i2c: E2 [23:00:04]MH_I2C_Read... [23:00:04]Read from MH i2c: E2 0E 00 [23:00:04]MH_I2C_Read... [23:00:04]Read from MH i2c: E2 0E 00 2B DF 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C4 [23:00:04]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:00:04]wFMCommunicate OK [23:00:04]SAM_PROTO_GetShiftState done [23:00:04]FM_GetShiftState done [23:00:04]req_shift_opened done [23:00:04]requested_item shift.open_date is exist - process it [23:00:04]req_shift_open_date [23:00:04]req_shift_open_date done [23:00:04]produce_requested_data done [23:00:04]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261004,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [23:00:04]process_action_free close_receipt [23:00:04]json_value_free [23:00:04]json_value_free done [23:00:04]process_json_proto returns [23:00:04]Send response to host [23:00:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261004,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [23:00:04]free response buf [23:00:04]execute_script done [23:00:04]execute_script returns [23:00:04]free content buf [23:00:04]Sock 9.Close socket [23:00:04]Sock 9.Thread stoped [23:00:06]OFD Sender: No OFD packet to send [23:00:11]OFD Sender: No OFD packet to send [23:00:16]OFD Sender: No OFD packet to send [23:00:21]OFD Sender: No OFD packet to send [23:00:26]OFD Sender: No OFD packet to send [23:00:31]OFD Sender: No OFD packet to send [23:00:36]OFD Sender: No OFD packet to send [23:00:41]OFD Sender: No OFD packet to send [23:00:43]accept exits with 7 [23:00:43]New connection [23:00:43]New thread 3066617188 created [23:00:43]Thread 3066473828 joined [23:00:43]Waiting for new connection... [23:00:43] Sock 7.Parse request [23:00:43]Sock 7.Check first char [23:00:43]Sock 7.First char is OK [23:00:43]request: POST /json_proto HTTP/1.0 [23:00:43]Method: POST [23:00:43]URL: /json_proto [23:00:43]Method is POST - this is cgi request [23:00:43]url: /json_proto [23:00:43]query_string will be loaded in cgi processing [23:00:43]execute_cgi json_proto POST (null) [23:00:43]execute_cgi path=json_proto method=POST [23:00:43]POST find Content-Length [23:00:43]Host: 172.17.55.133:8080 [23:00:43]Content-Length: 683 [23:00:43]Content-Type: application/json [23:00:43] [23:00:43]POST finish read [23:00:43]Found Content-Length = 683 [23:00:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036560", "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" : 74.20, "quantity" : 22.920, "sum" : 1700.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:00:43]execute_script... [23:00:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036560", "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" : 74.20, "quantity" : 22.920, "sum" : 1700.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:00:43]POST & json_proto [23:00:43]process_json_proto [23:00:43]json parsed OK: [23:00:43]protocol is kg_v1.0 [23:00:43]action value=close_receipt [23:00:43]process_action close_receipt [23:00:43]cmd_close_receipt [23:00:43]MH_GetDate [23:00:43]Write to MH i2c: F0 00 00 2C DF FA [23:00:43]Write i2c OK [23:00:43]MH_I2C_Read... [23:00:43]Read from MH i2c: F0 [23:00:43]MH_I2C_Read... [23:00:43]Read from MH i2c: F0 09 00 [23:00:43]MH_I2C_Read... [23:00:43]Read from MH i2c: F0 09 00 2C DF 00 22 7D C2 66 34 48 D8 65 83 [23:00:43]GetLastDocTimeStamp 1724022006 [23:00:43]current date 1724022050 [23:00:43]FM_GetShiftState [23:00:43]SAM_PROTO_GetShiftState [23:00:43]wFMCommunicate request_size=4 [23:00:43]MH_SAM_APDU [23:00:43]CAPDU: 80 13 01 00 [23:00:43]Write to MH i2c: E2 08 00 2D DF 80 13 01 00 00 00 00 00 89 [23:00:43]Write i2c OK [23:00:43]MH_I2C_Read... [23:00:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:43]Read from MH i2c: E2 [23:00:43]MH_I2C_Read... [23:00:43]Read from MH i2c: E2 0E 00 [23:00:43]MH_I2C_Read... [23:00:43]Read from MH i2c: E2 0E 00 2D DF 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C6 [23:00:43]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:00:43]wFMCommunicate OK [23:00:43]SAM_PROTO_GetShiftState done [23:00:43]FM_GetShiftState done [23:00:43]opened in 1723940556 [23:00:43]opened+sec_in_day 1724026956 [23:00:43]quantity*price = 170066 [23:00:43]sum+1 = 170067 [23:00:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.05 НДС 12% : 180.60 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 563 18.08.2024 23:00 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261005 ФПД: 180580780241302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T230050&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261005&fm=180580780241302&tin=02508201610067®Number=0000000000091865&sum=170000 [23:00:44]StoreToDocumentArchive [23:00:44]shift 449 fd 261005 [23:00:44]save to /storage/0449/doc_00261005 [23:00:44]save last doc name /storage/0449/doc_00261005 to /storage/kkm_last_doc_name [23:00:44]save OK [23:00:44]Clear old archive folders... [23:00:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:00:44]tlvbuf is 00453560 [23:00:44]SAM_PROTO_ClearQueue [23:00:44]wFMCommunicate request_size=4 [23:00:44]MH_SAM_APDU [23:00:44]CAPDU: 80 09 00 00 [23:00:44]Write to MH i2c: E2 08 00 3A DF 80 09 00 00 00 00 00 00 8B [23:00:44]Write i2c OK [23:00:44]MH_I2C_Read... [23:00:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:00:44]Read from MH i2c: E2 [23:00:44]MH_I2C_Read... [23:00:44]Read from MH i2c: E2 03 00 [23:00:44]MH_I2C_Read... [23:00:44]Read from MH i2c: E2 03 00 3A DF 00 90 00 8D [23:00:44]RAPDU: 90 00 [23:00:44]wFMCommunicate OK [23:00:44]SAM_PROTO_ClearQueue done [23:00:44]KKMCreateOFDPacket [23:00:44]OFDProtocolAddRootSTLVToBuf [23:00:44]FM_MakeSignedData [23:00:44]FM_MakeSignedData [23:00:44]SAM_PROTO_SignData [23:00:44]wFMCommunicate request_size=4 [23:00:44]MH_SAM_APDU [23:00:44]CAPDU: 80 0D 01 02 [23:00:44]Write to MH i2c: E2 08 00 3B DF 80 0D 01 02 00 00 00 00 93 [23:00:44]Write i2c OK [23:00:44]MH_I2C_Read... [23:00:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:00:44]Read from MH i2c: E2 [23:00:44]MH_I2C_Read... [23:00:44]Read from MH i2c: E2 03 00 [23:00:44]MH_I2C_Read... [23:00:44]Read from MH i2c: E2 03 00 3B DF 00 90 00 8E [23:00:44]RAPDU: 90 00 [23:00:44]wFMCommunicate OK [23:00:44]wFMCommunicate request_size=255 [23:00:44]MH_SAM_APDU [23:00: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 88 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 02 00 00 F4 03 04 00 22 7D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8D FB 03 00 35 04 06 00 A4 [23:00:44]Write to MH i2c: E2 02 01 3C DF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 02 00 00 F4 03 04 00 22 7D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8D FB 03 00 35 04 06 00 A4 00 00 7D [23:00:44]Write i2c OK [23:00:44]MH_I2C_Read... [23:00:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:45]Read from MH i2c: E2 [23:00:45]MH_I2C_Read... [23:00:45]Read from MH i2c: E2 03 00 [23:00:45]MH_I2C_Read... [23:00:45]Read from MH i2c: E2 03 00 3C DF 00 90 00 8F [23:00:45]RAPDU: 90 00 [23:00:45]wFMCommunicate OK [23:00:45]wFMCommunicate request_size=10 [23:00:45]MH_SAM_APDU [23:00:45]CAPDU: 80 0D 02 02 05 3C BD 42 71 96 [23:00:45]Write to MH i2c: E2 0D 00 3D DF 80 0D 02 02 05 00 3C BD 42 71 96 00 00 E2 [23:00:45]Write i2c OK [23:00:45]MH_I2C_Read... [23:00:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:45]Read from MH i2c: E2 [23:00:45]MH_I2C_Read... [23:00:45]Read from MH i2c: E2 03 00 [23:00:45]MH_I2C_Read... [23:00:45]Read from MH i2c: E2 03 00 3D DF 00 90 00 90 [23:00:45]RAPDU: 90 00 [23:00:45]wFMCommunicate OK [23:00:45]wFMCommunicate request_size=4 [23:00:45]MH_SAM_APDU [23:00:45]CAPDU: 80 0D 03 02 [23:00:45]Write to MH i2c: E2 08 00 3E DF 80 0D 03 02 00 00 00 00 98 [23:00:45]Write i2c OK [23:00:45]MH_I2C_Read... [23:00:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:00:45]Read from MH i2c: E2 [23:00:45]MH_I2C_Read... [23:00:45]Read from MH i2c: E2 0B 00 [23:00:45]MH_I2C_Read... [23:00:45]Read from MH i2c: E2 0B 00 3E DF 00 EE 63 B3 B5 55 96 F3 01 90 00 31 [23:00:45]RAPDU: EE 63 B3 B5 55 96 F3 01 90 00 [23:00:45]wFMCommunicate OK [23:00:45]SAM_PROTO_SignData done [23:00:45]FM_MakeSignedData done [23:00:45]CreateOFDProtocolMessage [23:00:45]wFMCommunicate request_size=4 [23:00:45]MH_SAM_APDU [23:00:45]CAPDU: 80 11 00 00 [23:00:45]Write to MH i2c: E2 08 00 3F DF 80 11 00 00 00 00 00 00 98 [23:00:45]Write i2c OK [23:00:45]MH_I2C_Read... [23:00:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:45]Read from MH i2c: E2 [23:00:45]MH_I2C_Read... [23:00:45]Read from MH i2c: E2 17 00 [23:00:45]MH_I2C_Read... [23:00:45]Read from MH i2c: E2 17 00 3F DF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E5 [23:00:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:00:45]wFMCommunicate OK [23:00:45]CreateOFDProtocolMessage done [23:00:45]OFDSenderStorePacket 261005 [23:00:45]StoreOFDPacket docnum=261005 [23:00:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 82 BC 07 01 21 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 02 00 00 F4 03 04 00 22 7D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8D FB 03 00 35 04 06 00 A4 3C BD 42 71 96 EE 63 B3 B5 55 96 F3 01 [23:00:45]CheckFolder [23:00:45]dirname=/storage/ofd_packets [23:00:45]CheckFolder done [23:00:45]ProducePacketName [23:00:45]name=ofd_packets/00261005 [23:00:45]NVStorageSaveData ofd_packets/00261005 [23:00:45]File name is /storage/ofd_packets/00261005 [23:00:45]Write 301 bytes [23:00:45]NVStorageSaveData done [23:00:45]OFDSenderStorePacket done [23:00:45]KKMCreateOFDPacket done [23:00:45]NVStorageSaveData kkm_last_timestamp [23:00:45]File name is /storage/kkm_last_timestamp [23:00:45]Write 4 bytes [23:00:45]NVStorageSaveData done [23:00:45]ExternCall_PrintAddStr [23:00:45]wPrintStart [23:00:45]Write to MH i2c: 01 00 00 40 DF 1F [23:00:45]Write i2c OK [23:00:45]MH_I2C_Read... [23:00:45]Read from MH i2c: 01 [23:00:45]MH_I2C_Read... [23:00:45]Read from MH i2c: 01 07 00 [23:00:45]MH_I2C_Read... [23:00:45]Read from MH i2c: 01 07 00 40 DF 00 00 00 00 00 FF 0F 34 [23:00:45]RasterBufferAndPrint [23:00:45]line Счет N : (1)1036560 [23:00:45]line ИНН: 02508201610067 [23:00:45]line Контрольно-Кассовый Чек [23:00:45]line ПРОДАЖА [23:00:45]line ТРК (МРК, ГНК) : 23 [23:00:45]line Товар: 2710124500 [23:00:45]line Аи-95-К-5 [23:00:45]line 22.920 * 74.20 [23:00:45]line = 1700.66 [23:00:45]line НДС 12% НСП 1% [23:00:45]line > о реализуемом товаре [23:00:45]line ОКРУГЛЕНИЕ: -0.66 [23:00:45]line ИТОГО: 1700.00 [23:00:45]line Внесено: 1700.00 [23:00:45]line СДАЧА: 0.00 [23:00:45]line НСП 1% : 15.05 [23:00:45]line НДС 12% : 180.60 [23:00:45]line Наличными: 1700.00 [23:00:45]line Безнал.: 0.00 [23:00:45]line Место: АЗС № 94 "Партнер Нефть" [23:00:45]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [23:00:45]line СНО: Общий режим [23:00:45]line Чек 563 18.08.2024 23:00 [23:00:45]line Смена: 449 ФФД: 1.0 [23:00:45]line ЗНМ: 0300000099 [23:00:45]line РНМ: 0000000000091865 [23:00:45]line Версия ККМ: 001 [23:00:45]line ФМ: 0000000000871820 [23:00:45]line ФД: 261005 [23:00:45]line ФПД: 180580780241302 [23:00:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T230050&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261005&fm=180580780241302&tin=02508201610067®Number=0000000000091865&sum=170000 [23:00:45]OFD Sender: Processing packet 261005 [packets to send 192, broken 191] [23:00:45]ProducePacketName [23:00:45]name=ofd_packets/00261005 [23:00:45]OFD Sender: To server: pG, [23:00:45]CommunicateWithHost lk.salyk.kg:30040 [23:00:45]ConnectInit lk.salyk.kg [23:00:45]written 0, free lines is 4095 [23:00:45]Connected sock=11 [23:00: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 30 0F 01 00 00 82 BC 07 01 21 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 02 00 00 F4 03 04 00 22 7D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8D FB 03 00 35 04 06 00 A4 3C BD 42 71 96 EE 63 B3 B5 55 96 F3 01 [23:00: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 30 4F 00 00 00 8B 2C 47 00 25 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8D FB 03 00 F4 03 04 00 76 26 C2 66 B6 04 01 00 00 75 66 B3 06 49 5B 2F AE [23:00:45]CommunicateWithHost err = 0 [23:00:45]CheckOFDResponse [23:00:45]1017 (14) - 77093643461234 [23:00:45]1041 (16) - 0000000000871820 [23:00:45]1040 (4) - 261005 [23:00:45]1012 (4) - 18.08.2024 16:51 [23:00:45]1206 (1) - 0 [23:00:45]OFD Sender: Remove packet 261005 [23:00:45]ProducePacketName [23:00:45]name=ofd_packets/00261005 [23:00:45]NVStorageDeleteData [23:00:45]Write to MH i2c: 01 00 00 6B DF 4A [23:00:45]Write i2c OK [23:00:45]MH_I2C_Read... [23:00:45]Read from MH i2c: 01 [23:00:45]MH_I2C_Read... [23:00:45]Read from MH i2c: 01 07 00 [23:00:45]MH_I2C_Read... [23:00:45]Read from MH i2c: 01 07 00 6B DF 00 00 00 00 00 61 0C BE [23:00:45]RasterBufferAndPrint [23:00:45]line [23:00:45]line [23:00:45]line [23:00:45]line [23:00:45]line [23:00:45]written 0, free lines is 3172 [23:00:45]MH_Cut [23:00:45]Write to MH i2c: D1 01 00 72 DF 01 23 [23:00:45]Write i2c OK [23:00:45]MH_I2C_Read... [23:00:45]Read from MH i2c: D1 [23:00:45]MH_I2C_Read... [23:00:45]Read from MH i2c: D1 01 00 [23:00:45]MH_I2C_Read... [23:00:45]Read from MH i2c: D1 01 00 72 DF 00 22 [23:00:45]Write to MH i2c: 01 00 00 73 DF 52 [23:00:45]Write i2c OK [23:00:45]MH_I2C_Read... [23:00:46]OFD Sender: No OFD packet to send [23:00:46]*** Cut start [23:00:46]*** Purtial cut [23:00:46]*** Stage 1: CUTSNS_PIN = 1 [23:00:48]Read from MH i2c: 01 [23:00:48]MH_I2C_Read... [23:00:48]*** Stop cut motor [23:00:48]*** Cut end [23:00:48]Read from MH i2c: 01 07 00 [23:00:48]MH_I2C_Read... [23:00:48]Read from MH i2c: 01 07 00 73 DF 00 00 00 00 00 FF 0F 67 [23:00:48]process_action close_receipt done [23:00:48]requested_data is exist [23:00:48]produce_requested_data [23:00:48]requested_item fm.sn is exist - process it [23:00:48]wFMCommunicate request_size=4 [23:00:48]MH_SAM_APDU [23:00:48]CAPDU: 80 11 00 00 [23:00:48]Write to MH i2c: E2 08 00 74 DF 80 11 00 00 00 00 00 00 CD [23:00:48]Write i2c OK [23:00:48]MH_I2C_Read... [23:00:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:49]Read from MH i2c: E2 [23:00:49]MH_I2C_Read... [23:00:49]Read from MH i2c: E2 17 00 [23:00:49]MH_I2C_Read... [23:00:49]Read from MH i2c: E2 17 00 74 DF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 1A [23:00:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:00:49]wFMCommunicate OK [23:00:49]requested_item fd.num is exist - process it [23:00:49]SAM_PROTO_GetFieldsCounters [23:00:49]wFMCommunicate request_size=4 [23:00:49]MH_SAM_APDU [23:00:49]CAPDU: 80 13 00 00 [23:00:49]Write to MH i2c: E2 08 00 75 DF 80 13 00 00 00 00 00 00 D0 [23:00:49]Write i2c OK [23:00:49]MH_I2C_Read... [23:00:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:00:49]Read from MH i2c: E2 [23:00:49]MH_I2C_Read... [23:00:49]Read from MH i2c: E2 62 00 [23:00:49]MH_I2C_Read... [23:00:49]Read from MH i2c: E2 62 00 75 DF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 8D FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 33 02 00 00 5E 04 04 00 33 02 00 00 57 04 04 00 34 02 00 00 19 04 04 00 00 00 00 00 90 00 DB [23:00: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 8D FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 33 02 00 00 5E 04 04 00 33 02 00 00 57 04 04 00 34 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:00:49]wFMCommunicate OK [23:00:49]SAM_PROTO_GetFieldsCounters done [23:00:49]requested_item shift.num is exist - process it [23:00:49]requested_item shift.opened is exist - process it [23:00:49]req_shift_opened [23:00:49]FM_GetShiftState [23:00:49]SAM_PROTO_GetShiftState [23:00:49]wFMCommunicate request_size=4 [23:00:49]MH_SAM_APDU [23:00:49]CAPDU: 80 13 01 00 [23:00:49]Write to MH i2c: E2 08 00 76 DF 80 13 01 00 00 00 00 00 D2 [23:00:49]Write i2c OK [23:00:49]MH_I2C_Read... [23:00:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:49]Read from MH i2c: E2 [23:00:49]MH_I2C_Read... [23:00:49]Read from MH i2c: E2 0E 00 [23:00:49]MH_I2C_Read... [23:00:49]Read from MH i2c: E2 0E 00 76 DF 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 0F [23:00:49]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:00:49]wFMCommunicate OK [23:00:49]SAM_PROTO_GetShiftState done [23:00:49]FM_GetShiftState done [23:00:49]req_shift_opened done [23:00:49]requested_item shift.open_date is exist - process it [23:00:49]req_shift_open_date [23:00:49]req_shift_open_date done [23:00:49]produce_requested_data done [23:00:49]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261005,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [23:00:49]process_action_free close_receipt [23:00:49]json_value_free [23:00:49]json_value_free done [23:00:49]process_json_proto returns [23:00:49]Send response to host [23:00:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261005,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [23:00:49]free response buf [23:00:49]execute_script done [23:00:49]execute_script returns [23:00:49]free content buf [23:00:49]Sock 7.Close socket [23:00:49]Sock 7.Thread stoped [23:00:51]OFD Sender: No OFD packet to send [23:00:56]OFD Sender: No OFD packet to send [23:01:01]OFD Sender: No OFD packet to send [23:01:06]OFD Sender: No OFD packet to send [23:01:08]accept exits with 9 [23:01:08]New connection [23:01:08]New thread 3066473828 created [23:01:08]Thread 3066617188 joined [23:01:08]Waiting for new connection... [23:01:08] Sock 9.Parse request [23:01:08]Sock 9.Check first char [23:01:08]Sock 9.First char is OK [23:01:08]request: POST /json_proto HTTP/1.0 [23:01:08]Method: POST [23:01:08]URL: /json_proto [23:01:08]Method is POST - this is cgi request [23:01:08]url: /json_proto [23:01:08]query_string will be loaded in cgi processing [23:01:08]execute_cgi json_proto POST (null) [23:01:08]execute_cgi path=json_proto method=POST [23:01:08]POST find Content-Length [23:01:08]Host: 172.17.55.133:8080 [23:01:08]Content-Length: 801 [23:01:08]Content-Type: application/json [23:01:08] [23:01:08]POST finish read [23:01:08]Found Content-Length = 801 [23:01:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:01:08]execute_script... [23:01: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)1036561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:01:08]POST & json_proto [23:01:08]process_json_proto [23:01:08]json parsed OK: [23:01:08]protocol is kg_v1.0 [23:01:08]action value=close_receipt [23:01:08]process_action close_receipt [23:01:08]cmd_close_receipt [23:01:08]MH_GetDate [23:01:08]Write to MH i2c: F0 00 00 77 DF 45 [23:01:08]Write i2c OK [23:01:08]MH_I2C_Read... [23:01:08]Read from MH i2c: F0 [23:01:08]MH_I2C_Read... [23:01:08]Read from MH i2c: F0 09 00 [23:01:08]MH_I2C_Read... [23:01:08]Read from MH i2c: F0 09 00 77 DF 00 3C 7D C2 66 34 48 D8 65 E8 [23:01:08]GetLastDocTimeStamp 1724022050 [23:01:08]current date 1724022076 [23:01:08]FM_GetShiftState [23:01:08]SAM_PROTO_GetShiftState [23:01:08]wFMCommunicate request_size=4 [23:01:08]MH_SAM_APDU [23:01:08]CAPDU: 80 13 01 00 [23:01:08]Write to MH i2c: E2 08 00 78 DF 80 13 01 00 00 00 00 00 D4 [23:01:08]Write i2c OK [23:01:08]MH_I2C_Read... [23:01:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:01:08]Read from MH i2c: E2 [23:01:08]MH_I2C_Read... [23:01:08]Read from MH i2c: E2 0E 00 [23:01:08]MH_I2C_Read... [23:01:08]Read from MH i2c: E2 0E 00 78 DF 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 11 [23:01:08]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:01:08]wFMCommunicate OK [23:01:08]SAM_PROTO_GetShiftState done [23:01:08]FM_GetShiftState done [23:01:08]opened in 1723940556 [23:01:08]opened+sec_in_day 1724026956 [23:01:08]quantity*price = 50036 [23:01:08]sum+1 = 50037 [23:01:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 564 18.08.2024 23:01 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 261006 ФПД: 35149534205229 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T230116&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261006&fm=35149534205229&tin=02508201610067®Number=0000000000091865&sum=50036 [23:01:09]StoreToDocumentArchive [23:01:09]shift 449 fd 261006 [23:01:09]save to /storage/0449/doc_00261006 [23:01:09]save last doc name /storage/0449/doc_00261006 to /storage/kkm_last_doc_name [23:01:09]save OK [23:01:09]Clear old archive folders... [23:01:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:01:09]tlvbuf is 0057B020 [23:01:09]SAM_PROTO_ClearQueue [23:01:09]wFMCommunicate request_size=4 [23:01:09]MH_SAM_APDU [23:01:09]CAPDU: 80 09 00 00 [23:01:09]Write to MH i2c: E2 08 00 85 DF 80 09 00 00 00 00 00 00 D6 [23:01:09]Write i2c OK [23:01:09]MH_I2C_Read... [23:01:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:01:09]Read from MH i2c: E2 [23:01:09]MH_I2C_Read... [23:01:09]Read from MH i2c: E2 03 00 [23:01:09]MH_I2C_Read... [23:01:09]Read from MH i2c: E2 03 00 85 DF 00 90 00 D8 [23:01:09]RAPDU: 90 00 [23:01:09]wFMCommunicate OK [23:01:09]SAM_PROTO_ClearQueue done [23:01:09]KKMCreateOFDPacket [23:01:09]OFDProtocolAddRootSTLVToBuf [23:01:09]FM_MakeSignedData [23:01:09]FM_MakeSignedData [23:01:09]SAM_PROTO_SignData [23:01:09]wFMCommunicate request_size=4 [23:01:09]MH_SAM_APDU [23:01:09]CAPDU: 80 0D 01 02 [23:01:09]Write to MH i2c: E2 08 00 86 DF 80 0D 01 02 00 00 00 00 DE [23:01:09]Write i2c OK [23:01:09]MH_I2C_Read... [23:01:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:01:10]Read from MH i2c: E2 [23:01:10]MH_I2C_Read... [23:01:10]Read from MH i2c: E2 03 00 [23:01:10]MH_I2C_Read... [23:01:10]Read from MH i2c: E2 03 00 86 DF 00 90 00 D9 [23:01:10]RAPDU: 90 00 [23:01:10]wFMCommunicate OK [23:01:10]wFMCommunicate request_size=255 [23:01:10]MH_SAM_APDU [23:01:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 02 00 00 F4 03 04 00 3C 7D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8E FB 03 00 35 04 06 00 1F [23:01:10]Write to MH i2c: E2 02 01 87 DF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 02 00 00 F4 03 04 00 3C 7D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8E FB 03 00 35 04 06 00 1F 00 00 27 [23:01:10]Write i2c OK [23:01:10]MH_I2C_Read... [23:01:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:01:10]Read from MH i2c: E2 [23:01:10]MH_I2C_Read... [23:01:10]Read from MH i2c: E2 03 00 [23:01:10]MH_I2C_Read... [23:01:10]Read from MH i2c: E2 03 00 87 DF 00 90 00 DA [23:01:10]RAPDU: 90 00 [23:01:10]wFMCommunicate OK [23:01:10]wFMCommunicate request_size=10 [23:01:10]MH_SAM_APDU [23:01:10]CAPDU: 80 0D 02 02 05 F7 E3 80 15 2D [23:01:10]Write to MH i2c: E2 0D 00 88 DF 80 0D 02 02 05 00 F7 E3 80 15 2D 00 00 87 [23:01:10]Write i2c OK [23:01:10]MH_I2C_Read... [23:01:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:01:10]Read from MH i2c: E2 [23:01:10]MH_I2C_Read... [23:01:10]Read from MH i2c: E2 03 00 [23:01:10]MH_I2C_Read... [23:01:10]Read from MH i2c: E2 03 00 88 DF 00 90 00 DB [23:01:10]RAPDU: 90 00 [23:01:10]wFMCommunicate OK [23:01:10]wFMCommunicate request_size=4 [23:01:10]MH_SAM_APDU [23:01:10]CAPDU: 80 0D 03 02 [23:01:10]Write to MH i2c: E2 08 00 89 DF 80 0D 03 02 00 00 00 00 E3 [23:01:10]Write i2c OK [23:01:10]MH_I2C_Read... [23:01:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:01:10]Read from MH i2c: E2 [23:01:10]MH_I2C_Read... [23:01:10]Read from MH i2c: E2 0B 00 [23:01:10]MH_I2C_Read... [23:01:10]Read from MH i2c: E2 0B 00 89 DF 00 6E 4C BB FA 5F FC D0 5D 90 00 DB [23:01:10]RAPDU: 6E 4C BB FA 5F FC D0 5D 90 00 [23:01:10]wFMCommunicate OK [23:01:10]SAM_PROTO_SignData done [23:01:10]FM_MakeSignedData done [23:01:10]CreateOFDProtocolMessage [23:01:10]wFMCommunicate request_size=4 [23:01:10]MH_SAM_APDU [23:01:10]CAPDU: 80 11 00 00 [23:01:10]Write to MH i2c: E2 08 00 8A DF 80 11 00 00 00 00 00 00 E3 [23:01:10]Write i2c OK [23:01:10]MH_I2C_Read... [23:01:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:01:10]Read from MH i2c: E2 [23:01:10]MH_I2C_Read... [23:01:10]Read from MH i2c: E2 17 00 [23:01:10]MH_I2C_Read... [23:01:10]Read from MH i2c: E2 17 00 8A DF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 30 [23:01:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:01:10]wFMCommunicate OK [23:01:10]CreateOFDProtocolMessage done [23:01:10]OFDSenderStorePacket 261006 [23:01:10]StoreOFDPacket docnum=261006 [23:01:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 27 52 07 01 8A BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 02 00 00 F4 03 04 00 3C 7D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8E FB 03 00 35 04 06 00 1F F7 E3 80 15 2D 6E 4C BB FA 5F FC D0 5D [23:01:10]CheckFolder [23:01:10]dirname=/storage/ofd_packets [23:01:10]CheckFolder done [23:01:10]ProducePacketName [23:01:10]name=ofd_packets/00261006 [23:01:10]NVStorageSaveData ofd_packets/00261006 [23:01:10]File name is /storage/ofd_packets/00261006 [23:01:10]Write 301 bytes [23:01:10]NVStorageSaveData done [23:01:10]OFDSenderStorePacket done [23:01:10]KKMCreateOFDPacket done [23:01:10]NVStorageSaveData kkm_last_timestamp [23:01:10]File name is /storage/kkm_last_timestamp [23:01:10]Write 4 bytes [23:01:10]NVStorageSaveData done [23:01:10]ExternCall_PrintAddStr [23:01:10]wPrintStart [23:01:10]Write to MH i2c: 01 00 00 8B DF 6A [23:01:10]Write i2c OK [23:01:10]MH_I2C_Read... [23:01:10]Read from MH i2c: 01 [23:01:10]MH_I2C_Read... [23:01:10]Read from MH i2c: 01 07 00 [23:01:10]MH_I2C_Read... [23:01:10]Read from MH i2c: 01 07 00 8B DF 00 00 00 00 00 FF 0F 7F [23:01:10]RasterBufferAndPrint [23:01:10]line Счет N : (1)1036561 [23:01:10]line ИНН: 02508201610067 [23:01:10]line Контрольно-Кассовый Чек [23:01:10]line ПРОДАЖА [23:01:10]line ТРК (МРК, ГНК) : 32 [23:01:10]line Товар: 2710124130 [23:01:10]line Аи-92-К-5 [23:01:10]line 7.380 * 67.80 [23:01:10]line = 500.36 [23:01:10]line НДС 12% НСП 1% [23:01:10]line > о реализуемом товаре [23:01:10]line ИТОГО: 500.36 [23:01:10]line НСП 1% : 4.43 [23:01:10]line НДС 12% : 53.14 [23:01:10]line Наличными: 0.00 [23:01:10]line Безнал.: 500.36 [23:01:10]line Место: АЗС № 94 "Партнер Нефть" [23:01:10]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [23:01:10]line СНО: Общий режим [23:01:10]line Чек 564 18.08.2024 23:01 [23:01:10]line Смена: 449 ФФД: 1.0 [23:01:10]line ЗНМ: 0300000099 [23:01:10]line РНМ: 0000000000091865 [23:01:10]line Версия ККМ: 001 [23:01:10]line Платежная система: O! деньги [23:01:10]line ФМ: 0000000000871820 [23:01:10]line ФД: 261006 [23:01:10]line ФПД: 35149534205229 [23:01:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T230116&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261006&fm=35149534205229&tin=02508201610067®Number=0000000000091865&sum=50036 [23:01:10]written 0, free lines is 4095 [23:01:10]OFD Sender: Processing packet 261006 [packets to send 192, broken 191] [23:01:10]ProducePacketName [23:01:10]name=ofd_packets/00261006 [23:01:10]OFD Sender: To server: pG, [23:01:10]CommunicateWithHost lk.salyk.kg:30040 [23:01:10]ConnectInit lk.salyk.kg [23:01:10]Connected sock=10 [23:01: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 30 0F 01 00 00 27 52 07 01 8A BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 02 00 00 F4 03 04 00 3C 7D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8E FB 03 00 35 04 06 00 1F F7 E3 80 15 2D 6E 4C BB FA 5F FC D0 5D [23:01: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 30 4F 00 00 00 E5 E7 47 00 DE B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8E FB 03 00 F4 03 04 00 8F 26 C2 66 B6 04 01 00 00 77 2C 9C 3E 13 D0 00 FE [23:01:10]CommunicateWithHost err = 0 [23:01:10]CheckOFDResponse [23:01:10]1017 (14) - 77093643461234 [23:01:10]1041 (16) - 0000000000871820 [23:01:10]1040 (4) - 261006 [23:01:10]1012 (4) - 18.08.2024 16:51 [23:01:10]1206 (1) - 0 [23:01:10]OFD Sender: Remove packet 261006 [23:01:10]ProducePacketName [23:01:10]name=ofd_packets/00261006 [23:01:10]NVStorageDeleteData [23:01:10]Write to MH i2c: 01 00 00 B5 DF 94 [23:01:10]Write i2c OK [23:01:10]MH_I2C_Read... [23:01:10]Read from MH i2c: 01 [23:01:10]MH_I2C_Read... [23:01:10]Read from MH i2c: 01 07 00 [23:01:10]MH_I2C_Read... [23:01:10]Read from MH i2c: 01 07 00 B5 DF 00 00 00 00 00 7B 0C 22 [23:01:10]RasterBufferAndPrint [23:01:10]line [23:01:10]line [23:01:10]line [23:01:10]line [23:01:10]line [23:01:10]written 0, free lines is 3199 [23:01:10]MH_Cut [23:01:10]Write to MH i2c: D1 01 00 BC DF 01 6D [23:01:10]Write i2c OK [23:01:10]MH_I2C_Read... [23:01:10]Read from MH i2c: D1 [23:01:10]MH_I2C_Read... [23:01:10]Read from MH i2c: D1 01 00 [23:01:10]MH_I2C_Read... [23:01:10]Read from MH i2c: D1 01 00 BC DF 00 6C [23:01:10]Write to MH i2c: 01 00 00 BD DF 9C [23:01:10]Write i2c OK [23:01:10]MH_I2C_Read... [23:01:11]OFD Sender: No OFD packet to send [23:01:12]*** Cut start [23:01:12]*** Purtial cut [23:01:12]*** Stage 1: CUTSNS_PIN = 1 [23:01:14]Read from MH i2c: 01 [23:01:14]MH_I2C_Read... [23:01:14]*** Stop cut motor [23:01:14]*** Cut end [23:01:14]Read from MH i2c: 01 07 00 [23:01:14]MH_I2C_Read... [23:01:14]Read from MH i2c: 01 07 00 BD DF 00 00 00 00 00 FF 0F B1 [23:01:14]process_action close_receipt done [23:01:14]requested_data is exist [23:01:14]produce_requested_data [23:01:14]requested_item fm.sn is exist - process it [23:01:14]wFMCommunicate request_size=4 [23:01:14]MH_SAM_APDU [23:01:14]CAPDU: 80 11 00 00 [23:01:14]Write to MH i2c: E2 08 00 BE DF 80 11 00 00 00 00 00 00 17 [23:01:14]Write i2c OK [23:01:14]MH_I2C_Read... [23:01:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:01:14]Read from MH i2c: E2 [23:01:14]MH_I2C_Read... [23:01:14]Read from MH i2c: E2 17 00 [23:01:14]MH_I2C_Read... [23:01:14]Read from MH i2c: E2 17 00 BE DF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 64 [23:01:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:01:14]wFMCommunicate OK [23:01:14]requested_item fd.num is exist - process it [23:01:14]SAM_PROTO_GetFieldsCounters [23:01:14]wFMCommunicate request_size=4 [23:01:14]MH_SAM_APDU [23:01:14]CAPDU: 80 13 00 00 [23:01:14]Write to MH i2c: E2 08 00 BF DF 80 13 00 00 00 00 00 00 1A [23:01:14]Write i2c OK [23:01:14]MH_I2C_Read... [23:01:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:01:14]Read from MH i2c: E2 [23:01:14]MH_I2C_Read... [23:01:14]Read from MH i2c: E2 62 00 [23:01:14]MH_I2C_Read... [23:01:14]Read from MH i2c: E2 62 00 BF DF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 8E FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 34 02 00 00 5E 04 04 00 34 02 00 00 57 04 04 00 35 02 00 00 19 04 04 00 00 00 00 00 90 00 29 [23:01:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 8E FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 34 02 00 00 5E 04 04 00 34 02 00 00 57 04 04 00 35 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:01:14]wFMCommunicate OK [23:01:14]SAM_PROTO_GetFieldsCounters done [23:01:14]requested_item shift.num is exist - process it [23:01:14]requested_item shift.opened is exist - process it [23:01:14]req_shift_opened [23:01:14]FM_GetShiftState [23:01:14]SAM_PROTO_GetShiftState [23:01:14]wFMCommunicate request_size=4 [23:01:14]MH_SAM_APDU [23:01:14]CAPDU: 80 13 01 00 [23:01:14]Write to MH i2c: E2 08 00 C0 DF 80 13 01 00 00 00 00 00 1C [23:01:14]Write i2c OK [23:01:14]MH_I2C_Read... [23:01:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:01:14]Read from MH i2c: E2 [23:01:14]MH_I2C_Read... [23:01:14]Read from MH i2c: E2 0E 00 [23:01:14]MH_I2C_Read... [23:01:14]Read from MH i2c: E2 0E 00 C0 DF 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 59 [23:01:14]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:01:14]wFMCommunicate OK [23:01:14]SAM_PROTO_GetShiftState done [23:01:14]FM_GetShiftState done [23:01:14]req_shift_opened done [23:01:14]requested_item shift.open_date is exist - process it [23:01:14]req_shift_open_date [23:01:14]req_shift_open_date done [23:01:14]produce_requested_data done [23:01:14]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261006,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [23:01:14]process_action_free close_receipt [23:01:14]json_value_free [23:01:14]json_value_free done [23:01:14]process_json_proto returns [23:01:14]Send response to host [23:01:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261006,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [23:01:14]free response buf [23:01:14]execute_script done [23:01:14]execute_script returns [23:01:14]free content buf [23:01:14]Sock 9.Close socket [23:01:14]Sock 9.Thread stoped [23:01:16]OFD Sender: No OFD packet to send [23:01:21]OFD Sender: No OFD packet to send [23:01:26]OFD Sender: No OFD packet to send [23:01:31]OFD Sender: No OFD packet to send [23:01:36]OFD Sender: No OFD packet to send [23:01:40]accept exits with 7 [23:01:40]New connection [23:01:40]New thread 3066617188 created [23:01:40]Thread 3066473828 joined [23:01:40]Waiting for new connection... [23:01:40] Sock 7.Parse request [23:01:40]Sock 7.Check first char [23:01:40]Sock 7.First char is OK [23:01:40]request: POST /json_proto HTTP/1.0 [23:01:40]Method: POST [23:01:40]URL: /json_proto [23:01:40]Method is POST - this is cgi request [23:01:40]url: /json_proto [23:01:40]query_string will be loaded in cgi processing [23:01:40]execute_cgi json_proto POST (null) [23:01:40]execute_cgi path=json_proto method=POST [23:01:40]POST find Content-Length [23:01:40]Host: 172.17.55.133:8080 [23:01:40]Content-Length: 683 [23:01:40]Content-Type: application/json [23:01:40] [23:01:40]POST finish read [23:01:40]Found Content-Length = 683 [23:01:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 17.700, "sum" : 1200.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:01:40]execute_script... [23:01: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)1036562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 17.700, "sum" : 1200.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:01:40]POST & json_proto [23:01:40]process_json_proto [23:01:40]json parsed OK: [23:01:40]protocol is kg_v1.0 [23:01:40]action value=close_receipt [23:01:40]process_action close_receipt [23:01:40]cmd_close_receipt [23:01:40]MH_GetDate [23:01:40]Write to MH i2c: F0 00 00 C1 DF 8F [23:01:40]Write i2c OK [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: F0 [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: F0 09 00 [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: F0 09 00 C1 DF 00 5C 7D C2 66 34 48 D8 65 52 [23:01:40]GetLastDocTimeStamp 1724022076 [23:01:40]current date 1724022108 [23:01:40]FM_GetShiftState [23:01:40]SAM_PROTO_GetShiftState [23:01:40]wFMCommunicate request_size=4 [23:01:40]MH_SAM_APDU [23:01:40]CAPDU: 80 13 01 00 [23:01:40]Write to MH i2c: E2 08 00 C2 DF 80 13 01 00 00 00 00 00 1E [23:01:40]Write i2c OK [23:01:40]MH_I2C_Read... [23:01:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:01:40]Read from MH i2c: E2 [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: E2 0E 00 [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: E2 0E 00 C2 DF 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 5B [23:01:40]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:01:40]wFMCommunicate OK [23:01:40]SAM_PROTO_GetShiftState done [23:01:40]FM_GetShiftState done [23:01:40]opened in 1723940556 [23:01:40]opened+sec_in_day 1724026956 [23:01:40]quantity*price = 120006 [23:01:40]sum+1 = 120007 [23:01:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 565 18.08.2024 23:01 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261007 ФПД: 71893029496108 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T230148&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261007&fm=71893029496108&tin=02508201610067®Number=0000000000091865&sum=120000 [23:01:41]StoreToDocumentArchive [23:01:41]shift 449 fd 261007 [23:01:41]save to /storage/0449/doc_00261007 [23:01:41]save last doc name /storage/0449/doc_00261007 to /storage/kkm_last_doc_name [23:01:41]save OK [23:01:41]Clear old archive folders... [23:01:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:01:41]tlvbuf is 00383360 [23:01:41]SAM_PROTO_ClearQueue [23:01:41]wFMCommunicate request_size=4 [23:01:41]MH_SAM_APDU [23:01:41]CAPDU: 80 09 00 00 [23:01:41]Write to MH i2c: E2 08 00 CF DF 80 09 00 00 00 00 00 00 20 [23:01:41]Write i2c OK [23:01:41]MH_I2C_Read... [23:01:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:01:41]Read from MH i2c: E2 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 03 00 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 03 00 CF DF 00 90 00 22 [23:01:41]RAPDU: 90 00 [23:01:41]wFMCommunicate OK [23:01:41]SAM_PROTO_ClearQueue done [23:01:41]KKMCreateOFDPacket [23:01:41]OFDProtocolAddRootSTLVToBuf [23:01:41]FM_MakeSignedData [23:01:41]FM_MakeSignedData [23:01:41]SAM_PROTO_SignData [23:01:41]wFMCommunicate request_size=4 [23:01:41]MH_SAM_APDU [23:01:41]CAPDU: 80 0D 01 02 [23:01:41]Write to MH i2c: E2 08 00 D0 DF 80 0D 01 02 00 00 00 00 28 [23:01:41]Write i2c OK [23:01:41]MH_I2C_Read... [23:01:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:01:41]Read from MH i2c: E2 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 03 00 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 03 00 D0 DF 00 90 00 23 [23:01:41]RAPDU: 90 00 [23:01:41]wFMCommunicate OK [23:01:41]wFMCommunicate request_size=255 [23:01:41]MH_SAM_APDU [23:01:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 35 02 00 00 F4 03 04 00 5C 7D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8F FB 03 00 35 04 06 00 41 [23:01:41]Write to MH i2c: E2 02 01 D1 DF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 35 02 00 00 F4 03 04 00 5C 7D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8F FB 03 00 35 04 06 00 41 00 00 DF [23:01:41]Write i2c OK [23:01:41]MH_I2C_Read... [23:01:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:01:42]Read from MH i2c: E2 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: E2 03 00 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: E2 03 00 D1 DF 00 90 00 24 [23:01:42]RAPDU: 90 00 [23:01:42]wFMCommunicate OK [23:01:42]wFMCommunicate request_size=10 [23:01:42]MH_SAM_APDU [23:01:42]CAPDU: 80 0D 02 02 05 62 E6 7C 25 2C [23:01:42]Write to MH i2c: E2 0D 00 D2 DF 80 0D 02 02 05 00 62 E6 7C 25 2C 00 00 4A [23:01:42]Write i2c OK [23:01:42]MH_I2C_Read... [23:01:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:01:42]Read from MH i2c: E2 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: E2 03 00 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: E2 03 00 D2 DF 00 90 00 25 [23:01:42]RAPDU: 90 00 [23:01:42]wFMCommunicate OK [23:01:42]wFMCommunicate request_size=4 [23:01:42]MH_SAM_APDU [23:01:42]CAPDU: 80 0D 03 02 [23:01:42]Write to MH i2c: E2 08 00 D3 DF 80 0D 03 02 00 00 00 00 2D [23:01:42]Write i2c OK [23:01:42]MH_I2C_Read... [23:01:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:01:42]Read from MH i2c: E2 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: E2 0B 00 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: E2 0B 00 D3 DF 00 A6 F5 B9 C1 E6 CA 5C E4 90 00 33 [23:01:42]RAPDU: A6 F5 B9 C1 E6 CA 5C E4 90 00 [23:01:42]wFMCommunicate OK [23:01:42]SAM_PROTO_SignData done [23:01:42]FM_MakeSignedData done [23:01:42]CreateOFDProtocolMessage [23:01:42]wFMCommunicate request_size=4 [23:01:42]MH_SAM_APDU [23:01:42]CAPDU: 80 11 00 00 [23:01:42]Write to MH i2c: E2 08 00 D4 DF 80 11 00 00 00 00 00 00 2D [23:01:42]Write i2c OK [23:01:42]MH_I2C_Read... [23:01:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:01:42]Read from MH i2c: E2 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: E2 17 00 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: E2 17 00 D4 DF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 7A [23:01:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:01:42]wFMCommunicate OK [23:01:42]CreateOFDProtocolMessage done [23:01:42]OFDSenderStorePacket 261007 [23:01:42]StoreOFDPacket docnum=261007 [23:01:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 B3 05 07 01 88 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 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 35 02 00 00 F4 03 04 00 5C 7D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8F FB 03 00 35 04 06 00 41 62 E6 7C 25 2C A6 F5 B9 C1 E6 CA 5C E4 [23:01:42]CheckFolder [23:01:42]dirname=/storage/ofd_packets [23:01:42]CheckFolder done [23:01:42]ProducePacketName [23:01:42]name=ofd_packets/00261007 [23:01:42]NVStorageSaveData ofd_packets/00261007 [23:01:42]File name is /storage/ofd_packets/00261007 [23:01:42]Write 301 bytes [23:01:42]NVStorageSaveData done [23:01:42]OFDSenderStorePacket done [23:01:42]KKMCreateOFDPacket done [23:01:42]NVStorageSaveData kkm_last_timestamp [23:01:42]File name is /storage/kkm_last_timestamp [23:01:42]Write 4 bytes [23:01:42]NVStorageSaveData done [23:01:42]ExternCall_PrintAddStr [23:01:42]wPrintStart [23:01:42]Write to MH i2c: 01 00 00 D5 DF B4 [23:01:42]Write i2c OK [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: 01 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: 01 07 00 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: 01 07 00 D5 DF 00 00 00 00 00 FF 0F C9 [23:01:42]RasterBufferAndPrint [23:01:42]line Счет N : (1)1036562 [23:01:42]line ИНН: 02508201610067 [23:01:42]line Контрольно-Кассовый Чек [23:01:42]line ПРОДАЖА [23:01:42]line ТРК (МРК, ГНК) : 12 [23:01:42]line Товар: 2710124130 [23:01:42]line Аи-92-К-5 [23:01:42]line 17.700 * 67.80 [23:01:42]line = 1200.06 [23:01:42]line НДС 12% НСП 1% [23:01:42]line > о реализуемом товаре [23:01:42]line ОКРУГЛЕНИЕ: -0.06 [23:01:42]line ИТОГО: 1200.00 [23:01:42]line Внесено: 1200.00 [23:01:42]line СДАЧА: 0.00 [23:01:42]line НСП 1% : 10.62 [23:01:42]line НДС 12% : 127.44 [23:01:42]line Наличными: 1200.00 [23:01:42]line Безнал.: 0.00 [23:01:42]line Место: АЗС № 94 "Партнер Нефть" [23:01:42]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [23:01:42]line СНО: Общий режим [23:01:42]line Чек 565 18.08.2024 23:01 [23:01:42]line Смена: 449 ФФД: 1.0 [23:01:42]line ЗНМ: 0300000099 [23:01:42]line РНМ: 0000000000091865 [23:01:42]line Версия ККМ: 001 [23:01:42]line ФМ: 0000000000871820 [23:01:42]line ФД: 261007 [23:01:42]line ФПД: 71893029496108 [23:01:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T230148&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261007&fm=71893029496108&tin=02508201610067®Number=0000000000091865&sum=120000 [23:01:42]written 0, free lines is 4095 [23:01:42]OFD Sender: Processing packet 261007 [packets to send 192, broken 191] [23:01:42]ProducePacketName [23:01:42]name=ofd_packets/00261007 [23:01:42]OFD Sender: To server: pG, [23:01:42]CommunicateWithHost lk.salyk.kg:30040 [23:01:42]ConnectInit lk.salyk.kg [23:01:42]Connected sock=10 [23:01: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 30 0F 01 00 00 B3 05 07 01 88 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 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 35 02 00 00 F4 03 04 00 5C 7D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 8F FB 03 00 35 04 06 00 41 62 E6 7C 25 2C A6 F5 B9 C1 E6 CA 5C E4 [23:01: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 30 4F 00 00 00 1B B5 47 00 BE 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 30 10 04 04 00 8F FB 03 00 F4 03 04 00 AF 26 C2 66 B6 04 01 00 00 7C 41 3B B1 1E 14 60 03 [23:01:42]CommunicateWithHost err = 0 [23:01:42]CheckOFDResponse [23:01:42]1017 (14) - 77093643461234 [23:01:42]1041 (16) - 0000000000871820 [23:01:42]1040 (4) - 261007 [23:01:42]1012 (4) - 18.08.2024 16:51 [23:01:42]1206 (1) - 0 [23:01:42]OFD Sender: Remove packet 261007 [23:01:42]ProducePacketName [23:01:42]name=ofd_packets/00261007 [23:01:42]NVStorageDeleteData [23:01:42]Write to MH i2c: 01 00 00 00 E0 E0 [23:01:42]Write i2c OK [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: 01 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: 01 07 00 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: 01 07 00 00 E0 00 00 00 00 00 5F 0C 52 [23:01:42]RasterBufferAndPrint [23:01:42]line [23:01:42]line [23:01:42]line [23:01:42]line [23:01:42]line [23:01:42]written 0, free lines is 3171 [23:01:42]MH_Cut [23:01:42]Write to MH i2c: D1 01 00 07 E0 01 B9 [23:01:42]Write i2c OK [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: D1 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: D1 01 00 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: D1 01 00 07 E0 00 B8 [23:01:42]Write to MH i2c: 01 00 00 08 E0 E8 [23:01:42]Write i2c OK [23:01:42]MH_I2C_Read... [23:01:43]OFD Sender: No OFD packet to send [23:01:44]*** Cut start [23:01:44]*** Purtial cut [23:01:44]*** Stage 1: CUTSNS_PIN = 1 [23:01:46]Read from MH i2c: 01 [23:01:46]MH_I2C_Read... [23:01:46]*** Stop cut motor [23:01:46]*** Cut end [23:01:46]Read from MH i2c: 01 07 00 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: 01 07 00 08 E0 00 00 00 00 00 FF 0F FD [23:01:46]process_action close_receipt done [23:01:46]requested_data is exist [23:01:46]produce_requested_data [23:01:46]requested_item fm.sn is exist - process it [23:01:46]wFMCommunicate request_size=4 [23:01:46]MH_SAM_APDU [23:01:46]CAPDU: 80 11 00 00 [23:01:46]Write to MH i2c: E2 08 00 09 E0 80 11 00 00 00 00 00 00 63 [23:01:46]Write i2c OK [23:01:46]MH_I2C_Read... [23:01:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:01:46]Read from MH i2c: E2 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: E2 17 00 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: E2 17 00 09 E0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B0 [23:01:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:01:46]wFMCommunicate OK [23:01:46]requested_item fd.num is exist - process it [23:01:46]SAM_PROTO_GetFieldsCounters [23:01:46]wFMCommunicate request_size=4 [23:01:46]MH_SAM_APDU [23:01:46]CAPDU: 80 13 00 00 [23:01:46]Write to MH i2c: E2 08 00 0A E0 80 13 00 00 00 00 00 00 66 [23:01:46]Write i2c OK [23:01:46]MH_I2C_Read... [23:01:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:01:46]Read from MH i2c: E2 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: E2 62 00 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: E2 62 00 0A E0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 8F FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 35 02 00 00 5E 04 04 00 35 02 00 00 57 04 04 00 36 02 00 00 19 04 04 00 00 00 00 00 90 00 79 [23:01: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 8F FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 35 02 00 00 5E 04 04 00 35 02 00 00 57 04 04 00 36 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:01:46]wFMCommunicate OK [23:01:46]SAM_PROTO_GetFieldsCounters done [23:01:46]requested_item shift.num is exist - process it [23:01:46]requested_item shift.opened is exist - process it [23:01:46]req_shift_opened [23:01:46]FM_GetShiftState [23:01:46]SAM_PROTO_GetShiftState [23:01:46]wFMCommunicate request_size=4 [23:01:46]MH_SAM_APDU [23:01:46]CAPDU: 80 13 01 00 [23:01:46]Write to MH i2c: E2 08 00 0B E0 80 13 01 00 00 00 00 00 68 [23:01:46]Write i2c OK [23:01:46]MH_I2C_Read... [23:01:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:01:46]Read from MH i2c: E2 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: E2 0E 00 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: E2 0E 00 0B E0 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A5 [23:01:46]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:01:46]wFMCommunicate OK [23:01:46]SAM_PROTO_GetShiftState done [23:01:46]FM_GetShiftState done [23:01:46]req_shift_opened done [23:01:46]requested_item shift.open_date is exist - process it [23:01:46]req_shift_open_date [23:01:46]req_shift_open_date done [23:01:46]produce_requested_data done [23:01:46]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261007,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [23:01:46]process_action_free close_receipt [23:01:46]json_value_free [23:01:46]json_value_free done [23:01:46]process_json_proto returns [23:01:46]Send response to host [23:01:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261007,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [23:01:46]free response buf [23:01:46]execute_script done [23:01:46]execute_script returns [23:01:46]free content buf [23:01:46]Sock 7.Close socket [23:01:46]Sock 7.Thread stoped [23:01:48]OFD Sender: No OFD packet to send [23:01:53]OFD Sender: No OFD packet to send [23:01:58]OFD Sender: No OFD packet to send [23:02:03]OFD Sender: No OFD packet to send [23:02:08]OFD Sender: No OFD packet to send [23:02:13]OFD Sender: No OFD packet to send [23:02:18]OFD Sender: No OFD packet to send [23:02:23]OFD Sender: No OFD packet to send [23:02:28]OFD Sender: No OFD packet to send [23:02:33]OFD Sender: No OFD packet to send [23:02:38]OFD Sender: No OFD packet to send [23:02:43]OFD Sender: No OFD packet to send [23:02:48]OFD Sender: No OFD packet to send [23:02:53]OFD Sender: No OFD packet to send [23:02:58]OFD Sender: No OFD packet to send [23:03:03]OFD Sender: No OFD packet to send [23:03:08]OFD Sender: No OFD packet to send [23:03:13]OFD Sender: No OFD packet to send [23:03:18]OFD Sender: No OFD packet to send [23:03:23]OFD Sender: No OFD packet to send [23:03:28]OFD Sender: No OFD packet to send [23:03:33]OFD Sender: No OFD packet to send [23:03:38]OFD Sender: No OFD packet to send [23:03:43]OFD Sender: No OFD packet to send [23:03:48]OFD Sender: No OFD packet to send [23:03:52]accept exits with 9 [23:03:52]New connection [23:03:52]New thread 3066473828 created [23:03:52]Thread 3066617188 joined [23:03:52]Waiting for new connection... [23:03:52] Sock 9.Parse request [23:03:52]Sock 9.Check first char [23:03:52]Sock 9.First char is OK [23:03:52]request: POST /json_proto HTTP/1.0 [23:03:52]Method: POST [23:03:52]URL: /json_proto [23:03:52]Method is POST - this is cgi request [23:03:52]url: /json_proto [23:03:52]query_string will be loaded in cgi processing [23:03:52]execute_cgi json_proto POST (null) [23:03:52]execute_cgi path=json_proto method=POST [23:03:52]POST find Content-Length [23:03:52]Host: 172.17.55.133:8080 [23:03:52]Content-Length: 801 [23:03:52]Content-Type: application/json [23:03:52] [23:03:52]POST finish read [23:03:52]Found Content-Length = 801 [23:03:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:03:52]execute_script... [23: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)1036563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:03:52]POST & json_proto [23:03:52]process_json_proto [23:03:52]json parsed OK: [23:03:52]protocol is kg_v1.0 [23:03:52]action value=close_receipt [23:03:52]process_action close_receipt [23:03:52]cmd_close_receipt [23:03:52]MH_GetDate [23:03:52]Write to MH i2c: F0 00 00 0C E0 DB [23:03:52]Write i2c OK [23:03:52]MH_I2C_Read... [23:03:52]Read from MH i2c: F0 [23:03:52]MH_I2C_Read... [23:03:52]Read from MH i2c: F0 09 00 [23:03:52]MH_I2C_Read... [23:03:52]Read from MH i2c: F0 09 00 0C E0 00 E0 7D C2 66 34 48 D8 65 22 [23:03:52]GetLastDocTimeStamp 1724022108 [23:03:52]current date 1724022240 [23:03:52]FM_GetShiftState [23:03:52]SAM_PROTO_GetShiftState [23:03:52]wFMCommunicate request_size=4 [23:03:52]MH_SAM_APDU [23:03:52]CAPDU: 80 13 01 00 [23:03:52]Write to MH i2c: E2 08 00 0D E0 80 13 01 00 00 00 00 00 6A [23:03:52]Write i2c OK [23:03:52]MH_I2C_Read... [23:03:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:03:52]Read from MH i2c: E2 [23:03:52]MH_I2C_Read... [23:03:52]Read from MH i2c: E2 0E 00 [23:03:52]MH_I2C_Read... [23:03:52]Read from MH i2c: E2 0E 00 0D E0 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A7 [23:03:52]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:03:52]wFMCommunicate OK [23:03:52]SAM_PROTO_GetShiftState done [23:03:52]FM_GetShiftState done [23:03:52]opened in 1723940556 [23:03:52]opened+sec_in_day 1724026956 [23:03:52]quantity*price = 60003 [23:03:52]sum+1 = 60004 [23:03:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.03 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.03 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 566 18.08.2024 23:04 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 261008 ФПД: 277689735623019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T230400&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261008&fm=277689735623019&tin=02508201610067®Number=0000000000091865&sum=60003 [23:03:53]StoreToDocumentArchive [23:03:53]shift 449 fd 261008 [23:03:53]save to /storage/0449/doc_00261008 [23:03:53]save last doc name /storage/0449/doc_00261008 to /storage/kkm_last_doc_name [23:03:53]save OK [23:03:53]Clear old archive folders... [23:03:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:03:53]tlvbuf is 00453850 [23:03:53]SAM_PROTO_ClearQueue [23:03:53]wFMCommunicate request_size=4 [23:03:53]MH_SAM_APDU [23:03:53]CAPDU: 80 09 00 00 [23:03:53]Write to MH i2c: E2 08 00 1A E0 80 09 00 00 00 00 00 00 6C [23:03:53]Write i2c OK [23:03:53]MH_I2C_Read... [23:03:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:03:54]Read from MH i2c: E2 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: E2 03 00 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: E2 03 00 1A E0 00 90 00 6E [23:03:54]RAPDU: 90 00 [23:03:54]wFMCommunicate OK [23:03:54]SAM_PROTO_ClearQueue done [23:03:54]KKMCreateOFDPacket [23:03:54]OFDProtocolAddRootSTLVToBuf [23:03:54]FM_MakeSignedData [23:03:54]FM_MakeSignedData [23:03:54]SAM_PROTO_SignData [23:03:54]wFMCommunicate request_size=4 [23:03:54]MH_SAM_APDU [23:03:54]CAPDU: 80 0D 01 02 [23:03:54]Write to MH i2c: E2 08 00 1B E0 80 0D 01 02 00 00 00 00 74 [23:03:54]Write i2c OK [23:03:54]MH_I2C_Read... [23:03:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:03:54]Read from MH i2c: E2 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: E2 03 00 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: E2 03 00 1B E0 00 90 00 6F [23:03:54]RAPDU: 90 00 [23:03:54]wFMCommunicate OK [23:03:54]wFMCommunicate request_size=255 [23:03:54]MH_SAM_APDU [23:03:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 02 00 00 F4 03 04 00 E0 7D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 90 FB 03 00 35 04 06 00 FC [23:03:54]Write to MH i2c: E2 02 01 1C E0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 02 00 00 F4 03 04 00 E0 7D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 90 FB 03 00 35 04 06 00 FC 00 00 C7 [23:03:54]Write i2c OK [23:03:54]MH_I2C_Read... [23:03:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:03:54]Read from MH i2c: E2 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: E2 03 00 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: E2 03 00 1C E0 00 90 00 70 [23:03:54]RAPDU: 90 00 [23:03:54]wFMCommunicate OK [23:03:54]wFMCommunicate request_size=10 [23:03:54]MH_SAM_APDU [23:03:54]CAPDU: 80 0D 02 02 05 8E AE 0C B1 6B [23:03:54]Write to MH i2c: E2 0D 00 1D E0 80 0D 02 02 05 00 8E AE 0C B1 6B 00 00 E5 [23:03:54]Write i2c OK [23:03:54]MH_I2C_Read... [23:03:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:03:54]Read from MH i2c: E2 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: E2 03 00 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: E2 03 00 1D E0 00 90 00 71 [23:03:54]RAPDU: 90 00 [23:03:54]wFMCommunicate OK [23:03:54]wFMCommunicate request_size=4 [23:03:54]MH_SAM_APDU [23:03:54]CAPDU: 80 0D 03 02 [23:03:54]Write to MH i2c: E2 08 00 1E E0 80 0D 03 02 00 00 00 00 79 [23:03:54]Write i2c OK [23:03:54]MH_I2C_Read... [23:03:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:03:54]Read from MH i2c: E2 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: E2 0B 00 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: E2 0B 00 1E E0 00 B4 C8 61 3D 74 4D 67 F9 90 00 B5 [23:03:54]RAPDU: B4 C8 61 3D 74 4D 67 F9 90 00 [23:03:54]wFMCommunicate OK [23:03:54]SAM_PROTO_SignData done [23:03:54]FM_MakeSignedData done [23:03:54]CreateOFDProtocolMessage [23:03:54]wFMCommunicate request_size=4 [23:03:54]MH_SAM_APDU [23:03:54]CAPDU: 80 11 00 00 [23:03:54]Write to MH i2c: E2 08 00 1F E0 80 11 00 00 00 00 00 00 79 [23:03:54]Write i2c OK [23:03:54]MH_I2C_Read... [23:03:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:03:54]Read from MH i2c: E2 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: E2 17 00 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: E2 17 00 1F E0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C6 [23:03:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:03:54]wFMCommunicate OK [23:03:54]CreateOFDProtocolMessage done [23:03:54]OFDSenderStorePacket 261008 [23:03:54]StoreOFDPacket docnum=261008 [23:03:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 06 CD 07 01 86 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 02 00 00 F4 03 04 00 E0 7D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 90 FB 03 00 35 04 06 00 FC 8E AE 0C B1 6B B4 C8 61 3D 74 4D 67 F9 [23:03:54]CheckFolder [23:03:54]dirname=/storage/ofd_packets [23:03:54]CheckFolder done [23:03:54]ProducePacketName [23:03:54]name=ofd_packets/00261008 [23:03:54]NVStorageSaveData ofd_packets/00261008 [23:03:54]File name is /storage/ofd_packets/00261008 [23:03:54]Write 301 bytes [23:03:54]NVStorageSaveData done [23:03:54]OFDSenderStorePacket done [23:03:54]KKMCreateOFDPacket done [23:03:54]NVStorageSaveData kkm_last_timestamp [23:03:54]File name is /storage/kkm_last_timestamp [23:03:54]Write 4 bytes [23:03:54]NVStorageSaveData done [23:03:54]ExternCall_PrintAddStr [23:03:54]wPrintStart [23:03:54]Write to MH i2c: 01 00 00 20 E0 00 [23:03:54]Write i2c OK [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: 01 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: 01 07 00 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: 01 07 00 20 E0 00 00 00 00 00 FF 0F 15 [23:03:54]RasterBufferAndPrint [23:03:54]line Счет N : (1)1036563 [23:03:54]line ИНН: 02508201610067 [23:03:54]line Контрольно-Кассовый Чек [23:03:54]line ПРОДАЖА [23:03:54]line ТРК (МРК, ГНК) : 12 [23:03:54]line Товар: 2710124130 [23:03:54]line Аи-92-К-5 [23:03:54]line 8.850 * 67.80 [23:03:54]line = 600.03 [23:03:54]line НДС 12% НСП 1% [23:03:54]line > о реализуемом товаре [23:03:54]line ИТОГО: 600.03 [23:03:54]line НСП 1% : 5.31 [23:03:54]line НДС 12% : 63.72 [23:03:54]line Наличными: 0.00 [23:03:54]line Безнал.: 600.03 [23:03:54]line Место: АЗС № 94 "Партнер Нефть" [23:03:54]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [23:03:54]line СНО: Общий режим [23:03:54]line Чек 566 18.08.2024 23:04 [23:03:54]line Смена: 449 ФФД: 1.0 [23:03:54]line ЗНМ: 0300000099 [23:03:54]line РНМ: 0000000000091865 [23:03:54]line Версия ККМ: 001 [23:03:54]line Платежная система: O! деньги [23:03:54]line ФМ: 0000000000871820 [23:03:54]line ФД: 261008 [23:03:54]line ФПД: 277689735623019 [23:03:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T230400&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261008&fm=277689735623019&tin=02508201610067®Number=0000000000091865&sum=60003 [23:03:54]OFD Sender: Processing packet 261008 [packets to send 192, broken 191] [23:03:54]ProducePacketName [23:03:54]name=ofd_packets/00261008 [23:03:54]OFD Sender: To server: pG, [23:03:54]CommunicateWithHost lk.salyk.kg:30040 [23:03:54]ConnectInit lk.salyk.kg [23:03:54]written 0, free lines is 4095 [23:03:54]Connected sock=10 [23:03:54]Data 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 30 0F 01 00 00 06 CD 07 01 86 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 02 00 00 F4 03 04 00 E0 7D C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 90 FB 03 00 35 04 06 00 FC 8E AE 0C B1 6B B4 C8 61 3D 74 4D 67 F9 [23:03:54]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 30 4F 00 00 00 2C 41 47 00 1E E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 90 FB 03 00 F4 03 04 00 33 27 C2 66 B6 04 01 00 00 30 DB 3F F0 C5 DB 3B FE [23:03:54]CommunicateWithHost err = 0 [23:03:54]CheckOFDResponse [23:03:54]1017 (14) - 77093643461234 [23:03:54]1041 (16) - 0000000000871820 [23:03:54]1040 (4) - 261008 [23:03:54]1012 (4) - 18.08.2024 16:54 [23:03:54]1206 (1) - 0 [23:03:54]OFD Sender: Remove packet 261008 [23:03:54]ProducePacketName [23:03:54]name=ofd_packets/00261008 [23:03:54]NVStorageDeleteData [23:03:54]Write to MH i2c: 01 00 00 4A E0 2A [23:03:54]Write i2c OK [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: 01 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: 01 07 00 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: 01 07 00 4A E0 00 00 00 00 00 82 0C BF [23:03:54]RasterBufferAndPrint [23:03:54]line [23:03:54]line [23:03:54]line [23:03:54]line [23:03:54]line [23:03:54]written 0, free lines is 3205 [23:03:54]MH_Cut [23:03:54]Write to MH i2c: D1 01 00 51 E0 01 03 [23:03:54]Write i2c OK [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: D1 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: D1 01 00 [23:03:55]MH_I2C_Read... [23:03:55]Read from MH i2c: D1 01 00 51 E0 00 02 [23:03:55]Write to MH i2c: 01 00 00 52 E0 32 [23:03:55]Write i2c OK [23:03:55]MH_I2C_Read... [23:03:55]OFD Sender: No OFD packet to send [23:03:56]*** Cut start [23:03:56]*** Purtial cut [23:03:56]*** Stage 1: CUTSNS_PIN = 1 [23:03:58]Read from MH i2c: 01 [23:03:58]MH_I2C_Read... [23:03:58]*** Stop cut motor [23:03:58]*** Cut end [23:03:58]Read from MH i2c: 01 07 00 [23:03:58]MH_I2C_Read... [23:03:58]Read from MH i2c: 01 07 00 52 E0 00 00 00 00 00 FF 0F 47 [23:03:58]process_action close_receipt done [23:03:58]requested_data is exist [23:03:58]produce_requested_data [23:03:58]requested_item fm.sn is exist - process it [23:03:58]wFMCommunicate request_size=4 [23:03:58]MH_SAM_APDU [23:03:58]CAPDU: 80 11 00 00 [23:03:58]Write to MH i2c: E2 08 00 53 E0 80 11 00 00 00 00 00 00 AD [23:03:58]Write i2c OK [23:03:58]MH_I2C_Read... [23:03:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:03:58]Read from MH i2c: E2 [23:03:58]MH_I2C_Read... [23:03:58]Read from MH i2c: E2 17 00 [23:03:58]MH_I2C_Read... [23:03:58]Read from MH i2c: E2 17 00 53 E0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 FA [23:03:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:03:58]wFMCommunicate OK [23:03:58]requested_item fd.num is exist - process it [23:03:58]SAM_PROTO_GetFieldsCounters [23:03:58]wFMCommunicate request_size=4 [23:03:58]MH_SAM_APDU [23:03:58]CAPDU: 80 13 00 00 [23:03:58]Write to MH i2c: E2 08 00 54 E0 80 13 00 00 00 00 00 00 B0 [23:03:58]Write i2c OK [23:03:58]MH_I2C_Read... [23:03:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:03:58]Read from MH i2c: E2 [23:03:58]MH_I2C_Read... [23:03:58]Read from MH i2c: E2 62 00 [23:03:58]MH_I2C_Read... [23:03:58]Read from MH i2c: E2 62 00 54 E0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 90 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 36 02 00 00 5E 04 04 00 36 02 00 00 57 04 04 00 37 02 00 00 19 04 04 00 00 00 00 00 90 00 C7 [23:03: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 90 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 36 02 00 00 5E 04 04 00 36 02 00 00 57 04 04 00 37 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:03:58]wFMCommunicate OK [23:03:58]SAM_PROTO_GetFieldsCounters done [23:03:58]requested_item shift.num is exist - process it [23:03:58]requested_item shift.opened is exist - process it [23:03:58]req_shift_opened [23:03:58]FM_GetShiftState [23:03:58]SAM_PROTO_GetShiftState [23:03:58]wFMCommunicate request_size=4 [23:03:58]MH_SAM_APDU [23:03:58]CAPDU: 80 13 01 00 [23:03:58]Write to MH i2c: E2 08 00 55 E0 80 13 01 00 00 00 00 00 B2 [23:03:58]Write i2c OK [23:03:58]MH_I2C_Read... [23:03:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:03:58]Read from MH i2c: E2 [23:03:58]MH_I2C_Read... [23:03:58]Read from MH i2c: E2 0E 00 [23:03:58]MH_I2C_Read... [23:03:58]Read from MH i2c: E2 0E 00 55 E0 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 EF [23:03:58]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:03:58]wFMCommunicate OK [23:03:58]SAM_PROTO_GetShiftState done [23:03:58]FM_GetShiftState done [23:03:58]req_shift_opened done [23:03:58]requested_item shift.open_date is exist - process it [23:03:58]req_shift_open_date [23:03:58]req_shift_open_date done [23:03:58]produce_requested_data done [23:03:58]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261008,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [23:03:58]process_action_free close_receipt [23:03:58]json_value_free [23:03:58]json_value_free done [23:03:58]process_json_proto returns [23:03:58]Send response to host [23:03:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261008,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [23:03:58]free response buf [23:03:58]execute_script done [23:03:58]execute_script returns [23:03:58]free content buf [23:03:58]Sock 9.Close socket [23:03:58]Sock 9.Thread stoped [23:04:00]OFD Sender: No OFD packet to send [23:04:05]OFD Sender: No OFD packet to send [23:04:10]OFD Sender: No OFD packet to send [23:04:15]OFD Sender: No OFD packet to send [23:04:20]OFD Sender: No OFD packet to send [23:04:25]OFD Sender: No OFD packet to send [23:04:30]OFD Sender: No OFD packet to send [23:04:32]accept exits with 7 [23:04:32]New connection [23:04:32]New thread 3066617188 created [23:04:32]Thread 3066473828 joined [23:04:32]Waiting for new connection... [23:04:32] Sock 7.Parse request [23:04:32]Sock 7.Check first char [23:04:32]Sock 7.First char is OK [23:04:32]request: POST /json_proto HTTP/1.0 [23:04:32]Method: POST [23:04:32]URL: /json_proto [23:04:32]Method is POST - this is cgi request [23:04:32]url: /json_proto [23:04:32]query_string will be loaded in cgi processing [23:04:32]execute_cgi json_proto POST (null) [23:04:32]execute_cgi path=json_proto method=POST [23:04:32]POST find Content-Length [23:04:32]Host: 172.17.55.133:8080 [23:04:32]Content-Length: 678 [23:04:32]Content-Type: application/json [23:04:32] [23:04:32]POST finish read [23:04:32]Found Content-Length = 678 [23:04:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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" ] } } [23:04:32]execute_script... [23:04: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)1036564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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" ] } } [23:04:32]POST & json_proto [23:04:32]process_json_proto [23:04:32]json parsed OK: [23:04:32]protocol is kg_v1.0 [23:04:32]action value=close_receipt [23:04:32]process_action close_receipt [23:04:32]cmd_close_receipt [23:04:32]MH_GetDate [23:04:32]Write to MH i2c: F0 00 00 56 E0 25 [23:04:32]Write i2c OK [23:04:32]MH_I2C_Read... [23:04:32]Read from MH i2c: F0 [23:04:32]MH_I2C_Read... [23:04:32]Read from MH i2c: F0 09 00 [23:04:32]MH_I2C_Read... [23:04:32]Read from MH i2c: F0 09 00 56 E0 00 07 7E C2 66 34 48 D8 65 94 [23:04:32]GetLastDocTimeStamp 1724022240 [23:04:32]current date 1724022279 [23:04:32]FM_GetShiftState [23:04:32]SAM_PROTO_GetShiftState [23:04:32]wFMCommunicate request_size=4 [23:04:32]MH_SAM_APDU [23:04:32]CAPDU: 80 13 01 00 [23:04:32]Write to MH i2c: E2 08 00 57 E0 80 13 01 00 00 00 00 00 B4 [23:04:32]Write i2c OK [23:04:32]MH_I2C_Read... [23:04:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:32]Read from MH i2c: E2 [23:04:32]MH_I2C_Read... [23:04:32]Read from MH i2c: E2 0E 00 [23:04:32]MH_I2C_Read... [23:04:32]Read from MH i2c: E2 0E 00 57 E0 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 F1 [23:04:32]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:04:32]wFMCommunicate OK [23:04:32]SAM_PROTO_GetShiftState done [23:04:32]FM_GetShiftState done [23:04:32]opened in 1723940556 [23:04:32]opened+sec_in_day 1724026956 [23:04:32]quantity*price = 20001 [23:04:32]sum+1 = 20002 [23:04:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 567 18.08.2024 23:04 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261009 ФПД: 172080620544053 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T230439&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261009&fm=172080620544053&tin=02508201610067®Number=0000000000091865&sum=20000 [23:04:33]StoreToDocumentArchive [23:04:33]shift 449 fd 261009 [23:04:33]save to /storage/0449/doc_00261009 [23:04:33]save last doc name /storage/0449/doc_00261009 to /storage/kkm_last_doc_name [23:04:33]save OK [23:04:33]Clear old archive folders... [23:04:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:04:33]tlvbuf is 0078D2F0 [23:04:33]SAM_PROTO_ClearQueue [23:04:33]wFMCommunicate request_size=4 [23:04:33]MH_SAM_APDU [23:04:33]CAPDU: 80 09 00 00 [23:04:33]Write to MH i2c: E2 08 00 64 E0 80 09 00 00 00 00 00 00 B6 [23:04:33]Write i2c OK [23:04:33]MH_I2C_Read... [23:04:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:04:33]Read from MH i2c: E2 [23:04:33]MH_I2C_Read... [23:04:33]Read from MH i2c: E2 03 00 [23:04:33]MH_I2C_Read... [23:04:33]Read from MH i2c: E2 03 00 64 E0 00 90 00 B8 [23:04:33]RAPDU: 90 00 [23:04:33]wFMCommunicate OK [23:04:33]SAM_PROTO_ClearQueue done [23:04:33]KKMCreateOFDPacket [23:04:33]OFDProtocolAddRootSTLVToBuf [23:04:33]FM_MakeSignedData [23:04:33]FM_MakeSignedData [23:04:33]SAM_PROTO_SignData [23:04:33]wFMCommunicate request_size=4 [23:04:33]MH_SAM_APDU [23:04:33]CAPDU: 80 0D 01 02 [23:04:33]Write to MH i2c: E2 08 00 65 E0 80 0D 01 02 00 00 00 00 BE [23:04:33]Write i2c OK [23:04:33]MH_I2C_Read... [23:04:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:04:33]Read from MH i2c: E2 [23:04:33]MH_I2C_Read... [23:04:33]Read from MH i2c: E2 03 00 [23:04:33]MH_I2C_Read... [23:04:33]Read from MH i2c: E2 03 00 65 E0 00 90 00 B9 [23:04:33]RAPDU: 90 00 [23:04:33]wFMCommunicate OK [23:04:33]wFMCommunicate request_size=255 [23:04:33]MH_SAM_APDU [23:04:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 02 00 00 F4 03 04 00 07 7E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 91 FB 03 00 35 04 06 00 9C [23:04:33]Write to MH i2c: E2 02 01 66 E0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 02 00 00 F4 03 04 00 07 7E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 91 FB 03 00 35 04 06 00 9C 00 00 10 [23:04:33]Write i2c OK [23:04:33]MH_I2C_Read... [23:04:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:33]Read from MH i2c: E2 [23:04:33]MH_I2C_Read... [23:04:33]Read from MH i2c: E2 03 00 [23:04:33]MH_I2C_Read... [23:04:33]Read from MH i2c: E2 03 00 66 E0 00 90 00 BA [23:04:33]RAPDU: 90 00 [23:04:33]wFMCommunicate OK [23:04:33]wFMCommunicate request_size=10 [23:04:33]MH_SAM_APDU [23:04:33]CAPDU: 80 0D 02 02 05 81 A4 42 A0 35 [23:04:33]Write to MH i2c: E2 0D 00 67 E0 80 0D 02 02 05 00 81 A4 42 A0 35 00 00 07 [23:04:33]Write i2c OK [23:04:33]MH_I2C_Read... [23:04:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:33]Read from MH i2c: E2 [23:04:33]MH_I2C_Read... [23:04:33]Read from MH i2c: E2 03 00 [23:04:33]MH_I2C_Read... [23:04:33]Read from MH i2c: E2 03 00 67 E0 00 90 00 BB [23:04:33]RAPDU: 90 00 [23:04:33]wFMCommunicate OK [23:04:33]wFMCommunicate request_size=4 [23:04:33]MH_SAM_APDU [23:04:33]CAPDU: 80 0D 03 02 [23:04:33]Write to MH i2c: E2 08 00 68 E0 80 0D 03 02 00 00 00 00 C3 [23:04:33]Write i2c OK [23:04:33]MH_I2C_Read... [23:04:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:04:33]Read from MH i2c: E2 [23:04:33]MH_I2C_Read... [23:04:33]Read from MH i2c: E2 0B 00 [23:04:33]MH_I2C_Read... [23:04:33]Read from MH i2c: E2 0B 00 68 E0 00 46 9C A9 25 3A F4 8D 18 90 00 47 [23:04:33]RAPDU: 46 9C A9 25 3A F4 8D 18 90 00 [23:04:33]wFMCommunicate OK [23:04:33]SAM_PROTO_SignData done [23:04:33]FM_MakeSignedData done [23:04:33]CreateOFDProtocolMessage [23:04:33]wFMCommunicate request_size=4 [23:04:33]MH_SAM_APDU [23:04:33]CAPDU: 80 11 00 00 [23:04:33]Write to MH i2c: E2 08 00 69 E0 80 11 00 00 00 00 00 00 C3 [23:04:33]Write i2c OK [23:04:33]MH_I2C_Read... [23:04:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:33]Read from MH i2c: E2 [23:04:33]MH_I2C_Read... [23:04:33]Read from MH i2c: E2 17 00 [23:04:33]MH_I2C_Read... [23:04:33]Read from MH i2c: E2 17 00 69 E0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 10 [23:04:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:04:33]wFMCommunicate OK [23:04:33]CreateOFDProtocolMessage done [23:04:33]OFDSenderStorePacket 261009 [23:04:33]StoreOFDPacket docnum=261009 [23:04:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 12 F7 07 01 17 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 02 00 00 F4 03 04 00 07 7E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 91 FB 03 00 35 04 06 00 9C 81 A4 42 A0 35 46 9C A9 25 3A F4 8D 18 [23:04:33]CheckFolder [23:04:33]dirname=/storage/ofd_packets [23:04:33]CheckFolder done [23:04:33]ProducePacketName [23:04:33]name=ofd_packets/00261009 [23:04:33]NVStorageSaveData ofd_packets/00261009 [23:04:33]File name is /storage/ofd_packets/00261009 [23:04:33]Write 301 bytes [23:04:33]NVStorageSaveData done [23:04:33]OFDSenderStorePacket done [23:04:33]KKMCreateOFDPacket done [23:04:33]NVStorageSaveData kkm_last_timestamp [23:04:33]File name is /storage/kkm_last_timestamp [23:04:33]Write 4 bytes [23:04:33]NVStorageSaveData done [23:04:33]ExternCall_PrintAddStr [23:04:33]wPrintStart [23:04:33]Write to MH i2c: 01 00 00 6A E0 4A [23:04:33]Write i2c OK [23:04:33]MH_I2C_Read... [23:04:33]Read from MH i2c: 01 [23:04:33]MH_I2C_Read... [23:04:33]Read from MH i2c: 01 07 00 [23:04:33]MH_I2C_Read... [23:04:33]Read from MH i2c: 01 07 00 6A E0 00 00 00 00 00 FF 0F 5F [23:04:33]RasterBufferAndPrint [23:04:33]line Счет N : (1)1036564 [23:04:33]line ИНН: 02508201610067 [23:04:33]line Контрольно-Кассовый Чек [23:04:33]line ПРОДАЖА [23:04:33]line ТРК (МРК, ГНК) : 32 [23:04:33]line Товар: 2710124130 [23:04:33]line Аи-92-К-5 [23:04:33]line 2.950 * 67.80 [23:04:33]line = 200.01 [23:04:33]line НДС 12% НСП 1% [23:04:33]line > о реализуемом товаре [23:04:33]line ОКРУГЛЕНИЕ: -0.01 [23:04:33]line ИТОГО: 200.00 [23:04:33]line Внесено: 200.00 [23:04:33]line СДАЧА: 0.00 [23:04:33]line НСП 1% : 1.77 [23:04:33]line НДС 12% : 21.24 [23:04:33]line Наличными: 200.00 [23:04:33]line Безнал.: 0.00 [23:04:33]line Место: АЗС № 94 "Партнер Нефть" [23:04:33]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [23:04:33]line СНО: Общий режим [23:04:33]line Чек 567 18.08.2024 23:04 [23:04:33]line Смена: 449 ФФД: 1.0 [23:04:33]line ЗНМ: 0300000099 [23:04:33]line РНМ: 0000000000091865 [23:04:33]line Версия ККМ: 001 [23:04:33]line ФМ: 0000000000871820 [23:04:33]line ФД: 261009 [23:04:33]line ФПД: 172080620544053 [23:04:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T230439&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261009&fm=172080620544053&tin=02508201610067®Number=0000000000091865&sum=20000 [23:04:33]written 0, free lines is 4095 [23:04:33]OFD Sender: Processing packet 261009 [packets to send 192, broken 191] [23:04:33]ProducePacketName [23:04:34]name=ofd_packets/00261009 [23:04:34]OFD Sender: To server: pG, [23:04:34]CommunicateWithHost lk.salyk.kg:30040 [23:04:34]ConnectInit lk.salyk.kg [23:04:34]Connected sock=10 [23:04: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 30 0F 01 00 00 12 F7 07 01 17 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 02 00 00 F4 03 04 00 07 7E C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 91 FB 03 00 35 04 06 00 9C 81 A4 42 A0 35 46 9C A9 25 3A F4 8D 18 [23:04:34]Write to MH i2c: 01 00 00 95 E0 75 [23:04:34]Write i2c OK [23:04:34]MH_I2C_Read... [23:04:34]Read from MH i2c: 01 [23:04:34]MH_I2C_Read... [23:04:34]Read from MH i2c: 01 07 00 [23:04:34]MH_I2C_Read... [23:04:34]Read from MH i2c: 01 07 00 95 E0 00 00 00 00 00 64 0C EC [23:04:34]RasterBufferAndPrint [23:04:34]line [23:04:34]line [23:04:34]line [23:04:34]line [23:04:34]line [23:04:34]written 0, free lines is 3177 [23:04:34]MH_Cut [23:04:34]Write to MH i2c: D1 01 00 9C E0 01 4E [23:04:34]Write i2c OK [23:04:34]MH_I2C_Read... [23:04:34]Read from MH i2c: D1 [23:04:34]MH_I2C_Read... [23:04:34]Read from MH i2c: D1 01 00 [23:04:34]MH_I2C_Read... [23:04:34]Read from MH i2c: D1 01 00 9C E0 00 4D [23:04:34]Write to MH i2c: 01 00 00 9D E0 7D [23:04:34]Write i2c OK [23:04:34]MH_I2C_Read... [23:04: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 30 4F 00 00 00 42 23 47 00 CC 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 30 10 04 04 00 91 FB 03 00 F4 03 04 00 5B 27 C2 66 B6 04 01 00 00 31 85 64 0C 0A 80 0B 06 [23:04:34]CommunicateWithHost err = 0 [23:04:34]CheckOFDResponse [23:04:34]1017 (14) - 77093643461234 [23:04:34]1041 (16) - 0000000000871820 [23:04:34]1040 (4) - 261009 [23:04:34]1012 (4) - 18.08.2024 16:54 [23:04:34]1206 (1) - 0 [23:04:34]OFD Sender: Remove packet 261009 [23:04:34]ProducePacketName [23:04:34]name=ofd_packets/00261009 [23:04:34]NVStorageDeleteData [23:04:35]OFD Sender: No OFD packet to send [23:04:35]*** Cut start [23:04:35]*** Purtial cut [23:04:35]*** Stage 1: CUTSNS_PIN = 1 [23:04:37]Read from MH i2c: 01 [23:04:37]MH_I2C_Read... [23:04:37]*** Stop cut motor [23:04:37]*** Cut end [23:04:37]Read from MH i2c: 01 07 00 [23:04:37]MH_I2C_Read... [23:04:37]Read from MH i2c: 01 07 00 9D E0 00 00 00 00 00 FF 0F 92 [23:04:37]process_action close_receipt done [23:04:37]requested_data is exist [23:04:37]produce_requested_data [23:04:37]requested_item fm.sn is exist - process it [23:04:37]wFMCommunicate request_size=4 [23:04:37]MH_SAM_APDU [23:04:37]CAPDU: 80 11 00 00 [23:04:37]Write to MH i2c: E2 08 00 9E E0 80 11 00 00 00 00 00 00 F8 [23:04:37]Write i2c OK [23:04:37]MH_I2C_Read... [23:04:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:37]Read from MH i2c: E2 [23:04:37]MH_I2C_Read... [23:04:37]Read from MH i2c: E2 17 00 [23:04:37]MH_I2C_Read... [23:04:37]Read from MH i2c: E2 17 00 9E E0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 45 [23:04:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:04:37]wFMCommunicate OK [23:04:37]requested_item fd.num is exist - process it [23:04:37]SAM_PROTO_GetFieldsCounters [23:04:37]wFMCommunicate request_size=4 [23:04:37]MH_SAM_APDU [23:04:37]CAPDU: 80 13 00 00 [23:04:37]Write to MH i2c: E2 08 00 9F E0 80 13 00 00 00 00 00 00 FB [23:04:37]Write i2c OK [23:04:37]MH_I2C_Read... [23:04:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:04:37]Read from MH i2c: E2 [23:04:37]MH_I2C_Read... [23:04:37]Read from MH i2c: E2 62 00 [23:04:37]MH_I2C_Read... [23:04:37]Read from MH i2c: E2 62 00 9F E0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 91 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 37 02 00 00 5E 04 04 00 37 02 00 00 57 04 04 00 38 02 00 00 19 04 04 00 00 00 00 00 90 00 16 [23:04: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 91 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 37 02 00 00 5E 04 04 00 37 02 00 00 57 04 04 00 38 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:04:37]wFMCommunicate OK [23:04:37]SAM_PROTO_GetFieldsCounters done [23:04:37]requested_item shift.num is exist - process it [23:04:37]requested_item shift.opened is exist - process it [23:04:37]req_shift_opened [23:04:37]FM_GetShiftState [23:04:37]SAM_PROTO_GetShiftState [23:04:37]wFMCommunicate request_size=4 [23:04:37]MH_SAM_APDU [23:04:37]CAPDU: 80 13 01 00 [23:04:37]Write to MH i2c: E2 08 00 A0 E0 80 13 01 00 00 00 00 00 FD [23:04:37]Write i2c OK [23:04:37]MH_I2C_Read... [23:04:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:37]Read from MH i2c: E2 [23:04:37]MH_I2C_Read... [23:04:37]Read from MH i2c: E2 0E 00 [23:04:37]MH_I2C_Read... [23:04:37]Read from MH i2c: E2 0E 00 A0 E0 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 3A [23:04:37]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:04:37]wFMCommunicate OK [23:04:37]SAM_PROTO_GetShiftState done [23:04:37]FM_GetShiftState done [23:04:37]req_shift_opened done [23:04:37]requested_item shift.open_date is exist - process it [23:04:37]req_shift_open_date [23:04:37]req_shift_open_date done [23:04:37]produce_requested_data done [23:04:37]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261009,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [23:04:37]process_action_free close_receipt [23:04:37]json_value_free [23:04:37]json_value_free done [23:04:37]process_json_proto returns [23:04:37]Send response to host [23:04:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261009,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [23:04:37]free response buf [23:04:37]execute_script done [23:04:37]execute_script returns [23:04:37]free content buf [23:04:37]Sock 7.Close socket [23:04:37]Sock 7.Thread stoped [23:04:40]OFD Sender: No OFD packet to send [23:04:45]OFD Sender: No OFD packet to send [23:04:50]OFD Sender: No OFD packet to send [23:04:55]OFD Sender: No OFD packet to send [23:05:00]OFD Sender: No OFD packet to send [23:05:05]OFD Sender: No OFD packet to send [23:05:10]OFD Sender: No OFD packet to send [23:05:15]OFD Sender: No OFD packet to send [23:05:20]OFD Sender: No OFD packet to send [23:05:25]OFD Sender: No OFD packet to send [23:05:30]OFD Sender: No OFD packet to send [23:05:35]OFD Sender: No OFD packet to send [23:05:40]OFD Sender: No OFD packet to send [23:05:45]OFD Sender: No OFD packet to send [23:05:50]OFD Sender: No OFD packet to send [23:05:55]OFD Sender: No OFD packet to send [23:06:00]OFD Sender: No OFD packet to send [23:06:05]OFD Sender: No OFD packet to send [23:06:10]OFD Sender: No OFD packet to send [23:06:15]OFD Sender: No OFD packet to send [23:06:20]OFD Sender: No OFD packet to send [23:06:25]OFD Sender: No OFD packet to send [23:06:30]OFD Sender: No OFD packet to send [23:06:35]OFD Sender: No OFD packet to send [23:06:40]OFD Sender: No OFD packet to send [23:06:45]OFD Sender: No OFD packet to send [23:06:50]OFD Sender: No OFD packet to send [23:06:55]OFD Sender: No OFD packet to send [23:07:00]OFD Sender: No OFD packet to send [23:07:05]OFD Sender: No OFD packet to send [23:07:10]OFD Sender: No OFD packet to send [23:07:15]OFD Sender: No OFD packet to send [23:07:20]OFD Sender: No OFD packet to send [23:07:25]OFD Sender: No OFD packet to send [23:07:30]OFD Sender: No OFD packet to send [23:07:35]OFD Sender: No OFD packet to send [23:07:40]OFD Sender: No OFD packet to send [23:07:45]OFD Sender: No OFD packet to send [23:07:50]OFD Sender: No OFD packet to send [23:07:55]OFD Sender: No OFD packet to send [23:08:00]OFD Sender: No OFD packet to send [23:08:05]OFD Sender: No OFD packet to send [23:08:10]OFD Sender: No OFD packet to send [23:08:15]OFD Sender: No OFD packet to send [23:08:20]OFD Sender: No OFD packet to send [23:08:25]OFD Sender: No OFD packet to send [23:08:30]OFD Sender: No OFD packet to send [23:08:35]OFD Sender: No OFD packet to send [23:08:40]OFD Sender: No OFD packet to send [23:08:45]OFD Sender: No OFD packet to send [23:08:50]OFD Sender: No OFD packet to send [23:08:55]OFD Sender: No OFD packet to send [23:09:00]OFD Sender: No OFD packet to send [23:09:05]OFD Sender: No OFD packet to send [23:09:10]OFD Sender: No OFD packet to send [23:09:15]OFD Sender: No OFD packet to send [23:09:20]OFD Sender: No OFD packet to send [23:09:25]OFD Sender: No OFD packet to send [23:09:30]OFD Sender: No OFD packet to send [23:09:35]OFD Sender: No OFD packet to send [23:09:40]OFD Sender: No OFD packet to send [23:09:45]OFD Sender: No OFD packet to send [23:09:50]OFD Sender: No OFD packet to send [23:09:55]OFD Sender: No OFD packet to send [23:10:00]OFD Sender: No OFD packet to send [23:10:05]OFD Sender: No OFD packet to send [23:10:10]OFD Sender: No OFD packet to send [23:10:15]OFD Sender: No OFD packet to send [23:10:20]OFD Sender: No OFD packet to send [23:10:25]OFD Sender: No OFD packet to send [23:10:30]OFD Sender: No OFD packet to send [23:10:35]OFD Sender: No OFD packet to send [23:10:40]OFD Sender: No OFD packet to send [23:10:45]OFD Sender: No OFD packet to send [23:10:50]OFD Sender: No OFD packet to send [23:10:55]OFD Sender: No OFD packet to send [23:11:00]OFD Sender: No OFD packet to send [23:11:05]OFD Sender: No OFD packet to send [23:11:10]OFD Sender: No OFD packet to send [23:11:15]OFD Sender: No OFD packet to send [23:11:20]OFD Sender: No OFD packet to send [23:11:25]OFD Sender: No OFD packet to send [23:11:30]OFD Sender: No OFD packet to send [23:11:35]OFD Sender: No OFD packet to send [23:11:40]OFD Sender: No OFD packet to send [23:11:45]OFD Sender: No OFD packet to send [23:11:50]OFD Sender: No OFD packet to send [23:11:55]OFD Sender: No OFD packet to send [23:12:00]OFD Sender: No OFD packet to send [23:12:05]OFD Sender: No OFD packet to send [23:12:10]OFD Sender: No OFD packet to send [23:12:15]OFD Sender: No OFD packet to send [23:12:20]OFD Sender: No OFD packet to send [23:12:24]accept exits with 9 [23:12:24]New connection [23:12:24]New thread 3066473828 created [23:12:24]Thread 3066617188 joined [23:12:24]Waiting for new connection... [23:12:24] Sock 9.Parse request [23:12:24]Sock 9.Check first char [23:12:24]Sock 9.First char is OK [23:12:24]request: POST /json_proto HTTP/1.0 [23:12:24]Method: POST [23:12:24]URL: /json_proto [23:12:24]Method is POST - this is cgi request [23:12:24]url: /json_proto [23:12:24]query_string will be loaded in cgi processing [23:12:24]execute_cgi json_proto POST (null) [23:12:24]execute_cgi path=json_proto method=POST [23:12:24]POST find Content-Length [23:12:24]Host: 172.17.55.133:8080 [23:12:24]Content-Length: 678 [23:12:24]Content-Type: application/json [23:12:24] [23:12:24]POST finish read [23:12:24]Found Content-Length = 678 [23:12:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036565", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:12:24]execute_script... [23: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)1036565", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:12:24]POST & json_proto [23:12:24]process_json_proto [23:12:24]json parsed OK: [23:12:24]protocol is kg_v1.0 [23:12:24]action value=close_receipt [23:12:24]process_action close_receipt [23:12:24]cmd_close_receipt [23:12:24]MH_GetDate [23:12:24]Write to MH i2c: F0 00 00 A1 E0 70 [23:12:24]Write i2c OK [23:12:24]MH_I2C_Read... [23:12:24]Read from MH i2c: F0 [23:12:24]MH_I2C_Read... [23:12:24]Read from MH i2c: F0 09 00 [23:12:24]MH_I2C_Read... [23:12:24]Read from MH i2c: F0 09 00 A1 E0 00 DF 7F C2 66 34 48 D8 65 B8 [23:12:24]GetLastDocTimeStamp 1724022279 [23:12:24]current date 1724022751 [23:12:24]FM_GetShiftState [23:12:24]SAM_PROTO_GetShiftState [23:12:24]wFMCommunicate request_size=4 [23:12:24]MH_SAM_APDU [23:12:24]CAPDU: 80 13 01 00 [23:12:24]Write to MH i2c: E2 08 00 A2 E0 80 13 01 00 00 00 00 00 FF [23:12:24]Write i2c OK [23:12:24]MH_I2C_Read... [23:12:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:12:24]Read from MH i2c: E2 [23:12:24]MH_I2C_Read... [23:12:24]Read from MH i2c: E2 0E 00 [23:12:24]MH_I2C_Read... [23:12:24]Read from MH i2c: E2 0E 00 A2 E0 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 3C [23:12:24]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:12:24]wFMCommunicate OK [23:12:24]SAM_PROTO_GetShiftState done [23:12:24]FM_GetShiftState done [23:12:24]opened in 1723940556 [23:12:24]opened+sec_in_day 1724026956 [23:12:24]quantity*price = 50010 [23:12:24]sum+1 = 50012 [23:12:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 568 18.08.2024 23:12 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261010 ФПД: 263010498002476 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T231231&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261010&fm=263010498002476&tin=02508201610067®Number=0000000000091865&sum=50000 [23:12:25]StoreToDocumentArchive [23:12:25]shift 449 fd 261010 [23:12:25]save to /storage/0449/doc_00261010 [23:12:25]save last doc name /storage/0449/doc_00261010 to /storage/kkm_last_doc_name [23:12:25]save OK [23:12:25]Clear old archive folders... [23:12:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:12:25]tlvbuf is 005C47A0 [23:12:25]SAM_PROTO_ClearQueue [23:12:25]wFMCommunicate request_size=4 [23:12:25]MH_SAM_APDU [23:12:25]CAPDU: 80 09 00 00 [23:12:25]Write to MH i2c: E2 08 00 AF E0 80 09 00 00 00 00 00 00 01 [23:12:25]Write i2c OK [23:12:25]MH_I2C_Read... [23:12:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:12:25]Read from MH i2c: E2 [23:12:25]MH_I2C_Read... [23:12:25]Read from MH i2c: E2 03 00 [23:12:25]MH_I2C_Read... [23:12:25]Read from MH i2c: E2 03 00 AF E0 00 90 00 03 [23:12:25]RAPDU: 90 00 [23:12:25]wFMCommunicate OK [23:12:25]SAM_PROTO_ClearQueue done [23:12:25]KKMCreateOFDPacket [23:12:25]OFDProtocolAddRootSTLVToBuf [23:12:25]FM_MakeSignedData [23:12:25]FM_MakeSignedData [23:12:25]SAM_PROTO_SignData [23:12:25]wFMCommunicate request_size=4 [23:12:25]MH_SAM_APDU [23:12:25]CAPDU: 80 0D 01 02 [23:12:25]Write to MH i2c: E2 08 00 B0 E0 80 0D 01 02 00 00 00 00 09 [23:12:25]Write i2c OK [23:12:25]MH_I2C_Read... [23:12:25]Read from MH i2c: E2 [23:12:25]MH_I2C_Read... [23:12:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:12:25]Read from MH i2c: E2 03 00 [23:12:25]MH_I2C_Read... [23:12:25]Read from MH i2c: E2 03 00 B0 E0 00 90 00 04 [23:12:25]RAPDU: 90 00 [23:12:25]wFMCommunicate OK [23:12:25]wFMCommunicate request_size=255 [23:12:25]MH_SAM_APDU [23:12:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 02 00 00 F4 03 04 00 DF 7F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 92 FB 03 00 35 04 06 00 EF [23:12:25]Write to MH i2c: E2 02 01 B1 E0 80 0D 02 02 FA 00 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 02 00 00 F4 03 04 00 DF 7F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 92 FB 03 00 35 04 06 00 EF 00 00 6F [23:12:25]Write i2c OK [23:12:25]MH_I2C_Read... [23:12:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:12:25]Read from MH i2c: E2 [23:12:25]MH_I2C_Read... [23:12:25]Read from MH i2c: E2 03 00 [23:12:25]MH_I2C_Read... [23:12:25]Read from MH i2c: E2 03 00 B1 E0 00 90 00 05 [23:12:25]RAPDU: 90 00 [23:12:25]wFMCommunicate OK [23:12:25]wFMCommunicate request_size=10 [23:12:25]MH_SAM_APDU [23:12:25]CAPDU: 80 0D 02 02 05 34 E7 4E 3E 2C [23:12:25]Write to MH i2c: E2 0D 00 B2 E0 80 0D 02 02 05 00 34 E7 4E 3E 2C 00 00 E9 [23:12:25]Write i2c OK [23:12:25]MH_I2C_Read... [23:12:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:12:25]Read from MH i2c: E2 [23:12:25]MH_I2C_Read... [23:12:25]Read from MH i2c: E2 03 00 [23:12:25]MH_I2C_Read... [23:12:25]Read from MH i2c: E2 03 00 B2 E0 00 90 00 06 [23:12:25]RAPDU: 90 00 [23:12:25]wFMCommunicate OK [23:12:25]wFMCommunicate request_size=4 [23:12:25]MH_SAM_APDU [23:12:25]CAPDU: 80 0D 03 02 [23:12:25]Write to MH i2c: E2 08 00 B3 E0 80 0D 03 02 00 00 00 00 0E [23:12:25]Write i2c OK [23:12:25]MH_I2C_Read... [23:12:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:12:25]Read from MH i2c: E2 [23:12:25]MH_I2C_Read... [23:12:25]Read from MH i2c: E2 0B 00 [23:12:25]MH_I2C_Read... [23:12:25]Read from MH i2c: E2 0B 00 B3 E0 00 FC 7C BF CA 5D 17 D7 5D 90 00 B8 [23:12:25]RAPDU: FC 7C BF CA 5D 17 D7 5D 90 00 [23:12:25]wFMCommunicate OK [23:12:25]SAM_PROTO_SignData done [23:12:25]FM_MakeSignedData done [23:12:25]CreateOFDProtocolMessage [23:12:25]wFMCommunicate request_size=4 [23:12:25]MH_SAM_APDU [23:12:25]CAPDU: 80 11 00 00 [23:12:25]Write to MH i2c: E2 08 00 B4 E0 80 11 00 00 00 00 00 00 0E [23:12:25]Write i2c OK [23:12:25]MH_I2C_Read... [23:12:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:12:25]Read from MH i2c: E2 [23:12:25]MH_I2C_Read... [23:12:25]Read from MH i2c: E2 17 00 [23:12:25]MH_I2C_Read... [23:12:25]Read from MH i2c: E2 17 00 B4 E0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 5B [23:12:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:12:25]wFMCommunicate OK [23:12:25]CreateOFDProtocolMessage done [23:12:25]OFDSenderStorePacket 261010 [23:12:25]StoreOFDPacket docnum=261010 [23:12:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 35 C1 07 01 EF 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 02 00 00 F4 03 04 00 DF 7F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 92 FB 03 00 35 04 06 00 EF 34 E7 4E 3E 2C FC 7C BF CA 5D 17 D7 5D [23:12:25]CheckFolder [23:12:25]dirname=/storage/ofd_packets [23:12:25]CheckFolder done [23:12:25]ProducePacketName [23:12:25]name=ofd_packets/00261010 [23:12:25]NVStorageSaveData ofd_packets/00261010 [23:12:25]File name is /storage/ofd_packets/00261010 [23:12:25]Write 301 bytes [23:12:25]NVStorageSaveData done [23:12:25]OFDSenderStorePacket done [23:12:25]KKMCreateOFDPacket done [23:12:25]NVStorageSaveData kkm_last_timestamp [23:12:25]File name is /storage/kkm_last_timestamp [23:12:25]Write 4 bytes [23:12:25]NVStorageSaveData done [23:12:25]ExternCall_PrintAddStr [23:12:25]wPrintStart [23:12:25]Write to MH i2c: 01 00 00 B5 E0 95 [23:12:25]Write i2c OK [23:12:25]MH_I2C_Read... [23:12:25]Read from MH i2c: 01 [23:12:25]MH_I2C_Read... [23:12:25]Read from MH i2c: 01 07 00 [23:12:25]MH_I2C_Read... [23:12:25]Read from MH i2c: 01 07 00 B5 E0 00 00 00 00 00 FF 0F AA [23:12:25]RasterBufferAndPrint [23:12:25]line Счет N : (1)1036565 [23:12:25]line ИНН: 02508201610067 [23:12:25]line Контрольно-Кассовый Чек [23:12:25]line ПРОДАЖА [23:12:25]line ТРК (МРК, ГНК) : 13 [23:12:25]line Товар: 2710124500 [23:12:25]line Аи-95-К-5 [23:12:25]line 6.740 * 74.20 [23:12:25]line = 500.11 [23:12:25]line НДС 12% НСП 1% [23:12:25]line > о реализуемом товаре [23:12:25]line ОКРУГЛЕНИЕ: -0.11 [23:12:25]line ИТОГО: 500.00 [23:12:25]line Внесено: 500.00 [23:12:25]line СДАЧА: 0.00 [23:12:25]line НСП 1% : 4.43 [23:12:25]line НДС 12% : 53.11 [23:12:25]line Наличными: 500.00 [23:12:25]line Безнал.: 0.00 [23:12:25]line Место: АЗС № 94 "Партнер Нефть" [23:12:25]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [23:12:25]line СНО: Общий режим [23:12:25]line Чек 568 18.08.2024 23:12 [23:12:25]line Смена: 449 ФФД: 1.0 [23:12:25]line ЗНМ: 0300000099 [23:12:25]line РНМ: 0000000000091865 [23:12:25]line Версия ККМ: 001 [23:12:25]line ФМ: 0000000000871820 [23:12:25]line ФД: 261010 [23:12:26]line ФПД: 263010498002476 [23:12:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T231231&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261010&fm=263010498002476&tin=02508201610067®Number=0000000000091865&sum=50000 [23:12:26]OFD Sender: Processing packet 261010 [packets to send 192, broken 191] [23:12:26]ProducePacketName [23:12:26]name=ofd_packets/00261010 [23:12:26]OFD Sender: To server: pG, [23:12:26]CommunicateWithHost lk.salyk.kg:30040 [23:12:26]ConnectInit lk.salyk.kg [23:12:26]written 0, free lines is 4095 [23:12:26]Connected sock=10 [23: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 30 0F 01 00 00 35 C1 07 01 EF 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 02 00 00 F4 03 04 00 DF 7F C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 92 FB 03 00 35 04 06 00 EF 34 E7 4E 3E 2C FC 7C BF CA 5D 17 D7 5D [23:12: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 30 4F 00 00 00 BE 91 47 00 F6 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 30 10 04 04 00 92 FB 03 00 F4 03 04 00 32 29 C2 66 B6 04 01 00 00 53 98 7B 2F 3E F5 27 E1 [23:12:26]CommunicateWithHost err = 0 [23:12:26]CheckOFDResponse [23:12:26]1017 (14) - 77093643461234 [23:12:26]1041 (16) - 0000000000871820 [23:12:26]1040 (4) - 261010 [23:12:26]1012 (4) - 18.08.2024 17:02 [23:12:26]1206 (1) - 0 [23:12:26]OFD Sender: Remove packet 261010 [23:12:26]ProducePacketName [23:12:26]name=ofd_packets/00261010 [23:12:26]NVStorageDeleteData [23:12:26]Write to MH i2c: 01 00 00 E0 E0 C0 [23:12:26]Write i2c OK [23:12:26]MH_I2C_Read... [23:12:26]Read from MH i2c: 01 [23:12:26]MH_I2C_Read... [23:12:26]Read from MH i2c: 01 07 00 [23:12:26]MH_I2C_Read... [23:12:26]Read from MH i2c: 01 07 00 E0 E0 00 00 00 00 00 67 0C 3A [23:12:26]RasterBufferAndPrint [23:12:26]line [23:12:26]line [23:12:26]line [23:12:26]line [23:12:26]line [23:12:26]written 0, free lines is 3178 [23:12:26]MH_Cut [23:12:26]Write to MH i2c: D1 01 00 E7 E0 01 99 [23:12:26]Write i2c OK [23:12:26]MH_I2C_Read... [23:12:26]Read from MH i2c: D1 [23:12:26]MH_I2C_Read... [23:12:26]Read from MH i2c: D1 01 00 [23:12:26]MH_I2C_Read... [23:12:26]Read from MH i2c: D1 01 00 E7 E0 00 98 [23:12:26]Write to MH i2c: 01 00 00 E8 E0 C8 [23:12:26]Write i2c OK [23:12:26]MH_I2C_Read... [23:12:26]OFD Sender: No OFD packet to send [23:12:27]*** Cut start [23:12:27]*** Purtial cut [23:12:27]*** Stage 1: CUTSNS_PIN = 1 [23:12:29]Read from MH i2c: 01 [23:12:29]MH_I2C_Read... [23:12:29]*** Stop cut motor [23:12:29]*** Cut end [23:12:29]Read from MH i2c: 01 07 00 [23:12:29]MH_I2C_Read... [23:12:29]Read from MH i2c: 01 07 00 E8 E0 00 00 00 00 00 FF 0F DD [23:12:29]process_action close_receipt done [23:12:29]requested_data is exist [23:12:29]produce_requested_data [23:12:29]requested_item fm.sn is exist - process it [23:12:29]wFMCommunicate request_size=4 [23:12:29]MH_SAM_APDU [23:12:29]CAPDU: 80 11 00 00 [23:12:29]Write to MH i2c: E2 08 00 E9 E0 80 11 00 00 00 00 00 00 43 [23:12:29]Write i2c OK [23:12:29]MH_I2C_Read... [23:12:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:12:29]Read from MH i2c: E2 [23:12:29]MH_I2C_Read... [23:12:29]Read from MH i2c: E2 17 00 [23:12:29]MH_I2C_Read... [23:12:29]Read from MH i2c: E2 17 00 E9 E0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 90 [23:12:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:12:29]wFMCommunicate OK [23:12:29]requested_item fd.num is exist - process it [23:12:29]SAM_PROTO_GetFieldsCounters [23:12:29]wFMCommunicate request_size=4 [23:12:29]MH_SAM_APDU [23:12:29]CAPDU: 80 13 00 00 [23:12:29]Write to MH i2c: E2 08 00 EA E0 80 13 00 00 00 00 00 00 46 [23:12:29]Write i2c OK [23:12:29]MH_I2C_Read... [23:12:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:12:29]Read from MH i2c: E2 [23:12:29]MH_I2C_Read... [23:12:29]Read from MH i2c: E2 62 00 [23:12:29]MH_I2C_Read... [23:12:29]Read from MH i2c: E2 62 00 EA E0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 92 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 38 02 00 00 5E 04 04 00 38 02 00 00 57 04 04 00 39 02 00 00 19 04 04 00 00 00 00 00 90 00 65 [23:12: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 92 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 38 02 00 00 5E 04 04 00 38 02 00 00 57 04 04 00 39 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:12:29]wFMCommunicate OK [23:12:29]SAM_PROTO_GetFieldsCounters done [23:12:29]requested_item shift.num is exist - process it [23:12:29]requested_item shift.opened is exist - process it [23:12:29]req_shift_opened [23:12:29]FM_GetShiftState [23:12:29]SAM_PROTO_GetShiftState [23:12:29]wFMCommunicate request_size=4 [23:12:29]MH_SAM_APDU [23:12:29]CAPDU: 80 13 01 00 [23:12:29]Write to MH i2c: E2 08 00 EB E0 80 13 01 00 00 00 00 00 48 [23:12:29]Write i2c OK [23:12:29]MH_I2C_Read... [23:12:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:12:29]Read from MH i2c: E2 [23:12:29]MH_I2C_Read... [23:12:29]Read from MH i2c: E2 0E 00 [23:12:29]MH_I2C_Read... [23:12:29]Read from MH i2c: E2 0E 00 EB E0 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 85 [23:12:29]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:12:29]wFMCommunicate OK [23:12:29]SAM_PROTO_GetShiftState done [23:12:29]FM_GetShiftState done [23:12:29]req_shift_opened done [23:12:29]requested_item shift.open_date is exist - process it [23:12:29]req_shift_open_date [23:12:29]req_shift_open_date done [23:12:29]produce_requested_data done [23:12:29]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261010,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [23:12:29]process_action_free close_receipt [23:12:29]json_value_free [23:12:29]json_value_free done [23:12:29]process_json_proto returns [23:12:29]Send response to host [23:12:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261010,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [23:12:29]free response buf [23:12:29]execute_script done [23:12:29]execute_script returns [23:12:29]free content buf [23:12:29]Sock 9.Close socket [23:12:29]Sock 9.Thread stoped [23:12:31]OFD Sender: No OFD packet to send [23:12:36]OFD Sender: No OFD packet to send [23:12:41]OFD Sender: No OFD packet to send [23:12:46]OFD Sender: No OFD packet to send [23:12:51]OFD Sender: No OFD packet to send [23:12:56]OFD Sender: No OFD packet to send [23:13:01]OFD Sender: No OFD packet to send [23:13:06]OFD Sender: No OFD packet to send [23:13:11]OFD Sender: No OFD packet to send [23:13:16]OFD Sender: No OFD packet to send [23:13:21]OFD Sender: No OFD packet to send [23:13:26]OFD Sender: No OFD packet to send [23:13:31]OFD Sender: No OFD packet to send [23:13:36]OFD Sender: No OFD packet to send [23:13:41]OFD Sender: No OFD packet to send [23:13:47]OFD Sender: No OFD packet to send [23:13:52]OFD Sender: No OFD packet to send [23:13:57]OFD Sender: No OFD packet to send [23:14:02]OFD Sender: No OFD packet to send [23:14:07]OFD Sender: No OFD packet to send [23:14:12]OFD Sender: No OFD packet to send [23:14:17]OFD Sender: No OFD packet to send [23:14:22]OFD Sender: No OFD packet to send [23:14:27]OFD Sender: No OFD packet to send [23:14:32]OFD Sender: No OFD packet to send [23:14:37]OFD Sender: No OFD packet to send [23:14:42]OFD Sender: No OFD packet to send [23:14:47]OFD Sender: No OFD packet to send [23:14:52]OFD Sender: No OFD packet to send [23:14:57]OFD Sender: No OFD packet to send [23:15:02]OFD Sender: No OFD packet to send [23:15:07]OFD Sender: No OFD packet to send [23:15:12]OFD Sender: No OFD packet to send [23:15:17]OFD Sender: No OFD packet to send [23:15:22]OFD Sender: No OFD packet to send [23:15:27]OFD Sender: No OFD packet to send [23:15:32]OFD Sender: No OFD packet to send [23:15:37]OFD Sender: No OFD packet to send [23:15:42]OFD Sender: No OFD packet to send [23:15:47]OFD Sender: No OFD packet to send [23:15:52]OFD Sender: No OFD packet to send [23:15:57]OFD Sender: No OFD packet to send [23:16:02]OFD Sender: No OFD packet to send [23:16:07]OFD Sender: No OFD packet to send [23:16:12]OFD Sender: No OFD packet to send [23:16:17]OFD Sender: No OFD packet to send [23:16:22]OFD Sender: No OFD packet to send [23:16:27]OFD Sender: No OFD packet to send [23:16:32]OFD Sender: No OFD packet to send [23:16:37]OFD Sender: No OFD packet to send [23:16:42]OFD Sender: No OFD packet to send [23:16:47]OFD Sender: No OFD packet to send [23:16:52]OFD Sender: No OFD packet to send [23:16:57]OFD Sender: No OFD packet to send [23:17:02]OFD Sender: No OFD packet to send [23:17:07]OFD Sender: No OFD packet to send [23:17:12]OFD Sender: No OFD packet to send [23:17:17]OFD Sender: No OFD packet to send [23:17:22]OFD Sender: No OFD packet to send [23:17:26]accept exits with 7 [23:17:26]New connection [23:17:26]New thread 3066617188 created [23:17:26]Thread 3066473828 joined [23:17:26]Waiting for new connection... [23:17:26] Sock 7.Parse request [23:17:26]Sock 7.Check first char [23:17:26]Sock 7.First char is OK [23:17:26]request: POST /json_proto HTTP/1.0 [23:17:26]Method: POST [23:17:26]URL: /json_proto [23:17:26]Method is POST - this is cgi request [23:17:26]url: /json_proto [23:17:26]query_string will be loaded in cgi processing [23:17:26]execute_cgi json_proto POST (null) [23:17:26]execute_cgi path=json_proto method=POST [23:17:26]POST find Content-Length [23:17:26]Host: 172.17.55.133:8080 [23:17:26]Content-Length: 683 [23:17:26]Content-Type: application/json [23:17:26] [23:17:26]POST finish read [23:17:26]Found Content-Length = 683 [23:17:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036566", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:17:26]execute_script... [23:17: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)1036566", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:17:26]POST & json_proto [23:17:26]process_json_proto [23:17:26]json parsed OK: [23:17:26]protocol is kg_v1.0 [23:17:26]action value=close_receipt [23:17:26]process_action close_receipt [23:17:26]cmd_close_receipt [23:17:26]MH_GetDate [23:17:26]Write to MH i2c: F0 00 00 EC E0 BB [23:17:26]Write i2c OK [23:17:26]MH_I2C_Read... [23:17:26]Read from MH i2c: F0 [23:17:26]MH_I2C_Read... [23:17:26]Read from MH i2c: F0 09 00 [23:17:26]MH_I2C_Read... [23:17:26]Read from MH i2c: F0 09 00 EC E0 00 0D 81 C2 66 34 48 D8 65 33 [23:17:26]GetLastDocTimeStamp 1724022751 [23:17:26]current date 1724023053 [23:17:26]FM_GetShiftState [23:17:26]SAM_PROTO_GetShiftState [23:17:26]wFMCommunicate request_size=4 [23:17:26]MH_SAM_APDU [23:17:26]CAPDU: 80 13 01 00 [23:17:26]Write to MH i2c: E2 08 00 ED E0 80 13 01 00 00 00 00 00 4A [23:17:26]Write i2c OK [23:17:26]MH_I2C_Read... [23:17:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:17:26]Read from MH i2c: E2 [23:17:26]MH_I2C_Read... [23:17:26]Read from MH i2c: E2 0E 00 [23:17:26]MH_I2C_Read... [23:17:26]Read from MH i2c: E2 0E 00 ED E0 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 87 [23:17:26]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:17:26]wFMCommunicate OK [23:17:26]SAM_PROTO_GetShiftState done [23:17:26]FM_GetShiftState done [23:17:26]opened in 1723940556 [23:17:26]opened+sec_in_day 1724026956 [23:17:26]quantity*price = 100021 [23:17:26]sum+1 = 100023 [23:17:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 569 18.08.2024 23:17 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261011 ФПД: 14615927606921 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T231733&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261011&fm=14615927606921&tin=02508201610067®Number=0000000000091865&sum=100000 [23:17:27]StoreToDocumentArchive [23:17:27]shift 449 fd 261011 [23:17:27]save to /storage/0449/doc_00261011 [23:17:27]save last doc name /storage/0449/doc_00261011 to /storage/kkm_last_doc_name [23:17:27]save OK [23:17:27]Clear old archive folders... [23:17:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:17:27]tlvbuf is 00818130 [23:17:27]SAM_PROTO_ClearQueue [23:17:27]wFMCommunicate request_size=4 [23:17:27]MH_SAM_APDU [23:17:27]CAPDU: 80 09 00 00 [23:17:27]Write to MH i2c: E2 08 00 FA E0 80 09 00 00 00 00 00 00 4C [23:17:27]Write i2c OK [23:17:27]MH_I2C_Read... [23:17:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:17:27]Read from MH i2c: E2 [23:17:27]MH_I2C_Read... [23:17:27]Read from MH i2c: E2 03 00 [23:17:27]MH_I2C_Read... [23:17:27]Read from MH i2c: E2 03 00 FA E0 00 90 00 4E [23:17:27]RAPDU: 90 00 [23:17:27]wFMCommunicate OK [23:17:27]SAM_PROTO_ClearQueue done [23:17:27]KKMCreateOFDPacket [23:17:27]OFDProtocolAddRootSTLVToBuf [23:17:27]FM_MakeSignedData [23:17:27]FM_MakeSignedData [23:17:27]SAM_PROTO_SignData [23:17:27]wFMCommunicate request_size=4 [23:17:27]MH_SAM_APDU [23:17:27]CAPDU: 80 0D 01 02 [23:17:27]Write to MH i2c: E2 08 00 FB E0 80 0D 01 02 00 00 00 00 54 [23:17:27]Write i2c OK [23:17:27]MH_I2C_Read... [23:17:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:17:27]Read from MH i2c: E2 [23:17:27]MH_I2C_Read... [23:17:27]Read from MH i2c: E2 03 00 [23:17:27]MH_I2C_Read... [23:17:27]Read from MH i2c: E2 03 00 FB E0 00 90 00 4F [23:17:27]RAPDU: 90 00 [23:17:27]wFMCommunicate OK [23:17:27]wFMCommunicate request_size=255 [23:17:27]MH_SAM_APDU [23:17: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 02 00 00 F4 03 04 00 0D 81 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 93 FB 03 00 35 04 06 00 0D [23:17:27]Write to MH i2c: E2 02 01 FC E0 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 02 00 00 F4 03 04 00 0D 81 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 93 FB 03 00 35 04 06 00 0D 00 00 4F [23:17:27]Write i2c OK [23:17:27]MH_I2C_Read... [23:17:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:17:28]Read from MH i2c: E2 [23:17:28]MH_I2C_Read... [23:17:28]Read from MH i2c: E2 03 00 [23:17:28]MH_I2C_Read... [23:17:28]Read from MH i2c: E2 03 00 FC E0 00 90 00 50 [23:17:28]RAPDU: 90 00 [23:17:28]wFMCommunicate OK [23:17:28]wFMCommunicate request_size=10 [23:17:28]MH_SAM_APDU [23:17:28]CAPDU: 80 0D 02 02 05 4B 09 2C 4E 89 [23:17:28]Write to MH i2c: E2 0D 00 FD E0 80 0D 02 02 05 00 4B 09 2C 4E 89 00 00 B8 [23:17:28]Write i2c OK [23:17:28]MH_I2C_Read... [23:17:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:17:28]Read from MH i2c: E2 [23:17:28]MH_I2C_Read... [23:17:28]Read from MH i2c: E2 03 00 [23:17:28]MH_I2C_Read... [23:17:28]Read from MH i2c: E2 03 00 FD E0 00 90 00 51 [23:17:28]RAPDU: 90 00 [23:17:28]wFMCommunicate OK [23:17:28]wFMCommunicate request_size=4 [23:17:28]MH_SAM_APDU [23:17:28]CAPDU: 80 0D 03 02 [23:17:28]Write to MH i2c: E2 08 00 FE E0 80 0D 03 02 00 00 00 00 59 [23:17:28]Write i2c OK [23:17:28]MH_I2C_Read... [23:17:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:17:28]Read from MH i2c: E2 [23:17:28]MH_I2C_Read... [23:17:28]Read from MH i2c: E2 0B 00 [23:17:28]MH_I2C_Read... [23:17:28]Read from MH i2c: E2 0B 00 FE E0 00 3C CF 87 0A BA 3C A0 BE 90 00 4A [23:17:28]RAPDU: 3C CF 87 0A BA 3C A0 BE 90 00 [23:17:28]wFMCommunicate OK [23:17:28]SAM_PROTO_SignData done [23:17:28]FM_MakeSignedData done [23:17:28]CreateOFDProtocolMessage [23:17:28]wFMCommunicate request_size=4 [23:17:28]MH_SAM_APDU [23:17:28]CAPDU: 80 11 00 00 [23:17:28]Write to MH i2c: E2 08 00 FF E0 80 11 00 00 00 00 00 00 59 [23:17:28]Write i2c OK [23:17:28]MH_I2C_Read... [23:17:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:17:28]Read from MH i2c: E2 [23:17:28]MH_I2C_Read... [23:17:28]Read from MH i2c: E2 17 00 [23:17:28]MH_I2C_Read... [23:17:28]Read from MH i2c: E2 17 00 FF E0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A6 [23:17:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:17:28]wFMCommunicate OK [23:17:28]CreateOFDProtocolMessage done [23:17:28]OFDSenderStorePacket 261011 [23:17:28]StoreOFDPacket docnum=261011 [23: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 30 0F 01 00 00 57 0F 07 01 FF C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 02 00 00 F4 03 04 00 0D 81 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 93 FB 03 00 35 04 06 00 0D 4B 09 2C 4E 89 3C CF 87 0A BA 3C A0 BE [23:17:28]CheckFolder [23:17:28]dirname=/storage/ofd_packets [23:17:28]CheckFolder done [23:17:28]ProducePacketName [23:17:28]name=ofd_packets/00261011 [23:17:28]NVStorageSaveData ofd_packets/00261011 [23:17:28]File name is /storage/ofd_packets/00261011 [23:17:28]Write 301 bytes [23:17:28]NVStorageSaveData done [23:17:28]OFDSenderStorePacket done [23:17:28]KKMCreateOFDPacket done [23:17:28]NVStorageSaveData kkm_last_timestamp [23:17:28]File name is /storage/kkm_last_timestamp [23:17:28]Write 4 bytes [23:17:28]NVStorageSaveData done [23:17:28]ExternCall_PrintAddStr [23:17:28]wPrintStart [23:17:28]Write to MH i2c: 01 00 00 00 E1 E1 [23:17:28]Write i2c OK [23:17:28]MH_I2C_Read... [23:17:28]Read from MH i2c: 01 [23:17:28]MH_I2C_Read... [23:17:28]Read from MH i2c: 01 07 00 [23:17:28]MH_I2C_Read... [23:17:28]Read from MH i2c: 01 07 00 00 E1 00 00 00 00 00 FF 0F F6 [23:17:28]RasterBufferAndPrint [23:17:28]line Счет N : (1)1036566 [23:17:28]line ИНН: 02508201610067 [23:17:28]line Контрольно-Кассовый Чек [23:17:28]line ПРОДАЖА [23:17:28]line ТРК (МРК, ГНК) : 23 [23:17:28]line Товар: 2710124500 [23:17:28]line Аи-95-К-5 [23:17:28]line 13.480 * 74.20 [23:17:28]line = 1000.22 [23:17:28]line НДС 12% НСП 1% [23:17:28]line > о реализуемом товаре [23:17:28]line ОКРУГЛЕНИЕ: -0.22 [23:17:28]line ИТОГО: 1000.00 [23:17:28]line Внесено: 1000.00 [23:17:28]line СДАЧА: 0.00 [23:17:28]line НСП 1% : 8.85 [23:17:28]line НДС 12% : 106.22 [23:17:28]line Наличными: 1000.00 [23:17:28]line Безнал.: 0.00 [23:17:28]line Место: АЗС № 94 "Партнер Нефть" [23:17:28]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [23:17:28]line СНО: Общий режим [23:17:28]line Чек 569 18.08.2024 23:17 [23:17:28]line Смена: 449 ФФД: 1.0 [23:17:28]line ЗНМ: 0300000099 [23:17:28]line РНМ: 0000000000091865 [23:17:28]line Версия ККМ: 001 [23:17:28]line ФМ: 0000000000871820 [23:17:28]line ФД: 261011 [23:17:28]line ФПД: 14615927606921 [23:17:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T231733&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261011&fm=14615927606921&tin=02508201610067®Number=0000000000091865&sum=100000 [23:17:28]written 0, free lines is 4095 [23:17:28]OFD Sender: Processing packet 261011 [packets to send 192, broken 191] [23:17:28]ProducePacketName [23:17:28]name=ofd_packets/00261011 [23:17:28]OFD Sender: To server: pG, [23:17:28]CommunicateWithHost lk.salyk.kg:30040 [23:17:28]ConnectInit lk.salyk.kg [23:17:28]Connected sock=10 [23:17: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 30 0F 01 00 00 57 0F 07 01 FF C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 02 00 00 F4 03 04 00 0D 81 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 93 FB 03 00 35 04 06 00 0D 4B 09 2C 4E 89 3C CF 87 0A BA 3C A0 BE [23:17: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 30 4F 00 00 00 97 7B 47 00 0A 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 93 FB 03 00 F4 03 04 00 61 2A C2 66 B6 04 01 00 00 3D 1E 7A 5A 64 6B 7B BC [23:17:28]CommunicateWithHost err = 0 [23:17:28]CheckOFDResponse [23:17:28]1017 (14) - 77093643461234 [23:17:28]1041 (16) - 0000000000871820 [23:17:28]1040 (4) - 261011 [23:17:28]1012 (4) - 18.08.2024 17:07 [23:17:28]1206 (1) - 0 [23:17:28]OFD Sender: Remove packet 261011 [23:17:28]ProducePacketName [23:17:28]name=ofd_packets/00261011 [23:17:28]NVStorageDeleteData [23:17:28]Write to MH i2c: 01 00 00 2B E1 0C [23:17:28]Write i2c OK [23:17:28]MH_I2C_Read... [23:17:28]Read from MH i2c: 01 [23:17:28]MH_I2C_Read... [23:17:28]Read from MH i2c: 01 07 00 [23:17:28]MH_I2C_Read... [23:17:28]Read from MH i2c: 01 07 00 2B E1 00 00 00 00 00 75 0C 94 [23:17:28]RasterBufferAndPrint [23:17:28]line [23:17:28]line [23:17:28]line [23:17:28]line [23:17:28]line [23:17:28]written 0, free lines is 3192 [23:17:28]MH_Cut [23:17:28]Write to MH i2c: D1 01 00 32 E1 01 E5 [23:17:28]Write i2c OK [23:17:28]MH_I2C_Read... [23:17:28]Read from MH i2c: D1 [23:17:28]MH_I2C_Read... [23:17:28]Read from MH i2c: D1 01 00 [23:17:28]MH_I2C_Read... [23:17:28]Read from MH i2c: D1 01 00 32 E1 00 E4 [23:17:28]Write to MH i2c: 01 00 00 33 E1 14 [23:17:28]Write i2c OK [23:17:28]MH_I2C_Read... [23:17:29]OFD Sender: No OFD packet to send [23:17:29]*** Cut start [23:17:29]*** Purtial cut [23:17:29]*** Stage 1: CUTSNS_PIN = 1 [23:17:31]Read from MH i2c: 01 [23:17:31]MH_I2C_Read... [23:17:31]*** Stop cut motor [23:17:31]*** Cut end [23:17:31]Read from MH i2c: 01 07 00 [23:17:31]MH_I2C_Read... [23:17:31]Read from MH i2c: 01 07 00 33 E1 00 00 00 00 00 FF 0F 29 [23:17:31]process_action close_receipt done [23:17:31]requested_data is exist [23:17:31]produce_requested_data [23:17:31]requested_item fm.sn is exist - process it [23:17:31]wFMCommunicate request_size=4 [23:17:31]MH_SAM_APDU [23:17:31]CAPDU: 80 11 00 00 [23:17:31]Write to MH i2c: E2 08 00 34 E1 80 11 00 00 00 00 00 00 8F [23:17:31]Write i2c OK [23:17:31]MH_I2C_Read... [23:17:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:17:31]Read from MH i2c: E2 [23:17:31]MH_I2C_Read... [23:17:31]Read from MH i2c: E2 17 00 [23:17:31]MH_I2C_Read... [23:17:31]Read from MH i2c: E2 17 00 34 E1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 DC [23:17:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:17:31]wFMCommunicate OK [23:17:31]requested_item fd.num is exist - process it [23:17:31]SAM_PROTO_GetFieldsCounters [23:17:31]wFMCommunicate request_size=4 [23:17:31]MH_SAM_APDU [23:17:31]CAPDU: 80 13 00 00 [23:17:31]Write to MH i2c: E2 08 00 35 E1 80 13 00 00 00 00 00 00 92 [23:17:31]Write i2c OK [23:17:31]MH_I2C_Read... [23:17:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:17:32]Read from MH i2c: E2 [23:17:32]MH_I2C_Read... [23:17:32]Read from MH i2c: E2 62 00 [23:17:32]MH_I2C_Read... [23:17:32]Read from MH i2c: E2 62 00 35 E1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 93 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 39 02 00 00 5E 04 04 00 39 02 00 00 57 04 04 00 3A 02 00 00 19 04 04 00 00 00 00 00 90 00 B5 [23:17: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 93 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 39 02 00 00 5E 04 04 00 39 02 00 00 57 04 04 00 3A 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:17:32]wFMCommunicate OK [23:17:32]SAM_PROTO_GetFieldsCounters done [23:17:32]requested_item shift.num is exist - process it [23:17:32]requested_item shift.opened is exist - process it [23:17:32]req_shift_opened [23:17:32]FM_GetShiftState [23:17:32]SAM_PROTO_GetShiftState [23:17:32]wFMCommunicate request_size=4 [23:17:32]MH_SAM_APDU [23:17:32]CAPDU: 80 13 01 00 [23:17:32]Write to MH i2c: E2 08 00 36 E1 80 13 01 00 00 00 00 00 94 [23:17:32]Write i2c OK [23:17:32]MH_I2C_Read... [23:17:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:17:32]Read from MH i2c: E2 [23:17:32]MH_I2C_Read... [23:17:32]Read from MH i2c: E2 0E 00 [23:17:32]MH_I2C_Read... [23:17:32]Read from MH i2c: E2 0E 00 36 E1 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D1 [23:17:32]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:17:32]wFMCommunicate OK [23:17:32]SAM_PROTO_GetShiftState done [23:17:32]FM_GetShiftState done [23:17:32]req_shift_opened done [23:17:32]requested_item shift.open_date is exist - process it [23:17:32]req_shift_open_date [23:17:32]req_shift_open_date done [23:17:32]produce_requested_data done [23:17:32]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261011,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [23:17:32]process_action_free close_receipt [23:17:32]json_value_free [23:17:32]json_value_free done [23:17:32]process_json_proto returns [23:17:32]Send response to host [23:17:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261011,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [23:17:32]free response buf [23:17:32]execute_script done [23:17:32]execute_script returns [23:17:32]free content buf [23:17:32]Sock 7.Close socket [23:17:32]Sock 7.Thread stoped [23:17:34]OFD Sender: No OFD packet to send [23:17:39]OFD Sender: No OFD packet to send [23:17:44]OFD Sender: No OFD packet to send [23:17:49]OFD Sender: No OFD packet to send [23:17:54]OFD Sender: No OFD packet to send [23:17:59]OFD Sender: No OFD packet to send [23:18:04]OFD Sender: No OFD packet to send [23:18:06]accept exits with 9 [23:18:06]New connection [23:18:06]New thread 3066473828 created [23:18:06]Thread 3066617188 joined [23:18:06]Waiting for new connection... [23:18:06] Sock 9.Parse request [23:18:06]Sock 9.Check first char [23:18:06]Sock 9.First char is OK [23:18:06]request: POST /json_proto HTTP/1.0 [23:18:06]Method: POST [23:18:06]URL: /json_proto [23:18:06]Method is POST - this is cgi request [23:18:06]url: /json_proto [23:18:06]query_string will be loaded in cgi processing [23:18:06]execute_cgi json_proto POST (null) [23:18:06]execute_cgi path=json_proto method=POST [23:18:06]POST find Content-Length [23:18:06]Host: 172.17.55.133:8080 [23:18:06]Content-Length: 678 [23:18:06]Content-Type: application/json [23:18:06] [23:18:06]POST finish read [23:18:06]Found Content-Length = 678 [23:18:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [23:18:06]execute_script... [23:18: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)1036567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [23:18:06]POST & json_proto [23:18:06]process_json_proto [23:18:06]json parsed OK: [23:18:06]protocol is kg_v1.0 [23:18:06]action value=close_receipt [23:18:06]process_action close_receipt [23:18:06]cmd_close_receipt [23:18:06]MH_GetDate [23:18:06]Write to MH i2c: F0 00 00 37 E1 07 [23:18:06]Write i2c OK [23:18:06]MH_I2C_Read... [23:18:06]Read from MH i2c: F0 [23:18:06]MH_I2C_Read... [23:18:06]Read from MH i2c: F0 09 00 [23:18:06]MH_I2C_Read... [23:18:06]Read from MH i2c: F0 09 00 37 E1 00 35 81 C2 66 34 48 D8 65 A7 [23:18:06]GetLastDocTimeStamp 1724023053 [23:18:06]current date 1724023093 [23:18:06]FM_GetShiftState [23:18:06]SAM_PROTO_GetShiftState [23:18:06]wFMCommunicate request_size=4 [23:18:06]MH_SAM_APDU [23:18:06]CAPDU: 80 13 01 00 [23:18:06]Write to MH i2c: E2 08 00 38 E1 80 13 01 00 00 00 00 00 96 [23:18:06]Write i2c OK [23:18:06]MH_I2C_Read... [23:18:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:18:06]Read from MH i2c: E2 [23:18:06]MH_I2C_Read... [23:18:06]Read from MH i2c: E2 0E 00 [23:18:06]MH_I2C_Read... [23:18:06]Read from MH i2c: E2 0E 00 38 E1 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 D3 [23:18:06]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:18:06]wFMCommunicate OK [23:18:06]SAM_PROTO_GetShiftState done [23:18:06]FM_GetShiftState done [23:18:06]opened in 1723940556 [23:18:06]opened+sec_in_day 1724026956 [23:18:06]quantity*price = 40002 [23:18:06]sum+1 = 40003 [23:18:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 570 18.08.2024 23:18 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261012 ФПД: 209241032475878 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T231813&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261012&fm=209241032475878&tin=02508201610067®Number=0000000000091865&sum=40000 [23:18:07]StoreToDocumentArchive [23:18:07]shift 449 fd 261012 [23:18:07]save to /storage/0449/doc_00261012 [23:18:07]save last doc name /storage/0449/doc_00261012 to /storage/kkm_last_doc_name [23:18:07]save OK [23:18:07]Clear old archive folders... [23:18:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:18:07]tlvbuf is 004539B0 [23:18:07]SAM_PROTO_ClearQueue [23:18:07]wFMCommunicate request_size=4 [23:18:07]MH_SAM_APDU [23:18:07]CAPDU: 80 09 00 00 [23:18:07]Write to MH i2c: E2 08 00 45 E1 80 09 00 00 00 00 00 00 98 [23:18:07]Write i2c OK [23:18:07]MH_I2C_Read... [23:18:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:18:07]Read from MH i2c: E2 [23:18:07]MH_I2C_Read... [23:18:07]Read from MH i2c: E2 03 00 [23:18:07]MH_I2C_Read... [23:18:07]Read from MH i2c: E2 03 00 45 E1 00 90 00 9A [23:18:07]RAPDU: 90 00 [23:18:07]wFMCommunicate OK [23:18:07]SAM_PROTO_ClearQueue done [23:18:07]KKMCreateOFDPacket [23:18:07]OFDProtocolAddRootSTLVToBuf [23:18:07]FM_MakeSignedData [23:18:07]FM_MakeSignedData [23:18:07]SAM_PROTO_SignData [23:18:07]wFMCommunicate request_size=4 [23:18:07]MH_SAM_APDU [23:18:07]CAPDU: 80 0D 01 02 [23:18:07]Write to MH i2c: E2 08 00 46 E1 80 0D 01 02 00 00 00 00 A0 [23:18:07]Write i2c OK [23:18:07]MH_I2C_Read... [23:18:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:18:07]Read from MH i2c: E2 [23:18:07]MH_I2C_Read... [23:18:07]Read from MH i2c: E2 03 00 [23:18:07]MH_I2C_Read... [23:18:07]Read from MH i2c: E2 03 00 46 E1 00 90 00 9B [23:18:07]RAPDU: 90 00 [23:18:07]wFMCommunicate OK [23:18:07]wFMCommunicate request_size=255 [23:18:07]MH_SAM_APDU [23:18:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 02 00 00 F4 03 04 00 35 81 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 94 FB 03 00 35 04 06 00 BE [23:18:07]Write to MH i2c: E2 02 01 47 E1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 02 00 00 F4 03 04 00 35 81 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 94 FB 03 00 35 04 06 00 BE 00 00 2E [23:18:07]Write i2c OK [23:18:07]MH_I2C_Read... [23:18:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:18:07]Read from MH i2c: E2 [23:18:07]MH_I2C_Read... [23:18:07]Read from MH i2c: E2 03 00 [23:18:07]MH_I2C_Read... [23:18:07]Read from MH i2c: E2 03 00 47 E1 00 90 00 9C [23:18:07]RAPDU: 90 00 [23:18:07]wFMCommunicate OK [23:18:07]wFMCommunicate request_size=10 [23:18:07]MH_SAM_APDU [23:18:07]CAPDU: 80 0D 02 02 05 4D B9 69 C4 E6 [23:18:07]Write to MH i2c: E2 0D 00 48 E1 80 0D 02 02 05 00 4D B9 69 C4 E6 00 00 C6 [23:18:07]Write i2c OK [23:18:07]MH_I2C_Read... [23:18:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:18:07]Read from MH i2c: E2 [23:18:07]MH_I2C_Read... [23:18:07]Read from MH i2c: E2 03 00 [23:18:07]MH_I2C_Read... [23:18:07]Read from MH i2c: E2 03 00 48 E1 00 90 00 9D [23:18:07]RAPDU: 90 00 [23:18:07]wFMCommunicate OK [23:18:07]wFMCommunicate request_size=4 [23:18:07]MH_SAM_APDU [23:18:07]CAPDU: 80 0D 03 02 [23:18:07]Write to MH i2c: E2 08 00 49 E1 80 0D 03 02 00 00 00 00 A5 [23:18:07]Write i2c OK [23:18:07]MH_I2C_Read... [23:18:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:18:07]Read from MH i2c: E2 [23:18:07]MH_I2C_Read... [23:18:07]Read from MH i2c: E2 0B 00 [23:18:07]MH_I2C_Read... [23:18:07]Read from MH i2c: E2 0B 00 49 E1 00 D7 92 4F CE F9 C8 88 AC 90 00 21 [23:18:07]RAPDU: D7 92 4F CE F9 C8 88 AC 90 00 [23:18:07]wFMCommunicate OK [23:18:07]SAM_PROTO_SignData done [23:18:07]FM_MakeSignedData done [23:18:07]CreateOFDProtocolMessage [23:18:07]wFMCommunicate request_size=4 [23:18:07]MH_SAM_APDU [23:18:07]CAPDU: 80 11 00 00 [23:18:07]Write to MH i2c: E2 08 00 4A E1 80 11 00 00 00 00 00 00 A5 [23:18:07]Write i2c OK [23:18:07]MH_I2C_Read... [23:18:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:18:08]Read from MH i2c: E2 [23:18:08]MH_I2C_Read... [23:18:08]Read from MH i2c: E2 17 00 [23:18:08]MH_I2C_Read... [23:18:08]Read from MH i2c: E2 17 00 4A E1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F2 [23:18:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:18:08]wFMCommunicate OK [23:18:08]CreateOFDProtocolMessage done [23:18:08]OFDSenderStorePacket 261012 [23:18:08]StoreOFDPacket docnum=261012 [23:18:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 64 7E 07 01 53 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 02 00 00 F4 03 04 00 35 81 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 94 FB 03 00 35 04 06 00 BE 4D B9 69 C4 E6 D7 92 4F CE F9 C8 88 AC [23:18:08]CheckFolder [23:18:08]dirname=/storage/ofd_packets [23:18:08]CheckFolder done [23:18:08]ProducePacketName [23:18:08]name=ofd_packets/00261012 [23:18:08]NVStorageSaveData ofd_packets/00261012 [23:18:08]File name is /storage/ofd_packets/00261012 [23:18:08]Write 301 bytes [23:18:08]NVStorageSaveData done [23:18:08]OFDSenderStorePacket done [23:18:08]KKMCreateOFDPacket done [23:18:08]NVStorageSaveData kkm_last_timestamp [23:18:08]File name is /storage/kkm_last_timestamp [23:18:08]Write 4 bytes [23:18:08]NVStorageSaveData done [23:18:08]ExternCall_PrintAddStr [23:18:08]wPrintStart [23:18:08]Write to MH i2c: 01 00 00 4B E1 2C [23:18:08]Write i2c OK [23:18:08]MH_I2C_Read... [23:18:08]Read from MH i2c: 01 [23:18:08]MH_I2C_Read... [23:18:08]Read from MH i2c: 01 07 00 [23:18:08]MH_I2C_Read... [23:18:08]Read from MH i2c: 01 07 00 4B E1 00 00 00 00 00 FF 0F 41 [23:18:08]RasterBufferAndPrint [23:18:08]line Счет N : (1)1036567 [23:18:08]line ИНН: 02508201610067 [23:18:08]line Контрольно-Кассовый Чек [23:18:08]line ПРОДАЖА [23:18:08]line ТРК (МРК, ГНК) : 32 [23:18:08]line Товар: 2710124130 [23:18:08]line Аи-92-К-5 [23:18:08]line 5.900 * 67.80 [23:18:08]line = 400.02 [23:18:08]line НДС 12% НСП 1% [23:18:08]line > о реализуемом товаре [23:18:08]line ОКРУГЛЕНИЕ: -0.02 [23:18:08]line ИТОГО: 400.00 [23:18:08]line Внесено: 400.00 [23:18:08]line СДАЧА: 0.00 [23:18:08]line НСП 1% : 3.54 [23:18:08]line НДС 12% : 42.48 [23:18:08]line Наличными: 400.00 [23:18:08]line Безнал.: 0.00 [23:18:08]line Место: АЗС № 94 "Партнер Нефть" [23:18:08]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [23:18:08]line СНО: Общий режим [23:18:08]line Чек 570 18.08.2024 23:18 [23:18:08]line Смена: 449 ФФД: 1.0 [23:18:08]line ЗНМ: 0300000099 [23:18:08]line РНМ: 0000000000091865 [23:18:08]line Версия ККМ: 001 [23:18:08]line ФМ: 0000000000871820 [23:18:08]line ФД: 261012 [23:18:08]line ФПД: 209241032475878 [23:18:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T231813&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261012&fm=209241032475878&tin=02508201610067®Number=0000000000091865&sum=40000 [23:18:08]OFD Sender: Processing packet 261012 [packets to send 192, broken 191] [23:18:08]ProducePacketName [23:18:08]name=ofd_packets/00261012 [23:18:08]OFD Sender: To server: pG, [23:18:08]CommunicateWithHost lk.salyk.kg:30040 [23:18:08]ConnectInit lk.salyk.kg [23:18:08]written 0, free lines is 4095 [23:18:08]Connected sock=10 [23:18: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 30 0F 01 00 00 64 7E 07 01 53 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 02 00 00 F4 03 04 00 35 81 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 94 FB 03 00 35 04 06 00 BE 4D B9 69 C4 E6 D7 92 4F CE F9 C8 88 AC [23:18: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 30 4F 00 00 00 A2 8D 47 00 E9 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 94 FB 03 00 F4 03 04 00 89 2A C2 66 B6 04 01 00 00 20 6A A7 4F 93 8F E7 B6 [23:18:08]CommunicateWithHost err = 0 [23:18:08]CheckOFDResponse [23:18:08]1017 (14) - 77093643461234 [23:18:08]1041 (16) - 0000000000871820 [23:18:08]1040 (4) - 261012 [23:18:08]1012 (4) - 18.08.2024 17:08 [23:18:08]1206 (1) - 0 [23:18:08]OFD Sender: Remove packet 261012 [23:18:08]ProducePacketName [23:18:08]name=ofd_packets/00261012 [23:18:08]NVStorageDeleteData [23:18:08]Write to MH i2c: 01 00 00 76 E1 57 [23:18:08]Write i2c OK [23:18:08]MH_I2C_Read... [23:18:08]Read from MH i2c: 01 [23:18:08]MH_I2C_Read... [23:18:08]Read from MH i2c: 01 07 00 [23:18:08]MH_I2C_Read... [23:18:08]Read from MH i2c: 01 07 00 76 E1 00 00 00 00 00 70 0C DA [23:18:08]RasterBufferAndPrint [23:18:08]line [23:18:08]line [23:18:08]line [23:18:08]line [23:18:08]line [23:18:08]written 0, free lines is 3186 [23:18:08]MH_Cut [23:18:08]Write to MH i2c: D1 01 00 7D E1 01 30 [23:18:08]Write i2c OK [23:18:08]MH_I2C_Read... [23:18:08]Read from MH i2c: D1 [23:18:08]MH_I2C_Read... [23:18:08]Read from MH i2c: D1 01 00 [23:18:08]MH_I2C_Read... [23:18:08]Read from MH i2c: D1 01 00 7D E1 00 2F [23:18:08]Write to MH i2c: 01 00 00 7E E1 5F [23:18:08]Write i2c OK [23:18:08]MH_I2C_Read... [23:18:09]OFD Sender: No OFD packet to send [23:18:09]*** Cut start [23:18:09]*** Purtial cut [23:18:09]*** Stage 1: CUTSNS_PIN = 1 [23:18:11]Read from MH i2c: 01 [23:18:12]MH_I2C_Read... [23:18:12]*** Stop cut motor [23:18:12]*** Cut end [23:18:12]Read from MH i2c: 01 07 00 [23:18:12]MH_I2C_Read... [23:18:12]Read from MH i2c: 01 07 00 7E E1 00 00 00 00 00 FF 0F 74 [23:18:12]process_action close_receipt done [23:18:12]requested_data is exist [23:18:12]produce_requested_data [23:18:12]requested_item fm.sn is exist - process it [23:18:12]wFMCommunicate request_size=4 [23:18:12]MH_SAM_APDU [23:18:12]CAPDU: 80 11 00 00 [23:18:12]Write to MH i2c: E2 08 00 7F E1 80 11 00 00 00 00 00 00 DA [23:18:12]Write i2c OK [23:18:12]MH_I2C_Read... [23:18:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:18:12]Read from MH i2c: E2 [23:18:12]MH_I2C_Read... [23:18:12]Read from MH i2c: E2 17 00 [23:18:12]MH_I2C_Read... [23:18:12]Read from MH i2c: E2 17 00 7F E1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 27 [23:18:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:18:12]wFMCommunicate OK [23:18:12]requested_item fd.num is exist - process it [23:18:12]SAM_PROTO_GetFieldsCounters [23:18:12]wFMCommunicate request_size=4 [23:18:12]MH_SAM_APDU [23:18:12]CAPDU: 80 13 00 00 [23:18:12]Write to MH i2c: E2 08 00 80 E1 80 13 00 00 00 00 00 00 DD [23:18:12]Write i2c OK [23:18:12]MH_I2C_Read... [23:18:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:18:12]Read from MH i2c: E2 [23:18:12]MH_I2C_Read... [23:18:12]Read from MH i2c: E2 62 00 [23:18:12]MH_I2C_Read... [23:18:12]Read from MH i2c: E2 62 00 80 E1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 94 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 3A 02 00 00 5E 04 04 00 3A 02 00 00 57 04 04 00 3B 02 00 00 19 04 04 00 00 00 00 00 90 00 04 [23:18: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 94 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 3A 02 00 00 5E 04 04 00 3A 02 00 00 57 04 04 00 3B 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:18:12]wFMCommunicate OK [23:18:12]SAM_PROTO_GetFieldsCounters done [23:18:12]requested_item shift.num is exist - process it [23:18:12]requested_item shift.opened is exist - process it [23:18:12]req_shift_opened [23:18:12]FM_GetShiftState [23:18:12]SAM_PROTO_GetShiftState [23:18:12]wFMCommunicate request_size=4 [23:18:12]MH_SAM_APDU [23:18:12]CAPDU: 80 13 01 00 [23:18:12]Write to MH i2c: E2 08 00 81 E1 80 13 01 00 00 00 00 00 DF [23:18:12]Write i2c OK [23:18:12]MH_I2C_Read... [23:18:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:18:12]Read from MH i2c: E2 [23:18:12]MH_I2C_Read... [23:18:12]Read from MH i2c: E2 0E 00 [23:18:12]MH_I2C_Read... [23:18:12]Read from MH i2c: E2 0E 00 81 E1 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 1C [23:18:12]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:18:12]wFMCommunicate OK [23:18:12]SAM_PROTO_GetShiftState done [23:18:12]FM_GetShiftState done [23:18:12]req_shift_opened done [23:18:12]requested_item shift.open_date is exist - process it [23:18:12]req_shift_open_date [23:18:12]req_shift_open_date done [23:18:12]produce_requested_data done [23:18:12]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261012,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [23:18:12]process_action_free close_receipt [23:18:12]json_value_free [23:18:12]json_value_free done [23:18:12]process_json_proto returns [23:18:12]Send response to host [23:18:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261012,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [23:18:12]free response buf [23:18:12]execute_script done [23:18:12]execute_script returns [23:18:12]free content buf [23:18:12]Sock 9.Close socket [23:18:12]Sock 9.Thread stoped [23:18:14]OFD Sender: No OFD packet to send [23:18:19]OFD Sender: No OFD packet to send [23:18:24]OFD Sender: No OFD packet to send [23:18:29]OFD Sender: No OFD packet to send [23:18:34]OFD Sender: No OFD packet to send [23:18:39]OFD Sender: No OFD packet to send [23:18:44]OFD Sender: No OFD packet to send [23:18:49]OFD Sender: No OFD packet to send [23:18:54]OFD Sender: No OFD packet to send [23:18:59]OFD Sender: No OFD packet to send [23:19:04]OFD Sender: No OFD packet to send [23:19:09]OFD Sender: No OFD packet to send [23:19:14]OFD Sender: No OFD packet to send [23:19:19]OFD Sender: No OFD packet to send [23:19:24]OFD Sender: No OFD packet to send [23:19:29]OFD Sender: No OFD packet to send [23:19:34]OFD Sender: No OFD packet to send [23:19:39]OFD Sender: No OFD packet to send [23:19:44]OFD Sender: No OFD packet to send [23:19:49]OFD Sender: No OFD packet to send [23:19:54]OFD Sender: No OFD packet to send [23:19:59]OFD Sender: No OFD packet to send [23:20:04]OFD Sender: No OFD packet to send [23:20:09]OFD Sender: No OFD packet to send [23:20:14]OFD Sender: No OFD packet to send [23:20:19]OFD Sender: No OFD packet to send [23:20:24]OFD Sender: No OFD packet to send [23:20:29]OFD Sender: No OFD packet to send [23:20:34]OFD Sender: No OFD packet to send [23:20:39]OFD Sender: No OFD packet to send [23:20:44]OFD Sender: No OFD packet to send [23:20:49]OFD Sender: No OFD packet to send [23:20:54]OFD Sender: No OFD packet to send [23:20:59]OFD Sender: No OFD packet to send [23:21:04]OFD Sender: No OFD packet to send [23:21:09]OFD Sender: No OFD packet to send [23:21:14]OFD Sender: No OFD packet to send [23:21:19]OFD Sender: No OFD packet to send [23:21:24]OFD Sender: No OFD packet to send [23:21:29]OFD Sender: No OFD packet to send [23:21:34]OFD Sender: No OFD packet to send [23:21:39]OFD Sender: No OFD packet to send [23:21:44]OFD Sender: No OFD packet to send [23:21:49]OFD Sender: No OFD packet to send [23:21:54]OFD Sender: No OFD packet to send [23:21:59]OFD Sender: No OFD packet to send [23:22:04]OFD Sender: No OFD packet to send [23:22:09]OFD Sender: No OFD packet to send [23:22:14]OFD Sender: No OFD packet to send [23:22:19]OFD Sender: No OFD packet to send [23:22:24]OFD Sender: No OFD packet to send [23:22:29]OFD Sender: No OFD packet to send [23:22:34]OFD Sender: No OFD packet to send [23:22:39]OFD Sender: No OFD packet to send [23:22:44]OFD Sender: No OFD packet to send [23:22:49]OFD Sender: No OFD packet to send [23:22:54]OFD Sender: No OFD packet to send [23:22:59]OFD Sender: No OFD packet to send [23:23:04]OFD Sender: No OFD packet to send [23:23:09]OFD Sender: No OFD packet to send [23:23:14]OFD Sender: No OFD packet to send [23:23:19]OFD Sender: No OFD packet to send [23:23:24]OFD Sender: No OFD packet to send [23:23:29]OFD Sender: No OFD packet to send [23:23:34]OFD Sender: No OFD packet to send [23:23:39]OFD Sender: No OFD packet to send [23:23:44]OFD Sender: No OFD packet to send [23:23:49]OFD Sender: No OFD packet to send [23:23:54]OFD Sender: No OFD packet to send [23:23:59]OFD Sender: No OFD packet to send [23:24:04]OFD Sender: No OFD packet to send [23:24:09]OFD Sender: No OFD packet to send [23:24:14]OFD Sender: No OFD packet to send [23:24:17]accept exits with 7 [23:24:17]New connection [23:24:17]New thread 3066617188 created [23:24:17]Thread 3066473828 joined [23:24:17]Waiting for new connection... [23:24:17] Sock 7.Parse request [23:24:17]Sock 7.Check first char [23:24:17]Sock 7.First char is OK [23:24:17]request: POST /json_proto HTTP/1.0 [23:24:17]Method: POST [23:24:17]URL: /json_proto [23:24:17]Method is POST - this is cgi request [23:24:17]url: /json_proto [23:24:17]query_string will be loaded in cgi processing [23:24:17]execute_cgi json_proto POST (null) [23:24:17]execute_cgi path=json_proto method=POST [23:24:17]POST find Content-Length [23:24:17]Host: 172.17.55.133:8080 [23:24:17]Content-Length: 801 [23:24:17]Content-Type: application/json [23:24:17] [23:24:17]POST finish read [23:24:17]Found Content-Length = 801 [23:24:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:24:17]execute_script... [23:24: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)1036568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:24:17]POST & json_proto [23:24:17]process_json_proto [23:24:17]json parsed OK: [23:24:17]protocol is kg_v1.0 [23:24:17]action value=close_receipt [23:24:17]process_action close_receipt [23:24:17]cmd_close_receipt [23:24:17]MH_GetDate [23:24:17]Write to MH i2c: F0 00 00 82 E1 52 [23:24:17]Write i2c OK [23:24:17]MH_I2C_Read... [23:24:17]Read from MH i2c: F0 [23:24:17]MH_I2C_Read... [23:24:17]Read from MH i2c: F0 09 00 [23:24:17]MH_I2C_Read... [23:24:17]Read from MH i2c: F0 09 00 82 E1 00 A9 82 C2 66 34 48 D8 65 67 [23:24:17]GetLastDocTimeStamp 1724023093 [23:24:17]current date 1724023465 [23:24:17]FM_GetShiftState [23:24:17]SAM_PROTO_GetShiftState [23:24:17]wFMCommunicate request_size=4 [23:24:17]MH_SAM_APDU [23:24:17]CAPDU: 80 13 01 00 [23:24:17]Write to MH i2c: E2 08 00 83 E1 80 13 01 00 00 00 00 00 E1 [23:24:17]Write i2c OK [23:24:17]MH_I2C_Read... [23:24:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:24:17]Read from MH i2c: E2 [23:24:17]MH_I2C_Read... [23:24:17]Read from MH i2c: E2 0E 00 [23:24:17]MH_I2C_Read... [23:24:17]Read from MH i2c: E2 0E 00 83 E1 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 1E [23:24:17]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:24:17]wFMCommunicate OK [23:24:17]SAM_PROTO_GetShiftState done [23:24:17]FM_GetShiftState done [23:24:17]opened in 1723940556 [23:24:17]opened+sec_in_day 1724026956 [23:24:17]quantity*price = 40002 [23:24:17]sum+1 = 40003 [23:24:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.02 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.02 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 571 18.08.2024 23:24 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 261013 ФПД: 257803409998925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T232425&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261013&fm=257803409998925&tin=02508201610067®Number=0000000000091865&sum=40002 [23:24:19]StoreToDocumentArchive [23:24:19]shift 449 fd 261013 [23:24:19]save to /storage/0449/doc_00261013 [23:24:19]save last doc name /storage/0449/doc_00261013 to /storage/kkm_last_doc_name [23:24:19]save OK [23:24:19]Clear old archive folders... [23:24:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:24:19]tlvbuf is 00540DC0 [23:24:19]SAM_PROTO_ClearQueue [23:24:19]wFMCommunicate request_size=4 [23:24:19]MH_SAM_APDU [23:24:19]CAPDU: 80 09 00 00 [23:24:19]Write to MH i2c: E2 08 00 90 E1 80 09 00 00 00 00 00 00 E3 [23:24:19]Write i2c OK [23:24:19]MH_I2C_Read... [23:24:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:24:19]Read from MH i2c: E2 [23:24:19]MH_I2C_Read... [23:24:19]Read from MH i2c: E2 03 00 [23:24:19]MH_I2C_Read... [23:24:19]Read from MH i2c: E2 03 00 90 E1 00 90 00 E5 [23:24:19]RAPDU: 90 00 [23:24:19]wFMCommunicate OK [23:24:19]SAM_PROTO_ClearQueue done [23:24:19]KKMCreateOFDPacket [23:24:19]OFDProtocolAddRootSTLVToBuf [23:24:19]FM_MakeSignedData [23:24:19]FM_MakeSignedData [23:24:19]SAM_PROTO_SignData [23:24:19]wFMCommunicate request_size=4 [23:24:19]MH_SAM_APDU [23:24:19]CAPDU: 80 0D 01 02 [23:24:19]Write to MH i2c: E2 08 00 91 E1 80 0D 01 02 00 00 00 00 EB [23:24:19]Write i2c OK [23:24:19]MH_I2C_Read... [23:24:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:24:19]Read from MH i2c: E2 [23:24:19]MH_I2C_Read... [23:24:19]Read from MH i2c: E2 03 00 [23:24:19]MH_I2C_Read... [23:24:19]Read from MH i2c: E2 03 00 91 E1 00 90 00 E6 [23:24:19]RAPDU: 90 00 [23:24:19]wFMCommunicate OK [23:24:19]wFMCommunicate request_size=255 [23:24:19]MH_SAM_APDU [23:24:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 02 00 00 F4 03 04 00 A9 82 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 95 FB 03 00 35 04 06 00 EA [23:24:19]Write to MH i2c: E2 02 01 92 E1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 02 00 00 F4 03 04 00 A9 82 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 95 FB 03 00 35 04 06 00 EA 00 00 20 [23:24:19]Write i2c OK [23:24:19]MH_I2C_Read... [23:24:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:19]Read from MH i2c: E2 [23:24:19]MH_I2C_Read... [23:24:19]Read from MH i2c: E2 03 00 [23:24:19]MH_I2C_Read... [23:24:19]Read from MH i2c: E2 03 00 92 E1 00 90 00 E7 [23:24:19]RAPDU: 90 00 [23:24:19]wFMCommunicate OK [23:24:19]wFMCommunicate request_size=10 [23:24:19]MH_SAM_APDU [23:24:19]CAPDU: 80 0D 02 02 05 78 88 AC C4 4D [23:24:19]Write to MH i2c: E2 0D 00 93 E1 80 0D 02 02 05 00 78 88 AC C4 4D 00 00 B5 [23:24:19]Write i2c OK [23:24:19]MH_I2C_Read... [23:24:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:19]Read from MH i2c: E2 [23:24:19]MH_I2C_Read... [23:24:19]Read from MH i2c: E2 03 00 [23:24:19]MH_I2C_Read... [23:24:19]Read from MH i2c: E2 03 00 93 E1 00 90 00 E8 [23:24:19]RAPDU: 90 00 [23:24:19]wFMCommunicate OK [23:24:19]wFMCommunicate request_size=4 [23:24:19]MH_SAM_APDU [23:24:19]CAPDU: 80 0D 03 02 [23:24:19]Write to MH i2c: E2 08 00 94 E1 80 0D 03 02 00 00 00 00 F0 [23:24:19]Write i2c OK [23:24:19]MH_I2C_Read... [23:24:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:24:19]Read from MH i2c: E2 [23:24:19]MH_I2C_Read... [23:24:19]Read from MH i2c: E2 0B 00 [23:24:19]MH_I2C_Read... [23:24:19]Read from MH i2c: E2 0B 00 94 E1 00 88 8E 16 AC 83 4F 7E 27 90 00 40 [23:24:19]RAPDU: 88 8E 16 AC 83 4F 7E 27 90 00 [23:24:19]wFMCommunicate OK [23:24:19]SAM_PROTO_SignData done [23:24:19]FM_MakeSignedData done [23:24:19]CreateOFDProtocolMessage [23:24:19]wFMCommunicate request_size=4 [23:24:19]MH_SAM_APDU [23:24:19]CAPDU: 80 11 00 00 [23:24:19]Write to MH i2c: E2 08 00 95 E1 80 11 00 00 00 00 00 00 F0 [23:24:19]Write i2c OK [23:24:19]MH_I2C_Read... [23:24:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:24:19]Read from MH i2c: E2 [23:24:19]MH_I2C_Read... [23:24:19]Read from MH i2c: E2 17 00 [23:24:19]MH_I2C_Read... [23:24:19]Read from MH i2c: E2 17 00 95 E1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 3D [23:24:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:24:19]wFMCommunicate OK [23:24:19]CreateOFDProtocolMessage done [23:24:19]OFDSenderStorePacket 261013 [23:24:19]StoreOFDPacket docnum=261013 [23:24:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 95 57 07 01 A0 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 02 00 00 F4 03 04 00 A9 82 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 95 FB 03 00 35 04 06 00 EA 78 88 AC C4 4D 88 8E 16 AC 83 4F 7E 27 [23:24:19]CheckFolder [23:24:19]dirname=/storage/ofd_packets [23:24:19]CheckFolder done [23:24:19]ProducePacketName [23:24:19]name=ofd_packets/00261013 [23:24:19]NVStorageSaveData ofd_packets/00261013 [23:24:19]File name is /storage/ofd_packets/00261013 [23:24:19]Write 301 bytes [23:24:19]NVStorageSaveData done [23:24:19]OFDSenderStorePacket done [23:24:19]KKMCreateOFDPacket done [23:24:19]NVStorageSaveData kkm_last_timestamp [23:24:19]File name is /storage/kkm_last_timestamp [23:24:19]Write 4 bytes [23:24:19]NVStorageSaveData done [23:24:19]ExternCall_PrintAddStr [23:24:19]wPrintStart [23:24:19]Write to MH i2c: 01 00 00 96 E1 77 [23:24:19]Write i2c OK [23:24:19]MH_I2C_Read... [23:24:19]Read from MH i2c: 01 [23:24:19]MH_I2C_Read... [23:24:19]Read from MH i2c: 01 07 00 [23:24:19]MH_I2C_Read... [23:24:19]Read from MH i2c: 01 07 00 96 E1 00 00 00 00 00 FF 0F 8C [23:24:19]RasterBufferAndPrint [23:24:19]line Счет N : (1)1036568 [23:24:19]line ИНН: 02508201610067 [23:24:19]line Контрольно-Кассовый Чек [23:24:19]line ПРОДАЖА [23:24:19]line ТРК (МРК, ГНК) : 42 [23:24:19]line Товар: 2710124130 [23:24:19]line Аи-92-К-5 [23:24:19]line 5.900 * 67.80 [23:24:19]line = 400.02 [23:24:19]line НДС 12% НСП 1% [23:24:19]line > о реализуемом товаре [23:24:19]line ИТОГО: 400.02 [23:24:19]line НСП 1% : 3.54 [23:24:19]line НДС 12% : 42.48 [23:24:19]line Наличными: 0.00 [23:24:19]line Безнал.: 400.02 [23:24:19]line Место: АЗС № 94 "Партнер Нефть" [23:24:19]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [23:24:19]line СНО: Общий режим [23:24:19]line Чек 571 18.08.2024 23:24 [23:24:19]line Смена: 449 ФФД: 1.0 [23:24:19]line ЗНМ: 0300000099 [23:24:19]line РНМ: 0000000000091865 [23:24:19]line Версия ККМ: 001 [23:24:19]line Платежная система: O! деньги [23:24:19]line ФМ: 0000000000871820 [23:24:19]line ФД: 261013 [23:24:19]line ФПД: 257803409998925 [23:24:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T232425&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261013&fm=257803409998925&tin=02508201610067®Number=0000000000091865&sum=40002 [23:24:19]written 0, free lines is 4095 [23:24:19]OFD Sender: Processing packet 261013 [packets to send 192, broken 191] [23:24:19]ProducePacketName [23:24:19]name=ofd_packets/00261013 [23:24:19]OFD Sender: To server: pG, [23:24:19]CommunicateWithHost lk.salyk.kg:30040 [23:24:19]ConnectInit lk.salyk.kg [23:24:19]Connected sock=10 [23:24: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 30 0F 01 00 00 95 57 07 01 A0 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 02 00 00 F4 03 04 00 A9 82 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 95 FB 03 00 35 04 06 00 EA 78 88 AC C4 4D 88 8E 16 AC 83 4F 7E 27 [23:24: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 30 4F 00 00 00 9B 22 47 00 6E F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 95 FB 03 00 F4 03 04 00 FC 2B C2 66 B6 04 01 00 00 1A 65 B3 06 D1 DC 75 7B [23:24:19]CommunicateWithHost err = 0 [23:24:19]CheckOFDResponse [23:24:19]1017 (14) - 77093643461234 [23:24:19]1041 (16) - 0000000000871820 [23:24:19]1040 (4) - 261013 [23:24:19]1012 (4) - 18.08.2024 17:14 [23:24:19]1206 (1) - 0 [23:24:19]OFD Sender: Remove packet 261013 [23:24:19]ProducePacketName [23:24:19]name=ofd_packets/00261013 [23:24:19]NVStorageDeleteData [23:24:20]Write to MH i2c: 01 00 00 C0 E1 A1 [23:24:20]Write i2c OK [23:24:20]MH_I2C_Read... [23:24:20]Read from MH i2c: 01 [23:24:20]MH_I2C_Read... [23:24:20]Read from MH i2c: 01 07 00 [23:24:20]MH_I2C_Read... [23:24:20]Read from MH i2c: 01 07 00 C0 E1 00 00 00 00 00 90 0C 44 [23:24:20]RasterBufferAndPrint [23:24:20]line [23:24:20]line [23:24:20]line [23:24:20]line [23:24:20]line [23:24:20]written 0, free lines is 3219 [23:24:20]MH_Cut [23:24:20]Write to MH i2c: D1 01 00 C7 E1 01 7A [23:24:20]Write i2c OK [23:24:20]MH_I2C_Read... [23:24:20]Read from MH i2c: D1 [23:24:20]MH_I2C_Read... [23:24:20]Read from MH i2c: D1 01 00 [23:24:20]MH_I2C_Read... [23:24:20]Read from MH i2c: D1 01 00 C7 E1 00 79 [23:24:20]Write to MH i2c: 01 00 00 C8 E1 A9 [23:24:20]Write i2c OK [23:24:20]MH_I2C_Read... [23:24:20]OFD Sender: No OFD packet to send [23:24:21]*** Cut start [23:24:21]*** Purtial cut [23:24:21]*** Stage 1: CUTSNS_PIN = 1 [23:24:23]Read from MH i2c: 01 [23:24:23]MH_I2C_Read... [23:24:23]*** Stop cut motor [23:24:23]*** Cut end [23:24:23]Read from MH i2c: 01 07 00 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: 01 07 00 C8 E1 00 00 00 00 00 FF 0F BE [23:24:23]process_action close_receipt done [23:24:23]requested_data is exist [23:24:23]produce_requested_data [23:24:23]requested_item fm.sn is exist - process it [23:24:23]wFMCommunicate request_size=4 [23:24:23]MH_SAM_APDU [23:24:23]CAPDU: 80 11 00 00 [23:24:23]Write to MH i2c: E2 08 00 C9 E1 80 11 00 00 00 00 00 00 24 [23:24:23]Write i2c OK [23:24:23]MH_I2C_Read... [23:24:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:24:23]Read from MH i2c: E2 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: E2 17 00 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: E2 17 00 C9 E1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 71 [23:24:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:24:23]wFMCommunicate OK [23:24:23]requested_item fd.num is exist - process it [23:24:23]SAM_PROTO_GetFieldsCounters [23:24:23]wFMCommunicate request_size=4 [23:24:23]MH_SAM_APDU [23:24:23]CAPDU: 80 13 00 00 [23:24:23]Write to MH i2c: E2 08 00 CA E1 80 13 00 00 00 00 00 00 27 [23:24:23]Write i2c OK [23:24:23]MH_I2C_Read... [23:24:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:24:23]Read from MH i2c: E2 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: E2 62 00 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: E2 62 00 CA E1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 95 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 3B 02 00 00 5E 04 04 00 3B 02 00 00 57 04 04 00 3C 02 00 00 19 04 04 00 00 00 00 00 90 00 52 [23:24: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 95 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 3B 02 00 00 5E 04 04 00 3B 02 00 00 57 04 04 00 3C 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:24:23]wFMCommunicate OK [23:24:23]SAM_PROTO_GetFieldsCounters done [23:24:23]requested_item shift.num is exist - process it [23:24:23]requested_item shift.opened is exist - process it [23:24:23]req_shift_opened [23:24:23]FM_GetShiftState [23:24:23]SAM_PROTO_GetShiftState [23:24:23]wFMCommunicate request_size=4 [23:24:23]MH_SAM_APDU [23:24:23]CAPDU: 80 13 01 00 [23:24:23]Write to MH i2c: E2 08 00 CB E1 80 13 01 00 00 00 00 00 29 [23:24:23]Write i2c OK [23:24:23]MH_I2C_Read... [23:24:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:24:23]Read from MH i2c: E2 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: E2 0E 00 [23:24:23]MH_I2C_Read... [23:24:23]Read from MH i2c: E2 0E 00 CB E1 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 66 [23:24:23]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:24:23]wFMCommunicate OK [23:24:23]SAM_PROTO_GetShiftState done [23:24:23]FM_GetShiftState done [23:24:23]req_shift_opened done [23:24:23]requested_item shift.open_date is exist - process it [23:24:23]req_shift_open_date [23:24:23]req_shift_open_date done [23:24:23]produce_requested_data done [23:24:23]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261013,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [23:24:23]process_action_free close_receipt [23:24:23]json_value_free [23:24:23]json_value_free done [23:24:23]process_json_proto returns [23:24:23]Send response to host [23:24:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261013,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [23:24:23]free response buf [23:24:23]execute_script done [23:24:23]execute_script returns [23:24:23]free content buf [23:24:23]Sock 7.Close socket [23:24:23]Sock 7.Thread stoped [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:54]accept exits with 9 [23:24:54]New connection [23:24:54]New thread 3066473828 created [23:24:54]Thread 3066617188 joined [23:24:54]Waiting for new connection... [23:24:54] Sock 9.Parse request [23:24:54]Sock 9.Check first char [23:24:54]Sock 9.First char is OK [23:24:54]request: POST /json_proto HTTP/1.0 [23:24:54]Method: POST [23:24:54]URL: /json_proto [23:24:54]Method is POST - this is cgi request [23:24:54]url: /json_proto [23:24:54]query_string will be loaded in cgi processing [23:24:54]execute_cgi json_proto POST (null) [23:24:54]execute_cgi path=json_proto method=POST [23:24:54]POST find Content-Length [23:24:54]Host: 172.17.55.133:8080 [23:24:54]Content-Length: 678 [23:24:54]Content-Type: application/json [23:24:54] [23:24:54]POST finish read [23:24:54]Found Content-Length = 678 [23:24:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:24:54]execute_script... [23:24: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)1036569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:24:54]POST & json_proto [23:24:54]process_json_proto [23:24:54]json parsed OK: [23:24:54]protocol is kg_v1.0 [23:24:54]action value=close_receipt [23:24:54]process_action close_receipt [23:24:54]cmd_close_receipt [23:24:54]MH_GetDate [23:24:54]Write to MH i2c: F0 00 00 CC E1 9C [23:24:54]Write i2c OK [23:24:54]MH_I2C_Read... [23:24:54]Read from MH i2c: F0 [23:24:54]MH_I2C_Read... [23:24:54]Read from MH i2c: F0 09 00 [23:24:54]MH_I2C_Read... [23:24:54]Read from MH i2c: F0 09 00 CC E1 00 CE 82 C2 66 34 48 D8 65 D6 [23:24:54]GetLastDocTimeStamp 1724023465 [23:24:54]current date 1724023502 [23:24:54]FM_GetShiftState [23:24:54]SAM_PROTO_GetShiftState [23:24:54]wFMCommunicate request_size=4 [23:24:54]MH_SAM_APDU [23:24:54]CAPDU: 80 13 01 00 [23:24:54]Write to MH i2c: E2 08 00 CD E1 80 13 01 00 00 00 00 00 2B [23:24:54]Write i2c OK [23:24:54]MH_I2C_Read... [23:24:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:24:54]Read from MH i2c: E2 [23:24:54]MH_I2C_Read... [23:24:54]Read from MH i2c: E2 0E 00 [23:24:54]MH_I2C_Read... [23:24:54]Read from MH i2c: E2 0E 00 CD E1 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 68 [23:24:54]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:24:54]wFMCommunicate OK [23:24:54]SAM_PROTO_GetShiftState done [23:24:54]FM_GetShiftState done [23:24:54]opened in 1723940556 [23:24:54]opened+sec_in_day 1724026956 [23:24:54]quantity*price = 50036 [23:24:54]sum+1 = 50037 [23:24:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 572 18.08.2024 23:25 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261014 ФПД: 207401081464438 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T232502&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261014&fm=207401081464438&tin=02508201610067®Number=0000000000091865&sum=50000 [23:24:56]StoreToDocumentArchive [23:24:56]shift 449 fd 261014 [23:24:56]save to /storage/0449/doc_00261014 [23:24:56]save last doc name /storage/0449/doc_00261014 to /storage/kkm_last_doc_name [23:24:56]save OK [23:24:56]Clear old archive folders... [23:24:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:24:56]tlvbuf is 005407E0 [23:24:56]SAM_PROTO_ClearQueue [23:24:56]wFMCommunicate request_size=4 [23:24:56]MH_SAM_APDU [23:24:56]CAPDU: 80 09 00 00 [23:24:56]Write to MH i2c: E2 08 00 DA E1 80 09 00 00 00 00 00 00 2D [23:24:56]Write i2c OK [23:24:56]MH_I2C_Read... [23:24:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:24:56]Read from MH i2c: E2 [23:24:56]MH_I2C_Read... [23:24:56]Read from MH i2c: E2 03 00 [23:24:56]MH_I2C_Read... [23:24:56]Read from MH i2c: E2 03 00 DA E1 00 90 00 2F [23:24:56]RAPDU: 90 00 [23:24:56]wFMCommunicate OK [23:24:56]SAM_PROTO_ClearQueue done [23:24:56]KKMCreateOFDPacket [23:24:56]OFDProtocolAddRootSTLVToBuf [23:24:56]FM_MakeSignedData [23:24:56]FM_MakeSignedData [23:24:56]SAM_PROTO_SignData [23:24:56]wFMCommunicate request_size=4 [23:24:56]MH_SAM_APDU [23:24:56]CAPDU: 80 0D 01 02 [23:24:56]Write to MH i2c: E2 08 00 DB E1 80 0D 01 02 00 00 00 00 35 [23:24:56]Write i2c OK [23:24:56]MH_I2C_Read... [23:24:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:24:56]Read from MH i2c: E2 [23:24:56]MH_I2C_Read... [23:24:56]Read from MH i2c: E2 03 00 [23:24:56]MH_I2C_Read... [23:24:56]Read from MH i2c: E2 03 00 DB E1 00 90 00 30 [23:24:56]RAPDU: 90 00 [23:24:56]wFMCommunicate OK [23:24:56]wFMCommunicate request_size=255 [23:24:56]MH_SAM_APDU [23:24:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3C 02 00 00 F4 03 04 00 CE 82 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 96 FB 03 00 35 04 06 00 BC [23:24:56]Write to MH i2c: E2 02 01 DC E1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3C 02 00 00 F4 03 04 00 CE 82 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 96 FB 03 00 35 04 06 00 BC 00 00 7A [23:24:56]Write i2c OK [23:24:56]MH_I2C_Read... [23:24:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:56]Read from MH i2c: E2 [23:24:56]MH_I2C_Read... [23:24:56]Read from MH i2c: E2 03 00 [23:24:56]MH_I2C_Read... [23:24:56]Read from MH i2c: E2 03 00 DC E1 00 90 00 31 [23:24:56]RAPDU: 90 00 [23:24:56]wFMCommunicate OK [23:24:56]wFMCommunicate request_size=10 [23:24:56]MH_SAM_APDU [23:24:56]CAPDU: 80 0D 02 02 05 A1 53 C9 66 76 [23:24:56]Write to MH i2c: E2 0D 00 DD E1 80 0D 02 02 05 00 A1 53 C9 66 76 00 00 DB [23:24:56]Write i2c OK [23:24:56]MH_I2C_Read... [23:24:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:56]Read from MH i2c: E2 [23:24:56]MH_I2C_Read... [23:24:56]Read from MH i2c: E2 03 00 [23:24:56]MH_I2C_Read... [23:24:56]Read from MH i2c: E2 03 00 DD E1 00 90 00 32 [23:24:56]RAPDU: 90 00 [23:24:56]wFMCommunicate OK [23:24:56]wFMCommunicate request_size=4 [23:24:56]MH_SAM_APDU [23:24:56]CAPDU: 80 0D 03 02 [23:24:56]Write to MH i2c: E2 08 00 DE E1 80 0D 03 02 00 00 00 00 3A [23:24:56]Write i2c OK [23:24:56]MH_I2C_Read... [23:24:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:24:56]Read from MH i2c: E2 [23:24:56]MH_I2C_Read... [23:24:56]Read from MH i2c: E2 0B 00 [23:24:56]MH_I2C_Read... [23:24:56]Read from MH i2c: E2 0B 00 DE E1 00 D2 66 D6 6A F2 1F DE 9E 90 00 40 [23:24:56]RAPDU: D2 66 D6 6A F2 1F DE 9E 90 00 [23:24:56]wFMCommunicate OK [23:24:56]SAM_PROTO_SignData done [23:24:56]FM_MakeSignedData done [23:24:56]CreateOFDProtocolMessage [23:24:56]wFMCommunicate request_size=4 [23:24:56]MH_SAM_APDU [23:24:56]CAPDU: 80 11 00 00 [23:24:56]Write to MH i2c: E2 08 00 DF E1 80 11 00 00 00 00 00 00 3A [23:24:56]Write i2c OK [23:24:56]MH_I2C_Read... [23:24:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:24:56]Read from MH i2c: E2 [23:24:56]MH_I2C_Read... [23:24:56]Read from MH i2c: E2 17 00 [23:24:56]MH_I2C_Read... [23:24:56]Read from MH i2c: E2 17 00 DF E1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 87 [23:24:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:24:56]wFMCommunicate OK [23:24:56]CreateOFDProtocolMessage done [23:24:56]OFDSenderStorePacket 261014 [23:24:56]StoreOFDPacket docnum=261014 [23:24:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 55 FD 07 01 E0 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3C 02 00 00 F4 03 04 00 CE 82 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 96 FB 03 00 35 04 06 00 BC A1 53 C9 66 76 D2 66 D6 6A F2 1F DE 9E [23:24:56]CheckFolder [23:24:56]dirname=/storage/ofd_packets [23:24:56]CheckFolder done [23:24:56]ProducePacketName [23:24:56]name=ofd_packets/00261014 [23:24:56]NVStorageSaveData ofd_packets/00261014 [23:24:56]File name is /storage/ofd_packets/00261014 [23:24:56]Write 301 bytes [23:24:56]NVStorageSaveData done [23:24:56]OFDSenderStorePacket done [23:24:56]KKMCreateOFDPacket done [23:24:56]NVStorageSaveData kkm_last_timestamp [23:24:56]File name is /storage/kkm_last_timestamp [23:24:56]Write 4 bytes [23:24:56]NVStorageSaveData done [23:24:56]ExternCall_PrintAddStr [23:24:56]wPrintStart [23:24:56]Write to MH i2c: 01 00 00 E0 E1 C1 [23:24:56]Write i2c OK [23:24:56]MH_I2C_Read... [23:24:56]Read from MH i2c: 01 [23:24:56]MH_I2C_Read... [23:24:56]Read from MH i2c: 01 07 00 [23:24:56]MH_I2C_Read... [23:24:56]Read from MH i2c: 01 07 00 E0 E1 00 00 00 00 00 FF 0F D6 [23:24:56]RasterBufferAndPrint [23:24:56]line Счет N : (1)1036569 [23:24:56]line ИНН: 02508201610067 [23:24:56]line Контрольно-Кассовый Чек [23:24:56]line ПРОДАЖА [23:24:56]line ТРК (МРК, ГНК) : 22 [23:24:56]line Товар: 2710124130 [23:24:56]line Аи-92-К-5 [23:24:56]line 7.380 * 67.80 [23:24:56]line = 500.36 [23:24:56]line НДС 12% НСП 1% [23:24:56]line > о реализуемом товаре [23:24:56]line ОКРУГЛЕНИЕ: -0.36 [23:24:56]line ИТОГО: 500.00 [23:24:56]line Внесено: 500.00 [23:24:56]line СДАЧА: 0.00 [23:24:56]line НСП 1% : 4.43 [23:24:56]line НДС 12% : 53.14 [23:24:56]line Наличными: 500.00 [23:24:56]line Безнал.: 0.00 [23:24:56]line Место: АЗС № 94 "Партнер Нефть" [23:24:56]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [23:24:56]line СНО: Общий режим [23:24:56]line Чек 572 18.08.2024 23:25 [23:24:56]line Смена: 449 ФФД: 1.0 [23:24:56]line ЗНМ: 0300000099 [23:24:56]line РНМ: 0000000000091865 [23:24:56]line Версия ККМ: 001 [23:24:56]line ФМ: 0000000000871820 [23:24:56]line ФД: 261014 [23:24:56]line ФПД: 207401081464438 [23:24:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T232502&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261014&fm=207401081464438&tin=02508201610067®Number=0000000000091865&sum=50000 [23:24:56]written 0, free lines is 4095 [23:24:56]OFD Sender: Processing packet 261014 [packets to send 192, broken 191] [23:24:56]ProducePacketName [23:24:56]name=ofd_packets/00261014 [23:24:56]OFD Sender: To server: pG, [23:24:56]CommunicateWithHost lk.salyk.kg:30040 [23:24:56]ConnectInit lk.salyk.kg [23:24:56]Connected sock=10 [23:24: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 30 0F 01 00 00 55 FD 07 01 E0 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3C 02 00 00 F4 03 04 00 CE 82 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 96 FB 03 00 35 04 06 00 BC A1 53 C9 66 76 D2 66 D6 6A F2 1F DE 9E [23:24: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 30 4F 00 00 00 9E 27 47 00 9E 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 30 10 04 04 00 96 FB 03 00 F4 03 04 00 21 2C C2 66 B6 04 01 00 00 4B A2 28 E3 2A 5A 12 53 [23:24:56]CommunicateWithHost err = 0 [23:24:56]CheckOFDResponse [23:24:56]1017 (14) - 77093643461234 [23:24:56]1041 (16) - 0000000000871820 [23:24:56]1040 (4) - 261014 [23:24:56]1012 (4) - 18.08.2024 17:15 [23:24:56]1206 (1) - 0 [23:24:56]OFD Sender: Remove packet 261014 [23:24:56]ProducePacketName [23:24:56]name=ofd_packets/00261014 [23:24:56]NVStorageDeleteData [23:24:57]Write to MH i2c: 01 00 00 0B E2 ED [23:24:57]Write i2c OK [23:24:57]MH_I2C_Read... [23:24:57]Read from MH i2c: 01 [23:24:57]MH_I2C_Read... [23:24:57]Read from MH i2c: 01 07 00 [23:24:57]MH_I2C_Read... [23:24:57]Read from MH i2c: 01 07 00 0B E2 00 00 00 00 00 6E 0C 6E [23:24:57]RasterBufferAndPrint [23:24:57]line [23:24:57]line [23:24:57]line [23:24:57]line [23:24:57]line [23:24:57]written 0, free lines is 3185 [23:24:57]MH_Cut [23:24:57]Write to MH i2c: D1 01 00 12 E2 01 C6 [23:24:57]Write i2c OK [23:24:57]MH_I2C_Read... [23:24:57]Read from MH i2c: D1 [23:24:57]MH_I2C_Read... [23:24:57]Read from MH i2c: D1 01 00 [23:24:57]MH_I2C_Read... [23:24:57]Read from MH i2c: D1 01 00 12 E2 00 C5 [23:24:57]Write to MH i2c: 01 00 00 13 E2 F5 [23:24:57]Write i2c OK [23:24:57]MH_I2C_Read... [23:24:57]OFD Sender: No OFD packet to send [23:24:58]*** Cut start [23:24:58]*** Purtial cut [23:24:58]*** Stage 1: CUTSNS_PIN = 1 [23:25:00]Read from MH i2c: 01 [23:25:00]MH_I2C_Read... [23:25:00]*** Stop cut motor [23:25:00]*** Cut end [23:25:00]Read from MH i2c: 01 07 00 [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: 01 07 00 13 E2 00 00 00 00 00 FF 0F 0A [23:25:00]process_action close_receipt done [23:25:00]requested_data is exist [23:25:00]produce_requested_data [23:25:00]requested_item fm.sn is exist - process it [23:25:00]wFMCommunicate request_size=4 [23:25:00]MH_SAM_APDU [23:25:00]CAPDU: 80 11 00 00 [23:25:00]Write to MH i2c: E2 08 00 14 E2 80 11 00 00 00 00 00 00 70 [23:25:00]Write i2c OK [23:25:00]MH_I2C_Read... [23:25:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:25:00]Read from MH i2c: E2 [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: E2 17 00 [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: E2 17 00 14 E2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 BD [23:25:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:25:00]wFMCommunicate OK [23:25:00]requested_item fd.num is exist - process it [23:25:00]SAM_PROTO_GetFieldsCounters [23:25:00]wFMCommunicate request_size=4 [23:25:00]MH_SAM_APDU [23:25:00]CAPDU: 80 13 00 00 [23:25:00]Write to MH i2c: E2 08 00 15 E2 80 13 00 00 00 00 00 00 73 [23:25:00]Write i2c OK [23:25:00]MH_I2C_Read... [23:25:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:25:00]Read from MH i2c: E2 [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: E2 62 00 [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: E2 62 00 15 E2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 96 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 3C 02 00 00 5E 04 04 00 3C 02 00 00 57 04 04 00 3D 02 00 00 19 04 04 00 00 00 00 00 90 00 A2 [23:25:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 96 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 3C 02 00 00 5E 04 04 00 3C 02 00 00 57 04 04 00 3D 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:25:00]wFMCommunicate OK [23:25:00]SAM_PROTO_GetFieldsCounters done [23:25:00]requested_item shift.num is exist - process it [23:25:00]requested_item shift.opened is exist - process it [23:25:00]req_shift_opened [23:25:00]FM_GetShiftState [23:25:00]SAM_PROTO_GetShiftState [23:25:00]wFMCommunicate request_size=4 [23:25:00]MH_SAM_APDU [23:25:00]CAPDU: 80 13 01 00 [23:25:00]Write to MH i2c: E2 08 00 16 E2 80 13 01 00 00 00 00 00 75 [23:25:00]Write i2c OK [23:25:00]MH_I2C_Read... [23:25:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:25:00]Read from MH i2c: E2 [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: E2 0E 00 [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: E2 0E 00 16 E2 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B2 [23:25:00]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:25:00]wFMCommunicate OK [23:25:00]SAM_PROTO_GetShiftState done [23:25:00]FM_GetShiftState done [23:25:00]req_shift_opened done [23:25:00]requested_item shift.open_date is exist - process it [23:25:00]req_shift_open_date [23:25:00]req_shift_open_date done [23:25:00]produce_requested_data done [23:25:00]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261014,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [23:25:00]process_action_free close_receipt [23:25:00]json_value_free [23:25:00]json_value_free done [23:25:00]process_json_proto returns [23:25:00]Send response to host [23:25:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261014,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [23:25:00]free response buf [23:25:00]execute_script done [23:25:00]execute_script returns [23:25:00]free content buf [23:25:00]Sock 9.Close socket [23:25:00]Sock 9.Thread stoped [23:25:02]OFD Sender: No OFD packet to send [23:25:07]OFD Sender: No OFD packet to send [23:25:12]OFD Sender: No OFD packet to send [23:25:17]OFD Sender: No OFD packet to send [23:25:22]OFD Sender: No OFD packet to send [23:25:27]OFD Sender: No OFD packet to send [23:25:32]OFD Sender: No OFD packet to send [23:25:37]OFD Sender: No OFD packet to send [23:25:42]OFD Sender: No OFD packet to send [23:25:47]OFD Sender: No OFD packet to send [23:25:52]OFD Sender: No OFD packet to send [23:25:57]OFD Sender: No OFD packet to send [23:26:02]OFD Sender: No OFD packet to send [23:26:07]OFD Sender: No OFD packet to send [23:26:12]OFD Sender: No OFD packet to send [23:26:17]OFD Sender: No OFD packet to send [23:26:22]OFD Sender: No OFD packet to send [23:26:27]OFD Sender: No OFD packet to send [23:26:32]OFD Sender: No OFD packet to send [23:26:37]OFD Sender: No OFD packet to send [23:26:42]OFD Sender: No OFD packet to send [23:26:47]OFD Sender: No OFD packet to send [23:26:52]OFD Sender: No OFD packet to send [23:26:55]accept exits with 7 [23:26:55]New connection [23:26:55]New thread 3066617188 created [23:26:55]Thread 3066473828 joined [23:26:55]Waiting for new connection... [23:26:55] Sock 7.Parse request [23:26:55]Sock 7.Check first char [23:26:55]Sock 7.First char is OK [23:26:55]request: POST /json_proto HTTP/1.0 [23:26:55]Method: POST [23:26:55]URL: /json_proto [23:26:55]Method is POST - this is cgi request [23:26:55]url: /json_proto [23:26:55]query_string will be loaded in cgi processing [23:26:55]execute_cgi json_proto POST (null) [23:26:55]execute_cgi path=json_proto method=POST [23:26:55]POST find Content-Length [23:26:55]Host: 172.17.55.133:8080 [23:26:55]Content-Length: 678 [23:26:55]Content-Type: application/json [23:26:55] [23:26:55]POST finish read [23:26:55]Found Content-Length = 678 [23:26:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:26:55]execute_script... [23:26: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)1036571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:26:55]POST & json_proto [23:26:55]process_json_proto [23:26:55]json parsed OK: [23:26:55]protocol is kg_v1.0 [23:26:55]action value=close_receipt [23:26:55]process_action close_receipt [23:26:55]cmd_close_receipt [23:26:55]MH_GetDate [23:26:55]Write to MH i2c: F0 00 00 17 E2 E8 [23:26:55]Write i2c OK [23:26:55]MH_I2C_Read... [23:26:55]Read from MH i2c: F0 [23:26:55]MH_I2C_Read... [23:26:55]Read from MH i2c: F0 09 00 [23:26:55]MH_I2C_Read... [23:26:55]Read from MH i2c: F0 09 00 17 E2 00 46 83 C2 66 34 48 D8 65 9B [23:26:55]GetLastDocTimeStamp 1724023502 [23:26:55]current date 1724023622 [23:26:55]FM_GetShiftState [23:26:55]SAM_PROTO_GetShiftState [23:26:55]wFMCommunicate request_size=4 [23:26:55]MH_SAM_APDU [23:26:55]CAPDU: 80 13 01 00 [23:26:55]Write to MH i2c: E2 08 00 18 E2 80 13 01 00 00 00 00 00 77 [23:26:55]Write i2c OK [23:26:55]MH_I2C_Read... [23:26:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:26:55]Read from MH i2c: E2 [23:26:55]MH_I2C_Read... [23:26:55]Read from MH i2c: E2 0E 00 [23:26:55]MH_I2C_Read... [23:26:55]Read from MH i2c: E2 0E 00 18 E2 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 B4 [23:26:55]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:26:55]wFMCommunicate OK [23:26:55]SAM_PROTO_GetShiftState done [23:26:55]FM_GetShiftState done [23:26:55]opened in 1723940556 [23:26:55]opened+sec_in_day 1724026956 [23:26:55]quantity*price = 50036 [23:26:55]sum+1 = 50037 [23:26:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 573 18.08.2024 23:27 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261015 ФПД: 60315034470062 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T232702&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261015&fm=60315034470062&tin=02508201610067®Number=0000000000091865&sum=50000 [23:26:56]StoreToDocumentArchive [23:26:56]shift 449 fd 261015 [23:26:56]save to /storage/0449/doc_00261015 [23:26:56]save last doc name /storage/0449/doc_00261015 to /storage/kkm_last_doc_name [23:26:56]save OK [23:26:56]Clear old archive folders... [23:26:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:26:56]tlvbuf is 00453840 [23:26:56]SAM_PROTO_ClearQueue [23:26:56]wFMCommunicate request_size=4 [23:26:56]MH_SAM_APDU [23:26:56]CAPDU: 80 09 00 00 [23:26:56]Write to MH i2c: E2 08 00 25 E2 80 09 00 00 00 00 00 00 79 [23:26:56]Write i2c OK [23:26:56]MH_I2C_Read... [23:26:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:26:56]Read from MH i2c: E2 [23:26:56]MH_I2C_Read... [23:26:56]Read from MH i2c: E2 03 00 [23:26:56]MH_I2C_Read... [23:26:56]Read from MH i2c: E2 03 00 25 E2 00 90 00 7B [23:26:56]RAPDU: 90 00 [23:26:56]wFMCommunicate OK [23:26:56]SAM_PROTO_ClearQueue done [23:26:56]KKMCreateOFDPacket [23:26:56]OFDProtocolAddRootSTLVToBuf [23:26:56]FM_MakeSignedData [23:26:56]FM_MakeSignedData [23:26:56]SAM_PROTO_SignData [23:26:56]wFMCommunicate request_size=4 [23:26:56]MH_SAM_APDU [23:26:56]CAPDU: 80 0D 01 02 [23:26:56]Write to MH i2c: E2 08 00 26 E2 80 0D 01 02 00 00 00 00 81 [23:26:56]Write i2c OK [23:26:56]MH_I2C_Read... [23:26:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:26:56]Read from MH i2c: E2 [23:26:56]MH_I2C_Read... [23:26:56]Read from MH i2c: E2 03 00 [23:26:56]MH_I2C_Read... [23:26:56]Read from MH i2c: E2 03 00 26 E2 00 90 00 7C [23:26:56]RAPDU: 90 00 [23:26:56]wFMCommunicate OK [23:26:56]wFMCommunicate request_size=255 [23:26:56]MH_SAM_APDU [23:26:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3D 02 00 00 F4 03 04 00 46 83 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 97 FB 03 00 35 04 06 00 36 [23:26:56]Write to MH i2c: E2 02 01 27 E2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3D 02 00 00 F4 03 04 00 46 83 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 97 FB 03 00 35 04 06 00 36 00 00 BB [23:26:56]Write i2c OK [23:26:56]MH_I2C_Read... [23:26:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:26:56]Read from MH i2c: E2 [23:26:56]MH_I2C_Read... [23:26:56]Read from MH i2c: E2 03 00 [23:26:56]MH_I2C_Read... [23:26:56]Read from MH i2c: E2 03 00 27 E2 00 90 00 7D [23:26:56]RAPDU: 90 00 [23:26:56]wFMCommunicate OK [23:26:56]wFMCommunicate request_size=10 [23:26:56]MH_SAM_APDU [23:26:56]CAPDU: 80 0D 02 02 05 DB 30 34 46 AE [23:26:56]Write to MH i2c: E2 0D 00 28 E2 80 0D 02 02 05 00 DB 30 34 46 AE 00 00 C1 [23:26:56]Write i2c OK [23:26:56]MH_I2C_Read... [23:26:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:26:56]Read from MH i2c: E2 [23:26:56]MH_I2C_Read... [23:26:56]Read from MH i2c: E2 03 00 [23:26:56]MH_I2C_Read... [23:26:56]Read from MH i2c: E2 03 00 28 E2 00 90 00 7E [23:26:56]RAPDU: 90 00 [23:26:56]wFMCommunicate OK [23:26:56]wFMCommunicate request_size=4 [23:26:56]MH_SAM_APDU [23:26:56]CAPDU: 80 0D 03 02 [23:26:56]Write to MH i2c: E2 08 00 29 E2 80 0D 03 02 00 00 00 00 86 [23:26:56]Write i2c OK [23:26:56]MH_I2C_Read... [23:26:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:26:56]Read from MH i2c: E2 [23:26:56]MH_I2C_Read... [23:26:56]Read from MH i2c: E2 0B 00 [23:26:56]MH_I2C_Read... [23:26:56]Read from MH i2c: E2 0B 00 29 E2 00 CB 21 62 68 73 89 CB 99 90 00 9D [23:26:56]RAPDU: CB 21 62 68 73 89 CB 99 90 00 [23:26:56]wFMCommunicate OK [23:26:56]SAM_PROTO_SignData done [23:26:56]FM_MakeSignedData done [23:26:56]CreateOFDProtocolMessage [23:26:56]wFMCommunicate request_size=4 [23:26:56]MH_SAM_APDU [23:26:56]CAPDU: 80 11 00 00 [23:26:56]Write to MH i2c: E2 08 00 2A E2 80 11 00 00 00 00 00 00 86 [23:26:56]Write i2c OK [23:26:56]MH_I2C_Read... [23:26:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:26:56]Read from MH i2c: E2 [23:26:56]MH_I2C_Read... [23:26:56]Read from MH i2c: E2 17 00 [23:26:56]MH_I2C_Read... [23:26:56]Read from MH i2c: E2 17 00 2A E2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D3 [23:26:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:26:56]wFMCommunicate OK [23:26:56]CreateOFDProtocolMessage done [23:26:56]OFDSenderStorePacket 261015 [23:26:56]StoreOFDPacket docnum=261015 [23:26:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 24 49 07 01 40 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3D 02 00 00 F4 03 04 00 46 83 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 97 FB 03 00 35 04 06 00 36 DB 30 34 46 AE CB 21 62 68 73 89 CB 99 [23:26:56]CheckFolder [23:26:56]dirname=/storage/ofd_packets [23:26:56]CheckFolder done [23:26:56]ProducePacketName [23:26:56]name=ofd_packets/00261015 [23:26:56]NVStorageSaveData ofd_packets/00261015 [23:26:56]File name is /storage/ofd_packets/00261015 [23:26:56]Write 301 bytes [23:26:56]NVStorageSaveData done [23:26:56]OFDSenderStorePacket done [23:26:56]KKMCreateOFDPacket done [23:26:56]NVStorageSaveData kkm_last_timestamp [23:26:56]File name is /storage/kkm_last_timestamp [23:26:56]Write 4 bytes [23:26:56]NVStorageSaveData done [23:26:56]ExternCall_PrintAddStr [23:26:56]wPrintStart [23:26:56]Write to MH i2c: 01 00 00 2B E2 0D [23:26:56]Write i2c OK [23:26:56]MH_I2C_Read... [23:26:56]Read from MH i2c: 01 [23:26:56]MH_I2C_Read... [23:26:56]Read from MH i2c: 01 07 00 [23:26:56]MH_I2C_Read... [23:26:56]Read from MH i2c: 01 07 00 2B E2 00 00 00 00 00 FF 0F 22 [23:26:56]RasterBufferAndPrint [23:26:56]line Счет N : (1)1036571 [23:26:56]line ИНН: 02508201610067 [23:26:56]line Контрольно-Кассовый Чек [23:26:56]line ПРОДАЖА [23:26:56]line ТРК (МРК, ГНК) : 42 [23:26:56]line Товар: 2710124130 [23:26:56]line Аи-92-К-5 [23:26:56]line 7.380 * 67.80 [23:26:56]line = 500.36 [23:26:56]line НДС 12% НСП 1% [23:26:56]line > о реализуемом товаре [23:26:56]line ОКРУГЛЕНИЕ: -0.36 [23:26:56]line ИТОГО: 500.00 [23:26:56]line Внесено: 500.00 [23:26:56]line СДАЧА: 0.00 [23:26:56]line НСП 1% : 4.43 [23:26:56]line НДС 12% : 53.14 [23:26:56]line Наличными: 500.00 [23:26:56]line Безнал.: 0.00 [23:26:56]line Место: АЗС № 94 "Партнер Нефть" [23:26:56]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [23:26:56]line СНО: Общий режим [23:26:56]line Чек 573 18.08.2024 23:27 [23:26:56]line Смена: 449 ФФД: 1.0 [23:26:56]line ЗНМ: 0300000099 [23:26:56]line РНМ: 0000000000091865 [23:26:56]line Версия ККМ: 001 [23:26:56]line ФМ: 0000000000871820 [23:26:56]line ФД: 261015 [23:26:56]line ФПД: 60315034470062 [23:26:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T232702&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261015&fm=60315034470062&tin=02508201610067®Number=0000000000091865&sum=50000 [23:26:56]written 0, free lines is 4095 [23:26:56]OFD Sender: Processing packet 261015 [packets to send 192, broken 191] [23:26:56]ProducePacketName [23:26:56]name=ofd_packets/00261015 [23:26:56]OFD Sender: To server: pG, [23:26:56]CommunicateWithHost lk.salyk.kg:30040 [23:26:56]ConnectInit lk.salyk.kg [23:26:57]Connected sock=10 [23:26: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 30 0F 01 00 00 24 49 07 01 40 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3D 02 00 00 F4 03 04 00 46 83 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 97 FB 03 00 35 04 06 00 36 DB 30 34 46 AE CB 21 62 68 73 89 CB 99 [23:26: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 30 4F 00 00 00 57 AA 47 00 D3 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 30 10 04 04 00 97 FB 03 00 F4 03 04 00 99 2C C2 66 B6 04 01 00 00 7D 1C 0D 31 D0 EA 84 CF [23:26:57]CommunicateWithHost err = 0 [23:26:57]CheckOFDResponse [23:26:57]1017 (14) - 77093643461234 [23:26:57]1041 (16) - 0000000000871820 [23:26:57]1040 (4) - 261015 [23:26:57]1012 (4) - 18.08.2024 17:17 [23:26:57]1206 (1) - 0 [23:26:57]OFD Sender: Remove packet 261015 [23:26:57]ProducePacketName [23:26:57]name=ofd_packets/00261015 [23:26:57]NVStorageDeleteData [23:26:57]Write to MH i2c: 01 00 00 56 E2 38 [23:26:57]Write i2c OK [23:26:57]MH_I2C_Read... [23:26:57]Read from MH i2c: 01 [23:26:57]MH_I2C_Read... [23:26:57]Read from MH i2c: 01 07 00 [23:26:57]MH_I2C_Read... [23:26:57]Read from MH i2c: 01 07 00 56 E2 00 00 00 00 00 68 0C B3 [23:26:57]RasterBufferAndPrint [23:26:57]line [23:26:57]line [23:26:57]line [23:26:57]line [23:26:57]line [23:26:57]written 0, free lines is 3180 [23:26:57]MH_Cut [23:26:57]Write to MH i2c: D1 01 00 5D E2 01 11 [23:26:57]Write i2c OK [23:26:57]MH_I2C_Read... [23:26:57]Read from MH i2c: D1 [23:26:57]MH_I2C_Read... [23:26:57]Read from MH i2c: D1 01 00 [23:26:57]MH_I2C_Read... [23:26:57]Read from MH i2c: D1 01 00 5D E2 00 10 [23:26:57]Write to MH i2c: 01 00 00 5E E2 40 [23:26:57]Write i2c OK [23:26:57]MH_I2C_Read... [23:26:57]OFD Sender: No OFD packet to send [23:26:58]*** Cut start [23:26:58]*** Purtial cut [23:26:58]*** Stage 1: CUTSNS_PIN = 1 [23:27:00]Read from MH i2c: 01 [23:27:00]MH_I2C_Read... [23:27:00]*** Stop cut motor [23:27:00]*** Cut end [23:27:00]Read from MH i2c: 01 07 00 [23:27:00]MH_I2C_Read... [23:27:00]Read from MH i2c: 01 07 00 5E E2 00 00 00 00 00 FF 0F 55 [23:27:00]process_action close_receipt done [23:27:00]requested_data is exist [23:27:00]produce_requested_data [23:27:00]requested_item fm.sn is exist - process it [23:27:00]wFMCommunicate request_size=4 [23:27:00]MH_SAM_APDU [23:27:00]CAPDU: 80 11 00 00 [23:27:00]Write to MH i2c: E2 08 00 5F E2 80 11 00 00 00 00 00 00 BB [23:27:00]Write i2c OK [23:27:00]MH_I2C_Read... [23:27:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:00]Read from MH i2c: E2 [23:27:00]MH_I2C_Read... [23:27:00]Read from MH i2c: E2 17 00 [23:27:00]MH_I2C_Read... [23:27:00]Read from MH i2c: E2 17 00 5F E2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 08 [23:27:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:27:00]wFMCommunicate OK [23:27:00]requested_item fd.num is exist - process it [23:27:00]SAM_PROTO_GetFieldsCounters [23:27:00]wFMCommunicate request_size=4 [23:27:00]MH_SAM_APDU [23:27:00]CAPDU: 80 13 00 00 [23:27:00]Write to MH i2c: E2 08 00 60 E2 80 13 00 00 00 00 00 00 BE [23:27:00]Write i2c OK [23:27:00]MH_I2C_Read... [23:27:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:27:00]Read from MH i2c: E2 [23:27:00]MH_I2C_Read... [23:27:00]Read from MH i2c: E2 62 00 [23:27:00]MH_I2C_Read... [23:27:00]Read from MH i2c: E2 62 00 60 E2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 97 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 3D 02 00 00 5E 04 04 00 3D 02 00 00 57 04 04 00 3E 02 00 00 19 04 04 00 00 00 00 00 90 00 F1 [23:27: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 97 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 3D 02 00 00 5E 04 04 00 3D 02 00 00 57 04 04 00 3E 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:27:00]wFMCommunicate OK [23:27:00]SAM_PROTO_GetFieldsCounters done [23:27:00]requested_item shift.num is exist - process it [23:27:00]requested_item shift.opened is exist - process it [23:27:00]req_shift_opened [23:27:00]FM_GetShiftState [23:27:00]SAM_PROTO_GetShiftState [23:27:00]wFMCommunicate request_size=4 [23:27:00]MH_SAM_APDU [23:27:00]CAPDU: 80 13 01 00 [23:27:00]Write to MH i2c: E2 08 00 61 E2 80 13 01 00 00 00 00 00 C0 [23:27:00]Write i2c OK [23:27:00]MH_I2C_Read... [23:27:00]Read from MH i2c: E2 [23:27:00]MH_I2C_Read... [23:27:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:00]Read from MH i2c: E2 0E 00 [23:27:00]MH_I2C_Read... [23:27:00]Read from MH i2c: E2 0E 00 61 E2 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 FD [23:27:00]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:27:00]wFMCommunicate OK [23:27:00]SAM_PROTO_GetShiftState done [23:27:00]FM_GetShiftState done [23:27:00]req_shift_opened done [23:27:00]requested_item shift.open_date is exist - process it [23:27:00]req_shift_open_date [23:27:00]req_shift_open_date done [23:27:00]produce_requested_data done [23:27:00]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261015,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [23:27:00]process_action_free close_receipt [23:27:00]json_value_free [23:27:00]json_value_free done [23:27:00]process_json_proto returns [23:27:00]Send response to host [23:27:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261015,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [23:27:00]free response buf [23:27:00]execute_script done [23:27:00]execute_script returns [23:27:00]free content buf [23:27:00]Sock 7.Close socket [23:27:00]Sock 7.Thread stoped [23:27:02]accept exits with 9 [23:27:02]New connection [23:27:02]New thread 3066473828 created [23:27:02]Thread 3066617188 joined [23:27:02]Waiting for new connection... [23:27:02] Sock 9.Parse request [23:27:02]Sock 9.Check first char [23:27:02]Sock 9.First char is OK [23:27:02]request: POST /json_proto HTTP/1.0 [23:27:02]Method: POST [23:27:02]URL: /json_proto [23:27:02]Method is POST - this is cgi request [23:27:02]url: /json_proto [23:27:02]query_string will be loaded in cgi processing [23:27:02]execute_cgi json_proto POST (null) [23:27:02]execute_cgi path=json_proto method=POST [23:27:02]POST find Content-Length [23:27:02]Host: 172.17.55.133:8080 [23:27:02]Content-Length: 801 [23:27:02]Content-Type: application/json [23:27:02] [23:27:02]POST finish read [23:27:02]Found Content-Length = 801 [23:27:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036570", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.000, "sum" : 339.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" : 339.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:27:02]execute_script... [23:27: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)1036570", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.000, "sum" : 339.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" : 339.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:27:02]POST & json_proto [23:27:02]process_json_proto [23:27:02]json parsed OK: [23:27:02]protocol is kg_v1.0 [23:27:02]action value=close_receipt [23:27:02]process_action close_receipt [23:27:02]cmd_close_receipt [23:27:02]MH_GetDate [23:27:02]Write to MH i2c: F0 00 00 62 E2 33 [23:27:02]Write i2c OK [23:27:02]MH_I2C_Read... [23:27:02]Read from MH i2c: F0 [23:27:02]MH_I2C_Read... [23:27:02]Read from MH i2c: F0 09 00 [23:27:02]MH_I2C_Read... [23:27:02]Read from MH i2c: F0 09 00 62 E2 00 4D 83 C2 66 34 48 D8 65 ED [23:27:02]GetLastDocTimeStamp 1724023622 [23:27:02]current date 1724023629 [23:27:02]FM_GetShiftState [23:27:02]SAM_PROTO_GetShiftState [23:27:02]wFMCommunicate request_size=4 [23:27:02]MH_SAM_APDU [23:27:02]CAPDU: 80 13 01 00 [23:27:02]Write to MH i2c: E2 08 00 63 E2 80 13 01 00 00 00 00 00 C2 [23:27:02]Write i2c OK [23:27:02]MH_I2C_Read... [23:27:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:02]Read from MH i2c: E2 [23:27:02]MH_I2C_Read... [23:27:02]Read from MH i2c: E2 0E 00 [23:27:02]MH_I2C_Read... [23:27:02]Read from MH i2c: E2 0E 00 63 E2 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 FF [23:27:02]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:27:02]wFMCommunicate OK [23:27:02]SAM_PROTO_GetShiftState done [23:27:02]FM_GetShiftState done [23:27:02]opened in 1723940556 [23:27:02]opened+sec_in_day 1724026956 [23:27:02]quantity*price = 33900 [23:27:02]sum+1 = 33901 [23:27:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 339.00 НСП 1% : 3.00 НДС 12% : 36.00 Наличными: 0.00 Безнал.: 339.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 574 18.08.2024 23:27 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 261016 ФПД: 51054393601347 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T232709&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261016&fm=51054393601347&tin=02508201610067®Number=0000000000091865&sum=33900 [23:27:03]StoreToDocumentArchive [23:27:03]shift 449 fd 261016 [23:27:03]save to /storage/0449/doc_00261016 [23:27:03]save last doc name /storage/0449/doc_00261016 to /storage/kkm_last_doc_name [23:27:03]save OK [23:27:03]Clear old archive folders... [23:27:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:27:03]tlvbuf is 004D2030 [23:27:03]SAM_PROTO_ClearQueue [23:27:03]wFMCommunicate request_size=4 [23:27:03]MH_SAM_APDU [23:27:03]CAPDU: 80 09 00 00 [23:27:03]Write to MH i2c: E2 08 00 70 E2 80 09 00 00 00 00 00 00 C4 [23:27:03]Write i2c OK [23:27:03]MH_I2C_Read... [23:27:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:27:03]Read from MH i2c: E2 [23:27:03]MH_I2C_Read... [23:27:03]Read from MH i2c: E2 03 00 [23:27:03]MH_I2C_Read... [23:27:03]Read from MH i2c: E2 03 00 70 E2 00 90 00 C6 [23:27:03]RAPDU: 90 00 [23:27:03]wFMCommunicate OK [23:27:03]SAM_PROTO_ClearQueue done [23:27:03]KKMCreateOFDPacket [23:27:03]OFDProtocolAddRootSTLVToBuf [23:27:03]FM_MakeSignedData [23:27:03]FM_MakeSignedData [23:27:03]SAM_PROTO_SignData [23:27:03]wFMCommunicate request_size=4 [23:27:03]MH_SAM_APDU [23:27:03]CAPDU: 80 0D 01 02 [23:27:03]Write to MH i2c: E2 08 00 71 E2 80 0D 01 02 00 00 00 00 CC [23:27:03]Write i2c OK [23:27:03]MH_I2C_Read... [23:27:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:27:03]Read from MH i2c: E2 [23:27:03]MH_I2C_Read... [23:27:03]Read from MH i2c: E2 03 00 [23:27:03]MH_I2C_Read... [23:27:03]Read from MH i2c: E2 03 00 71 E2 00 90 00 C7 [23:27:03]RAPDU: 90 00 [23:27:03]wFMCommunicate OK [23:27:03]wFMCommunicate request_size=255 [23:27:03]MH_SAM_APDU [23:27:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6C 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 02 00 00 F4 03 04 00 4D 83 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 98 FB 03 00 35 04 06 00 2E [23:27:03]Write to MH i2c: E2 02 01 72 E2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6C 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 02 00 00 F4 03 04 00 4D 83 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 98 FB 03 00 35 04 06 00 2E 00 00 DE [23:27:03]Write i2c OK [23:27:03]MH_I2C_Read... [23:27:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:04]Read from MH i2c: E2 [23:27:04]MH_I2C_Read... [23:27:04]Read from MH i2c: E2 03 00 [23:27:04]MH_I2C_Read... [23:27:04]Read from MH i2c: E2 03 00 72 E2 00 90 00 C8 [23:27:04]RAPDU: 90 00 [23:27:04]wFMCommunicate OK [23:27:04]wFMCommunicate request_size=10 [23:27:04]MH_SAM_APDU [23:27:04]CAPDU: 80 0D 02 02 05 6F 06 FE AD 43 [23:27:04]Write to MH i2c: E2 0D 00 73 E2 80 0D 02 02 05 00 6F 06 FE AD 43 00 00 3C [23:27:04]Write i2c OK [23:27:04]MH_I2C_Read... [23:27:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:04]Read from MH i2c: E2 [23:27:04]MH_I2C_Read... [23:27:04]Read from MH i2c: E2 03 00 [23:27:04]MH_I2C_Read... [23:27:04]Read from MH i2c: E2 03 00 73 E2 00 90 00 C9 [23:27:04]RAPDU: 90 00 [23:27:04]wFMCommunicate OK [23:27:04]wFMCommunicate request_size=4 [23:27:04]MH_SAM_APDU [23:27:04]CAPDU: 80 0D 03 02 [23:27:04]Write to MH i2c: E2 08 00 74 E2 80 0D 03 02 00 00 00 00 D1 [23:27:04]Write i2c OK [23:27:04]MH_I2C_Read... [23:27:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:27:04]Read from MH i2c: E2 [23:27:04]MH_I2C_Read... [23:27:04]Read from MH i2c: E2 0B 00 [23:27:04]MH_I2C_Read... [23:27:04]Read from MH i2c: E2 0B 00 74 E2 00 8E C4 8D 5B 76 33 4E 98 90 00 9B [23:27:04]RAPDU: 8E C4 8D 5B 76 33 4E 98 90 00 [23:27:04]wFMCommunicate OK [23:27:04]SAM_PROTO_SignData done [23:27:04]FM_MakeSignedData done [23:27:04]CreateOFDProtocolMessage [23:27:04]wFMCommunicate request_size=4 [23:27:04]MH_SAM_APDU [23:27:04]CAPDU: 80 11 00 00 [23:27:04]Write to MH i2c: E2 08 00 75 E2 80 11 00 00 00 00 00 00 D1 [23:27:04]Write i2c OK [23:27:04]MH_I2C_Read... [23:27:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:04]Read from MH i2c: E2 [23:27:04]MH_I2C_Read... [23:27:04]Read from MH i2c: E2 17 00 [23:27:04]MH_I2C_Read... [23:27:04]Read from MH i2c: E2 17 00 75 E2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 1E [23:27:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:27:04]wFMCommunicate OK [23:27:04]CreateOFDProtocolMessage done [23:27:04]OFDSenderStorePacket 261016 [23:27:04]StoreOFDPacket docnum=261016 [23:27:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 8A 41 07 01 72 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6C 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 02 00 00 F4 03 04 00 4D 83 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 98 FB 03 00 35 04 06 00 2E 6F 06 FE AD 43 8E C4 8D 5B 76 33 4E 98 [23:27:04]CheckFolder [23:27:04]dirname=/storage/ofd_packets [23:27:04]CheckFolder done [23:27:04]ProducePacketName [23:27:04]name=ofd_packets/00261016 [23:27:04]NVStorageSaveData ofd_packets/00261016 [23:27:04]File name is /storage/ofd_packets/00261016 [23:27:04]Write 301 bytes [23:27:04]NVStorageSaveData done [23:27:04]OFDSenderStorePacket done [23:27:04]KKMCreateOFDPacket done [23:27:04]NVStorageSaveData kkm_last_timestamp [23:27:04]File name is /storage/kkm_last_timestamp [23:27:04]Write 4 bytes [23:27:04]NVStorageSaveData done [23:27:04]ExternCall_PrintAddStr [23:27:04]wPrintStart [23:27:04]Write to MH i2c: 01 00 00 76 E2 58 [23:27:04]Write i2c OK [23:27:04]MH_I2C_Read... [23:27:04]Read from MH i2c: 01 [23:27:04]MH_I2C_Read... [23:27:04]Read from MH i2c: 01 07 00 [23:27:04]MH_I2C_Read... [23:27:04]Read from MH i2c: 01 07 00 76 E2 00 00 00 00 00 FF 0F 6D [23:27:04]RasterBufferAndPrint [23:27:04]line Счет N : (1)1036570 [23:27:04]line ИНН: 02508201610067 [23:27:04]line Контрольно-Кассовый Чек [23:27:04]line ПРОДАЖА [23:27:04]line ТРК (МРК, ГНК) : 22 [23:27:04]line Товар: 2710124130 [23:27:04]line Аи-92-К-5 [23:27:04]line 5.000 * 67.80 [23:27:04]line = 339.00 [23:27:04]line НДС 12% НСП 1% [23:27:04]line > о реализуемом товаре [23:27:04]line ИТОГО: 339.00 [23:27:04]line НСП 1% : 3.00 [23:27:04]line НДС 12% : 36.00 [23:27:04]line Наличными: 0.00 [23:27:04]line Безнал.: 339.00 [23:27:04]line Место: АЗС № 94 "Партнер Нефть" [23:27:04]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [23:27:04]line СНО: Общий режим [23:27:04]line Чек 574 18.08.2024 23:27 [23:27:04]line Смена: 449 ФФД: 1.0 [23:27:04]line ЗНМ: 0300000099 [23:27:04]line РНМ: 0000000000091865 [23:27:04]line Версия ККМ: 001 [23:27:04]line Платежная система: O! деньги [23:27:04]line ФМ: 0000000000871820 [23:27:04]line ФД: 261016 [23:27:04]line ФПД: 51054393601347 [23:27:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T232709&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261016&fm=51054393601347&tin=02508201610067®Number=0000000000091865&sum=33900 [23:27:04]written 0, free lines is 4095 [23:27:04]OFD Sender: Processing packet 261016 [packets to send 192, broken 191] [23:27:04]ProducePacketName [23:27:04]name=ofd_packets/00261016 [23:27:04]OFD Sender: To server: pG, [23:27:04]CommunicateWithHost lk.salyk.kg:30040 [23:27:04]ConnectInit lk.salyk.kg [23:27:04]Connected sock=10 [23:27: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 30 0F 01 00 00 8A 41 07 01 72 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6C 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 02 00 00 F4 03 04 00 4D 83 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 98 FB 03 00 35 04 06 00 2E 6F 06 FE AD 43 8E C4 8D 5B 76 33 4E 98 [23:27: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 30 4F 00 00 00 A4 0A 47 00 3A 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 30 10 04 04 00 98 FB 03 00 F4 03 04 00 A1 2C C2 66 B6 04 01 00 00 67 08 58 E7 6C 69 45 3E [23:27:04]CommunicateWithHost err = 0 [23:27:04]CheckOFDResponse [23:27:04]1017 (14) - 77093643461234 [23:27:04]1041 (16) - 0000000000871820 [23:27:04]1040 (4) - 261016 [23:27:04]1012 (4) - 18.08.2024 17:17 [23:27:04]1206 (1) - 0 [23:27:04]OFD Sender: Remove packet 261016 [23:27:04]ProducePacketName [23:27:04]name=ofd_packets/00261016 [23:27:04]NVStorageDeleteData [23:27:04]Write to MH i2c: 01 00 00 A0 E2 82 [23:27:04]Write i2c OK [23:27:04]MH_I2C_Read... [23:27:04]Read from MH i2c: 01 [23:27:04]MH_I2C_Read... [23:27:04]Read from MH i2c: 01 07 00 [23:27:04]MH_I2C_Read... [23:27:04]Read from MH i2c: 01 07 00 A0 E2 00 00 00 00 00 91 0C 26 [23:27:04]RasterBufferAndPrint [23:27:04]line [23:27:04]line [23:27:04]line [23:27:04]line [23:27:04]line [23:27:04]written 0, free lines is 3223 [23:27:04]MH_Cut [23:27:04]Write to MH i2c: D1 01 00 A7 E2 01 5B [23:27:04]Write i2c OK [23:27:04]MH_I2C_Read... [23:27:04]Read from MH i2c: D1 [23:27:04]MH_I2C_Read... [23:27:04]Read from MH i2c: D1 01 00 [23:27:04]MH_I2C_Read... [23:27:04]Read from MH i2c: D1 01 00 A7 E2 00 5A [23:27:04]Write to MH i2c: 01 00 00 A8 E2 8A [23:27:04]Write i2c OK [23:27:04]MH_I2C_Read... [23:27:05]OFD Sender: No OFD packet to send [23:27:05]*** Cut start [23:27:05]*** Purtial cut [23:27:05]*** Stage 1: CUTSNS_PIN = 1 [23:27:07]Read from MH i2c: 01 [23:27:07]MH_I2C_Read... [23:27:07]*** Stop cut motor [23:27:07]*** Cut end [23:27:07]Read from MH i2c: 01 07 00 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: 01 07 00 A8 E2 00 00 00 00 00 FF 0F 9F [23:27:07]process_action close_receipt done [23:27:07]requested_data is exist [23:27:07]produce_requested_data [23:27:07]requested_item fm.sn is exist - process it [23:27:07]wFMCommunicate request_size=4 [23:27:07]MH_SAM_APDU [23:27:07]CAPDU: 80 11 00 00 [23:27:07]Write to MH i2c: E2 08 00 A9 E2 80 11 00 00 00 00 00 00 05 [23:27:07]Write i2c OK [23:27:07]MH_I2C_Read... [23:27:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:07]Read from MH i2c: E2 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: E2 17 00 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: E2 17 00 A9 E2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 52 [23:27:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:27:07]wFMCommunicate OK [23:27:07]requested_item fd.num is exist - process it [23:27:07]SAM_PROTO_GetFieldsCounters [23:27:07]wFMCommunicate request_size=4 [23:27:07]MH_SAM_APDU [23:27:07]CAPDU: 80 13 00 00 [23:27:07]Write to MH i2c: E2 08 00 AA E2 80 13 00 00 00 00 00 00 08 [23:27:07]Write i2c OK [23:27:07]MH_I2C_Read... [23:27:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:27:08]Read from MH i2c: E2 [23:27:08]MH_I2C_Read... [23:27:08]Read from MH i2c: E2 62 00 [23:27:08]MH_I2C_Read... [23:27:08]Read from MH i2c: E2 62 00 AA E2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 98 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 3E 02 00 00 5E 04 04 00 3E 02 00 00 57 04 04 00 3F 02 00 00 19 04 04 00 00 00 00 00 90 00 3F [23:27: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 98 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 3E 02 00 00 5E 04 04 00 3E 02 00 00 57 04 04 00 3F 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:27:08]wFMCommunicate OK [23:27:08]SAM_PROTO_GetFieldsCounters done [23:27:08]requested_item shift.num is exist - process it [23:27:08]requested_item shift.opened is exist - process it [23:27:08]req_shift_opened [23:27:08]FM_GetShiftState [23:27:08]SAM_PROTO_GetShiftState [23:27:08]wFMCommunicate request_size=4 [23:27:08]MH_SAM_APDU [23:27:08]CAPDU: 80 13 01 00 [23:27:08]Write to MH i2c: E2 08 00 AB E2 80 13 01 00 00 00 00 00 0A [23:27:08]Write i2c OK [23:27:08]MH_I2C_Read... [23:27:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:08]Read from MH i2c: E2 [23:27:08]MH_I2C_Read... [23:27:08]Read from MH i2c: E2 0E 00 [23:27:08]MH_I2C_Read... [23:27:08]Read from MH i2c: E2 0E 00 AB E2 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 47 [23:27:08]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:27:08]wFMCommunicate OK [23:27:08]SAM_PROTO_GetShiftState done [23:27:08]FM_GetShiftState done [23:27:08]req_shift_opened done [23:27:08]requested_item shift.open_date is exist - process it [23:27:08]req_shift_open_date [23:27:08]req_shift_open_date done [23:27:08]produce_requested_data done [23:27:08]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261016,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [23:27:08]process_action_free close_receipt [23:27:08]json_value_free [23:27:08]json_value_free done [23:27:08]process_json_proto returns [23:27:08]Send response to host [23:27:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261016,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [23:27:08]free response buf [23:27:08]execute_script done [23:27:08]execute_script returns [23:27:08]free content buf [23:27:08]Sock 9.Close socket [23:27:08]Sock 9.Thread stoped [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:49]accept exits with 7 [23:27:49]New connection [23:27:49]New thread 3066617188 created [23:27:49]Thread 3066473828 joined [23:27:49]Waiting for new connection... [23:27:49] Sock 7.Parse request [23:27:49]Sock 7.Check first char [23:27:49]Sock 7.First char is OK [23:27:49]request: POST /json_proto HTTP/1.0 [23:27:49]Method: POST [23:27:49]URL: /json_proto [23:27:49]Method is POST - this is cgi request [23:27:49]url: /json_proto [23:27:49]query_string will be loaded in cgi processing [23:27:49]execute_cgi json_proto POST (null) [23:27:49]execute_cgi path=json_proto method=POST [23:27:49]POST find Content-Length [23:27:49]Host: 172.17.55.133:8080 [23:27:49]Content-Length: 801 [23:27:49]Content-Type: application/json [23:27:49] [23:27:49]POST finish read [23:27:49]Found Content-Length = 801 [23:27:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:27:49]execute_script... [23:27: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)1036572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:27:49]POST & json_proto [23:27:49]process_json_proto [23:27:49]json parsed OK: [23:27:49]protocol is kg_v1.0 [23:27:49]action value=close_receipt [23:27:49]process_action close_receipt [23:27:49]cmd_close_receipt [23:27:49]MH_GetDate [23:27:49]Write to MH i2c: F0 00 00 AC E2 7D [23:27:49]Write i2c OK [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: F0 [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: F0 09 00 [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: F0 09 00 AC E2 00 7C 83 C2 66 34 48 D8 65 66 [23:27:49]GetLastDocTimeStamp 1724023629 [23:27:49]current date 1724023676 [23:27:49]FM_GetShiftState [23:27:49]SAM_PROTO_GetShiftState [23:27:49]wFMCommunicate request_size=4 [23:27:49]MH_SAM_APDU [23:27:49]CAPDU: 80 13 01 00 [23:27:49]Write to MH i2c: E2 08 00 AD E2 80 13 01 00 00 00 00 00 0C [23:27:49]Write i2c OK [23:27:49]MH_I2C_Read... [23:27:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:49]Read from MH i2c: E2 [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: E2 0E 00 [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: E2 0E 00 AD E2 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 49 [23:27:49]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:27:49]wFMCommunicate OK [23:27:49]SAM_PROTO_GetShiftState done [23:27:49]FM_GetShiftState done [23:27:49]opened in 1723940556 [23:27:49]opened+sec_in_day 1724026956 [23:27:49]quantity*price = 50036 [23:27:49]sum+1 = 50037 [23:27:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 575 18.08.2024 23:27 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 261017 ФПД: 230802753803772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T232756&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261017&fm=230802753803772&tin=02508201610067®Number=0000000000091865&sum=50036 [23:27:50]StoreToDocumentArchive [23:27:50]shift 449 fd 261017 [23:27:50]save to /storage/0449/doc_00261017 [23:27:50]save last doc name /storage/0449/doc_00261017 to /storage/kkm_last_doc_name [23:27:50]save OK [23:27:50]Clear old archive folders... [23:27:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:27:50]tlvbuf is B6F06230 [23:27:50]SAM_PROTO_ClearQueue [23:27:50]wFMCommunicate request_size=4 [23:27:50]MH_SAM_APDU [23:27:50]CAPDU: 80 09 00 00 [23:27:50]Write to MH i2c: E2 08 00 BA E2 80 09 00 00 00 00 00 00 0E [23:27:50]Write i2c OK [23:27:50]MH_I2C_Read... [23:27:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:27:50]Read from MH i2c: E2 [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: E2 03 00 [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: E2 03 00 BA E2 00 90 00 10 [23:27:50]RAPDU: 90 00 [23:27:50]wFMCommunicate OK [23:27:50]SAM_PROTO_ClearQueue done [23:27:50]KKMCreateOFDPacket [23:27:50]OFDProtocolAddRootSTLVToBuf [23:27:50]FM_MakeSignedData [23:27:50]FM_MakeSignedData [23:27:50]SAM_PROTO_SignData [23:27:50]wFMCommunicate request_size=4 [23:27:50]MH_SAM_APDU [23:27:50]CAPDU: 80 0D 01 02 [23:27:50]Write to MH i2c: E2 08 00 BB E2 80 0D 01 02 00 00 00 00 16 [23:27:50]Write i2c OK [23:27:50]MH_I2C_Read... [23:27:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:27:50]Read from MH i2c: E2 [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: E2 03 00 [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: E2 03 00 BB E2 00 90 00 11 [23:27:50]RAPDU: 90 00 [23:27:50]wFMCommunicate OK [23:27:50]wFMCommunicate request_size=255 [23:27:50]MH_SAM_APDU [23:27:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 02 00 00 F4 03 04 00 7C 83 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 99 FB 03 00 35 04 06 00 D1 [23:27:50]Write to MH i2c: E2 02 01 BC E2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 02 00 00 F4 03 04 00 7C 83 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 99 FB 03 00 35 04 06 00 D1 00 00 6D [23:27:50]Write i2c OK [23:27:50]MH_I2C_Read... [23:27:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:50]Read from MH i2c: E2 [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: E2 03 00 [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: E2 03 00 BC E2 00 90 00 12 [23:27:50]RAPDU: 90 00 [23:27:50]wFMCommunicate OK [23:27:50]wFMCommunicate request_size=10 [23:27:50]MH_SAM_APDU [23:27:50]CAPDU: 80 0D 02 02 05 E9 F4 27 55 FC [23:27:50]Write to MH i2c: E2 0D 00 BD E2 80 0D 02 02 05 00 E9 F4 27 55 FC 00 00 78 [23:27:50]Write i2c OK [23:27:50]MH_I2C_Read... [23:27:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:50]Read from MH i2c: E2 [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: E2 03 00 [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: E2 03 00 BD E2 00 90 00 13 [23:27:50]RAPDU: 90 00 [23:27:50]wFMCommunicate OK [23:27:50]wFMCommunicate request_size=4 [23:27:50]MH_SAM_APDU [23:27:50]CAPDU: 80 0D 03 02 [23:27:50]Write to MH i2c: E2 08 00 BE E2 80 0D 03 02 00 00 00 00 1B [23:27:50]Write i2c OK [23:27:50]MH_I2C_Read... [23:27:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:27:50]Read from MH i2c: E2 [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: E2 0B 00 [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: E2 0B 00 BE E2 00 8B 90 29 A1 F3 C8 87 3D 90 00 80 [23:27:50]RAPDU: 8B 90 29 A1 F3 C8 87 3D 90 00 [23:27:50]wFMCommunicate OK [23:27:50]SAM_PROTO_SignData done [23:27:50]FM_MakeSignedData done [23:27:50]CreateOFDProtocolMessage [23:27:50]wFMCommunicate request_size=4 [23:27:50]MH_SAM_APDU [23:27:50]CAPDU: 80 11 00 00 [23:27:50]Write to MH i2c: E2 08 00 BF E2 80 11 00 00 00 00 00 00 1B [23:27:50]Write i2c OK [23:27:50]MH_I2C_Read... [23:27:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:50]Read from MH i2c: E2 [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: E2 17 00 [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: E2 17 00 BF E2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 68 [23:27:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:27:50]wFMCommunicate OK [23:27:50]CreateOFDProtocolMessage done [23:27:50]OFDSenderStorePacket 261017 [23:27:50]StoreOFDPacket docnum=261017 [23:27:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 EC 2E 07 01 A6 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 02 00 00 F4 03 04 00 7C 83 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 99 FB 03 00 35 04 06 00 D1 E9 F4 27 55 FC 8B 90 29 A1 F3 C8 87 3D [23:27:50]CheckFolder [23:27:50]dirname=/storage/ofd_packets [23:27:50]CheckFolder done [23:27:50]ProducePacketName [23:27:50]name=ofd_packets/00261017 [23:27:50]NVStorageSaveData ofd_packets/00261017 [23:27:50]File name is /storage/ofd_packets/00261017 [23:27:50]Write 301 bytes [23:27:50]NVStorageSaveData done [23:27:50]OFDSenderStorePacket done [23:27:50]KKMCreateOFDPacket done [23:27:50]NVStorageSaveData kkm_last_timestamp [23:27:50]File name is /storage/kkm_last_timestamp [23:27:50]Write 4 bytes [23:27:50]NVStorageSaveData done [23:27:50]ExternCall_PrintAddStr [23:27:50]wPrintStart [23:27:50]Write to MH i2c: 01 00 00 C0 E2 A2 [23:27:50]Write i2c OK [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: 01 [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: 01 07 00 [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: 01 07 00 C0 E2 00 00 00 00 00 FF 0F B7 [23:27:50]RasterBufferAndPrint [23:27:50]line Счет N : (1)1036572 [23:27:50]line ИНН: 02508201610067 [23:27:50]line Контрольно-Кассовый Чек [23:27:50]line ПРОДАЖА [23:27:50]line ТРК (МРК, ГНК) : 32 [23:27:50]line Товар: 2710124130 [23:27:50]line Аи-92-К-5 [23:27:50]line 7.380 * 67.80 [23:27:50]line = 500.36 [23:27:50]line НДС 12% НСП 1% [23:27:50]line > о реализуемом товаре [23:27:50]line ИТОГО: 500.36 [23:27:50]line НСП 1% : 4.43 [23:27:50]line НДС 12% : 53.14 [23:27:50]line Наличными: 0.00 [23:27:50]line Безнал.: 500.36 [23:27:50]line Место: АЗС № 94 "Партнер Нефть" [23:27:50]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [23:27:50]line СНО: Общий режим [23:27:50]line Чек 575 18.08.2024 23:27 [23:27:50]line Смена: 449 ФФД: 1.0 [23:27:50]line ЗНМ: 0300000099 [23:27:50]line РНМ: 0000000000091865 [23:27:50]line Версия ККМ: 001 [23:27:50]line Платежная система: O! деньги [23:27:50]line ФМ: 0000000000871820 [23:27:50]line ФД: 261017 [23:27:50]line ФПД: 230802753803772 [23:27:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T232756&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261017&fm=230802753803772&tin=02508201610067®Number=0000000000091865&sum=50036 [23:27:50]written 0, free lines is 4095 [23:27:50]OFD Sender: Processing packet 261017 [packets to send 192, broken 191] [23:27:50]ProducePacketName [23:27:50]name=ofd_packets/00261017 [23:27:50]OFD Sender: To server: pG, [23:27:50]CommunicateWithHost lk.salyk.kg:30040 [23:27:50]ConnectInit lk.salyk.kg [23:27:51]Connected sock=10 [23:27: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 30 0F 01 00 00 EC 2E 07 01 A6 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 02 00 00 F4 03 04 00 7C 83 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 99 FB 03 00 35 04 06 00 D1 E9 F4 27 55 FC 8B 90 29 A1 F3 C8 87 3D [23:27:51]Write to MH i2c: 01 00 00 EA E2 CC [23:27:51]Write i2c OK [23:27:51]MH_I2C_Read... [23:27:51]Read from MH i2c: 01 [23:27:51]MH_I2C_Read... [23:27:51]Read from MH i2c: 01 07 00 [23:27:51]MH_I2C_Read... [23:27:51]Read from MH i2c: 01 07 00 EA E2 00 00 00 00 00 86 0C 65 [23:27:51]RasterBufferAndPrint [23:27:51]line [23:27:51]line [23:27:51]line [23:27:51]line [23:27:51]line [23:27:51]written 0, free lines is 3210 [23:27:51]MH_Cut [23:27:51]Write to MH i2c: D1 01 00 F1 E2 01 A5 [23:27:51]Write i2c OK [23:27:51]MH_I2C_Read... [23:27:51]Read from MH i2c: D1 [23:27:51]MH_I2C_Read... [23:27:51]Read from MH i2c: D1 01 00 [23:27:51]MH_I2C_Read... [23:27:51]Read from MH i2c: D1 01 00 F1 E2 00 A4 [23:27:51]Write to MH i2c: 01 00 00 F2 E2 D4 [23:27:51]Write i2c OK [23:27:51]MH_I2C_Read... [23:27: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 30 4F 00 00 00 EE 86 47 00 EF 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 30 10 04 04 00 99 FB 03 00 F4 03 04 00 CF 2C C2 66 B6 04 01 00 00 27 EF 07 02 E8 D9 CF 7F [23:27:51]CommunicateWithHost err = 0 [23:27:51]CheckOFDResponse [23:27:51]1017 (14) - 77093643461234 [23:27:51]1041 (16) - 0000000000871820 [23:27:51]1040 (4) - 261017 [23:27:51]1012 (4) - 18.08.2024 17:18 [23:27:51]1206 (1) - 0 [23:27:51]OFD Sender: Remove packet 261017 [23:27:51]ProducePacketName [23:27:51]name=ofd_packets/00261017 [23:27:51]NVStorageDeleteData [23:27:51]OFD Sender: No OFD packet to send [23:27:52]*** Cut start [23:27:52]*** Purtial cut [23:27:52]*** Stage 1: CUTSNS_PIN = 1 [23:27:54]Read from MH i2c: 01 [23:27:54]MH_I2C_Read... [23:27:54]*** Stop cut motor [23:27:54]*** Cut end [23:27:54]Read from MH i2c: 01 07 00 [23:27:54]MH_I2C_Read... [23:27:54]Read from MH i2c: 01 07 00 F2 E2 00 00 00 00 00 FF 0F E9 [23:27:54]process_action close_receipt done [23:27:54]requested_data is exist [23:27:54]produce_requested_data [23:27:54]requested_item fm.sn is exist - process it [23:27:54]wFMCommunicate request_size=4 [23:27:54]MH_SAM_APDU [23:27:54]CAPDU: 80 11 00 00 [23:27:54]Write to MH i2c: E2 08 00 F3 E2 80 11 00 00 00 00 00 00 4F [23:27:54]Write i2c OK [23:27:54]MH_I2C_Read... [23:27:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:54]Read from MH i2c: E2 [23:27:54]MH_I2C_Read... [23:27:54]Read from MH i2c: E2 17 00 [23:27:54]MH_I2C_Read... [23:27:54]Read from MH i2c: E2 17 00 F3 E2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 9C [23:27:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:27:54]wFMCommunicate OK [23:27:54]requested_item fd.num is exist - process it [23:27:54]SAM_PROTO_GetFieldsCounters [23:27:54]wFMCommunicate request_size=4 [23:27:54]MH_SAM_APDU [23:27:54]CAPDU: 80 13 00 00 [23:27:54]Write to MH i2c: E2 08 00 F4 E2 80 13 00 00 00 00 00 00 52 [23:27:54]Write i2c OK [23:27:54]MH_I2C_Read... [23:27:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:27:54]Read from MH i2c: E2 [23:27:54]MH_I2C_Read... [23:27:54]Read from MH i2c: E2 62 00 [23:27:54]MH_I2C_Read... [23:27:54]Read from MH i2c: E2 62 00 F4 E2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 99 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 3F 02 00 00 5E 04 04 00 3F 02 00 00 57 04 04 00 40 02 00 00 19 04 04 00 00 00 00 00 90 00 8D [23:27: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 99 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 3F 02 00 00 5E 04 04 00 3F 02 00 00 57 04 04 00 40 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:27:54]wFMCommunicate OK [23:27:54]SAM_PROTO_GetFieldsCounters done [23:27:54]requested_item shift.num is exist - process it [23:27:54]requested_item shift.opened is exist - process it [23:27:54]req_shift_opened [23:27:54]FM_GetShiftState [23:27:54]SAM_PROTO_GetShiftState [23:27:54]wFMCommunicate request_size=4 [23:27:54]MH_SAM_APDU [23:27:54]CAPDU: 80 13 01 00 [23:27:54]Write to MH i2c: E2 08 00 F5 E2 80 13 01 00 00 00 00 00 54 [23:27:54]Write i2c OK [23:27:54]MH_I2C_Read... [23:27:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:54]Read from MH i2c: E2 [23:27:54]MH_I2C_Read... [23:27:54]Read from MH i2c: E2 0E 00 [23:27:54]MH_I2C_Read... [23:27:54]Read from MH i2c: E2 0E 00 F5 E2 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 91 [23:27:54]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:27:54]wFMCommunicate OK [23:27:54]SAM_PROTO_GetShiftState done [23:27:54]FM_GetShiftState done [23:27:54]req_shift_opened done [23:27:54]requested_item shift.open_date is exist - process it [23:27:54]req_shift_open_date [23:27:54]req_shift_open_date done [23:27:54]produce_requested_data done [23:27:54]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261017,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [23:27:54]process_action_free close_receipt [23:27:54]json_value_free [23:27:54]json_value_free done [23:27:54]process_json_proto returns [23:27:54]Send response to host [23:27:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261017,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [23:27:54]free response buf [23:27:54]execute_script done [23:27:54]execute_script returns [23:27:54]free content buf [23:27:54]Sock 7.Close socket [23:27:54]Sock 7.Thread stoped [23:27:56]OFD Sender: No OFD packet to send [23:28:01]OFD Sender: No OFD packet to send [23:28:06]OFD Sender: No OFD packet to send [23:28:11]OFD Sender: No OFD packet to send [23:28:16]OFD Sender: No OFD packet to send [23:28:21]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:02]OFD Sender: No OFD packet to send [23:29:07]OFD Sender: No OFD packet to send [23:29:12]OFD Sender: No OFD packet to send [23:29:17]OFD Sender: No OFD packet to send [23:29:22]OFD Sender: No OFD packet to send [23:29:27]OFD Sender: No OFD packet to send [23:29:32]OFD Sender: No OFD packet to send [23:29:37]OFD Sender: No OFD packet to send [23:29:42]OFD Sender: No OFD packet to send [23:29:47]OFD Sender: No OFD packet to send [23:29:52]OFD Sender: No OFD packet to send [23:29:57]OFD Sender: No OFD packet to send [23:30:02]OFD Sender: No OFD packet to send [23:30:07]OFD Sender: No OFD packet to send [23:30:12]OFD Sender: No OFD packet to send [23:30:17]OFD Sender: No OFD packet to send [23:30:22]OFD Sender: No OFD packet to send [23:30:27]OFD Sender: No OFD packet to send [23:30:32]OFD Sender: No OFD packet to send [23:30:37]OFD Sender: No OFD packet to send [23:30:42]OFD Sender: No OFD packet to send [23:30:47]OFD Sender: No OFD packet to send [23:30:52]OFD Sender: No OFD packet to send [23:30:57]OFD Sender: No OFD packet to send [23:31:02]OFD Sender: No OFD packet to send [23:31:07]OFD Sender: No OFD packet to send [23:31:12]OFD Sender: No OFD packet to send [23:31:17]OFD Sender: No OFD packet to send [23:31:22]OFD Sender: No OFD packet to send [23:31:27]OFD Sender: No OFD packet to send [23:31:32]OFD Sender: No OFD packet to send [23:31:37]OFD Sender: No OFD packet to send [23:31:42]OFD Sender: No OFD packet to send [23:31:47]OFD Sender: No OFD packet to send [23:31:52]OFD Sender: No OFD packet to send [23:31:57]OFD Sender: No OFD packet to send [23:32:02]OFD Sender: No OFD packet to send [23:32:07]OFD Sender: No OFD packet to send [23:32:12]OFD Sender: No OFD packet to send [23:32:17]OFD Sender: No OFD packet to send [23:32:22]OFD Sender: No OFD packet to send [23:32:27]OFD Sender: No OFD packet to send [23:32:32]OFD Sender: No OFD packet to send [23:32:33]accept exits with 9 [23:32:33]New connection [23:32:33]New thread 3066473828 created [23:32:33]Thread 3066617188 joined [23:32:33]Waiting for new connection... [23:32:33] Sock 9.Parse request [23:32:33]Sock 9.Check first char [23:32:33]Sock 9.First char is OK [23:32:33]request: POST /json_proto HTTP/1.0 [23:32:33]Method: POST [23:32:33]URL: /json_proto [23:32:33]Method is POST - this is cgi request [23:32:33]url: /json_proto [23:32:33]query_string will be loaded in cgi processing [23:32:33]execute_cgi json_proto POST (null) [23:32:33]execute_cgi path=json_proto method=POST [23:32:33]POST find Content-Length [23:32:33]Host: 172.17.55.133:8080 [23:32:33]Content-Length: 683 [23:32:33]Content-Type: application/json [23:32:33] [23:32:33]POST finish read [23:32:33]Found Content-Length = 683 [23:32:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036573", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:32:33]execute_script... [23: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)1036573", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:32:33]POST & json_proto [23:32:33]process_json_proto [23:32:33]json parsed OK: [23:32:33]protocol is kg_v1.0 [23:32:33]action value=close_receipt [23:32:33]process_action close_receipt [23:32:33]cmd_close_receipt [23:32:33]MH_GetDate [23:32:33]Write to MH i2c: F0 00 00 F6 E2 C7 [23:32:33]Write i2c OK [23:32:33]MH_I2C_Read... [23:32:33]Read from MH i2c: F0 [23:32:33]MH_I2C_Read... [23:32:33]Read from MH i2c: F0 09 00 [23:32:33]MH_I2C_Read... [23:32:33]Read from MH i2c: F0 09 00 F6 E2 00 98 84 C2 66 34 48 D8 65 CD [23:32:33]GetLastDocTimeStamp 1724023676 [23:32:33]current date 1724023960 [23:32:33]FM_GetShiftState [23:32:33]SAM_PROTO_GetShiftState [23:32:33]wFMCommunicate request_size=4 [23:32:33]MH_SAM_APDU [23:32:33]CAPDU: 80 13 01 00 [23:32:33]Write to MH i2c: E2 08 00 F7 E2 80 13 01 00 00 00 00 00 56 [23:32:33]Write i2c OK [23:32:33]MH_I2C_Read... [23:32:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:32:33]Read from MH i2c: E2 [23:32:33]MH_I2C_Read... [23:32:33]Read from MH i2c: E2 0E 00 [23:32:33]MH_I2C_Read... [23:32:33]Read from MH i2c: E2 0E 00 F7 E2 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 93 [23:32:33]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:32:33]wFMCommunicate OK [23:32:33]SAM_PROTO_GetShiftState done [23:32:33]FM_GetShiftState done [23:32:33]opened in 1723940556 [23:32:33]opened+sec_in_day 1724026956 [23:32:33]quantity*price = 100021 [23:32:33]sum+1 = 100023 [23:32:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 576 18.08.2024 23:32 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261018 ФПД: 192693663691382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T233241&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261018&fm=192693663691382&tin=02508201610067®Number=0000000000091865&sum=100000 [23:32:34]StoreToDocumentArchive [23:32:34]shift 449 fd 261018 [23:32:34]save to /storage/0449/doc_00261018 [23:32:34]save last doc name /storage/0449/doc_00261018 to /storage/kkm_last_doc_name [23:32:34]save OK [23:32:34]Clear old archive folders... [23:32:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:32:34]tlvbuf is 00540DC0 [23:32:34]SAM_PROTO_ClearQueue [23:32:34]wFMCommunicate request_size=4 [23:32:34]MH_SAM_APDU [23:32:34]CAPDU: 80 09 00 00 [23:32:34]Write to MH i2c: E2 08 00 04 E3 80 09 00 00 00 00 00 00 59 [23:32:34]Write i2c OK [23:32:34]MH_I2C_Read... [23:32:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:32:34]Read from MH i2c: E2 [23:32:34]MH_I2C_Read... [23:32:34]Read from MH i2c: E2 03 00 [23:32:34]MH_I2C_Read... [23:32:34]Read from MH i2c: E2 03 00 04 E3 00 90 00 5B [23:32:34]RAPDU: 90 00 [23:32:34]wFMCommunicate OK [23:32:34]SAM_PROTO_ClearQueue done [23:32:34]KKMCreateOFDPacket [23:32:34]OFDProtocolAddRootSTLVToBuf [23:32:34]FM_MakeSignedData [23:32:34]FM_MakeSignedData [23:32:34]SAM_PROTO_SignData [23:32:34]wFMCommunicate request_size=4 [23:32:34]MH_SAM_APDU [23:32:34]CAPDU: 80 0D 01 02 [23:32:34]Write to MH i2c: E2 08 00 05 E3 80 0D 01 02 00 00 00 00 61 [23:32:34]Write i2c OK [23:32:34]MH_I2C_Read... [23:32:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:32:34]Read from MH i2c: E2 [23:32:34]MH_I2C_Read... [23:32:34]Read from MH i2c: E2 03 00 [23:32:34]MH_I2C_Read... [23:32:34]Read from MH i2c: E2 03 00 05 E3 00 90 00 5C [23:32:34]RAPDU: 90 00 [23:32:34]wFMCommunicate OK [23:32:34]wFMCommunicate request_size=255 [23:32:34]MH_SAM_APDU [23: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 02 00 00 F4 03 04 00 99 84 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9A FB 03 00 35 04 06 00 AF [23:32:34]Write to MH i2c: E2 02 01 06 E3 80 0D 02 02 FA 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 02 00 00 F4 03 04 00 99 84 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9A FB 03 00 35 04 06 00 AF 00 00 9B [23:32:34]Write i2c OK [23:32:34]MH_I2C_Read... [23:32:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:32:35]Read from MH i2c: E2 [23:32:35]MH_I2C_Read... [23:32:35]Read from MH i2c: E2 03 00 [23:32:35]MH_I2C_Read... [23:32:35]Read from MH i2c: E2 03 00 06 E3 00 90 00 5D [23:32:35]RAPDU: 90 00 [23:32:35]wFMCommunicate OK [23:32:35]wFMCommunicate request_size=10 [23:32:35]MH_SAM_APDU [23:32:35]CAPDU: 80 0D 02 02 05 40 FD 5F F2 76 [23:32:35]Write to MH i2c: E2 0D 00 07 E3 80 0D 02 02 05 00 40 FD 5F F2 76 00 00 72 [23:32:35]Write i2c OK [23:32:35]MH_I2C_Read... [23:32:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:32:35]Read from MH i2c: E2 [23:32:35]MH_I2C_Read... [23:32:35]Read from MH i2c: E2 03 00 [23:32:35]MH_I2C_Read... [23:32:35]Read from MH i2c: E2 03 00 07 E3 00 90 00 5E [23:32:35]RAPDU: 90 00 [23:32:35]wFMCommunicate OK [23:32:35]wFMCommunicate request_size=4 [23:32:35]MH_SAM_APDU [23:32:35]CAPDU: 80 0D 03 02 [23:32:35]Write to MH i2c: E2 08 00 08 E3 80 0D 03 02 00 00 00 00 66 [23:32:35]Write i2c OK [23:32:35]MH_I2C_Read... [23:32:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:32:35]Read from MH i2c: E2 [23:32:35]MH_I2C_Read... [23:32:35]Read from MH i2c: E2 0B 00 [23:32:35]MH_I2C_Read... [23:32:35]Read from MH i2c: E2 0B 00 08 E3 00 D4 46 F7 56 C9 31 4C 97 90 00 AB [23:32:35]RAPDU: D4 46 F7 56 C9 31 4C 97 90 00 [23:32:35]wFMCommunicate OK [23:32:35]SAM_PROTO_SignData done [23:32:35]FM_MakeSignedData done [23:32:35]CreateOFDProtocolMessage [23:32:35]wFMCommunicate request_size=4 [23:32:35]MH_SAM_APDU [23:32:35]CAPDU: 80 11 00 00 [23:32:35]Write to MH i2c: E2 08 00 09 E3 80 11 00 00 00 00 00 00 66 [23:32:35]Write i2c OK [23:32:35]MH_I2C_Read... [23:32:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:32:35]Read from MH i2c: E2 [23:32:35]MH_I2C_Read... [23:32:35]Read from MH i2c: E2 17 00 [23:32:35]MH_I2C_Read... [23:32:35]Read from MH i2c: E2 17 00 09 E3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B3 [23:32:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:32:35]wFMCommunicate OK [23:32:35]CreateOFDProtocolMessage done [23:32:35]OFDSenderStorePacket 261018 [23:32:35]StoreOFDPacket docnum=261018 [23: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 30 0F 01 00 00 94 5A 07 01 49 C8 5A 03 01 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 02 00 00 F4 03 04 00 99 84 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9A FB 03 00 35 04 06 00 AF 40 FD 5F F2 76 D4 46 F7 56 C9 31 4C 97 [23:32:35]CheckFolder [23:32:35]dirname=/storage/ofd_packets [23:32:35]CheckFolder done [23:32:35]ProducePacketName [23:32:35]name=ofd_packets/00261018 [23:32:35]NVStorageSaveData ofd_packets/00261018 [23:32:35]File name is /storage/ofd_packets/00261018 [23:32:35]Write 301 bytes [23:32:35]NVStorageSaveData done [23:32:35]OFDSenderStorePacket done [23:32:35]KKMCreateOFDPacket done [23:32:35]NVStorageSaveData kkm_last_timestamp [23:32:35]File name is /storage/kkm_last_timestamp [23:32:35]Write 4 bytes [23:32:35]NVStorageSaveData done [23:32:35]ExternCall_PrintAddStr [23:32:35]wPrintStart [23:32:35]Write to MH i2c: 01 00 00 0A E3 ED [23:32:35]Write i2c OK [23:32:35]MH_I2C_Read... [23:32:35]Read from MH i2c: 01 [23:32:35]MH_I2C_Read... [23:32:35]Read from MH i2c: 01 07 00 [23:32:35]MH_I2C_Read... [23:32:35]Read from MH i2c: 01 07 00 0A E3 00 00 00 00 00 FF 0F 02 [23:32:35]RasterBufferAndPrint [23:32:35]line Счет N : (1)1036573 [23:32:35]line ИНН: 02508201610067 [23:32:35]line Контрольно-Кассовый Чек [23:32:35]line ПРОДАЖА [23:32:35]line ТРК (МРК, ГНК) : 23 [23:32:35]line Товар: 2710124500 [23:32:35]line Аи-95-К-5 [23:32:35]line 13.480 * 74.20 [23:32:35]line = 1000.22 [23:32:35]line НДС 12% НСП 1% [23:32:35]line > о реализуемом товаре [23:32:35]line ОКРУГЛЕНИЕ: -0.22 [23:32:35]line ИТОГО: 1000.00 [23:32:35]line Внесено: 1000.00 [23:32:35]line СДАЧА: 0.00 [23:32:35]line НСП 1% : 8.85 [23:32:35]line НДС 12% : 106.22 [23:32:35]line Наличными: 1000.00 [23:32:35]line Безнал.: 0.00 [23:32:35]line Место: АЗС № 94 "Партнер Нефть" [23:32:35]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [23:32:35]line СНО: Общий режим [23:32:35]line Чек 576 18.08.2024 23:32 [23:32:35]line Смена: 449 ФФД: 1.0 [23:32:35]line ЗНМ: 0300000099 [23:32:35]line РНМ: 0000000000091865 [23:32:35]line Версия ККМ: 001 [23:32:35]line ФМ: 0000000000871820 [23:32:35]line ФД: 261018 [23:32:35]line ФПД: 192693663691382 [23:32:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T233241&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261018&fm=192693663691382&tin=02508201610067®Number=0000000000091865&sum=100000 [23:32:35]written 0, free lines is 4095 [23:32:35]OFD Sender: Processing packet 261018 [packets to send 192, broken 191] [23:32:35]ProducePacketName [23:32:35]name=ofd_packets/00261018 [23:32:35]OFD Sender: To server: pG, [23:32:35]CommunicateWithHost lk.salyk.kg:30040 [23:32:35]ConnectInit lk.salyk.kg [23:32:35]Connected sock=10 [23: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 30 0F 01 00 00 94 5A 07 01 49 C8 5A 03 01 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 02 00 00 F4 03 04 00 99 84 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9A FB 03 00 35 04 06 00 AF 40 FD 5F F2 76 D4 46 F7 56 C9 31 4C 97 [23: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 30 4F 00 00 00 A8 33 47 00 86 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 30 10 04 04 00 9A FB 03 00 F4 03 04 00 EC 2D C2 66 B6 04 01 00 00 0D D8 CA F6 98 D1 9A 0D [23:32:35]CommunicateWithHost err = 0 [23:32:35]CheckOFDResponse [23:32:35]1017 (14) - 77093643461234 [23:32:35]1041 (16) - 0000000000871820 [23:32:35]1040 (4) - 261018 [23:32:35]1012 (4) - 18.08.2024 17:22 [23:32:35]1206 (1) - 0 [23:32:35]OFD Sender: Remove packet 261018 [23:32:35]ProducePacketName [23:32:35]name=ofd_packets/00261018 [23:32:35]NVStorageDeleteData [23:32:35]Write to MH i2c: 01 00 00 35 E3 18 [23:32:35]Write i2c OK [23:32:35]MH_I2C_Read... [23:32:35]Read from MH i2c: 01 [23:32:35]MH_I2C_Read... [23:32:35]Read from MH i2c: 01 07 00 [23:32:35]MH_I2C_Read... [23:32:35]Read from MH i2c: 01 07 00 35 E3 00 00 00 00 00 79 0C A4 [23:32:35]RasterBufferAndPrint [23:32:35]line [23:32:35]line [23:32:35]line [23:32:35]line [23:32:35]line [23:32:35]written 0, free lines is 3196 [23:32:35]MH_Cut [23:32:35]Write to MH i2c: D1 01 00 3C E3 01 F1 [23:32:35]Write i2c OK [23:32:35]MH_I2C_Read... [23:32:35]Read from MH i2c: D1 [23:32:35]MH_I2C_Read... [23:32:35]Read from MH i2c: D1 01 00 [23:32:35]MH_I2C_Read... [23:32:35]Read from MH i2c: D1 01 00 3C E3 00 F0 [23:32:35]Write to MH i2c: 01 00 00 3D E3 20 [23:32:35]Write i2c OK [23:32:35]MH_I2C_Read... [23:32:36]OFD Sender: No OFD packet to send [23:32:36]*** Cut start [23:32:36]*** Purtial cut [23:32:36]*** Stage 1: CUTSNS_PIN = 1 [23:32:38]Read from MH i2c: 01 [23:32:38]MH_I2C_Read... [23:32:38]*** Stop cut motor [23:32:38]*** Cut end [23:32:38]Read from MH i2c: 01 07 00 [23:32:38]MH_I2C_Read... [23:32:38]Read from MH i2c: 01 07 00 3D E3 00 00 00 00 00 FF 0F 35 [23:32:38]process_action close_receipt done [23:32:38]requested_data is exist [23:32:38]produce_requested_data [23:32:38]requested_item fm.sn is exist - process it [23:32:38]wFMCommunicate request_size=4 [23:32:38]MH_SAM_APDU [23:32:38]CAPDU: 80 11 00 00 [23:32:38]Write to MH i2c: E2 08 00 3E E3 80 11 00 00 00 00 00 00 9B [23:32:38]Write i2c OK [23:32:38]MH_I2C_Read... [23:32:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:32:38]Read from MH i2c: E2 [23:32:38]MH_I2C_Read... [23:32:38]Read from MH i2c: E2 17 00 [23:32:38]MH_I2C_Read... [23:32:38]Read from MH i2c: E2 17 00 3E E3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E8 [23:32:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:32:38]wFMCommunicate OK [23:32:38]requested_item fd.num is exist - process it [23:32:38]SAM_PROTO_GetFieldsCounters [23:32:38]wFMCommunicate request_size=4 [23:32:38]MH_SAM_APDU [23:32:38]CAPDU: 80 13 00 00 [23:32:38]Write to MH i2c: E2 08 00 3F E3 80 13 00 00 00 00 00 00 9E [23:32:38]Write i2c OK [23:32:38]MH_I2C_Read... [23:32:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:32:38]Read from MH i2c: E2 [23:32:38]MH_I2C_Read... [23:32:38]Read from MH i2c: E2 62 00 [23:32:38]MH_I2C_Read... [23:32:38]Read from MH i2c: E2 62 00 3F E3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 9A FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 40 02 00 00 5E 04 04 00 40 02 00 00 57 04 04 00 41 02 00 00 19 04 04 00 00 00 00 00 90 00 DD [23:32: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 9A FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 40 02 00 00 5E 04 04 00 40 02 00 00 57 04 04 00 41 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:32:38]wFMCommunicate OK [23:32:38]SAM_PROTO_GetFieldsCounters done [23:32:38]requested_item shift.num is exist - process it [23:32:38]requested_item shift.opened is exist - process it [23:32:38]req_shift_opened [23:32:38]FM_GetShiftState [23:32:38]SAM_PROTO_GetShiftState [23:32:38]wFMCommunicate request_size=4 [23:32:38]MH_SAM_APDU [23:32:38]CAPDU: 80 13 01 00 [23:32:38]Write to MH i2c: E2 08 00 40 E3 80 13 01 00 00 00 00 00 A0 [23:32:39]Write i2c OK [23:32:39]MH_I2C_Read... [23:32:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:32:39]Read from MH i2c: E2 [23:32:39]MH_I2C_Read... [23:32:39]Read from MH i2c: E2 0E 00 [23:32:39]MH_I2C_Read... [23:32:39]Read from MH i2c: E2 0E 00 40 E3 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 DD [23:32:39]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:32:39]wFMCommunicate OK [23:32:39]SAM_PROTO_GetShiftState done [23:32:39]FM_GetShiftState done [23:32:39]req_shift_opened done [23:32:39]requested_item shift.open_date is exist - process it [23:32:39]req_shift_open_date [23:32:39]req_shift_open_date done [23:32:39]produce_requested_data done [23:32:39]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261018,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [23:32:39]process_action_free close_receipt [23:32:39]json_value_free [23:32:39]json_value_free done [23:32:39]process_json_proto returns [23:32:39]Send response to host [23:32:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261018,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [23:32:39]free response buf [23:32:39]execute_script done [23:32:39]execute_script returns [23:32:39]free content buf [23:32:39]Sock 9.Close socket [23:32:39]Sock 9.Thread stoped [23:32:41]OFD Sender: No OFD packet to send [23:32:46]OFD Sender: No OFD packet to send [23:32:51]OFD Sender: No OFD packet to send [23:32:56]OFD Sender: No OFD packet to send [23:33:01]OFD Sender: No OFD packet to send [23:33:06]OFD Sender: No OFD packet to send [23:33:11]OFD Sender: No OFD packet to send [23:33:16]OFD Sender: No OFD packet to send [23:33:21]OFD Sender: No OFD packet to send [23:33:26]OFD Sender: No OFD packet to send [23:33:31]OFD Sender: No OFD packet to send [23:33:36]OFD Sender: No OFD packet to send [23:33:41]OFD Sender: No OFD packet to send [23:33:46]OFD Sender: No OFD packet to send [23:33:51]OFD Sender: No OFD packet to send [23:33:56]OFD Sender: No OFD packet to send [23:34:01]OFD Sender: No OFD packet to send [23:34:06]OFD Sender: No OFD packet to send [23:34:11]OFD Sender: No OFD packet to send [23:34:16]OFD Sender: No OFD packet to send [23:34:21]OFD Sender: No OFD packet to send [23:34:26]OFD Sender: No OFD packet to send [23:34:31]OFD Sender: No OFD packet to send [23:34:36]OFD Sender: No OFD packet to send [23:34:41]OFD Sender: No OFD packet to send [23:34:46]OFD Sender: No OFD packet to send [23:34:51]OFD Sender: No OFD packet to send [23:34:56]OFD Sender: No OFD packet to send [23:35:01]OFD Sender: No OFD packet to send [23:35:06]OFD Sender: No OFD packet to send [23:35:11]OFD Sender: No OFD packet to send [23:35:16]OFD Sender: No OFD packet to send [23:35:21]OFD Sender: No OFD packet to send [23:35:26]OFD Sender: No OFD packet to send [23:35:31]OFD Sender: No OFD packet to send [23:35:36]OFD Sender: No OFD packet to send [23:35:41]OFD Sender: No OFD packet to send [23:35:46]OFD Sender: No OFD packet to send [23:35:51]OFD Sender: No OFD packet to send [23:35:56]OFD Sender: No OFD packet to send [23:36:00]accept exits with 7 [23:36:00]New connection [23:36:00]New thread 3066617188 created [23:36:00]Thread 3066473828 joined [23:36:00]Waiting for new connection... [23:36:00] Sock 7.Parse request [23:36:00]Sock 7.Check first char [23:36:00]Sock 7.First char is OK [23:36:00]request: POST /json_proto HTTP/1.0 [23:36:00]Method: POST [23:36:00]URL: /json_proto [23:36:00]Method is POST - this is cgi request [23:36:00]url: /json_proto [23:36:00]query_string will be loaded in cgi processing [23:36:00]execute_cgi json_proto POST (null) [23:36:00]execute_cgi path=json_proto method=POST [23:36:00]POST find Content-Length [23:36:00]Host: 172.17.55.133:8080 [23:36:00]Content-Length: 688 [23:36:00]Content-Type: application/json [23:36:00] [23:36:00]POST finish read [23:36:00]Found Content-Length = 688 [23:36:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "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" ] } } [23:36:00]execute_script... [23:36: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)1036575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "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" ] } } [23:36:00]POST & json_proto [23:36:00]process_json_proto [23:36:00]json parsed OK: [23:36:00]protocol is kg_v1.0 [23:36:00]action value=close_receipt [23:36:00]process_action close_receipt [23:36:00]cmd_close_receipt [23:36:00]MH_GetDate [23:36:00]Write to MH i2c: F0 00 00 41 E3 13 [23:36:00]Write i2c OK [23:36:00]MH_I2C_Read... [23:36:00]Read from MH i2c: F0 [23:36:00]MH_I2C_Read... [23:36:00]Read from MH i2c: F0 09 00 [23:36:00]MH_I2C_Read... [23:36:00]Read from MH i2c: F0 09 00 41 E3 00 68 85 C2 66 34 48 D8 65 EA [23:36:00]GetLastDocTimeStamp 1724023961 [23:36:00]current date 1724024168 [23:36:00]FM_GetShiftState [23:36:00]SAM_PROTO_GetShiftState [23:36:00]wFMCommunicate request_size=4 [23:36:00]MH_SAM_APDU [23:36:00]CAPDU: 80 13 01 00 [23:36:00]Write to MH i2c: E2 08 00 42 E3 80 13 01 00 00 00 00 00 A2 [23:36:00]Write i2c OK [23:36:00]MH_I2C_Read... [23:36:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:36:00]Read from MH i2c: E2 [23:36:00]MH_I2C_Read... [23:36:00]Read from MH i2c: E2 0E 00 [23:36:00]MH_I2C_Read... [23:36:00]Read from MH i2c: E2 0E 00 42 E3 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 DF [23:36:00]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:36:00]wFMCommunicate OK [23:36:00]SAM_PROTO_GetShiftState done [23:36:00]FM_GetShiftState done [23:36:00]opened in 1723940556 [23:36:00]opened+sec_in_day 1724026956 [23:36:00]quantity*price = 200025 [23:36:00]sum+1 = 200026 [23:36:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 577 18.08.2024 23:36 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261019 ФПД: 225018223538648 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T233608&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261019&fm=225018223538648&tin=02508201610067®Number=0000000000091865&sum=200000 [23:36:02]StoreToDocumentArchive [23:36:02]shift 449 fd 261019 [23:36:02]save to /storage/0449/doc_00261019 [23:36:02]save last doc name /storage/0449/doc_00261019 to /storage/kkm_last_doc_name [23:36:02]save OK [23:36:02]Clear old archive folders... [23:36:02]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:36:02]tlvbuf is 004D80C0 [23:36:02]SAM_PROTO_ClearQueue [23:36:02]wFMCommunicate request_size=4 [23:36:02]MH_SAM_APDU [23:36:02]CAPDU: 80 09 00 00 [23:36:02]Write to MH i2c: E2 08 00 4F E3 80 09 00 00 00 00 00 00 A4 [23:36:02]Write i2c OK [23:36:02]MH_I2C_Read... [23:36:02]Read from MH i2c: E2 [23:36:02]MH_I2C_Read... [23:36:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:36:02]Read from MH i2c: E2 03 00 [23:36:02]MH_I2C_Read... [23:36:02]Read from MH i2c: E2 03 00 4F E3 00 90 00 A6 [23:36:02]RAPDU: 90 00 [23:36:02]wFMCommunicate OK [23:36:02]SAM_PROTO_ClearQueue done [23:36:02]KKMCreateOFDPacket [23:36:02]OFDProtocolAddRootSTLVToBuf [23:36:02]FM_MakeSignedData [23:36:02]FM_MakeSignedData [23:36:02]SAM_PROTO_SignData [23:36:02]wFMCommunicate request_size=4 [23:36:02]MH_SAM_APDU [23:36:02]CAPDU: 80 0D 01 02 [23:36:02]Write to MH i2c: E2 08 00 50 E3 80 0D 01 02 00 00 00 00 AC [23:36:02]Write i2c OK [23:36:02]MH_I2C_Read... [23:36:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:36:02]Read from MH i2c: E2 [23:36:02]MH_I2C_Read... [23:36:02]Read from MH i2c: E2 03 00 [23:36:02]MH_I2C_Read... [23:36:02]Read from MH i2c: E2 03 00 50 E3 00 90 00 A7 [23:36:02]RAPDU: 90 00 [23:36:02]wFMCommunicate OK [23:36:02]wFMCommunicate request_size=255 [23:36:02]MH_SAM_APDU [23:36:02]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 41 02 00 00 F4 03 04 00 68 85 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9B FB 03 00 35 04 06 00 [23:36:02]Write to MH i2c: E2 02 01 51 E3 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 41 02 00 00 F4 03 04 00 68 85 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9B FB 03 00 35 04 06 00 00 00 B7 [23:36:02]Write i2c OK [23:36:02]MH_I2C_Read... [23:36:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:36:02]Read from MH i2c: E2 [23:36:02]MH_I2C_Read... [23:36:02]Read from MH i2c: E2 03 00 [23:36:02]MH_I2C_Read... [23:36:02]Read from MH i2c: E2 03 00 51 E3 00 90 00 A8 [23:36:02]RAPDU: 90 00 [23:36:02]wFMCommunicate OK [23:36:02]wFMCommunicate request_size=11 [23:36:02]MH_SAM_APDU [23:36:02]CAPDU: 80 0D 02 02 06 CC A7 23 48 31 D8 [23:36:02]Write to MH i2c: E2 0E 00 52 E3 80 0D 02 02 06 00 CC A7 23 48 31 D8 00 00 A2 [23:36:02]Write i2c OK [23:36:02]MH_I2C_Read... [23:36:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:36:02]Read from MH i2c: E2 [23:36:02]MH_I2C_Read... [23:36:02]Read from MH i2c: E2 03 00 [23:36:02]MH_I2C_Read... [23:36:02]Read from MH i2c: E2 03 00 52 E3 00 90 00 A9 [23:36:02]RAPDU: 90 00 [23:36:02]wFMCommunicate OK [23:36:02]wFMCommunicate request_size=4 [23:36:02]MH_SAM_APDU [23:36:02]CAPDU: 80 0D 03 02 [23:36:02]Write to MH i2c: E2 08 00 53 E3 80 0D 03 02 00 00 00 00 B1 [23:36:02]Write i2c OK [23:36:02]MH_I2C_Read... [23:36:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:36:02]Read from MH i2c: E2 [23:36:02]MH_I2C_Read... [23:36:02]Read from MH i2c: E2 0B 00 [23:36:02]MH_I2C_Read... [23:36:02]Read from MH i2c: E2 0B 00 53 E3 00 67 C0 A0 DD 55 26 A7 EE 90 00 66 [23:36:02]RAPDU: 67 C0 A0 DD 55 26 A7 EE 90 00 [23:36:02]wFMCommunicate OK [23:36:02]SAM_PROTO_SignData done [23:36:02]FM_MakeSignedData done [23:36:02]CreateOFDProtocolMessage [23:36:02]wFMCommunicate request_size=4 [23:36:02]MH_SAM_APDU [23:36:02]CAPDU: 80 11 00 00 [23:36:02]Write to MH i2c: E2 08 00 54 E3 80 11 00 00 00 00 00 00 B1 [23:36:02]Write i2c OK [23:36:02]MH_I2C_Read... [23:36:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:36:02]Read from MH i2c: E2 [23:36:02]MH_I2C_Read... [23:36:02]Read from MH i2c: E2 17 00 [23:36:02]MH_I2C_Read... [23:36:02]Read from MH i2c: E2 17 00 54 E3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 FE [23:36:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:36:02]wFMCommunicate OK [23:36:02]CreateOFDProtocolMessage done [23:36:02]OFDSenderStorePacket 261019 [23:36:02]StoreOFDPacket docnum=261019 [23:36:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 D6 61 08 01 66 9F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 41 02 00 00 F4 03 04 00 68 85 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9B FB 03 00 35 04 06 00 CC A7 23 48 31 D8 67 C0 A0 DD 55 26 A7 EE [23:36:02]CheckFolder [23:36:02]dirname=/storage/ofd_packets [23:36:02]CheckFolder done [23:36:02]ProducePacketName [23:36:02]name=ofd_packets/00261019 [23:36:02]NVStorageSaveData ofd_packets/00261019 [23:36:02]File name is /storage/ofd_packets/00261019 [23:36:02]Write 302 bytes [23:36:02]NVStorageSaveData done [23:36:02]OFDSenderStorePacket done [23:36:02]KKMCreateOFDPacket done [23:36:02]NVStorageSaveData kkm_last_timestamp [23:36:02]File name is /storage/kkm_last_timestamp [23:36:02]Write 4 bytes [23:36:02]NVStorageSaveData done [23:36:02]ExternCall_PrintAddStr [23:36:02]wPrintStart [23:36:02]Write to MH i2c: 01 00 00 55 E3 38 [23:36:02]Write i2c OK [23:36:02]MH_I2C_Read... [23:36:02]Read from MH i2c: 01 [23:36:02]MH_I2C_Read... [23:36:02]Read from MH i2c: 01 07 00 [23:36:02]MH_I2C_Read... [23:36:02]Read from MH i2c: 01 07 00 55 E3 00 00 00 00 00 FF 0F 4D [23:36:02]RasterBufferAndPrint [23:36:02]line Счет N : (1)1036575 [23:36:02]line ИНН: 02508201610067 [23:36:02]line Контрольно-Кассовый Чек [23:36:02]line ПРОДАЖА [23:36:02]line ТРК (МРК, ГНК) : 33 [23:36:02]line Товар: 2710194210 [23:36:02]line ДТ(л)-К-4 [23:36:02]line 26.250 * 76.20 [23:36:02]line = 2000.25 [23:36:02]line НДС 12% НСП 1% [23:36:02]line > о реализуемом товаре [23:36:02]line ОКРУГЛЕНИЕ: -0.25 [23:36:02]line ИТОГО: 2000.00 [23:36:02]line Внесено: 2000.00 [23:36:02]line СДАЧА: 0.00 [23:36:02]line НСП 1% : 17.70 [23:36:02]line НДС 12% : 212.42 [23:36:02]line Наличными: 2000.00 [23:36:02]line Безнал.: 0.00 [23:36:02]line Место: АЗС № 94 "Партнер Нефть" [23:36:02]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [23:36:02]line СНО: Общий режим [23:36:02]line Чек 577 18.08.2024 23:36 [23:36:02]line Смена: 449 ФФД: 1.0 [23:36:02]line ЗНМ: 0300000099 [23:36:02]line РНМ: 0000000000091865 [23:36:02]line Версия ККМ: 001 [23:36:02]line ФМ: 0000000000871820 [23:36:02]line ФД: 261019 [23:36:02]line ФПД: 225018223538648 [23:36:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T233608&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261019&fm=225018223538648&tin=02508201610067®Number=0000000000091865&sum=200000 [23:36:02]OFD Sender: Processing packet 261019 [packets to send 192, broken 191] [23:36:02]ProducePacketName [23:36:02]name=ofd_packets/00261019 [23:36:02]OFD Sender: To server: pG, [23:36:02]CommunicateWithHost lk.salyk.kg:30040 [23:36:02]ConnectInit lk.salyk.kg [23:36:02]written 0, free lines is 4095 [23:36:03]Connected sock=10 [23:36: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 30 10 01 00 00 D6 61 08 01 66 9F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 41 02 00 00 F4 03 04 00 68 85 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9B FB 03 00 35 04 06 00 CC A7 23 48 31 D8 67 C0 A0 DD 55 26 A7 EE [23:36: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 30 4F 00 00 00 35 34 47 00 74 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9B FB 03 00 F4 03 04 00 BB 2E C2 66 B6 04 01 00 00 61 CF 1F 9B 08 E0 B3 1B [23:36:03]CommunicateWithHost err = 0 [23:36:03]CheckOFDResponse [23:36:03]1017 (14) - 77093643461234 [23:36:03]1041 (16) - 0000000000871820 [23:36:03]1040 (4) - 261019 [23:36:03]1012 (4) - 18.08.2024 17:26 [23:36:03]1206 (1) - 0 [23:36:03]OFD Sender: Remove packet 261019 [23:36:03]ProducePacketName [23:36:03]name=ofd_packets/00261019 [23:36:03]NVStorageDeleteData [23:36:03]Write to MH i2c: 01 00 00 80 E3 63 [23:36:03]Write i2c OK [23:36:03]MH_I2C_Read... [23:36:03]Read from MH i2c: 01 [23:36:03]MH_I2C_Read... [23:36:03]Read from MH i2c: 01 07 00 [23:36:03]MH_I2C_Read... [23:36:03]Read from MH i2c: 01 07 00 80 E3 00 00 00 00 00 66 0C DC [23:36:03]RasterBufferAndPrint [23:36:03]line [23:36:03]line [23:36:03]line [23:36:03]line [23:36:03]line [23:36:03]written 0, free lines is 3178 [23:36:03]MH_Cut [23:36:03]Write to MH i2c: D1 01 00 87 E3 01 3C [23:36:03]Write i2c OK [23:36:03]MH_I2C_Read... [23:36:03]Read from MH i2c: D1 [23:36:03]MH_I2C_Read... [23:36:03]Read from MH i2c: D1 01 00 [23:36:03]MH_I2C_Read... [23:36:03]Read from MH i2c: D1 01 00 87 E3 00 3B [23:36:03]Write to MH i2c: 01 00 00 88 E3 6B [23:36:03]Write i2c OK [23:36:03]MH_I2C_Read... [23:36:03]OFD Sender: No OFD packet to send [23:36:04]*** Cut start [23:36:04]*** Purtial cut [23:36:04]*** Stage 1: CUTSNS_PIN = 1 [23:36:06]Read from MH i2c: 01 [23:36:06]MH_I2C_Read... [23:36:06]*** Stop cut motor [23:36:06]*** Cut end [23:36:06]Read from MH i2c: 01 07 00 [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: 01 07 00 88 E3 00 00 00 00 00 FF 0F 80 [23:36:06]process_action close_receipt done [23:36:06]requested_data is exist [23:36:06]produce_requested_data [23:36:06]requested_item fm.sn is exist - process it [23:36:06]wFMCommunicate request_size=4 [23:36:06]MH_SAM_APDU [23:36:06]CAPDU: 80 11 00 00 [23:36:06]Write to MH i2c: E2 08 00 89 E3 80 11 00 00 00 00 00 00 E6 [23:36:06]Write i2c OK [23:36:06]MH_I2C_Read... [23:36:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:36:06]Read from MH i2c: E2 [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: E2 17 00 [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: E2 17 00 89 E3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 33 [23:36:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:36:06]wFMCommunicate OK [23:36:06]requested_item fd.num is exist - process it [23:36:06]SAM_PROTO_GetFieldsCounters [23:36:06]wFMCommunicate request_size=4 [23:36:06]MH_SAM_APDU [23:36:06]CAPDU: 80 13 00 00 [23:36:06]Write to MH i2c: E2 08 00 8A E3 80 13 00 00 00 00 00 00 E9 [23:36:06]Write i2c OK [23:36:06]MH_I2C_Read... [23:36:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:36:06]Read from MH i2c: E2 [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: E2 62 00 [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: E2 62 00 8A E3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 9B FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 41 02 00 00 5E 04 04 00 41 02 00 00 57 04 04 00 42 02 00 00 19 04 04 00 00 00 00 00 90 00 2C [23:36: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 9B FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 41 02 00 00 5E 04 04 00 41 02 00 00 57 04 04 00 42 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:36:06]wFMCommunicate OK [23:36:06]SAM_PROTO_GetFieldsCounters done [23:36:06]requested_item shift.num is exist - process it [23:36:06]requested_item shift.opened is exist - process it [23:36:06]req_shift_opened [23:36:06]FM_GetShiftState [23:36:06]SAM_PROTO_GetShiftState [23:36:06]wFMCommunicate request_size=4 [23:36:06]MH_SAM_APDU [23:36:06]CAPDU: 80 13 01 00 [23:36:06]Write to MH i2c: E2 08 00 8B E3 80 13 01 00 00 00 00 00 EB [23:36:06]Write i2c OK [23:36:06]MH_I2C_Read... [23:36:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:36:06]Read from MH i2c: E2 [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: E2 0E 00 [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: E2 0E 00 8B E3 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 28 [23:36:06]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:36:06]wFMCommunicate OK [23:36:06]SAM_PROTO_GetShiftState done [23:36:06]FM_GetShiftState done [23:36:06]req_shift_opened done [23:36:06]requested_item shift.open_date is exist - process it [23:36:06]req_shift_open_date [23:36:06]req_shift_open_date done [23:36:06]produce_requested_data done [23:36:06]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261019,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [23:36:06]process_action_free close_receipt [23:36:06]json_value_free [23:36:06]json_value_free done [23:36:06]process_json_proto returns [23:36:06]Send response to host [23:36:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261019,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [23:36:06]free response buf [23:36:06]execute_script done [23:36:06]execute_script returns [23:36:06]free content buf [23:36:06]Sock 7.Close socket [23:36:06]Sock 7.Thread stoped [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:54]accept exits with 9 [23:36:54]New connection [23:36:54]New thread 3066473828 created [23:36:54]Thread 3066617188 joined [23:36:54]Waiting for new connection... [23:36:54] Sock 9.Parse request [23:36:54]Sock 9.Check first char [23:36:54]Sock 9.First char is OK [23:36:54]request: POST /json_proto HTTP/1.0 [23:36:54]Method: POST [23:36:54]URL: /json_proto [23:36:54]Method is POST - this is cgi request [23:36:54]url: /json_proto [23:36:54]query_string will be loaded in cgi processing [23:36:54]execute_cgi json_proto POST (null) [23:36:54]execute_cgi path=json_proto method=POST [23:36:54]POST find Content-Length [23:36:54]Host: 172.17.55.133:8080 [23:36:54]Content-Length: 809 [23:36:54]Content-Type: application/json [23:36:54] [23:36:54]POST finish read [23:36:54]Found Content-Length = 809 [23:36:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:36:54]execute_script... [23: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)1036574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:36:54]POST & json_proto [23:36:54]process_json_proto [23:36:54]json parsed OK: [23:36:54]protocol is kg_v1.0 [23:36:54]action value=close_receipt [23:36:54]process_action close_receipt [23:36:54]cmd_close_receipt [23:36:54]MH_GetDate [23:36:54]Write to MH i2c: F0 00 00 8C E3 5E [23:36:54]Write i2c OK [23:36:54]MH_I2C_Read... [23:36:54]Read from MH i2c: F0 [23:36:54]MH_I2C_Read... [23:36:54]Read from MH i2c: F0 09 00 [23:36:54]MH_I2C_Read... [23:36:54]Read from MH i2c: F0 09 00 8C E3 00 9D 85 C2 66 34 48 D8 65 6A [23:36:54]GetLastDocTimeStamp 1724024168 [23:36:54]current date 1724024221 [23:36:54]FM_GetShiftState [23:36:54]SAM_PROTO_GetShiftState [23:36:54]wFMCommunicate request_size=4 [23:36:54]MH_SAM_APDU [23:36:54]CAPDU: 80 13 01 00 [23:36:54]Write to MH i2c: E2 08 00 8D E3 80 13 01 00 00 00 00 00 ED [23:36:54]Write i2c OK [23:36:54]MH_I2C_Read... [23:36:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:36:54]Read from MH i2c: E2 [23:36:54]MH_I2C_Read... [23:36:54]Read from MH i2c: E2 0E 00 [23:36:54]MH_I2C_Read... [23:36:54]Read from MH i2c: E2 0E 00 8D E3 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 2A [23:36:54]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:36:54]wFMCommunicate OK [23:36:54]SAM_PROTO_GetShiftState done [23:36:54]FM_GetShiftState done [23:36:54]opened in 1723940556 [23:36:54]opened+sec_in_day 1724026956 [23:36:54]quantity*price = 200025 [23:36:54]sum+1 = 200026 [23:36:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 578 18.08.2024 23:37 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 261020 ФПД: 120341800283827 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T233701&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261020&fm=120341800283827&tin=02508201610067®Number=0000000000091865&sum=200025 [23:36:55]StoreToDocumentArchive [23:36:55]shift 449 fd 261020 [23:36:55]save to /storage/0449/doc_00261020 [23:36:55]save last doc name /storage/0449/doc_00261020 to /storage/kkm_last_doc_name [23:36:55]save OK [23:36:55]Clear old archive folders... [23:36:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:36:55]tlvbuf is 004D7AE0 [23:36:55]SAM_PROTO_ClearQueue [23:36:55]wFMCommunicate request_size=4 [23:36:55]MH_SAM_APDU [23:36:55]CAPDU: 80 09 00 00 [23:36:55]Write to MH i2c: E2 08 00 9A E3 80 09 00 00 00 00 00 00 EF [23:36:55]Write i2c OK [23:36:55]MH_I2C_Read... [23:36:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:36:55]Read from MH i2c: E2 [23:36:55]MH_I2C_Read... [23:36:55]Read from MH i2c: E2 03 00 [23:36:55]MH_I2C_Read... [23:36:55]Read from MH i2c: E2 03 00 9A E3 00 90 00 F1 [23:36:55]RAPDU: 90 00 [23:36:55]wFMCommunicate OK [23:36:55]SAM_PROTO_ClearQueue done [23:36:55]KKMCreateOFDPacket [23:36:55]OFDProtocolAddRootSTLVToBuf [23:36:55]FM_MakeSignedData [23:36:55]FM_MakeSignedData [23:36:55]SAM_PROTO_SignData [23:36:55]wFMCommunicate request_size=4 [23:36:55]MH_SAM_APDU [23:36:55]CAPDU: 80 0D 01 02 [23:36:55]Write to MH i2c: E2 08 00 9B E3 80 0D 01 02 00 00 00 00 F7 [23:36:55]Write i2c OK [23:36:55]MH_I2C_Read... [23:36:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:36:55]Read from MH i2c: E2 [23:36:55]MH_I2C_Read... [23:36:55]Read from MH i2c: E2 03 00 [23:36:55]MH_I2C_Read... [23:36:55]Read from MH i2c: E2 03 00 9B E3 00 90 00 F2 [23:36:55]RAPDU: 90 00 [23:36:55]wFMCommunicate OK [23:36:55]wFMCommunicate request_size=255 [23:36:55]MH_SAM_APDU [23:36:55]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 02 00 00 F4 03 04 00 9D 85 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9C FB 03 00 35 04 06 00 [23:36:55]Write to MH i2c: E2 02 01 9C E3 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 02 00 00 F4 03 04 00 9D 85 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9C FB 03 00 35 04 06 00 00 00 6B [23:36:55]Write i2c OK [23:36:55]MH_I2C_Read... [23:36:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:36:55]Read from MH i2c: E2 [23:36:55]MH_I2C_Read... [23:36:55]Read from MH i2c: E2 03 00 [23:36:55]MH_I2C_Read... [23:36:55]Read from MH i2c: E2 03 00 9C E3 00 90 00 F3 [23:36:55]RAPDU: 90 00 [23:36:55]wFMCommunicate OK [23:36:55]wFMCommunicate request_size=11 [23:36:55]MH_SAM_APDU [23:36:55]CAPDU: 80 0D 02 02 06 6D 73 42 41 EE B3 [23:36:55]Write to MH i2c: E2 0E 00 9D E3 80 0D 02 02 06 00 6D 73 42 41 EE B3 00 00 0A [23:36:55]Write i2c OK [23:36:55]MH_I2C_Read... [23:36:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:36:55]Read from MH i2c: E2 [23:36:55]MH_I2C_Read... [23:36:55]Read from MH i2c: E2 03 00 [23:36:55]MH_I2C_Read... [23:36:55]Read from MH i2c: E2 03 00 9D E3 00 90 00 F4 [23:36:55]RAPDU: 90 00 [23:36:55]wFMCommunicate OK [23:36:55]wFMCommunicate request_size=4 [23:36:55]MH_SAM_APDU [23:36:55]CAPDU: 80 0D 03 02 [23:36:55]Write to MH i2c: E2 08 00 9E E3 80 0D 03 02 00 00 00 00 FC [23:36:55]Write i2c OK [23:36:55]MH_I2C_Read... [23:36:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:36:55]Read from MH i2c: E2 [23:36:55]MH_I2C_Read... [23:36:55]Read from MH i2c: E2 0B 00 [23:36:55]MH_I2C_Read... [23:36:55]Read from MH i2c: E2 0B 00 9E E3 00 D1 5E 08 0E 2E 75 A2 AA 90 00 31 [23:36:55]RAPDU: D1 5E 08 0E 2E 75 A2 AA 90 00 [23:36:55]wFMCommunicate OK [23:36:55]SAM_PROTO_SignData done [23:36:55]FM_MakeSignedData done [23:36:55]CreateOFDProtocolMessage [23:36:55]wFMCommunicate request_size=4 [23:36:55]MH_SAM_APDU [23:36:55]CAPDU: 80 11 00 00 [23:36:55]Write to MH i2c: E2 08 00 9F E3 80 11 00 00 00 00 00 00 FC [23:36:55]Write i2c OK [23:36:55]MH_I2C_Read... [23:36:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:36:55]Read from MH i2c: E2 [23:36:55]MH_I2C_Read... [23:36:55]Read from MH i2c: E2 17 00 [23:36:55]MH_I2C_Read... [23:36:55]Read from MH i2c: E2 17 00 9F E3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 49 [23:36:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:36:55]wFMCommunicate OK [23:36:55]CreateOFDProtocolMessage done [23:36:55]OFDSenderStorePacket 261020 [23:36:55]StoreOFDPacket docnum=261020 [23:36:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 34 7A 08 01 13 8E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 02 00 00 F4 03 04 00 9D 85 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9C FB 03 00 35 04 06 00 6D 73 42 41 EE B3 D1 5E 08 0E 2E 75 A2 AA [23:36:55]CheckFolder [23:36:55]dirname=/storage/ofd_packets [23:36:55]CheckFolder done [23:36:55]ProducePacketName [23:36:55]name=ofd_packets/00261020 [23:36:55]NVStorageSaveData ofd_packets/00261020 [23:36:55]File name is /storage/ofd_packets/00261020 [23:36:55]Write 302 bytes [23:36:55]NVStorageSaveData done [23:36:55]OFDSenderStorePacket done [23:36:55]KKMCreateOFDPacket done [23:36:55]NVStorageSaveData kkm_last_timestamp [23:36:55]File name is /storage/kkm_last_timestamp [23:36:55]Write 4 bytes [23:36:55]NVStorageSaveData done [23:36:55]ExternCall_PrintAddStr [23:36:55]wPrintStart [23:36:55]Write to MH i2c: 01 00 00 A0 E3 83 [23:36:55]Write i2c OK [23:36:55]MH_I2C_Read... [23:36:55]Read from MH i2c: 01 [23:36:55]MH_I2C_Read... [23:36:55]Read from MH i2c: 01 07 00 [23:36:55]MH_I2C_Read... [23:36:55]Read from MH i2c: 01 07 00 A0 E3 00 00 00 00 00 FF 0F 98 [23:36:55]RasterBufferAndPrint [23:36:55]line Счет N : (1)1036574 [23:36:55]line ИНН: 02508201610067 [23:36:55]line Контрольно-Кассовый Чек [23:36:55]line ПРОДАЖА [23:36:55]line ТРК (МРК, ГНК) : 43 [23:36:55]line Товар: 2710194210 [23:36:55]line ДТ(л)-К-4 [23:36:55]line 26.250 * 76.20 [23:36:55]line = 2000.25 [23:36:55]line НДС 12% НСП 1% [23:36:55]line > о реализуемом товаре [23:36:55]line ИТОГО: 2000.25 [23:36:55]line НСП 1% : 17.70 [23:36:55]line НДС 12% : 212.42 [23:36:55]line Наличными: 0.00 [23:36:55]line Безнал.: 2000.25 [23:36:55]line Место: АЗС № 94 "Партнер Нефть" [23:36:55]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [23:36:55]line СНО: Общий режим [23:36:55]line Чек 578 18.08.2024 23:37 [23:36:55]line Смена: 449 ФФД: 1.0 [23:36:55]line ЗНМ: 0300000099 [23:36:55]line РНМ: 0000000000091865 [23:36:55]line Версия ККМ: 001 [23:36:55]line Платежная система: O! деньги [23:36:55]line ФМ: 0000000000871820 [23:36:55]line ФД: 261020 [23:36:55]line ФПД: 120341800283827 [23:36:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T233701&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261020&fm=120341800283827&tin=02508201610067®Number=0000000000091865&sum=200025 [23:36:55]written 0, free lines is 4095 [23:36:56]OFD Sender: Processing packet 261020 [packets to send 192, broken 191] [23:36:56]ProducePacketName [23:36:56]name=ofd_packets/00261020 [23:36:56]OFD Sender: To server: pG, [23:36:56]CommunicateWithHost lk.salyk.kg:30040 [23:36:56]ConnectInit lk.salyk.kg [23:36:56]Connected sock=7 [23: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 30 10 01 00 00 34 7A 08 01 13 8E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 02 00 00 F4 03 04 00 9D 85 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9C FB 03 00 35 04 06 00 6D 73 42 41 EE B3 D1 5E 08 0E 2E 75 A2 AA [23:36: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 30 4F 00 00 00 A1 E2 47 00 59 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 30 10 04 04 00 9C FB 03 00 F4 03 04 00 F0 2E C2 66 B6 04 01 00 00 8F FC CE A3 24 31 ED FF [23:36:56]CommunicateWithHost err = 0 [23:36:56]CheckOFDResponse [23:36:56]1017 (14) - 77093643461234 [23:36:56]1041 (16) - 0000000000871820 [23:36:56]1040 (4) - 261020 [23:36:56]1012 (4) - 18.08.2024 17:27 [23:36:56]1206 (1) - 0 [23:36:56]OFD Sender: Remove packet 261020 [23:36:56]ProducePacketName [23:36:56]name=ofd_packets/00261020 [23:36:56]NVStorageDeleteData [23:36:56]Write to MH i2c: 01 00 00 CA E3 AD [23:36:56]Write i2c OK [23:36:56]MH_I2C_Read... [23:36:56]Read from MH i2c: 01 [23:36:56]MH_I2C_Read... [23:36:56]Read from MH i2c: 01 07 00 [23:36:56]MH_I2C_Read... [23:36:56]Read from MH i2c: 01 07 00 CA E3 00 00 00 00 00 87 0C 47 [23:36:56]RasterBufferAndPrint [23:36:56]line [23:36:56]line [23:36:56]line [23:36:56]line [23:36:56]line [23:36:56]written 0, free lines is 3212 [23:36:56]MH_Cut [23:36:56]Write to MH i2c: D1 01 00 D1 E3 01 86 [23:36:56]Write i2c OK [23:36:56]MH_I2C_Read... [23:36:56]Read from MH i2c: D1 [23:36:56]MH_I2C_Read... [23:36:56]Read from MH i2c: D1 01 00 [23:36:56]MH_I2C_Read... [23:36:56]Read from MH i2c: D1 01 00 D1 E3 00 85 [23:36:56]Write to MH i2c: 01 00 00 D2 E3 B5 [23:36:56]Write i2c OK [23:36:56]MH_I2C_Read... [23:36:56]OFD Sender: No OFD packet to send [23:36:57]*** Cut start [23:36:57]*** Purtial cut [23:36:57]*** Stage 1: CUTSNS_PIN = 1 [23:36:59]Read from MH i2c: 01 [23:36:59]MH_I2C_Read... [23:36:59]*** Stop cut motor [23:36:59]*** Cut end [23:36:59]Read from MH i2c: 01 07 00 [23:36:59]MH_I2C_Read... [23:36:59]Read from MH i2c: 01 07 00 D2 E3 00 00 00 00 00 FF 0F CA [23:36:59]process_action close_receipt done [23:36:59]requested_data is exist [23:36:59]produce_requested_data [23:36:59]requested_item fm.sn is exist - process it [23:36:59]wFMCommunicate request_size=4 [23:36:59]MH_SAM_APDU [23:36:59]CAPDU: 80 11 00 00 [23:36:59]Write to MH i2c: E2 08 00 D3 E3 80 11 00 00 00 00 00 00 30 [23:36:59]Write i2c OK [23:36:59]MH_I2C_Read... [23:36:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:36:59]Read from MH i2c: E2 [23:36:59]MH_I2C_Read... [23:36:59]Read from MH i2c: E2 17 00 [23:36:59]MH_I2C_Read... [23:36:59]Read from MH i2c: E2 17 00 D3 E3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 7D [23:36:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:36:59]wFMCommunicate OK [23:36:59]requested_item fd.num is exist - process it [23:36:59]SAM_PROTO_GetFieldsCounters [23:36:59]wFMCommunicate request_size=4 [23:36:59]MH_SAM_APDU [23:36:59]CAPDU: 80 13 00 00 [23:36:59]Write to MH i2c: E2 08 00 D4 E3 80 13 00 00 00 00 00 00 33 [23:36:59]Write i2c OK [23:36:59]MH_I2C_Read... [23:36:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:36:59]Read from MH i2c: E2 [23:36:59]MH_I2C_Read... [23:36:59]Read from MH i2c: E2 62 00 [23:36:59]MH_I2C_Read... [23:36:59]Read from MH i2c: E2 62 00 D4 E3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 9C FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 42 02 00 00 5E 04 04 00 42 02 00 00 57 04 04 00 43 02 00 00 19 04 04 00 00 00 00 00 90 00 7A [23:36: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 9C FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 42 02 00 00 5E 04 04 00 42 02 00 00 57 04 04 00 43 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:36:59]wFMCommunicate OK [23:36:59]SAM_PROTO_GetFieldsCounters done [23:36:59]requested_item shift.num is exist - process it [23:36:59]requested_item shift.opened is exist - process it [23:36:59]req_shift_opened [23:36:59]FM_GetShiftState [23:36:59]SAM_PROTO_GetShiftState [23:36:59]wFMCommunicate request_size=4 [23:36:59]MH_SAM_APDU [23:36:59]CAPDU: 80 13 01 00 [23:36:59]Write to MH i2c: E2 08 00 D5 E3 80 13 01 00 00 00 00 00 35 [23:36:59]Write i2c OK [23:36:59]MH_I2C_Read... [23:36:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:36:59]Read from MH i2c: E2 [23:36:59]MH_I2C_Read... [23:36:59]Read from MH i2c: E2 0E 00 [23:36:59]MH_I2C_Read... [23:36:59]Read from MH i2c: E2 0E 00 D5 E3 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 72 [23:36:59]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:36:59]wFMCommunicate OK [23:36:59]SAM_PROTO_GetShiftState done [23:36:59]FM_GetShiftState done [23:36:59]req_shift_opened done [23:36:59]requested_item shift.open_date is exist - process it [23:36:59]req_shift_open_date [23:36:59]req_shift_open_date done [23:36:59]produce_requested_data done [23:36:59]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261020,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [23:36:59]process_action_free close_receipt [23:36:59]json_value_free [23:36:59]json_value_free done [23:36:59]process_json_proto returns [23:36:59]Send response to host [23:36:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261020,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [23:36:59]free response buf [23:36:59]execute_script done [23:36:59]execute_script returns [23:36:59]free content buf [23:36:59]Sock 9.Close socket [23:36:59]Sock 9.Thread stoped [23:37:01]OFD Sender: No OFD packet to send [23:37:06]OFD Sender: No OFD packet to send [23:37:11]OFD Sender: No OFD packet to send [23:37:16]OFD Sender: No OFD packet to send [23:37:21]OFD Sender: No OFD packet to send [23:37:26]OFD Sender: No OFD packet to send [23:37:31]OFD Sender: No OFD packet to send [23:37:36]OFD Sender: No OFD packet to send [23:37:41]OFD Sender: No OFD packet to send [23:37:46]OFD Sender: No OFD packet to send [23:37:51]OFD Sender: No OFD packet to send [23:37:56]OFD Sender: No OFD packet to send [23:38:01]OFD Sender: No OFD packet to send [23:38:06]OFD Sender: No OFD packet to send [23:38:11]OFD Sender: No OFD packet to send [23:38:16]OFD Sender: No OFD packet to send [23:38:21]OFD Sender: No OFD packet to send [23:38:26]OFD Sender: No OFD packet to send [23:38:31]OFD Sender: No OFD packet to send [23:38:36]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:47]OFD Sender: No OFD packet to send [23:39:52]OFD Sender: No OFD packet to send [23:39:57]OFD Sender: No OFD packet to send [23:40:02]OFD Sender: No OFD packet to send [23:40:07]OFD Sender: No OFD packet to send [23:40:12]OFD Sender: No OFD packet to send [23:40:17]OFD Sender: No OFD packet to send [23:40:22]OFD Sender: No OFD packet to send [23:40:27]OFD Sender: No OFD packet to send [23:40:29]accept exits with 10 [23:40:29]New connection [23:40:29]New thread 3066617188 created [23:40:29]Thread 3066473828 joined [23:40:29]Waiting for new connection... [23:40:29] Sock 10.Parse request [23:40:29]Sock 10.Check first char [23:40:29]Sock 10.First char is OK [23:40:29]request: POST /json_proto HTTP/1.0 [23:40:29]Method: POST [23:40:29]URL: /json_proto [23:40:29]Method is POST - this is cgi request [23:40:29]url: /json_proto [23:40:29]query_string will be loaded in cgi processing [23:40:29]execute_cgi json_proto POST (null) [23:40:29]execute_cgi path=json_proto method=POST [23:40:29]POST find Content-Length [23:40:29]Host: 172.17.55.133:8080 [23:40:29]Content-Length: 679 [23:40:29]Content-Type: application/json [23:40:29] [23:40:29]POST finish read [23:40:29]Found Content-Length = 679 [23:40:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.030, "sum" : 680.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:40:29]execute_script... [23:40: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)1036576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.030, "sum" : 680.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:40:29]POST & json_proto [23:40:29]process_json_proto [23:40:29]json parsed OK: [23:40:29]protocol is kg_v1.0 [23:40:29]action value=close_receipt [23:40:29]process_action close_receipt [23:40:29]cmd_close_receipt [23:40:29]MH_GetDate [23:40:29]Write to MH i2c: F0 00 00 D6 E3 A8 [23:40:29]Write i2c OK [23:40:29]MH_I2C_Read... [23:40:29]Read from MH i2c: F0 [23:40:29]MH_I2C_Read... [23:40:29]Read from MH i2c: F0 09 00 [23:40:29]MH_I2C_Read... [23:40:29]Read from MH i2c: F0 09 00 D6 E3 00 74 86 C2 66 34 48 D8 65 8C [23:40:29]GetLastDocTimeStamp 1724024221 [23:40:29]current date 1724024436 [23:40:29]FM_GetShiftState [23:40:29]SAM_PROTO_GetShiftState [23:40:29]wFMCommunicate request_size=4 [23:40:29]MH_SAM_APDU [23:40:29]CAPDU: 80 13 01 00 [23:40:29]Write to MH i2c: E2 08 00 D7 E3 80 13 01 00 00 00 00 00 37 [23:40:29]Write i2c OK [23:40:29]MH_I2C_Read... [23:40:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:40:29]Read from MH i2c: E2 [23:40:29]MH_I2C_Read... [23:40:29]Read from MH i2c: E2 0E 00 [23:40:29]MH_I2C_Read... [23:40:29]Read from MH i2c: E2 0E 00 D7 E3 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 74 [23:40:29]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:40:29]wFMCommunicate OK [23:40:29]SAM_PROTO_GetShiftState done [23:40:29]FM_GetShiftState done [23:40:29]opened in 1723940556 [23:40:29]opened+sec_in_day 1724026956 [23:40:29]quantity*price = 68003 [23:40:29]sum+1 = 68004 [23:40:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 680.00 Внесено: 680.00 СДАЧА: 0.00 НСП 1% : 6.02 НДС 12% : 72.22 Наличными: 680.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 579 18.08.2024 23:40 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261021 ФПД: 171613787449966 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T234036&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261021&fm=171613787449966&tin=02508201610067®Number=0000000000091865&sum=68000 [23:40:30]StoreToDocumentArchive [23:40:30]shift 449 fd 261021 [23:40:30]save to /storage/0449/doc_00261021 [23:40:30]save last doc name /storage/0449/doc_00261021 to /storage/kkm_last_doc_name [23:40:30]save OK [23:40:30]Clear old archive folders... [23:40:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:40:30]tlvbuf is 005C4780 [23:40:30]SAM_PROTO_ClearQueue [23:40:30]wFMCommunicate request_size=4 [23:40:30]MH_SAM_APDU [23:40:30]CAPDU: 80 09 00 00 [23:40:30]Write to MH i2c: E2 08 00 E4 E3 80 09 00 00 00 00 00 00 39 [23:40:30]Write i2c OK [23:40:30]MH_I2C_Read... [23:40:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:40:30]Read from MH i2c: E2 [23:40:30]MH_I2C_Read... [23:40:30]Read from MH i2c: E2 03 00 [23:40:30]MH_I2C_Read... [23:40:30]Read from MH i2c: E2 03 00 E4 E3 00 90 00 3B [23:40:30]RAPDU: 90 00 [23:40:30]wFMCommunicate OK [23:40:30]SAM_PROTO_ClearQueue done [23:40:30]KKMCreateOFDPacket [23:40:30]OFDProtocolAddRootSTLVToBuf [23:40:30]FM_MakeSignedData [23:40:30]FM_MakeSignedData [23:40:30]SAM_PROTO_SignData [23:40:30]wFMCommunicate request_size=4 [23:40:30]MH_SAM_APDU [23:40:30]CAPDU: 80 0D 01 02 [23:40:30]Write to MH i2c: E2 08 00 E5 E3 80 0D 01 02 00 00 00 00 41 [23:40:30]Write i2c OK [23:40:30]MH_I2C_Read... [23:40:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:40:30]Read from MH i2c: E2 [23:40:30]MH_I2C_Read... [23:40:30]Read from MH i2c: E2 03 00 [23:40:30]MH_I2C_Read... [23:40:30]Read from MH i2c: E2 03 00 E5 E3 00 90 00 3C [23:40:30]RAPDU: 90 00 [23:40:30]wFMCommunicate OK [23:40:30]wFMCommunicate request_size=255 [23:40:30]MH_SAM_APDU [23:40:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A3 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 02 00 00 F4 03 04 00 74 86 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9D FB 03 00 35 04 06 00 9C [23:40:30]Write to MH i2c: E2 02 01 E6 E3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A3 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 02 00 00 F4 03 04 00 74 86 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9D FB 03 00 35 04 06 00 9C 00 00 43 [23:40:30]Write i2c OK [23:40:30]MH_I2C_Read... [23:40:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:40:30]Read from MH i2c: E2 [23:40:30]MH_I2C_Read... [23:40:30]Read from MH i2c: E2 03 00 [23:40:30]MH_I2C_Read... [23:40:30]Read from MH i2c: E2 03 00 E6 E3 00 90 00 3D [23:40:30]RAPDU: 90 00 [23:40:30]wFMCommunicate OK [23:40:30]wFMCommunicate request_size=10 [23:40:30]MH_SAM_APDU [23:40:30]CAPDU: 80 0D 02 02 05 14 F2 D6 EA 6E [23:40:30]Write to MH i2c: E2 0D 00 E7 E3 80 0D 02 02 05 00 14 F2 D6 EA 6E 00 00 82 [23:40:30]Write i2c OK [23:40:30]MH_I2C_Read... [23:40:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:40:30]Read from MH i2c: E2 [23:40:30]MH_I2C_Read... [23:40:30]Read from MH i2c: E2 03 00 [23:40:30]MH_I2C_Read... [23:40:30]Read from MH i2c: E2 03 00 E7 E3 00 90 00 3E [23:40:30]RAPDU: 90 00 [23:40:30]wFMCommunicate OK [23:40:30]wFMCommunicate request_size=4 [23:40:30]MH_SAM_APDU [23:40:30]CAPDU: 80 0D 03 02 [23:40:30]Write to MH i2c: E2 08 00 E8 E3 80 0D 03 02 00 00 00 00 46 [23:40:30]Write i2c OK [23:40:30]MH_I2C_Read... [23:40:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:40:30]Read from MH i2c: E2 [23:40:30]MH_I2C_Read... [23:40:30]Read from MH i2c: E2 0B 00 [23:40:30]MH_I2C_Read... [23:40:30]Read from MH i2c: E2 0B 00 E8 E3 00 E3 55 D8 C1 5E 08 20 72 90 00 10 [23:40:30]RAPDU: E3 55 D8 C1 5E 08 20 72 90 00 [23:40:30]wFMCommunicate OK [23:40:30]SAM_PROTO_SignData done [23:40:30]FM_MakeSignedData done [23:40:30]CreateOFDProtocolMessage [23:40:30]wFMCommunicate request_size=4 [23:40:30]MH_SAM_APDU [23:40:30]CAPDU: 80 11 00 00 [23:40:30]Write to MH i2c: E2 08 00 E9 E3 80 11 00 00 00 00 00 00 46 [23:40:30]Write i2c OK [23:40:30]MH_I2C_Read... [23:40:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:40:30]Read from MH i2c: E2 [23:40:30]MH_I2C_Read... [23:40:30]Read from MH i2c: E2 17 00 [23:40:30]MH_I2C_Read... [23:40:30]Read from MH i2c: E2 17 00 E9 E3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 93 [23:40:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:40:30]wFMCommunicate OK [23:40:30]CreateOFDProtocolMessage done [23:40:30]OFDSenderStorePacket 261021 [23:40:30]StoreOFDPacket docnum=261021 [23:40:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 48 31 07 01 F7 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A3 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 02 00 00 F4 03 04 00 74 86 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9D FB 03 00 35 04 06 00 9C 14 F2 D6 EA 6E E3 55 D8 C1 5E 08 20 72 [23:40:30]CheckFolder [23:40:30]dirname=/storage/ofd_packets [23:40:30]CheckFolder done [23:40:30]ProducePacketName [23:40:30]name=ofd_packets/00261021 [23:40:30]NVStorageSaveData ofd_packets/00261021 [23:40:30]File name is /storage/ofd_packets/00261021 [23:40:30]Write 301 bytes [23:40:30]NVStorageSaveData done [23:40:30]OFDSenderStorePacket done [23:40:30]KKMCreateOFDPacket done [23:40:30]NVStorageSaveData kkm_last_timestamp [23:40:30]File name is /storage/kkm_last_timestamp [23:40:30]Write 4 bytes [23:40:30]NVStorageSaveData done [23:40:30]ExternCall_PrintAddStr [23:40:30]wPrintStart [23:40:30]Write to MH i2c: 01 00 00 EA E3 CD [23:40:30]Write i2c OK [23:40:30]MH_I2C_Read... [23:40:30]Read from MH i2c: 01 [23:40:30]MH_I2C_Read... [23:40:30]Read from MH i2c: 01 07 00 [23:40:30]MH_I2C_Read... [23:40:30]Read from MH i2c: 01 07 00 EA E3 00 00 00 00 00 FF 0F E2 [23:40:30]RasterBufferAndPrint [23:40:30]line Счет N : (1)1036576 [23:40:30]line ИНН: 02508201610067 [23:40:30]line Контрольно-Кассовый Чек [23:40:30]line ПРОДАЖА [23:40:30]line ТРК (МРК, ГНК) : 32 [23:40:30]line Товар: 2710124130 [23:40:30]line Аи-92-К-5 [23:40:30]line 10.030 * 67.80 [23:40:30]line = 680.03 [23:40:30]line НДС 12% НСП 1% [23:40:30]line > о реализуемом товаре [23:40:30]line ОКРУГЛЕНИЕ: -0.03 [23:40:30]line ИТОГО: 680.00 [23:40:30]line Внесено: 680.00 [23:40:30]line СДАЧА: 0.00 [23:40:30]line НСП 1% : 6.02 [23:40:30]line НДС 12% : 72.22 [23:40:30]line Наличными: 680.00 [23:40:30]line Безнал.: 0.00 [23:40:30]line Место: АЗС № 94 "Партнер Нефть" [23:40:30]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [23:40:30]line СНО: Общий режим [23:40:30]line Чек 579 18.08.2024 23:40 [23:40:30]line Смена: 449 ФФД: 1.0 [23:40:30]line ЗНМ: 0300000099 [23:40:30]line РНМ: 0000000000091865 [23:40:30]line Версия ККМ: 001 [23:40:30]line ФМ: 0000000000871820 [23:40:30]line ФД: 261021 [23:40:30]line ФПД: 171613787449966 [23:40:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T234036&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261021&fm=171613787449966&tin=02508201610067®Number=0000000000091865&sum=68000 [23:40:31]OFD Sender: Processing packet 261021 [packets to send 192, broken 191] [23:40:31]ProducePacketName [23:40:31]name=ofd_packets/00261021 [23:40:31]OFD Sender: To server: pG, [23:40:31]CommunicateWithHost lk.salyk.kg:30040 [23:40:31]ConnectInit lk.salyk.kg [23:40:31]written 0, free lines is 4095 [23:40:31]Connected sock=9 [23:40: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 30 0F 01 00 00 48 31 07 01 F7 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A3 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 02 00 00 F4 03 04 00 74 86 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9D FB 03 00 35 04 06 00 9C 14 F2 D6 EA 6E E3 55 D8 C1 5E 08 20 72 [23:40: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 30 4F 00 00 00 10 2D 47 00 31 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 30 10 04 04 00 9D FB 03 00 F4 03 04 00 C8 2F C2 66 B6 04 01 00 00 A1 53 FC A1 87 7B 5C 10 [23:40:31]CommunicateWithHost err = 0 [23:40:31]CheckOFDResponse [23:40:31]1017 (14) - 77093643461234 [23:40:31]1041 (16) - 0000000000871820 [23:40:31]1040 (4) - 261021 [23:40:31]1012 (4) - 18.08.2024 17:30 [23:40:31]1206 (1) - 0 [23:40:31]OFD Sender: Remove packet 261021 [23:40:31]ProducePacketName [23:40:31]name=ofd_packets/00261021 [23:40:31]NVStorageDeleteData [23:40:31]Write to MH i2c: 01 00 00 15 E4 F9 [23:40:31]Write i2c OK [23:40:31]MH_I2C_Read... [23:40:31]Read from MH i2c: 01 [23:40:31]MH_I2C_Read... [23:40:31]Read from MH i2c: 01 07 00 [23:40:31]MH_I2C_Read... [23:40:31]Read from MH i2c: 01 07 00 15 E4 00 00 00 00 00 6A 0C 76 [23:40:31]RasterBufferAndPrint [23:40:31]line [23:40:31]line [23:40:31]line [23:40:31]line [23:40:31]line [23:40:31]written 0, free lines is 3181 [23:40:31]MH_Cut [23:40:31]Write to MH i2c: D1 01 00 1C E4 01 D2 [23:40:31]Write i2c OK [23:40:31]MH_I2C_Read... [23:40:31]Read from MH i2c: D1 [23:40:31]MH_I2C_Read... [23:40:31]Read from MH i2c: D1 01 00 [23:40:31]MH_I2C_Read... [23:40:31]Read from MH i2c: D1 01 00 1C E4 00 D1 [23:40:31]Write to MH i2c: 01 00 00 1D E4 01 [23:40:31]Write i2c OK [23:40:31]MH_I2C_Read... [23:40:31]OFD Sender: No OFD packet to send [23:40:32]*** Cut start [23:40:32]*** Purtial cut [23:40:32]*** Stage 1: CUTSNS_PIN = 1 [23:40:34]Read from MH i2c: 01 [23:40:34]MH_I2C_Read... [23:40:34]*** Stop cut motor [23:40:34]*** Cut end [23:40:34]Read from MH i2c: 01 07 00 [23:40:34]MH_I2C_Read... [23:40:34]Read from MH i2c: 01 07 00 1D E4 00 00 00 00 00 FF 0F 16 [23:40:34]process_action close_receipt done [23:40:34]requested_data is exist [23:40:34]produce_requested_data [23:40:34]requested_item fm.sn is exist - process it [23:40:34]wFMCommunicate request_size=4 [23:40:34]MH_SAM_APDU [23:40:34]CAPDU: 80 11 00 00 [23:40:34]Write to MH i2c: E2 08 00 1E E4 80 11 00 00 00 00 00 00 7C [23:40:34]Write i2c OK [23:40:34]MH_I2C_Read... [23:40:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:40:34]Read from MH i2c: E2 [23:40:34]MH_I2C_Read... [23:40:34]Read from MH i2c: E2 17 00 [23:40:34]MH_I2C_Read... [23:40:34]Read from MH i2c: E2 17 00 1E E4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C9 [23:40:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:40:34]wFMCommunicate OK [23:40:34]requested_item fd.num is exist - process it [23:40:34]SAM_PROTO_GetFieldsCounters [23:40:34]wFMCommunicate request_size=4 [23:40:34]MH_SAM_APDU [23:40:34]CAPDU: 80 13 00 00 [23:40:34]Write to MH i2c: E2 08 00 1F E4 80 13 00 00 00 00 00 00 7F [23:40:34]Write i2c OK [23:40:34]MH_I2C_Read... [23:40:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:40:34]Read from MH i2c: E2 [23:40:34]MH_I2C_Read... [23:40:34]Read from MH i2c: E2 62 00 [23:40:34]MH_I2C_Read... [23:40:34]Read from MH i2c: E2 62 00 1F E4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 9D FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 43 02 00 00 5E 04 04 00 43 02 00 00 57 04 04 00 44 02 00 00 19 04 04 00 00 00 00 00 90 00 CA [23:40: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 9D FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 43 02 00 00 5E 04 04 00 43 02 00 00 57 04 04 00 44 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:40:34]wFMCommunicate OK [23:40:34]SAM_PROTO_GetFieldsCounters done [23:40:34]requested_item shift.num is exist - process it [23:40:34]requested_item shift.opened is exist - process it [23:40:34]req_shift_opened [23:40:34]FM_GetShiftState [23:40:34]SAM_PROTO_GetShiftState [23:40:34]wFMCommunicate request_size=4 [23:40:34]MH_SAM_APDU [23:40:34]CAPDU: 80 13 01 00 [23:40:34]Write to MH i2c: E2 08 00 20 E4 80 13 01 00 00 00 00 00 81 [23:40:34]Write i2c OK [23:40:34]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 20 E4 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 BE [23:40:35]RAPDU: 09 00 01 CC 3E C1 66 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]req_shift_opened done [23:40:35]requested_item shift.open_date is exist - process it [23:40:35]req_shift_open_date [23:40:35]req_shift_open_date done [23:40:35]produce_requested_data done [23:40:35]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261021,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [23:40:35]process_action_free close_receipt [23:40:35]json_value_free [23:40:35]json_value_free done [23:40:35]process_json_proto returns [23:40:35]Send response to host [23:40:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261021,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [23:40:35]free response buf [23:40:35]execute_script done [23:40:35]execute_script returns [23:40:35]free content buf [23:40:35]Sock 10.Close socket [23:40:35]Sock 10.Thread stoped [23:40:36]OFD Sender: No OFD packet to send [23:40:41]OFD Sender: No OFD packet to send [23:40:46]OFD Sender: No OFD packet to send [23:40:51]OFD Sender: No OFD packet to send [23:40:56]OFD Sender: No OFD packet to send [23:41:01]OFD Sender: No OFD packet to send [23:41:06]OFD Sender: No OFD packet to send [23:41:11]OFD Sender: No OFD packet to send [23:41:16]OFD Sender: No OFD packet to send [23:41:21]OFD Sender: No OFD packet to send [23:41:26]OFD Sender: No OFD packet to send [23:41:31]OFD Sender: No OFD packet to send [23:41:37]OFD Sender: No OFD packet to send [23:41:42]OFD Sender: No OFD packet to send [23:41:47]OFD Sender: No OFD packet to send [23:41:52]OFD Sender: No OFD packet to send [23:41:57]OFD Sender: No OFD packet to send [23:42:02]OFD Sender: No OFD packet to send [23:42:07]OFD Sender: No OFD packet to send [23:42:12]OFD Sender: No OFD packet to send [23:42:17]OFD Sender: No OFD packet to send [23:42:22]OFD Sender: No OFD packet to send [23:42:27]OFD Sender: No OFD packet to send [23:42:32]OFD Sender: No OFD packet to send [23:42:37]OFD Sender: No OFD packet to send [23:42:39]accept exits with 7 [23:42:39]New connection [23:42:39]New thread 3066473828 created [23:42:39]Thread 3066617188 joined [23:42:39]Waiting for new connection... [23:42:39] Sock 7.Parse request [23:42:39]Sock 7.Check first char [23:42:39]Sock 7.First char is OK [23:42:39]request: POST /json_proto HTTP/1.0 [23:42:39]Method: POST [23:42:39]URL: /json_proto [23:42:39]Method is POST - this is cgi request [23:42:39]url: /json_proto [23:42:39]query_string will be loaded in cgi processing [23:42:39]execute_cgi json_proto POST (null) [23:42:39]execute_cgi path=json_proto method=POST [23:42:39]POST find Content-Length [23:42:39]Host: 172.17.55.133:8080 [23:42:39]Content-Length: 678 [23:42:39]Content-Type: application/json [23:42:39] [23:42:39]POST finish read [23:42:39]Found Content-Length = 678 [23:42:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:42:39]execute_script... [23:42: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)1036577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:42:39]POST & json_proto [23:42:39]process_json_proto [23:42:39]json parsed OK: [23:42:39]protocol is kg_v1.0 [23:42:39]action value=close_receipt [23:42:39]process_action close_receipt [23:42:39]cmd_close_receipt [23:42:39]MH_GetDate [23:42:39]Write to MH i2c: F0 00 00 21 E4 F4 [23:42:39]Write i2c OK [23:42:39]MH_I2C_Read... [23:42:39]Read from MH i2c: F0 [23:42:39]MH_I2C_Read... [23:42:39]Read from MH i2c: F0 09 00 [23:42:39]MH_I2C_Read... [23:42:39]Read from MH i2c: F0 09 00 21 E4 00 F7 86 C2 66 34 48 D8 65 5B [23:42:39]GetLastDocTimeStamp 1724024436 [23:42:39]current date 1724024567 [23:42:39]FM_GetShiftState [23:42:39]SAM_PROTO_GetShiftState [23:42:39]wFMCommunicate request_size=4 [23:42:39]MH_SAM_APDU [23:42:39]CAPDU: 80 13 01 00 [23:42:39]Write to MH i2c: E2 08 00 22 E4 80 13 01 00 00 00 00 00 83 [23:42:39]Write i2c OK [23:42:39]MH_I2C_Read... [23:42:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:42:39]Read from MH i2c: E2 [23:42:39]MH_I2C_Read... [23:42:39]Read from MH i2c: E2 0E 00 [23:42:39]MH_I2C_Read... [23:42:39]Read from MH i2c: E2 0E 00 22 E4 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 C0 [23:42:39]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:42:39]wFMCommunicate OK [23:42:39]SAM_PROTO_GetShiftState done [23:42:39]FM_GetShiftState done [23:42:39]opened in 1723940556 [23:42:39]opened+sec_in_day 1724026956 [23:42:39]quantity*price = 30035 [23:42:39]sum+1 = 30036 [23:42:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 580 18.08.2024 23:42 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261022 ФПД: 170558105294921 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T234247&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261022&fm=170558105294921&tin=02508201610067®Number=0000000000091865&sum=30000 [23:42:40]StoreToDocumentArchive [23:42:40]shift 449 fd 261022 [23:42:40]save to /storage/0449/doc_00261022 [23:42:40]save last doc name /storage/0449/doc_00261022 to /storage/kkm_last_doc_name [23:42:40]save OK [23:42:40]Clear old archive folders... [23:42:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:42:40]tlvbuf is 003BB580 [23:42:40]SAM_PROTO_ClearQueue [23:42:40]wFMCommunicate request_size=4 [23:42:40]MH_SAM_APDU [23:42:40]CAPDU: 80 09 00 00 [23:42:40]Write to MH i2c: E2 08 00 2F E4 80 09 00 00 00 00 00 00 85 [23:42:40]Write i2c OK [23:42:40]MH_I2C_Read... [23:42:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:42:40]Read from MH i2c: E2 [23:42:40]MH_I2C_Read... [23:42:40]Read from MH i2c: E2 03 00 [23:42:40]MH_I2C_Read... [23:42:40]Read from MH i2c: E2 03 00 2F E4 00 90 00 87 [23:42:40]RAPDU: 90 00 [23:42:40]wFMCommunicate OK [23:42:40]SAM_PROTO_ClearQueue done [23:42:40]KKMCreateOFDPacket [23:42:40]OFDProtocolAddRootSTLVToBuf [23:42:40]FM_MakeSignedData [23:42:40]FM_MakeSignedData [23:42:40]SAM_PROTO_SignData [23:42:40]wFMCommunicate request_size=4 [23:42:40]MH_SAM_APDU [23:42:40]CAPDU: 80 0D 01 02 [23:42:40]Write to MH i2c: E2 08 00 30 E4 80 0D 01 02 00 00 00 00 8D [23:42:40]Write i2c OK [23:42:40]MH_I2C_Read... [23:42:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:42:41]Read from MH i2c: E2 [23:42:41]MH_I2C_Read... [23:42:41]Read from MH i2c: E2 03 00 [23:42:41]MH_I2C_Read... [23:42:41]Read from MH i2c: E2 03 00 30 E4 00 90 00 88 [23:42:41]RAPDU: 90 00 [23:42:41]wFMCommunicate OK [23:42:41]wFMCommunicate request_size=255 [23:42:41]MH_SAM_APDU [23:42:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 02 00 00 F4 03 04 00 F7 86 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9E FB 03 00 35 04 06 00 9B [23:42:41]Write to MH i2c: E2 02 01 31 E4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 02 00 00 F4 03 04 00 F7 86 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9E FB 03 00 35 04 06 00 9B 00 00 0D [23:42:41]Write i2c OK [23:42:41]MH_I2C_Read... [23:42:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:42:41]Read from MH i2c: E2 [23:42:41]MH_I2C_Read... [23:42:41]Read from MH i2c: E2 03 00 [23:42:41]MH_I2C_Read... [23:42:41]Read from MH i2c: E2 03 00 31 E4 00 90 00 89 [23:42:41]RAPDU: 90 00 [23:42:41]wFMCommunicate OK [23:42:41]wFMCommunicate request_size=10 [23:42:41]MH_SAM_APDU [23:42:41]CAPDU: 80 0D 02 02 05 1F 27 47 98 49 [23:42:41]Write to MH i2c: E2 0D 00 32 E4 80 0D 02 02 05 00 1F 27 47 98 49 00 00 08 [23:42:41]Write i2c OK [23:42:41]MH_I2C_Read... [23:42:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:42:41]Read from MH i2c: E2 [23:42:41]MH_I2C_Read... [23:42:41]Read from MH i2c: E2 03 00 [23:42:41]MH_I2C_Read... [23:42:41]Read from MH i2c: E2 03 00 32 E4 00 90 00 8A [23:42:41]RAPDU: 90 00 [23:42:41]wFMCommunicate OK [23:42:41]wFMCommunicate request_size=4 [23:42:41]MH_SAM_APDU [23:42:41]CAPDU: 80 0D 03 02 [23:42:41]Write to MH i2c: E2 08 00 33 E4 80 0D 03 02 00 00 00 00 92 [23:42:41]Write i2c OK [23:42:41]MH_I2C_Read... [23:42:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:42:41]Read from MH i2c: E2 [23:42:41]MH_I2C_Read... [23:42:41]Read from MH i2c: E2 0B 00 [23:42:41]MH_I2C_Read... [23:42:41]Read from MH i2c: E2 0B 00 33 E4 00 B7 6C 7E 28 FC A7 B9 D7 90 00 8F [23:42:41]RAPDU: B7 6C 7E 28 FC A7 B9 D7 90 00 [23:42:41]wFMCommunicate OK [23:42:41]SAM_PROTO_SignData done [23:42:41]FM_MakeSignedData done [23:42:41]CreateOFDProtocolMessage [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 34 E4 80 11 00 00 00 00 00 00 92 [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 34 E4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 DF [23:42:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:42:41]wFMCommunicate OK [23:42:41]CreateOFDProtocolMessage done [23:42:41]OFDSenderStorePacket 261022 [23:42:41]StoreOFDPacket docnum=261022 [23:42:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 42 F4 07 01 E6 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 02 00 00 F4 03 04 00 F7 86 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9E FB 03 00 35 04 06 00 9B 1F 27 47 98 49 B7 6C 7E 28 FC A7 B9 D7 [23:42:41]CheckFolder [23:42:41]dirname=/storage/ofd_packets [23:42:41]CheckFolder done [23:42:41]ProducePacketName [23:42:41]name=ofd_packets/00261022 [23:42:41]NVStorageSaveData ofd_packets/00261022 [23:42:41]File name is /storage/ofd_packets/00261022 [23:42:41]Write 301 bytes [23:42:41]NVStorageSaveData done [23:42:41]OFDSenderStorePacket done [23:42:41]KKMCreateOFDPacket done [23:42:41]NVStorageSaveData kkm_last_timestamp [23:42:41]File name is /storage/kkm_last_timestamp [23:42:41]Write 4 bytes [23:42:41]NVStorageSaveData done [23:42:41]ExternCall_PrintAddStr [23:42:41]wPrintStart [23:42:41]Write to MH i2c: 01 00 00 35 E4 19 [23:42:41]Write i2c OK [23:42:41]MH_I2C_Read... [23:42:41]Read from MH i2c: 01 [23:42:41]MH_I2C_Read... [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 35 E4 00 00 00 00 00 FF 0F 2E [23:42:41]RasterBufferAndPrint [23:42:41]line Счет N : (1)1036577 [23:42:41]line ИНН: 02508201610067 [23:42:41]line Контрольно-Кассовый Чек [23:42:41]line ПРОДАЖА [23:42:41]line ТРК (МРК, ГНК) : 12 [23:42:41]line Товар: 2710124130 [23:42:41]line Аи-92-К-5 [23:42:41]line 4.430 * 67.80 [23:42:41]line = 300.35 [23:42:41]line НДС 12% НСП 1% [23:42:41]line > о реализуемом товаре [23:42:41]line ОКРУГЛЕНИЕ: -0.35 [23:42:41]line ИТОГО: 300.00 [23:42:41]line Внесено: 300.00 [23:42:41]line СДАЧА: 0.00 [23:42:41]line НСП 1% : 2.66 [23:42:41]line НДС 12% : 31.90 [23:42:41]line Наличными: 300.00 [23:42:41]line Безнал.: 0.00 [23:42:41]line Место: АЗС № 94 "Партнер Нефть" [23:42:41]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [23:42:41]line СНО: Общий режим [23:42:41]line Чек 580 18.08.2024 23:42 [23:42:41]line Смена: 449 ФФД: 1.0 [23:42:41]line ЗНМ: 0300000099 [23:42:41]line РНМ: 0000000000091865 [23:42:41]line Версия ККМ: 001 [23:42:41]line ФМ: 0000000000871820 [23:42:41]line ФД: 261022 [23:42:41]line ФПД: 170558105294921 [23:42:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T234247&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261022&fm=170558105294921&tin=02508201610067®Number=0000000000091865&sum=30000 [23:42:41]written 0, free lines is 4095 [23:42:41]OFD Sender: Processing packet 261022 [packets to send 192, broken 191] [23:42:41]ProducePacketName [23:42:41]name=ofd_packets/00261022 [23:42:41]OFD Sender: To server: pG, [23:42:41]CommunicateWithHost lk.salyk.kg:30040 [23:42:41]ConnectInit lk.salyk.kg [23:42:41]Connected sock=10 [23:42: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 30 0F 01 00 00 42 F4 07 01 E6 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 02 00 00 F4 03 04 00 F7 86 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9E FB 03 00 35 04 06 00 9B 1F 27 47 98 49 B7 6C 7E 28 FC A7 B9 D7 [23:42: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 30 4F 00 00 00 EA 99 47 00 AB 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9E FB 03 00 F4 03 04 00 4A 30 C2 66 B6 04 01 00 00 48 20 4B A7 8E 1B 7C A0 [23:42:41]CommunicateWithHost err = 0 [23:42:41]CheckOFDResponse [23:42:41]1017 (14) - 77093643461234 [23:42:41]1041 (16) - 0000000000871820 [23:42:41]1040 (4) - 261022 [23:42:41]1012 (4) - 18.08.2024 17:32 [23:42:41]1206 (1) - 0 [23:42:41]OFD Sender: Remove packet 261022 [23:42:41]ProducePacketName [23:42:41]name=ofd_packets/00261022 [23:42:41]NVStorageDeleteData [23:42:41]Write to MH i2c: 01 00 00 60 E4 44 [23:42:41]Write i2c OK [23:42:41]MH_I2C_Read... [23:42:41]Read from MH i2c: 01 [23:42:41]MH_I2C_Read... [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 60 E4 00 00 00 00 00 74 0C CB [23:42:41]RasterBufferAndPrint [23:42:41]line [23:42:41]line [23:42:41]line [23:42:41]line [23:42:41]line [23:42:41]written 0, free lines is 3190 [23:42:41]MH_Cut [23:42:41]Write to MH i2c: D1 01 00 67 E4 01 1D [23:42:41]Write i2c OK [23:42:41]MH_I2C_Read... [23:42:41]Read from MH i2c: D1 [23:42:41]MH_I2C_Read... [23:42:41]Read from MH i2c: D1 01 00 [23:42:41]MH_I2C_Read... [23:42:41]Read from MH i2c: D1 01 00 67 E4 00 1C [23:42:41]Write to MH i2c: 01 00 00 68 E4 4C [23:42:41]Write i2c OK [23:42:41]MH_I2C_Read... [23:42:42]OFD Sender: No OFD packet to send [23:42:43]*** Cut start [23:42:43]*** Purtial cut [23:42:43]*** Stage 1: CUTSNS_PIN = 1 [23:42:45]Read from MH i2c: 01 [23:42:45]MH_I2C_Read... [23:42:45]*** Stop cut motor [23:42:45]*** Cut end [23:42:45]Read from MH i2c: 01 07 00 [23:42:45]MH_I2C_Read... [23:42:45]Read from MH i2c: 01 07 00 68 E4 00 00 00 00 00 FF 0F 61 [23:42:45]process_action close_receipt done [23:42:45]requested_data is exist [23:42:45]produce_requested_data [23:42:45]requested_item fm.sn is exist - process it [23:42:45]wFMCommunicate request_size=4 [23:42:45]MH_SAM_APDU [23:42:45]CAPDU: 80 11 00 00 [23:42:45]Write to MH i2c: E2 08 00 69 E4 80 11 00 00 00 00 00 00 C7 [23:42:45]Write i2c OK [23:42:45]MH_I2C_Read... [23:42:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:42:45]Read from MH i2c: E2 [23:42:45]MH_I2C_Read... [23:42:45]Read from MH i2c: E2 17 00 [23:42:45]MH_I2C_Read... [23:42:45]Read from MH i2c: E2 17 00 69 E4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 14 [23:42:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:42:45]wFMCommunicate OK [23:42:45]requested_item fd.num is exist - process it [23:42:45]SAM_PROTO_GetFieldsCounters [23:42:45]wFMCommunicate request_size=4 [23:42:45]MH_SAM_APDU [23:42:45]CAPDU: 80 13 00 00 [23:42:45]Write to MH i2c: E2 08 00 6A E4 80 13 00 00 00 00 00 00 CA [23:42:45]Write i2c OK [23:42:45]MH_I2C_Read... [23:42:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:42:45]Read from MH i2c: E2 [23:42:45]MH_I2C_Read... [23:42:45]Read from MH i2c: E2 62 00 [23:42:45]MH_I2C_Read... [23:42:45]Read from MH i2c: E2 62 00 6A E4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 9E FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 44 02 00 00 5E 04 04 00 44 02 00 00 57 04 04 00 45 02 00 00 19 04 04 00 00 00 00 00 90 00 19 [23: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 9E FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 44 02 00 00 5E 04 04 00 44 02 00 00 57 04 04 00 45 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:42:45]wFMCommunicate OK [23:42:45]SAM_PROTO_GetFieldsCounters done [23:42:45]requested_item shift.num is exist - process it [23:42:45]requested_item shift.opened is exist - process it [23:42:45]req_shift_opened [23:42:45]FM_GetShiftState [23:42:45]SAM_PROTO_GetShiftState [23:42:45]wFMCommunicate request_size=4 [23:42:45]MH_SAM_APDU [23:42:45]CAPDU: 80 13 01 00 [23:42:45]Write to MH i2c: E2 08 00 6B E4 80 13 01 00 00 00 00 00 CC [23:42:45]Write i2c OK [23:42:45]MH_I2C_Read... [23:42:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:42:45]Read from MH i2c: E2 [23:42:45]MH_I2C_Read... [23:42:45]Read from MH i2c: E2 0E 00 [23:42:45]MH_I2C_Read... [23:42:45]Read from MH i2c: E2 0E 00 6B E4 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 09 [23:42:45]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:42:45]wFMCommunicate OK [23:42:45]SAM_PROTO_GetShiftState done [23:42:45]FM_GetShiftState done [23:42:45]req_shift_opened done [23:42:45]requested_item shift.open_date is exist - process it [23:42:45]req_shift_open_date [23:42:45]req_shift_open_date done [23:42:45]produce_requested_data done [23:42:45]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261022,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [23:42:45]process_action_free close_receipt [23:42:45]json_value_free [23:42:45]json_value_free done [23:42:45]process_json_proto returns [23:42:45]Send response to host [23:42:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261022,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [23:42:45]free response buf [23:42:45]execute_script done [23:42:45]execute_script returns [23:42:45]free content buf [23:42:45]Sock 7.Close socket [23:42:45]Sock 7.Thread stoped [23:42:47]OFD Sender: No OFD packet to send [23:42:52]OFD Sender: No OFD packet to send [23:42:57]OFD Sender: No OFD packet to send [23:43:01]accept exits with 9 [23:43:01]New connection [23:43:01]New thread 3066617188 created [23:43:01]Thread 3066473828 joined [23:43:01]Waiting for new connection... [23:43:01] Sock 9.Parse request [23:43:01]Sock 9.Check first char [23:43:01]Sock 9.First char is OK [23:43:01]request: POST /json_proto HTTP/1.0 [23:43:01]Method: POST [23:43:01]URL: /json_proto [23:43:01]Method is POST - this is cgi request [23:43:01]url: /json_proto [23:43:01]query_string will be loaded in cgi processing [23:43:01]execute_cgi json_proto POST (null) [23:43:01]execute_cgi path=json_proto method=POST [23:43:01]POST find Content-Length [23:43:01]Host: 172.17.55.133:8080 [23:43:01]Content-Length: 688 [23:43:01]Content-Type: application/json [23:43:01] [23:43:01]POST finish read [23:43:01]Found Content-Length = 688 [23:43:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036578", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:43:01]execute_script... [23:43: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)1036578", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:43:01]POST & json_proto [23:43:01]process_json_proto [23:43:01]json parsed OK: [23:43:01]protocol is kg_v1.0 [23:43:01]action value=close_receipt [23:43:01]process_action close_receipt [23:43:01]cmd_close_receipt [23:43:01]MH_GetDate [23:43:01]Write to MH i2c: F0 00 00 6C E4 3F [23:43:01]Write i2c OK [23:43:01]MH_I2C_Read... [23:43:01]Read from MH i2c: F0 [23:43:01]MH_I2C_Read... [23:43:01]Read from MH i2c: F0 09 00 [23:43:01]MH_I2C_Read... [23:43:01]Read from MH i2c: F0 09 00 6C E4 00 0D 87 C2 66 34 48 D8 65 BD [23:43:01]GetLastDocTimeStamp 1724024567 [23:43:01]current date 1724024589 [23:43:01]FM_GetShiftState [23:43:01]SAM_PROTO_GetShiftState [23:43:01]wFMCommunicate request_size=4 [23:43:01]MH_SAM_APDU [23:43:01]CAPDU: 80 13 01 00 [23:43:01]Write to MH i2c: E2 08 00 6D E4 80 13 01 00 00 00 00 00 CE [23:43:01]Write i2c OK [23:43:01]MH_I2C_Read... [23:43:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:43:01]Read from MH i2c: E2 [23:43:01]MH_I2C_Read... [23:43:01]Read from MH i2c: E2 0E 00 [23:43:01]MH_I2C_Read... [23:43:01]Read from MH i2c: E2 0E 00 6D E4 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 0B [23:43:01]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:43:01]wFMCommunicate OK [23:43:01]SAM_PROTO_GetShiftState done [23:43:01]FM_GetShiftState done [23:43:01]opened in 1723940556 [23:43:01]opened+sec_in_day 1724026956 [23:43:01]quantity*price = 100050 [23:43:01]sum+1 = 100052 [23:43:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 581 18.08.2024 23:43 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261023 ФПД: 274841403031176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T234309&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261023&fm=274841403031176&tin=02508201610067®Number=0000000000091865&sum=100000 [23:43:02]StoreToDocumentArchive [23:43:02]shift 449 fd 261023 [23:43:02]save to /storage/0449/doc_00261023 [23:43:02]save last doc name /storage/0449/doc_00261023 to /storage/kkm_last_doc_name [23:43:02]save OK [23:43:02]Clear old archive folders... [23:43:02]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:43:02]tlvbuf is 0036F010 [23:43:02]SAM_PROTO_ClearQueue [23:43:02]wFMCommunicate request_size=4 [23:43:02]MH_SAM_APDU [23:43:02]CAPDU: 80 09 00 00 [23:43:02]Write to MH i2c: E2 08 00 7A E4 80 09 00 00 00 00 00 00 D0 [23:43:02]Write i2c OK [23:43:02]MH_I2C_Read... [23:43:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:43:02]Read from MH i2c: E2 [23:43:02]MH_I2C_Read... [23:43:02]Read from MH i2c: E2 03 00 [23:43:02]MH_I2C_Read... [23:43:02]Read from MH i2c: E2 03 00 7A E4 00 90 00 D2 [23:43:02]RAPDU: 90 00 [23:43:02]wFMCommunicate OK [23:43:02]SAM_PROTO_ClearQueue done [23:43:02]KKMCreateOFDPacket [23:43:02]OFDProtocolAddRootSTLVToBuf [23:43:02]FM_MakeSignedData [23:43:02]FM_MakeSignedData [23:43:02]SAM_PROTO_SignData [23:43:02]wFMCommunicate request_size=4 [23:43:02]MH_SAM_APDU [23:43:02]CAPDU: 80 0D 01 02 [23:43:02]Write to MH i2c: E2 08 00 7B E4 80 0D 01 02 00 00 00 00 D8 [23:43:02]Write i2c OK [23:43:02]MH_I2C_Read... [23:43:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:43:02]Read from MH i2c: E2 [23:43:02]MH_I2C_Read... [23:43:02]Read from MH i2c: E2 03 00 [23:43:02]MH_I2C_Read... [23:43:02]Read from MH i2c: E2 03 00 7B E4 00 90 00 D3 [23:43:02]RAPDU: 90 00 [23:43:02]wFMCommunicate OK [23:43:02]wFMCommunicate request_size=255 [23:43:02]MH_SAM_APDU [23:43:02]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 02 00 00 F4 03 04 00 0D 87 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9F FB 03 00 35 04 06 00 [23:43:02]Write to MH i2c: E2 02 01 7C E4 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 02 00 00 F4 03 04 00 0D 87 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9F FB 03 00 35 04 06 00 00 00 A4 [23:43:02]Write i2c OK [23:43:02]MH_I2C_Read... [23:43:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:43:03]Read from MH i2c: E2 [23:43:03]MH_I2C_Read... [23:43:03]Read from MH i2c: E2 03 00 [23:43:03]MH_I2C_Read... [23:43:03]Read from MH i2c: E2 03 00 7C E4 00 90 00 D4 [23:43:03]RAPDU: 90 00 [23:43:03]wFMCommunicate OK [23:43:03]wFMCommunicate request_size=11 [23:43:03]MH_SAM_APDU [23:43:03]CAPDU: 80 0D 02 02 06 F9 F7 80 32 7E 88 [23:43:03]Write to MH i2c: E2 0E 00 7D E4 80 0D 02 02 06 00 F9 F7 80 32 7E 88 00 00 8F [23:43:03]Write i2c OK [23:43:03]MH_I2C_Read... [23:43:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:43:03]Read from MH i2c: E2 [23:43:03]MH_I2C_Read... [23:43:03]Read from MH i2c: E2 03 00 [23:43:03]MH_I2C_Read... [23:43:03]Read from MH i2c: E2 03 00 7D E4 00 90 00 D5 [23:43:03]RAPDU: 90 00 [23:43:03]wFMCommunicate OK [23:43:03]wFMCommunicate request_size=4 [23:43:03]MH_SAM_APDU [23:43:03]CAPDU: 80 0D 03 02 [23:43:03]Write to MH i2c: E2 08 00 7E E4 80 0D 03 02 00 00 00 00 DD [23:43:03]Write i2c OK [23:43:03]MH_I2C_Read... [23:43:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:43:03]Read from MH i2c: E2 [23:43:03]MH_I2C_Read... [23:43:03]Read from MH i2c: E2 0B 00 [23:43:03]MH_I2C_Read... [23:43:03]Read from MH i2c: E2 0B 00 7E E4 00 89 87 79 91 58 FE EB F8 90 00 31 [23:43:03]RAPDU: 89 87 79 91 58 FE EB F8 90 00 [23:43:03]wFMCommunicate OK [23:43:03]SAM_PROTO_SignData done [23:43:03]FM_MakeSignedData done [23:43:03]CreateOFDProtocolMessage [23:43:03]wFMCommunicate request_size=4 [23:43:03]MH_SAM_APDU [23:43:03]CAPDU: 80 11 00 00 [23:43:03]Write to MH i2c: E2 08 00 7F E4 80 11 00 00 00 00 00 00 DD [23:43:03]Write i2c OK [23:43:03]MH_I2C_Read... [23:43:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:43:03]Read from MH i2c: E2 [23:43:03]MH_I2C_Read... [23:43:03]Read from MH i2c: E2 17 00 [23:43:03]MH_I2C_Read... [23:43:03]Read from MH i2c: E2 17 00 7F E4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 2A [23:43:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:43:03]wFMCommunicate OK [23:43:03]CreateOFDProtocolMessage done [23:43:03]OFDSenderStorePacket 261023 [23:43:03]StoreOFDPacket docnum=261023 [23:43:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 EF 6D 08 01 FA 56 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 02 00 00 F4 03 04 00 0D 87 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9F FB 03 00 35 04 06 00 F9 F7 80 32 7E 88 89 87 79 91 58 FE EB F8 [23:43:03]CheckFolder [23:43:03]dirname=/storage/ofd_packets [23:43:03]CheckFolder done [23:43:03]ProducePacketName [23:43:03]name=ofd_packets/00261023 [23:43:03]NVStorageSaveData ofd_packets/00261023 [23:43:03]File name is /storage/ofd_packets/00261023 [23:43:03]Write 302 bytes [23:43:03]NVStorageSaveData done [23:43:03]OFDSenderStorePacket done [23:43:03]KKMCreateOFDPacket done [23:43:03]NVStorageSaveData kkm_last_timestamp [23:43:03]File name is /storage/kkm_last_timestamp [23:43:03]Write 4 bytes [23:43:03]NVStorageSaveData done [23:43:03]ExternCall_PrintAddStr [23:43:03]wPrintStart [23:43:03]Write to MH i2c: 01 00 00 80 E4 64 [23:43:03]Write i2c OK [23:43:03]MH_I2C_Read... [23:43:03]Read from MH i2c: 01 [23:43:03]MH_I2C_Read... [23:43:03]Read from MH i2c: 01 07 00 [23:43:03]MH_I2C_Read... [23:43:03]Read from MH i2c: 01 07 00 80 E4 00 00 00 00 00 FF 0F 79 [23:43:03]RasterBufferAndPrint [23:43:03]line Счет N : (1)1036578 [23:43:03]line ИНН: 02508201610067 [23:43:03]line Контрольно-Кассовый Чек [23:43:03]line ПРОДАЖА [23:43:03]line ТРК (МРК, ГНК) : 43 [23:43:03]line Товар: 2710194210 [23:43:03]line ДТ(л)-К-4 [23:43:03]line 13.130 * 76.20 [23:43:03]line = 1000.51 [23:43:03]line НДС 12% НСП 1% [23:43:03]line > о реализуемом товаре [23:43:03]line ОКРУГЛЕНИЕ: -0.51 [23:43:03]line ИТОГО: 1000.00 [23:43:03]line Внесено: 1000.00 [23:43:03]line СДАЧА: 0.00 [23:43:03]line НСП 1% : 8.85 [23:43:03]line НДС 12% : 106.25 [23:43:03]line Наличными: 1000.00 [23:43:03]line Безнал.: 0.00 [23:43:03]line Место: АЗС № 94 "Партнер Нефть" [23:43:03]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [23:43:03]line СНО: Общий режим [23:43:03]line Чек 581 18.08.2024 23:43 [23:43:03]line Смена: 449 ФФД: 1.0 [23:43:03]line ЗНМ: 0300000099 [23:43:03]line РНМ: 0000000000091865 [23:43:03]line Версия ККМ: 001 [23:43:03]line ФМ: 0000000000871820 [23:43:03]line ФД: 261023 [23:43:03]line ФПД: 274841403031176 [23:43:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T234309&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261023&fm=274841403031176&tin=02508201610067®Number=0000000000091865&sum=100000 [23:43:03]OFD Sender: Processing packet 261023 [packets to send 192, broken 191] [23:43:03]ProducePacketName [23:43:03]name=ofd_packets/00261023 [23:43:03]OFD Sender: To server: pG, [23:43:03]CommunicateWithHost lk.salyk.kg:30040 [23:43:03]ConnectInit lk.salyk.kg [23:43:03]written 0, free lines is 4095 [23:43:03]Connected sock=10 [23:43: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 30 10 01 00 00 EF 6D 08 01 FA 56 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 02 00 00 F4 03 04 00 0D 87 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9F FB 03 00 35 04 06 00 F9 F7 80 32 7E 88 89 87 79 91 58 FE EB F8 [23:43: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 30 4F 00 00 00 4A 84 47 00 01 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 9F FB 03 00 F4 03 04 00 60 30 C2 66 B6 04 01 00 00 81 55 0B E6 66 22 C6 86 [23:43:03]CommunicateWithHost err = 0 [23:43:03]CheckOFDResponse [23:43:03]1017 (14) - 77093643461234 [23:43:03]1041 (16) - 0000000000871820 [23:43:03]1040 (4) - 261023 [23:43:03]1012 (4) - 18.08.2024 17:33 [23:43:03]1206 (1) - 0 [23:43:03]OFD Sender: Remove packet 261023 [23:43:03]ProducePacketName [23:43:03]name=ofd_packets/00261023 [23:43:03]NVStorageDeleteData [23:43:04]Write to MH i2c: 01 00 00 AB E4 8F [23:43:04]Write i2c OK [23:43:04]MH_I2C_Read... [23:43:04]Read from MH i2c: 01 [23:43:04]MH_I2C_Read... [23:43:04]Read from MH i2c: 01 07 00 [23:43:04]MH_I2C_Read... [23:43:04]Read from MH i2c: 01 07 00 AB E4 00 00 00 00 00 6E 0C 10 [23:43:04]RasterBufferAndPrint [23:43:04]line [23:43:04]line [23:43:04]line [23:43:04]line [23:43:04]line [23:43:04]written 0, free lines is 3185 [23:43:04]MH_Cut [23:43:04]Write to MH i2c: D1 01 00 B2 E4 01 68 [23:43:04]Write i2c OK [23:43:04]MH_I2C_Read... [23:43:04]Read from MH i2c: D1 [23:43:04]MH_I2C_Read... [23:43:04]Read from MH i2c: D1 01 00 [23:43:04]MH_I2C_Read... [23:43:04]Read from MH i2c: D1 01 00 B2 E4 00 67 [23:43:04]Write to MH i2c: 01 00 00 B3 E4 97 [23:43:04]Write i2c OK [23:43:04]MH_I2C_Read... [23:43:04]OFD Sender: No OFD packet to send [23:43:05]*** Cut start [23:43:05]*** Purtial cut [23:43:05]*** Stage 1: CUTSNS_PIN = 1 [23:43:07]Read from MH i2c: 01 [23:43:07]MH_I2C_Read... [23:43:07]*** Stop cut motor [23:43:07]*** Cut end [23:43:07]Read from MH i2c: 01 07 00 [23:43:07]MH_I2C_Read... [23:43:07]Read from MH i2c: 01 07 00 B3 E4 00 00 00 00 00 FF 0F AC [23:43:07]process_action close_receipt done [23:43:07]requested_data is exist [23:43:07]produce_requested_data [23:43:07]requested_item fm.sn is exist - process it [23:43:07]wFMCommunicate request_size=4 [23:43:07]MH_SAM_APDU [23:43:07]CAPDU: 80 11 00 00 [23:43:07]Write to MH i2c: E2 08 00 B4 E4 80 11 00 00 00 00 00 00 12 [23:43:07]Write i2c OK [23:43:07]MH_I2C_Read... [23:43:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:43:07]Read from MH i2c: E2 [23:43:07]MH_I2C_Read... [23:43:07]Read from MH i2c: E2 17 00 [23:43:07]MH_I2C_Read... [23:43:07]Read from MH i2c: E2 17 00 B4 E4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 5F [23:43:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:43:07]wFMCommunicate OK [23:43:07]requested_item fd.num is exist - process it [23:43:07]SAM_PROTO_GetFieldsCounters [23:43:07]wFMCommunicate request_size=4 [23:43:07]MH_SAM_APDU [23:43:07]CAPDU: 80 13 00 00 [23:43:07]Write to MH i2c: E2 08 00 B5 E4 80 13 00 00 00 00 00 00 15 [23:43:07]Write i2c OK [23:43:07]MH_I2C_Read... [23:43:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:43:07]Read from MH i2c: E2 [23:43:07]MH_I2C_Read... [23:43:07]Read from MH i2c: E2 62 00 [23:43:07]MH_I2C_Read... [23:43:07]Read from MH i2c: E2 62 00 B5 E4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 9F FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 45 02 00 00 5E 04 04 00 45 02 00 00 57 04 04 00 46 02 00 00 19 04 04 00 00 00 00 00 90 00 68 [23:43: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 9F FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 45 02 00 00 5E 04 04 00 45 02 00 00 57 04 04 00 46 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:43:07]wFMCommunicate OK [23:43:07]SAM_PROTO_GetFieldsCounters done [23:43:07]requested_item shift.num is exist - process it [23:43:07]requested_item shift.opened is exist - process it [23:43:07]req_shift_opened [23:43:07]FM_GetShiftState [23:43:07]SAM_PROTO_GetShiftState [23:43:07]wFMCommunicate request_size=4 [23:43:07]MH_SAM_APDU [23:43:07]CAPDU: 80 13 01 00 [23:43:07]Write to MH i2c: E2 08 00 B6 E4 80 13 01 00 00 00 00 00 17 [23:43:07]Write i2c OK [23:43:07]MH_I2C_Read... [23:43:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:43:07]Read from MH i2c: E2 [23:43:07]MH_I2C_Read... [23:43:07]Read from MH i2c: E2 0E 00 [23:43:07]MH_I2C_Read... [23:43:07]Read from MH i2c: E2 0E 00 B6 E4 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 54 [23:43:07]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:43:07]wFMCommunicate OK [23:43:07]SAM_PROTO_GetShiftState done [23:43:07]FM_GetShiftState done [23:43:07]req_shift_opened done [23:43:07]requested_item shift.open_date is exist - process it [23:43:07]req_shift_open_date [23:43:07]req_shift_open_date done [23:43:07]produce_requested_data done [23:43:07]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261023,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [23:43:07]process_action_free close_receipt [23:43:07]json_value_free [23:43:07]json_value_free done [23:43:07]process_json_proto returns [23:43:07]Send response to host [23:43:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261023,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [23:43:07]free response buf [23:43:07]execute_script done [23:43:07]execute_script returns [23:43:07]free content buf [23:43:07]Sock 9.Close socket [23:43:07]Sock 9.Thread stoped [23:43:09]OFD Sender: No OFD packet to send [23:43:14]OFD Sender: No OFD packet to send [23:43:19]OFD Sender: No OFD packet to send [23:43:24]OFD Sender: No OFD packet to send [23:43:29]OFD Sender: No OFD packet to send [23:43:34]OFD Sender: No OFD packet to send [23:43:39]OFD Sender: No OFD packet to send [23:43:44]OFD Sender: No OFD packet to send [23:43:49]OFD Sender: No OFD packet to send [23:43:54]OFD Sender: No OFD packet to send [23:43:59]OFD Sender: No OFD packet to send [23:44:04]OFD Sender: No OFD packet to send [23:44:09]OFD Sender: No OFD packet to send [23:44:14]OFD Sender: No OFD packet to send [23:44:19]OFD Sender: No OFD packet to send [23:44:24]OFD Sender: No OFD packet to send [23:44:29]OFD Sender: No OFD packet to send [23:44:34]OFD Sender: No OFD packet to send [23:44:39]OFD Sender: No OFD packet to send [23:44:44]OFD Sender: No OFD packet to send [23:44:49]OFD Sender: No OFD packet to send [23:44:54]OFD Sender: No OFD packet to send [23:44:59]OFD Sender: No OFD packet to send [23:45:04]OFD Sender: No OFD packet to send [23:45:09]OFD Sender: No OFD packet to send [23:45:14]OFD Sender: No OFD packet to send [23:45:19]OFD Sender: No OFD packet to send [23:45:24]OFD Sender: No OFD packet to send [23:45:29]OFD Sender: No OFD packet to send [23:45:34]OFD Sender: No OFD packet to send [23:45:39]OFD Sender: No OFD packet to send [23:45:44]OFD Sender: No OFD packet to send [23:45:49]OFD Sender: No OFD packet to send [23:45:54]OFD Sender: No OFD packet to send [23:45:59]OFD Sender: No OFD packet to send [23:46:04]OFD Sender: No OFD packet to send [23:46:09]OFD Sender: No OFD packet to send [23:46:14]OFD Sender: No OFD packet to send [23:46:19]OFD Sender: No OFD packet to send [23:46:24]OFD Sender: No OFD packet to send [23:46:29]OFD Sender: No OFD packet to send [23:46:34]OFD Sender: No OFD packet to send [23:46:39]OFD Sender: No OFD packet to send [23:46:42]accept exits with 7 [23:46:42]New connection [23:46:42]New thread 3066473828 created [23:46:42]Thread 3066617188 joined [23:46:42]Waiting for new connection... [23:46:42] Sock 7.Parse request [23:46:42]Sock 7.Check first char [23:46:42]Sock 7.First char is OK [23:46:42]request: POST /json_proto HTTP/1.0 [23:46:42]Method: POST [23:46:42]URL: /json_proto [23:46:42]Method is POST - this is cgi request [23:46:42]url: /json_proto [23:46:42]query_string will be loaded in cgi processing [23:46:42]execute_cgi json_proto POST (null) [23:46:42]execute_cgi path=json_proto method=POST [23:46:42]POST find Content-Length [23:46:42]Host: 172.17.55.133:8080 [23:46:42]Content-Length: 755 [23:46:42]Content-Type: application/json [23:46:42] [23:46:42]POST finish read [23:46:42]Found Content-Length = 755 [23:46:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30084489", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:46:42]execute_script... [23:46: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)1036579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30084489", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:46:42]POST & json_proto [23:46:42]process_json_proto [23:46:42]json parsed OK: [23:46:42]protocol is kg_v1.0 [23:46:42]action value=close_receipt [23:46:42]process_action close_receipt [23:46:42]cmd_close_receipt [23:46:42]MH_GetDate [23:46:42]Write to MH i2c: F0 00 00 B7 E4 8A [23:46:42]Write i2c OK [23:46:42]MH_I2C_Read... [23:46:42]Read from MH i2c: F0 [23:46:42]MH_I2C_Read... [23:46:42]Read from MH i2c: F0 09 00 [23:46:42]MH_I2C_Read... [23:46:42]Read from MH i2c: F0 09 00 B7 E4 00 E9 87 C2 66 34 48 D8 65 E4 [23:46:42]GetLastDocTimeStamp 1724024589 [23:46:42]current date 1724024809 [23:46:42]FM_GetShiftState [23:46:42]SAM_PROTO_GetShiftState [23:46:42]wFMCommunicate request_size=4 [23:46:42]MH_SAM_APDU [23:46:42]CAPDU: 80 13 01 00 [23:46:42]Write to MH i2c: E2 08 00 B8 E4 80 13 01 00 00 00 00 00 19 [23:46:42]Write i2c OK [23:46:42]MH_I2C_Read... [23:46:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:46:42]Read from MH i2c: E2 [23:46:42]MH_I2C_Read... [23:46:42]Read from MH i2c: E2 0E 00 [23:46:42]MH_I2C_Read... [23:46:42]Read from MH i2c: E2 0E 00 B8 E4 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 56 [23:46:42]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:46:42]wFMCommunicate OK [23:46:42]SAM_PROTO_GetShiftState done [23:46:42]FM_GetShiftState done [23:46:42]opened in 1723940556 [23:46:42]opened+sec_in_day 1724026956 [23:46:42]quantity*price = 0 [23:46:42]sum+1 = 1 [23:46:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 582 18.08.2024 23:46 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: ТК ГПНА Online 30084489 ФМ: 0000000000871820 ФД: 261024 ФПД: 243963665189191 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T234649&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261024&fm=243963665189191&tin=02508201610067®Number=0000000000091865&sum=0 [23:46:43]StoreToDocumentArchive [23:46:43]shift 449 fd 261024 [23:46:43]save to /storage/0449/doc_00261024 [23:46:43]save last doc name /storage/0449/doc_00261024 to /storage/kkm_last_doc_name [23:46:43]save OK [23:46:43]Clear old archive folders... [23:46:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:46:43]tlvbuf is 0036EAD0 [23:46:43]SAM_PROTO_ClearQueue [23:46:43]wFMCommunicate request_size=4 [23:46:43]MH_SAM_APDU [23:46:43]CAPDU: 80 09 00 00 [23:46:43]Write to MH i2c: E2 08 00 C5 E4 80 09 00 00 00 00 00 00 1B [23:46:43]Write i2c OK [23:46:43]MH_I2C_Read... [23:46:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:46:43]Read from MH i2c: E2 [23:46:43]MH_I2C_Read... [23:46:43]Read from MH i2c: E2 03 00 [23:46:43]MH_I2C_Read... [23:46:43]Read from MH i2c: E2 03 00 C5 E4 00 90 00 1D [23:46:43]RAPDU: 90 00 [23:46:43]wFMCommunicate OK [23:46:43]SAM_PROTO_ClearQueue done [23:46:43]KKMCreateOFDPacket [23:46:43]OFDProtocolAddRootSTLVToBuf [23:46:43]FM_MakeSignedData [23:46:43]FM_MakeSignedData [23:46:43]SAM_PROTO_SignData [23:46:43]wFMCommunicate request_size=4 [23:46:43]MH_SAM_APDU [23:46:43]CAPDU: 80 0D 01 02 [23:46:43]Write to MH i2c: E2 08 00 C6 E4 80 0D 01 02 00 00 00 00 23 [23:46:43]Write i2c OK [23:46:43]MH_I2C_Read... [23:46:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:46:43]Read from MH i2c: E2 [23:46:43]MH_I2C_Read... [23:46:43]Read from MH i2c: E2 03 00 [23:46:43]MH_I2C_Read... [23:46:43]Read from MH i2c: E2 03 00 C6 E4 00 90 00 1E [23:46:43]RAPDU: 90 00 [23:46:43]wFMCommunicate OK [23:46:43]wFMCommunicate request_size=255 [23:46:43]MH_SAM_APDU [23:46:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 02 00 00 F4 03 04 00 E9 87 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A0 FB 03 00 35 04 06 00 DD [23:46:43]Write to MH i2c: E2 02 01 C7 E4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 02 00 00 F4 03 04 00 E9 87 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A0 FB 03 00 35 04 06 00 DD 00 00 24 [23:46:43]Write i2c OK [23:46:43]MH_I2C_Read... [23:46:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:43]Read from MH i2c: E2 [23:46:43]MH_I2C_Read... [23:46:43]Read from MH i2c: E2 03 00 [23:46:43]MH_I2C_Read... [23:46:43]Read from MH i2c: E2 03 00 C7 E4 00 90 00 1F [23:46:43]RAPDU: 90 00 [23:46:43]wFMCommunicate OK [23:46:43]wFMCommunicate request_size=10 [23:46:43]MH_SAM_APDU [23:46:43]CAPDU: 80 0D 02 02 05 E2 37 9A 09 47 [23:46:43]Write to MH i2c: E2 0D 00 C8 E4 80 0D 02 02 05 00 E2 37 9A 09 47 00 00 33 [23:46:43]Write i2c OK [23:46:43]MH_I2C_Read... [23:46:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:43]Read from MH i2c: E2 [23:46:43]MH_I2C_Read... [23:46:43]Read from MH i2c: E2 03 00 [23:46:43]MH_I2C_Read... [23:46:43]Read from MH i2c: E2 03 00 C8 E4 00 90 00 20 [23:46:43]RAPDU: 90 00 [23:46:43]wFMCommunicate OK [23:46:43]wFMCommunicate request_size=4 [23:46:43]MH_SAM_APDU [23:46:43]CAPDU: 80 0D 03 02 [23:46:43]Write to MH i2c: E2 08 00 C9 E4 80 0D 03 02 00 00 00 00 28 [23:46:43]Write i2c OK [23:46:43]MH_I2C_Read... [23:46:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:46:43]Read from MH i2c: E2 [23:46:43]MH_I2C_Read... [23:46:43]Read from MH i2c: E2 0B 00 [23:46:43]MH_I2C_Read... [23:46:43]Read from MH i2c: E2 0B 00 C9 E4 00 F1 98 AE B8 C9 8C A9 5C 90 00 72 [23:46:43]RAPDU: F1 98 AE B8 C9 8C A9 5C 90 00 [23:46:43]wFMCommunicate OK [23:46:43]SAM_PROTO_SignData done [23:46:43]FM_MakeSignedData done [23:46:43]CreateOFDProtocolMessage [23:46:43]wFMCommunicate request_size=4 [23:46:43]MH_SAM_APDU [23:46:43]CAPDU: 80 11 00 00 [23:46:43]Write to MH i2c: E2 08 00 CA E4 80 11 00 00 00 00 00 00 28 [23:46:43]Write i2c OK [23:46:43]MH_I2C_Read... [23:46:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:46:43]Read from MH i2c: E2 [23:46:43]MH_I2C_Read... [23:46:43]Read from MH i2c: E2 17 00 [23:46:43]MH_I2C_Read... [23:46:43]Read from MH i2c: E2 17 00 CA E4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 75 [23:46:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:46:43]wFMCommunicate OK [23:46:43]CreateOFDProtocolMessage done [23:46:43]OFDSenderStorePacket 261024 [23:46:43]StoreOFDPacket docnum=261024 [23:46:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 9C 62 07 01 8A 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 02 00 00 F4 03 04 00 E9 87 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A0 FB 03 00 35 04 06 00 DD E2 37 9A 09 47 F1 98 AE B8 C9 8C A9 5C [23:46:43]CheckFolder [23:46:43]dirname=/storage/ofd_packets [23:46:43]CheckFolder done [23:46:43]ProducePacketName [23:46:43]name=ofd_packets/00261024 [23:46:43]NVStorageSaveData ofd_packets/00261024 [23:46:43]File name is /storage/ofd_packets/00261024 [23:46:43]Write 301 bytes [23:46:43]NVStorageSaveData done [23:46:43]OFDSenderStorePacket done [23:46:43]KKMCreateOFDPacket done [23:46:43]NVStorageSaveData kkm_last_timestamp [23:46:43]File name is /storage/kkm_last_timestamp [23:46:43]Write 4 bytes [23:46:43]NVStorageSaveData done [23:46:43]ExternCall_PrintAddStr [23:46:43]wPrintStart [23:46:43]Write to MH i2c: 01 00 00 CB E4 AF [23:46:43]OFD Sender: Processing packet 261024 [packets to send 192, broken 191] [23:46:43]ProducePacketName [23:46:43]name=ofd_packets/00261024 [23:46:43]OFD Sender: To server: pG, [23:46:43]CommunicateWithHost lk.salyk.kg:30040 [23:46:43]ConnectInit lk.salyk.kg [23:46:43]Write i2c OK [23:46:43]MH_I2C_Read... [23:46:43]Read from MH i2c: 01 [23:46:43]MH_I2C_Read... [23:46:43]Read from MH i2c: 01 07 00 [23:46:43]MH_I2C_Read... [23:46:43]Read from MH i2c: 01 07 00 CB E4 00 00 00 00 00 FF 0F C4 [23:46:43]RasterBufferAndPrint [23:46:43]line Счет N : (1)1036579 [23:46:43]line ИНН: 02508201610067 [23:46:43]line Контрольно-Кассовый Чек [23:46:43]line ПРОДАЖА [23:46:43]line ТРК (МРК, ГНК) : 32 [23:46:43]line Товар: 2710124130 [23:46:43]line Аи-92-К-5 [23:46:43]line 40.000 * 0.00 [23:46:43]line = 0.00 [23:46:43]line НДС 12% НСП 1% [23:46:43]line > о реализуемом товаре [23:46:43]line ИТОГО: 0.00 [23:46:43]line НСП 1% : 0.00 [23:46:43]line НДС 12% : 0.00 [23:46:43]line Наличными: 0.00 [23:46:43]line Безнал.: 0.00 [23:46:43]line Место: АЗС № 94 "Партнер Нефть" [23:46:43]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [23:46:43]line СНО: Общий режим [23:46:43]line Чек 582 18.08.2024 23:46 [23:46:43]line Смена: 449 ФФД: 1.0 [23:46:43]line ЗНМ: 0300000099 [23:46:43]line РНМ: 0000000000091865 [23:46:43]line Версия ККМ: 001 [23:46:43]line Талоны: ТК ГПНА Online [23:46:43]line 30084489 [23:46:43]line ФМ: 0000000000871820 [23:46:43]line ФД: 261024 [23:46:43]line ФПД: 243963665189191 [23:46:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T234649&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261024&fm=243963665189191&tin=02508201610067®Number=0000000000091865&sum=0 [23:46:44]Connected sock=10 [23:46: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 30 0F 01 00 00 9C 62 07 01 8A 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 written 0, free lines is 4095 [23:46:44]4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 02 00 00 F4 03 04 00 E9 87 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A0 FB 03 00 35 04 06 00 DD E2 37 9A 09 47 F1 98 AE B8 C9 8C A9 5C [23:46: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 30 4F 00 00 00 6D 55 47 00 44 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 30 10 04 04 00 A0 FB 03 00 F4 03 04 00 3C 31 C2 66 B6 04 01 00 00 5F 80 4E 85 45 83 F5 83 [23:46:44]CommunicateWithHost err = 0 [23:46:44]CheckOFDResponse [23:46:44]1017 (14) - 77093643461234 [23:46:44]1041 (16) - 0000000000871820 [23:46:44]1040 (4) - 261024 [23:46:44]1012 (4) - 18.08.2024 17:37 [23:46:44]1206 (1) - 0 [23:46:44]OFD Sender: Remove packet 261024 [23:46:44]ProducePacketName [23:46:44]name=ofd_packets/00261024 [23:46:44]NVStorageDeleteData [23:46:44]Write to MH i2c: 01 00 00 F5 E4 D9 [23:46:44]Write i2c OK [23:46:44]MH_I2C_Read... [23:46:44]Read from MH i2c: 01 [23:46:44]MH_I2C_Read... [23:46:44]Read from MH i2c: 01 07 00 [23:46:44]MH_I2C_Read... [23:46:44]Read from MH i2c: 01 07 00 F5 E4 00 00 00 00 00 8E 0C 7A [23:46:44]RasterBufferAndPrint [23:46:44]line [23:46:44]line [23:46:44]line [23:46:44]line [23:46:44]line [23:46:44]written 0, free lines is 3217 [23:46:44]MH_Cut [23:46:44]Write to MH i2c: D1 01 00 FC E4 01 B2 [23:46:44]Write i2c OK [23:46:44]MH_I2C_Read... [23:46:44]Read from MH i2c: D1 [23:46:44]MH_I2C_Read... [23:46:44]Read from MH i2c: D1 01 00 [23:46:44]MH_I2C_Read... [23:46:44]Read from MH i2c: D1 01 00 FC E4 00 B1 [23:46:44]Write to MH i2c: 01 00 00 FD E4 E1 [23:46:44]Write i2c OK [23:46:44]MH_I2C_Read... [23:46:44]OFD Sender: No OFD packet to send [23:46:45]*** Cut start [23:46:45]*** Purtial cut [23:46:45]*** Stage 1: CUTSNS_PIN = 1 [23:46:47]Read from MH i2c: 01 [23:46:47]MH_I2C_Read... [23:46:47]*** Stop cut motor [23:46:47]*** Cut end [23:46:47]Read from MH i2c: 01 07 00 [23:46:47]MH_I2C_Read... [23:46:47]Read from MH i2c: 01 07 00 FD E4 00 00 00 00 00 FF 0F F6 [23:46:47]process_action close_receipt done [23:46:47]requested_data is exist [23:46:47]produce_requested_data [23:46:47]requested_item fm.sn is exist - process it [23:46:47]wFMCommunicate request_size=4 [23:46:47]MH_SAM_APDU [23:46:47]CAPDU: 80 11 00 00 [23:46:47]Write to MH i2c: E2 08 00 FE E4 80 11 00 00 00 00 00 00 5C [23:46:47]Write i2c OK [23:46:47]MH_I2C_Read... [23:46:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:46:47]Read from MH i2c: E2 [23:46:47]MH_I2C_Read... [23:46:47]Read from MH i2c: E2 17 00 [23:46:47]MH_I2C_Read... [23:46:47]Read from MH i2c: E2 17 00 FE E4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A9 [23:46:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:46:47]wFMCommunicate OK [23:46:47]requested_item fd.num is exist - process it [23:46:47]SAM_PROTO_GetFieldsCounters [23:46:47]wFMCommunicate request_size=4 [23:46:47]MH_SAM_APDU [23:46:47]CAPDU: 80 13 00 00 [23:46:47]Write to MH i2c: E2 08 00 FF E4 80 13 00 00 00 00 00 00 5F [23:46:47]Write i2c OK [23:46:47]MH_I2C_Read... [23:46:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:46:47]Read from MH i2c: E2 [23:46:47]MH_I2C_Read... [23:46:47]Read from MH i2c: E2 62 00 [23:46:47]MH_I2C_Read... [23:46:47]Read from MH i2c: E2 62 00 FF E4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A0 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 46 02 00 00 5E 04 04 00 46 02 00 00 57 04 04 00 47 02 00 00 19 04 04 00 00 00 00 00 90 00 B6 [23: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A0 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 46 02 00 00 5E 04 04 00 46 02 00 00 57 04 04 00 47 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:46:47]wFMCommunicate OK [23:46:47]SAM_PROTO_GetFieldsCounters done [23:46:47]requested_item shift.num is exist - process it [23:46:47]requested_item shift.opened is exist - process it [23:46:47]req_shift_opened [23:46:47]FM_GetShiftState [23:46:47]SAM_PROTO_GetShiftState [23:46:47]wFMCommunicate request_size=4 [23:46:47]MH_SAM_APDU [23:46:47]CAPDU: 80 13 01 00 [23:46:47]Write to MH i2c: E2 08 00 00 E5 80 13 01 00 00 00 00 00 62 [23:46:47]Write i2c OK [23:46:47]MH_I2C_Read... [23:46:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:46:47]Read from MH i2c: E2 [23:46:47]MH_I2C_Read... [23:46:47]Read from MH i2c: E2 0E 00 [23:46:47]MH_I2C_Read... [23:46:47]Read from MH i2c: E2 0E 00 00 E5 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 9F [23:46:47]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:46:47]wFMCommunicate OK [23:46:47]SAM_PROTO_GetShiftState done [23:46:47]FM_GetShiftState done [23:46:47]req_shift_opened done [23:46:47]requested_item shift.open_date is exist - process it [23:46:47]req_shift_open_date [23:46:47]req_shift_open_date done [23:46:47]produce_requested_data done [23:46:47]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261024,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [23:46:47]process_action_free close_receipt [23:46:47]json_value_free [23:46:47]json_value_free done [23:46:47]process_json_proto returns [23:46:47]Send response to host [23:46:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261024,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [23:46:47]free response buf [23:46:47]execute_script done [23:46:47]execute_script returns [23:46:47]free content buf [23:46:47]Sock 7.Close socket [23:46:47]Sock 7.Thread stoped [23:46:49]OFD Sender: No OFD packet to send [23:46:54]OFD Sender: No OFD packet to send [23:46:59]OFD Sender: No OFD packet to send [23:47:04]OFD Sender: No OFD packet to send [23:47:09]OFD Sender: No OFD packet to send [23:47:14]OFD Sender: No OFD packet to send [23:47:19]OFD Sender: No OFD packet to send [23:47:24]OFD Sender: No OFD packet to send [23:47:25]accept exits with 9 [23:47:25]New connection [23:47:25]New thread 3066617188 created [23:47:25]Thread 3066473828 joined [23:47:25]Waiting for new connection... [23:47:25] Sock 9.Parse request [23:47:25]Sock 9.Check first char [23:47:25]Sock 9.First char is OK [23:47:25]request: POST /json_proto HTTP/1.0 [23:47:25]Method: POST [23:47:25]URL: /json_proto [23:47:25]Method is POST - this is cgi request [23:47:25]url: /json_proto [23:47:25]query_string will be loaded in cgi processing [23:47:25]execute_cgi json_proto POST (null) [23:47:25]execute_cgi path=json_proto method=POST [23:47:25]POST find Content-Length [23:47:25]Host: 172.17.55.133:8080 [23:47:25]Content-Length: 683 [23:47:25]Content-Type: application/json [23:47:25] [23:47:25]POST finish read [23:47:25]Found Content-Length = 683 [23:47:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:25]execute_script... [23:47: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)1036580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:25]POST & json_proto [23:47:25]process_json_proto [23:47:25]json parsed OK: [23:47:25]protocol is kg_v1.0 [23:47:25]action value=close_receipt [23:47:25]process_action close_receipt [23:47:25]cmd_close_receipt [23:47:25]MH_GetDate [23:47:25]Write to MH i2c: F0 00 00 01 E5 D5 [23:47:25]Write i2c OK [23:47:25]MH_I2C_Read... [23:47:25]Read from MH i2c: F0 [23:47:25]MH_I2C_Read... [23:47:25]Read from MH i2c: F0 09 00 [23:47:25]MH_I2C_Read... [23:47:25]Read from MH i2c: F0 09 00 01 E5 00 15 88 C2 66 34 48 D8 65 5C [23:47:25]GetLastDocTimeStamp 1724024809 [23:47:25]current date 1724024853 [23:47:25]FM_GetShiftState [23:47:25]SAM_PROTO_GetShiftState [23:47:25]wFMCommunicate request_size=4 [23:47:25]MH_SAM_APDU [23:47:25]CAPDU: 80 13 01 00 [23:47:25]Write to MH i2c: E2 08 00 02 E5 80 13 01 00 00 00 00 00 64 [23:47:25]Write i2c OK [23:47:25]MH_I2C_Read... [23:47:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:25]Read from MH i2c: E2 [23:47:25]MH_I2C_Read... [23:47:25]Read from MH i2c: E2 0E 00 [23:47:25]MH_I2C_Read... [23:47:25]Read from MH i2c: E2 0E 00 02 E5 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A1 [23:47:25]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:47:25]wFMCommunicate OK [23:47:25]SAM_PROTO_GetShiftState done [23:47:25]FM_GetShiftState done [23:47:25]opened in 1723940556 [23:47:25]opened+sec_in_day 1724026956 [23:47:25]quantity*price = 50063 [23:47:25]sum+1 = 50064 [23:47:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 583 18.08.2024 23:47 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261025 ФПД: 274633081856332 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T234733&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261025&fm=274633081856332&tin=02508201610067®Number=0000000000091865&sum=50000 [23:47:26]StoreToDocumentArchive [23:47:26]shift 449 fd 261025 [23:47:26]save to /storage/0449/doc_00261025 [23:47:26]save last doc name /storage/0449/doc_00261025 to /storage/kkm_last_doc_name [23:47:26]save OK [23:47:26]Clear old archive folders... [23:47:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:47:26]tlvbuf is 003E2C20 [23:47:26]SAM_PROTO_ClearQueue [23:47:26]wFMCommunicate request_size=4 [23:47:26]MH_SAM_APDU [23:47:26]CAPDU: 80 09 00 00 [23:47:26]Write to MH i2c: E2 08 00 0F E5 80 09 00 00 00 00 00 00 66 [23:47:26]Write i2c OK [23:47:26]MH_I2C_Read... [23:47:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:47:26]Read from MH i2c: E2 [23:47:26]MH_I2C_Read... [23:47:26]Read from MH i2c: E2 03 00 [23:47:26]MH_I2C_Read... [23:47:26]Read from MH i2c: E2 03 00 0F E5 00 90 00 68 [23:47:26]RAPDU: 90 00 [23:47:26]wFMCommunicate OK [23:47:26]SAM_PROTO_ClearQueue done [23:47:26]KKMCreateOFDPacket [23:47:26]OFDProtocolAddRootSTLVToBuf [23:47:26]FM_MakeSignedData [23:47:26]FM_MakeSignedData [23:47:26]SAM_PROTO_SignData [23:47:26]wFMCommunicate request_size=4 [23:47:26]MH_SAM_APDU [23:47:26]CAPDU: 80 0D 01 02 [23:47:26]Write to MH i2c: E2 08 00 10 E5 80 0D 01 02 00 00 00 00 6E [23:47:26]Write i2c OK [23:47:26]MH_I2C_Read... [23:47:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:47:27]Read from MH i2c: E2 [23:47:27]MH_I2C_Read... [23:47:27]Read from MH i2c: E2 03 00 [23:47:27]MH_I2C_Read... [23:47:27]Read from MH i2c: E2 03 00 10 E5 00 90 00 69 [23:47:27]RAPDU: 90 00 [23:47:27]wFMCommunicate OK [23:47:27]wFMCommunicate request_size=255 [23:47:27]MH_SAM_APDU [23:47:27]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 02 00 00 F4 03 04 00 15 88 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A1 FB 03 00 35 04 06 00 [23:47:27]Write to MH i2c: E2 02 01 11 E5 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 02 00 00 F4 03 04 00 15 88 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A1 FB 03 00 35 04 06 00 00 00 CF [23:47:27]Write i2c OK [23:47:27]MH_I2C_Read... [23:47:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:27]Read from MH i2c: E2 [23:47:27]MH_I2C_Read... [23:47:27]Read from MH i2c: E2 03 00 [23:47:27]MH_I2C_Read... [23:47:27]Read from MH i2c: E2 03 00 11 E5 00 90 00 6A [23:47:27]RAPDU: 90 00 [23:47:27]wFMCommunicate OK [23:47:27]wFMCommunicate request_size=11 [23:47:27]MH_SAM_APDU [23:47:27]CAPDU: 80 0D 02 02 06 F9 C6 FF 49 A1 4C [23:47:27]Write to MH i2c: E2 0E 00 12 E5 80 0D 02 02 06 00 F9 C6 FF 49 A1 4C 00 00 71 [23:47:27]Write i2c OK [23:47:27]MH_I2C_Read... [23:47:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:27]Read from MH i2c: E2 [23:47:27]MH_I2C_Read... [23:47:27]Read from MH i2c: E2 03 00 [23:47:27]MH_I2C_Read... [23:47:27]Read from MH i2c: E2 03 00 12 E5 00 90 00 6B [23:47:27]RAPDU: 90 00 [23:47:27]wFMCommunicate OK [23:47:27]wFMCommunicate request_size=4 [23:47:27]MH_SAM_APDU [23:47:27]CAPDU: 80 0D 03 02 [23:47:27]Write to MH i2c: E2 08 00 13 E5 80 0D 03 02 00 00 00 00 73 [23:47:27]Write i2c OK [23:47:27]MH_I2C_Read... [23:47:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:47:27]Read from MH i2c: E2 [23:47:27]MH_I2C_Read... [23:47:27]Read from MH i2c: E2 0B 00 [23:47:27]MH_I2C_Read... [23:47:27]Read from MH i2c: E2 0B 00 13 E5 00 E5 EE 82 32 BC C8 FE C4 90 00 41 [23:47:27]RAPDU: E5 EE 82 32 BC C8 FE C4 90 00 [23:47:27]wFMCommunicate OK [23:47:27]SAM_PROTO_SignData done [23:47:27]FM_MakeSignedData done [23:47:27]CreateOFDProtocolMessage [23:47:27]wFMCommunicate request_size=4 [23:47:27]MH_SAM_APDU [23:47:27]CAPDU: 80 11 00 00 [23:47:27]Write to MH i2c: E2 08 00 14 E5 80 11 00 00 00 00 00 00 73 [23:47:27]Write i2c OK [23:47:27]MH_I2C_Read... [23:47:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:27]Read from MH i2c: E2 [23:47:27]MH_I2C_Read... [23:47:27]Read from MH i2c: E2 17 00 [23:47:27]MH_I2C_Read... [23:47:27]Read from MH i2c: E2 17 00 14 E5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C0 [23:47:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:47:27]wFMCommunicate OK [23:47:27]CreateOFDProtocolMessage done [23:47:27]OFDSenderStorePacket 261025 [23:47:27]StoreOFDPacket docnum=261025 [23:47:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 3B 15 08 01 43 C1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 02 00 00 F4 03 04 00 15 88 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A1 FB 03 00 35 04 06 00 F9 C6 FF 49 A1 4C E5 EE 82 32 BC C8 FE C4 [23:47:27]CheckFolder [23:47:27]dirname=/storage/ofd_packets [23:47:27]CheckFolder done [23:47:27]ProducePacketName [23:47:27]name=ofd_packets/00261025 [23:47:27]NVStorageSaveData ofd_packets/00261025 [23:47:27]File name is /storage/ofd_packets/00261025 [23:47:27]Write 302 bytes [23:47:27]NVStorageSaveData done [23:47:27]OFDSenderStorePacket done [23:47:27]KKMCreateOFDPacket done [23:47:27]NVStorageSaveData kkm_last_timestamp [23:47:27]File name is /storage/kkm_last_timestamp [23:47:27]Write 4 bytes [23:47:27]NVStorageSaveData done [23:47:27]ExternCall_PrintAddStr [23:47:27]wPrintStart [23:47:27]Write to MH i2c: 01 00 00 15 E5 FA [23:47:27]Write i2c OK [23:47:27]MH_I2C_Read... [23:47:27]Read from MH i2c: 01 [23:47:27]MH_I2C_Read... [23:47:27]Read from MH i2c: 01 07 00 [23:47:27]MH_I2C_Read... [23:47:27]Read from MH i2c: 01 07 00 15 E5 00 00 00 00 00 FF 0F 0F [23:47:27]RasterBufferAndPrint [23:47:27]line Счет N : (1)1036580 [23:47:27]line ИНН: 02508201610067 [23:47:27]line Контрольно-Кассовый Чек [23:47:27]line ПРОДАЖА [23:47:27]line ТРК (МРК, ГНК) : 43 [23:47:27]line Товар: 2710194210 [23:47:27]line ДТ(л)-К-4 [23:47:27]line 6.570 * 76.20 [23:47:27]line = 500.63 [23:47:27]line НДС 12% НСП 1% [23:47:27]line > о реализуемом товаре [23:47:27]line ОКРУГЛЕНИЕ: -0.63 [23:47:27]line ИТОГО: 500.00 [23:47:27]line Внесено: 500.00 [23:47:27]line СДАЧА: 0.00 [23:47:27]line НСП 1% : 4.43 [23:47:27]line НДС 12% : 53.16 [23:47:27]line Наличными: 500.00 [23:47:27]line Безнал.: 0.00 [23:47:27]line Место: АЗС № 94 "Партнер Нефть" [23:47:27]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [23:47:27]line СНО: Общий режим [23:47:27]line Чек 583 18.08.2024 23:47 [23:47:27]line Смена: 449 ФФД: 1.0 [23:47:27]line ЗНМ: 0300000099 [23:47:27]line РНМ: 0000000000091865 [23:47:27]line Версия ККМ: 001 [23:47:27]line ФМ: 0000000000871820 [23:47:27]line ФД: 261025 [23:47:27]line ФПД: 274633081856332 [23:47:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T234733&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261025&fm=274633081856332&tin=02508201610067®Number=0000000000091865&sum=50000 [23:47:27]OFD Sender: Processing packet 261025 [packets to send 192, broken 191] [23:47:27]ProducePacketName [23:47:27]name=ofd_packets/00261025 [23:47:27]OFD Sender: To server: pG, [23:47:27]CommunicateWithHost lk.salyk.kg:30040 [23:47:27]ConnectInit lk.salyk.kg [23:47:27]written 0, free lines is 4095 [23:47:27]Connected sock=10 [23:47: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 30 10 01 00 00 3B 15 08 01 43 C1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 02 00 00 F4 03 04 00 15 88 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A1 FB 03 00 35 04 06 00 F9 C6 FF 49 A1 4C E5 EE 82 32 BC C8 FE C4 [23:47: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 30 4F 00 00 00 5F A4 47 00 52 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 30 10 04 04 00 A1 FB 03 00 F4 03 04 00 68 31 C2 66 B6 04 01 00 00 90 DE E9 8D CE B4 48 A5 [23:47:28]CommunicateWithHost err = 0 [23:47:28]CheckOFDResponse [23:47:28]1017 (14) - 77093643461234 [23:47:28]1041 (16) - 0000000000871820 [23:47:28]1040 (4) - 261025 [23:47:28]1012 (4) - 18.08.2024 17:37 [23:47:28]1206 (1) - 0 [23:47:28]OFD Sender: Remove packet 261025 [23:47:28]ProducePacketName [23:47:28]name=ofd_packets/00261025 [23:47:28]NVStorageDeleteData [23:47:28]Write to MH i2c: 01 00 00 40 E5 25 [23:47:28]Write i2c OK [23:47:28]MH_I2C_Read... [23:47:28]Read from MH i2c: 01 [23:47:28]MH_I2C_Read... [23:47:28]Read from MH i2c: 01 07 00 [23:47:28]MH_I2C_Read... [23:47:28]Read from MH i2c: 01 07 00 40 E5 00 00 00 00 00 69 0C A1 [23:47:28]RasterBufferAndPrint [23:47:28]line [23:47:28]line [23:47:28]line [23:47:28]line [23:47:28]line [23:47:28]written 0, free lines is 3181 [23:47:28]MH_Cut [23:47:28]Write to MH i2c: D1 01 00 47 E5 01 FE [23:47:28]Write i2c OK [23:47:28]MH_I2C_Read... [23:47:28]Read from MH i2c: D1 [23:47:28]MH_I2C_Read... [23:47:28]Read from MH i2c: D1 01 00 [23:47:28]MH_I2C_Read... [23:47:28]Read from MH i2c: D1 01 00 47 E5 00 FD [23:47:28]Write to MH i2c: 01 00 00 48 E5 2D [23:47:28]Write i2c OK [23:47:28]MH_I2C_Read... [23:47:28]OFD Sender: No OFD packet to send [23:47:29]*** Cut start [23:47:29]*** Purtial cut [23:47:29]*** Stage 1: CUTSNS_PIN = 1 [23:47:31]Read from MH i2c: 01 [23:47:31]MH_I2C_Read... [23:47:31]*** Stop cut motor [23:47:31]*** Cut end [23:47:31]Read from MH i2c: 01 07 00 [23:47:31]MH_I2C_Read... [23:47:31]Read from MH i2c: 01 07 00 48 E5 00 00 00 00 00 FF 0F 42 [23:47:31]process_action close_receipt done [23:47:31]requested_data is exist [23:47:31]produce_requested_data [23:47:31]requested_item fm.sn is exist - process it [23:47:31]wFMCommunicate request_size=4 [23:47:31]MH_SAM_APDU [23:47:31]CAPDU: 80 11 00 00 [23:47:31]Write to MH i2c: E2 08 00 49 E5 80 11 00 00 00 00 00 00 A8 [23:47:31]Write i2c OK [23:47:31]MH_I2C_Read... [23:47:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:31]Read from MH i2c: E2 [23:47:31]MH_I2C_Read... [23:47:31]Read from MH i2c: E2 17 00 [23:47:31]MH_I2C_Read... [23:47:31]Read from MH i2c: E2 17 00 49 E5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F5 [23:47:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:47:31]wFMCommunicate OK [23:47:31]requested_item fd.num is exist - process it [23:47:31]SAM_PROTO_GetFieldsCounters [23:47:31]wFMCommunicate request_size=4 [23:47:31]MH_SAM_APDU [23:47:31]CAPDU: 80 13 00 00 [23:47:31]Write to MH i2c: E2 08 00 4A E5 80 13 00 00 00 00 00 00 AB [23:47:31]Write i2c OK [23:47:31]MH_I2C_Read... [23:47:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:47:31]Read from MH i2c: E2 [23:47:31]MH_I2C_Read... [23:47:31]Read from MH i2c: E2 62 00 [23:47:31]MH_I2C_Read... [23:47:31]Read from MH i2c: E2 62 00 4A E5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A1 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 47 02 00 00 5E 04 04 00 47 02 00 00 57 04 04 00 48 02 00 00 19 04 04 00 00 00 00 00 90 00 06 [23:47: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A1 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 47 02 00 00 5E 04 04 00 47 02 00 00 57 04 04 00 48 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:47:31]wFMCommunicate OK [23:47:31]SAM_PROTO_GetFieldsCounters done [23:47:31]requested_item shift.num is exist - process it [23:47:31]requested_item shift.opened is exist - process it [23:47:31]req_shift_opened [23:47:31]FM_GetShiftState [23:47:31]SAM_PROTO_GetShiftState [23:47:31]wFMCommunicate request_size=4 [23:47:31]MH_SAM_APDU [23:47:31]CAPDU: 80 13 01 00 [23:47:31]Write to MH i2c: E2 08 00 4B E5 80 13 01 00 00 00 00 00 AD [23:47:31]Write i2c OK [23:47:31]MH_I2C_Read... [23:47:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:31]Read from MH i2c: E2 [23:47:31]MH_I2C_Read... [23:47:31]Read from MH i2c: E2 0E 00 [23:47:31]MH_I2C_Read... [23:47:31]Read from MH i2c: E2 0E 00 4B E5 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 EA [23:47:31]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:47:31]wFMCommunicate OK [23:47:31]SAM_PROTO_GetShiftState done [23:47:31]FM_GetShiftState done [23:47:31]req_shift_opened done [23:47:31]requested_item shift.open_date is exist - process it [23:47:31]req_shift_open_date [23:47:31]req_shift_open_date done [23:47:31]produce_requested_data done [23:47:31]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261025,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [23:47:31]process_action_free close_receipt [23:47:31]json_value_free [23:47:31]json_value_free done [23:47:31]process_json_proto returns [23:47:31]Send response to host [23:47:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261025,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [23:47:31]free response buf [23:47:31]execute_script done [23:47:31]execute_script returns [23:47:31]free content buf [23:47:31]Sock 9.Close socket [23:47:31]Sock 9.Thread stoped [23:47:33]OFD Sender: No OFD packet to send [23:47:38]OFD Sender: No OFD packet to send [23:47:43]OFD Sender: No OFD packet to send [23:47:48]OFD Sender: No OFD packet to send [23:47:53]OFD Sender: No OFD packet to send [23:47:58]OFD Sender: No OFD packet to send [23:48:03]OFD Sender: No OFD packet to send [23:48:08]OFD Sender: No OFD packet to send [23:48:13]OFD Sender: No OFD packet to send [23:48:18]OFD Sender: No OFD packet to send [23:48:23]OFD Sender: No OFD packet to send [23:48:28]OFD Sender: No OFD packet to send [23:48:33]OFD Sender: No OFD packet to send [23:48:38]OFD Sender: No OFD packet to send [23:48:43]OFD Sender: No OFD packet to send [23:48:48]OFD Sender: No OFD packet to send [23:48:53]OFD Sender: No OFD packet to send [23:48:58]OFD Sender: No OFD packet to send [23:49:03]OFD Sender: No OFD packet to send [23:49:08]OFD Sender: No OFD packet to send [23:49:13]OFD Sender: No OFD packet to send [23:49:18]OFD Sender: No OFD packet to send [23:49:23]OFD Sender: No OFD packet to send [23:49:28]OFD Sender: No OFD packet to send [23:49:33]OFD Sender: No OFD packet to send [23:49:38]OFD Sender: No OFD packet to send [23:49:43]OFD Sender: No OFD packet to send [23:49:48]OFD Sender: No OFD packet to send [23:49:53]OFD Sender: No OFD packet to send [23:49:58]OFD Sender: No OFD packet to send [23:50:03]OFD Sender: No OFD packet to send [23:50:08]OFD Sender: No OFD packet to send [23:50:13]OFD Sender: No OFD packet to send [23:50:18]OFD Sender: No OFD packet to send [23:50:23]OFD Sender: No OFD packet to send [23:50:28]OFD Sender: No OFD packet to send [23:50:33]OFD Sender: No OFD packet to send [23:50:38]OFD Sender: No OFD packet to send [23:50:43]OFD Sender: No OFD packet to send [23:50:48]OFD Sender: No OFD packet to send [23:50:53]OFD Sender: No OFD packet to send [23:50:58]OFD Sender: No OFD packet to send [23:51:03]OFD Sender: No OFD packet to send [23:51:08]OFD Sender: No OFD packet to send [23:51:13]OFD Sender: No OFD packet to send [23:51:18]OFD Sender: No OFD packet to send [23:51:23]OFD Sender: No OFD packet to send [23:51:28]OFD Sender: No OFD packet to send [23:51:33]OFD Sender: No OFD packet to send [23:51:38]OFD Sender: No OFD packet to send [23:51:43]OFD Sender: No OFD packet to send [23:51:48]OFD Sender: No OFD packet to send [23:51:53]OFD Sender: No OFD packet to send [23:51:58]OFD Sender: No OFD packet to send [23:52:03]OFD Sender: No OFD packet to send [23:52:08]OFD Sender: No OFD packet to send [23:52:13]OFD Sender: No OFD packet to send [23:52:18]OFD Sender: No OFD packet to send [23:52:23]OFD Sender: No OFD packet to send [23:52:28]OFD Sender: No OFD packet to send [23:52:34]OFD Sender: No OFD packet to send [23:52:39]OFD Sender: No OFD packet to send [23:52:44]OFD Sender: No OFD packet to send [23:52:49]OFD Sender: No OFD packet to send [23:52:54]OFD Sender: No OFD packet to send [23:52:56]accept exits with 7 [23:52:56]New connection [23:52:56]New thread 3066473828 created [23:52:56]Thread 3066617188 joined [23:52:56]Waiting for new connection... [23:52:56] Sock 7.Parse request [23:52:56]Sock 7.Check first char [23:52:56]Sock 7.First char is OK [23:52:56]request: POST /json_proto HTTP/1.0 [23:52:56]Method: POST [23:52:56]URL: /json_proto [23:52:56]Method is POST - this is cgi request [23:52:56]url: /json_proto [23:52:56]query_string will be loaded in cgi processing [23:52:56]execute_cgi json_proto POST (null) [23:52:56]execute_cgi path=json_proto method=POST [23:52:56]POST find Content-Length [23:52:56]Host: 172.17.55.133:8080 [23:52:56]Content-Length: 678 [23:52:56]Content-Type: application/json [23:52:56] [23:52:56]POST finish read [23:52:56]Found Content-Length = 678 [23:52:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036581", "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" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:56]execute_script... [23:52: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)1036581", "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" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:56]POST & json_proto [23:52:56]process_json_proto [23:52:56]json parsed OK: [23:52:56]protocol is kg_v1.0 [23:52:56]action value=close_receipt [23:52:56]process_action close_receipt [23:52:56]cmd_close_receipt [23:52:56]MH_GetDate [23:52:56]Write to MH i2c: F0 00 00 4C E5 20 [23:52:56]Write i2c OK [23:52:56]MH_I2C_Read... [23:52:56]Read from MH i2c: F0 [23:52:56]MH_I2C_Read... [23:52:56]Read from MH i2c: F0 09 00 [23:52:56]MH_I2C_Read... [23:52:56]Read from MH i2c: F0 09 00 4C E5 00 60 89 C2 66 34 48 D8 65 F3 [23:52:56]GetLastDocTimeStamp 1724024853 [23:52:56]current date 1724025184 [23:52:56]FM_GetShiftState [23:52:56]SAM_PROTO_GetShiftState [23:52:56]wFMCommunicate request_size=4 [23:52:56]MH_SAM_APDU [23:52:56]CAPDU: 80 13 01 00 [23:52:56]Write to MH i2c: E2 08 00 4D E5 80 13 01 00 00 00 00 00 AF [23:52:56]Write i2c OK [23:52:56]MH_I2C_Read... [23:52:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:56]Read from MH i2c: E2 [23:52:56]MH_I2C_Read... [23:52:56]Read from MH i2c: E2 0E 00 [23:52:56]MH_I2C_Read... [23:52:56]Read from MH i2c: E2 0E 00 4D E5 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 EC [23:52:56]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:52:56]wFMCommunicate OK [23:52:56]SAM_PROTO_GetShiftState done [23:52:56]FM_GetShiftState done [23:52:56]opened in 1723940556 [23:52:56]opened+sec_in_day 1724026956 [23:52:56]quantity*price = 60027 [23:52:56]sum+1 = 60029 [23:52:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 584 18.08.2024 23:53 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261026 ФПД: 580099199652 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T235304&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261026&fm=580099199652&tin=02508201610067®Number=0000000000091865&sum=60000 [23:52:57]StoreToDocumentArchive [23:52:57]shift 449 fd 261026 [23:52:57]save to /storage/0449/doc_00261026 [23:52:57]save last doc name /storage/0449/doc_00261026 to /storage/kkm_last_doc_name [23:52:57]save OK [23:52:57]Clear old archive folders... [23:52:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:52:57]tlvbuf is 00336680 [23:52:57]SAM_PROTO_ClearQueue [23:52:57]wFMCommunicate request_size=4 [23:52:57]MH_SAM_APDU [23:52:57]CAPDU: 80 09 00 00 [23:52:57]Write to MH i2c: E2 08 00 5A E5 80 09 00 00 00 00 00 00 B1 [23:52:57]Write i2c OK [23:52:57]MH_I2C_Read... [23:52:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:52:57]Read from MH i2c: E2 [23:52:57]MH_I2C_Read... [23:52:57]Read from MH i2c: E2 03 00 [23:52:57]MH_I2C_Read... [23:52:57]Read from MH i2c: E2 03 00 5A E5 00 90 00 B3 [23:52:57]RAPDU: 90 00 [23:52:57]wFMCommunicate OK [23:52:57]SAM_PROTO_ClearQueue done [23:52:57]KKMCreateOFDPacket [23:52:57]OFDProtocolAddRootSTLVToBuf [23:52:57]FM_MakeSignedData [23:52:57]FM_MakeSignedData [23:52:57]SAM_PROTO_SignData [23:52:57]wFMCommunicate request_size=4 [23:52:57]MH_SAM_APDU [23:52:57]CAPDU: 80 0D 01 02 [23:52:57]Write to MH i2c: E2 08 00 5B E5 80 0D 01 02 00 00 00 00 B9 [23:52:57]Write i2c OK [23:52:57]MH_I2C_Read... [23:52:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:52:57]Read from MH i2c: E2 [23:52:57]MH_I2C_Read... [23:52:57]Read from MH i2c: E2 03 00 [23:52:57]MH_I2C_Read... [23:52:57]Read from MH i2c: E2 03 00 5B E5 00 90 00 B4 [23:52:57]RAPDU: 90 00 [23:52:57]wFMCommunicate OK [23:52:57]wFMCommunicate request_size=255 [23:52:57]MH_SAM_APDU [23:52:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 48 02 00 00 F4 03 04 00 60 89 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A2 FB 03 00 35 04 06 00 00 [23:52:57]Write to MH i2c: E2 02 01 5C E5 80 0D 02 02 FA 00 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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 48 02 00 00 F4 03 04 00 60 89 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A2 FB 03 00 35 04 06 00 00 00 00 61 [23:52:57]Write i2c OK [23:52:57]MH_I2C_Read... [23:52:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:58]Read from MH i2c: E2 [23:52:58]MH_I2C_Read... [23:52:58]Read from MH i2c: E2 03 00 [23:52:58]MH_I2C_Read... [23:52:58]Read from MH i2c: E2 03 00 5C E5 00 90 00 B5 [23:52:58]RAPDU: 90 00 [23:52:58]wFMCommunicate OK [23:52:58]wFMCommunicate request_size=10 [23:52:58]MH_SAM_APDU [23:52:58]CAPDU: 80 0D 02 02 05 87 10 9B 52 A4 [23:52:58]Write to MH i2c: E2 0D 00 5D E5 80 0D 02 02 05 00 87 10 9B 52 A4 00 00 EE [23:52:58]Write i2c OK [23:52:58]MH_I2C_Read... [23:52:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:58]Read from MH i2c: E2 [23:52:58]MH_I2C_Read... [23:52:58]Read from MH i2c: E2 03 00 [23:52:58]MH_I2C_Read... [23:52:58]Read from MH i2c: E2 03 00 5D E5 00 90 00 B6 [23:52:58]RAPDU: 90 00 [23:52:58]wFMCommunicate OK [23:52:58]wFMCommunicate request_size=4 [23:52:58]MH_SAM_APDU [23:52:58]CAPDU: 80 0D 03 02 [23:52:58]Write to MH i2c: E2 08 00 5E E5 80 0D 03 02 00 00 00 00 BE [23:52:58]Write i2c OK [23:52:58]MH_I2C_Read... [23:52:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:52:58]Read from MH i2c: E2 [23:52:58]MH_I2C_Read... [23:52:58]Read from MH i2c: E2 0B 00 [23:52:58]MH_I2C_Read... [23:52:58]Read from MH i2c: E2 0B 00 5E E5 00 44 48 7D 10 68 8D 25 99 90 00 8B [23:52:58]RAPDU: 44 48 7D 10 68 8D 25 99 90 00 [23:52:58]wFMCommunicate OK [23:52:58]SAM_PROTO_SignData done [23:52:58]FM_MakeSignedData done [23:52:58]CreateOFDProtocolMessage [23:52:58]wFMCommunicate request_size=4 [23:52:58]MH_SAM_APDU [23:52:58]CAPDU: 80 11 00 00 [23:52:58]Write to MH i2c: E2 08 00 5F E5 80 11 00 00 00 00 00 00 BE [23:52:58]Write i2c OK [23:52:58]MH_I2C_Read... [23:52:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:58]Read from MH i2c: E2 [23:52:58]MH_I2C_Read... [23:52:58]Read from MH i2c: E2 17 00 [23:52:58]MH_I2C_Read... [23:52:58]Read from MH i2c: E2 17 00 5F E5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 0B [23:52:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:52:58]wFMCommunicate OK [23:52:58]CreateOFDProtocolMessage done [23:52:58]OFDSenderStorePacket 261026 [23:52:58]StoreOFDPacket docnum=261026 [23:52:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 74 AE 07 01 0A 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 48 02 00 00 F4 03 04 00 60 89 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A2 FB 03 00 35 04 06 00 00 87 10 9B 52 A4 44 48 7D 10 68 8D 25 99 [23:52:58]CheckFolder [23:52:58]dirname=/storage/ofd_packets [23:52:58]CheckFolder done [23:52:58]ProducePacketName [23:52:58]name=ofd_packets/00261026 [23:52:58]NVStorageSaveData ofd_packets/00261026 [23:52:58]File name is /storage/ofd_packets/00261026 [23:52:58]Write 301 bytes [23:52:58]NVStorageSaveData done [23:52:58]OFDSenderStorePacket done [23:52:58]KKMCreateOFDPacket done [23:52:58]NVStorageSaveData kkm_last_timestamp [23:52:58]File name is /storage/kkm_last_timestamp [23:52:58]Write 4 bytes [23:52:58]NVStorageSaveData done [23:52:58]ExternCall_PrintAddStr [23:52:58]wPrintStart [23:52:58]Write to MH i2c: 01 00 00 60 E5 45 [23:52:58]Write i2c OK [23:52:58]MH_I2C_Read... [23:52:58]Read from MH i2c: 01 [23:52:58]MH_I2C_Read... [23:52:58]Read from MH i2c: 01 07 00 [23:52:58]MH_I2C_Read... [23:52:58]Read from MH i2c: 01 07 00 60 E5 00 00 00 00 00 FF 0F 5A [23:52:58]RasterBufferAndPrint [23:52:58]line Счет N : (1)1036581 [23:52:58]line ИНН: 02508201610067 [23:52:58]line Контрольно-Кассовый Чек [23:52:58]line ПРОДАЖА [23:52:58]line ТРК (МРК, ГНК) : 13 [23:52:58]line Товар: 2710124500 [23:52:58]line Аи-95-К-5 [23:52:58]line 8.090 * 74.20 [23:52:58]line = 600.28 [23:52:58]line НДС 12% НСП 1% [23:52:58]line > о реализуемом товаре [23:52:58]line ОКРУГЛЕНИЕ: -0.28 [23:52:58]line ИТОГО: 600.00 [23:52:58]line Внесено: 600.00 [23:52:58]line СДАЧА: 0.00 [23:52:58]line НСП 1% : 5.31 [23:52:58]line НДС 12% : 63.75 [23:52:58]line Наличными: 600.00 [23:52:58]line Безнал.: 0.00 [23:52:58]line Место: АЗС № 94 "Партнер Нефть" [23:52:58]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [23:52:58]line СНО: Общий режим [23:52:58]line Чек 584 18.08.2024 23:53 [23:52:58]line Смена: 449 ФФД: 1.0 [23:52:58]line ЗНМ: 0300000099 [23:52:58]line РНМ: 0000000000091865 [23:52:58]line Версия ККМ: 001 [23:52:58]line ФМ: 0000000000871820 [23:52:58]line ФД: 261026 [23:52:58]line ФПД: 580099199652 [23:52:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T235304&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261026&fm=580099199652&tin=02508201610067®Number=0000000000091865&sum=60000 [23:52:58]written 0, free lines is 4095 [23:52:58]OFD Sender: Processing packet 261026 [packets to send 192, broken 191] [23:52:58]ProducePacketName [23:52:58]name=ofd_packets/00261026 [23:52:58]OFD Sender: To server: pG, [23:52:58]CommunicateWithHost lk.salyk.kg:30040 [23:52:58]ConnectInit lk.salyk.kg [23:52:58]Connected sock=10 [23:52: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 30 0F 01 00 00 74 AE 07 01 0A 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 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 E7 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 48 02 00 00 F4 03 04 00 60 89 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A2 FB 03 00 35 04 06 00 00 87 10 9B 52 A4 44 48 7D 10 68 8D 25 99 [23:52: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 30 4F 00 00 00 F1 50 47 00 34 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A2 FB 03 00 F4 03 04 00 B3 32 C2 66 B6 04 01 00 00 BE 81 36 2F 86 2E 55 D1 [23:52:58]CommunicateWithHost err = 0 [23:52:58]CheckOFDResponse [23:52:58]1017 (14) - 77093643461234 [23:52:58]1041 (16) - 0000000000871820 [23:52:58]1040 (4) - 261026 [23:52:58]1012 (4) - 18.08.2024 17:43 [23:52:58]1206 (1) - 0 [23:52:58]OFD Sender: Remove packet 261026 [23:52:58]ProducePacketName [23:52:58]name=ofd_packets/00261026 [23:52:58]NVStorageDeleteData [23:52:58]Write to MH i2c: 01 00 00 8B E5 70 [23:52:58]Write i2c OK [23:52:58]MH_I2C_Read... [23:52:58]Read from MH i2c: 01 [23:52:58]MH_I2C_Read... [23:52:58]Read from MH i2c: 01 07 00 [23:52:58]MH_I2C_Read... [23:52:58]Read from MH i2c: 01 07 00 8B E5 00 00 00 00 00 68 0C EB [23:52:58]RasterBufferAndPrint [23:52:58]line [23:52:58]line [23:52:58]line [23:52:58]line [23:52:58]line [23:52:58]written 0, free lines is 3179 [23:52:58]MH_Cut [23:52:58]Write to MH i2c: D1 01 00 92 E5 01 49 [23:52:58]Write i2c OK [23:52:58]MH_I2C_Read... [23:52:58]Read from MH i2c: D1 [23:52:58]MH_I2C_Read... [23:52:58]Read from MH i2c: D1 01 00 [23:52:58]MH_I2C_Read... [23:52:58]Read from MH i2c: D1 01 00 92 E5 00 48 [23:52:58]Write to MH i2c: 01 00 00 93 E5 78 [23:52:58]Write i2c OK [23:52:58]MH_I2C_Read... [23:52:59]OFD Sender: No OFD packet to send [23:53:00]*** Cut start [23:53:00]*** Purtial cut [23:53:00]*** Stage 1: CUTSNS_PIN = 1 [23:53:02]Read from MH i2c: 01 [23:53:02]MH_I2C_Read... [23:53:02]*** Stop cut motor [23:53:02]*** Cut end [23:53:02]Read from MH i2c: 01 07 00 [23:53:02]MH_I2C_Read... [23:53:02]Read from MH i2c: 01 07 00 93 E5 00 00 00 00 00 FF 0F 8D [23:53:02]process_action close_receipt done [23:53:02]requested_data is exist [23:53:02]produce_requested_data [23:53:02]requested_item fm.sn is exist - process it [23:53:02]wFMCommunicate request_size=4 [23:53:02]MH_SAM_APDU [23:53:02]CAPDU: 80 11 00 00 [23:53:02]Write to MH i2c: E2 08 00 94 E5 80 11 00 00 00 00 00 00 F3 [23:53:02]Write i2c OK [23:53:02]MH_I2C_Read... [23:53:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:53:02]Read from MH i2c: E2 [23:53:02]MH_I2C_Read... [23:53:02]Read from MH i2c: E2 17 00 [23:53:02]MH_I2C_Read... [23:53:02]Read from MH i2c: E2 17 00 94 E5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 40 [23:53:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:53:02]wFMCommunicate OK [23:53:02]requested_item fd.num is exist - process it [23:53:02]SAM_PROTO_GetFieldsCounters [23:53:02]wFMCommunicate request_size=4 [23:53:02]MH_SAM_APDU [23:53:02]CAPDU: 80 13 00 00 [23:53:02]Write to MH i2c: E2 08 00 95 E5 80 13 00 00 00 00 00 00 F6 [23:53:02]Write i2c OK [23:53:02]MH_I2C_Read... [23:53:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:53:02]Read from MH i2c: E2 [23:53:02]MH_I2C_Read... [23:53:02]Read from MH i2c: E2 62 00 [23:53:02]MH_I2C_Read... [23:53:02]Read from MH i2c: E2 62 00 95 E5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A2 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 48 02 00 00 5E 04 04 00 48 02 00 00 57 04 04 00 49 02 00 00 19 04 04 00 00 00 00 00 90 00 55 [23:53: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A2 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 48 02 00 00 5E 04 04 00 48 02 00 00 57 04 04 00 49 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:53:02]wFMCommunicate OK [23:53:02]SAM_PROTO_GetFieldsCounters done [23:53:02]requested_item shift.num is exist - process it [23:53:02]requested_item shift.opened is exist - process it [23:53:02]req_shift_opened [23:53:02]FM_GetShiftState [23:53:02]SAM_PROTO_GetShiftState [23:53:02]wFMCommunicate request_size=4 [23:53:02]MH_SAM_APDU [23:53:02]CAPDU: 80 13 01 00 [23:53:02]Write to MH i2c: E2 08 00 96 E5 80 13 01 00 00 00 00 00 F8 [23:53:02]Write i2c OK [23:53:02]MH_I2C_Read... [23:53:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:53:02]Read from MH i2c: E2 [23:53:02]MH_I2C_Read... [23:53:02]Read from MH i2c: E2 0E 00 [23:53:02]MH_I2C_Read... [23:53:02]Read from MH i2c: E2 0E 00 96 E5 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 35 [23:53:02]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:53:02]wFMCommunicate OK [23:53:02]SAM_PROTO_GetShiftState done [23:53:02]FM_GetShiftState done [23:53:02]req_shift_opened done [23:53:02]requested_item shift.open_date is exist - process it [23:53:02]req_shift_open_date [23:53:02]req_shift_open_date done [23:53:02]produce_requested_data done [23:53:02]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261026,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [23:53:02]process_action_free close_receipt [23:53:02]json_value_free [23:53:02]json_value_free done [23:53:02]process_json_proto returns [23:53:02]Send response to host [23:53:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261026,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [23:53:02]free response buf [23:53:02]execute_script done [23:53:02]execute_script returns [23:53:02]free content buf [23:53:02]Sock 7.Close socket [23:53:02]Sock 7.Thread stoped [23:53:04]OFD Sender: No OFD packet to send [23:53:09]OFD Sender: No OFD packet to send [23:53:14]OFD Sender: No OFD packet to send [23:53:16]accept exits with 9 [23:53:16]New connection [23:53:16]New thread 3066617188 created [23:53:16]Thread 3066473828 joined [23:53:16]Waiting for new connection... [23:53:16] Sock 9.Parse request [23:53:16]Sock 9.Check first char [23:53:16]Sock 9.First char is OK [23:53:16]request: POST /json_proto HTTP/1.0 [23:53:16]Method: POST [23:53:16]URL: /json_proto [23:53:16]Method is POST - this is cgi request [23:53:16]url: /json_proto [23:53:16]query_string will be loaded in cgi processing [23:53:16]execute_cgi json_proto POST (null) [23:53:16]execute_cgi path=json_proto method=POST [23:53:16]POST find Content-Length [23:53:16]Host: 172.17.55.133:8080 [23:53:16]Content-Length: 678 [23:53:16]Content-Type: application/json [23:53:16] [23:53:16]POST finish read [23:53:16]Found Content-Length = 678 [23:53:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:53:16]execute_script... [23: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)1036582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:53:16]POST & json_proto [23:53:16]process_json_proto [23:53:16]json parsed OK: [23:53:16]protocol is kg_v1.0 [23:53:16]action value=close_receipt [23:53:16]process_action close_receipt [23:53:16]cmd_close_receipt [23:53:16]MH_GetDate [23:53:16]Write to MH i2c: F0 00 00 97 E5 6B [23:53:16]Write i2c OK [23:53:16]MH_I2C_Read... [23:53:16]Read from MH i2c: F0 [23:53:16]MH_I2C_Read... [23:53:16]Read from MH i2c: F0 09 00 [23:53:16]MH_I2C_Read... [23:53:16]Read from MH i2c: F0 09 00 97 E5 00 74 89 C2 66 34 48 D8 65 52 [23:53:16]GetLastDocTimeStamp 1724025184 [23:53:16]current date 1724025204 [23:53:16]FM_GetShiftState [23:53:16]SAM_PROTO_GetShiftState [23:53:16]wFMCommunicate request_size=4 [23:53:16]MH_SAM_APDU [23:53:16]CAPDU: 80 13 01 00 [23:53:16]Write to MH i2c: E2 08 00 98 E5 80 13 01 00 00 00 00 00 FA [23:53:16]Write i2c OK [23:53:16]MH_I2C_Read... [23:53:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:53:16]Read from MH i2c: E2 [23:53:16]MH_I2C_Read... [23:53:16]Read from MH i2c: E2 0E 00 [23:53:16]MH_I2C_Read... [23:53:16]Read from MH i2c: E2 0E 00 98 E5 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 37 [23:53:16]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:53:16]wFMCommunicate OK [23:53:16]SAM_PROTO_GetShiftState done [23:53:16]FM_GetShiftState done [23:53:16]opened in 1723940556 [23:53:16]opened+sec_in_day 1724026956 [23:53:16]quantity*price = 50036 [23:53:16]sum+1 = 50037 [23:53:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 585 18.08.2024 23:53 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261027 ФПД: 137911174446374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T235324&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261027&fm=137911174446374&tin=02508201610067®Number=0000000000091865&sum=50000 [23:53:17]StoreToDocumentArchive [23:53:17]shift 449 fd 261027 [23:53:17]save to /storage/0449/doc_00261027 [23:53:17]save last doc name /storage/0449/doc_00261027 to /storage/kkm_last_doc_name [23:53:17]save OK [23:53:17]Clear old archive folders... [23:53:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:53:18]tlvbuf is 004A2210 [23:53:18]SAM_PROTO_ClearQueue [23:53:18]wFMCommunicate request_size=4 [23:53:18]MH_SAM_APDU [23:53:18]CAPDU: 80 09 00 00 [23:53:18]Write to MH i2c: E2 08 00 A5 E5 80 09 00 00 00 00 00 00 FC [23:53:18]Write i2c OK [23:53:18]MH_I2C_Read... [23:53:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:53:18]Read from MH i2c: E2 [23:53:18]MH_I2C_Read... [23:53:18]Read from MH i2c: E2 03 00 [23:53:18]MH_I2C_Read... [23:53:18]Read from MH i2c: E2 03 00 A5 E5 00 90 00 FE [23:53:18]RAPDU: 90 00 [23:53:18]wFMCommunicate OK [23:53:18]SAM_PROTO_ClearQueue done [23:53:18]KKMCreateOFDPacket [23:53:18]OFDProtocolAddRootSTLVToBuf [23:53:18]FM_MakeSignedData [23:53:18]FM_MakeSignedData [23:53:18]SAM_PROTO_SignData [23:53:18]wFMCommunicate request_size=4 [23:53:18]MH_SAM_APDU [23:53:18]CAPDU: 80 0D 01 02 [23:53:18]Write to MH i2c: E2 08 00 A6 E5 80 0D 01 02 00 00 00 00 04 [23:53:18]Write i2c OK [23:53:18]MH_I2C_Read... [23:53:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:53:18]Read from MH i2c: E2 [23:53:18]MH_I2C_Read... [23:53:18]Read from MH i2c: E2 03 00 [23:53:18]MH_I2C_Read... [23:53:18]Read from MH i2c: E2 03 00 A6 E5 00 90 00 FF [23:53:18]RAPDU: 90 00 [23:53:18]wFMCommunicate OK [23:53:18]wFMCommunicate request_size=255 [23:53:18]MH_SAM_APDU [23:53:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 49 02 00 00 F4 03 04 00 74 89 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A3 FB 03 00 35 04 06 00 7D [23:53:18]Write to MH i2c: E2 02 01 A7 E5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 49 02 00 00 F4 03 04 00 74 89 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A3 FB 03 00 35 04 06 00 7D 00 00 D1 [23:53:18]Write i2c OK [23:53:18]MH_I2C_Read... [23:53:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:53:18]Read from MH i2c: E2 [23:53:18]MH_I2C_Read... [23:53:18]Read from MH i2c: E2 03 00 [23:53:18]MH_I2C_Read... [23:53:18]Read from MH i2c: E2 03 00 A7 E5 00 90 00 00 [23:53:18]RAPDU: 90 00 [23:53:18]wFMCommunicate OK [23:53:18]wFMCommunicate request_size=10 [23:53:18]MH_SAM_APDU [23:53:18]CAPDU: 80 0D 02 02 05 6D F2 90 3D 26 [23:53:18]Write to MH i2c: E2 0D 00 A8 E5 80 0D 02 02 05 00 6D F2 90 3D 26 00 00 63 [23:53:18]Write i2c OK [23:53:18]MH_I2C_Read... [23:53:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:53:18]Read from MH i2c: E2 [23:53:18]MH_I2C_Read... [23:53:18]Read from MH i2c: E2 03 00 [23:53:18]MH_I2C_Read... [23:53:18]Read from MH i2c: E2 03 00 A8 E5 00 90 00 01 [23:53:18]RAPDU: 90 00 [23:53:18]wFMCommunicate OK [23:53:18]wFMCommunicate request_size=4 [23:53:18]MH_SAM_APDU [23:53:18]CAPDU: 80 0D 03 02 [23:53:18]Write to MH i2c: E2 08 00 A9 E5 80 0D 03 02 00 00 00 00 09 [23:53:18]Write i2c OK [23:53:18]MH_I2C_Read... [23:53:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:53:18]Read from MH i2c: E2 [23:53:18]MH_I2C_Read... [23:53:18]Read from MH i2c: E2 0B 00 [23:53:18]MH_I2C_Read... [23:53:18]Read from MH i2c: E2 0B 00 A9 E5 00 71 82 51 54 DA 4B 92 7B 90 00 D4 [23:53:18]RAPDU: 71 82 51 54 DA 4B 92 7B 90 00 [23:53:18]wFMCommunicate OK [23:53:18]SAM_PROTO_SignData done [23:53:18]FM_MakeSignedData done [23:53:18]CreateOFDProtocolMessage [23:53:18]wFMCommunicate request_size=4 [23:53:18]MH_SAM_APDU [23:53:18]CAPDU: 80 11 00 00 [23:53:18]Write to MH i2c: E2 08 00 AA E5 80 11 00 00 00 00 00 00 09 [23:53:18]Write i2c OK [23:53:18]MH_I2C_Read... [23:53:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:53:18]Read from MH i2c: E2 [23:53:18]MH_I2C_Read... [23:53:18]Read from MH i2c: E2 17 00 [23:53:18]MH_I2C_Read... [23:53:18]Read from MH i2c: E2 17 00 AA E5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 56 [23:53:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:53:18]wFMCommunicate OK [23:53:18]CreateOFDProtocolMessage done [23:53:18]OFDSenderStorePacket 261027 [23:53:18]StoreOFDPacket docnum=261027 [23: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 30 0F 01 00 00 59 34 07 01 DA 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 49 02 00 00 F4 03 04 00 74 89 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A3 FB 03 00 35 04 06 00 7D 6D F2 90 3D 26 71 82 51 54 DA 4B 92 7B [23:53:18]CheckFolder [23:53:18]dirname=/storage/ofd_packets [23:53:18]CheckFolder done [23:53:18]ProducePacketName [23:53:18]name=ofd_packets/00261027 [23:53:18]NVStorageSaveData ofd_packets/00261027 [23:53:18]File name is /storage/ofd_packets/00261027 [23:53:18]Write 301 bytes [23:53:18]NVStorageSaveData done [23:53:18]OFDSenderStorePacket done [23:53:18]KKMCreateOFDPacket done [23:53:18]NVStorageSaveData kkm_last_timestamp [23:53:18]File name is /storage/kkm_last_timestamp [23:53:18]Write 4 bytes [23:53:18]NVStorageSaveData done [23:53:18]ExternCall_PrintAddStr [23:53:18]wPrintStart [23:53:18]Write to MH i2c: 01 00 00 AB E5 90 [23:53:18]Write i2c OK [23:53:18]MH_I2C_Read... [23:53:18]Read from MH i2c: 01 [23:53:18]MH_I2C_Read... [23:53:18]Read from MH i2c: 01 07 00 [23:53:18]MH_I2C_Read... [23:53:18]Read from MH i2c: 01 07 00 AB E5 00 00 00 00 00 FF 0F A5 [23:53:18]RasterBufferAndPrint [23:53:18]line Счет N : (1)1036582 [23:53:18]line ИНН: 02508201610067 [23:53:18]line Контрольно-Кассовый Чек [23:53:18]line ПРОДАЖА [23:53:18]line ТРК (МРК, ГНК) : 22 [23:53:18]line Товар: 2710124130 [23:53:18]line Аи-92-К-5 [23:53:18]line 7.380 * 67.80 [23:53:18]line = 500.36 [23:53:18]line НДС 12% НСП 1% [23:53:18]line > о реализуемом товаре [23:53:18]line ОКРУГЛЕНИЕ: -0.36 [23:53:18]line ИТОГО: 500.00 [23:53:18]line Внесено: 500.00 [23:53:18]line СДАЧА: 0.00 [23:53:18]line НСП 1% : 4.43 [23:53:18]line НДС 12% : 53.14 [23:53:18]line Наличными: 500.00 [23:53:18]line Безнал.: 0.00 [23:53:18]line Место: АЗС № 94 "Партнер Нефть" [23:53:18]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [23:53:18]line СНО: Общий режим [23:53:18]line Чек 585 18.08.2024 23:53 [23:53:18]line Смена: 449 ФФД: 1.0 [23:53:18]line ЗНМ: 0300000099 [23:53:18]line РНМ: 0000000000091865 [23:53:18]line Версия ККМ: 001 [23:53:18]line ФМ: 0000000000871820 [23:53:18]line ФД: 261027 [23:53:18]line ФПД: 137911174446374 [23:53:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T235324&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261027&fm=137911174446374&tin=02508201610067®Number=0000000000091865&sum=50000 [23:53:18]OFD Sender: Processing packet 261027 [packets to send 192, broken 191] [23:53:18]ProducePacketName [23:53:18]name=ofd_packets/00261027 [23:53:18]OFD Sender: To server: pG, [23:53:18]CommunicateWithHost lk.salyk.kg:30040 [23:53:18]ConnectInit lk.salyk.kg [23:53:18]written 0, free lines is 4095 [23:53:18]Connected sock=11 [23: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 30 0F 01 00 00 59 34 07 01 DA 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 49 02 00 00 F4 03 04 00 74 89 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A3 FB 03 00 35 04 06 00 7D 6D F2 90 3D 26 71 82 51 54 DA 4B 92 7B [23: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 30 4F 00 00 00 3B E1 47 00 AA 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 30 10 04 04 00 A3 FB 03 00 F4 03 04 00 C7 32 C2 66 B6 04 01 00 00 25 34 D6 DF 70 37 AF B9 [23:53:19]CommunicateWithHost err = 0 [23:53:19]CheckOFDResponse [23:53:19]1017 (14) - 77093643461234 [23:53:19]1041 (16) - 0000000000871820 [23:53:19]1040 (4) - 261027 [23:53:19]1012 (4) - 18.08.2024 17:43 [23:53:19]1206 (1) - 0 [23:53:19]OFD Sender: Remove packet 261027 [23:53:19]ProducePacketName [23:53:19]name=ofd_packets/00261027 [23:53:19]NVStorageDeleteData [23:53:19]Write to MH i2c: 01 00 00 D6 E5 BB [23:53:19]Write i2c OK [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: 01 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: 01 07 00 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: 01 07 00 D6 E5 00 00 00 00 00 5F 0C 2D [23:53:19]RasterBufferAndPrint [23:53:19]line [23:53:19]line [23:53:19]line [23:53:19]line [23:53:19]line [23:53:19]written 0, free lines is 3169 [23:53:19]MH_Cut [23:53:19]Write to MH i2c: D1 01 00 DD E5 01 94 [23:53:19]Write i2c OK [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: D1 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: D1 01 00 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: D1 01 00 DD E5 00 93 [23:53:19]Write to MH i2c: 01 00 00 DE E5 C3 [23:53:19]Write i2c OK [23:53:19]MH_I2C_Read... [23:53:19]OFD Sender: No OFD packet to send [23:53:20]*** Cut start [23:53:20]*** Purtial cut [23:53:20]*** Stage 1: CUTSNS_PIN = 1 [23:53:22]Read from MH i2c: 01 [23:53:22]MH_I2C_Read... [23:53:22]*** Stop cut motor [23:53:22]*** Cut end [23:53:22]Read from MH i2c: 01 07 00 [23:53:22]MH_I2C_Read... [23:53:22]Read from MH i2c: 01 07 00 DE E5 00 00 00 00 00 FF 0F D8 [23:53:22]process_action close_receipt done [23:53:22]requested_data is exist [23:53:22]produce_requested_data [23:53:22]requested_item fm.sn is exist - process it [23:53:22]wFMCommunicate request_size=4 [23:53:22]MH_SAM_APDU [23:53:22]CAPDU: 80 11 00 00 [23:53:22]Write to MH i2c: E2 08 00 DF E5 80 11 00 00 00 00 00 00 3E [23:53:22]Write i2c OK [23:53:22]MH_I2C_Read... [23:53:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:53:22]Read from MH i2c: E2 [23:53:22]MH_I2C_Read... [23:53:22]Read from MH i2c: E2 17 00 [23:53:22]MH_I2C_Read... [23:53:22]Read from MH i2c: E2 17 00 DF E5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 8B [23:53:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:53:22]wFMCommunicate OK [23:53:22]requested_item fd.num is exist - process it [23:53:22]SAM_PROTO_GetFieldsCounters [23:53:22]wFMCommunicate request_size=4 [23:53:22]MH_SAM_APDU [23:53:22]CAPDU: 80 13 00 00 [23:53:22]Write to MH i2c: E2 08 00 E0 E5 80 13 00 00 00 00 00 00 41 [23:53:22]Write i2c OK [23:53:22]MH_I2C_Read... [23:53:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:53:22]Read from MH i2c: E2 [23:53:22]MH_I2C_Read... [23:53:22]Read from MH i2c: E2 62 00 [23:53:22]MH_I2C_Read... [23:53:22]Read from MH i2c: E2 62 00 E0 E5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A3 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 49 02 00 00 5E 04 04 00 49 02 00 00 57 04 04 00 4A 02 00 00 19 04 04 00 00 00 00 00 90 00 A4 [23:53: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A3 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 49 02 00 00 5E 04 04 00 49 02 00 00 57 04 04 00 4A 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:53:22]wFMCommunicate OK [23:53:22]SAM_PROTO_GetFieldsCounters done [23:53:22]requested_item shift.num is exist - process it [23:53:22]requested_item shift.opened is exist - process it [23:53:22]req_shift_opened [23:53:22]FM_GetShiftState [23:53:22]SAM_PROTO_GetShiftState [23:53:22]wFMCommunicate request_size=4 [23:53:22]MH_SAM_APDU [23:53:22]CAPDU: 80 13 01 00 [23:53:22]Write to MH i2c: E2 08 00 E1 E5 80 13 01 00 00 00 00 00 43 [23:53:22]Write i2c OK [23:53:22]MH_I2C_Read... [23:53:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:53:22]Read from MH i2c: E2 [23:53:22]MH_I2C_Read... [23:53:22]Read from MH i2c: E2 0E 00 [23:53:22]MH_I2C_Read... [23:53:22]Read from MH i2c: E2 0E 00 E1 E5 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 80 [23:53:22]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:53:22]wFMCommunicate OK [23:53:22]SAM_PROTO_GetShiftState done [23:53:22]FM_GetShiftState done [23:53:22]req_shift_opened done [23:53:22]requested_item shift.open_date is exist - process it [23:53:22]req_shift_open_date [23:53:22]req_shift_open_date done [23:53:22]produce_requested_data done [23:53:22]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261027,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [23:53:22]process_action_free close_receipt [23:53:22]json_value_free [23:53:22]json_value_free done [23:53:22]process_json_proto returns [23:53:22]Send response to host [23:53:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261027,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [23:53:22]free response buf [23:53:22]execute_script done [23:53:22]execute_script returns [23:53:22]free content buf [23:53:22]Sock 9.Close socket [23:53:22]Sock 9.Thread stoped [23:53:24]OFD Sender: No OFD packet to send [23:53:29]OFD Sender: No OFD packet to send [23:53:34]OFD Sender: No OFD packet to send [23:53:39]OFD Sender: No OFD packet to send [23:53:44]OFD Sender: No OFD packet to send [23:53:49]OFD Sender: No OFD packet to send [23:53:54]OFD Sender: No OFD packet to send [23:53:59]OFD Sender: No OFD packet to send [23:54:04]OFD Sender: No OFD packet to send [23:54:09]OFD Sender: No OFD packet to send [23:54:14]OFD Sender: No OFD packet to send [23:54:19]OFD Sender: No OFD packet to send [23:54:24]OFD Sender: No OFD packet to send [23:54:29]OFD Sender: No OFD packet to send [23:54:34]OFD Sender: No OFD packet to send [23:54:39]OFD Sender: No OFD packet to send [23:54:44]OFD Sender: No OFD packet to send [23:54:49]accept exits with 7 [23:54:49]New connection [23:54:49]New thread 3066473828 created [23:54:49]Thread 3066617188 joined [23:54:49]Waiting for new connection... [23:54:49] Sock 7.Parse request [23:54:49]Sock 7.Check first char [23:54:49]Sock 7.First char is OK [23:54:49]request: POST /json_proto HTTP/1.0 [23:54:49]Method: POST [23:54:49]URL: /json_proto [23:54:49]Method is POST - this is cgi request [23:54:49]url: /json_proto [23:54:49]query_string will be loaded in cgi processing [23:54:49]execute_cgi json_proto POST (null) [23:54:49]execute_cgi path=json_proto method=POST [23:54:49]POST find Content-Length [23:54:49]Host: 172.17.55.133:8080 [23:54:49]Content-Length: 683 [23:54:49]Content-Type: application/json [23:54:49] [23:54:49]POST finish read [23:54:49]Found Content-Length = 683 [23:54:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "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" ] } } [23:54:49]execute_script... [23:54: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)1036583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "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" ] } } [23:54:49]POST & json_proto [23:54:49]process_json_proto [23:54:49]json parsed OK: [23:54:49]protocol is kg_v1.0 [23:54:49]action value=close_receipt [23:54:49]process_action close_receipt [23:54:49]cmd_close_receipt [23:54:49]MH_GetDate [23:54:49]Write to MH i2c: F0 00 00 E2 E5 B6 [23:54:49]Write i2c OK [23:54:49]MH_I2C_Read... [23:54:49]Read from MH i2c: F0 [23:54:49]MH_I2C_Read... [23:54:49]Read from MH i2c: F0 09 00 [23:54:49]MH_I2C_Read... [23:54:49]Read from MH i2c: F0 09 00 E2 E5 00 D0 89 C2 66 34 48 D8 65 F9 [23:54:49]GetLastDocTimeStamp 1724025204 [23:54:49]current date 1724025296 [23:54:49]FM_GetShiftState [23:54:49]SAM_PROTO_GetShiftState [23:54:49]wFMCommunicate request_size=4 [23:54:49]MH_SAM_APDU [23:54:49]CAPDU: 80 13 01 00 [23:54:49]Write to MH i2c: E2 08 00 E3 E5 80 13 01 00 00 00 00 00 45 [23:54:49]Write i2c OK [23:54:49]MH_I2C_Read... [23:54:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:49]Read from MH i2c: E2 [23:54:49]MH_I2C_Read... [23:54:49]Read from MH i2c: E2 0E 00 [23:54:49]MH_I2C_Read... [23:54:49]Read from MH i2c: E2 0E 00 E3 E5 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 82 [23:54:49]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:54:49]wFMCommunicate OK [23:54:49]SAM_PROTO_GetShiftState done [23:54:49]FM_GetShiftState done [23:54:49]opened in 1723940556 [23:54:49]opened+sec_in_day 1724026956 [23:54:49]quantity*price = 200010 [23:54:49]sum+1 = 200011 [23:54:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 586 18.08.2024 23:54 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261028 ФПД: 75980058642552 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T235456&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261028&fm=75980058642552&tin=02508201610067®Number=0000000000091865&sum=200000 [23:54:50]StoreToDocumentArchive [23:54:50]shift 449 fd 261028 [23:54:50]save to /storage/0449/doc_00261028 [23:54:50]save last doc name /storage/0449/doc_00261028 to /storage/kkm_last_doc_name [23:54:50]save OK [23:54:50]Clear old archive folders... [23:54:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:54:50]tlvbuf is 004515E0 [23:54:50]SAM_PROTO_ClearQueue [23:54:50]wFMCommunicate request_size=4 [23:54:50]MH_SAM_APDU [23:54:50]CAPDU: 80 09 00 00 [23:54:50]Write to MH i2c: E2 08 00 F0 E5 80 09 00 00 00 00 00 00 47 [23:54:50]Write i2c OK [23:54:50]MH_I2C_Read... [23:54:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:54:50]Read from MH i2c: E2 [23:54:50]MH_I2C_Read... [23:54:50]Read from MH i2c: E2 03 00 [23:54:50]MH_I2C_Read... [23:54:50]Read from MH i2c: E2 03 00 F0 E5 00 90 00 49 [23:54:50]RAPDU: 90 00 [23:54:50]wFMCommunicate OK [23:54:50]SAM_PROTO_ClearQueue done [23:54:50]KKMCreateOFDPacket [23:54:50]OFDProtocolAddRootSTLVToBuf [23:54:50]FM_MakeSignedData [23:54:50]FM_MakeSignedData [23:54:50]SAM_PROTO_SignData [23:54:50]wFMCommunicate request_size=4 [23:54:50]MH_SAM_APDU [23:54:50]CAPDU: 80 0D 01 02 [23:54:50]Write to MH i2c: E2 08 00 F1 E5 80 0D 01 02 00 00 00 00 4F [23:54:50]Write i2c OK [23:54:50]MH_I2C_Read... [23:54:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:54:50]Read from MH i2c: E2 [23:54:50]MH_I2C_Read... [23:54:50]Read from MH i2c: E2 03 00 [23:54:50]MH_I2C_Read... [23:54:50]Read from MH i2c: E2 03 00 F1 E5 00 90 00 4A [23:54:50]RAPDU: 90 00 [23:54:50]wFMCommunicate OK [23:54:50]wFMCommunicate request_size=255 [23:54:50]MH_SAM_APDU [23:54:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 4A 02 00 00 F4 03 04 00 D0 89 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A4 FB 03 00 35 04 06 00 45 [23:54:50]Write to MH i2c: E2 02 01 F2 E5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 4A 02 00 00 F4 03 04 00 D0 89 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A4 FB 03 00 35 04 06 00 45 00 00 46 [23:54:50]Write i2c OK [23:54:50]MH_I2C_Read... [23:54:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:50]Read from MH i2c: E2 [23:54:50]MH_I2C_Read... [23:54:50]Read from MH i2c: E2 03 00 [23:54:50]MH_I2C_Read... [23:54:50]Read from MH i2c: E2 03 00 F2 E5 00 90 00 4B [23:54:50]RAPDU: 90 00 [23:54:50]wFMCommunicate OK [23:54:50]wFMCommunicate request_size=10 [23:54:50]MH_SAM_APDU [23:54:50]CAPDU: 80 0D 02 02 05 1A 7C 67 C8 78 [23:54:50]Write to MH i2c: E2 0D 00 F3 E5 80 0D 02 02 05 00 1A 7C 67 C8 78 00 00 99 [23:54:50]Write i2c OK [23:54:50]MH_I2C_Read... [23:54:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:50]Read from MH i2c: E2 [23:54:50]MH_I2C_Read... [23:54:50]Read from MH i2c: E2 03 00 [23:54:50]MH_I2C_Read... [23:54:50]Read from MH i2c: E2 03 00 F3 E5 00 90 00 4C [23:54:50]RAPDU: 90 00 [23:54:50]wFMCommunicate OK [23:54:50]wFMCommunicate request_size=4 [23:54:50]MH_SAM_APDU [23:54:50]CAPDU: 80 0D 03 02 [23:54:50]Write to MH i2c: E2 08 00 F4 E5 80 0D 03 02 00 00 00 00 54 [23:54:50]Write i2c OK [23:54:50]MH_I2C_Read... [23:54:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:54:50]Read from MH i2c: E2 [23:54:50]MH_I2C_Read... [23:54:50]Read from MH i2c: E2 0B 00 [23:54:50]MH_I2C_Read... [23:54:50]Read from MH i2c: E2 0B 00 F4 E5 00 F8 3C 97 11 EE C5 88 1B 90 00 87 [23:54:50]RAPDU: F8 3C 97 11 EE C5 88 1B 90 00 [23:54:50]wFMCommunicate OK [23:54:50]SAM_PROTO_SignData done [23:54:50]FM_MakeSignedData done [23:54:50]CreateOFDProtocolMessage [23:54:50]wFMCommunicate request_size=4 [23:54:50]MH_SAM_APDU [23:54:50]CAPDU: 80 11 00 00 [23:54:50]Write to MH i2c: E2 08 00 F5 E5 80 11 00 00 00 00 00 00 54 [23:54:50]Write i2c OK [23:54:50]MH_I2C_Read... [23:54:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:50]Read from MH i2c: E2 [23:54:50]MH_I2C_Read... [23:54:50]Read from MH i2c: E2 17 00 [23:54:50]MH_I2C_Read... [23:54:50]Read from MH i2c: E2 17 00 F5 E5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A1 [23:54:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:54:50]wFMCommunicate OK [23:54:50]CreateOFDProtocolMessage done [23:54:50]OFDSenderStorePacket 261028 [23:54:50]StoreOFDPacket docnum=261028 [23:54:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 2A 55 07 01 F5 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 4A 02 00 00 F4 03 04 00 D0 89 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A4 FB 03 00 35 04 06 00 45 1A 7C 67 C8 78 F8 3C 97 11 EE C5 88 1B [23:54:50]CheckFolder [23:54:50]dirname=/storage/ofd_packets [23:54:50]CheckFolder done [23:54:50]ProducePacketName [23:54:50]name=ofd_packets/00261028 [23:54:50]NVStorageSaveData ofd_packets/00261028 [23:54:50]File name is /storage/ofd_packets/00261028 [23:54:50]Write 301 bytes [23:54:50]NVStorageSaveData done [23:54:50]OFDSenderStorePacket done [23:54:50]KKMCreateOFDPacket done [23:54:50]NVStorageSaveData kkm_last_timestamp [23:54:50]File name is /storage/kkm_last_timestamp [23:54:50]Write 4 bytes [23:54:50]NVStorageSaveData done [23:54:50]ExternCall_PrintAddStr [23:54:50]wPrintStart [23:54:50]Write to MH i2c: 01 00 00 F6 E5 DB [23:54:50]Write i2c OK [23:54:50]MH_I2C_Read... [23:54:50]Read from MH i2c: 01 [23:54:50]MH_I2C_Read... [23:54:50]Read from MH i2c: 01 07 00 [23:54:50]MH_I2C_Read... [23:54:50]Read from MH i2c: 01 07 00 F6 E5 00 00 00 00 00 FF 0F F0 [23:54:50]RasterBufferAndPrint [23:54:50]line Счет N : (1)1036583 [23:54:50]line ИНН: 02508201610067 [23:54:50]line Контрольно-Кассовый Чек [23:54:50]line ПРОДАЖА [23:54:50]line ТРК (МРК, ГНК) : 42 [23:54:50]line Товар: 2710124130 [23:54:50]line Аи-92-К-5 [23:54:50]line 29.500 * 67.80 [23:54:50]line = 2000.10 [23:54:50]line НДС 12% НСП 1% [23:54:50]line > о реализуемом товаре [23:54:50]line ОКРУГЛЕНИЕ: -0.10 [23:54:50]line ИТОГО: 2000.00 [23:54:50]line Внесено: 2000.00 [23:54:50]line СДАЧА: 0.00 [23:54:50]line НСП 1% : 17.70 [23:54:50]line НДС 12% : 212.40 [23:54:50]line Наличными: 2000.00 [23:54:50]line Безнал.: 0.00 [23:54:50]line Место: АЗС № 94 "Партнер Нефть" [23:54:50]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [23:54:50]line СНО: Общий режим [23:54:50]line Чек 586 18.08.2024 23:54 [23:54:50]line Смена: 449 ФФД: 1.0 [23:54:50]line ЗНМ: 0300000099 [23:54:50]line РНМ: 0000000000091865 [23:54:50]line Версия ККМ: 001 [23:54:50]line ФМ: 0000000000871820 [23:54:50]line ФД: 261028 [23:54:50]line ФПД: 75980058642552 [23:54:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T235456&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261028&fm=75980058642552&tin=02508201610067®Number=0000000000091865&sum=200000 [23:54:50]OFD Sender: Processing packet 261028 [packets to send 192, broken 191] [23:54:50]ProducePacketName [23:54:50]name=ofd_packets/00261028 [23:54:51]OFD Sender: To server: pG, [23:54:51]CommunicateWithHost lk.salyk.kg:30040 [23:54:51]ConnectInit lk.salyk.kg [23:54:51]written 0, free lines is 4095 [23:54:51]Connected sock=10 [23:54: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 30 0F 01 00 00 2A 55 07 01 F5 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 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 4A 02 00 00 F4 03 04 00 D0 89 C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A4 FB 03 00 35 04 06 00 45 1A 7C 67 C8 78 F8 3C 97 11 EE C5 88 1B [23:54: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 30 4F 00 00 00 3E 05 47 00 94 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A4 FB 03 00 F4 03 04 00 24 33 C2 66 B6 04 01 00 00 0E DC 83 E6 7A A8 ED A4 [23:54:51]CommunicateWithHost err = 0 [23:54:51]CheckOFDResponse [23:54:51]1017 (14) - 77093643461234 [23:54:51]1041 (16) - 0000000000871820 [23:54:51]1040 (4) - 261028 [23:54:51]1012 (4) - 18.08.2024 17:45 [23:54:51]1206 (1) - 0 [23:54:51]OFD Sender: Remove packet 261028 [23:54:51]ProducePacketName [23:54:51]name=ofd_packets/00261028 [23:54:51]NVStorageDeleteData [23:54:51]Write to MH i2c: 01 00 00 21 E6 07 [23:54:51]Write i2c OK [23:54:51]MH_I2C_Read... [23:54:51]Read from MH i2c: 01 [23:54:51]MH_I2C_Read... [23:54:51]Read from MH i2c: 01 07 00 [23:54:51]MH_I2C_Read... [23:54:51]Read from MH i2c: 01 07 00 21 E6 00 00 00 00 00 65 0C 7F [23:54:51]RasterBufferAndPrint [23:54:51]line [23:54:51]line [23:54:51]line [23:54:51]line [23:54:51]line [23:54:51]written 0, free lines is 3178 [23:54:51]MH_Cut [23:54:51]Write to MH i2c: D1 01 00 28 E6 01 E0 [23:54:51]Write i2c OK [23:54:51]MH_I2C_Read... [23:54:51]Read from MH i2c: D1 [23:54:51]MH_I2C_Read... [23:54:51]Read from MH i2c: D1 01 00 [23:54:51]MH_I2C_Read... [23:54:51]Read from MH i2c: D1 01 00 28 E6 00 DF [23:54:51]Write to MH i2c: 01 00 00 29 E6 0F [23:54:51]Write i2c OK [23:54:51]MH_I2C_Read... [23:54:52]OFD Sender: No OFD packet to send [23:54:52]*** Cut start [23:54:52]*** Purtial cut [23:54:52]*** Stage 1: CUTSNS_PIN = 1 [23:54:54]Read from MH i2c: 01 [23:54:54]MH_I2C_Read... [23:54:54]*** Stop cut motor [23:54:54]*** Cut end [23:54:54]Read from MH i2c: 01 07 00 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: 01 07 00 29 E6 00 00 00 00 00 FF 0F 24 [23:54:54]process_action close_receipt done [23:54:54]requested_data is exist [23:54:54]produce_requested_data [23:54:54]requested_item fm.sn is exist - process it [23:54:54]wFMCommunicate request_size=4 [23:54:54]MH_SAM_APDU [23:54:54]CAPDU: 80 11 00 00 [23:54:54]Write to MH i2c: E2 08 00 2A E6 80 11 00 00 00 00 00 00 8A [23:54:54]Write i2c OK [23:54:54]MH_I2C_Read... [23:54:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:55]Read from MH i2c: E2 [23:54:55]MH_I2C_Read... [23:54:55]Read from MH i2c: E2 17 00 [23:54:55]MH_I2C_Read... [23:54:55]Read from MH i2c: E2 17 00 2A E6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D7 [23:54:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:54:55]wFMCommunicate OK [23:54:55]requested_item fd.num is exist - process it [23:54:55]SAM_PROTO_GetFieldsCounters [23:54:55]wFMCommunicate request_size=4 [23:54:55]MH_SAM_APDU [23:54:55]CAPDU: 80 13 00 00 [23:54:55]Write to MH i2c: E2 08 00 2B E6 80 13 00 00 00 00 00 00 8D [23:54:55]Write i2c OK [23:54:55]MH_I2C_Read... [23:54:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:54:55]Read from MH i2c: E2 [23:54:55]MH_I2C_Read... [23:54:55]Read from MH i2c: E2 62 00 [23:54:55]MH_I2C_Read... [23:54:55]Read from MH i2c: E2 62 00 2B E6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A4 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4A 02 00 00 5E 04 04 00 4A 02 00 00 57 04 04 00 4B 02 00 00 19 04 04 00 00 00 00 00 90 00 F4 [23:54: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A4 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4A 02 00 00 5E 04 04 00 4A 02 00 00 57 04 04 00 4B 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:54:55]wFMCommunicate OK [23:54:55]SAM_PROTO_GetFieldsCounters done [23:54:55]requested_item shift.num is exist - process it [23:54:55]requested_item shift.opened is exist - process it [23:54:55]req_shift_opened [23:54:55]FM_GetShiftState [23:54:55]SAM_PROTO_GetShiftState [23:54:55]wFMCommunicate request_size=4 [23:54:55]MH_SAM_APDU [23:54:55]CAPDU: 80 13 01 00 [23:54:55]Write to MH i2c: E2 08 00 2C E6 80 13 01 00 00 00 00 00 8F [23:54:55]Write i2c OK [23:54:55]MH_I2C_Read... [23:54:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:55]Read from MH i2c: E2 [23:54:55]MH_I2C_Read... [23:54:55]Read from MH i2c: E2 0E 00 [23:54:55]MH_I2C_Read... [23:54:55]Read from MH i2c: E2 0E 00 2C E6 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 CC [23:54:55]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:54:55]wFMCommunicate OK [23:54:55]SAM_PROTO_GetShiftState done [23:54:55]FM_GetShiftState done [23:54:55]req_shift_opened done [23:54:55]requested_item shift.open_date is exist - process it [23:54:55]req_shift_open_date [23:54:55]req_shift_open_date done [23:54:55]produce_requested_data done [23:54:55]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261028,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [23:54:55]process_action_free close_receipt [23:54:55]json_value_free [23:54:55]json_value_free done [23:54:55]process_json_proto returns [23:54:55]Send response to host [23:54:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261028,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [23:54:55]free response buf [23:54:55]execute_script done [23:54:55]execute_script returns [23:54:55]free content buf [23:54:55]Sock 7.Close socket [23:54:55]Sock 7.Thread stoped [23:54:57]OFD Sender: No OFD packet to send [23:55:02]OFD Sender: No OFD packet to send [23:55:07]OFD Sender: No OFD packet to send [23:55:12]OFD Sender: No OFD packet to send [23:55:17]OFD Sender: No OFD packet to send [23:55:22]OFD Sender: No OFD packet to send [23:55:27]OFD Sender: No OFD packet to send [23:55:32]OFD Sender: No OFD packet to send [23:55:37]OFD Sender: No OFD packet to send [23:55:42]OFD Sender: No OFD packet to send [23:55:47]OFD Sender: No OFD packet to send [23:55:52]OFD Sender: No OFD packet to send [23:55:57]OFD Sender: No OFD packet to send [23:56:02]OFD Sender: No OFD packet to send [23:56:07]OFD Sender: No OFD packet to send [23:56:12]OFD Sender: No OFD packet to send [23:56:17]OFD Sender: No OFD packet to send [23:56:22]OFD Sender: No OFD packet to send [23:56:27]OFD Sender: No OFD packet to send [23:56:32]OFD Sender: No OFD packet to send [23:56:37]OFD Sender: No OFD packet to send [23:56:42]OFD Sender: No OFD packet to send [23:56:47]OFD Sender: No OFD packet to send [23:56:52]OFD Sender: No OFD packet to send [23:56:57]OFD Sender: No OFD packet to send [23:57:02]OFD Sender: No OFD packet to send [23:57:07]OFD Sender: No OFD packet to send [23:57:12]OFD Sender: No OFD packet to send [23:57:17]OFD Sender: No OFD packet to send [23:57:22]OFD Sender: No OFD packet to send [23:57:27]OFD Sender: No OFD packet to send [23:57:32]OFD Sender: No OFD packet to send [23:57:37]OFD Sender: No OFD packet to send [23:57:42]OFD Sender: No OFD packet to send [23:57:47]OFD Sender: No OFD packet to send [23:57:52]OFD Sender: No OFD packet to send [23:57:57]OFD Sender: No OFD packet to send [23:58:02]OFD Sender: No OFD packet to send [23:58:07]OFD Sender: No OFD packet to send [23:58:12]OFD Sender: No OFD packet to send [23:58:17]OFD Sender: No OFD packet to send [23:58:22]OFD Sender: No OFD packet to send [23:58:27]OFD Sender: No OFD packet to send [23:58:32]OFD Sender: No OFD packet to send [23:58:37]OFD Sender: No OFD packet to send [23:58:42]OFD Sender: No OFD packet to send [23:58:47]OFD Sender: No OFD packet to send [23:58:52]OFD Sender: No OFD packet to send [23:58:57]OFD Sender: No OFD packet to send [23:59:02]OFD Sender: No OFD packet to send [23:59:07]OFD Sender: No OFD packet to send [23:59:09]accept exits with 9 [23:59:09]New connection [23:59:09]New thread 3066617188 created [23:59:09]Thread 3066473828 joined [23:59:09]Waiting for new connection... [23:59:09] Sock 9.Parse request [23:59:09]Sock 9.Check first char [23:59:09]Sock 9.First char is OK [23:59:09]request: POST /json_proto HTTP/1.0 [23:59:09]Method: POST [23:59:09]URL: /json_proto [23:59:09]Method is POST - this is cgi request [23:59:09]url: /json_proto [23:59:09]query_string will be loaded in cgi processing [23:59:09]execute_cgi json_proto POST (null) [23:59:09]execute_cgi path=json_proto method=POST [23:59:09]POST find Content-Length [23:59:09]Host: 172.17.55.133:8080 [23:59:09]Content-Length: 683 [23:59:09]Content-Type: application/json [23:59:09] [23:59:09]POST finish read [23:59:09]Found Content-Length = 683 [23:59:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:09]execute_script... [23:59: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)1036584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:09]POST & json_proto [23:59:09]process_json_proto [23:59:09]json parsed OK: [23:59:09]protocol is kg_v1.0 [23:59:09]action value=close_receipt [23:59:09]process_action close_receipt [23:59:09]cmd_close_receipt [23:59:09]MH_GetDate [23:59:09]Write to MH i2c: F0 00 00 2D E6 02 [23:59:09]Write i2c OK [23:59:09]MH_I2C_Read... [23:59:09]Read from MH i2c: F0 [23:59:09]MH_I2C_Read... [23:59:09]Read from MH i2c: F0 09 00 [23:59:09]MH_I2C_Read... [23:59:09]Read from MH i2c: F0 09 00 2D E6 00 D4 8A C2 66 34 48 D8 65 4A [23:59:09]GetLastDocTimeStamp 1724025296 [23:59:09]current date 1724025556 [23:59:09]FM_GetShiftState [23:59:09]SAM_PROTO_GetShiftState [23:59:09]wFMCommunicate request_size=4 [23:59:09]MH_SAM_APDU [23:59:09]CAPDU: 80 13 01 00 [23:59:09]Write to MH i2c: E2 08 00 2E E6 80 13 01 00 00 00 00 00 91 [23:59:09]Write i2c OK [23:59:09]MH_I2C_Read... [23:59:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:09]Read from MH i2c: E2 [23:59:09]MH_I2C_Read... [23:59:09]Read from MH i2c: E2 0E 00 [23:59:09]MH_I2C_Read... [23:59:09]Read from MH i2c: E2 0E 00 2E E6 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 CE [23:59:09]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:59:09]wFMCommunicate OK [23:59:09]SAM_PROTO_GetShiftState done [23:59:09]FM_GetShiftState done [23:59:09]opened in 1723940556 [23:59:09]opened+sec_in_day 1724026956 [23:59:09]quantity*price = 100005 [23:59:09]sum+1 = 100006 [23:59:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 587 18.08.2024 23:59 Смена: 449 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261029 ФПД: 52945226516405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T235917&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261029&fm=52945226516405&tin=02508201610067®Number=0000000000091865&sum=100000 [23:59:10]StoreToDocumentArchive [23:59:10]shift 449 fd 261029 [23:59:10]save to /storage/0449/doc_00261029 [23:59:10]save last doc name /storage/0449/doc_00261029 to /storage/kkm_last_doc_name [23:59:10]save OK [23:59:10]Clear old archive folders... [23:59:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:59:10]tlvbuf is 004A25F0 [23:59:10]SAM_PROTO_ClearQueue [23:59:10]wFMCommunicate request_size=4 [23:59:10]MH_SAM_APDU [23:59:10]CAPDU: 80 09 00 00 [23:59:10]Write to MH i2c: E2 08 00 3B E6 80 09 00 00 00 00 00 00 93 [23:59:10]Write i2c OK [23:59:10]MH_I2C_Read... [23:59:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:59:10]Read from MH i2c: E2 [23:59:10]MH_I2C_Read... [23:59:10]Read from MH i2c: E2 03 00 [23:59:10]MH_I2C_Read... [23:59:10]Read from MH i2c: E2 03 00 3B E6 00 90 00 95 [23:59:10]RAPDU: 90 00 [23:59:10]wFMCommunicate OK [23:59:10]SAM_PROTO_ClearQueue done [23:59:10]KKMCreateOFDPacket [23:59:10]OFDProtocolAddRootSTLVToBuf [23:59:10]FM_MakeSignedData [23:59:10]FM_MakeSignedData [23:59:10]SAM_PROTO_SignData [23:59:10]wFMCommunicate request_size=4 [23:59:10]MH_SAM_APDU [23:59:10]CAPDU: 80 0D 01 02 [23:59:10]Write to MH i2c: E2 08 00 3C E6 80 0D 01 02 00 00 00 00 9B [23:59:10]Write i2c OK [23:59:10]MH_I2C_Read... [23:59:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:59:10]Read from MH i2c: E2 [23:59:10]MH_I2C_Read... [23:59:10]Read from MH i2c: E2 03 00 [23:59:10]MH_I2C_Read... [23:59:10]Read from MH i2c: E2 03 00 3C E6 00 90 00 96 [23:59:10]RAPDU: 90 00 [23:59:10]wFMCommunicate OK [23:59:10]wFMCommunicate request_size=255 [23:59:10]MH_SAM_APDU [23:59:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 02 00 00 F4 03 04 00 D5 8A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A5 FB 03 00 35 04 06 00 30 [23:59:10]Write to MH i2c: E2 02 01 3D E6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 02 00 00 F4 03 04 00 D5 8A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A5 FB 03 00 35 04 06 00 30 00 00 10 [23:59:10]Write i2c OK [23:59:10]MH_I2C_Read... [23:59:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:59:10]Read from MH i2c: E2 [23:59:10]MH_I2C_Read... [23:59:10]Read from MH i2c: E2 03 00 [23:59:10]MH_I2C_Read... [23:59:10]Read from MH i2c: E2 03 00 3D E6 00 90 00 97 [23:59:10]RAPDU: 90 00 [23:59:10]wFMCommunicate OK [23:59:10]wFMCommunicate request_size=10 [23:59:10]MH_SAM_APDU [23:59:10]CAPDU: 80 0D 02 02 05 27 45 6B 47 B5 [23:59:10]Write to MH i2c: E2 0D 00 3E E6 80 0D 02 02 05 00 27 45 6B 47 B5 00 00 7B [23:59:10]Write i2c OK [23:59:10]MH_I2C_Read... [23:59:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:59:11]Read from MH i2c: E2 [23:59:11]MH_I2C_Read... [23:59:11]Read from MH i2c: E2 03 00 [23:59:11]MH_I2C_Read... [23:59:11]Read from MH i2c: E2 03 00 3E E6 00 90 00 98 [23:59:11]RAPDU: 90 00 [23:59:11]wFMCommunicate OK [23:59:11]wFMCommunicate request_size=4 [23:59:11]MH_SAM_APDU [23:59:11]CAPDU: 80 0D 03 02 [23:59:11]Write to MH i2c: E2 08 00 3F E6 80 0D 03 02 00 00 00 00 A0 [23:59:11]Write i2c OK [23:59:11]MH_I2C_Read... [23:59:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:59:11]Read from MH i2c: E2 [23:59:11]MH_I2C_Read... [23:59:11]Read from MH i2c: E2 0B 00 [23:59:11]MH_I2C_Read... [23:59:11]Read from MH i2c: E2 0B 00 3F E6 00 2A 38 EF 6B A5 62 80 C4 90 00 A8 [23:59:11]RAPDU: 2A 38 EF 6B A5 62 80 C4 90 00 [23:59:11]wFMCommunicate OK [23:59:11]SAM_PROTO_SignData done [23:59:11]FM_MakeSignedData done [23:59:11]CreateOFDProtocolMessage [23:59:11]wFMCommunicate request_size=4 [23:59:11]MH_SAM_APDU [23:59:11]CAPDU: 80 11 00 00 [23:59:11]Write to MH i2c: E2 08 00 40 E6 80 11 00 00 00 00 00 00 A0 [23:59:11]Write i2c OK [23:59:11]MH_I2C_Read... [23:59:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:11]Read from MH i2c: E2 [23:59:11]MH_I2C_Read... [23:59:11]Read from MH i2c: E2 17 00 [23:59:11]MH_I2C_Read... [23:59:11]Read from MH i2c: E2 17 00 40 E6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 ED [23:59:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:59:11]wFMCommunicate OK [23:59:11]CreateOFDProtocolMessage done [23:59:11]OFDSenderStorePacket 261029 [23:59:11]StoreOFDPacket docnum=261029 [23:59:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 0E 59 07 01 EC DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 02 00 00 F4 03 04 00 D5 8A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A5 FB 03 00 35 04 06 00 30 27 45 6B 47 B5 2A 38 EF 6B A5 62 80 C4 [23:59:11]CheckFolder [23:59:11]dirname=/storage/ofd_packets [23:59:11]CheckFolder done [23:59:11]ProducePacketName [23:59:11]name=ofd_packets/00261029 [23:59:11]NVStorageSaveData ofd_packets/00261029 [23:59:11]File name is /storage/ofd_packets/00261029 [23:59:11]Write 301 bytes [23:59:11]NVStorageSaveData done [23:59:11]OFDSenderStorePacket done [23:59:11]KKMCreateOFDPacket done [23:59:11]NVStorageSaveData kkm_last_timestamp [23:59:11]File name is /storage/kkm_last_timestamp [23:59:11]Write 4 bytes [23:59:11]NVStorageSaveData done [23:59:11]ExternCall_PrintAddStr [23:59:11]wPrintStart [23:59:11]Write to MH i2c: 01 00 00 41 E6 27 [23:59:11]Write i2c OK [23:59:11]MH_I2C_Read... [23:59:11]Read from MH i2c: 01 [23:59:11]MH_I2C_Read... [23:59:11]Read from MH i2c: 01 07 00 [23:59:11]MH_I2C_Read... [23:59:11]Read from MH i2c: 01 07 00 41 E6 00 00 00 00 00 FF 0F 3C [23:59:11]RasterBufferAndPrint [23:59:11]line Счет N : (1)1036584 [23:59:11]line ИНН: 02508201610067 [23:59:11]line Контрольно-Кассовый Чек [23:59:11]line ПРОДАЖА [23:59:11]line ТРК (МРК, ГНК) : 22 [23:59:11]line Товар: 2710124130 [23:59:11]line Аи-92-К-5 [23:59:11]line 14.750 * 67.80 [23:59:11]line = 1000.05 [23:59:11]line НДС 12% НСП 1% [23:59:11]line > о реализуемом товаре [23:59:11]line ОКРУГЛЕНИЕ: -0.05 [23:59:11]line ИТОГО: 1000.00 [23:59:11]line Внесено: 1000.00 [23:59:11]line СДАЧА: 0.00 [23:59:11]line НСП 1% : 8.85 [23:59:11]line НДС 12% : 106.20 [23:59:11]line Наличными: 1000.00 [23:59:11]line Безнал.: 0.00 [23:59:11]line Место: АЗС № 94 "Партнер Нефть" [23:59:11]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [23:59:11]line СНО: Общий режим [23:59:11]line Чек 587 18.08.2024 23:59 [23:59:11]line Смена: 449 ФФД: 1.0 [23:59:11]line ЗНМ: 0300000099 [23:59:11]line РНМ: 0000000000091865 [23:59:11]line Версия ККМ: 001 [23:59:11]line ФМ: 0000000000871820 [23:59:11]line ФД: 261029 [23:59:11]line ФПД: 52945226516405 [23:59:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T235917&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261029&fm=52945226516405&tin=02508201610067®Number=0000000000091865&sum=100000 [23:59:11]written 0, free lines is 4095 [23:59:11]OFD Sender: Processing packet 261029 [packets to send 192, broken 191] [23:59:11]ProducePacketName [23:59:11]name=ofd_packets/00261029 [23:59:11]OFD Sender: To server: pG, [23:59:11]CommunicateWithHost lk.salyk.kg:30040 [23:59:11]ConnectInit lk.salyk.kg [23:59:11]Connected sock=10 [23:59: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 30 0F 01 00 00 0E 59 07 01 EC DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 02 00 00 F4 03 04 00 D5 8A C2 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A5 FB 03 00 35 04 06 00 30 27 45 6B 47 B5 2A 38 EF 6B A5 62 80 C4 [23:59: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 30 4F 00 00 00 2A A9 47 00 BC 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 30 10 04 04 00 A5 FB 03 00 F4 03 04 00 28 34 C2 66 B6 04 01 00 00 72 1F C7 87 F0 8D FB 36 [23:59:11]CommunicateWithHost err = 0 [23:59:11]CheckOFDResponse [23:59:11]1017 (14) - 77093643461234 [23:59:11]1041 (16) - 0000000000871820 [23:59:11]1040 (4) - 261029 [23:59:11]1012 (4) - 18.08.2024 17:49 [23:59:11]1206 (1) - 0 [23:59:11]OFD Sender: Remove packet 261029 [23:59:11]ProducePacketName [23:59:11]name=ofd_packets/00261029 [23:59:11]NVStorageDeleteData [23:59:11]Write to MH i2c: 01 00 00 6C E6 52 [23:59:11]Write i2c OK [23:59:11]MH_I2C_Read... [23:59:11]Read from MH i2c: 01 [23:59:11]MH_I2C_Read... [23:59:11]Read from MH i2c: 01 07 00 [23:59:11]MH_I2C_Read... [23:59:11]Read from MH i2c: 01 07 00 6C E6 00 00 00 00 00 5E 0C C3 [23:59:11]RasterBufferAndPrint [23:59:11]line [23:59:11]line [23:59:11]line [23:59:11]line [23:59:11]line [23:59:11]written 0, free lines is 3169 [23:59:11]MH_Cut [23:59:11]Write to MH i2c: D1 01 00 73 E6 01 2B [23:59:11]Write i2c OK [23:59:11]MH_I2C_Read... [23:59:11]Read from MH i2c: D1 [23:59:11]MH_I2C_Read... [23:59:11]Read from MH i2c: D1 01 00 [23:59:11]MH_I2C_Read... [23:59:11]Read from MH i2c: D1 01 00 73 E6 00 2A [23:59:11]Write to MH i2c: 01 00 00 74 E6 5A [23:59:11]Write i2c OK [23:59:11]MH_I2C_Read... [23:59:11]OFD Sender: No OFD packet to send [23:59:12]*** Cut start [23:59:12]*** Purtial cut [23:59:12]*** Stage 1: CUTSNS_PIN = 1 [23:59:14]Read from MH i2c: 01 [23:59:14]MH_I2C_Read... [23:59:14]*** Stop cut motor [23:59:14]*** Cut end [23:59:14]Read from MH i2c: 01 07 00 [23:59:14]MH_I2C_Read... [23:59:14]Read from MH i2c: 01 07 00 74 E6 00 00 00 00 00 FF 0F 6F [23:59:14]process_action close_receipt done [23:59:14]requested_data is exist [23:59:14]produce_requested_data [23:59:14]requested_item fm.sn is exist - process it [23:59:14]wFMCommunicate request_size=4 [23:59:14]MH_SAM_APDU [23:59:14]CAPDU: 80 11 00 00 [23:59:14]Write to MH i2c: E2 08 00 75 E6 80 11 00 00 00 00 00 00 D5 [23:59:14]Write i2c OK [23:59:14]MH_I2C_Read... [23:59:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:14]Read from MH i2c: E2 [23:59:14]MH_I2C_Read... [23:59:14]Read from MH i2c: E2 17 00 [23:59:14]MH_I2C_Read... [23:59:14]Read from MH i2c: E2 17 00 75 E6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 22 [23:59:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [23:59:14]wFMCommunicate OK [23:59:14]requested_item fd.num is exist - process it [23:59:14]SAM_PROTO_GetFieldsCounters [23:59:14]wFMCommunicate request_size=4 [23:59:14]MH_SAM_APDU [23:59:14]CAPDU: 80 13 00 00 [23:59:14]Write to MH i2c: E2 08 00 76 E6 80 13 00 00 00 00 00 00 D8 [23:59:14]Write i2c OK [23:59:14]MH_I2C_Read... [23:59:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:59:14]Read from MH i2c: E2 [23:59:14]MH_I2C_Read... [23:59:14]Read from MH i2c: E2 62 00 [23:59:14]MH_I2C_Read... [23:59:14]Read from MH i2c: E2 62 00 76 E6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A5 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4B 02 00 00 5E 04 04 00 4B 02 00 00 57 04 04 00 4C 02 00 00 19 04 04 00 00 00 00 00 90 00 43 [23:59: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A5 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4B 02 00 00 5E 04 04 00 4B 02 00 00 57 04 04 00 4C 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:59:14]wFMCommunicate OK [23:59:14]SAM_PROTO_GetFieldsCounters done [23:59:14]requested_item shift.num is exist - process it [23:59:14]requested_item shift.opened is exist - process it [23:59:14]req_shift_opened [23:59:14]FM_GetShiftState [23:59:14]SAM_PROTO_GetShiftState [23:59:14]wFMCommunicate request_size=4 [23:59:14]MH_SAM_APDU [23:59:14]CAPDU: 80 13 01 00 [23:59:14]Write to MH i2c: E2 08 00 77 E6 80 13 01 00 00 00 00 00 DA [23:59:15]Write i2c OK [23:59:15]MH_I2C_Read... [23:59:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:15]Read from MH i2c: E2 [23:59:15]MH_I2C_Read... [23:59:15]Read from MH i2c: E2 0E 00 [23:59:15]MH_I2C_Read... [23:59:15]Read from MH i2c: E2 0E 00 77 E6 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 17 [23:59:15]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [23:59:15]wFMCommunicate OK [23:59:15]SAM_PROTO_GetShiftState done [23:59:15]FM_GetShiftState done [23:59:15]req_shift_opened done [23:59:15]requested_item shift.open_date is exist - process it [23:59:15]req_shift_open_date [23:59:15]req_shift_open_date done [23:59:15]produce_requested_data done [23:59:15]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261029,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [23:59:15]process_action_free close_receipt [23:59:15]json_value_free [23:59:15]json_value_free done [23:59:15]process_json_proto returns [23:59:15]Send response to host [23:59:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261029,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [23:59:15]free response buf [23:59:15]execute_script done [23:59:15]execute_script returns [23:59:15]free content buf [23:59:15]Sock 9.Close socket [23:59:15]Sock 9.Thread stoped [23:59:16]OFD Sender: No OFD packet to send [23:59:18]int [23:59:18]Write to MH i2c: 01 00 00 78 E6 5E [23:59:18]*** FLAG_PRN_PAP1 set [23:59:18]Write i2c OK [23:59:18]MH_I2C_Read... [23:59:18]Read from MH i2c: 01 [23:59:18]MH_I2C_Read... [23:59:18]Read from MH i2c: 01 07 00 [23:59:18]MH_I2C_Read... [23:59:18]Read from MH i2c: 01 07 00 78 E6 00 01 00 00 00 FF 0F 74 [23:59:18]state=0 [23:59:18]No paper [23:59:18]int [23:59:18]Write to MH i2c: 01 00 00 79 E6 5F [23:59:18]*** FLAG_PRN_PAP2 set [23:59:18]Write i2c OK [23:59:18]MH_I2C_Read... [23:59:18]Read from MH i2c: 01 [23:59:18]MH_I2C_Read... [23:59:18]Read from MH i2c: 01 07 00 [23:59:18]MH_I2C_Read... [23:59:18]Read from MH i2c: 01 07 00 79 E6 00 03 00 00 00 FF 0F 77 [23:59:18]state=0 [23:59:18]No paper [23:59:18]Cover opened [23:59:21]OFD Sender: No OFD packet to send [23:59:23]Write to MH i2c: 01 00 00 7A E6 60 [23:59:23]Write i2c OK [23:59:23]MH_I2C_Read... [23:59:23]Read from MH i2c: 01 [23:59:23]MH_I2C_Read... [23:59:23]Read from MH i2c: 01 07 00 [23:59:23]MH_I2C_Read... [23:59:23]Read from MH i2c: 01 07 00 7A E6 00 03 00 00 00 FF 0F 78 [23:59:23]state=3 [23:59:23]No paper [23:59:23]Cover opened [23:59:27]OFD Sender: No OFD packet to send [23:59:28]Write to MH i2c: 01 00 00 7B E6 61 [23:59:28]Write i2c OK [23:59:28]MH_I2C_Read... [23:59:28]Read from MH i2c: 01 [23:59:28]MH_I2C_Read... [23:59:28]Read from MH i2c: 01 07 00 [23:59:28]MH_I2C_Read... [23:59:28]Read from MH i2c: 01 07 00 7B E6 00 03 00 00 00 FF 0F 79 [23:59:28]state=3 [23:59:28]No paper [23:59:28]Cover opened [23:59:32]OFD Sender: No OFD packet to send [23:59:33]Write to MH i2c: 01 00 00 7C E6 62 [23:59:33]Write i2c OK [23:59:33]MH_I2C_Read... [23:59:33]Read from MH i2c: 01 [23:59:33]MH_I2C_Read... [23:59:33]Read from MH i2c: 01 07 00 [23:59:33]MH_I2C_Read... [23:59:33]Read from MH i2c: 01 07 00 7C E6 00 03 00 00 00 FF 0F 7A [23:59:33]state=3 [23:59:33]No paper [23:59:33]Cover opened [23:59:37]OFD Sender: No OFD packet to send [23:59:38]Write to MH i2c: 01 00 00 7D E6 63 [23:59:38]Write i2c OK [23:59:38]MH_I2C_Read... [23:59:38]Read from MH i2c: 01 [23:59:38]MH_I2C_Read... [23:59:38]Read from MH i2c: 01 07 00 [23:59:38]MH_I2C_Read... [23:59:38]Read from MH i2c: 01 07 00 7D E6 00 03 00 00 00 FF 0F 7B [23:59:38]state=3 [23:59:38]No paper [23:59:38]Cover opened [23:59:42]OFD Sender: No OFD packet to send [23:59:43]Write to MH i2c: 01 00 00 7E E6 64 [23:59:43]Write i2c OK [23:59:43]MH_I2C_Read... [23:59:43]Read from MH i2c: 01 [23:59:43]MH_I2C_Read... [23:59:43]Read from MH i2c: 01 07 00 [23:59:43]MH_I2C_Read... [23:59:43]Read from MH i2c: 01 07 00 7E E6 00 03 00 00 00 FF 0F 7C [23:59:43]state=3 [23:59:43]No paper [23:59:43]Cover opened [23:59:47]OFD Sender: No OFD packet to send [23:59:48]Write to MH i2c: 01 00 00 7F E6 65 [23:59:48]Write i2c OK [23:59:48]MH_I2C_Read... [23:59:48]Read from MH i2c: 01 [23:59:48]MH_I2C_Read... [23:59:48]Read from MH i2c: 01 07 00 [23:59:48]MH_I2C_Read... [23:59:48]Read from MH i2c: 01 07 00 7F E6 00 03 00 00 00 FF 0F 7D [23:59:48]state=3 [23:59:48]No paper [23:59:48]Cover opened [23:59:50]int [23:59:50]Write to MH i2c: 01 00 00 80 E6 66 [23:59:50]*** FLAG_PRN_PAP1 reset [23:59:50]Write i2c OK [23:59:50]MH_I2C_Read... [23:59:50]Read from MH i2c: 01 [23:59:50]MH_I2C_Read... [23:59:50]Read from MH i2c: 01 07 00 [23:59:50]MH_I2C_Read... [23:59:50]*** FLAG_PRN_PAP2 reset [23:59:50]Read from MH i2c: 01 07 00 80 E6 00 00 00 00 00 FF 0F 7B [23:59:50]state=3 [23:59:50]Cover closed [23:59:52]OFD Sender: No OFD packet to send [23:59:57]OFD Sender: No OFD packet to send [00:00:02]OFD Sender: No OFD packet to send [00:00:07]OFD Sender: No OFD packet to send [00:00:12]OFD Sender: No OFD packet to send [00:00:17]OFD Sender: No OFD packet to send [00:00:22]OFD Sender: No OFD packet to send [00:00:27]OFD Sender: No OFD packet to send [00:00:32]OFD Sender: No OFD packet to send [00:00:37]OFD Sender: No OFD packet to send [00:00:42]OFD Sender: No OFD packet to send [00:00:47]OFD Sender: No OFD packet to send [00:00:52]OFD Sender: No OFD packet to send [00:00:57]OFD Sender: No OFD packet to send [00:01:02]OFD Sender: No OFD packet to send [00:01:07]OFD Sender: No OFD packet to send [00:01:12]OFD Sender: No OFD packet to send [00:01:17]OFD Sender: No OFD packet to send [00:01:22]OFD Sender: No OFD packet to send [00:01:27]OFD Sender: No OFD packet to send [00:01:32]OFD Sender: No OFD packet to send [00:01:37]OFD Sender: No OFD packet to send [00:01:42]OFD Sender: No OFD packet to send [00:01:47]OFD Sender: No OFD packet to send [00:01:52]OFD Sender: No OFD packet to send [00:01:57]OFD Sender: No OFD packet to send [00:02:02]OFD Sender: No OFD packet to send [00:02:07]OFD Sender: No OFD packet to send [00:02:12]OFD Sender: No OFD packet to send [00:02:17]OFD Sender: No OFD packet to send [00:02:22]OFD Sender: No OFD packet to send [00:02:27]OFD Sender: No OFD packet to send [00:02:32]OFD Sender: No OFD packet to send [00:02:37]OFD Sender: No OFD packet to send [00:02:42]OFD Sender: No OFD packet to send [00:02:47]OFD Sender: No OFD packet to send [00:02:52]OFD Sender: No OFD packet to send [00:02:57]OFD Sender: No OFD packet to send [00:03:02]OFD Sender: No OFD packet to send [00:03:07]OFD Sender: No OFD packet to send [00:03:12]OFD Sender: No OFD packet to send [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:35]accept exits with 7 [00:04:35]New connection [00:04:35]New thread 3066473828 created [00:04:35]Thread 3066617188 joined [00:04:35]Waiting for new connection... [00:04:35] Sock 7.Parse request [00:04:35]Sock 7.Check first char [00:04:35]Sock 7.First char is OK [00:04:35]request: POST /json_proto HTTP/1.0 [00:04:35]Method: POST [00:04:35]URL: /json_proto [00:04:35]Method is POST - this is cgi request [00:04:35]url: /json_proto [00:04:35]query_string will be loaded in cgi processing [00:04:35]execute_cgi json_proto POST (null) [00:04:35]execute_cgi path=json_proto method=POST [00:04:35]POST find Content-Length [00:04:35]Host: 172.17.55.133:8080 [00:04:35]Content-Length: 683 [00:04:35]Content-Type: application/json [00:04:35] [00:04:35]POST finish read [00:04:35]Found Content-Length = 683 [00:04:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036585", "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" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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" ] } } [00:04:35]execute_script... [00:04: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)1036585", "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" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "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" ] } } [00:04:35]POST & json_proto [00:04:35]process_json_proto [00:04:35]json parsed OK: [00:04:35]protocol is kg_v1.0 [00:04:35]action value=close_receipt [00:04:35]process_action close_receipt [00:04:35]cmd_close_receipt [00:04:35]MH_GetDate [00:04:35]Write to MH i2c: F0 00 00 81 E6 56 [00:04:35]Write i2c OK [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: F0 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: F0 09 00 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: F0 09 00 81 E6 00 1A 8C C2 66 34 48 D8 65 E6 [00:04:35]GetLastDocTimeStamp 1724025557 [00:04:35]current date 1724025882 [00:04:35]FM_GetShiftState [00:04:35]SAM_PROTO_GetShiftState [00:04:35]wFMCommunicate request_size=4 [00:04:35]MH_SAM_APDU [00:04:35]CAPDU: 80 13 01 00 [00:04:35]Write to MH i2c: E2 08 00 82 E6 80 13 01 00 00 00 00 00 E5 [00:04:35]Write i2c OK [00:04:35]MH_I2C_Read... [00:04:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:35]Read from MH i2c: E2 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: E2 0E 00 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: E2 0E 00 82 E6 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 22 [00:04:35]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [00:04:35]wFMCommunicate OK [00:04:35]SAM_PROTO_GetShiftState done [00:04:35]FM_GetShiftState done [00:04:35]opened in 1723940556 [00:04:35]opened+sec_in_day 1724026956 [00:04:35]quantity*price = 150032 [00:04:35]sum+1 = 150033 [00:04:35]Check (price>sum+1) || (price+1 о реализуемом товаре [00:05:58]line ОКРУГЛЕНИЕ: -0.05 [00:05:58]line ИТОГО: 1000.00 [00:05:58]line Внесено: 1000.00 [00:05:58]line СДАЧА: 0.00 [00:05:58]line НСП 1% : 8.85 [00:05:58]line НДС 12% : 106.20 [00:05:58]line Наличными: 1000.00 [00:05:58]line Безнал.: 0.00 [00:05:58]line Место: АЗС № 94 "Партнер Нефть" [00:05:58]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [00:05:58]line СНО: Общий режим [00:05:58]line Чек 587 18.08.2024 23:59 [00:05:58]line Смена: 449 ФФД: 1.0 [00:05:58]line ЗНМ: 0300000099 [00:05:58]line РНМ: 0000000000091865 [00:05:58]line Версия ККМ: 001 [00:05:58]line ФМ: 0000000000871820 [00:05:58]line ФД: 261029 [00:05:58]line ФПД: 52945226516405 [00:05:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240818T235917&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261029&fm=52945226516405&tin=02508201610067®Number=0000000000091865&sum=100000 [00:05:58]written 0, free lines is 4095 [00:05:58]Write to MH i2c: 01 00 00 48 00 48 [00:05:58]Write i2c OK [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: 01 [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: 01 07 00 [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 5F 0C BA [00:05:58]RasterBufferAndPrint [00:05:58]line [00:05:58]line [00:05:58]line [00:05:58]line [00:05:58]line [00:05:58]written 0, free lines is 3176 [00:05:58]MH_Cut [00:05:58]Write to MH i2c: D1 01 00 4F 00 01 21 [00:05:58]Write i2c OK [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: D1 [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: D1 01 00 [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: D1 01 00 4F 00 00 20 [00:05:58]Write to MH i2c: 01 00 00 50 00 50 [00:05:58]Write i2c OK [00:05:58]MH_I2C_Read... [00:05:59]OFD Sender: No OFD packet to send [00:06:00]*** Cut start [00:06:00]*** Purtial cut [00:06:00]*** Stage 1: CUTSNS_PIN = 1 [00:06:02]Read from MH i2c: 01 [00:06:02]MH_I2C_Read... [00:06:02]*** Stop cut motor [00:06:02]*** Cut end [00:06:02]Read from MH i2c: 01 07 00 [00:06:02]MH_I2C_Read... [00:06:02]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [00:06:02]process_action print_doc done [00:06:02]requested_data is exist [00:06:02]produce_requested_data [00:06:02]produce_requested_data return (null) [00:06:02]process_action_free print_doc [00:06:02]json_value_free [00:06:02]json_value_free done [00:06:02]process_json_proto returns [00:06:02]Send response to host [00:06:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [00:06:02]free response buf [00:06:02]execute_script done [00:06:02]execute_script returns [00:06:02]free content buf [00:06:02]Sock 6.Close socket [00:06:02]Sock 6.Thread stoped [00:06:04]OFD Sender: No OFD packet to send [00:06:09]OFD Sender: No OFD packet to send [00:06:14]OFD Sender: No OFD packet to send [00:06:19]OFD Sender: No OFD packet to send [00:06:24]OFD Sender: No OFD packet to send [00:06:29]OFD Sender: No OFD packet to send [00:06:34]OFD Sender: No OFD packet to send [00:06:39]OFD Sender: No OFD packet to send [00:06:44]OFD Sender: No OFD packet to send [00:06:49]OFD Sender: No OFD packet to send [00:06:54]OFD Sender: No OFD packet to send [00:06:59]OFD Sender: No OFD packet to send [00:07:04]OFD Sender: No OFD packet to send [00:07:09]OFD Sender: No OFD packet to send [00:07:09]accept exits with 9 [00:07:09]New connection [00:07:09]New thread 3067104612 created [00:07:09]Thread 3067247972 joined [00:07:09]Waiting for new connection... [00:07:09] Sock 9.Parse request [00:07:09]Sock 9.Check first char [00:07:09]Sock 9.First char is OK [00:07:09]request: POST /json_proto HTTP/1.0 [00:07:09]Method: POST [00:07:09]URL: /json_proto [00:07:09]Method is POST - this is cgi request [00:07:09]url: /json_proto [00:07:09]query_string will be loaded in cgi processing [00:07:09]execute_cgi json_proto POST (null) [00:07:09]execute_cgi path=json_proto method=POST [00:07:09]POST find Content-Length [00:07:09]Host: 172.17.55.133:8080 [00:07:09]Content-Length: 215 [00:07:09]Content-Type: application/json [00:07:09] [00:07:09]POST finish read [00:07:09]Found Content-Length = 215 [00:07:09]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:07:09]execute_script... [00:07:09]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:07:09]POST & json_proto [00:07:09]process_json_proto [00:07:09]json parsed OK: [00:07:09]protocol is kg_v1.0 [00:07:09]action value=get_value [00:07:09]process_action get_value [00:07:09]cmd_get_value [00:07:09]process_action get_value done [00:07:09]requested_data is exist [00:07:09]produce_requested_data [00:07:09]requested_item kkm.sn is exist - process it [00:07:09]requested_item kkm.ver is exist - process it [00:07:09]requested_item fm.sn is exist - process it [00:07:09]wFMCommunicate request_size=4 [00:07:09]MH_SAM_APDU [00:07:09]CAPDU: 80 11 00 00 [00:07:09]Write to MH i2c: E2 08 00 51 00 80 11 00 00 00 00 00 00 CB [00:07:09]Write i2c OK [00:07:09]MH_I2C_Read... [00:07:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:10]Read from MH i2c: E2 [00:07:10]MH_I2C_Read... [00:07:10]Read from MH i2c: E2 17 00 [00:07:10]MH_I2C_Read... [00:07:10]Read from MH i2c: E2 17 00 51 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 18 [00:07:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [00:07:10]wFMCommunicate OK [00:07:10]requested_item fd.num is exist - process it [00:07:10]SAM_PROTO_GetFieldsCounters [00:07:10]wFMCommunicate request_size=4 [00:07:10]MH_SAM_APDU [00:07:10]CAPDU: 80 13 00 00 [00:07:10]Write to MH i2c: E2 08 00 52 00 80 13 00 00 00 00 00 00 CE [00:07:10]Write i2c OK [00:07:10]MH_I2C_Read... [00:07:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:10]Read from MH i2c: E2 [00:07:10]MH_I2C_Read... [00:07:10]Read from MH i2c: E2 62 00 [00:07:10]MH_I2C_Read... [00:07:10]Read from MH i2c: E2 62 00 52 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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A6 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4C 02 00 00 5E 04 04 00 4C 02 00 00 57 04 04 00 4D 02 00 00 19 04 04 00 00 00 00 00 90 00 3D [00:07: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A6 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4C 02 00 00 5E 04 04 00 4C 02 00 00 57 04 04 00 4D 02 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:10]wFMCommunicate OK [00:07:10]SAM_PROTO_GetFieldsCounters done [00:07:10]requested_item shift.num is exist - process it [00:07:10]requested_item shift.opened is exist - process it [00:07:10]req_shift_opened [00:07:10]FM_GetShiftState [00:07:10]SAM_PROTO_GetShiftState [00:07:10]wFMCommunicate request_size=4 [00:07:10]MH_SAM_APDU [00:07:10]CAPDU: 80 13 01 00 [00:07:10]Write to MH i2c: E2 08 00 53 00 80 13 01 00 00 00 00 00 D0 [00:07:10]Write i2c OK [00:07:10]MH_I2C_Read... [00:07:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:10]Read from MH i2c: E2 [00:07:10]MH_I2C_Read... [00:07:10]Read from MH i2c: E2 0E 00 [00:07:10]MH_I2C_Read... [00:07:10]Read from MH i2c: E2 0E 00 53 00 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 0D [00:07:10]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [00:07:10]wFMCommunicate OK [00:07:10]SAM_PROTO_GetShiftState done [00:07:10]FM_GetShiftState done [00:07:10]req_shift_opened done [00:07:10]requested_item shift.open_date is exist - process it [00:07:10]req_shift_open_date [00:07:10]req_shift_open_date done [00:07:10]produce_requested_data done [00:07:10]produce_requested_data return {"kkm.sn":"0300000099","kkm.ver":"001","fm.sn":"0000000000871820","fd.num":261030,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [00:07:10]process_action_free get_value [00:07:10]json_value_free [00:07:10]json_value_free done [00:07:10]process_json_proto returns [00:07:10]Send response to host [00:07:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000099","kkm.ver":"001","fm.sn":"0000000000871820","fd.num":261030,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [00:07:10]free response buf [00:07:10]execute_script done [00:07:10]execute_script returns [00:07:10]free content buf [00:07:10]Sock 9.Close socket [00:07:10]Sock 9.Thread stoped [00:07:10]accept exits with 7 [00:07:10]New connection [00:07:10]New thread 3067247972 created [00:07:10]Thread 3067104612 joined [00:07:10]Waiting for new connection... [00:07:10] Sock 7.Parse request [00:07:10]Sock 7.Check first char [00:07:10]Sock 7.First char is OK [00:07:10]request: POST /json_proto HTTP/1.0 [00:07:10]Method: POST [00:07:10]URL: /json_proto [00:07:10]Method is POST - this is cgi request [00:07:10]url: /json_proto [00:07:10]query_string will be loaded in cgi processing [00:07:10]execute_cgi json_proto POST (null) [00:07:10]execute_cgi path=json_proto method=POST [00:07:10]POST find Content-Length [00:07:10]Host: 172.17.55.133:8080 [00:07:10]Content-Length: 331 [00:07:10]Content-Type: application/json [00:07:10] [00:07:10]POST finish read [00:07:10]Found Content-Length = 331 [00:07:10]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:07:10]execute_script... [00:07:10]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:07:10]POST & json_proto [00:07:10]process_json_proto [00:07:10]json parsed OK: [00:07:10]protocol is kg_v1.0 [00:07:10]action value=get_value [00:07:10]process_action get_value [00:07:10]cmd_get_value [00:07:10]process_action get_value done [00:07:10]requested_data is exist [00:07:10]produce_requested_data [00:07:10]requested_item fm.sale.total is exist - process it [00:07:10]SAM_PROTO_GetFMData [00:07:10]wFMCommunicate request_size=4 [00:07:10]MH_SAM_APDU [00:07:10]CAPDU: 80 13 03 00 [00:07:10]Write to MH i2c: E2 08 00 54 00 80 13 03 00 00 00 00 00 D3 [00:07:10]Write i2c OK [00:07:10]MH_I2C_Read... [00:07:10]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:10]Read from MH i2c: E2 [00:07:10]MH_I2C_Read... [00:07:10]Read from MH i2c: E2 FD 00 [00:07:10]MH_I2C_Read... [00:07:10]Read from MH i2c: E2 FD 00 54 00 00 C4 04 85 04 C0 04 6E 04 04 00 24 F8 03 00 69 04 A3 00 6F 04 04 00 BA F5 03 00 B1 04 05 00 45 65 C1 AC 04 70 04 05 00 18 67 A7 BC 03 72 04 04 00 2D FE 19 F0 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 99 CA 21 7F 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 25 EA 97 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 6A 02 00 00 B1 04 04 00 44 AB D8 05 70 04 04 00 44 AB D8 05 72 04 00 00 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 91 F7 9E EF 03 09 00 90 00 D3 [00:07:10]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 24 F8 03 00 69 04 A3 00 6F 04 04 00 BA F5 03 00 B1 04 05 00 45 65 C1 AC 04 70 04 05 00 18 67 A7 BC 03 72 04 04 00 2D FE 19 F0 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 99 CA 21 7F 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 25 EA 97 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 6A 02 00 00 B1 04 04 00 44 AB D8 05 70 04 04 00 44 AB D8 05 72 04 00 00 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 91 F7 9E EF 03 09 00 90 00 [00:07:10]wFMCommunicate OK [00:07:10]wFMCommunicate request_size=4 [00:07:10]MH_SAM_APDU [00:07:10]CAPDU: 80 17 00 00 [00:07:10]Write to MH i2c: E2 08 00 55 00 80 17 00 00 00 00 00 00 D5 [00:07:10]Write i2c OK [00:07:10]MH_I2C_Read... [00:07:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:11]Read from MH i2c: E2 [00:07:11]MH_I2C_Read... [00:07:11]Read from MH i2c: E2 FD 00 [00:07:11]MH_I2C_Read... [00:07:11]Read from MH i2c: E2 FD 00 55 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0E 3F 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E5 [00:07:11]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0E 3F 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:11]wFMCommunicate OK [00:07:11]wFMCommunicate request_size=4 [00:07:11]MH_SAM_APDU [00:07:11]CAPDU: 80 17 00 00 [00:07:11]Write to MH i2c: E2 08 00 56 00 80 17 00 00 00 00 00 00 D6 [00:07:11]Write i2c OK [00:07:11]MH_I2C_Read... [00:07:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:11]Read from MH i2c: E2 [00:07:11]MH_I2C_Read... [00:07:11]Read from MH i2c: E2 FD 00 [00:07:11]MH_I2C_Read... [00:07:11]Read from MH i2c: E2 FD 00 56 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 EB [00:07:11]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:11]wFMCommunicate OK [00:07:11]wFMCommunicate request_size=4 [00:07:11]MH_SAM_APDU [00:07:11]CAPDU: 80 17 00 00 [00:07:11]Write to MH i2c: E2 08 00 57 00 80 17 00 00 00 00 00 00 D7 [00:07:11]Write i2c OK [00:07:11]MH_I2C_Read... [00:07:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:11]Read from MH i2c: E2 [00:07:11]MH_I2C_Read... [00:07:11]Read from MH i2c: E2 FD 00 [00:07:11]MH_I2C_Read... [00:07:11]Read from MH i2c: E2 FD 00 57 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4F [00:07:11]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:11]wFMCommunicate OK [00:07:11]wFMCommunicate request_size=4 [00:07:11]MH_SAM_APDU [00:07:11]CAPDU: 80 17 00 00 [00:07:11]Write to MH i2c: E2 08 00 58 00 80 17 00 00 00 00 00 00 D8 [00:07:11]Write i2c OK [00:07:11]MH_I2C_Read... [00:07:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:07:11]Read from MH i2c: E2 [00:07:11]MH_I2C_Read... [00:07:11]Read from MH i2c: E2 E1 00 [00:07:11]MH_I2C_Read... [00:07:11]Read from MH i2c: E2 E1 00 58 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C6 [00:07:11]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:07:12]wFMCommunicate OK [00:07:12]SAM_PROTO_GetFMData done [00:07:12]requested_item fm.sale_refund.total is exist - process it [00:07:12]requested_item fm.buy.total is exist - process it [00:07:12]requested_item shift.sale.total is exist - process it [00:07:12]SAM_PROTO_GetShiftData [00:07:12]wFMCommunicate request_size=4 [00:07:12]MH_SAM_APDU [00:07:12]CAPDU: 80 13 02 00 [00:07:12]Write to MH i2c: E2 08 00 59 00 80 13 02 00 00 00 00 00 D7 [00:07:12]Write i2c OK [00:07:12]MH_I2C_Read... [00:07:12]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:12]Read from MH i2c: E2 [00:07:12]MH_I2C_Read... [00:07:12]Read from MH i2c: E2 FD 00 [00:07:12]MH_I2C_Read... [00:07:12]Read from MH i2c: E2 FD 00 59 00 00 B1 04 AA 04 AD 04 6E 04 04 00 4C 02 00 00 69 04 9E 00 6F 04 04 00 4C 02 00 00 B1 04 04 00 4F 10 DE 02 70 04 04 00 08 3C 19 02 72 04 03 00 47 D4 C4 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 4C F9 4D 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 75 7F 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 53 [00:07:12]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 4C 02 00 00 69 04 9E 00 6F 04 04 00 4C 02 00 00 B1 04 04 00 4F 10 DE 02 70 04 04 00 08 3C 19 02 72 04 03 00 47 D4 C4 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 4C F9 4D 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 75 7F 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:07:12]wFMCommunicate OK [00:07:12]wFMCommunicate request_size=4 [00:07:12]MH_SAM_APDU [00:07:12]CAPDU: 80 17 00 00 [00:07:12]Write to MH i2c: E2 08 00 5A 00 80 17 00 00 00 00 00 00 DA [00:07:12]Write i2c OK [00:07:12]MH_I2C_Read... [00:07:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:12]Read from MH i2c: E2 [00:07:12]MH_I2C_Read... [00:07:12]Read from MH i2c: E2 FD 00 [00:07:12]MH_I2C_Read... [00:07:12]Read from MH i2c: E2 FD 00 5A 00 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 F3 [00:07:12]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:07:12]wFMCommunicate OK [00:07:12]wFMCommunicate request_size=4 [00:07:12]MH_SAM_APDU [00:07:12]CAPDU: 80 17 00 00 [00:07:12]Write to MH i2c: E2 08 00 5B 00 80 17 00 00 00 00 00 00 DB [00:07:12]Write i2c OK [00:07:12]MH_I2C_Read... [00:07:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:13]Read from MH i2c: E2 [00:07:13]MH_I2C_Read... [00:07:13]Read from MH i2c: E2 FD 00 [00:07:13]MH_I2C_Read... [00:07:13]Read from MH i2c: E2 FD 00 5B 00 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 94 [00:07:13]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:07:13]wFMCommunicate OK [00:07:13]wFMCommunicate request_size=4 [00:07:13]MH_SAM_APDU [00:07:13]CAPDU: 80 17 00 00 [00:07:13]Write to MH i2c: E2 08 00 5C 00 80 17 00 00 00 00 00 00 DC [00:07:13]Write i2c OK [00:07:13]MH_I2C_Read... [00:07:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:13]Read from MH i2c: E2 [00:07:13]MH_I2C_Read... [00:07:13]Read from MH i2c: E2 FD 00 [00:07:13]MH_I2C_Read... [00:07:13]Read from MH i2c: E2 FD 00 5C 00 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 54 [00:07:13]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:07:13]wFMCommunicate OK [00:07:13]wFMCommunicate request_size=4 [00:07:13]MH_SAM_APDU [00:07:13]CAPDU: 80 17 00 00 [00:07:13]Write to MH i2c: E2 08 00 5D 00 80 17 00 00 00 00 00 00 DD [00:07:13]Write i2c OK [00:07:13]MH_I2C_Read... [00:07:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:07:13]Read from MH i2c: E2 [00:07:13]MH_I2C_Read... [00:07:13]Read from MH i2c: E2 CE 00 [00:07:13]MH_I2C_Read... [00:07:13]Read from MH i2c: E2 CE 00 5D 00 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 C2 [00:07:13]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:07:13]wFMCommunicate OK [00:07:13]SAM_PROTO_GetShiftData done [00:07:13]requested_item shift.sale.total_cash is exist - process it [00:07:13]requested_item shift.sale_refund.total is exist - process it [00:07:13]requested_item shift.sale_refund.total_cash is exist - process it [00:07:13]requested_item shift.buy.total is exist - process it [00:07:13]requested_item shift.buy.total_cash is exist - process it [00:07:13]produce_requested_data done [00:07:13]produce_requested_data return {"fm.sale.total":200782247.09,"fm.sale_refund.total":980857.00,"fm.buy.total":0.00,"shift.sale.total":481075.99,"shift.sale.total_cash":352082.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:07:13]process_action_free get_value [00:07:13]json_value_free [00:07:13]json_value_free done [00:07:13]process_json_proto returns [00:07:13]Send response to host [00:07:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":200782247.09,"fm.sale_refund.total":980857.00,"fm.buy.total":0.00,"shift.sale.total":481075.99,"shift.sale.total_cash":352082.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:07:13]free response buf [00:07:13]execute_script done [00:07:13]execute_script returns [00:07:13]free content buf [00:07:13]Sock 7.Close socket [00:07:13]Sock 7.Thread stoped [00:07:13]accept exits with 9 [00:07:13]New connection [00:07:13]New thread 3067104612 created [00:07:13]Thread 3067247972 joined [00:07:13]Waiting for new connection... [00:07:13] Sock 9.Parse request [00:07:13]Sock 9.Check first char [00:07:13]Sock 9.First char is OK [00:07:13]request: POST /json_proto HTTP/1.0 [00:07:13]Method: POST [00:07:13]URL: /json_proto [00:07:13]Method is POST - this is cgi request [00:07:13]url: /json_proto [00:07:13]query_string will be loaded in cgi processing [00:07:13]execute_cgi json_proto POST (null) [00:07:13]execute_cgi path=json_proto method=POST [00:07:13]POST find Content-Length [00:07:13]Host: 172.17.55.133:8080 [00:07:13]Content-Length: 331 [00:07:13]Content-Type: application/json [00:07:13] [00:07:13]POST finish read [00:07:13]Found Content-Length = 331 [00:07:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:13]execute_script... [00:07:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:13]POST & json_proto [00:07:13]process_json_proto [00:07:13]json parsed OK: [00:07:13]protocol is kg_v1.0 [00:07:13]action value=get_value [00:07:13]process_action get_value [00:07:13]cmd_get_value [00:07:13]process_action get_value done [00:07:13]requested_data is exist [00:07:13]produce_requested_data [00:07:13]requested_item fm.sale.total is exist - process it [00:07:13]SAM_PROTO_GetFMData [00:07:13]wFMCommunicate request_size=4 [00:07:13]MH_SAM_APDU [00:07:13]CAPDU: 80 13 03 00 [00:07:13]Write to MH i2c: E2 08 00 5E 00 80 13 03 00 00 00 00 00 DD [00:07:13]Write i2c OK [00:07:13]MH_I2C_Read... [00:07:14]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:14]Read from MH i2c: E2 [00:07:14]MH_I2C_Read... [00:07:14]Read from MH i2c: E2 FD 00 [00:07:14]MH_I2C_Read... [00:07:14]Read from MH i2c: E2 FD 00 5E 00 00 C4 04 85 04 C0 04 6E 04 04 00 24 F8 03 00 69 04 A3 00 6F 04 04 00 BA F5 03 00 B1 04 05 00 45 65 C1 AC 04 70 04 05 00 18 67 A7 BC 03 72 04 04 00 2D FE 19 F0 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 99 CA 21 7F 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 25 EA 97 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 6A 02 00 00 B1 04 04 00 44 AB D8 05 70 04 04 00 44 AB D8 05 72 04 00 00 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 91 F7 9E EF 03 09 00 90 00 DD [00:07:14]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 24 F8 03 00 69 04 A3 00 6F 04 04 00 BA F5 03 00 B1 04 05 00 45 65 C1 AC 04 70 04 05 00 18 67 A7 BC 03 72 04 04 00 2D FE 19 F0 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 99 CA 21 7F 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 25 EA 97 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 6A 02 00 00 B1 04 04 00 44 AB D8 05 70 04 04 00 44 AB D8 05 72 04 00 00 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 91 F7 9E EF 03 09 00 90 00 [00:07:14]wFMCommunicate OK [00:07:14]wFMCommunicate request_size=4 [00:07:14]MH_SAM_APDU [00:07:14]CAPDU: 80 17 00 00 [00:07:14]Write to MH i2c: E2 08 00 5F 00 80 17 00 00 00 00 00 00 DF [00:07:14]Write i2c OK [00:07:14]MH_I2C_Read... [00:07:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:14]Read from MH i2c: E2 [00:07:14]MH_I2C_Read... [00:07:14]Read from MH i2c: E2 FD 00 [00:07:14]MH_I2C_Read... [00:07:14]Read from MH i2c: E2 FD 00 5F 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0E 3F 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EF [00:07:14]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0E 3F 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:14]wFMCommunicate OK [00:07:14]wFMCommunicate request_size=4 [00:07:14]MH_SAM_APDU [00:07:14]CAPDU: 80 17 00 00 [00:07:14]Write to MH i2c: E2 08 00 60 00 80 17 00 00 00 00 00 00 E0 [00:07:14]Write i2c OK [00:07:14]MH_I2C_Read... [00:07:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:14]Read from MH i2c: E2 [00:07:14]MH_I2C_Read... [00:07:14]Read from MH i2c: E2 FD 00 [00:07:14]MH_I2C_Read... [00:07:14]Read from MH i2c: E2 FD 00 60 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 F5 [00:07:14]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:14]wFMCommunicate OK [00:07:14]wFMCommunicate request_size=4 [00:07:14]MH_SAM_APDU [00:07:14]CAPDU: 80 17 00 00 [00:07:14]Write to MH i2c: E2 08 00 61 00 80 17 00 00 00 00 00 00 E1 [00:07:15]OFD Sender: No OFD packet to send [00:07:15]Write i2c OK [00:07:15]MH_I2C_Read... [00:07:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:15]Read from MH i2c: E2 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: E2 FD 00 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: E2 FD 00 61 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 59 [00:07:15]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:15]wFMCommunicate OK [00:07:15]wFMCommunicate request_size=4 [00:07:15]MH_SAM_APDU [00:07:15]CAPDU: 80 17 00 00 [00:07:15]Write to MH i2c: E2 08 00 62 00 80 17 00 00 00 00 00 00 E2 [00:07:15]Write i2c OK [00:07:15]MH_I2C_Read... [00:07:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:07:15]Read from MH i2c: E2 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: E2 E1 00 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: E2 E1 00 62 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D0 [00:07:15]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:07:15]wFMCommunicate OK [00:07:15]SAM_PROTO_GetFMData done [00:07:15]requested_item fm.sale_refund.total is exist - process it [00:07:15]requested_item fm.buy.total is exist - process it [00:07:15]requested_item shift.sale.total is exist - process it [00:07:15]SAM_PROTO_GetShiftData [00:07:15]wFMCommunicate request_size=4 [00:07:15]MH_SAM_APDU [00:07:15]CAPDU: 80 13 02 00 [00:07:15]Write to MH i2c: E2 08 00 63 00 80 13 02 00 00 00 00 00 E1 [00:07:15]Write i2c OK [00:07:15]MH_I2C_Read... [00:07:16]Read from MH i2c: E2 [00:07:16]MH_I2C_Read... [00:07:16]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:16]Read from MH i2c: E2 FD 00 [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: E2 FD 00 63 00 00 B1 04 AA 04 AD 04 6E 04 04 00 4C 02 00 00 69 04 9E 00 6F 04 04 00 4C 02 00 00 B1 04 04 00 4F 10 DE 02 70 04 04 00 08 3C 19 02 72 04 03 00 47 D4 C4 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 4C F9 4D 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 75 7F 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5D [00:07:16]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 4C 02 00 00 69 04 9E 00 6F 04 04 00 4C 02 00 00 B1 04 04 00 4F 10 DE 02 70 04 04 00 08 3C 19 02 72 04 03 00 47 D4 C4 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 4C F9 4D 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 75 7F 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:07:16]wFMCommunicate OK [00:07:16]wFMCommunicate request_size=4 [00:07:16]MH_SAM_APDU [00:07:16]CAPDU: 80 17 00 00 [00:07:16]Write to MH i2c: E2 08 00 64 00 80 17 00 00 00 00 00 00 E4 [00:07:16]Write i2c OK [00:07:16]MH_I2C_Read... [00:07:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:16]Read from MH i2c: E2 [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: E2 FD 00 [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: E2 FD 00 64 00 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 FD [00:07:16]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:07:16]wFMCommunicate OK [00:07:16]wFMCommunicate request_size=4 [00:07:16]MH_SAM_APDU [00:07:16]CAPDU: 80 17 00 00 [00:07:16]Write to MH i2c: E2 08 00 65 00 80 17 00 00 00 00 00 00 E5 [00:07:16]Write i2c OK [00:07:16]MH_I2C_Read... [00:07:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:16]Read from MH i2c: E2 [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: E2 FD 00 [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: E2 FD 00 65 00 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 9E [00:07:17]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:07:17]wFMCommunicate OK [00:07:17]wFMCommunicate request_size=4 [00:07:17]MH_SAM_APDU [00:07:17]CAPDU: 80 17 00 00 [00:07:17]Write to MH i2c: E2 08 00 66 00 80 17 00 00 00 00 00 00 E6 [00:07:17]Write i2c OK [00:07:17]MH_I2C_Read... [00:07:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:17]Read from MH i2c: E2 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: E2 FD 00 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: E2 FD 00 66 00 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 5E [00:07:17]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:07:17]wFMCommunicate OK [00:07:17]wFMCommunicate request_size=4 [00:07:17]MH_SAM_APDU [00:07:17]CAPDU: 80 17 00 00 [00:07:17]Write to MH i2c: E2 08 00 67 00 80 17 00 00 00 00 00 00 E7 [00:07:17]Write i2c OK [00:07:17]MH_I2C_Read... [00:07:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:07:17]Read from MH i2c: E2 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: E2 CE 00 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: E2 CE 00 67 00 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 CC [00:07:17]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:07:17]wFMCommunicate OK [00:07:17]SAM_PROTO_GetShiftData done [00:07:17]requested_item shift.sale.total_cash is exist - process it [00:07:17]requested_item shift.sale_refund.total is exist - process it [00:07:17]requested_item shift.sale_refund.total_cash is exist - process it [00:07:17]requested_item shift.buy.total is exist - process it [00:07:17]requested_item shift.buy.total_cash is exist - process it [00:07:17]produce_requested_data done [00:07:17]produce_requested_data return {"fm.sale.total":200782247.09,"fm.sale_refund.total":980857.00,"fm.buy.total":0.00,"shift.sale.total":481075.99,"shift.sale.total_cash":352082.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:07:17]process_action_free get_value [00:07:17]json_value_free [00:07:17]json_value_free done [00:07:17]process_json_proto returns [00:07:17]Send response to host [00:07:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":200782247.09,"fm.sale_refund.total":980857.00,"fm.buy.total":0.00,"shift.sale.total":481075.99,"shift.sale.total_cash":352082.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:07:17]free response buf [00:07:17]execute_script done [00:07:17]execute_script returns [00:07:17]free content buf [00:07:17]Sock 9.Close socket [00:07:17]Sock 9.Thread stoped [00:07:17]accept exits with 7 [00:07:17]New connection [00:07:17]New thread 3067247972 created [00:07:17]Thread 3067104612 joined [00:07:17]Waiting for new connection... [00:07:17] Sock 7.Parse request [00:07:17]Sock 7.Check first char [00:07:17]Sock 7.First char is OK [00:07:17]request: POST /json_proto HTTP/1.0 [00:07:17]Method: POST [00:07:17]URL: /json_proto [00:07:17]Method is POST - this is cgi request [00:07:17]url: /json_proto [00:07:17]query_string will be loaded in cgi processing [00:07:17]execute_cgi json_proto POST (null) [00:07:17]execute_cgi path=json_proto method=POST [00:07:17]POST find Content-Length [00:07:17]Host: 172.17.55.133:8080 [00:07:17]Content-Length: 238 [00:07:17]Content-Type: application/json [00:07:17] [00:07:17]POST finish read [00:07:17]Found Content-Length = 238 [00:07:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0442\u0430\u0435\u0432 \u0422." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:17]execute_script... [00:07:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0442\u0430\u0435\u0432 \u0422." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:17]POST & json_proto [00:07:17]process_json_proto [00:07:17]json parsed OK: [00:07:17]protocol is kg_v1.0 [00:07:17]action value=x_report [00:07:17]process_action x_report [00:07:17]cmd_x_report [00:07:17]MH_GetDate [00:07:17]Write to MH i2c: F0 00 00 68 00 57 [00:07:17]Write i2c OK [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: F0 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: F0 09 00 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: F0 09 00 68 00 00 B6 8C C2 66 34 48 D8 65 83 [00:07:17]GetLastDocTimeStamp 1724025557 [00:07:17]current date 1724026038 [00:07:17]FM_GetShiftState [00:07:17]SAM_PROTO_GetShiftState [00:07:17]wFMCommunicate request_size=4 [00:07:17]MH_SAM_APDU [00:07:17]CAPDU: 80 13 01 00 [00:07:17]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [00:07:17]Write i2c OK [00:07:17]MH_I2C_Read... [00:07:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:17]Read from MH i2c: E2 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: E2 0E 00 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 23 [00:07:17]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [00:07:17]wFMCommunicate OK [00:07:17]SAM_PROTO_GetShiftState done [00:07:17]FM_GetShiftState done [00:07:17]KKMCreateXReportDocument [00:07:17]Load OK [00:07:17]Malloc new data [00:07:17]MH_GetDate [00:07:17]Write to MH i2c: F0 00 00 6A 00 59 [00:07:17]Write i2c OK [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: F0 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: F0 09 00 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: F0 09 00 6A 00 00 B6 8C C2 66 34 48 D8 65 85 [00:07:17]Malloc new data [00:07:17]Malloc new data [00:07:17]wFMCommunicate request_size=4 [00:07:17]MH_SAM_APDU [00:07:17]CAPDU: 80 11 00 00 [00:07:18]Write to MH i2c: E2 08 00 6B 00 80 11 00 00 00 00 00 00 E5 [00:07:18]Write i2c OK [00:07:18]MH_I2C_Read... [00:07:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:18]Read from MH i2c: E2 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 17 00 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 17 00 6B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 32 [00:07:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [00:07:18]wFMCommunicate OK [00:07:18]SAM_PROTO_GetFieldsCounters [00:07:18]wFMCommunicate request_size=4 [00:07:18]MH_SAM_APDU [00:07:18]CAPDU: 80 13 00 00 [00:07:18]Write to MH i2c: E2 08 00 6C 00 80 13 00 00 00 00 00 00 E8 [00:07:18]Write i2c OK [00:07:18]MH_I2C_Read... [00:07:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:18]Read from MH i2c: E2 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 62 00 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 62 00 6C 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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A6 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4C 02 00 00 5E 04 04 00 4C 02 00 00 57 04 04 00 4D 02 00 00 19 04 04 00 00 00 00 00 90 00 57 [00:07: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A6 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4C 02 00 00 5E 04 04 00 4C 02 00 00 57 04 04 00 4D 02 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:18]wFMCommunicate OK [00:07:18]SAM_PROTO_GetFieldsCounters done [00:07:18]Malloc new data [00:07:18]Malloc new data [00:07:18]Malloc new data [00:07:18]KKMCreateXReportDocument OK [00:07:18]KKMSetXReportData OK [00:07:18]KKMPrepareXReportFMData [00:07:18]SAM_PROTO_GetShiftData [00:07:18]wFMCommunicate request_size=4 [00:07:18]MH_SAM_APDU [00:07:18]CAPDU: 80 13 02 00 [00:07:18]Write to MH i2c: E2 08 00 6D 00 80 13 02 00 00 00 00 00 EB [00:07:18]Write i2c OK [00:07:18]MH_I2C_Read... [00:07:18]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:18]Read from MH i2c: E2 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 FD 00 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 FD 00 6D 00 00 B1 04 AA 04 AD 04 6E 04 04 00 4C 02 00 00 69 04 9E 00 6F 04 04 00 4C 02 00 00 B1 04 04 00 4F 10 DE 02 70 04 04 00 08 3C 19 02 72 04 03 00 47 D4 C4 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 4C F9 4D 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 75 7F 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 67 [00:07:18]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 4C 02 00 00 69 04 9E 00 6F 04 04 00 4C 02 00 00 B1 04 04 00 4F 10 DE 02 70 04 04 00 08 3C 19 02 72 04 03 00 47 D4 C4 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 4C F9 4D 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 75 7F 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:07:18]wFMCommunicate OK [00:07:18]wFMCommunicate request_size=4 [00:07:18]MH_SAM_APDU [00:07:18]CAPDU: 80 17 00 00 [00:07:18]Write to MH i2c: E2 08 00 6E 00 80 17 00 00 00 00 00 00 EE [00:07:18]Write i2c OK [00:07:18]MH_I2C_Read... [00:07:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:19]Read from MH i2c: E2 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: E2 FD 00 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: E2 FD 00 6E 00 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 07 [00:07:19]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:07:19]wFMCommunicate OK [00:07:19]wFMCommunicate request_size=4 [00:07:19]MH_SAM_APDU [00:07:19]CAPDU: 80 17 00 00 [00:07:19]Write to MH i2c: E2 08 00 6F 00 80 17 00 00 00 00 00 00 EF [00:07:19]Write i2c OK [00:07:19]MH_I2C_Read... [00:07:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:19]Read from MH i2c: E2 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: E2 FD 00 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: E2 FD 00 6F 00 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 A8 [00:07:19]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:07:19]wFMCommunicate OK [00:07:19]wFMCommunicate request_size=4 [00:07:19]MH_SAM_APDU [00:07:19]CAPDU: 80 17 00 00 [00:07:19]Write to MH i2c: E2 08 00 70 00 80 17 00 00 00 00 00 00 F0 [00:07:19]Write i2c OK [00:07:19]MH_I2C_Read... [00:07:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:20]Read from MH i2c: E2 [00:07:20]MH_I2C_Read... [00:07:20]Read from MH i2c: E2 FD 00 [00:07:20]MH_I2C_Read... [00:07:20]OFD Sender: No OFD packet to send [00:07:20]Read from MH i2c: E2 FD 00 70 00 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 68 [00:07:20]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:07:20]wFMCommunicate OK [00:07:20]wFMCommunicate request_size=4 [00:07:20]MH_SAM_APDU [00:07:20]CAPDU: 80 17 00 00 [00:07:20]Write to MH i2c: E2 08 00 71 00 80 17 00 00 00 00 00 00 F1 [00:07:20]Write i2c OK [00:07:20]MH_I2C_Read... [00:07:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:07:20]Read from MH i2c: E2 [00:07:20]MH_I2C_Read... [00:07:20]Read from MH i2c: E2 CE 00 [00:07:20]MH_I2C_Read... [00:07:20]Read from MH i2c: E2 CE 00 71 00 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 D6 [00:07:20]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:07:20]wFMCommunicate OK [00:07:20]SAM_PROTO_GetShiftData done [00:07:20]1194 (1197) - счетчики итогов смены [00:07:20] 1134 (4) - 588 - количество чеков со всеми признаками расчетов [00:07:20] 1129 (158) - счетчики операций «приход» [00:07:20] 1135 (4) - 588 - количество чеков по признаку расчетов [00:07:20] 1201 (4) - 481075.99 - общая итоговая сумма в чеках [00:07:20] 1136 (4) - 352082.00 - итоговая сумма в чеках наличными [00:07:20] 1138 (3) - 128993.99 - итоговая сумма в чеках безналичными [00:07:20] 1024 (123) - суммы налогов [00:07:20] 1006 (9) - суммы НДС [00:07:20] 1010 (1) - 0% - код ставки НДС [00:07:20] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:20] 1006 (12) - суммы НДС [00:07:20] 1010 (1) - 12% - код ставки НДС [00:07:20] 1011 (3) - 51100.92 - сумма НДС по ставке [00:07:20] 1007 (9) - суммы НСП [00:07:20] 1014 (1) - 0% - код ставки НСП [00:07:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:20] 1007 (12) - суммы НСП [00:07:20] 1014 (1) - 1% - код ставки НСП [00:07:20] 1015 (3) - 4258.45 - сумма НСП по ставке [00:07:20] 1007 (9) - суммы НСП [00:07:20] 1014 (1) - 2% - код ставки НСП [00:07:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:20] 1007 (9) - суммы НСП [00:07:20] 1014 (1) - 3% - код ставки НСП [00:07:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:20] 1007 (9) - суммы НСП [00:07:20] 1014 (1) - 5% - код ставки НСП [00:07:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:20] 1007 (9) - суммы НСП [00:07:20] 1014 (1) - 0,50% - код ставки НСП [00:07:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:20] 1007 (9) - суммы НСП [00:07:20] 1014 (1) - 1,50% - код ставки НСП [00:07:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:20] 1130 (141) - счетчики операций «возврат прихода» [00:07:20] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:20] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:20] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:20] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:20] 1024 (117) - суммы налогов [00:07:20] 1006 (9) - суммы НДС [00:07:20] 1010 (1) - 0% - код ставки НДС [00:07:20] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:20] 1006 (9) - суммы НДС [00:07:20] 1010 (1) - 12% - код ставки НДС [00:07:20] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:20] 1007 (9) - суммы НСП [00:07:20] 1014 (1) - 0% - код ставки НСП [00:07:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:20] 1007 (9) - суммы НСП [00:07:20] 1014 (1) - 1% - код ставки НСП [00:07:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:20] 1007 (9) - суммы НСП [00:07:20] 1014 (1) - 2% - код ставки НСП [00:07:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:20] 1007 (9) - суммы НСП [00:07:20] 1014 (1) - 3% - код ставки НСП [00:07:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:20] 1007 (9) - суммы НСП [00:07:20] 1014 (1) - 5% - код ставки НСП [00:07:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:20] 1007 (9) - суммы НСП [00:07:20] 1014 (1) - 0,50% - код ставки НСП [00:07:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:20] 1007 (9) - суммы НСП [00:07:20] 1014 (1) - 1,50% - код ставки НСП [00:07:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:20] 1131 (141) - счетчики операций «расход» [00:07:20] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:20] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:20] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:20] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:20] 1024 (117) - суммы налогов [00:07:20] 1006 (9) - суммы НДС [00:07:20] 1010 (1) - 0% - код ставки НДС [00:07:20] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:20] 1006 (9) - суммы НДС [00:07:20] 1010 (1) - 12% - код ставки НДС [00:07:20] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:20] 1007 (9) - суммы НСП [00:07:20] 1014 (1) - 0% - код ставки НСП [00:07:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:20] 1007 (9) - суммы НСП [00:07:20] 1014 (1) - 1% - код ставки НСП [00:07:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:20] 1007 (9) - суммы НСП [00:07:20] 1014 (1) - 2% - код ставки НСП [00:07:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:20] 1007 (9) - суммы НСП [00:07:20] 1014 (1) - 3% - код ставки НСП [00:07:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:20] 1007 (9) - суммы НСП [00:07:20] 1014 (1) - 5% - код ставки НСП [00:07:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:20] 1007 (9) - суммы НСП [00:07:20] 1014 (1) - 0,50% - код ставки НСП [00:07:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:20] 1007 (9) - суммы НСП [00:07:20] 1014 (1) - 1,50% - код ставки НСП [00:07:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:20] 1132 (141) - счетчики операций «возврат расхода» [00:07:20] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:20] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:20] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:20] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:20] 1024 (117) - суммы налогов [00:07:20] 1006 (9) - суммы НДС [00:07:20] 1010 (1) - 0% - код ставки НДС [00:07:20] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:20] 1006 (9) - суммы НДС [00:07:20] 1010 (1) - 12% - код ставки НДС [00:07:20] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:20] 1007 (9) - суммы НСП [00:07:20] 1014 (1) - 0% - код ставки НСП [00:07:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:20] 1007 (9) - суммы НСП [00:07:20] 1014 (1) - 1% - код ставки НСП [00:07:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:20] 1007 (9) - суммы НСП [00:07:20] 1014 (1) - 2% - код ставки НСП [00:07:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:20] 1007 (9) - суммы НСП [00:07:20] 1014 (1) - 3% - код ставки НСП [00:07:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:20] 1007 (9) - суммы НСП [00:07:20] 1014 (1) - 5% - код ставки НСП [00:07:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:20] 1007 (9) - суммы НСП [00:07:20] 1014 (1) - 0,50% - код ставки НСП [00:07:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:20] 1007 (9) - суммы НСП [00:07:20] 1014 (1) - 1,50% - код ставки НСП [00:07:20] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:20] 1133 (588) - - счетчики коррекции - не используются [00:07:20]SetTLVBufToDocument [00:07:20]Processing tag 1194 (04AA) [00:07:20]Load OK [00:07:20]SetTLVBufToDocument [00:07:20]Processing tag 1134 (046E) [00:07:21]Malloc new data [00:07:21]Processing tag 1129 (0469) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1135 (046F) [00:07:21]Malloc new data [00:07:21]Processing tag 1201 (04B1) [00:07:21]Malloc new data [00:07:21]Processing tag 1136 (0470) [00:07:21]Malloc new data [00:07:21]Processing tag 1138 (0472) [00:07:21]Malloc new data [00:07:21]Processing tag 1024 (0400) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1006 (03EE) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1010 (03F2) [00:07:21]Malloc new data [00:07:21]Processing tag 1011 (03F3) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Processing tag 1006 (03EE) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1010 (03F2) [00:07:21]Malloc new data [00:07:21]Processing tag 1011 (03F3) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Processing tag 1007 (03EF) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1014 (03F6) [00:07:21]Malloc new data [00:07:21]Processing tag 1015 (03F7) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Processing tag 1007 (03EF) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1014 (03F6) [00:07:21]Malloc new data [00:07:21]Processing tag 1015 (03F7) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Processing tag 1007 (03EF) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1014 (03F6) [00:07:21]Malloc new data [00:07:21]Processing tag 1015 (03F7) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Processing tag 1007 (03EF) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1014 (03F6) [00:07:21]Malloc new data [00:07:21]Processing tag 1015 (03F7) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Processing tag 1007 (03EF) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1014 (03F6) [00:07:21]Malloc new data [00:07:21]Processing tag 1015 (03F7) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Processing tag 1007 (03EF) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1014 (03F6) [00:07:21]Malloc new data [00:07:21]Processing tag 1015 (03F7) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Processing tag 1007 (03EF) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1014 (03F6) [00:07:21]Malloc new data [00:07:21]Processing tag 1015 (03F7) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]SetTLVBufToDocument err=0 [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Processing tag 1130 (046A) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1135 (046F) [00:07:21]Malloc new data [00:07:21]Processing tag 1201 (04B1) [00:07:21]Malloc new data [00:07:21]Processing tag 1136 (0470) [00:07:21]Malloc new data [00:07:21]Processing tag 1138 (0472) [00:07:21]Malloc new data [00:07:21]Processing tag 1024 (0400) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1006 (03EE) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1010 (03F2) [00:07:21]Malloc new data [00:07:21]Processing tag 1011 (03F3) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Processing tag 1006 (03EE) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1010 (03F2) [00:07:21]Malloc new data [00:07:21]Processing tag 1011 (03F3) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Processing tag 1007 (03EF) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1014 (03F6) [00:07:21]Malloc new data [00:07:21]Processing tag 1015 (03F7) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Processing tag 1007 (03EF) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1014 (03F6) [00:07:21]Malloc new data [00:07:21]Processing tag 1015 (03F7) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Processing tag 1007 (03EF) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1014 (03F6) [00:07:21]Malloc new data [00:07:21]Processing tag 1015 (03F7) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Processing tag 1007 (03EF) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1014 (03F6) [00:07:21]Malloc new data [00:07:21]Processing tag 1015 (03F7) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Processing tag 1007 (03EF) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1014 (03F6) [00:07:21]Malloc new data [00:07:21]Processing tag 1015 (03F7) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Processing tag 1007 (03EF) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1014 (03F6) [00:07:21]Malloc new data [00:07:21]Processing tag 1015 (03F7) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Processing tag 1007 (03EF) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1014 (03F6) [00:07:21]Malloc new data [00:07:21]Processing tag 1015 (03F7) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]SetTLVBufToDocument err=0 [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Processing tag 1131 (046B) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1135 (046F) [00:07:21]Malloc new data [00:07:21]Processing tag 1201 (04B1) [00:07:21]Malloc new data [00:07:21]Processing tag 1136 (0470) [00:07:21]Malloc new data [00:07:21]Processing tag 1138 (0472) [00:07:21]Malloc new data [00:07:21]Processing tag 1024 (0400) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1006 (03EE) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1010 (03F2) [00:07:21]Malloc new data [00:07:21]Processing tag 1011 (03F3) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Processing tag 1006 (03EE) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1010 (03F2) [00:07:21]Malloc new data [00:07:21]Processing tag 1011 (03F3) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Processing tag 1007 (03EF) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1014 (03F6) [00:07:21]Malloc new data [00:07:21]Processing tag 1015 (03F7) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Processing tag 1007 (03EF) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1014 (03F6) [00:07:21]Malloc new data [00:07:21]Processing tag 1015 (03F7) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Processing tag 1007 (03EF) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1014 (03F6) [00:07:21]Malloc new data [00:07:21]Processing tag 1015 (03F7) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Processing tag 1007 (03EF) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1014 (03F6) [00:07:21]Malloc new data [00:07:21]Processing tag 1015 (03F7) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Processing tag 1007 (03EF) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1014 (03F6) [00:07:21]Malloc new data [00:07:21]Processing tag 1015 (03F7) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Processing tag 1007 (03EF) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1014 (03F6) [00:07:21]Malloc new data [00:07:21]Processing tag 1015 (03F7) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Processing tag 1007 (03EF) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1014 (03F6) [00:07:21]Malloc new data [00:07:21]Processing tag 1015 (03F7) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]SetTLVBufToDocument err=0 [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Processing tag 1132 (046C) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1135 (046F) [00:07:21]Malloc new data [00:07:21]Processing tag 1201 (04B1) [00:07:21]Malloc new data [00:07:21]Processing tag 1136 (0470) [00:07:21]Malloc new data [00:07:21]Processing tag 1138 (0472) [00:07:21]Malloc new data [00:07:21]Processing tag 1024 (0400) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1006 (03EE) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1010 (03F2) [00:07:21]Malloc new data [00:07:21]Processing tag 1011 (03F3) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Processing tag 1006 (03EE) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1010 (03F2) [00:07:21]Malloc new data [00:07:21]Processing tag 1011 (03F3) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Processing tag 1007 (03EF) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1014 (03F6) [00:07:21]Malloc new data [00:07:21]Processing tag 1015 (03F7) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Processing tag 1007 (03EF) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1014 (03F6) [00:07:21]Malloc new data [00:07:21]Processing tag 1015 (03F7) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Processing tag 1007 (03EF) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1014 (03F6) [00:07:21]Malloc new data [00:07:21]Processing tag 1015 (03F7) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Processing tag 1007 (03EF) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1014 (03F6) [00:07:21]Malloc new data [00:07:21]Processing tag 1015 (03F7) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Processing tag 1007 (03EF) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1014 (03F6) [00:07:21]Malloc new data [00:07:21]Processing tag 1015 (03F7) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Processing tag 1007 (03EF) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1014 (03F6) [00:07:21]Malloc new data [00:07:21]Processing tag 1015 (03F7) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Processing tag 1007 (03EF) [00:07:21]Load OK [00:07:21]SetTLVBufToDocument [00:07:21]Processing tag 1014 (03F6) [00:07:21]Malloc new data [00:07:21]Processing tag 1015 (03F7) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]SetTLVBufToDocument err=0 [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Processing tag 1133 (046D) [00:07:21]Malloc new data [00:07:21]SetTLVBufToDocument err=0 [00:07:21]SetTLVBufToDocument err=0 [00:07:21]Malloc new data [00:07:21]SAM_PROTO_GetFMData [00:07:21]wFMCommunicate request_size=4 [00:07:21]MH_SAM_APDU [00:07:21]CAPDU: 80 13 03 00 [00:07:21]Write to MH i2c: E2 08 00 72 00 80 13 03 00 00 00 00 00 F1 [00:07:21]Write i2c OK [00:07:21]MH_I2C_Read... [00:07:22]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:22]Read from MH i2c: E2 [00:07:22]MH_I2C_Read... [00:07:22]Read from MH i2c: E2 FD 00 [00:07:22]MH_I2C_Read... [00:07:22]Read from MH i2c: E2 FD 00 72 00 00 C4 04 85 04 C0 04 6E 04 04 00 24 F8 03 00 69 04 A3 00 6F 04 04 00 BA F5 03 00 B1 04 05 00 45 65 C1 AC 04 70 04 05 00 18 67 A7 BC 03 72 04 04 00 2D FE 19 F0 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 99 CA 21 7F 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 25 EA 97 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 6A 02 00 00 B1 04 04 00 44 AB D8 05 70 04 04 00 44 AB D8 05 72 04 00 00 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 91 F7 9E EF 03 09 00 90 00 F1 [00:07:22]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 24 F8 03 00 69 04 A3 00 6F 04 04 00 BA F5 03 00 B1 04 05 00 45 65 C1 AC 04 70 04 05 00 18 67 A7 BC 03 72 04 04 00 2D FE 19 F0 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 99 CA 21 7F 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 25 EA 97 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 6A 02 00 00 B1 04 04 00 44 AB D8 05 70 04 04 00 44 AB D8 05 72 04 00 00 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 91 F7 9E EF 03 09 00 90 00 [00:07:22]wFMCommunicate OK [00:07:22]wFMCommunicate request_size=4 [00:07:22]MH_SAM_APDU [00:07:22]CAPDU: 80 17 00 00 [00:07:22]Write to MH i2c: E2 08 00 73 00 80 17 00 00 00 00 00 00 F3 [00:07:22]Write i2c OK [00:07:22]MH_I2C_Read... [00:07:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:22]Read from MH i2c: E2 [00:07:22]MH_I2C_Read... [00:07:22]Read from MH i2c: E2 FD 00 [00:07:22]MH_I2C_Read... [00:07:22]Read from MH i2c: E2 FD 00 73 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0E 3F 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 03 [00:07:22]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0E 3F 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:22]wFMCommunicate OK [00:07:22]wFMCommunicate request_size=4 [00:07:22]MH_SAM_APDU [00:07:22]CAPDU: 80 17 00 00 [00:07:22]Write to MH i2c: E2 08 00 74 00 80 17 00 00 00 00 00 00 F4 [00:07:22]Write i2c OK [00:07:22]MH_I2C_Read... [00:07:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:23]Read from MH i2c: E2 [00:07:23]MH_I2C_Read... [00:07:23]Read from MH i2c: E2 FD 00 [00:07:23]MH_I2C_Read... [00:07:23]Read from MH i2c: E2 FD 00 74 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 09 [00:07:23]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:23]wFMCommunicate OK [00:07:23]wFMCommunicate request_size=4 [00:07:23]MH_SAM_APDU [00:07:23]CAPDU: 80 17 00 00 [00:07:23]Write to MH i2c: E2 08 00 75 00 80 17 00 00 00 00 00 00 F5 [00:07:23]Write i2c OK [00:07:23]MH_I2C_Read... [00:07:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:23]Read from MH i2c: E2 [00:07:23]MH_I2C_Read... [00:07:23]Read from MH i2c: E2 FD 00 [00:07:23]MH_I2C_Read... [00:07:23]Read from MH i2c: E2 FD 00 75 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [00:07:23]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:24]wFMCommunicate OK [00:07:24]wFMCommunicate request_size=4 [00:07:24]MH_SAM_APDU [00:07:24]CAPDU: 80 17 00 00 [00:07:24]Write to MH i2c: E2 08 00 76 00 80 17 00 00 00 00 00 00 F6 [00:07:24]Write i2c OK [00:07:24]MH_I2C_Read... [00:07:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:07:24]Read from MH i2c: E2 [00:07:24]MH_I2C_Read... [00:07:24]Read from MH i2c: E2 E1 00 [00:07:24]MH_I2C_Read... [00:07:24]Read from MH i2c: E2 E1 00 76 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E4 [00:07:24]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:07:24]wFMCommunicate OK [00:07:24]SAM_PROTO_GetFMData done [00:07:24]FM_GetFMData:85 04 C0 04 6E 04 04 00 24 F8 03 00 69 04 A3 00 6F 04 04 00 BA F5 03 00 B1 04 05 00 45 65 C1 AC 04 70 04 05 00 18 67 A7 BC 03 72 04 04 00 2D FE 19 F0 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 99 CA 21 7F 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 25 EA 97 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 6A 02 00 00 B1 04 04 00 44 AB D8 05 70 04 04 00 44 AB D8 05 72 04 00 00 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 91 F7 9E 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 0E 3F 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [00:07:25]00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:07:25]oper:6F 04 04 00 BA F5 03 00 B1 04 05 00 45 65 C1 AC 04 70 04 05 00 18 67 A7 BC 03 72 04 04 00 2D FE 19 F0 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 99 CA 21 7F 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 25 EA 97 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:07:25]total:45 65 C1 AC 04 [00:07:25]Malloc new data [00:07:25]oper:6F 04 04 00 6A 02 00 00 B1 04 04 00 44 AB D8 05 70 04 04 00 44 AB D8 05 72 04 00 00 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 91 F7 9E 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 0E 3F 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:07:25]total:44 AB D8 05 [00:07:25]Malloc new data [00:07:25]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:07:25]total: [00:07:25]Malloc new data [00:07:25]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:07:25]total: [00:07:25]Malloc new data [00:07:25]KKMPrepareXReportFMData err=0 [00:07:25]Х отчет ИНН: 02508201610067 Кассир: Атаев Т. 19.08.2024 00:07 Смена: 266 РНМ: 0000000000091865 ЗНМ: 0300000099 СНО: Общий режим Всего чеков: 588 ИТОГИ ПРИХОД Чеков: 588 Общий итог: 481075.99 Итого наличными: 352082.00 Итого безнал.: 128993.99 НДС 0% : 0.00 НДС 12% : 51100.92 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 4258.45 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 352082.00 НС Приход: 200782247.09 НС Возвр.Прихода: 980857.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871820 [00:07:25]StoreToDocumentArchive [00:07:25]MH_GetDate [00:07:25]Write to MH i2c: F0 00 00 77 00 66 [00:07:25]Write i2c OK [00:07:25]MH_I2C_Read... [00:07:25]Read from MH i2c: F0 [00:07:25]MH_I2C_Read... [00:07:25]Read from MH i2c: F0 09 00 [00:07:25]MH_I2C_Read... [00:07:25]Read from MH i2c: F0 09 00 77 00 00 BD 8C C2 66 34 48 D8 65 99 [00:07:25]shift 266 fd 1724026045 [00:07:25]Create dir for shift 0266 [00:07:25]save to /storage/0266/doc_1724026045 [00:07:25]save last doc name /storage/0266/doc_1724026045 to /storage/kkm_last_doc_name [00:07:25]save OK [00:07:25]Clear old archive folders... [00:07:25]NVStorageSaveData kkm_last_timestamp [00:07:25]File name is /storage/kkm_last_timestamp [00:07:25]Write 4 bytes [00:07:25]NVStorageSaveData done [00:07:25]ExternCall_PrintAddStr [00:07:25]wPrintStart [00:07:25]Write to MH i2c: 01 00 00 78 00 78 [00:07:25]Write i2c OK [00:07:25]MH_I2C_Read... [00:07:25]Read from MH i2c: 01 [00:07:25]MH_I2C_Read... [00:07:25]Read from MH i2c: 01 07 00 [00:07:25]MH_I2C_Read... [00:07:25]Read from MH i2c: 01 07 00 78 00 00 00 00 00 00 FF 0F 8D [00:07:25]RasterBufferAndPrint [00:07:25]line Х отчет [00:07:25]line ИНН: 02508201610067 [00:07:25]line Кассир: Атаев Т. [00:07:25]line 19.08.2024 00:07 [00:07:25]line Смена: 266 [00:07:25]line РНМ: 0000000000091865 [00:07:25]line ЗНМ: 0300000099 [00:07:25]line СНО: Общий режим [00:07:25]line Всего чеков: 588 [00:07:25]line ИТОГИ ПРИХОД [00:07:25]line Чеков: 588 [00:07:25]line Общий итог: 481075.99 [00:07:25]line Итого наличными: 352082.00 [00:07:25]line Итого безнал.: 128993.99 [00:07:25]line НДС 0% : 0.00 [00:07:25]line НДС 12% : 51100.92 [00:07:25]line НСП 0% : 0.00 [00:07:25]line НСП 1,50% : 0.00 [00:07:25]line НСП 0,50% : 0.00 [00:07:25]line НСП 5% : 0.00 [00:07:25]line НСП 3% : 0.00 [00:07:25]line НСП 2% : 0.00 [00:07:25]line НСП 1% : 4258.45 [00:07:25]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:07:25]line Чеков: 0 [00:07:25]line Общий итог: 0.00 [00:07:25]line Итого наличными: 0.00 [00:07:25]line Итого безнал.: 0.00 [00:07:25]line НДС 0% : 0.00 [00:07:25]line НДС 12% : 0.00 [00:07:25]line НСП 0% : 0.00 [00:07:25]line НСП 1,50% : 0.00 [00:07:25]line НСП 0,50% : 0.00 [00:07:25]line НСП 5% : 0.00 [00:07:25]line НСП 3% : 0.00 [00:07:25]line НСП 2% : 0.00 [00:07:25]line НСП 1% : 0.00 [00:07:25]line ИТОГИ РАСХОД [00:07:25]line Чеков: 0 [00:07:25]line Общий итог: 0.00 [00:07:25]line Итого наличными: 0.00 [00:07:25]line Итого безнал.: 0.00 [00:07:25]line НДС 0% : 0.00 [00:07:25]line НДС 12% : 0.00 [00:07:25]line НСП 0% : 0.00 [00:07:25]line НСП 1,50% : 0.00 [00:07:25]line НСП 0,50% : 0.00 [00:07:25]line НСП 5% : 0.00 [00:07:25]line НСП 3% : 0.00 [00:07:25]line НСП 2% : 0.00 [00:07:25]line НСП 1% : 0.00 [00:07:25]line ИТОГИ ВОЗВРАТ РАСХОДА [00:07:25]line Чеков: 0 [00:07:25]line Общий итог: 0.00 [00:07:25]line Итого наличными: 0.00 [00:07:25]line Итого безнал.: 0.00 [00:07:25]line НДС 0% : 0.00 [00:07:25]line НДС 12% : 0.00 [00:07:25]line НСП 0% : 0.00 [00:07:25]line НСП 1,50% : 0.00 [00:07:25]line НСП 0,50% : 0.00 [00:07:25]line НСП 5% : 0.00 [00:07:25]line НСП 3% : 0.00 [00:07:25]line НСП 2% : 0.00 [00:07:25]line НСП 1% : 0.00 [00:07:25]line Сумма внесений: 0.00 [00:07:25]line Сумма выплат: 0.00 [00:07:25]line Нал. в кассе: 352082.00 [00:07:25]line НС Приход: 200782247.09 [00:07:25]line НС Возвр.Прихода: 980857.00 [00:07:25]line НС Расход: 0.00 [00:07:25]line НС Возвр.Расхода: 0.00 [00:07:25]line ФМ: 0000000000871820 [00:07:25]written 0, free lines is 4095 [00:07:26]Write to MH i2c: 01 00 00 C3 00 C3 [00:07:26]Write i2c OK [00:07:26]MH_I2C_Read... [00:07:26]Read from MH i2c: 01 [00:07:26]MH_I2C_Read... [00:07:26]Read from MH i2c: 01 07 00 [00:07:26]MH_I2C_Read... [00:07:26]Read from MH i2c: 01 07 00 C3 00 00 00 00 00 00 90 09 63 [00:07:26]RasterBufferAndPrint [00:07:26]line [00:07:26]line [00:07:26]line [00:07:26]line [00:07:26]line [00:07:26]written 0, free lines is 2470 [00:07:26]MH_Cut [00:07:26]Write to MH i2c: D1 01 00 CA 00 01 9C [00:07:26]Write i2c OK [00:07:26]MH_I2C_Read... [00:07:26]Read from MH i2c: D1 [00:07:26]MH_I2C_Read... [00:07:26]Read from MH i2c: D1 01 00 [00:07:26]MH_I2C_Read... [00:07:26]Read from MH i2c: D1 01 00 CA 00 00 9B [00:07:26]Write to MH i2c: 01 00 00 CB 00 CB [00:07:26]Write i2c OK [00:07:26]MH_I2C_Read... [00:07:28]*** Cut start [00:07:28]*** Purtial cut [00:07:28]*** Stage 1: CUTSNS_PIN = 1 [00:07:30]OFD Sender: No OFD packet to send [00:07:30]Read from MH i2c: 01 [00:07:30]MH_I2C_Read... [00:07:30]*** Stop cut motor [00:07:30]*** Cut end [00:07:30]Read from MH i2c: 01 07 00 [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: 01 07 00 CB 00 00 00 00 00 00 FF 0F E0 [00:07:30]process_action x_report done [00:07:30]requested_data is exist [00:07:30]produce_requested_data [00:07:30]requested_item fd.num is exist - process it [00:07:30]SAM_PROTO_GetFieldsCounters [00:07:30]wFMCommunicate request_size=4 [00:07:30]MH_SAM_APDU [00:07:30]CAPDU: 80 13 00 00 [00:07:30]Write to MH i2c: E2 08 00 CC 00 80 13 00 00 00 00 00 00 48 [00:07:30]Write i2c OK [00:07:30]MH_I2C_Read... [00:07:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:30]Read from MH i2c: E2 [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: E2 62 00 [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: E2 62 00 CC 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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A6 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4C 02 00 00 5E 04 04 00 4C 02 00 00 57 04 04 00 4D 02 00 00 19 04 04 00 00 00 00 00 90 00 B7 [00:07: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A6 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4C 02 00 00 5E 04 04 00 4C 02 00 00 57 04 04 00 4D 02 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:30]wFMCommunicate OK [00:07:30]SAM_PROTO_GetFieldsCounters done [00:07:30]requested_item shift.num is exist - process it [00:07:30]requested_item shift.opened is exist - process it [00:07:30]req_shift_opened [00:07:30]FM_GetShiftState [00:07:30]SAM_PROTO_GetShiftState [00:07:30]wFMCommunicate request_size=4 [00:07:30]MH_SAM_APDU [00:07:30]CAPDU: 80 13 01 00 [00:07:30]Write to MH i2c: E2 08 00 CD 00 80 13 01 00 00 00 00 00 4A [00:07:30]Write i2c OK [00:07:30]MH_I2C_Read... [00:07:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:30]Read from MH i2c: E2 [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: E2 0E 00 [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: E2 0E 00 CD 00 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 87 [00:07:30]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [00:07:30]wFMCommunicate OK [00:07:30]SAM_PROTO_GetShiftState done [00:07:30]FM_GetShiftState done [00:07:30]req_shift_opened done [00:07:30]requested_item shift.open_date is exist - process it [00:07:30]req_shift_open_date [00:07:30]req_shift_open_date done [00:07:30]produce_requested_data done [00:07:30]produce_requested_data return {"fd.num":261030,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [00:07:30]process_action_free x_report [00:07:30]json_value_free [00:07:30]json_value_free done [00:07:30]process_json_proto returns [00:07:30]Send response to host [00:07:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":261030,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [00:07:30]free response buf [00:07:30]execute_script done [00:07:30]execute_script returns [00:07:30]free content buf [00:07:30]Sock 7.Close socket [00:07:30]Sock 7.Thread stoped [00:07:35]OFD Sender: No OFD packet to send [00:07:40]OFD Sender: No OFD packet to send [00:07:45]OFD Sender: No OFD packet to send [00:07:50]OFD Sender: No OFD packet to send [00:07:52]accept exits with 9 [00:07:52]New connection [00:07:52]New thread 3067104612 created [00:07:52]Thread 3067247972 joined [00:07:52]Waiting for new connection... [00:07:52] Sock 9.Parse request [00:07:52]Sock 9.Check first char [00:07:52]Sock 9.First char is OK [00:07:52]request: POST /json_proto HTTP/1.0 [00:07:52]Method: POST [00:07:52]URL: /json_proto [00:07:52]Method is POST - this is cgi request [00:07:52]url: /json_proto [00:07:52]query_string will be loaded in cgi processing [00:07:52]execute_cgi json_proto POST (null) [00:07:52]execute_cgi path=json_proto method=POST [00:07:52]POST find Content-Length [00:07:52]Host: 172.17.55.133:8080 [00:07:52]Content-Length: 215 [00:07:52]Content-Type: application/json [00:07:52] [00:07:52]POST finish read [00:07:52]Found Content-Length = 215 [00:07: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" ] } } [00:07:52]execute_script... [00:07: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" ] } } [00:07:52]POST & json_proto [00:07:52]process_json_proto [00:07:52]json parsed OK: [00:07:52]protocol is kg_v1.0 [00:07:52]action value=get_value [00:07:52]process_action get_value [00:07:52]cmd_get_value [00:07:52]process_action get_value done [00:07:52]requested_data is exist [00:07:52]produce_requested_data [00:07:52]requested_item kkm.sn is exist - process it [00:07:52]requested_item kkm.ver is exist - process it [00:07:52]requested_item fm.sn is exist - process it [00:07:52]wFMCommunicate request_size=4 [00:07:52]MH_SAM_APDU [00:07:52]CAPDU: 80 11 00 00 [00:07:52]Write to MH i2c: E2 08 00 CE 00 80 11 00 00 00 00 00 00 48 [00:07:52]Write i2c OK [00:07:52]MH_I2C_Read... [00:07:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:52]Read from MH i2c: E2 [00:07:52]MH_I2C_Read... [00:07:52]Read from MH i2c: E2 17 00 [00:07:52]MH_I2C_Read... [00:07:52]Read from MH i2c: E2 17 00 CE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 95 [00:07:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [00:07:52]wFMCommunicate OK [00:07:52]requested_item fd.num is exist - process it [00:07:52]SAM_PROTO_GetFieldsCounters [00:07:52]wFMCommunicate request_size=4 [00:07:52]MH_SAM_APDU [00:07:52]CAPDU: 80 13 00 00 [00:07:52]Write to MH i2c: E2 08 00 CF 00 80 13 00 00 00 00 00 00 4B [00:07:52]Write i2c OK [00:07:52]MH_I2C_Read... [00:07:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:52]Read from MH i2c: E2 [00:07:52]MH_I2C_Read... [00:07:52]Read from MH i2c: E2 62 00 [00:07:52]MH_I2C_Read... [00:07:52]Read from MH i2c: E2 62 00 CF 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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A6 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4C 02 00 00 5E 04 04 00 4C 02 00 00 57 04 04 00 4D 02 00 00 19 04 04 00 00 00 00 00 90 00 BA [00:07: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A6 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4C 02 00 00 5E 04 04 00 4C 02 00 00 57 04 04 00 4D 02 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:52]wFMCommunicate OK [00:07:52]SAM_PROTO_GetFieldsCounters done [00:07:52]requested_item shift.num is exist - process it [00:07:52]requested_item shift.opened is exist - process it [00:07:52]req_shift_opened [00:07:52]FM_GetShiftState [00:07:52]SAM_PROTO_GetShiftState [00:07:52]wFMCommunicate request_size=4 [00:07:52]MH_SAM_APDU [00:07:52]CAPDU: 80 13 01 00 [00:07:52]Write to MH i2c: E2 08 00 D0 00 80 13 01 00 00 00 00 00 4D [00:07:52]Write i2c OK [00:07:52]MH_I2C_Read... [00:07:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:52]Read from MH i2c: E2 [00:07:52]MH_I2C_Read... [00:07:52]Read from MH i2c: E2 0E 00 [00:07:52]MH_I2C_Read... [00:07:52]Read from MH i2c: E2 0E 00 D0 00 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 8A [00:07:52]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [00:07:52]wFMCommunicate OK [00:07:52]SAM_PROTO_GetShiftState done [00:07:52]FM_GetShiftState done [00:07:52]req_shift_opened done [00:07:52]requested_item shift.open_date is exist - process it [00:07:52]req_shift_open_date [00:07:52]req_shift_open_date done [00:07:52]produce_requested_data done [00:07:52]produce_requested_data return {"kkm.sn":"0300000099","kkm.ver":"001","fm.sn":"0000000000871820","fd.num":261030,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556} [00:07:52]process_action_free get_value [00:07:52]json_value_free [00:07:52]json_value_free done [00:07:52]process_json_proto returns [00:07:52]Send response to host [00:07:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000099","kkm.ver":"001","fm.sn":"0000000000871820","fd.num":261030,"shift.num":449,"shift.opened":1,"shift.open_date":1723940556}}} [00:07:52]free response buf [00:07:52]execute_script done [00:07:52]execute_script returns [00:07:52]free content buf [00:07:52]Sock 9.Close socket [00:07:52]Sock 9.Thread stoped [00:07:52]accept exits with 7 [00:07:52]New connection [00:07:52]New thread 3067247972 created [00:07:52]Thread 3067104612 joined [00:07:52]Waiting for new connection... [00:07:52] Sock 7.Parse request [00:07:52]Sock 7.Check first char [00:07:52]Sock 7.First char is OK [00:07:52]request: POST /json_proto HTTP/1.0 [00:07:52]Method: POST [00:07:52]URL: /json_proto [00:07:52]Method is POST - this is cgi request [00:07:52]url: /json_proto [00:07:52]query_string will be loaded in cgi processing [00:07:52]execute_cgi json_proto POST (null) [00:07:52]execute_cgi path=json_proto method=POST [00:07:52]POST find Content-Length [00:07:52]Host: 172.17.55.133:8080 [00:07:52]Content-Length: 331 [00:07:52]Content-Type: application/json [00:07:52] [00:07:52]POST finish read [00:07:52]Found Content-Length = 331 [00:07: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" ] } } [00:07:52]execute_script... [00:07: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" ] } } [00:07:52]POST & json_proto [00:07:52]process_json_proto [00:07:52]json parsed OK: [00:07:52]protocol is kg_v1.0 [00:07:52]action value=get_value [00:07:52]process_action get_value [00:07:52]cmd_get_value [00:07:52]process_action get_value done [00:07:52]requested_data is exist [00:07:52]produce_requested_data [00:07:52]requested_item fm.sale.total is exist - process it [00:07:52]SAM_PROTO_GetFMData [00:07:52]wFMCommunicate request_size=4 [00:07:52]MH_SAM_APDU [00:07:52]CAPDU: 80 13 03 00 [00:07:52]Write to MH i2c: E2 08 00 D1 00 80 13 03 00 00 00 00 00 50 [00:07:52]Write i2c OK [00:07:52]MH_I2C_Read... [00:07:52]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:52]Read from MH i2c: E2 [00:07:52]MH_I2C_Read... [00:07:52]Read from MH i2c: E2 FD 00 [00:07:52]MH_I2C_Read... [00:07:52]Read from MH i2c: E2 FD 00 D1 00 00 C4 04 85 04 C0 04 6E 04 04 00 24 F8 03 00 69 04 A3 00 6F 04 04 00 BA F5 03 00 B1 04 05 00 45 65 C1 AC 04 70 04 05 00 18 67 A7 BC 03 72 04 04 00 2D FE 19 F0 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 99 CA 21 7F 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 25 EA 97 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 6A 02 00 00 B1 04 04 00 44 AB D8 05 70 04 04 00 44 AB D8 05 72 04 00 00 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 91 F7 9E EF 03 09 00 90 00 50 [00:07:52]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 24 F8 03 00 69 04 A3 00 6F 04 04 00 BA F5 03 00 B1 04 05 00 45 65 C1 AC 04 70 04 05 00 18 67 A7 BC 03 72 04 04 00 2D FE 19 F0 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 99 CA 21 7F 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 25 EA 97 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 6A 02 00 00 B1 04 04 00 44 AB D8 05 70 04 04 00 44 AB D8 05 72 04 00 00 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 91 F7 9E EF 03 09 00 90 00 [00:07:52]wFMCommunicate OK [00:07:52]wFMCommunicate request_size=4 [00:07:52]MH_SAM_APDU [00:07:52]CAPDU: 80 17 00 00 [00:07:52]Write to MH i2c: E2 08 00 D2 00 80 17 00 00 00 00 00 00 52 [00:07:52]Write i2c OK [00:07:52]MH_I2C_Read... [00:07:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:53]Read from MH i2c: E2 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 FD 00 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 FD 00 D2 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0E 3F 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 62 [00:07:53]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0E 3F 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:53]wFMCommunicate OK [00:07:53]wFMCommunicate request_size=4 [00:07:53]MH_SAM_APDU [00:07:53]CAPDU: 80 17 00 00 [00:07:53]Write to MH i2c: E2 08 00 D3 00 80 17 00 00 00 00 00 00 53 [00:07:53]Write i2c OK [00:07:53]MH_I2C_Read... [00:07:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:53]Read from MH i2c: E2 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 FD 00 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 FD 00 D3 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 68 [00:07:53]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:53]wFMCommunicate OK [00:07:53]wFMCommunicate request_size=4 [00:07:53]MH_SAM_APDU [00:07:53]CAPDU: 80 17 00 00 [00:07:53]Write to MH i2c: E2 08 00 D4 00 80 17 00 00 00 00 00 00 54 [00:07:53]Write i2c OK [00:07:53]MH_I2C_Read... [00:07:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:53]Read from MH i2c: E2 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 FD 00 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 FD 00 D4 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CC [00:07:54]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:54]wFMCommunicate OK [00:07:54]wFMCommunicate request_size=4 [00:07:54]MH_SAM_APDU [00:07:54]CAPDU: 80 17 00 00 [00:07:54]Write to MH i2c: E2 08 00 D5 00 80 17 00 00 00 00 00 00 55 [00:07:54]Write i2c OK [00:07:54]MH_I2C_Read... [00:07:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:07:54]Read from MH i2c: E2 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 E1 00 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 E1 00 D5 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 43 [00:07:54]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:07:54]wFMCommunicate OK [00:07:54]SAM_PROTO_GetFMData done [00:07:54]requested_item fm.sale_refund.total is exist - process it [00:07:54]requested_item fm.buy.total is exist - process it [00:07:54]requested_item shift.sale.total is exist - process it [00:07:54]SAM_PROTO_GetShiftData [00:07:54]wFMCommunicate request_size=4 [00:07:54]MH_SAM_APDU [00:07:54]CAPDU: 80 13 02 00 [00:07:54]Write to MH i2c: E2 08 00 D6 00 80 13 02 00 00 00 00 00 54 [00:07:54]Write i2c OK [00:07:54]MH_I2C_Read... [00:07:54]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:54]Read from MH i2c: E2 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 FD 00 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 FD 00 D6 00 00 B1 04 AA 04 AD 04 6E 04 04 00 4C 02 00 00 69 04 9E 00 6F 04 04 00 4C 02 00 00 B1 04 04 00 4F 10 DE 02 70 04 04 00 08 3C 19 02 72 04 03 00 47 D4 C4 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 4C F9 4D 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 75 7F 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D0 [00:07:55]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 4C 02 00 00 69 04 9E 00 6F 04 04 00 4C 02 00 00 B1 04 04 00 4F 10 DE 02 70 04 04 00 08 3C 19 02 72 04 03 00 47 D4 C4 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 4C F9 4D 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 75 7F 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:07:55]wFMCommunicate OK [00:07:55]wFMCommunicate request_size=4 [00:07:55]MH_SAM_APDU [00:07:55]CAPDU: 80 17 00 00 [00:07:55]Write to MH i2c: E2 08 00 D7 00 80 17 00 00 00 00 00 00 57 [00:07:55]Write i2c OK [00:07:55]MH_I2C_Read... [00:07:55]OFD Sender: No OFD packet to send [00:07:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:55]Read from MH i2c: E2 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: E2 FD 00 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: E2 FD 00 D7 00 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 70 [00:07:55]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:07:55]wFMCommunicate OK [00:07:55]wFMCommunicate request_size=4 [00:07:55]MH_SAM_APDU [00:07:55]CAPDU: 80 17 00 00 [00:07:55]Write to MH i2c: E2 08 00 D8 00 80 17 00 00 00 00 00 00 58 [00:07:55]Write i2c OK [00:07:55]MH_I2C_Read... [00:07:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:55]Read from MH i2c: E2 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: E2 FD 00 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: E2 FD 00 D8 00 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 11 [00:07:55]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:07:56]wFMCommunicate OK [00:07:56]wFMCommunicate request_size=4 [00:07:56]MH_SAM_APDU [00:07:56]CAPDU: 80 17 00 00 [00:07:56]Write to MH i2c: E2 08 00 D9 00 80 17 00 00 00 00 00 00 59 [00:07:56]Write i2c OK [00:07:56]MH_I2C_Read... [00:07:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:56]Read from MH i2c: E2 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 FD 00 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 FD 00 D9 00 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 D1 [00:07:56]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:07:56]wFMCommunicate OK [00:07:56]wFMCommunicate request_size=4 [00:07:56]MH_SAM_APDU [00:07:56]CAPDU: 80 17 00 00 [00:07:56]Write to MH i2c: E2 08 00 DA 00 80 17 00 00 00 00 00 00 5A [00:07:56]Write i2c OK [00:07:56]MH_I2C_Read... [00:07:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:07:56]Read from MH i2c: E2 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 CE 00 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 CE 00 DA 00 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 3F [00:07:56]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:07:57]wFMCommunicate OK [00:07:57]SAM_PROTO_GetShiftData done [00:07:57]requested_item shift.sale.total_cash is exist - process it [00:07:57]requested_item shift.sale_refund.total is exist - process it [00:07:57]requested_item shift.sale_refund.total_cash is exist - process it [00:07:57]requested_item shift.buy.total is exist - process it [00:07:57]requested_item shift.buy.total_cash is exist - process it [00:07:57]produce_requested_data done [00:07:57]produce_requested_data return {"fm.sale.total":200782247.09,"fm.sale_refund.total":980857.00,"fm.buy.total":0.00,"shift.sale.total":481075.99,"shift.sale.total_cash":352082.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:07:57]process_action_free get_value [00:07:57]json_value_free [00:07:57]json_value_free done [00:07:57]process_json_proto returns [00:07:57]Send response to host [00:07:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":200782247.09,"fm.sale_refund.total":980857.00,"fm.buy.total":0.00,"shift.sale.total":481075.99,"shift.sale.total_cash":352082.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:07:57]free response buf [00:07:57]execute_script done [00:07:57]execute_script returns [00:07:57]free content buf [00:07:57]Sock 7.Close socket [00:07:57]Sock 7.Thread stoped [00:07:57]accept exits with 9 [00:07:57]New connection [00:07:57]New thread 3067104612 created [00:07:57]Thread 3067247972 joined [00:07:57]Waiting for new connection... [00:07:57] Sock 9.Parse request [00:07:57]Sock 9.Check first char [00:07:57]Sock 9.First char is OK [00:07:57]request: POST /json_proto HTTP/1.0 [00:07:57]Method: POST [00:07:57]URL: /json_proto [00:07:57]Method is POST - this is cgi request [00:07:57]url: /json_proto [00:07:57]query_string will be loaded in cgi processing [00:07:57]execute_cgi json_proto POST (null) [00:07:57]execute_cgi path=json_proto method=POST [00:07:57]POST find Content-Length [00:07:57]Host: 172.17.55.133:8080 [00:07:57]Content-Length: 331 [00:07:57]Content-Type: application/json [00:07:57] [00:07:57]POST finish read [00:07:57]Found Content-Length = 331 [00:07:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:57]execute_script... [00:07:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:57]POST & json_proto [00:07:57]process_json_proto [00:07:57]json parsed OK: [00:07:57]protocol is kg_v1.0 [00:07:57]action value=get_value [00:07:57]process_action get_value [00:07:57]cmd_get_value [00:07:57]process_action get_value done [00:07:57]requested_data is exist [00:07:57]produce_requested_data [00:07:57]requested_item fm.sale.total is exist - process it [00:07:57]SAM_PROTO_GetFMData [00:07:57]wFMCommunicate request_size=4 [00:07:57]MH_SAM_APDU [00:07:57]CAPDU: 80 13 03 00 [00:07:57]Write to MH i2c: E2 08 00 DB 00 80 13 03 00 00 00 00 00 5A [00:07:57]Write i2c OK [00:07:57]MH_I2C_Read... [00:07:57]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:57]Read from MH i2c: E2 [00:07:57]MH_I2C_Read... [00:07:57]Read from MH i2c: E2 FD 00 [00:07:57]MH_I2C_Read... [00:07:57]Read from MH i2c: E2 FD 00 DB 00 00 C4 04 85 04 C0 04 6E 04 04 00 24 F8 03 00 69 04 A3 00 6F 04 04 00 BA F5 03 00 B1 04 05 00 45 65 C1 AC 04 70 04 05 00 18 67 A7 BC 03 72 04 04 00 2D FE 19 F0 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 99 CA 21 7F 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 25 EA 97 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 6A 02 00 00 B1 04 04 00 44 AB D8 05 70 04 04 00 44 AB D8 05 72 04 00 00 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 91 F7 9E EF 03 09 00 90 00 5A [00:07:57]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 24 F8 03 00 69 04 A3 00 6F 04 04 00 BA F5 03 00 B1 04 05 00 45 65 C1 AC 04 70 04 05 00 18 67 A7 BC 03 72 04 04 00 2D FE 19 F0 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 99 CA 21 7F 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 25 EA 97 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 6A 02 00 00 B1 04 04 00 44 AB D8 05 70 04 04 00 44 AB D8 05 72 04 00 00 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 91 F7 9E EF 03 09 00 90 00 [00:07:57]wFMCommunicate OK [00:07:57]wFMCommunicate request_size=4 [00:07:57]MH_SAM_APDU [00:07:57]CAPDU: 80 17 00 00 [00:07:57]Write to MH i2c: E2 08 00 DC 00 80 17 00 00 00 00 00 00 5C [00:07:57]Write i2c OK [00:07:57]MH_I2C_Read... [00:07:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:58]Read from MH i2c: E2 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 FD 00 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 FD 00 DC 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0E 3F 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6C [00:07:58]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0E 3F 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:58]wFMCommunicate OK [00:07:58]wFMCommunicate request_size=4 [00:07:58]MH_SAM_APDU [00:07:58]CAPDU: 80 17 00 00 [00:07:58]Write to MH i2c: E2 08 00 DD 00 80 17 00 00 00 00 00 00 5D [00:07:58]Write i2c OK [00:07:58]MH_I2C_Read... [00:07:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:58]Read from MH i2c: E2 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 FD 00 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 FD 00 DD 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 72 [00:07:58]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:58]wFMCommunicate OK [00:07:58]wFMCommunicate request_size=4 [00:07:58]MH_SAM_APDU [00:07:58]CAPDU: 80 17 00 00 [00:07:58]Write to MH i2c: E2 08 00 DE 00 80 17 00 00 00 00 00 00 5E [00:07:58]Write i2c OK [00:07:58]MH_I2C_Read... [00:07:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:59]Read from MH i2c: E2 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 FD 00 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 FD 00 DE 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D6 [00:07:59]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:59]wFMCommunicate OK [00:07:59]wFMCommunicate request_size=4 [00:07:59]MH_SAM_APDU [00:07:59]CAPDU: 80 17 00 00 [00:07:59]Write to MH i2c: E2 08 00 DF 00 80 17 00 00 00 00 00 00 5F [00:07:59]Write i2c OK [00:07:59]MH_I2C_Read... [00:07:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:07:59]Read from MH i2c: E2 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 E1 00 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 E1 00 DF 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4D [00:07:59]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:07:59]wFMCommunicate OK [00:07:59]SAM_PROTO_GetFMData done [00:07:59]requested_item fm.sale_refund.total is exist - process it [00:07:59]requested_item fm.buy.total is exist - process it [00:07:59]requested_item shift.sale.total is exist - process it [00:07:59]SAM_PROTO_GetShiftData [00:07:59]wFMCommunicate request_size=4 [00:07:59]MH_SAM_APDU [00:07:59]CAPDU: 80 13 02 00 [00:07:59]Write to MH i2c: E2 08 00 E0 00 80 13 02 00 00 00 00 00 5E [00:07:59]Write i2c OK [00:07:59]MH_I2C_Read... [00:08:00]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:08:00]Read from MH i2c: E2 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 FD 00 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 FD 00 E0 00 00 B1 04 AA 04 AD 04 6E 04 04 00 4C 02 00 00 69 04 9E 00 6F 04 04 00 4C 02 00 00 B1 04 04 00 4F 10 DE 02 70 04 04 00 08 3C 19 02 72 04 03 00 47 D4 C4 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 4C F9 4D 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 75 7F 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 DA [00:08:00]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 4C 02 00 00 69 04 9E 00 6F 04 04 00 4C 02 00 00 B1 04 04 00 4F 10 DE 02 70 04 04 00 08 3C 19 02 72 04 03 00 47 D4 C4 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 4C F9 4D 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 75 7F 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 OFD Sender: No OFD packet to send [00:08:00]00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:08:00]wFMCommunicate OK [00:08:00]wFMCommunicate request_size=4 [00:08:00]MH_SAM_APDU [00:08:00]CAPDU: 80 17 00 00 [00:08:00]Write to MH i2c: E2 08 00 E1 00 80 17 00 00 00 00 00 00 61 [00:08:00]Write i2c OK [00:08:00]MH_I2C_Read... [00:08:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:00]Read from MH i2c: E2 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 FD 00 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 FD 00 E1 00 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 7A [00:08:01]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:08:01]wFMCommunicate OK [00:08:01]wFMCommunicate request_size=4 [00:08:01]MH_SAM_APDU [00:08:01]CAPDU: 80 17 00 00 [00:08:01]Write to MH i2c: E2 08 00 E2 00 80 17 00 00 00 00 00 00 62 [00:08:01]Write i2c OK [00:08:01]MH_I2C_Read... [00:08:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:01]Read from MH i2c: E2 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 FD 00 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 FD 00 E2 00 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 1B [00:08:01]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:08:01]wFMCommunicate OK [00:08:01]wFMCommunicate request_size=4 [00:08:01]MH_SAM_APDU [00:08:01]CAPDU: 80 17 00 00 [00:08:01]Write to MH i2c: E2 08 00 E3 00 80 17 00 00 00 00 00 00 63 [00:08:01]Write i2c OK [00:08:01]MH_I2C_Read... [00:08:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:02]Read from MH i2c: E2 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 FD 00 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 FD 00 E3 00 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 DB [00:08:02]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:08:02]wFMCommunicate OK [00:08:02]wFMCommunicate request_size=4 [00:08:02]MH_SAM_APDU [00:08:02]CAPDU: 80 17 00 00 [00:08:02]Write to MH i2c: E2 08 00 E4 00 80 17 00 00 00 00 00 00 64 [00:08:02]Write i2c OK [00:08:02]MH_I2C_Read... [00:08:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:08:02]Read from MH i2c: E2 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 CE 00 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 CE 00 E4 00 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 49 [00:08:02]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:08:02]wFMCommunicate OK [00:08:02]SAM_PROTO_GetShiftData done [00:08:02]requested_item shift.sale.total_cash is exist - process it [00:08:02]requested_item shift.sale_refund.total is exist - process it [00:08:02]requested_item shift.sale_refund.total_cash is exist - process it [00:08:02]requested_item shift.buy.total is exist - process it [00:08:02]requested_item shift.buy.total_cash is exist - process it [00:08:02]produce_requested_data done [00:08:02]produce_requested_data return {"fm.sale.total":200782247.09,"fm.sale_refund.total":980857.00,"fm.buy.total":0.00,"shift.sale.total":481075.99,"shift.sale.total_cash":352082.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:08:02]process_action_free get_value [00:08:02]json_value_free [00:08:02]json_value_free done [00:08:02]process_json_proto returns [00:08:02]Send response to host [00:08:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":200782247.09,"fm.sale_refund.total":980857.00,"fm.buy.total":0.00,"shift.sale.total":481075.99,"shift.sale.total_cash":352082.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:08:02]free response buf [00:08:02]execute_script done [00:08:02]execute_script returns [00:08:02]free content buf [00:08:02]Sock 9.Close socket [00:08:02]Sock 9.Thread stoped [00:08:02]accept exits with 7 [00:08:02]New connection [00:08:02]New thread 3067247972 created [00:08:02]Thread 3067104612 joined [00:08:02]Waiting for new connection... [00:08:02] Sock 7.Parse request [00:08:02]Sock 7.Check first char [00:08:02]Sock 7.First char is OK [00:08:02]request: POST /json_proto HTTP/1.0 [00:08:02]Method: POST [00:08:02]URL: /json_proto [00:08:02]Method is POST - this is cgi request [00:08:02]url: /json_proto [00:08:02]query_string will be loaded in cgi processing [00:08:02]execute_cgi json_proto POST (null) [00:08:02]execute_cgi path=json_proto method=POST [00:08:02]POST find Content-Length [00:08:02]Host: 172.17.55.133:8080 [00:08:02]Content-Length: 241 [00:08:02]Content-Type: application/json [00:08:02] [00:08:02]POST finish read [00:08:02]Found Content-Length = 241 [00:08:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0442\u0430\u0435\u0432 \u0422." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:02]execute_script... [00:08:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0442\u0430\u0435\u0432 \u0422." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:02]POST & json_proto [00:08:02]process_json_proto [00:08:02]json parsed OK: [00:08:02]protocol is kg_v1.0 [00:08:02]action value=close_shift [00:08:02]process_action close_shift [00:08:02]cmd_close_shift [00:08:02]MH_GetDate [00:08:02]Write to MH i2c: F0 00 00 E5 00 D4 [00:08:02]Write i2c OK [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: F0 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: F0 09 00 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: F0 09 00 E5 00 00 E3 8C C2 66 34 48 D8 65 2D [00:08:02]GetLastDocTimeStamp 1724026038 [00:08:02]current date 1724026083 [00:08:02]FM_GetShiftState [00:08:02]SAM_PROTO_GetShiftState [00:08:02]wFMCommunicate request_size=4 [00:08:02]MH_SAM_APDU [00:08:02]CAPDU: 80 13 01 00 [00:08:02]Write to MH i2c: E2 08 00 E6 00 80 13 01 00 00 00 00 00 63 [00:08:02]Write i2c OK [00:08:02]MH_I2C_Read... [00:08:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:02]Read from MH i2c: E2 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 0E 00 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 0E 00 E6 00 00 09 00 01 CC 3E C1 66 00 00 00 00 90 00 A0 [00:08:02]RAPDU: 09 00 01 CC 3E C1 66 00 00 00 00 90 00 [00:08:02]wFMCommunicate OK [00:08:02]SAM_PROTO_GetShiftState done [00:08:02]FM_GetShiftState done [00:08:02]KKMCreateCloseShiftDocument [00:08:02]Load OK [00:08:02]Malloc new data [00:08:02]MH_GetDate [00:08:02]Write to MH i2c: F0 00 00 E7 00 D6 [00:08:02]Write i2c OK [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: F0 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: F0 09 00 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: F0 09 00 E7 00 00 E3 8C C2 66 34 48 D8 65 2F [00:08:02]Malloc new data [00:08:02]Malloc new data [00:08:02]Malloc new data [00:08:02]Malloc new data [00:08:02]KKMCreateCloseShiftDocument OK [00:08:02]KKMSetCloseShiftData OK [00:08:02]ProcessDocumentItem done err = 0, tmpTLVsize=64 [00:08:02]tlvbuf is 00AB5240 [00:08:02]KKMLoadAndSignCloseShiftData [00:08:02]SAM_PROTO_ProcessDocument [00:08:02]wFMCommunicate request_size=9 [00:08:02]MH_SAM_APDU [00:08:02]CAPDU: 80 15 01 00 04 05 00 40 00 [00:08:02]Write to MH i2c: E2 0C 00 E8 00 80 15 01 00 04 00 05 00 40 00 00 00 B4 [00:08:02]Write i2c OK [00:08:02]MH_I2C_Read... [00:08:03]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:08:03]Read from MH i2c: E2 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 03 00 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 03 00 E8 00 00 90 00 5C [00:08:03]RAPDU: 90 00 [00:08:03]wFMCommunicate OK [00:08:03]wFMCommunicate request_size=23 [00:08:03]MH_SAM_APDU [00:08: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:08:03]Write to MH i2c: E2 1A 00 E9 00 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 5E [00:08:03]Write i2c OK [00:08:03]MH_I2C_Read... [00:08:03]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:03]Read from MH i2c: E2 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 03 00 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 03 00 E9 00 00 90 00 5D [00:08:03]RAPDU: 90 00 [00:08:03]wFMCommunicate OK [00:08:03]wFMCommunicate request_size=23 [00:08:03]MH_SAM_APDU [00:08:03]CAPDU: 80 15 02 00 12 FD 03 0E 00 D0 90 D1 82 D0 B0 D0 B5 D0 B2 20 D0 A2 2E [00:08:03]Write to MH i2c: E2 1A 00 EA 00 80 15 02 00 12 00 FD 03 0E 00 D0 90 D1 82 D0 B0 D0 B5 D0 B2 20 D0 A2 2E 00 00 96 [00:08:03]Write i2c OK [00:08:03]MH_I2C_Read... [00:08:03]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:03]Read from MH i2c: E2 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 03 00 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 03 00 EA 00 00 90 00 5E [00:08:03]RAPDU: 90 00 [00:08:03]wFMCommunicate OK [00:08:03]wFMCommunicate request_size=13 [00:08:03]MH_SAM_APDU [00:08:03]CAPDU: 80 15 02 00 08 F4 03 04 00 E3 8C C2 66 [00:08:03]Write to MH i2c: E2 10 00 EB 00 80 15 02 00 08 00 F4 03 04 00 E3 8C C2 66 00 00 0D [00:08:03]Write i2c OK [00:08:03]MH_I2C_Read... [00:08:03]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:03]Read from MH i2c: E2 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 03 00 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 03 00 EB 00 00 90 00 5F [00:08:03]RAPDU: 90 00 [00:08:03]wFMCommunicate OK [00:08:03]wFMCommunicate request_size=25 [00:08:03]MH_SAM_APDU [00:08:03]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 [00:08:03]Write to MH i2c: E2 1C 00 EC 00 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 00 00 D2 [00:08:03]Write i2c OK [00:08:03]MH_I2C_Read... [00:08:03]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:03]Read from MH i2c: E2 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 03 00 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 03 00 EC 00 00 90 00 60 [00:08:03]RAPDU: 90 00 [00:08:03]wFMCommunicate OK [00:08:03]wFMCommunicate request_size=4 [00:08:03]MH_SAM_APDU [00:08:03]CAPDU: 80 15 03 00 [00:08:03]Write to MH i2c: E2 08 00 ED 00 80 15 03 00 00 00 00 00 6E [00:08:03]Write i2c OK [00:08:03]MH_I2C_Read... [00:08:03]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:08:03]Read from MH i2c: E2 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 FD 00 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 FD 00 ED 00 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 30 10 04 04 00 A7 FB 03 00 0E 04 04 00 C1 01 00 00 5E 04 04 00 4C 02 00 00 57 04 04 00 4E 02 00 00 AA 04 AD 04 6E 04 04 00 4C 02 00 00 69 04 9E 00 6F 04 04 00 4C 02 00 00 B1 04 04 00 4F 10 DE 02 70 04 04 00 08 3C 19 02 72 04 03 00 47 D4 C4 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 4C F9 4D 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 75 7F 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7C [00:08: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 30 10 04 04 00 A7 FB 03 00 0E 04 04 00 C1 01 00 00 5E 04 04 00 4C 02 00 00 57 04 04 00 4E 02 00 00 AA 04 AD 04 6E 04 04 00 4C 02 00 00 69 04 9E 00 6F 04 04 00 4C 02 00 00 B1 04 04 00 4F 10 DE 02 70 04 04 00 08 3C 19 02 72 04 03 00 47 D4 C4 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 4C F9 4D 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 75 7F 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:08:04]wFMCommunicate OK [00:08:04]SAM_PROTO_ProcessDocument answer len = 1268 [00:08:04]SAM_PROTO_ProcessDocument remain to read = 1020 [00:08:04]wFMCommunicate request_size=4 [00:08:04]MH_SAM_APDU [00:08:04]CAPDU: 80 17 00 00 [00:08:04]Write to MH i2c: E2 08 00 EE 00 80 17 00 00 00 00 00 00 6E [00:08:04]Write i2c OK [00:08:04]MH_I2C_Read... [00:08:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:04]Read from MH i2c: E2 [00:08:04]MH_I2C_Read... [00:08:04]Read from MH i2c: E2 FD 00 [00:08:04]MH_I2C_Read... [00:08:04]Read from MH i2c: E2 FD 00 EE 00 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 C2 [00:08:04]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:08:04]wFMCommunicate OK [00:08:04]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:08:04]SAM_PROTO_ProcessDocument remain to read = 770 [00:08:04]wFMCommunicate request_size=4 [00:08:04]MH_SAM_APDU [00:08:04]CAPDU: 80 17 00 00 [00:08:04]Write to MH i2c: E2 08 00 EF 00 80 17 00 00 00 00 00 00 6F [00:08:04]Write i2c OK [00:08:04]MH_I2C_Read... [00:08:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:05]Read from MH i2c: E2 [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: E2 FD 00 [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: E2 FD 00 EF 00 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 D1 [00:08: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:08:05]wFMCommunicate OK [00:08:05]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:08:05]SAM_PROTO_ProcessDocument remain to read = 520 [00:08:05]wFMCommunicate request_size=4 [00:08:05]MH_SAM_APDU [00:08:05]CAPDU: 80 17 00 00 [00:08:05]Write to MH i2c: E2 08 00 F0 00 80 17 00 00 00 00 00 00 70 [00:08:05]Write i2c OK [00:08:05]MH_I2C_Read... [00:08:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:05]Read from MH i2c: E2 [00:08:05]MH_I2C_Read... [00:08:05]OFD Sender: No OFD packet to send [00:08:05]Read from MH i2c: E2 FD 00 [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: E2 FD 00 F0 00 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 F8 [00:08:05]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:08:06]wFMCommunicate OK [00:08:06]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:08:06]SAM_PROTO_ProcessDocument remain to read = 270 [00:08:06]wFMCommunicate request_size=4 [00:08:06]MH_SAM_APDU [00:08:06]CAPDU: 80 17 00 00 [00:08:06]Write to MH i2c: E2 08 00 F1 00 80 17 00 00 00 00 00 00 71 [00:08:06]Write i2c OK [00:08:06]MH_I2C_Read... [00:08:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:06]Read from MH i2c: E2 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 FD 00 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 FD 00 F1 00 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 3B [00:08: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:08:06]wFMCommunicate OK [00:08:06]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:08:06]SAM_PROTO_ProcessDocument remain to read = 20 [00:08:06]wFMCommunicate request_size=4 [00:08:06]MH_SAM_APDU [00:08:06]CAPDU: 80 17 00 00 [00:08:06]Write to MH i2c: E2 08 00 F2 00 80 17 00 00 00 00 00 00 72 [00:08:06]Write i2c OK [00:08:06]MH_I2C_Read... [00:08:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 20! [00:08:06]Read from MH i2c: E2 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 17 00 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 17 00 F2 00 00 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 70 DD 53 EB 38 6A 90 00 E0 [00:08:06]RAPDU: 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 70 DD 53 EB 38 6A 90 00 [00:08:06]wFMCommunicate OK [00:08:06]SAM_PROTO_ProcessDocument received (without SW) 20 bytes [00:08:06]SAM_PROTO_ProcessDocument done [00:08:06]1209 (1) - 1.0 - номер версии ФФД [00:08:06]1041 (16) - 0000000000871820 - номер ФМ [00:08:06]1040 (4) - 261031 - номер ФД [00:08:06]1038 (4) - 449 - номер смены [00:08:06]1118 (4) - 588 - количество кассовых чеков за смену [00:08:06]1111 (4) - 590 - общее количество ФД за смену [00:08:06]1194 (1197) - счетчики итогов смены [00:08:06] 1134 (4) - 588 - количество чеков со всеми признаками расчетов [00:08:06] 1129 (158) - счетчики операций «приход» [00:08:06] 1135 (4) - 588 - количество чеков по признаку расчетов [00:08:06] 1201 (4) - 481075.99 - общая итоговая сумма в чеках [00:08:06] 1136 (4) - 352082.00 - итоговая сумма в чеках наличными [00:08:06] 1138 (3) - 128993.99 - итоговая сумма в чеках безналичными [00:08:06] 1024 (123) - суммы налогов [00:08:06] 1006 (9) - суммы НДС [00:08:06] 1010 (1) - 0% - код ставки НДС [00:08:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:06] 1006 (12) - суммы НДС [00:08:06] 1010 (1) - 12% - код ставки НДС [00:08:06] 1011 (3) - 51100.92 - сумма НДС по ставке [00:08:06] 1007 (9) - суммы НСП [00:08:06] 1014 (1) - 0% - код ставки НСП [00:08:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:06] 1007 (12) - суммы НСП [00:08:06] 1014 (1) - 1% - код ставки НСП [00:08:06] 1015 (3) - 4258.45 - сумма НСП по ставке [00:08:06] 1007 (9) - суммы НСП [00:08:06] 1014 (1) - 2% - код ставки НСП [00:08:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:06] 1007 (9) - суммы НСП [00:08:06] 1014 (1) - 3% - код ставки НСП [00:08:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:06] 1007 (9) - суммы НСП [00:08:06] 1014 (1) - 5% - код ставки НСП [00:08:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:06] 1007 (9) - суммы НСП [00:08:06] 1014 (1) - 0,50% - код ставки НСП [00:08:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:06] 1007 (9) - суммы НСП [00:08:06] 1014 (1) - 1,50% - код ставки НСП [00:08:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:06] 1130 (141) - счетчики операций «возврат прихода» [00:08:06] 1135 (4) - 0 - количество чеков по признаку расчетов [00:08:06] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:08:06] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:08:06] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:08:06] 1024 (117) - суммы налогов [00:08:06] 1006 (9) - суммы НДС [00:08:06] 1010 (1) - 0% - код ставки НДС [00:08:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:06] 1006 (9) - суммы НДС [00:08:06] 1010 (1) - 12% - код ставки НДС [00:08:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:06] 1007 (9) - суммы НСП [00:08:06] 1014 (1) - 0% - код ставки НСП [00:08:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:06] 1007 (9) - суммы НСП [00:08:06] 1014 (1) - 1% - код ставки НСП [00:08:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:06] 1007 (9) - суммы НСП [00:08:06] 1014 (1) - 2% - код ставки НСП [00:08:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:06] 1007 (9) - суммы НСП [00:08:06] 1014 (1) - 3% - код ставки НСП [00:08:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:06] 1007 (9) - суммы НСП [00:08:06] 1014 (1) - 5% - код ставки НСП [00:08:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:06] 1007 (9) - суммы НСП [00:08:06] 1014 (1) - 0,50% - код ставки НСП [00:08:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:06] 1007 (9) - суммы НСП [00:08:06] 1014 (1) - 1,50% - код ставки НСП [00:08:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:06] 1131 (141) - счетчики операций «расход» [00:08:06] 1135 (4) - 0 - количество чеков по признаку расчетов [00:08:06] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:08:06] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:08:06] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:08:06] 1024 (117) - суммы налогов [00:08:06] 1006 (9) - суммы НДС [00:08:06] 1010 (1) - 0% - код ставки НДС [00:08:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:06] 1006 (9) - суммы НДС [00:08:06] 1010 (1) - 12% - код ставки НДС [00:08:07] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:07] 1007 (9) - суммы НСП [00:08:07] 1014 (1) - 0% - код ставки НСП [00:08:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:07] 1007 (9) - суммы НСП [00:08:07] 1014 (1) - 1% - код ставки НСП [00:08:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:07] 1007 (9) - суммы НСП [00:08:07] 1014 (1) - 2% - код ставки НСП [00:08:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:07] 1007 (9) - суммы НСП [00:08:07] 1014 (1) - 3% - код ставки НСП [00:08:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:07] 1007 (9) - суммы НСП [00:08:07] 1014 (1) - 5% - код ставки НСП [00:08:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:07] 1007 (9) - суммы НСП [00:08:07] 1014 (1) - 0,50% - код ставки НСП [00:08:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:07] 1007 (9) - суммы НСП [00:08:07] 1014 (1) - 1,50% - код ставки НСП [00:08:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:07] 1132 (141) - счетчики операций «возврат расхода» [00:08:07] 1135 (4) - 0 - количество чеков по признаку расчетов [00:08:07] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:08:07] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:08:07] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:08:07] 1024 (117) - суммы налогов [00:08:07] 1006 (9) - суммы НДС [00:08:07] 1010 (1) - 0% - код ставки НДС [00:08:07] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:07] 1006 (9) - суммы НДС [00:08:07] 1010 (1) - 12% - код ставки НДС [00:08:07] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:07] 1007 (9) - суммы НСП [00:08:07] 1014 (1) - 0% - код ставки НСП [00:08:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:07] 1007 (9) - суммы НСП [00:08:07] 1014 (1) - 1% - код ставки НСП [00:08:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:07] 1007 (9) - суммы НСП [00:08:07] 1014 (1) - 2% - код ставки НСП [00:08:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:07] 1007 (9) - суммы НСП [00:08:07] 1014 (1) - 3% - код ставки НСП [00:08:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:07] 1007 (9) - суммы НСП [00:08:07] 1014 (1) - 5% - код ставки НСП [00:08:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:07] 1007 (9) - суммы НСП [00:08:07] 1014 (1) - 0,50% - код ставки НСП [00:08:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:07] 1007 (9) - суммы НСП [00:08:07] 1014 (1) - 1,50% - код ставки НСП [00:08:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:07] 1133 (588) - - счетчики коррекции - не используются [00:08:07]1077 (6) - 124095898007658 - ФПД [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1209 (04B9) [00:08:07]Malloc new data [00:08:07]Processing tag 1041 (0411) [00:08:07]Processing tag 1040 (0410) [00:08:07]Malloc new data [00:08:07]Processing tag 1038 (040E) [00:08:07]Malloc new data [00:08:07]Processing tag 1118 (045E) [00:08:07]Malloc new data [00:08:07]Processing tag 1111 (0457) [00:08:07]Malloc new data [00:08:07]Processing tag 1194 (04AA) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1134 (046E) [00:08:07]Malloc new data [00:08:07]Processing tag 1129 (0469) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1135 (046F) [00:08:07]Malloc new data [00:08:07]Processing tag 1201 (04B1) [00:08:07]Malloc new data [00:08:07]Processing tag 1136 (0470) [00:08:07]Malloc new data [00:08:07]Processing tag 1138 (0472) [00:08:07]Malloc new data [00:08:07]Processing tag 1024 (0400) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1006 (03EE) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1010 (03F2) [00:08:07]Malloc new data [00:08:07]Processing tag 1011 (03F3) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1006 (03EE) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1010 (03F2) [00:08:07]Malloc new data [00:08:07]Processing tag 1011 (03F3) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1007 (03EF) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1014 (03F6) [00:08:07]Malloc new data [00:08:07]Processing tag 1015 (03F7) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1007 (03EF) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1014 (03F6) [00:08:07]Malloc new data [00:08:07]Processing tag 1015 (03F7) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1007 (03EF) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1014 (03F6) [00:08:07]Malloc new data [00:08:07]Processing tag 1015 (03F7) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1007 (03EF) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1014 (03F6) [00:08:07]Malloc new data [00:08:07]Processing tag 1015 (03F7) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1007 (03EF) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1014 (03F6) [00:08:07]Malloc new data [00:08:07]Processing tag 1015 (03F7) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1007 (03EF) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1014 (03F6) [00:08:07]Malloc new data [00:08:07]Processing tag 1015 (03F7) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1007 (03EF) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1014 (03F6) [00:08:07]Malloc new data [00:08:07]Processing tag 1015 (03F7) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]SetTLVBufToDocument err=0 [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1130 (046A) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1135 (046F) [00:08:07]Malloc new data [00:08:07]Processing tag 1201 (04B1) [00:08:07]Malloc new data [00:08:07]Processing tag 1136 (0470) [00:08:07]Malloc new data [00:08:07]Processing tag 1138 (0472) [00:08:07]Malloc new data [00:08:07]Processing tag 1024 (0400) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1006 (03EE) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1010 (03F2) [00:08:07]Malloc new data [00:08:07]Processing tag 1011 (03F3) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1006 (03EE) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1010 (03F2) [00:08:07]Malloc new data [00:08:07]Processing tag 1011 (03F3) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1007 (03EF) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1014 (03F6) [00:08:07]Malloc new data [00:08:07]Processing tag 1015 (03F7) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1007 (03EF) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1014 (03F6) [00:08:07]Malloc new data [00:08:07]Processing tag 1015 (03F7) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1007 (03EF) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1014 (03F6) [00:08:07]Malloc new data [00:08:07]Processing tag 1015 (03F7) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1007 (03EF) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1014 (03F6) [00:08:07]Malloc new data [00:08:07]Processing tag 1015 (03F7) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1007 (03EF) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1014 (03F6) [00:08:07]Malloc new data [00:08:07]Processing tag 1015 (03F7) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1007 (03EF) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1014 (03F6) [00:08:07]Malloc new data [00:08:07]Processing tag 1015 (03F7) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1007 (03EF) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1014 (03F6) [00:08:07]Malloc new data [00:08:07]Processing tag 1015 (03F7) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]SetTLVBufToDocument err=0 [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1131 (046B) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1135 (046F) [00:08:07]Malloc new data [00:08:07]Processing tag 1201 (04B1) [00:08:07]Malloc new data [00:08:07]Processing tag 1136 (0470) [00:08:07]Malloc new data [00:08:07]Processing tag 1138 (0472) [00:08:07]Malloc new data [00:08:07]Processing tag 1024 (0400) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1006 (03EE) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1010 (03F2) [00:08:07]Malloc new data [00:08:07]Processing tag 1011 (03F3) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1006 (03EE) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1010 (03F2) [00:08:07]Malloc new data [00:08:07]Processing tag 1011 (03F3) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1007 (03EF) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1014 (03F6) [00:08:07]Malloc new data [00:08:07]Processing tag 1015 (03F7) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1007 (03EF) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1014 (03F6) [00:08:07]Malloc new data [00:08:07]Processing tag 1015 (03F7) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1007 (03EF) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1014 (03F6) [00:08:07]Malloc new data [00:08:07]Processing tag 1015 (03F7) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1007 (03EF) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1014 (03F6) [00:08:07]Malloc new data [00:08:07]Processing tag 1015 (03F7) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1007 (03EF) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1014 (03F6) [00:08:07]Malloc new data [00:08:07]Processing tag 1015 (03F7) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1007 (03EF) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1014 (03F6) [00:08:07]Malloc new data [00:08:07]Processing tag 1015 (03F7) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1007 (03EF) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1014 (03F6) [00:08:07]Malloc new data [00:08:07]Processing tag 1015 (03F7) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]SetTLVBufToDocument err=0 [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1132 (046C) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1135 (046F) [00:08:07]Malloc new data [00:08:07]Processing tag 1201 (04B1) [00:08:07]Malloc new data [00:08:07]Processing tag 1136 (0470) [00:08:07]Malloc new data [00:08:07]Processing tag 1138 (0472) [00:08:07]Malloc new data [00:08:07]Processing tag 1024 (0400) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1006 (03EE) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1010 (03F2) [00:08:07]Malloc new data [00:08:07]Processing tag 1011 (03F3) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1006 (03EE) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1010 (03F2) [00:08:07]Malloc new data [00:08:07]Processing tag 1011 (03F3) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1007 (03EF) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1014 (03F6) [00:08:07]Malloc new data [00:08:07]Processing tag 1015 (03F7) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1007 (03EF) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1014 (03F6) [00:08:07]Malloc new data [00:08:07]Processing tag 1015 (03F7) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1007 (03EF) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1014 (03F6) [00:08:07]Malloc new data [00:08:07]Processing tag 1015 (03F7) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1007 (03EF) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1014 (03F6) [00:08:07]Malloc new data [00:08:07]Processing tag 1015 (03F7) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1007 (03EF) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1014 (03F6) [00:08:07]Malloc new data [00:08:07]Processing tag 1015 (03F7) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1007 (03EF) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1014 (03F6) [00:08:07]Malloc new data [00:08:07]Processing tag 1015 (03F7) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1007 (03EF) [00:08:07]Load OK [00:08:07]SetTLVBufToDocument [00:08:07]Processing tag 1014 (03F6) [00:08:07]Malloc new data [00:08:07]Processing tag 1015 (03F7) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]SetTLVBufToDocument err=0 [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1133 (046D) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Processing tag 1077 (0435) [00:08:07]Malloc new data [00:08:07]SetTLVBufToDocument err=0 [00:08:07]Malloc new data [00:08:07]SAM_PROTO_GetFMData [00:08:07]wFMCommunicate request_size=4 [00:08:07]MH_SAM_APDU [00:08:07]CAPDU: 80 13 03 00 [00:08:07]Write to MH i2c: E2 08 00 F3 00 80 13 03 00 00 00 00 00 72 [00:08:07]Write i2c OK [00:08:07]MH_I2C_Read... [00:08:08]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:08]Read from MH i2c: E2 [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: E2 FD 00 [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: E2 FD 00 F3 00 00 C4 04 85 04 C0 04 6E 04 04 00 24 F8 03 00 69 04 A3 00 6F 04 04 00 BA F5 03 00 B1 04 05 00 45 65 C1 AC 04 70 04 05 00 18 67 A7 BC 03 72 04 04 00 2D FE 19 F0 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 99 CA 21 7F 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 25 EA 97 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 6A 02 00 00 B1 04 04 00 44 AB D8 05 70 04 04 00 44 AB D8 05 72 04 00 00 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 91 F7 9E EF 03 09 00 90 00 72 [00:08:08]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 24 F8 03 00 69 04 A3 00 6F 04 04 00 BA F5 03 00 B1 04 05 00 45 65 C1 AC 04 70 04 05 00 18 67 A7 BC 03 72 04 04 00 2D FE 19 F0 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 99 CA 21 7F 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 25 EA 97 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 6A 02 00 00 B1 04 04 00 44 AB D8 05 70 04 04 00 44 AB D8 05 72 04 00 00 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 91 F7 9E EF 03 09 00 90 00 [00:08:08]wFMCommunicate OK [00:08:08]wFMCommunicate request_size=4 [00:08:08]MH_SAM_APDU [00:08:08]CAPDU: 80 17 00 00 [00:08:08]Write to MH i2c: E2 08 00 F4 00 80 17 00 00 00 00 00 00 74 [00:08:08]Write i2c OK [00:08:08]MH_I2C_Read... [00:08:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:08]Read from MH i2c: E2 [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: E2 FD 00 [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: E2 FD 00 F4 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0E 3F 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 84 [00:08:09]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0E 3F 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:09]wFMCommunicate OK [00:08:09]wFMCommunicate request_size=4 [00:08:09]MH_SAM_APDU [00:08:09]CAPDU: 80 17 00 00 [00:08:09]Write to MH i2c: E2 08 00 F5 00 80 17 00 00 00 00 00 00 75 [00:08:09]Write i2c OK [00:08:09]MH_I2C_Read... [00:08:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:09]Read from MH i2c: E2 [00:08:09]MH_I2C_Read... [00:08:09]Read from MH i2c: E2 FD 00 [00:08:09]MH_I2C_Read... [00:08:09]Read from MH i2c: E2 FD 00 F5 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 8A [00:08:09]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:09]wFMCommunicate OK [00:08:09]wFMCommunicate request_size=4 [00:08:09]MH_SAM_APDU [00:08:09]CAPDU: 80 17 00 00 [00:08:09]Write to MH i2c: E2 08 00 F6 00 80 17 00 00 00 00 00 00 76 [00:08:10]Write i2c OK [00:08:10]MH_I2C_Read... [00:08:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:10]Read from MH i2c: E2 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 FD 00 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 FD 00 F6 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EE [00:08:10]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:10]wFMCommunicate OK [00:08:10]wFMCommunicate request_size=4 [00:08:10]MH_SAM_APDU [00:08:10]CAPDU: 80 17 00 00 [00:08:10]Write to MH i2c: E2 08 00 F7 00 80 17 00 00 00 00 00 00 77 [00:08:10]Write i2c OK [00:08:10]MH_I2C_Read... [00:08:10]OFD Sender: No OFD packet to send [00:08:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:08:10]Read from MH i2c: E2 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 E1 00 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 E1 00 F7 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 65 [00:08:11]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:08:11]wFMCommunicate OK [00:08:11]SAM_PROTO_GetFMData done [00:08:11]Malloc new data [00:08:11]Malloc new data [00:08:11]Malloc new data [00:08:11]Malloc new data [00:08:11]KKMLoadAndSignCloseShiftData err=0 [00:08:11]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Атаев Т. 19.08.2024 00:08 Смена: 449 РНМ: 0000000000091865 ЗНМ: 0300000099 СНО: Общий режим Чеков за смену: 588 ФД за смену: 590 Всего чеков: 588 ИТОГИ ПРИХОД Чеков: 588 Общий итог: 481075.99 Итого наличными: 352082.00 Итого безнал.: 128993.99 НДС 0% : 0.00 НДС 12% : 51100.92 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 4258.45 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 352082.00 НС Приход: 200782247.09 НС Возвр.Прихода: 980857.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 261031 ФМ: 0000000000871820 ФПД: 124095898007658 [00:08:11]StoreToDocumentArchive [00:08:11]shift 449 fd 261031 [00:08:11]save to /storage/0449/doc_00261031 [00:08:11]save last doc name /storage/0449/doc_00261031 to /storage/kkm_last_doc_name [00:08:11]save OK [00:08:11]Clear old archive folders... [00:08:11]Remove dir /storage/0266 [00:08:11]opendir ok [00:08:11]file . [00:08:11]file .. [00:08:11]file doc_1724026045 [00:08:11]remove file /storage/0266/doc_1724026045 [00:08:11]remove dir /storage/0266 [00:08:11]NVStorageSaveData kkm_registers [00:08:11]File name is /storage/kkm_registers [00:08:11]Write 24 bytes [00:08:11]NVStorageSaveData done [00:08:11]NVStorageSaveData kkm_registers [00:08:11]File name is /storage/kkm_registers [00:08:11]Write 24 bytes [00:08:11]NVStorageSaveData done [00:08:11]ProcessDocumentItem done err = 0, tmpTLVsize=1375 [00:08:11]tlvbuf is 00A49C10 [00:08:11]SAM_PROTO_ClearQueue [00:08:11]wFMCommunicate request_size=4 [00:08:11]MH_SAM_APDU [00:08:11]CAPDU: 80 09 00 00 [00:08:11]Write to MH i2c: E2 08 00 F8 00 80 09 00 00 00 00 00 00 6A [00:08:11]Write i2c OK [00:08:11]MH_I2C_Read... [00:08:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:08:11]Read from MH i2c: E2 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: E2 03 00 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: E2 03 00 F8 00 00 90 00 6C [00:08:11]RAPDU: 90 00 [00:08:11]wFMCommunicate OK [00:08:11]SAM_PROTO_ClearQueue done [00:08:11]KKMCreateOFDPacket [00:08:11]OFDProtocolAddRootSTLVToBuf [00:08:11]FM_MakeSignedData [00:08:11]FM_MakeSignedData [00:08:11]SAM_PROTO_SignData [00:08:11]wFMCommunicate request_size=4 [00:08:11]MH_SAM_APDU [00:08:11]CAPDU: 80 0D 01 02 [00:08:11]Write to MH i2c: E2 08 00 F9 00 80 0D 01 02 00 00 00 00 72 [00:08:11]Write i2c OK [00:08:11]MH_I2C_Read... [00:08:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:08:11]Read from MH i2c: E2 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: E2 03 00 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: E2 03 00 F9 00 00 90 00 6D [00:08:11]RAPDU: 90 00 [00:08:11]wFMCommunicate OK [00:08:11]wFMCommunicate request_size=255 [00:08:11]MH_SAM_APDU [00:08:11]CAPDU: 80 0D 02 02 FA 05 00 5F 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 0E 00 D0 90 D1 82 D0 B0 D0 B5 D0 B2 20 D0 A2 2E F4 03 04 00 E3 8C C2 66 0E 04 04 00 C1 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 5E 04 04 00 4C 02 00 00 57 04 04 00 4E 02 00 00 AA 04 D8 04 6E 04 04 00 4C 02 00 00 69 04 A5 00 6F 04 04 00 4C 02 00 00 B1 04 04 00 4F 10 DE 02 70 04 04 00 08 3C 19 02 72 04 03 00 47 D4 C4 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 4C F9 4D 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 [00:08:11]Write to MH i2c: E2 02 01 FA 00 80 0D 02 02 FA 00 05 00 5F 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 0E 00 D0 90 D1 82 D0 B0 D0 B5 D0 B2 20 D0 A2 2E F4 03 04 00 E3 8C C2 66 0E 04 04 00 C1 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 5E 04 04 00 4C 02 00 00 57 04 04 00 4E 02 00 00 AA 04 D8 04 6E 04 04 00 4C 02 00 00 69 04 A5 00 6F 04 04 00 4C 02 00 00 B1 04 04 00 4F 10 DE 02 70 04 04 00 08 3C 19 02 72 04 03 00 47 D4 C4 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 4C F9 4D 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 00 00 67 [00:08:11]Write i2c OK [00:08:11]MH_I2C_Read... [00:08:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:12]Read from MH i2c: E2 [00:08:12]MH_I2C_Read... [00:08:12]Read from MH i2c: E2 03 00 [00:08:12]MH_I2C_Read... [00:08:12]Read from MH i2c: E2 03 00 FA 00 00 90 00 6E [00:08:12]RAPDU: 90 00 [00:08:12]wFMCommunicate OK [00:08:12]wFMCommunicate request_size=255 [00:08:12]MH_SAM_APDU [00:08:12]CAPDU: 80 0D 02 02 FA 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 75 7F 06 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 [00:08:12]Write to MH i2c: E2 02 01 FB 00 80 0D 02 02 FA 00 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 75 7F 06 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 00 00 E3 [00:08:12]Write i2c OK [00:08:12]MH_I2C_Read... [00:08:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:12]Read from MH i2c: E2 [00:08:12]MH_I2C_Read... [00:08:12]Read from MH i2c: E2 03 00 [00:08:12]MH_I2C_Read... [00:08:12]Read from MH i2c: E2 03 00 FB 00 00 90 00 6F [00:08:12]RAPDU: 90 00 [00:08:12]wFMCommunicate OK [00:08:12]wFMCommunicate request_size=255 [00:08:12]MH_SAM_APDU [00:08:12]CAPDU: 80 0D 02 02 FA 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 [00:08:13]Write to MH i2c: E2 02 01 FC 00 80 0D 02 02 FA 00 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 00 00 B0 [00:08:13]Write i2c OK [00:08:13]MH_I2C_Read... [00:08:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:13]Read from MH i2c: E2 [00:08:13]MH_I2C_Read... [00:08:13]Read from MH i2c: E2 03 00 [00:08:13]MH_I2C_Read... [00:08:13]Read from MH i2c: E2 03 00 FC 00 00 90 00 70 [00:08:13]RAPDU: 90 00 [00:08:13]wFMCommunicate OK [00:08:13]wFMCommunicate request_size=255 [00:08:13]MH_SAM_APDU [00:08:13]CAPDU: 80 0D 02 02 FA 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 [00:08:13]Write to MH i2c: E2 02 01 FD 00 80 0D 02 02 FA 00 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 00 00 BE [00:08:13]Write i2c OK [00:08:13]MH_I2C_Read... [00:08:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:14]Read from MH i2c: E2 [00:08:14]MH_I2C_Read... [00:08:14]Read from MH i2c: E2 03 00 [00:08:14]MH_I2C_Read... [00:08:14]Read from MH i2c: E2 03 00 FD 00 00 90 00 71 [00:08:14]RAPDU: 90 00 [00:08:14]wFMCommunicate OK [00:08:14]wFMCommunicate request_size=255 [00:08:14]MH_SAM_APDU [00:08:14]CAPDU: 80 0D 02 02 FA 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:08:14]Write to MH i2c: E2 02 01 FE 00 80 0D 02 02 FA 00 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 00 0F [00:08:14]Write i2c OK [00:08:14]MH_I2C_Read... [00:08:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:14]Read from MH i2c: E2 [00:08:14]MH_I2C_Read... [00:08:14]Read from MH i2c: E2 03 00 [00:08:14]MH_I2C_Read... [00:08:14]Read from MH i2c: E2 03 00 FE 00 00 90 00 72 [00:08:14]RAPDU: 90 00 [00:08:14]wFMCommunicate OK [00:08:14]wFMCommunicate request_size=134 [00:08:15]MH_SAM_APDU [00:08:15]CAPDU: 80 0D 02 02 81 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A7 FB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 35 04 06 00 70 DD 53 EB 38 6A [00:08:15]Write to MH i2c: E2 89 00 FF 00 80 0D 02 02 81 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A7 FB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 35 04 06 00 70 DD 53 EB 38 6A 00 00 81 [00:08:15]Write i2c OK [00:08:15]MH_I2C_Read... [00:08:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:15]Read from MH i2c: E2 [00:08:15]MH_I2C_Read... [00:08:15]Read from MH i2c: E2 03 00 [00:08:15]MH_I2C_Read... [00:08:15]Read from MH i2c: E2 03 00 FF 00 00 90 00 73 [00:08:15]RAPDU: 90 00 [00:08:15]wFMCommunicate OK [00:08:15]wFMCommunicate request_size=4 [00:08:15]MH_SAM_APDU [00:08:15]CAPDU: 80 0D 03 02 [00:08:15]Write to MH i2c: E2 08 00 00 01 80 0D 03 02 00 00 00 00 7C [00:08:15]Write i2c OK [00:08:15]MH_I2C_Read... [00:08:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:08:15]Read from MH i2c: E2 [00:08:15]MH_I2C_Read... [00:08:15]Read from MH i2c: E2 0B 00 [00:08:15]MH_I2C_Read... [00:08:15]Read from MH i2c: E2 0B 00 00 01 00 86 6A 57 6E 45 B2 6C F9 90 00 8E [00:08:15]RAPDU: 86 6A 57 6E 45 B2 6C F9 90 00 [00:08:15]wFMCommunicate OK [00:08:15]SAM_PROTO_SignData done [00:08:15]FM_MakeSignedData done [00:08:15]CreateOFDProtocolMessage [00:08:15]wFMCommunicate request_size=4 [00:08:15]MH_SAM_APDU [00:08:15]CAPDU: 80 11 00 00 [00:08:15]Write to MH i2c: E2 08 00 01 01 80 11 00 00 00 00 00 00 7C [00:08:15]Write i2c OK [00:08:15]MH_I2C_Read... [00:08:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:08:15]Read from MH i2c: E2 [00:08:15]MH_I2C_Read... [00:08:15]Read from MH i2c: E2 17 00 [00:08:15]MH_I2C_Read... [00:08:15]Read from MH i2c: E2 17 00 01 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C9 [00:08:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [00:08:15]wFMCommunicate OK [00:08:15]CreateOFDProtocolMessage done [00:08:15]OFDSenderStorePacket 261031 [00:08:15]StoreOFDPacket docnum=261031 [00:08:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 73 05 00 00 56 6B 6B 05 66 08 5A 05 01 00 05 00 5F 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 0E 00 D0 90 D1 82 D0 B0 D0 B5 D0 B2 20 D0 A2 2E F4 03 04 00 E3 8C C2 66 0E 04 04 00 C1 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 5E 04 04 00 4C 02 00 00 57 04 04 00 4E 02 00 00 AA 04 D8 04 6E 04 04 00 4C 02 00 00 69 04 A5 00 6F 04 04 00 4C 02 00 00 B1 04 04 00 4F 10 DE 02 70 04 04 00 08 3C 19 02 72 04 03 00 47 D4 C4 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 4C F9 4D 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 75 7F 06 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 A7 FB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 35 04 06 00 70 DD 53 EB 38 6A 86 6A 57 6E 45 B2 6C F9 [00:08:15]CheckFolder [00:08:15]dirname=/storage/ofd_packets [00:08:15]CheckFolder done [00:08:15]ProducePacketName [00:08:15]name=ofd_packets/00261031 [00:08:15]NVStorageSaveData ofd_packets/00261031 [00:08:15]File name is /storage/ofd_packets/00261031 [00:08:15]Write 1425 bytes [00:08:15]NVStorageSaveData done [00:08:15]OFDSenderStorePacket done [00:08:15]KKMCreateOFDPacket done [00:08:15]NVStorageSaveData kkm_last_timestamp [00:08:15]File name is /storage/kkm_last_timestamp [00:08:15]Write 4 bytes [00:08:16]NVStorageSaveData done [00:08:16]ExternCall_PrintAddStr [00:08:16]wPrintStart [00:08:16]Write to MH i2c: 01 00 00 02 01 03 [00:08:16]OFD Sender: No OFD packet to send [00:08:16]Write i2c OK [00:08:16]MH_I2C_Read... [00:08:16]Read from MH i2c: 01 [00:08:16]MH_I2C_Read... [00:08:16]Read from MH i2c: 01 07 00 [00:08:16]MH_I2C_Read... [00:08:16]Read from MH i2c: 01 07 00 02 01 00 00 00 00 00 FF 0F 18 [00:08:16]RasterBufferAndPrint [00:08:16]line Отчет о закрытии смены [00:08:16]line ФФД: 1.0 [00:08:16]line ИНН: 02508201610067 [00:08:16]line Кассир: Атаев Т. [00:08:16]line 19.08.2024 00:08 [00:08:16]line Смена: 449 [00:08:16]line РНМ: 0000000000091865 [00:08:16]line ЗНМ: 0300000099 [00:08:16]line СНО: Общий режим [00:08:16]line Чеков за смену: 588 [00:08:16]line ФД за смену: 590 [00:08:16]line Всего чеков: 588 [00:08:16]line ИТОГИ ПРИХОД [00:08:16]line Чеков: 588 [00:08:16]line Общий итог: 481075.99 [00:08:16]line Итого наличными: 352082.00 [00:08:16]line Итого безнал.: 128993.99 [00:08:16]line НДС 0% : 0.00 [00:08:16]line НДС 12% : 51100.92 [00:08:16]line НСП 0% : 0.00 [00:08:16]line НСП 1,50% : 0.00 [00:08:16]line НСП 0,50% : 0.00 [00:08:16]line НСП 5% : 0.00 [00:08:16]line НСП 3% : 0.00 [00:08:16]line НСП 2% : 0.00 [00:08:16]line НСП 1% : 4258.45 [00:08:16]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:08:16]line Чеков: 0 [00:08:16]line Общий итог: 0.00 [00:08:16]line Итого наличными: 0.00 [00:08:16]line Итого безнал.: 0.00 [00:08:16]line НДС 0% : 0.00 [00:08:16]line НДС 12% : 0.00 [00:08:16]line НСП 0% : 0.00 [00:08:16]line НСП 1,50% : 0.00 [00:08:16]line НСП 0,50% : 0.00 [00:08:16]line НСП 5% : 0.00 [00:08:16]line НСП 3% : 0.00 [00:08:16]line НСП 2% : 0.00 [00:08:16]line НСП 1% : 0.00 [00:08:16]line ИТОГИ РАСХОД [00:08:16]line Чеков: 0 [00:08:16]line Общий итог: 0.00 [00:08:16]line Итого наличными: 0.00 [00:08:16]line Итого безнал.: 0.00 [00:08:16]line НДС 0% : 0.00 [00:08:16]line НДС 12% : 0.00 [00:08:16]line НСП 0% : 0.00 [00:08:16]line НСП 1,50% : 0.00 [00:08:16]line НСП 0,50% : 0.00 [00:08:16]line НСП 5% : 0.00 [00:08:16]line НСП 3% : 0.00 [00:08:16]line НСП 2% : 0.00 [00:08:16]line НСП 1% : 0.00 [00:08:16]line ИТОГИ ВОЗВРАТ РАСХОДА [00:08:16]line Чеков: 0 [00:08:16]line Общий итог: 0.00 [00:08:16]line Итого наличными: 0.00 [00:08:16]line Итого безнал.: 0.00 [00:08:16]line НДС 0% : 0.00 [00:08:16]line НДС 12% : 0.00 [00:08:16]line НСП 0% : 0.00 [00:08:16]line НСП 1,50% : 0.00 [00:08:16]line НСП 0,50% : 0.00 [00:08:16]line НСП 5% : 0.00 [00:08:16]line НСП 3% : 0.00 [00:08:16]line НСП 2% : 0.00 [00:08:16]line НСП 1% : 0.00 [00:08:16]line Сумма внесений: 0.00 [00:08:16]line Сумма выплат: 0.00 [00:08:16]line Нал. в кассе: 352082.00 [00:08:16]line НС Приход: 200782247.09 [00:08:16]line НС Возвр.Прихода: 980857.00 [00:08:16]line НС Расход: 0.00 [00:08:16]line НС Возвр.Расхода: 0.00 [00:08:16]line ФД: 261031 [00:08:16]line ФМ: 0000000000871820 [00:08:16]line ФПД: 124095898007658 [00:08:16]OFD Sender: Processing packet 261031 [packets to send 192, broken 191] [00:08:16]ProducePacketName [00:08:16]name=ofd_packets/00261031 [00:08:16]OFD Sender: To server: pG, [00:08:16]CommunicateWithHost lk.salyk.kg:30040 [00:08:16]ConnectInit lk.salyk.kg [00:08:16]written 0, free lines is 4095 [00:08:16]Connected sock=10 [00:08: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 30 73 05 00 00 56 6B 6B 05 66 08 5A 05 01 00 05 00 5F 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 0E 00 D0 90 D1 82 D0 B0 D0 B5 D0 B2 20 D0 A2 2E F4 03 04 00 E3 8C C2 66 0E 04 04 00 C1 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 5E 04 04 00 4C 02 00 00 57 04 04 00 4E 02 00 00 AA 04 D8 04 6E 04 04 00 4C 02 00 00 69 04 A5 00 6F 04 04 00 4C 02 00 00 B1 04 04 00 4F 10 DE 02 70 04 04 00 08 3C 19 02 72 04 03 00 47 D4 C4 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 4C F9 4D 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 75 7F 06 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 Write to MH i2c: 79 01 04 00 8D 00 00 52 6F 01 04 53 04 [00:08:16]00 00 00 00 00 B1 04 00 00 70 04 00 00 72 Write i2c OK [00:08:16]04 MH_I2C_Read... [00:08:16]00 00 00 04 75 00 EE Read from MH i2c: 03 01 09 [00:08:17]00 MH_I2C_Read... [00:08:17]F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 Read from MH i2c: 01 01 00 07 01 00 F3 [00:08:17]03 MH_I2C_Read... [00:08:17]00 Read from MH i2c: 00 01 EF 07 03 00 09 52 00 F6 03 01 00 00 F7 03 00 00 EF 03 01 09 00 00 00 F6 00 03 00 01 00 00 42 01 09 F7 A5 03 [00:08:17]00 RasterBufferAndPrint [00:08:17]00 EF 03 09 00 F6 03 01 00 02 F7 03 line [00:08:17]00 line [00:08:17]00 line [00:08:17]EF line [00:08:17]03 line [00:08:17]09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 written 0, free lines is 2518 [00:08:17]00 00 72 04 00 00 00 04 75 00 EE MH_Cut [00:08:17]03 Write to MH i2c: 09 D1 00 01 F2 00 03 59 01 01 00 01 00 2C F3 03 [00:08:17]00 00 EE 03 09 00 F2 03 01 00 Write i2c OK [00:08:17]01 MH_I2C_Read... [00:08:17]F3 Read from MH i2c: 03 D1 00 [00:08:17]00 EF 03 09 00 F6 MH_I2C_Read... [00:08:17]03 01 00 00 F7 03 00 00 EF 03 Read from MH i2c: 09 D1 00 01 F6 00 03 [00:08:17]01 MH_I2C_Read... [00:08:17]00 01 F7 03 00 Read from MH i2c: 00 D1 EF 01 03 00 09 59 00 01 F6 03 01 00 02 F7 00 03 2B 00 [00:08:17]00 EF 03 09 00 F6 03 01 00 03 F7 03 Write to MH i2c: 00 01 00 00 EF 00 03 5A 09 01 00 5B F6 [00:08:17]03 01 00 04 F7 03 00 00 Write i2c OK [00:08:17]EF MH_I2C_Read... [00:08:17]03 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 A7 FB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 35 04 06 00 70 DD 53 EB 38 6A 86 6A 57 6E 45 B2 6C F9 [00:08: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 30 4F 00 00 00 75 A0 47 00 4E 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A7 FB 03 00 F4 03 04 00 43 36 C2 66 B6 04 01 00 00 26 42 6B 1E 10 91 B2 21 [00:08:18]CommunicateWithHost err = 0 [00:08:18]CheckOFDResponse [00:08:18]1017 (14) - 77093643461234 [00:08:18]1041 (16) - 0000000000871820 [00:08:18]1040 (4) - 261031 [00:08:18]1012 (4) - 18.08.2024 17:58 [00:08:18]1206 (1) - 0 [00:08:18]OFD Sender: Remove packet 261031 [00:08:18]ProducePacketName [00:08:18]name=ofd_packets/00261031 [00:08:18]NVStorageDeleteData [00:08:18]OFD Sender: No OFD packet to send [00:08:18]*** Cut start [00:08:18]*** Purtial cut [00:08:18]*** Stage 1: CUTSNS_PIN = 1 [00:08:20]Read from MH i2c: 01 [00:08:20]MH_I2C_Read... [00:08:20]*** Stop cut motor [00:08:20]*** Cut end [00:08:20]Read from MH i2c: 01 07 00 [00:08:20]MH_I2C_Read... [00:08:20]Read from MH i2c: 01 07 00 5A 01 00 00 00 00 00 FF 0F 70 [00:08:20]process_action close_shift done [00:08:20]requested_data is exist [00:08:20]produce_requested_data [00:08:20]requested_item fd.num is exist - process it [00:08:20]SAM_PROTO_GetFieldsCounters [00:08:20]wFMCommunicate request_size=4 [00:08:20]MH_SAM_APDU [00:08:20]CAPDU: 80 13 00 00 [00:08:20]Write to MH i2c: E2 08 00 5B 01 80 13 00 00 00 00 00 00 D8 [00:08:20]Write i2c OK [00:08:20]MH_I2C_Read... [00:08:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:08:21]Read from MH i2c: E2 [00:08:21]MH_I2C_Read... [00:08:21]Read from MH i2c: E2 62 00 [00:08:21]MH_I2C_Read... [00:08:21]Read from MH i2c: E2 62 00 5B 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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A7 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4C 02 00 00 5E 04 04 00 4C 02 00 00 57 04 04 00 4E 02 00 00 19 04 04 00 00 00 00 00 90 00 49 [00:08: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A7 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4C 02 00 00 5E 04 04 00 4C 02 00 00 57 04 04 00 4E 02 00 00 19 04 04 00 00 00 00 00 90 00 [00:08:21]wFMCommunicate OK [00:08:21]SAM_PROTO_GetFieldsCounters done [00:08:21]requested_item shift.num is exist - process it [00:08:21]requested_item shift.opened is exist - process it [00:08:21]req_shift_opened [00:08:21]FM_GetShiftState [00:08:21]SAM_PROTO_GetShiftState [00:08:21]wFMCommunicate request_size=4 [00:08:21]MH_SAM_APDU [00:08:21]CAPDU: 80 13 01 00 [00:08:21]Write to MH i2c: E2 08 00 5C 01 80 13 01 00 00 00 00 00 DA [00:08:21]Write i2c OK [00:08:21]MH_I2C_Read... [00:08:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:21]Read from MH i2c: E2 [00:08:21]MH_I2C_Read... [00:08:21]Read from MH i2c: E2 0E 00 [00:08:21]MH_I2C_Read... [00:08:21]Read from MH i2c: E2 0E 00 5C 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E5 [00:08:21]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:08:21]wFMCommunicate OK [00:08:21]SAM_PROTO_GetShiftState done [00:08:21]FM_GetShiftState done [00:08:21]req_shift_opened done [00:08:21]requested_item shift.open_date is exist - process it [00:08:21]req_shift_open_date [00:08:21]FM_GetShiftState [00:08:21]SAM_PROTO_GetShiftState [00:08:21]wFMCommunicate request_size=4 [00:08:21]MH_SAM_APDU [00:08:21]CAPDU: 80 13 01 00 [00:08:21]Write to MH i2c: E2 08 00 5D 01 80 13 01 00 00 00 00 00 DB [00:08:21]Write i2c OK [00:08:21]MH_I2C_Read... [00:08:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:21]Read from MH i2c: E2 [00:08:21]MH_I2C_Read... [00:08:21]Read from MH i2c: E2 0E 00 [00:08:21]MH_I2C_Read... [00:08:21]Read from MH i2c: E2 0E 00 5D 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E6 [00:08:21]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:08:21]wFMCommunicate OK [00:08:21]SAM_PROTO_GetShiftState done [00:08:21]FM_GetShiftState done [00:08:21]req_shift_open_date done [00:08:21]produce_requested_data done [00:08:21]produce_requested_data return {"fd.num":261031,"shift.num":449,"shift.opened":0,"shift.open_date":0} [00:08:21]process_action_free close_shift [00:08:21]json_value_free [00:08:21]json_value_free done [00:08:21]process_json_proto returns [00:08:21]Send response to host [00:08:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":261031,"shift.num":449,"shift.opened":0,"shift.open_date":0}}} [00:08:21]free response buf [00:08:21]execute_script done [00:08:21]execute_script returns [00:08:21]free content buf [00:08:21]Sock 7.Close socket [00:08:21]Sock 7.Thread stoped [00:08:23]OFD Sender: No OFD packet to send [00:08:28]OFD Sender: No OFD packet to send [00:08:33]OFD Sender: No OFD packet to send [00:08:38]OFD Sender: No OFD packet to send [00:08:43]OFD Sender: No OFD packet to send [00:08:48]OFD Sender: No OFD packet to send [00:08:53]OFD Sender: No OFD packet to send [00:08:58]OFD Sender: No OFD packet to send [00:09:03]OFD Sender: No OFD packet to send [00:09:08]OFD Sender: No OFD packet to send [00:09:13]OFD Sender: No OFD packet to send [00:09:18]OFD Sender: No OFD packet to send [00:09:23]OFD Sender: No OFD packet to send [00:09:28]OFD Sender: No OFD packet to send [00:09:33]OFD Sender: No OFD packet to send [00:09:38]OFD Sender: No OFD packet to send [00:09:43]OFD Sender: No OFD packet to send [00:09:48]OFD Sender: No OFD packet to send [00:09:53]OFD Sender: No OFD packet to send [00:09:58]OFD Sender: No OFD packet to send [00:10:03]OFD Sender: No OFD packet to send [00:10:08]OFD Sender: No OFD packet to send [00:10:13]OFD Sender: No OFD packet to send [00:10:18]OFD Sender: No OFD packet to send [00:10:23]OFD Sender: No OFD packet to send [00:10:29]OFD Sender: No OFD packet to send [00:10:34]OFD Sender: No OFD packet to send [00:10:39]OFD Sender: No OFD packet to send [00:10:44]OFD Sender: No OFD packet to send [00:10:49]OFD Sender: No OFD packet to send [00:10:54]OFD Sender: No OFD packet to send [00:10:59]OFD Sender: No OFD packet to send [00:11:04]OFD Sender: No OFD packet to send [00:11:09]OFD Sender: No OFD packet to send [00:11:14]OFD Sender: No OFD packet to send [00:11:19]OFD Sender: No OFD packet to send [00:11:24]OFD Sender: No OFD packet to send [00:11:29]OFD Sender: No OFD packet to send [00:11:34]OFD Sender: No OFD packet to send [00:11:39]OFD Sender: No OFD packet to send [00:11:44]OFD Sender: No OFD packet to send [00:11:49]OFD Sender: No OFD packet to send [00:11:54]OFD Sender: No OFD packet to send [00:11:59]OFD Sender: No OFD packet to send [00:12:04]OFD Sender: No OFD packet to send [00:12:09]OFD Sender: No OFD packet to send [00:12:14]OFD Sender: No OFD packet to send [00:12:19]OFD Sender: No OFD packet to send [00:12:24]OFD Sender: No OFD packet to send [00:12:29]OFD Sender: No OFD packet to send [00:12:34]OFD Sender: No OFD packet to send [00:12:39]OFD Sender: No OFD packet to send [00:12:44]OFD Sender: No OFD packet to send [00:12:49]OFD Sender: No OFD packet to send [00:12:54]OFD Sender: No OFD packet to send [00:12:59]OFD Sender: No OFD packet to send [00:13:04]OFD Sender: No OFD packet to send [00:13:09]OFD Sender: No OFD packet to send [00:13:14]OFD Sender: No OFD packet to send [00:13:19]OFD Sender: No OFD packet to send [00:13:24]OFD Sender: No OFD packet to send [00:13:29]OFD Sender: No OFD packet to send [00:13:34]OFD Sender: No OFD packet to send [00:13:39]OFD Sender: No OFD packet to send [00:13:44]OFD Sender: No OFD packet to send [00:13:49]OFD Sender: No OFD packet to send [00:13:54]OFD Sender: No OFD packet to send [00:13:59]OFD Sender: No OFD packet to send [00:14:04]OFD Sender: No OFD packet to send [00:14:09]OFD Sender: No OFD packet to send [00:14:14]OFD Sender: No OFD packet to send [00:14:19]OFD Sender: No OFD packet to send [00:14:24]OFD Sender: No OFD packet to send [00:14:29]OFD Sender: No OFD packet to send [00:14:34]OFD Sender: No OFD packet to send [00:14:39]OFD Sender: No OFD packet to send [00:14:44]OFD Sender: No OFD packet to send [00:14:49]OFD Sender: No OFD packet to send [00:14:54]OFD Sender: No OFD packet to send [00:14:59]OFD Sender: No OFD packet to send [00:15:04]OFD Sender: No OFD packet to send [00:15:09]OFD Sender: No OFD packet to send [00:15:14]OFD Sender: No OFD packet to send [00:15:19]OFD Sender: No OFD packet to send [00:15:24]OFD Sender: No OFD packet to send [00:15:29]OFD Sender: No OFD packet to send [00:15:34]OFD Sender: No OFD packet to send [00:15:39]OFD Sender: No OFD packet to send [00:15:44]OFD Sender: No OFD packet to send [00:15:49]OFD Sender: No OFD packet to send [00:15:54]OFD Sender: No OFD packet to send [00:15:59]OFD Sender: No OFD packet to send [00:16:04]OFD Sender: No OFD packet to send [00:16:09]OFD Sender: No OFD packet to send [00:16:14]OFD Sender: No OFD packet to send [00:16:19]OFD Sender: No OFD packet to send [00:16:24]OFD Sender: No OFD packet to send [00:16:29]OFD Sender: No OFD packet to send [00:16:34]OFD Sender: No OFD packet to send [00:16:39]OFD Sender: No OFD packet to send [00:16:44]OFD Sender: No OFD packet to send [00:16:49]OFD Sender: No OFD packet to send [00:16:54]OFD Sender: No OFD packet to send [00:16:59]OFD Sender: No OFD packet to send [00:17:04]OFD Sender: No OFD packet to send [00:17:09]OFD Sender: No OFD packet to send [00:17:14]OFD Sender: No OFD packet to send [00:17:19]OFD Sender: No OFD packet to send [00:17:24]OFD Sender: No OFD packet to send [00:17:29]OFD Sender: No OFD packet to send [00:17:34]OFD Sender: No OFD packet to send [00:17:39]OFD Sender: No OFD packet to send [00:17:44]OFD Sender: No OFD packet to send [00:17:49]OFD Sender: No OFD packet to send [00:17:54]OFD Sender: No OFD packet to send [00:17:59]OFD Sender: No OFD packet to send [00:18:04]OFD Sender: No OFD packet to send [00:18:09]OFD Sender: No OFD packet to send [00:18:14]OFD Sender: No OFD packet to send [00:18:19]OFD Sender: No OFD packet to send [00:18:24]OFD Sender: No OFD packet to send [00:18:29]OFD Sender: No OFD packet to send [00:18:34]OFD Sender: No OFD packet to send [00:18:39]OFD Sender: No OFD packet to send [00:18:44]OFD Sender: No OFD packet to send [00:18:49]OFD Sender: No OFD packet to send [00:18:54]OFD Sender: No OFD packet to send [00:18:59]OFD Sender: No OFD packet to send [00:19:04]OFD Sender: No OFD packet to send [00:19:09]OFD Sender: No OFD packet to send [00:19:14]OFD Sender: No OFD packet to send [00:19:19]OFD Sender: No OFD packet to send [00:19:24]OFD Sender: No OFD packet to send [00:19:29]OFD Sender: No OFD packet to send [00:19:34]OFD Sender: No OFD packet to send [00:19:39]OFD Sender: No OFD packet to send [00:19:44]OFD Sender: No OFD packet to send [00:19:49]OFD Sender: No OFD packet to send [00:19:54]OFD Sender: No OFD packet to send [00:19:59]OFD Sender: No OFD packet to send [00:20:04]OFD Sender: No OFD packet to send [00:20:09]OFD Sender: No OFD packet to send [00:20:14]OFD Sender: No OFD packet to send [00:20:19]OFD Sender: No OFD packet to send [00:20:24]OFD Sender: No OFD packet to send [00:20:29]OFD Sender: No OFD packet to send [00:20:34]OFD Sender: No OFD packet to send [00:20:39]OFD Sender: No OFD packet to send [00:20:44]OFD Sender: No OFD packet to send [00:20:49]OFD Sender: No OFD packet to send [00:20:54]OFD Sender: No OFD packet to send [00:20:59]OFD Sender: No OFD packet to send [00:21:04]OFD Sender: No OFD packet to send [00:21:09]OFD Sender: No OFD packet to send [00:21:14]OFD Sender: No OFD packet to send [00:21:19]OFD Sender: No OFD packet to send [00:21:24]OFD Sender: No OFD packet to send [00:21:29]OFD Sender: No OFD packet to send [00:21:34]OFD Sender: No OFD packet to send [00:21:39]OFD Sender: No OFD packet to send [00:21:44]OFD Sender: No OFD packet to send [00:21:49]OFD Sender: No OFD packet to send [00:21:54]OFD Sender: No OFD packet to send [00:21:59]OFD Sender: No OFD packet to send [00:22:04]OFD Sender: No OFD packet to send [00:22:10]OFD Sender: No OFD packet to send [00:22:15]OFD Sender: No OFD packet to send [00:22:20]OFD Sender: No OFD packet to send [00:22:25]OFD Sender: No OFD packet to send [00:22:30]OFD Sender: No OFD packet to send [00:22:35]OFD Sender: No OFD packet to send [00:22:40]OFD Sender: No OFD packet to send [00:22:45]OFD Sender: No OFD packet to send [00:22:50]OFD Sender: No OFD packet to send [00:22:55]OFD Sender: No OFD packet to send [00:23:00]OFD Sender: No OFD packet to send [00:23:05]OFD Sender: No OFD packet to send [00:23:10]OFD Sender: No OFD packet to send [00:23:15]OFD Sender: No OFD packet to send [00:23:20]OFD Sender: No OFD packet to send [00:23:25]OFD Sender: No OFD packet to send [00:23:30]OFD Sender: No OFD packet to send [00:23:35]OFD Sender: No OFD packet to send [00:23:40]OFD Sender: No OFD packet to send [00:23:45]OFD Sender: No OFD packet to send [00:23:50]OFD Sender: No OFD packet to send [00:23:55]OFD Sender: No OFD packet to send [00:24:00]OFD Sender: No OFD packet to send [00:24:05]OFD Sender: No OFD packet to send [00:24:10]OFD Sender: No OFD packet to send [00:24:15]OFD Sender: No OFD packet to send [00:24:20]OFD Sender: No OFD packet to send [00:24:25]OFD Sender: No OFD packet to send [00:24:30]OFD Sender: No OFD packet to send [00:24:35]OFD Sender: No OFD packet to send [00:24:40]OFD Sender: No OFD packet to send [00:24:45]OFD Sender: No OFD packet to send [00:24:50]OFD Sender: No OFD packet to send [00:24:55]OFD Sender: No OFD packet to send [00:25:00]OFD Sender: No OFD packet to send [00:25:05]OFD Sender: No OFD packet to send [00:25:10]OFD Sender: No OFD packet to send [00:25:15]OFD Sender: No OFD packet to send [00:25:20]OFD Sender: No OFD packet to send [00:25:25]OFD Sender: No OFD packet to send [00:25:30]OFD Sender: No OFD packet to send [00:25:35]OFD Sender: No OFD packet to send [00:25:40]OFD Sender: No OFD packet to send [00:25:45]OFD Sender: No OFD packet to send [00:25:50]OFD Sender: No OFD packet to send [00:25:55]OFD Sender: No OFD packet to send [00:26:00]OFD Sender: No OFD packet to send [00:26:05]OFD Sender: No OFD packet to send [00:26:10]OFD Sender: No OFD packet to send [00:26:15]OFD Sender: No OFD packet to send [00:26:20]OFD Sender: No OFD packet to send [00:26:25]OFD Sender: No OFD packet to send [00:26:30]OFD Sender: No OFD packet to send [00:26:35]OFD Sender: No OFD packet to send [00:26:40]OFD Sender: No OFD packet to send [00:26:45]OFD Sender: No OFD packet to send [00:26:50]OFD Sender: No OFD packet to send [00:26:55]OFD Sender: No OFD packet to send [00:27:00]OFD Sender: No OFD packet to send [00:27:05]OFD Sender: No OFD packet to send [00:27:10]OFD Sender: No OFD packet to send [00:27:15]OFD Sender: No OFD packet to send [00:27:20]OFD Sender: No OFD packet to send [00:27:25]OFD Sender: No OFD packet to send [00:27:30]OFD Sender: No OFD packet to send [00:27:35]OFD Sender: No OFD packet to send [00:27:40]OFD Sender: No OFD packet to send [00:27:45]OFD Sender: No OFD packet to send [00:27:50]OFD Sender: No OFD packet to send [00:27:55]OFD Sender: No OFD packet to send [00:28:00]OFD Sender: No OFD packet to send [00:28:05]OFD Sender: No OFD packet to send [00:28:10]OFD Sender: No OFD packet to send [00:28:15]OFD Sender: No OFD packet to send [00:28:20]OFD Sender: No OFD packet to send [00:28:25]OFD Sender: No OFD packet to send [00:28:30]OFD Sender: No OFD packet to send [00:28:35]OFD Sender: No OFD packet to send [00:28:40]OFD Sender: No OFD packet to send [00:28:45]OFD Sender: No OFD packet to send [00:28:50]OFD Sender: No OFD packet to send [00:28:55]OFD Sender: No OFD packet to send [00:29:00]OFD Sender: No OFD packet to send [00:29:05]OFD Sender: No OFD packet to send [00:29:10]OFD Sender: No OFD packet to send [00:29:15]OFD Sender: No OFD packet to send [00:29:20]OFD Sender: No OFD packet to send [00:29:25]OFD Sender: No OFD packet to send [00:29:30]OFD Sender: No OFD packet to send [00:29:35]OFD Sender: No OFD packet to send [00:29:40]OFD Sender: No OFD packet to send [00:29:45]OFD Sender: No OFD packet to send [00:29:50]OFD Sender: No OFD packet to send [00:29:55]OFD Sender: No OFD packet to send [00:30:00]OFD Sender: No OFD packet to send [00:30:05]OFD Sender: No OFD packet to send [00:30:10]OFD Sender: No OFD packet to send [00:30:15]OFD Sender: No OFD packet to send [00:30:20]OFD Sender: No OFD packet to send [00:30:25]OFD Sender: No OFD packet to send [00:30:30]OFD Sender: No OFD packet to send [00:30:35]OFD Sender: No OFD packet to send [00:30:40]OFD Sender: No OFD packet to send [00:30:45]OFD Sender: No OFD packet to send [00:30:50]OFD Sender: No OFD packet to send [00:30:55]OFD Sender: No OFD packet to send [00:31:00]OFD Sender: No OFD packet to send [00:31:05]OFD Sender: No OFD packet to send [00:31:10]OFD Sender: No OFD packet to send [00:31:15]OFD Sender: No OFD packet to send [00:31:20]OFD Sender: No OFD packet to send [00:31:25]OFD Sender: No OFD packet to send [00:31:30]OFD Sender: No OFD packet to send [00:31:35]OFD Sender: No OFD packet to send [00:31:40]OFD Sender: No OFD packet to send [00:31:45]OFD Sender: No OFD packet to send [00:31:50]OFD Sender: No OFD packet to send [00:31:55]OFD Sender: No OFD packet to send [00:32:00]OFD Sender: No OFD packet to send [00:32:05]OFD Sender: No OFD packet to send [00:32:10]OFD Sender: No OFD packet to send [00:32:15]OFD Sender: No OFD packet to send [00:32:20]OFD Sender: No OFD packet to send [00:32:25]OFD Sender: No OFD packet to send [00:32:30]OFD Sender: No OFD packet to send [00:32:35]OFD Sender: No OFD packet to send [00:32:40]OFD Sender: No OFD packet to send [00:32:45]OFD Sender: No OFD packet to send [00:32:50]OFD Sender: No OFD packet to send [00:32:55]OFD Sender: No OFD packet to send [00:33:00]OFD Sender: No OFD packet to send [00:33:05]OFD Sender: No OFD packet to send [00:33:10]OFD Sender: No OFD packet to send [00:33:15]OFD Sender: No OFD packet to send [00:33:16]accept exits with 9 [00:33:16]New connection [00:33:16]New thread 3067104612 created [00:33:16]Thread 3067247972 joined [00:33:16]Waiting for new connection... [00:33:16] Sock 9.Parse request [00:33:16]Sock 9.Check first char [00:33:16]Sock 9.First char is OK [00:33:16]request: POST /json_proto HTTP/1.0 [00:33:16]Method: POST [00:33:16]URL: /json_proto [00:33:16]Method is POST - this is cgi request [00:33:16]url: /json_proto [00:33:16]query_string will be loaded in cgi processing [00:33:16]execute_cgi json_proto POST (null) [00:33:16]execute_cgi path=json_proto method=POST [00:33:16]POST find Content-Length [00:33:16]Host: 172.17.55.133:8080 [00:33:16]Content-Length: 215 [00:33:16]Content-Type: application/json [00:33:16] [00:33:16]POST finish read [00:33:16]Found Content-Length = 215 [00:33:16]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:16]execute_script... [00:33:16]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:16]POST & json_proto [00:33:16]process_json_proto [00:33:16]json parsed OK: [00:33:16]protocol is kg_v1.0 [00:33:16]action value=get_value [00:33:16]process_action get_value [00:33:16]cmd_get_value [00:33:16]process_action get_value done [00:33:16]requested_data is exist [00:33:16]produce_requested_data [00:33:16]requested_item kkm.sn is exist - process it [00:33:16]requested_item kkm.ver is exist - process it [00:33:16]requested_item fm.sn is exist - process it [00:33:16]wFMCommunicate request_size=4 [00:33:16]MH_SAM_APDU [00:33:16]CAPDU: 80 11 00 00 [00:33:16]Write to MH i2c: E2 08 00 5E 01 80 11 00 00 00 00 00 00 D9 [00:33:16]Write i2c OK [00:33:16]MH_I2C_Read... [00:33:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:33:16]Read from MH i2c: E2 [00:33:16]MH_I2C_Read... [00:33:16]Read from MH i2c: E2 17 00 [00:33:16]MH_I2C_Read... [00:33:16]Read from MH i2c: E2 17 00 5E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 26 [00:33:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [00:33:16]wFMCommunicate OK [00:33:16]requested_item fd.num is exist - process it [00:33:16]SAM_PROTO_GetFieldsCounters [00:33:16]wFMCommunicate request_size=4 [00:33:16]MH_SAM_APDU [00:33:16]CAPDU: 80 13 00 00 [00:33:16]Write to MH i2c: E2 08 00 5F 01 80 13 00 00 00 00 00 00 DC [00:33:16]Write i2c OK [00:33:16]MH_I2C_Read... [00:33:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:33:16]Read from MH i2c: E2 [00:33:16]MH_I2C_Read... [00:33:16]Read from MH i2c: E2 62 00 [00:33:16]MH_I2C_Read... [00:33:16]Read from MH i2c: E2 62 00 5F 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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A7 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4C 02 00 00 5E 04 04 00 4C 02 00 00 57 04 04 00 4E 02 00 00 19 04 04 00 00 00 00 00 90 00 4D [00:33:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A7 FB 03 00 0E 04 04 00 C1 01 00 00 12 04 04 00 4C 02 00 00 5E 04 04 00 4C 02 00 00 57 04 04 00 4E 02 00 00 19 04 04 00 00 00 00 00 90 00 [00:33:16]wFMCommunicate OK [00:33:16]SAM_PROTO_GetFieldsCounters done [00:33:16]requested_item shift.num is exist - process it [00:33:16]requested_item shift.opened is exist - process it [00:33:16]req_shift_opened [00:33:16]FM_GetShiftState [00:33:16]SAM_PROTO_GetShiftState [00:33:16]wFMCommunicate request_size=4 [00:33:16]MH_SAM_APDU [00:33:16]CAPDU: 80 13 01 00 [00:33:16]Write to MH i2c: E2 08 00 60 01 80 13 01 00 00 00 00 00 DE [00:33:16]Write i2c OK [00:33:16]MH_I2C_Read... [00:33:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:16]Read from MH i2c: E2 [00:33:16]MH_I2C_Read... [00:33:16]Read from MH i2c: E2 0E 00 [00:33:16]MH_I2C_Read... [00:33:16]Read from MH i2c: E2 0E 00 60 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E9 [00:33:16]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:33:16]wFMCommunicate OK [00:33:16]SAM_PROTO_GetShiftState done [00:33:16]FM_GetShiftState done [00:33:16]req_shift_opened done [00:33:16]requested_item shift.open_date is exist - process it [00:33:16]req_shift_open_date [00:33:16]FM_GetShiftState [00:33:16]SAM_PROTO_GetShiftState [00:33:16]wFMCommunicate request_size=4 [00:33:16]MH_SAM_APDU [00:33:16]CAPDU: 80 13 01 00 [00:33:16]Write to MH i2c: E2 08 00 61 01 80 13 01 00 00 00 00 00 DF [00:33:16]Write i2c OK [00:33:16]MH_I2C_Read... [00:33:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:17]Read from MH i2c: E2 [00:33:17]MH_I2C_Read... [00:33:17]Read from MH i2c: E2 0E 00 [00:33:17]MH_I2C_Read... [00:33:17]Read from MH i2c: E2 0E 00 61 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 EA [00:33:17]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:33:17]wFMCommunicate OK [00:33:17]SAM_PROTO_GetShiftState done [00:33:17]FM_GetShiftState done [00:33:17]req_shift_open_date done [00:33:17]produce_requested_data done [00:33:17]produce_requested_data return {"kkm.sn":"0300000099","kkm.ver":"001","fm.sn":"0000000000871820","fd.num":261031,"shift.num":449,"shift.opened":0,"shift.open_date":0} [00:33:17]process_action_free get_value [00:33:17]json_value_free [00:33:17]json_value_free done [00:33:17]process_json_proto returns [00:33:17]Send response to host [00:33:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000099","kkm.ver":"001","fm.sn":"0000000000871820","fd.num":261031,"shift.num":449,"shift.opened":0,"shift.open_date":0}}} [00:33:17]free response buf [00:33:17]execute_script done [00:33:17]execute_script returns [00:33:17]free content buf [00:33:17]Sock 9.Close socket [00:33:17]Sock 9.Thread stoped [00:33:17]accept exits with 7 [00:33:17]New connection [00:33:17]New thread 3067247972 created [00:33:17]Thread 3067104612 joined [00:33:17]Waiting for new connection... [00:33:17] Sock 7.Parse request [00:33:17]Sock 7.Check first char [00:33:17]Sock 7.First char is OK [00:33:17]request: POST /json_proto HTTP/1.0 [00:33:17]Method: POST [00:33:17]URL: /json_proto [00:33:17]Method is POST - this is cgi request [00:33:17]url: /json_proto [00:33:17]query_string will be loaded in cgi processing [00:33:17]execute_cgi json_proto POST (null) [00:33:17]execute_cgi path=json_proto method=POST [00:33:17]POST find Content-Length [00:33:17]Host: 172.17.55.133:8080 [00:33:17]Content-Length: 331 [00:33:17]Content-Type: application/json [00:33:17] [00:33:17]POST finish read [00:33:17]Found Content-Length = 331 [00:33:17]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:17]execute_script... [00:33:17]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:17]POST & json_proto [00:33:17]process_json_proto [00:33:17]json parsed OK: [00:33:17]protocol is kg_v1.0 [00:33:17]action value=get_value [00:33:17]process_action get_value [00:33:17]cmd_get_value [00:33:17]process_action get_value done [00:33:17]requested_data is exist [00:33:17]produce_requested_data [00:33:17]requested_item fm.sale.total is exist - process it [00:33:17]SAM_PROTO_GetFMData [00:33:17]wFMCommunicate request_size=4 [00:33:17]MH_SAM_APDU [00:33:17]CAPDU: 80 13 03 00 [00:33:17]Write to MH i2c: E2 08 00 62 01 80 13 03 00 00 00 00 00 E2 [00:33:17]Write i2c OK [00:33:17]MH_I2C_Read... [00:33:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:33:17]Read from MH i2c: E2 [00:33:17]MH_I2C_Read... [00:33:17]Read from MH i2c: E2 FD 00 [00:33:17]MH_I2C_Read... [00:33:17]Read from MH i2c: E2 FD 00 62 01 00 C4 04 85 04 C0 04 6E 04 04 00 24 F8 03 00 69 04 A3 00 6F 04 04 00 BA F5 03 00 B1 04 05 00 45 65 C1 AC 04 70 04 05 00 18 67 A7 BC 03 72 04 04 00 2D FE 19 F0 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 99 CA 21 7F 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 25 EA 97 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 6A 02 00 00 B1 04 04 00 44 AB D8 05 70 04 04 00 44 AB D8 05 72 04 00 00 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 91 F7 9E EF 03 09 00 90 00 E2 [00:33:17]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 24 F8 03 00 69 04 A3 00 6F 04 04 00 BA F5 03 00 B1 04 05 00 45 65 C1 AC 04 70 04 05 00 18 67 A7 BC 03 72 04 04 00 2D FE 19 F0 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 99 CA 21 7F 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 25 EA 97 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 6A 02 00 00 B1 04 04 00 44 AB D8 05 70 04 04 00 44 AB D8 05 72 04 00 00 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 91 F7 9E EF 03 09 00 90 00 [00:33:17]wFMCommunicate OK [00:33:17]wFMCommunicate request_size=4 [00:33:17]MH_SAM_APDU [00:33:17]CAPDU: 80 17 00 00 [00:33:17]Write to MH i2c: E2 08 00 63 01 80 17 00 00 00 00 00 00 E4 [00:33:17]Write i2c OK [00:33:17]MH_I2C_Read... [00:33:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:18]Read from MH i2c: E2 [00:33:18]MH_I2C_Read... [00:33:18]Read from MH i2c: E2 FD 00 [00:33:18]MH_I2C_Read... [00:33:18]Read from MH i2c: E2 FD 00 63 01 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0E 3F 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F4 [00:33:18]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0E 3F 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:33:18]wFMCommunicate OK [00:33:18]wFMCommunicate request_size=4 [00:33:18]MH_SAM_APDU [00:33:18]CAPDU: 80 17 00 00 [00:33:18]Write to MH i2c: E2 08 00 64 01 80 17 00 00 00 00 00 00 E5 [00:33:18]Write i2c OK [00:33:18]MH_I2C_Read... [00:33:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:18]Read from MH i2c: E2 [00:33:18]MH_I2C_Read... [00:33:18]Read from MH i2c: E2 FD 00 [00:33:18]MH_I2C_Read... [00:33:18]Read from MH i2c: E2 FD 00 64 01 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FA [00:33:18]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:33:18]wFMCommunicate OK [00:33:18]wFMCommunicate request_size=4 [00:33:18]MH_SAM_APDU [00:33:18]CAPDU: 80 17 00 00 [00:33:18]Write to MH i2c: E2 08 00 65 01 80 17 00 00 00 00 00 00 E6 [00:33:18]Write i2c OK [00:33:18]MH_I2C_Read... [00:33:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:18]Read from MH i2c: E2 [00:33:18]MH_I2C_Read... [00:33:18]Read from MH i2c: E2 FD 00 [00:33:18]MH_I2C_Read... [00:33:18]Read from MH i2c: E2 FD 00 65 01 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5E [00:33:18]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:33:18]wFMCommunicate OK [00:33:18]wFMCommunicate request_size=4 [00:33:18]MH_SAM_APDU [00:33:18]CAPDU: 80 17 00 00 [00:33:18]Write to MH i2c: E2 08 00 66 01 80 17 00 00 00 00 00 00 E7 [00:33:18]Write i2c OK [00:33:18]MH_I2C_Read... [00:33:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:33:18]Read from MH i2c: E2 [00:33:18]MH_I2C_Read... [00:33:18]Read from MH i2c: E2 E1 00 [00:33:18]MH_I2C_Read... [00:33:18]Read from MH i2c: E2 E1 00 66 01 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D5 [00:33:18]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:18]wFMCommunicate OK [00:33:18]SAM_PROTO_GetFMData done [00:33:18]requested_item fm.sale_refund.total is exist - process it [00:33:18]requested_item fm.buy.total is exist - process it [00:33:18]requested_item shift.sale.total is exist - process it [00:33:18]SAM_PROTO_GetShiftData [00:33:18]wFMCommunicate request_size=4 [00:33:18]MH_SAM_APDU [00:33:18]CAPDU: 80 13 02 00 [00:33:18]Write to MH i2c: E2 08 00 67 01 80 13 02 00 00 00 00 00 E6 [00:33:18]Write i2c OK [00:33:18]MH_I2C_Read... [00:33:19]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:33:19]Read from MH i2c: E2 [00:33:19]MH_I2C_Read... [00:33:19]Read from MH i2c: E2 FD 00 [00:33:19]MH_I2C_Read... [00:33:19]Read from MH i2c: E2 FD 00 67 01 00 B1 04 AA 04 AD 04 6E 04 04 00 4C 02 00 00 69 04 9E 00 6F 04 04 00 4C 02 00 00 B1 04 04 00 4F 10 DE 02 70 04 04 00 08 3C 19 02 72 04 03 00 47 D4 C4 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 4C F9 4D 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 75 7F 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 62 [00:33:19]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 4C 02 00 00 69 04 9E 00 6F 04 04 00 4C 02 00 00 B1 04 04 00 4F 10 DE 02 70 04 04 00 08 3C 19 02 72 04 03 00 47 D4 C4 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 4C F9 4D 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 75 7F 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19]wFMCommunicate OK [00:33:19]wFMCommunicate request_size=4 [00:33:19]MH_SAM_APDU [00:33:19]CAPDU: 80 17 00 00 [00:33:19]Write to MH i2c: E2 08 00 68 01 80 17 00 00 00 00 00 00 E9 [00:33:19]Write i2c OK [00:33:19]MH_I2C_Read... [00:33:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:19]Read from MH i2c: E2 [00:33:19]MH_I2C_Read... [00:33:19]Read from MH i2c: E2 FD 00 [00:33:19]MH_I2C_Read... [00:33:19]Read from MH i2c: E2 FD 00 68 01 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 02 [00:33:19]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:19]wFMCommunicate OK [00:33:19]wFMCommunicate request_size=4 [00:33:19]MH_SAM_APDU [00:33:19]CAPDU: 80 17 00 00 [00:33:19]Write to MH i2c: E2 08 00 69 01 80 17 00 00 00 00 00 00 EA [00:33:19]Write i2c OK [00:33:19]MH_I2C_Read... [00:33:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:19]Read from MH i2c: E2 [00:33:19]MH_I2C_Read... [00:33:19]Read from MH i2c: E2 FD 00 [00:33:19]MH_I2C_Read... [00:33:19]Read from MH i2c: E2 FD 00 69 01 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 A3 [00:33:19]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:19]wFMCommunicate OK [00:33:19]wFMCommunicate request_size=4 [00:33:19]MH_SAM_APDU [00:33:19]CAPDU: 80 17 00 00 [00:33:19]Write to MH i2c: E2 08 00 6A 01 80 17 00 00 00 00 00 00 EB [00:33:19]Write i2c OK [00:33:19]MH_I2C_Read... [00:33:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:20]Read from MH i2c: E2 [00:33:20]MH_I2C_Read... [00:33:20]Read from MH i2c: E2 FD 00 [00:33:20]MH_I2C_Read... [00:33:20]Read from MH i2c: E2 FD 00 6A 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 90 00 63 [00:33:20]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:20]wFMCommunicate OK [00:33:20]wFMCommunicate request_size=4 [00:33:20]MH_SAM_APDU [00:33:20]CAPDU: 80 17 00 00 [00:33:20]Write to MH i2c: E2 08 00 6B 01 80 17 00 00 00 00 00 00 EC [00:33:20]Write i2c OK [00:33:20]MH_I2C_Read... [00:33:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:33:20]Read from MH i2c: E2 [00:33:20]MH_I2C_Read... [00:33:20]Read from MH i2c: E2 CE 00 [00:33:20]MH_I2C_Read... [00:33:20]Read from MH i2c: E2 CE 00 6B 01 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 D1 [00:33:20]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:20]wFMCommunicate OK [00:33:20]SAM_PROTO_GetShiftData done [00:33:20]requested_item shift.sale.total_cash is exist - process it [00:33:20]requested_item shift.sale_refund.total is exist - process it [00:33:20]requested_item shift.sale_refund.total_cash is exist - process it [00:33:20]requested_item shift.buy.total is exist - process it [00:33:20]requested_item shift.buy.total_cash is exist - process it [00:33:20]produce_requested_data done [00:33:20]produce_requested_data return {"fm.sale.total":200782247.09,"fm.sale_refund.total":980857.00,"fm.buy.total":0.00,"shift.sale.total":481075.99,"shift.sale.total_cash":352082.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:20]process_action_free get_value [00:33:20]json_value_free [00:33:20]json_value_free done [00:33:20]process_json_proto returns [00:33:20]Send response to host [00:33:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":200782247.09,"fm.sale_refund.total":980857.00,"fm.buy.total":0.00,"shift.sale.total":481075.99,"shift.sale.total_cash":352082.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:20]free response buf [00:33:20]execute_script done [00:33:20]execute_script returns [00:33:20]free content buf [00:33:20]Sock 7.Close socket [00:33:20]Sock 7.Thread stoped [00:33:20]accept exits with 9 [00:33:20]New connection [00:33:20]New thread 3067104612 created [00:33:20]Thread 3067247972 joined [00:33:20]Waiting for new connection... [00:33:20] Sock 9.Parse request [00:33:20]Sock 9.Check first char [00:33:20]Sock 9.First char is OK [00:33:20]request: POST /json_proto HTTP/1.0 [00:33:20]Method: POST [00:33:20]URL: /json_proto [00:33:20]Method is POST - this is cgi request [00:33:20]url: /json_proto [00:33:20]query_string will be loaded in cgi processing [00:33:20]execute_cgi json_proto POST (null) [00:33:20]execute_cgi path=json_proto method=POST [00:33:20]POST find Content-Length [00:33:20]Host: 172.17.55.133:8080 [00:33:20]Content-Length: 282 [00:33:20]Content-Type: application/json [00:33:20] [00:33:20]POST finish read [00:33:20]Found Content-Length = 282 [00:33:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041A\u0443\u0434\u0430\u0439\u0431\u0435\u0440\u0434\u0438\u0435\u0432 \u0422." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:33:20]execute_script... [00:33:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041A\u0443\u0434\u0430\u0439\u0431\u0435\u0440\u0434\u0438\u0435\u0432 \u0422." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:33:20]POST & json_proto [00:33:20]process_json_proto [00:33:20]json parsed OK: [00:33:20]protocol is kg_v1.0 [00:33:20]action value=open_shift [00:33:20]process_action open_shift [00:33:20]cmd_open_shift [00:33:20]MH_GetDate [00:33:20]Write to MH i2c: F0 00 00 6C 01 5C [00:33:20]Write i2c OK [00:33:20]MH_I2C_Read... [00:33:20]Read from MH i2c: F0 [00:33:20]MH_I2C_Read... [00:33:20]Read from MH i2c: F0 09 00 [00:33:20]MH_I2C_Read... [00:33:20]Read from MH i2c: F0 09 00 6C 01 00 D0 92 C2 66 34 48 D8 65 A8 [00:33:20]GetLastDocTimeStamp 1724026083 [00:33:20]current date 1724027600 [00:33:20]FM_GetShiftState [00:33:20]SAM_PROTO_GetShiftState [00:33:20]wFMCommunicate request_size=4 [00:33:20]MH_SAM_APDU [00:33:20]CAPDU: 80 13 01 00 [00:33:20]Write to MH i2c: E2 08 00 6D 01 80 13 01 00 00 00 00 00 EB [00:33:20]Write i2c OK [00:33:20]MH_I2C_Read... [00:33:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:20]Read from MH i2c: E2 [00:33:20]MH_I2C_Read... [00:33:20]Read from MH i2c: E2 0E 00 [00:33:20]MH_I2C_Read... [00:33:20]Read from MH i2c: E2 0E 00 6D 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 F6 [00:33:20]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:33:20]wFMCommunicate OK [00:33:20]SAM_PROTO_GetShiftState done [00:33:20]FM_GetShiftState done [00:33:20]KKMCreateOpenShiftDocument [00:33:20]Load OK [00:33:20]Malloc new data [00:33:20]MH_GetDate [00:33:20]Write to MH i2c: F0 00 00 6E 01 5E [00:33:20]Write i2c OK [00:33:20]MH_I2C_Read... [00:33:20]Read from MH i2c: F0 [00:33:20]MH_I2C_Read... [00:33:20]Read from MH i2c: F0 09 00 [00:33:20]MH_I2C_Read... [00:33:20]Read from MH i2c: F0 09 00 6E 01 00 D0 92 C2 66 34 48 D8 65 AA [00:33:20]Malloc new data [00:33:20]KKMCreateOpenShiftDocument OK [00:33:20]KKMSetOpenShiftData OK [00:33:20]ProcessDocumentItem done err = 0, tmpTLVsize=198 [00:33:20]tlvbuf is 00A1AA80 [00:33:20]KKMLoadAndSignOpenShiftData [00:33:20]SAM_PROTO_ProcessDocument [00:33:20]wFMCommunicate request_size=9 [00:33:20]MH_SAM_APDU [00:33:20]CAPDU: 80 15 01 00 04 02 00 C6 00 [00:33:20]Write to MH i2c: E2 0C 00 6F 01 80 15 01 00 04 00 02 00 C6 00 00 00 BF [00:33:20]Write i2c OK [00:33:20]MH_I2C_Read... [00:33:20]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:33:20]Read from MH i2c: E2 [00:33:20]MH_I2C_Read... [00:33:20]Read from MH i2c: E2 03 00 [00:33:20]MH_I2C_Read... [00:33:20]Read from MH i2c: E2 03 00 6F 01 00 90 00 E4 [00:33:20]RAPDU: 90 00 [00:33:20]wFMCommunicate OK [00:33:20]wFMCommunicate request_size=23 [00:33:20]MH_SAM_APDU [00:33:20]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:33:20]Write to MH i2c: E2 1A 00 70 01 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 E6 [00:33:20]Write i2c OK [00:33:20]MH_I2C_Read... [00:33:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:33:20]Read from MH i2c: E2 [00:33:20]MH_I2C_Read... [00:33:20]Read from MH i2c: E2 03 00 [00:33:20]MH_I2C_Read... [00:33:20]Read from MH i2c: E2 03 00 70 01 00 90 00 E5 [00:33:20]RAPDU: 90 00 [00:33:20]wFMCommunicate OK [00:33:20]wFMCommunicate request_size=37 [00:33:20]MH_SAM_APDU [00:33:20]CAPDU: 80 15 02 00 20 FD 03 1C 00 D0 9A D1 83 D0 B4 D0 B0 D0 B9 D0 B1 D0 B5 D1 80 D0 B4 D0 B8 D0 B5 D0 B2 20 D0 A2 2E [00:33:20]Write to MH i2c: E2 28 00 71 01 80 15 02 00 20 00 FD 03 1C 00 D0 9A D1 83 D0 B4 D0 B0 D0 B9 D0 B1 D0 B5 D1 80 D0 B4 D0 B8 D0 B5 D0 B2 20 D0 A2 2E 00 00 C3 [00:33:20]Write i2c OK [00:33:20]MH_I2C_Read... [00:33:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:33:20]Read from MH i2c: E2 [00:33:20]MH_I2C_Read... [00:33:20]Read from MH i2c: E2 03 00 [00:33:20]MH_I2C_Read... [00:33:20]Read from MH i2c: E2 03 00 71 01 00 90 00 E6 [00:33:20]RAPDU: 90 00 [00:33:20]wFMCommunicate OK [00:33:20]wFMCommunicate request_size=80 [00:33:20]MH_SAM_APDU [00:33:20]CAPDU: 80 15 02 00 4B F1 03 47 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D1 83 D0 BB 2E 20 D0 93 2E 20 D0 90 D0 B9 D1 82 D0 B8 D0 B5 D0 B2 D0 B0 20 31 35 33 20 D0 96 2C 20 34 30 2E 35 32 35 34 37 35 2C 20 37 32 2E 37 36 39 33 35 38 [00:33:20]Write to MH i2c: E2 53 00 72 01 80 15 02 00 4B 00 F1 03 47 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D1 83 D0 BB 2E 20 D0 93 2E 20 D0 90 D0 B9 D1 82 D0 B8 D0 B5 D0 B2 D0 B0 20 31 35 33 20 D0 96 2C 20 34 30 2E 35 32 35 34 37 35 2C 20 37 32 2E 37 36 39 33 35 38 00 00 C9 [00:33:20]Write i2c OK [00:33:20]MH_I2C_Read... [00:33:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:33:20]Read from MH i2c: E2 [00:33:20]MH_I2C_Read... [00:33:20]Read from MH i2c: E2 03 00 [00:33:20]MH_I2C_Read... [00:33:20]Read from MH i2c: E2 03 00 72 01 00 90 00 E7 [00:33:20]RAPDU: 90 00 [00:33:20]wFMCommunicate OK [00:33:20]wFMCommunicate request_size=50 [00:33:20]MH_SAM_APDU [00:33:20]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 34 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:20]Write to MH i2c: E2 35 00 73 01 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 34 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 70 [00:33:20]Write i2c OK [00:33:20]MH_I2C_Read... [00:33:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:33:20]Read from MH i2c: E2 [00:33:20]MH_I2C_Read... [00:33:20]Read from MH i2c: E2 03 00 [00:33:20]MH_I2C_Read... [00:33:20]Read from MH i2c: E2 03 00 73 01 00 90 00 E8 [00:33:20]RAPDU: 90 00 [00:33:20]wFMCommunicate OK [00:33:20]wFMCommunicate request_size=13 [00:33:20]MH_SAM_APDU [00:33:20]CAPDU: 80 15 02 00 08 F4 03 04 00 D0 92 C2 66 [00:33:20]Write to MH i2c: E2 10 00 74 01 80 15 02 00 08 00 F4 03 04 00 D0 92 C2 66 00 00 8A [00:33:20]Write i2c OK [00:33:20]MH_I2C_Read... [00:33:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:33:20]Read from MH i2c: E2 [00:33:20]MH_I2C_Read... [00:33:20]Read from MH i2c: E2 03 00 [00:33:20]MH_I2C_Read... [00:33:20]Read from MH i2c: E2 03 00 74 01 00 90 00 E9 [00:33:20]RAPDU: 90 00 [00:33:20]wFMCommunicate OK [00:33:20]wFMCommunicate request_size=25 [00:33:20]MH_SAM_APDU [00:33:20]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 [00:33:20]Write to MH i2c: E2 1C 00 75 01 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 00 00 5C [00:33:20]Write i2c OK [00:33:20]MH_I2C_Read... [00:33:21]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:33:21]Read from MH i2c: E2 [00:33:21]MH_I2C_Read... [00:33:21]Read from MH i2c: E2 03 00 [00:33:21]MH_I2C_Read... [00:33:21]Read from MH i2c: E2 03 00 75 01 00 90 00 EA [00:33:21]RAPDU: 90 00 [00:33:21]wFMCommunicate OK [00:33:21]wFMCommunicate request_size=4 [00:33:21]MH_SAM_APDU [00:33:21]CAPDU: 80 15 03 00 [00:33:21]Write to MH i2c: E2 08 00 76 01 80 15 03 00 00 00 00 00 F8 [00:33:21]Write i2c OK [00:33:21]MH_I2C_Read... [00:33:21]OFD Sender: No OFD packet to send [00:33:21]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:33:21]Read from MH i2c: E2 [00:33:21]MH_I2C_Read... [00:33:21]Read from MH i2c: E2 38 00 [00:33:21]MH_I2C_Read... [00:33:21]Read from MH i2c: E2 38 00 76 01 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 30 10 04 04 00 A8 FB 03 00 0E 04 04 00 C2 01 00 00 35 04 06 00 A2 75 99 F0 B0 D9 90 00 50 [00:33:21]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 30 10 04 04 00 A8 FB 03 00 0E 04 04 00 C2 01 00 00 35 04 06 00 A2 75 99 F0 B0 D9 90 00 [00:33:21]wFMCommunicate OK [00:33:21]SAM_PROTO_ProcessDocument answer len = 51 [00:33:21]SAM_PROTO_ProcessDocument done [00:33:21]SetTLVBufToDocument [00:33:21]Processing tag 1209 (04B9) [00:33:21]Malloc new data [00:33:21]Processing tag 1041 (0411) [00:33:21]Processing tag 1040 (0410) [00:33:21]Malloc new data [00:33:21]Processing tag 1038 (040E) [00:33:21]Malloc new data [00:33:21]Processing tag 1077 (0435) [00:33:21]Malloc new data [00:33:21]SetTLVBufToDocument err=0 [00:33:21]KKMLoadAndSignOpenShiftData store KKM data [00:33:21]KKMLoadAndSignOpenShiftData err=0 [00:33:21]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Кудайбердиев Т. Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 Место: АЗС № 94 "Партнер Нефть" 19.08.2024 00:33 Смена: 450 РНМ: 0000000000091865 ЗНМ: 0300000099 ФД: 261032 ФМ: 0000000000871820 ФПД: 178625977561305 [00:33:21]StoreToDocumentArchive [00:33:21]shift 450 fd 261032 [00:33:21]Create dir for shift 0450 [00:33:21]save to /storage/0450/doc_00261032 [00:33:21]save last doc name /storage/0450/doc_00261032 to /storage/kkm_last_doc_name [00:33:21]save OK [00:33:21]Clear old archive folders... [00:33:21]Remove dir /storage/0449 [00:33:21]opendir ok [00:33:21]file . [00:33:21]file .. [00:33:21]file doc_00260442 [00:33:21]remove file /storage/0449/doc_00260442 [00:33:21]file doc_00260443 [00:33:21]remove file /storage/0449/doc_00260443 [00:33:21]file doc_00260444 [00:33:21]remove file /storage/0449/doc_00260444 [00:33:21]file doc_00260445 [00:33:21]remove file /storage/0449/doc_00260445 [00:33:21]file doc_00260446 [00:33:21]remove file /storage/0449/doc_00260446 [00:33:21]file doc_00260447 [00:33:21]remove file /storage/0449/doc_00260447 [00:33:21]file doc_00260448 [00:33:21]remove file /storage/0449/doc_00260448 [00:33:21]file doc_00260449 [00:33:21]remove file /storage/0449/doc_00260449 [00:33:21]file doc_00260450 [00:33:21]remove file /storage/0449/doc_00260450 [00:33:21]file doc_00260451 [00:33:21]remove file /storage/0449/doc_00260451 [00:33:21]file doc_00260452 [00:33:21]remove file /storage/0449/doc_00260452 [00:33:21]file doc_00260453 [00:33:21]remove file /storage/0449/doc_00260453 [00:33:21]file doc_00260454 [00:33:21]remove file /storage/0449/doc_00260454 [00:33:21]file doc_00260455 [00:33:21]remove file /storage/0449/doc_00260455 [00:33:21]file doc_00260456 [00:33:21]remove file /storage/0449/doc_00260456 [00:33:21]file doc_00260457 [00:33:21]remove file /storage/0449/doc_00260457 [00:33:21]file doc_00260458 [00:33:21]remove file /storage/0449/doc_00260458 [00:33:21]file doc_00260459 [00:33:21]remove file /storage/0449/doc_00260459 [00:33:21]file doc_00260460 [00:33:21]remove file /storage/0449/doc_00260460 [00:33:21]file doc_00260461 [00:33:21]remove file /storage/0449/doc_00260461 [00:33:21]file doc_00260462 [00:33:21]remove file /storage/0449/doc_00260462 [00:33:21]file doc_00260463 [00:33:21]remove file /storage/0449/doc_00260463 [00:33:21]file doc_00260464 [00:33:21]remove file /storage/0449/doc_00260464 [00:33:21]file doc_00260465 [00:33:21]remove file /storage/0449/doc_00260465 [00:33:21]file doc_00260466 [00:33:21]remove file /storage/0449/doc_00260466 [00:33:21]file doc_00260467 [00:33:21]remove file /storage/0449/doc_00260467 [00:33:21]file doc_00260468 [00:33:21]remove file /storage/0449/doc_00260468 [00:33:21]file doc_00260469 [00:33:21]remove file /storage/0449/doc_00260469 [00:33:21]file doc_00260470 [00:33:21]remove file /storage/0449/doc_00260470 [00:33:21]file doc_00260471 [00:33:21]remove file /storage/0449/doc_00260471 [00:33:21]file doc_00260472 [00:33:21]remove file /storage/0449/doc_00260472 [00:33:21]file doc_00260473 [00:33:21]remove file /storage/0449/doc_00260473 [00:33:21]file doc_00260474 [00:33:21]remove file /storage/0449/doc_00260474 [00:33:21]file doc_00260475 [00:33:21]remove file /storage/0449/doc_00260475 [00:33:21]file doc_00260476 [00:33:21]remove file /storage/0449/doc_00260476 [00:33:21]file doc_00260477 [00:33:21]remove file /storage/0449/doc_00260477 [00:33:21]file doc_00260478 [00:33:21]remove file /storage/0449/doc_00260478 [00:33:21]file doc_00260479 [00:33:21]remove file /storage/0449/doc_00260479 [00:33:21]file doc_00260480 [00:33:21]remove file /storage/0449/doc_00260480 [00:33:21]file doc_00260481 [00:33:21]remove file /storage/0449/doc_00260481 [00:33:21]file doc_00260482 [00:33:21]remove file /storage/0449/doc_00260482 [00:33:21]file doc_00260483 [00:33:21]remove file /storage/0449/doc_00260483 [00:33:21]file doc_00260484 [00:33:21]remove file /storage/0449/doc_00260484 [00:33:21]file doc_00260485 [00:33:21]remove file /storage/0449/doc_00260485 [00:33:21]file doc_00260486 [00:33:21]remove file /storage/0449/doc_00260486 [00:33:21]file doc_00260487 [00:33:21]remove file /storage/0449/doc_00260487 [00:33:21]file doc_00260488 [00:33:21]remove file /storage/0449/doc_00260488 [00:33:21]file doc_00260489 [00:33:21]remove file /storage/0449/doc_00260489 [00:33:21]file doc_00260490 [00:33:21]remove file /storage/0449/doc_00260490 [00:33:21]file doc_00260491 [00:33:21]remove file /storage/0449/doc_00260491 [00:33:21]file doc_00260492 [00:33:21]remove file /storage/0449/doc_00260492 [00:33:21]file doc_00260493 [00:33:21]remove file /storage/0449/doc_00260493 [00:33:21]file doc_00260494 [00:33:21]remove file /storage/0449/doc_00260494 [00:33:21]file doc_00260495 [00:33:21]remove file /storage/0449/doc_00260495 [00:33:21]file doc_00260496 [00:33:21]remove file /storage/0449/doc_00260496 [00:33:21]file doc_00260497 [00:33:21]remove file /storage/0449/doc_00260497 [00:33:21]file doc_00260498 [00:33:21]remove file /storage/0449/doc_00260498 [00:33:21]file doc_00260499 [00:33:21]remove file /storage/0449/doc_00260499 [00:33:21]file doc_00260500 [00:33:21]remove file /storage/0449/doc_00260500 [00:33:21]file doc_00260501 [00:33:21]remove file /storage/0449/doc_00260501 [00:33:21]file doc_00260502 [00:33:21]remove file /storage/0449/doc_00260502 [00:33:21]file doc_00260503 [00:33:21]remove file /storage/0449/doc_00260503 [00:33:21]file doc_00260504 [00:33:21]remove file /storage/0449/doc_00260504 [00:33:21]file doc_00260505 [00:33:21]remove file /storage/0449/doc_00260505 [00:33:21]file doc_00260506 [00:33:21]remove file /storage/0449/doc_00260506 [00:33:21]file doc_00260507 [00:33:21]remove file /storage/0449/doc_00260507 [00:33:21]file doc_00260508 [00:33:21]remove file /storage/0449/doc_00260508 [00:33:21]file doc_00260509 [00:33:21]remove file /storage/0449/doc_00260509 [00:33:21]file doc_00260510 [00:33:21]remove file /storage/0449/doc_00260510 [00:33:21]file doc_00260511 [00:33:21]remove file /storage/0449/doc_00260511 [00:33:21]file doc_00260512 [00:33:21]remove file /storage/0449/doc_00260512 [00:33:21]file doc_00260513 [00:33:21]remove file /storage/0449/doc_00260513 [00:33:21]file doc_00260514 [00:33:21]remove file /storage/0449/doc_00260514 [00:33:21]file doc_00260515 [00:33:21]remove file /storage/0449/doc_00260515 [00:33:21]file doc_00260516 [00:33:21]remove file /storage/0449/doc_00260516 [00:33:21]file doc_00260517 [00:33:21]remove file /storage/0449/doc_00260517 [00:33:21]file doc_00260518 [00:33:21]remove file /storage/0449/doc_00260518 [00:33:21]file doc_00260519 [00:33:21]remove file /storage/0449/doc_00260519 [00:33:21]file doc_00260520 [00:33:21]remove file /storage/0449/doc_00260520 [00:33:21]file doc_00260521 [00:33:21]remove file /storage/0449/doc_00260521 [00:33:21]file doc_00260522 [00:33:21]remove file /storage/0449/doc_00260522 [00:33:21]file doc_00260523 [00:33:21]remove file /storage/0449/doc_00260523 [00:33:21]file doc_00260524 [00:33:21]remove file /storage/0449/doc_00260524 [00:33:21]file doc_00260525 [00:33:21]remove file /storage/0449/doc_00260525 [00:33:21]file doc_00260526 [00:33:21]remove file /storage/0449/doc_00260526 [00:33:21]file doc_00260527 [00:33:21]remove file /storage/0449/doc_00260527 [00:33:21]file doc_00260528 [00:33:21]remove file /storage/0449/doc_00260528 [00:33:21]file doc_00260529 [00:33:21]remove file /storage/0449/doc_00260529 [00:33:21]file doc_00260530 [00:33:21]remove file /storage/0449/doc_00260530 [00:33:21]file doc_00260531 [00:33:21]remove file /storage/0449/doc_00260531 [00:33:21]file doc_00260532 [00:33:21]remove file /storage/0449/doc_00260532 [00:33:21]file doc_00260533 [00:33:21]remove file /storage/0449/doc_00260533 [00:33:21]file doc_00260534 [00:33:21]remove file /storage/0449/doc_00260534 [00:33:21]file doc_00260535 [00:33:21]remove file /storage/0449/doc_00260535 [00:33:21]file doc_00260536 [00:33:21]remove file /storage/0449/doc_00260536 [00:33:21]file doc_00260537 [00:33:21]remove file /storage/0449/doc_00260537 [00:33:21]file doc_00260538 [00:33:21]remove file /storage/0449/doc_00260538 [00:33:21]file doc_00260539 [00:33:21]remove file /storage/0449/doc_00260539 [00:33:21]file doc_00260540 [00:33:21]remove file /storage/0449/doc_00260540 [00:33:21]file doc_00260541 [00:33:21]remove file /storage/0449/doc_00260541 [00:33:21]file doc_00260542 [00:33:21]remove file /storage/0449/doc_00260542 [00:33:21]file doc_00260543 [00:33:21]remove file /storage/0449/doc_00260543 [00:33:21]file doc_00260544 [00:33:21]remove file /storage/0449/doc_00260544 [00:33:21]file doc_00260545 [00:33:21]remove file /storage/0449/doc_00260545 [00:33:21]file doc_00260546 [00:33:21]remove file /storage/0449/doc_00260546 [00:33:21]file doc_00260547 [00:33:21]remove file /storage/0449/doc_00260547 [00:33:22]file doc_00260548 [00:33:22]remove file /storage/0449/doc_00260548 [00:33:22]file doc_00260549 [00:33:22]remove file /storage/0449/doc_00260549 [00:33:22]file doc_00260550 [00:33:22]remove file /storage/0449/doc_00260550 [00:33:22]file doc_00260551 [00:33:22]remove file /storage/0449/doc_00260551 [00:33:22]file doc_00260552 [00:33:22]remove file /storage/0449/doc_00260552 [00:33:22]file doc_00260553 [00:33:22]remove file /storage/0449/doc_00260553 [00:33:22]file doc_00260554 [00:33:22]remove file /storage/0449/doc_00260554 [00:33:22]file doc_00260555 [00:33:22]remove file /storage/0449/doc_00260555 [00:33:22]file doc_00260556 [00:33:22]remove file /storage/0449/doc_00260556 [00:33:22]file doc_00260557 [00:33:22]remove file /storage/0449/doc_00260557 [00:33:22]file doc_00260558 [00:33:22]remove file /storage/0449/doc_00260558 [00:33:22]file doc_00260559 [00:33:22]remove file /storage/0449/doc_00260559 [00:33:22]file doc_00260560 [00:33:22]remove file /storage/0449/doc_00260560 [00:33:22]file doc_00260561 [00:33:22]remove file /storage/0449/doc_00260561 [00:33:22]file doc_00260562 [00:33:22]remove file /storage/0449/doc_00260562 [00:33:22]file doc_00260563 [00:33:22]remove file /storage/0449/doc_00260563 [00:33:22]file doc_00260564 [00:33:22]remove file /storage/0449/doc_00260564 [00:33:22]file doc_00260565 [00:33:22]remove file /storage/0449/doc_00260565 [00:33:22]file doc_00260566 [00:33:22]remove file /storage/0449/doc_00260566 [00:33:22]file doc_00260567 [00:33:22]remove file /storage/0449/doc_00260567 [00:33:22]file doc_00260568 [00:33:22]remove file /storage/0449/doc_00260568 [00:33:22]file doc_00260569 [00:33:22]remove file /storage/0449/doc_00260569 [00:33:22]file doc_00260570 [00:33:22]remove file /storage/0449/doc_00260570 [00:33:22]file doc_00260571 [00:33:22]remove file /storage/0449/doc_00260571 [00:33:22]file doc_00260572 [00:33:22]remove file /storage/0449/doc_00260572 [00:33:22]file doc_00260573 [00:33:22]remove file /storage/0449/doc_00260573 [00:33:22]file doc_00260574 [00:33:22]remove file /storage/0449/doc_00260574 [00:33:22]file doc_00260575 [00:33:22]remove file /storage/0449/doc_00260575 [00:33:22]file doc_00260576 [00:33:22]remove file /storage/0449/doc_00260576 [00:33:22]file doc_00260577 [00:33:22]remove file /storage/0449/doc_00260577 [00:33:22]file doc_00260578 [00:33:22]remove file /storage/0449/doc_00260578 [00:33:22]file doc_00260579 [00:33:22]remove file /storage/0449/doc_00260579 [00:33:22]file doc_00260580 [00:33:22]remove file /storage/0449/doc_00260580 [00:33:22]file doc_00260581 [00:33:22]remove file /storage/0449/doc_00260581 [00:33:22]file doc_00260582 [00:33:22]remove file /storage/0449/doc_00260582 [00:33:22]file doc_00260583 [00:33:22]remove file /storage/0449/doc_00260583 [00:33:22]file doc_00260584 [00:33:22]remove file /storage/0449/doc_00260584 [00:33:22]file doc_00260585 [00:33:22]remove file /storage/0449/doc_00260585 [00:33:22]file doc_00260586 [00:33:22]remove file /storage/0449/doc_00260586 [00:33:22]file doc_00260587 [00:33:22]remove file /storage/0449/doc_00260587 [00:33:22]file doc_00260588 [00:33:22]remove file /storage/0449/doc_00260588 [00:33:22]file doc_00260589 [00:33:22]remove file /storage/0449/doc_00260589 [00:33:22]file doc_00260590 [00:33:22]remove file /storage/0449/doc_00260590 [00:33:22]file doc_00260591 [00:33:22]remove file /storage/0449/doc_00260591 [00:33:22]file doc_00260592 [00:33:22]remove file /storage/0449/doc_00260592 [00:33:22]file doc_00260593 [00:33:22]remove file /storage/0449/doc_00260593 [00:33:22]file doc_00260594 [00:33:22]remove file /storage/0449/doc_00260594 [00:33:22]file doc_00260595 [00:33:22]remove file /storage/0449/doc_00260595 [00:33:22]file doc_00260596 [00:33:22]remove file /storage/0449/doc_00260596 [00:33:22]file doc_00260597 [00:33:22]remove file /storage/0449/doc_00260597 [00:33:22]file doc_00260598 [00:33:22]remove file /storage/0449/doc_00260598 [00:33:22]file doc_00260599 [00:33:22]remove file /storage/0449/doc_00260599 [00:33:22]file doc_00260600 [00:33:22]remove file /storage/0449/doc_00260600 [00:33:22]file doc_00260601 [00:33:22]remove file /storage/0449/doc_00260601 [00:33:22]file doc_00260602 [00:33:22]remove file /storage/0449/doc_00260602 [00:33:22]file doc_00260603 [00:33:22]remove file /storage/0449/doc_00260603 [00:33:22]file doc_00260604 [00:33:22]remove file /storage/0449/doc_00260604 [00:33:22]file doc_00260605 [00:33:22]remove file /storage/0449/doc_00260605 [00:33:22]file doc_00260606 [00:33:22]remove file /storage/0449/doc_00260606 [00:33:22]file doc_00260607 [00:33:22]remove file /storage/0449/doc_00260607 [00:33:22]file doc_00260608 [00:33:22]remove file /storage/0449/doc_00260608 [00:33:22]file doc_00260609 [00:33:22]remove file /storage/0449/doc_00260609 [00:33:22]file doc_00260610 [00:33:22]remove file /storage/0449/doc_00260610 [00:33:22]file doc_00260611 [00:33:22]remove file /storage/0449/doc_00260611 [00:33:22]file doc_00260612 [00:33:22]remove file /storage/0449/doc_00260612 [00:33:22]file doc_00260613 [00:33:22]remove file /storage/0449/doc_00260613 [00:33:22]file doc_00260614 [00:33:22]remove file /storage/0449/doc_00260614 [00:33:22]file doc_00260615 [00:33:22]remove file /storage/0449/doc_00260615 [00:33:22]file doc_00260616 [00:33:22]remove file /storage/0449/doc_00260616 [00:33:22]file doc_00260617 [00:33:22]remove file /storage/0449/doc_00260617 [00:33:22]file doc_00260618 [00:33:22]remove file /storage/0449/doc_00260618 [00:33:22]file doc_00260619 [00:33:22]remove file /storage/0449/doc_00260619 [00:33:22]file doc_00260620 [00:33:22]remove file /storage/0449/doc_00260620 [00:33:22]file doc_00260621 [00:33:22]remove file /storage/0449/doc_00260621 [00:33:22]file doc_00260622 [00:33:22]remove file /storage/0449/doc_00260622 [00:33:22]file doc_00260623 [00:33:22]remove file /storage/0449/doc_00260623 [00:33:22]file doc_00260624 [00:33:22]remove file /storage/0449/doc_00260624 [00:33:22]file doc_00260625 [00:33:22]remove file /storage/0449/doc_00260625 [00:33:22]file doc_00260626 [00:33:22]remove file /storage/0449/doc_00260626 [00:33:22]file doc_00260627 [00:33:22]remove file /storage/0449/doc_00260627 [00:33:22]file doc_00260628 [00:33:22]remove file /storage/0449/doc_00260628 [00:33:22]file doc_00260629 [00:33:22]remove file /storage/0449/doc_00260629 [00:33:22]file doc_00260630 [00:33:22]remove file /storage/0449/doc_00260630 [00:33:22]file doc_00260631 [00:33:22]remove file /storage/0449/doc_00260631 [00:33:22]file doc_00260632 [00:33:22]remove file /storage/0449/doc_00260632 [00:33:22]file doc_00260633 [00:33:22]remove file /storage/0449/doc_00260633 [00:33:22]file doc_00260634 [00:33:22]remove file /storage/0449/doc_00260634 [00:33:22]file doc_00260635 [00:33:22]remove file /storage/0449/doc_00260635 [00:33:22]file doc_00260636 [00:33:22]remove file /storage/0449/doc_00260636 [00:33:22]file doc_00260637 [00:33:22]remove file /storage/0449/doc_00260637 [00:33:22]file doc_00260638 [00:33:22]remove file /storage/0449/doc_00260638 [00:33:22]file doc_00260639 [00:33:22]remove file /storage/0449/doc_00260639 [00:33:22]file doc_00260640 [00:33:22]remove file /storage/0449/doc_00260640 [00:33:22]file doc_00260641 [00:33:22]remove file /storage/0449/doc_00260641 [00:33:22]file doc_00260642 [00:33:22]remove file /storage/0449/doc_00260642 [00:33:22]file doc_00260643 [00:33:22]remove file /storage/0449/doc_00260643 [00:33:22]file doc_00260644 [00:33:22]remove file /storage/0449/doc_00260644 [00:33:22]file doc_00260645 [00:33:22]remove file /storage/0449/doc_00260645 [00:33:22]file doc_00260646 [00:33:22]remove file /storage/0449/doc_00260646 [00:33:22]file doc_00260647 [00:33:22]remove file /storage/0449/doc_00260647 [00:33:22]file doc_00260648 [00:33:22]remove file /storage/0449/doc_00260648 [00:33:22]file doc_00260649 [00:33:22]remove file /storage/0449/doc_00260649 [00:33:22]file doc_00260650 [00:33:22]remove file /storage/0449/doc_00260650 [00:33:22]file doc_00260651 [00:33:22]remove file /storage/0449/doc_00260651 [00:33:22]file doc_00260652 [00:33:22]remove file /storage/0449/doc_00260652 [00:33:22]file doc_00260653 [00:33:22]remove file /storage/0449/doc_00260653 [00:33:22]file doc_00260654 [00:33:22]remove file /storage/0449/doc_00260654 [00:33:22]file doc_00260655 [00:33:22]remove file /storage/0449/doc_00260655 [00:33:22]file doc_00260656 [00:33:22]remove file /storage/0449/doc_00260656 [00:33:22]file doc_00260657 [00:33:22]remove file /storage/0449/doc_00260657 [00:33:22]file doc_00260658 [00:33:22]remove file /storage/0449/doc_00260658 [00:33:22]file doc_00260659 [00:33:22]remove file /storage/0449/doc_00260659 [00:33:22]file doc_00260660 [00:33:22]remove file /storage/0449/doc_00260660 [00:33:22]file doc_00260661 [00:33:22]remove file /storage/0449/doc_00260661 [00:33:22]file doc_00260662 [00:33:22]remove file /storage/0449/doc_00260662 [00:33:22]file doc_00260663 [00:33:22]remove file /storage/0449/doc_00260663 [00:33:22]file doc_00260664 [00:33:22]remove file /storage/0449/doc_00260664 [00:33:22]file doc_00260665 [00:33:22]remove file /storage/0449/doc_00260665 [00:33:22]file doc_00260666 [00:33:22]remove file /storage/0449/doc_00260666 [00:33:22]file doc_00260667 [00:33:22]remove file /storage/0449/doc_00260667 [00:33:22]file doc_00260668 [00:33:22]remove file /storage/0449/doc_00260668 [00:33:22]file doc_00260669 [00:33:22]remove file /storage/0449/doc_00260669 [00:33:22]file doc_00260670 [00:33:22]remove file /storage/0449/doc_00260670 [00:33:22]file doc_00260671 [00:33:22]remove file /storage/0449/doc_00260671 [00:33:22]file doc_00260672 [00:33:22]remove file /storage/0449/doc_00260672 [00:33:22]file doc_00260673 [00:33:22]remove file /storage/0449/doc_00260673 [00:33:22]file doc_00260674 [00:33:22]remove file /storage/0449/doc_00260674 [00:33:22]file doc_00260675 [00:33:22]remove file /storage/0449/doc_00260675 [00:33:22]file doc_00260676 [00:33:22]remove file /storage/0449/doc_00260676 [00:33:22]file doc_00260677 [00:33:22]remove file /storage/0449/doc_00260677 [00:33:22]file doc_00260678 [00:33:22]remove file /storage/0449/doc_00260678 [00:33:22]file doc_00260679 [00:33:22]remove file /storage/0449/doc_00260679 [00:33:22]file doc_00260680 [00:33:22]remove file /storage/0449/doc_00260680 [00:33:22]file doc_00260681 [00:33:22]remove file /storage/0449/doc_00260681 [00:33:22]file doc_00260682 [00:33:22]remove file /storage/0449/doc_00260682 [00:33:22]file doc_00260683 [00:33:22]remove file /storage/0449/doc_00260683 [00:33:22]file doc_00260684 [00:33:22]remove file /storage/0449/doc_00260684 [00:33:22]file doc_00260685 [00:33:22]remove file /storage/0449/doc_00260685 [00:33:22]file doc_00260686 [00:33:22]remove file /storage/0449/doc_00260686 [00:33:22]file doc_00260687 [00:33:22]remove file /storage/0449/doc_00260687 [00:33:22]file doc_00260688 [00:33:22]remove file /storage/0449/doc_00260688 [00:33:22]file doc_00260689 [00:33:22]remove file /storage/0449/doc_00260689 [00:33:22]file doc_00260690 [00:33:22]remove file /storage/0449/doc_00260690 [00:33:22]file doc_00260691 [00:33:22]remove file /storage/0449/doc_00260691 [00:33:22]file doc_00260692 [00:33:22]remove file /storage/0449/doc_00260692 [00:33:22]file doc_00260693 [00:33:22]remove file /storage/0449/doc_00260693 [00:33:22]file doc_00260694 [00:33:22]remove file /storage/0449/doc_00260694 [00:33:22]file doc_00260695 [00:33:22]remove file /storage/0449/doc_00260695 [00:33:22]file doc_00260696 [00:33:22]remove file /storage/0449/doc_00260696 [00:33:22]file doc_00260697 [00:33:22]remove file /storage/0449/doc_00260697 [00:33:22]file doc_00260698 [00:33:22]remove file /storage/0449/doc_00260698 [00:33:22]file doc_00260699 [00:33:22]remove file /storage/0449/doc_00260699 [00:33:22]file doc_00260700 [00:33:22]remove file /storage/0449/doc_00260700 [00:33:22]file doc_00260701 [00:33:22]remove file /storage/0449/doc_00260701 [00:33:22]file doc_00260702 [00:33:22]remove file /storage/0449/doc_00260702 [00:33:22]file doc_00260703 [00:33:22]remove file /storage/0449/doc_00260703 [00:33:22]file doc_00260704 [00:33:22]remove file /storage/0449/doc_00260704 [00:33:22]file doc_00260705 [00:33:22]remove file /storage/0449/doc_00260705 [00:33:22]file doc_00260706 [00:33:22]remove file /storage/0449/doc_00260706 [00:33:22]file doc_00260707 [00:33:22]remove file /storage/0449/doc_00260707 [00:33:22]file doc_00260708 [00:33:22]remove file /storage/0449/doc_00260708 [00:33:22]file doc_00260709 [00:33:22]remove file /storage/0449/doc_00260709 [00:33:22]file doc_00260710 [00:33:22]remove file /storage/0449/doc_00260710 [00:33:22]file doc_00260711 [00:33:22]remove file /storage/0449/doc_00260711 [00:33:22]file doc_00260712 [00:33:22]remove file /storage/0449/doc_00260712 [00:33:22]file doc_00260713 [00:33:22]remove file /storage/0449/doc_00260713 [00:33:22]file doc_00260714 [00:33:22]remove file /storage/0449/doc_00260714 [00:33:22]file doc_00260715 [00:33:22]remove file /storage/0449/doc_00260715 [00:33:22]file doc_00260716 [00:33:22]remove file /storage/0449/doc_00260716 [00:33:22]file doc_00260717 [00:33:22]remove file /storage/0449/doc_00260717 [00:33:22]file doc_00260718 [00:33:22]remove file /storage/0449/doc_00260718 [00:33:22]file doc_00260719 [00:33:22]remove file /storage/0449/doc_00260719 [00:33:22]file doc_00260720 [00:33:22]remove file /storage/0449/doc_00260720 [00:33:22]file doc_00260721 [00:33:22]remove file /storage/0449/doc_00260721 [00:33:22]file doc_00260722 [00:33:22]remove file /storage/0449/doc_00260722 [00:33:23]file doc_00260723 [00:33:23]remove file /storage/0449/doc_00260723 [00:33:23]file doc_00260724 [00:33:23]remove file /storage/0449/doc_00260724 [00:33:23]file doc_00260725 [00:33:23]remove file /storage/0449/doc_00260725 [00:33:23]file doc_00260726 [00:33:23]remove file /storage/0449/doc_00260726 [00:33:23]file doc_00260727 [00:33:23]remove file /storage/0449/doc_00260727 [00:33:23]file doc_00260728 [00:33:23]remove file /storage/0449/doc_00260728 [00:33:23]file doc_00260729 [00:33:23]remove file /storage/0449/doc_00260729 [00:33:23]file doc_00260730 [00:33:23]remove file /storage/0449/doc_00260730 [00:33:23]file doc_00260731 [00:33:23]remove file /storage/0449/doc_00260731 [00:33:23]file doc_00260732 [00:33:23]remove file /storage/0449/doc_00260732 [00:33:23]file doc_00260733 [00:33:23]remove file /storage/0449/doc_00260733 [00:33:23]file doc_00260734 [00:33:23]remove file /storage/0449/doc_00260734 [00:33:23]file doc_00260735 [00:33:23]remove file /storage/0449/doc_00260735 [00:33:23]file doc_00260736 [00:33:23]remove file /storage/0449/doc_00260736 [00:33:23]file doc_00260737 [00:33:23]remove file /storage/0449/doc_00260737 [00:33:23]file doc_00260738 [00:33:23]remove file /storage/0449/doc_00260738 [00:33:23]file doc_00260739 [00:33:23]remove file /storage/0449/doc_00260739 [00:33:23]file doc_00260740 [00:33:23]remove file /storage/0449/doc_00260740 [00:33:23]file doc_00260741 [00:33:23]remove file /storage/0449/doc_00260741 [00:33:23]file doc_00260742 [00:33:23]remove file /storage/0449/doc_00260742 [00:33:23]file doc_00260743 [00:33:23]remove file /storage/0449/doc_00260743 [00:33:23]file doc_00260744 [00:33:23]remove file /storage/0449/doc_00260744 [00:33:23]file doc_00260745 [00:33:23]remove file /storage/0449/doc_00260745 [00:33:23]file doc_00260746 [00:33:23]remove file /storage/0449/doc_00260746 [00:33:23]file doc_00260747 [00:33:23]remove file /storage/0449/doc_00260747 [00:33:23]file doc_00260748 [00:33:23]remove file /storage/0449/doc_00260748 [00:33:23]file doc_00260749 [00:33:23]remove file /storage/0449/doc_00260749 [00:33:23]file doc_00260750 [00:33:23]remove file /storage/0449/doc_00260750 [00:33:23]file doc_00260751 [00:33:23]remove file /storage/0449/doc_00260751 [00:33:23]file doc_00260752 [00:33:23]remove file /storage/0449/doc_00260752 [00:33:23]file doc_00260753 [00:33:23]remove file /storage/0449/doc_00260753 [00:33:23]file doc_00260754 [00:33:23]remove file /storage/0449/doc_00260754 [00:33:23]file doc_00260755 [00:33:23]remove file /storage/0449/doc_00260755 [00:33:23]file doc_00260756 [00:33:23]remove file /storage/0449/doc_00260756 [00:33:23]file doc_00260757 [00:33:23]remove file /storage/0449/doc_00260757 [00:33:23]file doc_00260758 [00:33:23]remove file /storage/0449/doc_00260758 [00:33:23]file doc_00260759 [00:33:23]remove file /storage/0449/doc_00260759 [00:33:23]file doc_00260760 [00:33:23]remove file /storage/0449/doc_00260760 [00:33:23]file doc_00260761 [00:33:23]remove file /storage/0449/doc_00260761 [00:33:23]file doc_00260762 [00:33:23]remove file /storage/0449/doc_00260762 [00:33:23]file doc_00260763 [00:33:23]remove file /storage/0449/doc_00260763 [00:33:23]file doc_00260764 [00:33:23]remove file /storage/0449/doc_00260764 [00:33:23]file doc_00260765 [00:33:23]remove file /storage/0449/doc_00260765 [00:33:23]file doc_00260766 [00:33:23]remove file /storage/0449/doc_00260766 [00:33:23]file doc_00260767 [00:33:23]remove file /storage/0449/doc_00260767 [00:33:23]file doc_00260768 [00:33:23]remove file /storage/0449/doc_00260768 [00:33:23]file doc_00260769 [00:33:23]remove file /storage/0449/doc_00260769 [00:33:23]file doc_00260770 [00:33:23]remove file /storage/0449/doc_00260770 [00:33:23]file doc_00260771 [00:33:23]remove file /storage/0449/doc_00260771 [00:33:23]file doc_00260772 [00:33:23]remove file /storage/0449/doc_00260772 [00:33:23]file doc_00260773 [00:33:23]remove file /storage/0449/doc_00260773 [00:33:23]file doc_00260774 [00:33:23]remove file /storage/0449/doc_00260774 [00:33:23]file doc_00260775 [00:33:23]remove file /storage/0449/doc_00260775 [00:33:23]file doc_00260776 [00:33:23]remove file /storage/0449/doc_00260776 [00:33:23]file doc_00260777 [00:33:23]remove file /storage/0449/doc_00260777 [00:33:23]file doc_00260778 [00:33:23]remove file /storage/0449/doc_00260778 [00:33:23]file doc_00260779 [00:33:23]remove file /storage/0449/doc_00260779 [00:33:23]file doc_00260780 [00:33:23]remove file /storage/0449/doc_00260780 [00:33:23]file doc_00260781 [00:33:23]remove file /storage/0449/doc_00260781 [00:33:23]file doc_00260782 [00:33:23]remove file /storage/0449/doc_00260782 [00:33:23]file doc_00260783 [00:33:23]remove file /storage/0449/doc_00260783 [00:33:23]file doc_00260784 [00:33:23]remove file /storage/0449/doc_00260784 [00:33:23]file doc_00260785 [00:33:23]remove file /storage/0449/doc_00260785 [00:33:23]file doc_00260786 [00:33:23]remove file /storage/0449/doc_00260786 [00:33:23]file doc_00260787 [00:33:23]remove file /storage/0449/doc_00260787 [00:33:23]file doc_00260788 [00:33:23]remove file /storage/0449/doc_00260788 [00:33:23]file doc_00260789 [00:33:23]remove file /storage/0449/doc_00260789 [00:33:23]file doc_00260790 [00:33:23]remove file /storage/0449/doc_00260790 [00:33:23]file doc_00260791 [00:33:23]remove file /storage/0449/doc_00260791 [00:33:23]file doc_00260792 [00:33:23]remove file /storage/0449/doc_00260792 [00:33:23]file doc_00260793 [00:33:23]remove file /storage/0449/doc_00260793 [00:33:23]file doc_00260794 [00:33:23]remove file /storage/0449/doc_00260794 [00:33:23]file doc_00260795 [00:33:23]remove file /storage/0449/doc_00260795 [00:33:23]file doc_00260796 [00:33:23]remove file /storage/0449/doc_00260796 [00:33:23]file doc_00260797 [00:33:23]remove file /storage/0449/doc_00260797 [00:33:23]file doc_00260798 [00:33:23]remove file /storage/0449/doc_00260798 [00:33:23]file doc_00260799 [00:33:23]remove file /storage/0449/doc_00260799 [00:33:23]file doc_00260800 [00:33:23]remove file /storage/0449/doc_00260800 [00:33:23]file doc_00260801 [00:33:23]remove file /storage/0449/doc_00260801 [00:33:23]file doc_00260802 [00:33:23]remove file /storage/0449/doc_00260802 [00:33:23]file doc_00260803 [00:33:23]remove file /storage/0449/doc_00260803 [00:33:23]file doc_00260804 [00:33:23]remove file /storage/0449/doc_00260804 [00:33:23]file doc_00260805 [00:33:23]remove file /storage/0449/doc_00260805 [00:33:23]file doc_00260806 [00:33:23]remove file /storage/0449/doc_00260806 [00:33:23]file doc_00260807 [00:33:23]remove file /storage/0449/doc_00260807 [00:33:23]file doc_00260808 [00:33:23]remove file /storage/0449/doc_00260808 [00:33:23]file doc_00260809 [00:33:23]remove file /storage/0449/doc_00260809 [00:33:23]file doc_00260810 [00:33:23]remove file /storage/0449/doc_00260810 [00:33:23]file doc_00260811 [00:33:23]remove file /storage/0449/doc_00260811 [00:33:23]file doc_00260812 [00:33:23]remove file /storage/0449/doc_00260812 [00:33:23]file doc_00260813 [00:33:23]remove file /storage/0449/doc_00260813 [00:33:23]file doc_00260814 [00:33:23]remove file /storage/0449/doc_00260814 [00:33:23]file doc_00260815 [00:33:23]remove file /storage/0449/doc_00260815 [00:33:23]file doc_00260816 [00:33:23]remove file /storage/0449/doc_00260816 [00:33:23]file doc_00260817 [00:33:23]remove file /storage/0449/doc_00260817 [00:33:23]file doc_00260818 [00:33:23]remove file /storage/0449/doc_00260818 [00:33:23]file doc_00260819 [00:33:23]remove file /storage/0449/doc_00260819 [00:33:23]file doc_00260820 [00:33:23]remove file /storage/0449/doc_00260820 [00:33:23]file doc_00260821 [00:33:23]remove file /storage/0449/doc_00260821 [00:33:23]file doc_00260822 [00:33:23]remove file /storage/0449/doc_00260822 [00:33:23]file doc_00260823 [00:33:23]remove file /storage/0449/doc_00260823 [00:33:23]file doc_00260824 [00:33:23]remove file /storage/0449/doc_00260824 [00:33:23]file doc_00260825 [00:33:23]remove file /storage/0449/doc_00260825 [00:33:23]file doc_00260826 [00:33:23]remove file /storage/0449/doc_00260826 [00:33:23]file doc_00260827 [00:33:23]remove file /storage/0449/doc_00260827 [00:33:23]file doc_00260828 [00:33:23]remove file /storage/0449/doc_00260828 [00:33:23]file doc_00260829 [00:33:23]remove file /storage/0449/doc_00260829 [00:33:23]file doc_00260830 [00:33:23]remove file /storage/0449/doc_00260830 [00:33:23]file doc_00260831 [00:33:23]remove file /storage/0449/doc_00260831 [00:33:23]file doc_00260832 [00:33:23]remove file /storage/0449/doc_00260832 [00:33:23]file doc_00260833 [00:33:23]remove file /storage/0449/doc_00260833 [00:33:23]file doc_00260834 [00:33:23]remove file /storage/0449/doc_00260834 [00:33:23]file doc_00260835 [00:33:23]remove file /storage/0449/doc_00260835 [00:33:23]file doc_00260836 [00:33:23]remove file /storage/0449/doc_00260836 [00:33:23]file doc_00260837 [00:33:23]remove file /storage/0449/doc_00260837 [00:33:23]file doc_00260838 [00:33:23]remove file /storage/0449/doc_00260838 [00:33:23]file doc_00260839 [00:33:23]remove file /storage/0449/doc_00260839 [00:33:23]file doc_00260840 [00:33:23]remove file /storage/0449/doc_00260840 [00:33:23]file doc_00260841 [00:33:23]remove file /storage/0449/doc_00260841 [00:33:23]file doc_00260842 [00:33:23]remove file /storage/0449/doc_00260842 [00:33:23]file doc_00260843 [00:33:23]remove file /storage/0449/doc_00260843 [00:33:23]file doc_00260844 [00:33:23]remove file /storage/0449/doc_00260844 [00:33:23]file doc_00260845 [00:33:23]remove file /storage/0449/doc_00260845 [00:33:23]file doc_00260846 [00:33:23]remove file /storage/0449/doc_00260846 [00:33:23]file doc_00260847 [00:33:23]remove file /storage/0449/doc_00260847 [00:33:23]file doc_00260848 [00:33:23]remove file /storage/0449/doc_00260848 [00:33:23]file doc_00260849 [00:33:23]remove file /storage/0449/doc_00260849 [00:33:23]file doc_00260850 [00:33:23]remove file /storage/0449/doc_00260850 [00:33:23]file doc_00260851 [00:33:23]remove file /storage/0449/doc_00260851 [00:33:23]file doc_00260852 [00:33:23]remove file /storage/0449/doc_00260852 [00:33:23]file doc_00260853 [00:33:23]remove file /storage/0449/doc_00260853 [00:33:23]file doc_00260854 [00:33:23]remove file /storage/0449/doc_00260854 [00:33:23]file doc_00260855 [00:33:23]remove file /storage/0449/doc_00260855 [00:33:23]file doc_00260856 [00:33:23]remove file /storage/0449/doc_00260856 [00:33:23]file doc_00260857 [00:33:23]remove file /storage/0449/doc_00260857 [00:33:23]file doc_00260858 [00:33:23]remove file /storage/0449/doc_00260858 [00:33:23]file doc_00260859 [00:33:23]remove file /storage/0449/doc_00260859 [00:33:23]file doc_00260860 [00:33:23]remove file /storage/0449/doc_00260860 [00:33:23]file doc_00260861 [00:33:23]remove file /storage/0449/doc_00260861 [00:33:23]file doc_00260862 [00:33:23]remove file /storage/0449/doc_00260862 [00:33:23]file doc_00260863 [00:33:23]remove file /storage/0449/doc_00260863 [00:33:23]file doc_00260864 [00:33:23]remove file /storage/0449/doc_00260864 [00:33:23]file doc_00260865 [00:33:23]remove file /storage/0449/doc_00260865 [00:33:23]file doc_00260866 [00:33:23]remove file /storage/0449/doc_00260866 [00:33:23]file doc_00260867 [00:33:23]remove file /storage/0449/doc_00260867 [00:33:23]file doc_00260868 [00:33:23]remove file /storage/0449/doc_00260868 [00:33:23]file doc_00260869 [00:33:23]remove file /storage/0449/doc_00260869 [00:33:23]file doc_00260870 [00:33:23]remove file /storage/0449/doc_00260870 [00:33:23]file doc_00260871 [00:33:23]remove file /storage/0449/doc_00260871 [00:33:23]file doc_00260872 [00:33:23]remove file /storage/0449/doc_00260872 [00:33:23]file doc_00260873 [00:33:23]remove file /storage/0449/doc_00260873 [00:33:23]file doc_00260874 [00:33:23]remove file /storage/0449/doc_00260874 [00:33:23]file doc_00260875 [00:33:23]remove file /storage/0449/doc_00260875 [00:33:23]file doc_00260876 [00:33:23]remove file /storage/0449/doc_00260876 [00:33:23]file doc_00260877 [00:33:23]remove file /storage/0449/doc_00260877 [00:33:23]file doc_00260878 [00:33:23]remove file /storage/0449/doc_00260878 [00:33:23]file doc_00260879 [00:33:23]remove file /storage/0449/doc_00260879 [00:33:23]file doc_00260880 [00:33:23]remove file /storage/0449/doc_00260880 [00:33:23]file doc_00260881 [00:33:23]remove file /storage/0449/doc_00260881 [00:33:23]file doc_00260882 [00:33:23]remove file /storage/0449/doc_00260882 [00:33:23]file doc_00260883 [00:33:23]remove file /storage/0449/doc_00260883 [00:33:23]file doc_00260884 [00:33:23]remove file /storage/0449/doc_00260884 [00:33:23]file doc_00260885 [00:33:23]remove file /storage/0449/doc_00260885 [00:33:23]file doc_00260886 [00:33:23]remove file /storage/0449/doc_00260886 [00:33:23]file doc_00260887 [00:33:23]remove file /storage/0449/doc_00260887 [00:33:23]file doc_00260888 [00:33:23]remove file /storage/0449/doc_00260888 [00:33:23]file doc_00260889 [00:33:23]remove file /storage/0449/doc_00260889 [00:33:23]file doc_00260890 [00:33:23]remove file /storage/0449/doc_00260890 [00:33:23]file doc_00260891 [00:33:23]remove file /storage/0449/doc_00260891 [00:33:23]file doc_00260892 [00:33:23]remove file /storage/0449/doc_00260892 [00:33:23]file doc_00260893 [00:33:23]remove file /storage/0449/doc_00260893 [00:33:23]file doc_00260894 [00:33:23]remove file /storage/0449/doc_00260894 [00:33:23]file doc_00260895 [00:33:23]remove file /storage/0449/doc_00260895 [00:33:23]file doc_00260896 [00:33:23]remove file /storage/0449/doc_00260896 [00:33:23]file doc_00260897 [00:33:23]remove file /storage/0449/doc_00260897 [00:33:23]file doc_00260898 [00:33:23]remove file /storage/0449/doc_00260898 [00:33:23]file doc_00260899 [00:33:23]remove file /storage/0449/doc_00260899 [00:33:23]file doc_00260900 [00:33:23]remove file /storage/0449/doc_00260900 [00:33:23]file doc_00260901 [00:33:23]remove file /storage/0449/doc_00260901 [00:33:23]file doc_00260902 [00:33:23]remove file /storage/0449/doc_00260902 [00:33:23]file doc_00260903 [00:33:23]remove file /storage/0449/doc_00260903 [00:33:23]file doc_00260904 [00:33:23]remove file /storage/0449/doc_00260904 [00:33:23]file doc_00260905 [00:33:23]remove file /storage/0449/doc_00260905 [00:33:23]file doc_00260906 [00:33:23]remove file /storage/0449/doc_00260906 [00:33:23]file doc_00260907 [00:33:23]remove file /storage/0449/doc_00260907 [00:33:23]file doc_00260908 [00:33:24]remove file /storage/0449/doc_00260908 [00:33:24]file doc_00260909 [00:33:24]remove file /storage/0449/doc_00260909 [00:33:24]file doc_00260910 [00:33:24]remove file /storage/0449/doc_00260910 [00:33:24]file doc_00260911 [00:33:24]remove file /storage/0449/doc_00260911 [00:33:24]file doc_00260912 [00:33:24]remove file /storage/0449/doc_00260912 [00:33:24]file doc_00260913 [00:33:24]remove file /storage/0449/doc_00260913 [00:33:24]file doc_00260914 [00:33:24]remove file /storage/0449/doc_00260914 [00:33:24]file doc_00260915 [00:33:24]remove file /storage/0449/doc_00260915 [00:33:24]file doc_00260916 [00:33:24]remove file /storage/0449/doc_00260916 [00:33:24]file doc_00260917 [00:33:24]remove file /storage/0449/doc_00260917 [00:33:24]file doc_00260918 [00:33:24]remove file /storage/0449/doc_00260918 [00:33:24]file doc_00260919 [00:33:24]remove file /storage/0449/doc_00260919 [00:33:24]file doc_00260920 [00:33:24]remove file /storage/0449/doc_00260920 [00:33:24]file doc_00260921 [00:33:24]remove file /storage/0449/doc_00260921 [00:33:24]file doc_00260922 [00:33:24]remove file /storage/0449/doc_00260922 [00:33:24]file doc_00260923 [00:33:24]remove file /storage/0449/doc_00260923 [00:33:24]file doc_00260924 [00:33:24]remove file /storage/0449/doc_00260924 [00:33:24]file doc_00260925 [00:33:24]remove file /storage/0449/doc_00260925 [00:33:24]file doc_00260926 [00:33:24]remove file /storage/0449/doc_00260926 [00:33:24]file doc_00260927 [00:33:24]remove file /storage/0449/doc_00260927 [00:33:24]file doc_00260928 [00:33:24]remove file /storage/0449/doc_00260928 [00:33:24]file doc_00260929 [00:33:24]remove file /storage/0449/doc_00260929 [00:33:24]file doc_00260930 [00:33:24]remove file /storage/0449/doc_00260930 [00:33:24]file doc_00260931 [00:33:24]remove file /storage/0449/doc_00260931 [00:33:24]file doc_00260932 [00:33:24]remove file /storage/0449/doc_00260932 [00:33:24]file doc_00260933 [00:33:24]remove file /storage/0449/doc_00260933 [00:33:24]file doc_00260934 [00:33:24]remove file /storage/0449/doc_00260934 [00:33:24]file doc_00260935 [00:33:24]remove file /storage/0449/doc_00260935 [00:33:24]file doc_00260936 [00:33:24]remove file /storage/0449/doc_00260936 [00:33:24]file doc_00260937 [00:33:24]remove file /storage/0449/doc_00260937 [00:33:24]file doc_00260938 [00:33:24]remove file /storage/0449/doc_00260938 [00:33:24]file doc_00260939 [00:33:24]remove file /storage/0449/doc_00260939 [00:33:24]file doc_00260940 [00:33:24]remove file /storage/0449/doc_00260940 [00:33:24]file doc_00260941 [00:33:24]remove file /storage/0449/doc_00260941 [00:33:24]file doc_00260942 [00:33:24]remove file /storage/0449/doc_00260942 [00:33:24]file doc_00260943 [00:33:24]remove file /storage/0449/doc_00260943 [00:33:24]file doc_00260944 [00:33:24]remove file /storage/0449/doc_00260944 [00:33:24]file doc_00260945 [00:33:24]remove file /storage/0449/doc_00260945 [00:33:24]file doc_00260946 [00:33:24]remove file /storage/0449/doc_00260946 [00:33:24]file doc_00260947 [00:33:24]remove file /storage/0449/doc_00260947 [00:33:24]file doc_00260948 [00:33:24]remove file /storage/0449/doc_00260948 [00:33:24]file doc_00260949 [00:33:24]remove file /storage/0449/doc_00260949 [00:33:24]file doc_00260950 [00:33:24]remove file /storage/0449/doc_00260950 [00:33:24]file doc_00260951 [00:33:24]remove file /storage/0449/doc_00260951 [00:33:24]file doc_00260952 [00:33:24]remove file /storage/0449/doc_00260952 [00:33:24]file doc_00260953 [00:33:24]remove file /storage/0449/doc_00260953 [00:33:24]file doc_00260954 [00:33:24]remove file /storage/0449/doc_00260954 [00:33:24]file doc_00260955 [00:33:24]remove file /storage/0449/doc_00260955 [00:33:24]file doc_00260956 [00:33:24]remove file /storage/0449/doc_00260956 [00:33:24]file doc_00260957 [00:33:24]remove file /storage/0449/doc_00260957 [00:33:24]file doc_00260958 [00:33:24]remove file /storage/0449/doc_00260958 [00:33:24]file doc_00260959 [00:33:24]remove file /storage/0449/doc_00260959 [00:33:24]file doc_00260960 [00:33:24]remove file /storage/0449/doc_00260960 [00:33:24]file doc_00260961 [00:33:24]remove file /storage/0449/doc_00260961 [00:33:24]file doc_00260962 [00:33:24]remove file /storage/0449/doc_00260962 [00:33:24]file doc_00260963 [00:33:24]remove file /storage/0449/doc_00260963 [00:33:24]file doc_00260964 [00:33:24]remove file /storage/0449/doc_00260964 [00:33:24]file doc_00260965 [00:33:24]remove file /storage/0449/doc_00260965 [00:33:24]file doc_00260966 [00:33:24]remove file /storage/0449/doc_00260966 [00:33:24]file doc_00260967 [00:33:24]remove file /storage/0449/doc_00260967 [00:33:24]file doc_00260968 [00:33:24]remove file /storage/0449/doc_00260968 [00:33:24]file doc_00260969 [00:33:24]remove file /storage/0449/doc_00260969 [00:33:24]file doc_00260970 [00:33:24]remove file /storage/0449/doc_00260970 [00:33:24]file doc_00260971 [00:33:24]remove file /storage/0449/doc_00260971 [00:33:24]file doc_00260972 [00:33:24]remove file /storage/0449/doc_00260972 [00:33:24]file doc_00260973 [00:33:24]remove file /storage/0449/doc_00260973 [00:33:24]file doc_00260974 [00:33:24]remove file /storage/0449/doc_00260974 [00:33:24]file doc_00260975 [00:33:24]remove file /storage/0449/doc_00260975 [00:33:24]file doc_00260976 [00:33:24]remove file /storage/0449/doc_00260976 [00:33:24]file doc_00260977 [00:33:24]remove file /storage/0449/doc_00260977 [00:33:24]file doc_00260978 [00:33:24]remove file /storage/0449/doc_00260978 [00:33:24]file doc_00260979 [00:33:24]remove file /storage/0449/doc_00260979 [00:33:24]file doc_00260980 [00:33:24]remove file /storage/0449/doc_00260980 [00:33:24]file doc_00260981 [00:33:24]remove file /storage/0449/doc_00260981 [00:33:24]file doc_00260982 [00:33:24]remove file /storage/0449/doc_00260982 [00:33:24]file doc_00260983 [00:33:24]remove file /storage/0449/doc_00260983 [00:33:24]file doc_00260984 [00:33:24]remove file /storage/0449/doc_00260984 [00:33:24]file doc_00260985 [00:33:24]remove file /storage/0449/doc_00260985 [00:33:24]file doc_00260986 [00:33:24]remove file /storage/0449/doc_00260986 [00:33:24]file doc_00260987 [00:33:24]remove file /storage/0449/doc_00260987 [00:33:24]file doc_00260988 [00:33:24]remove file /storage/0449/doc_00260988 [00:33:24]file doc_00260989 [00:33:24]remove file /storage/0449/doc_00260989 [00:33:24]file doc_00260990 [00:33:24]remove file /storage/0449/doc_00260990 [00:33:24]file doc_00260991 [00:33:24]remove file /storage/0449/doc_00260991 [00:33:24]file doc_00260992 [00:33:24]remove file /storage/0449/doc_00260992 [00:33:24]file doc_00260993 [00:33:24]remove file /storage/0449/doc_00260993 [00:33:24]file doc_00260994 [00:33:24]remove file /storage/0449/doc_00260994 [00:33:24]file doc_00260995 [00:33:24]remove file /storage/0449/doc_00260995 [00:33:24]file doc_00260996 [00:33:24]remove file /storage/0449/doc_00260996 [00:33:24]file doc_00260997 [00:33:24]remove file /storage/0449/doc_00260997 [00:33:24]file doc_00260998 [00:33:24]remove file /storage/0449/doc_00260998 [00:33:24]file doc_00260999 [00:33:24]remove file /storage/0449/doc_00260999 [00:33:24]file doc_00261000 [00:33:24]remove file /storage/0449/doc_00261000 [00:33:24]file doc_00261001 [00:33:24]remove file /storage/0449/doc_00261001 [00:33:24]file doc_00261002 [00:33:24]remove file /storage/0449/doc_00261002 [00:33:24]file doc_00261003 [00:33:24]remove file /storage/0449/doc_00261003 [00:33:24]file doc_00261004 [00:33:24]remove file /storage/0449/doc_00261004 [00:33:24]file doc_00261005 [00:33:24]remove file /storage/0449/doc_00261005 [00:33:24]file doc_00261006 [00:33:24]remove file /storage/0449/doc_00261006 [00:33:24]file doc_00261007 [00:33:24]remove file /storage/0449/doc_00261007 [00:33:24]file doc_00261008 [00:33:24]remove file /storage/0449/doc_00261008 [00:33:24]file doc_00261009 [00:33:24]remove file /storage/0449/doc_00261009 [00:33:24]file doc_00261010 [00:33:24]remove file /storage/0449/doc_00261010 [00:33:24]file doc_00261011 [00:33:24]remove file /storage/0449/doc_00261011 [00:33:24]file doc_00261012 [00:33:24]remove file /storage/0449/doc_00261012 [00:33:24]file doc_00261013 [00:33:24]remove file /storage/0449/doc_00261013 [00:33:24]file doc_00261014 [00:33:24]remove file /storage/0449/doc_00261014 [00:33:24]file doc_00261015 [00:33:24]remove file /storage/0449/doc_00261015 [00:33:24]file doc_00261016 [00:33:24]remove file /storage/0449/doc_00261016 [00:33:24]file doc_00261017 [00:33:24]remove file /storage/0449/doc_00261017 [00:33:24]file doc_00261018 [00:33:24]remove file /storage/0449/doc_00261018 [00:33:24]file doc_00261019 [00:33:24]remove file /storage/0449/doc_00261019 [00:33:24]file doc_00261020 [00:33:24]remove file /storage/0449/doc_00261020 [00:33:24]file doc_00261021 [00:33:24]remove file /storage/0449/doc_00261021 [00:33:24]file doc_00261022 [00:33:24]remove file /storage/0449/doc_00261022 [00:33:24]file doc_00261023 [00:33:24]remove file /storage/0449/doc_00261023 [00:33:24]file doc_00261024 [00:33:24]remove file /storage/0449/doc_00261024 [00:33:24]file doc_00261025 [00:33:24]remove file /storage/0449/doc_00261025 [00:33:24]file doc_00261026 [00:33:24]remove file /storage/0449/doc_00261026 [00:33:24]file doc_00261027 [00:33:24]remove file /storage/0449/doc_00261027 [00:33:24]file doc_00261028 [00:33:24]remove file /storage/0449/doc_00261028 [00:33:24]file doc_00261029 [00:33:24]remove file /storage/0449/doc_00261029 [00:33:24]file doc_00261031 [00:33:24]remove file /storage/0449/doc_00261031 [00:33:24]remove dir /storage/0449 [00:33:24]ProcessDocumentItem done err = 0, tmpTLVsize=249 [00:33:24]tlvbuf is 00AB76C0 [00:33:24]SAM_PROTO_ClearQueue [00:33:24]wFMCommunicate request_size=4 [00:33:24]MH_SAM_APDU [00:33:24]CAPDU: 80 09 00 00 [00:33:24]Write to MH i2c: E2 08 00 77 01 80 09 00 00 00 00 00 00 EA [00:33:24]Write i2c OK [00:33:24]MH_I2C_Read... [00:33:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:33:24]Read from MH i2c: E2 [00:33:24]MH_I2C_Read... [00:33:24]Read from MH i2c: E2 03 00 [00:33:24]MH_I2C_Read... [00:33:24]Read from MH i2c: E2 03 00 77 01 00 90 00 EC [00:33:24]RAPDU: 90 00 [00:33:24]wFMCommunicate OK [00:33:24]SAM_PROTO_ClearQueue done [00:33:24]KKMCreateOFDPacket [00:33:24]OFDProtocolAddRootSTLVToBuf [00:33:24]FM_MakeSignedData [00:33:24]FM_MakeSignedData [00:33:24]SAM_PROTO_SignData [00:33:24]wFMCommunicate request_size=4 [00:33:24]MH_SAM_APDU [00:33:24]CAPDU: 80 0D 01 02 [00:33:24]Write to MH i2c: E2 08 00 78 01 80 0D 01 02 00 00 00 00 F2 [00:33:24]Write i2c OK [00:33:24]MH_I2C_Read... [00:33:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:33:24]Read from MH i2c: E2 [00:33:24]MH_I2C_Read... [00:33:24]Read from MH i2c: E2 03 00 [00:33:24]MH_I2C_Read... [00:33:24]Read from MH i2c: E2 03 00 78 01 00 90 00 ED [00:33:24]RAPDU: 90 00 [00:33:24]wFMCommunicate OK [00:33:24]wFMCommunicate request_size=255 [00:33:24]MH_SAM_APDU [00:33:24]CAPDU: 80 0D 02 02 FA 02 00 F9 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 1C 00 D0 9A D1 83 D0 B4 D0 B0 D0 B9 D0 B1 D0 B5 D1 80 D0 B4 D0 B8 D0 B5 D0 B2 20 D0 A2 2E F1 03 47 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D1 83 D0 BB 2E 20 D0 93 2E 20 D0 90 D0 B9 D1 82 D0 B8 D0 B5 D0 B2 D0 B0 20 31 35 33 20 D0 96 2C 20 34 30 2E 35 32 35 34 37 35 2C 20 37 32 2E 37 36 39 33 35 38 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 34 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 D0 92 C2 66 0E 04 04 00 C2 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A8 FB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 35 04 06 00 A2 75 99 [00:33:24]Write to MH i2c: E2 02 01 79 01 80 0D 02 02 FA 00 02 00 F9 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 1C 00 D0 9A D1 83 D0 B4 D0 B0 D0 B9 D0 B1 D0 B5 D1 80 D0 B4 D0 B8 D0 B5 D0 B2 20 D0 A2 2E F1 03 47 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D1 83 D0 BB 2E 20 D0 93 2E 20 D0 90 D0 B9 D1 82 D0 B8 D0 B5 D0 B2 D0 B0 20 31 35 33 20 D0 96 2C 20 34 30 2E 35 32 35 34 37 35 2C 20 37 32 2E 37 36 39 33 35 38 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 34 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 D0 92 C2 66 0E 04 04 00 C2 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A8 FB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 35 04 06 00 A2 75 99 00 00 EF [00:33:24]Write i2c OK [00:33:24]MH_I2C_Read... [00:33:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:33:25]Read from MH i2c: E2 [00:33:25]MH_I2C_Read... [00:33:25]Read from MH i2c: E2 03 00 [00:33:25]MH_I2C_Read... [00:33:25]Read from MH i2c: E2 03 00 79 01 00 90 00 EE [00:33:25]RAPDU: 90 00 [00:33:25]wFMCommunicate OK [00:33:25]wFMCommunicate request_size=8 [00:33:25]MH_SAM_APDU [00:33:25]CAPDU: 80 0D 02 02 03 F0 B0 D9 [00:33:25]Write to MH i2c: E2 0B 00 7A 01 80 0D 02 02 03 00 F0 B0 D9 00 00 74 [00:33:25]Write i2c OK [00:33:25]MH_I2C_Read... [00:33:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:33:25]Read from MH i2c: E2 [00:33:25]MH_I2C_Read... [00:33:25]Read from MH i2c: E2 03 00 [00:33:25]MH_I2C_Read... [00:33:25]Read from MH i2c: E2 03 00 7A 01 00 90 00 EF [00:33:25]RAPDU: 90 00 [00:33:25]wFMCommunicate OK [00:33:25]wFMCommunicate request_size=4 [00:33:25]MH_SAM_APDU [00:33:25]CAPDU: 80 0D 03 02 [00:33:25]Write to MH i2c: E2 08 00 7B 01 80 0D 03 02 00 00 00 00 F7 [00:33:25]Write i2c OK [00:33:25]MH_I2C_Read... [00:33:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:33:25]Read from MH i2c: E2 [00:33:25]MH_I2C_Read... [00:33:25]Read from MH i2c: E2 0B 00 [00:33:25]MH_I2C_Read... [00:33:25]Read from MH i2c: E2 0B 00 7B 01 00 F0 00 6C 7E 4B 4F 5F 5F 90 00 2A [00:33:25]RAPDU: F0 00 6C 7E 4B 4F 5F 5F 90 00 [00:33:25]wFMCommunicate OK [00:33:25]SAM_PROTO_SignData done [00:33:25]FM_MakeSignedData done [00:33:25]CreateOFDProtocolMessage [00:33:25]wFMCommunicate request_size=4 [00:33:25]MH_SAM_APDU [00:33:25]CAPDU: 80 11 00 00 [00:33:25]Write to MH i2c: E2 08 00 7C 01 80 11 00 00 00 00 00 00 F7 [00:33:25]Write i2c OK [00:33:25]MH_I2C_Read... [00:33:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:33:25]Read from MH i2c: E2 [00:33:25]MH_I2C_Read... [00:33:25]Read from MH i2c: E2 17 00 [00:33:25]MH_I2C_Read... [00:33:25]Read from MH i2c: E2 17 00 7C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 44 [00:33:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [00:33:25]wFMCommunicate OK [00:33:25]CreateOFDProtocolMessage done [00:33:25]OFDSenderStorePacket 261032 [00:33:25]StoreOFDPacket docnum=261032 [00:33:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 01 00 00 CA 6C 05 01 80 6A 5A 02 01 00 02 00 F9 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 1C 00 D0 9A D1 83 D0 B4 D0 B0 D0 B9 D0 B1 D0 B5 D1 80 D0 B4 D0 B8 D0 B5 D0 B2 20 D0 A2 2E F1 03 47 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D1 83 D0 BB 2E 20 D0 93 2E 20 D0 90 D0 B9 D1 82 D0 B8 D0 B5 D0 B2 D0 B0 20 31 35 33 20 D0 96 2C 20 34 30 2E 35 32 35 34 37 35 2C 20 37 32 2E 37 36 39 33 35 38 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 34 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 D0 92 C2 66 0E 04 04 00 C2 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A8 FB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 35 04 06 00 A2 75 99 F0 B0 D9 F0 00 6C 7E 4B 4F 5F 5F [00:33:25]CheckFolder [00:33:25]dirname=/storage/ofd_packets [00:33:25]CheckFolder done [00:33:25]ProducePacketName [00:33:25]name=ofd_packets/00261032 [00:33:25]NVStorageSaveData ofd_packets/00261032 [00:33:25]File name is /storage/ofd_packets/00261032 [00:33:25]Write 299 bytes [00:33:25]NVStorageSaveData done [00:33:25]OFDSenderStorePacket done [00:33:25]KKMCreateOFDPacket done [00:33:25]NVStorageSaveData kkm_last_timestamp [00:33:25]File name is /storage/kkm_last_timestamp [00:33:25]Write 4 bytes [00:33:25]NVStorageSaveData done [00:33:25]ExternCall_PrintAddStr [00:33:25]wPrintStart [00:33:25]Write to MH i2c: 01 00 00 7D 01 7E [00:33:25]Write i2c OK [00:33:25]MH_I2C_Read... [00:33:25]Read from MH i2c: 01 [00:33:25]MH_I2C_Read... [00:33:25]Read from MH i2c: 01 07 00 [00:33:25]MH_I2C_Read... [00:33:25]Read from MH i2c: 01 07 00 7D 01 00 00 00 00 00 FF 0F 93 [00:33:25]RasterBufferAndPrint [00:33:25]line Отчет об открытии смены [00:33:25]line ФФД: 1.0 [00:33:25]line ИНН: 02508201610067 [00:33:25]line Кассир: Кудайбердиев Т. [00:33:25]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [00:33:25]line Место: АЗС № 94 "Партнер Нефть" [00:33:25]line 19.08.2024 00:33 [00:33:25]line Смена: 450 [00:33:25]line РНМ: 0000000000091865 [00:33:25]line ЗНМ: 0300000099 [00:33:25]line ФД: 261032 [00:33:25]line ФМ: 0000000000871820 [00:33:25]line ФПД: 178625977561305 [00:33:25]written 0, free lines is 4095 [00:33:25]OFD Sender: Processing packet 261032 [packets to send 192, broken 191] [00:33:25]ProducePacketName [00:33:25]name=ofd_packets/00261032 [00:33:25]OFD Sender: To server: pG, [00:33:25]CommunicateWithHost lk.salyk.kg:30040 [00:33:25]ConnectInit lk.salyk.kg [00:33:25]Write to MH i2c: 01 00 00 8F 01 90 [00:33:25]Write i2c OK [00:33:25]MH_I2C_Read... [00:33:25]Read from MH i2c: 01 [00:33:25]MH_I2C_Read... [00:33:25]Read from MH i2c: 01 07 00 [00:33:25]MH_I2C_Read... [00:33:25]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 55 0E FA [00:33:25]RasterBufferAndPrint [00:33:25]line [00:33:25]line [00:33:25]line [00:33:25]line [00:33:25]line [00:33:25]written 0, free lines is 3678 [00:33:25]MH_Cut [00:33:25]Write to MH i2c: D1 01 00 96 01 01 69 [00:33:25]Write i2c OK [00:33:25]MH_I2C_Read... [00:33:25]Read from MH i2c: D1 [00:33:25]MH_I2C_Read... [00:33:25]Read from MH i2c: D1 01 00 [00:33:25]MH_I2C_Read... [00:33:25]Read from MH i2c: D1 01 00 96 01 00 68 [00:33:25]Write to MH i2c: 01 00 00 97 01 98 [00:33:25]Write i2c OK [00:33:25]MH_I2C_Read... [00:33:25]Connected sock=10 [00:33: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 30 0D 01 00 00 CA 6C 05 01 80 6A 5A 02 01 00 02 00 F9 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 1C 00 D0 9A D1 83 D0 B4 D0 B0 D0 B9 D0 B1 D0 B5 D1 80 D0 B4 D0 B8 D0 B5 D0 B2 20 D0 A2 2E F1 03 47 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D1 83 D0 BB 2E 20 D0 93 2E 20 D0 90 D0 B9 D1 82 D0 B8 D0 B5 D0 B2 D0 B0 20 31 35 33 20 D0 96 2C 20 34 30 2E 35 32 35 34 37 35 2C 20 37 32 2E 37 36 39 33 35 38 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 34 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 D0 92 C2 66 0E 04 04 00 C2 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A8 FB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 35 04 06 00 A2 75 99 F0 B0 D9 F0 00 6C 7E 4B 4F 5F 5F [00:33: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 30 4F 00 00 00 F5 73 47 00 07 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A8 FB 03 00 F4 03 04 00 27 3C C2 66 B6 04 01 00 00 48 A2 FF C5 FC C3 4F D3 [00:33:25]CommunicateWithHost err = 0 [00:33:25]CheckOFDResponse [00:33:25]1017 (14) - 77093643461234 [00:33:25]1041 (16) - 0000000000871820 [00:33:25]1040 (4) - 261032 [00:33:25]1012 (4) - 18.08.2024 18:23 [00:33:25]1206 (1) - 0 [00:33:25]OFD Sender: Remove packet 261032 [00:33:25]ProducePacketName [00:33:25]name=ofd_packets/00261032 [00:33:25]NVStorageDeleteData [00:33:26]*** Cut start [00:33:26]*** Purtial cut [00:33:26]*** Stage 1: CUTSNS_PIN = 1 [00:33:26]OFD Sender: No OFD packet to send [00:33:28]Read from MH i2c: 01 [00:33:28]MH_I2C_Read... [00:33:28]*** Stop cut motor [00:33:28]*** Cut end [00:33:28]Read from MH i2c: 01 07 00 [00:33:28]MH_I2C_Read... [00:33:28]Read from MH i2c: 01 07 00 97 01 00 00 00 00 00 FF 0F AD [00:33:28]process_action open_shift done [00:33:28]requested_data is exist [00:33:28]produce_requested_data [00:33:28]requested_item fd.num is exist - process it [00:33:28]SAM_PROTO_GetFieldsCounters [00:33:28]wFMCommunicate request_size=4 [00:33:28]MH_SAM_APDU [00:33:28]CAPDU: 80 13 00 00 [00:33:28]Write to MH i2c: E2 08 00 98 01 80 13 00 00 00 00 00 00 15 [00:33:28]Write i2c OK [00:33:28]MH_I2C_Read... [00:33:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:33:28]Read from MH i2c: E2 [00:33:28]MH_I2C_Read... [00:33:28]Read from MH i2c: E2 62 00 [00:33:28]MH_I2C_Read... [00:33:28]Read from MH i2c: E2 62 00 98 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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A8 FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [00:33: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A8 FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:33:28]wFMCommunicate OK [00:33:28]SAM_PROTO_GetFieldsCounters done [00:33:28]requested_item shift.num is exist - process it [00:33:28]requested_item shift.opened is exist - process it [00:33:28]req_shift_opened [00:33:28]FM_GetShiftState [00:33:28]SAM_PROTO_GetShiftState [00:33:28]wFMCommunicate request_size=4 [00:33:28]MH_SAM_APDU [00:33:28]CAPDU: 80 13 01 00 [00:33:28]Write to MH i2c: E2 08 00 99 01 80 13 01 00 00 00 00 00 17 [00:33:28]Write i2c OK [00:33:28]MH_I2C_Read... [00:33:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:28]Read from MH i2c: E2 [00:33:28]MH_I2C_Read... [00:33:28]Read from MH i2c: E2 0E 00 [00:33:28]MH_I2C_Read... [00:33:28]Read from MH i2c: E2 0E 00 99 01 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 AD [00:33:28]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [00:33:28]wFMCommunicate OK [00:33:28]SAM_PROTO_GetShiftState done [00:33:28]FM_GetShiftState done [00:33:28]req_shift_opened done [00:33:28]requested_item shift.open_date is exist - process it [00:33:28]req_shift_open_date [00:33:28]req_shift_open_date done [00:33:28]produce_requested_data done [00:33:28]produce_requested_data return {"fd.num":261032,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600} [00:33:28]process_action_free open_shift [00:33:28]json_value_free [00:33:28]json_value_free done [00:33:28]process_json_proto returns [00:33:28]Send response to host [00:33:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":261032,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600}}} [00:33:28]free response buf [00:33:28]execute_script done [00:33:28]execute_script returns [00:33:28]free content buf [00:33:28]Sock 9.Close socket [00:33:28]Sock 9.Thread stoped [00:33:28]accept exits with 7 [00:33:28]New connection [00:33:28]New thread 3067247972 created [00:33:28]Thread 3067104612 joined [00:33:28]Waiting for new connection... [00:33:28] Sock 7.Parse request [00:33:28]Sock 7.Check first char [00:33:28]Sock 7.First char is OK [00:33:28]request: POST /json_proto HTTP/1.0 [00:33:28]Method: POST [00:33:28]URL: /json_proto [00:33:28]Method is POST - this is cgi request [00:33:28]url: /json_proto [00:33:28]query_string will be loaded in cgi processing [00:33:28]execute_cgi json_proto POST (null) [00:33:28]execute_cgi path=json_proto method=POST [00:33:28]POST find Content-Length [00:33:28]Host: 172.17.55.133:8080 [00:33:28]Content-Length: 331 [00:33:28]Content-Type: application/json [00:33:28] [00:33:28]POST finish read [00:33:28]Found Content-Length = 331 [00:33: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:33:28]execute_script... [00:33:28]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:28]POST & json_proto [00:33:28]process_json_proto [00:33:28]json parsed OK: [00:33:28]protocol is kg_v1.0 [00:33:28]action value=get_value [00:33:28]process_action get_value [00:33:28]cmd_get_value [00:33:28]process_action get_value done [00:33:28]requested_data is exist [00:33:28]produce_requested_data [00:33:28]requested_item fm.sale.total is exist - process it [00:33:28]SAM_PROTO_GetFMData [00:33:28]wFMCommunicate request_size=4 [00:33:28]MH_SAM_APDU [00:33:28]CAPDU: 80 13 03 00 [00:33:28]Write to MH i2c: E2 08 00 9A 01 80 13 03 00 00 00 00 00 1A [00:33:28]Write i2c OK [00:33:28]MH_I2C_Read... [00:33:28]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:33:29]Read from MH i2c: E2 [00:33:29]MH_I2C_Read... [00:33:29]Read from MH i2c: E2 FD 00 [00:33:29]MH_I2C_Read... [00:33:29]Read from MH i2c: E2 FD 00 9A 01 00 C4 04 85 04 C0 04 6E 04 04 00 24 F8 03 00 69 04 A3 00 6F 04 04 00 BA F5 03 00 B1 04 05 00 45 65 C1 AC 04 70 04 05 00 18 67 A7 BC 03 72 04 04 00 2D FE 19 F0 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 99 CA 21 7F 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 25 EA 97 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 6A 02 00 00 B1 04 04 00 44 AB D8 05 70 04 04 00 44 AB D8 05 72 04 00 00 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 91 F7 9E EF 03 09 00 90 00 1A [00:33:29]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 24 F8 03 00 69 04 A3 00 6F 04 04 00 BA F5 03 00 B1 04 05 00 45 65 C1 AC 04 70 04 05 00 18 67 A7 BC 03 72 04 04 00 2D FE 19 F0 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 99 CA 21 7F 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 25 EA 97 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 6A 02 00 00 B1 04 04 00 44 AB D8 05 70 04 04 00 44 AB D8 05 72 04 00 00 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 91 F7 9E EF 03 09 00 90 00 [00:33:29]wFMCommunicate OK [00:33:29]wFMCommunicate request_size=4 [00:33:29]MH_SAM_APDU [00:33:29]CAPDU: 80 17 00 00 [00:33:29]Write to MH i2c: E2 08 00 9B 01 80 17 00 00 00 00 00 00 1C [00:33:29]Write i2c OK [00:33:29]MH_I2C_Read... [00:33:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:29]Read from MH i2c: E2 [00:33:29]MH_I2C_Read... [00:33:29]Read from MH i2c: E2 FD 00 [00:33:29]MH_I2C_Read... [00:33:29]Read from MH i2c: E2 FD 00 9B 01 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0E 3F 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2C [00:33:29]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0E 3F 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:33:29]wFMCommunicate OK [00:33:29]wFMCommunicate request_size=4 [00:33:29]MH_SAM_APDU [00:33:29]CAPDU: 80 17 00 00 [00:33:29]Write to MH i2c: E2 08 00 9C 01 80 17 00 00 00 00 00 00 1D [00:33:29]Write i2c OK [00:33:29]MH_I2C_Read... [00:33:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:29]Read from MH i2c: E2 [00:33:29]MH_I2C_Read... [00:33:29]Read from MH i2c: E2 FD 00 [00:33:29]MH_I2C_Read... [00:33:29]Read from MH i2c: E2 FD 00 9C 01 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 32 [00:33:29]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:33:29]wFMCommunicate OK [00:33:29]wFMCommunicate request_size=4 [00:33:29]MH_SAM_APDU [00:33:29]CAPDU: 80 17 00 00 [00:33:29]Write to MH i2c: E2 08 00 9D 01 80 17 00 00 00 00 00 00 1E [00:33:29]Write i2c OK [00:33:29]MH_I2C_Read... [00:33:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:30]Read from MH i2c: E2 [00:33:30]MH_I2C_Read... [00:33:30]Read from MH i2c: E2 FD 00 [00:33:30]MH_I2C_Read... [00:33:30]Read from MH i2c: E2 FD 00 9D 01 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 96 [00:33:30]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:33:30]wFMCommunicate OK [00:33:30]wFMCommunicate request_size=4 [00:33:30]MH_SAM_APDU [00:33:30]CAPDU: 80 17 00 00 [00:33:30]Write to MH i2c: E2 08 00 9E 01 80 17 00 00 00 00 00 00 1F [00:33:30]Write i2c OK [00:33:30]MH_I2C_Read... [00:33:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:33:30]Read from MH i2c: E2 [00:33:30]MH_I2C_Read... [00:33:30]Read from MH i2c: E2 E1 00 [00:33:30]MH_I2C_Read... [00:33:30]Read from MH i2c: E2 E1 00 9E 01 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0D [00:33:30]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:30]wFMCommunicate OK [00:33:30]SAM_PROTO_GetFMData done [00:33:30]requested_item fm.sale_refund.total is exist - process it [00:33:30]requested_item fm.buy.total is exist - process it [00:33:30]requested_item shift.sale.total is exist - process it [00:33:30]SAM_PROTO_GetShiftData [00:33:30]wFMCommunicate request_size=4 [00:33:30]MH_SAM_APDU [00:33:30]CAPDU: 80 13 02 00 [00:33:30]Write to MH i2c: E2 08 00 9F 01 80 13 02 00 00 00 00 00 1E [00:33:30]Write i2c OK [00:33:30]MH_I2C_Read... [00:33:30]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:33:30]Read from MH i2c: E2 [00:33:31]MH_I2C_Read... [00:33:31]Read from MH i2c: E2 FD 00 [00:33:31]MH_I2C_Read... [00:33:31]Read from MH i2c: E2 FD 00 9F 01 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 91 [00:33:31]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:31]wFMCommunicate OK [00:33:31]wFMCommunicate request_size=4 [00:33:31]MH_SAM_APDU [00:33:31]CAPDU: 80 17 00 00 [00:33:31]Write to MH i2c: E2 08 00 A0 01 80 17 00 00 00 00 00 00 21 [00:33:31]Write i2c OK [00:33:31]MH_I2C_Read... [00:33:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:31]Read from MH i2c: E2 [00:33:31]MH_I2C_Read... [00:33:31]Read from MH i2c: E2 FD 00 [00:33:31]MH_I2C_Read... [00:33:31]Read from MH i2c: E2 FD 00 A0 01 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 29 [00:33:31]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:31]wFMCommunicate OK [00:33:31]wFMCommunicate request_size=4 [00:33:31]MH_SAM_APDU [00:33:31]CAPDU: 80 17 00 00 [00:33:31]Write to MH i2c: E2 08 OFD Sender: No OFD packet to send [00:33:31]00 A1 01 80 17 00 00 00 00 00 00 22 [00:33:31]Write i2c OK [00:33:31]MH_I2C_Read... [00:33:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:31]Read from MH i2c: E2 [00:33:31]MH_I2C_Read... [00:33:31]Read from MH i2c: E2 FD 00 [00:33:31]MH_I2C_Read... [00:33:31]Read from MH i2c: E2 FD 00 A1 01 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 F4 [00:33:31]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:33:32]wFMCommunicate OK [00:33:32]wFMCommunicate request_size=4 [00:33:32]MH_SAM_APDU [00:33:32]CAPDU: 80 17 00 00 [00:33:32]Write to MH i2c: E2 08 00 A2 01 80 17 00 00 00 00 00 00 23 [00:33:32]Write i2c OK [00:33:32]MH_I2C_Read... [00:33:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:32]Read from MH i2c: E2 [00:33:32]MH_I2C_Read... [00:33:32]Read from MH i2c: E2 FD 00 [00:33:32]MH_I2C_Read... [00:33:32]Read from MH i2c: E2 FD 00 A2 01 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 95 [00:33:32]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:33:32]wFMCommunicate OK [00:33:32]wFMCommunicate request_size=4 [00:33:32]MH_SAM_APDU [00:33:32]CAPDU: 80 17 00 00 [00:33:32]Write to MH i2c: E2 08 00 A3 01 80 17 00 00 00 00 00 00 24 [00:33:32]Write i2c OK [00:33:32]MH_I2C_Read... [00:33:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:33:32]Read from MH i2c: E2 [00:33:32]MH_I2C_Read... [00:33:32]Read from MH i2c: E2 BD 00 [00:33:32]MH_I2C_Read... [00:33:32]Read from MH i2c: E2 BD 00 A3 01 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 0A [00:33:32]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:33:32]wFMCommunicate OK [00:33:32]SAM_PROTO_GetShiftData done [00:33:32]requested_item shift.sale.total_cash is exist - process it [00:33:32]requested_item shift.sale_refund.total is exist - process it [00:33:32]requested_item shift.sale_refund.total_cash is exist - process it [00:33:32]requested_item shift.buy.total is exist - process it [00:33:32]requested_item shift.buy.total_cash is exist - process it [00:33:32]produce_requested_data done [00:33:32]produce_requested_data return {"fm.sale.total":200782247.09,"fm.sale_refund.total":980857.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:33:32]process_action_free get_value [00:33:32]json_value_free [00:33:32]json_value_free done [00:33:32]process_json_proto returns [00:33:32]Send response to host [00:33:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":200782247.09,"fm.sale_refund.total":980857.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:33:32]free response buf [00:33:32]execute_script done [00:33:32]execute_script returns [00:33:32]free content buf [00:33:32]Sock 7.Close socket [00:33:32]Sock 7.Thread stoped [00:33:36]OFD Sender: No OFD packet to send [00:33:41]OFD Sender: No OFD packet to send [00:33:46]OFD Sender: No OFD packet to send [00:33:51]OFD Sender: No OFD packet to send [00:33:56]OFD Sender: No OFD packet to send [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:48]accept exits with 9 [00:34:48]New connection [00:34:48]New thread 3067104612 created [00:34:48]Thread 3067247972 joined [00:34:48]Waiting for new connection... [00:34:48] Sock 9.Parse request [00:34:48]Sock 9.Check first char [00:34:48]Sock 9.First char is OK [00:34:48]request: POST /json_proto HTTP/1.0 [00:34:48]Method: POST [00:34:48]URL: /json_proto [00:34:48]Method is POST - this is cgi request [00:34:48]url: /json_proto [00:34:48]query_string will be loaded in cgi processing [00:34:48]execute_cgi json_proto POST (null) [00:34:48]execute_cgi path=json_proto method=POST [00:34:48]POST find Content-Length [00:34:48]Host: 172.17.55.133:8080 [00:34:48]Content-Length: 683 [00:34:48]Content-Type: application/json [00:34:48] [00:34:48]POST finish read [00:34:48]Found Content-Length = 683 [00:34:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036586", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:34:48]execute_script... [00:34: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)1036586", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:34:48]POST & json_proto [00:34:48]process_json_proto [00:34:48]json parsed OK: [00:34:48]protocol is kg_v1.0 [00:34:48]action value=close_receipt [00:34:48]process_action close_receipt [00:34:48]cmd_close_receipt [00:34:48]MH_GetDate [00:34:48]Write to MH i2c: F0 00 00 A4 01 94 [00:34:48]Write i2c OK [00:34:48]MH_I2C_Read... [00:34:48]Read from MH i2c: F0 [00:34:48]MH_I2C_Read... [00:34:48]Read from MH i2c: F0 09 00 [00:34:48]MH_I2C_Read... [00:34:48]Read from MH i2c: F0 09 00 A4 01 00 28 93 C2 66 34 48 D8 65 39 [00:34:48]GetLastDocTimeStamp 1724027600 [00:34:48]current date 1724027688 [00:34:48]FM_GetShiftState [00:34:48]SAM_PROTO_GetShiftState [00:34:48]wFMCommunicate request_size=4 [00:34:48]MH_SAM_APDU [00:34:48]CAPDU: 80 13 01 00 [00:34:48]Write to MH i2c: E2 08 00 A5 01 80 13 01 00 00 00 00 00 23 [00:34:48]Write i2c OK [00:34:48]MH_I2C_Read... [00:34:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:34:48]Read from MH i2c: E2 [00:34:48]MH_I2C_Read... [00:34:48]Read from MH i2c: E2 0E 00 [00:34:48]MH_I2C_Read... [00:34:48]Read from MH i2c: E2 0E 00 A5 01 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 B9 [00:34:48]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [00:34:48]wFMCommunicate OK [00:34:48]SAM_PROTO_GetShiftState done [00:34:48]FM_GetShiftState done [00:34:48]opened in 1724027600 [00:34:48]opened+sec_in_day 1724114000 [00:34:48]quantity*price = 100021 [00:34:48]sum+1 = 100023 [00:34:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 1 19.08.2024 00:34 Смена: 450 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261033 ФПД: 74440182914598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T003448&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261033&fm=74440182914598&tin=02508201610067®Number=0000000000091865&sum=100000 [00:34:49]StoreToDocumentArchive [00:34:49]shift 450 fd 261033 [00:34:49]save to /storage/0450/doc_00261033 [00:34:49]save last doc name /storage/0450/doc_00261033 to /storage/kkm_last_doc_name [00:34:49]save OK [00:34:49]Clear old archive folders... [00:34:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:34:49]tlvbuf is 00A18510 [00:34:49]SAM_PROTO_ClearQueue [00:34:49]wFMCommunicate request_size=4 [00:34:49]MH_SAM_APDU [00:34:49]CAPDU: 80 09 00 00 [00:34:49]Write to MH i2c: E2 08 00 B2 01 80 09 00 00 00 00 00 00 25 [00:34:49]Write i2c OK [00:34:49]MH_I2C_Read... [00:34:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:34:49]Read from MH i2c: E2 [00:34:49]MH_I2C_Read... [00:34:49]Read from MH i2c: E2 03 00 [00:34:49]MH_I2C_Read... [00:34:49]Read from MH i2c: E2 03 00 B2 01 00 90 00 27 [00:34:49]RAPDU: 90 00 [00:34:49]wFMCommunicate OK [00:34:49]SAM_PROTO_ClearQueue done [00:34:49]KKMCreateOFDPacket [00:34:49]OFDProtocolAddRootSTLVToBuf [00:34:49]FM_MakeSignedData [00:34:49]FM_MakeSignedData [00:34:49]SAM_PROTO_SignData [00:34:49]wFMCommunicate request_size=4 [00:34:49]MH_SAM_APDU [00:34:49]CAPDU: 80 0D 01 02 [00:34:49]Write to MH i2c: E2 08 00 B3 01 80 0D 01 02 00 00 00 00 2D [00:34:49]Write i2c OK [00:34:49]MH_I2C_Read... [00:34:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:34:49]Read from MH i2c: E2 [00:34:49]MH_I2C_Read... [00:34:49]Read from MH i2c: E2 03 00 [00:34:49]MH_I2C_Read... [00:34:49]Read from MH i2c: E2 03 00 B3 01 00 90 00 28 [00:34:49]RAPDU: 90 00 [00:34:49]wFMCommunicate OK [00:34:49]wFMCommunicate request_size=255 [00:34:49]MH_SAM_APDU [00:34:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 28 93 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A9 FB 03 00 35 04 06 00 43 [00:34:49]Write to MH i2c: E2 02 01 B4 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 28 93 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A9 FB 03 00 35 04 06 00 43 00 00 68 [00:34:49]Write i2c OK [00:34:49]MH_I2C_Read... [00:34:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:34:49]Read from MH i2c: E2 [00:34:49]MH_I2C_Read... [00:34:49]Read from MH i2c: E2 03 00 [00:34:49]MH_I2C_Read... [00:34:49]Read from MH i2c: E2 03 00 B4 01 00 90 00 29 [00:34:49]RAPDU: 90 00 [00:34:49]wFMCommunicate OK [00:34:49]wFMCommunicate request_size=10 [00:34:49]MH_SAM_APDU [00:34:49]CAPDU: 80 0D 02 02 05 B3 F4 A8 DE 26 [00:34:49]Write to MH i2c: E2 0D 00 B5 01 80 0D 02 02 05 00 B3 F4 A8 DE 26 00 00 8D [00:34:49]Write i2c OK [00:34:49]MH_I2C_Read... [00:34:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:34:49]Read from MH i2c: E2 [00:34:49]MH_I2C_Read... [00:34:49]Read from MH i2c: E2 03 00 [00:34:49]MH_I2C_Read... [00:34:49]Read from MH i2c: E2 03 00 B5 01 00 90 00 2A [00:34:49]RAPDU: 90 00 [00:34:49]wFMCommunicate OK [00:34:49]wFMCommunicate request_size=4 [00:34:49]MH_SAM_APDU [00:34:49]CAPDU: 80 0D 03 02 [00:34:49]Write to MH i2c: E2 08 00 B6 01 80 0D 03 02 00 00 00 00 32 [00:34:49]Write i2c OK [00:34:49]MH_I2C_Read... [00:34:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:34:49]Read from MH i2c: E2 [00:34:49]MH_I2C_Read... [00:34:49]Read from MH i2c: E2 0B 00 [00:34:49]MH_I2C_Read... [00:34:49]Read from MH i2c: E2 0B 00 B6 01 00 F9 3D E8 DA 5E 70 97 7E 90 00 0E [00:34:49]RAPDU: F9 3D E8 DA 5E 70 97 7E 90 00 [00:34:49]wFMCommunicate OK [00:34:49]SAM_PROTO_SignData done [00:34:49]FM_MakeSignedData done [00:34:49]CreateOFDProtocolMessage [00:34:49]wFMCommunicate request_size=4 [00:34:49]MH_SAM_APDU [00:34:49]CAPDU: 80 11 00 00 [00:34:49]Write to MH i2c: E2 08 00 B7 01 80 11 00 00 00 00 00 00 32 [00:34:49]Write i2c OK [00:34:49]MH_I2C_Read... [00:34:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:34:49]Read from MH i2c: E2 [00:34:49]MH_I2C_Read... [00:34:49]Read from MH i2c: E2 17 00 [00:34:49]MH_I2C_Read... [00:34:49]Read from MH i2c: E2 17 00 B7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 7F [00:34:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [00:34:49]wFMCommunicate OK [00:34:49]CreateOFDProtocolMessage done [00:34:49]OFDSenderStorePacket 261033 [00:34:49]StoreOFDPacket docnum=261033 [00:34:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 FC 9D 07 01 AE 45 5A 03 01 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 28 93 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A9 FB 03 00 35 04 06 00 43 B3 F4 A8 DE 26 F9 3D E8 DA 5E 70 97 7E [00:34:49]CheckFolder [00:34:49]dirname=/storage/ofd_packets [00:34:49]CheckFolder done [00:34:49]ProducePacketName [00:34:49]name=ofd_packets/00261033 [00:34:49]NVStorageSaveData ofd_packets/00261033 [00:34:49]File name is /storage/ofd_packets/00261033 [00:34:49]Write 301 bytes [00:34:49]NVStorageSaveData done [00:34:49]OFDSenderStorePacket done [00:34:49]KKMCreateOFDPacket done [00:34:49]NVStorageSaveData kkm_last_timestamp [00:34:49]File name is /storage/kkm_last_timestamp [00:34:49]Write 4 bytes [00:34:49]NVStorageSaveData done [00:34:49]ExternCall_PrintAddStr [00:34:49]wPrintStart [00:34:49]Write to MH i2c: 01 00 00 B8 01 B9 [00:34:49]Write i2c OK [00:34:49]MH_I2C_Read... [00:34:49]Read from MH i2c: 01 [00:34:49]MH_I2C_Read... [00:34:49]Read from MH i2c: 01 07 00 [00:34:49]MH_I2C_Read... [00:34:49]Read from MH i2c: 01 07 00 B8 01 00 00 00 00 00 FF 0F CE [00:34:49]RasterBufferAndPrint [00:34:49]line Счет N : (1)1036586 [00:34:49]line ИНН: 02508201610067 [00:34:49]line Контрольно-Кассовый Чек [00:34:49]line ПРОДАЖА [00:34:49]line ТРК (МРК, ГНК) : 13 [00:34:49]line Товар: 2710124500 [00:34:49]line Аи-95-К-5 [00:34:49]line 13.480 * 74.20 [00:34:49]line = 1000.22 [00:34:49]line НДС 12% НСП 1% [00:34:49]line > о реализуемом товаре [00:34:49]line ОКРУГЛЕНИЕ: -0.22 [00:34:49]line ИТОГО: 1000.00 [00:34:49]line Внесено: 1000.00 [00:34:49]line СДАЧА: 0.00 [00:34:49]line НСП 1% : 8.85 [00:34:49]line НДС 12% : 106.22 [00:34:49]line Наличными: 1000.00 [00:34:49]line Безнал.: 0.00 [00:34:49]line Место: АЗС № 94 "Партнер Нефть" [00:34:49]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [00:34:49]line СНО: Общий режим [00:34:49]line Чек 1 19.08.2024 00:34 [00:34:49]line Смена: 450 ФФД: 1.0 [00:34:49]line ЗНМ: 0300000099 [00:34:49]line РНМ: 0000000000091865 [00:34:49]line Версия ККМ: 001 [00:34:49]line ФМ: 0000000000871820 [00:34:49]line ФД: 261033 [00:34:49]line ФПД: 74440182914598 [00:34:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T003448&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261033&fm=74440182914598&tin=02508201610067®Number=0000000000091865&sum=100000 [00:34:50]OFD Sender: Processing packet 261033 [packets to send 192, broken 191] [00:34:50]ProducePacketName [00:34:50]name=ofd_packets/00261033 [00:34:50]OFD Sender: To server: pG, [00:34:50]CommunicateWithHost lk.salyk.kg:30040 [00:34:50]ConnectInit lk.salyk.kg [00:34:50]written 0, free lines is 4095 [00:34:50]Connected sock=10 [00:34: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 30 0F 01 00 00 FC 9D 07 01 AE 45 5A 03 01 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 28 93 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 A9 FB 03 00 35 04 06 00 43 B3 F4 A8 DE 26 F9 3D E8 DA 5E 70 97 7E [00:34: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 30 4F 00 00 00 69 8C 47 00 58 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 30 10 04 04 00 A9 FB 03 00 F4 03 04 00 7B 3C C2 66 B6 04 01 00 00 DA 39 BA B7 58 50 BD E1 [00:34:50]CommunicateWithHost err = 0 [00:34:50]CheckOFDResponse [00:34:50]1017 (14) - 77093643461234 [00:34:50]1041 (16) - 0000000000871820 [00:34:50]1040 (4) - 261033 [00:34:50]1012 (4) - 18.08.2024 18:24 [00:34:50]1206 (1) - 0 [00:34:50]OFD Sender: Remove packet 261033 [00:34:50]ProducePacketName [00:34:50]name=ofd_packets/00261033 [00:34:50]NVStorageDeleteData [00:34:50]Write to MH i2c: 01 00 00 E3 01 E4 [00:34:50]Write i2c OK [00:34:50]MH_I2C_Read... [00:34:50]Read from MH i2c: 01 [00:34:50]MH_I2C_Read... [00:34:50]Read from MH i2c: 01 07 00 [00:34:50]MH_I2C_Read... [00:34:50]Read from MH i2c: 01 07 00 E3 01 00 00 00 00 00 5A 0C 51 [00:34:50]RasterBufferAndPrint [00:34:50]line [00:34:50]line [00:34:50]line [00:34:50]line [00:34:50]line [00:34:50]written 0, free lines is 3166 [00:34:50]MH_Cut [00:34:50]Write to MH i2c: D1 01 00 EA 01 01 BD [00:34:50]Write i2c OK [00:34:50]MH_I2C_Read... [00:34:50]Read from MH i2c: D1 [00:34:50]MH_I2C_Read... [00:34:50]Read from MH i2c: D1 01 00 [00:34:50]MH_I2C_Read... [00:34:50]Read from MH i2c: D1 01 00 EA 01 00 BC [00:34:50]Write to MH i2c: 01 00 00 EB 01 EC [00:34:50]Write i2c OK [00:34:50]MH_I2C_Read... [00:34:50]OFD Sender: No OFD packet to send [00:34:51]*** Cut start [00:34:51]*** Purtial cut [00:34:51]*** Stage 1: CUTSNS_PIN = 1 [00:34:53]Read from MH i2c: 01 [00:34:53]MH_I2C_Read... [00:34:53]*** Stop cut motor [00:34:53]*** Cut end [00:34:53]Read from MH i2c: 01 07 00 [00:34:53]MH_I2C_Read... [00:34:53]Read from MH i2c: 01 07 00 EB 01 00 00 00 00 00 FF 0F 01 [00:34:53]process_action close_receipt done [00:34:53]requested_data is exist [00:34:53]produce_requested_data [00:34:53]requested_item fm.sn is exist - process it [00:34:53]wFMCommunicate request_size=4 [00:34:53]MH_SAM_APDU [00:34:53]CAPDU: 80 11 00 00 [00:34:53]Write to MH i2c: E2 08 00 EC 01 80 11 00 00 00 00 00 00 67 [00:34:53]Write i2c OK [00:34:53]MH_I2C_Read... [00:34:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:34:53]Read from MH i2c: E2 [00:34:53]MH_I2C_Read... [00:34:53]Read from MH i2c: E2 17 00 [00:34:53]MH_I2C_Read... [00:34:53]Read from MH i2c: E2 17 00 EC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B4 [00:34:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [00:34:53]wFMCommunicate OK [00:34:53]requested_item fd.num is exist - process it [00:34:53]SAM_PROTO_GetFieldsCounters [00:34:53]wFMCommunicate request_size=4 [00:34:53]MH_SAM_APDU [00:34:53]CAPDU: 80 13 00 00 [00:34:53]Write to MH i2c: E2 08 00 ED 01 80 13 00 00 00 00 00 00 6A [00:34:53]Write i2c OK [00:34:53]MH_I2C_Read... [00:34:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:34:54]Read from MH i2c: E2 [00:34:54]MH_I2C_Read... [00:34:54]Read from MH i2c: E2 62 00 [00:34:54]MH_I2C_Read... [00:34:54]Read from MH i2c: E2 62 00 ED 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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A9 FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [00:34: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 A9 FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:34:54]wFMCommunicate OK [00:34:54]SAM_PROTO_GetFieldsCounters done [00:34:54]requested_item shift.num is exist - process it [00:34:54]requested_item shift.opened is exist - process it [00:34:54]req_shift_opened [00:34:54]FM_GetShiftState [00:34:54]SAM_PROTO_GetShiftState [00:34:54]wFMCommunicate request_size=4 [00:34:54]MH_SAM_APDU [00:34:54]CAPDU: 80 13 01 00 [00:34:54]Write to MH i2c: E2 08 00 EE 01 80 13 01 00 00 00 00 00 6C [00:34:54]Write i2c OK [00:34:54]MH_I2C_Read... [00:34:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:34:54]Read from MH i2c: E2 [00:34:54]MH_I2C_Read... [00:34:54]Read from MH i2c: E2 0E 00 [00:34:54]MH_I2C_Read... [00:34:54]Read from MH i2c: E2 0E 00 EE 01 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 02 [00:34:54]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [00:34:54]wFMCommunicate OK [00:34:54]SAM_PROTO_GetShiftState done [00:34:54]FM_GetShiftState done [00:34:54]req_shift_opened done [00:34:54]requested_item shift.open_date is exist - process it [00:34:54]req_shift_open_date [00:34:54]req_shift_open_date done [00:34:54]produce_requested_data done [00:34:54]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261033,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600} [00:34:54]process_action_free close_receipt [00:34:54]json_value_free [00:34:54]json_value_free done [00:34:54]process_json_proto returns [00:34:54]Send response to host [00:34:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261033,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600}}} [00:34:54]free response buf [00:34:54]execute_script done [00:34:54]execute_script returns [00:34:54]free content buf [00:34:54]Sock 9.Close socket [00:34:54]Sock 9.Thread stoped [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:48]accept exits with 7 [00:35:48]New connection [00:35:48]New thread 3067247972 created [00:35:48]Thread 3067104612 joined [00:35:48]Waiting for new connection... [00:35:48] Sock 7.Parse request [00:35:48]Sock 7.Check first char [00:35:48]Sock 7.First char is OK [00:35:48]request: POST /json_proto HTTP/1.0 [00:35:48]Method: POST [00:35:48]URL: /json_proto [00:35:48]Method is POST - this is cgi request [00:35:48]url: /json_proto [00:35:48]query_string will be loaded in cgi processing [00:35:48]execute_cgi json_proto POST (null) [00:35:48]execute_cgi path=json_proto method=POST [00:35:48]POST find Content-Length [00:35:48]Host: 172.17.55.133:8080 [00:35:48]Content-Length: 804 [00:35:48]Content-Type: application/json [00:35:48] [00:35:48]POST finish read [00:35:48]Found Content-Length = 804 [00:35:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036587", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:48]execute_script... [00:35: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)1036587", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:48]POST & json_proto [00:35:48]process_json_proto [00:35:48]json parsed OK: [00:35:48]protocol is kg_v1.0 [00:35:48]action value=close_receipt [00:35:48]process_action close_receipt [00:35:48]cmd_close_receipt [00:35:48]MH_GetDate [00:35:48]Write to MH i2c: F0 00 00 EF 01 DF [00:35:48]Write i2c OK [00:35:48]MH_I2C_Read... [00:35:48]Read from MH i2c: F0 [00:35:48]MH_I2C_Read... [00:35:48]Read from MH i2c: F0 09 00 [00:35:48]MH_I2C_Read... [00:35:48]Read from MH i2c: F0 09 00 EF 01 00 65 93 C2 66 34 48 D8 65 C1 [00:35:48]GetLastDocTimeStamp 1724027688 [00:35:48]current date 1724027749 [00:35:48]FM_GetShiftState [00:35:48]SAM_PROTO_GetShiftState [00:35:48]wFMCommunicate request_size=4 [00:35:48]MH_SAM_APDU [00:35:48]CAPDU: 80 13 01 00 [00:35:48]Write to MH i2c: E2 08 00 F0 01 80 13 01 00 00 00 00 00 6E [00:35:48]Write i2c OK [00:35:48]MH_I2C_Read... [00:35:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:48]Read from MH i2c: E2 [00:35:48]MH_I2C_Read... [00:35:48]Read from MH i2c: E2 0E 00 [00:35:48]MH_I2C_Read... [00:35:48]Read from MH i2c: E2 0E 00 F0 01 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 04 [00:35:48]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [00:35:48]wFMCommunicate OK [00:35:48]SAM_PROTO_GetShiftState done [00:35:48]FM_GetShiftState done [00:35:48]opened in 1724027600 [00:35:48]opened+sec_in_day 1724114000 [00:35:48]quantity*price = 100021 [00:35:48]sum+1 = 100023 [00:35:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 2 19.08.2024 00:35 Смена: 450 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 261034 ФПД: 222677219928273 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T003549&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261034&fm=222677219928273&tin=02508201610067®Number=0000000000091865&sum=100022 [00:35:49]StoreToDocumentArchive [00:35:49]shift 450 fd 261034 [00:35:49]save to /storage/0450/doc_00261034 [00:35:49]save last doc name /storage/0450/doc_00261034 to /storage/kkm_last_doc_name [00:35:49]save OK [00:35:49]Clear old archive folders... [00:35:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:35:49]tlvbuf is 00A111D0 [00:35:49]SAM_PROTO_ClearQueue [00:35:49]wFMCommunicate request_size=4 [00:35:49]MH_SAM_APDU [00:35:49]CAPDU: 80 09 00 00 [00:35:49]Write to MH i2c: E2 08 00 FD 01 80 09 00 00 00 00 00 00 70 [00:35:49]Write i2c OK [00:35:49]MH_I2C_Read... [00:35:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:35:49]Read from MH i2c: E2 [00:35:49]MH_I2C_Read... [00:35:49]Read from MH i2c: E2 03 00 [00:35:49]MH_I2C_Read... [00:35:49]Read from MH i2c: E2 03 00 FD 01 00 90 00 72 [00:35:49]RAPDU: 90 00 [00:35:49]wFMCommunicate OK [00:35:49]SAM_PROTO_ClearQueue done [00:35:49]KKMCreateOFDPacket [00:35:49]OFDProtocolAddRootSTLVToBuf [00:35:49]FM_MakeSignedData [00:35:49]FM_MakeSignedData [00:35:49]SAM_PROTO_SignData [00:35:49]wFMCommunicate request_size=4 [00:35:49]MH_SAM_APDU [00:35:49]CAPDU: 80 0D 01 02 [00:35:49]Write to MH i2c: E2 08 00 FE 01 80 0D 01 02 00 00 00 00 78 [00:35:49]Write i2c OK [00:35:49]MH_I2C_Read... [00:35:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:35:49]Read from MH i2c: E2 [00:35:49]MH_I2C_Read... [00:35:49]Read from MH i2c: E2 03 00 [00:35:49]MH_I2C_Read... [00:35:49]Read from MH i2c: E2 03 00 FE 01 00 90 00 73 [00:35:49]RAPDU: 90 00 [00:35:49]wFMCommunicate OK [00:35:49]wFMCommunicate request_size=255 [00:35:49]MH_SAM_APDU [00:35: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 65 93 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AA FB 03 00 35 04 06 00 CA [00:35:49]Write to MH i2c: E2 02 01 FF 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 65 93 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AA FB 03 00 35 04 06 00 CA 00 00 A5 [00:35:49]Write i2c OK [00:35:49]MH_I2C_Read... [00:35:50]Read from MH i2c: E2 [00:35:50]MH_I2C_Read... [00:35:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:35:50]Read from MH i2c: E2 03 00 [00:35:50]MH_I2C_Read... [00:35:50]Read from MH i2c: E2 03 00 FF 01 00 90 00 74 [00:35:50]RAPDU: 90 00 [00:35:50]wFMCommunicate OK [00:35:50]wFMCommunicate request_size=10 [00:35:50]MH_SAM_APDU [00:35:50]CAPDU: 80 0D 02 02 05 86 14 97 E8 D1 [00:35:50]Write to MH i2c: E2 0D 00 00 02 80 0D 02 02 05 00 86 14 97 E8 D1 00 00 70 [00:35:50]Write i2c OK [00:35:50]MH_I2C_Read... [00:35:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:35:50]Read from MH i2c: E2 [00:35:50]MH_I2C_Read... [00:35:50]Read from MH i2c: E2 03 00 [00:35:50]MH_I2C_Read... [00:35:50]Read from MH i2c: E2 03 00 00 02 00 90 00 76 [00:35:50]RAPDU: 90 00 [00:35:50]wFMCommunicate OK [00:35:50]wFMCommunicate request_size=4 [00:35:50]MH_SAM_APDU [00:35:50]CAPDU: 80 0D 03 02 [00:35:50]Write to MH i2c: E2 08 00 01 02 80 0D 03 02 00 00 00 00 7E [00:35:50]Write i2c OK [00:35:50]MH_I2C_Read... [00:35:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:35:50]Read from MH i2c: E2 [00:35:50]MH_I2C_Read... [00:35:50]Read from MH i2c: E2 0B 00 [00:35:50]MH_I2C_Read... [00:35:50]Read from MH i2c: E2 0B 00 01 02 00 41 53 44 8A 01 03 D9 9F 90 00 5D [00:35:50]RAPDU: 41 53 44 8A 01 03 D9 9F 90 00 [00:35:50]wFMCommunicate OK [00:35:50]SAM_PROTO_SignData done [00:35:50]FM_MakeSignedData done [00:35:50]CreateOFDProtocolMessage [00:35:50]wFMCommunicate request_size=4 [00:35:50]MH_SAM_APDU [00:35:50]CAPDU: 80 11 00 00 [00:35:50]Write to MH i2c: E2 08 00 02 02 80 11 00 00 00 00 00 00 7E [00:35:50]Write i2c OK [00:35:50]MH_I2C_Read... [00:35:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:50]Read from MH i2c: E2 [00:35:50]MH_I2C_Read... [00:35:50]Read from MH i2c: E2 17 00 [00:35:50]MH_I2C_Read... [00:35:50]Read from MH i2c: E2 17 00 02 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 CB [00:35:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [00:35:50]wFMCommunicate OK [00:35:50]CreateOFDProtocolMessage done [00:35:50]OFDSenderStorePacket 261034 [00:35:50]StoreOFDPacket docnum=261034 [00:35:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 EA 4E 07 01 11 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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 65 93 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AA FB 03 00 35 04 06 00 CA 86 14 97 E8 D1 41 53 44 8A 01 03 D9 9F [00:35:50]CheckFolder [00:35:50]dirname=/storage/ofd_packets [00:35:50]CheckFolder done [00:35:50]ProducePacketName [00:35:50]name=ofd_packets/00261034 [00:35:50]NVStorageSaveData ofd_packets/00261034 [00:35:50]File name is /storage/ofd_packets/00261034 [00:35:50]Write 301 bytes [00:35:50]NVStorageSaveData done [00:35:50]OFDSenderStorePacket done [00:35:50]KKMCreateOFDPacket done [00:35:50]NVStorageSaveData kkm_last_timestamp [00:35:50]File name is /storage/kkm_last_timestamp [00:35:50]Write 4 bytes [00:35:50]NVStorageSaveData done [00:35:50]ExternCall_PrintAddStr [00:35:50]wPrintStart [00:35:50]Write to MH i2c: 01 00 00 03 02 05 [00:35:50]Write i2c OK [00:35:50]MH_I2C_Read... [00:35:50]Read from MH i2c: 01 [00:35:50]MH_I2C_Read... [00:35:50]Read from MH i2c: 01 07 00 [00:35:50]MH_I2C_Read... [00:35:50]Read from MH i2c: 01 07 00 03 02 00 00 00 00 00 FF 0F 1A [00:35:50]RasterBufferAndPrint [00:35:50]line Счет N : (1)1036587 [00:35:50]line ИНН: 02508201610067 [00:35:50]line Контрольно-Кассовый Чек [00:35:50]line ПРОДАЖА [00:35:50]line ТРК (МРК, ГНК) : 23 [00:35:50]line Товар: 2710124500 [00:35:50]line Аи-95-К-5 [00:35:50]line 13.480 * 74.20 [00:35:50]line = 1000.22 [00:35:50]line НДС 12% НСП 1% [00:35:50]line > о реализуемом товаре [00:35:50]line ИТОГО: 1000.22 [00:35:50]line НСП 1% : 8.85 [00:35:50]line НДС 12% : 106.22 [00:35:50]line Наличными: 0.00 [00:35:50]line Безнал.: 1000.22 [00:35:50]line Место: АЗС № 94 "Партнер Нефть" [00:35:50]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [00:35:50]line СНО: Общий режим [00:35:50]line Чек 2 19.08.2024 00:35 [00:35:50]line Смена: 450 ФФД: 1.0 [00:35:50]line ЗНМ: 0300000099 [00:35:50]line РНМ: 0000000000091865 [00:35:50]line Версия ККМ: 001 [00:35:50]line Платежная система: O! деньги [00:35:50]line ФМ: 0000000000871820 [00:35:50]line ФД: 261034 [00:35:50]line ФПД: 222677219928273 [00:35:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T003549&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261034&fm=222677219928273&tin=02508201610067®Number=0000000000091865&sum=100022 [00:35:50]written 0, free lines is 4095 [00:35:50]OFD Sender: Processing packet 261034 [packets to send 192, broken 191] [00:35:50]ProducePacketName [00:35:50]name=ofd_packets/00261034 [00:35:50]OFD Sender: To server: pG, [00:35:50]CommunicateWithHost lk.salyk.kg:30040 [00:35:50]ConnectInit lk.salyk.kg [00:35:50]Connected sock=10 [00:35: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 30 0F 01 00 00 EA 4E 07 01 11 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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 65 93 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AA FB 03 00 35 04 06 00 CA 86 14 97 E8 D1 41 53 44 8A 01 03 D9 9F [00:35: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 30 4F 00 00 00 20 8E 47 00 96 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AA FB 03 00 F4 03 04 00 B8 3C C2 66 B6 04 01 00 00 05 A0 1C EB 80 71 6C 68 [00:35:50]CommunicateWithHost err = 0 [00:35:50]CheckOFDResponse [00:35:50]1017 (14) - 77093643461234 [00:35:50]1041 (16) - 0000000000871820 [00:35:50]1040 (4) - 261034 [00:35:50]1012 (4) - 18.08.2024 18:26 [00:35:50]1206 (1) - 0 [00:35:50]OFD Sender: Remove packet 261034 [00:35:50]ProducePacketName [00:35:50]name=ofd_packets/00261034 [00:35:50]NVStorageDeleteData [00:35:50]Write to MH i2c: 01 00 00 2D 02 2F [00:35:50]Write i2c OK [00:35:50]MH_I2C_Read... [00:35:50]Read from MH i2c: 01 [00:35:50]MH_I2C_Read... [00:35:50]Read from MH i2c: 01 07 00 [00:35:50]MH_I2C_Read... [00:35:50]Read from MH i2c: 01 07 00 2D 02 00 00 00 00 00 77 0C B9 [00:35:50]RasterBufferAndPrint [00:35:50]line [00:35:50]line [00:35:50]line [00:35:50]line [00:35:50]line [00:35:50]written 0, free lines is 3194 [00:35:50]MH_Cut [00:35:50]Write to MH i2c: D1 01 00 34 02 01 08 [00:35:50]Write i2c OK [00:35:50]MH_I2C_Read... [00:35:50]Read from MH i2c: D1 [00:35:50]MH_I2C_Read... [00:35:50]Read from MH i2c: D1 01 00 [00:35:50]MH_I2C_Read... [00:35:50]Read from MH i2c: D1 01 00 34 02 00 07 [00:35:50]Write to MH i2c: 01 00 00 35 02 37 [00:35:50]Write i2c OK [00:35:50]MH_I2C_Read... [00:35:51]OFD Sender: No OFD packet to send [00:35:52]*** Cut start [00:35:52]*** Purtial cut [00:35:52]*** Stage 1: CUTSNS_PIN = 1 [00:35:54]Read from MH i2c: 01 [00:35:54]MH_I2C_Read... [00:35:54]*** Stop cut motor [00:35:54]*** Cut end [00:35:54]Read from MH i2c: 01 07 00 [00:35:54]MH_I2C_Read... [00:35:54]Read from MH i2c: 01 07 00 35 02 00 00 00 00 00 FF 0F 4C [00:35:54]process_action close_receipt done [00:35:54]requested_data is exist [00:35:54]produce_requested_data [00:35:54]requested_item fm.sn is exist - process it [00:35:54]wFMCommunicate request_size=4 [00:35:54]MH_SAM_APDU [00:35:54]CAPDU: 80 11 00 00 [00:35:54]Write to MH i2c: E2 08 00 36 02 80 11 00 00 00 00 00 00 B2 [00:35:54]Write i2c OK [00:35:54]MH_I2C_Read... [00:35:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:54]Read from MH i2c: E2 [00:35:54]MH_I2C_Read... [00:35:54]Read from MH i2c: E2 17 00 [00:35:54]MH_I2C_Read... [00:35:54]Read from MH i2c: E2 17 00 36 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 FF [00:35:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [00:35:54]wFMCommunicate OK [00:35:54]requested_item fd.num is exist - process it [00:35:54]SAM_PROTO_GetFieldsCounters [00:35:54]wFMCommunicate request_size=4 [00:35:54]MH_SAM_APDU [00:35:54]CAPDU: 80 13 00 00 [00:35:54]Write to MH i2c: E2 08 00 37 02 80 13 00 00 00 00 00 00 B5 [00:35:54]Write i2c OK [00:35:54]MH_I2C_Read... [00:35:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:35:54]Read from MH i2c: E2 [00:35:54]MH_I2C_Read... [00:35:54]Read from MH i2c: E2 62 00 [00:35:54]MH_I2C_Read... [00:35:54]Read from MH i2c: E2 62 00 37 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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 AA FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [00:35: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 AA FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:35:54]wFMCommunicate OK [00:35:54]SAM_PROTO_GetFieldsCounters done [00:35:54]requested_item shift.num is exist - process it [00:35:54]requested_item shift.opened is exist - process it [00:35:54]req_shift_opened [00:35:54]FM_GetShiftState [00:35:54]SAM_PROTO_GetShiftState [00:35:54]wFMCommunicate request_size=4 [00:35:54]MH_SAM_APDU [00:35:54]CAPDU: 80 13 01 00 [00:35:54]Write to MH i2c: E2 08 00 38 02 80 13 01 00 00 00 00 00 B7 [00:35:54]Write i2c OK [00:35:54]MH_I2C_Read... [00:35:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:54]Read from MH i2c: E2 [00:35:54]MH_I2C_Read... [00:35:54]Read from MH i2c: E2 0E 00 [00:35:54]MH_I2C_Read... [00:35:54]Read from MH i2c: E2 0E 00 38 02 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 4D [00:35:54]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [00:35:54]wFMCommunicate OK [00:35:54]SAM_PROTO_GetShiftState done [00:35:54]FM_GetShiftState done [00:35:54]req_shift_opened done [00:35:54]requested_item shift.open_date is exist - process it [00:35:54]req_shift_open_date [00:35:54]req_shift_open_date done [00:35:54]produce_requested_data done [00:35:54]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261034,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600} [00:35:54]process_action_free close_receipt [00:35:54]json_value_free [00:35:54]json_value_free done [00:35:54]process_json_proto returns [00:35:54]Send response to host [00:35:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261034,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600}}} [00:35:54]free response buf [00:35:54]execute_script done [00:35:54]execute_script returns [00:35:54]free content buf [00:35:54]Sock 7.Close socket [00:35:54]Sock 7.Thread stoped [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:17]accept exits with 9 [00:37:17]New connection [00:37:17]New thread 3067104612 created [00:37:17]Thread 3067247972 joined [00:37:17]Waiting for new connection... [00:37:17] Sock 9.Parse request [00:37:17]Sock 9.Check first char [00:37:17]Sock 9.First char is OK [00:37:17]request: POST /json_proto HTTP/1.0 [00:37:17]Method: POST [00:37:17]URL: /json_proto [00:37:17]Method is POST - this is cgi request [00:37:17]url: /json_proto [00:37:17]query_string will be loaded in cgi processing [00:37:17]execute_cgi json_proto POST (null) [00:37:17]execute_cgi path=json_proto method=POST [00:37:17]POST find Content-Length [00:37:17]Host: 172.17.55.133:8080 [00:37:17]Content-Length: 683 [00:37:17]Content-Type: application/json [00:37:17] [00:37:17]POST finish read [00:37:17]Found Content-Length = 683 [00:37:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036588", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:37:17]execute_script... [00:37: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)1036588", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:37:17]POST & json_proto [00:37:17]process_json_proto [00:37:17]json parsed OK: [00:37:17]protocol is kg_v1.0 [00:37:17]action value=close_receipt [00:37:17]process_action close_receipt [00:37:17]cmd_close_receipt [00:37:17]MH_GetDate [00:37:17]Write to MH i2c: F0 00 00 39 02 2A [00:37:17]Write i2c OK [00:37:17]MH_I2C_Read... [00:37:17]Read from MH i2c: F0 [00:37:17]MH_I2C_Read... [00:37:17]Read from MH i2c: F0 09 00 [00:37:17]MH_I2C_Read... [00:37:17]Read from MH i2c: F0 09 00 39 02 00 BE 93 C2 66 34 48 D8 65 65 [00:37:17]GetLastDocTimeStamp 1724027749 [00:37:17]current date 1724027838 [00:37:17]FM_GetShiftState [00:37:17]SAM_PROTO_GetShiftState [00:37:17]wFMCommunicate request_size=4 [00:37:17]MH_SAM_APDU [00:37:17]CAPDU: 80 13 01 00 [00:37:17]Write to MH i2c: E2 08 00 3A 02 80 13 01 00 00 00 00 00 B9 [00:37:17]Write i2c OK [00:37:17]MH_I2C_Read... [00:37:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:17]Read from MH i2c: E2 [00:37:17]MH_I2C_Read... [00:37:17]Read from MH i2c: E2 0E 00 [00:37:17]MH_I2C_Read... [00:37:17]Read from MH i2c: E2 0E 00 3A 02 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 4F [00:37:17]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [00:37:17]wFMCommunicate OK [00:37:17]SAM_PROTO_GetShiftState done [00:37:17]FM_GetShiftState done [00:37:17]opened in 1724027600 [00:37:17]opened+sec_in_day 1724114000 [00:37:17]quantity*price = 100021 [00:37:17]sum+1 = 100023 [00:37:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 3 19.08.2024 00:37 Смена: 450 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261035 ФПД: 41400722080896 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T003718&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261035&fm=41400722080896&tin=02508201610067®Number=0000000000091865&sum=100000 [00:37:19]StoreToDocumentArchive [00:37:19]shift 450 fd 261035 [00:37:19]save to /storage/0450/doc_00261035 [00:37:19]save last doc name /storage/0450/doc_00261035 to /storage/kkm_last_doc_name [00:37:19]save OK [00:37:19]Clear old archive folders... [00:37:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:37:19]tlvbuf is 00A4BC00 [00:37:19]SAM_PROTO_ClearQueue [00:37:19]wFMCommunicate request_size=4 [00:37:19]MH_SAM_APDU [00:37:19]CAPDU: 80 09 00 00 [00:37:19]Write to MH i2c: E2 08 00 47 02 80 09 00 00 00 00 00 00 BB [00:37:19]Write i2c OK [00:37:19]MH_I2C_Read... [00:37:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:37:19]Read from MH i2c: E2 [00:37:19]MH_I2C_Read... [00:37:19]Read from MH i2c: E2 03 00 [00:37:19]MH_I2C_Read... [00:37:19]Read from MH i2c: E2 03 00 47 02 00 90 00 BD [00:37:19]RAPDU: 90 00 [00:37:19]wFMCommunicate OK [00:37:19]SAM_PROTO_ClearQueue done [00:37:19]KKMCreateOFDPacket [00:37:19]OFDProtocolAddRootSTLVToBuf [00:37:19]FM_MakeSignedData [00:37:19]FM_MakeSignedData [00:37:19]SAM_PROTO_SignData [00:37:19]wFMCommunicate request_size=4 [00:37:19]MH_SAM_APDU [00:37:19]CAPDU: 80 0D 01 02 [00:37:19]Write to MH i2c: E2 08 00 48 02 80 0D 01 02 00 00 00 00 C3 [00:37:19]Write i2c OK [00:37:19]MH_I2C_Read... [00:37:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:37:19]Read from MH i2c: E2 [00:37:19]MH_I2C_Read... [00:37:19]Read from MH i2c: E2 03 00 [00:37:19]MH_I2C_Read... [00:37:19]Read from MH i2c: E2 03 00 48 02 00 90 00 BE [00:37:19]RAPDU: 90 00 [00:37:19]wFMCommunicate OK [00:37:19]wFMCommunicate request_size=255 [00:37:19]MH_SAM_APDU [00:37:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 BE 93 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AB FB 03 00 35 04 06 00 25 [00:37:19]Write to MH i2c: E2 02 01 49 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 BE 93 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AB FB 03 00 35 04 06 00 25 00 00 7A [00:37:19]Write i2c OK [00:37:19]MH_I2C_Read... [00:37:19]Read from MH i2c: E2 [00:37:19]MH_I2C_Read... [00:37:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:37:19]Read from MH i2c: E2 03 00 [00:37:19]MH_I2C_Read... [00:37:19]Read from MH i2c: E2 03 00 49 02 00 90 00 BF [00:37:19]RAPDU: 90 00 [00:37:19]wFMCommunicate OK [00:37:19]wFMCommunicate request_size=10 [00:37:19]MH_SAM_APDU [00:37:19]CAPDU: 80 0D 02 02 05 A7 5B 55 44 80 [00:37:19]Write to MH i2c: E2 0D 00 4A 02 80 0D 02 02 05 00 A7 5B 55 44 80 00 00 EB [00:37:19]Write i2c OK [00:37:19]MH_I2C_Read... [00:37:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:37:19]Read from MH i2c: E2 [00:37:19]MH_I2C_Read... [00:37:19]Read from MH i2c: E2 03 00 [00:37:19]MH_I2C_Read... [00:37:19]Read from MH i2c: E2 03 00 4A 02 00 90 00 C0 [00:37:19]RAPDU: 90 00 [00:37:19]wFMCommunicate OK [00:37:19]wFMCommunicate request_size=4 [00:37:19]MH_SAM_APDU [00:37:19]CAPDU: 80 0D 03 02 [00:37:19]Write to MH i2c: E2 08 00 4B 02 80 0D 03 02 00 00 00 00 C8 [00:37:19]Write i2c OK [00:37:19]MH_I2C_Read... [00:37:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:37:19]Read from MH i2c: E2 [00:37:19]MH_I2C_Read... [00:37:19]Read from MH i2c: E2 0B 00 [00:37:19]MH_I2C_Read... [00:37:19]Read from MH i2c: E2 0B 00 4B 02 00 7B B8 9A A1 DD 1A 7A A5 90 00 4D [00:37:19]RAPDU: 7B B8 9A A1 DD 1A 7A A5 90 00 [00:37:19]wFMCommunicate OK [00:37:19]SAM_PROTO_SignData done [00:37:19]FM_MakeSignedData done [00:37:19]CreateOFDProtocolMessage [00:37:19]wFMCommunicate request_size=4 [00:37:19]MH_SAM_APDU [00:37:19]CAPDU: 80 11 00 00 [00:37:19]Write to MH i2c: E2 08 00 4C 02 80 11 00 00 00 00 00 00 C8 [00:37:19]Write i2c OK [00:37:19]MH_I2C_Read... [00:37:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:37:19]Read from MH i2c: E2 [00:37:19]MH_I2C_Read... [00:37:19]Read from MH i2c: E2 17 00 [00:37:19]MH_I2C_Read... [00:37:19]Read from MH i2c: E2 17 00 4C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 15 [00:37:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [00:37:19]wFMCommunicate OK [00:37:19]CreateOFDProtocolMessage done [00:37:19]OFDSenderStorePacket 261035 [00:37:19]StoreOFDPacket docnum=261035 [00:37:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 D9 81 07 01 53 AE 5A 03 01 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 BE 93 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AB FB 03 00 35 04 06 00 25 A7 5B 55 44 80 7B B8 9A A1 DD 1A 7A A5 [00:37:19]CheckFolder [00:37:19]dirname=/storage/ofd_packets [00:37:19]CheckFolder done [00:37:19]ProducePacketName [00:37:19]name=ofd_packets/00261035 [00:37:19]NVStorageSaveData ofd_packets/00261035 [00:37:19]File name is /storage/ofd_packets/00261035 [00:37:19]Write 301 bytes [00:37:19]NVStorageSaveData done [00:37:19]OFDSenderStorePacket done [00:37:19]KKMCreateOFDPacket done [00:37:19]NVStorageSaveData kkm_last_timestamp [00:37:19]File name is /storage/kkm_last_timestamp [00:37:19]Write 4 bytes [00:37:19]NVStorageSaveData done [00:37:19]ExternCall_PrintAddStr [00:37:19]wPrintStart [00:37:19]Write to MH i2c: 01 00 00 4D 02 4F [00:37:19]Write i2c OK [00:37:19]MH_I2C_Read... [00:37:19]Read from MH i2c: 01 [00:37:19]MH_I2C_Read... [00:37:19]Read from MH i2c: 01 07 00 [00:37:19]MH_I2C_Read... [00:37:19]Read from MH i2c: 01 07 00 4D 02 00 00 00 00 00 FF 0F 64 [00:37:19]RasterBufferAndPrint [00:37:19]line Счет N : (1)1036588 [00:37:19]line ИНН: 02508201610067 [00:37:19]line Контрольно-Кассовый Чек [00:37:19]line ПРОДАЖА [00:37:19]line ТРК (МРК, ГНК) : 23 [00:37:19]line Товар: 2710124500 [00:37:19]line Аи-95-К-5 [00:37:19]line 13.480 * 74.20 [00:37:19]line = 1000.22 [00:37:19]line НДС 12% НСП 1% [00:37:19]line > о реализуемом товаре [00:37:19]line ОКРУГЛЕНИЕ: -0.22 [00:37:19]line ИТОГО: 1000.00 [00:37:19]line Внесено: 1000.00 [00:37:19]line СДАЧА: 0.00 [00:37:19]line НСП 1% : 8.85 [00:37:19]line НДС 12% : 106.22 [00:37:19]line Наличными: 1000.00 [00:37:19]line Безнал.: 0.00 [00:37:19]line Место: АЗС № 94 "Партнер Нефть" [00:37:19]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [00:37:19]line СНО: Общий режим [00:37:19]line Чек 3 19.08.2024 00:37 [00:37:19]line Смена: 450 ФФД: 1.0 [00:37:19]line ЗНМ: 0300000099 [00:37:19]line РНМ: 0000000000091865 [00:37:19]line Версия ККМ: 001 [00:37:19]line ФМ: 0000000000871820 [00:37:19]line ФД: 261035 [00:37:19]line ФПД: 41400722080896 [00:37:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T003718&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261035&fm=41400722080896&tin=02508201610067®Number=0000000000091865&sum=100000 [00:37:19]written 0, free lines is 4095 [00:37:19]OFD Sender: Processing packet 261035 [packets to send 192, broken 191] [00:37:19]ProducePacketName [00:37:19]name=ofd_packets/00261035 [00:37:19]OFD Sender: To server: pG, [00:37:19]CommunicateWithHost lk.salyk.kg:30040 [00:37:19]ConnectInit lk.salyk.kg [00:37:20]Connected sock=10 [00:37: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 30 0F 01 00 00 D9 81 07 01 53 AE 5A 03 01 00 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 BE 93 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AB FB 03 00 35 04 06 00 25 A7 5B 55 44 80 7B B8 9A A1 DD 1A 7A A5 [00:37: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 30 4F 00 00 00 F5 08 47 00 78 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AB FB 03 00 F4 03 04 00 11 3D C2 66 B6 04 01 00 00 C9 D0 DF 0E 38 F6 E1 3B [00:37:20]CommunicateWithHost err = 0 [00:37:20]CheckOFDResponse [00:37:20]1017 (14) - 77093643461234 [00:37:20]1041 (16) - 0000000000871820 [00:37:20]1040 (4) - 261035 [00:37:20]1012 (4) - 18.08.2024 18:27 [00:37:20]1206 (1) - 0 [00:37:20]OFD Sender: Remove packet 261035 [00:37:20]ProducePacketName [00:37:20]name=ofd_packets/00261035 [00:37:20]NVStorageDeleteData [00:37:20]Write to MH i2c: 01 00 00 78 02 7A [00:37:20]Write i2c OK [00:37:20]MH_I2C_Read... [00:37:20]Read from MH i2c: 01 [00:37:20]MH_I2C_Read... [00:37:20]Read from MH i2c: 01 07 00 [00:37:20]MH_I2C_Read... [00:37:20]Read from MH i2c: 01 07 00 78 02 00 00 00 00 00 57 0C E4 [00:37:20]RasterBufferAndPrint [00:37:20]line [00:37:20]line [00:37:20]line [00:37:20]line [00:37:20]line [00:37:20]written 0, free lines is 3161 [00:37:20]MH_Cut [00:37:20]Write to MH i2c: D1 01 00 7F 02 01 53 [00:37:20]Write i2c OK [00:37:20]MH_I2C_Read... [00:37:20]Read from MH i2c: D1 [00:37:20]MH_I2C_Read... [00:37:20]Read from MH i2c: D1 01 00 [00:37:20]MH_I2C_Read... [00:37:20]Read from MH i2c: D1 01 00 7F 02 00 52 [00:37:20]Write to MH i2c: 01 00 00 80 02 82 [00:37:20]Write i2c OK [00:37:20]MH_I2C_Read... [00:37:20]OFD Sender: No OFD packet to send [00:37:21]*** Cut start [00:37:21]*** Purtial cut [00:37:21]*** Stage 1: CUTSNS_PIN = 1 [00:37:23]Read from MH i2c: 01 [00:37:23]MH_I2C_Read... [00:37:23]*** Stop cut motor [00:37:23]*** Cut end [00:37:23]Read from MH i2c: 01 07 00 [00:37:23]MH_I2C_Read... [00:37:23]Read from MH i2c: 01 07 00 80 02 00 00 00 00 00 FF 0F 97 [00:37:23]process_action close_receipt done [00:37:23]requested_data is exist [00:37:23]produce_requested_data [00:37:23]requested_item fm.sn is exist - process it [00:37:23]wFMCommunicate request_size=4 [00:37:23]MH_SAM_APDU [00:37:23]CAPDU: 80 11 00 00 [00:37:23]Write to MH i2c: E2 08 00 81 02 80 11 00 00 00 00 00 00 FD [00:37:23]Write i2c OK [00:37:23]MH_I2C_Read... [00:37:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:37:23]Read from MH i2c: E2 [00:37:23]MH_I2C_Read... [00:37:23]Read from MH i2c: E2 17 00 [00:37:23]MH_I2C_Read... [00:37:23]Read from MH i2c: E2 17 00 81 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 4A [00:37:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [00:37:23]wFMCommunicate OK [00:37:23]requested_item fd.num is exist - process it [00:37:23]SAM_PROTO_GetFieldsCounters [00:37:23]wFMCommunicate request_size=4 [00:37:23]MH_SAM_APDU [00:37:23]CAPDU: 80 13 00 00 [00:37:23]Write to MH i2c: E2 08 00 82 02 80 13 00 00 00 00 00 00 00 [00:37:23]Write i2c OK [00:37:23]MH_I2C_Read... [00:37:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:37:23]Read from MH i2c: E2 [00:37:23]MH_I2C_Read... [00:37:23]Read from MH i2c: E2 62 00 [00:37:23]MH_I2C_Read... [00:37:23]Read from MH i2c: E2 62 00 82 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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 AB FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [00:37: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 AB FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:37:23]wFMCommunicate OK [00:37:23]SAM_PROTO_GetFieldsCounters done [00:37:23]requested_item shift.num is exist - process it [00:37:23]requested_item shift.opened is exist - process it [00:37:23]req_shift_opened [00:37:23]FM_GetShiftState [00:37:23]SAM_PROTO_GetShiftState [00:37:23]wFMCommunicate request_size=4 [00:37:23]MH_SAM_APDU [00:37:23]CAPDU: 80 13 01 00 [00:37:23]Write to MH i2c: E2 08 00 83 02 80 13 01 00 00 00 00 00 02 [00:37:23]Write i2c OK [00:37:23]MH_I2C_Read... [00:37:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:23]Read from MH i2c: E2 [00:37:23]MH_I2C_Read... [00:37:23]Read from MH i2c: E2 0E 00 [00:37:23]MH_I2C_Read... [00:37:23]Read from MH i2c: E2 0E 00 83 02 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 98 [00:37:23]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [00:37:23]wFMCommunicate OK [00:37:23]SAM_PROTO_GetShiftState done [00:37:23]FM_GetShiftState done [00:37:23]req_shift_opened done [00:37:23]requested_item shift.open_date is exist - process it [00:37:23]req_shift_open_date [00:37:23]req_shift_open_date done [00:37:23]produce_requested_data done [00:37:23]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261035,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600} [00:37:23]process_action_free close_receipt [00:37:23]json_value_free [00:37:23]json_value_free done [00:37:23]process_json_proto returns [00:37:23]Send response to host [00:37:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261035,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600}}} [00:37:23]free response buf [00:37:23]execute_script done [00:37:23]execute_script returns [00:37:23]free content buf [00:37:23]Sock 9.Close socket [00:37:23]Sock 9.Thread stoped [00:37:25]OFD Sender: No OFD packet to send [00:37:30]OFD Sender: No OFD packet to send [00:37:35]OFD Sender: No OFD packet to send [00:37:40]OFD Sender: No OFD packet to send [00:37:45]OFD Sender: No OFD packet to send [00:37:50]OFD Sender: No OFD packet to send [00:37:55]OFD Sender: No OFD packet to send [00:38:00]OFD Sender: No OFD packet to send [00:38:05]OFD Sender: No OFD packet to send [00:38:10]OFD Sender: No OFD packet to send [00:38:15]OFD Sender: No OFD packet to send [00:38:20]OFD Sender: No OFD packet to send [00:38:25]OFD Sender: No OFD packet to send [00:38:30]OFD Sender: No OFD packet to send [00:38:35]OFD Sender: No OFD packet to send [00:38:40]OFD Sender: No OFD packet to send [00:38:45]OFD Sender: No OFD packet to send [00:38:50]OFD Sender: No OFD packet to send [00:38:55]OFD Sender: No OFD packet to send [00:39:00]OFD Sender: No OFD packet to send [00:39:05]OFD Sender: No OFD packet to send [00:39:10]OFD Sender: No OFD packet to send [00:39:15]OFD Sender: No OFD packet to send [00:39:20]OFD Sender: No OFD packet to send [00:39:25]OFD Sender: No OFD packet to send [00:39:30]OFD Sender: No OFD packet to send [00:39:35]OFD Sender: No OFD packet to send [00:39:40]OFD Sender: No OFD packet to send [00:39:45]OFD Sender: No OFD packet to send [00:39:50]OFD Sender: No OFD packet to send [00:39:55]OFD Sender: No OFD packet to send [00:40:00]OFD Sender: No OFD packet to send [00:40:05]OFD Sender: No OFD packet to send [00:40:10]OFD Sender: No OFD packet to send [00:40:15]OFD Sender: No OFD packet to send [00:40:20]OFD Sender: No OFD packet to send [00:40:25]OFD Sender: No OFD packet to send [00:40: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:40:59]accept exits with 7 [00:40:59]New connection [00:40:59]New thread 3067247972 created [00:40:59]Thread 3067104612 joined [00:40:59]Waiting for new connection... [00:40:59] Sock 7.Parse request [00:40:59]Sock 7.Check first char [00:40:59]Sock 7.First char is OK [00:40:59]request: POST /json_proto HTTP/1.0 [00:40:59]Method: POST [00:40:59]URL: /json_proto [00:40:59]Method is POST - this is cgi request [00:40:59]url: /json_proto [00:40:59]query_string will be loaded in cgi processing [00:40:59]execute_cgi json_proto POST (null) [00:40:59]execute_cgi path=json_proto method=POST [00:40:59]POST find Content-Length [00:40:59]Host: 172.17.55.133:8080 [00:40:59]Content-Length: 683 [00:40:59]Content-Type: application/json [00:40:59] [00:40:59]POST finish read [00:40:59]Found Content-Length = 683 [00:40:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036589", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:40:59]execute_script... [00:40: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)1036589", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:40:59]POST & json_proto [00:40:59]process_json_proto [00:40:59]json parsed OK: [00:40:59]protocol is kg_v1.0 [00:40:59]action value=close_receipt [00:40:59]process_action close_receipt [00:40:59]cmd_close_receipt [00:40:59]MH_GetDate [00:40:59]Write to MH i2c: F0 00 00 84 02 75 [00:40:59]Write i2c OK [00:40:59]MH_I2C_Read... [00:40:59]Read from MH i2c: F0 [00:40:59]MH_I2C_Read... [00:40:59]Read from MH i2c: F0 09 00 [00:40:59]MH_I2C_Read... [00:40:59]Read from MH i2c: F0 09 00 84 02 00 9B 94 C2 66 34 48 D8 65 8E [00:40:59]GetLastDocTimeStamp 1724027838 [00:40:59]current date 1724028059 [00:40:59]FM_GetShiftState [00:40:59]SAM_PROTO_GetShiftState [00:40:59]wFMCommunicate request_size=4 [00:40:59]MH_SAM_APDU [00:40:59]CAPDU: 80 13 01 00 [00:40:59]Write to MH i2c: E2 08 00 85 02 80 13 01 00 00 00 00 00 04 [00:40:59]Write i2c OK [00:40:59]MH_I2C_Read... [00:40:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:40:59]Read from MH i2c: E2 [00:40:59]MH_I2C_Read... [00:40:59]Read from MH i2c: E2 0E 00 [00:40:59]MH_I2C_Read... [00:40:59]Read from MH i2c: E2 0E 00 85 02 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 9A [00:40:59]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [00:40:59]wFMCommunicate OK [00:40:59]SAM_PROTO_GetShiftState done [00:40:59]FM_GetShiftState done [00:40:59]opened in 1724027600 [00:40:59]opened+sec_in_day 1724114000 [00:40:59]quantity*price = 100021 [00:40:59]sum+1 = 100023 [00:40:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 4 19.08.2024 00:40 Смена: 450 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261036 ФПД: 105203415480887 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T004059&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261036&fm=105203415480887&tin=02508201610067®Number=0000000000091865&sum=100000 [00:41:00]StoreToDocumentArchive [00:41:00]shift 450 fd 261036 [00:41:00]save to /storage/0450/doc_00261036 [00:41:00]save last doc name /storage/0450/doc_00261036 to /storage/kkm_last_doc_name [00:41:00]save OK [00:41:00]Clear old archive folders... [00:41:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:41:00]tlvbuf is 00A0C570 [00:41:00]SAM_PROTO_ClearQueue [00:41:00]wFMCommunicate request_size=4 [00:41:00]MH_SAM_APDU [00:41:00]CAPDU: 80 09 00 00 [00:41:00]Write to MH i2c: E2 08 00 92 02 80 09 00 00 00 00 00 00 06 [00:41:00]Write i2c OK [00:41:00]MH_I2C_Read... [00:41:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:41:00]Read from MH i2c: E2 [00:41:00]MH_I2C_Read... [00:41:00]Read from MH i2c: E2 03 00 [00:41:00]MH_I2C_Read... [00:41:00]Read from MH i2c: E2 03 00 92 02 00 90 00 08 [00:41:00]RAPDU: 90 00 [00:41:00]wFMCommunicate OK [00:41:00]SAM_PROTO_ClearQueue done [00:41:00]KKMCreateOFDPacket [00:41:00]OFDProtocolAddRootSTLVToBuf [00:41:00]FM_MakeSignedData [00:41:00]FM_MakeSignedData [00:41:00]SAM_PROTO_SignData [00:41:00]wFMCommunicate request_size=4 [00:41:00]MH_SAM_APDU [00:41:00]CAPDU: 80 0D 01 02 [00:41:00]Write to MH i2c: E2 08 00 93 02 80 0D 01 02 00 00 00 00 0E [00:41:00]Write i2c OK [00:41:00]MH_I2C_Read... [00:41:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:41:00]Read from MH i2c: E2 [00:41:00]MH_I2C_Read... [00:41:00]Read from MH i2c: E2 03 00 [00:41:00]MH_I2C_Read... [00:41:00]Read from MH i2c: E2 03 00 93 02 00 90 00 09 [00:41:00]RAPDU: 90 00 [00:41:00]wFMCommunicate OK [00:41:00]wFMCommunicate request_size=255 [00:41:00]MH_SAM_APDU [00:41:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 9B 94 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AC FB 03 00 35 04 06 00 5F [00:41:00]Write to MH i2c: E2 02 01 94 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 9B 94 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AC FB 03 00 35 04 06 00 5F 00 00 DF [00:41:00]Write i2c OK [00:41:00]MH_I2C_Read... [00:41:00]Read from MH i2c: E2 [00:41:00]MH_I2C_Read... [00:41:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:00]Read from MH i2c: E2 03 00 [00:41:00]MH_I2C_Read... [00:41:00]Read from MH i2c: E2 03 00 94 02 00 90 00 0A [00:41:00]RAPDU: 90 00 [00:41:00]wFMCommunicate OK [00:41:00]wFMCommunicate request_size=10 [00:41:00]MH_SAM_APDU [00:41:00]CAPDU: 80 0D 02 02 05 AE 94 35 7A 37 [00:41:00]Write to MH i2c: E2 0D 00 95 02 80 0D 02 02 05 00 AE 94 35 7A 37 00 00 43 [00:41:00]Write i2c OK [00:41:00]MH_I2C_Read... [00:41:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:01]Read from MH i2c: E2 [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: E2 03 00 [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: E2 03 00 95 02 00 90 00 0B [00:41:01]RAPDU: 90 00 [00:41:01]wFMCommunicate OK [00:41:01]wFMCommunicate request_size=4 [00:41:01]MH_SAM_APDU [00:41:01]CAPDU: 80 0D 03 02 [00:41:01]Write to MH i2c: E2 08 00 96 02 80 0D 03 02 00 00 00 00 13 [00:41:01]Write i2c OK [00:41:01]MH_I2C_Read... [00:41:01]OFD Sender: No OFD packet to send [00:41:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:41:01]Read from MH i2c: E2 [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: E2 0B 00 [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: E2 0B 00 96 02 00 2F 4D AB 68 EC E4 D1 6D 90 00 B1 [00:41:01]RAPDU: 2F 4D AB 68 EC E4 D1 6D 90 00 [00:41:01]wFMCommunicate OK [00:41:01]SAM_PROTO_SignData done [00:41:01]FM_MakeSignedData done [00:41:01]CreateOFDProtocolMessage [00:41:01]wFMCommunicate request_size=4 [00:41:01]MH_SAM_APDU [00:41:01]CAPDU: 80 11 00 00 [00:41:01]Write to MH i2c: E2 08 00 97 02 80 11 00 00 00 00 00 00 13 [00:41:01]Write i2c OK [00:41:01]MH_I2C_Read... [00:41:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:01]Read from MH i2c: E2 [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: E2 17 00 [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: E2 17 00 97 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 60 [00:41:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [00:41:01]wFMCommunicate OK [00:41:01]CreateOFDProtocolMessage done [00:41:01]OFDSenderStorePacket 261036 [00:41:01]StoreOFDPacket docnum=261036 [00:41:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 E4 98 07 01 7E 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 9B 94 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AC FB 03 00 35 04 06 00 5F AE 94 35 7A 37 2F 4D AB 68 EC E4 D1 6D [00:41:01]CheckFolder [00:41:01]dirname=/storage/ofd_packets [00:41:01]CheckFolder done [00:41:01]ProducePacketName [00:41:01]name=ofd_packets/00261036 [00:41:01]NVStorageSaveData ofd_packets/00261036 [00:41:01]File name is /storage/ofd_packets/00261036 [00:41:01]Write 301 bytes [00:41:01]NVStorageSaveData done [00:41:01]OFDSenderStorePacket done [00:41:01]KKMCreateOFDPacket done [00:41:01]NVStorageSaveData kkm_last_timestamp [00:41:01]File name is /storage/kkm_last_timestamp [00:41:01]Write 4 bytes [00:41:01]NVStorageSaveData done [00:41:01]ExternCall_PrintAddStr [00:41:01]wPrintStart [00:41:01]Write to MH i2c: 01 00 00 98 02 9A [00:41:01]Write i2c OK [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: 01 [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: 01 07 00 [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: 01 07 00 98 02 00 00 00 00 00 FF 0F AF [00:41:01]RasterBufferAndPrint [00:41:01]line Счет N : (1)1036589 [00:41:01]line ИНН: 02508201610067 [00:41:01]line Контрольно-Кассовый Чек [00:41:01]line ПРОДАЖА [00:41:01]line ТРК (МРК, ГНК) : 23 [00:41:01]line Товар: 2710124500 [00:41:01]line Аи-95-К-5 [00:41:01]line 13.480 * 74.20 [00:41:01]line = 1000.22 [00:41:01]line НДС 12% НСП 1% [00:41:01]line > о реализуемом товаре [00:41:01]line ОКРУГЛЕНИЕ: -0.22 [00:41:01]line ИТОГО: 1000.00 [00:41:01]line Внесено: 1000.00 [00:41:01]line СДАЧА: 0.00 [00:41:01]line НСП 1% : 8.85 [00:41:01]line НДС 12% : 106.22 [00:41:01]line Наличными: 1000.00 [00:41:01]line Безнал.: 0.00 [00:41:01]line Место: АЗС № 94 "Партнер Нефть" [00:41:01]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [00:41:01]line СНО: Общий режим [00:41:01]line Чек 4 19.08.2024 00:40 [00:41:01]line Смена: 450 ФФД: 1.0 [00:41:01]line ЗНМ: 0300000099 [00:41:01]line РНМ: 0000000000091865 [00:41:01]line Версия ККМ: 001 [00:41:01]line ФМ: 0000000000871820 [00:41:01]line ФД: 261036 [00:41:01]line ФПД: 105203415480887 [00:41:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T004059&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261036&fm=105203415480887&tin=02508201610067®Number=0000000000091865&sum=100000 [00:41:01]OFD Sender: Processing packet 261036 [packets to send 192, broken 191] [00:41:01]ProducePacketName [00:41:01]name=ofd_packets/00261036 [00:41:01]OFD Sender: To server: pG, [00:41:01]CommunicateWithHost lk.salyk.kg:30040 [00:41:01]ConnectInit lk.salyk.kg [00:41:01]written 0, free lines is 4095 [00:41:01]Connected sock=11 [00:41: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 30 0F 01 00 00 E4 98 07 01 7E 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 9B 94 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AC FB 03 00 35 04 06 00 5F AE 94 35 7A 37 2F 4D AB 68 EC E4 D1 6D [00:41: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 30 4F 00 00 00 57 30 47 00 62 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 30 10 04 04 00 AC FB 03 00 F4 03 04 00 EF 3D C2 66 B6 04 01 00 00 7F 8F 79 7C BD 61 56 F9 [00:41:01]CommunicateWithHost err = 0 [00:41:01]CheckOFDResponse [00:41:01]1017 (14) - 77093643461234 [00:41:01]1041 (16) - 0000000000871820 [00:41:01]1040 (4) - 261036 [00:41:01]1012 (4) - 18.08.2024 18:31 [00:41:01]1206 (1) - 0 [00:41:01]OFD Sender: Remove packet 261036 [00:41:01]ProducePacketName [00:41:01]name=ofd_packets/00261036 [00:41:01]NVStorageDeleteData [00:41:01]Write to MH i2c: 01 00 00 C3 02 C5 [00:41:01]Write i2c OK [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: 01 [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: 01 07 00 [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: 01 07 00 C3 02 00 00 00 00 00 56 0C 2E [00:41:01]RasterBufferAndPrint [00:41:01]line [00:41:01]line [00:41:01]line [00:41:01]line [00:41:01]line [00:41:01]written 0, free lines is 3160 [00:41:01]MH_Cut [00:41:01]Write to MH i2c: D1 01 00 CA 02 01 9E [00:41:01]Write i2c OK [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: D1 [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: D1 01 00 [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: D1 01 00 CA 02 00 9D [00:41:01]Write to MH i2c: 01 00 00 CB 02 CD [00:41:01]Write i2c OK [00:41:01]MH_I2C_Read... [00:41:02]OFD Sender: No OFD packet to send [00:41:03]*** Cut start [00:41:03]*** Purtial cut [00:41:03]*** Stage 1: CUTSNS_PIN = 1 [00:41:05]Read from MH i2c: 01 [00:41:05]MH_I2C_Read... [00:41:05]*** Stop cut motor [00:41:05]*** Cut end [00:41:05]Read from MH i2c: 01 07 00 [00:41:05]MH_I2C_Read... [00:41:05]Read from MH i2c: 01 07 00 CB 02 00 00 00 00 00 FF 0F E2 [00:41:05]process_action close_receipt done [00:41:05]requested_data is exist [00:41:05]produce_requested_data [00:41:05]requested_item fm.sn is exist - process it [00:41:05]wFMCommunicate request_size=4 [00:41:05]MH_SAM_APDU [00:41:05]CAPDU: 80 11 00 00 [00:41:05]Write to MH i2c: E2 08 00 CC 02 80 11 00 00 00 00 00 00 48 [00:41:05]Write i2c OK [00:41:05]MH_I2C_Read... [00:41:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:05]Read from MH i2c: E2 [00:41:05]MH_I2C_Read... [00:41:05]Read from MH i2c: E2 17 00 [00:41:05]MH_I2C_Read... [00:41:05]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 30 90 00 95 [00:41:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [00:41:05]wFMCommunicate OK [00:41:05]requested_item fd.num is exist - process it [00:41:05]SAM_PROTO_GetFieldsCounters [00:41:05]wFMCommunicate request_size=4 [00:41:05]MH_SAM_APDU [00:41:05]CAPDU: 80 13 00 00 [00:41:05]Write to MH i2c: E2 08 00 CD 02 80 13 00 00 00 00 00 00 4B [00:41:05]Write i2c OK [00:41:05]MH_I2C_Read... [00:41:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:41:05]Read from MH i2c: E2 [00:41:05]MH_I2C_Read... [00:41:05]Read from MH i2c: E2 62 00 [00:41:05]MH_I2C_Read... [00:41:05]Read from MH i2c: E2 62 00 CD 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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 AC FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [00:41: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 AC FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:41:05]wFMCommunicate OK [00:41:05]SAM_PROTO_GetFieldsCounters done [00:41:05]requested_item shift.num is exist - process it [00:41:05]requested_item shift.opened is exist - process it [00:41:05]req_shift_opened [00:41:05]FM_GetShiftState [00:41:05]SAM_PROTO_GetShiftState [00:41:05]wFMCommunicate request_size=4 [00:41:05]MH_SAM_APDU [00:41:05]CAPDU: 80 13 01 00 [00:41:05]Write to MH i2c: E2 08 00 CE 02 80 13 01 00 00 00 00 00 4D [00:41:05]Write i2c OK [00:41:05]MH_I2C_Read... [00:41:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:05]Read from MH i2c: E2 [00:41:05]MH_I2C_Read... [00:41:05]Read from MH i2c: E2 0E 00 [00:41:05]MH_I2C_Read... [00:41:05]Read from MH i2c: E2 0E 00 CE 02 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 E3 [00:41:05]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [00:41:05]wFMCommunicate OK [00:41:05]SAM_PROTO_GetShiftState done [00:41:05]FM_GetShiftState done [00:41:05]req_shift_opened done [00:41:05]requested_item shift.open_date is exist - process it [00:41:05]req_shift_open_date [00:41:05]req_shift_open_date done [00:41:05]produce_requested_data done [00:41:05]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261036,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600} [00:41:05]process_action_free close_receipt [00:41:05]json_value_free [00:41:05]json_value_free done [00:41:05]process_json_proto returns [00:41:05]Send response to host [00:41:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261036,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600}}} [00:41:05]free response buf [00:41:05]execute_script done [00:41:05]execute_script returns [00:41:05]free content buf [00:41:05]Sock 7.Close socket [00:41:05]Sock 7.Thread stoped [00:41:07]OFD Sender: No OFD packet to send [00:41:12]OFD Sender: No OFD packet to send [00:41:17]OFD Sender: No OFD packet to send [00:41:22]OFD Sender: No OFD packet to send [00:41:27]OFD Sender: No OFD packet to send [00:41:32]OFD Sender: No OFD packet to send [00:41:37]OFD Sender: No OFD packet to send [00:41:42]OFD Sender: No OFD packet to send [00:41:47]OFD Sender: No OFD packet to send [00:41:52]OFD Sender: No OFD packet to send [00:41:57]OFD Sender: No OFD packet to send [00:42:02]OFD Sender: No OFD packet to send [00:42:07]OFD Sender: No OFD packet to send [00:42:12]OFD Sender: No OFD packet to send [00:42:17]OFD Sender: No OFD packet to send [00:42:22]OFD Sender: No OFD packet to send [00:42:27]OFD Sender: No OFD packet to send [00:42:32]OFD Sender: No OFD packet to send [00:42:37]OFD Sender: No OFD packet to send [00:42:42]OFD Sender: No OFD packet to send [00:42:47]OFD Sender: No OFD packet to send [00:42:52]OFD Sender: No OFD packet to send [00:42:57]OFD Sender: No OFD packet to send [00:43:02]OFD Sender: No OFD packet to send [00:43:07]OFD Sender: No OFD packet to send [00:43:12]OFD Sender: No OFD packet to send [00:43:17]OFD Sender: No OFD packet to send [00:43:22]OFD Sender: No OFD packet to send [00:43:27]OFD Sender: No OFD packet to send [00:43:32]OFD Sender: No OFD packet to send [00:43:35]accept exits with 9 [00:43:35]New connection [00:43:35]New thread 3067104612 created [00:43:35]Thread 3067247972 joined [00:43:35]Waiting for new connection... [00:43:35] Sock 9.Parse request [00:43:35]Sock 9.Check first char [00:43:35]Sock 9.First char is OK [00:43:35]request: POST /json_proto HTTP/1.0 [00:43:35]Method: POST [00:43:35]URL: /json_proto [00:43:35]Method is POST - this is cgi request [00:43:35]url: /json_proto [00:43:35]query_string will be loaded in cgi processing [00:43:35]execute_cgi json_proto POST (null) [00:43:35]execute_cgi path=json_proto method=POST [00:43:35]POST find Content-Length [00:43:35]Host: 172.17.55.133:8080 [00:43:35]Content-Length: 801 [00:43:35]Content-Type: application/json [00:43:35] [00:43:35]POST finish read [00:43:35]Found Content-Length = 801 [00:43:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036591", "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" : 74.20, "quantity" : 4.720, "sum" : 350.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 350.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:43:35]execute_script... [00:43: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)1036591", "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" : 74.20, "quantity" : 4.720, "sum" : 350.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 350.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:43:35]POST & json_proto [00:43:35]process_json_proto [00:43:35]json parsed OK: [00:43:35]protocol is kg_v1.0 [00:43:35]action value=close_receipt [00:43:35]process_action close_receipt [00:43:35]cmd_close_receipt [00:43:35]MH_GetDate [00:43:35]Write to MH i2c: F0 00 00 CF 02 C0 [00:43:35]Write i2c OK [00:43:35]MH_I2C_Read... [00:43:35]Read from MH i2c: F0 [00:43:35]MH_I2C_Read... [00:43:35]Read from MH i2c: F0 09 00 [00:43:35]MH_I2C_Read... [00:43:35]Read from MH i2c: F0 09 00 CF 02 00 37 95 C2 66 34 48 D8 65 76 [00:43:35]GetLastDocTimeStamp 1724028059 [00:43:35]current date 1724028215 [00:43:35]FM_GetShiftState [00:43:35]SAM_PROTO_GetShiftState [00:43:35]wFMCommunicate request_size=4 [00:43:35]MH_SAM_APDU [00:43:35]CAPDU: 80 13 01 00 [00:43:35]Write to MH i2c: E2 08 00 D0 02 80 13 01 00 00 00 00 00 4F [00:43:35]Write i2c OK [00:43:35]MH_I2C_Read... [00:43:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:43:35]Read from MH i2c: E2 [00:43:35]MH_I2C_Read... [00:43:35]Read from MH i2c: E2 0E 00 [00:43:35]MH_I2C_Read... [00:43:35]Read from MH i2c: E2 0E 00 D0 02 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 E5 [00:43:35]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [00:43:35]wFMCommunicate OK [00:43:35]SAM_PROTO_GetShiftState done [00:43:35]FM_GetShiftState done [00:43:35]opened in 1724027600 [00:43:35]opened+sec_in_day 1724114000 [00:43:35]quantity*price = 35022 [00:43:35]sum+1 = 35023 [00:43:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 350.22 НСП 1% : 3.10 НДС 12% : 37.19 Наличными: 0.00 Безнал.: 350.22 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 5 19.08.2024 00:43 Смена: 450 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 261037 ФПД: 180924278970506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T004335&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261037&fm=180924278970506&tin=02508201610067®Number=0000000000091865&sum=35022 [00:43:36]StoreToDocumentArchive [00:43:36]shift 450 fd 261037 [00:43:36]save to /storage/0450/doc_00261037 [00:43:36]save last doc name /storage/0450/doc_00261037 to /storage/kkm_last_doc_name [00:43:36]save OK [00:43:36]Clear old archive folders... [00:43:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:43:36]tlvbuf is 00A0EC20 [00:43:36]SAM_PROTO_ClearQueue [00:43:36]wFMCommunicate request_size=4 [00:43:36]MH_SAM_APDU [00:43:36]CAPDU: 80 09 00 00 [00:43:36]Write to MH i2c: E2 08 00 DD 02 80 09 00 00 00 00 00 00 51 [00:43:36]Write i2c OK [00:43:36]MH_I2C_Read... [00:43:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:43:36]Read from MH i2c: E2 [00:43:36]MH_I2C_Read... [00:43:36]Read from MH i2c: E2 03 00 [00:43:36]MH_I2C_Read... [00:43:36]Read from MH i2c: E2 03 00 DD 02 00 90 00 53 [00:43:36]RAPDU: 90 00 [00:43:36]wFMCommunicate OK [00:43:36]SAM_PROTO_ClearQueue done [00:43:36]KKMCreateOFDPacket [00:43:36]OFDProtocolAddRootSTLVToBuf [00:43:36]FM_MakeSignedData [00:43:36]FM_MakeSignedData [00:43:36]SAM_PROTO_SignData [00:43:36]wFMCommunicate request_size=4 [00:43:36]MH_SAM_APDU [00:43:36]CAPDU: 80 0D 01 02 [00:43:36]Write to MH i2c: E2 08 00 DE 02 80 0D 01 02 00 00 00 00 59 [00:43:36]Write i2c OK [00:43:36]MH_I2C_Read... [00:43:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:43:36]Read from MH i2c: E2 [00:43:36]MH_I2C_Read... [00:43:36]Read from MH i2c: E2 03 00 [00:43:36]MH_I2C_Read... [00:43:36]Read from MH i2c: E2 03 00 DE 02 00 90 00 54 [00:43:36]RAPDU: 90 00 [00:43:36]wFMCommunicate OK [00:43:36]wFMCommunicate request_size=255 [00:43:36]MH_SAM_APDU [00:43: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 70 12 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 CE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CE 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 87 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CE 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 37 95 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AD FB 03 00 35 04 06 00 A4 [00:43:36]Write to MH i2c: E2 02 01 DF 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 70 12 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 CE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CE 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 87 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CE 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 37 95 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AD FB 03 00 35 04 06 00 A4 00 00 D8 [00:43:36]Write i2c OK [00:43:36]MH_I2C_Read... [00:43:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:43:36]Read from MH i2c: E2 [00:43:36]MH_I2C_Read... [00:43:36]Read from MH i2c: E2 03 00 [00:43:36]MH_I2C_Read... [00:43:36]Read from MH i2c: E2 03 00 DF 02 00 90 00 55 [00:43:36]RAPDU: 90 00 [00:43:36]wFMCommunicate OK [00:43:36]wFMCommunicate request_size=10 [00:43:36]MH_SAM_APDU [00:43:36]CAPDU: 80 0D 02 02 05 8C B7 61 18 8A [00:43:36]Write to MH i2c: E2 0D 00 E0 02 80 0D 02 02 05 00 8C B7 61 18 8A 00 00 AC [00:43:36]Write i2c OK [00:43:36]MH_I2C_Read... [00:43:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:43:36]Read from MH i2c: E2 [00:43:36]MH_I2C_Read... [00:43:36]Read from MH i2c: E2 03 00 [00:43:36]MH_I2C_Read... [00:43:36]Read from MH i2c: E2 03 00 E0 02 00 90 00 56 [00:43:36]RAPDU: 90 00 [00:43:36]wFMCommunicate OK [00:43:36]wFMCommunicate request_size=4 [00:43:36]MH_SAM_APDU [00:43:36]CAPDU: 80 0D 03 02 [00:43:36]Write to MH i2c: E2 08 00 E1 02 80 0D 03 02 00 00 00 00 5E [00:43:36]Write i2c OK [00:43:36]MH_I2C_Read... [00:43:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:43:36]Read from MH i2c: E2 [00:43:36]MH_I2C_Read... [00:43:36]Read from MH i2c: E2 0B 00 [00:43:36]MH_I2C_Read... [00:43:36]Read from MH i2c: E2 0B 00 E1 02 00 5D C6 44 0C 0F 9F 21 6E 90 00 0F [00:43:36]RAPDU: 5D C6 44 0C 0F 9F 21 6E 90 00 [00:43:36]wFMCommunicate OK [00:43:36]SAM_PROTO_SignData done [00:43:36]FM_MakeSignedData done [00:43:36]CreateOFDProtocolMessage [00:43:36]wFMCommunicate request_size=4 [00:43:36]MH_SAM_APDU [00:43:36]CAPDU: 80 11 00 00 [00:43:36]Write to MH i2c: E2 08 00 E2 02 80 11 00 00 00 00 00 00 5E [00:43:36]Write i2c OK [00:43:36]MH_I2C_Read... [00:43:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:43:36]Read from MH i2c: E2 [00:43:36]MH_I2C_Read... [00:43:36]Read from MH i2c: E2 17 00 [00:43:36]MH_I2C_Read... [00:43:36]Read from MH i2c: E2 17 00 E2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 AB [00:43:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [00:43:36]wFMCommunicate OK [00:43:36]CreateOFDProtocolMessage done [00:43:36]OFDSenderStorePacket 261037 [00:43:36]StoreOFDPacket docnum=261037 [00:43:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 05 98 07 01 62 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 70 12 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 CE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CE 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 87 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CE 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 37 95 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AD FB 03 00 35 04 06 00 A4 8C B7 61 18 8A 5D C6 44 0C 0F 9F 21 6E [00:43:36]CheckFolder [00:43:36]dirname=/storage/ofd_packets [00:43:36]CheckFolder done [00:43:36]ProducePacketName [00:43:36]name=ofd_packets/00261037 [00:43:36]NVStorageSaveData ofd_packets/00261037 [00:43:36]File name is /storage/ofd_packets/00261037 [00:43:36]Write 301 bytes [00:43:36]NVStorageSaveData done [00:43:36]OFDSenderStorePacket done [00:43:36]KKMCreateOFDPacket done [00:43:36]NVStorageSaveData kkm_last_timestamp [00:43:36]File name is /storage/kkm_last_timestamp [00:43:36]Write 4 bytes [00:43:36]NVStorageSaveData done [00:43:36]ExternCall_PrintAddStr [00:43:36]wPrintStart [00:43:36]Write to MH i2c: 01 00 00 E3 02 E5 [00:43:36]Write i2c OK [00:43:36]MH_I2C_Read... [00:43:36]Read from MH i2c: 01 [00:43:36]MH_I2C_Read... [00:43:36]Read from MH i2c: 01 07 00 [00:43:36]MH_I2C_Read... [00:43:36]Read from MH i2c: 01 07 00 E3 02 00 00 00 00 00 FF 0F FA [00:43:36]RasterBufferAndPrint [00:43:36]line Счет N : (1)1036591 [00:43:36]line ИНН: 02508201610067 [00:43:36]line Контрольно-Кассовый Чек [00:43:36]line ПРОДАЖА [00:43:36]line ТРК (МРК, ГНК) : 13 [00:43:36]line Товар: 2710124500 [00:43:36]line Аи-95-К-5 [00:43:36]line 4.720 * 74.20 [00:43:36]line = 350.22 [00:43:36]line НДС 12% НСП 1% [00:43:36]line > о реализуемом товаре [00:43:36]line ИТОГО: 350.22 [00:43:36]line НСП 1% : 3.10 [00:43:36]line НДС 12% : 37.19 [00:43:36]line Наличными: 0.00 [00:43:36]line Безнал.: 350.22 [00:43:36]line Место: АЗС № 94 "Партнер Нефть" [00:43:36]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [00:43:36]line СНО: Общий режим [00:43:36]line Чек 5 19.08.2024 00:43 [00:43:36]line Смена: 450 ФФД: 1.0 [00:43:36]line ЗНМ: 0300000099 [00:43:36]line РНМ: 0000000000091865 [00:43:36]line Версия ККМ: 001 [00:43:36]line Платежная система: O! деньги [00:43:36]line ФМ: 0000000000871820 [00:43:36]line ФД: 261037 [00:43:36]line ФПД: 180924278970506 [00:43:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T004335&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261037&fm=180924278970506&tin=02508201610067®Number=0000000000091865&sum=35022 [00:43:37]OFD Sender: Processing packet 261037 [packets to send 192, broken 191] [00:43:37]ProducePacketName [00:43:37]name=ofd_packets/00261037 [00:43:37]OFD Sender: To server: pG, [00:43:37]CommunicateWithHost lk.salyk.kg:30040 [00:43:37]ConnectInit lk.salyk.kg [00:43:37]written 0, free lines is 4095 [00:43:37]Connected sock=10 [00:43: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 30 0F 01 00 00 05 98 07 01 62 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 70 12 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 CE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CE 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 87 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CE 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 37 95 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AD FB 03 00 35 04 06 00 A4 8C B7 61 18 8A 5D C6 44 0C 0F 9F 21 6E [00:43: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 30 4F 00 00 00 6E 93 47 00 B8 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 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 30 10 04 04 00 AD FB 03 00 F4 03 04 00 8A 3E C2 66 B6 04 01 00 00 21 6D C6 B0 91 68 45 58 [00:43:37]CommunicateWithHost err = 0 [00:43:37]CheckOFDResponse [00:43:37]1017 (14) - 77093643461234 [00:43:37]1041 (16) - 0000000000871820 [00:43:37]1040 (4) - 261037 [00:43:37]1012 (4) - 18.08.2024 18:33 [00:43:37]1206 (1) - 0 [00:43:37]OFD Sender: Remove packet 261037 [00:43:37]ProducePacketName [00:43:37]name=ofd_packets/00261037 [00:43:37]NVStorageDeleteData [00:43:37]Write to MH i2c: 01 00 00 0D 03 10 [00:43:37]Write i2c OK [00:43:37]MH_I2C_Read... [00:43:37]Read from MH i2c: 01 [00:43:37]MH_I2C_Read... [00:43:37]Read from MH i2c: 01 07 00 [00:43:37]MH_I2C_Read... [00:43:37]Read from MH i2c: 01 07 00 0D 03 00 00 00 00 00 6B 0C 8E [00:43:37]RasterBufferAndPrint [00:43:37]line [00:43:37]line [00:43:37]line [00:43:37]line [00:43:37]line [00:43:37]written 0, free lines is 3182 [00:43:37]MH_Cut [00:43:37]Write to MH i2c: D1 01 00 14 03 01 E9 [00:43:37]Write i2c OK [00:43:37]MH_I2C_Read... [00:43:37]Read from MH i2c: D1 [00:43:37]MH_I2C_Read... [00:43:37]Read from MH i2c: D1 01 00 [00:43:37]MH_I2C_Read... [00:43:37]Read from MH i2c: D1 01 00 14 03 00 E8 [00:43:37]Write to MH i2c: 01 00 00 15 03 18 [00:43:37]Write i2c OK [00:43:37]MH_I2C_Read... [00:43:38]OFD Sender: No OFD packet to send [00:43:38]*** Cut start [00:43:38]*** Purtial cut [00:43:38]*** Stage 1: CUTSNS_PIN = 1 [00:43:40]Read from MH i2c: 01 [00:43:40]MH_I2C_Read... [00:43:40]*** Stop cut motor [00:43:40]*** Cut end [00:43:40]Read from MH i2c: 01 07 00 [00:43:40]MH_I2C_Read... [00:43:40]Read from MH i2c: 01 07 00 15 03 00 00 00 00 00 FF 0F 2D [00:43:40]process_action close_receipt done [00:43:40]requested_data is exist [00:43:40]produce_requested_data [00:43:40]requested_item fm.sn is exist - process it [00:43:40]wFMCommunicate request_size=4 [00:43:40]MH_SAM_APDU [00:43:40]CAPDU: 80 11 00 00 [00:43:41]Write to MH i2c: E2 08 00 16 03 80 11 00 00 00 00 00 00 93 [00:43:41]Write i2c OK [00:43:41]MH_I2C_Read... [00:43:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:43:41]Read from MH i2c: E2 [00:43:41]MH_I2C_Read... [00:43:41]Read from MH i2c: E2 17 00 [00:43:41]MH_I2C_Read... [00:43:41]Read from MH i2c: E2 17 00 16 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E0 [00:43:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [00:43:41]wFMCommunicate OK [00:43:41]requested_item fd.num is exist - process it [00:43:41]SAM_PROTO_GetFieldsCounters [00:43:41]wFMCommunicate request_size=4 [00:43:41]MH_SAM_APDU [00:43:41]CAPDU: 80 13 00 00 [00:43:41]Write to MH i2c: E2 08 00 17 03 80 13 00 00 00 00 00 00 96 [00:43:41]Write i2c OK [00:43:41]MH_I2C_Read... [00:43:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:43:41]Read from MH i2c: E2 [00:43:41]MH_I2C_Read... [00:43:41]Read from MH i2c: E2 62 00 [00:43:41]MH_I2C_Read... [00:43:41]Read from MH i2c: E2 62 00 17 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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 AD FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [00:43: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 AD FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:43:41]wFMCommunicate OK [00:43:41]SAM_PROTO_GetFieldsCounters done [00:43:41]requested_item shift.num is exist - process it [00:43:41]requested_item shift.opened is exist - process it [00:43:41]req_shift_opened [00:43:41]FM_GetShiftState [00:43:41]SAM_PROTO_GetShiftState [00:43:41]wFMCommunicate request_size=4 [00:43:41]MH_SAM_APDU [00:43:41]CAPDU: 80 13 01 00 [00:43:41]Write to MH i2c: E2 08 00 18 03 80 13 01 00 00 00 00 00 98 [00:43:41]Write i2c OK [00:43:41]MH_I2C_Read... [00:43:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:43:41]Read from MH i2c: E2 [00:43:41]MH_I2C_Read... [00:43:41]Read from MH i2c: E2 0E 00 [00:43:41]MH_I2C_Read... [00:43:41]Read from MH i2c: E2 0E 00 18 03 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 2E [00:43:41]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [00:43:41]wFMCommunicate OK [00:43:41]SAM_PROTO_GetShiftState done [00:43:41]FM_GetShiftState done [00:43:41]req_shift_opened done [00:43:41]requested_item shift.open_date is exist - process it [00:43:41]req_shift_open_date [00:43:41]req_shift_open_date done [00:43:41]produce_requested_data done [00:43:41]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261037,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600} [00:43:41]process_action_free close_receipt [00:43:41]json_value_free [00:43:41]json_value_free done [00:43:41]process_json_proto returns [00:43:41]Send response to host [00:43:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261037,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600}}} [00:43:41]free response buf [00:43:41]execute_script done [00:43:41]execute_script returns [00:43:41]free content buf [00:43:41]Sock 9.Close socket [00:43:41]Sock 9.Thread stoped [00:43:43]OFD Sender: No OFD packet to send [00:43:48]OFD Sender: No OFD packet to send [00:43:53]OFD Sender: No OFD packet to send [00:43:57]accept exits with 7 [00:43:57]New connection [00:43:57]New thread 3067247972 created [00:43:57]Thread 3067104612 joined [00:43:57]Waiting for new connection... [00:43:57] Sock 7.Parse request [00:43:57]Sock 7.Check first char [00:43:57]Sock 7.First char is OK [00:43:57]request: POST /json_proto HTTP/1.0 [00:43:57]Method: POST [00:43:57]URL: /json_proto [00:43:57]Method is POST - this is cgi request [00:43:57]url: /json_proto [00:43:57]query_string will be loaded in cgi processing [00:43:57]execute_cgi json_proto POST (null) [00:43:57]execute_cgi path=json_proto method=POST [00:43:57]POST find Content-Length [00:43:57]Host: 172.17.55.133:8080 [00:43:57]Content-Length: 683 [00:43:57]Content-Type: application/json [00:43:57] [00:43:57]POST finish read [00:43:57]Found Content-Length = 683 [00:43:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036590", "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" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:43:57]execute_script... [00:43: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)1036590", "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" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:43:57]POST & json_proto [00:43:57]process_json_proto [00:43:57]json parsed OK: [00:43:57]protocol is kg_v1.0 [00:43:57]action value=close_receipt [00:43:57]process_action close_receipt [00:43:57]cmd_close_receipt [00:43:57]MH_GetDate [00:43:57]Write to MH i2c: F0 00 00 19 03 0B [00:43:57]Write i2c OK [00:43:57]MH_I2C_Read... [00:43:57]Read from MH i2c: F0 [00:43:57]MH_I2C_Read... [00:43:57]Read from MH i2c: F0 09 00 [00:43:57]MH_I2C_Read... [00:43:57]Read from MH i2c: F0 09 00 19 03 00 4D 95 C2 66 34 48 D8 65 D7 [00:43:57]GetLastDocTimeStamp 1724028215 [00:43:57]current date 1724028237 [00:43:57]FM_GetShiftState [00:43:57]SAM_PROTO_GetShiftState [00:43:57]wFMCommunicate request_size=4 [00:43:57]MH_SAM_APDU [00:43:57]CAPDU: 80 13 01 00 [00:43:57]Write to MH i2c: E2 08 00 1A 03 80 13 01 00 00 00 00 00 9A [00:43:57]Write i2c OK [00:43:57]MH_I2C_Read... [00:43:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:43:57]Read from MH i2c: E2 [00:43:57]MH_I2C_Read... [00:43:57]Read from MH i2c: E2 0E 00 [00:43:57]MH_I2C_Read... [00:43:57]Read from MH i2c: E2 0E 00 1A 03 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 30 [00:43:57]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [00:43:57]wFMCommunicate OK [00:43:57]SAM_PROTO_GetShiftState done [00:43:57]FM_GetShiftState done [00:43:57]opened in 1724027600 [00:43:57]opened+sec_in_day 1724114000 [00:43:57]quantity*price = 200043 [00:43:57]sum+1 = 200044 [00:43:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 6 19.08.2024 00:43 Смена: 450 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261038 ФПД: 129636587329598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T004357&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261038&fm=129636587329598&tin=02508201610067®Number=0000000000091865&sum=200000 [00:43:58]StoreToDocumentArchive [00:43:58]shift 450 fd 261038 [00:43:58]save to /storage/0450/doc_00261038 [00:43:58]save last doc name /storage/0450/doc_00261038 to /storage/kkm_last_doc_name [00:43:58]save OK [00:43:58]Clear old archive folders... [00:43:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:43:58]tlvbuf is 00A39220 [00:43:58]SAM_PROTO_ClearQueue [00:43:58]wFMCommunicate request_size=4 [00:43:58]MH_SAM_APDU [00:43:58]CAPDU: 80 09 00 00 [00:43:58]Write to MH i2c: E2 08 00 27 03 80 09 00 00 00 00 00 00 9C [00:43:58]Write i2c OK [00:43:58]MH_I2C_Read... [00:43:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:43:58]Read from MH i2c: E2 [00:43:58]MH_I2C_Read... [00:43:58]Read from MH i2c: E2 03 00 [00:43:58]MH_I2C_Read... [00:43:58]Read from MH i2c: E2 03 00 27 03 00 90 00 9E [00:43:58]RAPDU: 90 00 [00:43:58]wFMCommunicate OK [00:43:58]SAM_PROTO_ClearQueue done [00:43:58]KKMCreateOFDPacket [00:43:58]OFDProtocolAddRootSTLVToBuf [00:43:58]FM_MakeSignedData [00:43:58]FM_MakeSignedData [00:43:58]SAM_PROTO_SignData [00:43:58]wFMCommunicate request_size=4 [00:43:58]MH_SAM_APDU [00:43:58]CAPDU: 80 0D 01 02 [00:43:58]Write to MH i2c: E2 08 00 28 03 80 0D 01 02 00 00 00 00 A4 [00:43:58]Write i2c OK [00:43:58]MH_I2C_Read... [00:43:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:43:58]Read from MH i2c: E2 [00:43:58]MH_I2C_Read... [00:43:58]Read from MH i2c: E2 03 00 [00:43:58]MH_I2C_Read... [00:43:58]Read from MH i2c: E2 03 00 28 03 00 90 00 9F [00:43:58]RAPDU: 90 00 [00:43:58]wFMCommunicate OK [00:43:58]wFMCommunicate request_size=255 [00:43:58]MH_SAM_APDU [00:43: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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 4D 95 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AE FB 03 00 35 04 06 00 75 [00:43:58]Write to MH i2c: E2 02 01 29 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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 4D 95 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AE FB 03 00 35 04 06 00 75 00 00 CD [00:43:58]Write i2c OK [00:43:58]MH_I2C_Read... [00:43:59]Read from MH i2c: E2 [00:43:59]MH_I2C_Read... [00:43:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:43:59]Read from MH i2c: E2 03 00 [00:43:59]MH_I2C_Read... [00:43:59]Read from MH i2c: E2 03 00 29 03 00 90 00 A0 [00:43:59]RAPDU: 90 00 [00:43:59]wFMCommunicate OK [00:43:59]wFMCommunicate request_size=10 [00:43:59]MH_SAM_APDU [00:43:59]CAPDU: 80 0D 02 02 05 E7 5E BC D8 3E [00:43:59]Write to MH i2c: E2 0D 00 2A 03 80 0D 02 02 05 00 E7 5E BC D8 3E 00 00 C8 [00:43:59]Write i2c OK [00:43:59]MH_I2C_Read... [00:43:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:43:59]Read from MH i2c: E2 [00:43:59]MH_I2C_Read... [00:43:59]Read from MH i2c: E2 03 00 [00:43:59]MH_I2C_Read... [00:43:59]Read from MH i2c: E2 03 00 2A 03 00 90 00 A1 [00:43:59]RAPDU: 90 00 [00:43:59]wFMCommunicate OK [00:43:59]wFMCommunicate request_size=4 [00:43:59]MH_SAM_APDU [00:43:59]CAPDU: 80 0D 03 02 [00:43:59]Write to MH i2c: E2 08 00 2B 03 80 0D 03 02 00 00 00 00 A9 [00:43:59]Write i2c OK [00:43:59]MH_I2C_Read... [00:43:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:43:59]Read from MH i2c: E2 [00:43:59]MH_I2C_Read... [00:43:59]Read from MH i2c: E2 0B 00 [00:43:59]MH_I2C_Read... [00:43:59]Read from MH i2c: E2 0B 00 2B 03 00 E1 5B 2D 4A 55 93 1D 67 90 00 C9 [00:43:59]RAPDU: E1 5B 2D 4A 55 93 1D 67 90 00 [00:43:59]wFMCommunicate OK [00:43:59]SAM_PROTO_SignData done [00:43:59]FM_MakeSignedData done [00:43:59]CreateOFDProtocolMessage [00:43:59]wFMCommunicate request_size=4 [00:43:59]MH_SAM_APDU [00:43:59]CAPDU: 80 11 00 00 [00:43:59]Write to MH i2c: E2 08 00 2C 03 80 11 00 00 00 00 00 00 A9 [00:43:59]Write i2c OK [00:43:59]MH_I2C_Read... [00:43:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:43:59]Read from MH i2c: E2 [00:43:59]MH_I2C_Read... [00:43:59]Read from MH i2c: E2 17 00 [00:43:59]MH_I2C_Read... [00:43:59]Read from MH i2c: E2 17 00 2C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F6 [00:43:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [00:43:59]wFMCommunicate OK [00:43:59]CreateOFDProtocolMessage done [00:43:59]OFDSenderStorePacket 261038 [00:43:59]StoreOFDPacket docnum=261038 [00:43:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 5D 74 07 01 00 AE 5A 03 01 00 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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 4D 95 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AE FB 03 00 35 04 06 00 75 E7 5E BC D8 3E E1 5B 2D 4A 55 93 1D 67 [00:43:59]CheckFolder [00:43:59]dirname=/storage/ofd_packets [00:43:59]CheckFolder done [00:43:59]ProducePacketName [00:43:59]name=ofd_packets/00261038 [00:43:59]NVStorageSaveData ofd_packets/00261038 [00:43:59]File name is /storage/ofd_packets/00261038 [00:43:59]Write 301 bytes [00:43:59]NVStorageSaveData done [00:43:59]OFDSenderStorePacket done [00:43:59]KKMCreateOFDPacket done [00:43:59]NVStorageSaveData kkm_last_timestamp [00:43:59]File name is /storage/kkm_last_timestamp [00:43:59]Write 4 bytes [00:43:59]NVStorageSaveData done [00:43:59]ExternCall_PrintAddStr [00:43:59]wPrintStart [00:43:59]Write to MH i2c: 01 00 00 2D 03 30 [00:43:59]Write i2c OK [00:43:59]MH_I2C_Read... [00:43:59]Read from MH i2c: 01 [00:43:59]MH_I2C_Read... [00:43:59]Read from MH i2c: 01 07 00 [00:43:59]MH_I2C_Read... [00:43:59]Read from MH i2c: 01 07 00 2D 03 00 00 00 00 00 FF 0F 45 [00:43:59]RasterBufferAndPrint [00:43:59]line Счет N : (1)1036590 [00:43:59]line ИНН: 02508201610067 [00:43:59]line Контрольно-Кассовый Чек [00:43:59]line ПРОДАЖА [00:43:59]line ТРК (МРК, ГНК) : 23 [00:43:59]line Товар: 2710124500 [00:43:59]line Аи-95-К-5 [00:43:59]line 26.960 * 74.20 [00:43:59]line = 2000.43 [00:43:59]line НДС 12% НСП 1% [00:43:59]line > о реализуемом товаре [00:43:59]line ОКРУГЛЕНИЕ: -0.43 [00:43:59]line ИТОГО: 2000.00 [00:43:59]line Внесено: 2000.00 [00:43:59]line СДАЧА: 0.00 [00:43:59]line НСП 1% : 17.70 [00:43:59]line НДС 12% : 212.43 [00:43:59]line Наличными: 2000.00 [00:43:59]line Безнал.: 0.00 [00:43:59]line Место: АЗС № 94 "Партнер Нефть" [00:43:59]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [00:43:59]line СНО: Общий режим [00:43:59]line Чек 6 19.08.2024 00:43 [00:43:59]line Смена: 450 ФФД: 1.0 [00:43:59]line ЗНМ: 0300000099 [00:43:59]line РНМ: 0000000000091865 [00:43:59]line Версия ККМ: 001 [00:43:59]line ФМ: 0000000000871820 [00:43:59]line ФД: 261038 [00:43:59]line ФПД: 129636587329598 [00:43:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T004357&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261038&fm=129636587329598&tin=02508201610067®Number=0000000000091865&sum=200000 [00:43:59]written 0, free lines is 4095 [00:43:59]OFD Sender: Processing packet 261038 [packets to send 192, broken 191] [00:43:59]ProducePacketName [00:43:59]name=ofd_packets/00261038 [00:43:59]OFD Sender: To server: pG, [00:43:59]CommunicateWithHost lk.salyk.kg:30040 [00:43:59]ConnectInit lk.salyk.kg [00:43:59]Connected sock=10 [00:43: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 30 0F 01 00 00 5D 74 07 01 00 AE 5A 03 01 00 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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 4D 95 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AE FB 03 00 35 04 06 00 75 E7 5E BC D8 3E E1 5B 2D 4A 55 93 1D 67 [00:43: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 30 4F 00 00 00 14 31 47 00 81 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 30 10 04 04 00 AE FB 03 00 F4 03 04 00 A1 3E C2 66 B6 04 01 00 00 66 CD 3C 81 7F B8 1F F5 [00:43:59]CommunicateWithHost err = 0 [00:43:59]CheckOFDResponse [00:43:59]1017 (14) - 77093643461234 [00:43:59]1041 (16) - 0000000000871820 [00:43:59]1040 (4) - 261038 [00:43:59]1012 (4) - 18.08.2024 18:34 [00:43:59]1206 (1) - 0 [00:43:59]OFD Sender: Remove packet 261038 [00:43:59]ProducePacketName [00:43:59]name=ofd_packets/00261038 [00:43:59]NVStorageDeleteData [00:43:59]Write to MH i2c: 01 00 00 58 03 5B [00:43:59]Write i2c OK [00:43:59]MH_I2C_Read... [00:43:59]Read from MH i2c: 01 [00:43:59]MH_I2C_Read... [00:43:59]Read from MH i2c: 01 07 00 [00:43:59]MH_I2C_Read... [00:43:59]Read from MH i2c: 01 07 00 58 03 00 00 00 00 00 55 0C C3 [00:43:59]RasterBufferAndPrint [00:43:59]line [00:43:59]line [00:43:59]line [00:43:59]line [00:43:59]line [00:43:59]written 0, free lines is 3161 [00:43:59]MH_Cut [00:43:59]Write to MH i2c: D1 01 00 5F 03 01 34 [00:43:59]Write i2c OK [00:43:59]MH_I2C_Read... [00:43:59]Read from MH i2c: D1 [00:43:59]MH_I2C_Read... [00:43:59]Read from MH i2c: D1 01 00 [00:43:59]MH_I2C_Read... [00:43:59]Read from MH i2c: D1 01 00 5F 03 00 33 [00:43:59]Write to MH i2c: 01 00 00 60 03 63 [00:43:59]Write i2c OK [00:43:59]MH_I2C_Read... [00:44:00]OFD Sender: No OFD packet to send [00:44:01]*** Cut start [00:44:01]*** Purtial cut [00:44:01]*** Stage 1: CUTSNS_PIN = 1 [00:44:03]Read from MH i2c: 01 [00:44:03]MH_I2C_Read... [00:44:03]*** Stop cut motor [00:44:03]*** Cut end [00:44:03]Read from MH i2c: 01 07 00 [00:44:03]MH_I2C_Read... [00:44:03]Read from MH i2c: 01 07 00 60 03 00 00 00 00 00 FF 0F 78 [00:44:03]process_action close_receipt done [00:44:03]requested_data is exist [00:44:03]produce_requested_data [00:44:03]requested_item fm.sn is exist - process it [00:44:03]wFMCommunicate request_size=4 [00:44:03]MH_SAM_APDU [00:44:03]CAPDU: 80 11 00 00 [00:44:03]Write to MH i2c: E2 08 00 61 03 80 11 00 00 00 00 00 00 DE [00:44:03]Write i2c OK [00:44:03]MH_I2C_Read... [00:44:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:44:03]Read from MH i2c: E2 [00:44:03]MH_I2C_Read... [00:44:03]Read from MH i2c: E2 17 00 [00:44:03]MH_I2C_Read... [00:44:03]Read from MH i2c: E2 17 00 61 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 2B [00:44:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [00:44:03]wFMCommunicate OK [00:44:03]requested_item fd.num is exist - process it [00:44:03]SAM_PROTO_GetFieldsCounters [00:44:03]wFMCommunicate request_size=4 [00:44:03]MH_SAM_APDU [00:44:03]CAPDU: 80 13 00 00 [00:44:03]Write to MH i2c: E2 08 00 62 03 80 13 00 00 00 00 00 00 E1 [00:44:03]Write i2c OK [00:44:03]MH_I2C_Read... [00:44:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:44:03]Read from MH i2c: E2 [00:44:03]MH_I2C_Read... [00:44:03]Read from MH i2c: E2 62 00 [00:44:03]MH_I2C_Read... [00:44:03]Read from MH i2c: E2 62 00 62 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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 AE FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [00:44: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 AE FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:44:03]wFMCommunicate OK [00:44:03]SAM_PROTO_GetFieldsCounters done [00:44:03]requested_item shift.num is exist - process it [00:44:03]requested_item shift.opened is exist - process it [00:44:03]req_shift_opened [00:44:03]FM_GetShiftState [00:44:03]SAM_PROTO_GetShiftState [00:44:03]wFMCommunicate request_size=4 [00:44:03]MH_SAM_APDU [00:44:03]CAPDU: 80 13 01 00 [00:44:03]Write to MH i2c: E2 08 00 63 03 80 13 01 00 00 00 00 00 E3 [00:44:03]Write i2c OK [00:44:03]MH_I2C_Read... [00:44:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:44:03]Read from MH i2c: E2 [00:44:03]MH_I2C_Read... [00:44:03]Read from MH i2c: E2 0E 00 [00:44:03]MH_I2C_Read... [00:44:03]Read from MH i2c: E2 0E 00 63 03 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 79 [00:44:03]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [00:44:03]wFMCommunicate OK [00:44:03]SAM_PROTO_GetShiftState done [00:44:03]FM_GetShiftState done [00:44:03]req_shift_opened done [00:44:03]requested_item shift.open_date is exist - process it [00:44:03]req_shift_open_date [00:44:03]req_shift_open_date done [00:44:03]produce_requested_data done [00:44:03]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261038,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600} [00:44:03]process_action_free close_receipt [00:44:03]json_value_free [00:44:03]json_value_free done [00:44:03]process_json_proto returns [00:44:03]Send response to host [00:44:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261038,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600}}} [00:44:03]free response buf [00:44:03]execute_script done [00:44:03]execute_script returns [00:44:03]free content buf [00:44:03]Sock 7.Close socket [00:44:03]Sock 7.Thread stoped [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:44]accept exits with 9 [00:48:44]New connection [00:48:44]New thread 3067104612 created [00:48:44]Thread 3067247972 joined [00:48:44]Waiting for new connection... [00:48:44] Sock 9.Parse request [00:48:44]Sock 9.Check first char [00:48:44]Sock 9.First char is OK [00:48:44]request: POST /json_proto HTTP/1.0 [00:48:44]Method: POST [00:48:44]URL: /json_proto [00:48:44]Method is POST - this is cgi request [00:48:44]url: /json_proto [00:48:44]query_string will be loaded in cgi processing [00:48:44]execute_cgi json_proto POST (null) [00:48:44]execute_cgi path=json_proto method=POST [00:48:44]POST find Content-Length [00:48:44]Host: 172.17.55.133:8080 [00:48:44]Content-Length: 688 [00:48:44]Content-Type: application/json [00:48:44] [00:48:44]POST finish read [00:48:44]Found Content-Length = 688 [00:48:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:48:44]execute_script... [00:48: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)1036592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:48:44]POST & json_proto [00:48:44]process_json_proto [00:48:44]json parsed OK: [00:48:44]protocol is kg_v1.0 [00:48:44]action value=close_receipt [00:48:44]process_action close_receipt [00:48:44]cmd_close_receipt [00:48:44]MH_GetDate [00:48:44]Write to MH i2c: F0 00 00 64 03 56 [00:48:44]Write i2c OK [00:48:44]MH_I2C_Read... [00:48:44]Read from MH i2c: F0 [00:48:44]MH_I2C_Read... [00:48:44]Read from MH i2c: F0 09 00 [00:48:44]MH_I2C_Read... [00:48:44]Read from MH i2c: F0 09 00 64 03 00 6C 96 C2 66 34 48 D8 65 42 [00:48:44]GetLastDocTimeStamp 1724028237 [00:48:44]current date 1724028524 [00:48:44]FM_GetShiftState [00:48:44]SAM_PROTO_GetShiftState [00:48:44]wFMCommunicate request_size=4 [00:48:44]MH_SAM_APDU [00:48:44]CAPDU: 80 13 01 00 [00:48:44]Write to MH i2c: E2 08 00 65 03 80 13 01 00 00 00 00 00 E5 [00:48:44]Write i2c OK [00:48:44]MH_I2C_Read... [00:48:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:44]Read from MH i2c: E2 [00:48:44]MH_I2C_Read... [00:48:44]Read from MH i2c: E2 0E 00 [00:48:44]MH_I2C_Read... [00:48:44]Read from MH i2c: E2 0E 00 65 03 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 7B [00:48:44]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [00:48:44]wFMCommunicate OK [00:48:44]SAM_PROTO_GetShiftState done [00:48:44]FM_GetShiftState done [00:48:44]opened in 1724027600 [00:48:44]opened+sec_in_day 1724114000 [00:48:44]quantity*price = 150037 [00:48:44]sum+1 = 150039 [00:48:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 7 19.08.2024 00:48 Смена: 450 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261039 ФПД: 248419782696674 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T004844&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261039&fm=248419782696674&tin=02508201610067®Number=0000000000091865&sum=150000 [00:48:45]StoreToDocumentArchive [00:48:45]shift 450 fd 261039 [00:48:45]save to /storage/0450/doc_00261039 [00:48:45]save last doc name /storage/0450/doc_00261039 to /storage/kkm_last_doc_name [00:48:45]save OK [00:48:45]Clear old archive folders... [00:48:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:48:45]tlvbuf is 00A4BDE0 [00:48:45]SAM_PROTO_ClearQueue [00:48:45]wFMCommunicate request_size=4 [00:48:45]MH_SAM_APDU [00:48:45]CAPDU: 80 09 00 00 [00:48:45]Write to MH i2c: E2 08 00 72 03 80 09 00 00 00 00 00 00 E7 [00:48:45]Write i2c OK [00:48:45]MH_I2C_Read... [00:48:45]Read from MH i2c: E2 [00:48:45]MH_I2C_Read... [00:48:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:48:45]Read from MH i2c: E2 03 00 [00:48:45]MH_I2C_Read... [00:48:45]Read from MH i2c: E2 03 00 72 03 00 90 00 E9 [00:48:45]RAPDU: 90 00 [00:48:45]wFMCommunicate OK [00:48:45]SAM_PROTO_ClearQueue done [00:48:45]KKMCreateOFDPacket [00:48:45]OFDProtocolAddRootSTLVToBuf [00:48:45]FM_MakeSignedData [00:48:45]FM_MakeSignedData [00:48:45]SAM_PROTO_SignData [00:48:45]wFMCommunicate request_size=4 [00:48:45]MH_SAM_APDU [00:48:45]CAPDU: 80 0D 01 02 [00:48:45]Write to MH i2c: E2 08 00 73 03 80 0D 01 02 00 00 00 00 EF [00:48:45]Write i2c OK [00:48:45]MH_I2C_Read... [00:48:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:48:45]Read from MH i2c: E2 [00:48:45]MH_I2C_Read... [00:48:45]Read from MH i2c: E2 03 00 [00:48:45]MH_I2C_Read... [00:48:45]Read from MH i2c: E2 03 00 73 03 00 90 00 EA [00:48:45]RAPDU: 90 00 [00:48:45]wFMCommunicate OK [00:48:45]wFMCommunicate request_size=255 [00:48:45]MH_SAM_APDU [00:48:45]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 6C 96 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AF FB 03 00 35 04 06 00 [00:48:45]Write to MH i2c: E2 02 01 74 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 6C 96 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AF FB 03 00 35 04 06 00 00 00 71 [00:48:45]Write i2c OK [00:48:45]MH_I2C_Read... [00:48:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:45]Read from MH i2c: E2 [00:48:45]MH_I2C_Read... [00:48:45]Read from MH i2c: E2 03 00 [00:48:45]MH_I2C_Read... [00:48:45]Read from MH i2c: E2 03 00 74 03 00 90 00 EB [00:48:45]RAPDU: 90 00 [00:48:45]wFMCommunicate OK [00:48:45]wFMCommunicate request_size=11 [00:48:45]MH_SAM_APDU [00:48:45]CAPDU: 80 0D 02 02 06 E1 EF BC E7 1E E2 [00:48:45]Write to MH i2c: E2 0E 00 75 03 80 0D 02 02 06 00 E1 EF BC E7 1E E2 00 00 71 [00:48:45]Write i2c OK [00:48:45]MH_I2C_Read... [00:48:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:45]Read from MH i2c: E2 [00:48:45]MH_I2C_Read... [00:48:45]Read from MH i2c: E2 03 00 [00:48:45]MH_I2C_Read... [00:48:45]Read from MH i2c: E2 03 00 75 03 00 90 00 EC [00:48:45]RAPDU: 90 00 [00:48:45]wFMCommunicate OK [00:48:45]wFMCommunicate request_size=4 [00:48:45]MH_SAM_APDU [00:48:45]CAPDU: 80 0D 03 02 [00:48:45]Write to MH i2c: E2 08 00 76 03 80 0D 03 02 00 00 00 00 F4 [00:48:45]Write i2c OK [00:48:45]MH_I2C_Read... [00:48:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:48:45]Read from MH i2c: E2 [00:48:45]MH_I2C_Read... [00:48:45]Read from MH i2c: E2 0B 00 [00:48:45]MH_I2C_Read... [00:48:45]Read from MH i2c: E2 0B 00 76 03 00 1A 46 C9 5B 59 8D F9 23 90 00 7B [00:48:45]RAPDU: 1A 46 C9 5B 59 8D F9 23 90 00 [00:48:45]wFMCommunicate OK [00:48:45]SAM_PROTO_SignData done [00:48:45]FM_MakeSignedData done [00:48:45]CreateOFDProtocolMessage [00:48:45]wFMCommunicate request_size=4 [00:48:45]MH_SAM_APDU [00:48:45]CAPDU: 80 11 00 00 [00:48:45]Write to MH i2c: E2 08 00 77 03 80 11 00 00 00 00 00 00 F4 [00:48:45]Write i2c OK [00:48:45]MH_I2C_Read... [00:48:45]OFD Sender: No OFD packet to send [00:48:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:45]Read from MH i2c: E2 [00:48:45]MH_I2C_Read... [00:48:45]Read from MH i2c: E2 17 00 [00:48:45]MH_I2C_Read... [00:48:45]Read from MH i2c: E2 17 00 77 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 41 [00:48:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [00:48:45]wFMCommunicate OK [00:48:45]CreateOFDProtocolMessage done [00:48:45]OFDSenderStorePacket 261039 [00:48:45]StoreOFDPacket docnum=261039 [00:48:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 01 00 00 27 ED 08 01 C5 3A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 6C 96 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AF FB 03 00 35 04 06 00 E1 EF BC E7 1E E2 1A 46 C9 5B 59 8D F9 23 [00:48:45]CheckFolder [00:48:45]dirname=/storage/ofd_packets [00:48:45]CheckFolder done [00:48:45]ProducePacketName [00:48:45]name=ofd_packets/00261039 [00:48:45]NVStorageSaveData ofd_packets/00261039 [00:48:45]File name is /storage/ofd_packets/00261039 [00:48:45]Write 302 bytes [00:48:45]NVStorageSaveData done [00:48:45]OFDSenderStorePacket done [00:48:45]KKMCreateOFDPacket done [00:48:45]NVStorageSaveData kkm_last_timestamp [00:48:45]File name is /storage/kkm_last_timestamp [00:48:45]Write 4 bytes [00:48:45]NVStorageSaveData done [00:48:45]ExternCall_PrintAddStr [00:48:45]wPrintStart [00:48:45]Write to MH i2c: 01 00 00 78 03 7B [00:48:45]Write i2c OK [00:48:45]MH_I2C_Read... [00:48:45]Read from MH i2c: 01 [00:48:45]MH_I2C_Read... [00:48:45]Read from MH i2c: 01 07 00 [00:48:45]MH_I2C_Read... [00:48:45]Read from MH i2c: 01 07 00 78 03 00 00 00 00 00 FF 0F 90 [00:48:45]RasterBufferAndPrint [00:48:45]line Счет N : (1)1036592 [00:48:45]line ИНН: 02508201610067 [00:48:45]line Контрольно-Кассовый Чек [00:48:45]line ПРОДАЖА [00:48:45]line ТРК (МРК, ГНК) : 43 [00:48:45]line Товар: 2710194210 [00:48:45]line ДТ(л)-К-4 [00:48:45]line 19.690 * 76.20 [00:48:45]line = 1500.38 [00:48:45]line НДС 12% НСП 1% [00:48:45]line > о реализуемом товаре [00:48:45]line ОКРУГЛЕНИЕ: -0.38 [00:48:45]line ИТОГО: 1500.00 [00:48:45]line Внесено: 1500.00 [00:48:45]line СДАЧА: 0.00 [00:48:45]line НСП 1% : 13.28 [00:48:45]line НДС 12% : 159.33 [00:48:45]line Наличными: 1500.00 [00:48:45]line Безнал.: 0.00 [00:48:45]line Место: АЗС № 94 "Партнер Нефть" [00:48:45]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [00:48:45]line СНО: Общий режим [00:48:45]line Чек 7 19.08.2024 00:48 [00:48:45]line Смена: 450 ФФД: 1.0 [00:48:45]line ЗНМ: 0300000099 [00:48:45]line РНМ: 0000000000091865 [00:48:45]line Версия ККМ: 001 [00:48:45]line ФМ: 0000000000871820 [00:48:45]line ФД: 261039 [00:48:45]line ФПД: 248419782696674 [00:48:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T004844&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261039&fm=248419782696674&tin=02508201610067®Number=0000000000091865&sum=150000 [00:48:46]OFD Sender: Processing packet 261039 [packets to send 192, broken 191] [00:48:46]ProducePacketName [00:48:46]name=ofd_packets/00261039 [00:48:46]OFD Sender: To server: pG, [00:48:46]CommunicateWithHost lk.salyk.kg:30040 [00:48:46]ConnectInit lk.salyk.kg [00:48:46]written 0, free lines is 4095 [00:48:46]Connected sock=10 [00:48: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 30 10 01 00 00 27 ED 08 01 C5 3A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 6C 96 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 AF FB 03 00 35 04 06 00 E1 EF BC E7 1E E2 1A 46 C9 5B 59 8D F9 23 [00:48: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 30 4F 00 00 00 77 57 47 00 A8 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 30 10 04 04 00 AF FB 03 00 F4 03 04 00 BF 3F C2 66 B6 04 01 00 00 E5 69 A4 5A 4A FB 93 B7 [00:48:46]CommunicateWithHost err = 0 [00:48:46]CheckOFDResponse [00:48:46]1017 (14) - 77093643461234 [00:48:46]1041 (16) - 0000000000871820 [00:48:46]1040 (4) - 261039 [00:48:46]1012 (4) - 18.08.2024 18:38 [00:48:46]1206 (1) - 0 [00:48:46]OFD Sender: Remove packet 261039 [00:48:46]ProducePacketName [00:48:46]name=ofd_packets/00261039 [00:48:46]NVStorageDeleteData [00:48:46]Write to MH i2c: 01 00 00 A3 03 A6 [00:48:46]Write i2c OK [00:48:46]MH_I2C_Read... [00:48:46]Read from MH i2c: 01 [00:48:46]MH_I2C_Read... [00:48:46]Read from MH i2c: 01 07 00 [00:48:46]MH_I2C_Read... [00:48:46]Read from MH i2c: 01 07 00 A3 03 00 00 00 00 00 4F 0C 08 [00:48:46]RasterBufferAndPrint [00:48:46]line [00:48:46]line [00:48:46]line [00:48:46]line [00:48:46]line [00:48:46]written 0, free lines is 3154 [00:48:46]MH_Cut [00:48:46]Write to MH i2c: D1 01 00 AA 03 01 7F [00:48:46]Write i2c OK [00:48:46]MH_I2C_Read... [00:48:46]Read from MH i2c: D1 [00:48:46]MH_I2C_Read... [00:48:46]Read from MH i2c: D1 01 00 [00:48:46]MH_I2C_Read... [00:48:46]Read from MH i2c: D1 01 00 AA 03 00 7E [00:48:46]Write to MH i2c: 01 00 00 AB 03 AE [00:48:46]Write i2c OK [00:48:46]MH_I2C_Read... [00:48:46]OFD Sender: No OFD packet to send [00:48:47]*** Cut start [00:48:47]*** Purtial cut [00:48:47]*** Stage 1: CUTSNS_PIN = 1 [00:48:49]*** Stop cut motor [00:48:49]*** Cut end [00:48:49]Read from MH i2c: 01 [00:48:49]MH_I2C_Read... [00:48:49]Read from MH i2c: 01 07 00 [00:48:49]MH_I2C_Read... [00:48:49]Read from MH i2c: 01 07 00 AB 03 00 00 00 00 00 FF 0F C3 [00:48:49]process_action close_receipt done [00:48:49]requested_data is exist [00:48:49]produce_requested_data [00:48:49]requested_item fm.sn is exist - process it [00:48:49]wFMCommunicate request_size=4 [00:48:49]MH_SAM_APDU [00:48:49]CAPDU: 80 11 00 00 [00:48:49]Write to MH i2c: E2 08 00 AC 03 80 11 00 00 00 00 00 00 29 [00:48:49]Write i2c OK [00:48:49]MH_I2C_Read... [00:48:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:49]Read from MH i2c: E2 [00:48:49]MH_I2C_Read... [00:48:49]Read from MH i2c: E2 17 00 [00:48:49]MH_I2C_Read... [00:48:49]Read from MH i2c: E2 17 00 AC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 76 [00:48:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [00:48:49]wFMCommunicate OK [00:48:49]requested_item fd.num is exist - process it [00:48:49]SAM_PROTO_GetFieldsCounters [00:48:49]wFMCommunicate request_size=4 [00:48:49]MH_SAM_APDU [00:48:49]CAPDU: 80 13 00 00 [00:48:49]Write to MH i2c: E2 08 00 AD 03 80 13 00 00 00 00 00 00 2C [00:48:49]Write i2c OK [00:48:49]MH_I2C_Read... [00:48:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:48:50]Read from MH i2c: E2 [00:48:50]MH_I2C_Read... [00:48:50]Read from MH i2c: E2 62 00 [00:48:50]MH_I2C_Read... [00:48:50]Read from MH i2c: E2 62 00 AD 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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 AF FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [00:48: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 AF FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:48:50]wFMCommunicate OK [00:48:50]SAM_PROTO_GetFieldsCounters done [00:48:50]requested_item shift.num is exist - process it [00:48:50]requested_item shift.opened is exist - process it [00:48:50]req_shift_opened [00:48:50]FM_GetShiftState [00:48:50]SAM_PROTO_GetShiftState [00:48:50]wFMCommunicate request_size=4 [00:48:50]MH_SAM_APDU [00:48:50]CAPDU: 80 13 01 00 [00:48:50]Write to MH i2c: E2 08 00 AE 03 80 13 01 00 00 00 00 00 2E [00:48:50]Write i2c OK [00:48:50]MH_I2C_Read... [00:48:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:50]Read from MH i2c: E2 [00:48:50]MH_I2C_Read... [00:48:50]Read from MH i2c: E2 0E 00 [00:48:50]MH_I2C_Read... [00:48:50]Read from MH i2c: E2 0E 00 AE 03 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 C4 [00:48:50]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [00:48:50]wFMCommunicate OK [00:48:50]SAM_PROTO_GetShiftState done [00:48:50]FM_GetShiftState done [00:48:50]req_shift_opened done [00:48:50]requested_item shift.open_date is exist - process it [00:48:50]req_shift_open_date [00:48:50]req_shift_open_date done [00:48:50]produce_requested_data done [00:48:50]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261039,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600} [00:48:50]process_action_free close_receipt [00:48:50]json_value_free [00:48:50]json_value_free done [00:48:50]process_json_proto returns [00:48:50]Send response to host [00:48:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261039,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600}}} [00:48:50]free response buf [00:48:50]execute_script done [00:48:50]execute_script returns [00:48:50]free content buf [00:48:50]Sock 9.Close socket [00:48:50]Sock 9.Thread stoped [00:48:51]OFD Sender: No OFD packet to send [00:48:56]OFD Sender: No OFD packet to send [00:49:01]OFD Sender: No OFD packet to send [00:49:06]OFD Sender: No OFD packet to send [00:49:11]OFD Sender: No OFD packet to send [00:49:17]OFD Sender: No OFD packet to send [00:49:22]OFD Sender: No OFD packet to send [00:49:27]OFD Sender: No OFD packet to send [00:49:32]OFD Sender: No OFD packet to send [00:49:37]OFD Sender: No OFD packet to send [00:49:42]OFD Sender: No OFD packet to send [00:49:47]OFD Sender: No OFD packet to send [00:49:52]OFD Sender: No OFD packet to send [00:49:57]OFD Sender: No OFD packet to send [00:50:02]OFD Sender: No OFD packet to send [00:50:07]OFD Sender: No OFD packet to send [00:50:12]OFD Sender: No OFD packet to send [00:50:17]OFD Sender: No OFD packet to send [00:50:22]OFD Sender: No OFD packet to send [00:50:27]OFD Sender: No OFD packet to send [00:50:32]OFD Sender: No OFD packet to send [00:50:37]OFD Sender: No OFD packet to send [00:50:42]OFD Sender: No OFD packet to send [00:50:47]OFD Sender: No OFD packet to send [00:50:52]OFD Sender: No OFD packet to send [00:50:57]OFD Sender: No OFD packet to send [00:51:02]OFD Sender: No OFD packet to send [00:51:07]OFD Sender: No OFD packet to send [00:51:12]OFD Sender: No OFD packet to send [00:51:17]OFD Sender: No OFD packet to send [00:51:22]OFD Sender: No OFD packet to send [00:51:27]OFD Sender: No OFD packet to send [00:51:32]OFD Sender: No OFD packet to send [00:51:37]OFD Sender: No OFD packet to send [00:51:42]OFD Sender: No OFD packet to send [00:51:47]OFD Sender: No OFD packet to send [00:51:52]OFD Sender: No OFD packet to send [00:51:57]OFD Sender: No OFD packet to send [00:52:02]OFD Sender: No OFD packet to send [00:52:07]OFD Sender: No OFD packet to send [00:52:12]OFD Sender: No OFD packet to send [00:52:17]OFD Sender: No OFD packet to send [00:52:22]OFD Sender: No OFD packet to send [00:52:27]OFD Sender: No OFD packet to send [00:52:32]OFD Sender: No OFD packet to send [00:52:37]OFD Sender: No OFD packet to send [00:52:42]OFD Sender: No OFD packet to send [00:52:47]OFD Sender: No OFD packet to send [00:52:52]OFD Sender: No OFD packet to send [00:52:57]OFD Sender: No OFD packet to send [00:53:02]OFD Sender: No OFD packet to send [00:53:07]OFD Sender: No OFD packet to send [00:53:12]OFD Sender: No OFD packet to send [00:53:17]OFD Sender: No OFD packet to send [00:53:22]OFD Sender: No OFD packet to send [00:53:27]OFD Sender: No OFD packet to send [00:53:32]OFD Sender: No OFD packet to send [00:53:37]OFD Sender: No OFD packet to send [00:53:42]OFD Sender: No OFD packet to send [00:53:47]OFD Sender: No OFD packet to send [00:53:52]OFD Sender: No OFD packet to send [00:53:57]OFD Sender: No OFD packet to send [00:54:02]OFD Sender: No OFD packet to send [00:54:07]OFD Sender: No OFD packet to send [00:54:12]OFD Sender: No OFD packet to send [00:54:17]OFD Sender: No OFD packet to send [00:54:22]OFD Sender: No OFD packet to send [00:54:27]OFD Sender: No OFD packet to send [00:54:32]OFD Sender: No OFD packet to send [00:54:37]OFD Sender: No OFD packet to send [00:54:42]OFD Sender: No OFD packet to send [00:54:47]OFD Sender: No OFD packet to send [00:54:52]OFD Sender: No OFD packet to send [00:54:57]OFD Sender: No OFD packet to send [00:55:02]OFD Sender: No OFD packet to send [00:55:07]OFD Sender: No OFD packet to send [00:55:12]OFD Sender: No OFD packet to send [00:55:17]OFD Sender: No OFD packet to send [00:55:22]OFD Sender: No OFD packet to send [00:55:27]OFD Sender: No OFD packet to send [00:55:32]OFD Sender: No OFD packet to send [00:55:37]OFD Sender: No OFD packet to send [00:55:42]OFD Sender: No OFD packet to send [00:55:47]OFD Sender: No OFD packet to send [00:55:52]OFD Sender: No OFD packet to send [00:55:57]OFD Sender: No OFD packet to send [00:56:02]OFD Sender: No OFD packet to send [00:56:07]OFD Sender: No OFD packet to send [00:56:12]OFD Sender: No OFD packet to send [00:56:17]OFD Sender: No OFD packet to send [00:56:22]OFD Sender: No OFD packet to send [00:56:27]OFD Sender: No OFD packet to send [00:56:32]OFD Sender: No OFD packet to send [00:56:37]OFD Sender: No OFD packet to send [00:56:42]OFD Sender: No OFD packet to send [00:56:47]OFD Sender: No OFD packet to send [00:56:52]OFD Sender: No OFD packet to send [00:56:57]OFD Sender: No OFD packet to send [00:57:02]OFD Sender: No OFD packet to send [00:57:07]OFD Sender: No OFD packet to send [00:57:12]OFD Sender: No OFD packet to send [00:57:17]OFD Sender: No OFD packet to send [00:57:22]OFD Sender: No OFD packet to send [00:57:27]OFD Sender: No OFD packet to send [00:57:32]OFD Sender: No OFD packet to send [00:57:37]OFD Sender: No OFD packet to send [00:57:42]OFD Sender: No OFD packet to send [00:57:47]OFD Sender: No OFD packet to send [00:57:52]OFD Sender: No OFD packet to send [00:57:57]OFD Sender: No OFD packet to send [00:58:02]OFD Sender: No OFD packet to send [00:58:07]OFD Sender: No OFD packet to send [00:58:12]OFD Sender: No OFD packet to send [00:58:17]OFD Sender: No OFD packet to send [00:58:22]OFD Sender: No OFD packet to send [00:58:26]accept exits with 7 [00:58:26]New connection [00:58:26]New thread 3067247972 created [00:58:26]Thread 3067104612 joined [00:58:26]Waiting for new connection... [00:58:26] Sock 7.Parse request [00:58:26]Sock 7.Check first char [00:58:26]Sock 7.First char is OK [00:58:26]request: POST /json_proto HTTP/1.0 [00:58:26]Method: POST [00:58:26]URL: /json_proto [00:58:26]Method is POST - this is cgi request [00:58:26]url: /json_proto [00:58:26]query_string will be loaded in cgi processing [00:58:26]execute_cgi json_proto POST (null) [00:58:26]execute_cgi path=json_proto method=POST [00:58:26]POST find Content-Length [00:58:26]Host: 172.17.55.133:8080 [00:58:26]Content-Length: 673 [00:58:26]Content-Type: application/json [00:58:26] [00:58:26]POST finish read [00:58:26]Found Content-Length = 673 [00:58:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 0.040, "sum" : 2.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 2.00, "payments": [ { "type": 0, "sum" : 2.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:58:26]execute_script... [00:58: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)1036593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 0.040, "sum" : 2.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 2.00, "payments": [ { "type": 0, "sum" : 2.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:58:26]POST & json_proto [00:58:26]process_json_proto [00:58:26]json parsed OK: [00:58:26]protocol is kg_v1.0 [00:58:26]action value=close_receipt [00:58:26]process_action close_receipt [00:58:26]cmd_close_receipt [00:58:26]MH_GetDate [00:58:26]Write to MH i2c: F0 00 00 AF 03 A1 [00:58:26]Write i2c OK [00:58:26]MH_I2C_Read... [00:58:26]Read from MH i2c: F0 [00:58:26]MH_I2C_Read... [00:58:26]Read from MH i2c: F0 09 00 [00:58:26]MH_I2C_Read... [00:58:26]Read from MH i2c: F0 09 00 AF 03 00 B3 98 C2 66 34 48 D8 65 D6 [00:58:26]GetLastDocTimeStamp 1724028524 [00:58:26]current date 1724029107 [00:58:26]FM_GetShiftState [00:58:26]SAM_PROTO_GetShiftState [00:58:26]wFMCommunicate request_size=4 [00:58:26]MH_SAM_APDU [00:58:26]CAPDU: 80 13 01 00 [00:58:26]Write to MH i2c: E2 08 00 B0 03 80 13 01 00 00 00 00 00 30 [00:58:26]Write i2c OK [00:58:26]MH_I2C_Read... [00:58:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:58:26]Read from MH i2c: E2 [00:58:26]MH_I2C_Read... [00:58:26]Read from MH i2c: E2 0E 00 [00:58:26]MH_I2C_Read... [00:58:26]Read from MH i2c: E2 0E 00 B0 03 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 C6 [00:58:26]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [00:58:26]wFMCommunicate OK [00:58:26]SAM_PROTO_GetShiftState done [00:58:26]FM_GetShiftState done [00:58:26]opened in 1724027600 [00:58:26]opened+sec_in_day 1724114000 [00:58:26]quantity*price = 271 [00:58:26]sum+1 = 272 [00:58:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 2.00 Внесено: 1000.00 СДАЧА: 998.00 НСП 1% : 0.02 НДС 12% : 0.29 Наличными: 2.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 8 19.08.2024 00:58 Смена: 450 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261040 ФПД: 211217073993056 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T005827&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261040&fm=211217073993056&tin=02508201610067®Number=0000000000091865&sum=200 [00:58:27]StoreToDocumentArchive [00:58:27]shift 450 fd 261040 [00:58:27]save to /storage/0450/doc_00261040 [00:58:27]save last doc name /storage/0450/doc_00261040 to /storage/kkm_last_doc_name [00:58:27]save OK [00:58:27]Clear old archive folders... [00:58:27]OFD Sender: No OFD packet to send [00:58:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:58:27]tlvbuf is 00A39FD0 [00:58:27]SAM_PROTO_ClearQueue [00:58:27]wFMCommunicate request_size=4 [00:58:27]MH_SAM_APDU [00:58:27]CAPDU: 80 09 00 00 [00:58:27]Write to MH i2c: E2 08 00 BD 03 80 09 00 00 00 00 00 00 32 [00:58:27]Write i2c OK [00:58:27]MH_I2C_Read... [00:58:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:58:27]Read from MH i2c: E2 [00:58:27]MH_I2C_Read... [00:58:27]Read from MH i2c: E2 03 00 [00:58:27]MH_I2C_Read... [00:58:27]Read from MH i2c: E2 03 00 BD 03 00 90 00 34 [00:58:27]RAPDU: 90 00 [00:58:27]wFMCommunicate OK [00:58:27]SAM_PROTO_ClearQueue done [00:58:27]KKMCreateOFDPacket [00:58:27]OFDProtocolAddRootSTLVToBuf [00:58:27]FM_MakeSignedData [00:58:27]FM_MakeSignedData [00:58:27]SAM_PROTO_SignData [00:58:27]wFMCommunicate request_size=4 [00:58:27]MH_SAM_APDU [00:58:27]CAPDU: 80 0D 01 02 [00:58:27]Write to MH i2c: E2 08 00 BE 03 80 0D 01 02 00 00 00 00 3A [00:58:27]Write i2c OK [00:58:27]MH_I2C_Read... [00:58:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:58:27]Read from MH i2c: E2 [00:58:27]MH_I2C_Read... [00:58:27]Read from MH i2c: E2 03 00 [00:58:27]MH_I2C_Read... [00:58:27]Read from MH i2c: E2 03 00 BE 03 00 90 00 35 [00:58:27]RAPDU: 90 00 [00:58:27]wFMCommunicate OK [00:58:27]wFMCommunicate request_size=255 [00:58:27]MH_SAM_APDU [00:58:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 00 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0F 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 00 00 00 00 00 07 04 06 00 C8 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 08 00 00 00 F4 03 04 00 B3 98 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B0 FB 03 00 35 04 06 00 C0 [00:58:27]Write to MH i2c: E2 02 01 BF 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 00 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0F 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 00 00 00 00 00 07 04 06 00 C8 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 08 00 00 00 F4 03 04 00 B3 98 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B0 FB 03 00 35 04 06 00 C0 00 00 6B [00:58:27]Write i2c OK [00:58:27]MH_I2C_Read... [00:58:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:58:28]Read from MH i2c: E2 [00:58:28]MH_I2C_Read... [00:58:28]Read from MH i2c: E2 03 00 [00:58:28]MH_I2C_Read... [00:58:28]Read from MH i2c: E2 03 00 BF 03 00 90 00 36 [00:58:28]RAPDU: 90 00 [00:58:28]wFMCommunicate OK [00:58:28]wFMCommunicate request_size=10 [00:58:28]MH_SAM_APDU [00:58:28]CAPDU: 80 0D 02 02 05 19 CE AA 75 60 [00:58:28]Write to MH i2c: E2 0D 00 C0 03 80 0D 02 02 05 00 19 CE AA 75 60 00 00 AD [00:58:28]Write i2c OK [00:58:28]MH_I2C_Read... [00:58:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:58:28]Read from MH i2c: E2 [00:58:28]MH_I2C_Read... [00:58:28]Read from MH i2c: E2 03 00 [00:58:28]MH_I2C_Read... [00:58:28]Read from MH i2c: E2 03 00 C0 03 00 90 00 37 [00:58:28]RAPDU: 90 00 [00:58:28]wFMCommunicate OK [00:58:28]wFMCommunicate request_size=4 [00:58:28]MH_SAM_APDU [00:58:28]CAPDU: 80 0D 03 02 [00:58:28]Write to MH i2c: E2 08 00 C1 03 80 0D 03 02 00 00 00 00 3F [00:58:28]Write i2c OK [00:58:28]MH_I2C_Read... [00:58:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:58:28]Read from MH i2c: E2 [00:58:28]MH_I2C_Read... [00:58:28]Read from MH i2c: E2 0B 00 [00:58:28]MH_I2C_Read... [00:58:28]Read from MH i2c: E2 0B 00 C1 03 00 20 60 D0 53 2A E7 4D 83 90 00 C4 [00:58:28]RAPDU: 20 60 D0 53 2A E7 4D 83 90 00 [00:58:28]wFMCommunicate OK [00:58:28]SAM_PROTO_SignData done [00:58:28]FM_MakeSignedData done [00:58:28]CreateOFDProtocolMessage [00:58:28]wFMCommunicate request_size=4 [00:58:28]MH_SAM_APDU [00:58:28]CAPDU: 80 11 00 00 [00:58:28]Write to MH i2c: E2 08 00 C2 03 80 11 00 00 00 00 00 00 3F [00:58:28]Write i2c OK [00:58:28]MH_I2C_Read... [00:58:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:58:28]Read from MH i2c: E2 [00:58:28]MH_I2C_Read... [00:58:28]Read from MH i2c: E2 17 00 [00:58:28]MH_I2C_Read... [00:58:28]Read from MH i2c: E2 17 00 C2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 8C [00:58:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [00:58:28]wFMCommunicate OK [00:58:28]CreateOFDProtocolMessage done [00:58:28]OFDSenderStorePacket 261040 [00:58:28]StoreOFDPacket docnum=261040 [00:58:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 62 E7 07 01 52 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 00 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0F 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 00 00 00 00 00 07 04 06 00 C8 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 08 00 00 00 F4 03 04 00 B3 98 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B0 FB 03 00 35 04 06 00 C0 19 CE AA 75 60 20 60 D0 53 2A E7 4D 83 [00:58:28]CheckFolder [00:58:28]dirname=/storage/ofd_packets [00:58:28]CheckFolder done [00:58:28]ProducePacketName [00:58:28]name=ofd_packets/00261040 [00:58:28]NVStorageSaveData ofd_packets/00261040 [00:58:28]File name is /storage/ofd_packets/00261040 [00:58:28]Write 301 bytes [00:58:28]NVStorageSaveData done [00:58:28]OFDSenderStorePacket done [00:58:28]KKMCreateOFDPacket done [00:58:28]NVStorageSaveData kkm_last_timestamp [00:58:28]File name is /storage/kkm_last_timestamp [00:58:28]Write 4 bytes [00:58:28]NVStorageSaveData done [00:58:28]ExternCall_PrintAddStr [00:58:28]wPrintStart [00:58:28]Write to MH i2c: 01 00 00 C3 03 C6 [00:58:28]Write i2c OK [00:58:28]MH_I2C_Read... [00:58:28]Read from MH i2c: 01 [00:58:28]MH_I2C_Read... [00:58:28]Read from MH i2c: 01 07 00 [00:58:28]MH_I2C_Read... [00:58:28]Read from MH i2c: 01 07 00 C3 03 00 00 00 00 00 FF 0F DB [00:58:28]RasterBufferAndPrint [00:58:28]line Счет N : (1)1036593 [00:58:28]line ИНН: 02508201610067 [00:58:28]line Контрольно-Кассовый Чек [00:58:28]line ПРОДАЖА [00:58:28]line ТРК (МРК, ГНК) : 32 [00:58:28]line Товар: 2710124130 [00:58:28]line Аи-92-К-5 [00:58:28]line 0.040 * 67.80 [00:58:28]line = 2.71 [00:58:28]line НДС 12% НСП 1% [00:58:28]line > о реализуемом товаре [00:58:28]line ОКРУГЛЕНИЕ: -0.71 [00:58:28]line ИТОГО: 2.00 [00:58:28]line Внесено: 1000.00 [00:58:28]line СДАЧА: 998.00 [00:58:28]line НСП 1% : 0.02 [00:58:28]line НДС 12% : 0.29 [00:58:28]line Наличными: 2.00 [00:58:28]line Безнал.: 0.00 [00:58:28]line Место: АЗС № 94 "Партнер Нефть" [00:58:28]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [00:58:28]line СНО: Общий режим [00:58:28]line Чек 8 19.08.2024 00:58 [00:58:28]line Смена: 450 ФФД: 1.0 [00:58:28]line ЗНМ: 0300000099 [00:58:28]line РНМ: 0000000000091865 [00:58:28]line Версия ККМ: 001 [00:58:28]line ФМ: 0000000000871820 [00:58:28]line ФД: 261040 [00:58:28]line ФПД: 211217073993056 [00:58:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T005827&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261040&fm=211217073993056&tin=02508201610067®Number=0000000000091865&sum=200 [00:58:28]OFD Sender: Processing packet 261040 [packets to send 192, broken 191] [00:58:28]ProducePacketName [00:58:28]name=ofd_packets/00261040 [00:58:28]OFD Sender: To server: pG, [00:58:28]CommunicateWithHost lk.salyk.kg:30040 [00:58:28]ConnectInit lk.salyk.kg [00:58:28]written 0, free lines is 4095 [00:58:29]Write to MH i2c: 01 00 00 EE 03 F1 [00:58:29]Write i2c OK [00:58:29]MH_I2C_Read... [00:58:29]Read from MH i2c: 01 [00:58:29]MH_I2C_Read... [00:58:29]Read from MH i2c: 01 07 00 [00:58:29]MH_I2C_Read... [00:58:29]Read from MH i2c: 01 07 00 EE 03 00 00 00 00 00 52 0C 56 [00:58:29]RasterBufferAndPrint [00:58:29]line [00:58:29]line [00:58:29]line [00:58:29]line [00:58:29]line [00:58:29]written 0, free lines is 3157 [00:58:29]MH_Cut [00:58:29]Write to MH i2c: D1 01 00 F5 03 01 CA [00:58:29]Write i2c OK [00:58:29]MH_I2C_Read... [00:58:29]Read from MH i2c: D1 [00:58:29]MH_I2C_Read... [00:58:29]Read from MH i2c: D1 01 00 [00:58:29]MH_I2C_Read... [00:58:29]Read from MH i2c: D1 01 00 F5 03 00 C9 [00:58:29]Write to MH i2c: 01 00 00 F6 03 F9 [00:58:29]Write i2c OK [00:58:29]MH_I2C_Read... [00:58:30]*** Cut start [00:58:30]*** Purtial cut [00:58:30]*** Stage 1: CUTSNS_PIN = 1 [00:58:32]Read from MH i2c: 01 [00:58:32]MH_I2C_Read... [00:58:32]*** Stop cut motor [00:58:32]*** Cut end [00:58:32]Read from MH i2c: 01 07 00 [00:58:32]MH_I2C_Read... [00:58:32]Read from MH i2c: 01 07 00 F6 03 00 00 00 00 00 FF 0F 0E [00:58:32]process_action close_receipt done [00:58:32]requested_data is exist [00:58:32]produce_requested_data [00:58:32]requested_item fm.sn is exist - process it [00:58:32]wFMCommunicate request_size=4 [00:58:32]MH_SAM_APDU [00:58:32]CAPDU: 80 11 00 00 [00:58:32]Write to MH i2c: E2 08 00 F7 03 80 11 00 00 00 00 00 00 74 [00:58:32]Write i2c OK [00:58:32]MH_I2C_Read... [00:58:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:58:32]Read from MH i2c: E2 [00:58:32]MH_I2C_Read... [00:58:32]Read from MH i2c: E2 17 00 [00:58:32]MH_I2C_Read... [00:58:32]Read from MH i2c: E2 17 00 F7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C1 [00:58:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [00:58:32]wFMCommunicate OK [00:58:32]requested_item fd.num is exist - process it [00:58:32]SAM_PROTO_GetFieldsCounters [00:58:32]wFMCommunicate request_size=4 [00:58:32]MH_SAM_APDU [00:58:32]CAPDU: 80 13 00 00 [00:58:32]Write to MH i2c: E2 08 00 F8 03 80 13 00 00 00 00 00 00 77 [00:58:32]Write i2c OK [00:58:32]MH_I2C_Read... [00:58:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:58:32]Read from MH i2c: E2 [00:58:32]MH_I2C_Read... [00:58:32]Read from MH i2c: E2 62 00 [00:58:32]MH_I2C_Read... [00:58:32]Read from MH i2c: E2 62 00 F8 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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B0 FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [00:58: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B0 FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:58:32]wFMCommunicate OK [00:58:32]SAM_PROTO_GetFieldsCounters done [00:58:32]requested_item shift.num is exist - process it [00:58:32]requested_item shift.opened is exist - process it [00:58:32]req_shift_opened [00:58:32]FM_GetShiftState [00:58:32]SAM_PROTO_GetShiftState [00:58:32]wFMCommunicate request_size=4 [00:58:32]MH_SAM_APDU [00:58:32]CAPDU: 80 13 01 00 [00:58:32]Write to MH i2c: E2 08 00 F9 03 80 13 01 00 00 00 00 00 79 [00:58:32]Write i2c OK [00:58:32]MH_I2C_Read... [00:58:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:58:32]Read from MH i2c: E2 [00:58:32]MH_I2C_Read... [00:58:32]Read from MH i2c: E2 0E 00 [00:58:32]MH_I2C_Read... [00:58:32]Read from MH i2c: E2 0E 00 F9 03 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 0F [00:58:32]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [00:58:32]wFMCommunicate OK [00:58:32]SAM_PROTO_GetShiftState done [00:58:32]FM_GetShiftState done [00:58:32]req_shift_opened done [00:58:32]requested_item shift.open_date is exist - process it [00:58:32]req_shift_open_date [00:58:32]req_shift_open_date done [00:58:32]produce_requested_data done [00:58:32]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261040,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600} [00:58:32]process_action_free close_receipt [00:58:32]json_value_free [00:58:32]json_value_free done [00:58:32]process_json_proto returns [00:58:32]Send response to host [00:58:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261040,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600}}} [00:58:32]free response buf [00:58:32]execute_script done [00:58:32]execute_script returns [00:58:32]free content buf [00:58:32]Sock 7.Close socket [00:58:32]Sock 7.Thread stoped [01:00:41]ConnectInit Can't connect to host [01:00:41]CommunicateWithHost connect error [01:00:41]CommunicateWithHost err = -1 [01:00:41]OFD Sender: Server communicate error [01:00:46]OFD Sender: Processing packet 261040 [packets to send 192, broken 191] [01:00:46]ProducePacketName [01:00:46]name=ofd_packets/00261040 [01:00:46]OFD Sender: To server: pG, [01:00:46]CommunicateWithHost lk.salyk.kg:30040 [01:00:46]ConnectInit lk.salyk.kg [01:00:46]Connected sock=7 [01:00: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 30 0F 01 00 00 62 E7 07 01 52 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 00 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0F 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 00 00 00 00 00 07 04 06 00 C8 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 08 00 00 00 F4 03 04 00 B3 98 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B0 FB 03 00 35 04 06 00 C0 19 CE AA 75 60 20 60 D0 53 2A E7 4D 83 [01:00: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 30 4F 00 00 00 D7 61 47 00 8F B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B0 FB 03 00 F4 03 04 00 90 42 C2 66 B6 04 01 00 00 F7 E6 9D F6 81 2F 3B B9 [01:00:46]CommunicateWithHost err = 0 [01:00:46]CheckOFDResponse [01:00:46]1017 (14) - 77093643461234 [01:00:46]1041 (16) - 0000000000871820 [01:00:46]1040 (4) - 261040 [01:00:46]1012 (4) - 18.08.2024 18:50 [01:00:46]1206 (1) - 0 [01:00:46]OFD Sender: Remove packet 261040 [01:00:46]ProducePacketName [01:00:46]name=ofd_packets/00261040 [01:00:46]NVStorageDeleteData [01:00:47]OFD Sender: No OFD packet to send [01:00:52]OFD Sender: No OFD packet to send [01:00:57]OFD Sender: No OFD packet to send [01:01:02]OFD Sender: No OFD packet to send [01:01:03]accept exits with 9 [01:01:03]New connection [01:01:03]New thread 3067104612 created [01:01:03]Thread 3067247972 joined [01:01:03]Waiting for new connection... [01:01:03] Sock 9.Parse request [01:01:03]Sock 9.Check first char [01:01:03]Sock 9.First char is OK [01:01:03]request: POST /json_proto HTTP/1.0 [01:01:03]Method: POST [01:01:03]URL: /json_proto [01:01:03]Method is POST - this is cgi request [01:01:03]url: /json_proto [01:01:03]query_string will be loaded in cgi processing [01:01:03]execute_cgi json_proto POST (null) [01:01:03]execute_cgi path=json_proto method=POST [01:01:03]POST find Content-Length [01:01:03]Host: 172.17.55.133:8080 [01:01:03]Content-Length: 683 [01:01:03]Content-Type: application/json [01:01:03] [01:01:03]POST finish read [01:01:03]Found Content-Length = 683 [01:01:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:01:03]execute_script... [01:01: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)1036594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:01:03]POST & json_proto [01:01:03]process_json_proto [01:01:03]json parsed OK: [01:01:03]protocol is kg_v1.0 [01:01:03]action value=close_receipt [01:01:03]process_action close_receipt [01:01:03]cmd_close_receipt [01:01:03]MH_GetDate [01:01:03]Write to MH i2c: F0 00 00 FA 03 EC [01:01:03]Write i2c OK [01:01:03]MH_I2C_Read... [01:01:03]Read from MH i2c: F0 [01:01:03]MH_I2C_Read... [01:01:03]Read from MH i2c: F0 09 00 [01:01:03]MH_I2C_Read... [01:01:03]Read from MH i2c: F0 09 00 FA 03 00 4F 99 C2 66 34 48 D8 65 BE [01:01:03]GetLastDocTimeStamp 1724029107 [01:01:03]current date 1724029263 [01:01:03]FM_GetShiftState [01:01:03]SAM_PROTO_GetShiftState [01:01:03]wFMCommunicate request_size=4 [01:01:03]MH_SAM_APDU [01:01:03]CAPDU: 80 13 01 00 [01:01:03]Write to MH i2c: E2 08 00 FB 03 80 13 01 00 00 00 00 00 7B [01:01:03]Write i2c OK [01:01:03]MH_I2C_Read... [01:01:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:01:03]Read from MH i2c: E2 [01:01:03]MH_I2C_Read... [01:01:03]Read from MH i2c: E2 0E 00 [01:01:03]MH_I2C_Read... [01:01:03]Read from MH i2c: E2 0E 00 FB 03 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 11 [01:01:03]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [01:01:03]wFMCommunicate OK [01:01:03]SAM_PROTO_GetShiftState done [01:01:03]FM_GetShiftState done [01:01:03]opened in 1724027600 [01:01:03]opened+sec_in_day 1724114000 [01:01:03]quantity*price = 100005 [01:01:03]sum+1 = 100006 [01:01:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 9 19.08.2024 01:01 Смена: 450 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261041 ФПД: 217322554074938 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T010103&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261041&fm=217322554074938&tin=02508201610067®Number=0000000000091865&sum=100000 [01:01:04]StoreToDocumentArchive [01:01:04]shift 450 fd 261041 [01:01:04]save to /storage/0450/doc_00261041 [01:01:04]save last doc name /storage/0450/doc_00261041 to /storage/kkm_last_doc_name [01:01:04]save OK [01:01:04]Clear old archive folders... [01:01:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:01:04]tlvbuf is 00A40980 [01:01:04]SAM_PROTO_ClearQueue [01:01:04]wFMCommunicate request_size=4 [01:01:04]MH_SAM_APDU [01:01:04]CAPDU: 80 09 00 00 [01:01:04]Write to MH i2c: E2 08 00 08 04 80 09 00 00 00 00 00 00 7E [01:01:04]Write i2c OK [01:01:04]MH_I2C_Read... [01:01:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:01:04]Read from MH i2c: E2 [01:01:04]MH_I2C_Read... [01:01:04]Read from MH i2c: E2 03 00 [01:01:04]MH_I2C_Read... [01:01:04]Read from MH i2c: E2 03 00 08 04 00 90 00 80 [01:01:04]RAPDU: 90 00 [01:01:04]wFMCommunicate OK [01:01:04]SAM_PROTO_ClearQueue done [01:01:04]KKMCreateOFDPacket [01:01:04]OFDProtocolAddRootSTLVToBuf [01:01:04]FM_MakeSignedData [01:01:04]FM_MakeSignedData [01:01:04]SAM_PROTO_SignData [01:01:04]wFMCommunicate request_size=4 [01:01:04]MH_SAM_APDU [01:01:04]CAPDU: 80 0D 01 02 [01:01:04]Write to MH i2c: E2 08 00 09 04 80 0D 01 02 00 00 00 00 86 [01:01:04]Write i2c OK [01:01:04]MH_I2C_Read... [01:01:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:01:04]Read from MH i2c: E2 [01:01:04]MH_I2C_Read... [01:01:04]Read from MH i2c: E2 03 00 [01:01:04]MH_I2C_Read... [01:01:04]Read from MH i2c: E2 03 00 09 04 00 90 00 81 [01:01:04]RAPDU: 90 00 [01:01:04]wFMCommunicate OK [01:01:04]wFMCommunicate request_size=255 [01:01:04]MH_SAM_APDU [01:01:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 4F 99 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B1 FB 03 00 35 04 06 00 C5 [01:01:04]Write to MH i2c: E2 02 01 0A 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 4F 99 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B1 FB 03 00 35 04 06 00 C5 00 00 E2 [01:01:04]Write i2c OK [01:01:04]MH_I2C_Read... [01:01:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:01:04]Read from MH i2c: E2 [01:01:04]MH_I2C_Read... [01:01:04]Read from MH i2c: E2 03 00 [01:01:04]MH_I2C_Read... [01:01:04]Read from MH i2c: E2 03 00 0A 04 00 90 00 82 [01:01:04]RAPDU: 90 00 [01:01:04]wFMCommunicate OK [01:01:04]wFMCommunicate request_size=10 [01:01:04]MH_SAM_APDU [01:01:04]CAPDU: 80 0D 02 02 05 A7 59 A3 27 3A [01:01:04]Write to MH i2c: E2 0D 00 0B 04 80 0D 02 02 05 00 A7 59 A3 27 3A 00 00 97 [01:01:04]Write i2c OK [01:01:04]MH_I2C_Read... [01:01:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:01:04]Read from MH i2c: E2 [01:01:04]MH_I2C_Read... [01:01:04]Read from MH i2c: E2 03 00 [01:01:04]MH_I2C_Read... [01:01:04]Read from MH i2c: E2 03 00 0B 04 00 90 00 83 [01:01:04]RAPDU: 90 00 [01:01:04]wFMCommunicate OK [01:01:04]wFMCommunicate request_size=4 [01:01:04]MH_SAM_APDU [01:01:04]CAPDU: 80 0D 03 02 [01:01:04]Write to MH i2c: E2 08 00 0C 04 80 0D 03 02 00 00 00 00 8B [01:01:04]Write i2c OK [01:01:04]MH_I2C_Read... [01:01:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:01:04]Read from MH i2c: E2 [01:01:04]MH_I2C_Read... [01:01:04]Read from MH i2c: E2 0B 00 [01:01:04]MH_I2C_Read... [01:01:04]Read from MH i2c: E2 0B 00 0C 04 00 E6 95 AD 7A C6 BE A9 3D 90 00 98 [01:01:04]RAPDU: E6 95 AD 7A C6 BE A9 3D 90 00 [01:01:04]wFMCommunicate OK [01:01:04]SAM_PROTO_SignData done [01:01:04]FM_MakeSignedData done [01:01:04]CreateOFDProtocolMessage [01:01:04]wFMCommunicate request_size=4 [01:01:04]MH_SAM_APDU [01:01:04]CAPDU: 80 11 00 00 [01:01:04]Write to MH i2c: E2 08 00 0D 04 80 11 00 00 00 00 00 00 8B [01:01:04]Write i2c OK [01:01:04]MH_I2C_Read... [01:01:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:01:04]Read from MH i2c: E2 [01:01:04]MH_I2C_Read... [01:01:04]Read from MH i2c: E2 17 00 [01:01:04]MH_I2C_Read... [01:01:04]Read from MH i2c: E2 17 00 0D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D8 [01:01:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [01:01:04]wFMCommunicate OK [01:01:04]CreateOFDProtocolMessage done [01:01:04]OFDSenderStorePacket 261041 [01:01:04]StoreOFDPacket docnum=261041 [01:01:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 E3 D7 07 01 15 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 4F 99 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B1 FB 03 00 35 04 06 00 C5 A7 59 A3 27 3A E6 95 AD 7A C6 BE A9 3D [01:01:04]CheckFolder [01:01:04]dirname=/storage/ofd_packets [01:01:04]CheckFolder done [01:01:04]ProducePacketName [01:01:04]name=ofd_packets/00261041 [01:01:04]NVStorageSaveData ofd_packets/00261041 [01:01:04]File name is /storage/ofd_packets/00261041 [01:01:04]Write 301 bytes [01:01:04]NVStorageSaveData done [01:01:04]OFDSenderStorePacket done [01:01:04]KKMCreateOFDPacket done [01:01:04]NVStorageSaveData kkm_last_timestamp [01:01:04]File name is /storage/kkm_last_timestamp [01:01:04]Write 4 bytes [01:01:04]NVStorageSaveData done [01:01:04]ExternCall_PrintAddStr [01:01:04]wPrintStart [01:01:04]Write to MH i2c: 01 00 00 0E 04 12 [01:01:04]Write i2c OK [01:01:04]MH_I2C_Read... [01:01:04]Read from MH i2c: 01 [01:01:04]MH_I2C_Read... [01:01:04]Read from MH i2c: 01 07 00 [01:01:04]MH_I2C_Read... [01:01:04]Read from MH i2c: 01 07 00 0E 04 00 00 00 00 00 FF 0F 27 [01:01:04]RasterBufferAndPrint [01:01:04]line Счет N : (1)1036594 [01:01:04]line ИНН: 02508201610067 [01:01:04]line Контрольно-Кассовый Чек [01:01:04]line ПРОДАЖА [01:01:04]line ТРК (МРК, ГНК) : 32 [01:01:04]line Товар: 2710124130 [01:01:04]line Аи-92-К-5 [01:01:04]line 14.750 * 67.80 [01:01:04]line = 1000.05 [01:01:04]line НДС 12% НСП 1% [01:01:04]line > о реализуемом товаре [01:01:04]line ОКРУГЛЕНИЕ: -0.05 [01:01:04]line ИТОГО: 1000.00 [01:01:04]line Внесено: 1000.00 [01:01:04]line СДАЧА: 0.00 [01:01:04]line НСП 1% : 8.85 [01:01:04]line НДС 12% : 106.20 [01:01:04]line Наличными: 1000.00 [01:01:04]line Безнал.: 0.00 [01:01:04]line Место: АЗС № 94 "Партнер Нефть" [01:01:04]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [01:01:04]line СНО: Общий режим [01:01:04]line Чек 9 19.08.2024 01:01 [01:01:04]line Смена: 450 ФФД: 1.0 [01:01:04]line ЗНМ: 0300000099 [01:01:04]line РНМ: 0000000000091865 [01:01:04]line Версия ККМ: 001 [01:01:04]line ФМ: 0000000000871820 [01:01:04]line ФД: 261041 [01:01:04]line ФПД: 217322554074938 [01:01:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T010103&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261041&fm=217322554074938&tin=02508201610067®Number=0000000000091865&sum=100000 [01:01:05]written 0, free lines is 4095 [01:01:05]OFD Sender: Processing packet 261041 [packets to send 192, broken 191] [01:01:05]ProducePacketName [01:01:05]name=ofd_packets/00261041 [01:01:05]OFD Sender: To server: pG, [01:01:05]CommunicateWithHost lk.salyk.kg:30040 [01:01:05]ConnectInit lk.salyk.kg [01:01:05]Connected sock=10 [01:01: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 30 0F 01 00 00 E3 D7 07 01 15 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 4F 99 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B1 FB 03 00 35 04 06 00 C5 A7 59 A3 27 3A E6 95 AD 7A C6 BE A9 3D [01:01: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 30 4F 00 00 00 9B 6A 47 00 89 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 30 10 04 04 00 B1 FB 03 00 F4 03 04 00 A2 42 C2 66 B6 04 01 00 00 34 CE AA 56 44 01 E2 C4 [01:01:05]CommunicateWithHost err = 0 [01:01:05]CheckOFDResponse [01:01:05]1017 (14) - 77093643461234 [01:01:05]1041 (16) - 0000000000871820 [01:01:05]1040 (4) - 261041 [01:01:05]1012 (4) - 18.08.2024 18:51 [01:01:05]1206 (1) - 0 [01:01:05]OFD Sender: Remove packet 261041 [01:01:05]ProducePacketName [01:01:05]name=ofd_packets/00261041 [01:01:05]NVStorageDeleteData [01:01:05]Write to MH i2c: 01 00 00 39 04 3D [01:01:05]Write i2c OK [01:01:05]MH_I2C_Read... [01:01:05]Read from MH i2c: 01 [01:01:05]MH_I2C_Read... [01:01:05]Read from MH i2c: 01 07 00 [01:01:05]MH_I2C_Read... [01:01:05]Read from MH i2c: 01 07 00 39 04 00 00 00 00 00 4F 0C 9F [01:01:05]RasterBufferAndPrint [01:01:05]line [01:01:05]line [01:01:05]line [01:01:05]line [01:01:05]line [01:01:05]written 0, free lines is 3156 [01:01:05]MH_Cut [01:01:05]Write to MH i2c: D1 01 00 40 04 01 16 [01:01:05]Write i2c OK [01:01:05]MH_I2C_Read... [01:01:05]Read from MH i2c: D1 [01:01:05]MH_I2C_Read... [01:01:05]Read from MH i2c: D1 01 00 [01:01:05]MH_I2C_Read... [01:01:05]Read from MH i2c: D1 01 00 40 04 00 15 [01:01:05]Write to MH i2c: 01 00 00 41 04 45 [01:01:05]Write i2c OK [01:01:05]MH_I2C_Read... [01:01:06]OFD Sender: No OFD packet to send [01:01:07]*** Cut start [01:01:07]*** Purtial cut [01:01:07]*** Stage 1: CUTSNS_PIN = 1 [01:01:09]Read from MH i2c: 01 [01:01:09]MH_I2C_Read... [01:01:09]*** Stop cut motor [01:01:09]*** Cut end [01:01:09]Read from MH i2c: 01 07 00 [01:01:09]MH_I2C_Read... [01:01:09]Read from MH i2c: 01 07 00 41 04 00 00 00 00 00 FF 0F 5A [01:01:09]process_action close_receipt done [01:01:09]requested_data is exist [01:01:09]produce_requested_data [01:01:09]requested_item fm.sn is exist - process it [01:01:09]wFMCommunicate request_size=4 [01:01:09]MH_SAM_APDU [01:01:09]CAPDU: 80 11 00 00 [01:01:09]Write to MH i2c: E2 08 00 42 04 80 11 00 00 00 00 00 00 C0 [01:01:09]Write i2c OK [01:01:09]MH_I2C_Read... [01:01:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:01:09]Read from MH i2c: E2 [01:01:09]MH_I2C_Read... [01:01:09]Read from MH i2c: E2 17 00 [01:01:09]MH_I2C_Read... [01:01:09]Read from MH i2c: E2 17 00 42 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 0D [01:01:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [01:01:09]wFMCommunicate OK [01:01:09]requested_item fd.num is exist - process it [01:01:09]SAM_PROTO_GetFieldsCounters [01:01:09]wFMCommunicate request_size=4 [01:01:09]MH_SAM_APDU [01:01:09]CAPDU: 80 13 00 00 [01:01:09]Write to MH i2c: E2 08 00 43 04 80 13 00 00 00 00 00 00 C3 [01:01:09]Write i2c OK [01:01:09]MH_I2C_Read... [01:01:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:01:09]Read from MH i2c: E2 [01:01:09]MH_I2C_Read... [01:01:09]Read from MH i2c: E2 62 00 [01:01:09]MH_I2C_Read... [01:01:09]Read from MH i2c: E2 62 00 43 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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B1 FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [01:01: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B1 FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:01:09]wFMCommunicate OK [01:01:09]SAM_PROTO_GetFieldsCounters done [01:01:09]requested_item shift.num is exist - process it [01:01:09]requested_item shift.opened is exist - process it [01:01:09]req_shift_opened [01:01:09]FM_GetShiftState [01:01:09]SAM_PROTO_GetShiftState [01:01:09]wFMCommunicate request_size=4 [01:01:09]MH_SAM_APDU [01:01:09]CAPDU: 80 13 01 00 [01:01:09]Write to MH i2c: E2 08 00 44 04 80 13 01 00 00 00 00 00 C5 [01:01:09]Write i2c OK [01:01:09]MH_I2C_Read... [01:01:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:01:09]Read from MH i2c: E2 [01:01:09]MH_I2C_Read... [01:01:09]Read from MH i2c: E2 0E 00 [01:01:09]MH_I2C_Read... [01:01:09]Read from MH i2c: E2 0E 00 44 04 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 5B [01:01:09]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [01:01:09]wFMCommunicate OK [01:01:09]SAM_PROTO_GetShiftState done [01:01:09]FM_GetShiftState done [01:01:09]req_shift_opened done [01:01:09]requested_item shift.open_date is exist - process it [01:01:09]req_shift_open_date [01:01:09]req_shift_open_date done [01:01:09]produce_requested_data done [01:01:09]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261041,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600} [01:01:09]process_action_free close_receipt [01:01:09]json_value_free [01:01:09]json_value_free done [01:01:09]process_json_proto returns [01:01:09]Send response to host [01:01:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261041,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600}}} [01:01:09]free response buf [01:01:09]execute_script done [01:01:09]execute_script returns [01:01:09]free content buf [01:01:09]Sock 9.Close socket [01:01:09]Sock 9.Thread stoped [01:01:11]OFD Sender: No OFD packet to send [01:01:16]OFD Sender: No OFD packet to send [01:01:21]OFD Sender: No OFD packet to send [01:01:26]OFD Sender: No OFD packet to send [01:01:31]OFD Sender: No OFD packet to send [01:01:36]OFD Sender: No OFD packet to send [01:01:41]OFD Sender: No OFD packet to send [01:01:46]OFD Sender: No OFD packet to send [01:01:51]OFD Sender: No OFD packet to send [01:01:56]OFD Sender: No OFD packet to send [01:02:01]OFD Sender: No OFD packet to send [01:02:06]OFD Sender: No OFD packet to send [01:02:11]OFD Sender: No OFD packet to send [01:02:16]OFD Sender: No OFD packet to send [01:02:21]OFD Sender: No OFD packet to send [01:02:26]OFD Sender: No OFD packet to send [01:02:31]OFD Sender: No OFD packet to send [01:02:36]OFD Sender: No OFD packet to send [01:02:41]OFD Sender: No OFD packet to send [01:02:46]OFD Sender: No OFD packet to send [01:02:51]OFD Sender: No OFD packet to send [01:02:56]OFD Sender: No OFD packet to send [01:03:01]OFD Sender: No OFD packet to send [01:03:06]OFD Sender: No OFD packet to send [01:03:11]OFD Sender: No OFD packet to send [01:03:16]OFD Sender: No OFD packet to send [01:03:19]accept exits with 7 [01:03:19]New connection [01:03:19]New thread 3067247972 created [01:03:19]Thread 3067104612 joined [01:03:19]Waiting for new connection... [01:03:19] Sock 7.Parse request [01:03:19]Sock 7.Check first char [01:03:19]Sock 7.First char is OK [01:03:19]request: POST /json_proto HTTP/1.0 [01:03:19]Method: POST [01:03:19]URL: /json_proto [01:03:19]Method is POST - this is cgi request [01:03:19]url: /json_proto [01:03:19]query_string will be loaded in cgi processing [01:03:19]execute_cgi json_proto POST (null) [01:03:19]execute_cgi path=json_proto method=POST [01:03:19]POST find Content-Length [01:03:19]Host: 172.17.55.133:8080 [01:03:19]Content-Length: 678 [01:03:19]Content-Type: application/json [01:03:19] [01:03:19]POST finish read [01:03:19]Found Content-Length = 678 [01:03:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "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" ] } } [01:03:19]execute_script... [01:03: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)1036595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "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" ] } } [01:03:19]POST & json_proto [01:03:19]process_json_proto [01:03:19]json parsed OK: [01:03:19]protocol is kg_v1.0 [01:03:19]action value=close_receipt [01:03:19]process_action close_receipt [01:03:19]cmd_close_receipt [01:03:19]MH_GetDate [01:03:19]Write to MH i2c: F0 00 00 45 04 38 [01:03:19]Write i2c OK [01:03:19]MH_I2C_Read... [01:03:19]Read from MH i2c: F0 [01:03:19]MH_I2C_Read... [01:03:19]Read from MH i2c: F0 09 00 [01:03:19]MH_I2C_Read... [01:03:19]Read from MH i2c: F0 09 00 45 04 00 D8 99 C2 66 34 48 D8 65 93 [01:03:19]GetLastDocTimeStamp 1724029263 [01:03:19]current date 1724029400 [01:03:19]FM_GetShiftState [01:03:19]SAM_PROTO_GetShiftState [01:03:19]wFMCommunicate request_size=4 [01:03:19]MH_SAM_APDU [01:03:19]CAPDU: 80 13 01 00 [01:03:19]Write to MH i2c: E2 08 00 46 04 80 13 01 00 00 00 00 00 C7 [01:03:19]Write i2c OK [01:03:19]MH_I2C_Read... [01:03:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:03:20]Read from MH i2c: E2 [01:03:20]MH_I2C_Read... [01:03:20]Read from MH i2c: E2 0E 00 [01:03:20]MH_I2C_Read... [01:03:20]Read from MH i2c: E2 0E 00 46 04 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 5D [01:03:20]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [01:03:20]wFMCommunicate OK [01:03:20]SAM_PROTO_GetShiftState done [01:03:20]FM_GetShiftState done [01:03:20]opened in 1724027600 [01:03:20]opened+sec_in_day 1724114000 [01:03:20]quantity*price = 35052 [01:03:20]sum+1 = 35054 [01:03:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 10 19.08.2024 01:03 Смена: 450 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261042 ФПД: 57320342246168 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T010320&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261042&fm=57320342246168&tin=02508201610067®Number=0000000000091865&sum=35000 [01:03:21]StoreToDocumentArchive [01:03:21]shift 450 fd 261042 [01:03:21]save to /storage/0450/doc_00261042 [01:03:21]save last doc name /storage/0450/doc_00261042 to /storage/kkm_last_doc_name [01:03:21]save OK [01:03:21]Clear old archive folders... [01:03:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:03:21]tlvbuf is 00A453F0 [01:03:21]SAM_PROTO_ClearQueue [01:03:21]wFMCommunicate request_size=4 [01:03:21]MH_SAM_APDU [01:03:21]CAPDU: 80 09 00 00 [01:03:21]Write to MH i2c: E2 08 00 53 04 80 09 00 00 00 00 00 00 C9 [01:03:21]Write i2c OK [01:03:21]MH_I2C_Read... [01:03:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:03:21]Read from MH i2c: E2 [01:03:21]MH_I2C_Read... [01:03:21]Read from MH i2c: E2 03 00 [01:03:21]MH_I2C_Read... [01:03:21]Read from MH i2c: E2 03 00 53 04 00 90 00 CB [01:03:21]RAPDU: 90 00 [01:03:21]wFMCommunicate OK [01:03:21]SAM_PROTO_ClearQueue done [01:03:21]KKMCreateOFDPacket [01:03:21]OFDProtocolAddRootSTLVToBuf [01:03:21]FM_MakeSignedData [01:03:21]FM_MakeSignedData [01:03:21]SAM_PROTO_SignData [01:03:21]wFMCommunicate request_size=4 [01:03:21]MH_SAM_APDU [01:03:21]CAPDU: 80 0D 01 02 [01:03:21]Write to MH i2c: E2 08 00 54 04 80 0D 01 02 00 00 00 00 D1 [01:03:21]Write i2c OK [01:03:21]MH_I2C_Read... [01:03:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:03:21]Read from MH i2c: E2 [01:03:21]MH_I2C_Read... [01:03:21]Read from MH i2c: E2 03 00 [01:03:21]MH_I2C_Read... [01:03:21]Read from MH i2c: E2 03 00 54 04 00 90 00 CC [01:03:21]RAPDU: 90 00 [01:03:21]wFMCommunicate OK [01:03:21]wFMCommunicate request_size=255 [01:03:21]MH_SAM_APDU [01:03:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 0A 00 00 00 F4 03 04 00 D8 99 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B2 FB 03 00 35 04 06 00 34 [01:03:21]Write to MH i2c: E2 02 01 55 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 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 0A 00 00 00 F4 03 04 00 D8 99 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B2 FB 03 00 35 04 06 00 34 00 00 C3 [01:03:21]Write i2c OK [01:03:21]MH_I2C_Read... [01:03:21]OFD Sender: No OFD packet to send [01:03:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:03:21]Read from MH i2c: E2 [01:03:21]MH_I2C_Read... [01:03:21]Read from MH i2c: E2 03 00 [01:03:21]MH_I2C_Read... [01:03:21]Read from MH i2c: E2 03 00 55 04 00 90 00 CD [01:03:21]RAPDU: 90 00 [01:03:21]wFMCommunicate OK [01:03:21]wFMCommunicate request_size=10 [01:03:21]MH_SAM_APDU [01:03:21]CAPDU: 80 0D 02 02 05 21 EE A3 53 18 [01:03:21]Write to MH i2c: E2 0D 00 56 04 80 0D 02 02 05 00 21 EE A3 53 18 00 00 FB [01:03:21]Write i2c OK [01:03:21]MH_I2C_Read... [01:03:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:03:21]Read from MH i2c: E2 [01:03:21]MH_I2C_Read... [01:03:21]Read from MH i2c: E2 03 00 [01:03:21]MH_I2C_Read... [01:03:21]Read from MH i2c: E2 03 00 56 04 00 90 00 CE [01:03:21]RAPDU: 90 00 [01:03:21]wFMCommunicate OK [01:03:21]wFMCommunicate request_size=4 [01:03:21]MH_SAM_APDU [01:03:21]CAPDU: 80 0D 03 02 [01:03:21]Write to MH i2c: E2 08 00 57 04 80 0D 03 02 00 00 00 00 D6 [01:03:21]Write i2c OK [01:03:21]MH_I2C_Read... [01:03:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:03:21]Read from MH i2c: E2 [01:03:21]MH_I2C_Read... [01:03:21]Read from MH i2c: E2 0B 00 [01:03:21]MH_I2C_Read... [01:03:21]Read from MH i2c: E2 0B 00 57 04 00 10 6D 63 FE 90 2B 16 F9 90 00 7F [01:03:21]RAPDU: 10 6D 63 FE 90 2B 16 F9 90 00 [01:03:21]wFMCommunicate OK [01:03:21]SAM_PROTO_SignData done [01:03:21]FM_MakeSignedData done [01:03:21]CreateOFDProtocolMessage [01:03:21]wFMCommunicate request_size=4 [01:03:21]MH_SAM_APDU [01:03:21]CAPDU: 80 11 00 00 [01:03:21]Write to MH i2c: E2 08 00 58 04 80 11 00 00 00 00 00 00 D6 [01:03:21]Write i2c OK [01:03:21]MH_I2C_Read... [01:03:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:03:21]Read from MH i2c: E2 [01:03:21]MH_I2C_Read... [01:03:21]Read from MH i2c: E2 17 00 [01:03:21]MH_I2C_Read... [01:03:21]Read from MH i2c: E2 17 00 58 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 23 [01:03:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [01:03:21]wFMCommunicate OK [01:03:21]CreateOFDProtocolMessage done [01:03:21]OFDSenderStorePacket 261042 [01:03:21]StoreOFDPacket docnum=261042 [01:03:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 D4 34 07 01 11 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 0A 00 00 00 F4 03 04 00 D8 99 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B2 FB 03 00 35 04 06 00 34 21 EE A3 53 18 10 6D 63 FE 90 2B 16 F9 [01:03:21]CheckFolder [01:03:21]dirname=/storage/ofd_packets [01:03:21]CheckFolder done [01:03:21]ProducePacketName [01:03:21]name=ofd_packets/00261042 [01:03:21]NVStorageSaveData ofd_packets/00261042 [01:03:21]File name is /storage/ofd_packets/00261042 [01:03:21]Write 301 bytes [01:03:21]NVStorageSaveData done [01:03:21]OFDSenderStorePacket done [01:03:21]KKMCreateOFDPacket done [01:03:21]NVStorageSaveData kkm_last_timestamp [01:03:21]File name is /storage/kkm_last_timestamp [01:03:21]Write 4 bytes [01:03:21]NVStorageSaveData done [01:03:21]ExternCall_PrintAddStr [01:03:21]wPrintStart [01:03:21]Write to MH i2c: 01 00 00 59 04 5D [01:03:21]Write i2c OK [01:03:21]MH_I2C_Read... [01:03:21]Read from MH i2c: 01 [01:03:21]MH_I2C_Read... [01:03:21]Read from MH i2c: 01 07 00 [01:03:21]MH_I2C_Read... [01:03:21]Read from MH i2c: 01 07 00 59 04 00 00 00 00 00 FF 0F 72 [01:03:21]RasterBufferAndPrint [01:03:21]line Счет N : (1)1036595 [01:03:21]line ИНН: 02508201610067 [01:03:21]line Контрольно-Кассовый Чек [01:03:21]line ПРОДАЖА [01:03:21]line ТРК (МРК, ГНК) : 42 [01:03:21]line Товар: 2710124130 [01:03:21]line Аи-92-К-5 [01:03:21]line 5.170 * 67.80 [01:03:21]line = 350.53 [01:03:21]line НДС 12% НСП 1% [01:03:21]line > о реализуемом товаре [01:03:21]line ОКРУГЛЕНИЕ: -0.53 [01:03:21]line ИТОГО: 350.00 [01:03:21]line Внесено: 350.00 [01:03:21]line СДАЧА: 0.00 [01:03:21]line НСП 1% : 3.10 [01:03:21]line НДС 12% : 37.22 [01:03:21]line Наличными: 350.00 [01:03:21]line Безнал.: 0.00 [01:03:21]line Место: АЗС № 94 "Партнер Нефть" [01:03:21]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [01:03:21]line СНО: Общий режим [01:03:21]line Чек 10 19.08.2024 01:03 [01:03:21]line Смена: 450 ФФД: 1.0 [01:03:21]line ЗНМ: 0300000099 [01:03:21]line РНМ: 0000000000091865 [01:03:21]line Версия ККМ: 001 [01:03:21]line ФМ: 0000000000871820 [01:03:21]line ФД: 261042 [01:03:21]line ФПД: 57320342246168 [01:03:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T010320&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261042&fm=57320342246168&tin=02508201610067®Number=0000000000091865&sum=35000 [01:03:22]OFD Sender: Processing packet 261042 [packets to send 192, broken 191] [01:03:22]ProducePacketName [01:03:22]name=ofd_packets/00261042 [01:03:22]OFD Sender: To server: pG, [01:03:22]CommunicateWithHost lk.salyk.kg:30040 [01:03:22]ConnectInit lk.salyk.kg [01:03:22]written 0, free lines is 4095 [01:03:22]Connected sock=10 [01:03: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 30 0F 01 00 00 D4 34 07 01 11 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 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 0A 00 00 00 F4 03 04 00 D8 99 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B2 FB 03 00 35 04 06 00 34 21 EE A3 53 18 10 6D 63 FE 90 2B 16 F9 [01:03: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 30 4F 00 00 00 B5 05 47 00 07 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 30 10 04 04 00 B2 FB 03 00 F4 03 04 00 2B 43 C2 66 B6 04 01 00 00 CE 95 B1 C3 45 DA 4E BF [01:03:22]CommunicateWithHost err = 0 [01:03:22]CheckOFDResponse [01:03:22]1017 (14) - 77093643461234 [01:03:22]1041 (16) - 0000000000871820 [01:03:22]1040 (4) - 261042 [01:03:22]1012 (4) - 18.08.2024 18:53 [01:03:22]1206 (1) - 0 [01:03:22]OFD Sender: Remove packet 261042 [01:03:22]ProducePacketName [01:03:22]name=ofd_packets/00261042 [01:03:22]NVStorageDeleteData [01:03:22]Write to MH i2c: 01 00 00 84 04 88 [01:03:22]Write i2c OK [01:03:22]MH_I2C_Read... [01:03:22]Read from MH i2c: 01 [01:03:22]MH_I2C_Read... [01:03:22]Read from MH i2c: 01 07 00 [01:03:22]MH_I2C_Read... [01:03:22]Read from MH i2c: 01 07 00 84 04 00 00 00 00 00 4F 0C EA [01:03:22]RasterBufferAndPrint [01:03:22]line [01:03:22]line [01:03:22]line [01:03:22]line [01:03:22]line [01:03:22]written 0, free lines is 3155 [01:03:22]MH_Cut [01:03:22]Write to MH i2c: D1 01 00 8B 04 01 61 [01:03:22]Write i2c OK [01:03:22]MH_I2C_Read... [01:03:22]Read from MH i2c: D1 [01:03:22]MH_I2C_Read... [01:03:22]Read from MH i2c: D1 01 00 [01:03:22]MH_I2C_Read... [01:03:22]Read from MH i2c: D1 01 00 8B 04 00 60 [01:03:22]Write to MH i2c: 01 00 00 8C 04 90 [01:03:22]Write i2c OK [01:03:22]MH_I2C_Read... [01:03:22]OFD Sender: No OFD packet to send [01:03:23]*** Cut start [01:03:23]*** Purtial cut [01:03:23]*** Stage 1: CUTSNS_PIN = 1 [01:03:25]Read from MH i2c: 01 [01:03:25]MH_I2C_Read... [01:03:25]*** Stop cut motor [01:03:25]*** Cut end [01:03:25]Read from MH i2c: 01 07 00 [01:03:25]MH_I2C_Read... [01:03:25]Read from MH i2c: 01 07 00 8C 04 00 00 00 00 00 FF 0F A5 [01:03:25]process_action close_receipt done [01:03:25]requested_data is exist [01:03:25]produce_requested_data [01:03:25]requested_item fm.sn is exist - process it [01:03:25]wFMCommunicate request_size=4 [01:03:25]MH_SAM_APDU [01:03:25]CAPDU: 80 11 00 00 [01:03:25]Write to MH i2c: E2 08 00 8D 04 80 11 00 00 00 00 00 00 0B [01:03:25]Write i2c OK [01:03:25]MH_I2C_Read... [01:03:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:03:25]Read from MH i2c: E2 [01:03:25]MH_I2C_Read... [01:03:25]Read from MH i2c: E2 17 00 [01:03:25]MH_I2C_Read... [01:03:25]Read from MH i2c: E2 17 00 8D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 58 [01:03:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [01:03:25]wFMCommunicate OK [01:03:25]requested_item fd.num is exist - process it [01:03:25]SAM_PROTO_GetFieldsCounters [01:03:25]wFMCommunicate request_size=4 [01:03:25]MH_SAM_APDU [01:03:25]CAPDU: 80 13 00 00 [01:03:25]Write to MH i2c: E2 08 00 8E 04 80 13 00 00 00 00 00 00 0E [01:03:25]Write i2c OK [01:03:25]MH_I2C_Read... [01:03:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:03:25]Read from MH i2c: E2 [01:03:25]MH_I2C_Read... [01:03:25]Read from MH i2c: E2 62 00 [01:03:25]MH_I2C_Read... [01:03:25]Read from MH i2c: E2 62 00 8E 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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B2 FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [01:03: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B2 FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:03:25]wFMCommunicate OK [01:03:25]SAM_PROTO_GetFieldsCounters done [01:03:25]requested_item shift.num is exist - process it [01:03:25]requested_item shift.opened is exist - process it [01:03:25]req_shift_opened [01:03:25]FM_GetShiftState [01:03:25]SAM_PROTO_GetShiftState [01:03:25]wFMCommunicate request_size=4 [01:03:25]MH_SAM_APDU [01:03:25]CAPDU: 80 13 01 00 [01:03:25]Write to MH i2c: E2 08 00 8F 04 80 13 01 00 00 00 00 00 10 [01:03:25]Write i2c OK [01:03:25]MH_I2C_Read... [01:03:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:03:26]Read from MH i2c: E2 [01:03:26]MH_I2C_Read... [01:03:26]Read from MH i2c: E2 0E 00 [01:03:26]MH_I2C_Read... [01:03:26]Read from MH i2c: E2 0E 00 8F 04 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 A6 [01:03:26]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [01:03:26]wFMCommunicate OK [01:03:26]SAM_PROTO_GetShiftState done [01:03:26]FM_GetShiftState done [01:03:26]req_shift_opened done [01:03:26]requested_item shift.open_date is exist - process it [01:03:26]req_shift_open_date [01:03:26]req_shift_open_date done [01:03:26]produce_requested_data done [01:03:26]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261042,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600} [01:03:26]process_action_free close_receipt [01:03:26]json_value_free [01:03:26]json_value_free done [01:03:26]process_json_proto returns [01:03:26]Send response to host [01:03:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261042,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600}}} [01:03:26]free response buf [01:03:26]execute_script done [01:03:26]execute_script returns [01:03:26]free content buf [01:03:26]Sock 7.Close socket [01:03:26]Sock 7.Thread stoped [01:03:27]OFD Sender: No OFD packet to send [01:03:32]OFD Sender: No OFD packet to send [01:03:37]OFD Sender: No OFD packet to send [01:03:42]OFD Sender: No OFD packet to send [01:03:47]OFD Sender: No OFD packet to send [01:03:52]OFD Sender: No OFD packet to send [01:03:55]accept exits with 9 [01:03:55]New connection [01:03:55]New thread 3067104612 created [01:03:55]Thread 3067247972 joined [01:03:55]Waiting for new connection... [01:03:55] Sock 9.Parse request [01:03:55]Sock 9.Check first char [01:03:55]Sock 9.First char is OK [01:03:55]request: POST /json_proto HTTP/1.0 [01:03:55]Method: POST [01:03:55]URL: /json_proto [01:03:55]Method is POST - this is cgi request [01:03:55]url: /json_proto [01:03:55]query_string will be loaded in cgi processing [01:03:55]execute_cgi json_proto POST (null) [01:03:55]execute_cgi path=json_proto method=POST [01:03:55]POST find Content-Length [01:03:55]Host: 172.17.55.133:8080 [01:03:55]Content-Length: 678 [01:03:55]Content-Type: application/json [01:03:55] [01:03:55]POST finish read [01:03:55]Found Content-Length = 678 [01:03:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [01:03:55]execute_script... [01:03: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)1036596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [01:03:55]POST & json_proto [01:03:55]process_json_proto [01:03:55]json parsed OK: [01:03:55]protocol is kg_v1.0 [01:03:55]action value=close_receipt [01:03:55]process_action close_receipt [01:03:55]cmd_close_receipt [01:03:55]MH_GetDate [01:03:55]Write to MH i2c: F0 00 00 90 04 83 [01:03:55]Write i2c OK [01:03:55]MH_I2C_Read... [01:03:55]Read from MH i2c: F0 [01:03:55]MH_I2C_Read... [01:03:55]Read from MH i2c: F0 09 00 [01:03:55]MH_I2C_Read... [01:03:55]Read from MH i2c: F0 09 00 90 04 00 FC 99 C2 66 34 48 D8 65 02 [01:03:55]GetLastDocTimeStamp 1724029400 [01:03:55]current date 1724029436 [01:03:55]FM_GetShiftState [01:03:55]SAM_PROTO_GetShiftState [01:03:55]wFMCommunicate request_size=4 [01:03:55]MH_SAM_APDU [01:03:55]CAPDU: 80 13 01 00 [01:03:55]Write to MH i2c: E2 08 00 91 04 80 13 01 00 00 00 00 00 12 [01:03:55]Write i2c OK [01:03:55]MH_I2C_Read... [01:03:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:03:55]Read from MH i2c: E2 [01:03:55]MH_I2C_Read... [01:03:55]Read from MH i2c: E2 0E 00 [01:03:55]MH_I2C_Read... [01:03:55]Read from MH i2c: E2 0E 00 91 04 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 A8 [01:03:55]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [01:03:55]wFMCommunicate OK [01:03:55]SAM_PROTO_GetShiftState done [01:03:55]FM_GetShiftState done [01:03:55]opened in 1724027600 [01:03:55]opened+sec_in_day 1724114000 [01:03:55]quantity*price = 40002 [01:03:55]sum+1 = 40003 [01:03:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 11 19.08.2024 01:03 Смена: 450 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261043 ФПД: 46725437520062 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T010356&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261043&fm=46725437520062&tin=02508201610067®Number=0000000000091865&sum=40000 [01:03:57]StoreToDocumentArchive [01:03:57]shift 450 fd 261043 [01:03:57]save to /storage/0450/doc_00261043 [01:03:57]save last doc name /storage/0450/doc_00261043 to /storage/kkm_last_doc_name [01:03:57]save OK [01:03:57]Clear old archive folders... [01:03:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:03:57]tlvbuf is 00A40360 [01:03:57]SAM_PROTO_ClearQueue [01:03:57]wFMCommunicate request_size=4 [01:03:57]MH_SAM_APDU [01:03:57]CAPDU: 80 09 00 00 [01:03:57]Write to MH i2c: E2 08 00 9E 04 80 09 00 00 00 00 00 00 14 [01:03:57]Write i2c OK [01:03:57]MH_I2C_Read... [01:03:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:03:57]Read from MH i2c: E2 [01:03:57]MH_I2C_Read... [01:03:57]Read from MH i2c: E2 03 00 [01:03:57]MH_I2C_Read... [01:03:57]Read from MH i2c: E2 03 00 9E 04 00 90 00 16 [01:03:57]RAPDU: 90 00 [01:03:57]wFMCommunicate OK [01:03:57]SAM_PROTO_ClearQueue done [01:03:57]KKMCreateOFDPacket [01:03:57]OFDProtocolAddRootSTLVToBuf [01:03:57]FM_MakeSignedData [01:03:57]FM_MakeSignedData [01:03:57]SAM_PROTO_SignData [01:03:57]wFMCommunicate request_size=4 [01:03:57]MH_SAM_APDU [01:03:57]CAPDU: 80 0D 01 02 [01:03:57]Write to MH i2c: E2 08 00 9F 04 80 0D 01 02 00 00 00 00 1C [01:03:57]Write i2c OK [01:03:57]MH_I2C_Read... [01:03:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:03:57]Read from MH i2c: E2 [01:03:57]MH_I2C_Read... [01:03:57]Read from MH i2c: E2 03 00 [01:03:57]MH_I2C_Read... [01:03:57]Read from MH i2c: E2 03 00 9F 04 00 90 00 17 [01:03:57]RAPDU: 90 00 [01:03:57]wFMCommunicate OK [01:03:57]wFMCommunicate request_size=255 [01:03:57]MH_SAM_APDU [01:03:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 FC 99 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B3 FB 03 00 35 04 06 00 2A [01:03:57]Write to MH i2c: E2 02 01 A0 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 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 FC 99 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B3 FB 03 00 35 04 06 00 2A 00 00 E4 [01:03:57]Write i2c OK [01:03:57]MH_I2C_Read... [01:03:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:03:57]Read from MH i2c: E2 [01:03:57]MH_I2C_Read... [01:03:57]Read from MH i2c: E2 03 00 [01:03:57]MH_I2C_Read... [01:03:57]Read from MH i2c: E2 03 00 A0 04 00 90 00 18 [01:03:57]RAPDU: 90 00 [01:03:57]wFMCommunicate OK [01:03:57]wFMCommunicate request_size=10 [01:03:57]MH_SAM_APDU [01:03:57]CAPDU: 80 0D 02 02 05 7F 1D 1A F8 BE [01:03:57]Write to MH i2c: E2 0D 00 A1 04 80 0D 02 02 05 00 7F 1D 1A F8 BE 00 00 95 [01:03:57]Write i2c OK [01:03:57]MH_I2C_Read... [01:03:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:03:57]Read from MH i2c: E2 [01:03:57]MH_I2C_Read... [01:03:57]Read from MH i2c: E2 03 00 [01:03:57]MH_I2C_Read... [01:03:57]Read from MH i2c: E2 03 00 A1 04 00 90 00 19 [01:03:57]RAPDU: 90 00 [01:03:57]wFMCommunicate OK [01:03:57]wFMCommunicate request_size=4 [01:03:57]MH_SAM_APDU [01:03:57]CAPDU: 80 0D 03 02 [01:03:57]Write to MH i2c: E2 08 00 A2 04 80 0D 03 02 00 00 00 00 21 [01:03:57]Write i2c OK [01:03:57]MH_I2C_Read... [01:03:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:03:57]Read from MH i2c: E2 [01:03:57]MH_I2C_Read... [01:03:57]Read from MH i2c: E2 0B 00 [01:03:57]MH_I2C_Read... [01:03:57]Read from MH i2c: E2 0B 00 A2 04 00 4E A5 FF EC EB 39 3E 01 90 00 63 [01:03:57]RAPDU: 4E A5 FF EC EB 39 3E 01 90 00 [01:03:57]wFMCommunicate OK [01:03:57]SAM_PROTO_SignData done [01:03:57]FM_MakeSignedData done [01:03:57]CreateOFDProtocolMessage [01:03:57]wFMCommunicate request_size=4 [01:03:57]MH_SAM_APDU [01:03:57]CAPDU: 80 11 00 00 [01:03:57]Write to MH i2c: E2 08 00 A3 04 80 11 00 00 00 00 00 00 21 [01:03:57]Write i2c OK [01:03:57]MH_I2C_Read... [01:03:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:03:57]Read from MH i2c: E2 [01:03:57]MH_I2C_Read... [01:03:57]Read from MH i2c: E2 17 00 [01:03:57]MH_I2C_Read... [01:03:57]Read from MH i2c: E2 17 00 A3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 6E [01:03:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [01:03:57]wFMCommunicate OK [01:03:57]CreateOFDProtocolMessage done [01:03:57]OFDSenderStorePacket 261043 [01:03:57]StoreOFDPacket docnum=261043 [01:03:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 98 E1 07 01 FC 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 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 FC 99 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B3 FB 03 00 35 04 06 00 2A 7F 1D 1A F8 BE 4E A5 FF EC EB 39 3E 01 [01:03:57]CheckFolder [01:03:57]dirname=/storage/ofd_packets [01:03:57]CheckFolder done [01:03:57]ProducePacketName [01:03:57]name=ofd_packets/00261043 [01:03:57]NVStorageSaveData ofd_packets/00261043 [01:03:57]File name is /storage/ofd_packets/00261043 [01:03:57]Write 301 bytes [01:03:57]NVStorageSaveData done [01:03:57]OFDSenderStorePacket done [01:03:57]KKMCreateOFDPacket done [01:03:57]NVStorageSaveData kkm_last_timestamp [01:03:57]File name is /storage/kkm_last_timestamp [01:03:57]Write 4 bytes [01:03:57]NVStorageSaveData done [01:03:57]ExternCall_PrintAddStr [01:03:57]wPrintStart [01:03:57]Write to MH i2c: 01 00 00 A4 04 A8 [01:03:57]Write i2c OK [01:03:57]MH_I2C_Read... [01:03:57]Read from MH i2c: 01 [01:03:57]MH_I2C_Read... [01:03:57]Read from MH i2c: 01 07 00 [01:03:57]MH_I2C_Read... [01:03:57]Read from MH i2c: 01 07 00 A4 04 00 00 00 00 00 FF 0F BD [01:03:57]RasterBufferAndPrint [01:03:57]line Счет N : (1)1036596 [01:03:57]line ИНН: 02508201610067 [01:03:57]line Контрольно-Кассовый Чек [01:03:57]line ПРОДАЖА [01:03:57]line ТРК (МРК, ГНК) : 22 [01:03:57]line Товар: 2710124130 [01:03:57]line Аи-92-К-5 [01:03:57]line 5.900 * 67.80 [01:03:57]line = 400.02 [01:03:57]line НДС 12% НСП 1% [01:03:57]line > о реализуемом товаре [01:03:57]line ОКРУГЛЕНИЕ: -0.02 [01:03:57]line ИТОГО: 400.00 [01:03:57]line Внесено: 400.00 [01:03:57]line СДАЧА: 0.00 [01:03:57]line НСП 1% : 3.54 [01:03:57]line НДС 12% : 42.48 [01:03:57]line Наличными: 400.00 [01:03:57]line Безнал.: 0.00 [01:03:57]line Место: АЗС № 94 "Партнер Нефть" [01:03:57]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [01:03:57]line СНО: Общий режим [01:03:57]line Чек 11 19.08.2024 01:03 [01:03:57]line Смена: 450 ФФД: 1.0 [01:03:57]line ЗНМ: 0300000099 [01:03:57]line РНМ: 0000000000091865 [01:03:57]line Версия ККМ: 001 [01:03:57]line ФМ: 0000000000871820 [01:03:57]line ФД: 261043 [01:03:57]line ФПД: 46725437520062 [01:03:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T010356&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261043&fm=46725437520062&tin=02508201610067®Number=0000000000091865&sum=40000 [01:03:57]written 0, free lines is 4095 [01:03:57]OFD Sender: Processing packet 261043 [packets to send 192, broken 191] [01:03:57]ProducePacketName [01:03:57]name=ofd_packets/00261043 [01:03:57]OFD Sender: To server: pG, [01:03:57]CommunicateWithHost lk.salyk.kg:30040 [01:03:57]ConnectInit lk.salyk.kg [01:03:57]Connected sock=10 [01:03: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 30 0F 01 00 00 98 E1 07 01 FC 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 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 FC 99 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B3 FB 03 00 35 04 06 00 2A 7F 1D 1A F8 BE 4E A5 FF EC EB 39 3E 01 [01:03: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 30 4F 00 00 00 A8 78 47 00 D3 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 30 10 04 04 00 B3 FB 03 00 F4 03 04 00 4F 43 C2 66 B6 04 01 00 00 03 CD 4F B3 E5 C4 E5 59 [01:03:58]CommunicateWithHost err = 0 [01:03:58]CheckOFDResponse [01:03:58]1017 (14) - 77093643461234 [01:03:58]1041 (16) - 0000000000871820 [01:03:58]1040 (4) - 261043 [01:03:58]1012 (4) - 18.08.2024 18:54 [01:03:58]1206 (1) - 0 [01:03:58]OFD Sender: Remove packet 261043 [01:03:58]ProducePacketName [01:03:58]name=ofd_packets/00261043 [01:03:58]NVStorageDeleteData [01:03:58]Write to MH i2c: 01 00 00 CF 04 D3 [01:03:58]Write i2c OK [01:03:58]MH_I2C_Read... [01:03:58]Read from MH i2c: 01 [01:03:58]MH_I2C_Read... [01:03:58]Read from MH i2c: 01 07 00 [01:03:58]MH_I2C_Read... [01:03:58]Read from MH i2c: 01 07 00 CF 04 00 00 00 00 00 58 0C 3E [01:03:58]RasterBufferAndPrint [01:03:58]line [01:03:58]line [01:03:58]line [01:03:58]line [01:03:58]line [01:03:58]written 0, free lines is 3164 [01:03:58]MH_Cut [01:03:58]Write to MH i2c: D1 01 00 D6 04 01 AC [01:03:58]Write i2c OK [01:03:58]MH_I2C_Read... [01:03:58]Read from MH i2c: D1 [01:03:58]MH_I2C_Read... [01:03:58]Read from MH i2c: D1 01 00 [01:03:58]MH_I2C_Read... [01:03:58]Read from MH i2c: D1 01 00 D6 04 00 AB [01:03:58]Write to MH i2c: 01 00 00 D7 04 DB [01:03:58]Write i2c OK [01:03:58]MH_I2C_Read... [01:03:58]OFD Sender: No OFD packet to send [01:03:59]*** Cut start [01:03:59]*** Purtial cut [01:03:59]*** Stage 1: CUTSNS_PIN = 1 [01:04:01]Read from MH i2c: 01 [01:04:01]MH_I2C_Read... [01:04:01]*** Stop cut motor [01:04:01]*** Cut end [01:04:01]Read from MH i2c: 01 07 00 [01:04:01]MH_I2C_Read... [01:04:01]Read from MH i2c: 01 07 00 D7 04 00 00 00 00 00 FF 0F F0 [01:04:01]process_action close_receipt done [01:04:01]requested_data is exist [01:04:01]produce_requested_data [01:04:01]requested_item fm.sn is exist - process it [01:04:01]wFMCommunicate request_size=4 [01:04:01]MH_SAM_APDU [01:04:01]CAPDU: 80 11 00 00 [01:04:01]Write to MH i2c: E2 08 00 D8 04 80 11 00 00 00 00 00 00 56 [01:04:01]Write i2c OK [01:04:01]MH_I2C_Read... [01:04:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:04:01]Read from MH i2c: E2 [01:04:01]MH_I2C_Read... [01:04:01]Read from MH i2c: E2 17 00 [01:04:01]MH_I2C_Read... [01:04:01]Read from MH i2c: E2 17 00 D8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A3 [01:04:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [01:04:01]wFMCommunicate OK [01:04:01]requested_item fd.num is exist - process it [01:04:01]SAM_PROTO_GetFieldsCounters [01:04:01]wFMCommunicate request_size=4 [01:04:01]MH_SAM_APDU [01:04:01]CAPDU: 80 13 00 00 [01:04:01]Write to MH i2c: E2 08 00 D9 04 80 13 00 00 00 00 00 00 59 [01:04:01]Write i2c OK [01:04:01]MH_I2C_Read... [01:04:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:04:01]Read from MH i2c: E2 [01:04:01]MH_I2C_Read... [01:04:01]Read from MH i2c: E2 62 00 [01:04:01]MH_I2C_Read... [01:04:01]Read from MH i2c: E2 62 00 D9 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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B3 FB 03 00 0E 04 04 00 C2 01 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 0D [01:04: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B3 FB 03 00 0E 04 04 00 C2 01 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 [01:04:01]wFMCommunicate OK [01:04:01]SAM_PROTO_GetFieldsCounters done [01:04:01]requested_item shift.num is exist - process it [01:04:01]requested_item shift.opened is exist - process it [01:04:01]req_shift_opened [01:04:01]FM_GetShiftState [01:04:01]SAM_PROTO_GetShiftState [01:04:01]wFMCommunicate request_size=4 [01:04:01]MH_SAM_APDU [01:04:01]CAPDU: 80 13 01 00 [01:04:01]Write to MH i2c: E2 08 00 DA 04 80 13 01 00 00 00 00 00 5B [01:04:01]Write i2c OK [01:04:01]MH_I2C_Read... [01:04:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:04:01]Read from MH i2c: E2 [01:04:01]MH_I2C_Read... [01:04:01]Read from MH i2c: E2 0E 00 [01:04:01]MH_I2C_Read... [01:04:01]Read from MH i2c: E2 0E 00 DA 04 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 F1 [01:04:01]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [01:04:01]wFMCommunicate OK [01:04:01]SAM_PROTO_GetShiftState done [01:04:01]FM_GetShiftState done [01:04:01]req_shift_opened done [01:04:01]requested_item shift.open_date is exist - process it [01:04:01]req_shift_open_date [01:04:01]req_shift_open_date done [01:04:01]produce_requested_data done [01:04:01]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261043,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600} [01:04:01]process_action_free close_receipt [01:04:01]json_value_free [01:04:01]json_value_free done [01:04:01]process_json_proto returns [01:04:01]Send response to host [01:04:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261043,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600}}} [01:04:01]free response buf [01:04:01]execute_script done [01:04:01]execute_script returns [01:04:01]free content buf [01:04:01]Sock 9.Close socket [01:04:01]Sock 9.Thread stoped [01:04:03]OFD Sender: No OFD packet to send [01:04:08]OFD Sender: No OFD packet to send [01:04:13]OFD Sender: No OFD packet to send [01:04:18]OFD Sender: No OFD packet to send [01:04:23]OFD Sender: No OFD packet to send [01:04:28]OFD Sender: No OFD packet to send [01:04:33]OFD Sender: No OFD packet to send [01:04:38]OFD Sender: No OFD packet to send [01:04:43]OFD Sender: No OFD packet to send [01:04:48]OFD Sender: No OFD packet to send [01:04:53]OFD Sender: No OFD packet to send [01:04:58]OFD Sender: No OFD packet to send [01:05:03]OFD Sender: No OFD packet to send [01:05:08]OFD Sender: No OFD packet to send [01:05:13]OFD Sender: No OFD packet to send [01:05:18]OFD Sender: No OFD packet to send [01:05:23]OFD Sender: No OFD packet to send [01:05:28]OFD Sender: No OFD packet to send [01:05:33]OFD Sender: No OFD packet to send [01:05:38]OFD Sender: No OFD packet to send [01:05:43]OFD Sender: No OFD packet to send [01:05:48]OFD Sender: No OFD packet to send [01:05:53]OFD Sender: No OFD packet to send [01:05:58]OFD Sender: No OFD packet to send [01:06:03]OFD Sender: No OFD packet to send [01:06:08]OFD Sender: No OFD packet to send [01:06:13]OFD Sender: No OFD packet to send [01:06:18]OFD Sender: No OFD packet to send [01:06:23]OFD Sender: No OFD packet to send [01:06:28]OFD Sender: No OFD packet to send [01:06:33]OFD Sender: No OFD packet to send [01:06:38]OFD Sender: No OFD packet to send [01:06:43]OFD Sender: No OFD packet to send [01:06:48]OFD Sender: No OFD packet to send [01:06:53]OFD Sender: No OFD packet to send [01:06:58]OFD Sender: No OFD packet to send [01:07:03]OFD Sender: No OFD packet to send [01:07:08]OFD Sender: No OFD packet to send [01:07:13]OFD Sender: No OFD packet to send [01:07:18]OFD Sender: No OFD packet to send [01:07:23]OFD Sender: No OFD packet to send [01:07:29]OFD Sender: No OFD packet to send [01:07:34]OFD Sender: No OFD packet to send [01:07:39]OFD Sender: No OFD packet to send [01:07:44]OFD Sender: No OFD packet to send [01:07:49]OFD Sender: No OFD packet to send [01:07:54]OFD Sender: No OFD packet to send [01:07:59]OFD Sender: No OFD packet to send [01:08:04]OFD Sender: No OFD packet to send [01:08:09]OFD Sender: No OFD packet to send [01:08:14]OFD Sender: No OFD packet to send [01:08:19]OFD Sender: No OFD packet to send [01:08:24]OFD Sender: No OFD packet to send [01:08:29]OFD Sender: No OFD packet to send [01:08:34]OFD Sender: No OFD packet to send [01:08:39]OFD Sender: No OFD packet to send [01:08:44]OFD Sender: No OFD packet to send [01:08:49]OFD Sender: No OFD packet to send [01:08:54]OFD Sender: No OFD packet to send [01:08:59]OFD Sender: No OFD packet to send [01:09:04]OFD Sender: No OFD packet to send [01:09:09]OFD Sender: No OFD packet to send [01:09:14]OFD Sender: No OFD packet to send [01:09:19]OFD Sender: No OFD packet to send [01:09:24]OFD Sender: No OFD packet to send [01:09:29]OFD Sender: No OFD packet to send [01:09:34]OFD Sender: No OFD packet to send [01:09:39]OFD Sender: No OFD packet to send [01:09:44]OFD Sender: No OFD packet to send [01:09:49]OFD Sender: No OFD packet to send [01:09:54]OFD Sender: No OFD packet to send [01:09:59]OFD Sender: No OFD packet to send [01:10:04]OFD Sender: No OFD packet to send [01:10:09]OFD Sender: No OFD packet to send [01:10:14]OFD Sender: No OFD packet to send [01:10:19]OFD Sender: No OFD packet to send [01:10:24]OFD Sender: No OFD packet to send [01:10:29]OFD Sender: No OFD packet to send [01:10:34]OFD Sender: No OFD packet to send [01:10:39]OFD Sender: No OFD packet to send [01:10:44]OFD Sender: No OFD packet to send [01:10:49]OFD Sender: No OFD packet to send [01:10:54]OFD Sender: No OFD packet to send [01:10:59]OFD Sender: No OFD packet to send [01:11:04]OFD Sender: No OFD packet to send [01:11:09]OFD Sender: No OFD packet to send [01:11:14]OFD Sender: No OFD packet to send [01:11:19]OFD Sender: No OFD packet to send [01:11:24]OFD Sender: No OFD packet to send [01:11:29]OFD Sender: No OFD packet to send [01:11:34]OFD Sender: No OFD packet to send [01:11:39]OFD Sender: No OFD packet to send [01:11:44]OFD Sender: No OFD packet to send [01:11:49]OFD Sender: No OFD packet to send [01:11:54]OFD Sender: No OFD packet to send [01:11:59]OFD Sender: No OFD packet to send [01:12:04]OFD Sender: No OFD packet to send [01:12:09]OFD Sender: No OFD packet to send [01:12:14]OFD Sender: No OFD packet to send [01:12:19]OFD Sender: No OFD packet to send [01:12:24]OFD Sender: No OFD packet to send [01:12:29]OFD Sender: No OFD packet to send [01:12:34]OFD Sender: No OFD packet to send [01:12:39]OFD Sender: No OFD packet to send [01:12:44]OFD Sender: No OFD packet to send [01:12:49]OFD Sender: No OFD packet to send [01:12:54]OFD Sender: No OFD packet to send [01:12:59]OFD Sender: No OFD packet to send [01:13:04]OFD Sender: No OFD packet to send [01:13:09]OFD Sender: No OFD packet to send [01:13:14]OFD Sender: No OFD packet to send [01:13:19]OFD Sender: No OFD packet to send [01:13:24]OFD Sender: No OFD packet to send [01:13:29]OFD Sender: No OFD packet to send [01:13:31]accept exits with 7 [01:13:31]New connection [01:13:31]New thread 3067247972 created [01:13:31]Thread 3067104612 joined [01:13:31]Waiting for new connection... [01:13:31] Sock 7.Parse request [01:13:31]Sock 7.Check first char [01:13:31]Sock 7.First char is OK [01:13:31]request: POST /json_proto HTTP/1.0 [01:13:31]Method: POST [01:13:31]URL: /json_proto [01:13:31]Method is POST - this is cgi request [01:13:31]url: /json_proto [01:13:31]query_string will be loaded in cgi processing [01:13:31]execute_cgi json_proto POST (null) [01:13:31]execute_cgi path=json_proto method=POST [01:13:31]POST find Content-Length [01:13:31]Host: 172.17.55.133:8080 [01:13:31]Content-Length: 678 [01:13:31]Content-Type: application/json [01:13:31] [01:13:31]POST finish read [01:13:31]Found Content-Length = 678 [01:13:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:13:31]execute_script... [01:13: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)1036597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:13:31]POST & json_proto [01:13:31]process_json_proto [01:13:31]json parsed OK: [01:13:31]protocol is kg_v1.0 [01:13:31]action value=close_receipt [01:13:31]process_action close_receipt [01:13:31]cmd_close_receipt [01:13:31]MH_GetDate [01:13:31]Write to MH i2c: F0 00 00 DB 04 CE [01:13:31]Write i2c OK [01:13:31]MH_I2C_Read... [01:13:31]Read from MH i2c: F0 [01:13:31]MH_I2C_Read... [01:13:31]Read from MH i2c: F0 09 00 [01:13:31]MH_I2C_Read... [01:13:31]Read from MH i2c: F0 09 00 DB 04 00 3B 9C C2 66 34 48 D8 65 8F [01:13:31]GetLastDocTimeStamp 1724029436 [01:13:31]current date 1724030011 [01:13:31]FM_GetShiftState [01:13:31]SAM_PROTO_GetShiftState [01:13:31]wFMCommunicate request_size=4 [01:13:31]MH_SAM_APDU [01:13:31]CAPDU: 80 13 01 00 [01:13:31]Write to MH i2c: E2 08 00 DC 04 80 13 01 00 00 00 00 00 5D [01:13:31]Write i2c OK [01:13:31]MH_I2C_Read... [01:13:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:13:31]Read from MH i2c: E2 [01:13:31]MH_I2C_Read... [01:13:31]Read from MH i2c: E2 0E 00 [01:13:31]MH_I2C_Read... [01:13:31]Read from MH i2c: E2 0E 00 DC 04 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 F3 [01:13:31]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [01:13:31]wFMCommunicate OK [01:13:31]SAM_PROTO_GetShiftState done [01:13:31]FM_GetShiftState done [01:13:31]opened in 1724027600 [01:13:31]opened+sec_in_day 1724114000 [01:13:31]quantity*price = 20001 [01:13:31]sum+1 = 20002 [01:13:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 12 19.08.2024 01:13 Смена: 450 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261044 ФПД: 87386508330646 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T011332&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261044&fm=87386508330646&tin=02508201610067®Number=0000000000091865&sum=20000 [01:13:32]StoreToDocumentArchive [01:13:32]shift 450 fd 261044 [01:13:32]save to /storage/0450/doc_00261044 [01:13:32]save last doc name /storage/0450/doc_00261044 to /storage/kkm_last_doc_name [01:13:32]save OK [01:13:32]Clear old archive folders... [01:13:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:13:32]tlvbuf is 00A38720 [01:13:32]SAM_PROTO_ClearQueue [01:13:32]wFMCommunicate request_size=4 [01:13:32]MH_SAM_APDU [01:13:32]CAPDU: 80 09 00 00 [01:13:32]Write to MH i2c: E2 08 00 E9 04 80 09 00 00 00 00 00 00 5F [01:13:32]Write i2c OK [01:13:32]MH_I2C_Read... [01:13:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:13:32]Read from MH i2c: E2 [01:13:32]MH_I2C_Read... [01:13:32]Read from MH i2c: E2 03 00 [01:13:32]MH_I2C_Read... [01:13:32]Read from MH i2c: E2 03 00 E9 04 00 90 00 61 [01:13:32]RAPDU: 90 00 [01:13:32]wFMCommunicate OK [01:13:32]SAM_PROTO_ClearQueue done [01:13:32]KKMCreateOFDPacket [01:13:32]OFDProtocolAddRootSTLVToBuf [01:13:32]FM_MakeSignedData [01:13:32]FM_MakeSignedData [01:13:32]SAM_PROTO_SignData [01:13:32]wFMCommunicate request_size=4 [01:13:32]MH_SAM_APDU [01:13:32]CAPDU: 80 0D 01 02 [01:13:32]Write to MH i2c: E2 08 00 EA 04 80 0D 01 02 00 00 00 00 67 [01:13:32]Write i2c OK [01:13:32]MH_I2C_Read... [01:13:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:13:32]Read from MH i2c: E2 [01:13:32]MH_I2C_Read... [01:13:32]Read from MH i2c: E2 03 00 [01:13:32]MH_I2C_Read... [01:13:32]Read from MH i2c: E2 03 00 EA 04 00 90 00 62 [01:13:32]RAPDU: 90 00 [01:13:32]wFMCommunicate OK [01:13:32]wFMCommunicate request_size=255 [01:13:32]MH_SAM_APDU [01:13:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 3C 9C C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B4 FB 03 00 35 04 06 00 4F [01:13:32]Write to MH i2c: E2 02 01 EB 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 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 3C 9C C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B4 FB 03 00 35 04 06 00 4F 00 00 B6 [01:13:32]Write i2c OK [01:13:32]MH_I2C_Read... [01:13:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:13:33]Read from MH i2c: E2 [01:13:33]MH_I2C_Read... [01:13:33]Read from MH i2c: E2 03 00 [01:13:33]MH_I2C_Read... [01:13:33]Read from MH i2c: E2 03 00 EB 04 00 90 00 63 [01:13:33]RAPDU: 90 00 [01:13:33]wFMCommunicate OK [01:13:33]wFMCommunicate request_size=10 [01:13:33]MH_SAM_APDU [01:13:33]CAPDU: 80 0D 02 02 05 7A 41 C9 86 96 [01:13:33]Write to MH i2c: E2 0D 00 EC 04 80 0D 02 02 05 00 7A 41 C9 86 96 00 00 14 [01:13:33]Write i2c OK [01:13:33]MH_I2C_Read... [01:13:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:13:33]Read from MH i2c: E2 [01:13:33]MH_I2C_Read... [01:13:33]Read from MH i2c: E2 03 00 [01:13:33]MH_I2C_Read... [01:13:33]Read from MH i2c: E2 03 00 EC 04 00 90 00 64 [01:13:33]RAPDU: 90 00 [01:13:33]wFMCommunicate OK [01:13:33]wFMCommunicate request_size=4 [01:13:33]MH_SAM_APDU [01:13:33]CAPDU: 80 0D 03 02 [01:13:33]Write to MH i2c: E2 08 00 ED 04 80 0D 03 02 00 00 00 00 6C [01:13:33]Write i2c OK [01:13:33]MH_I2C_Read... [01:13:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:13:33]Read from MH i2c: E2 [01:13:33]MH_I2C_Read... [01:13:33]Read from MH i2c: E2 0B 00 [01:13:33]MH_I2C_Read... [01:13:33]Read from MH i2c: E2 0B 00 ED 04 00 AF 45 F1 12 A8 80 A1 C4 90 00 F1 [01:13:33]RAPDU: AF 45 F1 12 A8 80 A1 C4 90 00 [01:13:33]wFMCommunicate OK [01:13:33]SAM_PROTO_SignData done [01:13:33]FM_MakeSignedData done [01:13:33]CreateOFDProtocolMessage [01:13:33]wFMCommunicate request_size=4 [01:13:33]MH_SAM_APDU [01:13:33]CAPDU: 80 11 00 00 [01:13:33]Write to MH i2c: E2 08 00 EE 04 80 11 00 00 00 00 00 00 6C [01:13:33]Write i2c OK [01:13:33]MH_I2C_Read... [01:13:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:13:33]Read from MH i2c: E2 [01:13:33]MH_I2C_Read... [01:13:33]Read from MH i2c: E2 17 00 [01:13:33]MH_I2C_Read... [01:13:33]Read from MH i2c: E2 17 00 EE 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B9 [01:13:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [01:13:33]wFMCommunicate OK [01:13:33]CreateOFDProtocolMessage done [01:13:33]OFDSenderStorePacket 261044 [01:13:33]StoreOFDPacket docnum=261044 [01:13:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 B7 64 07 01 79 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 3C 9C C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B4 FB 03 00 35 04 06 00 4F 7A 41 C9 86 96 AF 45 F1 12 A8 80 A1 C4 [01:13:33]CheckFolder [01:13:33]dirname=/storage/ofd_packets [01:13:33]CheckFolder done [01:13:33]ProducePacketName [01:13:33]name=ofd_packets/00261044 [01:13:33]NVStorageSaveData ofd_packets/00261044 [01:13:33]File name is /storage/ofd_packets/00261044 [01:13:33]Write 301 bytes [01:13:33]NVStorageSaveData done [01:13:33]OFDSenderStorePacket done [01:13:33]KKMCreateOFDPacket done [01:13:33]NVStorageSaveData kkm_last_timestamp [01:13:33]File name is /storage/kkm_last_timestamp [01:13:33]Write 4 bytes [01:13:33]NVStorageSaveData done [01:13:33]ExternCall_PrintAddStr [01:13:33]wPrintStart [01:13:33]Write to MH i2c: 01 00 00 EF 04 F3 [01:13:33]Write i2c OK [01:13:33]MH_I2C_Read... [01:13:33]Read from MH i2c: 01 [01:13:33]MH_I2C_Read... [01:13:33]Read from MH i2c: 01 07 00 [01:13:33]MH_I2C_Read... [01:13:33]Read from MH i2c: 01 07 00 EF 04 00 00 00 00 00 FF 0F 08 [01:13:33]RasterBufferAndPrint [01:13:33]line Счет N : (1)1036597 [01:13:33]line ИНН: 02508201610067 [01:13:33]line Контрольно-Кассовый Чек [01:13:33]line ПРОДАЖА [01:13:33]line ТРК (МРК, ГНК) : 42 [01:13:33]line Товар: 2710124130 [01:13:33]line Аи-92-К-5 [01:13:33]line 2.950 * 67.80 [01:13:33]line = 200.01 [01:13:33]line НДС 12% НСП 1% [01:13:33]line > о реализуемом товаре [01:13:33]line ОКРУГЛЕНИЕ: -0.01 [01:13:33]line ИТОГО: 200.00 [01:13:33]line Внесено: 200.00 [01:13:33]line СДАЧА: 0.00 [01:13:33]line НСП 1% : 1.77 [01:13:33]line НДС 12% : 21.24 [01:13:33]line Наличными: 200.00 [01:13:33]line Безнал.: 0.00 [01:13:33]line Место: АЗС № 94 "Партнер Нефть" [01:13:33]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [01:13:33]line СНО: Общий режим [01:13:33]line Чек 12 19.08.2024 01:13 [01:13:33]line Смена: 450 ФФД: 1.0 [01:13:33]line ЗНМ: 0300000099 [01:13:33]line РНМ: 0000000000091865 [01:13:33]line Версия ККМ: 001 [01:13:33]line ФМ: 0000000000871820 [01:13:33]line ФД: 261044 [01:13:33]line ФПД: 87386508330646 [01:13:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T011332&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261044&fm=87386508330646&tin=02508201610067®Number=0000000000091865&sum=20000 [01:13:33]written 0, free lines is 4095 [01:13:33]OFD Sender: Processing packet 261044 [packets to send 192, broken 191] [01:13:33]ProducePacketName [01:13:33]name=ofd_packets/00261044 [01:13:33]OFD Sender: To server: pG, [01:13:33]CommunicateWithHost lk.salyk.kg:30040 [01:13:33]ConnectInit lk.salyk.kg [01:13:33]Connected sock=11 [01:13:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 B7 64 07 01 79 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 3C 9C C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B4 FB 03 00 35 04 06 00 4F 7A 41 C9 86 96 AF 45 F1 12 A8 80 A1 C4 [01:13: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 30 4F 00 00 00 03 7C 47 00 C3 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B4 FB 03 00 F4 03 04 00 8E 45 C2 66 B6 04 01 00 00 79 6F 6F B7 5A 87 01 DF [01:13:33]CommunicateWithHost err = 0 [01:13:33]CheckOFDResponse [01:13:33]1017 (14) - 77093643461234 [01:13:33]1041 (16) - 0000000000871820 [01:13:33]1040 (4) - 261044 [01:13:33]1012 (4) - 18.08.2024 19:03 [01:13:33]1206 (1) - 0 [01:13:33]OFD Sender: Remove packet 261044 [01:13:33]ProducePacketName [01:13:33]name=ofd_packets/00261044 [01:13:33]NVStorageDeleteData [01:13:33]Write to MH i2c: 01 00 00 1A 05 1F [01:13:33]Write i2c OK [01:13:33]MH_I2C_Read... [01:13:33]Read from MH i2c: 01 [01:13:33]MH_I2C_Read... [01:13:33]Read from MH i2c: 01 07 00 [01:13:33]MH_I2C_Read... [01:13:33]Read from MH i2c: 01 07 00 1A 05 00 00 00 00 00 55 0C 87 [01:13:33]RasterBufferAndPrint [01:13:33]line [01:13:33]line [01:13:33]line [01:13:33]line [01:13:33]line [01:13:33]written 0, free lines is 3160 [01:13:33]MH_Cut [01:13:33]Write to MH i2c: D1 01 00 21 05 01 F8 [01:13:33]Write i2c OK [01:13:33]MH_I2C_Read... [01:13:33]Read from MH i2c: D1 [01:13:33]MH_I2C_Read... [01:13:33]Read from MH i2c: D1 01 00 [01:13:33]MH_I2C_Read... [01:13:33]Read from MH i2c: D1 01 00 21 05 00 F7 [01:13:33]Write to MH i2c: 01 00 00 22 05 27 [01:13:33]Write i2c OK [01:13:33]MH_I2C_Read... [01:13:34]OFD Sender: No OFD packet to send [01:13:34]*** Cut start [01:13:34]*** Purtial cut [01:13:34]*** Stage 1: CUTSNS_PIN = 1 [01:13:36]Read from MH i2c: 01 [01:13:36]MH_I2C_Read... [01:13:36]*** Stop cut motor [01:13:36]*** Cut end [01:13:36]Read from MH i2c: 01 07 00 [01:13:36]MH_I2C_Read... [01:13:36]Read from MH i2c: 01 07 00 22 05 00 00 00 00 00 FF 0F 3C [01:13:36]process_action close_receipt done [01:13:36]requested_data is exist [01:13:36]produce_requested_data [01:13:36]requested_item fm.sn is exist - process it [01:13:36]wFMCommunicate request_size=4 [01:13:36]MH_SAM_APDU [01:13:36]CAPDU: 80 11 00 00 [01:13:36]Write to MH i2c: E2 08 00 23 05 80 11 00 00 00 00 00 00 A2 [01:13:36]Write i2c OK [01:13:36]MH_I2C_Read... [01:13:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:13:36]Read from MH i2c: E2 [01:13:36]MH_I2C_Read... [01:13:36]Read from MH i2c: E2 17 00 [01:13:36]MH_I2C_Read... [01:13:36]Read from MH i2c: E2 17 00 23 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 EF [01:13:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [01:13:36]wFMCommunicate OK [01:13:36]requested_item fd.num is exist - process it [01:13:36]SAM_PROTO_GetFieldsCounters [01:13:36]wFMCommunicate request_size=4 [01:13:36]MH_SAM_APDU [01:13:36]CAPDU: 80 13 00 00 [01:13:36]Write to MH i2c: E2 08 00 24 05 80 13 00 00 00 00 00 00 A5 [01:13:36]Write i2c OK [01:13:36]MH_I2C_Read... [01:13:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:13:37]Read from MH i2c: E2 [01:13:37]MH_I2C_Read... [01:13:37]Read from MH i2c: E2 62 00 [01:13:37]MH_I2C_Read... [01:13:37]Read from MH i2c: E2 62 00 24 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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B4 FB 03 00 0E 04 04 00 C2 01 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 5D [01:13: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B4 FB 03 00 0E 04 04 00 C2 01 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 [01:13:37]wFMCommunicate OK [01:13:37]SAM_PROTO_GetFieldsCounters done [01:13:37]requested_item shift.num is exist - process it [01:13:37]requested_item shift.opened is exist - process it [01:13:37]req_shift_opened [01:13:37]FM_GetShiftState [01:13:37]SAM_PROTO_GetShiftState [01:13:37]wFMCommunicate request_size=4 [01:13:37]MH_SAM_APDU [01:13:37]CAPDU: 80 13 01 00 [01:13:37]Write to MH i2c: E2 08 00 25 05 80 13 01 00 00 00 00 00 A7 [01:13:37]Write i2c OK [01:13:37]MH_I2C_Read... [01:13:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:13:37]Read from MH i2c: E2 [01:13:37]MH_I2C_Read... [01:13:37]Read from MH i2c: E2 0E 00 [01:13:37]MH_I2C_Read... [01:13:37]Read from MH i2c: E2 0E 00 25 05 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 3D [01:13:37]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [01:13:37]wFMCommunicate OK [01:13:37]SAM_PROTO_GetShiftState done [01:13:37]FM_GetShiftState done [01:13:37]req_shift_opened done [01:13:37]requested_item shift.open_date is exist - process it [01:13:37]req_shift_open_date [01:13:37]req_shift_open_date done [01:13:37]produce_requested_data done [01:13:37]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261044,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600} [01:13:37]process_action_free close_receipt [01:13:37]json_value_free [01:13:37]json_value_free done [01:13:37]process_json_proto returns [01:13:37]Send response to host [01:13:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261044,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600}}} [01:13:37]free response buf [01:13:37]execute_script done [01:13:37]execute_script returns [01:13:37]free content buf [01:13:37]Sock 7.Close socket [01:13:37]Sock 7.Thread stoped [01:13:39]OFD Sender: No OFD packet to send [01:13:44]OFD Sender: No OFD packet to send [01:13:49]OFD Sender: No OFD packet to send [01:13:54]OFD Sender: No OFD packet to send [01:13:59]OFD Sender: No OFD packet to send [01:14:04]OFD Sender: No OFD packet to send [01:14:09]OFD Sender: No OFD packet to send [01:14:14]OFD Sender: No OFD packet to send [01:14:19]OFD Sender: No OFD packet to send [01:14:24]OFD Sender: No OFD packet to send [01:14:29]OFD Sender: No OFD packet to send [01:14:34]OFD Sender: No OFD packet to send [01:14:39]OFD Sender: No OFD packet to send [01:14:44]OFD Sender: No OFD packet to send [01:14:49]OFD Sender: No OFD packet to send [01:14:54]OFD Sender: No OFD packet to send [01:14:59]OFD Sender: No OFD packet to send [01:15:04]OFD Sender: No OFD packet to send [01:15:09]OFD Sender: No OFD packet to send [01:15:14]OFD Sender: No OFD packet to send [01:15:19]OFD Sender: No OFD packet to send [01:15:24]OFD Sender: No OFD packet to send [01:15:29]OFD Sender: No OFD packet to send [01:15:34]OFD Sender: No OFD packet to send [01:15:39]OFD Sender: No OFD packet to send [01:15:44]OFD Sender: No OFD packet to send [01:15:49]OFD Sender: No OFD packet to send [01:15:54]OFD Sender: No OFD packet to send [01:15:59]OFD Sender: No OFD packet to send [01:16:04]OFD Sender: No OFD packet to send [01:16:09]OFD Sender: No OFD packet to send [01:16:14]OFD Sender: No OFD packet to send [01:16:19]OFD Sender: No OFD packet to send [01:16:24]OFD Sender: No OFD packet to send [01:16:29]OFD Sender: No OFD packet to send [01:16:34]OFD Sender: No OFD packet to send [01:16:39]OFD Sender: No OFD packet to send [01:16:44]OFD Sender: No OFD packet to send [01:16:49]OFD Sender: No OFD packet to send [01:16:54]OFD Sender: No OFD packet to send [01:16:59]OFD Sender: No OFD packet to send [01:17:04]OFD Sender: No OFD packet to send [01:17:09]OFD Sender: No OFD packet to send [01:17:14]OFD Sender: No OFD packet to send [01:17:19]OFD Sender: No OFD packet to send [01:17:24]OFD Sender: No OFD packet to send [01:17:29]OFD Sender: No OFD packet to send [01:17:34]OFD Sender: No OFD packet to send [01:17:39]OFD Sender: No OFD packet to send [01:17:44]OFD Sender: No OFD packet to send [01:17:49]OFD Sender: No OFD packet to send [01:17:54]OFD Sender: No OFD packet to send [01:17:59]OFD Sender: No OFD packet to send [01:18:04]OFD Sender: No OFD packet to send [01:18:09]OFD Sender: No OFD packet to send [01:18:14]OFD Sender: No OFD packet to send [01:18:19]OFD Sender: No OFD packet to send [01:18:24]OFD Sender: No OFD packet to send [01:18:29]OFD Sender: No OFD packet to send [01:18:34]OFD Sender: No OFD packet to send [01:18:39]OFD Sender: No OFD packet to send [01:18:44]OFD Sender: No OFD packet to send [01:18:49]OFD Sender: No OFD packet to send [01:18:54]OFD Sender: No OFD packet to send [01:18:59]OFD Sender: No OFD packet to send [01:19:04]OFD Sender: No OFD packet to send [01:19:09]OFD Sender: No OFD packet to send [01:19:14]OFD Sender: No OFD packet to send [01:19:19]OFD Sender: No OFD packet to send [01:19:24]OFD Sender: No OFD packet to send [01:19:29]OFD Sender: No OFD packet to send [01:19:34]OFD Sender: No OFD packet to send [01:19:39]OFD Sender: No OFD packet to send [01:19:44]OFD Sender: No OFD packet to send [01:19:49]OFD Sender: No OFD packet to send [01:19:54]OFD Sender: No OFD packet to send [01:19:59]OFD Sender: No OFD packet to send [01:20:04]OFD Sender: No OFD packet to send [01:20:09]OFD Sender: No OFD packet to send [01:20:14]OFD Sender: No OFD packet to send [01:20:19]OFD Sender: No OFD packet to send [01:20:24]OFD Sender: No OFD packet to send [01:20:29]OFD Sender: No OFD packet to send [01:20:34]OFD Sender: No OFD packet to send [01:20:39]OFD Sender: No OFD packet to send [01:20:44]OFD Sender: No OFD packet to send [01:20:49]OFD Sender: No OFD packet to send [01:20:54]OFD Sender: No OFD packet to send [01:20:59]OFD Sender: No OFD packet to send [01:21:04]OFD Sender: No OFD packet to send [01:21:09]OFD Sender: No OFD packet to send [01:21:14]OFD Sender: No OFD packet to send [01:21:19]OFD Sender: No OFD packet to send [01:21:24]OFD Sender: No OFD packet to send [01:21:28]accept exits with 9 [01:21:28]New connection [01:21:28]New thread 3067104612 created [01:21:28]Thread 3067247972 joined [01:21:28]Waiting for new connection... [01:21:28] Sock 9.Parse request [01:21:28]Sock 9.Check first char [01:21:28]Sock 9.First char is OK [01:21:28]request: POST /json_proto HTTP/1.0 [01:21:28]Method: POST [01:21:28]URL: /json_proto [01:21:28]Method is POST - this is cgi request [01:21:28]url: /json_proto [01:21:28]query_string will be loaded in cgi processing [01:21:28]execute_cgi json_proto POST (null) [01:21:28]execute_cgi path=json_proto method=POST [01:21:28]POST find Content-Length [01:21:28]Host: 172.17.55.133:8080 [01:21:28]Content-Length: 679 [01:21:28]Content-Type: application/json [01:21:28] [01:21:28]POST finish read [01:21:28]Found Content-Length = 679 [01:21:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:21:28]execute_script... [01:21:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:21:28]POST & json_proto [01:21:28]process_json_proto [01:21:28]json parsed OK: [01:21:28]protocol is kg_v1.0 [01:21:28]action value=close_receipt [01:21:28]process_action close_receipt [01:21:28]cmd_close_receipt [01:21:28]MH_GetDate [01:21:28]Write to MH i2c: F0 00 00 26 05 1A [01:21:28]Write i2c OK [01:21:28]MH_I2C_Read... [01:21:28]Read from MH i2c: F0 [01:21:28]MH_I2C_Read... [01:21:28]Read from MH i2c: F0 09 00 [01:21:28]MH_I2C_Read... [01:21:28]Read from MH i2c: F0 09 00 26 05 00 19 9E C2 66 34 48 D8 65 BB [01:21:28]GetLastDocTimeStamp 1724030012 [01:21:28]current date 1724030489 [01:21:28]FM_GetShiftState [01:21:28]SAM_PROTO_GetShiftState [01:21:28]wFMCommunicate request_size=4 [01:21:28]MH_SAM_APDU [01:21:28]CAPDU: 80 13 01 00 [01:21:28]Write to MH i2c: E2 08 00 27 05 80 13 01 00 00 00 00 00 A9 [01:21:28]Write i2c OK [01:21:28]MH_I2C_Read... [01:21:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:21:28]Read from MH i2c: E2 [01:21:28]MH_I2C_Read... [01:21:28]Read from MH i2c: E2 0E 00 [01:21:28]MH_I2C_Read... [01:21:28]Read from MH i2c: E2 0E 00 27 05 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 3F [01:21:28]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [01:21:28]wFMCommunicate OK [01:21:28]SAM_PROTO_GetShiftState done [01:21:28]FM_GetShiftState done [01:21:28]opened in 1724027600 [01:21:28]opened+sec_in_day 1724114000 [01:21:28]quantity*price = 70037 [01:21:28]sum+1 = 70038 [01:21:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 13 19.08.2024 01:21 Смена: 450 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261045 ФПД: 160947450777359 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T012129&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261045&fm=160947450777359&tin=02508201610067®Number=0000000000091865&sum=70000 [01:21:29]StoreToDocumentArchive [01:21:29]shift 450 fd 261045 [01:21:29]save to /storage/0450/doc_00261045 [01:21:29]save last doc name /storage/0450/doc_00261045 to /storage/kkm_last_doc_name [01:21:29]save OK [01:21:29]Clear old archive folders... [01:21:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:21:29]tlvbuf is 00A3A040 [01:21:29]SAM_PROTO_ClearQueue [01:21:29]wFMCommunicate request_size=4 [01:21:29]MH_SAM_APDU [01:21:29]CAPDU: 80 09 00 00 [01:21:29]Write to MH i2c: E2 08 00 34 05 80 09 00 00 00 00 00 00 AB [01:21:29]Write i2c OK [01:21:29]MH_I2C_Read... [01:21:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:21:29]OFD Sender: No OFD packet to send [01:21:29]Read from MH i2c: E2 [01:21:29]MH_I2C_Read... [01:21:29]Read from MH i2c: E2 03 00 [01:21:29]MH_I2C_Read... [01:21:29]Read from MH i2c: E2 03 00 34 05 00 90 00 AD [01:21:29]RAPDU: 90 00 [01:21:29]wFMCommunicate OK [01:21:29]SAM_PROTO_ClearQueue done [01:21:29]KKMCreateOFDPacket [01:21:29]OFDProtocolAddRootSTLVToBuf [01:21:29]FM_MakeSignedData [01:21:29]FM_MakeSignedData [01:21:29]SAM_PROTO_SignData [01:21:29]wFMCommunicate request_size=4 [01:21:29]MH_SAM_APDU [01:21:29]CAPDU: 80 0D 01 02 [01:21:29]Write to MH i2c: E2 08 00 35 05 80 0D 01 02 00 00 00 00 B3 [01:21:29]Write i2c OK [01:21:29]MH_I2C_Read... [01:21:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:21:29]Read from MH i2c: E2 [01:21:29]MH_I2C_Read... [01:21:29]Read from MH i2c: E2 03 00 [01:21:29]MH_I2C_Read... [01:21:29]Read from MH i2c: E2 03 00 35 05 00 90 00 AE [01:21:29]RAPDU: 90 00 [01:21:29]wFMCommunicate OK [01:21:29]wFMCommunicate request_size=255 [01:21:29]MH_SAM_APDU [01:21:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0D 00 00 00 F4 03 04 00 19 9E C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B5 FB 03 00 35 04 06 00 92 [01:21:29]Write to MH i2c: E2 02 01 36 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0D 00 00 00 F4 03 04 00 19 9E C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B5 FB 03 00 35 04 06 00 92 00 00 0B [01:21:29]Write i2c OK [01:21:29]MH_I2C_Read... [01:21:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:21:30]Read from MH i2c: E2 [01:21:30]MH_I2C_Read... [01:21:30]Read from MH i2c: E2 03 00 [01:21:30]MH_I2C_Read... [01:21:30]Read from MH i2c: E2 03 00 36 05 00 90 00 AF [01:21:30]RAPDU: 90 00 [01:21:30]wFMCommunicate OK [01:21:30]wFMCommunicate request_size=10 [01:21:30]MH_SAM_APDU [01:21:30]CAPDU: 80 0D 02 02 05 61 7F A1 8F 0F [01:21:30]Write to MH i2c: E2 0D 00 37 05 80 0D 02 02 05 00 61 7F A1 8F 0F 00 00 DF [01:21:30]Write i2c OK [01:21:30]MH_I2C_Read... [01:21:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:21:30]Read from MH i2c: E2 [01:21:30]MH_I2C_Read... [01:21:30]Read from MH i2c: E2 03 00 [01:21:30]MH_I2C_Read... [01:21:30]Read from MH i2c: E2 03 00 37 05 00 90 00 B0 [01:21:30]RAPDU: 90 00 [01:21:30]wFMCommunicate OK [01:21:30]wFMCommunicate request_size=4 [01:21:30]MH_SAM_APDU [01:21:30]CAPDU: 80 0D 03 02 [01:21:30]Write to MH i2c: E2 08 00 38 05 80 0D 03 02 00 00 00 00 B8 [01:21:30]Write i2c OK [01:21:30]MH_I2C_Read... [01:21:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:21:30]Read from MH i2c: E2 [01:21:30]MH_I2C_Read... [01:21:30]Read from MH i2c: E2 0B 00 [01:21:30]MH_I2C_Read... [01:21:30]Read from MH i2c: E2 0B 00 38 05 00 46 8B 16 9C B4 10 B3 52 90 00 05 [01:21:30]RAPDU: 46 8B 16 9C B4 10 B3 52 90 00 [01:21:30]wFMCommunicate OK [01:21:30]SAM_PROTO_SignData done [01:21:30]FM_MakeSignedData done [01:21:30]CreateOFDProtocolMessage [01:21:30]wFMCommunicate request_size=4 [01:21:30]MH_SAM_APDU [01:21:30]CAPDU: 80 11 00 00 [01:21:30]Write to MH i2c: E2 08 00 39 05 80 11 00 00 00 00 00 00 B8 [01:21:30]Write i2c OK [01:21:30]MH_I2C_Read... [01:21:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:21:30]Read from MH i2c: E2 [01:21:30]MH_I2C_Read... [01:21:30]Read from MH i2c: E2 17 00 [01:21:30]MH_I2C_Read... [01:21:30]Read from MH i2c: E2 17 00 39 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 05 [01:21:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [01:21:30]wFMCommunicate OK [01:21:30]CreateOFDProtocolMessage done [01:21:30]OFDSenderStorePacket 261045 [01:21:30]StoreOFDPacket docnum=261045 [01:21:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 74 8F 07 01 21 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0D 00 00 00 F4 03 04 00 19 9E C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B5 FB 03 00 35 04 06 00 92 61 7F A1 8F 0F 46 8B 16 9C B4 10 B3 52 [01:21:30]CheckFolder [01:21:30]dirname=/storage/ofd_packets [01:21:30]CheckFolder done [01:21:30]ProducePacketName [01:21:30]name=ofd_packets/00261045 [01:21:30]NVStorageSaveData ofd_packets/00261045 [01:21:30]File name is /storage/ofd_packets/00261045 [01:21:30]Write 301 bytes [01:21:30]NVStorageSaveData done [01:21:30]OFDSenderStorePacket done [01:21:30]KKMCreateOFDPacket done [01:21:30]NVStorageSaveData kkm_last_timestamp [01:21:30]File name is /storage/kkm_last_timestamp [01:21:30]Write 4 bytes [01:21:30]NVStorageSaveData done [01:21:30]ExternCall_PrintAddStr [01:21:30]wPrintStart [01:21:30]Write to MH i2c: 01 00 00 3A 05 3F [01:21:30]Write i2c OK [01:21:30]MH_I2C_Read... [01:21:30]Read from MH i2c: 01 [01:21:30]MH_I2C_Read... [01:21:30]Read from MH i2c: 01 07 00 [01:21:30]MH_I2C_Read... [01:21:30]Read from MH i2c: 01 07 00 3A 05 00 00 00 00 00 FF 0F 54 [01:21:30]RasterBufferAndPrint [01:21:30]line Счет N : (1)1036598 [01:21:30]line ИНН: 02508201610067 [01:21:30]line Контрольно-Кассовый Чек [01:21:30]line ПРОДАЖА [01:21:30]line ТРК (МРК, ГНК) : 32 [01:21:30]line Товар: 2710124130 [01:21:30]line Аи-92-К-5 [01:21:30]line 10.330 * 67.80 [01:21:30]line = 700.37 [01:21:30]line НДС 12% НСП 1% [01:21:30]line > о реализуемом товаре [01:21:30]line ОКРУГЛЕНИЕ: -0.37 [01:21:30]line ИТОГО: 700.00 [01:21:30]line Внесено: 700.00 [01:21:30]line СДАЧА: 0.00 [01:21:30]line НСП 1% : 6.20 [01:21:30]line НДС 12% : 74.38 [01:21:30]line Наличными: 700.00 [01:21:30]line Безнал.: 0.00 [01:21:30]line Место: АЗС № 94 "Партнер Нефть" [01:21:30]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [01:21:30]line СНО: Общий режим [01:21:30]line Чек 13 19.08.2024 01:21 [01:21:30]line Смена: 450 ФФД: 1.0 [01:21:30]line ЗНМ: 0300000099 [01:21:30]line РНМ: 0000000000091865 [01:21:30]line Версия ККМ: 001 [01:21:30]line ФМ: 0000000000871820 [01:21:30]line ФД: 261045 [01:21:30]line ФПД: 160947450777359 [01:21:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T012129&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261045&fm=160947450777359&tin=02508201610067®Number=0000000000091865&sum=70000 [01:21:30]OFD Sender: Processing packet 261045 [packets to send 192, broken 191] [01:21:30]ProducePacketName [01:21:30]name=ofd_packets/00261045 [01:21:30]OFD Sender: To server: pG, [01:21:30]CommunicateWithHost lk.salyk.kg:30040 [01:21:30]ConnectInit lk.salyk.kg [01:21:30]written 0, free lines is 4095 [01:21:30]Connected sock=10 [01:21: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 30 0F 01 00 00 74 8F 07 01 21 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0D 00 00 00 F4 03 04 00 19 9E C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B5 FB 03 00 35 04 06 00 92 61 7F A1 8F 0F 46 8B 16 9C B4 10 B3 52 [01:21: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 30 4F 00 00 00 B8 46 47 00 D7 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 30 10 04 04 00 B5 FB 03 00 F4 03 04 00 6C 47 C2 66 B6 04 01 00 00 D6 54 45 0D E3 EE 13 2D [01:21:30]CommunicateWithHost err = 0 [01:21:30]CheckOFDResponse [01:21:30]1017 (14) - 77093643461234 [01:21:30]1041 (16) - 0000000000871820 [01:21:30]1040 (4) - 261045 [01:21:30]1012 (4) - 18.08.2024 19:11 [01:21:30]1206 (1) - 0 [01:21:30]OFD Sender: Remove packet 261045 [01:21:30]ProducePacketName [01:21:30]name=ofd_packets/00261045 [01:21:30]NVStorageDeleteData [01:21:31]Write to MH i2c: 01 00 00 65 05 6A [01:21:31]Write i2c OK [01:21:31]MH_I2C_Read... [01:21:31]Read from MH i2c: 01 [01:21:31]MH_I2C_Read... [01:21:31]Read from MH i2c: 01 07 00 [01:21:31]MH_I2C_Read... [01:21:31]Read from MH i2c: 01 07 00 65 05 00 00 00 00 00 4F 0C CC [01:21:31]RasterBufferAndPrint [01:21:31]line [01:21:31]line [01:21:31]line [01:21:31]line [01:21:31]line [01:21:31]written 0, free lines is 3154 [01:21:31]MH_Cut [01:21:31]Write to MH i2c: D1 01 00 6C 05 01 43 [01:21:31]Write i2c OK [01:21:31]MH_I2C_Read... [01:21:31]Read from MH i2c: D1 [01:21:31]MH_I2C_Read... [01:21:31]Read from MH i2c: D1 01 00 [01:21:31]MH_I2C_Read... [01:21:31]Read from MH i2c: D1 01 00 6C 05 00 42 [01:21:31]Write to MH i2c: 01 00 00 6D 05 72 [01:21:31]Write i2c OK [01:21:31]MH_I2C_Read... [01:21:31]OFD Sender: No OFD packet to send [01:21:32]*** Cut start [01:21:32]*** Purtial cut [01:21:32]*** Stage 1: CUTSNS_PIN = 1 [01:21:34]Read from MH i2c: 01 [01:21:34]MH_I2C_Read... [01:21:34]*** Stop cut motor [01:21:34]*** Cut end [01:21:34]Read from MH i2c: 01 07 00 [01:21:34]MH_I2C_Read... [01:21:34]Read from MH i2c: 01 07 00 6D 05 00 00 00 00 00 FF 0F 87 [01:21:34]process_action close_receipt done [01:21:34]requested_data is exist [01:21:34]produce_requested_data [01:21:34]requested_item fm.sn is exist - process it [01:21:34]wFMCommunicate request_size=4 [01:21:34]MH_SAM_APDU [01:21:34]CAPDU: 80 11 00 00 [01:21:34]Write to MH i2c: E2 08 00 6E 05 80 11 00 00 00 00 00 00 ED [01:21:34]Write i2c OK [01:21:34]MH_I2C_Read... [01:21:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:21:34]Read from MH i2c: E2 [01:21:34]MH_I2C_Read... [01:21:34]Read from MH i2c: E2 17 00 [01:21:34]MH_I2C_Read... [01:21:34]Read from MH i2c: E2 17 00 6E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 3A [01:21:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [01:21:34]wFMCommunicate OK [01:21:34]requested_item fd.num is exist - process it [01:21:34]SAM_PROTO_GetFieldsCounters [01:21:34]wFMCommunicate request_size=4 [01:21:34]MH_SAM_APDU [01:21:34]CAPDU: 80 13 00 00 [01:21:34]Write to MH i2c: E2 08 00 6F 05 80 13 00 00 00 00 00 00 F0 [01:21:34]Write i2c OK [01:21:34]MH_I2C_Read... [01:21:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:21:34]Read from MH i2c: E2 [01:21:34]MH_I2C_Read... [01:21:34]Read from MH i2c: E2 62 00 [01:21:34]MH_I2C_Read... [01:21:34]Read from MH i2c: E2 62 00 6F 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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B5 FB 03 00 0E 04 04 00 C2 01 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 AC [01:21:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B5 FB 03 00 0E 04 04 00 C2 01 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 [01:21:34]wFMCommunicate OK [01:21:34]SAM_PROTO_GetFieldsCounters done [01:21:34]requested_item shift.num is exist - process it [01:21:34]requested_item shift.opened is exist - process it [01:21:34]req_shift_opened [01:21:34]FM_GetShiftState [01:21:34]SAM_PROTO_GetShiftState [01:21:34]wFMCommunicate request_size=4 [01:21:34]MH_SAM_APDU [01:21:34]CAPDU: 80 13 01 00 [01:21:34]Write to MH i2c: E2 08 00 70 05 80 13 01 00 00 00 00 00 F2 [01:21:34]Write i2c OK [01:21:34]MH_I2C_Read... [01:21:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:21:34]Read from MH i2c: E2 [01:21:34]MH_I2C_Read... [01:21:34]Read from MH i2c: E2 0E 00 [01:21:34]MH_I2C_Read... [01:21:34]Read from MH i2c: E2 0E 00 70 05 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 88 [01:21:34]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [01:21:34]wFMCommunicate OK [01:21:34]SAM_PROTO_GetShiftState done [01:21:34]FM_GetShiftState done [01:21:34]req_shift_opened done [01:21:34]requested_item shift.open_date is exist - process it [01:21:34]req_shift_open_date [01:21:34]req_shift_open_date done [01:21:34]produce_requested_data done [01:21:34]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261045,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600} [01:21:34]process_action_free close_receipt [01:21:34]json_value_free [01:21:34]json_value_free done [01:21:34]process_json_proto returns [01:21:34]Send response to host [01:21:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261045,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600}}} [01:21:34]free response buf [01:21:34]execute_script done [01:21:34]execute_script returns [01:21:34]free content buf [01:21:34]Sock 9.Close socket [01:21:34]Sock 9.Thread stoped [01:21:36]OFD Sender: No OFD packet to send [01:21:41]OFD Sender: No OFD packet to send [01:21:46]OFD Sender: No OFD packet to send [01:21:51]OFD Sender: No OFD packet to send [01:21:56]OFD Sender: No OFD packet to send [01:22:01]OFD Sender: No OFD packet to send [01:22:06]OFD Sender: No OFD packet to send [01:22:11]OFD Sender: No OFD packet to send [01:22:16]OFD Sender: No OFD packet to send [01:22:21]OFD Sender: No OFD packet to send [01:22:26]OFD Sender: No OFD packet to send [01:22:31]OFD Sender: No OFD packet to send [01:22:36]OFD Sender: No OFD packet to send [01:22:41]OFD Sender: No OFD packet to send [01:22:46]OFD Sender: No OFD packet to send [01:22:51]OFD Sender: No OFD packet to send [01:22:56]OFD Sender: No OFD packet to send [01:23:01]OFD Sender: No OFD packet to send [01:23:06]accept exits with 7 [01:23:06]New connection [01:23:06]New thread 3067247972 created [01:23:06]Thread 3067104612 joined [01:23:06]Waiting for new connection... [01:23:06] Sock 7.Parse request [01:23:06]Sock 7.Check first char [01:23:06]Sock 7.First char is OK [01:23:06]request: POST /json_proto HTTP/1.0 [01:23:06]Method: POST [01:23:06]URL: /json_proto [01:23:06]Method is POST - this is cgi request [01:23:06]url: /json_proto [01:23:06]query_string will be loaded in cgi processing [01:23:06]execute_cgi json_proto POST (null) [01:23:06]execute_cgi path=json_proto method=POST [01:23:06]POST find Content-Length [01:23:06]Host: 172.17.55.133:8080 [01:23:06]Content-Length: 678 [01:23:06]Content-Type: application/json [01:23:06] [01:23:06]POST finish read [01:23:06]Found Content-Length = 678 [01:23:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 1.480, "sum" : 100.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:23:06]execute_script... [01:23: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)1036599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 1.480, "sum" : 100.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:23:06]POST & json_proto [01:23:06]process_json_proto [01:23:06]json parsed OK: [01:23:06]protocol is kg_v1.0 [01:23:06]action value=close_receipt [01:23:06]process_action close_receipt [01:23:06]cmd_close_receipt [01:23:06]MH_GetDate [01:23:06]Write to MH i2c: F0 00 00 71 05 65 [01:23:06]Write i2c OK [01:23:06]MH_I2C_Read... [01:23:06]Read from MH i2c: F0 [01:23:06]MH_I2C_Read... [01:23:06]Read from MH i2c: F0 09 00 [01:23:06]MH_I2C_Read... [01:23:06]Read from MH i2c: F0 09 00 71 05 00 7A 9E C2 66 34 48 D8 65 67 [01:23:06]GetLastDocTimeStamp 1724030489 [01:23:06]current date 1724030586 [01:23:06]FM_GetShiftState [01:23:06]SAM_PROTO_GetShiftState [01:23:06]wFMCommunicate request_size=4 [01:23:06]MH_SAM_APDU [01:23:06]CAPDU: 80 13 01 00 [01:23:06]Write to MH i2c: E2 08 00 72 05 80 13 01 00 00 00 00 00 F4 [01:23:06]Write i2c OK [01:23:06]MH_I2C_Read... [01:23:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:23:06]Read from MH i2c: E2 [01:23:06]MH_I2C_Read... [01:23:06]Read from MH i2c: E2 0E 00 [01:23:06]MH_I2C_Read... [01:23:06]Read from MH i2c: E2 0E 00 72 05 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 8A [01:23:06]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [01:23:06]wFMCommunicate OK [01:23:06]SAM_PROTO_GetShiftState done [01:23:06]FM_GetShiftState done [01:23:06]opened in 1724027600 [01:23:06]opened+sec_in_day 1724114000 [01:23:06]quantity*price = 10034 [01:23:06]sum+1 = 10035 [01:23:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 14 19.08.2024 01:23 Смена: 450 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261046 ФПД: 256664584279786 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T012306&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261046&fm=256664584279786&tin=02508201610067®Number=0000000000091865&sum=10000 [01:23:07]StoreToDocumentArchive [01:23:07]shift 450 fd 261046 [01:23:07]save to /storage/0450/doc_00261046 [01:23:07]save last doc name /storage/0450/doc_00261046 to /storage/kkm_last_doc_name [01:23:07]save OK [01:23:07]Clear old archive folders... [01:23:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:23:07]tlvbuf is 00A4B1C0 [01:23:07]SAM_PROTO_ClearQueue [01:23:07]wFMCommunicate request_size=4 [01:23:07]MH_SAM_APDU [01:23:07]CAPDU: 80 09 00 00 [01:23:07]Write to MH i2c: E2 08 00 7F 05 80 09 00 00 00 00 00 00 F6 [01:23:07]Write i2c OK [01:23:07]MH_I2C_Read... [01:23:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:23:07]Read from MH i2c: E2 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: E2 03 00 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: E2 03 00 7F 05 00 90 00 F8 [01:23:07]RAPDU: 90 00 [01:23:07]wFMCommunicate OK [01:23:07]SAM_PROTO_ClearQueue done [01:23:07]KKMCreateOFDPacket [01:23:07]OFDProtocolAddRootSTLVToBuf [01:23:07]FM_MakeSignedData [01:23:07]FM_MakeSignedData [01:23:07]SAM_PROTO_SignData [01:23:07]wFMCommunicate request_size=4 [01:23:07]MH_SAM_APDU [01:23:07]CAPDU: 80 0D 01 02 [01:23:07]Write to MH i2c: E2 08 00 80 05 80 0D 01 02 00 00 00 00 FE [01:23:07]Write i2c OK [01:23:07]MH_I2C_Read... [01:23:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:23:07]Read from MH i2c: E2 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: E2 03 00 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: E2 03 00 80 05 00 90 00 F9 [01:23:07]RAPDU: 90 00 [01:23:07]wFMCommunicate OK [01:23:07]wFMCommunicate request_size=255 [01:23:07]MH_SAM_APDU [01:23:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 7A 9E C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B6 FB 03 00 35 04 06 00 E9 [01:23:07]Write to MH i2c: E2 02 01 81 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 7A 9E C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B6 FB 03 00 35 04 06 00 E9 00 00 65 [01:23:07]Write i2c OK [01:23:07]MH_I2C_Read... [01:23:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:23:07]Read from MH i2c: E2 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: E2 03 00 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: E2 03 00 81 05 00 90 00 FA [01:23:07]RAPDU: 90 00 [01:23:07]wFMCommunicate OK [01:23:07]wFMCommunicate request_size=10 [01:23:07]MH_SAM_APDU [01:23:07]CAPDU: 80 0D 02 02 05 6F 61 5F 56 EA [01:23:07]Write to MH i2c: E2 0D 00 82 05 80 0D 02 02 05 00 6F 61 5F 56 EA 00 00 7A [01:23:07]Write i2c OK [01:23:07]MH_I2C_Read... [01:23:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:23:07]Read from MH i2c: E2 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: E2 03 00 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: E2 03 00 82 05 00 90 00 FB [01:23:07]RAPDU: 90 00 [01:23:07]wFMCommunicate OK [01:23:07]wFMCommunicate request_size=4 [01:23:07]MH_SAM_APDU [01:23:07]CAPDU: 80 0D 03 02 [01:23:07]Write to MH i2c: E2 08 00 83 05 80 0D 03 02 00 00 00 00 03 [01:23:07]Write i2c OK [01:23:07]MH_I2C_Read... [01:23:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:23:07]Read from MH i2c: E2 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: E2 0B 00 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: E2 0B 00 83 05 00 60 0B 18 16 73 E6 4C C1 90 00 03 [01:23:07]RAPDU: 60 0B 18 16 73 E6 4C C1 90 00 [01:23:07]wFMCommunicate OK [01:23:07]SAM_PROTO_SignData done [01:23:07]FM_MakeSignedData done [01:23:07]CreateOFDProtocolMessage [01:23:07]wFMCommunicate request_size=4 [01:23:07]MH_SAM_APDU [01:23:07]CAPDU: 80 11 00 00 [01:23:07]Write to MH i2c: E2 08 00 84 05 80 11 00 00 00 00 00 00 03 [01:23:07]Write i2c OK [01:23:07]MH_I2C_Read... [01:23:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:23:07]Read from MH i2c: E2 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: E2 17 00 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: E2 17 00 84 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 50 [01:23:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [01:23:07]wFMCommunicate OK [01:23:07]CreateOFDProtocolMessage done [01:23:07]OFDSenderStorePacket 261046 [01:23:07]StoreOFDPacket docnum=261046 [01: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 30 0F 01 00 00 35 9D 07 01 86 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 7A 9E C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B6 FB 03 00 35 04 06 00 E9 6F 61 5F 56 EA 60 0B 18 16 73 E6 4C C1 [01:23:07]CheckFolder [01:23:07]dirname=/storage/ofd_packets [01:23:07]CheckFolder done [01:23:07]ProducePacketName [01:23:07]name=ofd_packets/00261046 [01:23:07]NVStorageSaveData ofd_packets/00261046 [01:23:07]File name is /storage/ofd_packets/00261046 [01:23:07]Write 301 bytes [01:23:07]NVStorageSaveData done [01:23:07]OFDSenderStorePacket done [01:23:07]KKMCreateOFDPacket done [01:23:07]NVStorageSaveData kkm_last_timestamp [01:23:07]File name is /storage/kkm_last_timestamp [01:23:07]Write 4 bytes [01:23:07]NVStorageSaveData done [01:23:07]ExternCall_PrintAddStr [01:23:07]wPrintStart [01:23:07]Write to MH i2c: 01 00 00 85 05 8A [01:23:07]Write i2c OK [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: 01 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: 01 07 00 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: 01 07 00 85 05 00 00 00 00 00 FF 0F 9F [01:23:07]RasterBufferAndPrint [01:23:07]line Счет N : (1)1036599 [01:23:07]line ИНН: 02508201610067 [01:23:07]line Контрольно-Кассовый Чек [01:23:07]line ПРОДАЖА [01:23:07]line ТРК (МРК, ГНК) : 12 [01:23:07]line Товар: 2710124130 [01:23:07]line Аи-92-К-5 [01:23:07]line 1.480 * 67.80 [01:23:07]line = 100.34 [01:23:07]line НДС 12% НСП 1% [01:23:07]line > о реализуемом товаре [01:23:07]line ОКРУГЛЕНИЕ: -0.34 [01:23:07]line ИТОГО: 100.00 [01:23:07]line Внесено: 100.00 [01:23:07]line СДАЧА: 0.00 [01:23:07]line НСП 1% : 0.89 [01:23:07]line НДС 12% : 10.66 [01:23:07]line Наличными: 100.00 [01:23:07]line Безнал.: 0.00 [01:23:07]line Место: АЗС № 94 "Партнер Нефть" [01:23:07]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [01:23:07]line СНО: Общий режим [01:23:07]line Чек 14 19.08.2024 01:23 [01:23:07]line Смена: 450 ФФД: 1.0 [01:23:07]line ЗНМ: 0300000099 [01:23:07]line РНМ: 0000000000091865 [01:23:07]line Версия ККМ: 001 [01:23:07]line ФМ: 0000000000871820 [01:23:07]line ФД: 261046 [01:23:07]line ФПД: 256664584279786 [01:23:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T012306&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261046&fm=256664584279786&tin=02508201610067®Number=0000000000091865&sum=10000 [01:23:08]OFD Sender: Processing packet 261046 [packets to send 192, broken 191] [01:23:08]ProducePacketName [01:23:08]name=ofd_packets/00261046 [01:23:08]OFD Sender: To server: pG, [01:23:08]CommunicateWithHost lk.salyk.kg:30040 [01:23:08]ConnectInit lk.salyk.kg [01:23:08]written 0, free lines is 4095 [01:23:08]Connected sock=10 [01:23: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 30 0F 01 00 00 35 9D 07 01 86 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 7A 9E C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B6 FB 03 00 35 04 06 00 E9 6F 61 5F 56 EA 60 0B 18 16 73 E6 4C C1 [01:23: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 30 4F 00 00 00 F1 48 47 00 44 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 30 10 04 04 00 B6 FB 03 00 F4 03 04 00 CD 47 C2 66 B6 04 01 00 00 C2 53 E0 E0 AD FA A7 CA [01:23:08]CommunicateWithHost err = 0 [01:23:08]CheckOFDResponse [01:23:08]1017 (14) - 77093643461234 [01:23:08]1041 (16) - 0000000000871820 [01:23:08]1040 (4) - 261046 [01:23:08]1012 (4) - 18.08.2024 19:13 [01:23:08]1206 (1) - 0 [01:23:08]OFD Sender: Remove packet 261046 [01:23:08]ProducePacketName [01:23:08]name=ofd_packets/00261046 [01:23:08]NVStorageDeleteData [01:23:08]Write to MH i2c: 01 00 00 B0 05 B5 [01:23:08]Write i2c OK [01:23:08]MH_I2C_Read... [01:23:08]Read from MH i2c: 01 [01:23:08]MH_I2C_Read... [01:23:08]Read from MH i2c: 01 07 00 [01:23:08]MH_I2C_Read... [01:23:08]Read from MH i2c: 01 07 00 B0 05 00 00 00 00 00 65 0C 2D [01:23:08]RasterBufferAndPrint [01:23:08]line [01:23:08]line [01:23:08]line [01:23:08]line [01:23:08]line [01:23:08]written 0, free lines is 3177 [01:23:08]MH_Cut [01:23:08]Write to MH i2c: D1 01 00 B7 05 01 8E [01:23:08]Write i2c OK [01:23:08]MH_I2C_Read... [01:23:08]Read from MH i2c: D1 [01:23:08]MH_I2C_Read... [01:23:08]Read from MH i2c: D1 01 00 [01:23:08]MH_I2C_Read... [01:23:08]Read from MH i2c: D1 01 00 B7 05 00 8D [01:23:08]Write to MH i2c: 01 00 00 B8 05 BD [01:23:08]Write i2c OK [01:23:08]MH_I2C_Read... [01:23:09]OFD Sender: No OFD packet to send [01:23:09]*** Cut start [01:23:09]*** Purtial cut [01:23:09]*** Stage 1: CUTSNS_PIN = 1 [01:23:11]Read from MH i2c: 01 [01:23:11]MH_I2C_Read... [01:23:11]*** Stop cut motor [01:23:11]*** Cut end [01:23:11]Read from MH i2c: 01 07 00 [01:23:11]MH_I2C_Read... [01:23:11]Read from MH i2c: 01 07 00 B8 05 00 00 00 00 00 FF 0F D2 [01:23:11]process_action close_receipt done [01:23:11]requested_data is exist [01:23:11]produce_requested_data [01:23:11]requested_item fm.sn is exist - process it [01:23:11]wFMCommunicate request_size=4 [01:23:11]MH_SAM_APDU [01:23:11]CAPDU: 80 11 00 00 [01:23:11]Write to MH i2c: E2 08 00 B9 05 80 11 00 00 00 00 00 00 38 [01:23:11]Write i2c OK [01:23:11]MH_I2C_Read... [01:23:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:23:11]Read from MH i2c: E2 [01:23:11]MH_I2C_Read... [01:23:11]Read from MH i2c: E2 17 00 [01:23:11]MH_I2C_Read... [01:23:11]Read from MH i2c: E2 17 00 B9 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 85 [01:23:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [01:23:11]wFMCommunicate OK [01:23:11]requested_item fd.num is exist - process it [01:23:11]SAM_PROTO_GetFieldsCounters [01:23:11]wFMCommunicate request_size=4 [01:23:11]MH_SAM_APDU [01:23:11]CAPDU: 80 13 00 00 [01:23:11]Write to MH i2c: E2 08 00 BA 05 80 13 00 00 00 00 00 00 3B [01:23:11]Write i2c OK [01:23:11]MH_I2C_Read... [01:23:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:23:12]Read from MH i2c: E2 [01:23:12]MH_I2C_Read... [01:23:12]Read from MH i2c: E2 62 00 [01:23:12]MH_I2C_Read... [01:23:12]Read from MH i2c: E2 62 00 BA 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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B6 FB 03 00 0E 04 04 00 C2 01 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 FB [01:23: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B6 FB 03 00 0E 04 04 00 C2 01 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 [01:23:12]wFMCommunicate OK [01:23:12]SAM_PROTO_GetFieldsCounters done [01:23:12]requested_item shift.num is exist - process it [01:23:12]requested_item shift.opened is exist - process it [01:23:12]req_shift_opened [01:23:12]FM_GetShiftState [01:23:12]SAM_PROTO_GetShiftState [01:23:12]wFMCommunicate request_size=4 [01:23:12]MH_SAM_APDU [01:23:12]CAPDU: 80 13 01 00 [01:23:12]Write to MH i2c: E2 08 00 BB 05 80 13 01 00 00 00 00 00 3D [01:23:12]Write i2c OK [01:23:12]MH_I2C_Read... [01:23:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:23:12]Read from MH i2c: E2 [01:23:12]MH_I2C_Read... [01:23:12]Read from MH i2c: E2 0E 00 [01:23:12]MH_I2C_Read... [01:23:12]Read from MH i2c: E2 0E 00 BB 05 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 D3 [01:23:12]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [01:23:12]wFMCommunicate OK [01:23:12]SAM_PROTO_GetShiftState done [01:23:12]FM_GetShiftState done [01:23:12]req_shift_opened done [01:23:12]requested_item shift.open_date is exist - process it [01:23:12]req_shift_open_date [01:23:12]req_shift_open_date done [01:23:12]produce_requested_data done [01:23:12]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261046,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600} [01:23:12]process_action_free close_receipt [01:23:12]json_value_free [01:23:12]json_value_free done [01:23:12]process_json_proto returns [01:23:12]Send response to host [01:23:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261046,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600}}} [01:23:12]free response buf [01:23:12]execute_script done [01:23:12]execute_script returns [01:23:12]free content buf [01:23:12]Sock 7.Close socket [01:23:12]Sock 7.Thread stoped [01:23:14]OFD Sender: No OFD packet to send [01:23:19]OFD Sender: No OFD packet to send [01:23:24]OFD Sender: No OFD packet to send [01:23:29]OFD Sender: No OFD packet to send [01:23:34]OFD Sender: No OFD packet to send [01:23:39]OFD Sender: No OFD packet to send [01:23:44]OFD Sender: No OFD packet to send [01:23:49]OFD Sender: No OFD packet to send [01:23:54]OFD Sender: No OFD packet to send [01:23:59]OFD Sender: No OFD packet to send [01:24:04]OFD Sender: No OFD packet to send [01:24:09]OFD Sender: No OFD packet to send [01:24:14]OFD Sender: No OFD packet to send [01:24:19]OFD Sender: No OFD packet to send [01:24:24]OFD Sender: No OFD packet to send [01:24:29]OFD Sender: No OFD packet to send [01:24:34]OFD Sender: No OFD packet to send [01:24:39]OFD Sender: No OFD packet to send [01:24:44]OFD Sender: No OFD packet to send [01:24:49]OFD Sender: No OFD packet to send [01:24:54]OFD Sender: No OFD packet to send [01:24:59]OFD Sender: No OFD packet to send [01:25:04]OFD Sender: No OFD packet to send [01:25:09]OFD Sender: No OFD packet to send [01:25:14]OFD Sender: No OFD packet to send [01:25:19]OFD Sender: No OFD packet to send [01:25:24]OFD Sender: No OFD packet to send [01:25:29]OFD Sender: No OFD packet to send [01:25:34]OFD Sender: No OFD packet to send [01:25:39]OFD Sender: No OFD packet to send [01:25:44]OFD Sender: No OFD packet to send [01:25:49]OFD Sender: No OFD packet to send [01:25:54]OFD Sender: No OFD packet to send [01:25:59]OFD Sender: No OFD packet to send [01:26:04]OFD Sender: No OFD packet to send [01:26:09]OFD Sender: No OFD packet to send [01:26:14]OFD Sender: No OFD packet to send [01:26:19]OFD Sender: No OFD packet to send [01:26:24]OFD Sender: No OFD packet to send [01:26:29]OFD Sender: No OFD packet to send [01:26:34]OFD Sender: No OFD packet to send [01:26:39]OFD Sender: No OFD packet to send [01:26:44]OFD Sender: No OFD packet to send [01:26:49]OFD Sender: No OFD packet to send [01:26:54]OFD Sender: No OFD packet to send [01:26:59]OFD Sender: No OFD packet to send [01:27:04]OFD Sender: No OFD packet to send [01:27:09]OFD Sender: No OFD packet to send [01:27:14]OFD Sender: No OFD packet to send [01:27:19]OFD Sender: No OFD packet to send [01:27:24]OFD Sender: No OFD packet to send [01:27:29]OFD Sender: No OFD packet to send [01:27:34]OFD Sender: No OFD packet to send [01:27:39]OFD Sender: No OFD packet to send [01:27:44]OFD Sender: No OFD packet to send [01:27:49]OFD Sender: No OFD packet to send [01:27:54]OFD Sender: No OFD packet to send [01:27:59]OFD Sender: No OFD packet to send [01:28:04]OFD Sender: No OFD packet to send [01:28:09]OFD Sender: No OFD packet to send [01:28:14]OFD Sender: No OFD packet to send [01:28:19]OFD Sender: No OFD packet to send [01:28:24]OFD Sender: No OFD packet to send [01:28:29]OFD Sender: No OFD packet to send [01:28:34]OFD Sender: No OFD packet to send [01:28:39]OFD Sender: No OFD packet to send [01:28:44]OFD Sender: No OFD packet to send [01:28:49]OFD Sender: No OFD packet to send [01:28:54]OFD Sender: No OFD packet to send [01:28:59]OFD Sender: No OFD packet to send [01:29:04]OFD Sender: No OFD packet to send [01:29:09]OFD Sender: No OFD packet to send [01:29:14]OFD Sender: No OFD packet to send [01:29:19]OFD Sender: No OFD packet to send [01:29:24]OFD Sender: No OFD packet to send [01:29:29]OFD Sender: No OFD packet to send [01:29:34]OFD Sender: No OFD packet to send [01:29:39]OFD Sender: No OFD packet to send [01:29:44]OFD Sender: No OFD packet to send [01:29:49]OFD Sender: No OFD packet to send [01:29:54]OFD Sender: No OFD packet to send [01:29:59]OFD Sender: No OFD packet to send [01:30:04]OFD Sender: No OFD packet to send [01:30:09]OFD Sender: No OFD packet to send [01:30:14]OFD Sender: No OFD packet to send [01:30:19]OFD Sender: No OFD packet to send [01:30:24]OFD Sender: No OFD packet to send [01:30:29]OFD Sender: No OFD packet to send [01:30:34]OFD Sender: No OFD packet to send [01:30:39]OFD Sender: No OFD packet to send [01:30:44]OFD Sender: No OFD packet to send [01:30:49]OFD Sender: No OFD packet to send [01:30:54]OFD Sender: No OFD packet to send [01:30:59]OFD Sender: No OFD packet to send [01:31:04]OFD Sender: No OFD packet to send [01:31:09]OFD Sender: No OFD packet to send [01:31:14]OFD Sender: No OFD packet to send [01:31:19]OFD Sender: No OFD packet to send [01:31:24]OFD Sender: No OFD packet to send [01:31:29]OFD Sender: No OFD packet to send [01:31:34]OFD Sender: No OFD packet to send [01:31:39]OFD Sender: No OFD packet to send [01:31:44]OFD Sender: No OFD packet to send [01:31:49]OFD Sender: No OFD packet to send [01:31:54]OFD Sender: No OFD packet to send [01:31:59]OFD Sender: No OFD packet to send [01:32:04]OFD Sender: No OFD packet to send [01:32:09]OFD Sender: No OFD packet to send [01:32:14]OFD Sender: No OFD packet to send [01:32:19]OFD Sender: No OFD packet to send [01:32:24]OFD Sender: No OFD packet to send [01:32:29]OFD Sender: No OFD packet to send [01:32:34]OFD Sender: No OFD packet to send [01:32:39]OFD Sender: No OFD packet to send [01:32:44]OFD Sender: No OFD packet to send [01:32:49]OFD Sender: No OFD packet to send [01:32:54]OFD Sender: No OFD packet to send [01:32:59]OFD Sender: No OFD packet to send [01:33:04]OFD Sender: No OFD packet to send [01:33:09]OFD Sender: No OFD packet to send [01:33:14]OFD Sender: No OFD packet to send [01:33:19]OFD Sender: No OFD packet to send [01:33:24]OFD Sender: No OFD packet to send [01:33:29]OFD Sender: No OFD packet to send [01:33:34]OFD Sender: No OFD packet to send [01:33:39]OFD Sender: No OFD packet to send [01:33:44]OFD Sender: No OFD packet to send [01:33:49]OFD Sender: No OFD packet to send [01:33:54]OFD Sender: No OFD packet to send [01:33:59]OFD Sender: No OFD packet to send [01:34:04]OFD Sender: No OFD packet to send [01:34:09]OFD Sender: No OFD packet to send [01:34:14]OFD Sender: No OFD packet to send [01:34:19]OFD Sender: No OFD packet to send [01:34:24]OFD Sender: No OFD packet to send [01:34:29]OFD Sender: No OFD packet to send [01:34:34]OFD Sender: No OFD packet to send [01:34:39]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:40]OFD Sender: No OFD packet to send [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:26]accept exits with 9 [01:42:26]New connection [01:42:26]New thread 3067104612 created [01:42:26]Thread 3067247972 joined [01:42:26]Waiting for new connection... [01:42:26] Sock 9.Parse request [01:42:26]Sock 9.Check first char [01:42:26]Sock 9.First char is OK [01:42:26]request: POST /json_proto HTTP/1.0 [01:42:26]Method: POST [01:42:26]URL: /json_proto [01:42:26]Method is POST - this is cgi request [01:42:26]url: /json_proto [01:42:26]query_string will be loaded in cgi processing [01:42:26]execute_cgi json_proto POST (null) [01:42:26]execute_cgi path=json_proto method=POST [01:42:26]POST find Content-Length [01:42:26]Host: 172.17.55.133:8080 [01:42:26]Content-Length: 678 [01:42:26]Content-Type: application/json [01:42:26] [01:42:26]POST finish read [01:42:26]Found Content-Length = 678 [01:42:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036600", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:42:26]execute_script... [01:42: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)1036600", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:42:26]POST & json_proto [01:42:26]process_json_proto [01:42:26]json parsed OK: [01:42:26]protocol is kg_v1.0 [01:42:26]action value=close_receipt [01:42:26]process_action close_receipt [01:42:26]cmd_close_receipt [01:42:26]MH_GetDate [01:42:26]Write to MH i2c: F0 00 00 BC 05 B0 [01:42:26]Write i2c OK [01:42:26]MH_I2C_Read... [01:42:26]Read from MH i2c: F0 [01:42:26]MH_I2C_Read... [01:42:26]Read from MH i2c: F0 09 00 [01:42:26]MH_I2C_Read... [01:42:26]Read from MH i2c: F0 09 00 BC 05 00 03 A3 C2 66 34 48 D8 65 40 [01:42:26]GetLastDocTimeStamp 1724030586 [01:42:26]current date 1724031747 [01:42:26]FM_GetShiftState [01:42:26]SAM_PROTO_GetShiftState [01:42:26]wFMCommunicate request_size=4 [01:42:26]MH_SAM_APDU [01:42:26]CAPDU: 80 13 01 00 [01:42:26]Write to MH i2c: E2 08 00 BD 05 80 13 01 00 00 00 00 00 3F [01:42:26]Write i2c OK [01:42:26]MH_I2C_Read... [01:42:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:42:26]Read from MH i2c: E2 [01:42:26]MH_I2C_Read... [01:42:26]Read from MH i2c: E2 0E 00 [01:42:26]MH_I2C_Read... [01:42:26]Read from MH i2c: E2 0E 00 BD 05 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 D5 [01:42:26]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [01:42:26]wFMCommunicate OK [01:42:26]SAM_PROTO_GetShiftState done [01:42:26]FM_GetShiftState done [01:42:26]opened in 1724027600 [01:42:26]opened+sec_in_day 1724114000 [01:42:26]quantity*price = 50010 [01:42:26]sum+1 = 50012 [01:42:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 15 19.08.2024 01:42 Смена: 450 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261047 ФПД: 39052298068467 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T014227&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261047&fm=39052298068467&tin=02508201610067®Number=0000000000091865&sum=50000 [01:42:27]StoreToDocumentArchive [01:42:27]shift 450 fd 261047 [01:42:27]save to /storage/0450/doc_00261047 [01:42:27]save last doc name /storage/0450/doc_00261047 to /storage/kkm_last_doc_name [01:42:27]save OK [01:42:27]Clear old archive folders... [01:42:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:42:27]tlvbuf is 00A0A9E0 [01:42:27]SAM_PROTO_ClearQueue [01:42:27]wFMCommunicate request_size=4 [01:42:27]MH_SAM_APDU [01:42:27]CAPDU: 80 09 00 00 [01:42:27]Write to MH i2c: E2 08 00 CA 05 80 09 00 00 00 00 00 00 41 [01:42:27]Write i2c OK [01:42:27]MH_I2C_Read... [01:42:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:42:27]Read from MH i2c: E2 [01:42:27]MH_I2C_Read... [01:42:27]Read from MH i2c: E2 03 00 [01:42:27]MH_I2C_Read... [01:42:27]Read from MH i2c: E2 03 00 CA 05 00 90 00 43 [01:42:27]RAPDU: 90 00 [01:42:27]wFMCommunicate OK [01:42:27]SAM_PROTO_ClearQueue done [01:42:27]KKMCreateOFDPacket [01:42:27]OFDProtocolAddRootSTLVToBuf [01:42:27]FM_MakeSignedData [01:42:27]FM_MakeSignedData [01:42:27]SAM_PROTO_SignData [01:42:27]wFMCommunicate request_size=4 [01:42:27]MH_SAM_APDU [01:42:27]CAPDU: 80 0D 01 02 [01:42:27]Write to MH i2c: E2 08 00 CB 05 80 0D 01 02 00 00 00 00 49 [01:42:28]Write i2c OK [01:42:28]MH_I2C_Read... [01:42:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:42:28]Read from MH i2c: E2 [01:42:28]MH_I2C_Read... [01:42:28]Read from MH i2c: E2 03 00 [01:42:28]MH_I2C_Read... [01:42:28]Read from MH i2c: E2 03 00 CB 05 00 90 00 44 [01:42:28]RAPDU: 90 00 [01:42:28]wFMCommunicate OK [01:42:28]wFMCommunicate request_size=255 [01:42:28]MH_SAM_APDU [01:42: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 03 A3 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B7 FB 03 00 35 04 06 00 23 [01:42:28]Write to MH i2c: E2 02 01 CC 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 03 A3 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B7 FB 03 00 35 04 06 00 23 00 00 26 [01:42:28]Write i2c OK [01:42:28]MH_I2C_Read... [01:42:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:42:28]Read from MH i2c: E2 [01:42:28]MH_I2C_Read... [01:42:28]Read from MH i2c: E2 03 00 [01:42:28]MH_I2C_Read... [01:42:28]Read from MH i2c: E2 03 00 CC 05 00 90 00 45 [01:42:28]RAPDU: 90 00 [01:42:28]wFMCommunicate OK [01:42:28]wFMCommunicate request_size=10 [01:42:28]MH_SAM_APDU [01:42:28]CAPDU: 80 0D 02 02 05 84 92 5A A1 F3 [01:42:28]Write to MH i2c: E2 0D 00 CD 05 80 0D 02 02 05 00 84 92 5A A1 F3 00 00 5A [01:42:28]Write i2c OK [01:42:28]MH_I2C_Read... [01:42:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:42:28]Read from MH i2c: E2 [01:42:28]MH_I2C_Read... [01:42:28]Read from MH i2c: E2 03 00 [01:42:28]MH_I2C_Read... [01:42:28]Read from MH i2c: E2 03 00 CD 05 00 90 00 46 [01:42:28]RAPDU: 90 00 [01:42:28]wFMCommunicate OK [01:42:28]wFMCommunicate request_size=4 [01:42:28]MH_SAM_APDU [01:42:28]CAPDU: 80 0D 03 02 [01:42:28]Write to MH i2c: E2 08 00 CE 05 80 0D 03 02 00 00 00 00 4E [01:42:28]Write i2c OK [01:42:28]MH_I2C_Read... [01:42:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:42:28]Read from MH i2c: E2 [01:42:28]MH_I2C_Read... [01:42:28]Read from MH i2c: E2 0B 00 [01:42:28]MH_I2C_Read... [01:42:28]Read from MH i2c: E2 0B 00 CE 05 00 D3 9E 3A F4 7C 82 AF DF 90 00 7A [01:42:28]RAPDU: D3 9E 3A F4 7C 82 AF DF 90 00 [01:42:28]wFMCommunicate OK [01:42:28]SAM_PROTO_SignData done [01:42:28]FM_MakeSignedData done [01:42:28]CreateOFDProtocolMessage [01:42:28]wFMCommunicate request_size=4 [01:42:28]MH_SAM_APDU [01:42:28]CAPDU: 80 11 00 00 [01:42:28]Write to MH i2c: E2 08 00 CF 05 80 11 00 00 00 00 00 00 4E [01:42:28]Write i2c OK [01:42:28]MH_I2C_Read... [01:42:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:42:28]Read from MH i2c: E2 [01:42:28]MH_I2C_Read... [01:42:28]Read from MH i2c: E2 17 00 [01:42:28]MH_I2C_Read... [01:42:28]Read from MH i2c: E2 17 00 CF 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 9B [01:42:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [01:42:28]wFMCommunicate OK [01:42:28]CreateOFDProtocolMessage done [01:42:28]OFDSenderStorePacket 261047 [01:42:28]StoreOFDPacket docnum=261047 [01:42:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 51 BE 07 01 A3 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 03 A3 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B7 FB 03 00 35 04 06 00 23 84 92 5A A1 F3 D3 9E 3A F4 7C 82 AF DF [01:42:28]CheckFolder [01:42:28]dirname=/storage/ofd_packets [01:42:28]CheckFolder done [01:42:28]ProducePacketName [01:42:28]name=ofd_packets/00261047 [01:42:28]NVStorageSaveData ofd_packets/00261047 [01:42:28]File name is /storage/ofd_packets/00261047 [01:42:28]Write 301 bytes [01:42:28]NVStorageSaveData done [01:42:28]OFDSenderStorePacket done [01:42:28]KKMCreateOFDPacket done [01:42:28]NVStorageSaveData kkm_last_timestamp [01:42:28]File name is /storage/kkm_last_timestamp [01:42:28]Write 4 bytes [01:42:28]NVStorageSaveData done [01:42:28]ExternCall_PrintAddStr [01:42:28]wPrintStart [01:42:28]Write to MH i2c: 01 00 00 D0 05 D5 [01:42:28]Write i2c OK [01:42:28]MH_I2C_Read... [01:42:28]Read from MH i2c: 01 [01:42:28]MH_I2C_Read... [01:42:28]Read from MH i2c: 01 07 00 [01:42:28]MH_I2C_Read... [01:42:28]Read from MH i2c: 01 07 00 D0 05 00 00 00 00 00 FF 0F EA [01:42:28]RasterBufferAndPrint [01:42:28]line Счет N : (1)1036600 [01:42:28]line ИНН: 02508201610067 [01:42:28]line Контрольно-Кассовый Чек [01:42:28]line ПРОДАЖА [01:42:28]line ТРК (МРК, ГНК) : 13 [01:42:28]line Товар: 2710124500 [01:42:28]line Аи-95-К-5 [01:42:28]line 6.740 * 74.20 [01:42:28]line = 500.11 [01:42:28]line НДС 12% НСП 1% [01:42:28]line > о реализуемом товаре [01:42:28]line ОКРУГЛЕНИЕ: -0.11 [01:42:28]line ИТОГО: 500.00 [01:42:28]line Внесено: 500.00 [01:42:28]line СДАЧА: 0.00 [01:42:28]line НСП 1% : 4.43 [01:42:28]line НДС 12% : 53.11 [01:42:28]line Наличными: 500.00 [01:42:28]line Безнал.: 0.00 [01:42:28]line Место: АЗС № 94 "Партнер Нефть" [01:42:28]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [01:42:28]line СНО: Общий режим [01:42:28]line Чек 15 19.08.2024 01:42 [01:42:28]line Смена: 450 ФФД: 1.0 [01:42:28]line ЗНМ: 0300000099 [01:42:28]line РНМ: 0000000000091865 [01:42:28]line Версия ККМ: 001 [01:42:28]line ФМ: 0000000000871820 [01:42:28]line ФД: 261047 [01:42:28]line ФПД: 39052298068467 [01:42:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T014227&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261047&fm=39052298068467&tin=02508201610067®Number=0000000000091865&sum=50000 [01:42:28]written 0, free lines is 4095 [01:42:28]OFD Sender: Processing packet 261047 [packets to send 192, broken 191] [01:42:28]ProducePacketName [01:42:28]name=ofd_packets/00261047 [01:42:28]OFD Sender: To server: pG, [01:42:28]CommunicateWithHost lk.salyk.kg:30040 [01:42:28]ConnectInit lk.salyk.kg [01:42:28]Connected sock=10 [01:42: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 30 0F 01 00 00 51 BE 07 01 A3 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 03 A3 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B7 FB 03 00 35 04 06 00 23 84 92 5A A1 F3 D3 9E 3A F4 7C 82 AF DF [01:42: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 30 4F 00 00 00 2C 8B 47 00 38 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 30 10 04 04 00 B7 FB 03 00 F4 03 04 00 56 4C C2 66 B6 04 01 00 00 D8 33 60 A5 14 7B DD E4 [01:42:29]CommunicateWithHost err = 0 [01:42:29]CheckOFDResponse [01:42:29]1017 (14) - 77093643461234 [01:42:29]1041 (16) - 0000000000871820 [01:42:29]1040 (4) - 261047 [01:42:29]1012 (4) - 18.08.2024 19:32 [01:42:29]1206 (1) - 0 [01:42:29]OFD Sender: Remove packet 261047 [01:42:29]ProducePacketName [01:42:29]name=ofd_packets/00261047 [01:42:29]NVStorageDeleteData [01:42:29]Write to MH i2c: 01 00 00 FB 05 00 [01:42:29]Write i2c OK [01:42:29]MH_I2C_Read... [01:42:29]Read from MH i2c: 01 [01:42:29]MH_I2C_Read... [01:42:29]Read from MH i2c: 01 07 00 [01:42:29]MH_I2C_Read... [01:42:29]Read from MH i2c: 01 07 00 FB 05 00 00 00 00 00 64 0C 77 [01:42:29]RasterBufferAndPrint [01:42:29]line [01:42:29]line [01:42:29]line [01:42:29]line [01:42:29]line [01:42:29]written 0, free lines is 3176 [01:42:29]MH_Cut [01:42:29]Write to MH i2c: D1 01 00 02 06 01 DA [01:42:29]Write i2c OK [01:42:29]MH_I2C_Read... [01:42:29]Read from MH i2c: D1 [01:42:29]MH_I2C_Read... [01:42:29]Read from MH i2c: D1 01 00 [01:42:29]MH_I2C_Read... [01:42:29]Read from MH i2c: D1 01 00 02 06 00 D9 [01:42:29]Write to MH i2c: 01 00 00 03 06 09 [01:42:29]Write i2c OK [01:42:29]MH_I2C_Read... [01:42:29]OFD Sender: No OFD packet to send [01:42:30]*** Cut start [01:42:30]*** Purtial cut [01:42:30]*** Stage 1: CUTSNS_PIN = 1 [01:42:32]Read from MH i2c: 01 [01:42:32]MH_I2C_Read... [01:42:32]*** Stop cut motor [01:42:32]*** Cut end [01:42:32]Read from MH i2c: 01 07 00 [01:42:32]MH_I2C_Read... [01:42:32]Read from MH i2c: 01 07 00 03 06 00 00 00 00 00 FF 0F 1E [01:42:32]process_action close_receipt done [01:42:32]requested_data is exist [01:42:32]produce_requested_data [01:42:32]requested_item fm.sn is exist - process it [01:42:32]wFMCommunicate request_size=4 [01:42:32]MH_SAM_APDU [01:42:32]CAPDU: 80 11 00 00 [01:42:32]Write to MH i2c: E2 08 00 04 06 80 11 00 00 00 00 00 00 84 [01:42:32]Write i2c OK [01:42:32]MH_I2C_Read... [01:42:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:42:32]Read from MH i2c: E2 [01:42:32]MH_I2C_Read... [01:42:32]Read from MH i2c: E2 17 00 [01:42:32]MH_I2C_Read... [01:42:32]Read from MH i2c: E2 17 00 04 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 D1 [01:42:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [01:42:32]wFMCommunicate OK [01:42:32]requested_item fd.num is exist - process it [01:42:32]SAM_PROTO_GetFieldsCounters [01:42:32]wFMCommunicate request_size=4 [01:42:32]MH_SAM_APDU [01:42:32]CAPDU: 80 13 00 00 [01:42:32]Write to MH i2c: E2 08 00 05 06 80 13 00 00 00 00 00 00 87 [01:42:32]Write i2c OK [01:42:32]MH_I2C_Read... [01:42:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:42:32]Read from MH i2c: E2 [01:42:32]MH_I2C_Read... [01:42:32]Read from MH i2c: E2 62 00 [01:42:32]MH_I2C_Read... [01:42:32]Read from MH i2c: E2 62 00 05 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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B7 FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [01:42: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B7 FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:42:32]wFMCommunicate OK [01:42:32]SAM_PROTO_GetFieldsCounters done [01:42:32]requested_item shift.num is exist - process it [01:42:32]requested_item shift.opened is exist - process it [01:42:32]req_shift_opened [01:42:32]FM_GetShiftState [01:42:32]SAM_PROTO_GetShiftState [01:42:32]wFMCommunicate request_size=4 [01:42:32]MH_SAM_APDU [01:42:32]CAPDU: 80 13 01 00 [01:42:32]Write to MH i2c: E2 08 00 06 06 80 13 01 00 00 00 00 00 89 [01:42:32]Write i2c OK [01:42:32]MH_I2C_Read... [01:42:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:42:32]Read from MH i2c: E2 [01:42:32]MH_I2C_Read... [01:42:32]Read from MH i2c: E2 0E 00 [01:42:32]MH_I2C_Read... [01:42:32]Read from MH i2c: E2 0E 00 06 06 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 1F [01:42:32]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [01:42:32]wFMCommunicate OK [01:42:32]SAM_PROTO_GetShiftState done [01:42:32]FM_GetShiftState done [01:42:32]req_shift_opened done [01:42:32]requested_item shift.open_date is exist - process it [01:42:32]req_shift_open_date [01:42:32]req_shift_open_date done [01:42:32]produce_requested_data done [01:42:32]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261047,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600} [01:42:32]process_action_free close_receipt [01:42:32]json_value_free [01:42:32]json_value_free done [01:42:32]process_json_proto returns [01:42:32]Send response to host [01:42:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261047,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600}}} [01:42:32]free response buf [01:42:32]execute_script done [01:42:32]execute_script returns [01:42:32]free content buf [01:42:32]Sock 9.Close socket [01:42:32]Sock 9.Thread stoped [01:42:34]OFD Sender: No OFD packet to send [01:42:39]OFD Sender: No OFD packet to send [01:42:44]OFD Sender: No OFD packet to send [01:42:49]OFD Sender: No OFD packet to send [01:42:54]OFD Sender: No OFD packet to send [01:42:59]OFD Sender: No OFD packet to send [01:43:04]OFD Sender: No OFD packet to send [01:43:09]OFD Sender: No OFD packet to send [01:43:14]OFD Sender: No OFD packet to send [01:43:19]OFD Sender: No OFD packet to send [01:43:24]OFD Sender: No OFD packet to send [01:43:29]OFD Sender: No OFD packet to send [01:43:34]OFD Sender: No OFD packet to send [01:43:39]OFD Sender: No OFD packet to send [01:43:44]OFD Sender: No OFD packet to send [01:43:49]OFD Sender: No OFD packet to send [01:43:54]OFD Sender: No OFD packet to send [01:43:59]OFD Sender: No OFD packet to send [01:44:04]OFD Sender: No OFD packet to send [01:44:09]OFD Sender: No OFD packet to send [01:44:14]OFD Sender: No OFD packet to send [01:44:19]OFD Sender: No OFD packet to send [01:44:24]OFD Sender: No OFD packet to send [01:44:29]OFD Sender: No OFD packet to send [01:44:34]OFD Sender: No OFD packet to send [01:44:39]OFD Sender: No OFD packet to send [01:44:44]OFD Sender: No OFD packet to send [01:44:49]OFD Sender: No OFD packet to send [01:44:54]OFD Sender: No OFD packet to send [01:44:59]OFD Sender: No OFD packet to send [01:45:04]OFD Sender: No OFD packet to send [01:45:09]OFD Sender: No OFD packet to send [01:45:14]OFD Sender: No OFD packet to send [01:45:19]OFD Sender: No OFD packet to send [01:45:24]OFD Sender: No OFD packet to send [01:45:29]OFD Sender: No OFD packet to send [01:45:34]OFD Sender: No OFD packet to send [01:45:39]OFD Sender: No OFD packet to send [01:45:44]OFD Sender: No OFD packet to send [01:45:49]OFD Sender: No OFD packet to send [01:45:54]OFD Sender: No OFD packet to send [01:45:59]OFD Sender: No OFD packet to send [01:46:04]OFD Sender: No OFD packet to send [01:46:09]OFD Sender: No OFD packet to send [01:46:14]OFD Sender: No OFD packet to send [01:46:19]OFD Sender: No OFD packet to send [01:46:24]OFD Sender: No OFD packet to send [01:46:29]OFD Sender: No OFD packet to send [01:46:34]OFD Sender: No OFD packet to send [01:46:39]OFD Sender: No OFD packet to send [01:46:44]OFD Sender: No OFD packet to send [01:46:49]OFD Sender: No OFD packet to send [01:46: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:40]OFD Sender: No OFD packet to send [01:47:45]OFD Sender: No OFD packet to send [01:47:50]OFD Sender: No OFD packet to send [01:47:55]OFD Sender: No OFD packet to send [01:48:00]OFD Sender: No OFD packet to send [01:48:05]OFD Sender: No OFD packet to send [01:48:10]OFD Sender: No OFD packet to send [01:48:15]OFD Sender: No OFD packet to send [01:48:20]OFD Sender: No OFD packet to send [01:48:25]OFD Sender: No OFD packet to send [01:48:30]OFD Sender: No OFD packet to send [01:48:35]OFD Sender: No OFD packet to send [01:48:40]OFD Sender: No OFD packet to send [01:48:45]OFD Sender: No OFD packet to send [01:48:50]OFD Sender: No OFD packet to send [01:48:55]OFD Sender: No OFD packet to send [01:49:00]OFD Sender: No OFD packet to send [01:49:05]OFD Sender: No OFD packet to send [01:49:10]OFD Sender: No OFD packet to send [01:49:15]OFD Sender: No OFD packet to send [01:49:20]OFD Sender: No OFD packet to send [01:49:25]OFD Sender: No OFD packet to send [01:49:30]OFD Sender: No OFD packet to send [01:49:35]OFD Sender: No OFD packet to send [01:49:40]OFD Sender: No OFD packet to send [01:49:45]OFD Sender: No OFD packet to send [01:49:50]OFD Sender: No OFD packet to send [01:49:55]OFD Sender: No OFD packet to send [01:50:00]OFD Sender: No OFD packet to send [01:50:05]OFD Sender: No OFD packet to send [01:50:10]OFD Sender: No OFD packet to send [01:50:15]OFD Sender: No OFD packet to send [01:50:20]OFD Sender: No OFD packet to send [01:50:25]OFD Sender: No OFD packet to send [01:50:30]OFD Sender: No OFD packet to send [01:50:35]OFD Sender: No OFD packet to send [01:50:40]OFD Sender: No OFD packet to send [01:50:45]OFD Sender: No OFD packet to send [01:50:50]OFD Sender: No OFD packet to send [01:50:55]OFD Sender: No OFD packet to send [01:51:00]OFD Sender: No OFD packet to send [01:51:05]OFD Sender: No OFD packet to send [01:51:10]OFD Sender: No OFD packet to send [01:51:15]OFD Sender: No OFD packet to send [01:51:20]OFD Sender: No OFD packet to send [01:51:25]OFD Sender: No OFD packet to send [01:51:30]OFD Sender: No OFD packet to send [01:51:35]OFD Sender: No OFD packet to send [01:51:40]OFD Sender: No OFD packet to send [01:51:45]OFD Sender: No OFD packet to send [01:51:50]OFD Sender: No OFD packet to send [01:51:55]OFD Sender: No OFD packet to send [01:52:00]OFD Sender: No OFD packet to send [01:52:05]OFD Sender: No OFD packet to send [01:52:10]OFD Sender: No OFD packet to send [01:52:15]OFD Sender: No OFD packet to send [01:52:20]OFD Sender: No OFD packet to send [01:52:25]OFD Sender: No OFD packet to send [01:52:30]OFD Sender: No OFD packet to send [01:52:35]OFD Sender: No OFD packet to send [01:52:40]OFD Sender: No OFD packet to send [01:52:45]OFD Sender: No OFD packet to send [01:52:50]OFD Sender: No OFD packet to send [01:52:55]OFD Sender: No OFD packet to send [01:53:00]OFD Sender: No OFD packet to send [01:53:05]OFD Sender: No OFD packet to send [01:53:10]OFD Sender: No OFD packet to send [01:53:15]OFD Sender: No OFD packet to send [01:53:20]OFD Sender: No OFD packet to send [01:53:25]OFD Sender: No OFD packet to send [01:53:30]OFD Sender: No OFD packet to send [01:53:35]OFD Sender: No OFD packet to send [01:53:40]OFD Sender: No OFD packet to send [01:53:45]OFD Sender: No OFD packet to send [01:53:50]OFD Sender: No OFD packet to send [01:53:55]OFD Sender: No OFD packet to send [01:54:00]OFD Sender: No OFD packet to send [01:54:05]OFD Sender: No OFD packet to send [01:54:10]OFD Sender: No OFD packet to send [01:54:15]OFD Sender: No OFD packet to send [01:54:20]OFD Sender: No OFD packet to send [01:54:25]OFD Sender: No OFD packet to send [01:54:30]OFD Sender: No OFD packet to send [01:54:35]OFD Sender: No OFD packet to send [01:54:40]OFD Sender: No OFD packet to send [01:54:45]OFD Sender: No OFD packet to send [01:54:50]OFD Sender: No OFD packet to send [01:54:55]OFD Sender: No OFD packet to send [01:55:00]OFD Sender: No OFD packet to send [01:55:05]OFD Sender: No OFD packet to send [01:55:10]OFD Sender: No OFD packet to send [01:55:15]OFD Sender: No OFD packet to send [01:55:20]OFD Sender: No OFD packet to send [01:55:25]OFD Sender: No OFD packet to send [01:55:30]OFD Sender: No OFD packet to send [01:55:35]OFD Sender: No OFD packet to send [01:55:40]OFD Sender: No OFD packet to send [01:55:45]OFD Sender: No OFD packet to send [01:55:50]OFD Sender: No OFD packet to send [01:55:55]OFD Sender: No OFD packet to send [01:56:00]OFD Sender: No OFD packet to send [01:56:05]OFD Sender: No OFD packet to send [01:56:10]OFD Sender: No OFD packet to send [01:56:15]OFD Sender: No OFD packet to send [01:56:20]OFD Sender: No OFD packet to send [01:56:25]OFD Sender: No OFD packet to send [01:56:30]OFD Sender: No OFD packet to send [01:56:35]OFD Sender: No OFD packet to send [01:56:40]OFD Sender: No OFD packet to send [01:56:45]OFD Sender: No OFD packet to send [01:56:50]OFD Sender: No OFD packet to send [01:56:55]OFD Sender: No OFD packet to send [01:57:00]OFD Sender: No OFD packet to send [01:57:05]OFD Sender: No OFD packet to send [01:57:10]OFD Sender: No OFD packet to send [01:57:15]OFD Sender: No OFD packet to send [01:57:20]OFD Sender: No OFD packet to send [01:57:25]OFD Sender: No OFD packet to send [01:57:30]OFD Sender: No OFD packet to send [01:57:35]OFD Sender: No OFD packet to send [01:57:40]OFD Sender: No OFD packet to send [01:57:45]OFD Sender: No OFD packet to send [01:57:50]OFD Sender: No OFD packet to send [01:57:55]OFD Sender: No OFD packet to send [01:58:00]OFD Sender: No OFD packet to send [01:58:05]OFD Sender: No OFD packet to send [01:58:10]OFD Sender: No OFD packet to send [01:58:15]OFD Sender: No OFD packet to send [01:58:20]OFD Sender: No OFD packet to send [01:58:25]OFD Sender: No OFD packet to send [01:58:30]OFD Sender: No OFD packet to send [01:58:35]OFD Sender: No OFD packet to send [01:58:41]OFD Sender: No OFD packet to send [01:58:46]OFD Sender: No OFD packet to send [01:58:51]OFD Sender: No OFD packet to send [01:58:56]OFD Sender: No OFD packet to send [01:59:01]OFD Sender: No OFD packet to send [01:59:06]OFD Sender: No OFD packet to send [01:59:11]OFD Sender: No OFD packet to send [01:59:16]OFD Sender: No OFD packet to send [01:59:21]OFD Sender: No OFD packet to send [01:59:26]OFD Sender: No OFD packet to send [01:59:31]OFD Sender: No OFD packet to send [01:59:36]OFD Sender: No OFD packet to send [01:59:41]OFD Sender: No OFD packet to send [01:59:46]OFD Sender: No OFD packet to send [01:59:51]OFD Sender: No OFD packet to send [01:59:56]OFD Sender: No OFD packet to send [02:00:01]OFD Sender: No OFD packet to send [02:00:06]OFD Sender: No OFD packet to send [02:00:11]OFD Sender: No OFD packet to send [02:00:16]OFD Sender: No OFD packet to send [02:00:21]OFD Sender: No OFD packet to send [02:00:26]OFD Sender: No OFD packet to send [02:00:31]OFD Sender: No OFD packet to send [02:00:36]OFD Sender: No OFD packet to send [02:00:41]OFD Sender: No OFD packet to send [02:00:46]OFD Sender: No OFD packet to send [02:00:51]OFD Sender: No OFD packet to send [02:00:56]OFD Sender: No OFD packet to send [02:01:01]OFD Sender: No OFD packet to send [02:01:06]OFD Sender: No OFD packet to send [02:01:11]OFD Sender: No OFD packet to send [02:01:16]OFD Sender: No OFD packet to send [02:01:21]OFD Sender: No OFD packet to send [02:01:26]OFD Sender: No OFD packet to send [02:01:31]OFD Sender: No OFD packet to send [02:01:36]OFD Sender: No OFD packet to send [02:01:41]OFD Sender: No OFD packet to send [02:01:46]OFD Sender: No OFD packet to send [02:01:51]OFD Sender: No OFD packet to send [02:01:56]OFD Sender: No OFD packet to send [02:02:01]OFD Sender: No OFD packet to send [02:02:06]OFD Sender: No OFD packet to send [02:02:11]OFD Sender: No OFD packet to send [02:02:16]OFD Sender: No OFD packet to send [02:02:21]OFD Sender: No OFD packet to send [02:02:26]OFD Sender: No OFD packet to send [02:02:31]OFD Sender: No OFD packet to send [02:02:36]OFD Sender: No OFD packet to send [02:02:41]OFD Sender: No OFD packet to send [02:02:46]OFD Sender: No OFD packet to send [02:02:51]OFD Sender: No OFD packet to send [02:02:56]OFD Sender: No OFD packet to send [02:03:01]OFD Sender: No OFD packet to send [02:03:06]OFD Sender: No OFD packet to send [02:03:11]OFD Sender: No OFD packet to send [02:03:16]OFD Sender: No OFD packet to send [02:03:21]OFD Sender: No OFD packet to send [02:03:26]OFD Sender: No OFD packet to send [02:03:31]OFD Sender: No OFD packet to send [02:03:36]OFD Sender: No OFD packet to send [02:03:41]OFD Sender: No OFD packet to send [02:03:46]OFD Sender: No OFD packet to send [02:03:51]OFD Sender: No OFD packet to send [02:03:56]OFD Sender: No OFD packet to send [02:04:01]OFD Sender: No OFD packet to send [02:04:06]OFD Sender: No OFD packet to send [02:04:11]OFD Sender: No OFD packet to send [02:04:16]OFD Sender: No OFD packet to send [02:04:21]OFD Sender: No OFD packet to send [02:04:26]OFD Sender: No OFD packet to send [02:04:31]OFD Sender: No OFD packet to send [02:04:36]OFD Sender: No OFD packet to send [02:04:41]OFD Sender: No OFD packet to send [02:04:46]OFD Sender: No OFD packet to send [02:04:51]OFD Sender: No OFD packet to send [02:04:56]OFD Sender: No OFD packet to send [02:05:01]OFD Sender: No OFD packet to send [02:05:06]OFD Sender: No OFD packet to send [02:05:11]OFD Sender: No OFD packet to send [02:05:16]OFD Sender: No OFD packet to send [02:05:21]OFD Sender: No OFD packet to send [02:05:26]OFD Sender: No OFD packet to send [02:05:31]OFD Sender: No OFD packet to send [02:05:36]OFD Sender: No OFD packet to send [02:05:41]OFD Sender: No OFD packet to send [02:05:46]OFD Sender: No OFD packet to send [02:05:51]OFD Sender: No OFD packet to send [02:05:56]OFD Sender: No OFD packet to send [02:06:01]OFD Sender: No OFD packet to send [02:06:06]OFD Sender: No OFD packet to send [02:06:11]OFD Sender: No OFD packet to send [02:06:16]OFD Sender: No OFD packet to send [02:06:21]OFD Sender: No OFD packet to send [02:06:26]OFD Sender: No OFD packet to send [02:06:31]OFD Sender: No OFD packet to send [02:06:36]OFD Sender: No OFD packet to send [02:06:41]OFD Sender: No OFD packet to send [02:06:44]accept exits with 7 [02:06:44]New connection [02:06:44]New thread 3067247972 created [02:06:44]Thread 3067104612 joined [02:06:44]Waiting for new connection... [02:06:44] Sock 7.Parse request [02:06:44]Sock 7.Check first char [02:06:44]Sock 7.First char is OK [02:06:44]request: POST /json_proto HTTP/1.0 [02:06:44]Method: POST [02:06:44]URL: /json_proto [02:06:44]Method is POST - this is cgi request [02:06:44]url: /json_proto [02:06:44]query_string will be loaded in cgi processing [02:06:44]execute_cgi json_proto POST (null) [02:06:44]execute_cgi path=json_proto method=POST [02:06:44]POST find Content-Length [02:06:44]Host: 172.17.55.133:8080 [02:06:44]Content-Length: 683 [02:06:44]Content-Type: application/json [02:06:44] [02:06:44]POST finish read [02:06:44]Found Content-Length = 683 [02:06:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036601", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:06:44]execute_script... [02:06: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)1036601", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:06:44]POST & json_proto [02:06:44]process_json_proto [02:06:44]json parsed OK: [02:06:44]protocol is kg_v1.0 [02:06:44]action value=close_receipt [02:06:44]process_action close_receipt [02:06:44]cmd_close_receipt [02:06:44]MH_GetDate [02:06:44]Write to MH i2c: F0 00 00 07 06 FC [02:06:44]Write i2c OK [02:06:44]MH_I2C_Read... [02:06:44]Read from MH i2c: F0 [02:06:44]MH_I2C_Read... [02:06:44]Read from MH i2c: F0 09 00 [02:06:44]MH_I2C_Read... [02:06:44]Read from MH i2c: F0 09 00 07 06 00 B5 A8 C2 66 34 48 D8 65 43 [02:06:44]GetLastDocTimeStamp 1724031747 [02:06:44]current date 1724033205 [02:06:44]FM_GetShiftState [02:06:44]SAM_PROTO_GetShiftState [02:06:44]wFMCommunicate request_size=4 [02:06:44]MH_SAM_APDU [02:06:44]CAPDU: 80 13 01 00 [02:06:44]Write to MH i2c: E2 08 00 08 06 80 13 01 00 00 00 00 00 8B [02:06:44]Write i2c OK [02:06:44]MH_I2C_Read... [02:06:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:06:44]Read from MH i2c: E2 [02:06:44]MH_I2C_Read... [02:06:44]Read from MH i2c: E2 0E 00 [02:06:44]MH_I2C_Read... [02:06:44]Read from MH i2c: E2 0E 00 08 06 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 21 [02:06:44]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [02:06:44]wFMCommunicate OK [02:06:44]SAM_PROTO_GetShiftState done [02:06:44]FM_GetShiftState done [02:06:44]opened in 1724027600 [02:06:44]opened+sec_in_day 1724114000 [02:06:44]quantity*price = 100021 [02:06:44]sum+1 = 100023 [02:06:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 16 19.08.2024 02:06 Смена: 450 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261048 ФПД: 165449519710990 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T020645&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261048&fm=165449519710990&tin=02508201610067®Number=0000000000091865&sum=100000 [02:06:46]StoreToDocumentArchive [02:06:46]shift 450 fd 261048 [02:06:46]save to /storage/0450/doc_00261048 [02:06:46]save last doc name /storage/0450/doc_00261048 to /storage/kkm_last_doc_name [02:06:46]save OK [02:06:46]Clear old archive folders... [02:06:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:06:46]tlvbuf is 00A4A8D0 [02:06:46]SAM_PROTO_ClearQueue [02:06:46]wFMCommunicate request_size=4 [02:06:46]MH_SAM_APDU [02:06:46]CAPDU: 80 09 00 00 [02:06:46]Write to MH i2c: E2 08 00 15 06 80 09 00 00 00 00 00 00 8D [02:06:46]Write i2c OK [02:06:46]MH_I2C_Read... [02:06:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:06:46]Read from MH i2c: E2 [02:06:46]MH_I2C_Read... [02:06:46]Read from MH i2c: E2 03 00 [02:06:46]MH_I2C_Read... [02:06:46]Read from MH i2c: E2 03 00 15 06 00 90 00 8F [02:06:46]RAPDU: 90 00 [02:06:46]wFMCommunicate OK [02:06:46]SAM_PROTO_ClearQueue done [02:06:46]KKMCreateOFDPacket [02:06:46]OFDProtocolAddRootSTLVToBuf [02:06:46]FM_MakeSignedData [02:06:46]FM_MakeSignedData [02:06:46]SAM_PROTO_SignData [02:06:46]wFMCommunicate request_size=4 [02:06:46]MH_SAM_APDU [02:06:46]CAPDU: 80 0D 01 02 [02:06:46]Write to MH i2c: E2 08 00 16 06 80 0D 01 02 00 00 00 00 95 [02:06:46]Write i2c OK [02:06:46]MH_I2C_Read... [02:06:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:06:46]Read from MH i2c: E2 [02:06:46]MH_I2C_Read... [02:06:46]Read from MH i2c: E2 03 00 [02:06:46]MH_I2C_Read... [02:06:46]Read from MH i2c: E2 03 00 16 06 00 90 00 90 [02:06:46]RAPDU: 90 00 [02:06:46]wFMCommunicate OK [02:06:46]wFMCommunicate request_size=255 [02:06:46]MH_SAM_APDU [02:06:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 B5 A8 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B8 FB 03 00 35 04 06 00 96 [02:06:46]Write to MH i2c: E2 02 01 17 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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 B5 A8 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B8 FB 03 00 35 04 06 00 96 00 00 E3 [02:06:46]Write i2c OK [02:06:46]MH_I2C_Read... [02:06:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:06:46]Read from MH i2c: E2 [02:06:46]MH_I2C_Read... [02:06:46]Read from MH i2c: E2 03 00 [02:06:46]MH_I2C_Read... [02:06:46]Read from MH i2c: E2 03 00 17 06 00 90 00 91 [02:06:46]RAPDU: 90 00 [02:06:46]wFMCommunicate OK [02:06:46]wFMCommunicate request_size=10 [02:06:46]MH_SAM_APDU [02:06:46]CAPDU: 80 0D 02 02 05 79 B7 D9 C3 0E [02:06:46]Write to MH i2c: E2 0D 00 18 06 80 0D 02 02 05 00 79 B7 D9 C3 0E 00 00 7C [02:06:46]Write i2c OK [02:06:46]MH_I2C_Read... [02:06:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:06:46]Read from MH i2c: E2 [02:06:46]MH_I2C_Read... [02:06:46]Read from MH i2c: E2 03 00 [02:06:46]MH_I2C_Read... [02:06:46]Read from MH i2c: E2 03 00 18 06 00 90 00 92 [02:06:46]RAPDU: 90 00 [02:06:46]wFMCommunicate OK [02:06:46]wFMCommunicate request_size=4 [02:06:46]MH_SAM_APDU [02:06:46]CAPDU: 80 0D 03 02 [02:06:46]Write to MH i2c: E2 08 00 19 06 80 0D 03 02 00 00 00 00 9A [02:06:46]Write i2c OK [02:06:46]MH_I2C_Read... [02:06:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:06:46]Read from MH i2c: E2 [02:06:46]MH_I2C_Read... [02:06:46]Read from MH i2c: E2 0B 00 [02:06:46]MH_I2C_Read... [02:06:46]Read from MH i2c: E2 0B 00 19 06 00 BD 6C 1C 22 93 9A F9 26 90 00 4E [02:06:46]RAPDU: BD 6C 1C 22 93 9A F9 26 90 00 [02:06:46]wFMCommunicate OK [02:06:46]SAM_PROTO_SignData done [02:06:46]FM_MakeSignedData done [02:06:46]CreateOFDProtocolMessage [02:06:46]wFMCommunicate request_size=4 [02:06:46]MH_SAM_APDU [02:06:46]CAPDU: 80 11 00 00 [02:06:46]Write to MH i2c: E2 08 00 1A 06 80 11 00 00 00 00 00 00 9A [02:06:46]Write i2c OK [02:06:46]MH_I2C_Read... [02:06:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:06:46]Read from MH i2c: E2 [02:06:46]MH_I2C_Read... [02:06:46]Read from MH i2c: E2 17 00 [02:06:46]MH_I2C_Read... [02:06:46]Read from MH i2c: E2 17 00 1A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 E7 [02:06:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [02:06:46]wFMCommunicate OK [02:06:46]CreateOFDProtocolMessage done [02:06:46]OFDSenderStorePacket 261048 [02:06:46]StoreOFDPacket docnum=261048 [02:06:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 4E 57 07 01 FB 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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 B5 A8 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B8 FB 03 00 35 04 06 00 96 79 B7 D9 C3 0E BD 6C 1C 22 93 9A F9 26 [02:06:46]CheckFolder [02:06:46]dirname=/storage/ofd_packets [02:06:46]CheckFolder done [02:06:46]ProducePacketName [02:06:46]name=ofd_packets/00261048 [02:06:46]NVStorageSaveData ofd_packets/00261048 [02:06:46]File name is /storage/ofd_packets/00261048 [02:06:46]Write 301 bytes [02:06:46]NVStorageSaveData done [02:06:46]OFDSenderStorePacket done [02:06:46]KKMCreateOFDPacket done [02:06:46]NVStorageSaveData kkm_last_timestamp [02:06:46]File name is /storage/kkm_last_timestamp [02:06:46]Write 4 bytes [02:06:46]NVStorageSaveData done [02:06:46]ExternCall_PrintAddStr [02:06:46]wPrintStart [02:06:46]Write to MH i2c: 01 00 00 1B 06 21 [02:06:46]Write i2c OK [02:06:46]MH_I2C_Read... [02:06:46]Read from MH i2c: 01 [02:06:46]MH_I2C_Read... [02:06:46]Read from MH i2c: 01 07 00 [02:06:46]MH_I2C_Read... [02:06:46]Read from MH i2c: 01 07 00 1B 06 00 00 00 00 00 FF 0F 36 [02:06:46]RasterBufferAndPrint [02:06:46]line Счет N : (1)1036601 [02:06:46]line ИНН: 02508201610067 [02:06:46]line Контрольно-Кассовый Чек [02:06:46]line ПРОДАЖА [02:06:46]line ТРК (МРК, ГНК) : 13 [02:06:46]line Товар: 2710124500 [02:06:46]line Аи-95-К-5 [02:06:46]line 13.480 * 74.20 [02:06:46]line = 1000.22 [02:06:46]line НДС 12% НСП 1% [02:06:46]line > о реализуемом товаре [02:06:46]line ОКРУГЛЕНИЕ: -0.22 [02:06:46]line ИТОГО: 1000.00 [02:06:46]line Внесено: 1000.00 [02:06:46]line СДАЧА: 0.00 [02:06:46]line НСП 1% : 8.85 [02:06:46]line НДС 12% : 106.22 [02:06:46]line Наличными: 1000.00 [02:06:46]line Безнал.: 0.00 [02:06:46]line Место: АЗС № 94 "Партнер Нефть" [02:06:46]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [02:06:46]line СНО: Общий режим [02:06:46]line Чек 16 19.08.2024 02:06 [02:06:46]line Смена: 450 ФФД: 1.0 [02:06:46]line ЗНМ: 0300000099 [02:06:46]line РНМ: 0000000000091865 [02:06:46]line Версия ККМ: 001 [02:06:46]line ФМ: 0000000000871820 [02:06:46]line ФД: 261048 [02:06:46]line ФПД: 165449519710990 [02:06:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T020645&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261048&fm=165449519710990&tin=02508201610067®Number=0000000000091865&sum=100000 [02:06:46]written 0, free lines is 4095 [02:06:46]OFD Sender: Processing packet 261048 [packets to send 192, broken 191] [02:06:46]ProducePacketName [02:06:46]name=ofd_packets/00261048 [02:06:46]OFD Sender: To server: pG, [02:06:46]CommunicateWithHost lk.salyk.kg:30040 [02:06:46]ConnectInit lk.salyk.kg [02:06:46]Connected sock=10 [02:06: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 30 0F 01 00 00 4E 57 07 01 FB 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 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 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 B5 A8 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B8 FB 03 00 35 04 06 00 96 79 B7 D9 C3 0E BD 6C 1C 22 93 9A F9 26 [02:06: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 30 4F 00 00 00 B7 3B 47 00 10 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B8 FB 03 00 F4 03 04 00 08 52 C2 66 B6 04 01 00 00 7A E6 3F AD 42 D5 60 31 [02:06:47]CommunicateWithHost err = 0 [02:06:47]CheckOFDResponse [02:06:47]1017 (14) - 77093643461234 [02:06:47]1041 (16) - 0000000000871820 [02:06:47]1040 (4) - 261048 [02:06:47]1012 (4) - 18.08.2024 19:56 [02:06:47]1206 (1) - 0 [02:06:47]OFD Sender: Remove packet 261048 [02:06:47]ProducePacketName [02:06:47]name=ofd_packets/00261048 [02:06:47]NVStorageDeleteData [02:06:47]Write to MH i2c: 01 00 00 46 06 4C [02:06:47]Write i2c OK [02:06:47]MH_I2C_Read... [02:06:47]Read from MH i2c: 01 [02:06:47]MH_I2C_Read... [02:06:47]Read from MH i2c: 01 07 00 [02:06:47]MH_I2C_Read... [02:06:47]Read from MH i2c: 01 07 00 46 06 00 00 00 00 00 71 0C D0 [02:06:47]RasterBufferAndPrint [02:06:47]line [02:06:47]line [02:06:47]line [02:06:47]line [02:06:47]line [02:06:47]written 0, free lines is 3187 [02:06:47]MH_Cut [02:06:47]Write to MH i2c: D1 01 00 4D 06 01 25 [02:06:47]Write i2c OK [02:06:47]MH_I2C_Read... [02:06:47]Read from MH i2c: D1 [02:06:47]MH_I2C_Read... [02:06:47]Read from MH i2c: D1 01 00 [02:06:47]MH_I2C_Read... [02:06:47]Read from MH i2c: D1 01 00 4D 06 00 24 [02:06:47]Write to MH i2c: 01 00 00 4E 06 54 [02:06:47]Write i2c OK [02:06:47]MH_I2C_Read... [02:06:47]OFD Sender: No OFD packet to send [02:06:48]*** Cut start [02:06:48]*** Purtial cut [02:06:48]*** Stage 1: CUTSNS_PIN = 1 [02:06:50]Read from MH i2c: 01 [02:06:50]MH_I2C_Read... [02:06:50]*** Stop cut motor [02:06:50]*** Cut end [02:06:50]Read from MH i2c: 01 07 00 [02:06:50]MH_I2C_Read... [02:06:50]Read from MH i2c: 01 07 00 4E 06 00 00 00 00 00 FF 0F 69 [02:06:50]process_action close_receipt done [02:06:50]requested_data is exist [02:06:50]produce_requested_data [02:06:50]requested_item fm.sn is exist - process it [02:06:50]wFMCommunicate request_size=4 [02:06:50]MH_SAM_APDU [02:06:50]CAPDU: 80 11 00 00 [02:06:50]Write to MH i2c: E2 08 00 4F 06 80 11 00 00 00 00 00 00 CF [02:06:50]Write i2c OK [02:06:50]MH_I2C_Read... [02:06:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:06:50]Read from MH i2c: E2 [02:06:50]MH_I2C_Read... [02:06:50]Read from MH i2c: E2 17 00 [02:06:50]MH_I2C_Read... [02:06:50]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 30 90 00 1C [02:06:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [02:06:50]wFMCommunicate OK [02:06:50]requested_item fd.num is exist - process it [02:06:50]SAM_PROTO_GetFieldsCounters [02:06:50]wFMCommunicate request_size=4 [02:06:50]MH_SAM_APDU [02:06:50]CAPDU: 80 13 00 00 [02:06:50]Write to MH i2c: E2 08 00 50 06 80 13 00 00 00 00 00 00 D2 [02:06:50]Write i2c OK [02:06:50]MH_I2C_Read... [02:06:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:06:50]Read from MH i2c: E2 [02:06:50]MH_I2C_Read... [02:06:50]Read from MH i2c: E2 62 00 [02:06:50]MH_I2C_Read... [02:06:50]Read from MH i2c: E2 62 00 50 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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B8 FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [02:06: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B8 FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:06:50]wFMCommunicate OK [02:06:50]SAM_PROTO_GetFieldsCounters done [02:06:50]requested_item shift.num is exist - process it [02:06:50]requested_item shift.opened is exist - process it [02:06:50]req_shift_opened [02:06:50]FM_GetShiftState [02:06:50]SAM_PROTO_GetShiftState [02:06:50]wFMCommunicate request_size=4 [02:06:50]MH_SAM_APDU [02:06:50]CAPDU: 80 13 01 00 [02:06:50]Write to MH i2c: E2 08 00 51 06 80 13 01 00 00 00 00 00 D4 [02:06:50]Write i2c OK [02:06:50]MH_I2C_Read... [02:06:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:06:50]Read from MH i2c: E2 [02:06:50]MH_I2C_Read... [02:06:50]Read from MH i2c: E2 0E 00 [02:06:50]MH_I2C_Read... [02:06:50]Read from MH i2c: E2 0E 00 51 06 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 6A [02:06:50]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [02:06:50]wFMCommunicate OK [02:06:50]SAM_PROTO_GetShiftState done [02:06:50]FM_GetShiftState done [02:06:50]req_shift_opened done [02:06:50]requested_item shift.open_date is exist - process it [02:06:50]req_shift_open_date [02:06:50]req_shift_open_date done [02:06:50]produce_requested_data done [02:06:50]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261048,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600} [02:06:50]process_action_free close_receipt [02:06:50]json_value_free [02:06:50]json_value_free done [02:06:50]process_json_proto returns [02:06:50]Send response to host [02:06:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261048,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600}}} [02:06:50]free response buf [02:06:50]execute_script done [02:06:50]execute_script returns [02:06:50]free content buf [02:06:50]Sock 7.Close socket [02:06:50]Sock 7.Thread stoped [02:06:52]OFD Sender: No OFD packet to send [02:06:57]OFD Sender: No OFD packet to send [02:07:02]OFD Sender: No OFD packet to send [02:07:07]OFD Sender: No OFD packet to send [02:07:12]OFD Sender: No OFD packet to send [02:07:17]OFD Sender: No OFD packet to send [02:07:22]OFD Sender: No OFD packet to send [02:07:27]OFD Sender: No OFD packet to send [02:07:32]OFD Sender: No OFD packet to send [02:07:37]OFD Sender: No OFD packet to send [02:07:42]OFD Sender: No OFD packet to send [02:07:47]OFD Sender: No OFD packet to send [02:07:52]OFD Sender: No OFD packet to send [02:07:57]OFD Sender: No OFD packet to send [02:08:02]OFD Sender: No OFD packet to send [02:08:07]OFD Sender: No OFD packet to send [02:08:12]OFD Sender: No OFD packet to send [02:08:17]OFD Sender: No OFD packet to send [02:08:22]OFD Sender: No OFD packet to send [02:08:27]OFD Sender: No OFD packet to send [02:08:32]OFD Sender: No OFD packet to send [02:08:37]OFD Sender: No OFD packet to send [02:08:42]OFD Sender: No OFD packet to send [02:08:47]OFD Sender: No OFD packet to send [02:08:52]OFD Sender: No OFD packet to send [02:08:57]OFD Sender: No OFD packet to send [02:09:02]OFD Sender: No OFD packet to send [02:09:07]OFD Sender: No OFD packet to send [02:09:12]OFD Sender: No OFD packet to send [02:09:17]OFD Sender: No OFD packet to send [02:09:22]OFD Sender: No OFD packet to send [02:09:27]OFD Sender: No OFD packet to send [02:09:32]OFD Sender: No OFD packet to send [02:09:37]OFD Sender: No OFD packet to send [02:09:42]OFD Sender: No OFD packet to send [02:09:47]OFD Sender: No OFD packet to send [02:09:52]OFD Sender: No OFD packet to send [02:09:57]OFD Sender: No OFD packet to send [02:10:02]OFD Sender: No OFD packet to send [02:10:07]OFD Sender: No OFD packet to send [02:10:12]OFD Sender: No OFD packet to send [02:10:17]OFD Sender: No OFD packet to send [02:10:22]OFD Sender: No OFD packet to send [02:10:27]OFD Sender: No OFD packet to send [02:10:32]OFD Sender: No OFD packet to send [02:10:37]OFD Sender: No OFD packet to send [02:10:42]OFD Sender: No OFD packet to send [02:10:47]OFD Sender: No OFD packet to send [02:10:52]OFD Sender: No OFD packet to send [02:10:57]OFD Sender: No OFD packet to send [02:11:02]OFD Sender: No OFD packet to send [02:11:07]OFD Sender: No OFD packet to send [02:11:12]OFD Sender: No OFD packet to send [02:11:17]OFD Sender: No OFD packet to send [02:11:22]OFD Sender: No OFD packet to send [02:11:27]OFD Sender: No OFD packet to send [02:11:32]OFD Sender: No OFD packet to send [02:11:37]OFD Sender: No OFD packet to send [02:11:42]OFD Sender: No OFD packet to send [02:11:47]OFD Sender: No OFD packet to send [02:11:52]OFD Sender: No OFD packet to send [02:11:57]OFD Sender: No OFD packet to send [02:12:02]OFD Sender: No OFD packet to send [02:12:07]OFD Sender: No OFD packet to send [02:12:12]OFD Sender: No OFD packet to send [02:12:17]OFD Sender: No OFD packet to send [02:12:23]OFD Sender: No OFD packet to send [02:12:28]OFD Sender: No OFD packet to send [02:12:33]OFD Sender: No OFD packet to send [02:12:38]OFD Sender: No OFD packet to send [02:12:43]OFD Sender: No OFD packet to send [02:12:48]OFD Sender: No OFD packet to send [02:12:53]OFD Sender: No OFD packet to send [02:12:58]OFD Sender: No OFD packet to send [02:13:03]OFD Sender: No OFD packet to send [02:13:08]OFD Sender: No OFD packet to send [02:13:13]OFD Sender: No OFD packet to send [02:13:18]OFD Sender: No OFD packet to send [02:13:23]OFD Sender: No OFD packet to send [02:13:28]OFD Sender: No OFD packet to send [02:13:33]OFD Sender: No OFD packet to send [02:13:38]OFD Sender: No OFD packet to send [02:13:43]OFD Sender: No OFD packet to send [02:13:48]OFD Sender: No OFD packet to send [02:13:53]OFD Sender: No OFD packet to send [02:13:58]OFD Sender: No OFD packet to send [02:14:03]OFD Sender: No OFD packet to send [02:14:08]OFD Sender: No OFD packet to send [02:14:13]OFD Sender: No OFD packet to send [02:14:18]OFD Sender: No OFD packet to send [02:14:23]OFD Sender: No OFD packet to send [02:14:28]OFD Sender: No OFD packet to send [02:14:33]OFD Sender: No OFD packet to send [02:14:38]OFD Sender: No OFD packet to send [02:14:43]OFD Sender: No OFD packet to send [02:14:48]OFD Sender: No OFD packet to send [02:14:53]OFD Sender: No OFD packet to send [02:14:58]OFD Sender: No OFD packet to send [02:15:03]OFD Sender: No OFD packet to send [02:15:08]OFD Sender: No OFD packet to send [02:15:13]OFD Sender: No OFD packet to send [02:15:18]OFD Sender: No OFD packet to send [02:15:23]OFD Sender: No OFD packet to send [02:15:28]OFD Sender: No OFD packet to send [02:15:33]OFD Sender: No OFD packet to send [02:15:38]OFD Sender: No OFD packet to send [02:15:43]OFD Sender: No OFD packet to send [02:15:48]OFD Sender: No OFD packet to send [02:15:53]OFD Sender: No OFD packet to send [02:15:58]OFD Sender: No OFD packet to send [02:16:03]OFD Sender: No OFD packet to send [02:16:08]OFD Sender: No OFD packet to send [02:16:13]OFD Sender: No OFD packet to send [02:16:18]OFD Sender: No OFD packet to send [02:16:23]OFD Sender: No OFD packet to send [02:16:28]OFD Sender: No OFD packet to send [02:16:33]OFD Sender: No OFD packet to send [02:16:38]OFD Sender: No OFD packet to send [02:16:43]OFD Sender: No OFD packet to send [02:16:48]OFD Sender: No OFD packet to send [02:16:53]OFD Sender: No OFD packet to send [02:16:58]OFD Sender: No OFD packet to send [02:17:03]OFD Sender: No OFD packet to send [02:17:08]OFD Sender: No OFD packet to send [02:17:13]OFD Sender: No OFD packet to send [02:17:18]OFD Sender: No OFD packet to send [02:17:23]OFD Sender: No OFD packet to send [02:17:28]OFD Sender: No OFD packet to send [02:17:33]OFD Sender: No OFD packet to send [02:17:38]OFD Sender: No OFD packet to send [02:17:43]OFD Sender: No OFD packet to send [02:17:48]OFD Sender: No OFD packet to send [02:17:53]OFD Sender: No OFD packet to send [02:17:58]OFD Sender: No OFD packet to send [02:18:03]OFD Sender: No OFD packet to send [02:18:08]OFD Sender: No OFD packet to send [02:18:13]OFD Sender: No OFD packet to send [02:18:18]OFD Sender: No OFD packet to send [02:18:23]OFD Sender: No OFD packet to send [02:18:28]OFD Sender: No OFD packet to send [02:18:33]OFD Sender: No OFD packet to send [02:18:38]OFD Sender: No OFD packet to send [02:18:43]OFD Sender: No OFD packet to send [02:18:48]OFD Sender: No OFD packet to send [02:18:53]OFD Sender: No OFD packet to send [02:18:58]OFD Sender: No OFD packet to send [02:19:03]OFD Sender: No OFD packet to send [02:19:08]OFD Sender: No OFD packet to send [02:19:13]OFD Sender: No OFD packet to send [02:19:18]OFD Sender: No OFD packet to send [02:19:23]OFD Sender: No OFD packet to send [02:19:28]OFD Sender: No OFD packet to send [02:19:33]OFD Sender: No OFD packet to send [02:19:38]OFD Sender: No OFD packet to send [02:19:43]OFD Sender: No OFD packet to send [02:19:48]OFD Sender: No OFD packet to send [02:19:53]OFD Sender: No OFD packet to send [02:19:58]OFD Sender: No OFD packet to send [02:20:03]OFD Sender: No OFD packet to send [02:20:08]OFD Sender: No OFD packet to send [02:20:13]OFD Sender: No OFD packet to send [02:20:18]OFD Sender: No OFD packet to send [02:20:23]OFD Sender: No OFD packet to send [02:20:28]OFD Sender: No OFD packet to send [02:20:33]OFD Sender: No OFD packet to send [02:20:38]OFD Sender: No OFD packet to send [02:20:43]OFD Sender: No OFD packet to send [02:20:48]OFD Sender: No OFD packet to send [02:20:53]OFD Sender: No OFD packet to send [02:20:58]OFD Sender: No OFD packet to send [02:21:03]OFD Sender: No OFD packet to send [02:21:08]OFD Sender: No OFD packet to send [02:21:13]OFD Sender: No OFD packet to send [02:21:18]OFD Sender: No OFD packet to send [02:21:23]OFD Sender: No OFD packet to send [02:21:28]OFD Sender: No OFD packet to send [02:21:33]OFD Sender: No OFD packet to send [02:21:38]OFD Sender: No OFD packet to send [02:21:43]OFD Sender: No OFD packet to send [02:21:48]OFD Sender: No OFD packet to send [02:21:53]OFD Sender: No OFD packet to send [02:21:58]OFD Sender: No OFD packet to send [02:22:03]OFD Sender: No OFD packet to send [02:22:08]OFD Sender: No OFD packet to send [02:22:13]OFD Sender: No OFD packet to send [02:22:18]OFD Sender: No OFD packet to send [02:22:23]OFD Sender: No OFD packet to send [02:22:28]OFD Sender: No OFD packet to send [02:22:33]OFD Sender: No OFD packet to send [02:22:38]OFD Sender: No OFD packet to send [02:22:43]OFD Sender: No OFD packet to send [02:22:48]OFD Sender: No OFD packet to send [02:22:53]OFD Sender: No OFD packet to send [02:22:58]OFD Sender: No OFD packet to send [02:23:03]OFD Sender: No OFD packet to send [02:23:08]OFD Sender: No OFD packet to send [02:23:13]OFD Sender: No OFD packet to send [02:23:18]OFD Sender: No OFD packet to send [02:23:23]OFD Sender: No OFD packet to send [02:23:28]OFD Sender: No OFD packet to send [02:23:33]OFD Sender: No OFD packet to send [02:23:38]OFD Sender: No OFD packet to send [02:23:43]OFD Sender: No OFD packet to send [02:23:48]OFD Sender: No OFD packet to send [02:23:53]OFD Sender: No OFD packet to send [02:23:58]OFD Sender: No OFD packet to send [02:24:04]OFD Sender: No OFD packet to send [02:24:09]OFD Sender: No OFD packet to send [02:24:14]OFD Sender: No OFD packet to send [02:24:19]OFD Sender: No OFD packet to send [02:24:24]OFD Sender: No OFD packet to send [02:24:29]OFD Sender: No OFD packet to send [02:24:34]OFD Sender: No OFD packet to send [02:24:39]OFD Sender: No OFD packet to send [02:24:44]OFD Sender: No OFD packet to send [02:24:49]OFD Sender: No OFD packet to send [02:24:54]OFD Sender: No OFD packet to send [02:24:59]OFD Sender: No OFD packet to send [02:25:04]OFD Sender: No OFD packet to send [02:25:09]OFD Sender: No OFD packet to send [02:25:14]OFD Sender: No OFD packet to send [02:25:19]OFD Sender: No OFD packet to send [02:25:24]OFD Sender: No OFD packet to send [02:25:29]OFD Sender: No OFD packet to send [02:25:34]OFD Sender: No OFD packet to send [02:25:39]OFD Sender: No OFD packet to send [02:25:44]OFD Sender: No OFD packet to send [02:25:49]OFD Sender: No OFD packet to send [02:25:54]OFD Sender: No OFD packet to send [02:25:59]OFD Sender: No OFD packet to send [02:26:04]OFD Sender: No OFD packet to send [02:26:09]OFD Sender: No OFD packet to send [02:26:14]OFD Sender: No OFD packet to send [02:26:19]OFD Sender: No OFD packet to send [02:26:24]OFD Sender: No OFD packet to send [02:26:29]OFD Sender: No OFD packet to send [02:26:34]OFD Sender: No OFD packet to send [02:26:39]OFD Sender: No OFD packet to send [02:26:44]OFD Sender: No OFD packet to send [02:26:49]OFD Sender: No OFD packet to send [02:26:54]OFD Sender: No OFD packet to send [02:26:59]OFD Sender: No OFD packet to send [02:27:04]OFD Sender: No OFD packet to send [02:27:09]OFD Sender: No OFD packet to send [02:27:14]OFD Sender: No OFD packet to send [02:27:19]OFD Sender: No OFD packet to send [02:27:24]OFD Sender: No OFD packet to send [02:27:29]OFD Sender: No OFD packet to send [02:27:34]OFD Sender: No OFD packet to send [02:27:39]OFD Sender: No OFD packet to send [02:27:44]OFD Sender: No OFD packet to send [02:27:49]OFD Sender: No OFD packet to send [02:27:54]OFD Sender: No OFD packet to send [02:27:59]OFD Sender: No OFD packet to send [02:28:04]OFD Sender: No OFD packet to send [02:28:09]OFD Sender: No OFD packet to send [02:28:14]OFD Sender: No OFD packet to send [02:28:19]OFD Sender: No OFD packet to send [02:28:24]OFD Sender: No OFD packet to send [02:28:29]OFD Sender: No OFD packet to send [02:28:34]OFD Sender: No OFD packet to send [02:28:39]OFD Sender: No OFD packet to send [02:28:44]OFD Sender: No OFD packet to send [02:28:49]OFD Sender: No OFD packet to send [02:28:54]OFD Sender: No OFD packet to send [02:28:59]OFD Sender: No OFD packet to send [02:29:04]OFD Sender: No OFD packet to send [02:29:09]OFD Sender: No OFD packet to send [02:29:14]OFD Sender: No OFD packet to send [02:29:19]OFD Sender: No OFD packet to send [02:29:24]OFD Sender: No OFD packet to send [02:29:29]OFD Sender: No OFD packet to send [02:29:34]OFD Sender: No OFD packet to send [02:29:39]OFD Sender: No OFD packet to send [02:29:43]accept exits with 9 [02:29:43]New connection [02:29:43]New thread 3067104612 created [02:29:43]Thread 3067247972 joined [02:29:43]Waiting for new connection... [02:29:43] Sock 9.Parse request [02:29:43]Sock 9.Check first char [02:29:43]Sock 9.First char is OK [02:29:43]request: POST /json_proto HTTP/1.0 [02:29:43]Method: POST [02:29:43]URL: /json_proto [02:29:43]Method is POST - this is cgi request [02:29:43]url: /json_proto [02:29:43]query_string will be loaded in cgi processing [02:29:43]execute_cgi json_proto POST (null) [02:29:43]execute_cgi path=json_proto method=POST [02:29:43]POST find Content-Length [02:29:43]Host: 172.17.55.133:8080 [02:29:43]Content-Length: 793 [02:29:43]Content-Type: application/json [02:29:43] [02:29:43]POST finish read [02:29:43]Found Content-Length = 793 [02:29:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A81796", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:29:43]execute_script... [02:29: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)1036602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A81796", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:29:43]POST & json_proto [02:29:43]process_json_proto [02:29:43]json parsed OK: [02:29:43]protocol is kg_v1.0 [02:29:43]action value=close_receipt [02:29:43]process_action close_receipt [02:29:43]cmd_close_receipt [02:29:43]MH_GetDate [02:29:43]Write to MH i2c: F0 00 00 52 06 47 [02:29:43]Write i2c OK [02:29:43]MH_I2C_Read... [02:29:43]Read from MH i2c: F0 [02:29:43]MH_I2C_Read... [02:29:43]Read from MH i2c: F0 09 00 [02:29:43]MH_I2C_Read... [02:29:43]Read from MH i2c: F0 09 00 52 06 00 18 AE C2 66 34 48 D8 65 F7 [02:29:43]GetLastDocTimeStamp 1724033205 [02:29:43]current date 1724034584 [02:29:43]FM_GetShiftState [02:29:43]SAM_PROTO_GetShiftState [02:29:43]wFMCommunicate request_size=4 [02:29:43]MH_SAM_APDU [02:29:43]CAPDU: 80 13 01 00 [02:29:43]Write to MH i2c: E2 08 00 53 06 80 13 01 00 00 00 00 00 D6 [02:29:43]Write i2c OK [02:29:43]MH_I2C_Read... [02:29:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:29:43]Read from MH i2c: E2 [02:29:43]MH_I2C_Read... [02:29:43]Read from MH i2c: E2 0E 00 [02:29:43]MH_I2C_Read... [02:29:43]Read from MH i2c: E2 0E 00 53 06 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 6C [02:29:43]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [02:29:43]wFMCommunicate OK [02:29:43]SAM_PROTO_GetShiftState done [02:29:43]FM_GetShiftState done [02:29:43]opened in 1724027600 [02:29:43]opened+sec_in_day 1724114000 [02:29:43]quantity*price = 0 [02:29:43]sum+1 = 1 [02:29:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 17 19.08.2024 02:29 Смена: 450 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Талоны: Топливная Карта 81796 ФМ: 0000000000871820 ФД: 261049 ФПД: 201191419026196 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T022944&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261049&fm=201191419026196&tin=02508201610067®Number=0000000000091865&sum=0 [02:29:45]StoreToDocumentArchive [02:29:45]shift 450 fd 261049 [02:29:45]save to /storage/0450/doc_00261049 [02:29:45]save last doc name /storage/0450/doc_00261049 to /storage/kkm_last_doc_name [02:29:45]save OK [02:29:45]Clear old archive folders... [02:29:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:29:45]tlvbuf is 00A0AA10 [02:29:45]SAM_PROTO_ClearQueue [02:29:45]wFMCommunicate request_size=4 [02:29:45]MH_SAM_APDU [02:29:45]CAPDU: 80 09 00 00 [02:29:45]Write to MH i2c: E2 08 00 60 06 80 09 00 00 00 00 00 00 D8 [02:29:45]Write i2c OK [02:29:45]MH_I2C_Read... [02:29:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:29:45]Read from MH i2c: E2 [02:29:45]MH_I2C_Read... [02:29:45]Read from MH i2c: E2 03 00 [02:29:45]MH_I2C_Read... [02:29:45]Read from MH i2c: E2 03 00 60 06 00 90 00 DA [02:29:45]RAPDU: 90 00 [02:29:45]wFMCommunicate OK [02:29:45]SAM_PROTO_ClearQueue done [02:29:45]KKMCreateOFDPacket [02:29:45]OFDProtocolAddRootSTLVToBuf [02:29:45]FM_MakeSignedData [02:29:45]FM_MakeSignedData [02:29:45]SAM_PROTO_SignData [02:29:45]wFMCommunicate request_size=4 [02:29:45]MH_SAM_APDU [02:29:45]CAPDU: 80 0D 01 02 [02:29:45]Write to MH i2c: E2 08 00 61 06 80 0D 01 02 00 00 00 00 E0 [02:29:45]Write i2c OK [02:29:45]MH_I2C_Read... [02:29:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:29:45]Read from MH i2c: E2 [02:29:45]MH_I2C_Read... [02:29:45]Read from MH i2c: E2 03 00 [02:29:45]MH_I2C_Read... [02:29:45]Read from MH i2c: E2 03 00 61 06 00 90 00 DB [02:29:45]RAPDU: 90 00 [02:29:45]wFMCommunicate OK [02:29:45]wFMCommunicate request_size=255 [02:29:45]MH_SAM_APDU [02:29:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 11 00 00 00 F4 03 04 00 18 AE C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B9 FB 03 00 35 04 06 00 B6 [02:29:45]Write to MH i2c: E2 02 01 62 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 11 00 00 00 F4 03 04 00 18 AE C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B9 FB 03 00 35 04 06 00 B6 00 00 85 [02:29:45]Write i2c OK [02:29:45]MH_I2C_Read... [02:29:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:29:45]Read from MH i2c: E2 [02:29:45]MH_I2C_Read... [02:29:45]Read from MH i2c: E2 03 00 [02:29:45]MH_I2C_Read... [02:29:45]Read from MH i2c: E2 03 00 62 06 00 90 00 DC [02:29:45]RAPDU: 90 00 [02:29:45]wFMCommunicate OK [02:29:45]wFMCommunicate request_size=10 [02:29:45]MH_SAM_APDU [02:29:45]CAPDU: 80 0D 02 02 05 FB 87 10 1B 14 [02:29:45]Write to MH i2c: E2 0D 00 63 06 80 0D 02 02 05 00 FB 87 10 1B 14 00 00 AE [02:29:45]Write i2c OK [02:29:45]MH_I2C_Read... [02:29:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:29:45]Read from MH i2c: E2 [02:29:45]MH_I2C_Read... [02:29:45]Read from MH i2c: E2 03 00 [02:29:45]MH_I2C_Read... [02:29:45]Read from MH i2c: E2 03 00 63 06 00 90 00 DD [02:29:45]RAPDU: 90 00 [02:29:45]wFMCommunicate OK [02:29:45]wFMCommunicate request_size=4 [02:29:45]MH_SAM_APDU [02:29:45]CAPDU: 80 0D 03 02 [02:29:45]Write to MH i2c: E2 08 00 64 06 80 0D 03 02 00 00 00 00 E5 [02:29:45]Write i2c OK [02:29:45]MH_I2C_Read... [02:29:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:29:45]Read from MH i2c: E2 [02:29:45]MH_I2C_Read... [02:29:45]Read from MH i2c: E2 0B 00 [02:29:45]MH_I2C_Read... [02:29:45]Read from MH i2c: E2 0B 00 64 06 00 80 C4 4B B6 43 2F 80 B8 90 00 D5 [02:29:45]RAPDU: 80 C4 4B B6 43 2F 80 B8 90 00 [02:29:45]wFMCommunicate OK [02:29:45]SAM_PROTO_SignData done [02:29:45]FM_MakeSignedData done [02:29:45]CreateOFDProtocolMessage [02:29:45]wFMCommunicate request_size=4 [02:29:45]MH_SAM_APDU [02:29:45]CAPDU: 80 11 00 00 [02:29:45]Write to MH i2c: E2 08 00 65 06 80 11 00 00 00 00 00 00 E5 [02:29:45]Write i2c OK [02:29:45]MH_I2C_Read... [02:29:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:29:45]Read from MH i2c: E2 [02:29:45]MH_I2C_Read... [02:29:45]Read from MH i2c: E2 17 00 [02:29:45]MH_I2C_Read... [02:29:45]Read from MH i2c: E2 17 00 65 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 32 [02:29:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [02:29:45]wFMCommunicate OK [02:29:45]CreateOFDProtocolMessage done [02:29:45]OFDSenderStorePacket 261049 [02:29:45]StoreOFDPacket docnum=261049 [02:29:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 3B 41 07 01 06 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 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 11 00 00 00 F4 03 04 00 18 AE C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B9 FB 03 00 35 04 06 00 B6 FB 87 10 1B 14 80 C4 4B B6 43 2F 80 B8 [02:29:45]CheckFolder [02:29:45]dirname=/storage/ofd_packets [02:29:45]CheckFolder done [02:29:45]ProducePacketName [02:29:45]name=ofd_packets/00261049 [02:29:45]NVStorageSaveData ofd_packets/00261049 [02:29:45]File name is /storage/ofd_packets/00261049 [02:29:45]Write 301 bytes [02:29:45]NVStorageSaveData done [02:29:45]OFDSenderStorePacket done [02:29:45]KKMCreateOFDPacket done [02:29:45]NVStorageSaveData kkm_last_timestamp [02:29:45]File name is /storage/kkm_last_timestamp [02:29:45]Write 4 bytes [02:29:45]NVStorageSaveData done [02:29:45]ExternCall_PrintAddStr [02:29:45]wPrintStart [02:29:45]Write to MH i2c: 01 00 00 66 06 6C [02:29:45]Write i2c OK [02:29:45]MH_I2C_Read... [02:29:45]Read from MH i2c: 01 [02:29:45]MH_I2C_Read... [02:29:45]Read from MH i2c: 01 07 00 [02:29:45]MH_I2C_Read... [02:29:45]Read from MH i2c: 01 07 00 66 06 00 00 00 00 00 FF 0F 81 [02:29:45]RasterBufferAndPrint [02:29:45]line Счет N : (1)1036602 [02:29:45]line ИНН: 02508201610067 [02:29:45]line Контрольно-Кассовый Чек [02:29:45]line ПРОДАЖА [02:29:45]line ТРК (МРК, ГНК) : 12 [02:29:45]line Товар: 2710124130 [02:29:45]line Аи-92-К-5 [02:29:45]line 20.000 * 0.00 [02:29:45]line = 0.00 [02:29:45]line НДС 12% НСП 1% [02:29:45]line > о реализуемом товаре [02:29:45]line ИТОГО: 0.00 [02:29:45]line НСП 1% : 0.00 [02:29:45]line НДС 12% : 0.00 [02:29:45]line Наличными: 0.00 [02:29:45]line Безнал.: 0.00 [02:29:45]line Место: АЗС № 94 "Партнер Нефть" [02:29:45]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [02:29:45]line СНО: Общий режим [02:29:45]line Чек 17 19.08.2024 02:29 [02:29:45]line Смена: 450 ФФД: 1.0 [02:29:45]line ЗНМ: 0300000099 [02:29:45]line РНМ: 0000000000091865 [02:29:45]line Версия ККМ: 001 [02:29:45]line Талоны: Топливная Карта [02:29:45]line 81796 [02:29:45]line ФМ: 0000000000871820 [02:29:45]line ФД: 261049 [02:29:45]line ФПД: 201191419026196 [02:29:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T022944&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261049&fm=201191419026196&tin=02508201610067®Number=0000000000091865&sum=0 [02:29:45]written 0, free lines is 4095 [02:29:45]OFD Sender: Processing packet 261049 [packets to send 192, broken 191] [02:29:45]ProducePacketName [02:29:45]name=ofd_packets/00261049 [02:29:45]OFD Sender: To server: pG, [02:29:45]CommunicateWithHost lk.salyk.kg:30040 [02:29:45]ConnectInit lk.salyk.kg [02:29:45]Connected sock=10 [02:29: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 30 0F 01 00 00 3B 41 07 01 06 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 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 11 00 00 00 F4 03 04 00 18 AE C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 B9 FB 03 00 35 04 06 00 B6 FB 87 10 1B 14 80 C4 4B B6 43 2F 80 B8 [02:29: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 30 4F 00 00 00 C5 4A 47 00 57 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 30 10 04 04 00 B9 FB 03 00 F4 03 04 00 6B 57 C2 66 B6 04 01 00 00 1E E8 D1 80 1F 3F FF 25 [02:29:45]CommunicateWithHost err = 0 [02:29:45]CheckOFDResponse [02:29:45]1017 (14) - 77093643461234 [02:29:45]1041 (16) - 0000000000871820 [02:29:45]1040 (4) - 261049 [02:29:45]1012 (4) - 18.08.2024 20:19 [02:29:45]1206 (1) - 0 [02:29:45]OFD Sender: Remove packet 261049 [02:29:45]ProducePacketName [02:29:45]name=ofd_packets/00261049 [02:29:45]NVStorageDeleteData [02:29:46]Write to MH i2c: 01 00 00 90 06 96 [02:29:46]Write i2c OK [02:29:46]MH_I2C_Read... [02:29:46]Read from MH i2c: 01 [02:29:46]MH_I2C_Read... [02:29:46]Read from MH i2c: 01 07 00 [02:29:46]MH_I2C_Read... [02:29:46]Read from MH i2c: 01 07 00 90 06 00 00 00 00 00 8A 0C 33 [02:29:46]RasterBufferAndPrint [02:29:46]line [02:29:46]line [02:29:46]line [02:29:46]line [02:29:46]line [02:29:46]written 0, free lines is 3213 [02:29:46]MH_Cut [02:29:46]Write to MH i2c: D1 01 00 97 06 01 6F [02:29:46]Write i2c OK [02:29:46]MH_I2C_Read... [02:29:46]Read from MH i2c: D1 [02:29:46]MH_I2C_Read... [02:29:46]Read from MH i2c: D1 01 00 [02:29:46]MH_I2C_Read... [02:29:46]Read from MH i2c: D1 01 00 97 06 00 6E [02:29:46]Write to MH i2c: 01 00 00 98 06 9E [02:29:46]Write i2c OK [02:29:46]MH_I2C_Read... [02:29:46]OFD Sender: No OFD packet to send [02:29:47]*** Cut start [02:29:47]*** Purtial cut [02:29:47]*** Stage 1: CUTSNS_PIN = 1 [02:29:49]Read from MH i2c: 01 [02:29:49]MH_I2C_Read... [02:29:49]*** Stop cut motor [02:29:49]*** Cut end [02:29:49]Read from MH i2c: 01 07 00 [02:29:49]MH_I2C_Read... [02:29:49]Read from MH i2c: 01 07 00 98 06 00 00 00 00 00 FF 0F B3 [02:29:49]process_action close_receipt done [02:29:49]requested_data is exist [02:29:49]produce_requested_data [02:29:49]requested_item fm.sn is exist - process it [02:29:49]wFMCommunicate request_size=4 [02:29:49]MH_SAM_APDU [02:29:49]CAPDU: 80 11 00 00 [02:29:49]Write to MH i2c: E2 08 00 99 06 80 11 00 00 00 00 00 00 19 [02:29:49]Write i2c OK [02:29:49]MH_I2C_Read... [02:29:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:29:49]Read from MH i2c: E2 [02:29:49]MH_I2C_Read... [02:29:49]Read from MH i2c: E2 17 00 [02:29:49]MH_I2C_Read... [02:29:49]Read from MH i2c: E2 17 00 99 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 66 [02:29:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [02:29:49]wFMCommunicate OK [02:29:49]requested_item fd.num is exist - process it [02:29:49]SAM_PROTO_GetFieldsCounters [02:29:49]wFMCommunicate request_size=4 [02:29:49]MH_SAM_APDU [02:29:49]CAPDU: 80 13 00 00 [02:29:49]Write to MH i2c: E2 08 00 9A 06 80 13 00 00 00 00 00 00 1C [02:29:49]Write i2c OK [02:29:49]MH_I2C_Read... [02:29:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:29:49]Read from MH i2c: E2 [02:29:49]MH_I2C_Read... [02:29:49]Read from MH i2c: E2 62 00 [02:29:49]MH_I2C_Read... [02:29:49]Read from MH i2c: E2 62 00 9A 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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B9 FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [02:29: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 B9 FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:29:49]wFMCommunicate OK [02:29:49]SAM_PROTO_GetFieldsCounters done [02:29:49]requested_item shift.num is exist - process it [02:29:49]requested_item shift.opened is exist - process it [02:29:49]req_shift_opened [02:29:49]FM_GetShiftState [02:29:49]SAM_PROTO_GetShiftState [02:29:49]wFMCommunicate request_size=4 [02:29:49]MH_SAM_APDU [02:29:49]CAPDU: 80 13 01 00 [02:29:49]Write to MH i2c: E2 08 00 9B 06 80 13 01 00 00 00 00 00 1E [02:29:49]Write i2c OK [02:29:49]MH_I2C_Read... [02:29:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:29:49]Read from MH i2c: E2 [02:29:49]MH_I2C_Read... [02:29:49]Read from MH i2c: E2 0E 00 [02:29:49]MH_I2C_Read... [02:29:49]Read from MH i2c: E2 0E 00 9B 06 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 B4 [02:29:49]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [02:29:49]wFMCommunicate OK [02:29:49]SAM_PROTO_GetShiftState done [02:29:49]FM_GetShiftState done [02:29:49]req_shift_opened done [02:29:49]requested_item shift.open_date is exist - process it [02:29:49]req_shift_open_date [02:29:49]req_shift_open_date done [02:29:49]produce_requested_data done [02:29:49]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261049,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600} [02:29:49]process_action_free close_receipt [02:29:49]json_value_free [02:29:49]json_value_free done [02:29:49]process_json_proto returns [02:29:49]Send response to host [02:29:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261049,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600}}} [02:29:49]free response buf [02:29:49]execute_script done [02:29:49]execute_script returns [02:29:49]free content buf [02:29:49]Sock 9.Close socket [02:29:49]Sock 9.Thread stoped [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:06]OFD Sender: No OFD packet to send [02:30:11]OFD Sender: No OFD packet to send [02:30:16]OFD Sender: No OFD packet to send [02:30:21]OFD Sender: No OFD packet to send [02:30:26]OFD Sender: No OFD packet to send [02:30:31]OFD Sender: No OFD packet to send [02:30:36]OFD Sender: No OFD packet to send [02:30:41]OFD Sender: No OFD packet to send [02:30:46]OFD Sender: No OFD packet to send [02:30:51]OFD Sender: No OFD packet to send [02:30:56]OFD Sender: No OFD packet to send [02:31:01]OFD Sender: No OFD packet to send [02:31:06]OFD Sender: No OFD packet to send [02:31:11]OFD Sender: No OFD packet to send [02:31:16]OFD Sender: No OFD packet to send [02:31:21]OFD Sender: No OFD packet to send [02:31:26]OFD Sender: No OFD packet to send [02:31:31]OFD Sender: No OFD packet to send [02:31:36]OFD Sender: No OFD packet to send [02:31:41]OFD Sender: No OFD packet to send [02:31:46]OFD Sender: No OFD packet to send [02:31:51]OFD Sender: No OFD packet to send [02:31:56]accept exits with 7 [02:31:56]New connection [02:31:56]New thread 3067247972 created [02:31:56]Thread 3067104612 joined [02:31:56]Waiting for new connection... [02:31:56] Sock 7.Parse request [02:31:56]Sock 7.Check first char [02:31:56]Sock 7.First char is OK [02:31:56]request: POST /json_proto HTTP/1.0 [02:31:56]Method: POST [02:31:56]URL: /json_proto [02:31:56]Method is POST - this is cgi request [02:31:56]url: /json_proto [02:31:56]query_string will be loaded in cgi processing [02:31:56]execute_cgi json_proto POST (null) [02:31:56]execute_cgi path=json_proto method=POST [02:31:56]POST find Content-Length [02:31:56]Host: 172.17.55.133:8080 [02:31:56]Content-Length: 804 [02:31:56]Content-Type: application/json [02:31:56] [02:31:56]POST finish read [02:31:56]Found Content-Length = 804 [02:31:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:31:56]execute_script... [02:31: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)1036603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:31:56]POST & json_proto [02:31:56]process_json_proto [02:31:56]json parsed OK: [02:31:56]protocol is kg_v1.0 [02:31:56]action value=close_receipt [02:31:56]process_action close_receipt [02:31:56]cmd_close_receipt [02:31:56]MH_GetDate [02:31:56]Write to MH i2c: F0 00 00 9C 06 91 [02:31:56]Write i2c OK [02:31:56]MH_I2C_Read... [02:31:56]Read from MH i2c: F0 [02:31:56]MH_I2C_Read... [02:31:56]Read from MH i2c: F0 09 00 [02:31:56]MH_I2C_Read... [02:31:56]Read from MH i2c: F0 09 00 9C 06 00 9D AE C2 66 34 48 D8 65 C6 [02:31:56]GetLastDocTimeStamp 1724034584 [02:31:56]current date 1724034717 [02:31:56]FM_GetShiftState [02:31:56]SAM_PROTO_GetShiftState [02:31:56]wFMCommunicate request_size=4 [02:31:56]MH_SAM_APDU [02:31:56]CAPDU: 80 13 01 00 [02:31:56]Write to MH i2c: E2 08 00 9D 06 80 13 01 00 00 00 00 00 20 [02:31:56]Write i2c OK [02:31:56]MH_I2C_Read... [02:31:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:31:56]Read from MH i2c: E2 [02:31:56]MH_I2C_Read... [02:31:56]Read from MH i2c: E2 0E 00 [02:31:56]MH_I2C_Read... [02:31:56]Read from MH i2c: E2 0E 00 9D 06 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 B6 [02:31:56]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [02:31:56]wFMCommunicate OK [02:31:56]SAM_PROTO_GetShiftState done [02:31:56]FM_GetShiftState done [02:31:56]opened in 1724027600 [02:31:56]opened+sec_in_day 1724114000 [02:31:56]quantity*price = 150041 [02:31:56]sum+1 = 150042 [02:31:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.41 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 0.00 Безнал.: 1500.41 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 18 19.08.2024 02:31 Смена: 450 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 261050 ФПД: 115605272338818 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T023157&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261050&fm=115605272338818&tin=02508201610067®Number=0000000000091865&sum=150041 [02:31:57]StoreToDocumentArchive [02:31:57]shift 450 fd 261050 [02:31:57]save to /storage/0450/doc_00261050 [02:31:57]save last doc name /storage/0450/doc_00261050 to /storage/kkm_last_doc_name [02:31:57]save OK [02:31:57]Clear old archive folders... [02:31:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:31:57]tlvbuf is 00A4C200 [02:31:57]SAM_PROTO_ClearQueue [02:31:57]wFMCommunicate request_size=4 [02:31:57]MH_SAM_APDU [02:31:57]CAPDU: 80 09 00 00 [02:31:57]Write to MH i2c: E2 08 00 AA 06 80 09 00 00 00 00 00 00 22 [02:31:57]Write i2c OK [02:31:57]MH_I2C_Read... [02:31:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:31:57]Read from MH i2c: E2 [02:31:57]MH_I2C_Read... [02:31:57]Read from MH i2c: E2 03 00 [02:31:57]MH_I2C_Read... [02:31:57]Read from MH i2c: E2 03 00 AA 06 00 90 00 24 [02:31:57]RAPDU: 90 00 [02:31:57]wFMCommunicate OK [02:31:57]SAM_PROTO_ClearQueue done [02:31:57]KKMCreateOFDPacket [02:31:57]OFDProtocolAddRootSTLVToBuf [02:31:57]FM_MakeSignedData [02:31:57]FM_MakeSignedData [02:31:57]SAM_PROTO_SignData [02:31:57]wFMCommunicate request_size=4 [02:31:57]MH_SAM_APDU [02:31:57]CAPDU: 80 0D 01 02 [02:31:57]Write to MH i2c: E2 08 00 AB 06 80 0D 01 02 00 00 00 00 2A [02:31:57]Write i2c OK [02:31:57]MH_I2C_Read... [02:31:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:31:57]Read from MH i2c: E2 [02:31:57]MH_I2C_Read... [02:31:57]Read from MH i2c: E2 03 00 [02:31:57]MH_I2C_Read... [02:31:57]Read from MH i2c: E2 03 00 AB 06 00 90 00 25 [02:31:57]RAPDU: 90 00 [02:31:57]wFMCommunicate OK [02:31:57]wFMCommunicate request_size=255 [02:31:57]MH_SAM_APDU [02:31:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 9D AE C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BA FB 03 00 35 04 06 00 69 [02:31:57]Write to MH i2c: E2 02 01 AC 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 9D AE C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BA FB 03 00 35 04 06 00 69 00 00 D9 [02:31:57]Write i2c OK [02:31:57]MH_I2C_Read... [02:31:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:31:57]Read from MH i2c: E2 [02:31:57]MH_I2C_Read... [02:31:57]Read from MH i2c: E2 03 00 [02:31:57]MH_I2C_Read... [02:31:57]Read from MH i2c: E2 03 00 AC 06 00 90 00 26 [02:31:57]RAPDU: 90 00 [02:31:57]wFMCommunicate OK [02:31:57]wFMCommunicate request_size=10 [02:31:57]MH_SAM_APDU [02:31:57]CAPDU: 80 0D 02 02 05 24 73 31 21 82 [02:31:57]Write to MH i2c: E2 0D 00 AD 06 80 0D 02 02 05 00 24 73 31 21 82 00 00 A2 [02:31:57]Write i2c OK [02:31:57]MH_I2C_Read... [02:31:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:31:57]Read from MH i2c: E2 [02:31:57]MH_I2C_Read... [02:31:57]Read from MH i2c: E2 03 00 [02:31:57]MH_I2C_Read... [02:31:57]Read from MH i2c: E2 03 00 AD 06 00 90 00 27 [02:31:57]RAPDU: 90 00 [02:31:57]wFMCommunicate OK [02:31:57]wFMCommunicate request_size=4 [02:31:57]MH_SAM_APDU [02:31:57]CAPDU: 80 0D 03 02 [02:31:57]Write to MH i2c: E2 08 00 AE 06 80 0D 03 02 00 00 00 00 2F [02:31:57]Write i2c OK [02:31:57]MH_I2C_Read... [02:31:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:31:58]Read from MH i2c: E2 [02:31:58]MH_I2C_Read... [02:31:58]Read from MH i2c: E2 0B 00 [02:31:58]MH_I2C_Read... [02:31:58]Read from MH i2c: E2 0B 00 AE 06 00 3F 5E 1B 78 63 50 06 92 90 00 AB [02:31:58]RAPDU: 3F 5E 1B 78 63 50 06 92 90 00 [02:31:58]wFMCommunicate OK [02:31:58]SAM_PROTO_SignData done [02:31:58]FM_MakeSignedData done [02:31:58]CreateOFDProtocolMessage [02:31:58]wFMCommunicate request_size=4 [02:31:58]MH_SAM_APDU [02:31:58]CAPDU: 80 11 00 00 [02:31:58]Write to MH i2c: E2 08 00 AF 06 80 11 00 00 00 00 00 00 2F [02:31:58]Write i2c OK [02:31:58]MH_I2C_Read... [02:31:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:31:58]Read from MH i2c: E2 [02:31:58]MH_I2C_Read... [02:31:58]Read from MH i2c: E2 17 00 [02:31:58]MH_I2C_Read... [02:31:58]Read from MH i2c: E2 17 00 AF 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 7C [02:31:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [02:31:58]wFMCommunicate OK [02:31:58]CreateOFDProtocolMessage done [02:31:58]OFDSenderStorePacket 261050 [02:31:58]StoreOFDPacket docnum=261050 [02:31:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 FB 4E 07 01 1E 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 9D AE C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BA FB 03 00 35 04 06 00 69 24 73 31 21 82 3F 5E 1B 78 63 50 06 92 [02:31:58]CheckFolder [02:31:58]dirname=/storage/ofd_packets [02:31:58]CheckFolder done [02:31:58]ProducePacketName [02:31:58]name=ofd_packets/00261050 [02:31:58]NVStorageSaveData ofd_packets/00261050 [02:31:58]File name is /storage/ofd_packets/00261050 [02:31:58]Write 301 bytes [02:31:58]NVStorageSaveData done [02:31:58]OFDSenderStorePacket done [02:31:58]KKMCreateOFDPacket done [02:31:58]NVStorageSaveData kkm_last_timestamp [02:31:58]File name is /storage/kkm_last_timestamp [02:31:58]Write 4 bytes [02:31:58]NVStorageSaveData done [02:31:58]ExternCall_PrintAddStr [02:31:58]wPrintStart [02:31:58]Write to MH i2c: 01 00 00 B0 06 B6 [02:31:58]Write i2c OK [02:31:58]MH_I2C_Read... [02:31:58]Read from MH i2c: 01 [02:31:58]MH_I2C_Read... [02:31:58]Read from MH i2c: 01 07 00 [02:31:58]MH_I2C_Read... [02:31:58]Read from MH i2c: 01 07 00 B0 06 00 00 00 00 00 FF 0F CB [02:31:58]RasterBufferAndPrint [02:31:58]line Счет N : (1)1036603 [02:31:58]line ИНН: 02508201610067 [02:31:58]line Контрольно-Кассовый Чек [02:31:58]line ПРОДАЖА [02:31:58]line ТРК (МРК, ГНК) : 32 [02:31:58]line Товар: 2710124130 [02:31:58]line Аи-92-К-5 [02:31:58]line 22.130 * 67.80 [02:31:58]line = 1500.41 [02:31:58]line НДС 12% НСП 1% [02:31:58]line > о реализуемом товаре [02:31:58]line ИТОГО: 1500.41 [02:31:58]line НСП 1% : 13.28 [02:31:58]line НДС 12% : 159.34 [02:31:58]line Наличными: 0.00 [02:31:58]line Безнал.: 1500.41 [02:31:58]line Место: АЗС № 94 "Партнер Нефть" [02:31:58]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [02:31:58]line СНО: Общий режим [02:31:58]line Чек 18 19.08.2024 02:31 [02:31:58]line Смена: 450 ФФД: 1.0 [02:31:58]line ЗНМ: 0300000099 [02:31:58]line РНМ: 0000000000091865 [02:31:58]line Версия ККМ: 001 [02:31:58]line Платежная система: O! деньги [02:31:58]line ФМ: 0000000000871820 [02:31:58]line ФД: 261050 [02:31:58]line ФПД: 115605272338818 [02:31:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T023157&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261050&fm=115605272338818&tin=02508201610067®Number=0000000000091865&sum=150041 [02:31:58]OFD Sender: Processing packet 261050 [packets to send 192, broken 191] [02:31:58]ProducePacketName [02:31:58]name=ofd_packets/00261050 [02:31:58]OFD Sender: To server: pG, [02:31:58]CommunicateWithHost lk.salyk.kg:30040 [02:31:58]ConnectInit lk.salyk.kg [02:31:58]written 0, free lines is 4095 [02:31:58]Connected sock=10 [02:31: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 30 0F 01 00 00 FB 4E 07 01 1E 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 9D AE C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BA FB 03 00 35 04 06 00 69 24 73 31 21 82 3F 5E 1B 78 63 50 06 92 [02:31: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 30 4F 00 00 00 52 DB 47 00 F5 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BA FB 03 00 F4 03 04 00 F0 57 C2 66 B6 04 01 00 00 79 94 74 D5 F7 71 6E D2 [02:31:58]CommunicateWithHost err = 0 [02:31:58]CheckOFDResponse [02:31:58]1017 (14) - 77093643461234 [02:31:58]1041 (16) - 0000000000871820 [02:31:58]1040 (4) - 261050 [02:31:58]1012 (4) - 18.08.2024 20:22 [02:31:58]1206 (1) - 0 [02:31:58]OFD Sender: Remove packet 261050 [02:31:58]ProducePacketName [02:31:58]name=ofd_packets/00261050 [02:31:58]NVStorageDeleteData [02:31:58]Write to MH i2c: 01 00 00 DA 06 E0 [02:31:58]Write i2c OK [02:31:58]MH_I2C_Read... [02:31:58]Read from MH i2c: 01 [02:31:58]MH_I2C_Read... [02:31:58]Read from MH i2c: 01 07 00 [02:31:58]MH_I2C_Read... [02:31:58]Read from MH i2c: 01 07 00 DA 06 00 00 00 00 00 83 0C 76 [02:31:58]RasterBufferAndPrint [02:31:58]line [02:31:58]line [02:31:58]line [02:31:58]line [02:31:58]line [02:31:58]written 0, free lines is 3207 [02:31:58]MH_Cut [02:31:58]Write to MH i2c: D1 01 00 E1 06 01 B9 [02:31:58]Write i2c OK [02:31:58]MH_I2C_Read... [02:31:58]Read from MH i2c: D1 [02:31:58]MH_I2C_Read... [02:31:58]Read from MH i2c: D1 01 00 [02:31:58]MH_I2C_Read... [02:31:58]Read from MH i2c: D1 01 00 E1 06 00 B8 [02:31:58]Write to MH i2c: 01 00 00 E2 06 E8 [02:31:58]Write i2c OK [02:31:58]MH_I2C_Read... [02:31:59]OFD Sender: No OFD packet to send [02:32:00]*** Cut start [02:32:00]*** Purtial cut [02:32:00]*** Stage 1: CUTSNS_PIN = 1 [02:32:02]Read from MH i2c: 01 [02:32:02]MH_I2C_Read... [02:32:02]*** Stop cut motor [02:32:02]*** Cut end [02:32:02]Read from MH i2c: 01 07 00 [02:32:02]MH_I2C_Read... [02:32:02]Read from MH i2c: 01 07 00 E2 06 00 00 00 00 00 FF 0F FD [02:32:02]process_action close_receipt done [02:32:02]requested_data is exist [02:32:02]produce_requested_data [02:32:02]requested_item fm.sn is exist - process it [02:32:02]wFMCommunicate request_size=4 [02:32:02]MH_SAM_APDU [02:32:02]CAPDU: 80 11 00 00 [02:32:02]Write to MH i2c: E2 08 00 E3 06 80 11 00 00 00 00 00 00 63 [02:32:02]Write i2c OK [02:32:02]MH_I2C_Read... [02:32:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:32:02]Read from MH i2c: E2 [02:32:02]MH_I2C_Read... [02:32:02]Read from MH i2c: E2 17 00 [02:32:02]MH_I2C_Read... [02:32:02]Read from MH i2c: E2 17 00 E3 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 B0 [02:32:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [02:32:02]wFMCommunicate OK [02:32:02]requested_item fd.num is exist - process it [02:32:02]SAM_PROTO_GetFieldsCounters [02:32:02]wFMCommunicate request_size=4 [02:32:02]MH_SAM_APDU [02:32:02]CAPDU: 80 13 00 00 [02:32:02]Write to MH i2c: E2 08 00 E4 06 80 13 00 00 00 00 00 00 66 [02:32:02]Write i2c OK [02:32:02]MH_I2C_Read... [02:32:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:32:02]Read from MH i2c: E2 [02:32:02]MH_I2C_Read... [02:32:02]Read from MH i2c: E2 62 00 [02:32:02]MH_I2C_Read... [02:32:02]Read from MH i2c: E2 62 00 E4 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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 BA FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [02:32: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 BA FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:32:02]wFMCommunicate OK [02:32:02]SAM_PROTO_GetFieldsCounters done [02:32:02]requested_item shift.num is exist - process it [02:32:02]requested_item shift.opened is exist - process it [02:32:02]req_shift_opened [02:32:02]FM_GetShiftState [02:32:02]SAM_PROTO_GetShiftState [02:32:02]wFMCommunicate request_size=4 [02:32:02]MH_SAM_APDU [02:32:02]CAPDU: 80 13 01 00 [02:32:02]Write to MH i2c: E2 08 00 E5 06 80 13 01 00 00 00 00 00 68 [02:32:02]Write i2c OK [02:32:02]MH_I2C_Read... [02:32:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:32:02]Read from MH i2c: E2 [02:32:02]MH_I2C_Read... [02:32:02]Read from MH i2c: E2 0E 00 [02:32:02]MH_I2C_Read... [02:32:02]Read from MH i2c: E2 0E 00 E5 06 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 FE [02:32:02]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [02:32:02]wFMCommunicate OK [02:32:02]SAM_PROTO_GetShiftState done [02:32:02]FM_GetShiftState done [02:32:02]req_shift_opened done [02:32:02]requested_item shift.open_date is exist - process it [02:32:02]req_shift_open_date [02:32:02]req_shift_open_date done [02:32:02]produce_requested_data done [02:32:02]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261050,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600} [02:32:02]process_action_free close_receipt [02:32:02]json_value_free [02:32:02]json_value_free done [02:32:02]process_json_proto returns [02:32:02]Send response to host [02:32:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261050,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600}}} [02:32:02]free response buf [02:32:02]execute_script done [02:32:02]execute_script returns [02:32:02]free content buf [02:32:02]Sock 7.Close socket [02:32:02]Sock 7.Thread stoped [02:32:04]OFD Sender: No OFD packet to send [02:32:09]OFD Sender: No OFD packet to send [02:32:14]OFD Sender: No OFD packet to send [02:32:16]accept exits with 9 [02:32:16]New connection [02:32:16]New thread 3067104612 created [02:32:16]Thread 3067247972 joined [02:32:16]Waiting for new connection... [02:32:16] Sock 9.Parse request [02:32:16]Sock 9.Check first char [02:32:16]Sock 9.First char is OK [02:32:16]request: POST /json_proto HTTP/1.0 [02:32:16]Method: POST [02:32:16]URL: /json_proto [02:32:16]Method is POST - this is cgi request [02:32:16]url: /json_proto [02:32:16]query_string will be loaded in cgi processing [02:32:16]execute_cgi json_proto POST (null) [02:32:16]execute_cgi path=json_proto method=POST [02:32:16]POST find Content-Length [02:32:16]Host: 172.17.55.133:8080 [02:32:16]Content-Length: 678 [02:32:16]Content-Type: application/json [02:32:16] [02:32:16]POST finish read [02:32:16]Found Content-Length = 678 [02:32:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036604", "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" : 74.20, "quantity" : 5.400, "sum" : 400.68, "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" ] } } [02:32:16]execute_script... [02:32: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)1036604", "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" : 74.20, "quantity" : 5.400, "sum" : 400.68, "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" ] } } [02:32:16]POST & json_proto [02:32:16]process_json_proto [02:32:16]json parsed OK: [02:32:16]protocol is kg_v1.0 [02:32:16]action value=close_receipt [02:32:16]process_action close_receipt [02:32:16]cmd_close_receipt [02:32:16]MH_GetDate [02:32:16]Write to MH i2c: F0 00 00 E6 06 DB [02:32:16]Write i2c OK [02:32:16]MH_I2C_Read... [02:32:16]Read from MH i2c: F0 [02:32:16]MH_I2C_Read... [02:32:16]Read from MH i2c: F0 09 00 [02:32:16]MH_I2C_Read... [02:32:16]Read from MH i2c: F0 09 00 E6 06 00 B1 AE C2 66 34 48 D8 65 24 [02:32:16]GetLastDocTimeStamp 1724034717 [02:32:16]current date 1724034737 [02:32:16]FM_GetShiftState [02:32:16]SAM_PROTO_GetShiftState [02:32:16]wFMCommunicate request_size=4 [02:32:16]MH_SAM_APDU [02:32:16]CAPDU: 80 13 01 00 [02:32:16]Write to MH i2c: E2 08 00 E7 06 80 13 01 00 00 00 00 00 6A [02:32:16]Write i2c OK [02:32:16]MH_I2C_Read... [02:32:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:32:16]Read from MH i2c: E2 [02:32:16]MH_I2C_Read... [02:32:16]Read from MH i2c: E2 0E 00 [02:32:16]MH_I2C_Read... [02:32:16]Read from MH i2c: E2 0E 00 E7 06 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 00 [02:32:16]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [02:32:16]wFMCommunicate OK [02:32:16]SAM_PROTO_GetShiftState done [02:32:16]FM_GetShiftState done [02:32:16]opened in 1724027600 [02:32:16]opened+sec_in_day 1724114000 [02:32:16]quantity*price = 40068 [02:32:16]sum+1 = 40069 [02:32:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 19 19.08.2024 02:32 Смена: 450 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261051 ФПД: 80086099107452 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T023217&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261051&fm=80086099107452&tin=02508201610067®Number=0000000000091865&sum=40000 [02:32:17]StoreToDocumentArchive [02:32:17]shift 450 fd 261051 [02:32:17]save to /storage/0450/doc_00261051 [02:32:17]save last doc name /storage/0450/doc_00261051 to /storage/kkm_last_doc_name [02:32:17]save OK [02:32:17]Clear old archive folders... [02:32:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:32:17]tlvbuf is 00A307E0 [02:32:17]SAM_PROTO_ClearQueue [02:32:17]wFMCommunicate request_size=4 [02:32:17]MH_SAM_APDU [02:32:17]CAPDU: 80 09 00 00 [02:32:17]Write to MH i2c: E2 08 00 F4 06 80 09 00 00 00 00 00 00 6C [02:32:17]Write i2c OK [02:32:17]MH_I2C_Read... [02:32:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:32:17]Read from MH i2c: E2 [02:32:17]MH_I2C_Read... [02:32:17]Read from MH i2c: E2 03 00 [02:32:17]MH_I2C_Read... [02:32:17]Read from MH i2c: E2 03 00 F4 06 00 90 00 6E [02:32:17]RAPDU: 90 00 [02:32:17]wFMCommunicate OK [02:32:17]SAM_PROTO_ClearQueue done [02:32:17]KKMCreateOFDPacket [02:32:17]OFDProtocolAddRootSTLVToBuf [02:32:17]FM_MakeSignedData [02:32:17]FM_MakeSignedData [02:32:17]SAM_PROTO_SignData [02:32:17]wFMCommunicate request_size=4 [02:32:17]MH_SAM_APDU [02:32:17]CAPDU: 80 0D 01 02 [02:32:17]Write to MH i2c: E2 08 00 F5 06 80 0D 01 02 00 00 00 00 74 [02:32:17]Write i2c OK [02:32:17]MH_I2C_Read... [02:32:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:32:18]Read from MH i2c: E2 [02:32:18]MH_I2C_Read... [02:32:18]Read from MH i2c: E2 03 00 [02:32:18]MH_I2C_Read... [02:32:18]Read from MH i2c: E2 03 00 F5 06 00 90 00 6F [02:32:18]RAPDU: 90 00 [02:32:18]wFMCommunicate OK [02:32:18]wFMCommunicate request_size=255 [02:32:18]MH_SAM_APDU [02:32: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 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 13 00 00 00 F4 03 04 00 B1 AE C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BB FB 03 00 35 04 06 00 48 [02:32:18]Write to MH i2c: E2 02 01 F6 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 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 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 13 00 00 00 F4 03 04 00 B1 AE C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BB FB 03 00 35 04 06 00 48 00 00 0E [02:32:18]Write i2c OK [02:32:18]MH_I2C_Read... [02:32:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:32:18]Read from MH i2c: E2 [02:32:18]MH_I2C_Read... [02:32:18]Read from MH i2c: E2 03 00 [02:32:18]MH_I2C_Read... [02:32:18]Read from MH i2c: E2 03 00 F6 06 00 90 00 70 [02:32:18]RAPDU: 90 00 [02:32:18]wFMCommunicate OK [02:32:18]wFMCommunicate request_size=10 [02:32:18]MH_SAM_APDU [02:32:18]CAPDU: 80 0D 02 02 05 D6 7F 7D 1E 7C [02:32:18]Write to MH i2c: E2 0D 00 F7 06 80 0D 02 02 05 00 D6 7F 7D 1E 7C 00 00 ED [02:32:18]Write i2c OK [02:32:18]MH_I2C_Read... [02:32:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:32:18]Read from MH i2c: E2 [02:32:18]MH_I2C_Read... [02:32:18]Read from MH i2c: E2 03 00 [02:32:18]MH_I2C_Read... [02:32:18]Read from MH i2c: E2 03 00 F7 06 00 90 00 71 [02:32:18]RAPDU: 90 00 [02:32:18]wFMCommunicate OK [02:32:18]wFMCommunicate request_size=4 [02:32:18]MH_SAM_APDU [02:32:18]CAPDU: 80 0D 03 02 [02:32:18]Write to MH i2c: E2 08 00 F8 06 80 0D 03 02 00 00 00 00 79 [02:32:18]Write i2c OK [02:32:18]MH_I2C_Read... [02:32:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:32:18]Read from MH i2c: E2 [02:32:18]MH_I2C_Read... [02:32:18]Read from MH i2c: E2 0B 00 [02:32:18]MH_I2C_Read... [02:32:18]Read from MH i2c: E2 0B 00 F8 06 00 A9 A2 95 2A C1 CD 71 C4 90 00 47 [02:32:18]RAPDU: A9 A2 95 2A C1 CD 71 C4 90 00 [02:32:18]wFMCommunicate OK [02:32:18]SAM_PROTO_SignData done [02:32:18]FM_MakeSignedData done [02:32:18]CreateOFDProtocolMessage [02:32:18]wFMCommunicate request_size=4 [02:32:18]MH_SAM_APDU [02:32:18]CAPDU: 80 11 00 00 [02:32:18]Write to MH i2c: E2 08 00 F9 06 80 11 00 00 00 00 00 00 79 [02:32:18]Write i2c OK [02:32:18]MH_I2C_Read... [02:32:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:32:18]Read from MH i2c: E2 [02:32:18]MH_I2C_Read... [02:32:18]Read from MH i2c: E2 17 00 [02:32:18]MH_I2C_Read... [02:32:18]Read from MH i2c: E2 17 00 F9 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 C6 [02:32:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [02:32:18]wFMCommunicate OK [02:32:18]CreateOFDProtocolMessage done [02:32:18]OFDSenderStorePacket 261051 [02:32:18]StoreOFDPacket docnum=261051 [02:32:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 50 FE 07 01 FD 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 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 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 13 00 00 00 F4 03 04 00 B1 AE C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BB FB 03 00 35 04 06 00 48 D6 7F 7D 1E 7C A9 A2 95 2A C1 CD 71 C4 [02:32:18]CheckFolder [02:32:18]dirname=/storage/ofd_packets [02:32:18]CheckFolder done [02:32:18]ProducePacketName [02:32:18]name=ofd_packets/00261051 [02:32:18]NVStorageSaveData ofd_packets/00261051 [02:32:18]File name is /storage/ofd_packets/00261051 [02:32:18]Write 301 bytes [02:32:18]NVStorageSaveData done [02:32:18]OFDSenderStorePacket done [02:32:18]KKMCreateOFDPacket done [02:32:18]NVStorageSaveData kkm_last_timestamp [02:32:18]File name is /storage/kkm_last_timestamp [02:32:18]Write 4 bytes [02:32:18]NVStorageSaveData done [02:32:18]ExternCall_PrintAddStr [02:32:18]wPrintStart [02:32:18]Write to MH i2c: 01 00 00 FA 06 00 [02:32:18]Write i2c OK [02:32:18]MH_I2C_Read... [02:32:18]Read from MH i2c: 01 [02:32:18]MH_I2C_Read... [02:32:18]Read from MH i2c: 01 07 00 [02:32:18]MH_I2C_Read... [02:32:18]Read from MH i2c: 01 07 00 FA 06 00 00 00 00 00 FF 0F 15 [02:32:18]RasterBufferAndPrint [02:32:18]line Счет N : (1)1036604 [02:32:18]line ИНН: 02508201610067 [02:32:18]line Контрольно-Кассовый Чек [02:32:18]line ПРОДАЖА [02:32:18]line ТРК (МРК, ГНК) : 23 [02:32:18]line Товар: 2710124500 [02:32:18]line Аи-95-К-5 [02:32:18]line 5.400 * 74.20 [02:32:18]line = 400.68 [02:32:18]line НДС 12% НСП 1% [02:32:18]line > о реализуемом товаре [02:32:18]line ОКРУГЛЕНИЕ: -0.68 [02:32:18]line ИТОГО: 400.00 [02:32:18]line Внесено: 400.00 [02:32:18]line СДАЧА: 0.00 [02:32:18]line НСП 1% : 3.55 [02:32:18]line НДС 12% : 42.55 [02:32:18]line Наличными: 400.00 [02:32:18]line Безнал.: 0.00 [02:32:18]line Место: АЗС № 94 "Партнер Нефть" [02:32:18]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [02:32:18]line СНО: Общий режим [02:32:18]line Чек 19 19.08.2024 02:32 [02:32:18]line Смена: 450 ФФД: 1.0 [02:32:18]line ЗНМ: 0300000099 [02:32:18]line РНМ: 0000000000091865 [02:32:18]line Версия ККМ: 001 [02:32:18]line ФМ: 0000000000871820 [02:32:18]line ФД: 261051 [02:32:18]line ФПД: 80086099107452 [02:32:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T023217&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261051&fm=80086099107452&tin=02508201610067®Number=0000000000091865&sum=40000 [02:32:18]written 0, free lines is 4095 [02:32:18]OFD Sender: Processing packet 261051 [packets to send 192, broken 191] [02:32:18]ProducePacketName [02:32:18]name=ofd_packets/00261051 [02:32:18]OFD Sender: To server: pG, [02:32:18]CommunicateWithHost lk.salyk.kg:30040 [02:32:18]ConnectInit lk.salyk.kg [02:32:18]Connected sock=10 [02:32: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 30 0F 01 00 00 50 FE 07 01 FD 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 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 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 13 00 00 00 F4 03 04 00 B1 AE C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BB FB 03 00 35 04 06 00 48 D6 7F 7D 1E 7C A9 A2 95 2A C1 CD 71 C4 [02:32: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 30 4F 00 00 00 67 7D 47 00 C7 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BB FB 03 00 F4 03 04 00 04 58 C2 66 B6 04 01 00 00 C5 D2 27 79 B1 50 ED 8C [02:32:19]CommunicateWithHost err = 0 [02:32:19]CheckOFDResponse [02:32:19]1017 (14) - 77093643461234 [02:32:19]1041 (16) - 0000000000871820 [02:32:19]1040 (4) - 261051 [02:32:19]1012 (4) - 18.08.2024 20:22 [02:32:19]1206 (1) - 0 [02:32:19]OFD Sender: Remove packet 261051 [02:32:19]ProducePacketName [02:32:19]name=ofd_packets/00261051 [02:32:19]NVStorageDeleteData [02:32:19]Write to MH i2c: 01 00 00 25 07 2C [02:32:19]Write i2c OK [02:32:19]MH_I2C_Read... [02:32:19]Read from MH i2c: 01 [02:32:19]MH_I2C_Read... [02:32:19]Read from MH i2c: 01 07 00 [02:32:19]MH_I2C_Read... [02:32:19]Read from MH i2c: 01 07 00 25 07 00 00 00 00 00 6F 0C AE [02:32:19]RasterBufferAndPrint [02:32:19]line [02:32:19]line [02:32:19]line [02:32:19]line [02:32:19]line [02:32:19]written 0, free lines is 3186 [02:32:19]MH_Cut [02:32:19]Write to MH i2c: D1 01 00 2C 07 01 05 [02:32:19]Write i2c OK [02:32:19]MH_I2C_Read... [02:32:19]Read from MH i2c: D1 [02:32:19]MH_I2C_Read... [02:32:19]Read from MH i2c: D1 01 00 [02:32:19]MH_I2C_Read... [02:32:19]Read from MH i2c: D1 01 00 2C 07 00 04 [02:32:19]Write to MH i2c: 01 00 00 2D 07 34 [02:32:19]Write i2c OK [02:32:19]MH_I2C_Read... [02:32:19]OFD Sender: No OFD packet to send [02:32:20]*** Cut start [02:32:20]*** Purtial cut [02:32:20]*** Stage 1: CUTSNS_PIN = 1 [02:32:22]Read from MH i2c: 01 [02:32:22]MH_I2C_Read... [02:32:22]*** Stop cut motor [02:32:22]*** Cut end [02:32:22]Read from MH i2c: 01 07 00 [02:32:22]MH_I2C_Read... [02:32:22]Read from MH i2c: 01 07 00 2D 07 00 00 00 00 00 FF 0F 49 [02:32:22]process_action close_receipt done [02:32:22]requested_data is exist [02:32:22]produce_requested_data [02:32:22]requested_item fm.sn is exist - process it [02:32:22]wFMCommunicate request_size=4 [02:32:22]MH_SAM_APDU [02:32:22]CAPDU: 80 11 00 00 [02:32:22]Write to MH i2c: E2 08 00 2E 07 80 11 00 00 00 00 00 00 AF [02:32:22]Write i2c OK [02:32:22]MH_I2C_Read... [02:32:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:32:22]Read from MH i2c: E2 [02:32:22]MH_I2C_Read... [02:32:22]Read from MH i2c: E2 17 00 [02:32:22]MH_I2C_Read... [02:32:22]Read from MH i2c: E2 17 00 2E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 FC [02:32:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [02:32:22]wFMCommunicate OK [02:32:22]requested_item fd.num is exist - process it [02:32:22]SAM_PROTO_GetFieldsCounters [02:32:22]wFMCommunicate request_size=4 [02:32:22]MH_SAM_APDU [02:32:22]CAPDU: 80 13 00 00 [02:32:22]Write to MH i2c: E2 08 00 2F 07 80 13 00 00 00 00 00 00 B2 [02:32:22]Write i2c OK [02:32:22]MH_I2C_Read... [02:32:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:32:22]Read from MH i2c: E2 [02:32:22]MH_I2C_Read... [02:32:22]Read from MH i2c: E2 62 00 [02:32:22]MH_I2C_Read... [02:32:22]Read from MH i2c: E2 62 00 2F 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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 BB FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [02:32: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 BB FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:32:22]wFMCommunicate OK [02:32:22]SAM_PROTO_GetFieldsCounters done [02:32:22]requested_item shift.num is exist - process it [02:32:22]requested_item shift.opened is exist - process it [02:32:22]req_shift_opened [02:32:22]FM_GetShiftState [02:32:22]SAM_PROTO_GetShiftState [02:32:22]wFMCommunicate request_size=4 [02:32:22]MH_SAM_APDU [02:32:22]CAPDU: 80 13 01 00 [02:32:22]Write to MH i2c: E2 08 00 30 07 80 13 01 00 00 00 00 00 B4 [02:32:22]Write i2c OK [02:32:22]MH_I2C_Read... [02:32:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:32:22]Read from MH i2c: E2 [02:32:22]MH_I2C_Read... [02:32:22]Read from MH i2c: E2 0E 00 [02:32:22]MH_I2C_Read... [02:32:22]Read from MH i2c: E2 0E 00 30 07 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 4A [02:32:22]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [02:32:22]wFMCommunicate OK [02:32:22]SAM_PROTO_GetShiftState done [02:32:22]FM_GetShiftState done [02:32:22]req_shift_opened done [02:32:22]requested_item shift.open_date is exist - process it [02:32:22]req_shift_open_date [02:32:22]req_shift_open_date done [02:32:22]produce_requested_data done [02:32:22]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261051,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600} [02:32:22]process_action_free close_receipt [02:32:22]json_value_free [02:32:22]json_value_free done [02:32:22]process_json_proto returns [02:32:22]Send response to host [02:32:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261051,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600}}} [02:32:22]free response buf [02:32:22]execute_script done [02:32:22]execute_script returns [02:32:22]free content buf [02:32:22]Sock 9.Close socket [02:32:22]Sock 9.Thread stoped [02:32:24]OFD Sender: No OFD packet to send [02:32:29]OFD Sender: No OFD packet to send [02:32:34]OFD Sender: No OFD packet to send [02:32:39]OFD Sender: No OFD packet to send [02:32:44]OFD Sender: No OFD packet to send [02:32:49]OFD Sender: No OFD packet to send [02:32:54]OFD Sender: No OFD packet to send [02:32:59]OFD Sender: No OFD packet to send [02:33:04]OFD Sender: No OFD packet to send [02:33:09]OFD Sender: No OFD packet to send [02:33:14]OFD Sender: No OFD packet to send [02:33:19]OFD Sender: No OFD packet to send [02:33:24]OFD Sender: No OFD packet to send [02:33:29]OFD Sender: No OFD packet to send [02:33:34]OFD Sender: No OFD packet to send [02:33:39]OFD Sender: No OFD packet to send [02:33:44]OFD Sender: No OFD packet to send [02:33:49]OFD Sender: No OFD packet to send [02:33:54]OFD Sender: No OFD packet to send [02:33:59]OFD Sender: No OFD packet to send [02:34:04]OFD Sender: No OFD packet to send [02:34:09]OFD Sender: No OFD packet to send [02:34:14]OFD Sender: No OFD packet to send [02:34:19]OFD Sender: No OFD packet to send [02:34:24]OFD Sender: No OFD packet to send [02:34:29]OFD Sender: No OFD packet to send [02:34:34]OFD Sender: No OFD packet to send [02:34:39]OFD Sender: No OFD packet to send [02:34:44]OFD Sender: No OFD packet to send [02:34:49]OFD Sender: No OFD packet to send [02:34:54]OFD Sender: No OFD packet to send [02:34:59]OFD Sender: No OFD packet to send [02:35:02]accept exits with 7 [02:35:02]New connection [02:35:02]New thread 3067247972 created [02:35:02]Thread 3067104612 joined [02:35:02]Waiting for new connection... [02:35:02] Sock 7.Parse request [02:35:02]Sock 7.Check first char [02:35:02]Sock 7.First char is OK [02:35:02]request: POST /json_proto HTTP/1.0 [02:35:02]Method: POST [02:35:02]URL: /json_proto [02:35:02]Method is POST - this is cgi request [02:35:02]url: /json_proto [02:35:02]query_string will be loaded in cgi processing [02:35:02]execute_cgi json_proto POST (null) [02:35:02]execute_cgi path=json_proto method=POST [02:35:02]POST find Content-Length [02:35:02]Host: 172.17.55.133:8080 [02:35:02]Content-Length: 801 [02:35:02]Content-Type: application/json [02:35:02] [02:35:02]POST finish read [02:35:02]Found Content-Length = 801 [02:35:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:35:02]execute_script... [02:35: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)1036605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:35:02]POST & json_proto [02:35:02]process_json_proto [02:35:02]json parsed OK: [02:35:02]protocol is kg_v1.0 [02:35:02]action value=close_receipt [02:35:02]process_action close_receipt [02:35:02]cmd_close_receipt [02:35:02]MH_GetDate [02:35:02]Write to MH i2c: F0 00 00 31 07 27 [02:35:02]Write i2c OK [02:35:02]MH_I2C_Read... [02:35:02]Read from MH i2c: F0 [02:35:02]MH_I2C_Read... [02:35:02]Read from MH i2c: F0 09 00 [02:35:02]MH_I2C_Read... [02:35:02]Read from MH i2c: F0 09 00 31 07 00 57 AF C2 66 34 48 D8 65 17 [02:35:02]GetLastDocTimeStamp 1724034737 [02:35:02]current date 1724034903 [02:35:02]FM_GetShiftState [02:35:02]SAM_PROTO_GetShiftState [02:35:02]wFMCommunicate request_size=4 [02:35:02]MH_SAM_APDU [02:35:02]CAPDU: 80 13 01 00 [02:35:02]Write to MH i2c: E2 08 00 32 07 80 13 01 00 00 00 00 00 B6 [02:35:02]Write i2c OK [02:35:02]MH_I2C_Read... [02:35:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:35:02]Read from MH i2c: E2 [02:35:02]MH_I2C_Read... [02:35:02]Read from MH i2c: E2 0E 00 [02:35:02]MH_I2C_Read... [02:35:02]Read from MH i2c: E2 0E 00 32 07 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 4C [02:35:02]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [02:35:02]wFMCommunicate OK [02:35:02]SAM_PROTO_GetShiftState done [02:35:02]FM_GetShiftState done [02:35:02]opened in 1724027600 [02:35:02]opened+sec_in_day 1724114000 [02:35:02]quantity*price = 60003 [02:35:02]sum+1 = 60004 [02:35:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.03 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.03 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 20 19.08.2024 02:35 Смена: 450 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871820 ФД: 261052 ФПД: 40211269874675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T023503&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261052&fm=40211269874675&tin=02508201610067®Number=0000000000091865&sum=60003 [02:35:03]StoreToDocumentArchive [02:35:03]shift 450 fd 261052 [02:35:03]save to /storage/0450/doc_00261052 [02:35:03]save last doc name /storage/0450/doc_00261052 to /storage/kkm_last_doc_name [02:35:03]save OK [02:35:03]Clear old archive folders... [02:35:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:35:03]tlvbuf is 00A4BD60 [02:35:03]SAM_PROTO_ClearQueue [02:35:03]wFMCommunicate request_size=4 [02:35:03]MH_SAM_APDU [02:35:03]CAPDU: 80 09 00 00 [02:35:03]Write to MH i2c: E2 08 00 3F 07 80 09 00 00 00 00 00 00 B8 [02:35:03]Write i2c OK [02:35:03]MH_I2C_Read... [02:35:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:35:03]Read from MH i2c: E2 [02:35:03]MH_I2C_Read... [02:35:03]Read from MH i2c: E2 03 00 [02:35:03]MH_I2C_Read... [02:35:03]Read from MH i2c: E2 03 00 3F 07 00 90 00 BA [02:35:03]RAPDU: 90 00 [02:35:03]wFMCommunicate OK [02:35:03]SAM_PROTO_ClearQueue done [02:35:03]KKMCreateOFDPacket [02:35:03]OFDProtocolAddRootSTLVToBuf [02:35:03]FM_MakeSignedData [02:35:03]FM_MakeSignedData [02:35:03]SAM_PROTO_SignData [02:35:03]wFMCommunicate request_size=4 [02:35:03]MH_SAM_APDU [02:35:03]CAPDU: 80 0D 01 02 [02:35:03]Write to MH i2c: E2 08 00 40 07 80 0D 01 02 00 00 00 00 C0 [02:35:03]Write i2c OK [02:35:03]MH_I2C_Read... [02:35:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:35:03]Read from MH i2c: E2 [02:35:03]MH_I2C_Read... [02:35:03]Read from MH i2c: E2 03 00 [02:35:03]MH_I2C_Read... [02:35:03]Read from MH i2c: E2 03 00 40 07 00 90 00 BB [02:35:03]RAPDU: 90 00 [02:35:03]wFMCommunicate OK [02:35:03]wFMCommunicate request_size=255 [02:35:03]MH_SAM_APDU [02:35:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 57 AF C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BC FB 03 00 35 04 06 00 24 [02:35:03]Write to MH i2c: E2 02 01 41 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 57 AF C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BC FB 03 00 35 04 06 00 24 00 00 ED [02:35:03]Write i2c OK [02:35:03]MH_I2C_Read... [02:35:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:35:04]Read from MH i2c: E2 [02:35:04]MH_I2C_Read... [02:35:04]Read from MH i2c: E2 03 00 [02:35:04]MH_I2C_Read... [02:35:04]Read from MH i2c: E2 03 00 41 07 00 90 00 BC [02:35:04]RAPDU: 90 00 [02:35:04]wFMCommunicate OK [02:35:04]wFMCommunicate request_size=10 [02:35:04]MH_SAM_APDU [02:35:04]CAPDU: 80 0D 02 02 05 92 6A 74 F3 F3 [02:35:04]Write to MH i2c: E2 0D 00 42 07 80 0D 02 02 05 00 92 6A 74 F3 F3 00 00 23 [02:35:04]Write i2c OK [02:35:04]MH_I2C_Read... [02:35:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:35:04]Read from MH i2c: E2 [02:35:04]MH_I2C_Read... [02:35:04]Read from MH i2c: E2 03 00 [02:35:04]MH_I2C_Read... [02:35:04]Read from MH i2c: E2 03 00 42 07 00 90 00 BD [02:35:04]RAPDU: 90 00 [02:35:04]wFMCommunicate OK [02:35:04]wFMCommunicate request_size=4 [02:35:04]MH_SAM_APDU [02:35:04]CAPDU: 80 0D 03 02 [02:35:04]Write to MH i2c: E2 08 00 43 07 80 0D 03 02 00 00 00 00 C5 [02:35:04]Write i2c OK [02:35:04]MH_I2C_Read... [02:35:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:35:04]Read from MH i2c: E2 [02:35:04]MH_I2C_Read... [02:35:04]Read from MH i2c: E2 0B 00 [02:35:04]MH_I2C_Read... [02:35:04]Read from MH i2c: E2 0B 00 43 07 00 44 7C 77 91 61 51 24 09 90 00 6D [02:35:04]RAPDU: 44 7C 77 91 61 51 24 09 90 00 [02:35:04]wFMCommunicate OK [02:35:04]SAM_PROTO_SignData done [02:35:04]FM_MakeSignedData done [02:35:04]CreateOFDProtocolMessage [02:35:04]wFMCommunicate request_size=4 [02:35:04]MH_SAM_APDU [02:35:04]CAPDU: 80 11 00 00 [02:35:04]Write to MH i2c: E2 08 00 44 07 80 11 00 00 00 00 00 00 C5 [02:35:04]Write i2c OK [02:35:04]MH_I2C_Read... [02:35:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:35:04]Read from MH i2c: E2 [02:35:04]MH_I2C_Read... [02:35:04]Read from MH i2c: E2 17 00 [02:35:04]MH_I2C_Read... [02:35:04]Read from MH i2c: E2 17 00 44 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 12 [02:35:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [02:35:04]wFMCommunicate OK [02:35:04]CreateOFDProtocolMessage done [02:35:04]OFDSenderStorePacket 261052 [02:35:04]StoreOFDPacket docnum=261052 [02:35:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 38 0A 07 01 76 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 57 AF C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BC FB 03 00 35 04 06 00 24 92 6A 74 F3 F3 44 7C 77 91 61 51 24 09 [02:35:04]CheckFolder [02:35:04]dirname=/storage/ofd_packets [02:35:04]CheckFolder done [02:35:04]ProducePacketName [02:35:04]name=ofd_packets/00261052 [02:35:04]NVStorageSaveData ofd_packets/00261052 [02:35:04]File name is /storage/ofd_packets/00261052 [02:35:04]Write 301 bytes [02:35:04]NVStorageSaveData done [02:35:04]OFDSenderStorePacket done [02:35:04]KKMCreateOFDPacket done [02:35:04]NVStorageSaveData kkm_last_timestamp [02:35:04]File name is /storage/kkm_last_timestamp [02:35:04]Write 4 bytes [02:35:04]NVStorageSaveData done [02:35:04]ExternCall_PrintAddStr [02:35:04]wPrintStart [02:35:04]Write to MH i2c: 01 00 00 45 07 4C [02:35:04]Write i2c OK [02:35:04]MH_I2C_Read... [02:35:04]Read from MH i2c: 01 [02:35:04]MH_I2C_Read... [02:35:04]Read from MH i2c: 01 07 00 [02:35:04]MH_I2C_Read... [02:35:04]Read from MH i2c: 01 07 00 45 07 00 00 00 00 00 FF 0F 61 [02:35:04]RasterBufferAndPrint [02:35:04]line Счет N : (1)1036605 [02:35:04]line ИНН: 02508201610067 [02:35:04]line Контрольно-Кассовый Чек [02:35:04]line ПРОДАЖА [02:35:04]line ТРК (МРК, ГНК) : 22 [02:35:04]line Товар: 2710124130 [02:35:04]line Аи-92-К-5 [02:35:04]line 8.850 * 67.80 [02:35:04]line = 600.03 [02:35:04]line НДС 12% НСП 1% [02:35:04]line > о реализуемом товаре [02:35:04]line ИТОГО: 600.03 [02:35:04]line НСП 1% : 5.31 [02:35:04]line НДС 12% : 63.72 [02:35:04]line Наличными: 0.00 [02:35:04]line Безнал.: 600.03 [02:35:04]line Место: АЗС № 94 "Партнер Нефть" [02:35:04]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [02:35:04]line СНО: Общий режим [02:35:04]line Чек 20 19.08.2024 02:35 [02:35:04]line Смена: 450 ФФД: 1.0 [02:35:04]line ЗНМ: 0300000099 [02:35:04]line РНМ: 0000000000091865 [02:35:04]line Версия ККМ: 001 [02:35:04]line Платежная система: O! деньги [02:35:04]line ФМ: 0000000000871820 [02:35:04]line ФД: 261052 [02:35:04]line ФПД: 40211269874675 [02:35:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T023503&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261052&fm=40211269874675&tin=02508201610067®Number=0000000000091865&sum=60003 [02:35:04]written 0, free lines is 4095 [02:35:04]OFD Sender: Processing packet 261052 [packets to send 192, broken 191] [02:35:04]ProducePacketName [02:35:04]name=ofd_packets/00261052 [02:35:04]OFD Sender: To server: pG, [02:35:04]CommunicateWithHost lk.salyk.kg:30040 [02:35:04]ConnectInit lk.salyk.kg [02:35:04]Connected sock=10 [02:35: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 30 0F 01 00 00 38 0A 07 01 76 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 57 AF C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BC FB 03 00 35 04 06 00 24 92 6A 74 F3 F3 44 7C 77 91 61 51 24 09 [02:35:04]Write to MH i2c: 01 00 00 6F 07 76 [02:35:04]Write i2c OK [02:35:04]MH_I2C_Read... [02:35:04]Read from MH i2c: 01 [02:35:04]MH_I2C_Read... [02:35:04]Read from MH i2c: 01 07 00 [02:35:04]MH_I2C_Read... [02:35:04]Read from MH i2c: 01 07 00 6F 07 00 00 00 00 00 82 0C 0B [02:35:04]RasterBufferAndPrint [02:35:04]line [02:35:04]line [02:35:04]line [02:35:04]line [02:35:04]line [02:35:04]written 0, free lines is 3205 [02:35:04]MH_Cut [02:35:04]Write to MH i2c: D1 01 00 76 07 01 4F [02:35:04]Write i2c OK [02:35:04]MH_I2C_Read... [02:35:04]Read from MH i2c: D1 [02:35:04]MH_I2C_Read... [02:35:04]Read from MH i2c: D1 01 00 [02:35:04]MH_I2C_Read... [02:35:04]Read from MH i2c: D1 01 00 76 07 00 4E [02:35:04]Write to MH i2c: 01 00 00 77 07 7E [02:35:04]Write i2c OK [02:35:04]MH_I2C_Read... [02:35: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 30 4F 00 00 00 9F 94 47 00 45 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 30 10 04 04 00 BC FB 03 00 F4 03 04 00 AA 58 C2 66 B6 04 01 00 00 E2 68 E1 80 D7 F7 C4 D8 [02:35:04]CommunicateWithHost err = 0 [02:35:04]CheckOFDResponse [02:35:04]1017 (14) - 77093643461234 [02:35:04]1041 (16) - 0000000000871820 [02:35:04]1040 (4) - 261052 [02:35:04]1012 (4) - 18.08.2024 20:25 [02:35:04]1206 (1) - 0 [02:35:04]OFD Sender: Remove packet 261052 [02:35:04]ProducePacketName [02:35:04]name=ofd_packets/00261052 [02:35:04]NVStorageDeleteData [02:35:05]OFD Sender: No OFD packet to send [02:35:05]*** Cut start [02:35:05]*** Purtial cut [02:35:05]*** Stage 1: CUTSNS_PIN = 1 [02:35:07]Read from MH i2c: 01 [02:35:07]MH_I2C_Read... [02:35:07]*** Stop cut motor [02:35:07]*** Cut end [02:35:07]Read from MH i2c: 01 07 00 [02:35:07]MH_I2C_Read... [02:35:07]Read from MH i2c: 01 07 00 77 07 00 00 00 00 00 FF 0F 93 [02:35:07]process_action close_receipt done [02:35:07]requested_data is exist [02:35:07]produce_requested_data [02:35:07]requested_item fm.sn is exist - process it [02:35:07]wFMCommunicate request_size=4 [02:35:07]MH_SAM_APDU [02:35:07]CAPDU: 80 11 00 00 [02:35:07]Write to MH i2c: E2 08 00 78 07 80 11 00 00 00 00 00 00 F9 [02:35:07]Write i2c OK [02:35:07]MH_I2C_Read... [02:35:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:35:08]Read from MH i2c: E2 [02:35:08]MH_I2C_Read... [02:35:08]Read from MH i2c: E2 17 00 [02:35:08]MH_I2C_Read... [02:35:08]Read from MH i2c: E2 17 00 78 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 46 [02:35:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [02:35:08]wFMCommunicate OK [02:35:08]requested_item fd.num is exist - process it [02:35:08]SAM_PROTO_GetFieldsCounters [02:35:08]wFMCommunicate request_size=4 [02:35:08]MH_SAM_APDU [02:35:08]CAPDU: 80 13 00 00 [02:35:08]Write to MH i2c: E2 08 00 79 07 80 13 00 00 00 00 00 00 FC [02:35:08]Write i2c OK [02:35:08]MH_I2C_Read... [02:35:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:35:08]Read from MH i2c: E2 [02:35:08]MH_I2C_Read... [02:35:08]Read from MH i2c: E2 62 00 [02:35:08]MH_I2C_Read... [02:35:08]Read from MH i2c: E2 62 00 79 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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 BC FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [02:35: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 BC FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:35:08]wFMCommunicate OK [02:35:08]SAM_PROTO_GetFieldsCounters done [02:35:08]requested_item shift.num is exist - process it [02:35:08]requested_item shift.opened is exist - process it [02:35:08]req_shift_opened [02:35:08]FM_GetShiftState [02:35:08]SAM_PROTO_GetShiftState [02:35:08]wFMCommunicate request_size=4 [02:35:08]MH_SAM_APDU [02:35:08]CAPDU: 80 13 01 00 [02:35:08]Write to MH i2c: E2 08 00 7A 07 80 13 01 00 00 00 00 00 FE [02:35:08]Write i2c OK [02:35:08]MH_I2C_Read... [02:35:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:35:08]Read from MH i2c: E2 [02:35:08]MH_I2C_Read... [02:35:08]Read from MH i2c: E2 0E 00 [02:35:08]MH_I2C_Read... [02:35:08]Read from MH i2c: E2 0E 00 7A 07 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 94 [02:35:08]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [02:35:08]wFMCommunicate OK [02:35:08]SAM_PROTO_GetShiftState done [02:35:08]FM_GetShiftState done [02:35:08]req_shift_opened done [02:35:08]requested_item shift.open_date is exist - process it [02:35:08]req_shift_open_date [02:35:08]req_shift_open_date done [02:35:08]produce_requested_data done [02:35:08]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261052,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600} [02:35:08]process_action_free close_receipt [02:35:08]json_value_free [02:35:08]json_value_free done [02:35:08]process_json_proto returns [02:35:08]Send response to host [02:35:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261052,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600}}} [02:35:08]free response buf [02:35:08]execute_script done [02:35:08]execute_script returns [02:35:08]free content buf [02:35:08]Sock 7.Close socket [02:35:08]Sock 7.Thread stoped [02:35:10]OFD Sender: No OFD packet to send [02:35:15]OFD Sender: No OFD packet to send [02:35:20]OFD Sender: No OFD packet to send [02:35:25]OFD Sender: No OFD packet to send [02:35:30]OFD Sender: No OFD packet to send [02:35:35]OFD Sender: No OFD packet to send [02:35:40]OFD Sender: No OFD packet to send [02:35:45]OFD Sender: No OFD packet to send [02:35:50]OFD Sender: No OFD packet to send [02:35:55]OFD Sender: No OFD packet to send [02:36:00]OFD Sender: No OFD packet to send [02:36:05]OFD Sender: No OFD packet to send [02:36:10]OFD Sender: No OFD packet to send [02:36:15]OFD Sender: No OFD packet to send [02:36:20]OFD Sender: No OFD packet to send [02:36:25]OFD Sender: No OFD packet to send [02:36:30]OFD Sender: No OFD packet to send [02:36:35]OFD Sender: No OFD packet to send [02:36:40]OFD Sender: No OFD packet to send [02:36:45]OFD Sender: No OFD packet to send [02:36:50]OFD Sender: No OFD packet to send [02:36:55]OFD Sender: No OFD packet to send [02:37:00]OFD Sender: No OFD packet to send [02:37:05]OFD Sender: No OFD packet to send [02:37:10]OFD Sender: No OFD packet to send [02:37:15]OFD Sender: No OFD packet to send [02:37:20]OFD Sender: No OFD packet to send [02:37:25]OFD Sender: No OFD packet to send [02:37:30]OFD Sender: No OFD packet to send [02:37:35]OFD Sender: No OFD packet to send [02:37:40]OFD Sender: No OFD packet to send [02:37:45]OFD Sender: No OFD packet to send [02:37:50]OFD Sender: No OFD packet to send [02:37:55]OFD Sender: No OFD packet to send [02:38:00]OFD Sender: No OFD packet to send [02:38:05]OFD Sender: No OFD packet to send [02:38:10]OFD Sender: No OFD packet to send [02:38:15]OFD Sender: No OFD packet to send [02:38:20]OFD Sender: No OFD packet to send [02:38:25]OFD Sender: No OFD packet to send [02:38:30]OFD Sender: No OFD packet to send [02:38:35]OFD Sender: No OFD packet to send [02:38:40]OFD Sender: No OFD packet to send [02:38:45]OFD Sender: No OFD packet to send [02:38:50]OFD Sender: No OFD packet to send [02:38:55]OFD Sender: No OFD packet to send [02:39:00]OFD Sender: No OFD packet to send [02:39:05]OFD Sender: No OFD packet to send [02:39:10]OFD Sender: No OFD packet to send [02:39:15]OFD Sender: No OFD packet to send [02:39:20]OFD Sender: No OFD packet to send [02:39:25]OFD Sender: No OFD packet to send [02:39:30]OFD Sender: No OFD packet to send [02:39:35]OFD Sender: No OFD packet to send [02:39:40]OFD Sender: No OFD packet to send [02:39:45]OFD Sender: No OFD packet to send [02:39:50]OFD Sender: No OFD packet to send [02:39:55]OFD Sender: No OFD packet to send [02:40:00]OFD Sender: No OFD packet to send [02:40:05]OFD Sender: No OFD packet to send [02:40:10]OFD Sender: No OFD packet to send [02:40:15]OFD Sender: No OFD packet to send [02:40:20]OFD Sender: No OFD packet to send [02:40:25]OFD Sender: No OFD packet to send [02:40:30]OFD Sender: No OFD packet to send [02:40:35]OFD Sender: No OFD packet to send [02:40:40]OFD Sender: No OFD packet to send [02:40:45]OFD Sender: No OFD packet to send [02:40:50]OFD Sender: No OFD packet to send [02:40:55]OFD Sender: No OFD packet to send [02:41:01]OFD Sender: No OFD packet to send [02:41:06]OFD Sender: No OFD packet to send [02:41:11]OFD Sender: No OFD packet to send [02:41:16]OFD Sender: No OFD packet to send [02:41:21]OFD Sender: No OFD packet to send [02:41:26]OFD Sender: No OFD packet to send [02:41:29]accept exits with 9 [02:41:29]New connection [02:41:29]New thread 3067104612 created [02:41:29]Thread 3067247972 joined [02:41:29]Waiting for new connection... [02:41:29] Sock 9.Parse request [02:41:29]Sock 9.Check first char [02:41:29]Sock 9.First char is OK [02:41:29]request: POST /json_proto HTTP/1.0 [02:41:29]Method: POST [02:41:29]URL: /json_proto [02:41:29]Method is POST - this is cgi request [02:41:29]url: /json_proto [02:41:29]query_string will be loaded in cgi processing [02:41:29]execute_cgi json_proto POST (null) [02:41:29]execute_cgi path=json_proto method=POST [02:41:29]POST find Content-Length [02:41:29]Host: 172.17.55.133:8080 [02:41:29]Content-Length: 678 [02:41:29]Content-Type: application/json [02:41:29] [02:41:29]POST finish read [02:41:29]Found Content-Length = 678 [02:41:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:41:29]execute_script... [02:41: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)1036606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:41:29]POST & json_proto [02:41:29]process_json_proto [02:41:29]json parsed OK: [02:41:29]protocol is kg_v1.0 [02:41:29]action value=close_receipt [02:41:29]process_action close_receipt [02:41:29]cmd_close_receipt [02:41:29]MH_GetDate [02:41:29]Write to MH i2c: F0 00 00 7B 07 71 [02:41:29]Write i2c OK [02:41:29]MH_I2C_Read... [02:41:29]Read from MH i2c: F0 [02:41:29]MH_I2C_Read... [02:41:29]Read from MH i2c: F0 09 00 [02:41:29]MH_I2C_Read... [02:41:29]Read from MH i2c: F0 09 00 7B 07 00 DA B0 C2 66 34 48 D8 65 E5 [02:41:29]GetLastDocTimeStamp 1724034903 [02:41:29]current date 1724035290 [02:41:29]FM_GetShiftState [02:41:29]SAM_PROTO_GetShiftState [02:41:29]wFMCommunicate request_size=4 [02:41:29]MH_SAM_APDU [02:41:29]CAPDU: 80 13 01 00 [02:41:29]Write to MH i2c: E2 08 00 7C 07 80 13 01 00 00 00 00 00 00 [02:41:29]Write i2c OK [02:41:29]MH_I2C_Read... [02:41:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:41:29]Read from MH i2c: E2 [02:41:29]MH_I2C_Read... [02:41:29]Read from MH i2c: E2 0E 00 [02:41:29]MH_I2C_Read... [02:41:29]Read from MH i2c: E2 0E 00 7C 07 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 96 [02:41:29]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [02:41:29]wFMCommunicate OK [02:41:29]SAM_PROTO_GetShiftState done [02:41:29]FM_GetShiftState done [02:41:29]opened in 1724027600 [02:41:29]opened+sec_in_day 1724114000 [02:41:29]quantity*price = 30035 [02:41:29]sum+1 = 30036 [02:41:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 21 19.08.2024 02:41 Смена: 450 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261053 ФПД: 78799186436624 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T024130&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261053&fm=78799186436624&tin=02508201610067®Number=0000000000091865&sum=30000 [02:41:31]StoreToDocumentArchive [02:41:31]shift 450 fd 261053 [02:41:31]save to /storage/0450/doc_00261053 [02:41:31]save last doc name /storage/0450/doc_00261053 to /storage/kkm_last_doc_name [02:41:31]save OK [02:41:31]Clear old archive folders... [02:41:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:41:31]tlvbuf is 00A2F8F0 [02:41:31]SAM_PROTO_ClearQueue [02:41:31]wFMCommunicate request_size=4 [02:41:31]MH_SAM_APDU [02:41:31]CAPDU: 80 09 00 00 [02:41:31]Write to MH i2c: E2 08 00 89 07 80 09 00 00 00 00 00 00 02 [02:41:31]Write i2c OK [02:41:31]MH_I2C_Read... [02:41:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:41:31]OFD Sender: No OFD packet to send [02:41:31]Read from MH i2c: E2 [02:41:31]MH_I2C_Read... [02:41:31]Read from MH i2c: E2 03 00 [02:41:31]MH_I2C_Read... [02:41:31]Read from MH i2c: E2 03 00 89 07 00 90 00 04 [02:41:31]RAPDU: 90 00 [02:41:31]wFMCommunicate OK [02:41:31]SAM_PROTO_ClearQueue done [02:41:31]KKMCreateOFDPacket [02:41:31]OFDProtocolAddRootSTLVToBuf [02:41:31]FM_MakeSignedData [02:41:31]FM_MakeSignedData [02:41:31]SAM_PROTO_SignData [02:41:31]wFMCommunicate request_size=4 [02:41:31]MH_SAM_APDU [02:41:31]CAPDU: 80 0D 01 02 [02:41:31]Write to MH i2c: E2 08 00 8A 07 80 0D 01 02 00 00 00 00 0A [02:41:31]Write i2c OK [02:41:31]MH_I2C_Read... [02:41:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:41:31]Read from MH i2c: E2 [02:41:31]MH_I2C_Read... [02:41:31]Read from MH i2c: E2 03 00 [02:41:31]MH_I2C_Read... [02:41:31]Read from MH i2c: E2 03 00 8A 07 00 90 00 05 [02:41:31]RAPDU: 90 00 [02:41:31]wFMCommunicate OK [02:41:31]wFMCommunicate request_size=255 [02:41:31]MH_SAM_APDU [02:41:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 DA B0 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BD FB 03 00 35 04 06 00 47 [02:41:31]Write to MH i2c: E2 02 01 8B 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 DA B0 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BD FB 03 00 35 04 06 00 47 00 00 32 [02:41:31]Write i2c OK [02:41:31]MH_I2C_Read... [02:41:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:41:31]Read from MH i2c: E2 [02:41:31]MH_I2C_Read... [02:41:31]Read from MH i2c: E2 03 00 [02:41:31]MH_I2C_Read... [02:41:31]Read from MH i2c: E2 03 00 8B 07 00 90 00 06 [02:41:31]RAPDU: 90 00 [02:41:31]wFMCommunicate OK [02:41:31]wFMCommunicate request_size=10 [02:41:31]MH_SAM_APDU [02:41:31]CAPDU: 80 0D 02 02 05 AA DD 84 22 10 [02:41:31]Write to MH i2c: E2 0D 00 8C 07 80 0D 02 02 05 00 AA DD 84 22 10 00 00 54 [02:41:31]Write i2c OK [02:41:31]MH_I2C_Read... [02:41:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:41:31]Read from MH i2c: E2 [02:41:31]MH_I2C_Read... [02:41:31]Read from MH i2c: E2 03 00 [02:41:31]MH_I2C_Read... [02:41:31]Read from MH i2c: E2 03 00 8C 07 00 90 00 07 [02:41:31]RAPDU: 90 00 [02:41:31]wFMCommunicate OK [02:41:31]wFMCommunicate request_size=4 [02:41:31]MH_SAM_APDU [02:41:31]CAPDU: 80 0D 03 02 [02:41:31]Write to MH i2c: E2 08 00 8D 07 80 0D 03 02 00 00 00 00 0F [02:41:31]Write i2c OK [02:41:31]MH_I2C_Read... [02:41:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:41:31]Read from MH i2c: E2 [02:41:31]MH_I2C_Read... [02:41:31]Read from MH i2c: E2 0B 00 [02:41:31]MH_I2C_Read... [02:41:31]Read from MH i2c: E2 0B 00 8D 07 00 8C 2E 5C 8A A0 F0 6B EC 90 00 97 [02:41:31]RAPDU: 8C 2E 5C 8A A0 F0 6B EC 90 00 [02:41:31]wFMCommunicate OK [02:41:31]SAM_PROTO_SignData done [02:41:31]FM_MakeSignedData done [02:41:31]CreateOFDProtocolMessage [02:41:31]wFMCommunicate request_size=4 [02:41:31]MH_SAM_APDU [02:41:31]CAPDU: 80 11 00 00 [02:41:31]Write to MH i2c: E2 08 00 8E 07 80 11 00 00 00 00 00 00 0F [02:41:31]Write i2c OK [02:41:31]MH_I2C_Read... [02:41:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:41:31]Read from MH i2c: E2 [02:41:31]MH_I2C_Read... [02:41:31]Read from MH i2c: E2 17 00 [02:41:31]MH_I2C_Read... [02:41:31]Read from MH i2c: E2 17 00 8E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 5C [02:41:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [02:41:31]wFMCommunicate OK [02:41:31]CreateOFDProtocolMessage done [02:41:31]OFDSenderStorePacket 261053 [02:41:31]StoreOFDPacket docnum=261053 [02:41:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 A9 EC 07 01 D3 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 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 DA B0 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BD FB 03 00 35 04 06 00 47 AA DD 84 22 10 8C 2E 5C 8A A0 F0 6B EC [02:41:31]CheckFolder [02:41:31]dirname=/storage/ofd_packets [02:41:31]CheckFolder done [02:41:31]ProducePacketName [02:41:31]name=ofd_packets/00261053 [02:41:31]NVStorageSaveData ofd_packets/00261053 [02:41:31]File name is /storage/ofd_packets/00261053 [02:41:31]Write 301 bytes [02:41:31]NVStorageSaveData done [02:41:31]OFDSenderStorePacket done [02:41:31]KKMCreateOFDPacket done [02:41:31]NVStorageSaveData kkm_last_timestamp [02:41:31]File name is /storage/kkm_last_timestamp [02:41:31]Write 4 bytes [02:41:31]NVStorageSaveData done [02:41:31]ExternCall_PrintAddStr [02:41:31]wPrintStart [02:41:31]Write to MH i2c: 01 00 00 8F 07 96 [02:41:31]Write i2c OK [02:41:31]MH_I2C_Read... [02:41:31]Read from MH i2c: 01 [02:41:31]MH_I2C_Read... [02:41:31]Read from MH i2c: 01 07 00 [02:41:31]MH_I2C_Read... [02:41:31]Read from MH i2c: 01 07 00 8F 07 00 00 00 00 00 FF 0F AB [02:41:31]RasterBufferAndPrint [02:41:31]line Счет N : (1)1036606 [02:41:31]line ИНН: 02508201610067 [02:41:31]line Контрольно-Кассовый Чек [02:41:31]line ПРОДАЖА [02:41:31]line ТРК (МРК, ГНК) : 22 [02:41:31]line Товар: 2710124130 [02:41:31]line Аи-92-К-5 [02:41:31]line 4.430 * 67.80 [02:41:31]line = 300.35 [02:41:31]line НДС 12% НСП 1% [02:41:31]line > о реализуемом товаре [02:41:31]line ОКРУГЛЕНИЕ: -0.35 [02:41:31]line ИТОГО: 300.00 [02:41:31]line Внесено: 300.00 [02:41:31]line СДАЧА: 0.00 [02:41:31]line НСП 1% : 2.66 [02:41:31]line НДС 12% : 31.90 [02:41:31]line Наличными: 300.00 [02:41:31]line Безнал.: 0.00 [02:41:31]line Место: АЗС № 94 "Партнер Нефть" [02:41:31]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [02:41:31]line СНО: Общий режим [02:41:31]line Чек 21 19.08.2024 02:41 [02:41:31]line Смена: 450 ФФД: 1.0 [02:41:31]line ЗНМ: 0300000099 [02:41:31]line РНМ: 0000000000091865 [02:41:31]line Версия ККМ: 001 [02:41:31]line ФМ: 0000000000871820 [02:41:31]line ФД: 261053 [02:41:31]line ФПД: 78799186436624 [02:41:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T024130&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261053&fm=78799186436624&tin=02508201610067®Number=0000000000091865&sum=30000 [02:41:31]OFD Sender: Processing packet 261053 [packets to send 192, broken 191] [02:41:31]ProducePacketName [02:41:31]name=ofd_packets/00261053 [02:41:31]OFD Sender: To server: pG, [02:41:31]CommunicateWithHost lk.salyk.kg:30040 [02:41:31]ConnectInit lk.salyk.kg [02:41:31]written 0, free lines is 4095 [02:41:31]Connected sock=10 [02:41: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 30 0F 01 00 00 A9 EC 07 01 D3 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 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 DA B0 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BD FB 03 00 35 04 06 00 47 AA DD 84 22 10 8C 2E 5C 8A A0 F0 6B EC [02:41: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 30 4F 00 00 00 0C A4 47 00 53 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 30 10 04 04 00 BD FB 03 00 F4 03 04 00 2D 5A C2 66 B6 04 01 00 00 0D E5 2C 11 65 B8 46 8F [02:41:32]CommunicateWithHost err = 0 [02:41:32]CheckOFDResponse [02:41:32]1017 (14) - 77093643461234 [02:41:32]1041 (16) - 0000000000871820 [02:41:32]1040 (4) - 261053 [02:41:32]1012 (4) - 18.08.2024 20:31 [02:41:32]1206 (1) - 0 [02:41:32]OFD Sender: Remove packet 261053 [02:41:32]ProducePacketName [02:41:32]name=ofd_packets/00261053 [02:41:32]NVStorageDeleteData [02:41:32]Write to MH i2c: 01 00 00 BA 07 C1 [02:41:32]Write i2c OK [02:41:32]MH_I2C_Read... [02:41:32]Read from MH i2c: 01 [02:41:32]MH_I2C_Read... [02:41:32]Read from MH i2c: 01 07 00 [02:41:32]MH_I2C_Read... [02:41:32]Read from MH i2c: 01 07 00 BA 07 00 00 00 00 00 6D 0C 41 [02:41:32]RasterBufferAndPrint [02:41:32]line [02:41:32]line [02:41:32]line [02:41:32]line [02:41:32]line [02:41:32]written 0, free lines is 3184 [02:41:32]MH_Cut [02:41:32]Write to MH i2c: D1 01 00 C1 07 01 9A [02:41:32]Write i2c OK [02:41:32]MH_I2C_Read... [02:41:32]Read from MH i2c: D1 [02:41:32]MH_I2C_Read... [02:41:32]Read from MH i2c: D1 01 00 [02:41:32]MH_I2C_Read... [02:41:32]Read from MH i2c: D1 01 00 C1 07 00 99 [02:41:32]Write to MH i2c: 01 00 00 C2 07 C9 [02:41:32]Write i2c OK [02:41:32]MH_I2C_Read... [02:41:32]OFD Sender: No OFD packet to send [02:41:33]*** Cut start [02:41:33]*** Purtial cut [02:41:33]*** Stage 1: CUTSNS_PIN = 1 [02:41:35]Read from MH i2c: 01 [02:41:35]MH_I2C_Read... [02:41:35]*** Stop cut motor [02:41:35]*** Cut end [02:41:35]Read from MH i2c: 01 07 00 [02:41:35]MH_I2C_Read... [02:41:35]Read from MH i2c: 01 07 00 C2 07 00 00 00 00 00 FF 0F DE [02:41:35]process_action close_receipt done [02:41:35]requested_data is exist [02:41:35]produce_requested_data [02:41:35]requested_item fm.sn is exist - process it [02:41:35]wFMCommunicate request_size=4 [02:41:35]MH_SAM_APDU [02:41:35]CAPDU: 80 11 00 00 [02:41:35]Write to MH i2c: E2 08 00 C3 07 80 11 00 00 00 00 00 00 44 [02:41:35]Write i2c OK [02:41:35]MH_I2C_Read... [02:41:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:41:35]Read from MH i2c: E2 [02:41:35]MH_I2C_Read... [02:41:35]Read from MH i2c: E2 17 00 [02:41:35]MH_I2C_Read... [02:41:35]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 30 90 00 91 [02:41:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [02:41:35]wFMCommunicate OK [02:41:35]requested_item fd.num is exist - process it [02:41:35]SAM_PROTO_GetFieldsCounters [02:41:35]wFMCommunicate request_size=4 [02:41:35]MH_SAM_APDU [02:41:35]CAPDU: 80 13 00 00 [02:41:35]Write to MH i2c: E2 08 00 C4 07 80 13 00 00 00 00 00 00 47 [02:41:35]Write i2c OK [02:41:35]MH_I2C_Read... [02:41:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:41:35]Read from MH i2c: E2 [02:41:35]MH_I2C_Read... [02:41:35]Read from MH i2c: E2 62 00 [02:41:35]MH_I2C_Read... [02:41:35]Read from MH i2c: E2 62 00 C4 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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 BD FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [02:41: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 BD FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:41:35]wFMCommunicate OK [02:41:35]SAM_PROTO_GetFieldsCounters done [02:41:35]requested_item shift.num is exist - process it [02:41:35]requested_item shift.opened is exist - process it [02:41:35]req_shift_opened [02:41:35]FM_GetShiftState [02:41:35]SAM_PROTO_GetShiftState [02:41:35]wFMCommunicate request_size=4 [02:41:35]MH_SAM_APDU [02:41:35]CAPDU: 80 13 01 00 [02:41:35]Write to MH i2c: E2 08 00 C5 07 80 13 01 00 00 00 00 00 49 [02:41:35]Write i2c OK [02:41:35]MH_I2C_Read... [02:41:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:41:35]Read from MH i2c: E2 [02:41:35]MH_I2C_Read... [02:41:35]Read from MH i2c: E2 0E 00 [02:41:35]MH_I2C_Read... [02:41:35]Read from MH i2c: E2 0E 00 C5 07 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 DF [02:41:35]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [02:41:35]wFMCommunicate OK [02:41:35]SAM_PROTO_GetShiftState done [02:41:35]FM_GetShiftState done [02:41:35]req_shift_opened done [02:41:35]requested_item shift.open_date is exist - process it [02:41:35]req_shift_open_date [02:41:35]req_shift_open_date done [02:41:35]produce_requested_data done [02:41:35]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261053,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600} [02:41:35]process_action_free close_receipt [02:41:35]json_value_free [02:41:35]json_value_free done [02:41:35]process_json_proto returns [02:41:35]Send response to host [02:41:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261053,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600}}} [02:41:35]free response buf [02:41:35]execute_script done [02:41:35]execute_script returns [02:41:35]free content buf [02:41:35]Sock 9.Close socket [02:41:35]Sock 9.Thread stoped [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:23]OFD Sender: No OFD packet to send [02:45:28]OFD Sender: No OFD packet to send [02:45:33]OFD Sender: No OFD packet to send [02:45:38]OFD Sender: No OFD packet to send [02:45:43]OFD Sender: No OFD packet to send [02:45:48]OFD Sender: No OFD packet to send [02:45:53]OFD Sender: No OFD packet to send [02:45:58]OFD Sender: No OFD packet to send [02:46:00]accept exits with 7 [02:46:00]New connection [02:46:00]New thread 3067247972 created [02:46:00]Thread 3067104612 joined [02:46:00]Waiting for new connection... [02:46:00] Sock 7.Parse request [02:46:00]Sock 7.Check first char [02:46:00]Sock 7.First char is OK [02:46:00]request: POST /json_proto HTTP/1.0 [02:46:00]Method: POST [02:46:00]URL: /json_proto [02:46:00]Method is POST - this is cgi request [02:46:00]url: /json_proto [02:46:00]query_string will be loaded in cgi processing [02:46:00]execute_cgi json_proto POST (null) [02:46:00]execute_cgi path=json_proto method=POST [02:46:00]POST find Content-Length [02:46:00]Host: 172.17.55.133:8080 [02:46:00]Content-Length: 678 [02:46:00]Content-Type: application/json [02:46:00] [02:46:00]POST finish read [02:46:00]Found Content-Length = 678 [02:46:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:46:00]execute_script... [02:46: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)1036607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:46:00]POST & json_proto [02:46:00]process_json_proto [02:46:00]json parsed OK: [02:46:00]protocol is kg_v1.0 [02:46:00]action value=close_receipt [02:46:00]process_action close_receipt [02:46:00]cmd_close_receipt [02:46:00]MH_GetDate [02:46:00]Write to MH i2c: F0 00 00 C6 07 BC [02:46:00]Write i2c OK [02:46:00]MH_I2C_Read... [02:46:00]Read from MH i2c: F0 [02:46:00]MH_I2C_Read... [02:46:00]Read from MH i2c: F0 09 00 [02:46:00]MH_I2C_Read... [02:46:00]Read from MH i2c: F0 09 00 C6 07 00 E9 B1 C2 66 34 48 D8 65 40 [02:46:00]GetLastDocTimeStamp 1724035290 [02:46:00]current date 1724035561 [02:46:00]FM_GetShiftState [02:46:00]SAM_PROTO_GetShiftState [02:46:00]wFMCommunicate request_size=4 [02:46:00]MH_SAM_APDU [02:46:00]CAPDU: 80 13 01 00 [02:46:00]Write to MH i2c: E2 08 00 C7 07 80 13 01 00 00 00 00 00 4B [02:46:00]Write i2c OK [02:46:00]MH_I2C_Read... [02:46:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:46:00]Read from MH i2c: E2 [02:46:00]MH_I2C_Read... [02:46:00]Read from MH i2c: E2 0E 00 [02:46:00]MH_I2C_Read... [02:46:00]Read from MH i2c: E2 0E 00 C7 07 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 E1 [02:46:00]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [02:46:00]wFMCommunicate OK [02:46:00]SAM_PROTO_GetShiftState done [02:46:00]FM_GetShiftState done [02:46:00]opened in 1724027600 [02:46:00]opened+sec_in_day 1724114000 [02:46:00]quantity*price = 30035 [02:46:00]sum+1 = 30036 [02:46:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 22 19.08.2024 02:46 Смена: 450 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261054 ФПД: 219393865498313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T024601&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261054&fm=219393865498313&tin=02508201610067®Number=0000000000091865&sum=30000 [02:46:01]StoreToDocumentArchive [02:46:01]shift 450 fd 261054 [02:46:01]save to /storage/0450/doc_00261054 [02:46:01]save last doc name /storage/0450/doc_00261054 to /storage/kkm_last_doc_name [02:46:01]save OK [02:46:01]Clear old archive folders... [02:46:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:46:01]tlvbuf is 00A45A80 [02:46:01]SAM_PROTO_ClearQueue [02:46:01]wFMCommunicate request_size=4 [02:46:01]MH_SAM_APDU [02:46:01]CAPDU: 80 09 00 00 [02:46:01]Write to MH i2c: E2 08 00 D4 07 80 09 00 00 00 00 00 00 4D [02:46:01]Write i2c OK [02:46:01]MH_I2C_Read... [02:46:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:46:01]Read from MH i2c: E2 [02:46:01]MH_I2C_Read... [02:46:01]Read from MH i2c: E2 03 00 [02:46:01]MH_I2C_Read... [02:46:01]Read from MH i2c: E2 03 00 D4 07 00 90 00 4F [02:46:01]RAPDU: 90 00 [02:46:01]wFMCommunicate OK [02:46:01]SAM_PROTO_ClearQueue done [02:46:01]KKMCreateOFDPacket [02:46:01]OFDProtocolAddRootSTLVToBuf [02:46:01]FM_MakeSignedData [02:46:01]FM_MakeSignedData [02:46:01]SAM_PROTO_SignData [02:46:01]wFMCommunicate request_size=4 [02:46:01]MH_SAM_APDU [02:46:01]CAPDU: 80 0D 01 02 [02:46:01]Write to MH i2c: E2 08 00 D5 07 80 0D 01 02 00 00 00 00 55 [02:46:01]Write i2c OK [02:46:01]MH_I2C_Read... [02:46:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:46:01]Read from MH i2c: E2 [02:46:01]MH_I2C_Read... [02:46:01]Read from MH i2c: E2 03 00 [02:46:01]MH_I2C_Read... [02:46:01]Read from MH i2c: E2 03 00 D5 07 00 90 00 50 [02:46:01]RAPDU: 90 00 [02:46:01]wFMCommunicate OK [02:46:01]wFMCommunicate request_size=255 [02:46:01]MH_SAM_APDU [02:46:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 E9 B1 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BE FB 03 00 35 04 06 00 C7 [02:46:01]Write to MH i2c: E2 02 01 D6 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 E9 B1 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BE FB 03 00 35 04 06 00 C7 00 00 0F [02:46:01]Write i2c OK [02:46:01]MH_I2C_Read... [02:46:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:46:01]Read from MH i2c: E2 [02:46:01]MH_I2C_Read... [02:46:01]Read from MH i2c: E2 03 00 [02:46:01]MH_I2C_Read... [02:46:01]Read from MH i2c: E2 03 00 D6 07 00 90 00 51 [02:46:01]RAPDU: 90 00 [02:46:01]wFMCommunicate OK [02:46:01]wFMCommunicate request_size=10 [02:46:01]MH_SAM_APDU [02:46:01]CAPDU: 80 0D 02 02 05 89 9D 6B 3E C9 [02:46:01]Write to MH i2c: E2 0D 00 D7 07 80 0D 02 02 05 00 89 9D 6B 3E C9 00 00 FA [02:46:01]Write i2c OK [02:46:01]MH_I2C_Read... [02:46:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:46:01]Read from MH i2c: E2 [02:46:01]MH_I2C_Read... [02:46:01]Read from MH i2c: E2 03 00 [02:46:01]MH_I2C_Read... [02:46:01]Read from MH i2c: E2 03 00 D7 07 00 90 00 52 [02:46:01]RAPDU: 90 00 [02:46:01]wFMCommunicate OK [02:46:01]wFMCommunicate request_size=4 [02:46:01]MH_SAM_APDU [02:46:01]CAPDU: 80 0D 03 02 [02:46:01]Write to MH i2c: E2 08 00 D8 07 80 0D 03 02 00 00 00 00 5A [02:46:01]Write i2c OK [02:46:01]MH_I2C_Read... [02:46:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:46:01]Read from MH i2c: E2 [02:46:01]MH_I2C_Read... [02:46:01]Read from MH i2c: E2 0B 00 [02:46:01]MH_I2C_Read... [02:46:01]Read from MH i2c: E2 0B 00 D8 07 00 39 31 77 4B 66 73 87 77 90 00 5E [02:46:01]RAPDU: 39 31 77 4B 66 73 87 77 90 00 [02:46:01]wFMCommunicate OK [02:46:01]SAM_PROTO_SignData done [02:46:01]FM_MakeSignedData done [02:46:01]CreateOFDProtocolMessage [02:46:01]wFMCommunicate request_size=4 [02:46:01]MH_SAM_APDU [02:46:01]CAPDU: 80 11 00 00 [02:46:01]Write to MH i2c: E2 08 00 D9 07 80 11 00 00 00 00 00 00 5A [02:46:01]Write i2c OK [02:46:01]MH_I2C_Read... [02:46:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:46:01]Read from MH i2c: E2 [02:46:01]MH_I2C_Read... [02:46:01]Read from MH i2c: E2 17 00 [02:46:01]MH_I2C_Read... [02:46:01]Read from MH i2c: E2 17 00 D9 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 A7 [02:46:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [02:46:01]wFMCommunicate OK [02:46:01]CreateOFDProtocolMessage done [02:46:01]OFDSenderStorePacket 261054 [02:46:01]StoreOFDPacket docnum=261054 [02:46:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 E1 C2 07 01 28 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 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 E9 B1 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BE FB 03 00 35 04 06 00 C7 89 9D 6B 3E C9 39 31 77 4B 66 73 87 77 [02:46:01]CheckFolder [02:46:01]dirname=/storage/ofd_packets [02:46:01]CheckFolder done [02:46:01]ProducePacketName [02:46:01]name=ofd_packets/00261054 [02:46:01]NVStorageSaveData ofd_packets/00261054 [02:46:01]File name is /storage/ofd_packets/00261054 [02:46:01]Write 301 bytes [02:46:01]NVStorageSaveData done [02:46:01]OFDSenderStorePacket done [02:46:01]KKMCreateOFDPacket done [02:46:01]NVStorageSaveData kkm_last_timestamp [02:46:01]File name is /storage/kkm_last_timestamp [02:46:01]Write 4 bytes [02:46:01]NVStorageSaveData done [02:46:01]ExternCall_PrintAddStr [02:46:01]wPrintStart [02:46:01]Write to MH i2c: 01 00 00 DA 07 E1 [02:46:01]Write i2c OK [02:46:01]MH_I2C_Read... [02:46:01]Read from MH i2c: 01 [02:46:01]MH_I2C_Read... [02:46:01]Read from MH i2c: 01 07 00 [02:46:01]MH_I2C_Read... [02:46:01]Read from MH i2c: 01 07 00 DA 07 00 00 00 00 00 FF 0F F6 [02:46:01]RasterBufferAndPrint [02:46:01]line Счет N : (1)1036607 [02:46:01]line ИНН: 02508201610067 [02:46:01]line Контрольно-Кассовый Чек [02:46:01]line ПРОДАЖА [02:46:01]line ТРК (МРК, ГНК) : 32 [02:46:01]line Товар: 2710124130 [02:46:01]line Аи-92-К-5 [02:46:01]line 4.430 * 67.80 [02:46:01]line = 300.35 [02:46:01]line НДС 12% НСП 1% [02:46:01]line > о реализуемом товаре [02:46:01]line ОКРУГЛЕНИЕ: -0.35 [02:46:01]line ИТОГО: 300.00 [02:46:01]line Внесено: 300.00 [02:46:01]line СДАЧА: 0.00 [02:46:01]line НСП 1% : 2.66 [02:46:01]line НДС 12% : 31.90 [02:46:01]line Наличными: 300.00 [02:46:01]line Безнал.: 0.00 [02:46:01]line Место: АЗС № 94 "Партнер Нефть" [02:46:01]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [02:46:01]line СНО: Общий режим [02:46:01]line Чек 22 19.08.2024 02:46 [02:46:01]line Смена: 450 ФФД: 1.0 [02:46:01]line ЗНМ: 0300000099 [02:46:01]line РНМ: 0000000000091865 [02:46:01]line Версия ККМ: 001 [02:46:01]line ФМ: 0000000000871820 [02:46:01]line ФД: 261054 [02:46:01]line ФПД: 219393865498313 [02:46:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T024601&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261054&fm=219393865498313&tin=02508201610067®Number=0000000000091865&sum=30000 [02:46:02]written 0, free lines is 4095 [02:46:02]OFD Sender: Processing packet 261054 [packets to send 192, broken 191] [02:46:02]ProducePacketName [02:46:02]name=ofd_packets/00261054 [02:46:02]OFD Sender: To server: pG, [02:46:02]CommunicateWithHost lk.salyk.kg:30040 [02:46:02]ConnectInit lk.salyk.kg [02:46:02]Connected sock=10 [02:46: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 30 0F 01 00 00 E1 C2 07 01 28 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 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 E9 B1 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BE FB 03 00 35 04 06 00 C7 89 9D 6B 3E C9 39 31 77 4B 66 73 87 77 [02:46: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 30 4F 00 00 00 CC C7 47 00 42 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 30 10 04 04 00 BE FB 03 00 F4 03 04 00 3B 5B C2 66 B6 04 01 00 00 FE 92 43 90 4E F0 6E 53 [02:46:02]CommunicateWithHost err = 0 [02:46:02]CheckOFDResponse [02:46:02]1017 (14) - 77093643461234 [02:46:02]1041 (16) - 0000000000871820 [02:46:02]1040 (4) - 261054 [02:46:02]1012 (4) - 18.08.2024 20:36 [02:46:02]1206 (1) - 0 [02:46:02]OFD Sender: Remove packet 261054 [02:46:02]ProducePacketName [02:46:02]name=ofd_packets/00261054 [02:46:02]NVStorageDeleteData [02:46:02]Write to MH i2c: 01 00 00 05 08 0D [02:46:02]Write i2c OK [02:46:02]MH_I2C_Read... [02:46:02]Read from MH i2c: 01 [02:46:02]MH_I2C_Read... [02:46:02]Read from MH i2c: 01 07 00 [02:46:02]MH_I2C_Read... [02:46:02]Read from MH i2c: 01 07 00 05 08 00 00 00 00 00 70 0C 90 [02:46:02]RasterBufferAndPrint [02:46:02]line [02:46:02]line [02:46:02]line [02:46:02]line [02:46:02]line [02:46:02]written 0, free lines is 3186 [02:46:02]MH_Cut [02:46:02]Write to MH i2c: D1 01 00 0C 08 01 E6 [02:46:02]Write i2c OK [02:46:02]MH_I2C_Read... [02:46:02]Read from MH i2c: D1 [02:46:02]MH_I2C_Read... [02:46:02]Read from MH i2c: D1 01 00 [02:46:02]MH_I2C_Read... [02:46:02]Read from MH i2c: D1 01 00 0C 08 00 E5 [02:46:02]Write to MH i2c: 01 00 00 0D 08 15 [02:46:02]Write i2c OK [02:46:02]MH_I2C_Read... [02:46:02]OFD Sender: No OFD packet to send [02:46:03]*** Cut start [02:46:03]*** Purtial cut [02:46:03]*** Stage 1: CUTSNS_PIN = 1 [02:46:05]Read from MH i2c: 01 [02:46:05]MH_I2C_Read... [02:46:05]*** Stop cut motor [02:46:05]*** Cut end [02:46:05]Read from MH i2c: 01 07 00 [02:46:05]MH_I2C_Read... [02:46:05]Read from MH i2c: 01 07 00 0D 08 00 00 00 00 00 FF 0F 2A [02:46:05]process_action close_receipt done [02:46:05]requested_data is exist [02:46:05]produce_requested_data [02:46:05]requested_item fm.sn is exist - process it [02:46:05]wFMCommunicate request_size=4 [02:46:05]MH_SAM_APDU [02:46:05]CAPDU: 80 11 00 00 [02:46:05]Write to MH i2c: E2 08 00 0E 08 80 11 00 00 00 00 00 00 90 [02:46:05]Write i2c OK [02:46:05]MH_I2C_Read... [02:46:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:46:05]Read from MH i2c: E2 [02:46:05]MH_I2C_Read... [02:46:05]Read from MH i2c: E2 17 00 [02:46:05]MH_I2C_Read... [02:46:05]Read from MH i2c: E2 17 00 0E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 DD [02:46:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [02:46:05]wFMCommunicate OK [02:46:05]requested_item fd.num is exist - process it [02:46:05]SAM_PROTO_GetFieldsCounters [02:46:05]wFMCommunicate request_size=4 [02:46:05]MH_SAM_APDU [02:46:05]CAPDU: 80 13 00 00 [02:46:05]Write to MH i2c: E2 08 00 0F 08 80 13 00 00 00 00 00 00 93 [02:46:05]Write i2c OK [02:46:05]MH_I2C_Read... [02:46:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:46:05]Read from MH i2c: E2 [02:46:05]MH_I2C_Read... [02:46:05]Read from MH i2c: E2 62 00 [02:46:05]MH_I2C_Read... [02:46:05]Read from MH i2c: E2 62 00 0F 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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 BE FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [02:46: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 BE FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:46:05]wFMCommunicate OK [02:46:05]SAM_PROTO_GetFieldsCounters done [02:46:05]requested_item shift.num is exist - process it [02:46:05]requested_item shift.opened is exist - process it [02:46:05]req_shift_opened [02:46:05]FM_GetShiftState [02:46:05]SAM_PROTO_GetShiftState [02:46:05]wFMCommunicate request_size=4 [02:46:05]MH_SAM_APDU [02:46:05]CAPDU: 80 13 01 00 [02:46:05]Write to MH i2c: E2 08 00 10 08 80 13 01 00 00 00 00 00 95 [02:46:05]Write i2c OK [02:46:05]MH_I2C_Read... [02:46:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:46:05]Read from MH i2c: E2 [02:46:05]MH_I2C_Read... [02:46:05]Read from MH i2c: E2 0E 00 [02:46:05]MH_I2C_Read... [02:46:05]Read from MH i2c: E2 0E 00 10 08 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 2B [02:46:05]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [02:46:05]wFMCommunicate OK [02:46:05]SAM_PROTO_GetShiftState done [02:46:05]FM_GetShiftState done [02:46:05]req_shift_opened done [02:46:05]requested_item shift.open_date is exist - process it [02:46:05]req_shift_open_date [02:46:05]req_shift_open_date done [02:46:05]produce_requested_data done [02:46:05]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261054,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600} [02:46:05]process_action_free close_receipt [02:46:05]json_value_free [02:46:05]json_value_free done [02:46:05]process_json_proto returns [02:46:05]Send response to host [02:46:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261054,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600}}} [02:46:05]free response buf [02:46:05]execute_script done [02:46:05]execute_script returns [02:46:06]free content buf [02:46:06]Sock 7.Close socket [02:46:06]Sock 7.Thread stoped [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:48]OFD Sender: No OFD packet to send [02:46:53]OFD Sender: No OFD packet to send [02:46:58]OFD Sender: No OFD packet to send [02:47:03]OFD Sender: No OFD packet to send [02:47:08]OFD Sender: No OFD packet to send [02:47:13]OFD Sender: No OFD packet to send [02:47:18]OFD Sender: No OFD packet to send [02:47:23]OFD Sender: No OFD packet to send [02:47:28]OFD Sender: No OFD packet to send [02:47:33]OFD Sender: No OFD packet to send [02:47:38]OFD Sender: No OFD packet to send [02:47:43]OFD Sender: No OFD packet to send [02:47:48]OFD Sender: No OFD packet to send [02:47:53]OFD Sender: No OFD packet to send [02:47:58]OFD Sender: No OFD packet to send [02:48:03]OFD Sender: No OFD packet to send [02:48:08]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:50]accept exits with 9 [02:49:50]New connection [02:49:50]New thread 3067104612 created [02:49:50]Thread 3067247972 joined [02:49:50]Waiting for new connection... [02:49:50] Sock 9.Parse request [02:49:50]Sock 9.Check first char [02:49:50]Sock 9.First char is OK [02:49:50]request: POST /json_proto HTTP/1.0 [02:49:50]Method: POST [02:49:50]URL: /json_proto [02:49:50]Method is POST - this is cgi request [02:49:50]url: /json_proto [02:49:50]query_string will be loaded in cgi processing [02:49:50]execute_cgi json_proto POST (null) [02:49:50]execute_cgi path=json_proto method=POST [02:49:50]POST find Content-Length [02:49:50]Host: 172.17.55.133:8080 [02:49:50]Content-Length: 678 [02:49:50]Content-Type: application/json [02:49:50] [02:49:50]POST finish read [02:49:50]Found Content-Length = 678 [02:49:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1036608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [02:49:50]execute_script... [02:49: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)1036608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [02:49:50]POST & json_proto [02:49:50]process_json_proto [02:49:50]json parsed OK: [02:49:50]protocol is kg_v1.0 [02:49:50]action value=close_receipt [02:49:50]process_action close_receipt [02:49:50]cmd_close_receipt [02:49:50]MH_GetDate [02:49:50]Write to MH i2c: F0 00 00 11 08 08 [02:49:50]Write i2c OK [02:49:50]MH_I2C_Read... [02:49:50]Read from MH i2c: F0 [02:49:50]MH_I2C_Read... [02:49:50]Read from MH i2c: F0 09 00 [02:49:50]MH_I2C_Read... [02:49:50]Read from MH i2c: F0 09 00 11 08 00 CF B2 C2 66 34 48 D8 65 73 [02:49:50]GetLastDocTimeStamp 1724035561 [02:49:50]current date 1724035791 [02:49:50]FM_GetShiftState [02:49:50]SAM_PROTO_GetShiftState [02:49:50]wFMCommunicate request_size=4 [02:49:50]MH_SAM_APDU [02:49:50]CAPDU: 80 13 01 00 [02:49:50]Write to MH i2c: E2 08 00 12 08 80 13 01 00 00 00 00 00 97 [02:49:50]Write i2c OK [02:49:50]MH_I2C_Read... [02:49:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:49:50]Read from MH i2c: E2 [02:49:50]MH_I2C_Read... [02:49:50]Read from MH i2c: E2 0E 00 [02:49:50]MH_I2C_Read... [02:49:50]Read from MH i2c: E2 0E 00 12 08 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 2D [02:49:50]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [02:49:50]wFMCommunicate OK [02:49:50]SAM_PROTO_GetShiftState done [02:49:50]FM_GetShiftState done [02:49:50]opened in 1724027600 [02:49:50]opened+sec_in_day 1724114000 [02:49:50]quantity*price = 40002 [02:49:50]sum+1 = 40003 [02:49:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 94 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 СНО: Общий режим Чек 23 19.08.2024 02:49 Смена: 450 ФФД: 1.0 ЗНМ: 0300000099 РНМ: 0000000000091865 Версия ККМ: 001 ФМ: 0000000000871820 ФД: 261055 ФПД: 214138147419045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T024951&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261055&fm=214138147419045&tin=02508201610067®Number=0000000000091865&sum=40000 [02:49:51]StoreToDocumentArchive [02:49:51]shift 450 fd 261055 [02:49:51]save to /storage/0450/doc_00261055 [02:49:51]save last doc name /storage/0450/doc_00261055 to /storage/kkm_last_doc_name [02:49:51]save OK [02:49:51]Clear old archive folders... [02:49:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:49:51]tlvbuf is 00A44410 [02:49:51]SAM_PROTO_ClearQueue [02:49:51]wFMCommunicate request_size=4 [02:49:51]MH_SAM_APDU [02:49:51]CAPDU: 80 09 00 00 [02:49:51]Write to MH i2c: E2 08 00 1F 08 80 09 00 00 00 00 00 00 99 [02:49:51]Write i2c OK [02:49:51]MH_I2C_Read... [02:49:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:49:51]Read from MH i2c: E2 [02:49:51]MH_I2C_Read... [02:49:51]Read from MH i2c: E2 03 00 [02:49:51]MH_I2C_Read... [02:49:51]Read from MH i2c: E2 03 00 1F 08 00 90 00 9B [02:49:51]RAPDU: 90 00 [02:49:51]wFMCommunicate OK [02:49:51]SAM_PROTO_ClearQueue done [02:49:51]KKMCreateOFDPacket [02:49:51]OFDProtocolAddRootSTLVToBuf [02:49:51]FM_MakeSignedData [02:49:51]FM_MakeSignedData [02:49:51]SAM_PROTO_SignData [02:49:51]wFMCommunicate request_size=4 [02:49:51]MH_SAM_APDU [02:49:51]CAPDU: 80 0D 01 02 [02:49:51]Write to MH i2c: E2 08 00 20 08 80 0D 01 02 00 00 00 00 A1 [02:49:51]Write i2c OK [02:49:51]MH_I2C_Read... [02:49:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:49:51]Read from MH i2c: E2 [02:49:51]MH_I2C_Read... [02:49:51]Read from MH i2c: E2 03 00 [02:49:51]MH_I2C_Read... [02:49:51]Read from MH i2c: E2 03 00 20 08 00 90 00 9C [02:49:51]RAPDU: 90 00 [02:49:51]wFMCommunicate OK [02:49:51]wFMCommunicate request_size=255 [02:49:51]MH_SAM_APDU [02:49:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 CF B2 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BF FB 03 00 35 04 06 00 C2 [02:49:51]Write to MH i2c: E2 02 01 21 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 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 CF B2 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BF FB 03 00 35 04 06 00 C2 00 00 05 [02:49:51]Write i2c OK [02:49:51]MH_I2C_Read... [02:49:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:49:52]Read from MH i2c: E2 [02:49:52]MH_I2C_Read... [02:49:52]Read from MH i2c: E2 03 00 [02:49:52]MH_I2C_Read... [02:49:52]Read from MH i2c: E2 03 00 21 08 00 90 00 9D [02:49:52]RAPDU: 90 00 [02:49:52]wFMCommunicate OK [02:49:52]wFMCommunicate request_size=10 [02:49:52]MH_SAM_APDU [02:49:52]CAPDU: 80 0D 02 02 05 C1 EC 35 B3 A5 [02:49:52]Write to MH i2c: E2 0D 00 22 08 80 0D 02 02 05 00 C1 EC 35 B3 A5 00 00 E8 [02:49:52]Write i2c OK [02:49:52]MH_I2C_Read... [02:49:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:49:52]Read from MH i2c: E2 [02:49:52]MH_I2C_Read... [02:49:52]Read from MH i2c: E2 03 00 [02:49:52]MH_I2C_Read... [02:49:52]Read from MH i2c: E2 03 00 22 08 00 90 00 9E [02:49:52]RAPDU: 90 00 [02:49:52]wFMCommunicate OK [02:49:52]wFMCommunicate request_size=4 [02:49:52]MH_SAM_APDU [02:49:52]CAPDU: 80 0D 03 02 [02:49:52]Write to MH i2c: E2 08 00 23 08 80 0D 03 02 00 00 00 00 A6 [02:49:52]Write i2c OK [02:49:52]MH_I2C_Read... [02:49:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:49:52]Read from MH i2c: E2 [02:49:52]MH_I2C_Read... [02:49:52]Read from MH i2c: E2 0B 00 [02:49:52]MH_I2C_Read... [02:49:52]Read from MH i2c: E2 0B 00 23 08 00 C0 08 A4 51 F7 68 27 7A 90 00 64 [02:49:52]RAPDU: C0 08 A4 51 F7 68 27 7A 90 00 [02:49:52]wFMCommunicate OK [02:49:52]SAM_PROTO_SignData done [02:49:52]FM_MakeSignedData done [02:49:52]CreateOFDProtocolMessage [02:49:52]wFMCommunicate request_size=4 [02:49:52]MH_SAM_APDU [02:49:52]CAPDU: 80 11 00 00 [02:49:52]Write to MH i2c: E2 08 00 24 08 80 11 00 00 00 00 00 00 A6 [02:49:52]Write i2c OK [02:49:52]MH_I2C_Read... [02:49:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:49:52]Read from MH i2c: E2 [02:49:52]MH_I2C_Read... [02:49:52]Read from MH i2c: E2 17 00 [02:49:52]MH_I2C_Read... [02:49:52]Read from MH i2c: E2 17 00 24 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 F3 [02:49:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [02:49:52]wFMCommunicate OK [02:49:52]CreateOFDProtocolMessage done [02:49:52]OFDSenderStorePacket 261055 [02:49:52]StoreOFDPacket docnum=261055 [02:49:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 0F 01 00 00 F9 C2 07 01 DA 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 CF B2 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BF FB 03 00 35 04 06 00 C2 C1 EC 35 B3 A5 C0 08 A4 51 F7 68 27 7A [02:49:52]CheckFolder [02:49:52]dirname=/storage/ofd_packets [02:49:52]CheckFolder done [02:49:52]ProducePacketName [02:49:52]name=ofd_packets/00261055 [02:49:52]NVStorageSaveData ofd_packets/00261055 [02:49:52]File name is /storage/ofd_packets/00261055 [02:49:52]Write 301 bytes [02:49:52]NVStorageSaveData done [02:49:52]OFDSenderStorePacket done [02:49:52]KKMCreateOFDPacket done [02:49:52]NVStorageSaveData kkm_last_timestamp [02:49:52]File name is /storage/kkm_last_timestamp [02:49:52]Write 4 bytes [02:49:52]NVStorageSaveData done [02:49:52]ExternCall_PrintAddStr [02:49:52]wPrintStart [02:49:52]Write to MH i2c: 01 00 00 25 08 2D [02:49:52]Write i2c OK [02:49:52]MH_I2C_Read... [02:49:52]Read from MH i2c: 01 [02:49:52]MH_I2C_Read... [02:49:52]Read from MH i2c: 01 07 00 [02:49:52]MH_I2C_Read... [02:49:52]Read from MH i2c: 01 07 00 25 08 00 00 00 00 00 FF 0F 42 [02:49:52]RasterBufferAndPrint [02:49:52]line Счет N : (1)1036608 [02:49:52]line ИНН: 02508201610067 [02:49:52]line Контрольно-Кассовый Чек [02:49:52]line ПРОДАЖА [02:49:52]line ТРК (МРК, ГНК) : 22 [02:49:52]line Товар: 2710124130 [02:49:52]line Аи-92-К-5 [02:49:52]line 5.900 * 67.80 [02:49:52]line = 400.02 [02:49:52]line НДС 12% НСП 1% [02:49:52]line > о реализуемом товаре [02:49:52]line ОКРУГЛЕНИЕ: -0.02 [02:49:52]line ИТОГО: 400.00 [02:49:52]line Внесено: 400.00 [02:49:52]line СДАЧА: 0.00 [02:49:52]line НСП 1% : 3.54 [02:49:52]line НДС 12% : 42.48 [02:49:52]line Наличными: 400.00 [02:49:52]line Безнал.: 0.00 [02:49:52]line Место: АЗС № 94 "Партнер Нефть" [02:49:52]line Адрес: 720001, г. Ош, ул. Г. Айтиева 153 Ж, 40.525475, 72.769358 [02:49:52]line СНО: Общий режим [02:49:52]line Чек 23 19.08.2024 02:49 [02:49:52]line Смена: 450 ФФД: 1.0 [02:49:52]line ЗНМ: 0300000099 [02:49:52]line РНМ: 0000000000091865 [02:49:52]line Версия ККМ: 001 [02:49:52]line ФМ: 0000000000871820 [02:49:52]line ФД: 261055 [02:49:52]line ФПД: 214138147419045 [02:49:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T024951&type=1&operation_type=1&fn_number=0000000000871820&fd_number=261055&fm=214138147419045&tin=02508201610067®Number=0000000000091865&sum=40000 [02:49:52]written 0, free lines is 4095 [02:49:52]OFD Sender: Processing packet 261055 [packets to send 192, broken 191] [02:49:52]ProducePacketName [02:49:52]name=ofd_packets/00261055 [02:49:52]OFD Sender: To server: pG, [02:49:52]CommunicateWithHost lk.salyk.kg:30040 [02:49:52]ConnectInit lk.salyk.kg [02:49:52]Connected sock=10 [02:49: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 30 0F 01 00 00 F9 C2 07 01 DA 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 CF B2 C2 66 0E 04 04 00 C2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 10 04 04 00 BF FB 03 00 35 04 06 00 C2 C1 EC 35 B3 A5 C0 08 A4 51 F7 68 27 7A [02:49: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 30 4F 00 00 00 60 97 47 00 C4 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 30 10 04 04 00 BF FB 03 00 F4 03 04 00 22 5C C2 66 B6 04 01 00 00 E1 D5 2F 8C F4 0F D3 51 [02:49:52]CommunicateWithHost err = 0 [02:49:52]CheckOFDResponse [02:49:52]1017 (14) - 77093643461234 [02:49:52]1041 (16) - 0000000000871820 [02:49:52]1040 (4) - 261055 [02:49:52]1012 (4) - 18.08.2024 20:40 [02:49:52]1206 (1) - 0 [02:49:52]OFD Sender: Remove packet 261055 [02:49:52]ProducePacketName [02:49:52]name=ofd_packets/00261055 [02:49:52]NVStorageDeleteData [02:49:52]Write to MH i2c: 01 00 00 50 08 58 [02:49:52]Write i2c OK [02:49:52]MH_I2C_Read... [02:49:52]Read from MH i2c: 01 [02:49:52]MH_I2C_Read... [02:49:52]Read from MH i2c: 01 07 00 [02:49:52]MH_I2C_Read... [02:49:52]Read from MH i2c: 01 07 00 50 08 00 00 00 00 00 71 0C DC [02:49:52]RasterBufferAndPrint [02:49:52]line [02:49:52]line [02:49:52]line [02:49:52]line [02:49:52]line [02:49:52]written 0, free lines is 3187 [02:49:52]MH_Cut [02:49:52]Write to MH i2c: D1 01 00 57 08 01 31 [02:49:52]Write i2c OK [02:49:52]MH_I2C_Read... [02:49:52]Read from MH i2c: D1 [02:49:52]MH_I2C_Read... [02:49:52]Read from MH i2c: D1 01 00 [02:49:52]MH_I2C_Read... [02:49:52]Read from MH i2c: D1 01 00 57 08 00 30 [02:49:52]Write to MH i2c: 01 00 00 58 08 60 [02:49:52]Write i2c OK [02:49:52]MH_I2C_Read... [02:49:53]OFD Sender: No OFD packet to send [02:49:54]*** Cut start [02:49:54]*** Purtial cut [02:49:54]*** Stage 1: CUTSNS_PIN = 1 [02:49:56]Read from MH i2c: 01 [02:49:56]MH_I2C_Read... [02:49:56]*** Stop cut motor [02:49:56]*** Cut end [02:49:56]Read from MH i2c: 01 07 00 [02:49:56]MH_I2C_Read... [02:49:56]Read from MH i2c: 01 07 00 58 08 00 00 00 00 00 FF 0F 75 [02:49:56]process_action close_receipt done [02:49:56]requested_data is exist [02:49:56]produce_requested_data [02:49:56]requested_item fm.sn is exist - process it [02:49:56]wFMCommunicate request_size=4 [02:49:56]MH_SAM_APDU [02:49:56]CAPDU: 80 11 00 00 [02:49:56]Write to MH i2c: E2 08 00 59 08 80 11 00 00 00 00 00 00 DB [02:49:56]Write i2c OK [02:49:56]MH_I2C_Read... [02:49:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:49:56]Read from MH i2c: E2 [02:49:56]MH_I2C_Read... [02:49:56]Read from MH i2c: E2 17 00 [02:49:56]MH_I2C_Read... [02:49:56]Read from MH i2c: E2 17 00 59 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 28 [02:49:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 30 90 00 [02:49:56]wFMCommunicate OK [02:49:56]requested_item fd.num is exist - process it [02:49:56]SAM_PROTO_GetFieldsCounters [02:49:56]wFMCommunicate request_size=4 [02:49:56]MH_SAM_APDU [02:49:56]CAPDU: 80 13 00 00 [02:49:56]Write to MH i2c: E2 08 00 5A 08 80 13 00 00 00 00 00 00 DE [02:49:56]Write i2c OK [02:49:56]MH_I2C_Read... [02:49:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:49:56]Read from MH i2c: E2 [02:49:56]MH_I2C_Read... [02:49:56]Read from MH i2c: E2 62 00 [02:49:56]MH_I2C_Read... [02:49:56]Read from MH i2c: E2 62 00 5A 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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 BF FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [02:49: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 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 36 35 10 04 04 00 BF FB 03 00 0E 04 04 00 C2 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:49:56]wFMCommunicate OK [02:49:56]SAM_PROTO_GetFieldsCounters done [02:49:56]requested_item shift.num is exist - process it [02:49:56]requested_item shift.opened is exist - process it [02:49:56]req_shift_opened [02:49:56]FM_GetShiftState [02:49:56]SAM_PROTO_GetShiftState [02:49:56]wFMCommunicate request_size=4 [02:49:56]MH_SAM_APDU [02:49:56]CAPDU: 80 13 01 00 [02:49:56]Write to MH i2c: E2 08 00 5B 08 80 13 01 00 00 00 00 00 E0 [02:49:56]Write i2c OK [02:49:56]MH_I2C_Read... [02:49:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:49:56]Read from MH i2c: E2 [02:49:56]MH_I2C_Read... [02:49:56]Read from MH i2c: E2 0E 00 [02:49:56]MH_I2C_Read... [02:49:56]Read from MH i2c: E2 0E 00 5B 08 00 09 00 01 D0 92 C2 66 00 00 00 00 90 00 76 [02:49:56]RAPDU: 09 00 01 D0 92 C2 66 00 00 00 00 90 00 [02:49:56]wFMCommunicate OK [02:49:56]SAM_PROTO_GetShiftState done [02:49:56]FM_GetShiftState done [02:49:56]req_shift_opened done [02:49:56]requested_item shift.open_date is exist - process it [02:49:56]req_shift_open_date [02:49:56]req_shift_open_date done [02:49:56]produce_requested_data done [02:49:56]produce_requested_data return {"fm.sn":"0000000000871820","fd.num":261055,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600} [02:49:56]process_action_free close_receipt [02:49:56]json_value_free [02:49:56]json_value_free done [02:49:56]process_json_proto returns [02:49:56]Send response to host [02:49:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871820","fd.num":261055,"shift.num":450,"shift.opened":1,"shift.open_date":1724027600}}} [02:49:56]free response buf [02:49:56]execute_script done [02:49:56]execute_script returns [02:49:56]free content buf [02:49:56]Sock 9.Close socket [02:49:56]Sock 9.Thread stoped [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:04]OFD Sender: No OFD packet to send [02:58:09]OFD Sender: No OFD packet to send [02:58:14]OFD Sender: No OFD packet to send [02:58:19]OFD Sender: No OFD packet to send [02:58:24]OFD Sender: No OFD packet to send [02:58:29]OFD Sender: No OFD packet to send [02:58:34]OFD Sender: No OFD packet to send [02:58:39]OFD Sender: No OFD packet to send [02:58:44]OFD Sender: No OFD packet to send [02:58:49]OFD Sender: No OFD packet to send [02:58:54]OFD Sender: No OFD packet to send [02:58:59]OFD Sender: No OFD packet to send [02:59:04]OFD Sender: No OFD packet to send [02:59:09]OFD Sender: No OFD packet to send [02:59:14]OFD Sender: No OFD packet to send [02:59:19]OFD Sender: No OFD packet to send [02:59:24]OFD Sender: No OFD packet to send [02:59:29]OFD Sender: No OFD packet to send [02:59:34]OFD Sender: No OFD packet to send [02:59:39]OFD Sender: No OFD packet to send [02:59:44]OFD Sender: No OFD packet to send [02:59:49]OFD Sender: No OFD packet to send [02:59:54]OFD Sender: No OFD packet to send [02:59:59]OFD Sender: No OFD packet to send [03:00:04]OFD Sender: No OFD packet to send [03:00:09]OFD Sender: No OFD packet to send [03:00:14]OFD Sender: No OFD packet to send [03:00:19]OFD Sender: No OFD packet to send [03:00:24]OFD Sender: No OFD packet to send [03:00:29]OFD Sender: No OFD packet to send [03:00:34]OFD Sender: No OFD packet to send [03:00:39]OFD Sender: No OFD packet to send [03:00:44]OFD Sender: No OFD packet to send [03:00:49]OFD Sender: No OFD packet to send [03:00:54]OFD Sender: No OFD packet to send [03:00:59]OFD Sender: No OFD packet to send [03:01:04]OFD Sender: No OFD packet to send [03:01:09]OFD Sender: No OFD packet to send [03:01:14]OFD Sender: No OFD packet to send [03:01:19]OFD Sender: No OFD packet to send [03:01:24]OFD Sender: No OFD packet to send [03:01:29]OFD Sender: No OFD packet to send [03:01:34]OFD Sender: No OFD packet to send [03:01:39]OFD Sender: No OFD packet to send [03:01:44]OFD Sender: No OFD packet to send [03:01:49]OFD Sender: No OFD packet to send [03:01:54]OFD Sender: No OFD packet to send [03:01:59]OFD Sender: No OFD packet to send [03:02:04]OFD Sender: No OFD packet to send [03:02:09]OFD Sender: No OFD packet to send [03:02:14]OFD Sender: No OFD packet to send [03:02:19]OFD Sender: No OFD packet to send [03:02:24]OFD Sender: No OFD packet to send [03:02:29]OFD Sender: No OFD packet to send [03:02:34]OFD Sender: No OFD packet to send [03:02:39]OFD Sender: No OFD packet to send [03:02:44]OFD Sender: No OFD packet to send [03:02:49]OFD Sender: No OFD packet to send [03:02:54]OFD Sender: No OFD packet to send [03:02:59]OFD Sender: No OFD packet to send [03:03:04]OFD Sender: No OFD packet to send [03:03:09]OFD Sender: No OFD packet to send [03:03:14]OFD Sender: No OFD packet to send [03:03:19]OFD Sender: No OFD packet to send [03:03:24]OFD Sender: No OFD packet to send [03:03:29]OFD Sender: No OFD packet to send [03:03:34]OFD Sender: No OFD packet to send [03:03:39]OFD Sender: No OFD packet to send [03:03:44]OFD Sender: No OFD packet to send [03:03:49]OFD Sender: No OFD packet to send [03:03:54]OFD Sender: No OFD packet to send [03:03:59]OFD Sender: No OFD packet to send [03:04:04]OFD Sender: No OFD packet to send [03:04:09]OFD Sender: No OFD packet to send [03:04:14]OFD Sender: No OFD packet to send [03:04:19]OFD Sender: No OFD packet to send [03:04:24]OFD Sender: No OFD packet to send [03:04:29]OFD Sender: No OFD packet to send [03:04:34]OFD Sender: No OFD packet to send [03:04:39]OFD Sender: No OFD packet to send [03:04:44]OFD Sender: No OFD packet to send [03:04:49]OFD Sender: No OFD packet to send [03:04:54]OFD Sender: No OFD packet to send [03:04:59]OFD Sender: No OFD packet to send [03:05:04]OFD Sender: No OFD packet to send [03:05:09]OFD Sender: No OFD packet to send [03:05:14]OFD Sender: No OFD packet to send [03:05:19]OFD Sender: No OFD packet to send [03:05:24]OFD Sender: No OFD packet to send [03:05:29]OFD Sender: No OFD packet to send [03:05:34]OFD Sender: No OFD packet to send [03:05:39]OFD Sender: No OFD packet to send [03:05:44]OFD Sender: No OFD packet to send [03:05:49]OFD Sender: No OFD packet to send [03:05:54]OFD Sender: No OFD packet to send [03:05:59]OFD Sender: No OFD packet to send [03:06:04]OFD Sender: No OFD packet to send [03:06:09]OFD Sender: No OFD packet to send [03:06:14]OFD Sender: No OFD packet to send [03:06:19]OFD Sender: No OFD packet to send [03:06:24]OFD Sender: No OFD packet to send [03:06:29]OFD Sender: No OFD packet to send [03:06:34]OFD Sender: No OFD packet to send [03:06:39]OFD Sender: No OFD packet to send [03:06:44]OFD Sender: No OFD packet to send [03:06:49]OFD Sender: No OFD packet to send [03:06:54]OFD Sender: No OFD packet to send [03:06:59]OFD Sender: No OFD packet to send [03:07:04]OFD Sender: No OFD packet to send [03:07:09]OFD Sender: No OFD packet to send [03:07:14]OFD Sender: No OFD packet to send [03:07:19]OFD Sender: No OFD packet to send [03:07:24]OFD Sender: No OFD packet to send [03:07:29]OFD Sender: No OFD packet to send [03:07:34]OFD Sender: No OFD packet to send [03:07:39]OFD Sender: No OFD packet to send [03:07:44]OFD Sender: No OFD packet to send [03:07:49]OFD Sender: No OFD packet to send [03:07:54]OFD Sender: No OFD packet to send [03:07:59]OFD Sender: No OFD packet to send [03:08:04]OFD Sender: No OFD packet to send [03:08:09]OFD Sender: No OFD packet to send [03:08:14]OFD Sender: No OFD packet to send [03:08:19]OFD Sender: No OFD packet to send [03:08:24]OFD Sender: No OFD packet to send [03:08:29]OFD Sender: No OFD packet to send [03:08:34]OFD Sender: No OFD packet to send [03:08:39]OFD Sender: No OFD packet to send [03:08:44]OFD Sender: No OFD packet to send [03:08:49]OFD Sender: No OFD packet to send [03:08:54]OFD Sender: No OFD packet to send [03:08:59]OFD Sender: No OFD packet to send [03:09:04]OFD Sender: No OFD packet to send [03:09:09]OFD Sender: No OFD packet to send [03:09:14]OFD Sender: No OFD packet to send [03:09:19]OFD Sender: No OFD packet to send [03:09:24]OFD Sender: No OFD packet to send [03:09:29]OFD Sender: No OFD packet to send [03:09:34]OFD Sender: No OFD packet to send [03:09:39]OFD Sender: No OFD packet to send [03:09:45]OFD Sender: No OFD packet to send